@syncfusion/ej2-react-popups
Advanced tools
Comparing version 15.4.27 to 16.1.24
/*! | ||
* filename: ej2-react-popups.umd.min.js | ||
* version : 15.4.27 | ||
* version : 16.1.24 | ||
* Copyright Syncfusion Inc. 2001 - 2017. All rights reserved. | ||
@@ -11,3 +11,3 @@ * Use of this code is subject to the terms of our license. | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react"),require("@syncfusion/ej2-popups"),require("@syncfusion/ej2-react-base")):"function"==typeof define&&define.amd?define(["exports","react","@syncfusion/ej2-popups","@syncfusion/ej2-react-base"],t):t(e.ej={},e.React,e.ej2Popups,e.ej2ReactBase)}(this,function(e,t,n,r){"use strict";var o=function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=function(e){function n(t){var n=e.call(this,t)||this;return n.initRenderCalled=!1,n.checkInjectedModules=!1,n.state=t,n}return o(n,e),n.prototype.render=function(){if(!(this.element&&!this.initRenderCalled||this.refreshing))return t.createElement("div",this.getDefaultAttributes(),this.props.children);e.prototype.render.call(this),this.initRenderCalled=!0},n}(n.Dialog);r.applyMixins(i,[r.ComponentBase,t.PureComponent]);var s=function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),p=function(e){function n(t){var n=e.call(this,t)||this;return n.initRenderCalled=!1,n.checkInjectedModules=!1,n.state=t,n}return s(n,e),n.prototype.render=function(){if(!(this.element&&!this.initRenderCalled||this.refreshing))return t.createElement("div",this.getDefaultAttributes(),this.props.children);e.prototype.render.call(this),this.initRenderCalled=!0},n}(n.Popup);r.applyMixins(p,[r.ComponentBase,t.PureComponent]);var c=function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),u=function(e){function n(t){var n=e.call(this,t)||this;return n.initRenderCalled=!1,n.checkInjectedModules=!1,n.state=t,n}return c(n,e),n.prototype.render=function(){if(!(this.element&&!this.initRenderCalled||this.refreshing))return t.createElement("div",this.getDefaultAttributes(),this.props.children);e.prototype.render.call(this),this.initRenderCalled=!0},n}(n.Tooltip);r.applyMixins(u,[r.ComponentBase,t.PureComponent]),e.DialogComponent=i,e.PopupComponent=p,e.TooltipComponent=u,Object.keys(n).forEach(function(t){e[t]=n[t]}),Object.defineProperty(e,"__esModule",{value:!0})}); | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@syncfusion/ej2-react-base"),require("react"),require("@syncfusion/ej2-popups")):"function"==typeof define&&define.amd?define(["exports","@syncfusion/ej2-react-base","react","@syncfusion/ej2-popups"],e):e(t.ej={},t.ej2ReactBase,t.React,t.ej2Popups)}(this,function(t,e,n,o){"use strict";var r=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.moduleName="dialogButton",e}(e.ComplexBase),p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.propertyName="buttons",e.moduleName="buttons",e}(e.ComplexBase),u=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),s=function(t){function e(e){var n=t.call(this,e)||this;return n.initRenderCalled=!1,n.checkInjectedModules=!1,n.directivekeys={buttons:"dialogButton"},n.state=e,n}return u(e,t),e.prototype.render=function(){if(!(this.element&&!this.initRenderCalled||this.refreshing))return n.createElement("div",this.getDefaultAttributes(),this.props.children);t.prototype.render.call(this),this.initRenderCalled=!0},e}(o.Dialog);e.applyMixins(s,[e.ComponentBase,n.PureComponent]);var c=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),a=function(t){function e(e){var n=t.call(this,e)||this;return n.initRenderCalled=!1,n.checkInjectedModules=!1,n.state=e,n}return c(e,t),e.prototype.render=function(){if(!(this.element&&!this.initRenderCalled||this.refreshing))return n.createElement("div",this.getDefaultAttributes(),this.props.children);t.prototype.render.call(this),this.initRenderCalled=!0},e}(o.Popup);e.applyMixins(a,[e.ComponentBase,n.PureComponent]);var l=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),f=function(t){function e(e){var n=t.call(this,e)||this;return n.initRenderCalled=!1,n.checkInjectedModules=!1,n.state=e,n}return l(e,t),e.prototype.render=function(){if(!(this.element&&!this.initRenderCalled||this.refreshing))return n.createElement("div",this.getDefaultAttributes(),this.props.children);t.prototype.render.call(this),this.initRenderCalled=!0},e}(o.Tooltip);e.applyMixins(f,[e.ComponentBase,n.PureComponent]),t.DialogButtonDirective=i,t.ButtonsDirective=p,t.DialogComponent=s,t.PopupComponent=a,t.TooltipComponent=f,Object.keys(o).forEach(function(e){t[e]=o[e]}),Object.defineProperty(t,"__esModule",{value:!0})}); | ||
//# sourceMappingURL=ej2-react-popups.umd.min.js.map |
@@ -0,6 +1,26 @@ | ||
import { ComplexBase, ComponentBase, applyMixins } from '@syncfusion/ej2-react-base'; | ||
import { PureComponent, createElement } from 'react'; | ||
import { Dialog, Popup, Tooltip } from '@syncfusion/ej2-popups'; | ||
import { ComponentBase, applyMixins } from '@syncfusion/ej2-react-base'; | ||
/** | ||
* `ButtonDirective` represent a button of the react dialog. | ||
* It must be contained in a Dialog component(`DialogComponent`). | ||
* ```tsx | ||
* <DialogComponent showCloseIcon={true}> | ||
* <ButtonsDirective> | ||
* <ButtonDirective content='Ok' isPrimary=true></ButtonDirective> | ||
* <ButtonDirective content='Cancel'></ButtonDirective> | ||
* <ButtonsDirective> | ||
* </DialogComponent> | ||
* ``` | ||
*/ | ||
class DialogButtonDirective extends ComplexBase { | ||
} | ||
DialogButtonDirective.moduleName = 'dialogButton'; | ||
class ButtonsDirective extends ComplexBase { | ||
} | ||
ButtonsDirective.propertyName = 'buttons'; | ||
ButtonsDirective.moduleName = 'buttons'; | ||
/** | ||
* Represents the React Dialog Component | ||
@@ -16,2 +36,3 @@ * ```html | ||
this.checkInjectedModules = false; | ||
this.directivekeys = { 'buttons': 'dialogButton' }; | ||
this.state = props; | ||
@@ -75,4 +96,4 @@ } | ||
export { DialogComponent, PopupComponent, TooltipComponent }; | ||
export { DialogButtonDirective, ButtonsDirective, DialogComponent, PopupComponent, TooltipComponent }; | ||
export * from '@syncfusion/ej2-popups'; | ||
//# sourceMappingURL=ej2-react-popups.es2015.js.map |
{ | ||
"name": "@syncfusion/ej2-react-popups", | ||
"version": "15.4.27", | ||
"version": "16.1.24", | ||
"description": "Essential JS 2 popup Component for React", | ||
@@ -17,3 +17,3 @@ "author": "Syncfusion Inc.", | ||
"main": "./dist/ej2-react-popups.umd.min.js", | ||
"module": "dist/es6/ej2-react-popups.es5.js", | ||
"module": "dist/es6/ej2-react-popups.es2015.js", | ||
"readme": "ReadMe.md", | ||
@@ -23,5 +23,5 @@ "dependencies": { | ||
"source-map-loader": "^0.2.1", | ||
"@syncfusion/ej2-base": "^15.4.23", | ||
"@syncfusion/ej2-react-base": "^15.4.23", | ||
"@syncfusion/ej2-popups": "^15.4.27" | ||
"@syncfusion/ej2-base": "^16.1.24", | ||
"@syncfusion/ej2-react-base": "^16.1.24", | ||
"@syncfusion/ej2-popups": "^16.1.24" | ||
}, | ||
@@ -28,0 +28,0 @@ "devDependencies": { |
@@ -19,2 +19,5 @@ /// <reference types="react" /> | ||
private checkInjectedModules; | ||
directivekeys: { | ||
[key: string]: Object; | ||
}; | ||
props: Readonly<{ | ||
@@ -21,0 +24,0 @@ children?: React.ReactNode | React.ReactNode[]; |
@@ -20,2 +20,3 @@ var __extends = (this && this.__extends) || (function () { | ||
_this.checkInjectedModules = false; | ||
_this.directivekeys = { 'buttons': 'dialogButton' }; | ||
_this.state = props; | ||
@@ -22,0 +23,0 @@ return _this; |
@@ -0,1 +1,2 @@ | ||
export * from './buttons-directive'; | ||
export * from './dialog.component'; |
@@ -1,2 +0,2 @@ | ||
define(["require", "exports", "./dialog.component"], function (require, exports, dialog_component_1) { | ||
define(["require", "exports", "./buttons-directive", "./dialog.component"], function (require, exports, buttons_directive_1, dialog_component_1) { | ||
"use strict"; | ||
@@ -7,3 +7,4 @@ function __export(m) { | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__export(buttons_directive_1); | ||
__export(dialog_component_1); | ||
}); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
5139961
71
37389
0
+ Added@syncfusion/ej2-base@16.4.52(transitive)
+ Added@syncfusion/ej2-buttons@16.4.55(transitive)
+ Added@syncfusion/ej2-popups@16.4.54(transitive)
+ Added@syncfusion/ej2-react-base@16.4.52(transitive)
+ Addedreact@16.5.1(transitive)
+ Addedreact-dom@16.5.1(transitive)
+ Addedschedule@0.4.0(transitive)
- Removed@syncfusion/ej2-base@15.4.23(transitive)
- Removed@syncfusion/ej2-buttons@15.4.30(transitive)
- Removed@syncfusion/ej2-popups@15.4.27(transitive)
- Removed@syncfusion/ej2-react-base@15.4.23(transitive)
- Removedasap@2.0.6(transitive)
- Removedcore-js@1.2.7(transitive)
- Removedencoding@0.1.13(transitive)
- Removedfbjs@0.8.18(transitive)
- Removediconv-lite@0.6.3(transitive)
- Removedis-stream@1.1.0(transitive)
- Removedisomorphic-fetch@2.2.1(transitive)
- Removednode-fetch@1.7.3(transitive)
- Removedpromise@7.3.1(transitive)
- Removedreact@16.0.0(transitive)
- Removedreact-dom@16.0.0(transitive)
- Removedsafer-buffer@2.1.2(transitive)
- Removedsetimmediate@1.0.5(transitive)
- Removedua-parser-js@0.7.40(transitive)
- Removedwhatwg-fetch@3.6.20(transitive)