@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.
- package/CHANGELOG.md +9 -38
- package/dist/ej2-vue-pivotview.umd.min.js +2 -2
- package/dist/ej2-vue-pivotview.umd.min.js.map +1 -1
- package/dist/es6/ej2-vue-pivotview.es2015.js +178 -220
- package/dist/es6/ej2-vue-pivotview.es2015.js.map +1 -1
- package/dist/es6/ej2-vue-pivotview.es5.js +201 -253
- package/dist/es6/ej2-vue-pivotview.es5.js.map +1 -1
- package/dist/global/ej2-vue-pivotview.min.js +2 -2
- package/package.json +9 -9
- package/src/pivotfieldlist/pivotfieldlist.component.d.ts +3 -24
- package/src/pivotfieldlist/pivotfieldlist.component.js +90 -119
- package/src/pivotview/pivotview.component.d.ts +4 -33
- package/src/pivotview/pivotview.component.js +114 -143
- package/styles/bootstrap-dark.css +80 -4
- package/styles/bootstrap.css +81 -4
- package/styles/bootstrap4.css +81 -14
- package/styles/bootstrap5-dark.css +94 -17
- package/styles/bootstrap5.css +94 -17
- package/styles/fabric-dark.css +83 -12
- package/styles/fabric.css +82 -9
- package/styles/fluent-dark.css +100 -19
- package/styles/fluent.css +100 -19
- package/styles/highcontrast-light.css +83 -8
- package/styles/highcontrast.css +83 -8
- package/styles/material-dark.css +80 -4
- package/styles/material.css +80 -10
- package/styles/pivotfieldlist/bootstrap-dark.css +58 -2
- package/styles/pivotfieldlist/bootstrap.css +58 -2
- package/styles/pivotfieldlist/bootstrap4.css +58 -2
- package/styles/pivotfieldlist/bootstrap5-dark.css +66 -9
- package/styles/pivotfieldlist/bootstrap5.css +66 -9
- package/styles/pivotfieldlist/fabric-dark.css +58 -2
- package/styles/pivotfieldlist/fabric.css +58 -2
- package/styles/pivotfieldlist/fluent-dark.css +72 -11
- package/styles/pivotfieldlist/fluent.css +72 -11
- package/styles/pivotfieldlist/highcontrast-light.css +58 -2
- package/styles/pivotfieldlist/highcontrast.css +58 -2
- package/styles/pivotfieldlist/material-dark.css +58 -2
- package/styles/pivotfieldlist/material.css +58 -2
- package/styles/pivotfieldlist/tailwind-dark.css +64 -7
- package/styles/pivotfieldlist/tailwind.css +64 -7
- package/styles/pivotview/bootstrap-dark.css +22 -2
- package/styles/pivotview/bootstrap.css +23 -2
- package/styles/pivotview/bootstrap4.css +23 -12
- package/styles/pivotview/bootstrap5-dark.css +28 -8
- package/styles/pivotview/bootstrap5.css +28 -8
- package/styles/pivotview/fabric-dark.css +25 -10
- package/styles/pivotview/fabric.css +24 -7
- package/styles/pivotview/fluent-dark.css +28 -8
- package/styles/pivotview/fluent.css +28 -8
- package/styles/pivotview/highcontrast-light.css +25 -6
- package/styles/pivotview/highcontrast.css +25 -6
- package/styles/pivotview/material-dark.css +22 -2
- package/styles/pivotview/material.css +22 -8
- package/styles/pivotview/tailwind-dark.css +25 -9
- package/styles/pivotview/tailwind.css +25 -9
- package/styles/tailwind-dark.css +89 -16
- package/styles/tailwind.css +89 -16
|
@@ -1,27 +1,7 @@
|
|
|
1
1
|
import { PivotFieldList, PivotView } from '@syncfusion/ej2-pivotview';
|
|
2
|
-
import { ComponentBase,
|
|
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
|
|
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 =
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
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
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
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
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
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
|
-
|
|
165
|
-
|
|
166
|
-
}
|
|
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
|
|
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 =
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
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
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
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
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
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
|
-
|
|
310
|
-
|
|
311
|
-
}
|
|
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) {
|