@syncfusion/ej2-pivotview 20.2.36 → 20.2.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -0
- package/dist/ej2-pivotview.umd.min.js +2 -2
- package/dist/ej2-pivotview.umd.min.js.map +1 -1
- package/dist/es6/ej2-pivotview.es2015.js +84 -44
- package/dist/es6/ej2-pivotview.es2015.js.map +1 -1
- package/dist/es6/ej2-pivotview.es5.js +94 -52
- package/dist/es6/ej2-pivotview.es5.js.map +1 -1
- package/dist/global/ej2-pivotview.min.js +2 -2
- package/dist/global/ej2-pivotview.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +22 -22
- package/src/base/engine.js +4 -4
- package/src/base/olap/engine.js +2 -2
- package/src/common/base/constant.d.ts +8 -0
- package/src/common/base/constant.js +8 -0
- package/src/pivotfieldlist/base/field-list.js +6 -6
- package/src/pivotview/actions/virtualscroll.d.ts +1 -0
- package/src/pivotview/actions/virtualscroll.js +59 -30
- package/src/pivotview/base/pivotview.js +16 -9
- package/styles/pivotfieldlist/_fusionnew-definition.scss +1 -1
- package/styles/pivotfieldlist/_material3-definition.scss +2 -1
|
@@ -2597,7 +2597,7 @@ var PivotEngine = /** @__PURE__ @class */ (function () {
|
|
|
2597
2597
|
row: rows[i],
|
|
2598
2598
|
column: columns,
|
|
2599
2599
|
value: value,
|
|
2600
|
-
cellSets: this.getCellSet(this.rawIndexObject),
|
|
2600
|
+
cellSets: this.getValueCellInfo ? this.getCellSet(this.rawIndexObject) : [],
|
|
2601
2601
|
rowCellType: (rows[i].hasChild && rows[i].isDrilled ? 'subTotal' : rows[i].type === 'grand sum' ? 'grandTotal' : 'value'),
|
|
2602
2602
|
columnCellType: (columns.hasChild && columns.isDrilled ? 'subTotal' : columns.type === 'grand sum' ? 'grandTotal' : 'value'),
|
|
2603
2603
|
aggregateType: aggregate,
|
|
@@ -3522,7 +3522,7 @@ var PivotEngine = /** @__PURE__ @class */ (function () {
|
|
|
3522
3522
|
PivotUtil.applyHeadersSort(sortMembersOrder, sortOrder, type);
|
|
3523
3523
|
isHeaderSortByDefault = true;
|
|
3524
3524
|
}
|
|
3525
|
-
if (isHeaderSortByDefault) {
|
|
3525
|
+
if (isHeaderSortByDefault && this.getHeaderSortInfo) {
|
|
3526
3526
|
var copyOrder = [];
|
|
3527
3527
|
for (var m = 0, n = 0; m < sortMembersOrder.length; m++) {
|
|
3528
3528
|
var member = sortMembersOrder[m];
|
|
@@ -3658,7 +3658,7 @@ var PivotEngine = /** @__PURE__ @class */ (function () {
|
|
|
3658
3658
|
row: header,
|
|
3659
3659
|
column: member,
|
|
3660
3660
|
value: value,
|
|
3661
|
-
cellSets: this.getCellSet(this.rawIndexObject),
|
|
3661
|
+
cellSets: this.getValueCellInfo ? this.getCellSet(this.rawIndexObject) : [],
|
|
3662
3662
|
rowCellType: (header.hasChild && header.isDrilled ? 'subTotal' : header.type === 'grand sum' ? 'grandTotal' : 'value'),
|
|
3663
3663
|
columnCellType: (member.hasChild && member.isDrilled ? 'subTotal' : member.type === 'grand sum' ? 'grandTotal' : 'value'),
|
|
3664
3664
|
aggregateType: mType,
|
|
@@ -5254,7 +5254,7 @@ var PivotEngine = /** @__PURE__ @class */ (function () {
|
|
|
5254
5254
|
row: rows[rln],
|
|
5255
5255
|
column: columns[cln],
|
|
5256
5256
|
value: value,
|
|
5257
|
-
cellSets: this.getCellSet(this.rawIndexObject),
|
|
5257
|
+
cellSets: this.getValueCellInfo ? this.getCellSet(this.rawIndexObject) : [],
|
|
5258
5258
|
rowCellType: (rows[rln].hasChild && rows[rln].isDrilled ? 'subTotal' : rows[rln].type === 'grand sum' ? 'grandTotal' : 'value'),
|
|
5259
5259
|
columnCellType: (columns[cln].hasChild && columns[cln].isDrilled ? 'subTotal' : columns[cln].type === 'grand sum' ? 'grandTotal' : 'value'),
|
|
5260
5260
|
aggregateType: aggregate,
|
|
@@ -6093,6 +6093,10 @@ var uiUpdate = 'ui-update';
|
|
|
6093
6093
|
/** @hidden */
|
|
6094
6094
|
var scroll = 'scroll';
|
|
6095
6095
|
/** @hidden */
|
|
6096
|
+
var verticalScroll = 'vertical-scroll';
|
|
6097
|
+
/** @hidden */
|
|
6098
|
+
var horizontalScroll = 'horizontal-scroll';
|
|
6099
|
+
/** @hidden */
|
|
6096
6100
|
var contentReady = 'content-ready';
|
|
6097
6101
|
/** @hidden */
|
|
6098
6102
|
var dataReady = 'data-ready';
|
|
@@ -6292,6 +6296,10 @@ var windowResized = 'Window resized';
|
|
|
6292
6296
|
var recordUpdated = 'Records updated';
|
|
6293
6297
|
/** @hidden */
|
|
6294
6298
|
var drillThroughClosed = 'Drill-through closed';
|
|
6299
|
+
/** @hidden */
|
|
6300
|
+
var verticalScrolled = 'Vertically scrolled';
|
|
6301
|
+
/** @hidden */
|
|
6302
|
+
var horizontalScrolled = 'Horizontally scrolled';
|
|
6295
6303
|
|
|
6296
6304
|
/**
|
|
6297
6305
|
* CSS Constants
|
|
@@ -13744,8 +13752,12 @@ var VirtualScroll$1 = /** @__PURE__ @class */ (function () {
|
|
|
13744
13752
|
};
|
|
13745
13753
|
};
|
|
13746
13754
|
VirtualScroll$$1.prototype.update = function (mHdr, mCont, top, left, e) {
|
|
13755
|
+
var _this = this;
|
|
13747
13756
|
this.parent.isScrolling = true;
|
|
13748
13757
|
var engine = this.parent.dataType === 'pivot' ? this.parent.engineModule : this.parent.olapEngineModule;
|
|
13758
|
+
var args = {
|
|
13759
|
+
dataSourceSettings: PivotUtil.getClonedDataSourceSettings(this.parent.dataSourceSettings)
|
|
13760
|
+
};
|
|
13749
13761
|
if (this.parent.pageSettings && engine.pageSettings) {
|
|
13750
13762
|
if (this.direction === 'vertical') {
|
|
13751
13763
|
var rowValues = this.parent.dataType === 'pivot' ?
|
|
@@ -13757,25 +13769,29 @@ var VirtualScroll$1 = /** @__PURE__ @class */ (function () {
|
|
|
13757
13769
|
// this.parent.hideWaitingPopup();
|
|
13758
13770
|
return;
|
|
13759
13771
|
}
|
|
13772
|
+
this.parent.actionObj.actionName = verticalScroll;
|
|
13773
|
+
this.parent.actionBeginMethod();
|
|
13760
13774
|
this.parent.showWaitingPopup();
|
|
13761
13775
|
this.parent.scrollPosObject.vertical = section;
|
|
13762
13776
|
engine.pageSettings.rowCurrentPage = section > 1 ? section : 1;
|
|
13763
|
-
var
|
|
13764
|
-
|
|
13765
|
-
if (
|
|
13766
|
-
|
|
13777
|
+
var rowStartPos_1 = 0;
|
|
13778
|
+
this.parent.trigger(enginePopulating, args, function (observedArgs) {
|
|
13779
|
+
if (_this.parent.dataType === 'pivot') {
|
|
13780
|
+
if (_this.parent.dataSourceSettings.mode === 'Server') {
|
|
13781
|
+
_this.parent.getEngine('onScroll', null, null, null, null, null, null);
|
|
13782
|
+
}
|
|
13783
|
+
else {
|
|
13784
|
+
_this.parent.engineModule.generateGridData(_this.parent.dataSourceSettings, true, _this.parent.engineModule.headerCollection);
|
|
13785
|
+
rowStartPos_1 = _this.parent.engineModule.rowStartPos;
|
|
13786
|
+
}
|
|
13767
13787
|
}
|
|
13768
13788
|
else {
|
|
13769
|
-
|
|
13770
|
-
|
|
13789
|
+
_this.parent.olapEngineModule.scrollPage('scroll');
|
|
13790
|
+
rowStartPos_1 = _this.parent.olapEngineModule.pageRowStartPos;
|
|
13771
13791
|
}
|
|
13772
|
-
|
|
13773
|
-
|
|
13774
|
-
|
|
13775
|
-
rowStartPos = this.parent.olapEngineModule.pageRowStartPos;
|
|
13776
|
-
}
|
|
13777
|
-
this.parent.pivotValues = engine.pivotValues;
|
|
13778
|
-
var exactPage = Math.ceil(rowStartPos / (this.parent.pageSettings.rowSize * rowValues));
|
|
13792
|
+
_this.enginePopulatedEventMethod(engine);
|
|
13793
|
+
});
|
|
13794
|
+
var exactPage = Math.ceil(rowStartPos_1 / (this.parent.pageSettings.rowSize * rowValues));
|
|
13779
13795
|
var pos = exactSize * exactPage -
|
|
13780
13796
|
(engine.rowFirstLvl * rowValues * this.parent.gridSettings.rowHeight);
|
|
13781
13797
|
this.parent.scrollPosObject.verticalSection = pos;
|
|
@@ -13790,32 +13806,51 @@ var VirtualScroll$1 = /** @__PURE__ @class */ (function () {
|
|
|
13790
13806
|
// this.parent.hideWaitingPopup();
|
|
13791
13807
|
return;
|
|
13792
13808
|
}
|
|
13809
|
+
this.parent.actionObj.actionName = horizontalScroll;
|
|
13810
|
+
this.parent.actionBeginMethod();
|
|
13793
13811
|
this.parent.showWaitingPopup();
|
|
13794
|
-
var
|
|
13795
|
-
|
|
13812
|
+
var pivot_1 = this.parent;
|
|
13813
|
+
pivot_1.scrollPosObject.horizontal = section;
|
|
13796
13814
|
engine.pageSettings.columnCurrentPage = section > 1 ? section : 1;
|
|
13797
|
-
var
|
|
13798
|
-
|
|
13799
|
-
if (
|
|
13800
|
-
|
|
13815
|
+
var colStartPos_1 = 0;
|
|
13816
|
+
this.parent.trigger(enginePopulating, args, function (observedArgs) {
|
|
13817
|
+
if (pivot_1.dataType === 'pivot') {
|
|
13818
|
+
if (_this.parent.dataSourceSettings.mode === 'Server') {
|
|
13819
|
+
_this.parent.getEngine('onScroll', null, null, null, null, null, null);
|
|
13820
|
+
}
|
|
13821
|
+
else {
|
|
13822
|
+
pivot_1.engineModule.generateGridData(pivot_1.dataSourceSettings, true, pivot_1.engineModule.headerCollection);
|
|
13823
|
+
colStartPos_1 = pivot_1.engineModule.colStartPos;
|
|
13824
|
+
}
|
|
13801
13825
|
}
|
|
13802
13826
|
else {
|
|
13803
|
-
|
|
13804
|
-
|
|
13827
|
+
pivot_1.olapEngineModule.scrollPage('scroll');
|
|
13828
|
+
colStartPos_1 = pivot_1.olapEngineModule.pageColStartPos;
|
|
13805
13829
|
}
|
|
13806
|
-
|
|
13807
|
-
|
|
13808
|
-
|
|
13809
|
-
colStartPos = pivot.olapEngineModule.pageColStartPos;
|
|
13810
|
-
}
|
|
13811
|
-
pivot.pivotValues = engine.pivotValues;
|
|
13812
|
-
var exactPage = Math.ceil(colStartPos / (pivot.pageSettings.columnSize * colValues));
|
|
13830
|
+
_this.enginePopulatedEventMethod(engine);
|
|
13831
|
+
});
|
|
13832
|
+
var exactPage = Math.ceil(colStartPos_1 / (pivot_1.pageSettings.columnSize * colValues));
|
|
13813
13833
|
var pos = exactSize * exactPage - (engine.colFirstLvl *
|
|
13814
|
-
colValues *
|
|
13815
|
-
|
|
13834
|
+
colValues * pivot_1.gridSettings.columnWidth);
|
|
13835
|
+
pivot_1.scrollPosObject.horizontalSection = pos;
|
|
13836
|
+
}
|
|
13837
|
+
this.parent.actionObj.actionName = this.parent.getActionCompleteName();
|
|
13838
|
+
if (this.parent.actionObj.actionName) {
|
|
13839
|
+
this.parent.actionCompleteMethod();
|
|
13816
13840
|
}
|
|
13817
13841
|
}
|
|
13818
13842
|
};
|
|
13843
|
+
VirtualScroll$$1.prototype.enginePopulatedEventMethod = function (engine, control) {
|
|
13844
|
+
var _this = this;
|
|
13845
|
+
var pivot = control ? control : this.parent;
|
|
13846
|
+
var eventArgs = {
|
|
13847
|
+
dataSourceSettings: pivot.dataSourceSettings,
|
|
13848
|
+
pivotValues: pivot.pivotValues
|
|
13849
|
+
};
|
|
13850
|
+
pivot.trigger(enginePopulated, eventArgs, function (observedArgs) {
|
|
13851
|
+
_this.parent.pivotValues = engine.pivotValues;
|
|
13852
|
+
});
|
|
13853
|
+
};
|
|
13819
13854
|
VirtualScroll$$1.prototype.setPageXY = function () {
|
|
13820
13855
|
var _this = this;
|
|
13821
13856
|
return function (e) {
|
|
@@ -20934,7 +20969,7 @@ var OlapEngine = /** @__PURE__ @class */ (function () {
|
|
|
20934
20969
|
}
|
|
20935
20970
|
isHeaderSortByDefault = true;
|
|
20936
20971
|
}
|
|
20937
|
-
if (isHeaderSortByDefault) {
|
|
20972
|
+
if (isHeaderSortByDefault && this.getHeaderSortInfo) {
|
|
20938
20973
|
var copyOrder = [];
|
|
20939
20974
|
for (var m = 0, n = 0; m < headers.length; m++) {
|
|
20940
20975
|
if (headers[m].actualText !== 'Grand Total') {
|
|
@@ -20975,7 +21010,7 @@ var OlapEngine = /** @__PURE__ @class */ (function () {
|
|
|
20975
21010
|
}
|
|
20976
21011
|
isHeaderSortByDefault = true;
|
|
20977
21012
|
}
|
|
20978
|
-
if (isHeaderSortByDefault) {
|
|
21013
|
+
if (isHeaderSortByDefault && this.getHeaderSortInfo) {
|
|
20979
21014
|
var copyOrder = [];
|
|
20980
21015
|
for (var m = 0, n = 0; m < keys.length; m++) {
|
|
20981
21016
|
if (keys[m] !== 'Grand Total') {
|
|
@@ -24071,10 +24106,10 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
|
|
|
24071
24106
|
this.cellTemplateFn = this.templateParser(this.cellTemplate);
|
|
24072
24107
|
this.tooltipTemplateFn = this.templateParser(this.tooltipTemplate);
|
|
24073
24108
|
if (this.spinnerTemplate) {
|
|
24074
|
-
createSpinner({ target: this.element, template: this.spinnerTemplate }, this.createElement);
|
|
24109
|
+
createSpinner({ target: this.element, template: this.spinnerTemplate, cssClass: this.cssClass ? this.cssClass : undefined }, this.createElement);
|
|
24075
24110
|
}
|
|
24076
24111
|
else {
|
|
24077
|
-
createSpinner({ target: this.element }, this.createElement);
|
|
24112
|
+
createSpinner({ target: this.element, cssClass: this.cssClass ? this.cssClass : undefined }, this.createElement);
|
|
24078
24113
|
}
|
|
24079
24114
|
var loadArgs = {
|
|
24080
24115
|
dataSourceSettings: this.dataSourceSettings,
|
|
@@ -24743,7 +24778,7 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
|
|
|
24743
24778
|
}
|
|
24744
24779
|
}
|
|
24745
24780
|
else {
|
|
24746
|
-
pivot.olapEngineModule.renderEngine(pivot.dataSourceSettings, customProperties, pivot.getHeaderSortInfo.bind(pivot));
|
|
24781
|
+
pivot.olapEngineModule.renderEngine(pivot.dataSourceSettings, customProperties, pivot.onHeadersSort ? pivot.getHeaderSortInfo.bind(pivot) : undefined);
|
|
24747
24782
|
}
|
|
24748
24783
|
pivot.allowServerDataBinding = false;
|
|
24749
24784
|
pivot.setProperties({ pivotValues: pivot.olapEngineModule.pivotValues }, true);
|
|
@@ -24784,7 +24819,7 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
|
|
|
24784
24819
|
pivot.lastFilterInfo = {};
|
|
24785
24820
|
}
|
|
24786
24821
|
else {
|
|
24787
|
-
pivot.engineModule.renderEngine(pivot.dataSourceSettings, customProperties, pivot.getValueCellInfo.bind(pivot), pivot.getHeaderSortInfo.bind(pivot));
|
|
24822
|
+
pivot.engineModule.renderEngine(pivot.dataSourceSettings, customProperties, pivot.aggregateCellInfo ? pivot.getValueCellInfo.bind(pivot) : undefined, pivot.onHeadersSort ? pivot.getHeaderSortInfo.bind(pivot) : undefined);
|
|
24788
24823
|
pivot.allowServerDataBinding = false;
|
|
24789
24824
|
pivot.setProperties({ pivotValues: pivot.engineModule.pivotValues }, true);
|
|
24790
24825
|
/* eslint-disable-next-line @typescript-eslint/no-explicit-any */
|
|
@@ -25627,6 +25662,9 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
|
|
|
25627
25662
|
this.lastCellClicked = e.target;
|
|
25628
25663
|
}
|
|
25629
25664
|
var target = e.target;
|
|
25665
|
+
if (closest(target, '.' + PIVOT_BUTTON_CLASS)) {
|
|
25666
|
+
return;
|
|
25667
|
+
}
|
|
25630
25668
|
var ele = null;
|
|
25631
25669
|
var axis = (target.parentElement.classList.contains(ROWSHEADER) || target.classList.contains(ROWSHEADER)) ? 'row' : 'column';
|
|
25632
25670
|
ele = axis === 'column' ? closest(target, 'th') : closest(target, 'td');
|
|
@@ -26060,6 +26098,9 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
|
|
|
26060
26098
|
_this_1.getSelectedCellsPos();
|
|
26061
26099
|
});
|
|
26062
26100
|
}
|
|
26101
|
+
else {
|
|
26102
|
+
this.clearSelection(null, e, null, null);
|
|
26103
|
+
}
|
|
26063
26104
|
};
|
|
26064
26105
|
PivotView.prototype.rowDeselect = function (ele, e, rowIndex, mode, observedArgs) {
|
|
26065
26106
|
if (!e.shiftKey && !e.ctrlKey && this.gridSettings.selectionSettings.mode !== 'Both' || this.gridSettings.selectionSettings.type === 'Single') {
|
|
@@ -26105,7 +26146,7 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
|
|
|
26105
26146
|
PivotView.prototype.clearSelection = function (ele, e, colIndex, rowIndex) {
|
|
26106
26147
|
if ((!e.shiftKey && !e.ctrlKey) || this.gridSettings.selectionSettings.type === 'Single') {
|
|
26107
26148
|
if (this.gridSettings.selectionSettings.mode === 'Cell') {
|
|
26108
|
-
if (ele.classList.contains(COLUMNSHEADER)) {
|
|
26149
|
+
if (ele && ele.classList.contains(COLUMNSHEADER)) {
|
|
26109
26150
|
removeClass(this.element.querySelectorAll(('.' + ROW_CELL_CLASS + '.') + CELL_SELECTED_BGCOLOR), CELL_SELECTED_BGCOLOR);
|
|
26110
26151
|
}
|
|
26111
26152
|
else {
|
|
@@ -26113,7 +26154,7 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
|
|
|
26113
26154
|
}
|
|
26114
26155
|
}
|
|
26115
26156
|
else if (this.gridSettings.selectionSettings.mode === 'Both') {
|
|
26116
|
-
if (ele.classList.contains(ROW_CELL_CLASS)) {
|
|
26157
|
+
if (ele && ele.classList.contains(ROW_CELL_CLASS)) {
|
|
26117
26158
|
for (var _i = 0, _a = [].slice.call(this.element.querySelectorAll('.' + SELECTED_BGCOLOR + ', .' + CELL_SELECTED_BGCOLOR)); _i < _a.length; _i++) {
|
|
26118
26159
|
var ele_2 = _a[_i];
|
|
26119
26160
|
// if (Number((ele as HTMLElement).getAttribute('index')) !== rowIndex) {
|
|
@@ -26351,7 +26392,7 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
|
|
|
26351
26392
|
_this_1.clonedReport = _this_1.clonedReport ? _this_1.clonedReport : dataSourceSettings;
|
|
26352
26393
|
}
|
|
26353
26394
|
if (_this_1.dataSourceSettings.mode !== 'Server') {
|
|
26354
|
-
_this_1.engineModule.renderEngine(_this_1.dataSourceSettings, customProperties, _this_1.getValueCellInfo.bind(_this_1), _this_1.getHeaderSortInfo.bind(_this_1));
|
|
26395
|
+
_this_1.engineModule.renderEngine(_this_1.dataSourceSettings, customProperties, _this_1.aggregateCellInfo ? _this_1.getValueCellInfo.bind(_this_1) : undefined, _this_1.onHeadersSort ? _this_1.getHeaderSortInfo.bind(_this_1) : undefined);
|
|
26355
26396
|
}
|
|
26356
26397
|
_this_1.allowServerDataBinding = false;
|
|
26357
26398
|
_this_1.setProperties({ pivotValues: _this_1.engineModule.pivotValues }, true);
|
|
@@ -26362,7 +26403,7 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
|
|
|
26362
26403
|
else if (_this_1.dataSourceSettings.providerType === 'SSAS' && _this_1.dataType === 'olap') {
|
|
26363
26404
|
customProperties.savedFieldList = _this_1.olapEngineModule.fieldList;
|
|
26364
26405
|
customProperties.savedFieldListData = _this_1.olapEngineModule.fieldListData;
|
|
26365
|
-
_this_1.olapEngineModule.renderEngine(_this_1.dataSourceSettings, customProperties, _this_1.getHeaderSortInfo.bind(_this_1));
|
|
26406
|
+
_this_1.olapEngineModule.renderEngine(_this_1.dataSourceSettings, customProperties, _this_1.onHeadersSort ? _this_1.getHeaderSortInfo.bind(_this_1) : undefined);
|
|
26366
26407
|
_this_1.allowServerDataBinding = false;
|
|
26367
26408
|
_this_1.setProperties({ pivotValues: _this_1.olapEngineModule.pivotValues }, true);
|
|
26368
26409
|
delete _this_1.bulkChanges.pivotValues;
|
|
@@ -26843,7 +26884,8 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
|
|
|
26843
26884
|
: this.actionObj.actionName == removeRecord ? recordRemoved : (this.actionObj.actionName == pngExport) ? pngExported : (this.actionObj.actionName == jpegExport) ? jpegExported
|
|
26844
26885
|
: (this.actionObj.actionName == svgExport) ? svgExported : (this.actionObj.actionName == pdfExport) ? pdfExported : (this.actionObj.actionName == csvExport) ? csvExported : (this.actionObj.actionName == excelExport) ? excelExported : this.actionObj.actionName == windowResize ? windowResized
|
|
26845
26886
|
: this.actionObj.actionName == saveCurrentReport ? reportSaved : (this.actionObj.actionName == addNewReport) ? newReportAdded : (this.actionObj.actionName == saveAsCurrentReport) ? reportReSaved
|
|
26846
|
-
: (this.actionObj.actionName == renameCurrentReport) ? reportRenamed : this.actionObj.actionName
|
|
26887
|
+
: (this.actionObj.actionName == renameCurrentReport) ? reportRenamed : (this.actionObj.actionName == renameCurrentReport) ? reportRenamed : (this.actionObj.actionName == horizontalScroll) ? horizontalScrolled
|
|
26888
|
+
: (this.actionObj.actionName == verticalScroll) ? verticalScrolled : this.actionObj.actionName;
|
|
26847
26889
|
return actionName;
|
|
26848
26890
|
};
|
|
26849
26891
|
/* eslint-disable-next-line */
|
|
@@ -32489,7 +32531,7 @@ var PivotFieldList = /** @__PURE__ @class */ (function (_super) {
|
|
|
32489
32531
|
customProperties.enableValueSorting = _this.staticPivotGridModule ?
|
|
32490
32532
|
_this.staticPivotGridModule.enableValueSorting : _this.enableValueSorting;
|
|
32491
32533
|
if (_this.dataSourceSettings.mode !== 'Server') {
|
|
32492
|
-
_this.engineModule.renderEngine(_this.dataSourceSettings, customProperties, _this.getValueCellInfo.bind(_this), _this.getHeaderSortInfo.bind(_this));
|
|
32534
|
+
_this.engineModule.renderEngine(_this.dataSourceSettings, customProperties, _this.aggregateCellInfo ? _this.getValueCellInfo.bind(_this) : undefined, _this.onHeadersSort ? _this.getHeaderSortInfo.bind(_this) : undefined);
|
|
32493
32535
|
}
|
|
32494
32536
|
_this.pivotFieldList = _this.engineModule.fieldList;
|
|
32495
32537
|
var eventArgs = {
|
|
@@ -32505,7 +32547,7 @@ var PivotFieldList = /** @__PURE__ @class */ (function (_super) {
|
|
|
32505
32547
|
});
|
|
32506
32548
|
}
|
|
32507
32549
|
else if (_this.dataType === 'olap') {
|
|
32508
|
-
_this.olapEngineModule.renderEngine(_this.dataSourceSettings, _this.frameCustomProperties(_this.olapEngineModule.fieldListData, _this.olapEngineModule.fieldList), _this.getHeaderSortInfo.bind(_this));
|
|
32550
|
+
_this.olapEngineModule.renderEngine(_this.dataSourceSettings, _this.frameCustomProperties(_this.olapEngineModule.fieldListData, _this.olapEngineModule.fieldList), _this.onHeadersSort ? _this.getHeaderSortInfo.bind(_this) : undefined);
|
|
32509
32551
|
_this.pivotFieldList = _this.olapEngineModule.fieldList;
|
|
32510
32552
|
var eventArgs = {
|
|
32511
32553
|
pivotFieldList: _this.pivotFieldList,
|
|
@@ -32583,10 +32625,10 @@ var PivotFieldList = /** @__PURE__ @class */ (function (_super) {
|
|
|
32583
32625
|
this.fieldListSpinnerElement = this.element.querySelector('.e-pivotfieldlist-container');
|
|
32584
32626
|
}
|
|
32585
32627
|
if (this.spinnerTemplate) {
|
|
32586
|
-
createSpinner({ target: this.fieldListSpinnerElement, template: this.spinnerTemplate }, this.createElement);
|
|
32628
|
+
createSpinner({ target: this.fieldListSpinnerElement, template: this.spinnerTemplate, cssClass: this.cssClass ? this.cssClass : undefined }, this.createElement);
|
|
32587
32629
|
}
|
|
32588
32630
|
else {
|
|
32589
|
-
createSpinner({ target: this.fieldListSpinnerElement }, this.createElement);
|
|
32631
|
+
createSpinner({ target: this.fieldListSpinnerElement, cssClass: this.cssClass ? this.cssClass : undefined }, this.createElement);
|
|
32590
32632
|
}
|
|
32591
32633
|
var args;
|
|
32592
32634
|
args = {
|
|
@@ -32745,7 +32787,7 @@ var PivotFieldList = /** @__PURE__ @class */ (function (_super) {
|
|
|
32745
32787
|
pivot.lastFilterInfo = {};
|
|
32746
32788
|
}
|
|
32747
32789
|
else {
|
|
32748
|
-
pivot.engineModule.renderEngine(pivot.dataSourceSettings, customProperties, pivot.getValueCellInfo.bind(pivot), pivot.getHeaderSortInfo.bind(pivot));
|
|
32790
|
+
pivot.engineModule.renderEngine(pivot.dataSourceSettings, customProperties, pivot.aggregateCellInfo ? pivot.getValueCellInfo.bind(pivot) : undefined, pivot.onHeadersSort ? pivot.getHeaderSortInfo.bind(pivot) : undefined);
|
|
32749
32791
|
}
|
|
32750
32792
|
}
|
|
32751
32793
|
}
|
|
@@ -32843,7 +32885,7 @@ var PivotFieldList = /** @__PURE__ @class */ (function (_super) {
|
|
|
32843
32885
|
}
|
|
32844
32886
|
}
|
|
32845
32887
|
else {
|
|
32846
|
-
pivot.olapEngineModule.renderEngine(pivot.dataSourceSettings, customProperties, pivot.getHeaderSortInfo.bind(pivot));
|
|
32888
|
+
pivot.olapEngineModule.renderEngine(pivot.dataSourceSettings, customProperties, pivot.onHeadersSort ? pivot.getHeaderSortInfo.bind(pivot) : undefined);
|
|
32847
32889
|
}
|
|
32848
32890
|
pivot.lastSortInfo = {};
|
|
32849
32891
|
pivot.lastAggregationInfo = {};
|
|
@@ -39757,5 +39799,5 @@ var Grouping = /** @__PURE__ @class */ (function () {
|
|
|
39757
39799
|
* Export PivotGrid components
|
|
39758
39800
|
*/
|
|
39759
39801
|
|
|
39760
|
-
export { GroupingBarSettings, CellEditSettings, ConditionalSettings, HyperlinkSettings, DisplayOption, PivotView, Render, ExcelExport$1 as ExcelExport, PDFExport, KeyboardInteraction, VirtualScroll$1 as VirtualScroll, DrillThrough, PivotChart, PivotFieldList, TreeViewRenderer, AxisFieldRenderer, AxisTableRenderer, DialogRenderer, EventBase, NodeStateModified, DataSourceUpdate, FieldList, CommonKeyboardInteraction, Common, GroupingBar, CalculatedField, ConditionalFormatting, PivotCommon, load, enginePopulating, enginePopulated, onFieldDropped, fieldDrop, beforePivotTableRender, afterPivotTableRender, beforeExport, excelHeaderQueryCellInfo, pdfHeaderQueryCellInfo, excelQueryCellInfo, pdfQueryCellInfo, onPdfCellRender, dataBound, queryCellInfo, headerCellInfo, hyperlinkCellClick, resizing, resizeStop, cellClick, drillThrough, beforeColumnsRender, selected, cellSelecting, drill, cellSelected, cellDeselected, rowSelected, rowDeselected, beginDrillThrough, editCompleted, multiLevelLabelClick, saveReport, fetchReport, loadReport, renameReport, removeReport, newReport, toolbarRender, toolbarClick, chartTooltipRender, chartLoaded, chartLoad, chartResized, chartAxisLabelRender, chartSeriesCreated, aggregateCellInfo, onHeadersSort, contextMenuClick, contextMenuOpen, fieldListRefreshed, conditionalFormatting, beforePdfExport, beforeExcelExport, memberFiltering, calculatedFieldCreate, memberEditorOpen, fieldRemove, numberFormatting, aggregateMenuOpen, fieldDragStart, chartPointClick, beforeServiceInvoke, actionBegin, actionComplete, actionFailure, initialLoad, uiUpdate, scroll, contentReady, dataReady, initSubComponent, treeViewUpdate, pivotButtonUpdate, initCalculatedField, click, initToolbar, initFormatting, initGrouping, sortValue, drillUp, drillDown, addNewReport, saveCurrentReport, saveAsCurrentReport, renameCurrentReport, removeCurrentReport, loadReports, openConditionalFormatting, openNumberFormatting, MdxQuery, showFieldList, tableView, chartView, multipleAxis, showLegend, pdfExport, pngExport, excelExport, csvExport, jpegExport, svgExport, hideSubTotals, subTotalsRow, subTotalsColumn, showSubTotals, hideGrandTotals, grandTotalsRow, grandTotalsColumn, showGrandTotals, numberFormattingMenu, conditionalFormattingMenu, reportChange, sortFieldTree, editCalculatedField, sortField, filterField, removeField, openCalculatedField, editRecord, saveEditedRecords, addNewRecord, removeRecord, aggregateField, contextMenuCalculatedField, windowResize, calculatedFieldApplied, editedRecordsSaved, newRecordAdded, recordRemoved, closeFieldlist, fieldTreeSorted, reportSaved, newReportAdded, reportReSaved, reportRenamed, reportRemoved, excelExported, csvExported, pdfExported, pngExported, jpegExported, svgExported, conditionallyFormatted, numberFormatted, tableViewed, chartViewed, subTotalsHidden, subTotalsRowShown, subTotalsColumnShown, subTotalsShown, grandTotalsHidden, grandTotalsRowShown, grandTotalsColumnShown, grandTotalsShown, valueSorted, calculatedFieldEdited, fieldSorted, fieldFiltered, fieldRemoved, fieldAggregated, recordEdited, reportChanged, windowResized, recordUpdated, drillThroughClosed, Theme, ErrorDialog, FilterDialog, PivotContextMenu, AggregateMenu, Toolbar$2 as Toolbar, NumberFormatting, Grouping, PivotEngine, PivotUtil, OlapEngine, MDXQuery };
|
|
39802
|
+
export { GroupingBarSettings, CellEditSettings, ConditionalSettings, HyperlinkSettings, DisplayOption, PivotView, Render, ExcelExport$1 as ExcelExport, PDFExport, KeyboardInteraction, VirtualScroll$1 as VirtualScroll, DrillThrough, PivotChart, PivotFieldList, TreeViewRenderer, AxisFieldRenderer, AxisTableRenderer, DialogRenderer, EventBase, NodeStateModified, DataSourceUpdate, FieldList, CommonKeyboardInteraction, Common, GroupingBar, CalculatedField, ConditionalFormatting, PivotCommon, load, enginePopulating, enginePopulated, onFieldDropped, fieldDrop, beforePivotTableRender, afterPivotTableRender, beforeExport, excelHeaderQueryCellInfo, pdfHeaderQueryCellInfo, excelQueryCellInfo, pdfQueryCellInfo, onPdfCellRender, dataBound, queryCellInfo, headerCellInfo, hyperlinkCellClick, resizing, resizeStop, cellClick, drillThrough, beforeColumnsRender, selected, cellSelecting, drill, cellSelected, cellDeselected, rowSelected, rowDeselected, beginDrillThrough, editCompleted, multiLevelLabelClick, saveReport, fetchReport, loadReport, renameReport, removeReport, newReport, toolbarRender, toolbarClick, chartTooltipRender, chartLoaded, chartLoad, chartResized, chartAxisLabelRender, chartSeriesCreated, aggregateCellInfo, onHeadersSort, contextMenuClick, contextMenuOpen, fieldListRefreshed, conditionalFormatting, beforePdfExport, beforeExcelExport, memberFiltering, calculatedFieldCreate, memberEditorOpen, fieldRemove, numberFormatting, aggregateMenuOpen, fieldDragStart, chartPointClick, beforeServiceInvoke, actionBegin, actionComplete, actionFailure, initialLoad, uiUpdate, scroll, verticalScroll, horizontalScroll, contentReady, dataReady, initSubComponent, treeViewUpdate, pivotButtonUpdate, initCalculatedField, click, initToolbar, initFormatting, initGrouping, sortValue, drillUp, drillDown, addNewReport, saveCurrentReport, saveAsCurrentReport, renameCurrentReport, removeCurrentReport, loadReports, openConditionalFormatting, openNumberFormatting, MdxQuery, showFieldList, tableView, chartView, multipleAxis, showLegend, pdfExport, pngExport, excelExport, csvExport, jpegExport, svgExport, hideSubTotals, subTotalsRow, subTotalsColumn, showSubTotals, hideGrandTotals, grandTotalsRow, grandTotalsColumn, showGrandTotals, numberFormattingMenu, conditionalFormattingMenu, reportChange, sortFieldTree, editCalculatedField, sortField, filterField, removeField, openCalculatedField, editRecord, saveEditedRecords, addNewRecord, removeRecord, aggregateField, contextMenuCalculatedField, windowResize, calculatedFieldApplied, editedRecordsSaved, newRecordAdded, recordRemoved, closeFieldlist, fieldTreeSorted, reportSaved, newReportAdded, reportReSaved, reportRenamed, reportRemoved, excelExported, csvExported, pdfExported, pngExported, jpegExported, svgExported, conditionallyFormatted, numberFormatted, tableViewed, chartViewed, subTotalsHidden, subTotalsRowShown, subTotalsColumnShown, subTotalsShown, grandTotalsHidden, grandTotalsRowShown, grandTotalsColumnShown, grandTotalsShown, valueSorted, calculatedFieldEdited, fieldSorted, fieldFiltered, fieldRemoved, fieldAggregated, recordEdited, reportChanged, windowResized, recordUpdated, drillThroughClosed, verticalScrolled, horizontalScrolled, Theme, ErrorDialog, FilterDialog, PivotContextMenu, AggregateMenu, Toolbar$2 as Toolbar, NumberFormatting, Grouping, PivotEngine, PivotUtil, OlapEngine, MDXQuery };
|
|
39761
39803
|
//# sourceMappingURL=ej2-pivotview.es5.js.map
|