@syncfusion/ej2-vue-base
Advanced tools
Comparing version 23.2.5 to 23.2.7
@@ -9,2 +9,10 @@ # Changelog | ||
- `#I513639` - The issue with "the pager template renders multiple times in the Grid component" has been resolved. | ||
## 23.2.5 (2023-11-23) | ||
### Common | ||
#### Bug Fixes | ||
- Resolved component's compilation issue. | ||
@@ -11,0 +19,0 @@ |
/*! | ||
* filename: ej2-vue-base.umd.min.js | ||
* version : 23.2.5 | ||
* version : 23.2.7 | ||
* Copyright Syncfusion Inc. 2001 - 2023. 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("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 s(e,t){var s=this;return function(i,p,d,h,u){var v;if(p){var m=p.vueInstance&&p.vueInstance.plugins?{plugins:p.vueInstance.plugins}:{},I=n.getUniqueID("templateParentDiv"),O=n.getUniqueID("templateDiv"),j=n.createElement("div",{id:I,innerHTML:'<div id="'+O+'"></div>'});if(document.body.appendChild(j),!l&&("string"==typeof e||e.prototype&&e.prototype.CSPTemplate&&"function"==typeof e)){var y=function(e,t,n){if(!(e||n&&n.vueInstance))return;return o(n&&n.vueInstance?n.vueInstance.$slots:e.$slots,t)}(p.vueInstance,e,u);if(!y)return n.detach(j),g(e,t)(i);var b=c.createVNode({render:function(){return y[""+e]({data:i})}},m);j.innerHTML="",r(b,p.vueInstance,u),c.render(b,j),v=j.childNodes,n.detach(j)}else if(l)if("string"==typeof e||e.prototype&&e.prototype.CSPTemplate&&"function"==typeof e){var C=function(e,t,n){if(!(e||n&&n.vueInstance))return;return a(n&&n.vueInstance?n.vueInstance:e,t)}(p.vueInstance,e,u);if(!C)return n.detach(j),g(e,t)(i);var $={},x=function(e){e.$parent&&x(e.$parent),e._provided&&Object.keys(e._provided).length>0&&($=f({},$,e._provided))},N=p.vueInstance?p.vueInstance:u&&u.vueInstance?u.vueInstance:null;N&&x(N);new c({provide:f({},$),render:function(){return C[""+e]({data:i})}}).$mount("#"+O),v=j.childNodes,n.detach(j)}else{var V=(k=e.call(s,{})).template,M=(T=n.getValue("template.propsData",k),{data:{data:n.extend(k.data||{},i)},parent:p.vueInstance});T&&(V=k.template.extends,M.propsData=T),"function"!=typeof V&&(V=c.extend(V)),V.options.setup&&(M.propsData=Object.assign(M.propsData||{},i));if(new V(M).$mount("#"+O),v=j.childNodes,p.vueInstance){var D=p.vueInstance.templateCollection;D||(p.vueInstance.templateCollection={},D=p.vueInstance.templateCollection),d&&(D[""+d]||(D[""+d]=[]),D[""+d].push(v[0]))}n.detach(j)}else{var k,S=k=e.call(s,{}),T=n.getValue("template.propsData",k),P={data:{data:n.extend(k.data||{},i)},parent:p.vueInstance};S.template||(S.template=S[Object.keys(S)[0]]);var w=void 0;if(S.template.extends)w=S.template.extends._context.components.template;else if(!(w=S.template._context.components[e.name])){var _=Object.keys(S.template._context.components)[0];w=S.template._context.components[""+_]}var U;if(T)U=w.setup?Object.assign({},T):Object.assign(w.data(),T);else if(U=w.setup?Object.assign({},P.data):Object.assign(w.data(),P.data),w.components)for(var L=function(e){var t=w.components[""+e];t&&t.data&&(t.__data||(t.__data=t.data),t.data=function(e){return Object.assign(t.__data.call(e),P.data)})},A=0,E=Object.keys(w.components)||[];A<E.length;A++){L(E[A])}w.setup&&(m=Object.assign(m,i)),w.data=function(){return U};b=c.createVNode(w,m);j.innerHTML="",r(b,p.vueInstance,u),c.render(b,j),v=j.childNodes,n.detach(j)}}return v||[]}}function r(e,t,n){var s=t||(n&&n.vueInstance?n.vueInstance:null);if(s){e.appContext=s.$.appContext;var r={},a=function(e){e.$&&e.$.parent&&a(e.$.parent),e.provides&&Object.keys(e.provides).length>0&&(r=f({},r,e.provides))};a(s),e.appContext.provides&&(e.appContext.provides=f({},e.appContext.provides,r))}}function a(e,t){if(e){var n=e.$slots,s=e.$scopedSlots,r=e.scopedSlots,o=e.children;if(s&&s[""+t])return s;if(n&&n.default)for(var p=n.default,l=0;l<p.length;l++){if(c=a(i(p[parseInt(l.toString(),10)]),t))return c}else{if(r&&r[""+t])return r;if(o)for(l=0;l<o.length;l++){var c;if(c=a(i(o[parseInt(l.toString(),10)]),t))return c}}}}function i(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 o(e,t){if(e&&e[""+t])return e;if(e&&e.default){var n=e.default();n=n.flatMap(function(e){return Array.isArray(e.children)?e.children:e});for(var s=0;s<n.length;s++){var r=o(n[parseInt(s.toString(),10)].children,t);if(r)return r}}}var p=function(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}(t),l=!(parseInt(p.version)>2),c=l?p.default.default?p.default.default:p.default:p,d=p.h,h=function(e){return l?c.extend(e):c.defineComponent(e)},u=h({name:"ComponentBase",data:function(){return{tagMapper:{},tagNameMapper:{},hasInjectedModules:!1,hasChildDirective:!1,childDirObjects:"",propKeys:{},isDecorator:!1}},created:function(){var e=this;if(this.ej2Instance&&(this.ej2Instances=this.isVue3?c.toRaw(this.ej2Instance):this.ej2Instance),this.propKeys){for(var t=function(t){s.ej2Instances.addEventListener(t,function(n){e.$emit(t,n)})},s=this,r=0,a=this.propKeys;r<a.length;r++){t(a[r])}var i=n.getValue("$root.$options.provide",this),o=n.getValue("$parent.$options.provide",this);if(o=n.isNullOrUndefined(o)?n.getValue("$.parent.provides",this):o,this.hasInjectedModules&&!l){var p=[];i&&i.managed?(this.isDecorator=!0,p=this.getInjectedServices()||[]):i?p=i[this.ej2Instances.getModuleName()]||[]:o&&(p=this.getInjectedServices()||[]);for(var d=0,h=this.ej2Instances.getInjectedModules()||[];d<h.length;d++){var u=h[d];-1===p.indexOf(u)&&p.push(u)}this.ej2Instances.injectedModules=p}}},mounted:function(){var e=this.$el?this.$el.querySelectorAll("div.e-directive"):null;if(!l&&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)},updated:function(){this.updated()},beforeDestroy:function(){this.destroyComponent()},beforeUnmount:function(){this.destroyComponent()},methods:{setModelValue:function(){if(!n.isNullOrUndefined(this.modelValue)||!n.isNullOrUndefined(this.$attrs.modelValue)){var e=(this.models.toString().match(/checked|value/)||[])[0];n.isNullOrUndefined(e)||(this.ej2Instances[""+e]=n.isNullOrUndefined(this.modelValue)?this.$attrs.modelValue:this.modelValue)}},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))}},getInjectedServices:function(){var e,t=[];if(this.$root&&this.isDecorator?e=n.getValue("$root.$options.provide",this):this.$vnode?e=n.getValue("$vnode.context.$options.provide",this):this.$parent&&(e=n.getValue("$parent.$options.provide",this)),n.isNullOrUndefined(e)&&!n.isNullOrUndefined(this.$)&&(e=n.getValue("$.parent.provides",this)),e){var s=e;if("function"==typeof e)if(e.managed){var r=e.managed,a=Object.keys(r),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 o=0;o<a.length;o++)for(var p=0;p<i.length;p++)-1!==i[parseInt(p.toString(),10)].indexOf(a[parseInt(o.toString(),10)])&&(this.$root&&this.isDecorator?r[a[parseInt(p.toString(),10)]]=this.$root[i[parseInt(o.toString(),10)]]:this.$vnode?r[a[parseInt(o.toString(),10)]]=this.$vnode.context[i[parseInt(p.toString(),10)]]:this.$parent&&(r[a[parseInt(o.toString(),10)]]=this.$parent[i[parseInt(p.toString(),10)]]),s=r)}else this.$vnode?s=this.$vnode.context.$options.provide():this.$parent&&(s=this.$parent.$options.provide());t=s[this.ej2Instances.getModuleName()]||[]}return this.isDecorator=!1,t},destroyComponent:function(){var e=this;e.ej2Instances.destroy(),e.$el.style.visibility="hidden",e=null},bindProperties:function(){for(var e={},t=0,s=this.propKeys;t<s.length;t++){var r=s[t];n.isNullOrUndefined(this[""+r])?!this[0]||n.isNullOrUndefined(this[0][0])||n.isNullOrUndefined(this[0][0][""+r])||(e[""+r]=this[0][0][""+r]):e[""+r]=this[""+r]}if(this.hasChildDirective&&this.fetchChildPropValues(e),this.hasInjectedModules){for(var a=this.getInjectedServices()||[],i=0,o=this.ej2Instances.getInjectedModules()||[];i<o.length;i++){var p=o[i];-1===a.indexOf(p)&&a.push(p)}this.ej2Instances.injectedModules=a}this.assignValueToWrapper(e)},assignValueToWrapper:function(e,t){this.ej2Instances.setProperties(n.extend({},{},e,!0),!!n.isNullOrUndefined(t)||t)},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 s=0;s<n.length;s++)if(n[parseInt(s.toString(),10)].type.methods||"e-seriescollection"===n[parseInt(s.toString(),10)].type){var r="e-seriescollection"===n[parseInt(s.toString(),10)].type?"series-collection":n[parseInt(s.toString(),10)].type.methods.getTag().replace("e-",""),a=this.resolveArrayDirectives(n[parseInt(s.toString(),10)].children,r),i=r.split("-"),o=this.ej2Instances.getModuleName().toLowerCase(),p=i.length>1&&o.indexOf(i[0])>-1?i[1]:i[0];p=p.replace(o,""),p=this.tagNameMapper["e-"+r]?this.tagNameMapper["e-"+r].replace("e-",""):p,"splitter"==o&&"panes"==p?p="paneSettings":"bulletchart"==o&&"range"==p?p="ranges":"schedule"==o&&"header"==p&&(p="headerRows"),t[""+p]=a[""+r]}}else t=this.getDirectiveValues(this.$slots.default,this.tagMapper||{},this.tagNameMapper||{});this.childDirObjects||(this.childDirObjects=JSON.stringify(t));for(var l=0,c=Object.keys(t);l<c.length;l++){var d=c[l];e[""+d]=t[""+d]}},resolveArrayDirectives:function(e,t){var n,s=[];s=(s=e.default?e.default():e).flatMap(function(e){return Array.isArray(e.children)?e.children:e});var r={};r[""+t]=[];for(var a=function(e){var s={},a=e.type.methods?e.type.methods.getTag():t;if(e.children){var o=void 0;if((n=i.resolveComplexDirs(e.children,i.tagMapper["e-"+t],a)).length)s=n;else for(var p=0;p<Object.keys(n).length;p++)o=Object.keys(n)[parseInt(p.toString(),10)],s[""+o]=n[""+o]}e.props&&Object.keys(e.props).forEach(function(t){var n=t.replace(/-[a-z]/g,function(e){return e[1].toUpperCase()});n&&(s[""+n]=e.props[""+t])}),/[s]\b/.test(a)&&n&&(!/[s]\b/.test(t)||n.length)?Array.isArray(s)?s.forEach(function(e){r[""+t].push(e)}):r[""+t].push(s):s&&0!==Object.keys(s).length&&r[""+t].push(s)},i=this,o=0,p=s;o<p.length;o++){a(p[o])}return r},resolveComplexDirs:function(e,t,n){for(var s,r=[],a={},i=function(e){var i=void 0;if(t[""+n]){i=Object.keys(t[""+n]).find(function(s){return t[""+n][""+s]===e.type.methods.getTag().replace(/[s]\b/,"")});o.ej2Instances.getModuleName().toLowerCase();i=i||e.type.methods.getTag(),i=(o.tagNameMapper[""+i]?o.tagNameMapper[""+i]:i).replace("e-ribbon-","").replace("e-",""),"diagram"==o.ej2Instances.getModuleName().toLowerCase()&&-1!=i.indexOf("annotations")&&(i="annotations")}e.children&&(s=o.resolveComplexInnerDirs(e.children,t[""+n],e.type.methods.getTag()),a[""+i]||(a[""+i]=[]),s.length>1?a[""+i]=s:a[""+i].push(s)),e.props&&(e.props=o.getCamelCaseProps(e.props)),r.length>1?(a=0!=Object.keys(a).length||a.length?a:[],e.props&&a.push(e.props)):a=e.props?Object.assign(a,e.props):a},o=this,p=0,l=r=e.default?e.default():e;p<l.length;p++){i(l[p])}return a},resolveComplexInnerDirs:function(e,t,n){for(var s=[],r=(s=e.default?e.default():e).length>1?[]:{},a=0,i=s;a<i.length;a++){var o=i[a],p=null,l="ribbon"==this.ej2Instances.getModuleName().toLowerCase(),c="spreadsheet"==this.ej2Instances.getModuleName().toLowerCase(),d=o.type.methods.getTag();d=(this.tagNameMapper[d]?this.tagNameMapper[d]:d).replace("e-ribbon-","").replace("e-",""),o.children&&(p=this.resolveMultilevelComplexInnerDirs(o.children,t[""+n],o.type.methods.getTag()),/[s]\b/.test(d)||s.length>1?/[s]\b/.test(d)?(r[""+d]=r[""+d]?r[""+d]:[],p.length?r[""+d]=p:r[""+d].push(p)):!p||l&&p.hasOwnProperty("collections")||c&&p.hasOwnProperty("cells")&&o.props||r.push(p):r=p||r),o.props&&(o.props=this.getCamelCaseProps(o.props)),s.length>1&&o.props?l&&p&&p.hasOwnProperty("collections")||c&&p&&p.hasOwnProperty("cells")?(p=o.props?Object.assign(p,o.props):p,r.push(p)):r.length>=0?r.push(o.props):r=o.props?Object.assign(r,o.props):r:r=o.props?Object.assign(r,o.props):r}return r},resolveMultilevelComplexInnerDirs:function(e,t,n){for(var s=[],r=(s=e.default?e.default():e).length>1?[]:{},a=0,i=s;a<i.length;a++){var o=i[a],p=null,l=(this.ej2Instances.getModuleName().toLowerCase(),o.type.methods.getTag());l=(this.tagNameMapper[l]?this.tagNameMapper[l]:l).replace("e-ribbon-","").replace("e-",""),o.children&&(p=this.resolveComplexInnerDirs(o.children,t[""+n],o.type.methods.getTag())),o.props&&(o.props=this.getCamelCaseProps(o.props)),/[s]\b/.test(l)?(r[""+l]=r[""+l]?r[""+l]:[],p.length?r[""+l]=p:r[""+l].push(p),o.props&&r[""+l].push(o.props)):(r=p,r=o.props?Object.assign(r,o.props):r)}return r},getDirectiveValues:function(e,t,n){var s=Object.keys(t),r={};if(e)for(var a=0,i=e;a<i.length;a++){var o=i[a];if(o.componentOptions&&o.componentOptions.children&&this.getTagName(o.componentOptions)||"e-seriescollection"===o.tag&&o.children){var p=o.componentOptions?this.getTagName(o.componentOptions):o.tag;if(p="e-seriescollection"===p?"e-seriesCollection":p,-1!==s.indexOf(p)){var l=n[""+p]?n[""+p]:p;r[l.replace("e-","")]=[];for(var c=0,d=o.componentOptions?o.componentOptions.children:o.children;c<d.length;c++){var h=d[c],u=this.getVNodeValue(h,t[""+p],n);0!==Object.keys(u).length&&r[l.replace("e-","")].push(u)}}}}return r},getMultiLevelDirValue:function(e,t,n){for(var s={},r=0,a=e;r<a.length;r++){var i=a[r],o=void 0,p=void 0;if(i.componentOptions?(o=this.getTagName(i.componentOptions),i.componentOptions.children&&(p=i.componentOptions.children)):"e-markersettings"!==i.tag&&"e-markersetting"!==i.tag||!i.children||(o="e-markersettings"===i.tag?"e-markerSettings":"e-markerSetting",p=i.children),o){var l=n[""+o]?n[""+o]:o;if(s[l.replace("e-","")]=[],p)for(var c=0,d=p;c<d.length;c++){var h=d[c],u=this.getVNodeValue(h,t[""+o],n);0!==Object.keys(u).length&&s[l.replace("e-","")].push(u)}}}return s},getVNodeValue:function(e,t,s){var r={};if(e.componentOptions||("e-markersettings"===e.tag||"e-markersetting"===e.tag)&&e.context){var a=void 0;a=e.componentOptions?this.getTagName(e.componentOptions):"e-markersettings"===e.tag?"e-markerSettings":"e-markerSetting","string"==typeof t&&a===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(a)?r=this.getMultiLevelDirValue(e.componentOptions.children,t[""+a],s):!e.children||-1===Object.keys(t).indexOf(a)||"e-markersettings"!==a&&"e-markersetting"!==a||(r=this.getMultiLevelDirValue(e.children,t[""+a],s)),e.data&&e.data.attrs&&(r=n.extend(r,this.getCamelCaseProps(e.data.attrs))))}return r},getCamelCaseProps:function(e){for(var t={},n=0,s=Object.keys(e);n<s.length;n++){var r=s[n];t[r.replace(/-[a-z]/g,function(e){return e[1].toUpperCase()})]=e[""+r]}return t},dataBind:function(){this.ej2Instances.dataBind()},setProperties:function(e,t){return this.ej2Instances.setProperties(e,t)},getTagName:function(e){var t=e.tag;return!t&&e.Ctor&&e.Ctor.extendOptions&&e.Ctor.extendOptions.methods&&e.Ctor.extendOptions.methods.getTag&&(t=e.Ctor.extendOptions.methods.getTag()),t}}}),f=function(){return(f=Object.assign||function(e){for(var t,n=1,s=arguments.length;n<s;n++){t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)},g=n.getTemplateEngine();n.setTemplateEngine({compile:s}),e.isExecute=l,e.aVue=c,e.gh=d,e.vueDefineComponent=h,e.ComponentBase=u,e.getProps=function(e){if(void 0===e&&(e={}),e.props)for(var 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=0,s=e.props;n<s.length;n++)t(s[n]);return[e.newprops,e.watch]},e.compile=s,Object.defineProperty(e,"__esModule",{value:!0})}); | ||
!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 s(e,t){var s=this;return function(i,p,d,h,u){var v;if(p){var m=p.vueInstance&&p.vueInstance.plugins?{plugins:p.vueInstance.plugins}:{},I=n.getUniqueID("templateParentDiv"),O=n.getUniqueID("templateDiv"),j=n.createElement("div",{id:I,innerHTML:'<div id="'+O+'"></div>'});if(document.body.appendChild(j),!l&&("string"==typeof e||e.prototype&&e.prototype.CSPTemplate&&"function"==typeof e)){var y=function(e,t,n){if(!(e||n&&n.vueInstance))return;return o(n&&n.vueInstance?n.vueInstance.$slots:e.$slots,t)}(p.vueInstance,e,u);if(!y)return n.detach(j),g(e,t)(i);var b=c.createVNode({render:function(){return y[""+e]({data:i})}},m);j.innerHTML="",r(b,p.vueInstance,u),c.render(b,j),v=j.childNodes,n.detach(j)}else if(l)if("string"==typeof e||e.prototype&&e.prototype.CSPTemplate&&"function"==typeof e){var C=function(e,t,n){if(!(e||n&&n.vueInstance))return;return a(n&&n.vueInstance?n.vueInstance:e,t)}(p.vueInstance,e,u);if(!C)return n.detach(j),g(e,t)(i);var $={},x=function(e){e.$parent&&x(e.$parent),e._provided&&Object.keys(e._provided).length>0&&($=f({},$,e._provided))},N=p.vueInstance?p.vueInstance:u&&u.vueInstance?u.vueInstance:null;N&&x(N);new c({provide:f({},$),render:function(){return C[""+e]({data:i})}}).$mount("#"+O),v=j.childNodes,n.detach(j)}else{var V=(D=e.call(s,{})).template,M=(S=n.getValue("template.propsData",D),{data:{data:n.extend(D.data||{},i)},parent:p.vueInstance});S&&(V=D.template.extends,M.propsData=S),"function"!=typeof V&&(V=c.extend(V)),V.options.setup&&(M.propsData=Object.assign(M.propsData||{},i));if(new V(M).$mount("#"+O),v=j.childNodes,p.vueInstance){(E=p.vueInstance.templateCollection)||(p.vueInstance.templateCollection={},E=p.vueInstance.templateCollection),d&&(E[""+d]||(E[""+d]=[]),E[""+d].push(v[0]))}n.detach(j)}else{var D,k=D=e.call(s,{}),S=n.getValue("template.propsData",D),T={data:{data:n.extend(D.data||{},i)},parent:p.vueInstance};k.template||(k.template=k[Object.keys(k)[0]]);var P=void 0;if(k.template.extends)P=k.template.extends._context.components.template;else if(!(P=k.template._context.components[e.name])){var w=Object.keys(k.template._context.components)[0];P=k.template._context.components[""+w]}var _;if(S)_=P.setup?Object.assign({},S):Object.assign(P.data(),S);else if(_=P.setup?Object.assign({},T.data):Object.assign(P.data(),T.data),P.components)for(var U=function(e){var t=P.components[""+e];t&&t.data&&(t.__data||(t.__data=t.data),t.data=function(e){return Object.assign(t.__data.call(e),T.data)})},L=0,A=Object.keys(P.components)||[];L<A.length;L++){U(A[L])}P.setup&&(m=Object.assign(m,i)),P.data=function(){return _};b=c.createVNode(P,m);if(j.innerHTML="",r(b,p.vueInstance,u),c.render(b,j),v=j.childNodes,p.vueInstance){var E;(E=p.vueInstance.templateCollection)||(p.vueInstance.templateCollection={},E=p.vueInstance.templateCollection),d&&(E[""+d]||(E[""+d]=[]),E[""+d].push(v[0]))}n.detach(j)}}return v||[]}}function r(e,t,n){var s=t||(n&&n.vueInstance?n.vueInstance:null);if(s){e.appContext=s.$.appContext;var r={},a=function(e){e.$&&e.$.parent&&a(e.$.parent),e.provides&&Object.keys(e.provides).length>0&&(r=f({},r,e.provides))};a(s),e.appContext.provides&&(e.appContext.provides=f({},e.appContext.provides,r))}}function a(e,t){if(e){var n=e.$slots,s=e.$scopedSlots,r=e.scopedSlots,o=e.children;if(s&&s[""+t])return s;if(n&&n.default)for(var p=n.default,l=0;l<p.length;l++){if(c=a(i(p[parseInt(l.toString(),10)]),t))return c}else{if(r&&r[""+t])return r;if(o)for(l=0;l<o.length;l++){var c;if(c=a(i(o[parseInt(l.toString(),10)]),t))return c}}}}function i(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 o(e,t){if(e&&e[""+t])return e;if(e&&e.default){var n=e.default();n=n.flatMap(function(e){return Array.isArray(e.children)?e.children:e});for(var s=0;s<n.length;s++){var r=o(n[parseInt(s.toString(),10)].children,t);if(r)return r}}}var p=function(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}(t),l=!(parseInt(p.version)>2),c=l?p.default.default?p.default.default:p.default:p,d=p.h,h=function(e){return l?c.extend(e):c.defineComponent(e)},u=h({name:"ComponentBase",data:function(){return{tagMapper:{},tagNameMapper:{},hasInjectedModules:!1,hasChildDirective:!1,childDirObjects:"",propKeys:{},isDecorator:!1}},created:function(){var e=this;if(this.ej2Instance&&(this.ej2Instances=this.isVue3?c.toRaw(this.ej2Instance):this.ej2Instance),this.propKeys){for(var t=function(t){s.ej2Instances.addEventListener(t,function(n){e.$emit(t,n)})},s=this,r=0,a=this.propKeys;r<a.length;r++){t(a[r])}var i=n.getValue("$root.$options.provide",this),o=n.getValue("$parent.$options.provide",this);if(o=n.isNullOrUndefined(o)?n.getValue("$.parent.provides",this):o,this.hasInjectedModules&&!l){var p=[];i&&i.managed?(this.isDecorator=!0,p=this.getInjectedServices()||[]):i?p=i[this.ej2Instances.getModuleName()]||[]:o&&(p=this.getInjectedServices()||[]);for(var d=0,h=this.ej2Instances.getInjectedModules()||[];d<h.length;d++){var u=h[d];-1===p.indexOf(u)&&p.push(u)}this.ej2Instances.injectedModules=p}}},mounted:function(){var e=this.$el?this.$el.querySelectorAll("div.e-directive"):null;if(!l&&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)},updated:function(){this.updated()},beforeDestroy:function(){this.destroyComponent()},beforeUnmount:function(){this.destroyComponent()},methods:{setModelValue:function(){if(!n.isNullOrUndefined(this.modelValue)||!n.isNullOrUndefined(this.$attrs.modelValue)){var e=(this.models.toString().match(/checked|value/)||[])[0];n.isNullOrUndefined(e)||(this.ej2Instances[""+e]=n.isNullOrUndefined(this.modelValue)?this.$attrs.modelValue:this.modelValue)}},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))}},getInjectedServices:function(){var e,t=[];if(this.$root&&this.isDecorator?e=n.getValue("$root.$options.provide",this):this.$vnode?e=n.getValue("$vnode.context.$options.provide",this):this.$parent&&(e=n.getValue("$parent.$options.provide",this)),n.isNullOrUndefined(e)&&!n.isNullOrUndefined(this.$)&&(e=n.getValue("$.parent.provides",this)),e){var s=e;if("function"==typeof e)if(e.managed){var r=e.managed,a=Object.keys(r),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 o=0;o<a.length;o++)for(var p=0;p<i.length;p++)-1!==i[parseInt(p.toString(),10)].indexOf(a[parseInt(o.toString(),10)])&&(this.$root&&this.isDecorator?r[a[parseInt(p.toString(),10)]]=this.$root[i[parseInt(o.toString(),10)]]:this.$vnode?r[a[parseInt(o.toString(),10)]]=this.$vnode.context[i[parseInt(p.toString(),10)]]:this.$parent&&(r[a[parseInt(o.toString(),10)]]=this.$parent[i[parseInt(p.toString(),10)]]),s=r)}else this.$vnode?s=this.$vnode.context.$options.provide():this.$parent&&(s=this.$parent.$options.provide());t=s[this.ej2Instances.getModuleName()]||[]}return this.isDecorator=!1,t},destroyComponent:function(){var e=this;e.ej2Instances.destroy(),e.$el.style.visibility="hidden",e=null},bindProperties:function(){for(var e={},t=0,s=this.propKeys;t<s.length;t++){var r=s[t];n.isNullOrUndefined(this[""+r])?!this[0]||n.isNullOrUndefined(this[0][0])||n.isNullOrUndefined(this[0][0][""+r])||(e[""+r]=this[0][0][""+r]):e[""+r]=this[""+r]}if(this.hasChildDirective&&this.fetchChildPropValues(e),this.hasInjectedModules){for(var a=this.getInjectedServices()||[],i=0,o=this.ej2Instances.getInjectedModules()||[];i<o.length;i++){var p=o[i];-1===a.indexOf(p)&&a.push(p)}this.ej2Instances.injectedModules=a}this.assignValueToWrapper(e)},assignValueToWrapper:function(e,t){this.ej2Instances.setProperties(n.extend({},{},e,!0),!!n.isNullOrUndefined(t)||t)},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 s=0;s<n.length;s++)if(n[parseInt(s.toString(),10)].type.methods||"e-seriescollection"===n[parseInt(s.toString(),10)].type){var r="e-seriescollection"===n[parseInt(s.toString(),10)].type?"series-collection":n[parseInt(s.toString(),10)].type.methods.getTag().replace("e-",""),a=this.resolveArrayDirectives(n[parseInt(s.toString(),10)].children,r),i=r.split("-"),o=this.ej2Instances.getModuleName().toLowerCase(),p=i.length>1&&o.indexOf(i[0])>-1?i[1]:i[0];p=p.replace(o,""),p=this.tagNameMapper["e-"+r]?this.tagNameMapper["e-"+r].replace("e-",""):p,"splitter"==o&&"panes"==p?p="paneSettings":"bulletchart"==o&&"range"==p?p="ranges":"schedule"==o&&"header"==p&&(p="headerRows"),t[""+p]=a[""+r]}}else t=this.getDirectiveValues(this.$slots.default,this.tagMapper||{},this.tagNameMapper||{});this.childDirObjects||(this.childDirObjects=JSON.stringify(t));for(var l=0,c=Object.keys(t);l<c.length;l++){var d=c[l];e[""+d]=t[""+d]}},resolveArrayDirectives:function(e,t){var n,s=[];s=(s=e.default?e.default():e).flatMap(function(e){return Array.isArray(e.children)?e.children:e});var r={};r[""+t]=[];for(var a=function(e){var s={},a=e.type.methods?e.type.methods.getTag():t;if(e.children){var o=void 0;if((n=i.resolveComplexDirs(e.children,i.tagMapper["e-"+t],a)).length)s=n;else for(var p=0;p<Object.keys(n).length;p++)o=Object.keys(n)[parseInt(p.toString(),10)],s[""+o]=n[""+o]}e.props&&Object.keys(e.props).forEach(function(t){var n=t.replace(/-[a-z]/g,function(e){return e[1].toUpperCase()});n&&(s[""+n]=e.props[""+t])}),/[s]\b/.test(a)&&n&&(!/[s]\b/.test(t)||n.length)?Array.isArray(s)?s.forEach(function(e){r[""+t].push(e)}):r[""+t].push(s):s&&0!==Object.keys(s).length&&r[""+t].push(s)},i=this,o=0,p=s;o<p.length;o++){a(p[o])}return r},resolveComplexDirs:function(e,t,n){for(var s,r=[],a={},i=function(e){var i=void 0;if(t[""+n]){i=Object.keys(t[""+n]).find(function(s){return t[""+n][""+s]===e.type.methods.getTag().replace(/[s]\b/,"")});o.ej2Instances.getModuleName().toLowerCase();i=i||e.type.methods.getTag(),i=(o.tagNameMapper[""+i]?o.tagNameMapper[""+i]:i).replace("e-ribbon-","").replace("e-",""),"diagram"==o.ej2Instances.getModuleName().toLowerCase()&&-1!=i.indexOf("annotations")&&(i="annotations")}e.children&&(s=o.resolveComplexInnerDirs(e.children,t[""+n],e.type.methods.getTag()),a[""+i]||(a[""+i]=[]),s.length>1?a[""+i]=s:a[""+i].push(s)),e.props&&(e.props=o.getCamelCaseProps(e.props)),r.length>1?(a=0!=Object.keys(a).length||a.length?a:[],e.props&&a.push(e.props)):a=e.props?Object.assign(a,e.props):a},o=this,p=0,l=r=e.default?e.default():e;p<l.length;p++){i(l[p])}return a},resolveComplexInnerDirs:function(e,t,n){for(var s=[],r=(s=e.default?e.default():e).length>1?[]:{},a=0,i=s;a<i.length;a++){var o=i[a],p=null,l="ribbon"==this.ej2Instances.getModuleName().toLowerCase(),c="spreadsheet"==this.ej2Instances.getModuleName().toLowerCase(),d=o.type.methods.getTag();d=(this.tagNameMapper[d]?this.tagNameMapper[d]:d).replace("e-ribbon-","").replace("e-",""),o.children&&(p=this.resolveMultilevelComplexInnerDirs(o.children,t[""+n],o.type.methods.getTag()),/[s]\b/.test(d)||s.length>1?/[s]\b/.test(d)?(r[""+d]=r[""+d]?r[""+d]:[],p.length?r[""+d]=p:r[""+d].push(p)):!p||l&&p.hasOwnProperty("collections")||c&&p.hasOwnProperty("cells")&&o.props||r.push(p):r=p||r),o.props&&(o.props=this.getCamelCaseProps(o.props)),s.length>1&&o.props?l&&p&&p.hasOwnProperty("collections")||c&&p&&p.hasOwnProperty("cells")?(p=o.props?Object.assign(p,o.props):p,r.push(p)):r.length>=0?r.push(o.props):r=o.props?Object.assign(r,o.props):r:r=o.props?Object.assign(r,o.props):r}return r},resolveMultilevelComplexInnerDirs:function(e,t,n){for(var s=[],r=(s=e.default?e.default():e).length>1?[]:{},a=0,i=s;a<i.length;a++){var o=i[a],p=null,l=(this.ej2Instances.getModuleName().toLowerCase(),o.type.methods.getTag());l=(this.tagNameMapper[l]?this.tagNameMapper[l]:l).replace("e-ribbon-","").replace("e-",""),o.children&&(p=this.resolveComplexInnerDirs(o.children,t[""+n],o.type.methods.getTag())),o.props&&(o.props=this.getCamelCaseProps(o.props)),/[s]\b/.test(l)?(r[""+l]=r[""+l]?r[""+l]:[],p.length?r[""+l]=p:r[""+l].push(p),o.props&&r[""+l].push(o.props)):(r=p,r=o.props?Object.assign(r,o.props):r)}return r},getDirectiveValues:function(e,t,n){var s=Object.keys(t),r={};if(e)for(var a=0,i=e;a<i.length;a++){var o=i[a];if(o.componentOptions&&o.componentOptions.children&&this.getTagName(o.componentOptions)||"e-seriescollection"===o.tag&&o.children){var p=o.componentOptions?this.getTagName(o.componentOptions):o.tag;if(p="e-seriescollection"===p?"e-seriesCollection":p,-1!==s.indexOf(p)){var l=n[""+p]?n[""+p]:p;r[l.replace("e-","")]=[];for(var c=0,d=o.componentOptions?o.componentOptions.children:o.children;c<d.length;c++){var h=d[c],u=this.getVNodeValue(h,t[""+p],n);0!==Object.keys(u).length&&r[l.replace("e-","")].push(u)}}}}return r},getMultiLevelDirValue:function(e,t,n){for(var s={},r=0,a=e;r<a.length;r++){var i=a[r],o=void 0,p=void 0;if(i.componentOptions?(o=this.getTagName(i.componentOptions),i.componentOptions.children&&(p=i.componentOptions.children)):"e-markersettings"!==i.tag&&"e-markersetting"!==i.tag||!i.children||(o="e-markersettings"===i.tag?"e-markerSettings":"e-markerSetting",p=i.children),o){var l=n[""+o]?n[""+o]:o;if(s[l.replace("e-","")]=[],p)for(var c=0,d=p;c<d.length;c++){var h=d[c],u=this.getVNodeValue(h,t[""+o],n);0!==Object.keys(u).length&&s[l.replace("e-","")].push(u)}}}return s},getVNodeValue:function(e,t,s){var r={};if(e.componentOptions||("e-markersettings"===e.tag||"e-markersetting"===e.tag)&&e.context){var a=void 0;a=e.componentOptions?this.getTagName(e.componentOptions):"e-markersettings"===e.tag?"e-markerSettings":"e-markerSetting","string"==typeof t&&a===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(a)?r=this.getMultiLevelDirValue(e.componentOptions.children,t[""+a],s):!e.children||-1===Object.keys(t).indexOf(a)||"e-markersettings"!==a&&"e-markersetting"!==a||(r=this.getMultiLevelDirValue(e.children,t[""+a],s)),e.data&&e.data.attrs&&(r=n.extend(r,this.getCamelCaseProps(e.data.attrs))))}return r},getCamelCaseProps:function(e){for(var t={},n=0,s=Object.keys(e);n<s.length;n++){var r=s[n];t[r.replace(/-[a-z]/g,function(e){return e[1].toUpperCase()})]=e[""+r]}return t},dataBind:function(){this.ej2Instances.dataBind()},setProperties:function(e,t){return this.ej2Instances.setProperties(e,t)},getTagName:function(e){var t=e.tag;return!t&&e.Ctor&&e.Ctor.extendOptions&&e.Ctor.extendOptions.methods&&e.Ctor.extendOptions.methods.getTag&&(t=e.Ctor.extendOptions.methods.getTag()),t}}}),f=function(){return(f=Object.assign||function(e){for(var t,n=1,s=arguments.length;n<s;n++){t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)},g=n.getTemplateEngine();n.setTemplateEngine({compile:s}),e.isExecute=l,e.aVue=c,e.gh=d,e.vueDefineComponent=h,e.ComponentBase=u,e.getProps=function(e){if(void 0===e&&(e={}),e.props)for(var 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=0,s=e.props;n<s.length;n++)t(s[n]);return[e.newprops,e.watch]},e.compile=s,Object.defineProperty(e,"__esModule",{value:!0})}); | ||
//# sourceMappingURL=ej2-vue-base.umd.min.js.map |
@@ -662,2 +662,15 @@ import * as Vue from 'vue'; | ||
returnEle = ele.childNodes; | ||
if (context.vueInstance) { | ||
let templateInstance = context.vueInstance.templateCollection; | ||
if (!templateInstance) { | ||
context.vueInstance.templateCollection = {}; | ||
templateInstance = context.vueInstance.templateCollection; | ||
} | ||
if (propName) { | ||
if (!templateInstance[`${propName}`]) { | ||
templateInstance[`${propName}`] = []; | ||
} | ||
templateInstance[`${propName}`].push(returnEle[0]); | ||
} | ||
} | ||
detach(ele); | ||
@@ -664,0 +677,0 @@ } |
@@ -711,2 +711,15 @@ import * as Vue from 'vue'; | ||
returnEle = ele.childNodes; | ||
if (context.vueInstance) { | ||
var templateInstance = context.vueInstance.templateCollection; | ||
if (!templateInstance) { | ||
context.vueInstance.templateCollection = {}; | ||
templateInstance = context.vueInstance.templateCollection; | ||
} | ||
if (propName) { | ||
if (!templateInstance["" + propName]) { | ||
templateInstance["" + propName] = []; | ||
} | ||
templateInstance["" + propName].push(returnEle[0]); | ||
} | ||
} | ||
detach(ele); | ||
@@ -713,0 +726,0 @@ } |
/*! | ||
* filename: ej2-vue-base.min.js | ||
* version : 23.2.5 | ||
* version : 23.2.7 | ||
* Copyright Syncfusion Inc. 2001 - 2023. 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){"use strict";function s(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 r(e,t){var s=this;return function(r,o,p,c,h){var g;if(o){var f=o.vueInstance&&o.vueInstance.plugins?{plugins:o.vueInstance.plugins}:{},v=n.getUniqueID("templateParentDiv"),O=n.getUniqueID("templateDiv"),j=n.createElement("div",{id:v,innerHTML:'<div id="'+O+'"></div>'});if(document.body.appendChild(j),!d&&("string"==typeof e||e.prototype&&e.prototype.CSPTemplate&&"function"==typeof e)){var y=l(o.vueInstance,e,h);if(!y)return n.detach(j),I(e,t)(r);A=u.createVNode({render:function(){return y[""+e]({data:r})}},f);j.innerHTML="",a(A,o.vueInstance,h),u.render(A,j),g=j.childNodes,n.detach(j)}else if(d)if("string"==typeof e||e.prototype&&e.prototype.CSPTemplate&&"function"==typeof e){var b=i(o.vueInstance,e,h);if(!b)return n.detach(j),I(e,t)(r);var C={},$=function(e){e.$parent&&$(e.$parent),e._provided&&Object.keys(e._provided).length>0&&(C=m({},C,e._provided))},N=o.vueInstance?o.vueInstance:h&&h.vueInstance?h.vueInstance:null;N&&$(N),new u({provide:m({},C),render:function(){return b[""+e]({data:r})}}).$mount("#"+O),g=j.childNodes,n.detach(j)}else{var V=e.call(s,{}),x=V.template,M=n.getValue("template.propsData",V),D={data:{data:n.extend(V.data||{},r)},parent:o.vueInstance};if(M&&(x=V.template.extends,D.propsData=M),"function"!=typeof x&&(x=u.extend(x)),x.options.setup&&(D.propsData=Object.assign(D.propsData||{},r)),new x(D).$mount("#"+O),g=j.childNodes,o.vueInstance){var k=o.vueInstance.templateCollection;k||(o.vueInstance.templateCollection={},k=o.vueInstance.templateCollection),p&&(k[""+p]||(k[""+p]=[]),k[""+p].push(g[0]))}n.detach(j)}else{var S=V=e.call(s,{}),M=n.getValue("template.propsData",V),T={data:{data:n.extend(V.data||{},r)},parent:o.vueInstance};S.template||(S.template=S[Object.keys(S)[0]]);var P=void 0;if(S.template.extends)P=S.template.extends._context.components.template;else if(!(P=S.template._context.components[e.name])){var w=Object.keys(S.template._context.components)[0];P=S.template._context.components[""+w]}var U;if(M)U=P.setup?Object.assign({},M):Object.assign(P.data(),M);else if(U=P.setup?Object.assign({},T.data):Object.assign(P.data(),T.data),P.components)for(var _=0,L=Object.keys(P.components)||[];_<L.length;_++)!function(e){var t=P.components[""+e];t&&t.data&&(t.__data||(t.__data=t.data),t.data=function(e){return Object.assign(t.__data.call(e),T.data)})}(L[_]);P.setup&&(f=Object.assign(f,r)),P.data=function(){return U};var A=u.createVNode(P,f);j.innerHTML="",a(A,o.vueInstance,h),u.render(A,j),g=j.childNodes,n.detach(j)}}return g||[]}}function a(e,t,n){var s=t||(n&&n.vueInstance?n.vueInstance:null);if(s){e.appContext=s.$.appContext;var r={},a=function(e){e.$&&e.$.parent&&a(e.$.parent),e.provides&&Object.keys(e.provides).length>0&&(r=m({},r,e.provides))};a(s),e.appContext.provides&&(e.appContext.provides=m({},e.appContext.provides,r))}}function i(e,t,n){if(e||n&&n.vueInstance)return o(n&&n.vueInstance?n.vueInstance:e,t)}function o(e,t){if(e){var n=e.$slots,s=e.$scopedSlots,r=e.scopedSlots,a=e.children;if(s&&s[""+t])return s;if(n&&n.default){for(var i=n.default,l=0;l<i.length;l++)if(c=o(p(i[parseInt(l.toString(),10)]),t))return c}else{if(r&&r[""+t])return r;if(a)for(l=0;l<a.length;l++){var c=o(p(a[parseInt(l.toString(),10)]),t);if(c)return c}}}}function p(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 l(e,t,n){if(e||n&&n.vueInstance)return c(n&&n.vueInstance?n.vueInstance.$slots:e.$slots,t)}function c(e,t){if(e&&e[""+t])return e;if(e&&e.default){var n=e.default();n=n.flatMap(function(e){return Array.isArray(e.children)?e.children:e});for(var s=0;s<n.length;s++){var r=c(n[parseInt(s.toString(),10)].children,t);if(r)return r}}}var h=function(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}(t),d=!(parseInt(h.version)>2),u=d?h.default.default?h.default.default:h.default:h,g=h.h,f=function(e){return d?u.extend(e):u.defineComponent(e)},v=f({name:"ComponentBase",data:function(){return{tagMapper:{},tagNameMapper:{},hasInjectedModules:!1,hasChildDirective:!1,childDirObjects:"",propKeys:{},isDecorator:!1}},created:function(){var e=this;if(this.ej2Instance&&(this.ej2Instances=this.isVue3?u.toRaw(this.ej2Instance):this.ej2Instance),this.propKeys){for(var t=this,s=0,r=this.propKeys;s<r.length;s++)!function(n){t.ej2Instances.addEventListener(n,function(t){e.$emit(n,t)})}(r[s]);var a=n.getValue("$root.$options.provide",this),i=n.getValue("$parent.$options.provide",this);if(i=n.isNullOrUndefined(i)?n.getValue("$.parent.provides",this):i,this.hasInjectedModules&&!d){var o=[];a&&a.managed?(this.isDecorator=!0,o=this.getInjectedServices()||[]):a?o=a[this.ej2Instances.getModuleName()]||[]:i&&(o=this.getInjectedServices()||[]);for(var p=0,l=this.ej2Instances.getInjectedModules()||[];p<l.length;p++){var c=l[p];-1===o.indexOf(c)&&o.push(c)}this.ej2Instances.injectedModules=o}}},mounted:function(){var e=this.$el?this.$el.querySelectorAll("div.e-directive"):null;if(!d&&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)},updated:function(){this.updated()},beforeDestroy:function(){this.destroyComponent()},beforeUnmount:function(){this.destroyComponent()},methods:{setModelValue:function(){if(!n.isNullOrUndefined(this.modelValue)||!n.isNullOrUndefined(this.$attrs.modelValue)){var e=(this.models.toString().match(/checked|value/)||[])[0];n.isNullOrUndefined(e)||(this.ej2Instances[""+e]=n.isNullOrUndefined(this.modelValue)?this.$attrs.modelValue:this.modelValue)}},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))}},getInjectedServices:function(){var e,t=[];if(this.$root&&this.isDecorator?e=n.getValue("$root.$options.provide",this):this.$vnode?e=n.getValue("$vnode.context.$options.provide",this):this.$parent&&(e=n.getValue("$parent.$options.provide",this)),n.isNullOrUndefined(e)&&!n.isNullOrUndefined(this.$)&&(e=n.getValue("$.parent.provides",this)),e){var s=e;if("function"==typeof e)if(e.managed){var r=e.managed,a=Object.keys(r),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 o=0;o<a.length;o++)for(var p=0;p<i.length;p++)-1!==i[parseInt(p.toString(),10)].indexOf(a[parseInt(o.toString(),10)])&&(this.$root&&this.isDecorator?r[a[parseInt(p.toString(),10)]]=this.$root[i[parseInt(o.toString(),10)]]:this.$vnode?r[a[parseInt(o.toString(),10)]]=this.$vnode.context[i[parseInt(p.toString(),10)]]:this.$parent&&(r[a[parseInt(o.toString(),10)]]=this.$parent[i[parseInt(p.toString(),10)]]),s=r)}else this.$vnode?s=this.$vnode.context.$options.provide():this.$parent&&(s=this.$parent.$options.provide());t=s[this.ej2Instances.getModuleName()]||[]}return this.isDecorator=!1,t},destroyComponent:function(){var e=this;e.ej2Instances.destroy(),e.$el.style.visibility="hidden",e=null},bindProperties:function(){for(var e={},t=0,s=this.propKeys;t<s.length;t++){var r=s[t];n.isNullOrUndefined(this[""+r])?!this[0]||n.isNullOrUndefined(this[0][0])||n.isNullOrUndefined(this[0][0][""+r])||(e[""+r]=this[0][0][""+r]):e[""+r]=this[""+r]}if(this.hasChildDirective&&this.fetchChildPropValues(e),this.hasInjectedModules){for(var a=this.getInjectedServices()||[],i=0,o=this.ej2Instances.getInjectedModules()||[];i<o.length;i++){var p=o[i];-1===a.indexOf(p)&&a.push(p)}this.ej2Instances.injectedModules=a}this.assignValueToWrapper(e)},assignValueToWrapper:function(e,t){this.ej2Instances.setProperties(n.extend({},{},e,!0),!!n.isNullOrUndefined(t)||t)},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 s=0;s<n.length;s++)if(n[parseInt(s.toString(),10)].type.methods||"e-seriescollection"===n[parseInt(s.toString(),10)].type){var r="e-seriescollection"===n[parseInt(s.toString(),10)].type?"series-collection":n[parseInt(s.toString(),10)].type.methods.getTag().replace("e-",""),a=this.resolveArrayDirectives(n[parseInt(s.toString(),10)].children,r),i=r.split("-"),o=this.ej2Instances.getModuleName().toLowerCase(),p=i.length>1&&o.indexOf(i[0])>-1?i[1]:i[0];p=p.replace(o,""),p=this.tagNameMapper["e-"+r]?this.tagNameMapper["e-"+r].replace("e-",""):p,"splitter"==o&&"panes"==p?p="paneSettings":"bulletchart"==o&&"range"==p?p="ranges":"schedule"==o&&"header"==p&&(p="headerRows"),t[""+p]=a[""+r]}}else t=this.getDirectiveValues(this.$slots.default,this.tagMapper||{},this.tagNameMapper||{});this.childDirObjects||(this.childDirObjects=JSON.stringify(t));for(var l=0,c=Object.keys(t);l<c.length;l++){var h=c[l];e[""+h]=t[""+h]}},resolveArrayDirectives:function(e,t){var n,s=[];s=(s=e.default?e.default():e).flatMap(function(e){return Array.isArray(e.children)?e.children:e});var r={};r[""+t]=[];for(var a=this,i=0,o=s;i<o.length;i++)!function(e){var s={},i=e.type.methods?e.type.methods.getTag():t;if(e.children){var o=void 0;if((n=a.resolveComplexDirs(e.children,a.tagMapper["e-"+t],i)).length)s=n;else for(var p=0;p<Object.keys(n).length;p++)o=Object.keys(n)[parseInt(p.toString(),10)],s[""+o]=n[""+o]}e.props&&Object.keys(e.props).forEach(function(t){var n=t.replace(/-[a-z]/g,function(e){return e[1].toUpperCase()});n&&(s[""+n]=e.props[""+t])}),/[s]\b/.test(i)&&n&&(!/[s]\b/.test(t)||n.length)?Array.isArray(s)?s.forEach(function(e){r[""+t].push(e)}):r[""+t].push(s):s&&0!==Object.keys(s).length&&r[""+t].push(s)}(o[i]);return r},resolveComplexDirs:function(e,t,n){for(var s,r=[],a={},i=this,o=0,p=r=e.default?e.default():e;o<p.length;o++)!function(e){var o=void 0;if(t[""+n]){o=Object.keys(t[""+n]).find(function(s){return t[""+n][""+s]===e.type.methods.getTag().replace(/[s]\b/,"")});i.ej2Instances.getModuleName().toLowerCase();o=o||e.type.methods.getTag(),o=(i.tagNameMapper[""+o]?i.tagNameMapper[""+o]:o).replace("e-ribbon-","").replace("e-",""),"diagram"==i.ej2Instances.getModuleName().toLowerCase()&&-1!=o.indexOf("annotations")&&(o="annotations")}e.children&&(s=i.resolveComplexInnerDirs(e.children,t[""+n],e.type.methods.getTag()),a[""+o]||(a[""+o]=[]),s.length>1?a[""+o]=s:a[""+o].push(s)),e.props&&(e.props=i.getCamelCaseProps(e.props)),r.length>1?(a=0!=Object.keys(a).length||a.length?a:[],e.props&&a.push(e.props)):a=e.props?Object.assign(a,e.props):a}(p[o]);return a},resolveComplexInnerDirs:function(e,t,n){for(var s=[],r=(s=e.default?e.default():e).length>1?[]:{},a=0,i=s;a<i.length;a++){var o=i[a],p=null,l="ribbon"==this.ej2Instances.getModuleName().toLowerCase(),c="spreadsheet"==this.ej2Instances.getModuleName().toLowerCase(),h=o.type.methods.getTag();h=(this.tagNameMapper[h]?this.tagNameMapper[h]:h).replace("e-ribbon-","").replace("e-",""),o.children&&(p=this.resolveMultilevelComplexInnerDirs(o.children,t[""+n],o.type.methods.getTag()),/[s]\b/.test(h)||s.length>1?/[s]\b/.test(h)?(r[""+h]=r[""+h]?r[""+h]:[],p.length?r[""+h]=p:r[""+h].push(p)):!p||l&&p.hasOwnProperty("collections")||c&&p.hasOwnProperty("cells")&&o.props||r.push(p):r=p||r),o.props&&(o.props=this.getCamelCaseProps(o.props)),s.length>1&&o.props?l&&p&&p.hasOwnProperty("collections")||c&&p&&p.hasOwnProperty("cells")?(p=o.props?Object.assign(p,o.props):p,r.push(p)):r.length>=0?r.push(o.props):r=o.props?Object.assign(r,o.props):r:r=o.props?Object.assign(r,o.props):r}return r},resolveMultilevelComplexInnerDirs:function(e,t,n){for(var s=[],r=(s=e.default?e.default():e).length>1?[]:{},a=0,i=s;a<i.length;a++){var o=i[a],p=null,l=(this.ej2Instances.getModuleName().toLowerCase(),o.type.methods.getTag());l=(this.tagNameMapper[l]?this.tagNameMapper[l]:l).replace("e-ribbon-","").replace("e-",""),o.children&&(p=this.resolveComplexInnerDirs(o.children,t[""+n],o.type.methods.getTag())),o.props&&(o.props=this.getCamelCaseProps(o.props)),/[s]\b/.test(l)?(r[""+l]=r[""+l]?r[""+l]:[],p.length?r[""+l]=p:r[""+l].push(p),o.props&&r[""+l].push(o.props)):(r=p,r=o.props?Object.assign(r,o.props):r)}return r},getDirectiveValues:function(e,t,n){var s=Object.keys(t),r={};if(e)for(var a=0,i=e;a<i.length;a++){var o=i[a];if(o.componentOptions&&o.componentOptions.children&&this.getTagName(o.componentOptions)||"e-seriescollection"===o.tag&&o.children){var p=o.componentOptions?this.getTagName(o.componentOptions):o.tag;if(p="e-seriescollection"===p?"e-seriesCollection":p,-1!==s.indexOf(p)){var l=n[""+p]?n[""+p]:p;r[l.replace("e-","")]=[];for(var c=0,h=o.componentOptions?o.componentOptions.children:o.children;c<h.length;c++){var d=h[c],u=this.getVNodeValue(d,t[""+p],n);0!==Object.keys(u).length&&r[l.replace("e-","")].push(u)}}}}return r},getMultiLevelDirValue:function(e,t,n){for(var s={},r=0,a=e;r<a.length;r++){var i=a[r],o=void 0,p=void 0;if(i.componentOptions?(o=this.getTagName(i.componentOptions),i.componentOptions.children&&(p=i.componentOptions.children)):"e-markersettings"!==i.tag&&"e-markersetting"!==i.tag||!i.children||(o="e-markersettings"===i.tag?"e-markerSettings":"e-markerSetting",p=i.children),o){var l=n[""+o]?n[""+o]:o;if(s[l.replace("e-","")]=[],p)for(var c=0,h=p;c<h.length;c++){var d=h[c],u=this.getVNodeValue(d,t[""+o],n);0!==Object.keys(u).length&&s[l.replace("e-","")].push(u)}}}return s},getVNodeValue:function(e,t,s){var r={};if(e.componentOptions||("e-markersettings"===e.tag||"e-markersetting"===e.tag)&&e.context){var a=void 0;a=e.componentOptions?this.getTagName(e.componentOptions):"e-markersettings"===e.tag?"e-markerSettings":"e-markerSetting","string"==typeof t&&a===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(a)?r=this.getMultiLevelDirValue(e.componentOptions.children,t[""+a],s):!e.children||-1===Object.keys(t).indexOf(a)||"e-markersettings"!==a&&"e-markersetting"!==a||(r=this.getMultiLevelDirValue(e.children,t[""+a],s)),e.data&&e.data.attrs&&(r=n.extend(r,this.getCamelCaseProps(e.data.attrs))))}return r},getCamelCaseProps:function(e){for(var t={},n=0,s=Object.keys(e);n<s.length;n++){var r=s[n];t[r.replace(/-[a-z]/g,function(e){return e[1].toUpperCase()})]=e[""+r]}return t},dataBind:function(){this.ej2Instances.dataBind()},setProperties:function(e,t){return this.ej2Instances.setProperties(e,t)},getTagName:function(e){var t=e.tag;return!t&&e.Ctor&&e.Ctor.extendOptions&&e.Ctor.extendOptions.methods&&e.Ctor.extendOptions.methods.getTag&&(t=e.Ctor.extendOptions.methods.getTag()),t}}}),m=function(){return(m=Object.assign||function(e){for(var t,n=1,s=arguments.length;n<s;n++){t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)},I=n.getTemplateEngine();return n.setTemplateEngine({compile:r}),e.isExecute=d,e.aVue=u,e.gh=g,e.vueDefineComponent=f,e.ComponentBase=v,e.getProps=s,e.compile=r,e}({},Vue,ej.base),this.ejs=ej; | ||
this.ej=this.ej||{},this.ej.vuebase=function(e,t,n){"use strict";function s(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 r(e,t){var s=this;return function(r,o,p,c,h){var g;if(o){var f=o.vueInstance&&o.vueInstance.plugins?{plugins:o.vueInstance.plugins}:{},v=n.getUniqueID("templateParentDiv"),O=n.getUniqueID("templateDiv"),j=n.createElement("div",{id:v,innerHTML:'<div id="'+O+'"></div>'});if(document.body.appendChild(j),!d&&("string"==typeof e||e.prototype&&e.prototype.CSPTemplate&&"function"==typeof e)){var y=l(o.vueInstance,e,h);if(!y)return n.detach(j),I(e,t)(r);A=u.createVNode({render:function(){return y[""+e]({data:r})}},f);j.innerHTML="",a(A,o.vueInstance,h),u.render(A,j),g=j.childNodes,n.detach(j)}else if(d)if("string"==typeof e||e.prototype&&e.prototype.CSPTemplate&&"function"==typeof e){var b=i(o.vueInstance,e,h);if(!b)return n.detach(j),I(e,t)(r);var C={},$=function(e){e.$parent&&$(e.$parent),e._provided&&Object.keys(e._provided).length>0&&(C=m({},C,e._provided))},N=o.vueInstance?o.vueInstance:h&&h.vueInstance?h.vueInstance:null;N&&$(N),new u({provide:m({},C),render:function(){return b[""+e]({data:r})}}).$mount("#"+O),g=j.childNodes,n.detach(j)}else{var V=e.call(s,{}),x=V.template,M=n.getValue("template.propsData",V),D={data:{data:n.extend(V.data||{},r)},parent:o.vueInstance};if(M&&(x=V.template.extends,D.propsData=M),"function"!=typeof x&&(x=u.extend(x)),x.options.setup&&(D.propsData=Object.assign(D.propsData||{},r)),new x(D).$mount("#"+O),g=j.childNodes,o.vueInstance){var k=o.vueInstance.templateCollection;k||(o.vueInstance.templateCollection={},k=o.vueInstance.templateCollection),p&&(k[""+p]||(k[""+p]=[]),k[""+p].push(g[0]))}n.detach(j)}else{var S=V=e.call(s,{}),M=n.getValue("template.propsData",V),T={data:{data:n.extend(V.data||{},r)},parent:o.vueInstance};S.template||(S.template=S[Object.keys(S)[0]]);var P=void 0;if(S.template.extends)P=S.template.extends._context.components.template;else if(!(P=S.template._context.components[e.name])){var w=Object.keys(S.template._context.components)[0];P=S.template._context.components[""+w]}var U;if(M)U=P.setup?Object.assign({},M):Object.assign(P.data(),M);else if(U=P.setup?Object.assign({},T.data):Object.assign(P.data(),T.data),P.components)for(var _=0,L=Object.keys(P.components)||[];_<L.length;_++)!function(e){var t=P.components[""+e];t&&t.data&&(t.__data||(t.__data=t.data),t.data=function(e){return Object.assign(t.__data.call(e),T.data)})}(L[_]);P.setup&&(f=Object.assign(f,r)),P.data=function(){return U};var A=u.createVNode(P,f);j.innerHTML="",a(A,o.vueInstance,h),u.render(A,j),g=j.childNodes,o.vueInstance&&((k=o.vueInstance.templateCollection)||(o.vueInstance.templateCollection={},k=o.vueInstance.templateCollection),p&&(k[""+p]||(k[""+p]=[]),k[""+p].push(g[0]))),n.detach(j)}}return g||[]}}function a(e,t,n){var s=t||(n&&n.vueInstance?n.vueInstance:null);if(s){e.appContext=s.$.appContext;var r={},a=function(e){e.$&&e.$.parent&&a(e.$.parent),e.provides&&Object.keys(e.provides).length>0&&(r=m({},r,e.provides))};a(s),e.appContext.provides&&(e.appContext.provides=m({},e.appContext.provides,r))}}function i(e,t,n){if(e||n&&n.vueInstance)return o(n&&n.vueInstance?n.vueInstance:e,t)}function o(e,t){if(e){var n=e.$slots,s=e.$scopedSlots,r=e.scopedSlots,a=e.children;if(s&&s[""+t])return s;if(n&&n.default){for(var i=n.default,l=0;l<i.length;l++)if(c=o(p(i[parseInt(l.toString(),10)]),t))return c}else{if(r&&r[""+t])return r;if(a)for(l=0;l<a.length;l++){var c=o(p(a[parseInt(l.toString(),10)]),t);if(c)return c}}}}function p(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 l(e,t,n){if(e||n&&n.vueInstance)return c(n&&n.vueInstance?n.vueInstance.$slots:e.$slots,t)}function c(e,t){if(e&&e[""+t])return e;if(e&&e.default){var n=e.default();n=n.flatMap(function(e){return Array.isArray(e.children)?e.children:e});for(var s=0;s<n.length;s++){var r=c(n[parseInt(s.toString(),10)].children,t);if(r)return r}}}var h=function(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}(t),d=!(parseInt(h.version)>2),u=d?h.default.default?h.default.default:h.default:h,g=h.h,f=function(e){return d?u.extend(e):u.defineComponent(e)},v=f({name:"ComponentBase",data:function(){return{tagMapper:{},tagNameMapper:{},hasInjectedModules:!1,hasChildDirective:!1,childDirObjects:"",propKeys:{},isDecorator:!1}},created:function(){var e=this;if(this.ej2Instance&&(this.ej2Instances=this.isVue3?u.toRaw(this.ej2Instance):this.ej2Instance),this.propKeys){for(var t=this,s=0,r=this.propKeys;s<r.length;s++)!function(n){t.ej2Instances.addEventListener(n,function(t){e.$emit(n,t)})}(r[s]);var a=n.getValue("$root.$options.provide",this),i=n.getValue("$parent.$options.provide",this);if(i=n.isNullOrUndefined(i)?n.getValue("$.parent.provides",this):i,this.hasInjectedModules&&!d){var o=[];a&&a.managed?(this.isDecorator=!0,o=this.getInjectedServices()||[]):a?o=a[this.ej2Instances.getModuleName()]||[]:i&&(o=this.getInjectedServices()||[]);for(var p=0,l=this.ej2Instances.getInjectedModules()||[];p<l.length;p++){var c=l[p];-1===o.indexOf(c)&&o.push(c)}this.ej2Instances.injectedModules=o}}},mounted:function(){var e=this.$el?this.$el.querySelectorAll("div.e-directive"):null;if(!d&&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)},updated:function(){this.updated()},beforeDestroy:function(){this.destroyComponent()},beforeUnmount:function(){this.destroyComponent()},methods:{setModelValue:function(){if(!n.isNullOrUndefined(this.modelValue)||!n.isNullOrUndefined(this.$attrs.modelValue)){var e=(this.models.toString().match(/checked|value/)||[])[0];n.isNullOrUndefined(e)||(this.ej2Instances[""+e]=n.isNullOrUndefined(this.modelValue)?this.$attrs.modelValue:this.modelValue)}},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))}},getInjectedServices:function(){var e,t=[];if(this.$root&&this.isDecorator?e=n.getValue("$root.$options.provide",this):this.$vnode?e=n.getValue("$vnode.context.$options.provide",this):this.$parent&&(e=n.getValue("$parent.$options.provide",this)),n.isNullOrUndefined(e)&&!n.isNullOrUndefined(this.$)&&(e=n.getValue("$.parent.provides",this)),e){var s=e;if("function"==typeof e)if(e.managed){var r=e.managed,a=Object.keys(r),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 o=0;o<a.length;o++)for(var p=0;p<i.length;p++)-1!==i[parseInt(p.toString(),10)].indexOf(a[parseInt(o.toString(),10)])&&(this.$root&&this.isDecorator?r[a[parseInt(p.toString(),10)]]=this.$root[i[parseInt(o.toString(),10)]]:this.$vnode?r[a[parseInt(o.toString(),10)]]=this.$vnode.context[i[parseInt(p.toString(),10)]]:this.$parent&&(r[a[parseInt(o.toString(),10)]]=this.$parent[i[parseInt(p.toString(),10)]]),s=r)}else this.$vnode?s=this.$vnode.context.$options.provide():this.$parent&&(s=this.$parent.$options.provide());t=s[this.ej2Instances.getModuleName()]||[]}return this.isDecorator=!1,t},destroyComponent:function(){var e=this;e.ej2Instances.destroy(),e.$el.style.visibility="hidden",e=null},bindProperties:function(){for(var e={},t=0,s=this.propKeys;t<s.length;t++){var r=s[t];n.isNullOrUndefined(this[""+r])?!this[0]||n.isNullOrUndefined(this[0][0])||n.isNullOrUndefined(this[0][0][""+r])||(e[""+r]=this[0][0][""+r]):e[""+r]=this[""+r]}if(this.hasChildDirective&&this.fetchChildPropValues(e),this.hasInjectedModules){for(var a=this.getInjectedServices()||[],i=0,o=this.ej2Instances.getInjectedModules()||[];i<o.length;i++){var p=o[i];-1===a.indexOf(p)&&a.push(p)}this.ej2Instances.injectedModules=a}this.assignValueToWrapper(e)},assignValueToWrapper:function(e,t){this.ej2Instances.setProperties(n.extend({},{},e,!0),!!n.isNullOrUndefined(t)||t)},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 s=0;s<n.length;s++)if(n[parseInt(s.toString(),10)].type.methods||"e-seriescollection"===n[parseInt(s.toString(),10)].type){var r="e-seriescollection"===n[parseInt(s.toString(),10)].type?"series-collection":n[parseInt(s.toString(),10)].type.methods.getTag().replace("e-",""),a=this.resolveArrayDirectives(n[parseInt(s.toString(),10)].children,r),i=r.split("-"),o=this.ej2Instances.getModuleName().toLowerCase(),p=i.length>1&&o.indexOf(i[0])>-1?i[1]:i[0];p=p.replace(o,""),p=this.tagNameMapper["e-"+r]?this.tagNameMapper["e-"+r].replace("e-",""):p,"splitter"==o&&"panes"==p?p="paneSettings":"bulletchart"==o&&"range"==p?p="ranges":"schedule"==o&&"header"==p&&(p="headerRows"),t[""+p]=a[""+r]}}else t=this.getDirectiveValues(this.$slots.default,this.tagMapper||{},this.tagNameMapper||{});this.childDirObjects||(this.childDirObjects=JSON.stringify(t));for(var l=0,c=Object.keys(t);l<c.length;l++){var h=c[l];e[""+h]=t[""+h]}},resolveArrayDirectives:function(e,t){var n,s=[];s=(s=e.default?e.default():e).flatMap(function(e){return Array.isArray(e.children)?e.children:e});var r={};r[""+t]=[];for(var a=this,i=0,o=s;i<o.length;i++)!function(e){var s={},i=e.type.methods?e.type.methods.getTag():t;if(e.children){var o=void 0;if((n=a.resolveComplexDirs(e.children,a.tagMapper["e-"+t],i)).length)s=n;else for(var p=0;p<Object.keys(n).length;p++)o=Object.keys(n)[parseInt(p.toString(),10)],s[""+o]=n[""+o]}e.props&&Object.keys(e.props).forEach(function(t){var n=t.replace(/-[a-z]/g,function(e){return e[1].toUpperCase()});n&&(s[""+n]=e.props[""+t])}),/[s]\b/.test(i)&&n&&(!/[s]\b/.test(t)||n.length)?Array.isArray(s)?s.forEach(function(e){r[""+t].push(e)}):r[""+t].push(s):s&&0!==Object.keys(s).length&&r[""+t].push(s)}(o[i]);return r},resolveComplexDirs:function(e,t,n){for(var s,r=[],a={},i=this,o=0,p=r=e.default?e.default():e;o<p.length;o++)!function(e){var o=void 0;if(t[""+n]){o=Object.keys(t[""+n]).find(function(s){return t[""+n][""+s]===e.type.methods.getTag().replace(/[s]\b/,"")});i.ej2Instances.getModuleName().toLowerCase();o=o||e.type.methods.getTag(),o=(i.tagNameMapper[""+o]?i.tagNameMapper[""+o]:o).replace("e-ribbon-","").replace("e-",""),"diagram"==i.ej2Instances.getModuleName().toLowerCase()&&-1!=o.indexOf("annotations")&&(o="annotations")}e.children&&(s=i.resolveComplexInnerDirs(e.children,t[""+n],e.type.methods.getTag()),a[""+o]||(a[""+o]=[]),s.length>1?a[""+o]=s:a[""+o].push(s)),e.props&&(e.props=i.getCamelCaseProps(e.props)),r.length>1?(a=0!=Object.keys(a).length||a.length?a:[],e.props&&a.push(e.props)):a=e.props?Object.assign(a,e.props):a}(p[o]);return a},resolveComplexInnerDirs:function(e,t,n){for(var s=[],r=(s=e.default?e.default():e).length>1?[]:{},a=0,i=s;a<i.length;a++){var o=i[a],p=null,l="ribbon"==this.ej2Instances.getModuleName().toLowerCase(),c="spreadsheet"==this.ej2Instances.getModuleName().toLowerCase(),h=o.type.methods.getTag();h=(this.tagNameMapper[h]?this.tagNameMapper[h]:h).replace("e-ribbon-","").replace("e-",""),o.children&&(p=this.resolveMultilevelComplexInnerDirs(o.children,t[""+n],o.type.methods.getTag()),/[s]\b/.test(h)||s.length>1?/[s]\b/.test(h)?(r[""+h]=r[""+h]?r[""+h]:[],p.length?r[""+h]=p:r[""+h].push(p)):!p||l&&p.hasOwnProperty("collections")||c&&p.hasOwnProperty("cells")&&o.props||r.push(p):r=p||r),o.props&&(o.props=this.getCamelCaseProps(o.props)),s.length>1&&o.props?l&&p&&p.hasOwnProperty("collections")||c&&p&&p.hasOwnProperty("cells")?(p=o.props?Object.assign(p,o.props):p,r.push(p)):r.length>=0?r.push(o.props):r=o.props?Object.assign(r,o.props):r:r=o.props?Object.assign(r,o.props):r}return r},resolveMultilevelComplexInnerDirs:function(e,t,n){for(var s=[],r=(s=e.default?e.default():e).length>1?[]:{},a=0,i=s;a<i.length;a++){var o=i[a],p=null,l=(this.ej2Instances.getModuleName().toLowerCase(),o.type.methods.getTag());l=(this.tagNameMapper[l]?this.tagNameMapper[l]:l).replace("e-ribbon-","").replace("e-",""),o.children&&(p=this.resolveComplexInnerDirs(o.children,t[""+n],o.type.methods.getTag())),o.props&&(o.props=this.getCamelCaseProps(o.props)),/[s]\b/.test(l)?(r[""+l]=r[""+l]?r[""+l]:[],p.length?r[""+l]=p:r[""+l].push(p),o.props&&r[""+l].push(o.props)):(r=p,r=o.props?Object.assign(r,o.props):r)}return r},getDirectiveValues:function(e,t,n){var s=Object.keys(t),r={};if(e)for(var a=0,i=e;a<i.length;a++){var o=i[a];if(o.componentOptions&&o.componentOptions.children&&this.getTagName(o.componentOptions)||"e-seriescollection"===o.tag&&o.children){var p=o.componentOptions?this.getTagName(o.componentOptions):o.tag;if(p="e-seriescollection"===p?"e-seriesCollection":p,-1!==s.indexOf(p)){var l=n[""+p]?n[""+p]:p;r[l.replace("e-","")]=[];for(var c=0,h=o.componentOptions?o.componentOptions.children:o.children;c<h.length;c++){var d=h[c],u=this.getVNodeValue(d,t[""+p],n);0!==Object.keys(u).length&&r[l.replace("e-","")].push(u)}}}}return r},getMultiLevelDirValue:function(e,t,n){for(var s={},r=0,a=e;r<a.length;r++){var i=a[r],o=void 0,p=void 0;if(i.componentOptions?(o=this.getTagName(i.componentOptions),i.componentOptions.children&&(p=i.componentOptions.children)):"e-markersettings"!==i.tag&&"e-markersetting"!==i.tag||!i.children||(o="e-markersettings"===i.tag?"e-markerSettings":"e-markerSetting",p=i.children),o){var l=n[""+o]?n[""+o]:o;if(s[l.replace("e-","")]=[],p)for(var c=0,h=p;c<h.length;c++){var d=h[c],u=this.getVNodeValue(d,t[""+o],n);0!==Object.keys(u).length&&s[l.replace("e-","")].push(u)}}}return s},getVNodeValue:function(e,t,s){var r={};if(e.componentOptions||("e-markersettings"===e.tag||"e-markersetting"===e.tag)&&e.context){var a=void 0;a=e.componentOptions?this.getTagName(e.componentOptions):"e-markersettings"===e.tag?"e-markerSettings":"e-markerSetting","string"==typeof t&&a===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(a)?r=this.getMultiLevelDirValue(e.componentOptions.children,t[""+a],s):!e.children||-1===Object.keys(t).indexOf(a)||"e-markersettings"!==a&&"e-markersetting"!==a||(r=this.getMultiLevelDirValue(e.children,t[""+a],s)),e.data&&e.data.attrs&&(r=n.extend(r,this.getCamelCaseProps(e.data.attrs))))}return r},getCamelCaseProps:function(e){for(var t={},n=0,s=Object.keys(e);n<s.length;n++){var r=s[n];t[r.replace(/-[a-z]/g,function(e){return e[1].toUpperCase()})]=e[""+r]}return t},dataBind:function(){this.ej2Instances.dataBind()},setProperties:function(e,t){return this.ej2Instances.setProperties(e,t)},getTagName:function(e){var t=e.tag;return!t&&e.Ctor&&e.Ctor.extendOptions&&e.Ctor.extendOptions.methods&&e.Ctor.extendOptions.methods.getTag&&(t=e.Ctor.extendOptions.methods.getTag()),t}}}),m=function(){return(m=Object.assign||function(e){for(var t,n=1,s=arguments.length;n<s;n++){t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)},I=n.getTemplateEngine();return n.setTemplateEngine({compile:r}),e.isExecute=d,e.aVue=u,e.gh=g,e.vueDefineComponent=f,e.ComponentBase=v,e.getProps=s,e.compile=r,e}({},Vue,ej.base),this.ejs=ej; | ||
//# sourceMappingURL=ej2-vue-base.min.js.map |
/*! | ||
* filename: index.d.ts | ||
* version : 23.2.5 | ||
* version : 23.2.7 | ||
* Copyright Syncfusion Inc. 2001 - 2023. 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@23.2.4", | ||
"_id": "@syncfusion/ej2-vue-base@23.2.5", | ||
"_inBundle": false, | ||
"_integrity": "sha512-K4DUvP2OWqsB02dizJqZH1v0n4Cv5I3WgFwqA1zkgBPdZA4gNHE7L+UgM6nytQDm9mVtKh1JZBDOT7GlWifpow==", | ||
"_integrity": "sha512-hcASWUGUCyV33NQPgIT7r4Ot68vQ+nZEpxCZUOlQ41VupMZoM1tz5zUIZxyblGNnR/r0EIXaGsaUo/UVBpNuQA==", | ||
"_location": "/@syncfusion/ej2-vue-base", | ||
@@ -22,19 +22,22 @@ "_phantomChildren": {}, | ||
"/@syncfusion/ej2-vue-barcode-generator", | ||
"/@syncfusion/ej2-vue-buttons", | ||
"/@syncfusion/ej2-vue-calendars", | ||
"/@syncfusion/ej2-vue-charts", | ||
"/@syncfusion/ej2-vue-documenteditor", | ||
"/@syncfusion/ej2-vue-diagrams", | ||
"/@syncfusion/ej2-vue-dropdowns", | ||
"/@syncfusion/ej2-vue-gantt", | ||
"/@syncfusion/ej2-vue-grids", | ||
"/@syncfusion/ej2-vue-image-editor", | ||
"/@syncfusion/ej2-vue-inplace-editor", | ||
"/@syncfusion/ej2-vue-maps", | ||
"/@syncfusion/ej2-vue-navigations", | ||
"/@syncfusion/ej2-vue-notifications", | ||
"/@syncfusion/ej2-vue-pdfviewer", | ||
"/@syncfusion/ej2-vue-pivotview", | ||
"/@syncfusion/ej2-vue-progressbar", | ||
"/@syncfusion/ej2-vue-querybuilder", | ||
"/@syncfusion/ej2-vue-ribbon", | ||
"/@syncfusion/ej2-vue-richtexteditor", | ||
"/@syncfusion/ej2-vue-spreadsheet" | ||
"/@syncfusion/ej2-vue-schedule", | ||
"/@syncfusion/ej2-vue-spreadsheet", | ||
"/@syncfusion/ej2-vue-treegrid" | ||
], | ||
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-vue-base/-/ej2-vue-base-23.2.4.tgz", | ||
"_shasum": "dae5e3ee748d1c246d26bbbb7c5d974e0821982e", | ||
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-vue-base/-/ej2-vue-base-23.2.5.tgz", | ||
"_shasum": "f6cd17b0fdbd4cc06810c3a567392c7ec0a651e4", | ||
"_spec": "@syncfusion/ej2-vue-base@*", | ||
@@ -50,3 +53,3 @@ "_where": "/jenkins/workspace/elease-automation_release_23.1.1/packages/included", | ||
"dependencies": { | ||
"@syncfusion/ej2-base": "~23.2.4" | ||
"@syncfusion/ej2-base": "~23.2.6" | ||
}, | ||
@@ -81,4 +84,4 @@ "deprecated": false, | ||
"typings": "index.d.ts", | ||
"version": "23.2.5", | ||
"version": "23.2.7", | ||
"sideEffects": true | ||
} |
@@ -116,2 +116,15 @@ var __assign = (this && this.__assign) || function () { | ||
returnEle = ele.childNodes; | ||
if (context.vueInstance) { | ||
var templateInstance = context.vueInstance.templateCollection; | ||
if (!templateInstance) { | ||
context.vueInstance.templateCollection = {}; | ||
templateInstance = context.vueInstance.templateCollection; | ||
} | ||
if (propName) { | ||
if (!templateInstance["" + propName]) { | ||
templateInstance["" + propName] = []; | ||
} | ||
templateInstance["" + propName].push(returnEle[0]); | ||
} | ||
} | ||
detach(ele); | ||
@@ -118,0 +131,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
469147
2829
Updated@syncfusion/ej2-base@~23.2.6