@syncfusion/ej2-pivotview 19.3.57 → 19.4.42
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/.github/PULL_REQUEST_TEMPLATE/Bug.md +76 -0
- package/.github/PULL_REQUEST_TEMPLATE/Feature.md +56 -0
- package/CHANGELOG.md +40 -27
- package/README.md +1 -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 +2052 -1101
- package/dist/es6/ej2-pivotview.es2015.js.map +1 -1
- package/dist/es6/ej2-pivotview.es5.js +2068 -1111
- 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.d.ts +17 -1
- package/src/base/engine.js +78 -27
- package/src/base/export-util.d.ts +17 -0
- package/src/base/export-util.js +245 -0
- package/src/base/olap/engine.d.ts +7 -0
- package/src/base/olap/engine.js +138 -35
- package/src/base/util.d.ts +0 -9
- package/src/base/util.js +2 -215
- package/src/common/actions/field-list.js +1 -1
- package/src/common/actions/pivot-button.d.ts +5 -8
- package/src/common/actions/pivot-button.js +188 -171
- package/src/common/base/constant.d.ts +186 -0
- package/src/common/base/constant.js +186 -0
- package/src/common/base/css-constant.d.ts +2 -0
- package/src/common/base/css-constant.js +2 -0
- package/src/common/base/enum.d.ts +11 -0
- package/src/common/base/interface.d.ts +272 -2
- package/src/common/calculatedfield/calculated-field.js +108 -93
- package/src/common/conditionalformatting/conditional-formatting.js +8 -2
- package/src/common/grouping-bar/grouping-bar.js +1 -1
- package/src/common/popups/aggregate-menu.js +57 -35
- package/src/common/popups/drillthrough-dialog.js +187 -139
- package/src/common/popups/filter-dialog.d.ts +1 -0
- package/src/common/popups/filter-dialog.js +22 -1
- package/src/common/popups/formatting-dialog.js +4 -0
- package/src/common/popups/grouping.js +2 -1
- package/src/common/popups/toolbar.js +305 -203
- package/src/pivotchart/base/pivotchart.js +36 -15
- package/src/pivotfieldlist/base/field-list-model.d.ts +49 -1
- package/src/pivotfieldlist/base/field-list.d.ts +55 -1
- package/src/pivotfieldlist/base/field-list.js +68 -1
- package/src/pivotfieldlist/renderer/dialog-renderer.js +38 -15
- package/src/pivotfieldlist/renderer/tree-renderer.js +35 -22
- package/src/pivotview/actions/drill-through.js +1 -1
- package/src/pivotview/actions/excel-export.js +10 -11
- package/src/pivotview/actions/pdf-export.js +13 -6
- package/src/pivotview/actions/virtualscroll.d.ts +1 -0
- package/src/pivotview/actions/virtualscroll.js +6 -2
- package/src/pivotview/base/pivotview-model.d.ts +46 -1
- package/src/pivotview/base/pivotview.d.ts +56 -2
- package/src/pivotview/base/pivotview.js +288 -107
- package/src/pivotview/model/chartsettings-model.d.ts +2 -2
- package/src/pivotview/model/chartsettings.d.ts +2 -2
- package/src/pivotview/model/chartsettings.js +2 -2
- package/src/pivotview/model/datasourcesettings-model.d.ts +8 -1
- package/src/pivotview/model/datasourcesettings.d.ts +7 -0
- package/src/pivotview/model/datasourcesettings.js +3 -0
- package/src/pivotview/renderer/render.d.ts +2 -1
- package/src/pivotview/renderer/render.js +39 -6
- package/styles/bootstrap-dark.css +145 -118
- package/styles/bootstrap.css +145 -118
- package/styles/bootstrap4.css +144 -95
- package/styles/bootstrap5-dark.css +250 -182
- package/styles/bootstrap5.css +245 -175
- package/styles/fabric-dark.css +147 -117
- package/styles/fabric.css +145 -116
- package/styles/highcontrast-light.css +146 -116
- package/styles/highcontrast.css +148 -118
- package/styles/material-dark.css +138 -111
- package/styles/material.css +138 -111
- package/styles/pivotfieldlist/_bootstrap-dark-definition.scss +1 -4
- package/styles/pivotfieldlist/_bootstrap-definition.scss +1 -4
- package/styles/pivotfieldlist/_bootstrap4-definition.scss +1 -4
- package/styles/pivotfieldlist/_bootstrap5-definition.scss +8 -11
- package/styles/pivotfieldlist/_fabric-dark-definition.scss +1 -4
- package/styles/pivotfieldlist/_fabric-definition.scss +1 -4
- package/styles/pivotfieldlist/_fluent-definition.scss +177 -0
- package/styles/pivotfieldlist/_highcontrast-definition.scss +1 -4
- package/styles/pivotfieldlist/_highcontrast-light-definition.scss +1 -4
- package/styles/pivotfieldlist/_layout.scss +199 -109
- package/styles/pivotfieldlist/_material-dark-definition.scss +1 -4
- package/styles/pivotfieldlist/_material-definition.scss +1 -4
- package/styles/pivotfieldlist/_tailwind-definition.scss +6 -9
- package/styles/pivotfieldlist/_theme.scss +213 -47
- package/styles/pivotfieldlist/bootstrap-dark.css +79 -72
- package/styles/pivotfieldlist/bootstrap.css +79 -72
- package/styles/pivotfieldlist/bootstrap4.css +74 -53
- package/styles/pivotfieldlist/bootstrap5-dark.css +145 -103
- package/styles/pivotfieldlist/bootstrap5.css +145 -103
- package/styles/pivotfieldlist/fabric-dark.css +79 -72
- package/styles/pivotfieldlist/fabric.css +79 -72
- package/styles/pivotfieldlist/highcontrast-light.css +79 -72
- package/styles/pivotfieldlist/highcontrast.css +79 -72
- package/styles/pivotfieldlist/icons/_bootstrap5.scss +2 -2
- package/styles/pivotfieldlist/icons/_fluent.scss +352 -0
- package/styles/pivotfieldlist/icons/_tailwind.scss +2 -2
- package/styles/pivotfieldlist/material-dark.css +74 -67
- package/styles/pivotfieldlist/material.css +74 -67
- package/styles/pivotfieldlist/tailwind-dark.css +168 -95
- package/styles/pivotfieldlist/tailwind.css +170 -97
- package/styles/pivotview/_bootstrap-dark-definition.scss +9 -6
- package/styles/pivotview/_bootstrap-definition.scss +9 -6
- package/styles/pivotview/_bootstrap4-definition.scss +10 -7
- package/styles/pivotview/_bootstrap5-definition.scss +12 -9
- package/styles/pivotview/_fabric-dark-definition.scss +8 -5
- package/styles/pivotview/_fabric-definition.scss +7 -4
- package/styles/pivotview/_fluent-definition.scss +126 -0
- package/styles/pivotview/_highcontrast-definition.scss +8 -5
- package/styles/pivotview/_highcontrast-light-definition.scss +7 -4
- package/styles/pivotview/_layout.scss +119 -64
- package/styles/pivotview/_material-dark-definition.scss +7 -4
- package/styles/pivotview/_material-definition.scss +8 -4
- package/styles/pivotview/_tailwind-definition.scss +8 -5
- package/styles/pivotview/_theme.scss +124 -70
- package/styles/pivotview/bootstrap-dark.css +66 -46
- package/styles/pivotview/bootstrap.css +66 -46
- package/styles/pivotview/bootstrap4.css +70 -42
- package/styles/pivotview/bootstrap5-dark.css +99 -73
- package/styles/pivotview/bootstrap5-dark.scss +0 -1
- package/styles/pivotview/bootstrap5.css +100 -72
- package/styles/pivotview/fabric-dark.css +68 -45
- package/styles/pivotview/fabric.css +66 -44
- package/styles/pivotview/highcontrast-light.css +67 -44
- package/styles/pivotview/highcontrast.css +69 -46
- package/styles/pivotview/icons/_bootstrap4.scss +1 -1
- package/styles/pivotview/icons/_bootstrap5.scss +1 -1
- package/styles/pivotview/icons/_fluent.scss +183 -0
- package/styles/pivotview/icons/_tailwind.scss +1 -1
- package/styles/pivotview/material-dark.css +64 -44
- package/styles/pivotview/material.css +64 -44
- package/styles/pivotview/tailwind-dark.css +106 -58
- package/styles/pivotview/tailwind-dark.scss +0 -1
- package/styles/pivotview/tailwind.css +107 -57
- package/styles/tailwind-dark.css +280 -159
- package/styles/tailwind.css +277 -154
|
@@ -1558,7 +1558,7 @@ var PivotAxis = /** @class */ (function (_super) {
|
|
|
1558
1558
|
Property('')
|
|
1559
1559
|
], PivotAxis.prototype, "title", void 0);
|
|
1560
1560
|
__decorate([
|
|
1561
|
-
Property(
|
|
1561
|
+
Property(1)
|
|
1562
1562
|
], PivotAxis.prototype, "zoomFactor", void 0);
|
|
1563
1563
|
__decorate([
|
|
1564
1564
|
Complex({}, CrosshairTooltip)
|
|
@@ -1576,7 +1576,7 @@ var PivotAxis = /** @class */ (function (_super) {
|
|
|
1576
1576
|
Property(0)
|
|
1577
1577
|
], PivotAxis.prototype, "plotOffset", void 0);
|
|
1578
1578
|
__decorate([
|
|
1579
|
-
Property('
|
|
1579
|
+
Property('Shift')
|
|
1580
1580
|
], PivotAxis.prototype, "edgeLabelPlacement", void 0);
|
|
1581
1581
|
__decorate([
|
|
1582
1582
|
Property('BetweenTicks')
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Property, Complex, Collection, ChildProperty, NumberFormatOptions, DateFormatOptions } from '@syncfusion/ej2-base';import { IDataSet, IDataOptions, IFieldOptions, IFilter, ISort, ICalculatedFieldSettings } from '../../base/engine';import { IDrillOptions, IValueSortSettings, IFormatSettings, IConditionalFormatSettings, IGroupSettings } from '../../base/engine';import { SummaryTypes, Sorting, FilterType, Operators, Condition, DateGroup, GroupType, ProviderType, RenderMode } from '../../base/types';import { DataSourceType } from '../../base/types';import { IStyle, ICustomGroups, IAuthenticationInfo } from '../../base/engine';import { DataManager } from '@syncfusion/ej2-data';
|
|
1
|
+
import { Property, Complex, Collection, ChildProperty, NumberFormatOptions, DateFormatOptions } from '@syncfusion/ej2-base';import { IDataSet, IDataOptions, IFieldOptions, IFilter, ISort, ICalculatedFieldSettings } from '../../base/engine';import { IDrillOptions, IValueSortSettings, IFormatSettings, IConditionalFormatSettings, IGroupSettings } from '../../base/engine';import { SummaryTypes, Sorting, FilterType, Operators, Condition, DateGroup, GroupType, ProviderType, RenderMode } from '../../base/types';import { DataSourceType } from '../../base/types';import { IStyle, ICustomGroups, IAuthenticationInfo } from '../../base/engine';import { DataManager } from '@syncfusion/ej2-data';import { GrandTotalsPosition } from '../../common/base/enum';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Interface for a class FieldOptions
|
|
@@ -821,6 +821,13 @@ export interface DataSourceSettingsModel {
|
|
|
821
821
|
*/
|
|
822
822
|
showGrandTotals?: boolean;
|
|
823
823
|
|
|
824
|
+
/**
|
|
825
|
+
* Allows the grand totals to be displayed at the top or bottom of the pivot table's row and column axes.
|
|
826
|
+
* > By default, the grand totals are displayed at the bottom of the pivot table's row and column axes.
|
|
827
|
+
* @default Bottom
|
|
828
|
+
*/
|
|
829
|
+
grandTotalsPosition?: GrandTotalsPosition;
|
|
830
|
+
|
|
824
831
|
/**
|
|
825
832
|
* Allows to show or hide grand totals in row axis of the pivot table.
|
|
826
833
|
* @default true
|
|
@@ -8,6 +8,7 @@ import { FieldOptionsModel, FilterModel, SortModel, FormatSettingsModel, GroupSe
|
|
|
8
8
|
import { DrillOptionsModel, ValueSortSettingsModel, CalculatedFieldSettingsModel } from './datasourcesettings-model';
|
|
9
9
|
import { DataManager } from '@syncfusion/ej2-data';
|
|
10
10
|
import { ConditionalFormatSettingsModel, AuthenticationModel } from './datasourcesettings-model';
|
|
11
|
+
import { GrandTotalsPosition } from '../../common/base/enum';
|
|
11
12
|
/**
|
|
12
13
|
* Allows specific fields associated with field information that needs to be displayed in the field axes of pivot table. The following configurations which are applicable are as follows:
|
|
13
14
|
* * `name`: Allows you to set the field name that needs to be displayed in row/column/value/filter axis of pivot table.
|
|
@@ -808,6 +809,12 @@ export declare class DataSourceSettings extends ChildProperty<DataSourceSettings
|
|
|
808
809
|
* @default true
|
|
809
810
|
*/
|
|
810
811
|
showGrandTotals: boolean;
|
|
812
|
+
/**
|
|
813
|
+
* Allows the grand totals to be displayed at the top or bottom of the pivot table's row and column axes.
|
|
814
|
+
* > By default, the grand totals are displayed at the bottom of the pivot table's row and column axes.
|
|
815
|
+
* @default Bottom
|
|
816
|
+
*/
|
|
817
|
+
grandTotalsPosition: GrandTotalsPosition;
|
|
811
818
|
/**
|
|
812
819
|
* Allows to show or hide grand totals in row axis of the pivot table.
|
|
813
820
|
* @default true
|
|
@@ -573,6 +573,9 @@ var DataSourceSettings = /** @class */ (function (_super) {
|
|
|
573
573
|
__decorate([
|
|
574
574
|
Property(true)
|
|
575
575
|
], DataSourceSettings.prototype, "showGrandTotals", void 0);
|
|
576
|
+
__decorate([
|
|
577
|
+
Property('Bottom')
|
|
578
|
+
], DataSourceSettings.prototype, "grandTotalsPosition", void 0);
|
|
576
579
|
__decorate([
|
|
577
580
|
Property(true)
|
|
578
581
|
], DataSourceSettings.prototype, "showRowGrandTotals", void 0);
|
|
@@ -48,7 +48,8 @@ export declare class Render {
|
|
|
48
48
|
*/
|
|
49
49
|
constructor(parent: PivotView);
|
|
50
50
|
/** @hidden */
|
|
51
|
-
render(): void;
|
|
51
|
+
render(refreshRequired?: boolean): void;
|
|
52
|
+
private initProperties;
|
|
52
53
|
private refreshHeader;
|
|
53
54
|
/** @hidden */
|
|
54
55
|
bindGrid(parent: PivotView, isEmpty: boolean): void;
|
|
@@ -32,13 +32,16 @@ var Render = /** @class */ (function () {
|
|
|
32
32
|
this.resColWidth = (this.parent.showGroupingBar && this.parent.groupingBarModule) ? (this.parent.isAdaptive ? 180 : 250) :
|
|
33
33
|
(this.parent.isAdaptive ? 140 : 200);
|
|
34
34
|
this.engine = this.parent.dataType === 'olap' ? this.parent.olapEngineModule : this.parent.engineModule;
|
|
35
|
-
this.gridSettings = parent.gridSettings;
|
|
35
|
+
this.gridSettings = this.parent.gridSettings;
|
|
36
36
|
this.formatList = this.getFormatList();
|
|
37
37
|
this.aggMenu = new AggregateMenu(this.parent);
|
|
38
38
|
}
|
|
39
39
|
/* eslint-disable-next-line */
|
|
40
40
|
/** @hidden */
|
|
41
|
-
Render.prototype.render = function () {
|
|
41
|
+
Render.prototype.render = function (refreshRequired) {
|
|
42
|
+
if (refreshRequired) {
|
|
43
|
+
this.initProperties();
|
|
44
|
+
}
|
|
42
45
|
this.resColWidth = (this.parent.showGroupingBar && this.parent.groupingBarModule) ? (this.parent.isAdaptive ? 180 : 250) :
|
|
43
46
|
(this.parent.isAdaptive ? 140 : 200);
|
|
44
47
|
this.engine = this.parent.dataType === 'olap' ? this.parent.olapEngineModule : this.parent.engineModule;
|
|
@@ -102,6 +105,30 @@ var Render = /** @class */ (function () {
|
|
|
102
105
|
}
|
|
103
106
|
this.parent.grid.on(headerRefreshed, this.refreshHeader, this);
|
|
104
107
|
};
|
|
108
|
+
Render.prototype.initProperties = function () {
|
|
109
|
+
this.rowStartPos = undefined;
|
|
110
|
+
this.maxIndent = undefined;
|
|
111
|
+
this.resColWidth = undefined;
|
|
112
|
+
this.isOverflows = undefined;
|
|
113
|
+
this.indentCollection = {};
|
|
114
|
+
this.formatList = undefined;
|
|
115
|
+
this.colPos = 0;
|
|
116
|
+
this.colGrandPos = undefined;
|
|
117
|
+
this.rowGrandPos = undefined;
|
|
118
|
+
this.lastSpan = 0;
|
|
119
|
+
this.field = undefined;
|
|
120
|
+
this.fieldCaption = undefined;
|
|
121
|
+
this.lvlCollection = {};
|
|
122
|
+
this.hierarchyCollection = {};
|
|
123
|
+
this.lvlPosCollection = {};
|
|
124
|
+
this.hierarchyPosCollection = {};
|
|
125
|
+
this.position = 0;
|
|
126
|
+
this.measurePos = 0;
|
|
127
|
+
this.maxMeasurePos = 0;
|
|
128
|
+
this.hierarchyCount = 0;
|
|
129
|
+
this.actualText = '';
|
|
130
|
+
this.timeOutObj = undefined;
|
|
131
|
+
};
|
|
105
132
|
Render.prototype.refreshHeader = function () {
|
|
106
133
|
if (this.parent.enableVirtualization) {
|
|
107
134
|
var mHdr = this.parent.element.querySelector('.' + cls.MOVABLEHEADER_DIV);
|
|
@@ -303,9 +330,9 @@ var Render = /** @class */ (function () {
|
|
|
303
330
|
this.parent.renderReactTemplates(); /* eslint-disable-line */
|
|
304
331
|
}
|
|
305
332
|
if (this.parent.isInitial) {
|
|
333
|
+
this.parent.isInitial = false;
|
|
306
334
|
this.parent.refreshData();
|
|
307
335
|
}
|
|
308
|
-
this.parent.isInitial = false;
|
|
309
336
|
this.parent.notify(events.contentReady, {});
|
|
310
337
|
};
|
|
311
338
|
Render.prototype.setFocusOnLastCell = function () {
|
|
@@ -1121,7 +1148,7 @@ var Render = /** @class */ (function () {
|
|
|
1121
1148
|
if (cell.isSum) {
|
|
1122
1149
|
tCell.classList.add(cls.SUMMARY);
|
|
1123
1150
|
}
|
|
1124
|
-
var isGrandSum = (isNullOrUndefined(cell.isGrandSum) && this.parent.
|
|
1151
|
+
var isGrandSum = (isNullOrUndefined(cell.isGrandSum) && (!isNullOrUndefined(this.parent.olapEngineModule) && this.parent.olapEngineModule.olapValueAxis === 'column') && this.parent.dataType === 'olap' &&
|
|
1125
1152
|
((this.colGrandPos - this.parent.dataSourceSettings.values.length) < Number(tCell.getAttribute('aria-colindex'))));
|
|
1126
1153
|
if (cell.isGrandSum || (isGrandSum || this.colGrandPos === Number(tCell.getAttribute('aria-colindex'))) || this.rowGrandPos === Number(tCell.getAttribute('index'))) {
|
|
1127
1154
|
tCell.classList.add('e-gtot');
|
|
@@ -1264,6 +1291,12 @@ var Render = /** @class */ (function () {
|
|
|
1264
1291
|
}
|
|
1265
1292
|
lvlPos++;
|
|
1266
1293
|
}
|
|
1294
|
+
if (this.parent.dataSourceSettings.grandTotalsPosition === 'Top' && (!isNullOrUndefined(this.parent.olapEngineModule) && this.parent.olapEngineModule.olapValueAxis === 'row') && this.parent.dataType === 'olap' &&
|
|
1295
|
+
(cell.valueSort.levelName.toString()).indexOf(this.parent.localeObj.getConstant('grandTotal') + this.parent.dataSourceSettings.valueSortSettings.headerDelimiter) === 0) {
|
|
1296
|
+
tCell.appendChild(createElement('span', {
|
|
1297
|
+
className: cls.NEXTSPAN,
|
|
1298
|
+
}));
|
|
1299
|
+
}
|
|
1267
1300
|
if (cell.memberType === 3 && cell.level === -1 && Object.keys(this.lvlCollection).length > 1) {
|
|
1268
1301
|
tCell.appendChild(createElement('span', {
|
|
1269
1302
|
className: cls.NEXTSPAN,
|
|
@@ -1577,8 +1610,8 @@ var Render = /** @class */ (function () {
|
|
|
1577
1610
|
if (this.parent.currentView !== 'Chart') {
|
|
1578
1611
|
if (this.gridSettings.height === 'auto' && parHeight && this.parent.element.querySelector('.' + cls.GRID_HEADER)) {
|
|
1579
1612
|
var rowColHeight = this.parent.element.querySelector('.' + cls.GRID_HEADER).offsetHeight;
|
|
1580
|
-
var gBarHeight = rowColHeight + (this.parent.element.querySelector('.' + cls.
|
|
1581
|
-
this.parent.element.querySelector('.' + cls.
|
|
1613
|
+
var gBarHeight = rowColHeight + (this.parent.element.querySelector('.' + cls.GRID_GROUPING_BAR_CLASS) ?
|
|
1614
|
+
this.parent.element.querySelector('.' + cls.GRID_GROUPING_BAR_CLASS).offsetHeight : 0);
|
|
1582
1615
|
var toolBarHeight = this.parent.element.querySelector('.' + cls.GRID_TOOLBAR) ? 42 : 0;
|
|
1583
1616
|
gridHeight = parHeight - (gBarHeight + toolBarHeight) - 1;
|
|
1584
1617
|
gridHeight = gridHeight < 40 ? 40 : gridHeight;
|