@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';
@@ -52616,9 +52615,6 @@ var Renderer6 = ({
52616
52615
  },
52617
52616
  [(_e = columnDefinition.cellRendererParams) == null ? void 0 : _e.getInitials]
52618
52617
  );
52619
- React80.useEffect(() => {
52620
- setFullCellView(rowHeight === rowSize.lg || rowHeight === rowSize.md);
52621
- }, [rowHeight]);
52622
52618
  const getPersonNameWithCompany = React80.useCallback(
52623
52619
  (person) => {
52624
52620
  const name = getPersonName(person);
@@ -52627,6 +52623,9 @@ var Renderer6 = ({
52627
52623
  },
52628
52624
  [getCompanyName, getPersonName]
52629
52625
  );
52626
+ React80.useEffect(() => {
52627
+ setFullCellView(rowHeight === rowSize.lg || rowHeight === rowSize.md);
52628
+ }, [rowHeight]);
52630
52629
  const namesWithCompany = React80.useMemo(
52631
52630
  () => getPeople().map(getPersonNameWithCompany).join(", "),
52632
52631
  [getPeople, getPersonNameWithCompany]
@@ -54001,7 +54000,7 @@ var NumberFilterRenderer = React80.memo(
54001
54000
  return {
54002
54001
  type: prev == null ? void 0 : prev.type,
54003
54002
  filter: prev == null ? void 0 : prev.filter,
54004
- filterTo: inputValue
54003
+ filterTo: inputValue !== "" ? Number(inputValue) : void 0
54005
54004
  };
54006
54005
  });
54007
54006
  if (inputValue === void 0 || inputValue === "") {
@@ -54011,7 +54010,7 @@ var NumberFilterRenderer = React80.memo(
54011
54010
  return {
54012
54011
  type: prev == null ? void 0 : prev.type,
54013
54012
  filter: prev == null ? void 0 : prev.filter,
54014
- filterTo: inputValue
54013
+ filterTo: Number(inputValue)
54015
54014
  };
54016
54015
  });
54017
54016
  }, []);
@@ -54279,7 +54278,7 @@ var ServerSideFilter = ({
54279
54278
  "data-qa": `data-table-filter-heading-${fieldName}`,
54280
54279
  id: `data-table-filter-heading-${fieldName}`
54281
54280
  },
54282
- filterHeading
54281
+ typeof filterHeading === "function" ? filterHeading({}) : filterHeading
54283
54282
  ) : null,
