@syncfusion/ej2-vue-base
Advanced tools
Comparing version 20.4.48 to 20.4.51
@@ -5,2 +5,8 @@ # Changelog | ||
### Common | ||
#### Bug Fixes | ||
- `#I431571` - The issue with "Vue 3 components are not destroyed while routing" has been resolved. | ||
## 20.4.38 (2022-12-21) | ||
@@ -7,0 +13,0 @@ |
/*! | ||
* filename: ej2-vue-base.umd.min.js | ||
* version : 20.4.48 | ||
* version : 20.4.51 | ||
* Copyright Syncfusion Inc. 2001 - 2020. All rights reserved. | ||
@@ -12,3 +12,3 @@ * Use of this code is subject to the terms of our license. | ||
* filename: ej2-vue-base.umd.min.js | ||
* version : 20.4.42 | ||
* version : 20.3.56 | ||
* Copyright Syncfusion Inc. 2001 - 2020. All rights reserved. | ||
@@ -20,12 +20,4 @@ * Use of this code is subject to the terms of our license. | ||
*/ | ||
/*! | ||
* filename: ej2-vue-base.umd.min.js | ||
* version : 20.4.40 | ||
* Copyright Syncfusion Inc. 2001 - 2023. All rights reserved. | ||
* Use of this code is subject to the terms of our license. | ||
* A copy of the current license can be obtained at any time by e-mailing | ||
* licensing@syncfusion.com. Any infringement will be prosecuted under | ||
* applicable laws. | ||
*/ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("@syncfusion/ej2-base")):"function"==typeof define&&define.amd?define(["exports","vue","@syncfusion/ej2-base"],t):t(e.ej={},e.Vue,e.ej2Base)}(this,function(e,t,n){"use strict";function o(e,n){void 0===n&&(n={}),n.name=n.name||e._componentTag||e.name;var o=e.prototype;if(n.props)for(var r=function(e){(n.props||(n.props={}))[e]={},(n.watch||(n.watch={}))[e]=function(t){this.ej2Instances[e]=t,this.dataBind&&"DateRangePickerComponent"!==n.name&&this.dataBind()}},i=0,p=n.props;i<p.length;i++){r(p[i])}Object.getOwnPropertyNames(o).forEach(function(e){if("constructor"!==e)if(a.indexOf(e)>-1)n[e]=o[e];else{var t=Object.getOwnPropertyDescriptor(o,e);"function"==typeof t.value?(n.methods||(n.methods={}))[e]=t.value:(t.get||t.set)&&((n.computed||(n.computed={}))[e]={get:t.get,set:t.set})}}),Object.getOwnPropertyNames(s.prototype).forEach(function(e){a.indexOf(e)>-1&&(n[e]=o[e])}),(n.mixins||(n.mixins=[])).push({data:function(){return function(e,t){t.prototype._init=function(){var t=this,n=Object.getOwnPropertyNames(e);if(e.$options.props)for(var o in e.$options.props)e.hasOwnProperty(o)||n.push(o);n.forEach(function(n){"_"!==n.charAt(0)&&Object.defineProperty(t,n,{get:function(){return e[n]},set:function(t){return e[n]=t}})})};var n=new t,o={};return Object.keys(n).forEach(function(e){void 0!==n[e]&&(o[e]=n[e])}),o}(this,e)}});var c=e.__decorators__;c&&(c.forEach(Function(n)),delete e.__decorators__);var u=Object.getPrototypeOf(e.prototype);return(u instanceof t?u.constructor:t).extend(n)}function r(e,o){var r=this;return"string"==typeof e?p(e,o):function(o,i){var s=n.getUniqueID("templateParentDiv"),a=n.getUniqueID("templateDiv"),p=n.createElement("div",{id:s,innerHTML:'<div id="'+a+'"></div>'});document.body.appendChild(p);var c,u=e.call(r,{});if(i){var d=u.template,f=n.getValue("template.propsData",u),h={data:{data:n.extend(u.data||{},o)},parent:i.vueInstance};f&&(d=u.template.extends,h.propsData=f),"function"!=typeof d&&(d=t.extend(d));new d(h).$mount("#"+a),c=p.childNodes,n.detach(p)}return c||[]}}t=t&&t.hasOwnProperty("default")?t.default:t;var i=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.hasInjectedModules=!1,t.hasChildDirective=!1,t.childDirObjects="",t}return i(t,e),t.prototype.created=function(){for(var e=this,t=function(t){n.ej2Instances.addEventListener(t,function(n){e.$emit(t,n)})},n=this,o=0,r=this.propKeys;o<r.length;o++){t(r[o])}},t.prototype.mounted=function(){this.ej2Instances.isVue=!0,this.ej2Instances.vueInstance=this,this.ej2Instances.appendTo(this.$el)},t.prototype.getInjectedServices=function(){var e=[],t=n.getValue("$vnode.context.$options.provide",this);if(t){var o=t;"function"==typeof t&&(o=this.$vnode.context.$options.provide()),e=o[this.ej2Instances.getModuleName()]||[]}return e},t.prototype.updated=function(){if(this.hasChildDirective){var e={};this.fetchChildPropValues(e);var t=JSON.stringify(e);this.childDirObjects!==t&&(this.childDirObjects=t,this.assignValueToWrapper(e,!1))}},t.prototype.beforeDestroy=function(){var e=this;e.ej2Instances.destroy(),e.$el.style.visibility="hidden",e=null},t.prototype.bindProperties=function(){for(var e={},t=0,o=this.propKeys;t<o.length;t++){var r=o[t];n.isNullOrUndefined(this[r])||(e[r]=this[r])}if(this.hasChildDirective&&this.fetchChildPropValues(e),this.hasInjectedModules){for(var i=this.getInjectedServices()||[],s=0,a=this.ej2Instances.getInjectedModules()||[];s<a.length;s++){var p=a[s];-1===i.indexOf(p)&&i.push(p)}this.ej2Instances.injectedModules=i}this.assignValueToWrapper(e)},t.prototype.assignValueToWrapper=function(e,t){this.ej2Instances.setProperties(n.extend({},{},e,!0),!!n.isNullOrUndefined(t)||t)},t.prototype.fetchChildPropValues=function(e){var t=this.getDirectiveValues(this.$slots.default,this.tagMapper||{},this.tagNameMapper||{});this.childDirObjects||(this.childDirObjects=JSON.stringify(t));for(var n=0,o=Object.keys(t);n<o.length;n++){var r=o[n];e[r]=t[r]}},t.prototype.getDirectiveValues=function(e,t,n){var o=Object.keys(t),r={};if(e)for(var i=0,s=e;i<s.length;i++){var a=s[i];if(a.componentOptions&&a.componentOptions.children&&a.componentOptions.tag){var p=a.componentOptions.tag;if(-1!==o.indexOf(p)){var c=n[p]?n[p]:p;r[c.replace("e-","")]=[];for(var u=0,d=a.componentOptions.children;u<d.length;u++){var f=d[u],h=this.getVNodeValue(f,t[p],n);0!==Object.keys(h).length&&r[c.replace("e-","")].push(h)}}}}return r},t.prototype.getMultiLevelDirValue=function(e,t,n){for(var o={},r=0,i=e;r<i.length;r++){var s=i[r];if(s.componentOptions){var a=s.componentOptions.tag,p=n[a]?n[a]:a;if(o[p.replace("e-","")]=[],s.componentOptions&&s.componentOptions.children)for(var c=0,u=s.componentOptions.children;c<u.length;c++){var d=u[c],f=this.getVNodeValue(d,t[a],n);0!==Object.keys(f).length&&o[p.replace("e-","")].push(f)}}}return o},t.prototype.getVNodeValue=function(e,t,o){var r={};if(e.componentOptions){var i=e.componentOptions.tag;"string"==typeof t&&i===t&&e.data?r=e.data.attrs?this.getCamelCaseProps(e.data.attrs):this.getCamelCaseProps(e.data):"object"==typeof t&&(e.componentOptions.children&&-1!==Object.keys(t).indexOf(i)&&(r=this.getMultiLevelDirValue(e.componentOptions.children,t[i],o)),e.data&&e.data.attrs&&(r=n.extend(r,this.getCamelCaseProps(e.data.attrs))))}return r},t.prototype.getCamelCaseProps=function(e){for(var t={},n=0,o=Object.keys(e);n<o.length;n++){var r=o[n];t[r.replace(/-[a-z]/g,function(e){return e[1].toUpperCase()})]=e[r]}return t},t.prototype.dataBind=function(){this.ej2Instances.dataBind()},t.prototype.setProperties=function(e,t){return this.ej2Instances.setProperties(e,t)},t}(t),a=["data","beforeCreate","created","beforeMount","mounted","beforeDestroy","destroyed","beforeUpdate","updated","activated","deactivated","render","errorCaptured"],p=n.getTemplateEngine();n.setTemplateEngine({compile:r}),e.ComponentBase=s,e.$internalHooks=a,e.EJComponentDecorator=function(e){return function(t){return o(t,e)}},e.EJcomponentFactory=o,e.compile=r,Object.defineProperty(e,"__esModule",{value:!0})}); | ||
//# sourceMappingURL=ej2-vue-base.umd.min.js.map |
@@ -180,2 +180,8 @@ import { createElement, detach, extend, getTemplateEngine, getUniqueID, getValue, isNullOrUndefined, setTemplateEngine } from '@syncfusion/ej2-base'; | ||
beforeDestroy() { | ||
this.destroyComponent(); | ||
} | ||
beforeUnmount() { | ||
this.destroyComponent(); | ||
} | ||
destroyComponent() { | ||
let tempBeforeDestroyThis = this; | ||
@@ -182,0 +188,0 @@ tempBeforeDestroyThis.ej2Instances.destroy(); |
@@ -202,2 +202,8 @@ import { createElement, detach, extend, getTemplateEngine, getUniqueID, getValue, isNullOrUndefined, setTemplateEngine } from '@syncfusion/ej2-base'; | ||
ComponentBase.prototype.beforeDestroy = function () { | ||
this.destroyComponent(); | ||
}; | ||
ComponentBase.prototype.beforeUnmount = function () { | ||
this.destroyComponent(); | ||
}; | ||
ComponentBase.prototype.destroyComponent = function () { | ||
var tempBeforeDestroyThis = this; | ||
@@ -204,0 +210,0 @@ tempBeforeDestroyThis.ej2Instances.destroy(); |
/*! | ||
* filename: ej2-vue-base.min.js | ||
* version : 20.4.48 | ||
* version : 20.4.51 | ||
* 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.vuebase=function(e,t,n,r){"use strict";function s(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[""+n]=e[""+n]);return t.default=e,t}function o(e){if(void 0===e&&(e={}),e.props)for(var t=0,n=e.props;t<n.length;t++)!function(t){(e.newprops||(e.newprops={}))[""+t]={},(e.watch||(e.watch={}))[""+t]=function(n){this.ej2Instances[""+t]=n,this.dataBind&&"DateRangePickerComponent"!==e.name&&this.dataBind()}}(n[t]);return[e.newprops,e.watch]}function i(e,t){if(t)return function(t){return a(t,e)}}function a(e,t){void 0===t&&(t={}),t.name=t.name||e._componentTag||e.name;var n=e.prototype;if(t.props)for(var r=0,s=t.props;r<s.length;r++)!function(e){(t.props||(t.props={}))[""+e]={},(t.watch||(t.watch={}))[""+e]=function(n){this.ej2Instances[""+e]=n,this.dataBind&&"DateRangePickerComponent"!==t.name&&this.dataBind()}}(s[r]);Object.getOwnPropertyNames(n).forEach(function(e){if("constructor"!==e){if($.indexOf(e)>-1)return void(t[""+e]=n[""+e]);var r=Object.getOwnPropertyDescriptor(n,e);"function"==typeof r.value?(t.methods||(t.methods={}))[""+e]=r.value:(r.get||r.set)&&((t.computed||(t.computed={}))[""+e]={get:r.get,set:r.set})}}),Object.getOwnPropertyNames(b.prototype).forEach(function(e){if($.indexOf(e)>-1)return void(t[""+e]=n[""+e])}),(t.mixins||(t.mixins=[])).push({data:function(){return p(this,e)}});var o=e.__decorators__;o&&(o.forEach(Function(t)),delete e.__decorators__);var i=Object.getPrototypeOf(e.prototype);return(i instanceof v?i.constructor:v).extend(t)}function p(e,t){t.prototype._init=function(){var t=this,n=Object.getOwnPropertyNames(e);if(e.$options.props)for(var r in e.$options.props)e.hasOwnProperty(r)||n.push(r);n.forEach(function(n){"_"!==n.charAt(0)&&Object.defineProperty(t,n,{get:function(){return e[""+n]},set:function(t){return e[""+n]=t}})})};var n=new t,r={};return Object.keys(n).forEach(function(e){void 0!==n[""+e]&&(r[""+e]=n[""+e])}),r}function c(e,n){var r=this;return function(s,o,i,a,p){var c;if(o){var h=o.vueInstance?o.vueInstance.plugins:null,d=t.getUniqueID("templateParentDiv"),f=t.getUniqueID("templateDiv"),g=t.createElement("div",{id:d,innerHTML:'<div id="'+f+'"></div>'});if(document.body.appendChild(g),I||"string"!=typeof e)if(I)if("string"==typeof e){var m=l(o.vueInstance,e,p);if(!m)return t.detach(g),V(e,n)(s);new v({render:function(){return m[""+e]({data:s})}}).$mount("#"+f),c=g.childNodes,t.detach(g)}else{var y=e.call(r,{}),j=y.template,b=t.getValue("template.propsData",y),$={data:{data:t.extend(y.data||{},s)},parent:o.vueInstance};if(b&&(j=y.template.extends,$.propsData=b),"function"!=typeof j&&(j=v.extend(j)),new j($).$mount("#"+f),c=g.childNodes,o.vueInstance){var C=o.vueInstance.templateCollection;C||(o.vueInstance.templateCollection={},C=o.vueInstance.templateCollection),i&&(C[""+i]||(C[""+i]=[]),C[""+i].push(c[0]))}t.detach(g)}else{var D=y=e.call(r,{}),b=t.getValue("template.propsData",y),$={data:{data:t.extend(y.data||{},s)},parent:o.vueInstance};D.template||(D.template=D[Object.keys(D)[0]]);var k=void 0;if(D.template.extends)k=D.template.extends._context.components.template;else if(!(k=D.template._context.components[e.name])){var x=Object.keys(D.template._context.components)[0];k=D.template._context.components[""+x]}var S;if(b)S=Object.assign(k.data(),b);else if(S=Object.assign(k.data(),$.data),k.components)for(var N=0,M=Object.keys(k.components)||[];N<M.length;N++)!function(e){var t=k.components[""+e];if(t&&t.data){var n=Object.assign(t.data(),$.data);t.data=function(){return n}}}(M[N]);k.data=function(){return S};_=O.createApp(k);if(h)for(w=0;w<h.length;w++)_.use(h[parseInt(w.toString(),10)]);_.mount("grid"===o.getModuleName()?"#"+d:"#"+f),c=g.childNodes,t.detach(g)}else{var P=u(o.vueInstance,e,p);if(!P)return t.detach(g),V(e,n)(s);var _=O.createApp({render:function(){return P[""+e]({data:s})}});if(h)for(var w=0;w<h.length;w++)_.use(h[parseInt(w.toString(),10)]);_.mount("grid"===o.getModuleName()?"#"+d:"#"+f),c=g.childNodes,t.detach(g)}}return c||[]}}function l(e,t,n){if(e||n&&n.vueInstance)return h(n&&n.vueInstance?n.vueInstance:e,t)}function h(e,t){if(e){var n=e.$slots,r=e.$scopedSlots,s=e.scopedSlots,o=e.children;if(r&&r[""+t])return r;if(n&&n.default){for(var i=n.default,a=0;a<i.length;a++)if(p=h(d(i[parseInt(a.toString(),10)]),t))return p}else{if(s&&s[""+t])return s;if(o)for(a=0;a<o.length;a++){var p=h(d(o[parseInt(a.toString(),10)]),t);if(p)return p}}}}function d(e){var t=e.componentOptions&&e.componentOptions.children?e.componentOptions:e.data||"e-markersettings"!==e.tag&&"e-markersetting"!==e.tag?e.data:e;return e.componentInstance?e.componentInstance:t}function u(e,t,n){if(e||n&&n.vueInstance)return f(n&&n.vueInstance?n.vueInstance.$slots:e.$slots,t)}function f(e,t){if(e&&e[""+t])return e;if(e&&e.default)for(var n=e.default(),r=0;r<n.length;r++){var s=f(n[parseInt(r.toString(),10)].children,t);if(s)return s}}var g,v=r.default,m=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),y=s(r),O=y,j=O.h,I=!(parseInt(O.version)>2),b=function(e){function n(){var t=e.call(this,arguments)||this;return t.hasInjectedModules=!1,t.hasChildDirective=!1,t.childDirObjects="",t.isDecorator=!1,t}return m(n,e),n.prototype.created=function(){var e=this;if(this.propKeys){for(var n=this,r=0,s=this.propKeys;r<s.length;r++)!function(t){n.ej2Instances.addEventListener(t,function(n){e.$emit(t,n)})}(s[r]);var o=t.getValue("$root.$options.provide",this),i=t.getValue("$parent.$options.provide",this);if(i=t.isNullOrUndefined(i)?t.getValue("$.parent.provides",this):i,this.hasInjectedModules&&!I){var a=[];o&&o.managed?(this.isDecorator=!0,a=this.getInjectedServices()||[]):o?a=o[this.ej2Instances.getModuleName()]||[]:i&&(a=this.getInjectedServices()||[]);for(var p=0,c=this.ej2Instances.getInjectedModules()||[];p<c.length;p++){var l=c[p];-1===a.indexOf(l)&&a.push(l)}this.ej2Instances.injectedModules=a}}},n.prototype.mounted=function(){var e=this.$el?this.$el.querySelectorAll("div.e-directive"):null;if(!I&&e)for(var t=0;t<e.length;t++)e[parseInt(t.toString(),10)].parentElement&&e[parseInt(t.toString(),10)].parentElement.removeChild(e[parseInt(t.toString(),10)]);this.ej2Instances.isVue=!0,this.ej2Instances.isVue3=this.isVue3,this.ej2Instances.vueInstance=this,this.isVue3&&(this.ej2Instances.ej2Instances=this.ej2Instances,this.ej2Instances.referModels=this.models,this.setModelValue()),this.ej2Instances.appendTo(this.$el)},n.prototype.setModelValue=function(){if(!t.isNullOrUndefined(this.modelValue)||!t.isNullOrUndefined(this.$attrs.modelValue)){var e=(this.models.toString().match(/checked|value/)||[])[0];t.isNullOrUndefined(e)||(this.ej2Instances[""+e]=t.isNullOrUndefined(this.modelValue)?this.$attrs.modelValue:this.modelValue)}},n.prototype.getInjectedServices=function(){var e,n=[];if(this.$root&&this.isDecorator?e=t.getValue("$root.$options.provide",this):this.$vnode?e=t.getValue("$vnode.context.$options.provide",this):this.$parent&&(e=t.getValue("$parent.$options.provide",this)),t.isNullOrUndefined(e)&&!t.isNullOrUndefined(this.$)&&(e=t.getValue("$.parent.provides",this)),e){var r=e;if("function"==typeof e)if(e.managed){var s=e.managed,o=Object.keys(s),i=void 0;this.$root&&this.isDecorator?i=Object.keys(this.$root):this.$vnode?i=Object.keys(this.$vnode.context):this.$parent&&(i=Object.keys(this.$parent));for(var a=0;a<o.length;a++)for(var p=0;p<i.length;p++)-1!==i[parseInt(p.toString(),10)].indexOf(o[parseInt(a.toString(),10)])&&(this.$root&&this.isDecorator?s[o[parseInt(p.toString(),10)]]=this.$root[i[parseInt(a.toString(),10)]]:this.$vnode?s[o[parseInt(a.toString(),10)]]=this.$vnode.context[i[parseInt(p.toString(),10)]]:this.$parent&&(s[o[parseInt(a.toString(),10)]]=this.$parent[i[parseInt(p.toString(),10)]]),r=s)}else this.$vnode?r=this.$vnode.context.$options.provide():this.$parent&&(r=this.$parent.$options.provide());n=r[this.ej2Instances.getModuleName()]||[]}return this.isDecorator=!1,n},n.prototype.updated=function(){if(this.isVue3&&this.setModelValue(),this.hasChildDirective){var e={};this.fetchChildPropValues(e);var t=JSON.stringify(e);this.childDirObjects!==t&&(this.childDirObjects=t,this.assignValueToWrapper(e,!1))}},n.prototype.beforeDestroy=function(){var e=this;e.ej2Instances.destroy(),e.$el.style.visibility="hidden",e=null},n.prototype.bindProperties=function(){for(var e={},n=0,r=this.propKeys;n<r.length;n++){var s=r[n];(!t.isNullOrUndefined(this[""+s])&&!this.isVue3||this[0]&&!t.isNullOrUndefined(this[0][0])&&!t.isNullOrUndefined(this[0][0][""+s]))&&(e[""+s]=this.isVue3?this[0][0][""+s]:this[""+s])}if(this.hasChildDirective&&this.fetchChildPropValues(e),this.hasInjectedModules){for(var o=this.getInjectedServices()||[],i=0,a=this.ej2Instances.getInjectedModules()||[];i<a.length;i++){var p=a[i];-1===o.indexOf(p)&&o.push(p)}this.ej2Instances.injectedModules=o}this.assignValueToWrapper(e)},n.prototype.assignValueToWrapper=function(e,n){this.ej2Instances.setProperties(t.extend({},{},e,!0),!!t.isNullOrUndefined(n)||n)},n.prototype.fetchChildPropValues=function(e){var t={};if(this.isVue3){var n=void 0;if(this[0]&&this[0][1].slots.default?n=this[0][1].slots.default():this&&this.$&&this.$.slots&&this.$.slots.default&&(n=this.$.slots.default()),!n)return;for(var r=0;r<n.length;r++)if(n[parseInt(r.toString(),10)].type.methods||"e-seriescollection"===n[parseInt(r.toString(),10)].type){var s="e-seriescollection"===n[parseInt(r.toString(),10)].type?"series-collection":n[parseInt(r.toString(),10)].type.methods.getTag().replace("e-",""),o=this.resolveArrayDirectives(n[parseInt(r.toString(),10)].children,s),i=s.split("-"),a=this.ej2Instances.getModuleName().toLowerCase(),p=i.length>1&&a.indexOf(i[0])>-1?i[1]:i[0];p=p.replace(a,""),"splitter"==a&&"panes"==p?p="paneSettings":"bulletchart"==a&&"range"==p?p="ranges":"schedule"==a&&"header"==p&&(p="headerRows"),t[""+p]=o[""+s]}}else t=this.getDirectiveValues(this.$slots.default,this.tagMapper||{},this.tagNameMapper||{});this.childDirObjects||(this.childDirObjects=JSON.stringify(t));for(var c=0,l=Object.keys(t);c<l.length;c++){var h=l[c];e[""+h]=t[""+h]}},n.prototype.resolveArrayDirectives=function(e,t){var n,r=[];r=e.default?e.default():e;var s={};s[""+t]=[];for(var o=this,i=0,a=r;i<a.length;i++)!function(e){var r={},i=e.type.methods?e.type.methods.getTag():t;if(e.children){var a=void 0;if((n=o.resolveComplexDirs(e.children,o.tagMapper["e-"+t],i)).length)r=n;else for(var p=0;p<Object.keys(n).length;p++)a=Object.keys(n)[parseInt(p.toString(),10)],r[""+a]=n[""+a]}e.props&&Object.keys(e.props).forEach(function(t){var n=t.replace(/-[a-z]/g,function(e){return e[1].toUpperCase()});n&&(r[""+n]=e.props[""+t])}),/[s]\b/.test(i)&&n&&(!/[s]\b/.test(t)||n.length)?s[""+t]=r:r&&0!==Object.keys(r).length&&s[""+t].push(r)}(a[i]);return s},n.prototype.resolveComplexDirs=function(e,t,n){for(var r,s=[],o={},i=this,a=0,p=s=e.default?e.default():e;a<p.length;a++)!function(e){var a=void 0;t[""+n]&&(a=(a=Object.keys(t[""+n]).find(function(r){return t[""+n][""+r]===e.type.methods.getTag().replace(/[s]\b/,"")}))?a.replace("e-",""):e.type.methods.getTag().replace("e-",""),"diagram"==i.ej2Instances.getModuleName().toLowerCase()&&-1!=a.indexOf("annotations")&&(a="annotations")),e.children&&(r=i.resolveComplexInnerDirs(e.children,t[""+n],e.type.methods.getTag()),o[""+a]||(o[""+a]=[]),r.length>1?o[""+a]=r:o[""+a].push(r)),e.props&&(e.props=i.getCamelCaseProps(e.props)),s.length>1?(o=0!=Object.keys(o).length||o.length?o:[],e.props&&o.push(e.props)):o=e.props?Object.assign(o,e.props):o}(p[a]);return o},n.prototype.resolveComplexInnerDirs=function(e,t,n){for(var r,s=[],o=(s=e.default?e.default():e).length>1?[]:{},i=0,a=s;i<a.length;i++){var p=a[i],c=p.type.methods.getTag().replace("e-","");p.children&&(r=this.resolveMultilevelComplexInnerDirs(p.children,t[""+n],p.type.methods.getTag()),/[s]\b/.test(c)||s.length>1?/[s]\b/.test(c)?(o[""+c]=o[""+c]?o[""+c]:[],r.length?o[""+c]=r:o[""+c].push(r)):r&&o.push(r):o=r||o),p.props&&(p.props=this.getCamelCaseProps(p.props)),s.length>1&&p.props&&o.length>=0?o.push(p.props):o=p.props?Object.assign(o,p.props):o}return o},n.prototype.resolveMultilevelComplexInnerDirs=function(e,t,n){for(var r,s=[],o=(s=e.default?e.default():e).length>1?[]:{},i=0,a=s;i<a.length;i++){var p=a[i],c=p.type.methods.getTag().replace("e-","");p.children&&(r=this.resolveComplexInnerDirs(p.children,t[""+n],p.type.methods.getTag())),p.props&&(p.props=this.getCamelCaseProps(p.props)),/[s]\b/.test(c)?(o[""+c]=o[""+c]?o[""+c]:[],r.length?o[""+c]=r:o[""+c].push(r),p.props&&o[""+c].push(p.props)):(o=r,o=p.props?Object.assign(o,p.props):o)}return o},n.prototype.getDirectiveValues=function(e,t,n){var r=Object.keys(t),s={};if(e)for(var o=0,i=e;o<i.length;o++){var a=i[o];if(a.componentOptions&&a.componentOptions.children&&a.componentOptions.tag||"e-seriescollection"===a.tag&&a.children){var p=a.componentOptions?a.componentOptions.tag:a.tag;if(p="e-seriescollection"===p?"e-seriesCollection":p,-1!==r.indexOf(p)){var c=n[""+p]?n[""+p]:p;s[c.replace("e-","")]=[];for(var l=0,h=a.componentOptions?a.componentOptions.children:a.children;l<h.length;l++){var d=h[l],u=this.getVNodeValue(d,t[""+p],n);0!==Object.keys(u).length&&s[c.replace("e-","")].push(u)}}}}return s},n.prototype.getMultiLevelDirValue=function(e,t,n){for(var r={},s=0,o=e;s<o.length;s++){var i=o[s],a=void 0,p=void 0;if(i.componentOptions?(a=i.componentOptions.tag,i.componentOptions.children&&(p=i.componentOptions.children)):"e-markersettings"!==i.tag&&"e-markersetting"!==i.tag||!i.children||(a="e-markersettings"===i.tag?"e-markerSettings":"e-markerSetting",p=i.children),a){var c=n[""+a]?n[""+a]:a;if(r[c.replace("e-","")]=[],p)for(var l=0,h=p;l<h.length;l++){var d=h[l],u=this.getVNodeValue(d,t[""+a],n);0!==Object.keys(u).length&&r[c.replace("e-","")].push(u)}}}return r},n.prototype.getVNodeValue=function(e,n,r){var s={};if(e.componentOptions||("e-markersettings"===e.tag||"e-markersetting"===e.tag)&&e.context){var o=void 0;o=e.componentOptions?e.componentOptions.tag:"e-markersettings"===e.tag?"e-markerSettings":"e-markerSetting","string"==typeof n&&o===n&&e.data?s=e.data.attrs?this.getCamelCaseProps(e.data.attrs):this.getCamelCaseProps(e.data):"object"==typeof n&&(e.componentOptions.children&&-1!==Object.keys(n).indexOf(o)?s=this.getMultiLevelDirValue(e.componentOptions.children,n[""+o],r):!e.children||-1===Object.keys(n).indexOf(o)||"e-markersettings"!==o&&"e-markersetting"!==o||(s=this.getMultiLevelDirValue(e.children,n[""+o],r)),e.data&&e.data.attrs&&(s=t.extend(s,this.getCamelCaseProps(e.data.attrs))))}return s},n.prototype.getCamelCaseProps=function(e){for(var t={},n=0,r=Object.keys(e);n<r.length;n++){var s=r[n];t[s.replace(/-[a-z]/g,function(e){return e[1].toUpperCase()})]=e[""+s]}return t},n.prototype.dataBind=function(){this.ej2Instances.dataBind()},n.prototype.setProperties=function(e,t){return this.ej2Instances.setProperties(e,t)},n}(g=!I||parseInt(O.version)<3?n.Vue:v),$=["data","beforeCreate","created","beforeMount","mounted","beforeDestroy","destroyed","beforeUpdate","updated","activated","deactivated","render","errorCaptured"],V=t.getTemplateEngine();return t.setTemplateEngine({compile:c}),e.aVue=y,e._interopRequireWildcard=s,e.allVue=O,e.gh=j,e.isExecute=I,e.ComponentBase=b,e.$internalHooks=$,e.getProps=o,e.EJComponentDecorator=i,e.EJcomponentFactory=a,e.compile=c,e}({},ej.base,Vue3,Vue$1),this.ejs=ej; | ||
this.ej=this.ej||{},this.ej.vuebase=function(e,t,n,r){"use strict";function s(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[""+n]=e[""+n]);return t.default=e,t}function o(e){if(void 0===e&&(e={}),e.props)for(var t=0,n=e.props;t<n.length;t++)!function(t){(e.newprops||(e.newprops={}))[""+t]={},(e.watch||(e.watch={}))[""+t]=function(n){this.ej2Instances[""+t]=n,this.dataBind&&"DateRangePickerComponent"!==e.name&&this.dataBind()}}(n[t]);return[e.newprops,e.watch]}function i(e,t){if(t)return function(t){return a(t,e)}}function a(e,t){void 0===t&&(t={}),t.name=t.name||e._componentTag||e.name;var n=e.prototype;if(t.props)for(var r=0,s=t.props;r<s.length;r++)!function(e){(t.props||(t.props={}))[""+e]={},(t.watch||(t.watch={}))[""+e]=function(n){this.ej2Instances[""+e]=n,this.dataBind&&"DateRangePickerComponent"!==t.name&&this.dataBind()}}(s[r]);Object.getOwnPropertyNames(n).forEach(function(e){if("constructor"!==e){if($.indexOf(e)>-1)return void(t[""+e]=n[""+e]);var r=Object.getOwnPropertyDescriptor(n,e);"function"==typeof r.value?(t.methods||(t.methods={}))[""+e]=r.value:(r.get||r.set)&&((t.computed||(t.computed={}))[""+e]={get:r.get,set:r.set})}}),Object.getOwnPropertyNames(b.prototype).forEach(function(e){if($.indexOf(e)>-1)return void(t[""+e]=n[""+e])}),(t.mixins||(t.mixins=[])).push({data:function(){return p(this,e)}});var o=e.__decorators__;o&&(o.forEach(Function(t)),delete e.__decorators__);var i=Object.getPrototypeOf(e.prototype);return(i instanceof v?i.constructor:v).extend(t)}function p(e,t){t.prototype._init=function(){var t=this,n=Object.getOwnPropertyNames(e);if(e.$options.props)for(var r in e.$options.props)e.hasOwnProperty(r)||n.push(r);n.forEach(function(n){"_"!==n.charAt(0)&&Object.defineProperty(t,n,{get:function(){return e[""+n]},set:function(t){return e[""+n]=t}})})};var n=new t,r={};return Object.keys(n).forEach(function(e){void 0!==n[""+e]&&(r[""+e]=n[""+e])}),r}function c(e,n){var r=this;return function(s,o,i,a,p){var c;if(o){var h=o.vueInstance?o.vueInstance.plugins:null,d=t.getUniqueID("templateParentDiv"),f=t.getUniqueID("templateDiv"),g=t.createElement("div",{id:d,innerHTML:'<div id="'+f+'"></div>'});if(document.body.appendChild(g),I||"string"!=typeof e)if(I)if("string"==typeof e){var m=l(o.vueInstance,e,p);if(!m)return t.detach(g),V(e,n)(s);new v({render:function(){return m[""+e]({data:s})}}).$mount("#"+f),c=g.childNodes,t.detach(g)}else{var y=e.call(r,{}),j=y.template,b=t.getValue("template.propsData",y),$={data:{data:t.extend(y.data||{},s)},parent:o.vueInstance};if(b&&(j=y.template.extends,$.propsData=b),"function"!=typeof j&&(j=v.extend(j)),new j($).$mount("#"+f),c=g.childNodes,o.vueInstance){var C=o.vueInstance.templateCollection;C||(o.vueInstance.templateCollection={},C=o.vueInstance.templateCollection),i&&(C[""+i]||(C[""+i]=[]),C[""+i].push(c[0]))}t.detach(g)}else{var D=y=e.call(r,{}),b=t.getValue("template.propsData",y),$={data:{data:t.extend(y.data||{},s)},parent:o.vueInstance};D.template||(D.template=D[Object.keys(D)[0]]);var k=void 0;if(D.template.extends)k=D.template.extends._context.components.template;else if(!(k=D.template._context.components[e.name])){var x=Object.keys(D.template._context.components)[0];k=D.template._context.components[""+x]}var S;if(b)S=Object.assign(k.data(),b);else if(S=Object.assign(k.data(),$.data),k.components)for(var N=0,M=Object.keys(k.components)||[];N<M.length;N++)!function(e){var t=k.components[""+e];if(t&&t.data){var n=Object.assign(t.data(),$.data);t.data=function(){return n}}}(M[N]);k.data=function(){return S};_=O.createApp(k);if(h)for(w=0;w<h.length;w++)_.use(h[parseInt(w.toString(),10)]);_.mount("grid"===o.getModuleName()?"#"+d:"#"+f),c=g.childNodes,t.detach(g)}else{var P=u(o.vueInstance,e,p);if(!P)return t.detach(g),V(e,n)(s);var _=O.createApp({render:function(){return P[""+e]({data:s})}});if(h)for(var w=0;w<h.length;w++)_.use(h[parseInt(w.toString(),10)]);_.mount("grid"===o.getModuleName()?"#"+d:"#"+f),c=g.childNodes,t.detach(g)}}return c||[]}}function l(e,t,n){if(e||n&&n.vueInstance)return h(n&&n.vueInstance?n.vueInstance:e,t)}function h(e,t){if(e){var n=e.$slots,r=e.$scopedSlots,s=e.scopedSlots,o=e.children;if(r&&r[""+t])return r;if(n&&n.default){for(var i=n.default,a=0;a<i.length;a++)if(p=h(d(i[parseInt(a.toString(),10)]),t))return p}else{if(s&&s[""+t])return s;if(o)for(a=0;a<o.length;a++){var p=h(d(o[parseInt(a.toString(),10)]),t);if(p)return p}}}}function d(e){var t=e.componentOptions&&e.componentOptions.children?e.componentOptions:e.data||"e-markersettings"!==e.tag&&"e-markersetting"!==e.tag?e.data:e;return e.componentInstance?e.componentInstance:t}function u(e,t,n){if(e||n&&n.vueInstance)return f(n&&n.vueInstance?n.vueInstance.$slots:e.$slots,t)}function f(e,t){if(e&&e[""+t])return e;if(e&&e.default)for(var n=e.default(),r=0;r<n.length;r++){var s=f(n[parseInt(r.toString(),10)].children,t);if(s)return s}}var g,v=r.default,m=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),y=s(r),O=y,j=O.h,I=!(parseInt(O.version)>2),b=function(e){function n(){var t=e.call(this,arguments)||this;return t.hasInjectedModules=!1,t.hasChildDirective=!1,t.childDirObjects="",t.isDecorator=!1,t}return m(n,e),n.prototype.created=function(){var e=this;if(this.propKeys){for(var n=this,r=0,s=this.propKeys;r<s.length;r++)!function(t){n.ej2Instances.addEventListener(t,function(n){e.$emit(t,n)})}(s[r]);var o=t.getValue("$root.$options.provide",this),i=t.getValue("$parent.$options.provide",this);if(i=t.isNullOrUndefined(i)?t.getValue("$.parent.provides",this):i,this.hasInjectedModules&&!I){var a=[];o&&o.managed?(this.isDecorator=!0,a=this.getInjectedServices()||[]):o?a=o[this.ej2Instances.getModuleName()]||[]:i&&(a=this.getInjectedServices()||[]);for(var p=0,c=this.ej2Instances.getInjectedModules()||[];p<c.length;p++){var l=c[p];-1===a.indexOf(l)&&a.push(l)}this.ej2Instances.injectedModules=a}}},n.prototype.mounted=function(){var e=this.$el?this.$el.querySelectorAll("div.e-directive"):null;if(!I&&e)for(var t=0;t<e.length;t++)e[parseInt(t.toString(),10)].parentElement&&e[parseInt(t.toString(),10)].parentElement.removeChild(e[parseInt(t.toString(),10)]);this.ej2Instances.isVue=!0,this.ej2Instances.isVue3=this.isVue3,this.ej2Instances.vueInstance=this,this.isVue3&&(this.ej2Instances.ej2Instances=this.ej2Instances,this.ej2Instances.referModels=this.models,this.setModelValue()),this.ej2Instances.appendTo(this.$el)},n.prototype.setModelValue=function(){if(!t.isNullOrUndefined(this.modelValue)||!t.isNullOrUndefined(this.$attrs.modelValue)){var e=(this.models.toString().match(/checked|value/)||[])[0];t.isNullOrUndefined(e)||(this.ej2Instances[""+e]=t.isNullOrUndefined(this.modelValue)?this.$attrs.modelValue:this.modelValue)}},n.prototype.getInjectedServices=function(){var e,n=[];if(this.$root&&this.isDecorator?e=t.getValue("$root.$options.provide",this):this.$vnode?e=t.getValue("$vnode.context.$options.provide",this):this.$parent&&(e=t.getValue("$parent.$options.provide",this)),t.isNullOrUndefined(e)&&!t.isNullOrUndefined(this.$)&&(e=t.getValue("$.parent.provides",this)),e){var r=e;if("function"==typeof e)if(e.managed){var s=e.managed,o=Object.keys(s),i=void 0;this.$root&&this.isDecorator?i=Object.keys(this.$root):this.$vnode?i=Object.keys(this.$vnode.context):this.$parent&&(i=Object.keys(this.$parent));for(var a=0;a<o.length;a++)for(var p=0;p<i.length;p++)-1!==i[parseInt(p.toString(),10)].indexOf(o[parseInt(a.toString(),10)])&&(this.$root&&this.isDecorator?s[o[parseInt(p.toString(),10)]]=this.$root[i[parseInt(a.toString(),10)]]:this.$vnode?s[o[parseInt(a.toString(),10)]]=this.$vnode.context[i[parseInt(p.toString(),10)]]:this.$parent&&(s[o[parseInt(a.toString(),10)]]=this.$parent[i[parseInt(p.toString(),10)]]),r=s)}else this.$vnode?r=this.$vnode.context.$options.provide():this.$parent&&(r=this.$parent.$options.provide());n=r[this.ej2Instances.getModuleName()]||[]}return this.isDecorator=!1,n},n.prototype.updated=function(){if(this.isVue3&&this.setModelValue(),this.hasChildDirective){var e={};this.fetchChildPropValues(e);var t=JSON.stringify(e);this.childDirObjects!==t&&(this.childDirObjects=t,this.assignValueToWrapper(e,!1))}},n.prototype.beforeDestroy=function(){this.destroyComponent()},n.prototype.beforeUnmount=function(){this.destroyComponent()},n.prototype.destroyComponent=function(){var e=this;e.ej2Instances.destroy(),e.$el.style.visibility="hidden",e=null},n.prototype.bindProperties=function(){for(var e={},n=0,r=this.propKeys;n<r.length;n++){var s=r[n];(!t.isNullOrUndefined(this[""+s])&&!this.isVue3||this[0]&&!t.isNullOrUndefined(this[0][0])&&!t.isNullOrUndefined(this[0][0][""+s]))&&(e[""+s]=this.isVue3?this[0][0][""+s]:this[""+s])}if(this.hasChildDirective&&this.fetchChildPropValues(e),this.hasInjectedModules){for(var o=this.getInjectedServices()||[],i=0,a=this.ej2Instances.getInjectedModules()||[];i<a.length;i++){var p=a[i];-1===o.indexOf(p)&&o.push(p)}this.ej2Instances.injectedModules=o}this.assignValueToWrapper(e)},n.prototype.assignValueToWrapper=function(e,n){this.ej2Instances.setProperties(t.extend({},{},e,!0),!!t.isNullOrUndefined(n)||n)},n.prototype.fetchChildPropValues=function(e){var t={};if(this.isVue3){var n=void 0;if(this[0]&&this[0][1].slots.default?n=this[0][1].slots.default():this&&this.$&&this.$.slots&&this.$.slots.default&&(n=this.$.slots.default()),!n)return;for(var r=0;r<n.length;r++)if(n[parseInt(r.toString(),10)].type.methods||"e-seriescollection"===n[parseInt(r.toString(),10)].type){var s="e-seriescollection"===n[parseInt(r.toString(),10)].type?"series-collection":n[parseInt(r.toString(),10)].type.methods.getTag().replace("e-",""),o=this.resolveArrayDirectives(n[parseInt(r.toString(),10)].children,s),i=s.split("-"),a=this.ej2Instances.getModuleName().toLowerCase(),p=i.length>1&&a.indexOf(i[0])>-1?i[1]:i[0];p=p.replace(a,""),"splitter"==a&&"panes"==p?p="paneSettings":"bulletchart"==a&&"range"==p?p="ranges":"schedule"==a&&"header"==p&&(p="headerRows"),t[""+p]=o[""+s]}}else t=this.getDirectiveValues(this.$slots.default,this.tagMapper||{},this.tagNameMapper||{});this.childDirObjects||(this.childDirObjects=JSON.stringify(t));for(var c=0,l=Object.keys(t);c<l.length;c++){var h=l[c];e[""+h]=t[""+h]}},n.prototype.resolveArrayDirectives=function(e,t){var n,r=[];r=e.default?e.default():e;var s={};s[""+t]=[];for(var o=this,i=0,a=r;i<a.length;i++)!function(e){var r={},i=e.type.methods?e.type.methods.getTag():t;if(e.children){var a=void 0;if((n=o.resolveComplexDirs(e.children,o.tagMapper["e-"+t],i)).length)r=n;else for(var p=0;p<Object.keys(n).length;p++)a=Object.keys(n)[parseInt(p.toString(),10)],r[""+a]=n[""+a]}e.props&&Object.keys(e.props).forEach(function(t){var n=t.replace(/-[a-z]/g,function(e){return e[1].toUpperCase()});n&&(r[""+n]=e.props[""+t])}),/[s]\b/.test(i)&&n&&(!/[s]\b/.test(t)||n.length)?s[""+t]=r:r&&0!==Object.keys(r).length&&s[""+t].push(r)}(a[i]);return s},n.prototype.resolveComplexDirs=function(e,t,n){for(var r,s=[],o={},i=this,a=0,p=s=e.default?e.default():e;a<p.length;a++)!function(e){var a=void 0;t[""+n]&&(a=(a=Object.keys(t[""+n]).find(function(r){return t[""+n][""+r]===e.type.methods.getTag().replace(/[s]\b/,"")}))?a.replace("e-",""):e.type.methods.getTag().replace("e-",""),"diagram"==i.ej2Instances.getModuleName().toLowerCase()&&-1!=a.indexOf("annotations")&&(a="annotations")),e.children&&(r=i.resolveComplexInnerDirs(e.children,t[""+n],e.type.methods.getTag()),o[""+a]||(o[""+a]=[]),r.length>1?o[""+a]=r:o[""+a].push(r)),e.props&&(e.props=i.getCamelCaseProps(e.props)),s.length>1?(o=0!=Object.keys(o).length||o.length?o:[],e.props&&o.push(e.props)):o=e.props?Object.assign(o,e.props):o}(p[a]);return o},n.prototype.resolveComplexInnerDirs=function(e,t,n){for(var r,s=[],o=(s=e.default?e.default():e).length>1?[]:{},i=0,a=s;i<a.length;i++){var p=a[i],c=p.type.methods.getTag().replace("e-","");p.children&&(r=this.resolveMultilevelComplexInnerDirs(p.children,t[""+n],p.type.methods.getTag()),/[s]\b/.test(c)||s.length>1?/[s]\b/.test(c)?(o[""+c]=o[""+c]?o[""+c]:[],r.length?o[""+c]=r:o[""+c].push(r)):r&&o.push(r):o=r||o),p.props&&(p.props=this.getCamelCaseProps(p.props)),s.length>1&&p.props&&o.length>=0?o.push(p.props):o=p.props?Object.assign(o,p.props):o}return o},n.prototype.resolveMultilevelComplexInnerDirs=function(e,t,n){for(var r,s=[],o=(s=e.default?e.default():e).length>1?[]:{},i=0,a=s;i<a.length;i++){var p=a[i],c=p.type.methods.getTag().replace("e-","");p.children&&(r=this.resolveComplexInnerDirs(p.children,t[""+n],p.type.methods.getTag())),p.props&&(p.props=this.getCamelCaseProps(p.props)),/[s]\b/.test(c)?(o[""+c]=o[""+c]?o[""+c]:[],r.length?o[""+c]=r:o[""+c].push(r),p.props&&o[""+c].push(p.props)):(o=r,o=p.props?Object.assign(o,p.props):o)}return o},n.prototype.getDirectiveValues=function(e,t,n){var r=Object.keys(t),s={};if(e)for(var o=0,i=e;o<i.length;o++){var a=i[o];if(a.componentOptions&&a.componentOptions.children&&a.componentOptions.tag||"e-seriescollection"===a.tag&&a.children){var p=a.componentOptions?a.componentOptions.tag:a.tag;if(p="e-seriescollection"===p?"e-seriesCollection":p,-1!==r.indexOf(p)){var c=n[""+p]?n[""+p]:p;s[c.replace("e-","")]=[];for(var l=0,h=a.componentOptions?a.componentOptions.children:a.children;l<h.length;l++){var d=h[l],u=this.getVNodeValue(d,t[""+p],n);0!==Object.keys(u).length&&s[c.replace("e-","")].push(u)}}}}return s},n.prototype.getMultiLevelDirValue=function(e,t,n){for(var r={},s=0,o=e;s<o.length;s++){var i=o[s],a=void 0,p=void 0;if(i.componentOptions?(a=i.componentOptions.tag,i.componentOptions.children&&(p=i.componentOptions.children)):"e-markersettings"!==i.tag&&"e-markersetting"!==i.tag||!i.children||(a="e-markersettings"===i.tag?"e-markerSettings":"e-markerSetting",p=i.children),a){var c=n[""+a]?n[""+a]:a;if(r[c.replace("e-","")]=[],p)for(var l=0,h=p;l<h.length;l++){var d=h[l],u=this.getVNodeValue(d,t[""+a],n);0!==Object.keys(u).length&&r[c.replace("e-","")].push(u)}}}return r},n.prototype.getVNodeValue=function(e,n,r){var s={};if(e.componentOptions||("e-markersettings"===e.tag||"e-markersetting"===e.tag)&&e.context){var o=void 0;o=e.componentOptions?e.componentOptions.tag:"e-markersettings"===e.tag?"e-markerSettings":"e-markerSetting","string"==typeof n&&o===n&&e.data?s=e.data.attrs?this.getCamelCaseProps(e.data.attrs):this.getCamelCaseProps(e.data):"object"==typeof n&&(e.componentOptions.children&&-1!==Object.keys(n).indexOf(o)?s=this.getMultiLevelDirValue(e.componentOptions.children,n[""+o],r):!e.children||-1===Object.keys(n).indexOf(o)||"e-markersettings"!==o&&"e-markersetting"!==o||(s=this.getMultiLevelDirValue(e.children,n[""+o],r)),e.data&&e.data.attrs&&(s=t.extend(s,this.getCamelCaseProps(e.data.attrs))))}return s},n.prototype.getCamelCaseProps=function(e){for(var t={},n=0,r=Object.keys(e);n<r.length;n++){var s=r[n];t[s.replace(/-[a-z]/g,function(e){return e[1].toUpperCase()})]=e[""+s]}return t},n.prototype.dataBind=function(){this.ej2Instances.dataBind()},n.prototype.setProperties=function(e,t){return this.ej2Instances.setProperties(e,t)},n}(g=!I||parseInt(O.version)<3?n.Vue:v),$=["data","beforeCreate","created","beforeMount","mounted","beforeDestroy","destroyed","beforeUpdate","updated","activated","deactivated","render","errorCaptured"],V=t.getTemplateEngine();return t.setTemplateEngine({compile:c}),e.aVue=y,e._interopRequireWildcard=s,e.allVue=O,e.gh=j,e.isExecute=I,e.ComponentBase=b,e.$internalHooks=$,e.getProps=o,e.EJComponentDecorator=i,e.EJcomponentFactory=a,e.compile=c,e}({},ej.base,Vue3,Vue$1),this.ejs=ej; | ||
//# sourceMappingURL=ej2-vue-base.min.js.map |
/*! | ||
* filename: index.d.ts | ||
* version : 20.4.48 | ||
* version : 20.4.51 | ||
* 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-vue-base@*", | ||
"_id": "@syncfusion/ej2-vue-base@20.4.42", | ||
"_id": "@syncfusion/ej2-vue-base@20.4.48", | ||
"_inBundle": false, | ||
"_integrity": "sha512-aHJ91aEOCk6vcEtE1GhztjI8HH2Gg9x3itpYkX0/DRdXODIii35NvN7xgOMUpvkGj+9kbskTRPPWGrdbufGvUA==", | ||
"_integrity": "sha512-FOJ64IwQ169qVGd7bmputkZffeWVz856nDF3PQlgkNIo6yw6rdQMsWRuirQSEYpNY0f2gD09WY6WjmHw/miGew==", | ||
"_location": "/@syncfusion/ej2-vue-base", | ||
@@ -21,8 +21,4 @@ "_phantomChildren": {}, | ||
"/", | ||
"/@syncfusion/ej2-vue-barcode-generator", | ||
"/@syncfusion/ej2-vue-buttons", | ||
"/@syncfusion/ej2-vue-calendars", | ||
"/@syncfusion/ej2-vue-charts", | ||
"/@syncfusion/ej2-vue-circulargauge", | ||
"/@syncfusion/ej2-vue-diagrams", | ||
"/@syncfusion/ej2-vue-documenteditor", | ||
@@ -33,27 +29,14 @@ "/@syncfusion/ej2-vue-dropdowns", | ||
"/@syncfusion/ej2-vue-grids", | ||
"/@syncfusion/ej2-vue-heatmap", | ||
"/@syncfusion/ej2-vue-image-editor", | ||
"/@syncfusion/ej2-vue-inplace-editor", | ||
"/@syncfusion/ej2-vue-inputs", | ||
"/@syncfusion/ej2-vue-kanban", | ||
"/@syncfusion/ej2-vue-layouts", | ||
"/@syncfusion/ej2-vue-lineargauge", | ||
"/@syncfusion/ej2-vue-lists", | ||
"/@syncfusion/ej2-vue-maps", | ||
"/@syncfusion/ej2-vue-navigations", | ||
"/@syncfusion/ej2-vue-notifications", | ||
"/@syncfusion/ej2-vue-pdfviewer", | ||
"/@syncfusion/ej2-vue-pivotview", | ||
"/@syncfusion/ej2-vue-popups", | ||
"/@syncfusion/ej2-vue-progressbar", | ||
"/@syncfusion/ej2-vue-querybuilder", | ||
"/@syncfusion/ej2-vue-richtexteditor", | ||
"/@syncfusion/ej2-vue-schedule", | ||
"/@syncfusion/ej2-vue-splitbuttons", | ||
"/@syncfusion/ej2-vue-spreadsheet", | ||
"/@syncfusion/ej2-vue-treegrid", | ||
"/@syncfusion/ej2-vue-treemap" | ||
"/@syncfusion/ej2-vue-spreadsheet" | ||
], | ||
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-vue-base/-/ej2-vue-base-20.4.42.tgz", | ||
"_shasum": "6fba0cf6207dd552c15e089f195bfbb95b7181e8", | ||
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-vue-base/-/ej2-vue-base-20.4.48.tgz", | ||
"_shasum": "a12be4320f299c08a0276f2fb05cedeb38bbd57d", | ||
"_spec": "@syncfusion/ej2-vue-base@*", | ||
@@ -69,3 +52,3 @@ "_where": "/jenkins/workspace/ease-automation_release_19.1.0.1/packages/included", | ||
"dependencies": { | ||
"@syncfusion/ej2-base": "~20.4.48", | ||
"@syncfusion/ej2-base": "~20.4.51", | ||
"glob": "^7.0.5" | ||
@@ -100,4 +83,4 @@ }, | ||
"typings": "index.d.ts", | ||
"version": "20.4.48", | ||
"version": "20.4.51", | ||
"sideEffects": true | ||
} |
@@ -27,2 +27,4 @@ /** | ||
beforeDestroy(): void; | ||
beforeUnmount(): void; | ||
destroyComponent(): void; | ||
bindProperties(): void; | ||
@@ -29,0 +31,0 @@ assignValueToWrapper(option: Object, silent?: boolean): void; |
@@ -201,2 +201,8 @@ /** | ||
ComponentBase.prototype.beforeDestroy = function () { | ||
this.destroyComponent(); | ||
}; | ||
ComponentBase.prototype.beforeUnmount = function () { | ||
this.destroyComponent(); | ||
}; | ||
ComponentBase.prototype.destroyComponent = function () { | ||
var tempBeforeDestroyThis = this; | ||
@@ -203,0 +209,0 @@ tempBeforeDestroyThis.ej2Instances.destroy(); |
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
9714127
29
3068