@syncfusion/ej2-vue-base 20.3.59 → 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;
@@ -100,7 +100,7 @@ var ComponentBase = /** @__PURE__ @class */ (function (_super) {
100
100
  var cusEle = this.$el ? this.$el.querySelectorAll("div.e-directive") : null;
101
101
  if (!isExecute && cusEle) {
102
102
  for (var i = 0; i < cusEle.length; i++) {
103
- 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)]);
104
104
  }
105
105
  }
106
106
  this.ej2Instances.isVue = true;
@@ -109,9 +109,19 @@ var ComponentBase = /** @__PURE__ @class */ (function (_super) {
109
109
  if (this.isVue3) {
110
110
  this.ej2Instances.ej2Instances = this.ej2Instances;
111
111
  this.ej2Instances.referModels = this.models;
112
+ this.setModelValue();
112
113
  }
113
114
  this.ej2Instances.appendTo(this.$el);
114
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
+ };
115
125
  ComponentBase.prototype.getInjectedServices = function () {
116
126
  var ret = [];
117
127
  var provide;
@@ -146,15 +156,15 @@ var ComponentBase = /** @__PURE__ @class */ (function (_super) {
146
156
  }
147
157
  for (var i = 0; i < provideValue.length; i++) {
148
158
  for (var j = 0; j < key.length; j++) {
149
- if ((key[j].indexOf(provideValue[i])) !== -1) {
159
+ if ((key[parseInt(j.toString(), 10)].indexOf(provideValue[parseInt(i.toString(), 10)])) !== -1) {
150
160
  if (this.$root && this.isDecorator) {
151
- provideKey[provideValue[j]] = this.$root[key[i]];
161
+ provideKey[provideValue[parseInt(j.toString(), 10)]] = this.$root[key[parseInt(i.toString(), 10)]];
152
162
  }
153
163
  else if (this.$vnode) {
154
- provideKey[provideValue[i]] = this.$vnode.context[key[j]];
164
+ provideKey[provideValue[parseInt(i.toString(), 10)]] = this.$vnode.context[key[parseInt(j.toString(), 10)]];
155
165
  }
156
166
  else if (this.$parent) {
157
- provideKey[provideValue[i]] = this.$parent[key[j]];
167
+ provideKey[provideValue[parseInt(i.toString(), 10)]] = this.$parent[key[parseInt(j.toString(), 10)]];
158
168
  }
159
169
  injectables = provideKey;
160
170
  }
@@ -175,6 +185,9 @@ var ComponentBase = /** @__PURE__ @class */ (function (_super) {
175
185
  return ret;
176
186
  };
177
187
  ComponentBase.prototype.updated = function () {
188
+ if (this.isVue3) {
189
+ this.setModelValue();
190
+ }
178
191
  if (this.hasChildDirective) {
179
192
  var childKey = {};
180
193
  this.fetchChildPropValues(childKey);
@@ -195,8 +208,8 @@ var ComponentBase = /** @__PURE__ @class */ (function (_super) {
195
208
  var options = {};
196
209
  for (var _i = 0, _a = this.propKeys; _i < _a.length; _i++) {
197
210
  var prop = _a[_i];
198
- if ((!isNullOrUndefined(this[prop]) && !this.isVue3) || (this[0] && !isNullOrUndefined(this[0][0]) && !isNullOrUndefined(this[0][0][prop]))) {
199
- 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];
200
213
  }
201
214
  }
202
215
  if (this.hasChildDirective) {
@@ -233,9 +246,10 @@ var ComponentBase = /** @__PURE__ @class */ (function (_super) {
233
246
  }
234
247
  if (propRef) {
235
248
  for (var i = 0; i < propRef.length; i++) {
236
- if (propRef[i].type.methods) {
237
- var key = propRef[i].type.methods.getTag().replace("e-", "");
238
- 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);
239
253
  var splitKeys = key.split('-');
240
254
  var controlName = this.ej2Instances.getModuleName().toLowerCase();
241
255
  var keyRef = (splitKeys.length > 1 && controlName.indexOf(splitKeys[0]) > -1) ? splitKeys[1] : splitKeys[0];
@@ -249,7 +263,7 @@ var ComponentBase = /** @__PURE__ @class */ (function (_super) {
249
263
  else if (controlName == "schedule" && keyRef == "header") {
250
264
  keyRef = "headerRows";
251
265
  }
252
- dirProps[keyRef] = ref[key];
266
+ dirProps["" + keyRef] = ref["" + key];
253
267
  }
254
268
  }
255
269
  }
@@ -262,7 +276,7 @@ var ComponentBase = /** @__PURE__ @class */ (function (_super) {
262
276
  }
263
277
  for (var _i = 0, _a = Object.keys(dirProps); _i < _a.length; _i++) {
264
278
  var dirProp = _a[_i];
265
- childOption[dirProp] = dirProps[dirProp];
279
+ childOption["" + dirProp] = dirProps["" + dirProp];
266
280
  }
267
281
  };
268
282
  ComponentBase.prototype.resolveArrayDirectives = function (slots, tagName) {
@@ -270,7 +284,7 @@ var ComponentBase = /** @__PURE__ @class */ (function (_super) {
270
284
  var innerDirValues;
271
285
  slot = slots.default ? slots.default() : slots;
272
286
  var items = {};
273
- items[tagName] = [];
287
+ items["" + tagName] = [];
274
288
  var _loop_2 = function (childSlot) {
275
289
  var tempObj = {};
276
290
  var tagRef = childSlot.type.methods ? childSlot.type.methods.getTag() : tagName;
@@ -282,22 +296,25 @@ var ComponentBase = /** @__PURE__ @class */ (function (_super) {
282
296
  }
283
297
  else {
284
298
  for (var i = 0; i < Object.keys(innerDirValues).length; i++) {
285
- key = Object.keys(innerDirValues)[i];
286
- tempObj[key] = innerDirValues[key];
299
+ key = Object.keys(innerDirValues)[parseInt(i.toString(), 10)];
300
+ tempObj["" + key] = innerDirValues["" + key];
287
301
  }
288
302
 
289
303
  }
290
304
  }
291
305
  if (childSlot.props) {
292
306
  Object.keys(childSlot.props).forEach(function (key) {
293
- 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
+ }
294
311
  });
295
312
  }
296
313
  if (((/[s]\b/).test(tagRef) && innerDirValues) && (!(/[s]\b/).test(tagName) || innerDirValues.length)) {
297
- items[tagName] = tempObj;
314
+ items["" + tagName] = tempObj;
298
315
  }
299
316
  else if (tempObj && Object.keys(tempObj).length !== 0) {
300
- items[tagName].push(tempObj);
317
+ items["" + tagName].push(tempObj);
301
318
  }
302
319
  };
303
320
  var this_2 = this;
@@ -315,10 +332,10 @@ var ComponentBase = /** @__PURE__ @class */ (function (_super) {
315
332
  var _loop_3 = function (childSlot) {
316
333
  var tagRef = void 0;
317
334
  var tag = void 0;
318
- if (tagObject[tagName]) {
319
- tagRef = Object.keys(tagObject[tagName]);
335
+ if (tagObject["" + tagName]) {
336
+ tagRef = Object.keys(tagObject["" + tagName]);
320
337
  tag = tagRef.find(function (key) {
321
- return tagObject[tagName][key] ===
338
+ return tagObject["" + tagName]["" + key] ===
322
339
  childSlot.type.methods.getTag().replace(/[s]\b/, "");
323
340
  });
324
341
  tag = tag
@@ -329,17 +346,20 @@ var ComponentBase = /** @__PURE__ @class */ (function (_super) {
329
346
  }
330
347
  }
331
348
  if (childSlot.children) {
332
- innerDirValues = this_3.resolveComplexInnerDirs(childSlot.children, tagObject[tagName], childSlot.type.methods.getTag());
333
- if (!items[tag]) {
334
- items[tag] = [];
349
+ innerDirValues = this_3.resolveComplexInnerDirs(childSlot.children, tagObject["" + tagName], childSlot.type.methods.getTag());
350
+ if (!items["" + tag]) {
351
+ items["" + tag] = [];
335
352
  }
336
353
  if (innerDirValues.length > 1) {
337
- items[tag] = innerDirValues;
354
+ items["" + tag] = innerDirValues;
338
355
  }
339
356
  else {
340
- items[tag].push(innerDirValues);
357
+ items["" + tag].push(innerDirValues);
341
358
  }
342
359
  }
360
+ if (childSlot.props) {
361
+ childSlot.props = this_3.getCamelCaseProps(childSlot.props);
362
+ }
343
363
  if (slot.length > 1) {
344
364
  items = Object.keys(items).length == 0 && !items.length ? [] : items;
345
365
  if (childSlot.props) {
@@ -366,15 +386,15 @@ var ComponentBase = /** @__PURE__ @class */ (function (_super) {
366
386
  var childSlot = slot_3[_i];
367
387
  var tag = childSlot.type.methods.getTag().replace("e-", "");
368
388
  if (childSlot.children) {
369
- innerDirValues = this.resolveMultilevelComplexInnerDirs(childSlot.children, tagObject[tagName], childSlot.type.methods.getTag());
389
+ innerDirValues = this.resolveMultilevelComplexInnerDirs(childSlot.children, tagObject["" + tagName], childSlot.type.methods.getTag());
370
390
  if ((/[s]\b/).test(tag) || slot.length > 1) {
371
391
  if ((/[s]\b/).test(tag)) {
372
- items[tag] = !items[tag] ? [] : items[tag];
392
+ items["" + tag] = !items["" + tag] ? [] : items["" + tag];
373
393
  if (innerDirValues.length) {
374
- items[tag] = innerDirValues;
394
+ items["" + tag] = innerDirValues;
375
395
  }
376
396
  else {
377
- items[tag].push(innerDirValues);
397
+ items["" + tag].push(innerDirValues);
378
398
  }
379
399
  }
380
400
  else if (innerDirValues) {
@@ -385,6 +405,9 @@ var ComponentBase = /** @__PURE__ @class */ (function (_super) {
385
405
  items = innerDirValues ? innerDirValues : items;
386
406
  }
387
407
  }
408
+ if (childSlot.props) {
409
+ childSlot.props = this.getCamelCaseProps(childSlot.props);
410
+ }
388
411
  if (slot.length > 1 && childSlot.props) {
389
412
  if (items.length >= 0) {
390
413
  items.push(childSlot.props);
@@ -408,18 +431,21 @@ var ComponentBase = /** @__PURE__ @class */ (function (_super) {
408
431
  var childSlot = slot_4[_i];
409
432
  var tag = childSlot.type.methods.getTag().replace("e-", "");
410
433
  if (childSlot.children) {
411
- 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);
412
438
  }
413
439
  if ((/[s]\b/).test(tag)) {
414
- items[tag] = !items[tag] ? [] : items[tag];
440
+ items["" + tag] = !items["" + tag] ? [] : items["" + tag];
415
441
  if (innerDirValues.length) {
416
- items[tag] = innerDirValues;
442
+ items["" + tag] = innerDirValues;
417
443
  }
418
444
  else {
419
- items[tag].push(innerDirValues);
445
+ items["" + tag].push(innerDirValues);
420
446
  }
421
447
  if (childSlot.props) {
422
- items[tag].push(childSlot.props);
448
+ items["" + tag].push(childSlot.props);
423
449
  }
424
450
  }
425
451
  else {
@@ -435,14 +461,17 @@ var ComponentBase = /** @__PURE__ @class */ (function (_super) {
435
461
  if (tagDirectives) {
436
462
  for (var _i = 0, tagDirectives_1 = tagDirectives; _i < tagDirectives_1.length; _i++) {
437
463
  var tagDirective = tagDirectives_1[_i];
438
- if (tagDirective.componentOptions && tagDirective.componentOptions.children && tagDirective.componentOptions.tag) {
439
- 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;
440
468
  if (keyTags.indexOf(dirTag) !== -1) {
441
- var tagName = tagNameMapper[dirTag] ? tagNameMapper[dirTag] : dirTag;
469
+ var tagName = tagNameMapper["" + dirTag] ? tagNameMapper["" + dirTag] : dirTag;
442
470
  dir[tagName.replace('e-', '')] = [];
443
- for (var _a = 0, _b = tagDirective.componentOptions.children; _a < _b.length; _a++) {
444
- var tagDirChild = _b[_a];
445
- 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);
446
475
  if (Object.keys(retObj).length !== 0) {
447
476
  dir[tagName.replace('e-', '')].push(retObj);
448
477
  }
@@ -457,14 +486,25 @@ var ComponentBase = /** @__PURE__ @class */ (function (_super) {
457
486
  var mulObj = {};
458
487
  for (var _i = 0, tagDirectories_1 = tagDirectories; _i < tagDirectories_1.length; _i++) {
459
488
  var tagDir = tagDirectories_1[_i];
489
+ var key = void 0;
490
+ var children = void 0;
460
491
  if (tagDir.componentOptions) {
461
- var key = tagDir.componentOptions.tag;
462
- 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;
463
503
  mulObj[tagName.replace('e-', '')] = [];
464
- if (tagDir.componentOptions && tagDir.componentOptions.children) {
465
- for (var _a = 0, _b = tagDir.componentOptions.children; _a < _b.length; _a++) {
466
- var tagDirChild = _b[_a];
467
- 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);
468
508
  if (Object.keys(mulLevObj).length !== 0) {
469
509
  mulObj[tagName.replace('e-', '')].push(mulLevObj);
470
510
  }
@@ -476,14 +516,23 @@ var ComponentBase = /** @__PURE__ @class */ (function (_super) {
476
516
  };
477
517
  ComponentBase.prototype.getVNodeValue = function (tagDirective, tagKey, tagNameMapper) {
478
518
  var ret = {};
479
- if (tagDirective.componentOptions) {
480
- 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
+ }
481
527
  if (typeof tagKey === 'string' && dirTag === tagKey && tagDirective.data) {
482
528
  ret = tagDirective.data.attrs ? this.getCamelCaseProps(tagDirective.data.attrs) : this.getCamelCaseProps(tagDirective.data);
483
529
  }
484
530
  else if (typeof tagKey === 'object') {
485
531
  if (tagDirective.componentOptions.children && (Object.keys(tagKey).indexOf(dirTag) !== -1)) {
486
- 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);
487
536
  }
488
537
  if (tagDirective.data && tagDirective.data.attrs) {
489
538
  ret = extend(ret, this.getCamelCaseProps(tagDirective.data.attrs));
@@ -499,7 +548,7 @@ var ComponentBase = /** @__PURE__ @class */ (function (_super) {
499
548
  var retProps = {};
500
549
  for (var _i = 0, _a = Object.keys(props); _i < _a.length; _i++) {
501
550
  var prop = _a[_i];
502
- 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];
503
552
  }
504
553
  return retProps;
505
554
  };
@@ -535,9 +584,9 @@ function getProps(options) {
535
584
  if (options === void 0) { options = {}; }
536
585
  if (options.props) {
537
586
  var _loop_1 = function (prop) {
538
- (options.newprops || (options.newprops = {}))[prop] = {};
539
- (options.watch || (options.watch = {}))[prop] = function (newVal) {
540
- this.ej2Instances[prop] = newVal;
587
+ (options.newprops || (options.newprops = {}))["" + prop] = {};
588
+ (options.watch || (options.watch = {}))["" + prop] = function (newVal) {
589
+ this.ej2Instances["" + prop] = newVal;
541
590
  if (this.dataBind && (options.name !== 'DateRangePickerComponent')) {
542
591
  this.dataBind();
543
592
  }
@@ -565,9 +614,9 @@ function EJcomponentFactory(Component, options) {
565
614
  var proto = Component.prototype;
566
615
  if (options.props) {
567
616
  var _loop_2 = function (prop) {
568
- (options.props || (options.props = {}))[prop] = {};
569
- (options.watch || (options.watch = {}))[prop] = function (newVal) {
570
- this.ej2Instances[prop] = newVal;
617
+ (options.props || (options.props = {}))["" + prop] = {};
618
+ (options.watch || (options.watch = {}))["" + prop] = function (newVal) {
619
+ this.ej2Instances["" + prop] = newVal;
571
620
  if (this.dataBind && (options.name !== 'DateRangePickerComponent')) {
572
621
  this.dataBind();
573
622
  }
@@ -584,17 +633,17 @@ function EJcomponentFactory(Component, options) {
584
633
  return;
585
634
  }
586
635
  if ($internalHooks.indexOf(key) > -1) {
587
- options[key] = proto[key];
636
+ options["" + key] = proto["" + key];
588
637
  return;
589
638
  }
590
639
  var descriptor = Object.getOwnPropertyDescriptor(proto, key);
591
640
  if (typeof descriptor.value === 'function') {
592
641
  // methods
593
- (options.methods || (options.methods = {}))[key] = descriptor.value;
642
+ (options.methods || (options.methods = {}))["" + key] = descriptor.value;
594
643
  }
595
644
  else if (descriptor.get || descriptor.set) {
596
645
  // computed properties
597
- (options.computed || (options.computed = {}))[key] = {
646
+ (options.computed || (options.computed = {}))["" + key] = {
598
647
  get: descriptor.get,
599
648
  set: descriptor.set
600
649
  };
@@ -602,7 +651,7 @@ function EJcomponentFactory(Component, options) {
602
651
  });
603
652
  Object.getOwnPropertyNames(ComponentBase.prototype).forEach(function (key) {
604
653
  if ($internalHooks.indexOf(key) > -1) {
605
- options[key] = proto[key];
654
+ options["" + key] = proto["" + key];
606
655
  return;
607
656
  }
608
657
  });
@@ -639,8 +688,8 @@ function collectDataFromConstructor(vm, Component) {
639
688
  keys.forEach(function (key) {
640
689
  if (key.charAt(0) !== '_') {
641
690
  Object.defineProperty(_this, key, {
642
- get: function () { return vm[key]; },
643
- set: function (value) { return vm[key] = value; }
691
+ get: function () { return vm["" + key]; },
692
+ set: function (value) { return vm["" + key] = value; }
644
693
  });
645
694
  }
646
695
  });
@@ -648,8 +697,8 @@ function collectDataFromConstructor(vm, Component) {
648
697
  var data = new Component();
649
698
  var plainData = {};
650
699
  Object.keys(data).forEach(function (key) {
651
- if (data[key] !== undefined) {
652
- plainData[key] = data[key];
700
+ if (data["" + key] !== undefined) {
701
+ plainData["" + key] = data["" + key];
653
702
  }
654
703
  });
655
704
  return plainData;
@@ -676,12 +725,12 @@ function compile(templateElement, helper) {
676
725
  // Compilation for Vue 3 slot template
677
726
  var app = allVue.createApp({
678
727
  render: function () {
679
- return vueSlot_1[templateElement]({ data: data });
728
+ return vueSlot_1["" + templateElement]({ data: data });
680
729
  }
681
730
  });
682
731
  if (plugins) {
683
732
  for (var i = 0; i < plugins.length; i++) {
684
- app.use(plugins[i]);
733
+ app.use(plugins[parseInt(i.toString(), 10)]);
685
734
  }
686
735
  }
687
736
  app.mount((context.getModuleName() === 'grid') ? ("#" + pid) : ("#" + id));
@@ -714,7 +763,7 @@ function compile(templateElement, helper) {
714
763
  templateCompRef = object.template._context.components[templateElement.name];
715
764
  if (!templateCompRef) {
716
765
  var key = Object.keys(object.template._context.components)[0];
717
- templateCompRef = object.template._context.components[key];
766
+ templateCompRef = object.template._context.components["" + key];
718
767
  }
719
768
  }
720
769
  var tempRef_1;
@@ -726,7 +775,7 @@ function compile(templateElement, helper) {
726
775
  if (templateCompRef.components) {
727
776
  var objkeys = Object.keys(templateCompRef.components) || [];
728
777
  var _loop_1 = function (objstring) {
729
- var intComponent = templateCompRef.components[objstring];
778
+ var intComponent = templateCompRef.components["" + objstring];
730
779
  if (intComponent && intComponent.data) {
731
780
  var tempRef2_1 = Object.assign(intComponent.data(), dataObj.data);
732
781
  intComponent.data = function () { return tempRef2_1; };
@@ -742,7 +791,7 @@ function compile(templateElement, helper) {
742
791
  var app = allVue.createApp(templateCompRef);
743
792
  if (plugins) {
744
793
  for (var i = 0; i < plugins.length; i++) {
745
- app.use(plugins[i]);
794
+ app.use(plugins[parseInt(i.toString(), 10)]);
746
795
  }
747
796
  }
748
797
  app.mount((context.getModuleName() === 'grid') ? ("#" + pid) : ("#" + id));
@@ -755,7 +804,7 @@ function compile(templateElement, helper) {
755
804
  // Compilation for Vue 2 slot template
756
805
  var vueTemplate = new Vue$1__default({
757
806
  render: function () {
758
- return vueSlot_2[templateElement]({ data: data });
807
+ return vueSlot_2["" + templateElement]({ data: data });
759
808
  }
760
809
  });
761
810
  vueTemplate.$mount("#" + id);
@@ -796,10 +845,10 @@ function compile(templateElement, helper) {
796
845
  templateInstance = context.vueInstance.templateCollection;
797
846
  }
798
847
  if (propName) {
799
- if (!templateInstance[propName]) {
800
- templateInstance[propName] = [];
848
+ if (!templateInstance["" + propName]) {
849
+ templateInstance["" + propName] = [];
801
850
  }
802
- templateInstance[propName].push(returnEle[0]);
851
+ templateInstance["" + propName].push(returnEle[0]);
803
852
  }
804
853
  }
805
854
  detach(ele);
@@ -825,24 +874,24 @@ function getVueChildSlot(vueInstance, templateElement) {
825
874
  var scopedSlots = vueInstance.$scopedSlots;
826
875
  var vSlots = vueInstance.scopedSlots;
827
876
  var children = vueInstance.children;
828
- if (scopedSlots && scopedSlots[templateElement]) {
877
+ if (scopedSlots && scopedSlots["" + templateElement]) {
829
878
  return scopedSlots;
830
879
  }
831
880
  else if (slots && slots.default) {
832
881
  var childSlots = slots.default;
833
882
  for (var i = 0; i < childSlots.length; i++) {
834
- var slot = getVueChildSlot(getSlot(childSlots[i]), templateElement);
883
+ var slot = getVueChildSlot(getSlot(childSlots[parseInt(i.toString(), 10)]), templateElement);
835
884
  if (slot) {
836
885
  return slot;
837
886
  }
838
887
  }
839
888
  }
840
- else if (vSlots && vSlots[templateElement]) {
889
+ else if (vSlots && vSlots["" + templateElement]) {
841
890
  return vSlots;
842
891
  }
843
892
  else if (children) {
844
893
  for (var i = 0; i < children.length; i++) {
845
- var slot = getVueChildSlot(getSlot(children[i]), templateElement);
894
+ var slot = getVueChildSlot(getSlot(children[parseInt(i.toString(), 10)]), templateElement);
846
895
  if (slot) {
847
896
  return slot;
848
897
  }
@@ -851,7 +900,8 @@ function getVueChildSlot(vueInstance, templateElement) {
851
900
  return undefined;
852
901
  }
853
902
  function getSlot(vnode) {
854
- 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;
855
905
  return vnode.componentInstance ? vnode.componentInstance : slot;
856
906
  }
857
907
  // Get the Vue3 slot template from the root or current Vue component.
@@ -863,13 +913,13 @@ function getCurrentVueSlot(vueInstance, templateElement, root) {
863
913
  return getChildVueSlot(slots, templateElement);
864
914
  }
865
915
  function getChildVueSlot(slots, templateElement) {
866
- if (slots && slots[templateElement]) {
916
+ if (slots && slots["" + templateElement]) {
867
917
  return slots;
868
918
  }
869
919
  else if (slots && slots.default) {
870
920
  var childSlots = slots.default();
871
921
  for (var i = 0; i < childSlots.length; i++) {
872
- var slot = getChildVueSlot(childSlots[i].children, templateElement);
922
+ var slot = getChildVueSlot(childSlots[parseInt(i.toString(), 10)].children, templateElement);
873
923
  if (slot) {
874
924
  return slot;
875
925
  }