@procore/data-table 14.36.1 → 14.38.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.
@@ -54615,6 +54615,32 @@ function SingleSelectFilterRenderer({
54615
54615
  );
54616
54616
  }
54617
54617
 
54618
+ // src/utils/columnEditableHelpers.ts
54619
+ function createColumnEditableUtils(options) {
54620
+ return {
54621
+ overrideEditable: (columnEditable) => {
54622
+ return (params) => {
54623
+ const isGroupNodeExpanded = params.node.group && params.node.expanded;
54624
+ if (params.node?.rowPinned || !options.enableGroupHeaderEdit && isGroupNodeExpanded && !params.node.footer) {
54625
+ return false;
54626
+ }
54627
+ if (typeof columnEditable === "boolean") {
54628
+ return columnEditable;
54629
+ }
54630
+ return columnEditable?.(params) ?? false;
54631
+ };
54632
+ }
54633
+ };
54634
+ }
54635
+ function isColumnEditable(columnEditable) {
54636
+ return (params) => {
54637
+ if (typeof columnEditable === "boolean") {
54638
+ return columnEditable;
54639
+ }
54640
+ return columnEditable?.(params) ?? false;
54641
+ };
54642
+ }
54643
+
54618
54644
  // src/utils/transformers.ts
54619
54645
  var emptyObject = {};
54620
54646
  var DEFAULT_AUTO_GROUP_COLUMN_DEFINITION = {
@@ -54695,22 +54721,11 @@ function transformToColumnDefinition(colDef = emptyObject) {
54695
54721
  valueSetter: colDef.valueSetter
54696
54722
  };
54697
54723
  }
54698
- function isEditable(columnEditable) {
54699
- return (params) => {
54700
- if (params.node?.rowPinned || params.node.group && params.node.expanded && !params.node.footer) {
54701
- return false;
54702
- }
54703
- if (typeof columnEditable === "boolean") {
54704
- return columnEditable;
54705
- }
54706
- return columnEditable?.(params) ?? false;
54707
- };
54708
- }
54709
54724
  function shouldHaveEditStyles(params) {
54710
54725
  if (!params.colDef?.cellEditor) {
54711
54726
  return false;
54712
54727
  }
54713
- return isEditable(params.colDef.editable);
54728
+ return isColumnEditable(params.colDef.editable);
54714
54729
  }
54715
54730
  var toExcelCellClass = (className) => `excel-export--${className}`;
54716
54731
  function transformToExcelStyles(excelDataFormats) {
@@ -54833,11 +54848,11 @@ function transformColumnDefinitionToColDef(dataTableColumnDefinition, enableGrou
54833
54848
  parentData: context?.parentData,
54834
54849
  parentId: context?.parentId
54835
54850
  }) : aggFunc,
54836
- bulkEditable: isEditable(bulkEditable),
54851
+ bulkEditable: isColumnEditable(bulkEditable),
54837
54852
  cellClass: cellExcelDataType ? toExcelCellClass(cellExcelDataType) : void 0,
54838
54853
  cellClassRules,
54839
54854
  comparator,
54840
- editable: isEditable(_editable),
54855
+ editable: isColumnEditable(_editable),
54841
54856
  filter: getFilter(dataTableColumnDefinition),
54842
54857
  // set filter by default
