@syncfusion/ej2-vue-pivotview 20.4.54 → 21.1.35

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.
Files changed (58) hide show
  1. package/CHANGELOG.md +9 -38
  2. package/dist/ej2-vue-pivotview.umd.min.js +2 -2
  3. package/dist/ej2-vue-pivotview.umd.min.js.map +1 -1
  4. package/dist/es6/ej2-vue-pivotview.es2015.js +178 -220
  5. package/dist/es6/ej2-vue-pivotview.es2015.js.map +1 -1
  6. package/dist/es6/ej2-vue-pivotview.es5.js +201 -253
  7. package/dist/es6/ej2-vue-pivotview.es5.js.map +1 -1
  8. package/dist/global/ej2-vue-pivotview.min.js +2 -2
  9. package/package.json +9 -9
  10. package/src/pivotfieldlist/pivotfieldlist.component.d.ts +3 -24
  11. package/src/pivotfieldlist/pivotfieldlist.component.js +90 -119
  12. package/src/pivotview/pivotview.component.d.ts +4 -33
  13. package/src/pivotview/pivotview.component.js +114 -143
  14. package/styles/bootstrap-dark.css +80 -4
  15. package/styles/bootstrap.css +81 -4
  16. package/styles/bootstrap4.css +81 -14
  17. package/styles/bootstrap5-dark.css +94 -17
  18. package/styles/bootstrap5.css +94 -17
  19. package/styles/fabric-dark.css +83 -12
  20. package/styles/fabric.css +82 -9
  21. package/styles/fluent-dark.css +100 -19
  22. package/styles/fluent.css +100 -19
  23. package/styles/highcontrast-light.css +83 -8
  24. package/styles/highcontrast.css +83 -8
  25. package/styles/material-dark.css +80 -4
  26. package/styles/material.css +80 -10
  27. package/styles/pivotfieldlist/bootstrap-dark.css +58 -2
  28. package/styles/pivotfieldlist/bootstrap.css +58 -2
  29. package/styles/pivotfieldlist/bootstrap4.css +58 -2
  30. package/styles/pivotfieldlist/bootstrap5-dark.css +66 -9
  31. package/styles/pivotfieldlist/bootstrap5.css +66 -9
  32. package/styles/pivotfieldlist/fabric-dark.css +58 -2
  33. package/styles/pivotfieldlist/fabric.css +58 -2
  34. package/styles/pivotfieldlist/fluent-dark.css +72 -11
  35. package/styles/pivotfieldlist/fluent.css +72 -11
  36. package/styles/pivotfieldlist/highcontrast-light.css +58 -2
  37. package/styles/pivotfieldlist/highcontrast.css +58 -2
  38. package/styles/pivotfieldlist/material-dark.css +58 -2
  39. package/styles/pivotfieldlist/material.css +58 -2
  40. package/styles/pivotfieldlist/tailwind-dark.css +64 -7
  41. package/styles/pivotfieldlist/tailwind.css +64 -7
  42. package/styles/pivotview/bootstrap-dark.css +22 -2
  43. package/styles/pivotview/bootstrap.css +23 -2
  44. package/styles/pivotview/bootstrap4.css +23 -12
  45. package/styles/pivotview/bootstrap5-dark.css +28 -8
  46. package/styles/pivotview/bootstrap5.css +28 -8
  47. package/styles/pivotview/fabric-dark.css +25 -10
  48. package/styles/pivotview/fabric.css +24 -7
  49. package/styles/pivotview/fluent-dark.css +28 -8
  50. package/styles/pivotview/fluent.css +28 -8
  51. package/styles/pivotview/highcontrast-light.css +25 -6
  52. package/styles/pivotview/highcontrast.css +25 -6
  53. package/styles/pivotview/material-dark.css +22 -2
  54. package/styles/pivotview/material.css +22 -8
  55. package/styles/pivotview/tailwind-dark.css +25 -9
  56. package/styles/pivotview/tailwind.css +25 -9
  57. package/styles/tailwind-dark.css +89 -16
  58. package/styles/tailwind.css +89 -16
@@ -1,27 +1,7 @@
1
1
  import { PivotFieldList, PivotView } from '@syncfusion/ej2-pivotview';
