@syncfusion/ej2-vue-base 20.1.48 → 20.1.49

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,11 +2,19 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
- ## Common
5
+ ## 20.1.48 (2022-04-12)
6
6
 
7
- ### Bug Fixes
7
+ ### Common
8
+
9
+ - The "Header Rows in Schedule component not rendered in Vue" issue has been fixed.
10
+
11
+ ## 20.1.47 (2022-04-04)
12
+
13
+ ### Common
14
+
15
+ #### New Features
8
16
 
9
- - `358507` - The v-for support has been provided.
17
+ - `F140652`, `F138394`, `F148391`, `I309881`, `F167735`, `I228458` - Provided slot template support for the Vue components.
10
18
 
11
19
  ## 19.4.53 (2022-02-22)
12
20
 
package/README.md CHANGED
@@ -78,9 +78,7 @@ Check the license detail [here](https://github.com/syncfusion/ej2-vue-ui-compone
78
78
 
79
79
  ## Changelog
80
80
 
81
- Check the changelog [here](https://ej2.syncfusion.com/vue/documentation/release-notes/index?utm_source=npm&utm_campaign=ej2-vue-base)
81
+ Check the changelog [here](https://ej2.syncfusion.com/vue/documentation/release-notes?utm_source=npm&utm_campaign=ej2-vue-base)
82
82
 
83
- © Copyright 2022 Syncfusion, Inc. All Rights Reserved. The Syncfusion Essential Studio license and copyright applies to this distribution.
84
- The Syncfusion Essential Studio license and copyright applies to this distribution.
85
-
86
- Added code
83
+ © Copyright 2019 Syncfusion, Inc. All Rights Reserved.
84
+ The Syncfusion Essential Studio license and copyright applies to this distribution.
@@ -1,29 +1,2 @@
1
- /*!
2
- * filename: ej2-vue-base.umd.min.js
3
- * version : 20.1.48
4
- * Copyright Syncfusion Inc. 2001 - 2020. All rights reserved.
5
- * Use of this code is subject to the terms of our license.
6
- * A copy of the current license can be obtained at any time by e-mailing
7
- * licensing@syncfusion.com. Any infringement will be prosecuted under
8
- * applicable laws.
9
- */
10
- /*!
11
- * filename: ej2-vue-base.umd.min.js
12
- * version : 19.2.55
13
- * Copyright Syncfusion Inc. 2001 - 2020. All rights reserved.
14
- * Use of this code is subject to the terms of our license.
15
- * A copy of the current license can be obtained at any time by e-mailing
16
- * licensing@syncfusion.com. Any infringement will be prosecuted under
17
- * applicable laws.
18
- */
19
- /*!
20
- * filename: ej2-vue-base.umd.min.js
21
- * version : 19.1.63
22
- * Copyright Syncfusion Inc. 2001 - 2020. All rights reserved.
23
- * Use of this code is subject to the terms of our license.
24
- * A copy of the current license can be obtained at any time by e-mailing
25
- * licensing@syncfusion.com. Any infringement will be prosecuted under
26
- * applicable laws.
27
- */
28
- !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})});
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@syncfusion/ej2-base"),require("vue-class-component"),require("vue")):"function"==typeof define&&define.amd?define(["exports","@syncfusion/ej2-base","vue-class-component","vue"],t):t(e.ej={},e.ej2Base,e.Vue3,e.Vue$1)}(this,function(e,t,n,r){"use strict";function o(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 s(e,t){void 0===t&&(t={}),t.name=t.name||e._componentTag||e.name;var n=e.prototype;if(t.props)for(var 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()}},o=0,s=t.props;o<s.length;o++){r(s[o])}Object.getOwnPropertyNames(n).forEach(function(e){if("constructor"!==e)if(m.indexOf(e)>-1)t[e]=n[e];else{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(g.prototype).forEach(function(e){m.indexOf(e)>-1&&(t[e]=n[e])}),(t.mixins||(t.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 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}(this,e)}});var i=e.__decorators__;i&&(i.forEach(Function(t)),delete e.__decorators__);var a=Object.getPrototypeOf(e.prototype);return(a instanceof l?a.constructor:l).extend(t)}function i(e,n){var r=this;return function(o,s,i,p,u){var d;if(s){var v=t.getUniqueID("templateParentDiv"),g=t.getUniqueID("templateDiv"),m=t.createElement("div",{id:v,innerHTML:'<div id="'+g+'"></div>'});if(document.body.appendChild(m),f&&"string"==typeof e){var O=function(e,t,n){if(!(e||n&&n.vueInstance))return;return c(n&&n.vueInstance?n.vueInstance.$slots:e.$slots,t)}(s.vueInstance,e,u);if(!O)return t.detach(m),y(e,n)(o);h.createApp({render:function(){return O[e]({data:o})}}).mount("#"+g),d=m.childNodes,t.detach(m)}else if(f){var j=M=e.call(r,{}),I=t.getValue("template.propsData",M),b={data:{data:t.extend(M.data||{},o)},parent:s.vueInstance};j.template||(j.template=j[Object.keys(j)[0]]);var x=void 0;if(j.template.extends)x=j.template.extends._context.components.template;else if(!(x=j.template._context.components[e.name])){var C=Object.keys(j.template._context.components)[0];x=j.template._context.components[C]}var $;if(I)$=Object.assign(x.data(),I);else if($=Object.assign(x.data(),b.data),x.components)for(var D=function(e){var t=x.components[e];if(t&&t.data){var n=Object.assign(t.data(),b.data);t.data=function(){return n}}},V=0,_=Object.keys(x.components)||[];V<_.length;V++){D(_[V])}x.data=function(){return $},h.createApp(x).mount("#"+g),d=m.childNodes,t.detach(m)}else if("string"==typeof e){var P=function(e,t,n){if(!(e||n&&n.vueInstance))return;return a(n&&n.vueInstance?n.vueInstance:e,t)}(s.vueInstance,e,u);if(!P)return t.detach(m),y(e,n)(o);new l({render:function(){return P[e]({data:o})}}).$mount("#"+g),d=m.childNodes,t.detach(m)}else{var M,w=(M=e.call(r,{})).template;I=t.getValue("template.propsData",M),b={data:{data:t.extend(M.data||{},o)},parent:s.vueInstance};I&&(w=M.template.extends,b.propsData=I),"function"!=typeof w&&(w=l.extend(w));if(new w(b).$mount("#"+g),d=m.childNodes,s.vueInstance){var N=s.vueInstance.templateCollection;N||(s.vueInstance.templateCollection={},N=s.vueInstance.templateCollection),i&&(N[i]||(N[i]=[]),N[i].push(d[0]))}t.detach(m)}}return d||[]}}function a(e,t){if(e){var n=e.$slots,r=e.$scopedSlots,o=e.scopedSlots,s=e.children;if(r&&r[t])return r;if(n&&n.default)for(var i=n.default,c=0;c<i.length;c++){if(l=a(p(i[c]),t))return l}else{if(o&&o[t])return o;if(s)for(c=0;c<s.length;c++){var l;if(l=a(p(s[c]),t))return l}}}}function p(e){var t=e.componentOptions&&e.componentOptions.children?e.componentOptions:e.data;return e.componentInstance?e.componentInstance:t}function c(e,t){if(e&&e[t])return e;if(e&&e.default)for(var n=e.default(),r=0;r<n.length;r++){var o=c(n[r].children,t);if(o)return o}}var l=r.default,u=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)}}(),d=o(r),h=d,f=h.h,v=!f,g=function(e){function n(){var t=e.call(this,arguments)||this;return t.hasInjectedModules=!1,t.hasChildDirective=!1,t.childDirObjects="",t}return u(n,e),n.prototype.created=function(){var e=this;if(this.propKeys){for(var n=function(t){r.ej2Instances.addEventListener(t,function(n){e.$emit(t,n)})},r=this,o=0,s=this.propKeys;o<s.length;o++){n(s[o])}var i=t.getValue("$root.$options.provide",this),a=t.getValue("$parent.$options.provide",this);if(this.hasInjectedModules&&!v){var p=[];i?p=i[this.ej2Instances.getModuleName()]||[]:a&&(p=this.getInjectedServices()||[]);for(var c=0,l=this.ej2Instances.getInjectedModules()||[];c<l.length;c++){var u=l[c];-1===p.indexOf(u)&&p.push(u)}this.ej2Instances.injectedModules=p}}},n.prototype.mounted=function(){var e=this.$el?this.$el.querySelectorAll("div.e-directive"):null;if(f&&e)for(var t=0;t<e.length;t++)e[t].parentElement&&e[t].parentElement.removeChild(e[t]);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.ej2Instances.appendTo(this.$el)},n.prototype.getInjectedServices=function(){var e,n=[];if(this.$vnode?e=t.getValue("$vnode.context.$options.provide",this):this.$parent&&(e=t.getValue("$parent.$options.provide",this)),e){var r=e;"function"==typeof e&&(this.$vnode?r=this.$vnode.context.$options.provide():this.$parent&&(r=this.$parent.$options.provide())),n=r[this.ej2Instances.getModuleName()]||[]}return n},n.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))}},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 o=r[n];(!t.isNullOrUndefined(this[o])&&!this.isVue3||this[0]&&!t.isNullOrUndefined(this[0][0])&&!t.isNullOrUndefined(this[0][0][o]))&&(e[o]=this.isVue3?this[0][0][o]:this[o])}if(this.hasChildDirective&&this.fetchChildPropValues(e),this.hasInjectedModules){for(var s=this.getInjectedServices()||[],i=0,a=this.ej2Instances.getInjectedModules()||[];i<a.length;i++){var p=a[i];-1===s.indexOf(p)&&s.push(p)}this.ej2Instances.injectedModules=s}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&&(n=this.$.slots.default()),!n)return;for(var r=0;r<n.length;r++)if(n[r].type.methods){var o=n[r].type.methods.getTag().replace("e-",""),s=this.resolveArrayDirectives(n[r].children,o),i=o.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]=s[o]}}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 u=l[c];e[u]=t[u]}},n.prototype.resolveArrayDirectives=function(e,t){var n,r=[];r=e.default?e.default():e;var o={};o[t]=[];for(var s=function(e){var r={},s=e.type.methods?e.type.methods.getTag():t;if(e.children){var a=void 0;if((n=i.resolveComplexDirs(e.children,i.tagMapper["e-"+t],s)).length)r=n;else for(var p=0;p<Object.keys(n).length;p++)a=Object.keys(n)[p],r[a]=n[a]}e.props&&Object.keys(e.props).forEach(function(t){r[t]=e.props[t]}),/[s]\b/.test(s)&&n&&(!/[s]\b/.test(t)||n.length)?o[t]=r:o[t].push(r)},i=this,a=0,p=r;a<p.length;a++){s(p[a])}return o},n.prototype.resolveComplexDirs=function(e,t,n){for(var r,o=[],s={},i=function(e){var i=void 0;t[n]&&(i=(i=Object.keys(t[n]).find(function(r){return t[n][r]===e.type.methods.getTag().replace(/[s]\b/,"")}))?i.replace("e-",""):e.type.methods.getTag().replace("e-",""),"diagram"==a.ej2Instances.getModuleName().toLowerCase()&&-1!=i.indexOf("annotations")&&(i="annotations")),e.children&&(r=a.resolveComplexInnerDirs(e.children,t[n],e.type.methods.getTag()),s[i]||(s[i]=[]),r.length>1?s[i]=r:s[i].push(r)),o.length>1?(s=0!=Object.keys(s).length||s.length?s:[],e.props&&s.push(e.props)):s=e.props?Object.assign(s,e.props):s},a=this,p=0,c=o=e.default?e.default():e;p<c.length;p++){i(c[p])}return s},n.prototype.resolveComplexInnerDirs=function(e,t,n){for(var r,o=[],s=(o=e.default?e.default():e).length>1?[]:{},i=0,a=o;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)||o.length>1?/[s]\b/.test(c)?(s[c]=s[c]?s[c]:[],r.length?s[c]=r:s[c].push(r)):r&&s.push(r):s=r||s),o.length>1&&p.props&&s.length>=0?s.push(p.props):s=p.props?Object.assign(s,p.props):s}return s},n.prototype.resolveMultilevelComplexInnerDirs=function(e,t,n){for(var r,o=[],s=(o=e.default?e.default():e).length>1?[]:{},i=0,a=o;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())),/[s]\b/.test(c)?(s[c]=s[c]?s[c]:[],r.length?s[c]=r:s[c].push(r),p.props&&s[c].push(p.props)):(s=r,s=p.props?Object.assign(s,p.props):s)}return s},n.prototype.getDirectiveValues=function(e,t,n){var r=Object.keys(t),o={};if(e)for(var s=0,i=e;s<i.length;s++){var a=i[s];if(a.componentOptions&&a.componentOptions.children&&a.componentOptions.tag){var p=a.componentOptions.tag;if(-1!==r.indexOf(p)){var c=n[p]?n[p]:p;o[c.replace("e-","")]=[];for(var l=0,u=a.componentOptions.children;l<u.length;l++){var d=u[l],h=this.getVNodeValue(d,t[p],n);0!==Object.keys(h).length&&o[c.replace("e-","")].push(h)}}}}return o},n.prototype.getMultiLevelDirValue=function(e,t,n){for(var r={},o=0,s=e;o<s.length;o++){var i=s[o];if(i.componentOptions){var a=i.componentOptions.tag,p=n[a]?n[a]:a;if(r[p.replace("e-","")]=[],i.componentOptions&&i.componentOptions.children)for(var c=0,l=i.componentOptions.children;c<l.length;c++){var u=l[c],d=this.getVNodeValue(u,t[a],n);0!==Object.keys(d).length&&r[p.replace("e-","")].push(d)}}}return r},n.prototype.getVNodeValue=function(e,n,r){var o={};if(e.componentOptions){var s=e.componentOptions.tag;"string"==typeof n&&s===n&&e.data?o=e.data.attrs?this.getCamelCaseProps(e.data.attrs):this.getCamelCaseProps(e.data):"object"==typeof n&&(e.componentOptions.children&&-1!==Object.keys(n).indexOf(s)&&(o=this.getMultiLevelDirValue(e.componentOptions.children,n[s],r)),e.data&&e.data.attrs&&(o=t.extend(o,this.getCamelCaseProps(e.data.attrs))))}return o},n.prototype.getCamelCaseProps=function(e){for(var t={},n=0,r=Object.keys(e);n<r.length;n++){var o=r[n];t[o.replace(/-[a-z]/g,function(e){return e[1].toUpperCase()})]=e[o]}return t},n.prototype.dataBind=function(){this.ej2Instances.dataBind()},n.prototype.setProperties=function(e,t){return this.ej2Instances.setProperties(e,t)},n}(!v||parseInt(h.version)<3?n.Vue:l),m=["data","beforeCreate","created","beforeMount","mounted","beforeDestroy","destroyed","beforeUpdate","updated","activated","deactivated","render","errorCaptured"],y=t.getTemplateEngine();t.setTemplateEngine({compile:i}),e.aVue=d,e._interopRequireWildcard=o,e.allVue=h,e.gh=f,e.isExecute=v,e.ComponentBase=g,e.$internalHooks=m,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,r=e.props;n<r.length;n++)t(r[n]);return[e.newprops,e.watch]},e.EJComponentDecorator=function(e,t){if(t)return function(t){return s(t,e)}},e.EJcomponentFactory=s,e.compile=i,Object.defineProperty(e,"__esModule",{value:!0})});
29
2
  //# sourceMappingURL=ej2-vue-base.umd.min.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ej2-vue-base.umd.min.js","sources":["../src/component-decorator.js","../src/template.js","../src/component-base.js"],"sourcesContent":["/**\n * Vue Component Base\n */\nimport Vue from 'vue';\nimport { ComponentBase } from './component-base';\nexport var $internalHooks = [\n 'data',\n 'beforeCreate',\n 'created',\n 'beforeMount',\n 'mounted',\n 'beforeDestroy',\n 'destroyed',\n 'beforeUpdate',\n 'updated',\n 'activated',\n 'deactivated',\n 'render',\n 'errorCaptured' // 2.5\n];\nexport function EJComponentDecorator(options) {\n return function (Component) {\n return EJcomponentFactory(Component, options);\n };\n}\nexport function EJcomponentFactory(Component, options) {\n if (options === void 0) { options = {}; }\n options.name = options.name || Component._componentTag || Component.name;\n // prototype props.\n var proto = Component.prototype;\n if (options.props) {\n var _loop_1 = function (prop) {\n (options.props || (options.props = {}))[prop] = {};\n (options.watch || (options.watch = {}))[prop] = function (newVal) {\n this.ej2Instances[prop] = newVal;\n if (this.dataBind && (options.name !== 'DateRangePickerComponent')) {\n this.dataBind();\n }\n };\n };\n for (var _i = 0, _a = options.props; _i < _a.length; _i++) {\n var prop = _a[_i];\n _loop_1(prop);\n }\n }\n Object.getOwnPropertyNames(proto).forEach(function (key) {\n // hooks\n if (key === 'constructor') {\n return;\n }\n if ($internalHooks.indexOf(key) > -1) {\n options[key] = proto[key];\n return;\n }\n var descriptor = Object.getOwnPropertyDescriptor(proto, key);\n if (typeof descriptor.value === 'function') {\n // methods\n (options.methods || (options.methods = {}))[key] = descriptor.value;\n }\n else if (descriptor.get || descriptor.set) {\n // computed properties\n (options.computed || (options.computed = {}))[key] = {\n get: descriptor.get,\n set: descriptor.set\n };\n }\n });\n Object.getOwnPropertyNames(ComponentBase.prototype).forEach(function (key) {\n if ($internalHooks.indexOf(key) > -1) {\n options[key] = proto[key];\n return;\n }\n });\n (options.mixins || (options.mixins = [])).push({\n data: function () {\n return collectDataFromConstructor(this, Component);\n }\n });\n // decorate options\n var decorators = Component.__decorators__;\n if (decorators) {\n decorators.forEach(Function(options));\n delete Component.__decorators__;\n }\n // find super\n var superProto = Object.getPrototypeOf(Component.prototype);\n var Super = superProto instanceof Vue\n ? superProto.constructor\n : Vue;\n var Extended = Super.extend(options);\n return Extended;\n}\nfunction collectDataFromConstructor(vm, Component) {\n Component.prototype._init = function () {\n var _this = this;\n var keys = Object.getOwnPropertyNames(vm);\n if (vm.$options.props) {\n for (var key in vm.$options.props) {\n if (!vm.hasOwnProperty(key)) {\n keys.push(key);\n }\n }\n }\n keys.forEach(function (key) {\n if (key.charAt(0) !== '_') {\n Object.defineProperty(_this, key, {\n get: function () { return vm[key]; },\n set: function (value) { return vm[key] = value; }\n });\n }\n });\n };\n var data = new Component();\n var plainData = {};\n Object.keys(data).forEach(function (key) {\n if (data[key] !== undefined) {\n plainData[key] = data[key];\n }\n });\n return plainData;\n}\n","import Vue from 'vue';\nimport { setTemplateEngine, getTemplateEngine, getUniqueID, createElement, detach, extend, getValue } from \"@syncfusion/ej2-base\";\n// tslint:disable:no-any\nvar stringCompiler = getTemplateEngine();\nexport function compile(templateElement, helper) {\n var that = this;\n if (typeof templateElement === 'string') {\n return stringCompiler(templateElement, helper);\n }\n else {\n return function (data, context) {\n var pid = getUniqueID('templateParentDiv');\n var id = getUniqueID('templateDiv');\n var ele = createElement('div', { id: pid, innerHTML: '<div id=\"' + id + '\"></div>' });\n document.body.appendChild(ele);\n var tempObj = templateElement.call(that, {});\n var returnEle;\n if (context) {\n var templateFunction = tempObj.template;\n var propsData = getValue('template.propsData', tempObj);\n var dataObj = { 'data': { data: extend(tempObj.data || {}, data) }, parent: context.vueInstance };\n if (propsData) {\n templateFunction = tempObj.template.extends;\n dataObj.propsData = propsData;\n }\n if (typeof templateFunction !== 'function') {\n templateFunction = Vue.extend(templateFunction);\n }\n var templateVue = new templateFunction(dataObj);\n //let templateVue: any = new Vue(tempObj.template);\n //templateVue.$data.data = extend(tempObj.data, data);\n templateVue.$mount('#' + id);\n returnEle = ele.childNodes;\n detach(ele);\n }\n return returnEle || [];\n };\n }\n}\nsetTemplateEngine({ compile: compile });\n","var __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\n/**\n * Vue Component Base\n */\nimport Vue from 'vue';\nimport { isNullOrUndefined, extend, getValue } from '@syncfusion/ej2-base';\nvar ComponentBase = /** @class */ (function (_super) {\n __extends(ComponentBase, _super);\n function ComponentBase() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n _this.hasInjectedModules = false;\n _this.hasChildDirective = false;\n _this.childDirObjects = '';\n return _this;\n }\n ComponentBase.prototype.created = function () {\n var _this = this;\n var _loop_1 = function (prop) {\n this_1.ej2Instances.addEventListener(prop, function (args) {\n _this.$emit(prop, args);\n });\n };\n var this_1 = this;\n for (var _i = 0, _a = this.propKeys; _i < _a.length; _i++) {\n var prop = _a[_i];\n _loop_1(prop);\n }\n };\n ComponentBase.prototype.mounted = function () {\n this.ej2Instances.isVue = true;\n this.ej2Instances.vueInstance = this;\n this.ej2Instances.appendTo(this.$el);\n };\n ComponentBase.prototype.getInjectedServices = function () {\n var ret = [];\n var provide = getValue('$vnode.context.$options.provide', this);\n if (provide) {\n // tslint:disable:no-any\n var injectables = provide;\n if (typeof provide === 'function') {\n // tslint:disable:no-any\n injectables = this.$vnode.context.$options.provide();\n }\n ret = injectables[this.ej2Instances.getModuleName()] || [];\n }\n return ret;\n };\n ComponentBase.prototype.updated = function () {\n if (this.hasChildDirective) {\n var childKey = {};\n this.fetchChildPropValues(childKey);\n var curChildDir = JSON.stringify(childKey);\n if (this.childDirObjects !== curChildDir) {\n this.childDirObjects = curChildDir;\n this.assignValueToWrapper(childKey, false);\n }\n }\n };\n ComponentBase.prototype.beforeDestroy = function () {\n var tempBeforeDestroyThis = this;\n tempBeforeDestroyThis.ej2Instances.destroy();\n tempBeforeDestroyThis.$el.style.visibility = 'hidden';\n tempBeforeDestroyThis = null;\n };\n ComponentBase.prototype.bindProperties = function () {\n var options = {};\n for (var _i = 0, _a = this.propKeys; _i < _a.length; _i++) {\n var prop = _a[_i];\n if (!isNullOrUndefined(this[prop])) {\n options[prop] = this[prop];\n }\n }\n if (this.hasChildDirective) {\n this.fetchChildPropValues(options);\n }\n if (this.hasInjectedModules) {\n var prevModule = this.getInjectedServices() || [];\n var curModule = this.ej2Instances.getInjectedModules() || [];\n for (var _b = 0, curModule_1 = curModule; _b < curModule_1.length; _b++) {\n var mod = curModule_1[_b];\n if (prevModule.indexOf(mod) === -1) {\n prevModule.push(mod);\n }\n }\n this.ej2Instances.injectedModules = prevModule;\n }\n this.assignValueToWrapper(options);\n };\n ComponentBase.prototype.assignValueToWrapper = function (option, silent) {\n this.ej2Instances.setProperties(extend({}, {}, option, true), isNullOrUndefined(silent) ? true : silent);\n };\n ComponentBase.prototype.fetchChildPropValues = function (childOption) {\n var dirProps = this.getDirectiveValues(this.$slots.default, this.tagMapper || {}, this.tagNameMapper || {});\n if (!this.childDirObjects) {\n this.childDirObjects = JSON.stringify(dirProps);\n }\n for (var _i = 0, _a = Object.keys(dirProps); _i < _a.length; _i++) {\n var dirProp = _a[_i];\n childOption[dirProp] = dirProps[dirProp];\n }\n };\n ComponentBase.prototype.getDirectiveValues = function (tagDirectives, tagMapper, tagNameMapper) {\n var keyTags = Object.keys(tagMapper);\n var dir = {};\n if (tagDirectives) {\n for (var _i = 0, tagDirectives_1 = tagDirectives; _i < tagDirectives_1.length; _i++) {\n var tagDirective = tagDirectives_1[_i];\n if (tagDirective.componentOptions && tagDirective.componentOptions.children && tagDirective.componentOptions.tag) {\n var dirTag = tagDirective.componentOptions.tag;\n if (keyTags.indexOf(dirTag) !== -1) {\n var tagName = tagNameMapper[dirTag] ? tagNameMapper[dirTag] : dirTag;\n dir[tagName.replace('e-', '')] = [];\n for (var _a = 0, _b = tagDirective.componentOptions.children; _a < _b.length; _a++) {\n var tagDirChild = _b[_a];\n var retObj = this.getVNodeValue(tagDirChild, tagMapper[dirTag], tagNameMapper);\n if (Object.keys(retObj).length !== 0) {\n dir[tagName.replace('e-', '')].push(retObj);\n }\n }\n }\n }\n }\n }\n return dir;\n };\n ComponentBase.prototype.getMultiLevelDirValue = function (tagDirectories, tagKey, tagNameMapper) {\n var mulObj = {};\n for (var _i = 0, tagDirectories_1 = tagDirectories; _i < tagDirectories_1.length; _i++) {\n var tagDir = tagDirectories_1[_i];\n if (tagDir.componentOptions) {\n var key = tagDir.componentOptions.tag;\n var tagName = tagNameMapper[key] ? tagNameMapper[key] : key;\n mulObj[tagName.replace('e-', '')] = [];\n if (tagDir.componentOptions && tagDir.componentOptions.children) {\n for (var _a = 0, _b = tagDir.componentOptions.children; _a < _b.length; _a++) {\n var tagDirChild = _b[_a];\n var mulLevObj = this.getVNodeValue(tagDirChild, tagKey[key], tagNameMapper);\n if (Object.keys(mulLevObj).length !== 0) {\n mulObj[tagName.replace('e-', '')].push(mulLevObj);\n }\n }\n }\n }\n }\n return mulObj;\n };\n ComponentBase.prototype.getVNodeValue = function (tagDirective, tagKey, tagNameMapper) {\n var ret = {};\n if (tagDirective.componentOptions) {\n var dirTag = tagDirective.componentOptions.tag;\n if (typeof tagKey === 'string' && dirTag === tagKey && tagDirective.data) {\n ret = tagDirective.data.attrs ? this.getCamelCaseProps(tagDirective.data.attrs) : this.getCamelCaseProps(tagDirective.data);\n }\n else if (typeof tagKey === 'object') {\n if (tagDirective.componentOptions.children && (Object.keys(tagKey).indexOf(dirTag) !== -1)) {\n ret = this.getMultiLevelDirValue(tagDirective.componentOptions.children, tagKey[dirTag], tagNameMapper);\n }\n if (tagDirective.data && tagDirective.data.attrs) {\n ret = extend(ret, this.getCamelCaseProps(tagDirective.data.attrs));\n }\n }\n }\n return ret;\n };\n /**\n * convert kebab case directive props to camel case\n */\n ComponentBase.prototype.getCamelCaseProps = function (props) {\n var retProps = {};\n for (var _i = 0, _a = Object.keys(props); _i < _a.length; _i++) {\n var prop = _a[_i];\n retProps[prop.replace(/-[a-z]/g, function (e) { return e[1].toUpperCase(); })] = props[prop];\n }\n return retProps;\n };\n ComponentBase.prototype.dataBind = function () {\n this.ej2Instances.dataBind();\n };\n ComponentBase.prototype.setProperties = function (arg, muteOnChange) {\n return this.ej2Instances.setProperties(arg, muteOnChange);\n };\n return ComponentBase;\n}(Vue));\nexport { ComponentBase };\n"],"names":["EJcomponentFactory","Component","options","name","_componentTag","proto","prototype","props","_loop_1","prop","watch","newVal","this","ej2Instances","dataBind","_i","_a","length","Object","getOwnPropertyNames","forEach","key","$internalHooks","indexOf","descriptor","getOwnPropertyDescriptor","value","methods","get","set","computed","ComponentBase","mixins","push","data","vm","_init","_this","keys","$options","hasOwnProperty","charAt","defineProperty","plainData","undefined","collectDataFromConstructor","decorators","__decorators__","Function","superProto","getPrototypeOf","Vue","constructor","extend","compile","templateElement","helper","that","stringCompiler","context","pid","getUniqueID","id","ele","createElement","innerHTML","document","body","appendChild","returnEle","tempObj","call","templateFunction","template","propsData","getValue","dataObj","parent","vueInstance","extends","$mount","childNodes","detach","__extends","extendStatics","d","b","setPrototypeOf","__proto__","Array","p","__","create","_super","apply","arguments","hasInjectedModules","hasChildDirective","childDirObjects","created","this_1","addEventListener","args","$emit","propKeys","mounted","isVue","appendTo","$el","getInjectedServices","ret","provide","injectables","$vnode","getModuleName","updated","childKey","fetchChildPropValues","curChildDir","JSON","stringify","assignValueToWrapper","beforeDestroy","tempBeforeDestroyThis","destroy","style","visibility","bindProperties","isNullOrUndefined","prevModule","_b","curModule_1","getInjectedModules","mod","injectedModules","option","silent","setProperties","childOption","dirProps","getDirectiveValues","$slots","default","tagMapper","tagNameMapper","dirProp","tagDirectives","keyTags","dir","tagDirectives_1","tagDirective","componentOptions","children","tag","dirTag","tagName","replace","tagDirChild","retObj","getVNodeValue","getMultiLevelDirValue","tagDirectories","tagKey","mulObj","tagDirectories_1","tagDir","mulLevObj","attrs","getCamelCaseProps","retProps","e","toUpperCase","arg","muteOnChange","getTemplateEngine","setTemplateEngine"],"mappings":"qRAyBA,SAAgBA,EAAmBC,EAAWC,QAC1B,IAAZA,IAAsBA,MAC1BA,EAAQC,KAAOD,EAAQC,MAAQF,EAAUG,eAAiBH,EAAUE,KAEpE,IAAIE,EAAQJ,EAAUK,UACtB,GAAIJ,EAAQK,MAUR,IAAK,IATDC,EAAU,SAAUC,IACnBP,EAAQK,QAAUL,EAAQK,WAAaE,OACvCP,EAAQQ,QAAUR,EAAQQ,WAAaD,GAAQ,SAAUE,GACtDC,KAAKC,aAAaJ,GAAQE,EACtBC,KAAKE,UAA8B,6BAAjBZ,EAAQC,MAC1BS,KAAKE,aAIRC,EAAK,EAAGC,EAAKd,EAAQK,MAAOQ,EAAKC,EAAGC,OAAQF,IAAM,CAEvDP,EADWQ,EAAGD,IAItBG,OAAOC,oBAAoBd,GAAOe,QAAQ,SAAUC,GAEhD,GAAY,gBAARA,EAGJ,GAAIC,EAAeC,QAAQF,IAAQ,EAC/BnB,EAAQmB,GAAOhB,EAAMgB,OADzB,CAIA,IAAIG,EAAaN,OAAOO,yBAAyBpB,EAAOgB,GACxB,mBAArBG,EAAWE,OAEjBxB,EAAQyB,UAAYzB,EAAQyB,aAAeN,GAAOG,EAAWE,OAEzDF,EAAWI,KAAOJ,EAAWK,QAEjC3B,EAAQ4B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AAkBlB,EAAapH,MAE/F,iBAAXgI,IACRZ,EAAaC,iBAAiBC,WAAsD,IAAzCtI,OAAOoB,KAAK4H,GAAQ3I,QAAQmI,KACvE5C,EAAMlG,KAAKoJ,sBAAsBV,EAAaC,iBAAiBC,SAAUU,EAAOR,GAASV,IAEzFM,EAAapH,MAAQoH,EAAapH,KAAKqI,QACvCzD,EAAMzD,SAAOyD,EAAKlG,KAAK4J,kBAAkBlB,EAAapH,KAAKqI,UAIvE,OAAOzD,GAKX/E,EAAczB,UAAUkK,kBAAoB,SAAUjK,GAElD,IAAK,IADDkK,KACK1J,EAAK,EAAGC,EAAKE,OAAOoB,KAAK/B,GAAQQ,EAAKC,EAAGC,OAAQF,IAAM,CAC5D,IAAIN,EAAOO,EAAGD,GACd0J,EAAShK,EAAKmJ,QAAQ,UAAW,SAAUc,GAAK,OAAOA,EAAE,GAAGC,iBAAqBpK,EAAME,GAE3F,OAAOgK,GAEX1I,EAAczB,UAAUQ,SAAW,WAC/BF,KAAKC,aAAaC,YAEtBiB,EAAczB,UAAUmI,cAAgB,SAAUmC,EAAKC,GACnD,OAAOjK,KAAKC,aAAa4H,cAAcmC,EAAKC,IAEzC9I,GACToB,GF7LS7B,GACP,OACA,eACA,UACA,cACA,UACA,gBACA,YACA,eACA,UACA,YACA,cACA,SACA,iBCfAoC,EAAiBoH,sBAoCrBC,qBAAoBzH,QAASA,gEDnB7B,SAAqCpD,GACjC,OAAO,SAAUD,GACb,OAAOD,EAAmBC,EAAWC"}
