@syncfusion/ej2-pivotview 20.2.39 → 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 +14 -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 +274 -237
- package/dist/es6/ej2-pivotview.es2015.js.map +1 -1
- package/dist/es6/ej2-pivotview.es5.js +278 -241
- 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/common/base/constant.d.ts +2 -0
- package/src/common/base/constant.js +2 -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 +16 -12
- 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/base/pivotview-model.d.ts +7 -2
- package/src/pivotview/base/pivotview.d.ts +6 -2
- package/src/pivotview/base/pivotview.js +25 -18
- package/src/pivotview/renderer/render.js +24 -14
- package/styles/bootstrap-dark.css +22 -20
- package/styles/bootstrap.css +22 -20
- package/styles/bootstrap4.css +22 -20
- package/styles/bootstrap5-dark.css +22 -20
- package/styles/bootstrap5.css +22 -20
- package/styles/fabric-dark.css +22 -20
- package/styles/fabric.css +22 -20
- package/styles/fluent-dark.css +22 -20
- package/styles/fluent.css +22 -20
- package/styles/highcontrast-light.css +22 -20
- package/styles/highcontrast.css +22 -20
- package/styles/material-dark.css +22 -20
- package/styles/material.css +22 -20
- package/styles/pivotfieldlist/_layout.scss +13 -9
- package/styles/pivotfieldlist/_theme.scss +1 -2
- package/styles/pivotfieldlist/bootstrap-dark.css +22 -20
- package/styles/pivotfieldlist/bootstrap.css +22 -20
- package/styles/pivotfieldlist/bootstrap4.css +22 -20
- package/styles/pivotfieldlist/bootstrap5-dark.css +22 -20
- package/styles/pivotfieldlist/bootstrap5.css +22 -20
- package/styles/pivotfieldlist/fabric-dark.css +22 -20
- package/styles/pivotfieldlist/fabric.css +22 -20
- package/styles/pivotfieldlist/fluent-dark.css +22 -20
- package/styles/pivotfieldlist/fluent.css +22 -20
- package/styles/pivotfieldlist/highcontrast-light.css +22 -20
- package/styles/pivotfieldlist/highcontrast.css +22 -20
- package/styles/pivotfieldlist/material-dark.css +22 -20
- package/styles/pivotfieldlist/material.css +22 -20
- package/styles/pivotfieldlist/tailwind-dark.css +22 -20
- package/styles/pivotfieldlist/tailwind.css +22 -20
- package/styles/tailwind-dark.css +22 -20
- package/styles/tailwind.css +22 -20
|
@@ -5970,6 +5970,8 @@ var afterPivotTableRender = 'afterPivotTableRender';
|
|
|
5970
5970
|
/** @hidden */
|
|
5971
5971
|
var beforeExport = 'beforeExport';
|
|
5972
5972
|
/** @hidden */
|
|
5973
|
+
var exportComplete = 'exportComplete';
|
|
5974
|
+
/** @hidden */
|
|
5973
5975
|
var excelHeaderQueryCellInfo = 'excelHeaderQueryCellInfo';
|
|
5974
5976
|
/** @hidden */
|
|
5975
5977
|
var pdfHeaderQueryCellInfo = 'pdfHeaderQueryCellInfo';
|
|
@@ -6646,13 +6648,11 @@ var CALC_FORMAT_INPUT = 'e-custom-format-input';
|
|
|
6646
6648
|
/** @hidden */
|
|
6647
6649
|
var CALCINPUTDIV = 'e-pivot-calc-input-div';
|
|
6648
6650
|
/** @hidden */
|
|
6649
|
-
var
|
|
6650
|
-
/** @hidden */
|
|
6651
|
-
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';
|
|
6652
6652
|
/** @hidden */
|
|
6653
6653
|
var CALC_HIERARCHY_LIST_DIV = 'e-olap-calc-hierarchy-list-div';
|
|
6654
6654
|
/** @hidden */
|
|
6655
|
-
var CALC_FORMAT_TYPE_DIV = 'e-
|
|
6655
|
+
var CALC_FORMAT_TYPE_DIV = 'e-pivot-calc-format-type-div';
|
|
6656
6656
|
/** @hidden */
|
|
6657
6657
|
var CALC_MEMBER_TYPE_DIV = 'e-olap-calc-member-type-div';
|
|
6658
6658
|
/** @hidden */
|
|
@@ -6722,7 +6722,7 @@ var PIVOT_FORMULA_TITLE_CLASS = 'e-pivot-formula-title';
|
|
|
6722
6722
|
/** @hidden */
|
|
6723
6723
|
var OLAP_HIERARCHY_TITLE_CLASS = 'e-olap-hierarchy-title';
|
|
6724
6724
|
/** @hidden */
|
|
6725
|
-
var
|
|
6725
|
+
var PIVOT_FORMAT_TITLE_CLASS = 'e-pivot-format-title';
|
|
6726
6726
|
/** @hidden */
|
|
6727
6727
|
var OLAP_MEMBER_TITLE_CLASS = 'e-olap-member-title';
|
|
6728
6728
|
/** @hidden */
|
|
@@ -7737,12 +7737,22 @@ var Render = /** @__PURE__ @class */ (function () {
|
|
|
7737
7737
|
this.parent.lastColumn.width = 'auto';
|
|
7738
7738
|
this.parent.lastColumn = undefined;
|
|
7739
7739
|
}
|
|
7740
|
+
var exportCompleteEventArgs = {
|
|
7741
|
+
type: 'PDF',
|
|
7742
|
+
promise: args.promise
|
|
7743
|
+
};
|
|
7744
|
+
this.parent.trigger(exportComplete, exportCompleteEventArgs);
|
|
7740
7745
|
};
|
|
7741
7746
|
Render.prototype.excelExportComplete = function (args) {
|
|
7742
7747
|
if (this.parent.lastColumn !== undefined && this.parent.lastColumn.width !== 'auto') {
|
|
7743
7748
|
this.parent.lastColumn.width = 'auto';
|
|
7744
7749
|
this.parent.lastColumn = undefined;
|
|
7745
7750
|
}
|
|
7751
|
+
var exportCompleteEventArgs = {
|
|
7752
|
+
type: 'Excel/CSV',
|
|
7753
|
+
promise: args.promise
|
|
7754
|
+
};
|
|
7755
|
+
this.parent.trigger(exportComplete, exportCompleteEventArgs);
|
|
7746
7756
|
};
|
|
7747
7757
|
/* eslint-enable */
|
|
7748
7758
|
Render.prototype.dataBound = function (args) {
|
|
@@ -7834,7 +7844,7 @@ var Render = /** @__PURE__ @class */ (function () {
|
|
|
7834
7844
|
isGroupElement = true;
|
|
7835
7845
|
}
|
|
7836
7846
|
var rowIndex = Number(elem.getAttribute('index'));
|
|
7837
|
-
var colIndex = Number(elem.getAttribute('
|
|
7847
|
+
var colIndex = Number(elem.getAttribute('data-colindex'));
|
|
7838
7848
|
var pivotValue1 = this_1.parent.pivotValues[rowIndex][colIndex];
|
|
7839
7849
|
var selectedID = item.id;
|
|
7840
7850
|
switch (selectedID) {
|
|
@@ -7906,7 +7916,7 @@ var Render = /** @__PURE__ @class */ (function () {
|
|
|
7906
7916
|
if (groupField && groupField.type === 'Custom' || (this_1.parent.engineModule.fieldList[fieldName].isCustomField && fieldName.indexOf('_custom_group') > -1)) {
|
|
7907
7917
|
groupField = PivotUtil.getFieldByName(fieldName.replace('_custom_group', ''), this_1.parent.dataSourceSettings.groupSettings);
|
|
7908
7918
|
if (groupField) {
|
|
7909
|
-
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'))];
|
|
7910
7920
|
var selectedCellsInfo = this_1.parent.groupingModule.getSelectedCells(cell.axis, fieldName, cell.actualText.toString());
|
|
7911
7921
|
selectedCellsInfo.push({ axis: cell.axis, fieldName: fieldName, name: cell.actualText.toString(), cellInfo: cell });
|
|
7912
7922
|
var selectedOptions = this_1.parent.groupingModule.getSelectedOptions(selectedCellsInfo);
|
|
@@ -8115,7 +8125,7 @@ var Render = /** @__PURE__ @class */ (function () {
|
|
|
8115
8125
|
ele = target.parentElement.parentElement;
|
|
8116
8126
|
}
|
|
8117
8127
|
var rowIndx = Number(ele.getAttribute('index'));
|
|
8118
|
-
var colIndx = Number(ele.getAttribute('
|
|
8128
|
+
var colIndx = Number(ele.getAttribute('data-colindex'));
|
|
8119
8129
|
var pivotValue = this.parent.pivotValues[rowIndx][colIndx];
|
|
8120
8130
|
var aggregateType;
|
|
8121
8131
|
if (args.item.id.indexOf(this.parent.element.id + '_Agg') > -1) {
|
|
@@ -8259,7 +8269,7 @@ var Render = /** @__PURE__ @class */ (function () {
|
|
|
8259
8269
|
var fieldName = target.getAttribute('fieldName');
|
|
8260
8270
|
if (!fieldName || fieldName == '') {
|
|
8261
8271
|
var rowIndx = Number(target.getAttribute('index'));
|
|
8262
|
-
var colIndx = Number(target.getAttribute('
|
|
8272
|
+
var colIndx = Number(target.getAttribute('data-colindex'));
|
|
8263
8273
|
fieldName = this.engine.pivotValues[rowIndx][colIndx].actualText;
|
|
8264
8274
|
}
|
|
8265
8275
|
var valuefields = this.parent.dataSourceSettings.values;
|
|
@@ -8447,7 +8457,7 @@ var Render = /** @__PURE__ @class */ (function () {
|
|
|
8447
8457
|
var selectedElements = this.parent.element.querySelectorAll('.' + CELL_SELECTED_BGCOLOR + ',.' + SELECTED_BGCOLOR);
|
|
8448
8458
|
for (var _i = 0, selectedElements_1 = selectedElements; _i < selectedElements_1.length; _i++) {
|
|
8449
8459
|
var element = selectedElements_1[_i];
|
|
8450
|
-
var colIndex = Number(element.getAttribute('
|
|
8460
|
+
var colIndex = Number(element.getAttribute('data-colindex'));
|
|
8451
8461
|
var rowIndex = Number(element.getAttribute('index'));
|
|
8452
8462
|
var cell = this.engine.pivotValues[rowIndex][colIndex];
|
|
8453
8463
|
if (cell) {
|
|
@@ -8490,7 +8500,7 @@ var Render = /** @__PURE__ @class */ (function () {
|
|
|
8490
8500
|
var isRowFieldsAvail = cell.valueSort && cell.valueSort.levelName === (this.parent.dataSourceSettings.rows.length === 0 && this.parent.dataSourceSettings.valueAxis === 'row' &&
|
|
8491
8501
|
this.parent.localeObj.getConstant('grandTotal') + (this.parent.dataSourceSettings.valueSortSettings.headerDelimiter) + (cell.formattedText));
|
|
8492
8502
|
tCell.setAttribute('index', cell.rowIndex ? cell.rowIndex.toString() : '0');
|
|
8493
|
-
if (tCell.getAttribute('
|
|
8503
|
+
if (tCell.getAttribute('data-colindex') === '0') {
|
|
8494
8504
|
if (this.parent.dataType === 'pivot') {
|
|
8495
8505
|
var isValueCell = cell.type && cell.type === 'value';
|
|
8496
8506
|
tCell.innerText = '';
|
|
@@ -8594,15 +8604,15 @@ var Render = /** @__PURE__ @class */ (function () {
|
|
|
8594
8604
|
var innerText = tCell.innerText;
|
|
8595
8605
|
tCell.innerText = '';
|
|
8596
8606
|
tCell.classList.add(VALUESCONTENT);
|
|
8597
|
-
cell = args.data[Number(tCell.getAttribute('
|
|
8607
|
+
cell = args.data[Number(tCell.getAttribute('data-colindex'))];
|
|
8598
8608
|
cell = isNullOrUndefined(cell) ? args.column.customAttributes.cell : cell;
|
|
8599
8609
|
cell.isGrandSum = isRowFieldsAvail ? true : cell.isGrandSum;
|
|
8600
8610
|
if (cell.isSum) {
|
|
8601
8611
|
tCell.classList.add(SUMMARY);
|
|
8602
8612
|
}
|
|
8603
8613
|
var isGrandSum = (isNullOrUndefined(cell.isGrandSum) && (!isNullOrUndefined(this.parent.olapEngineModule) && this.parent.olapEngineModule.olapValueAxis === 'column') && this.parent.dataType === 'olap' &&
|
|
8604
|
-
((this.colGrandPos - this.parent.dataSourceSettings.values.length) < Number(tCell.getAttribute('
|
|
8605
|
-
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'))) {
|
|
8606
8616
|
tCell.classList.add('e-gtot');
|
|
8607
8617
|
}
|
|
8608
8618
|
else if (this.parent.dataType === 'olap' ? cell.isSum : this.validateColumnTotalcell(cell.colIndex)) {
|
|
@@ -8618,12 +8628,12 @@ var Render = /** @__PURE__ @class */ (function () {
|
|
|
8618
8628
|
'<a data-url="' + innerText + '" class="e-hyperlinkcell ' + customClass + '">' + innerText + '</a>' : innerText)
|
|
8619
8629
|
}));
|
|
8620
8630
|
if (this.parent.gridSettings.allowReordering && !this.parent.showGroupingBar) {
|
|
8621
|
-
tCell.setAttribute('
|
|
8631
|
+
tCell.setAttribute('data-colindex', args.column.customAttributes.cell.colIndex.toString());
|
|
8622
8632
|
}
|
|
8623
8633
|
}
|
|
8624
8634
|
if (this.parent.cellTemplate) {
|
|
8625
8635
|
var index = tCell.getAttribute('index');
|
|
8626
|
-
var colindex = tCell.getAttribute('
|
|
8636
|
+
var colindex = tCell.getAttribute('data-colindex');
|
|
8627
8637
|
var element = this.parent.getCellTemplate()({ targetCell: tCell, cellInfo: cell }, this.parent, 'cellTemplate', this.parent.element.id + '_cellTemplate', null, null, tCell);
|
|
8628
8638
|
if (element && element !== '' && element.length > 0) {
|
|
8629
8639
|
if (this.parent.enableHtmlSanitizer) {
|
|
@@ -8792,7 +8802,7 @@ var Render = /** @__PURE__ @class */ (function () {
|
|
|
8792
8802
|
args.node.style.borderBottomWidth = '0px';
|
|
8793
8803
|
}
|
|
8794
8804
|
}
|
|
8795
|
-
args.node.setAttribute('
|
|
8805
|
+
args.node.setAttribute('data-colindex', cell.colIndex.toString());
|
|
8796
8806
|
args.node.setAttribute('index', cell.rowIndex.toString());
|
|
8797
8807
|
var fieldName = void 0;
|
|
8798
8808
|
if (this.parent.dataType === 'pivot') {
|
|
@@ -8883,7 +8893,7 @@ var Render = /** @__PURE__ @class */ (function () {
|
|
|
8883
8893
|
tCell = this.appendValueSortIcon(cell, tCell, cell.rowIndex, cell.colIndex);
|
|
8884
8894
|
if (this.parent.cellTemplate) {
|
|
8885
8895
|
var index = tCell.getAttribute('index');
|
|
8886
|
-
var colindex = tCell.getAttribute('
|
|
8896
|
+
var colindex = tCell.getAttribute('data-colindex');
|
|
8887
8897
|
this.parent.gridHeaderCellInfo.push({ targetCell: tCell });
|
|
8888
8898
|
}
|
|
8889
8899
|
var len = this.parent.dataSourceSettings.values.length;
|
|
@@ -8966,7 +8976,7 @@ var Render = /** @__PURE__ @class */ (function () {
|
|
|
8966
8976
|
cell = (cell.className.indexOf('e-headercelldiv') > -1 ? cell.parentElement : cell);
|
|
8967
8977
|
var args = {
|
|
8968
8978
|
currentCell: cell,
|
|
8969
|
-
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'))],
|
|
8970
8980
|
cancel: true,
|
|
8971
8981
|
nativeEvent: e
|
|
8972
8982
|
};
|
|
@@ -13387,7 +13397,7 @@ var KeyboardInteraction = /** @__PURE__ @class */ (function () {
|
|
|
13387
13397
|
if (this.parent.grid && this.parent.gridSettings.allowSelection && this.parent.gridSettings.selectionSettings.mode !== 'Row' &&
|
|
13388
13398
|
!target.classList.contains('e-numerictextbox')) {
|
|
13389
13399
|
var control_1 = this.parent;
|
|
13390
|
-
var colIndex_1 = Number(e.target.getAttribute('
|
|
13400
|
+
var colIndex_1 = Number(e.target.getAttribute('data-colindex'));
|
|
13391
13401
|
var rowIndex_1 = Number(e.target.getAttribute('index'));
|
|
13392
13402
|
var ele_1;
|
|
13393
13403
|
/* eslint-disable */
|
|
@@ -13397,7 +13407,7 @@ var KeyboardInteraction = /** @__PURE__ @class */ (function () {
|
|
|
13397
13407
|
control_1.renderModule.rowStartPos !== rowIndex_1)) ? null : this.getParentElement(control_1, ele_1, colIndex_1, rowIndex_1 - 1);
|
|
13398
13408
|
}
|
|
13399
13409
|
else if (e.action === 'shiftDown' || e.action === 'downArrow') {
|
|
13400
|
-
ele_1 = control_1.element.querySelector('th[
|
|
13410
|
+
ele_1 = control_1.element.querySelector('th[data-colindex="' + colIndex_1 + '"][index="' + (rowIndex_1 + 1) + '"]');
|
|
13401
13411
|
}
|
|
13402
13412
|
else if (e.action === 'shiftLeft' || e.action === 'leftArrow') {
|
|
13403
13413
|
ele_1 = e.target.previousSibling;
|
|
@@ -13408,7 +13418,7 @@ var KeyboardInteraction = /** @__PURE__ @class */ (function () {
|
|
|
13408
13418
|
}
|
|
13409
13419
|
if (!isNullOrUndefined(ele_1)) {
|
|
13410
13420
|
if (control_1.gridSettings.selectionSettings.mode === 'Both' ? !ele_1.classList.contains(ROW_CELL_CLASS) : true) {
|
|
13411
|
-
colIndex_1 = Number(ele_1.getAttribute('
|
|
13421
|
+
colIndex_1 = Number(ele_1.getAttribute('data-colindex'));
|
|
13412
13422
|
rowIndex_1 = Number(ele_1.getAttribute('index'));
|
|
13413
13423
|
var colSpan_1 = Number(ele_1.getAttribute('aria-colspan'));
|
|
13414
13424
|
control_1.clearSelection(ele_1, e, colIndex_1, rowIndex_1);
|
|
@@ -13430,11 +13440,11 @@ var KeyboardInteraction = /** @__PURE__ @class */ (function () {
|
|
|
13430
13440
|
}
|
|
13431
13441
|
else {
|
|
13432
13442
|
if (e.action === 'upArrow') {
|
|
13433
|
-
ele_1 = control_1.element.querySelector('[
|
|
13443
|
+
ele_1 = control_1.element.querySelector('[data-colindex="' + colIndex_1 + '"][index="' + (rowIndex_1 - 1) + '"]');
|
|
13434
13444
|
rowIndex_1--;
|
|
13435
13445
|
}
|
|
13436
13446
|
else if (e.action === 'downArrow') {
|
|
13437
|
-
ele_1 = control_1.element.querySelector('[
|
|
13447
|
+
ele_1 = control_1.element.querySelector('[data-colindex="' + colIndex_1 + '"][index="' + (rowIndex_1 + 1) + '"]');
|
|
13438
13448
|
rowIndex_1++;
|
|
13439
13449
|
}
|
|
13440
13450
|
if (!isNullOrUndefined(ele_1)) {
|
|
@@ -13464,7 +13474,7 @@ var KeyboardInteraction = /** @__PURE__ @class */ (function () {
|
|
|
13464
13474
|
};
|
|
13465
13475
|
KeyboardInteraction.prototype.getParentElement = function (control, ele, colIndex, rowIndex) {
|
|
13466
13476
|
while (!ele) {
|
|
13467
|
-
ele = control.element.querySelector('[
|
|
13477
|
+
ele = control.element.querySelector('[data-colindex="' + colIndex + '"][index="' + rowIndex + '"]');
|
|
13468
13478
|
colIndex--;
|
|
13469
13479
|
}
|
|
13470
13480
|
return ele;
|
|
@@ -14702,7 +14712,7 @@ var DrillThrough = /** @__PURE__ @class */ (function () {
|
|
|
14702
14712
|
}
|
|
14703
14713
|
if (ele) {
|
|
14704
14714
|
if (this.parent.allowDrillThrough && ele.classList.contains('e-valuescontent') || this.parent.editSettings.allowEditing) {
|
|
14705
|
-
var colIndex = Number(ele.getAttribute('
|
|
14715
|
+
var colIndex = Number(ele.getAttribute('data-colindex'));
|
|
14706
14716
|
var rowIndex = Number(ele.getAttribute('index'));
|
|
14707
14717
|
this.executeDrillThrough(this.parent.pivotValues[rowIndex][colIndex], rowIndex, colIndex, ele);
|
|
14708
14718
|
}
|
|
@@ -14897,7 +14907,7 @@ var PivotChart = /** @__PURE__ @class */ (function () {
|
|
|
14897
14907
|
if (!this.parent.chart && (this.parent.element.querySelector('.e-chart') || this.parent.element.querySelector('.e-accumulationchart'))) {
|
|
14898
14908
|
remove(select('#' + this.parent.element.id + '_chart', this.parent.element));
|
|
14899
14909
|
}
|
|
14900
|
-
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') {
|
|
14901
14911
|
this.measureList = this.dataSourceSettings.values.map(function (item) { return item.name; });
|
|
14902
14912
|
}
|
|
14903
14913
|
else {
|
|
@@ -14977,7 +14987,7 @@ var PivotChart = /** @__PURE__ @class */ (function () {
|
|
|
14977
14987
|
this.columnGroupObject = {};
|
|
14978
14988
|
this.accEmptyPoint = false;
|
|
14979
14989
|
var pivotValues = this.engineModule.pivotValues;
|
|
14980
|
-
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] :
|
|
14981
14991
|
(((chartSettings.value === '' || this.dataSourceSettings.values.filter(function (item) {
|
|
14982
14992
|
return item.name === chartSettings.value;
|
|
14983
14993
|
}).length === 0) && this.dataSourceSettings.values.length > 0) ? this.dataSourceSettings.values[0].name : chartSettings.value);
|
|
@@ -15021,7 +15031,7 @@ var PivotChart = /** @__PURE__ @class */ (function () {
|
|
|
15021
15031
|
header.valueSort.levelName.toString().split(this.parent.dataSourceSettings.valueSortSettings.headerDelimiter) : undefined;
|
|
15022
15032
|
isValidHeader = false;
|
|
15023
15033
|
if (valueSort && valueSort[0] !== 'Grand Total') {
|
|
15024
|
-
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') ||
|
|
15025
15035
|
valueSort.indexOf(measureNames[this.currentMeasure]) > -1) {
|
|
15026
15036
|
isValidHeader = true;
|
|
15027
15037
|
}
|
|
@@ -15147,7 +15157,7 @@ var PivotChart = /** @__PURE__ @class */ (function () {
|
|
|
15147
15157
|
var actualText = (this.parent.dataType === 'olap' && tupInfo && tupInfo.measureName) ?
|
|
15148
15158
|
tupInfo.measureName : cell.actualText;
|
|
15149
15159
|
if (!(this.parent.dataType === 'olap' && cell.isGrandSum) && !totColIndex[cell.colIndex] && cell.axis === 'value' && firstRowCell.type !== 'header' &&
|
|
15150
|
-
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)) {
|
|
15151
15161
|
if (isNullOrUndefined(firstRowCell.members)) {
|
|
15152
15162
|
firstRowCell.members = [];
|
|
15153
15163
|
}
|
|
@@ -15347,7 +15357,7 @@ var PivotChart = /** @__PURE__ @class */ (function () {
|
|
|
15347
15357
|
className: PIVOTCHART, id: this.parent.element.id + '_chart'
|
|
15348
15358
|
}));
|
|
15349
15359
|
}
|
|
15350
|
-
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') {
|
|
15351
15361
|
this.parent.element.querySelector('.' + PIVOTCHART).innerHTML = '';
|
|
15352
15362
|
this.chartElement = this.parent.element.querySelector('.' + PIVOTCHART).appendChild(createElement('div', {
|
|
15353
15363
|
className: PIVOTCHART_INNER, id: this.parent.element.id + '_chartInner',
|
|
@@ -15368,7 +15378,7 @@ var PivotChart = /** @__PURE__ @class */ (function () {
|
|
|
15368
15378
|
}
|
|
15369
15379
|
var height = this.getChartHeight();
|
|
15370
15380
|
if (this.parent.chartSettings.enableScrollOnMultiAxis && this.parent.chartSettings.enableMultipleAxis &&
|
|
15371
|
-
this.accumulationType.indexOf(type) < 0) {
|
|
15381
|
+
this.accumulationType.indexOf(type) < 0 && this.chartSettings.chartSeries.type !== 'Pareto') {
|
|
15372
15382
|
this.parent.element.querySelector('.' + PIVOTCHART).style.height =
|
|
15373
15383
|
(height === 'auto' ? this.getChartAutoHeight() : height) + 'px';
|
|
15374
15384
|
this.parent.element.querySelector('.' + PIVOTCHART).style.width = width + 'px';
|
|
@@ -15379,7 +15389,7 @@ var PivotChart = /** @__PURE__ @class */ (function () {
|
|
|
15379
15389
|
}
|
|
15380
15390
|
if (this.parent.chart && ((this.parent.chart.getModuleName() === 'accumulationchart' &&
|
|
15381
15391
|
this.accumulationType.indexOf(type) < 0) || (this.parent.chart.getModuleName() === 'chart' &&
|
|
15382
|
-
this.accumulationType.indexOf(type) > -1))) {
|
|
15392
|
+
this.accumulationType.indexOf(type) > -1 && this.chartSettings.chartSeries.type !== 'Pareto'))) {
|
|
15383
15393
|
this.parent.chart.destroy();
|
|
15384
15394
|
if (select('#' + this.parent.element.id + '_chart', this.parent.element)) {
|
|
15385
15395
|
select('#' + this.parent.element.id + '_chart', this.parent.element).innerHTML = '';
|
|
@@ -15458,7 +15468,7 @@ var PivotChart = /** @__PURE__ @class */ (function () {
|
|
|
15458
15468
|
zoomSettings: currentZoomSettings,
|
|
15459
15469
|
axes: (type === 'Polar' || type === 'Radar') ? [] : axesWithRows.axes,
|
|
15460
15470
|
rows: (type === 'Polar' || type === 'Radar') ? [{}] :
|
|
15461
|
-
(type === 'Bar' || type === 'StackingBar' || type === 'StackingBar100' &&
|
|
15471
|
+
(type === 'Bar' || type === 'StackingBar' || type === 'StackingBar100' || type === 'Pareto' &&
|
|
15462
15472
|
this.chartSettings.enableMultipleAxis) ? [{ height: '100%' }] : axesWithRows.rows,
|
|
15463
15473
|
columns: (type === 'Polar' || type === 'Radar') ? [{}] :
|
|
15464
15474
|
(type === 'Bar' || type === 'StackingBar' || type === 'StackingBar100' &&
|
|
@@ -15468,7 +15478,7 @@ var PivotChart = /** @__PURE__ @class */ (function () {
|
|
|
15468
15478
|
width: width,
|
|
15469
15479
|
height: (this.parent.chartSettings.chartSeries.type !== 'Polar' &&
|
|
15470
15480
|
this.parent.chartSettings.chartSeries.type !== 'Radar' && this.parent.chartSettings.enableScrollOnMultiAxis &&
|
|
15471
|
-
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) ?
|
|
15472
15482
|
Number(height) > (this.parent.dataSourceSettings.values.length * 235) + 100 ? isNaN(Number(height)) ?
|
|
15473
15483
|
height.toString() : (Number(height) - 5).toString() :
|
|
15474
15484
|
(!isNaN(Number(height)) || this.parent.dataSourceSettings.values.length > 1) ?
|
|
@@ -15569,6 +15579,10 @@ var PivotChart = /** @__PURE__ @class */ (function () {
|
|
|
15569
15579
|
this.parent.chart.rows = [{ height: '100%' }];
|
|
15570
15580
|
this.parent.chart.columns = axesWithRows.columns;
|
|
15571
15581
|
}
|
|
15582
|
+
else if (type === 'Pareto' && this.chartSettings.enableMultipleAxis) {
|
|
15583
|
+
this.parent.chart.rows = [{ height: '100%' }];
|
|
15584
|
+
this.parent.chart.columns = [{ width: '100%' }];
|
|
15585
|
+
}
|
|
15572
15586
|
else {
|
|
15573
15587
|
this.parent.chart.rows = axesWithRows.rows;
|
|
15574
15588
|
this.parent.chart.columns = [{ width: '100%' }];
|
|
@@ -15972,7 +15986,7 @@ var PivotChart = /** @__PURE__ @class */ (function () {
|
|
|
15972
15986
|
};
|
|
15973
15987
|
PivotChart.prototype.tooltipRender = function (args) {
|
|
15974
15988
|
var measure = args.series.yAxisName ? (args.series.yAxisName.split('_CumulativeAxis')[0]) :
|
|
15975
|
-
((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') ?
|
|
15976
15990
|
args.series.name ? args.series.name.split(' | ')[1] : args.data.seriesName ?
|
|
15977
15991
|
args.data.seriesName.split(' | ')[1] : this.currentMeasure : this.measuresNames[this.currentMeasure] ?
|
|
15978
15992
|
this.measuresNames[this.currentMeasure] : this.currentMeasure);
|
|
@@ -16044,7 +16058,7 @@ var PivotChart = /** @__PURE__ @class */ (function () {
|
|
|
16044
16058
|
}
|
|
16045
16059
|
}
|
|
16046
16060
|
if (this.parent.chartSettings.enableScrollOnMultiAxis && this.parent.chartSettings.enableMultipleAxis) {
|
|
16047
|
-
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) {
|
|
16048
16062
|
this.parent.element.querySelector('.' + PIVOTCHART).style.overflow = 'visible';
|
|
16049
16063
|
}
|
|
16050
16064
|
else {
|
|
@@ -16476,7 +16490,7 @@ var PivotChart = /** @__PURE__ @class */ (function () {
|
|
|
16476
16490
|
/* eslint-disable */
|
|
16477
16491
|
/** @hidden */
|
|
16478
16492
|
PivotChart.prototype.getResizedChartHeight = function () {
|
|
16479
|
-
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 &&
|
|
16480
16494
|
this.parent.chartSettings.enableScrollOnMultiAxis && this.parent.chartSettings.enableMultipleAxis &&
|
|
16481
16495
|
this.parent.dataSourceSettings.values.length > 0 ? Number(this.parent.chart.height) > (this.parent.dataSourceSettings.values.length * 235) + 100 ? /* eslint-disable-line */
|
|
16482
16496
|
isNaN(Number(this.getChartHeight())) ? this.getChartHeight().toString() : (Number(this.getChartHeight()) - 5).toString() :
|
|
@@ -24854,7 +24868,7 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
|
|
|
24854
24868
|
*/
|
|
24855
24869
|
PivotView.prototype.excelExport = function (excelExportProperties, isMultipleExport, workbook, isBlob) {
|
|
24856
24870
|
if (this.enableVirtualization && this.dataSourceSettings.mode !== 'Server') {
|
|
24857
|
-
this.excelExportModule.exportToExcel('Excel', excelExportProperties);
|
|
24871
|
+
this.excelExportModule.exportToExcel('Excel', excelExportProperties, isBlob);
|
|
24858
24872
|
}
|
|
24859
24873
|
else {
|
|
24860
24874
|
this.exportType = 'Excel';
|
|
@@ -24879,7 +24893,7 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
|
|
|
24879
24893
|
*/
|
|
24880
24894
|
PivotView.prototype.csvExport = function (excelExportProperties, isMultipleExport, workbook, isBlob) {
|
|
24881
24895
|
if (this.enableVirtualization && this.dataSourceSettings.mode !== 'Server') {
|
|
24882
|
-
this.excelExportModule.exportToExcel('CSV', excelExportProperties);
|
|
24896
|
+
this.excelExportModule.exportToExcel('CSV', excelExportProperties, isBlob);
|
|
24883
24897
|
}
|
|
24884
24898
|
else {
|
|
24885
24899
|
this.exportType = 'CSV';
|
|
@@ -24904,7 +24918,7 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
|
|
|
24904
24918
|
*/
|
|
24905
24919
|
PivotView.prototype.pdfExport = function (pdfExportProperties, isMultipleExport, pdfDoc, isBlob) {
|
|
24906
24920
|
if (this.enableVirtualization && this.dataSourceSettings.mode !== 'Server') {
|
|
24907
|
-
this.pdfExportModule.exportToPDF(pdfExportProperties);
|
|
24921
|
+
this.pdfExportModule.exportToPDF(pdfExportProperties, isBlob);
|
|
24908
24922
|
}
|
|
24909
24923
|
else {
|
|
24910
24924
|
this.grid.pdfExport(pdfExportProperties, isMultipleExport, pdfDoc, isBlob);
|
|
@@ -24970,7 +24984,7 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
|
|
|
24970
24984
|
}
|
|
24971
24985
|
if (this.dataType === 'pivot') {
|
|
24972
24986
|
var clonedDrillMembers_1 = PivotUtil.cloneDrillMemberSettings(this.dataSourceSettings.drilledMembers);
|
|
24973
|
-
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'));
|
|
24974
24988
|
var rowIndex = axis === 'row' ? Number(closest(target, 'td').getAttribute('index')) : Number(closest(target, 'th').getAttribute('index'));
|
|
24975
24989
|
var currentCell = chartDrillInfo ? chartDrillInfo.cell :
|
|
24976
24990
|
this.engineModule.pivotValues[rowIndex][colIndex];
|
|
@@ -25078,7 +25092,7 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
|
|
|
25078
25092
|
currentCell = chartDrillInfo.cell;
|
|
25079
25093
|
}
|
|
25080
25094
|
else {
|
|
25081
|
-
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'));
|
|
25082
25096
|
var rowIndex = axis === 'row' ? Number(closest(target, 'td').getAttribute('index')) : Number(closest(target, 'th').getAttribute('index'));
|
|
25083
25097
|
currentCell = this.olapEngineModule.pivotValues[rowIndex][colIndex];
|
|
25084
25098
|
}
|
|
@@ -25381,6 +25395,10 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
|
|
|
25381
25395
|
(mCntVScrollPos === mCntScrollPos ? (mCntScrollPos - hScrollPos) :
|
|
25382
25396
|
(mCntScrollPos < mCntVScrollPos && (hScrollPos === mCntVScrollPos || hScrollPos > mCntScrollPos) ?
|
|
25383
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
|
+
}
|
|
25384
25402
|
horiOffset = (ele.scrollLeft > this.scrollerBrowserLimit) ?
|
|
25385
25403
|
(mCnt.querySelector('.' + TABLE).style.transform.split(',')[0].trim() + ',') :
|
|
25386
25404
|
'translate(' + -(((ele.scrollLeft * this.horizontalScrollScale) -
|
|
@@ -25423,7 +25441,7 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
|
|
|
25423
25441
|
}
|
|
25424
25442
|
};
|
|
25425
25443
|
PivotView.prototype.setToolTip = function (args) {
|
|
25426
|
-
var colIndex = Number(args.target.getAttribute('
|
|
25444
|
+
var colIndex = Number(args.target.getAttribute('data-colindex'));
|
|
25427
25445
|
var rowIndex = Number(args.target.getAttribute('index'));
|
|
25428
25446
|
var cell = (this.dataSourceSettings.values.length > 0 && this.pivotValues &&
|
|
25429
25447
|
this.pivotValues[rowIndex] && this.pivotValues[rowIndex][colIndex]) ?
|
|
@@ -25620,7 +25638,7 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
|
|
|
25620
25638
|
var ele_1 = e.target;
|
|
25621
25639
|
var axis = (ele_1.parentElement.classList.contains(ROWSHEADER) || ele_1.classList.contains(ROWSHEADER)) ? 'row' : 'column';
|
|
25622
25640
|
ele_1 = axis === 'column' ? closest(ele_1, 'th') : closest(ele_1, 'td');
|
|
25623
|
-
var colIndex = Number(ele_1.getAttribute('
|
|
25641
|
+
var colIndex = Number(ele_1.getAttribute('data-colindex'));
|
|
25624
25642
|
var rowIndex = Number(ele_1.getAttribute('index'));
|
|
25625
25643
|
var selectArgs = {
|
|
25626
25644
|
cancel: false,
|
|
@@ -25697,7 +25715,7 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
|
|
|
25697
25715
|
if (this.actionBeginMethod()) {
|
|
25698
25716
|
return;
|
|
25699
25717
|
}
|
|
25700
|
-
var colIndex = Number(ele.getAttribute('
|
|
25718
|
+
var colIndex = Number(ele.getAttribute('data-colindex'));
|
|
25701
25719
|
var rowIndex = Number(ele.getAttribute('index'));
|
|
25702
25720
|
if (this.dataSourceSettings.valueAxis === 'row' && (this.dataSourceSettings.values.length > 1 || this.dataSourceSettings.alwaysShowValueHeader)) {
|
|
25703
25721
|
var header = this.pivotValues[rowIndex][colIndex];
|
|
@@ -25711,13 +25729,13 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
|
|
|
25711
25729
|
}
|
|
25712
25730
|
}
|
|
25713
25731
|
else if (this.dataSourceSettings.valueAxis === 'column' && (this.dataSourceSettings.values.length > 1 || this.dataSourceSettings.alwaysShowValueHeader)) {
|
|
25714
|
-
colIndex = (Number(ele.getAttribute('
|
|
25732
|
+
colIndex = (Number(ele.getAttribute('data-colindex')) + Number(ele.getAttribute('aria-colspan')) - 1);
|
|
25715
25733
|
rowIndex = this.engineModule.headerContent.length - 1;
|
|
25716
25734
|
}
|
|
25717
25735
|
this.setProperties({
|
|
25718
25736
|
dataSourceSettings: {
|
|
25719
25737
|
valueSortSettings: {
|
|
25720
|
-
columnIndex: (Number(ele.getAttribute('
|
|
25738
|
+
columnIndex: (Number(ele.getAttribute('data-colindex')) +
|
|
25721
25739
|
Number(ele.getAttribute('aria-colspan')) - 1),
|
|
25722
25740
|
sortOrder: this.dataSourceSettings.valueSortSettings.sortOrder === 'Descending' ? 'Ascending' : 'Descending',
|
|
25723
25741
|
headerText: this.pivotValues[rowIndex][colIndex].valueSort.levelName,
|
|
@@ -26066,7 +26084,7 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
|
|
|
26066
26084
|
}
|
|
26067
26085
|
/* eslint-disable */
|
|
26068
26086
|
if (ele && !isNullOrUndefined(this.pivotValues) && this.pivotValues.length > 0) {
|
|
26069
|
-
var colIndex_1 = Number(ele.getAttribute('
|
|
26087
|
+
var colIndex_1 = Number(ele.getAttribute('data-colindex'));
|
|
26070
26088
|
var rowIndex_1 = Number(ele.getAttribute('index'));
|
|
26071
26089
|
var colSpan_1 = Number(ele.getAttribute('aria-colspan'));
|
|
26072
26090
|
var selectArgs = {
|
|
@@ -26236,10 +26254,10 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
|
|
|
26236
26254
|
for (var _i = 0, _a = [].slice.call(this.element.querySelectorAll('.' + CELL_ACTIVE_BGCOLOR)); _i < _a.length; _i++) {
|
|
26237
26255
|
var ele = _a[_i];
|
|
26238
26256
|
removeClass([ele], [CELL_ACTIVE_BGCOLOR, SELECTED_BGCOLOR]);
|
|
26239
|
-
if (activeColumns.indexOf(ele.getAttribute('
|
|
26257
|
+
if (activeColumns.indexOf(ele.getAttribute('data-colindex')) === -1) {
|
|
26240
26258
|
isToggle = false;
|
|
26241
26259
|
}
|
|
26242
|
-
var colIndex = Number(ele.getAttribute('
|
|
26260
|
+
var colIndex = Number(ele.getAttribute('data-colindex'));
|
|
26243
26261
|
actColPos[colIndex] = colIndex;
|
|
26244
26262
|
}
|
|
26245
26263
|
activeColumns = Object.keys(actColPos).length > 0 ? Object.keys(actColPos).sort(function (a, b) {
|
|
@@ -26271,7 +26289,7 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
|
|
|
26271
26289
|
}
|
|
26272
26290
|
var count = colStart;
|
|
26273
26291
|
while (count <= colEnd) {
|
|
26274
|
-
queryStringArray.push('[
|
|
26292
|
+
queryStringArray.push('[data-colindex="' + count + '"]' + (this.gridSettings.selectionSettings.mode === 'Cell' ?
|
|
26275
26293
|
'[index="' + rowStart + '"]' : "") + '');
|
|
26276
26294
|
count++;
|
|
26277
26295
|
}
|
|
@@ -26299,23 +26317,23 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
|
|
|
26299
26317
|
control.cellSelectionPos = [];
|
|
26300
26318
|
for (var _i = 0, _a = [].slice.call(this.element.querySelectorAll('.' + SELECTED_BGCOLOR)); _i < _a.length; _i++) {
|
|
26301
26319
|
var ele = _a[_i];
|
|
26302
|
-
control.savedSelectedCellsPos.push({ rowIndex: ele.getAttribute('index'), colIndex: ele.getAttribute('
|
|
26320
|
+
control.savedSelectedCellsPos.push({ rowIndex: ele.getAttribute('index'), colIndex: ele.getAttribute('data-colindex') });
|
|
26303
26321
|
}
|
|
26304
26322
|
for (var _b = 0, _c = [].slice.call(this.element.querySelectorAll('.' + CELL_SELECTED_BGCOLOR)); _b < _c.length; _b++) {
|
|
26305
26323
|
var ele = _c[_b];
|
|
26306
|
-
control.cellSelectionPos.push({ rowIndex: ele.getAttribute('index'), colIndex: ele.getAttribute('
|
|
26324
|
+
control.cellSelectionPos.push({ rowIndex: ele.getAttribute('index'), colIndex: ele.getAttribute('data-colindex') });
|
|
26307
26325
|
}
|
|
26308
26326
|
};
|
|
26309
26327
|
PivotView.prototype.setSavedSelectedCells = function () {
|
|
26310
26328
|
var control = this;
|
|
26311
26329
|
for (var _i = 0, _a = [].slice.call(this.savedSelectedCellsPos); _i < _a.length; _i++) {
|
|
26312
26330
|
var item = _a[_i];
|
|
26313
|
-
var query = '[
|
|
26331
|
+
var query = '[data-colindex="' + item.colIndex + '"][index="' + item.rowIndex + '"]';
|
|
26314
26332
|
addClass([control.element.querySelector(query)], [CELL_ACTIVE_BGCOLOR, SELECTED_BGCOLOR]);
|
|
26315
26333
|
}
|
|
26316
26334
|
for (var _b = 0, _c = [].slice.call(this.cellSelectionPos); _b < _c.length; _b++) {
|
|
26317
26335
|
var item = _c[_b];
|
|
26318
|
-
var query = '[
|
|
26336
|
+
var query = '[data-colindex="' + item.colIndex + '"][index="' + item.rowIndex + '"]';
|
|
26319
26337
|
addClass([control.element.querySelector(query)], [CELL_SELECTED_BGCOLOR]);
|
|
26320
26338
|
}
|
|
26321
26339
|
};
|
|
@@ -27349,6 +27367,9 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
|
|
|
27349
27367
|
__decorate([
|
|
27350
27368
|
Event()
|
|
27351
27369
|
], PivotView.prototype, "beforeExport", void 0);
|
|
27370
|
+
__decorate([
|
|
27371
|
+
Event()
|
|
27372
|
+
], PivotView.prototype, "exportComplete", void 0);
|
|
27352
27373
|
__decorate([
|
|
27353
27374
|
Event()
|
|
27354
27375
|
], PivotView.prototype, "conditionalFormatting", void 0);
|
|
@@ -27734,7 +27755,7 @@ var ExcelExport$1 = /** @__PURE__ @class */ (function () {
|
|
|
27734
27755
|
* Method to perform excel export.
|
|
27735
27756
|
* @hidden
|
|
27736
27757
|
*/
|
|
27737
|
-
ExcelExport$$1.prototype.exportToExcel = function (type, exportProperties) {
|
|
27758
|
+
ExcelExport$$1.prototype.exportToExcel = function (type, exportProperties, isBlob) {
|
|
27738
27759
|
this.rows = [];
|
|
27739
27760
|
this.actualrCnt = 0;
|
|
27740
27761
|
var isHeaderSet = !isNullOrUndefined(exportProperties) && !isNullOrUndefined(exportProperties.header);
|
|
@@ -27921,12 +27942,21 @@ var ExcelExport$1 = /** @__PURE__ @class */ (function () {
|
|
|
27921
27942
|
workSheets.push({ columns: columns, rows: this.rows });
|
|
27922
27943
|
}
|
|
27923
27944
|
var book = new Workbook({ worksheets: workSheets }, type === 'Excel' ? 'xlsx' : 'csv', undefined, this.parent.currencyCode);
|
|
27924
|
-
|
|
27925
|
-
|
|
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')));
|
|
27926
27950
|
}
|
|
27927
27951
|
else {
|
|
27928
|
-
book.
|
|
27952
|
+
blobData = book.saveAsBlob(fileExtension === "xlsx" || type === 'Excel' ?
|
|
27953
|
+
'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' : 'text/csv');
|
|
27929
27954
|
}
|
|
27955
|
+
var exportCompleteEventArgs = {
|
|
27956
|
+
type: type,
|
|
27957
|
+
promise: isBlob ? blobData : null
|
|
27958
|
+
};
|
|
27959
|
+
this.parent.trigger(exportComplete, exportCompleteEventArgs);
|
|
27930
27960
|
};
|
|
27931
27961
|
/**
|
|
27932
27962
|
* To destroy the excel export module
|
|
@@ -28106,7 +28136,7 @@ var PDFExport = /** @__PURE__ @class */ (function () {
|
|
|
28106
28136
|
* @hidden
|
|
28107
28137
|
*/
|
|
28108
28138
|
/* eslint-disable */
|
|
28109
|
-
PDFExport.prototype.exportToPDF = function (pdfExportProperties) {
|
|
28139
|
+
PDFExport.prototype.exportToPDF = function (pdfExportProperties, isBlob) {
|
|
28110
28140
|
this.engine = this.parent.dataType === 'olap' ? this.parent.olapEngineModule : this.parent.engineModule;
|
|
28111
28141
|
var eventParams = this.applyEvent();
|
|
28112
28142
|
var headerStyle = this.getStyle();
|
|
@@ -28297,7 +28327,18 @@ var PDFExport = /** @__PURE__ @class */ (function () {
|
|
|
28297
28327
|
integratedCnt = 0;
|
|
28298
28328
|
}
|
|
28299
28329
|
} while (integratedCnt < colLength);
|
|
28300
|
-
|
|
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);
|
|
28301
28342
|
eventParams.document.destroy();
|
|
28302
28343
|
};
|
|
28303
28344
|
PDFExport.prototype.applyStyle = function (pdfGridRow, pivotCell, localCnt) {
|
|
@@ -33279,6 +33320,7 @@ var CalculatedField = /** @__PURE__ @class */ (function () {
|
|
|
33279
33320
|
this.isFormula = false;
|
|
33280
33321
|
/** @hidden */
|
|
33281
33322
|
this.isRequireUpdate = false;
|
|
33323
|
+
this.formatTypes = ['Standard', 'Currency', 'Percent', 'Custom', 'None'];
|
|
33282
33324
|
this.parent = parent;
|
|
33283
33325
|
this.existingReport = null;
|
|
33284
33326
|
this.parent.calculatedFieldModule = this;
|
|
@@ -33384,7 +33426,7 @@ var CalculatedField = /** @__PURE__ @class */ (function () {
|
|
|
33384
33426
|
this.fieldText = node.getAttribute('data-caption');
|
|
33385
33427
|
this.formulaText = node.getAttribute('data-formula');
|
|
33386
33428
|
this.formatType = node.getAttribute('data-formatString');
|
|
33387
|
-
this.formatText = this.formatType === 'Custom' ? node.getAttribute('data-
|
|
33429
|
+
this.formatText = this.formatType === 'Custom' ? node.getAttribute('data-customformatstring') : null;
|
|
33388
33430
|
this.fieldType = node.getAttribute('data-membertype');
|
|
33389
33431
|
this.parentHierarchy = this.fieldType === 'Dimension' ? node.getAttribute('data-hierarchy') : null;
|
|
33390
33432
|
addClass([node.querySelector('.e-list-edit-icon')], CALC_EDITED);
|
|
@@ -33414,11 +33456,19 @@ var CalculatedField = /** @__PURE__ @class */ (function () {
|
|
|
33414
33456
|
closest(e.originalEvent.target, '.e-acrdn-header-icon')) {
|
|
33415
33457
|
var node = closest(e.originalEvent.target, '.e-acrdn-header').querySelector('.' + CALCCHECK);
|
|
33416
33458
|
var fieldName = node.getAttribute('data-field');
|
|
33459
|
+
var captionName = node.getAttribute('data-caption');
|
|
33417
33460
|
var formatObj = PivotUtil.getFieldByName(fieldName, this.parent.dataSourceSettings.formatSettings);
|
|
33418
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
|
+
}
|
|
33419
33468
|
if (optionElement.querySelector('.' + CALC_EDIT) && e.originalEvent.target.classList.contains(CALC_EDIT)) {
|
|
33420
33469
|
this.isEdit = true;
|
|
33421
|
-
this.currentFieldName =
|
|
33470
|
+
this.currentFieldName = fieldName;
|
|
33471
|
+
this.fieldText = captionName ? captionName : fieldName;
|
|
33422
33472
|
this.formulaText = this.parent.engineModule.fieldList[fieldName].formula;
|
|
33423
33473
|
this.formatText = formatObj ? formatObj.format : '';
|
|
33424
33474
|
addClass([optionElement.querySelector('.e-list-icon')], CALC_EDITED);
|
|
@@ -33487,16 +33537,16 @@ var CalculatedField = /** @__PURE__ @class */ (function () {
|
|
|
33487
33537
|
this.inputObj.dataBind();
|
|
33488
33538
|
var formatString = node.getAttribute('data-formatString');
|
|
33489
33539
|
var dialogElement = this.dialog.element;
|
|
33540
|
+
var ddlFormatTypes = getInstance(select('#' + this.parentID + 'Format_Div', dialogElement), DropDownList);
|
|
33490
33541
|
var customFormat = getInstance(select('#' + this.parentID + 'Custom_Format_Element', dialogElement), MaskedTextBox);
|
|
33542
|
+
var customFormatString = node.getAttribute('data-customformatstring');
|
|
33491
33543
|
if (this.parent.dataType === 'olap') {
|
|
33492
33544
|
var memberType = node.getAttribute('data-membertype');
|
|
33493
33545
|
var parentHierarchy = node.getAttribute('data-hierarchy');
|
|
33494
33546
|
var expression = node.getAttribute('data-formula');
|
|
33495
|
-
var customString = node.getAttribute('data-customString');
|
|
33496
33547
|
var fieldTitle = select('#' + this.parentID + '_' + 'FieldNameTitle', dialogElement);
|
|
33497
33548
|
var memberTypeDrop = getInstance(select('#' + this.parentID + 'Member_Type_Div', dialogElement), DropDownList);
|
|
33498
33549
|
var hierarchyDrop = getInstance(select('#' + this.parentID + 'Hierarchy_List_Div', dialogElement), DropDownList);
|
|
33499
|
-
var formatDrop = getInstance(select('#' + this.parentID + 'Format_Div', dialogElement), DropDownList);
|
|
33500
33550
|
/* eslint-enable max-len */
|
|
33501
33551
|
fieldTitle.innerHTML = this.parent.localeObj.getConstant('caption');
|
|
33502
33552
|
select('#' + this.parentID + 'droppable', document).value = expression;
|
|
@@ -33506,14 +33556,8 @@ var CalculatedField = /** @__PURE__ @class */ (function () {
|
|
|
33506
33556
|
if (memberType === 'Dimension') {
|
|
33507
33557
|
hierarchyDrop.value = parentHierarchy;
|
|
33508
33558
|
}
|
|
33509
|
-
if (formatString !== '') {
|
|
33510
|
-
formatDrop.value = formatString;
|
|
33511
|
-
formatDrop.dataBind();
|
|
33512
|
-
}
|
|
33513
|
-
customFormat.value = customString;
|
|
33514
33559
|
}
|
|
33515
33560
|
else {
|
|
33516
|
-
customFormat.value = formatString;
|
|
33517
33561
|
addClass(this.treeObj.element.querySelectorAll('.' + CALC_EDITED), CALC_EDIT);
|
|
33518
33562
|
removeClass(this.treeObj.element.querySelectorAll('.' + CALC_EDITED), CALC_EDITED);
|
|
33519
33563
|
addClass([node.querySelector('.e-list-icon')], CALC_EDITED);
|
|
@@ -33521,6 +33565,11 @@ var CalculatedField = /** @__PURE__ @class */ (function () {
|
|
|
33521
33565
|
node.querySelector('.' + CALC_EDITED).setAttribute('title', this.parent.localeObj.getConstant('clearCalculatedField'));
|
|
33522
33566
|
select('#' + this.parentID + 'droppable', document).value = node.getAttribute('data-uid');
|
|
33523
33567
|
}
|
|
33568
|
+
if (formatString !== '') {
|
|
33569
|
+
ddlFormatTypes.value = formatString;
|
|
33570
|
+
ddlFormatTypes.dataBind();
|
|
33571
|
+
}
|
|
33572
|
+
customFormat.value = customFormatString;
|
|
33524
33573
|
customFormat.dataBind();
|
|
33525
33574
|
}
|
|
33526
33575
|
else if (node.tagName === 'LI' && (node.querySelector('.' + CALC_EDITED) &&
|
|
@@ -33535,15 +33584,15 @@ var CalculatedField = /** @__PURE__ @class */ (function () {
|
|
|
33535
33584
|
customFormat.dataBind();
|
|
33536
33585
|
if (this.parent.dataType === 'olap') {
|
|
33537
33586
|
var hierarchyDrop = getInstance(select('#' + this.parentID + 'Hierarchy_List_Div', dialogElement), DropDownList);
|
|
33538
|
-
var
|
|
33587
|
+
var ddlFormatTypes = getInstance(select('#' + this.parentID + 'Format_Div', dialogElement), DropDownList);
|
|
33539
33588
|
var memberTypeDrop = getInstance(select('#' + this.parentID + 'Member_Type_Div', dialogElement), DropDownList);
|
|
33540
33589
|
var fieldTitle = select('#' + this.parentID + '_' + 'FieldNameTitle', dialogElement);
|
|
33541
33590
|
/* eslint-enable max-len */
|
|
33542
33591
|
fieldTitle.innerHTML = this.parent.localeObj.getConstant('fieldTitle');
|
|
33543
33592
|
hierarchyDrop.index = 0;
|
|
33544
33593
|
hierarchyDrop.dataBind();
|
|
33545
|
-
|
|
33546
|
-
|
|
33594
|
+
ddlFormatTypes.index = 0;
|
|
33595
|
+
ddlFormatTypes.dataBind();
|
|
33547
33596
|
memberTypeDrop.index = 0;
|
|
33548
33597
|
memberTypeDrop.readonly = false;
|
|
33549
33598
|
memberTypeDrop.dataBind();
|
|
@@ -33936,18 +33985,15 @@ var CalculatedField = /** @__PURE__ @class */ (function () {
|
|
|
33936
33985
|
caption: this.inputObj.value,
|
|
33937
33986
|
formula: dropField.value
|
|
33938
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));
|
|
33939
33990
|
if (this.parent.dataType === 'olap') {
|
|
33940
|
-
var formatDrop = getInstance(select('#' + this.parentID + 'Format_Div', dialogElement), DropDownList);
|
|
33941
33991
|
var memberTypeDrop = getInstance(select('#' + this.parentID + 'Member_Type_Div', dialogElement), DropDownList);
|
|
33942
33992
|
var hierarchyDrop = getInstance(select('#' + this.parentID + 'Hierarchy_List_Div', dialogElement), DropDownList);
|
|
33943
|
-
field.formatString = (formatDrop.value === 'Custom' ? customFormat.value : (formatDrop.value === 'None' ? null : formatDrop.value));
|
|
33944
33993
|
if (memberTypeDrop.value === 'Dimension') {
|
|
33945
33994
|
field.hierarchyUniqueName = hierarchyDrop.value;
|
|
33946
33995
|
}
|
|
33947
33996
|
}
|
|
33948
|
-
else {
|
|
33949
|
-
field.formatString = customFormat.value;
|
|
33950
|
-
}
|
|
33951
33997
|
return field;
|
|
33952
33998
|
};
|
|
33953
33999
|
/* eslint-enable max-len */
|
|
@@ -34028,21 +34074,21 @@ var CalculatedField = /** @__PURE__ @class */ (function () {
|
|
|
34028
34074
|
select('#' + this.parentID + 'droppable', this.parent.dialogRenderer.parentElement).value = '';
|
|
34029
34075
|
select('#' + this.parentID + 'Custom_Format_Element', this.parent.dialogRenderer.parentElement).value = '';
|
|
34030
34076
|
if (this.parent.dataType === 'olap') {
|
|
34031
|
-
var customFormat = getInstance(select('#' + this.parentID + 'Custom_Format_Element', dialogElement), MaskedTextBox);
|
|
34032
|
-
var formatDrop = getInstance(select('#' + this.parentID + 'Format_Div', dialogElement), DropDownList);
|
|
34033
34077
|
var memberTypeDrop = getInstance(select('#' + this.parentID + 'Member_Type_Div', dialogElement), DropDownList);
|
|
34034
34078
|
var hierarchyDrop = getInstance(select('#' + this.parentID + 'Hierarchy_List_Div', dialogElement), DropDownList);
|
|
34035
|
-
formatDrop.index = 0;
|
|
34036
|
-
formatDrop.dataBind();
|
|
34037
34079
|
memberTypeDrop.index = 0;
|
|
34038
34080
|
memberTypeDrop.readonly = false;
|
|
34039
34081
|
memberTypeDrop.dataBind();
|
|
34040
34082
|
hierarchyDrop.index = 0;
|
|
34041
34083
|
hierarchyDrop.enabled = false;
|
|
34042
34084
|
hierarchyDrop.dataBind();
|
|
34043
|
-
customFormat.enabled = false;
|
|
34044
|
-
customFormat.dataBind();
|
|
34045
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();
|
|
34046
34092
|
/* eslint-enable max-len */
|
|
34047
34093
|
}
|
|
34048
34094
|
};
|
|
@@ -34335,7 +34381,7 @@ var CalculatedField = /** @__PURE__ @class */ (function () {
|
|
|
34335
34381
|
className: (this.parent.dataType === 'olap' ? OLAP_CALCOUTERDIV + ' ' : '') + CALCOUTERDIV
|
|
34336
34382
|
});
|
|
34337
34383
|
var olapFieldTreeDiv = createElement('div', { id: this.parentID + 'Olap_Tree_Div', className: 'e-olap-field-tree-div' });
|
|
34338
|
-
var
|
|
34384
|
+
var pivotCalcDiv = createElement('div', { id: this.parentID + 'Pivot_Calc_Div', className: 'e-pivot-calculated-div' });
|
|
34339
34385
|
if (this.parent.getModuleName() === 'pivotfieldlist' && this.parent.
|
|
34340
34386
|
dialogRenderer.parentElement.querySelector('.' + FORMULA) !== null && this.parent.isAdaptive) {
|
|
34341
34387
|
var accordDiv = createElement('div', { id: this.parentID + 'accordDiv', className: CALCACCORD });
|
|
@@ -34359,7 +34405,7 @@ var CalculatedField = /** @__PURE__ @class */ (function () {
|
|
|
34359
34405
|
className: PIVOT_FIELD_TITLE_CLASS, id: this.parentID + '_' + 'FieldNameTitle',
|
|
34360
34406
|
innerHTML: this.parent.localeObj.getConstant('fieldTitle')
|
|
34361
34407
|
});
|
|
34362
|
-
|
|
34408
|
+
pivotCalcDiv.appendChild(formulaTitle);
|
|
34363
34409
|
}
|
|
34364
34410
|
var inputDiv = createElement('div', { id: this.parentID + 'outerDiv', className: CALCINPUTDIV });
|
|
34365
34411
|
var inputObj = createElement('input', {
|
|
@@ -34368,7 +34414,7 @@ var CalculatedField = /** @__PURE__ @class */ (function () {
|
|
|
34368
34414
|
className: CALCINPUT
|
|
34369
34415
|
});
|
|
34370
34416
|
inputDiv.appendChild(inputObj);
|
|
34371
|
-
(this.parent.dataType === 'olap' && !this.parent.isAdaptive ?
|
|
34417
|
+
(this.parent.dataType === 'olap' && !this.parent.isAdaptive ? pivotCalcDiv.appendChild(inputDiv) : outerDiv.appendChild(inputDiv));
|
|
34372
34418
|
var wrapDiv = createElement('div', { id: this.parentID + 'control_container', className: TREEVIEWOUTER });
|
|
34373
34419
|
if (!this.parent.isAdaptive) {
|
|
34374
34420
|
var fieldTitle = createElement('div', {
|
|
@@ -34415,7 +34461,7 @@ var CalculatedField = /** @__PURE__ @class */ (function () {
|
|
|
34415
34461
|
innerHTML: (this.parent.dataType === 'olap' ? this.parent.localeObj.getConstant('expressionField') :
|
|
34416
34462
|
this.parent.localeObj.getConstant('formula'))
|
|
34417
34463
|
});
|
|
34418
|
-
(this.parent.dataType === 'olap' ?
|
|
34464
|
+
(this.parent.dataType === 'olap' ? pivotCalcDiv.appendChild(formulaTitle) : outerDiv.appendChild(formulaTitle));
|
|
34419
34465
|
}
|
|
34420
34466
|
var dropDiv = createElement('textarea', {
|
|
34421
34467
|
id: this.parentID + 'droppable',
|
|
@@ -34426,7 +34472,7 @@ var CalculatedField = /** @__PURE__ @class */ (function () {
|
|
|
34426
34472
|
this.parent.localeObj.getConstant('dropText'))
|
|
34427
34473
|
}
|
|
34428
34474
|
});
|
|
34429
|
-
(this.parent.dataType === 'olap' && !this.parent.isAdaptive ?
|
|
34475
|
+
(this.parent.dataType === 'olap' && !this.parent.isAdaptive ? pivotCalcDiv.appendChild(dropDiv) : outerDiv.appendChild(dropDiv));
|
|
34430
34476
|
if (this.parent.isAdaptive) {
|
|
34431
34477
|
var buttonDiv = createElement('div', { id: this.parentID + 'buttonDiv', className: CALCBUTTONDIV });
|
|
34432
34478
|
var okBtn = createElement('button', {
|
|
@@ -34442,63 +34488,51 @@ var CalculatedField = /** @__PURE__ @class */ (function () {
|
|
|
34442
34488
|
className: OLAP_MEMBER_TITLE_CLASS,
|
|
34443
34489
|
innerHTML: this.parent.localeObj.getConstant('memberType')
|
|
34444
34490
|
});
|
|
34445
|
-
|
|
34491
|
+
pivotCalcDiv.appendChild(memberTypeTitle);
|
|
34446
34492
|
}
|
|
34447
34493
|
var memberTypeDrop = createElement('div', { id: this.parentID + 'Member_Type_Div', className: CALC_MEMBER_TYPE_DIV });
|
|
34448
|
-
(this.parent.isAdaptive ? outerDiv.appendChild(memberTypeDrop) :
|
|
34494
|
+
(this.parent.isAdaptive ? outerDiv.appendChild(memberTypeDrop) : pivotCalcDiv.appendChild(memberTypeDrop));
|
|
34449
34495
|
if (!this.parent.isAdaptive) {
|
|
34450
34496
|
var hierarchyTitle = createElement('div', {
|
|
34451
34497
|
className: OLAP_HIERARCHY_TITLE_CLASS,
|
|
34452
34498
|
innerHTML: this.parent.localeObj.getConstant('selectedHierarchy')
|
|
34453
34499
|
});
|
|
34454
|
-
|
|
34500
|
+
pivotCalcDiv.appendChild(hierarchyTitle);
|
|
34455
34501
|
}
|
|
34456
34502
|
var hierarchyDrop = createElement('div', { id: this.parentID + 'Hierarchy_List_Div', className: CALC_HIERARCHY_LIST_DIV });
|
|
34457
|
-
(this.parent.isAdaptive ? outerDiv.appendChild(hierarchyDrop) :
|
|
34458
|
-
|
|
34459
|
-
|
|
34460
|
-
|
|
34461
|
-
|
|
34462
|
-
|
|
34463
|
-
olapCalcDiv.appendChild(formatTitle);
|
|
34464
|
-
}
|
|
34465
|
-
var formatDrop = createElement('div', { id: this.parentID + 'Format_Div', className: CALC_FORMAT_TYPE_DIV });
|
|
34466
|
-
(this.parent.isAdaptive ? outerDiv.appendChild(formatDrop) : olapCalcDiv.appendChild(formatDrop));
|
|
34467
|
-
var customFormatDiv = createElement('div', { id: this.parentID + 'custom_Format_Div', className: OLAP_CALC_CUSTOM_FORMAT_INPUTDIV });
|
|
34468
|
-
var customFormatObj = createElement('input', {
|
|
34469
|
-
id: this.parentID + 'Custom_Format_Element',
|
|
34470
|
-
attrs: { 'type': 'text' },
|
|
34471
|
-
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')
|
|
34472
34509
|
});
|
|
34473
|
-
|
|
34474
|
-
|
|
34475
|
-
|
|
34476
|
-
|
|
34477
|
-
|
|
34478
|
-
|
|
34479
|
-
|
|
34480
|
-
|
|
34481
|
-
|
|
34482
|
-
|
|
34483
|
-
|
|
34484
|
-
|
|
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);
|
|
34485
34530
|
}
|
|
34486
34531
|
else {
|
|
34487
|
-
|
|
34488
|
-
|
|
34489
|
-
var formatTitle = createElement('div', {
|
|
34490
|
-
className: OLAP_FORMAT_TITLE_CLASS,
|
|
34491
|
-
innerHTML: this.parent.localeObj.getConstant('formatString')
|
|
34492
|
-
});
|
|
34493
|
-
customFormatDiv.appendChild(formatTitle);
|
|
34532
|
+
if (this.parent.dataType === 'olap') {
|
|
34533
|
+
outerDiv.appendChild(olapFieldTreeDiv);
|
|
34494
34534
|
}
|
|
34495
|
-
|
|
34496
|
-
id: this.parentID + 'Custom_Format_Element',
|
|
34497
|
-
attrs: { 'type': 'text' },
|
|
34498
|
-
className: CALC_FORMAT_INPUT
|
|
34499
|
-
});
|
|
34500
|
-
customFormatDiv.appendChild(customFormatObj);
|
|
34501
|
-
(this.parent.isAdaptive ? outerDiv.insertBefore(customFormatDiv, select('#' + this.parentID + 'buttonDiv', outerDiv)) : outerDiv.appendChild(customFormatDiv));
|
|
34535
|
+
outerDiv.appendChild(pivotCalcDiv);
|
|
34502
34536
|
}
|
|
34503
34537
|
}
|
|
34504
34538
|
return outerDiv;
|
|
@@ -34523,12 +34557,12 @@ var CalculatedField = /** @__PURE__ @class */ (function () {
|
|
|
34523
34557
|
this.parentHierarchy = this.fieldType === 'Dimension' ? hierarchyDrop.value : null;
|
|
34524
34558
|
}
|
|
34525
34559
|
if (dialogElement.element.querySelector('.' + CALC_FORMAT_TYPE_DIV)) {
|
|
34526
|
-
var
|
|
34527
|
-
this.formatType =
|
|
34560
|
+
var ddlFormatTypes = getInstance(select('#' + this.parentID + 'Format_Div', dialogElement.element), DropDownList);
|
|
34561
|
+
this.formatType = ddlFormatTypes.value;
|
|
34528
34562
|
}
|
|
34529
34563
|
if (dialogElement.element.querySelector('.' + CALC_FORMAT_INPUT)) {
|
|
34530
34564
|
var customFormat = getInstance(select('#' + this.parentID + 'Custom_Format_Element', dialogElement.element), MaskedTextBox);
|
|
34531
|
-
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;
|
|
34532
34566
|
}
|
|
34533
34567
|
}
|
|
34534
34568
|
else {
|
|
@@ -34574,9 +34608,8 @@ var CalculatedField = /** @__PURE__ @class */ (function () {
|
|
|
34574
34608
|
hierarchyDrop.dataBind();
|
|
34575
34609
|
}
|
|
34576
34610
|
if (dialogElement.querySelector('.' + CALC_FORMAT_TYPE_DIV)) {
|
|
34577
|
-
var
|
|
34578
|
-
|
|
34579
|
-
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');
|
|
34580
34613
|
}
|
|
34581
34614
|
if (dialogElement.querySelector('.' + CALC_FORMAT_INPUT)) {
|
|
34582
34615
|
var customFormat = getInstance(select('#' + this.parentID + 'Custom_Format_Element', dialogElement), MaskedTextBox);
|
|
@@ -34595,67 +34628,69 @@ var CalculatedField = /** @__PURE__ @class */ (function () {
|
|
|
34595
34628
|
* To create treeview.
|
|
34596
34629
|
* @returns {void}
|
|
34597
34630
|
*/
|
|
34598
|
-
CalculatedField.prototype.
|
|
34631
|
+
CalculatedField.prototype.createDropElements = function () {
|
|
34599
34632
|
var _this = this;
|
|
34600
34633
|
var dialogElement = (this.parent.isAdaptive ?
|
|
34601
34634
|
this.parent.dialogRenderer.parentElement : this.dialog.element);
|
|
34602
|
-
var mData = [];
|
|
34603
34635
|
var fData = [];
|
|
34604
34636
|
var fieldData = [];
|
|
34605
|
-
var
|
|
34606
|
-
|
|
34607
|
-
|
|
34608
|
-
var type = memberTypeData_1[_i];
|
|
34609
|
-
mData.push({ value: type, text: this.parent.localeObj.getConstant(type) });
|
|
34610
|
-
}
|
|
34611
|
-
for (var _a = 0, formatStringData_1 = formatStringData; _a < formatStringData_1.length; _a++) {
|
|
34612
|
-
var format = formatStringData_1[_a];
|
|
34613
|
-
fData.push({ value: format, text: this.parent.localeObj.getConstant(format) });
|
|
34614
|
-
}
|
|
34615
|
-
var fields = PivotUtil.getClonedData(this.parent.olapEngineModule.fieldListData);
|
|
34616
|
-
for (var _b = 0, _c = fields; _b < _c.length; _b++) {
|
|
34617
|
-
var item = _c[_b];
|
|
34618
|
-
if (item.spriteCssClass &&
|
|
34619
|
-
(item.spriteCssClass.indexOf('e-attributeCDB-icon') > -1 ||
|
|
34620
|
-
item.spriteCssClass.indexOf('e-hierarchyCDB-icon') > -1)) {
|
|
34621
|
-
fieldData.push({ value: item.id, text: item.caption });
|
|
34622
|
-
}
|
|
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) });
|
|
34623
34640
|
}
|
|
34624
|
-
|
|
34625
|
-
|
|
34626
|
-
|
|
34627
|
-
|
|
34628
|
-
|
|
34629
|
-
|
|
34630
|
-
|
|
34631
|
-
|
|
34632
|
-
|
|
34633
|
-
|
|
34634
|
-
|
|
34635
|
-
|
|
34636
|
-
|
|
34637
|
-
|
|
34638
|
-
|
|
34639
|
-
var hierarchyListObj = new DropDownList({
|
|
34640
|
-
dataSource: fieldData, enableRtl: this.parent.enableRtl, locale: this.parent.locale,
|
|
34641
|
-
allowFiltering: true,
|
|
34642
|
-
enabled: memberTypeObj.value === 'Dimension' ? true : false,
|
|
34643
|
-
filterBarPlaceholder: this.parent.localeObj.getConstant('example') + ' ' + fieldData[0].text.toString(),
|
|
34644
|
-
fields: { value: 'value', text: 'text' },
|
|
34645
|
-
value: this.parentHierarchy !== null && memberTypeObj.value === 'Dimension' ?
|
|
34646
|
-
this.parentHierarchy : fieldData[0].value,
|
|
34647
|
-
cssClass: MEMBER_OPTIONS_CLASS + (this.parent.cssClass ? (' ' + this.parent.cssClass) : ''), width: '100%',
|
|
34648
|
-
change: function (args) {
|
|
34649
|
-
_this.parentHierarchy = args.value;
|
|
34650
|
-
_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
|
+
}
|
|
34651
34656
|
}
|
|
34652
|
-
|
|
34653
|
-
|
|
34654
|
-
|
|
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
|
+
}
|
|
34655
34689
|
var formatStringObj = new DropDownList({
|
|
34656
34690
|
dataSource: fData, enableRtl: this.parent.enableRtl, locale: this.parent.locale,
|
|
34657
34691
|
fields: { value: 'value', text: 'text' },
|
|
34658
|
-
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,
|
|
34659
34694
|
cssClass: MEMBER_OPTIONS_CLASS + (this.parent.cssClass ? (' ' + this.parent.cssClass) : ''), width: '100%',
|
|
34660
34695
|
change: function (args) {
|
|
34661
34696
|
customerFormatObj.enabled = args.value === 'Custom' ? true : false;
|
|
@@ -34680,6 +34715,30 @@ var CalculatedField = /** @__PURE__ @class */ (function () {
|
|
|
34680
34715
|
customerFormatObj.isStringTemplate = true;
|
|
34681
34716
|
customerFormatObj.appendTo('#' + this.parentID + 'Custom_Format_Element');
|
|
34682
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
|
+
};
|
|
34683
34742
|
/**
|
|
34684
34743
|
* To create treeview.
|
|
34685
34744
|
* @returns {void}
|
|
@@ -34835,12 +34894,11 @@ var CalculatedField = /** @__PURE__ @class */ (function () {
|
|
|
34835
34894
|
args.node.setAttribute('data-membertype', field.fieldType);
|
|
34836
34895
|
args.node.setAttribute('data-hierarchy', field.parentHierarchy ? field.parentHierarchy : '');
|
|
34837
34896
|
args.node.setAttribute('data-formula', field.formula);
|
|
34838
|
-
var formatStringData = ['Standard', 'Currency', 'Percent', 'None'];
|
|
34839
34897
|
var formatString = void 0;
|
|
34840
|
-
formatString = (field.formatString ?
|
|
34898
|
+
formatString = (field.formatString ? this.formatTypes.indexOf(field.formatString) > -1 ?
|
|
34841
34899
|
field.formatString : 'Custom' : 'None');
|
|
34842
34900
|
args.node.setAttribute('data-formatString', formatString);
|
|
34843
|
-
args.node.setAttribute('data-
|
|
34901
|
+
args.node.setAttribute('data-customformatstring', (formatString === 'Custom' ? field.formatString : ''));
|
|
34844
34902
|
var removeElement = createElement('span', {
|
|
34845
34903
|
className: GRID_REMOVE + ' e-icons e-list-icon'
|
|
34846
34904
|
});
|
|
@@ -34880,6 +34938,13 @@ var CalculatedField = /** @__PURE__ @class */ (function () {
|
|
|
34880
34938
|
args.node.setAttribute('data-type', args.nodeData.type);
|
|
34881
34939
|
var formatObj = PivotUtil.getFieldByName(field, this.parent.dataSourceSettings.formatSettings);
|
|
34882
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
|
+
}
|
|
34883
34948
|
var dragElement = createElement('span', {
|
|
34884
34949
|
attrs: { 'tabindex': '-1', 'aria-disabled': 'false', 'title': this.parent.localeObj.getConstant('dragField') },
|
|
34885
34950
|
className: ICON + ' e-drag'
|
|
@@ -34958,7 +35023,7 @@ var CalculatedField = /** @__PURE__ @class */ (function () {
|
|
|
34958
35023
|
var key = keys[index];
|
|
34959
35024
|
data.push({
|
|
34960
35025
|
header: '<input id=' + this.parentID + '_' + index + ' class=' + CALCCHECK + ' type="checkbox" data-field=' +
|
|
34961
|
-
key + ' data-caption=' + this.parent.engineModule.fieldList[key].caption + ' data-type=' +
|
|
35026
|
+
key + ' data-caption="' + this.parent.engineModule.fieldList[key].caption + '" data-type=' +
|
|
34962
35027
|
this.parent.engineModule.fieldList[key].type + '/>',
|
|
34963
35028
|
content: (this.parent.engineModule.fieldList[key].aggregateType === CALC ||
|
|
34964
35029
|
(this.getMenuItems(this.parent.engineModule.fieldList[key].type).length < 1)) ? '' :
|
|
@@ -34978,9 +35043,9 @@ var CalculatedField = /** @__PURE__ @class */ (function () {
|
|
|
34978
35043
|
var _this = this;
|
|
34979
35044
|
tabObj.items[4].content = this.renderDialogElements().outerHTML;
|
|
34980
35045
|
tabObj.dataBind();
|
|
34981
|
-
if (this.parent.
|
|
35046
|
+
if (this.parent.isAdaptive && this.parent.
|
|
34982
35047
|
dialogRenderer.parentElement.querySelector('.' + FORMULA) !== null) {
|
|
34983
|
-
this.
|
|
35048
|
+
this.createDropElements();
|
|
34984
35049
|
}
|
|
34985
35050
|
var cancelBtn = new Button({ cssClass: FLAT + (this.parent.cssClass ? (' ' + this.parent.cssClass) : ''), isPrimary: true, locale: this.parent.locale, enableRtl: this.parent.enableRtl });
|
|
34986
35051
|
cancelBtn.isStringTemplate = true;
|
|
@@ -35004,25 +35069,6 @@ var CalculatedField = /** @__PURE__ @class */ (function () {
|
|
|
35004
35069
|
});
|
|
35005
35070
|
this.inputObj.isStringTemplate = true;
|
|
35006
35071
|
this.inputObj.appendTo('#' + this.parentID + 'ddlelement');
|
|
35007
|
-
if (this.parent.dataType === 'pivot') {
|
|
35008
|
-
var formatInputObj = new MaskedTextBox({
|
|
35009
|
-
locale: this.parent.locale, enableRtl: this.parent.enableRtl,
|
|
35010
|
-
placeholder: this.parent.localeObj.getConstant('numberFormatString'),
|
|
35011
|
-
change: function (args) {
|
|
35012
|
-
_this.formatText = args.value;
|
|
35013
|
-
_this.formulaText = select('#' + _this.parentID + 'droppable', document).value;
|
|
35014
|
-
},
|
|
35015
|
-
cssClass: this.parent.cssClass
|
|
35016
|
-
});
|
|
35017
|
-
formatInputObj.isStringTemplate = true;
|
|
35018
|
-
formatInputObj.appendTo('#' + this.parentID + 'Custom_Format_Element');
|
|
35019
|
-
if (this.formatText !== null && this.parent.
|
|
35020
|
-
dialogRenderer.parentElement.querySelector('.' + CALC_FORMAT_INPUT) !== null) {
|
|
35021
|
-
this.parent.
|
|
35022
|
-
dialogRenderer.parentElement.querySelector('.' + CALC_FORMAT_INPUT).value = this.formatText;
|
|
35023
|
-
formatInputObj.value = this.formatText;
|
|
35024
|
-
}
|
|
35025
|
-
}
|
|
35026
35072
|
if (this.formulaText !== null && select('#' + this.parentID + 'droppable', this.parent.dialogRenderer.parentElement) !== null) {
|
|
35027
35073
|
var drop = select('#' + this.parentID + 'droppable', this.parent.dialogRenderer.parentElement);
|
|
35028
35074
|
drop.value = this.formulaText;
|
|
@@ -35235,18 +35281,7 @@ var CalculatedField = /** @__PURE__ @class */ (function () {
|
|
|
35235
35281
|
});
|
|
35236
35282
|
this.inputObj.isStringTemplate = true;
|
|
35237
35283
|
this.inputObj.appendTo('#' + this.parentID + 'ddlelement');
|
|
35238
|
-
|
|
35239
|
-
var customerFormatObj = new MaskedTextBox({
|
|
35240
|
-
placeholder: this.parent.localeObj.getConstant('numberFormatString'),
|
|
35241
|
-
locale: this.parent.locale, enableRtl: this.parent.enableRtl,
|
|
35242
|
-
cssClass: this.parent.cssClass
|
|
35243
|
-
});
|
|
35244
|
-
customerFormatObj.isStringTemplate = true;
|
|
35245
|
-
customerFormatObj.appendTo('#' + this.parentID + 'Custom_Format_Element');
|
|
35246
|
-
}
|
|
35247
|
-
if (this.parent.dataType === 'olap' && !this.parent.isAdaptive) {
|
|
35248
|
-
this.createOlapDropElements();
|
|
35249
|
-
}
|
|
35284
|
+
this.createDropElements();
|
|
35250
35285
|
this.createTreeView();
|
|
35251
35286
|
this.droppable = new Droppable(select('#' + this.parentID + 'droppable'));
|
|
35252
35287
|
this.keyboardEvents = new KeyboardEvents(this.parent.calculatedFieldModule.dialog.element, {
|
|
@@ -35371,6 +35406,7 @@ var CalculatedField = /** @__PURE__ @class */ (function () {
|
|
|
35371
35406
|
*/
|
|
35372
35407
|
CalculatedField.prototype.destroy = function () {
|
|
35373
35408
|
this.removeEventListener();
|
|
35409
|
+
this.formatTypes = null;
|
|
35374
35410
|
};
|
|
35375
35411
|
return CalculatedField;
|
|
35376
35412
|
}());
|
|
@@ -36205,7 +36241,8 @@ var ConditionalFormatting = /** @__PURE__ @class */ (function () {
|
|
|
36205
36241
|
remove(select('#' + this.parentID + 'conditionalformatting', document));
|
|
36206
36242
|
}
|
|
36207
36243
|
this.parent.element.appendChild(createElement('div', {
|
|
36208
|
-
id: this.parentID + 'conditionalformatting'
|
|
36244
|
+
id: this.parentID + 'conditionalformatting',
|
|
36245
|
+
className: FORMAT_DIALOG
|
|
36209
36246
|
}));
|
|
36210
36247
|
var buttonModel = [
|
|
36211
36248
|
{
|
|
@@ -36240,14 +36277,14 @@ var ConditionalFormatting = /** @__PURE__ @class */ (function () {
|
|
|
36240
36277
|
showCloseIcon: false, closeOnEscape: false, enableRtl: this.parent.enableRtl, locale: this.parent.locale,
|
|
36241
36278
|
position: { X: 'center', Y: 'center' }, allowDragging: true, buttons: buttonModel,
|
|
36242
36279
|
beforeOpen: this.beforeOpen.bind(this), close: this.removeDialog.bind(this),
|
|
36243
|
-
cssClass:
|
|
36280
|
+
cssClass: this.parent.cssClass, header: this.parent.localeObj.getConstant('conditionalFormating'), target: document.body
|
|
36244
36281
|
});
|
|
36245
36282
|
}
|
|
36246
36283
|
else {
|
|
36247
36284
|
this.dialog = new Dialog({
|
|
36248
36285
|
allowDragging: true, position: { X: 'center', Y: this.parent.element.offsetTop }, buttons: buttonModel,
|
|
36249
36286
|
beforeOpen: this.beforeOpen.bind(this), close: this.removeDialog.bind(this),
|
|
36250
|
-
cssClass:
|
|
36287
|
+
cssClass: this.parent.cssClass, isModal: false, closeOnEscape: true, enableRtl: this.parent.enableRtl, locale: this.parent.locale,
|
|
36251
36288
|
showCloseIcon: true, header: this.parent.localeObj.getConstant('conditionalFormating'), target: this.parent.element
|
|
36252
36289
|
});
|
|
36253
36290
|
}
|
|
@@ -37851,12 +37888,12 @@ var Toolbar$2 = /** @__PURE__ @class */ (function () {
|
|
|
37851
37888
|
});
|
|
37852
37889
|
args.element.innerText = '';
|
|
37853
37890
|
checkbox.appendTo('#' + this.parent.element.id + '_' + 'checkBox');
|
|
37854
|
-
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) &&
|
|
37855
37892
|
!args.element.classList.contains(MENU_DISABLE)) {
|
|
37856
37893
|
args.element.classList.add(MENU_DISABLE);
|
|
37857
37894
|
checkbox.disabled = true;
|
|
37858
37895
|
}
|
|
37859
|
-
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) &&
|
|
37860
37897
|
args.element.classList.contains(MENU_DISABLE)) {
|
|
37861
37898
|
args.element.classList.remove(MENU_DISABLE);
|
|
37862
37899
|
checkbox.disabled = false;
|
|
@@ -37892,7 +37929,7 @@ var Toolbar$2 = /** @__PURE__ @class */ (function () {
|
|
|
37892
37929
|
this.showLableState = chartSettings.legendSettings.visible;
|
|
37893
37930
|
}
|
|
37894
37931
|
else {
|
|
37895
|
-
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 ?
|
|
37896
37933
|
false : true;
|
|
37897
37934
|
}
|
|
37898
37935
|
return this.showLableState;
|
|
@@ -38375,11 +38412,11 @@ var Toolbar$2 = /** @__PURE__ @class */ (function () {
|
|
|
38375
38412
|
Toolbar$$1.prototype.changeDropDown = function (args) {
|
|
38376
38413
|
var chartSettings = JSON.parse(this.parent.getPersistData()).chartSettings;
|
|
38377
38414
|
if (!(chartSettings && chartSettings.legendSettings && chartSettings.legendSettings.visible !== undefined)) {
|
|
38378
|
-
var checked = ['Pie', 'Funnel', 'Pyramid', 'Doughnut'].indexOf(args.value.toString()) > -1 ?
|
|
38415
|
+
var checked = ['Pie', 'Funnel', 'Pyramid', 'Doughnut', 'Pareto'].indexOf(args.value.toString()) > -1 ?
|
|
38379
38416
|
false : true;
|
|
38380
38417
|
getInstance(select('#' + this.parent.element.id + '_DialogShowLabel'), CheckBox).checked = checked;
|
|
38381
38418
|
}
|
|
38382
|
-
if (['Pie', 'Funnel', 'Pyramid', 'Doughnut'].indexOf(args.value.toString()) > -1) {
|
|
38419
|
+
if (['Pie', 'Funnel', 'Pyramid', 'Doughnut', 'Pareto'].indexOf(args.value.toString()) > -1) {
|
|
38383
38420
|
getInstance(select('#' + this.parent.element.id + '_DialogMultipleAxis'), CheckBox).disabled = true;
|
|
38384
38421
|
getInstance(select('#' + this.parent.element.id + '_AxisModeOption'), DropDownList).enabled = false;
|
|
38385
38422
|
}
|
|
@@ -38411,7 +38448,7 @@ var Toolbar$2 = /** @__PURE__ @class */ (function () {
|
|
|
38411
38448
|
});
|
|
38412
38449
|
checkbox1.appendTo(select('#' + this.parent.element.id + '_DialogShowLabel', this.chartTypesDialog.element));
|
|
38413
38450
|
checkbox.appendTo(select('#' + this.parent.element.id + '_DialogMultipleAxis', this.chartTypesDialog.element));
|
|
38414
|
-
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) {
|
|
38415
38452
|
checkbox.disabled = true;
|
|
38416
38453
|
getInstance(select('#' + this.parent.element.id + '_AxisModeOption'), DropDownList).enabled = false;
|
|
38417
38454
|
}
|
|
@@ -38981,7 +39018,7 @@ var Grouping = /** @__PURE__ @class */ (function () {
|
|
|
38981
39018
|
this.parentElement = parentElement;
|
|
38982
39019
|
this.selectedCellsInfo = [];
|
|
38983
39020
|
this.isUpdate = false;
|
|
38984
|
-
var colIndex = Number(target.getAttribute('
|
|
39021
|
+
var colIndex = Number(target.getAttribute('data-colindex'));
|
|
38985
39022
|
var rowIndex = Number(target.getAttribute('index'));
|
|
38986
39023
|
var cell = this.parent.engineModule.pivotValues[rowIndex][colIndex];
|
|
38987
39024
|
var fieldName = cell.valueSort.axis.toString();
|
|
@@ -39177,7 +39214,7 @@ var Grouping = /** @__PURE__ @class */ (function () {
|
|
|
39177
39214
|
/* eslint-enable */
|
|
39178
39215
|
for (var _i = 0, selectedElements_1 = selectedElements; _i < selectedElements_1.length; _i++) {
|
|
39179
39216
|
var element = selectedElements_1[_i];
|
|
39180
|
-
var colIndex = Number(element.getAttribute('
|
|
39217
|
+
var colIndex = Number(element.getAttribute('data-colindex'));
|
|
39181
39218
|
var rowIndex = Number(element.getAttribute('index'));
|
|
39182
39219
|
var cell = this.parent.engineModule.pivotValues[rowIndex][colIndex];
|
|
39183
39220
|
if (cell && (cell.axis === axis) && !(cell.type === 'grand sum' || cell.type === 'sum') &&
|
|
@@ -39811,5 +39848,5 @@ var Grouping = /** @__PURE__ @class */ (function () {
|
|
|
39811
39848
|
* Export PivotGrid components
|
|
39812
39849
|
*/
|
|
39813
39850
|
|
|
39814
|
-
export { GroupingBarSettings, CellEditSettings, ConditionalSettings, HyperlinkSettings, DisplayOption, PivotView, Render, ExcelExport$1 as ExcelExport, PDFExport, KeyboardInteraction, VirtualScroll$1 as VirtualScroll, DrillThrough, PivotChart, PivotFieldList, TreeViewRenderer, AxisFieldRenderer, AxisTableRenderer, DialogRenderer, EventBase, NodeStateModified, DataSourceUpdate, FieldList, CommonKeyboardInteraction, Common, GroupingBar, CalculatedField, ConditionalFormatting, PivotCommon, load, enginePopulating, enginePopulated, onFieldDropped, fieldDrop, beforePivotTableRender, afterPivotTableRender, beforeExport, excelHeaderQueryCellInfo, pdfHeaderQueryCellInfo, excelQueryCellInfo, pdfQueryCellInfo, onPdfCellRender, dataBound, queryCellInfo, headerCellInfo, hyperlinkCellClick, resizing, resizeStop, cellClick, drillThrough, beforeColumnsRender, selected, cellSelecting, drill, cellSelected, cellDeselected, rowSelected, rowDeselected, beginDrillThrough, editCompleted, multiLevelLabelClick, saveReport, fetchReport, loadReport, renameReport, removeReport, newReport, toolbarRender, toolbarClick, chartTooltipRender, chartLoaded, chartLoad, chartResized, chartAxisLabelRender, chartSeriesCreated, aggregateCellInfo, onHeadersSort, contextMenuClick, contextMenuOpen, fieldListRefreshed, conditionalFormatting, beforePdfExport, beforeExcelExport, memberFiltering, calculatedFieldCreate, memberEditorOpen, fieldRemove, numberFormatting, aggregateMenuOpen, fieldDragStart, chartPointClick, beforeServiceInvoke, actionBegin, actionComplete, actionFailure, initialLoad, uiUpdate, scroll, verticalScroll, horizontalScroll, contentReady, dataReady, initSubComponent, treeViewUpdate, pivotButtonUpdate, initCalculatedField, click, initToolbar, initFormatting, initGrouping, sortValue, drillUp, drillDown, addNewReport, saveCurrentReport, saveAsCurrentReport, renameCurrentReport, removeCurrentReport, loadReports, openConditionalFormatting, openNumberFormatting, MdxQuery, showFieldList, tableView, chartView, multipleAxis, showLegend, pdfExport, pngExport, excelExport, csvExport, jpegExport, svgExport, hideSubTotals, subTotalsRow, subTotalsColumn, showSubTotals, hideGrandTotals, grandTotalsRow, grandTotalsColumn, showGrandTotals, numberFormattingMenu, conditionalFormattingMenu, reportChange, sortFieldTree, editCalculatedField, sortField, filterField, removeField, openCalculatedField, editRecord, saveEditedRecords, addNewRecord, removeRecord, aggregateField, contextMenuCalculatedField, windowResize, calculatedFieldApplied, editedRecordsSaved, newRecordAdded, recordRemoved, closeFieldlist, fieldTreeSorted, reportSaved, newReportAdded, reportReSaved, reportRenamed, reportRemoved, excelExported, csvExported, pdfExported, pngExported, jpegExported, svgExported, conditionallyFormatted, numberFormatted, tableViewed, chartViewed, subTotalsHidden, subTotalsRowShown, subTotalsColumnShown, subTotalsShown, grandTotalsHidden, grandTotalsRowShown, grandTotalsColumnShown, grandTotalsShown, valueSorted, calculatedFieldEdited, fieldSorted, fieldFiltered, fieldRemoved, fieldAggregated, recordEdited, reportChanged, windowResized, recordUpdated, drillThroughClosed, verticalScrolled, horizontalScrolled, Theme, ErrorDialog, FilterDialog, PivotContextMenu, AggregateMenu, Toolbar$2 as Toolbar, NumberFormatting, Grouping, PivotEngine, PivotUtil, OlapEngine, MDXQuery };
|
|
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 };
|
|
39815
39852
|
//# sourceMappingURL=ej2-pivotview.es5.js.map
|