54843
54858
  filterParams: {
@@ -55158,12 +55173,12 @@ function getDecoratedAutoGroupColDef(columnDefinition, enableGroupEditAndValidat
55158
55173
  }
55159
55174
 
55160
55175
  // src/CellRenderers/AutoGroupCell.scss
55161
- var css5 = `._autoGroupCell_pq41h_1 {
55176
+ var css5 = `._autoGroupCell_1qx8z_1 {
55162
55177
  height: 100%;
55163
55178
  width: 100%;
55164
55179
  }
55165
55180
 
55166
- ._indent_pq41h_6 {
55181
+ ._indent_1qx8z_6 {
55167
55182
  border-right: 1px solid #d6dadc;
55168
55183
  background: #f4f5f6;
55169
55184
  position: absolute;
@@ -55171,44 +55186,45 @@ var css5 = `._autoGroupCell_pq41h_1 {
55171
55186
  bottom: -1px;
55172
55187
  width: 12px;
55173
55188
  }
55174
- ._indent_pq41h_6._innermostLastIndent_pq41h_14 {
55189
+ ._indent_1qx8z_6._innermostLastIndent_1qx8z_14 {
55175
55190
  bottom: 0px;
55176
55191
  }
55177
55192
 
55178
- ._expandableCaret_pq41h_18 {
55193
+ ._expandableCaret_1qx8z_18 {
55179
55194
  margin-left: -8px;
55180
55195
  margin-right: 4px;
55181
55196
  width: 24px;
55197
+ flex-shrink: 0;
55182
55198
  }
55183
55199
 
55184
- ._expandCaret_pq41h_24 {
55200
+ ._expandCaret_1qx8z_25 {
55185
55201
  color: #2066df;
55186
55202
  cursor: pointer;
55187
55203
  }
55188
55204
 
55189
- ._collapseCaret_pq41h_29 {
55205
+ ._collapseCaret_1qx8z_30 {
55190
55206
  color: #75838a;
55191
55207
  cursor: pointer;
55192
55208
  }
55193
55209
 
55194
- ._value_pq41h_34 {
55210
+ ._value_1qx8z_35 {
55195
55211
  overflow: hidden;
55196
55212
  text-overflow: ellipsis;
55197
55213
  font-size: 12px;
55198
55214
  }
55199
- ._value_pq41h_34._footer_pq41h_39 {
55215
+ ._value_1qx8z_35._footer_1qx8z_40 {
55200
55216
  color: #6a767c;
55201
55217
  }`;
55202
55218
  document.head.appendChild(document.createElement("style")).appendChild(document.createTextNode(css5));
55203
55219
  var AutoGroupCell_default = {
55204
- "autoGroupCell": "_autoGroupCell_pq41h_1",
55205
- "indent": "_indent_pq41h_6",
55206
- "innermostLastIndent": "_innermostLastIndent_pq41h_14",
55207
- "expandableCaret": "_expandableCaret_pq41h_18",
55208
- "expandCaret": "_expandCaret_pq41h_24",
55209
- "collapseCaret": "_collapseCaret_pq41h_29",
55210
- "value": "_value_pq41h_34",
55211
- "footer": "_footer_pq41h_39"
55220
+ "autoGroupCell": "_autoGroupCell_1qx8z_1",
55221
+ "indent": "_indent_1qx8z_6",
55222
+ "innermostLastIndent": "_innermostLastIndent_1qx8z_14",
55223
+ "expandableCaret": "_expandableCaret_1qx8z_18",
55224
+ "expandCaret": "_expandCaret_1qx8z_25",
55225
+ "collapseCaret": "_collapseCaret_1qx8z_30",
55226
+ "value": "_value_1qx8z_35",
55227
+ "footer": "_footer_1qx8z_40"
55212
55228
  };
55213
55229
 
55214
55230
  // src/utils/rowSelectionHelpers.ts
@@ -76272,12 +76288,12 @@ var MenuItemMapper = class MenuItemMapper2 extends BeanStub {
76272
76288
  if (ModuleRegistry.__assertRegistered(ModuleNames.ClipboardModule, "Cut from Menu", this.context.getGridId())) {
76273
76289
  const focusedCell = this.focusService.getFocusedCell();
76274
76290
  const rowNode = focusedCell ? this.rowPositionUtils.getRowNode(focusedCell) : null;
76275
- const isEditable2 = rowNode ? focusedCell === null || focusedCell === void 0 ? void 0 : focusedCell.column.isCellEditable(rowNode) : false;
76291
+ const isEditable = rowNode ? focusedCell === null || focusedCell === void 0 ? void 0 : focusedCell.column.isCellEditable(rowNode) : false;
76276
76292
  return {
76277
76293
  name: localeTextFunc("cut", "Cut"),
76278
76294
  shortcut: localeTextFunc("ctrlX", "Ctrl+X"),
76279
76295
  icon: _.createIconNoSpan("clipboardCut", this.gridOptionsService, null),
76280
- disabled: !isEditable2 || this.gridOptionsService.is("suppressCutToClipboard"),
76296
+ disabled: !isEditable || this.gridOptionsService.is("suppressCutToClipboard"),
76281
76297
  action: () => this.clipboardService.cutToClipboard(void 0, "contextMenu")
76282
76298
  };
76283
76299
  } else {
@@ -106130,6 +106146,177 @@ var is_IS_default = {
106130
106146
  }
106131
106147
  };
106132
106148
 
106149
+ // src/locales/it-IT.json
106150
+ var it_IT_default = {
106151
+ dataTable: {
106152
+ emptyState: {
106153
+ noFilteredResults: {
106154
+ description: "Controllare l'ortografia e le opzioni di filtro oppure effettuare la ricerca con una parola chiave diversa.",
106155
+ title: "Nessun elemento corrispondente alla ricerca",
106156
+ itemsTitle: "Nessuna corrispondenza %{itemsLabel} con la ricerca"
106157
+ },
106158
+ noResults: {
106159
+ description: "Gli elementi creati dal team saranno accessibili qui. ",
106160
+ title: "Al momento non sono presenti elementi da visualizzare",
106161
+ itemsTitle: "Al momento non sono presenti %{itemsLabel} da visualizzare",
106162
+ tooltip: "Il pulsante %{featureName} sar\xE0 attivato dopo l'aggiunta delle informazioni a %{tableName}",
106163
+ searchTooltip: "La ricerca sar\xE0 attivata dopo l'aggiunta delle informazioni a %{tableName}",
106164
+ featureFilter: "Filtro",
106165
+ featureQuickFilter: "Filtro rapido",
106166
+ featureGroupBy: "Raggruppa per",
106167
+ featureConfigure: "Configura",
106168
+ tableNameFallback: "tabella"
106169
+ }
106170
+ },
106171
+ bulkActions: {
106172
+ apply: "Applica",
106173
+ bulkEdit: "Modifica in blocco",
106174
+ cancel: "Annulla",
106175
+ editValues: "Modifica valori",
106176
+ error: "Impossibile aggiornare gli elementi. Riprovare.",
106177
+ placeholderForField: "Inserire %{fieldName}",
106178
+ selection: "%{count} %{number} selezionati",
106179
+ selection_count: {
106180
+ zero: "%{count} elementi selezionati",
106181
+ one: "%{count} elemento selezionato",
106182
+ other: "%{count} elementi selezionati"
106183
+ },
106184
+ success: "Gli elementi sono stati aggiornati correttamente.",
106185
+ one: "elemento",
106186
+ many: "elementi"
106187
+ },
106188
+ exporting: "Esportazione in corso...",
106189
+ filters: {
106190
+ filters: "Filtri",
106191
+ moreFilters: "Altri filtri",
106192
+ clearAllFilters: "Cancella tutti i filtri",
106193
+ close: "Chiudi",
106194
+ locationFilter: {
106195
+ selectAll: "Seleziona tutto",
106196
+ includeSublocations: "Includi posizioni secondarie",
106197
+ searchLocations: "Cerca posizioni",
106198
+ locations: "Posizioni"
106199
+ },
106200
+ numberFilter: {
106201
+ labels: {
106202
+ and: "e",
106203
+ input_placeholder: "Inserisci valore",
106204
+ placeholder: "Selezionare un elemento"
106205
+ },
106206
+ options: {
106207
+ any_value: "Qualsiasi valore",
106208
+ is_between: "\xC8 compreso tra",
106209
+ greater_than: "\xC8 maggiore di",
106210
+ greater_than_equal_to: "\xC8 maggiore o uguale a",
106211
+ less_than: "\xC8 minore di",
106212
+ less_than_equal_to: "\xC8 minore o uguale a",
106213
+ no_value: "Nessun valore"
106214
+ }
106215
+ },
106216
+ singleSelectFilter: {
106217
+ placeholder: "Selezionare un valore"
106218
+ },
106219
+ multiSelectQuickFilter: {
106220
+ ariaLabel: "Filtro rapido: selezionare pi\xF9 opzioni"
106221
+ },
106222
+ singleSelectQuickFilter: {
106223
+ ariaLabel: "Filtro rapido: selezionare un'opzione"
106224
+ }
106225
+ },
106226
+ loading: {
106227
+ initial: "Caricamento delle informazioni in corso.",
106228
+ secondary: "Caricamento delle informazioni in corso, grazie per la pazienza."
106229
+ },
106230
+ menuOptions: {
106231
+ sortMenuItem: {
106232
+ label: "Ordina per questa colonna",
106233
+ sortAscItem: "Ordina colonna (crescente)",
106234
+ sortDescItem: "Ordina colonna (decrescente)",
106235
+ sortResetItem: "Colonna non ordinata"
106236
+ },
106237
+ expandAllGroups: "Espandi tutti i gruppi",
106238
+ collapseAllGroups: "Comprimi tutti i gruppi",
106239
+ pinColumn: "Fissa colonna",
106240
+ pinLeft: "Fissa a sinistra",
106241
+ pinRight: "Fissa a destra",
106242
+ noPin: "Sblocca",
106243
+ autoSizeThisColumn: "Dimensione automatica per questa colonna",
106244
+ autoSizeAllColumns: "Dimensione automatica per tutte le colonne",
106245
+ hideColumn: "Nascondi colonna",
106246
+ resetColumns: "Reimposta colonne",
106247
+ unGroupBy: "Annulla raggruppamento per {{label}}",
106248
+ groupBy: "Raggruppa per {{label}}"
106249
+ },
106250
+ grandTotals: "Totali generali",
106251
+ search: "Cerca",
106252
+ subtotals: "Subtotali",
106253
+ tableSettings: {
106254
+ configureColumns: "Configura colonne",
106255
+ resetToDefault: "Mostra tutto",
106256
+ rowHeight: "Altezza riga",
106257
+ small: "Piccola",
106258
+ medium: "Media",
106259
+ large: "Grande",
106260
+ tableSettings: "Impostazioni tabella",
106261
+ groupBy: "Raggruppa per:",
106262
+ reset: "Reimposta",
106263
+ selectColumnGroup: "Selezionare una colonna da usare per il raggruppamento",
106264
+ configure: "Configura"
106265
+ },
106266
+ rowGroupToggle: {
106267
+ expandTierOne: "Aprire i primi gruppi nella tabella.",
106268
+ expandAll: "Aprire tutti i gruppi nella tabella.",
106269
+ collapseAll: "Chiudere tutti i gruppi nella tabella."
106270
+ },
106271
+ columnGroupToggle: {
106272
+ collapse: "Comprimi gruppo di colonne",
106273
+ expand: "Espandi gruppo di colonne"
106274
+ },
106275
+ cells: {
106276
+ textCell: {
106277
+ placeholder: "Inserisci testo"
106278
+ },
106279
+ currencyCell: {
106280
+ placeholder: "Inserisci valuta"
106281
+ },
106282
+ numberCell: {
106283
+ placeholder: "Inserisci numero"
106284
+ },
106285
+ percentCell: {
106286
+ placeholder: "Inserisci %"
106287
+ },
106288
+ pillCell: {
106289
+ placeholder: "Seleziona {{label}}"
106290
+ },
106291
+ selectCell: {
106292
+ placeholder: "Seleziona {{label}}"
106293
+ },
106294
+ multiSelectCell: {
106295
+ placeholder: "Seleziona valori"
106296
+ },
106297
+ booleanCell: {
106298
+ options: {
106299
+ yes: "S\xEC",
106300
+ no: "No"
106301
+ }
106302
+ }
106303
+ },
106304
+ filterRenders: {
106305
+ dateFilter: {
106306
+ single: "Singolo",
106307
+ range: "Intervallo"
106308
+ }
106309
+ },
106310
+ groupCell: {
106311
+ expand: "Espandi gruppo",
106312
+ collapse: "Comprimi gruppo"
106313
+ },
106314
+ rowCheckbox: {
106315
+ ariaLabel: "Seleziona riga"
106316
+ }
106317
+ }
106318
+ };
106319
+
106133
106320
  // src/locales/ja-JP.json
106134
106321
  var ja_JP_default = {
106135
106322
  dataTable: {
@@ -106301,6 +106488,177 @@ var ja_JP_default = {
106301
106488
  }
106302
106489
  };
106303
106490
 
106491
+ // src/locales/nb-NO.json
106492
+ var nb_NO_default = {
106493
+ dataTable: {
106494
+ emptyState: {
106495
+ noFilteredResults: {
106496
+ description: "Check your spelling and filter options, or search for a different keyword.",
106497
+ title: "No Items Match Your Search",
106498
+ itemsTitle: "No %{itemsLabel} Match Your Search"
106499
+ },
106500
+ noResults: {
106501
+ description: "Once your team creates these items, you can access them here. ",
106502
+ title: "There Are No Items to Display Right Now",
106503
+ itemsTitle: "There Are No %{itemsLabel} to Display Right Now",
106504
+ tooltip: "The %{featureName} button will be enabled once you add information to the %{tableName}",
106505
+ searchTooltip: "Search will be enabled once you add information to the %{tableName}",
106506
+ featureFilter: "Filter",
106507
+ featureQuickFilter: "Quick Filter",
106508
+ featureGroupBy: "Group By",
106509
+ featureConfigure: "Configure",
106510
+ tableNameFallback: "table"
106511
+ }
106512
+ },
106513
+ bulkActions: {
106514
+ apply: "Apply",
106515
+ bulkEdit: "Bulk Edit",
106516
+ cancel: "Cancel",
106517
+ editValues: "Edit Values",
106518
+ error: "Sorry, the items couldn't be updated. Try again.",
106519
+ placeholderForField: "Enter %{fieldName}",
106520
+ selection: "%{count} %{number} selected",
106521
+ selection_count: {
106522
+ zero: "%{count} items selected",
106523
+ one: "%{count} item selected",
106524
+ other: "%{count} items selected"
106525
+ },
106526
+ success: "The items were successfully updated.",
106527
+ one: "item",
106528
+ many: "items"
106529
+ },
106530
+ exporting: "Exporting...",
106531
+ filters: {
106532
+ filters: "Filters",
106533
+ moreFilters: "More Filters",
106534
+ clearAllFilters: "Clear All Filters",
106535
+ close: "Close",
106536
+ locationFilter: {
106537
+ selectAll: "Select all",
106538
+ includeSublocations: "Include sublocations",
106539
+ searchLocations: "Search locations",
106540
+ locations: "Locations"
106541
+ },
106542
+ numberFilter: {
106543
+ labels: {
106544
+ and: "and",
106545
+ input_placeholder: "Enter Value",
106546
+ placeholder: "Select an item"
106547
+ },
106548
+ options: {
106549
+ any_value: "Any Value",
106550
+ is_between: "Is Between",
106551
+ greater_than: "Is Greater Than",
106552
+ greater_than_equal_to: "Is Greater Than or Equal To",
106553
+ less_than: "Is Less Than",
106554
+ less_than_equal_to: "Is Less Than or Equal To",
106555
+ no_value: "No Value"
106556
+ }
106557
+ },
106558
+ singleSelectFilter: {
106559
+ placeholder: "Select a Value"
106560
+ },
106561
+ multiSelectQuickFilter: {
106562
+ ariaLabel: "Quick filter: Select multiple options"
106563
+ },
106564
+ singleSelectQuickFilter: {
106565
+ ariaLabel: "Quick filter: Select an option"
106566
+ }
106567
+ },
106568
+ loading: {
106569
+ initial: "Information loading.",
106570
+ secondary: "Information loading, thanks for your patience."
106571
+ },
106572
+ menuOptions: {
106573
+ sortMenuItem: {
106574
+ label: "Sort By This Column",
106575
+ sortAscItem: "Sort Column Ascending",
106576
+ sortDescItem: "Sort Column Descending",
106577
+ sortResetItem: "Column Not Sorted"
106578
+ },
106579
+ expandAllGroups: "Expand All Groups",
106580
+ collapseAllGroups: "Collapse All Groups",
106581
+ pinColumn: "Pin Column",
106582
+ pinLeft: "Pin Left",
106583
+ pinRight: "Pin Right",
106584
+ noPin: "No Pin",
106585
+ autoSizeThisColumn: "Autosize This Column",
106586
+ autoSizeAllColumns: "Autosize All Columns",
106587
+ hideColumn: "Hide Column",
106588
+ resetColumns: "Reset Columns",
106589
+ unGroupBy: "Un-Group by {{label}}",
106590
+ groupBy: "Group by {{label}}"
106591
+ },
106592
+ grandTotals: "Grand Totals",
106593
+ search: "Search",
106594
+ subtotals: "Subtotals",
106595
+ tableSettings: {
106596
+ configureColumns: "Configure Columns",
106597
+ resetToDefault: "Show All",
106598
+ rowHeight: "Row Height",
106599
+ small: "Small",
106600
+ medium: "Medium",
106601
+ large: "Large",
106602
+ tableSettings: "Table Settings",
106603
+ groupBy: "Group by:",
106604
+ reset: "Reset",
106605
+ selectColumnGroup: "Select a column to group",
106606
+ configure: "Configure"
106607
+ },
106608
+ rowGroupToggle: {
106609
+ expandTierOne: "Open first groups in the table.",
106610
+ expandAll: "Open all groups in the table.",
106611
+ collapseAll: "Close all groups in the table."
106612
+ },
106613
+ columnGroupToggle: {
106614
+ collapse: "Collapse column group",
106615
+ expand: "Expand column group"
106616
+ },
106617
+ cells: {
106618
+ textCell: {
106619
+ placeholder: "Enter text"
106620
+ },
106621
+ currencyCell: {
106622
+ placeholder: "Enter currency"
106623
+ },
106624
+ numberCell: {
106625
+ placeholder: "Enter number"
106626
+ },
106627
+ percentCell: {
106628
+ placeholder: "Enter %"
106629
+ },
106630
+ pillCell: {
106631
+ placeholder: "Select {{label}}"
106632
+ },
106633
+ selectCell: {
106634
+ placeholder: "Select {{label}}"
106635
+ },
106636
+ multiSelectCell: {
106637
+ placeholder: "Select Values"
106638
+ },
106639
+ booleanCell: {
106640
+ options: {
106641
+ yes: "Yes",
106642
+ no: "No"
106643
+ }
106644
+ }
106645
+ },
106646
+ filterRenders: {
106647
+ dateFilter: {
106648
+ single: "Single",
106649
+ range: "Range"
106650
+ }
106651
+ },
106652
+ groupCell: {
106653
+ expand: "Expand group",
106654
+ collapse: "Collapse group"
106655
+ },
106656
+ rowCheckbox: {
106657
+ ariaLabel: "Select Row"
106658
+ }
106659
+ }
106660
+ };
106661
+
106304
106662
  // src/locales/pl-PL.json
106305
106663
  var pl_PL_default = {
106306
106664
  dataTable: {
@@ -106814,6 +107172,177 @@ var pt_BR_default = {
106814
107172
  }
106815
107173
  };
106816
107174
 
107175
+ // src/locales/pt-PT.json
107176
+ var pt_PT_default = {
107177
+ dataTable: {
107178
+ emptyState: {
107179
+ noFilteredResults: {
107180
+ description: "Check your spelling and filter options, or search for a different keyword.",
107181
+ title: "No Items Match Your Search",
107182
+ itemsTitle: "No %{itemsLabel} Match Your Search"
107183
+ },
107184
+ noResults: {
107185
+ description: "Once your team creates these items, you can access them here. ",
107186
+ title: "There Are No Items to Display Right Now",
107187
+ itemsTitle: "There Are No %{itemsLabel} to Display Right Now",
107188
+ tooltip: "The %{featureName} button will be enabled once you add information to the %{tableName}",
107189
+ searchTooltip: "Search will be enabled once you add information to the %{tableName}",
107190
+ featureFilter: "Filter",
107191
+ featureQuickFilter: "Quick Filter",
107192
+ featureGroupBy: "Group By",
107193
+ featureConfigure: "Configure",
107194
+ tableNameFallback: "table"
107195
+ }
107196
+ },
107197
+ bulkActions: {
107198
+ apply: "Apply",
107199
+ bulkEdit: "Bulk Edit",
107200
+ cancel: "Cancel",
107201
+ editValues: "Edit Values",
107202
+ error: "Sorry, the items couldn't be updated. Try again.",
107203
+ placeholderForField: "Enter %{fieldName}",
107204
+ selection: "%{count} %{number} selected",
107205
+ selection_count: {
107206
+ zero: "%{count} items selected",
107207
+ one: "%{count} item selected",
107208
+ other: "%{count} items selected"
107209
+ },
107210
+ success: "The items were successfully updated.",
107211
+ one: "item",
107212
+ many: "items"
107213
+ },
107214
+ exporting: "Exporting...",
107215
+ filters: {
107216
+ filters: "Filters",
107217
+ moreFilters: "More Filters",
107218
+ clearAllFilters: "Clear All Filters",
107219
+ close: "Close",
107220
+ locationFilter: {
107221
+ selectAll: "Select all",
107222
+ includeSublocations: "Include sublocations",
107223
+ searchLocations: "Search locations",
107224
+ locations: "Locations"
107225
+ },
107226
+ numberFilter: {
107227
+ labels: {
107228
+ and: "and",
107229
+ input_placeholder: "Enter Value",
107230
+ placeholder: "Select an item"
107231
+ },
107232
+ options: {
107233
+ any_value: "Any Value",
107234
+ is_between: "Is Between",
107235
+ greater_than: "Is Greater Than",
107236
+ greater_than_equal_to: "Is Greater Than or Equal To",
107237
+ less_than: "Is Less Than",
107238
+ less_than_equal_to: "Is Less Than or Equal To",
107239
+ no_value: "No Value"
107240
+ }
107241
+ },
107242
+ singleSelectFilter: {
107243
+ placeholder: "Select a Value"
107244
+ },
107245
+ multiSelectQuickFilter: {
107246
+ ariaLabel: "Quick filter: Select multiple options"
107247
+ },
107248
+ singleSelectQuickFilter: {
107249
+ ariaLabel: "Quick filter: Select an option"
107250
+ }
107251
+ },
107252
+ loading: {
107253
+ initial: "Information loading.",
107254
+ secondary: "Information loading, thanks for your patience."
107255
+ },
107256
+ menuOptions: {
107257
+ sortMenuItem: {
107258
+ label: "Sort By This Column",
107259
+ sortAscItem: "Sort Column Ascending",
107260
+ sortDescItem: "Sort Column Descending",
107261
+ sortResetItem: "Column Not Sorted"
107262
+ },
107263
+ expandAllGroups: "Expand All Groups",
107264
+ collapseAllGroups: "Collapse All Groups",
107265
+ pinColumn: "Pin Column",
107266
+ pinLeft: "Pin Left",
107267
+ pinRight: "Pin Right",
107268
+ noPin: "No Pin",
107269
+ autoSizeThisColumn: "Autosize This Column",
107270
+ autoSizeAllColumns: "Autosize All Columns",
107271
+ hideColumn: "Hide Column",
107272
+ resetColumns: "Reset Columns",
107273
+ unGroupBy: "Un-Group by {{label}}",
107274
+ groupBy: "Group by {{label}}"
107275
+ },
107276
+ grandTotals: "Grand Totals",
107277
+ search: "Search",
107278
+ subtotals: "Subtotals",
107279
+ tableSettings: {
107280
+ configureColumns: "Configure Columns",
107281
+ resetToDefault: "Show All",
107282
+ rowHeight: "Row Height",
107283
+ small: "Small",
107284
+ medium: "Medium",
107285
+ large: "Large",
107286
+ tableSettings: "Table Settings",
107287
+ groupBy: "Group by:",
107288
+ reset: "Reset",
107289
+ selectColumnGroup: "Select a column to group",
107290
+ configure: "Configure"
107291
+ },
107292
+ rowGroupToggle: {
107293
+ expandTierOne: "Open first groups in the table.",
107294
+ expandAll: "Open all groups in the table.",
107295
+ collapseAll: "Close all groups in the table."
107296
+ },
107297
+ columnGroupToggle: {
107298
+ collapse: "Collapse column group",
107299
+ expand: "Expand column group"
107300
+ },
107301
+ cells: {
107302
+ textCell: {
107303
+ placeholder: "Enter text"
107304
+ },
107305
+ currencyCell: {
107306
+ placeholder: "Enter currency"
107307
+ },
107308
+ numberCell: {
107309
+ placeholder: "Enter number"
107310
+ },
107311
+ percentCell: {
107312
+ placeholder: "Enter %"
107313
+ },
107314
+ pillCell: {
107315
+ placeholder: "Select {{label}}"
107316
+ },
107317
+ selectCell: {
107318
+ placeholder: "Select {{label}}"
107319
+ },
107320
+ multiSelectCell: {
107321
+ placeholder: "Select Values"
107322
+ },
107323
+ booleanCell: {
107324
+ options: {
107325
+ yes: "Yes",
107326
+ no: "No"
107327
+ }
107328
+ }
107329
+ },
107330
+ filterRenders: {
107331
+ dateFilter: {
107332
+ single: "Single",
107333
+ range: "Range"
107334
+ }
107335
+ },
107336
+ groupCell: {
107337
+ expand: "Expand group",
107338
+ collapse: "Collapse group"
107339
+ },
107340
+ rowCheckbox: {
107341
+ ariaLabel: "Select Row"
107342
+ }
107343
+ }
107344
+ };
107345
+
106817
107346
  // src/locales/th-TH.json
106818
107347
  var th_TH_default = {
106819
107348
  dataTable: {
@@ -107156,6 +107685,177 @@ var zh_SG_default = {
107156
107685
  }
107157
107686
  };
107158
107687
 
107688
+ // src/locales/zh-TW.json
107689
+ var zh_TW_default = {
107690
+ dataTable: {
107691
+ emptyState: {
107692
+ noFilteredResults: {
107693
+ description: "Check your spelling and filter options, or search for a different keyword.",
107694
+ title: "No Items Match Your Search",
107695
+ itemsTitle: "No %{itemsLabel} Match Your Search"
107696
+ },
107697
+ noResults: {
107698
+ description: "Once your team creates these items, you can access them here. ",
107699
+ title: "There Are No Items to Display Right Now",
107700
+ itemsTitle: "There Are No %{itemsLabel} to Display Right Now",
107701
+ tooltip: "The %{featureName} button will be enabled once you add information to the %{tableName}",
107702
+ searchTooltip: "Search will be enabled once you add information to the %{tableName}",
107703
+ featureFilter: "Filter",
107704
+ featureQuickFilter: "Quick Filter",
107705
+ featureGroupBy: "Group By",
107706
+ featureConfigure: "Configure",
107707
+ tableNameFallback: "table"
107708
+ }
107709
+ },
107710
+ bulkActions: {
107711
+ apply: "Apply",
107712
+ bulkEdit: "Bulk Edit",
107713
+ cancel: "Cancel",
107714
+ editValues: "Edit Values",
107715
+ error: "Sorry, the items couldn't be updated. Try again.",
107716
+ placeholderForField: "Enter %{fieldName}",
107717
+ selection: "%{count} %{number} selected",
107718
+ selection_count: {
107719
+ zero: "\u5DF2\u9078\u64C7%{count}\u9805\u76EE",
107720
+ one: "\u5DF2\u9078\u64C7%{count}\u9805\u76EE",
107721
+ other: "\u5DF2\u9078\u64C7%{count}\u9805\u76EE"
107722
+ },
107723
+ success: "The items were successfully updated.",
107724
+ one: "item",
107725
+ many: "items"
107726
+ },
107727
+ exporting: "Exporting...",
107728
+ filters: {
107729
+ filters: "Filters",
107730
+ moreFilters: "More Filters",
107731
+ clearAllFilters: "Clear All Filters",
107732
+ close: "Close",
107733
+ locationFilter: {
107734
+ selectAll: "Select all",
107735
+ includeSublocations: "Include sublocations",
107736
+ searchLocations: "Search locations",
107737
+ locations: "Locations"
107738
+ },
107739
+ numberFilter: {
107740
+ labels: {
107741
+ and: "and",
107742
+ input_placeholder: "Enter Value",
107743
+ placeholder: "Select an item"
107744
+ },
107745
+ options: {
107746
+ any_value: "Any Value",
107747
+ is_between: "Is Between",
107748
+ greater_than: "Is Greater Than",
107749
+ greater_than_equal_to: "Is Greater Than or Equal To",
107750
+ less_than: "Is Less Than",
107751
+ less_than_equal_to: "Is Less Than or Equal To",
107752
+ no_value: "No Value"
107753
+ }
107754
+ },
107755
+ singleSelectFilter: {
107756
+ placeholder: "Select a Value"
107757
+ },
107758
+ multiSelectQuickFilter: {
107759
+ ariaLabel: "Quick filter: Select multiple options"
107760
+ },
107761
+ singleSelectQuickFilter: {
107762
+ ariaLabel: "Quick filter: Select an option"
107763
+ }
107764
+ },
107765
+ loading: {
107766
+ initial: "Information loading.",
107767
+ secondary: "Information loading, thanks for your patience."
107768
+ },
107769
+ menuOptions: {
107770
+ sortMenuItem: {
107771
+ label: "Sort By This Column",
107772
+ sortAscItem: "Sort Column Ascending",
107773
+ sortDescItem: "Sort Column Descending",
107774
+ sortResetItem: "Column Not Sorted"
107775
+ },
107776
+ expandAllGroups: "Expand All Groups",
107777
+ collapseAllGroups: "Collapse All Groups",
107778
+ pinColumn: "Pin Column",
107779
+ pinLeft: "Pin Left",
107780
+ pinRight: "Pin Right",
107781
+ noPin: "No Pin",
107782
+ autoSizeThisColumn: "Autosize This Column",
107783
+ autoSizeAllColumns: "Autosize All Columns",
107784
+ hideColumn: "Hide Column",
107785
+ resetColumns: "Reset Columns",
107786
+ unGroupBy: "Un-Group by {{label}}",
107787
+ groupBy: "Group by {{label}}"
107788
+ },
107789
+ grandTotals: "Grand Totals",
107790
+ search: "Search",
107791
+ subtotals: "Subtotals",
107792
+ tableSettings: {
107793
+ configureColumns: "Configure Columns",
107794
+ resetToDefault: "Show All",
107795
+ rowHeight: "Row Height",
107796
+ small: "Small",
107797
+ medium: "Medium",
107798
+ large: "Large",
107799
+ tableSettings: "Table Settings",
107800
+ groupBy: "Group by:",
107801
+ reset: "Reset",
107802
+ selectColumnGroup: "Select a column to group",
107803
+ configure: "Configure"
107804
+ },
107805
+ rowGroupToggle: {
107806
+ expandTierOne: "Open first groups in the table.",
107807
+ expandAll: "Open all groups in the table.",
107808
+ collapseAll: "Close all groups in the table."
107809
+ },
107810
+ columnGroupToggle: {
107811
+ collapse: "Collapse column group",
107812
+ expand: "Expand column group"
107813
+ },
107814
+ cells: {
107815
+ textCell: {
107816
+ placeholder: "Enter text"
107817
+ },
107818
+ currencyCell: {
107819
+ placeholder: "Enter currency"
107820
+ },
107821
+ numberCell: {
107822
+ placeholder: "Enter number"
107823
+ },
107824
+ percentCell: {
107825
+ placeholder: "\u9032\u5165 \uFF05"
107826
+ },
107827
+ pillCell: {
107828
+ placeholder: "Select {{label}}"
107829
+ },
107830
+ selectCell: {
107831
+ placeholder: "Select {{label}}"
107832
+ },
107833
+ multiSelectCell: {
107834
+ placeholder: "\u9078\u64C7\u503C"
107835
+ },
107836
+ booleanCell: {
107837
+ options: {
107838
+ yes: "Yes",
107839
+ no: "No"
107840
+ }
107841
+ }
107842
+ },
107843
+ filterRenders: {
107844
+ dateFilter: {
107845
+ single: "Single",
107846
+ range: "Range"
107847
+ }
107848
+ },
107849
+ groupCell: {
107850
+ expand: "Expand group",
107851
+ collapse: "Collapse group"
107852
+ },
107853
+ rowCheckbox: {
107854
+ ariaLabel: "Select Row"
107855
+ }
107856
+ }
107857
+ };
107858
+
107159
107859
  // src/utils/translations.ts
107160
107860
  var translations = {
107161
107861
  "de-DE": de_DE_default,
@@ -107173,7 +107873,11 @@ var translations = {
107173
107873
  "pt-BR": pt_BR_default,
107174
107874
  "th-TH": th_TH_default,
107175
107875
  "zh-SG": zh_SG_default,
107176
- "pl-PL": pl_PL_default
107876
+ "pl-PL": pl_PL_default,
107877
+ "it-IT": it_IT_default,
107878
+ "pt-PT": pt_PT_default,
107879
+ "nb-NO": nb_NO_default,
107880
+ "zh-TW": zh_TW_default
107177
107881
  };
107178
107882
  var PRINCE_XML_DPI = 96;
107179
107883
  var DEFAULT_PAGE_MARGIN = 40;
@@ -108465,6 +109169,20 @@ function getServerSideDatasource(onServerSideDataRequestCallbackRef, onEmptyResp
108465
109169
  };
108466
109170
  }
108467
109171
  var minimumColumnWidth = 140;
109172
+ function useComputeAgGridProps(props) {
109173
+ const internalTableContext = useInternalTableContext();
109174
+ const onSSDR = internalTableContext.onServerSideDataRequest;
109175
+ return {
109176
+ groupIncludeFooter: !onSSDR && props.groupIncludeFooter === void 0 ? true : props.groupIncludeFooter,
109177
+ rowDragManaged: onSSDR ? false : props.rowDragManaged ?? true,
109178
+ rowModelType: onSSDR ? "serverSide" : void 0,
109179
+ groupSelectsChildren: (
109180
+ // Always true for client side, defaults to true for server side
109181
+ internalTableContext.totalRowCount > 0 && props.groupSelectsChildren !== false || !onSSDR
109182
+ ),
109183
+ groupDefaultExpanded: props.groupsAlwaysExpanded ? -1 : props.groupDefaultExpanded
109184
+ };
109185
+ }
108468
109186
  var Table = (props) => {
108469
109187
  const { suppressColumnVirtualisation = true, rowActionsConfig = {} } = props;
108470
109188
  const I18n = coreReact.useI18nContext();
@@ -108514,14 +109232,28 @@ var Table = (props) => {
108514
109232
  React80__default.default.useImperativeHandle(internalTableContext.tableRef, () => tableApi, [
108515
109233
  tableApi
108516
109234
  ]);
109235
+ const {
109236
+ groupIncludeFooter,
109237
+ rowDragManaged,
109238
+ rowModelType,
109239
+ groupSelectsChildren,
109240
+ groupDefaultExpanded
109241
+ } = useComputeAgGridProps(props);
109242
+ const { overrideEditable } = createColumnEditableUtils({
109243
+ enableGroupHeaderEdit: props.enableGroupHeaderEdit
109244
+ });
108517
109245
  const decoratedColDefs = React80__default.default.useMemo(
108518
- () => internalTableContext.columnDefinitions?.map(
108519
- (colDef) => transformToColDef(
109246
+ () => internalTableContext.columnDefinitions?.map((colDef) => {
109247
+ const newColDef = transformToColDef(
108520
109248
  colDef,
108521
109249
  internalTableContext.enableGroupEditAndValidation,
108522
109250
  internalTableContext.enableDynamicRowHeight
108523
- )
108524
- ),
109251
+ );
109252
+ return {
109253
+ ...newColDef,
109254
+ editable: overrideEditable(colDef.editable)
109255
+ };
109256
+ }),
108525
109257
  [internalTableContext.columnDefinitions]
108526
109258
  );
108527
109259
  const hasRowActions = React80__default.default.useMemo(
@@ -109263,13 +109995,10 @@ var Table = (props) => {
109263
109995
  getRowId: internalTableContext.getRowId,
109264
109996
  getRowStyle,
109265
109997
  groupAllowUnbalanced: true,
109266
- groupDefaultExpanded: props.groupsAlwaysExpanded ? -1 : props.groupDefaultExpanded,
109267
- groupIncludeFooter: !onSSDR && props.groupIncludeFooter === void 0 ? true : props.groupIncludeFooter,
109998
+ groupDefaultExpanded,
109999
+ groupIncludeFooter,
109268
110000
  getGroupRowAgg: props.getGroupRowAgg ? getGroupRowAgg : void 0,
109269
- groupSelectsChildren: (
109270
- // Always true for client side, defaults to true for server side
109271
- internalTableContext.totalRowCount > 0 && props.groupSelectsChildren !== false || !onSSDR
109272
- ),
110001
+ groupSelectsChildren,
109273
110002
  groupSelectsFiltered: true,
109274
110003
  headerHeight: props.headerHeight,
109275
110004
  icons: tableIcons,
@@ -109327,8 +110056,8 @@ var Table = (props) => {
109327
110056
  pinnedBottomRowData: props.pinnedBottomRowData,
109328
110057
  rowBuffer: props.rowBuffer,
109329
110058
  rowClassRules,
109330
- rowDragManaged: onSSDR ? false : props.rowDragManaged ?? true,
109331
- rowModelType: onSSDR ? "serverSide" : void 0,
110059
+ rowDragManaged,
110060
+ rowModelType,
109332
110061
  rowSelection: "multiple",
109333
110062
  ...serverSideInfiniteScroll,
109334
110063
  suppressClickEdit: true,