@mui/x-data-grid 8.11.2 → 8.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +231 -0
- package/DataGrid/DataGrid.js +3 -1
- package/DataGrid/useDataGridComponent.js +2 -2
- package/colDef/gridActionsColDef.js +1 -0
- package/colDef/gridBooleanColDef.js +1 -0
- package/colDef/gridCheckboxSelectionColDef.js +1 -0
- package/colDef/gridStringColDef.js +1 -0
- package/components/GridShadowScrollArea.js +2 -2
- package/components/GridSkeletonLoadingOverlay.js +2 -2
- package/components/cell/GridCell.js +7 -5
- package/components/panel/filterPanel/GridFilterInputBoolean.js +2 -2
- package/components/panel/filterPanel/GridFilterInputSingleSelect.js +2 -2
- package/components/panel/filterPanel/GridFilterInputValue.js +2 -2
- package/components/quickFilter/QuickFilterControl.js +1 -1
- package/constants/localeTextConstants.js +29 -0
- package/esm/DataGrid/DataGrid.js +3 -1
- package/esm/DataGrid/useDataGridComponent.js +2 -2
- package/esm/colDef/gridActionsColDef.js +1 -0
- package/esm/colDef/gridBooleanColDef.js +1 -0
- package/esm/colDef/gridCheckboxSelectionColDef.js +1 -0
- package/esm/colDef/gridStringColDef.js +1 -0
- package/esm/components/GridShadowScrollArea.js +2 -2
- package/esm/components/GridSkeletonLoadingOverlay.js +2 -2
- package/esm/components/cell/GridCell.js +7 -5
- package/esm/components/panel/filterPanel/GridFilterInputBoolean.js +2 -2
- package/esm/components/panel/filterPanel/GridFilterInputSingleSelect.js +2 -2
- package/esm/components/panel/filterPanel/GridFilterInputValue.js +2 -2
- package/esm/components/quickFilter/QuickFilterControl.js +1 -1
- package/esm/constants/localeTextConstants.js +29 -0
- package/esm/hooks/features/columnResize/useGridColumnResize.js +2 -2
- package/esm/hooks/features/columns/useGridColumns.js +21 -4
- package/esm/hooks/features/filter/gridFilterSelector.d.ts +12 -4
- package/esm/hooks/features/filter/gridFilterSelector.js +21 -4
- package/esm/hooks/features/filter/gridFilterState.d.ts +3 -1
- package/esm/hooks/features/filter/gridFilterUtils.d.ts +3 -3
- package/esm/hooks/features/filter/gridFilterUtils.js +23 -13
- package/esm/hooks/features/filter/useGridFilter.d.ts +2 -1
- package/esm/hooks/features/filter/useGridFilter.js +7 -5
- package/esm/hooks/features/rows/gridRowsSelector.d.ts +9 -0
- package/esm/hooks/features/rows/gridRowsSelector.js +12 -0
- package/esm/hooks/features/rows/index.d.ts +1 -1
- package/esm/hooks/features/rows/index.js +1 -1
- package/esm/hooks/features/rows/useGridParamsApi.js +16 -7
- package/esm/hooks/features/sorting/gridSortingUtils.d.ts +3 -1
- package/esm/hooks/features/sorting/gridSortingUtils.js +10 -4
- package/esm/hooks/features/sorting/useGridSorting.d.ts +2 -1
- package/esm/hooks/features/sorting/useGridSorting.js +4 -3
- package/esm/index.js +1 -1
- package/esm/internals/index.d.ts +1 -1
- package/esm/internals/index.js +1 -1
- package/esm/locales/arSD.js +31 -0
- package/esm/locales/beBY.js +31 -0
- package/esm/locales/bgBG.js +31 -0
- package/esm/locales/bnBD.js +31 -0
- package/esm/locales/csCZ.js +31 -0
- package/esm/locales/daDK.js +31 -0
- package/esm/locales/deDE.js +32 -0
- package/esm/locales/elGR.js +31 -0
- package/esm/locales/esES.js +31 -0
- package/esm/locales/faIR.js +31 -0
- package/esm/locales/fiFI.js +31 -0
- package/esm/locales/frFR.js +32 -2
- package/esm/locales/heIL.js +31 -0
- package/esm/locales/hrHR.js +31 -0
- package/esm/locales/huHU.js +31 -0
- package/esm/locales/hyAM.js +31 -0
- package/esm/locales/idID.d.ts +1 -1
- package/esm/locales/idID.js +32 -0
- package/esm/locales/isIS.js +31 -0
- package/esm/locales/itIT.js +31 -0
- package/esm/locales/jaJP.js +31 -0
- package/esm/locales/koKR.js +31 -0
- package/esm/locales/nbNO.js +31 -0
- package/esm/locales/nlNL.js +31 -0
- package/esm/locales/nnNO.js +32 -0
- package/esm/locales/plPL.js +31 -0
- package/esm/locales/ptBR.js +31 -0
- package/esm/locales/ptPT.js +31 -0
- package/esm/locales/roRO.js +31 -0
- package/esm/locales/ruRU.js +31 -0
- package/esm/locales/skSK.js +31 -0
- package/esm/locales/svSE.js +31 -0
- package/esm/locales/trTR.js +31 -0
- package/esm/locales/ukUA.js +31 -0
- package/esm/locales/urPK.js +31 -0
- package/esm/locales/viVN.js +31 -0
- package/esm/locales/zhCN.js +31 -0
- package/esm/locales/zhHK.js +31 -0
- package/esm/locales/zhTW.js +31 -0
- package/esm/material/augmentation.d.ts +8 -0
- package/esm/material/index.js +147 -49
- package/esm/material/variables.js +2 -1
- package/esm/models/api/gridLocaleTextApi.d.ts +27 -0
- package/esm/models/api/gridParamsApi.d.ts +5 -1
- package/esm/models/configuration/gridAggregationConfiguration.d.ts +25 -0
- package/esm/models/configuration/gridAggregationConfiguration.js +1 -0
- package/esm/models/configuration/gridConfiguration.d.ts +6 -9
- package/esm/models/gridBaseSlots.d.ts +15 -0
- package/esm/models/gridFilterItem.d.ts +4 -2
- package/esm/models/gridFilterOperator.d.ts +1 -1
- package/esm/models/gridSlotsComponent.d.ts +10 -0
- package/esm/models/gridSlotsComponentsProps.d.ts +5 -1
- package/hooks/features/columnResize/useGridColumnResize.js +2 -2
- package/hooks/features/columns/useGridColumns.js +23 -6
- package/hooks/features/filter/gridFilterSelector.d.ts +12 -4
- package/hooks/features/filter/gridFilterSelector.js +22 -5
- package/hooks/features/filter/gridFilterState.d.ts +3 -1
- package/hooks/features/filter/gridFilterUtils.d.ts +3 -3
- package/hooks/features/filter/gridFilterUtils.js +23 -13
- package/hooks/features/filter/useGridFilter.d.ts +2 -1
- package/hooks/features/filter/useGridFilter.js +7 -5
- package/hooks/features/rows/gridRowsSelector.d.ts +9 -0
- package/hooks/features/rows/gridRowsSelector.js +12 -0
- package/hooks/features/rows/index.d.ts +1 -1
- package/hooks/features/rows/index.js +7 -0
- package/hooks/features/rows/useGridParamsApi.js +16 -7
- package/hooks/features/sorting/gridSortingUtils.d.ts +3 -1
- package/hooks/features/sorting/gridSortingUtils.js +10 -4
- package/hooks/features/sorting/useGridSorting.d.ts +2 -1
- package/hooks/features/sorting/useGridSorting.js +4 -3
- package/index.js +1 -1
- package/internals/index.d.ts +1 -1
- package/internals/index.js +7 -0
- package/locales/arSD.js +31 -0
- package/locales/beBY.js +31 -0
- package/locales/bgBG.js +31 -0
- package/locales/bnBD.js +31 -0
- package/locales/csCZ.js +31 -0
- package/locales/daDK.js +31 -0
- package/locales/deDE.js +32 -0
- package/locales/elGR.js +31 -0
- package/locales/esES.js +31 -0
- package/locales/faIR.js +31 -0
- package/locales/fiFI.js +31 -0
- package/locales/frFR.js +32 -2
- package/locales/heIL.js +31 -0
- package/locales/hrHR.js +31 -0
- package/locales/huHU.js +31 -0
- package/locales/hyAM.js +31 -0
- package/locales/idID.d.ts +1 -1
- package/locales/idID.js +32 -0
- package/locales/isIS.js +31 -0
- package/locales/itIT.js +31 -0
- package/locales/jaJP.js +31 -0
- package/locales/koKR.js +31 -0
- package/locales/nbNO.js +31 -0
- package/locales/nlNL.js +31 -0
- package/locales/nnNO.js +32 -0
- package/locales/plPL.js +31 -0
- package/locales/ptBR.js +31 -0
- package/locales/ptPT.js +31 -0
- package/locales/roRO.js +31 -0
- package/locales/ruRU.js +31 -0
- package/locales/skSK.js +31 -0
- package/locales/svSE.js +31 -0
- package/locales/trTR.js +31 -0
- package/locales/ukUA.js +31 -0
- package/locales/urPK.js +31 -0
- package/locales/viVN.js +31 -0
- package/locales/zhCN.js +31 -0
- package/locales/zhHK.js +31 -0
- package/locales/zhTW.js +31 -0
- package/material/augmentation.d.ts +8 -0
- package/material/index.js +147 -49
- package/material/variables.js +2 -1
- package/models/api/gridLocaleTextApi.d.ts +27 -0
- package/models/api/gridParamsApi.d.ts +5 -1
- package/models/configuration/gridAggregationConfiguration.d.ts +25 -0
- package/models/configuration/gridAggregationConfiguration.js +5 -0
- package/models/configuration/gridConfiguration.d.ts +6 -9
- package/models/gridBaseSlots.d.ts +15 -0
- package/models/gridFilterItem.d.ts +4 -2
- package/models/gridFilterOperator.d.ts +1 -1
- package/models/gridSlotsComponent.d.ts +10 -0
- package/models/gridSlotsComponentsProps.d.ts +5 -1
- package/package.json +3 -3
package/locales/ukUA.js
CHANGED
|
@@ -56,6 +56,9 @@ const ukUAGrid = {
|
|
|
56
56
|
// Toolbar pivot button
|
|
57
57
|
// toolbarPivot: 'Pivot',
|
|
58
58
|
|
|
59
|
+
// Toolbar charts button
|
|
60
|
+
// toolbarCharts: 'Charts',
|
|
61
|
+
|
|
59
62
|
// Toolbar AI Assistant button
|
|
60
63
|
// toolbarAssistant: 'AI Assistant',
|
|
61
64
|
|
|
@@ -136,6 +139,7 @@ const ukUAGrid = {
|
|
|
136
139
|
columnMenuSortAsc: 'Сортувати за зростанням',
|
|
137
140
|
columnMenuSortDesc: 'Сортувати за спаданням',
|
|
138
141
|
// columnMenuManagePivot: 'Manage pivot',
|
|
142
|
+
// columnMenuManageCharts: 'Manage charts',
|
|
139
143
|
|
|
140
144
|
// Column header text
|
|
141
145
|
columnHeaderFiltersTooltipActive: count => getPluralForm(count, {
|
|
@@ -213,6 +217,7 @@ const ukUAGrid = {
|
|
|
213
217
|
rowReorderingHeaderName: 'Порядок рядків',
|
|
214
218
|
// Aggregation
|
|
215
219
|
aggregationMenuItemHeader: 'Агрегація',
|
|
220
|
+
// aggregationFunctionLabelNone: 'none',
|
|
216
221
|
aggregationFunctionLabelSum: 'сума',
|
|
217
222
|
aggregationFunctionLabelAvg: 'сер',
|
|
218
223
|
aggregationFunctionLabelMin: 'мін',
|
|
@@ -247,6 +252,32 @@ const ukUAGrid = {
|
|
|
247
252
|
// pivotYearColumnHeaderName: '(Year)',
|
|
248
253
|
// pivotQuarterColumnHeaderName: '(Quarter)',
|
|
249
254
|
|
|
255
|
+
// Charts configuration panel
|
|
256
|
+
// chartsNoCharts: 'There are no charts available',
|
|
257
|
+
// chartsChartNotSelected: 'Select a chart type to configure its options',
|
|
258
|
+
// chartsTabChart: 'Chart',
|
|
259
|
+
// chartsTabFields: 'Fields',
|
|
260
|
+
// chartsTabCustomize: 'Customize',
|
|
261
|
+
// chartsCloseButton: 'Close charts configuration',
|
|
262
|
+
// chartsSyncButtonLabel: 'Sync chart',
|
|
263
|
+
// chartsSearchPlaceholder: 'Search fields',
|
|
264
|
+
// chartsSearchLabel: 'Search fields',
|
|
265
|
+
// chartsSearchClear: 'Clear search',
|
|
266
|
+
// chartsNoFields: 'No fields',
|
|
267
|
+
// chartsFieldBlocked: 'This field cannot be added to any section',
|
|
268
|
+
// chartsCategories: 'Categories',
|
|
269
|
+
// chartsSeries: 'Series',
|
|
270
|
+
// chartsMenuAddToDimensions: (dimensionLabel: string) => `Add to ${dimensionLabel}`,
|
|
271
|
+
// chartsMenuAddToValues: (valuesLabel: string) => `Add to ${valuesLabel}`,
|
|
272
|
+
// chartsMenuMoveUp: 'Move up',
|
|
273
|
+
// chartsMenuMoveDown: 'Move down',
|
|
274
|
+
// chartsMenuMoveToTop: 'Move to top',
|
|
275
|
+
// chartsMenuMoveToBottom: 'Move to bottom',
|
|
276
|
+
// chartsMenuOptions: 'Field options',
|
|
277
|
+
// chartsMenuRemove: 'Remove',
|
|
278
|
+
// chartsDragToDimensions: (dimensionLabel: string) => `Drag here to use column as ${dimensionLabel}`,
|
|
279
|
+
// chartsDragToValues: (valuesLabel: string) => `Drag here to use column as ${valuesLabel}`,
|
|
280
|
+
|
|
250
281
|
// AI Assistant panel
|
|
251
282
|
// aiAssistantPanelTitle: 'AI Assistant',
|
|
252
283
|
// aiAssistantPanelClose: 'Close AI Assistant',
|
package/locales/urPK.js
CHANGED
|
@@ -41,6 +41,9 @@ const urPKGrid = {
|
|
|
41
41
|
// Toolbar pivot button
|
|
42
42
|
// toolbarPivot: 'Pivot',
|
|
43
43
|
|
|
44
|
+
// Toolbar charts button
|
|
45
|
+
// toolbarCharts: 'Charts',
|
|
46
|
+
|
|
44
47
|
// Toolbar AI Assistant button
|
|
45
48
|
// toolbarAssistant: 'AI Assistant',
|
|
46
49
|
|
|
@@ -122,6 +125,7 @@ const urPKGrid = {
|
|
|
122
125
|
columnMenuSortAsc: 'ترتیب صعودی',
|
|
123
126
|
columnMenuSortDesc: 'ترتیب نزولی',
|
|
124
127
|
// columnMenuManagePivot: 'Manage pivot',
|
|
128
|
+
// columnMenuManageCharts: 'Manage charts',
|
|
125
129
|
|
|
126
130
|
// Column header text
|
|
127
131
|
columnHeaderFiltersTooltipActive: count => count !== 1 ? `${count} فعال فلٹرز` : `${count} فلٹرز فعال`,
|
|
@@ -192,6 +196,7 @@ const urPKGrid = {
|
|
|
192
196
|
|
|
193
197
|
// Aggregation
|
|
194
198
|
aggregationMenuItemHeader: 'ایگریگیشن',
|
|
199
|
+
// aggregationFunctionLabelNone: 'none',
|
|
195
200
|
aggregationFunctionLabelSum: 'کل',
|
|
196
201
|
aggregationFunctionLabelAvg: 'اوسط',
|
|
197
202
|
aggregationFunctionLabelMin: 'کم از کم',
|
|
@@ -227,6 +232,32 @@ const urPKGrid = {
|
|
|
227
232
|
// pivotYearColumnHeaderName: '(Year)',
|
|
228
233
|
// pivotQuarterColumnHeaderName: '(Quarter)',
|
|
229
234
|
|
|
235
|
+
// Charts configuration panel
|
|
236
|
+
// chartsNoCharts: 'There are no charts available',
|
|
237
|
+
// chartsChartNotSelected: 'Select a chart type to configure its options',
|
|
238
|
+
// chartsTabChart: 'Chart',
|
|
239
|
+
// chartsTabFields: 'Fields',
|
|
240
|
+
// chartsTabCustomize: 'Customize',
|
|
241
|
+
// chartsCloseButton: 'Close charts configuration',
|
|
242
|
+
// chartsSyncButtonLabel: 'Sync chart',
|
|
243
|
+
// chartsSearchPlaceholder: 'Search fields',
|
|
244
|
+
// chartsSearchLabel: 'Search fields',
|
|
245
|
+
// chartsSearchClear: 'Clear search',
|
|
246
|
+
// chartsNoFields: 'No fields',
|
|
247
|
+
// chartsFieldBlocked: 'This field cannot be added to any section',
|
|
248
|
+
// chartsCategories: 'Categories',
|
|
249
|
+
// chartsSeries: 'Series',
|
|
250
|
+
// chartsMenuAddToDimensions: (dimensionLabel: string) => `Add to ${dimensionLabel}`,
|
|
251
|
+
// chartsMenuAddToValues: (valuesLabel: string) => `Add to ${valuesLabel}`,
|
|
252
|
+
// chartsMenuMoveUp: 'Move up',
|
|
253
|
+
// chartsMenuMoveDown: 'Move down',
|
|
254
|
+
// chartsMenuMoveToTop: 'Move to top',
|
|
255
|
+
// chartsMenuMoveToBottom: 'Move to bottom',
|
|
256
|
+
// chartsMenuOptions: 'Field options',
|
|
257
|
+
// chartsMenuRemove: 'Remove',
|
|
258
|
+
// chartsDragToDimensions: (dimensionLabel: string) => `Drag here to use column as ${dimensionLabel}`,
|
|
259
|
+
// chartsDragToValues: (valuesLabel: string) => `Drag here to use column as ${valuesLabel}`,
|
|
260
|
+
|
|
230
261
|
// AI Assistant panel
|
|
231
262
|
// aiAssistantPanelTitle: 'AI Assistant',
|
|
232
263
|
// aiAssistantPanelClose: 'Close AI Assistant',
|
package/locales/viVN.js
CHANGED
|
@@ -41,6 +41,9 @@ const viVNGrid = {
|
|
|
41
41
|
// Toolbar pivot button
|
|
42
42
|
// toolbarPivot: 'Pivot',
|
|
43
43
|
|
|
44
|
+
// Toolbar charts button
|
|
45
|
+
// toolbarCharts: 'Charts',
|
|
46
|
+
|
|
44
47
|
// Toolbar AI Assistant button
|
|
45
48
|
// toolbarAssistant: 'AI Assistant',
|
|
46
49
|
|
|
@@ -123,6 +126,7 @@ const viVNGrid = {
|
|
|
123
126
|
columnMenuSortAsc: 'Sắp xếp tăng dần',
|
|
124
127
|
columnMenuSortDesc: 'Sắp xếp giảm dần',
|
|
125
128
|
// columnMenuManagePivot: 'Manage pivot',
|
|
129
|
+
// columnMenuManageCharts: 'Manage charts',
|
|
126
130
|
|
|
127
131
|
// Column header text
|
|
128
132
|
columnHeaderFiltersTooltipActive: count => count > 1 ? `${count} bộ lọc hoạt động` : `${count} bộ lọc hoạt động`,
|
|
@@ -192,6 +196,7 @@ const viVNGrid = {
|
|
|
192
196
|
rowReorderingHeaderName: 'Sắp xếp hàng',
|
|
193
197
|
// Aggregation
|
|
194
198
|
aggregationMenuItemHeader: 'Tổng hợp',
|
|
199
|
+
// aggregationFunctionLabelNone: 'none',
|
|
195
200
|
aggregationFunctionLabelSum: 'Tổng',
|
|
196
201
|
aggregationFunctionLabelAvg: 'Trung bình',
|
|
197
202
|
aggregationFunctionLabelMin: 'Tối thiểu',
|
|
@@ -227,6 +232,32 @@ const viVNGrid = {
|
|
|
227
232
|
// pivotYearColumnHeaderName: '(Year)',
|
|
228
233
|
// pivotQuarterColumnHeaderName: '(Quarter)',
|
|
229
234
|
|
|
235
|
+
// Charts configuration panel
|
|
236
|
+
// chartsNoCharts: 'There are no charts available',
|
|
237
|
+
// chartsChartNotSelected: 'Select a chart type to configure its options',
|
|
238
|
+
// chartsTabChart: 'Chart',
|
|
239
|
+
// chartsTabFields: 'Fields',
|
|
240
|
+
// chartsTabCustomize: 'Customize',
|
|
241
|
+
// chartsCloseButton: 'Close charts configuration',
|
|
242
|
+
// chartsSyncButtonLabel: 'Sync chart',
|
|
243
|
+
// chartsSearchPlaceholder: 'Search fields',
|
|
244
|
+
// chartsSearchLabel: 'Search fields',
|
|
245
|
+
// chartsSearchClear: 'Clear search',
|
|
246
|
+
// chartsNoFields: 'No fields',
|
|
247
|
+
// chartsFieldBlocked: 'This field cannot be added to any section',
|
|
248
|
+
// chartsCategories: 'Categories',
|
|
249
|
+
// chartsSeries: 'Series',
|
|
250
|
+
// chartsMenuAddToDimensions: (dimensionLabel: string) => `Add to ${dimensionLabel}`,
|
|
251
|
+
// chartsMenuAddToValues: (valuesLabel: string) => `Add to ${valuesLabel}`,
|
|
252
|
+
// chartsMenuMoveUp: 'Move up',
|
|
253
|
+
// chartsMenuMoveDown: 'Move down',
|
|
254
|
+
// chartsMenuMoveToTop: 'Move to top',
|
|
255
|
+
// chartsMenuMoveToBottom: 'Move to bottom',
|
|
256
|
+
// chartsMenuOptions: 'Field options',
|
|
257
|
+
// chartsMenuRemove: 'Remove',
|
|
258
|
+
// chartsDragToDimensions: (dimensionLabel: string) => `Drag here to use column as ${dimensionLabel}`,
|
|
259
|
+
// chartsDragToValues: (valuesLabel: string) => `Drag here to use column as ${valuesLabel}`,
|
|
260
|
+
|
|
230
261
|
// AI Assistant panel
|
|
231
262
|
// aiAssistantPanelTitle: 'AI Assistant',
|
|
232
263
|
// aiAssistantPanelClose: 'Close AI Assistant',
|
package/locales/zhCN.js
CHANGED
|
@@ -41,6 +41,9 @@ const zhCNGrid = {
|
|
|
41
41
|
// Toolbar pivot button
|
|
42
42
|
// toolbarPivot: 'Pivot',
|
|
43
43
|
|
|
44
|
+
// Toolbar charts button
|
|
45
|
+
// toolbarCharts: 'Charts',
|
|
46
|
+
|
|
44
47
|
// Toolbar AI Assistant button
|
|
45
48
|
// toolbarAssistant: 'AI Assistant',
|
|
46
49
|
|
|
@@ -121,6 +124,7 @@ const zhCNGrid = {
|
|
|
121
124
|
columnMenuSortAsc: '升序',
|
|
122
125
|
columnMenuSortDesc: '降序',
|
|
123
126
|
// columnMenuManagePivot: 'Manage pivot',
|
|
127
|
+
// columnMenuManageCharts: 'Manage charts',
|
|
124
128
|
|
|
125
129
|
// Column header text
|
|
126
130
|
columnHeaderFiltersTooltipActive: count => count !== 1 ? `${count} 个筛选器` : `${count} 个筛选器`,
|
|
@@ -189,6 +193,7 @@ const zhCNGrid = {
|
|
|
189
193
|
rowReorderingHeaderName: '重新排列行',
|
|
190
194
|
// Aggregation
|
|
191
195
|
aggregationMenuItemHeader: '集合',
|
|
196
|
+
// aggregationFunctionLabelNone: 'none',
|
|
192
197
|
aggregationFunctionLabelSum: '总数',
|
|
193
198
|
aggregationFunctionLabelAvg: '平均',
|
|
194
199
|
aggregationFunctionLabelMin: '最小',
|
|
@@ -223,6 +228,32 @@ const zhCNGrid = {
|
|
|
223
228
|
// pivotYearColumnHeaderName: '(Year)',
|
|
224
229
|
// pivotQuarterColumnHeaderName: '(Quarter)',
|
|
225
230
|
|
|
231
|
+
// Charts configuration panel
|
|
232
|
+
// chartsNoCharts: 'There are no charts available',
|
|
233
|
+
// chartsChartNotSelected: 'Select a chart type to configure its options',
|
|
234
|
+
// chartsTabChart: 'Chart',
|
|
235
|
+
// chartsTabFields: 'Fields',
|
|
236
|
+
// chartsTabCustomize: 'Customize',
|
|
237
|
+
// chartsCloseButton: 'Close charts configuration',
|
|
238
|
+
// chartsSyncButtonLabel: 'Sync chart',
|
|
239
|
+
// chartsSearchPlaceholder: 'Search fields',
|
|
240
|
+
// chartsSearchLabel: 'Search fields',
|
|
241
|
+
// chartsSearchClear: 'Clear search',
|
|
242
|
+
// chartsNoFields: 'No fields',
|
|
243
|
+
// chartsFieldBlocked: 'This field cannot be added to any section',
|
|
244
|
+
// chartsCategories: 'Categories',
|
|
245
|
+
// chartsSeries: 'Series',
|
|
246
|
+
// chartsMenuAddToDimensions: (dimensionLabel: string) => `Add to ${dimensionLabel}`,
|
|
247
|
+
// chartsMenuAddToValues: (valuesLabel: string) => `Add to ${valuesLabel}`,
|
|
248
|
+
// chartsMenuMoveUp: 'Move up',
|
|
249
|
+
// chartsMenuMoveDown: 'Move down',
|
|
250
|
+
// chartsMenuMoveToTop: 'Move to top',
|
|
251
|
+
// chartsMenuMoveToBottom: 'Move to bottom',
|
|
252
|
+
// chartsMenuOptions: 'Field options',
|
|
253
|
+
// chartsMenuRemove: 'Remove',
|
|
254
|
+
// chartsDragToDimensions: (dimensionLabel: string) => `Drag here to use column as ${dimensionLabel}`,
|
|
255
|
+
// chartsDragToValues: (valuesLabel: string) => `Drag here to use column as ${valuesLabel}`,
|
|
256
|
+
|
|
226
257
|
// AI Assistant panel
|
|
227
258
|
// aiAssistantPanelTitle: 'AI Assistant',
|
|
228
259
|
// aiAssistantPanelClose: 'Close AI Assistant',
|
package/locales/zhHK.js
CHANGED
|
@@ -41,6 +41,9 @@ const zhHKGrid = {
|
|
|
41
41
|
// Toolbar pivot button
|
|
42
42
|
// toolbarPivot: 'Pivot',
|
|
43
43
|
|
|
44
|
+
// Toolbar charts button
|
|
45
|
+
// toolbarCharts: 'Charts',
|
|
46
|
+
|
|
44
47
|
// Toolbar AI Assistant button
|
|
45
48
|
// toolbarAssistant: 'AI Assistant',
|
|
46
49
|
|
|
@@ -121,6 +124,7 @@ const zhHKGrid = {
|
|
|
121
124
|
columnMenuSortAsc: '按升序排序',
|
|
122
125
|
columnMenuSortDesc: '按降序排序',
|
|
123
126
|
// columnMenuManagePivot: 'Manage pivot',
|
|
127
|
+
// columnMenuManageCharts: 'Manage charts',
|
|
124
128
|
|
|
125
129
|
// Column header text
|
|
126
130
|
columnHeaderFiltersTooltipActive: count => count !== 1 ? `${count} 個有效過濾器` : `${count} 個活動過濾器`,
|
|
@@ -189,6 +193,7 @@ const zhHKGrid = {
|
|
|
189
193
|
rowReorderingHeaderName: '行重新排序',
|
|
190
194
|
// Aggregation
|
|
191
195
|
aggregationMenuItemHeader: '聚合',
|
|
196
|
+
// aggregationFunctionLabelNone: 'none',
|
|
192
197
|
aggregationFunctionLabelSum: '和',
|
|
193
198
|
aggregationFunctionLabelAvg: '平均',
|
|
194
199
|
aggregationFunctionLabelMin: '分分鐘',
|
|
@@ -223,6 +228,32 @@ const zhHKGrid = {
|
|
|
223
228
|
// pivotYearColumnHeaderName: '(Year)',
|
|
224
229
|
// pivotQuarterColumnHeaderName: '(Quarter)',
|
|
225
230
|
|
|
231
|
+
// Charts configuration panel
|
|
232
|
+
// chartsNoCharts: 'There are no charts available',
|
|
233
|
+
// chartsChartNotSelected: 'Select a chart type to configure its options',
|
|
234
|
+
// chartsTabChart: 'Chart',
|
|
235
|
+
// chartsTabFields: 'Fields',
|
|
236
|
+
// chartsTabCustomize: 'Customize',
|
|
237
|
+
// chartsCloseButton: 'Close charts configuration',
|
|
238
|
+
// chartsSyncButtonLabel: 'Sync chart',
|
|
239
|
+
// chartsSearchPlaceholder: 'Search fields',
|
|
240
|
+
// chartsSearchLabel: 'Search fields',
|
|
241
|
+
// chartsSearchClear: 'Clear search',
|
|
242
|
+
// chartsNoFields: 'No fields',
|
|
243
|
+
// chartsFieldBlocked: 'This field cannot be added to any section',
|
|
244
|
+
// chartsCategories: 'Categories',
|
|
245
|
+
// chartsSeries: 'Series',
|
|
246
|
+
// chartsMenuAddToDimensions: (dimensionLabel: string) => `Add to ${dimensionLabel}`,
|
|
247
|
+
// chartsMenuAddToValues: (valuesLabel: string) => `Add to ${valuesLabel}`,
|
|
248
|
+
// chartsMenuMoveUp: 'Move up',
|
|
249
|
+
// chartsMenuMoveDown: 'Move down',
|
|
250
|
+
// chartsMenuMoveToTop: 'Move to top',
|
|
251
|
+
// chartsMenuMoveToBottom: 'Move to bottom',
|
|
252
|
+
// chartsMenuOptions: 'Field options',
|
|
253
|
+
// chartsMenuRemove: 'Remove',
|
|
254
|
+
// chartsDragToDimensions: (dimensionLabel: string) => `Drag here to use column as ${dimensionLabel}`,
|
|
255
|
+
// chartsDragToValues: (valuesLabel: string) => `Drag here to use column as ${valuesLabel}`,
|
|
256
|
+
|
|
226
257
|
// AI Assistant panel
|
|
227
258
|
// aiAssistantPanelTitle: 'AI Assistant',
|
|
228
259
|
// aiAssistantPanelClose: 'Close AI Assistant',
|
package/locales/zhTW.js
CHANGED
|
@@ -41,6 +41,9 @@ const zhTWGrid = {
|
|
|
41
41
|
// Toolbar pivot button
|
|
42
42
|
// toolbarPivot: 'Pivot',
|
|
43
43
|
|
|
44
|
+
// Toolbar charts button
|
|
45
|
+
// toolbarCharts: 'Charts',
|
|
46
|
+
|
|
44
47
|
// Toolbar AI Assistant button
|
|
45
48
|
// toolbarAssistant: 'AI Assistant',
|
|
46
49
|
|
|
@@ -121,6 +124,7 @@ const zhTWGrid = {
|
|
|
121
124
|
columnMenuSortAsc: '升序',
|
|
122
125
|
columnMenuSortDesc: '降序',
|
|
123
126
|
// columnMenuManagePivot: 'Manage pivot',
|
|
127
|
+
// columnMenuManageCharts: 'Manage charts',
|
|
124
128
|
|
|
125
129
|
// Column header text
|
|
126
130
|
columnHeaderFiltersTooltipActive: count => `${count} 個篩選器`,
|
|
@@ -189,6 +193,7 @@ const zhTWGrid = {
|
|
|
189
193
|
rowReorderingHeaderName: '排序',
|
|
190
194
|
// Aggregation
|
|
191
195
|
aggregationMenuItemHeader: '集合',
|
|
196
|
+
// aggregationFunctionLabelNone: 'none',
|
|
192
197
|
aggregationFunctionLabelSum: '總數',
|
|
193
198
|
aggregationFunctionLabelAvg: '平均數',
|
|
194
199
|
aggregationFunctionLabelMin: '最小',
|
|
@@ -223,6 +228,32 @@ const zhTWGrid = {
|
|
|
223
228
|
// pivotYearColumnHeaderName: '(Year)',
|
|
224
229
|
// pivotQuarterColumnHeaderName: '(Quarter)',
|
|
225
230
|
|
|
231
|
+
// Charts configuration panel
|
|
232
|
+
// chartsNoCharts: 'There are no charts available',
|
|
233
|
+
// chartsChartNotSelected: 'Select a chart type to configure its options',
|
|
234
|
+
// chartsTabChart: 'Chart',
|
|
235
|
+
// chartsTabFields: 'Fields',
|
|
236
|
+
// chartsTabCustomize: 'Customize',
|
|
237
|
+
// chartsCloseButton: 'Close charts configuration',
|
|
238
|
+
// chartsSyncButtonLabel: 'Sync chart',
|
|
239
|
+
// chartsSearchPlaceholder: 'Search fields',
|
|
240
|
+
// chartsSearchLabel: 'Search fields',
|
|
241
|
+
// chartsSearchClear: 'Clear search',
|
|
242
|
+
// chartsNoFields: 'No fields',
|
|
243
|
+
// chartsFieldBlocked: 'This field cannot be added to any section',
|
|
244
|
+
// chartsCategories: 'Categories',
|
|
245
|
+
// chartsSeries: 'Series',
|
|
246
|
+
// chartsMenuAddToDimensions: (dimensionLabel: string) => `Add to ${dimensionLabel}`,
|
|
247
|
+
// chartsMenuAddToValues: (valuesLabel: string) => `Add to ${valuesLabel}`,
|
|
248
|
+
// chartsMenuMoveUp: 'Move up',
|
|
249
|
+
// chartsMenuMoveDown: 'Move down',
|
|
250
|
+
// chartsMenuMoveToTop: 'Move to top',
|
|
251
|
+
// chartsMenuMoveToBottom: 'Move to bottom',
|
|
252
|
+
// chartsMenuOptions: 'Field options',
|
|
253
|
+
// chartsMenuRemove: 'Remove',
|
|
254
|
+
// chartsDragToDimensions: (dimensionLabel: string) => `Drag here to use column as ${dimensionLabel}`,
|
|
255
|
+
// chartsDragToValues: (valuesLabel: string) => `Drag here to use column as ${valuesLabel}`,
|
|
256
|
+
|
|
226
257
|
// AI Assistant panel
|
|
227
258
|
// aiAssistantPanelTitle: 'AI Assistant',
|
|
228
259
|
// aiAssistantPanelClose: 'Close AI Assistant',
|
|
@@ -17,6 +17,8 @@ import type { TooltipProps } from '@mui/material/Tooltip';
|
|
|
17
17
|
import type { InputProps } from '@mui/material/Input';
|
|
18
18
|
import type { SelectProps } from '@mui/material/Select';
|
|
19
19
|
import type { SkeletonProps } from '@mui/material/Skeleton';
|
|
20
|
+
import type { ToggleButtonProps } from '@mui/material/ToggleButton';
|
|
21
|
+
import type { TabsProps } from '@mui/material/Tabs';
|
|
20
22
|
declare module '@mui/x-data-grid' {
|
|
21
23
|
interface BaseAutocompletePropsOverrides {
|
|
22
24
|
material?: Partial<AutocompleteProps<string, true, false, true>>;
|
|
@@ -54,6 +56,12 @@ declare module '@mui/x-data-grid' {
|
|
|
54
56
|
interface BaseButtonPropsOverrides {
|
|
55
57
|
material?: Partial<ButtonProps>;
|
|
56
58
|
}
|
|
59
|
+
interface BaseToggleButtonPropsOverrides {
|
|
60
|
+
material?: Partial<ToggleButtonProps>;
|
|
61
|
+
}
|
|
62
|
+
interface BaseTabsPropsOverrides {
|
|
63
|
+
material?: Partial<TabsProps>;
|
|
64
|
+
}
|
|
57
65
|
interface BaseIconButtonPropsOverrides {
|
|
58
66
|
material?: Partial<IconButtonProps>;
|
|
59
67
|
}
|