@syncfusion/ej2-vue-pivotview 19.2.51 → 19.3.43
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 +34 -0
- package/dist/ej2-vue-pivotview.umd.min.js +11 -2
- package/dist/ej2-vue-pivotview.umd.min.js.map +1 -1
- package/dist/es6/ej2-vue-pivotview.es2015.js +49 -1
- package/dist/es6/ej2-vue-pivotview.es2015.js.map +1 -1
- package/dist/es6/ej2-vue-pivotview.es5.js +53 -1
- package/dist/es6/ej2-vue-pivotview.es5.js.map +1 -1
- package/package.json +8 -8
- package/src/pivotfieldlist/pivotfieldlist.component.d.ts +2 -0
- package/src/pivotfieldlist/pivotfieldlist.component.js +27 -1
- package/src/pivotview/pivotview.component.d.ts +2 -0
- package/src/pivotview/pivotview.component.js +27 -1
- package/styles/bootstrap-dark.css +34 -49
- package/styles/bootstrap.css +35 -50
- package/styles/bootstrap4.css +76 -92
- package/styles/bootstrap5-dark.css +8780 -0
- package/styles/bootstrap5-dark.scss +2 -0
- package/styles/bootstrap5.css +8780 -0
- package/styles/bootstrap5.scss +2 -0
- package/styles/fabric-dark.css +38 -52
- package/styles/fabric.css +38 -52
- package/styles/highcontrast-light.css +47 -58
- package/styles/highcontrast.css +40 -51
- package/styles/material-dark.css +49 -64
- package/styles/material.css +37 -52
- package/styles/pivotfieldlist/bootstrap-dark.css +12 -14
- package/styles/pivotfieldlist/bootstrap.css +14 -16
- package/styles/pivotfieldlist/bootstrap4.css +42 -40
- package/styles/pivotfieldlist/bootstrap5-dark.css +6404 -0
- package/styles/pivotfieldlist/bootstrap5-dark.scss +1 -0
- package/styles/pivotfieldlist/bootstrap5.css +6404 -0
- package/styles/pivotfieldlist/bootstrap5.scss +1 -0
- package/styles/pivotfieldlist/fabric-dark.css +18 -20
- package/styles/pivotfieldlist/fabric.css +18 -20
- package/styles/pivotfieldlist/highcontrast-light.css +18 -20
- package/styles/pivotfieldlist/highcontrast.css +18 -20
- package/styles/pivotfieldlist/material-dark.css +29 -31
- package/styles/pivotfieldlist/material.css +18 -20
- package/styles/pivotfieldlist/tailwind-dark.css +58 -25
- package/styles/pivotfieldlist/tailwind.css +60 -27
- package/styles/pivotview/bootstrap-dark.css +22 -35
- package/styles/pivotview/bootstrap.css +21 -34
- package/styles/pivotview/bootstrap4.css +34 -52
- package/styles/pivotview/bootstrap5-dark.css +2375 -0
- package/styles/pivotview/bootstrap5-dark.scss +1 -0
- package/styles/pivotview/bootstrap5.css +2375 -0
- package/styles/pivotview/bootstrap5.scss +1 -0
- package/styles/pivotview/fabric-dark.css +20 -32
- package/styles/pivotview/fabric.css +20 -32
- package/styles/pivotview/highcontrast-light.css +29 -38
- package/styles/pivotview/highcontrast.css +22 -31
- package/styles/pivotview/material-dark.css +20 -33
- package/styles/pivotview/material.css +19 -32
- package/styles/pivotview/tailwind-dark.css +40 -40
- package/styles/pivotview/tailwind.css +37 -37
- package/styles/tailwind-dark.css +98 -65
- package/styles/tailwind.css +97 -64
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,40 @@
|
|
|
6
6
|
|
|
7
7
|
#### Bug Fixes
|
|
8
8
|
|
|
9
|
+
- `#F168308` - The pivot table can now be rendered properly with custom number formats.
|
|
10
|
+
- `#339705` - When the virtualization feature is used, the pivot table can now be rendered properly without an unnecessary horizontal scrollbar when the content does not require it.
|
|
11
|
+
- `#341987` - The pivot table can now be rendered properly while perform filtering with OLAP data source.
|
|
12
|
+
- `#342221` - The pivot table can now be rendered properly while applying date grouing through UI.
|
|
13
|
+
- The column headers are now displayed properly while perform resizing.
|
|
14
|
+
- `#342221` - The pivot table can now be rendered properly while perform member filtering with an empty header.
|
|
15
|
+
|
|
16
|
+
#### New Features
|
|
17
|
+
|
|
18
|
+
- `#300095` - Provided support to display measures at any desired positions in the column or row axis for relational data sources.
|
|
19
|
+
|
|
20
|
+
## 19.2.56 (2021-08-17)
|
|
21
|
+
|
|
22
|
+
### Pivot Table
|
|
23
|
+
|
|
24
|
+
#### New Features
|
|
25
|
+
|
|
26
|
+
- `#284641`,`#326945`,`#327746`,`#329355` - Through grid settings event, the pivot table's columns can now fit the widest cell’s content without wrapping.
|
|
27
|
+
|
|
28
|
+
## 19.2.55 (2021-08-11)
|
|
29
|
+
|
|
30
|
+
### Pivot Table
|
|
31
|
+
|
|
32
|
+
#### Bug Fixes
|
|
33
|
+
|
|
34
|
+
- `#I337487` - Now the field's caption can be changed dynamically using the value field settings dialog.
|
|
35
|
+
- `#F167449` - Now the fields panel has been refreshed properly with toolbar UI.
|
|
36
|
+
|
|
37
|
+
## 19.2.51 (2021-08-03)
|
|
38
|
+
|
|
39
|
+
### Pivot Table
|
|
40
|
+
|
|
41
|
+
#### Bug Fixes
|
|
42
|
+
|
|
9
43
|
- `#F166428` - Issue while resizing column with virtualization in the pivot table has been resolved.
|
|
10
44
|
- `#336591`,`#337082` - When using the virtualization feature, the pivot table columns are now properly displayed when scrolling horizontally.
|
|
11
45
|
- `#337082` - The pivot table is now properly displayed when scrolling horizontally while filtering is applied when using the virtualization feature.
|
|
@@ -1,11 +1,20 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: ej2-vue-pivotview.umd.min.js
|
|
3
|
-
* version : 19.
|
|
3
|
+
* version : 19.3.43
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2020. All rights reserved.
|
|
5
5
|
* Use of this code is subject to the terms of our license.
|
|
6
6
|
* A copy of the current license can be obtained at any time by e-mailing
|
|
7
7
|
* licensing@syncfusion.com. Any infringement will be prosecuted under
|
|
8
8
|
* applicable laws.
|
|
9
9
|
*/
|
|
10
|
-
|
|
10
|
+
/*!
|
|
11
|
+
* filename: ej2-vue-pivotview.umd.min.js
|
|
12
|
+
* version : 19.1.63
|
|
13
|
+
* Copyright Syncfusion Inc. 2001 - 2020. All rights reserved.
|
|
14
|
+
* Use of this code is subject to the terms of our license.
|
|
15
|
+
* A copy of the current license can be obtained at any time by e-mailing
|
|
16
|
+
* licensing@syncfusion.com. Any infringement will be prosecuted under
|
|
17
|
+
* applicable laws.
|
|
18
|
+
*/
|
|
19
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@syncfusion/ej2-pivotview"),require("@syncfusion/ej2-vue-base")):"function"==typeof define&&define.amd?define(["exports","@syncfusion/ej2-pivotview","@syncfusion/ej2-vue-base"],t):t(e.ej={},e.ej2Pivotview,e.ej2VueBase)}(this,function(e,t,o){"use strict";var n=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),r=function(e,t,o,n){var r,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,o,a):r(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a},i=["aggregateTypes","allowCalculatedField","allowConditionalFormatting","allowDataCompression","allowDeferLayoutUpdate","allowDrillThrough","allowExcelExport","allowGrouping","allowNumberFormatting","allowPdfExport","cellTemplate","chartSettings","chartTypes","currencyCode","dataSourceSettings","displayOption","editSettings","enableHtmlSanitizer","enablePersistence","enableRtl","enableValueSorting","enableVirtualization","exportAllPages","gridSettings","groupingBarSettings","height","hyperlinkSettings","loadOnDemandInMemberEditor","locale","maxNodeLimitInMemberEditor","maxRowsInDrillThrough","pivotValues","showFieldList","showGroupingBar","showToolbar","showTooltip","showValuesButton","spinnerTemplate","toolbar","toolbarTemplate","tooltipTemplate","width","aggregateCellInfo","aggregateMenuOpen","beforeExport","beforeServiceInvoke","beginDrillThrough","calculatedFieldCreate","cellClick","cellSelected","cellSelecting","chartSeriesCreated","conditionalFormatting","created","dataBound","destroyed","drill","drillThrough","editCompleted","enginePopulated","enginePopulating","fetchReport","fieldDragStart","fieldDrop","fieldListRefreshed","fieldRemove","hyperlinkCellClick","load","loadReport","memberEditorOpen","memberFiltering","newReport","numberFormatting","onFieldDropped","onPdfCellRender","removeReport","renameReport","saveReport","toolbarClick","toolbarRender"],a=[],s=function(e){function s(){var o=e.call(this)||this;return o.propKeys=i,o.models=a,o.hasChildDirective=!1,o.hasInjectedModules=!0,o.tagMapper={},o.tagNameMapper={},o.ej2Instances=new t.PivotView({}),o.bindProperties(),o.ej2Instances._setProperties=o.ej2Instances.setProperties,o.ej2Instances.setProperties=o.setProperties,o}return n(s,e),s.prototype.setProperties=function(e,t){var o=this;this.ej2Instances&&this.ej2Instances._setProperties&&this.ej2Instances._setProperties(e,t),e&&this.models&&this.models.length&&Object.keys(e).map(function(t){o.models.map(function(n){t!==n||/datasource/i.test(t)||o.$emit("update:"+t,e[t])})})},s.prototype.render=function(e){return e("div",this.$slots.default)},s.prototype.chartExport=function(e,t,o,n,r){return this.ej2Instances.chartExport(e,t,o,n,r)},s.prototype.createCalculatedFieldDialog=function(){return this.ej2Instances.createCalculatedFieldDialog()},s.prototype.csvExport=function(e,t,o,n){return this.ej2Instances.csvExport(e,t,o,n)},s.prototype.excelExport=function(e,t,o,n){return this.ej2Instances.excelExport(e,t,o,n)},s.prototype.getCellTemplate=function(){return this.ej2Instances.getCellTemplate()},s.prototype.loadPersistData=function(e){return this.ej2Instances.loadPersistData(e)},s.prototype.pdfExport=function(e,t,o,n){return this.ej2Instances.pdfExport(e,t,o,n)},s.prototype.printChart=function(){return this.ej2Instances.printChart()},s.prototype.refresh=function(){return this.ej2Instances.refresh()},s.prototype.showConditionalFormattingDialog=function(){return this.ej2Instances.showConditionalFormattingDialog()},s.prototype.showNumberFormattingDialog=function(){return this.ej2Instances.showNumberFormattingDialog()},s.prototype.templateParser=function(e){return this.ej2Instances.templateParser(e)},s=r([o.EJComponentDecorator({props:i})],s)}(o.ComponentBase),l={name:"ejs-pivotview",install:function(e){e.component(l.name,s)}},p=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),c=function(e,t,o,n){var r,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,o,a):r(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a},u=["aggregateTypes","allowCalculatedField","allowDeferLayoutUpdate","cssClass","dataSourceSettings","enablePersistence","enableRtl","loadOnDemandInMemberEditor","locale","maxNodeLimitInMemberEditor","renderMode","showValuesButton","spinnerTemplate","target","aggregateCellInfo","aggregateMenuOpen","beforeServiceInvoke","calculatedFieldCreate","created","dataBound","destroyed","enginePopulated","enginePopulating","fieldDragStart","fieldDrop","fieldRemove","load","memberEditorOpen","memberFiltering","onFieldDropped"],d=[],f=function(e){function n(){var o=e.call(this)||this;return o.propKeys=u,o.models=d,o.hasChildDirective=!1,o.hasInjectedModules=!1,o.tagMapper={},o.tagNameMapper={},o.ej2Instances=new t.PivotFieldList({}),o.bindProperties(),o.ej2Instances._setProperties=o.ej2Instances.setProperties,o.ej2Instances.setProperties=o.setProperties,o}return p(n,e),n.prototype.setProperties=function(e,t){var o=this;this.ej2Instances&&this.ej2Instances._setProperties&&this.ej2Instances._setProperties(e,t),e&&this.models&&this.models.length&&Object.keys(e).map(function(t){o.models.map(function(n){t!==n||/datasource/i.test(t)||o.$emit("update:"+t,e[t])})})},n.prototype.render=function(e){return e("div",this.$slots.default)},n.prototype.update=function(e){return this.ej2Instances.update(e)},n.prototype.updateView=function(e){return this.ej2Instances.updateView(e)},n=c([o.EJComponentDecorator({props:u})],n)}(o.ComponentBase),h={name:"ejs-pivotfieldlist",install:function(e){e.component(h.name,f)}};e.PivotViewComponent=s,e.PivotViewPlugin=l,e.PivotFieldListComponent=f,e.PivotFieldListPlugin=h,Object.keys(t).forEach(function(o){e[o]=t[o]}),Object.defineProperty(e,"__esModule",{value:!0})});
|
|
11
20
|
//# sourceMappingURL=ej2-vue-pivotview.umd.min.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ej2-vue-pivotview.umd.min.js","sources":["../src/pivotview/pivotview.component.js","../src/pivotfieldlist/pivotfieldlist.component.js"],"sourcesContent":["var __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n 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;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nimport { ComponentBase, EJComponentDecorator, getProps, gh } from '@syncfusion/ej2-vue-base';\nimport { isNullOrUndefined } from '@syncfusion/ej2-base';\nimport { PivotView } from '@syncfusion/ej2-pivotview';\n// {{VueImport}}\nexport var properties = ['aggregateTypes', 'allowCalculatedField', 'allowConditionalFormatting', 'allowDataCompression', 'allowDeferLayoutUpdate', 'allowDrillThrough', 'allowExcelExport', 'allowGrouping', 'allowNumberFormatting', 'allowPdfExport', 'cellTemplate', 'chartSettings', 'chartTypes', 'currencyCode', 'dataSourceSettings', 'displayOption', 'editSettings', 'enableHtmlSanitizer', 'enablePersistence', 'enableRtl', 'enableValueSorting', 'enableVirtualization', 'exportAllPages', 'gridSettings', 'groupingBarSettings', 'height', 'hyperlinkSettings', 'loadOnDemandInMemberEditor', 'locale', 'maxNodeLimitInMemberEditor', 'maxRowsInDrillThrough', 'pivotValues', 'showFieldList', 'showGroupingBar', 'showToolbar', 'showTooltip', 'showValuesButton', 'spinnerTemplate', 'toolbar', 'toolbarTemplate', 'tooltipTemplate', 'width', 'aggregateCellInfo', 'aggregateMenuOpen', 'beforeExport', 'beforeServiceInvoke', 'beginDrillThrough', 'calculatedFieldCreate', 'cellClick', 'cellSelected', 'cellSelecting', 'chartSeriesCreated', 'conditionalFormatting', 'created', 'dataBound', 'destroyed', 'drill', 'drillThrough', 'editCompleted', 'enginePopulated', 'enginePopulating', 'fetchReport', 'fieldDragStart', 'fieldDrop', 'fieldListRefreshed', 'fieldRemove', 'hyperlinkCellClick', 'load', 'loadReport', 'memberEditorOpen', 'memberFiltering', 'newReport', 'numberFormatting', 'onFieldDropped', 'onPdfCellRender', 'removeReport', 'renameReport', 'saveReport', 'toolbarClick', 'toolbarRender'];\nexport var modelProps = [];\nexport var testProp = getProps({ props: properties });\nexport var props = testProp[0];\nexport var watch = testProp[1];\nexport var emitProbs = Object.keys(watch);\nemitProbs.push('modelchanged');\nfor (var _i = 0, modelProps_1 = modelProps; _i < modelProps_1.length; _i++) {\n var props_1 = modelProps_1[_i];\n emitProbs.push('update:' + props_1);\n}\nexport var isExecute = gh ? false : true;\n/**\n * `ejs-pivotview` represents the VueJS PivotView Component.\n * ```vue\n * <ejs-pivotview></ejs-pivotview>\n * ```\n */\nvar PivotViewComponent = /** @class */ (function (_super) {\n __extends(PivotViewComponent, _super);\n function PivotViewComponent() {\n var _this = _super.call(this, arguments) || this;\n _this.propKeys = properties;\n _this.models = modelProps;\n _this.hasChildDirective = false;\n _this.hasInjectedModules = true;\n _this.tagMapper = {};\n _this.tagNameMapper = {};\n _this.isVue3 = !isExecute;\n _this.ej2Instances = new PivotView({});\n _this.bindProperties();\n _this.ej2Instances._setProperties = _this.ej2Instances.setProperties;\n _this.ej2Instances.setProperties = _this.setProperties;\n return _this;\n }\n PivotViewComponent.prototype.setProperties = function (prop, muteOnChange) {\n var _this = this;\n if (this.isVue3) {\n this.models = !this.models ? this.ej2Instances.referModels : this.models;\n }\n if (this.ej2Instances && this.ej2Instances._setProperties) {\n this.ej2Instances._setProperties(prop, muteOnChange);\n }\n if (prop && this.models && this.models.length) {\n Object.keys(prop).map(function (key) {\n _this.models.map(function (model) {\n if ((key === model) && !(/datasource/i.test(key))) {\n if (_this.isVue3) {\n _this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);\n }\n else {\n _this.$emit('update:' + key, prop[key]);\n }\n }\n });\n });\n }\n };\n PivotViewComponent.prototype.render = function (createElement) {\n var h = gh || createElement;\n var slots = null;\n if (!isNullOrUndefined(this.$slots.default)) {\n slots = gh ? this.$slots.default() : this.$slots.default;\n }\n return h('div', slots);\n };\n PivotViewComponent.prototype.chartExport = function (type, fileName, orientation, width, height) {\n return this.ej2Instances.chartExport(type, fileName, orientation, width, height);\n };\n PivotViewComponent.prototype.createCalculatedFieldDialog = function () {\n return this.ej2Instances.createCalculatedFieldDialog();\n };\n PivotViewComponent.prototype.csvExport = function (excelExportProperties, isMultipleExport, workbook, isBlob) {\n return this.ej2Instances.csvExport(excelExportProperties, isMultipleExport, workbook, isBlob);\n };\n PivotViewComponent.prototype.excelExport = function (excelExportProperties, isMultipleExport, workbook, isBlob) {\n return this.ej2Instances.excelExport(excelExportProperties, isMultipleExport, workbook, isBlob);\n };\n PivotViewComponent.prototype.getCellTemplate = function () {\n return this.ej2Instances.getCellTemplate();\n };\n PivotViewComponent.prototype.loadPersistData = function (persistData) {\n return this.ej2Instances.loadPersistData(persistData);\n };\n PivotViewComponent.prototype.pdfExport = function (pdfExportProperties, isMultipleExport, pdfDoc, isBlob) {\n return this.ej2Instances.pdfExport(pdfExportProperties, isMultipleExport, pdfDoc, isBlob);\n };\n PivotViewComponent.prototype.printChart = function () {\n return this.ej2Instances.printChart();\n };\n PivotViewComponent.prototype.refresh = function () {\n return this.ej2Instances.refresh();\n };\n PivotViewComponent.prototype.showConditionalFormattingDialog = function () {\n return this.ej2Instances.showConditionalFormattingDialog();\n };\n PivotViewComponent.prototype.showNumberFormattingDialog = function () {\n return this.ej2Instances.showNumberFormattingDialog();\n };\n PivotViewComponent.prototype.templateParser = function (template) {\n return this.ej2Instances.templateParser(template);\n };\n PivotViewComponent = __decorate([\n EJComponentDecorator({\n props: properties\n }, isExecute)\n /* Start Options({\n props: props,\n watch: watch,\n emits: emitProbs\n }) End */\n ], PivotViewComponent);\n return PivotViewComponent;\n}(ComponentBase));\nexport { PivotViewComponent };\nexport var PivotViewPlugin = {\n name: 'ejs-pivotview',\n install: function (Vue) {\n Vue.component(PivotViewPlugin.name, PivotViewComponent);\n }\n};\n","var __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n 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;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nimport { ComponentBase, EJComponentDecorator, getProps, gh } from '@syncfusion/ej2-vue-base';\nimport { isNullOrUndefined } from '@syncfusion/ej2-base';\nimport { PivotFieldList } from '@syncfusion/ej2-pivotview';\n// {{VueImport}}\nexport var properties = ['aggregateTypes', 'allowCalculatedField', 'allowDeferLayoutUpdate', 'cssClass', 'dataSourceSettings', 'enablePersistence', 'enableRtl', 'loadOnDemandInMemberEditor', 'locale', 'maxNodeLimitInMemberEditor', 'renderMode', 'showValuesButton', 'spinnerTemplate', 'target', 'aggregateCellInfo', 'aggregateMenuOpen', 'beforeServiceInvoke', 'calculatedFieldCreate', 'created', 'dataBound', 'destroyed', 'enginePopulated', 'enginePopulating', 'fieldDragStart', 'fieldDrop', 'fieldRemove', 'load', 'memberEditorOpen', 'memberFiltering', 'onFieldDropped'];\nexport var modelProps = [];\nexport var testProp = getProps({ props: properties });\nexport var props = testProp[0];\nexport var watch = testProp[1];\nexport var emitProbs = Object.keys(watch);\nemitProbs.push('modelchanged');\nfor (var _i = 0, modelProps_1 = modelProps; _i < modelProps_1.length; _i++) {\n var props_1 = modelProps_1[_i];\n emitProbs.push('update:' + props_1);\n}\nexport var isExecute = gh ? false : true;\n/**\n * `ejs-pivotfieldlist` represents the VueJS PivotFieldList Component.\n * ```vue\n * <ejs-pivotfieldlist></ejs-pivotfieldlist>\n * ```\n */\nvar PivotFieldListComponent = /** @class */ (function (_super) {\n __extends(PivotFieldListComponent, _super);\n function PivotFieldListComponent() {\n var _this = _super.call(this, arguments) || this;\n _this.propKeys = properties;\n _this.models = modelProps;\n _this.hasChildDirective = false;\n _this.hasInjectedModules = false;\n _this.tagMapper = {};\n _this.tagNameMapper = {};\n _this.isVue3 = !isExecute;\n _this.ej2Instances = new PivotFieldList({});\n _this.bindProperties();\n _this.ej2Instances._setProperties = _this.ej2Instances.setProperties;\n _this.ej2Instances.setProperties = _this.setProperties;\n return _this;\n }\n PivotFieldListComponent.prototype.setProperties = function (prop, muteOnChange) {\n var _this = this;\n if (this.isVue3) {\n this.models = !this.models ? this.ej2Instances.referModels : this.models;\n }\n if (this.ej2Instances && this.ej2Instances._setProperties) {\n this.ej2Instances._setProperties(prop, muteOnChange);\n }\n if (prop && this.models && this.models.length) {\n Object.keys(prop).map(function (key) {\n _this.models.map(function (model) {\n if ((key === model) && !(/datasource/i.test(key))) {\n if (_this.isVue3) {\n _this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);\n }\n else {\n _this.$emit('update:' + key, prop[key]);\n }\n }\n });\n });\n }\n };\n PivotFieldListComponent.prototype.render = function (createElement) {\n var h = gh || createElement;\n var slots = null;\n if (!isNullOrUndefined(this.$slots.default)) {\n slots = gh ? this.$slots.default() : this.$slots.default;\n }\n return h('div', slots);\n };\n PivotFieldListComponent.prototype.update = function (control) {\n return this.ej2Instances.update(control);\n };\n PivotFieldListComponent.prototype.updateView = function (control) {\n return this.ej2Instances.updateView(control);\n };\n PivotFieldListComponent = __decorate([\n EJComponentDecorator({\n props: properties\n }, isExecute)\n /* Start Options({\n props: props,\n watch: watch,\n emits: emitProbs\n }) End */\n ], PivotFieldListComponent);\n return PivotFieldListComponent;\n}(ComponentBase));\nexport { PivotFieldListComponent };\nexport var PivotFieldListPlugin = {\n name: 'ejs-pivotfieldlist',\n install: function (Vue) {\n Vue.component(PivotFieldListPlugin.name, PivotFieldListComponent);\n }\n};\n"],"names":["__extends","extendStatics","d","b","Object","setPrototypeOf","__proto__","Array","p","hasOwnProperty","__","this","constructor","prototype","create","__decorate","decorators","target","key","desc","c","arguments","length","r","getOwnPropertyDescriptor","Reflect","decorate","i","defineProperty","properties","modelProps","testProp","getProps","props","watch","emitProbs","keys","push","_i","modelProps_1","props_1","isExecute","gh","PivotViewComponent","_super","_this","call","propKeys","models","hasChildDirective","hasInjectedModules","tagMapper","tagNameMapper","isVue3","ej2Instances","PivotView","bindProperties","_setProperties","setProperties","prop","muteOnChange","referModels","map","model","test","vueInstance","$emit","render","createElement","h","slots","isNullOrUndefined","$slots","default","chartExport","type","fileName","orientation","width","height","createCalculatedFieldDialog","csvExport","excelExportProperties","isMultipleExport","workbook","isBlob","excelExport","getCellTemplate","loadPersistData","persistData","pdfExport","pdfExportProperties","pdfDoc","printChart","refresh","showConditionalFormattingDialog","showNumberFormattingDialog","templateParser","template","EJComponentDecorator","ComponentBase","PivotViewPlugin","name","install","Vue","component","PivotFieldListComponent","PivotFieldList","update","control","updateView","PivotFieldListPlugin"],"mappings":"wZAAA,IAAIA,EAAwC,WACxC,IAAIC,EAAgB,SAAUC,EAAGC,GAI7B,OAHAF,EAAgBG,OAAOC,iBAChBC,wBAA2BC,OAAS,SAAUL,EAAGC,GAAKD,EAAEI,UAAYH,IACvE,SAAUD,EAAGC,GAAK,IAAK,IAAIK,KAAKL,EAAOA,EAAEM,eAAeD,KAAIN,EAAEM,GAAKL,EAAEK,MACpDN,EAAGC,IAE5B,OAAO,SAAUD,EAAGC,GAEhB,SAASO,IAAOC,KAAKC,YAAcV,EADnCD,EAAcC,EAAGC,GAEjBD,EAAEW,UAAkB,OAANV,EAAaC,OAAOU,OAAOX,IAAMO,EAAGG,UAAYV,EAAEU,UAAW,IAAIH,IAV3C,GAaxCK,EAA0C,SAAUC,EAAYC,EAAQC,EAAKC,GAC7E,IAA2HjB,EAAvHkB,EAAIC,UAAUC,OAAQC,EAAIH,EAAI,EAAIH,EAAkB,OAATE,EAAgBA,EAAOf,OAAOoB,yBAAyBP,EAAQC,GAAOC,EACrH,GAAuB,iBAAZM,SAAoD,mBAArBA,QAAQC,SAAyBH,EAAIE,QAAQC,SAASV,EAAYC,EAAQC,EAAKC,QACpH,IAAK,IAAIQ,EAAIX,EAAWM,OAAS,EAAGK,GAAK,EAAGA,KAASzB,EAAIc,EAAWW,MAAIJ,GAAKH,EAAI,EAAIlB,EAAEqB,GAAKH,EAAI,EAAIlB,EAAEe,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wB7F,UAAUiG,WAAa,SAAUD,GACrD,OAAOlG,KAAK2C,aAAawD,WAAWD,IAExCH,EAA0B3F,GACtBoF,wBACIlE,MAAOJ,GACRY,IAMJiE,IAELN,iBAESW,GACPT,KAAM,qBACNC,QAAS,SAAUC,GACfA,EAAIC,UAAUM,EAAqBT,KAAMI"}
|
|
1
|
+
{"version":3,"file":"ej2-vue-pivotview.umd.min.js","sources":["../src/pivotview/pivotview.component.js","../src/pivotfieldlist/pivotfieldlist.component.js"],"sourcesContent":["var __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n 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;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nimport { ComponentBase, EJComponentDecorator } from '@syncfusion/ej2-vue-base';\nimport { PivotView } from '@syncfusion/ej2-pivotview';\nexport var properties = ['aggregateTypes', 'allowCalculatedField', 'allowConditionalFormatting', 'allowDataCompression', 'allowDeferLayoutUpdate', 'allowDrillThrough', 'allowExcelExport', 'allowGrouping', 'allowNumberFormatting', 'allowPdfExport', 'cellTemplate', 'chartSettings', 'chartTypes', 'currencyCode', 'dataSourceSettings', 'displayOption', 'editSettings', 'enableHtmlSanitizer', 'enablePersistence', 'enableRtl', 'enableValueSorting', 'enableVirtualization', 'exportAllPages', 'gridSettings', 'groupingBarSettings', 'height', 'hyperlinkSettings', 'loadOnDemandInMemberEditor', 'locale', 'maxNodeLimitInMemberEditor', 'maxRowsInDrillThrough', 'pivotValues', 'showFieldList', 'showGroupingBar', 'showToolbar', 'showTooltip', 'showValuesButton', 'spinnerTemplate', 'toolbar', 'toolbarTemplate', 'tooltipTemplate', 'width', 'aggregateCellInfo', 'aggregateMenuOpen', 'beforeExport', 'beforeServiceInvoke', 'beginDrillThrough', 'calculatedFieldCreate', 'cellClick', 'cellSelected', 'cellSelecting', 'chartSeriesCreated', 'conditionalFormatting', 'created', 'dataBound', 'destroyed', 'drill', 'drillThrough', 'editCompleted', 'enginePopulated', 'enginePopulating', 'fetchReport', 'fieldDragStart', 'fieldDrop', 'fieldListRefreshed', 'fieldRemove', 'hyperlinkCellClick', 'load', 'loadReport', 'memberEditorOpen', 'memberFiltering', 'newReport', 'numberFormatting', 'onFieldDropped', 'onPdfCellRender', 'removeReport', 'renameReport', 'saveReport', 'toolbarClick', 'toolbarRender'];\nexport var modelProps = [];\n/**\n * `ejs-pivotview` represents the VueJS PivotView Component.\n * ```vue\n * <ejs-pivotview></ejs-pivotview>\n * ```\n */\nvar PivotViewComponent = /** @class */ (function (_super) {\n __extends(PivotViewComponent, _super);\n function PivotViewComponent() {\n var _this = _super.call(this) || this;\n _this.propKeys = properties;\n _this.models = modelProps;\n _this.hasChildDirective = false;\n _this.hasInjectedModules = true;\n _this.tagMapper = {};\n _this.tagNameMapper = {};\n _this.ej2Instances = new PivotView({});\n _this.bindProperties();\n _this.ej2Instances._setProperties = _this.ej2Instances.setProperties;\n _this.ej2Instances.setProperties = _this.setProperties;\n return _this;\n }\n PivotViewComponent.prototype.setProperties = function (prop, muteOnChange) {\n var _this = this;\n if (this.ej2Instances && this.ej2Instances._setProperties) {\n this.ej2Instances._setProperties(prop, muteOnChange);\n }\n if (prop && this.models && this.models.length) {\n Object.keys(prop).map(function (key) {\n _this.models.map(function (model) {\n if ((key === model) && !(/datasource/i.test(key))) {\n _this.$emit('update:' + key, prop[key]);\n }\n });\n });\n }\n };\n PivotViewComponent.prototype.render = function (createElement) {\n return createElement('div', this.$slots.default);\n };\n PivotViewComponent.prototype.chartExport = function (type, fileName, orientation, width, height) {\n return this.ej2Instances.chartExport(type, fileName, orientation, width, height);\n };\n PivotViewComponent.prototype.createCalculatedFieldDialog = function () {\n return this.ej2Instances.createCalculatedFieldDialog();\n };\n PivotViewComponent.prototype.csvExport = function (excelExportProperties, isMultipleExport, workbook, isBlob) {\n return this.ej2Instances.csvExport(excelExportProperties, isMultipleExport, workbook, isBlob);\n };\n PivotViewComponent.prototype.excelExport = function (excelExportProperties, isMultipleExport, workbook, isBlob) {\n return this.ej2Instances.excelExport(excelExportProperties, isMultipleExport, workbook, isBlob);\n };\n PivotViewComponent.prototype.getCellTemplate = function () {\n return this.ej2Instances.getCellTemplate();\n };\n PivotViewComponent.prototype.loadPersistData = function (persistData) {\n return this.ej2Instances.loadPersistData(persistData);\n };\n PivotViewComponent.prototype.pdfExport = function (pdfExportProperties, isMultipleExport, pdfDoc, isBlob) {\n return this.ej2Instances.pdfExport(pdfExportProperties, isMultipleExport, pdfDoc, isBlob);\n };\n PivotViewComponent.prototype.printChart = function () {\n return this.ej2Instances.printChart();\n };\n PivotViewComponent.prototype.refresh = function () {\n return this.ej2Instances.refresh();\n };\n PivotViewComponent.prototype.showConditionalFormattingDialog = function () {\n return this.ej2Instances.showConditionalFormattingDialog();\n };\n PivotViewComponent.prototype.showNumberFormattingDialog = function () {\n return this.ej2Instances.showNumberFormattingDialog();\n };\n PivotViewComponent.prototype.templateParser = function (template) {\n return this.ej2Instances.templateParser(template);\n };\n PivotViewComponent = __decorate([\n EJComponentDecorator({\n props: properties\n })\n ], PivotViewComponent);\n return PivotViewComponent;\n}(ComponentBase));\nexport { PivotViewComponent };\nexport var PivotViewPlugin = {\n name: 'ejs-pivotview',\n install: function (Vue) {\n Vue.component(PivotViewPlugin.name, PivotViewComponent);\n }\n};\n","var __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n 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;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nimport { ComponentBase, EJComponentDecorator } from '@syncfusion/ej2-vue-base';\nimport { PivotFieldList } from '@syncfusion/ej2-pivotview';\nexport var properties = ['aggregateTypes', 'allowCalculatedField', 'allowDeferLayoutUpdate', 'cssClass', 'dataSourceSettings', 'enablePersistence', 'enableRtl', 'loadOnDemandInMemberEditor', 'locale', 'maxNodeLimitInMemberEditor', 'renderMode', 'showValuesButton', 'spinnerTemplate', 'target', 'aggregateCellInfo', 'aggregateMenuOpen', 'beforeServiceInvoke', 'calculatedFieldCreate', 'created', 'dataBound', 'destroyed', 'enginePopulated', 'enginePopulating', 'fieldDragStart', 'fieldDrop', 'fieldRemove', 'load', 'memberEditorOpen', 'memberFiltering', 'onFieldDropped'];\nexport var modelProps = [];\n/**\n * `ejs-pivotfieldlist` represents the VueJS PivotFieldList Component.\n * ```vue\n * <ejs-pivotfieldlist></ejs-pivotfieldlist>\n * ```\n */\nvar PivotFieldListComponent = /** @class */ (function (_super) {\n __extends(PivotFieldListComponent, _super);\n function PivotFieldListComponent() {\n var _this = _super.call(this) || this;\n _this.propKeys = properties;\n _this.models = modelProps;\n _this.hasChildDirective = false;\n _this.hasInjectedModules = false;\n _this.tagMapper = {};\n _this.tagNameMapper = {};\n _this.ej2Instances = new PivotFieldList({});\n _this.bindProperties();\n _this.ej2Instances._setProperties = _this.ej2Instances.setProperties;\n _this.ej2Instances.setProperties = _this.setProperties;\n return _this;\n }\n PivotFieldListComponent.prototype.setProperties = function (prop, muteOnChange) {\n var _this = this;\n if (this.ej2Instances && this.ej2Instances._setProperties) {\n this.ej2Instances._setProperties(prop, muteOnChange);\n }\n if (prop && this.models && this.models.length) {\n Object.keys(prop).map(function (key) {\n _this.models.map(function (model) {\n if ((key === model) && !(/datasource/i.test(key))) {\n _this.$emit('update:' + key, prop[key]);\n }\n });\n });\n }\n };\n PivotFieldListComponent.prototype.render = function (createElement) {\n return createElement('div', this.$slots.default);\n };\n PivotFieldListComponent.prototype.update = function (control) {\n return this.ej2Instances.update(control);\n };\n PivotFieldListComponent.prototype.updateView = function (control) {\n return this.ej2Instances.updateView(control);\n };\n PivotFieldListComponent = __decorate([\n EJComponentDecorator({\n props: properties\n })\n ], PivotFieldListComponent);\n return PivotFieldListComponent;\n}(ComponentBase));\nexport { PivotFieldListComponent };\nexport var PivotFieldListPlugin = {\n name: 'ejs-pivotfieldlist',\n install: function (Vue) {\n Vue.component(PivotFieldListPlugin.name, PivotFieldListComponent);\n }\n};\n"],"names":["__extends","extendStatics","d","b","Object","setPrototypeOf","__proto__","Array","p","hasOwnProperty","__","this","constructor","prototype","create","__decorate","decorators","target","key","desc","c","arguments","length","r","getOwnPropertyDescriptor","Reflect","decorate","i","defineProperty","properties","modelProps","PivotViewComponent","_super","_this","call","propKeys","models","hasChildDirective","hasInjectedModules","tagMapper","tagNameMapper","ej2Instances","PivotView","bindProperties","_setProperties","setProperties","prop","muteOnChange","keys","map","model","test","$emit","render","createElement","$slots","default","chartExport","type","fileName","orientation","width","height","createCalculatedFieldDialog","csvExport","excelExportProperties","isMultipleExport","workbook","isBlob","excelExport","getCellTemplate","loadPersistData","persistData","pdfExport","pdfExportProperties","pdfDoc","printChart","refresh","showConditionalFormattingDialog","showNumberFormattingDialog","templateParser","template","EJComponentDecorator","props","ComponentBase","PivotViewPlugin","name","install","Vue","component","PivotFieldListComponent","PivotFieldList","update","control","updateView","PivotFieldListPlugin"],"mappings":"qVAAA,IAAIA,EAAwC,WACxC,IAAIC,EAAgB,SAAUC,EAAGC,GAI7B,OAHAF,EAAgBG,OAAOC,iBAChBC,wBAA2BC,OAAS,SAAUL,EAAGC,GAAKD,EAAEI,UAAYH,IACvE,SAAUD,EAAGC,GAAK,IAAK,IAAIK,KAAKL,EAAOA,EAAEM,eAAeD,KAAIN,EAAEM,GAAKL,EAAEK,MACpDN,EAAGC,IAE5B,OAAO,SAAUD,EAAGC,GAEhB,SAASO,IAAOC,KAAKC,YAAcV,EADnCD,EAAcC,EAAGC,GAEjBD,EAAEW,UAAkB,OAANV,EAAaC,OAAOU,OAAOX,IAAMO,EAAGG,UAAYV,EAAEU,UAAW,IAAIH,IAV3C,GAaxCK,EAA0C,SAAUC,EAAYC,EAAQC,EAAKC,GAC7E,IAA2HjB,EAAvHkB,EAAIC,UAAUC,OAAQC,EAAIH,EAAI,EAAIH,EAAkB,OAATE,EAAgBA,EAAOf,OAAOoB,yBAAyBP,EAAQC,GAAOC,EACrH,GAAuB,iBAAZM,SAAoD,mBAArBA,QAAQC,SAAyBH,EAAIE,QAAQC,SAASV,EAAYC,EAAQC,EAAKC,QACpH,IAAK,IAAIQ,EAAIX,EAAWM,OAAS,EAAGK,GAAK,EAAGA,KAASzB,EAAIc,EAAWW,MAAIJ,GAAKH,EAAI,EAAIlB,EAAEqB,GAAKH,EAAI,EAAIlB,EAAEe,EAAQC,EAAKK,GAAKrB,EAAEe,EAAQC,KAASK,GAChJ,OAAOH,EAAI,GAAKG,GAAKnB,OAAOwB,eA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GACtBmE,wBACIC,MAAOtD,KAEZ6D,IAELN,iBAESW,GACPT,KAAM,qBACNC,QAAS,SAAUC,GACfA,EAAIC,UAAUM,EAAqBT,KAAMI"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PivotFieldList, PivotView } from '@syncfusion/ej2-pivotview';
|
|
2
2
|
import { ComponentBase, EJComponentDecorator, getProps, gh } from '@syncfusion/ej2-vue-base';
|
|
3
|
-
import { isNullOrUndefined } from '@syncfusion/ej2-base';
|
|
3
|
+
import { getValue, isNullOrUndefined } from '@syncfusion/ej2-base';
|
|
4
4
|
|
|
5
5
|
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
6
6
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
@@ -46,6 +46,29 @@ class PivotViewComponent extends ComponentBase {
|
|
|
46
46
|
this.bindProperties();
|
|
47
47
|
this.ej2Instances._setProperties = this.ej2Instances.setProperties;
|
|
48
48
|
this.ej2Instances.setProperties = this.setProperties;
|
|
49
|
+
this.ej2Instances.clearTemplate = this.clearTemplate;
|
|
50
|
+
}
|
|
51
|
+
clearTemplate(templateNames) {
|
|
52
|
+
if (!templateNames) {
|
|
53
|
+
templateNames = Object.keys(this.templateCollection || {});
|
|
54
|
+
}
|
|
55
|
+
if (templateNames.length && this.templateCollection) {
|
|
56
|
+
for (let tempName of templateNames) {
|
|
57
|
+
let elementCollection = this.templateCollection[tempName];
|
|
58
|
+
if (elementCollection && elementCollection.length) {
|
|
59
|
+
for (let ele of elementCollection) {
|
|
60
|
+
let destroy = getValue('__vue__.$destroy', ele);
|
|
61
|
+
if (destroy) {
|
|
62
|
+
ele.__vue__.$destroy();
|
|
63
|
+
}
|
|
64
|
+
if (ele.innerHTML) {
|
|
65
|
+
ele.innerHTML = '';
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
delete this.templateCollection[tempName];
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
49
72
|
}
|
|
50
73
|
setProperties(prop, muteOnChange) {
|
|
51
74
|
if (this.isVue3) {
|
|
@@ -63,6 +86,7 @@ class PivotViewComponent extends ComponentBase {
|
|
|
63
86
|
}
|
|
64
87
|
else {
|
|
65
88
|
this.$emit('update:' + key, prop[key]);
|
|
89
|
+
this.$emit('modelchanged', prop[key]);
|
|
66
90
|
}
|
|
67
91
|
}
|
|
68
92
|
});
|
|
@@ -175,6 +199,29 @@ class PivotFieldListComponent extends ComponentBase {
|
|
|
175
199
|
this.bindProperties();
|
|
176
200
|
this.ej2Instances._setProperties = this.ej2Instances.setProperties;
|
|
177
201
|
this.ej2Instances.setProperties = this.setProperties;
|
|
202
|
+
this.ej2Instances.clearTemplate = this.clearTemplate;
|
|
203
|
+
}
|
|
204
|
+
clearTemplate(templateNames) {
|
|
205
|
+
if (!templateNames) {
|
|
206
|
+
templateNames = Object.keys(this.templateCollection || {});
|
|
207
|
+
}
|
|
208
|
+
if (templateNames.length && this.templateCollection) {
|
|
209
|
+
for (let tempName of templateNames) {
|
|
210
|
+
let elementCollection = this.templateCollection[tempName];
|
|
211
|
+
if (elementCollection && elementCollection.length) {
|
|
212
|
+
for (let ele of elementCollection) {
|
|
213
|
+
let destroy = getValue('__vue__.$destroy', ele);
|
|
214
|
+
if (destroy) {
|
|
215
|
+
ele.__vue__.$destroy();
|
|
216
|
+
}
|
|
217
|
+
if (ele.innerHTML) {
|
|
218
|
+
ele.innerHTML = '';
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
delete this.templateCollection[tempName];
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
}
|
|
178
225
|
}
|
|
179
226
|
setProperties(prop, muteOnChange) {
|
|
180
227
|
if (this.isVue3) {
|
|
@@ -192,6 +239,7 @@ class PivotFieldListComponent extends ComponentBase {
|
|
|
192
239
|
}
|
|
193
240
|
else {
|
|
194
241
|
this.$emit('update:' + key, prop[key]);
|
|
242
|
+
this.$emit('modelchanged', prop[key]);
|
|
195
243
|
}
|
|
196
244
|
}
|
|
197
245
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ej2-vue-pivotview.es2015.js","sources":["../src/es6/pivotview/pivotview.component.js","../src/es6/pivotfieldlist/pivotfieldlist.component.js"],"sourcesContent":["var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n 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;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nimport { ComponentBase, EJComponentDecorator, getProps, gh } from '@syncfusion/ej2-vue-base';\nimport { isNullOrUndefined } from '@syncfusion/ej2-base';\nimport { PivotView } from '@syncfusion/ej2-pivotview';\n// {{VueImport}}\nexport const properties = ['aggregateTypes', 'allowCalculatedField', 'allowConditionalFormatting', 'allowDataCompression', 'allowDeferLayoutUpdate', 'allowDrillThrough', 'allowExcelExport', 'allowGrouping', 'allowNumberFormatting', 'allowPdfExport', 'cellTemplate', 'chartSettings', 'chartTypes', 'currencyCode', 'dataSourceSettings', 'displayOption', 'editSettings', 'enableHtmlSanitizer', 'enablePersistence', 'enableRtl', 'enableValueSorting', 'enableVirtualization', 'exportAllPages', 'gridSettings', 'groupingBarSettings', 'height', 'hyperlinkSettings', 'loadOnDemandInMemberEditor', 'locale', 'maxNodeLimitInMemberEditor', 'maxRowsInDrillThrough', 'pivotValues', 'showFieldList', 'showGroupingBar', 'showToolbar', 'showTooltip', 'showValuesButton', 'spinnerTemplate', 'toolbar', 'toolbarTemplate', 'tooltipTemplate', 'width', 'aggregateCellInfo', 'aggregateMenuOpen', 'beforeExport', 'beforeServiceInvoke', 'beginDrillThrough', 'calculatedFieldCreate', 'cellClick', 'cellSelected', 'cellSelecting', 'chartSeriesCreated', 'conditionalFormatting', 'created', 'dataBound', 'destroyed', 'drill', 'drillThrough', 'editCompleted', 'enginePopulated', 'enginePopulating', 'fetchReport', 'fieldDragStart', 'fieldDrop', 'fieldListRefreshed', 'fieldRemove', 'hyperlinkCellClick', 'load', 'loadReport', 'memberEditorOpen', 'memberFiltering', 'newReport', 'numberFormatting', 'onFieldDropped', 'onPdfCellRender', 'removeReport', 'renameReport', 'saveReport', 'toolbarClick', 'toolbarRender'];\nexport const modelProps = [];\nexport const testProp = getProps({ props: properties });\nexport const props = testProp[0];\nexport const watch = testProp[1];\nexport const emitProbs = Object.keys(watch);\nemitProbs.push('modelchanged');\nfor (let props of modelProps) {\n emitProbs.push('update:' + props);\n}\nexport const isExecute = gh ? false : true;\n/**\n * `ejs-pivotview` represents the VueJS PivotView Component.\n * ```vue\n * <ejs-pivotview></ejs-pivotview>\n * ```\n */\nlet PivotViewComponent = \n/* Start Options({\n props: props,\n watch: watch,\n emits: emitProbs\n}) End */\nclass PivotViewComponent extends ComponentBase {\n constructor() {\n super(arguments);\n this.propKeys = properties;\n this.models = modelProps;\n this.hasChildDirective = false;\n this.hasInjectedModules = true;\n this.tagMapper = {};\n this.tagNameMapper = {};\n this.isVue3 = !isExecute;\n this.ej2Instances = new PivotView({});\n this.bindProperties();\n this.ej2Instances._setProperties = this.ej2Instances.setProperties;\n this.ej2Instances.setProperties = this.setProperties;\n }\n setProperties(prop, muteOnChange) {\n if (this.isVue3) {\n this.models = !this.models ? this.ej2Instances.referModels : this.models;\n }\n if (this.ej2Instances && this.ej2Instances._setProperties) {\n this.ej2Instances._setProperties(prop, muteOnChange);\n }\n if (prop && this.models && this.models.length) {\n Object.keys(prop).map((key) => {\n this.models.map((model) => {\n if ((key === model) && !(/datasource/i.test(key))) {\n if (this.isVue3) {\n this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);\n }\n else {\n this.$emit('update:' + key, prop[key]);\n }\n }\n });\n });\n }\n }\n render(createElement) {\n let h = gh || createElement;\n let slots = null;\n if (!isNullOrUndefined(this.$slots.default)) {\n slots = gh ? this.$slots.default() : this.$slots.default;\n }\n return h('div', slots);\n }\n chartExport(type, fileName, orientation, width, height) {\n return this.ej2Instances.chartExport(type, fileName, orientation, width, height);\n }\n createCalculatedFieldDialog() {\n return this.ej2Instances.createCalculatedFieldDialog();\n }\n csvExport(excelExportProperties, isMultipleExport, workbook, isBlob) {\n return this.ej2Instances.csvExport(excelExportProperties, isMultipleExport, workbook, isBlob);\n }\n excelExport(excelExportProperties, isMultipleExport, workbook, isBlob) {\n return this.ej2Instances.excelExport(excelExportProperties, isMultipleExport, workbook, isBlob);\n }\n getCellTemplate() {\n return this.ej2Instances.getCellTemplate();\n }\n loadPersistData(persistData) {\n return this.ej2Instances.loadPersistData(persistData);\n }\n pdfExport(pdfExportProperties, isMultipleExport, pdfDoc, isBlob) {\n return this.ej2Instances.pdfExport(pdfExportProperties, isMultipleExport, pdfDoc, isBlob);\n }\n printChart() {\n return this.ej2Instances.printChart();\n }\n refresh() {\n return this.ej2Instances.refresh();\n }\n showConditionalFormattingDialog() {\n return this.ej2Instances.showConditionalFormattingDialog();\n }\n showNumberFormattingDialog() {\n return this.ej2Instances.showNumberFormattingDialog();\n }\n templateParser(template) {\n return this.ej2Instances.templateParser(template);\n }\n};\nPivotViewComponent = __decorate([\n EJComponentDecorator({\n props: properties\n }, isExecute)\n /* Start Options({\n props: props,\n watch: watch,\n emits: emitProbs\n }) End */\n], PivotViewComponent);\nexport { PivotViewComponent };\nexport const PivotViewPlugin = {\n name: 'ejs-pivotview',\n install(Vue) {\n Vue.component(PivotViewPlugin.name, PivotViewComponent);\n }\n};\n","var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n 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;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nimport { ComponentBase, EJComponentDecorator, getProps, gh } from '@syncfusion/ej2-vue-base';\nimport { isNullOrUndefined } from '@syncfusion/ej2-base';\nimport { PivotFieldList } from '@syncfusion/ej2-pivotview';\n// {{VueImport}}\nexport const properties = ['aggregateTypes', 'allowCalculatedField', 'allowDeferLayoutUpdate', 'cssClass', 'dataSourceSettings', 'enablePersistence', 'enableRtl', 'loadOnDemandInMemberEditor', 'locale', 'maxNodeLimitInMemberEditor', 'renderMode', 'showValuesButton', 'spinnerTemplate', 'target', 'aggregateCellInfo', 'aggregateMenuOpen', 'beforeServiceInvoke', 'calculatedFieldCreate', 'created', 'dataBound', 'destroyed', 'enginePopulated', 'enginePopulating', 'fieldDragStart', 'fieldDrop', 'fieldRemove', 'load', 'memberEditorOpen', 'memberFiltering', 'onFieldDropped'];\nexport const modelProps = [];\nexport const testProp = getProps({ props: properties });\nexport const props = testProp[0];\nexport const watch = testProp[1];\nexport const emitProbs = Object.keys(watch);\nemitProbs.push('modelchanged');\nfor (let props of modelProps) {\n emitProbs.push('update:' + props);\n}\nexport const isExecute = gh ? false : true;\n/**\n * `ejs-pivotfieldlist` represents the VueJS PivotFieldList Component.\n * ```vue\n * <ejs-pivotfieldlist></ejs-pivotfieldlist>\n * ```\n */\nlet PivotFieldListComponent = \n/* Start Options({\n props: props,\n watch: watch,\n emits: emitProbs\n}) End */\nclass PivotFieldListComponent extends ComponentBase {\n constructor() {\n super(arguments);\n this.propKeys = properties;\n this.models = modelProps;\n this.hasChildDirective = false;\n this.hasInjectedModules = false;\n this.tagMapper = {};\n this.tagNameMapper = {};\n this.isVue3 = !isExecute;\n this.ej2Instances = new PivotFieldList({});\n this.bindProperties();\n this.ej2Instances._setProperties = this.ej2Instances.setProperties;\n this.ej2Instances.setProperties = this.setProperties;\n }\n setProperties(prop, muteOnChange) {\n if (this.isVue3) {\n this.models = !this.models ? this.ej2Instances.referModels : this.models;\n }\n if (this.ej2Instances && this.ej2Instances._setProperties) {\n this.ej2Instances._setProperties(prop, muteOnChange);\n }\n if (prop && this.models && this.models.length) {\n Object.keys(prop).map((key) => {\n this.models.map((model) => {\n if ((key === model) && !(/datasource/i.test(key))) {\n if (this.isVue3) {\n this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);\n }\n else {\n this.$emit('update:' + key, prop[key]);\n }\n }\n });\n });\n }\n }\n render(createElement) {\n let h = gh || createElement;\n let slots = null;\n if (!isNullOrUndefined(this.$slots.default)) {\n slots = gh ? this.$slots.default() : this.$slots.default;\n }\n return h('div', slots);\n }\n update(control) {\n return this.ej2Instances.update(control);\n }\n updateView(control) {\n return this.ej2Instances.updateView(control);\n }\n};\nPivotFieldListComponent = __decorate([\n EJComponentDecorator({\n props: properties\n }, isExecute)\n /* Start Options({\n props: props,\n watch: watch,\n emits: emitProbs\n }) End */\n], PivotFieldListComponent);\nexport { PivotFieldListComponent };\nexport const PivotFieldListPlugin = {\n name: 'ejs-pivotfieldlist',\n install(Vue) {\n Vue.component(PivotFieldListPlugin.name, PivotFieldListComponent);\n }\n};\n"],"names":["this","__decorate","properties","modelProps","testProp","props","watch","emitProbs","isExecute"],"mappings":";;;;AAAA,IAAI,UAAU,GAAG,CAACA,SAAI,IAAIA,SAAI,CAAC,UAAU,KAAK,UAAU,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE;IACnF,IAAI,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,MAAM,GAAG,IAAI,KAAK,IAAI,GAAG,IAAI,GAAG,MAAM,CAAC,wBAAwB,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,EAAE,CAAC,CAAC;IAC7H,IAAI,OAAO,OAAO,KAAK,QAAQ,IAA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ACD,MAAM,CAAC,aAAa,EAAE;QAClB,IAAI,CAAC,GAAG,EAAE,IAAI,aAAa,CAAC;QAC5B,IAAI,KAAK,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE;YACzC,KAAK,GAAG,EAAE,GAAG,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,GAAG,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC;SAC5D;QACD,OAAO,CAAC,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;KAC1B;IACD,MAAM,CAAC,OAAO,EAAE;QACZ,OAAO,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;KAC5C;IACD,UAAU,CAAC,OAAO,EAAE;QAChB,OAAO,IAAI,CAAC,YAAY,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;KAChD;CACJ,CAAC;AACF,uBAAuB,GAAGP,YAAU,CAAC;IACjC,oBAAoB,CAAC;QACjB,KAAK,EAAEC,YAAU;KACpB,EAAEM,WAAS,CAAC;;;;;;CAMhB,EAAE,uBAAuB,CAAC,CAAC;AAC5B,AACO,MAAM,oBAAoB,GAAG;IAChC,IAAI,EAAE,oBAAoB;IAC1B,OAAO,CAAC,GAAG,EAAE;QACT,GAAG,CAAC,SAAS,CAAC,oBAAoB,CAAC,IAAI,EAAE,uBAAuB,CAAC,CAAC;KACrE;CACJ;;;;;"}
|
|
1
|
+
{"version":3,"file":"ej2-vue-pivotview.es2015.js","sources":["../src/es6/pivotview/pivotview.component.js","../src/es6/pivotfieldlist/pivotfieldlist.component.js"],"sourcesContent":["var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n 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;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nimport { ComponentBase, EJComponentDecorator, getProps, gh } from '@syncfusion/ej2-vue-base';\nimport { isNullOrUndefined, getValue } from '@syncfusion/ej2-base';\nimport { PivotView } from '@syncfusion/ej2-pivotview';\n// {{VueImport}}\nexport const properties = ['aggregateTypes', 'allowCalculatedField', 'allowConditionalFormatting', 'allowDataCompression', 'allowDeferLayoutUpdate', 'allowDrillThrough', 'allowExcelExport', 'allowGrouping', 'allowNumberFormatting', 'allowPdfExport', 'cellTemplate', 'chartSettings', 'chartTypes', 'currencyCode', 'dataSourceSettings', 'displayOption', 'editSettings', 'enableHtmlSanitizer', 'enablePersistence', 'enableRtl', 'enableValueSorting', 'enableVirtualization', 'exportAllPages', 'gridSettings', 'groupingBarSettings', 'height', 'hyperlinkSettings', 'loadOnDemandInMemberEditor', 'locale', 'maxNodeLimitInMemberEditor', 'maxRowsInDrillThrough', 'pivotValues', 'showFieldList', 'showGroupingBar', 'showToolbar', 'showTooltip', 'showValuesButton', 'spinnerTemplate', 'toolbar', 'toolbarTemplate', 'tooltipTemplate', 'width', 'aggregateCellInfo', 'aggregateMenuOpen', 'beforeExport', 'beforeServiceInvoke', 'beginDrillThrough', 'calculatedFieldCreate', 'cellClick', 'cellSelected', 'cellSelecting', 'chartSeriesCreated', 'conditionalFormatting', 'created', 'dataBound', 'destroyed', 'drill', 'drillThrough', 'editCompleted', 'enginePopulated', 'enginePopulating', 'fetchReport', 'fieldDragStart', 'fieldDrop', 'fieldListRefreshed', 'fieldRemove', 'hyperlinkCellClick', 'load', 'loadReport', 'memberEditorOpen', 'memberFiltering', 'newReport', 'numberFormatting', 'onFieldDropped', 'onPdfCellRender', 'removeReport', 'renameReport', 'saveReport', 'toolbarClick', 'toolbarRender'];\nexport const modelProps = [];\nexport const testProp = getProps({ props: properties });\nexport const props = testProp[0];\nexport const watch = testProp[1];\nexport const emitProbs = Object.keys(watch);\nemitProbs.push('modelchanged');\nfor (let props of modelProps) {\n emitProbs.push('update:' + props);\n}\nexport const isExecute = gh ? false : true;\n/**\n * `ejs-pivotview` represents the VueJS PivotView Component.\n * ```vue\n * <ejs-pivotview></ejs-pivotview>\n * ```\n */\nlet PivotViewComponent = \n/* Start Options({\n props: props,\n watch: watch,\n emits: emitProbs\n}) End */\nclass PivotViewComponent extends ComponentBase {\n constructor() {\n super(arguments);\n this.propKeys = properties;\n this.models = modelProps;\n this.hasChildDirective = false;\n this.hasInjectedModules = true;\n this.tagMapper = {};\n this.tagNameMapper = {};\n this.isVue3 = !isExecute;\n this.ej2Instances = new PivotView({});\n this.bindProperties();\n this.ej2Instances._setProperties = this.ej2Instances.setProperties;\n this.ej2Instances.setProperties = this.setProperties;\n this.ej2Instances.clearTemplate = this.clearTemplate;\n }\n clearTemplate(templateNames) {\n if (!templateNames) {\n templateNames = Object.keys(this.templateCollection || {});\n }\n if (templateNames.length && this.templateCollection) {\n for (let tempName of templateNames) {\n let elementCollection = this.templateCollection[tempName];\n if (elementCollection && elementCollection.length) {\n for (let ele of elementCollection) {\n let destroy = getValue('__vue__.$destroy', ele);\n if (destroy) {\n ele.__vue__.$destroy();\n }\n if (ele.innerHTML) {\n ele.innerHTML = '';\n }\n }\n delete this.templateCollection[tempName];\n }\n }\n }\n }\n setProperties(prop, muteOnChange) {\n if (this.isVue3) {\n this.models = !this.models ? this.ej2Instances.referModels : this.models;\n }\n if (this.ej2Instances && this.ej2Instances._setProperties) {\n this.ej2Instances._setProperties(prop, muteOnChange);\n }\n if (prop && this.models && this.models.length) {\n Object.keys(prop).map((key) => {\n this.models.map((model) => {\n if ((key === model) && !(/datasource/i.test(key))) {\n if (this.isVue3) {\n this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);\n }\n else {\n this.$emit('update:' + key, prop[key]);\n this.$emit('modelchanged', prop[key]);\n }\n }\n });\n });\n }\n }\n render(createElement) {\n let h = gh || createElement;\n let slots = null;\n if (!isNullOrUndefined(this.$slots.default)) {\n slots = gh ? this.$slots.default() : this.$slots.default;\n }\n return h('div', slots);\n }\n chartExport(type, fileName, orientation, width, height) {\n return this.ej2Instances.chartExport(type, fileName, orientation, width, height);\n }\n createCalculatedFieldDialog() {\n return this.ej2Instances.createCalculatedFieldDialog();\n }\n csvExport(excelExportProperties, isMultipleExport, workbook, isBlob) {\n return this.ej2Instances.csvExport(excelExportProperties, isMultipleExport, workbook, isBlob);\n }\n excelExport(excelExportProperties, isMultipleExport, workbook, isBlob) {\n return this.ej2Instances.excelExport(excelExportProperties, isMultipleExport, workbook, isBlob);\n }\n getCellTemplate() {\n return this.ej2Instances.getCellTemplate();\n }\n loadPersistData(persistData) {\n return this.ej2Instances.loadPersistData(persistData);\n }\n pdfExport(pdfExportProperties, isMultipleExport, pdfDoc, isBlob) {\n return this.ej2Instances.pdfExport(pdfExportProperties, isMultipleExport, pdfDoc, isBlob);\n }\n printChart() {\n return this.ej2Instances.printChart();\n }\n refresh() {\n return this.ej2Instances.refresh();\n }\n showConditionalFormattingDialog() {\n return this.ej2Instances.showConditionalFormattingDialog();\n }\n showNumberFormattingDialog() {\n return this.ej2Instances.showNumberFormattingDialog();\n }\n templateParser(template) {\n return this.ej2Instances.templateParser(template);\n }\n};\nPivotViewComponent = __decorate([\n EJComponentDecorator({\n props: properties\n }, isExecute)\n /* Start Options({\n props: props,\n watch: watch,\n emits: emitProbs\n }) End */\n], PivotViewComponent);\nexport { PivotViewComponent };\nexport const PivotViewPlugin = {\n name: 'ejs-pivotview',\n install(Vue) {\n Vue.component(PivotViewPlugin.name, PivotViewComponent);\n }\n};\n","var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n 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;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nimport { ComponentBase, EJComponentDecorator, getProps, gh } from '@syncfusion/ej2-vue-base';\nimport { isNullOrUndefined, getValue } from '@syncfusion/ej2-base';\nimport { PivotFieldList } from '@syncfusion/ej2-pivotview';\n// {{VueImport}}\nexport const properties = ['aggregateTypes', 'allowCalculatedField', 'allowDeferLayoutUpdate', 'cssClass', 'dataSourceSettings', 'enablePersistence', 'enableRtl', 'loadOnDemandInMemberEditor', 'locale', 'maxNodeLimitInMemberEditor', 'renderMode', 'showValuesButton', 'spinnerTemplate', 'target', 'aggregateCellInfo', 'aggregateMenuOpen', 'beforeServiceInvoke', 'calculatedFieldCreate', 'created', 'dataBound', 'destroyed', 'enginePopulated', 'enginePopulating', 'fieldDragStart', 'fieldDrop', 'fieldRemove', 'load', 'memberEditorOpen', 'memberFiltering', 'onFieldDropped'];\nexport const modelProps = [];\nexport const testProp = getProps({ props: properties });\nexport const props = testProp[0];\nexport const watch = testProp[1];\nexport const emitProbs = Object.keys(watch);\nemitProbs.push('modelchanged');\nfor (let props of modelProps) {\n emitProbs.push('update:' + props);\n}\nexport const isExecute = gh ? false : true;\n/**\n * `ejs-pivotfieldlist` represents the VueJS PivotFieldList Component.\n * ```vue\n * <ejs-pivotfieldlist></ejs-pivotfieldlist>\n * ```\n */\nlet PivotFieldListComponent = \n/* Start Options({\n props: props,\n watch: watch,\n emits: emitProbs\n}) End */\nclass PivotFieldListComponent extends ComponentBase {\n constructor() {\n super(arguments);\n this.propKeys = properties;\n this.models = modelProps;\n this.hasChildDirective = false;\n this.hasInjectedModules = false;\n this.tagMapper = {};\n this.tagNameMapper = {};\n this.isVue3 = !isExecute;\n this.ej2Instances = new PivotFieldList({});\n this.bindProperties();\n this.ej2Instances._setProperties = this.ej2Instances.setProperties;\n this.ej2Instances.setProperties = this.setProperties;\n this.ej2Instances.clearTemplate = this.clearTemplate;\n }\n clearTemplate(templateNames) {\n if (!templateNames) {\n templateNames = Object.keys(this.templateCollection || {});\n }\n if (templateNames.length && this.templateCollection) {\n for (let tempName of templateNames) {\n let elementCollection = this.templateCollection[tempName];\n if (elementCollection && elementCollection.length) {\n for (let ele of elementCollection) {\n let destroy = getValue('__vue__.$destroy', ele);\n if (destroy) {\n ele.__vue__.$destroy();\n }\n if (ele.innerHTML) {\n ele.innerHTML = '';\n }\n }\n delete this.templateCollection[tempName];\n }\n }\n }\n }\n setProperties(prop, muteOnChange) {\n if (this.isVue3) {\n this.models = !this.models ? this.ej2Instances.referModels : this.models;\n }\n if (this.ej2Instances && this.ej2Instances._setProperties) {\n this.ej2Instances._setProperties(prop, muteOnChange);\n }\n if (prop && this.models && this.models.length) {\n Object.keys(prop).map((key) => {\n this.models.map((model) => {\n if ((key === model) && !(/datasource/i.test(key))) {\n if (this.isVue3) {\n this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);\n }\n else {\n this.$emit('update:' + key, prop[key]);\n this.$emit('modelchanged', prop[key]);\n }\n }\n });\n });\n }\n }\n render(createElement) {\n let h = gh || createElement;\n let slots = null;\n if (!isNullOrUndefined(this.$slots.default)) {\n slots = gh ? this.$slots.default() : this.$slots.default;\n }\n return h('div', slots);\n }\n update(control) {\n return this.ej2Instances.update(control);\n }\n updateView(control) {\n return this.ej2Instances.updateView(control);\n }\n};\nPivotFieldListComponent = __decorate([\n EJComponentDecorator({\n props: properties\n }, isExecute)\n /* Start Options({\n props: props,\n watch: watch,\n emits: emitProbs\n }) End */\n], PivotFieldListComponent);\nexport { PivotFieldListComponent };\nexport const PivotFieldListPlugin = {\n name: 'ejs-pivotfieldlist',\n install(Vue) {\n Vue.component(PivotFieldListPlugin.name, PivotFieldListComponent);\n }\n};\n"],"names":["this","__decorate","properties","modelProps","testProp","props","watch","emitProbs","isExecute"],"mappings":";;;;AAAA,IAAI,UAAU,GAAG,CAACA,SAAI,IAAIA,SAAI,CAAC,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AC,KAAK,EAAE,KAAK,CAAC,CAAC;KAC1B;IACD,MAAM,CAAC,OAAO,EAAE;QACZ,OAAO,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;KAC5C;IACD,UAAU,CAAC,OAAO,EAAE;QAChB,OAAO,IAAI,CAAC,YAAY,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;KAChD;CACJ,CAAC;AACF,uBAAuB,GAAGP,YAAU,CAAC;IACjC,oBAAoB,CAAC;QACjB,KAAK,EAAEC,YAAU;KACpB,EAAEM,WAAS,CAAC;;;;;;CAMhB,EAAE,uBAAuB,CAAC,CAAC;AAC5B,AACO,MAAM,oBAAoB,GAAG;IAChC,IAAI,EAAE,oBAAoB;IAC1B,OAAO,CAAC,GAAG,EAAE;QACT,GAAG,CAAC,SAAS,CAAC,oBAAoB,CAAC,IAAI,EAAE,uBAAuB,CAAC,CAAC;KACrE;CACJ;;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PivotFieldList, PivotView } from '@syncfusion/ej2-pivotview';
|
|
2
2
|
import { ComponentBase, EJComponentDecorator, getProps, gh } from '@syncfusion/ej2-vue-base';
|
|
3
|
-
import { isNullOrUndefined } from '@syncfusion/ej2-base';
|
|
3
|
+
import { getValue, isNullOrUndefined } from '@syncfusion/ej2-base';
|
|
4
4
|
|
|
5
5
|
var __extends = (undefined && undefined.__extends) || (function () {
|
|
6
6
|
var extendStatics = function (d, b) {
|
|
@@ -55,8 +55,33 @@ var PivotViewComponent = /** @__PURE__ @class */ (function (_super) {
|
|
|
55
55
|
_this.bindProperties();
|
|
56
56
|
_this.ej2Instances._setProperties = _this.ej2Instances.setProperties;
|
|
57
57
|
_this.ej2Instances.setProperties = _this.setProperties;
|
|
58
|
+
_this.ej2Instances.clearTemplate = _this.clearTemplate;
|
|
58
59
|
return _this;
|
|
59
60
|
}
|
|
61
|
+
PivotViewComponent.prototype.clearTemplate = function (templateNames) {
|
|
62
|
+
if (!templateNames) {
|
|
63
|
+
templateNames = Object.keys(this.templateCollection || {});
|
|
64
|
+
}
|
|
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 = '';
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
delete this.templateCollection[tempName];
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
};
|
|
60
85
|
PivotViewComponent.prototype.setProperties = function (prop, muteOnChange) {
|
|
61
86
|
var _this = this;
|
|
62
87
|
if (this.isVue3) {
|
|
@@ -74,6 +99,7 @@ var PivotViewComponent = /** @__PURE__ @class */ (function (_super) {
|
|
|
74
99
|
}
|
|
75
100
|
else {
|
|
76
101
|
_this.$emit('update:' + key, prop[key]);
|
|
102
|
+
_this.$emit('modelchanged', prop[key]);
|
|
77
103
|
}
|
|
78
104
|
}
|
|
79
105
|
});
|
|
@@ -196,8 +222,33 @@ var PivotFieldListComponent = /** @__PURE__ @class */ (function (_super) {
|
|
|
196
222
|
_this.bindProperties();
|
|
197
223
|
_this.ej2Instances._setProperties = _this.ej2Instances.setProperties;
|
|
198
224
|
_this.ej2Instances.setProperties = _this.setProperties;
|
|
225
|
+
_this.ej2Instances.clearTemplate = _this.clearTemplate;
|
|
199
226
|
return _this;
|
|
200
227
|
}
|
|
228
|
+
PivotFieldListComponent.prototype.clearTemplate = function (templateNames) {
|
|
229
|
+
if (!templateNames) {
|
|
230
|
+
templateNames = Object.keys(this.templateCollection || {});
|
|
231
|
+
}
|
|
232
|
+
if (templateNames.length && this.templateCollection) {
|
|
233
|
+
for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {
|
|
234
|
+
var tempName = templateNames_1[_i];
|
|
235
|
+
var elementCollection = this.templateCollection[tempName];
|
|
236
|
+
if (elementCollection && elementCollection.length) {
|
|
237
|
+
for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {
|
|
238
|
+
var ele = elementCollection_1[_a];
|
|
239
|
+
var destroy = getValue('__vue__.$destroy', ele);
|
|
240
|
+
if (destroy) {
|
|
241
|
+
ele.__vue__.$destroy();
|
|
242
|
+
}
|
|
243
|
+
if (ele.innerHTML) {
|
|
244
|
+
ele.innerHTML = '';
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
delete this.templateCollection[tempName];
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
};
|
|
201
252
|
PivotFieldListComponent.prototype.setProperties = function (prop, muteOnChange) {
|
|
202
253
|
var _this = this;
|
|
203
254
|
if (this.isVue3) {
|
|
@@ -215,6 +266,7 @@ var PivotFieldListComponent = /** @__PURE__ @class */ (function (_super) {
|
|
|
215
266
|
}
|
|
216
267
|
else {
|
|
217
268
|
_this.$emit('update:' + key, prop[key]);
|
|
269
|
+
_this.$emit('modelchanged', prop[key]);
|
|
218
270
|
}
|
|
219
271
|
}
|
|
220
272
|
});
|