@procore/data-table 14.31.0-cdn.0 → 14.32.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.
@@ -10,7 +10,6 @@ import { formatNumber, formatCurrency, formatPercentage } from '@procore/labs-fi
10
10
  import styled4, { css as css$1 } from 'styled-components';
11
11
  import { format } from '@procore/labs-financials-utils/dist/format';
12
12
  import { detectPrng, factory } from 'ulid';
13
- import { isCDNFeatureFlagEnabled, useRequestTranslations } from '@procore/cdn-translations';
14
13
  import { useToastAlertContext, ToastAlertProvider } from '@procore/toast-alert';
15
14
  import ReactDOM, { createPortal } from 'react-dom';
16
15
  import { renderToString, renderToStaticMarkup } from 'react-dom/server';
@@ -52593,9 +52592,6 @@ var Renderer6 = ({
52593
52592
  },
52594
52593
  [columnDefinition.cellRendererParams?.getInitials]
52595
52594
  );
52596
- React80.useEffect(() => {
52597
- setFullCellView(rowHeight === rowSize.lg || rowHeight === rowSize.md);
52598
- }, [rowHeight]);
52599
52595
  const getPersonNameWithCompany = React80.useCallback(
52600
52596
  (person) => {
52601
52597
  const name = getPersonName(person);
@@ -52604,6 +52600,9 @@ var Renderer6 = ({
52604
52600
  },
52605
52601
  [getCompanyName, getPersonName]
52606
52602
  );
52603
+ React80.useEffect(() => {
52604
+ setFullCellView(rowHeight === rowSize.lg || rowHeight === rowSize.md);
52605
+ }, [rowHeight]);
52607
52606
  const namesWithCompany = React80.useMemo(
52608
52607
  () => getPeople().map(getPersonNameWithCompany).join(", "),
52609
52608
  [getPeople, getPersonNameWithCompany]
@@ -53941,7 +53940,7 @@ var NumberFilterRenderer = React80.memo(
53941
53940
  return {
53942
53941
  type: prev?.type,
53943
53942
  filter: prev?.filter,
53944
- filterTo: inputValue
53943
+ filterTo: inputValue !== "" ? Number(inputValue) : void 0
53945
53944
  };
53946
53945
  });
53947
53946
  if (inputValue === void 0 || inputValue === "") {
@@ -53951,7 +53950,7 @@ var NumberFilterRenderer = React80.memo(
53951
53950
  return {
53952
53951
  type: prev?.type,
53953
53952
  filter: prev?.filter,
53954
- filterTo: inputValue
53953
+ filterTo: Number(inputValue)
53955
53954
  };
53956
53955
  });
53957
53956
  }, []);
@@ -54218,7 +54217,7 @@ var ServerSideFilter = ({
54218
54217
  "data-qa": `data-table-filter-heading-${fieldName}`,
54219
54218
  id: `data-table-filter-heading-${fieldName}`
54220
54219
  },
54221
- filterHeading
54220
+ typeof filterHeading === "function" ? filterHeading({}) : filterHeading
54222
54221
  ) : null,
