@procore/data-table 14.46.0 → 14.46.1

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.
@@ -57772,6 +57772,7 @@ var ServerSideSearch = ({
57772
57772
  const { updateServerSideDataSource } = useInternalTableContext();
57773
57773
  const hasNoContent = useTableHasNoContent();
57774
57774
  const I18n = useI18nContext();
57775
+ const resolvedPlaceholder = placeholder || I18n.t("dataTable.search");
57775
57776
  const debouncedSetSearchValue = React80.useCallback(
57776
57777
  debounce5((value) => {
57777
57778
  updateServerSideDataSource({ search: value });
@@ -57796,7 +57797,8 @@ var ServerSideSearch = ({
57796
57797
  value: internalValue,
57797
57798
  className: cx17("search", { "search--empty": !internalValue.length }),
57798
57799
  onChange,
57799
- placeholder: placeholder || I18n.t("dataTable.search")
57800
+ placeholder: resolvedPlaceholder,
57801
+ "aria-label": resolvedPlaceholder
57800
57802
  }
57801
57803
  ));
57802
57804
  };
@@ -107229,158 +107231,158 @@ var nb_NO_default = {
107229
107231
  dataTable: {
107230
107232
  emptyState: {
107231
107233
  noFilteredResults: {
107232
- description: "Kontroller staving og filteralternativer, eller s\xF8k etter et annet n\xF8kkelord.",
107233
- title: "Ingen enheter samsvarer med s\xF8ket ditt",
107234
- itemsTitle: "No %{itemsLabel} Match Your Search"
107234
+ description: "Sjekk stavem\xE5ten og filteralternativene dine, eller s\xF8k etter et annet n\xF8kkelord.",
107235
+ title: "Ingen elementer samsvarer med s\xF8ket ditt",
107236
+ itemsTitle: "Ingen %{itemsLabel} samsvarer med s\xF8ket ditt"
107235
107237
  },
107236
107238
  noResults: {
107237
- description: "Once your team creates these items, you can access them here. ",
107238
- title: "Ingen enheter kan vises akkurat n\xE5",
107239
- itemsTitle: "There Are No %{itemsLabel} to Display Right Now",
107240
- tooltip: "The %{featureName} button will be enabled once you add information to the %{tableName}",
107241
- searchTooltip: "Search will be enabled once you add information to the %{tableName}",
107239
+ description: "N\xE5r teamet ditt har opprettet disse elementene, kan du f\xE5 tilgang til dem her. ",
107240
+ title: "Det er ingen elementer \xE5 vise akkurat n\xE5",
107241
+ itemsTitle: "Det er ingen %{itemsLabel} \xE5 vise akkurat n\xE5",
107242
+ tooltip: "%{featureName} -knappen vil bli aktivert n\xE5r du legger til informasjon i %{tableName}",
107243
+ searchTooltip: "S\xF8k vil bli aktivert n\xE5r du legger til informasjon i %{tableName}",
107242
107244
  featureFilter: "Filter",
107243
- featureQuickFilter: "Quick Filter",
107244
- featureGroupBy: "Group By",
107245
- featureConfigure: "Configure",
107246
- tableNameFallback: "table"
107245
+ featureQuickFilter: "Hurtigfilter",
107246
+ featureGroupBy: "Grupper etter",
107247
+ featureConfigure: "Konfigurer",
107248
+ tableNameFallback: "bord"
107247
107249
  }
107248
107250
  },
107249
107251
  bulkActions: {
107250
- apply: "Apply",
107251
- bulkEdit: "Bulk Edit",
107252
+ apply: "S\xF8k",
107253
+ bulkEdit: "Masseendring",
107252
107254
  cancel: "Avbryt",
107253
- editValues: "Edit Values",
107254
- error: "Sorry, the items couldn't be updated. Try again.",
107255
- placeholderForField: "Enter %{fieldName}",
107256
- selection: "%{count} %{number} selected",
107255
+ editValues: "Rediger verdier",
107256
+ error: "Beklager, elementene kunne ikke oppdateres. Pr\xF8v igjen.",
107257
+ placeholderForField: "Skriv inn %{fieldName}",
107258
+ selection: "%{count} %{number} valgt",
107257
107259
  selection_count: {
107258
- zero: "%{count} items selected",
107259
- one: "%{count} item selected",
107260
- other: "%{count} items selected"
107260
+ zero: "%{count} elementer valgt",
107261
+ one: "%{count} element valgt",
107262
+ other: "%{count} elementer valgt"
107261
107263
  },
107262
- success: "The items were successfully updated.",
107263
- one: "item",
107264
- many: "Enheter"
107264
+ success: "Elementene ble oppdatert.",
107265
+ one: "element",
107266
+ many: "gjenstander"
107265
107267
  },
107266
- exporting: "Exporting...",
107268
+ exporting: "Eksporterer...",
107267
107269
  filters: {
107268
107270
  filters: "Filtre",
107269
107271
  allFilters: "Alle filtre",
107270
107272
  moreFilters: "More Filters",
107271
107273
  clearAllFilters: "Fjern alle filtre",
107272
- close: "Close",
107274
+ close: "Lukk",
107273
107275
  removeFilterToken: "Fjern %{name}",
107274
107276
  locationFilter: {
107275
107277
  selectAll: "Velg alle",
107276
- includeSublocations: "Include sublocations",
107277
- searchLocations: "Search locations",
107278
- locations: "Locations"
107278
+ includeSublocations: "Inkluder underlokasjoner",
107279
+ searchLocations: "S\xF8k etter steder",
107280
+ locations: "Steder"
107279
107281
  },
107280
107282
  numberFilter: {
107281
107283
  labels: {
107282
- and: "OG",
107283
- input_placeholder: "Enter Value",
107284
- placeholder: "Select an item"
107284
+ and: "og",
107285
+ input_placeholder: "Angi verdi",
107286
+ placeholder: "Velg et element"
107285
107287
  },
107286
107288
  options: {
107287
- any_value: "Any Value",
107288
- is_between: "Is Between",
107289
- is_equal_to: "Is Equal To",
107290
- greater_than: "Is Greater Than",
107291
- greater_than_equal_to: "Is Greater Than or Equal To",
107292
- less_than: "Is Less Than",
107293
- less_than_equal_to: "Is Less Than or Equal To",
107294
- no_value: "No Value"
107289
+ any_value: "Enhver verdi",
107290
+ is_between: "Er mellom",
107291
+ is_equal_to: "Er lik",
107292
+ greater_than: "Er st\xF8rre enn",
107293
+ greater_than_equal_to: "Er st\xF8rre enn eller lik",
107294
+ less_than: "Er mindre enn",
107295
+ less_than_equal_to: "Er mindre enn eller lik",
107296
+ no_value: "Ingen verdi"
107295
107297
  }
107296
107298
  },
107297
107299
  singleSelectFilter: {
107298
- placeholder: "Select a Value"
107300
+ placeholder: "Velg en verdi"
107299
107301
  },
107300
107302
  multiSelectQuickFilter: {
107301
- ariaLabel: "Quick filter: Select multiple options"
107303
+ ariaLabel: "Hurtigfilter: Velg flere alternativer"
107302
107304
  },
107303
107305
  singleSelectQuickFilter: {
107304
- ariaLabel: "Quick filter: Select an option"
107306
+ ariaLabel: "Hurtigfilter: Velg et alternativ"
107305
107307
  }
107306
107308
  },
107307
107309
  loading: {
107308
- initial: "Information loading.",
107309
- secondary: "Information loading, thanks for your patience."
107310
+ initial: "Laster inn informasjon.",
107311
+ secondary: "Informasjon lastes, takk for t\xE5lmodigheten."
107310
107312
  },
107311
107313
  menuOptions: {
107312
107314
  ariaMenuColumn: "Trykk p\xE5 Alt/Option og pil ned for \xE5 \xE5pne kolonnemenyen.",
107313
107315
  sortMenuItem: {
107314
- label: "Sort By This Column",
107315
- sortAscItem: "Sort Column Ascending",
107316
- sortDescItem: "Sort Column Descending",
107317
- sortResetItem: "Column Not Sorted",
107318
- sortAscending: "sorted ascending",
107319
- sortDescending: "sorted descending",
107320
- sortCleared: "Sorting cleared"
107321
- },
107322
- expandAllGroups: "Expand All Groups",
107323
- collapseAllGroups: "Collapse All Groups",
107324
- pinColumn: "Pin Column",
107325
- pinLeft: "Pin Left",
107326
- pinRight: "Pin Right",
107327
- noPin: "No Pin",
107328
- autoSizeThisColumn: "Autosize This Column",
107329
- autoSizeAllColumns: "Autosize All Columns",
107330
- hideColumn: "Hide Column",
107316
+ label: "Sorter etter denne kolonnen",
107317
+ sortAscItem: "Sorter kolonne stigende",
107318
+ sortDescItem: "Sorter kolonne synkende",
107319
+ sortResetItem: "Kolonne ikke sortert",
107320
+ sortAscending: "sortert stigende",
107321
+ sortDescending: "sortert synkende",
107322
+ sortCleared: "Sortering fjernet"
107323
+ },
107324
+ expandAllGroups: "Utvid alle grupper",
107325
+ collapseAllGroups: "Skjul alle grupper",
107326
+ pinColumn: "Fest kolonne",
107327
+ pinLeft: "Fest til venstre",
107328
+ pinRight: "Fest til h\xF8yre",
107329
+ noPin: "Ingen PIN",
107330
+ autoSizeThisColumn: "Tilpass kolonnebredden automatisk",
107331
+ autoSizeAllColumns: "Tilpass alle kolonner automatisk",
107332
+ hideColumn: "Skjul kolonne",
107331
107333
  resetColumns: "Tilbakestill kolonner",
107332
- unGroupBy: "Un-Group by {{label}}",
107333
- groupBy: "Group by {{label}}"
107334
+ unGroupBy: "Fjern gruppering etter {{label}}",
107335
+ groupBy: "Grupper etter {{label}}"
107334
107336
  },
107335
- grandTotals: "Grand Totals",
107337
+ grandTotals: "Totale summer",
107336
107338
  search: "S\xF8k",
107337
- subtotals: "Subtotals",
107339
+ subtotals: "Delsummer",
107338
107340
  tableSettings: {
107339
- configureColumns: "Configure Columns",
107340
- resetToDefault: "Show All",
107341
- rowHeight: "Row Height",
107342
- small: "Small",
107343
- medium: "Medium",
107344
- large: "Large",
107345
- tableSettings: "Table Settings",
107346
- groupBy: "Group by:",
107341
+ configureColumns: "Konfigurer kolonner",
107342
+ resetToDefault: "Vis alle",
107343
+ rowHeight: "Radh\xF8yde",
107344
+ small: "Liten",
107345
+ medium: "Middels",
107346
+ large: "Stor",
107347
+ tableSettings: "Borddekking",
107348
+ groupBy: "Grupper etter:",
107347
107349
  reset: "Tilbakestill",
107348
- selectColumnGroup: "Select a column to group",
107349
- configure: "Configure"
107350
+ selectColumnGroup: "Velg en kolonne \xE5 gruppere",
107351
+ configure: "Konfigurer"
107350
107352
  },
107351
107353
  rowGroupToggle: {
107352
- expandTierOne: "Open first groups in the table.",
107353
- expandAll: "Open all groups in the table.",
107354
- collapseAll: "Close all groups in the table."
107354
+ expandTierOne: "\xC5pne de f\xF8rste gruppene i tabellen.",
107355
+ expandAll: "\xC5pne alle grupper i tabellen.",
107356
+ collapseAll: "Lukk alle grupper i tabellen."
107355
107357
  },
107356
107358
  columnGroupToggle: {
107357
- collapse: "Collapse column group",
107358
- expand: "Expand column group"
107359
+ collapse: "Skjul kolonnegruppe",
107360
+ expand: "Utvid kolonnegruppe"
107359
107361
  },
107360
107362
  cells: {
107361
107363
  textCell: {
107362
- placeholder: "Enter text"
107364
+ placeholder: "Skriv inn tekst"
107363
107365
  },
107364
107366
  currencyCell: {
107365
- placeholder: "Enter currency"
107367
+ placeholder: "Angi valuta"
107366
107368
  },
107367
107369
  linkCell: {
107368
107370
  externalLabel: "\xC5pne ekstern kobling"
107369
107371
  },
107370
107372
  numberCell: {
107371
- placeholder: "Enter number"
107373
+ placeholder: "Skriv inn nummer"
107372
107374
  },
107373
107375
  percentCell: {
107374
- placeholder: "Enter %"
107376
+ placeholder: "Skriv inn %"
107375
107377
  },
107376
107378
  pillCell: {
107377
- placeholder: "Select {{label}}"
107379
+ placeholder: "Velg {{label}}"
107378
107380
  },
107379
107381
  selectCell: {
107380
- placeholder: "Select {{label}}"
107382
+ placeholder: "Velg {{label}}"
107381
107383
  },
107382
107384
  multiSelectCell: {
107383
- placeholder: "Select Values"
107385
+ placeholder: "Velg verdier"
107384
107386
  },
107385
107387
  booleanCell: {
107386
107388
  options: {
@@ -107391,16 +107393,16 @@ var nb_NO_default = {
107391
107393
  },
107392
107394
  filterRenders: {
107393
107395
  dateFilter: {
107394
- single: "Single",
107395
- range: "Range"
107396
+ single: "Enslig",
107397
+ range: "Rekkevidde"
107396
107398
  }
107397
107399
  },
107398
107400
  groupCell: {
107399
- expand: "Expand group",
107400
- collapse: "Collapse group"
107401
+ expand: "Utvid gruppe",
107402
+ collapse: "Skjul gruppe"
107401
107403
  },
107402
107404
  rowCheckbox: {
107403
- ariaLabel: "Select Row"
107405
+ ariaLabel: "Velg rad"
107404
107406
  }
107405
107407
  }
107406
107408
  };
@@ -107829,7 +107831,7 @@ var pt_BR_default = {
107829
107831
  options: {
107830
107832
  any_value: "Qualquer Valor",
107831
107833
  is_between: "Est\xE1 entre",
107832
- is_equal_to: "\xC9 igual a",
107834
+ is_equal_to: "\xC9 Igual a",
107833
107835
  greater_than: "\xC9 Maior Que",
107834
107836
  greater_than_equal_to: "\xC9 Maior Que ou Igual a",
107835
107837
  less_than: "\xC9 Menor Que",
@@ -107961,8 +107963,8 @@ var pt_PT_default = {
107961
107963
  description: "Assim que a sua equipa criar estes itens, poder\xE1 aceder aos mesmos aqui. ",
107962
107964
  title: "N\xE3o h\xE1 itens para apresentar neste momento",
107963
107965
  itemsTitle: "N\xE3o h\xE1 %{itemsLabel} para apresentar neste momento",
107964
- tooltip: "O bot\xE3o %{featureName} ser\xE1 ativado quando adicionar informa\xE7\xF5es \xE0 tabela %{tableName}",
107965
- searchTooltip: "A pesquisa ser\xE1 ativada quando adicionar informa\xE7\xF5es a %{tableName}",
107966
+ tooltip: "O bot\xE3o %{featureName} ser\xE1 ativado quando adicionar informa\xE7\xF5es a %{tableName}",
107967
+ searchTooltip: "A pesquisa ser\xE1 ativada quando adicionar informa\xE7\xF5es a: %{tableName}",
107966
107968
  featureFilter: "Filtro",
107967
107969
  featureQuickFilter: "Filtro r\xE1pido",
107968
107970
  featureGroupBy: "Agrupar por",
@@ -108063,8 +108065,8 @@ var pt_PT_default = {
108063
108065
  configureColumns: "Configurar colunas",
108064
108066
  resetToDefault: "Mostrar tudo",
108065
108067
  rowHeight: "Altura da linha",
108066
- small: "Pequeno",
108067
- medium: "M\xE9dio",
108068
+ small: "Pequena",
108069
+ medium: "M\xE9dia",
108068
108070
  large: "Grande",
108069
108071
  tableSettings: "Defini\xE7\xF5es de tabela",
108070
108072
  groupBy: "Agrupar por:",
@@ -111978,6 +111980,21 @@ var LocationQuickFilterRenderer_default = LocationQuickFilterRenderer;
111978
111980
  var StyledFilterPresetPopoverContent = styled4(Popover.Content)`
111979
111981
  padding: ${spacing.sm}px ${spacing.lg}px;
111980
111982
  `;
111983
+ var StyledClearButton = styled4(Button)`
111984
+ position: absolute;
111985
+ right: ${spacing.md + spacing.lg}px;
111986
+ top: calc(36px / 2);
111987
+ transform: translateY(-50%);
111988
+ color: ${colors.blue45};
111989
+ &:hover,
111990
+ &:focus {
111991
+ color: ${colors.blue45};
111992
+ background: ${colors.white};
111993
+ }
111994
+ `;
111995
+ var StyledTriggerContainerWrapper = styled4.div`
111996
+ position: relative;
111997
+ `;
111981
111998
  var getValueLabel = (isValueEmpty, value, placeholder, filterName) => {
111982
111999
  const prefixLabel = isValueEmpty ? placeholder || filterName : filterName;
111983
112000
  const valueLabel = value ? `${prefixLabel ? ": " : ""}${value}` : "";
@@ -111997,7 +112014,7 @@ var getSuperSelectFilterPreset = (columnDefinition) => {
111997
112014
  const ctx = UNSAFE_useSuperSelectContext();
111998
112015
  const I18n = useI18nContext();
111999
112016
  return /* @__PURE__ */ React80.createElement(
112000
- Button,
112017
+ StyledClearButton,
112001
112018
  {
112002
112019
  ...ctx.props.clear(),
112003
112020
  "aria-label": I18n.t("dataTable.filters.removeFilterToken", {
@@ -112022,6 +112039,11 @@ var getSuperSelectFilterPreset = (columnDefinition) => {
112022
112039
  filterName
112023
112040
  )));
112024
112041
  }),
112042
+ TriggerContainerWrapper: React80.forwardRef(
112043
+ (props, ref) => {
112044
+ return /* @__PURE__ */ React80.createElement(StyledTriggerContainerWrapper, { ref, ...props });
112045
+ }
112046
+ ),
112025
112047
  TriggerContainer: React80.forwardRef(
112026
112048
  (props, ref) => {
112027
112049
  const ctx = UNSAFE_useSuperSelectContext();
@@ -112035,11 +112057,31 @@ var getSuperSelectFilterPreset = (columnDefinition) => {
112035
112057
  }
112036
112058
  );
112037
112059
  }
112060
+ const {
112061
+ "aria-activedescendant": ariaActivedescendant,
112062
+ "aria-controls": ariaControls,
112063
+ "aria-expanded": ariaExpanded,
112064
+ "aria-haspopup": ariaHaspopup,
112065
+ "aria-label": ariaLabel,
112066
+ "aria-labelledby": ariaLabelledby,
112067
+ role,
112068
+ tabIndex
112069
+ } = ctx.props.multiInput();
112070
+ const a11yProps = {
112071
+ "aria-activedescendant": ariaActivedescendant,
112072
+ "aria-controls": ariaControls,
112073
+ "aria-expanded": ariaExpanded,
112074
+ "aria-haspopup": ariaHaspopup,
112075
+ "aria-label": ariaLabel,
112076
+ "aria-labelledby": ariaLabelledby,
112077
+ role,
112078
+ tabIndex
112079
+ };
112038
112080
  return /* @__PURE__ */ React80.createElement(
112039
112081
  Popover,
112040
112082
  {
112041
112083
  placement: "top",
112042
- trigger: ctx.state.value.length > 1 ? "hover" : "none",
112084
+ trigger: ctx.state.value.length > 1 ? ["hover", "focus"] : "none",
112043
112085
  overlay: /* @__PURE__ */ React80.createElement(StyledFilterPresetPopoverContent, null, /* @__PURE__ */ React80.createElement(Typography, null, ctx.state.value.map((v) => {
112044
112086
  const option = ctx.state.options.find(
112045
112087
  (option2) => ctx.option.value(option2) === v
@@ -112052,6 +112094,7 @@ var getSuperSelectFilterPreset = (columnDefinition) => {
112052
112094
  {
112053
112095
  $block: ctx.config.block,
112054
112096
  ...props,
112097
+ ...a11yProps,
112055
112098
  ref
112056
112099
  }
112057
112100
  )
@@ -112864,6 +112907,7 @@ var ClientSideSearch = ({
112864
112907
  const { tableRef } = useInternalTableContext();
112865
112908
  const hasNoContent = useTableHasNoContent();
112866
112909
  const I18n = useI18nContext();
112910
+ const resolvedPlaceholder = placeholder || I18n.t("dataTable.search");
112867
112911
  const debouncedSetSearchValue = React80.useCallback(
112868
112912
  debounce5((value) => {
112869
112913
  tableRef?.current?.setSearchValue(value);
@@ -112891,7 +112935,8 @@ var ClientSideSearch = ({
112891
112935
  "search--empty": !internalValue.length
112892
112936
  }),
112893
112937
  onChange,
112894
- placeholder: placeholder || I18n.t("dataTable.search")
112938
+ placeholder: resolvedPlaceholder,
112939
+ "aria-label": resolvedPlaceholder
112895
112940
  }
112896
112941
  ));
112897
112942
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@procore/data-table",
3
- "version": "14.46.0",
3
+ "version": "14.46.1",
4
4
  "description": "Complex data grid built on top of ag-grid, with DST components and styles.",
5
5
  "author": "Procore Technologies",
6
6
  "homepage": "https://github.com/procore/core/tree/main/packages/data-table",
@@ -106,9 +106,9 @@
106
106
  "@dotenvx/dotenvx": "1.6.4",
107
107
  "@ngneat/falso": "6.4.0",
108
108
  "@procore/core-css": "10.17.0",
109
- "@procore/core-icons": "^12.15.0",
109
+ "@procore/core-icons": "^12.17.0",
110
110
  "@procore/core-prettier": "10.2.0",
111
- "@procore/core-react": "^12.46.0",
111
+ "@procore/core-react": "^12.47.1",
112
112
  "@procore/eslint-config": "10.0.0",
113
113
  "@procore/globalization-toolkit": "3.1.0",
114
114
  "@procore/labs-financials-utils": "4.3.1",