54284
54283
  /* @__PURE__ */ React80.createElement(
54285
54284
  Component4,
@@ -104613,11 +104612,6 @@ var de_DE_default = {
104613
104612
  error: "Entschuldigung, die Elemente konnten nicht aktualisiert werden. Versuchen Sie es noch einmal.",
104614
104613
  placeholderForField: "%{fieldName} eingeben",
104615
104614
  selection: "%{count} %{number} ausgew\xE4hlt",
104616
- selection_count: {
104617
- zero: "%{count} Elemente ausgew\xE4hlt",
104618
- one: "%{count} Element ausgew\xE4hlt",
104619
- other: "%{count} Elemente ausgew\xE4hlt"
104620
- },
104621
104615
  success: "Die Elemente wurden erfolgreich aktualisiert.",
104622
104616
  one: "Element",
104623
104617
  many: "Elemente"
@@ -104784,11 +104778,6 @@ var en_AU_default = {
104784
104778
  error: "Sorry, the items couldn't be updated. Try again.",
104785
104779
  placeholderForField: "Enter %{fieldName}",
104786
104780
  selection: "%{count} %{number} selected",
104787
- selection_count: {
104788
- zero: "%{count} items selected",
104789
- one: "%{count} item selected",
104790
- other: "%{count} items selected"
104791
- },
104792
104781
  success: "The items were successfully updated.",
104793
104782
  one: "item",
104794
104783
  many: "items"
@@ -104852,7 +104841,7 @@ var en_AU_default = {
104852
104841
  autoSizeAllColumns: "Autosize all columns",
104853
104842
  hideColumn: "Hide column",
104854
104843
  resetColumns: "Reset columns",
104855
- unGroupBy: "Un-Group by {{label}}",
104844
+ unGroupBy: "Un-group by {{label}}",
104856
104845
  groupBy: "Group by {{label}}"
104857
104846
  },
104858
104847
  grandTotals: "Grand totals",
@@ -104955,11 +104944,6 @@ var en_CA_default = {
104955
104944
  error: "Sorry, the items couldn't be updated. Try again.",
104956
104945
  placeholderForField: "Enter %{fieldName}",
104957
104946
  selection: "%{count} %{number} selected",
104958
- selection_count: {
104959
- zero: "%{count} items selected",
104960
- one: "%{count} item selected",
104961
- other: "%{count} items selected"
104962
- },
104963
104947
  success: "The items were successfully updated.",
104964
104948
  one: "item",
104965
104949
  many: "items"
@@ -105023,7 +105007,7 @@ var en_CA_default = {
105023
105007
  autoSizeAllColumns: "Autosize all columns",
105024
105008
  hideColumn: "Hide column",
105025
105009
  resetColumns: "Reset columns",
105026
- unGroupBy: "Un-Group by {{label}}",
105010
+ unGroupBy: "Un-group by {{label}}",
105027
105011
  groupBy: "Group by {{label}}"
105028
105012
  },
105029
105013
  grandTotals: "Grand totals",
@@ -105126,11 +105110,6 @@ var en_GB_default = {
105126
105110
  error: "Sorry, the items couldn't be updated. Try again.",
105127
105111
  placeholderForField: "Enter %{fieldName}",
105128
105112
  selection: "%{count} %{number} selected",
105129
- selection_count: {
105130
- zero: "%{count} items selected",
105131
- one: "%{count} item selected",
105132
- other: "%{count} items selected"
105133
- },
105134
105113
  success: "The items were successfully updated.",
105135
105114
  one: "item",
105136
105115
  many: "items"
@@ -105468,11 +105447,6 @@ var es_ES_default = {
105468
105447
  error: "No se han podido actualizar los elementos. Int\xE9ntelo de nuevo.",
105469
105448
  placeholderForField: "Introducir %{fieldName}",
105470
105449
  selection: "%{count} %{number} seleccionados",
105471
- selection_count: {
105472
- zero: "%{count} elementos seleccionados",
105473
- one: "%{count} elemento seleccionado",
105474
- other: "%{count} elementos seleccionados"
105475
- },
105476
105450
  success: "Los elementos se han actualizado correctamente.",
105477
105451
  one: "elemento",
105478
105452
  many: "elementos"
@@ -105623,7 +105597,7 @@ var es_default = {
105623
105597
  title: "No hay \xEDtems para mostrar en este momento",
105624
105598
  itemsTitle: "No hay %{itemsLabel} para mostrar en este momento",
105625
105599
  tooltip: "El bot\xF3n %{featureName} se habilitar\xE1 una vez que agregue informaci\xF3n a la %{tableName}.",
105626
- searchTooltip: "La b\xFAsqueda se habilitar\xE1 una vez que agregue informaci\xF3n a la %{tableName}.",
105600
+ searchTooltip: "La b\xFAsqueda se habilitar\xE1 una vez que agregue informaci\xF3n a la %{tableName}",
105627
105601
  featureFilter: "Filtro",
105628
105602
  featureQuickFilter: "Filtro r\xE1pido",
105629
105603
  featureGroupBy: "Agrupar por",
@@ -105636,14 +105610,9 @@ var es_default = {
105636
105610
  bulkEdit: "Edici\xF3n masiva",
105637
105611
  cancel: "Cancelar",
105638
105612
  editValues: "Editar valores",
105639
- error: "Lo sentimos, no se pudieron actualizar los \xEDtems. Vuelva a intentarlo.",
105613
+ error: "Lo sentimos, no se pudieron actualizar los \xEDtems. Int\xE9ntelo de nuevo.",
105640
105614
  placeholderForField: "Ingrese %{fieldName}",
105641
105615
  selection: "%{count} %{number} seleccionado",
105642
- selection_count: {
105643
- zero: "%{count} \xEDtems seleccionados",
105644
- one: "%{count} \xEDtem seleccionado",
105645
- other: "%{count} \xEDtems seleccionados"
105646
- },
105647
105616
  success: "Los \xEDtems se actualizaron correctamente.",
105648
105617
  one: "\xEDtem",
105649
105618
  many: "\xEDtems"
@@ -105807,14 +105776,9 @@ var fr_CA_default = {
105807
105776
  bulkEdit: "Modifier en bloc",
105808
105777
  cancel: "Annuler",
105809
105778
  editValues: "Modifier les valeurs",
105810
- error: "D\xE9sol\xE9, les items n'ont pas pu \xEAtre mis \xE0 jour. R\xE9essayer.",
105779
+ error: "D\xE9sol\xE9, les items n'ont pas pu \xEAtre mis \xE0 jour. Veuillez r\xE9essayer.",
105811
105780
  placeholderForField: "Entrez %{fieldName}",
105812
105781
  selection: "%{count} %{number} s\xE9lectionn\xE9",
105813
- selection_count: {
105814
- zero: "%{count}\xA0items s\xE9lectionn\xE9s",
105815
- one: "%{count}\xA0item s\xE9lectionn\xE9",
105816
- other: "%{count}\xA0items s\xE9lectionn\xE9s"
105817
- },
105818
105782
  success: "Les items ont \xE9t\xE9 mis \xE0 jour avec succ\xE8s.",
105819
105783
  one: "Item",
105820
105784
  many: "items"
@@ -105937,7 +105901,7 @@ var fr_CA_default = {
105937
105901
  },
105938
105902
  filterRenders: {
105939
105903
  dateFilter: {
105940
- single: "Seul",
105904
+ single: "Unique",
105941
105905
  range: "Intervalle"
105942
105906
  }
105943
105907
  },
@@ -105978,14 +105942,9 @@ var fr_FR_default = {
105978
105942
  bulkEdit: "Modifier en masse",
105979
105943
  cancel: "Annuler",
105980
105944
  editValues: "Modifier les valeurs",
105981
- error: "D\xE9sol\xE9, les \xE9l\xE9ments n'ont pas pu \xEAtre mis \xE0 jour. R\xE9essayez.",
105945
+ error: "D\xE9sol\xE9, les \xE9l\xE9ments n'ont pas pu \xEAtre mis \xE0 jour. Veuillez r\xE9essayer.",
105982
105946
  placeholderForField: "Saisissez %{fieldName}",
105983
105947
  selection: "%{count} %{number} s\xE9lectionn\xE9",
105984
- selection_count: {
105985
- zero: "%{count}\xA0\xE9l\xE9ments s\xE9lectionn\xE9s",
105986
- one: "%{count}\xA0\xE9l\xE9ment s\xE9lectionn\xE9",
105987
- other: "%{count}\xA0\xE9l\xE9ments s\xE9lectionn\xE9s"
105988
- },
105989
105948
  success: "Les \xE9l\xE9ments ont bien \xE9t\xE9 mis \xE0 jour.",
105990
105949
  one: "\xE9l\xE9ment",
105991
105950
  many: "\xE9l\xE9ments"
@@ -106152,11 +106111,6 @@ var is_IS_default = {
106152
106111
  error: "\xDEv\xED mi\xF0ur var ekki h\xE6gt a\xF0 uppf\xE6ra atri\xF0in. Reyndu aftur.",
106153
106112
  placeholderForField: "Sl\xE1\xF0u inn %{fieldName}",
106154
106113
  selection: "%{count} %{number} valinn",
106155
- selection_count: {
106156
- zero: "%{count} atri\xF0i valin",
106157
- one: "%{count} atri\xF0i vali\xF0",
106158
- other: "%{count} atri\xF0i valin"
106159
- },
106160
106114
  success: "Atri\xF0in voru uppf\xE6r\xF0.",
106161
106115
  one: "Atri\xF0i",
106162
106116
  many: "Hlutir"
@@ -106323,11 +106277,6 @@ var ja_JP_default = {
106323
106277
  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",
106324
106278
  placeholderForField: "%{fieldName}\u3092\u5165\u529B",
106325
106279
  selection: "%{count}%{number}\u3092\u9078\u629E\u3057\u307E\u3057\u305F",
106326
- selection_count: {
106327
- zero: "%{count}\u500B\u306E\u9805\u76EE\u3092\u9078\u629E\u3057\u307E\u3057\u305F",
106328
- one: "%{count}\u500B\u306E\u9805\u76EE\u3092\u9078\u629E\u3057\u307E\u3057\u305F",
106329
- other: "%{count}\u500B\u306E\u9805\u76EE\u3092\u9078\u629E\u3057\u307E\u3057\u305F"
106330
- },
106331
106280
  success: "\u9805\u76EE\u3092\u6B63\u5E38\u306B\u66F4\u65B0\u3057\u307E\u3057\u305F\u3002",
106332
106281
  one: "\u9805\u76EE",
106333
106282
  many: "\u9805\u76EE"
@@ -106494,11 +106443,6 @@ var pl_PL_default = {
106494
106443
  error: "Przepraszamy, nie mo\u017Cna zaktualizowa\u0107 pozycji. Spr\xF3buj ponownie.",
106495
106444
  placeholderForField: "Wprowad\u017A %{fieldName}",
106496
106445
  selection: "Wybrano %{count} %{number}",
106497
- selection_count: {
106498
- zero: "Wybrano pozycje: %{count}",
106499
- one: "Wybrano pozycji: %{count}",
106500
- other: "Wybrano pozycje: %{count}"
106501
- },
106502
106446
  success: "Pozycje zosta\u0142y pomy\u015Blnie zaktualizowane.",
106503
106447
  one: "pozycja",
106504
106448
  many: "pozycje"
@@ -106833,14 +106777,9 @@ var pt_BR_default = {
106833
106777
  bulkEdit: "Edi\xE7\xE3o em Massa",
106834
106778
  cancel: "Cancelar",
106835
106779
  editValues: "Editar Valores",
106836
- error: "Lamentamos, mas n\xE3o foi poss\xEDvel atualizar os itens. Tente novamente.",
106780
+ error: "Sentimos muito, mas n\xE3o foi poss\xEDvel atualizar os itens. Tente novamente.",
106837
106781
  placeholderForField: "Digite %{fieldName}",
106838
106782
  selection: "%{count} %{number} selecionado",
106839
- selection_count: {
106840
- zero: "%{count} itens selecionados",
106841
- one: "%{count} item selecionado",
106842
- other: "%{count} itens selecionados"
106843
- },
106844
106783
  success: "Os itens foram atualizados com sucesso.",
106845
106784
  one: "item",
106846
106785
  many: "itens"
@@ -107004,14 +106943,9 @@ var th_TH_default = {
107004
106943
  bulkEdit: "\u0E01\u0E32\u0E23\u0E41\u0E01\u0E49\u0E44\u0E02\u0E41\u0E1A\u0E1A\u0E01\u0E25\u0E38\u0E48\u0E21",
107005
106944
  cancel: "\u0E22\u0E01\u0E40\u0E25\u0E34\u0E01",
107006
106945
  editValues: "\u0E41\u0E01\u0E49\u0E44\u0E02\u0E04\u0E48\u0E32",
107007
- 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",
106946
+ 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.",
107008
106947
  placeholderForField: "\u0E1B\u0E49\u0E2D\u0E19 %{fieldName}",
107009
106948
  selection: "%{count} %{number} \u0E17\u0E35\u0E48\u0E40\u0E25\u0E37\u0E2D\u0E01",
107010
- selection_count: {
107011
- zero: "\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E41\u0E25\u0E49\u0E27 %{count} \u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",
107012
- one: "\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E41\u0E25\u0E49\u0E27 %{count} \u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",
107013
- other: "\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E41\u0E25\u0E49\u0E27 %{count} \u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"
107014
- },
107015
106949
  success: "\u0E2D\u0E31\u0E1B\u0E40\u0E14\u0E15\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23\u0E2A\u0E33\u0E40\u0E23\u0E47\u0E08\u0E41\u0E25\u0E49\u0E27",
107016
106950
  one: "\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",
107017
106951
  many: "\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"
@@ -107178,11 +107112,6 @@ var zh_SG_default = {
107178
107112
  error: "\u62B1\u6B49\uFF0C\u65E0\u6CD5\u66F4\u65B0\u6B64\u9879\u3002\u8BF7\u91CD\u8BD5\u3002",
107179
107113
  placeholderForField: "\u8F93\u5165 %{fieldName}",
107180
107114
  selection: "\u5DF2\u9009\u62E9 %{count} %{number}",
107181
- selection_count: {
107182
- zero: "\u5DF2\u9009\u62E9 %{count} \u9879",
107183
- one: "\u5DF2\u9009\u62E9 %{count} \u9879",
107184
- other: "\u5DF2\u9009\u62E9 %{count} \u9879"
107185
- },
107186
107115
  success: "\u5DF2\u6210\u529F\u66F4\u65B0\u8FD9\u4E9B\u9879\u3002",
107187
107116
  one: "\u9879",
107188
107117
  many: "\u9879"
@@ -108316,8 +108245,7 @@ var DataTable = ({
108316
108245
  showExpandCollapseAllToggle,
108317
108246
  translations: translations2 = {},
108318
108247
  enableCellTextSelection,
108319
- localStoragePersistenceKey,
108320
- enableCDN
108248
+ localStoragePersistenceKey
108321
108249
  }) => {
108322
108250
  const initialTableConfig = localStoragePersistenceKey && storage.local.getItem(localStoragePersistenceKey) || _initialTableConfig;
108323
108251
  const onServerSideDataRequestRef = React80.useRef(onServerSideDataRequest);
@@ -108329,28 +108257,14 @@ var DataTable = ({
108329
108257
  );
108330
108258
  const contextPanel = useContextPanel();
108331
108259
  const clientI18n = useI18nContext();
108332
- const isCDNEnabled = isCDNFeatureFlagEnabled(clientI18n, enableCDN);
108333
- const cdnTranslations = useRequestTranslations(
108334
- {
108335
- locale: clientI18n.locale,
108336
- type: "file",
108337
- absolute_file_path: (locale) => `core/packages/data-table/src/locales/${locale}.json`
108338
- },
108339
- { en: translations.en, pseudo: translations.pseudo },
108340
- {
108341
- oldTranslations: translations,
108342
- enableCDN: isCDNEnabled
108343
- }
108344
- );
108345
108260
  const internalI18n = useI18n({
108346
- locale: clientI18n.locale,
108261
+ ...clientI18n,
108347
108262
  translations: mergeDeepLeft(
108348
108263
  mergeDeepLeft(clientI18n.translations, {
108349
108264
  [clientI18n.locale]: translations2
108350
108265
  }),
108351
- cdnTranslations.translations
108352
- ),
108353
- enableCDN: isCDNEnabled
108266
+ translations
108267
+ )
108354
108268
  });
108355
108269
  const rowSelectionRef = React80.useRef({
108356
108270
  affectedRows: {},
@@ -109067,7 +108981,7 @@ var Table = (props) => {
109067
108981
  (acc, column3) => acc + column3.width,
109068
108982
  0
109069
108983
  );
109070
- const currentPinnedColumnMaxWidth = tableWidth - totalPinnedWidth + column2.actualWidth - 50;
108984
+ const currentPinnedColumnMaxWidth = tableWidth - totalPinnedWidth + column2.getActualWidth() - 50;
109071
108985
  column2.maxWidth = currentPinnedColumnMaxWidth;
109072
108986
  }
109073
108987
  },
@@ -109640,14 +109554,14 @@ function ClientSideFilterInner(props) {
109640
109554
  const { Component: Component4, columnDefinition, onChange, options, value } = props;
109641
109555
  const filterHeading = ((_b = (_a = columnDefinition.filterProps) == null ? void 0 : _a.getFilterHeadingText) == null ? void 0 : _b.call(_a, columnDefinition)) ?? columnDefinition.headerName;
109642
109556
  const filterOptions = React80.useMemo(() => options ?? [], [options]);
109643
- return /* @__PURE__ */ React80.createElement(Box, { as: "li", display: "block", paddingBottom: "xl", style: { width: "100%" } }, filterHeading ? /* @__PURE__ */ React80.createElement(
109557
+ return /* @__PURE__ */ React80.createElement(Box, { as: "li", display: "block", paddingBottom: "xl", style: { width: "100%" } }, filterHeading && /* @__PURE__ */ React80.createElement(
109644
109558
  Label$1,
109645
109559
  {
109646
109560
  "data-qa": `data-table-filter-heading-${columnDefinition.field}`,
109647
109561
  id: `data-table-filter-heading-${columnDefinition.field}`
109648
109562
  },
109649
- filterHeading
109650
- ) : null, /* @__PURE__ */ React80.createElement(
109563
+ /* @__PURE__ */ React80.createElement(React80.Fragment, null, filterHeading)
109564
+ ), /* @__PURE__ */ React80.createElement(
109651
109565
  Component4,
109652
109566
  {
109653
109567
  "data-qa": `data-table-filter-input-${columnDefinition.field}`,
@@ -110649,58 +110563,60 @@ var getSuperSelectFilterPreset = (columnDefinition) => {
110649
110563
  const isValueEmpty = ["", null, void 0].includes(
110650
110564
  ctx.state.value
110651
110565
  );
110652
- return /* @__PURE__ */ React80.createElement(UNSAFE_StyledSuperSelectLabel, { $hoverable: false }, typeof getValueLabel_ === "function" ? getValueLabel_(ctx.state.value) : getValueLabel(
110566
+ return /* @__PURE__ */ React80.createElement(UNSAFE_StyledSuperSelectLabel, { $hoverable: false }, /* @__PURE__ */ React80.createElement(React80.Fragment, null, typeof getValueLabel_ === "function" ? getValueLabel_(ctx.state.value) : getValueLabel(
110653
110567
  isValueEmpty,
110654
110568
  ctx.state.selectedLabel,
110655
110569
  ctx.config.placeholder,
110656
110570
  filterName
110657
- ));
110571
+ )));
110658
110572
  }),
110659
- TriggerContainer: React80.forwardRef((props, ref) => {
110660
- const ctx = UNSAFE_useSuperSelectContext();
110661
- if (!Array.isArray(ctx.state.value)) {
110573
+ TriggerContainer: React80.forwardRef(
110574
+ (props, ref) => {
110575
+ const ctx = UNSAFE_useSuperSelectContext();
110576
+ if (!Array.isArray(ctx.state.value)) {
110577
+ return /* @__PURE__ */ React80.createElement(
110578
+ UNSAFE_StyledSuperSelectTrigger,
110579
+ {
110580
+ $block: ctx.config.block,
110581
+ ...props,
110582
+ ref
110583
+ }
110584
+ );
110585
+ }
110662
110586
  return /* @__PURE__ */ React80.createElement(
110663
- UNSAFE_StyledSuperSelectTrigger,
110587
+ Popover,
110664
110588
  {
110665
- $block: ctx.config.block,
110666
- ...props,
110667
- ref
110668
- }
110589
+ placement: "top",
110590
+ trigger: ctx.state.value.length > 1 ? "hover" : "none",
110591
+ overlay: /* @__PURE__ */ React80.createElement(StyledFilterPresetPopoverContent, null, /* @__PURE__ */ React80.createElement(Typography, null, ctx.state.value.map((v) => {
110592
+ const option = ctx.state.options.find(
110593
+ (option2) => ctx.option.value(option2) === v
110594
+ );
110595
+ return option ? ctx.option.label(option) : "";
110596
+ }).join(", ")))
110597
+ },
110598
+ /* @__PURE__ */ React80.createElement(
110599
+ UNSAFE_StyledSuperSelectTrigger,
110600
+ {
110601
+ $block: ctx.config.block,
110602
+ ...props,
110603
+ ref
110604
+ }
110605
+ )
110669
110606
  );
110670
110607
  }
110671
- return /* @__PURE__ */ React80.createElement(
110672
- Popover,
110673
- {
110674
- placement: "top",
110675
- trigger: ctx.state.value.length > 1 ? "hover" : "none",
110676
- overlay: /* @__PURE__ */ React80.createElement(StyledFilterPresetPopoverContent, null, /* @__PURE__ */ React80.createElement(Typography, null, ctx.state.value.map((v) => {
110677
- const option = ctx.state.options.find(
110678
- (option2) => ctx.option.value(option2) === v
110679
- );
110680
- return option ? ctx.option.label(option) : "";
110681
- }).join(", ")))
110682
- },
110683
- /* @__PURE__ */ React80.createElement(
110684
- UNSAFE_StyledSuperSelectTrigger,
110685
- {
110686
- $block: ctx.config.block,
110687
- ...props,
110688
- ref
110689
- }
110690
- )
110691
- );
110692
- }),
110608
+ ),
110693
110609
  MultiValueContainer: () => {
110694
110610
  const ctx = UNSAFE_useSuperSelectContext();
110695
110611
  if (Array.isArray(ctx.state.value)) {
110696
110612
  const isValueEmpty = !ctx.state.value.length;
110697
110613
  const value = ctx.state.value.length > 1 ? `(${ctx.state.value.length})` : ctx.state.value.length === 1 ? `${ctx.state.selectedLabel}` : "";
110698
- return /* @__PURE__ */ React80.createElement(UNSAFE_StyledSuperSelectLabel, { $hoverable: false }, typeof getValueLabel_ === "function" ? getValueLabel_(ctx.state.value) : getValueLabel(
110614
+ return /* @__PURE__ */ React80.createElement(UNSAFE_StyledSuperSelectLabel, { $hoverable: false }, /* @__PURE__ */ React80.createElement(React80.Fragment, null, typeof getValueLabel_ === "function" ? getValueLabel_(ctx.state.value) : getValueLabel(
110699
110615
  isValueEmpty,
110700
110616
  value,
110701
110617
  ctx.config.placeholder,
110702
110618
  filterName
110703
- ));
110619
+ )));
110704
110620
  }
110705
110621
  return /* @__PURE__ */ React80.createElement("div", null, "Value is not an array");
110706
110622
  }
@@ -111257,7 +111173,7 @@ var ClientSideQuickFilters = ({ overlayMatchesTriggerWidth }) => {
111257
111173
  if (!colDef) {
111258
111174
  return null;
111259
111175
  }
111260
- 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(
111176
+ 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(
111261
111177
  UNSAFE_FilterToken.Remove,
111262
111178
  {
111263
111179
  onClick: () => {
@@ -111356,10 +111272,10 @@ var ServerSideQuickFilters = ({ overlayMatchesTriggerWidth }) => {
111356
111272
  return null;
111357
111273
  }
111358
111274
  const filter = getListFilter(fieldName);
111359
- return /* @__PURE__ */ React80.createElement(StyledFilterTokenWrapper, { key: fieldName }, /* @__PURE__ */ React80.createElement(UNSAFE_FilterToken, null, /* @__PURE__ */ React80.createElement(UNSAFE_FilterToken.Label, null, getFilterTokenText(
111275
+ 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(
111360
111276
  colDef,
111361
111277
  colDef.filterRenderer === DateFilterRenderer_default ? filter.value : filter.selected
111362
- )), /* @__PURE__ */ React80.createElement(
111278
+ ))), /* @__PURE__ */ React80.createElement(
111363
111279
  UNSAFE_FilterToken.Remove,
111364
111280
  {
111365
111281
  "data-qa": "data-table-quick-filter-remove-token",
@@ -111611,8 +111527,7 @@ var ClientSideDataTable = ({
111611
111527
  onTableConfigChange,
111612
111528
  translations: translations2 = {},
111613
111529
  enableCellTextSelection,
111614
- localStoragePersistenceKey,
111615
- enableCDN
111530
+ localStoragePersistenceKey
111616
111531
  }) => {
111617
111532
  return /* @__PURE__ */ React80.createElement(
111618
111533
  DataTable,
@@ -111630,8 +111545,7 @@ var ClientSideDataTable = ({
111630
111545
  translations: translations2,
111631
111546
  localStoragePersistenceKey,
111632
111547
  customBulkEditorFields,
111633
- enableCellTextSelection,
111634
- enableCDN
111548
+ enableCellTextSelection
111635
111549
  },
111636
111550
  children
111637
111551
  );
@@ -116022,8 +115936,7 @@ var ServerSideDataTable = ({
116022
115936
  enableCellTextSelection,
116023
115937
  showExpandCollapseAllToggle,
116024
115938
  translations: translations2 = {},
116025
- localStoragePersistenceKey,
116026
- enableCDN
115939
+ localStoragePersistenceKey
116027
115940
  }) => {
116028
115941
  return /* @__PURE__ */ React80.createElement(
116029
115942
  DataTable,
@@ -116042,8 +115955,7 @@ var ServerSideDataTable = ({
116042
115955
  translations: translations2,
116043
115956
  customBulkEditorFields,
116044
115957
  enableCellTextSelection,
116045
- localStoragePersistenceKey,
116046
- enableCDN
115958
+ localStoragePersistenceKey
116047
115959
  },
116048
115960
  children
116049
115961
  );