2
- import { ComponentBase, EJComponentDecorator, getProps, gh, isExecute } from '@syncfusion/ej2-vue-base';
2
+ import { ComponentBase, getProps, gh, isExecute, vueDefineComponent } from '@syncfusion/ej2-vue-base';
3
3
  import { getValue, isNullOrUndefined } from '@syncfusion/ej2-base';
4
4
 
5
- var __extends = (undefined && undefined.__extends) || (function () {
6
- var extendStatics = function (d, b) {
7
- extendStatics = Object.setPrototypeOf ||
8
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
9
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
10
- return extendStatics(d, b);
11
- };
12
- return function (d, b) {
13
- extendStatics(d, b);
14
- function __() { this.constructor = d; }
15
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
16
- };
17
- })();
18
- var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
19
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
20
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
21
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
22
- return c > 3 && r && Object.defineProperty(target, key, r), r;
23
- };
24
- import { Options } from 'vue-class-component';
25
5
  var properties = ['isLazyUpdate', 'plugins', 'aggregateTypes', 'allowCalculatedField', 'allowConditionalFormatting', 'allowDataCompression', 'allowDeferLayoutUpdate', 'allowDrillThrough', 'allowExcelExport', 'allowGrouping', 'allowNumberFormatting', 'allowPdfExport', 'cellTemplate', 'chartSettings', 'chartTypes', 'cssClass', 'dataSourceSettings', 'displayOption', 'editSettings', 'enableFieldSearching', 'enableHtmlSanitizer', 'enablePaging', 'enablePersistence', 'enableRtl', 'enableValueSorting', 'enableVirtualization', 'exportAllPages', 'gridSettings', 'groupingBarSettings', 'height', 'hyperlinkSettings', 'loadOnDemandInMemberEditor', 'locale', 'maxNodeLimitInMemberEditor', 'maxRowsInDrillThrough', 'pageSettings', 'pagerSettings', 'pivotValues', 'showFieldList', 'showGroupingBar', 'showToolbar', 'showTooltip', 'showValuesButton', 'spinnerTemplate', 'toolbar', 'toolbarTemplate', 'tooltipTemplate', 'width', 'actionBegin', 'actionComplete', 'actionFailure', 'aggregateCellInfo', 'aggregateMenuOpen', 'beforeExport', 'beforeServiceInvoke', 'beginDrillThrough', 'calculatedFieldCreate', 'cellClick', 'cellSelected', 'cellSelecting', 'chartSeriesCreated', 'conditionalFormatting', 'created', 'dataBound', 'destroyed', 'drill', 'drillThrough', 'editCompleted', 'enginePopulated', 'enginePopulating', 'exportComplete', 'fetchReport', 'fieldDragStart', 'fieldDrop', 'fieldListRefreshed', 'fieldRemove', 'hyperlinkCellClick', 'load', 'loadReport', 'memberEditorOpen', 'memberFiltering', 'newReport', 'numberFormatting', 'onFieldDropped', 'onHeadersSort', 'onPdfCellRender', 'removeReport', 'renameReport', 'saveReport', 'toolbarClick', 'toolbarRender'];
26
6
  var modelProps = [];
27
7
  var testProp = getProps({ props: properties });
@@ -34,136 +14,130 @@ for (var _i = 0, modelProps_1 = modelProps; _i < modelProps_1.length; _i++) {
34
14
  emitProbs.push('update:' + props_1);
35
15
  }
36
16
  /**
37
- * `ejs-pivotview` represents the VueJS PivotView Component.
17
+ * `ejs-pivotview` represents the VueJS Pivot Table Component.
38
18
  * ```vue
39
19
  * <ejs-pivotview></ejs-pivotview>
40
20
  * ```
41
21
  */