54223
54222
  /* @__PURE__ */ React80.createElement(
54224
54223
  Component4,
@@ -104447,11 +104446,6 @@ var de_DE_default = {
104447
104446
  error: "Entschuldigung, die Elemente konnten nicht aktualisiert werden. Versuchen Sie es noch einmal.",
104448
104447
  placeholderForField: "%{fieldName} eingeben",
104449
104448
  selection: "%{count} %{number} ausgew\xE4hlt",
104450
- selection_count: {
104451
- zero: "%{count} Elemente ausgew\xE4hlt",
104452
- one: "%{count} Element ausgew\xE4hlt",
104453
- other: "%{count} Elemente ausgew\xE4hlt"
104454
- },
104455
104449
  success: "Die Elemente wurden erfolgreich aktualisiert.",
104456
104450
  one: "Element",
104457
104451
  many: "Elemente"
@@ -104618,11 +104612,6 @@ var en_AU_default = {
104618
104612
  error: "Sorry, the items couldn't be updated. Try again.",
104619
104613
  placeholderForField: "Enter %{fieldName}",
104620
104614
  selection: "%{count} %{number} selected",
104621
- selection_count: {
104622
- zero: "%{count} items selected",
104623
- one: "%{count} item selected",
104624
- other: "%{count} items selected"
104625
- },
104626
104615
  success: "The items were successfully updated.",
104627
104616
  one: "item",
104628
104617
  many: "items"
@@ -104686,7 +104675,7 @@ var en_AU_default = {
104686
104675
  autoSizeAllColumns: "Autosize all columns",
104687
104676
  hideColumn: "Hide column",
104688
104677
  resetColumns: "Reset columns",
104689
- unGroupBy: "Un-Group by {{label}}",
104678
+ unGroupBy: "Un-group by {{label}}",
104690
104679
  groupBy: "Group by {{label}}"
104691
104680
  },
104692
104681
  grandTotals: "Grand totals",
@@ -104789,11 +104778,6 @@ var en_CA_default = {
104789
104778
  error: "Sorry, the items couldn't be updated. Try again.",
104790
104779
  placeholderForField: "Enter %{fieldName}",
104791
104780
  selection: "%{count} %{number} selected",
104792
- selection_count: {
104793
- zero: "%{count} items selected",
104794
- one: "%{count} item selected",
104795
- other: "%{count} items selected"
104796
- },
104797
104781
  success: "The items were successfully updated.",
104798
104782
  one: "item",
104799
104783
  many: "items"
@@ -104857,7 +104841,7 @@ var en_CA_default = {
104857
104841
  autoSizeAllColumns: "Autosize all columns",
104858
104842
  hideColumn: "Hide column",
104859
104843
  resetColumns: "Reset columns",
104860
- unGroupBy: "Un-Group by {{label}}",
104844
+ unGroupBy: "Un-group by {{label}}",
104861
104845
  groupBy: "Group by {{label}}"
104862
104846
  },
104863
104847
  grandTotals: "Grand totals",
@@ -104960,11 +104944,6 @@ var en_GB_default = {
104960
104944
  error: "Sorry, the items couldn't be updated. Try again.",
104961
104945
  placeholderForField: "Enter %{fieldName}",
104962
104946
  selection: "%{count} %{number} selected",
104963
- selection_count: {
104964
- zero: "%{count} items selected",
104965
- one: "%{count} item selected",
104966
- other: "%{count} items selected"
104967
- },
104968
104947
  success: "The items were successfully updated.",
104969
104948
  one: "item",
104970
104949
  many: "items"
@@ -105302,11 +105281,6 @@ var es_ES_default = {
105302
105281
  error: "No se han podido actualizar los elementos. Int\xE9ntelo de nuevo.",
105303
105282
  placeholderForField: "Introducir %{fieldName}",
105304
105283
  selection: "%{count} %{number} seleccionados",
105305
- selection_count: {
105306
- zero: "%{count} elementos seleccionados",
105307
- one: "%{count} elemento seleccionado",
105308
- other: "%{count} elementos seleccionados"
105309
- },
105310
105284
  success: "Los elementos se han actualizado correctamente.",
105311
105285
  one: "elemento",
105312
105286
  many: "elementos"
@@ -105457,7 +105431,7 @@ var es_default = {
105457
105431
  title: "No hay \xEDtems para mostrar en este momento",
105458
105432
  itemsTitle: "No hay %{itemsLabel} para mostrar en este momento",
105459
105433
  tooltip: "El bot\xF3n %{featureName} se habilitar\xE1 una vez que agregue informaci\xF3n a la %{tableName}.",
105460
- searchTooltip: "La b\xFAsqueda se habilitar\xE1 una vez que agregue informaci\xF3n a la %{tableName}.",
105434
+ searchTooltip: "La b\xFAsqueda se habilitar\xE1 una vez que agregue informaci\xF3n a la %{tableName}",
105461
105435
  featureFilter: "Filtro",
105462
105436
  featureQuickFilter: "Filtro r\xE1pido",
105463
105437
  featureGroupBy: "Agrupar por",
@@ -105470,14 +105444,9 @@ var es_default = {
105470
105444
  bulkEdit: "Edici\xF3n masiva",
105471
105445
  cancel: "Cancelar",
105472
105446
  editValues: "Editar valores",
105473
- error: "Lo sentimos, no se pudieron actualizar los \xEDtems. Vuelva a intentarlo.",
105447
+ error: "Lo sentimos, no se pudieron actualizar los \xEDtems. Int\xE9ntelo de nuevo.",
105474
105448
  placeholderForField: "Ingrese %{fieldName}",
105475
105449
  selection: "%{count} %{number} seleccionado",
105476
- selection_count: {
105477
- zero: "%{count} \xEDtems seleccionados",
105478
- one: "%{count} \xEDtem seleccionado",
105479
- other: "%{count} \xEDtems seleccionados"
105480
- },
105481
105450
  success: "Los \xEDtems se actualizaron correctamente.",
105482
105451
  one: "\xEDtem",
105483
105452
  many: "\xEDtems"
@@ -105641,14 +105610,9 @@ var fr_CA_default = {
105641
105610
  bulkEdit: "Modifier en bloc",
105642
105611
  cancel: "Annuler",
105643
105612
  editValues: "Modifier les valeurs",
105644
- error: "D\xE9sol\xE9, les items n'ont pas pu \xEAtre mis \xE0 jour. R\xE9essayer.",
105613
+ error: "D\xE9sol\xE9, les items n'ont pas pu \xEAtre mis \xE0 jour. Veuillez r\xE9essayer.",
105645
105614
  placeholderForField: "Entrez %{fieldName}",
105646
105615
  selection: "%{count} %{number} s\xE9lectionn\xE9",
105647
- selection_count: {
105648
- zero: "%{count}\xA0items s\xE9lectionn\xE9s",
105649
- one: "%{count}\xA0item s\xE9lectionn\xE9",
105650
- other: "%{count}\xA0items s\xE9lectionn\xE9s"
105651
- },
105652
105616
  success: "Les items ont \xE9t\xE9 mis \xE0 jour avec succ\xE8s.",
105653
105617
  one: "Item",
105654
105618
  many: "items"
@@ -105771,7 +105735,7 @@ var fr_CA_default = {
105771
105735
  },
105772
105736
  filterRenders: {
105773
105737
  dateFilter: {
105774
- single: "Seul",
105738
+ single: "Unique",
105775
105739
  range: "Intervalle"
105776
105740
  }
105777
105741
  },
@@ -105812,14 +105776,9 @@ var fr_FR_default = {
105812
105776
  bulkEdit: "Modifier en masse",
105813
105777
  cancel: "Annuler",
105814
105778
  editValues: "Modifier les valeurs",
105815
- error: "D\xE9sol\xE9, les \xE9l\xE9ments n'ont pas pu \xEAtre mis \xE0 jour. R\xE9essayez.",
105779
+ error: "D\xE9sol\xE9, les \xE9l\xE9ments n'ont pas pu \xEAtre mis \xE0 jour. Veuillez r\xE9essayer.",
105816
105780
  placeholderForField: "Saisissez %{fieldName}",
105817
105781
  selection: "%{count} %{number} s\xE9lectionn\xE9",
105818
- selection_count: {
105819
- zero: "%{count}\xA0\xE9l\xE9ments s\xE9lectionn\xE9s",
105820
- one: "%{count}\xA0\xE9l\xE9ment s\xE9lectionn\xE9",
105821
- other: "%{count}\xA0\xE9l\xE9ments s\xE9lectionn\xE9s"
105822
- },
105823
105782
  success: "Les \xE9l\xE9ments ont bien \xE9t\xE9 mis \xE0 jour.",
105824
105783
  one: "\xE9l\xE9ment",
105825
105784
  many: "\xE9l\xE9ments"
@@ -105986,11 +105945,6 @@ var is_IS_default = {
105986
105945
  error: "\xDEv\xED mi\xF0ur var ekki h\xE6gt a\xF0 uppf\xE6ra atri\xF0in. Reyndu aftur.",
105987
105946
  placeholderForField: "Sl\xE1\xF0u inn %{fieldName}",
105988
105947
  selection: "%{count} %{number} valinn",
105989
- selection_count: {
105990
- zero: "%{count} atri\xF0i valin",
105991
- one: "%{count} atri\xF0i vali\xF0",
105992
- other: "%{count} atri\xF0i valin"
105993
- },
105994
105948
  success: "Atri\xF0in voru uppf\xE6r\xF0.",
105995
105949
  one: "Atri\xF0i",
105996
105950
  many: "Hlutir"
@@ -106157,11 +106111,6 @@ var ja_JP_default = {
106157
106111
  error: "\u7533\u3057\u8A33\u3042\u308A\u307E\u305B\u3093\u304C\u3001\u9805\u76EE\u3092\u66F4\u65B0\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u518D\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002",
106158
106112
  placeholderForField: "%{fieldName}\u3092\u5165\u529B",
106159
106113
  selection: "%{count}%{number}\u3092\u9078\u629E\u3057\u307E\u3057\u305F",
106160
- selection_count: {
106161
- zero: "%{count}\u500B\u306E\u9805\u76EE\u3092\u9078\u629E\u3057\u307E\u3057\u305F",
106162
- one: "%{count}\u500B\u306E\u9805\u76EE\u3092\u9078\u629E\u3057\u307E\u3057\u305F",
106163
- other: "%{count}\u500B\u306E\u9805\u76EE\u3092\u9078\u629E\u3057\u307E\u3057\u305F"
106164
- },
106165
106114
  success: "\u9805\u76EE\u3092\u6B63\u5E38\u306B\u66F4\u65B0\u3057\u307E\u3057\u305F\u3002",
106166
106115
  one: "\u9805\u76EE",
106167
106116
  many: "\u9805\u76EE"
@@ -106328,11 +106277,6 @@ var pl_PL_default = {
106328
106277
  error: "Przepraszamy, nie mo\u017Cna zaktualizowa\u0107 pozycji. Spr\xF3buj ponownie.",
106329
106278
  placeholderForField: "Wprowad\u017A %{fieldName}",
106330
106279
  selection: "Wybrano %{count} %{number}",
106331
- selection_count: {
106332
- zero: "Wybrano pozycje: %{count}",
106333
- one: "Wybrano pozycji: %{count}",
106334
- other: "Wybrano pozycje: %{count}"
106335
- },
106336
106280
  success: "Pozycje zosta\u0142y pomy\u015Blnie zaktualizowane.",
106337
106281
  one: "pozycja",
106338
106282
  many: "pozycje"
@@ -106667,14 +106611,9 @@ var pt_BR_default = {
106667
106611
  bulkEdit: "Edi\xE7\xE3o em Massa",
106668
106612
  cancel: "Cancelar",
106669
106613
  editValues: "Editar Valores",
106670
- error: "Lamentamos, mas n\xE3o foi poss\xEDvel atualizar os itens. Tente novamente.",
106614
+ error: "Sentimos muito, mas n\xE3o foi poss\xEDvel atualizar os itens. Tente novamente.",
106671
106615
  placeholderForField: "Digite %{fieldName}",
106672
106616
  selection: "%{count} %{number} selecionado",
106673
- selection_count: {
106674
- zero: "%{count} itens selecionados",
106675
- one: "%{count} item selecionado",
106676
- other: "%{count} itens selecionados"
106677
- },
106678
106617
  success: "Os itens foram atualizados com sucesso.",
106679
106618
  one: "item",
106680
106619
  many: "itens"
@@ -106838,14 +106777,9 @@ var th_TH_default = {
106838
106777
  bulkEdit: "\u0E01\u0E32\u0E23\u0E41\u0E01\u0E49\u0E44\u0E02\u0E41\u0E1A\u0E1A\u0E01\u0E25\u0E38\u0E48\u0E21",
106839
106778
  cancel: "\u0E22\u0E01\u0E40\u0E25\u0E34\u0E01",
106840
106779
  editValues: "\u0E41\u0E01\u0E49\u0E44\u0E02\u0E04\u0E48\u0E32",
106841
- error: "\u0E02\u0E2D\u0E2D\u0E20\u0E31\u0E22 \u0E44\u0E21\u0E48\u0E2A\u0E32\u0E21\u0E32\u0E23\u0E16\u0E2D\u0E31\u0E1B\u0E40\u0E14\u0E15\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23\u0E44\u0E14\u0E49 \u0E42\u0E1B\u0E23\u0E14\u0E25\u0E2D\u0E07\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07",
106780
+ error: "\u0E02\u0E2D\u0E2D\u0E20\u0E31\u0E22 \u0E44\u0E21\u0E48\u0E2A\u0E32\u0E21\u0E32\u0E23\u0E16\u0E2D\u0E31\u0E1B\u0E40\u0E14\u0E15\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23\u0E44\u0E14\u0E49 \u0E25\u0E2D\u0E07\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07.",
106842
106781
  placeholderForField: "\u0E1B\u0E49\u0E2D\u0E19 %{fieldName}",
106843
106782
  selection: "%{count} %{number} \u0E17\u0E35\u0E48\u0E40\u0E25\u0E37\u0E2D\u0E01",
106844
- selection_count: {
106845
- zero: "\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E41\u0E25\u0E49\u0E27 %{count} \u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",
106846
- one: "\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E41\u0E25\u0E49\u0E27 %{count} \u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",
106847
- other: "\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E41\u0E25\u0E49\u0E27 %{count} \u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"
106848
- },
106849
106783
  success: "\u0E2D\u0E31\u0E1B\u0E40\u0E14\u0E15\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23\u0E2A\u0E33\u0E40\u0E23\u0E47\u0E08\u0E41\u0E25\u0E49\u0E27",
106850
106784
  one: "\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",
106851
106785
  many: "\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"
@@ -107012,11 +106946,6 @@ var zh_SG_default = {
107012
106946
  error: "\u62B1\u6B49\uFF0C\u65E0\u6CD5\u66F4\u65B0\u6B64\u9879\u3002\u8BF7\u91CD\u8BD5\u3002",
107013
106947
  placeholderForField: "\u8F93\u5165 %{fieldName}",
107014
106948
  selection: "\u5DF2\u9009\u62E9 %{count} %{number}",
107015
- selection_count: {
107016
- zero: "\u5DF2\u9009\u62E9 %{count} \u9879",
107017
- one: "\u5DF2\u9009\u62E9 %{count} \u9879",
107018
- other: "\u5DF2\u9009\u62E9 %{count} \u9879"
107019
- },
107020
106949
  success: "\u5DF2\u6210\u529F\u66F4\u65B0\u8FD9\u4E9B\u9879\u3002",
107021
106950
  one: "\u9879",
107022
106951
  many: "\u9879"
@@ -108136,8 +108065,7 @@ var DataTable = ({
108136
108065
  showExpandCollapseAllToggle,
108137
108066
  translations: translations2 = {},
108138
108067
  enableCellTextSelection,
108139
- localStoragePersistenceKey,
108140
- enableCDN
108068
+ localStoragePersistenceKey
108141
108069
  }) => {
108142
108070
  const initialTableConfig = localStoragePersistenceKey && storage.local.getItem(localStoragePersistenceKey) || _initialTableConfig;
108143
108071
  const onServerSideDataRequestRef = React80.useRef(onServerSideDataRequest);
@@ -108149,28 +108077,14 @@ var DataTable = ({
108149
108077
  );
108150
108078
  const contextPanel = useContextPanel();
108151
108079
  const clientI18n = useI18nContext();
108152
- const isCDNEnabled = isCDNFeatureFlagEnabled(clientI18n, enableCDN);
108153
- const cdnTranslations = useRequestTranslations(
108154
- {
108155
- locale: clientI18n.locale,
108156
- type: "file",
108157
- absolute_file_path: (locale) => `core/packages/data-table/src/locales/${locale}.json`
108158
- },
108159
- { en: translations.en, pseudo: translations.pseudo },
108160
- {
108161
- oldTranslations: translations,
108162
- enableCDN: isCDNEnabled
108163
- }
108164
- );
108165
108080
  const internalI18n = useI18n({
108166
- locale: clientI18n.locale,
108081
+ ...clientI18n,
108167
108082
  translations: mergeDeepLeft(
108168
108083
  mergeDeepLeft(clientI18n.translations, {
108169
108084
  [clientI18n.locale]: translations2
108170
108085
  }),
108171
- cdnTranslations.translations
108172
- ),
108173
- enableCDN: isCDNEnabled
108086
+ translations
108087
+ )
108174
108088
  });
108175
108089
  const rowSelectionRef = React80.useRef({
108176
108090
  affectedRows: {},
@@ -108859,7 +108773,7 @@ var Table = (props) => {
108859
108773
  (acc, column3) => acc + column3.width,
108860
108774
  0
108861
108775
  );
108862
- const currentPinnedColumnMaxWidth = tableWidth - totalPinnedWidth + column2.actualWidth - 50;
108776
+ const currentPinnedColumnMaxWidth = tableWidth - totalPinnedWidth + column2.getActualWidth() - 50;
108863
108777
  column2.maxWidth = currentPinnedColumnMaxWidth;
108864
108778
  }
108865
108779
  },
@@ -109422,14 +109336,14 @@ function ClientSideFilterInner(props) {
109422
109336
  const { Component: Component4, columnDefinition, onChange, options, value } = props;
109423
109337
  const filterHeading = columnDefinition.filterProps?.getFilterHeadingText?.(columnDefinition) ?? columnDefinition.headerName;
109424
109338
  const filterOptions = React80.useMemo(() => options ?? [], [options]);
109425
- return /* @__PURE__ */ React80.createElement(Box, { as: "li", display: "block", paddingBottom: "xl", style: { width: "100%" } }, filterHeading ? /* @__PURE__ */ React80.createElement(
109339
+ return /* @__PURE__ */ React80.createElement(Box, { as: "li", display: "block", paddingBottom: "xl", style: { width: "100%" } }, filterHeading && /* @__PURE__ */ React80.createElement(
109426
109340
  Label$1,
109427
109341
  {
109428
109342
  "data-qa": `data-table-filter-heading-${columnDefinition.field}`,
109429
109343
  id: `data-table-filter-heading-${columnDefinition.field}`
109430
109344
  },
109431
- filterHeading
109432
- ) : null, /* @__PURE__ */ React80.createElement(
109345
+ /* @__PURE__ */ React80.createElement(React80.Fragment, null, filterHeading)
109346
+ ), /* @__PURE__ */ React80.createElement(
109433
109347
  Component4,
109434
109348
  {
109435
109349
  "data-qa": `data-table-filter-input-${columnDefinition.field}`,
@@ -110423,58 +110337,60 @@ var getSuperSelectFilterPreset = (columnDefinition) => {
110423
110337
  const isValueEmpty = ["", null, void 0].includes(
110424
110338
  ctx.state.value
110425
110339
  );
110426
- return /* @__PURE__ */ React80.createElement(UNSAFE_StyledSuperSelectLabel, { $hoverable: false }, typeof getValueLabel_ === "function" ? getValueLabel_(ctx.state.value) : getValueLabel(
110340
+ return /* @__PURE__ */ React80.createElement(UNSAFE_StyledSuperSelectLabel, { $hoverable: false }, /* @__PURE__ */ React80.createElement(React80.Fragment, null, typeof getValueLabel_ === "function" ? getValueLabel_(ctx.state.value) : getValueLabel(
110427
110341
  isValueEmpty,
110428
110342
  ctx.state.selectedLabel,
110429
110343
  ctx.config.placeholder,
110430
110344
  filterName
110431
- ));
110345
+ )));
110432
110346
  }),
110433
- TriggerContainer: React80.forwardRef((props, ref) => {
110434
- const ctx = UNSAFE_useSuperSelectContext();
110435
- if (!Array.isArray(ctx.state.value)) {
110347
+ TriggerContainer: React80.forwardRef(
110348
+ (props, ref) => {
110349
+ const ctx = UNSAFE_useSuperSelectContext();
110350
+ if (!Array.isArray(ctx.state.value)) {
110351
+ return /* @__PURE__ */ React80.createElement(
110352
+ UNSAFE_StyledSuperSelectTrigger,
110353
+ {
110354
+ $block: ctx.config.block,
110355
+ ...props,
110356
+ ref
110357
+ }
110358
+ );
110359
+ }
110436
110360
  return /* @__PURE__ */ React80.createElement(
110437
- UNSAFE_StyledSuperSelectTrigger,
110361
+ Popover,
110438
110362
  {
110439
- $block: ctx.config.block,
110440
- ...props,
110441
- ref
110442
- }
110363
+ placement: "top",
110364
+ trigger: ctx.state.value.length > 1 ? "hover" : "none",
110365
+ overlay: /* @__PURE__ */ React80.createElement(StyledFilterPresetPopoverContent, null, /* @__PURE__ */ React80.createElement(Typography, null, ctx.state.value.map((v) => {
110366
+ const option = ctx.state.options.find(
110367
+ (option2) => ctx.option.value(option2) === v
110368
+ );
110369
+ return option ? ctx.option.label(option) : "";
110370
+ }).join(", ")))
110371
+ },
110372
+ /* @__PURE__ */ React80.createElement(
110373
+ UNSAFE_StyledSuperSelectTrigger,
110374
+ {
110375
+ $block: ctx.config.block,
110376
+ ...props,
110377
+ ref
110378
+ }
110379
+ )
110443
110380
  );
110444
110381
  }
110445
- return /* @__PURE__ */ React80.createElement(
110446
- Popover,
110447
- {
110448
- placement: "top",
110449
- trigger: ctx.state.value.length > 1 ? "hover" : "none",
110450
- overlay: /* @__PURE__ */ React80.createElement(StyledFilterPresetPopoverContent, null, /* @__PURE__ */ React80.createElement(Typography, null, ctx.state.value.map((v) => {
110451
- const option = ctx.state.options.find(
110452
- (option2) => ctx.option.value(option2) === v
110453
- );
110454
- return option ? ctx.option.label(option) : "";
110455
- }).join(", ")))
110456
- },
110457
- /* @__PURE__ */ React80.createElement(
110458
- UNSAFE_StyledSuperSelectTrigger,
110459
- {
110460
- $block: ctx.config.block,
110461
- ...props,
110462
- ref
110463
- }
110464
- )
110465
- );
110466
- }),
110382
+ ),
110467
110383
  MultiValueContainer: () => {
110468
110384
  const ctx = UNSAFE_useSuperSelectContext();
110469
110385
  if (Array.isArray(ctx.state.value)) {
110470
110386
  const isValueEmpty = !ctx.state.value.length;
110471
110387
  const value = ctx.state.value.length > 1 ? `(${ctx.state.value.length})` : ctx.state.value.length === 1 ? `${ctx.state.selectedLabel}` : "";
110472
- return /* @__PURE__ */ React80.createElement(UNSAFE_StyledSuperSelectLabel, { $hoverable: false }, typeof getValueLabel_ === "function" ? getValueLabel_(ctx.state.value) : getValueLabel(
110388
+ return /* @__PURE__ */ React80.createElement(UNSAFE_StyledSuperSelectLabel, { $hoverable: false }, /* @__PURE__ */ React80.createElement(React80.Fragment, null, typeof getValueLabel_ === "function" ? getValueLabel_(ctx.state.value) : getValueLabel(
110473
110389
  isValueEmpty,
110474
110390
  value,
110475
110391
  ctx.config.placeholder,
110476
110392
  filterName
110477
- ));
110393
+ )));
110478
110394
  }
110479
110395
  return /* @__PURE__ */ React80.createElement("div", null, "Value is not an array");
110480
110396
  }
@@ -111006,7 +110922,7 @@ var ClientSideQuickFilters = ({ overlayMatchesTriggerWidth }) => {
111006
110922
  if (!colDef) {
111007
110923
  return null;
111008
110924
  }
111009
- return /* @__PURE__ */ React80.createElement(StyledFilterTokenWrapper, { key: filter.field }, /* @__PURE__ */ React80.createElement(UNSAFE_FilterToken, null, /* @__PURE__ */ React80.createElement(UNSAFE_FilterToken.Label, null, getFilterTokenText(colDef, filter.filterValues)), /* @__PURE__ */ React80.createElement(
110925
+ return /* @__PURE__ */ React80.createElement(StyledFilterTokenWrapper, { key: filter.field }, /* @__PURE__ */ React80.createElement(UNSAFE_FilterToken, null, /* @__PURE__ */ React80.createElement(UNSAFE_FilterToken.Label, null, /* @__PURE__ */ React80.createElement(React80.Fragment, null, getFilterTokenText(colDef, filter.filterValues))), /* @__PURE__ */ React80.createElement(
111010
110926
  UNSAFE_FilterToken.Remove,
111011
110927
  {
111012
110928
  onClick: () => tableRef?.current?.removeFilter(filter.field)
@@ -111101,10 +111017,10 @@ var ServerSideQuickFilters = ({ overlayMatchesTriggerWidth }) => {
111101
111017
  return null;
111102
111018
  }
111103
111019
  const filter = getListFilter(fieldName);
111104
- return /* @__PURE__ */ React80.createElement(StyledFilterTokenWrapper, { key: fieldName }, /* @__PURE__ */ React80.createElement(UNSAFE_FilterToken, null, /* @__PURE__ */ React80.createElement(UNSAFE_FilterToken.Label, null, getFilterTokenText(
111020
+ return /* @__PURE__ */ React80.createElement(StyledFilterTokenWrapper, { key: fieldName }, /* @__PURE__ */ React80.createElement(UNSAFE_FilterToken, null, /* @__PURE__ */ React80.createElement(UNSAFE_FilterToken.Label, null, /* @__PURE__ */ React80.createElement(React80.Fragment, null, getFilterTokenText(
111105
111021
  colDef,
111106
111022
  colDef.filterRenderer === DateFilterRenderer_default ? filter.value : filter.selected
111107
- )), /* @__PURE__ */ React80.createElement(
111023
+ ))), /* @__PURE__ */ React80.createElement(
111108
111024
  UNSAFE_FilterToken.Remove,
111109
111025
  {
111110
111026
  "data-qa": "data-table-quick-filter-remove-token",
@@ -111352,8 +111268,7 @@ var ClientSideDataTable = ({
111352
111268
  onTableConfigChange,
111353
111269
  translations: translations2 = {},
111354
111270
  enableCellTextSelection,
111355
- localStoragePersistenceKey,
111356
- enableCDN
111271
+ localStoragePersistenceKey
111357
111272
  }) => {
111358
111273
  return /* @__PURE__ */ React80.createElement(
111359
111274
  DataTable,
@@ -111371,8 +111286,7 @@ var ClientSideDataTable = ({
111371
111286
  translations: translations2,
111372
111287
  localStoragePersistenceKey,
111373
111288
  customBulkEditorFields,
111374
- enableCellTextSelection,
111375
- enableCDN
111289
+ enableCellTextSelection
111376
111290
  },
111377
111291
  children
111378
111292
  );
@@ -115762,8 +115676,7 @@ var ServerSideDataTable = ({
115762
115676
  enableCellTextSelection,
115763
115677
  showExpandCollapseAllToggle,
115764
115678
  translations: translations2 = {},
115765
- localStoragePersistenceKey,
115766
- enableCDN
115679
+ localStoragePersistenceKey
115767
115680
  }) => {
115768
115681
  return /* @__PURE__ */ React80.createElement(
115769
115682
  DataTable,
@@ -115782,8 +115695,7 @@ var ServerSideDataTable = ({
115782
115695
  translations: translations2,
115783
115696
  customBulkEditorFields,
115784
115697
  enableCellTextSelection,
115785
- localStoragePersistenceKey,
115786
- enableCDN
115698
+ localStoragePersistenceKey
115787
115699
  },
115788
115700
  children
115789
115701
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@procore/data-table",
3
- "version": "14.31.0-cdn.0",
3
+ "version": "14.32.0",
4
4
  "description": "Complex data grid built on top of ag-grid, with DST components and styles.",
5
5
  "type": "module",
6
6
  "main": "dist/legacy/index.cjs",
@@ -76,13 +76,12 @@
76
76
  "@procore/labs-financials-utils": ">=3.0.1 < 5",
77
77
  "react": ">=16.8.0 < 19",
78
78
  "react-dom": ">=16.8.0 < 19",
79
- "styled-components": ">= 5.1.1 < 6"
79
+ "styled-components": ">= 5.1.1 < 7"
80
80
  },
81
81
  "dependencies": {
82
- "@procore/cdn-translations": "0.1.9",
83
- "@procore/error-pages": "0.2.2",
84
- "@procore/labs-datetime-select": "0.1.2",
85
- "@procore/labs-group-by-select": "4.0.1",
82
+ "@procore/error-pages": "0.2.3",
83
+ "@procore/labs-datetime-select": "0.1.3",
84
+ "@procore/labs-group-by-select": "4.1.0",
86
85
  "@procore/toast-alert": "5.1.1",
87
86
  "@procore/web-sdk-storage": "^0.1.0",
88
87
  "classnames": "2.5.1",
@@ -114,7 +113,7 @@
114
113
  "@procore/core-css": "10.17.0",
115
114
  "@procore/core-icons": "12.6.1",
116
115
  "@procore/core-prettier": "10.2.0",
117
- "@procore/core-react": "12.21.2-cdn.0",
116
+ "@procore/core-react": "12.22.0",
118
117
  "@procore/eslint-config": "10.0.0",
119
118
  "@procore/globalization-toolkit": "3.1.0",
120
119
  "@procore/labs-financials-utils": "4.3.1",
@@ -128,16 +127,14 @@
128
127
  "@testing-library/cypress": "10.0.1",
129
128
  "@testing-library/dom": "8.20.0",
130
129
  "@testing-library/jest-dom": "5.16.4",
131
- "@testing-library/react": "11.0.4",
132
- "@testing-library/react-hooks": "8.0.1",
130
+ "@testing-library/react": "16.3.0",
133
131
  "@testing-library/user-event": "13.1.5",
134
132
  "@types/lodash.debounce": "4.0.7",
135
133
  "@types/lodash.isequal": "4.5.0",
136
134
  "@types/ramda": "0.28.23",
137
- "@types/react": "17.0.55",
138
- "@types/react-dom": "17.0.19",
135
+ "@types/react": "18.3.1",
136
+ "@types/react-dom": "18.3.1",
139
137
  "@types/safe-json-stringify": "^1.1.2",
140
- "@types/styled-components": "5.1.26",
141
138
  "@types/testing-library__jest-dom": "5.14.5",
142
139
  "@typescript-eslint/eslint-plugin": "5.48.2",
143
140
  "@typescript-eslint/parser": "5.48.1",
@@ -164,8 +161,8 @@
164
161
  "mocha-junit-reporter": "^2.2.1",
165
162
  "mochawesome": "^7.1.3",
166
163
  "postcss-modules": "^6.0.0",
167
- "react": "17.0.2",
168
- "react-dom": "17.0.2",
164
+ "react": "18.3.1",
165
+ "react-dom": "18.3.1",
169
166
  "rimraf": "3.0.2",
170
167
  "safe-json-stringify": "^1.2.0",
171
168
  "sass": "1.57.1",
@@ -173,7 +170,7 @@
173
170
  "start-server-and-test": "1.15.4",
174
171
  "storybook": "^7.5.3",
175
172
  "style-loader": "3.3.1",
176
- "styled-components": "5.3.9",
173
+ "styled-components": "6.1.18",
177
174
  "tsup": "^8.4.0",
178
175
  "typescript": "^4.9.5"
179
176
  }