@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
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 20.1.
|
|
3
|
+
* version : 20.1.57
|
|
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.1.
|
|
3
|
+
"_id": "@syncfusion/ej2-pivotview@20.1.56",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-AsjhIqLyM06wqRDY9pgyfqJuKE6EAzts9GOXrgDko+5joxKkBFwURw35lbZrqn3eTFkhBPxAt358DUsU3v42Rw==",
|
|
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.1.
|
|
27
|
-
"_shasum": "
|
|
26
|
+
"_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-pivotview/-/ej2-pivotview-20.1.56.tgz",
|
|
27
|
+
"_shasum": "ba38c5a5526c0ab562e38a1618ecea1ecfe9e8af",
|
|
28
28
|
"_spec": "@syncfusion/ej2-pivotview@*",
|
|
29
29
|
"_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
|
|
30
30
|
"author": {
|
|
@@ -37,20 +37,20 @@
|
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@syncfusion/ej2-base": "~20.1.56",
|
|
39
39
|
"@syncfusion/ej2-buttons": "~20.1.55",
|
|
40
|
-
"@syncfusion/ej2-calendars": "~20.1.
|
|
41
|
-
"@syncfusion/ej2-charts": "~20.1.
|
|
40
|
+
"@syncfusion/ej2-calendars": "~20.1.57",
|
|
41
|
+
"@syncfusion/ej2-charts": "~20.1.57",
|
|
42
42
|
"@syncfusion/ej2-compression": "~20.1.55",
|
|
43
43
|
"@syncfusion/ej2-data": "~20.1.55",
|
|
44
|
-
"@syncfusion/ej2-dropdowns": "~20.1.
|
|
44
|
+
"@syncfusion/ej2-dropdowns": "~20.1.57",
|
|
45
45
|
"@syncfusion/ej2-excel-export": "~20.1.55",
|
|
46
46
|
"@syncfusion/ej2-file-utils": "~20.1.55",
|
|
47
|
-
"@syncfusion/ej2-grids": "~20.1.
|
|
47
|
+
"@syncfusion/ej2-grids": "~20.1.57",
|
|
48
48
|
"@syncfusion/ej2-inputs": "~20.1.55",
|
|
49
49
|
"@syncfusion/ej2-lists": "~20.1.55",
|
|
50
|
-
"@syncfusion/ej2-navigations": "~20.1.
|
|
50
|
+
"@syncfusion/ej2-navigations": "~20.1.57",
|
|
51
51
|
"@syncfusion/ej2-pdf-export": "~20.1.55",
|
|
52
|
-
"@syncfusion/ej2-popups": "~20.1.
|
|
53
|
-
"@syncfusion/ej2-splitbuttons": "~20.1.
|
|
52
|
+
"@syncfusion/ej2-popups": "~20.1.57",
|
|
53
|
+
"@syncfusion/ej2-splitbuttons": "~20.1.57",
|
|
54
54
|
"@syncfusion/ej2-svg-base": "~20.1.55"
|
|
55
55
|
},
|
|
56
56
|
"deprecated": false,
|
|
@@ -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.1.
|
|
81
|
+
"version": "20.1.57",
|
|
82
82
|
"sideEffects": false
|
|
83
83
|
}
|
package/src/base/engine.js
CHANGED
|
@@ -2967,7 +2967,7 @@ var PivotEngine = /** @class */ (function () {
|
|
|
2967
2967
|
/* eslint-disable */
|
|
2968
2968
|
PivotEngine.prototype.getIndexedHeaders = function (keys, data, keyInd, position, axis, parentMember, valueFil) {
|
|
2969
2969
|
var hierarchy = [];
|
|
2970
|
-
if (keys) {
|
|
2970
|
+
if (keys && keys.length > 0) {
|
|
2971
2971
|
var rlen = keys.length;
|
|
2972
2972
|
var decisionObj = {};
|
|
2973
2973
|
var fieldName = keys[keyInd].name;
|
|
@@ -4358,8 +4358,8 @@ var PivotEngine = /** @class */ (function () {
|
|
|
4358
4358
|
axis: 'value', actualText: field, indexObject: this.isDrillThrough ? this.rawIndexObject : {},
|
|
4359
4359
|
rowHeaders: rows[rln].type === 'grand sum' ? '' : rows[rln].valueSort.levelName,
|
|
4360
4360
|
columnHeaders: columns[cln].type === 'grand sum' ? '' : columns[cln].valueSort.levelName,
|
|
4361
|
-
formattedText: formattedText, value:
|
|
4362
|
-
actualValue:
|
|
4361
|
+
formattedText: formattedText, value: value,
|
|
4362
|
+
actualValue: actualValue,
|
|
4363
4363
|
rowIndex: tnum, colIndex: dln, isSum: isSum, isGrandSum: isGrand, showSubTotals: !subTotal
|
|
4364
4364
|
};
|
|
4365
4365
|
this.rawIndexObject = {};
|
|
@@ -348,6 +348,7 @@ var DrillThroughDialog = /** @class */ (function () {
|
|
|
348
348
|
var drillThroughGrid = createElement('div', { id: this.parent.element.id + '_drillthroughgrid', className: cls.DRILLTHROUGH_GRID_CLASS });
|
|
349
349
|
Grid.Inject(Selection, Reorder, Resize, Toolbar, ColumnChooser);
|
|
350
350
|
this.drillThroughGrid = new Grid({
|
|
351
|
+
cssClass: this.parent.cssClass,
|
|
351
352
|
gridLines: 'Default',
|
|
352
353
|
allowResizing: true,
|
|
353
354
|
allowReordering: true,
|
|
@@ -315,7 +315,7 @@ var PivotChart = /** @class */ (function () {
|
|
|
315
315
|
var columnSeries = colHeaders + ' | ' + actualText;
|
|
316
316
|
var yValue = (this.parent.dataType === 'pivot' ? (this.engineModule.aggregatedValueMatrix[rowIndex] &&
|
|
317
317
|
!isNullOrUndefined(this.engineModule.aggregatedValueMatrix[rowIndex][cellIndex])) ?
|
|
318
|
-
Number(this.engineModule.aggregatedValueMatrix[rowIndex][cellIndex]) : Number(cell.value) : Number(cell.value));
|
|
318
|
+
Number(this.engineModule.aggregatedValueMatrix[rowIndex][cellIndex]) : (!isNullOrUndefined(cell.value) ? Number(cell.value) : cell.value) : (!isNullOrUndefined(cell.value) ? Number(cell.value) : cell.value));
|
|
319
319
|
yValue = yValue === Infinity ? null : yValue;
|
|
320
320
|
if (yValue === 0) {
|
|
321
321
|
this.accEmptyPoint = true;
|
|
@@ -518,7 +518,7 @@ var DialogRenderer = /** @class */ (function () {
|
|
|
518
518
|
this.parent.actionFailureMethod(execption);
|
|
519
519
|
}
|
|
520
520
|
};
|
|
521
|
-
DialogRenderer.prototype.onCloseFieldList = function () {
|
|
521
|
+
DialogRenderer.prototype.onCloseFieldList = function (args) {
|
|
522
522
|
if (this.parent.allowDeferLayoutUpdate) {
|
|
523
523
|
this.parent.dataSourceSettings =
|
|
524
524
|
extend({}, this.parent.clonedDataSource.properties, null, true); /* eslint-disable-line */
|
|
@@ -541,7 +541,9 @@ var DialogRenderer = /** @class */ (function () {
|
|
|
541
541
|
}
|
|
542
542
|
if (this.parent.isPopupView && this.parent.pivotGridModule) {
|
|
543
543
|
this.parent.pivotGridModule.notify(events.uiUpdate, this);
|
|
544
|
-
|
|
544
|
+
if (!args.currentTarget.classList.contains('e-defer-cancel-button')) {
|
|
545
|
+
this.parent.pivotGridModule.notify(events.contentReady, this);
|
|
546
|
+
}
|
|
545
547
|
}
|
|
546
548
|
else {
|
|
547
549
|
this.cancelButtonClick();
|
|
@@ -2563,7 +2563,7 @@ var PivotView = /** @class */ (function (_super) {
|
|
|
2563
2563
|
if (cell && hasField) {
|
|
2564
2564
|
var rowHeaders = this.getRowText(rowIndex, 0);
|
|
2565
2565
|
var columnHeaders = this.getColText(0, colIndex, rowIndex);
|
|
2566
|
-
var value = (
|
|
2566
|
+
var value = (cell.formattedText === '' ? this.localeObj.getConstant('noValue') :
|
|
2567
2567
|
cell.formattedText);
|
|
2568
2568
|
if (this.tooltipTemplate && this.getTooltipTemplate() !== undefined) {
|
|
2569
2569
|
var rowFields = this.getHeaderField(rowIndex, colIndex, 'row');
|
|
@@ -2772,9 +2772,12 @@ var PivotView = /** @class */ (function (_super) {
|
|
|
2772
2772
|
}
|
|
2773
2773
|
var target = e.target;
|
|
2774
2774
|
var ele = null;
|
|
2775
|
+
var axis = (target.parentElement.classList.contains(cls.ROWSHEADER) || target.classList.contains(cls.ROWSHEADER)) ? 'row' : 'column';
|
|
2776
|
+
ele = axis === 'column' ? closest(target, 'th') : closest(target, 'td');
|
|
2777
|
+
if (axis === 'column' && !ele && this.gridSettings.selectionSettings.mode !== 'Row') {
|
|
2778
|
+
ele = closest(target, 'td');
|
|
2779
|
+
}
|
|
2775
2780
|
if (!target.classList.contains(cls.COLLAPSE) && !target.classList.contains(cls.EXPAND) && this.enableValueSorting && this.dataType === 'pivot') {
|
|
2776
|
-
var axis = (target.parentElement.classList.contains(cls.ROWSHEADER) || target.classList.contains(cls.ROWSHEADER)) ? 'row' : 'column';
|
|
2777
|
-
ele = axis === 'column' ? closest(target, 'th') : closest(target, 'td');
|
|
2778
2781
|
this.cellClicked(target, ele, e);
|
|
2779
2782
|
try {
|
|
2780
2783
|
if ((ele.parentElement.parentElement.parentElement.parentElement.classList.contains('e-movableheader')
|
|
@@ -157,6 +157,7 @@ var Render = /** @class */ (function () {
|
|
|
157
157
|
Render.prototype.bindGrid = function (parent, isEmpty) {
|
|
158
158
|
this.injectGridModules(parent);
|
|
159
159
|
this.parent.grid = new Grid({
|
|
160
|
+
cssClass: this.parent.cssClass,
|
|
160
161
|
frozenColumns: 1,
|
|
161
162
|
frozenRows: 0,
|
|
162
163
|
enableHover: false,
|
|
@@ -349,9 +350,6 @@ var Render = /** @class */ (function () {
|
|
|
349
350
|
/* eslint-disable */
|
|
350
351
|
Render.prototype.contextMenuOpen = function (args) {
|
|
351
352
|
var _this = this;
|
|
352
|
-
if (args.element && this.parent.cssClass) {
|
|
353
|
-
addClass([args.element.parentElement], this.parent.cssClass);
|
|
354
|
-
}
|
|
355
353
|
var _loop_1 = function (item) {
|
|
356
354
|
var cellTarget = this_1.parent.lastCellClicked;
|
|
357
355
|
var elem = null;
|
package/styles/bootstrap4.css
CHANGED
|
@@ -611,7 +611,7 @@
|
|
|
611
611
|
}
|
|
612
612
|
.e-pivotview .e-pivot-toolbar .e-pivot-toolbar-menu ul .e-menu-item.e-focused .e-menu-icon,
|
|
613
613
|
.e-pivotview .e-pivot-toolbar .e-pivot-toolbar-menu ul .e-menu-item.e-focused .e-icons {
|
|
614
|
-
color: #
|
|
614
|
+
color: #fff;
|
|
615
615
|
}
|
|
616
616
|
.e-pivotview .e-pivot-toolbar .e-tab .e-tab-header .e-toolbar-item.e-active {
|
|
617
617
|
margin-left: 18px !important;
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
font-weight: normal;
|
|
29
29
|
@if ($field-list-skin == 'bootstrap4') {
|
|
30
30
|
// sass-lint:disable-all
|
|
31
|
-
color:
|
|
31
|
+
color: $black;
|
|
32
32
|
// sass-lint:enable-all
|
|
33
33
|
opacity: .5;
|
|
34
34
|
}
|
|
@@ -1113,9 +1113,9 @@
|
|
|
1113
1113
|
|
|
1114
1114
|
&:hover {
|
|
1115
1115
|
@if ($field-list-skin == 'bootstrap4') {
|
|
1116
|
-
background-color:
|
|
1117
|
-
border-color:
|
|
1118
|
-
color:
|
|
1116
|
+
background-color: $gray-600 !important;
|
|
1117
|
+
border-color: $gray-600 !important;
|
|
1118
|
+
color: $white !important;
|
|
1119
1119
|
}
|
|
1120
1120
|
}
|
|
1121
1121
|
|
|
@@ -1135,9 +1135,9 @@
|
|
|
1135
1135
|
|
|
1136
1136
|
&:focus {
|
|
1137
1137
|
@if ($field-list-skin == 'bootstrap4') {
|
|
1138
|
-
background-color:
|
|
1139
|
-
border-color:
|
|
1140
|
-
color:
|
|
1138
|
+
background-color: $gray-600 !important;
|
|
1139
|
+
border-color: $gray-600 !important;
|
|
1140
|
+
color: $white !important;
|
|
1141
1141
|
}
|
|
1142
1142
|
|
|
1143
1143
|
&.e-active {
|
|
@@ -147,9 +147,9 @@
|
|
|
147
147
|
|
|
148
148
|
&:hover {
|
|
149
149
|
@if ($pivotgrid-skin == 'bootstrap4') {
|
|
150
|
-
background-color:
|
|
151
|
-
border-color:
|
|
152
|
-
color:
|
|
150
|
+
background-color: $gray-600 !important;
|
|
151
|
+
border-color: $gray-600 !important;
|
|
152
|
+
color: $white !important;
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
155
|
|
|
@@ -169,9 +169,9 @@
|
|
|
169
169
|
|
|
170
170
|
&:focus {
|
|
171
171
|
@if ($pivotgrid-skin == 'bootstrap4') {
|
|
172
|
-
background-color:
|
|
173
|
-
border-color:
|
|
174
|
-
color:
|
|
172
|
+
background-color: $gray-600 !important;
|
|
173
|
+
border-color: $gray-600 !important;
|
|
174
|
+
color: $white !important;
|
|
175
175
|
}
|
|
176
176
|
|
|
177
177
|
&.e-active {
|
|
@@ -637,8 +637,8 @@
|
|
|
637
637
|
background-color: transparent;
|
|
638
638
|
border: none;
|
|
639
639
|
@if ($pivotgrid-skin == 'bootstrap4') {
|
|
640
|
-
background-color:
|
|
641
|
-
color:
|
|
640
|
+
background-color: $gray-100;
|
|
641
|
+
color: $gray-700;
|
|
642
642
|
}
|
|
643
643
|
|
|
644
644
|
// sass-lint:disable-all
|
|
@@ -649,8 +649,8 @@
|
|
|
649
649
|
overflow: hidden;
|
|
650
650
|
padding-left: 10px;
|
|
651
651
|
@if ($pivotgrid-skin == 'bootstrap4') {
|
|
652
|
-
background-color:
|
|
653
|
-
color:
|
|
652
|
+
background-color: $gray-100;
|
|
653
|
+
color: $gray-700;
|
|
654
654
|
}
|
|
655
655
|
|
|
656
656
|
.e-menu-icon {
|
|
@@ -658,7 +658,7 @@
|
|
|
658
658
|
margin-right: 0;
|
|
659
659
|
font-size: 16px;
|
|
660
660
|
@if ($pivotgrid-skin == 'bootstrap4') {
|
|
661
|
-
color:
|
|
661
|
+
color: $gray-700;
|
|
662
662
|
}
|
|
663
663
|
|
|
664
664
|
@if ($pivotgrid-skin == 'FluentUI') {
|
|
@@ -676,7 +676,7 @@
|
|
|
676
676
|
|
|
677
677
|
.e-caret {
|
|
678
678
|
@if ($pivotgrid-skin == 'bootstrap4') {
|
|
679
|
-
color:
|
|
679
|
+
color: $gray-700;
|
|
680
680
|
}
|
|
681
681
|
|
|
682
682
|
@if ($pivotgrid-skin == 'FluentUI') {
|
|
@@ -695,14 +695,14 @@
|
|
|
695
695
|
|
|
696
696
|
ul .e-menu-item.e-focused {
|
|
697
697
|
@if ($pivotgrid-skin == 'bootstrap4') {
|
|
698
|
-
background-color:
|
|
698
|
+
background-color: $gray-600;
|
|
699
699
|
border-radius: $pivotgrid-default-border-radius;
|
|
700
700
|
}
|
|
701
701
|
|
|
702
702
|
.e-menu-icon,
|
|
703
703
|
.e-icons{
|
|
704
704
|
@if ($pivotgrid-skin == 'bootstrap4') {
|
|
705
|
-
color
|
|
705
|
+
color: $white;
|
|
706
706
|
}
|
|
707
707
|
|
|
708
708
|
@if ($pivotgrid-skin == 'FluentUI') {
|
|
@@ -221,7 +221,7 @@
|
|
|
221
221
|
.e-grid .e-icons {
|
|
222
222
|
color: $pivotgrid-button-icon-color !important;
|
|
223
223
|
@if ($pivotgrid-skin == 'bootstrap4') {
|
|
224
|
-
color:
|
|
224
|
+
color: $gray-700 !important;
|
|
225
225
|
}
|
|
226
226
|
|
|
227
227
|
@if ($skin-name == 'bootstrap5') {
|
|
@@ -231,7 +231,7 @@
|
|
|
231
231
|
&:hover {
|
|
232
232
|
color: $pivotgrid-icon-hover-color !important;
|
|
233
233
|
@if ($pivotgrid-skin == 'bootstrap4') {
|
|
234
|
-
color:
|
|
234
|
+
color: $gray-700 !important;
|
|
235
235
|
}
|
|
236
236
|
|
|
237
237
|
@if ($skin-name == 'bootstrap5') {
|
|
@@ -260,7 +260,7 @@
|
|
|
260
260
|
.e-icons {
|
|
261
261
|
color: $pivotgrid-button-active-icon-color !important;
|
|
262
262
|
@if ($pivotgrid-skin == 'bootstrap4') {
|
|
263
|
-
color:
|
|
263
|
+
color: $gray-700 !important;
|
|
264
264
|
}
|
|
265
265
|
|
|
266
266
|
@if ($skin-name == 'bootstrap5') {
|
|
@@ -611,7 +611,7 @@
|
|
|
611
611
|
}
|
|
612
612
|
.e-pivotview .e-pivot-toolbar .e-pivot-toolbar-menu ul .e-menu-item.e-focused .e-menu-icon,
|
|
613
613
|
.e-pivotview .e-pivot-toolbar .e-pivot-toolbar-menu ul .e-menu-item.e-focused .e-icons {
|
|
614
|
-
color: #
|
|
614
|
+
color: #fff;
|
|
615
615
|
}
|
|
616
616
|
.e-pivotview .e-pivot-toolbar .e-tab .e-tab-header .e-toolbar-item.e-active {
|
|
617
617
|
margin-left: 18px !important;
|