42
- var PivotViewComponent = /** @__PURE__ @class */ (function (_super) {
43
- __extends(PivotViewComponent, _super);
44
- function PivotViewComponent() {
45
- var _this = _super.call(this, arguments) || this;
46
- _this.propKeys = properties;
47
- _this.models = modelProps;
48
- _this.hasChildDirective = false;
49
- _this.hasInjectedModules = true;
50
- _this.tagMapper = {};
51
- _this.tagNameMapper = {};
52
- _this.isVue3 = !isExecute;
53
- _this.ej2Instances = new PivotView({});
54
- _this.bindProperties();
55
- _this.ej2Instances._setProperties = _this.ej2Instances.setProperties;
56
- _this.ej2Instances.setProperties = _this.setProperties;
57
- _this.ej2Instances.clearTemplate = _this.clearTemplate;
58
- _this.updated = _this.updated;
59
- return _this;
60
- }
61
- PivotViewComponent.prototype.clearTemplate = function (templateNames) {
62
- if (!templateNames) {
63
- templateNames = Object.keys(this.templateCollection || {});
22
+ var PivotViewComponent = vueDefineComponent({
23
+ name: 'PivotViewComponent',
24
+ mixins: [ComponentBase],
25
+ props: props,
26
+ watch: watch,
27
+ emits: emitProbs,
28
+ provide: function () { return { custom: this.custom }; },
29
+ data: function () {
30
+ return {
31
+ ej2Instances: new PivotView({}),
32
+ propKeys: properties,
33
+ models: modelProps,
34
+ hasChildDirective: false,
35
+ hasInjectedModules: true,
36
+ tagMapper: {},
37
+ tagNameMapper: {},
38
+ isVue3: !isExecute,
39
+ templateCollection: {},
40
+ };
41
+ },
42
+ created: function () {
43
+ this.bindProperties();
44
+ this.ej2Instances._setProperties = this.ej2Instances.setProperties;
45
+ this.ej2Instances.setProperties = this.setProperties;
46
+ this.ej2Instances.clearTemplate = this.clearTemplate;
47
+ this.updated = this.updated;
48
+ },
49
+ render: function (createElement) {
50
+ var h = !isExecute ? gh : createElement;
51
+ var slots = null;
52
+ if (!isNullOrUndefined(this.$slots.default)) {
53
+ slots = !isExecute ? this.$slots.default() : this.$slots.default;
64
54
  }
65
- if (templateNames.length && this.templateCollection) {
66
- for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {
67
- var tempName = templateNames_1[_i];
68
- var elementCollection = this.templateCollection[tempName];
69
- if (elementCollection && elementCollection.length) {
70
- for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {
71
- var ele = elementCollection_1[_a];
72
- var destroy = getValue('__vue__.$destroy', ele);
73
- if (destroy) {
74
- ele.__vue__.$destroy();
75
- }
76
- if (ele.innerHTML) {
77
- ele.innerHTML = '';
55
+ return h('div', slots);
56
+ },
57
+ methods: {
58
+ clearTemplate: function (templateNames) {
59
+ if (!templateNames) {
60
+ templateNames = Object.keys(this.templateCollection || {});
61
+ }
62
+ if (templateNames.length && this.templateCollection) {
63
+ for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {
64
+ var tempName = templateNames_1[_i];
65
+ var elementCollection = this.templateCollection[tempName];
66
+ if (elementCollection && elementCollection.length) {
67
+ for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {
68
+ var ele = elementCollection_1[_a];
69
+ var destroy = getValue('__vue__.$destroy', ele);
70
+ if (destroy) {
71
+ ele.__vue__.$destroy();
72
+ }
73
+ if (ele.innerHTML) {
74
+ ele.innerHTML = '';
75
+ }
78
76
  }
77
+ delete this.templateCollection[tempName];
79
78
  }
80
- delete this.templateCollection[tempName];
81
79
  }
82
80
  }
83
- }
84
- };
85
- PivotViewComponent.prototype.setProperties = function (prop, muteOnChange) {
86
- var _this = this;
87
- if (this.isVue3) {
88
- this.models = !this.models ? this.ej2Instances.referModels : this.models;
89
- }
90
- if (this.ej2Instances && this.ej2Instances._setProperties) {
91
- this.ej2Instances._setProperties(prop, muteOnChange);
92
- }
93
- if (prop && this.models && this.models.length) {
94
- Object.keys(prop).map(function (key) {
95
- _this.models.map(function (model) {
96
- if ((key === model) && !(/datasource/i.test(key))) {
97
- if (_this.isVue3) {
98
- _this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
99
- }
100
- else {
101
- _this.$emit('update:' + key, prop[key]);
102
- _this.$emit('modelchanged', prop[key]);
81
+ },
82
+ setProperties: function (prop, muteOnChange) {
83
+ var _this = this;
84
+ if (this.isVue3) {
85
+ this.models = !this.models ? this.ej2Instances.referModels : this.models;
86
+ }
87
+ if (this.ej2Instances && this.ej2Instances._setProperties) {
88
+ this.ej2Instances._setProperties(prop, muteOnChange);
89
+ }
90
+ if (prop && this.models && this.models.length) {
91
+ Object.keys(prop).map(function (key) {
92
+ _this.models.map(function (model) {
93
+ if ((key === model) && !(/datasource/i.test(key))) {
94
+ if (_this.isVue3) {
95
+ _this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
96
+ }
97
+ else {
98
+ _this.$emit('update:' + key, prop[key]);
99
+ _this.$emit('modelchanged', prop[key]);
100
+ }
103
101
  }
104
- }
102
+ });
105
103
  });
106
- });
107
- }
108
- };
109
- PivotViewComponent.prototype.render = function (createElement) {
110
- var h = !isExecute ? gh : createElement;
111
- var slots = null;
112
- if (!isNullOrUndefined(this.$slots.default)) {
113
- slots = !isExecute ? this.$slots.default() : this.$slots.default;
114
- }
115
- return h('div', slots);
116
- };
117
- PivotViewComponent.prototype.custom = function () {
118
- this.updated();
119
- };
120
- PivotViewComponent.prototype.chartExport = function (type, pdfExportProperties, isMultipleExport, pdfDoc, isBlob) {
121
- return this.ej2Instances.chartExport(type, pdfExportProperties, isMultipleExport, pdfDoc, isBlob);
122
- };
123
- PivotViewComponent.prototype.createCalculatedFieldDialog = function () {
124
- return this.ej2Instances.createCalculatedFieldDialog();
125
- };
126
- PivotViewComponent.prototype.csvExport = function (excelExportProperties, isMultipleExport, workbook, isBlob) {
127
- return this.ej2Instances.csvExport(excelExportProperties, isMultipleExport, workbook, isBlob);
128
- };
129
- PivotViewComponent.prototype.excelExport = function (excelExportProperties, isMultipleExport, workbook, isBlob) {
130
- return this.ej2Instances.excelExport(excelExportProperties, isMultipleExport, workbook, isBlob);
131
- };
132
- PivotViewComponent.prototype.loadPersistData = function (persistData) {
133
- return this.ej2Instances.loadPersistData(persistData);
134
- };
135
- PivotViewComponent.prototype.pdfExport = function (pdfExportProperties, isMultipleExport, pdfDoc, isBlob, exportBothTableAndChart) {
136
- return this.ej2Instances.pdfExport(pdfExportProperties, isMultipleExport, pdfDoc, isBlob, exportBothTableAndChart);
137
- };
138
- PivotViewComponent.prototype.printChart = function () {
139
- return this.ej2Instances.printChart();
140
- };
141
- PivotViewComponent.prototype.refresh = function () {
142
- return this.ej2Instances.refresh();
143
- };
144
- PivotViewComponent.prototype.showConditionalFormattingDialog = function () {
145
- return this.ej2Instances.showConditionalFormattingDialog();
146
- };
147
- PivotViewComponent.prototype.showNumberFormattingDialog = function () {
148
- return this.ej2Instances.showNumberFormattingDialog();
149
- };
150
- PivotViewComponent = __decorate([
151
- EJComponentDecorator({
152
- props: properties
153
- }, isExecute)
154
- ,Options({
155
- props: props,
156
- watch: watch,
157
- emits: emitProbs,
158
- provide: function provide() {
159
- return {
160
- custom: this.custom
161
- };
162
104
  }
163
- })
164
- ], PivotViewComponent);
165
- return PivotViewComponent;
166
- }(ComponentBase));
105
+ },
106
+ custom: function () {
107
+ this.updated();
108
+ },
109
+ chartExport: function (type, pdfExportProperties, isMultipleExport, pdfDoc, isBlob) {
110
+ return this.ej2Instances.chartExport(type, pdfExportProperties, isMultipleExport, pdfDoc, isBlob);
111
+ },
112
+ createCalculatedFieldDialog: function () {
113
+ return this.ej2Instances.createCalculatedFieldDialog();
114
+ },
115
+ csvExport: function (excelExportProperties, isMultipleExport, workbook, isBlob) {
116
+ return this.ej2Instances.csvExport(excelExportProperties, isMultipleExport, workbook, isBlob);
117
+ },
118
+ excelExport: function (excelExportProperties, isMultipleExport, workbook, isBlob) {
119
+ return this.ej2Instances.excelExport(excelExportProperties, isMultipleExport, workbook, isBlob);
120
+ },
121
+ loadPersistData: function (persistData) {
122
+ return this.ej2Instances.loadPersistData(persistData);
123
+ },
124
+ pdfExport: function (pdfExportProperties, isMultipleExport, pdfDoc, isBlob, exportBothTableAndChart) {
125
+ return this.ej2Instances.pdfExport(pdfExportProperties, isMultipleExport, pdfDoc, isBlob, exportBothTableAndChart);
126
+ },
127
+ printChart: function () {
128
+ return this.ej2Instances.printChart();
129
+ },
130
+ refresh: function () {
131
+ return this.ej2Instances.refresh();
132
+ },
133
+ showConditionalFormattingDialog: function () {
134
+ return this.ej2Instances.showConditionalFormattingDialog();
135
+ },
136
+ showNumberFormattingDialog: function () {
137
+ return this.ej2Instances.showNumberFormattingDialog();
138
+ },
139
+ }
140
+ });
167
141
  var PivotViewPlugin = {
168
142
  name: 'ejs-pivotview',
169
143
  install: function (Vue) {
@@ -171,27 +145,7 @@ var PivotViewPlugin = {
171
145
  }
172
146
  };
173
147
 
174
- var __extends$1 = (undefined && undefined.__extends) || (function () {
175
- var extendStatics = function (d, b) {
176
- extendStatics = Object.setPrototypeOf ||
177
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
178
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
179
- return extendStatics(d, b);
180
- };
181
- return function (d, b) {
182
- extendStatics(d, b);
183
- function __() { this.constructor = d; }
184
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
185
- };
186
- })();
187
- var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
188
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
189
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
190
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
191
- return c > 3 && r && Object.defineProperty(target, key, r), r;
192
- };
193
- // {{VueImport}}
194
- var properties$1 = ['isLazyUpdate', 'plugins', 'aggregateTypes', 'allowCalculatedField', 'allowDeferLayoutUpdate', 'cssClass', 'currencyCode', 'dataSourceSettings', 'enableFieldSearching', 'enablePersistence', 'enableRtl', 'loadOnDemandInMemberEditor', 'locale', 'maxNodeLimitInMemberEditor', 'renderMode', 'showValuesButton', 'spinnerTemplate', 'target', 'actionBegin', 'actionComplete', 'actionFailure', 'aggregateCellInfo', 'aggregateMenuOpen', 'beforeServiceInvoke', 'calculatedFieldCreate', 'created', 'dataBound', 'destroyed', 'enginePopulated', 'enginePopulating', 'fieldDragStart', 'fieldDrop', 'fieldRemove', 'load', 'memberEditorOpen', 'memberFiltering', 'onFieldDropped', 'onHeadersSort'];
148
+ var properties$1 = ['isLazyUpdate', 'plugins', 'aggregateTypes', 'allowCalculatedField', 'allowDeferLayoutUpdate', 'cssClass', 'currencyCode', 'dataSourceSettings', 'enableFieldSearching', 'enableHtmlSanitizer', 'enablePersistence', 'enableRtl', 'loadOnDemandInMemberEditor', 'locale', 'maxNodeLimitInMemberEditor', 'renderMode', 'showValuesButton', 'spinnerTemplate', 'target', 'actionBegin', 'actionComplete', 'actionFailure', 'aggregateCellInfo', 'aggregateMenuOpen', 'beforeServiceInvoke', 'calculatedFieldCreate', 'created', 'dataBound', 'destroyed', 'enginePopulated', 'enginePopulating', 'fieldDragStart', 'fieldDrop', 'fieldRemove', 'load', 'memberEditorOpen', 'memberFiltering', 'onFieldDropped', 'onHeadersSort'];
195
149
  var modelProps$1 = [];
196
150
  var testProp$1 = getProps({ props: properties$1 });
197
151
  var props$1 = testProp$1[0];
@@ -208,107 +162,101 @@ for (var _i$1 = 0, modelProps_1$1 = modelProps$1; _i$1 < modelProps_1$1.length;
208
162
  * <ejs-pivotfieldlist></ejs-pivotfieldlist>
209
163
  * ```
210
164
  */
211
- var PivotFieldListComponent = /** @__PURE__ @class */ (function (_super) {
212
- __extends$1(PivotFieldListComponent, _super);
213
- function PivotFieldListComponent() {
214
- var _this = _super.call(this, arguments) || this;
215
- _this.propKeys = properties$1;
216
- _this.models = modelProps$1;
217
- _this.hasChildDirective = false;
218
- _this.hasInjectedModules = true;
219
- _this.tagMapper = {};
220
- _this.tagNameMapper = {};
221
- _this.isVue3 = !isExecute;
222
- _this.ej2Instances = new PivotFieldList({});
223
- _this.bindProperties();
224
- _this.ej2Instances._setProperties = _this.ej2Instances.setProperties;
225
- _this.ej2Instances.setProperties = _this.setProperties;
226
- _this.ej2Instances.clearTemplate = _this.clearTemplate;
227
- _this.updated = _this.updated;
228
- return _this;
229
- }
230
- PivotFieldListComponent.prototype.clearTemplate = function (templateNames) {
231
- if (!templateNames) {
232
- templateNames = Object.keys(this.templateCollection || {});
165
+ var PivotFieldListComponent = vueDefineComponent({
166
+ name: 'PivotFieldListComponent',
167
+ mixins: [ComponentBase],
168
+ props: props$1,
169
+ watch: watch$1,
170
+ emits: emitProbs$1,
171
+ provide: function () { return { custom: this.custom }; },
172
+ data: function () {
173
+ return {
174
+ ej2Instances: new PivotFieldList({}),
175
+ propKeys: properties$1,
176
+ models: modelProps$1,
177
+ hasChildDirective: false,
178
+ hasInjectedModules: true,
179
+ tagMapper: {},
180
+ tagNameMapper: {},
181
+ isVue3: !isExecute,
182
+ templateCollection: {},
183
+ };
184
+ },
185
+ created: function () {
186
+ this.bindProperties();
187
+ this.ej2Instances._setProperties = this.ej2Instances.setProperties;
188
+ this.ej2Instances.setProperties = this.setProperties;
189
+ this.ej2Instances.clearTemplate = this.clearTemplate;
190
+ this.updated = this.updated;
191
+ },
192
+ render: function (createElement) {
193
+ var h = !isExecute ? gh : createElement;
194
+ var slots = null;
195
+ if (!isNullOrUndefined(this.$slots.default)) {
196
+ slots = !isExecute ? this.$slots.default() : this.$slots.default;
233
197
  }
234
- if (templateNames.length && this.templateCollection) {
235
- for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {
236
- var tempName = templateNames_1[_i];
237
- var elementCollection = this.templateCollection[tempName];
238
- if (elementCollection && elementCollection.length) {
239
- for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {
240
- var ele = elementCollection_1[_a];
241
- var destroy = getValue('__vue__.$destroy', ele);
242
- if (destroy) {
243
- ele.__vue__.$destroy();
244
- }
245
- if (ele.innerHTML) {
246
- ele.innerHTML = '';
198
+ return h('div', slots);
199
+ },
200
+ methods: {
201
+ clearTemplate: function (templateNames) {
202
+ if (!templateNames) {
203
+ templateNames = Object.keys(this.templateCollection || {});
204
+ }
205
+ if (templateNames.length && this.templateCollection) {
206
+ for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {
207
+ var tempName = templateNames_1[_i];
208
+ var elementCollection = this.templateCollection[tempName];
209
+ if (elementCollection && elementCollection.length) {
210
+ for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {
211
+ var ele = elementCollection_1[_a];
212
+ var destroy = getValue('__vue__.$destroy', ele);
213
+ if (destroy) {
214
+ ele.__vue__.$destroy();
215
+ }
216
+ if (ele.innerHTML) {
217
+ ele.innerHTML = '';
218
+ }
247
219
  }
220
+ delete this.templateCollection[tempName];
248
221
  }
249
- delete this.templateCollection[tempName];
250
222
  }
251
223
  }
252
- }
253
- };
254
- PivotFieldListComponent.prototype.setProperties = function (prop, muteOnChange) {
255
- var _this = this;
256
- if (this.isVue3) {
257
- this.models = !this.models ? this.ej2Instances.referModels : this.models;
258
- }
259
- if (this.ej2Instances && this.ej2Instances._setProperties) {
260
- this.ej2Instances._setProperties(prop, muteOnChange);
261
- }
262
- if (prop && this.models && this.models.length) {
263
- Object.keys(prop).map(function (key) {
264
- _this.models.map(function (model) {
265
- if ((key === model) && !(/datasource/i.test(key))) {
266
- if (_this.isVue3) {
267
- _this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
268
- }
269
- else {
270
- _this.$emit('update:' + key, prop[key]);
271
- _this.$emit('modelchanged', prop[key]);
224
+ },
225
+ setProperties: function (prop, muteOnChange) {
226
+ var _this = this;
227
+ if (this.isVue3) {
228
+ this.models = !this.models ? this.ej2Instances.referModels : this.models;
229
+ }
230
+ if (this.ej2Instances && this.ej2Instances._setProperties) {
231
+ this.ej2Instances._setProperties(prop, muteOnChange);
232
+ }
233
+ if (prop && this.models && this.models.length) {
234
+ Object.keys(prop).map(function (key) {
235
+ _this.models.map(function (model) {
236
+ if ((key === model) && !(/datasource/i.test(key))) {
237
+ if (_this.isVue3) {
238
+ _this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
239
+ }
240
+ else {
241
+ _this.$emit('update:' + key, prop[key]);
242
+ _this.$emit('modelchanged', prop[key]);
243
+ }
272
244
  }
273
- }
245
+ });
274
246
  });
275
- });
276
- }
277
- };
278
- PivotFieldListComponent.prototype.render = function (createElement) {
279
- var h = !isExecute ? gh : createElement;
280
- var slots = null;
281
- if (!isNullOrUndefined(this.$slots.default)) {
282
- slots = !isExecute ? this.$slots.default() : this.$slots.default;
283
- }
284
- return h('div', slots);
285
- };
286
- PivotFieldListComponent.prototype.custom = function () {
287
- this.updated();
288
- };
289
- PivotFieldListComponent.prototype.update = function (control) {
290
- return this.ej2Instances.update(control);
291
- };
292
- PivotFieldListComponent.prototype.updateView = function (control) {
293
- return this.ej2Instances.updateView(control);
294
- };
295
- PivotFieldListComponent = __decorate$1([
296
- EJComponentDecorator({
297
- props: properties$1
298
- }, isExecute)
299
- ,Options({
300
- props: props,
301
- watch: watch,
302
- emits: emitProbs,
303
- provide: function provide() {
304
- return {
305
- custom: this.custom
306
- };
307
247
  }
308
- })
309
- ], PivotFieldListComponent);
310
- return PivotFieldListComponent;
311
- }(ComponentBase));
248
+ },
249
+ custom: function () {
250
+ this.updated();
251
+ },
252
+ update: function (control) {
253
+ return this.ej2Instances.update(control);
254
+ },
255
+ updateView: function (control) {
256
+ return this.ej2Instances.updateView(control);
257
+ },
258
+ }
259
+ });
312
260
  var PivotFieldListPlugin = {
313
261
  name: 'ejs-pivotfieldlist',
314
262
  install: function (Vue) {