@syncfusion/ej2-pivotview 20.1.56 → 20.1.57
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 +10 -0
- package/dist/ej2-pivotview.umd.min.js +2 -2
- package/dist/ej2-pivotview.umd.min.js.map +1 -1
- package/dist/es6/ej2-pivotview.es2015.js +16 -12
- package/dist/es6/ej2-pivotview.es2015.js.map +1 -1
- package/dist/es6/ej2-pivotview.es5.js +16 -12
- 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 +12 -12
- package/src/base/engine.js +3 -3
- package/src/common/popups/drillthrough-dialog.js +1 -0
- package/src/pivotchart/base/pivotchart.js +1 -1
- package/src/pivotfieldlist/renderer/dialog-renderer.js +4 -2
- package/src/pivotview/base/pivotview.js +6 -3
- package/src/pivotview/renderer/render.js +1 -3
- package/styles/bootstrap4.css +1 -1
- package/styles/pivotfieldlist/_layout.scss +7 -7
- package/styles/pivotfieldlist/_theme.scss +1 -1
- package/styles/pivotview/_layout.scss +14 -14
- package/styles/pivotview/_theme.scss +3 -3
- package/styles/pivotview/bootstrap4.css +1 -1
|
@@ -3855,7 +3855,7 @@ var PivotEngine = /** @__PURE__ @class */ (function () {
|
|
|
3855
3855
|
/* eslint-disable */
|
|
3856
3856
|
PivotEngine.prototype.getIndexedHeaders = function (keys, data, keyInd, position, axis, parentMember, valueFil) {
|
|
3857
3857
|
var hierarchy = [];
|
|
3858
|
-
if (keys) {
|
|
3858
|
+
if (keys && keys.length > 0) {
|
|
3859
3859
|
var rlen = keys.length;
|
|
3860
3860
|
var decisionObj = {};
|
|
3861
3861
|
var fieldName = keys[keyInd].name;
|
|
@@ -5244,8 +5244,8 @@ var PivotEngine = /** @__PURE__ @class */ (function () {
|
|
|
5244
5244
|
axis: 'value', actualText: field, indexObject: this.isDrillThrough ? this.rawIndexObject : {},
|
|
5245
5245
|
rowHeaders: rows[rln].type === 'grand sum' ? '' : rows[rln].valueSort.levelName,
|
|
5246
5246
|
columnHeaders: columns[cln].type === 'grand sum' ? '' : columns[cln].valueSort.levelName,
|
|
5247
|
-
formattedText: formattedText, value:
|
|
5248
|
-
actualValue:
|
|
5247
|
+
formattedText: formattedText, value: value,
|
|
5248
|
+
actualValue: actualValue,
|
|
5249
5249
|
rowIndex: tnum, colIndex: dln, isSum: isSum, isGrandSum: isGrand, showSubTotals: !subTotal
|
|
5250
5250
|
};
|
|
5251
5251
|
this.rawIndexObject = {};
|
|
@@ -7536,6 +7536,7 @@ var Render = /** @__PURE__ @class */ (function () {
|
|
|
7536
7536
|
Render.prototype.bindGrid = function (parent, isEmpty) {
|
|
7537
7537
|
this.injectGridModules(parent);
|
|
7538
7538
|
this.parent.grid = new Grid({
|
|
7539
|
+
cssClass: this.parent.cssClass,
|
|
7539
7540
|
frozenColumns: 1,
|
|
7540
7541
|
frozenRows: 0,
|
|
7541
7542
|
enableHover: false,
|
|
@@ -7728,9 +7729,6 @@ var Render = /** @__PURE__ @class */ (function () {
|
|
|
7728
7729
|
/* eslint-disable */
|
|
7729
7730
|
Render.prototype.contextMenuOpen = function (args) {
|
|
7730
7731
|
var _this = this;
|
|
7731
|
-
if (args.element && this.parent.cssClass) {
|
|
7732
|
-
addClass([args.element.parentElement], this.parent.cssClass);
|
|
7733
|
-
}
|
|
7734
7732
|
var _loop_1 = function (item) {
|
|
7735
7733
|
var cellTarget = this_1.parent.lastCellClicked;
|
|
7736
7734
|
var elem = null;
|
|
@@ -14239,6 +14237,7 @@ var DrillThroughDialog = /** @__PURE__ @class */ (function () {
|
|
|
14239
14237
|
var drillThroughGrid = createElement('div', { id: this.parent.element.id + '_drillthroughgrid', className: DRILLTHROUGH_GRID_CLASS });
|
|
14240
14238
|
Grid.Inject(Selection, Reorder, Resize, Toolbar, ColumnChooser);
|
|
14241
14239
|
this.drillThroughGrid = new Grid({
|
|
14240
|
+
cssClass: this.parent.cssClass,
|
|
14242
14241
|
gridLines: 'Default',
|
|
14243
14242
|
allowResizing: true,
|
|
14244
14243
|
allowReordering: true,
|
|
@@ -15003,7 +15002,7 @@ var PivotChart = /** @__PURE__ @class */ (function () {
|
|
|
15003
15002
|
var columnSeries = colHeaders + ' | ' + actualText;
|
|
15004
15003
|
var yValue = (this.parent.dataType === 'pivot' ? (this.engineModule.aggregatedValueMatrix[rowIndex] &&
|
|
15005
15004
|
!isNullOrUndefined(this.engineModule.aggregatedValueMatrix[rowIndex][cellIndex])) ?
|
|
15006
|
-
Number(this.engineModule.aggregatedValueMatrix[rowIndex][cellIndex]) : Number(cell.value) : Number(cell.value));
|
|
15005
|
+
Number(this.engineModule.aggregatedValueMatrix[rowIndex][cellIndex]) : (!isNullOrUndefined(cell.value) ? Number(cell.value) : cell.value) : (!isNullOrUndefined(cell.value) ? Number(cell.value) : cell.value));
|
|
15007
15006
|
yValue = yValue === Infinity ? null : yValue;
|
|
15008
15007
|
if (yValue === 0) {
|
|
15009
15008
|
this.accEmptyPoint = true;
|
|
@@ -25288,7 +25287,7 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
|
|
|
25288
25287
|
if (cell && hasField) {
|
|
25289
25288
|
var rowHeaders = this.getRowText(rowIndex, 0);
|
|
25290
25289
|
var columnHeaders = this.getColText(0, colIndex, rowIndex);
|
|
25291
|
-
var value = (
|
|
25290
|
+
var value = (cell.formattedText === '' ? this.localeObj.getConstant('noValue') :
|
|
25292
25291
|
cell.formattedText);
|
|
25293
25292
|
if (this.tooltipTemplate && this.getTooltipTemplate() !== undefined) {
|
|
25294
25293
|
var rowFields = this.getHeaderField(rowIndex, colIndex, 'row');
|
|
@@ -25497,9 +25496,12 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
|
|
|
25497
25496
|
}
|
|
25498
25497
|
var target = e.target;
|
|
25499
25498
|
var ele = null;
|
|
25499
|
+
var axis = (target.parentElement.classList.contains(ROWSHEADER) || target.classList.contains(ROWSHEADER)) ? 'row' : 'column';
|
|
25500
|
+
ele = axis === 'column' ? closest(target, 'th') : closest(target, 'td');
|
|
25501
|
+
if (axis === 'column' && !ele && this.gridSettings.selectionSettings.mode !== 'Row') {
|
|
25502
|
+
ele = closest(target, 'td');
|
|
25503
|
+
}
|
|
25500
25504
|
if (!target.classList.contains(COLLAPSE) && !target.classList.contains(EXPAND) && this.enableValueSorting && this.dataType === 'pivot') {
|
|
25501
|
-
var axis = (target.parentElement.classList.contains(ROWSHEADER) || target.classList.contains(ROWSHEADER)) ? 'row' : 'column';
|
|
25502
|
-
ele = axis === 'column' ? closest(target, 'th') : closest(target, 'td');
|
|
25503
25505
|
this.cellClicked(target, ele, e);
|
|
25504
25506
|
try {
|
|
25505
25507
|
if ((ele.parentElement.parentElement.parentElement.parentElement.classList.contains('e-movableheader')
|
|
@@ -28753,7 +28755,7 @@ var DialogRenderer = /** @__PURE__ @class */ (function () {
|
|
|
28753
28755
|
this.parent.actionFailureMethod(execption);
|
|
28754
28756
|
}
|
|
28755
28757
|
};
|
|
28756
|
-
DialogRenderer.prototype.onCloseFieldList = function () {
|
|
28758
|
+
DialogRenderer.prototype.onCloseFieldList = function (args) {
|
|
28757
28759
|
if (this.parent.allowDeferLayoutUpdate) {
|
|
28758
28760
|
this.parent.dataSourceSettings =
|
|
28759
28761
|
extend({}, this.parent.clonedDataSource.properties, null, true); /* eslint-disable-line */
|
|
@@ -28776,7 +28778,9 @@ var DialogRenderer = /** @__PURE__ @class */ (function () {
|
|
|
28776
28778
|
}
|
|
28777
28779
|
if (this.parent.isPopupView && this.parent.pivotGridModule) {
|
|
28778
28780
|
this.parent.pivotGridModule.notify(uiUpdate, this);
|
|
28779
|
-
|
|
28781
|
+
if (!args.currentTarget.classList.contains('e-defer-cancel-button')) {
|
|
28782
|
+
this.parent.pivotGridModule.notify(contentReady, this);
|
|
28783
|
+
}
|
|
28780
28784
|
}
|
|
28781
28785
|
else {
|
|
28782
28786
|
this.cancelButtonClick();
|