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 19.4.43 to 19.4.47

6

CHANGELOG.md

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

### Common
#### Bug Fixes
- `F167610` - Resolved the Console error occurs when using a value and `valueTemplate` together.
## 19.4.43 (2022-01-18)

@@ -7,0 +13,0 @@

11

dist/ej2-react-base.umd.min.js

@@ -1,2 +0,11 @@

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react"),require("react-dom"),require("@syncfusion/ej2-base")):"function"==typeof define&&define.amd?define(["exports","react","react-dom","@syncfusion/ej2-base"],t):t(e.ej={},e.React,e.ReactDOM,e.ej2Base)}(this,function(e,t,r,i){"use strict";function o(e,o){return"string"==typeof e?f(e,o):function(o,n,s,a){var p=e,l=o;"object"==typeof p&&(p=e.template,l=i.extend({},o,e.data||{}));var c;if(c=a||document.createElement("div"),n&&n.isLegacyTemplate)r.render(p(l),c),a||i.detach(c);else{var h=t.createElement(p,l),d=r.createPortal(h,c);d.propName=s,n.portals?n.portals.push(d):n.portals=[d]}if(!a)return[c]}}var n=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"],a=["accordion","tab","splitter"],p=new RegExp("]"),l=function(e){function o(){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.isshouldComponentUpdateCalled=!1,t}return n(o,e),o.prototype.componentDidMount=function(){this.refreshChild(!0),this.canDelayUpdate=-1!==a.indexOf(this.getModuleName()),this.renderReactComponent(),this.portals&&this.portals.length&&this.renderReactTemplates()},o.prototype.componentDidUpdate=function(e){this.isshouldComponentUpdateCalled||!this.initRenderCalled||this.isReactForeceUpdate||(this.isshouldComponentUpdateCalled=!0,e!==this.props&&this.refreshProperties(this.props,!0))},o.prototype.renderReactComponent=function(){var e=this.reactElement;e&&(this.isAppendCalled=!0,this.appendTo(e))},o.prototype.shouldComponentUpdate=function(e){return this.isshouldComponentUpdateCalled=!0,this.initRenderCalled?(this.isAppendCalled||(clearTimeout(this.cachedTimeOut),this.isAppendCalled=!0,this.appendTo(this.reactElement)),this.updateProperties(e),!0):(this.updateProperties(e,!0),!0)},o.prototype.updateProperties=function(e,t){for(var r=this,o=i.extend({},e),n=0,s=Object.keys(e);n<s.length;n++){var a=s[n],p="className"===a;"children"!==a&&(p||i.isNullOrUndefined(this.htmlattributes[a])||this.htmlattributes[a]===o[a]||(this.htmlattributes[a]=o[a]),this.compareValues(this.props[a],e[a])?delete o[a]:-1!==this.attrKeys.indexOf(a)?p?(this.element.classList.remove(this.props[a]),this.element.classList.add(o[a])):"disabled"!==a&&delete o[a]:"value"===a&&e[a]===this[a]?delete o[a]:"content"===a&&"function"==typeof o[a]&&delete o[a])}o.children&&delete o.children,this.initRenderCalled&&(this.canDelayUpdate||this.props.delayUpdate)?setTimeout(function(){r.refreshProperties(o,e,t)}):this.refreshProperties(o,e,t)},o.prototype.refreshProperties=function(e,t,r){Object.keys(e).length&&(r||this.processComplexTemplate(e,this),this.setProperties(e,r)),this.refreshChild(r,t)},o.prototype.processComplexTemplate=function(e,t){var r=t.complexTemplate;if(r)for(var o in r){var n=r[o];e[o]&&i.setValue(n,i.getValue(o,e),e)}},o.prototype.getDefaultAttributes=function(){var e=this;this.isReact=!0;var t=Object.keys(this.props);this.htmlattributes||(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]&&(this.htmlattributes[n]=this.props[n])}if(!this.htmlattributes.ref){this.htmlattributes.ref=function(t){e.reactElement=t};-1!==["autocomplete","combobox","dropdownlist","dropdowntree","multiselect","listbox","colorpicker","numerictextbox","textbox","uploader","maskedtextbox","slider","datepicker","datetimepicker","daterangepicker","timepicker","checkbox","switch","radio"].indexOf(this.getModuleName())&&(this.htmlattributes.key=""+o.reactUid,o.reactUid++)}return this.htmlattributes},o.prototype.trigger=function(e,t,r){var o=this;if(!0!==this.isDestroyed&&this.modelObserver){if(p.test(e)){var n=i.getValue(e,this);n?(n.call(this,t),r&&r.call(this,t)):r&&r.call(this,t)}"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 s=this.isProtectedOnChange;this.isProtectedOnChange=!1,"created"===e?setTimeout(function(){o.isDestroyed||o.modelObserver.notify(e,t,r)}):this.modelObserver.notify(e,t,r),this.isProtectedOnChange=s}},o.prototype.compareValues=function(e,t){if(typeof e===typeof t){if(e===t)return!0;if((!i.isNullOrUndefined(e)&&e.constructor)!==(!i.isNullOrUndefined(t)&&t.constructor))return!1;if(e instanceof Date||e instanceof RegExp||e instanceof String||e instanceof Number)return e.toString()===t.toString();if(i.isObject(e)||Array.isArray(e)){var r=e,o=t;return i.isObject(r)&&(r=[e],o=[t]),this.compareObjects(r,o).status}}return!1},o.prototype.compareObjects=function(e,t,r){var i=!0,o=[];if(e.length===t.length)for(var n=0,s=t.length;n<s;n++){var a={},p=e[n],l=t[n],c=Object.keys(l);if(0!==c.length)for(var h=0,d=c;h<d.length;h++){var u=d[h],f=p[u],y=l[u];if("items"===u)for(var m=0;m<y.length;m++)if("richtexteditor"===this.getModuleName()&&"object"==typeof y[m])return{status:!0};if("grid"===this.getModuleName()&&"field"===u&&(a[u]=y),!p.hasOwnProperty(u)||!this.compareValues(f,y)){if(!r)return{status:!1};i=!1,a[u]=y}}else{if(!r)return{status:!1};i=!1}Object.keys(a).length&&o.push({index:n,value:a,key:r})}else i=!1;return{status:i,changedProperties:o}},o.prototype.refreshChild=function(e,t){if(this.checkInjectedModules){for(var r=this.getInjectedModules()||[],o=0,n=this.getInjectedServices()||[];o<n.length;o++){var s=n[o];-1===r.indexOf(s)&&r.push(s)}this.injectedModules=r}if(this.directivekeys){var a=[],p=this.validateChildren({},this.directivekeys,t||this.props);if(p&&Object.keys(p).length){if(!e&&this.skipRefresh)for(var l=0,c=this.skipRefresh;l<c.length;l++){delete p[c[l]]}if(this.prevProperties)for(var h=Object.keys(this.prevProperties),d=0;d<h.length;d++){var u=h[d];if(p.hasOwnProperty(u)){var f=this.compareObjects(this.prevProperties[u],p[u],u);if(f.status)delete p[u];else{f.changedProperties.length&&(a=a.concat(f.changedProperties));var y={};y[u]=p[u],this.prevProperties=i.extend(this.prevProperties,y)}}}else this.prevProperties=i.extend({},p,{},!0);if(a.length)if("grid"===this.getModuleName()&&"columns"===u)for(var m=0,v=this.columns;m<v.length;m++){if(i.getValue("field",v[m])===i.getValue(m+".value.field",a)){var g=i.getValue(a[m].key+"."+a[m].index,this);g&&g.setProperties?g.setProperties(a[m].value):i.extend(g,a[m].value)}}else for(var b=0,O=a;b<O.length;b++){var C=O[b],x=i.getValue(C.key+"."+C.index,this);x&&x.setProperties?x.setProperties(C.value):i.extend(x,C.value)}else this.setProperties(p,e)}}},o.prototype.componentWillUnmount=function(){clearTimeout(this.cachedTimeOut);(this.initRenderCalled&&this.isAppendCalled&&this.element&&!["dropdowntree","checkbox"].indexOf(this.getModuleName())?document.body.contains(this.element):!this.isDestroyed)&&this.destroy()},o.prototype.appendReactElement=function(e,t){r.render(r.createPortal(e,t),t)},o.prototype.renderReactTemplates=function(e){this.isReactForeceUpdate=!0,e?this.forceUpdate(e):this.forceUpdate(),this.isReactForeceUpdate=!1},o.prototype.clearTemplate=function(e,t,r){var i=this,o=[];e&&e.length?Array.prototype.forEach.call(e,function(e){var r=0,n=0;if(i.portals.forEach(function(t){t.propName===e&&(o.push(n),n++)}),t&&i.portals[o[t[r]]].propName==e)i.portals.splice(t,1),r++;else for(var s=0;s<i.portals.length;s++)i.portals[s].propName==e&&(i.portals.splice(s,1),s--)}):this.portals=[],this.renderReactTemplates(r)},o.prototype.validateChildren=function(e,r,i){for(var o=!1,n=0,s=t.Children.toArray(i.children);n<s.length;n++){var a=s[n],p=this.getChildType(a),l=r[p];if(p&&r){var c=this.getChildProps(t.Children.toArray(a.props.children),l);c.length&&(o=!0,e[a.type.propertyName||p]=c)}}return o?e:null},o.prototype.getChildType=function(e){return e.type&&e.type.isDirective?e.type.moduleName||"":""},o.prototype.getChildProps=function(e,t){for(var r=[],o=0,n=e;o<n.length;o++){var s=n[o],a=!1,p=void 0;"string"==typeof t?(a=!0,p=t):p=Object.keys(t)[0];var l=s.props;if(this.getChildType(s)===p)if(a||!l.children){var c=i.extend({},l,{},!0);this.processComplexTemplate(c,s.type),r.push(c)}else{var h=this.validateChildren(i.extend({},l),t[p],l)||l;h.children&&delete h.children,this.processComplexTemplate(h,s.type),r.push(h)}}return r},o.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[]},o.reactUid=1,o}(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)}}(),h=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),d=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 d(t,e),t.prototype.render=function(){return null},t.isService=!0,t}(t.PureComponent),f=i.getTemplateEngine();i.setTemplateEngine({compile:o}),e.ComponentBase=l,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=h,e.Inject=u,e.compile=o,Object.defineProperty(e,"__esModule",{value:!0})});
/*!
* filename: ej2-react-base.umd.min.js
* version : 19.4.47
* Copyright Syncfusion Inc. 2001 - 2020. All rights reserved.
* Use of this code is subject to the terms of our license.
* A copy of the current license can be obtained at any time by e-mailing
* licensing@syncfusion.com. Any infringement will be prosecuted under
* applicable laws.
*/
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react"),require("react-dom"),require("@syncfusion/ej2-base")):"function"==typeof define&&define.amd?define(["exports","react","react-dom","@syncfusion/ej2-base"],t):t(e.ej={},e.React,e.ReactDOM,e.ej2Base)}(this,function(e,t,r,i){"use strict";function o(e,o){return"string"==typeof e?f(e,o):function(o,n,s,a){var p=e,l=o;"object"==typeof p&&(p=e.template,l=i.extend({},o,e.data||{}));var c;if(c=a||document.createElement("div"),n&&n.isLegacyTemplate)r.render(p(l),c),a||i.detach(c);else{var h=t.createElement(p,l),d=r.createPortal(h,c);d.propName=s,n.portals?n.portals.push(d):n.portals=[d]}if(!a)return[c]}}var n=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"],a=["accordion","tab","splitter"],p=new RegExp("]"),l=function(e){function o(){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.isshouldComponentUpdateCalled=!1,t}return n(o,e),o.prototype.componentDidMount=function(){this.refreshChild(!0),this.canDelayUpdate=-1!==a.indexOf(this.getModuleName()),this.renderReactComponent(),this.portals&&this.portals.length&&this.renderReactTemplates()},o.prototype.componentDidUpdate=function(e){this.isshouldComponentUpdateCalled||!this.initRenderCalled||this.isReactForeceUpdate||(this.isshouldComponentUpdateCalled=!0,e!==this.props&&this.refreshProperties(this.props,!0))},o.prototype.renderReactComponent=function(){var e=this.reactElement;e&&(this.isAppendCalled=!0,this.appendTo(e))},o.prototype.shouldComponentUpdate=function(e){return this.isshouldComponentUpdateCalled=!0,this.initRenderCalled?(this.isAppendCalled||(clearTimeout(this.cachedTimeOut),this.isAppendCalled=!0,this.appendTo(this.reactElement)),this.updateProperties(e),!0):(this.updateProperties(e,!0),!0)},o.prototype.updateProperties=function(e,t){for(var r=this,o=i.extend({},e),n=0,s=Object.keys(e);n<s.length;n++){var a=s[n],p="className"===a;"children"!==a&&(p||i.isNullOrUndefined(this.htmlattributes[a])||this.htmlattributes[a]===o[a]||(this.htmlattributes[a]=o[a]),this.compareValues(this.props[a],e[a])?delete o[a]:-1!==this.attrKeys.indexOf(a)?p?(this.element.classList.remove(this.props[a]),this.element.classList.add(o[a])):"disabled"!==a&&delete o[a]:"value"===a&&e[a]===this[a]?delete o[a]:"valueTemplate"!==a&&"itemTemplate"!==a||e[a].toString()!==this[a].toString()?"content"===a&&"function"==typeof o[a]&&delete o[a]:delete o[a])}o.children&&delete o.children,this.initRenderCalled&&(this.canDelayUpdate||this.props.delayUpdate)?setTimeout(function(){r.refreshProperties(o,e,t)}):this.refreshProperties(o,e,t)},o.prototype.refreshProperties=function(e,t,r){Object.keys(e).length&&(r||this.processComplexTemplate(e,this),this.setProperties(e,r)),this.refreshChild(r,t)},o.prototype.processComplexTemplate=function(e,t){var r=t.complexTemplate;if(r)for(var o in r){var n=r[o];e[o]&&i.setValue(n,i.getValue(o,e),e)}},o.prototype.getDefaultAttributes=function(){var e=this;this.isReact=!0;var t=Object.keys(this.props);this.htmlattributes||(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]&&(this.htmlattributes[n]=this.props[n])}if(!this.htmlattributes.ref){this.htmlattributes.ref=function(t){e.reactElement=t};-1!==["autocomplete","combobox","dropdownlist","dropdowntree","multiselect","listbox","colorpicker","numerictextbox","textbox","uploader","maskedtextbox","slider","datepicker","datetimepicker","daterangepicker","timepicker","checkbox","switch","radio"].indexOf(this.getModuleName())&&(this.htmlattributes.key=""+o.reactUid,o.reactUid++)}return this.htmlattributes},o.prototype.trigger=function(e,t,r){var o=this;if(!0!==this.isDestroyed&&this.modelObserver){if(p.test(e)){var n=i.getValue(e,this);n?(n.call(this,t),r&&r.call(this,t)):r&&r.call(this,t)}"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 s=this.isProtectedOnChange;this.isProtectedOnChange=!1,"created"===e?setTimeout(function(){o.isDestroyed||o.modelObserver.notify(e,t,r)}):this.modelObserver.notify(e,t,r),this.isProtectedOnChange=s}},o.prototype.compareValues=function(e,t){if(typeof e===typeof t){if(e===t)return!0;if((!i.isNullOrUndefined(e)&&e.constructor)!==(!i.isNullOrUndefined(t)&&t.constructor))return!1;if(e instanceof Date||e instanceof RegExp||e instanceof String||e instanceof Number)return e.toString()===t.toString();if(i.isObject(e)||Array.isArray(e)){var r=e,o=t;return i.isObject(r)&&(r=[e],o=[t]),this.compareObjects(r,o).status}}return!1},o.prototype.compareObjects=function(e,t,r){var i=!0,o=[];if(e.length===t.length)for(var n=0,s=t.length;n<s;n++){var a={},p=e[n],l=t[n],c=Object.keys(l);if(0!==c.length)for(var h=0,d=c;h<d.length;h++){var u=d[h],f=p[u],y=l[u];if("items"===u)for(var m=0;m<y.length;m++)if("richtexteditor"===this.getModuleName()&&"object"==typeof y[m])return{status:!0};if("grid"===this.getModuleName()&&"field"===u&&(a[u]=y),!p.hasOwnProperty(u)||!this.compareValues(f,y)){if(!r)return{status:!1};i=!1,a[u]=y}}else{if(!r)return{status:!1};i=!1}Object.keys(a).length&&o.push({index:n,value:a,key:r})}else i=!1;return{status:i,changedProperties:o}},o.prototype.refreshChild=function(e,t){if(this.checkInjectedModules){for(var r=this.getInjectedModules()||[],o=0,n=this.getInjectedServices()||[];o<n.length;o++){var s=n[o];-1===r.indexOf(s)&&r.push(s)}this.injectedModules=r}if(this.directivekeys){var a=[],p=this.validateChildren({},this.directivekeys,t||this.props);if(p&&Object.keys(p).length){if(!e&&this.skipRefresh)for(var l=0,c=this.skipRefresh;l<c.length;l++){delete p[c[l]]}if(this.prevProperties)for(var h=Object.keys(this.prevProperties),d=0;d<h.length;d++){var u=h[d];if(p.hasOwnProperty(u)){var f=this.compareObjects(this.prevProperties[u],p[u],u);if(f.status)delete p[u];else{f.changedProperties.length&&(a=a.concat(f.changedProperties));var y={};y[u]=p[u],this.prevProperties=i.extend(this.prevProperties,y)}}}else this.prevProperties=i.extend({},p,{},!0);if(a.length)if("grid"===this.getModuleName()&&"columns"===u)for(var m=0,v=this.columns;m<v.length;m++){if(i.getValue("field",v[m])===i.getValue(m+".value.field",a)){var g=i.getValue(a[m].key+"."+a[m].index,this);g&&g.setProperties?g.setProperties(a[m].value):i.extend(g,a[m].value)}}else for(var b=0,O=a;b<O.length;b++){var C=O[b],x=i.getValue(C.key+"."+C.index,this);x&&x.setProperties?x.setProperties(C.value):i.extend(x,C.value)}else this.setProperties(p,e)}}},o.prototype.componentWillUnmount=function(){clearTimeout(this.cachedTimeOut);(this.initRenderCalled&&this.isAppendCalled&&this.element&&!["dropdowntree","checkbox"].indexOf(this.getModuleName())?document.body.contains(this.element):!this.isDestroyed)&&this.destroy()},o.prototype.appendReactElement=function(e,t){r.render(r.createPortal(e,t),t)},o.prototype.renderReactTemplates=function(e){this.isReactForeceUpdate=!0,e?this.forceUpdate(e):this.forceUpdate(),this.isReactForeceUpdate=!1},o.prototype.clearTemplate=function(e,t,r){var i=this,o=[];e&&e.length?Array.prototype.forEach.call(e,function(e){var r=0,n=0;if(i.portals.forEach(function(t){t.propName===e&&(o.push(n),n++)}),t&&i.portals[o[t[r]]].propName==e)i.portals.splice(t,1),r++;else for(var s=0;s<i.portals.length;s++)i.portals[s].propName==e&&(i.portals.splice(s,1),s--)}):this.portals=[],this.renderReactTemplates(r)},o.prototype.validateChildren=function(e,r,i){for(var o=!1,n=0,s=t.Children.toArray(i.children);n<s.length;n++){var a=s[n],p=this.getChildType(a),l=r[p];if(p&&r){var c=this.getChildProps(t.Children.toArray(a.props.children),l);c.length&&(o=!0,e[a.type.propertyName||p]=c)}}return o?e:null},o.prototype.getChildType=function(e){return e.type&&e.type.isDirective?e.type.moduleName||"":""},o.prototype.getChildProps=function(e,t){for(var r=[],o=0,n=e;o<n.length;o++){var s=n[o],a=!1,p=void 0;"string"==typeof t?(a=!0,p=t):p=Object.keys(t)[0];var l=s.props;if(this.getChildType(s)===p)if(a||!l.children){var c=i.extend({},l,{},!0);this.processComplexTemplate(c,s.type),r.push(c)}else{var h=this.validateChildren(i.extend({},l),t[p],l)||l;h.children&&delete h.children,this.processComplexTemplate(h,s.type),r.push(h)}}return r},o.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[]},o.reactUid=1,o}(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)}}(),h=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),d=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 d(t,e),t.prototype.render=function(){return null},t.isService=!0,t}(t.PureComponent),f=i.getTemplateEngine();i.setTemplateEngine({compile:o}),e.ComponentBase=l,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=h,e.Inject=u,e.compile=o,Object.defineProperty(e,"__esModule",{value:!0})});
//# sourceMappingURL=ej2-react-base.umd.min.js.map

@@ -104,2 +104,5 @@ import { Children, Component, PureComponent, createElement } from 'react';

}
else if ((propkey === 'valueTemplate' || propkey === 'itemTemplate') && nextProps[propkey].toString() === this[propkey].toString()) {
delete dProps[propkey];
}
else if (propkey === 'content' && typeof dProps[propkey] === 'function') {

@@ -106,0 +109,0 @@ delete dProps[propkey];

@@ -121,2 +121,5 @@ import { Children, Component, PureComponent, createElement } from 'react';

}
else if ((propkey === 'valueTemplate' || propkey === 'itemTemplate') && nextProps[propkey].toString() === this[propkey].toString()) {
delete dProps[propkey];
}
else if (propkey === 'content' && typeof dProps[propkey] === 'function') {

@@ -123,0 +126,0 @@ delete dProps[propkey];

@@ -1,2 +0,11 @@

this.ej=this.ej||{},this.ej.reactbase=function(e,t,r,i){"use strict";function o(e,t){t.forEach(function(t){Object.getOwnPropertyNames(t.prototype).forEach(function(r){"isMounted"!==r&&"replaceState"!==r&&(e.prototype[r]=t.prototype[r])})})}function s(e,o){return"string"==typeof e?y(e,o):function(o,s,n,a){var p=e,l=o;"object"==typeof p&&(p=e.template,l=i.extend({},o,e.data||{}));var h;if(h=a||document.createElement("div"),s&&s.isLegacyTemplate)r.render(p(l),h),a||i.detach(h);else{var c=t.createElement(p,l),d=r.createPortal(c,h);d.propName=n,s.portals?s.portals.push(d):s.portals=[d]}if(!a)return[h]}}var n=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)}}(),a=["alt","className","disabled","form","id","readOnly","style","tabIndex","title","type","name","onClick","onFocus","onBlur"],p=["accordion","tab","splitter"],l=new RegExp("]"),h=function(e){function o(){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.isshouldComponentUpdateCalled=!1,t}return n(o,e),o.prototype.componentDidMount=function(){this.refreshChild(!0),this.canDelayUpdate=-1!==p.indexOf(this.getModuleName()),this.renderReactComponent(),this.portals&&this.portals.length&&this.renderReactTemplates()},o.prototype.componentDidUpdate=function(e){this.isshouldComponentUpdateCalled||!this.initRenderCalled||this.isReactForeceUpdate||(this.isshouldComponentUpdateCalled=!0,e!==this.props&&this.refreshProperties(this.props,!0))},o.prototype.renderReactComponent=function(){var e=this.reactElement;e&&(this.isAppendCalled=!0,this.appendTo(e))},o.prototype.shouldComponentUpdate=function(e){return this.isshouldComponentUpdateCalled=!0,this.initRenderCalled?(this.isAppendCalled||(clearTimeout(this.cachedTimeOut),this.isAppendCalled=!0,this.appendTo(this.reactElement)),this.updateProperties(e),!0):(this.updateProperties(e,!0),!0)},o.prototype.updateProperties=function(e,t){for(var r=this,o=i.extend({},e),s=0,n=Object.keys(e);s<n.length;s++){var a=n[s],p="className"===a;"children"!==a&&(p||i.isNullOrUndefined(this.htmlattributes[a])||this.htmlattributes[a]===o[a]||(this.htmlattributes[a]=o[a]),this.compareValues(this.props[a],e[a])?delete o[a]:-1!==this.attrKeys.indexOf(a)?p?(this.element.classList.remove(this.props[a]),this.element.classList.add(o[a])):"disabled"!==a&&delete o[a]:"value"===a&&e[a]===this[a]?delete o[a]:"content"===a&&"function"==typeof o[a]&&delete o[a])}o.children&&delete o.children,this.initRenderCalled&&(this.canDelayUpdate||this.props.delayUpdate)?setTimeout(function(){r.refreshProperties(o,e,t)}):this.refreshProperties(o,e,t)},o.prototype.refreshProperties=function(e,t,r){Object.keys(e).length&&(r||this.processComplexTemplate(e,this),this.setProperties(e,r)),this.refreshChild(r,t)},o.prototype.processComplexTemplate=function(e,t){var r=t.complexTemplate;if(r)for(var o in r){var s=r[o];e[o]&&i.setValue(s,i.getValue(o,e),e)}},o.prototype.getDefaultAttributes=function(){var e=this;this.isReact=!0;var t=Object.keys(this.props);this.htmlattributes||(this.htmlattributes={}),this.attrKeys=a.concat(this.controlAttributes||[]);for(var r=0,i=t;r<i.length;r++){var s=i[r];-1===s.indexOf("data-")&&-1===s.indexOf("aria-")&&-1===this.attrKeys.indexOf(s)||this.htmlattributes[s]!==this.props[s]&&(this.htmlattributes[s]=this.props[s])}return this.htmlattributes.ref||(this.htmlattributes.ref=function(t){e.reactElement=t},-1!==["autocomplete","combobox","dropdownlist","dropdowntree","multiselect","listbox","colorpicker","numerictextbox","textbox","uploader","maskedtextbox","slider","datepicker","datetimepicker","daterangepicker","timepicker","checkbox","switch","radio"].indexOf(this.getModuleName())&&(this.htmlattributes.key=""+o.reactUid,o.reactUid++)),this.htmlattributes},o.prototype.trigger=function(e,t,r){var o=this;if(!0!==this.isDestroyed&&this.modelObserver){if(l.test(e)){var s=i.getValue(e,this);s?(s.call(this,t),r&&r.call(this,t)):r&&r.call(this,t)}"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(){o.isDestroyed||o.modelObserver.notify(e,t,r)}):this.modelObserver.notify(e,t,r),this.isProtectedOnChange=n}},o.prototype.compareValues=function(e,t){if(typeof e===typeof t){if(e===t)return!0;if((!i.isNullOrUndefined(e)&&e.constructor)!==(!i.isNullOrUndefined(t)&&t.constructor))return!1;if(e instanceof Date||e instanceof RegExp||e instanceof String||e instanceof Number)return e.toString()===t.toString();if(i.isObject(e)||Array.isArray(e)){var r=e,o=t;return i.isObject(r)&&(r=[e],o=[t]),this.compareObjects(r,o).status}}return!1},o.prototype.compareObjects=function(e,t,r){var i=!0,o=[];if(e.length===t.length)for(var s=0,n=t.length;s<n;s++){var a={},p=e[s],l=t[s],h=Object.keys(l);if(0!==h.length)for(var c=0,d=h;c<d.length;c++){var u=d[c],f=p[u],y=l[u];if("items"===u)for(var m=0;m<y.length;m++)if("richtexteditor"===this.getModuleName()&&"object"==typeof y[m])return{status:!0};if("grid"===this.getModuleName()&&"field"===u&&(a[u]=y),!p.hasOwnProperty(u)||!this.compareValues(f,y)){if(!r)return{status:!1};i=!1,a[u]=y}}else{if(!r)return{status:!1};i=!1}Object.keys(a).length&&o.push({index:s,value:a,key:r})}else i=!1;return{status:i,changedProperties:o}},o.prototype.refreshChild=function(e,t){if(this.checkInjectedModules){for(var r=this.getInjectedModules()||[],o=0,s=this.getInjectedServices()||[];o<s.length;o++){var n=s[o];-1===r.indexOf(n)&&r.push(n)}this.injectedModules=r}if(this.directivekeys){var a=[],p=this.validateChildren({},this.directivekeys,t||this.props);if(p&&Object.keys(p).length){if(!e&&this.skipRefresh)for(var l=0,h=this.skipRefresh;l<h.length;l++)delete p[h[l]];if(this.prevProperties)for(var c=Object.keys(this.prevProperties),d=0;d<c.length;d++){var u=c[d];if(p.hasOwnProperty(u)){var f=this.compareObjects(this.prevProperties[u],p[u],u);if(f.status)delete p[u];else{f.changedProperties.length&&(a=a.concat(f.changedProperties));var y={};y[u]=p[u],this.prevProperties=i.extend(this.prevProperties,y)}}}else this.prevProperties=i.extend({},p,{},!0);if(a.length)if("grid"===this.getModuleName()&&"columns"===u){for(var m=0,v=this.columns;m<v.length;m++)if(i.getValue("field",v[m])===i.getValue(m+".value.field",a)){var g=i.getValue(a[m].key+"."+a[m].index,this);g&&g.setProperties?g.setProperties(a[m].value):i.extend(g,a[m].value)}}else for(var b=0,O=a;b<O.length;b++){var C=O[b],x=i.getValue(C.key+"."+C.index,this);x&&x.setProperties?x.setProperties(C.value):i.extend(x,C.value)}else this.setProperties(p,e)}}},o.prototype.componentWillUnmount=function(){clearTimeout(this.cachedTimeOut);var e=["dropdowntree","checkbox"];(this.initRenderCalled&&this.isAppendCalled&&this.element&&!e.indexOf(this.getModuleName())?document.body.contains(this.element):!this.isDestroyed)&&this.destroy()},o.prototype.appendReactElement=function(e,t){r.render(r.createPortal(e,t),t)},o.prototype.renderReactTemplates=function(e){this.isReactForeceUpdate=!0,e?this.forceUpdate(e):this.forceUpdate(),this.isReactForeceUpdate=!1},o.prototype.clearTemplate=function(e,t,r){var i=this,o=[];e&&e.length?Array.prototype.forEach.call(e,function(e){var r=0,s=0;if(i.portals.forEach(function(t){t.propName===e&&(o.push(s),s++)}),t&&i.portals[o[t[r]]].propName==e)i.portals.splice(t,1),r++;else for(var n=0;n<i.portals.length;n++)i.portals[n].propName==e&&(i.portals.splice(n,1),n--)}):this.portals=[],this.renderReactTemplates(r)},o.prototype.validateChildren=function(e,r,i){for(var o=!1,s=0,n=t.Children.toArray(i.children);s<n.length;s++){var a=n[s],p=this.getChildType(a),l=r[p];if(p&&r){var h=this.getChildProps(t.Children.toArray(a.props.children),l);h.length&&(o=!0,e[a.type.propertyName||p]=h)}}return o?e:null},o.prototype.getChildType=function(e){return e.type&&e.type.isDirective?e.type.moduleName||"":""},o.prototype.getChildProps=function(e,t){for(var r=[],o=0,s=e;o<s.length;o++){var n=s[o],a=!1,p=void 0;"string"==typeof t?(a=!0,p=t):p=Object.keys(t)[0];var l=n.props;if(this.getChildType(n)===p)if(a||!l.children){var h=i.extend({},l,{},!0);this.processComplexTemplate(h,n.type),r.push(h)}else{var c=this.validateChildren(i.extend({},l),t[p],l)||l;c.children&&delete c.children,this.processComplexTemplate(c,n.type),r.push(c)}}return r},o.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[]},o.reactUid=1,o}(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)}}(),d=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),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),y=i.getTemplateEngine();return i.setTemplateEngine({compile:s}),e.ComponentBase=h,e.applyMixins=o,e.ComplexBase=d,e.Inject=f,e.compile=s,e}({},React,ReactDOM,ej.base),this.ejs=ej;
/*!
* filename: ej2-react-base.min.js
* version : 19.4.47
* Copyright Syncfusion Inc. 2001 - 2020. All rights reserved.
* Use of this code is subject to the terms of our license.
* A copy of the current license can be obtained at any time by e-mailing
* licensing@syncfusion.com. Any infringement will be prosecuted under
* applicable laws.
*/
this.ej=this.ej||{},this.ej.reactbase=function(e,t,r,i){"use strict";function o(e,t){t.forEach(function(t){Object.getOwnPropertyNames(t.prototype).forEach(function(r){"isMounted"!==r&&"replaceState"!==r&&(e.prototype[r]=t.prototype[r])})})}function s(e,o){return"string"==typeof e?m(e,o):function(o,s,n,a){var p=e,l=o;"object"==typeof p&&(p=e.template,l=i.extend({},o,e.data||{}));var h;if(h=a||document.createElement("div"),s&&s.isLegacyTemplate)r.render(p(l),h),a||i.detach(h);else{var c=t.createElement(p,l),d=r.createPortal(c,h);d.propName=n,s.portals?s.portals.push(d):s.portals=[d]}if(!a)return[h]}}var n=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)}}(),a=["alt","className","disabled","form","id","readOnly","style","tabIndex","title","type","name","onClick","onFocus","onBlur"],p=["accordion","tab","splitter"],l=new RegExp("]"),h=function(e){function o(){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.isshouldComponentUpdateCalled=!1,t}return n(o,e),o.prototype.componentDidMount=function(){this.refreshChild(!0),this.canDelayUpdate=-1!==p.indexOf(this.getModuleName()),this.renderReactComponent(),this.portals&&this.portals.length&&this.renderReactTemplates()},o.prototype.componentDidUpdate=function(e){this.isshouldComponentUpdateCalled||!this.initRenderCalled||this.isReactForeceUpdate||(this.isshouldComponentUpdateCalled=!0,e!==this.props&&this.refreshProperties(this.props,!0))},o.prototype.renderReactComponent=function(){var e=this.reactElement;e&&(this.isAppendCalled=!0,this.appendTo(e))},o.prototype.shouldComponentUpdate=function(e){return this.isshouldComponentUpdateCalled=!0,this.initRenderCalled?(this.isAppendCalled||(clearTimeout(this.cachedTimeOut),this.isAppendCalled=!0,this.appendTo(this.reactElement)),this.updateProperties(e),!0):(this.updateProperties(e,!0),!0)},o.prototype.updateProperties=function(e,t){for(var r=this,o=i.extend({},e),s=0,n=Object.keys(e);s<n.length;s++){var a=n[s],p="className"===a;"children"!==a&&(p||i.isNullOrUndefined(this.htmlattributes[a])||this.htmlattributes[a]===o[a]||(this.htmlattributes[a]=o[a]),this.compareValues(this.props[a],e[a])?delete o[a]:-1!==this.attrKeys.indexOf(a)?p?(this.element.classList.remove(this.props[a]),this.element.classList.add(o[a])):"disabled"!==a&&delete o[a]:"value"===a&&e[a]===this[a]?delete o[a]:"valueTemplate"!==a&&"itemTemplate"!==a||e[a].toString()!==this[a].toString()?"content"===a&&"function"==typeof o[a]&&delete o[a]:delete o[a])}o.children&&delete o.children,this.initRenderCalled&&(this.canDelayUpdate||this.props.delayUpdate)?setTimeout(function(){r.refreshProperties(o,e,t)}):this.refreshProperties(o,e,t)},o.prototype.refreshProperties=function(e,t,r){Object.keys(e).length&&(r||this.processComplexTemplate(e,this),this.setProperties(e,r)),this.refreshChild(r,t)},o.prototype.processComplexTemplate=function(e,t){var r=t.complexTemplate;if(r)for(var o in r){var s=r[o];e[o]&&i.setValue(s,i.getValue(o,e),e)}},o.prototype.getDefaultAttributes=function(){var e=this;this.isReact=!0;var t=Object.keys(this.props);this.htmlattributes||(this.htmlattributes={}),this.attrKeys=a.concat(this.controlAttributes||[]);for(var r=0,i=t;r<i.length;r++){var s=i[r];-1===s.indexOf("data-")&&-1===s.indexOf("aria-")&&-1===this.attrKeys.indexOf(s)||this.htmlattributes[s]!==this.props[s]&&(this.htmlattributes[s]=this.props[s])}return this.htmlattributes.ref||(this.htmlattributes.ref=function(t){e.reactElement=t},-1!==["autocomplete","combobox","dropdownlist","dropdowntree","multiselect","listbox","colorpicker","numerictextbox","textbox","uploader","maskedtextbox","slider","datepicker","datetimepicker","daterangepicker","timepicker","checkbox","switch","radio"].indexOf(this.getModuleName())&&(this.htmlattributes.key=""+o.reactUid,o.reactUid++)),this.htmlattributes},o.prototype.trigger=function(e,t,r){var o=this;if(!0!==this.isDestroyed&&this.modelObserver){if(l.test(e)){var s=i.getValue(e,this);s?(s.call(this,t),r&&r.call(this,t)):r&&r.call(this,t)}"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(){o.isDestroyed||o.modelObserver.notify(e,t,r)}):this.modelObserver.notify(e,t,r),this.isProtectedOnChange=n}},o.prototype.compareValues=function(e,t){if(typeof e===typeof t){if(e===t)return!0;if((!i.isNullOrUndefined(e)&&e.constructor)!==(!i.isNullOrUndefined(t)&&t.constructor))return!1;if(e instanceof Date||e instanceof RegExp||e instanceof String||e instanceof Number)return e.toString()===t.toString();if(i.isObject(e)||Array.isArray(e)){var r=e,o=t;return i.isObject(r)&&(r=[e],o=[t]),this.compareObjects(r,o).status}}return!1},o.prototype.compareObjects=function(e,t,r){var i=!0,o=[];if(e.length===t.length)for(var s=0,n=t.length;s<n;s++){var a={},p=e[s],l=t[s],h=Object.keys(l);if(0!==h.length)for(var c=0,d=h;c<d.length;c++){var u=d[c],f=p[u],m=l[u];if("items"===u)for(var y=0;y<m.length;y++)if("richtexteditor"===this.getModuleName()&&"object"==typeof m[y])return{status:!0};if("grid"===this.getModuleName()&&"field"===u&&(a[u]=m),!p.hasOwnProperty(u)||!this.compareValues(f,m)){if(!r)return{status:!1};i=!1,a[u]=m}}else{if(!r)return{status:!1};i=!1}Object.keys(a).length&&o.push({index:s,value:a,key:r})}else i=!1;return{status:i,changedProperties:o}},o.prototype.refreshChild=function(e,t){if(this.checkInjectedModules){for(var r=this.getInjectedModules()||[],o=0,s=this.getInjectedServices()||[];o<s.length;o++){var n=s[o];-1===r.indexOf(n)&&r.push(n)}this.injectedModules=r}if(this.directivekeys){var a=[],p=this.validateChildren({},this.directivekeys,t||this.props);if(p&&Object.keys(p).length){if(!e&&this.skipRefresh)for(var l=0,h=this.skipRefresh;l<h.length;l++)delete p[h[l]];if(this.prevProperties)for(var c=Object.keys(this.prevProperties),d=0;d<c.length;d++){var u=c[d];if(p.hasOwnProperty(u)){var f=this.compareObjects(this.prevProperties[u],p[u],u);if(f.status)delete p[u];else{f.changedProperties.length&&(a=a.concat(f.changedProperties));var m={};m[u]=p[u],this.prevProperties=i.extend(this.prevProperties,m)}}}else this.prevProperties=i.extend({},p,{},!0);if(a.length)if("grid"===this.getModuleName()&&"columns"===u){for(var y=0,v=this.columns;y<v.length;y++)if(i.getValue("field",v[y])===i.getValue(y+".value.field",a)){var g=i.getValue(a[y].key+"."+a[y].index,this);g&&g.setProperties?g.setProperties(a[y].value):i.extend(g,a[y].value)}}else for(var b=0,O=a;b<O.length;b++){var C=O[b],x=i.getValue(C.key+"."+C.index,this);x&&x.setProperties?x.setProperties(C.value):i.extend(x,C.value)}else this.setProperties(p,e)}}},o.prototype.componentWillUnmount=function(){clearTimeout(this.cachedTimeOut);var e=["dropdowntree","checkbox"];(this.initRenderCalled&&this.isAppendCalled&&this.element&&!e.indexOf(this.getModuleName())?document.body.contains(this.element):!this.isDestroyed)&&this.destroy()},o.prototype.appendReactElement=function(e,t){r.render(r.createPortal(e,t),t)},o.prototype.renderReactTemplates=function(e){this.isReactForeceUpdate=!0,e?this.forceUpdate(e):this.forceUpdate(),this.isReactForeceUpdate=!1},o.prototype.clearTemplate=function(e,t,r){var i=this,o=[];e&&e.length?Array.prototype.forEach.call(e,function(e){var r=0,s=0;if(i.portals.forEach(function(t){t.propName===e&&(o.push(s),s++)}),t&&i.portals[o[t[r]]].propName==e)i.portals.splice(t,1),r++;else for(var n=0;n<i.portals.length;n++)i.portals[n].propName==e&&(i.portals.splice(n,1),n--)}):this.portals=[],this.renderReactTemplates(r)},o.prototype.validateChildren=function(e,r,i){for(var o=!1,s=0,n=t.Children.toArray(i.children);s<n.length;s++){var a=n[s],p=this.getChildType(a),l=r[p];if(p&&r){var h=this.getChildProps(t.Children.toArray(a.props.children),l);h.length&&(o=!0,e[a.type.propertyName||p]=h)}}return o?e:null},o.prototype.getChildType=function(e){return e.type&&e.type.isDirective?e.type.moduleName||"":""},o.prototype.getChildProps=function(e,t){for(var r=[],o=0,s=e;o<s.length;o++){var n=s[o],a=!1,p=void 0;"string"==typeof t?(a=!0,p=t):p=Object.keys(t)[0];var l=n.props;if(this.getChildType(n)===p)if(a||!l.children){var h=i.extend({},l,{},!0);this.processComplexTemplate(h,n.type),r.push(h)}else{var c=this.validateChildren(i.extend({},l),t[p],l)||l;c.children&&delete c.children,this.processComplexTemplate(c,n.type),r.push(c)}}return r},o.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[]},o.reactUid=1,o}(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)}}(),d=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),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),m=i.getTemplateEngine();return i.setTemplateEngine({compile:s}),e.ComponentBase=h,e.applyMixins=o,e.ComplexBase=d,e.Inject=f,e.compile=s,e}({},React,ReactDOM,ej.base),this.ejs=ej;
//# sourceMappingURL=ej2-react-base.min.js.map

@@ -0,1 +1,10 @@

/*!
* filename: index.d.ts
* version : 19.4.47
* Copyright Syncfusion Inc. 2001 - 2020. All rights reserved.
* Use of this code is subject to the terms of our license.
* A copy of the current license can be obtained at any time by e-mailing
* licensing@syncfusion.com. Any infringement will be prosecuted under
* applicable laws.
*/
import * as _reactbase from '@syncfusion/ej2-react-base';

@@ -2,0 +11,0 @@

158

package.json
{
"_from": "@syncfusion/ej2-react-base@*",
"_id": "@syncfusion/ej2-react-base@19.4.38",
"_inBundle": false,
"_integrity": "sha512-8D9W71avCcMV7ycA6TSgiW9T4TJsUtCTMcFF1Lke6onfIwLKmS5v7LuQfUZb5Shno+oF5BmVWbpTNYLh/oykBw==",
"_location": "/@syncfusion/ej2-react-base",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "@syncfusion/ej2-react-base@*",
"name": "@syncfusion/ej2-react-base",
"escapedName": "@syncfusion%2fej2-react-base",
"scope": "@syncfusion",
"rawSpec": "*",
"saveSpec": null,
"fetchSpec": "*"
},
"_requiredBy": [
"/",
"/@syncfusion/ej2-react-buttons",
"/@syncfusion/ej2-react-calendars",
"/@syncfusion/ej2-react-charts",
"/@syncfusion/ej2-react-diagrams",
"/@syncfusion/ej2-react-documenteditor",
"/@syncfusion/ej2-react-dropdowns",
"/@syncfusion/ej2-react-filemanager",
"/@syncfusion/ej2-react-gantt",
"/@syncfusion/ej2-react-grids",
"/@syncfusion/ej2-react-inputs",
"/@syncfusion/ej2-react-maps",
"/@syncfusion/ej2-react-pdfviewer",
"/@syncfusion/ej2-react-pivotview",
"/@syncfusion/ej2-react-querybuilder",
"/@syncfusion/ej2-react-schedule",
"/@syncfusion/ej2-react-spreadsheet",
"/@syncfusion/ej2-react-treegrid"
],
"_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-react-base/-/ej2-react-base-19.4.38.tgz",
"_shasum": "fa6d463e15a6a38bd37f27d5824e39689616e35d",
"_spec": "@syncfusion/ej2-react-base@*",
"_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
"author": {
"name": "Syncfusion Inc."
},
"bugs": {
"url": "https://github.com/syncfusion/ej2-react-ui-components/issues"
},
"bundleDependencies": false,
"dependencies": {
"@syncfusion/ej2-base": "~19.4.42"
},
"deprecated": false,
"description": "A common package of Essential JS 2 React base, methods and class definitions",
"devDependencies": {},
"homepage": "https://www.syncfusion.com/react-ui-components",
"keywords": [
"ej2",
"syncfusion",
"web-components",
"react",
"react-base",
"syncfusion react",
"base",
"library",
"ej2-react-base"
],
"license": "SEE LICENSE IN license",
"main": "./dist/ej2-react-base.umd.min.js",
"module": "./index.js",
"name": "@syncfusion/ej2-react-base",
"repository": {
"type": "git",
"url": "git+https://github.com/syncfusion/ej2-react-ui-components.git"
},
"typings": "index.d.ts",
"version": "19.4.43",
"sideEffects": true
}
"_from": "@syncfusion/ej2-react-base@*",
"_id": "@syncfusion/ej2-react-base@19.4.42",
"_inBundle": false,
"_integrity": "sha512-KfYTNQLyWYcAOOchWSnCYRnVA/4resznoDMhv4fnINKEtuYlgH2HPm+ZrNLBDaV+rDXfkV7ujxPPp1pxAr1/eQ==",
"_location": "/@syncfusion/ej2-react-base",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "@syncfusion/ej2-react-base@*",
"name": "@syncfusion/ej2-react-base",
"escapedName": "@syncfusion%2fej2-react-base",
"scope": "@syncfusion",
"rawSpec": "*",
"saveSpec": null,
"fetchSpec": "*"
},
"_requiredBy": [
"/",
"/@syncfusion/ej2-react-charts",
"/@syncfusion/ej2-react-documenteditor",
"/@syncfusion/ej2-react-dropdowns",
"/@syncfusion/ej2-react-filemanager",
"/@syncfusion/ej2-react-gantt",
"/@syncfusion/ej2-react-grids",
"/@syncfusion/ej2-react-inputs",
"/@syncfusion/ej2-react-kanban",
"/@syncfusion/ej2-react-layouts",
"/@syncfusion/ej2-react-maps",
"/@syncfusion/ej2-react-navigations",
"/@syncfusion/ej2-react-pivotview",
"/@syncfusion/ej2-react-popups",
"/@syncfusion/ej2-react-querybuilder",
"/@syncfusion/ej2-react-richtexteditor",
"/@syncfusion/ej2-react-schedule",
"/@syncfusion/ej2-react-splitbuttons",
"/@syncfusion/ej2-react-spreadsheet",
"/@syncfusion/ej2-react-treegrid"
],
"_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-react-base/-/ej2-react-base-19.4.42.tgz",
"_shasum": "16d073bb041a2b69d7da0415538383ab537c46f0",
"_spec": "@syncfusion/ej2-react-base@*",
"_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
"author": {
"name": "Syncfusion Inc."
},
"bugs": {
"url": "https://github.com/syncfusion/ej2-react-ui-components/issues"
},
"bundleDependencies": false,
"dependencies": {
"@syncfusion/ej2-base": "~19.4.42"
},
"deprecated": false,
"description": "A common package of Essential JS 2 React base, methods and class definitions",
"devDependencies": {},
"homepage": "https://www.syncfusion.com/react-ui-components",
"keywords": [
"ej2",
"syncfusion",
"web-components",
"react",
"react-base",
"syncfusion react",
"base",
"library",
"ej2-react-base"
],
"license": "SEE LICENSE IN license",
"main": "./dist/ej2-react-base.umd.min.js",
"module": "./index.js",
"name": "@syncfusion/ej2-react-base",
"repository": {
"type": "git",
"url": "git+https://github.com/syncfusion/ej2-react-ui-components.git"
},
"typings": "index.d.ts",
"version": "19.4.47",
"sideEffects": true
}

@@ -121,2 +121,5 @@ var __extends = (this && this.__extends) || (function () {

}
else if ((propkey === 'valueTemplate' || propkey === 'itemTemplate') && nextProps[propkey].toString() === this[propkey].toString()) {
delete dProps[propkey];
}
else if (propkey === 'content' && typeof dProps[propkey] === 'function') {

@@ -123,0 +126,0 @@ delete dProps[propkey];

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