@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
|
@@ -63,41 +63,6 @@ var PivotUtil = /** @__PURE__ @class */ (function () {
|
|
|
63
63
|
}
|
|
64
64
|
return clonedData;
|
|
65
65
|
};
|
|
66
|
-
PivotUtil.getClonedPivotValues = function (pivotValues) {
|
|
67
|
-
var clonedSets = [];
|
|
68
|
-
for (var i = 0; i < pivotValues.length; i++) {
|
|
69
|
-
if (pivotValues[i]) {
|
|
70
|
-
clonedSets[i] = [];
|
|
71
|
-
for (var j = 0; j < pivotValues[i].length; j++) {
|
|
72
|
-
if (pivotValues[i][j]) {
|
|
73
|
-
/* eslint-disable */
|
|
74
|
-
clonedSets[i][j] = this.getClonedPivotValueObj(pivotValues[i][j]);
|
|
75
|
-
/* eslint-enable */
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
return clonedSets;
|
|
81
|
-
};
|
|
82
|
-
/* eslint-disable */
|
|
83
|
-
PivotUtil.getClonedPivotValueObj = function (data) {
|
|
84
|
-
/* eslint-enable */
|
|
85
|
-
var keyPos = 0;
|
|
86
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
87
|
-
var framedSet = {};
|
|
88
|
-
/* eslint-enable @typescript-eslint/no-explicit-any */
|
|
89
|
-
if (!(data === null || data === undefined)) {
|
|
90
|
-
var fields = Object.keys(data);
|
|
91
|
-
while (keyPos < fields.length) {
|
|
92
|
-
framedSet[fields[keyPos]] = data[fields[keyPos]];
|
|
93
|
-
keyPos++;
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
else {
|
|
97
|
-
framedSet = data;
|
|
98
|
-
}
|
|
99
|
-
return framedSet;
|
|
100
|
-
};
|
|
101
66
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
102
67
|
PivotUtil.getDefinedObj = function (data) {
|
|
103
68
|
var keyPos = 0;
|
|
@@ -130,18 +95,6 @@ var PivotUtil = /** @__PURE__ @class */ (function () {
|
|
|
130
95
|
return -1;
|
|
131
96
|
};
|
|
132
97
|
/* eslint-disable */
|
|
133
|
-
PivotUtil.isContainCommonElements = function (collection1, collection2) {
|
|
134
|
-
/* eslint-enable */
|
|
135
|
-
for (var i = 0, cnt = collection1.length; i < cnt; i++) {
|
|
136
|
-
for (var j = 0, lnt = collection2.length; j < lnt; j++) {
|
|
137
|
-
if (collection2[j] === collection1[i]) {
|
|
138
|
-
return true;
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
return false;
|
|
143
|
-
};
|
|
144
|
-
/* eslint-disable */
|
|
145
98
|
PivotUtil.setPivotProperties = function (control, properties) {
|
|
146
99
|
/* eslint-enable */
|
|
147
100
|
control.allowServerDataBinding = false;
|
|
@@ -178,6 +131,7 @@ var PivotUtil = /** @__PURE__ @class */ (function () {
|
|
|
178
131
|
drilledMembers: this.cloneDrillMemberSettings(dataSourceSettings.drilledMembers),
|
|
179
132
|
valueSortSettings: this.CloneValueSortObject(dataSourceSettings.valueSortSettings),
|
|
180
133
|
valueAxis: dataSourceSettings.valueAxis,
|
|
134
|
+
grandTotalsPosition: dataSourceSettings.grandTotalsPosition,
|
|
181
135
|
formatSettings: this.cloneFormatSettings(dataSourceSettings.formatSettings),
|
|
182
136
|
calculatedFieldSettings: this.cloneCalculatedFieldSettings(dataSourceSettings.calculatedFieldSettings),
|
|
183
137
|
fieldMapping: this.cloneFieldSettings(dataSourceSettings.fieldMapping),
|
|
@@ -224,6 +178,7 @@ var PivotUtil = /** @__PURE__ @class */ (function () {
|
|
|
224
178
|
drilledMembers: dataSourceSettings.drilledMembers,
|
|
225
179
|
valueSortSettings: dataSourceSettings.valueSortSettings,
|
|
226
180
|
valueAxis: dataSourceSettings.valueAxis,
|
|
181
|
+
grandTotalsPosition: dataSourceSettings.grandTotalsPosition,
|
|
227
182
|
formatSettings: dataSourceSettings.formatSettings,
|
|
228
183
|
calculatedFieldSettings: dataSourceSettings.calculatedFieldSettings,
|
|
229
184
|
fieldMapping: dataSourceSettings.fieldMapping,
|
|
@@ -645,174 +600,6 @@ var PivotUtil = /** @__PURE__ @class */ (function () {
|
|
|
645
600
|
return values;
|
|
646
601
|
};
|
|
647
602
|
/* eslint-disable */
|
|
648
|
-
PivotUtil.formatPdfHeaderFooter = function (pdf) {
|
|
649
|
-
var contents = [];
|
|
650
|
-
if (!isNullOrUndefined(pdf)) {
|
|
651
|
-
for (var i = 0; i < pdf.length; i++) {
|
|
652
|
-
var a = pdf[i];
|
|
653
|
-
var content = {
|
|
654
|
-
/* eslint-enable */
|
|
655
|
-
type: a.Type,
|
|
656
|
-
pageNumberType: a.PageNumberType,
|
|
657
|
-
style: a.Style ? {
|
|
658
|
-
penColor: a.Style.PenColor,
|
|
659
|
-
penSize: a.Style.PenSize,
|
|
660
|
-
dashStyle: a.Style.DashStyle,
|
|
661
|
-
textBrushColor: a.Style.TextBrushColor,
|
|
662
|
-
textPenColor: a.Style.TextPenColor,
|
|
663
|
-
fontSize: a.Style.FontSize,
|
|
664
|
-
hAlign: a.Style.HAlign,
|
|
665
|
-
vAlign: a.Style.VAlign
|
|
666
|
-
} : a.Style,
|
|
667
|
-
points: a.Points !== null ? {
|
|
668
|
-
x1: a.Points.X1,
|
|
669
|
-
y1: a.Points.Y1,
|
|
670
|
-
x2: a.Points.X2,
|
|
671
|
-
y2: a.Points.Y2
|
|
672
|
-
} : null,
|
|
673
|
-
format: a.Format,
|
|
674
|
-
position: a.Position !== null ? {
|
|
675
|
-
x: a.Position.X,
|
|
676
|
-
y: a.Position.Y
|
|
677
|
-
} : null,
|
|
678
|
-
size: a.Size !== null ? {
|
|
679
|
-
height: a.Size.Height,
|
|
680
|
-
width: a.Size.Width
|
|
681
|
-
} : null,
|
|
682
|
-
src: a.Src,
|
|
683
|
-
value: a.Value,
|
|
684
|
-
font: a.Font
|
|
685
|
-
};
|
|
686
|
-
contents.push(content);
|
|
687
|
-
}
|
|
688
|
-
}
|
|
689
|
-
return contents;
|
|
690
|
-
};
|
|
691
|
-
/* eslint-disable */
|
|
692
|
-
PivotUtil.formatPdfExportProperties = function (pdf) {
|
|
693
|
-
var values;
|
|
694
|
-
/* eslint-enable */
|
|
695
|
-
values = this.getDefinedObj({
|
|
696
|
-
pageOrientation: typeof pdf.PageOrientation === 'string' ? pdf.PageOrientation : null,
|
|
697
|
-
pageSize: typeof pdf.PageSize === 'string' ? pdf.PageSize : null,
|
|
698
|
-
header: !isNullOrUndefined(pdf.Header) ? {
|
|
699
|
-
fromTop: pdf.Header.FromTop,
|
|
700
|
-
height: pdf.Header.Height,
|
|
701
|
-
contents: this.formatPdfHeaderFooter(pdf.Header.Contents)
|
|
702
|
-
} : null,
|
|
703
|
-
columns: pdf.Columns,
|
|
704
|
-
footer: !isNullOrUndefined(pdf.Footer) ? {
|
|
705
|
-
fromTop: pdf.Footer.FromBottom,
|
|
706
|
-
height: pdf.Footer.Height,
|
|
707
|
-
contents: this.formatPdfHeaderFooter(pdf.Footer.Contents)
|
|
708
|
-
} : null,
|
|
709
|
-
includeHiddenColumn: pdf.IncludeHiddenColumn,
|
|
710
|
-
dataSource: pdf.DataSource,
|
|
711
|
-
exportType: typeof pdf.ExportType === 'string' ? pdf.ExportType : null,
|
|
712
|
-
theme: !isNullOrUndefined(pdf.Theme) ? {
|
|
713
|
-
header: pdf.Theme.Header,
|
|
714
|
-
record: pdf.Theme.Record,
|
|
715
|
-
caption: pdf.Theme.Caption
|
|
716
|
-
} : null,
|
|
717
|
-
fileName: pdf.FileName,
|
|
718
|
-
hierarchyExportMode: typeof pdf.HierarchyExportMode === 'string' ? pdf.HierarchyExportMode : null,
|
|
719
|
-
allowHorizontalOverflow: pdf.AllowHorizontalOverflow
|
|
720
|
-
});
|
|
721
|
-
return values;
|
|
722
|
-
};
|
|
723
|
-
/* eslint-disable */
|
|
724
|
-
PivotUtil.formatExcelStyle = function (style) {
|
|
725
|
-
var prop;
|
|
726
|
-
/* eslint-enable */
|
|
727
|
-
if (!isNullOrUndefined(style)) {
|
|
728
|
-
prop = this.getDefinedObj({
|
|
729
|
-
fontColor: style.FontColor,
|
|
730
|
-
fontName: style.FontName,
|
|
731
|
-
fontSize: style.FontSize,
|
|
732
|
-
hAlign: style.HAlign === String ? style.HAlign : null,
|
|
733
|
-
vAlign: style.VAlign === String ? style.VAlign : null,
|
|
734
|
-
bold: style.Bold,
|
|
735
|
-
indent: style.Indent,
|
|
736
|
-
italic: style.Italic,
|
|
737
|
-
underline: style.Underline,
|
|
738
|
-
backColor: style.BackColor,
|
|
739
|
-
wrapText: style.WrapText,
|
|
740
|
-
borders: style.Borders,
|
|
741
|
-
numberFormat: style.NumberFormat,
|
|
742
|
-
type: style.Type
|
|
743
|
-
});
|
|
744
|
-
}
|
|
745
|
-
return prop;
|
|
746
|
-
};
|
|
747
|
-
/* eslint-disable */
|
|
748
|
-
PivotUtil.formatExcelCell = function (cell) {
|
|
749
|
-
var cells = [];
|
|
750
|
-
if (!isNullOrUndefined(cell)) {
|
|
751
|
-
for (var i = 0; i < cell.length; i++) {
|
|
752
|
-
this.getDefinedObj({
|
|
753
|
-
index: !isNullOrUndefined(cell[i].Index) ? cell[i].Index : null,
|
|
754
|
-
colSpan: !isNullOrUndefined(cell[i].ColSpan) ? cell[i].ColSpan : null,
|
|
755
|
-
value: !isNullOrUndefined(cell[i].Value) ? cell[i].Value : null,
|
|
756
|
-
hyperlink: {
|
|
757
|
-
target: !isNullOrUndefined(cell[i].Hyperlink) ? cell[i].Hyperlink.Target : null,
|
|
758
|
-
displayText: !isNullOrUndefined(cell[i].Hyperlink) ? cell[i].Hyperlink.DisplayText : null
|
|
759
|
-
},
|
|
760
|
-
styles: this.formatExcelStyle(cell[i].Style),
|
|
761
|
-
rowSpan: !isNullOrUndefined(cell[i].RowSpan) ? cell[i].RowSpan : null
|
|
762
|
-
});
|
|
763
|
-
/* eslint-enable */
|
|
764
|
-
}
|
|
765
|
-
}
|
|
766
|
-
return cells;
|
|
767
|
-
};
|
|
768
|
-
/* eslint-disable */
|
|
769
|
-
PivotUtil.formatExcelHeaderFooter = function (excel) {
|
|
770
|
-
var rows = [];
|
|
771
|
-
if (!isNullOrUndefined(excel)) {
|
|
772
|
-
for (var i = 0; i < excel.Rows.length; i++) {
|
|
773
|
-
var row = excel.Rows[i];
|
|
774
|
-
var prop = this.getDefinedObj({
|
|
775
|
-
index: !isNullOrUndefined(row.Index) ? row.Index : null,
|
|
776
|
-
cells: this.formatExcelCell(row.Cells),
|
|
777
|
-
grouping: !isNullOrUndefined(row.Grouping) ? row.Grouping : null
|
|
778
|
-
});
|
|
779
|
-
rows.push(prop);
|
|
780
|
-
}
|
|
781
|
-
}
|
|
782
|
-
return rows;
|
|
783
|
-
};
|
|
784
|
-
PivotUtil.formatExcelExportProperties = function (excel) {
|
|
785
|
-
/* eslint-enable */
|
|
786
|
-
var prop;
|
|
787
|
-
prop = this.getDefinedObj({
|
|
788
|
-
dataSource: excel.DataSource,
|
|
789
|
-
query: excel.Query,
|
|
790
|
-
multipleExport: this.getDefinedObj({
|
|
791
|
-
type: !isNullOrUndefined(excel.MultipleExport) ? excel.MultipleExport.Type : null,
|
|
792
|
-
blankRows: !isNullOrUndefined(excel.MultipleExport) ? excel.MultipleExport.BlankRows : null
|
|
793
|
-
}),
|
|
794
|
-
header: this.getDefinedObj({
|
|
795
|
-
headerRows: !isNullOrUndefined(excel.Header) ? excel.Header.HeaderRows : null,
|
|
796
|
-
rows: this.formatExcelHeaderFooter(excel.Header)
|
|
797
|
-
}),
|
|
798
|
-
footer: this.getDefinedObj({
|
|
799
|
-
footerRows: !isNullOrUndefined(excel.Footer) ? excel.Footer.FooterRows : null,
|
|
800
|
-
rows: this.formatExcelHeaderFooter(excel.Footer)
|
|
801
|
-
}),
|
|
802
|
-
columns: excel.Columns,
|
|
803
|
-
exportType: typeof excel.ExportType === 'string' ? excel.ExportType : undefined,
|
|
804
|
-
includeHiddenColumn: excel.IncludeHiddenColumn,
|
|
805
|
-
theme: !isNullOrUndefined(excel.Theme) ? {
|
|
806
|
-
header: this.formatExcelStyle(excel.Theme.Header),
|
|
807
|
-
record: this.formatExcelStyle(excel.Theme.Record),
|
|
808
|
-
caption: this.formatExcelStyle(excel.Theme.Caption)
|
|
809
|
-
} : undefined,
|
|
810
|
-
fileName: excel.FileName,
|
|
811
|
-
hierarchyExportMode: typeof excel.HierarchyExportMode === 'string' ? excel.HierarchyExportMode : undefined
|
|
812
|
-
});
|
|
813
|
-
return prop;
|
|
814
|
-
};
|
|
815
|
-
/* eslint-disable */
|
|
816
603
|
PivotUtil.formatFieldList = function (fieldList) {
|
|
817
604
|
var keys = Object.keys(fieldList);
|
|
818
605
|
var fList = {};
|
|
@@ -1124,7 +911,8 @@ var PivotEngine = /** @__PURE__ @class */ (function () {
|
|
|
1124
911
|
this.isLastHeaderHasMeasures = true;
|
|
1125
912
|
this.isEditing = false;
|
|
1126
913
|
var fields;
|
|
1127
|
-
this.globalize = new Internationalization();
|
|
914
|
+
this.globalize = (customProperties && customProperties.globalize) ? customProperties.globalize : new Internationalization();
|
|
915
|
+
this.currencyCode = (customProperties && customProperties.currenyCode) ? customProperties.currenyCode : undefined;
|
|
1128
916
|
this.localeObj = customProperties ? customProperties.localeObj : undefined;
|
|
1129
917
|
this.fieldsType = customProperties ? customProperties.fieldsType : {};
|
|
1130
918
|
this.clonedReport = customProperties ? (customProperties.clonedReport &&
|
|
@@ -1138,6 +926,7 @@ var PivotEngine = /** @__PURE__ @class */ (function () {
|
|
|
1138
926
|
this.showRowSubTotals = isNullOrUndefined(dataSource.showRowSubTotals) ? true : dataSource.showRowSubTotals;
|
|
1139
927
|
this.showColumnSubTotals = isNullOrUndefined(dataSource.showColumnSubTotals) ? true : dataSource.showColumnSubTotals;
|
|
1140
928
|
this.showGrandTotals = isNullOrUndefined(dataSource.showGrandTotals) ? true : dataSource.showGrandTotals;
|
|
929
|
+
this.grandTotalsPosition = isNullOrUndefined(dataSource.grandTotalsPosition) ? 'Bottom' : dataSource.grandTotalsPosition;
|
|
1141
930
|
this.showRowGrandTotals = isNullOrUndefined(dataSource.showRowGrandTotals) ? true : dataSource.showRowGrandTotals;
|
|
1142
931
|
this.showColumnGrandTotals = isNullOrUndefined(dataSource.showColumnGrandTotals) ? true : dataSource.showColumnGrandTotals;
|
|
1143
932
|
this.allowValueFilter = dataSource.allowValueFilter;
|
|
@@ -1251,6 +1040,7 @@ var PivotEngine = /** @__PURE__ @class */ (function () {
|
|
|
1251
1040
|
this.showRowSubTotals = isNullOrUndefined(dataSource.showRowSubTotals) ? true : dataSource.showRowSubTotals;
|
|
1252
1041
|
this.showColumnSubTotals = isNullOrUndefined(dataSource.showColumnSubTotals) ? true : dataSource.showColumnSubTotals;
|
|
1253
1042
|
this.showGrandTotals = isNullOrUndefined(dataSource.showGrandTotals) ? true : dataSource.showGrandTotals;
|
|
1043
|
+
this.grandTotalsPosition = isNullOrUndefined(dataSource.grandTotalsPosition) ? 'Bottom' : dataSource.grandTotalsPosition;
|
|
1254
1044
|
this.showRowGrandTotals = isNullOrUndefined(dataSource.showRowGrandTotals) ? true : dataSource.showRowGrandTotals;
|
|
1255
1045
|
this.showColumnGrandTotals = isNullOrUndefined(dataSource.showColumnGrandTotals) ? true : dataSource.showColumnGrandTotals;
|
|
1256
1046
|
this.allowValueFilter = dataSource.allowValueFilter;
|
|
@@ -1553,6 +1343,7 @@ var PivotEngine = /** @__PURE__ @class */ (function () {
|
|
|
1553
1343
|
}
|
|
1554
1344
|
if (!PivotUtil.getFieldByName(groupKeys[gCnt], dataFields)) {
|
|
1555
1345
|
groupField = groupFields[groupKeys[gCnt]];
|
|
1346
|
+
caption_1 = (caption_1.indexOf(' (') !== -1 && caption_1.indexOf(')') !== -1) ? caption_1.slice(caption_1.indexOf('(') + 1, caption_1.length - 1) : caption_1;
|
|
1556
1347
|
var newField = {
|
|
1557
1348
|
name: groupKeys[gCnt],
|
|
1558
1349
|
caption: (this_1.localeObj ? this_1.localeObj.getConstant(groupField) : groupField) + ' (' + caption_1 + ')',
|
|
@@ -1580,6 +1371,8 @@ var PivotEngine = /** @__PURE__ @class */ (function () {
|
|
|
1580
1371
|
}
|
|
1581
1372
|
}
|
|
1582
1373
|
gCnt = Object.keys(groupKeys).length;
|
|
1374
|
+
var field = this_1.getMappingField(fieldName, this_1.clonedReport ? this_1.clonedReport.fieldMapping : this_1.fieldMapping);
|
|
1375
|
+
var caption_2 = field.caption ? field.caption : fieldName;
|
|
1583
1376
|
while (gCnt--) {
|
|
1584
1377
|
groupField = groupFields[groupKeys[gCnt]];
|
|
1585
1378
|
for (var i = 0, len_3 = this_1.formats.length; i < len_3; i++) {
|
|
@@ -1598,6 +1391,33 @@ var PivotEngine = /** @__PURE__ @class */ (function () {
|
|
|
1598
1391
|
};
|
|
1599
1392
|
this_1.formats.push(formatSettings);
|
|
1600
1393
|
}
|
|
1394
|
+
if (!isDataSource) {
|
|
1395
|
+
var mappingField = this_1.getMappingField(groupKeys[gCnt], this_1.fieldMapping);
|
|
1396
|
+
if (groupKeys[gCnt] !== fieldName && isNullOrUndefined(mappingField.name)) {
|
|
1397
|
+
var newField = {
|
|
1398
|
+
name: groupKeys[gCnt],
|
|
1399
|
+
caption: (this_1.localeObj ? this_1.localeObj.getConstant(groupField) : groupField) + ' (' + caption_2 + ')'
|
|
1400
|
+
};
|
|
1401
|
+
this_1.fieldMapping.push(newField);
|
|
1402
|
+
}
|
|
1403
|
+
else if (groupKeys[gCnt] !== fieldName) {
|
|
1404
|
+
mappingField.caption = (this_1.localeObj ? this_1.localeObj.getConstant(groupField) : groupField) + ' (' + caption_2 + ')';
|
|
1405
|
+
}
|
|
1406
|
+
}
|
|
1407
|
+
}
|
|
1408
|
+
if (!isDataSource) {
|
|
1409
|
+
var mappingField = this_1.getMappingField(fieldName, this_1.fieldMapping);
|
|
1410
|
+
groupField = groupFields[fieldName];
|
|
1411
|
+
if (groupKeys[gCnt] !== fieldName && isNullOrUndefined(mappingField.name)) {
|
|
1412
|
+
var newField = {
|
|
1413
|
+
name: fieldName,
|
|
1414
|
+
caption: (this_1.localeObj ? this_1.localeObj.getConstant(groupField) : groupField) + ' (' + caption_2 + ')'
|
|
1415
|
+
};
|
|
1416
|
+
this_1.fieldMapping.push(newField);
|
|
1417
|
+
}
|
|
1418
|
+
else {
|
|
1419
|
+
mappingField.caption = (this_1.localeObj ? this_1.localeObj.getConstant(groupField) : groupField) + ' (' + caption_2 + ')';
|
|
1420
|
+
}
|
|
1601
1421
|
}
|
|
1602
1422
|
}
|
|
1603
1423
|
else if (group.type === 'Number' && group.rangeInterval) {
|
|
@@ -1846,7 +1666,7 @@ var PivotEngine = /** @__PURE__ @class */ (function () {
|
|
|
1846
1666
|
this.fieldList = this.savedFieldList;
|
|
1847
1667
|
while (len--) { /** while is used for better performance than for */
|
|
1848
1668
|
var key = keys[len];
|
|
1849
|
-
var field = this.getMappingField(key);
|
|
1669
|
+
var field = this.getMappingField(key, this.fieldMapping);
|
|
1850
1670
|
if (this.fieldList[key]) {
|
|
1851
1671
|
this.fieldList[key].isSelected = false;
|
|
1852
1672
|
this.fieldList[key].index = len;
|
|
@@ -1925,7 +1745,7 @@ var PivotEngine = /** @__PURE__ @class */ (function () {
|
|
|
1925
1745
|
this.fieldList = {};
|
|
1926
1746
|
while (len--) { /** while is used for better performance than for */
|
|
1927
1747
|
var key = keys[len];
|
|
1928
|
-
var field = this.getMappingField(key);
|
|
1748
|
+
var field = this.getMappingField(key, this.fieldMapping);
|
|
1929
1749
|
type = (field && 'dataType' in field && field.dataType && dataTypes.indexOf(field.dataType.toLowerCase()) > -1) ?
|
|
1930
1750
|
field.dataType.toLowerCase() : PivotUtil.getType(fields[this.fieldKeys[key]]);
|
|
1931
1751
|
this.fieldList[key] = {
|
|
@@ -1969,12 +1789,12 @@ var PivotEngine = /** @__PURE__ @class */ (function () {
|
|
|
1969
1789
|
}
|
|
1970
1790
|
this.updateTreeViewData(dataFields);
|
|
1971
1791
|
};
|
|
1972
|
-
PivotEngine.prototype.getMappingField = function (key) {
|
|
1792
|
+
PivotEngine.prototype.getMappingField = function (key, fieldMapping) {
|
|
1973
1793
|
var field = {};
|
|
1974
|
-
if (
|
|
1975
|
-
for (var index = 0, cnt =
|
|
1976
|
-
if (
|
|
1977
|
-
field =
|
|
1794
|
+
if (fieldMapping.length > 0) {
|
|
1795
|
+
for (var index = 0, cnt = fieldMapping.length; index < cnt; index++) {
|
|
1796
|
+
if (fieldMapping[index].name === key) {
|
|
1797
|
+
field = fieldMapping[index];
|
|
1978
1798
|
break;
|
|
1979
1799
|
}
|
|
1980
1800
|
}
|
|
@@ -2548,8 +2368,8 @@ var PivotEngine = /** @__PURE__ @class */ (function () {
|
|
|
2548
2368
|
field.filter = filter;
|
|
2549
2369
|
field.filterType = type;
|
|
2550
2370
|
field.isExcelFilter = isLabelFilter;
|
|
2551
|
-
var members = (this.formatFields[name] &&
|
|
2552
|
-
(['date', 'dateTime', 'time'].indexOf(this.formatFields[name].type) > -1)) ?
|
|
2371
|
+
var members = ((this.formatFields[name] &&
|
|
2372
|
+
(['date', 'dateTime', 'time'].indexOf(this.formatFields[name].type) > -1)) || (name in this.groupingFields)) ?
|
|
2553
2373
|
field.formattedMembers : field.members;
|
|
2554
2374
|
var allowFil = isInclude;
|
|
2555
2375
|
var final = {};
|
|
@@ -2596,7 +2416,7 @@ var PivotEngine = /** @__PURE__ @class */ (function () {
|
|
|
2596
2416
|
};
|
|
2597
2417
|
PivotEngine.prototype.applyValueFiltering = function (rowData, level, rows, columns, valueFilter, rowFilterData, type) {
|
|
2598
2418
|
this.isValueFiltered = false;
|
|
2599
|
-
var allMember = extend({}, (type === 'row' && this.rowGrandTotal ? this.rowGrandTotal : type === 'column' && this.columnGrandTotal ? this.columnGrandTotal : rows[rows.length - 1]), null, true);
|
|
2419
|
+
var allMember = extend({}, (type === 'row' && this.rowGrandTotal ? this.rowGrandTotal : type === 'column' && this.columnGrandTotal ? this.columnGrandTotal : (!(this.grandTotalsPosition === 'Top') ? rows[rows.length - 1] : rows[0])), null, true);
|
|
2600
2420
|
this.getFilteredData(rows, columns, valueFilter, rowFilterData, level, rowData.name, allMember, type);
|
|
2601
2421
|
if (this.isValueFiltered) {
|
|
2602
2422
|
if ((type === 'row' && this.rowGrandTotal === null) || (type === 'column' && this.columnGrandTotal === null)) {
|
|
@@ -2942,14 +2762,14 @@ var PivotEngine = /** @__PURE__ @class */ (function () {
|
|
|
2942
2762
|
for (var i = 0; i < rLen; i++) {
|
|
2943
2763
|
if (filterElement.name === rows[i].name && valueFields[filterElement.measure] && !isAvail) {
|
|
2944
2764
|
isAvail = true;
|
|
2945
|
-
rowFilteredData = this.applyValueFiltering(rows[i], i, rowHeaders, (this.columnGrandTotal ? this.columnGrandTotal : columnHeaders[columnHeaders.length - 1]), valueFilters, this.valueFilteredData, 'row');
|
|
2765
|
+
rowFilteredData = this.applyValueFiltering(rows[i], i, rowHeaders, (this.columnGrandTotal ? this.columnGrandTotal : (this.grandTotalsPosition === 'Top' && this.showGrandTotals) ? columnHeaders[0] : columnHeaders[columnHeaders.length - 1]), valueFilters, this.valueFilteredData, 'row');
|
|
2946
2766
|
break;
|
|
2947
2767
|
}
|
|
2948
2768
|
}
|
|
2949
2769
|
for (var j = 0; j < cLen; j++) {
|
|
2950
2770
|
if (filterElement.name === columns[j].name && valueFields[filterElement.measure] && !isAvail) {
|
|
2951
2771
|
isAvail = true;
|
|
2952
|
-
columnFilteredData = this.applyValueFiltering(columns[j], j, columnHeaders, (this.rowGrandTotal ? this.rowGrandTotal : rowHeaders[rowHeaders.length - 1]), valueFilters, this.valueFilteredData, 'column');
|
|
2772
|
+
columnFilteredData = this.applyValueFiltering(columns[j], j, columnHeaders, (this.rowGrandTotal ? this.rowGrandTotal : (this.grandTotalsPosition === 'Top' && this.showGrandTotals) ? rowHeaders[0] : rowHeaders[rowHeaders.length - 1]), valueFilters, this.valueFilteredData, 'column');
|
|
2953
2773
|
break;
|
|
2954
2774
|
}
|
|
2955
2775
|
}
|
|
@@ -3260,7 +3080,7 @@ var PivotEngine = /** @__PURE__ @class */ (function () {
|
|
|
3260
3080
|
}
|
|
3261
3081
|
var engine = this;
|
|
3262
3082
|
return headers.filter(function (item) {
|
|
3263
|
-
return item.members.length > 0
|
|
3083
|
+
return (item.members.length > 0 || item.type === 'grand sum') ? true : engine.matchIndexes(item.indexObject, filterObjects);
|
|
3264
3084
|
});
|
|
3265
3085
|
};
|
|
3266
3086
|
PivotEngine.prototype.matchIndexes = function (index, filterObjects) {
|
|
@@ -3485,8 +3305,8 @@ var PivotEngine = /** @__PURE__ @class */ (function () {
|
|
|
3485
3305
|
}
|
|
3486
3306
|
}
|
|
3487
3307
|
if (stringValue.length > 0) {
|
|
3488
|
-
stringValue = childrens.sort === 'Ascending' ? (stringValue.sort(function (a, b) { return (a.actualText > b.actualText) ? 1 : ((b.actualText > a.actualText) ? -1 : 0); })) :
|
|
3489
|
-
childrens.sort === 'Descending' ? (stringValue.sort(function (a, b) { return (a.actualText < b.actualText) ? 1 : ((b.actualText < a.actualText) ? -1 : 0); })) : stringValue;
|
|
3308
|
+
stringValue = childrens.sort === 'Ascending' ? (stringValue.sort(function (a, b) { return (a.actualText === 'Grand Total' || b.actualText === 'Grand Total') ? 0 : ((a.actualText > b.actualText) ? 1 : ((b.actualText > a.actualText) ? -1 : 0)); })) :
|
|
3309
|
+
childrens.sort === 'Descending' ? (stringValue.sort(function (a, b) { return (a.actualText === 'Grand Total' || b.actualText === 'Grand Total') ? 0 : ((a.actualText < b.actualText) ? 1 : ((b.actualText < a.actualText) ? -1 : 0)); })) : stringValue;
|
|
3490
3310
|
}
|
|
3491
3311
|
if (alphaNumbervalue.length > 0) {
|
|
3492
3312
|
alphaNumbervalue = childrens.sort === 'Ascending' ?
|
|
@@ -3499,9 +3319,9 @@ var PivotEngine = /** @__PURE__ @class */ (function () {
|
|
|
3499
3319
|
}
|
|
3500
3320
|
else {
|
|
3501
3321
|
return sortOrder === 'Ascending' ?
|
|
3502
|
-
(headers.sort(function (a, b) { return (a.actualText > b.actualText) ? 1 : ((b.actualText > a.actualText) ? -1 : 0); })) :
|
|
3322
|
+
(headers.sort(function (a, b) { return (a.actualText === 'Grand Total' || b.actualText === 'Grand Total') ? 0 : ((a.actualText > b.actualText) ? 1 : ((b.actualText > a.actualText) ? -1 : 0)); })) :
|
|
3503
3323
|
sortOrder === 'Descending' ?
|
|
3504
|
-
(headers.sort(function (a, b) { return (a.actualText < b.actualText) ? 1 : ((b.actualText < a.actualText) ? -1 : 0); })) :
|
|
3324
|
+
(headers.sort(function (a, b) { return (a.actualText === 'Grand Total' || b.actualText === 'Grand Total') ? 0 : ((a.actualText < b.actualText) ? 1 : ((b.actualText < a.actualText) ? -1 : 0)); })) :
|
|
3505
3325
|
headers;
|
|
3506
3326
|
}
|
|
3507
3327
|
}
|
|
@@ -3521,7 +3341,8 @@ var PivotEngine = /** @__PURE__ @class */ (function () {
|
|
|
3521
3341
|
this.valueSortHeaderText = undefined;
|
|
3522
3342
|
if (this.enableValueSorting && this.valueSortSettings.headerText && !this.valueSortHeaderText &&
|
|
3523
3343
|
this.valueSortSettings.headerText !== '' && this.values.length > 0) {
|
|
3524
|
-
|
|
3344
|
+
this.valueSortHeaderText = this.valueSortSettings.headerText;
|
|
3345
|
+
var textArray = this.valueSortHeaderText.split(this.valueSortSettings.headerDelimiter);
|
|
3525
3346
|
for (var _i = 0, _a = this.values; _i < _a.length; _i++) {
|
|
3526
3347
|
var field = _a[_i];
|
|
3527
3348
|
var name_1 = field.caption ? field.caption : field.name;
|
|
@@ -4169,6 +3990,7 @@ var PivotEngine = /** @__PURE__ @class */ (function () {
|
|
|
4169
3990
|
var summCell = headers[headers.length - 1];
|
|
4170
3991
|
if (summCell && summCell.type === 'grand sum') {
|
|
4171
3992
|
summCell.index = this.filterMembers;
|
|
3993
|
+
summCell.indexObject = {};
|
|
4172
3994
|
/* eslint-disable */
|
|
4173
3995
|
for (var ln = 0, lt_1 = this.filterMembers.length; ln < lt_1; ln++) {
|
|
4174
3996
|
summCell.indexObject[this.filterMembers[ln]] = this.filterMembers[ln];
|
|
@@ -4310,7 +4132,7 @@ var PivotEngine = /** @__PURE__ @class */ (function () {
|
|
|
4310
4132
|
PivotEngine.prototype.insertAllMember = function (set, filter, customText, axis) {
|
|
4311
4133
|
var len = set.length;
|
|
4312
4134
|
customText = ' Total';
|
|
4313
|
-
|
|
4135
|
+
var grandTotalSet = {
|
|
4314
4136
|
hasChild: false,
|
|
4315
4137
|
index: filter,
|
|
4316
4138
|
level: 0,
|
|
@@ -4324,13 +4146,14 @@ var PivotEngine = /** @__PURE__ @class */ (function () {
|
|
|
4324
4146
|
type: 'grand sum',
|
|
4325
4147
|
valueSort: {}
|
|
4326
4148
|
};
|
|
4327
|
-
|
|
4328
|
-
|
|
4329
|
-
|
|
4330
|
-
|
|
4149
|
+
grandTotalSet.valueSort[grandTotalSet.formattedText] = 1;
|
|
4150
|
+
grandTotalSet.valueSort.levelName = grandTotalSet.formattedText;
|
|
4151
|
+
grandTotalSet.valueSort[grandTotalSet.actualText] = 1;
|
|
4152
|
+
grandTotalSet.valueSort.uniqueName = grandTotalSet.actualText;
|
|
4331
4153
|
for (var ln = 0, lt = filter.length; ln < lt; ln++) {
|
|
4332
|
-
|
|
4154
|
+
grandTotalSet.indexObject[filter[ln]] = filter[ln];
|
|
4333
4155
|
}
|
|
4156
|
+
(this.dataSourceSettings.grandTotalsPosition === 'Top' && this.dataSourceSettings.showGrandTotals) ? set.unshift(grandTotalSet) : set.push(grandTotalSet);
|
|
4334
4157
|
// if (axis === 'row') {
|
|
4335
4158
|
// this.rowCount += this.rowValuesLength;
|
|
4336
4159
|
// } else {
|
|
@@ -4349,10 +4172,11 @@ var PivotEngine = /** @__PURE__ @class */ (function () {
|
|
|
4349
4172
|
row.colIndex = 0;
|
|
4350
4173
|
row.rowIndex = tnum;
|
|
4351
4174
|
var isRowFieldsAvail = false;
|
|
4175
|
+
var delimiter = this.dataSourceSettings.valueSortSettings.headerDelimiter;
|
|
4352
4176
|
if (this.valueAxis && this.dataSourceSettings.rows.length === 0 && this.dataSourceSettings.values.length > 1) {
|
|
4353
4177
|
this.rowIndex = (isNullOrUndefined(this.rowIndex) && !isLeastNode && this.dataSourceSettings.rows.length === 0) ? row.index : this.rowIndex;
|
|
4354
|
-
isRowFieldsAvail = (this.valueAxis && this.dataSourceSettings.rows.length === 0 && row.valueSort.levelName.toString().indexOf('Grand Total
|
|
4355
|
-
if (this.valueAxis && this.dataSourceSettings.rows.length === 0 && row.valueSort.levelName.toString().indexOf('Grand Total
|
|
4178
|
+
isRowFieldsAvail = (this.valueAxis && this.dataSourceSettings.rows.length === 0 && row.valueSort.levelName && row.valueSort.levelName.toString().indexOf('Grand Total' + delimiter) !== 0);
|
|
4179
|
+
if (this.valueAxis && this.dataSourceSettings.rows.length === 0 && row.valueSort.levelName.toString().indexOf('Grand Total' + delimiter) === 0) {
|
|
4356
4180
|
row.index = this.rowIndex;
|
|
4357
4181
|
}
|
|
4358
4182
|
}
|
|
@@ -4377,7 +4201,7 @@ var PivotEngine = /** @__PURE__ @class */ (function () {
|
|
|
4377
4201
|
for (var cln = 0, dln = 1, clt = columns.length; cln < clt; ++cln) {
|
|
4378
4202
|
if (!isValueIndexFound) {
|
|
4379
4203
|
for (vln = 0; vln < vlt; vln++) {
|
|
4380
|
-
if (row.valueSort.uniqueName && row.valueSort.uniqueName.toString().
|
|
4204
|
+
if (row.valueSort.uniqueName && row.valueSort.uniqueName.toString().indexOf(this.values[vln].name) > -1) {
|
|
4381
4205
|
isValueIndexFound = true;
|
|
4382
4206
|
isValueCellUpdated = true;
|
|
4383
4207
|
break;
|
|
@@ -4412,7 +4236,7 @@ var PivotEngine = /** @__PURE__ @class */ (function () {
|
|
|
4412
4236
|
for (var cln = 0, dln = 1, clt = columns.length; cln < clt; ++cln) {
|
|
4413
4237
|
for (var vln = 0; vln < vlt; vln++) {
|
|
4414
4238
|
if (!this.valueAxis && !this.isLastHeaderHasMeasures) {
|
|
4415
|
-
if (columns[cln].valueSort.uniqueName && columns[cln].valueSort.uniqueName.toString().
|
|
4239
|
+
if (columns[cln].valueSort.uniqueName && columns[cln].valueSort.uniqueName.toString().indexOf(this.values[vln].name) > -1) {
|
|
4416
4240
|
this.updateRowData(rows, columns, tnum, data, vln, rln, cln, dln, actCnt, rTotal, cTotal);
|
|
4417
4241
|
dln = data[tnum].length;
|
|
4418
4242
|
}
|
|
@@ -5369,6 +5193,10 @@ var PivotEngine = /** @__PURE__ @class */ (function () {
|
|
|
5369
5193
|
this.updateValueMembers(this.measureIndex === 0 && axis.length > 1, null, null, columnHeaders, axis.slice(0, axis.length - 1), vcnt, 0);
|
|
5370
5194
|
this.updateValueMembers(false, null, null, columnHeaders, axis.slice(axis.length - 1, axis.length), vcnt, -1);
|
|
5371
5195
|
}
|
|
5196
|
+
else if (this.grandTotalsPosition === 'Top' && this.showGrandTotals && this.measureIndex === 0) {
|
|
5197
|
+
this.updateValueMembers(false, null, null, columnHeaders, axis.slice(0, 1), vcnt, -1);
|
|
5198
|
+
this.updateValueMembers(this.measureIndex === 0 && axis.length > 1, null, null, columnHeaders, axis.slice(1, axis.length), vcnt, 0);
|
|
5199
|
+
}
|
|
5372
5200
|
else {
|
|
5373
5201
|
var hasColumnTotal = columns.length === 0 && axis.length === 1 && axis[0].type == 'grand sum';
|
|
5374
5202
|
this.updateValueMembers(!hasColumnTotal && this.measureIndex === 0, null, null, columnHeaders, axis, vcnt, hasColumnTotal ? -1 : 0);
|
|
@@ -5409,6 +5237,10 @@ var PivotEngine = /** @__PURE__ @class */ (function () {
|
|
|
5409
5237
|
this.updateValueMembers(this.measureIndex == 0 && this.rMembers.length > 1, null, null, rowAxis, this.rMembers.slice(0, this.rMembers.length - 1), this.values.length, 0);
|
|
5410
5238
|
this.updateValueMembers(false, null, null, rowAxis, this.rMembers.slice(this.rMembers.length - 1, this.rMembers.length), this.values.length, -1);
|
|
5411
5239
|
}
|
|
5240
|
+
else if (this.grandTotalsPosition === 'Top' && this.showGrandTotals && this.measureIndex === 0) {
|
|
5241
|
+
this.updateValueMembers(false, null, null, rowAxis, this.rMembers.slice(0, 1), this.values.length, -1);
|
|
5242
|
+
this.updateValueMembers(this.measureIndex == 0 && this.rMembers.length > 1, null, null, rowAxis, this.rMembers.slice(1, this.rMembers.length), this.values.length, 0);
|
|
5243
|
+
}
|
|
5412
5244
|
else {
|
|
5413
5245
|
var hasRowTotal = rows.length === 0 && this.rMembers.length === 1 && this.rMembers[0].type == 'grand sum';
|
|
5414
5246
|
this.updateValueMembers(!hasRowTotal && this.measureIndex == 0, null, null, rowAxis, this.rMembers, this.values.length, hasRowTotal ? -1 : 0);
|
|
@@ -6014,6 +5846,12 @@ var fieldDragStart = 'fieldDragStart';
|
|
|
6014
5846
|
var chartPointClick = 'chartPointClick';
|
|
6015
5847
|
/** @hidden */
|
|
6016
5848
|
var beforeServiceInvoke = 'beforeServiceInvoke';
|
|
5849
|
+
/** @hidden */
|
|
5850
|
+
var actionBegin = 'actionBegin';
|
|
5851
|
+
/** @hidden */
|
|
5852
|
+
var actionComplete = 'actionComplete';
|
|
5853
|
+
/** @hidden */
|
|
5854
|
+
var actionFailure = 'actionFailure';
|
|
6017
5855
|
/**
|
|
6018
5856
|
* Specifies pivot internal events
|
|
6019
5857
|
*/
|
|
@@ -6043,6 +5881,186 @@ var initToolbar = 'init-toolbar';
|
|
|
6043
5881
|
var initFormatting = 'init-formatting';
|
|
6044
5882
|
/** @hidden */
|
|
6045
5883
|
var initGrouping = 'init-grouping';
|
|
5884
|
+
/**
|
|
5885
|
+
* Specifies action names of actionBegin events
|
|
5886
|
+
*/
|
|
5887
|
+
/** @hidden */
|
|
5888
|
+
var sortValue = 'Sort value';
|
|
5889
|
+
/** @hidden */
|
|
5890
|
+
var drillUp = 'Drill up';
|
|
5891
|
+
/** @hidden */
|
|
5892
|
+
var drillDown = 'Drill down';
|
|
5893
|
+
/** @hidden */
|
|
5894
|
+
var addNewReport = 'Add new report';
|
|
5895
|
+
/** @hidden */
|
|
5896
|
+
var saveCurrentReport = 'Save current report';
|
|
5897
|
+
/** @hidden */
|
|
5898
|
+
var saveAsCurrentReport = 'Save as current report';
|
|
5899
|
+
/** @hidden */
|
|
5900
|
+
var renameCurrentReport = 'Rename current report';
|
|
5901
|
+
/** @hidden */
|
|
5902
|
+
var removeCurrentReport = 'Remove current report';
|
|
5903
|
+
/** @hidden */
|
|
5904
|
+
var loadReports = 'Load report';
|
|
5905
|
+
/** @hidden */
|
|
5906
|
+
var openConditionalFormatting = 'Open conditional formatting dialog';
|
|
5907
|
+
/** @hidden */
|
|
5908
|
+
var openNumberFormatting = 'Open number formatting dialog';
|
|
5909
|
+
/** @hidden */
|
|
5910
|
+
var MdxQuery = 'MdxQuery';
|
|
5911
|
+
/** @hidden */
|
|
5912
|
+
var showFieldList = 'Open field list';
|
|
5913
|
+
/** @hidden */
|
|
5914
|
+
var tableView = 'Show table view';
|
|
5915
|
+
/** @hidden */
|
|
5916
|
+
var chartView = 'Show chart view';
|
|
5917
|
+
/** @hidden */
|
|
5918
|
+
var multipleAxis = 'Multiple Axis';
|
|
5919
|
+
/** @hidden */
|
|
5920
|
+
var showLegend = 'Show legend';
|
|
5921
|
+
/** @hidden */
|
|
5922
|
+
var pdfExport = 'PDF export';
|
|
5923
|
+
/** @hidden */
|
|
5924
|
+
var pngExport = 'PNG export';
|
|
5925
|
+
/** @hidden */
|
|
5926
|
+
var excelExport = 'Excel export';
|
|
5927
|
+
/** @hidden */
|
|
5928
|
+
var csvExport = 'CSV export';
|
|
5929
|
+
/** @hidden */
|
|
5930
|
+
var jpegExport = 'JPEG export';
|
|
5931
|
+
/** @hidden */
|
|
5932
|
+
var svgExport = 'SVG export';
|
|
5933
|
+
/** @hidden */
|
|
5934
|
+
var hideSubTotals = 'Hide sub-totals';
|
|
5935
|
+
/** @hidden */
|
|
5936
|
+
var subTotalsRow = 'Show row sub-totals';
|
|
5937
|
+
/** @hidden */
|
|
5938
|
+
var subTotalsColumn = 'Show column sub-totals';
|
|
5939
|
+
/** @hidden */
|
|
5940
|
+
var showSubTotals = 'Show sub-totals';
|
|
5941
|
+
/** @hidden */
|
|
5942
|
+
var hideGrandTotals = 'Hide grand totals';
|
|
5943
|
+
/** @hidden */
|
|
5944
|
+
var grandTotalsRow = 'Show row grand totals';
|
|
5945
|
+
/** @hidden */
|
|
5946
|
+
var grandTotalsColumn = 'Show column grand totals';
|
|
5947
|
+
/** @hidden */
|
|
5948
|
+
var showGrandTotals = 'Show grand totals';
|
|
5949
|
+
/** @hidden */
|
|
5950
|
+
var numberFormattingMenu = 'Number Formatting menu';
|
|
5951
|
+
/** @hidden */
|
|
5952
|
+
var conditionalFormattingMenu = 'Conditional Formatting menu';
|
|
5953
|
+
/** @hidden */
|
|
5954
|
+
var reportChange = 'Report change';
|
|
5955
|
+
/** @hidden */
|
|
5956
|
+
var sortFieldTree = 'Sort field tree';
|
|
5957
|
+
/** @hidden */
|
|
5958
|
+
var editCalculatedField = 'Edit calculated field';
|
|
5959
|
+
/** @hidden */
|
|
5960
|
+
var sortField = 'Sort field';
|
|
5961
|
+
/** @hidden */
|
|
5962
|
+
var filterField = 'Filter field';
|
|
5963
|
+
/** @hidden */
|
|
5964
|
+
var removeField = 'Remove field';
|
|
5965
|
+
/** @hidden */
|
|
5966
|
+
var openCalculatedField = 'Open calculated field dialog';
|
|
5967
|
+
/** @hidden */
|
|
5968
|
+
var editRecord = 'Edit record';
|
|
5969
|
+
/** @hidden */
|
|
5970
|
+
var saveEditedRecords = 'Save edited records';
|
|
5971
|
+
/** @hidden */
|
|
5972
|
+
var addNewRecord = 'Add new record';
|
|
5973
|
+
/** @hidden */
|
|
5974
|
+
var removeRecord = 'Remove record';
|
|
5975
|
+
/** @hidden */
|
|
5976
|
+
var aggregateField = 'Aggregate field';
|
|
5977
|
+
/** @hidden */
|
|
5978
|
+
var contextMenuCalculatedField = 'CalculatedField Context menu';
|
|
5979
|
+
/** @hidden */
|
|
5980
|
+
var windowResize = 'Window resize';
|
|
5981
|
+
/**
|
|
5982
|
+
* Specifies action names of actionComplete events
|
|
5983
|
+
*/
|
|
5984
|
+
/** @hidden */
|
|
5985
|
+
var calculatedFieldApplied = 'Calculated field applied';
|
|
5986
|
+
/** @hidden */
|
|
5987
|
+
var editedRecordsSaved = 'Edited records saved';
|
|
5988
|
+
/** @hidden */
|
|
5989
|
+
var newRecordAdded = 'New record added';
|
|
5990
|
+
/** @hidden */
|
|
5991
|
+
var recordRemoved = 'Record removed';
|
|
5992
|
+
/** @hidden */
|
|
5993
|
+
var closeFieldlist = 'Field list closed';
|
|
5994
|
+
/** @hidden */
|
|
5995
|
+
var fieldTreeSorted = 'Field tree sorted';
|
|
5996
|
+
/** @hidden */
|
|
5997
|
+
var reportSaved = 'Report saved';
|
|
5998
|
+
/** @hidden */
|
|
5999
|
+
var newReportAdded = 'New report added';
|
|
6000
|
+
/** @hidden */
|
|
6001
|
+
var reportReSaved = 'Report re-saved';
|
|
6002
|
+
/** @hidden */
|
|
6003
|
+
var reportRenamed = 'Report renamed';
|
|
6004
|
+
/** @hidden */
|
|
6005
|
+
var reportRemoved = 'Report removed';
|
|
6006
|
+
/** @hidden */
|
|
6007
|
+
var excelExported = 'Excel exported';
|
|
6008
|
+
/** @hidden */
|
|
6009
|
+
var csvExported = 'CSV exported';
|
|
6010
|
+
/** @hidden */
|
|
6011
|
+
var pdfExported = 'PDF exported';
|
|
6012
|
+
/** @hidden */
|
|
6013
|
+
var pngExported = 'PNG exported';
|
|
6014
|
+
/** @hidden */
|
|
6015
|
+
var jpegExported = 'JPEG exported';
|
|
6016
|
+
/** @hidden */
|
|
6017
|
+
var svgExported = 'SVG exported';
|
|
6018
|
+
/** @hidden */
|
|
6019
|
+
var conditionallyFormatted = 'Conditional formatting applied';
|
|
6020
|
+
/** @hidden */
|
|
6021
|
+
var numberFormatted = 'Number formatting applied';
|
|
6022
|
+
/** @hidden */
|
|
6023
|
+
var tableViewed = 'Table view shown';
|
|
6024
|
+
/** @hidden */
|
|
6025
|
+
var chartViewed = 'Chart view shown';
|
|
6026
|
+
/** @hidden */
|
|
6027
|
+
var subTotalsHidden = 'Sub-totals hidden';
|
|
6028
|
+
/** @hidden */
|
|
6029
|
+
var subTotalsRowShown = 'Row sub-totals shown';
|
|
6030
|
+
/** @hidden */
|
|
6031
|
+
var subTotalsColumnShown = 'Column sub-totals shown';
|
|
6032
|
+
/** @hidden */
|
|
6033
|
+
var subTotalsShown = 'Sub-totals shown';
|
|
6034
|
+
/** @hidden */
|
|
6035
|
+
var grandTotalsHidden = 'Grand totals hidden';
|
|
6036
|
+
/** @hidden */
|
|
6037
|
+
var grandTotalsRowShown = 'Row grand totals shown';
|
|
6038
|
+
/** @hidden */
|
|
6039
|
+
var grandTotalsColumnShown = 'Column grand totals shown';
|
|
6040
|
+
/** @hidden */
|
|
6041
|
+
var grandTotalsShown = 'Grand totals shown';
|
|
6042
|
+
/** @hidden */
|
|
6043
|
+
var valueSorted = 'Value sorted';
|
|
6044
|
+
/** @hidden */
|
|
6045
|
+
var calculatedFieldEdited = 'Calculated field edited';
|
|
6046
|
+
/** @hidden */
|
|
6047
|
+
var fieldSorted = 'Field sorted';
|
|
6048
|
+
/** @hidden */
|
|
6049
|
+
var fieldFiltered = 'Field filtered';
|
|
6050
|
+
/** @hidden */
|
|
6051
|
+
var fieldRemoved = 'Field removed';
|
|
6052
|
+
/** @hidden */
|
|
6053
|
+
var fieldAggregated = 'Field aggregated';
|
|
6054
|
+
/** @hidden */
|
|
6055
|
+
var recordEdited = 'Record edited';
|
|
6056
|
+
/** @hidden */
|
|
6057
|
+
var reportChanged = 'Report changed';
|
|
6058
|
+
/** @hidden */
|
|
6059
|
+
var windowResized = 'Window resized';
|
|
6060
|
+
/** @hidden */
|
|
6061
|
+
var recordUpdated = 'Records updated';
|
|
6062
|
+
/** @hidden */
|
|
6063
|
+
var drillThroughClosed = 'Drill-through closed';
|
|
6046
6064
|
|
|
6047
6065
|
/**
|
|
6048
6066
|
* CSS Constants
|
|
@@ -6716,6 +6734,8 @@ var PIVOTCHART_TYPE_DIALOG = 'e-pivotchart-type-dialog';
|
|
|
6716
6734
|
var FORMAT_FONT_COLOR_PICKER = 'e-format-font-color-picker';
|
|
6717
6735
|
/** @hidden */
|
|
6718
6736
|
var GROUP_PIVOT_ROW = 'e-group-pivot-rows';
|
|
6737
|
+
/** @hidden */
|
|
6738
|
+
var TOOLBAR_MENU = 'e-pivot-toolbar-menu';
|
|
6719
6739
|
|
|
6720
6740
|
/**
|
|
6721
6741
|
* `AggregateMenu` module to create aggregate type popup.
|
|
@@ -6745,28 +6765,39 @@ var AggregateMenu = /** @__PURE__ @class */ (function () {
|
|
|
6745
6765
|
AggregateMenu.prototype.openContextMenu = function (args) {
|
|
6746
6766
|
var _this = this;
|
|
6747
6767
|
var fieldName = args.target.parentElement.id;
|
|
6768
|
+
var fieldInfo = PivotUtil.getFieldInfo(fieldName, this.parent);
|
|
6748
6769
|
this.buttonElement = args.target.parentElement;
|
|
6749
6770
|
var isStringField = this.parent.engineModule.fieldList[fieldName].type !== 'number' ? 1 : 0;
|
|
6750
6771
|
this.summaryTypes = this.getMenuItem(isStringField).slice();
|
|
6772
|
+
this.parent.actionObj.actionName = aggregateField;
|
|
6773
|
+
this.parent.actionObj.fieldInfo = fieldInfo.fieldItem;
|
|
6774
|
+
if (this.parent.actionBeginMethod()) {
|
|
6775
|
+
return;
|
|
6776
|
+
}
|
|
6751
6777
|
var eventArgs = {
|
|
6752
6778
|
cancel: false, fieldName: fieldName, aggregateTypes: this.summaryTypes, displayMenuCount: 7
|
|
6753
6779
|
};
|
|
6754
6780
|
var control = this.parent.getModuleName() === 'pivotfieldlist' && this.parent.isPopupView ?
|
|
6755
6781
|
this.parent.pivotGridModule : this.parent;
|
|
6756
|
-
|
|
6757
|
-
|
|
6758
|
-
|
|
6759
|
-
|
|
6760
|
-
|
|
6761
|
-
|
|
6762
|
-
|
|
6763
|
-
|
|
6764
|
-
|
|
6765
|
-
|
|
6766
|
-
|
|
6782
|
+
try {
|
|
6783
|
+
control.trigger(aggregateMenuOpen, eventArgs, function (observedArgs) {
|
|
6784
|
+
if (!observedArgs.cancel) {
|
|
6785
|
+
_this.summaryTypes = observedArgs.aggregateTypes;
|
|
6786
|
+
_this.createContextMenu(isStringField, observedArgs.displayMenuCount);
|
|
6787
|
+
_this.currentMenu = args.target;
|
|
6788
|
+
var pos = _this.currentMenu.getBoundingClientRect();
|
|
6789
|
+
if (_this.parent.enableRtl) {
|
|
6790
|
+
_this.menuInfo[isStringField].open(pos.top + (window.scrollY || document.documentElement.scrollTop), pos.left - 105);
|
|
6791
|
+
}
|
|
6792
|
+
else {
|
|
6793
|
+
_this.menuInfo[isStringField].open(pos.top + (window.scrollY || document.documentElement.scrollTop), pos.left);
|
|
6794
|
+
}
|
|
6767
6795
|
}
|
|
6768
|
-
}
|
|
6769
|
-
}
|
|
6796
|
+
});
|
|
6797
|
+
}
|
|
6798
|
+
catch (execption) {
|
|
6799
|
+
this.parent.actionFailureMethod(execption);
|
|
6800
|
+
}
|
|
6770
6801
|
};
|
|
6771
6802
|
AggregateMenu.prototype.createContextMenu = function (isStringField, displayMenuCount) {
|
|
6772
6803
|
var _this = this;
|
|
@@ -7043,31 +7074,42 @@ var AggregateMenu = /** @__PURE__ @class */ (function () {
|
|
|
7043
7074
|
AggregateMenu.prototype.selectOptionInContextMenu = function (menu) {
|
|
7044
7075
|
if (menu.item.text !== null) {
|
|
7045
7076
|
var buttonElement = this.currentMenu.parentElement;
|
|
7046
|
-
var
|
|
7047
|
-
|
|
7048
|
-
|
|
7049
|
-
|
|
7077
|
+
var fieldInfo = PivotUtil.getFieldInfo((buttonElement ? buttonElement.id : ''), this.parent);
|
|
7078
|
+
this.parent.actionObj.actionName = aggregateField;
|
|
7079
|
+
this.parent.actionObj.fieldInfo = fieldInfo.fieldItem;
|
|
7080
|
+
if (this.parent.actionBeginMethod()) {
|
|
7081
|
+
return;
|
|
7050
7082
|
}
|
|
7051
|
-
|
|
7052
|
-
|
|
7053
|
-
|
|
7054
|
-
|
|
7055
|
-
|
|
7056
|
-
|
|
7057
|
-
|
|
7058
|
-
|
|
7059
|
-
|
|
7060
|
-
|
|
7061
|
-
|
|
7062
|
-
|
|
7063
|
-
|
|
7064
|
-
|
|
7065
|
-
|
|
7066
|
-
|
|
7067
|
-
this.parent.
|
|
7083
|
+
var type = menu.item.id.split('_').pop();
|
|
7084
|
+
try {
|
|
7085
|
+
if (type === 'MoreOption' || type === 'PercentageOfDifferenceFrom'
|
|
7086
|
+
|| type === 'PercentageOfParentTotal' || type === 'DifferenceFrom') {
|
|
7087
|
+
this.createValueSettingsDialog(buttonElement, this.parentElement, type);
|
|
7088
|
+
}
|
|
7089
|
+
else {
|
|
7090
|
+
var field = buttonElement.getAttribute('data-uid');
|
|
7091
|
+
var valuefields = this.parent.dataSourceSettings.values;
|
|
7092
|
+
var contentElement = buttonElement.querySelector('.e-content');
|
|
7093
|
+
var captionName = menu.item.text + ' ' + this.parent.localeObj.getConstant('of') + ' ' +
|
|
7094
|
+
this.parent.engineModule.fieldList[field].caption;
|
|
7095
|
+
contentElement.innerHTML = captionName;
|
|
7096
|
+
contentElement.setAttribute('title', captionName);
|
|
7097
|
+
buttonElement.setAttribute('data-type', type);
|
|
7098
|
+
for (var vCnt = 0; vCnt < this.parent.dataSourceSettings.values.length; vCnt++) {
|
|
7099
|
+
if (this.parent.dataSourceSettings.values[vCnt].name === field) {
|
|
7100
|
+
var dataSourceItem = extend({}, valuefields[vCnt].properties ?
|
|
7101
|
+
valuefields[vCnt].properties : valuefields[vCnt], null, true);
|
|
7102
|
+
dataSourceItem.type = type;
|
|
7103
|
+
this.parent.engineModule.fieldList[field].aggregateType = type;
|
|
7104
|
+
valuefields.splice(vCnt, 1, dataSourceItem);
|
|
7105
|
+
this.parent.lastAggregationInfo = dataSourceItem;
|
|
7106
|
+
}
|
|
7068
7107
|
}
|
|
7108
|
+
this.updateDataSource();
|
|
7069
7109
|
}
|
|
7070
|
-
|
|
7110
|
+
}
|
|
7111
|
+
catch (execption) {
|
|
7112
|
+
this.parent.actionFailureMethod(execption);
|
|
7071
7113
|
}
|
|
7072
7114
|
}
|
|
7073
7115
|
};
|
|
@@ -7184,34 +7226,40 @@ var Render = /** @__PURE__ @class */ (function () {
|
|
|
7184
7226
|
this.resColWidth = (this.parent.showGroupingBar && this.parent.groupingBarModule) ? (this.parent.isAdaptive ? 180 : 250) :
|
|
7185
7227
|
(this.parent.isAdaptive ? 140 : 200);
|
|
7186
7228
|
this.engine = this.parent.dataType === 'olap' ? this.parent.olapEngineModule : this.parent.engineModule;
|
|
7187
|
-
this.gridSettings = parent.gridSettings;
|
|
7229
|
+
this.gridSettings = this.parent.gridSettings;
|
|
7188
7230
|
this.formatList = this.getFormatList();
|
|
7189
7231
|
this.aggMenu = new AggregateMenu(this.parent);
|
|
7190
7232
|
}
|
|
7191
7233
|
/* eslint-disable-next-line */
|
|
7192
7234
|
/** @hidden */
|
|
7193
|
-
Render.prototype.render = function () {
|
|
7194
|
-
|
|
7195
|
-
|
|
7235
|
+
Render.prototype.render = function (refreshRequired) {
|
|
7236
|
+
if (refreshRequired) {
|
|
7237
|
+
this.initProperties();
|
|
7238
|
+
}
|
|
7239
|
+
this.resColWidth = (this.parent.showGroupingBar && this.parent.groupingBarModule) ? (this.parent.isAdaptive ? 180 : 250) :
|
|
7240
|
+
(this.parent.isAdaptive ? 140 : 200);
|
|
7241
|
+
this.engine = this.parent.dataType === 'olap' ? this.parent.olapEngineModule : this.parent.engineModule;
|
|
7242
|
+
this.gridSettings = this.parent.gridSettings;
|
|
7243
|
+
this.formatList = this.getFormatList();
|
|
7196
7244
|
this.parent.gridHeaderCellInfo = [];
|
|
7197
7245
|
this.parent.gridCellCollection = {};
|
|
7198
|
-
this.injectGridModules(parent);
|
|
7246
|
+
this.injectGridModules(this.parent);
|
|
7199
7247
|
this.rowStartPos = this.getRowStartPos();
|
|
7200
7248
|
if (this.parent.grid && this.parent.grid.element && this.parent.element.querySelector('.e-grid')) {
|
|
7201
7249
|
this.parent.notEmpty = true;
|
|
7202
|
-
if (!engine.isEngineUpdated) {
|
|
7203
|
-
engine.headerContent = this.frameDataSource('header');
|
|
7204
|
-
engine.valueContent = this.frameDataSource('value');
|
|
7250
|
+
if (!this.engine.isEngineUpdated) {
|
|
7251
|
+
this.engine.headerContent = this.frameDataSource('header');
|
|
7252
|
+
this.engine.valueContent = this.frameDataSource('value');
|
|
7205
7253
|
}
|
|
7206
7254
|
else {
|
|
7207
7255
|
if (this.parent.enableValueSorting) {
|
|
7208
|
-
engine.valueContent = this.frameDataSource('value');
|
|
7256
|
+
this.engine.valueContent = this.frameDataSource('value');
|
|
7209
7257
|
}
|
|
7210
|
-
engine.isEngineUpdated = false;
|
|
7258
|
+
this.engine.isEngineUpdated = false;
|
|
7211
7259
|
}
|
|
7212
7260
|
this.parent.grid.setProperties({
|
|
7213
7261
|
columns: this.frameStackedHeaders(), dataSource: (this.parent.dataType === 'olap' ? true :
|
|
7214
|
-
parent.dataSourceSettings.values.length > 0) && !this.engine.isEmptyData ? engine.valueContent :
|
|
7262
|
+
this.parent.dataSourceSettings.values.length > 0) && !this.engine.isEmptyData ? this.engine.valueContent :
|
|
7215
7263
|
this.frameDataSource('value')
|
|
7216
7264
|
}, true);
|
|
7217
7265
|
if (this.parent.grid.height === 'auto') {
|
|
@@ -7251,6 +7299,30 @@ var Render = /** @__PURE__ @class */ (function () {
|
|
|
7251
7299
|
}
|
|
7252
7300
|
this.parent.grid.on(headerRefreshed, this.refreshHeader, this);
|
|
7253
7301
|
};
|
|
7302
|
+
Render.prototype.initProperties = function () {
|
|
7303
|
+
this.rowStartPos = undefined;
|
|
7304
|
+
this.maxIndent = undefined;
|
|
7305
|
+
this.resColWidth = undefined;
|
|
7306
|
+
this.isOverflows = undefined;
|
|
7307
|
+
this.indentCollection = {};
|
|
7308
|
+
this.formatList = undefined;
|
|
7309
|
+
this.colPos = 0;
|
|
7310
|
+
this.colGrandPos = undefined;
|
|
7311
|
+
this.rowGrandPos = undefined;
|
|
7312
|
+
this.lastSpan = 0;
|
|
7313
|
+
this.field = undefined;
|
|
7314
|
+
this.fieldCaption = undefined;
|
|
7315
|
+
this.lvlCollection = {};
|
|
7316
|
+
this.hierarchyCollection = {};
|
|
7317
|
+
this.lvlPosCollection = {};
|
|
7318
|
+
this.hierarchyPosCollection = {};
|
|
7319
|
+
this.position = 0;
|
|
7320
|
+
this.measurePos = 0;
|
|
7321
|
+
this.maxMeasurePos = 0;
|
|
7322
|
+
this.hierarchyCount = 0;
|
|
7323
|
+
this.actualText = '';
|
|
7324
|
+
this.timeOutObj = undefined;
|
|
7325
|
+
};
|
|
7254
7326
|
Render.prototype.refreshHeader = function () {
|
|
7255
7327
|
if (this.parent.enableVirtualization) {
|
|
7256
7328
|
var mHdr = this.parent.element.querySelector('.' + MOVABLEHEADER_DIV);
|
|
@@ -7452,9 +7524,9 @@ var Render = /** @__PURE__ @class */ (function () {
|
|
|
7452
7524
|
this.parent.renderReactTemplates(); /* eslint-disable-line */
|
|
7453
7525
|
}
|
|
7454
7526
|
if (this.parent.isInitial) {
|
|
7527
|
+
this.parent.isInitial = false;
|
|
7455
7528
|
this.parent.refreshData();
|
|
7456
7529
|
}
|
|
7457
|
-
this.parent.isInitial = false;
|
|
7458
7530
|
this.parent.notify(contentReady, {});
|
|
7459
7531
|
};
|
|
7460
7532
|
Render.prototype.setFocusOnLastCell = function () {
|
|
@@ -8270,7 +8342,7 @@ var Render = /** @__PURE__ @class */ (function () {
|
|
|
8270
8342
|
if (cell.isSum) {
|
|
8271
8343
|
tCell.classList.add(SUMMARY);
|
|
8272
8344
|
}
|
|
8273
|
-
var isGrandSum = (isNullOrUndefined(cell.isGrandSum) && this.parent.
|
|
8345
|
+
var isGrandSum = (isNullOrUndefined(cell.isGrandSum) && (!isNullOrUndefined(this.parent.olapEngineModule) && this.parent.olapEngineModule.olapValueAxis === 'column') && this.parent.dataType === 'olap' &&
|
|
8274
8346
|
((this.colGrandPos - this.parent.dataSourceSettings.values.length) < Number(tCell.getAttribute('aria-colindex'))));
|
|
8275
8347
|
if (cell.isGrandSum || (isGrandSum || this.colGrandPos === Number(tCell.getAttribute('aria-colindex'))) || this.rowGrandPos === Number(tCell.getAttribute('index'))) {
|
|
8276
8348
|
tCell.classList.add('e-gtot');
|
|
@@ -8411,6 +8483,12 @@ var Render = /** @__PURE__ @class */ (function () {
|
|
|
8411
8483
|
}
|
|
8412
8484
|
lvlPos++;
|
|
8413
8485
|
}
|
|
8486
|
+
if (this.parent.dataSourceSettings.grandTotalsPosition === 'Top' && (!isNullOrUndefined(this.parent.olapEngineModule) && this.parent.olapEngineModule.olapValueAxis === 'row') && this.parent.dataType === 'olap' &&
|
|
8487
|
+
(cell.valueSort.levelName.toString()).indexOf(this.parent.localeObj.getConstant('grandTotal') + this.parent.dataSourceSettings.valueSortSettings.headerDelimiter) === 0) {
|
|
8488
|
+
tCell.appendChild(createElement('span', {
|
|
8489
|
+
className: NEXTSPAN,
|
|
8490
|
+
}));
|
|
8491
|
+
}
|
|
8414
8492
|
if (cell.memberType === 3 && cell.level === -1 && Object.keys(this.lvlCollection).length > 1) {
|
|
8415
8493
|
tCell.appendChild(createElement('span', {
|
|
8416
8494
|
className: NEXTSPAN,
|
|
@@ -8723,8 +8801,8 @@ var Render = /** @__PURE__ @class */ (function () {
|
|
|
8723
8801
|
if (this.parent.currentView !== 'Chart') {
|
|
8724
8802
|
if (this.gridSettings.height === 'auto' && parHeight && this.parent.element.querySelector('.' + GRID_HEADER)) {
|
|
8725
8803
|
var rowColHeight = this.parent.element.querySelector('.' + GRID_HEADER).offsetHeight;
|
|
8726
|
-
var gBarHeight = rowColHeight + (this.parent.element.querySelector('.' +
|
|
8727
|
-
this.parent.element.querySelector('.' +
|
|
8804
|
+
var gBarHeight = rowColHeight + (this.parent.element.querySelector('.' + GRID_GROUPING_BAR_CLASS) ?
|
|
8805
|
+
this.parent.element.querySelector('.' + GRID_GROUPING_BAR_CLASS).offsetHeight : 0);
|
|
8728
8806
|
var toolBarHeight = this.parent.element.querySelector('.' + GRID_TOOLBAR) ? 42 : 0;
|
|
8729
8807
|
gridHeight = parHeight - (gBarHeight + toolBarHeight) - 1;
|
|
8730
8808
|
gridHeight = gridHeight < 40 ? 40 : gridHeight;
|
|
@@ -8936,7 +9014,7 @@ var Render = /** @__PURE__ @class */ (function () {
|
|
|
8936
9014
|
return this.parent.localeObj.getConstant('total') + ' ' + this.parent.localeObj.getConstant(this.parent.engineModule.fieldList[cellInfo.value.toString()].aggregateType)
|
|
8937
9015
|
+ ' ' + this.parent.localeObj.getConstant('of') + ' ' + cellInfo.value.toString();
|
|
8938
9016
|
}
|
|
8939
|
-
else if (values.length === 1) {
|
|
9017
|
+
else if (values.length === 1 && this.parent.dataSourceSettings.rows.length === 0) {
|
|
8940
9018
|
return this.parent.localeObj.getConstant('total') + ' ' + this.parent.localeObj.getConstant(values[values.length - 1].type)
|
|
8941
9019
|
+ ' ' + this.parent.localeObj.getConstant('of') + ' ' + (!isNullOrUndefined(values[values.length - 1].caption) ? values[values.length - 1].caption : values[values.length - 1].name);
|
|
8942
9020
|
}
|
|
@@ -8958,7 +9036,9 @@ var Render = /** @__PURE__ @class */ (function () {
|
|
|
8958
9036
|
};
|
|
8959
9037
|
/* eslint-disable */
|
|
8960
9038
|
Render.prototype.excelColumnEvent = function (args) {
|
|
8961
|
-
(
|
|
9039
|
+
if (this.parent.dataSourceSettings.columns.length === 0 && this.parent.dataSourceSettings.valueAxis === 'column') {
|
|
9040
|
+
(args.cell).value = this.getValidHeader(args, 'column');
|
|
9041
|
+
}
|
|
8962
9042
|
if (args.gridCell !== undefined && args.gridCell.column.width === 'auto') {
|
|
8963
9043
|
this.parent.lastColumn = args.gridCell.column;
|
|
8964
9044
|
args.gridCell.column.width = args.gridCell.column.minWidth;
|
|
@@ -8967,7 +9047,9 @@ var Render = /** @__PURE__ @class */ (function () {
|
|
|
8967
9047
|
this.parent.trigger(excelHeaderQueryCellInfo, args);
|
|
8968
9048
|
};
|
|
8969
9049
|
Render.prototype.pdfColumnEvent = function (args) {
|
|
8970
|
-
(
|
|
9050
|
+
if (this.parent.dataSourceSettings.columns.length === 0 && this.parent.dataSourceSettings.valueAxis === 'column') {
|
|
9051
|
+
(args.cell).value = this.getValidHeader(args, 'column');
|
|
9052
|
+
}
|
|
8971
9053
|
if (args.gridCell !== undefined && args.gridCell.column.width === 'auto') {
|
|
8972
9054
|
this.parent.lastColumn = args.gridCell.column;
|
|
8973
9055
|
args.gridCell.column.width = args.gridCell.column.minWidth;
|
|
@@ -9008,7 +9090,9 @@ var Render = /** @__PURE__ @class */ (function () {
|
|
|
9008
9090
|
}
|
|
9009
9091
|
}
|
|
9010
9092
|
args = this.exportContentEvent(args);
|
|
9011
|
-
|
|
9093
|
+
if (this.parent.dataSourceSettings.rows.length === 0 && this.parent.dataSourceSettings.valueAxis === 'row') {
|
|
9094
|
+
args.value = args.column.field === '0.formattedText' ? this.getValidHeader(args, 'row') : args.value;
|
|
9095
|
+
}
|
|
9012
9096
|
this.parent.trigger(excelQueryCellInfo, args);
|
|
9013
9097
|
};
|
|
9014
9098
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
@@ -9032,7 +9116,9 @@ var Render = /** @__PURE__ @class */ (function () {
|
|
|
9032
9116
|
}
|
|
9033
9117
|
args.style = { paragraphIndent: level * 10 };
|
|
9034
9118
|
this.lastSpan = isValueCell ? this.lastSpan : level;
|
|
9035
|
-
|
|
9119
|
+
if (this.parent.dataSourceSettings.rows.length === 0 && this.parent.dataSourceSettings.valueAxis === 'row') {
|
|
9120
|
+
args.value = this.getValidHeader(args, 'row');
|
|
9121
|
+
}
|
|
9036
9122
|
}
|
|
9037
9123
|
this.parent.trigger(pdfQueryCellInfo, args);
|
|
9038
9124
|
};
|
|
@@ -10451,7 +10537,6 @@ var FilterDialog = /** @__PURE__ @class */ (function () {
|
|
|
10451
10537
|
if (_this.allowExcelLikeFilter) {
|
|
10452
10538
|
_this.dialogPopUp.element.querySelector('.e-dlg-closeicon-btn').focus();
|
|
10453
10539
|
}
|
|
10454
|
-
_this.parent.control.pivotButtonModule.memberTreeView = _this.parent.filterDialog.memberTreeView;
|
|
10455
10540
|
_this.memberTreeView.nodeChecked =
|
|
10456
10541
|
_this.parent.control.pivotButtonModule.nodeStateModified.bind(_this.parent.control.pivotButtonModule);
|
|
10457
10542
|
_this.allMemberSelect.nodeChecked =
|
|
@@ -11467,6 +11552,15 @@ var FilterDialog = /** @__PURE__ @class */ (function () {
|
|
|
11467
11552
|
if (this.dropMenu && !this.dropMenu.isDestroyed) {
|
|
11468
11553
|
this.dropMenu.destroy();
|
|
11469
11554
|
}
|
|
11555
|
+
if (this.memberTreeView && !this.memberTreeView.isDestroyed) {
|
|
11556
|
+
this.memberTreeView.destroy();
|
|
11557
|
+
}
|
|
11558
|
+
if (this.allMemberSelect && !this.allMemberSelect.isDestroyed) {
|
|
11559
|
+
this.allMemberSelect.destroy();
|
|
11560
|
+
}
|
|
11561
|
+
if (this.editorSearch && !this.editorSearch.isDestroyed) {
|
|
11562
|
+
this.editorSearch.destroy();
|
|
11563
|
+
}
|
|
11470
11564
|
if (document.getElementById(this.parent.parentID + '_LevelDiv-popup')) {
|
|
11471
11565
|
remove(document.getElementById(this.parent.parentID + '_LevelDiv-popup'));
|
|
11472
11566
|
}
|
|
@@ -11475,11 +11569,24 @@ var FilterDialog = /** @__PURE__ @class */ (function () {
|
|
|
11475
11569
|
FilterDialog.prototype.removeFilterDialog = function () {
|
|
11476
11570
|
if (this.dialogPopUp && !this.dialogPopUp.isDestroyed) {
|
|
11477
11571
|
this.dialogPopUp.destroy();
|
|
11572
|
+
setTimeout(this.setFocus.bind(this));
|
|
11478
11573
|
}
|
|
11479
11574
|
if (document.getElementById(this.parent.parentID + '_EditorTreeView')) {
|
|
11480
11575
|
remove(document.getElementById(this.parent.parentID + '_EditorTreeView'));
|
|
11481
11576
|
}
|
|
11482
11577
|
};
|
|
11578
|
+
FilterDialog.prototype.setFocus = function () {
|
|
11579
|
+
if (this.parent.control.pivotButtonModule.parentElement) {
|
|
11580
|
+
var pivotButtons = [].slice.call(this.parent.control.pivotButtonModule.parentElement.querySelectorAll('.e-pivot-button'));
|
|
11581
|
+
for (var _i = 0, pivotButtons_1 = pivotButtons; _i < pivotButtons_1.length; _i++) {
|
|
11582
|
+
var item = pivotButtons_1[_i];
|
|
11583
|
+
if (item.getAttribute('data-uid') === this.parent.control.pivotButtonModule.fieldName) {
|
|
11584
|
+
item.focus();
|
|
11585
|
+
break;
|
|
11586
|
+
}
|
|
11587
|
+
}
|
|
11588
|
+
}
|
|
11589
|
+
};
|
|
11483
11590
|
return FilterDialog;
|
|
11484
11591
|
}());
|
|
11485
11592
|
|
|
@@ -12196,6 +12303,9 @@ var DataSourceSettings = /** @__PURE__ @class */ (function (_super) {
|
|
|
12196
12303
|
__decorate$1([
|
|
12197
12304
|
Property(true)
|
|
12198
12305
|
], DataSourceSettings.prototype, "showGrandTotals", void 0);
|
|
12306
|
+
__decorate$1([
|
|
12307
|
+
Property('Bottom')
|
|
12308
|
+
], DataSourceSettings.prototype, "grandTotalsPosition", void 0);
|
|
12199
12309
|
__decorate$1([
|
|
12200
12310
|
Property(true)
|
|
12201
12311
|
], DataSourceSettings.prototype, "showRowGrandTotals", void 0);
|
|
@@ -13453,142 +13563,159 @@ var DrillThroughDialog = /** @__PURE__ @class */ (function () {
|
|
|
13453
13563
|
this.clonedData.push(this.frameHeaderWithKeys(eventArgs.rawData[i]));
|
|
13454
13564
|
}
|
|
13455
13565
|
var actualText = eventArgs.currentCell.actualText.toString();
|
|
13456
|
-
|
|
13457
|
-
this.parent.
|
|
13458
|
-
|
|
13459
|
-
|
|
13460
|
-
|
|
13461
|
-
|
|
13462
|
-
|
|
13463
|
-
|
|
13464
|
-
|
|
13465
|
-
|
|
13466
|
-
|
|
13467
|
-
|
|
13468
|
-
|
|
13469
|
-
|
|
13470
|
-
|
|
13471
|
-
|
|
13472
|
-
|
|
13473
|
-
|
|
13474
|
-
|
|
13475
|
-
|
|
13476
|
-
|
|
13477
|
-
|
|
13478
|
-
|
|
13479
|
-
|
|
13480
|
-
|
|
13481
|
-
|
|
13482
|
-
|
|
13483
|
-
|
|
13484
|
-
|
|
13485
|
-
|
|
13486
|
-
|
|
13487
|
-
|
|
13488
|
-
|
|
13489
|
-
previousPosition.push(_this.gridIndexObjects[value]);
|
|
13490
|
-
}
|
|
13491
|
-
var count = Object.keys(_this.gridIndexObjects).length;
|
|
13492
|
-
var addItems = [];
|
|
13493
|
-
var prevItems = [];
|
|
13494
|
-
var index = 0;
|
|
13495
|
-
/* eslint-disable @typescript-eslint/dot-notation */
|
|
13496
|
-
for (var _a = 0, _b = _this.drillThroughGrid.dataSource; _a < _b.length; _a++) {
|
|
13497
|
-
var item = _b[_a];
|
|
13498
|
-
if (isNullOrUndefined(item['__index']) || item['__index'] === '') {
|
|
13499
|
-
for (var _c = 0, _d = _this.engine.fields; _c < _d.length; _c++) {
|
|
13500
|
-
var field = _d[_c];
|
|
13501
|
-
if (isNullOrUndefined(item[field])) {
|
|
13502
|
-
delete item[field];
|
|
13503
|
-
}
|
|
13504
|
-
}
|
|
13505
|
-
delete item['__index'];
|
|
13506
|
-
addItems.push(item);
|
|
13566
|
+
try {
|
|
13567
|
+
if (this.parent.currentView === 'Table' && this.engine.fieldList[actualText].aggregateType !== 'Count' && this.parent.editSettings.allowInlineEditing &&
|
|
13568
|
+
this.parent.editSettings.allowEditing && eventArgs.rawData.length === 1 &&
|
|
13569
|
+
this.engine.fieldList[actualText].aggregateType !== 'DistinctCount' && typeof (eventArgs.rawData[0][actualText]) !== 'string') {
|
|
13570
|
+
this.parent.actionObj.actionName = editRecord;
|
|
13571
|
+
if (this.parent.actionBeginMethod()) {
|
|
13572
|
+
return;
|
|
13573
|
+
}
|
|
13574
|
+
this.editCell(eventArgs);
|
|
13575
|
+
}
|
|
13576
|
+
else {
|
|
13577
|
+
this.removeDrillThroughDialog();
|
|
13578
|
+
var drillThroughDialog = createElement('div', {
|
|
13579
|
+
id: this.parent.element.id + '_drillthrough',
|
|
13580
|
+
className: DRILLTHROUGH_DIALOG
|
|
13581
|
+
});
|
|
13582
|
+
this.parent.element.appendChild(drillThroughDialog);
|
|
13583
|
+
this.dialogPopUp = new Dialog({
|
|
13584
|
+
animationSettings: { effect: 'Fade' },
|
|
13585
|
+
allowDragging: false,
|
|
13586
|
+
header: this.parent.localeObj.getConstant('details'),
|
|
13587
|
+
content: this.createDrillThroughGrid(eventArgs),
|
|
13588
|
+
beforeOpen: function () {
|
|
13589
|
+
_this.drillThroughGrid.setProperties({
|
|
13590
|
+
dataSource: _this.parent.editSettings.allowEditing ?
|
|
13591
|
+
_this.dataWithPrimarykey(eventArgs) : _this.gridData,
|
|
13592
|
+
height: !_this.parent.editSettings.allowEditing ? 300 : 220
|
|
13593
|
+
}, false);
|
|
13594
|
+
},
|
|
13595
|
+
beforeClose: function () {
|
|
13596
|
+
if (_this.parent.editSettings.allowEditing && _this.isUpdated) {
|
|
13597
|
+
if (_this.parent.dataSourceSettings.type === 'CSV') {
|
|
13598
|
+
_this.updateData(_this.drillThroughGrid.dataSource);
|
|
13507
13599
|
}
|
|
13508
|
-
|
|
13509
|
-
|
|
13510
|
-
|
|
13511
|
-
|
|
13600
|
+
var gridIndexObjectsValue = Object.keys(_this.gridIndexObjects);
|
|
13601
|
+
var previousPosition = [];
|
|
13602
|
+
for (var _i = 0, gridIndexObjectsValue_1 = gridIndexObjectsValue; _i < gridIndexObjectsValue_1.length; _i++) {
|
|
13603
|
+
var value = gridIndexObjectsValue_1[_i];
|
|
13604
|
+
previousPosition.push(_this.gridIndexObjects[value]);
|
|
13512
13605
|
}
|
|
13513
|
-
|
|
13514
|
-
|
|
13606
|
+
var count = Object.keys(_this.gridIndexObjects).length;
|
|
13607
|
+
var addItems = [];
|
|
13608
|
+
var prevItems = [];
|
|
13609
|
+
var index = 0;
|
|
13610
|
+
/* eslint-disable @typescript-eslint/dot-notation */
|
|
13611
|
+
for (var _a = 0, _b = _this.drillThroughGrid.dataSource; _a < _b.length; _a++) {
|
|
13612
|
+
var item = _b[_a];
|
|
13613
|
+
if (isNullOrUndefined(item['__index']) || item['__index'] === '') {
|
|
13614
|
+
for (var _c = 0, _d = _this.engine.fields; _c < _d.length; _c++) {
|
|
13615
|
+
var field = _d[_c];
|
|
13616
|
+
if (isNullOrUndefined(item[field])) {
|
|
13617
|
+
delete item[field];
|
|
13618
|
+
}
|
|
13619
|
+
}
|
|
13515
13620
|
delete item['__index'];
|
|
13621
|
+
addItems.push(item);
|
|
13516
13622
|
}
|
|
13517
|
-
if (
|
|
13518
|
-
delete _this.
|
|
13623
|
+
else if (count > 0) {
|
|
13624
|
+
delete _this.gridIndexObjects[item['__index'].toString()];
|
|
13625
|
+
prevItems.push(item);
|
|
13626
|
+
count--;
|
|
13519
13627
|
}
|
|
13628
|
+
if (_this.parent.dataSourceSettings.mode === 'Server') {
|
|
13629
|
+
if (item['__index']) {
|
|
13630
|
+
delete item['__index'];
|
|
13631
|
+
}
|
|
13632
|
+
if (_this.gridData[index]['__index']) {
|
|
13633
|
+
delete _this.gridData[index]['__index'];
|
|
13634
|
+
}
|
|
13635
|
+
}
|
|
13636
|
+
index++;
|
|
13520
13637
|
}
|
|
13521
|
-
|
|
13522
|
-
|
|
13523
|
-
|
|
13524
|
-
|
|
13525
|
-
|
|
13526
|
-
|
|
13527
|
-
|
|
13528
|
-
|
|
13529
|
-
|
|
13530
|
-
|
|
13531
|
-
|
|
13532
|
-
|
|
13533
|
-
|
|
13534
|
-
|
|
13638
|
+
count = 0;
|
|
13639
|
+
if (_this.parent.dataSourceSettings.mode === 'Server') {
|
|
13640
|
+
var gridIndex = []; /* eslint-disable-line */
|
|
13641
|
+
var keys = Object.keys(_this.gridIndexObjects);
|
|
13642
|
+
for (var len = 0; len < keys.length; len++) {
|
|
13643
|
+
delete _this.parent.drillThroughValue.indexObject[_this.gridIndexObjects[keys[len]]];
|
|
13644
|
+
gridIndex.push({ Key: keys[len], Value: _this.gridIndexObjects[keys[len]] }); /* eslint-disable-line */
|
|
13645
|
+
}
|
|
13646
|
+
var indexObject = []; /* eslint-disable-line */
|
|
13647
|
+
keys = Object.keys(_this.parent.drillThroughValue.indexObject);
|
|
13648
|
+
for (var len = 0; len < keys.length; len++) {
|
|
13649
|
+
indexObject.push({ Key: keys[len], Value: _this.parent.drillThroughValue.indexObject[keys[len]] }); /* eslint-disable-line */
|
|
13650
|
+
}
|
|
13651
|
+
_this.parent.getEngine('updateRawData', null, null, null, null, null, null, null, { 'addedData': addItems, 'removedData': gridIndex, 'updatedData': prevItems, indexObject: indexObject });
|
|
13535
13652
|
}
|
|
13536
|
-
|
|
13537
|
-
|
|
13538
|
-
|
|
13539
|
-
|
|
13540
|
-
|
|
13541
|
-
|
|
13542
|
-
|
|
13543
|
-
|
|
13544
|
-
|
|
13545
|
-
|
|
13546
|
-
|
|
13653
|
+
else {
|
|
13654
|
+
var items = [];
|
|
13655
|
+
var data = (_this.parent.allowDataCompression && _this.parent.enableVirtualization) ?
|
|
13656
|
+
_this.parent.engineModule.actualData : _this.parent.engineModule.data;
|
|
13657
|
+
for (var _e = 0, _f = data; _e < _f.length; _e++) {
|
|
13658
|
+
var item = _f[_e];
|
|
13659
|
+
delete item['__index'];
|
|
13660
|
+
if (_this.gridIndexObjects[count.toString()] === undefined) {
|
|
13661
|
+
items.push(item);
|
|
13662
|
+
}
|
|
13663
|
+
count++;
|
|
13664
|
+
}
|
|
13665
|
+
/* eslint-enable @typescript-eslint/dot-notation */
|
|
13666
|
+
items = items.concat(addItems);
|
|
13667
|
+
var eventArgs_1 = {
|
|
13668
|
+
currentData: _this.drillThroughGrid.dataSource,
|
|
13669
|
+
previousData: _this.clonedData,
|
|
13670
|
+
previousPosition: previousPosition,
|
|
13671
|
+
cancel: false
|
|
13672
|
+
};
|
|
13673
|
+
_this.parent.trigger(editCompleted, eventArgs_1);
|
|
13674
|
+
if (!eventArgs_1.cancel) {
|
|
13675
|
+
_this.parent.setProperties({ dataSourceSettings: { dataSource: items } }, true);
|
|
13676
|
+
_this.engine.updateGridData(_this.parent.dataSourceSettings);
|
|
13677
|
+
_this.parent.pivotValues = _this.engine.pivotValues;
|
|
13547
13678
|
}
|
|
13548
|
-
count++;
|
|
13549
13679
|
}
|
|
13550
|
-
|
|
13551
|
-
|
|
13552
|
-
|
|
13553
|
-
|
|
13554
|
-
|
|
13555
|
-
|
|
13556
|
-
cancel: false
|
|
13680
|
+
_this.parent.actionObj.actionName = recordUpdated;
|
|
13681
|
+
var actionInfo = {
|
|
13682
|
+
editInfo: {
|
|
13683
|
+
type: _this.drillThroughGrid.editSettings.mode, action: 'Update', currentData: _this.drillThroughGrid.dataSource,
|
|
13684
|
+
previousData: _this.clonedData, previousPosition: previousPosition
|
|
13685
|
+
}
|
|
13557
13686
|
};
|
|
13558
|
-
_this.parent.
|
|
13559
|
-
if (!eventArgs_1.cancel) {
|
|
13560
|
-
_this.parent.setProperties({ dataSourceSettings: { dataSource: items } }, true);
|
|
13561
|
-
_this.engine.updateGridData(_this.parent.dataSourceSettings);
|
|
13562
|
-
_this.parent.pivotValues = _this.engine.pivotValues;
|
|
13563
|
-
}
|
|
13687
|
+
_this.parent.actionObj.actionInfo = actionInfo;
|
|
13564
13688
|
}
|
|
13565
|
-
|
|
13566
|
-
|
|
13567
|
-
|
|
13568
|
-
|
|
13569
|
-
|
|
13570
|
-
|
|
13571
|
-
|
|
13572
|
-
|
|
13573
|
-
|
|
13574
|
-
|
|
13575
|
-
|
|
13576
|
-
|
|
13577
|
-
|
|
13578
|
-
close: this.removeDrillThroughDialog.bind(this)
|
|
13579
|
-
});
|
|
13580
|
-
this.dialogPopUp.isStringTemplate = true;
|
|
13581
|
-
this.dialogPopUp.appendTo(drillThroughDialog);
|
|
13582
|
-
// this.dialogPopUp.element.querySelector('.e-dlg-header').innerHTML = this.parent.localeObj.getConstant('details');
|
|
13583
|
-
setStyleAttribute(this.dialogPopUp.element, { 'visibility': 'visible' });
|
|
13584
|
-
if (this.parent.editSettings.allowEditing) {
|
|
13585
|
-
this.drillthroughKeyboardModule = new KeyboardEvents(this.dialogPopUp.element, {
|
|
13586
|
-
keyAction: this.drillthroughKeyActionHandler.bind(this),
|
|
13587
|
-
keyConfigs: this.drillKeyConfigs,
|
|
13588
|
-
eventName: 'keydown'
|
|
13689
|
+
_this.isUpdated = false;
|
|
13690
|
+
_this.gridIndexObjects = {};
|
|
13691
|
+
},
|
|
13692
|
+
isModal: true,
|
|
13693
|
+
visible: true,
|
|
13694
|
+
showCloseIcon: true,
|
|
13695
|
+
locale: this.parent.locale,
|
|
13696
|
+
enableRtl: this.parent.enableRtl,
|
|
13697
|
+
width: this.parent.isAdaptive ? '100%' : '60%',
|
|
13698
|
+
position: { X: 'center', Y: 'center' },
|
|
13699
|
+
closeOnEscape: !this.parent.editSettings.allowEditing,
|
|
13700
|
+
target: document.body,
|
|
13701
|
+
close: this.removeDrillThroughDialog.bind(this)
|
|
13589
13702
|
});
|
|
13703
|
+
this.dialogPopUp.isStringTemplate = true;
|
|
13704
|
+
this.dialogPopUp.appendTo(drillThroughDialog);
|
|
13705
|
+
// this.dialogPopUp.element.querySelector('.e-dlg-header').innerHTML = this.parent.localeObj.getConstant('details');
|
|
13706
|
+
setStyleAttribute(this.dialogPopUp.element, { 'visibility': 'visible' });
|
|
13707
|
+
if (this.parent.editSettings.allowEditing) {
|
|
13708
|
+
this.drillthroughKeyboardModule = new KeyboardEvents(this.dialogPopUp.element, {
|
|
13709
|
+
keyAction: this.drillthroughKeyActionHandler.bind(this),
|
|
13710
|
+
keyConfigs: this.drillKeyConfigs,
|
|
13711
|
+
eventName: 'keydown'
|
|
13712
|
+
});
|
|
13713
|
+
}
|
|
13590
13714
|
}
|
|
13591
13715
|
}
|
|
13716
|
+
catch (execption) {
|
|
13717
|
+
this.parent.actionFailureMethod(execption);
|
|
13718
|
+
}
|
|
13592
13719
|
};
|
|
13593
13720
|
DrillThroughDialog.prototype.editCell = function (eventArgs) {
|
|
13594
13721
|
var _this = this;
|
|
@@ -13604,6 +13731,10 @@ var DrillThroughDialog = /** @__PURE__ @class */ (function () {
|
|
|
13604
13731
|
if (eventArgs.currentCell.actualText in previousData) {
|
|
13605
13732
|
currentData[eventArgs.currentCell.actualText] = eventArgs.currentCell.actualValue;
|
|
13606
13733
|
}
|
|
13734
|
+
var actionInfo = {
|
|
13735
|
+
editInfo: { type: 'Inline editing', action: 'update', data: this.gridData }
|
|
13736
|
+
};
|
|
13737
|
+
this.parent.actionObj.actionInfo = actionInfo;
|
|
13607
13738
|
this.numericTextBox = new NumericTextBox({
|
|
13608
13739
|
value: cellValue,
|
|
13609
13740
|
enableRtl: this.parent.enableRtl,
|
|
@@ -13668,6 +13799,10 @@ var DrillThroughDialog = /** @__PURE__ @class */ (function () {
|
|
|
13668
13799
|
};
|
|
13669
13800
|
DrillThroughDialog.prototype.removeDrillThroughDialog = function () {
|
|
13670
13801
|
if (this.dialogPopUp && !this.dialogPopUp.isDestroyed) {
|
|
13802
|
+
this.parent.actionObj.actionName = drillThroughClosed;
|
|
13803
|
+
if (this.parent.actionObj.actionName) {
|
|
13804
|
+
this.parent.actionCompleteMethod();
|
|
13805
|
+
}
|
|
13671
13806
|
this.dialogPopUp.destroy();
|
|
13672
13807
|
}
|
|
13673
13808
|
var dialogElement = document.getElementById(this.parent.element.id + '_drillthrough');
|
|
@@ -13680,6 +13815,7 @@ var DrillThroughDialog = /** @__PURE__ @class */ (function () {
|
|
|
13680
13815
|
};
|
|
13681
13816
|
/* eslint-disable */
|
|
13682
13817
|
DrillThroughDialog.prototype.createDrillThroughGrid = function (eventArgs) {
|
|
13818
|
+
var _this = this;
|
|
13683
13819
|
var drillThroughBody = createElement('div', { id: this.parent.element.id + '_drillthroughbody', className: DRILLTHROUGH_BODY_CLASS });
|
|
13684
13820
|
var drillThroughBodyHeader = createElement('div', {
|
|
13685
13821
|
id: this.parent.element.id +
|
|
@@ -13757,31 +13893,53 @@ var DrillThroughDialog = /** @__PURE__ @class */ (function () {
|
|
|
13757
13893
|
}
|
|
13758
13894
|
if (this.parent.editSettings.allowEditing) {
|
|
13759
13895
|
Grid.Inject(Edit, Page);
|
|
13760
|
-
|
|
13761
|
-
|
|
13762
|
-
this.drillThroughGrid.
|
|
13763
|
-
|
|
13764
|
-
|
|
13896
|
+
try {
|
|
13897
|
+
this.drillThroughGrid.editSettings = this.parent.editSettings;
|
|
13898
|
+
this.drillThroughGrid.actionBegin = function (args) {
|
|
13899
|
+
var actionName = (args.requestType == 'save') ? saveEditedRecords : (args.requestType == 'add') ? addNewRecord : (args.requestType == 'delete') ? removeRecord : '';
|
|
13900
|
+
_this.parent.actionObj.actionName = actionName;
|
|
13901
|
+
if (_this.parent.actionObj.actionName) {
|
|
13902
|
+
if (_this.parent.actionBeginMethod()) {
|
|
13903
|
+
return;
|
|
13904
|
+
}
|
|
13905
|
+
}
|
|
13906
|
+
};
|
|
13907
|
+
if (this.parent.editSettings.allowCommandColumns) {
|
|
13908
|
+
this.drillThroughGrid.editSettings.mode = 'Normal';
|
|
13909
|
+
this.drillThroughGrid.editSettings.allowEditOnDblClick = false;
|
|
13910
|
+
Grid.Inject(CommandColumn);
|
|
13911
|
+
this.drillThroughGrid.columns.push({
|
|
13912
|
+
headerText: this.parent.localeObj.getConstant('manageRecords'), width: 160, showInColumnChooser: false,
|
|
13913
|
+
commands: [
|
|
13914
|
+
{ type: 'Edit', buttonOption: { iconCss: ' e-icons e-edit', cssClass: 'e-flat' } },
|
|
13915
|
+
{ type: 'Delete', buttonOption: { iconCss: 'e-icons e-delete', cssClass: 'e-flat' } },
|
|
13916
|
+
{ type: 'Save', buttonOption: { iconCss: 'e-icons e-update', cssClass: 'e-flat' } },
|
|
13917
|
+
{ type: 'Cancel', buttonOption: { iconCss: 'e-icons e-cancel-icon', cssClass: 'e-flat' } }
|
|
13918
|
+
]
|
|
13919
|
+
});
|
|
13920
|
+
}
|
|
13921
|
+
else {
|
|
13922
|
+
this.drillThroughGrid.editSettings.allowEditOnDblClick = this.parent.editSettings.allowEditOnDblClick;
|
|
13923
|
+
}
|
|
13765
13924
|
this.drillThroughGrid.columns.push({
|
|
13766
|
-
|
|
13767
|
-
commands: [
|
|
13768
|
-
{ type: 'Edit', buttonOption: { iconCss: ' e-icons e-edit', cssClass: 'e-flat' } },
|
|
13769
|
-
{ type: 'Delete', buttonOption: { iconCss: 'e-icons e-delete', cssClass: 'e-flat' } },
|
|
13770
|
-
{ type: 'Save', buttonOption: { iconCss: 'e-icons e-update', cssClass: 'e-flat' } },
|
|
13771
|
-
{ type: 'Cancel', buttonOption: { iconCss: 'e-icons e-cancel-icon', cssClass: 'e-flat' } }
|
|
13772
|
-
]
|
|
13925
|
+
field: '__index', visible: false, isPrimaryKey: true, type: 'string', showInColumnChooser: false
|
|
13773
13926
|
});
|
|
13774
13927
|
}
|
|
13775
|
-
|
|
13776
|
-
this.
|
|
13928
|
+
catch (execption) {
|
|
13929
|
+
this.parent.actionFailureMethod(execption);
|
|
13777
13930
|
}
|
|
13778
|
-
this.drillThroughGrid.columns.push({
|
|
13779
|
-
field: '__index', visible: false, isPrimaryKey: true, type: 'string', showInColumnChooser: false
|
|
13780
|
-
});
|
|
13781
13931
|
this.drillThroughGrid.actionComplete = function (args) {
|
|
13782
13932
|
if (args.requestType === 'batchsave' || args.requestType === 'save' || args.requestType === 'delete') {
|
|
13783
13933
|
dialogModule.isUpdated = true;
|
|
13784
13934
|
}
|
|
13935
|
+
_this.parent.actionObj.actionName = _this.parent.getActionCompleteName();
|
|
13936
|
+
var actionInfo = {
|
|
13937
|
+
editInfo: { type: _this.drillThroughGrid.editSettings.mode, action: args.requestType, data: _this.gridData }
|
|
13938
|
+
};
|
|
13939
|
+
_this.parent.actionObj.actionInfo = actionInfo;
|
|
13940
|
+
if (_this.parent.actionObj.actionName) {
|
|
13941
|
+
_this.parent.actionCompleteMethod();
|
|
13942
|
+
}
|
|
13785
13943
|
if ((dialogModule.drillThroughGrid.editSettings.mode === 'Normal' && args.requestType === 'save' &&
|
|
13786
13944
|
dialogModule.drillThroughGrid.element.querySelectorAll('.e-tbar-btn:hover').length > 0 &&
|
|
13787
13945
|
!dialogModule.parent.editSettings.allowCommandColumns) || args.requestType === 'batchsave') {
|
|
@@ -13975,7 +14133,7 @@ var DrillThrough = /** @__PURE__ @class */ (function () {
|
|
|
13975
14133
|
* @hidden
|
|
13976
14134
|
*/
|
|
13977
14135
|
DrillThrough.prototype.getModuleName = function () {
|
|
13978
|
-
return '
|
|
14136
|
+
return 'drillThrough';
|
|
13979
14137
|
};
|
|
13980
14138
|
DrillThrough.prototype.addInternalEvents = function () {
|
|
13981
14139
|
this.parent.on(contentReady, this.wireEvents, this);
|
|
@@ -14183,7 +14341,7 @@ var PivotChart = /** @__PURE__ @class */ (function () {
|
|
|
14183
14341
|
* @private
|
|
14184
14342
|
*/
|
|
14185
14343
|
PivotChart.prototype.getModuleName = function () {
|
|
14186
|
-
return '
|
|
14344
|
+
return 'pivotChart';
|
|
14187
14345
|
};
|
|
14188
14346
|
/* eslint-disable */
|
|
14189
14347
|
PivotChart.prototype.loadChart = function (parent, chartSettings) {
|
|
@@ -14378,7 +14536,9 @@ var PivotChart = /** @__PURE__ @class */ (function () {
|
|
|
14378
14536
|
this.maxLevel = currrentLevel > this.maxLevel ? currrentLevel : this.maxLevel;
|
|
14379
14537
|
var name_1 = this.parent.dataType === 'olap' ? firstRowCell.formattedText :
|
|
14380
14538
|
(firstRowCell.actualText ? firstRowCell.actualText.toString() : firstRowCell.formattedText.toString());
|
|
14381
|
-
var
|
|
14539
|
+
var values = this.engineModule.fieldList[this.currentMeasure];
|
|
14540
|
+
var text = this.parent.dataSourceSettings.rows.length === 0 ? this.parent.localeObj.getConstant('total') + ' ' + this.parent.localeObj.getConstant(values.aggregateType) + ' ' +
|
|
14541
|
+
this.parent.localeObj.getConstant('of') + ' ' + (!isNullOrUndefined(values.caption) ? values.caption : values.name) : firstRowCell.formattedText ? firstRowCell.formattedText.toString() : name_1;
|
|
14382
14542
|
var caption = (firstRowCell.hasChild && !firstRowCell.isNamedSet) ?
|
|
14383
14543
|
((firstRowCell.isDrilled ? ' - ' : ' + ') + text) : text;
|
|
14384
14544
|
var levelName = tupInfo ? tupInfo.uNameCollection : firstRowCell.valueSort.levelName.toString();
|
|
@@ -14554,7 +14714,9 @@ var PivotChart = /** @__PURE__ @class */ (function () {
|
|
|
14554
14714
|
this.chartSettings.palettes = currentSeries.palettes;
|
|
14555
14715
|
}
|
|
14556
14716
|
for (var i = 0; i < this.columnGroupObject[key].length; i++) {
|
|
14557
|
-
|
|
14717
|
+
var values = this.engineModule.fieldList[this.currentMeasure];
|
|
14718
|
+
this.columnGroupObject[key][i].x = (this.parent.dataSourceSettings.rows.length === 0 && !this.chartSettings.showMultiLevelLabels) ? this.parent.localeObj.getConstant('total') + ' ' + this.parent.localeObj.getConstant(values.aggregateType) + ' ' +
|
|
14719
|
+
this.parent.localeObj.getConstant('of') + ' ' + (!isNullOrUndefined(values.caption) ? values.caption : values.name) : this.columnGroupObject[key][i].x === '' ? this.parent.localeObj.getConstant('blank') : this.columnGroupObject[key][i].x;
|
|
14558
14720
|
}
|
|
14559
14721
|
currentSeries.dataSource = this.columnGroupObject[key];
|
|
14560
14722
|
currentSeries.xName = 'x';
|
|
@@ -14710,7 +14872,7 @@ var PivotChart = /** @__PURE__ @class */ (function () {
|
|
|
14710
14872
|
enableSmartLabels: this.chartSettings.enableSmartLabels,
|
|
14711
14873
|
center: this.chartSettings.pieCenter,
|
|
14712
14874
|
enableBorderOnMouseMove: this.chartSettings.enableBorderOnMouseMove,
|
|
14713
|
-
|
|
14875
|
+
highlightMode: this.chartSettings.highlightMode,
|
|
14714
14876
|
highlightPattern: this.chartSettings.highlightPattern,
|
|
14715
14877
|
titleStyle: this.chartSettings.titleStyle,
|
|
14716
14878
|
subTitle: this.chartSettings.subTitle,
|
|
@@ -14838,7 +15000,7 @@ var PivotChart = /** @__PURE__ @class */ (function () {
|
|
|
14838
15000
|
this.parent.chart.highlightPattern = this.parent.chartSettings.highlightPattern;
|
|
14839
15001
|
if (this.accumulationType.indexOf(type) > -1) {
|
|
14840
15002
|
this.parent.chart.enableBorderOnMouseMove = this.parent.chartSettings.enableBorderOnMouseMove;
|
|
14841
|
-
this.parent.chart.
|
|
15003
|
+
this.parent.chart.highlightMode = this.parent.chartSettings.highlightMode;
|
|
14842
15004
|
this.parent.chart.enableSmartLabels = this.parent.chartSettings.enableSmartLabels;
|
|
14843
15005
|
}
|
|
14844
15006
|
else {
|
|
@@ -14947,9 +15109,14 @@ var PivotChart = /** @__PURE__ @class */ (function () {
|
|
|
14947
15109
|
currentYAxis.labelFormat = currentYAxis.labelFormat ?
|
|
14948
15110
|
currentYAxis.labelFormat : (percentChart ? '' : (!resFormat ? format : 'N'));
|
|
14949
15111
|
currentYAxis.title = currentYAxis.title ? currentYAxis.title : measureAggregatedName;
|
|
14950
|
-
currentYAxis.
|
|
14951
|
-
|
|
14952
|
-
|
|
15112
|
+
currentYAxis.edgeLabelPlacement = this.chartSettings.primaryYAxis.edgeLabelPlacement ? this.chartSettings.primaryYAxis.edgeLabelPlacement : this.persistSettings.primaryYAxis.edgeLabelPlacement;
|
|
15113
|
+
if (this.chartSettings.chartSeries.type === 'Bar' || this.chartSettings.chartSeries.type === 'StackingBar' ||
|
|
15114
|
+
this.chartSettings.chartSeries.type === 'StackingBar100') {
|
|
15115
|
+
currentYAxis.plotOffsetRight = currentYAxis.plotOffsetRight ? currentYAxis.plotOffsetRight : 30;
|
|
15116
|
+
}
|
|
15117
|
+
else {
|
|
15118
|
+
currentYAxis.plotOffsetTop = currentYAxis.plotOffsetTop ? currentYAxis.plotOffsetTop : 30;
|
|
15119
|
+
}
|
|
14953
15120
|
if (!resFormat) {
|
|
14954
15121
|
currentYAxis.name = this.measuresNames[item.name] ? this.measuresNames[item.name] : item.name;
|
|
14955
15122
|
}
|
|
@@ -14996,6 +15163,7 @@ var PivotChart = /** @__PURE__ @class */ (function () {
|
|
|
14996
15163
|
currentYAxis = this.persistSettings.primaryYAxis ? this.frameObjectWithKeys(this.persistSettings.primaryYAxis) : currentYAxis;
|
|
14997
15164
|
currentYAxis.rowIndex = 0;
|
|
14998
15165
|
currentYAxis.columnIndex = 0;
|
|
15166
|
+
currentYAxis.edgeLabelPlacement = this.chartSettings.primaryYAxis.edgeLabelPlacement ? this.chartSettings.primaryYAxis.edgeLabelPlacement : this.persistSettings.primaryYAxis.edgeLabelPlacement;
|
|
14999
15167
|
if (!(this.chartSettings.chartSeries.type === 'Polar' || this.chartSettings.chartSeries.type === 'Radar')) {
|
|
15000
15168
|
currentYAxis.name = this.measuresNames[this.currentMeasure] ? this.measuresNames[this.currentMeasure] : this.currentMeasure;
|
|
15001
15169
|
}
|
|
@@ -15318,6 +15486,7 @@ var PivotChart = /** @__PURE__ @class */ (function () {
|
|
|
15318
15486
|
};
|
|
15319
15487
|
PivotChart.prototype.loaded = function (args) {
|
|
15320
15488
|
this.parent.isChartLoaded = true;
|
|
15489
|
+
var width = this.parent.grid ? this.parent.getGridWidthAsNumber().toString() : this.parent.getWidthAsNumber().toString();
|
|
15321
15490
|
if (this.parent.chart && this.parent.showGroupingBar && this.parent.groupingBarModule &&
|
|
15322
15491
|
this.parent.showFieldList && this.parent.currentView === 'Chart') {
|
|
15323
15492
|
this.parent.groupingBarModule.alignIcon();
|
|
@@ -15329,13 +15498,15 @@ var PivotChart = /** @__PURE__ @class */ (function () {
|
|
|
15329
15498
|
this.parent.element.querySelector('#' + this.parent.element.id + multilabelAxisName).setAttribute('cursor', 'pointer');
|
|
15330
15499
|
}
|
|
15331
15500
|
}
|
|
15332
|
-
if (
|
|
15333
|
-
|
|
15334
|
-
|
|
15335
|
-
|
|
15336
|
-
|
|
15337
|
-
|
|
15338
|
-
|
|
15501
|
+
if (this.parent.chartSettings.enableScrollOnMultiAxis && this.parent.chartSettings.enableMultipleAxis) {
|
|
15502
|
+
if (['Pie', 'Funnel', 'Pyramid', 'Doughnut', 'Radar', 'Polar'].indexOf(this.parent.chartSettings.chartSeries.type) >= 0) {
|
|
15503
|
+
this.parent.element.querySelector('.' + PIVOTCHART).style.overflow = 'visible';
|
|
15504
|
+
}
|
|
15505
|
+
else {
|
|
15506
|
+
this.parent.element.querySelector('.' + PIVOTCHART).style.overflow = 'auto';
|
|
15507
|
+
this.parent.element.querySelector('.' + PIVOTCHART).style.overflowX = 'hidden';
|
|
15508
|
+
}
|
|
15509
|
+
this.parent.element.querySelector('.' + PIVOTCHART).style.width = width + 'px';
|
|
15339
15510
|
}
|
|
15340
15511
|
this.parent.chart.height = ['Pie', 'Funnel', 'Pyramid', 'Doughnut', 'Radar', 'Polar'].indexOf(this.parent.chartSettings.chartSeries.type) < 0 &&
|
|
15341
15512
|
this.parent.chartSettings.enableScrollOnMultiAxis && this.parent.chartSettings.enableMultipleAxis &&
|
|
@@ -15556,6 +15727,11 @@ var PivotChart = /** @__PURE__ @class */ (function () {
|
|
|
15556
15727
|
offSetHeight = this.parent.getHeightAsNumber() - offSetVal;
|
|
15557
15728
|
}
|
|
15558
15729
|
if (!isNullOrUndefined(this.parent.getHeightAsNumber())) {
|
|
15730
|
+
var isNone = false;
|
|
15731
|
+
if (this.parent.element.querySelector('.e-chart-grouping-bar') !== null && this.parent.element.querySelector('.e-chart-grouping-bar').style.display.toLowerCase() === 'none') {
|
|
15732
|
+
isNone = true;
|
|
15733
|
+
this.parent.element.querySelector('.e-chart-grouping-bar').style.display = "block";
|
|
15734
|
+
}
|
|
15559
15735
|
if (this.parent.showToolbar && this.parent.showGroupingBar) {
|
|
15560
15736
|
height = (offSetHeight - (this.parent.element.querySelector('.e-pivot-toolbar') ?
|
|
15561
15737
|
this.parent.element.querySelector('.e-pivot-toolbar').clientHeight : 42) -
|
|
@@ -15573,6 +15749,9 @@ var PivotChart = /** @__PURE__ @class */ (function () {
|
|
|
15573
15749
|
else if ((this.parent.chart && parseInt(this.parent.chart.height, 10) < 200) || offSetHeight < 200) {
|
|
15574
15750
|
height = '200';
|
|
15575
15751
|
}
|
|
15752
|
+
if (isNone) {
|
|
15753
|
+
this.parent.element.querySelector('.e-chart-grouping-bar').style.display = "none";
|
|
15754
|
+
}
|
|
15576
15755
|
}
|
|
15577
15756
|
else {
|
|
15578
15757
|
height = 'auto';
|
|
@@ -17396,7 +17575,7 @@ var PivotAxis = /** @__PURE__ @class */ (function (_super) {
|
|
|
17396
17575
|
Property(0)
|
|
17397
17576
|
], PivotAxis.prototype, "plotOffset", void 0);
|
|
17398
17577
|
__decorate$3([
|
|
17399
|
-
Property('
|
|
17578
|
+
Property('Shift')
|
|
17400
17579
|
], PivotAxis.prototype, "edgeLabelPlacement", void 0);
|
|
17401
17580
|
__decorate$3([
|
|
17402
17581
|
Property('BetweenTicks')
|
|
@@ -18731,6 +18910,7 @@ var OlapEngine = /** @__PURE__ @class */ (function () {
|
|
|
18731
18910
|
this.updateTupCollection(customArgs.drillInfo.axis === 'row' ? rowTuples.length : columnTuples.length);
|
|
18732
18911
|
}
|
|
18733
18912
|
if (customArgs.action === 'down' ? customArgs.drillInfo.axis === 'column' : true) {
|
|
18913
|
+
this.olapValueAxis = isNullOrUndefined(this.getValueAxis(undefined, undefined)) ? 'column' : 'row';
|
|
18734
18914
|
this.frameColumnHeader(columnTuples);
|
|
18735
18915
|
if (!this.isPaging) {
|
|
18736
18916
|
this.performColumnSorting();
|
|
@@ -18785,6 +18965,7 @@ var OlapEngine = /** @__PURE__ @class */ (function () {
|
|
|
18785
18965
|
OlapEngine.prototype.frameRowHeader = function (tuples) {
|
|
18786
18966
|
this.headerGrouping = {};
|
|
18787
18967
|
this.lastLevel = [];
|
|
18968
|
+
var isGrandTotalAdd = true;
|
|
18788
18969
|
var position = this.pivotValues.length;
|
|
18789
18970
|
var pivotValues = [];
|
|
18790
18971
|
var valueContent = [];
|
|
@@ -18845,6 +19026,7 @@ var OlapEngine = /** @__PURE__ @class */ (function () {
|
|
|
18845
19026
|
var startTupPos = tupPos;
|
|
18846
19027
|
var pagingAllowFlag = true;
|
|
18847
19028
|
var lastMesPos = 0;
|
|
19029
|
+
var isGrandTotalTop = false;
|
|
18848
19030
|
while (tupPos < tuplesLength && pagingAllowFlag) {
|
|
18849
19031
|
var members = tuples[this.customArgs.action === 'down' ?
|
|
18850
19032
|
(tupPos - (this.customArgs.drillInfo.currentCell.ordinal + 1)) : tupPos].querySelectorAll('Member');
|
|
@@ -18899,35 +19081,25 @@ var OlapEngine = /** @__PURE__ @class */ (function () {
|
|
|
18899
19081
|
(allStartPos === (drillStartPos + 1) || this.tupRowInfo[tupPos].measurePosition === (drillStartPos + 1))))
|
|
18900
19082
|
: drillAllow;
|
|
18901
19083
|
var withoutAllAllow = (withoutAllStartPos > -1 && allCount > 0) ? (attrDrill || allStartPos > withoutAllEndPos) : true;
|
|
18902
|
-
|
|
19084
|
+
isGrandTotalTop = this.dataSourceSettings.grandTotalsPosition === 'Top' && this.olapRowValueIndex === 0 && this.olapValueAxis === 'row'
|
|
19085
|
+
&& this.dataSourceSettings.showGrandTotals && this.dataSourceSettings.showRowGrandTotals && (this.olapValueAxis === 'row' ? this.dataSourceSettings.rows.length > 1 : true);
|
|
19086
|
+
if (isGrandTotalTop && gTotals.length === 1) {
|
|
19087
|
+
gTotals = this.frameGrandTotalValues(tuples, gTotals, typeColl, measurePos);
|
|
19088
|
+
}
|
|
19089
|
+
if (members.length === allCount + (measure ? 1 : 0) && measure && !isGrandTotalTop) {
|
|
18903
19090
|
var levelName = 'Grand Total.' + members[measurePos].querySelector('Caption').textContent;
|
|
18904
|
-
|
|
18905
|
-
|
|
18906
|
-
|
|
18907
|
-
|
|
18908
|
-
formattedText: (typeColl[measurePos] === '3' &&
|
|
18909
|
-
this.dataFields[this.getUniqueName(members[measurePos].querySelector('UName').textContent)] &&
|
|
18910
|
-
this.dataFields[this.getUniqueName(members[measurePos].querySelector('UName').textContent)].caption) ?
|
|
18911
|
-
this.dataFields[this.getUniqueName(members[measurePos].querySelector('UName').textContent)].caption :
|
|
18912
|
-
members[measurePos].querySelector('Caption').textContent,
|
|
18913
|
-
hasChild: false,
|
|
18914
|
-
level: -1,
|
|
18915
|
-
rowIndex: position,
|
|
18916
|
-
index: [],
|
|
18917
|
-
ordinal: tupPos,
|
|
18918
|
-
colSpan: 1,
|
|
18919
|
-
rowSpan: 1,
|
|
18920
|
-
memberType: Number(typeColl[measurePos]),
|
|
18921
|
-
isDrilled: false,
|
|
18922
|
-
parentUniqueName: members[measurePos].querySelector('PARENT_UNIQUE_NAME') ?
|
|
18923
|
-
members[measurePos].querySelector('PARENT_UNIQUE_NAME').textContent : undefined,
|
|
18924
|
-
levelUniqueName: members[measurePos].querySelector('LName').textContent,
|
|
18925
|
-
hierarchy: members[measurePos].getAttribute('Hierarchy'),
|
|
18926
|
-
valueSort: { levelName: levelName, axis: members[measurePos].getAttribute('Hierarchy') }
|
|
18927
|
-
});
|
|
19091
|
+
var formattedText = (typeColl[measurePos] === '3' && this.dataFields[this.getUniqueName(members[measurePos].querySelector('UName').textContent)] &&
|
|
19092
|
+
this.dataFields[this.getUniqueName(members[measurePos].querySelector('UName').textContent)].caption) ? this.dataFields[this.getUniqueName(members[measurePos].querySelector('UName').textContent)].caption :
|
|
19093
|
+
members[measurePos].querySelector('Caption').textContent;
|
|
19094
|
+
gTotals = this.frameGrandTotalAxisSet(gTotals, this.getUniqueName(members[measurePos].querySelector('UName').textContent), formattedText, position, tupPos, Number(typeColl[measurePos]), members[measurePos].querySelector('PARENT_UNIQUE_NAME') ? members[measurePos].querySelector('PARENT_UNIQUE_NAME').textContent : undefined, members[measurePos].querySelector('LName').textContent, members[measurePos].getAttribute('Hierarchy'), { levelName: levelName, axis: members[measurePos].getAttribute('Hierarchy') });
|
|
18928
19095
|
gTotals[gTotals.length - 1].valueSort['Grand Total.' + members[measurePos].querySelector('Caption').textContent] = 1;
|
|
18929
19096
|
}
|
|
18930
19097
|
else if (!(allStartPos === 0 || (measurePos === 0 && allStartPos === 1)) && drillAllow && withoutAllAllow) {
|
|
19098
|
+
if (this.dataSourceSettings.grandTotalsPosition === 'Top' && isGrandTotalAdd && this.dataSourceSettings.showGrandTotals && (this.olapValueAxis === 'row' ? this.dataSourceSettings.rows.length > 1 : true)) {
|
|
19099
|
+
this.insertRowGrandTotal(gTotals, valueContent, pivotValues, tuples, position);
|
|
19100
|
+
position = this.pivotValues.length;
|
|
19101
|
+
isGrandTotalAdd = false;
|
|
19102
|
+
}
|
|
18931
19103
|
prevTupInfo = this.tupRowInfo[tupPos];
|
|
18932
19104
|
var lastPos = position;
|
|
18933
19105
|
var lastMemPos = memPos;
|
|
@@ -19018,6 +19190,11 @@ var OlapEngine = /** @__PURE__ @class */ (function () {
|
|
|
19018
19190
|
}
|
|
19019
19191
|
tupPos++;
|
|
19020
19192
|
}
|
|
19193
|
+
if (!(this.dataSourceSettings.grandTotalsPosition === 'Top') || (this.olapValueAxis === 'row' && this.dataSourceSettings.rows.length === 1 && this.dataSourceSettings.grandTotalsPosition === 'Top') || this.dataSourceSettings.rows.length === 0) {
|
|
19194
|
+
this.insertRowGrandTotal(gTotals, valueContent, pivotValues, tuples, position);
|
|
19195
|
+
}
|
|
19196
|
+
};
|
|
19197
|
+
OlapEngine.prototype.insertRowGrandTotal = function (gTotals, valueContent, pivotValues, tuples, position) {
|
|
19021
19198
|
if (gTotals.length > 1 && gTotals[0].memberType !== 3) {
|
|
19022
19199
|
gTotals[0].ordinal = -1;
|
|
19023
19200
|
}
|
|
@@ -19043,6 +19220,41 @@ var OlapEngine = /** @__PURE__ @class */ (function () {
|
|
|
19043
19220
|
this.updateRowEngine(pivotValues, valueContent, tuples.length);
|
|
19044
19221
|
this.onDemandDrillEngine = pivotValues;
|
|
19045
19222
|
}
|
|
19223
|
+
return gTotals;
|
|
19224
|
+
};
|
|
19225
|
+
OlapEngine.prototype.getValueAxis = function (valueAxis, valueIndex) {
|
|
19226
|
+
this.olapValueAxis = valueAxis;
|
|
19227
|
+
this.olapRowValueIndex = valueIndex;
|
|
19228
|
+
for (var i = 0; i < this.dataSourceSettings.rows.length; i++) {
|
|
19229
|
+
if (this.dataSourceSettings.rows[i].name === '[Measures]') {
|
|
19230
|
+
this.olapValueAxis = 'row';
|
|
19231
|
+
this.olapRowValueIndex = i;
|
|
19232
|
+
break;
|
|
19233
|
+
}
|
|
19234
|
+
}
|
|
19235
|
+
return this.olapValueAxis;
|
|
19236
|
+
};
|
|
19237
|
+
OlapEngine.prototype.frameGrandTotalAxisSet = function (gTotals, actualText, formattedText, rowIndex, ordinal, memberType, parentUniqueName, levelUniqueName, hierarchy, valueSort) {
|
|
19238
|
+
gTotals.push({
|
|
19239
|
+
axis: 'row',
|
|
19240
|
+
actualText: actualText,
|
|
19241
|
+
colIndex: 0,
|
|
19242
|
+
formattedText: formattedText,
|
|
19243
|
+
hasChild: false,
|
|
19244
|
+
level: -1,
|
|
19245
|
+
rowIndex: rowIndex,
|
|
19246
|
+
index: [],
|
|
19247
|
+
ordinal: ordinal,
|
|
19248
|
+
colSpan: 1,
|
|
19249
|
+
rowSpan: 1,
|
|
19250
|
+
memberType: memberType,
|
|
19251
|
+
isDrilled: false,
|
|
19252
|
+
parentUniqueName: parentUniqueName,
|
|
19253
|
+
levelUniqueName: levelUniqueName,
|
|
19254
|
+
hierarchy: hierarchy,
|
|
19255
|
+
valueSort: valueSort
|
|
19256
|
+
});
|
|
19257
|
+
return gTotals;
|
|
19046
19258
|
};
|
|
19047
19259
|
OlapEngine.prototype.getDepth = function (tupInfo, uniqueName, memberType) {
|
|
19048
19260
|
var memberPosition = tupInfo.uNameCollection.indexOf(uniqueName);
|
|
@@ -19283,6 +19495,53 @@ var OlapEngine = /** @__PURE__ @class */ (function () {
|
|
|
19283
19495
|
currTupCount--;
|
|
19284
19496
|
}
|
|
19285
19497
|
};
|
|
19498
|
+
OlapEngine.prototype.frameGrandTotalValues = function (tuples, gTotals, typeColl, measurePos) {
|
|
19499
|
+
var tupPos = 0;
|
|
19500
|
+
var lastAllStartPos;
|
|
19501
|
+
var lastAllCount;
|
|
19502
|
+
var availAllMember = false;
|
|
19503
|
+
var withoutAllEndPos = -1;
|
|
19504
|
+
var isGrandtoalDataAdd = false;
|
|
19505
|
+
var prevTupInfo;
|
|
19506
|
+
var isGrandTotalTop = false;
|
|
19507
|
+
while (tupPos < tuples.length && !isGrandtoalDataAdd) {
|
|
19508
|
+
var members = tuples[this.customArgs.action === 'down' ?
|
|
19509
|
+
(tupPos - (this.customArgs.drillInfo.currentCell.ordinal + 1)) : tupPos].querySelectorAll('Member');
|
|
19510
|
+
var allCount = this.tupRowInfo[tupPos].allCount;
|
|
19511
|
+
var allStartPos = this.tupRowInfo[tupPos].allStartPos;
|
|
19512
|
+
var measure = this.tupRowInfo[tupPos].measure;
|
|
19513
|
+
var typeColl_1 = this.tupRowInfo[tupPos].typeCollection;
|
|
19514
|
+
var drillStartPos = this.tupRowInfo[tupPos].drillStartPos;
|
|
19515
|
+
var startDrillUniquename = this.tupRowInfo[tupPos].startDrillUniquename;
|
|
19516
|
+
if (tupPos === 0 && (members.length > (allCount + (measure ? 1 : 0)) || (members.length === 1 && measure))) {
|
|
19517
|
+
gTotals.pop();
|
|
19518
|
+
}
|
|
19519
|
+
if ((tupPos === 0 && this.isPaging) ? gTotals.length === 0 :
|
|
19520
|
+
(!availAllMember || allCount === lastAllCount || allStartPos !== lastAllStartPos || (members.length === 1 && measure))) {
|
|
19521
|
+
var attrDrill = this.checkAttributeDrill(this.tupRowInfo[tupPos].drillInfo, 'rows');
|
|
19522
|
+
var drillAllow = drillStartPos > -1 ? (allCount > 0 ? (attrDrill || allStartPos > drillStartPos) : true) : true;
|
|
19523
|
+
drillAllow = (prevTupInfo && drillAllow && drillStartPos > -1) ?
|
|
19524
|
+
(prevTupInfo.startDrillUniquename !== startDrillUniquename ? true :
|
|
19525
|
+
((withoutAllEndPos > prevTupInfo.measurePosition ? false :
|
|
19526
|
+
prevTupInfo.measureName !== this.tupRowInfo[tupPos].measureName) &&
|
|
19527
|
+
(allStartPos === (drillStartPos + 1) || this.tupRowInfo[tupPos].measurePosition === (drillStartPos + 1))))
|
|
19528
|
+
: drillAllow;
|
|
19529
|
+
if (members.length === allCount + (measure ? 1 : 0) && measure && !isGrandTotalTop) {
|
|
19530
|
+
var levelName = 'Grand Total.' + members[measurePos].querySelector('Caption').textContent;
|
|
19531
|
+
var formattedText = (typeColl_1[measurePos] === '3' && this.dataFields[this.getUniqueName(members[measurePos].querySelector('UName').textContent)] &&
|
|
19532
|
+
this.dataFields[this.getUniqueName(members[measurePos].querySelector('UName').textContent)].caption) ? this.dataFields[this.getUniqueName(members[measurePos].querySelector('UName').textContent)].caption :
|
|
19533
|
+
members[measurePos].querySelector('Caption').textContent;
|
|
19534
|
+
gTotals = this.frameGrandTotalAxisSet(gTotals, this.getUniqueName(members[measurePos].querySelector('UName').textContent), formattedText, this.pivotValues.length, tupPos, Number(typeColl_1[measurePos]), members[measurePos].querySelector('PARENT_UNIQUE_NAME') ? members[measurePos].querySelector('PARENT_UNIQUE_NAME').textContent : undefined, members[measurePos].querySelector('LName').textContent, members[measurePos].getAttribute('Hierarchy'), { levelName: levelName, axis: members[measurePos].getAttribute('Hierarchy') });
|
|
19535
|
+
gTotals[gTotals.length - 1].valueSort['Grand Total.' + members[measurePos].querySelector('Caption').textContent] = 1;
|
|
19536
|
+
}
|
|
19537
|
+
lastAllCount = allCount;
|
|
19538
|
+
lastAllStartPos = allStartPos;
|
|
19539
|
+
}
|
|
19540
|
+
isGrandtoalDataAdd = this.dataSourceSettings.values.length + 1 === gTotals.length ? true : false;
|
|
19541
|
+
tupPos++;
|
|
19542
|
+
}
|
|
19543
|
+
return gTotals;
|
|
19544
|
+
};
|
|
19286
19545
|
OlapEngine.prototype.frameColumnHeader = function (tuples) {
|
|
19287
19546
|
var _this = this;
|
|
19288
19547
|
this.headerGrouping = {};
|
|
@@ -19347,8 +19606,18 @@ var OlapEngine = /** @__PURE__ @class */ (function () {
|
|
|
19347
19606
|
withoutAllAvail = true;
|
|
19348
19607
|
isStartCol = (allCount > 0 && isStartCol) ? (allStartPos > withoutAllStartPos) : isStartCol;
|
|
19349
19608
|
}
|
|
19350
|
-
|
|
19351
|
-
|
|
19609
|
+
var isGrandTotalTop = false;
|
|
19610
|
+
if (this_1.dataSourceSettings.grandTotalsPosition === 'Top' && this_1.dataSourceSettings.showGrandTotals && this_1.dataSourceSettings.showColumnGrandTotals) {
|
|
19611
|
+
var count = 0;
|
|
19612
|
+
for (var i = 0; i < members.length; i++) {
|
|
19613
|
+
if ((members[i].querySelector('Caption').textContent).indexOf('All') === 0) {
|
|
19614
|
+
count++;
|
|
19615
|
+
}
|
|
19616
|
+
}
|
|
19617
|
+
isGrandTotalTop = count === (this_1.olapValueAxis === 'column' ? this_1.dataSourceSettings.columns.length - 1 : this_1.dataSourceSettings.columns.length);
|
|
19618
|
+
}
|
|
19619
|
+
if (isStartCol || isGrandTotalTop) {
|
|
19620
|
+
if (allCount === 0 || isGrandTotalTop) {
|
|
19352
19621
|
var levelComp = [-1, -1, -1];
|
|
19353
19622
|
if (this_1.tupColumnInfo[tupPos - 1] && this_1.tupColumnInfo[tupPos - 1].allCount === 0) {
|
|
19354
19623
|
levelComp = this_1.levelCompare(levelColl, this_1.tupColumnInfo[tupPos - 1].levelCollection);
|
|
@@ -19385,8 +19654,10 @@ var OlapEngine = /** @__PURE__ @class */ (function () {
|
|
|
19385
19654
|
}
|
|
19386
19655
|
this_1.setParentCollection(members);
|
|
19387
19656
|
if (withoutAllAvail ? (withoutAllEndPos <= drillStartPos) : true) {
|
|
19388
|
-
|
|
19389
|
-
|
|
19657
|
+
if (!isGrandTotalTop) {
|
|
19658
|
+
this_1.totalCollection[this_1.totalCollection.length] =
|
|
19659
|
+
({ allCount: allCount, ordinal: tupPos, members: members, drillInfo: drillInfo });
|
|
19660
|
+
}
|
|
19390
19661
|
lastSavedInfo.allCount = allCount;
|
|
19391
19662
|
lastSavedInfo.allStartPos = allStartPos;
|
|
19392
19663
|
lastSavedInfo.drillStartPos = drillStartPos;
|
|
@@ -19411,10 +19682,12 @@ var OlapEngine = /** @__PURE__ @class */ (function () {
|
|
|
19411
19682
|
}
|
|
19412
19683
|
this_1.setParentCollection(members);
|
|
19413
19684
|
if ((withoutAllAvail && drillStartPos > -1) ? (withoutAllEndPos <= drillStartPos) : true) {
|
|
19414
|
-
|
|
19415
|
-
|
|
19416
|
-
|
|
19417
|
-
|
|
19685
|
+
if (!isGrandTotalTop) {
|
|
19686
|
+
this_1.totalCollection[this_1.totalCollection.length] =
|
|
19687
|
+
({
|
|
19688
|
+
allCount: allCount, ordinal: tupPos, members: members, allStartPos: allStartPos, drillInfo: drillInfo
|
|
19689
|
+
});
|
|
19690
|
+
}
|
|
19418
19691
|
lastSavedInfo.allCount = allCount;
|
|
19419
19692
|
lastSavedInfo.allStartPos = allStartPos;
|
|
19420
19693
|
lastSavedInfo.drillStartPos = drillStartPos;
|
|
@@ -19918,19 +20191,26 @@ var OlapEngine = /** @__PURE__ @class */ (function () {
|
|
|
19918
20191
|
}
|
|
19919
20192
|
var newPos = 0;
|
|
19920
20193
|
var totPos = 0;
|
|
20194
|
+
var valuePos = 0;
|
|
19921
20195
|
gSumFlag = false;
|
|
19922
20196
|
gSumGrouping = this.sortRowHeaders(gSumGrouping);
|
|
19923
20197
|
for (var rPos = this.colDepth; rPos < rowCount; rPos++) {
|
|
19924
20198
|
/* eslint-disable @typescript-eslint/dot-notation */
|
|
20199
|
+
if (this.dataSourceSettings.grandTotalsPosition === 'Top' && (this.dataSourceSettings.showGrandTotals && this.dataSourceSettings.showRowGrandTotals) &&
|
|
20200
|
+
((this.olapValueAxis === 'column' && this.colDepth + 1 === rPos) || (this.olapValueAxis === 'row' && this.colDepth + this.dataSourceSettings.values.length + 1 === rPos))) {
|
|
20201
|
+
newPos = 0;
|
|
20202
|
+
gSumFlag = false;
|
|
20203
|
+
}
|
|
19925
20204
|
var cell = gSumFlag ? gSumGrouping : sortLvlGrouping[levels[0]]['parent'];
|
|
19926
20205
|
/* eslint-enable @typescript-eslint/dot-notation */
|
|
19927
|
-
var currPos = gSumFlag ? (newPos - totPos) : newPos;
|
|
20206
|
+
var currPos = (this.dataSourceSettings.grandTotalsPosition === 'Top' && (this.dataSourceSettings.showGrandTotals && this.dataSourceSettings.showRowGrandTotals) && this.colDepth === rPos) ? cell.length : gSumFlag ? (newPos - totPos) : newPos;
|
|
19928
20207
|
if (cell[currPos]) {
|
|
19929
20208
|
this.pivotValues[rPos] = [cell[currPos]];
|
|
19930
20209
|
this.pivotValues[rPos][0].rowIndex = rPos;
|
|
19931
|
-
this.valueContent[
|
|
20210
|
+
this.valueContent[valuePos][0] = this.pivotValues[rPos][0];
|
|
19932
20211
|
}
|
|
19933
20212
|
newPos++;
|
|
20213
|
+
valuePos++;
|
|
19934
20214
|
if (this.pivotValues[rPos][0].type === 'grand sum') {
|
|
19935
20215
|
gSumFlag = true;
|
|
19936
20216
|
totPos = newPos;
|
|
@@ -22247,6 +22527,8 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
|
|
|
22247
22527
|
_this_1.request = new XMLHttpRequest();
|
|
22248
22528
|
/** @hidden */
|
|
22249
22529
|
_this_1.isServerWaitingPopup = false;
|
|
22530
|
+
/** @hidden */
|
|
22531
|
+
_this_1.actionObj = {};
|
|
22250
22532
|
_this_1.pivotView = _this_1;
|
|
22251
22533
|
setValue('mergePersistData', _this_1.mergePersistPivotData, _this_1);
|
|
22252
22534
|
return _this_1;
|
|
@@ -22289,10 +22571,10 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
|
|
|
22289
22571
|
modules.push({ args: [this], member: 'grouping' });
|
|
22290
22572
|
}
|
|
22291
22573
|
if (this.allowDrillThrough || (this.editSettings && this.editSettings.allowEditing)) {
|
|
22292
|
-
modules.push({ args: [this], member: '
|
|
22574
|
+
modules.push({ args: [this], member: 'drillThrough' });
|
|
22293
22575
|
}
|
|
22294
22576
|
if (this.displayOption.view !== 'Table') {
|
|
22295
|
-
modules.push({ args: [this], member: '
|
|
22577
|
+
modules.push({ args: [this], member: 'pivotChart' });
|
|
22296
22578
|
}
|
|
22297
22579
|
return modules;
|
|
22298
22580
|
};
|
|
@@ -22872,7 +23154,7 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
|
|
|
22872
23154
|
this.setProperties({ gridSettings: { allowSelection: true, selectionSettings: { cellSelectionMode: 'Box', mode: 'Cell', type: 'Multiple' } } }, true);
|
|
22873
23155
|
}
|
|
22874
23156
|
if (this.displayOption.view !== 'Table') {
|
|
22875
|
-
this.
|
|
23157
|
+
this.pivotChartModule = new PivotChart();
|
|
22876
23158
|
}
|
|
22877
23159
|
this.currentView = this.currentView ? this.currentView : (this.displayOption.view === 'Both' ?
|
|
22878
23160
|
this.displayOption.primary : this.displayOption.view);
|
|
@@ -23139,32 +23421,37 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
|
|
|
23139
23421
|
};
|
|
23140
23422
|
PivotView.prototype.initialLoad = function () {
|
|
23141
23423
|
var _this_1 = this;
|
|
23142
|
-
|
|
23143
|
-
|
|
23144
|
-
|
|
23145
|
-
|
|
23424
|
+
try {
|
|
23425
|
+
this.cellTemplateFn = this.templateParser(this.cellTemplate);
|
|
23426
|
+
this.tooltipTemplateFn = this.templateParser(this.tooltipTemplate);
|
|
23427
|
+
if (this.spinnerTemplate) {
|
|
23428
|
+
createSpinner({ target: this.element, template: this.spinnerTemplate }, this.createElement);
|
|
23429
|
+
}
|
|
23430
|
+
else {
|
|
23431
|
+
createSpinner({ target: this.element }, this.createElement);
|
|
23432
|
+
}
|
|
23433
|
+
var loadArgs = {
|
|
23434
|
+
dataSourceSettings: this.dataSourceSettings,
|
|
23435
|
+
pivotview: this,
|
|
23436
|
+
fieldsType: {}
|
|
23437
|
+
};
|
|
23438
|
+
this.trigger(load, loadArgs, function (observedArgs) {
|
|
23439
|
+
_this_1.dataSourceSettings = observedArgs.dataSourceSettings;
|
|
23440
|
+
_this_1.fieldsType = observedArgs.fieldsType;
|
|
23441
|
+
_this_1.updateClass();
|
|
23442
|
+
_this_1.notify(initSubComponent, {});
|
|
23443
|
+
if (_this_1.dataSourceSettings.mode !== 'Server') {
|
|
23444
|
+
_this_1.notify(initialLoad, {});
|
|
23445
|
+
}
|
|
23446
|
+
if (_this_1.isAdaptive) {
|
|
23447
|
+
_this_1.contextMenuModule.render();
|
|
23448
|
+
}
|
|
23449
|
+
_this_1.notify(initToolbar, {});
|
|
23450
|
+
});
|
|
23146
23451
|
}
|
|
23147
|
-
|
|
23148
|
-
|
|
23452
|
+
catch (execption) {
|
|
23453
|
+
this.actionFailureMethod(execption);
|
|
23149
23454
|
}
|
|
23150
|
-
var loadArgs = {
|
|
23151
|
-
dataSourceSettings: this.dataSourceSettings,
|
|
23152
|
-
pivotview: this,
|
|
23153
|
-
fieldsType: {}
|
|
23154
|
-
};
|
|
23155
|
-
this.trigger(load, loadArgs, function (observedArgs) {
|
|
23156
|
-
_this_1.dataSourceSettings = observedArgs.dataSourceSettings;
|
|
23157
|
-
_this_1.fieldsType = observedArgs.fieldsType;
|
|
23158
|
-
_this_1.updateClass();
|
|
23159
|
-
_this_1.notify(initSubComponent, {});
|
|
23160
|
-
if (_this_1.dataSourceSettings.mode !== 'Server') {
|
|
23161
|
-
_this_1.notify(initialLoad, {});
|
|
23162
|
-
}
|
|
23163
|
-
if (_this_1.isAdaptive) {
|
|
23164
|
-
_this_1.contextMenuModule.render();
|
|
23165
|
-
}
|
|
23166
|
-
_this_1.notify(initToolbar, {});
|
|
23167
|
-
});
|
|
23168
23455
|
};
|
|
23169
23456
|
/**
|
|
23170
23457
|
* Register the internal events.
|
|
@@ -23195,12 +23482,32 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
|
|
|
23195
23482
|
/* eslint-disable */
|
|
23196
23483
|
var columnRender = this.gridSettings['columnRender'];
|
|
23197
23484
|
var chartLoadEvent = this.chartSettings['load'];
|
|
23485
|
+
var chartLoadedEvent = this.chartSettings['loaded'];
|
|
23486
|
+
var chartTextRenderEvent = this.chartSettings['textRender'];
|
|
23487
|
+
var chartPointRenderEvent = this.chartSettings['pointRender'];
|
|
23488
|
+
var chartSeriesRenderEvent = this.chartSettings['seriesRender'];
|
|
23489
|
+
var chartLegendRenderEvent = this.chartSettings['legendRender'];
|
|
23490
|
+
var chartPointClickEvent = this.chartSettings['pointClick'];
|
|
23491
|
+
var chartTooltipRenderEvent = this.chartSettings['tooltipRender'];
|
|
23198
23492
|
this.gridSettings['columnRender'] = undefined;
|
|
23199
23493
|
this.chartSettings['tooltipRender'] = undefined;
|
|
23200
23494
|
this.chartSettings['load'] = undefined;
|
|
23495
|
+
this.chartSettings['loaded'] = undefined;
|
|
23496
|
+
this.chartSettings['textRender'] = undefined;
|
|
23497
|
+
this.chartSettings['pointRender'] = undefined;
|
|
23498
|
+
this.chartSettings['seriesRender'] = undefined;
|
|
23499
|
+
this.chartSettings['legendRender'] = undefined;
|
|
23500
|
+
this.chartSettings['pointClick'] = undefined;
|
|
23201
23501
|
var persistData = this.addOnPersist(keyEntity);
|
|
23202
23502
|
this.gridSettings['columnRender'] = columnRender;
|
|
23203
23503
|
this.chartSettings['load'] = chartLoadEvent;
|
|
23504
|
+
this.chartSettings['loaded'] = chartLoadedEvent;
|
|
23505
|
+
this.chartSettings['textRender'] = chartTextRenderEvent;
|
|
23506
|
+
this.chartSettings['pointRender'] = chartPointRenderEvent;
|
|
23507
|
+
this.chartSettings['seriesRender'] = chartSeriesRenderEvent;
|
|
23508
|
+
this.chartSettings['legendRender'] = chartLegendRenderEvent;
|
|
23509
|
+
this.chartSettings['pointClick'] = chartPointClickEvent;
|
|
23510
|
+
this.chartSettings['tooltipRender'] = chartTooltipRenderEvent;
|
|
23204
23511
|
/* eslint-enable */
|
|
23205
23512
|
return persistData;
|
|
23206
23513
|
};
|
|
@@ -23383,15 +23690,15 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
|
|
|
23383
23690
|
if (!this.grid && newProp.displayOption.view !== 'Chart') {
|
|
23384
23691
|
this.renderEmptyGrid();
|
|
23385
23692
|
if (newProp.displayOption.view === 'Table') {
|
|
23386
|
-
if (this.
|
|
23387
|
-
this.
|
|
23693
|
+
if (this.pivotChartModule) {
|
|
23694
|
+
this.pivotChartModule.destroy();
|
|
23388
23695
|
this.chart = undefined;
|
|
23389
|
-
this.
|
|
23696
|
+
this.pivotChartModule = undefined;
|
|
23390
23697
|
}
|
|
23391
23698
|
}
|
|
23392
23699
|
}
|
|
23393
|
-
else if (!this.
|
|
23394
|
-
this.
|
|
23700
|
+
else if (!this.pivotChartModule && this.displayOption.view !== 'Table') {
|
|
23701
|
+
this.pivotChartModule = new PivotChart();
|
|
23395
23702
|
}
|
|
23396
23703
|
}
|
|
23397
23704
|
else if (this.showToolbar && !isNullOrUndefined(newProp.displayOption) && newProp.displayOption.view) {
|
|
@@ -23421,12 +23728,12 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
|
|
|
23421
23728
|
(newProp.chartSettings.chartSeries && Object.keys(newProp.chartSettings.chartSeries).indexOf('type') !== -1))) {
|
|
23422
23729
|
this.groupingBarModule.renderLayout();
|
|
23423
23730
|
}
|
|
23424
|
-
if (isNullOrUndefined(this.
|
|
23425
|
-
this.
|
|
23731
|
+
if (isNullOrUndefined(this.pivotChartModule) && this.displayOption.view !== 'Table') {
|
|
23732
|
+
this.pivotChartModule = new PivotChart();
|
|
23426
23733
|
}
|
|
23427
23734
|
var engineModule = this.dataType === 'pivot' ? this.engineModule : this.olapEngineModule;
|
|
23428
|
-
if (!isNullOrUndefined(this.
|
|
23429
|
-
this.
|
|
23735
|
+
if (!isNullOrUndefined(this.pivotChartModule) && !isNullOrUndefined(engineModule.pivotValues)) {
|
|
23736
|
+
this.pivotChartModule.loadChart(this, this.chartSettings);
|
|
23430
23737
|
}
|
|
23431
23738
|
if (!isNullOrUndefined(engineModule.pivotValues) && !isNullOrUndefined(engineModule.fieldList)) {
|
|
23432
23739
|
this.notify(uiUpdate, this);
|
|
@@ -23453,6 +23760,9 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
|
|
|
23453
23760
|
if (this.element.querySelector('.e-grouping-bar')) {
|
|
23454
23761
|
this.element.querySelector('.e-grouping-bar').remove();
|
|
23455
23762
|
}
|
|
23763
|
+
else if (this.groupingBarModule) {
|
|
23764
|
+
this.groupingBarModule.renderLayout();
|
|
23765
|
+
}
|
|
23456
23766
|
if (isNullOrUndefined(newProp.showFieldList))
|
|
23457
23767
|
this.renderPivotGrid();
|
|
23458
23768
|
break;
|
|
@@ -23546,9 +23856,9 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
|
|
|
23546
23856
|
*/
|
|
23547
23857
|
PivotView.prototype.renderPivotGrid = function () {
|
|
23548
23858
|
this.clearTemplate();
|
|
23549
|
-
if (this.
|
|
23550
|
-
this.
|
|
23551
|
-
this.
|
|
23859
|
+
if (this.pivotChartModule) {
|
|
23860
|
+
this.pivotChartModule.engineModule = this.engineModule;
|
|
23861
|
+
this.pivotChartModule.loadChart(this, this.chartSettings);
|
|
23552
23862
|
if (this.enableRtl && this.chart && document.body.getAttribute('dir') !== 'rtl') {
|
|
23553
23863
|
addClass([this.chart.element], PIVOTCHART_LTR);
|
|
23554
23864
|
}
|
|
@@ -23578,8 +23888,8 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
|
|
|
23578
23888
|
true : this.hyperlinkSettings.showHyperlink ? true : false);
|
|
23579
23889
|
this.applyHyperlinkSettings();
|
|
23580
23890
|
}
|
|
23581
|
-
this.renderModule = new Render(this);
|
|
23582
|
-
this.renderModule.render();
|
|
23891
|
+
this.renderModule = this.renderModule ? this.renderModule : new Render(this);
|
|
23892
|
+
this.renderModule.render(true);
|
|
23583
23893
|
}
|
|
23584
23894
|
else if (this.grid) {
|
|
23585
23895
|
remove(this.grid.element);
|
|
@@ -23595,7 +23905,9 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
|
|
|
23595
23905
|
if (this.toolbarModule && this.toolbarModule.toolbar) {
|
|
23596
23906
|
this.toolbarModule.toolbar.width = this.getGridWidthAsNumber() - 2;
|
|
23597
23907
|
}
|
|
23598
|
-
this.
|
|
23908
|
+
if (this.chartSettings.enableScrollOnMultiAxis && this.chartSettings.enableMultipleAxis) {
|
|
23909
|
+
this.element.querySelector('.' + PIVOTCHART).style.width = formatUnit(this.getGridWidthAsNumber());
|
|
23910
|
+
}
|
|
23599
23911
|
this.chart.width = formatUnit(this.getGridWidthAsNumber());
|
|
23600
23912
|
if (this.currentView === 'Table') {
|
|
23601
23913
|
this.grid.element.style.display = '';
|
|
@@ -23615,7 +23927,13 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
|
|
|
23615
23927
|
}
|
|
23616
23928
|
if (this.toolbarModule) {
|
|
23617
23929
|
if (this.showFieldList && select('#' + this.element.id + '_PivotFieldList', this.element)) {
|
|
23618
|
-
|
|
23930
|
+
if (this.toolbar && this.toolbar.indexOf('FieldList') !== -1) {
|
|
23931
|
+
select('#' + this.element.id + '_PivotFieldList', this.element).style.display = 'none';
|
|
23932
|
+
}
|
|
23933
|
+
else {
|
|
23934
|
+
select('#' + this.element.id + '_PivotFieldList', this.element).style.top = this.element.querySelector('.' + GRID_TOOLBAR).offsetHeight.toString() + 'px';
|
|
23935
|
+
select('#' + this.element.id + '_PivotFieldList', this.element).style.position = 'relative';
|
|
23936
|
+
}
|
|
23619
23937
|
}
|
|
23620
23938
|
if (this.toolbar && this.toolbar.indexOf('FieldList') !== -1 &&
|
|
23621
23939
|
this.showToolbar && this.element.querySelector('.e-toggle-field-list')) {
|
|
@@ -23767,7 +24085,9 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
|
|
|
23767
24085
|
isDrillThrough: (pivot.allowDrillThrough || pivot.editSettings.allowEditing),
|
|
23768
24086
|
localeObj: pivot.localeObj,
|
|
23769
24087
|
fieldsType: pivot.fieldsType,
|
|
23770
|
-
clonedReport: pivot.clonedReport
|
|
24088
|
+
clonedReport: pivot.clonedReport,
|
|
24089
|
+
globalize: pivot.globalize,
|
|
24090
|
+
currenyCode: pivot.currencyCode
|
|
23771
24091
|
};
|
|
23772
24092
|
/* eslint-enable @typescript-eslint/indent */
|
|
23773
24093
|
if (pivot.dataSourceSettings.mode === 'Server') {
|
|
@@ -23817,6 +24137,14 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
|
|
|
23817
24137
|
this.exportType = 'Excel';
|
|
23818
24138
|
this.grid.excelExport(excelExportProperties, isMultipleExport, workbook, isBlob);
|
|
23819
24139
|
}
|
|
24140
|
+
this.actionObj.actionName = this.getActionCompleteName();
|
|
24141
|
+
var actionInfo = {
|
|
24142
|
+
exportInfo: { type: this.exportType, info: excelExportProperties }
|
|
24143
|
+
};
|
|
24144
|
+
this.actionObj.actionInfo = actionInfo;
|
|
24145
|
+
if (this.actionObj.actionName) {
|
|
24146
|
+
this.actionCompleteMethod();
|
|
24147
|
+
}
|
|
23820
24148
|
};
|
|
23821
24149
|
/**
|
|
23822
24150
|
* Export PivotGrid data to CSV file.
|
|
@@ -23834,6 +24162,14 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
|
|
|
23834
24162
|
this.exportType = 'CSV';
|
|
23835
24163
|
this.grid.csvExport(excelExportProperties, isMultipleExport, workbook, isBlob);
|
|
23836
24164
|
}
|
|
24165
|
+
this.actionObj.actionName = this.getActionCompleteName();
|
|
24166
|
+
var actionInfo = {
|
|
24167
|
+
exportInfo: { type: this.exportType, info: excelExportProperties }
|
|
24168
|
+
};
|
|
24169
|
+
this.actionObj.actionInfo = actionInfo;
|
|
24170
|
+
if (this.actionObj.actionName) {
|
|
24171
|
+
this.actionCompleteMethod();
|
|
24172
|
+
}
|
|
23837
24173
|
};
|
|
23838
24174
|
/**
|
|
23839
24175
|
* Export Pivot widget data to PDF document.
|
|
@@ -23850,6 +24186,14 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
|
|
|
23850
24186
|
else {
|
|
23851
24187
|
this.grid.pdfExport(pdfExportProperties, isMultipleExport, pdfDoc, isBlob);
|
|
23852
24188
|
}
|
|
24189
|
+
this.actionObj.actionName = this.getActionCompleteName();
|
|
24190
|
+
var actionInfo = {
|
|
24191
|
+
exportInfo: { type: 'PDF', info: pdfExportProperties }
|
|
24192
|
+
};
|
|
24193
|
+
this.actionObj.actionInfo = actionInfo;
|
|
24194
|
+
if (this.actionObj.actionName) {
|
|
24195
|
+
this.actionCompleteMethod();
|
|
24196
|
+
}
|
|
23853
24197
|
};
|
|
23854
24198
|
/**
|
|
23855
24199
|
* Export method for the chart.
|
|
@@ -23864,6 +24208,14 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
|
|
|
23864
24208
|
if (this.chart && this.chart.enableExport) {
|
|
23865
24209
|
this.chart.exportModule.export(type, fileName, orientation, null, width, height);
|
|
23866
24210
|
}
|
|
24211
|
+
this.actionObj.actionName = this.getActionCompleteName();
|
|
24212
|
+
var actionInfo = {
|
|
24213
|
+
exportInfo: { type: type, info: fileName }
|
|
24214
|
+
};
|
|
24215
|
+
this.actionObj.actionInfo = actionInfo;
|
|
24216
|
+
if (this.actionObj.actionName) {
|
|
24217
|
+
this.actionCompleteMethod();
|
|
24218
|
+
}
|
|
23867
24219
|
};
|
|
23868
24220
|
/**
|
|
23869
24221
|
* Print method for the chart.
|
|
@@ -23975,6 +24327,10 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
|
|
|
23975
24327
|
};
|
|
23976
24328
|
_this_1.trigger(enginePopulated, eventArgs);
|
|
23977
24329
|
pivot_1.engineModule.pivotValues = eventArgs.pivotValues;
|
|
24330
|
+
var actionInfo = {
|
|
24331
|
+
drillInfo: drilledItem_1
|
|
24332
|
+
};
|
|
24333
|
+
_this_1.actionObj.actionInfo = actionInfo;
|
|
23978
24334
|
pivot_1.renderPivotGrid();
|
|
23979
24335
|
}
|
|
23980
24336
|
else {
|
|
@@ -24327,6 +24683,12 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
|
|
|
24327
24683
|
this.unwireEvents();
|
|
24328
24684
|
this.wireEvents();
|
|
24329
24685
|
this.isChartLoaded = false;
|
|
24686
|
+
this.actionObj.actionName = this.getActionCompleteName();
|
|
24687
|
+
if (this.actionObj.actionName) {
|
|
24688
|
+
if (this.actionObj.actionName !== windowResize) {
|
|
24689
|
+
this.actionCompleteMethod();
|
|
24690
|
+
}
|
|
24691
|
+
}
|
|
24330
24692
|
};
|
|
24331
24693
|
PivotView.prototype.setToolTip = function (args) {
|
|
24332
24694
|
var colIndex = Number(args.target.getAttribute('aria-colindex'));
|
|
@@ -24358,6 +24720,13 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
|
|
|
24358
24720
|
if (cell && this.engineModule.fieldList[cell.actualText]) {
|
|
24359
24721
|
var field = this.engineModule.fieldList[cell.actualText];
|
|
24360
24722
|
aggregateType = field.aggregateType;
|
|
24723
|
+
if ((aggregateType !== 'DistinctCount') && (field.type !== 'number' || field.type === 'include' ||
|
|
24724
|
+
field.type === 'exclude')) {
|
|
24725
|
+
aggregateType = 'Count';
|
|
24726
|
+
}
|
|
24727
|
+
else {
|
|
24728
|
+
aggregateType = (aggregateType === undefined) ? 'Sum' : field.aggregateType;
|
|
24729
|
+
}
|
|
24361
24730
|
caption = field.caption;
|
|
24362
24731
|
hasField = true;
|
|
24363
24732
|
}
|
|
@@ -24577,76 +24946,105 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
|
|
|
24577
24946
|
ele = target.parentElement.parentElement;
|
|
24578
24947
|
}
|
|
24579
24948
|
this.CellClicked(target, e);
|
|
24580
|
-
|
|
24581
|
-
|
|
24582
|
-
|
|
24583
|
-
|
|
24584
|
-
|
|
24585
|
-
|
|
24586
|
-
|
|
24587
|
-
|
|
24588
|
-
|
|
24589
|
-
|
|
24590
|
-
|
|
24591
|
-
else {
|
|
24592
|
-
var level = this.getLevel(header);
|
|
24593
|
-
rowIndex = (level <= this.engineModule.measureIndex &&
|
|
24594
|
-
header.members && header.members.length > 0) ? header.members[0].rowIndex : rowIndex;
|
|
24949
|
+
try {
|
|
24950
|
+
if ((ele.parentElement.parentElement.parentElement.parentElement.classList.contains('e-movableheader')
|
|
24951
|
+
&& this.dataSourceSettings.valueAxis === 'column') || (ele.parentElement.classList.contains('e-row') &&
|
|
24952
|
+
this.dataSourceSettings.valueAxis === 'row') && (ele.classList.contains('e-rowsheader') ||
|
|
24953
|
+
ele.classList.contains('e-stot'))) {
|
|
24954
|
+
var FieldName = target.parentElement.getAttribute('fieldname');
|
|
24955
|
+
var fieldInfo = PivotUtil.getFieldInfo(FieldName, this);
|
|
24956
|
+
this.actionObj.actionName = sortValue;
|
|
24957
|
+
this.actionObj.fieldInfo = fieldInfo.fieldItem;
|
|
24958
|
+
if (this.actionBeginMethod()) {
|
|
24959
|
+
return;
|
|
24595
24960
|
}
|
|
24596
|
-
|
|
24597
|
-
|
|
24598
|
-
|
|
24599
|
-
|
|
24600
|
-
|
|
24601
|
-
|
|
24602
|
-
dataSourceSettings: {
|
|
24603
|
-
valueSortSettings: {
|
|
24604
|
-
columnIndex: (Number(ele.getAttribute('aria-colindex')) +
|
|
24605
|
-
Number(ele.getAttribute('aria-colspan')) - 1),
|
|
24606
|
-
sortOrder: this.dataSourceSettings.valueSortSettings.sortOrder === 'Descending' ? 'Ascending' : 'Descending',
|
|
24607
|
-
headerText: this.pivotValues[rowIndex][colIndex].valueSort.levelName,
|
|
24608
|
-
headerDelimiter: this.dataSourceSettings.valueSortSettings.headerDelimiter ?
|
|
24609
|
-
this.dataSourceSettings.valueSortSettings.headerDelimiter : '.'
|
|
24961
|
+
var colIndex = Number(ele.getAttribute('aria-colindex'));
|
|
24962
|
+
var rowIndex = Number(ele.getAttribute('index'));
|
|
24963
|
+
if (this.dataSourceSettings.valueAxis === 'row' && (this.dataSourceSettings.values.length > 1 || this.dataSourceSettings.alwaysShowValueHeader)) {
|
|
24964
|
+
var header = this.pivotValues[rowIndex][colIndex];
|
|
24965
|
+
if (this.dataSourceSettings.valueIndex === -1) {
|
|
24966
|
+
rowIndex = header.type === 'value' ? rowIndex : (rowIndex + 1);
|
|
24610
24967
|
}
|
|
24611
|
-
|
|
24612
|
-
|
|
24613
|
-
|
|
24614
|
-
|
|
24615
|
-
|
|
24616
|
-
|
|
24617
|
-
if (
|
|
24618
|
-
|
|
24619
|
-
|
|
24620
|
-
|
|
24968
|
+
else {
|
|
24969
|
+
var level = this.getLevel(header);
|
|
24970
|
+
rowIndex = (level <= this.engineModule.measureIndex &&
|
|
24971
|
+
header.members && header.members.length > 0) ? header.members[0].rowIndex : rowIndex;
|
|
24972
|
+
}
|
|
24973
|
+
}
|
|
24974
|
+
else if (this.dataSourceSettings.valueAxis === 'column' && (this.dataSourceSettings.values.length > 1 || this.dataSourceSettings.alwaysShowValueHeader)) {
|
|
24975
|
+
colIndex = (Number(ele.getAttribute('aria-colindex')) + Number(ele.getAttribute('aria-colspan')) - 1);
|
|
24976
|
+
rowIndex = this.engineModule.headerContent.length - 1;
|
|
24977
|
+
}
|
|
24978
|
+
this.setProperties({
|
|
24979
|
+
dataSourceSettings: {
|
|
24980
|
+
valueSortSettings: {
|
|
24981
|
+
columnIndex: (Number(ele.getAttribute('aria-colindex')) +
|
|
24982
|
+
Number(ele.getAttribute('aria-colspan')) - 1),
|
|
24983
|
+
sortOrder: this.dataSourceSettings.valueSortSettings.sortOrder === 'Descending' ? 'Ascending' : 'Descending',
|
|
24984
|
+
headerText: this.pivotValues[rowIndex][colIndex].valueSort.levelName,
|
|
24985
|
+
headerDelimiter: this.dataSourceSettings.valueSortSettings.headerDelimiter ?
|
|
24986
|
+
this.dataSourceSettings.valueSortSettings.headerDelimiter : '.'
|
|
24987
|
+
}
|
|
24988
|
+
}
|
|
24989
|
+
}, true);
|
|
24990
|
+
this.showWaitingPopup();
|
|
24991
|
+
var pivot = this; /* eslint-disable-line */
|
|
24992
|
+
pivot.engineModule.enableValueSorting = true;
|
|
24993
|
+
if (pivot.enableVirtualization) {
|
|
24994
|
+
if (pivot.dataSourceSettings.enableSorting) {
|
|
24995
|
+
for (var _i = 0, _a = Object.keys(pivot.engineModule.fieldList); _i < _a.length; _i++) {
|
|
24996
|
+
var key = _a[_i];
|
|
24997
|
+
pivot.engineModule.fieldList[key].sort = 'Ascending';
|
|
24998
|
+
}
|
|
24999
|
+
pivot.setProperties({ dataSourceSettings: { sortSettings: [] } }, true);
|
|
25000
|
+
}
|
|
25001
|
+
if (pivot.dataSourceSettings.mode === 'Server') {
|
|
25002
|
+
pivot.getEngine('onValueSort', null, null, null, null, null, null);
|
|
25003
|
+
}
|
|
25004
|
+
else {
|
|
25005
|
+
pivot.engineModule.rMembers = pivot.engineModule.headerCollection.rowHeaders;
|
|
25006
|
+
pivot.engineModule.cMembers = pivot.engineModule.headerCollection.columnHeaders;
|
|
25007
|
+
pivot.engineModule.applyValueSorting();
|
|
25008
|
+
pivot.engineModule.updateEngine();
|
|
24621
25009
|
}
|
|
24622
|
-
pivot.setProperties({ dataSourceSettings: { sortSettings: [] } }, true);
|
|
24623
25010
|
}
|
|
24624
|
-
if (pivot.dataSourceSettings.mode === 'Server') {
|
|
25011
|
+
else if (pivot.dataSourceSettings.mode === 'Server') {
|
|
24625
25012
|
pivot.getEngine('onValueSort', null, null, null, null, null, null);
|
|
24626
25013
|
}
|
|
24627
25014
|
else {
|
|
24628
|
-
pivot.engineModule.
|
|
24629
|
-
pivot.engineModule.cMembers = pivot.engineModule.headerCollection.columnHeaders;
|
|
24630
|
-
pivot.engineModule.applyValueSorting();
|
|
24631
|
-
pivot.engineModule.updateEngine();
|
|
25015
|
+
pivot.engineModule.generateGridData(pivot.dataSourceSettings, true);
|
|
24632
25016
|
}
|
|
25017
|
+
pivot.allowServerDataBinding = false;
|
|
25018
|
+
pivot.setProperties({ pivotValues: pivot.engineModule.pivotValues }, true);
|
|
25019
|
+
/* eslint-disable-next-line @typescript-eslint/no-explicit-any */
|
|
25020
|
+
delete pivot.bulkChanges.pivotValues;
|
|
25021
|
+
pivot.allowServerDataBinding = true;
|
|
25022
|
+
var actionInfo = {
|
|
25023
|
+
valueSortInfo: this.engineModule.valueSortSettings
|
|
25024
|
+
};
|
|
25025
|
+
this.actionObj.actionInfo = actionInfo;
|
|
25026
|
+
pivot.renderPivotGrid();
|
|
24633
25027
|
}
|
|
24634
|
-
|
|
24635
|
-
|
|
24636
|
-
|
|
24637
|
-
else {
|
|
24638
|
-
pivot.engineModule.generateGridData(pivot.dataSourceSettings, true);
|
|
24639
|
-
}
|
|
24640
|
-
pivot.allowServerDataBinding = false;
|
|
24641
|
-
pivot.setProperties({ pivotValues: pivot.engineModule.pivotValues }, true);
|
|
24642
|
-
/* eslint-disable-next-line @typescript-eslint/no-explicit-any */
|
|
24643
|
-
delete pivot.bulkChanges.pivotValues;
|
|
24644
|
-
pivot.allowServerDataBinding = true;
|
|
24645
|
-
pivot.renderPivotGrid();
|
|
25028
|
+
}
|
|
25029
|
+
catch (execption) {
|
|
25030
|
+
this.actionFailureMethod(execption);
|
|
24646
25031
|
}
|
|
24647
25032
|
}
|
|
24648
25033
|
else if (target.classList.contains(COLLAPSE) || target.classList.contains(EXPAND)) {
|
|
24649
|
-
|
|
25034
|
+
var drillFieldName = target.parentElement.getAttribute('fieldname');
|
|
25035
|
+
var fieldInfo = PivotUtil.getFieldInfo(drillFieldName, this);
|
|
25036
|
+
var actionName = target.classList.contains(COLLAPSE) ? this.actionObj.actionName = drillUp : target.classList.contains(EXPAND) ? this.actionObj.actionName = drillDown : '';
|
|
25037
|
+
this.actionObj.actionName = actionName;
|
|
25038
|
+
this.actionObj.fieldInfo = fieldInfo.fieldItem;
|
|
25039
|
+
if (this.actionBeginMethod()) {
|
|
25040
|
+
return;
|
|
25041
|
+
}
|
|
25042
|
+
try {
|
|
25043
|
+
this.onDrill(target);
|
|
25044
|
+
}
|
|
25045
|
+
catch (execption) {
|
|
25046
|
+
this.actionFailureMethod(execption);
|
|
25047
|
+
}
|
|
24650
25048
|
}
|
|
24651
25049
|
else {
|
|
24652
25050
|
this.CellClicked(target, e);
|
|
@@ -24748,7 +25146,8 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
|
|
|
24748
25146
|
var firstColWidth = this.pivotColumns[0].width;
|
|
24749
25147
|
var eventArgs = {
|
|
24750
25148
|
columns: this.pivotColumns,
|
|
24751
|
-
dataSourceSettings: this.dataSourceSettings
|
|
25149
|
+
dataSourceSettings: this.dataSourceSettings,
|
|
25150
|
+
stackedColumns: this.getStackedColumns(gridcolumns, [])
|
|
24752
25151
|
};
|
|
24753
25152
|
this.trigger(beforeColumnsRender, eventArgs);
|
|
24754
25153
|
if (this.enableVirtualization && eventArgs.columns.length > 0 && eventArgs.columns[0].width !== gridcolumns[0].width) {
|
|
@@ -24853,8 +25252,16 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
|
|
|
24853
25252
|
/* eslint-disable-next-line */
|
|
24854
25253
|
/** @hidden */
|
|
24855
25254
|
PivotView.prototype.onWindowResize = function () {
|
|
25255
|
+
this.actionObj.actionName = windowResize;
|
|
25256
|
+
if (this.actionBeginMethod()) {
|
|
25257
|
+
return;
|
|
25258
|
+
}
|
|
24856
25259
|
clearTimeout(this.timeOutObj);
|
|
24857
25260
|
this.timeOutObj = setTimeout(this.layoutRefresh.bind(this), 500);
|
|
25261
|
+
this.actionObj.actionName = this.getActionCompleteName();
|
|
25262
|
+
if (this.actionObj.actionName) {
|
|
25263
|
+
this.actionCompleteMethod();
|
|
25264
|
+
}
|
|
24858
25265
|
};
|
|
24859
25266
|
/**
|
|
24860
25267
|
* Refreshes the Pivot Table for blazor layoutRefresh is called for other base refresh is called.
|
|
@@ -25184,7 +25591,7 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
|
|
|
25184
25591
|
this.isEmptyGrid = true;
|
|
25185
25592
|
this.notEmpty = false;
|
|
25186
25593
|
this.isInitial = true;
|
|
25187
|
-
this.renderModule = new Render(this);
|
|
25594
|
+
this.renderModule = this.renderModule ? this.renderModule : new Render(this);
|
|
25188
25595
|
if (this.grid && this.grid.element && this.element.querySelector('.e-grid')) {
|
|
25189
25596
|
this.notEmpty = true;
|
|
25190
25597
|
this.grid.setProperties({
|
|
@@ -25249,7 +25656,9 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
|
|
|
25249
25656
|
isDrillThrough: (_this_1.allowDrillThrough || _this_1.editSettings.allowEditing),
|
|
25250
25657
|
localeObj: _this_1.localeObj,
|
|
25251
25658
|
fieldsType: _this_1.fieldsType,
|
|
25252
|
-
clonedReport: _this_1.clonedReport
|
|
25659
|
+
clonedReport: _this_1.clonedReport,
|
|
25660
|
+
globalize: _this_1.globalize,
|
|
25661
|
+
currenyCode: _this_1.currencyCode
|
|
25253
25662
|
};
|
|
25254
25663
|
if (_this_1.dataType === 'pivot') {
|
|
25255
25664
|
if (_this_1.dataSourceSettings.groupSettings && _this_1.dataSourceSettings.groupSettings.length > 0) {
|
|
@@ -25475,7 +25884,8 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
|
|
|
25475
25884
|
var str = 'color: ' + format[k].style.color + '!important;background-color: ' + format[k].style.backgroundColor +
|
|
25476
25885
|
'!important;font-size: ' + format[k].style.fontSize + '!important;font-family: ' + format[k].style.fontFamily +
|
|
25477
25886
|
' !important;';
|
|
25478
|
-
|
|
25887
|
+
var formatClass = '.format' + this.element.id + k;
|
|
25888
|
+
sheet.insertRule(formatClass + ', ' + formatClass + ' .e-cellvalue' + '{' + str + '}', 0);
|
|
25479
25889
|
}
|
|
25480
25890
|
}
|
|
25481
25891
|
};
|
|
@@ -25702,6 +26112,65 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
|
|
|
25702
26112
|
EventHandler.remove(document, this.isAdaptive ? 'touchend' : 'click', this.removeButtonFocus);
|
|
25703
26113
|
window.removeEventListener('resize', this.onWindowResize.bind(this), true);
|
|
25704
26114
|
};
|
|
26115
|
+
/** @hidden */
|
|
26116
|
+
PivotView.prototype.actionBeginMethod = function () {
|
|
26117
|
+
var eventArgs = {
|
|
26118
|
+
dataSourceSettings: PivotUtil.getClonedDataSourceSettings(this.dataSourceSettings),
|
|
26119
|
+
actionName: this.actionObj.actionName,
|
|
26120
|
+
fieldInfo: this.actionObj.fieldInfo,
|
|
26121
|
+
cancel: false
|
|
26122
|
+
};
|
|
26123
|
+
this.trigger(actionBegin, eventArgs);
|
|
26124
|
+
return eventArgs.cancel;
|
|
26125
|
+
};
|
|
26126
|
+
/** @hidden */
|
|
26127
|
+
PivotView.prototype.actionCompleteMethod = function () {
|
|
26128
|
+
var eventArgs = {
|
|
26129
|
+
dataSourceSettings: PivotUtil.getClonedDataSourceSettings(this.dataSourceSettings),
|
|
26130
|
+
actionName: this.actionObj.actionName,
|
|
26131
|
+
fieldInfo: this.actionObj.fieldInfo,
|
|
26132
|
+
actionInfo: this.actionObj.actionInfo
|
|
26133
|
+
};
|
|
26134
|
+
this.trigger(actionComplete, eventArgs);
|
|
26135
|
+
this.actionObj.actionName = '';
|
|
26136
|
+
this.actionObj.actionInfo = undefined;
|
|
26137
|
+
this.actionObj.fieldInfo = undefined;
|
|
26138
|
+
};
|
|
26139
|
+
/** @hidden */
|
|
26140
|
+
PivotView.prototype.actionFailureMethod = function (error) {
|
|
26141
|
+
var eventArgs = {
|
|
26142
|
+
actionName: this.actionObj.actionName,
|
|
26143
|
+
errorInfo: error
|
|
26144
|
+
};
|
|
26145
|
+
this.trigger(actionFailure, eventArgs);
|
|
26146
|
+
};
|
|
26147
|
+
/** @hidden */
|
|
26148
|
+
PivotView.prototype.getActionCompleteName = function () {
|
|
26149
|
+
var actionName = (this.actionObj.actionName == openConditionalFormatting) ? conditionallyFormatted : (this.actionObj.actionName == openNumberFormatting) ? numberFormatted
|
|
26150
|
+
: (this.actionObj.actionName == tableView) ? tableViewed : (this.actionObj.actionName == chartView) ? chartViewed : (this.actionObj.actionName == hideSubTotals) ? subTotalsHidden : (this.actionObj.actionName == subTotalsRow) ? subTotalsRowShown
|
|
26151
|
+
: (this.actionObj.actionName == subTotalsColumn) ? subTotalsColumnShown : (this.actionObj.actionName == showSubTotals) ? subTotalsShown : (this.actionObj.actionName == hideGrandTotals) ? grandTotalsHidden
|
|
26152
|
+
: (this.actionObj.actionName == grandTotalsRow) ? grandTotalsRowShown : (this.actionObj.actionName == grandTotalsColumn) ? grandTotalsColumnShown : (this.actionObj.actionName == showGrandTotals) ? grandTotalsShown
|
|
26153
|
+
: (this.actionObj.actionName == sortValue) ? valueSorted : (this.actionObj.actionName == openCalculatedField) ? calculatedFieldApplied : (this.actionObj.actionName == editCalculatedField) ? calculatedFieldEdited : (this.actionObj.actionName == sortField) ? fieldSorted
|
|
26154
|
+
: (this.actionObj.actionName == filterField) ? fieldFiltered : (this.actionObj.actionName == removeField) ? fieldRemoved : (this.actionObj.actionName == aggregateField) ? fieldAggregated : this.actionObj.actionName == editRecord ? recordEdited : this.actionObj.actionName == reportChange ? reportChanged
|
|
26155
|
+
: this.actionObj.actionName == saveEditedRecords ? editedRecordsSaved : this.actionObj.actionName == addNewRecord ? newRecordAdded
|
|
26156
|
+
: this.actionObj.actionName == removeRecord ? recordRemoved : (this.actionObj.actionName == pngExport) ? pngExported : (this.actionObj.actionName == jpegExport) ? jpegExported
|
|
26157
|
+
: (this.actionObj.actionName == svgExport) ? svgExported : (this.actionObj.actionName == pdfExport) ? pdfExported : (this.actionObj.actionName == csvExport) ? csvExported : (this.actionObj.actionName == excelExport) ? excelExported : this.actionObj.actionName == windowResize ? windowResized
|
|
26158
|
+
: this.actionObj.actionName == saveCurrentReport ? reportSaved : (this.actionObj.actionName == addNewReport) ? newReportAdded : (this.actionObj.actionName == saveAsCurrentReport) ? reportReSaved
|
|
26159
|
+
: (this.actionObj.actionName == renameCurrentReport) ? reportRenamed : this.actionObj.actionName;
|
|
26160
|
+
return actionName;
|
|
26161
|
+
};
|
|
26162
|
+
/* eslint-disable-next-line */
|
|
26163
|
+
/** @hidden */
|
|
26164
|
+
PivotView.prototype.getStackedColumns = function (gridcolumns, stackedColumns) {
|
|
26165
|
+
for (var _i = 0, gridcolumns_4 = gridcolumns; _i < gridcolumns_4.length; _i++) {
|
|
26166
|
+
var column = gridcolumns_4[_i];
|
|
26167
|
+
stackedColumns.push(column);
|
|
26168
|
+
if (column.columns && column.columns.length > 0) {
|
|
26169
|
+
this.getStackedColumns(column.columns, stackedColumns);
|
|
26170
|
+
}
|
|
26171
|
+
}
|
|
26172
|
+
return stackedColumns;
|
|
26173
|
+
};
|
|
25705
26174
|
/**
|
|
25706
26175
|
* To destroy the PivotView elements.
|
|
25707
26176
|
* @returns {void}
|
|
@@ -25765,8 +26234,8 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
|
|
|
25765
26234
|
if (this.commonModule) {
|
|
25766
26235
|
this.commonModule.destroy();
|
|
25767
26236
|
}
|
|
25768
|
-
if (this.
|
|
25769
|
-
this.
|
|
26237
|
+
if (this.pivotChartModule) {
|
|
26238
|
+
this.pivotChartModule.destroy();
|
|
25770
26239
|
}
|
|
25771
26240
|
if (this.pivotButtonModule && !this.pivotButtonModule.isDestroyed) {
|
|
25772
26241
|
this.pivotButtonModule.destroy();
|
|
@@ -25821,8 +26290,8 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
|
|
|
25821
26290
|
if (this.commonModule) {
|
|
25822
26291
|
this.commonModule = null;
|
|
25823
26292
|
}
|
|
25824
|
-
if (this.
|
|
25825
|
-
this.
|
|
26293
|
+
if (this.pivotChartModule) {
|
|
26294
|
+
this.pivotChartModule = null;
|
|
25826
26295
|
}
|
|
25827
26296
|
if (this.pivotButtonModule) {
|
|
25828
26297
|
this.pivotButtonModule = null;
|
|
@@ -25842,6 +26311,12 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
|
|
|
25842
26311
|
if (this.drillThroughModule) {
|
|
25843
26312
|
this.drillThroughModule = null;
|
|
25844
26313
|
}
|
|
26314
|
+
if (this.clonedDataSet) {
|
|
26315
|
+
this.clonedDataSet = null;
|
|
26316
|
+
}
|
|
26317
|
+
if (this.clonedReport) {
|
|
26318
|
+
this.clonedReport = null;
|
|
26319
|
+
}
|
|
25845
26320
|
this.element.innerHTML = '';
|
|
25846
26321
|
removeClass([this.element], ROOT);
|
|
25847
26322
|
removeClass([this.element], RTL);
|
|
@@ -26184,6 +26659,15 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
|
|
|
26184
26659
|
__decorate([
|
|
26185
26660
|
Event()
|
|
26186
26661
|
], PivotView.prototype, "beforeServiceInvoke", void 0);
|
|
26662
|
+
__decorate([
|
|
26663
|
+
Event()
|
|
26664
|
+
], PivotView.prototype, "actionBegin", void 0);
|
|
26665
|
+
__decorate([
|
|
26666
|
+
Event()
|
|
26667
|
+
], PivotView.prototype, "actionComplete", void 0);
|
|
26668
|
+
__decorate([
|
|
26669
|
+
Event()
|
|
26670
|
+
], PivotView.prototype, "actionFailure", void 0);
|
|
26187
26671
|
PivotView = __decorate([
|
|
26188
26672
|
NotifyPropertyChanges
|
|
26189
26673
|
], PivotView);
|
|
@@ -26198,6 +26682,250 @@ var PivotView = /** @__PURE__ @class */ (function (_super) {
|
|
|
26198
26682
|
* Renderer Export
|
|
26199
26683
|
*/
|
|
26200
26684
|
|
|
26685
|
+
/**
|
|
26686
|
+
* This is a file to perform common utility for OLAP and Relational datasource
|
|
26687
|
+
* @hidden
|
|
26688
|
+
*/
|
|
26689
|
+
var PivotExportUtil = /** @__PURE__ @class */ (function () {
|
|
26690
|
+
function PivotExportUtil() {
|
|
26691
|
+
}
|
|
26692
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
26693
|
+
PivotExportUtil.getDefinedObj = function (data) {
|
|
26694
|
+
var keyPos = 0;
|
|
26695
|
+
var framedSet = {};
|
|
26696
|
+
/* eslint-enable @typescript-eslint/no-explicit-any */
|
|
26697
|
+
if (!(data === null || data === undefined)) {
|
|
26698
|
+
var fields = Object.keys(data);
|
|
26699
|
+
while (keyPos < fields.length) {
|
|
26700
|
+
if (!(data[fields[keyPos]] === null || data[fields[keyPos]] === undefined)) {
|
|
26701
|
+
framedSet[fields[keyPos]] = data[fields[keyPos]];
|
|
26702
|
+
}
|
|
26703
|
+
keyPos++;
|
|
26704
|
+
}
|
|
26705
|
+
}
|
|
26706
|
+
else {
|
|
26707
|
+
framedSet = data;
|
|
26708
|
+
}
|
|
26709
|
+
return framedSet;
|
|
26710
|
+
};
|
|
26711
|
+
PivotExportUtil.getClonedPivotValues = function (pivotValues) {
|
|
26712
|
+
var clonedSets = [];
|
|
26713
|
+
for (var i = 0; i < pivotValues.length; i++) {
|
|
26714
|
+
if (pivotValues[i]) {
|
|
26715
|
+
clonedSets[i] = [];
|
|
26716
|
+
for (var j = 0; j < pivotValues[i].length; j++) {
|
|
26717
|
+
if (pivotValues[i][j]) {
|
|
26718
|
+
/* eslint-disable */
|
|
26719
|
+
clonedSets[i][j] = this.getClonedPivotValueObj(pivotValues[i][j]);
|
|
26720
|
+
/* eslint-enable */
|
|
26721
|
+
}
|
|
26722
|
+
}
|
|
26723
|
+
}
|
|
26724
|
+
}
|
|
26725
|
+
return clonedSets;
|
|
26726
|
+
};
|
|
26727
|
+
/* eslint-disable */
|
|
26728
|
+
PivotExportUtil.getClonedPivotValueObj = function (data) {
|
|
26729
|
+
/* eslint-enable */
|
|
26730
|
+
var keyPos = 0;
|
|
26731
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
26732
|
+
var framedSet = {};
|
|
26733
|
+
/* eslint-enable @typescript-eslint/no-explicit-any */
|
|
26734
|
+
if (!(data === null || data === undefined)) {
|
|
26735
|
+
var fields = Object.keys(data);
|
|
26736
|
+
while (keyPos < fields.length) {
|
|
26737
|
+
framedSet[fields[keyPos]] = data[fields[keyPos]];
|
|
26738
|
+
keyPos++;
|
|
26739
|
+
}
|
|
26740
|
+
}
|
|
26741
|
+
else {
|
|
26742
|
+
framedSet = data;
|
|
26743
|
+
}
|
|
26744
|
+
return framedSet;
|
|
26745
|
+
};
|
|
26746
|
+
/* eslint-disable */
|
|
26747
|
+
PivotExportUtil.isContainCommonElements = function (collection1, collection2) {
|
|
26748
|
+
/* eslint-enable */
|
|
26749
|
+
for (var i = 0, cnt = collection1.length; i < cnt; i++) {
|
|
26750
|
+
for (var j = 0, lnt = collection2.length; j < lnt; j++) {
|
|
26751
|
+
if (collection2[j] === collection1[i]) {
|
|
26752
|
+
return true;
|
|
26753
|
+
}
|
|
26754
|
+
}
|
|
26755
|
+
}
|
|
26756
|
+
return false;
|
|
26757
|
+
};
|
|
26758
|
+
/* eslint-disable */
|
|
26759
|
+
PivotExportUtil.formatPdfHeaderFooter = function (pdf) {
|
|
26760
|
+
var contents = [];
|
|
26761
|
+
if (!isNullOrUndefined(pdf)) {
|
|
26762
|
+
for (var i = 0; i < pdf.length; i++) {
|
|
26763
|
+
var a = pdf[i];
|
|
26764
|
+
var content = {
|
|
26765
|
+
/* eslint-enable */
|
|
26766
|
+
type: a.Type,
|
|
26767
|
+
pageNumberType: a.PageNumberType,
|
|
26768
|
+
style: a.Style ? {
|
|
26769
|
+
penColor: a.Style.PenColor,
|
|
26770
|
+
penSize: a.Style.PenSize,
|
|
26771
|
+
dashStyle: a.Style.DashStyle,
|
|
26772
|
+
textBrushColor: a.Style.TextBrushColor,
|
|
26773
|
+
textPenColor: a.Style.TextPenColor,
|
|
26774
|
+
fontSize: a.Style.FontSize,
|
|
26775
|
+
hAlign: a.Style.HAlign,
|
|
26776
|
+
vAlign: a.Style.VAlign
|
|
26777
|
+
} : a.Style,
|
|
26778
|
+
points: a.Points !== null ? {
|
|
26779
|
+
x1: a.Points.X1,
|
|
26780
|
+
y1: a.Points.Y1,
|
|
26781
|
+
x2: a.Points.X2,
|
|
26782
|
+
y2: a.Points.Y2
|
|
26783
|
+
} : null,
|
|
26784
|
+
format: a.Format,
|
|
26785
|
+
position: a.Position !== null ? {
|
|
26786
|
+
x: a.Position.X,
|
|
26787
|
+
y: a.Position.Y
|
|
26788
|
+
} : null,
|
|
26789
|
+
size: a.Size !== null ? {
|
|
26790
|
+
height: a.Size.Height,
|
|
26791
|
+
width: a.Size.Width
|
|
26792
|
+
} : null,
|
|
26793
|
+
src: a.Src,
|
|
26794
|
+
value: a.Value,
|
|
26795
|
+
font: a.Font
|
|
26796
|
+
};
|
|
26797
|
+
contents.push(content);
|
|
26798
|
+
}
|
|
26799
|
+
}
|
|
26800
|
+
return contents;
|
|
26801
|
+
};
|
|
26802
|
+
/* eslint-disable */
|
|
26803
|
+
PivotExportUtil.formatPdfExportProperties = function (pdf) {
|
|
26804
|
+
var values;
|
|
26805
|
+
/* eslint-enable */
|
|
26806
|
+
values = this.getDefinedObj({
|
|
26807
|
+
pageOrientation: typeof pdf.PageOrientation === 'string' ? pdf.PageOrientation : null,
|
|
26808
|
+
pageSize: typeof pdf.PageSize === 'string' ? pdf.PageSize : null,
|
|
26809
|
+
header: !isNullOrUndefined(pdf.Header) ? {
|
|
26810
|
+
fromTop: pdf.Header.FromTop,
|
|
26811
|
+
height: pdf.Header.Height,
|
|
26812
|
+
contents: this.formatPdfHeaderFooter(pdf.Header.Contents)
|
|
26813
|
+
} : null,
|
|
26814
|
+
columns: pdf.Columns,
|
|
26815
|
+
footer: !isNullOrUndefined(pdf.Footer) ? {
|
|
26816
|
+
fromTop: pdf.Footer.FromBottom,
|
|
26817
|
+
height: pdf.Footer.Height,
|
|
26818
|
+
contents: this.formatPdfHeaderFooter(pdf.Footer.Contents)
|
|
26819
|
+
} : null,
|
|
26820
|
+
includeHiddenColumn: pdf.IncludeHiddenColumn,
|
|
26821
|
+
dataSource: pdf.DataSource,
|
|
26822
|
+
exportType: typeof pdf.ExportType === 'string' ? pdf.ExportType : null,
|
|
26823
|
+
theme: !isNullOrUndefined(pdf.Theme) ? {
|
|
26824
|
+
header: pdf.Theme.Header,
|
|
26825
|
+
record: pdf.Theme.Record,
|
|
26826
|
+
caption: pdf.Theme.Caption
|
|
26827
|
+
} : null,
|
|
26828
|
+
fileName: pdf.FileName,
|
|
26829
|
+
hierarchyExportMode: typeof pdf.HierarchyExportMode === 'string' ? pdf.HierarchyExportMode : null,
|
|
26830
|
+
allowHorizontalOverflow: pdf.AllowHorizontalOverflow
|
|
26831
|
+
});
|
|
26832
|
+
return values;
|
|
26833
|
+
};
|
|
26834
|
+
/* eslint-disable */
|
|
26835
|
+
PivotExportUtil.formatExcelStyle = function (style) {
|
|
26836
|
+
var prop;
|
|
26837
|
+
/* eslint-enable */
|
|
26838
|
+
if (!isNullOrUndefined(style)) {
|
|
26839
|
+
prop = this.getDefinedObj({
|
|
26840
|
+
fontColor: style.FontColor,
|
|
26841
|
+
fontName: style.FontName,
|
|
26842
|
+
fontSize: style.FontSize,
|
|
26843
|
+
hAlign: style.HAlign === String ? style.HAlign : null,
|
|
26844
|
+
vAlign: style.VAlign === String ? style.VAlign : null,
|
|
26845
|
+
bold: style.Bold,
|
|
26846
|
+
indent: style.Indent,
|
|
26847
|
+
italic: style.Italic,
|
|
26848
|
+
underline: style.Underline,
|
|
26849
|
+
backColor: style.BackColor,
|
|
26850
|
+
wrapText: style.WrapText,
|
|
26851
|
+
borders: style.Borders,
|
|
26852
|
+
numberFormat: style.NumberFormat,
|
|
26853
|
+
type: style.Type
|
|
26854
|
+
});
|
|
26855
|
+
}
|
|
26856
|
+
return prop;
|
|
26857
|
+
};
|
|
26858
|
+
/* eslint-disable */
|
|
26859
|
+
PivotExportUtil.formatExcelCell = function (cell) {
|
|
26860
|
+
var cells = [];
|
|
26861
|
+
if (!isNullOrUndefined(cell)) {
|
|
26862
|
+
for (var i = 0; i < cell.length; i++) {
|
|
26863
|
+
this.getDefinedObj({
|
|
26864
|
+
index: !isNullOrUndefined(cell[i].Index) ? cell[i].Index : null,
|
|
26865
|
+
colSpan: !isNullOrUndefined(cell[i].ColSpan) ? cell[i].ColSpan : null,
|
|
26866
|
+
value: !isNullOrUndefined(cell[i].Value) ? cell[i].Value : null,
|
|
26867
|
+
hyperlink: {
|
|
26868
|
+
target: !isNullOrUndefined(cell[i].Hyperlink) ? cell[i].Hyperlink.Target : null,
|
|
26869
|
+
displayText: !isNullOrUndefined(cell[i].Hyperlink) ? cell[i].Hyperlink.DisplayText : null
|
|
26870
|
+
},
|
|
26871
|
+
styles: this.formatExcelStyle(cell[i].Style),
|
|
26872
|
+
rowSpan: !isNullOrUndefined(cell[i].RowSpan) ? cell[i].RowSpan : null
|
|
26873
|
+
});
|
|
26874
|
+
/* eslint-enable */
|
|
26875
|
+
}
|
|
26876
|
+
}
|
|
26877
|
+
return cells;
|
|
26878
|
+
};
|
|
26879
|
+
/* eslint-disable */
|
|
26880
|
+
PivotExportUtil.formatExcelHeaderFooter = function (excel) {
|
|
26881
|
+
var rows = [];
|
|
26882
|
+
if (!isNullOrUndefined(excel)) {
|
|
26883
|
+
for (var i = 0; i < excel.Rows.length; i++) {
|
|
26884
|
+
var row = excel.Rows[i];
|
|
26885
|
+
var prop = this.getDefinedObj({
|
|
26886
|
+
index: !isNullOrUndefined(row.Index) ? row.Index : null,
|
|
26887
|
+
cells: this.formatExcelCell(row.Cells),
|
|
26888
|
+
grouping: !isNullOrUndefined(row.Grouping) ? row.Grouping : null
|
|
26889
|
+
});
|
|
26890
|
+
rows.push(prop);
|
|
26891
|
+
}
|
|
26892
|
+
}
|
|
26893
|
+
return rows;
|
|
26894
|
+
};
|
|
26895
|
+
PivotExportUtil.formatExcelExportProperties = function (excel) {
|
|
26896
|
+
/* eslint-enable */
|
|
26897
|
+
var prop;
|
|
26898
|
+
prop = this.getDefinedObj({
|
|
26899
|
+
dataSource: excel.DataSource,
|
|
26900
|
+
query: excel.Query,
|
|
26901
|
+
multipleExport: this.getDefinedObj({
|
|
26902
|
+
type: !isNullOrUndefined(excel.MultipleExport) ? excel.MultipleExport.Type : null,
|
|
26903
|
+
blankRows: !isNullOrUndefined(excel.MultipleExport) ? excel.MultipleExport.BlankRows : null
|
|
26904
|
+
}),
|
|
26905
|
+
header: this.getDefinedObj({
|
|
26906
|
+
headerRows: !isNullOrUndefined(excel.Header) ? excel.Header.HeaderRows : null,
|
|
26907
|
+
rows: this.formatExcelHeaderFooter(excel.Header)
|
|
26908
|
+
}),
|
|
26909
|
+
footer: this.getDefinedObj({
|
|
26910
|
+
footerRows: !isNullOrUndefined(excel.Footer) ? excel.Footer.FooterRows : null,
|
|
26911
|
+
rows: this.formatExcelHeaderFooter(excel.Footer)
|
|
26912
|
+
}),
|
|
26913
|
+
columns: excel.Columns,
|
|
26914
|
+
exportType: typeof excel.ExportType === 'string' ? excel.ExportType : undefined,
|
|
26915
|
+
includeHiddenColumn: excel.IncludeHiddenColumn,
|
|
26916
|
+
theme: !isNullOrUndefined(excel.Theme) ? {
|
|
26917
|
+
header: this.formatExcelStyle(excel.Theme.Header),
|
|
26918
|
+
record: this.formatExcelStyle(excel.Theme.Record),
|
|
26919
|
+
caption: this.formatExcelStyle(excel.Theme.Caption)
|
|
26920
|
+
} : undefined,
|
|
26921
|
+
fileName: excel.FileName,
|
|
26922
|
+
hierarchyExportMode: typeof excel.HierarchyExportMode === 'string' ? excel.HierarchyExportMode : undefined
|
|
26923
|
+
});
|
|
26924
|
+
return prop;
|
|
26925
|
+
};
|
|
26926
|
+
return PivotExportUtil;
|
|
26927
|
+
}());
|
|
26928
|
+
|
|
26201
26929
|
/**
|
|
26202
26930
|
* @hidden
|
|
26203
26931
|
* `ExcelExport` module is used to handle the Excel export action.
|
|
@@ -26265,7 +26993,7 @@ var ExcelExport$1 = /** @__PURE__ @class */ (function () {
|
|
|
26265
26993
|
this.engine = this.parent.dataType === 'olap' ? this.parent.olapEngineModule : this.parent.engineModule;
|
|
26266
26994
|
/** Event trigerring */
|
|
26267
26995
|
var clonedValues;
|
|
26268
|
-
var currentPivotValues =
|
|
26996
|
+
var currentPivotValues = PivotExportUtil.getClonedPivotValues(this.engine.pivotValues);
|
|
26269
26997
|
var customFileName = isFileNameSet ? exportProperties.fileName : 'default.xlsx';
|
|
26270
26998
|
if (isHeaderSet) {
|
|
26271
26999
|
this.addHeaderAndFooter(exportProperties.header, '', 'header', exportProperties.header.headerRows);
|
|
@@ -26275,7 +27003,7 @@ var ExcelExport$1 = /** @__PURE__ @class */ (function () {
|
|
|
26275
27003
|
this.engine.pageSettings = null;
|
|
26276
27004
|
this.engine.generateGridData(this.parent.dataSourceSettings, true);
|
|
26277
27005
|
this.parent.applyFormatting(this.engine.pivotValues);
|
|
26278
|
-
clonedValues =
|
|
27006
|
+
clonedValues = PivotExportUtil.getClonedPivotValues(this.engine.pivotValues);
|
|
26279
27007
|
this.engine.pivotValues = currentPivotValues;
|
|
26280
27008
|
this.engine.pageSettings = pageSettings;
|
|
26281
27009
|
}
|
|
@@ -26319,15 +27047,17 @@ var ExcelExport$1 = /** @__PURE__ @class */ (function () {
|
|
|
26319
27047
|
var pivotCell = pivotValues[rCnt][cCnt];
|
|
26320
27048
|
if (!(pivotCell.level === -1 && !pivotCell.rowSpan)) {
|
|
26321
27049
|
var cellValue = pivotCell.axis === 'value' ? pivotCell.value : pivotCell.formattedText;
|
|
26322
|
-
|
|
26323
|
-
|
|
26324
|
-
|
|
27050
|
+
var isgetValuesHeader = ((this.parent.dataSourceSettings.rows.length === 0 && this.parent.dataSourceSettings.valueAxis === 'row')
|
|
27051
|
+
|| (this.parent.dataSourceSettings.columns.length === 0 && this.parent.dataSourceSettings.valueAxis === 'column'));
|
|
27052
|
+
if (pivotCell.type === 'grand sum' && !(this.parent.dataSourceSettings.values.length === 1 && this.parent.dataSourceSettings.valueAxis === 'row' && pivotCell.axis === 'column')) {
|
|
27053
|
+
cellValue = isgetValuesHeader ? this.parent.getValuesHeader(pivotCell, 'grandTotal') : this.parent.localeObj.getConstant('grandTotal');
|
|
26325
27054
|
}
|
|
26326
27055
|
else if (pivotCell.type === 'sum') {
|
|
26327
27056
|
cellValue = cellValue.toString().replace('Total', this.parent.localeObj.getConstant('total'));
|
|
26328
27057
|
}
|
|
26329
27058
|
else {
|
|
26330
|
-
cellValue = (this.parent.
|
|
27059
|
+
cellValue = (!isNullOrUndefined(pivotCell.valueSort) && (this.parent.localeObj.getConstant('grandTotal') + this.parent.dataSourceSettings.valueSortSettings.headerDelimiter + pivotCell.formattedText
|
|
27060
|
+
=== pivotCell.valueSort.levelName) && isgetValuesHeader) ? this.parent.getValuesHeader(pivotCell, 'value') : cellValue;
|
|
26331
27061
|
}
|
|
26332
27062
|
if (!(pivotCell.level === -1 && !pivotCell.rowSpan)) {
|
|
26333
27063
|
cells.push({
|
|
@@ -26841,13 +27571,13 @@ var PDFExport = /** @__PURE__ @class */ (function () {
|
|
|
26841
27571
|
var _this = this;
|
|
26842
27572
|
/** Event trigerring */
|
|
26843
27573
|
var clonedValues;
|
|
26844
|
-
var currentPivotValues =
|
|
27574
|
+
var currentPivotValues = PivotExportUtil.getClonedPivotValues(this.engine.pivotValues);
|
|
26845
27575
|
if (this.parent.exportAllPages && this.parent.enableVirtualization && this.parent.dataType !== 'olap') {
|
|
26846
27576
|
var pageSettings = this.engine.pageSettings;
|
|
26847
27577
|
this.engine.pageSettings = null;
|
|
26848
27578
|
this.engine.generateGridData(this.parent.dataSourceSettings, true);
|
|
26849
27579
|
this.parent.applyFormatting(this.engine.pivotValues);
|
|
26850
|
-
clonedValues =
|
|
27580
|
+
clonedValues = PivotExportUtil.getClonedPivotValues(this.engine.pivotValues);
|
|
26851
27581
|
this.engine.pivotValues = currentPivotValues;
|
|
26852
27582
|
this.engine.pageSettings = pageSettings;
|
|
26853
27583
|
}
|
|
@@ -27339,31 +28069,50 @@ var DialogRenderer = /** @__PURE__ @class */ (function () {
|
|
|
27339
28069
|
return axisWrapper;
|
|
27340
28070
|
};
|
|
27341
28071
|
DialogRenderer.prototype.showCalculatedField = function (event) {
|
|
27342
|
-
|
|
27343
|
-
if (this.parent.
|
|
27344
|
-
this.parent.
|
|
27345
|
-
|
|
28072
|
+
try {
|
|
28073
|
+
if (!this.parent.isAdaptive) {
|
|
28074
|
+
this.parent.actionObj.actionName = openCalculatedField;
|
|
28075
|
+
if (this.parent.actionBeginMethod()) {
|
|
28076
|
+
return;
|
|
28077
|
+
}
|
|
28078
|
+
if (this.parent.dialogRenderer.fieldListDialog) {
|
|
28079
|
+
this.parent.dialogRenderer.fieldListDialog.hide();
|
|
28080
|
+
addClass([this.parent.element.querySelector('.' + TOGGLE_FIELD_LIST_CLASS)], ICON_HIDDEN);
|
|
28081
|
+
}
|
|
27346
28082
|
}
|
|
28083
|
+
this.parent.notify(initCalculatedField, {});
|
|
28084
|
+
}
|
|
28085
|
+
catch (execption) {
|
|
28086
|
+
this.parent.actionFailureMethod(execption);
|
|
27347
28087
|
}
|
|
27348
|
-
this.parent.notify(initCalculatedField, {});
|
|
27349
28088
|
};
|
|
27350
28089
|
DialogRenderer.prototype.showFieldListDialog = function (event) {
|
|
27351
28090
|
var activeindex = this.adaptiveElement.selectedItem;
|
|
27352
28091
|
this.parent.treeViewModule.render(activeindex);
|
|
27353
28092
|
};
|
|
27354
28093
|
DialogRenderer.prototype.onShowFieldList = function () {
|
|
27355
|
-
|
|
27356
|
-
|
|
27357
|
-
|
|
28094
|
+
this.parent.actionObj.actionName = showFieldList;
|
|
28095
|
+
if (this.parent.actionBeginMethod()) {
|
|
28096
|
+
return;
|
|
28097
|
+
}
|
|
28098
|
+
this.parent.actionObj.actionName = '';
|
|
28099
|
+
try {
|
|
28100
|
+
if (this.parent.allowDeferLayoutUpdate) {
|
|
28101
|
+
if (this.parent.isAdaptive) {
|
|
28102
|
+
this.parent.axisFieldModule.render();
|
|
28103
|
+
}
|
|
28104
|
+
this.parent.clonedDataSource = extend({}, this.parent.dataSourceSettings, null, true);
|
|
28105
|
+
this.parent.clonedFieldList = extend({}, this.parent.pivotFieldList, null, true);
|
|
27358
28106
|
}
|
|
27359
|
-
this.parent.
|
|
27360
|
-
this.parent.
|
|
28107
|
+
addClass([this.parent.element.querySelector('.' + TOGGLE_FIELD_LIST_CLASS)], ICON_HIDDEN);
|
|
28108
|
+
this.parent.dialogRenderer.fieldListDialog.show();
|
|
28109
|
+
this.parent.dialogRenderer.fieldListDialog.element.style.top =
|
|
28110
|
+
parseInt(this.parent.dialogRenderer.fieldListDialog.element.style.top, 10) < 0 ?
|
|
28111
|
+
'0px' : this.parent.dialogRenderer.fieldListDialog.element.style.top;
|
|
28112
|
+
}
|
|
28113
|
+
catch (execption) {
|
|
28114
|
+
this.parent.actionFailureMethod(execption);
|
|
27361
28115
|
}
|
|
27362
|
-
addClass([this.parent.element.querySelector('.' + TOGGLE_FIELD_LIST_CLASS)], ICON_HIDDEN);
|
|
27363
|
-
this.parent.dialogRenderer.fieldListDialog.show();
|
|
27364
|
-
this.parent.dialogRenderer.fieldListDialog.element.style.top =
|
|
27365
|
-
parseInt(this.parent.dialogRenderer.fieldListDialog.element.style.top, 10) < 0 ?
|
|
27366
|
-
'0px' : this.parent.dialogRenderer.fieldListDialog.element.style.top;
|
|
27367
28116
|
};
|
|
27368
28117
|
DialogRenderer.prototype.onCloseFieldList = function () {
|
|
27369
28118
|
if (this.parent.allowDeferLayoutUpdate) {
|
|
@@ -27391,6 +28140,10 @@ var DialogRenderer = /** @__PURE__ @class */ (function () {
|
|
|
27391
28140
|
}
|
|
27392
28141
|
}
|
|
27393
28142
|
this.parent.dialogRenderer.fieldListDialog.hide();
|
|
28143
|
+
this.parent.actionObj.actionName = closeFieldlist;
|
|
28144
|
+
if (this.parent.actionObj.actionName) {
|
|
28145
|
+
this.parent.actionCompleteMethod();
|
|
28146
|
+
}
|
|
27394
28147
|
};
|
|
27395
28148
|
DialogRenderer.prototype.removeFieldListIcon = function () {
|
|
27396
28149
|
if (this.parent.isAdaptive && this.parent.allowCalculatedField && this.parent.calculatedFieldModule) {
|
|
@@ -28280,28 +29033,41 @@ var TreeViewRenderer = /** @__PURE__ @class */ (function () {
|
|
|
28280
29033
|
TreeViewRenderer.prototype.updateSorting = function (args) {
|
|
28281
29034
|
var target = args.target;
|
|
28282
29035
|
var option = target.getAttribute('data-sort');
|
|
28283
|
-
|
|
28284
|
-
|
|
28285
|
-
|
|
28286
|
-
|
|
28287
|
-
|
|
28288
|
-
|
|
28289
|
-
|
|
28290
|
-
|
|
28291
|
-
|
|
28292
|
-
|
|
28293
|
-
|
|
28294
|
-
|
|
28295
|
-
|
|
28296
|
-
|
|
28297
|
-
|
|
28298
|
-
|
|
28299
|
-
|
|
28300
|
-
|
|
28301
|
-
|
|
28302
|
-
|
|
29036
|
+
this.parent.actionObj.actionName = sortFieldTree;
|
|
29037
|
+
if (this.parent.actionBeginMethod()) {
|
|
29038
|
+
return;
|
|
29039
|
+
}
|
|
29040
|
+
try {
|
|
29041
|
+
if (target.className.indexOf('e-selected') === -1) {
|
|
29042
|
+
switch (option) {
|
|
29043
|
+
case 'None':
|
|
29044
|
+
this.fieldListSort = 'None';
|
|
29045
|
+
addClass([target], 'e-selected');
|
|
29046
|
+
removeClass([this.parentElement.querySelector('.e-sort-ascend')], 'e-selected');
|
|
29047
|
+
removeClass([this.parentElement.querySelector('.e-sort-descend')], 'e-selected');
|
|
29048
|
+
break;
|
|
29049
|
+
case 'Ascend':
|
|
29050
|
+
this.fieldListSort = 'Ascend';
|
|
29051
|
+
addClass([target], 'e-selected');
|
|
29052
|
+
removeClass([this.parentElement.querySelector('.e-sort-none')], 'e-selected');
|
|
29053
|
+
removeClass([this.parentElement.querySelector('.e-sort-descend')], 'e-selected');
|
|
29054
|
+
break;
|
|
29055
|
+
case 'Descend':
|
|
29056
|
+
this.fieldListSort = 'Descend';
|
|
29057
|
+
addClass([target], 'e-selected');
|
|
29058
|
+
removeClass([this.parentElement.querySelector('.e-sort-ascend')], 'e-selected');
|
|
29059
|
+
removeClass([this.parentElement.querySelector('.e-sort-none')], 'e-selected');
|
|
29060
|
+
break;
|
|
29061
|
+
}
|
|
29062
|
+
this.refreshTreeView();
|
|
28303
29063
|
}
|
|
28304
|
-
|
|
29064
|
+
}
|
|
29065
|
+
catch (execption) {
|
|
29066
|
+
this.parent.actionFailureMethod(execption);
|
|
29067
|
+
}
|
|
29068
|
+
this.parent.actionObj.actionName = this.parent.getActionCompleteName();
|
|
29069
|
+
if (this.parent.actionObj.actionName) {
|
|
29070
|
+
this.parent.actionCompleteMethod();
|
|
28305
29071
|
}
|
|
28306
29072
|
};
|
|
28307
29073
|
/* eslint-disable */
|
|
@@ -28669,7 +29435,7 @@ var PivotButton = /** @__PURE__ @class */ (function () {
|
|
|
28669
29435
|
attrs: { 'tabindex': '-1', 'aria-disabled': 'false', 'title': this.parent.localeObj.getConstant('editCalculatedField') },
|
|
28670
29436
|
className: ICON + ' ' + CALC_EDIT
|
|
28671
29437
|
});
|
|
28672
|
-
if (this.parent.allowCalculatedField && this.parent.calculatedFieldModule && field[i].showEditIcon) {
|
|
29438
|
+
if (this.parent.allowCalculatedField && this.parent.calculatedFieldModule && (field[i].showEditIcon || field[i].showEditIcon === undefined)) {
|
|
28673
29439
|
removeClass([calcElement], ICON_DISABLE);
|
|
28674
29440
|
}
|
|
28675
29441
|
else {
|
|
@@ -28682,7 +29448,7 @@ var PivotButton = /** @__PURE__ @class */ (function () {
|
|
|
28682
29448
|
className: ICON + ' ' + REMOVE_CLASS
|
|
28683
29449
|
});
|
|
28684
29450
|
if (this.parent.getModuleName() === 'pivotview') {
|
|
28685
|
-
if ((this.parent.groupingBarSettings.showRemoveIcon && field[i].showRemoveIcon)) {
|
|
29451
|
+
if ((this.parent.groupingBarSettings.showRemoveIcon && (field[i].showRemoveIcon || field[i].showRemoveIcon === undefined))) {
|
|
28686
29452
|
removeClass([removeElement], ICON_DISABLE);
|
|
28687
29453
|
}
|
|
28688
29454
|
else {
|
|
@@ -28690,7 +29456,7 @@ var PivotButton = /** @__PURE__ @class */ (function () {
|
|
|
28690
29456
|
}
|
|
28691
29457
|
}
|
|
28692
29458
|
else {
|
|
28693
|
-
if (field[i].showRemoveIcon) {
|
|
29459
|
+
if (field[i].showRemoveIcon || field[i].showRemoveIcon === undefined) {
|
|
28694
29460
|
removeClass([removeElement], ICON_DISABLE);
|
|
28695
29461
|
}
|
|
28696
29462
|
else {
|
|
@@ -28722,13 +29488,13 @@ var PivotButton = /** @__PURE__ @class */ (function () {
|
|
|
28722
29488
|
}
|
|
28723
29489
|
if (axis === 'values') {
|
|
28724
29490
|
var _loop_1 = function (element) {
|
|
28725
|
-
if (element.classList.contains(GROUP_CHART_VALUE) && this_1.parent.
|
|
29491
|
+
if (element.classList.contains(GROUP_CHART_VALUE) && this_1.parent.pivotChartModule) {
|
|
28726
29492
|
var valueData = field.map(function (item) { return { text: item.caption ? item.caption : item.name, value: item.name }; });
|
|
28727
29493
|
var parent_1 = this_1.parent;
|
|
28728
29494
|
if (this_1.valueFiedDropDownList && element.querySelector('.' + GROUP_CHART_VALUE_DROPDOWN_DIV)) {
|
|
28729
29495
|
this_1.valueFiedDropDownList.dataSource = valueData;
|
|
28730
29496
|
this_1.valueFiedDropDownList.value = !parent_1.chartSettings.enableMultipleAxis ?
|
|
28731
|
-
parent_1.
|
|
29497
|
+
parent_1.pivotChartModule.currentMeasure : valueData[0].value;
|
|
28732
29498
|
}
|
|
28733
29499
|
else {
|
|
28734
29500
|
var ddlDiv = createElement('div', { className: GROUP_CHART_VALUE_DROPDOWN_DIV });
|
|
@@ -28738,7 +29504,7 @@ var PivotButton = /** @__PURE__ @class */ (function () {
|
|
|
28738
29504
|
enableRtl: this_1.parent.enableRtl,
|
|
28739
29505
|
locale: this_1.parent.locale,
|
|
28740
29506
|
value: !parent_1.chartSettings.enableMultipleAxis ?
|
|
28741
|
-
parent_1.
|
|
29507
|
+
parent_1.pivotChartModule.currentMeasure : valueData[0].value,
|
|
28742
29508
|
width: 200,
|
|
28743
29509
|
fields: { value: 'value', text: 'text' },
|
|
28744
29510
|
cssClass: GROUP_CHART_VALUE_DROPDOWN,
|
|
@@ -28763,14 +29529,14 @@ var PivotButton = /** @__PURE__ @class */ (function () {
|
|
|
28763
29529
|
var availColindex = undefined;
|
|
28764
29530
|
for (var _g = 0, _h = this.parentElement.querySelectorAll('.e-group-' + axis); _g < _h.length; _g++) {
|
|
28765
29531
|
var element = _h[_g];
|
|
28766
|
-
if (element.classList.contains(GROUP_CHART_COLUMN) && this.parent.
|
|
28767
|
-
var currentMeasure = this.parent.
|
|
29532
|
+
if (element.classList.contains(GROUP_CHART_COLUMN) && this.parent.pivotChartModule) {
|
|
29533
|
+
var currentMeasure = this.parent.pivotChartModule.currentMeasure;
|
|
28768
29534
|
var delimiter = this.parent.chartSettings.columnDelimiter ? this.parent.chartSettings.columnDelimiter : '-';
|
|
28769
29535
|
var columnHeader = (this.parent.chartSettings.columnHeader && this.parent.chartSettings.columnHeader !== '') ?
|
|
28770
29536
|
this.parent.chartSettings.columnHeader.split(delimiter).join(' - ') : '';
|
|
28771
29537
|
var engineModule = this.parent.dataType === 'olap' ? this.parent.olapEngineModule : this.parent.engineModule;
|
|
28772
29538
|
var pivotValues = engineModule.pivotValues;
|
|
28773
|
-
var totColIndex = this.parent.
|
|
29539
|
+
var totColIndex = this.parent.pivotChartModule.getColumnTotalIndex(pivotValues);
|
|
28774
29540
|
var rKeys = Object.keys(pivotValues);
|
|
28775
29541
|
var columnData = [];
|
|
28776
29542
|
var firstValueRow = false;
|
|
@@ -28882,7 +29648,7 @@ var PivotButton = /** @__PURE__ @class */ (function () {
|
|
|
28882
29648
|
},
|
|
28883
29649
|
className: PIVOT_BUTTON_CONTENT_CLASS + ' ' +
|
|
28884
29650
|
(this.parent.getModuleName() === 'pivotview' ?
|
|
28885
|
-
this.parent.groupingBarSettings.allowDragAndDrop && field[i].allowDragAndDrop ? '' : DRAG_DISABLE_CLASS : ''),
|
|
29651
|
+
this.parent.groupingBarSettings.allowDragAndDrop && (field[i].allowDragAndDrop || field[i].allowDragAndDrop === undefined) ? '' : DRAG_DISABLE_CLASS : ''),
|
|
28886
29652
|
innerHTML: axis === 'filters' ? (this.parent.dataType === 'olap' && engineModule.fieldList[field[i].name].type === 'CalculatedField') ?
|
|
28887
29653
|
text : (text + ' (' + filterMem + ')') : (this.parent.dataType === 'olap' ?
|
|
28888
29654
|
text : (!this.parent.dataSourceSettings.showAggregationOnValueField || axis !== 'values' || aggregation === 'CalculatedField' ?
|
|
@@ -28948,43 +29714,54 @@ var PivotButton = /** @__PURE__ @class */ (function () {
|
|
|
28948
29714
|
};
|
|
28949
29715
|
PivotButton.prototype.openCalculatedFieldDialog = function (args) {
|
|
28950
29716
|
var fieldName = args.target.parentElement.id;
|
|
28951
|
-
|
|
28952
|
-
|
|
28953
|
-
|
|
28954
|
-
|
|
28955
|
-
|
|
28956
|
-
.querySelector('.' + TOGGLE_FIELD_LIST_CLASS).click();
|
|
28957
|
-
this.parent.pivotFieldListModule.dialogRenderer.adaptiveElement.select(4);
|
|
28958
|
-
/* eslint-disable-next-line @typescript-eslint/no-explicit-any */
|
|
28959
|
-
this.parent.pivotFieldListModule.calculatedFieldModule
|
|
28960
|
-
.updateAdaptiveCalculatedField(true, fieldName);
|
|
28961
|
-
}
|
|
28962
|
-
else {
|
|
28963
|
-
if (!this.parent.isAdaptive) {
|
|
28964
|
-
this.parent.calculatedFieldModule.buttonCall = true;
|
|
28965
|
-
}
|
|
28966
|
-
this.parent.notify(initCalculatedField, { edit: true, fieldName: fieldName });
|
|
28967
|
-
}
|
|
29717
|
+
var fieldInfo = PivotUtil.getFieldInfo(fieldName, this.parent);
|
|
29718
|
+
this.parent.actionObj.actionName = editCalculatedField;
|
|
29719
|
+
this.parent.actionObj.fieldInfo = fieldInfo;
|
|
29720
|
+
if (this.parent.actionBeginMethod()) {
|
|
29721
|
+
return;
|
|
28968
29722
|
}
|
|
28969
|
-
|
|
28970
|
-
if (this.parent.
|
|
28971
|
-
this.parent.
|
|
28972
|
-
|
|
28973
|
-
|
|
28974
|
-
.
|
|
28975
|
-
|
|
28976
|
-
|
|
28977
|
-
|
|
28978
|
-
|
|
28979
|
-
|
|
28980
|
-
|
|
29723
|
+
try {
|
|
29724
|
+
if (this.parent.getModuleName() === 'pivotview') {
|
|
29725
|
+
if (this.parent.isAdaptive && (this.parent.showFieldList &&
|
|
29726
|
+
this.parent.pivotFieldListModule &&
|
|
29727
|
+
!this.parent.pivotFieldListModule.isDestroyed)) {
|
|
29728
|
+
this.parent.pivotFieldListModule.element
|
|
29729
|
+
.querySelector('.' + TOGGLE_FIELD_LIST_CLASS).click();
|
|
29730
|
+
this.parent.pivotFieldListModule.dialogRenderer.adaptiveElement.select(4);
|
|
29731
|
+
/* eslint-disable-next-line @typescript-eslint/no-explicit-any */
|
|
29732
|
+
this.parent.pivotFieldListModule.calculatedFieldModule
|
|
29733
|
+
.updateAdaptiveCalculatedField(true, fieldName);
|
|
29734
|
+
}
|
|
29735
|
+
else {
|
|
29736
|
+
if (!this.parent.isAdaptive) {
|
|
29737
|
+
this.parent.calculatedFieldModule.buttonCall = true;
|
|
29738
|
+
}
|
|
29739
|
+
this.parent.notify(initCalculatedField, { edit: true, fieldName: fieldName });
|
|
28981
29740
|
}
|
|
28982
|
-
|
|
28983
|
-
|
|
29741
|
+
}
|
|
29742
|
+
else if (this.parent.getModuleName() === 'pivotfieldlist') {
|
|
29743
|
+
if (this.parent.isAdaptive) {
|
|
29744
|
+
this.parent.dialogRenderer.adaptiveElement.select(4);
|
|
29745
|
+
/* eslint-disable-next-line @typescript-eslint/no-explicit-any */
|
|
29746
|
+
this.parent.calculatedFieldModule
|
|
29747
|
+
.updateAdaptiveCalculatedField(true, fieldName);
|
|
28984
29748
|
this.parent.calculatedFieldModule.buttonCall = true;
|
|
28985
29749
|
}
|
|
29750
|
+
else {
|
|
29751
|
+
if (this.parent.dialogRenderer.fieldListDialog) {
|
|
29752
|
+
this.parent.dialogRenderer.fieldListDialog.hide();
|
|
29753
|
+
addClass([this.parent.element.querySelector('.' + TOGGLE_FIELD_LIST_CLASS)], ICON_HIDDEN);
|
|
29754
|
+
}
|
|
29755
|
+
this.parent.notify(initCalculatedField, { edit: true, fieldName: fieldName });
|
|
29756
|
+
if (this.parent.calculatedFieldModule) {
|
|
29757
|
+
this.parent.calculatedFieldModule.buttonCall = true;
|
|
29758
|
+
}
|
|
29759
|
+
}
|
|
28986
29760
|
}
|
|
28987
29761
|
}
|
|
29762
|
+
catch (execption) {
|
|
29763
|
+
this.parent.actionFailureMethod(execption);
|
|
29764
|
+
}
|
|
28988
29765
|
};
|
|
28989
29766
|
PivotButton.prototype.createDraggable = function (field, target) {
|
|
28990
29767
|
this.draggable = new Draggable(target, {
|
|
@@ -29008,7 +29785,7 @@ var PivotButton = /** @__PURE__ @class */ (function () {
|
|
|
29008
29785
|
attrs: {
|
|
29009
29786
|
'tabindex': '-1', 'aria-disabled': 'false', 'title': this.parent.localeObj.getConstant('drag')
|
|
29010
29787
|
},
|
|
29011
|
-
className: ICON + ' ' + DRAG_CLASS + ' ' + (field.allowDragAndDrop ? '' : DRAG_DISABLE_CLASS)
|
|
29788
|
+
className: ICON + ' ' + DRAG_CLASS + ' ' + ((field.allowDragAndDrop || field.allowDragAndDrop === undefined) ? '' : DRAG_DISABLE_CLASS)
|
|
29012
29789
|
});
|
|
29013
29790
|
dragWrapper.appendChild(dragElement);
|
|
29014
29791
|
if (this.parent.getModuleName() === 'pivotfieldlist') {
|
|
@@ -29374,38 +30151,52 @@ var PivotButton = /** @__PURE__ @class */ (function () {
|
|
|
29374
30151
|
!(args.target.classList.contains(DRAG_CLASS)) &&
|
|
29375
30152
|
(buttonElement && fieldInfo.fieldItem && (fieldInfo.fieldItem.showSortIcon ||
|
|
29376
30153
|
isNullOrUndefined(fieldInfo.fieldItem.showSortIcon)))) {
|
|
29377
|
-
|
|
29378
|
-
|
|
29379
|
-
|
|
29380
|
-
|
|
29381
|
-
|
|
29382
|
-
|
|
29383
|
-
if ((
|
|
29384
|
-
|
|
29385
|
-
|
|
29386
|
-
|
|
29387
|
-
|
|
29388
|
-
|
|
29389
|
-
|
|
30154
|
+
this.parent.actionObj.actionName = sortField;
|
|
30155
|
+
this.parent.actionObj.fieldInfo = fieldInfo;
|
|
30156
|
+
if (this.parent.actionBeginMethod()) {
|
|
30157
|
+
return;
|
|
30158
|
+
}
|
|
30159
|
+
try {
|
|
30160
|
+
if ((this.parent instanceof PivotFieldList || this.parent.groupingBarSettings.showSortIcon) &&
|
|
30161
|
+
this.parent.dataSourceSettings.enableSorting &&
|
|
30162
|
+
!(this.parent.dataType === 'olap' && ((this.parent.getModuleName() === 'pivotfieldlist' &&
|
|
30163
|
+
this.parent.pivotGridModule !== undefined &&
|
|
30164
|
+
this.parent.pivotGridModule.enableVirtualization) ||
|
|
30165
|
+
(this.parent.getModuleName() === 'pivotview' && this.parent.enableVirtualization)))) {
|
|
30166
|
+
if (((this.parent.getModuleName() === 'pivotview' && this.parent.enableValueSorting) ||
|
|
30167
|
+
(this.parent.getModuleName() === 'pivotfieldlist' && this.parent.pivotGridModule !== undefined &&
|
|
30168
|
+
this.parent.pivotGridModule.enableValueSorting))) {
|
|
30169
|
+
if (this.parent.enableValueSorting || this.parent.pivotGridModule.enableValueSorting) { /* eslint-disable-line */
|
|
30170
|
+
if (args.target.classList.contains('e-pivot-button')) {
|
|
30171
|
+
if (args.target.parentElement.getAttribute('data-tag').split(':')[0] === 'rows') {
|
|
30172
|
+
this.parent.setProperties({ dataSourceSettings: { valueSortSettings: { headerText: undefined } } }, true);
|
|
30173
|
+
}
|
|
29390
30174
|
}
|
|
29391
|
-
|
|
29392
|
-
|
|
29393
|
-
|
|
29394
|
-
|
|
30175
|
+
else {
|
|
30176
|
+
if (args.target.parentElement.parentElement.getAttribute('data-tag').split(':')[0] === 'rows') {
|
|
30177
|
+
this.parent.setProperties({ dataSourceSettings: { valueSortSettings: { headerText: undefined } } }, true);
|
|
30178
|
+
}
|
|
29395
30179
|
}
|
|
29396
30180
|
}
|
|
29397
30181
|
}
|
|
30182
|
+
this.parent.pivotCommon.eventBase.updateSorting(args);
|
|
30183
|
+
if (!this.parent.allowDeferLayoutUpdate || this.parent.getModuleName() !== 'pivotfieldlist') {
|
|
30184
|
+
var actionInfo = {
|
|
30185
|
+
sortInfo: this.parent.lastSortInfo
|
|
30186
|
+
};
|
|
30187
|
+
this.parent.actionObj.actionInfo = actionInfo;
|
|
30188
|
+
this.updateDataSource(true);
|
|
30189
|
+
}
|
|
30190
|
+
/* eslint-disable */
|
|
30191
|
+
var thisObj = this;
|
|
30192
|
+
/* eslint-enable */
|
|
30193
|
+
if (thisObj.parent instanceof PivotFieldList) {
|
|
30194
|
+
thisObj.axisField.render();
|
|
30195
|
+
}
|
|
29398
30196
|
}
|
|
29399
|
-
|
|
29400
|
-
|
|
29401
|
-
|
|
29402
|
-
}
|
|
29403
|
-
/* eslint-disable */
|
|
29404
|
-
var thisObj = this;
|
|
29405
|
-
/* eslint-enable */
|
|
29406
|
-
if (thisObj.parent instanceof PivotFieldList) {
|
|
29407
|
-
thisObj.axisField.render();
|
|
29408
|
-
}
|
|
30197
|
+
}
|
|
30198
|
+
catch (execption) {
|
|
30199
|
+
this.parent.actionFailureMethod(execption);
|
|
29409
30200
|
}
|
|
29410
30201
|
}
|
|
29411
30202
|
};
|
|
@@ -29437,26 +30228,37 @@ var PivotButton = /** @__PURE__ @class */ (function () {
|
|
|
29437
30228
|
PivotButton.prototype.updateFiltering = function (args) {
|
|
29438
30229
|
/* eslint-disable */
|
|
29439
30230
|
var pivotObj = this.parent.pivotGridModule ? this.parent.pivotGridModule : this.parent;
|
|
29440
|
-
if (pivotObj.getModuleName() === 'pivotfieldlist') {
|
|
29441
|
-
showSpinner(pivotObj.fieldListSpinnerElement);
|
|
29442
|
-
}
|
|
29443
|
-
else {
|
|
29444
|
-
pivotObj.showWaitingPopup();
|
|
29445
|
-
}
|
|
29446
|
-
pivotObj.mouseEventArgs = args;
|
|
29447
|
-
pivotObj.filterTargetID = this.parent.pivotCommon.moduleName !== 'pivotfieldlist' ?
|
|
29448
|
-
this.parent.element : document.getElementById(this.parent.pivotCommon.parentID + '_Wrapper');
|
|
29449
30231
|
var fieldName = args.target.parentElement.id;
|
|
29450
|
-
|
|
29451
|
-
|
|
29452
|
-
|
|
30232
|
+
var fieldInfo = PivotUtil.getFieldInfo(fieldName, this.parent);
|
|
30233
|
+
this.parent.actionObj.actionName = filterField;
|
|
30234
|
+
this.parent.actionObj.fieldInfo = fieldInfo;
|
|
30235
|
+
if (this.parent.actionBeginMethod()) {
|
|
30236
|
+
return;
|
|
30237
|
+
}
|
|
30238
|
+
try {
|
|
30239
|
+
if (pivotObj.getModuleName() === 'pivotfieldlist') {
|
|
30240
|
+
showSpinner(pivotObj.fieldListSpinnerElement);
|
|
29453
30241
|
}
|
|
29454
30242
|
else {
|
|
29455
|
-
pivotObj.
|
|
30243
|
+
pivotObj.showWaitingPopup();
|
|
30244
|
+
}
|
|
30245
|
+
pivotObj.mouseEventArgs = args;
|
|
30246
|
+
pivotObj.filterTargetID = this.parent.pivotCommon.moduleName !== 'pivotfieldlist' ?
|
|
30247
|
+
this.parent.element : document.getElementById(this.parent.pivotCommon.parentID + '_Wrapper');
|
|
30248
|
+
if (pivotObj.dataSourceSettings.mode === 'Server') {
|
|
30249
|
+
if (this.parent.engineModule.fieldList[fieldName].members && Object.keys(this.parent.engineModule.fieldList[fieldName].members).length > 0) {
|
|
30250
|
+
this.updateFilterEvents();
|
|
30251
|
+
}
|
|
30252
|
+
else {
|
|
30253
|
+
pivotObj.getEngine('fetchFieldMembers', null, null, null, null, null, fieldName);
|
|
30254
|
+
}
|
|
30255
|
+
}
|
|
30256
|
+
else {
|
|
30257
|
+
this.updateFilterEvents();
|
|
29456
30258
|
}
|
|
29457
30259
|
}
|
|
29458
|
-
|
|
29459
|
-
this.
|
|
30260
|
+
catch (execption) {
|
|
30261
|
+
this.parent.actionFailureMethod(execption);
|
|
29460
30262
|
}
|
|
29461
30263
|
/* eslint-enable */
|
|
29462
30264
|
};
|
|
@@ -29469,11 +30271,6 @@ var PivotButton = /** @__PURE__ @class */ (function () {
|
|
|
29469
30271
|
var target = pivotObj.mouseEventArgs.target;
|
|
29470
30272
|
this.fieldName = target.parentElement.id;
|
|
29471
30273
|
if (this.parent.pivotCommon.filterDialog.dialogPopUp) {
|
|
29472
|
-
this.dialogPopUp = this.parent.pivotCommon.filterDialog.dialogPopUp;
|
|
29473
|
-
this.parent.pivotCommon.filterDialog.dialogPopUp.close = this.removeFilterDialog.bind(this);
|
|
29474
|
-
// this.memberTreeView = this.parent.pivotCommon.filterDialog.memberTreeView;
|
|
29475
|
-
// this.parent.pivotCommon.filterDialog.memberTreeView.nodeChecked = this.nodeStateModified.bind(this);
|
|
29476
|
-
// this.parent.pivotCommon.filterDialog.allMemberSelect.nodeChecked = this.nodeStateModified.bind(this);
|
|
29477
30274
|
this.bindDialogEvents();
|
|
29478
30275
|
}
|
|
29479
30276
|
if (pivotObj.getModuleName() === 'pivotfieldlist') {
|
|
@@ -29487,8 +30284,8 @@ var PivotButton = /** @__PURE__ @class */ (function () {
|
|
|
29487
30284
|
if (this.parent.pivotCommon.filterDialog.allowExcelLikeFilter && this.parent.pivotCommon.filterDialog.tabObj) {
|
|
29488
30285
|
this.index = this.parent.pivotCommon.filterDialog.tabObj.selectedItem;
|
|
29489
30286
|
this.updateDialogButtonEvents();
|
|
29490
|
-
this.dialogPopUp.buttons = this.buttonModel();
|
|
29491
|
-
this.dialogPopUp.dataBind();
|
|
30287
|
+
this.parent.pivotCommon.filterDialog.dialogPopUp.buttons = this.buttonModel();
|
|
30288
|
+
this.parent.pivotCommon.filterDialog.dialogPopUp.dataBind();
|
|
29492
30289
|
this.parent.pivotCommon.filterDialog.tabObj.selected = this.tabSelect.bind(this);
|
|
29493
30290
|
}
|
|
29494
30291
|
else if (this.parent.dataSourceSettings.allowMemberFilter) {
|
|
@@ -29513,7 +30310,7 @@ var PivotButton = /** @__PURE__ @class */ (function () {
|
|
|
29513
30310
|
click: (this.index === 0 ? this.updateFilterState.bind(this, this.fieldName) : this.updateCustomFilter.bind(this))
|
|
29514
30311
|
},
|
|
29515
30312
|
{
|
|
29516
|
-
click: this.parent.pivotCommon.filterDialog.closeFilterDialog.bind(this),
|
|
30313
|
+
click: this.parent.pivotCommon.filterDialog.closeFilterDialog.bind(this.parent.pivotCommon.filterDialog),
|
|
29517
30314
|
buttonModel: { cssClass: CANCEL_BUTTON_CLASS, content: this.parent.localeObj.getConstant('cancel') }
|
|
29518
30315
|
}
|
|
29519
30316
|
];
|
|
@@ -29521,25 +30318,25 @@ var PivotButton = /** @__PURE__ @class */ (function () {
|
|
|
29521
30318
|
PivotButton.prototype.tabSelect = function (e) {
|
|
29522
30319
|
this.index = e.selectedIndex;
|
|
29523
30320
|
this.updateDialogButtonEvents();
|
|
29524
|
-
removeClass([].slice.call(this.dialogPopUp.element.querySelectorAll('.e-selected-tab')), 'e-selected-tab');
|
|
30321
|
+
removeClass([].slice.call(this.parent.pivotCommon.filterDialog.dialogPopUp.element.querySelectorAll('.e-selected-tab')), 'e-selected-tab');
|
|
29525
30322
|
if (e.selectedIndex > 0) {
|
|
29526
|
-
addClass([this.dialogPopUp.element.querySelector('.e-filter-div-content' + '.' + (e.selectedIndex === 1 && this.parent.dataSourceSettings.allowLabelFilter ? 'e-label-filter' : 'e-value-filter'))], 'e-selected-tab');
|
|
30323
|
+
addClass([this.parent.pivotCommon.filterDialog.dialogPopUp.element.querySelector('.e-filter-div-content' + '.' + (e.selectedIndex === 1 && this.parent.dataSourceSettings.allowLabelFilter ? 'e-label-filter' : 'e-value-filter'))], 'e-selected-tab');
|
|
29527
30324
|
}
|
|
29528
30325
|
if (e.selectedIndex === 0) {
|
|
29529
30326
|
this.parent.pivotCommon.filterDialog.updateCheckedState();
|
|
29530
30327
|
}
|
|
29531
30328
|
else {
|
|
29532
|
-
this.dialogPopUp.buttons[0].buttonModel.disabled = false;
|
|
29533
|
-
this.dialogPopUp.element.querySelector('.' + OK_BUTTON_CLASS).removeAttribute('disabled');
|
|
30329
|
+
this.parent.pivotCommon.filterDialog.dialogPopUp.buttons[0].buttonModel.disabled = false;
|
|
30330
|
+
this.parent.pivotCommon.filterDialog.dialogPopUp.element.querySelector('.' + OK_BUTTON_CLASS).removeAttribute('disabled');
|
|
29534
30331
|
}
|
|
29535
30332
|
};
|
|
29536
30333
|
PivotButton.prototype.updateDialogButtonEvents = function () {
|
|
29537
|
-
this.dialogPopUp.buttons = this.buttonModel();
|
|
29538
|
-
this.dialogPopUp.dataBind();
|
|
30334
|
+
this.parent.pivotCommon.filterDialog.dialogPopUp.buttons = this.buttonModel();
|
|
30335
|
+
this.parent.pivotCommon.filterDialog.dialogPopUp.dataBind();
|
|
29539
30336
|
};
|
|
29540
30337
|
PivotButton.prototype.updateCustomFilter = function (args) {
|
|
29541
30338
|
var _this = this;
|
|
29542
|
-
var dialogElement = this.dialogPopUp.element.querySelector('.e-selected-tab');
|
|
30339
|
+
var dialogElement = this.parent.pivotCommon.filterDialog.dialogPopUp.element.querySelector('.e-selected-tab');
|
|
29543
30340
|
var fieldName = dialogElement.getAttribute('data-fieldname');
|
|
29544
30341
|
var levelName = dialogElement.getAttribute('data-selectedField');
|
|
29545
30342
|
var filterType = dialogElement.getAttribute('data-type');
|
|
@@ -29610,39 +30407,18 @@ var PivotButton = /** @__PURE__ @class */ (function () {
|
|
|
29610
30407
|
if (type !== 'Value') {
|
|
29611
30408
|
_this.parent.lastFilterInfo = PivotUtil.getFilterItemByName(fieldName, _this.parent.dataSourceSettings.filterSettings);
|
|
29612
30409
|
}
|
|
29613
|
-
_this.dialogPopUp.close();
|
|
30410
|
+
_this.parent.pivotCommon.filterDialog.dialogPopUp.close();
|
|
29614
30411
|
if (!observedArgs.cancel) {
|
|
29615
30412
|
_this.refreshPivotButtonState(fieldName, true);
|
|
29616
30413
|
_this.updateDataSource(true);
|
|
29617
30414
|
}
|
|
29618
30415
|
});
|
|
29619
30416
|
};
|
|
29620
|
-
PivotButton.prototype.removeFilterDialog = function () {
|
|
29621
|
-
if (this.dialogPopUp && !this.dialogPopUp.isDestroyed) {
|
|
29622
|
-
this.dialogPopUp.destroy();
|
|
29623
|
-
setTimeout(this.setFocus.bind(this));
|
|
29624
|
-
}
|
|
29625
|
-
if (document.getElementById(this.parentElement.id + '_EditorTreeView')) {
|
|
29626
|
-
remove(document.getElementById(this.parentElement.id + '_EditorTreeView'));
|
|
29627
|
-
}
|
|
29628
|
-
};
|
|
29629
|
-
PivotButton.prototype.setFocus = function () {
|
|
29630
|
-
if (this.parentElement) {
|
|
29631
|
-
var pivotButtons = [].slice.call(this.parentElement.querySelectorAll('.e-pivot-button'));
|
|
29632
|
-
for (var _i = 0, pivotButtons_1 = pivotButtons; _i < pivotButtons_1.length; _i++) {
|
|
29633
|
-
var item = pivotButtons_1[_i];
|
|
29634
|
-
if (item.getAttribute('data-uid') === this.fieldName) {
|
|
29635
|
-
item.focus();
|
|
29636
|
-
break;
|
|
29637
|
-
}
|
|
29638
|
-
}
|
|
29639
|
-
}
|
|
29640
|
-
};
|
|
29641
30417
|
PivotButton.prototype.ClearFilter = function (e) {
|
|
29642
|
-
var dialogElement = this.dialogPopUp.element;
|
|
30418
|
+
var dialogElement = this.parent.pivotCommon.filterDialog.dialogPopUp.element;
|
|
29643
30419
|
var fieldName = dialogElement.getAttribute('data-fieldname');
|
|
29644
30420
|
var tabElement = dialogElement.querySelector('.e-selected-tab');
|
|
29645
|
-
this.dialogPopUp.close();
|
|
30421
|
+
this.parent.pivotCommon.filterDialog.dialogPopUp.close();
|
|
29646
30422
|
if (this.parent.dataType === 'olap' && tabElement) {
|
|
29647
30423
|
var levelName = tabElement.getAttribute('data-selectedField');
|
|
29648
30424
|
this.removeDataSourceSettings(fieldName, levelName);
|
|
@@ -29659,63 +30435,73 @@ var PivotButton = /** @__PURE__ @class */ (function () {
|
|
|
29659
30435
|
var target = args.target;
|
|
29660
30436
|
var fieldName = target.parentElement.id;
|
|
29661
30437
|
var fieldInfo = PivotUtil.getFieldInfo(fieldName, this.parent);
|
|
30438
|
+
this.parent.actionObj.actionName = removeField;
|
|
30439
|
+
this.parent.actionObj.fieldInfo = fieldInfo;
|
|
30440
|
+
if (this.parent.actionBeginMethod()) {
|
|
30441
|
+
return;
|
|
30442
|
+
}
|
|
29662
30443
|
var removeFieldArgs = {
|
|
29663
30444
|
cancel: false, fieldName: fieldName,
|
|
29664
30445
|
dataSourceSettings: PivotUtil.getClonedDataSourceSettings(this.parent.dataSourceSettings),
|
|
29665
30446
|
fieldItem: fieldInfo.fieldItem, axis: fieldInfo.axis
|
|
29666
30447
|
};
|
|
29667
|
-
|
|
29668
|
-
|
|
29669
|
-
|
|
29670
|
-
|
|
29671
|
-
if (
|
|
29672
|
-
|
|
29673
|
-
|
|
29674
|
-
_this.parent.
|
|
30448
|
+
try {
|
|
30449
|
+
var control = this.parent.getModuleName() === 'pivotfieldlist' &&
|
|
30450
|
+
this.parent.isPopupView ? this.parent.pivotGridModule : this.parent;
|
|
30451
|
+
control.trigger(fieldRemove, removeFieldArgs, function (observedArgs) {
|
|
30452
|
+
if (!observedArgs.cancel) {
|
|
30453
|
+
if (target.parentElement.getAttribute('isvalue') === 'true') {
|
|
30454
|
+
_this.parent.setProperties({ dataSourceSettings: { values: [] } }, true);
|
|
30455
|
+
if (_this.parent.dataType === 'olap') {
|
|
30456
|
+
_this.parent.pivotCommon.dataSourceUpdate.removeFieldFromReport('[Measures]');
|
|
30457
|
+
}
|
|
29675
30458
|
}
|
|
29676
|
-
|
|
29677
|
-
|
|
29678
|
-
|
|
29679
|
-
|
|
29680
|
-
|
|
29681
|
-
|
|
29682
|
-
|
|
30459
|
+
else {
|
|
30460
|
+
_this.parent.pivotCommon.dataSourceUpdate.removeFieldFromReport(fieldName);
|
|
30461
|
+
if (_this.parent.dataType === 'pivot' && _this.parent.showValuesButton && _this.parent.dataSourceSettings.values.length > 1 &&
|
|
30462
|
+
fieldInfo.position < _this.parent.dataSourceSettings.valueIndex && ((_this.parent.dataSourceSettings.valueAxis === 'row' &&
|
|
30463
|
+
observedArgs.axis === 'rows') || (_this.parent.dataSourceSettings.valueAxis === 'column' && observedArgs.axis === 'columns'))) {
|
|
30464
|
+
_this.parent.setProperties({ dataSourceSettings: { valueIndex: _this.parent.dataSourceSettings.valueIndex - 1 } }, true);
|
|
30465
|
+
}
|
|
30466
|
+
if (_this.parent.dataType === 'olap' && _this.parent.dataSourceSettings.values.length === 0) {
|
|
30467
|
+
_this.parent.pivotCommon.dataSourceUpdate.removeFieldFromReport('[Measures]');
|
|
30468
|
+
}
|
|
29683
30469
|
}
|
|
29684
|
-
if (_this.parent.
|
|
29685
|
-
_this.parent.
|
|
30470
|
+
if (_this.parent.getModuleName() === 'pivotfieldlist') {
|
|
30471
|
+
_this.parent.axisFieldModule.render();
|
|
29686
30472
|
}
|
|
30473
|
+
_this.updateDataSource();
|
|
29687
30474
|
}
|
|
29688
|
-
|
|
29689
|
-
|
|
29690
|
-
|
|
29691
|
-
|
|
29692
|
-
|
|
29693
|
-
});
|
|
30475
|
+
});
|
|
30476
|
+
}
|
|
30477
|
+
catch (execption) {
|
|
30478
|
+
this.parent.actionFailureMethod(execption);
|
|
30479
|
+
}
|
|
29694
30480
|
};
|
|
29695
30481
|
/** @hidden */
|
|
29696
30482
|
PivotButton.prototype.nodeStateModified = function (args) {
|
|
29697
30483
|
var target = closest(args.node, 'li');
|
|
29698
30484
|
var fieldName = target.getAttribute('data-fieldname');
|
|
29699
30485
|
if (target.getAttribute('data-memberId') === 'all') {
|
|
29700
|
-
this.memberTreeView.nodeChecked = null;
|
|
30486
|
+
this.parent.pivotCommon.filterDialog.memberTreeView.nodeChecked = null;
|
|
29701
30487
|
if (args.action === 'check') {
|
|
29702
|
-
this.memberTreeView.checkAll();
|
|
30488
|
+
this.parent.pivotCommon.filterDialog.memberTreeView.checkAll();
|
|
29703
30489
|
}
|
|
29704
30490
|
else {
|
|
29705
|
-
this.memberTreeView.uncheckAll();
|
|
30491
|
+
this.parent.pivotCommon.filterDialog.memberTreeView.uncheckAll();
|
|
29706
30492
|
}
|
|
29707
30493
|
if (this.parent.dataType === 'olap' && this.parent.olapEngineModule &&
|
|
29708
30494
|
!this.parent.olapEngineModule.fieldList[fieldName].isHierarchy) {
|
|
29709
|
-
this.updateNodeStates(this.memberTreeView.getAllCheckedNodes(), fieldName, args.action);
|
|
30495
|
+
this.updateNodeStates(this.parent.pivotCommon.filterDialog.memberTreeView.getAllCheckedNodes(), fieldName, args.action);
|
|
29710
30496
|
}
|
|
29711
30497
|
this.checkedStateAll(args.action);
|
|
29712
|
-
this.memberTreeView.nodeChecked = this.nodeStateModified.bind(this);
|
|
30498
|
+
this.parent.pivotCommon.filterDialog.memberTreeView.nodeChecked = this.nodeStateModified.bind(this);
|
|
29713
30499
|
}
|
|
29714
30500
|
else {
|
|
29715
30501
|
if (this.parent.dataType === 'olap' && this.parent.olapEngineModule &&
|
|
29716
30502
|
!this.parent.olapEngineModule.fieldList[fieldName].isHierarchy) {
|
|
29717
30503
|
// let st1: number = new Date().getTime();
|
|
29718
|
-
var checkedNodes = this.memberTreeView.getAllCheckedNodes();
|
|
30504
|
+
var checkedNodes = this.parent.pivotCommon.filterDialog.memberTreeView.getAllCheckedNodes();
|
|
29719
30505
|
// let st2: number = (new Date().getTime() - st1) / 1000;
|
|
29720
30506
|
// console.log('getAllCheckedNodes:' + st2);
|
|
29721
30507
|
this.updateNodeStates(checkedNodes, fieldName, args.action);
|
|
@@ -29758,8 +30544,8 @@ var PivotButton = /** @__PURE__ @class */ (function () {
|
|
|
29758
30544
|
}
|
|
29759
30545
|
if (currentMembers[member]) {
|
|
29760
30546
|
currentMembers[member].isSelected = false;
|
|
29761
|
-
if (this.memberTreeView.element.querySelector('li[data-memberId="' + member + '"]')) {
|
|
29762
|
-
var element = this.memberTreeView.element.querySelector('li[data-memberId="' + member + '"]');
|
|
30547
|
+
if (this.parent.pivotCommon.filterDialog.memberTreeView.element.querySelector('li[data-memberId="' + member + '"]')) {
|
|
30548
|
+
var element = this.parent.pivotCommon.filterDialog.memberTreeView.element.querySelector('li[data-memberId="' + member + '"]');
|
|
29763
30549
|
if (element && !element.querySelector('ul')) {
|
|
29764
30550
|
this.parent.pivotCommon.eventBase.updateChildNodeStates(fieldList.filterMembers, fieldName, member, false);
|
|
29765
30551
|
}
|
|
@@ -29769,8 +30555,8 @@ var PivotButton = /** @__PURE__ @class */ (function () {
|
|
|
29769
30555
|
for (var _a = 0, checkedNodes_1 = checkedNodes; _a < checkedNodes_1.length; _a++) {
|
|
29770
30556
|
var node = checkedNodes_1[_a];
|
|
29771
30557
|
if (currentMembers[node]) {
|
|
29772
|
-
if (this.memberTreeView.element.querySelector('li[data-memberId="' + node + '"]')) {
|
|
29773
|
-
var element = this.memberTreeView.element.querySelector('li[data-memberId="' + node + '"]');
|
|
30558
|
+
if (this.parent.pivotCommon.filterDialog.memberTreeView.element.querySelector('li[data-memberId="' + node + '"]')) {
|
|
30559
|
+
var element = this.parent.pivotCommon.filterDialog.memberTreeView.element.querySelector('li[data-memberId="' + node + '"]');
|
|
29774
30560
|
if (element && !element.querySelector('ul')) {
|
|
29775
30561
|
currentMembers[node].isSelected = true;
|
|
29776
30562
|
this.parent.pivotCommon.eventBase.updateChildNodeStates(fieldList.filterMembers, fieldName, node, true);
|
|
@@ -29808,10 +30594,10 @@ var PivotButton = /** @__PURE__ @class */ (function () {
|
|
|
29808
30594
|
!engineModule.fieldList[fieldName].isHierarchy) {
|
|
29809
30595
|
var cMembers = engineModule.fieldList[fieldName].members;
|
|
29810
30596
|
var sMembers = engineModule.fieldList[fieldName].currrentMembers;
|
|
29811
|
-
filterItem.items = this.memberTreeView.getAllCheckedNodes();
|
|
30597
|
+
filterItem.items = this.parent.pivotCommon.filterDialog.memberTreeView.getAllCheckedNodes();
|
|
29812
30598
|
filterItem.levelCount = engineModule.fieldList[fieldName].levelCount;
|
|
29813
30599
|
isNodeUnChecked = (filterItem.items.length ===
|
|
29814
|
-
this.memberTreeView.fields.dataSource.length ? false : true);
|
|
30600
|
+
this.parent.pivotCommon.filterDialog.memberTreeView.fields.dataSource.length ? false : true);
|
|
29815
30601
|
if (engineModule.fieldList[fieldName].searchMembers.length > 0 && !isNodeUnChecked) {
|
|
29816
30602
|
var cNodeLength = Object.keys(cMembers).length;
|
|
29817
30603
|
var sNodeLength = Object.keys(sMembers).length;
|
|
@@ -29874,13 +30660,17 @@ var PivotButton = /** @__PURE__ @class */ (function () {
|
|
|
29874
30660
|
}
|
|
29875
30661
|
_this.parent.dataSourceSettings.filterSettings.push(filterItem);
|
|
29876
30662
|
}
|
|
29877
|
-
_this.dialogPopUp.close();
|
|
30663
|
+
_this.parent.pivotCommon.filterDialog.dialogPopUp.close();
|
|
29878
30664
|
if (!observedArgs.cancel) {
|
|
29879
30665
|
_this.refreshPivotButtonState(fieldName, isNodeUnChecked);
|
|
29880
30666
|
if (!isNodeUnChecked) {
|
|
29881
30667
|
_this.removeDataSourceSettings(fieldName);
|
|
29882
30668
|
}
|
|
29883
30669
|
_this.parent.lastFilterInfo = filterItem;
|
|
30670
|
+
var actionInfo = {
|
|
30671
|
+
filterInfo: _this.parent.lastFilterInfo
|
|
30672
|
+
};
|
|
30673
|
+
_this.parent.actionObj.actionInfo = actionInfo;
|
|
29884
30674
|
_this.updateDataSource(true);
|
|
29885
30675
|
var thisObj = _this;
|
|
29886
30676
|
//setTimeout(() => {
|
|
@@ -29890,8 +30680,8 @@ var PivotButton = /** @__PURE__ @class */ (function () {
|
|
|
29890
30680
|
//});
|
|
29891
30681
|
}
|
|
29892
30682
|
var pivotButtons = [].slice.call(_this.parentElement.querySelectorAll('.e-pivot-button'));
|
|
29893
|
-
for (var _i = 0,
|
|
29894
|
-
var item =
|
|
30683
|
+
for (var _i = 0, pivotButtons_1 = pivotButtons; _i < pivotButtons_1.length; _i++) {
|
|
30684
|
+
var item = pivotButtons_1[_i];
|
|
29895
30685
|
if (item.getAttribute('data-uid') === fieldName) {
|
|
29896
30686
|
item.focus();
|
|
29897
30687
|
break;
|
|
@@ -29902,8 +30692,8 @@ var PivotButton = /** @__PURE__ @class */ (function () {
|
|
|
29902
30692
|
PivotButton.prototype.refreshPivotButtonState = function (fieldName, isFiltered) {
|
|
29903
30693
|
var pivotButtons = [].slice.call(this.parentElement.querySelectorAll('.e-pivot-button'));
|
|
29904
30694
|
var selectedButton;
|
|
29905
|
-
for (var _i = 0,
|
|
29906
|
-
var item =
|
|
30695
|
+
for (var _i = 0, pivotButtons_2 = pivotButtons; _i < pivotButtons_2.length; _i++) {
|
|
30696
|
+
var item = pivotButtons_2[_i];
|
|
29907
30697
|
if (item.getAttribute('data-uid') === fieldName) {
|
|
29908
30698
|
selectedButton = item.querySelector('.' + FILTER_COMMON_CLASS);
|
|
29909
30699
|
break;
|
|
@@ -30036,14 +30826,6 @@ var PivotButton = /** @__PURE__ @class */ (function () {
|
|
|
30036
30826
|
this.columnFieldDropDownList.destroy();
|
|
30037
30827
|
this.columnFieldDropDownList = null;
|
|
30038
30828
|
}
|
|
30039
|
-
if (this.memberTreeView && !this.memberTreeView.isDestroyed) {
|
|
30040
|
-
this.memberTreeView.destroy();
|
|
30041
|
-
this.memberTreeView = null;
|
|
30042
|
-
}
|
|
30043
|
-
if (this.dialogPopUp && !this.dialogPopUp.isDestroyed) {
|
|
30044
|
-
this.dialogPopUp.destroy();
|
|
30045
|
-
this.dialogPopUp = null;
|
|
30046
|
-
}
|
|
30047
30829
|
if (this.draggable && !this.draggable.isDestroyed) {
|
|
30048
30830
|
this.draggable.destroy();
|
|
30049
30831
|
this.draggable = null;
|
|
@@ -30200,6 +30982,8 @@ var PivotFieldList = /** @__PURE__ @class */ (function (_super) {
|
|
|
30200
30982
|
_this.enableValueSorting = false;
|
|
30201
30983
|
_this.request = new XMLHttpRequest();
|
|
30202
30984
|
_this.remoteData = [];
|
|
30985
|
+
/** @hidden */
|
|
30986
|
+
_this.actionObj = {};
|
|
30203
30987
|
return _this;
|
|
30204
30988
|
}
|
|
30205
30989
|
/**
|
|
@@ -30431,7 +31215,9 @@ var PivotFieldList = /** @__PURE__ @class */ (function (_super) {
|
|
|
30431
31215
|
enableValueSorting: enableValueSorting,
|
|
30432
31216
|
isDrillThrough: isDrillThrough,
|
|
30433
31217
|
localeObj: localeObj,
|
|
30434
|
-
clonedReport: this.clonedReport
|
|
31218
|
+
clonedReport: this.clonedReport,
|
|
31219
|
+
globalize: this.globalize,
|
|
31220
|
+
currenyCode: this.currencyCode
|
|
30435
31221
|
};
|
|
30436
31222
|
}
|
|
30437
31223
|
return customProperties;
|
|
@@ -31122,6 +31908,11 @@ var PivotFieldList = /** @__PURE__ @class */ (function (_super) {
|
|
|
31122
31908
|
pivot.pivotGridModule.fieldListSpinnerElement = pivot.fieldListSpinnerElement;
|
|
31123
31909
|
}
|
|
31124
31910
|
});
|
|
31911
|
+
var actionName = this.getActionCompleteName();
|
|
31912
|
+
this.actionObj.actionName = actionName;
|
|
31913
|
+
if (this.actionObj.actionName) {
|
|
31914
|
+
this.actionCompleteMethod();
|
|
31915
|
+
}
|
|
31125
31916
|
};
|
|
31126
31917
|
PivotFieldList.prototype.updateOlapDataSource = function (pivot, isSorted, isCalcChange, isOlapDataRefreshed) {
|
|
31127
31918
|
var customProperties = pivot.frameCustomProperties(pivot.olapEngineModule.fieldListData, pivot.olapEngineModule.fieldList);
|
|
@@ -31155,6 +31946,7 @@ var PivotFieldList = /** @__PURE__ @class */ (function (_super) {
|
|
|
31155
31946
|
PivotFieldList.prototype.update = function (control) {
|
|
31156
31947
|
if (control) {
|
|
31157
31948
|
this.clonedDataSet = control.clonedDataSet;
|
|
31949
|
+
this.clonedReport = control.clonedReport;
|
|
31158
31950
|
this.setProperties({ dataSourceSettings: control.dataSourceSettings, showValuesButton: control.showValuesButton }, true);
|
|
31159
31951
|
this.engineModule = control.engineModule;
|
|
31160
31952
|
this.olapEngineModule = control.olapEngineModule;
|
|
@@ -31189,6 +31981,7 @@ var PivotFieldList = /** @__PURE__ @class */ (function (_super) {
|
|
|
31189
31981
|
PivotFieldList.prototype.updateView = function (control) {
|
|
31190
31982
|
if (control) {
|
|
31191
31983
|
control.clonedDataSet = this.clonedDataSet;
|
|
31984
|
+
control.clonedReport = this.clonedReport;
|
|
31192
31985
|
control.setProperties({ dataSourceSettings: this.dataSourceSettings, showValuesButton: this.showValuesButton }, true);
|
|
31193
31986
|
control.engineModule = this.engineModule;
|
|
31194
31987
|
control.olapEngineModule = this.olapEngineModule;
|
|
@@ -31232,6 +32025,47 @@ var PivotFieldList = /** @__PURE__ @class */ (function (_super) {
|
|
|
31232
32025
|
}
|
|
31233
32026
|
});
|
|
31234
32027
|
};
|
|
32028
|
+
/** @hidden */
|
|
32029
|
+
PivotFieldList.prototype.actionBeginMethod = function () {
|
|
32030
|
+
var eventArgs = {
|
|
32031
|
+
dataSourceSettings: PivotUtil.getClonedDataSourceSettings(this.dataSourceSettings),
|
|
32032
|
+
actionName: this.actionObj.actionName,
|
|
32033
|
+
fieldInfo: this.actionObj.fieldInfo,
|
|
32034
|
+
cancel: false
|
|
32035
|
+
};
|
|
32036
|
+
var control = this.isPopupView ? this.pivotGridModule : this;
|
|
32037
|
+
control.trigger(actionBegin, eventArgs);
|
|
32038
|
+
return eventArgs.cancel;
|
|
32039
|
+
};
|
|
32040
|
+
/** @hidden */
|
|
32041
|
+
PivotFieldList.prototype.actionCompleteMethod = function () {
|
|
32042
|
+
var eventArgs = {
|
|
32043
|
+
dataSourceSettings: PivotUtil.getClonedDataSourceSettings(this.dataSourceSettings),
|
|
32044
|
+
actionName: this.actionObj.actionName,
|
|
32045
|
+
fieldInfo: this.actionObj.fieldInfo,
|
|
32046
|
+
actionInfo: this.actionObj.actionInfo
|
|
32047
|
+
};
|
|
32048
|
+
var control = this.isPopupView ? this.pivotGridModule : this;
|
|
32049
|
+
control.trigger(actionComplete, eventArgs);
|
|
32050
|
+
this.actionObj.actionName = '';
|
|
32051
|
+
this.actionObj.actionInfo = undefined;
|
|
32052
|
+
this.actionObj.fieldInfo = undefined;
|
|
32053
|
+
};
|
|
32054
|
+
/** @hidden */
|
|
32055
|
+
PivotFieldList.prototype.actionFailureMethod = function (error) {
|
|
32056
|
+
var eventArgs = {
|
|
32057
|
+
actionName: this.actionObj.actionName,
|
|
32058
|
+
errorInfo: error
|
|
32059
|
+
};
|
|
32060
|
+
var control = this.isPopupView ? this.pivotGridModule : this;
|
|
32061
|
+
control.trigger(actionFailure, eventArgs);
|
|
32062
|
+
};
|
|
32063
|
+
/** @hidden */
|
|
32064
|
+
PivotFieldList.prototype.getActionCompleteName = function () {
|
|
32065
|
+
var actionName = (this.actionObj.actionName == openCalculatedField) ? calculatedFieldApplied : (this.actionObj.actionName == editCalculatedField) ? calculatedFieldEdited : (this.actionObj.actionName == sortField) ? fieldSorted
|
|
32066
|
+
: (this.actionObj.actionName == filterField) ? fieldFiltered : (this.actionObj.actionName == removeField) ? fieldRemoved : (this.actionObj.actionName == aggregateField) ? fieldAggregated : this.actionObj.actionName == sortFieldTree ? fieldTreeSorted : this.actionObj.actionName;
|
|
32067
|
+
return actionName;
|
|
32068
|
+
};
|
|
31235
32069
|
/**
|
|
31236
32070
|
* Destroys the Field Table component.
|
|
31237
32071
|
* @function destroy
|
|
@@ -31306,6 +32140,9 @@ var PivotFieldList = /** @__PURE__ @class */ (function (_super) {
|
|
|
31306
32140
|
if (this.clonedDataSet) {
|
|
31307
32141
|
this.clonedDataSet = null;
|
|
31308
32142
|
}
|
|
32143
|
+
if (this.clonedReport) {
|
|
32144
|
+
this.clonedReport = null;
|
|
32145
|
+
}
|
|
31309
32146
|
if (this.clonedFieldList) {
|
|
31310
32147
|
this.clonedFieldList = null;
|
|
31311
32148
|
}
|
|
@@ -31353,6 +32190,9 @@ var PivotFieldList = /** @__PURE__ @class */ (function (_super) {
|
|
|
31353
32190
|
__decorate$4([
|
|
31354
32191
|
Property(['Sum', 'Count', 'DistinctCount', 'Product', 'Min', 'Max', 'Avg', 'Median', 'Index', 'PopulationVar', 'SampleVar', 'PopulationStDev', 'SampleStDev', 'RunningTotals', 'PercentageOfGrandTotal', 'PercentageOfColumnTotal', 'PercentageOfRowTotal', 'PercentageOfParentColumnTotal', 'PercentageOfParentRowTotal', 'DifferenceFrom', 'PercentageOfDifferenceFrom', 'PercentageOfParentTotal'])
|
|
31355
32192
|
], PivotFieldList.prototype, "aggregateTypes", void 0);
|
|
32193
|
+
__decorate$4([
|
|
32194
|
+
Property('USD')
|
|
32195
|
+
], PivotFieldList.prototype, "currencyCode", void 0);
|
|
31356
32196
|
__decorate$4([
|
|
31357
32197
|
Event()
|
|
31358
32198
|
], PivotFieldList.prototype, "load", void 0);
|
|
@@ -31401,6 +32241,15 @@ var PivotFieldList = /** @__PURE__ @class */ (function (_super) {
|
|
|
31401
32241
|
__decorate$4([
|
|
31402
32242
|
Event()
|
|
31403
32243
|
], PivotFieldList.prototype, "beforeServiceInvoke", void 0);
|
|
32244
|
+
__decorate$4([
|
|
32245
|
+
Event()
|
|
32246
|
+
], PivotFieldList.prototype, "actionBegin", void 0);
|
|
32247
|
+
__decorate$4([
|
|
32248
|
+
Event()
|
|
32249
|
+
], PivotFieldList.prototype, "actionComplete", void 0);
|
|
32250
|
+
__decorate$4([
|
|
32251
|
+
Event()
|
|
32252
|
+
], PivotFieldList.prototype, "actionFailure", void 0);
|
|
31404
32253
|
PivotFieldList = __decorate$4([
|
|
31405
32254
|
NotifyPropertyChanges
|
|
31406
32255
|
], PivotFieldList);
|
|
@@ -31635,105 +32484,114 @@ var CalculatedField = /** @__PURE__ @class */ (function () {
|
|
|
31635
32484
|
CalculatedField.prototype.displayMenu = function (node, treeNode, target) {
|
|
31636
32485
|
var edit = target ? target.classList.contains(CALC_EDIT) : true;
|
|
31637
32486
|
var edited = target ? target.classList.contains(CALC_EDITED) : true;
|
|
31638
|
-
|
|
31639
|
-
node.querySelector('.e-list-icon.e-format')
|
|
31640
|
-
|
|
31641
|
-
|
|
31642
|
-
|
|
31643
|
-
|
|
31644
|
-
this.menuObj.
|
|
31645
|
-
|
|
31646
|
-
|
|
31647
|
-
|
|
31648
|
-
|
|
31649
|
-
|
|
31650
|
-
node.querySelector('.' + CALC_EDIT)
|
|
31651
|
-
|
|
31652
|
-
|
|
31653
|
-
|
|
31654
|
-
|
|
31655
|
-
|
|
31656
|
-
|
|
31657
|
-
|
|
31658
|
-
|
|
31659
|
-
|
|
31660
|
-
|
|
31661
|
-
|
|
31662
|
-
|
|
31663
|
-
|
|
31664
|
-
|
|
31665
|
-
|
|
31666
|
-
|
|
31667
|
-
|
|
31668
|
-
|
|
31669
|
-
|
|
31670
|
-
|
|
31671
|
-
|
|
31672
|
-
|
|
31673
|
-
|
|
31674
|
-
|
|
31675
|
-
|
|
31676
|
-
|
|
31677
|
-
|
|
32487
|
+
try {
|
|
32488
|
+
if (this.parent.dataType === 'pivot' && node.querySelector('.e-list-icon.e-format') &&
|
|
32489
|
+
node.querySelector('.e-list-icon.e-format').classList.contains(ICON) &&
|
|
32490
|
+
!node.querySelector('.e-list-icon').classList.contains(CALC_EDITED) &&
|
|
32491
|
+
!node.querySelector('.e-list-icon').classList.contains(GRID_REMOVE) &&
|
|
32492
|
+
!node.querySelector('.e-list-icon').classList.contains(CALC_EDIT) && node.tagName === 'LI') {
|
|
32493
|
+
if (this.menuObj && !this.menuObj.isDestroyed) {
|
|
32494
|
+
this.menuObj.destroy();
|
|
32495
|
+
}
|
|
32496
|
+
this.curMenu = node.querySelector('.' + LIST_TEXT_CLASS);
|
|
32497
|
+
this.openContextMenu(node);
|
|
32498
|
+
}
|
|
32499
|
+
else if (node.tagName === 'LI' && (node.querySelector('.' + CALC_EDIT) &&
|
|
32500
|
+
node.querySelector('.' + CALC_EDIT).classList.contains('e-list-icon') && edit ||
|
|
32501
|
+
(this.parent.dataType === 'olap' && node.getAttribute('data-type') === CALC && node.classList.contains('e-active') && ((target && !target.classList.contains(GRID_REMOVE)) || !target)))) {
|
|
32502
|
+
this.isEdit = true;
|
|
32503
|
+
var fieldName = node.getAttribute('data-field');
|
|
32504
|
+
var caption = node.getAttribute('data-caption');
|
|
32505
|
+
this.currentFieldName = fieldName;
|
|
32506
|
+
this.inputObj.value = caption;
|
|
32507
|
+
this.inputObj.dataBind();
|
|
32508
|
+
var formatString = node.getAttribute('data-formatString');
|
|
32509
|
+
var dialogElement = this.dialog.element;
|
|
32510
|
+
var customFormat = getInstance(select('#' + this.parentID + 'Custom_Format_Element', dialogElement), MaskedTextBox);
|
|
32511
|
+
if (this.parent.dataType === 'olap') {
|
|
32512
|
+
var memberType = node.getAttribute('data-membertype');
|
|
32513
|
+
var parentHierarchy = node.getAttribute('data-hierarchy');
|
|
32514
|
+
var expression = node.getAttribute('data-formula');
|
|
32515
|
+
var customString = node.getAttribute('data-customString');
|
|
32516
|
+
var fieldTitle = select('#' + this.parentID + '_' + 'FieldNameTitle', dialogElement);
|
|
32517
|
+
var memberTypeDrop = getInstance(select('#' + this.parentID + 'Member_Type_Div', dialogElement), DropDownList);
|
|
32518
|
+
var hierarchyDrop = getInstance(select('#' + this.parentID + 'Hierarchy_List_Div', dialogElement), DropDownList);
|
|
32519
|
+
var formatDrop = getInstance(select('#' + this.parentID + 'Format_Div', dialogElement), DropDownList);
|
|
32520
|
+
/* eslint-enable max-len */
|
|
32521
|
+
fieldTitle.innerHTML = this.parent.localeObj.getConstant('caption');
|
|
32522
|
+
select('#' + this.parentID + 'droppable', document).value = expression;
|
|
32523
|
+
memberTypeDrop.readonly = true;
|
|
32524
|
+
memberTypeDrop.value = memberType;
|
|
32525
|
+
memberTypeDrop.dataBind();
|
|
32526
|
+
if (memberType === 'Dimension') {
|
|
32527
|
+
hierarchyDrop.value = parentHierarchy;
|
|
32528
|
+
}
|
|
32529
|
+
if (formatString !== '') {
|
|
32530
|
+
formatDrop.value = formatString;
|
|
32531
|
+
formatDrop.dataBind();
|
|
32532
|
+
}
|
|
32533
|
+
customFormat.value = customString;
|
|
32534
|
+
}
|
|
32535
|
+
else {
|
|
32536
|
+
customFormat.value = formatString;
|
|
32537
|
+
addClass(this.treeObj.element.querySelectorAll('.' + CALC_EDITED), CALC_EDIT);
|
|
32538
|
+
removeClass(this.treeObj.element.querySelectorAll('.' + CALC_EDITED), CALC_EDITED);
|
|
32539
|
+
addClass([node.querySelector('.e-list-icon')], CALC_EDITED);
|
|
32540
|
+
removeClass([node.querySelector('.e-list-icon')], CALC_EDIT);
|
|
32541
|
+
node.querySelector('.' + CALC_EDITED).setAttribute('title', this.parent.localeObj.getConstant('clearCalculatedField'));
|
|
32542
|
+
select('#' + this.parentID + 'droppable', document).value = node.getAttribute('data-uid');
|
|
31678
32543
|
}
|
|
31679
|
-
|
|
31680
|
-
|
|
32544
|
+
customFormat.dataBind();
|
|
32545
|
+
}
|
|
32546
|
+
else if (node.tagName === 'LI' && (node.querySelector('.' + CALC_EDITED) &&
|
|
32547
|
+
node.querySelector('.' + CALC_EDITED).classList.contains('e-list-icon') && edited ||
|
|
32548
|
+
(this.parent.dataType === 'olap' && !node.classList.contains('e-active')))) {
|
|
32549
|
+
this.isEdit = false;
|
|
32550
|
+
this.inputObj.value = '';
|
|
32551
|
+
this.inputObj.dataBind();
|
|
32552
|
+
var dialogElement = this.dialog.element;
|
|
32553
|
+
var customFormat = getInstance(select('#' + this.parentID + 'Custom_Format_Element', dialogElement), MaskedTextBox);
|
|
32554
|
+
customFormat.value = '';
|
|
32555
|
+
customFormat.dataBind();
|
|
32556
|
+
if (this.parent.dataType === 'olap') {
|
|
32557
|
+
var hierarchyDrop = getInstance(select('#' + this.parentID + 'Hierarchy_List_Div', dialogElement), DropDownList);
|
|
32558
|
+
var formatDrop = getInstance(select('#' + this.parentID + 'Format_Div', dialogElement), DropDownList);
|
|
32559
|
+
var memberTypeDrop = getInstance(select('#' + this.parentID + 'Member_Type_Div', dialogElement), DropDownList);
|
|
32560
|
+
var fieldTitle = select('#' + this.parentID + '_' + 'FieldNameTitle', dialogElement);
|
|
32561
|
+
/* eslint-enable max-len */
|
|
32562
|
+
fieldTitle.innerHTML = this.parent.localeObj.getConstant('fieldTitle');
|
|
32563
|
+
hierarchyDrop.index = 0;
|
|
32564
|
+
hierarchyDrop.dataBind();
|
|
32565
|
+
formatDrop.index = 0;
|
|
31681
32566
|
formatDrop.dataBind();
|
|
32567
|
+
memberTypeDrop.index = 0;
|
|
32568
|
+
memberTypeDrop.readonly = false;
|
|
32569
|
+
memberTypeDrop.dataBind();
|
|
32570
|
+
}
|
|
32571
|
+
else {
|
|
32572
|
+
addClass(this.treeObj.element.querySelectorAll('.' + CALC_EDITED), CALC_EDIT);
|
|
32573
|
+
removeClass(this.treeObj.element.querySelectorAll('.' + CALC_EDITED), CALC_EDITED);
|
|
32574
|
+
node.querySelector('.' + CALC_EDIT).setAttribute('title', this.parent.localeObj.getConstant('edit'));
|
|
31682
32575
|
}
|
|
31683
|
-
|
|
32576
|
+
select('#' + this.parentID + 'droppable', document).value = '';
|
|
31684
32577
|
}
|
|
31685
|
-
else
|
|
31686
|
-
|
|
31687
|
-
|
|
31688
|
-
|
|
31689
|
-
|
|
31690
|
-
|
|
31691
|
-
|
|
31692
|
-
|
|
32578
|
+
else if (node.tagName === 'LI' && (node.querySelector('.' + GRID_REMOVE) &&
|
|
32579
|
+
node.querySelector('.' + GRID_REMOVE).classList.contains('e-list-icon')) && !edit && !edited) {
|
|
32580
|
+
this.parent.actionObj.actionName = removeField;
|
|
32581
|
+
if (this.parent.actionBeginMethod()) {
|
|
32582
|
+
return;
|
|
32583
|
+
}
|
|
32584
|
+
var dropField = select('#' + this.parentID + 'droppable', document);
|
|
32585
|
+
var field = {
|
|
32586
|
+
name: this.isEdit ? this.currentFieldName : this.inputObj.value,
|
|
32587
|
+
caption: this.inputObj.value,
|
|
32588
|
+
formula: dropField.value
|
|
32589
|
+
};
|
|
32590
|
+
this.createConfirmDialog(this.parent.localeObj.getConstant('alert'), this.parent.localeObj.getConstant('removeCalculatedField'), field, true, treeNode);
|
|
31693
32591
|
}
|
|
31694
|
-
customFormat.dataBind();
|
|
31695
32592
|
}
|
|
31696
|
-
|
|
31697
|
-
|
|
31698
|
-
(this.parent.dataType === 'olap' && !node.classList.contains('e-active')))) {
|
|
31699
|
-
this.isEdit = false;
|
|
31700
|
-
this.inputObj.value = '';
|
|
31701
|
-
this.inputObj.dataBind();
|
|
31702
|
-
var dialogElement = this.dialog.element;
|
|
31703
|
-
var customFormat = getInstance(select('#' + this.parentID + 'Custom_Format_Element', dialogElement), MaskedTextBox);
|
|
31704
|
-
customFormat.value = '';
|
|
31705
|
-
customFormat.dataBind();
|
|
31706
|
-
if (this.parent.dataType === 'olap') {
|
|
31707
|
-
var hierarchyDrop = getInstance(select('#' + this.parentID + 'Hierarchy_List_Div', dialogElement), DropDownList);
|
|
31708
|
-
var formatDrop = getInstance(select('#' + this.parentID + 'Format_Div', dialogElement), DropDownList);
|
|
31709
|
-
var memberTypeDrop = getInstance(select('#' + this.parentID + 'Member_Type_Div', dialogElement), DropDownList);
|
|
31710
|
-
var fieldTitle = select('#' + this.parentID + '_' + 'FieldNameTitle', dialogElement);
|
|
31711
|
-
/* eslint-enable max-len */
|
|
31712
|
-
fieldTitle.innerHTML = this.parent.localeObj.getConstant('fieldTitle');
|
|
31713
|
-
hierarchyDrop.index = 0;
|
|
31714
|
-
hierarchyDrop.dataBind();
|
|
31715
|
-
formatDrop.index = 0;
|
|
31716
|
-
formatDrop.dataBind();
|
|
31717
|
-
memberTypeDrop.index = 0;
|
|
31718
|
-
memberTypeDrop.readonly = false;
|
|
31719
|
-
memberTypeDrop.dataBind();
|
|
31720
|
-
}
|
|
31721
|
-
else {
|
|
31722
|
-
addClass(this.treeObj.element.querySelectorAll('.' + CALC_EDITED), CALC_EDIT);
|
|
31723
|
-
removeClass(this.treeObj.element.querySelectorAll('.' + CALC_EDITED), CALC_EDITED);
|
|
31724
|
-
node.querySelector('.' + CALC_EDIT).setAttribute('title', this.parent.localeObj.getConstant('edit'));
|
|
31725
|
-
}
|
|
31726
|
-
select('#' + this.parentID + 'droppable', document).value = '';
|
|
31727
|
-
}
|
|
31728
|
-
else if (node.tagName === 'LI' && (node.querySelector('.' + GRID_REMOVE) &&
|
|
31729
|
-
node.querySelector('.' + GRID_REMOVE).classList.contains('e-list-icon')) && !edit && !edited) {
|
|
31730
|
-
var dropField = select('#' + this.parentID + 'droppable', document);
|
|
31731
|
-
var field = {
|
|
31732
|
-
name: this.isEdit ? this.currentFieldName : this.inputObj.value,
|
|
31733
|
-
caption: this.inputObj.value,
|
|
31734
|
-
formula: dropField.value
|
|
31735
|
-
};
|
|
31736
|
-
this.createConfirmDialog(this.parent.localeObj.getConstant('alert'), this.parent.localeObj.getConstant('removeCalculatedField'), field, true, treeNode);
|
|
32593
|
+
catch (execption) {
|
|
32594
|
+
this.parent.actionFailureMethod(execption);
|
|
31737
32595
|
}
|
|
31738
32596
|
};
|
|
31739
32597
|
CalculatedField.prototype.removeCalcField = function (node) {
|
|
@@ -32150,6 +33008,12 @@ var CalculatedField = /** @__PURE__ @class */ (function () {
|
|
|
32150
33008
|
this.parent.isRequiredUpdate = false;
|
|
32151
33009
|
}
|
|
32152
33010
|
try {
|
|
33011
|
+
var actionInfo = {
|
|
33012
|
+
calculatedFieldInfo: this.parent.lastCalcFieldInfo
|
|
33013
|
+
};
|
|
33014
|
+
this.parent.actionObj.actionInfo = actionInfo;
|
|
33015
|
+
var actionName = (this.parent.actionObj.actionName == editCalculatedField) ? calculatedFieldEdited : calculatedFieldApplied;
|
|
33016
|
+
this.parent.actionObj.actionName = actionName;
|
|
32153
33017
|
this.parent.updateDataSource(false);
|
|
32154
33018
|
var pivot = (this.parent.getModuleName() === 'pivotfieldlist' && this.parent.pivotGridModule) ?
|
|
32155
33019
|
this.parent.pivotGridModule : this.parent;
|
|
@@ -33605,7 +34469,7 @@ var FieldList = /** @__PURE__ @class */ (function () {
|
|
|
33605
34469
|
FieldList.prototype.update = function () {
|
|
33606
34470
|
var currentWidth;
|
|
33607
34471
|
if (this.parent.currentView !== 'Table') {
|
|
33608
|
-
currentWidth = this.parent.chart ? this.parent.
|
|
34472
|
+
currentWidth = this.parent.chart ? this.parent.pivotChartModule.getCalulatedWidth() : currentWidth;
|
|
33609
34473
|
}
|
|
33610
34474
|
else {
|
|
33611
34475
|
currentWidth = this.parent.grid ? this.parent.grid.element.offsetWidth : currentWidth;
|
|
@@ -34085,7 +34949,7 @@ var GroupingBar = /** @__PURE__ @class */ (function () {
|
|
|
34085
34949
|
currentWidth = this.parent.grid ? this.parent.grid.element.offsetWidth : currentWidth;
|
|
34086
34950
|
}
|
|
34087
34951
|
else {
|
|
34088
|
-
currentWidth = this.parent.chart ? this.parent.
|
|
34952
|
+
currentWidth = this.parent.chart ? this.parent.pivotChartModule.getCalulatedWidth() : currentWidth;
|
|
34089
34953
|
}
|
|
34090
34954
|
if (currentWidth) {
|
|
34091
34955
|
var actWidth = currentWidth < 400 ? 400 : currentWidth;
|
|
@@ -34357,15 +35221,17 @@ var ConditionalFormatting = /** @__PURE__ @class */ (function () {
|
|
|
34357
35221
|
},
|
|
34358
35222
|
{
|
|
34359
35223
|
click: this.applyButtonClick.bind(this),
|
|
35224
|
+
isFlat: true,
|
|
34360
35225
|
buttonModel: {
|
|
34361
|
-
|
|
35226
|
+
isPrimary: true, cssClass: FORMAT_APPLY_BUTTON,
|
|
34362
35227
|
content: this.parent.localeObj.getConstant('apply')
|
|
34363
35228
|
}
|
|
34364
35229
|
},
|
|
34365
35230
|
{
|
|
34366
35231
|
click: this.cancelButtonClick.bind(this),
|
|
35232
|
+
isFlat: true,
|
|
34367
35233
|
buttonModel: {
|
|
34368
|
-
cssClass:
|
|
35234
|
+
cssClass: FORMAT_CANCEL_BUTTON,
|
|
34369
35235
|
content: this.parent.localeObj.getConstant('cancel')
|
|
34370
35236
|
}
|
|
34371
35237
|
}
|
|
@@ -34419,6 +35285,10 @@ var ConditionalFormatting = /** @__PURE__ @class */ (function () {
|
|
|
34419
35285
|
ConditionalFormatting.prototype.applyButtonClick = function () {
|
|
34420
35286
|
if (this.refreshConditionValues()) {
|
|
34421
35287
|
this.parent.setProperties({ dataSourceSettings: { conditionalFormatSettings: this.newFormat } }, true);
|
|
35288
|
+
var actionInfo = {
|
|
35289
|
+
conditionalFormattingInfo: this.parent.dataSourceSettings.conditionalFormatSettings
|
|
35290
|
+
};
|
|
35291
|
+
this.parent.actionObj.actionInfo = actionInfo;
|
|
34422
35292
|
this.parent.renderPivotGrid();
|
|
34423
35293
|
this.dialog.close();
|
|
34424
35294
|
}
|
|
@@ -35117,12 +35987,22 @@ var Toolbar$2 = /** @__PURE__ @class */ (function () {
|
|
|
35117
35987
|
};
|
|
35118
35988
|
/* eslint-enable */
|
|
35119
35989
|
Toolbar$$1.prototype.reportChange = function (args) {
|
|
35120
|
-
this.
|
|
35121
|
-
if (this.parent.
|
|
35122
|
-
|
|
35990
|
+
this.parent.actionObj.actionName = reportChange;
|
|
35991
|
+
if (this.parent.actionBeginMethod()) {
|
|
35992
|
+
args.cancel = true;
|
|
35993
|
+
return;
|
|
35123
35994
|
}
|
|
35124
|
-
|
|
35125
|
-
this.
|
|
35995
|
+
try {
|
|
35996
|
+
this.dropArgs = args;
|
|
35997
|
+
if (this.parent.isModified && this.currentReport !== '') {
|
|
35998
|
+
this.createConfirmDialog(this.parent.localeObj.getConstant('alert'), this.parent.localeObj.getConstant('newReportConfirm'));
|
|
35999
|
+
}
|
|
36000
|
+
else {
|
|
36001
|
+
this.reportLoad(args);
|
|
36002
|
+
}
|
|
36003
|
+
}
|
|
36004
|
+
catch (execption) {
|
|
36005
|
+
this.parent.actionFailureMethod(execption);
|
|
35126
36006
|
}
|
|
35127
36007
|
};
|
|
35128
36008
|
Toolbar$$1.prototype.reportLoad = function (args) {
|
|
@@ -35131,6 +36011,10 @@ var Toolbar$2 = /** @__PURE__ @class */ (function () {
|
|
|
35131
36011
|
var loadArgs = {
|
|
35132
36012
|
reportName: args.itemData.value
|
|
35133
36013
|
};
|
|
36014
|
+
var actionInfo = {
|
|
36015
|
+
reportName: args.itemData.value
|
|
36016
|
+
};
|
|
36017
|
+
this.parent.actionObj.actionInfo = actionInfo;
|
|
35134
36018
|
this.parent.trigger(loadReport, loadArgs, function (observedArgs) {
|
|
35135
36019
|
_this_1.currentReport = observedArgs.reportName;
|
|
35136
36020
|
_this_1.parent.isModified = false;
|
|
@@ -35143,7 +36027,15 @@ var Toolbar$2 = /** @__PURE__ @class */ (function () {
|
|
|
35143
36027
|
report: this.parent.getPersistData(),
|
|
35144
36028
|
reportName: this.currentReport
|
|
35145
36029
|
};
|
|
36030
|
+
this.parent.actionObj.actionName = this.parent.getActionCompleteName();
|
|
36031
|
+
var actionInfo = {
|
|
36032
|
+
reportName: this.currentReport
|
|
36033
|
+
};
|
|
36034
|
+
this.parent.actionObj.actionInfo = actionInfo;
|
|
35146
36035
|
this.parent.trigger(saveReport, saveArgs);
|
|
36036
|
+
if (this.parent.actionObj.actionName) {
|
|
36037
|
+
this.parent.actionCompleteMethod();
|
|
36038
|
+
}
|
|
35147
36039
|
this.parent.isModified = false;
|
|
35148
36040
|
}
|
|
35149
36041
|
else if (this.currentReport === '' && (args.item.id === (this.parent.element.id + 'save') || args.item.id === (this.parent.element.id + 'saveas'))) {
|
|
@@ -35207,54 +36099,67 @@ var Toolbar$2 = /** @__PURE__ @class */ (function () {
|
|
|
35207
36099
|
}
|
|
35208
36100
|
};
|
|
35209
36101
|
Toolbar$$1.prototype.actionClick = function (args) {
|
|
35210
|
-
|
|
35211
|
-
|
|
35212
|
-
|
|
35213
|
-
|
|
35214
|
-
|
|
35215
|
-
|
|
35216
|
-
|
|
35217
|
-
|
|
35218
|
-
|
|
35219
|
-
|
|
35220
|
-
|
|
35221
|
-
|
|
35222
|
-
|
|
35223
|
-
|
|
35224
|
-
|
|
35225
|
-
|
|
35226
|
-
|
|
35227
|
-
|
|
35228
|
-
|
|
35229
|
-
|
|
35230
|
-
|
|
35231
|
-
|
|
35232
|
-
|
|
35233
|
-
|
|
35234
|
-
this.
|
|
35235
|
-
|
|
35236
|
-
|
|
35237
|
-
|
|
35238
|
-
|
|
35239
|
-
|
|
35240
|
-
|
|
35241
|
-
|
|
35242
|
-
|
|
35243
|
-
|
|
35244
|
-
|
|
35245
|
-
|
|
35246
|
-
|
|
35247
|
-
this.
|
|
35248
|
-
|
|
35249
|
-
|
|
35250
|
-
|
|
35251
|
-
|
|
35252
|
-
|
|
35253
|
-
|
|
35254
|
-
|
|
35255
|
-
this.parent.
|
|
35256
|
-
|
|
35257
|
-
|
|
36102
|
+
var actionName = (args.item.id == "PivotViewnew") ? addNewReport : (args.item.id == "PivotViewsave") ? saveCurrentReport : (args.item.id == "PivotViewsaveas") ? saveAsCurrentReport
|
|
36103
|
+
: (args.item.id == "PivotViewrename") ? renameCurrentReport : (args.item.id == "PivotViewremove") ? removeCurrentReport : (args.item.id == "PivotViewload") ? loadReports
|
|
36104
|
+
: (args.item.id == "PivotViewformatting") ? openConditionalFormatting : (args.item.id == "PivotViewnumberFormatting") ? openNumberFormatting
|
|
36105
|
+
: (args.item.id == "PivotViewmdxQuery") ? MdxQuery : (args.item.id == "PivotViewfieldlist") ? showFieldList : '';
|
|
36106
|
+
this.parent.actionObj.actionName = actionName;
|
|
36107
|
+
if (this.parent.actionBeginMethod()) {
|
|
36108
|
+
return;
|
|
36109
|
+
}
|
|
36110
|
+
try {
|
|
36111
|
+
switch (args.item.id) {
|
|
36112
|
+
case (this.parent.element.id + 'save'):
|
|
36113
|
+
case (this.parent.element.id + 'saveas'):
|
|
36114
|
+
this.saveReport(args);
|
|
36115
|
+
break;
|
|
36116
|
+
case (this.parent.element.id + 'remove'):
|
|
36117
|
+
this.action = 'Remove';
|
|
36118
|
+
if (this.currentReport && this.currentReport !== '') {
|
|
36119
|
+
this.createConfirmDialog(this.parent.localeObj.getConstant('alert'), this.parent.localeObj.getConstant('removeConfirm'));
|
|
36120
|
+
}
|
|
36121
|
+
else {
|
|
36122
|
+
this.parent.pivotCommon.errorDialog.createErrorDialog(this.parent.localeObj.getConstant('error'), this.parent.localeObj.getConstant('emptyReport'));
|
|
36123
|
+
}
|
|
36124
|
+
return;
|
|
36125
|
+
case (this.parent.element.id + 'rename'):
|
|
36126
|
+
this.renameReport(args);
|
|
36127
|
+
break;
|
|
36128
|
+
case (this.parent.element.id + 'new'):
|
|
36129
|
+
this.action = 'New';
|
|
36130
|
+
this.newArgs = args;
|
|
36131
|
+
if (this.parent.isModified && this.currentReport && this.currentReport !== '') {
|
|
36132
|
+
this.createConfirmDialog(this.parent.localeObj.getConstant('alert'), this.parent.localeObj.getConstant('newReportConfirm'));
|
|
36133
|
+
}
|
|
36134
|
+
else {
|
|
36135
|
+
this.createNewReport(args);
|
|
36136
|
+
}
|
|
36137
|
+
break;
|
|
36138
|
+
case (this.parent.element.id + 'load'):
|
|
36139
|
+
this.action = 'Load';
|
|
36140
|
+
break;
|
|
36141
|
+
case (this.parent.element.id + 'fieldlist'):
|
|
36142
|
+
if (this.parent.pivotFieldListModule && this.parent.pivotFieldListModule.dialogRenderer) {
|
|
36143
|
+
this.parent.pivotFieldListModule.dialogRenderer.fieldListDialog.show();
|
|
36144
|
+
}
|
|
36145
|
+
break;
|
|
36146
|
+
case (this.parent.element.id + 'formatting'):
|
|
36147
|
+
if (this.parent.conditionalFormattingModule) {
|
|
36148
|
+
this.parent.conditionalFormattingModule.showConditionalFormattingDialog();
|
|
36149
|
+
}
|
|
36150
|
+
break;
|
|
36151
|
+
case (this.parent.element.id + 'mdxQuery'):
|
|
36152
|
+
this.mdxQueryDialog(args);
|
|
36153
|
+
break;
|
|
36154
|
+
case (this.parent.element.id + 'numberFormatting'):
|
|
36155
|
+
if (this.parent.numberFormattingModule) {
|
|
36156
|
+
this.parent.numberFormattingModule.showNumberFormattingDialog();
|
|
36157
|
+
}
|
|
36158
|
+
break;
|
|
36159
|
+
}
|
|
36160
|
+
}
|
|
36161
|
+
catch (execption) {
|
|
36162
|
+
this.parent.actionFailureMethod(execption);
|
|
35258
36163
|
}
|
|
35259
36164
|
};
|
|
35260
36165
|
Toolbar$$1.prototype.renderDialog = function () {
|
|
@@ -35346,6 +36251,7 @@ var Toolbar$2 = /** @__PURE__ @class */ (function () {
|
|
|
35346
36251
|
return;
|
|
35347
36252
|
};
|
|
35348
36253
|
Toolbar$$1.prototype.okBtnClick = function () {
|
|
36254
|
+
var _this_1 = this;
|
|
35349
36255
|
var reportInput = this.dialog.element.querySelector('.' + GRID_REPORT_INPUT);
|
|
35350
36256
|
if (reportInput && reportInput.value === '') {
|
|
35351
36257
|
reportInput.focus();
|
|
@@ -35377,6 +36283,10 @@ var Toolbar$2 = /** @__PURE__ @class */ (function () {
|
|
|
35377
36283
|
report: _this_2.parent.getPersistData(),
|
|
35378
36284
|
reportName: reportInput.value
|
|
35379
36285
|
};
|
|
36286
|
+
var actionInfo = {
|
|
36287
|
+
reportName: reportInput.value
|
|
36288
|
+
};
|
|
36289
|
+
_this_1.parent.actionObj.actionInfo = actionInfo;
|
|
35380
36290
|
_this_2.parent.trigger(saveReport, saveArgs);
|
|
35381
36291
|
_this_2.parent.isModified = false;
|
|
35382
36292
|
_this_2.updateReportList();
|
|
@@ -35409,6 +36319,10 @@ var Toolbar$2 = /** @__PURE__ @class */ (function () {
|
|
|
35409
36319
|
report: _this_3.parent.getPersistData(),
|
|
35410
36320
|
reportName: reportInput.value
|
|
35411
36321
|
};
|
|
36322
|
+
var actionInfo = {
|
|
36323
|
+
reportName: reportInput.value
|
|
36324
|
+
};
|
|
36325
|
+
_this_1.parent.actionObj.actionInfo = actionInfo;
|
|
35412
36326
|
_this_3.parent.trigger(saveReport, saveArgs);
|
|
35413
36327
|
_this_3.parent.isModified = false;
|
|
35414
36328
|
_this_3.updateReportList();
|
|
@@ -35443,12 +36357,20 @@ var Toolbar$2 = /** @__PURE__ @class */ (function () {
|
|
|
35443
36357
|
reportName: _this_4.currentReport,
|
|
35444
36358
|
rename: reportInput.value
|
|
35445
36359
|
};
|
|
36360
|
+
var actionInfo = {
|
|
36361
|
+
reportName: { oldName: _this_4.currentReport, newName: reportInput.value }
|
|
36362
|
+
};
|
|
36363
|
+
_this_1.parent.actionObj.actionInfo = actionInfo;
|
|
35446
36364
|
_this_4.parent.trigger(renameReport, renameArgs);
|
|
35447
36365
|
_this_4.currentReport = reportInput.value;
|
|
35448
36366
|
_this_4.updateReportList();
|
|
35449
36367
|
_this_4.dialog.hide();
|
|
35450
36368
|
});
|
|
35451
36369
|
}
|
|
36370
|
+
this.parent.actionObj.actionName = this.parent.getActionCompleteName();
|
|
36371
|
+
if (this.parent.actionObj.actionName) {
|
|
36372
|
+
this.parent.actionCompleteMethod();
|
|
36373
|
+
}
|
|
35452
36374
|
};
|
|
35453
36375
|
Toolbar$$1.prototype.createNewReport = function (args) {
|
|
35454
36376
|
this.dialogShow(args);
|
|
@@ -35507,6 +36429,10 @@ var Toolbar$2 = /** @__PURE__ @class */ (function () {
|
|
|
35507
36429
|
var removeArgs = {
|
|
35508
36430
|
reportName: this.currentReport
|
|
35509
36431
|
};
|
|
36432
|
+
var actionInfo = {
|
|
36433
|
+
reportName: this.currentReport
|
|
36434
|
+
};
|
|
36435
|
+
this.parent.actionObj.actionInfo = actionInfo;
|
|
35510
36436
|
this.parent.trigger(removeReport, removeArgs);
|
|
35511
36437
|
var reports = this.fetchReports();
|
|
35512
36438
|
if (reports.reportName && reports.reportName.length > 0) {
|
|
@@ -35525,6 +36451,10 @@ var Toolbar$2 = /** @__PURE__ @class */ (function () {
|
|
|
35525
36451
|
this.action = '';
|
|
35526
36452
|
}
|
|
35527
36453
|
this.updateReportList();
|
|
36454
|
+
this.parent.actionObj.actionName = reportRemoved;
|
|
36455
|
+
if (this.parent.actionObj.actionName) {
|
|
36456
|
+
this.parent.actionCompleteMethod();
|
|
36457
|
+
}
|
|
35528
36458
|
}
|
|
35529
36459
|
else if (this.action === 'New' || (this.action !== 'Save' && this.action !== 'Rename' && this.action !== 'New')) {
|
|
35530
36460
|
if (this.currentReport && this.currentReport !== '' && this.parent.isModified) {
|
|
@@ -35532,12 +36462,22 @@ var Toolbar$2 = /** @__PURE__ @class */ (function () {
|
|
|
35532
36462
|
report: this.parent.getPersistData(),
|
|
35533
36463
|
reportName: this.currentReport
|
|
35534
36464
|
};
|
|
36465
|
+
var actionInfo = {
|
|
36466
|
+
reportName: this.currentReport
|
|
36467
|
+
};
|
|
36468
|
+
this.parent.actionObj.actionInfo = actionInfo;
|
|
36469
|
+
this.parent.actionObj.actionName = reportSaved;
|
|
36470
|
+
if (this.parent.actionObj.actionName) {
|
|
36471
|
+
this.parent.actionCompleteMethod();
|
|
36472
|
+
}
|
|
35535
36473
|
this.parent.trigger(saveReport, saveArgs);
|
|
35536
36474
|
this.parent.isModified = false;
|
|
35537
36475
|
if (this.action === 'New') {
|
|
36476
|
+
this.parent.actionObj.actionName = addNewReport;
|
|
35538
36477
|
this.createNewReport(this.newArgs);
|
|
35539
36478
|
}
|
|
35540
36479
|
else {
|
|
36480
|
+
this.parent.actionObj.actionName = reportChange;
|
|
35541
36481
|
this.reportLoad(this.dropArgs);
|
|
35542
36482
|
}
|
|
35543
36483
|
}
|
|
@@ -35643,6 +36583,7 @@ var Toolbar$2 = /** @__PURE__ @class */ (function () {
|
|
|
35643
36583
|
this.chartMenu = new Menu({
|
|
35644
36584
|
items: menu, enableRtl: this.parent.enableRtl,
|
|
35645
36585
|
locale: this.parent.locale,
|
|
36586
|
+
cssClass: TOOLBAR_MENU,
|
|
35646
36587
|
select: this.menuItemClick.bind(this),
|
|
35647
36588
|
beforeOpen: this.whitespaceRemove.bind(this),
|
|
35648
36589
|
onClose: function (args) {
|
|
@@ -35699,6 +36640,7 @@ var Toolbar$2 = /** @__PURE__ @class */ (function () {
|
|
|
35699
36640
|
this.exportMenu = new Menu({
|
|
35700
36641
|
items: menu, enableRtl: this.parent.enableRtl,
|
|
35701
36642
|
locale: this.parent.locale,
|
|
36643
|
+
cssClass: TOOLBAR_MENU,
|
|
35702
36644
|
select: this.menuItemClick.bind(this), beforeOpen: this.updateExportMenu.bind(this),
|
|
35703
36645
|
onClose: function (args) {
|
|
35704
36646
|
_this_1.focusToolBar();
|
|
@@ -35736,6 +36678,7 @@ var Toolbar$2 = /** @__PURE__ @class */ (function () {
|
|
|
35736
36678
|
this.subTotalMenu = new Menu({
|
|
35737
36679
|
items: menu, enableRtl: this.parent.enableRtl,
|
|
35738
36680
|
locale: this.parent.locale,
|
|
36681
|
+
cssClass: TOOLBAR_MENU,
|
|
35739
36682
|
select: this.menuItemClick.bind(this), beforeOpen: this.updateSubtotalSelection.bind(this),
|
|
35740
36683
|
onClose: function (args) {
|
|
35741
36684
|
_this_1.focusToolBar();
|
|
@@ -35773,6 +36716,7 @@ var Toolbar$2 = /** @__PURE__ @class */ (function () {
|
|
|
35773
36716
|
this.grandTotalMenu = new Menu({
|
|
35774
36717
|
items: menu, enableRtl: this.parent.enableRtl,
|
|
35775
36718
|
locale: this.parent.locale,
|
|
36719
|
+
cssClass: TOOLBAR_MENU,
|
|
35776
36720
|
select: this.menuItemClick.bind(this), beforeOpen: this.updateGrandtotalSelection.bind(this),
|
|
35777
36721
|
onClose: function (args) {
|
|
35778
36722
|
_this_1.focusToolBar();
|
|
@@ -35800,6 +36744,7 @@ var Toolbar$2 = /** @__PURE__ @class */ (function () {
|
|
|
35800
36744
|
this.formattingMenu = new Menu({
|
|
35801
36745
|
items: menu, enableRtl: this.parent.enableRtl,
|
|
35802
36746
|
locale: this.parent.locale,
|
|
36747
|
+
cssClass: TOOLBAR_MENU,
|
|
35803
36748
|
select: this.menuItemClick.bind(this)
|
|
35804
36749
|
});
|
|
35805
36750
|
this.formattingMenu.isStringTemplate = true;
|
|
@@ -35999,181 +36944,202 @@ var Toolbar$2 = /** @__PURE__ @class */ (function () {
|
|
|
35999
36944
|
var _this_1 = this;
|
|
36000
36945
|
var exportArgs = {};
|
|
36001
36946
|
var type;
|
|
36947
|
+
var actionName = (args.item.id == "PivotViewgrid") ? tableView : (args.item.id == "PivotView_Column") ? chartView : (args.item.id == "PivotView_Bar") ? chartView : (args.item.id == "PivotView_Line") ? chartView
|
|
36948
|
+
: (args.item.id == "PivotView_Area") ? chartView : (args.item.id == "PivotView_Scatter") ? chartView : (args.item.id == "PivotView_Polar") ? chartView : (args.item.id == "PivotView_ChartMoreOption") ? chartView
|
|
36949
|
+
: (args.item.id == "PivotView_multipleAxes") ? multipleAxis : (args.item.id == "PivotView_showLegend") ? showLegend : (args.item.id == "PivotViewpdf") ? pdfExport : (args.item.id == "PivotViewpng") ? pngExport
|
|
36950
|
+
: (args.item.id == "PivotViewexcel") ? excelExport : (args.item.id == "PivotViewcsv") ? csvExport : (args.item.id == "PivotViewjpeg") ? jpegExport : (args.item.id == "PivotViewsvg") ? svgExport
|
|
36951
|
+
: (args.item.id == "PivotViewnotsubtotal") ? hideSubTotals : (args.item.id == "PivotViewsubtotalrow") ? subTotalsRow : (args.item.id == "PivotViewsubtotalcolumn") ? subTotalsColumn
|
|
36952
|
+
: (args.item.id == "PivotViewsubtotal") ? showSubTotals : (args.item.id == "PivotViewnotgrandtotal") ? hideGrandTotals : (args.item.id == "PivotViewgrandtotalrow") ? grandTotalsRow
|
|
36953
|
+
: (args.item.id == "PivotViewgrandtotalcolumn") ? grandTotalsColumn : (args.item.id == "PivotViewgrandtotal") ? showGrandTotals
|
|
36954
|
+
: (args.item.id == "PivotViewnumberFormattingMenu") ? numberFormattingMenu : (args.item.id == "PivotViewconditionalFormattingMenu") ? conditionalFormattingMenu : '';
|
|
36955
|
+
this.parent.actionObj.actionName = actionName;
|
|
36956
|
+
if (this.parent.actionBeginMethod()) {
|
|
36957
|
+
return;
|
|
36958
|
+
}
|
|
36002
36959
|
if (this.getAllChartItems().indexOf(args.item.id.split(this.parent.element.id + '_')[1]) > -1 ||
|
|
36003
36960
|
(args.item.id.split(this.parent.element.id + '_')[1] === 'ChartMoreOption') ||
|
|
36004
36961
|
(args.item.id.split(this.parent.element.id + '_')[1] === 'multipleAxes') ||
|
|
36005
36962
|
(args.item.id.split(this.parent.element.id + '_')[1] === 'showLegend')) {
|
|
36006
36963
|
type = args.item.id.split(this.parent.element.id + '_')[1];
|
|
36007
36964
|
}
|
|
36008
|
-
|
|
36009
|
-
|
|
36010
|
-
|
|
36011
|
-
this.parent.grid.
|
|
36012
|
-
|
|
36013
|
-
|
|
36014
|
-
this.parent.
|
|
36015
|
-
|
|
36016
|
-
|
|
36017
|
-
|
|
36018
|
-
|
|
36019
|
-
this.parent.
|
|
36020
|
-
|
|
36965
|
+
try {
|
|
36966
|
+
switch (args.item.id) {
|
|
36967
|
+
case (this.parent.element.id + 'grid'):
|
|
36968
|
+
if (this.parent.grid && this.parent.chart) {
|
|
36969
|
+
this.parent.grid.element.style.display = '';
|
|
36970
|
+
this.parent.chart.element.style.display = 'none';
|
|
36971
|
+
if (this.parent.chartSettings.enableMultipleAxis && this.parent.chartSettings.enableScrollOnMultiAxis) {
|
|
36972
|
+
this.parent.element.querySelector('.e-pivotchart').style.display = 'none';
|
|
36973
|
+
}
|
|
36974
|
+
this.parent.currentView = 'Table';
|
|
36975
|
+
this.parent.setProperties({ displayOption: { primary: 'Table' } }, true);
|
|
36976
|
+
if (this.parent.showGroupingBar && this.parent.groupingBarModule) {
|
|
36977
|
+
this.parent.element.querySelector('.e-pivot-grouping-bar').style.display = '';
|
|
36978
|
+
this.parent.element.querySelector('.e-chart-grouping-bar').style.display = 'none';
|
|
36979
|
+
}
|
|
36980
|
+
var actionInfo = {
|
|
36981
|
+
toolbarInfo: { displayOption: this.parent.displayOption, gridSettings: this.parent.gridSettings }
|
|
36982
|
+
};
|
|
36983
|
+
this.parent.actionObj.actionInfo = actionInfo;
|
|
36984
|
+
this.parent.layoutRefresh();
|
|
36021
36985
|
}
|
|
36022
|
-
|
|
36023
|
-
|
|
36024
|
-
|
|
36025
|
-
|
|
36026
|
-
|
|
36986
|
+
break;
|
|
36987
|
+
case (this.parent.element.id + 'pdf'):
|
|
36988
|
+
if (this.parent.currentView === 'Table') {
|
|
36989
|
+
exportArgs = {
|
|
36990
|
+
pdfExportProperties: { fileName: 'Export.pdf' },
|
|
36991
|
+
pdfDoc: undefined,
|
|
36992
|
+
isBlob: false,
|
|
36993
|
+
isMultipleExport: false
|
|
36994
|
+
};
|
|
36995
|
+
this.parent.trigger(beforeExport, exportArgs, function (observedArgs) {
|
|
36996
|
+
_this_1.parent.pdfExport(observedArgs.pdfExportProperties, observedArgs.isMultipleExport, observedArgs.pdfDoc, observedArgs.isBlob);
|
|
36997
|
+
});
|
|
36998
|
+
}
|
|
36999
|
+
else {
|
|
37000
|
+
exportArgs = {
|
|
37001
|
+
width: undefined,
|
|
37002
|
+
height: undefined,
|
|
37003
|
+
orientation: PdfPageOrientation.Landscape,
|
|
37004
|
+
type: 'PDF',
|
|
37005
|
+
fileName: 'result',
|
|
37006
|
+
};
|
|
37007
|
+
this.parent.trigger(beforeExport, exportArgs, function (observedArgs) {
|
|
37008
|
+
_this_1.parent.chartExport(observedArgs.type, observedArgs.fileName, observedArgs.orientation, observedArgs.width, observedArgs.height);
|
|
37009
|
+
});
|
|
37010
|
+
}
|
|
37011
|
+
break;
|
|
37012
|
+
case (this.parent.element.id + 'excel'):
|
|
36027
37013
|
exportArgs = {
|
|
36028
|
-
|
|
36029
|
-
|
|
37014
|
+
excelExportProperties: { fileName: 'Export.xlsx' },
|
|
37015
|
+
isBlob: undefined,
|
|
37016
|
+
isMultipleExport: undefined,
|
|
37017
|
+
workbook: undefined
|
|
37018
|
+
};
|
|
37019
|
+
this.parent.trigger(beforeExport, exportArgs, function (observedArgs) {
|
|
37020
|
+
_this_1.parent.excelExport(observedArgs.excelExportProperties, observedArgs.isMultipleExport, observedArgs.workbook, observedArgs.isBlob);
|
|
37021
|
+
});
|
|
37022
|
+
break;
|
|
37023
|
+
case (this.parent.element.id + 'csv'):
|
|
37024
|
+
exportArgs = {
|
|
37025
|
+
excelExportProperties: { fileName: 'Export.csv' },
|
|
36030
37026
|
isBlob: false,
|
|
36031
|
-
isMultipleExport: false
|
|
37027
|
+
isMultipleExport: false,
|
|
37028
|
+
workbook: undefined
|
|
36032
37029
|
};
|
|
36033
37030
|
this.parent.trigger(beforeExport, exportArgs, function (observedArgs) {
|
|
36034
|
-
_this_1.parent.
|
|
37031
|
+
_this_1.parent.csvExport(observedArgs.excelExportProperties, observedArgs.isMultipleExport, observedArgs.workbook, observedArgs.isBlob);
|
|
36035
37032
|
});
|
|
36036
|
-
|
|
36037
|
-
|
|
37033
|
+
break;
|
|
37034
|
+
case (this.parent.element.id + 'png'):
|
|
36038
37035
|
exportArgs = {
|
|
37036
|
+
type: 'PNG',
|
|
36039
37037
|
width: undefined,
|
|
36040
37038
|
height: undefined,
|
|
37039
|
+
fileName: 'result',
|
|
36041
37040
|
orientation: PdfPageOrientation.Landscape,
|
|
36042
|
-
|
|
37041
|
+
};
|
|
37042
|
+
this.parent.trigger(beforeExport, exportArgs, function (observedArgs) {
|
|
37043
|
+
_this_1.parent.chartExport(observedArgs.type, observedArgs.fileName, observedArgs.orientation, observedArgs.width, observedArgs.height);
|
|
37044
|
+
});
|
|
37045
|
+
break;
|
|
37046
|
+
case (this.parent.element.id + 'jpeg'):
|
|
37047
|
+
exportArgs = {
|
|
37048
|
+
type: 'JPEG',
|
|
36043
37049
|
fileName: 'result',
|
|
37050
|
+
orientation: PdfPageOrientation.Landscape,
|
|
37051
|
+
width: undefined,
|
|
37052
|
+
height: undefined,
|
|
36044
37053
|
};
|
|
36045
37054
|
this.parent.trigger(beforeExport, exportArgs, function (observedArgs) {
|
|
36046
37055
|
_this_1.parent.chartExport(observedArgs.type, observedArgs.fileName, observedArgs.orientation, observedArgs.width, observedArgs.height);
|
|
36047
37056
|
});
|
|
36048
|
-
|
|
36049
|
-
|
|
36050
|
-
|
|
36051
|
-
|
|
36052
|
-
|
|
36053
|
-
|
|
36054
|
-
|
|
36055
|
-
|
|
36056
|
-
|
|
36057
|
-
|
|
36058
|
-
|
|
36059
|
-
|
|
36060
|
-
|
|
36061
|
-
|
|
36062
|
-
|
|
36063
|
-
|
|
36064
|
-
|
|
36065
|
-
|
|
36066
|
-
|
|
36067
|
-
|
|
36068
|
-
|
|
36069
|
-
|
|
36070
|
-
|
|
36071
|
-
|
|
36072
|
-
|
|
36073
|
-
|
|
36074
|
-
|
|
36075
|
-
|
|
36076
|
-
|
|
36077
|
-
|
|
36078
|
-
|
|
36079
|
-
|
|
36080
|
-
|
|
36081
|
-
|
|
36082
|
-
|
|
36083
|
-
|
|
36084
|
-
|
|
36085
|
-
|
|
36086
|
-
|
|
36087
|
-
|
|
36088
|
-
|
|
36089
|
-
|
|
36090
|
-
|
|
36091
|
-
|
|
36092
|
-
|
|
36093
|
-
|
|
36094
|
-
|
|
36095
|
-
|
|
36096
|
-
case (this.parent.element.id + 'svg'):
|
|
36097
|
-
exportArgs = {
|
|
36098
|
-
width: undefined,
|
|
36099
|
-
height: undefined,
|
|
36100
|
-
type: 'SVG',
|
|
36101
|
-
fileName: 'result',
|
|
36102
|
-
orientation: PdfPageOrientation.Landscape,
|
|
36103
|
-
};
|
|
36104
|
-
this.parent.trigger(beforeExport, exportArgs, function (observedArgs) {
|
|
36105
|
-
_this_1.parent.chartExport(observedArgs.type, observedArgs.fileName, observedArgs.orientation, observedArgs.width, observedArgs.height);
|
|
36106
|
-
});
|
|
36107
|
-
break;
|
|
36108
|
-
case (this.parent.element.id + 'notsubtotal'):
|
|
36109
|
-
this.parent.setProperties({ dataSourceSettings: { showSubTotals: false, showColumnSubTotals: false, showRowSubTotals: false } }, true);
|
|
36110
|
-
this.parent.refreshData();
|
|
36111
|
-
break;
|
|
36112
|
-
case (this.parent.element.id + 'subtotalrow'):
|
|
36113
|
-
this.parent.setProperties({ dataSourceSettings: { showSubTotals: true, showColumnSubTotals: false, showRowSubTotals: true } }, true);
|
|
36114
|
-
this.parent.refreshData();
|
|
36115
|
-
break;
|
|
36116
|
-
case (this.parent.element.id + 'subtotalcolumn'):
|
|
36117
|
-
this.parent.setProperties({ dataSourceSettings: { showSubTotals: true, showColumnSubTotals: true, showRowSubTotals: false } }, true);
|
|
36118
|
-
this.parent.refreshData();
|
|
36119
|
-
break;
|
|
36120
|
-
case (this.parent.element.id + 'subtotal'):
|
|
36121
|
-
this.parent.setProperties({ dataSourceSettings: { showSubTotals: true, showColumnSubTotals: true, showRowSubTotals: true } }, true);
|
|
36122
|
-
this.parent.refreshData();
|
|
36123
|
-
break;
|
|
36124
|
-
case (this.parent.element.id + 'notgrandtotal'):
|
|
36125
|
-
this.parent.setProperties({ dataSourceSettings: { showGrandTotals: false, showColumnGrandTotals: false, showRowGrandTotals: false } }, true);
|
|
36126
|
-
this.parent.refreshData();
|
|
36127
|
-
break;
|
|
36128
|
-
case (this.parent.element.id + 'grandtotalrow'):
|
|
36129
|
-
this.parent.setProperties({ dataSourceSettings: { showGrandTotals: true, showColumnGrandTotals: false, showRowGrandTotals: true } }, true);
|
|
36130
|
-
this.parent.refreshData();
|
|
36131
|
-
break;
|
|
36132
|
-
case (this.parent.element.id + 'grandtotalcolumn'):
|
|
36133
|
-
this.parent.setProperties({ dataSourceSettings: { showGrandTotals: true, showColumnGrandTotals: true, showRowGrandTotals: false } }, true);
|
|
36134
|
-
this.parent.refreshData();
|
|
36135
|
-
break;
|
|
36136
|
-
case (this.parent.element.id + 'grandtotal'):
|
|
36137
|
-
this.parent.setProperties({ dataSourceSettings: { showGrandTotals: true, showColumnGrandTotals: true, showRowGrandTotals: true } }, true);
|
|
36138
|
-
this.parent.refreshData();
|
|
36139
|
-
break;
|
|
36140
|
-
case (this.parent.element.id + 'numberFormattingMenu'):
|
|
36141
|
-
if (this.parent.numberFormattingModule) {
|
|
36142
|
-
this.parent.numberFormattingModule.showNumberFormattingDialog();
|
|
36143
|
-
}
|
|
36144
|
-
break;
|
|
36145
|
-
case (this.parent.element.id + 'conditionalFormattingMenu'):
|
|
36146
|
-
if (this.parent.conditionalFormattingModule) {
|
|
36147
|
-
this.parent.conditionalFormattingModule.showConditionalFormattingDialog();
|
|
36148
|
-
}
|
|
36149
|
-
break;
|
|
36150
|
-
case (this.parent.element.id + '_' + type):
|
|
36151
|
-
if (args.item && args.item.text) {
|
|
36152
|
-
if (type === 'ChartMoreOption') {
|
|
36153
|
-
this.createChartTypeDialog();
|
|
36154
|
-
}
|
|
36155
|
-
else if (type === 'multipleAxes') {
|
|
36156
|
-
if (this.parent.chartSettings.enableScrollOnMultiAxis) {
|
|
36157
|
-
this.isMultiAxisChange = true;
|
|
36158
|
-
}
|
|
36159
|
-
this.parent.chartSettings.enableMultipleAxis = !this.parent.chartSettings.enableMultipleAxis;
|
|
36160
|
-
this.updateChartType(this.parent.chartSettings.chartSeries.type, true);
|
|
37057
|
+
break;
|
|
37058
|
+
case (this.parent.element.id + 'svg'):
|
|
37059
|
+
exportArgs = {
|
|
37060
|
+
width: undefined,
|
|
37061
|
+
height: undefined,
|
|
37062
|
+
type: 'SVG',
|
|
37063
|
+
fileName: 'result',
|
|
37064
|
+
orientation: PdfPageOrientation.Landscape,
|
|
37065
|
+
};
|
|
37066
|
+
this.parent.trigger(beforeExport, exportArgs, function (observedArgs) {
|
|
37067
|
+
_this_1.parent.chartExport(observedArgs.type, observedArgs.fileName, observedArgs.orientation, observedArgs.width, observedArgs.height);
|
|
37068
|
+
});
|
|
37069
|
+
break;
|
|
37070
|
+
case (this.parent.element.id + 'notsubtotal'):
|
|
37071
|
+
this.parent.setProperties({ dataSourceSettings: { showSubTotals: false, showColumnSubTotals: false, showRowSubTotals: false } }, true);
|
|
37072
|
+
this.parent.refreshData();
|
|
37073
|
+
break;
|
|
37074
|
+
case (this.parent.element.id + 'subtotalrow'):
|
|
37075
|
+
this.parent.setProperties({ dataSourceSettings: { showSubTotals: true, showColumnSubTotals: false, showRowSubTotals: true } }, true);
|
|
37076
|
+
this.parent.refreshData();
|
|
37077
|
+
break;
|
|
37078
|
+
case (this.parent.element.id + 'subtotalcolumn'):
|
|
37079
|
+
this.parent.setProperties({ dataSourceSettings: { showSubTotals: true, showColumnSubTotals: true, showRowSubTotals: false } }, true);
|
|
37080
|
+
this.parent.refreshData();
|
|
37081
|
+
break;
|
|
37082
|
+
case (this.parent.element.id + 'subtotal'):
|
|
37083
|
+
this.parent.setProperties({ dataSourceSettings: { showSubTotals: true, showColumnSubTotals: true, showRowSubTotals: true } }, true);
|
|
37084
|
+
this.parent.refreshData();
|
|
37085
|
+
break;
|
|
37086
|
+
case (this.parent.element.id + 'notgrandtotal'):
|
|
37087
|
+
this.parent.setProperties({ dataSourceSettings: { showGrandTotals: false, showColumnGrandTotals: false, showRowGrandTotals: false } }, true);
|
|
37088
|
+
this.parent.refreshData();
|
|
37089
|
+
break;
|
|
37090
|
+
case (this.parent.element.id + 'grandtotalrow'):
|
|
37091
|
+
this.parent.setProperties({ dataSourceSettings: { showGrandTotals: true, showColumnGrandTotals: false, showRowGrandTotals: true } }, true);
|
|
37092
|
+
this.parent.refreshData();
|
|
37093
|
+
break;
|
|
37094
|
+
case (this.parent.element.id + 'grandtotalcolumn'):
|
|
37095
|
+
this.parent.setProperties({ dataSourceSettings: { showGrandTotals: true, showColumnGrandTotals: true, showRowGrandTotals: false } }, true);
|
|
37096
|
+
this.parent.refreshData();
|
|
37097
|
+
break;
|
|
37098
|
+
case (this.parent.element.id + 'grandtotal'):
|
|
37099
|
+
this.parent.setProperties({ dataSourceSettings: { showGrandTotals: true, showColumnGrandTotals: true, showRowGrandTotals: true } }, true);
|
|
37100
|
+
this.parent.refreshData();
|
|
37101
|
+
break;
|
|
37102
|
+
case (this.parent.element.id + 'numberFormattingMenu'):
|
|
37103
|
+
if (this.parent.numberFormattingModule) {
|
|
37104
|
+
this.parent.numberFormattingModule.showNumberFormattingDialog();
|
|
36161
37105
|
}
|
|
36162
|
-
|
|
36163
|
-
|
|
37106
|
+
break;
|
|
37107
|
+
case (this.parent.element.id + 'conditionalFormattingMenu'):
|
|
37108
|
+
if (this.parent.conditionalFormattingModule) {
|
|
37109
|
+
this.parent.conditionalFormattingModule.showConditionalFormattingDialog();
|
|
36164
37110
|
}
|
|
36165
|
-
|
|
36166
|
-
|
|
36167
|
-
|
|
36168
|
-
|
|
37111
|
+
break;
|
|
37112
|
+
case (this.parent.element.id + '_' + type):
|
|
37113
|
+
if (args.item && args.item.text) {
|
|
37114
|
+
if (type === 'ChartMoreOption') {
|
|
37115
|
+
this.createChartTypeDialog();
|
|
37116
|
+
}
|
|
37117
|
+
else if (type === 'multipleAxes') {
|
|
37118
|
+
if (this.parent.chartSettings.enableScrollOnMultiAxis) {
|
|
37119
|
+
this.isMultiAxisChange = true;
|
|
37120
|
+
}
|
|
37121
|
+
this.parent.chartSettings.enableMultipleAxis = !this.parent.chartSettings.enableMultipleAxis;
|
|
37122
|
+
this.updateChartType(this.parent.chartSettings.chartSeries.type, true);
|
|
36169
37123
|
}
|
|
36170
|
-
else {
|
|
36171
|
-
this.
|
|
37124
|
+
else if (this.getAllChartItems().indexOf(type) > -1) {
|
|
37125
|
+
this.updateChartType(type, false);
|
|
37126
|
+
}
|
|
37127
|
+
else if (type === 'showLegend') {
|
|
37128
|
+
this.parent.chart.legendSettings.visible = !this.showLableState;
|
|
37129
|
+
if (this.parent.chartSettings.legendSettings) {
|
|
37130
|
+
this.parent.chartSettings.legendSettings.visible = !this.showLableState;
|
|
37131
|
+
}
|
|
37132
|
+
else {
|
|
37133
|
+
this.parent.setProperties({ chartSettings: { legendSettings: { visible: !this.showLableState } } }, true);
|
|
37134
|
+
}
|
|
37135
|
+
this.updateChartType(this.parent.chartSettings.chartSeries.type, true);
|
|
36172
37136
|
}
|
|
36173
|
-
this.updateChartType(this.parent.chartSettings.chartSeries.type, true);
|
|
36174
37137
|
}
|
|
36175
|
-
|
|
36176
|
-
|
|
37138
|
+
break;
|
|
37139
|
+
}
|
|
37140
|
+
}
|
|
37141
|
+
catch (execption) {
|
|
37142
|
+
this.parent.actionFailureMethod(execption);
|
|
36177
37143
|
}
|
|
36178
37144
|
/* eslint-enable max-len */
|
|
36179
37145
|
};
|
|
@@ -36265,14 +37231,20 @@ var Toolbar$2 = /** @__PURE__ @class */ (function () {
|
|
|
36265
37231
|
if (this.parent.chart) {
|
|
36266
37232
|
this.parent.currentView = 'Chart';
|
|
36267
37233
|
this.parent.setProperties({ displayOption: { primary: 'Chart' } }, true);
|
|
36268
|
-
|
|
37234
|
+
if (this.parent.chartSettings.enableScrollOnMultiAxis && this.parent.chartSettings.enableMultipleAxis) {
|
|
37235
|
+
this.parent.element.querySelector('.' + PIVOTCHART).style.width = formatUnit(this.parent.grid ? this.parent.getGridWidthAsNumber() : this.parent.getWidthAsNumber()); /* eslint-disable-line */
|
|
37236
|
+
}
|
|
36269
37237
|
this.parent.chart.setProperties({ width: formatUnit(this.parent.grid ? this.parent.getGridWidthAsNumber() : this.parent.getWidthAsNumber()) }, true); /* eslint-disable-line */
|
|
36270
37238
|
if (this.parent.chartSettings.chartSeries.type === type && !isMultiAxis) {
|
|
36271
|
-
this.parent.
|
|
37239
|
+
this.parent.pivotChartModule.updateView();
|
|
36272
37240
|
}
|
|
36273
37241
|
else {
|
|
36274
37242
|
this.parent.chartSettings.chartSeries.type = type;
|
|
36275
37243
|
}
|
|
37244
|
+
var actionInfo = {
|
|
37245
|
+
toolbarInfo: { displayOption: this.parent.displayOption, chartSettings: this.parent.chartSettings }
|
|
37246
|
+
};
|
|
37247
|
+
this.parent.actionObj.actionInfo = actionInfo;
|
|
36276
37248
|
}
|
|
36277
37249
|
}
|
|
36278
37250
|
};
|
|
@@ -36836,6 +37808,10 @@ var NumberFormatting = /** @__PURE__ @class */ (function () {
|
|
|
36836
37808
|
this.parent.trigger(numberFormatting, eventArgs, function (observedArgs) {
|
|
36837
37809
|
if (!observedArgs.cancel) {
|
|
36838
37810
|
_this.parent.setProperties({ dataSourceSettings: { formatSettings: observedArgs.formatSettings } }, true);
|
|
37811
|
+
var actionInfo = {
|
|
37812
|
+
numberFormattingInfo: _this.parent.dataSourceSettings.formatSettings
|
|
37813
|
+
};
|
|
37814
|
+
_this.parent.actionObj.actionInfo = actionInfo;
|
|
36839
37815
|
try {
|
|
36840
37816
|
_this.parent.updateDataSource(false);
|
|
36841
37817
|
_this.dialog.close();
|
|
@@ -37500,7 +38476,7 @@ var Grouping = /** @__PURE__ @class */ (function () {
|
|
|
37500
38476
|
for (var j = 0, len_1 = field.customGroups.length; j < len_1; j++) {
|
|
37501
38477
|
if (field.customGroups[j]) {
|
|
37502
38478
|
var group = field.customGroups[j];
|
|
37503
|
-
if (group.items &&
|
|
38479
|
+
if (group.items && PivotExportUtil.isContainCommonElements(group.items, selectedOptions)) {
|
|
37504
38480
|
splicedItems = this.mergeArray(splicedItems, [group.groupName]);
|
|
37505
38481
|
newItems = this.mergeArray(newItems, group.items);
|
|
37506
38482
|
field.customGroups.splice(j, 1);
|
|
@@ -37758,5 +38734,5 @@ var Grouping = /** @__PURE__ @class */ (function () {
|
|
|
37758
38734
|
* Export PivotGrid components
|
|
37759
38735
|
*/
|
|
37760
38736
|
|
|
37761
|
-
export { GroupingBarSettings, CellEditSettings, ConditionalSettings, HyperlinkSettings, DisplayOption, PivotView, Render, ExcelExport$1 as ExcelExport, PDFExport, KeyboardInteraction, VirtualScroll$1 as VirtualScroll, DrillThrough, PivotChart, PivotFieldList, TreeViewRenderer, AxisFieldRenderer, AxisTableRenderer, DialogRenderer, EventBase, NodeStateModified, DataSourceUpdate, FieldList, CommonKeyboardInteraction, Common, GroupingBar, CalculatedField, ConditionalFormatting, PivotCommon, load, enginePopulating, enginePopulated, onFieldDropped, fieldDrop, beforePivotTableRender, afterPivotTableRender, beforeExport, excelHeaderQueryCellInfo, pdfHeaderQueryCellInfo, excelQueryCellInfo, pdfQueryCellInfo, onPdfCellRender, dataBound, queryCellInfo, headerCellInfo, hyperlinkCellClick, resizing, resizeStop, cellClick, drillThrough, beforeColumnsRender, selected, cellSelecting, drill, cellSelected, cellDeselected, rowSelected, rowDeselected, beginDrillThrough, editCompleted, multiLevelLabelClick, saveReport, fetchReport, loadReport, renameReport, removeReport, newReport, toolbarRender, toolbarClick, chartTooltipRender, chartLoaded, chartLoad, chartResized, chartAxisLabelRender, chartSeriesCreated, aggregateCellInfo, contextMenuClick, contextMenuOpen, fieldListRefreshed, conditionalFormatting, beforePdfExport, beforeExcelExport, memberFiltering, calculatedFieldCreate, memberEditorOpen, fieldRemove, numberFormatting, aggregateMenuOpen, fieldDragStart, chartPointClick, beforeServiceInvoke, initialLoad, uiUpdate, scroll, contentReady, dataReady, initSubComponent, treeViewUpdate, pivotButtonUpdate, initCalculatedField, click, initToolbar, initFormatting, initGrouping, Theme, ErrorDialog, FilterDialog, PivotContextMenu, AggregateMenu, Toolbar$2 as Toolbar, NumberFormatting, Grouping, PivotEngine, PivotUtil, OlapEngine, MDXQuery };
|
|
38737
|
+
export { GroupingBarSettings, CellEditSettings, ConditionalSettings, HyperlinkSettings, DisplayOption, PivotView, Render, ExcelExport$1 as ExcelExport, PDFExport, KeyboardInteraction, VirtualScroll$1 as VirtualScroll, DrillThrough, PivotChart, PivotFieldList, TreeViewRenderer, AxisFieldRenderer, AxisTableRenderer, DialogRenderer, EventBase, NodeStateModified, DataSourceUpdate, FieldList, CommonKeyboardInteraction, Common, GroupingBar, CalculatedField, ConditionalFormatting, PivotCommon, load, enginePopulating, enginePopulated, onFieldDropped, fieldDrop, beforePivotTableRender, afterPivotTableRender, beforeExport, excelHeaderQueryCellInfo, pdfHeaderQueryCellInfo, excelQueryCellInfo, pdfQueryCellInfo, onPdfCellRender, dataBound, queryCellInfo, headerCellInfo, hyperlinkCellClick, resizing, resizeStop, cellClick, drillThrough, beforeColumnsRender, selected, cellSelecting, drill, cellSelected, cellDeselected, rowSelected, rowDeselected, beginDrillThrough, editCompleted, multiLevelLabelClick, saveReport, fetchReport, loadReport, renameReport, removeReport, newReport, toolbarRender, toolbarClick, chartTooltipRender, chartLoaded, chartLoad, chartResized, chartAxisLabelRender, chartSeriesCreated, aggregateCellInfo, contextMenuClick, contextMenuOpen, fieldListRefreshed, conditionalFormatting, beforePdfExport, beforeExcelExport, memberFiltering, calculatedFieldCreate, memberEditorOpen, fieldRemove, numberFormatting, aggregateMenuOpen, fieldDragStart, chartPointClick, beforeServiceInvoke, actionBegin, actionComplete, actionFailure, initialLoad, uiUpdate, scroll, contentReady, dataReady, initSubComponent, treeViewUpdate, pivotButtonUpdate, initCalculatedField, click, initToolbar, initFormatting, initGrouping, sortValue, drillUp, drillDown, addNewReport, saveCurrentReport, saveAsCurrentReport, renameCurrentReport, removeCurrentReport, loadReports, openConditionalFormatting, openNumberFormatting, MdxQuery, showFieldList, tableView, chartView, multipleAxis, showLegend, pdfExport, pngExport, excelExport, csvExport, jpegExport, svgExport, hideSubTotals, subTotalsRow, subTotalsColumn, showSubTotals, hideGrandTotals, grandTotalsRow, grandTotalsColumn, showGrandTotals, numberFormattingMenu, conditionalFormattingMenu, reportChange, sortFieldTree, editCalculatedField, sortField, filterField, removeField, openCalculatedField, editRecord, saveEditedRecords, addNewRecord, removeRecord, aggregateField, contextMenuCalculatedField, windowResize, calculatedFieldApplied, editedRecordsSaved, newRecordAdded, recordRemoved, closeFieldlist, fieldTreeSorted, reportSaved, newReportAdded, reportReSaved, reportRenamed, reportRemoved, excelExported, csvExported, pdfExported, pngExported, jpegExported, svgExported, conditionallyFormatted, numberFormatted, tableViewed, chartViewed, subTotalsHidden, subTotalsRowShown, subTotalsColumnShown, subTotalsShown, grandTotalsHidden, grandTotalsRowShown, grandTotalsColumnShown, grandTotalsShown, valueSorted, calculatedFieldEdited, fieldSorted, fieldFiltered, fieldRemoved, fieldAggregated, recordEdited, reportChanged, windowResized, recordUpdated, drillThroughClosed, Theme, ErrorDialog, FilterDialog, PivotContextMenu, AggregateMenu, Toolbar$2 as Toolbar, NumberFormatting, Grouping, PivotEngine, PivotUtil, OlapEngine, MDXQuery };
|
|
37762
38738
|
//# sourceMappingURL=ej2-pivotview.es5.js.map
|