@syncfusion/ej2-vue-charts 26.1.41 → 26.2.4

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.
@@ -1,7 +1,7 @@
1
1
  import { Chart, AccumulationChart, RangeNavigator, Sparkline, Smithchart, StockChart, BulletChart, Chart3D, CircularChart3D } from '@syncfusion/ej2-charts';
2
2
  export * from '@syncfusion/ej2-charts';
3
3
  import { vueDefineComponent, isExecute, gh, getProps, ComponentBase } from '@syncfusion/ej2-vue-base';
4
- import { isNullOrUndefined, getValue, isUndefined } from '@syncfusion/ej2-base';
4
+ import { isNullOrUndefined, isUndefined } from '@syncfusion/ej2-base';
5
5
 
6
6
  let TrendlinesDirective = vueDefineComponent({
7
7
  inject: { custom: { default: null } },
@@ -688,13 +688,7 @@ let ChartComponent = vueDefineComponent({
688
688
  let elementCollection = this.templateCollection[tempName];
689
689
  if (elementCollection && elementCollection.length) {
690
690
  for (let ele of elementCollection) {
691
- let destroy = getValue('__vue__.$destroy', ele);
692
- if (destroy) {
693
- ele.__vue__.$destroy();
694
- }
695
- if (ele.innerHTML) {
696
- ele.innerHTML = '';
697
- }
691
+ this.destroyPortals(ele);
698
692
  }
699
693
  delete this.templateCollection[tempName];
700
694
  }
@@ -1011,13 +1005,7 @@ let AccumulationChartComponent = vueDefineComponent({
1011
1005
  let elementCollection = this.templateCollection[tempName];
1012
1006
  if (elementCollection && elementCollection.length) {
1013
1007
  for (let ele of elementCollection) {
1014
- let destroy = getValue('__vue__.$destroy', ele);
1015
- if (destroy) {
1016
- ele.__vue__.$destroy();
1017
- }
1018
- if (ele.innerHTML) {
1019
- ele.innerHTML = '';
1020
- }
1008
+ this.destroyPortals(ele);
1021
1009
  }
1022
1010
  delete this.templateCollection[tempName];
1023
1011
  }
@@ -1226,13 +1214,7 @@ let RangeNavigatorComponent = vueDefineComponent({
1226
1214
  let elementCollection = this.templateCollection[tempName];
1227
1215
  if (elementCollection && elementCollection.length) {
1228
1216
  for (let ele of elementCollection) {
1229
- let destroy = getValue('__vue__.$destroy', ele);
1230
- if (destroy) {
1231
- ele.__vue__.$destroy();
1232
- }
1233
- if (ele.innerHTML) {
1234
- ele.innerHTML = '';
1235
- }
1217
+ this.destroyPortals(ele);
1236
1218
  }
1237
1219
  delete this.templateCollection[tempName];
1238
1220
  }
@@ -1433,13 +1415,7 @@ let SparklineComponent = vueDefineComponent({
1433
1415
  let elementCollection = this.templateCollection[tempName];
1434
1416
  if (elementCollection && elementCollection.length) {
1435
1417
  for (let ele of elementCollection) {
1436
- let destroy = getValue('__vue__.$destroy', ele);
1437
- if (destroy) {
1438
- ele.__vue__.$destroy();
1439
- }
1440
- if (ele.innerHTML) {
1441
- ele.innerHTML = '';
1442
- }
1418
+ this.destroyPortals(ele);
1443
1419
  }
1444
1420
  delete this.templateCollection[tempName];
1445
1421
  }
@@ -1592,13 +1568,7 @@ let SmithchartComponent = vueDefineComponent({
1592
1568
  let elementCollection = this.templateCollection[tempName];
1593
1569
  if (elementCollection && elementCollection.length) {
1594
1570
  for (let ele of elementCollection) {
1595
- let destroy = getValue('__vue__.$destroy', ele);
1596
- if (destroy) {
1597
- ele.__vue__.$destroy();
1598
- }
1599
- if (ele.innerHTML) {
1600
- ele.innerHTML = '';
1601
- }
1571
+ this.destroyPortals(ele);
1602
1572
  }
1603
1573
  delete this.templateCollection[tempName];
1604
1574
  }
@@ -2157,13 +2127,7 @@ let StockChartComponent = vueDefineComponent({
2157
2127
  let elementCollection = this.templateCollection[tempName];
2158
2128
  if (elementCollection && elementCollection.length) {
2159
2129
  for (let ele of elementCollection) {
2160
- let destroy = getValue('__vue__.$destroy', ele);
2161
- if (destroy) {
2162
- ele.__vue__.$destroy();
2163
- }
2164
- if (ele.innerHTML) {
2165
- ele.innerHTML = '';
2166
- }
2130
+ this.destroyPortals(ele);
2167
2131
  }
2168
2132
  delete this.templateCollection[tempName];
2169
2133
  }
@@ -2386,13 +2350,7 @@ let BulletChartComponent = vueDefineComponent({
2386
2350
  let elementCollection = this.templateCollection[tempName];
2387
2351
  if (elementCollection && elementCollection.length) {
2388
2352
  for (let ele of elementCollection) {
2389
- let destroy = getValue('__vue__.$destroy', ele);
2390
- if (destroy) {
2391
- ele.__vue__.$destroy();
2392
- }
2393
- if (ele.innerHTML) {
2394
- ele.innerHTML = '';
2395
- }
2353
+ this.destroyPortals(ele);
2396
2354
  }
2397
2355
  delete this.templateCollection[tempName];
2398
2356
  }
@@ -2794,13 +2752,7 @@ let Chart3DComponent = vueDefineComponent({
2794
2752
  let elementCollection = this.templateCollection[tempName];
2795
2753
  if (elementCollection && elementCollection.length) {
2796
2754
  for (let ele of elementCollection) {
2797
- let destroy = getValue('__vue__.$destroy', ele);
2798
- if (destroy) {
2799
- ele.__vue__.$destroy();
2800
- }
2801
- if (ele.innerHTML) {
2802
- ele.innerHTML = '';
2803
- }
2755
+ this.destroyPortals(ele);
2804
2756
  }
2805
2757
  delete this.templateCollection[tempName];
2806
2758
  }
@@ -3068,13 +3020,7 @@ let CircularChart3DComponent = vueDefineComponent({
3068
3020
  let elementCollection = this.templateCollection[tempName];
3069
3021
  if (elementCollection && elementCollection.length) {
3070
3022
  for (let ele of elementCollection) {
3071
- let destroy = getValue('__vue__.$destroy', ele);
3072
- if (destroy) {
3073
- ele.__vue__.$destroy();
3074
- }
3075
- if (ele.innerHTML) {
3076
- ele.innerHTML = '';
3077
- }
3023
+ this.destroyPortals(ele);
3078
3024
  }
3079
3025
  delete this.templateCollection[tempName];
3080
3026
  }