@syncfusion/ej2-vue-base
Advanced tools
Comparing version 20.3.47 to 20.3.48
@@ -7,2 +7,10 @@ # Changelog | ||
#### Bug Fixes | ||
- `#I400596` - The issue with "Tab throwing script error while enabling a tab item using `v-if`" has been resolved. | ||
## 20.3.47 (2022-09-29) | ||
### Common | ||
#### New Features | ||
@@ -9,0 +17,0 @@ |
/*! | ||
* filename: ej2-vue-base.umd.min.js | ||
* version : 20.3.47 | ||
* version : 20.3.48 | ||
* Copyright Syncfusion Inc. 2001 - 2020. All rights reserved. | ||
@@ -10,21 +10,3 @@ * Use of this code is subject to the terms of our license. | ||
*/ | ||
/*! | ||
* filename: ej2-vue-base.umd.min.js | ||
* version : 20.2.45 | ||
* Copyright Syncfusion Inc. 2001 - 2020. All rights reserved. | ||
* Use of this code is subject to the terms of our license. | ||
* A copy of the current license can be obtained at any time by e-mailing | ||
* licensing@syncfusion.com. Any infringement will be prosecuted under | ||
* applicable laws. | ||
*/ | ||
/*! | ||
* filename: ej2-vue-base.umd.min.js | ||
* version : 20.2.43 | ||
* Copyright Syncfusion Inc. 2001 - 2020. All rights reserved. | ||
* Use of this code is subject to the terms of our license. | ||
* A copy of the current license can be obtained at any time by e-mailing | ||
* licensing@syncfusion.com. Any infringement will be prosecuted under | ||
* applicable laws. | ||
*/ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("@syncfusion/ej2-base")):"function"==typeof define&&define.amd?define(["exports","vue","@syncfusion/ej2-base"],t):t(e.ej={},e.Vue,e.ej2Base)}(this,function(e,t,n){"use strict";function o(e,n){void 0===n&&(n={}),n.name=n.name||e._componentTag||e.name;var o=e.prototype;if(n.props)for(var r=function(e){(n.props||(n.props={}))[e]={},(n.watch||(n.watch={}))[e]=function(t){this.ej2Instances[e]=t,this.dataBind&&"DateRangePickerComponent"!==n.name&&this.dataBind()}},i=0,p=n.props;i<p.length;i++){r(p[i])}Object.getOwnPropertyNames(o).forEach(function(e){if("constructor"!==e)if(a.indexOf(e)>-1)n[e]=o[e];else{var t=Object.getOwnPropertyDescriptor(o,e);"function"==typeof t.value?(n.methods||(n.methods={}))[e]=t.value:(t.get||t.set)&&((n.computed||(n.computed={}))[e]={get:t.get,set:t.set})}}),Object.getOwnPropertyNames(s.prototype).forEach(function(e){a.indexOf(e)>-1&&(n[e]=o[e])}),(n.mixins||(n.mixins=[])).push({data:function(){return function(e,t){t.prototype._init=function(){var t=this,n=Object.getOwnPropertyNames(e);if(e.$options.props)for(var o in e.$options.props)e.hasOwnProperty(o)||n.push(o);n.forEach(function(n){"_"!==n.charAt(0)&&Object.defineProperty(t,n,{get:function(){return e[n]},set:function(t){return e[n]=t}})})};var n=new t,o={};return Object.keys(n).forEach(function(e){void 0!==n[e]&&(o[e]=n[e])}),o}(this,e)}});var c=e.__decorators__;c&&(c.forEach(Function(n)),delete e.__decorators__);var u=Object.getPrototypeOf(e.prototype);return(u instanceof t?u.constructor:t).extend(n)}function r(e,o){var r=this;return"string"==typeof e?p(e,o):function(o,i){var s=n.getUniqueID("templateParentDiv"),a=n.getUniqueID("templateDiv"),p=n.createElement("div",{id:s,innerHTML:'<div id="'+a+'"></div>'});document.body.appendChild(p);var c,u=e.call(r,{});if(i){var d=u.template,f=n.getValue("template.propsData",u),h={data:{data:n.extend(u.data||{},o)},parent:i.vueInstance};f&&(d=u.template.extends,h.propsData=f),"function"!=typeof d&&(d=t.extend(d));new d(h).$mount("#"+a),c=p.childNodes,n.detach(p)}return c||[]}}t=t&&t.hasOwnProperty("default")?t.default:t;var i=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.hasInjectedModules=!1,t.hasChildDirective=!1,t.childDirObjects="",t}return i(t,e),t.prototype.created=function(){for(var e=this,t=function(t){n.ej2Instances.addEventListener(t,function(n){e.$emit(t,n)})},n=this,o=0,r=this.propKeys;o<r.length;o++){t(r[o])}},t.prototype.mounted=function(){this.ej2Instances.isVue=!0,this.ej2Instances.vueInstance=this,this.ej2Instances.appendTo(this.$el)},t.prototype.getInjectedServices=function(){var e=[],t=n.getValue("$vnode.context.$options.provide",this);if(t){var o=t;"function"==typeof t&&(o=this.$vnode.context.$options.provide()),e=o[this.ej2Instances.getModuleName()]||[]}return e},t.prototype.updated=function(){if(this.hasChildDirective){var e={};this.fetchChildPropValues(e);var t=JSON.stringify(e);this.childDirObjects!==t&&(this.childDirObjects=t,this.assignValueToWrapper(e,!1))}},t.prototype.beforeDestroy=function(){var e=this;e.ej2Instances.destroy(),e.$el.style.visibility="hidden",e=null},t.prototype.bindProperties=function(){for(var e={},t=0,o=this.propKeys;t<o.length;t++){var r=o[t];n.isNullOrUndefined(this[r])||(e[r]=this[r])}if(this.hasChildDirective&&this.fetchChildPropValues(e),this.hasInjectedModules){for(var i=this.getInjectedServices()||[],s=0,a=this.ej2Instances.getInjectedModules()||[];s<a.length;s++){var p=a[s];-1===i.indexOf(p)&&i.push(p)}this.ej2Instances.injectedModules=i}this.assignValueToWrapper(e)},t.prototype.assignValueToWrapper=function(e,t){this.ej2Instances.setProperties(n.extend({},{},e,!0),!!n.isNullOrUndefined(t)||t)},t.prototype.fetchChildPropValues=function(e){var t=this.getDirectiveValues(this.$slots.default,this.tagMapper||{},this.tagNameMapper||{});this.childDirObjects||(this.childDirObjects=JSON.stringify(t));for(var n=0,o=Object.keys(t);n<o.length;n++){var r=o[n];e[r]=t[r]}},t.prototype.getDirectiveValues=function(e,t,n){var o=Object.keys(t),r={};if(e)for(var i=0,s=e;i<s.length;i++){var a=s[i];if(a.componentOptions&&a.componentOptions.children&&a.componentOptions.tag){var p=a.componentOptions.tag;if(-1!==o.indexOf(p)){var c=n[p]?n[p]:p;r[c.replace("e-","")]=[];for(var u=0,d=a.componentOptions.children;u<d.length;u++){var f=d[u],h=this.getVNodeValue(f,t[p],n);0!==Object.keys(h).length&&r[c.replace("e-","")].push(h)}}}}return r},t.prototype.getMultiLevelDirValue=function(e,t,n){for(var o={},r=0,i=e;r<i.length;r++){var s=i[r];if(s.componentOptions){var a=s.componentOptions.tag,p=n[a]?n[a]:a;if(o[p.replace("e-","")]=[],s.componentOptions&&s.componentOptions.children)for(var c=0,u=s.componentOptions.children;c<u.length;c++){var d=u[c],f=this.getVNodeValue(d,t[a],n);0!==Object.keys(f).length&&o[p.replace("e-","")].push(f)}}}return o},t.prototype.getVNodeValue=function(e,t,o){var r={};if(e.componentOptions){var i=e.componentOptions.tag;"string"==typeof t&&i===t&&e.data?r=e.data.attrs?this.getCamelCaseProps(e.data.attrs):this.getCamelCaseProps(e.data):"object"==typeof t&&(e.componentOptions.children&&-1!==Object.keys(t).indexOf(i)&&(r=this.getMultiLevelDirValue(e.componentOptions.children,t[i],o)),e.data&&e.data.attrs&&(r=n.extend(r,this.getCamelCaseProps(e.data.attrs))))}return r},t.prototype.getCamelCaseProps=function(e){for(var t={},n=0,o=Object.keys(e);n<o.length;n++){var r=o[n];t[r.replace(/-[a-z]/g,function(e){return e[1].toUpperCase()})]=e[r]}return t},t.prototype.dataBind=function(){this.ej2Instances.dataBind()},t.prototype.setProperties=function(e,t){return this.ej2Instances.setProperties(e,t)},t}(t),a=["data","beforeCreate","created","beforeMount","mounted","beforeDestroy","destroyed","beforeUpdate","updated","activated","deactivated","render","errorCaptured"],p=n.getTemplateEngine();n.setTemplateEngine({compile:r}),e.ComponentBase=s,e.$internalHooks=a,e.EJComponentDecorator=function(e){return function(t){return o(t,e)}},e.EJcomponentFactory=o,e.compile=r,Object.defineProperty(e,"__esModule",{value:!0})}); | ||
!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 h;if(s){var f=s.vueInstance?s.vueInstance.plugins:null,g=t.getUniqueID("templateParentDiv"),m=t.getUniqueID("templateDiv"),O=t.createElement("div",{id:g,innerHTML:'<div id="'+m+'"></div>'});if(document.body.appendChild(O),v||"string"!=typeof e)if(v)if("string"==typeof e){var j=function(e,t,n){if(!(e||n&&n.vueInstance))return;return a(n&&n.vueInstance?n.vueInstance:e,t)}(s.vueInstance,e,u);if(!j)return t.detach(O),y(e,n)(o);new l({render:function(){return j[e]({data:o})}}).$mount("#"+m),h=O.childNodes,t.detach(O)}else{var b=($=e.call(r,{})).template;x=t.getValue("template.propsData",$),C={data:{data:t.extend($.data||{},o)},parent:s.vueInstance};x&&(b=$.template.extends,C.propsData=x),"function"!=typeof b&&(b=l.extend(b));if(new b(C).$mount("#"+m),h=O.childNodes,s.vueInstance){var I=s.vueInstance.templateCollection;I||(s.vueInstance.templateCollection={},I=s.vueInstance.templateCollection),i&&(I[i]||(I[i]=[]),I[i].push(h[0]))}t.detach(O)}else{var $,D=$=e.call(r,{}),x=t.getValue("template.propsData",$),C={data:{data:t.extend($.data||{},o)},parent:s.vueInstance};D.template||(D.template=D[Object.keys(D)[0]]);var V=void 0;if(D.template.extends)V=D.template.extends._context.components.template;else if(!(V=D.template._context.components[e.name])){var _=Object.keys(D.template._context.components)[0];V=D.template._context.components[_]}var P;if(x)P=Object.assign(V.data(),x);else if(P=Object.assign(V.data(),C.data),V.components)for(var M=function(e){var t=V.components[e];if(t&&t.data){var n=Object.assign(t.data(),C.data);t.data=function(){return n}}},k=0,N=Object.keys(V.components)||[];k<N.length;k++){M(N[k])}V.data=function(){return P};T=d.createApp(V);if(f)for(E=0;E<f.length;E++)T.use(f[E]);T.mount("grid"===s.getModuleName()?"#"+g:"#"+m),h=O.childNodes,t.detach(O)}else{var w=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(!w)return t.detach(O),y(e,n)(o);var T=d.createApp({render:function(){return w[e]({data:o})}});if(f)for(var E=0;E<f.length;E++)T.use(f[E]);T.mount("grid"===s.getModuleName()?"#"+g:"#"+m),h=O.childNodes,t.detach(O)}}return h||[]}}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)}}(),h=o(r),d=h,f=d.h,v=!(parseInt(d.version)>2),g=function(e){function n(){var t=e.call(this,arguments)||this;return t.hasInjectedModules=!1,t.hasChildDirective=!1,t.childDirObjects="",t.isDecorator=!1,t}return 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&&i.managed?(this.isDecorator=!0,p=this.getInjectedServices()||[]):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(!v&&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.$root&&this.isDecorator?e=t.getValue("$root.$options.provide",this):this.$vnode?e=t.getValue("$vnode.context.$options.provide",this):this.$parent&&(e=t.getValue("$parent.$options.provide",this)),e){var r=e;if("function"==typeof e)if(e.managed){var o=e.managed,s=Object.keys(o),i=void 0;this.$root&&this.isDecorator?i=Object.keys(this.$root):this.$vnode?i=Object.keys(this.$vnode.context):this.$parent&&(i=Object.keys(this.$parent));for(var a=0;a<s.length;a++)for(var p=0;p<i.length;p++)-1!==i[p].indexOf(s[a])&&(this.$root&&this.isDecorator?o[s[p]]=this.$root[i[a]]:this.$vnode?o[s[a]]=this.$vnode.context[i[p]]:this.$parent&&(o[s[a]]=this.$parent[i[p]]),r=o)}else this.$vnode?r=this.$vnode.context.$options.provide():this.$parent&&(r=this.$parent.$options.provide());n=r[this.ej2Instances.getModuleName()]||[]}return this.isDecorator=!1,n},n.prototype.updated=function(){if(this.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&&this.$.slots.default&&(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:r&&0!==Object.keys(r).length&&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 h=u[l],d=this.getVNodeValue(h,t[p],n);0!==Object.keys(d).length&&o[c.replace("e-","")].push(d)}}}}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],h=this.getVNodeValue(u,t[a],n);0!==Object.keys(h).length&&r[p.replace("e-","")].push(h)}}}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(d.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=h,e._interopRequireWildcard=o,e.allVue=d,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})}); | ||
//# sourceMappingURL=ej2-vue-base.umd.min.js.map |
@@ -267,11 +267,6 @@ import { createElement, detach, extend, getTemplateEngine, getUniqueID, getValue, isNullOrUndefined, setTemplateEngine } from '@syncfusion/ej2-base'; | ||
} | ||
if ((/[s]\b/).test(tagRef) && innerDirValues) { | ||
if (!(/[s]\b/).test(tagName) || innerDirValues.length) { | ||
items[tagName] = tempObj; | ||
} | ||
else { | ||
items[tagName].push(tempObj); | ||
} | ||
if (((/[s]\b/).test(tagRef) && innerDirValues) && (!(/[s]\b/).test(tagName) || innerDirValues.length)) { | ||
items[tagName] = tempObj; | ||
} | ||
else { | ||
else if (tempObj && Object.keys(tempObj).length !== 0) { | ||
items[tagName].push(tempObj); | ||
@@ -278,0 +273,0 @@ } |
@@ -292,11 +292,6 @@ import { createElement, detach, extend, getTemplateEngine, getUniqueID, getValue, isNullOrUndefined, setTemplateEngine } from '@syncfusion/ej2-base'; | ||
} | ||
if ((/[s]\b/).test(tagRef) && innerDirValues) { | ||
if (!(/[s]\b/).test(tagName) || innerDirValues.length) { | ||
items[tagName] = tempObj; | ||
} | ||
else { | ||
items[tagName].push(tempObj); | ||
} | ||
if (((/[s]\b/).test(tagRef) && innerDirValues) && (!(/[s]\b/).test(tagName) || innerDirValues.length)) { | ||
items[tagName] = tempObj; | ||
} | ||
else { | ||
else if (tempObj && Object.keys(tempObj).length !== 0) { | ||
items[tagName].push(tempObj); | ||
@@ -303,0 +298,0 @@ } |
/*! | ||
* filename: ej2-vue-base.min.js | ||
* version : 20.3.47 | ||
* version : 20.3.48 | ||
* Copyright Syncfusion Inc. 2001 - 2020. All rights reserved. | ||
@@ -10,3 +10,3 @@ * Use of this code is subject to the terms of our license. | ||
*/ | ||
this.ej=this.ej||{},this.ej.vuebase=function(e,t,n,r){"use strict";function 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){if(void 0===e&&(e={}),e.props)for(var t=0,n=e.props;t<n.length;t++)!function(t){(e.newprops||(e.newprops={}))[t]={},(e.watch||(e.watch={}))[t]=function(n){this.ej2Instances[t]=n,this.dataBind&&"DateRangePickerComponent"!==e.name&&this.dataBind()}}(n[t]);return[e.newprops,e.watch]}function i(e,t){if(t)return function(t){return a(t,e)}}function a(e,t){void 0===t&&(t={}),t.name=t.name||e._componentTag||e.name;var n=e.prototype;if(t.props)for(var r=0,o=t.props;r<o.length;r++)!function(e){(t.props||(t.props={}))[e]={},(t.watch||(t.watch={}))[e]=function(n){this.ej2Instances[e]=n,this.dataBind&&"DateRangePickerComponent"!==t.name&&this.dataBind()}}(o[r]);Object.getOwnPropertyNames(n).forEach(function(e){if("constructor"!==e){if($.indexOf(e)>-1)return void(t[e]=n[e]);var r=Object.getOwnPropertyDescriptor(n,e);"function"==typeof r.value?(t.methods||(t.methods={}))[e]=r.value:(r.get||r.set)&&((t.computed||(t.computed={}))[e]={get:r.get,set:r.set})}}),Object.getOwnPropertyNames(b.prototype).forEach(function(e){if($.indexOf(e)>-1)return void(t[e]=n[e])}),(t.mixins||(t.mixins=[])).push({data:function(){return p(this,e)}});var s=e.__decorators__;s&&(s.forEach(Function(t)),delete e.__decorators__);var i=Object.getPrototypeOf(e.prototype);return(i instanceof g?i.constructor:g).extend(t)}function p(e,t){t.prototype._init=function(){var t=this,n=Object.getOwnPropertyNames(e);if(e.$options.props)for(var r in e.$options.props)e.hasOwnProperty(r)||n.push(r);n.forEach(function(n){"_"!==n.charAt(0)&&Object.defineProperty(t,n,{get:function(){return e[n]},set:function(t){return e[n]=t}})})};var n=new t,r={};return Object.keys(n).forEach(function(e){void 0!==n[e]&&(r[e]=n[e])}),r}function c(e,n){var r=this;return function(o,s,i,a,p){var c;if(s){var h=s.vueInstance?s.vueInstance.plugins:null,u=t.getUniqueID("templateParentDiv"),f=t.getUniqueID("templateDiv"),v=t.createElement("div",{id:u,innerHTML:'<div id="'+f+'"></div>'});if(document.body.appendChild(v),I||"string"!=typeof e)if(I)if("string"==typeof e){var m=l(s.vueInstance,e,p);if(!m)return t.detach(v),D(e,n)(o);new g({render:function(){return m[e]({data:o})}}).$mount("#"+f),c=v.childNodes,t.detach(v)}else{var y=e.call(r,{}),O=y.template,b=t.getValue("template.propsData",y),$={data:{data:t.extend(y.data||{},o)},parent:s.vueInstance};if(b&&(O=y.template.extends,$.propsData=b),"function"!=typeof O&&(O=g.extend(O)),new O($).$mount("#"+f),c=v.childNodes,s.vueInstance){var x=s.vueInstance.templateCollection;x||(s.vueInstance.templateCollection={},x=s.vueInstance.templateCollection),i&&(x[i]||(x[i]=[]),x[i].push(c[0]))}t.detach(v)}else{var C=y=e.call(r,{}),b=t.getValue("template.propsData",y),$={data:{data:t.extend(y.data||{},o)},parent:s.vueInstance};C.template||(C.template=C[Object.keys(C)[0]]);var V=void 0;if(C.template.extends)V=C.template.extends._context.components.template;else if(!(V=C.template._context.components[e.name])){var _=Object.keys(C.template._context.components)[0];V=C.template._context.components[_]}var P;if(b)P=Object.assign(V.data(),b);else if(P=Object.assign(V.data(),$.data),V.components)for(var M=0,N=Object.keys(V.components)||[];M<N.length;M++)!function(e){var t=V.components[e];if(t&&t.data){var n=Object.assign(t.data(),$.data);t.data=function(){return n}}}(N[M]);V.data=function(){return P};w=j.createApp(V);if(h)for(T=0;T<h.length;T++)w.use(h[T]);w.mount("grid"===s.getModuleName()?"#"+u:"#"+f),c=v.childNodes,t.detach(v)}else{var k=d(s.vueInstance,e,p);if(!k)return t.detach(v),D(e,n)(o);var w=j.createApp({render:function(){return k[e]({data:o})}});if(h)for(var T=0;T<h.length;T++)w.use(h[T]);w.mount("grid"===s.getModuleName()?"#"+u:"#"+f),c=v.childNodes,t.detach(v)}}return c||[]}}function l(e,t,n){if(e||n&&n.vueInstance)return h(n&&n.vueInstance?n.vueInstance:e,t)}function h(e,t){if(e){var n=e.$slots,r=e.$scopedSlots,o=e.scopedSlots,s=e.children;if(r&&r[t])return r;if(n&&n.default){for(var i=n.default,a=0;a<i.length;a++)if(p=h(u(i[a]),t))return p}else{if(o&&o[t])return o;if(s)for(a=0;a<s.length;a++){var p=h(u(s[a]),t);if(p)return p}}}}function u(e){var t=e.componentOptions&&e.componentOptions.children?e.componentOptions:e.data;return e.componentInstance?e.componentInstance:t}function d(e,t,n){if(e||n&&n.vueInstance)return f(n&&n.vueInstance?n.vueInstance.$slots:e.$slots,t)}function f(e,t){if(e&&e[t])return e;if(e&&e.default)for(var n=e.default(),r=0;r<n.length;r++){var o=f(n[r].children,t);if(o)return o}}var v,g=r.default,m=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),y=o(r),j=y,O=j.h,I=!(parseInt(j.version)>2),b=function(e){function n(){var t=e.call(this,arguments)||this;return t.hasInjectedModules=!1,t.hasChildDirective=!1,t.childDirObjects="",t.isDecorator=!1,t}return m(n,e),n.prototype.created=function(){var e=this;if(this.propKeys){for(var n=this,r=0,o=this.propKeys;r<o.length;r++)!function(t){n.ej2Instances.addEventListener(t,function(n){e.$emit(t,n)})}(o[r]);var s=t.getValue("$root.$options.provide",this),i=t.getValue("$parent.$options.provide",this);if(this.hasInjectedModules&&!I){var a=[];s&&s.managed?(this.isDecorator=!0,a=this.getInjectedServices()||[]):s?a=s[this.ej2Instances.getModuleName()]||[]:i&&(a=this.getInjectedServices()||[]);for(var p=0,c=this.ej2Instances.getInjectedModules()||[];p<c.length;p++){var l=c[p];-1===a.indexOf(l)&&a.push(l)}this.ej2Instances.injectedModules=a}}},n.prototype.mounted=function(){var e=this.$el?this.$el.querySelectorAll("div.e-directive"):null;if(!I&&e)for(var t=0;t<e.length;t++)e[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.$root&&this.isDecorator?e=t.getValue("$root.$options.provide",this):this.$vnode?e=t.getValue("$vnode.context.$options.provide",this):this.$parent&&(e=t.getValue("$parent.$options.provide",this)),e){var r=e;if("function"==typeof e)if(e.managed){var o=e.managed,s=Object.keys(o),i=void 0;this.$root&&this.isDecorator?i=Object.keys(this.$root):this.$vnode?i=Object.keys(this.$vnode.context):this.$parent&&(i=Object.keys(this.$parent));for(var a=0;a<s.length;a++)for(var p=0;p<i.length;p++)-1!==i[p].indexOf(s[a])&&(this.$root&&this.isDecorator?o[s[p]]=this.$root[i[a]]:this.$vnode?o[s[a]]=this.$vnode.context[i[p]]:this.$parent&&(o[s[a]]=this.$parent[i[p]]),r=o)}else this.$vnode?r=this.$vnode.context.$options.provide():this.$parent&&(r=this.$parent.$options.provide());n=r[this.ej2Instances.getModuleName()]||[]}return this.isDecorator=!1,n},n.prototype.updated=function(){if(this.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&&this.$.slots.default&&(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 h=l[c];e[h]=t[h]}},n.prototype.resolveArrayDirectives=function(e,t){var n,r=[];r=e.default?e.default():e;var o={};o[t]=[];for(var s=this,i=0,a=r;i<a.length;i++)!function(e){var r={},i=e.type.methods?e.type.methods.getTag():t;if(e.children){var a=void 0;if((n=s.resolveComplexDirs(e.children,s.tagMapper["e-"+t],i)).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(i)&&n&&(!/[s]\b/.test(t)||n.length)?o[t]=r:o[t].push(r)}(a[i]);return o},n.prototype.resolveComplexDirs=function(e,t,n){for(var r,o=[],s={},i=this,a=0,p=o=e.default?e.default():e;a<p.length;a++)!function(e){var a=void 0;t[n]&&(a=(a=Object.keys(t[n]).find(function(r){return t[n][r]===e.type.methods.getTag().replace(/[s]\b/,"")}))?a.replace("e-",""):e.type.methods.getTag().replace("e-",""),"diagram"==i.ej2Instances.getModuleName().toLowerCase()&&-1!=a.indexOf("annotations")&&(a="annotations")),e.children&&(r=i.resolveComplexInnerDirs(e.children,t[n],e.type.methods.getTag()),s[a]||(s[a]=[]),r.length>1?s[a]=r:s[a].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}(p[a]);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,h=a.componentOptions.children;l<h.length;l++){var u=h[l],d=this.getVNodeValue(u,t[p],n);0!==Object.keys(d).length&&o[c.replace("e-","")].push(d)}}}}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 h=l[c],u=this.getVNodeValue(h,t[a],n);0!==Object.keys(u).length&&r[p.replace("e-","")].push(u)}}}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=!I||parseInt(j.version)<3?n.Vue:g),$=["data","beforeCreate","created","beforeMount","mounted","beforeDestroy","destroyed","beforeUpdate","updated","activated","deactivated","render","errorCaptured"],D=t.getTemplateEngine();return t.setTemplateEngine({compile:c}),e.aVue=y,e._interopRequireWildcard=o,e.allVue=j,e.gh=O,e.isExecute=I,e.ComponentBase=b,e.$internalHooks=$,e.getProps=s,e.EJComponentDecorator=i,e.EJcomponentFactory=a,e.compile=c,e}({},ej.base,Vue3,Vue$1),this.ejs=ej; | ||
this.ej=this.ej||{},this.ej.vuebase=function(e,t,n,r){"use strict";function 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){if(void 0===e&&(e={}),e.props)for(var t=0,n=e.props;t<n.length;t++)!function(t){(e.newprops||(e.newprops={}))[t]={},(e.watch||(e.watch={}))[t]=function(n){this.ej2Instances[t]=n,this.dataBind&&"DateRangePickerComponent"!==e.name&&this.dataBind()}}(n[t]);return[e.newprops,e.watch]}function i(e,t){if(t)return function(t){return a(t,e)}}function a(e,t){void 0===t&&(t={}),t.name=t.name||e._componentTag||e.name;var n=e.prototype;if(t.props)for(var r=0,o=t.props;r<o.length;r++)!function(e){(t.props||(t.props={}))[e]={},(t.watch||(t.watch={}))[e]=function(n){this.ej2Instances[e]=n,this.dataBind&&"DateRangePickerComponent"!==t.name&&this.dataBind()}}(o[r]);Object.getOwnPropertyNames(n).forEach(function(e){if("constructor"!==e){if($.indexOf(e)>-1)return void(t[e]=n[e]);var r=Object.getOwnPropertyDescriptor(n,e);"function"==typeof r.value?(t.methods||(t.methods={}))[e]=r.value:(r.get||r.set)&&((t.computed||(t.computed={}))[e]={get:r.get,set:r.set})}}),Object.getOwnPropertyNames(b.prototype).forEach(function(e){if($.indexOf(e)>-1)return void(t[e]=n[e])}),(t.mixins||(t.mixins=[])).push({data:function(){return p(this,e)}});var s=e.__decorators__;s&&(s.forEach(Function(t)),delete e.__decorators__);var i=Object.getPrototypeOf(e.prototype);return(i instanceof g?i.constructor:g).extend(t)}function p(e,t){t.prototype._init=function(){var t=this,n=Object.getOwnPropertyNames(e);if(e.$options.props)for(var r in e.$options.props)e.hasOwnProperty(r)||n.push(r);n.forEach(function(n){"_"!==n.charAt(0)&&Object.defineProperty(t,n,{get:function(){return e[n]},set:function(t){return e[n]=t}})})};var n=new t,r={};return Object.keys(n).forEach(function(e){void 0!==n[e]&&(r[e]=n[e])}),r}function c(e,n){var r=this;return function(o,s,i,a,p){var c;if(s){var h=s.vueInstance?s.vueInstance.plugins:null,u=t.getUniqueID("templateParentDiv"),f=t.getUniqueID("templateDiv"),v=t.createElement("div",{id:u,innerHTML:'<div id="'+f+'"></div>'});if(document.body.appendChild(v),I||"string"!=typeof e)if(I)if("string"==typeof e){var m=l(s.vueInstance,e,p);if(!m)return t.detach(v),D(e,n)(o);new g({render:function(){return m[e]({data:o})}}).$mount("#"+f),c=v.childNodes,t.detach(v)}else{var y=e.call(r,{}),O=y.template,b=t.getValue("template.propsData",y),$={data:{data:t.extend(y.data||{},o)},parent:s.vueInstance};if(b&&(O=y.template.extends,$.propsData=b),"function"!=typeof O&&(O=g.extend(O)),new O($).$mount("#"+f),c=v.childNodes,s.vueInstance){var x=s.vueInstance.templateCollection;x||(s.vueInstance.templateCollection={},x=s.vueInstance.templateCollection),i&&(x[i]||(x[i]=[]),x[i].push(c[0]))}t.detach(v)}else{var C=y=e.call(r,{}),b=t.getValue("template.propsData",y),$={data:{data:t.extend(y.data||{},o)},parent:s.vueInstance};C.template||(C.template=C[Object.keys(C)[0]]);var V=void 0;if(C.template.extends)V=C.template.extends._context.components.template;else if(!(V=C.template._context.components[e.name])){var _=Object.keys(C.template._context.components)[0];V=C.template._context.components[_]}var P;if(b)P=Object.assign(V.data(),b);else if(P=Object.assign(V.data(),$.data),V.components)for(var M=0,k=Object.keys(V.components)||[];M<k.length;M++)!function(e){var t=V.components[e];if(t&&t.data){var n=Object.assign(t.data(),$.data);t.data=function(){return n}}}(k[M]);V.data=function(){return P};w=j.createApp(V);if(h)for(T=0;T<h.length;T++)w.use(h[T]);w.mount("grid"===s.getModuleName()?"#"+u:"#"+f),c=v.childNodes,t.detach(v)}else{var N=d(s.vueInstance,e,p);if(!N)return t.detach(v),D(e,n)(o);var w=j.createApp({render:function(){return N[e]({data:o})}});if(h)for(var T=0;T<h.length;T++)w.use(h[T]);w.mount("grid"===s.getModuleName()?"#"+u:"#"+f),c=v.childNodes,t.detach(v)}}return c||[]}}function l(e,t,n){if(e||n&&n.vueInstance)return h(n&&n.vueInstance?n.vueInstance:e,t)}function h(e,t){if(e){var n=e.$slots,r=e.$scopedSlots,o=e.scopedSlots,s=e.children;if(r&&r[t])return r;if(n&&n.default){for(var i=n.default,a=0;a<i.length;a++)if(p=h(u(i[a]),t))return p}else{if(o&&o[t])return o;if(s)for(a=0;a<s.length;a++){var p=h(u(s[a]),t);if(p)return p}}}}function u(e){var t=e.componentOptions&&e.componentOptions.children?e.componentOptions:e.data;return e.componentInstance?e.componentInstance:t}function d(e,t,n){if(e||n&&n.vueInstance)return f(n&&n.vueInstance?n.vueInstance.$slots:e.$slots,t)}function f(e,t){if(e&&e[t])return e;if(e&&e.default)for(var n=e.default(),r=0;r<n.length;r++){var o=f(n[r].children,t);if(o)return o}}var v,g=r.default,m=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),y=o(r),j=y,O=j.h,I=!(parseInt(j.version)>2),b=function(e){function n(){var t=e.call(this,arguments)||this;return t.hasInjectedModules=!1,t.hasChildDirective=!1,t.childDirObjects="",t.isDecorator=!1,t}return m(n,e),n.prototype.created=function(){var e=this;if(this.propKeys){for(var n=this,r=0,o=this.propKeys;r<o.length;r++)!function(t){n.ej2Instances.addEventListener(t,function(n){e.$emit(t,n)})}(o[r]);var s=t.getValue("$root.$options.provide",this),i=t.getValue("$parent.$options.provide",this);if(this.hasInjectedModules&&!I){var a=[];s&&s.managed?(this.isDecorator=!0,a=this.getInjectedServices()||[]):s?a=s[this.ej2Instances.getModuleName()]||[]:i&&(a=this.getInjectedServices()||[]);for(var p=0,c=this.ej2Instances.getInjectedModules()||[];p<c.length;p++){var l=c[p];-1===a.indexOf(l)&&a.push(l)}this.ej2Instances.injectedModules=a}}},n.prototype.mounted=function(){var e=this.$el?this.$el.querySelectorAll("div.e-directive"):null;if(!I&&e)for(var t=0;t<e.length;t++)e[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.$root&&this.isDecorator?e=t.getValue("$root.$options.provide",this):this.$vnode?e=t.getValue("$vnode.context.$options.provide",this):this.$parent&&(e=t.getValue("$parent.$options.provide",this)),e){var r=e;if("function"==typeof e)if(e.managed){var o=e.managed,s=Object.keys(o),i=void 0;this.$root&&this.isDecorator?i=Object.keys(this.$root):this.$vnode?i=Object.keys(this.$vnode.context):this.$parent&&(i=Object.keys(this.$parent));for(var a=0;a<s.length;a++)for(var p=0;p<i.length;p++)-1!==i[p].indexOf(s[a])&&(this.$root&&this.isDecorator?o[s[p]]=this.$root[i[a]]:this.$vnode?o[s[a]]=this.$vnode.context[i[p]]:this.$parent&&(o[s[a]]=this.$parent[i[p]]),r=o)}else this.$vnode?r=this.$vnode.context.$options.provide():this.$parent&&(r=this.$parent.$options.provide());n=r[this.ej2Instances.getModuleName()]||[]}return this.isDecorator=!1,n},n.prototype.updated=function(){if(this.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&&this.$.slots.default&&(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 h=l[c];e[h]=t[h]}},n.prototype.resolveArrayDirectives=function(e,t){var n,r=[];r=e.default?e.default():e;var o={};o[t]=[];for(var s=this,i=0,a=r;i<a.length;i++)!function(e){var r={},i=e.type.methods?e.type.methods.getTag():t;if(e.children){var a=void 0;if((n=s.resolveComplexDirs(e.children,s.tagMapper["e-"+t],i)).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(i)&&n&&(!/[s]\b/.test(t)||n.length)?o[t]=r:r&&0!==Object.keys(r).length&&o[t].push(r)}(a[i]);return o},n.prototype.resolveComplexDirs=function(e,t,n){for(var r,o=[],s={},i=this,a=0,p=o=e.default?e.default():e;a<p.length;a++)!function(e){var a=void 0;t[n]&&(a=(a=Object.keys(t[n]).find(function(r){return t[n][r]===e.type.methods.getTag().replace(/[s]\b/,"")}))?a.replace("e-",""):e.type.methods.getTag().replace("e-",""),"diagram"==i.ej2Instances.getModuleName().toLowerCase()&&-1!=a.indexOf("annotations")&&(a="annotations")),e.children&&(r=i.resolveComplexInnerDirs(e.children,t[n],e.type.methods.getTag()),s[a]||(s[a]=[]),r.length>1?s[a]=r:s[a].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}(p[a]);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,h=a.componentOptions.children;l<h.length;l++){var u=h[l],d=this.getVNodeValue(u,t[p],n);0!==Object.keys(d).length&&o[c.replace("e-","")].push(d)}}}}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 h=l[c],u=this.getVNodeValue(h,t[a],n);0!==Object.keys(u).length&&r[p.replace("e-","")].push(u)}}}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=!I||parseInt(j.version)<3?n.Vue:g),$=["data","beforeCreate","created","beforeMount","mounted","beforeDestroy","destroyed","beforeUpdate","updated","activated","deactivated","render","errorCaptured"],D=t.getTemplateEngine();return t.setTemplateEngine({compile:c}),e.aVue=y,e._interopRequireWildcard=o,e.allVue=j,e.gh=O,e.isExecute=I,e.ComponentBase=b,e.$internalHooks=$,e.getProps=s,e.EJComponentDecorator=i,e.EJcomponentFactory=a,e.compile=c,e}({},ej.base,Vue3,Vue$1),this.ejs=ej; | ||
//# sourceMappingURL=ej2-vue-base.min.js.map |
/*! | ||
* filename: index.d.ts | ||
* version : 20.3.47 | ||
* version : 20.3.48 | ||
* Copyright Syncfusion Inc. 2001 - 2020. All rights reserved. | ||
@@ -5,0 +5,0 @@ * Use of this code is subject to the terms of our license. |
@@ -5,3 +5,3 @@ { | ||
"_inBundle": false, | ||
"_integrity": "sha512-NaBHXj4gqMoBmS7FI2jCgw/lnbY/gI75dbh4Y9mOj9kpIuxFb/hwkNDxsA8ITtpXGM5avxX/5dhYx2bYEpWrfg==", | ||
"_integrity": "sha512-gpf0Q05aJIKl1PNxGeoxzWx0dWVAS+J8i9w/lOhFws3w3qoCXiynPVLdsoAsK9XZC70PUeriSAatet6geHfTOw==", | ||
"_location": "/@syncfusion/ej2-vue-base", | ||
@@ -22,3 +22,2 @@ "_phantomChildren": {}, | ||
"/", | ||
"/@syncfusion/ej2-vue-barcode-generator", | ||
"/@syncfusion/ej2-vue-buttons", | ||
@@ -31,30 +30,14 @@ "/@syncfusion/ej2-vue-calendars", | ||
"/@syncfusion/ej2-vue-dropdowns", | ||
"/@syncfusion/ej2-vue-filemanager", | ||
"/@syncfusion/ej2-vue-gantt", | ||
"/@syncfusion/ej2-vue-grids", | ||
"/@syncfusion/ej2-vue-heatmap", | ||
"/@syncfusion/ej2-vue-image-editor", | ||
"/@syncfusion/ej2-vue-inplace-editor", | ||
"/@syncfusion/ej2-vue-inputs", | ||
"/@syncfusion/ej2-vue-kanban", | ||
"/@syncfusion/ej2-vue-layouts", | ||
"/@syncfusion/ej2-vue-lineargauge", | ||
"/@syncfusion/ej2-vue-lists", | ||
"/@syncfusion/ej2-vue-maps", | ||
"/@syncfusion/ej2-vue-navigations", | ||
"/@syncfusion/ej2-vue-notifications", | ||
"/@syncfusion/ej2-vue-pdfviewer", | ||
"/@syncfusion/ej2-vue-pivotview", | ||
"/@syncfusion/ej2-vue-popups", | ||
"/@syncfusion/ej2-vue-progressbar", | ||
"/@syncfusion/ej2-vue-querybuilder", | ||
"/@syncfusion/ej2-vue-richtexteditor", | ||
"/@syncfusion/ej2-vue-schedule", | ||
"/@syncfusion/ej2-vue-splitbuttons", | ||
"/@syncfusion/ej2-vue-spreadsheet", | ||
"/@syncfusion/ej2-vue-treegrid", | ||
"/@syncfusion/ej2-vue-treemap" | ||
"/@syncfusion/ej2-vue-treegrid" | ||
], | ||
"_resolved": "http://nexus.syncfusion.com/repository/ej2-release/@syncfusion/ej2-vue-base/-/ej2-vue-base-19.3.53.tgz", | ||
"_shasum": "7145561580892b26980415c3511e2d13d18fb5b5", | ||
"_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-vue-base/-/ej2-vue-base-19.3.53.tgz", | ||
"_shasum": "bfe7f88dcd36eb1c07a59b9833b39087873a430c", | ||
"_spec": "@syncfusion/ej2-vue-base@*", | ||
@@ -70,3 +53,3 @@ "_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included", | ||
"dependencies": { | ||
"@syncfusion/ej2-base": "~20.3.47", | ||
"@syncfusion/ej2-base": "~20.3.48", | ||
"glob": "^7.0.5" | ||
@@ -101,4 +84,4 @@ }, | ||
"typings": "index.d.ts", | ||
"version": "20.3.47", | ||
"version": "20.3.48", | ||
"sideEffects": true | ||
} |
@@ -291,11 +291,6 @@ /** | ||
} | ||
if ((/[s]\b/).test(tagRef) && innerDirValues) { | ||
if (!(/[s]\b/).test(tagName) || innerDirValues.length) { | ||
items[tagName] = tempObj; | ||
} | ||
else { | ||
items[tagName].push(tempObj); | ||
} | ||
if (((/[s]\b/).test(tagRef) && innerDirValues) && (!(/[s]\b/).test(tagName) || innerDirValues.length)) { | ||
items[tagName] = tempObj; | ||
} | ||
else { | ||
else if (tempObj && Object.keys(tempObj).length !== 0) { | ||
items[tagName].push(tempObj); | ||
@@ -302,0 +297,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
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
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
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
400296
2879