@syncfusion/ej2-vue-base 25.2.3 → 26.1.35-750253
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/.eslintrc.json +261 -0
- package/dist/ej2-vue-base.umd.min.js +2 -2
- package/dist/ej2-vue-base.umd.min.js.map +1 -1
- package/dist/es6/ej2-vue-base.es2015.js +255 -143
- package/dist/es6/ej2-vue-base.es2015.js.map +1 -1
- package/dist/es6/ej2-vue-base.es5.js +194 -80
- package/dist/es6/ej2-vue-base.es5.js.map +1 -1
- package/dist/global/ej2-vue-base.min.js +2 -2
- package/dist/global/ej2-vue-base.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +11 -8
- package/src/component-base.d.ts +12 -4
- package/src/component-base.js +89 -47
- package/src/template.d.ts +7 -0
- package/src/template.js +110 -28
- package/tslint.json +111 -0
- package/CHANGELOG.md +0 -348
package/.eslintrc.json
ADDED
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
{
|
|
2
|
+
"env": {
|
|
3
|
+
"browser": true,
|
|
4
|
+
"es2021": true
|
|
5
|
+
},
|
|
6
|
+
"extends": [
|
|
7
|
+
"eslint:recommended",
|
|
8
|
+
"plugin:@typescript-eslint/recommended",
|
|
9
|
+
"plugin:jsdoc/recommended",
|
|
10
|
+
"plugin:security/recommended"
|
|
11
|
+
],
|
|
12
|
+
"parser": "@typescript-eslint/parser",
|
|
13
|
+
"parserOptions": {
|
|
14
|
+
"ecmaFeatures": { "js": true },
|
|
15
|
+
"ecmaVersion": 2018,
|
|
16
|
+
"project": "./tsconfig.json",
|
|
17
|
+
"sourceType": "module"
|
|
18
|
+
},
|
|
19
|
+
"ignorePatterns": ["*.d.ts", "*.js"],
|
|
20
|
+
"plugins": [
|
|
21
|
+
"@typescript-eslint",
|
|
22
|
+
"@typescript-eslint/tslint",
|
|
23
|
+
"eslint-plugin-security",
|
|
24
|
+
"jsdoc"
|
|
25
|
+
],
|
|
26
|
+
"rules": {
|
|
27
|
+
"use-isnan": "error",
|
|
28
|
+
"security/detect-unsafe-regex":"error",
|
|
29
|
+
"security/detect-buffer-noassert":"error",
|
|
30
|
+
"security/detect-child-process":"error",
|
|
31
|
+
"security/detect-disable-mustache-escape":"error",
|
|
32
|
+
"security/detect-eval-with-expression":"error",
|
|
33
|
+
"security/detect-no-csrf-before-method-override":"error",
|
|
34
|
+
"security/detect-non-literal-fs-filename":"error",
|
|
35
|
+
"security/detect-non-literal-regexp":"error",
|
|
36
|
+
"security/detect-non-literal-require":"error",
|
|
37
|
+
"security/detect-object-injection":"error",
|
|
38
|
+
"security/detect-possible-timing-attacks":"error",
|
|
39
|
+
"security/detect-pseudoRandomBytes":"error",
|
|
40
|
+
"security/detect-new-buffer":"error",
|
|
41
|
+
"security/detect-bidi-characters":"error",
|
|
42
|
+
"@typescript-eslint/no-inferrable-types": "off",
|
|
43
|
+
"@typescript-eslint/ban-types": ["warn", {
|
|
44
|
+
"types": {
|
|
45
|
+
"Object": false,
|
|
46
|
+
"object": false,
|
|
47
|
+
"{}": false,
|
|
48
|
+
"Function": false
|
|
49
|
+
}
|
|
50
|
+
}],
|
|
51
|
+
"jsdoc/check-tag-names": 0,
|
|
52
|
+
"@typescript-eslint/tslint/config": [
|
|
53
|
+
"error",
|
|
54
|
+
{
|
|
55
|
+
"rules": {
|
|
56
|
+
"ban": true,
|
|
57
|
+
"chai-vague-errors": true,
|
|
58
|
+
"max-func-body-length": [
|
|
59
|
+
true,
|
|
60
|
+
120,
|
|
61
|
+
{
|
|
62
|
+
"ignore-parameters-to-function-regex": "describe"
|
|
63
|
+
}
|
|
64
|
+
],
|
|
65
|
+
"missing-jsdoc": true,
|
|
66
|
+
"no-backbone-get-set-outside-model": false,
|
|
67
|
+
"no-cookies": false,
|
|
68
|
+
"no-delete-expression": false,
|
|
69
|
+
"no-disable-auto-sanitization": true,
|
|
70
|
+
"no-duplicate-case": true,
|
|
71
|
+
"no-duplicate-parameter-names": true,
|
|
72
|
+
"no-empty-interfaces": false,
|
|
73
|
+
"no-exec-script": true,
|
|
74
|
+
"no-function-expression": false,
|
|
75
|
+
"no-multiple-var-decl": false,
|
|
76
|
+
"no-string-based-set-immediate": false,
|
|
77
|
+
"no-string-based-set-interval": false,
|
|
78
|
+
"no-unnecessary-bind": false,
|
|
79
|
+
"no-unused-imports": true,
|
|
80
|
+
"no-with-statement": false,
|
|
81
|
+
"prefer-array-literal": false,
|
|
82
|
+
"typedef": [
|
|
83
|
+
true,
|
|
84
|
+
"call-signature",
|
|
85
|
+
"parameter",
|
|
86
|
+
"property-declaration",
|
|
87
|
+
"variable-declaration",
|
|
88
|
+
"arrow-parameter",
|
|
89
|
+
"member-variable-declaration"
|
|
90
|
+
],
|
|
91
|
+
"use-named-parameter": false,
|
|
92
|
+
"valid-typeof": true,
|
|
93
|
+
"whitespace": [
|
|
94
|
+
true,
|
|
95
|
+
"check-branch",
|
|
96
|
+
"check-decl",
|
|
97
|
+
"check-operator",
|
|
98
|
+
"check-separator",
|
|
99
|
+
"check-type"
|
|
100
|
+
]
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
],
|
|
104
|
+
"no-control-regex": "error",
|
|
105
|
+
"no-constant-condition": "error",
|
|
106
|
+
"no-invalid-regexp": "error",
|
|
107
|
+
"curly": "error",
|
|
108
|
+
"eol-last": [
|
|
109
|
+
"error",
|
|
110
|
+
"always"
|
|
111
|
+
],
|
|
112
|
+
"guard-for-in": "error",
|
|
113
|
+
"no-labels": "error",
|
|
114
|
+
"max-len": [
|
|
115
|
+
"error",
|
|
116
|
+
{
|
|
117
|
+
"code": 140,
|
|
118
|
+
"tabWidth": 4,
|
|
119
|
+
"ignoreComments": true,
|
|
120
|
+
"ignoreStrings": true,
|
|
121
|
+
"ignoreTemplateLiterals": true,
|
|
122
|
+
"ignoreRegExpLiterals": true
|
|
123
|
+
}
|
|
124
|
+
],
|
|
125
|
+
"no-console": [
|
|
126
|
+
"error",
|
|
127
|
+
{
|
|
128
|
+
"allow": [
|
|
129
|
+
"warn",
|
|
130
|
+
"dir",
|
|
131
|
+
"timeLog",
|
|
132
|
+
"assert",
|
|
133
|
+
"clear",
|
|
134
|
+
"count",
|
|
135
|
+
"countReset",
|
|
136
|
+
"group",
|
|
137
|
+
"groupEnd",
|
|
138
|
+
"table",
|
|
139
|
+
"dirxml",
|
|
140
|
+
"error",
|
|
141
|
+
"groupCollapsed",
|
|
142
|
+
"Console",
|
|
143
|
+
"profile",
|
|
144
|
+
"profileEnd",
|
|
145
|
+
"timeStamp",
|
|
146
|
+
"context"
|
|
147
|
+
]
|
|
148
|
+
}
|
|
149
|
+
],
|
|
150
|
+
"no-redeclare": [
|
|
151
|
+
"error",
|
|
152
|
+
{
|
|
153
|
+
"builtinGlobals": true
|
|
154
|
+
}
|
|
155
|
+
],
|
|
156
|
+
"@typescript-eslint/no-parameter-properties": "error",
|
|
157
|
+
"@typescript-eslint/indent": [
|
|
158
|
+
"error",
|
|
159
|
+
4,
|
|
160
|
+
{
|
|
161
|
+
"CallExpression": {
|
|
162
|
+
"arguments": "first"
|
|
163
|
+
},
|
|
164
|
+
"FunctionDeclaration": {
|
|
165
|
+
"parameters": "first"
|
|
166
|
+
},
|
|
167
|
+
"FunctionExpression": {
|
|
168
|
+
"parameters": "first"
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
],
|
|
172
|
+
"no-debugger": "error",
|
|
173
|
+
"no-eval": "error",
|
|
174
|
+
"no-extra-semi": "error",
|
|
175
|
+
"no-throw-literal": "error",
|
|
176
|
+
"no-fallthrough": "error",
|
|
177
|
+
"comma-dangle": [
|
|
178
|
+
"error",
|
|
179
|
+
"never"
|
|
180
|
+
],
|
|
181
|
+
"no-trailing-spaces": "error",
|
|
182
|
+
"@typescript-eslint/no-unused-expressions": "error",
|
|
183
|
+
"@typescript-eslint/no-var-requires": "error",
|
|
184
|
+
"one-var": [
|
|
185
|
+
"error",
|
|
186
|
+
"never"
|
|
187
|
+
],
|
|
188
|
+
"@typescript-eslint/no-explicit-any": "warn",
|
|
189
|
+
"no-cond-assign": [
|
|
190
|
+
"error",
|
|
191
|
+
"always"
|
|
192
|
+
],
|
|
193
|
+
"@typescript-eslint/consistent-type-assertions": "off",
|
|
194
|
+
"jsdoc/check-alignment": "error",
|
|
195
|
+
"no-empty": "error",
|
|
196
|
+
"quotes": [
|
|
197
|
+
"error",
|
|
198
|
+
"single"
|
|
199
|
+
],
|
|
200
|
+
"semi": [
|
|
201
|
+
"error",
|
|
202
|
+
"always"
|
|
203
|
+
],
|
|
204
|
+
"eqeqeq": [
|
|
205
|
+
"error",
|
|
206
|
+
"smart"
|
|
207
|
+
],
|
|
208
|
+
"valid-typeof": [
|
|
209
|
+
"error",
|
|
210
|
+
{
|
|
211
|
+
"requireStringLiterals": true
|
|
212
|
+
}
|
|
213
|
+
],
|
|
214
|
+
"camelcase": [
|
|
215
|
+
"error",
|
|
216
|
+
{
|
|
217
|
+
"properties": "always",
|
|
218
|
+
"ignoreDestructuring": true,
|
|
219
|
+
"ignoreImports": true
|
|
220
|
+
}
|
|
221
|
+
],
|
|
222
|
+
"no-irregular-whitespace": [
|
|
223
|
+
"error",
|
|
224
|
+
{
|
|
225
|
+
"skipStrings": true,
|
|
226
|
+
"skipComments": true,
|
|
227
|
+
"skipRegExps": true,
|
|
228
|
+
"skipTemplates": true
|
|
229
|
+
}
|
|
230
|
+
],
|
|
231
|
+
"valid-jsdoc": [
|
|
232
|
+
"error",
|
|
233
|
+
{
|
|
234
|
+
"prefer": {
|
|
235
|
+
"arg": "param",
|
|
236
|
+
"argument": "param",
|
|
237
|
+
"class": "constructor",
|
|
238
|
+
"return": "returns",
|
|
239
|
+
"virtual": "abstract"
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
],
|
|
243
|
+
"no-var": "error",
|
|
244
|
+
"radix": "error"
|
|
245
|
+
},
|
|
246
|
+
"reportUnusedDisableDirectives": true,
|
|
247
|
+
"overrides": [
|
|
248
|
+
{
|
|
249
|
+
"files": [
|
|
250
|
+
"node_modules",
|
|
251
|
+
"dist",
|
|
252
|
+
"public",
|
|
253
|
+
"coverage",
|
|
254
|
+
"test-report"
|
|
255
|
+
],
|
|
256
|
+
"rules": {
|
|
257
|
+
"no-unused-expressions": "off"
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
]
|
|
261
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: ej2-vue-base.umd.min.js
|
|
3
|
-
* version :
|
|
3
|
+
* version : 26.1.35
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2023. All rights reserved.
|
|
5
5
|
* Use of this code is subject to the terms of our license.
|
|
6
6
|
* A copy of the current license can be obtained at any time by e-mailing
|
|
7
7
|
* licensing@syncfusion.com. Any infringement will be prosecuted under
|
|
8
8
|
* applicable laws.
|
|
9
9
|
*/
|
|
10
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("@syncfusion/ej2-base")):"function"==typeof define&&define.amd?define(["exports","vue","@syncfusion/ej2-base"],t):t(e.ej={},e.Vue,e.ej2Base)}(this,function(e,t,n){"use strict";function s(e,t){var s=this;return function(i,p,d,h,u){var v;if(p){var m=p.vueInstance&&p.vueInstance.plugins?{plugins:p.vueInstance.plugins}:{},I=n.getUniqueID("templateParentDiv"),j=n.getUniqueID("templateDiv"),O=n.createElement("div",{id:I,innerHTML:'<div id="'+j+'"></div>'});if(document.body.appendChild(O),!l&&("string"==typeof e||e.prototype&&e.prototype.CSPTemplate&&"function"==typeof e)){var y=function(e,t,n){if(!(e||n&&n.vueInstance))return;return o(n&&n.vueInstance?n.vueInstance.$slots:e.$slots,t)}(p.vueInstance,e,u);if(!y)return n.detach(O),g(e,t)(i);var C=c.createVNode({render:function(){return y[""+e]({data:i})}},m);O.innerHTML="",r(C,p.vueInstance,u),c.render(C,O),v=O.childNodes,n.detach(O)}else if(l)if("string"==typeof e||e.prototype&&e.prototype.CSPTemplate&&"function"==typeof e){var b=function(e,t,n){if(!(e||n&&n.vueInstance))return;return a(n&&n.vueInstance?n.vueInstance:e,t)}(p.vueInstance,e,u);if(!b)return n.detach(O),g(e,t)(i);var $={},x=function(e){e.$parent&&x(e.$parent),e._provided&&Object.keys(e._provided).length>0&&($=f({},$,e._provided))},V=p.vueInstance?p.vueInstance:u&&u.vueInstance?u.vueInstance:null;V&&x(V);new c({provide:f({},$),render:function(){return b[""+e]({data:i})}}).$mount("#"+j),v=O.childNodes,n.detach(O)}else{var N=(D=e.call(s,{})).template,M=(S=n.getValue("template.propsData",D),{data:{data:n.extend(D.data||{},i)},parent:p.vueInstance});S&&(N=D.template.extends,M.propsData=S),"function"!=typeof N&&(N=c.extend(N)),N.options.setup&&(M.propsData=Object.assign(M.propsData||{},i));if(new N(M).$mount("#"+j),v=O.childNodes,p.vueInstance){(E=p.vueInstance.templateCollection)||(p.vueInstance.templateCollection={},E=p.vueInstance.templateCollection),d&&(E[""+d]||(E[""+d]=[]),E[""+d].push(v[0]))}n.detach(O)}else{var D,k=D=e.call(s,{}),S=n.getValue("template.propsData",D),T={data:{data:n.extend(D.data||{},i)},parent:p.vueInstance};k.template||(k.template=k[Object.keys(k)[0]]);var P=void 0;if(k.template.extends)P=k.template.extends._context.components.template;else if(!(P=k.template._context.components[e.name])){var w=Object.keys(k.template._context.components)[0];P=k.template._context.components[""+w]}var _;if(S)_=P.setup?Object.assign({},S):Object.assign(P.data(),S);else if(_=P.setup?Object.assign({},T.data):Object.assign(P.data(),T.data),P.components)for(var U=function(e){var t=P.components[""+e];t&&t.data&&(t.__data||(t.__data=t.data),t.data=function(e){return Object.assign(t.__data.call(e),T.data)})},L=0,A=Object.keys(P.components)||[];L<A.length;L++){U(A[L])}P.setup&&(m=Object.assign(m,i)),P.data=function(){return _};C=c.createVNode(P,m);if(O.innerHTML="",r(C,p.vueInstance,u),c.render(C,O),v=O.childNodes,p.vueInstance){var E;(E=p.vueInstance.templateCollection)||(p.vueInstance.templateCollection={},E=p.vueInstance.templateCollection),d&&(E[""+d]||(E[""+d]=[]),E[""+d].push(v[0]))}n.detach(O)}}return v||[]}}function r(e,t,n){var s=t||(n&&n.vueInstance?n.vueInstance:null);if(s){e.appContext=s.$.appContext;var r={},a=function(e){e.$&&e.$.parent&&a(e.$.parent),e.provides&&Object.keys(e.provides).length>0&&(r=f({},r,e.provides))};a(s),e.appContext.provides&&(e.appContext.provides=f({},e.appContext.provides,r))}}function a(e,t){if(e){var n=e.$slots,s=e.$scopedSlots,r=e.scopedSlots,o=e.children;if(s&&s[""+t])return s;if(n&&n.default)for(var p=n.default,l=0;l<p.length;l++){if(c=a(i(p[parseInt(l.toString(),10)]),t))return c}else{if(r&&r[""+t])return r;if(o)for(l=0;l<o.length;l++){var c;if(c=a(i(o[parseInt(l.toString(),10)]),t))return c}}}}function i(e){var t=e.componentOptions&&e.componentOptions.children?e.componentOptions:e.data||"e-markersettings"!==e.tag&&"e-markersetting"!==e.tag?e.data:e;return e.componentInstance?e.componentInstance:t}function o(e,t){if(e&&e[""+t])return e;if(e&&e.default){var n=e.default();n=n.flatMap(function(e){return Array.isArray(e.children)?e.children:e});for(var s=0;s<n.length;s++){var r=o(n[parseInt(s.toString(),10)].children,t);if(r)return r}}}var p=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[""+n]=e[""+n]);return t.default=e,t}(t),l=!(parseInt(p.version)>2),c=l?p.default.default?p.default.default:p.default:p,d=p.h,h=function(e){return l?c.extend(e):c.defineComponent(e)},u=h({name:"ComponentBase",data:function(){return{tagMapper:{},tagNameMapper:{},hasInjectedModules:!1,hasChildDirective:!1,childDirObjects:"",propKeys:{},isDecorator:!1}},created:function(){var e=this;if(this.ej2Instance&&(this.ej2Instances=this.isVue3?c.toRaw(this.ej2Instance):this.ej2Instance),this.propKeys){for(var t=function(t){s.ej2Instances.addEventListener(t,function(n){e.$emit(t,n)})},s=this,r=0,a=this.propKeys;r<a.length;r++){t(a[r])}var i=n.getValue("$root.$options.provide",this),o=n.getValue("$parent.$options.provide",this);if(o=n.isNullOrUndefined(o)?n.getValue("$.parent.provides",this):o,this.hasInjectedModules&&!l){var p=[];i&&i.managed?(this.isDecorator=!0,p=this.getInjectedServices()||[]):i?p=i[this.ej2Instances.getModuleName()]||[]:o&&(p=this.getInjectedServices()||[]);for(var d=0,h=this.ej2Instances.getInjectedModules()||[];d<h.length;d++){var u=h[d];-1===p.indexOf(u)&&p.push(u)}this.ej2Instances.injectedModules=p}}},mounted:function(){var e=this.$el?this.$el.querySelectorAll("div.e-directive"):null;if(!l&&e)for(var t=0;t<e.length;t++)e[parseInt(t.toString(),10)].parentElement&&e[parseInt(t.toString(),10)].parentElement.removeChild(e[parseInt(t.toString(),10)]);this.ej2Instances.isVue=!0,this.ej2Instances.isVue3=this.isVue3,this.ej2Instances.vueInstance=this,this.isVue3&&(this.ej2Instances.ej2Instances=this.ej2Instances,this.ej2Instances.referModels=this.models,this.setModelValue()),this.ej2Instances.appendTo(this.$el)},updated:function(){this.updated()},beforeDestroy:function(){this.destroyComponent()},beforeUnmount:function(){this.destroyComponent()},methods:{setModelValue:function(){if(!n.isNullOrUndefined(this.modelValue)||!n.isNullOrUndefined(this.$attrs.modelValue)){var e=(this.models.toString().match(/checked|value/)||[])[0];n.isNullOrUndefined(e)||(this.ej2Instances[""+e]=n.isNullOrUndefined(this.modelValue)?this.$attrs.modelValue:this.modelValue)}},updated:function(){if(this.isVue3&&this.setModelValue(),this.hasChildDirective){var e={};this.fetchChildPropValues(e);var t=JSON.stringify(e);this.childDirObjects!==t&&(this.childDirObjects=t,this.assignValueToWrapper(e,!1))}},getInjectedServices:function(){var e,t=[];if(this.$root&&this.isDecorator?e=n.getValue("$root.$options.provide",this):this.$vnode?e=n.getValue("$vnode.context.$options.provide",this):this.$parent&&(e=n.getValue("$parent.$options.provide",this)),n.isNullOrUndefined(e)&&!n.isNullOrUndefined(this.$)&&(e=n.getValue("$.parent.provides",this)),e){var s=e;if("function"==typeof e)if(e.managed){var r=e.managed,a=Object.keys(r),i=void 0;this.$root&&this.isDecorator?i=Object.keys(this.$root):this.$vnode?i=Object.keys(this.$vnode.context):this.$parent&&(i=Object.keys(this.$parent));for(var o=0;o<a.length;o++)for(var p=0;p<i.length;p++)-1!==i[parseInt(p.toString(),10)].indexOf(a[parseInt(o.toString(),10)])&&(this.$root&&this.isDecorator?r[a[parseInt(p.toString(),10)]]=this.$root[i[parseInt(o.toString(),10)]]:this.$vnode?r[a[parseInt(o.toString(),10)]]=this.$vnode.context[i[parseInt(p.toString(),10)]]:this.$parent&&(r[a[parseInt(o.toString(),10)]]=this.$parent[i[parseInt(p.toString(),10)]]),s=r)}else this.$vnode?s=this.$vnode.context.$options.provide():this.$parent&&(s=this.$parent.$options.provide());t=s[this.ej2Instances.getModuleName()]||[]}return this.isDecorator=!1,t},destroyComponent:function(){var e=this;e.ej2Instances.destroy(),e.$el.style.visibility="hidden",e=null},bindProperties:function(){for(var e={},t=0,s=this.propKeys;t<s.length;t++){var r=s[t];n.isNullOrUndefined(this[""+r])?!this[0]||n.isNullOrUndefined(this[0][0])||n.isNullOrUndefined(this[0][0][""+r])||(e[""+r]=this[0][0][""+r]):e[""+r]=this[""+r]}if(this.hasChildDirective&&this.fetchChildPropValues(e),this.hasInjectedModules){for(var a=this.getInjectedServices()||[],i=0,o=this.ej2Instances.getInjectedModules()||[];i<o.length;i++){var p=o[i];-1===a.indexOf(p)&&a.push(p)}this.ej2Instances.injectedModules=a}this.assignValueToWrapper(e)},assignValueToWrapper:function(e,t){this.ej2Instances.setProperties(n.extend({},{},e,!0),!!n.isNullOrUndefined(t)||t)},fetchChildPropValues:function(e){var t={};if(this.isVue3){var n=void 0;if(this[0]&&this[0][1].slots.default?n=this[0][1].slots.default():this&&this.$&&this.$.slots&&this.$.slots.default&&(n=this.$.slots.default()),!n)return;for(var s=0;s<n.length;s++)if(n[parseInt(s.toString(),10)].type.methods||"e-seriescollection"===n[parseInt(s.toString(),10)].type){var r="e-seriescollection"===n[parseInt(s.toString(),10)].type?"series-collection":n[parseInt(s.toString(),10)].type.methods.getTag().replace("e-",""),a=this.resolveArrayDirectives(n[parseInt(s.toString(),10)].children,r),i=r.split("-"),o=this.ej2Instances.getModuleName().toLowerCase(),p=i.length>1&&o.indexOf(i[0])>-1?i[1]:i[0];p=p.replace(o,""),p=this.tagNameMapper["e-"+r]?this.tagNameMapper["e-"+r].replace("e-",""):p,"splitter"==o&&"panes"==p?p="paneSettings":"bulletchart"==o&&"range"==p?p="ranges":"schedule"==o&&"header"==p&&(p="headerRows"),t[""+p]=a[""+r]}}else t=this.getDirectiveValues(this.$slots.default,this.tagMapper||{},this.tagNameMapper||{});this.childDirObjects||(this.childDirObjects=JSON.stringify(t));for(var l=0,c=Object.keys(t);l<c.length;l++){var d=c[l];e[""+d]=t[""+d]}},resolveArrayDirectives:function(e,t){var n,s=[];s=(s=e.default?e.default():e).flatMap(function(e){return Array.isArray(e.children)?e.children:e});var r={};r[""+t]=[];for(var a=function(e){var s={},a=e.type.methods?e.type.methods.getTag():t;if(e.children){var o=void 0;if((n=i.resolveComplexDirs(e.children,i.tagMapper["e-"+t],a)).length)s=n;else for(var p=0;p<Object.keys(n).length;p++)o=Object.keys(n)[parseInt(p.toString(),10)],s[""+o]=n[""+o]}e.props&&Object.keys(e.props).forEach(function(t){var n=t.replace(/-[a-z]/g,function(e){return e[1].toUpperCase()});n&&(s[""+n]=e.props[""+t])}),/[s]\b/.test(a)&&n&&(!/[s]\b/.test(t)||n.length)?Array.isArray(s)?s.forEach(function(e){r[""+t].push(e)}):r[""+t].push(s):s&&0!==Object.keys(s).length&&r[""+t].push(s)},i=this,o=0,p=s;o<p.length;o++){a(p[o])}return r},resolveComplexDirs:function(e,t,n){for(var s,r=[],a={},i=function(e){var i=void 0;if(t[""+n]){i=Object.keys(t[""+n]).find(function(s){return t[""+n][""+s]===e.type.methods.getTag().replace(/[s]\b/,"")});o.ej2Instances.getModuleName().toLowerCase();i=i||e.type.methods.getTag(),i=(o.tagNameMapper[""+i]?o.tagNameMapper[""+i]:i).replace("e-",""),"diagram"==o.ej2Instances.getModuleName().toLowerCase()&&-1!=i.indexOf("annotations")&&(i="annotations")}e.children&&(s=o.resolveComplexInnerDirs(e.children,t[""+n],e.type.methods.getTag()),a[""+i]||(a[""+i]=[]),s.length>1?a[""+i]=s:a[""+i].push(s)),e.props&&(e.props=o.getCamelCaseProps(e.props)),r.length>1?(a=0!=Object.keys(a).length||a.length?a:[],e.props&&a.push(e.props)):a=e.props?Object.assign(a,e.props):a},o=this,p=0,l=r=e.default?e.default():e;p<l.length;p++){i(l[p])}return a},resolveComplexInnerDirs:function(e,t,n){for(var s=[],r=(s=e.default?e.default():e).length>1?[]:{},a=0,i=s;a<i.length;a++){var o=i[a],p=null,l=o.type.methods.getTag();l=(this.tagNameMapper[l]?this.tagNameMapper[l]:l).replace("e-",""),o.children&&(p=this.resolveMultilevelComplexInnerDirs(o.children,t[""+n],o.type.methods.getTag()),/[s]\b/.test(l)||s.length>1?/[s]\b/.test(l)?(r[""+l]=r[""+l]?r[""+l]:[],p.length?r[""+l]=p:r[""+l].push(p)):p&&!o.props&&r.push(p):r=p||r),o.props&&(o.props=this.getCamelCaseProps(o.props)),s.length>1&&o.props?p?(p=o.props?Object.assign(p,o.props):p,r.push(p)):r.length>=0?r.push(o.props):r=o.props?Object.assign(r,o.props):r:r=o.props?Object.assign(r,o.props):r}return r},resolveMultilevelComplexInnerDirs:function(e,t,n){for(var s=[],r=(s=e.default?e.default():e).length>1?[]:{},a=0,i=s;a<i.length;a++){var o=i[a],p=null,l=(this.ej2Instances.getModuleName().toLowerCase(),o.type.methods.getTag());l=(this.tagNameMapper[l]?this.tagNameMapper[l]:l).replace("e-",""),o.children&&(p=this.resolveComplexInnerDirs(o.children,t[""+n],o.type.methods.getTag())),o.props&&(o.props=this.getCamelCaseProps(o.props)),/[s]\b/.test(l)?(r[""+l]=r[""+l]?r[""+l]:[],p.length?r[""+l]=p:r[""+l].push(p),o.props&&r[""+l].push(o.props)):(r=p,r=o.props?Object.assign(r,o.props):r)}return r},getDirectiveValues:function(e,t,n){var s=Object.keys(t),r={};if(e)for(var a=0,i=e;a<i.length;a++){var o=i[a];if(o.componentOptions&&o.componentOptions.children&&this.getTagName(o.componentOptions)||"e-seriescollection"===o.tag&&o.children){var p=o.componentOptions?this.getTagName(o.componentOptions):o.tag;if(p="e-seriescollection"===p?"e-seriesCollection":p,-1!==s.indexOf(p)){var l=n[""+p]?n[""+p]:p;r[l.replace("e-","")]=[];for(var c=0,d=o.componentOptions?o.componentOptions.children:o.children;c<d.length;c++){var h=d[c],u=this.getVNodeValue(h,t[""+p],n);0!==Object.keys(u).length&&r[l.replace("e-","")].push(u)}}}}return r},getMultiLevelDirValue:function(e,t,n){for(var s={},r=0,a=e;r<a.length;r++){var i=a[r],o=void 0,p=void 0;if(i.componentOptions?(o=this.getTagName(i.componentOptions),i.componentOptions.children&&(p=i.componentOptions.children)):"e-markersettings"!==i.tag&&"e-markersetting"!==i.tag||!i.children||(o="e-markersettings"===i.tag?"e-markerSettings":"e-markerSetting",p=i.children),o){var l=n[""+o]?n[""+o]:o;if(s[l.replace("e-","")]=[],p)for(var c=0,d=p;c<d.length;c++){var h=d[c],u=this.getVNodeValue(h,t[""+o],n);0!==Object.keys(u).length&&s[l.replace("e-","")].push(u)}}}return s},getVNodeValue:function(e,t,s){var r={};if(e.componentOptions||("e-markersettings"===e.tag||"e-markersetting"===e.tag)&&e.context){var a=void 0;a=e.componentOptions?this.getTagName(e.componentOptions):"e-markersettings"===e.tag?"e-markerSettings":"e-markerSetting","string"==typeof t&&a===t&&e.data?r=e.data.attrs?this.getCamelCaseProps(e.data.attrs):this.getCamelCaseProps(e.data):"object"==typeof t&&(e.componentOptions.children&&-1!==Object.keys(t).indexOf(a)?r=this.getMultiLevelDirValue(e.componentOptions.children,t[""+a],s):!e.children||-1===Object.keys(t).indexOf(a)||"e-markersettings"!==a&&"e-markersetting"!==a||(r=this.getMultiLevelDirValue(e.children,t[""+a],s)),e.data&&e.data.attrs&&(r=n.extend(r,this.getCamelCaseProps(e.data.attrs))))}return r},getCamelCaseProps:function(e){for(var t={},n=0,s=Object.keys(e);n<s.length;n++){var r=s[n];t[r.replace(/-[a-z]/g,function(e){return e[1].toUpperCase()})]=e[""+r]}return t},dataBind:function(){this.ej2Instances.dataBind()},setProperties:function(e,t){return this.ej2Instances.setProperties(e,t)},getTagName:function(e){var t=e.tag;return!t&&e.Ctor&&e.Ctor.extendOptions&&e.Ctor.extendOptions.methods&&e.Ctor.extendOptions.methods.getTag&&(t=e.Ctor.extendOptions.methods.getTag()),t}}});l||n.setProxyToRaw(c.toRaw);var f=function(){return(f=Object.assign||function(e){for(var t,n=1,s=arguments.length;n<s;n++){t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)},g=n.getTemplateEngine();n.setTemplateEngine({compile:s}),e.isExecute=l,e.aVue=c,e.gh=d,e.vueDefineComponent=h,e.ComponentBase=u,e.getProps=function(e){if(void 0===e&&(e={}),e.props)for(var t=function(t){(e.newprops||(e.newprops={}))[""+t]={},(e.watch||(e.watch={}))[""+t]=function(n){this.ej2Instances[""+t]=n,this.dataBind&&"DateRangePickerComponent"!==e.name&&this.dataBind()}},n=0,s=e.props;n<s.length;n++)t(s[n]);return[e.newprops,e.watch]},e.compile=s,Object.defineProperty(e,"__esModule",{value:!0})});
|
|
10
|
+
!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=e||self).ej={},e.Vue,e.ej2Base)}(this,function(e,t,N){"use strict";function n(e){return k?M.extend(e):M.defineComponent(e)}var t=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[""+n]=e[""+n]);return t.default=e,t}(t),k=!(2<parseInt(t.version,10)),M=k?t.default.default||t.default:t,t=t.h,s=n({name:"ComponentBase",data:function(){return{tagMapper:{},tagNameMapper:{},hasInjectedModules:!1,hasChildDirective:!1,childDirObjects:"",propKeys:{},isDecorator:!1}},created:function(){var n=this;if(this.ej2Instance&&(this.ej2Instances=this.isVue3?M.toRaw(this.ej2Instance):this.ej2Instance),this.propKeys){for(var e=this,t=0,s=this.propKeys;t<s.length;t++)!function(t){e.ej2Instances.addEventListener(t,function(e){n.$emit(t,e)})}(s[t]);var r=N.getValue("$root.$options.provide",this),a=N.getValue("$parent.$options.provide",this),a=N.isNullOrUndefined(a)?N.getValue("$.parent.provides",this):a;if(this.hasInjectedModules&&!k){var i=[];r&&r.managed?(this.isDecorator=!0,i=this.getInjectedServices()||[]):r?i=r[this.ej2Instances.getModuleName()]||[]:a&&(i=this.getInjectedServices()||[]);for(var o=0,p=this.ej2Instances.getInjectedModules()||[];o<p.length;o++){var l=p[o];-1===i.indexOf(l)&&i.push(l)}this.ej2Instances.injectedModules=i}}},mounted:function(){var e=this.$el?this.$el.querySelectorAll("div.e-directive"):null;if(!k&&e)for(var t=0;t<e.length;t++){var n=e[parseInt(t.toString(),10)];n.parentElement&&n.parentElement.removeChild(n)}this.ej2Instances.isVue=!0,this.ej2Instances.isVue3=this.isVue3,(this.ej2Instances.vueInstance=this).isVue3&&(this.ej2Instances.ej2Instances=this.ej2Instances,this.ej2Instances.referModels=this.models,this.setModelValue()),this.ej2Instances.appendTo(this.$el)},updated:function(){this.updated()},beforeDestroy:function(){this.destroyComponent()},beforeUnmount:function(){this.destroyComponent()},methods:{setModelValue:function(){var e;N.isNullOrUndefined(this.modelValue)&&N.isNullOrUndefined(this.$attrs.modelValue)||(e=(this.models.toString().match(/checked|value/)||[])[0],N.isNullOrUndefined(e))||(this.ej2Instances[""+e]=(N.isNullOrUndefined(this.modelValue)?this.$attrs:this).modelValue)},updated:function(){var e,t;this.isVue3&&this.setModelValue(),this.hasChildDirective&&(this.fetchChildPropValues(e={}),t=JSON.stringify(e),this.childDirObjects!==t)&&(this.childDirObjects=t,this.assignValueToWrapper(e,!1))},getInjectedServices:function(){var e,t=[];if(this.$root&&this.isDecorator?e=N.getValue("$root.$options.provide",this):this.$vnode?e=N.getValue("$vnode.context.$options.provide",this):this.$parent&&(e=N.getValue("$parent.$options.provide",this)),e=N.isNullOrUndefined(e)&&!N.isNullOrUndefined(this.$)?N.getValue("$.parent.provides",this):e){var n=e;if("function"==typeof e)if(e.managed){var s=e.managed,r=Object.keys(s),a=void 0;this.$root&&this.isDecorator?a=Object.keys(this.$root):this.$vnode?a=Object.keys(this.$vnode.context):this.$parent&&(a=Object.keys(this.$parent));for(var i=0;i<r.length;i++)for(var o=0;o<a.length;o++)-1!==a[parseInt(o.toString(),10)].indexOf(r[parseInt(i.toString(),10)])&&(this.$root&&this.isDecorator?s[r[parseInt(o.toString(),10)]]=this.$root[a[parseInt(i.toString(),10)]]:this.$vnode?s[r[parseInt(i.toString(),10)]]=this.$vnode.context[a[parseInt(o.toString(),10)]]:this.$parent&&(s[r[parseInt(i.toString(),10)]]=this.$parent[a[parseInt(o.toString(),10)]]),n=s)}else this.$vnode?n=this.$vnode.context.$options.provide():this.$parent&&(n=this.$parent.$options.provide());t=n[this.ej2Instances.getModuleName()]||[]}return this.isDecorator=!1,t},destroyComponent:function(){this.ej2Instances.destroy(),this.$el.style.visibility="hidden",this.destroyPortals()},destroyPortals:function(){if(this.portals){for(var e=0,t=this.portals;e<t.length;e++)for(var n=t[e],s=n.classList.contains("e-control")?[n]:n.getElementsByClassName("e-control"),r=0;r<s.length;r++){var a=s[parseInt(r.toString(),10)];a.ej2_instances&&a.ej2_instances[0]&&(a.ej2_instances[0].destroy(),r--)}this.portals=null}},bindProperties:function(){for(var e={},t=0,n=this.propKeys;t<n.length;t++){var s=n[t];N.isNullOrUndefined(this[""+s])?!this[0]||N.isNullOrUndefined(this[0][0])||N.isNullOrUndefined(this[0][0][""+s])||(e[""+s]=this[0][0][""+s]):e[""+s]=this[""+s]}if(this.hasChildDirective&&this.fetchChildPropValues(e),this.hasInjectedModules){for(var r=this.getInjectedServices()||[],a=0,i=this.ej2Instances.getInjectedModules()||[];a<i.length;a++){var o=i[a];-1===r.indexOf(o)&&r.push(o)}this.ej2Instances.injectedModules=r}this.assignValueToWrapper(e)},assignValueToWrapper:function(e,t){this.ej2Instances.setProperties(N.extend({},{},e,!0),!!N.isNullOrUndefined(t)||t)},fetchChildPropValues:function(e){var t={};if(this.isVue3){var n=void 0;if(this[0]&&this[0][1].slots.default?n=this[0][1].slots.default():this&&this.$&&this.$.slots&&this.$.slots.default&&(n=this.$.slots.default()),!n)return;for(var s,r,a,i,o=0;o<n.length;o++)!n[parseInt(o.toString(),10)].type.methods&&"e-seriescollection"!==n[parseInt(o.toString(),10)].type||(s="e-seriescollection"===n[parseInt(o.toString(),10)].type?"series-collection":n[parseInt(o.toString(),10)].type.methods.getTag().replace("e-",""),r=this.resolveArrayDirectives(n[parseInt(o.toString(),10)].children,s),i=s.split("-"),a=this.ej2Instances.getModuleName().toLowerCase(),i=(i=1<i.length&&-1<a.indexOf(i[0])?i[1]:i[0]).replace(a,""),i=this.tagNameMapper["e-"+s]?this.tagNameMapper["e-"+s].replace("e-",""):i,"splitter"===a&&"panes"===i?i="paneSettings":"bulletchart"===a&&"range"===i?i="ranges":"schedule"===a&&"header"===i&&(i="headerRows"),t[""+i]=r[""+s])}else t=this.getDirectiveValues(this.$slots.default,this.tagMapper||{},this.tagNameMapper||{});this.childDirObjects||(this.childDirObjects=JSON.stringify(t));for(var p=0,l=Object.keys(t);p<l.length;p++){var c=l[p];e[""+c]=t[""+c]}},resolveArrayDirectives:function(e,a){var i,t=[];t=(t=e.default?e.default():e).flatMap(function(e){return Array.isArray(e.children)?e.children:e});for(var o={},p=(o[""+a]=[],this),n=0,s=t;n<s.length;n++)!function(n){var s={},e=n.type.methods?n.type.methods.getTag():a;if(n.children){var t;if((i=p.resolveComplexDirs(n.children,p.tagMapper["e-"+a],e)).length)s=i;else for(var r=0;r<Object.keys(i).length;r++)t=Object.keys(i)[parseInt(r.toString(),10)],s[""+t]=i[""+t]}n.props&&Object.keys(n.props).forEach(function(e){var t=e.replace(/-[a-z]/g,function(e){return e[1].toUpperCase()});t&&(s[""+t]=n.props[""+e])}),/[s]\b/.test(e)&&i&&(!/[s]\b/.test(a)||i.length)?Array.isArray(s)?s.forEach(function(e){o[""+a].push(e)}):o[""+a].push(s):s&&0!==Object.keys(s).length&&o[""+a].push(s)}(s[n]);return o},resolveComplexDirs:function(e,n,s){for(var r,a=[],a=e.default?e.default():e,i={},o=this,t=0,p=a;t<p.length;t++)!function(t){var e=void 0;n[""+s]&&(e=(e=Object.keys(n[""+s]).find(function(e){return n[""+s][""+e]===t.type.methods.getTag().replace(/[s]\b/,"")}))||t.type.methods.getTag(),e=(o.tagNameMapper[""+e]||e).replace("e-",""),"diagram"===o.ej2Instances.getModuleName().toLowerCase())&&-1!==e.indexOf("annotations")&&(e="annotations"),t.children&&(r=o.resolveComplexInnerDirs(t.children,n[""+s],t.type.methods.getTag()),i[""+e]||(i[""+e]=[]),1<r.length?i[""+e]=r:i[""+e].push(r)),t.props&&(t.props=o.getCamelCaseProps(t.props)),1<a.length?(i=0!==Object.keys(i).length||i.length?i:[],t.props&&i.push(t.props)):i=t.props?Object.assign(i,t.props):i}(p[t]);return i},resolveComplexInnerDirs:function(e,t,n){for(var s,r=1<(s=e.default?e.default():e).length?[]:{},a=0,i=s;a<i.length;a++){var o=i[a],p=null,l=o.type.methods.getTag(),l=(this.tagNameMapper[""+l]||l).replace("e-","");o.children&&(p=this.resolveMultilevelComplexInnerDirs(o.children,t[""+n],o.type.methods.getTag()),/[s]\b/.test(l)||1<s.length?/[s]\b/.test(l)?(r[""+l]=r[""+l]||[],p.length?r[""+l]=p:r[""+l].push(p)):p&&!o.props&&r.push(p):r=p||r),o.props&&(o.props=this.getCamelCaseProps(o.props)),1<s.length&&o.props?p?(p=o.props?Object.assign(p,o.props):p,r.push(p)):0<=r.length?r.push(o.props):r=o.props?Object.assign(r,o.props):r:r=o.props?Object.assign(r,o.props):r}return r},resolveMultilevelComplexInnerDirs:function(e,t,n){for(var s=1<(e=e.default?e.default():e).length?[]:{},r=0,a=e;r<a.length;r++){var i=a[r],o=null,p=i.type.methods.getTag(),p=(this.tagNameMapper[""+p]||p).replace("e-","");i.children&&(o=this.resolveComplexInnerDirs(i.children,t[""+n],i.type.methods.getTag())),i.props&&(i.props=this.getCamelCaseProps(i.props)),/[s]\b/.test(p)?(s[""+p]=s[""+p]||[],o.length?s[""+p]=o:s[""+p].push(o),i.props&&s[""+p].push(i.props)):(s=o,s=i.props?Object.assign(s,i.props):s)}return s},getDirectiveValues:function(e,t,n){var s=Object.keys(t),r={};if(e)for(var a=0,i=e;a<i.length;a++){var o=i[a],p=o.componentOptions;if(p&&p.children&&this.getTagName(p)||"e-seriescollection"===o.tag&&o.children){var l=p?this.getTagName(p):o.tag;if(-1!==s.indexOf(l="e-seriescollection"===l?"e-seriesCollection":l)){var c=n[""+l]||l;r[c.replace("e-","")]=[];for(var h=0,d=(p||o).children;h<d.length;h++){var u=d[h],u=this.getVNodeValue(u,t[""+l],n);0!==Object.keys(u).length&&r[c.replace("e-","")].push(u)}}}}return r},getMultiLevelDirValue:function(e,t,n){for(var s={},r=0,a=e;r<a.length;r++){var i=a[r],o=void 0,p=void 0;if(i.componentOptions?(o=this.getTagName(i.componentOptions),i.componentOptions.children&&(p=i.componentOptions.children)):"e-markersettings"!==i.tag&&"e-markersetting"!==i.tag||!i.children||(o="e-markersettings"===i.tag?"e-markerSettings":"e-markerSetting",p=i.children),o){var l=n[""+o]||o;if(s[l.replace("e-","")]=[],p)for(var c=0,h=p;c<h.length;c++){var d=h[c],d=this.getVNodeValue(d,t[""+o],n);0!==Object.keys(d).length&&s[l.replace("e-","")].push(d)}}}return s},getVNodeValue:function(e,t,n){var s,r,a={};return(e.componentOptions||("e-markersettings"===e.tag||"e-markersetting"===e.tag)&&e.context)&&(s=void 0,s=e.componentOptions?this.getTagName(e.componentOptions):"e-markersettings"===e.tag?"e-markerSettings":"e-markerSetting",r=e.data,"string"==typeof t&&s===t&&r?a=r.attrs?this.getCamelCaseProps(r.attrs):this.getCamelCaseProps(r):"object"==typeof t&&(e.componentOptions.children&&-1!==Object.keys(t).indexOf(s)?a=this.getMultiLevelDirValue(e.componentOptions.children,t[""+s],n):!e.children||-1===Object.keys(t).indexOf(s)||"e-markersettings"!==s&&"e-markersetting"!==s||(a=this.getMultiLevelDirValue(e.children,t[""+s],n)),r)&&r.attrs&&(a=N.extend(a,this.getCamelCaseProps(r.attrs)))),a},getCamelCaseProps:function(e){for(var t={},n=0,s=Object.keys(e);n<s.length;n++){var r=s[n];t[r.replace(/-[a-z]/g,function(e){return e[1].toUpperCase()})]=e[""+r]}return t},dataBind:function(){this.ej2Instances.dataBind()},setProperties:function(e,t){return this.ej2Instances.setProperties(e,t)},getTagName:function(e){var t=e.tag,n=e.Ctor;return t=!t&&n&&n.extendOptions&&n.extendOptions.methods&&n.extendOptions.methods.getTag?e.Ctor.extendOptions.methods.getTag():t}}});k||N.setProxyToRaw(M.toRaw);var S=function(){return(S=Object.assign||function(e){for(var t,n=1,s=arguments.length;n<s;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},T=N.getTemplateEngine();function r(x,V){var D=this;return function(e,t,n,s,r){var a;if(t){var i=t.vueInstance&&t.vueInstance.plugins?{plugins:t.vueInstance.plugins}:{},o=t.vueInstance||(r&&r.vueInstance?r.vueInstance:null),p=N.getUniqueID("templateParentDiv"),l=N.getUniqueID("templateDiv"),p=N.createElement("div",{id:p,innerHTML:'<div id="'+l+'"></div>'});if(document.body.appendChild(p),!k&&("string"==typeof x||x.prototype&&x.prototype.CSPTemplate&&"function"==typeof x)){var c=function(e,t,n){if(e||n&&n.vueInstance)return function e(t,n){{if(t&&t[""+n])return t;if(t&&t.default){var s=t.default();s=s.flatMap(function(e){return Array.isArray(e.children)?e.children:e});for(var r=0;r<s.length;r++){var a=e(s[parseInt(r.toString(),10)].children,n);if(a)return a}}}return}((n&&n.vueInstance?n.vueInstance:e).$slots,t)}(t.vueInstance,x,r);if(!c)return N.detach(p),T(x,V)(e);var h=M.createVNode({render:function(){return c[""+x]({data:e})}},i);p.innerHTML="",P(h,t.vueInstance,r),M.render(h,p),o&&(o.portals||(o.portals=[]),(a=o.portals).push.apply(a,[].slice.call(p.children))),a=p.childNodes}else if(k)if("string"==typeof x||x.prototype&&x.prototype.CSPTemplate&&"function"==typeof x){var d=function(e,t,n){if(e||n&&n.vueInstance)return function e(t,n){if(!t)return;var s=t.$slots;var r=t.$scopedSlots;var a=t.scopedSlots;var i=t.children;{if(r&&r[""+n])return r;if(s&&s.default){for(var o=s.default,p=0;p<o.length;p++)if(l=e(_(o[parseInt(p.toString(),10)]),n))return l}else{if(a&&a[""+n])return a;if(i)for(var l,p=0;p<i.length;p++)if(l=e(_(i[parseInt(p.toString(),10)]),n))return l}}return}(n&&n.vueInstance?n.vueInstance:e,t)}(t.vueInstance,x,r);if(!d)return N.detach(p),T(x,V)(e);var u={},g=function(e){e.$parent&&g(e.$parent),e._provided&&0<Object.keys(e._provided).length&&(u=S({},u,e._provided))},f=t.vueInstance||(r&&r.vueInstance?r.vueInstance:null);f&&g(f),new M({provide:S({},u),render:function(){return d[""+x]({data:e})}}).$mount("#"+l),f&&(f.portals||(f.portals=[]),(f=f.portals).push.apply(f,[].slice.call(p.children))),a=p.childNodes}else{var f=(I=x.call(D,{})).template,v=N.getValue("template.propsData",I),m={data:{data:N.extend(I.data||{},e)},parent:t.vueInstance};v&&(f=I.template.extends,m.propsData=v),(f="function"!=typeof f?M.extend(f):f).options.setup&&(m.propsData=Object.assign(m.propsData||{},e)),new f(m).$mount("#"+l),o&&(o.portals||(o.portals=[]),(f=o.portals).push.apply(f,[].slice.call(p.children))),a=p.childNodes,t.vueInstance&&(($=t.vueInstance.templateCollection)||(t.vueInstance.templateCollection={},$=t.vueInstance.templateCollection),n)&&($[""+n]||($[""+n]=[]),$[""+n].push(a[0]))}else{var I,j,m=I=x.call(D,{}),v=N.getValue("template.propsData",I),y={data:{data:N.extend(I.data||{},e)},parent:t.vueInstance},O=(m.template||(m.template=m[Object.keys(m)[0]]),void 0);if(m.template.extends?O=m.template.extends._context.components.template:(O=m.template._context.components[x.name])||(l=Object.keys(m.template._context.components)[0],O=m.template._context.components[""+l]),v)j=O.setup?Object.assign({},v):Object.assign(O.data(),v);else if(j=O.setup?Object.assign({},y.data):Object.assign(O.data(),y.data),O.components)for(var b=0,C=Object.keys(O.components)||[];b<C.length;b++)!function(e){var t=O.components[""+e];t&&t.data&&(t.__data||(t.__data=t.data),t.data=function(e){return Object.assign(t.__data.call(e),y.data)})}(C[b]);O.setup&&(i=Object.assign(i,e)),O.data=function(){return j};var $,h=M.createVNode(O,i);p.innerHTML="",P(h,t.vueInstance,r),M.render(h,p),o&&(o.portals||(o.portals=[]),(f=o.portals).push.apply(f,[].slice.call(p.children))),a=p.childNodes,t.vueInstance&&(($=t.vueInstance.templateCollection)||(t.vueInstance.templateCollection={},$=t.vueInstance.templateCollection),n)&&($[""+n]||($[""+n]=[]),$[""+n].push(a[0]))}N.detach(p)}return a||[]}}function P(e,t,n){var s,r,t=t||(n&&n.vueInstance?n.vueInstance:null);t&&(e.appContext=t.$.appContext,s={},(r=function(e){e.$&&e.$.parent&&r(e.$.parent),e.provides&&0<Object.keys(e.provides).length&&(s=S({},s,e.provides))})(t),e.appContext.provides)&&(e.appContext.provides=S({},e.appContext.provides,s))}function _(e){var t=e.componentOptions&&e.componentOptions.children?e.componentOptions:e.data||"e-markersettings"!==e.tag&&"e-markersetting"!==e.tag?e.data:e;return e.componentInstance||t}N.setTemplateEngine({compile:r}),e.ComponentBase=s,e.aVue=M,e.compile=r,e.getProps=function(n){if((n=void 0===n?{}:n).props)for(var e=0,t=n.props;e<t.length;e++)!function(t){(n.newprops||(n.newprops={}))[""+t]={},(n.watch||(n.watch={}))[""+t]=function(e){this.ej2Instances[""+t]=e,this.dataBind&&"DateRangePickerComponent"!==n.name&&this.dataBind()}}(t[e]);return[n.newprops,n.watch]},e.gh=t,e.isExecute=k,e.vueDefineComponent=n,Object.defineProperty(e,"__esModule",{value:!0})});
|
|
11
11
|
//# sourceMappingURL=ej2-vue-base.umd.min.js.map
|