@syncfusion/ej2-vue-base 20.3.56 → 20.4.38

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.
@@ -29,7 +29,7 @@ function _interopRequireWildcard(obj) {
29
29
  if (obj != null) {
30
30
  for (var key in obj) {
31
31
  if (Object.prototype.hasOwnProperty.call(obj, key))
32
- newObj[key] = obj[key];
32
+ newObj["" + key] = obj["" + key];
33
33
  }
34
34
  }
35
35
  newObj.default = obj;
@@ -73,6 +73,7 @@ var ComponentBase = /** @__PURE__ @class */ (function (_super) {
73
73
  }
74
74
  var injectables = getValue('$root.$options.provide', this);
75
75
  var vueInjectables = getValue('$parent.$options.provide', this);
76
+ vueInjectables = !isNullOrUndefined(vueInjectables) ? vueInjectables : getValue('$.parent.provides', this);
76
77
  if (this.hasInjectedModules && !isExecute) {
77
78
  var prevModule = [];
78
79
  if (injectables && injectables.managed) {
@@ -99,7 +100,7 @@ var ComponentBase = /** @__PURE__ @class */ (function (_super) {
99
100
  var cusEle = this.$el ? this.$el.querySelectorAll("div.e-directive") : null;
100
101
  if (!isExecute && cusEle) {
101
102
  for (var i = 0; i < cusEle.length; i++) {
102
- cusEle[i].parentElement && cusEle[i].parentElement.removeChild(cusEle[i]);
103
+ cusEle[parseInt(i.toString(), 10)].parentElement && cusEle[parseInt(i.toString(), 10)].parentElement.removeChild(cusEle[parseInt(i.toString(), 10)]);
103
104
  }
104
105
  }
105
106
  this.ej2Instances.isVue = true;
@@ -108,9 +109,19 @@ var ComponentBase = /** @__PURE__ @class */ (function (_super) {
108
109
  if (this.isVue3) {
109
110
  this.ej2Instances.ej2Instances = this.ej2Instances;
110
111
  this.ej2Instances.referModels = this.models;
112
+ this.setModelValue();
111
113
  }
112
114
  this.ej2Instances.appendTo(this.$el);
113
115
  };
116
+ ComponentBase.prototype.setModelValue = function () {
117
+ if (!isNullOrUndefined(this.modelValue) || !isNullOrUndefined(this.$attrs.modelValue)) {
118
+ var key = this.models.toString().match(/checked|value/) || [];
119
+ var propKey = key[0];
120
+ if (!isNullOrUndefined(propKey)) {
121
+ this.ej2Instances["" + propKey] = !isNullOrUndefined(this.modelValue) ? this.modelValue : this.$attrs.modelValue;
122
+ }
123
+ }
124
+ };
114
125
  ComponentBase.prototype.getInjectedServices = function () {
115
126
  var ret = [];
116
127
  var provide;
@@ -123,6 +134,9 @@ var ComponentBase = /** @__PURE__ @class */ (function (_super) {
123
134
  else if (this.$parent) {
124
135
  provide = getValue('$parent.$options.provide', this);
125
136
  }
137
+ if (isNullOrUndefined(provide) && !isNullOrUndefined(this.$)) {
138
+ provide = getValue('$.parent.provides', this);
139
+ }
126
140
  if (provide) {
127
141
  // tslint:disable:no-any
128
142
  var injectables = provide;
@@ -142,15 +156,15 @@ var ComponentBase = /** @__PURE__ @class */ (function (_super) {
142
156
  }
143
157
  for (var i = 0; i < provideValue.length; i++) {
144
158
  for (var j = 0; j < key.length; j++) {
145
- if ((key[j].indexOf(provideValue[i])) !== -1) {
159
+ if ((key[parseInt(j.toString(), 10)].indexOf(provideValue[parseInt(i.toString(), 10)])) !== -1) {
146
160
  if (this.$root && this.isDecorator) {
147
- provideKey[provideValue[j]] = this.$root[key[i]];
161
+ provideKey[provideValue[parseInt(j.toString(), 10)]] = this.$root[key[parseInt(i.toString(), 10)]];
148
162
  }
149
163
  else if (this.$vnode) {
150
- provideKey[provideValue[i]] = this.$vnode.context[key[j]];
164
+ provideKey[provideValue[parseInt(i.toString(), 10)]] = this.$vnode.context[key[parseInt(j.toString(), 10)]];
151
165
  }
152
166
  else if (this.$parent) {
153
- provideKey[provideValue[i]] = this.$parent[key[j]];
167
+ provideKey[provideValue[parseInt(i.toString(), 10)]] = this.$parent[key[parseInt(j.toString(), 10)]];
154
168
  }
155
169
  injectables = provideKey;
156
170
  }
@@ -171,6 +185,9 @@ var ComponentBase = /** @__PURE__ @class */ (function (_super) {
171
185
  return ret;
172
186
  };
173
187
  ComponentBase.prototype.updated = function () {
188
+ if (this.isVue3) {
189
+ this.setModelValue();
190
+ }
174
191
  if (this.hasChildDirective) {
175
192
  var childKey = {};
176
193
  this.fetchChildPropValues(childKey);
@@ -191,8 +208,8 @@ var ComponentBase = /** @__PURE__ @class */ (function (_super) {
191
208
  var options = {};
192
209
  for (var _i = 0, _a = this.propKeys; _i < _a.length; _i++) {
193
210
  var prop = _a[_i];
194
- if ((!isNullOrUndefined(this[prop]) && !this.isVue3) || (this[0] && !isNullOrUndefined(this[0][0]) && !isNullOrUndefined(this[0][0][prop]))) {
195
- options[prop] = !this.isVue3 ? this[prop] : this[0][0][prop];
211
+ if ((!isNullOrUndefined(this["" + prop]) && !this.isVue3) || (this[0] && !isNullOrUndefined(this[0][0]) && !isNullOrUndefined(this[0][0]["" + prop]))) {
212
+ options["" + prop] = !this.isVue3 ? this["" + prop] : this[0][0]["" + prop];
196
213
  }
197
214
  }
198
215
  if (this.hasChildDirective) {
@@ -229,9 +246,10 @@ var ComponentBase = /** @__PURE__ @class */ (function (_super) {
229
246
  }
230
247
  if (propRef) {
231
248
  for (var i = 0; i < propRef.length; i++) {
232
- if (propRef[i].type.methods) {
233
- var key = propRef[i].type.methods.getTag().replace("e-", "");
234
- var ref = this.resolveArrayDirectives(propRef[i].children, key);
249
+ if (propRef[parseInt(i.toString(), 10)].type.methods || propRef[parseInt(i.toString(), 10)].type === 'e-seriescollection') {
250
+ var key = propRef[parseInt(i.toString(), 10)].type === 'e-seriescollection' ? 'series-collection' :
251
+ propRef[parseInt(i.toString(), 10)].type.methods.getTag().replace("e-", "");
252
+ var ref = this.resolveArrayDirectives(propRef[parseInt(i.toString(), 10)].children, key);
235
253
  var splitKeys = key.split('-');
236
254
  var controlName = this.ej2Instances.getModuleName().toLowerCase();
237
255
  var keyRef = (splitKeys.length > 1 && controlName.indexOf(splitKeys[0]) > -1) ? splitKeys[1] : splitKeys[0];
@@ -245,7 +263,7 @@ var ComponentBase = /** @__PURE__ @class */ (function (_super) {
245
263
  else if (controlName == "schedule" && keyRef == "header") {
246
264
  keyRef = "headerRows";
247
265
  }
248
- dirProps[keyRef] = ref[key];
266
+ dirProps["" + keyRef] = ref["" + key];
249
267
  }
250
268
  }
251
269
  }
@@ -258,7 +276,7 @@ var ComponentBase = /** @__PURE__ @class */ (function (_super) {
258
276
  }
259
277
  for (var _i = 0, _a = Object.keys(dirProps); _i < _a.length; _i++) {
260
278
  var dirProp = _a[_i];
261
- childOption[dirProp] = dirProps[dirProp];
279
+ childOption["" + dirProp] = dirProps["" + dirProp];
262
280
  }
263
281
  };
264
282
  ComponentBase.prototype.resolveArrayDirectives = function (slots, tagName) {
@@ -266,7 +284,7 @@ var ComponentBase = /** @__PURE__ @class */ (function (_super) {
266
284
  var innerDirValues;
267
285
  slot = slots.default ? slots.default() : slots;
268
286
  var items = {};
269
- items[tagName] = [];
287
+ items["" + tagName] = [];
270
288
  var _loop_2 = function (childSlot) {
271
289
  var tempObj = {};
272
290
  var tagRef = childSlot.type.methods ? childSlot.type.methods.getTag() : tagName;
@@ -278,22 +296,25 @@ var ComponentBase = /** @__PURE__ @class */ (function (_super) {
278
296
  }
279
297
  else {
280
298
  for (var i = 0; i < Object.keys(innerDirValues).length; i++) {
281
- key = Object.keys(innerDirValues)[i];
282
- tempObj[key] = innerDirValues[key];
299
+ key = Object.keys(innerDirValues)[parseInt(i.toString(), 10)];
300
+ tempObj["" + key] = innerDirValues["" + key];
283
301
  }
284
302
 
285
303
  }
286
304
  }
287
305
  if (childSlot.props) {
288
306
  Object.keys(childSlot.props).forEach(function (key) {
289
- tempObj[key] = childSlot.props[key];
307
+ var propName = key.replace(/-[a-z]/g, function (e) { return e[1].toUpperCase(); });
308
+ if (propName) {
309
+ tempObj["" + propName] = childSlot.props["" + key];
310
+ }
290
311
  });
291
312
  }
292
313
  if (((/[s]\b/).test(tagRef) && innerDirValues) && (!(/[s]\b/).test(tagName) || innerDirValues.length)) {
293
- items[tagName] = tempObj;
314
+ items["" + tagName] = tempObj;
294
315
  }
295
316
  else if (tempObj && Object.keys(tempObj).length !== 0) {
296
- items[tagName].push(tempObj);
317
+ items["" + tagName].push(tempObj);
297
318
  }
298
319
  };
299
320
  var this_2 = this;
@@ -311,10 +332,10 @@ var ComponentBase = /** @__PURE__ @class */ (function (_super) {
311
332
  var _loop_3 = function (childSlot) {
312
333
  var tagRef = void 0;
313
334
  var tag = void 0;
314
- if (tagObject[tagName]) {
315
- tagRef = Object.keys(tagObject[tagName]);
335
+ if (tagObject["" + tagName]) {
336
+ tagRef = Object.keys(tagObject["" + tagName]);
316
337
  tag = tagRef.find(function (key) {
317
- return tagObject[tagName][key] ===
338
+ return tagObject["" + tagName]["" + key] ===
318
339
  childSlot.type.methods.getTag().replace(/[s]\b/, "");
319
340
  });
320
341
  tag = tag
@@ -325,17 +346,20 @@ var ComponentBase = /** @__PURE__ @class */ (function (_super) {
325
346
  }
326
347
  }
327
348
  if (childSlot.children) {
328
- innerDirValues = this_3.resolveComplexInnerDirs(childSlot.children, tagObject[tagName], childSlot.type.methods.getTag());
329
- if (!items[tag]) {
330
- items[tag] = [];
349
+ innerDirValues = this_3.resolveComplexInnerDirs(childSlot.children, tagObject["" + tagName], childSlot.type.methods.getTag());
350
+ if (!items["" + tag]) {
351
+ items["" + tag] = [];
331
352
  }
332
353
  if (innerDirValues.length > 1) {
333
- items[tag] = innerDirValues;
354
+ items["" + tag] = innerDirValues;
334
355
  }
335
356
  else {
336
- items[tag].push(innerDirValues);
357
+ items["" + tag].push(innerDirValues);
337
358
  }
338
359
  }
360
+ if (childSlot.props) {
361
+ childSlot.props = this_3.getCamelCaseProps(childSlot.props);
362
+ }
339
363
  if (slot.length > 1) {
340
364
  items = Object.keys(items).length == 0 && !items.length ? [] : items;
341
365
  if (childSlot.props) {
@@ -362,15 +386,15 @@ var ComponentBase = /** @__PURE__ @class */ (function (_super) {
362
386
  var childSlot = slot_3[_i];
363
387
  var tag = childSlot.type.methods.getTag().replace("e-", "");
364
388
  if (childSlot.children) {
365
- innerDirValues = this.resolveMultilevelComplexInnerDirs(childSlot.children, tagObject[tagName], childSlot.type.methods.getTag());
389
+ innerDirValues = this.resolveMultilevelComplexInnerDirs(childSlot.children, tagObject["" + tagName], childSlot.type.methods.getTag());
366
390
  if ((/[s]\b/).test(tag) || slot.length > 1) {
367
391
  if ((/[s]\b/).test(tag)) {
368
- items[tag] = !items[tag] ? [] : items[tag];
392
+ items["" + tag] = !items["" + tag] ? [] : items["" + tag];
369
393
  if (innerDirValues.length) {
370
- items[tag] = innerDirValues;
394
+ items["" + tag] = innerDirValues;
371
395
  }
372
396
  else {
373
- items[tag].push(innerDirValues);
397
+ items["" + tag].push(innerDirValues);
374
398
  }
375
399
  }
376
400
  else if (innerDirValues) {
@@ -381,6 +405,9 @@ var ComponentBase = /** @__PURE__ @class */ (function (_super) {
381
405
  items = innerDirValues ? innerDirValues : items;
382
406
  }
383
407
  }
408
+ if (childSlot.props) {
409
+ childSlot.props = this.getCamelCaseProps(childSlot.props);
410
+ }
384
411
  if (slot.length > 1 && childSlot.props) {
385
412
  if (items.length >= 0) {
386
413
  items.push(childSlot.props);
@@ -404,18 +431,21 @@ var ComponentBase = /** @__PURE__ @class */ (function (_super) {
404
431
  var childSlot = slot_4[_i];
405
432
  var tag = childSlot.type.methods.getTag().replace("e-", "");
406
433
  if (childSlot.children) {
407
- innerDirValues = this.resolveComplexInnerDirs(childSlot.children, tagObject[tagName], childSlot.type.methods.getTag());
434
+ innerDirValues = this.resolveComplexInnerDirs(childSlot.children, tagObject["" + tagName], childSlot.type.methods.getTag());
435
+ }
436
+ if (childSlot.props) {
437
+ childSlot.props = this.getCamelCaseProps(childSlot.props);
408
438
  }
409
439
  if ((/[s]\b/).test(tag)) {
410
- items[tag] = !items[tag] ? [] : items[tag];
440
+ items["" + tag] = !items["" + tag] ? [] : items["" + tag];
411
441
  if (innerDirValues.length) {
412
- items[tag] = innerDirValues;
442
+ items["" + tag] = innerDirValues;
413
443
  }
414
444
  else {
415
- items[tag].push(innerDirValues);
445
+ items["" + tag].push(innerDirValues);
416
446
  }
417
447
  if (childSlot.props) {
418
- items[tag].push(childSlot.props);
448
+ items["" + tag].push(childSlot.props);
419
449
  }
420
450
  }
421
451
  else {
@@ -431,14 +461,17 @@ var ComponentBase = /** @__PURE__ @class */ (function (_super) {
431
461
  if (tagDirectives) {
432
462
  for (var _i = 0, tagDirectives_1 = tagDirectives; _i < tagDirectives_1.length; _i++) {
433
463
  var tagDirective = tagDirectives_1[_i];
434
- if (tagDirective.componentOptions && tagDirective.componentOptions.children && tagDirective.componentOptions.tag) {
435
- var dirTag = tagDirective.componentOptions.tag;
464
+ if (tagDirective.componentOptions && tagDirective.componentOptions.children && tagDirective.componentOptions.tag ||
465
+ (tagDirective.tag === 'e-seriescollection' && tagDirective.children)) {
466
+ var dirTag = tagDirective.componentOptions ? tagDirective.componentOptions.tag : tagDirective.tag;
467
+ dirTag = (dirTag === 'e-seriescollection') ? 'e-seriesCollection' : dirTag;
436
468
  if (keyTags.indexOf(dirTag) !== -1) {
437
- var tagName = tagNameMapper[dirTag] ? tagNameMapper[dirTag] : dirTag;
469
+ var tagName = tagNameMapper["" + dirTag] ? tagNameMapper["" + dirTag] : dirTag;
438
470
  dir[tagName.replace('e-', '')] = [];
439
- for (var _a = 0, _b = tagDirective.componentOptions.children; _a < _b.length; _a++) {
440
- var tagDirChild = _b[_a];
441
- var retObj = this.getVNodeValue(tagDirChild, tagMapper[dirTag], tagNameMapper);
471
+ var children = tagDirective.componentOptions ? tagDirective.componentOptions.children : tagDirective.children;
472
+ for (var _a = 0, children_1 = children; _a < children_1.length; _a++) {
473
+ var tagDirChild = children_1[_a];
474
+ var retObj = this.getVNodeValue(tagDirChild, tagMapper["" + dirTag], tagNameMapper);
442
475
  if (Object.keys(retObj).length !== 0) {
443
476
  dir[tagName.replace('e-', '')].push(retObj);
444
477
  }
@@ -453,14 +486,25 @@ var ComponentBase = /** @__PURE__ @class */ (function (_super) {
453
486
  var mulObj = {};
454
487
  for (var _i = 0, tagDirectories_1 = tagDirectories; _i < tagDirectories_1.length; _i++) {
455
488
  var tagDir = tagDirectories_1[_i];
489
+ var key = void 0;
490
+ var children = void 0;
456
491
  if (tagDir.componentOptions) {
457
- var key = tagDir.componentOptions.tag;
458
- var tagName = tagNameMapper[key] ? tagNameMapper[key] : key;
492
+ key = tagDir.componentOptions.tag;
493
+ if (tagDir.componentOptions.children) {
494
+ children = tagDir.componentOptions.children;
495
+ }
496
+ }
497
+ else if ((tagDir.tag === 'e-markersettings' || tagDir.tag === 'e-markersetting') && tagDir.children) {
498
+ key = (tagDir.tag === 'e-markersettings') ? 'e-markerSettings' : 'e-markerSetting';
499
+ children = tagDir.children;
500
+ }
501
+ if (key) {
502
+ var tagName = tagNameMapper["" + key] ? tagNameMapper["" + key] : key;
459
503
  mulObj[tagName.replace('e-', '')] = [];
460
- if (tagDir.componentOptions && tagDir.componentOptions.children) {
461
- for (var _a = 0, _b = tagDir.componentOptions.children; _a < _b.length; _a++) {
462
- var tagDirChild = _b[_a];
463
- var mulLevObj = this.getVNodeValue(tagDirChild, tagKey[key], tagNameMapper);
504
+ if (children) {
505
+ for (var _a = 0, children_2 = children; _a < children_2.length; _a++) {
506
+ var tagDirChild = children_2[_a];
507
+ var mulLevObj = this.getVNodeValue(tagDirChild, tagKey["" + key], tagNameMapper);
464
508
  if (Object.keys(mulLevObj).length !== 0) {
465
509
  mulObj[tagName.replace('e-', '')].push(mulLevObj);
466
510
  }
@@ -472,14 +516,23 @@ var ComponentBase = /** @__PURE__ @class */ (function (_super) {
472
516
  };
473
517
  ComponentBase.prototype.getVNodeValue = function (tagDirective, tagKey, tagNameMapper) {
474
518
  var ret = {};
475
- if (tagDirective.componentOptions) {
476
- var dirTag = tagDirective.componentOptions.tag;
519
+ if (tagDirective.componentOptions || ((tagDirective.tag === 'e-markersettings' || tagDirective.tag === 'e-markersetting') && tagDirective.context)) {
520
+ var dirTag = void 0;
521
+ if (tagDirective.componentOptions) {
522
+ dirTag = tagDirective.componentOptions.tag;
523
+ }
524
+ else {
525
+ dirTag = (tagDirective.tag === 'e-markersettings') ? 'e-markerSettings' : 'e-markerSetting';
526
+ }
477
527
  if (typeof tagKey === 'string' && dirTag === tagKey && tagDirective.data) {
478
528
  ret = tagDirective.data.attrs ? this.getCamelCaseProps(tagDirective.data.attrs) : this.getCamelCaseProps(tagDirective.data);
479
529
  }
480
530
  else if (typeof tagKey === 'object') {
481
531
  if (tagDirective.componentOptions.children && (Object.keys(tagKey).indexOf(dirTag) !== -1)) {
482
- ret = this.getMultiLevelDirValue(tagDirective.componentOptions.children, tagKey[dirTag], tagNameMapper);
532
+ ret = this.getMultiLevelDirValue(tagDirective.componentOptions.children, tagKey["" + dirTag], tagNameMapper);
533
+ }
534
+ else if (tagDirective.children && (Object.keys(tagKey).indexOf(dirTag) !== -1) && (dirTag === 'e-markersettings' || dirTag === 'e-markersetting')) {
535
+ ret = this.getMultiLevelDirValue(tagDirective.children, tagKey["" + dirTag], tagNameMapper);
483
536
  }
484
537
  if (tagDirective.data && tagDirective.data.attrs) {
485
538
  ret = extend(ret, this.getCamelCaseProps(tagDirective.data.attrs));
@@ -495,7 +548,7 @@ var ComponentBase = /** @__PURE__ @class */ (function (_super) {
495
548
  var retProps = {};
496
549
  for (var _i = 0, _a = Object.keys(props); _i < _a.length; _i++) {
497
550
  var prop = _a[_i];
498
- retProps[prop.replace(/-[a-z]/g, function (e) { return e[1].toUpperCase(); })] = props[prop];
551
+ retProps[prop.replace(/-[a-z]/g, function (e) { return e[1].toUpperCase(); })] = props["" + prop];
499
552
  }
500
553
  return retProps;
501
554
  };
@@ -531,9 +584,9 @@ function getProps(options) {
531
584
  if (options === void 0) { options = {}; }
532
585
  if (options.props) {
533
586
  var _loop_1 = function (prop) {
534
- (options.newprops || (options.newprops = {}))[prop] = {};
535
- (options.watch || (options.watch = {}))[prop] = function (newVal) {
536
- this.ej2Instances[prop] = newVal;
587
+ (options.newprops || (options.newprops = {}))["" + prop] = {};
588
+ (options.watch || (options.watch = {}))["" + prop] = function (newVal) {
589
+ this.ej2Instances["" + prop] = newVal;
537
590
  if (this.dataBind && (options.name !== 'DateRangePickerComponent')) {
538
591
  this.dataBind();
539
592
  }
@@ -561,9 +614,9 @@ function EJcomponentFactory(Component, options) {
561
614
  var proto = Component.prototype;
562
615
  if (options.props) {
563
616
  var _loop_2 = function (prop) {
564
- (options.props || (options.props = {}))[prop] = {};
565
- (options.watch || (options.watch = {}))[prop] = function (newVal) {
566
- this.ej2Instances[prop] = newVal;
617
+ (options.props || (options.props = {}))["" + prop] = {};
618
+ (options.watch || (options.watch = {}))["" + prop] = function (newVal) {
619
+ this.ej2Instances["" + prop] = newVal;
567
620
  if (this.dataBind && (options.name !== 'DateRangePickerComponent')) {
568
621
  this.dataBind();
569
622
  }
@@ -580,17 +633,17 @@ function EJcomponentFactory(Component, options) {
580
633
  return;
581
634
  }
582
635
  if ($internalHooks.indexOf(key) > -1) {
583
- options[key] = proto[key];
636
+ options["" + key] = proto["" + key];
584
637
  return;
585
638
  }
586
639
  var descriptor = Object.getOwnPropertyDescriptor(proto, key);
587
640
  if (typeof descriptor.value === 'function') {
588
641
  // methods
589
- (options.methods || (options.methods = {}))[key] = descriptor.value;
642
+ (options.methods || (options.methods = {}))["" + key] = descriptor.value;
590
643
  }
591
644
  else if (descriptor.get || descriptor.set) {
592
645
  // computed properties
593
- (options.computed || (options.computed = {}))[key] = {
646
+ (options.computed || (options.computed = {}))["" + key] = {
594
647
  get: descriptor.get,
595
648
  set: descriptor.set
596
649
  };
@@ -598,7 +651,7 @@ function EJcomponentFactory(Component, options) {
598
651
  });
599
652
  Object.getOwnPropertyNames(ComponentBase.prototype).forEach(function (key) {
600
653
  if ($internalHooks.indexOf(key) > -1) {
601
- options[key] = proto[key];
654
+ options["" + key] = proto["" + key];
602
655
  return;
603
656
  }
604
657
  });
@@ -635,8 +688,8 @@ function collectDataFromConstructor(vm, Component) {
635
688
  keys.forEach(function (key) {
636
689
  if (key.charAt(0) !== '_') {
637
690
  Object.defineProperty(_this, key, {
638
- get: function () { return vm[key]; },
639
- set: function (value) { return vm[key] = value; }
691
+ get: function () { return vm["" + key]; },
692
+ set: function (value) { return vm["" + key] = value; }
640
693
  });
641
694
  }
642
695
  });
@@ -644,8 +697,8 @@ function collectDataFromConstructor(vm, Component) {
644
697
  var data = new Component();
645
698
  var plainData = {};
646
699
  Object.keys(data).forEach(function (key) {
647
- if (data[key] !== undefined) {
648
- plainData[key] = data[key];
700
+ if (data["" + key] !== undefined) {
701
+ plainData["" + key] = data["" + key];
649
702
  }
650
703
  });
651
704
  return plainData;
@@ -672,12 +725,12 @@ function compile(templateElement, helper) {
672
725
  // Compilation for Vue 3 slot template
673
726
  var app = allVue.createApp({
674
727
  render: function () {
675
- return vueSlot_1[templateElement]({ data: data });
728
+ return vueSlot_1["" + templateElement]({ data: data });
676
729
  }
677
730
  });
678
731
  if (plugins) {
679
732
  for (var i = 0; i < plugins.length; i++) {
680
- app.use(plugins[i]);
733
+ app.use(plugins[parseInt(i.toString(), 10)]);
681
734
  }
682
735
  }
683
736
  app.mount((context.getModuleName() === 'grid') ? ("#" + pid) : ("#" + id));
@@ -710,7 +763,7 @@ function compile(templateElement, helper) {
710
763
  templateCompRef = object.template._context.components[templateElement.name];
711
764
  if (!templateCompRef) {
712
765
  var key = Object.keys(object.template._context.components)[0];
713
- templateCompRef = object.template._context.components[key];
766
+ templateCompRef = object.template._context.components["" + key];
714
767
  }
715
768
  }
716
769
  var tempRef_1;
@@ -722,7 +775,7 @@ function compile(templateElement, helper) {
722
775
  if (templateCompRef.components) {
723
776
  var objkeys = Object.keys(templateCompRef.components) || [];
724
777
  var _loop_1 = function (objstring) {
725
- var intComponent = templateCompRef.components[objstring];
778
+ var intComponent = templateCompRef.components["" + objstring];
726
779
  if (intComponent && intComponent.data) {
727
780
  var tempRef2_1 = Object.assign(intComponent.data(), dataObj.data);
728
781
  intComponent.data = function () { return tempRef2_1; };
@@ -738,7 +791,7 @@ function compile(templateElement, helper) {
738
791
  var app = allVue.createApp(templateCompRef);
739
792
  if (plugins) {
740
793
  for (var i = 0; i < plugins.length; i++) {
741
- app.use(plugins[i]);
794
+ app.use(plugins[parseInt(i.toString(), 10)]);
742
795
  }
743
796
  }
744
797
  app.mount((context.getModuleName() === 'grid') ? ("#" + pid) : ("#" + id));
@@ -751,7 +804,7 @@ function compile(templateElement, helper) {
751
804
  // Compilation for Vue 2 slot template
752
805
  var vueTemplate = new Vue$1__default({
753
806
  render: function () {
754
- return vueSlot_2[templateElement]({ data: data });
807
+ return vueSlot_2["" + templateElement]({ data: data });
755
808
  }
756
809
  });
757
810
  vueTemplate.$mount("#" + id);
@@ -792,10 +845,10 @@ function compile(templateElement, helper) {
792
845
  templateInstance = context.vueInstance.templateCollection;
793
846
  }
794
847
  if (propName) {
795
- if (!templateInstance[propName]) {
796
- templateInstance[propName] = [];
848
+ if (!templateInstance["" + propName]) {
849
+ templateInstance["" + propName] = [];
797
850
  }
798
- templateInstance[propName].push(returnEle[0]);
851
+ templateInstance["" + propName].push(returnEle[0]);
799
852
  }
800
853
  }
801
854
  detach(ele);
@@ -821,24 +874,24 @@ function getVueChildSlot(vueInstance, templateElement) {
821
874
  var scopedSlots = vueInstance.$scopedSlots;
822
875
  var vSlots = vueInstance.scopedSlots;
823
876
  var children = vueInstance.children;
824
- if (scopedSlots && scopedSlots[templateElement]) {
877
+ if (scopedSlots && scopedSlots["" + templateElement]) {
825
878
  return scopedSlots;
826
879
  }
827
880
  else if (slots && slots.default) {
828
881
  var childSlots = slots.default;
829
882
  for (var i = 0; i < childSlots.length; i++) {
830
- var slot = getVueChildSlot(getSlot(childSlots[i]), templateElement);
883
+ var slot = getVueChildSlot(getSlot(childSlots[parseInt(i.toString(), 10)]), templateElement);
831
884
  if (slot) {
832
885
  return slot;
833
886
  }
834
887
  }
835
888
  }
836
- else if (vSlots && vSlots[templateElement]) {
889
+ else if (vSlots && vSlots["" + templateElement]) {
837
890
  return vSlots;
838
891
  }
839
892
  else if (children) {
840
893
  for (var i = 0; i < children.length; i++) {
841
- var slot = getVueChildSlot(getSlot(children[i]), templateElement);
894
+ var slot = getVueChildSlot(getSlot(children[parseInt(i.toString(), 10)]), templateElement);
842
895
  if (slot) {
843
896
  return slot;
844
897
  }
@@ -847,7 +900,8 @@ function getVueChildSlot(vueInstance, templateElement) {
847
900
  return undefined;
848
901
  }
849
902
  function getSlot(vnode) {
850
- var slot = (vnode.componentOptions && vnode.componentOptions.children) ? vnode.componentOptions : vnode.data;
903
+ var slot = (vnode.componentOptions && vnode.componentOptions.children) ? vnode.componentOptions :
904
+ (!vnode.data && (vnode.tag === 'e-markersettings' || vnode.tag === 'e-markersetting')) ? vnode : vnode.data;
851
905
  return vnode.componentInstance ? vnode.componentInstance : slot;
852
906
  }
853
907
  // Get the Vue3 slot template from the root or current Vue component.
@@ -859,13 +913,13 @@ function getCurrentVueSlot(vueInstance, templateElement, root) {
859
913
  return getChildVueSlot(slots, templateElement);
860
914
  }
861
915
  function getChildVueSlot(slots, templateElement) {
862
- if (slots && slots[templateElement]) {
916
+ if (slots && slots["" + templateElement]) {
863
917
  return slots;
864
918
  }
865
919
  else if (slots && slots.default) {
866
920
  var childSlots = slots.default();
867
921
  for (var i = 0; i < childSlots.length; i++) {
868
- var slot = getChildVueSlot(childSlots[i].children, templateElement);
922
+ var slot = getChildVueSlot(childSlots[parseInt(i.toString(), 10)].children, templateElement);
869
923
  if (slot) {
870
924
  return slot;
871
925
  }