@syncfusion/ej2-react-base
Advanced tools
Comparing version 19.3.57 to 19.4.38
@@ -5,24 +5,2 @@ # Changelog | ||
### Common | ||
#### Bug Fixes | ||
- Resolved the issue with `nodeClicked` event is not triggered while rendering Tree View inside `office-ui-fabric` Panel. | ||
## 19.3.46 (2021-10-19) | ||
### Common | ||
#### Bug Fixes | ||
- Resolved the issue with Custom toolbar buttons in rich text editor lead to a toolbar reset. | ||
## 19.3.45 (2021-10-12) | ||
### Common | ||
#### Bug Fixes | ||
- `F167610` - Resolved the issue with Console error occurs when using a value and `valueTemplate` together. | ||
## 19.1.67 (2021-06-08) | ||
@@ -29,0 +7,0 @@ |
/*! | ||
* filename: ej2-react-base.umd.min.js | ||
* version : 19.3.57 | ||
* version : 19.4.38 | ||
* Copyright Syncfusion Inc. 2001 - 2020. All rights reserved. | ||
@@ -10,3 +10,3 @@ * Use of this code is subject to the terms of our license. | ||
*/ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react"),require("@syncfusion/ej2-base"),require("react-dom")):"function"==typeof define&&define.amd?define(["exports","react","@syncfusion/ej2-base","react-dom"],t):t(e.ej={},e.React,e.ej2Base,e.ReactDOM)}(this,function(e,t,r,i){"use strict";function o(e,o){return"string"==typeof e?f(e,o):function(o,s,n,a){var p=e,l=o;"object"==typeof p&&(p=e.template,l=r.extend({},o,e.data||{}));var c;if(c=a||document.createElement("div"),s&&s.isLegacyTemplate)i.render(p(l),c),a||r.detach(c);else{var h=t.createElement(p,l),d=i.createPortal(h,c);d.propName=n,s.portals?s.portals.push(d):s.portals=[d]}if(!a)return[c]}}var s=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function i(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}(),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 i(){var t=null!==e&&e.apply(this,arguments)||this;return t.attrKeys=[],t.cachedTimeOut=0,t.isAppendCalled=!1,t.initRenderCalled=!1,t.isReactForeceUpdate=!1,t.isReact=!0,t.isshouldComponentUpdateCalled=!1,t}return s(i,e),i.prototype.componentDidMount=function(){this.refreshChild(!0),this.canDelayUpdate=-1!==a.indexOf(this.getModuleName()),this.renderReactComponent(),this.portals&&this.portals.length&&this.renderReactTemplates()},i.prototype.componentDidUpdate=function(e){this.isshouldComponentUpdateCalled||!this.initRenderCalled||this.isReactForeceUpdate||(this.isshouldComponentUpdateCalled=!0,e!==this.props&&this.refreshProperties(this.props,!0))},i.prototype.renderReactComponent=function(){var e=this.reactElement;e&&(this.isAppendCalled=!0,this.appendTo(e))},i.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)},i.prototype.updateProperties=function(e,t){for(var i=this,o=r.extend({},e),s=0,n=Object.keys(e);s<n.length;s++){var a=n[s],p="className"===a;"children"!==a&&(p||r.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])}o.children&&delete o.children,this.initRenderCalled&&(this.canDelayUpdate||this.props.delayUpdate)?setTimeout(function(){i.refreshProperties(o,e,t)}):this.refreshProperties(o,e,t)},i.prototype.refreshProperties=function(e,t,r){Object.keys(e).length&&(r||this.processComplexTemplate(e,this),this.setProperties(e,r)),this.refreshChild(r,t)},i.prototype.processComplexTemplate=function(e,t){var i=t.complexTemplate;if(i)for(var o in i){var s=i[o];e[o]&&r.setValue(s,r.getValue(o,e),e)}},i.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,o=t;r<o.length;r++){var s=o[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])}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=""+i.reactUid,i.reactUid++)}return this.htmlattributes},i.prototype.trigger=function(e,t,i){var o=this;if(!0!==this.isDestroyed&&this.modelObserver){if(p.test(e)){var s=r.getValue(e,this);s?(s.call(this,t),i&&i.call(this,t)):i&&i.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,i)}):this.modelObserver.notify(e,t,i),this.isProtectedOnChange=n}},i.prototype.compareValues=function(e,t){if(typeof e===typeof t){if(e===t)return!0;if((!r.isNullOrUndefined(e)&&e.constructor)!==(!r.isNullOrUndefined(t)&&t.constructor))return!1;if(e instanceof Date||e instanceof RegExp||e instanceof String||e instanceof Number)return e.toString()===t.toString();if(r.isObject(e)||Array.isArray(e)){var i=e,o=t;return r.isObject(i)&&(i=[e],o=[t]),this.compareObjects(i,o).status}}return!1},i.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],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:s,value:a,key:r})}else i=!1;return{status:i,changedProperties:o}},i.prototype.refreshChild=function(e,t){if(this.checkInjectedModules){for(var i=this.getInjectedModules()||[],o=0,s=this.getInjectedServices()||[];o<s.length;o++){var n=s[o];-1===i.indexOf(n)&&i.push(n)}this.injectedModules=i}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=r.extend(this.prevProperties,y)}}}else this.prevProperties=r.extend({},p,{},!0);if(a.length)if("grid"===this.getModuleName()&&"columns"===u)for(var m=0,v=this.columns;m<v.length;m++){if(r.getValue("field",v[m])===r.getValue(m+".value.field",a)){var g=r.getValue(a[m].key+"."+a[m].index,this);g&&g.setProperties?g.setProperties(a[m].value):r.extend(g,a[m].value)}}else for(var b=0,O=a;b<O.length;b++){var C=O[b],x=r.getValue(C.key+"."+C.index,this);x&&x.setProperties?x.setProperties(C.value):r.extend(x,C.value)}else this.setProperties(p,e)}}},i.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()},i.prototype.renderReactTemplates=function(e){this.isReactForeceUpdate=!0,e?this.forceUpdate(e):this.forceUpdate(),this.isReactForeceUpdate=!1},i.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)},i.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 c=this.getChildProps(t.Children.toArray(a.props.children),l);c.length&&(o=!0,e[a.type.propertyName||p]=c)}}return o?e:null},i.prototype.getChildType=function(e){return e.type&&e.type.isDirective?e.type.moduleName||"":""},i.prototype.getChildProps=function(e,t){for(var i=[],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 c=r.extend({},l,{},!0);this.processComplexTemplate(c,n.type),i.push(c)}else{var h=this.validateChildren(r.extend({},l),t[p],l)||l;h.children&&delete h.children,this.processComplexTemplate(h,n.type),i.push(h)}}return i},i.prototype.getInjectedServices=function(){for(var e=0,r=t.Children.toArray(this.props.children);e<r.length;e++){var i=r[e];if(i.type.isService)return i.props.services}return[]},i.reactUid=1,i}(t.Component),c=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function i(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}(),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=r.getTemplateEngine();r.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("@syncfusion/ej2-base"),require("react-dom")):"function"==typeof define&&define.amd?define(["exports","react","@syncfusion/ej2-base","react-dom"],t):t(e.ej={},e.React,e.ej2Base,e.ReactDOM)}(this,function(e,t,r,i){"use strict";function o(e,o){return"string"==typeof e?f(e,o):function(o,s,n,a){var p=e,l=o;"object"==typeof p&&(p=e.template,l=r.extend({},o,e.data||{}));var c;if(c=a||document.createElement("div"),s&&s.isLegacyTemplate)i.render(p(l),c),a||r.detach(c);else{var h=t.createElement(p,l),d=i.createPortal(h,c);d.propName=n,s.portals?s.portals.push(d):s.portals=[d]}if(!a)return[c]}}var s=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function i(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}(),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 i(){var t=null!==e&&e.apply(this,arguments)||this;return t.attrKeys=[],t.cachedTimeOut=0,t.isAppendCalled=!1,t.initRenderCalled=!1,t.isReactForeceUpdate=!1,t.isReact=!0,t.isshouldComponentUpdateCalled=!1,t}return s(i,e),i.prototype.componentDidMount=function(){this.refreshChild(!0),this.canDelayUpdate=-1!==a.indexOf(this.getModuleName()),this.renderReactComponent(),this.portals&&this.portals.length&&this.renderReactTemplates()},i.prototype.componentDidUpdate=function(e){this.isshouldComponentUpdateCalled||!this.initRenderCalled||this.isReactForeceUpdate||(this.isshouldComponentUpdateCalled=!0,e!==this.props&&this.refreshProperties(this.props,!0))},i.prototype.renderReactComponent=function(){var e=this.reactElement;e&&(this.isAppendCalled=!0,this.appendTo(e))},i.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)},i.prototype.updateProperties=function(e,t){for(var i=this,o=r.extend({},e),s=0,n=Object.keys(e);s<n.length;s++){var a=n[s],p="className"===a;"children"!==a&&(p||r.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]))}o.children&&delete o.children,this.initRenderCalled&&(this.canDelayUpdate||this.props.delayUpdate)?setTimeout(function(){i.refreshProperties(o,e,t)}):this.refreshProperties(o,e,t)},i.prototype.refreshProperties=function(e,t,r){Object.keys(e).length&&(r||this.processComplexTemplate(e,this),this.setProperties(e,r)),this.refreshChild(r,t)},i.prototype.processComplexTemplate=function(e,t){var i=t.complexTemplate;if(i)for(var o in i){var s=i[o];e[o]&&r.setValue(s,r.getValue(o,e),e)}},i.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,o=t;r<o.length;r++){var s=o[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])}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=""+i.reactUid,i.reactUid++)}return this.htmlattributes},i.prototype.trigger=function(e,t,i){var o=this;if(!0!==this.isDestroyed&&this.modelObserver){if(p.test(e)){var s=r.getValue(e,this);s?(s.call(this,t),i&&i.call(this,t)):i&&i.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,i)}):this.modelObserver.notify(e,t,i),this.isProtectedOnChange=n}},i.prototype.compareValues=function(e,t){if(typeof e===typeof t){if(e===t)return!0;if((!r.isNullOrUndefined(e)&&e.constructor)!==(!r.isNullOrUndefined(t)&&t.constructor))return!1;if(e instanceof Date||e instanceof RegExp||e instanceof String||e instanceof Number)return e.toString()===t.toString();if(r.isObject(e)||Array.isArray(e)){var i=e,o=t;return r.isObject(i)&&(i=[e],o=[t]),this.compareObjects(i,o).status}}return!1},i.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],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("grid"===this.getModuleName()&&"field"===u&&(a[u]=y),!p.hasOwnProperty(u)||!this.compareValues(y,f)){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}},i.prototype.refreshChild=function(e,t){if(this.checkInjectedModules){for(var i=this.getInjectedModules()||[],o=0,s=this.getInjectedServices()||[];o<s.length;o++){var n=s[o];-1===i.indexOf(n)&&i.push(n)}this.injectedModules=i}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=r.extend(this.prevProperties,y)}}}else this.prevProperties=r.extend({},p,{},!0);if(a.length)if("grid"===this.getModuleName()&&"columns"===u)for(var m=0,v=this.columns;m<v.length;m++){if(r.getValue("field",v[m])===r.getValue(m+".value.field",a)){var g=r.getValue(a[m].key+"."+a[m].index,this);g&&g.setProperties?g.setProperties(a[m].value):r.extend(g,a[m].value)}}else for(var b=0,O=a;b<O.length;b++){var C=O[b],x=r.getValue(C.key+"."+C.index,this);x&&x.setProperties?x.setProperties(C.value):r.extend(x,C.value)}else this.setProperties(p,e)}}},i.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()},i.prototype.renderReactTemplates=function(e){this.isReactForeceUpdate=!0,e?this.forceUpdate(e):this.forceUpdate(),this.isReactForeceUpdate=!1},i.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)},i.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 c=this.getChildProps(t.Children.toArray(a.props.children),l);c.length&&(o=!0,e[a.type.propertyName||p]=c)}}return o?e:null},i.prototype.getChildType=function(e){return e.type&&e.type.isDirective?e.type.moduleName||"":""},i.prototype.getChildProps=function(e,t){for(var i=[],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 c=r.extend({},l,{},!0);this.processComplexTemplate(c,n.type),i.push(c)}else{var h=this.validateChildren(r.extend({},l),t[p],l)||l;h.children&&delete h.children,this.processComplexTemplate(h,n.type),i.push(h)}}return i},i.prototype.getInjectedServices=function(){for(var e=0,r=t.Children.toArray(this.props.children);e<r.length;e++){var i=r[e];if(i.type.isService)return i.props.services}return[]},i.reactUid=1,i}(t.Component),c=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function i(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}(),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=r.getTemplateEngine();r.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 |
@@ -101,5 +101,2 @@ import { Children, Component, PureComponent, createElement } from 'react'; | ||
} | ||
else if (propkey === 'value' && nextProps[propkey] === this[propkey]) { | ||
delete dProps[propkey]; | ||
} | ||
} | ||
@@ -251,13 +248,6 @@ if (dProps['children']) { | ||
let newValue = newProp[key]; | ||
if (key === 'items') { | ||
for (var _j = 0; _j < newValue.length; _j++) { | ||
if (this.getModuleName() === 'richtexteditor' && typeof (newValue[_j]) === 'object') { | ||
return { status: true }; | ||
} | ||
} | ||
} | ||
if (this.getModuleName() === 'grid' && key === 'field') { | ||
curObj[key] = newValue; | ||
} | ||
if (!oldProp.hasOwnProperty(key) || !this.compareValues(oldValue, newValue)) { | ||
if (!oldProp.hasOwnProperty(key) || !this.compareValues(newValue, oldValue)) { | ||
if (!propName) { | ||
@@ -264,0 +254,0 @@ return { status: false }; |
@@ -118,5 +118,2 @@ import { Children, Component, PureComponent, createElement } from 'react'; | ||
} | ||
else if (propkey === 'value' && nextProps[propkey] === this[propkey]) { | ||
delete dProps[propkey]; | ||
} | ||
} | ||
@@ -272,13 +269,6 @@ if (dProps['children']) { | ||
var newValue = newProp[key]; | ||
if (key === 'items') { | ||
for (var _j = 0; _j < newValue.length; _j++) { | ||
if (this.getModuleName() === 'richtexteditor' && typeof (newValue[_j]) === 'object') { | ||
return { status: true }; | ||
} | ||
} | ||
} | ||
if (this.getModuleName() === 'grid' && key === 'field') { | ||
curObj[key] = newValue; | ||
} | ||
if (!oldProp.hasOwnProperty(key) || !this.compareValues(oldValue, newValue)) { | ||
if (!oldProp.hasOwnProperty(key) || !this.compareValues(newValue, oldValue)) { | ||
if (!propName) { | ||
@@ -285,0 +275,0 @@ return { status: false }; |
/*! | ||
* filename: ej2-react-base.min.js | ||
* version : 19.3.57 | ||
* version : 19.4.38 | ||
* 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 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?y(e,s):function(s,o,n,a){var p=e,l=s;"object"==typeof p&&(p=e.template,l=r.extend({},s,e.data||{}));var h;if(h=a||document.createElement("div"),o&&o.isLegacyTemplate)i.render(p(l),h),a||r.detach(h);else{var c=t.createElement(p,l),u=i.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 i(){var t=null!==e&&e.apply(this,arguments)||this;return t.attrKeys=[],t.cachedTimeOut=0,t.isAppendCalled=!1,t.initRenderCalled=!1,t.isReactForeceUpdate=!1,t.isReact=!0,t.isshouldComponentUpdateCalled=!1,t}return n(i,e),i.prototype.componentDidMount=function(){this.refreshChild(!0),this.canDelayUpdate=-1!==p.indexOf(this.getModuleName()),this.renderReactComponent(),this.portals&&this.portals.length&&this.renderReactTemplates()},i.prototype.componentDidUpdate=function(e){this.isshouldComponentUpdateCalled||!this.initRenderCalled||this.isReactForeceUpdate||(this.isshouldComponentUpdateCalled=!0,e!==this.props&&this.refreshProperties(this.props,!0))},i.prototype.renderReactComponent=function(){var e=this.reactElement;e&&(this.isAppendCalled=!0,this.appendTo(e))},i.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)},i.prototype.updateProperties=function(e,t){for(var i=this,s=r.extend({},e),o=0,n=Object.keys(e);o<n.length;o++){var a=n[o],p="className"===a;"children"!==a&&(p||r.isNullOrUndefined(this.htmlattributes[a])||this.htmlattributes[a]===s[a]||(this.htmlattributes[a]=s[a]),this.compareValues(this.props[a],e[a])?delete s[a]:-1!==this.attrKeys.indexOf(a)?p?(this.element.classList.remove(this.props[a]),this.element.classList.add(s[a])):"disabled"!==a&&delete s[a]:"value"===a&&e[a]===this[a]&&delete s[a])}s.children&&delete s.children,this.initRenderCalled&&(this.canDelayUpdate||this.props.delayUpdate)?setTimeout(function(){i.refreshProperties(s,e,t)}):this.refreshProperties(s,e,t)},i.prototype.refreshProperties=function(e,t,r){Object.keys(e).length&&(r||this.processComplexTemplate(e,this),this.setProperties(e,r)),this.refreshChild(r,t)},i.prototype.processComplexTemplate=function(e,t){var i=t.complexTemplate;if(i)for(var s in i){var o=i[s];e[s]&&r.setValue(o,r.getValue(s,e),e)}},i.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,s=t;r<s.length;r++){var o=s[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])}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=""+i.reactUid,i.reactUid++)),this.htmlattributes},i.prototype.trigger=function(e,t,i){var s=this;if(!0!==this.isDestroyed&&this.modelObserver){if(l.test(e)){var o=r.getValue(e,this);o?(o.call(this,t),i&&i.call(this,t)):i&&i.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,i)}):this.modelObserver.notify(e,t,i),this.isProtectedOnChange=n}},i.prototype.compareValues=function(e,t){if(typeof e===typeof t){if(e===t)return!0;if((!r.isNullOrUndefined(e)&&e.constructor)!==(!r.isNullOrUndefined(t)&&t.constructor))return!1;if(e instanceof Date||e instanceof RegExp||e instanceof String||e instanceof Number)return e.toString()===t.toString();if(r.isObject(e)||Array.isArray(e)){var i=e,s=t;return r.isObject(i)&&(i=[e],s=[t]),this.compareObjects(i,s).status}}return!1},i.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],y=l[d];if("items"===d)for(var m=0;m<y.length;m++)if("richtexteditor"===this.getModuleName()&&"object"==typeof y[m])return{status:!0};if("grid"===this.getModuleName()&&"field"===d&&(a[d]=y),!p.hasOwnProperty(d)||!this.compareValues(f,y)){if(!r)return{status:!1};i=!1,a[d]=y}}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}},i.prototype.refreshChild=function(e,t){if(this.checkInjectedModules){for(var i=this.getInjectedModules()||[],s=0,o=this.getInjectedServices()||[];s<o.length;s++){var n=o[s];-1===i.indexOf(n)&&i.push(n)}this.injectedModules=i}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 y={};y[d]=p[d],this.prevProperties=r.extend(this.prevProperties,y)}}}else this.prevProperties=r.extend({},p,{},!0);if(a.length)if("grid"===this.getModuleName()&&"columns"===d){for(var m=0,v=this.columns;m<v.length;m++)if(r.getValue("field",v[m])===r.getValue(m+".value.field",a)){var g=r.getValue(a[m].key+"."+a[m].index,this);g&&g.setProperties?g.setProperties(a[m].value):r.extend(g,a[m].value)}}else for(var b=0,O=a;b<O.length;b++){var C=O[b],x=r.getValue(C.key+"."+C.index,this);x&&x.setProperties?x.setProperties(C.value):r.extend(x,C.value)}else this.setProperties(p,e)}}},i.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()},i.prototype.renderReactTemplates=function(e){this.isReactForeceUpdate=!0,e?this.forceUpdate(e):this.forceUpdate(),this.isReactForeceUpdate=!1},i.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)},i.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},i.prototype.getChildType=function(e){return e.type&&e.type.isDirective?e.type.moduleName||"":""},i.prototype.getChildProps=function(e,t){for(var i=[],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=r.extend({},l,{},!0);this.processComplexTemplate(h,n.type),i.push(h)}else{var c=this.validateChildren(r.extend({},l),t[p],l)||l;c.children&&delete c.children,this.processComplexTemplate(c,n.type),i.push(c)}}return i},i.prototype.getInjectedServices=function(){for(var e=0,r=t.Children.toArray(this.props.children);e<r.length;e++){var i=r[e];if(i.type.isService)return i.props.services}return[]},i.reactUid=1,i}(t.Component),c=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function i(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}(),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),y=r.getTemplateEngine();return r.setTemplateEngine({compile:o}),e.ComponentBase=h,e.applyMixins=s,e.ComplexBase=u,e.Inject=f,e.compile=o,e}({},React,ej.base,ReactDOM),this.ejs=ej; | ||
this.ej=this.ej||{},this.ej.reactbase=function(e,t,r,i){"use strict";function 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?y(e,s):function(s,o,n,a){var p=e,l=s;"object"==typeof p&&(p=e.template,l=r.extend({},s,e.data||{}));var h;if(h=a||document.createElement("div"),o&&o.isLegacyTemplate)i.render(p(l),h),a||r.detach(h);else{var c=t.createElement(p,l),d=i.createPortal(c,h);d.propName=n,o.portals?o.portals.push(d):o.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 i(){var t=null!==e&&e.apply(this,arguments)||this;return t.attrKeys=[],t.cachedTimeOut=0,t.isAppendCalled=!1,t.initRenderCalled=!1,t.isReactForeceUpdate=!1,t.isReact=!0,t.isshouldComponentUpdateCalled=!1,t}return n(i,e),i.prototype.componentDidMount=function(){this.refreshChild(!0),this.canDelayUpdate=-1!==p.indexOf(this.getModuleName()),this.renderReactComponent(),this.portals&&this.portals.length&&this.renderReactTemplates()},i.prototype.componentDidUpdate=function(e){this.isshouldComponentUpdateCalled||!this.initRenderCalled||this.isReactForeceUpdate||(this.isshouldComponentUpdateCalled=!0,e!==this.props&&this.refreshProperties(this.props,!0))},i.prototype.renderReactComponent=function(){var e=this.reactElement;e&&(this.isAppendCalled=!0,this.appendTo(e))},i.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)},i.prototype.updateProperties=function(e,t){for(var i=this,s=r.extend({},e),o=0,n=Object.keys(e);o<n.length;o++){var a=n[o],p="className"===a;"children"!==a&&(p||r.isNullOrUndefined(this.htmlattributes[a])||this.htmlattributes[a]===s[a]||(this.htmlattributes[a]=s[a]),this.compareValues(this.props[a],e[a])?delete s[a]:-1!==this.attrKeys.indexOf(a)&&(p?(this.element.classList.remove(this.props[a]),this.element.classList.add(s[a])):"disabled"!==a&&delete s[a]))}s.children&&delete s.children,this.initRenderCalled&&(this.canDelayUpdate||this.props.delayUpdate)?setTimeout(function(){i.refreshProperties(s,e,t)}):this.refreshProperties(s,e,t)},i.prototype.refreshProperties=function(e,t,r){Object.keys(e).length&&(r||this.processComplexTemplate(e,this),this.setProperties(e,r)),this.refreshChild(r,t)},i.prototype.processComplexTemplate=function(e,t){var i=t.complexTemplate;if(i)for(var s in i){var o=i[s];e[s]&&r.setValue(o,r.getValue(s,e),e)}},i.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,s=t;r<s.length;r++){var o=s[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])}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=""+i.reactUid,i.reactUid++)),this.htmlattributes},i.prototype.trigger=function(e,t,i){var s=this;if(!0!==this.isDestroyed&&this.modelObserver){if(l.test(e)){var o=r.getValue(e,this);o?(o.call(this,t),i&&i.call(this,t)):i&&i.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,i)}):this.modelObserver.notify(e,t,i),this.isProtectedOnChange=n}},i.prototype.compareValues=function(e,t){if(typeof e===typeof t){if(e===t)return!0;if((!r.isNullOrUndefined(e)&&e.constructor)!==(!r.isNullOrUndefined(t)&&t.constructor))return!1;if(e instanceof Date||e instanceof RegExp||e instanceof String||e instanceof Number)return e.toString()===t.toString();if(r.isObject(e)||Array.isArray(e)){var i=e,s=t;return r.isObject(i)&&(i=[e],s=[t]),this.compareObjects(i,s).status}}return!1},i.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,d=h;c<d.length;c++){var u=d[c],f=p[u],y=l[u];if("grid"===this.getModuleName()&&"field"===u&&(a[u]=y),!p.hasOwnProperty(u)||!this.compareValues(y,f)){if(!r)return{status:!1};i=!1,a[u]=y}}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}},i.prototype.refreshChild=function(e,t){if(this.checkInjectedModules){for(var i=this.getInjectedModules()||[],s=0,o=this.getInjectedServices()||[];s<o.length;s++){var n=o[s];-1===i.indexOf(n)&&i.push(n)}this.injectedModules=i}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=r.extend(this.prevProperties,y)}}}else this.prevProperties=r.extend({},p,{},!0);if(a.length)if("grid"===this.getModuleName()&&"columns"===u){for(var m=0,v=this.columns;m<v.length;m++)if(r.getValue("field",v[m])===r.getValue(m+".value.field",a)){var g=r.getValue(a[m].key+"."+a[m].index,this);g&&g.setProperties?g.setProperties(a[m].value):r.extend(g,a[m].value)}}else for(var b=0,O=a;b<O.length;b++){var C=O[b],x=r.getValue(C.key+"."+C.index,this);x&&x.setProperties?x.setProperties(C.value):r.extend(x,C.value)}else this.setProperties(p,e)}}},i.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()},i.prototype.renderReactTemplates=function(e){this.isReactForeceUpdate=!0,e?this.forceUpdate(e):this.forceUpdate(),this.isReactForeceUpdate=!1},i.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)},i.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},i.prototype.getChildType=function(e){return e.type&&e.type.isDirective?e.type.moduleName||"":""},i.prototype.getChildProps=function(e,t){for(var i=[],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=r.extend({},l,{},!0);this.processComplexTemplate(h,n.type),i.push(h)}else{var c=this.validateChildren(r.extend({},l),t[p],l)||l;c.children&&delete c.children,this.processComplexTemplate(c,n.type),i.push(c)}}return i},i.prototype.getInjectedServices=function(){for(var e=0,r=t.Children.toArray(this.props.children);e<r.length;e++){var i=r[e];if(i.type.isService)return i.props.services}return[]},i.reactUid=1,i}(t.Component),c=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function i(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}(),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=r.getTemplateEngine();return r.setTemplateEngine({compile:o}),e.ComponentBase=h,e.applyMixins=s,e.ComplexBase=d,e.Inject=f,e.compile=o,e}({},React,ej.base,ReactDOM),this.ejs=ej; | ||
//# sourceMappingURL=ej2-react-base.min.js.map |
/*! | ||
* filename: index.d.ts | ||
* version : 19.3.57 | ||
* version : 19.4.38 | ||
* 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.3.53", | ||
"_id": "@syncfusion/ej2-react-base@17.8.0", | ||
"_inBundle": false, | ||
"_integrity": "sha512-1Z4rAOVLAFEzmBnzGJCdt7L1bLcytMtxcQOmTB2HG1XuhH4sFTeOZQUUuNEyMUiY/so00onUZpUUQxqgRHOBSg==", | ||
"_integrity": "sha512-xU38QaURnkeTkvvWunix7BmOgaRFKoOw8BVb31Fs4rovO19FknUKj1n2Y71GQJImvcQfqerMaZbd4dVwxS1h5g==", | ||
"_location": "/@syncfusion/ej2-react-base", | ||
@@ -21,15 +21,37 @@ "_phantomChildren": {}, | ||
"/", | ||
"/@syncfusion/ej2-react-barcode-generator", | ||
"/@syncfusion/ej2-react-buttons", | ||
"/@syncfusion/ej2-react-calendars", | ||
"/@syncfusion/ej2-react-charts", | ||
"/@syncfusion/ej2-react-circulargauge", | ||
"/@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-heatmap", | ||
"/@syncfusion/ej2-react-inplace-editor", | ||
"/@syncfusion/ej2-react-inputs", | ||
"/@syncfusion/ej2-react-kanban", | ||
"/@syncfusion/ej2-react-layouts", | ||
"/@syncfusion/ej2-react-lineargauge", | ||
"/@syncfusion/ej2-react-lists", | ||
"/@syncfusion/ej2-react-maps", | ||
"/@syncfusion/ej2-react-navigations", | ||
"/@syncfusion/ej2-react-notifications", | ||
"/@syncfusion/ej2-react-pdfviewer", | ||
"/@syncfusion/ej2-react-pivotview", | ||
"/@syncfusion/ej2-react-popups", | ||
"/@syncfusion/ej2-react-progressbar", | ||
"/@syncfusion/ej2-react-querybuilder", | ||
"/@syncfusion/ej2-react-richtexteditor", | ||
"/@syncfusion/ej2-react-schedule", | ||
"/@syncfusion/ej2-react-splitbuttons", | ||
"/@syncfusion/ej2-react-spreadsheet", | ||
"/@syncfusion/ej2-react-treegrid" | ||
"/@syncfusion/ej2-react-treegrid", | ||
"/@syncfusion/ej2-react-treemap" | ||
], | ||
"_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-react-base/-/ej2-react-base-19.3.53.tgz", | ||
"_shasum": "f9aeb333c2e0d845dc8be1dc1edfe6cefafef33d", | ||
"_resolved": "http://nexus.syncfusion.com/repository/ej2-release/@syncfusion/ej2-react-base/-/ej2-react-base-17.8.0.tgz", | ||
"_shasum": "7f8746d82307ff345c044e7711acfb6388b3f415", | ||
"_spec": "@syncfusion/ej2-react-base@*", | ||
@@ -45,3 +67,3 @@ "_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included", | ||
"dependencies": { | ||
"@syncfusion/ej2-base": "~19.3.56" | ||
"@syncfusion/ej2-base": "~19.4.38" | ||
}, | ||
@@ -76,4 +98,4 @@ "deprecated": false, | ||
"typings": "index.d.ts", | ||
"version": "19.3.57", | ||
"version": "19.4.38", | ||
"sideEffects": true | ||
} |
@@ -117,5 +117,2 @@ var __extends = (this && this.__extends) || (function () { | ||
} | ||
else if (propkey === 'value' && nextProps[propkey] === this[propkey]) { | ||
delete dProps[propkey]; | ||
} | ||
} | ||
@@ -275,13 +272,6 @@ if (dProps['children']) { | ||
var newValue = newProp[key]; | ||
if (key === 'items') { | ||
for (var _j = 0; _j < newValue.length; _j++) { | ||
if (this.getModuleName() === 'richtexteditor' && typeof (newValue[_j]) === 'object') { | ||
return { status: true }; | ||
} | ||
} | ||
} | ||
if (this.getModuleName() === 'grid' && key === 'field') { | ||
curObj[key] = newValue; | ||
} | ||
if (!oldProp.hasOwnProperty(key) || !this.compareValues(oldValue, newValue)) { | ||
if (!oldProp.hasOwnProperty(key) || !this.compareValues(newValue, oldValue)) { | ||
if (!propName) { | ||
@@ -288,0 +278,0 @@ return { status: false }; |
@@ -24,3 +24,2 @@ /** | ||
immediateRender?: boolean; | ||
isLegacyTemplate?: boolean; | ||
delayUpdate?: string | boolean; | ||
@@ -27,0 +26,0 @@ onChange?: any; |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
315559
34
3081
+ Added@syncfusion/ej2-base@19.4.52(transitive)
+ Added@syncfusion/ej2-icons@19.4.52(transitive)
- Removed@syncfusion/ej2-base@19.3.57(transitive)
- Removed@syncfusion/ej2-icons@19.3.53(transitive)