@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
|
@@ -2543,7 +2543,7 @@ class PivotEngine {
|
|
|
2543
2543
|
row: rows[i],
|
|
2544
2544
|
column: columns,
|
|
2545
2545
|
value: value,
|
|
2546
|
-
cellSets: this.getCellSet(this.rawIndexObject),
|
|
2546
|
+
cellSets: this.getValueCellInfo ? this.getCellSet(this.rawIndexObject) : [],
|
|
2547
2547
|
rowCellType: (rows[i].hasChild && rows[i].isDrilled ? 'subTotal' : rows[i].type === 'grand sum' ? 'grandTotal' : 'value'),
|
|
2548
2548
|
columnCellType: (columns.hasChild && columns.isDrilled ? 'subTotal' : columns.type === 'grand sum' ? 'grandTotal' : 'value'),
|
|
2549
2549
|
aggregateType: aggregate,
|
|
@@ -3443,7 +3443,7 @@ class PivotEngine {
|
|
|
3443
3443
|
PivotUtil.applyHeadersSort(sortMembersOrder, sortOrder, type);
|
|
3444
3444
|
isHeaderSortByDefault = true;
|
|
3445
3445
|
}
|
|
3446
|
-
if (isHeaderSortByDefault) {
|
|
3446
|
+
if (isHeaderSortByDefault && this.getHeaderSortInfo) {
|
|
3447
3447
|
let copyOrder = [];
|
|
3448
3448
|
for (let m = 0, n = 0; m < sortMembersOrder.length; m++) {
|
|
3449
3449
|
let member = sortMembersOrder[m];
|
|
@@ -3577,7 +3577,7 @@ class PivotEngine {
|
|
|
3577
3577
|
row: header,
|
|
3578
3578
|
column: member,
|
|
3579
3579
|
value: value,
|
|
3580
|
-
cellSets: this.getCellSet(this.rawIndexObject),
|
|
3580
|
+
cellSets: this.getValueCellInfo ? this.getCellSet(this.rawIndexObject) : [],
|
|
3581
3581
|
rowCellType: (header.hasChild && header.isDrilled ? 'subTotal' : header.type === 'grand sum' ? 'grandTotal' : 'value'),
|
|
3582
3582
|
columnCellType: (member.hasChild && member.isDrilled ? 'subTotal' : member.type === 'grand sum' ? 'grandTotal' : 'value'),
|
|
3583
3583
|
aggregateType: mType,
|
|
@@ -5133,7 +5133,7 @@ class PivotEngine {
|
|
|
5133
5133
|
row: rows[rln],
|
|
5134
5134
|
column: columns[cln],
|
|
5135
5135
|
value: value,
|
|
5136
|
-
cellSets: this.getCellSet(this.rawIndexObject),
|
|
5136
|
+
cellSets: this.getValueCellInfo ? this.getCellSet(this.rawIndexObject) : [],
|
|
5137
5137
|
rowCellType: (rows[rln].hasChild && rows[rln].isDrilled ? 'subTotal' : rows[rln].type === 'grand sum' ? 'grandTotal' : 'value'),
|
|
5138
5138
|
columnCellType: (columns[cln].hasChild && columns[cln].isDrilled ? 'subTotal' : columns[cln].type === 'grand sum' ? 'grandTotal' : 'value'),
|
|
5139
5139
|
aggregateType: aggregate,
|
|
@@ -5968,6 +5968,10 @@ const uiUpdate = 'ui-update';
|
|
|
5968
5968
|
/** @hidden */
|
|
5969
5969
|
const scroll = 'scroll';
|
|
5970
5970
|
/** @hidden */
|
|
5971
|
+
const verticalScroll = 'vertical-scroll';
|
|
5972
|
+
/** @hidden */
|
|
5973
|
+
const horizontalScroll = 'horizontal-scroll';
|
|
5974
|
+
/** @hidden */
|
|
5971
5975
|
const contentReady = 'content-ready';
|
|
5972
5976
|
/** @hidden */
|
|
5973
5977
|
const dataReady = 'data-ready';
|
|
@@ -6167,6 +6171,10 @@ const windowResized = 'Window resized';
|
|
|
6167
6171
|
const recordUpdated = 'Records updated';
|
|
6168
6172
|
/** @hidden */
|
|
6169
6173
|
const drillThroughClosed = 'Drill-through closed';
|
|
6174
|
+
/** @hidden */
|
|
6175
|
+
const verticalScrolled = 'Vertically scrolled';
|
|
6176
|
+
/** @hidden */
|
|
6177
|
+
const horizontalScrolled = 'Horizontally scrolled';
|
|
6170
6178
|
|
|
6171
6179
|
/**
|
|
6172
6180
|
* CSS Constants
|
|
@@ -13443,6 +13451,9 @@ class VirtualScroll$1 {
|
|
|
13443
13451
|
update(mHdr, mCont, top, left, e) {
|
|
13444
13452
|
this.parent.isScrolling = true;
|
|
13445
13453
|
let engine = this.parent.dataType === 'pivot' ? this.parent.engineModule : this.parent.olapEngineModule;
|
|
13454
|
+
let args = {
|
|
13455
|
+
dataSourceSettings: PivotUtil.getClonedDataSourceSettings(this.parent.dataSourceSettings)
|
|
13456
|
+
};
|
|
13446
13457
|
if (this.parent.pageSettings && engine.pageSettings) {
|
|
13447
13458
|
if (this.direction === 'vertical') {
|
|
13448
13459
|
let rowValues = this.parent.dataType === 'pivot' ?
|
|
@@ -13454,24 +13465,28 @@ class VirtualScroll$1 {
|
|
|
13454
13465
|
// this.parent.hideWaitingPopup();
|
|
13455
13466
|
return;
|
|
13456
13467
|
}
|
|
13468
|
+
this.parent.actionObj.actionName = verticalScroll;
|
|
13469
|
+
this.parent.actionBeginMethod();
|
|
13457
13470
|
this.parent.showWaitingPopup();
|
|
13458
13471
|
this.parent.scrollPosObject.vertical = section;
|
|
13459
13472
|
engine.pageSettings.rowCurrentPage = section > 1 ? section : 1;
|
|
13460
13473
|
let rowStartPos = 0;
|
|
13461
|
-
|
|
13462
|
-
if (this.parent.
|
|
13463
|
-
this.parent.
|
|
13474
|
+
this.parent.trigger(enginePopulating, args, (observedArgs) => {
|
|
13475
|
+
if (this.parent.dataType === 'pivot') {
|
|
13476
|
+
if (this.parent.dataSourceSettings.mode === 'Server') {
|
|
13477
|
+
this.parent.getEngine('onScroll', null, null, null, null, null, null);
|
|
13478
|
+
}
|
|
13479
|
+
else {
|
|
13480
|
+
this.parent.engineModule.generateGridData(this.parent.dataSourceSettings, true, this.parent.engineModule.headerCollection);
|
|
13481
|
+
rowStartPos = this.parent.engineModule.rowStartPos;
|
|
13482
|
+
}
|
|
13464
13483
|
}
|
|
13465
13484
|
else {
|
|
13466
|
-
this.parent.
|
|
13467
|
-
rowStartPos = this.parent.
|
|
13485
|
+
this.parent.olapEngineModule.scrollPage('scroll');
|
|
13486
|
+
rowStartPos = this.parent.olapEngineModule.pageRowStartPos;
|
|
13468
13487
|
}
|
|
13469
|
-
|
|
13470
|
-
|
|
13471
|
-
this.parent.olapEngineModule.scrollPage('scroll');
|
|
13472
|
-
rowStartPos = this.parent.olapEngineModule.pageRowStartPos;
|
|
13473
|
-
}
|
|
13474
|
-
this.parent.pivotValues = engine.pivotValues;
|
|
13488
|
+
this.enginePopulatedEventMethod(engine);
|
|
13489
|
+
});
|
|
13475
13490
|
let exactPage = Math.ceil(rowStartPos / (this.parent.pageSettings.rowSize * rowValues));
|
|
13476
13491
|
let pos = exactSize * exactPage -
|
|
13477
13492
|
(engine.rowFirstLvl * rowValues * this.parent.gridSettings.rowHeight);
|
|
@@ -13487,32 +13502,50 @@ class VirtualScroll$1 {
|
|
|
13487
13502
|
// this.parent.hideWaitingPopup();
|
|
13488
13503
|
return;
|
|
13489
13504
|
}
|
|
13505
|
+
this.parent.actionObj.actionName = horizontalScroll;
|
|
13506
|
+
this.parent.actionBeginMethod();
|
|
13490
13507
|
this.parent.showWaitingPopup();
|
|
13491
13508
|
let pivot = this.parent;
|
|
13492
13509
|
pivot.scrollPosObject.horizontal = section;
|
|
13493
13510
|
engine.pageSettings.columnCurrentPage = section > 1 ? section : 1;
|
|
13494
13511
|
let colStartPos = 0;
|
|
13495
|
-
|
|
13496
|
-
if (
|
|
13497
|
-
this.parent.
|
|
13512
|
+
this.parent.trigger(enginePopulating, args, (observedArgs) => {
|
|
13513
|
+
if (pivot.dataType === 'pivot') {
|
|
13514
|
+
if (this.parent.dataSourceSettings.mode === 'Server') {
|
|
13515
|
+
this.parent.getEngine('onScroll', null, null, null, null, null, null);
|
|
13516
|
+
}
|
|
13517
|
+
else {
|
|
13518
|
+
pivot.engineModule.generateGridData(pivot.dataSourceSettings, true, pivot.engineModule.headerCollection);
|
|
13519
|
+
colStartPos = pivot.engineModule.colStartPos;
|
|
13520
|
+
}
|
|
13498
13521
|
}
|
|
13499
13522
|
else {
|
|
13500
|
-
pivot.
|
|
13501
|
-
colStartPos = pivot.
|
|
13523
|
+
pivot.olapEngineModule.scrollPage('scroll');
|
|
13524
|
+
colStartPos = pivot.olapEngineModule.pageColStartPos;
|
|
13502
13525
|
}
|
|
13503
|
-
|
|
13504
|
-
|
|
13505
|
-
pivot.olapEngineModule.scrollPage('scroll');
|
|
13506
|
-
colStartPos = pivot.olapEngineModule.pageColStartPos;
|
|
13507
|
-
}
|
|
13508
|
-
pivot.pivotValues = engine.pivotValues;
|
|
13526
|
+
this.enginePopulatedEventMethod(engine);
|
|
13527
|
+
});
|
|
13509
13528
|
let exactPage = Math.ceil(colStartPos / (pivot.pageSettings.columnSize * colValues));
|
|
13510
13529
|
let pos = exactSize * exactPage - (engine.colFirstLvl *
|
|
13511
13530
|
colValues * pivot.gridSettings.columnWidth);
|
|
13512
13531
|
pivot.scrollPosObject.horizontalSection = pos;
|
|
13513
13532
|
}
|
|
13533
|
+
this.parent.actionObj.actionName = this.parent.getActionCompleteName();
|
|
13534
|
+
if (this.parent.actionObj.actionName) {
|
|
13535
|
+
this.parent.actionCompleteMethod();
|
|
13536
|
+
}
|
|
13514
13537
|
}
|
|
13515
13538
|
}
|
|
13539
|
+
enginePopulatedEventMethod(engine, control) {
|
|
13540
|
+
let pivot = control ? control : this.parent;
|
|
13541
|
+
let eventArgs = {
|
|
13542
|
+
dataSourceSettings: pivot.dataSourceSettings,
|
|
13543
|
+
pivotValues: pivot.pivotValues
|
|
13544
|
+
};
|
|
13545
|
+
pivot.trigger(enginePopulated, eventArgs, (observedArgs) => {
|
|
13546
|
+
this.parent.pivotValues = engine.pivotValues;
|
|
13547
|
+
});
|
|
13548
|
+
}
|
|
13516
13549
|
setPageXY() {
|
|
13517
13550
|
return (e) => {
|
|
13518
13551
|
if (e.pointerType === 'mouse') {
|
|
@@ -20319,7 +20352,7 @@ class OlapEngine {
|
|
|
20319
20352
|
}
|
|
20320
20353
|
isHeaderSortByDefault = true;
|
|
20321
20354
|
}
|
|
20322
|
-
if (isHeaderSortByDefault) {
|
|
20355
|
+
if (isHeaderSortByDefault && this.getHeaderSortInfo) {
|
|
20323
20356
|
let copyOrder = [];
|
|
20324
20357
|
for (let m = 0, n = 0; m < headers.length; m++) {
|
|
20325
20358
|
if (headers[m].actualText !== 'Grand Total') {
|
|
@@ -20360,7 +20393,7 @@ class OlapEngine {
|
|
|
20360
20393
|
}
|
|
20361
20394
|
isHeaderSortByDefault = true;
|
|
20362
20395
|
}
|
|
20363
|
-
if (isHeaderSortByDefault) {
|
|
20396
|
+
if (isHeaderSortByDefault && this.getHeaderSortInfo) {
|
|
20364
20397
|
let copyOrder = [];
|
|
20365
20398
|
for (let m = 0, n = 0; m < keys.length; m++) {
|
|
20366
20399
|
if (keys[m] !== 'Grand Total') {
|
|
@@ -23376,10 +23409,10 @@ let PivotView = class PivotView extends Component {
|
|
|
23376
23409
|
this.cellTemplateFn = this.templateParser(this.cellTemplate);
|
|
23377
23410
|
this.tooltipTemplateFn = this.templateParser(this.tooltipTemplate);
|
|
23378
23411
|
if (this.spinnerTemplate) {
|
|
23379
|
-
createSpinner({ target: this.element, template: this.spinnerTemplate }, this.createElement);
|
|
23412
|
+
createSpinner({ target: this.element, template: this.spinnerTemplate, cssClass: this.cssClass ? this.cssClass : undefined }, this.createElement);
|
|
23380
23413
|
}
|
|
23381
23414
|
else {
|
|
23382
|
-
createSpinner({ target: this.element }, this.createElement);
|
|
23415
|
+
createSpinner({ target: this.element, cssClass: this.cssClass ? this.cssClass : undefined }, this.createElement);
|
|
23383
23416
|
}
|
|
23384
23417
|
let loadArgs = {
|
|
23385
23418
|
dataSourceSettings: this.dataSourceSettings,
|
|
@@ -24046,7 +24079,7 @@ let PivotView = class PivotView extends Component {
|
|
|
24046
24079
|
}
|
|
24047
24080
|
}
|
|
24048
24081
|
else {
|
|
24049
|
-
pivot.olapEngineModule.renderEngine(pivot.dataSourceSettings, customProperties, pivot.getHeaderSortInfo.bind(pivot));
|
|
24082
|
+
pivot.olapEngineModule.renderEngine(pivot.dataSourceSettings, customProperties, pivot.onHeadersSort ? pivot.getHeaderSortInfo.bind(pivot) : undefined);
|
|
24050
24083
|
}
|
|
24051
24084
|
pivot.allowServerDataBinding = false;
|
|
24052
24085
|
pivot.setProperties({ pivotValues: pivot.olapEngineModule.pivotValues }, true);
|
|
@@ -24087,7 +24120,7 @@ let PivotView = class PivotView extends Component {
|
|
|
24087
24120
|
pivot.lastFilterInfo = {};
|
|
24088
24121
|
}
|
|
24089
24122
|
else {
|
|
24090
|
-
pivot.engineModule.renderEngine(pivot.dataSourceSettings, customProperties, pivot.getValueCellInfo.bind(pivot), pivot.getHeaderSortInfo.bind(pivot));
|
|
24123
|
+
pivot.engineModule.renderEngine(pivot.dataSourceSettings, customProperties, pivot.aggregateCellInfo ? pivot.getValueCellInfo.bind(pivot) : undefined, pivot.onHeadersSort ? pivot.getHeaderSortInfo.bind(pivot) : undefined);
|
|
24091
24124
|
pivot.allowServerDataBinding = false;
|
|
24092
24125
|
pivot.setProperties({ pivotValues: pivot.engineModule.pivotValues }, true);
|
|
24093
24126
|
/* eslint-disable-next-line @typescript-eslint/no-explicit-any */
|
|
@@ -24923,6 +24956,9 @@ let PivotView = class PivotView extends Component {
|
|
|
24923
24956
|
this.lastCellClicked = e.target;
|
|
24924
24957
|
}
|
|
24925
24958
|
let target = e.target;
|
|
24959
|
+
if (closest(target, '.' + PIVOT_BUTTON_CLASS)) {
|
|
24960
|
+
return;
|
|
24961
|
+
}
|
|
24926
24962
|
let ele = null;
|
|
24927
24963
|
let axis = (target.parentElement.classList.contains(ROWSHEADER) || target.classList.contains(ROWSHEADER)) ? 'row' : 'column';
|
|
24928
24964
|
ele = axis === 'column' ? closest(target, 'th') : closest(target, 'td');
|
|
@@ -25349,6 +25385,9 @@ let PivotView = class PivotView extends Component {
|
|
|
25349
25385
|
this.getSelectedCellsPos();
|
|
25350
25386
|
});
|
|
25351
25387
|
}
|
|
25388
|
+
else {
|
|
25389
|
+
this.clearSelection(null, e, null, null);
|
|
25390
|
+
}
|
|
25352
25391
|
}
|
|
25353
25392
|
rowDeselect(ele, e, rowIndex, mode, observedArgs) {
|
|
25354
25393
|
if (!e.shiftKey && !e.ctrlKey && this.gridSettings.selectionSettings.mode !== 'Both' || this.gridSettings.selectionSettings.type === 'Single') {
|
|
@@ -25394,7 +25433,7 @@ let PivotView = class PivotView extends Component {
|
|
|
25394
25433
|
clearSelection(ele, e, colIndex, rowIndex) {
|
|
25395
25434
|
if ((!e.shiftKey && !e.ctrlKey) || this.gridSettings.selectionSettings.type === 'Single') {
|
|
25396
25435
|
if (this.gridSettings.selectionSettings.mode === 'Cell') {
|
|
25397
|
-
if (ele.classList.contains(COLUMNSHEADER)) {
|
|
25436
|
+
if (ele && ele.classList.contains(COLUMNSHEADER)) {
|
|
25398
25437
|
removeClass(this.element.querySelectorAll(('.' + ROW_CELL_CLASS + '.') + CELL_SELECTED_BGCOLOR), CELL_SELECTED_BGCOLOR);
|
|
25399
25438
|
}
|
|
25400
25439
|
else {
|
|
@@ -25402,7 +25441,7 @@ let PivotView = class PivotView extends Component {
|
|
|
25402
25441
|
}
|
|
25403
25442
|
}
|
|
25404
25443
|
else if (this.gridSettings.selectionSettings.mode === 'Both') {
|
|
25405
|
-
if (ele.classList.contains(ROW_CELL_CLASS)) {
|
|
25444
|
+
if (ele && ele.classList.contains(ROW_CELL_CLASS)) {
|
|
25406
25445
|
for (let ele of [].slice.call(this.element.querySelectorAll('.' + SELECTED_BGCOLOR + ', .' + CELL_SELECTED_BGCOLOR))) {
|
|
25407
25446
|
// if (Number((ele as HTMLElement).getAttribute('index')) !== rowIndex) {
|
|
25408
25447
|
removeClass([ele], [CELL_ACTIVE_BGCOLOR, SELECTED_BGCOLOR, CELL_SELECTED_BGCOLOR]);
|
|
@@ -25630,7 +25669,7 @@ let PivotView = class PivotView extends Component {
|
|
|
25630
25669
|
this.clonedReport = this.clonedReport ? this.clonedReport : dataSourceSettings;
|
|
25631
25670
|
}
|
|
25632
25671
|
if (this.dataSourceSettings.mode !== 'Server') {
|
|
25633
|
-
this.engineModule.renderEngine(this.dataSourceSettings, customProperties, this.getValueCellInfo.bind(this), this.getHeaderSortInfo.bind(this));
|
|
25672
|
+
this.engineModule.renderEngine(this.dataSourceSettings, customProperties, this.aggregateCellInfo ? this.getValueCellInfo.bind(this) : undefined, this.onHeadersSort ? this.getHeaderSortInfo.bind(this) : undefined);
|
|
25634
25673
|
}
|
|
25635
25674
|
this.allowServerDataBinding = false;
|
|
25636
25675
|
this.setProperties({ pivotValues: this.engineModule.pivotValues }, true);
|
|
@@ -25641,7 +25680,7 @@ let PivotView = class PivotView extends Component {
|
|
|
25641
25680
|
else if (this.dataSourceSettings.providerType === 'SSAS' && this.dataType === 'olap') {
|
|
25642
25681
|
customProperties.savedFieldList = this.olapEngineModule.fieldList;
|
|
25643
25682
|
customProperties.savedFieldListData = this.olapEngineModule.fieldListData;
|
|
25644
|
-
this.olapEngineModule.renderEngine(this.dataSourceSettings, customProperties, this.getHeaderSortInfo.bind(this));
|
|
25683
|
+
this.olapEngineModule.renderEngine(this.dataSourceSettings, customProperties, this.onHeadersSort ? this.getHeaderSortInfo.bind(this) : undefined);
|
|
25645
25684
|
this.allowServerDataBinding = false;
|
|
25646
25685
|
this.setProperties({ pivotValues: this.olapEngineModule.pivotValues }, true);
|
|
25647
25686
|
delete this.bulkChanges.pivotValues;
|
|
@@ -26121,7 +26160,8 @@ let PivotView = class PivotView extends Component {
|
|
|
26121
26160
|
: this.actionObj.actionName == removeRecord ? recordRemoved : (this.actionObj.actionName == pngExport) ? pngExported : (this.actionObj.actionName == jpegExport) ? jpegExported
|
|
26122
26161
|
: (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
|
|
26123
26162
|
: this.actionObj.actionName == saveCurrentReport ? reportSaved : (this.actionObj.actionName == addNewReport) ? newReportAdded : (this.actionObj.actionName == saveAsCurrentReport) ? reportReSaved
|
|
26124
|
-
: (this.actionObj.actionName == renameCurrentReport) ? reportRenamed : this.actionObj.actionName
|
|
26163
|
+
: (this.actionObj.actionName == renameCurrentReport) ? reportRenamed : (this.actionObj.actionName == renameCurrentReport) ? reportRenamed : (this.actionObj.actionName == horizontalScroll) ? horizontalScrolled
|
|
26164
|
+
: (this.actionObj.actionName == verticalScroll) ? verticalScrolled : this.actionObj.actionName;
|
|
26125
26165
|
return actionName;
|
|
26126
26166
|
}
|
|
26127
26167
|
/* eslint-disable-next-line */
|
|
@@ -31687,7 +31727,7 @@ let PivotFieldList = class PivotFieldList extends Component {
|
|
|
31687
31727
|
customProperties.enableValueSorting = this.staticPivotGridModule ?
|
|
31688
31728
|
this.staticPivotGridModule.enableValueSorting : this.enableValueSorting;
|
|
31689
31729
|
if (this.dataSourceSettings.mode !== 'Server') {
|
|
31690
|
-
this.engineModule.renderEngine(this.dataSourceSettings, customProperties, this.getValueCellInfo.bind(this), this.getHeaderSortInfo.bind(this));
|
|
31730
|
+
this.engineModule.renderEngine(this.dataSourceSettings, customProperties, this.aggregateCellInfo ? this.getValueCellInfo.bind(this) : undefined, this.onHeadersSort ? this.getHeaderSortInfo.bind(this) : undefined);
|
|
31691
31731
|
}
|
|
31692
31732
|
this.pivotFieldList = this.engineModule.fieldList;
|
|
31693
31733
|
let eventArgs = {
|
|
@@ -31703,7 +31743,7 @@ let PivotFieldList = class PivotFieldList extends Component {
|
|
|
31703
31743
|
});
|
|
31704
31744
|
}
|
|
31705
31745
|
else if (this.dataType === 'olap') {
|
|
31706
|
-
this.olapEngineModule.renderEngine(this.dataSourceSettings, this.frameCustomProperties(this.olapEngineModule.fieldListData, this.olapEngineModule.fieldList), this.getHeaderSortInfo.bind(this));
|
|
31746
|
+
this.olapEngineModule.renderEngine(this.dataSourceSettings, this.frameCustomProperties(this.olapEngineModule.fieldListData, this.olapEngineModule.fieldList), this.onHeadersSort ? this.getHeaderSortInfo.bind(this) : undefined);
|
|
31707
31747
|
this.pivotFieldList = this.olapEngineModule.fieldList;
|
|
31708
31748
|
let eventArgs = {
|
|
31709
31749
|
pivotFieldList: this.pivotFieldList,
|
|
@@ -31781,10 +31821,10 @@ let PivotFieldList = class PivotFieldList extends Component {
|
|
|
31781
31821
|
this.fieldListSpinnerElement = this.element.querySelector('.e-pivotfieldlist-container');
|
|
31782
31822
|
}
|
|
31783
31823
|
if (this.spinnerTemplate) {
|
|
31784
|
-
createSpinner({ target: this.fieldListSpinnerElement, template: this.spinnerTemplate }, this.createElement);
|
|
31824
|
+
createSpinner({ target: this.fieldListSpinnerElement, template: this.spinnerTemplate, cssClass: this.cssClass ? this.cssClass : undefined }, this.createElement);
|
|
31785
31825
|
}
|
|
31786
31826
|
else {
|
|
31787
|
-
createSpinner({ target: this.fieldListSpinnerElement }, this.createElement);
|
|
31827
|
+
createSpinner({ target: this.fieldListSpinnerElement, cssClass: this.cssClass ? this.cssClass : undefined }, this.createElement);
|
|
31788
31828
|
}
|
|
31789
31829
|
let args;
|
|
31790
31830
|
args = {
|
|
@@ -31942,7 +31982,7 @@ let PivotFieldList = class PivotFieldList extends Component {
|
|
|
31942
31982
|
pivot.lastFilterInfo = {};
|
|
31943
31983
|
}
|
|
31944
31984
|
else {
|
|
31945
|
-
pivot.engineModule.renderEngine(pivot.dataSourceSettings, customProperties, pivot.getValueCellInfo.bind(pivot), pivot.getHeaderSortInfo.bind(pivot));
|
|
31985
|
+
pivot.engineModule.renderEngine(pivot.dataSourceSettings, customProperties, pivot.aggregateCellInfo ? pivot.getValueCellInfo.bind(pivot) : undefined, pivot.onHeadersSort ? pivot.getHeaderSortInfo.bind(pivot) : undefined);
|
|
31946
31986
|
}
|
|
31947
31987
|
}
|
|
31948
31988
|
}
|
|
@@ -32039,7 +32079,7 @@ let PivotFieldList = class PivotFieldList extends Component {
|
|
|
32039
32079
|
}
|
|
32040
32080
|
}
|
|
32041
32081
|
else {
|
|
32042
|
-
pivot.olapEngineModule.renderEngine(pivot.dataSourceSettings, customProperties, pivot.getHeaderSortInfo.bind(pivot));
|
|
32082
|
+
pivot.olapEngineModule.renderEngine(pivot.dataSourceSettings, customProperties, pivot.onHeadersSort ? pivot.getHeaderSortInfo.bind(pivot) : undefined);
|
|
32043
32083
|
}
|
|
32044
32084
|
pivot.lastSortInfo = {};
|
|
32045
32085
|
pivot.lastAggregationInfo = {};
|
|
@@ -38885,5 +38925,5 @@ class Grouping {
|
|
|
38885
38925
|
* Export PivotGrid components
|
|
38886
38926
|
*/
|
|
38887
38927
|
|
|
38888
|
-
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 };
|
|
38928
|
+
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 };
|
|
38889
38929
|
//# sourceMappingURL=ej2-pivotview.es2015.js.map
|