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.48 to 19.4.52

8

CHANGELOG.md

@@ -9,2 +9,10 @@ # Changelog

- `I352651` - Styles not applied properly if it dynamically changed has been resolved.
## 19.4.47 (2022-01-25)
### Common
#### Bug Fixes
- `F167610` - Resolved the Console error occurs when using a value and `valueTemplate` together.

@@ -11,0 +19,0 @@

4

dist/ej2-react-base.umd.min.js
/*!
* filename: ej2-react-base.umd.min.js
* version : 19.4.48
* version : 19.4.52
* 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("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})});
!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 s(e,s){return"string"==typeof e?f(e,s):function(s,o,n,a){var p=e,l=s;"object"==typeof p&&(p=e.template,l=i.extend({},s,e.data||{}));var c;if(c=a||document.createElement("div"),o&&o.isLegacyTemplate)r.render(p(l),c),a||i.detach(c);else{var h=t.createElement(p,l),u=r.createPortal(h,c);u.propName=n,o.portals?o.portals.push(u):o.portals=[u]}if(!a)return[c]}}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)}}(),n=["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 s(){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 o(s,e),s.prototype.componentDidMount=function(){this.refreshChild(!0),this.canDelayUpdate=-1!==a.indexOf(this.getModuleName()),this.renderReactComponent(),this.portals&&this.portals.length&&this.renderReactTemplates()},s.prototype.componentDidUpdate=function(e){this.isshouldComponentUpdateCalled||!this.initRenderCalled||this.isReactForeceUpdate||(this.isshouldComponentUpdateCalled=!0,e!==this.props&&this.refreshProperties(this.props,!0))},s.prototype.renderReactComponent=function(){var e=this.reactElement;e&&(this.isAppendCalled=!0,this.appendTo(e))},s.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)},s.prototype.updateProperties=function(e,t){for(var r=this,s=i.extend({},e),o=0,n=Object.keys(e);o<n.length;o++){var a=n[o],p="className"===a;if("children"!==a)if(p||i.isNullOrUndefined(this.htmlattributes[a])||this.htmlattributes[a]===s[a]||(this.htmlattributes[a]=s[a]),this.compareValues(this.props[a],e[a]))delete s[a];else if(-1!==this.attrKeys.indexOf(a))if(p){this.clsName=!0;for(var l=this.props[a].split(" "),c=0;c<l.length;c++)this.element.classList.remove(l[c]);for(var h=s[a].split(" "),u=0;u<h.length;u++)this.element.classList.add(h[u])}else"disabled"!==a&&delete s[a];else"value"===a&&e[a]===this[a]?delete s[a]:"valueTemplate"!==a&&"itemTemplate"!==a||e[a].toString()!==this[a].toString()?"content"===a&&"function"==typeof s[a]&&delete s[a]:delete s[a]}s.children&&delete s.children,this.initRenderCalled&&(this.canDelayUpdate||this.props.delayUpdate)?setTimeout(function(){r.refreshProperties(s,e,t)}):this.refreshProperties(s,e,t)},s.prototype.refreshProperties=function(e,t,r){Object.keys(e).length&&(r||this.processComplexTemplate(e,this),this.setProperties(e,r)),this.refreshChild(r,t)},s.prototype.processComplexTemplate=function(e,t){var r=t.complexTemplate;if(r)for(var s in r){var o=r[s];e[s]&&i.setValue(o,i.getValue(s,e),e)}},s.prototype.getDefaultAttributes=function(){var e=this;this.isReact=!0;var t=Object.keys(this.props);this.htmlattributes||(this.htmlattributes={}),this.attrKeys=n.concat(this.controlAttributes||[]);for(var r=0,i=t;r<i.length;r++){var o=i[r];-1===o.indexOf("data-")&&-1===o.indexOf("aria-")&&-1===this.attrKeys.indexOf(o)||this.htmlattributes[o]!==this.props[o]&&(this.htmlattributes[o]=this.props[o])}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=""+s.reactUid,s.reactUid++)}if(this.clsName){for(var a=this.element.classList,p=this.htmlattributes.className,l=0;l<a.length;l++)-1==p.indexOf(a[l])&&(this.htmlattributes.className=this.htmlattributes.className+" "+a[l]);this.clsName=!1}return this.htmlattributes},s.prototype.trigger=function(e,t,r){var s=this;if(!0!==this.isDestroyed&&this.modelObserver){if(p.test(e)){var o=i.getValue(e,this);o?(o.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(){s.isDestroyed||s.modelObserver.notify(e,t,r)}):this.modelObserver.notify(e,t,r),this.isProtectedOnChange=n}},s.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,s=t;return i.isObject(r)&&(r=[e],s=[t]),this.compareObjects(r,s).status}}return!1},s.prototype.compareObjects=function(e,t,r){var i=!0,s=[];if(e.length===t.length)for(var o=0,n=t.length;o<n;o++){var a={},p=e[o],l=t[o],c=Object.keys(l);if(0!==c.length)for(var h=0,u=c;h<u.length;h++){var d=u[h],f=p[d],m=l[d];if("items"===d)for(var y=0;y<m.length;y++)if("richtexteditor"===this.getModuleName()&&"object"==typeof m[y])return{status:!0};if("grid"===this.getModuleName()&&"field"===d&&(a[d]=m),!p.hasOwnProperty(d)||!this.compareValues(f,m)){if(!r)return{status:!1};i=!1,a[d]=m}}else{if(!r)return{status:!1};i=!1}Object.keys(a).length&&s.push({index:o,value:a,key:r})}else i=!1;return{status:i,changedProperties:s}},s.prototype.refreshChild=function(e,t){if(this.checkInjectedModules){for(var r=this.getInjectedModules()||[],s=0,o=this.getInjectedServices()||[];s<o.length;s++){var n=o[s];-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,c=this.skipRefresh;l<c.length;l++){delete p[c[l]]}if(this.prevProperties)for(var h=Object.keys(this.prevProperties),u=0;u<h.length;u++){var d=h[u];if(p.hasOwnProperty(d)){var f=this.compareObjects(this.prevProperties[d],p[d],d);if(f.status)delete p[d];else{f.changedProperties.length&&(a=a.concat(f.changedProperties));var m={};m[d]=p[d],this.prevProperties=i.extend(this.prevProperties,m)}}}else this.prevProperties=i.extend({},p,{},!0);if(a.length)if("grid"===this.getModuleName()&&"columns"===d)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)}}},s.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()},s.prototype.appendReactElement=function(e,t){r.render(r.createPortal(e,t),t)},s.prototype.renderReactTemplates=function(e){this.isReactForeceUpdate=!0,e?this.forceUpdate(e):this.forceUpdate(),this.isReactForeceUpdate=!1},s.prototype.clearTemplate=function(e,t,r){var i=this,s=[];e&&e.length?Array.prototype.forEach.call(e,function(e){var r=0,o=0;if(i.portals.forEach(function(t){t.propName===e&&(s.push(o),o++)}),t&&i.portals[s[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)},s.prototype.validateChildren=function(e,r,i){for(var s=!1,o=0,n=t.Children.toArray(i.children);o<n.length;o++){var a=n[o],p=this.getChildType(a),l=r[p];if(p&&r){var c=this.getChildProps(t.Children.toArray(a.props.children),l);c.length&&(s=!0,e[a.type.propertyName||p]=c)}}return s?e:null},s.prototype.getChildType=function(e){return e.type&&e.type.isDirective?e.type.moduleName||"":""},s.prototype.getChildProps=function(e,t){for(var r=[],s=0,o=e;s<o.length;s++){var n=o[s],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 c=i.extend({},l,{},!0);this.processComplexTemplate(c,n.type),r.push(c)}else{var h=this.validateChildren(i.extend({},l),t[p],l)||l;h.children&&delete h.children,this.processComplexTemplate(h,n.type),r.push(h)}}return r},s.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[]},s.reactUid=1,s}(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),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)}}(),d=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),f=i.getTemplateEngine();i.setTemplateEngine({compile:s}),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=d,e.compile=s,Object.defineProperty(e,"__esModule",{value:!0})});
//# sourceMappingURL=ej2-react-base.umd.min.js.map

@@ -94,4 +94,11 @@ import { Children, Component, PureComponent, createElement } from 'react';

if (isClassName) {
this.element.classList.remove(this.props[propkey]);
this.element.classList.add(dProps[propkey]);
this.clsName = true;
let propsClsName = this.props[propkey].split(' ');
for (let i = 0; i < propsClsName.length; i++) {
this.element.classList.remove(propsClsName[i]);
}
let dpropsClsName = dProps[propkey].split(' ');
for (let j = 0; j < dpropsClsName.length; j++) {
this.element.classList.add(dpropsClsName[j]);
}
}

@@ -173,2 +180,12 @@ else if (propkey !== 'disabled') {

}
if (this.clsName) {
let clsList = this.element.classList;
let className = this.htmlattributes['className'];
for (let i = 0; i < clsList.length; i++) {
if ((className.indexOf(clsList[i]) == -1)) {
this.htmlattributes['className'] = this.htmlattributes['className'] + ' ' + clsList[i];
}
}
this.clsName = false;
}
return this.htmlattributes;

@@ -175,0 +192,0 @@ }

@@ -111,4 +111,11 @@ import { Children, Component, PureComponent, createElement } from 'react';

if (isClassName) {
this.element.classList.remove(this.props[propkey]);
this.element.classList.add(dProps[propkey]);
this.clsName = true;
var propsClsName = this.props[propkey].split(' ');
for (var i = 0; i < propsClsName.length; i++) {
this.element.classList.remove(propsClsName[i]);
}
var dpropsClsName = dProps[propkey].split(' ');
for (var j = 0; j < dpropsClsName.length; j++) {
this.element.classList.add(dpropsClsName[j]);
}
}

@@ -192,2 +199,12 @@ else if (propkey !== 'disabled') {

}
if (this.clsName) {
var clsList = this.element.classList;
var className = this.htmlattributes['className'];
for (var i = 0; i < clsList.length; i++) {
if ((className.indexOf(clsList[i]) == -1)) {
this.htmlattributes['className'] = this.htmlattributes['className'] + ' ' + clsList[i];
}
}
this.clsName = false;
}
return this.htmlattributes;

@@ -194,0 +211,0 @@ };

/*!
* filename: ej2-react-base.min.js
* version : 19.4.48
* version : 19.4.52
* 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 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;
this.ej=this.ej||{},this.ej.reactbase=function(e,t,r,i){"use strict";function s(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,s){return"string"==typeof e?m(e,s):function(s,o,n,a){var p=e,l=s;"object"==typeof p&&(p=e.template,l=i.extend({},s,e.data||{}));var h;if(h=a||document.createElement("div"),o&&o.isLegacyTemplate)r.render(p(l),h),a||i.detach(h);else{var c=t.createElement(p,l),u=r.createPortal(c,h);u.propName=n,o.portals?o.portals.push(u):o.portals=[u]}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 s(){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(s,e),s.prototype.componentDidMount=function(){this.refreshChild(!0),this.canDelayUpdate=-1!==p.indexOf(this.getModuleName()),this.renderReactComponent(),this.portals&&this.portals.length&&this.renderReactTemplates()},s.prototype.componentDidUpdate=function(e){this.isshouldComponentUpdateCalled||!this.initRenderCalled||this.isReactForeceUpdate||(this.isshouldComponentUpdateCalled=!0,e!==this.props&&this.refreshProperties(this.props,!0))},s.prototype.renderReactComponent=function(){var e=this.reactElement;e&&(this.isAppendCalled=!0,this.appendTo(e))},s.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)},s.prototype.updateProperties=function(e,t){for(var r=this,s=i.extend({},e),o=0,n=Object.keys(e);o<n.length;o++){var a=n[o],p="className"===a;if("children"!==a)if(p||i.isNullOrUndefined(this.htmlattributes[a])||this.htmlattributes[a]===s[a]||(this.htmlattributes[a]=s[a]),this.compareValues(this.props[a],e[a]))delete s[a];else if(-1!==this.attrKeys.indexOf(a))if(p){this.clsName=!0;for(var l=this.props[a].split(" "),h=0;h<l.length;h++)this.element.classList.remove(l[h]);for(var c=s[a].split(" "),u=0;u<c.length;u++)this.element.classList.add(c[u])}else"disabled"!==a&&delete s[a];else"value"===a&&e[a]===this[a]?delete s[a]:"valueTemplate"!==a&&"itemTemplate"!==a||e[a].toString()!==this[a].toString()?"content"===a&&"function"==typeof s[a]&&delete s[a]:delete s[a]}s.children&&delete s.children,this.initRenderCalled&&(this.canDelayUpdate||this.props.delayUpdate)?setTimeout(function(){r.refreshProperties(s,e,t)}):this.refreshProperties(s,e,t)},s.prototype.refreshProperties=function(e,t,r){Object.keys(e).length&&(r||this.processComplexTemplate(e,this),this.setProperties(e,r)),this.refreshChild(r,t)},s.prototype.processComplexTemplate=function(e,t){var r=t.complexTemplate;if(r)for(var s in r){var o=r[s];e[s]&&i.setValue(o,i.getValue(s,e),e)}},s.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 o=i[r];-1===o.indexOf("data-")&&-1===o.indexOf("aria-")&&-1===this.attrKeys.indexOf(o)||this.htmlattributes[o]!==this.props[o]&&(this.htmlattributes[o]=this.props[o])}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=""+s.reactUid,s.reactUid++)),this.clsName){for(var n=this.element.classList,p=this.htmlattributes.className,l=0;l<n.length;l++)-1==p.indexOf(n[l])&&(this.htmlattributes.className=this.htmlattributes.className+" "+n[l]);this.clsName=!1}return this.htmlattributes},s.prototype.trigger=function(e,t,r){var s=this;if(!0!==this.isDestroyed&&this.modelObserver){if(l.test(e)){var o=i.getValue(e,this);o?(o.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(){s.isDestroyed||s.modelObserver.notify(e,t,r)}):this.modelObserver.notify(e,t,r),this.isProtectedOnChange=n}},s.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,s=t;return i.isObject(r)&&(r=[e],s=[t]),this.compareObjects(r,s).status}}return!1},s.prototype.compareObjects=function(e,t,r){var i=!0,s=[];if(e.length===t.length)for(var o=0,n=t.length;o<n;o++){var a={},p=e[o],l=t[o],h=Object.keys(l);if(0!==h.length)for(var c=0,u=h;c<u.length;c++){var d=u[c],f=p[d],m=l[d];if("items"===d)for(var y=0;y<m.length;y++)if("richtexteditor"===this.getModuleName()&&"object"==typeof m[y])return{status:!0};if("grid"===this.getModuleName()&&"field"===d&&(a[d]=m),!p.hasOwnProperty(d)||!this.compareValues(f,m)){if(!r)return{status:!1};i=!1,a[d]=m}}else{if(!r)return{status:!1};i=!1}Object.keys(a).length&&s.push({index:o,value:a,key:r})}else i=!1;return{status:i,changedProperties:s}},s.prototype.refreshChild=function(e,t){if(this.checkInjectedModules){for(var r=this.getInjectedModules()||[],s=0,o=this.getInjectedServices()||[];s<o.length;s++){var n=o[s];-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),u=0;u<c.length;u++){var d=c[u];if(p.hasOwnProperty(d)){var f=this.compareObjects(this.prevProperties[d],p[d],d);if(f.status)delete p[d];else{f.changedProperties.length&&(a=a.concat(f.changedProperties));var m={};m[d]=p[d],this.prevProperties=i.extend(this.prevProperties,m)}}}else this.prevProperties=i.extend({},p,{},!0);if(a.length)if("grid"===this.getModuleName()&&"columns"===d){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)}}},s.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()},s.prototype.appendReactElement=function(e,t){r.render(r.createPortal(e,t),t)},s.prototype.renderReactTemplates=function(e){this.isReactForeceUpdate=!0,e?this.forceUpdate(e):this.forceUpdate(),this.isReactForeceUpdate=!1},s.prototype.clearTemplate=function(e,t,r){var i=this,s=[];e&&e.length?Array.prototype.forEach.call(e,function(e){var r=0,o=0;if(i.portals.forEach(function(t){t.propName===e&&(s.push(o),o++)}),t&&i.portals[s[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)},s.prototype.validateChildren=function(e,r,i){for(var s=!1,o=0,n=t.Children.toArray(i.children);o<n.length;o++){var a=n[o],p=this.getChildType(a),l=r[p];if(p&&r){var h=this.getChildProps(t.Children.toArray(a.props.children),l);h.length&&(s=!0,e[a.type.propertyName||p]=h)}}return s?e:null},s.prototype.getChildType=function(e){return e.type&&e.type.isDirective?e.type.moduleName||"":""},s.prototype.getChildProps=function(e,t){for(var r=[],s=0,o=e;s<o.length;s++){var n=o[s],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},s.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[]},s.reactUid=1,s}(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)}}(),u=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)}}(),f=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),m=i.getTemplateEngine();return i.setTemplateEngine({compile:o}),e.ComponentBase=h,e.applyMixins=s,e.ComplexBase=u,e.Inject=f,e.compile=o,e}({},React,ReactDOM,ej.base),this.ejs=ej;
//# sourceMappingURL=ej2-react-base.min.js.map
/*!
* filename: index.d.ts
* version : 19.4.48
* version : 19.4.52
* 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@19.4.42",
"_id": "@syncfusion/ej2-react-base@19.4.48",
"_inBundle": false,
"_integrity": "sha512-KfYTNQLyWYcAOOchWSnCYRnVA/4resznoDMhv4fnINKEtuYlgH2HPm+ZrNLBDaV+rDXfkV7ujxPPp1pxAr1/eQ==",
"_integrity": "sha512-Va1no/XRzn4XouEgMPAA1tG0Pt6DXZqBzpnx/EOAxwmx2U45QxcSMiO5IJVG1Sz7mTaUF0JyufE05E2wErUuwA==",
"_location": "/@syncfusion/ej2-react-base",

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

],
"_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-react-base/-/ej2-react-base-19.4.42.tgz",
"_shasum": "16d073bb041a2b69d7da0415538383ab537c46f0",
"_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-react-base/-/ej2-react-base-19.4.48.tgz",
"_shasum": "722b0640e3b09d1d8ff60ee04a45be99af4a6b94",
"_spec": "@syncfusion/ej2-react-base@*",

@@ -67,3 +67,3 @@ "_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",

"dependencies": {
"@syncfusion/ej2-base": "~19.4.48"
"@syncfusion/ej2-base": "~19.4.52"
},

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

"typings": "index.d.ts",
"version": "19.4.48",
"version": "19.4.52",
"sideEffects": true
}

@@ -79,3 +79,3 @@ # ej2-react-base

© Copyright 2022 Syncfusion, Inc. All Rights Reserved.
© Copyright 2022 Syncfusion, Inc. All Rights Reserved. The Syncfusion Essential Studio license and copyright applies to this distribution.
The Syncfusion Essential Studio license and copyright applies to this distribution.

@@ -52,2 +52,3 @@ /**

protected columns: any;
private clsName;
componentDidMount(): void;

@@ -54,0 +55,0 @@ componentDidUpdate(prev: Object): any;

@@ -111,4 +111,11 @@ var __extends = (this && this.__extends) || (function () {

if (isClassName) {
this.element.classList.remove(this.props[propkey]);
this.element.classList.add(dProps[propkey]);
this.clsName = true;
var propsClsName = this.props[propkey].split(' ');
for (var i = 0; i < propsClsName.length; i++) {
this.element.classList.remove(propsClsName[i]);
}
var dpropsClsName = dProps[propkey].split(' ');
for (var j = 0; j < dpropsClsName.length; j++) {
this.element.classList.add(dpropsClsName[j]);
}
}

@@ -196,2 +203,12 @@ else if (propkey !== 'disabled') {

}
if (this.clsName) {
var clsList = this.element.classList;
var className = this.htmlattributes['className'];
for (var i = 0; i < clsList.length; i++) {
if ((className.indexOf(clsList[i]) == -1)) {
this.htmlattributes['className'] = this.htmlattributes['className'] + ' ' + clsList[i];
}
}
this.clsName = false;
}
return this.htmlattributes;

@@ -198,0 +215,0 @@ };

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