@syncfusion/ej2-pivotview 20.2.38 → 20.2.45
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 +31 -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 +302 -254
- package/dist/es6/ej2-pivotview.es2015.js.map +1 -1
- package/dist/es6/ej2-pivotview.es5.js +306 -258
- package/dist/es6/ej2-pivotview.es5.js.map +1 -1
- package/dist/global/ej2-pivotview.min.js +2 -2
- package/dist/global/ej2-pivotview.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +22 -22
- package/src/base/engine.js +7 -5
- 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 +32 -18
- package/src/pivotview/actions/drill-through.js +1 -1
- package/src/pivotview/actions/excel-export.d.ts +1 -1
- package/src/pivotview/actions/excel-export.js +13 -4
- package/src/pivotview/actions/keyboard.js +6 -6
- package/src/pivotview/actions/pdf-export.d.ts +1 -1
- package/src/pivotview/actions/pdf-export.js +13 -2
- package/src/pivotview/actions/virtualscroll.js +2 -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 +26 -20
- package/src/pivotview/renderer/render.js +26 -16
- package/styles/bootstrap-dark.css +26 -24
- package/styles/bootstrap.css +26 -24
- package/styles/bootstrap4.css +26 -24
- package/styles/bootstrap5-dark.css +26 -24
- package/styles/bootstrap5.css +26 -24
- package/styles/fabric-dark.css +26 -24
- package/styles/fabric.css +26 -24
- package/styles/fluent-dark.css +27 -25
- package/styles/fluent.css +27 -25
- package/styles/highcontrast-light.css +26 -24
- package/styles/highcontrast.css +26 -24
- package/styles/material-dark.css +26 -24
- package/styles/material.css +26 -24
- package/styles/pivotfieldlist/_fluent-definition.scss +1 -1
- package/styles/pivotfieldlist/_layout.scss +14 -10
- package/styles/pivotfieldlist/_tailwind-definition.scss +1 -1
- package/styles/pivotfieldlist/_theme.scss +1 -2
- package/styles/pivotfieldlist/bootstrap-dark.css +23 -21
- package/styles/pivotfieldlist/bootstrap.css +23 -21
- package/styles/pivotfieldlist/bootstrap4.css +23 -21
- package/styles/pivotfieldlist/bootstrap5-dark.css +23 -21
- package/styles/pivotfieldlist/bootstrap5.css +23 -21
- package/styles/pivotfieldlist/fabric-dark.css +23 -21
- package/styles/pivotfieldlist/fabric.css +23 -21
- package/styles/pivotfieldlist/fluent-dark.css +24 -22
- package/styles/pivotfieldlist/fluent.css +24 -22
- package/styles/pivotfieldlist/highcontrast-light.css +23 -21
- package/styles/pivotfieldlist/highcontrast.css +23 -21
- package/styles/pivotfieldlist/material-dark.css +23 -21
- package/styles/pivotfieldlist/material.css +23 -21
- package/styles/pivotfieldlist/tailwind-dark.css +24 -22
- package/styles/pivotfieldlist/tailwind.css +24 -22
- package/styles/pivotview/_theme.scss +3 -3
- package/styles/pivotview/bootstrap-dark.css +3 -3
- package/styles/pivotview/bootstrap.css +3 -3
- package/styles/pivotview/bootstrap4.css +3 -3
- package/styles/pivotview/bootstrap5-dark.css +3 -3
- package/styles/pivotview/bootstrap5.css +3 -3
- package/styles/pivotview/fabric-dark.css +3 -3
- package/styles/pivotview/fabric.css +3 -3
- package/styles/pivotview/fluent-dark.css +3 -3
- package/styles/pivotview/fluent.css +3 -3
- package/styles/pivotview/highcontrast-light.css +3 -3
- package/styles/pivotview/highcontrast.css +3 -3
- package/styles/pivotview/material-dark.css +3 -3
- package/styles/pivotview/material.css +3 -3
- package/styles/pivotview/tailwind-dark.css +3 -3
- package/styles/pivotview/tailwind.css +3 -3
- package/styles/tailwind-dark.css +27 -25
- package/styles/tailwind.css +27 -25
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 20.2.
|
|
3
|
+
* version : 20.2.45
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2020. All rights reserved.
|
|
5
5
|
* Use of this code is subject to the terms of our license.
|
|
6
6
|
* A copy of the current license can be obtained at any time by e-mailing
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_from": "@syncfusion/ej2-pivotview@*",
|
|
3
|
-
"_id": "@syncfusion/ej2-pivotview@20.2.
|
|
3
|
+
"_id": "@syncfusion/ej2-pivotview@20.2.43",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-XjsfDH0cxE8LgSumwFSbDov7acHULplRK5u6Q8+Lt7VZr2fyLfYymSVMWzFISIsIUUvNXE/X0cz/OOFXctNtsg==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-pivotview",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"/@syncfusion/ej2-react-pivotview",
|
|
24
24
|
"/@syncfusion/ej2-vue-pivotview"
|
|
25
25
|
],
|
|
26
|
-
"_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-pivotview/-/ej2-pivotview-20.2.
|
|
27
|
-
"_shasum": "
|
|
26
|
+
"_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-pivotview/-/ej2-pivotview-20.2.43.tgz",
|
|
27
|
+
"_shasum": "01310a37ba9c9d083c9e259ee0dfc0bdced69675",
|
|
28
28
|
"_spec": "@syncfusion/ej2-pivotview@*",
|
|
29
29
|
"_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
|
|
30
30
|
"author": {
|
|
@@ -35,23 +35,23 @@
|
|
|
35
35
|
},
|
|
36
36
|
"bundleDependencies": false,
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@syncfusion/ej2-base": "~20.2.
|
|
39
|
-
"@syncfusion/ej2-buttons": "~20.2.
|
|
40
|
-
"@syncfusion/ej2-calendars": "~20.2.
|
|
41
|
-
"@syncfusion/ej2-charts": "~20.2.
|
|
42
|
-
"@syncfusion/ej2-compression": "~20.2.
|
|
43
|
-
"@syncfusion/ej2-data": "~20.2.
|
|
44
|
-
"@syncfusion/ej2-dropdowns": "~20.2.
|
|
45
|
-
"@syncfusion/ej2-excel-export": "~20.2.
|
|
46
|
-
"@syncfusion/ej2-file-utils": "~20.2.
|
|
47
|
-
"@syncfusion/ej2-grids": "~20.2.
|
|
48
|
-
"@syncfusion/ej2-inputs": "~20.2.
|
|
49
|
-
"@syncfusion/ej2-lists": "~20.2.
|
|
50
|
-
"@syncfusion/ej2-navigations": "~20.2.
|
|
51
|
-
"@syncfusion/ej2-pdf-export": "~20.2.
|
|
52
|
-
"@syncfusion/ej2-popups": "~20.2.
|
|
53
|
-
"@syncfusion/ej2-splitbuttons": "~20.2.
|
|
54
|
-
"@syncfusion/ej2-svg-base": "~20.2.
|
|
38
|
+
"@syncfusion/ej2-base": "~20.2.45",
|
|
39
|
+
"@syncfusion/ej2-buttons": "~20.2.45",
|
|
40
|
+
"@syncfusion/ej2-calendars": "~20.2.45",
|
|
41
|
+
"@syncfusion/ej2-charts": "~20.2.45",
|
|
42
|
+
"@syncfusion/ej2-compression": "~20.2.45",
|
|
43
|
+
"@syncfusion/ej2-data": "~20.2.45",
|
|
44
|
+
"@syncfusion/ej2-dropdowns": "~20.2.45",
|
|
45
|
+
"@syncfusion/ej2-excel-export": "~20.2.45",
|
|
46
|
+
"@syncfusion/ej2-file-utils": "~20.2.45",
|
|
47
|
+
"@syncfusion/ej2-grids": "~20.2.45",
|
|
48
|
+
"@syncfusion/ej2-inputs": "~20.2.45",
|
|
49
|
+
"@syncfusion/ej2-lists": "~20.2.45",
|
|
50
|
+
"@syncfusion/ej2-navigations": "~20.2.45",
|
|
51
|
+
"@syncfusion/ej2-pdf-export": "~20.2.45",
|
|
52
|
+
"@syncfusion/ej2-popups": "~20.2.45",
|
|
53
|
+
"@syncfusion/ej2-splitbuttons": "~20.2.45",
|
|
54
|
+
"@syncfusion/ej2-svg-base": "~20.2.45"
|
|
55
55
|
},
|
|
56
56
|
"deprecated": false,
|
|
57
57
|
"description": "The pivot grid, or pivot table, is used to visualize large sets of relational data in a cross-tabular format, similar to an Excel pivot table.",
|
|
@@ -78,6 +78,6 @@
|
|
|
78
78
|
"url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
|
|
79
79
|
},
|
|
80
80
|
"typings": "index.d.ts",
|
|
81
|
-
"version": "20.2.
|
|
81
|
+
"version": "20.2.45",
|
|
82
82
|
"sideEffects": false
|
|
83
83
|
}
|
package/src/base/engine.js
CHANGED
|
@@ -463,7 +463,7 @@ var PivotEngine = /** @class */ (function () {
|
|
|
463
463
|
if (this_1.fields.indexOf(newFieldName) === -1) {
|
|
464
464
|
this_1.fields.push(newFieldName);
|
|
465
465
|
}
|
|
466
|
-
item[this_1.fieldKeys[newFieldName]] = (isInRangeAvail ? undefined : new Date(newDate.setMonth(date.getMonth(),
|
|
466
|
+
item[this_1.fieldKeys[newFieldName]] = (isInRangeAvail ? undefined : new Date(newDate.setMonth(date.getMonth(), 1)).toString());
|
|
467
467
|
}
|
|
468
468
|
break;
|
|
469
469
|
case 'Days':
|
|
@@ -3999,8 +3999,9 @@ var PivotEngine = /** @class */ (function () {
|
|
|
3999
3999
|
for (var _g = 0, indexCollection_2 = indexCollection; _g < indexCollection_2.length; _g++) {
|
|
4000
4000
|
var index = indexCollection_2[_g];
|
|
4001
4001
|
var currentSet = data[index[0]][index[1]];
|
|
4002
|
+
var actualValue = isNullOrUndefined(selectedRowValues[index[1]].actualValue) ? 0 : selectedRowValues[index[1]].actualValue;
|
|
4002
4003
|
// let cVal: number = currentSet.value - (selectedRowValues[index[1]] as IAxisSet).value;
|
|
4003
|
-
var cVal = currentSet.actualValue
|
|
4004
|
+
var cVal = (isNullOrUndefined(currentSet.actualValue) ? 0 : currentSet.actualValue) - actualValue;
|
|
4004
4005
|
cVal = isNaN(cVal) ? 0 : (currentSet.value === 0 && selectedRowValues[index[1]].value === 0) ? 0 : cVal;
|
|
4005
4006
|
if (!this.aggregatedValueMatrix[index[0]]) {
|
|
4006
4007
|
this.aggregatedValueMatrix[index[0]] = [];
|
|
@@ -4012,8 +4013,7 @@ var PivotEngine = /** @class */ (function () {
|
|
|
4012
4013
|
else {
|
|
4013
4014
|
// cVal = ((selectedRowValues[index[1]] as IAxisSet).value === 0 ?
|
|
4014
4015
|
// 0 : (cVal / (selectedRowValues[index[1]] as IAxisSet).value));
|
|
4015
|
-
cVal = (
|
|
4016
|
-
0 : (cVal / selectedRowValues[index[1]].actualValue));
|
|
4016
|
+
cVal = (actualValue === 0 ? 0 : (cVal / actualValue));
|
|
4017
4017
|
this.aggregatedValueMatrix[index[0]][index[1]] = cVal;
|
|
4018
4018
|
currentSet.formattedText = currentSet.showSubTotals ? (cVal !== 0 ? this.globalize.formatNumber(cVal, { format: 'P', maximumFractionDigits: this.getPercentFormat(this.formatFields, currentSet.actualText) }) : this.emptyCellTextContent) : currentSet.formattedText;
|
|
4019
4019
|
}
|
|
@@ -4252,7 +4252,9 @@ var PivotEngine = /** @class */ (function () {
|
|
|
4252
4252
|
activeColumn[cln].valueSort[item.valueSort.levelName] &&
|
|
4253
4253
|
currentSet.axis === 'value' && currentSet.actualText === name_3) {
|
|
4254
4254
|
if (activeColumn[cln].type !== 'grand sum') {
|
|
4255
|
-
|
|
4255
|
+
if (!isNullOrUndefined(currentSet.value)) {
|
|
4256
|
+
cVal += currentSet.value;
|
|
4257
|
+
}
|
|
4256
4258
|
currentSet.formattedText = subTotal ? '' : this.getFormattedValue(cVal, name_3).formattedText;
|
|
4257
4259
|
if (!this.aggregatedValueMatrix[rln]) {
|
|
4258
4260
|
this.aggregatedValueMatrix[rln] = [];
|
|
@@ -19,6 +19,8 @@ export declare const afterPivotTableRender: string;
|
|
|
19
19
|
/** @hidden */
|
|
20
20
|
export declare const beforeExport: string;
|
|
21
21
|
/** @hidden */
|
|
22
|
+
export declare const exportComplete: string;
|
|
23
|
+
/** @hidden */
|
|
22
24
|
export declare const excelHeaderQueryCellInfo: string;
|
|
23
25
|
/** @hidden */
|
|
24
26
|
export declare const pdfHeaderQueryCellInfo: string;
|
|
@@ -19,6 +19,8 @@ export var afterPivotTableRender = 'afterPivotTableRender';
|
|
|
19
19
|
/** @hidden */
|
|
20
20
|
export var beforeExport = 'beforeExport';
|
|
21
21
|
/** @hidden */
|
|
22
|
+
export var exportComplete = 'exportComplete';
|
|
23
|
+
/** @hidden */
|
|
22
24
|
export var excelHeaderQueryCellInfo = 'excelHeaderQueryCellInfo';
|
|
23
25
|
/** @hidden */
|
|
24
26
|
export var pdfHeaderQueryCellInfo = 'pdfHeaderQueryCellInfo';
|
|
@@ -339,9 +339,7 @@ export declare const CALC_FORMAT_INPUT: string;
|
|
|
339
339
|
/** @hidden */
|
|
340
340
|
export declare const CALCINPUTDIV: string;
|
|
341
341
|
/** @hidden */
|
|
342
|
-
export declare const
|
|
343
|
-
/** @hidden */
|
|
344
|
-
export declare const OLAP_CALC_CUSTOM_FORMAT_INPUTDIV: string;
|
|
342
|
+
export declare const PIVOT_CALC_CUSTOM_FORMAT_INPUTDIV: string;
|
|
345
343
|
/** @hidden */
|
|
346
344
|
export declare const CALC_HIERARCHY_LIST_DIV: string;
|
|
347
345
|
/** @hidden */
|
|
@@ -415,7 +413,7 @@ export declare const PIVOT_FORMULA_TITLE_CLASS: string;
|
|
|
415
413
|
/** @hidden */
|
|
416
414
|
export declare const OLAP_HIERARCHY_TITLE_CLASS: string;
|
|
417
415
|
/** @hidden */
|
|
418
|
-
export declare const
|
|
416
|
+
export declare const PIVOT_FORMAT_TITLE_CLASS: string;
|
|
419
417
|
/** @hidden */
|
|
420
418
|
export declare const OLAP_MEMBER_TITLE_CLASS: string;
|
|
421
419
|
/** @hidden */
|
|
@@ -341,13 +341,11 @@ export var CALC_FORMAT_INPUT = 'e-custom-format-input';
|
|
|
341
341
|
/** @hidden */
|
|
342
342
|
export var CALCINPUTDIV = 'e-pivot-calc-input-div';
|
|
343
343
|
/** @hidden */
|
|
344
|
-
export var
|
|
345
|
-
/** @hidden */
|
|
346
|
-
export var OLAP_CALC_CUSTOM_FORMAT_INPUTDIV = 'e-olap-calc-custom-format-div';
|
|
344
|
+
export var PIVOT_CALC_CUSTOM_FORMAT_INPUTDIV = 'e-pivot-calc-custom-format-div';
|
|
347
345
|
/** @hidden */
|
|
348
346
|
export var CALC_HIERARCHY_LIST_DIV = 'e-olap-calc-hierarchy-list-div';
|
|
349
347
|
/** @hidden */
|
|
350
|
-
export var CALC_FORMAT_TYPE_DIV = 'e-
|
|
348
|
+
export var CALC_FORMAT_TYPE_DIV = 'e-pivot-calc-format-type-div';
|
|
351
349
|
/** @hidden */
|
|
352
350
|
export var CALC_MEMBER_TYPE_DIV = 'e-olap-calc-member-type-div';
|
|
353
351
|
/** @hidden */
|
|
@@ -417,7 +415,7 @@ export var PIVOT_FORMULA_TITLE_CLASS = 'e-pivot-formula-title';
|
|
|
417
415
|
/** @hidden */
|
|
418
416
|
export var OLAP_HIERARCHY_TITLE_CLASS = 'e-olap-hierarchy-title';
|
|
419
417
|
/** @hidden */
|
|
420
|
-
export var
|
|
418
|
+
export var PIVOT_FORMAT_TITLE_CLASS = 'e-pivot-format-title';
|
|
421
419
|
/** @hidden */
|
|
422
420
|
export var OLAP_MEMBER_TITLE_CLASS = 'e-olap-member-title';
|
|
423
421
|
/** @hidden */
|
|
@@ -1234,3 +1234,14 @@ export interface HeadersSortEventArgs {
|
|
|
1234
1234
|
/** Defines an option to restrict the unwanted custom sorting operation. By default, the value is in 'false' state. */
|
|
1235
1235
|
IsOrderChanged?: boolean;
|
|
1236
1236
|
}
|
|
1237
|
+
/**
|
|
1238
|
+
* The export complete event arguments provide the necessary information about the exported data after completing the file export.
|
|
1239
|
+
*/
|
|
1240
|
+
export interface ExportCompleteEventArgs {
|
|
1241
|
+
/** Defines the current export type such as PDF, Excel, and CSV. */
|
|
1242
|
+
type?: string;
|
|
1243
|
+
/** Defines the promise object for blob data. */
|
|
1244
|
+
promise?: Promise<{
|
|
1245
|
+
blobData: Blob;
|
|
1246
|
+
}>;
|
|
1247
|
+
}
|
|
@@ -36,6 +36,7 @@ export declare class CalculatedField implements IAction {
|
|
|
36
36
|
private confirmPopUp;
|
|
37
37
|
private field;
|
|
38
38
|
private accordion;
|
|
39
|
+
private formatTypes;
|
|
39
40
|
/**
|
|
40
41
|
* Constructor for calculatedfield module.
|
|
41
42
|
* @param {PivotView | PivotFieldList} parent - Component instance.
|
|
@@ -141,7 +142,8 @@ export declare class CalculatedField implements IAction {
|
|
|
141
142
|
* To create treeview.
|
|
142
143
|
* @returns {void}
|
|
143
144
|
*/
|
|
144
|
-
private
|
|
145
|
+
private createDropElements;
|
|
146
|
+
private getFormat;
|
|
145
147
|
/**
|
|
146
148
|
* To create treeview.
|
|
147
149
|
* @returns {void}
|