Socket
Socket
Sign inDemoInstall

@syncfusion/ej2-react-base

Package Overview
Dependencies
Maintainers
3
Versions
164
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@syncfusion/ej2-react-base - npm Package Compare versions

Comparing version 18.3.37 to 18.3.47

2

CHANGELOG.md

@@ -5,2 +5,4 @@ # Changelog

## 18.3.35 (2020-10-01)
### Common

@@ -7,0 +9,0 @@

4

dist/ej2-react-base.umd.min.js
/*!
* filename: ej2-react-base.umd.min.js
* version : 18.3.35
* version : 18.3.47
* Copyright Syncfusion Inc. 2001 - 2020. All rights reserved.

@@ -10,3 +10,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-base"),require("react-dom")):"function"==typeof define&&define.amd?define(["exports","react","@syncfusion/ej2-base","react-dom"],t):t(e.ej={},e.React,e.ej2Base,e.ReactDOM)}(this,function(e,t,r,i){"use strict";function n(e,n){return"string"==typeof e?f(e,n):function(n,o,s,p){var a=e,c=n;"object"==typeof a&&(a=e.template,c=r.extend({},n,e.data||{}));var l;l=p||document.createElement("div");var h=t.createElement(a,c),u=i.createPortal(h,l);if(u.propName=s,o.portals?o.portals.push(u):o.portals=[u],!p)return[l]}}var o=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function i(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}(),s=["alt","className","disabled","form","id","readOnly","style","tabIndex","title","type","name","onClick","onFocus","onBlur"],p=["accordion","tab","splitter"],a=function(e){function i(){var t=null!==e&&e.apply(this,arguments)||this;return t.attrKeys=[],t.cachedTimeOut=0,t.isAppendCalled=!1,t.initRenderCalled=!1,t.isReactForeceUpdate=!1,t.isReact=!0,t}return o(i,e),i.prototype.componentDidMount=function(){this.refreshChild(!0),this.canDelayUpdate=-1!==p.indexOf(this.getModuleName()),this.renderReactComponent(),this.portals&&this.portals.length&&this.renderReactTemplates()},i.prototype.renderReactComponent=function(){var e=this.reactElement;e&&(this.isAppendCalled=!0,this.appendTo(e))},i.prototype.shouldComponentUpdate=function(e){return this.initRenderCalled?(this.isAppendCalled||(clearTimeout(this.cachedTimeOut),this.isAppendCalled=!0,this.appendTo(this.reactElement)),this.updateProperties(e),!0):(this.updateProperties(e,!0),!0)},i.prototype.updateProperties=function(e,t){for(var i=this,n=r.extend({},e),o=0,s=Object.keys(e);o<s.length;o++){var p=s[o],a="className"===p;"children"!==p&&(a||r.isNullOrUndefined(this.htmlattributes[p])||this.htmlattributes[p]===n[p]||(this.htmlattributes[p]=n[p]),this.compareValues(this.props[p],e[p])?delete n[p]:-1!==this.attrKeys.indexOf(p)&&(a?(this.element.classList.remove(this.props[p]),this.element.classList.add(n[p])):"disabled"!==p&&delete n[p]))}n.children&&delete n.children,this.initRenderCalled&&(this.canDelayUpdate||this.props.delayUpdate)?setTimeout(function(){i.refreshProperties(n,e,t)}):this.refreshProperties(n,e,t)},i.prototype.refreshProperties=function(e,t,r){Object.keys(e).length&&(r||this.processComplexTemplate(e,this),this.setProperties(e,r)),this.refreshChild(r,t)},i.prototype.processComplexTemplate=function(e,t){var i=t.complexTemplate;if(i)for(var n in i){var o=i[n];e[n]&&r.setValue(o,r.getValue(n,e),e)}},i.prototype.getDefaultAttributes=function(){var e=this;this.isReact=!0;var t=Object.keys(this.props);this.htmlattributes={},this.attrKeys=s.concat(this.controlAttributes||[]);for(var r=0,i=t;r<i.length;r++){var n=i[r];-1===n.indexOf("data-")&&-1===n.indexOf("aria-")&&-1===this.attrKeys.indexOf(n)||(this.htmlattributes[n]=this.props[n])}return this.htmlattributes.ref||(this.htmlattributes.ref=function(t){e.reactElement=t}),this.htmlattributes},i.prototype.trigger=function(e,t,r){var i=this;if(!0!==this.isDestroyed){"change"!==e&&"input"!==e||this.props.onChange&&t.event&&this.props.onChange.call(void 0,{syntheticEvent:t.event,nativeEvent:{text:t.value},value:t.value,target:this});var n=this.isProtectedOnChange;this.isProtectedOnChange=!1,"created"===e?setTimeout(function(){i.modelObserver.notify(e,t,r)}):this.modelObserver.notify(e,t,r),this.isProtectedOnChange=n}},i.prototype.compareValues=function(e,t){var i=typeof e;if(i===typeof t){if(e===t)return!0;if((!r.isNullOrUndefined(e) && e.constructor)!==(!r.isNullOrUndefined(t) && t.constructor))return!1;if(e instanceof Date||e instanceof RegExp||e instanceof String||e instanceof Number||"function"===i)return e.tostring===t.tostring;if(r.isObject(e)||Array.isArray(e)){var n=e,o=t;return r.isObject(n)&&(n=[e],o=[t]),this.compareObjects(n,o).status}}return!1},i.prototype.compareObjects=function(e,t,r){var i=!0,n=[];if(e.length===t.length)for(var o=0,s=t.length;o<s;o++){for(var p={},a=e[o],c=t[o],l=0,h=Object.keys(c);l<h.length;l++){var u=h[l],f=a[u],d=c[u];if(!a.hasOwnProperty(u)||!this.compareValues(d,f)){if(!r)return{status:!1};i=!1,p[u]=d}}Object.keys(p).length&&n.push({index:o,value:p,key:r})}else i=!1;return{status:i,changedProperties:n}},i.prototype.refreshChild=function(e,t){if(this.checkInjectedModules){for(var i=this.getInjectedModules()||[],n=0,o=this.getInjectedServices()||[];n<o.length;n++){var s=o[n];-1===i.indexOf(s)&&i.push(s)}this.injectedModules=i}if(this.directivekeys){var p=[],a=this.validateChildren({},this.directivekeys,t||this.props);if(a&&Object.keys(a).length){if(!e&&this.skipRefresh)for(var c=0,l=this.skipRefresh;c<l.length;c++){delete a[l[c]]}if(this.prevProperties)for(var h=Object.keys(this.prevProperties),u=0;u<h.length;u++){var f=h[u];if(a.hasOwnProperty(f)){var d=this.compareObjects(this.prevProperties[f],a[f],f);if(d.status)delete a[f];else{d.changedProperties.length&&(p=p.concat(d.changedProperties));var y={};y[f]=a[f],this.prevProperties=r.extend(this.prevProperties,y)}}}else this.prevProperties=r.extend({},a,{},!0);if(p.length)for(var v=0,m=p;v<m.length;v++){var g=m[v],O=r.getValue(g.key+"."+g.index,this);O&&O.setProperties?O.setProperties(g.value):r.extend(O,g.value)}else this.setProperties(a,e)}}},i.prototype.componentWillUnmount=function(){clearTimeout(this.cachedTimeOut),this.initRenderCalled&&this.destroy()},i.prototype.renderReactTemplates=function(){this.isReactForeceUpdate=!0,this.forceUpdate(),this.isReactForeceUpdate=!1},i.prototype.clearTemplate=function(e,t){var r=this,i=[];e&&e.length?Array.prototype.forEach.call(e,function(e){var n=0,o=0;if(r.portals.forEach(function(t){t.propName===e&&(i.push(o),o++)}),t&&r.portals[i[t[n]]].propName==e)r.portals.splice(t,1),n++;else for(var s=0;s<r.portals.length;s++)r.portals[s].propName==e&&(r.portals.splice(s,1),s--)}):this.portals=[],this.renderReactTemplates()},i.prototype.validateChildren=function(e,r,i){for(var n=!1,o=0,s=t.Children.toArray(i.children);o<s.length;o++){var p=s[o],a=this.getChildType(p),c=r[a];if(a&&r){var l=this.getChildProps(t.Children.toArray(p.props.children),c);l.length&&(n=!0,e[p.type.propertyName||a]=l)}}return n?e:null},i.prototype.getChildType=function(e){return e.type&&e.type.isDirective?e.type.moduleName||"":""},i.prototype.getChildProps=function(e,t){for(var i=[],n=0,o=e;n<o.length;n++){var s=o[n],p=!1,a=void 0;"string"==typeof t?(p=!0,a=t):a=Object.keys(t)[0];var c=s.props;if(this.getChildType(s)===a)if(p||!c.children){var l=r.extend({},c,{},!0);this.processComplexTemplate(l,s.type),i.push(l)}else{var h=this.validateChildren(r.extend({},c),t[a],c)||c;h.children&&delete h.children,this.processComplexTemplate(h,s.type),i.push(h)}}return i},i.prototype.getInjectedServices=function(){for(var e=0,r=t.Children.toArray(this.props.children);e<r.length;e++){var i=r[e];if(i.type.isService)return i.props.services}return[]},i}(t.Component),c=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function i(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}(),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.render=function(){return null},t.isDirective=!0,t}(t.PureComponent),h=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function i(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}(),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return h(t,e),t.prototype.render=function(){return null},t.isService=!0,t}(t.PureComponent),f=r.getTemplateEngine();r.setTemplateEngine({compile:n}),e.ComponentBase=a,e.applyMixins=function(e,t){t.forEach(function(t){Object.getOwnPropertyNames(t.prototype).forEach(function(r){"isMounted"!==r&&"replaceState"!==r&&(e.prototype[r]=t.prototype[r])})})},e.ComplexBase=l,e.Inject=u,e.compile=n,Object.defineProperty(e,"__esModule",{value:!0})});
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react"),require("@syncfusion/ej2-base"),require("react-dom")):"function"==typeof define&&define.amd?define(["exports","react","@syncfusion/ej2-base","react-dom"],t):t(e.ej={},e.React,e.ej2Base,e.ReactDOM)}(this,function(e,t,r,i){"use strict";function n(e,n){return"string"==typeof e?f(e,n):function(n,o,s,p){var a=e,c=n;"object"==typeof a&&(a=e.template,c=r.extend({},n,e.data||{}));var l;l=p||document.createElement("div");var h=t.createElement(a,c),u=i.createPortal(h,l);if(u.propName=s,o.portals?o.portals.push(u):o.portals=[u],!p)return[l]}}var o=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function i(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}(),s=["alt","className","disabled","form","id","readOnly","style","tabIndex","title","type","name","onClick","onFocus","onBlur"],p=["accordion","tab","splitter"],a=function(e){function i(){var t=null!==e&&e.apply(this,arguments)||this;return t.attrKeys=[],t.cachedTimeOut=0,t.isAppendCalled=!1,t.initRenderCalled=!1,t.isReactForeceUpdate=!1,t.isReact=!0,t}return o(i,e),i.prototype.componentDidMount=function(){this.refreshChild(!0),this.canDelayUpdate=-1!==p.indexOf(this.getModuleName()),this.renderReactComponent(),this.portals&&this.portals.length&&this.renderReactTemplates()},i.prototype.renderReactComponent=function(){var e=this.reactElement;e&&(this.isAppendCalled=!0,this.appendTo(e))},i.prototype.shouldComponentUpdate=function(e){return this.initRenderCalled?(this.isAppendCalled||(clearTimeout(this.cachedTimeOut),this.isAppendCalled=!0,this.appendTo(this.reactElement)),this.updateProperties(e),!0):(this.updateProperties(e,!0),!0)},i.prototype.updateProperties=function(e,t){for(var i=this,n=r.extend({},e),o=0,s=Object.keys(e);o<s.length;o++){var p=s[o],a="className"===p;"children"!==p&&(a||r.isNullOrUndefined(this.htmlattributes[p])||this.htmlattributes[p]===n[p]||(this.htmlattributes[p]=n[p]),this.compareValues(this.props[p],e[p])?delete n[p]:-1!==this.attrKeys.indexOf(p)&&(a?(this.element.classList.remove(this.props[p]),this.element.classList.add(n[p])):"disabled"!==p&&delete n[p]))}n.children&&delete n.children,this.initRenderCalled&&(this.canDelayUpdate||this.props.delayUpdate)?setTimeout(function(){i.refreshProperties(n,e,t)}):this.refreshProperties(n,e,t)},i.prototype.refreshProperties=function(e,t,r){Object.keys(e).length&&(r||this.processComplexTemplate(e,this),this.setProperties(e,r)),this.refreshChild(r,t)},i.prototype.processComplexTemplate=function(e,t){var i=t.complexTemplate;if(i)for(var n in i){var o=i[n];e[n]&&r.setValue(o,r.getValue(n,e),e)}},i.prototype.getDefaultAttributes=function(){var e=this;this.isReact=!0;var t=Object.keys(this.props);this.htmlattributes={},this.attrKeys=s.concat(this.controlAttributes||[]);for(var r=0,i=t;r<i.length;r++){var n=i[r];-1===n.indexOf("data-")&&-1===n.indexOf("aria-")&&-1===this.attrKeys.indexOf(n)||(this.htmlattributes[n]=this.props[n])}return this.htmlattributes.ref||(this.htmlattributes.ref=function(t){e.reactElement=t}),this.htmlattributes},i.prototype.trigger=function(e,t,r){var i=this;if(!0!==this.isDestroyed){"change"!==e&&"input"!==e||this.props.onChange&&t.event&&this.props.onChange.call(void 0,{syntheticEvent:t.event,nativeEvent:{text:t.value},value:t.value,target:this});var n=this.isProtectedOnChange;this.isProtectedOnChange=!1,"created"===e?setTimeout(function(){i.modelObserver.notify(e,t,r)}):this.modelObserver.notify(e,t,r),this.isProtectedOnChange=n}},i.prototype.compareValues=function(e,t){var i=typeof e;if(i===typeof t){if(e===t)return!0;if((!r.isNullOrUndefined(e)&&e.constructor)!==(!r.isNullOrUndefined(t)&&t.constructor))return!1;if(e instanceof Date||e instanceof RegExp||e instanceof String||e instanceof Number||"function"===i)return e.toString()===t.toString();if(r.isObject(e)||Array.isArray(e)){var n=e,o=t;return r.isObject(n)&&(n=[e],o=[t]),this.compareObjects(n,o).status}}return!1},i.prototype.compareObjects=function(e,t,r){var i=!0,n=[];if(e.length===t.length)for(var o=0,s=t.length;o<s;o++){for(var p={},a=e[o],c=t[o],l=0,h=Object.keys(c);l<h.length;l++){var u=h[l],f=a[u],d=c[u];if(!a.hasOwnProperty(u)||!this.compareValues(d,f)){if(!r)return{status:!1};i=!1,p[u]=d}}Object.keys(p).length&&n.push({index:o,value:p,key:r})}else i=!1;return{status:i,changedProperties:n}},i.prototype.refreshChild=function(e,t){if(this.checkInjectedModules){for(var i=this.getInjectedModules()||[],n=0,o=this.getInjectedServices()||[];n<o.length;n++){var s=o[n];-1===i.indexOf(s)&&i.push(s)}this.injectedModules=i}if(this.directivekeys){var p=[],a=this.validateChildren({},this.directivekeys,t||this.props);if(a&&Object.keys(a).length){if(!e&&this.skipRefresh)for(var c=0,l=this.skipRefresh;c<l.length;c++){delete a[l[c]]}if(this.prevProperties)for(var h=Object.keys(this.prevProperties),u=0;u<h.length;u++){var f=h[u];if(a.hasOwnProperty(f)){var d=this.compareObjects(this.prevProperties[f],a[f],f);if(d.status)delete a[f];else{d.changedProperties.length&&(p=p.concat(d.changedProperties));var y={};y[f]=a[f],this.prevProperties=r.extend(this.prevProperties,y)}}}else this.prevProperties=r.extend({},a,{},!0);if(p.length)for(var v=0,m=p;v<m.length;v++){var g=m[v],O=r.getValue(g.key+"."+g.index,this);O&&O.setProperties?O.setProperties(g.value):r.extend(O,g.value)}else this.setProperties(a,e)}}},i.prototype.componentWillUnmount=function(){clearTimeout(this.cachedTimeOut),this.initRenderCalled&&this.destroy()},i.prototype.renderReactTemplates=function(){this.isReactForeceUpdate=!0,this.forceUpdate(),this.isReactForeceUpdate=!1},i.prototype.clearTemplate=function(e,t){var r=this,i=[];e&&e.length?Array.prototype.forEach.call(e,function(e){var n=0,o=0;if(r.portals.forEach(function(t){t.propName===e&&(i.push(o),o++)}),t&&r.portals[i[t[n]]].propName==e)r.portals.splice(t,1),n++;else for(var s=0;s<r.portals.length;s++)r.portals[s].propName==e&&(r.portals.splice(s,1),s--)}):this.portals=[],this.renderReactTemplates()},i.prototype.validateChildren=function(e,r,i){for(var n=!1,o=0,s=t.Children.toArray(i.children);o<s.length;o++){var p=s[o],a=this.getChildType(p),c=r[a];if(a&&r){var l=this.getChildProps(t.Children.toArray(p.props.children),c);l.length&&(n=!0,e[p.type.propertyName||a]=l)}}return n?e:null},i.prototype.getChildType=function(e){return e.type&&e.type.isDirective?e.type.moduleName||"":""},i.prototype.getChildProps=function(e,t){for(var i=[],n=0,o=e;n<o.length;n++){var s=o[n],p=!1,a=void 0;"string"==typeof t?(p=!0,a=t):a=Object.keys(t)[0];var c=s.props;if(this.getChildType(s)===a)if(p||!c.children){var l=r.extend({},c,{},!0);this.processComplexTemplate(l,s.type),i.push(l)}else{var h=this.validateChildren(r.extend({},c),t[a],c)||c;h.children&&delete h.children,this.processComplexTemplate(h,s.type),i.push(h)}}return i},i.prototype.getInjectedServices=function(){for(var e=0,r=t.Children.toArray(this.props.children);e<r.length;e++){var i=r[e];if(i.type.isService)return i.props.services}return[]},i}(t.Component),c=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function i(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}(),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.render=function(){return null},t.isDirective=!0,t}(t.PureComponent),h=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function i(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}(),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return h(t,e),t.prototype.render=function(){return null},t.isService=!0,t}(t.PureComponent),f=r.getTemplateEngine();r.setTemplateEngine({compile:n}),e.ComponentBase=a,e.applyMixins=function(e,t){t.forEach(function(t){Object.getOwnPropertyNames(t.prototype).forEach(function(r){"isMounted"!==r&&"replaceState"!==r&&(e.prototype[r]=t.prototype[r])})})},e.ComplexBase=l,e.Inject=u,e.compile=n,Object.defineProperty(e,"__esModule",{value:!0})});
//# sourceMappingURL=ej2-react-base.umd.min.js.map

@@ -184,3 +184,3 @@ import { Children, Component, PureComponent, createElement } from 'react';

typeVal === 'function') {
return value1.tostring === value2.tostring;
return value1.toString() === value2.toString();
}

@@ -187,0 +187,0 @@ if (isObject(value1) || Array.isArray(value1)) {

@@ -204,3 +204,3 @@ import { Children, Component, PureComponent, createElement } from 'react';

typeVal === 'function') {
return value1.tostring === value2.tostring;
return value1.toString() === value2.toString();
}

@@ -207,0 +207,0 @@ if (isObject(value1) || Array.isArray(value1)) {

/*!
* filename: ej2-react-base.min.js
* version : 18.3.35
* version : 18.3.47
* Copyright Syncfusion Inc. 2001 - 2020. All rights reserved.

@@ -10,3 +10,3 @@ * Use of this code is subject to the terms of our license.

*/
this.ej=this.ej||{},this.ej.reactbase=function(e,t,r,i){"use strict";function n(e,t){t.forEach(function(t){Object.getOwnPropertyNames(t.prototype).forEach(function(r){"isMounted"!==r&&"replaceState"!==r&&(e.prototype[r]=t.prototype[r])})})}function o(e,n){return"string"==typeof e?d(e,n):function(n,o,s,p){var a=e,c=n;"object"==typeof a&&(a=e.template,c=r.extend({},n,e.data||{}));var h;h=p||document.createElement("div");var l=t.createElement(a,c),u=i.createPortal(l,h);if(u.propName=s,o.portals?o.portals.push(u):o.portals=[u],!p)return[h]}}var s=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function i(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}(),p=["alt","className","disabled","form","id","readOnly","style","tabIndex","title","type","name","onClick","onFocus","onBlur"],a=["accordion","tab","splitter"],c=function(e){function i(){var t=null!==e&&e.apply(this,arguments)||this;return t.attrKeys=[],t.cachedTimeOut=0,t.isAppendCalled=!1,t.initRenderCalled=!1,t.isReactForeceUpdate=!1,t.isReact=!0,t}return s(i,e),i.prototype.componentDidMount=function(){this.refreshChild(!0),this.canDelayUpdate=-1!==a.indexOf(this.getModuleName()),this.renderReactComponent(),this.portals&&this.portals.length&&this.renderReactTemplates()},i.prototype.renderReactComponent=function(){var e=this.reactElement;e&&(this.isAppendCalled=!0,this.appendTo(e))},i.prototype.shouldComponentUpdate=function(e){return this.initRenderCalled?(this.isAppendCalled||(clearTimeout(this.cachedTimeOut),this.isAppendCalled=!0,this.appendTo(this.reactElement)),this.updateProperties(e),!0):(this.updateProperties(e,!0),!0)},i.prototype.updateProperties=function(e,t){for(var i=this,n=r.extend({},e),o=0,s=Object.keys(e);o<s.length;o++){var p=s[o],a="className"===p;"children"!==p&&(a||r.isNullOrUndefined(this.htmlattributes[p])||this.htmlattributes[p]===n[p]||(this.htmlattributes[p]=n[p]),this.compareValues(this.props[p],e[p])?delete n[p]:-1!==this.attrKeys.indexOf(p)&&(a?(this.element.classList.remove(this.props[p]),this.element.classList.add(n[p])):"disabled"!==p&&delete n[p]))}n.children&&delete n.children,this.initRenderCalled&&(this.canDelayUpdate||this.props.delayUpdate)?setTimeout(function(){i.refreshProperties(n,e,t)}):this.refreshProperties(n,e,t)},i.prototype.refreshProperties=function(e,t,r){Object.keys(e).length&&(r||this.processComplexTemplate(e,this),this.setProperties(e,r)),this.refreshChild(r,t)},i.prototype.processComplexTemplate=function(e,t){var i=t.complexTemplate;if(i)for(var n in i){var o=i[n];e[n]&&r.setValue(o,r.getValue(n,e),e)}},i.prototype.getDefaultAttributes=function(){var e=this;this.isReact=!0;var t=Object.keys(this.props);this.htmlattributes={},this.attrKeys=p.concat(this.controlAttributes||[]);for(var r=0,i=t;r<i.length;r++){var n=i[r];-1===n.indexOf("data-")&&-1===n.indexOf("aria-")&&-1===this.attrKeys.indexOf(n)||(this.htmlattributes[n]=this.props[n])}return this.htmlattributes.ref||(this.htmlattributes.ref=function(t){e.reactElement=t}),this.htmlattributes},i.prototype.trigger=function(e,t,r){var i=this;if(!0!==this.isDestroyed){"change"!==e&&"input"!==e||this.props.onChange&&t.event&&this.props.onChange.call(void 0,{syntheticEvent:t.event,nativeEvent:{text:t.value},value:t.value,target:this});var n=this.isProtectedOnChange;this.isProtectedOnChange=!1,"created"===e?setTimeout(function(){i.modelObserver.notify(e,t,r)}):this.modelObserver.notify(e,t,r),this.isProtectedOnChange=n}},i.prototype.compareValues=function(e,t){var i=typeof e;if(i===typeof t){if(e===t)return!0;if(e.constructor!==t.constructor)return!1;if(e instanceof Date||e instanceof RegExp||e instanceof String||e instanceof Number||"function"===i)return e.tostring===t.tostring;if(r.isObject(e)||Array.isArray(e)){var n=e,o=t;return r.isObject(n)&&(n=[e],o=[t]),this.compareObjects(n,o).status}}return!1},i.prototype.compareObjects=function(e,t,r){var i=!0,n=[];if(e.length===t.length)for(var o=0,s=t.length;o<s;o++){for(var p={},a=e[o],c=t[o],h=0,l=Object.keys(c);h<l.length;h++){var u=l[h],f=a[u],d=c[u];if(!a.hasOwnProperty(u)||!this.compareValues(d,f)){if(!r)return{status:!1};i=!1,p[u]=d}}Object.keys(p).length&&n.push({index:o,value:p,key:r})}else i=!1;return{status:i,changedProperties:n}},i.prototype.refreshChild=function(e,t){if(this.checkInjectedModules){for(var i=this.getInjectedModules()||[],n=0,o=this.getInjectedServices()||[];n<o.length;n++){var s=o[n];-1===i.indexOf(s)&&i.push(s)}this.injectedModules=i}if(this.directivekeys){var p=[],a=this.validateChildren({},this.directivekeys,t||this.props);if(a&&Object.keys(a).length){if(!e&&this.skipRefresh)for(var c=0,h=this.skipRefresh;c<h.length;c++)delete a[h[c]];if(this.prevProperties)for(var l=Object.keys(this.prevProperties),u=0;u<l.length;u++){var f=l[u];if(a.hasOwnProperty(f)){var d=this.compareObjects(this.prevProperties[f],a[f],f);if(d.status)delete a[f];else{d.changedProperties.length&&(p=p.concat(d.changedProperties));var y={};y[f]=a[f],this.prevProperties=r.extend(this.prevProperties,y)}}}else this.prevProperties=r.extend({},a,{},!0);if(p.length)for(var v=0,m=p;v<m.length;v++){var g=m[v],O=r.getValue(g.key+"."+g.index,this);O&&O.setProperties?O.setProperties(g.value):r.extend(O,g.value)}else this.setProperties(a,e)}}},i.prototype.componentWillUnmount=function(){clearTimeout(this.cachedTimeOut),this.initRenderCalled&&this.destroy()},i.prototype.renderReactTemplates=function(){this.isReactForeceUpdate=!0,this.forceUpdate(),this.isReactForeceUpdate=!1},i.prototype.clearTemplate=function(e,t){var r=this,i=[];e&&e.length?Array.prototype.forEach.call(e,function(e){var n=0,o=0;if(r.portals.forEach(function(t){t.propName===e&&(i.push(o),o++)}),t&&r.portals[i[t[n]]].propName==e)r.portals.splice(t,1),n++;else for(var s=0;s<r.portals.length;s++)r.portals[s].propName==e&&(r.portals.splice(s,1),s--)}):this.portals=[],this.renderReactTemplates()},i.prototype.validateChildren=function(e,r,i){for(var n=!1,o=0,s=t.Children.toArray(i.children);o<s.length;o++){var p=s[o],a=this.getChildType(p),c=r[a];if(a&&r){var h=this.getChildProps(t.Children.toArray(p.props.children),c);h.length&&(n=!0,e[p.type.propertyName||a]=h)}}return n?e:null},i.prototype.getChildType=function(e){return e.type&&e.type.isDirective?e.type.moduleName||"":""},i.prototype.getChildProps=function(e,t){for(var i=[],n=0,o=e;n<o.length;n++){var s=o[n],p=!1,a=void 0;"string"==typeof t?(p=!0,a=t):a=Object.keys(t)[0];var c=s.props;if(this.getChildType(s)===a)if(p||!c.children){var h=r.extend({},c,{},!0);this.processComplexTemplate(h,s.type),i.push(h)}else{var l=this.validateChildren(r.extend({},c),t[a],c)||c;l.children&&delete l.children,this.processComplexTemplate(l,s.type),i.push(l)}}return i},i.prototype.getInjectedServices=function(){for(var e=0,r=t.Children.toArray(this.props.children);e<r.length;e++){var i=r[e];if(i.type.isService)return i.props.services}return[]},i}(t.Component),h=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function i(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}(),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return h(t,e),t.prototype.render=function(){return null},t.isDirective=!0,t}(t.PureComponent),u=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function i(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}(),f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t.prototype.render=function(){return null},t.isService=!0,t}(t.PureComponent),d=r.getTemplateEngine();return r.setTemplateEngine({compile:o}),e.ComponentBase=c,e.applyMixins=n,e.ComplexBase=l,e.Inject=f,e.compile=o,e}({},React,ej.base,ReactDOM),this.ejs=ej;
this.ej=this.ej||{},this.ej.reactbase=function(e,t,r,i){"use strict";function n(e,t){t.forEach(function(t){Object.getOwnPropertyNames(t.prototype).forEach(function(r){"isMounted"!==r&&"replaceState"!==r&&(e.prototype[r]=t.prototype[r])})})}function o(e,n){return"string"==typeof e?d(e,n):function(n,o,s,p){var a=e,c=n;"object"==typeof a&&(a=e.template,c=r.extend({},n,e.data||{}));var l;l=p||document.createElement("div");var h=t.createElement(a,c),u=i.createPortal(h,l);if(u.propName=s,o.portals?o.portals.push(u):o.portals=[u],!p)return[l]}}var s=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function i(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}(),p=["alt","className","disabled","form","id","readOnly","style","tabIndex","title","type","name","onClick","onFocus","onBlur"],a=["accordion","tab","splitter"],c=function(e){function i(){var t=null!==e&&e.apply(this,arguments)||this;return t.attrKeys=[],t.cachedTimeOut=0,t.isAppendCalled=!1,t.initRenderCalled=!1,t.isReactForeceUpdate=!1,t.isReact=!0,t}return s(i,e),i.prototype.componentDidMount=function(){this.refreshChild(!0),this.canDelayUpdate=-1!==a.indexOf(this.getModuleName()),this.renderReactComponent(),this.portals&&this.portals.length&&this.renderReactTemplates()},i.prototype.renderReactComponent=function(){var e=this.reactElement;e&&(this.isAppendCalled=!0,this.appendTo(e))},i.prototype.shouldComponentUpdate=function(e){return this.initRenderCalled?(this.isAppendCalled||(clearTimeout(this.cachedTimeOut),this.isAppendCalled=!0,this.appendTo(this.reactElement)),this.updateProperties(e),!0):(this.updateProperties(e,!0),!0)},i.prototype.updateProperties=function(e,t){for(var i=this,n=r.extend({},e),o=0,s=Object.keys(e);o<s.length;o++){var p=s[o],a="className"===p;"children"!==p&&(a||r.isNullOrUndefined(this.htmlattributes[p])||this.htmlattributes[p]===n[p]||(this.htmlattributes[p]=n[p]),this.compareValues(this.props[p],e[p])?delete n[p]:-1!==this.attrKeys.indexOf(p)&&(a?(this.element.classList.remove(this.props[p]),this.element.classList.add(n[p])):"disabled"!==p&&delete n[p]))}n.children&&delete n.children,this.initRenderCalled&&(this.canDelayUpdate||this.props.delayUpdate)?setTimeout(function(){i.refreshProperties(n,e,t)}):this.refreshProperties(n,e,t)},i.prototype.refreshProperties=function(e,t,r){Object.keys(e).length&&(r||this.processComplexTemplate(e,this),this.setProperties(e,r)),this.refreshChild(r,t)},i.prototype.processComplexTemplate=function(e,t){var i=t.complexTemplate;if(i)for(var n in i){var o=i[n];e[n]&&r.setValue(o,r.getValue(n,e),e)}},i.prototype.getDefaultAttributes=function(){var e=this;this.isReact=!0;var t=Object.keys(this.props);this.htmlattributes={},this.attrKeys=p.concat(this.controlAttributes||[]);for(var r=0,i=t;r<i.length;r++){var n=i[r];-1===n.indexOf("data-")&&-1===n.indexOf("aria-")&&-1===this.attrKeys.indexOf(n)||(this.htmlattributes[n]=this.props[n])}return this.htmlattributes.ref||(this.htmlattributes.ref=function(t){e.reactElement=t}),this.htmlattributes},i.prototype.trigger=function(e,t,r){var i=this;if(!0!==this.isDestroyed){"change"!==e&&"input"!==e||this.props.onChange&&t.event&&this.props.onChange.call(void 0,{syntheticEvent:t.event,nativeEvent:{text:t.value},value:t.value,target:this});var n=this.isProtectedOnChange;this.isProtectedOnChange=!1,"created"===e?setTimeout(function(){i.modelObserver.notify(e,t,r)}):this.modelObserver.notify(e,t,r),this.isProtectedOnChange=n}},i.prototype.compareValues=function(e,t){var i=typeof e;if(i===typeof t){if(e===t)return!0;if((!r.isNullOrUndefined(e)&&e.constructor)!==(!r.isNullOrUndefined(t)&&t.constructor))return!1;if(e instanceof Date||e instanceof RegExp||e instanceof String||e instanceof Number||"function"===i)return e.toString()===t.toString();if(r.isObject(e)||Array.isArray(e)){var n=e,o=t;return r.isObject(n)&&(n=[e],o=[t]),this.compareObjects(n,o).status}}return!1},i.prototype.compareObjects=function(e,t,r){var i=!0,n=[];if(e.length===t.length)for(var o=0,s=t.length;o<s;o++){for(var p={},a=e[o],c=t[o],l=0,h=Object.keys(c);l<h.length;l++){var u=h[l],f=a[u],d=c[u];if(!a.hasOwnProperty(u)||!this.compareValues(d,f)){if(!r)return{status:!1};i=!1,p[u]=d}}Object.keys(p).length&&n.push({index:o,value:p,key:r})}else i=!1;return{status:i,changedProperties:n}},i.prototype.refreshChild=function(e,t){if(this.checkInjectedModules){for(var i=this.getInjectedModules()||[],n=0,o=this.getInjectedServices()||[];n<o.length;n++){var s=o[n];-1===i.indexOf(s)&&i.push(s)}this.injectedModules=i}if(this.directivekeys){var p=[],a=this.validateChildren({},this.directivekeys,t||this.props);if(a&&Object.keys(a).length){if(!e&&this.skipRefresh)for(var c=0,l=this.skipRefresh;c<l.length;c++)delete a[l[c]];if(this.prevProperties)for(var h=Object.keys(this.prevProperties),u=0;u<h.length;u++){var f=h[u];if(a.hasOwnProperty(f)){var d=this.compareObjects(this.prevProperties[f],a[f],f);if(d.status)delete a[f];else{d.changedProperties.length&&(p=p.concat(d.changedProperties));var y={};y[f]=a[f],this.prevProperties=r.extend(this.prevProperties,y)}}}else this.prevProperties=r.extend({},a,{},!0);if(p.length)for(var v=0,m=p;v<m.length;v++){var g=m[v],O=r.getValue(g.key+"."+g.index,this);O&&O.setProperties?O.setProperties(g.value):r.extend(O,g.value)}else this.setProperties(a,e)}}},i.prototype.componentWillUnmount=function(){clearTimeout(this.cachedTimeOut),this.initRenderCalled&&this.destroy()},i.prototype.renderReactTemplates=function(){this.isReactForeceUpdate=!0,this.forceUpdate(),this.isReactForeceUpdate=!1},i.prototype.clearTemplate=function(e,t){var r=this,i=[];e&&e.length?Array.prototype.forEach.call(e,function(e){var n=0,o=0;if(r.portals.forEach(function(t){t.propName===e&&(i.push(o),o++)}),t&&r.portals[i[t[n]]].propName==e)r.portals.splice(t,1),n++;else for(var s=0;s<r.portals.length;s++)r.portals[s].propName==e&&(r.portals.splice(s,1),s--)}):this.portals=[],this.renderReactTemplates()},i.prototype.validateChildren=function(e,r,i){for(var n=!1,o=0,s=t.Children.toArray(i.children);o<s.length;o++){var p=s[o],a=this.getChildType(p),c=r[a];if(a&&r){var l=this.getChildProps(t.Children.toArray(p.props.children),c);l.length&&(n=!0,e[p.type.propertyName||a]=l)}}return n?e:null},i.prototype.getChildType=function(e){return e.type&&e.type.isDirective?e.type.moduleName||"":""},i.prototype.getChildProps=function(e,t){for(var i=[],n=0,o=e;n<o.length;n++){var s=o[n],p=!1,a=void 0;"string"==typeof t?(p=!0,a=t):a=Object.keys(t)[0];var c=s.props;if(this.getChildType(s)===a)if(p||!c.children){var l=r.extend({},c,{},!0);this.processComplexTemplate(l,s.type),i.push(l)}else{var h=this.validateChildren(r.extend({},c),t[a],c)||c;h.children&&delete h.children,this.processComplexTemplate(h,s.type),i.push(h)}}return i},i.prototype.getInjectedServices=function(){for(var e=0,r=t.Children.toArray(this.props.children);e<r.length;e++){var i=r[e];if(i.type.isService)return i.props.services}return[]},i}(t.Component),l=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function i(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}(),h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.render=function(){return null},t.isDirective=!0,t}(t.PureComponent),u=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function i(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}(),f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t.prototype.render=function(){return null},t.isService=!0,t}(t.PureComponent),d=r.getTemplateEngine();return r.setTemplateEngine({compile:o}),e.ComponentBase=c,e.applyMixins=n,e.ComplexBase=h,e.Inject=f,e.compile=o,e}({},React,ej.base,ReactDOM),this.ejs=ej;
//# sourceMappingURL=ej2-react-base.min.js.map
/*!
* filename: index.d.ts
* version : 18.3.35
* version : 18.3.47
* Copyright Syncfusion Inc. 2001 - 2020. All rights reserved.

@@ -5,0 +5,0 @@ * Use of this code is subject to the terms of our license.

{
"_from": "@syncfusion/ej2-react-base@*",
"_id": "@syncfusion/ej2-react-base@18.3.37",
"_id": "@syncfusion/ej2-react-base@18.3.35",
"_inBundle": false,
"_integrity": "sha512-dDVF/SWu3P0aK/1NW9/JEQ+VQo8wNAUFKyxoeiElVgx5bGKTpvqPt1toi5SljA11XWJDBYrojVsFG3hg+Jlnfw==",
"_integrity": "sha512-w5SMfBga4EI3lS8OWw5IbxsTIawShYdcxxDNEtvFU2J1v1xuBO0/9acFQpZs0VfYddcxar8/Qh++75b2obarPw==",
"_location": "/@syncfusion/ej2-react-base",

@@ -54,4 +54,4 @@ "_phantomChildren": {},

],
"_resolved": "http://nexus.syncfusion.com/repository/ej2-release/@syncfusion/ej2-react-base/-/ej2-react-base-17.2.48.tgz",
"_shasum": "d08abc1e711e441b3b6ac90a2ab410cba9a4bba1",
"_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix/@syncfusion/ej2-react-base/-/ej2-react-base-18.3.35.tgz",
"_shasum": "74c5a9081b5f9e48bef069ff4e0dee04e659a7ce",
"_spec": "@syncfusion/ej2-react-base@*",

@@ -67,3 +67,3 @@ "_where": "/jenkins/workspace/automation_release_18.1.0.1-52JLNOGRCDHXRVQM3W564VPLFCPHWUYDYU3I3DVRABSR7F6AIFYQ/packages/included",

"dependencies": {
"@syncfusion/ej2-base": "~18.3.35"
"@syncfusion/ej2-base": "~18.3.47"
},

@@ -98,4 +98,4 @@ "deprecated": false,

"typings": "index.d.ts",
"version": "18.3.37",
"version": "18.3.47",
"sideEffects": true
}

@@ -203,3 +203,3 @@ var __extends = (this && this.__extends) || (function () {

typeVal === 'function') {
return value1.tostring === value2.tostring;
return value1.toString() === value2.toString();
}

@@ -206,0 +206,0 @@ if (isObject(value1) || Array.isArray(value1)) {

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc