logitude-dashboard-library 3.2.65 → 3.2.66
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/dist/assets/styles/dl-dashboard.scss +146 -7
- package/dist/features/Dashboard/ChartsComponents/CustomCharts/PivotAgGridSupport.d.ts +1 -0
- package/dist/index.js +53 -22
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +53 -22
- package/dist/index.modern.js.map +1 -1
- package/dist/styles/dl-dashboard.scss +146 -7
- package/package.json +1 -1
|
@@ -926,23 +926,71 @@ $dark-grey: #717585;
|
|
|
926
926
|
font-family: "Manrope", sans-serif;
|
|
927
927
|
}
|
|
928
928
|
|
|
929
|
+
/* Match DevExtreme pivot typography / colors (custom DX overrides above). */
|
|
930
|
+
.dl-ag-pivot-grid.ag-theme-balham {
|
|
931
|
+
font-family: "Manrope", sans-serif;
|
|
932
|
+
font-size: 12px;
|
|
933
|
+
color: #46494A;
|
|
934
|
+
--ag-font-family: "Manrope", sans-serif;
|
|
935
|
+
--ag-font-size: 12px;
|
|
936
|
+
--ag-foreground-color: #46494A;
|
|
937
|
+
--ag-secondary-foreground-color: #46494A;
|
|
938
|
+
--ag-disabled-foreground-color: #46494A;
|
|
939
|
+
--ag-header-foreground-color: #222222;
|
|
940
|
+
--ag-header-background-color: #ffffff;
|
|
941
|
+
--ag-background-color: #ffffff;
|
|
942
|
+
--ag-odd-row-background-color: #ffffff;
|
|
943
|
+
--ag-selected-row-background-color: rgba(221, 221, 221, 0.35);
|
|
944
|
+
--ag-row-hover-color: rgba(221, 221, 221, 0.15);
|
|
945
|
+
--ag-border-color: #DFE1E3;
|
|
946
|
+
--ag-row-border-color: #DFE1E3;
|
|
947
|
+
--ag-header-column-separator-color: #DFE1E3;
|
|
948
|
+
--ag-header-column-resize-handle-color: #DFE1E3;
|
|
949
|
+
}
|
|
950
|
+
|
|
929
951
|
.dl-ag-pivot-grid .ag-root-wrapper {
|
|
930
|
-
border: 1px solid #
|
|
952
|
+
border: 1px solid #DFE1E3;
|
|
953
|
+
font-family: "Manrope", sans-serif;
|
|
931
954
|
}
|
|
932
955
|
|
|
933
956
|
.dl-ag-pivot-grid {
|
|
934
|
-
--ag-border-color: #
|
|
935
|
-
--ag-row-border-color: #
|
|
957
|
+
--ag-border-color: #DFE1E3;
|
|
958
|
+
--ag-row-border-color: #DFE1E3;
|
|
959
|
+
--ag-header-column-separator-color: #DFE1E3;
|
|
960
|
+
--ag-header-column-resize-handle-color: #DFE1E3;
|
|
936
961
|
--ag-header-background-color: #ffffff;
|
|
937
962
|
}
|
|
938
963
|
|
|
964
|
+
/* Force every Ag Grid structural border to the same color. */
|
|
965
|
+
.dl-ag-pivot-grid.ag-theme-balham .ag-root-wrapper,
|
|
966
|
+
.dl-ag-pivot-grid.ag-theme-balham .ag-root,
|
|
967
|
+
.dl-ag-pivot-grid.ag-theme-balham .ag-header,
|
|
968
|
+
.dl-ag-pivot-grid.ag-theme-balham .ag-header-row,
|
|
969
|
+
.dl-ag-pivot-grid.ag-theme-balham .ag-header-cell,
|
|
970
|
+
.dl-ag-pivot-grid.ag-theme-balham .ag-header-group-cell,
|
|
971
|
+
.dl-ag-pivot-grid.ag-theme-balham .ag-pinned-left-header,
|
|
972
|
+
.dl-ag-pivot-grid.ag-theme-balham .ag-pinned-right-header,
|
|
973
|
+
.dl-ag-pivot-grid.ag-theme-balham .ag-row,
|
|
974
|
+
.dl-ag-pivot-grid.ag-theme-balham .ag-cell,
|
|
975
|
+
.dl-ag-pivot-grid.ag-theme-balham .ag-body-viewport,
|
|
976
|
+
.dl-ag-pivot-grid.ag-theme-balham .ag-center-cols-viewport,
|
|
977
|
+
.dl-ag-pivot-grid.ag-theme-balham .ag-center-cols-container,
|
|
978
|
+
.dl-ag-pivot-grid.ag-theme-balham .ag-floating-top,
|
|
979
|
+
.dl-ag-pivot-grid.ag-theme-balham .ag-floating-bottom,
|
|
980
|
+
.dl-ag-pivot-grid.ag-theme-balham .ag-side-bar,
|
|
981
|
+
.dl-ag-pivot-grid.ag-theme-balham .ag-status-bar {
|
|
982
|
+
border-color: #DFE1E3 !important;
|
|
983
|
+
}
|
|
984
|
+
|
|
939
985
|
.dl-ag-pivot-grid.ag-theme-balham .ag-header {
|
|
940
986
|
background-color: #ffffff !important;
|
|
987
|
+
font-family: "Manrope", sans-serif;
|
|
988
|
+
color: #222222;
|
|
941
989
|
}
|
|
942
990
|
|
|
943
991
|
.dl-ag-pivot-grid.ag-theme-balham .ag-header-cell,
|
|
944
992
|
.dl-ag-pivot-grid.ag-theme-balham .ag-header-group-cell {
|
|
945
|
-
font-family: "Manrope";
|
|
993
|
+
font-family: "Manrope", sans-serif;
|
|
946
994
|
font-size: 12px;
|
|
947
995
|
font-weight: 600;
|
|
948
996
|
text-align: center;
|
|
@@ -950,29 +998,62 @@ $dark-grey: #717585;
|
|
|
950
998
|
background-color: #ffffff !important;
|
|
951
999
|
}
|
|
952
1000
|
|
|
1001
|
+
/* Balham defaults height:50% / inset top — force full-height separators. */
|
|
1002
|
+
.dl-ag-pivot-grid.ag-theme-balham .ag-header-cell::after,
|
|
1003
|
+
.dl-ag-pivot-grid.ag-theme-balham .ag-header-group-cell::after {
|
|
1004
|
+
height: 100%;
|
|
1005
|
+
top: 0;
|
|
1006
|
+
background-color: #DFE1E3;
|
|
1007
|
+
}
|
|
1008
|
+
|
|
1009
|
+
.dl-ag-pivot-grid.ag-theme-balham .ag-header-cell-text,
|
|
1010
|
+
.dl-ag-pivot-grid.ag-theme-balham .ag-header-group-text,
|
|
1011
|
+
.dl-ag-pivot-grid.ag-theme-balham .ag-header-cell-label,
|
|
1012
|
+
.dl-ag-pivot-grid.ag-theme-balham .ag-header-group-cell-label {
|
|
1013
|
+
font-family: "Manrope", sans-serif;
|
|
1014
|
+
font-size: 12px;
|
|
1015
|
+
font-weight: 600;
|
|
1016
|
+
color: #222222 !important;
|
|
1017
|
+
}
|
|
1018
|
+
|
|
953
1019
|
.dl-ag-pivot-grid .ag-header-cell[col-id^="ag-Grid-AutoColumn"] {
|
|
954
1020
|
text-align: left;
|
|
955
1021
|
}
|
|
956
1022
|
|
|
1023
|
+
.dl-ag-pivot-grid .ag-header-cell[col-id^="ag-Grid-AutoColumn"] .ag-header-cell-text,
|
|
1024
|
+
.dl-ag-pivot-grid .ag-header-cell[col-id^="ag-Grid-AutoColumn"] .ag-header-cell-label {
|
|
1025
|
+
text-align: left;
|
|
1026
|
+
}
|
|
1027
|
+
|
|
1028
|
+
/* Column grand totals — match DevExtreme .dx-grandtotal */
|
|
957
1029
|
.dl-ag-pivot-grid .ag-header-cell[col-id^="PivotRowTotal_"],
|
|
958
1030
|
.dl-ag-pivot-grid .ag-header-group-cell.dl-pivot-row-grand-total-group-header,
|
|
959
1031
|
.dl-ag-pivot-grid .ag-header-group-cell.dl-pivot-row-grand-total-group-header-sibling {
|
|
960
1032
|
background-color: #f5f5f5 !important;
|
|
961
1033
|
}
|
|
962
1034
|
|
|
1035
|
+
.dl-ag-pivot-grid .ag-cell[col-id^="PivotRowTotal_"] {
|
|
1036
|
+
background-color: #f5f5f5 !important;
|
|
1037
|
+
}
|
|
1038
|
+
|
|
963
1039
|
.dl-ag-pivot-grid.ag-theme-balham .ag-cell {
|
|
964
1040
|
border: none !important;
|
|
965
|
-
border-right: 1px solid #
|
|
1041
|
+
border-right: 1px solid #DFE1E3 !important;
|
|
966
1042
|
}
|
|
967
1043
|
|
|
968
1044
|
.dl-ag-pivot-grid.ag-theme-balham .ag-row {
|
|
969
|
-
border-bottom: 1px solid #
|
|
1045
|
+
border-bottom: 1px solid #DFE1E3 !important;
|
|
1046
|
+
background-color: #ffffff;
|
|
970
1047
|
}
|
|
971
1048
|
|
|
972
1049
|
.dl-ag-pivot-grid .dl-ag-pivot-data-cell,
|
|
973
1050
|
.dl-ag-pivot-grid .ag-cell.dl-ag-pivot-data-cell {
|
|
974
1051
|
text-align: right !important;
|
|
975
1052
|
cursor: pointer;
|
|
1053
|
+
font-family: "Manrope", sans-serif;
|
|
1054
|
+
font-size: 12px;
|
|
1055
|
+
font-weight: 500;
|
|
1056
|
+
color: #46494A;
|
|
976
1057
|
}
|
|
977
1058
|
|
|
978
1059
|
.dl-ag-pivot-grid .dl-pivot-date-data-cell,
|
|
@@ -991,11 +1072,27 @@ $dark-grey: #717585;
|
|
|
991
1072
|
text-align: left !important;
|
|
992
1073
|
justify-content: flex-start;
|
|
993
1074
|
background-color: #ffffff;
|
|
1075
|
+
font-family: "Manrope", sans-serif;
|
|
1076
|
+
font-size: 12px;
|
|
1077
|
+
font-weight: 500;
|
|
1078
|
+
color: #46494A;
|
|
1079
|
+
}
|
|
1080
|
+
|
|
1081
|
+
/* Parent row headers — match DevExtreme vertical-headers td div>span (weight 600) */
|
|
1082
|
+
.dl-ag-pivot-grid .ag-row-group.ag-row-group-expanded .dl-ag-pivot-row-label-cell,
|
|
1083
|
+
.dl-ag-pivot-grid .ag-row-group.ag-row-group-contracted .dl-ag-pivot-row-label-cell,
|
|
1084
|
+
.dl-ag-pivot-grid .ag-row-group.ag-row-group-expanded .ag-cell.dl-ag-pivot-row-label-cell,
|
|
1085
|
+
.dl-ag-pivot-grid .ag-row-group.ag-row-group-contracted .ag-cell.dl-ag-pivot-row-label-cell {
|
|
1086
|
+
font-weight: 600 !important;
|
|
1087
|
+
color: #46494A !important;
|
|
994
1088
|
}
|
|
995
1089
|
|
|
996
1090
|
.dl-ag-pivot-grid .ag-row-footer .ag-cell,
|
|
997
1091
|
.dl-ag-pivot-grid .ag-row-group-footer .ag-cell {
|
|
1092
|
+
font-family: "Manrope", sans-serif;
|
|
1093
|
+
font-size: 12px;
|
|
998
1094
|
font-weight: 500;
|
|
1095
|
+
color: #46494A;
|
|
999
1096
|
}
|
|
1000
1097
|
|
|
1001
1098
|
.dl-ag-pivot-grid .ag-row-footer .dl-ag-pivot-row-label-cell,
|
|
@@ -1004,13 +1101,21 @@ $dark-grey: #717585;
|
|
|
1004
1101
|
}
|
|
1005
1102
|
|
|
1006
1103
|
.dl-ag-pivot-grid .ag-cell {
|
|
1007
|
-
font-family: "Manrope";
|
|
1104
|
+
font-family: "Manrope", sans-serif;
|
|
1008
1105
|
font-size: 12px;
|
|
1009
1106
|
font-weight: 500;
|
|
1010
1107
|
color: #46494A;
|
|
1011
1108
|
padding: 6px 8px 5px 8px;
|
|
1012
1109
|
}
|
|
1013
1110
|
|
|
1111
|
+
.dl-ag-pivot-grid .ag-cell-value,
|
|
1112
|
+
.dl-ag-pivot-grid .ag-group-value,
|
|
1113
|
+
.dl-ag-pivot-grid .ag-group-child-count {
|
|
1114
|
+
font-family: "Manrope", sans-serif;
|
|
1115
|
+
font-size: 12px;
|
|
1116
|
+
color: #46494A;
|
|
1117
|
+
}
|
|
1118
|
+
|
|
1014
1119
|
.dl-ag-pivot-grid .ag-row-group .ag-cell {
|
|
1015
1120
|
text-align: left;
|
|
1016
1121
|
background-color: #ffffff;
|
|
@@ -1020,8 +1125,38 @@ $dark-grey: #717585;
|
|
|
1020
1125
|
text-align: left;
|
|
1021
1126
|
}
|
|
1022
1127
|
|
|
1128
|
+
/*
|
|
1129
|
+
* Ag Grid paints cell backgrounds, not the row. Footer row bg alone is invisible.
|
|
1130
|
+
* Match DevExtreme totals across the full total row (row label + measure cells).
|
|
1131
|
+
*/
|
|
1023
1132
|
.dl-ag-pivot-grid .ag-row-footer,
|
|
1024
1133
|
.dl-ag-pivot-grid .ag-row-group-footer {
|
|
1134
|
+
background-color: #dddddd33 !important;
|
|
1135
|
+
}
|
|
1136
|
+
|
|
1137
|
+
.dl-ag-pivot-grid .ag-row-footer .ag-cell,
|
|
1138
|
+
.dl-ag-pivot-grid .ag-row-group-footer .ag-cell,
|
|
1139
|
+
.dl-ag-pivot-grid .ag-row-footer .dl-ag-pivot-row-label-cell,
|
|
1140
|
+
.dl-ag-pivot-grid .ag-row-group-footer .dl-ag-pivot-row-label-cell,
|
|
1141
|
+
.dl-ag-pivot-grid .ag-row-footer .dl-ag-pivot-data-cell,
|
|
1142
|
+
.dl-ag-pivot-grid .ag-row-group-footer .dl-ag-pivot-data-cell,
|
|
1143
|
+
.dl-ag-pivot-grid .ag-row-footer .ag-cell.dl-ag-pivot-row-label-cell,
|
|
1144
|
+
.dl-ag-pivot-grid .ag-row-group-footer .ag-cell.dl-ag-pivot-row-label-cell,
|
|
1145
|
+
.dl-ag-pivot-grid .ag-row-footer .ag-cell.dl-ag-pivot-data-cell,
|
|
1146
|
+
.dl-ag-pivot-grid .ag-row-group-footer .ag-cell.dl-ag-pivot-data-cell {
|
|
1147
|
+
background-color: #dddddd33 !important;
|
|
1148
|
+
}
|
|
1149
|
+
|
|
1150
|
+
/* Grand Total row */
|
|
1151
|
+
.dl-ag-pivot-grid .ag-row-footer.ag-row-level--1 {
|
|
1152
|
+
background-color: #f5f5f5 !important;
|
|
1153
|
+
}
|
|
1154
|
+
|
|
1155
|
+
.dl-ag-pivot-grid .ag-row-footer.ag-row-level--1 .ag-cell,
|
|
1156
|
+
.dl-ag-pivot-grid .ag-row-footer.ag-row-level--1 .dl-ag-pivot-row-label-cell,
|
|
1157
|
+
.dl-ag-pivot-grid .ag-row-footer.ag-row-level--1 .dl-ag-pivot-data-cell,
|
|
1158
|
+
.dl-ag-pivot-grid .ag-row-footer.ag-row-level--1 .ag-cell.dl-ag-pivot-row-label-cell,
|
|
1159
|
+
.dl-ag-pivot-grid .ag-row-footer.ag-row-level--1 .ag-cell.dl-ag-pivot-data-cell {
|
|
1025
1160
|
background-color: #f5f5f5 !important;
|
|
1026
1161
|
}
|
|
1027
1162
|
|
|
@@ -1033,6 +1168,10 @@ $dark-grey: #717585;
|
|
|
1033
1168
|
visibility: hidden;
|
|
1034
1169
|
}
|
|
1035
1170
|
|
|
1171
|
+
.dl-ag-pivot-grid .ag-icon {
|
|
1172
|
+
color: #46494A;
|
|
1173
|
+
}
|
|
1174
|
+
|
|
1036
1175
|
.dx-scrollbar-hoverable .dx-scrollable-scroll.dx-state-invisible .dx-scrollable-scroll-content {
|
|
1037
1176
|
background-color: rgba(191, 191, 191, .7);
|
|
1038
1177
|
}
|
|
@@ -52,6 +52,7 @@ export declare const collectPivotRowPath: (startNode: any) => {
|
|
|
52
52
|
field: string;
|
|
53
53
|
key: any;
|
|
54
54
|
}[];
|
|
55
|
+
export declare const isAgGridPivotDrillDownMeasureColumn: (colDef: any, measures: PivotApiMeasure[]) => boolean;
|
|
55
56
|
export declare const buildPivotDrillDownPivotFields: (colDef: any, startNode: any, apiFields: PivotApiField[]) => any[];
|
|
56
57
|
export declare const getMeasureCaption: (measure: PivotApiMeasure) => string;
|
|
57
58
|
export declare const parseJsonArray: (json: string | null | undefined) => any[];
|
package/dist/index.js
CHANGED
|
@@ -1972,7 +1972,8 @@ var TableChart = function TableChart(props) {
|
|
|
1972
1972
|
}
|
|
1973
1973
|
|
|
1974
1974
|
if (!rowData) return true;
|
|
1975
|
-
|
|
1975
|
+
var rowTenantId = rowData.lookUp_Tenant != null ? rowData.lookUp_Tenant : rowData.Tenant;
|
|
1976
|
+
return Number(rowTenantId) === Number(Session.Tenant);
|
|
1976
1977
|
};
|
|
1977
1978
|
|
|
1978
1979
|
var isClickableCell = function isClickableCell(fieldCode, rowData) {
|
|
@@ -1984,7 +1985,7 @@ var TableChart = function TableChart(props) {
|
|
|
1984
1985
|
return false;
|
|
1985
1986
|
}
|
|
1986
1987
|
|
|
1987
|
-
return fieldCode == "ShipmentNumber" && objectTableName == "Shipment" || IsShipmentMasterFieldClickable(fieldCode, rowData) || fieldCode == "InvoiceNumber" && objectTableName == "APInvoice" || fieldCode == "InvoiceNumber" && objectTableName == "ARInvoice" || fieldCode == "ContainerNumber" && objectTableName == "Container" || fieldCode == "QuoteNumber" && objectTableName == "Quote" || fieldCode == "Subject" && objectTableName == "Opportunity" || fieldCode == "EnglishName" && objectTableName == "Customer" || fieldCode == "TaskNumber" && objectTableName == "Task" || fieldCode == "Subject" && objectTableName == "Activity" || fieldCode == "TicketNumber" && objectTableName == "Ticket" || fieldCode == "ReleaseNumber" && objectTableName == "WarehouseRelease" || fieldCode == "EntryNumber" && objectTableName == "WarehouseEntry";
|
|
1988
|
+
return fieldCode == "ShipmentNumber" && objectTableName == "Shipment" || IsShipmentMasterFieldClickable(fieldCode, rowData) || fieldCode == "InvoiceNumber" && objectTableName == "APInvoice" || fieldCode == "InvoiceNumber" && objectTableName == "ARInvoice" || fieldCode == "ContainerNumber" && objectTableName == "Container" || fieldCode == "QuoteNumber" && objectTableName == "Quote" || fieldCode == "Subject" && objectTableName == "Opportunity" || fieldCode == "EnglishName" && objectTableName == "Customer" || fieldCode == "TaskNumber" && objectTableName == "Task" || fieldCode == "Subject" && objectTableName == "Activity" || fieldCode == "TicketNumber" && objectTableName == "Ticket" || fieldCode == "ReleaseNumber" && objectTableName == "WarehouseRelease" || fieldCode == "EntryNumber" && objectTableName == "WarehouseEntry" || fieldCode == "Subject" && objectTableName == "Conversation" || fieldCode == "ConversationSubject" && objectTableName == "ConversationMessage";
|
|
1988
1989
|
};
|
|
1989
1990
|
|
|
1990
1991
|
var IsShipmentMasterFieldClickable = function IsShipmentMasterFieldClickable(fieldCode, rowData) {
|
|
@@ -2711,17 +2712,15 @@ var collectPivotRowPath = function collectPivotRowPath(startNode) {
|
|
|
2711
2712
|
return path;
|
|
2712
2713
|
}
|
|
2713
2714
|
|
|
2714
|
-
if (startNode.footer) {
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
}
|
|
2715
|
+
if (startNode.footer && startNode.level === -1) {
|
|
2716
|
+
return path;
|
|
2717
|
+
}
|
|
2718
2718
|
|
|
2719
|
-
|
|
2720
|
-
|
|
2721
|
-
|
|
2722
|
-
|
|
2723
|
-
|
|
2724
|
-
}
|
|
2719
|
+
if (startNode.field != null && startNode.key !== undefined) {
|
|
2720
|
+
path.unshift({
|
|
2721
|
+
field: startNode.field,
|
|
2722
|
+
key: startNode.key
|
|
2723
|
+
});
|
|
2725
2724
|
}
|
|
2726
2725
|
|
|
2727
2726
|
var node = startNode.parent;
|
|
@@ -2739,6 +2738,29 @@ var collectPivotRowPath = function collectPivotRowPath(startNode) {
|
|
|
2739
2738
|
|
|
2740
2739
|
return path;
|
|
2741
2740
|
};
|
|
2741
|
+
var isAgGridPivotDrillDownMeasureColumn = function isAgGridPivotDrillDownMeasureColumn(colDef, measures) {
|
|
2742
|
+
if (!colDef || !measures || measures.length === 0) {
|
|
2743
|
+
return false;
|
|
2744
|
+
}
|
|
2745
|
+
|
|
2746
|
+
if (colDef.pivotValueColumn) {
|
|
2747
|
+
return true;
|
|
2748
|
+
}
|
|
2749
|
+
|
|
2750
|
+
if (colDef.rowGroup || colDef.pivot) {
|
|
2751
|
+
return false;
|
|
2752
|
+
}
|
|
2753
|
+
|
|
2754
|
+
var colId = colDef.colId ? String(colDef.colId) : '';
|
|
2755
|
+
|
|
2756
|
+
if (colId.indexOf('ag-Grid-AutoColumn') === 0) {
|
|
2757
|
+
return false;
|
|
2758
|
+
}
|
|
2759
|
+
|
|
2760
|
+
return measures.some(function (measure) {
|
|
2761
|
+
return measure.PivotMeasureCode === colDef.field || measure.PivotMeasureCode === colId;
|
|
2762
|
+
});
|
|
2763
|
+
};
|
|
2742
2764
|
var buildPivotDrillDownPivotFields = function buildPivotDrillDownPivotFields(colDef, startNode, apiFields) {
|
|
2743
2765
|
var columnFields = apiFields.filter(function (field) {
|
|
2744
2766
|
return !isRowPivotField(field);
|
|
@@ -3528,7 +3550,7 @@ var AgPivotGrid = React.forwardRef(function (props, _comRef) {
|
|
|
3528
3550
|
}, []);
|
|
3529
3551
|
var onCellClicked = React.useCallback(function (event) {
|
|
3530
3552
|
var colDef = event.colDef;
|
|
3531
|
-
if (!colDef
|
|
3553
|
+
if (!isAgGridPivotDrillDownMeasureColumn(colDef, pivotMeasuresRef.current)) return;
|
|
3532
3554
|
if (isPivotMeasureValueEmpty(event.value)) return;
|
|
3533
3555
|
var pivotFields = buildPivotDrillDownPivotFields(colDef, event.node, pivotFieldsRef.current);
|
|
3534
3556
|
props.customChartProps.onSelectDataPoint({
|
|
@@ -3560,14 +3582,8 @@ var AgPivotGrid = React.forwardRef(function (props, _comRef) {
|
|
|
3560
3582
|
wrapText: true,
|
|
3561
3583
|
autoHeight: true,
|
|
3562
3584
|
cellClass: 'dl-ag-pivot-row-label-cell',
|
|
3563
|
-
headerValueGetter: function headerValueGetter(
|
|
3564
|
-
|
|
3565
|
-
var showRowGroup = colDef && colDef.showRowGroup;
|
|
3566
|
-
if (!showRowGroup) return '';
|
|
3567
|
-
var field = pivotFieldsRef.current.find(function (f) {
|
|
3568
|
-
return f.PivotCode === showRowGroup;
|
|
3569
|
-
});
|
|
3570
|
-
return field ? field.DisplayName : '';
|
|
3585
|
+
headerValueGetter: function headerValueGetter() {
|
|
3586
|
+
return '';
|
|
3571
3587
|
},
|
|
3572
3588
|
valueFormatter: function valueFormatter(params) {
|
|
3573
3589
|
var colDef = params.colDef;
|
|
@@ -3641,6 +3657,21 @@ var AgPivotGrid = React.forwardRef(function (props, _comRef) {
|
|
|
3641
3657
|
scheduleRowGrandTotalHeaderLabel();
|
|
3642
3658
|
};
|
|
3643
3659
|
|
|
3660
|
+
var getContextMenuItems = React.useCallback(function (params) {
|
|
3661
|
+
var colId = params.column && params.column.getColId ? params.column.getColId() : '';
|
|
3662
|
+
if (!colId || colId.indexOf('ag-Grid-AutoColumn') !== 0) return [];
|
|
3663
|
+
return [{
|
|
3664
|
+
name: 'Expand All',
|
|
3665
|
+
action: function action() {
|
|
3666
|
+
if (params.api) params.api.expandAll();
|
|
3667
|
+
}
|
|
3668
|
+
}, {
|
|
3669
|
+
name: 'Collapse All',
|
|
3670
|
+
action: function action() {
|
|
3671
|
+
if (params.api) params.api.collapseAll();
|
|
3672
|
+
}
|
|
3673
|
+
}];
|
|
3674
|
+
}, []);
|
|
3644
3675
|
var gridWrapperClassName = 'ag-theme-balham pivot-grid-element dl-ag-pivot-grid';
|
|
3645
3676
|
return React__default.createElement(React__default.Fragment, null, isLoading ? React__default.createElement("div", {
|
|
3646
3677
|
className: 'dl-full-hight dl-flex-content-center spinner-custome'
|
|
@@ -3676,8 +3707,8 @@ var AgPivotGrid = React.forwardRef(function (props, _comRef) {
|
|
|
3676
3707
|
onFirstDataRendered: onFirstDataRendered,
|
|
3677
3708
|
onColumnPivotChanged: onColumnPivotChanged,
|
|
3678
3709
|
onColumnResized: onColumnResized,
|
|
3710
|
+
getContextMenuItems: getContextMenuItems,
|
|
3679
3711
|
animateRows: false,
|
|
3680
|
-
suppressContextMenu: true,
|
|
3681
3712
|
suppressMovableColumns: true,
|
|
3682
3713
|
headerHeight: 36,
|
|
3683
3714
|
rowHeight: 36
|