@syncfusion/ej2-react-base
Advanced tools
Comparing version 18.4.39 to 18.4.41
@@ -9,2 +9,10 @@ # Changelog | ||
- Handled the destroy and event actions to prevent console errors. | ||
## 18.4.35 (2021-01-19) | ||
### Common | ||
#### Bug Fixes | ||
- Resolved typing issue on using `onChange` event. | ||
@@ -11,0 +19,0 @@ |
/*! | ||
* filename: ej2-react-base.umd.min.js | ||
* version : 18.4.39 | ||
* version : 18.4.41 | ||
* Copyright Syncfusion Inc. 2001 - 2020. All rights reserved. | ||
@@ -10,3 +10,3 @@ * Use of this code is subject to the terms of our license. | ||
*/ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react"),require("@syncfusion/ej2-base"),require("react-dom")):"function"==typeof define&&define.amd?define(["exports","react","@syncfusion/ej2-base","react-dom"],t):t(e.ej={},e.React,e.ej2Base,e.ReactDOM)}(this,function(e,t,r,i){"use strict";function n(e,n){return"string"==typeof e?f(e,n):function(n,o,s,a){var p=e,c=n;"object"==typeof p&&(p=e.template,c=r.extend({},n,e.data||{}));var l;if(l=a||document.createElement("div"),o&&o.isLegacyTemplate)i.render(p(c),l),a||r.detach(l);else{var h=t.createElement(p,c),u=i.createPortal(h,l);u.propName=s,o.portals?o.portals.push(u):o.portals=[u]}if(!a)return[l]}}var o=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function i(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}(),s=["alt","className","disabled","form","id","readOnly","style","tabIndex","title","type","name","onClick","onFocus","onBlur"],a=["accordion","tab","splitter"],p=new RegExp("]"),c=function(e){function i(){var t=null!==e&&e.apply(this,arguments)||this;return t.attrKeys=[],t.cachedTimeOut=0,t.isAppendCalled=!1,t.initRenderCalled=!1,t.isReactForeceUpdate=!1,t.isReact=!0,t}return o(i,e),i.prototype.componentDidMount=function(){this.refreshChild(!0),this.canDelayUpdate=-1!==a.indexOf(this.getModuleName()),this.renderReactComponent(),this.portals&&this.portals.length&&this.renderReactTemplates()},i.prototype.renderReactComponent=function(){var e=this.reactElement;e&&(this.isAppendCalled=!0,this.appendTo(e))},i.prototype.shouldComponentUpdate=function(e){return this.initRenderCalled?(this.isAppendCalled||(clearTimeout(this.cachedTimeOut),this.isAppendCalled=!0,this.appendTo(this.reactElement)),this.updateProperties(e),!0):(this.updateProperties(e,!0),!0)},i.prototype.updateProperties=function(e,t){for(var i=this,n=r.extend({},e),o=0,s=Object.keys(e);o<s.length;o++){var a=s[o],p="className"===a;"children"!==a&&(p||r.isNullOrUndefined(this.htmlattributes[a])||this.htmlattributes[a]===n[a]||(this.htmlattributes[a]=n[a]),this.compareValues(this.props[a],e[a])?delete n[a]:-1!==this.attrKeys.indexOf(a)&&(p?(this.element.classList.remove(this.props[a]),this.element.classList.add(n[a])):"disabled"!==a&&delete n[a]))}n.children&&delete n.children,this.initRenderCalled&&(this.canDelayUpdate||this.props.delayUpdate)?setTimeout(function(){i.refreshProperties(n,e,t)}):this.refreshProperties(n,e,t)},i.prototype.refreshProperties=function(e,t,r){Object.keys(e).length&&(r||this.processComplexTemplate(e,this),this.setProperties(e,r)),this.refreshChild(r,t)},i.prototype.processComplexTemplate=function(e,t){var i=t.complexTemplate;if(i)for(var n in i){var o=i[n];e[n]&&r.setValue(o,r.getValue(n,e),e)}},i.prototype.getDefaultAttributes=function(){var e=this;this.isReact=!0;var t=Object.keys(this.props);this.htmlattributes||(this.htmlattributes={}),this.attrKeys=s.concat(this.controlAttributes||[]);for(var r=0,n=t;r<n.length;r++){var o=n[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"].indexOf(this.getModuleName())&&(this.htmlattributes.key=""+i.reactUid,i.reactUid++)}return this.htmlattributes},i.prototype.trigger=function(e,t,i){var n=this;if(p.test(e)){var o=r.getValue(e,this);o?(o.call(this,t),i&&i.call(this,t)):i&&i.call(this,t)}if(!0!==this.isDestroyed){"change"!==e&&"input"!==e||this.props.onChange&&t.event&&this.props.onChange.call(void 0,{syntheticEvent:t.event,nativeEvent:{text:t.value},value:t.value,target:this});var s=this.isProtectedOnChange;this.isProtectedOnChange=!1,"created"===e?setTimeout(function(){n.isDestroyed||n.modelObserver.notify(e,t,i)}):this.modelObserver.notify(e,t,i),this.isProtectedOnChange=s}},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,n=t;return r.isObject(i)&&(i=[e],n=[t]),this.compareObjects(i,n).status}}return!1},i.prototype.compareObjects=function(e,t,r){var i=!0,n=[];if(e.length===t.length)for(var o=0,s=t.length;o<s;o++){for(var a={},p=e[o],c=t[o],l=0,h=Object.keys(c);l<h.length;l++){var u=h[l],d=p[u],f=c[u];if(!p.hasOwnProperty(u)||!this.compareValues(f,d)){if(!r)return{status:!1};i=!1,a[u]=f}}Object.keys(a).length&&n.push({index:o,value:a,key:r})}else i=!1;return{status:i,changedProperties:n}},i.prototype.refreshChild=function(e,t){if(this.checkInjectedModules){for(var i=this.getInjectedModules()||[],n=0,o=this.getInjectedServices()||[];n<o.length;n++){var s=o[n];-1===i.indexOf(s)&&i.push(s)}this.injectedModules=i}if(this.directivekeys){var a=[],p=this.validateChildren({},this.directivekeys,t||this.props);if(p&&Object.keys(p).length){if(!e&&this.skipRefresh)for(var c=0,l=this.skipRefresh;c<l.length;c++){delete p[l[c]]}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 y={};y[d]=p[d],this.prevProperties=r.extend(this.prevProperties,y)}}}else this.prevProperties=r.extend({},p,{},!0);if(a.length)for(var m=0,v=a;m<v.length;m++){var g=v[m],b=r.getValue(g.key+"."+g.index,this);b&&b.setProperties?b.setProperties(g.value):r.extend(b,g.value)}else this.setProperties(p,e)}}},i.prototype.componentWillUnmount=function(){clearTimeout(this.cachedTimeOut),this.initRenderCalled&&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,n=[];e&&e.length?Array.prototype.forEach.call(e,function(e){var r=0,o=0;if(i.portals.forEach(function(t){t.propName===e&&(n.push(o),o++)}),t&&i.portals[n[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)},i.prototype.validateChildren=function(e,r,i){for(var n=!1,o=0,s=t.Children.toArray(i.children);o<s.length;o++){var a=s[o],p=this.getChildType(a),c=r[p];if(p&&r){var l=this.getChildProps(t.Children.toArray(a.props.children),c);l.length&&(n=!0,e[a.type.propertyName||p]=l)}}return n?e:null},i.prototype.getChildType=function(e){return e.type&&e.type.isDirective?e.type.moduleName||"":""},i.prototype.getChildProps=function(e,t){for(var i=[],n=0,o=e;n<o.length;n++){var s=o[n],a=!1,p=void 0;"string"==typeof t?(a=!0,p=t):p=Object.keys(t)[0];var c=s.props;if(this.getChildType(s)===p)if(a||!c.children){var l=r.extend({},c,{},!0);this.processComplexTemplate(l,s.type),i.push(l)}else{var h=this.validateChildren(r.extend({},c),t[p],c)||c;h.children&&delete h.children,this.processComplexTemplate(h,s.type),i.push(h)}}return i},i.prototype.getInjectedServices=function(){for(var e=0,r=t.Children.toArray(this.props.children);e<r.length;e++){var i=r[e];if(i.type.isService)return i.props.services}return[]},i.reactUid=1,i}(t.Component),l=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function i(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}(),h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.render=function(){return null},t.isDirective=!0,t}(t.PureComponent),u=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function i(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}(),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=r.getTemplateEngine();r.setTemplateEngine({compile:n}),e.ComponentBase=c,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=n,Object.defineProperty(e,"__esModule",{value:!0})}); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react"),require("@syncfusion/ej2-base"),require("react-dom")):"function"==typeof define&&define.amd?define(["exports","react","@syncfusion/ej2-base","react-dom"],t):t(e.ej={},e.React,e.ej2Base,e.ReactDOM)}(this,function(e,t,r,i){"use strict";function n(e,n){return"string"==typeof e?f(e,n):function(n,o,s,a){var p=e,c=n;"object"==typeof p&&(p=e.template,c=r.extend({},n,e.data||{}));var l;if(l=a||document.createElement("div"),o&&o.isLegacyTemplate)i.render(p(c),l),a||r.detach(l);else{var h=t.createElement(p,c),u=i.createPortal(h,l);u.propName=s,o.portals?o.portals.push(u):o.portals=[u]}if(!a)return[l]}}var o=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function i(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}(),s=["alt","className","disabled","form","id","readOnly","style","tabIndex","title","type","name","onClick","onFocus","onBlur"],a=["accordion","tab","splitter"],p=new RegExp("]"),c=function(e){function i(){var t=null!==e&&e.apply(this,arguments)||this;return t.attrKeys=[],t.cachedTimeOut=0,t.isAppendCalled=!1,t.initRenderCalled=!1,t.isReactForeceUpdate=!1,t.isReact=!0,t}return o(i,e),i.prototype.componentDidMount=function(){this.refreshChild(!0),this.canDelayUpdate=-1!==a.indexOf(this.getModuleName()),this.renderReactComponent(),this.portals&&this.portals.length&&this.renderReactTemplates()},i.prototype.renderReactComponent=function(){var e=this.reactElement;e&&(this.isAppendCalled=!0,this.appendTo(e))},i.prototype.shouldComponentUpdate=function(e){return this.initRenderCalled?(this.isAppendCalled||(clearTimeout(this.cachedTimeOut),this.isAppendCalled=!0,this.appendTo(this.reactElement)),this.updateProperties(e),!0):(this.updateProperties(e,!0),!0)},i.prototype.updateProperties=function(e,t){for(var i=this,n=r.extend({},e),o=0,s=Object.keys(e);o<s.length;o++){var a=s[o],p="className"===a;"children"!==a&&(p||r.isNullOrUndefined(this.htmlattributes[a])||this.htmlattributes[a]===n[a]||(this.htmlattributes[a]=n[a]),this.compareValues(this.props[a],e[a])?delete n[a]:-1!==this.attrKeys.indexOf(a)&&(p?(this.element.classList.remove(this.props[a]),this.element.classList.add(n[a])):"disabled"!==a&&delete n[a]))}n.children&&delete n.children,this.initRenderCalled&&(this.canDelayUpdate||this.props.delayUpdate)?setTimeout(function(){i.refreshProperties(n,e,t)}):this.refreshProperties(n,e,t)},i.prototype.refreshProperties=function(e,t,r){Object.keys(e).length&&(r||this.processComplexTemplate(e,this),this.setProperties(e,r)),this.refreshChild(r,t)},i.prototype.processComplexTemplate=function(e,t){var i=t.complexTemplate;if(i)for(var n in i){var o=i[n];e[n]&&r.setValue(o,r.getValue(n,e),e)}},i.prototype.getDefaultAttributes=function(){var e=this;this.isReact=!0;var t=Object.keys(this.props);this.htmlattributes||(this.htmlattributes={}),this.attrKeys=s.concat(this.controlAttributes||[]);for(var r=0,n=t;r<n.length;r++){var o=n[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"].indexOf(this.getModuleName())&&(this.htmlattributes.key=""+i.reactUid,i.reactUid++)}return this.htmlattributes},i.prototype.trigger=function(e,t,i){var n=this;if(!0!==this.isDestroyed&&this.modelObserver){if(p.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 s=this.isProtectedOnChange;this.isProtectedOnChange=!1,"created"===e?setTimeout(function(){n.isDestroyed||n.modelObserver.notify(e,t,i)}):this.modelObserver.notify(e,t,i),this.isProtectedOnChange=s}},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,n=t;return r.isObject(i)&&(i=[e],n=[t]),this.compareObjects(i,n).status}}return!1},i.prototype.compareObjects=function(e,t,r){var i=!0,n=[];if(e.length===t.length)for(var o=0,s=t.length;o<s;o++){for(var a={},p=e[o],c=t[o],l=0,h=Object.keys(c);l<h.length;l++){var u=h[l],d=p[u],f=c[u];if(!p.hasOwnProperty(u)||!this.compareValues(f,d)){if(!r)return{status:!1};i=!1,a[u]=f}}Object.keys(a).length&&n.push({index:o,value:a,key:r})}else i=!1;return{status:i,changedProperties:n}},i.prototype.refreshChild=function(e,t){if(this.checkInjectedModules){for(var i=this.getInjectedModules()||[],n=0,o=this.getInjectedServices()||[];n<o.length;n++){var s=o[n];-1===i.indexOf(s)&&i.push(s)}this.injectedModules=i}if(this.directivekeys){var a=[],p=this.validateChildren({},this.directivekeys,t||this.props);if(p&&Object.keys(p).length){if(!e&&this.skipRefresh)for(var c=0,l=this.skipRefresh;c<l.length;c++){delete p[l[c]]}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 y={};y[d]=p[d],this.prevProperties=r.extend(this.prevProperties,y)}}}else this.prevProperties=r.extend({},p,{},!0);if(a.length)for(var m=0,v=a;m<v.length;m++){var g=v[m],b=r.getValue(g.key+"."+g.index,this);b&&b.setProperties?b.setProperties(g.value):r.extend(b,g.value)}else this.setProperties(p,e)}}},i.prototype.componentWillUnmount=function(){clearTimeout(this.cachedTimeOut),this.initRenderCalled&&this.isAppendCalled&&this.element&&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,n=[];e&&e.length?Array.prototype.forEach.call(e,function(e){var r=0,o=0;if(i.portals.forEach(function(t){t.propName===e&&(n.push(o),o++)}),t&&i.portals[n[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)},i.prototype.validateChildren=function(e,r,i){for(var n=!1,o=0,s=t.Children.toArray(i.children);o<s.length;o++){var a=s[o],p=this.getChildType(a),c=r[p];if(p&&r){var l=this.getChildProps(t.Children.toArray(a.props.children),c);l.length&&(n=!0,e[a.type.propertyName||p]=l)}}return n?e:null},i.prototype.getChildType=function(e){return e.type&&e.type.isDirective?e.type.moduleName||"":""},i.prototype.getChildProps=function(e,t){for(var i=[],n=0,o=e;n<o.length;n++){var s=o[n],a=!1,p=void 0;"string"==typeof t?(a=!0,p=t):p=Object.keys(t)[0];var c=s.props;if(this.getChildType(s)===p)if(a||!c.children){var l=r.extend({},c,{},!0);this.processComplexTemplate(l,s.type),i.push(l)}else{var h=this.validateChildren(r.extend({},c),t[p],c)||c;h.children&&delete h.children,this.processComplexTemplate(h,s.type),i.push(h)}}return i},i.prototype.getInjectedServices=function(){for(var e=0,r=t.Children.toArray(this.props.children);e<r.length;e++){var i=r[e];if(i.type.isService)return i.props.services}return[]},i.reactUid=1,i}(t.Component),l=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function i(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}(),h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.render=function(){return null},t.isDirective=!0,t}(t.PureComponent),u=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function i(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}(),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=r.getTemplateEngine();r.setTemplateEngine({compile:n}),e.ComponentBase=c,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=n,Object.defineProperty(e,"__esModule",{value:!0})}); | ||
//# sourceMappingURL=ej2-react-base.umd.min.js.map |
@@ -157,15 +157,15 @@ import { Children, Component, PureComponent, createElement } from 'react'; | ||
trigger(eventName, eventProp, successHandler) { | ||
if (isColEName.test(eventName)) { | ||
let handler = getValue(eventName, this); | ||
if (handler) { | ||
handler.call(this, eventProp); | ||
if (successHandler) { | ||
if (this.isDestroyed !== true && this.modelObserver) { | ||
if (isColEName.test(eventName)) { | ||
let handler = getValue(eventName, this); | ||
if (handler) { | ||
handler.call(this, eventProp); | ||
if (successHandler) { | ||
successHandler.call(this, eventProp); | ||
} | ||
} | ||
else if (successHandler) { | ||
successHandler.call(this, eventProp); | ||
} | ||
} | ||
else if (successHandler) { | ||
successHandler.call(this, eventProp); | ||
} | ||
} | ||
if (this.isDestroyed !== true) { | ||
if ((eventName === 'change' || eventName === 'input')) { | ||
@@ -319,3 +319,3 @@ if (this.props.onChange && eventProp.event) { | ||
// tslint:disable-next-line:no-any | ||
if (this.initRenderCalled) { | ||
if (this.initRenderCalled && this.isAppendCalled && this.element && document.body.contains(this.element) && !this.isDestroyed) { | ||
this.destroy(); | ||
@@ -322,0 +322,0 @@ } |
@@ -177,15 +177,15 @@ import { Children, Component, PureComponent, createElement } from 'react'; | ||
var _this = this; | ||
if (isColEName.test(eventName)) { | ||
var handler = getValue(eventName, this); | ||
if (handler) { | ||
handler.call(this, eventProp); | ||
if (successHandler) { | ||
if (this.isDestroyed !== true && this.modelObserver) { | ||
if (isColEName.test(eventName)) { | ||
var handler = getValue(eventName, this); | ||
if (handler) { | ||
handler.call(this, eventProp); | ||
if (successHandler) { | ||
successHandler.call(this, eventProp); | ||
} | ||
} | ||
else if (successHandler) { | ||
successHandler.call(this, eventProp); | ||
} | ||
} | ||
else if (successHandler) { | ||
successHandler.call(this, eventProp); | ||
} | ||
} | ||
if (this.isDestroyed !== true) { | ||
if ((eventName === 'change' || eventName === 'input')) { | ||
@@ -343,3 +343,3 @@ if (this.props.onChange && eventProp.event) { | ||
// tslint:disable-next-line:no-any | ||
if (this.initRenderCalled) { | ||
if (this.initRenderCalled && this.isAppendCalled && this.element && document.body.contains(this.element) && !this.isDestroyed) { | ||
this.destroy(); | ||
@@ -346,0 +346,0 @@ } |
/*! | ||
* filename: ej2-react-base.min.js | ||
* version : 18.4.39 | ||
* version : 18.4.41 | ||
* Copyright Syncfusion Inc. 2001 - 2020. All rights reserved. | ||
@@ -10,3 +10,3 @@ * Use of this code is subject to the terms of our license. | ||
*/ | ||
this.ej=this.ej||{},this.ej.reactbase=function(e,t,r,i){"use strict";function n(e,t){t.forEach(function(t){Object.getOwnPropertyNames(t.prototype).forEach(function(r){"isMounted"!==r&&"replaceState"!==r&&(e.prototype[r]=t.prototype[r])})})}function o(e,n){return"string"==typeof e?y(e,n):function(n,o,s,a){var p=e,c=n;"object"==typeof p&&(p=e.template,c=r.extend({},n,e.data||{}));var l;if(l=a||document.createElement("div"),o&&o.isLegacyTemplate)i.render(p(c),l),a||r.detach(l);else{var h=t.createElement(p,c),u=i.createPortal(h,l);u.propName=s,o.portals?o.portals.push(u):o.portals=[u]}if(!a)return[l]}}var s=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function i(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}(),a=["alt","className","disabled","form","id","readOnly","style","tabIndex","title","type","name","onClick","onFocus","onBlur"],p=["accordion","tab","splitter"],c=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}return s(i,e),i.prototype.componentDidMount=function(){this.refreshChild(!0),this.canDelayUpdate=-1!==p.indexOf(this.getModuleName()),this.renderReactComponent(),this.portals&&this.portals.length&&this.renderReactTemplates()},i.prototype.renderReactComponent=function(){var e=this.reactElement;e&&(this.isAppendCalled=!0,this.appendTo(e))},i.prototype.shouldComponentUpdate=function(e){return this.initRenderCalled?(this.isAppendCalled||(clearTimeout(this.cachedTimeOut),this.isAppendCalled=!0,this.appendTo(this.reactElement)),this.updateProperties(e),!0):(this.updateProperties(e,!0),!0)},i.prototype.updateProperties=function(e,t){for(var i=this,n=r.extend({},e),o=0,s=Object.keys(e);o<s.length;o++){var a=s[o],p="className"===a;"children"!==a&&(p||r.isNullOrUndefined(this.htmlattributes[a])||this.htmlattributes[a]===n[a]||(this.htmlattributes[a]=n[a]),this.compareValues(this.props[a],e[a])?delete n[a]:-1!==this.attrKeys.indexOf(a)&&(p?(this.element.classList.remove(this.props[a]),this.element.classList.add(n[a])):"disabled"!==a&&delete n[a]))}n.children&&delete n.children,this.initRenderCalled&&(this.canDelayUpdate||this.props.delayUpdate)?setTimeout(function(){i.refreshProperties(n,e,t)}):this.refreshProperties(n,e,t)},i.prototype.refreshProperties=function(e,t,r){Object.keys(e).length&&(r||this.processComplexTemplate(e,this),this.setProperties(e,r)),this.refreshChild(r,t)},i.prototype.processComplexTemplate=function(e,t){var i=t.complexTemplate;if(i)for(var n in i){var o=i[n];e[n]&&r.setValue(o,r.getValue(n,e),e)}},i.prototype.getDefaultAttributes=function(){var e=this;this.isReact=!0;var t=Object.keys(this.props);this.htmlattributes||(this.htmlattributes={}),this.attrKeys=a.concat(this.controlAttributes||[]);for(var r=0,n=t;r<n.length;r++){var o=n[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"].indexOf(this.getModuleName())&&(this.htmlattributes.key=""+i.reactUid,i.reactUid++)),this.htmlattributes},i.prototype.trigger=function(e,t,i){var n=this;if(c.test(e)){var o=r.getValue(e,this);o?(o.call(this,t),i&&i.call(this,t)):i&&i.call(this,t)}if(!0!==this.isDestroyed){"change"!==e&&"input"!==e||this.props.onChange&&t.event&&this.props.onChange.call(void 0,{syntheticEvent:t.event,nativeEvent:{text:t.value},value:t.value,target:this});var s=this.isProtectedOnChange;this.isProtectedOnChange=!1,"created"===e?setTimeout(function(){n.isDestroyed||n.modelObserver.notify(e,t,i)}):this.modelObserver.notify(e,t,i),this.isProtectedOnChange=s}},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,n=t;return r.isObject(i)&&(i=[e],n=[t]),this.compareObjects(i,n).status}}return!1},i.prototype.compareObjects=function(e,t,r){var i=!0,n=[];if(e.length===t.length)for(var o=0,s=t.length;o<s;o++){for(var a={},p=e[o],c=t[o],l=0,h=Object.keys(c);l<h.length;l++){var u=h[l],d=p[u],f=c[u];if(!p.hasOwnProperty(u)||!this.compareValues(f,d)){if(!r)return{status:!1};i=!1,a[u]=f}}Object.keys(a).length&&n.push({index:o,value:a,key:r})}else i=!1;return{status:i,changedProperties:n}},i.prototype.refreshChild=function(e,t){if(this.checkInjectedModules){for(var i=this.getInjectedModules()||[],n=0,o=this.getInjectedServices()||[];n<o.length;n++){var s=o[n];-1===i.indexOf(s)&&i.push(s)}this.injectedModules=i}if(this.directivekeys){var a=[],p=this.validateChildren({},this.directivekeys,t||this.props);if(p&&Object.keys(p).length){if(!e&&this.skipRefresh)for(var c=0,l=this.skipRefresh;c<l.length;c++)delete p[l[c]];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 y={};y[d]=p[d],this.prevProperties=r.extend(this.prevProperties,y)}}}else this.prevProperties=r.extend({},p,{},!0);if(a.length)for(var m=0,v=a;m<v.length;m++){var g=v[m],b=r.getValue(g.key+"."+g.index,this);b&&b.setProperties?b.setProperties(g.value):r.extend(b,g.value)}else this.setProperties(p,e)}}},i.prototype.componentWillUnmount=function(){clearTimeout(this.cachedTimeOut),this.initRenderCalled&&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,n=[];e&&e.length?Array.prototype.forEach.call(e,function(e){var r=0,o=0;if(i.portals.forEach(function(t){t.propName===e&&(n.push(o),o++)}),t&&i.portals[n[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)},i.prototype.validateChildren=function(e,r,i){for(var n=!1,o=0,s=t.Children.toArray(i.children);o<s.length;o++){var a=s[o],p=this.getChildType(a),c=r[p];if(p&&r){var l=this.getChildProps(t.Children.toArray(a.props.children),c);l.length&&(n=!0,e[a.type.propertyName||p]=l)}}return n?e:null},i.prototype.getChildType=function(e){return e.type&&e.type.isDirective?e.type.moduleName||"":""},i.prototype.getChildProps=function(e,t){for(var i=[],n=0,o=e;n<o.length;n++){var s=o[n],a=!1,p=void 0;"string"==typeof t?(a=!0,p=t):p=Object.keys(t)[0];var c=s.props;if(this.getChildType(s)===p)if(a||!c.children){var l=r.extend({},c,{},!0);this.processComplexTemplate(l,s.type),i.push(l)}else{var h=this.validateChildren(r.extend({},c),t[p],c)||c;h.children&&delete h.children,this.processComplexTemplate(h,s.type),i.push(h)}}return i},i.prototype.getInjectedServices=function(){for(var e=0,r=t.Children.toArray(this.props.children);e<r.length;e++){var i=r[e];if(i.type.isService)return i.props.services}return[]},i.reactUid=1,i}(t.Component),h=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function i(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}(),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return h(t,e),t.prototype.render=function(){return null},t.isDirective=!0,t}(t.PureComponent),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=l,e.applyMixins=n,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 n(e,t){t.forEach(function(t){Object.getOwnPropertyNames(t.prototype).forEach(function(r){"isMounted"!==r&&"replaceState"!==r&&(e.prototype[r]=t.prototype[r])})})}function o(e,n){return"string"==typeof e?y(e,n):function(n,o,s,a){var p=e,c=n;"object"==typeof p&&(p=e.template,c=r.extend({},n,e.data||{}));var l;if(l=a||document.createElement("div"),o&&o.isLegacyTemplate)i.render(p(c),l),a||r.detach(l);else{var h=t.createElement(p,c),u=i.createPortal(h,l);u.propName=s,o.portals?o.portals.push(u):o.portals=[u]}if(!a)return[l]}}var s=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function i(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}(),a=["alt","className","disabled","form","id","readOnly","style","tabIndex","title","type","name","onClick","onFocus","onBlur"],p=["accordion","tab","splitter"],c=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}return s(i,e),i.prototype.componentDidMount=function(){this.refreshChild(!0),this.canDelayUpdate=-1!==p.indexOf(this.getModuleName()),this.renderReactComponent(),this.portals&&this.portals.length&&this.renderReactTemplates()},i.prototype.renderReactComponent=function(){var e=this.reactElement;e&&(this.isAppendCalled=!0,this.appendTo(e))},i.prototype.shouldComponentUpdate=function(e){return this.initRenderCalled?(this.isAppendCalled||(clearTimeout(this.cachedTimeOut),this.isAppendCalled=!0,this.appendTo(this.reactElement)),this.updateProperties(e),!0):(this.updateProperties(e,!0),!0)},i.prototype.updateProperties=function(e,t){for(var i=this,n=r.extend({},e),o=0,s=Object.keys(e);o<s.length;o++){var a=s[o],p="className"===a;"children"!==a&&(p||r.isNullOrUndefined(this.htmlattributes[a])||this.htmlattributes[a]===n[a]||(this.htmlattributes[a]=n[a]),this.compareValues(this.props[a],e[a])?delete n[a]:-1!==this.attrKeys.indexOf(a)&&(p?(this.element.classList.remove(this.props[a]),this.element.classList.add(n[a])):"disabled"!==a&&delete n[a]))}n.children&&delete n.children,this.initRenderCalled&&(this.canDelayUpdate||this.props.delayUpdate)?setTimeout(function(){i.refreshProperties(n,e,t)}):this.refreshProperties(n,e,t)},i.prototype.refreshProperties=function(e,t,r){Object.keys(e).length&&(r||this.processComplexTemplate(e,this),this.setProperties(e,r)),this.refreshChild(r,t)},i.prototype.processComplexTemplate=function(e,t){var i=t.complexTemplate;if(i)for(var n in i){var o=i[n];e[n]&&r.setValue(o,r.getValue(n,e),e)}},i.prototype.getDefaultAttributes=function(){var e=this;this.isReact=!0;var t=Object.keys(this.props);this.htmlattributes||(this.htmlattributes={}),this.attrKeys=a.concat(this.controlAttributes||[]);for(var r=0,n=t;r<n.length;r++){var o=n[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"].indexOf(this.getModuleName())&&(this.htmlattributes.key=""+i.reactUid,i.reactUid++)),this.htmlattributes},i.prototype.trigger=function(e,t,i){var n=this;if(!0!==this.isDestroyed&&this.modelObserver){if(c.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 s=this.isProtectedOnChange;this.isProtectedOnChange=!1,"created"===e?setTimeout(function(){n.isDestroyed||n.modelObserver.notify(e,t,i)}):this.modelObserver.notify(e,t,i),this.isProtectedOnChange=s}},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,n=t;return r.isObject(i)&&(i=[e],n=[t]),this.compareObjects(i,n).status}}return!1},i.prototype.compareObjects=function(e,t,r){var i=!0,n=[];if(e.length===t.length)for(var o=0,s=t.length;o<s;o++){for(var a={},p=e[o],c=t[o],l=0,h=Object.keys(c);l<h.length;l++){var u=h[l],d=p[u],f=c[u];if(!p.hasOwnProperty(u)||!this.compareValues(f,d)){if(!r)return{status:!1};i=!1,a[u]=f}}Object.keys(a).length&&n.push({index:o,value:a,key:r})}else i=!1;return{status:i,changedProperties:n}},i.prototype.refreshChild=function(e,t){if(this.checkInjectedModules){for(var i=this.getInjectedModules()||[],n=0,o=this.getInjectedServices()||[];n<o.length;n++){var s=o[n];-1===i.indexOf(s)&&i.push(s)}this.injectedModules=i}if(this.directivekeys){var a=[],p=this.validateChildren({},this.directivekeys,t||this.props);if(p&&Object.keys(p).length){if(!e&&this.skipRefresh)for(var c=0,l=this.skipRefresh;c<l.length;c++)delete p[l[c]];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 y={};y[d]=p[d],this.prevProperties=r.extend(this.prevProperties,y)}}}else this.prevProperties=r.extend({},p,{},!0);if(a.length)for(var m=0,v=a;m<v.length;m++){var g=v[m],b=r.getValue(g.key+"."+g.index,this);b&&b.setProperties?b.setProperties(g.value):r.extend(b,g.value)}else this.setProperties(p,e)}}},i.prototype.componentWillUnmount=function(){clearTimeout(this.cachedTimeOut),this.initRenderCalled&&this.isAppendCalled&&this.element&&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,n=[];e&&e.length?Array.prototype.forEach.call(e,function(e){var r=0,o=0;if(i.portals.forEach(function(t){t.propName===e&&(n.push(o),o++)}),t&&i.portals[n[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)},i.prototype.validateChildren=function(e,r,i){for(var n=!1,o=0,s=t.Children.toArray(i.children);o<s.length;o++){var a=s[o],p=this.getChildType(a),c=r[p];if(p&&r){var l=this.getChildProps(t.Children.toArray(a.props.children),c);l.length&&(n=!0,e[a.type.propertyName||p]=l)}}return n?e:null},i.prototype.getChildType=function(e){return e.type&&e.type.isDirective?e.type.moduleName||"":""},i.prototype.getChildProps=function(e,t){for(var i=[],n=0,o=e;n<o.length;n++){var s=o[n],a=!1,p=void 0;"string"==typeof t?(a=!0,p=t):p=Object.keys(t)[0];var c=s.props;if(this.getChildType(s)===p)if(a||!c.children){var l=r.extend({},c,{},!0);this.processComplexTemplate(l,s.type),i.push(l)}else{var h=this.validateChildren(r.extend({},c),t[p],c)||c;h.children&&delete h.children,this.processComplexTemplate(h,s.type),i.push(h)}}return i},i.prototype.getInjectedServices=function(){for(var e=0,r=t.Children.toArray(this.props.children);e<r.length;e++){var i=r[e];if(i.type.isService)return i.props.services}return[]},i.reactUid=1,i}(t.Component),h=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function i(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}(),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return h(t,e),t.prototype.render=function(){return null},t.isDirective=!0,t}(t.PureComponent),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=l,e.applyMixins=n,e.ComplexBase=u,e.Inject=f,e.compile=o,e}({},React,ej.base,ReactDOM),this.ejs=ej; | ||
//# sourceMappingURL=ej2-react-base.min.js.map |
/*! | ||
* filename: index.d.ts | ||
* version : 18.4.39 | ||
* version : 18.4.41 | ||
* Copyright Syncfusion Inc. 2001 - 2020. All rights reserved. | ||
@@ -5,0 +5,0 @@ * Use of this code is subject to the terms of our license. |
{ | ||
"_from": "@syncfusion/ej2-react-base@*", | ||
"_id": "@syncfusion/ej2-react-base@18.4.34", | ||
"_id": "@syncfusion/ej2-react-base@18.4.39", | ||
"_inBundle": false, | ||
"_integrity": "sha512-jnZZ+RWIN0lWqbgsWDasUMJuxx4HrILWfWLXwyuZT0PH/7funYasj8P5aFaJsBsOypafVK/K2cl6/Xt7zdQwBA==", | ||
"_integrity": "sha512-EcgTAKqdu1VS7ZNeiQK9o2gBtlbPA3ZchiR7TsIMf58H5US6iAO12kwPOAux6T4qhMUWc70wihdDy9UWPKE8AQ==", | ||
"_location": "/@syncfusion/ej2-react-base", | ||
@@ -21,7 +21,5 @@ "_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", | ||
@@ -33,26 +31,14 @@ "/@syncfusion/ej2-react-documenteditor", | ||
"/@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-treemap" | ||
"/@syncfusion/ej2-react-treegrid" | ||
], | ||
"_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix/@syncfusion/ej2-react-base/-/ej2-react-base-18.4.34.tgz", | ||
"_shasum": "6db312640cda05105f0bf5191a972f6234a1d0c8", | ||
"_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix/@syncfusion/ej2-react-base/-/ej2-react-base-18.4.39.tgz", | ||
"_shasum": "2a54aa3803ddb91101d021da34986544772e69d2", | ||
"_spec": "@syncfusion/ej2-react-base@*", | ||
@@ -68,3 +54,3 @@ "_where": "/jenkins/workspace/automation_release_18.4.0.1-WOJ6QVY6EU5ONBWOYGQFKS2VU2UW7E67MOXUPKCE5AX7QQX7M5JQ/packages/included", | ||
"dependencies": { | ||
"@syncfusion/ej2-base": "~18.4.39" | ||
"@syncfusion/ej2-base": "~18.4.41" | ||
}, | ||
@@ -99,4 +85,4 @@ "deprecated": false, | ||
"typings": "index.d.ts", | ||
"version": "18.4.39", | ||
"version": "18.4.41", | ||
"sideEffects": true | ||
} |
@@ -176,15 +176,15 @@ var __extends = (this && this.__extends) || (function () { | ||
var _this = this; | ||
if (isColEName.test(eventName)) { | ||
var handler = getValue(eventName, this); | ||
if (handler) { | ||
handler.call(this, eventProp); | ||
if (successHandler) { | ||
if (this.isDestroyed !== true && this.modelObserver) { | ||
if (isColEName.test(eventName)) { | ||
var handler = getValue(eventName, this); | ||
if (handler) { | ||
handler.call(this, eventProp); | ||
if (successHandler) { | ||
successHandler.call(this, eventProp); | ||
} | ||
} | ||
else if (successHandler) { | ||
successHandler.call(this, eventProp); | ||
} | ||
} | ||
else if (successHandler) { | ||
successHandler.call(this, eventProp); | ||
} | ||
} | ||
if (this.isDestroyed !== true) { | ||
if ((eventName === 'change' || eventName === 'input')) { | ||
@@ -342,3 +342,3 @@ if (this.props.onChange && eventProp.event) { | ||
// tslint:disable-next-line:no-any | ||
if (this.initRenderCalled) { | ||
if (this.initRenderCalled && this.isAppendCalled && this.element && document.body.contains(this.element) && !this.isDestroyed) { | ||
this.destroy(); | ||
@@ -345,0 +345,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
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
255500