@syncfusion/ej2-pivotview 20.2.36 → 20.2.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 +32 -1
- 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 +383 -294
- package/dist/es6/ej2-pivotview.es2015.js.map +1 -1
- package/dist/es6/ej2-pivotview.es5.js +397 -306
- 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 +11 -9
- package/src/base/olap/engine.js +2 -2
- package/src/common/base/constant.d.ts +10 -0
- package/src/common/base/constant.js +10 -0
- package/src/common/base/css-constant.d.ts +2 -4
- package/src/common/base/css-constant.js +3 -5
- package/src/common/base/interface.d.ts +11 -0
- package/src/common/calculatedfield/calculated-field.d.ts +3 -1
- package/src/common/calculatedfield/calculated-field.js +163 -168
- package/src/common/conditionalformatting/conditional-formatting.js +4 -3
- package/src/common/popups/grouping.js +2 -2
- package/src/common/popups/toolbar.js +6 -6
- package/src/pivotchart/base/pivotchart.js +32 -18
- package/src/pivotfieldlist/base/field-list.js +6 -6
- package/src/pivotview/actions/drill-through.js +1 -1
- package/src/pivotview/actions/excel-export.d.ts +1 -1
- package/src/pivotview/actions/excel-export.js +13 -4
- package/src/pivotview/actions/keyboard.js +6 -6
- package/src/pivotview/actions/pdf-export.d.ts +1 -1
- package/src/pivotview/actions/pdf-export.js +13 -2
- package/src/pivotview/actions/virtualscroll.d.ts +1 -0
- package/src/pivotview/actions/virtualscroll.js +61 -32
- package/src/pivotview/base/pivotview-model.d.ts +7 -2
- package/src/pivotview/base/pivotview.d.ts +6 -2
- package/src/pivotview/base/pivotview.js +41 -27
- package/src/pivotview/renderer/render.js +25 -15
- package/styles/bootstrap-dark.css +23 -21
- package/styles/bootstrap.css +23 -21
- package/styles/bootstrap4.css +23 -21
- package/styles/bootstrap5-dark.css +23 -21
- package/styles/bootstrap5.css +23 -21
- package/styles/fabric-dark.css +23 -21
- package/styles/fabric.css +23 -21
- package/styles/fluent-dark.css +24 -22
- package/styles/fluent.css +24 -22
- package/styles/highcontrast-light.css +23 -21
- package/styles/highcontrast.css +23 -21
- package/styles/material-dark.css +23 -21
- package/styles/material.css +23 -21
- package/styles/pivotfieldlist/_fluent-definition.scss +1 -1
- package/styles/pivotfieldlist/_fusionnew-definition.scss +1 -1
- package/styles/pivotfieldlist/_layout.scss +14 -10
- package/styles/pivotfieldlist/_material3-definition.scss +2 -1
- package/styles/pivotfieldlist/_tailwind-definition.scss +1 -1
- package/styles/pivotfieldlist/_theme.scss +1 -2
- package/styles/pivotfieldlist/bootstrap-dark.css +23 -21
- package/styles/pivotfieldlist/bootstrap.css +23 -21
- package/styles/pivotfieldlist/bootstrap4.css +23 -21
- package/styles/pivotfieldlist/bootstrap5-dark.css +23 -21
- package/styles/pivotfieldlist/bootstrap5.css +23 -21
- package/styles/pivotfieldlist/fabric-dark.css +23 -21
- package/styles/pivotfieldlist/fabric.css +23 -21
- package/styles/pivotfieldlist/fluent-dark.css +24 -22
- package/styles/pivotfieldlist/fluent.css +24 -22
- package/styles/pivotfieldlist/highcontrast-light.css +23 -21
- package/styles/pivotfieldlist/highcontrast.css +23 -21
- package/styles/pivotfieldlist/material-dark.css +23 -21
- package/styles/pivotfieldlist/material.css +23 -21
- package/styles/pivotfieldlist/tailwind-dark.css +24 -22
- package/styles/pivotfieldlist/tailwind.css +24 -22
- package/styles/tailwind-dark.css +24 -22
- package/styles/tailwind.css +24 -22
|
@@ -1354,7 +1354,7 @@ var PivotEngine = /** @__PURE__ @class */ (function () {
|
|
|
1354
1354
|
if (this_1.fields.indexOf(newFieldName) === -1) {
|
|
1355
1355
|
this_1.fields.push(newFieldName);
|
|
1356
1356
|
}
|
|
1357
|
-
item[this_1.fieldKeys[newFieldName]] = (isInRangeAvail ? undefined : new Date(newDate.setMonth(date.getMonth(),
|
|
1357
|
+
item[this_1.fieldKeys[newFieldName]] = (isInRangeAvail ? undefined : new Date(newDate.setMonth(date.getMonth(), 1)).toString());
|
|
1358
1358
|
}
|
|
1359
1359
|
break;
|
|
1360
1360
|
case 'Days':
|
|
@@ -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,
|
|
@@ -4885,8 +4885,9 @@ var PivotEngine = /** @__PURE__ @class */ (function () {
|
|
|
4885
4885
|
for (var _g = 0, indexCollection_2 = indexCollection; _g < indexCollection_2.length; _g++) {
|
|
4886
4886
|
var index = indexCollection_2[_g];
|
|
4887
4887
|
var currentSet = data[index[0]][index[1]];
|
|
4888
|
+
var actualValue = isNullOrUndefined(selectedRowValues[index[1]].actualValue) ? 0 : selectedRowValues[index[1]].actualValue;
|
|
4888
4889
|
// let cVal: number = currentSet.value - (selectedRowValues[index[1]] as IAxisSet).value;
|
|
4889
|
-
var cVal = currentSet.actualValue
|
|
4890
|
+
var cVal = (isNullOrUndefined(currentSet.actualValue) ? 0 : currentSet.actualValue) - actualValue;
|
|
4890
4891
|
cVal = isNaN(cVal) ? 0 : (currentSet.value === 0 && selectedRowValues[index[1]].value === 0) ? 0 : cVal;
|
|
4891
4892
|
if (!this.aggregatedValueMatrix[index[0]]) {
|
|
4892
4893
|
this.aggregatedValueMatrix[index[0]] = [];
|
|
@@ -4898,8 +4899,7 @@ var PivotEngine = /** @__PURE__ @class */ (function () {
|
|
|
4898
4899
|
else {
|
|
4899
4900
|
// cVal = ((selectedRowValues[index[1]] as IAxisSet).value === 0 ?
|
|
4900
4901
|
// 0 : (cVal / (selectedRowValues[index[1]] as IAxisSet).value));
|
|
4901
|
-
cVal = (
|
|
4902
|
-
0 : (cVal / selectedRowValues[index[1]].actualValue));
|
|
4902
|
+
cVal = (actualValue === 0 ? 0 : (cVal / actualValue));
|
|
4903
4903
|
this.aggregatedValueMatrix[index[0]][index[1]] = cVal;
|
|
4904
4904
|
currentSet.formattedText = currentSet.showSubTotals ? (cVal !== 0 ? this.globalize.formatNumber(cVal, { format: 'P', maximumFractionDigits: this.getPercentFormat(this.formatFields, currentSet.actualText) }) : this.emptyCellTextContent) : currentSet.formattedText;
|
|
4905
4905
|
}
|
|
@@ -5138,7 +5138,9 @@ var PivotEngine = /** @__PURE__ @class */ (function () {
|
|
|
5138
5138
|
activeColumn[cln].valueSort[item.valueSort.levelName] &&
|
|
5139
5139
|
currentSet.axis === 'value' && currentSet.actualText === name_3) {
|
|
5140
5140
|
if (activeColumn[cln].type !== 'grand sum') {
|
|
5141
|
-
|
|
5141
|
+
if (!isNullOrUndefined(currentSet.value)) {
|
|
5142
|
+
cVal += currentSet.value;
|
|
5143
|
+
}
|
|
5142
5144
|
currentSet.formattedText = subTotal ? '' : this.getFormattedValue(cVal, name_3).formattedText;
|
|
5143
5145
|
if (!this.aggregatedValueMatrix[rln]) {
|
|
5144
5146
|
this.aggregatedValueMatrix[rln] = [];
|
|
@@ -5254,7 +5256,7 @@ var PivotEngine = /** @__PURE__ @class */ (function () {
|
|
|
5254
5256
|
row: rows[rln],
|
|
5255
5257
|
column: columns[cln],
|
|
5256
5258
|
value: value,
|
|
5257
|
-
cellSets: this.getCellSet(this.rawIndexObject),
|
|
5259
|
+
cellSets: this.getValueCellInfo ? this.getCellSet(this.rawIndexObject) : [],
|
|
5258
5260
|
rowCellType: (rows[rln].hasChild && rows[rln].isDrilled ? 'subTotal' : rows[rln].type === 'grand sum' ? 'grandTotal' : 'value'),
|
|
5259
5261
|
columnCellType: (columns[cln].hasChild && columns[cln].isDrilled ? 'subTotal' : columns[cln].type === 'grand sum' ? 'grandTotal' : 'value'),
|
|
5260
5262
|
aggregateType: aggregate,
|
|
@@ -5968,6 +5970,8 @@ var afterPivotTableRender = 'afterPivotTableRender';
|
|
|
5968
5970
|
/** @hidden */
|
|
5969
5971
|
var beforeExport = 'beforeExport';
|
|
5970
5972
|
/** @hidden */
|
|
5973
|
+
var exportComplete = 'exportComplete';
|
|
5974
|
+
/** @hidden */
|
|
5971
5975
|
var excelHeaderQueryCellInfo = 'excelHeaderQueryCellInfo';
|
|
5972
5976
|
/** @hidden */
|
|
5973
5977
|
var pdfHeaderQueryCellInfo = 'pdfHeaderQueryCellInfo';
|
|
@@ -6093,6 +6097,10 @@ var uiUpdate = 'ui-update';
|
|
|
6093
6097
|
/** @hidden */
|
|
6094
6098
|
var scroll = 'scroll';
|
|
6095
6099
|
/** @hidden */
|
|
6100
|
+
var verticalScroll = 'vertical-scroll';
|
|
6101
|
+
/** @hidden */
|
|
6102
|
+
var horizontalScroll = 'horizontal-scroll';
|
|
6103
|
+
/** @hidden */
|
|
6096
6104
|
var contentReady = 'content-ready';
|
|
6097
6105
|
/** @hidden */
|
|
6098
6106
|
var dataReady = 'data-ready';
|
|
@@ -6292,6 +6300,10 @@ var windowResized = 'Window resized';
|
|
|
6292
6300
|
var recordUpdated = 'Records updated';
|
|
6293
6301
|
/** @hidden */
|
|
6294
6302
|
var drillThroughClosed = 'Drill-through closed';
|
|
6303
|
+
/** @hidden */
|
|
6304
|
+
var verticalScrolled = 'Vertically scrolled';
|
|
6305
|
+
/** @hidden */
|
|
6306
|
+
var horizontalScrolled = 'Horizontally scrolled';
|
|
6295
6307
|
|
|
6296
6308
|
/**
|
|
6297
6309
|
* CSS Constants
|
|
@@ -6636,13 +6648,11 @@ var CALC_FORMAT_INPUT = 'e-custom-format-input';
|
|
|
6636
6648
|
/** @hidden */
|
|
6637
6649
|
var CALCINPUTDIV = 'e-pivot-calc-input-div';
|
|
6638
6650
|
/** @hidden */
|
|
6639
|
-
var
|
|
6640
|
-
/** @hidden */
|
|
6641
|
-
var OLAP_CALC_CUSTOM_FORMAT_INPUTDIV = 'e-olap-calc-custom-format-div';
|
|
6651
|
+
var PIVOT_CALC_CUSTOM_FORMAT_INPUTDIV = 'e-pivot-calc-custom-format-div';
|
|
6642
6652
|
/** @hidden */
|
|
6643
6653
|
var CALC_HIERARCHY_LIST_DIV = 'e-olap-calc-hierarchy-list-div';
|
|
6644
6654
|
/** @hidden */
|
|
6645
|
-
var CALC_FORMAT_TYPE_DIV = 'e-
|
|
6655
|
+
var CALC_FORMAT_TYPE_DIV = 'e-pivot-calc-format-type-div';
|
|
6646
6656
|
/** @hidden */
|
|
6647
6657
|
var CALC_MEMBER_TYPE_DIV = 'e-olap-calc-member-type-div';
|
|
6648
6658
|
/** @hidden */
|
|
@@ -6712,7 +6722,7 @@ var PIVOT_FORMULA_TITLE_CLASS = 'e-pivot-formula-title';
|
|
|
6712
6722
|
/** @hidden */
|
|
6713
6723
|
var OLAP_HIERARCHY_TITLE_CLASS = 'e-olap-hierarchy-title';
|
|
6714
6724
|
/** @hidden */
|
|
6715
|
-
var
|
|
6725
|
+
var PIVOT_FORMAT_TITLE_CLASS = 'e-pivot-format-title';
|
|
6716
6726
|
/** @hidden */
|
|
6717
6727
|
var OLAP_MEMBER_TITLE_CLASS = 'e-olap-member-title';
|
|
6718
6728
|
/** @hidden */
|
|
@@ -7727,12 +7737,22 @@ var Render = /** @__PURE__ @class */ (function () {
|
|
|
7727
7737
|
this.parent.lastColumn.width = 'auto';
|
|
7728
7738
|
this.parent.lastColumn = undefined;
|
|
7729
7739
|
}
|
|
7740
|
+
var exportCompleteEventArgs = {
|
|
7741
|
+
type: 'PDF',
|
|
7742
|
+
promise: args.promise
|
|
7743
|
+
};
|
|
7744
|
+
this.parent.trigger(exportComplete, exportCompleteEventArgs);
|
|
7730
7745
|
};
|
|
7731
7746
|
Render.prototype.excelExportComplete = function (args) {
|
|
7732
7747
|
if (this.parent.lastColumn !== undefined && this.parent.lastColumn.width !== 'auto') {
|
|
7733
7748
|
this.parent.lastColumn.width = 'auto';
|
|
7734
7749
|
this.parent.lastColumn = undefined;
|
|
7735
7750
|
}
|
|
7751
|
+
var exportCompleteEventArgs = {
|
|
7752
|
+
type: 'Excel/CSV',
|
|
7753
|
+
promise: args.promise
|
|
7754
|
+
};
|
|
7755
|
+
this.parent.trigger(exportComplete, exportCompleteEventArgs);
|
|
7736
7756
|
};
|
|
7737
7757
|
/* eslint-enable */
|
|
7738
7758
|
Render.prototype.dataBound = function (args) {
|
|
@@ -7824,7 +7844,7 @@ var Render = /** @__PURE__ @class */ (function () {
|
|
|
7824
7844
|
isGroupElement = true;
|
|
7825
7845
|
}
|
|
7826
7846
|
var rowIndex = Number(elem.getAttribute('index'));
|
|
7827
|
-
var colIndex = Number(elem.getAttribute('
|
|
7847
|
+
var colIndex = Number(elem.getAttribute('data-colindex'));
|
|
7828
7848
|
var pivotValue1 = this_1.parent.pivotValues[rowIndex][colIndex];
|
|
7829
7849
|
var selectedID = item.id;
|
|
7830
7850
|
switch (selectedID) {
|
|
@@ -7896,7 +7916,7 @@ var Render = /** @__PURE__ @class */ (function () {
|
|
|
7896
7916
|
if (groupField && groupField.type === 'Custom' || (this_1.parent.engineModule.fieldList[fieldName].isCustomField && fieldName.indexOf('_custom_group') > -1)) {
|
|
7897
7917
|
groupField = PivotUtil.getFieldByName(fieldName.replace('_custom_group', ''), this_1.parent.dataSourceSettings.groupSettings);
|
|
7898
7918
|
if (groupField) {
|
|
7899
|
-
var cell = this_1.parent.engineModule.pivotValues[Number(elem.getAttribute('index'))][Number(elem.getAttribute('
|
|
7919
|
+
var cell = this_1.parent.engineModule.pivotValues[Number(elem.getAttribute('index'))][Number(elem.getAttribute('data-colindex'))];
|
|
7900
7920
|
var selectedCellsInfo = this_1.parent.groupingModule.getSelectedCells(cell.axis, fieldName, cell.actualText.toString());
|
|
7901
7921
|
selectedCellsInfo.push({ axis: cell.axis, fieldName: fieldName, name: cell.actualText.toString(), cellInfo: cell });
|
|
7902
7922
|
var selectedOptions = this_1.parent.groupingModule.getSelectedOptions(selectedCellsInfo);
|
|
@@ -8105,7 +8125,7 @@ var Render = /** @__PURE__ @class */ (function () {
|
|
|
8105
8125
|
ele = target.parentElement.parentElement;
|
|
8106
8126
|
}
|
|
8107
8127
|
var rowIndx = Number(ele.getAttribute('index'));
|
|
8108
|
-
var colIndx = Number(ele.getAttribute('
|
|
8128
|
+
var colIndx = Number(ele.getAttribute('data-colindex'));
|
|
8109
8129
|
var pivotValue = this.parent.pivotValues[rowIndx][colIndx];
|
|
8110
8130
|
var aggregateType;
|
|
8111
8131
|
if (args.item.id.indexOf(this.parent.element.id + '_Agg') > -1) {
|
|
@@ -8249,7 +8269,7 @@ var Render = /** @__PURE__ @class */ (function () {
|
|
|
8249
8269
|
var fieldName = target.getAttribute('fieldName');
|
|
8250
8270
|
if (!fieldName || fieldName == '') {
|
|
8251
8271
|
var rowIndx = Number(target.getAttribute('index'));
|
|
8252
|
-
var colIndx = Number(target.getAttribute('
|
|
8272
|
+
var colIndx = Number(target.getAttribute('data-colindex'));
|
|
8253
8273
|
fieldName = this.engine.pivotValues[rowIndx][colIndx].actualText;
|
|
8254
8274
|
}
|
|
8255
8275
|
var valuefields = this.parent.dataSourceSettings.values;
|
|
@@ -8437,7 +8457,7 @@ var Render = /** @__PURE__ @class */ (function () {
|
|
|
8437
8457
|
var selectedElements = this.parent.element.querySelectorAll('.' + CELL_SELECTED_BGCOLOR + ',.' + SELECTED_BGCOLOR);
|
|
8438
8458
|
for (var _i = 0, selectedElements_1 = selectedElements; _i < selectedElements_1.length; _i++) {
|
|
8439
8459
|
var element = selectedElements_1[_i];
|
|
8440
|
-
var colIndex = Number(element.getAttribute('
|
|
8460
|
+
var colIndex = Number(element.getAttribute('data-colindex'));
|
|
8441
8461
|
var rowIndex = Number(element.getAttribute('index'));
|
|
8442
8462
|
var cell = this.engine.pivotValues[rowIndex][colIndex];
|
|
8443
8463
|
if (cell) {
|
|
@@ -8480,7 +8500,7 @@ var Render = /** @__PURE__ @class */ (function () {
|
|
|
8480
8500
|
var isRowFieldsAvail = cell.valueSort && cell.valueSort.levelName === (this.parent.dataSourceSettings.rows.length === 0 && this.parent.dataSourceSettings.valueAxis === 'row' &&
|
|
8481
8501
|
this.parent.localeObj.getConstant('grandTotal') + (this.parent.dataSourceSettings.valueSortSettings.headerDelimiter) + (cell.formattedText));
|
|
8482
8502
|
tCell.setAttribute('index', cell.rowIndex ? cell.rowIndex.toString() : '0');
|
|
8483
|
-
if (tCell.getAttribute('
|
|
8503
|
+
if (tCell.getAttribute('data-colindex') === '0') {
|
|
8484
8504
|
if (this.parent.dataType === 'pivot') {
|
|
8485
8505
|
var isValueCell = cell.type && cell.type === 'value';
|
|
8486
8506
|
tCell.innerText = '';
|
|
@@ -8584,18 +8604,18 @@ var Render = /** @__PURE__ @class */ (function () {
|
|
|
8584
8604
|
var innerText = tCell.innerText;
|
|
8585
8605
|
tCell.innerText = '';
|
|
8586
8606
|
tCell.classList.add(VALUESCONTENT);
|
|
8587
|
-
cell = args.data[Number(tCell.getAttribute('
|
|
8607
|
+
cell = args.data[Number(tCell.getAttribute('data-colindex'))];
|
|
8588
8608
|
cell = isNullOrUndefined(cell) ? args.column.customAttributes.cell : cell;
|
|
8589
8609
|
cell.isGrandSum = isRowFieldsAvail ? true : cell.isGrandSum;
|
|
8590
8610
|
if (cell.isSum) {
|
|
8591
8611
|
tCell.classList.add(SUMMARY);
|
|
8592
8612
|
}
|
|
8593
8613
|
var isGrandSum = (isNullOrUndefined(cell.isGrandSum) && (!isNullOrUndefined(this.parent.olapEngineModule) && this.parent.olapEngineModule.olapValueAxis === 'column') && this.parent.dataType === 'olap' &&
|
|
8594
|
-
((this.colGrandPos - this.parent.dataSourceSettings.values.length) < Number(tCell.getAttribute('
|
|
8595
|
-
if (cell.isGrandSum || (isGrandSum || this.colGrandPos === Number(tCell.getAttribute('
|
|
8614
|
+
((this.colGrandPos - this.parent.dataSourceSettings.values.length) < Number(tCell.getAttribute('data-colindex'))));
|
|
8615
|
+
if (cell.isGrandSum || (isGrandSum || this.colGrandPos === Number(tCell.getAttribute('data-colindex'))) || this.rowGrandPos === Number(tCell.getAttribute('index'))) {
|
|
8596
8616
|
tCell.classList.add('e-gtot');
|
|
8597
8617
|
}
|
|
8598
|
-
else if (this.parent.dataType === 'olap' ? cell.isSum : this.validateColumnTotalcell(
|
|
8618
|
+
else if (this.parent.dataType === 'olap' ? cell.isSum : this.validateColumnTotalcell(cell.colIndex)) {
|
|
8599
8619
|
tCell.classList.add('e-colstot');
|
|
8600
8620
|
}
|
|
8601
8621
|
if (cell.cssClass) {
|
|
@@ -8608,12 +8628,12 @@ var Render = /** @__PURE__ @class */ (function () {
|
|
|
8608
8628
|
'<a data-url="' + innerText + '" class="e-hyperlinkcell ' + customClass + '">' + innerText + '</a>' : innerText)
|
|
8609
8629
|
}));
|
|
8610
8630
|
if (this.parent.gridSettings.allowReordering && !this.parent.showGroupingBar) {
|
|
8611
|
-
tCell.setAttribute('
|
|
8631
|
+
tCell.setAttribute('data-colindex', args.column.customAttributes.cell.colIndex.toString());
|
|
8612
8632
|
}
|
|
8613
8633
|
}
|
|
8614
8634
|
if (this.parent.cellTemplate) {
|
|
8615
8635
|
var index = tCell.getAttribute('index');
|
|
8616
|
-
var colindex = tCell.getAttribute('
|
|
8636
|
+
var colindex = tCell.getAttribute('data-colindex');
|
|
8617
8637
|
var element = this.parent.getCellTemplate()({ targetCell: tCell, cellInfo: cell }, this.parent, 'cellTemplate', this.parent.element.id + '_cellTemplate', null, null, tCell);
|
|
8618
8638
|
if (element && element !== '' && element.length > 0) {
|
|
8619
8639
|
if (this.parent.enableHtmlSanitizer) {
|
|
@@ -8782,7 +8802,7 @@ var Render = /** @__PURE__ @class */ (function () {
|
|
|
8782
8802
|
args.node.style.borderBottomWidth = '0px';
|
|
8783
8803
|
}
|
|
8784
8804
|
}
|
|
8785
|
-
args.node.setAttribute('
|
|
8805
|
+
args.node.setAttribute('data-colindex', cell.colIndex.toString());
|
|
8786
8806
|
args.node.setAttribute('index', cell.rowIndex.toString());
|
|
8787
8807
|
var fieldName = void 0;
|
|
8788
8808
|
if (this.parent.dataType === 'pivot') {
|
|
@@ -8873,7 +8893,7 @@ var Render = /** @__PURE__ @class */ (function () {
|
|
|
8873
8893
|
tCell = this.appendValueSortIcon(cell, tCell, cell.rowIndex, cell.colIndex);
|
|
8874
8894
|
if (this.parent.cellTemplate) {
|
|
8875
8895
|
var index = tCell.getAttribute('index');
|
|
8876
|
-
var colindex = tCell.getAttribute('
|
|
8896
|
+
var colindex = tCell.getAttribute('data-colindex');
|
|
8877
8897
|
this.parent.gridHeaderCellInfo.push({ targetCell: tCell });
|
|
8878
8898
|
}
|
|
8879
8899
|
var len = this.parent.dataSourceSettings.values.length;
|
|
@@ -8956,7 +8976,7 @@ var Render = /** @__PURE__ @class */ (function () {
|
|
|
8956
8976
|
cell = (cell.className.indexOf('e-headercelldiv') > -1 ? cell.parentElement : cell);
|
|
8957
8977
|
var args = {
|
|
8958
8978
|
currentCell: cell,
|
|
8959
|
-
data: this.engine.pivotValues[Number(cell.getAttribute('index'))][Number(cell.getAttribute('
|
|
8979
|
+
data: this.engine.pivotValues[Number(cell.getAttribute('index'))][Number(cell.getAttribute('data-colindex'))],
|
|
8960
8980
|
cancel: true,
|
|
8961
8981
|
nativeEvent: e
|
|
8962
8982
|
};
|
|
@@ -13377,7 +13397,7 @@ var KeyboardInteraction = /** @__PURE__ @class */ (function () {
|
|
|
13377
13397
|
if (this.parent.grid && this.parent.gridSettings.allowSelection && this.parent.gridSettings.selectionSettings.mode !== 'Row' &&
|
|
13378
13398
|
!target.classList.contains('e-numerictextbox')) {
|
|
13379
13399
|
var control_1 = this.parent;
|
|
13380
|
-
var colIndex_1 = Number(e.target.getAttribute('
|
|
13400
|
+
var colIndex_1 = Number(e.target.getAttribute('data-colindex'));
|
|
13381
13401
|
var rowIndex_1 = Number(e.target.getAttribute('index'));
|
|
13382
13402
|
var ele_1;
|
|
13383
13403
|
/* eslint-disable */
|
|
@@ -13387,7 +13407,7 @@ var KeyboardInteraction = /** @__PURE__ @class */ (function () {
|
|
|
13387
13407
|
control_1.renderModule.rowStartPos !== rowIndex_1)) ? null : this.getParentElement(control_1, ele_1, colIndex_1, rowIndex_1 - 1);
|
|
13388
13408
|
}
|
|
13389
13409
|
else if (e.action === 'shiftDown' || e.action === 'downArrow') {
|
|
13390
|
-
ele_1 = control_1.element.querySelector('th[
|
|
13410
|
+
ele_1 = control_1.element.querySelector('th[data-colindex="' + colIndex_1 + '"][index="' + (rowIndex_1 + 1) + '"]');
|
|
13391
13411
|
}
|
|
13392
13412
|
else if (e.action === 'shiftLeft' || e.action === 'leftArrow') {
|
|
13393
13413
|
ele_1 = e.target.previousSibling;
|
|
@@ -13398,7 +13418,7 @@ var KeyboardInteraction = /** @__PURE__ @class */ (function () {
|
|
|
13398
13418
|
}
|
|
13399
13419
|
if (!isNullOrUndefined(ele_1)) {
|
|
13400
13420
|
if (control_1.gridSettings.selectionSettings.mode === 'Both' ? !ele_1.classList.contains(ROW_CELL_CLASS) : true) {
|
|
13401
|
-
colIndex_1 = Number(ele_1.getAttribute('
|
|
13421
|
+
colIndex_1 = Number(ele_1.getAttribute('data-colindex'));
|
|
13402
13422
|
rowIndex_1 = Number(ele_1.getAttribute('index'));
|
|
13403
13423
|
var colSpan_1 = Number(ele_1.getAttribute('aria-colspan'));
|
|
13404
13424
|
control_1.clearSelection(ele_1, e, colIndex_1, rowIndex_1);
|
|
@@ -13420,11 +13440,11 @@ var KeyboardInteraction = /** @__PURE__ @class */ (function () {
|
|
|
13420
13440
|
}
|
|
13421
13441
|
else {
|
|
13422
13442
|
if (e.action === 'upArrow') {
|
|
13423
|
-
ele_1 = control_1.element.querySelector('[
|
|
13443
|
+
ele_1 = control_1.element.querySelector('[data-colindex="' + colIndex_1 + '"][index="' + (rowIndex_1 - 1) + '"]');
|
|
13424
13444
|
rowIndex_1--;
|
|
13425
13445
|
}
|
|
13426
13446
|
else if (e.action === 'downArrow') {
|
|
13427
|
-
ele_1 = control_1.element.querySelector('[
|
|
13447
|
+
ele_1 = control_1.element.querySelector('[data-colindex="' + colIndex_1 + '"][index="' + (rowIndex_1 + 1) + '"]');
|
|
13428
13448
|
rowIndex_1++;
|
|
13429
13449
|
}
|
|
13430
13450
|
if (!isNullOrUndefined(ele_1)) {
|
|
@@ -13454,7 +13474,7 @@ var KeyboardInteraction = /** @__PURE__ @class */ (function () {
|
|
|
13454
13474
|
};
|
|
13455
13475
|
KeyboardInteraction.prototype.getParentElement = function (control, ele, colIndex, rowIndex) {
|
|
13456
13476
|
while (!ele) {
|
|
13457
|
-
ele = control.element.querySelector('[
|
|
13477
|
+
ele = control.element.querySelector('[data-colindex="' + colIndex + '"][index="' + rowIndex + '"]');
|
|
13458
13478
|
colIndex--;
|
|
13459
13479
|
}
|
|
13460
13480
|
return ele;
|
|
@@ -13744,8 +13764,12 @@ var VirtualScroll$1 = /** @__PURE__ @class */ (function () {
|
|
|
13744
13764
|
};
|
|
13745
13765
|
};
|
|
13746
13766
|
VirtualScroll$$1.prototype.update = function (mHdr, mCont, top, left, e) {
|
|
13767
|
+
var _this = this;
|
|
13747
13768
|
this.parent.isScrolling = true;
|
|
13748
13769
|
var engine = this.parent.dataType === 'pivot' ? this.parent.engineModule : this.parent.olapEngineModule;
|
|
13770
|
+
var args = {
|
|
13771
|
+
dataSourceSettings: PivotUtil.getClonedDataSourceSettings(this.parent.dataSourceSettings)
|
|
13772
|
+
};
|
|
13749
13773
|
if (this.parent.pageSettings && engine.pageSettings) {
|
|
13750
13774
|
if (this.direction === 'vertical') {
|
|
13751
13775
|
var rowValues = this.parent.dataType === 'pivot' ?
|
|
@@ -13757,25 +13781,29 @@ var VirtualScroll$1 = /** @__PURE__ @class */ (function () {
|
|
|
13757
13781
|
// this.parent.hideWaitingPopup();
|
|
13758
13782
|
return;
|
|
13759
13783
|
}
|
|
13784
|
+
this.parent.actionObj.actionName = verticalScroll;
|
|
13785
|
+
this.parent.actionBeginMethod();
|
|
13760
13786
|
this.parent.showWaitingPopup();
|
|
13761
13787
|
this.parent.scrollPosObject.vertical = section;
|
|
13762
|
-
engine.pageSettings.rowCurrentPage = section > 1 ? section : 1;
|
|
13763
|
-
var
|
|
13764
|
-
|
|
13765
|
-
if (
|
|
13766
|
-
|
|
13788
|
+
this.parent.pageSettings.rowCurrentPage = engine.pageSettings.rowCurrentPage = section > 1 ? section : 1;
|
|
13789
|
+
var rowStartPos_1 = 0;
|
|
13790
|
+
this.parent.trigger(enginePopulating, args, function (observedArgs) {
|
|
13791
|
+
if (_this.parent.dataType === 'pivot') {
|
|
13792
|
+
if (_this.parent.dataSourceSettings.mode === 'Server') {
|
|
13793
|
+
_this.parent.getEngine('onScroll', null, null, null, null, null, null);
|
|
13794
|
+
}
|
|
13795
|
+
else {
|
|
13796
|
+
_this.parent.engineModule.generateGridData(_this.parent.dataSourceSettings, true, _this.parent.engineModule.headerCollection);
|
|
13797
|
+
rowStartPos_1 = _this.parent.engineModule.rowStartPos;
|
|
13798
|
+
}
|
|
13767
13799
|
}
|
|
13768
13800
|
else {
|
|
13769
|
-
|
|
13770
|
-
|
|
13801
|
+
_this.parent.olapEngineModule.scrollPage('scroll');
|
|
13802
|
+
rowStartPos_1 = _this.parent.olapEngineModule.pageRowStartPos;
|
|
13771
13803
|
}
|
|
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));
|
|
13804
|
+
_this.enginePopulatedEventMethod(engine);
|
|
13805
|
+
});
|
|
13806
|
+
var exactPage = Math.ceil(rowStartPos_1 / (this.parent.pageSettings.rowSize * rowValues));
|
|
13779
13807
|
var pos = exactSize * exactPage -
|
|
13780
13808
|
(engine.rowFirstLvl * rowValues * this.parent.gridSettings.rowHeight);
|
|
13781
13809
|
this.parent.scrollPosObject.verticalSection = pos;
|
|
@@ -13790,32 +13818,51 @@ var VirtualScroll$1 = /** @__PURE__ @class */ (function () {
|
|
|
13790
13818
|
// this.parent.hideWaitingPopup();
|
|
13791
13819
|
return;
|
|
13792
13820
|
}
|
|
13821
|
+
this.parent.actionObj.actionName = horizontalScroll;
|
|
13822
|
+
this.parent.actionBeginMethod();
|
|
13793
13823
|
this.parent.showWaitingPopup();
|
|
13794
|
-
var
|
|
13795
|
-
|
|
13796
|
-
engine.pageSettings.columnCurrentPage = section > 1 ? section : 1;
|
|
13797
|
-
var
|
|
13798
|
-
|
|
13799
|
-
if (
|
|
13800
|
-
|
|
13824
|
+
var pivot_1 = this.parent;
|
|
13825
|
+
pivot_1.scrollPosObject.horizontal = section;
|
|
13826
|
+
this.parent.pageSettings.columnCurrentPage = engine.pageSettings.columnCurrentPage = section > 1 ? section : 1;
|
|
13827
|
+
var colStartPos_1 = 0;
|
|
13828
|
+
this.parent.trigger(enginePopulating, args, function (observedArgs) {
|
|
13829
|
+
if (pivot_1.dataType === 'pivot') {
|
|
13830
|
+
if (_this.parent.dataSourceSettings.mode === 'Server') {
|
|
13831
|
+
_this.parent.getEngine('onScroll', null, null, null, null, null, null);
|
|
13832
|
+
}
|
|
13833
|
+
else {
|
|
13834
|
+
pivot_1.engineModule.generateGridData(pivot_1.dataSourceSettings, true, pivot_1.engineModule.headerCollection);
|
|
13835
|
+
colStartPos_1 = pivot_1.engineModule.colStartPos;
|
|
13836
|
+
}
|
|
13801
13837
|
}
|
|
13802
13838
|
else {
|
|
13803
|
-
|
|
13804
|
-
|
|
13839
|
+
pivot_1.olapEngineModule.scrollPage('scroll');
|
|
13840
|
+
colStartPos_1 = pivot_1.olapEngineModule.pageColStartPos;
|
|
13805
13841
|
}
|
|
13806
|
-
|
|
13807
|
-
|
|
13808
|
-
|
|
13809
|
-
colStartPos = pivot.olapEngineModule.pageColStartPos;
|
|
13810
|
-
}
|
|
13811
|
-
pivot.pivotValues = engine.pivotValues;
|
|
13812
|
-
var exactPage = Math.ceil(colStartPos / (pivot.pageSettings.columnSize * colValues));
|
|
13842
|
+
_this.enginePopulatedEventMethod(engine);
|
|
13843
|
+
});
|
|
13844
|
+
var exactPage = Math.ceil(colStartPos_1 / (pivot_1.pageSettings.columnSize * colValues));
|
|
13813
13845
|
var pos = exactSize * exactPage - (engine.colFirstLvl *
|
|
13814
|
-
colValues *
|
|
13815
|
-
|
|
13846
|
+
colValues * pivot_1.gridSettings.columnWidth);
|
|
13847
|
+
pivot_1.scrollPosObject.horizontalSection = pos;
|
|
13848
|
+
}
|
|
13849
|
+
this.parent.actionObj.actionName = this.parent.getActionCompleteName();
|
|
13850
|
+
if (this.parent.actionObj.actionName) {
|
|
13851
|
+
this.parent.actionCompleteMethod();
|
|
13816
13852
|
}
|
|
13817
13853
|
}
|
|
13818
13854
|
};
|
|
13855
|
+
VirtualScroll$$1.prototype.enginePopulatedEventMethod = function (engine, control) {
|
|
13856
|
+
var _this = this;
|
|
13857
|
+
var pivot = control ? control : this.parent;
|
|
13858
|
+
var eventArgs = {
|
|
13859
|
+
dataSourceSettings: pivot.dataSourceSettings,
|
|
13860
|
+
pivotValues: pivot.pivotValues
|
|
13861
|
+
};
|
|
13862
|
+
pivot.trigger(enginePopulated, eventArgs, function (observedArgs) {
|
|
13863
|
+
_this.parent.pivotValues = engine.pivotValues;
|
|
13864
|
+
});
|
|
13865
|
+
};
|
|
13819
13866
|
VirtualScroll$$1.prototype.setPageXY = function () {
|
|
13820
13867
|
var _this = this;
|
|
13821
13868
|
return function (e) {
|
|
@@ -14665,7 +14712,7 @@ var DrillThrough = /** @__PURE__ @class */ (function () {
|
|
|
14665
14712
|
}
|
|
14666
14713
|
if (ele) {
|
|
14667
14714
|
if (this.parent.allowDrillThrough && ele.classList.contains('e-valuescontent') || this.parent.editSettings.allowEditing) {
|
|
14668
|
-
var colIndex = Number(ele.getAttribute('
|
|
14715
|
+
var colIndex = Number(ele.getAttribute('data-colindex'));
|
|
14669
14716
|
var rowIndex = Number(ele.getAttribute('index'));
|
|
14670
14717
|
this.executeDrillThrough(this.parent.pivotValues[rowIndex][colIndex], rowIndex, colIndex, ele);
|
|
14671
14718
|
}
|
|
@@ -14860,7 +14907,7 @@ var PivotChart = /** @__PURE__ @class */ (function () {
|
|
|
14860
14907
|
if (!this.parent.chart && (this.parent.element.querySelector('.e-chart') || this.parent.element.querySelector('.e-accumulationchart'))) {
|
|
14861
14908
|
remove(select('#' + this.parent.element.id + '_chart', this.parent.element));
|
|
14862
14909
|
}
|
|
14863
|
-
if (this.chartSettings.enableMultipleAxis && this.accumulationType.indexOf(chartSettings.chartSeries.type) < 0) {
|
|
14910
|
+
if (this.chartSettings.enableMultipleAxis && this.accumulationType.indexOf(chartSettings.chartSeries.type) < 0 && this.chartSettings.chartSeries.type !== 'Pareto') {
|
|
14864
14911
|
this.measureList = this.dataSourceSettings.values.map(function (item) { return item.name; });
|
|
14865
14912
|
}
|
|
14866
14913
|
else {
|
|
@@ -14940,7 +14987,7 @@ var PivotChart = /** @__PURE__ @class */ (function () {
|
|
|
14940
14987
|
this.columnGroupObject = {};
|
|
14941
14988
|
this.accEmptyPoint = false;
|
|
14942
14989
|
var pivotValues = this.engineModule.pivotValues;
|
|
14943
|
-
this.currentMeasure = (chartSettings.enableMultipleAxis && this.accumulationType.indexOf(chartSettings.chartSeries.type) < 0) ? this.measureList[0] :
|
|
14990
|
+
this.currentMeasure = (chartSettings.enableMultipleAxis && this.accumulationType.indexOf(chartSettings.chartSeries.type) < 0 && this.chartSettings.chartSeries.type !== 'Pareto') ? this.measureList[0] :
|
|
14944
14991
|
(((chartSettings.value === '' || this.dataSourceSettings.values.filter(function (item) {
|
|
14945
14992
|
return item.name === chartSettings.value;
|
|
14946
14993
|
}).length === 0) && this.dataSourceSettings.values.length > 0) ? this.dataSourceSettings.values[0].name : chartSettings.value);
|
|
@@ -14984,7 +15031,7 @@ var PivotChart = /** @__PURE__ @class */ (function () {
|
|
|
14984
15031
|
header.valueSort.levelName.toString().split(this.parent.dataSourceSettings.valueSortSettings.headerDelimiter) : undefined;
|
|
14985
15032
|
isValidHeader = false;
|
|
14986
15033
|
if (valueSort && valueSort[0] !== 'Grand Total') {
|
|
14987
|
-
if ((chartSettings.enableMultipleAxis && this.accumulationType.indexOf(chartSettings.chartSeries.type) < 0) ||
|
|
15034
|
+
if ((chartSettings.enableMultipleAxis && this.accumulationType.indexOf(chartSettings.chartSeries.type) < 0 && this.chartSettings.chartSeries.type !== 'Pareto') ||
|
|
14988
15035
|
valueSort.indexOf(measureNames[this.currentMeasure]) > -1) {
|
|
14989
15036
|
isValidHeader = true;
|
|
14990
15037
|
}
|
|
@@ -15110,7 +15157,7 @@ var PivotChart = /** @__PURE__ @class */ (function () {
|
|
|
15110
15157
|
var actualText = (this.parent.dataType === 'olap' && tupInfo && tupInfo.measureName) ?
|
|
15111
15158
|
tupInfo.measureName : cell.actualText;
|
|
15112
15159
|
if (!(this.parent.dataType === 'olap' && cell.isGrandSum) && !totColIndex[cell.colIndex] && cell.axis === 'value' && firstRowCell.type !== 'header' &&
|
|
15113
|
-
actualText !== '' && ((chartSettings.enableMultipleAxis && this.accumulationType.indexOf(chartSettings.chartSeries.type) < 0) ? true : actualText === this.currentMeasure)) {
|
|
15160
|
+
actualText !== '' && ((chartSettings.enableMultipleAxis && this.accumulationType.indexOf(chartSettings.chartSeries.type) < 0 && this.chartSettings.chartSeries.type !== 'Pareto') ? true : actualText === this.currentMeasure)) {
|
|
15114
15161
|
if (isNullOrUndefined(firstRowCell.members)) {
|
|
15115
15162
|
firstRowCell.members = [];
|
|
15116
15163
|
}
|
|
@@ -15310,7 +15357,7 @@ var PivotChart = /** @__PURE__ @class */ (function () {
|
|
|
15310
15357
|
className: PIVOTCHART, id: this.parent.element.id + '_chart'
|
|
15311
15358
|
}));
|
|
15312
15359
|
}
|
|
15313
|
-
if (!this.chartElement && this.parent.chartSettings.enableScrollOnMultiAxis && this.parent.chartSettings.enableMultipleAxis) {
|
|
15360
|
+
if (!this.chartElement && this.parent.chartSettings.enableScrollOnMultiAxis && this.parent.chartSettings.enableMultipleAxis && this.chartSettings.chartSeries.type !== 'Pareto') {
|
|
15314
15361
|
this.parent.element.querySelector('.' + PIVOTCHART).innerHTML = '';
|
|
15315
15362
|
this.chartElement = this.parent.element.querySelector('.' + PIVOTCHART).appendChild(createElement('div', {
|
|
15316
15363
|
className: PIVOTCHART_INNER, id: this.parent.element.id + '_chartInner',
|
|
@@ -15331,7 +15378,7 @@ var PivotChart = /** @__PURE__ @class */ (function () {
|
|
|
15331
15378
|
}
|
|
15332
15379
|
var height = this.getChartHeight();
|
|
15333
15380
|
if (this.parent.chartSettings.enableScrollOnMultiAxis && this.parent.chartSettings.enableMultipleAxis &&
|
|
15334
|
-
this.accumulationType.indexOf(type) < 0) {
|
|
15381
|
+
this.accumulationType.indexOf(type) < 0 && this.chartSettings.chartSeries.type !== 'Pareto') {
|
|
15335
15382
|
this.parent.element.querySelector('.' + PIVOTCHART).style.height =
|
|
15336
15383
|
(height === 'auto' ? this.getChartAutoHeight() : height) + 'px';
|
|
15337
15384
|
this.parent.element.querySelector('.' + PIVOTCHART).style.width = width + 'px';
|
|
@@ -15342,7 +15389,7 @@ var PivotChart = /** @__PURE__ @class */ (function () {
|
|
|
15342
15389
|
}
|
|
15343
15390
|
if (this.parent.chart && ((this.parent.chart.getModuleName() === 'accumulationchart' &&
|
|
15344
15391
|
this.accumulationType.indexOf(type) < 0) || (this.parent.chart.getModuleName() === 'chart' &&
|
|
15345
|
-
this.accumulationType.indexOf(type) > -1))) {
|
|
15392
|
+
this.accumulationType.indexOf(type) > -1 && this.chartSettings.chartSeries.type !== 'Pareto'))) {
|
|
15346
15393
|
this.parent.chart.destroy();
|
|
15347
15394
|
if (select('#' + this.parent.element.id + '_chart', this.parent.element)) {
|
|
15348
15395
|
select('#' + this.parent.element.id + '_chart', this.parent.element).innerHTML = '';
|
|
@@ -15421,7 +15468,7 @@ var PivotChart = /** @__PURE__ @class */ (function () {
|
|
|
15421
15468
|
zoomSettings: currentZoomSettings,
|
|
15422
15469
|
axes: (type === 'Polar' || type === 'Radar') ? [] : axesWithRows.axes,
|
|
15423
15470
|
rows: (type === 'Polar' || type === 'Radar') ? [{}] :
|
|
15424
|
-
(type === 'Bar' || type === 'StackingBar' || type === 'StackingBar100' &&
|
|
15471
|
+
(type === 'Bar' || type === 'StackingBar' || type === 'StackingBar100' || type === 'Pareto' &&
|
|
15425
15472
|
this.chartSettings.enableMultipleAxis) ? [{ height: '100%' }] : axesWithRows.rows,
|
|
15426
15473
|
columns: (type === 'Polar' || type === 'Radar') ? [{}] :
|
|
15427
15474
|
(type === 'Bar' || type === 'StackingBar' || type === 'StackingBar100' &&
|
|
@@ -15431,7 +15478,7 @@ var PivotChart = /** @__PURE__ @class */ (function () {
|
|
|
15431
15478
|
width: width,
|
|
15432
15479
|
height: (this.parent.chartSettings.chartSeries.type !== 'Polar' &&
|
|
15433
15480
|
this.parent.chartSettings.chartSeries.type !== 'Radar' && this.parent.chartSettings.enableScrollOnMultiAxis &&
|
|
15434
|
-
this.parent.chartSettings.enableMultipleAxis && this.parent.dataSourceSettings.values.length > 0) ?
|
|
15481
|
+
this.parent.chartSettings.enableMultipleAxis && this.parent.chartSettings.chartSeries.type !== 'Pareto' && this.parent.dataSourceSettings.values.length > 0) ?
|
|
15435
15482
|
Number(height) > (this.parent.dataSourceSettings.values.length * 235) + 100 ? isNaN(Number(height)) ?
|
|
15436
15483
|
height.toString() : (Number(height) - 5).toString() :
|
|
15437
15484
|
(!isNaN(Number(height)) || this.parent.dataSourceSettings.values.length > 1) ?
|
|
@@ -15532,6 +15579,10 @@ var PivotChart = /** @__PURE__ @class */ (function () {
|
|
|
15532
15579
|
this.parent.chart.rows = [{ height: '100%' }];
|
|
15533
15580
|
this.parent.chart.columns = axesWithRows.columns;
|
|
15534
15581
|
}
|
|
15582
|
+
else if (type === 'Pareto' && this.chartSettings.enableMultipleAxis) {
|
|
15583
|
+
this.parent.chart.rows = [{ height: '100%' }];
|
|
15584
|
+
this.parent.chart.columns = [{ width: '100%' }];
|
|
15585
|
+
}
|
|
15535
15586
|
else {
|
|
15536
15587
|
this.parent.chart.rows = axesWithRows.rows;
|
|
15537
15588
|
this.parent.chart.columns = [{ width: '100%' }];
|
|
@@ -15935,7 +15986,7 @@ var PivotChart = /** @__PURE__ @class */ (function () {
|
|
|
15935
15986
|
};
|
|
15936
15987
|
PivotChart.prototype.tooltipRender = function (args) {
|
|
15937
15988
|
var measure = args.series.yAxisName ? (args.series.yAxisName.split('_CumulativeAxis')[0]) :
|
|
15938
|
-
((this.chartSettings.enableMultipleAxis && this.accumulationType.indexOf(this.chartSettings.chartSeries.type) < 0) ?
|
|
15989
|
+
((this.chartSettings.enableMultipleAxis && this.accumulationType.indexOf(this.chartSettings.chartSeries.type) < 0 && this.chartSettings.chartSeries.type !== 'Pareto') ?
|
|
15939
15990
|
args.series.name ? args.series.name.split(' | ')[1] : args.data.seriesName ?
|
|
15940
15991
|
args.data.seriesName.split(' | ')[1] : this.currentMeasure : this.measuresNames[this.currentMeasure] ?
|
|
15941
15992
|
this.measuresNames[this.currentMeasure] : this.currentMeasure);
|
|
@@ -15947,14 +15998,14 @@ var PivotChart = /** @__PURE__ @class */ (function () {
|
|
|
15947
15998
|
var aggregateType = this.parent.dataType === 'olap' ? '' : this.parent.localeObj.getConstant(measureField.aggregateType);
|
|
15948
15999
|
var measureAggregatedName = (this.parent.dataType === 'olap' ? '' : aggregateType + ' ' +
|
|
15949
16000
|
this.parent.localeObj.getConstant('of') + ' ') + measureField.caption;
|
|
15950
|
-
var formattedText = this.
|
|
15951
|
-
args.text.split('<b>')[1].split('</b>')[0] : this.engineModule.pivotValues[rowIndex][colIndex].formattedText;
|
|
16001
|
+
var formattedText = this.engineModule.pivotValues[rowIndex][colIndex].formattedText;
|
|
15952
16002
|
var formatField = this.engineModule.formatFields[measureField.id];
|
|
15953
|
-
var
|
|
16003
|
+
var valueFormat = this.engineModule.getFormattedValue(args.point.y, measureField.id, formattedText);
|
|
16004
|
+
var formattedValue = (formatField && formatField.format && formatField.format.toLowerCase().match(/n|p|c/) !== null &&
|
|
15954
16005
|
this.chartSettings.useGroupingSeparator) ? this.parent.dataType === 'olap' ?
|
|
15955
|
-
|
|
15956
|
-
|
|
15957
|
-
formattedText
|
|
16006
|
+
valueFormat.toString() :
|
|
16007
|
+
valueFormat.formattedText :
|
|
16008
|
+
formattedText;
|
|
15958
16009
|
var columnText = (args.series.name ? args.series.name.split(' | ')[0] : args.data.seriesName.split(' | ')[0]);
|
|
15959
16010
|
var rowText = args.point.x;
|
|
15960
16011
|
if (this.parent.tooltipTemplate && this.parent.getTooltipTemplate() !== undefined || this.chartSettings.tooltip.template) {
|
|
@@ -16007,7 +16058,7 @@ var PivotChart = /** @__PURE__ @class */ (function () {
|
|
|
16007
16058
|
}
|
|
16008
16059
|
}
|
|
16009
16060
|
if (this.parent.chartSettings.enableScrollOnMultiAxis && this.parent.chartSettings.enableMultipleAxis) {
|
|
16010
|
-
if (['Pie', 'Funnel', 'Pyramid', 'Doughnut', 'Radar', 'Polar'].indexOf(this.parent.chartSettings.chartSeries.type) >= 0) {
|
|
16061
|
+
if (['Pie', 'Funnel', 'Pyramid', 'Doughnut', 'Radar', 'Polar', 'Pareto'].indexOf(this.parent.chartSettings.chartSeries.type) >= 0) {
|
|
16011
16062
|
this.parent.element.querySelector('.' + PIVOTCHART).style.overflow = 'visible';
|
|
16012
16063
|
}
|
|
16013
16064
|
else {
|
|
@@ -16283,6 +16334,16 @@ var PivotChart = /** @__PURE__ @class */ (function () {
|
|
|
16283
16334
|
args.text = '';
|
|
16284
16335
|
}
|
|
16285
16336
|
}
|
|
16337
|
+
if (args.axis.name !== 'primaryXAxis') {
|
|
16338
|
+
var formatField = this.engineModule.formatFields[args.axis.name];
|
|
16339
|
+
var valueFormat = this.engineModule.getFormattedValue(args.value, args.axis.name, args.text);
|
|
16340
|
+
var formattedValue = ((formatField && formatField.format && formatField.format.toLowerCase().match(/n|p|c/) !== null &&
|
|
16341
|
+
this.chartSettings.useGroupingSeparator) ? this.parent.dataType === 'olap' ?
|
|
16342
|
+
valueFormat.toString() :
|
|
16343
|
+
valueFormat.formattedText :
|
|
16344
|
+
args.value.toString());
|
|
16345
|
+
args.text = formattedValue;
|
|
16346
|
+
}
|
|
16286
16347
|
this.parent.trigger(chartAxisLabelRender, args);
|
|
16287
16348
|
};
|
|
16288
16349
|
PivotChart.prototype.multiLevelLabelClick = function (args) {
|
|
@@ -16429,7 +16490,7 @@ var PivotChart = /** @__PURE__ @class */ (function () {
|
|
|
16429
16490
|
/* eslint-disable */
|
|
16430
16491
|
/** @hidden */
|
|
16431
16492
|
PivotChart.prototype.getResizedChartHeight = function () {
|
|
16432
|
-
var height = ['Pie', 'Funnel', 'Pyramid', 'Doughnut', 'Radar', 'Polar'].indexOf(this.parent.chartSettings.chartSeries.type) < 0 &&
|
|
16493
|
+
var height = ['Pie', 'Funnel', 'Pyramid', 'Doughnut', 'Radar', 'Polar', 'Pareto'].indexOf(this.parent.chartSettings.chartSeries.type) < 0 &&
|
|
16433
16494
|
this.parent.chartSettings.enableScrollOnMultiAxis && this.parent.chartSettings.enableMultipleAxis &&
|
|
16434
16495
|
this.parent.dataSourceSettings.values.length > 0 ? Number(this.parent.chart.height) > (this.parent.dataSourceSettings.values.length * 235) + 100 ? /* eslint-disable-line */
|
|
16435
16496
|
isNaN(Number(this.getChartHeight())) ? this.getChartHeight().toString() : (Number(this.getChartHeight()) - 5).toString() :
|
|
@@ -20934,7 +20995,7 @@ var OlapEngine = /** @__PURE__ @class */ (function () {
|
|
|
20934
20995
|
}
|
|
20935
20996
|
isHeaderSortByDefault = true;
|
|
20936
20997
|
}
|
|
20937
|
-
if (isHeaderSortByDefault) {
|
|
20998
|
+
if (isHeaderSortByDefault && this.getHeaderSortInfo) {
|
|
20938
20999
|
var copyOrder = [];
|
|
20939
21000
|
for (var m = 0, n = 0; m < headers.length; m++) {
|
|
20940
21001
|
if (headers[m].actualText !== 'Grand Total') {
|
|
@@ -20975,7 +21036,7 @@ var OlapEngine = /** @__PURE__ @class */ (function () {
|
|
|
20975
21036
|
}
|
|
20976
21037
|
isHeaderSortByDefault = true;
|
|
20977
21038
|
}
|
|
20978
|
-
if (isHeaderSortByDefault) {
|
|
21039
|
+
if (isHeaderSortByDefault && this.getHeaderSortInfo) {
|
|
20979
21040
|
var copyOrder = [];
|
|
20980
21041
|
for (var m = 0, n = 0; m < keys.length; m++) {
|
|
20981
21042
|
if (keys[m] !== 'Grand Total') {
|
|
@@ -24071,10 +24132,10 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
|
|
|
24071
24132
|
this.cellTemplateFn = this.templateParser(this.cellTemplate);
|
|
24072
24133
|
this.tooltipTemplateFn = this.templateParser(this.tooltipTemplate);
|
|
24073
24134
|
if (this.spinnerTemplate) {
|
|
24074
|
-
createSpinner({ target: this.element, template: this.spinnerTemplate }, this.createElement);
|
|
24135
|
+
createSpinner({ target: this.element, template: this.spinnerTemplate, cssClass: this.cssClass ? this.cssClass : undefined }, this.createElement);
|
|
24075
24136
|
}
|
|
24076
24137
|
else {
|
|
24077
|
-
createSpinner({ target: this.element }, this.createElement);
|
|
24138
|
+
createSpinner({ target: this.element, cssClass: this.cssClass ? this.cssClass : undefined }, this.createElement);
|
|
24078
24139
|
}
|
|
24079
24140
|
var loadArgs = {
|
|
24080
24141
|
dataSourceSettings: this.dataSourceSettings,
|
|
@@ -24743,7 +24804,7 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
|
|
|
24743
24804
|
}
|
|
24744
24805
|
}
|
|
24745
24806
|
else {
|
|
24746
|
-
pivot.olapEngineModule.renderEngine(pivot.dataSourceSettings, customProperties, pivot.getHeaderSortInfo.bind(pivot));
|
|
24807
|
+
pivot.olapEngineModule.renderEngine(pivot.dataSourceSettings, customProperties, pivot.onHeadersSort ? pivot.getHeaderSortInfo.bind(pivot) : undefined);
|
|
24747
24808
|
}
|
|
24748
24809
|
pivot.allowServerDataBinding = false;
|
|
24749
24810
|
pivot.setProperties({ pivotValues: pivot.olapEngineModule.pivotValues }, true);
|
|
@@ -24784,7 +24845,7 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
|
|
|
24784
24845
|
pivot.lastFilterInfo = {};
|
|
24785
24846
|
}
|
|
24786
24847
|
else {
|
|
24787
|
-
pivot.engineModule.renderEngine(pivot.dataSourceSettings, customProperties, pivot.getValueCellInfo.bind(pivot), pivot.getHeaderSortInfo.bind(pivot));
|
|
24848
|
+
pivot.engineModule.renderEngine(pivot.dataSourceSettings, customProperties, pivot.aggregateCellInfo ? pivot.getValueCellInfo.bind(pivot) : undefined, pivot.onHeadersSort ? pivot.getHeaderSortInfo.bind(pivot) : undefined);
|
|
24788
24849
|
pivot.allowServerDataBinding = false;
|
|
24789
24850
|
pivot.setProperties({ pivotValues: pivot.engineModule.pivotValues }, true);
|
|
24790
24851
|
/* eslint-disable-next-line @typescript-eslint/no-explicit-any */
|
|
@@ -24807,7 +24868,7 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
|
|
|
24807
24868
|
*/
|
|
24808
24869
|
PivotView.prototype.excelExport = function (excelExportProperties, isMultipleExport, workbook, isBlob) {
|
|
24809
24870
|
if (this.enableVirtualization && this.dataSourceSettings.mode !== 'Server') {
|
|
24810
|
-
this.excelExportModule.exportToExcel('Excel', excelExportProperties);
|
|
24871
|
+
this.excelExportModule.exportToExcel('Excel', excelExportProperties, isBlob);
|
|
24811
24872
|
}
|
|
24812
24873
|
else {
|
|
24813
24874
|
this.exportType = 'Excel';
|
|
@@ -24832,7 +24893,7 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
|
|
|
24832
24893
|
*/
|
|
24833
24894
|
PivotView.prototype.csvExport = function (excelExportProperties, isMultipleExport, workbook, isBlob) {
|
|
24834
24895
|
if (this.enableVirtualization && this.dataSourceSettings.mode !== 'Server') {
|
|
24835
|
-
this.excelExportModule.exportToExcel('CSV', excelExportProperties);
|
|
24896
|
+
this.excelExportModule.exportToExcel('CSV', excelExportProperties, isBlob);
|
|
24836
24897
|
}
|
|
24837
24898
|
else {
|
|
24838
24899
|
this.exportType = 'CSV';
|
|
@@ -24857,7 +24918,7 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
|
|
|
24857
24918
|
*/
|
|
24858
24919
|
PivotView.prototype.pdfExport = function (pdfExportProperties, isMultipleExport, pdfDoc, isBlob) {
|
|
24859
24920
|
if (this.enableVirtualization && this.dataSourceSettings.mode !== 'Server') {
|
|
24860
|
-
this.pdfExportModule.exportToPDF(pdfExportProperties);
|
|
24921
|
+
this.pdfExportModule.exportToPDF(pdfExportProperties, isBlob);
|
|
24861
24922
|
}
|
|
24862
24923
|
else {
|
|
24863
24924
|
this.grid.pdfExport(pdfExportProperties, isMultipleExport, pdfDoc, isBlob);
|
|
@@ -24923,7 +24984,7 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
|
|
|
24923
24984
|
}
|
|
24924
24985
|
if (this.dataType === 'pivot') {
|
|
24925
24986
|
var clonedDrillMembers_1 = PivotUtil.cloneDrillMemberSettings(this.dataSourceSettings.drilledMembers);
|
|
24926
|
-
var colIndex = axis === 'row' ? Number(closest(target, 'td').getAttribute('
|
|
24987
|
+
var colIndex = axis === 'row' ? Number(closest(target, 'td').getAttribute('data-colindex')) : Number(closest(target, 'th').getAttribute('data-colindex'));
|
|
24927
24988
|
var rowIndex = axis === 'row' ? Number(closest(target, 'td').getAttribute('index')) : Number(closest(target, 'th').getAttribute('index'));
|
|
24928
24989
|
var currentCell = chartDrillInfo ? chartDrillInfo.cell :
|
|
24929
24990
|
this.engineModule.pivotValues[rowIndex][colIndex];
|
|
@@ -25031,7 +25092,7 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
|
|
|
25031
25092
|
currentCell = chartDrillInfo.cell;
|
|
25032
25093
|
}
|
|
25033
25094
|
else {
|
|
25034
|
-
var colIndex = axis === 'row' ? Number(closest(target, 'td').getAttribute('
|
|
25095
|
+
var colIndex = axis === 'row' ? Number(closest(target, 'td').getAttribute('data-colindex')) : Number(closest(target, 'th').getAttribute('data-colindex'));
|
|
25035
25096
|
var rowIndex = axis === 'row' ? Number(closest(target, 'td').getAttribute('index')) : Number(closest(target, 'th').getAttribute('index'));
|
|
25036
25097
|
currentCell = this.olapEngineModule.pivotValues[rowIndex][colIndex];
|
|
25037
25098
|
}
|
|
@@ -25334,6 +25395,10 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
|
|
|
25334
25395
|
(mCntVScrollPos === mCntScrollPos ? (mCntScrollPos - hScrollPos) :
|
|
25335
25396
|
(mCntScrollPos < mCntVScrollPos && (hScrollPos === mCntVScrollPos || hScrollPos > mCntScrollPos) ?
|
|
25336
25397
|
-(mCntVScrollPos - mCntScrollPos) : 0)));
|
|
25398
|
+
if (this.actionObj.actionName === 'Sort value' || this.actionObj.actionName === 'Sort field') {
|
|
25399
|
+
var excessMove = -this.scrollPosObject.horizontalSection;
|
|
25400
|
+
this.scrollPosObject.horizontalSection = this.scrollPosObject.horizontalSection + excessMove;
|
|
25401
|
+
}
|
|
25337
25402
|
horiOffset = (ele.scrollLeft > this.scrollerBrowserLimit) ?
|
|
25338
25403
|
(mCnt.querySelector('.' + TABLE).style.transform.split(',')[0].trim() + ',') :
|
|
25339
25404
|
'translate(' + -(((ele.scrollLeft * this.horizontalScrollScale) -
|
|
@@ -25376,7 +25441,7 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
|
|
|
25376
25441
|
}
|
|
25377
25442
|
};
|
|
25378
25443
|
PivotView.prototype.setToolTip = function (args) {
|
|
25379
|
-
var colIndex = Number(args.target.getAttribute('
|
|
25444
|
+
var colIndex = Number(args.target.getAttribute('data-colindex'));
|
|
25380
25445
|
var rowIndex = Number(args.target.getAttribute('index'));
|
|
25381
25446
|
var cell = (this.dataSourceSettings.values.length > 0 && this.pivotValues &&
|
|
25382
25447
|
this.pivotValues[rowIndex] && this.pivotValues[rowIndex][colIndex]) ?
|
|
@@ -25573,7 +25638,7 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
|
|
|
25573
25638
|
var ele_1 = e.target;
|
|
25574
25639
|
var axis = (ele_1.parentElement.classList.contains(ROWSHEADER) || ele_1.classList.contains(ROWSHEADER)) ? 'row' : 'column';
|
|
25575
25640
|
ele_1 = axis === 'column' ? closest(ele_1, 'th') : closest(ele_1, 'td');
|
|
25576
|
-
var colIndex = Number(ele_1.getAttribute('
|
|
25641
|
+
var colIndex = Number(ele_1.getAttribute('data-colindex'));
|
|
25577
25642
|
var rowIndex = Number(ele_1.getAttribute('index'));
|
|
25578
25643
|
var selectArgs = {
|
|
25579
25644
|
cancel: false,
|
|
@@ -25627,6 +25692,9 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
|
|
|
25627
25692
|
this.lastCellClicked = e.target;
|
|
25628
25693
|
}
|
|
25629
25694
|
var target = e.target;
|
|
25695
|
+
if (closest(target, '.' + PIVOT_BUTTON_CLASS)) {
|
|
25696
|
+
return;
|
|
25697
|
+
}
|
|
25630
25698
|
var ele = null;
|
|
25631
25699
|
var axis = (target.parentElement.classList.contains(ROWSHEADER) || target.classList.contains(ROWSHEADER)) ? 'row' : 'column';
|
|
25632
25700
|
ele = axis === 'column' ? closest(target, 'th') : closest(target, 'td');
|
|
@@ -25647,7 +25715,7 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
|
|
|
25647
25715
|
if (this.actionBeginMethod()) {
|
|
25648
25716
|
return;
|
|
25649
25717
|
}
|
|
25650
|
-
var colIndex = Number(ele.getAttribute('
|
|
25718
|
+
var colIndex = Number(ele.getAttribute('data-colindex'));
|
|
25651
25719
|
var rowIndex = Number(ele.getAttribute('index'));
|
|
25652
25720
|
if (this.dataSourceSettings.valueAxis === 'row' && (this.dataSourceSettings.values.length > 1 || this.dataSourceSettings.alwaysShowValueHeader)) {
|
|
25653
25721
|
var header = this.pivotValues[rowIndex][colIndex];
|
|
@@ -25661,13 +25729,13 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
|
|
|
25661
25729
|
}
|
|
25662
25730
|
}
|
|
25663
25731
|
else if (this.dataSourceSettings.valueAxis === 'column' && (this.dataSourceSettings.values.length > 1 || this.dataSourceSettings.alwaysShowValueHeader)) {
|
|
25664
|
-
colIndex = (Number(ele.getAttribute('
|
|
25732
|
+
colIndex = (Number(ele.getAttribute('data-colindex')) + Number(ele.getAttribute('aria-colspan')) - 1);
|
|
25665
25733
|
rowIndex = this.engineModule.headerContent.length - 1;
|
|
25666
25734
|
}
|
|
25667
25735
|
this.setProperties({
|
|
25668
25736
|
dataSourceSettings: {
|
|
25669
25737
|
valueSortSettings: {
|
|
25670
|
-
columnIndex: (Number(ele.getAttribute('
|
|
25738
|
+
columnIndex: (Number(ele.getAttribute('data-colindex')) +
|
|
25671
25739
|
Number(ele.getAttribute('aria-colspan')) - 1),
|
|
25672
25740
|
sortOrder: this.dataSourceSettings.valueSortSettings.sortOrder === 'Descending' ? 'Ascending' : 'Descending',
|
|
25673
25741
|
headerText: this.pivotValues[rowIndex][colIndex].valueSort.levelName,
|
|
@@ -26016,7 +26084,7 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
|
|
|
26016
26084
|
}
|
|
26017
26085
|
/* eslint-disable */
|
|
26018
26086
|
if (ele && !isNullOrUndefined(this.pivotValues) && this.pivotValues.length > 0) {
|
|
26019
|
-
var colIndex_1 = Number(ele.getAttribute('
|
|
26087
|
+
var colIndex_1 = Number(ele.getAttribute('data-colindex'));
|
|
26020
26088
|
var rowIndex_1 = Number(ele.getAttribute('index'));
|
|
26021
26089
|
var colSpan_1 = Number(ele.getAttribute('aria-colspan'));
|
|
26022
26090
|
var selectArgs = {
|
|
@@ -26060,6 +26128,9 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
|
|
|
26060
26128
|
_this_1.getSelectedCellsPos();
|
|
26061
26129
|
});
|
|
26062
26130
|
}
|
|
26131
|
+
else {
|
|
26132
|
+
this.clearSelection(null, e, null, null);
|
|
26133
|
+
}
|
|
26063
26134
|
};
|
|
26064
26135
|
PivotView.prototype.rowDeselect = function (ele, e, rowIndex, mode, observedArgs) {
|
|
26065
26136
|
if (!e.shiftKey && !e.ctrlKey && this.gridSettings.selectionSettings.mode !== 'Both' || this.gridSettings.selectionSettings.type === 'Single') {
|
|
@@ -26105,7 +26176,7 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
|
|
|
26105
26176
|
PivotView.prototype.clearSelection = function (ele, e, colIndex, rowIndex) {
|
|
26106
26177
|
if ((!e.shiftKey && !e.ctrlKey) || this.gridSettings.selectionSettings.type === 'Single') {
|
|
26107
26178
|
if (this.gridSettings.selectionSettings.mode === 'Cell') {
|
|
26108
|
-
if (ele.classList.contains(COLUMNSHEADER)) {
|
|
26179
|
+
if (ele && ele.classList.contains(COLUMNSHEADER)) {
|
|
26109
26180
|
removeClass(this.element.querySelectorAll(('.' + ROW_CELL_CLASS + '.') + CELL_SELECTED_BGCOLOR), CELL_SELECTED_BGCOLOR);
|
|
26110
26181
|
}
|
|
26111
26182
|
else {
|
|
@@ -26113,7 +26184,7 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
|
|
|
26113
26184
|
}
|
|
26114
26185
|
}
|
|
26115
26186
|
else if (this.gridSettings.selectionSettings.mode === 'Both') {
|
|
26116
|
-
if (ele.classList.contains(ROW_CELL_CLASS)) {
|
|
26187
|
+
if (ele && ele.classList.contains(ROW_CELL_CLASS)) {
|
|
26117
26188
|
for (var _i = 0, _a = [].slice.call(this.element.querySelectorAll('.' + SELECTED_BGCOLOR + ', .' + CELL_SELECTED_BGCOLOR)); _i < _a.length; _i++) {
|
|
26118
26189
|
var ele_2 = _a[_i];
|
|
26119
26190
|
// if (Number((ele as HTMLElement).getAttribute('index')) !== rowIndex) {
|
|
@@ -26183,10 +26254,10 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
|
|
|
26183
26254
|
for (var _i = 0, _a = [].slice.call(this.element.querySelectorAll('.' + CELL_ACTIVE_BGCOLOR)); _i < _a.length; _i++) {
|
|
26184
26255
|
var ele = _a[_i];
|
|
26185
26256
|
removeClass([ele], [CELL_ACTIVE_BGCOLOR, SELECTED_BGCOLOR]);
|
|
26186
|
-
if (activeColumns.indexOf(ele.getAttribute('
|
|
26257
|
+
if (activeColumns.indexOf(ele.getAttribute('data-colindex')) === -1) {
|
|
26187
26258
|
isToggle = false;
|
|
26188
26259
|
}
|
|
26189
|
-
var colIndex = Number(ele.getAttribute('
|
|
26260
|
+
var colIndex = Number(ele.getAttribute('data-colindex'));
|
|
26190
26261
|
actColPos[colIndex] = colIndex;
|
|
26191
26262
|
}
|
|
26192
26263
|
activeColumns = Object.keys(actColPos).length > 0 ? Object.keys(actColPos).sort(function (a, b) {
|
|
@@ -26218,7 +26289,7 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
|
|
|
26218
26289
|
}
|
|
26219
26290
|
var count = colStart;
|
|
26220
26291
|
while (count <= colEnd) {
|
|
26221
|
-
queryStringArray.push('[
|
|
26292
|
+
queryStringArray.push('[data-colindex="' + count + '"]' + (this.gridSettings.selectionSettings.mode === 'Cell' ?
|
|
26222
26293
|
'[index="' + rowStart + '"]' : "") + '');
|
|
26223
26294
|
count++;
|
|
26224
26295
|
}
|
|
@@ -26246,23 +26317,23 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
|
|
|
26246
26317
|
control.cellSelectionPos = [];
|
|
26247
26318
|
for (var _i = 0, _a = [].slice.call(this.element.querySelectorAll('.' + SELECTED_BGCOLOR)); _i < _a.length; _i++) {
|
|
26248
26319
|
var ele = _a[_i];
|
|
26249
|
-
control.savedSelectedCellsPos.push({ rowIndex: ele.getAttribute('index'), colIndex: ele.getAttribute('
|
|
26320
|
+
control.savedSelectedCellsPos.push({ rowIndex: ele.getAttribute('index'), colIndex: ele.getAttribute('data-colindex') });
|
|
26250
26321
|
}
|
|
26251
26322
|
for (var _b = 0, _c = [].slice.call(this.element.querySelectorAll('.' + CELL_SELECTED_BGCOLOR)); _b < _c.length; _b++) {
|
|
26252
26323
|
var ele = _c[_b];
|
|
26253
|
-
control.cellSelectionPos.push({ rowIndex: ele.getAttribute('index'), colIndex: ele.getAttribute('
|
|
26324
|
+
control.cellSelectionPos.push({ rowIndex: ele.getAttribute('index'), colIndex: ele.getAttribute('data-colindex') });
|
|
26254
26325
|
}
|
|
26255
26326
|
};
|
|
26256
26327
|
PivotView.prototype.setSavedSelectedCells = function () {
|
|
26257
26328
|
var control = this;
|
|
26258
26329
|
for (var _i = 0, _a = [].slice.call(this.savedSelectedCellsPos); _i < _a.length; _i++) {
|
|
26259
26330
|
var item = _a[_i];
|
|
26260
|
-
var query = '[
|
|
26331
|
+
var query = '[data-colindex="' + item.colIndex + '"][index="' + item.rowIndex + '"]';
|
|
26261
26332
|
addClass([control.element.querySelector(query)], [CELL_ACTIVE_BGCOLOR, SELECTED_BGCOLOR]);
|
|
26262
26333
|
}
|
|
26263
26334
|
for (var _b = 0, _c = [].slice.call(this.cellSelectionPos); _b < _c.length; _b++) {
|
|
26264
26335
|
var item = _c[_b];
|
|
26265
|
-
var query = '[
|
|
26336
|
+
var query = '[data-colindex="' + item.colIndex + '"][index="' + item.rowIndex + '"]';
|
|
26266
26337
|
addClass([control.element.querySelector(query)], [CELL_SELECTED_BGCOLOR]);
|
|
26267
26338
|
}
|
|
26268
26339
|
};
|
|
@@ -26351,7 +26422,7 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
|
|
|
26351
26422
|
_this_1.clonedReport = _this_1.clonedReport ? _this_1.clonedReport : dataSourceSettings;
|
|
26352
26423
|
}
|
|
26353
26424
|
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));
|
|
26425
|
+
_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
26426
|
}
|
|
26356
26427
|
_this_1.allowServerDataBinding = false;
|
|
26357
26428
|
_this_1.setProperties({ pivotValues: _this_1.engineModule.pivotValues }, true);
|
|
@@ -26362,7 +26433,7 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
|
|
|
26362
26433
|
else if (_this_1.dataSourceSettings.providerType === 'SSAS' && _this_1.dataType === 'olap') {
|
|
26363
26434
|
customProperties.savedFieldList = _this_1.olapEngineModule.fieldList;
|
|
26364
26435
|
customProperties.savedFieldListData = _this_1.olapEngineModule.fieldListData;
|
|
26365
|
-
_this_1.olapEngineModule.renderEngine(_this_1.dataSourceSettings, customProperties, _this_1.getHeaderSortInfo.bind(_this_1));
|
|
26436
|
+
_this_1.olapEngineModule.renderEngine(_this_1.dataSourceSettings, customProperties, _this_1.onHeadersSort ? _this_1.getHeaderSortInfo.bind(_this_1) : undefined);
|
|
26366
26437
|
_this_1.allowServerDataBinding = false;
|
|
26367
26438
|
_this_1.setProperties({ pivotValues: _this_1.olapEngineModule.pivotValues }, true);
|
|
26368
26439
|
delete _this_1.bulkChanges.pivotValues;
|
|
@@ -26843,7 +26914,8 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
|
|
|
26843
26914
|
: this.actionObj.actionName == removeRecord ? recordRemoved : (this.actionObj.actionName == pngExport) ? pngExported : (this.actionObj.actionName == jpegExport) ? jpegExported
|
|
26844
26915
|
: (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
26916
|
: this.actionObj.actionName == saveCurrentReport ? reportSaved : (this.actionObj.actionName == addNewReport) ? newReportAdded : (this.actionObj.actionName == saveAsCurrentReport) ? reportReSaved
|
|
26846
|
-
: (this.actionObj.actionName == renameCurrentReport) ? reportRenamed : this.actionObj.actionName
|
|
26917
|
+
: (this.actionObj.actionName == renameCurrentReport) ? reportRenamed : (this.actionObj.actionName == renameCurrentReport) ? reportRenamed : (this.actionObj.actionName == horizontalScroll) ? horizontalScrolled
|
|
26918
|
+
: (this.actionObj.actionName == verticalScroll) ? verticalScrolled : this.actionObj.actionName;
|
|
26847
26919
|
return actionName;
|
|
26848
26920
|
};
|
|
26849
26921
|
/* eslint-disable-next-line */
|
|
@@ -27295,6 +27367,9 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
|
|
|
27295
27367
|
__decorate([
|
|
27296
27368
|
Event()
|
|
27297
27369
|
], PivotView.prototype, "beforeExport", void 0);
|
|
27370
|
+
__decorate([
|
|
27371
|
+
Event()
|
|
27372
|
+
], PivotView.prototype, "exportComplete", void 0);
|
|
27298
27373
|
__decorate([
|
|
27299
27374
|
Event()
|
|
27300
27375
|
], PivotView.prototype, "conditionalFormatting", void 0);
|
|
@@ -27680,7 +27755,7 @@ var ExcelExport$1 = /** @__PURE__ @class */ (function () {
|
|
|
27680
27755
|
* Method to perform excel export.
|
|
27681
27756
|
* @hidden
|
|
27682
27757
|
*/
|
|
27683
|
-
ExcelExport$$1.prototype.exportToExcel = function (type, exportProperties) {
|
|
27758
|
+
ExcelExport$$1.prototype.exportToExcel = function (type, exportProperties, isBlob) {
|
|
27684
27759
|
this.rows = [];
|
|
27685
27760
|
this.actualrCnt = 0;
|
|
27686
27761
|
var isHeaderSet = !isNullOrUndefined(exportProperties) && !isNullOrUndefined(exportProperties.header);
|
|
@@ -27867,12 +27942,21 @@ var ExcelExport$1 = /** @__PURE__ @class */ (function () {
|
|
|
27867
27942
|
workSheets.push({ columns: columns, rows: this.rows });
|
|
27868
27943
|
}
|
|
27869
27944
|
var book = new Workbook({ worksheets: workSheets }, type === 'Excel' ? 'xlsx' : 'csv', undefined, this.parent.currencyCode);
|
|
27870
|
-
|
|
27871
|
-
|
|
27945
|
+
var fileExtension = fileName.split(".").pop();
|
|
27946
|
+
var blobData;
|
|
27947
|
+
if (!isBlob) {
|
|
27948
|
+
book.save(fileExtension === "xlsx" || fileExtension === "csv" ?
|
|
27949
|
+
fileName : (fileName + (type === 'Excel' ? '.xlsx' : '.csv')));
|
|
27872
27950
|
}
|
|
27873
27951
|
else {
|
|
27874
|
-
book.
|
|
27952
|
+
blobData = book.saveAsBlob(fileExtension === "xlsx" || type === 'Excel' ?
|
|
27953
|
+
'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' : 'text/csv');
|
|
27875
27954
|
}
|
|
27955
|
+
var exportCompleteEventArgs = {
|
|
27956
|
+
type: type,
|
|
27957
|
+
promise: isBlob ? blobData : null
|
|
27958
|
+
};
|
|
27959
|
+
this.parent.trigger(exportComplete, exportCompleteEventArgs);
|
|
27876
27960
|
};
|
|
27877
27961
|
/**
|
|
27878
27962
|
* To destroy the excel export module
|
|
@@ -28052,7 +28136,7 @@ var PDFExport = /** @__PURE__ @class */ (function () {
|
|
|
28052
28136
|
* @hidden
|
|
28053
28137
|
*/
|
|
28054
28138
|
/* eslint-disable */
|
|
28055
|
-
PDFExport.prototype.exportToPDF = function (pdfExportProperties) {
|
|
28139
|
+
PDFExport.prototype.exportToPDF = function (pdfExportProperties, isBlob) {
|
|
28056
28140
|
this.engine = this.parent.dataType === 'olap' ? this.parent.olapEngineModule : this.parent.engineModule;
|
|
28057
28141
|
var eventParams = this.applyEvent();
|
|
28058
28142
|
var headerStyle = this.getStyle();
|
|
@@ -28243,7 +28327,18 @@ var PDFExport = /** @__PURE__ @class */ (function () {
|
|
|
28243
28327
|
integratedCnt = 0;
|
|
28244
28328
|
}
|
|
28245
28329
|
} while (integratedCnt < colLength);
|
|
28246
|
-
|
|
28330
|
+
var blobData;
|
|
28331
|
+
if (!isBlob) {
|
|
28332
|
+
eventParams.document.save(eventParams.args.fileName + '.pdf');
|
|
28333
|
+
}
|
|
28334
|
+
else {
|
|
28335
|
+
blobData = eventParams.document.save();
|
|
28336
|
+
}
|
|
28337
|
+
var exportCompleteEventArgs = {
|
|
28338
|
+
type: 'PDF',
|
|
28339
|
+
promise: isBlob ? blobData : null
|
|
28340
|
+
};
|
|
28341
|
+
this.parent.trigger(exportComplete, exportCompleteEventArgs);
|
|
28247
28342
|
eventParams.document.destroy();
|
|
28248
28343
|
};
|
|
28249
28344
|
PDFExport.prototype.applyStyle = function (pdfGridRow, pivotCell, localCnt) {
|
|
@@ -32489,7 +32584,7 @@ var PivotFieldList = /** @__PURE__ @class */ (function (_super) {
|
|
|
32489
32584
|
customProperties.enableValueSorting = _this.staticPivotGridModule ?
|
|
32490
32585
|
_this.staticPivotGridModule.enableValueSorting : _this.enableValueSorting;
|
|
32491
32586
|
if (_this.dataSourceSettings.mode !== 'Server') {
|
|
32492
|
-
_this.engineModule.renderEngine(_this.dataSourceSettings, customProperties, _this.getValueCellInfo.bind(_this), _this.getHeaderSortInfo.bind(_this));
|
|
32587
|
+
_this.engineModule.renderEngine(_this.dataSourceSettings, customProperties, _this.aggregateCellInfo ? _this.getValueCellInfo.bind(_this) : undefined, _this.onHeadersSort ? _this.getHeaderSortInfo.bind(_this) : undefined);
|
|
32493
32588
|
}
|
|
32494
32589
|
_this.pivotFieldList = _this.engineModule.fieldList;
|
|
32495
32590
|
var eventArgs = {
|
|
@@ -32505,7 +32600,7 @@ var PivotFieldList = /** @__PURE__ @class */ (function (_super) {
|
|
|
32505
32600
|
});
|
|
32506
32601
|
}
|
|
32507
32602
|
else if (_this.dataType === 'olap') {
|
|
32508
|
-
_this.olapEngineModule.renderEngine(_this.dataSourceSettings, _this.frameCustomProperties(_this.olapEngineModule.fieldListData, _this.olapEngineModule.fieldList), _this.getHeaderSortInfo.bind(_this));
|
|
32603
|
+
_this.olapEngineModule.renderEngine(_this.dataSourceSettings, _this.frameCustomProperties(_this.olapEngineModule.fieldListData, _this.olapEngineModule.fieldList), _this.onHeadersSort ? _this.getHeaderSortInfo.bind(_this) : undefined);
|
|
32509
32604
|
_this.pivotFieldList = _this.olapEngineModule.fieldList;
|
|
32510
32605
|
var eventArgs = {
|
|
32511
32606
|
pivotFieldList: _this.pivotFieldList,
|
|
@@ -32583,10 +32678,10 @@ var PivotFieldList = /** @__PURE__ @class */ (function (_super) {
|
|
|
32583
32678
|
this.fieldListSpinnerElement = this.element.querySelector('.e-pivotfieldlist-container');
|
|
32584
32679
|
}
|
|
32585
32680
|
if (this.spinnerTemplate) {
|
|
32586
|
-
createSpinner({ target: this.fieldListSpinnerElement, template: this.spinnerTemplate }, this.createElement);
|
|
32681
|
+
createSpinner({ target: this.fieldListSpinnerElement, template: this.spinnerTemplate, cssClass: this.cssClass ? this.cssClass : undefined }, this.createElement);
|
|
32587
32682
|
}
|
|
32588
32683
|
else {
|
|
32589
|
-
createSpinner({ target: this.fieldListSpinnerElement }, this.createElement);
|
|
32684
|
+
createSpinner({ target: this.fieldListSpinnerElement, cssClass: this.cssClass ? this.cssClass : undefined }, this.createElement);
|
|
32590
32685
|
}
|
|
32591
32686
|
var args;
|
|
32592
32687
|
args = {
|
|
@@ -32745,7 +32840,7 @@ var PivotFieldList = /** @__PURE__ @class */ (function (_super) {
|
|
|
32745
32840
|
pivot.lastFilterInfo = {};
|
|
32746
32841
|
}
|
|
32747
32842
|
else {
|
|
32748
|
-
pivot.engineModule.renderEngine(pivot.dataSourceSettings, customProperties, pivot.getValueCellInfo.bind(pivot), pivot.getHeaderSortInfo.bind(pivot));
|
|
32843
|
+
pivot.engineModule.renderEngine(pivot.dataSourceSettings, customProperties, pivot.aggregateCellInfo ? pivot.getValueCellInfo.bind(pivot) : undefined, pivot.onHeadersSort ? pivot.getHeaderSortInfo.bind(pivot) : undefined);
|
|
32749
32844
|
}
|
|
32750
32845
|
}
|
|
32751
32846
|
}
|
|
@@ -32843,7 +32938,7 @@ var PivotFieldList = /** @__PURE__ @class */ (function (_super) {
|
|
|
32843
32938
|
}
|
|
32844
32939
|
}
|
|
32845
32940
|
else {
|
|
32846
|
-
pivot.olapEngineModule.renderEngine(pivot.dataSourceSettings, customProperties, pivot.getHeaderSortInfo.bind(pivot));
|
|
32941
|
+
pivot.olapEngineModule.renderEngine(pivot.dataSourceSettings, customProperties, pivot.onHeadersSort ? pivot.getHeaderSortInfo.bind(pivot) : undefined);
|
|
32847
32942
|
}
|
|
32848
32943
|
pivot.lastSortInfo = {};
|
|
32849
32944
|
pivot.lastAggregationInfo = {};
|
|
@@ -33225,6 +33320,7 @@ var CalculatedField = /** @__PURE__ @class */ (function () {
|
|
|
33225
33320
|
this.isFormula = false;
|
|
33226
33321
|
/** @hidden */
|
|
33227
33322
|
this.isRequireUpdate = false;
|
|
33323
|
+
this.formatTypes = ['Standard', 'Currency', 'Percent', 'Custom', 'None'];
|
|
33228
33324
|
this.parent = parent;
|
|
33229
33325
|
this.existingReport = null;
|
|
33230
33326
|
this.parent.calculatedFieldModule = this;
|
|
@@ -33330,7 +33426,7 @@ var CalculatedField = /** @__PURE__ @class */ (function () {
|
|
|
33330
33426
|
this.fieldText = node.getAttribute('data-caption');
|
|
33331
33427
|
this.formulaText = node.getAttribute('data-formula');
|
|
33332
33428
|
this.formatType = node.getAttribute('data-formatString');
|
|
33333
|
-
this.formatText = this.formatType === 'Custom' ? node.getAttribute('data-
|
|
33429
|
+
this.formatText = this.formatType === 'Custom' ? node.getAttribute('data-customformatstring') : null;
|
|
33334
33430
|
this.fieldType = node.getAttribute('data-membertype');
|
|
33335
33431
|
this.parentHierarchy = this.fieldType === 'Dimension' ? node.getAttribute('data-hierarchy') : null;
|
|
33336
33432
|
addClass([node.querySelector('.e-list-edit-icon')], CALC_EDITED);
|
|
@@ -33360,11 +33456,19 @@ var CalculatedField = /** @__PURE__ @class */ (function () {
|
|
|
33360
33456
|
closest(e.originalEvent.target, '.e-acrdn-header-icon')) {
|
|
33361
33457
|
var node = closest(e.originalEvent.target, '.e-acrdn-header').querySelector('.' + CALCCHECK);
|
|
33362
33458
|
var fieldName = node.getAttribute('data-field');
|
|
33459
|
+
var captionName = node.getAttribute('data-caption');
|
|
33363
33460
|
var formatObj = PivotUtil.getFieldByName(fieldName, this.parent.dataSourceSettings.formatSettings);
|
|
33364
33461
|
var optionElement = closest(e.originalEvent.target, '.e-acrdn-header-icon');
|
|
33462
|
+
if (formatObj) {
|
|
33463
|
+
var pivotFormat = this.getFormat(formatObj.format);
|
|
33464
|
+
var formatString = (pivotFormat ? this.formatTypes.indexOf(pivotFormat) > -1 ?
|
|
33465
|
+
formatObj.format : 'Custom' : 'None');
|
|
33466
|
+
this.formatType = formatString;
|
|
33467
|
+
}
|
|
33365
33468
|
if (optionElement.querySelector('.' + CALC_EDIT) && e.originalEvent.target.classList.contains(CALC_EDIT)) {
|
|
33366
33469
|
this.isEdit = true;
|
|
33367
|
-
this.currentFieldName =
|
|
33470
|
+
this.currentFieldName = fieldName;
|
|
33471
|
+
this.fieldText = captionName ? captionName : fieldName;
|
|
33368
33472
|
this.formulaText = this.parent.engineModule.fieldList[fieldName].formula;
|
|
33369
33473
|
this.formatText = formatObj ? formatObj.format : '';
|
|
33370
33474
|
addClass([optionElement.querySelector('.e-list-icon')], CALC_EDITED);
|
|
@@ -33433,16 +33537,16 @@ var CalculatedField = /** @__PURE__ @class */ (function () {
|
|
|
33433
33537
|
this.inputObj.dataBind();
|
|
33434
33538
|
var formatString = node.getAttribute('data-formatString');
|
|
33435
33539
|
var dialogElement = this.dialog.element;
|
|
33540
|
+
var ddlFormatTypes = getInstance(select('#' + this.parentID + 'Format_Div', dialogElement), DropDownList);
|
|
33436
33541
|
var customFormat = getInstance(select('#' + this.parentID + 'Custom_Format_Element', dialogElement), MaskedTextBox);
|
|
33542
|
+
var customFormatString = node.getAttribute('data-customformatstring');
|
|
33437
33543
|
if (this.parent.dataType === 'olap') {
|
|
33438
33544
|
var memberType = node.getAttribute('data-membertype');
|
|
33439
33545
|
var parentHierarchy = node.getAttribute('data-hierarchy');
|
|
33440
33546
|
var expression = node.getAttribute('data-formula');
|
|
33441
|
-
var customString = node.getAttribute('data-customString');
|
|
33442
33547
|
var fieldTitle = select('#' + this.parentID + '_' + 'FieldNameTitle', dialogElement);
|
|
33443
33548
|
var memberTypeDrop = getInstance(select('#' + this.parentID + 'Member_Type_Div', dialogElement), DropDownList);
|
|
33444
33549
|
var hierarchyDrop = getInstance(select('#' + this.parentID + 'Hierarchy_List_Div', dialogElement), DropDownList);
|
|
33445
|
-
var formatDrop = getInstance(select('#' + this.parentID + 'Format_Div', dialogElement), DropDownList);
|
|
33446
33550
|
/* eslint-enable max-len */
|
|
33447
33551
|
fieldTitle.innerHTML = this.parent.localeObj.getConstant('caption');
|
|
33448
33552
|
select('#' + this.parentID + 'droppable', document).value = expression;
|
|
@@ -33452,14 +33556,8 @@ var CalculatedField = /** @__PURE__ @class */ (function () {
|
|
|
33452
33556
|
if (memberType === 'Dimension') {
|
|
33453
33557
|
hierarchyDrop.value = parentHierarchy;
|
|
33454
33558
|
}
|
|
33455
|
-
if (formatString !== '') {
|
|
33456
|
-
formatDrop.value = formatString;
|
|
33457
|
-
formatDrop.dataBind();
|
|
33458
|
-
}
|
|
33459
|
-
customFormat.value = customString;
|
|
33460
33559
|
}
|
|
33461
33560
|
else {
|
|
33462
|
-
customFormat.value = formatString;
|
|
33463
33561
|
addClass(this.treeObj.element.querySelectorAll('.' + CALC_EDITED), CALC_EDIT);
|
|
33464
33562
|
removeClass(this.treeObj.element.querySelectorAll('.' + CALC_EDITED), CALC_EDITED);
|
|
33465
33563
|
addClass([node.querySelector('.e-list-icon')], CALC_EDITED);
|
|
@@ -33467,6 +33565,11 @@ var CalculatedField = /** @__PURE__ @class */ (function () {
|
|
|
33467
33565
|
node.querySelector('.' + CALC_EDITED).setAttribute('title', this.parent.localeObj.getConstant('clearCalculatedField'));
|
|
33468
33566
|
select('#' + this.parentID + 'droppable', document).value = node.getAttribute('data-uid');
|
|
33469
33567
|
}
|
|
33568
|
+
if (formatString !== '') {
|
|
33569
|
+
ddlFormatTypes.value = formatString;
|
|
33570
|
+
ddlFormatTypes.dataBind();
|
|
33571
|
+
}
|
|
33572
|
+
customFormat.value = customFormatString;
|
|
33470
33573
|
customFormat.dataBind();
|
|
33471
33574
|
}
|
|
33472
33575
|
else if (node.tagName === 'LI' && (node.querySelector('.' + CALC_EDITED) &&
|
|
@@ -33481,15 +33584,15 @@ var CalculatedField = /** @__PURE__ @class */ (function () {
|
|
|
33481
33584
|
customFormat.dataBind();
|
|
33482
33585
|
if (this.parent.dataType === 'olap') {
|
|
33483
33586
|
var hierarchyDrop = getInstance(select('#' + this.parentID + 'Hierarchy_List_Div', dialogElement), DropDownList);
|
|
33484
|
-
var
|
|
33587
|
+
var ddlFormatTypes = getInstance(select('#' + this.parentID + 'Format_Div', dialogElement), DropDownList);
|
|
33485
33588
|
var memberTypeDrop = getInstance(select('#' + this.parentID + 'Member_Type_Div', dialogElement), DropDownList);
|
|
33486
33589
|
var fieldTitle = select('#' + this.parentID + '_' + 'FieldNameTitle', dialogElement);
|
|
33487
33590
|
/* eslint-enable max-len */
|
|
33488
33591
|
fieldTitle.innerHTML = this.parent.localeObj.getConstant('fieldTitle');
|
|
33489
33592
|
hierarchyDrop.index = 0;
|
|
33490
33593
|
hierarchyDrop.dataBind();
|
|
33491
|
-
|
|
33492
|
-
|
|
33594
|
+
ddlFormatTypes.index = 0;
|
|
33595
|
+
ddlFormatTypes.dataBind();
|
|
33493
33596
|
memberTypeDrop.index = 0;
|
|
33494
33597
|
memberTypeDrop.readonly = false;
|
|
33495
33598
|
memberTypeDrop.dataBind();
|
|
@@ -33882,18 +33985,15 @@ var CalculatedField = /** @__PURE__ @class */ (function () {
|
|
|
33882
33985
|
caption: this.inputObj.value,
|
|
33883
33986
|
formula: dropField.value
|
|
33884
33987
|
};
|
|
33988
|
+
var ddlFormatTypes = getInstance(select('#' + this.parentID + 'Format_Div', dialogElement), DropDownList);
|
|
33989
|
+
field.formatString = (ddlFormatTypes.value === 'Custom' ? customFormat.value : (ddlFormatTypes.value === 'None' ? null : ddlFormatTypes.value));
|
|
33885
33990
|
if (this.parent.dataType === 'olap') {
|
|
33886
|
-
var formatDrop = getInstance(select('#' + this.parentID + 'Format_Div', dialogElement), DropDownList);
|
|
33887
33991
|
var memberTypeDrop = getInstance(select('#' + this.parentID + 'Member_Type_Div', dialogElement), DropDownList);
|
|
33888
33992
|
var hierarchyDrop = getInstance(select('#' + this.parentID + 'Hierarchy_List_Div', dialogElement), DropDownList);
|
|
33889
|
-
field.formatString = (formatDrop.value === 'Custom' ? customFormat.value : (formatDrop.value === 'None' ? null : formatDrop.value));
|
|
33890
33993
|
if (memberTypeDrop.value === 'Dimension') {
|
|
33891
33994
|
field.hierarchyUniqueName = hierarchyDrop.value;
|
|
33892
33995
|
}
|
|
33893
33996
|
}
|
|
33894
|
-
else {
|
|
33895
|
-
field.formatString = customFormat.value;
|
|
33896
|
-
}
|
|
33897
33997
|
return field;
|
|
33898
33998
|
};
|
|
33899
33999
|
/* eslint-enable max-len */
|
|
@@ -33974,21 +34074,21 @@ var CalculatedField = /** @__PURE__ @class */ (function () {
|
|
|
33974
34074
|
select('#' + this.parentID + 'droppable', this.parent.dialogRenderer.parentElement).value = '';
|
|
33975
34075
|
select('#' + this.parentID + 'Custom_Format_Element', this.parent.dialogRenderer.parentElement).value = '';
|
|
33976
34076
|
if (this.parent.dataType === 'olap') {
|
|
33977
|
-
var customFormat = getInstance(select('#' + this.parentID + 'Custom_Format_Element', dialogElement), MaskedTextBox);
|
|
33978
|
-
var formatDrop = getInstance(select('#' + this.parentID + 'Format_Div', dialogElement), DropDownList);
|
|
33979
34077
|
var memberTypeDrop = getInstance(select('#' + this.parentID + 'Member_Type_Div', dialogElement), DropDownList);
|
|
33980
34078
|
var hierarchyDrop = getInstance(select('#' + this.parentID + 'Hierarchy_List_Div', dialogElement), DropDownList);
|
|
33981
|
-
formatDrop.index = 0;
|
|
33982
|
-
formatDrop.dataBind();
|
|
33983
34079
|
memberTypeDrop.index = 0;
|
|
33984
34080
|
memberTypeDrop.readonly = false;
|
|
33985
34081
|
memberTypeDrop.dataBind();
|
|
33986
34082
|
hierarchyDrop.index = 0;
|
|
33987
34083
|
hierarchyDrop.enabled = false;
|
|
33988
34084
|
hierarchyDrop.dataBind();
|
|
33989
|
-
customFormat.enabled = false;
|
|
33990
|
-
customFormat.dataBind();
|
|
33991
34085
|
}
|
|
34086
|
+
var customFormat = getInstance(select('#' + this.parentID + 'Custom_Format_Element', dialogElement), MaskedTextBox);
|
|
34087
|
+
var ddlFormatTypes = getInstance(select('#' + this.parentID + 'Format_Div', dialogElement), DropDownList);
|
|
34088
|
+
ddlFormatTypes.index = this.parent.dataType === 'olap' ? 0 : 4;
|
|
34089
|
+
ddlFormatTypes.dataBind();
|
|
34090
|
+
customFormat.enabled = false;
|
|
34091
|
+
customFormat.dataBind();
|
|
33992
34092
|
/* eslint-enable max-len */
|
|
33993
34093
|
}
|
|
33994
34094
|
};
|
|
@@ -34281,7 +34381,7 @@ var CalculatedField = /** @__PURE__ @class */ (function () {
|
|
|
34281
34381
|
className: (this.parent.dataType === 'olap' ? OLAP_CALCOUTERDIV + ' ' : '') + CALCOUTERDIV
|
|
34282
34382
|
});
|
|
34283
34383
|
var olapFieldTreeDiv = createElement('div', { id: this.parentID + 'Olap_Tree_Div', className: 'e-olap-field-tree-div' });
|
|
34284
|
-
var
|
|
34384
|
+
var pivotCalcDiv = createElement('div', { id: this.parentID + 'Pivot_Calc_Div', className: 'e-pivot-calculated-div' });
|
|
34285
34385
|
if (this.parent.getModuleName() === 'pivotfieldlist' && this.parent.
|
|
34286
34386
|
dialogRenderer.parentElement.querySelector('.' + FORMULA) !== null && this.parent.isAdaptive) {
|
|
34287
34387
|
var accordDiv = createElement('div', { id: this.parentID + 'accordDiv', className: CALCACCORD });
|
|
@@ -34305,7 +34405,7 @@ var CalculatedField = /** @__PURE__ @class */ (function () {
|
|
|
34305
34405
|
className: PIVOT_FIELD_TITLE_CLASS, id: this.parentID + '_' + 'FieldNameTitle',
|
|
34306
34406
|
innerHTML: this.parent.localeObj.getConstant('fieldTitle')
|
|
34307
34407
|
});
|
|
34308
|
-
|
|
34408
|
+
pivotCalcDiv.appendChild(formulaTitle);
|
|
34309
34409
|
}
|
|
34310
34410
|
var inputDiv = createElement('div', { id: this.parentID + 'outerDiv', className: CALCINPUTDIV });
|
|
34311
34411
|
var inputObj = createElement('input', {
|
|
@@ -34314,7 +34414,7 @@ var CalculatedField = /** @__PURE__ @class */ (function () {
|
|
|
34314
34414
|
className: CALCINPUT
|
|
34315
34415
|
});
|
|
34316
34416
|
inputDiv.appendChild(inputObj);
|
|
34317
|
-
(this.parent.dataType === 'olap' && !this.parent.isAdaptive ?
|
|
34417
|
+
(this.parent.dataType === 'olap' && !this.parent.isAdaptive ? pivotCalcDiv.appendChild(inputDiv) : outerDiv.appendChild(inputDiv));
|
|
34318
34418
|
var wrapDiv = createElement('div', { id: this.parentID + 'control_container', className: TREEVIEWOUTER });
|
|
34319
34419
|
if (!this.parent.isAdaptive) {
|
|
34320
34420
|
var fieldTitle = createElement('div', {
|
|
@@ -34361,7 +34461,7 @@ var CalculatedField = /** @__PURE__ @class */ (function () {
|
|
|
34361
34461
|
innerHTML: (this.parent.dataType === 'olap' ? this.parent.localeObj.getConstant('expressionField') :
|
|
34362
34462
|
this.parent.localeObj.getConstant('formula'))
|
|
34363
34463
|
});
|
|
34364
|
-
(this.parent.dataType === 'olap' ?
|
|
34464
|
+
(this.parent.dataType === 'olap' ? pivotCalcDiv.appendChild(formulaTitle) : outerDiv.appendChild(formulaTitle));
|
|
34365
34465
|
}
|
|
34366
34466
|
var dropDiv = createElement('textarea', {
|
|
34367
34467
|
id: this.parentID + 'droppable',
|
|
@@ -34372,7 +34472,7 @@ var CalculatedField = /** @__PURE__ @class */ (function () {
|
|
|
34372
34472
|
this.parent.localeObj.getConstant('dropText'))
|
|
34373
34473
|
}
|
|
34374
34474
|
});
|
|
34375
|
-
(this.parent.dataType === 'olap' && !this.parent.isAdaptive ?
|
|
34475
|
+
(this.parent.dataType === 'olap' && !this.parent.isAdaptive ? pivotCalcDiv.appendChild(dropDiv) : outerDiv.appendChild(dropDiv));
|
|
34376
34476
|
if (this.parent.isAdaptive) {
|
|
34377
34477
|
var buttonDiv = createElement('div', { id: this.parentID + 'buttonDiv', className: CALCBUTTONDIV });
|
|
34378
34478
|
var okBtn = createElement('button', {
|
|
@@ -34388,63 +34488,51 @@ var CalculatedField = /** @__PURE__ @class */ (function () {
|
|
|
34388
34488
|
className: OLAP_MEMBER_TITLE_CLASS,
|
|
34389
34489
|
innerHTML: this.parent.localeObj.getConstant('memberType')
|
|
34390
34490
|
});
|
|
34391
|
-
|
|
34491
|
+
pivotCalcDiv.appendChild(memberTypeTitle);
|
|
34392
34492
|
}
|
|
34393
34493
|
var memberTypeDrop = createElement('div', { id: this.parentID + 'Member_Type_Div', className: CALC_MEMBER_TYPE_DIV });
|
|
34394
|
-
(this.parent.isAdaptive ? outerDiv.appendChild(memberTypeDrop) :
|
|
34494
|
+
(this.parent.isAdaptive ? outerDiv.appendChild(memberTypeDrop) : pivotCalcDiv.appendChild(memberTypeDrop));
|
|
34395
34495
|
if (!this.parent.isAdaptive) {
|
|
34396
34496
|
var hierarchyTitle = createElement('div', {
|
|
34397
34497
|
className: OLAP_HIERARCHY_TITLE_CLASS,
|
|
34398
34498
|
innerHTML: this.parent.localeObj.getConstant('selectedHierarchy')
|
|
34399
34499
|
});
|
|
34400
|
-
|
|
34500
|
+
pivotCalcDiv.appendChild(hierarchyTitle);
|
|
34401
34501
|
}
|
|
34402
34502
|
var hierarchyDrop = createElement('div', { id: this.parentID + 'Hierarchy_List_Div', className: CALC_HIERARCHY_LIST_DIV });
|
|
34403
|
-
(this.parent.isAdaptive ? outerDiv.appendChild(hierarchyDrop) :
|
|
34404
|
-
|
|
34405
|
-
|
|
34406
|
-
|
|
34407
|
-
|
|
34408
|
-
|
|
34409
|
-
olapCalcDiv.appendChild(formatTitle);
|
|
34410
|
-
}
|
|
34411
|
-
var formatDrop = createElement('div', { id: this.parentID + 'Format_Div', className: CALC_FORMAT_TYPE_DIV });
|
|
34412
|
-
(this.parent.isAdaptive ? outerDiv.appendChild(formatDrop) : olapCalcDiv.appendChild(formatDrop));
|
|
34413
|
-
var customFormatDiv = createElement('div', { id: this.parentID + 'custom_Format_Div', className: OLAP_CALC_CUSTOM_FORMAT_INPUTDIV });
|
|
34414
|
-
var customFormatObj = createElement('input', {
|
|
34415
|
-
id: this.parentID + 'Custom_Format_Element',
|
|
34416
|
-
attrs: { 'type': 'text' },
|
|
34417
|
-
className: CALC_FORMAT_INPUT
|
|
34503
|
+
(this.parent.isAdaptive ? outerDiv.appendChild(hierarchyDrop) : pivotCalcDiv.appendChild(hierarchyDrop));
|
|
34504
|
+
}
|
|
34505
|
+
if (!this.parent.isAdaptive) {
|
|
34506
|
+
var formatTitle = createElement('div', {
|
|
34507
|
+
className: PIVOT_FORMAT_TITLE_CLASS,
|
|
34508
|
+
innerHTML: this.parent.localeObj.getConstant('formatString')
|
|
34418
34509
|
});
|
|
34419
|
-
|
|
34420
|
-
|
|
34421
|
-
|
|
34422
|
-
|
|
34423
|
-
|
|
34424
|
-
|
|
34425
|
-
|
|
34426
|
-
|
|
34427
|
-
|
|
34428
|
-
|
|
34429
|
-
|
|
34430
|
-
|
|
34510
|
+
pivotCalcDiv.appendChild(formatTitle);
|
|
34511
|
+
}
|
|
34512
|
+
var ddlFormatTypes = createElement('div', { id: this.parentID + 'Format_Div', className: CALC_FORMAT_TYPE_DIV });
|
|
34513
|
+
(this.parent.isAdaptive ? outerDiv.appendChild(ddlFormatTypes) : pivotCalcDiv.appendChild(ddlFormatTypes));
|
|
34514
|
+
var customFormatDiv = createElement('div', {
|
|
34515
|
+
id: this.parentID + 'custom_Format_Div',
|
|
34516
|
+
className: PIVOT_CALC_CUSTOM_FORMAT_INPUTDIV
|
|
34517
|
+
});
|
|
34518
|
+
var customFormatObj = createElement('input', {
|
|
34519
|
+
id: this.parentID + 'Custom_Format_Element',
|
|
34520
|
+
attrs: { 'type': 'text' },
|
|
34521
|
+
className: CALC_FORMAT_INPUT
|
|
34522
|
+
});
|
|
34523
|
+
customFormatDiv.appendChild(customFormatObj);
|
|
34524
|
+
pivotCalcDiv.appendChild(customFormatDiv);
|
|
34525
|
+
(this.parent.isAdaptive ? outerDiv.appendChild(customFormatDiv) : pivotCalcDiv.appendChild(customFormatDiv));
|
|
34526
|
+
if (this.parent.getModuleName() === 'pivotfieldlist' && this.parent.
|
|
34527
|
+
dialogRenderer.parentElement.querySelector('.' + FORMULA) === null && this.parent.isAdaptive) {
|
|
34528
|
+
var okBtn = outerDiv.querySelector('.' + CALCOKBTN);
|
|
34529
|
+
outerDiv.appendChild(okBtn);
|
|
34431
34530
|
}
|
|
34432
34531
|
else {
|
|
34433
|
-
|
|
34434
|
-
|
|
34435
|
-
var formatTitle = createElement('div', {
|
|
34436
|
-
className: OLAP_FORMAT_TITLE_CLASS,
|
|
34437
|
-
innerHTML: this.parent.localeObj.getConstant('formatString')
|
|
34438
|
-
});
|
|
34439
|
-
customFormatDiv.appendChild(formatTitle);
|
|
34532
|
+
if (this.parent.dataType === 'olap') {
|
|
34533
|
+
outerDiv.appendChild(olapFieldTreeDiv);
|
|
34440
34534
|
}
|
|
34441
|
-
|
|
34442
|
-
id: this.parentID + 'Custom_Format_Element',
|
|
34443
|
-
attrs: { 'type': 'text' },
|
|
34444
|
-
className: CALC_FORMAT_INPUT
|
|
34445
|
-
});
|
|
34446
|
-
customFormatDiv.appendChild(customFormatObj);
|
|
34447
|
-
(this.parent.isAdaptive ? outerDiv.insertBefore(customFormatDiv, select('#' + this.parentID + 'buttonDiv', outerDiv)) : outerDiv.appendChild(customFormatDiv));
|
|
34535
|
+
outerDiv.appendChild(pivotCalcDiv);
|
|
34448
34536
|
}
|
|
34449
34537
|
}
|
|
34450
34538
|
return outerDiv;
|
|
@@ -34469,12 +34557,12 @@ var CalculatedField = /** @__PURE__ @class */ (function () {
|
|
|
34469
34557
|
this.parentHierarchy = this.fieldType === 'Dimension' ? hierarchyDrop.value : null;
|
|
34470
34558
|
}
|
|
34471
34559
|
if (dialogElement.element.querySelector('.' + CALC_FORMAT_TYPE_DIV)) {
|
|
34472
|
-
var
|
|
34473
|
-
this.formatType =
|
|
34560
|
+
var ddlFormatTypes = getInstance(select('#' + this.parentID + 'Format_Div', dialogElement.element), DropDownList);
|
|
34561
|
+
this.formatType = ddlFormatTypes.value;
|
|
34474
34562
|
}
|
|
34475
34563
|
if (dialogElement.element.querySelector('.' + CALC_FORMAT_INPUT)) {
|
|
34476
34564
|
var customFormat = getInstance(select('#' + this.parentID + 'Custom_Format_Element', dialogElement.element), MaskedTextBox);
|
|
34477
|
-
this.formatText = this.parent.dataType === 'olap' ? this.formatType === 'Custom' ? customFormat.value : null
|
|
34565
|
+
this.formatText = (this.parent.dataType === 'olap' ? this.formatType : this.getFormat(this.formatType)) === 'Custom' ? customFormat.value : null;
|
|
34478
34566
|
}
|
|
34479
34567
|
}
|
|
34480
34568
|
else {
|
|
@@ -34520,9 +34608,8 @@ var CalculatedField = /** @__PURE__ @class */ (function () {
|
|
|
34520
34608
|
hierarchyDrop.dataBind();
|
|
34521
34609
|
}
|
|
34522
34610
|
if (dialogElement.querySelector('.' + CALC_FORMAT_TYPE_DIV)) {
|
|
34523
|
-
var
|
|
34524
|
-
|
|
34525
|
-
this.formatType = formatDrop.value = (formatStringData.indexOf(calcInfo.formatString) > -1 ? calcInfo.formatString : 'Custom');
|
|
34611
|
+
var ddlFormatTypes = getInstance(select('#' + this.parentID + 'Format_Div', dialogElement), DropDownList);
|
|
34612
|
+
this.formatType = ddlFormatTypes.value = (this.formatTypes.indexOf(calcInfo.formatString) > -1 ? calcInfo.formatString : 'Custom');
|
|
34526
34613
|
}
|
|
34527
34614
|
if (dialogElement.querySelector('.' + CALC_FORMAT_INPUT)) {
|
|
34528
34615
|
var customFormat = getInstance(select('#' + this.parentID + 'Custom_Format_Element', dialogElement), MaskedTextBox);
|
|
@@ -34541,67 +34628,69 @@ var CalculatedField = /** @__PURE__ @class */ (function () {
|
|
|
34541
34628
|
* To create treeview.
|
|
34542
34629
|
* @returns {void}
|
|
34543
34630
|
*/
|
|
34544
|
-
CalculatedField.prototype.
|
|
34631
|
+
CalculatedField.prototype.createDropElements = function () {
|
|
34545
34632
|
var _this = this;
|
|
34546
34633
|
var dialogElement = (this.parent.isAdaptive ?
|
|
34547
34634
|
this.parent.dialogRenderer.parentElement : this.dialog.element);
|
|
34548
|
-
var mData = [];
|
|
34549
34635
|
var fData = [];
|
|
34550
34636
|
var fieldData = [];
|
|
34551
|
-
var
|
|
34552
|
-
|
|
34553
|
-
|
|
34554
|
-
var type = memberTypeData_1[_i];
|
|
34555
|
-
mData.push({ value: type, text: this.parent.localeObj.getConstant(type) });
|
|
34556
|
-
}
|
|
34557
|
-
for (var _a = 0, formatStringData_1 = formatStringData; _a < formatStringData_1.length; _a++) {
|
|
34558
|
-
var format = formatStringData_1[_a];
|
|
34559
|
-
fData.push({ value: format, text: this.parent.localeObj.getConstant(format) });
|
|
34560
|
-
}
|
|
34561
|
-
var fields = PivotUtil.getClonedData(this.parent.olapEngineModule.fieldListData);
|
|
34562
|
-
for (var _b = 0, _c = fields; _b < _c.length; _b++) {
|
|
34563
|
-
var item = _c[_b];
|
|
34564
|
-
if (item.spriteCssClass &&
|
|
34565
|
-
(item.spriteCssClass.indexOf('e-attributeCDB-icon') > -1 ||
|
|
34566
|
-
item.spriteCssClass.indexOf('e-hierarchyCDB-icon') > -1)) {
|
|
34567
|
-
fieldData.push({ value: item.id, text: item.caption });
|
|
34568
|
-
}
|
|
34637
|
+
for (var _i = 0, _a = this.formatTypes; _i < _a.length; _i++) {
|
|
34638
|
+
var format = _a[_i];
|
|
34639
|
+
fData.push({ value: (this.parent.dataType === 'pivot' ? this.getFormat(format) : format), text: this.parent.localeObj.getConstant(format) });
|
|
34569
34640
|
}
|
|
34570
|
-
|
|
34571
|
-
|
|
34572
|
-
|
|
34573
|
-
|
|
34574
|
-
|
|
34575
|
-
|
|
34576
|
-
|
|
34577
|
-
|
|
34578
|
-
|
|
34579
|
-
|
|
34580
|
-
|
|
34581
|
-
|
|
34582
|
-
|
|
34583
|
-
|
|
34584
|
-
|
|
34585
|
-
var hierarchyListObj = new DropDownList({
|
|
34586
|
-
dataSource: fieldData, enableRtl: this.parent.enableRtl, locale: this.parent.locale,
|
|
34587
|
-
allowFiltering: true,
|
|
34588
|
-
enabled: memberTypeObj.value === 'Dimension' ? true : false,
|
|
34589
|
-
filterBarPlaceholder: this.parent.localeObj.getConstant('example') + ' ' + fieldData[0].text.toString(),
|
|
34590
|
-
fields: { value: 'value', text: 'text' },
|
|
34591
|
-
value: this.parentHierarchy !== null && memberTypeObj.value === 'Dimension' ?
|
|
34592
|
-
this.parentHierarchy : fieldData[0].value,
|
|
34593
|
-
cssClass: MEMBER_OPTIONS_CLASS + (this.parent.cssClass ? (' ' + this.parent.cssClass) : ''), width: '100%',
|
|
34594
|
-
change: function (args) {
|
|
34595
|
-
_this.parentHierarchy = args.value;
|
|
34596
|
-
_this.formulaText = select('#' + _this.parentID + 'droppable', document).value;
|
|
34641
|
+
if (this.parent.dataType === 'olap') {
|
|
34642
|
+
var mData = [];
|
|
34643
|
+
var memberTypeData = ['Measure', 'Dimension'];
|
|
34644
|
+
for (var _b = 0, memberTypeData_1 = memberTypeData; _b < memberTypeData_1.length; _b++) {
|
|
34645
|
+
var type = memberTypeData_1[_b];
|
|
34646
|
+
mData.push({ value: type, text: this.parent.localeObj.getConstant(type) });
|
|
34647
|
+
}
|
|
34648
|
+
var fields = PivotUtil.getClonedData(this.parent.olapEngineModule.fieldListData);
|
|
34649
|
+
for (var _c = 0, _d = fields; _c < _d.length; _c++) {
|
|
34650
|
+
var item = _d[_c];
|
|
34651
|
+
if (item.spriteCssClass &&
|
|
34652
|
+
(item.spriteCssClass.indexOf('e-attributeCDB-icon') > -1 ||
|
|
34653
|
+
item.spriteCssClass.indexOf('e-hierarchyCDB-icon') > -1)) {
|
|
34654
|
+
fieldData.push({ value: item.id, text: item.caption });
|
|
34655
|
+
}
|
|
34597
34656
|
}
|
|
34598
|
-
|
|
34599
|
-
|
|
34600
|
-
|
|
34657
|
+
var memberTypeObj = new DropDownList({
|
|
34658
|
+
dataSource: mData, enableRtl: this.parent.enableRtl, locale: this.parent.locale,
|
|
34659
|
+
fields: { value: 'value', text: 'text' },
|
|
34660
|
+
value: this.fieldType !== null ? this.fieldType : mData[0].value,
|
|
34661
|
+
readonly: this.isEdit,
|
|
34662
|
+
cssClass: MEMBER_OPTIONS_CLASS + (this.parent.cssClass ? (' ' + this.parent.cssClass) : ''), width: '100%',
|
|
34663
|
+
change: function (args) {
|
|
34664
|
+
hierarchyListObj_1.enabled = args.value === 'Dimension' ? true : false;
|
|
34665
|
+
_this.fieldType = args.value;
|
|
34666
|
+
_this.formulaText = select('#' + _this.parentID + 'droppable', document).value;
|
|
34667
|
+
hierarchyListObj_1.dataBind();
|
|
34668
|
+
}
|
|
34669
|
+
});
|
|
34670
|
+
memberTypeObj.isStringTemplate = true;
|
|
34671
|
+
memberTypeObj.appendTo(select('#' + this.parentID + 'Member_Type_Div', dialogElement));
|
|
34672
|
+
var hierarchyListObj_1 = new DropDownList({
|
|
34673
|
+
dataSource: fieldData, enableRtl: this.parent.enableRtl, locale: this.parent.locale,
|
|
34674
|
+
allowFiltering: true,
|
|
34675
|
+
enabled: memberTypeObj.value === 'Dimension' ? true : false,
|
|
34676
|
+
filterBarPlaceholder: this.parent.localeObj.getConstant('example') + ' ' + fieldData[0].text.toString(),
|
|
34677
|
+
fields: { value: 'value', text: 'text' },
|
|
34678
|
+
value: this.parentHierarchy !== null && memberTypeObj.value === 'Dimension' ?
|
|
34679
|
+
this.parentHierarchy : fieldData[0].value,
|
|
34680
|
+
cssClass: MEMBER_OPTIONS_CLASS + (this.parent.cssClass ? (' ' + this.parent.cssClass) : ''), width: '100%',
|
|
34681
|
+
change: function (args) {
|
|
34682
|
+
_this.parentHierarchy = args.value;
|
|
34683
|
+
_this.formulaText = select('#' + _this.parentID + 'droppable', document).value;
|
|
34684
|
+
}
|
|
34685
|
+
});
|
|
34686
|
+
hierarchyListObj_1.isStringTemplate = true;
|
|
34687
|
+
hierarchyListObj_1.appendTo(select('#' + this.parentID + 'Hierarchy_List_Div', dialogElement));
|
|
34688
|
+
}
|
|
34601
34689
|
var formatStringObj = new DropDownList({
|
|
34602
34690
|
dataSource: fData, enableRtl: this.parent.enableRtl, locale: this.parent.locale,
|
|
34603
34691
|
fields: { value: 'value', text: 'text' },
|
|
34604
|
-
value: this.formatType !== null ? this.formatType
|
|
34692
|
+
value: this.parent.isAdaptive && this.formatType !== null ? this.formatType
|
|
34693
|
+
: this.parent.dataType === 'olap' ? fData[0].value : fData[4].value,
|
|
34605
34694
|
cssClass: MEMBER_OPTIONS_CLASS + (this.parent.cssClass ? (' ' + this.parent.cssClass) : ''), width: '100%',
|
|
34606
34695
|
change: function (args) {
|
|
34607
34696
|
customerFormatObj.enabled = args.value === 'Custom' ? true : false;
|
|
@@ -34626,6 +34715,30 @@ var CalculatedField = /** @__PURE__ @class */ (function () {
|
|
|
34626
34715
|
customerFormatObj.isStringTemplate = true;
|
|
34627
34716
|
customerFormatObj.appendTo('#' + this.parentID + 'Custom_Format_Element');
|
|
34628
34717
|
};
|
|
34718
|
+
CalculatedField.prototype.getFormat = function (pivotFormat) {
|
|
34719
|
+
var format = pivotFormat;
|
|
34720
|
+
switch (format) {
|
|
34721
|
+
case 'Standard':
|
|
34722
|
+
format = 'N';
|
|
34723
|
+
break;
|
|
34724
|
+
case 'Currency':
|
|
34725
|
+
format = 'C';
|
|
34726
|
+
break;
|
|
34727
|
+
case 'Percent':
|
|
34728
|
+
format = 'P';
|
|
34729
|
+
break;
|
|
34730
|
+
case 'N':
|
|
34731
|
+
format = 'Standard';
|
|
34732
|
+
break;
|
|
34733
|
+
case 'C':
|
|
34734
|
+
format = 'Currency';
|
|
34735
|
+
break;
|
|
34736
|
+
case 'P':
|
|
34737
|
+
format = 'Percent';
|
|
34738
|
+
break;
|
|
34739
|
+
}
|
|
34740
|
+
return format;
|
|
34741
|
+
};
|
|
34629
34742
|
/**
|
|
34630
34743
|
* To create treeview.
|
|
34631
34744
|
* @returns {void}
|
|
@@ -34781,12 +34894,11 @@ var CalculatedField = /** @__PURE__ @class */ (function () {
|
|
|
34781
34894
|
args.node.setAttribute('data-membertype', field.fieldType);
|
|
34782
34895
|
args.node.setAttribute('data-hierarchy', field.parentHierarchy ? field.parentHierarchy : '');
|
|
34783
34896
|
args.node.setAttribute('data-formula', field.formula);
|
|
34784
|
-
var formatStringData = ['Standard', 'Currency', 'Percent', 'None'];
|
|
34785
34897
|
var formatString = void 0;
|
|
34786
|
-
formatString = (field.formatString ?
|
|
34898
|
+
formatString = (field.formatString ? this.formatTypes.indexOf(field.formatString) > -1 ?
|
|
34787
34899
|
field.formatString : 'Custom' : 'None');
|
|
34788
34900
|
args.node.setAttribute('data-formatString', formatString);
|
|
34789
|
-
args.node.setAttribute('data-
|
|
34901
|
+
args.node.setAttribute('data-customformatstring', (formatString === 'Custom' ? field.formatString : ''));
|
|
34790
34902
|
var removeElement = createElement('span', {
|
|
34791
34903
|
className: GRID_REMOVE + ' e-icons e-list-icon'
|
|
34792
34904
|
});
|
|
@@ -34826,6 +34938,13 @@ var CalculatedField = /** @__PURE__ @class */ (function () {
|
|
|
34826
34938
|
args.node.setAttribute('data-type', args.nodeData.type);
|
|
34827
34939
|
var formatObj = PivotUtil.getFieldByName(field, this.parent.dataSourceSettings.formatSettings);
|
|
34828
34940
|
args.node.setAttribute('data-formatString', formatObj ? formatObj.format : '');
|
|
34941
|
+
if (formatObj) {
|
|
34942
|
+
var pivotFormat = this.getFormat(formatObj.format);
|
|
34943
|
+
var formatString = (pivotFormat ? this.formatTypes.indexOf(pivotFormat) > -1 ?
|
|
34944
|
+
formatObj.format : 'Custom' : 'None');
|
|
34945
|
+
args.node.setAttribute('data-customformatstring', (formatString === 'Custom' ? pivotFormat : ''));
|
|
34946
|
+
args.node.setAttribute('data-formatString', formatObj ? formatString : '');
|
|
34947
|
+
}
|
|
34829
34948
|
var dragElement = createElement('span', {
|
|
34830
34949
|
attrs: { 'tabindex': '-1', 'aria-disabled': 'false', 'title': this.parent.localeObj.getConstant('dragField') },
|
|
34831
34950
|
className: ICON + ' e-drag'
|
|
@@ -34904,7 +35023,7 @@ var CalculatedField = /** @__PURE__ @class */ (function () {
|
|
|
34904
35023
|
var key = keys[index];
|
|
34905
35024
|
data.push({
|
|
34906
35025
|
header: '<input id=' + this.parentID + '_' + index + ' class=' + CALCCHECK + ' type="checkbox" data-field=' +
|
|
34907
|
-
key + ' data-caption=' + this.parent.engineModule.fieldList[key].caption + ' data-type=' +
|
|
35026
|
+
key + ' data-caption="' + this.parent.engineModule.fieldList[key].caption + '" data-type=' +
|
|
34908
35027
|
this.parent.engineModule.fieldList[key].type + '/>',
|
|
34909
35028
|
content: (this.parent.engineModule.fieldList[key].aggregateType === CALC ||
|
|
34910
35029
|
(this.getMenuItems(this.parent.engineModule.fieldList[key].type).length < 1)) ? '' :
|
|
@@ -34924,9 +35043,9 @@ var CalculatedField = /** @__PURE__ @class */ (function () {
|
|
|
34924
35043
|
var _this = this;
|
|
34925
35044
|
tabObj.items[4].content = this.renderDialogElements().outerHTML;
|
|
34926
35045
|
tabObj.dataBind();
|
|
34927
|
-
if (this.parent.
|
|
35046
|
+
if (this.parent.isAdaptive && this.parent.
|
|
34928
35047
|
dialogRenderer.parentElement.querySelector('.' + FORMULA) !== null) {
|
|
34929
|
-
this.
|
|
35048
|
+
this.createDropElements();
|
|
34930
35049
|
}
|
|
34931
35050
|
var cancelBtn = new Button({ cssClass: FLAT + (this.parent.cssClass ? (' ' + this.parent.cssClass) : ''), isPrimary: true, locale: this.parent.locale, enableRtl: this.parent.enableRtl });
|
|
34932
35051
|
cancelBtn.isStringTemplate = true;
|
|
@@ -34950,25 +35069,6 @@ var CalculatedField = /** @__PURE__ @class */ (function () {
|
|
|
34950
35069
|
});
|
|
34951
35070
|
this.inputObj.isStringTemplate = true;
|
|
34952
35071
|
this.inputObj.appendTo('#' + this.parentID + 'ddlelement');
|
|
34953
|
-
if (this.parent.dataType === 'pivot') {
|
|
34954
|
-
var formatInputObj = new MaskedTextBox({
|
|
34955
|
-
locale: this.parent.locale, enableRtl: this.parent.enableRtl,
|
|
34956
|
-
placeholder: this.parent.localeObj.getConstant('numberFormatString'),
|
|
34957
|
-
change: function (args) {
|
|
34958
|
-
_this.formatText = args.value;
|
|
34959
|
-
_this.formulaText = select('#' + _this.parentID + 'droppable', document).value;
|
|
34960
|
-
},
|
|
34961
|
-
cssClass: this.parent.cssClass
|
|
34962
|
-
});
|
|
34963
|
-
formatInputObj.isStringTemplate = true;
|
|
34964
|
-
formatInputObj.appendTo('#' + this.parentID + 'Custom_Format_Element');
|
|
34965
|
-
if (this.formatText !== null && this.parent.
|
|
34966
|
-
dialogRenderer.parentElement.querySelector('.' + CALC_FORMAT_INPUT) !== null) {
|
|
34967
|
-
this.parent.
|
|
34968
|
-
dialogRenderer.parentElement.querySelector('.' + CALC_FORMAT_INPUT).value = this.formatText;
|
|
34969
|
-
formatInputObj.value = this.formatText;
|
|
34970
|
-
}
|
|
34971
|
-
}
|
|
34972
35072
|
if (this.formulaText !== null && select('#' + this.parentID + 'droppable', this.parent.dialogRenderer.parentElement) !== null) {
|
|
34973
35073
|
var drop = select('#' + this.parentID + 'droppable', this.parent.dialogRenderer.parentElement);
|
|
34974
35074
|
drop.value = this.formulaText;
|
|
@@ -35181,18 +35281,7 @@ var CalculatedField = /** @__PURE__ @class */ (function () {
|
|
|
35181
35281
|
});
|
|
35182
35282
|
this.inputObj.isStringTemplate = true;
|
|
35183
35283
|
this.inputObj.appendTo('#' + this.parentID + 'ddlelement');
|
|
35184
|
-
|
|
35185
|
-
var customerFormatObj = new MaskedTextBox({
|
|
35186
|
-
placeholder: this.parent.localeObj.getConstant('numberFormatString'),
|
|
35187
|
-
locale: this.parent.locale, enableRtl: this.parent.enableRtl,
|
|
35188
|
-
cssClass: this.parent.cssClass
|
|
35189
|
-
});
|
|
35190
|
-
customerFormatObj.isStringTemplate = true;
|
|
35191
|
-
customerFormatObj.appendTo('#' + this.parentID + 'Custom_Format_Element');
|
|
35192
|
-
}
|
|
35193
|
-
if (this.parent.dataType === 'olap' && !this.parent.isAdaptive) {
|
|
35194
|
-
this.createOlapDropElements();
|
|
35195
|
-
}
|
|
35284
|
+
this.createDropElements();
|
|
35196
35285
|
this.createTreeView();
|
|
35197
35286
|
this.droppable = new Droppable(select('#' + this.parentID + 'droppable'));
|
|
35198
35287
|
this.keyboardEvents = new KeyboardEvents(this.parent.calculatedFieldModule.dialog.element, {
|
|
@@ -35317,6 +35406,7 @@ var CalculatedField = /** @__PURE__ @class */ (function () {
|
|
|
35317
35406
|
*/
|
|
35318
35407
|
CalculatedField.prototype.destroy = function () {
|
|
35319
35408
|
this.removeEventListener();
|
|
35409
|
+
this.formatTypes = null;
|
|
35320
35410
|
};
|
|
35321
35411
|
return CalculatedField;
|
|
35322
35412
|
}());
|
|
@@ -36151,7 +36241,8 @@ var ConditionalFormatting = /** @__PURE__ @class */ (function () {
|
|
|
36151
36241
|
remove(select('#' + this.parentID + 'conditionalformatting', document));
|
|
36152
36242
|
}
|
|
36153
36243
|
this.parent.element.appendChild(createElement('div', {
|
|
36154
|
-
id: this.parentID + 'conditionalformatting'
|
|
36244
|
+
id: this.parentID + 'conditionalformatting',
|
|
36245
|
+
className: FORMAT_DIALOG
|
|
36155
36246
|
}));
|
|
36156
36247
|
var buttonModel = [
|
|
36157
36248
|
{
|
|
@@ -36186,14 +36277,14 @@ var ConditionalFormatting = /** @__PURE__ @class */ (function () {
|
|
|
36186
36277
|
showCloseIcon: false, closeOnEscape: false, enableRtl: this.parent.enableRtl, locale: this.parent.locale,
|
|
36187
36278
|
position: { X: 'center', Y: 'center' }, allowDragging: true, buttons: buttonModel,
|
|
36188
36279
|
beforeOpen: this.beforeOpen.bind(this), close: this.removeDialog.bind(this),
|
|
36189
|
-
cssClass:
|
|
36280
|
+
cssClass: this.parent.cssClass, header: this.parent.localeObj.getConstant('conditionalFormating'), target: document.body
|
|
36190
36281
|
});
|
|
36191
36282
|
}
|
|
36192
36283
|
else {
|
|
36193
36284
|
this.dialog = new Dialog({
|
|
36194
36285
|
allowDragging: true, position: { X: 'center', Y: this.parent.element.offsetTop }, buttons: buttonModel,
|
|
36195
36286
|
beforeOpen: this.beforeOpen.bind(this), close: this.removeDialog.bind(this),
|
|
36196
|
-
cssClass:
|
|
36287
|
+
cssClass: this.parent.cssClass, isModal: false, closeOnEscape: true, enableRtl: this.parent.enableRtl, locale: this.parent.locale,
|
|
36197
36288
|
showCloseIcon: true, header: this.parent.localeObj.getConstant('conditionalFormating'), target: this.parent.element
|
|
36198
36289
|
});
|
|
36199
36290
|
}
|
|
@@ -37797,12 +37888,12 @@ var Toolbar$2 = /** @__PURE__ @class */ (function () {
|
|
|
37797
37888
|
});
|
|
37798
37889
|
args.element.innerText = '';
|
|
37799
37890
|
checkbox.appendTo('#' + this.parent.element.id + '_' + 'checkBox');
|
|
37800
|
-
if ((['Pie', 'Funnel', 'Pyramid', 'Doughnut'].indexOf(this.parent.chartSettings.chartSeries.type) > -1) &&
|
|
37891
|
+
if ((['Pie', 'Funnel', 'Pyramid', 'Doughnut', 'Pareto'].indexOf(this.parent.chartSettings.chartSeries.type) > -1) &&
|
|
37801
37892
|
!args.element.classList.contains(MENU_DISABLE)) {
|
|
37802
37893
|
args.element.classList.add(MENU_DISABLE);
|
|
37803
37894
|
checkbox.disabled = true;
|
|
37804
37895
|
}
|
|
37805
|
-
else if ((['Pie', 'Funnel', 'Pyramid', 'Doughnut'].indexOf(this.parent.chartSettings.chartSeries.type) < 0) &&
|
|
37896
|
+
else if ((['Pie', 'Funnel', 'Pyramid', 'Doughnut', 'Pareto'].indexOf(this.parent.chartSettings.chartSeries.type) < 0) &&
|
|
37806
37897
|
args.element.classList.contains(MENU_DISABLE)) {
|
|
37807
37898
|
args.element.classList.remove(MENU_DISABLE);
|
|
37808
37899
|
checkbox.disabled = false;
|
|
@@ -37838,7 +37929,7 @@ var Toolbar$2 = /** @__PURE__ @class */ (function () {
|
|
|
37838
37929
|
this.showLableState = chartSettings.legendSettings.visible;
|
|
37839
37930
|
}
|
|
37840
37931
|
else {
|
|
37841
|
-
this.showLableState = ['Pie', 'Funnel', 'Pyramid', 'Doughnut'].indexOf(this.parent.chartSettings.chartSeries.type) > -1 ?
|
|
37932
|
+
this.showLableState = ['Pie', 'Funnel', 'Pyramid', 'Doughnut', 'Pareto'].indexOf(this.parent.chartSettings.chartSeries.type) > -1 ?
|
|
37842
37933
|
false : true;
|
|
37843
37934
|
}
|
|
37844
37935
|
return this.showLableState;
|
|
@@ -38321,11 +38412,11 @@ var Toolbar$2 = /** @__PURE__ @class */ (function () {
|
|
|
38321
38412
|
Toolbar$$1.prototype.changeDropDown = function (args) {
|
|
38322
38413
|
var chartSettings = JSON.parse(this.parent.getPersistData()).chartSettings;
|
|
38323
38414
|
if (!(chartSettings && chartSettings.legendSettings && chartSettings.legendSettings.visible !== undefined)) {
|
|
38324
|
-
var checked = ['Pie', 'Funnel', 'Pyramid', 'Doughnut'].indexOf(args.value.toString()) > -1 ?
|
|
38415
|
+
var checked = ['Pie', 'Funnel', 'Pyramid', 'Doughnut', 'Pareto'].indexOf(args.value.toString()) > -1 ?
|
|
38325
38416
|
false : true;
|
|
38326
38417
|
getInstance(select('#' + this.parent.element.id + '_DialogShowLabel'), CheckBox).checked = checked;
|
|
38327
38418
|
}
|
|
38328
|
-
if (['Pie', 'Funnel', 'Pyramid', 'Doughnut'].indexOf(args.value.toString()) > -1) {
|
|
38419
|
+
if (['Pie', 'Funnel', 'Pyramid', 'Doughnut', 'Pareto'].indexOf(args.value.toString()) > -1) {
|
|
38329
38420
|
getInstance(select('#' + this.parent.element.id + '_DialogMultipleAxis'), CheckBox).disabled = true;
|
|
38330
38421
|
getInstance(select('#' + this.parent.element.id + '_AxisModeOption'), DropDownList).enabled = false;
|
|
38331
38422
|
}
|
|
@@ -38357,7 +38448,7 @@ var Toolbar$2 = /** @__PURE__ @class */ (function () {
|
|
|
38357
38448
|
});
|
|
38358
38449
|
checkbox1.appendTo(select('#' + this.parent.element.id + '_DialogShowLabel', this.chartTypesDialog.element));
|
|
38359
38450
|
checkbox.appendTo(select('#' + this.parent.element.id + '_DialogMultipleAxis', this.chartTypesDialog.element));
|
|
38360
|
-
if (['Pie', 'Funnel', 'Pyramid', 'Doughnut'].indexOf(this.parent.chartSettings.chartSeries.type) > -1) {
|
|
38451
|
+
if (['Pie', 'Funnel', 'Pyramid', 'Doughnut', 'Pareto'].indexOf(this.parent.chartSettings.chartSeries.type) > -1) {
|
|
38361
38452
|
checkbox.disabled = true;
|
|
38362
38453
|
getInstance(select('#' + this.parent.element.id + '_AxisModeOption'), DropDownList).enabled = false;
|
|
38363
38454
|
}
|
|
@@ -38927,7 +39018,7 @@ var Grouping = /** @__PURE__ @class */ (function () {
|
|
|
38927
39018
|
this.parentElement = parentElement;
|
|
38928
39019
|
this.selectedCellsInfo = [];
|
|
38929
39020
|
this.isUpdate = false;
|
|
38930
|
-
var colIndex = Number(target.getAttribute('
|
|
39021
|
+
var colIndex = Number(target.getAttribute('data-colindex'));
|
|
38931
39022
|
var rowIndex = Number(target.getAttribute('index'));
|
|
38932
39023
|
var cell = this.parent.engineModule.pivotValues[rowIndex][colIndex];
|
|
38933
39024
|
var fieldName = cell.valueSort.axis.toString();
|
|
@@ -39123,7 +39214,7 @@ var Grouping = /** @__PURE__ @class */ (function () {
|
|
|
39123
39214
|
/* eslint-enable */
|
|
39124
39215
|
for (var _i = 0, selectedElements_1 = selectedElements; _i < selectedElements_1.length; _i++) {
|
|
39125
39216
|
var element = selectedElements_1[_i];
|
|
39126
|
-
var colIndex = Number(element.getAttribute('
|
|
39217
|
+
var colIndex = Number(element.getAttribute('data-colindex'));
|
|
39127
39218
|
var rowIndex = Number(element.getAttribute('index'));
|
|
39128
39219
|
var cell = this.parent.engineModule.pivotValues[rowIndex][colIndex];
|
|
39129
39220
|
if (cell && (cell.axis === axis) && !(cell.type === 'grand sum' || cell.type === 'sum') &&
|
|
@@ -39757,5 +39848,5 @@ var Grouping = /** @__PURE__ @class */ (function () {
|
|
|
39757
39848
|
* Export PivotGrid components
|
|
39758
39849
|
*/
|
|
39759
39850
|
|
|
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 };
|
|
39851
|
+
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, exportComplete, 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
39852
|
//# sourceMappingURL=ej2-pivotview.es5.js.map
|