@procore/data-table 15.0.0-alpha.4 → 15.0.0-alpha.5

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.
@@ -1164,7 +1164,7 @@ ag-grid, ag-grid-angular, ag-grid-ng2, ag-grid-polymer, ag-grid-aurelia {
1164
1164
  animation-iteration-count: infinite;
1165
1165
  animation-name: ag-shake-left-to-right;
1166
1166
  }
1167
- @keyframes _ag-shake-left-to-right_xxivy_1081 {
1167
+ @keyframes _ag-shake-left-to-right_b1lvr_1081 {
1168
1168
  from {
1169
1169
  padding-left: 6px;
1170
1170
  padding-right: 2px;
@@ -3325,7 +3325,7 @@ input[class^=ag-][type=button]:focus, button[class^=ag-]:focus {
3325
3325
  border-radius: 0.25rem;
3326
3326
  animation: ag-skeleton-loading 1.5s ease-in-out 0.5s infinite;
3327
3327
  }
3328
- @keyframes _ag-skeleton-loading_xxivy_1 {
3328
+ @keyframes _ag-skeleton-loading_b1lvr_1 {
3329
3329
  0% {
3330
3330
  opacity: 1;
3331
3331
  }
@@ -3359,7 +3359,7 @@ input[class^=ag-][type=button]:focus, button[class^=ag-]:focus {
3359
3359
  animation-iteration-count: infinite;
3360
3360
  animation-timing-function: linear;
3361
3361
  }
3362
- @keyframes _spin_xxivy_1 {
3362
+ @keyframes _spin_b1lvr_1 {
3363
3363
  from {
3364
3364
  transform: rotate(0deg);
3365
3365
  }
@@ -5887,6 +5887,9 @@ input[class^=ag-][type=range]:disabled {
5887
5887
  .ag-theme-alpine.ag-theme-alpine .ag-icon-tree-open::before {
5888
5888
  content: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='8px' height='4px'><path d='M0 0H8L4 4L0 0Z' fill='%232066DF'/></svg>");
5889
5889
  }
5890
+ .ag-theme-alpine.ag-theme-alpine .ag-header-cell-resize {
5891
+ right: -5px;
5892
+ }
5890
5893
  .ag-theme-alpine.ag-theme-alpine .ag-header-cell-resize::after {
5891
5894
  width: 1px;
5892
5895
  height: 100%;
@@ -6143,7 +6146,7 @@ input[class^=ag-][type=range]:disabled {
6143
6146
  display: none;
6144
6147
  }
6145
6148
 
6146
- div._contextPanel_xxivy_6626 {
6149
+ div._contextPanel_b1lvr_6629 {
6147
6150
  width: 400px;
6148
6151
  transition: all ease 500ms;
6149
6152
  flex: 0 0 auto;
@@ -6152,7 +6155,7 @@ div._contextPanel_xxivy_6626 {
6152
6155
  border: 1px solid #d6dadc;
6153
6156
  display: flex;
6154
6157
  }
6155
- div._contextPanel--hidden_xxivy_6635 {
6158
+ div._contextPanel--hidden_b1lvr_6638 {
6156
6159
  border: none;
6157
6160
  overflow: hidden;
6158
6161
  padding: 0px;
@@ -6160,51 +6163,51 @@ div._contextPanel--hidden_xxivy_6635 {
6160
6163
  width: 0px;
6161
6164
  }
6162
6165
 
6163
- ._contextPanelWrapper_xxivy_6643 {
6166
+ ._contextPanelWrapper_b1lvr_6646 {
6164
6167
  position: relative;
6165
6168
  flex-grow: 1;
6166
6169
  }
6167
6170
 
6168
- ._contextPanelBody_xxivy_6648 {
6171
+ ._contextPanelBody_b1lvr_6651 {
6169
6172
  width: clamp(380px, 400px, 100%);
6170
6173
  }
6171
6174
 
6172
- ._contextPanel-stickyHeader_xxivy_6652 {
6175
+ ._contextPanel-stickyHeader_b1lvr_6655 {
6173
6176
  background-color: #ffffff;
6174
6177
  position: sticky;
6175
6178
  top: 0;
6176
6179
  z-index: 5;
6177
6180
  }
6178
6181
 
6179
- ._filters-list_xxivy_6659 {
6182
+ ._filters-list_b1lvr_6662 {
6180
6183
  padding: 0;
6181
6184
  margin: 0;
6182
6185
  }
6183
- ._filters-list_xxivy_6659 ol {
6186
+ ._filters-list_b1lvr_6662 ol {
6184
6187
  padding: 0;
6185
6188
  margin: 0;
6186
6189
  }
6187
6190
 
6188
- ._col-drag-column-icon_xxivy_6668 {
6191
+ ._col-drag-column-icon_b1lvr_6671 {
6189
6192
  color: #6a767c;
6190
6193
  }
6191
6194
 
6192
- ._tabular-nums_xxivy_6672 {
6195
+ ._tabular-nums_b1lvr_6675 {
6193
6196
  font-variant-numeric: tabular-nums;
6194
6197
  }`;
6195
6198
  document.head.appendChild(document.createElement("style")).appendChild(document.createTextNode(css));
6196
6199
  var styles_default = {
6197
- "contextPanel": "_contextPanel_xxivy_6626",
6198
- "contextPanel--hidden": "_contextPanel--hidden_xxivy_6635",
6199
- "contextPanelWrapper": "_contextPanelWrapper_xxivy_6643",
6200
- "contextPanelBody": "_contextPanelBody_xxivy_6648",
6201
- "contextPanel-stickyHeader": "_contextPanel-stickyHeader_xxivy_6652",
6202
- "filters-list": "_filters-list_xxivy_6659",
6203
- "col-drag-column-icon": "_col-drag-column-icon_xxivy_6668",
6204
- "tabular-nums": "_tabular-nums_xxivy_6672",
6205
- "ag-shake-left-to-right": "_ag-shake-left-to-right_xxivy_1081",
6206
- "ag-skeleton-loading": "_ag-skeleton-loading_xxivy_1",
6207
- "spin": "_spin_xxivy_1"
6200
+ "contextPanel": "_contextPanel_b1lvr_6629",
6201
+ "contextPanel--hidden": "_contextPanel--hidden_b1lvr_6638",
6202
+ "contextPanelWrapper": "_contextPanelWrapper_b1lvr_6646",
6203
+ "contextPanelBody": "_contextPanelBody_b1lvr_6651",
6204
+ "contextPanel-stickyHeader": "_contextPanel-stickyHeader_b1lvr_6655",
6205
+ "filters-list": "_filters-list_b1lvr_6662",
6206
+ "col-drag-column-icon": "_col-drag-column-icon_b1lvr_6671",
6207
+ "tabular-nums": "_tabular-nums_b1lvr_6675",
6208
+ "ag-shake-left-to-right": "_ag-shake-left-to-right_b1lvr_1081",
6209
+ "ag-skeleton-loading": "_ag-skeleton-loading_b1lvr_1",
6210
+ "spin": "_spin_b1lvr_1"
6208
6211
  };
6209
6212
 
6210
6213
  // src/utils/getCellValueTypographyProps.ts
@@ -8567,6 +8570,10 @@ function ClientSideMultiSelectFilterRenderer({
8567
8570
  value = [],
8568
8571
  ...props
8569
8572
  }) {
8573
+ const filterOptions = React64.useMemo(
8574
+ () => (options ?? []).map((option) => option ?? ""),
8575
+ [options]
8576
+ );
8570
8577
  return /* @__PURE__ */ React64.createElement(
8571
8578
  MultiSelect,
8572
8579
  {
@@ -8582,8 +8589,8 @@ function ClientSideMultiSelectFilterRenderer({
8582
8589
  return getLabel((_a2 = columnDefinition.filterProps) == null ? void 0 : _a2.getLabel, option);
8583
8590
  },
8584
8591
  onChange,
8585
- options,
8586
- value: intersection(value || [], options)
8592
+ options: filterOptions,
8593
+ value: intersection(value || [], filterOptions)
8587
8594
  }
8588
8595
  );
8589
8596
  }
@@ -9024,6 +9031,7 @@ function ServerSideNumberFilterRenderer({
9024
9031
  }
9025
9032
  );
9026
9033
  const prevValueRef = useRef([]);
9034
+ const internalClearRef = useRef(false);
9027
9035
  const debounceTimerRef = useRef(null);
9028
9036
  useEffect(() => {
9029
9037
  return () => {
@@ -9033,9 +9041,10 @@ function ServerSideNumberFilterRenderer({
9033
9041
  };
9034
9042
  }, []);
9035
9043
  useEffect(() => {
9036
- if (prevValueRef.current.length !== 0 && value.length === 0) {
9044
+ if (prevValueRef.current.length > 0 && value.length === 0 && !internalClearRef.current) {
9037
9045
  setLocalFilter({});
9038
9046
  }
9047
+ internalClearRef.current = false;
9039
9048
  prevValueRef.current = value;
9040
9049
  }, [value]);
9041
9050
  const transformToFilterArray = (filter) => {
@@ -9121,12 +9130,19 @@ function ServerSideNumberFilterRenderer({
9121
9130
  clearTimeout(debounceTimerRef.current);
9122
9131
  }
9123
9132
  debounceTimerRef.current = setTimeout(() => {
9124
- if (next.type === "inRange") {
9125
- if (next.value !== void 0 && next.valueTo !== void 0) {
9126
- updateFilter(next);
9127
- }
9128
- } else {
9133
+ const { type, value: value2, valueTo } = next;
9134
+ if (!type) {
9135
+ onChange == null ? void 0 : onChange([]);
9136
+ return;
9137
+ }
9138
+ const isInRange = type === "inRange";
9139
+ const hasValues = isInRange ? value2 !== void 0 && valueTo !== void 0 : value2 !== void 0;
9140
+ if (hasValues) {
9129
9141
  updateFilter(next);
9142
+ } else {
9143
+ internalClearRef.current = true;
9144
+ setLocalFilter(next);
9145
+ onChange == null ? void 0 : onChange([]);
9130
9146
  }
9131
9147
  }, DEBOUNCE_TIME);
9132
9148
  },
@@ -9260,6 +9276,17 @@ function ServerSideMultiNumberFilterRenderer({
9260
9276
  const [returnedFilter] = returnedFilterArray;
9261
9277
  const next = returnedFilter ? { ...returnedFilter, operator: firstFilter.operator } : { operator: firstFilter.operator };
9262
9278
  setFirstFilter(next);
9279
+ const isCleared = !returnedFilter || !isValidFilter(returnedFilter) && !returnedFilter.type;
9280
+ if (isCleared) {
9281
+ if (debounceTimerRef.current) {
9282
+ clearTimeout(debounceTimerRef.current);
9283
+ debounceTimerRef.current = null;
9284
+ }
9285
+ setFirstFilter({ operator: "and" });
9286
+ setSecondFilter({ operator: "and" });
9287
+ onChange == null ? void 0 : onChange([]);
9288
+ return;
9289
+ }
9263
9290
  if (debounceTimerRef.current)
9264
9291
  clearTimeout(debounceTimerRef.current);
9265
9292
  debounceTimerRef.current = setTimeout(() => {
@@ -9278,20 +9305,12 @@ function ServerSideMultiNumberFilterRenderer({
9278
9305
  };
9279
9306
  const fireOnChange = useCallback(
9280
9307
  (f1, f2) => {
9281
- if (!f1.type) {
9282
- onChange == null ? void 0 : onChange([]);
9283
- setFirstFilter({ operator: "and" });
9284
- setSecondFilter({ operator: "and" });
9285
- return;
9286
- }
9287
9308
  const f1Valid = isValidFilter(f1);
9288
9309
  const f2Valid = isValidFilter(f2);
9289
9310
  const values = [f1Valid ? f1 : null, f2Valid ? f2 : null].filter(
9290
9311
  (value2) => value2 !== null
9291
9312
  );
9292
- if (values.length) {
9293
- onChange == null ? void 0 : onChange(values);
9294
- }
9313
+ onChange == null ? void 0 : onChange(values);
9295
9314
  },
9296
9315
  [onChange]
9297
9316
  );
@@ -11349,7 +11368,7 @@ var SortComponent = (props) => {
11349
11368
  return null;
11350
11369
  };
11351
11370
  var isRowSelected = (rowNode) => {
11352
- return Boolean(rowNode.selectable ? rowNode.isSelected() : true);
11371
+ return Boolean(rowNode.selectable ? rowNode.isSelected() : false);
11353
11372
  };
11354
11373
  var GenericHeaderRenderer = (props) => {
11355
11374
  var _a2;
@@ -11403,22 +11422,26 @@ var GenericHeaderRenderer = (props) => {
11403
11422
  }, []);
11404
11423
  React64.useEffect(() => {
11405
11424
  function calculatePosition() {
11406
- const columns = props.api.getColumnState();
11407
- if (!(columns == null ? void 0 : columns.length)) {
11425
+ const visibleColumns = props.api.getAllDisplayedColumns();
11426
+ if (!(visibleColumns == null ? void 0 : visibleColumns.length))
11408
11427
  return;
11409
- }
11410
- if (columns[0].colId === colId) {
11411
- setIsFirstColumn(true);
11412
- } else {
11413
- setIsFirstColumn(false);
11414
- }
11428
+ const isCurrentFirst = visibleColumns[0].getColId() === colId;
11429
+ setIsFirstColumn(isCurrentFirst);
11415
11430
  }
11416
11431
  props.api.addEventListener("columnMoved", calculatePosition);
11432
+ props.api.addEventListener("columnPinned", calculatePosition);
11433
+ props.api.addEventListener("columnVisible", calculatePosition);
11417
11434
  calculatePosition();
11418
11435
  return () => {
11419
11436
  removeEventListenerFromGrid("columnMoved", calculatePosition, props.api);
11437
+ removeEventListenerFromGrid("columnPinned", calculatePosition, props.api);
11438
+ removeEventListenerFromGrid(
11439
+ "columnVisible",
11440
+ calculatePosition,
11441
+ props.api
11442
+ );
11420
11443
  };
11421
- }, []);
11444
+ }, [colId, props.api]);
11422
11445
  const onSortToggled = (event) => {
11423
11446
  var _a3, _b, _c;
11424
11447
  let currentSort = null;
@@ -11636,7 +11659,7 @@ var GenericHeaderRenderer = (props) => {
11636
11659
  }
11637
11660
  function updateSelectAllCheckbox(e) {
11638
11661
  var _a3;
11639
- if (e.type === "selectionChanged" && e.source === "uiSelectAll") {
11662
+ if (e && e.source === "uiSelectAll") {
11640
11663
  return;
11641
11664
  }
11642
11665
  const selectionState = props.api.getServerSideSelectionState();
@@ -11649,7 +11672,10 @@ var GenericHeaderRenderer = (props) => {
11649
11672
  );
11650
11673
  const isPagination = Boolean(props.api.paginationGetRowCount());
11651
11674
  const currentRows = getCurrentRows(props.api, isPagination);
11652
- const isAllSelected = isPagination ? currentRows.length && currentRows.every(isRowSelected) : isSelectionStateSelectAll;
11675
+ const selectableRows = currentRows.filter(
11676
+ (rowNode) => rowNode.selectable
11677
+ );
11678
+ const isAllSelected = isPagination ? selectableRows.length > 0 && selectableRows.every(isRowSelected) : isSelectionStateSelectAll;
11653
11679
  const isPartialSelected = isPagination ? !isAllSelected && currentRows.some(isRowSelected) : isSelectionStatePartialSelected;
11654
11680
  if (isAllSelected) {
11655
11681
  setSelectAll("all" /* All */);
@@ -11660,7 +11686,9 @@ var GenericHeaderRenderer = (props) => {
11660
11686
  }
11661
11687
  }
11662
11688
  props.api.addEventListener(selectionChanged, updateSelectAllCheckbox);
11663
- props.api.addEventListener(paginationChanged, updateSelectAllCheckbox);
11689
+ const onPaginationChanged = () => updateSelectAllCheckbox();
11690
+ props.api.addEventListener(paginationChanged, onPaginationChanged);
11691
+ updateSelectAllCheckbox();
11664
11692
  return () => {
11665
11693
  removeEventListenerFromGrid(
11666
11694
  selectionChanged,
@@ -11669,7 +11697,7 @@ var GenericHeaderRenderer = (props) => {
11669
11697
  );
11670
11698
  removeEventListenerFromGrid(
11671
11699
  paginationChanged,
11672
- updateSelectAllCheckbox,
11700
+ onPaginationChanged,
11673
11701
  props.api
11674
11702
  );
11675
11703
  };
@@ -11900,6 +11928,11 @@ function getGroupNodes(params) {
11900
11928
  function CustomLoader(params) {
11901
11929
  const I18n = useI18nContext();
11902
11930
  const groupNodes = getGroupNodes(params);
11931
+ const internalTableContext = useInternalTableContext();
11932
+ const hasDuplicateRowIds = internalTableContext.hasDuplicateRowIds ?? false;
11933
+ if (hasDuplicateRowIds) {
11934
+ return null;
11935
+ }
11903
11936
  if (params.node === groupNodes.firstLoading) {
11904
11937
  return /* @__PURE__ */ React64.createElement(Flex, { style: { paddingLeft: "16px" } }, /* @__PURE__ */ React64.createElement(
11905
11938
  LevelIndents,
@@ -12604,7 +12637,8 @@ var InternalTableContext = React64.createContext({
12604
12637
  },
12605
12638
  totalRowCount: 0,
12606
12639
  setTotalRowCount: () => {
12607
- }
12640
+ },
12641
+ hasDuplicateRowIds: false
12608
12642
  });
12609
12643
  var useInternalTableContext = () => React64.useContext(InternalTableContext);
12610
12644
  var prng = detectPrng(true);
@@ -59157,6 +59191,7 @@ var BulkActions = (props) => {
59157
59191
  const {
59158
59192
  children,
59159
59193
  showAlways = false,
59194
+ excludeGroupRowCount = false,
59160
59195
  showEditButtonLabel = false,
59161
59196
  editButtonText
59162
59197
  } = props;
@@ -59177,9 +59212,9 @@ var BulkActions = (props) => {
59177
59212
  if (selectedRows.length === 0 && !showAlways) {
59178
59213
  return null;
59179
59214
  }
59180
- const selectedItemsDesc = I18n.t("dataTable.bulkActions.selection", {
59181
- count: selectedRows.length,
59182
- number: selectedRows.length > 1 ? I18n.t("dataTable.bulkActions.many") : I18n.t("dataTable.bulkActions.one")
59215
+ const selectedRowsCount = excludeGroupRowCount ? selectedRows.filter((row) => !row.group).length : selectedRows.length;
59216
+ const selectedItemsDesc = I18n.t("dataTable.bulkActions.selection_count", {
59217
+ count: selectedRowsCount
59183
59218
  });
59184
59219
  return /* @__PURE__ */ React64.createElement(
59185
59220
  Box,
@@ -126013,12 +126048,14 @@ var ConfigurationColumns = React64.forwardRef(
126013
126048
  ));
126014
126049
  }
126015
126050
  );
126016
- var ConfigurationPanel = ({}) => {
126051
+ var ConfigurationPanel = ({
126052
+ children
126053
+ }) => {
126017
126054
  const { contextPanel, onServerSideDataRequest, enableDynamicRowHeight } = useInternalTableContext();
126018
126055
  const I18n = useI18nContext();
126019
126056
  const configurationColumnsRef = React64.useRef();
126020
126057
  const [isAllColumnsVisible, setIsAllColumnsVisible] = React64.useState(false);
126021
- return /* @__PURE__ */ React64.createElement(Panel, null, /* @__PURE__ */ React64.createElement(Panel.Header, { onClose: contextPanel.hide }, /* @__PURE__ */ React64.createElement(Panel.Title, null, I18n.t("dataTable.tableSettings.tableSettings"))), /* @__PURE__ */ React64.createElement(Panel.Body, { className: cx18("contextPanelBody") }, !onServerSideDataRequest && !enableDynamicRowHeight && /* @__PURE__ */ React64.createElement(
126058
+ return /* @__PURE__ */ React64.createElement(Panel, null, /* @__PURE__ */ React64.createElement(Panel.Header, { onClose: contextPanel.hide }, /* @__PURE__ */ React64.createElement(Panel.Title, null, I18n.t("dataTable.tableSettings.tableSettings"))), /* @__PURE__ */ React64.createElement(Panel.Body, { className: cx18("contextPanelBody") }, children && /* @__PURE__ */ React64.createElement(Panel.Section, null, children), !onServerSideDataRequest && !enableDynamicRowHeight && /* @__PURE__ */ React64.createElement(
126022
126059
  Panel.Section,
126023
126060
  {
126024
126061
  "data-qa": "data-table-config-panel-section-row-height",
@@ -126408,6 +126445,11 @@ var de_DE_default = {
126408
126445
  error: "Entschuldigung, die Elemente konnten nicht aktualisiert werden. Versuchen Sie es noch einmal.",
126409
126446
  placeholderForField: "%{fieldName} eingeben",
126410
126447
  selection: "%{count} %{number} ausgew\xE4hlt",
126448
+ selection_count: {
126449
+ zero: "%{count} Elemente ausgew\xE4hlt",
126450
+ one: "%{count} Element ausgew\xE4hlt",
126451
+ other: "%{count} Elemente ausgew\xE4hlt"
126452
+ },
126411
126453
  success: "Die Elemente wurden erfolgreich aktualisiert.",
126412
126454
  one: "Element",
126413
126455
  many: "Elemente"
@@ -126518,6 +126560,9 @@ var de_DE_default = {
126518
126560
  selectCell: {
126519
126561
  placeholder: "{{label}} ausw\xE4hlen"
126520
126562
  },
126563
+ multiSelectCell: {
126564
+ placeholder: "Werte ausw\xE4hlen"
126565
+ },
126521
126566
  booleanCell: {
126522
126567
  options: {
126523
126568
  yes: "Ja",
@@ -126571,6 +126616,11 @@ var en_AU_default = {
126571
126616
  error: "Sorry, the items couldn't be updated. Try again.",
126572
126617
  placeholderForField: "Enter %{fieldName}",
126573
126618
  selection: "%{count} %{number} selected",
126619
+ selection_count: {
126620
+ zero: "%{count} items selected",
126621
+ one: "%{count} item selected",
126622
+ other: "%{count} items selected"
126623
+ },
126574
126624
  success: "The items were successfully updated.",
126575
126625
  one: "item",
126576
126626
  many: "items"
@@ -126583,7 +126633,7 @@ var en_AU_default = {
126583
126633
  close: "Close",
126584
126634
  locationFilter: {
126585
126635
  selectAll: "Select all",
126586
- includeSublocations: "Include sublocations",
126636
+ includeSublocations: "Include sub-locations",
126587
126637
  searchLocations: "Search locations",
126588
126638
  locations: "Locations"
126589
126639
  },
@@ -126681,6 +126731,9 @@ var en_AU_default = {
126681
126731
  selectCell: {
126682
126732
  placeholder: "Select {{label}}"
126683
126733
  },
126734
+ multiSelectCell: {
126735
+ placeholder: "Select values"
126736
+ },
126684
126737
  booleanCell: {
126685
126738
  options: {
126686
126739
  yes: "Yes",
@@ -126734,6 +126787,11 @@ var en_CA_default = {
126734
126787
  error: "Sorry, the items couldn't be updated. Try again.",
126735
126788
  placeholderForField: "Enter %{fieldName}",
126736
126789
  selection: "%{count} %{number} selected",
126790
+ selection_count: {
126791
+ zero: "%{count} items selected",
126792
+ one: "%{count} item selected",
126793
+ other: "%{count} items selected"
126794
+ },
126737
126795
  success: "The items were successfully updated.",
126738
126796
  one: "item",
126739
126797
  many: "items"
@@ -126844,6 +126902,9 @@ var en_CA_default = {
126844
126902
  selectCell: {
126845
126903
  placeholder: "Select {{label}}"
126846
126904
  },
126905
+ multiSelectCell: {
126906
+ placeholder: "Select values"
126907
+ },
126847
126908
  booleanCell: {
126848
126909
  options: {
126849
126910
  yes: "Yes",
@@ -126897,6 +126958,11 @@ var en_GB_default = {
126897
126958
  error: "Sorry, the items couldn't be updated. Try again.",
126898
126959
  placeholderForField: "Enter %{fieldName}",
126899
126960
  selection: "%{count} %{number} selected",
126961
+ selection_count: {
126962
+ zero: "%{count} items selected",
126963
+ one: "%{count} item selected",
126964
+ other: "%{count} items selected"
126965
+ },
126900
126966
  success: "The items were successfully updated.",
126901
126967
  one: "item",
126902
126968
  many: "items"
@@ -127007,6 +127073,9 @@ var en_GB_default = {
127007
127073
  selectCell: {
127008
127074
  placeholder: "Select {{label}}"
127009
127075
  },
127076
+ multiSelectCell: {
127077
+ placeholder: "Select values"
127078
+ },
127010
127079
  booleanCell: {
127011
127080
  options: {
127012
127081
  yes: "Yes",
@@ -127060,6 +127129,11 @@ var en_default = {
127060
127129
  error: "Sorry, the items couldn't be updated. Try again.",
127061
127130
  placeholderForField: "Enter %{fieldName}",
127062
127131
  selection: "%{count} %{number} selected",
127132
+ selection_count: {
127133
+ zero: "%{count} items selected",
127134
+ one: "%{count} item selected",
127135
+ other: "%{count} items selected"
127136
+ },
127063
127137
  success: "The items were successfully updated.",
127064
127138
  one: "item",
127065
127139
  many: "items"
@@ -127226,6 +127300,11 @@ var es_ES_default = {
127226
127300
  error: "No se han podido actualizar los elementos. Int\xE9ntelo de nuevo.",
127227
127301
  placeholderForField: "Introducir %{fieldName}",
127228
127302
  selection: "%{count} %{number} seleccionados",
127303
+ selection_count: {
127304
+ zero: "%{count} elementos seleccionados",
127305
+ one: "%{count} elemento seleccionado",
127306
+ other: "%{count} elementos seleccionados"
127307
+ },
127229
127308
  success: "Los elementos se han actualizado correctamente.",
127230
127309
  one: "elemento",
127231
127310
  many: "elementos"
@@ -127336,6 +127415,9 @@ var es_ES_default = {
127336
127415
  selectCell: {
127337
127416
  placeholder: "Seleccionar {{label}}"
127338
127417
  },
127418
+ multiSelectCell: {
127419
+ placeholder: "Seleccionar valores"
127420
+ },
127339
127421
  booleanCell: {
127340
127422
  options: {
127341
127423
  yes: "S\xED",
@@ -127372,8 +127454,8 @@ var es_default = {
127372
127454
  description: "Una vez que su equipo cree \xEDtems, podr\xE1 acceder a ellos aqu\xED. ",
127373
127455
  title: "No hay \xEDtems para mostrar en este momento",
127374
127456
  itemsTitle: "No hay %{itemsLabel} para mostrar en este momento",
127375
- tooltip: "El bot\xF3n %{featureName} se habilitar\xE1 una vez que agregue informaci\xF3n al %{tableName}",
127376
- searchTooltip: "La b\xFAsqueda se habilitar\xE1 una vez que agregue informaci\xF3n a %{tableName}",
127457
+ tooltip: "El bot\xF3n %{featureName} se habilitar\xE1 una vez que agregue informaci\xF3n a la %{tableName}.",
127458
+ searchTooltip: "La b\xFAsqueda se habilitar\xE1 una vez que agregue informaci\xF3n a la %{tableName}.",
127377
127459
  featureFilter: "Filtro",
127378
127460
  featureQuickFilter: "Filtro r\xE1pido",
127379
127461
  featureGroupBy: "Agrupar por",
@@ -127389,6 +127471,11 @@ var es_default = {
127389
127471
  error: "Lo sentimos, no se pudieron actualizar los \xEDtems. Vuelva a intentarlo.",
127390
127472
  placeholderForField: "Ingrese %{fieldName}",
127391
127473
  selection: "%{count} %{number} seleccionado",
127474
+ selection_count: {
127475
+ zero: "%{count} \xEDtems seleccionados",
127476
+ one: "%{count} \xEDtem seleccionado",
127477
+ other: "%{count} \xEDtems seleccionados"
127478
+ },
127392
127479
  success: "Los \xEDtems se actualizaron correctamente.",
127393
127480
  one: "\xEDtem",
127394
127481
  many: "\xEDtems"
@@ -127432,14 +127519,14 @@ var es_default = {
127432
127519
  }
127433
127520
  },
127434
127521
  loading: {
127435
- initial: "Cargando informaci\xF3n.",
127522
+ initial: "Cargando informaci\xF3n...",
127436
127523
  secondary: "Cargando informaci\xF3n. Gracias por su paciencia."
127437
127524
  },
127438
127525
  menuOptions: {
127439
127526
  sortMenuItem: {
127440
127527
  label: "Ordenar por esta columna",
127441
- sortAscItem: "Ordenar columna ascendente",
127442
- sortDescItem: "Ordenar columna descendente",
127528
+ sortAscItem: "Ordenar columna - Ascendente",
127529
+ sortDescItem: "Ordenar columna - Descendente",
127443
127530
  sortResetItem: "Columna no ordenada"
127444
127531
  },
127445
127532
  expandAllGroups: "Expandir todos los grupos",
@@ -127499,6 +127586,9 @@ var es_default = {
127499
127586
  selectCell: {
127500
127587
  placeholder: "Seleccionar {{label}}"
127501
127588
  },
127589
+ multiSelectCell: {
127590
+ placeholder: "Seleccionar valores"
127591
+ },
127502
127592
  booleanCell: {
127503
127593
  options: {
127504
127594
  yes: "S\xED",
@@ -127527,7 +127617,7 @@ var fr_CA_default = {
127527
127617
  dataTable: {
127528
127618
  emptyState: {
127529
127619
  noFilteredResults: {
127530
- description: "V\xE9rifiez l'orthographe et les options de filtrage, ou recherchez un autre mot cl\xE9.",
127620
+ description: "V\xE9rifiez l'orthographe et les options de filtrage, ou recherchez un autre mot-cl\xE9.",
127531
127621
  title: "Aucun item ne correspond \xE0 votre recherche",
127532
127622
  itemsTitle: "Aucun %{itemsLabel} ne correspond \xE0 votre recherche"
127533
127623
  },
@@ -127552,6 +127642,11 @@ var fr_CA_default = {
127552
127642
  error: "D\xE9sol\xE9, les items n'ont pas pu \xEAtre mis \xE0 jour. R\xE9essayer.",
127553
127643
  placeholderForField: "Entrez %{fieldName}",
127554
127644
  selection: "%{count} %{number} s\xE9lectionn\xE9",
127645
+ selection_count: {
127646
+ zero: "%{count}\xA0items s\xE9lectionn\xE9s",
127647
+ one: "%{count}\xA0item s\xE9lectionn\xE9",
127648
+ other: "%{count}\xA0items s\xE9lectionn\xE9s"
127649
+ },
127555
127650
  success: "Les items ont \xE9t\xE9 mis \xE0 jour avec succ\xE8s.",
127556
127651
  one: "Item",
127557
127652
  many: "items"
@@ -127662,6 +127757,9 @@ var fr_CA_default = {
127662
127757
  selectCell: {
127663
127758
  placeholder: "S\xE9lectionner {{label}}"
127664
127759
  },
127760
+ multiSelectCell: {
127761
+ placeholder: "S\xE9lectionner les valeurs"
127762
+ },
127665
127763
  booleanCell: {
127666
127764
  options: {
127667
127765
  yes: "Oui",
@@ -127715,6 +127813,11 @@ var fr_FR_default = {
127715
127813
  error: "D\xE9sol\xE9, les \xE9l\xE9ments n'ont pas pu \xEAtre mis \xE0 jour. R\xE9essayez.",
127716
127814
  placeholderForField: "Saisissez %{fieldName}",
127717
127815
  selection: "%{count} %{number} s\xE9lectionn\xE9",
127816
+ selection_count: {
127817
+ zero: "%{count}\xA0\xE9l\xE9ments s\xE9lectionn\xE9s",
127818
+ one: "%{count}\xA0\xE9l\xE9ment s\xE9lectionn\xE9",
127819
+ other: "%{count}\xA0\xE9l\xE9ments s\xE9lectionn\xE9s"
127820
+ },
127718
127821
  success: "Les \xE9l\xE9ments ont bien \xE9t\xE9 mis \xE0 jour.",
127719
127822
  one: "\xE9l\xE9ment",
127720
127823
  many: "\xE9l\xE9ments"
@@ -127825,6 +127928,9 @@ var fr_FR_default = {
127825
127928
  selectCell: {
127826
127929
  placeholder: "S\xE9lectionner {{label}}"
127827
127930
  },
127931
+ multiSelectCell: {
127932
+ placeholder: "S\xE9lectionner les valeurs"
127933
+ },
127828
127934
  booleanCell: {
127829
127935
  options: {
127830
127936
  yes: "Oui",
@@ -127878,6 +127984,11 @@ var is_IS_default = {
127878
127984
  error: "\xDEv\xED mi\xF0ur var ekki h\xE6gt a\xF0 uppf\xE6ra atri\xF0in. Reyndu aftur.",
127879
127985
  placeholderForField: "Sl\xE1\xF0u inn %{fieldName}",
127880
127986
  selection: "%{count} %{number} valinn",
127987
+ selection_count: {
127988
+ zero: "%{count} atri\xF0i valin",
127989
+ one: "%{count} atri\xF0i vali\xF0",
127990
+ other: "%{count} atri\xF0i valin"
127991
+ },
127881
127992
  success: "Atri\xF0in voru uppf\xE6r\xF0.",
127882
127993
  one: "Atri\xF0i",
127883
127994
  many: "Hlutir"
@@ -127988,6 +128099,9 @@ var is_IS_default = {
127988
128099
  selectCell: {
127989
128100
  placeholder: "Veldu {{label}}"
127990
128101
  },
128102
+ multiSelectCell: {
128103
+ placeholder: "Veldu Gildi"
128104
+ },
127991
128105
  booleanCell: {
127992
128106
  options: {
127993
128107
  yes: "J\xE1",
@@ -128041,6 +128155,11 @@ var ja_JP_default = {
128041
128155
  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",
128042
128156
  placeholderForField: "%{fieldName}\u3092\u5165\u529B",
128043
128157
  selection: "%{count}%{number}\u3092\u9078\u629E\u3057\u307E\u3057\u305F",
128158
+ selection_count: {
128159
+ zero: "%{count}\u500B\u306E\u9805\u76EE\u3092\u9078\u629E\u3057\u307E\u3057\u305F",
128160
+ one: "%{count}\u500B\u306E\u9805\u76EE\u3092\u9078\u629E\u3057\u307E\u3057\u305F",
128161
+ other: "%{count}\u500B\u306E\u9805\u76EE\u3092\u9078\u629E\u3057\u307E\u3057\u305F"
128162
+ },
128044
128163
  success: "\u9805\u76EE\u3092\u6B63\u5E38\u306B\u66F4\u65B0\u3057\u307E\u3057\u305F\u3002",
128045
128164
  one: "\u9805\u76EE",
128046
128165
  many: "\u9805\u76EE"
@@ -128151,6 +128270,9 @@ var ja_JP_default = {
128151
128270
  selectCell: {
128152
128271
  placeholder: "{{label}}\u3092\u9078\u629E\u3059\u308B"
128153
128272
  },
128273
+ multiSelectCell: {
128274
+ placeholder: "\u5024\u3092\u9078\u629E"
128275
+ },
128154
128276
  booleanCell: {
128155
128277
  options: {
128156
128278
  yes: "\u306F\u3044",
@@ -128204,6 +128326,11 @@ var pl_PL_default = {
128204
128326
  error: "Przepraszamy, nie mo\u017Cna zaktualizowa\u0107 pozycji. Spr\xF3buj ponownie.",
128205
128327
  placeholderForField: "Wprowad\u017A %{fieldName}",
128206
128328
  selection: "Wybrano %{count} %{number}",
128329
+ selection_count: {
128330
+ zero: "Wybrano pozycje: %{count}",
128331
+ one: "Wybrano pozycji: %{count}",
128332
+ other: "Wybrano pozycje: %{count}"
128333
+ },
128207
128334
  success: "Pozycje zosta\u0142y pomy\u015Blnie zaktualizowane.",
128208
128335
  one: "pozycja",
128209
128336
  many: "pozycje"
@@ -128314,6 +128441,9 @@ var pl_PL_default = {
128314
128441
  selectCell: {
128315
128442
  placeholder: "Wybierz {{label}}"
128316
128443
  },
128444
+ multiSelectCell: {
128445
+ placeholder: "Wybierz warto\u015Bci"
128446
+ },
128317
128447
  booleanCell: {
128318
128448
  options: {
128319
128449
  yes: "Tak",
@@ -128367,6 +128497,11 @@ var pseudo_default = {
128367
128497
  error: "[\u015E\u015E\u015E\u015E\u015E\u015E\u015E\u015E\u015E\u015E\u01FF\u0159\u0159\u1E8F, \xB7 \u0167\u0127\u1E17 \xB7 \u012B\u0167\u1E17\u1E3F\u015F \xB7 \u0188\u01FF\u016D\u0140\u1E13\u019E'\u0167 \xB7 \u0180\u1E17 \xB7 \u016D\u01A5\u1E13\u0227\u0167\u1E17\u1E13. \xB7 \u0166\u0159\u1E8F \xB7 \u0227\u0260\u0227\u012B\u019E..........]",
128368
128498
  placeholderForField: "[\u1E16\u1E16\u019E\u0167\u1E17\u0159 \xB7 \xB7 [NOTRANSLATE]%{fieldName}[/NOTRANSLATE]]",
128369
128499
  selection: "[[NOTRANSLATE]%{count}[/NOTRANSLATE] \xB7 \xB7 \xB7 [NOTRANSLATE]%{number}[/NOTRANSLATE] \xB7 \xB7 \u015F\u1E17\u0140\u1E17\u0188\u0167\u1E17\u1E13\u1E13]",
128500
+ selection_count: {
128501
+ zero: "[[NOTRANSLATE]%{count}[/NOTRANSLATE] \xB7 \xB7 \xB7 \u012B\u0167\u1E17\u1E3F\u015F \xB7 \u015F\u1E17\u0140\u1E17\u0188\u0167\u1E17\u1E13\u1E13\u1E13]",
128502
+ one: "[[NOTRANSLATE]%{count}[/NOTRANSLATE] \xB7 \xB7 \xB7 \u012B\u0167\u1E17\u1E3F \xB7 \u015F\u1E17\u0140\u1E17\u0188\u0167\u1E17\u1E13\u1E13\u1E13]",
128503
+ other: "[[NOTRANSLATE]%{count}[/NOTRANSLATE] \xB7 \xB7 \xB7 \u012B\u0167\u1E17\u1E3F\u015F \xB7 \u015F\u1E17\u0140\u1E17\u0188\u0167\u1E17\u1E13\u1E13\u1E13]"
128504
+ },
128370
128505
  success: "[\u0166\u0166\u0166\u0166\u0166\u0166\u0166\u0166\u0127\u1E17 \xB7 \u012B\u0167\u1E17\u1E3F\u015F \xB7 \u1E87\u1E17\u0159\u1E17 \xB7 \u015F\u016D\u0188\u0188\u1E17\u015F\u015F\u0192\u016D\u0140\u0140\u1E8F \xB7 \u016D\u01A5\u1E13\u0227\u0167\u1E17\u1E13........]",
128371
128506
  one: "[\u012B\u0167\u1E17\u1E3F]",
128372
128507
  many: "[\u012B\u0167\u1E17\u1E3F\u015F]"
@@ -128516,8 +128651,8 @@ var pt_BR_default = {
128516
128651
  description: "Depois que sua equipe criar esses itens, voc\xEA poder\xE1 acess\xE1-los aqui. ",
128517
128652
  title: "N\xE3o H\xE1 Itens para Exibir Agora",
128518
128653
  itemsTitle: "N\xE3o H\xE1 %{itemsLabel} para Exibir Agora",
128519
- tooltip: "O bot\xE3o %{featureName} ser\xE1 ativado assim que voc\xEA adicionar informa\xE7\xF5es ao %{tableName}",
128520
- searchTooltip: "A pesquisa ser\xE1 ativada assim que voc\xEA adicionar informa\xE7\xF5es \xE0 tabela %{tableName}",
128654
+ tooltip: "O bot\xE3o %{featureName} ser\xE1 ativado assim que voc\xEA adicionar informa\xE7\xF5es \xE0 %{tableName}",
128655
+ searchTooltip: "A pesquisa ser\xE1 ativada assim que voc\xEA adicionar informa\xE7\xF5es \xE0 %{tableName}",
128521
128656
  featureFilter: "Filtrar",
128522
128657
  featureQuickFilter: "Filtro r\xE1pido",
128523
128658
  featureGroupBy: "Agrupar por",
@@ -128533,6 +128668,11 @@ var pt_BR_default = {
128533
128668
  error: "Lamentamos, mas n\xE3o foi poss\xEDvel atualizar os itens. Tente novamente.",
128534
128669
  placeholderForField: "Digite %{fieldName}",
128535
128670
  selection: "%{count} %{number} selecionado",
128671
+ selection_count: {
128672
+ zero: "%{count} itens selecionados",
128673
+ one: "%{count} item selecionado",
128674
+ other: "%{count} itens selecionados"
128675
+ },
128536
128676
  success: "Os itens foram atualizados com sucesso.",
128537
128677
  one: "item",
128538
128678
  many: "itens"
@@ -128643,6 +128783,9 @@ var pt_BR_default = {
128643
128783
  selectCell: {
128644
128784
  placeholder: "Selecionar {{label}}"
128645
128785
  },
128786
+ multiSelectCell: {
128787
+ placeholder: "Selecionar Valores"
128788
+ },
128646
128789
  booleanCell: {
128647
128790
  options: {
128648
128791
  yes: "Sim",
@@ -128696,6 +128839,11 @@ var th_TH_default = {
128696
128839
  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",
128697
128840
  placeholderForField: "\u0E1B\u0E49\u0E2D\u0E19 %{fieldName}",
128698
128841
  selection: "%{count} %{number} \u0E17\u0E35\u0E48\u0E40\u0E25\u0E37\u0E2D\u0E01",
128842
+ selection_count: {
128843
+ zero: "\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E41\u0E25\u0E49\u0E27 %{count} \u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",
128844
+ one: "\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E41\u0E25\u0E49\u0E27 %{count} \u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",
128845
+ other: "\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E41\u0E25\u0E49\u0E27 %{count} \u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"
128846
+ },
128699
128847
  success: "\u0E2D\u0E31\u0E1B\u0E40\u0E14\u0E15\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23\u0E2A\u0E33\u0E40\u0E23\u0E47\u0E08\u0E41\u0E25\u0E49\u0E27",
128700
128848
  one: "\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",
128701
128849
  many: "\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"
@@ -128806,6 +128954,9 @@ var th_TH_default = {
128806
128954
  selectCell: {
128807
128955
  placeholder: "\u0E40\u0E25\u0E37\u0E2D\u0E01 {{label}}"
128808
128956
  },
128957
+ multiSelectCell: {
128958
+ placeholder: "\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E04\u0E48\u0E32"
128959
+ },
128809
128960
  booleanCell: {
128810
128961
  options: {
128811
128962
  yes: "\u0E43\u0E0A\u0E48",
@@ -128859,6 +129010,11 @@ var zh_SG_default = {
128859
129010
  error: "\u62B1\u6B49\uFF0C\u65E0\u6CD5\u66F4\u65B0\u6B64\u9879\u3002\u8BF7\u91CD\u8BD5\u3002",
128860
129011
  placeholderForField: "\u8F93\u5165 %{fieldName}",
128861
129012
  selection: "\u5DF2\u9009\u62E9 %{count} %{number}",
129013
+ selection_count: {
129014
+ zero: "\u5DF2\u9009\u62E9 %{count} \u9879",
129015
+ one: "\u5DF2\u9009\u62E9 %{count} \u9879",
129016
+ other: "\u5DF2\u9009\u62E9 %{count} \u9879"
129017
+ },
128862
129018
  success: "\u5DF2\u6210\u529F\u66F4\u65B0\u8FD9\u4E9B\u9879\u3002",
128863
129019
  one: "\u9879",
128864
129020
  many: "\u9879"
@@ -128969,6 +129125,9 @@ var zh_SG_default = {
128969
129125
  selectCell: {
128970
129126
  placeholder: "\u9009\u62E9{{label}}"
128971
129127
  },
129128
+ multiSelectCell: {
129129
+ placeholder: "\u9009\u62E9\u503C"
129130
+ },
128972
129131
  booleanCell: {
128973
129132
  options: {
128974
129133
  yes: "\u662F",
@@ -130063,6 +130222,7 @@ var DataTable = ({
130063
130222
  (initialTableConfig == null ? void 0 : initialTableConfig.rowHeight) || rowSize.sm
130064
130223
  );
130065
130224
  const [gridApi, setGridApi] = React64.useState();
130225
+ const [hasDuplicateRowIds, setHasDuplicateRowIds] = React64.useState(false);
130066
130226
  const searchStorage = useSearchStorage();
130067
130227
  const filterState = useFilterState({
130068
130228
  columnDefinitions: columns,
@@ -130140,7 +130300,9 @@ var DataTable = ({
130140
130300
  gridApi == null ? void 0 : gridApi.hideOverlay.bind(gridApi),
130141
130301
  filterStorage.filtersState,
130142
130302
  searchStorage.searchValue,
130143
- setTotalRowCount
130303
+ setTotalRowCount,
130304
+ setHasDuplicateRowIds,
130305
+ getRowId
130144
130306
  )
130145
130307
  );
130146
130308
  gridApi == null ? void 0 : gridApi.paginationGoToPage(0);
@@ -130248,7 +130410,8 @@ var DataTable = ({
130248
130410
  totalRowCount,
130249
130411
  setTotalRowCount,
130250
130412
  updateServerSideDataSource,
130251
- headerCheckboxSelection: headerCheckboxSelection ?? defaultHeaderCheckboxSelection
130413
+ headerCheckboxSelection: headerCheckboxSelection ?? defaultHeaderCheckboxSelection,
130414
+ hasDuplicateRowIds
130252
130415
  }
130253
130416
  },
130254
130417
  children
@@ -130259,12 +130422,33 @@ var rowDragMoveEvent;
130259
130422
  var rowDragEndEvent;
130260
130423
  function getServerSideDatasource(onServerSideDataRequestCallbackRef, onEmptyResponseCallback = () => {
130261
130424
  }, onNonEmptyResponseCallback = () => {
130262
- }, filters, search, setTotalRowCount) {
130425
+ }, filters, search, setTotalRowCount, setHasDuplicateRowIds, getRowId) {
130263
130426
  return {
130264
130427
  getRows: async (params) => {
130265
130428
  if (onServerSideDataRequestCallbackRef.current) {
130266
130429
  const { request, success, fail } = params;
130267
130430
  const onSuccess = (loadSuccessParams) => {
130431
+ const { rowData } = loadSuccessParams;
130432
+ if (rowData && Array.isArray(rowData) && getRowId) {
130433
+ const uniqueRowIds = /* @__PURE__ */ new Set();
130434
+ for (const row of rowData) {
130435
+ const id = getRowId({
130436
+ data: row,
130437
+ level: 0,
130438
+ api: {},
130439
+ context: {}
130440
+ });
130441
+ if (uniqueRowIds.has(id)) {
130442
+ setHasDuplicateRowIds(true);
130443
+ logger.error(
130444
+ "Duplicate row IDs detected in rowData. Check getRowId() to ensure it returns unique IDs."
130445
+ );
130446
+ fail();
130447
+ return;
130448
+ }
130449
+ uniqueRowIds.add(id);
130450
+ }
130451
+ }
130268
130452
  if (!loadSuccessParams.rowCount && request.groupKeys.length === 0) {
130269
130453
  onEmptyResponseCallback();
130270
130454
  } else {
@@ -130303,7 +130487,7 @@ var Table = (props) => {
130303
130487
  const internalTableContext = useInternalTableContext();
130304
130488
  const clientSideRowData = props.rows ? { rowData: props.rows } : {};
130305
130489
  const serverSideInfiniteScroll = internalTableContext.onServerSideDataRequest ? { serverSideInfiniteScroll: true } : {};
130306
- const { getRowHeight, gridApi } = internalTableContext;
130490
+ const { getRowHeight, gridApi, filterState } = internalTableContext;
130307
130491
  const [viewportWidth, setViewportWidth] = React64.useState(0);
130308
130492
  const rowActionsWidth = React64.useRef(0);
130309
130493
  const [tableHeight, setTableHeight] = React64.useState(0);
@@ -130530,6 +130714,13 @@ var Table = (props) => {
130530
130714
  setSiblingGroupsRowSelection(selectedGroupIndex, gridApi);
130531
130715
  }
130532
130716
  }, [internalTableContext.selectedGroupIndex]);
130717
+ React64.useEffect(() => {
130718
+ filterState.allAvailableFilters.forEach((filter) => {
130719
+ if (Array.isArray(filter.filterValues) && filter.filterValues.length === 0) {
130720
+ tableApi.removeFilter(filter.field);
130721
+ }
130722
+ });
130723
+ }, [filterState.allAvailableFilters]);
130533
130724
  function footerValueGetter(params) {
130534
130725
  var _a3, _b2;
130535
130726
  if (props.getSubtotalLabel) {
@@ -131270,7 +131461,7 @@ var ContextPanel = ({
131270
131461
  "data-qa": "data-table-context-panel",
131271
131462
  ...props
131272
131463
  },
131273
- /* @__PURE__ */ React64.createElement(Box, { className: cx19("contextPanelWrapper"), display: "flex-column" }, contextPanel.content === "configuration" && /* @__PURE__ */ React64.createElement(ConfigurationPanel, null), contextPanel.content === "bulkEdit" && /* @__PURE__ */ React64.createElement(BulkEditPanel, null), contextPanel.content === "custom" && children)
131464
+ /* @__PURE__ */ React64.createElement(Box, { className: cx19("contextPanelWrapper"), display: "flex-column" }, contextPanel.content === "configuration" && /* @__PURE__ */ React64.createElement(ConfigurationPanel, null, children), contextPanel.content === "bulkEdit" && /* @__PURE__ */ React64.createElement(BulkEditPanel, null), contextPanel.content === "custom" && children)
131274
131465
  );
131275
131466
  };
131276
131467
  function isLastColumnInGroup(params) {