@syncfusion/ej2-pivotview 19.3.48 → 19.4.38
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 +29 -19
- 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 +2080 -1110
- package/dist/es6/ej2-pivotview.es2015.js.map +1 -1
- package/dist/es6/ej2-pivotview.es5.js +2096 -1120
- 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 +74 -29
- 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 +187 -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 +9 -7
- package/src/pivotview/actions/pdf-export.js +3 -3
- 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 +313 -109
- package/src/pivotview/model/chartsettings-model.d.ts +1 -1
- package/src/pivotview/model/chartsettings.d.ts +1 -1
- package/src/pivotview/model/chartsettings.js +1 -1
- 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 +64 -20
- package/styles/bootstrap-dark.css +115 -104
- package/styles/bootstrap.css +115 -104
- package/styles/bootstrap4.css +114 -81
- package/styles/bootstrap5-dark.css +220 -168
- package/styles/bootstrap5.css +215 -161
- package/styles/fabric-dark.css +117 -103
- package/styles/fabric.css +115 -102
- package/styles/highcontrast-light.css +116 -102
- package/styles/highcontrast.css +118 -104
- package/styles/material-dark.css +108 -97
- package/styles/material.css +108 -97
- 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 +185 -35
- package/styles/pivotfieldlist/bootstrap-dark.css +49 -58
- package/styles/pivotfieldlist/bootstrap.css +49 -58
- package/styles/pivotfieldlist/bootstrap4.css +44 -39
- package/styles/pivotfieldlist/bootstrap5-dark.css +115 -89
- package/styles/pivotfieldlist/bootstrap5.css +115 -89
- package/styles/pivotfieldlist/fabric-dark.css +49 -58
- package/styles/pivotfieldlist/fabric.css +49 -58
- package/styles/pivotfieldlist/highcontrast-light.css +49 -58
- package/styles/pivotfieldlist/highcontrast.css +49 -58
- 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 +44 -53
- package/styles/pivotfieldlist/material.css +44 -53
- package/styles/pivotfieldlist/tailwind-dark.css +138 -81
- package/styles/pivotfieldlist/tailwind.css +140 -83
- 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 +250 -145
- package/styles/tailwind.css +247 -140
|
@@ -2567,7 +2567,7 @@ export interface PivotAxisModel {
|
|
|
2567
2567
|
* * Shift: Shifts the edge labels.
|
|
2568
2568
|
* * None: No action will be performed.
|
|
2569
2569
|
* * Hide: Edge label will be hidden.
|
|
2570
|
-
* @default '
|
|
2570
|
+
* @default 'Shift'
|
|
2571
2571
|
*/
|
|
2572
2572
|
edgeLabelPlacement?: EdgeLabelPlacement;
|
|
2573
2573
|
|
|
@@ -2174,7 +2174,7 @@ export declare class PivotAxis extends ChildProperty<PivotAxis> {
|
|
|
2174
2174
|
* * Shift: Shifts the edge labels.
|
|
2175
2175
|
* * None: No action will be performed.
|
|
2176
2176
|
* * Hide: Edge label will be hidden.
|
|
2177
|
-
* @default '
|
|
2177
|
+
* @default 'Shift'
|
|
2178
2178
|
*/
|
|
2179
2179
|
edgeLabelPlacement: EdgeLabelPlacement;
|
|
2180
2180
|
/**
|
|
@@ -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,34 +32,40 @@ 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 () {
|
|
42
|
-
|
|
43
|
-
|
|
41
|
+
Render.prototype.render = function (refreshRequired) {
|
|
42
|
+
if (refreshRequired) {
|
|
43
|
+
this.initProperties();
|
|
44
|
+
}
|
|
45
|
+
this.resColWidth = (this.parent.showGroupingBar && this.parent.groupingBarModule) ? (this.parent.isAdaptive ? 180 : 250) :
|
|
46
|
+
(this.parent.isAdaptive ? 140 : 200);
|
|
47
|
+
this.engine = this.parent.dataType === 'olap' ? this.parent.olapEngineModule : this.parent.engineModule;
|
|
48
|
+
this.gridSettings = this.parent.gridSettings;
|
|
49
|
+
this.formatList = this.getFormatList();
|
|
44
50
|
this.parent.gridHeaderCellInfo = [];
|
|
45
51
|
this.parent.gridCellCollection = {};
|
|
46
|
-
this.injectGridModules(parent);
|
|
52
|
+
this.injectGridModules(this.parent);
|
|
47
53
|
this.rowStartPos = this.getRowStartPos();
|
|
48
54
|
if (this.parent.grid && this.parent.grid.element && this.parent.element.querySelector('.e-grid')) {
|
|
49
55
|
this.parent.notEmpty = true;
|
|
50
|
-
if (!engine.isEngineUpdated) {
|
|
51
|
-
engine.headerContent = this.frameDataSource('header');
|
|
52
|
-
engine.valueContent = this.frameDataSource('value');
|
|
56
|
+
if (!this.engine.isEngineUpdated) {
|
|
57
|
+
this.engine.headerContent = this.frameDataSource('header');
|
|
58
|
+
this.engine.valueContent = this.frameDataSource('value');
|
|
53
59
|
}
|
|
54
60
|
else {
|
|
55
61
|
if (this.parent.enableValueSorting) {
|
|
56
|
-
engine.valueContent = this.frameDataSource('value');
|
|
62
|
+
this.engine.valueContent = this.frameDataSource('value');
|
|
57
63
|
}
|
|
58
|
-
engine.isEngineUpdated = false;
|
|
64
|
+
this.engine.isEngineUpdated = false;
|
|
59
65
|
}
|
|
60
66
|
this.parent.grid.setProperties({
|
|
61
67
|
columns: this.frameStackedHeaders(), dataSource: (this.parent.dataType === 'olap' ? true :
|
|
62
|
-
parent.dataSourceSettings.values.length > 0) && !this.engine.isEmptyData ? engine.valueContent :
|
|
68
|
+
this.parent.dataSourceSettings.values.length > 0) && !this.engine.isEmptyData ? this.engine.valueContent :
|
|
63
69
|
this.frameDataSource('value')
|
|
64
70
|
}, true);
|
|
65
71
|
if (this.parent.grid.height === 'auto') {
|
|
@@ -99,6 +105,30 @@ var Render = /** @class */ (function () {
|
|
|
99
105
|
}
|
|
100
106
|
this.parent.grid.on(headerRefreshed, this.refreshHeader, this);
|
|
101
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
|
+
};
|
|
102
132
|
Render.prototype.refreshHeader = function () {
|
|
103
133
|
if (this.parent.enableVirtualization) {
|
|
104
134
|
var mHdr = this.parent.element.querySelector('.' + cls.MOVABLEHEADER_DIV);
|
|
@@ -300,9 +330,9 @@ var Render = /** @class */ (function () {
|
|
|
300
330
|
this.parent.renderReactTemplates(); /* eslint-disable-line */
|
|
301
331
|
}
|
|
302
332
|
if (this.parent.isInitial) {
|
|
333
|
+
this.parent.isInitial = false;
|
|
303
334
|
this.parent.refreshData();
|
|
304
335
|
}
|
|
305
|
-
this.parent.isInitial = false;
|
|
306
336
|
this.parent.notify(events.contentReady, {});
|
|
307
337
|
};
|
|
308
338
|
Render.prototype.setFocusOnLastCell = function () {
|
|
@@ -1118,7 +1148,7 @@ var Render = /** @class */ (function () {
|
|
|
1118
1148
|
if (cell.isSum) {
|
|
1119
1149
|
tCell.classList.add(cls.SUMMARY);
|
|
1120
1150
|
}
|
|
1121
|
-
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' &&
|
|
1122
1152
|
((this.colGrandPos - this.parent.dataSourceSettings.values.length) < Number(tCell.getAttribute('aria-colindex'))));
|
|
1123
1153
|
if (cell.isGrandSum || (isGrandSum || this.colGrandPos === Number(tCell.getAttribute('aria-colindex'))) || this.rowGrandPos === Number(tCell.getAttribute('index'))) {
|
|
1124
1154
|
tCell.classList.add('e-gtot');
|
|
@@ -1261,6 +1291,12 @@ var Render = /** @class */ (function () {
|
|
|
1261
1291
|
}
|
|
1262
1292
|
lvlPos++;
|
|
1263
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
|
+
}
|
|
1264
1300
|
if (cell.memberType === 3 && cell.level === -1 && Object.keys(this.lvlCollection).length > 1) {
|
|
1265
1301
|
tCell.appendChild(createElement('span', {
|
|
1266
1302
|
className: cls.NEXTSPAN,
|
|
@@ -1574,8 +1610,8 @@ var Render = /** @class */ (function () {
|
|
|
1574
1610
|
if (this.parent.currentView !== 'Chart') {
|
|
1575
1611
|
if (this.gridSettings.height === 'auto' && parHeight && this.parent.element.querySelector('.' + cls.GRID_HEADER)) {
|
|
1576
1612
|
var rowColHeight = this.parent.element.querySelector('.' + cls.GRID_HEADER).offsetHeight;
|
|
1577
|
-
var gBarHeight = rowColHeight + (this.parent.element.querySelector('.' + cls.
|
|
1578
|
-
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);
|
|
1579
1615
|
var toolBarHeight = this.parent.element.querySelector('.' + cls.GRID_TOOLBAR) ? 42 : 0;
|
|
1580
1616
|
gridHeight = parHeight - (gBarHeight + toolBarHeight) - 1;
|
|
1581
1617
|
gridHeight = gridHeight < 40 ? 40 : gridHeight;
|
|
@@ -1787,7 +1823,7 @@ var Render = /** @class */ (function () {
|
|
|
1787
1823
|
return this.parent.localeObj.getConstant('total') + ' ' + this.parent.localeObj.getConstant(this.parent.engineModule.fieldList[cellInfo.value.toString()].aggregateType)
|
|
1788
1824
|
+ ' ' + this.parent.localeObj.getConstant('of') + ' ' + cellInfo.value.toString();
|
|
1789
1825
|
}
|
|
1790
|
-
else if (values.length === 1) {
|
|
1826
|
+
else if (values.length === 1 && this.parent.dataSourceSettings.rows.length === 0) {
|
|
1791
1827
|
return this.parent.localeObj.getConstant('total') + ' ' + this.parent.localeObj.getConstant(values[values.length - 1].type)
|
|
1792
1828
|
+ ' ' + this.parent.localeObj.getConstant('of') + ' ' + (!isNullOrUndefined(values[values.length - 1].caption) ? values[values.length - 1].caption : values[values.length - 1].name);
|
|
1793
1829
|
}
|
|
@@ -1809,7 +1845,9 @@ var Render = /** @class */ (function () {
|
|
|
1809
1845
|
};
|
|
1810
1846
|
/* eslint-disable */
|
|
1811
1847
|
Render.prototype.excelColumnEvent = function (args) {
|
|
1812
|
-
(
|
|
1848
|
+
if (this.parent.dataSourceSettings.columns.length === 0 && this.parent.dataSourceSettings.valueAxis === 'column') {
|
|
1849
|
+
(args.cell).value = this.getValidHeader(args, 'column');
|
|
1850
|
+
}
|
|
1813
1851
|
if (args.gridCell !== undefined && args.gridCell.column.width === 'auto') {
|
|
1814
1852
|
this.parent.lastColumn = args.gridCell.column;
|
|
1815
1853
|
args.gridCell.column.width = args.gridCell.column.minWidth;
|
|
@@ -1818,7 +1856,9 @@ var Render = /** @class */ (function () {
|
|
|
1818
1856
|
this.parent.trigger(events.excelHeaderQueryCellInfo, args);
|
|
1819
1857
|
};
|
|
1820
1858
|
Render.prototype.pdfColumnEvent = function (args) {
|
|
1821
|
-
(
|
|
1859
|
+
if (this.parent.dataSourceSettings.columns.length === 0 && this.parent.dataSourceSettings.valueAxis === 'column') {
|
|
1860
|
+
(args.cell).value = this.getValidHeader(args, 'column');
|
|
1861
|
+
}
|
|
1822
1862
|
if (args.gridCell !== undefined && args.gridCell.column.width === 'auto') {
|
|
1823
1863
|
this.parent.lastColumn = args.gridCell.column;
|
|
1824
1864
|
args.gridCell.column.width = args.gridCell.column.minWidth;
|
|
@@ -1859,7 +1899,9 @@ var Render = /** @class */ (function () {
|
|
|
1859
1899
|
}
|
|
1860
1900
|
}
|
|
1861
1901
|
args = this.exportContentEvent(args);
|
|
1862
|
-
|
|
1902
|
+
if (this.parent.dataSourceSettings.rows.length === 0 && this.parent.dataSourceSettings.valueAxis === 'row') {
|
|
1903
|
+
args.value = args.column.field === '0.formattedText' ? this.getValidHeader(args, 'row') : args.value;
|
|
1904
|
+
}
|
|
1863
1905
|
this.parent.trigger(events.excelQueryCellInfo, args);
|
|
1864
1906
|
};
|
|
1865
1907
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
@@ -1883,7 +1925,9 @@ var Render = /** @class */ (function () {
|
|
|
1883
1925
|
}
|
|
1884
1926
|
args.style = { paragraphIndent: level * 10 };
|
|
1885
1927
|
this.lastSpan = isValueCell ? this.lastSpan : level;
|
|
1886
|
-
|
|
1928
|
+
if (this.parent.dataSourceSettings.rows.length === 0 && this.parent.dataSourceSettings.valueAxis === 'row') {
|
|
1929
|
+
args.value = this.getValidHeader(args, 'row');
|
|
1930
|
+
}
|
|
1887
1931
|
}
|
|
1888
1932
|
this.parent.trigger(events.pdfQueryCellInfo, args);
|
|
1889
1933
|
};
|