1
+ {"version":3,"file":"ej2-vue-base.umd.min.js","sources":["../src/component-base.js","../src/component-decorator.js","../src/template.js"],"sourcesContent":["/**\n * Vue Component Base\n */\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nimport { isNullOrUndefined, extend, getValue } from '@syncfusion/ej2-base';\nimport * as Vue3 from 'vue-class-component';\nimport * as Vue2 from 'vue';\nimport Vue from 'vue';\nexport var aVue = _interopRequireWildcard(Vue2);\nexport function _interopRequireWildcard(obj) {\n if (obj && obj.__esModule) {\n return obj;\n }\n else {\n var newObj = {};\n if (obj != null) {\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key))\n newObj[key] = obj[key];\n }\n }\n newObj.default = obj;\n return newObj;\n }\n}\nexport var allVue = aVue;\nexport var gh = allVue.h;\nexport var isExecute = gh ? false : true;\nvar vueImport;\nif (!isExecute || parseInt(allVue.version) < 3) {\n vueImport = Vue3.Vue;\n}\nelse {\n vueImport = Vue;\n}\nvar ComponentBase = /** @class */ (function (_super) {\n __extends(ComponentBase, _super);\n function ComponentBase() {\n var _this = _super.call(this, arguments) || this;\n _this.hasInjectedModules = false;\n _this.hasChildDirective = false;\n _this.childDirObjects = '';\n return _this;\n }\n ComponentBase.prototype.created = function () {\n var _this = this;\n if (!this.propKeys) {\n return;\n }\n var _loop_1 = function (prop) {\n this_1.ej2Instances.addEventListener(prop, function (args) {\n _this.$emit(prop, args);\n });\n };\n var this_1 = this;\n for (var _i = 0, _a = this.propKeys; _i < _a.length; _i++) {\n var prop = _a[_i];\n _loop_1(prop);\n }\n var injectables = getValue('$root.$options.provide', this);\n var vueInjectables = getValue('$parent.$options.provide', this);\n if (this.hasInjectedModules && !isExecute) {\n var prevModule = [];\n if (injectables) {\n prevModule = injectables[this.ej2Instances.getModuleName()] || [];\n }\n else if (vueInjectables) {\n prevModule = this.getInjectedServices() || [];\n }\n var curModule = this.ej2Instances.getInjectedModules() || [];\n for (var _b = 0, curModule_1 = curModule; _b < curModule_1.length; _b++) {\n var mod = curModule_1[_b];\n if (prevModule.indexOf(mod) === -1) {\n prevModule.push(mod);\n }\n }\n this.ej2Instances.injectedModules = prevModule;\n }\n };\n ComponentBase.prototype.mounted = function () {\n var cusEle = this.$el ? this.$el.querySelectorAll(\"div.e-directive\") : null;\n if (gh && cusEle) {\n for (var i = 0; i < cusEle.length; i++) {\n cusEle[i].parentElement && cusEle[i].parentElement.removeChild(cusEle[i]);\n }\n }\n this.ej2Instances.isVue = true;\n this.ej2Instances.isVue3 = this.isVue3;\n this.ej2Instances.vueInstance = this;\n if (this.isVue3) {\n this.ej2Instances.ej2Instances = this.ej2Instances;\n this.ej2Instances.referModels = this.models;\n }\n this.ej2Instances.appendTo(this.$el);\n };\n ComponentBase.prototype.getInjectedServices = function () {\n var ret = [];\n var provide;\n if (this.$vnode) {\n provide = getValue('$vnode.context.$options.provide', this);\n }\n else if (this.$parent) {\n provide = getValue('$parent.$options.provide', this);\n }\n if (provide) {\n // tslint:disable:no-any\n var injectables = provide;\n if (typeof provide === 'function') {\n // tslint:disable:no-any\n if (this.$vnode) {\n injectables = this.$vnode.context.$options.provide();\n }\n else if (this.$parent) {\n injectables = this.$parent.$options.provide();\n }\n }\n ret = injectables[this.ej2Instances.getModuleName()] || [];\n }\n return ret;\n };\n ComponentBase.prototype.updated = function () {\n if (this.hasChildDirective) {\n var childKey = {};\n this.fetchChildPropValues(childKey);\n var curChildDir = JSON.stringify(childKey);\n if (this.childDirObjects !== curChildDir) {\n this.childDirObjects = curChildDir;\n this.assignValueToWrapper(childKey, false);\n }\n }\n };\n ComponentBase.prototype.beforeDestroy = function () {\n var tempBeforeDestroyThis = this;\n tempBeforeDestroyThis.ej2Instances.destroy();\n tempBeforeDestroyThis.$el.style.visibility = 'hidden';\n tempBeforeDestroyThis = null;\n };\n ComponentBase.prototype.bindProperties = function () {\n var options = {};\n for (var _i = 0, _a = this.propKeys; _i < _a.length; _i++) {\n var prop = _a[_i];\n if ((!isNullOrUndefined(this[prop]) && !this.isVue3) || (this[0] && !isNullOrUndefined(this[0][0]) && !isNullOrUndefined(this[0][0][prop]))) {\n options[prop] = !this.isVue3 ? this[prop] : this[0][0][prop];\n }\n }\n if (this.hasChildDirective) {\n this.fetchChildPropValues(options);\n }\n if (this.hasInjectedModules) {\n var prevModule = this.getInjectedServices() || [];\n var curModule = this.ej2Instances.getInjectedModules() || [];\n for (var _b = 0, curModule_2 = curModule; _b < curModule_2.length; _b++) {\n var mod = curModule_2[_b];\n if (prevModule.indexOf(mod) === -1) {\n prevModule.push(mod);\n }\n }\n this.ej2Instances.injectedModules = prevModule;\n }\n this.assignValueToWrapper(options);\n };\n ComponentBase.prototype.assignValueToWrapper = function (option, silent) {\n this.ej2Instances.setProperties(extend({}, {}, option, true), isNullOrUndefined(silent) ? true : silent);\n };\n ComponentBase.prototype.fetchChildPropValues = function (childOption) {\n var dirProps = {};\n if (!this.isVue3) {\n dirProps = this.getDirectiveValues(this.$slots.default, this.tagMapper || {}, this.tagNameMapper || {});\n }\n else {\n var propRef = void 0;\n if (this[0] && this[0][1].slots.default) {\n propRef = this[0][1].slots.default();\n }\n else if (this && this.$) {\n if (this.$.slots) {\n propRef = this.$.slots.default();\n }\n }\n if (propRef) {\n for (var i = 0; i < propRef.length; i++) {\n if (propRef[i].type.methods) {\n var key = propRef[i].type.methods.getTag().replace(\"e-\", \"\");\n var ref = this.resolveArrayDirectives(propRef[i].children, key);\n var splitKeys = key.split('-');\n var controlName = this.ej2Instances.getModuleName().toLowerCase();\n var keyRef = (splitKeys.length > 1 && controlName.indexOf(splitKeys[0]) > -1) ? splitKeys[1] : splitKeys[0];\n keyRef = keyRef.replace(controlName, '');\n if (controlName == \"splitter\" && keyRef == \"panes\") {\n keyRef = \"paneSettings\";\n }\n else if (controlName == \"bulletchart\" && keyRef == \"range\") {\n keyRef = \"ranges\";\n }\n else if (controlName == \"schedule\" && keyRef == \"header\") {\n keyRef = \"headerRows\";\n }\n dirProps[keyRef] = ref[key];\n }\n }\n }\n else {\n return;\n }\n }\n if (!this.childDirObjects) {\n this.childDirObjects = JSON.stringify(dirProps);\n }\n for (var _i = 0, _a = Object.keys(dirProps); _i < _a.length; _i++) {\n var dirProp = _a[_i];\n childOption[dirProp] = dirProps[dirProp];\n }\n };\n ComponentBase.prototype.resolveArrayDirectives = function (slots, tagName) {\n var slot = [];\n var innerDirValues;\n slot = slots.default ? slots.default() : slots;\n var items = {};\n items[tagName] = [];\n var _loop_2 = function (childSlot) {\n var tempObj = {};\n var tagRef = childSlot.type.methods ? childSlot.type.methods.getTag() : tagName;\n if (childSlot.children) {\n var key = void 0;\n innerDirValues = this_2.resolveComplexDirs(childSlot.children, this_2.tagMapper[\"e-\" + tagName], tagRef);\n if (innerDirValues.length) {\n tempObj = innerDirValues;\n }\n else {\n for (var i = 0; i < Object.keys(innerDirValues).length; i++) {\n key = Object.keys(innerDirValues)[i];\n tempObj[key] = innerDirValues[key];\n }\n ;\n }\n }\n if (childSlot.props) {\n Object.keys(childSlot.props).forEach(function (key) {\n tempObj[key] = childSlot.props[key];\n });\n }\n if ((/[s]\\b/).test(tagRef) && innerDirValues) {\n if (!(/[s]\\b/).test(tagName) || innerDirValues.length) {\n items[tagName] = tempObj;\n }\n else {\n items[tagName].push(tempObj);\n }\n }\n else {\n items[tagName].push(tempObj);\n }\n };\n var this_2 = this;\n for (var _i = 0, slot_1 = slot; _i < slot_1.length; _i++) {\n var childSlot = slot_1[_i];\n _loop_2(childSlot);\n }\n return items;\n };\n ComponentBase.prototype.resolveComplexDirs = function (slots, tagObject, tagName) {\n var slot = [];\n var innerDirValues;\n slot = slots.default ? slots.default() : slots;\n var items = {};\n var _loop_3 = function (childSlot) {\n var tagRef = void 0;\n var tag = void 0;\n if (tagObject[tagName]) {\n tagRef = Object.keys(tagObject[tagName]);\n tag = tagRef.find(function (key) {\n return tagObject[tagName][key] ===\n childSlot.type.methods.getTag().replace(/[s]\\b/, \"\");\n });\n tag = tag\n ? tag.replace(\"e-\", \"\")\n : childSlot.type.methods.getTag().replace(\"e-\", \"\");\n if (this_3.ej2Instances.getModuleName().toLowerCase() == \"diagram\" && tag.indexOf('annotations') != -1) {\n tag = 'annotations';\n }\n }\n if (childSlot.children) {\n innerDirValues = this_3.resolveComplexInnerDirs(childSlot.children, tagObject[tagName], childSlot.type.methods.getTag());\n if (!items[tag]) {\n items[tag] = [];\n }\n if (innerDirValues.length > 1) {\n items[tag] = innerDirValues;\n }\n else {\n items[tag].push(innerDirValues);\n }\n }\n if (slot.length > 1) {\n items = Object.keys(items).length == 0 && !items.length ? [] : items;\n if (childSlot.props) {\n items.push(childSlot.props);\n }\n }\n else {\n items = childSlot.props ? Object.assign(items, childSlot.props) : items;\n }\n };\n var this_3 = this;\n for (var _i = 0, slot_2 = slot; _i < slot_2.length; _i++) {\n var childSlot = slot_2[_i];\n _loop_3(childSlot);\n }\n return items;\n };\n ComponentBase.prototype.resolveComplexInnerDirs = function (slots, tagObject, tagName) {\n var slot = [];\n var innerDirValues;\n slot = slots.default ? slots.default() : slots;\n var items = slot.length > 1 ? [] : {};\n for (var _i = 0, slot_3 = slot; _i < slot_3.length; _i++) {\n var childSlot = slot_3[_i];\n var tag = childSlot.type.methods.getTag().replace(\"e-\", \"\");\n if (childSlot.children) {\n innerDirValues = this.resolveMultilevelComplexInnerDirs(childSlot.children, tagObject[tagName], childSlot.type.methods.getTag());\n if ((/[s]\\b/).test(tag) || slot.length > 1) {\n if ((/[s]\\b/).test(tag)) {\n items[tag] = !items[tag] ? [] : items[tag];\n if (innerDirValues.length) {\n items[tag] = innerDirValues;\n }\n else {\n items[tag].push(innerDirValues);\n }\n }\n else if (innerDirValues) {\n items.push(innerDirValues);\n }\n }\n else {\n items = innerDirValues ? innerDirValues : items;\n }\n }\n if (slot.length > 1 && childSlot.props) {\n if (items.length >= 0) {\n items.push(childSlot.props);\n }\n else {\n items = childSlot.props ? Object.assign(items, childSlot.props) : items;\n }\n }\n else {\n items = childSlot.props ? Object.assign(items, childSlot.props) : items;\n }\n }\n return items;\n };\n ComponentBase.prototype.resolveMultilevelComplexInnerDirs = function (slots, tagObject, tagName) {\n var slot = [];\n var innerDirValues;\n slot = slots.default ? slots.default() : slots;\n var items = slot.length > 1 ? [] : {};\n for (var _i = 0, slot_4 = slot; _i < slot_4.length; _i++) {\n var childSlot = slot_4[_i];\n var tag = childSlot.type.methods.getTag().replace(\"e-\", \"\");\n if (childSlot.children) {\n innerDirValues = this.resolveComplexInnerDirs(childSlot.children, tagObject[tagName], childSlot.type.methods.getTag());\n }\n if ((/[s]\\b/).test(tag)) {\n items[tag] = !items[tag] ? [] : items[tag];\n if (innerDirValues.length) {\n items[tag] = innerDirValues;\n }\n else {\n items[tag].push(innerDirValues);\n }\n if (childSlot.props) {\n items[tag].push(childSlot.props);\n }\n }\n else {\n items = innerDirValues;\n items = childSlot.props ? Object.assign(items, childSlot.props) : items;\n }\n }\n return items;\n };\n ComponentBase.prototype.getDirectiveValues = function (tagDirectives, tagMapper, tagNameMapper) {\n var keyTags = Object.keys(tagMapper);\n var dir = {};\n if (tagDirectives) {\n for (var _i = 0, tagDirectives_1 = tagDirectives; _i < tagDirectives_1.length; _i++) {\n var tagDirective = tagDirectives_1[_i];\n if (tagDirective.componentOptions && tagDirective.componentOptions.children && tagDirective.componentOptions.tag) {\n var dirTag = tagDirective.componentOptions.tag;\n if (keyTags.indexOf(dirTag) !== -1) {\n var tagName = tagNameMapper[dirTag] ? tagNameMapper[dirTag] : dirTag;\n dir[tagName.replace('e-', '')] = [];\n for (var _a = 0, _b = tagDirective.componentOptions.children; _a < _b.length; _a++) {\n var tagDirChild = _b[_a];\n var retObj = this.getVNodeValue(tagDirChild, tagMapper[dirTag], tagNameMapper);\n if (Object.keys(retObj).length !== 0) {\n dir[tagName.replace('e-', '')].push(retObj);\n }\n }\n }\n }\n }\n }\n return dir;\n };\n ComponentBase.prototype.getMultiLevelDirValue = function (tagDirectories, tagKey, tagNameMapper) {\n var mulObj = {};\n for (var _i = 0, tagDirectories_1 = tagDirectories; _i < tagDirectories_1.length; _i++) {\n var tagDir = tagDirectories_1[_i];\n if (tagDir.componentOptions) {\n var key = tagDir.componentOptions.tag;\n var tagName = tagNameMapper[key] ? tagNameMapper[key] : key;\n mulObj[tagName.replace('e-', '')] = [];\n if (tagDir.componentOptions && tagDir.componentOptions.children) {\n for (var _a = 0, _b = tagDir.componentOptions.children; _a < _b.length; _a++) {\n var tagDirChild = _b[_a];\n var mulLevObj = this.getVNodeValue(tagDirChild, tagKey[key], tagNameMapper);\n if (Object.keys(mulLevObj).length !== 0) {\n mulObj[tagName.replace('e-', '')].push(mulLevObj);\n }\n }\n }\n }\n }\n return mulObj;\n };\n ComponentBase.prototype.getVNodeValue = function (tagDirective, tagKey, tagNameMapper) {\n var ret = {};\n if (tagDirective.componentOptions) {\n var dirTag = tagDirective.componentOptions.tag;\n if (typeof tagKey === 'string' && dirTag === tagKey && tagDirective.data) {\n ret = tagDirective.data.attrs ? this.getCamelCaseProps(tagDirective.data.attrs) : this.getCamelCaseProps(tagDirective.data);\n }\n else if (typeof tagKey === 'object') {\n if (tagDirective.componentOptions.children && (Object.keys(tagKey).indexOf(dirTag) !== -1)) {\n ret = this.getMultiLevelDirValue(tagDirective.componentOptions.children, tagKey[dirTag], tagNameMapper);\n }\n if (tagDirective.data && tagDirective.data.attrs) {\n ret = extend(ret, this.getCamelCaseProps(tagDirective.data.attrs));\n }\n }\n }\n return ret;\n };\n /**\n * convert kebab case directive props to camel case\n */\n ComponentBase.prototype.getCamelCaseProps = function (props) {\n var retProps = {};\n for (var _i = 0, _a = Object.keys(props); _i < _a.length; _i++) {\n var prop = _a[_i];\n retProps[prop.replace(/-[a-z]/g, function (e) { return e[1].toUpperCase(); })] = props[prop];\n }\n return retProps;\n };\n ComponentBase.prototype.dataBind = function () {\n this.ej2Instances.dataBind();\n };\n ComponentBase.prototype.setProperties = function (arg, muteOnChange) {\n return this.ej2Instances.setProperties(arg, muteOnChange);\n };\n return ComponentBase;\n}(vueImport));\nexport { ComponentBase };\n","/**\n * Vue Component Base\n */\nimport Vue from 'vue';\n// import { Base, Component as EJ2Component, isNullOrUndefined } from '@syncfusion/ej2-base';\nimport { ComponentBase } from './component-base';\nexport var $internalHooks = [\n 'data',\n 'beforeCreate',\n 'created',\n 'beforeMount',\n 'mounted',\n 'beforeDestroy',\n 'destroyed',\n 'beforeUpdate',\n 'updated',\n 'activated',\n 'deactivated',\n 'render',\n 'errorCaptured' // 2.5\n];\nexport function getProps(options) {\n if (options === void 0) { options = {}; }\n if (options.props) {\n var _loop_1 = function (prop) {\n (options.newprops || (options.newprops = {}))[prop] = {};\n (options.watch || (options.watch = {}))[prop] = function (newVal) {\n this.ej2Instances[prop] = newVal;\n if (this.dataBind && (options.name !== 'DateRangePickerComponent')) {\n this.dataBind();\n }\n };\n };\n for (var _i = 0, _a = options.props; _i < _a.length; _i++) {\n var prop = _a[_i];\n _loop_1(prop);\n }\n }\n return [options.newprops, options.watch];\n}\nexport function EJComponentDecorator(options, isExecute) {\n if (!isExecute) {\n return;\n }\n return function (Component) {\n return EJcomponentFactory(Component, options);\n };\n}\nexport function EJcomponentFactory(Component, options) {\n if (options === void 0) { options = {}; }\n options.name = options.name || Component._componentTag || Component.name;\n // prototype props.\n var proto = Component.prototype;\n if (options.props) {\n var _loop_2 = function (prop) {\n (options.props || (options.props = {}))[prop] = {};\n (options.watch || (options.watch = {}))[prop] = function (newVal) {\n this.ej2Instances[prop] = newVal;\n if (this.dataBind && (options.name !== 'DateRangePickerComponent')) {\n this.dataBind();\n }\n };\n };\n for (var _i = 0, _a = options.props; _i < _a.length; _i++) {\n var prop = _a[_i];\n _loop_2(prop);\n }\n }\n Object.getOwnPropertyNames(proto).forEach(function (key) {\n // hooks\n if (key === 'constructor') {\n return;\n }\n if ($internalHooks.indexOf(key) > -1) {\n options[key] = proto[key];\n return;\n }\n var descriptor = Object.getOwnPropertyDescriptor(proto, key);\n if (typeof descriptor.value === 'function') {\n // methods\n (options.methods || (options.methods = {}))[key] = descriptor.value;\n }\n else if (descriptor.get || descriptor.set) {\n // computed properties\n (options.computed || (options.computed = {}))[key] = {\n get: descriptor.get,\n set: descriptor.set\n };\n }\n });\n Object.getOwnPropertyNames(ComponentBase.prototype).forEach(function (key) {\n if ($internalHooks.indexOf(key) > -1) {\n options[key] = proto[key];\n return;\n }\n });\n (options.mixins || (options.mixins = [])).push({\n data: function () {\n return collectDataFromConstructor(this, Component);\n }\n });\n // decorate options\n var decorators = Component.__decorators__;\n if (decorators) {\n decorators.forEach(Function(options));\n delete Component.__decorators__;\n }\n // find super\n var superProto = Object.getPrototypeOf(Component.prototype);\n var Super = superProto instanceof Vue\n ? superProto.constructor\n : Vue;\n var Extended = Super.extend(options);\n return Extended;\n}\nfunction collectDataFromConstructor(vm, Component) {\n Component.prototype._init = function () {\n var _this = this;\n var keys = Object.getOwnPropertyNames(vm);\n if (vm.$options.props) {\n for (var key in vm.$options.props) {\n if (!vm.hasOwnProperty(key)) {\n keys.push(key);\n }\n }\n }\n keys.forEach(function (key) {\n if (key.charAt(0) !== '_') {\n Object.defineProperty(_this, key, {\n get: function () { return vm[key]; },\n set: function (value) { return vm[key] = value; }\n });\n }\n });\n };\n var data = new Component();\n var plainData = {};\n Object.keys(data).forEach(function (key) {\n if (data[key] !== undefined) {\n plainData[key] = data[key];\n }\n });\n return plainData;\n}\n","import Vue from \"vue\";\nimport { setTemplateEngine, getTemplateEngine, getUniqueID, createElement, detach, extend, getValue, } from \"@syncfusion/ej2-base\";\nimport { allVue, gh } from \"./component-base\";\n// tslint:disable:no-any\nvar stringCompiler = getTemplateEngine();\nexport function compile(templateElement, helper) {\n var that = this;\n return function (data, context, propName, element, root) {\n var returnEle;\n if (context) {\n var pid = getUniqueID(\"templateParentDiv\");\n var id = getUniqueID(\"templateDiv\");\n var ele = createElement(\"div\", {\n id: pid,\n innerHTML: '<div id=\"' + id + '\"></div>',\n });\n document.body.appendChild(ele);\n if (gh && typeof templateElement === \"string\") {\n var vue3Slots_1 = getVue3Slot(context.vueInstance, templateElement, root);\n if (vue3Slots_1) {\n // Compilation for Vue 3 slot template\n allVue\n .createApp({\n render: function () {\n return vue3Slots_1[templateElement]({ data: data });\n }\n })\n .mount(\"#\" + id);\n returnEle = ele.childNodes;\n detach(ele);\n }\n else {\n // Compilation for Vue 3 string template\n detach(ele);\n return stringCompiler(templateElement, helper)(data);\n }\n }\n else if (gh) {\n // Compilation for Vue 3 functional template\n var tempObj = templateElement.call(that, {});\n var object = tempObj;\n var propsData = getValue(\"template.propsData\", tempObj);\n var dataObj = {\n data: { data: extend(tempObj.data || {}, data) },\n parent: context.vueInstance,\n };\n if (!object.template) {\n object.template = object[Object.keys(object)[0]];\n }\n var templateCompRef = void 0;\n if (object.template.extends) {\n templateCompRef = object.template.extends._context.components.template;\n }\n else {\n templateCompRef = object.template._context.components[templateElement.name];\n if (!templateCompRef) {\n var key = Object.keys(object.template._context.components)[0];\n templateCompRef = object.template._context.components[key];\n }\n }\n var tempRef_1;\n if (propsData) {\n tempRef_1 = Object.assign(templateCompRef.data(), propsData);\n }\n else {\n tempRef_1 = Object.assign(templateCompRef.data(), dataObj.data);\n if (templateCompRef.components) {\n var objkeys = Object.keys(templateCompRef.components) || [];\n var _loop_1 = function (objstring) {\n var intComponent = templateCompRef.components[objstring];\n if (intComponent && intComponent.data) {\n var tempRef2_1 = Object.assign(intComponent.data(), dataObj.data);\n intComponent.data = function () { return tempRef2_1; };\n }\n };\n for (var _i = 0, objkeys_1 = objkeys; _i < objkeys_1.length; _i++) {\n var objstring = objkeys_1[_i];\n _loop_1(objstring);\n }\n }\n }\n templateCompRef.data = function () { return tempRef_1; };\n allVue\n .createApp(templateCompRef)\n .mount(\"#\" + id);\n returnEle = ele.childNodes;\n detach(ele);\n }\n else if (typeof templateElement === \"string\") {\n var vue2Slots_1 = getVue2Slot(context.vueInstance, templateElement, root);\n if (vue2Slots_1) {\n // Compilation for Vue 2 slot template\n var vueTemplate = new Vue({\n render: function () {\n return vue2Slots_1[templateElement]({ data: data });\n }\n });\n vueTemplate.$mount(\"#\" + id);\n returnEle = ele.childNodes;\n detach(ele);\n }\n else {\n // Compilation for Vue 2 string template\n detach(ele);\n return stringCompiler(templateElement, helper)(data);\n }\n }\n else {\n // Compilation for Vue 2 functional template\n var tempObj = templateElement.call(that, {});\n var templateFunction = tempObj.template;\n var propsData = getValue(\"template.propsData\", tempObj);\n var dataObj = {\n data: { data: extend(tempObj.data || {}, data) },\n parent: context.vueInstance,\n };\n if (propsData) {\n templateFunction = tempObj.template.extends;\n dataObj.propsData = propsData;\n }\n if (typeof templateFunction !== \"function\") {\n templateFunction = Vue.extend(templateFunction);\n }\n var templateVue = new templateFunction(dataObj);\n // let templateVue = new Vue(tempObj.template);\n // templateVue.$data.data = extend(tempObj.data, data);\n templateVue.$mount(\"#\" + id);\n returnEle = ele.childNodes;\n if (context.vueInstance) {\n var templateInstance = context.vueInstance.templateCollection;\n if (!templateInstance) {\n context.vueInstance.templateCollection = {};\n templateInstance = context.vueInstance.templateCollection;\n }\n if (propName) {\n if (!templateInstance[propName]) {\n templateInstance[propName] = [];\n }\n templateInstance[propName].push(returnEle[0]);\n }\n }\n detach(ele);\n }\n }\n return returnEle || [];\n };\n}\nsetTemplateEngine({ compile: compile });\n// Get the Vue2 slot template from the root or current Vue component.\nfunction getVue2Slot(vueInstance, templateElement, root) {\n if (!vueInstance && !(root && root.vueInstance)) {\n return undefined;\n }\n var instance = (root && root.vueInstance) ? root.vueInstance : vueInstance;\n return getVue2ChildSlot(instance, templateElement);\n}\nfunction getVue2ChildSlot(vueInstance, templateElement) {\n if (!vueInstance) {\n return undefined;\n }\n var slots = vueInstance.$slots;\n var scopedSlots = vueInstance.$scopedSlots;\n var vSlots = vueInstance.scopedSlots;\n var children = vueInstance.children;\n if (scopedSlots && scopedSlots[templateElement]) {\n return scopedSlots;\n }\n else if (slots && slots.default) {\n var childSlots = slots.default;\n for (var i = 0; i < childSlots.length; i++) {\n var slot = getVue2ChildSlot(getSlot(childSlots[i]), templateElement);\n if (slot) {\n return slot;\n }\n }\n }\n else if (vSlots && vSlots[templateElement]) {\n return vSlots;\n }\n else if (children) {\n for (var i = 0; i < children.length; i++) {\n var slot = getVue2ChildSlot(getSlot(children[i]), templateElement);\n if (slot) {\n return slot;\n }\n }\n }\n return undefined;\n}\nfunction getSlot(vnode) {\n var slot = (vnode.componentOptions && vnode.componentOptions.children) ? vnode.componentOptions : vnode.data;\n return vnode.componentInstance ? vnode.componentInstance : slot;\n}\n// Get the Vue3 slot template from the root or current Vue component.\nfunction getVue3Slot(vueInstance, templateElement, root) {\n if (!vueInstance && !(root && root.vueInstance)) {\n return undefined;\n }\n var slots = (root && root.vueInstance) ? root.vueInstance.$slots : vueInstance.$slots;\n return getVue3ChildSlot(slots, templateElement);\n}\nfunction getVue3ChildSlot(slots, templateElement) {\n if (slots && slots[templateElement]) {\n return slots;\n }\n else if (slots && slots.default) {\n var childSlots = slots.default();\n for (var i = 0; i < childSlots.length; i++) {\n var slot = getVue3ChildSlot(childSlots[i].children, templateElement);\n if (slot) {\n return slot;\n }\n }\n }\n return undefined;\n}\n"],"names":["_interopRequireWildcard","obj","__esModule","newObj","key","Object","prototype","hasOwnProperty","call","default","EJcomponentFactory","Component","options","name","_componentTag","proto","props","_loop_2","prop","watch","newVal","this","ej2Instances","dataBind","_i","_a","length","getOwnPropertyNames","forEach","$internalHooks","indexOf","descriptor","getOwnPropertyDescriptor","value","methods","get","set","computed","ComponentBase","mixins","push","data","vm","_init","_this","keys","$options","charAt","defineProperty","plainData","undefined","collectDataFromConstructor","decorators","__decorators__","Function","superProto","getPrototypeOf","Vue","constructor","extend","compile","templateElement","helper","that","context","propName","element","root","returnEle","pid","getUniqueID","id","ele","createElement","innerHTML","document","body","appendChild","gh","vue3Slots_1","vueInstance","getVue3ChildSlot","$slots","getVue3Slot","detach","stringCompiler","allVue","createApp","render","mount","childNodes","object","tempObj","propsData","getValue","dataObj","parent","template","templateCompRef","extends","_context","components","tempRef_1","assign","_loop_1","objstring","intComponent","tempRef2_1","objkeys_1","vue2Slots_1","getVue2ChildSlot","getVue2Slot","$mount","templateFunction","templateInstance","templateCollection","slots","scopedSlots","$scopedSlots","vSlots","children","childSlots","i","slot","getSlot","vnode","componentOptions","componentInstance","__extends","extendStatics","d","b","setPrototypeOf","__proto__","Array","p","__","create","aVue","Vue2","h","isExecute","_super","arguments","hasInjectedModules","hasChildDirective","childDirObjects","created","propKeys","this_1","addEventListener","args","$emit","injectables","vueInjectables","prevModule","getModuleName","getInjectedServices","_b","curModule_1","getInjectedModules","mod","injectedModules","mounted","cusEle","$el","querySelectorAll","parentElement","removeChild","isVue","isVue3","referModels","models","appendTo","provide","ret","$vnode","$parent","updated","childKey","fetchChildPropValues","curChildDir","JSON","stringify","assignValueToWrapper","beforeDestroy","tempBeforeDestroyThis","destroy","style","visibility","bindProperties","isNullOrUndefined","curModule_2","option","silent","setProperties","childOption","dirProps","propRef","$","type","getTag","replace","ref","resolveArrayDirectives","splitKeys","split","controlName","toLowerCase","keyRef","getDirectiveValues","tagMapper","tagNameMapper","dirProp","tagName","innerDirValues","items","childSlot","tagRef","this_2","resolveComplexDirs","test","slot_1","tagObject","_loop_3","tag","find","this_3","resolveComplexInnerDirs","slot_2","slot_3","resolveMultilevelComplexInnerDirs","slot_4","tagDirectives","keyTags","dir","tagDirectives_1","tagDirective","dirTag","tagDirChild","retObj","getVNodeValue","getMultiLevelDirValue","tagDirectories","tagKey","mulObj","tagDirectories_1","tagDir","mulLevObj","attrs","getCamelCaseProps","retProps","e","toUpperCase","arg","muteOnChange","parseInt","version","Vue3.Vue","getTemplateEngine","setTemplateEngine","newprops"],"mappings":"qVAqBA,SAAgBA,EAAwBC,GACpC,GAAIA,GAAOA,EAAIC,WACX,OAAOD,EAGP,IAAIE,KACJ,GAAW,MAAPF,EACA,IAAK,IAAIG,KAAOH,EACRI,OAAOC,UAAUC,eAAeC,KAAKP,EAAKG,KAC1CD,EAAOC,GAAOH,EAAIG,IAI9B,OADAD,EAAOM,QAAUR,EACVE,ECcf,SAAgBO,EAAmBC,EAAWC,QAC1B,IAAZA,IAA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Import {
161
161
  if (this[0] && this[0][1].slots.default) {
162
162
  propRef = this[0][1].slots.default();
163
163
  }
164
- else if (this && this.$slots) {
165
- propRef = this.$slots.default();
164
+ else if (this && this.$) {
165
+ if (this.$.slots) {
166
+ propRef = this.$.slots.default();
167
+ }
166
168
  }
167
169
  if (propRef) {
168
170
  for (let i = 0; i < propRef.length; i++) {
@@ -179,6 +181,9 @@ class ComponentBase extends vueImport {
179
181
  else if (controlName == "bulletchart" && keyRef == "range") {
180
182
  keyRef = "ranges";
181
183
  }
184
+ else if (controlName == "schedule" && keyRef == "header") {
185
+ keyRef = "headerRows";
186
+ }
182
187
  dirProps[keyRef] = ref[key];
183
188
  }
184
189
  }
@@ -563,11 +568,9 @@ function collectDataFromConstructor(vm, Component) {
563
568
  let stringCompiler = getTemplateEngine();
564
569
  function compile(templateElement, helper) {
565
570
  let that = this;
566
- if (typeof templateElement === "string") {
567
- return stringCompiler(templateElement, helper);
568
- }
569
- else {
570
- return (data, context, propName) => {
571
+ return (data, context, propName, element, root) => {
572
+ let returnEle;
573
+ if (context) {
571
574
  let pid = getUniqueID("templateParentDiv");
572
575
  let id = getUniqueID("templateDiv");
573
576
  let ele = createElement("div", {
@@ -575,94 +578,201 @@ function compile(templateElement, helper) {
575
578
  innerHTML: '<div id="' + id + '"></div>',
576
579
  });
577
580
  document.body.appendChild(ele);
578
- let tempObj = templateElement.call(that, {});
579
- let returnEle;
580
- if (context) {
581
- if (gh) {
582
- let object = tempObj;
583
- let propsData = getValue("template.propsData", tempObj);
584
- let dataObj = {
585
- data: { data: extend(tempObj.data || {}, data) },
586
- parent: context.vueInstance,
587
- };
588
- if (!object.template) {
589
- object.template = object[Object.keys(object)[0]];
590
- }
591
- let templateCompRef;
592
- if (object.template.extends) {
593
- templateCompRef = object.template.extends._context.components.template;
594
- }
595
- else {
596
- templateCompRef = object.template._context.components[templateElement.name];
597
- if (!templateCompRef) {
598
- let key = Object.keys(object.template._context.components)[0];
599
- templateCompRef = object.template._context.components[key];
581
+ if (gh && typeof templateElement === "string") {
582
+ let vue3Slots = getVue3Slot(context.vueInstance, templateElement, root);
583
+ if (vue3Slots) {
584
+ // Compilation for Vue 3 slot template
585
+ allVue
586
+ .createApp({
587
+ render() {
588
+ return vue3Slots[templateElement]({ data: data });
600
589
  }
590
+ })
591
+ .mount("#" + id);
592
+ returnEle = ele.childNodes;
593
+ detach(ele);
594
+ }
595
+ else {
596
+ // Compilation for Vue 3 string template
597
+ detach(ele);
598
+ return stringCompiler(templateElement, helper)(data);
599
+ }
600
+ }
601
+ else if (gh) {
602
+ // Compilation for Vue 3 functional template
603
+ let tempObj = templateElement.call(that, {});
604
+ let object = tempObj;
605
+ let propsData = getValue("template.propsData", tempObj);
606
+ let dataObj = {
607
+ data: { data: extend(tempObj.data || {}, data) },
608
+ parent: context.vueInstance,
609
+ };
610
+ if (!object.template) {
611
+ object.template = object[Object.keys(object)[0]];
612
+ }
613
+ let templateCompRef;
614
+ if (object.template.extends) {
615
+ templateCompRef = object.template.extends._context.components.template;
616
+ }
617
+ else {
618
+ templateCompRef = object.template._context.components[templateElement.name];
619
+ if (!templateCompRef) {
620
+ let key = Object.keys(object.template._context.components)[0];
621
+ templateCompRef = object.template._context.components[key];
601
622
  }
602
- let tempRef;
603
- if (propsData) {
604
- tempRef = Object.assign(templateCompRef.data(), propsData);
605
- }
606
- else {
607
- tempRef = Object.assign(templateCompRef.data(), dataObj.data);
608
- if (templateCompRef.components) {
609
- let objkeys = Object.keys(templateCompRef.components) || [];
610
- for (let objstring of objkeys) {
611
- let intComponent = templateCompRef.components[objstring];
612
- if (intComponent && intComponent.data) {
613
- let tempRef2 = Object.assign(intComponent.data(), dataObj.data);
614
- intComponent.data = function () { return tempRef2; };
615
- }
623
+ }
624
+ let tempRef;
625
+ if (propsData) {
626
+ tempRef = Object.assign(templateCompRef.data(), propsData);
627
+ }
628
+ else {
629
+ tempRef = Object.assign(templateCompRef.data(), dataObj.data);
630
+ if (templateCompRef.components) {
631
+ let objkeys = Object.keys(templateCompRef.components) || [];
632
+ for (let objstring of objkeys) {
633
+ let intComponent = templateCompRef.components[objstring];
634
+ if (intComponent && intComponent.data) {
635
+ let tempRef2 = Object.assign(intComponent.data(), dataObj.data);
636
+ intComponent.data = function () { return tempRef2; };
616
637
  }
617
638
  }
618
639
  }
619
- templateCompRef.data = function () { return tempRef; };
620
- allVue
621
- .createApp(templateCompRef)
622
- .mount("#" + id);
640
+ }
641
+ templateCompRef.data = function () { return tempRef; };
642
+ allVue
643
+ .createApp(templateCompRef)
644
+ .mount("#" + id);
645
+ returnEle = ele.childNodes;
646
+ detach(ele);
647
+ }
648
+ else if (typeof templateElement === "string") {
649
+ let vue2Slots = getVue2Slot(context.vueInstance, templateElement, root);
650
+ if (vue2Slots) {
651
+ // Compilation for Vue 2 slot template
652
+ let vueTemplate = new Vue$1__default({
653
+ render() {
654
+ return vue2Slots[templateElement]({ data: data });
655
+ }
656
+ });
657
+ vueTemplate.$mount("#" + id);
623
658
  returnEle = ele.childNodes;
624
659
  detach(ele);
625
660
  }
626
661
  else {
627
- let templateFunction = tempObj.template;
628
- let propsData = getValue("template.propsData", tempObj);
629
- let dataObj = {
630
- data: { data: extend(tempObj.data || {}, data) },
631
- parent: context.vueInstance,
632
- };
633
- if (propsData) {
634
- templateFunction = tempObj.template.extends;
635
- dataObj.propsData = propsData;
636
- }
637
- if (typeof templateFunction !== "function") {
638
- templateFunction = Vue$1__default.extend(templateFunction);
662
+ // Compilation for Vue 2 string template
663
+ detach(ele);
664
+ return stringCompiler(templateElement, helper)(data);
665
+ }
666
+ }
667
+ else {
668
+ // Compilation for Vue 2 functional template
669
+ let tempObj = templateElement.call(that, {});
670
+ let templateFunction = tempObj.template;
671
+ let propsData = getValue("template.propsData", tempObj);
672
+ let dataObj = {
673
+ data: { data: extend(tempObj.data || {}, data) },
674
+ parent: context.vueInstance,
675
+ };
676
+ if (propsData) {
677
+ templateFunction = tempObj.template.extends;
678
+ dataObj.propsData = propsData;
679
+ }
680
+ if (typeof templateFunction !== "function") {
681
+ templateFunction = Vue$1__default.extend(templateFunction);
682
+ }
683
+ let templateVue = new templateFunction(dataObj);
684
+ // let templateVue = new Vue(tempObj.template);
685
+ // templateVue.$data.data = extend(tempObj.data, data);
686
+ templateVue.$mount("#" + id);
687
+ returnEle = ele.childNodes;
688
+ if (context.vueInstance) {
689
+ let templateInstance = context.vueInstance.templateCollection;
690
+ if (!templateInstance) {
691
+ context.vueInstance.templateCollection = {};
692
+ templateInstance = context.vueInstance.templateCollection;
639
693
  }
640
- let templateVue = new templateFunction(dataObj);
641
- // let templateVue = new Vue(tempObj.template);
642
- // templateVue.$data.data = extend(tempObj.data, data);
643
- templateVue.$mount("#" + id);
644
- returnEle = ele.childNodes;
645
- if (context.vueInstance) {
646
- let templateInstance = context.vueInstance.templateCollection;
647
- if (!templateInstance) {
648
- context.vueInstance.templateCollection = {};
649
- templateInstance = context.vueInstance.templateCollection;
650
- }
651
- if (propName) {
652
- if (!templateInstance[propName]) {
653
- templateInstance[propName] = [];
654
- }
655
- templateInstance[propName].push(returnEle[0]);
694
+ if (propName) {
695
+ if (!templateInstance[propName]) {
696
+ templateInstance[propName] = [];
656
697
  }
698
+ templateInstance[propName].push(returnEle[0]);
657
699
  }
658
- detach(ele);
659
700
  }
701
+ detach(ele);
660
702
  }
661
- return returnEle || [];
662
- };
663
- }
703
+ }
704
+ return returnEle || [];
705
+ };
664
706
  }
665
707
  setTemplateEngine({ compile: compile });
708
+ // Get the Vue2 slot template from the root or current Vue component.
709
+ function getVue2Slot(vueInstance, templateElement, root) {
710
+ if (!vueInstance && !(root && root.vueInstance)) {
711
+ return undefined;
712
+ }
713
+ let instance = (root && root.vueInstance) ? root.vueInstance : vueInstance;
714
+ return getVue2ChildSlot(instance, templateElement);
715
+ }
716
+ function getVue2ChildSlot(vueInstance, templateElement) {
717
+ if (!vueInstance) {
718
+ return undefined;
719
+ }
720
+ let slots = vueInstance.$slots;
721
+ let scopedSlots = vueInstance.$scopedSlots;
722
+ let vSlots = vueInstance.scopedSlots;
723
+ let children = vueInstance.children;
724
+ if (scopedSlots && scopedSlots[templateElement]) {
725
+ return scopedSlots;
726
+ }
727
+ else if (slots && slots.default) {
728
+ let childSlots = slots.default;
729
+ for (let i = 0; i < childSlots.length; i++) {
730
+ let slot = getVue2ChildSlot(getSlot(childSlots[i]), templateElement);
731
+ if (slot) {
732
+ return slot;
733
+ }
734
+ }
735
+ }
736
+ else if (vSlots && vSlots[templateElement]) {
737
+ return vSlots;
738
+ }
739
+ else if (children) {
740
+ for (let i = 0; i < children.length; i++) {
741
+ let slot = getVue2ChildSlot(getSlot(children[i]), templateElement);
742
+ if (slot) {
743
+ return slot;
744
+ }
745
+ }
746
+ }
747
+ return undefined;
748
+ }
749
+ function getSlot(vnode) {
750
+ let slot = (vnode.componentOptions && vnode.componentOptions.children) ? vnode.componentOptions : vnode.data;
751
+ return vnode.componentInstance ? vnode.componentInstance : slot;
752
+ }
753
+ // Get the Vue3 slot template from the root or current Vue component.
754
+ function getVue3Slot(vueInstance, templateElement, root) {
755
+ if (!vueInstance && !(root && root.vueInstance)) {
756
+ return undefined;
757
+ }
758
+ let slots = (root && root.vueInstance) ? root.vueInstance.$slots : vueInstance.$slots;
759
+ return getVue3ChildSlot(slots, templateElement);
760
+ }
761
+ function getVue3ChildSlot(slots, templateElement) {
762
+ if (slots && slots[templateElement]) {
763
+ return slots;
764
+ }
765
+ else if (slots && slots.default) {
766
+ let childSlots = slots.default();
767
+ for (let i = 0; i < childSlots.length; i++) {
768
+ let slot = getVue3ChildSlot(childSlots[i].children, templateElement);
769
+ if (slot) {
770
+ return slot;
771
+ }
772
+ }
773
+ }
774
+ return undefined;
775
+ }
666
776
 
667
777
  /**
668
778
  * index for component base