@procore/data-table 13.3.2 → 14.0.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.
@@ -1,5 +1,5 @@
1
- import React82, { useState, forwardRef, useContext, useRef, useImperativeHandle, useLayoutEffect, useCallback, useMemo, memo, useEffect, Component as Component$1, createElement } from 'react';
2
- import { startsWith, equals, omit, isNil, mergeDeepLeft, intersection, isEmpty, groupBy } from 'ramda';
1
+ import React83, { useState, forwardRef, useContext, useRef, useImperativeHandle, useLayoutEffect, useCallback, useMemo, memo, useEffect, Component as Component$1, createElement } from 'react';
2
+ import { startsWith, mergeDeepRight, equals, omit, isNil, mergeDeepLeft, intersection, isEmpty, groupBy } from 'ramda';
3
3
  import { useI18nContext, Select, Input, UNSAFE_useOverlayTriggerContext, Card, Flex, Box, SegmentedController, Calendar, useDateTime, OverlayTrigger, isEventSource, DateInput, UNSAFE_isValidYearRange, DateSelect, PillSelect, TextArea, UNSAFE_useMenuImperativeControlNavigation, UNSAFE_Menu, UNSAFE_menuItemsWrapperAttribute, Spinner as Spinner$1, FlexList, Typography, Tooltip, Button, Required, colors, Form, spacing, Switch, Panel, UNSAFE_StyledFilterTokenLabel, typographyWeights, SelectButton, StyledSelectButton, StyledSelectButtonLabel, StyledButton, StyledSelectArrow, Popover, UNSAFE_StyledSuperSelectTrigger, UNSAFE_StyledSuperSelectLabel, UNSAFE_StyledSuperSelectArrow, DateTimeProvider, useField, Label, UNSAFE_mergeRefs, ContactItem as ContactItem$1, ToggleButton, Pagination, Link, AvatarStack, Pill, Typeahead, UNSAFE_FilterToken, useI18n, I18nContext, UNSAFE_SuperSelect, Avatar, MultiSelect, H3, Checkbox, useVisibility, UNSAFE_useSuperSelectContext, DropdownFlyout, StyledDropdownFlyoutLabel, StyledDropdownFlyoutExpandIcon, EmptyState as EmptyState$1 } from '@procore/core-react';
4
4
  import classnames from 'classnames/bind';
5
5
  import { Error as Error$1, Grip, Pencil, Building, Calendar as Calendar$1, CaretsInVertical, CaretsOutVertical, CaretsOutVerticalWithLine, CaretsIn, CaretsOut, CaretDown, CaretRight, ArrowDown, ArrowUp } from '@procore/core-icons';
@@ -8,7 +8,8 @@ import { isDate, parseISO, isSameDay, formatISO, isBefore } from 'date-fns';
8
8
  import { formatNumber, formatCurrency, formatPercentage } from '@procore/labs-financials-utils';
9
9
  import debounce2 from 'lodash.debounce';
10
10
  import Clear from '@procore/core-icons/dist/icons/Clear';
11
- import { useToastAlertContext, ToastAlertProvider } from '@procore/labs-toast-alert';
11
+ import { detectPrng, factory } from 'ulid';
12
+ import { useToastAlertContext, ToastAlertProvider } from '@procore/toast-alert';
12
13
  import ReactDOM, { createPortal } from 'react-dom';
13
14
  import { renderToString, renderToStaticMarkup } from 'react-dom/server';
14
15
  import _isEqual from 'lodash.isequal';
@@ -999,7 +1000,7 @@ var rowHeightMap = {
999
1000
  var Spinner = ({
1000
1001
  loading,
1001
1002
  ...rest
1002
- }) => /* @__PURE__ */ React82.createElement(Box, { "data-qa": loading ? "loading" : "loaded", display: "flex-row", flex: 1 }, /* @__PURE__ */ React82.createElement(Spinner$1, { loading, size: "md", centered: true, ...rest }));
1003
+ }) => /* @__PURE__ */ React83.createElement(Box, { "data-qa": loading ? "loading" : "loaded", display: "flex-row", flex: 1 }, /* @__PURE__ */ React83.createElement(Spinner$1, { loading, size: "md", centered: true, ...rest }));
1003
1004
  function isNestedColumnDefinition(Column2) {
1004
1005
  return "children" in Column2;
1005
1006
  }
@@ -7965,7 +7966,7 @@ var InternalBooleanCellRenderer = ({ columnDefinition, isGroup, value }) => {
7965
7966
  if (isGroup) {
7966
7967
  return null;
7967
7968
  }
7968
- return /* @__PURE__ */ React82.createElement(
7969
+ return /* @__PURE__ */ React83.createElement(
7969
7970
  Typography,
7970
7971
  {
7971
7972
  ...getCellValueTypographyProps(
@@ -7979,14 +7980,14 @@ var BooleanCellRenderer = withDataTableRenderer(
7979
7980
  InternalBooleanCellRenderer,
7980
7981
  "select"
7981
7982
  );
7982
- var InternalBooleanCellEditor = React82.forwardRef(({ columnDefinition, setDataValue, stopEditing, value }, ref) => {
7983
+ var InternalBooleanCellEditor = React83.forwardRef(({ columnDefinition, setDataValue, stopEditing, value }, ref) => {
7983
7984
  const I18n = useI18nContext();
7984
7985
  function onSelect(selection) {
7985
7986
  if (selection.item !== value) {
7986
7987
  setDataValue(columnDefinition.field, selection.item);
7987
7988
  }
7988
7989
  }
7989
- return /* @__PURE__ */ React82.createElement(
7990
+ return /* @__PURE__ */ React83.createElement(
7990
7991
  Select,
7991
7992
  {
7992
7993
  afterHide: stopEditing,
@@ -7996,7 +7997,7 @@ var InternalBooleanCellEditor = React82.forwardRef(({ columnDefinition, setDataV
7996
7997
  onSelect,
7997
7998
  ref
7998
7999
  },
7999
- /* @__PURE__ */ React82.createElement(
8000
+ /* @__PURE__ */ React83.createElement(
8000
8001
  Select.Option,
8001
8002
  {
8002
8003
  value: true,
@@ -8004,7 +8005,7 @@ var InternalBooleanCellEditor = React82.forwardRef(({ columnDefinition, setDataV
8004
8005
  },
8005
8006
  I18n.t("dataTable.cells.booleanCell.options.yes")
8006
8007
  ),
8007
- /* @__PURE__ */ React82.createElement(Select.Option, { value: false, selected: !value }, I18n.t("dataTable.cells.booleanCell.options.no"))
8008
+ /* @__PURE__ */ React83.createElement(Select.Option, { value: false, selected: !value }, I18n.t("dataTable.cells.booleanCell.options.no"))
8008
8009
  );
8009
8010
  });
8010
8011
  var BooleanCellEditor = withDataTableEditor(
@@ -8019,7 +8020,7 @@ var Renderer = ({
8019
8020
  if (rowPinned) {
8020
8021
  return null;
8021
8022
  }
8022
- return /* @__PURE__ */ React82.createElement(FlexList, { justifyContent: "center", alignItems: "center", size: "xs" }, columnDefinition.cellRendererParams.buttons.map((Button6) => /* @__PURE__ */ React82.createElement(
8023
+ return /* @__PURE__ */ React83.createElement(FlexList, { justifyContent: "center", alignItems: "center", size: "xs" }, columnDefinition.cellRendererParams.buttons.map((Button6) => /* @__PURE__ */ React83.createElement(
8023
8024
  Button6,
8024
8025
  {
8025
8026
  key: Button6.displayName,
@@ -8070,18 +8071,18 @@ function ContactItem({
8070
8071
  "truncatingText--md": rowHeight === rowSize.md,
8071
8072
  "truncatingText--lg": rowHeight === rowSize.lg
8072
8073
  });
8073
- return /* @__PURE__ */ React82.createElement(Flex, { alignItems: "center" }, showAvatar && /* @__PURE__ */ React82.createElement(Avatar, { size: "md" }, (() => {
8074
+ return /* @__PURE__ */ React83.createElement(Flex, { alignItems: "center" }, showAvatar && /* @__PURE__ */ React83.createElement(Avatar, { size: "md" }, (() => {
8074
8075
  if (imageUrl) {
8075
- return /* @__PURE__ */ React82.createElement(Avatar.Portrait, { imageUrl });
8076
+ return /* @__PURE__ */ React83.createElement(Avatar.Portrait, { imageUrl });
8076
8077
  }
8077
8078
  if (icon) {
8078
- return /* @__PURE__ */ React82.createElement(Avatar.Icon, { icon });
8079
+ return /* @__PURE__ */ React83.createElement(Avatar.Icon, { icon });
8079
8080
  }
8080
8081
  if (initials) {
8081
- return /* @__PURE__ */ React82.createElement(Avatar.Label, null, initials);
8082
+ return /* @__PURE__ */ React83.createElement(Avatar.Label, null, initials);
8082
8083
  }
8083
8084
  return null;
8084
- })()), /* @__PURE__ */ React82.createElement(Flex, { direction: "column", paddingLeft: showAvatar ? "md" : void 0 }, /* @__PURE__ */ React82.createElement(
8085
+ })()), /* @__PURE__ */ React83.createElement(Flex, { direction: "column", paddingLeft: showAvatar ? "md" : void 0 }, /* @__PURE__ */ React83.createElement(
8085
8086
  Typography,
8086
8087
  {
8087
8088
  color: "gray15",
@@ -8090,7 +8091,7 @@ function ContactItem({
8090
8091
  className: truncation
8091
8092
  },
8092
8093
  title
8093
- ), description && /* @__PURE__ */ React82.createElement(Typography, { color: "gray45", intent: "small", className: truncation }, description)));
8094
+ ), description && /* @__PURE__ */ React83.createElement(Typography, { color: "gray45", intent: "small", className: truncation }, description)));
8094
8095
  }
8095
8096
 
8096
8097
  // src/CellRenderers/CompanyCell.tsx
@@ -8101,8 +8102,8 @@ var Renderer2 = ({
8101
8102
  value
8102
8103
  }) => {
8103
8104
  var _a, _b, _c, _d, _e;
8104
- const [showAvatar, setShowAvatar] = React82.useState(false);
8105
- React82.useEffect(() => {
8105
+ const [showAvatar, setShowAvatar] = React83.useState(false);
8106
+ React83.useEffect(() => {
8106
8107
  setShowAvatar(rowHeight === rowSize.lg || rowHeight === rowSize.md);
8107
8108
  }, [rowHeight]);
8108
8109
  if (value === void 0 || value === null) {
@@ -8110,7 +8111,7 @@ var Renderer2 = ({
8110
8111
  }
8111
8112
  const companyName = isGroup ? value : ((_b = (_a = columnDefinition.cellRendererParams) == null ? void 0 : _a.getCompanyName) == null ? void 0 : _b.call(_a, value)) ?? value.name;
8112
8113
  const imageURL = (_d = (_c = columnDefinition.cellRendererParams) == null ? void 0 : _c.getImageURL) == null ? void 0 : _d.call(_c, value);
8113
- return isGroup ? /* @__PURE__ */ React82.createElement(
8114
+ return isGroup ? /* @__PURE__ */ React83.createElement(
8114
8115
  Typography,
8115
8116
  {
8116
8117
  ...getCellValueTypographyProps(
@@ -8119,11 +8120,11 @@ var Renderer2 = ({
8119
8120
  weight: "semibold"
8120
8121
  },
8121
8122
  companyName
8122
- ) : /* @__PURE__ */ React82.createElement(
8123
+ ) : /* @__PURE__ */ React83.createElement(
8123
8124
  ContactItem,
8124
8125
  {
8125
8126
  imageUrl: showAvatar ? imageURL : void 0,
8126
- icon: showAvatar ? /* @__PURE__ */ React82.createElement(Building, { size: "sm" }) : void 0,
8127
+ icon: showAvatar ? /* @__PURE__ */ React83.createElement(Building, { size: "sm" }) : void 0,
8127
8128
  title: companyName,
8128
8129
  rowHeight
8129
8130
  }
@@ -8167,7 +8168,7 @@ var Renderer3 = ({
8167
8168
  return null;
8168
8169
  }
8169
8170
  if (columnDefinition.editable) {
8170
- return /* @__PURE__ */ React82.createElement(
8171
+ return /* @__PURE__ */ React83.createElement(
8171
8172
  Typography,
8172
8173
  {
8173
8174
  ...getCellValueTypographyProps(
@@ -8180,7 +8181,7 @@ var Renderer3 = ({
8180
8181
  }
8181
8182
  }
8182
8183
  if (isGroup) {
8183
- return /* @__PURE__ */ React82.createElement(
8184
+ return /* @__PURE__ */ React83.createElement(
8184
8185
  Typography,
8185
8186
  {
8186
8187
  intent: "small",
@@ -8190,7 +8191,7 @@ var Renderer3 = ({
8190
8191
  internalValue
8191
8192
  );
8192
8193
  }
8193
- return /* @__PURE__ */ React82.createElement(
8194
+ return /* @__PURE__ */ React83.createElement(
8194
8195
  Typography,
8195
8196
  {
8196
8197
  ...getCellValueTypographyProps(
@@ -8203,7 +8204,7 @@ var Renderer3 = ({
8203
8204
  );
8204
8205
  };
8205
8206
  var CurrencyCellRenderer = withDataTableRenderer(Renderer3, "input");
8206
- var Editor = React82.forwardRef(
8207
+ var Editor = React83.forwardRef(
8207
8208
  ({ columnDefinition, eventKey, stopEditing, value }, ref) => {
8208
8209
  var _a, _b, _c, _d, _e;
8209
8210
  const I18n = useI18nContext();
@@ -8218,7 +8219,7 @@ var Editor = React82.forwardRef(
8218
8219
  symbol: void 0,
8219
8220
  symbolAfterValue: void 0
8220
8221
  });
8221
- return /* @__PURE__ */ React82.createElement(
8222
+ return /* @__PURE__ */ React83.createElement(
8222
8223
  Input,
8223
8224
  {
8224
8225
  placeholder: ((_d = (_c = columnDefinition.cellEditorParams) == null ? void 0 : _c.inputProps) == null ? void 0 : _d.placeholder) || I18n.t("dataTable.cells.currencyCell.placeholder"),
@@ -8292,9 +8293,9 @@ function getPlacement(currentSelectionType, position) {
8292
8293
  return "bottom-right";
8293
8294
  }
8294
8295
  var OptionalDateTimeProvider = ({ timeZone, children }) => {
8295
- return timeZone ? /* @__PURE__ */ React82.createElement(DateTimeProvider, { timeZone }, children) : /* @__PURE__ */ React82.createElement(React82.Fragment, null, children);
8296
+ return timeZone ? /* @__PURE__ */ React83.createElement(DateTimeProvider, { timeZone }, children) : /* @__PURE__ */ React83.createElement(React83.Fragment, null, children);
8296
8297
  };
8297
- var DateFilterOverlay = React82.forwardRef(
8298
+ var DateFilterOverlay = React83.forwardRef(
8298
8299
  // eslint-disable-next-line complexity
8299
8300
  ({
8300
8301
  dateInputSegmentRef,
@@ -8328,13 +8329,13 @@ var DateFilterOverlay = React82.forwardRef(
8328
8329
  onSelect(day);
8329
8330
  hide({});
8330
8331
  }
8331
- return /* @__PURE__ */ React82.createElement(Card, { "data-qa": "data-table-date-filter-calendar", ref, ...props }, /* @__PURE__ */ React82.createElement(Flex, { direction: "column" }, selectionType === "either" && /* @__PURE__ */ React82.createElement(Box, { padding: "md", style: { width: "100%" } }, /* @__PURE__ */ React82.createElement(
8332
+ return /* @__PURE__ */ React83.createElement(Card, { "data-qa": "data-table-date-filter-calendar", ref, ...props }, /* @__PURE__ */ React83.createElement(Flex, { direction: "column" }, selectionType === "either" && /* @__PURE__ */ React83.createElement(Box, { padding: "md", style: { width: "100%" } }, /* @__PURE__ */ React83.createElement(
8332
8333
  SegmentedController,
8333
8334
  {
8334
8335
  block: true,
8335
8336
  "data-qa": "data-table-date-filter-selection-control"
8336
8337
  },
8337
- /* @__PURE__ */ React82.createElement(
8338
+ /* @__PURE__ */ React83.createElement(
8338
8339
  SegmentedController.Segment,
8339
8340
  {
8340
8341
  active: selectedValue.type === "single",
@@ -8342,7 +8343,7 @@ var DateFilterOverlay = React82.forwardRef(
8342
8343
  },
8343
8344
  I18n.t("dataTable.filterRenders.dateFilter.single")
8344
8345
  ),
8345
- /* @__PURE__ */ React82.createElement(
8346
+ /* @__PURE__ */ React83.createElement(
8346
8347
  SegmentedController.Segment,
8347
8348
  {
8348
8349
  active: selectedValue.type === "range",
@@ -8350,7 +8351,7 @@ var DateFilterOverlay = React82.forwardRef(
8350
8351
  },
8351
8352
  I18n.t("dataTable.filterRenders.dateFilter.range")
8352
8353
  )
8353
- )), /* @__PURE__ */ React82.createElement(
8354
+ )), /* @__PURE__ */ React83.createElement(
8354
8355
  Calendar,
8355
8356
  {
8356
8357
  displayDate,
@@ -8364,7 +8365,7 @@ var DateFilterOverlay = React82.forwardRef(
8364
8365
  )));
8365
8366
  }
8366
8367
  );
8367
- var DateFilterSelect = React82.forwardRef(
8368
+ var DateFilterSelect = React83.forwardRef(
8368
8369
  ({
8369
8370
  afterHide,
8370
8371
  onChange,
@@ -8377,11 +8378,11 @@ var DateFilterSelect = React82.forwardRef(
8377
8378
  const dateTime = useDateTime();
8378
8379
  const { start, end } = selectedValue;
8379
8380
  const selectedDate = (position === "start" ? start : end) ?? void 0;
8380
- const [displayed, setDisplayed2] = React82.useState(
8381
+ const [displayed, setDisplayed2] = React83.useState(
8381
8382
  // @ts-ignore
8382
8383
  selectedDate || dateTime.newDate()
8383
8384
  );
8384
- React82.useEffect(() => {
8385
+ React83.useEffect(() => {
8385
8386
  if (isDate(start) && !isDate(end) && position === "end") {
8386
8387
  setDisplayed2(start);
8387
8388
  }
@@ -8390,12 +8391,12 @@ var DateFilterSelect = React82.forwardRef(
8390
8391
  }
8391
8392
  }, [position, selectedValue]);
8392
8393
  const segmentRefs = {
8393
- segmentThree: React82.useRef(null)
8394
+ segmentThree: React83.useRef(null)
8394
8395
  };
8395
- const clearRef = React82.useRef(null);
8396
- const monthRef = React82.useRef(null);
8397
- const yearRef = React82.useRef(null);
8398
- const overlay = /* @__PURE__ */ React82.createElement(
8396
+ const clearRef = React83.useRef(null);
8397
+ const monthRef = React83.useRef(null);
8398
+ const yearRef = React83.useRef(null);
8399
+ const overlay = /* @__PURE__ */ React83.createElement(
8399
8400
  DateFilterOverlay,
8400
8401
  {
8401
8402
  dateInputSegmentRef: segmentRefs.segmentThree,
@@ -8412,7 +8413,7 @@ var DateFilterSelect = React82.forwardRef(
8412
8413
  yearRef
8413
8414
  }
8414
8415
  );
8415
- return /* @__PURE__ */ React82.createElement(
8416
+ return /* @__PURE__ */ React83.createElement(
8416
8417
  OverlayTrigger,
8417
8418
  {
8418
8419
  afterHide,
@@ -8427,7 +8428,7 @@ var DateFilterSelect = React82.forwardRef(
8427
8428
  placement: getPlacement(selectedValue.type, position),
8428
8429
  ref
8429
8430
  },
8430
- /* @__PURE__ */ React82.createElement(
8431
+ /* @__PURE__ */ React83.createElement(
8431
8432
  DateInput,
8432
8433
  {
8433
8434
  "data-qa": `data-table-date-filter-input-${position}`,
@@ -8467,10 +8468,10 @@ function DateFilter({
8467
8468
  value,
8468
8469
  ...props
8469
8470
  }) {
8470
- const [selectedValue, setSelectedValue] = React82.useState({
8471
+ const [selectedValue, setSelectedValue] = React83.useState({
8471
8472
  type: selectionType === "either" ? "range" : selectionType
8472
8473
  });
8473
- React82.useEffect(() => {
8474
+ React83.useEffect(() => {
8474
8475
  const parsedValue = value.map((date) => {
8475
8476
  if (isDate(date)) {
8476
8477
  return date;
@@ -8480,7 +8481,7 @@ function DateFilter({
8480
8481
  const type = isSameDay(parsedValue[0], parsedValue[1]) ? "single" : "range";
8481
8482
  setSelectedValue({ type, start: parsedValue[0], end: parsedValue[1] });
8482
8483
  }, [value]);
8483
- const dateRangeEndDateRef = React82.useRef(null);
8484
+ const dateRangeEndDateRef = React83.useRef(null);
8484
8485
  function dateFilterOnChange(date, position) {
8485
8486
  const newValue = getValueFromSelection(selectedValue, date, position);
8486
8487
  setSelectedValue(newValue);
@@ -8493,7 +8494,7 @@ function DateFilter({
8493
8494
  );
8494
8495
  }
8495
8496
  }
8496
- const onSelectionTypeChange = React82.useCallback(
8497
+ const onSelectionTypeChange = React83.useCallback(
8497
8498
  (newSelectionType) => {
8498
8499
  setSelectedValue({ type: newSelectionType });
8499
8500
  },
@@ -8506,7 +8507,7 @@ function DateFilter({
8506
8507
  }
8507
8508
  return true;
8508
8509
  }
8509
- return /* @__PURE__ */ React82.createElement(FlexList, { space: "xs", "data-qa": props["data-qa"] }, /* @__PURE__ */ React82.createElement(
8510
+ return /* @__PURE__ */ React83.createElement(FlexList, { space: "xs", "data-qa": props["data-qa"] }, /* @__PURE__ */ React83.createElement(
8510
8511
  DateFilterSelect,
8511
8512
  {
8512
8513
  afterHide: dateRangeAfterHide,
@@ -8516,7 +8517,7 @@ function DateFilter({
8516
8517
  selectionType,
8517
8518
  setSelectionType: onSelectionTypeChange
8518
8519
  }
8519
- ), selectedValue.type !== "single" && /* @__PURE__ */ React82.createElement(
8520
+ ), selectedValue.type !== "single" && /* @__PURE__ */ React83.createElement(
8520
8521
  DateFilterSelect,
8521
8522
  {
8522
8523
  onChange: dateFilterOnChange,
@@ -8537,7 +8538,7 @@ function ServerSideDateSelectFilterRenderer({
8537
8538
  }) {
8538
8539
  var _a;
8539
8540
  const colDef = columnDefinition;
8540
- return /* @__PURE__ */ React82.createElement(OptionalDateTimeProvider, { timeZone: colDef.timeZone }, /* @__PURE__ */ React82.createElement(
8541
+ return /* @__PURE__ */ React83.createElement(OptionalDateTimeProvider, { timeZone: colDef.timeZone }, /* @__PURE__ */ React83.createElement(
8541
8542
  DateFilter,
8542
8543
  {
8543
8544
  ...props,
@@ -8562,7 +8563,7 @@ function ServerSideDateSelectFilterRenderer({
8562
8563
  var DateFilterRenderer = (props) => {
8563
8564
  const { onServerSideDataRequest } = useInternalTableContext();
8564
8565
  if (onServerSideDataRequest) {
8565
- return /* @__PURE__ */ React82.createElement(ServerSideDateSelectFilterRenderer, { ...props });
8566
+ return /* @__PURE__ */ React83.createElement(ServerSideDateSelectFilterRenderer, { ...props });
8566
8567
  }
8567
8568
  console.error(
8568
8569
  "Warning: Date Filters are currently only implemented for the serverside row model"
@@ -8578,9 +8579,9 @@ var DateFilterTokenText = ({
8578
8579
  const parsedStart = parseISO(start);
8579
8580
  const parsedEnd = parseISO(end);
8580
8581
  if (isSameDay(parsedStart, parsedEnd)) {
8581
- return /* @__PURE__ */ React82.createElement(React82.Fragment, null, `${headerName}: ${dateTime.format(parsedStart, "numeric-date")}`);
8582
+ return /* @__PURE__ */ React83.createElement(React83.Fragment, null, `${headerName}: ${dateTime.format(parsedStart, "numeric-date")}`);
8582
8583
  }
8583
- return /* @__PURE__ */ React82.createElement(React82.Fragment, null, `${headerName}: ${dateTime.format(
8584
+ return /* @__PURE__ */ React83.createElement(React83.Fragment, null, `${headerName}: ${dateTime.format(
8584
8585
  parsedStart,
8585
8586
  "numeric-date"
8586
8587
  )} - ${dateTime.format(parsedEnd, "numeric-date")}`);
@@ -8616,20 +8617,20 @@ var DateCellValue = ({
8616
8617
  const typographyProps = getCellValueTypographyProps(
8617
8618
  (_b = columnDefinition.cellRendererParams) == null ? void 0 : _b.typographyProps
8618
8619
  );
8619
- return /* @__PURE__ */ React82.createElement(Typography, { ...typographyProps }, internalValue);
8620
+ return /* @__PURE__ */ React83.createElement(Typography, { ...typographyProps }, internalValue);
8620
8621
  };
8621
8622
  var Renderer4 = (props) => {
8622
8623
  var _a, _b;
8623
- return /* @__PURE__ */ React82.createElement(
8624
+ return /* @__PURE__ */ React83.createElement(
8624
8625
  OptionalDateTimeProvider,
8625
8626
  {
8626
8627
  timeZone: (_b = (_a = props.columnDefinition) == null ? void 0 : _a.cellRendererParams) == null ? void 0 : _b.timeZone
8627
8628
  },
8628
- /* @__PURE__ */ React82.createElement(DateCellValue, { ...props })
8629
+ /* @__PURE__ */ React83.createElement(DateCellValue, { ...props })
8629
8630
  );
8630
8631
  };
8631
8632
  var DateCellRenderer = withDataTableRenderer(Renderer4, "date");
8632
- var Editor2 = React82.forwardRef(
8633
+ var Editor2 = React83.forwardRef(
8633
8634
  ({ columnDefinition, setDataValue, stopEditing, value }, ref) => {
8634
8635
  var _a, _b;
8635
8636
  function afterHide() {
@@ -8642,12 +8643,12 @@ var Editor2 = React82.forwardRef(
8642
8643
  setDataValue(columnDefinition.field, void 0);
8643
8644
  }
8644
8645
  }
8645
- return /* @__PURE__ */ React82.createElement(
8646
+ return /* @__PURE__ */ React83.createElement(
8646
8647
  OptionalDateTimeProvider,
8647
8648
  {
8648
8649
  timeZone: (_a = columnDefinition.cellEditorParams) == null ? void 0 : _a.timeZone
8649
8650
  },
8650
- /* @__PURE__ */ React82.createElement(
8651
+ /* @__PURE__ */ React83.createElement(
8651
8652
  DateSelect,
8652
8653
  {
8653
8654
  afterHide,
@@ -8690,20 +8691,20 @@ var DateTimeCellValue = ({
8690
8691
  const typographyProps = getCellValueTypographyProps(
8691
8692
  (_b = columnDefinition.cellRendererParams) == null ? void 0 : _b.typographyProps
8692
8693
  );
8693
- return /* @__PURE__ */ React82.createElement(Typography, { ...typographyProps }, internalValue);
8694
+ return /* @__PURE__ */ React83.createElement(Typography, { ...typographyProps }, internalValue);
8694
8695
  };
8695
8696
  var Renderer5 = (props) => {
8696
8697
  var _a, _b;
8697
- return /* @__PURE__ */ React82.createElement(
8698
+ return /* @__PURE__ */ React83.createElement(
8698
8699
  OptionalDateTimeProvider,
8699
8700
  {
8700
8701
  timeZone: (_b = (_a = props.columnDefinition) == null ? void 0 : _a.cellRendererParams) == null ? void 0 : _b.timeZone
8701
8702
  },
8702
- /* @__PURE__ */ React82.createElement(DateTimeCellValue, { ...props })
8703
+ /* @__PURE__ */ React83.createElement(DateTimeCellValue, { ...props })
8703
8704
  );
8704
8705
  };
8705
8706
  var DateTimeCellRenderer = withDataTableRenderer(Renderer5, "date");
8706
- var Editor3 = React82.forwardRef(
8707
+ var Editor3 = React83.forwardRef(
8707
8708
  ({ columnDefinition, setDataValue, stopEditing, value }, ref) => {
8708
8709
  var _a, _b;
8709
8710
  function afterHide() {
@@ -8716,12 +8717,12 @@ var Editor3 = React82.forwardRef(
8716
8717
  setDataValue(columnDefinition.field, void 0);
8717
8718
  }
8718
8719
  }
8719
- return /* @__PURE__ */ React82.createElement(
8720
+ return /* @__PURE__ */ React83.createElement(
8720
8721
  OptionalDateTimeProvider,
8721
8722
  {
8722
8723
  timeZone: (_a = columnDefinition.cellEditorParams) == null ? void 0 : _a.timeZone
8723
8724
  },
8724
- /* @__PURE__ */ React82.createElement(
8725
+ /* @__PURE__ */ React83.createElement(
8725
8726
  DateSelect,
8726
8727
  {
8727
8728
  afterHide,
@@ -52921,10 +52922,10 @@ var InternalLinkCellRenderer = ({ columnDefinition, isGroup, data, rowHeight, va
52921
52922
  }
52922
52923
  );
52923
52924
  if (isGroup) {
52924
- return /* @__PURE__ */ React82.createElement(Typography, { ...typographyProps, className, weight: "semibold" }, value);
52925
+ return /* @__PURE__ */ React83.createElement(Typography, { ...typographyProps, className, weight: "semibold" }, value);
52925
52926
  }
52926
52927
  const URL = columnDefinition.cellRendererParams.getURL(value, data);
52927
- return URL ? /* @__PURE__ */ React82.createElement(Typography, { ...typographyProps, className }, /* @__PURE__ */ React82.createElement(Link, { href: URL }, internalValue)) : /* @__PURE__ */ React82.createElement(Typography, { ...typographyProps }, internalValue);
52928
+ return URL ? /* @__PURE__ */ React83.createElement(Typography, { ...typographyProps, className }, /* @__PURE__ */ React83.createElement(Link, { href: URL }, internalValue)) : /* @__PURE__ */ React83.createElement(Typography, { ...typographyProps }, internalValue);
52928
52929
  };
52929
52930
  var LinkCellRenderer = withDataTableRenderer(
52930
52931
  InternalLinkCellRenderer,
@@ -52939,7 +52940,7 @@ var InternalNumberCellRenderer = ({ columnDefinition, rowPinned, isGroup, value
52939
52940
  return null;
52940
52941
  }
52941
52942
  if (columnDefinition.editable) {
52942
- return /* @__PURE__ */ React82.createElement(
52943
+ return /* @__PURE__ */ React83.createElement(
52943
52944
  Typography,
52944
52945
  {
52945
52946
  ...getCellValueTypographyProps(
@@ -52950,7 +52951,7 @@ var InternalNumberCellRenderer = ({ columnDefinition, rowPinned, isGroup, value
52950
52951
  ((_c = (_b = columnDefinition.cellEditorParams) == null ? void 0 : _b.inputProps) == null ? void 0 : _c.placeholder) || I18n.t("dataTable.cells.numberCell.placeholder")
52951
52952
  );
52952
52953
  }
52953
- return /* @__PURE__ */ React82.createElement(React82.Fragment, null);
52954
+ return /* @__PURE__ */ React83.createElement(React83.Fragment, null);
52954
52955
  }
52955
52956
  const internalValue = formatNumber(value, {
52956
52957
  maxDecimalPrecision: 15,
@@ -52959,9 +52960,9 @@ var InternalNumberCellRenderer = ({ columnDefinition, rowPinned, isGroup, value
52959
52960
  ...(_d = columnDefinition.cellRendererParams) == null ? void 0 : _d.formatConfig
52960
52961
  });
52961
52962
  if (isGroup) {
52962
- return /* @__PURE__ */ React82.createElement(Typography, { intent: "small", weight: "semibold" }, internalValue);
52963
+ return /* @__PURE__ */ React83.createElement(Typography, { intent: "small", weight: "semibold" }, internalValue);
52963
52964
  }
52964
- return /* @__PURE__ */ React82.createElement(
52965
+ return /* @__PURE__ */ React83.createElement(
52965
52966
  Typography,
52966
52967
  {
52967
52968
  ...getCellValueTypographyProps(
@@ -52976,7 +52977,7 @@ var NumberCellRenderer = withDataTableRenderer(
52976
52977
  InternalNumberCellRenderer,
52977
52978
  "input"
52978
52979
  );
52979
- var InternalNumberCellEditor = React82.forwardRef(({ columnDefinition, stopEditing, value }, ref) => {
52980
+ var InternalNumberCellEditor = React83.forwardRef(({ columnDefinition, stopEditing, value }, ref) => {
52980
52981
  var _a, _b, _c;
52981
52982
  const I18n = useI18nContext();
52982
52983
  if (isEmptyValue(value) && !columnDefinition.editable) {
@@ -52985,7 +52986,7 @@ var InternalNumberCellEditor = React82.forwardRef(({ columnDefinition, stopEditi
52985
52986
  function onBlur() {
52986
52987
  stopEditing();
52987
52988
  }
52988
- return /* @__PURE__ */ React82.createElement(
52989
+ return /* @__PURE__ */ React83.createElement(
52989
52990
  Input,
52990
52991
  {
52991
52992
  placeholder: ((_b = (_a = columnDefinition.cellEditorParams) == null ? void 0 : _a.inputProps) == null ? void 0 : _b.placeholder) || I18n.t("dataTable.cells.numberCell.placeholder"),
@@ -53052,43 +53053,43 @@ var Renderer6 = ({
53052
53053
  value
53053
53054
  }) => {
53054
53055
  var _a, _b, _c, _d, _e, _f, _g;
53055
- const [fullCellView, setFullCellView] = React82.useState(false);
53056
- const getPeople = React82.useCallback(() => {
53056
+ const [fullCellView, setFullCellView] = React83.useState(false);
53057
+ const getPeople = React83.useCallback(() => {
53057
53058
  var _a2, _b2;
53058
53059
  return ((_b2 = (_a2 = columnDefinition.cellRendererParams) == null ? void 0 : _a2.getValue) == null ? void 0 : _b2.call(_a2, value)) || value || [];
53059
53060
  }, [(_a = columnDefinition.cellRendererParams) == null ? void 0 : _a.getValue, value]);
53060
- const getCompanyName = React82.useCallback(
53061
+ const getCompanyName = React83.useCallback(
53061
53062
  (person) => {
53062
53063
  var _a2, _b2;
53063
53064
  return ((_b2 = (_a2 = columnDefinition.cellRendererParams) == null ? void 0 : _a2.getCompanyName) == null ? void 0 : _b2.call(_a2, person)) ?? person.company ?? "";
53064
53065
  },
53065
53066
  [(_b = columnDefinition.cellRendererParams) == null ? void 0 : _b.getCompanyName]
53066
53067
  );
53067
- const getPersonName = React82.useCallback(
53068
+ const getPersonName = React83.useCallback(
53068
53069
  (person) => {
53069
53070
  var _a2, _b2;
53070
53071
  return ((_b2 = (_a2 = columnDefinition.cellRendererParams) == null ? void 0 : _a2.getPersonName) == null ? void 0 : _b2.call(_a2, person)) ?? person.name ?? "";
53071
53072
  },
53072
53073
  [(_c = columnDefinition.cellRendererParams) == null ? void 0 : _c.getPersonName]
53073
53074
  );
53074
- const getPersonImageUrl = React82.useCallback(
53075
+ const getPersonImageUrl = React83.useCallback(
53075
53076
  (person) => {
53076
53077
  var _a2, _b2;
53077
53078
  return ((_b2 = (_a2 = columnDefinition.cellRendererParams) == null ? void 0 : _a2.getImageURL) == null ? void 0 : _b2.call(_a2, person)) ?? "";
53078
53079
  },
53079
53080
  [(_d = columnDefinition.cellRendererParams) == null ? void 0 : _d.getImageURL]
53080
53081
  );
53081
- const getPersonInitials = React82.useCallback(
53082
+ const getPersonInitials = React83.useCallback(
53082
53083
  (person) => {
53083
53084
  var _a2, _b2;
53084
53085
  return ((_b2 = (_a2 = columnDefinition.cellRendererParams) == null ? void 0 : _a2.getInitials) == null ? void 0 : _b2.call(_a2, person)) ?? "";
53085
53086
  },
53086
53087
  [(_e = columnDefinition.cellRendererParams) == null ? void 0 : _e.getInitials]
53087
53088
  );
53088
- React82.useEffect(() => {
53089
+ React83.useEffect(() => {
53089
53090
  setFullCellView(rowHeight === rowSize.lg || rowHeight === rowSize.md);
53090
53091
  }, [rowHeight]);
53091
- const getPersonNameWithCompany = React82.useCallback(
53092
+ const getPersonNameWithCompany = React83.useCallback(
53092
53093
  (person) => {
53093
53094
  const name = getPersonName(person);
53094
53095
  const company = getCompanyName(person);
@@ -53096,14 +53097,14 @@ var Renderer6 = ({
53096
53097
  },
53097
53098
  [getCompanyName, getPersonName]
53098
53099
  );
53099
- const namesWithCompany = React82.useMemo(
53100
+ const namesWithCompany = React83.useMemo(
53100
53101
  () => getPeople().map(getPersonNameWithCompany).join(", "),
53101
53102
  [getPeople, getPersonNameWithCompany]
53102
53103
  );
53103
53104
  const largeAvatarWidth = 35;
53104
53105
  const smallAvatarWidth = 27;
53105
53106
  const avatarOverlap = 7;
53106
- const avatarWidthCalc = React82.useMemo(() => {
53107
+ const avatarWidthCalc = React83.useMemo(() => {
53107
53108
  const avatarWidth = rowHeight === rowSize.lg ? largeAvatarWidth : smallAvatarWidth;
53108
53109
  const avatarCount = getPeople().length > NUM_AVATARS_SHOWN ? NUM_AVATARS_SHOWN + 1 : getPeople().length;
53109
53110
  if (avatarCount === 1) {
@@ -53130,13 +53131,13 @@ var Renderer6 = ({
53130
53131
  ((_g = columnDefinition.cellRendererParams) == null ? void 0 : _g.avatarStackItemFilter) ?? defaultAvatarStackItemFilter
53131
53132
  );
53132
53133
  const isAvatarStackDisplayed = fullCellView && avatarStackItems && !!avatarStackItems.length;
53133
- return /* @__PURE__ */ React82.createElement(
53134
+ return /* @__PURE__ */ React83.createElement(
53134
53135
  Flex,
53135
53136
  {
53136
53137
  direction: columnDefinition.autoHeight ? "column" : "row",
53137
53138
  className: cx8("dynamicRowHeightSpacing", columnDefinition.autoHeight)
53138
53139
  },
53139
- isAvatarStackDisplayed && /* @__PURE__ */ React82.createElement(
53140
+ isAvatarStackDisplayed && /* @__PURE__ */ React83.createElement(
53140
53141
  Box,
53141
53142
  {
53142
53143
  marginRight: "sm",
@@ -53147,7 +53148,7 @@ var Renderer6 = ({
53147
53148
  height: "32px"
53148
53149
  }
53149
53150
  },
53150
- /* @__PURE__ */ React82.createElement(
53151
+ /* @__PURE__ */ React83.createElement(
53151
53152
  AvatarStack,
53152
53153
  {
53153
53154
  items: avatarStackItems,
@@ -53156,13 +53157,13 @@ var Renderer6 = ({
53156
53157
  }
53157
53158
  )
53158
53159
  ),
53159
- people.length > 1 ? /* @__PURE__ */ React82.createElement(
53160
+ people.length > 1 ? /* @__PURE__ */ React83.createElement(
53160
53161
  Flex,
53161
53162
  {
53162
53163
  direction: fullCellView ? "column" : "row",
53163
53164
  style: { alignSelf: "center" }
53164
53165
  },
53165
- /* @__PURE__ */ React82.createElement(
53166
+ /* @__PURE__ */ React83.createElement(
53166
53167
  Typography,
53167
53168
  {
53168
53169
  className: !columnDefinition.autoHeight ? cx8("truncatingText", {
@@ -53174,13 +53175,13 @@ var Renderer6 = ({
53174
53175
  },
53175
53176
  namesWithCompany
53176
53177
  )
53177
- ) : /* @__PURE__ */ React82.createElement(
53178
+ ) : /* @__PURE__ */ React83.createElement(
53178
53179
  Flex,
53179
53180
  {
53180
53181
  direction: fullCellView ? "column" : "row",
53181
53182
  style: { alignSelf: "center" }
53182
53183
  },
53183
- /* @__PURE__ */ React82.createElement(
53184
+ /* @__PURE__ */ React83.createElement(
53184
53185
  Typography,
53185
53186
  {
53186
53187
  ...typographyProps,
@@ -53188,7 +53189,7 @@ var Renderer6 = ({
53188
53189
  },
53189
53190
  getPersonName(people[0])
53190
53191
  ),
53191
- getCompanyName(people[0]) && rowHeight === rowSize.sm ? /* @__PURE__ */ React82.createElement(React82.Fragment, null, /* @__PURE__ */ React82.createElement(
53192
+ getCompanyName(people[0]) && rowHeight === rowSize.sm ? /* @__PURE__ */ React83.createElement(React83.Fragment, null, /* @__PURE__ */ React83.createElement(
53192
53193
  Typography,
53193
53194
  {
53194
53195
  ...typographyProps,
@@ -53196,7 +53197,7 @@ var Renderer6 = ({
53196
53197
  style: { whiteSpace: "pre" }
53197
53198
  },
53198
53199
  " / "
53199
- ), /* @__PURE__ */ React82.createElement(
53200
+ ), /* @__PURE__ */ React83.createElement(
53200
53201
  Typography,
53201
53202
  {
53202
53203
  ...typographyProps,
@@ -53204,7 +53205,7 @@ var Renderer6 = ({
53204
53205
  className: cx8("truncatingText")
53205
53206
  },
53206
53207
  getCompanyName(people[0])
53207
- )) : /* @__PURE__ */ React82.createElement(
53208
+ )) : /* @__PURE__ */ React83.createElement(
53208
53209
  Typography,
53209
53210
  {
53210
53211
  ...typographyProps,
@@ -53231,7 +53232,7 @@ var Renderer7 = ({
53231
53232
  return null;
53232
53233
  }
53233
53234
  if (columnDefinition.editable) {
53234
- return /* @__PURE__ */ React82.createElement(
53235
+ return /* @__PURE__ */ React83.createElement(
53235
53236
  Typography,
53236
53237
  {
53237
53238
  ...getCellValueTypographyProps(
@@ -53248,7 +53249,7 @@ var Renderer7 = ({
53248
53249
  (_d = columnDefinition.cellRendererParams) == null ? void 0 : _d.formatConfig
53249
53250
  );
53250
53251
  if (isGroup) {
53251
- return /* @__PURE__ */ React82.createElement(
53252
+ return /* @__PURE__ */ React83.createElement(
53252
53253
  Typography,
53253
53254
  {
53254
53255
  intent: "small",
@@ -53258,7 +53259,7 @@ var Renderer7 = ({
53258
53259
  internalValue
53259
53260
  );
53260
53261
  }
53261
- return /* @__PURE__ */ React82.createElement(
53262
+ return /* @__PURE__ */ React83.createElement(
53262
53263
  Typography,
53263
53264
  {
53264
53265
  ...getCellValueTypographyProps(
@@ -53271,7 +53272,7 @@ var Renderer7 = ({
53271
53272
  );
53272
53273
  };
53273
53274
  var PercentCellRenderer = withDataTableRenderer(Renderer7, "input");
53274
- var Editor4 = React82.forwardRef(({ columnDefinition, eventKey, stopEditing, value }, ref) => {
53275
+ var Editor4 = React83.forwardRef(({ columnDefinition, eventKey, stopEditing, value }, ref) => {
53275
53276
  var _a, _b, _c, _d, _e;
53276
53277
  const I18n = useI18nContext();
53277
53278
  function onBlur() {
@@ -53285,7 +53286,7 @@ var Editor4 = React82.forwardRef(({ columnDefinition, eventKey, stopEditing, val
53285
53286
  symbol: void 0,
53286
53287
  symbolAfterValue: void 0
53287
53288
  });
53288
- return /* @__PURE__ */ React82.createElement(
53289
+ return /* @__PURE__ */ React83.createElement(
53289
53290
  Input,
53290
53291
  {
53291
53292
  placeholder: ((_d = (_c = columnDefinition.cellEditorParams) == null ? void 0 : _c.inputProps) == null ? void 0 : _d.placeholder) || I18n.t("dataTable.cells.percentCell.placeholder"),
@@ -53306,8 +53307,8 @@ var Renderer8 = ({
53306
53307
  value
53307
53308
  }) => {
53308
53309
  var _a, _b, _c, _d, _e, _f, _g, _h, _i;
53309
- const [showAvatar, setShowAvatar] = React82.useState(false);
53310
- React82.useEffect(() => {
53310
+ const [showAvatar, setShowAvatar] = React83.useState(false);
53311
+ React83.useEffect(() => {
53311
53312
  setShowAvatar(rowHeight === rowSize.lg || rowHeight === rowSize.md);
53312
53313
  }, [rowHeight]);
53313
53314
  if (value === void 0 || value === null) {
@@ -53321,12 +53322,12 @@ var Renderer8 = ({
53321
53322
  (_i = columnDefinition.cellRendererParams) == null ? void 0 : _i.typographyProps
53322
53323
  );
53323
53324
  if (isGroup) {
53324
- return /* @__PURE__ */ React82.createElement(Typography, { ...typographyProps, weight: "semibold" }, name);
53325
+ return /* @__PURE__ */ React83.createElement(Typography, { ...typographyProps, weight: "semibold" }, name);
53325
53326
  }
53326
53327
  if (!showAvatar) {
53327
- return /* @__PURE__ */ React82.createElement(React82.Fragment, null, /* @__PURE__ */ React82.createElement(Typography, { ...typographyProps, weight: "semibold", color: "gray15" }, name), companyName && /* @__PURE__ */ React82.createElement(React82.Fragment, null, /* @__PURE__ */ React82.createElement(Typography, { ...typographyProps, color: "gray15" }, " / "), /* @__PURE__ */ React82.createElement(Typography, { ...typographyProps, color: "gray45" }, companyName)));
53328
+ return /* @__PURE__ */ React83.createElement(React83.Fragment, null, /* @__PURE__ */ React83.createElement(Typography, { ...typographyProps, weight: "semibold", color: "gray15" }, name), companyName && /* @__PURE__ */ React83.createElement(React83.Fragment, null, /* @__PURE__ */ React83.createElement(Typography, { ...typographyProps, color: "gray15" }, " / "), /* @__PURE__ */ React83.createElement(Typography, { ...typographyProps, color: "gray45" }, companyName)));
53328
53329
  }
53329
- return /* @__PURE__ */ React82.createElement(
53330
+ return /* @__PURE__ */ React83.createElement(
53330
53331
  ContactItem,
53331
53332
  {
53332
53333
  description: companyName,
@@ -53353,7 +53354,7 @@ var Renderer9 = ({
53353
53354
  return null;
53354
53355
  }
53355
53356
  if (columnDefinition.editable) {
53356
- return /* @__PURE__ */ React82.createElement(
53357
+ return /* @__PURE__ */ React83.createElement(
53357
53358
  Typography,
53358
53359
  {
53359
53360
  ...getCellValueTypographyProps(
@@ -53373,16 +53374,16 @@ var Renderer9 = ({
53373
53374
  (_d = columnDefinition.cellRendererParams) == null ? void 0 : _d.typographyProps
53374
53375
  );
53375
53376
  if (isGroup || rowPinned && columnDefinition.aggFunc) {
53376
- return /* @__PURE__ */ React82.createElement(Typography, { ...typographyProps, weight: "semibold" }, label);
53377
+ return /* @__PURE__ */ React83.createElement(Typography, { ...typographyProps, weight: "semibold" }, label);
53377
53378
  }
53378
- return /* @__PURE__ */ React82.createElement(Pill, { color: getColor(value), className: cx10("pill-cell") }, label == null ? void 0 : label.toUpperCase());
53379
+ return /* @__PURE__ */ React83.createElement(Pill, { color: getColor(value), className: cx10("pill-cell") }, label == null ? void 0 : label.toUpperCase());
53379
53380
  };
53380
53381
  var PillCellRenderer = withDataTableRenderer(Renderer9, "select");
53381
- var Editor5 = React82.forwardRef(
53382
+ var Editor5 = React83.forwardRef(
53382
53383
  ({ columnDefinition, data, setDataValue, stopEditing, value }, ref) => {
53383
53384
  var _a, _b, _c;
53384
- const [options, setOptions] = React82.useState([]);
53385
- const [loading, setLoading] = React82.useState(false);
53385
+ const [options, setOptions] = React83.useState([]);
53386
+ const [loading, setLoading] = React83.useState(false);
53386
53387
  const I18n = useI18nContext();
53387
53388
  function afterHide() {
53388
53389
  stopEditing();
@@ -53414,7 +53415,7 @@ var Editor5 = React82.forwardRef(
53414
53415
  const unformattedLabel = ((_a2 = columnDefinition.getStringFormattedValue) == null ? void 0 : _a2.call(columnDefinition, item)) || "";
53415
53416
  return unformattedLabel.toUpperCase();
53416
53417
  }
53417
- return /* @__PURE__ */ React82.createElement(
53418
+ return /* @__PURE__ */ React83.createElement(
53418
53419
  PillSelect,
53419
53420
  {
53420
53421
  placeholder: ((_a = columnDefinition.cellEditorParams) == null ? void 0 : _a.placeholder) || I18n.t("dataTable.cells.pillCell.placeholder", {
@@ -53451,7 +53452,7 @@ var Renderer10 = ({
53451
53452
  return null;
53452
53453
  }
53453
53454
  if (columnDefinition.editable) {
53454
- return /* @__PURE__ */ React82.createElement(
53455
+ return /* @__PURE__ */ React83.createElement(
53455
53456
  Typography,
53456
53457
  {
53457
53458
  ...getCellValueTypographyProps(
@@ -53470,7 +53471,7 @@ var Renderer10 = ({
53470
53471
  (_d = columnDefinition.cellRendererParams) == null ? void 0 : _d.typographyProps
53471
53472
  );
53472
53473
  if (isGroup) {
53473
- return /* @__PURE__ */ React82.createElement(
53474
+ return /* @__PURE__ */ React83.createElement(
53474
53475
  Typography,
53475
53476
  {
53476
53477
  className: cx11("truncatingText"),
@@ -53480,14 +53481,14 @@ var Renderer10 = ({
53480
53481
  internalValue
53481
53482
  );
53482
53483
  }
53483
- return /* @__PURE__ */ React82.createElement(Typography, { className: cx11("truncatingText"), ...typographyProps }, internalValue);
53484
+ return /* @__PURE__ */ React83.createElement(Typography, { className: cx11("truncatingText"), ...typographyProps }, internalValue);
53484
53485
  };
53485
53486
  var SelectCellRenderer = withDataTableRenderer(Renderer10, "select");
53486
53487
  function useSearch(data, onSearchFunction) {
53487
- const [searchResultOptions, setSearchResultOptions] = React82.useState(void 0);
53488
- const searchTerm = React82.useRef("");
53488
+ const [searchResultOptions, setSearchResultOptions] = React83.useState(void 0);
53489
+ const searchTerm = React83.useRef("");
53489
53490
  const searchEnabled = typeof onSearchFunction === "function";
53490
- const onSearch = React82.useCallback(
53491
+ const onSearch = React83.useCallback(
53491
53492
  async (event) => {
53492
53493
  searchTerm.current = event.target.value;
53493
53494
  if (searchTerm.current.length === 0) {
@@ -53512,11 +53513,11 @@ function useSearch(data, onSearchFunction) {
53512
53513
  searchResultOptions
53513
53514
  };
53514
53515
  }
53515
- var Editor6 = React82.forwardRef(
53516
+ var Editor6 = React83.forwardRef(
53516
53517
  ({ columnDefinition, data, setDataValue, stopEditing, value }, ref) => {
53517
53518
  var _a, _b;
53518
- const [options, setOptions] = React82.useState([]);
53519
- const [loading, setLoading] = React82.useState(false);
53519
+ const [options, setOptions] = React83.useState([]);
53520
+ const [loading, setLoading] = React83.useState(false);
53520
53521
  const { onSearch, searchResultOptions } = useSearch(
53521
53522
  data,
53522
53523
  (_a = columnDefinition.cellEditorParams) == null ? void 0 : _a.onSearch
@@ -53553,7 +53554,7 @@ var Editor6 = React82.forwardRef(
53553
53554
  var _a2, _b2;
53554
53555
  return ((_b2 = (_a2 = columnDefinition.cellEditorParams) == null ? void 0 : _a2.getOptionLabel) == null ? void 0 : _b2.call(_a2, option)) || getLabel3(option);
53555
53556
  }
53556
- return /* @__PURE__ */ React82.createElement(
53557
+ return /* @__PURE__ */ React83.createElement(
53557
53558
  Select,
53558
53559
  {
53559
53560
  afterHide: () => stopEditing(),
@@ -53567,7 +53568,7 @@ var Editor6 = React82.forwardRef(
53567
53568
  ref,
53568
53569
  className: cx11("input-cell", "truncatingText")
53569
53570
  },
53570
- (searchResultOptions || options).map((item) => /* @__PURE__ */ React82.createElement(
53571
+ (searchResultOptions || options).map((item) => /* @__PURE__ */ React83.createElement(
53571
53572
  Select.Option,
53572
53573
  {
53573
53574
  key: getId3(item),
@@ -53594,7 +53595,7 @@ var Renderer11 = ({
53594
53595
  if (isGroup) {
53595
53596
  return null;
53596
53597
  }
53597
- return /* @__PURE__ */ React82.createElement(
53598
+ return /* @__PURE__ */ React83.createElement(
53598
53599
  Typography,
53599
53600
  {
53600
53601
  ...getCellValueTypographyProps(
@@ -53620,7 +53621,7 @@ var Renderer11 = ({
53620
53621
  );
53621
53622
  if (isGroup) {
53622
53623
  const fontWeight = (node == null ? void 0 : node.footer) ? "regular" : "semibold";
53623
- return /* @__PURE__ */ React82.createElement(
53624
+ return /* @__PURE__ */ React83.createElement(
53624
53625
  Typography,
53625
53626
  {
53626
53627
  ...typographyProps,
@@ -53631,10 +53632,10 @@ var Renderer11 = ({
53631
53632
  (node == null ? void 0 : node.footer) ? value : internalValue
53632
53633
  );
53633
53634
  }
53634
- return /* @__PURE__ */ React82.createElement(Typography, { ...typographyProps, className }, internalValue);
53635
+ return /* @__PURE__ */ React83.createElement(Typography, { ...typographyProps, className }, internalValue);
53635
53636
  };
53636
53637
  var TextCellRenderer = withDataTableRenderer(Renderer11, "input");
53637
- var Editor7 = React82.forwardRef(
53638
+ var Editor7 = React83.forwardRef(
53638
53639
  ({ columnDefinition, eventKey, stopEditing, value }, ref) => {
53639
53640
  var _a, _b, _c, _d;
53640
53641
  function onBlur() {
@@ -53642,7 +53643,7 @@ var Editor7 = React82.forwardRef(
53642
53643
  }
53643
53644
  const I18n = useI18nContext();
53644
53645
  const internalValue = eventKey ? value : ((_a = columnDefinition.getStringFormattedValue) == null ? void 0 : _a.call(columnDefinition, value)) ?? value;
53645
- return /* @__PURE__ */ React82.createElement(
53646
+ return /* @__PURE__ */ React83.createElement(
53646
53647
  Input,
53647
53648
  {
53648
53649
  placeholder: ((_c = (_b = columnDefinition.cellEditorParams) == null ? void 0 : _b.inputProps) == null ? void 0 : _c.placeholder) || I18n.t("dataTable.cells.textCell.placeholder"),
@@ -53662,7 +53663,7 @@ var GrandTotalsLabelRenderer = (props) => {
53662
53663
  const { grandTotalsLabelInnerRenderer: GrandTotalsLabelInnerRenderer } = useInternalTableContext();
53663
53664
  const isFirstColumn2 = ((_b = (_a = props.columnApi.getAllDisplayedColumns()) == null ? void 0 : _a[0]) == null ? void 0 : _b.getId()) === ((_c = props.column) == null ? void 0 : _c.getId());
53664
53665
  if (isFirstColumn2) {
53665
- return GrandTotalsLabelInnerRenderer ? /* @__PURE__ */ React82.createElement(GrandTotalsLabelInnerRenderer, { ...props }) : /* @__PURE__ */ React82.createElement(Typography, { intent: "small", weight: "semibold" }, I18n.t("dataTable.grandTotals"));
53666
+ return GrandTotalsLabelInnerRenderer ? /* @__PURE__ */ React83.createElement(GrandTotalsLabelInnerRenderer, { ...props }) : /* @__PURE__ */ React83.createElement(Typography, { intent: "small", weight: "semibold" }, I18n.t("dataTable.grandTotals"));
53666
53667
  }
53667
53668
  return null;
53668
53669
  };
@@ -53679,7 +53680,7 @@ var Renderer12 = ({
53679
53680
  if (isGroup) {
53680
53681
  return null;
53681
53682
  }
53682
- return /* @__PURE__ */ React82.createElement(
53683
+ return /* @__PURE__ */ React83.createElement(
53683
53684
  Typography,
53684
53685
  {
53685
53686
  ...getCellValueTypographyProps(
@@ -53696,7 +53697,7 @@ var Renderer12 = ({
53696
53697
  );
53697
53698
  if (isGroup) {
53698
53699
  const fontWeight = (node == null ? void 0 : node.footer) ? "regular" : "semibold";
53699
- return /* @__PURE__ */ React82.createElement(
53700
+ return /* @__PURE__ */ React83.createElement(
53700
53701
  Typography,
53701
53702
  {
53702
53703
  ...typographyProps,
@@ -53706,9 +53707,9 @@ var Renderer12 = ({
53706
53707
  (node == null ? void 0 : node.footer) ? value : internalValue
53707
53708
  );
53708
53709
  }
53709
- return /* @__PURE__ */ React82.createElement(Typography, { ...typographyProps, className: cx13("textarea-cell", "text") }, internalValue);
53710
+ return /* @__PURE__ */ React83.createElement(Typography, { ...typographyProps, className: cx13("textarea-cell", "text") }, internalValue);
53710
53711
  };
53711
- var Editor8 = React82.forwardRef(
53712
+ var Editor8 = React83.forwardRef(
53712
53713
  ({ columnDefinition, stopEditing, value }, ref) => {
53713
53714
  var _a, _b, _c, _d;
53714
53715
  function onBlur() {
@@ -53716,7 +53717,7 @@ var Editor8 = React82.forwardRef(
53716
53717
  }
53717
53718
  const I18n = useI18nContext();
53718
53719
  const internalValue = ((_a = columnDefinition.getStringFormattedValue) == null ? void 0 : _a.call(columnDefinition, value)) ?? value;
53719
- return /* @__PURE__ */ React82.createElement(
53720
+ return /* @__PURE__ */ React83.createElement(
53720
53721
  TextArea,
53721
53722
  {
53722
53723
  placeholder: ((_c = (_b = columnDefinition.cellEditorParams) == null ? void 0 : _b.textAreaProps) == null ? void 0 : _c.placeholder) || I18n.t("dataTable.cells.textCell.placeholder"),
@@ -53762,7 +53763,7 @@ function defaultGetLabel(option) {
53762
53763
  function defaultGetId(option) {
53763
53764
  return (option == null ? void 0 : option.id) ?? option;
53764
53765
  }
53765
- var LocationFilterOverlay = React82.forwardRef(
53766
+ var LocationFilterOverlay = React83.forwardRef(
53766
53767
  ({
53767
53768
  getId: getId3,
53768
53769
  getLabel: getLabel3,
@@ -53776,9 +53777,9 @@ var LocationFilterOverlay = React82.forwardRef(
53776
53777
  columnDefinition,
53777
53778
  value
53778
53779
  }, ref) => {
53779
- const [items, setItems] = React82.useState(options);
53780
- const [searching, setSearching] = React82.useState(false);
53781
- const menuRef = React82.useRef(null);
53780
+ const [items, setItems] = React83.useState(options);
53781
+ const [searching, setSearching] = React83.useState(false);
53782
+ const menuRef = React83.useRef(null);
53782
53783
  const I18n = useI18nContext();
53783
53784
  const { menuProps, menuNavigationTriggerProps } = UNSAFE_useMenuImperativeControlNavigation(menuRef);
53784
53785
  const selectAllOption = {
@@ -53812,11 +53813,11 @@ var LocationFilterOverlay = React82.forwardRef(
53812
53813
  }
53813
53814
  }
53814
53815
  const _onSearch = columnDefinition.filterProps.onSearch || defaultOnSearch;
53815
- React82.useEffect(() => {
53816
+ React83.useEffect(() => {
53816
53817
  var _a;
53817
53818
  (_a = menuRef.current) == null ? void 0 : _a.highlightSuggested();
53818
53819
  }, []);
53819
- return /* @__PURE__ */ React82.createElement(Card, { ref }, /* @__PURE__ */ React82.createElement(
53820
+ return /* @__PURE__ */ React83.createElement(Card, { ref }, /* @__PURE__ */ React83.createElement(
53820
53821
  UNSAFE_Menu,
53821
53822
  {
53822
53823
  ...menuProps,
@@ -53826,20 +53827,20 @@ var LocationFilterOverlay = React82.forwardRef(
53826
53827
  onSelect,
53827
53828
  className: locationFilterStyles_default.locationFilterMenu
53828
53829
  },
53829
- /* @__PURE__ */ React82.createElement(
53830
+ /* @__PURE__ */ React83.createElement(
53830
53831
  UNSAFE_Menu.Search,
53831
53832
  {
53832
53833
  ...menuNavigationTriggerProps,
53833
53834
  onChange: _onSearch
53834
53835
  }
53835
53836
  ),
53836
- /* @__PURE__ */ React82.createElement(UNSAFE_Menu.Options, null, !searching && /* @__PURE__ */ React82.createElement(
53837
+ /* @__PURE__ */ React83.createElement(UNSAFE_Menu.Options, null, !searching && /* @__PURE__ */ React83.createElement(
53837
53838
  Box,
53838
53839
  {
53839
53840
  className: locationFilterStyles_default.controlsContainer,
53840
53841
  ...UNSAFE_menuItemsWrapperAttribute
53841
53842
  },
53842
- /* @__PURE__ */ React82.createElement(
53843
+ /* @__PURE__ */ React83.createElement(
53843
53844
  UNSAFE_Menu.CheckboxItem,
53844
53845
  {
53845
53846
  key: getId3(includeSublocationOption),
@@ -53848,7 +53849,7 @@ var LocationFilterOverlay = React82.forwardRef(
53848
53849
  },
53849
53850
  getLabel3(includeSublocationOption)
53850
53851
  ),
53851
- /* @__PURE__ */ React82.createElement(
53852
+ /* @__PURE__ */ React83.createElement(
53852
53853
  UNSAFE_Menu.CheckboxItem,
53853
53854
  {
53854
53855
  key: getId3(selectAllOption),
@@ -53859,7 +53860,7 @@ var LocationFilterOverlay = React82.forwardRef(
53859
53860
  getLabel3(selectAllOption)
53860
53861
  )
53861
53862
  ), !loading && items.map((item, i) => {
53862
- return /* @__PURE__ */ React82.createElement(
53863
+ return /* @__PURE__ */ React83.createElement(
53863
53864
  UNSAFE_Menu.CheckboxItem,
53864
53865
  {
53865
53866
  key: getId3(item),
@@ -53870,11 +53871,11 @@ var LocationFilterOverlay = React82.forwardRef(
53870
53871
  getLabel3(item)
53871
53872
  );
53872
53873
  })),
53873
- loading && /* @__PURE__ */ React82.createElement(UNSAFE_Menu.Footer, null, /* @__PURE__ */ React82.createElement(Flex, { justifyContent: "center" }, /* @__PURE__ */ React82.createElement(Spinner$1, { size: "sm" })))
53874
+ loading && /* @__PURE__ */ React83.createElement(UNSAFE_Menu.Footer, null, /* @__PURE__ */ React83.createElement(Flex, { justifyContent: "center" }, /* @__PURE__ */ React83.createElement(Spinner$1, { size: "sm" })))
53874
53875
  ));
53875
53876
  }
53876
53877
  );
53877
- var ServerSideLocationFilterRenderer = React82.forwardRef(
53878
+ var ServerSideLocationFilterRenderer = React83.forwardRef(
53878
53879
  ({ value = [], options, columnDefinition, onChange, loading, getOptions }, ref) => {
53879
53880
  var _a, _b;
53880
53881
  const getId3 = ((_a = columnDefinition.filterProps) == null ? void 0 : _a.getId) || defaultGetId;
@@ -53891,18 +53892,18 @@ var ServerSideLocationFilterRenderer = React82.forwardRef(
53891
53892
  }
53892
53893
  return "none";
53893
53894
  };
53894
- const ids = React82.useMemo(() => value.map(({ id }) => id), [value]);
53895
- const [selectedValueIds, setSelectedValueIds] = React82.useState(ids);
53896
- const [selectState, setSelectState] = React82.useState(
53895
+ const ids = React83.useMemo(() => value.map(({ id }) => id), [value]);
53896
+ const [selectedValueIds, setSelectedValueIds] = React83.useState(ids);
53897
+ const [selectState, setSelectState] = React83.useState(
53897
53898
  determineSelectedState(value)
53898
53899
  );
53899
- const [enableSublocations, setEnableSublocations] = React82.useState(false);
53900
- const onSelectSublocations = React82.useCallback(() => {
53900
+ const [enableSublocations, setEnableSublocations] = React83.useState(false);
53901
+ const onSelectSublocations = React83.useCallback(() => {
53901
53902
  setEnableSublocations(!enableSublocations);
53902
53903
  }, [enableSublocations]);
53903
53904
  const I18n = useI18nContext();
53904
- const selectRef = React82.useRef(null);
53905
- const onSelectAll = React82.useCallback(() => {
53905
+ const selectRef = React83.useRef(null);
53906
+ const onSelectAll = React83.useCallback(() => {
53906
53907
  if (selectState === "none" || selectState === "partial") {
53907
53908
  setSelectState("all");
53908
53909
  setSelectedValueIds(options.map(({ id }) => id));
@@ -53940,7 +53941,7 @@ var ServerSideLocationFilterRenderer = React82.forwardRef(
53940
53941
  return [];
53941
53942
  }
53942
53943
  };
53943
- const removeSelections = React82.useCallback(
53944
+ const removeSelections = React83.useCallback(
53944
53945
  function(selection, selected) {
53945
53946
  const sublocations = handleSelectSublocations(selection);
53946
53947
  return enableSublocations ? selected.filter(
@@ -53952,10 +53953,10 @@ var ServerSideLocationFilterRenderer = React82.forwardRef(
53952
53953
  },
53953
53954
  [enableSublocations]
53954
53955
  );
53955
- React82.useEffect(() => {
53956
+ React83.useEffect(() => {
53956
53957
  setSelectState(determineSelectedState(value));
53957
53958
  }, [value]);
53958
- const overlay = /* @__PURE__ */ React82.createElement(
53959
+ const overlay = /* @__PURE__ */ React83.createElement(
53959
53960
  LocationFilterOverlay,
53960
53961
  {
53961
53962
  columnDefinition,
@@ -53973,7 +53974,7 @@ var ServerSideLocationFilterRenderer = React82.forwardRef(
53973
53974
  ref: selectRef
53974
53975
  }
53975
53976
  );
53976
- return /* @__PURE__ */ React82.createElement(
53977
+ return /* @__PURE__ */ React83.createElement(
53977
53978
  OverlayTrigger,
53978
53979
  {
53979
53980
  overlay,
@@ -53981,7 +53982,7 @@ var ServerSideLocationFilterRenderer = React82.forwardRef(
53981
53982
  beforeShow: getOptions,
53982
53983
  placement: "bottom-left"
53983
53984
  },
53984
- /* @__PURE__ */ React82.createElement(
53985
+ /* @__PURE__ */ React83.createElement(
53985
53986
  Select.Button,
53986
53987
  {
53987
53988
  block: true,
@@ -53997,7 +53998,7 @@ var ServerSideLocationFilterRenderer = React82.forwardRef(
53997
53998
  var LocationFilterRenderer = (props) => {
53998
53999
  const { onServerSideDataRequest } = useInternalTableContext();
53999
54000
  if (onServerSideDataRequest) {
54000
- return /* @__PURE__ */ React82.createElement(ServerSideLocationFilterRenderer, { ...props });
54001
+ return /* @__PURE__ */ React83.createElement(ServerSideLocationFilterRenderer, { ...props });
54001
54002
  }
54002
54003
  console.error(
54003
54004
  "Warning: Location Filters are currently only implemented for the serverside row model"
@@ -54031,9 +54032,9 @@ function useFilterState({
54031
54032
  gridApi,
54032
54033
  enabled
54033
54034
  }) {
54034
- const [allAvailableFilters, setAllAvailableFilters] = React82.useState([]);
54035
- const listenersEnabled = React82.useRef(false);
54036
- const getFieldFilter = React82.useCallback(
54035
+ const [allAvailableFilters, setAllAvailableFilters] = React83.useState([]);
54036
+ const listenersEnabled = React83.useRef(false);
54037
+ const getFieldFilter = React83.useCallback(
54037
54038
  (fieldName) => {
54038
54039
  const fieldFieldInstance = gridApi == null ? void 0 : gridApi.getFilterInstance(fieldName);
54039
54040
  if (fieldFieldInstance === null || fieldFieldInstance === void 0) {
@@ -54043,7 +54044,7 @@ function useFilterState({
54043
54044
  },
54044
54045
  [gridApi]
54045
54046
  );
54046
- const getFieldFilters = React82.useCallback(() => {
54047
+ const getFieldFilters = React83.useCallback(() => {
54047
54048
  return filterableColumns.map((column2) => {
54048
54049
  const filterInstance = getFieldFilter(column2.field);
54049
54050
  const instanceOptions = getInstanceOptions(
@@ -54057,7 +54058,7 @@ function useFilterState({
54057
54058
  };
54058
54059
  }).filter((filter) => filter.instance !== void 0);
54059
54060
  }, [getFieldFilter, gridApi]);
54060
- const filterableColumns = React82.useMemo(() => {
54061
+ const filterableColumns = React83.useMemo(() => {
54061
54062
  return columnDefinitions.filter((colDef) => !!colDef.filterRenderer).sort(sortColumnDefinitionsByFilterIndex);
54062
54063
  }, [columnDefinitions]);
54063
54064
  const filterEventFunction = function filterEventFunction2() {
@@ -54066,7 +54067,7 @@ function useFilterState({
54066
54067
  allFilters && setAllAvailableFilters(allFilters);
54067
54068
  }
54068
54069
  };
54069
- React82.useEffect(() => {
54070
+ React83.useEffect(() => {
54070
54071
  if (enabled) {
54071
54072
  listenersEnabled.current = true;
54072
54073
  gridApi == null ? void 0 : gridApi.addEventListener("filterChanged", filterEventFunction);
@@ -54141,7 +54142,7 @@ function ServerSideMultiSelectFilterRenderer({
54141
54142
  ...props
54142
54143
  }) {
54143
54144
  var _a;
54144
- return /* @__PURE__ */ React82.createElement(
54145
+ return /* @__PURE__ */ React83.createElement(
54145
54146
  MultiSelect,
54146
54147
  {
54147
54148
  ...props,
@@ -54171,7 +54172,7 @@ function ClientSideMultiSelectFilterRenderer({
54171
54172
  value = [],
54172
54173
  ...props
54173
54174
  }) {
54174
- return /* @__PURE__ */ React82.createElement(
54175
+ return /* @__PURE__ */ React83.createElement(
54175
54176
  MultiSelect,
54176
54177
  {
54177
54178
  ...props,
@@ -54201,13 +54202,13 @@ var MultiSelectFilterRenderer = (props) => {
54201
54202
  );
54202
54203
  return null;
54203
54204
  }
54204
- return /* @__PURE__ */ React82.createElement(Renderer13, { value, ...otherProps });
54205
+ return /* @__PURE__ */ React83.createElement(Renderer13, { value, ...otherProps });
54205
54206
  };
54206
54207
  var MultiSelectFilterRenderer_default = MultiSelectFilterRenderer;
54207
54208
  var scope = "dataTable.filters.numberFilter";
54208
54209
  function useFilterOptions() {
54209
54210
  const I18n = useI18nContext();
54210
- const filterOptions = React82.useMemo(() => {
54211
+ const filterOptions = React83.useMemo(() => {
54211
54212
  return [
54212
54213
  {
54213
54214
  id: "any_value",
@@ -54259,18 +54260,18 @@ function useFilterOptions() {
54259
54260
  }, [I18n]);
54260
54261
  return filterOptions;
54261
54262
  }
54262
- var NumberFilterRenderer = React82.memo(
54263
+ var NumberFilterRenderer = React83.memo(
54263
54264
  function(props) {
54264
54265
  const I18n = useI18nContext();
54265
54266
  const defaultFilterOptions = useFilterOptions();
54266
- const lowerLimitInputRef = React82.useRef(null);
54267
- const [localValue, setLocalValue] = React82.useState(
54267
+ const lowerLimitInputRef = React83.useRef(null);
54268
+ const [localValue, setLocalValue] = React83.useState(
54268
54269
  toNumberFilterValue(props.value)
54269
54270
  );
54270
- const [externalValue, setExternalValue] = React82.useState(
54271
+ const [externalValue, setExternalValue] = React83.useState(
54271
54272
  toNumberFilterValue(props.value)
54272
54273
  );
54273
- const localLabel = React82.useMemo(() => {
54274
+ const localLabel = React83.useMemo(() => {
54274
54275
  var _a;
54275
54276
  if (localValue === void 0 || localValue === null) {
54276
54277
  return void 0;
@@ -54279,17 +54280,17 @@ var NumberFilterRenderer = React82.memo(
54279
54280
  (option) => option.id === localValue.type
54280
54281
  )) == null ? void 0 : _a.label;
54281
54282
  }, [localValue]);
54282
- const hasNumberInputsEnabled = React82.useMemo(() => {
54283
+ const hasNumberInputsEnabled = React83.useMemo(() => {
54283
54284
  return localValue && localValue.type !== "any_value" && localValue.type !== "no_value";
54284
54285
  }, [localValue]);
54285
- const hasUpperLimitValue = React82.useMemo(() => {
54286
+ const hasUpperLimitValue = React83.useMemo(() => {
54286
54287
  return (localValue == null ? void 0 : localValue.type) === "inRange";
54287
54288
  }, [localValue]);
54288
- const onClear = React82.useCallback(() => {
54289
+ const onClear = React83.useCallback(() => {
54289
54290
  setLocalValue(void 0);
54290
54291
  props.onChange(void 0);
54291
54292
  }, []);
54292
- const onSelect = React82.useCallback(({ item }) => {
54293
+ const onSelect = React83.useCallback(({ item }) => {
54293
54294
  setLocalValue((prev) => {
54294
54295
  return getOnSelectChangeValue(prev, item.id);
54295
54296
  });
@@ -54301,7 +54302,7 @@ var NumberFilterRenderer = React82.memo(
54301
54302
  return (_a = lowerLimitInputRef.current) == null ? void 0 : _a.focus();
54302
54303
  });
54303
54304
  }, []);
54304
- const onUpdateLowerLimit = React82.useCallback((event) => {
54305
+ const onUpdateLowerLimit = React83.useCallback((event) => {
54305
54306
  const inputValue = event.target.value;
54306
54307
  setLocalValue((prev) => {
54307
54308
  return getLowerLimitChangeValue(prev, inputValue);
@@ -54313,7 +54314,7 @@ var NumberFilterRenderer = React82.memo(
54313
54314
  return getLowerLimitChangeValue(prev, inputValue);
54314
54315
  });
54315
54316
  }, []);
54316
- const onUpdateUpperLimit = React82.useCallback((event) => {
54317
+ const onUpdateUpperLimit = React83.useCallback((event) => {
54317
54318
  const inputValue = event.target.value;
54318
54319
  setLocalValue((prev) => {
54319
54320
  return {
@@ -54333,11 +54334,11 @@ var NumberFilterRenderer = React82.memo(
54333
54334
  };
54334
54335
  });
54335
54336
  }, []);
54336
- const valueUpdate = React82.useCallback(debounce2(props.onChange, 500), []);
54337
- React82.useEffect(() => {
54337
+ const valueUpdate = React83.useCallback(debounce2(props.onChange, 500), []);
54338
+ React83.useEffect(() => {
54338
54339
  setLocalValue(toNumberFilterValue(props.value));
54339
54340
  }, [props.value]);
54340
- React82.useEffect(() => {
54341
+ React83.useEffect(() => {
54341
54342
  const value = toNumberFilterModel({
54342
54343
  type: (externalValue == null ? void 0 : externalValue.type) ?? (localValue == null ? void 0 : localValue.type),
54343
54344
  filter: (externalValue == null ? void 0 : externalValue.filter) ?? (localValue == null ? void 0 : localValue.filter),
@@ -54345,7 +54346,7 @@ var NumberFilterRenderer = React82.memo(
54345
54346
  });
54346
54347
  isValidInput(value) && valueUpdate(value);
54347
54348
  }, [externalValue]);
54348
- return /* @__PURE__ */ React82.createElement(React82.Fragment, null, /* @__PURE__ */ React82.createElement(
54349
+ return /* @__PURE__ */ React83.createElement(React83.Fragment, null, /* @__PURE__ */ React83.createElement(
54349
54350
  Select,
54350
54351
  {
54351
54352
  block: true,
@@ -54357,7 +54358,7 @@ var NumberFilterRenderer = React82.memo(
54357
54358
  scope
54358
54359
  })
54359
54360
  },
54360
- defaultFilterOptions.map((item) => /* @__PURE__ */ React82.createElement(
54361
+ defaultFilterOptions.map((item) => /* @__PURE__ */ React83.createElement(
54361
54362
  Select.Option,
54362
54363
  {
54363
54364
  key: item.id,
@@ -54366,7 +54367,7 @@ var NumberFilterRenderer = React82.memo(
54366
54367
  },
54367
54368
  item.label
54368
54369
  ))
54369
- ), hasNumberInputsEnabled && /* @__PURE__ */ React82.createElement(
54370
+ ), hasNumberInputsEnabled && /* @__PURE__ */ React83.createElement(
54370
54371
  FlexList,
54371
54372
  {
54372
54373
  alignItems: "center",
@@ -54376,7 +54377,7 @@ var NumberFilterRenderer = React82.memo(
54376
54377
  padding: "md none",
54377
54378
  size: "xs"
54378
54379
  },
54379
- /* @__PURE__ */ React82.createElement(
54380
+ /* @__PURE__ */ React83.createElement(
54380
54381
  Input,
54381
54382
  {
54382
54383
  ref: lowerLimitInputRef,
@@ -54389,11 +54390,11 @@ var NumberFilterRenderer = React82.memo(
54389
54390
  onChange: onUpdateLowerLimit
54390
54391
  }
54391
54392
  ),
54392
- hasUpperLimitValue && /* @__PURE__ */ React82.createElement(Typography, null, I18n.t("labels.and", {
54393
+ hasUpperLimitValue && /* @__PURE__ */ React83.createElement(Typography, null, I18n.t("labels.and", {
54393
54394
  defaultValue: "and",
54394
54395
  scope
54395
54396
  })),
54396
- hasUpperLimitValue && /* @__PURE__ */ React82.createElement(
54397
+ hasUpperLimitValue && /* @__PURE__ */ React83.createElement(
54397
54398
  Input,
54398
54399
  {
54399
54400
  type: "number",
@@ -54505,7 +54506,7 @@ var useServerSideFilter = ({
54505
54506
  },
54506
54507
  updateServerSideDataSource
54507
54508
  } = useInternalTableContext();
54508
- const [loadingFilter, setLoadingFilter] = React82.useState(false);
54509
+ const [loadingFilter, setLoadingFilter] = React83.useState(false);
54509
54510
  const fieldName = columnDefinition.field;
54510
54511
  async function getFilterOptions() {
54511
54512
  if (!getOptions(fieldName)) {
@@ -54555,7 +54556,7 @@ var ServerSideFilter = ({
54555
54556
  );
54556
54557
  return null;
54557
54558
  }
54558
- return /* @__PURE__ */ React82.createElement(
54559
+ return /* @__PURE__ */ React83.createElement(
54559
54560
  Box,
54560
54561
  {
54561
54562
  as: "li",
@@ -54563,8 +54564,8 @@ var ServerSideFilter = ({
54563
54564
  paddingBottom: "xl",
54564
54565
  style: { width: "100%" }
54565
54566
  },
54566
- filterHeading ? /* @__PURE__ */ React82.createElement(H3, { "data-qa": `data-table-filter-heading-${fieldName}` }, filterHeading) : null,
54567
- /* @__PURE__ */ React82.createElement(
54567
+ filterHeading ? /* @__PURE__ */ React83.createElement(H3, { "data-qa": `data-table-filter-heading-${fieldName}` }, filterHeading) : null,
54568
+ /* @__PURE__ */ React83.createElement(
54568
54569
  Component4,
54569
54570
  {
54570
54571
  columnDefinition,
@@ -55295,7 +55296,7 @@ function ClientSideRowCheckbox(props) {
55295
55296
  removeEventListenerFromGrid("rowSelected", handleRowSelection, props.api);
55296
55297
  };
55297
55298
  }, []);
55298
- return /* @__PURE__ */ React82.createElement(Box, { paddingRight: "md" }, /* @__PURE__ */ React82.createElement(
55299
+ return /* @__PURE__ */ React83.createElement(Box, { paddingRight: "md" }, /* @__PURE__ */ React83.createElement(
55299
55300
  Checkbox,
55300
55301
  {
55301
55302
  checked: selectedState,
@@ -55334,7 +55335,7 @@ function ServerSideRowCheckbox(props) {
55334
55335
  props.node,
55335
55336
  (_c = rowSelectionRef.current) == null ? void 0 : _c.affectedRows
55336
55337
  );
55337
- return /* @__PURE__ */ React82.createElement(Box, { paddingRight: "md" }, /* @__PURE__ */ React82.createElement(
55338
+ return /* @__PURE__ */ React83.createElement(Box, { paddingRight: "md" }, /* @__PURE__ */ React83.createElement(
55338
55339
  Checkbox,
55339
55340
  {
55340
55341
  checked,
@@ -55357,7 +55358,7 @@ function ServerSideRowCheckbox(props) {
55357
55358
  }
55358
55359
  function RowCheckbox(props) {
55359
55360
  const { onServerSideDataRequest } = useInternalTableContext();
55360
- return onServerSideDataRequest ? /* @__PURE__ */ React82.createElement(ServerSideRowCheckbox, { ...props }) : /* @__PURE__ */ React82.createElement(ClientSideRowCheckbox, { ...props });
55361
+ return onServerSideDataRequest ? /* @__PURE__ */ React83.createElement(ServerSideRowCheckbox, { ...props }) : /* @__PURE__ */ React83.createElement(ClientSideRowCheckbox, { ...props });
55361
55362
  }
55362
55363
 
55363
55364
  // src/CellRenderers/AutoGroupCell.tsx
@@ -55374,7 +55375,7 @@ var LevelIndents = (props) => {
55374
55375
  if (levels.length === 0) {
55375
55376
  return null;
55376
55377
  }
55377
- return /* @__PURE__ */ React82.createElement("div", { style: { paddingLeft: `${props.level * INDENT_WIDTH_BASE}px` } }, levels.map((_level, index) => /* @__PURE__ */ React82.createElement(
55378
+ return /* @__PURE__ */ React83.createElement("div", { style: { paddingLeft: `${props.level * INDENT_WIDTH_BASE}px` } }, levels.map((_level, index) => /* @__PURE__ */ React83.createElement(
55378
55379
  "div",
55379
55380
  {
55380
55381
  className: classNames([
@@ -55391,7 +55392,7 @@ var LevelIndents = (props) => {
55391
55392
  )));
55392
55393
  };
55393
55394
  function GroupCaret(props) {
55394
- const mounted = React82.useRef(false);
55395
+ const mounted = React83.useRef(false);
55395
55396
  const [expanded, setExpanded] = useState(props.node.expanded);
55396
55397
  const ExpandableCaret = expanded ? CaretDown : CaretRight;
55397
55398
  function handleRowGroupToggle(event) {
@@ -55413,7 +55414,7 @@ function GroupCaret(props) {
55413
55414
  );
55414
55415
  };
55415
55416
  }, []);
55416
- return /* @__PURE__ */ React82.createElement(Box, { className: AutoGroupCell_default.expandableCaret }, props.node.isExpandable() && /* @__PURE__ */ React82.createElement(
55417
+ return /* @__PURE__ */ React83.createElement(Box, { className: AutoGroupCell_default.expandableCaret }, props.node.isExpandable() && /* @__PURE__ */ React83.createElement(
55417
55418
  ExpandableCaret,
55418
55419
  {
55419
55420
  className: expanded ? AutoGroupCell_default.collapseCaret : AutoGroupCell_default.expandCaret,
@@ -55445,20 +55446,20 @@ var AutoGroupCellRenderer = (props) => {
55445
55446
  };
55446
55447
  }, []);
55447
55448
  const adjustedLevel = props.node.footer ? props.node.level + 1 : props.node.level;
55448
- return /* @__PURE__ */ React82.createElement(Flex, { className: AutoGroupCell_default.autoGroupCell, alignItems: "center" }, /* @__PURE__ */ React82.createElement(
55449
+ return /* @__PURE__ */ React83.createElement(Flex, { className: AutoGroupCell_default.autoGroupCell, alignItems: "center" }, /* @__PURE__ */ React83.createElement(
55449
55450
  LevelIndents,
55450
55451
  {
55451
55452
  level: adjustedLevel,
55452
55453
  lastRowInGroup: isLastRowInGroup(props)
55453
55454
  }
55454
- ), !props.node.footer && /* @__PURE__ */ React82.createElement(GroupCaret, { ...props }), props.node.selectable && !props.node.footer && !props.node.rowPinned && /* @__PURE__ */ React82.createElement(RowCheckbox, { ...props }), /* @__PURE__ */ React82.createElement(
55455
+ ), !props.node.footer && /* @__PURE__ */ React83.createElement(GroupCaret, { ...props }), props.node.selectable && !props.node.footer && !props.node.rowPinned && /* @__PURE__ */ React83.createElement(RowCheckbox, { ...props }), /* @__PURE__ */ React83.createElement(
55455
55456
  "div",
55456
55457
  {
55457
55458
  className: classNames(AutoGroupCell_default.value, {
55458
55459
  [AutoGroupCell_default.footer]: props.node.footer
55459
55460
  })
55460
55461
  },
55461
- /* @__PURE__ */ React82.createElement(
55462
+ /* @__PURE__ */ React83.createElement(
55462
55463
  InnerRenderer,
55463
55464
  {
55464
55465
  ...props,
@@ -55499,7 +55500,7 @@ var InternalRowActionsCellRenderer = (props) => {
55499
55500
  if (props.rowPinned || props.columnDefinition.cellRendererParams.hideActionsOnGroupedRow && props.isGroup) {
55500
55501
  return null;
55501
55502
  }
55502
- return /* @__PURE__ */ React82.createElement(
55503
+ return /* @__PURE__ */ React83.createElement(
55503
55504
  FlexList,
55504
55505
  {
55505
55506
  justifyContent: "flex-end",
@@ -55509,7 +55510,7 @@ var InternalRowActionsCellRenderer = (props) => {
55509
55510
  },
55510
55511
  props.columnDefinition.cellRendererParams.actions.map((Action, idx) => {
55511
55512
  const key = `${Action.displayName}${idx}`;
55512
- return /* @__PURE__ */ React82.createElement(Action, { ...props, key });
55513
+ return /* @__PURE__ */ React83.createElement(Action, { ...props, key });
55513
55514
  })
55514
55515
  );
55515
55516
  };
@@ -55517,9 +55518,9 @@ var RowActionsCellRenderer = withDataTableRenderer(
55517
55518
  InternalRowActionsCellRenderer
55518
55519
  );
55519
55520
  var cx14 = classNames.bind(styles_exports);
55520
- var InlineEditError = React82.forwardRef(function InlineError({ errorMessage }, ref) {
55521
- const buttonRef = React82.useRef(null);
55522
- React82.useImperativeHandle(ref, () => ({
55521
+ var InlineEditError = React83.forwardRef(function InlineError({ errorMessage }, ref) {
55522
+ const buttonRef = React83.useRef(null);
55523
+ React83.useImperativeHandle(ref, () => ({
55523
55524
  show: () => {
55524
55525
  var _a;
55525
55526
  (_a = buttonRef.current) == null ? void 0 : _a.dispatchEvent(new MouseEvent("mouseenter"));
@@ -55530,22 +55531,22 @@ var InlineEditError = React82.forwardRef(function InlineError({ errorMessage },
55530
55531
  }
55531
55532
  }));
55532
55533
  const hasMessage = Array.isArray(errorMessage) ? errorMessage.length > 0 : Boolean(errorMessage);
55533
- const overlay = Array.isArray(errorMessage) ? /* @__PURE__ */ React82.createElement(Tooltip.Content, null, errorMessage.map((err) => /* @__PURE__ */ React82.createElement("div", { key: err }, err))) : errorMessage;
55534
- return /* @__PURE__ */ React82.createElement("div", { className: cx14("cell-error") }, /* @__PURE__ */ React82.createElement(
55534
+ const overlay = Array.isArray(errorMessage) ? /* @__PURE__ */ React83.createElement(Tooltip.Content, null, errorMessage.map((err) => /* @__PURE__ */ React83.createElement("div", { key: err }, err))) : errorMessage;
55535
+ return /* @__PURE__ */ React83.createElement("div", { className: cx14("cell-error") }, /* @__PURE__ */ React83.createElement(
55535
55536
  Tooltip,
55536
55537
  {
55537
55538
  ref: buttonRef,
55538
55539
  overlay,
55539
55540
  trigger: hasMessage ? "hover" : "none"
55540
55541
  },
55541
- /* @__PURE__ */ React82.createElement(
55542
+ /* @__PURE__ */ React83.createElement(
55542
55543
  Button,
55543
55544
  {
55544
55545
  className: cx14("cell-error__button"),
55545
55546
  variant: "tertiary",
55546
55547
  size: "sm"
55547
55548
  },
55548
- /* @__PURE__ */ React82.createElement(Typography, { color: "red50" }, /* @__PURE__ */ React82.createElement(Error$1, null))
55549
+ /* @__PURE__ */ React83.createElement(Typography, { color: "red50" }, /* @__PURE__ */ React83.createElement(Error$1, null))
55549
55550
  )
55550
55551
  ));
55551
55552
  });
@@ -55565,7 +55566,7 @@ function PseudoInlineEditorWrapper({
55565
55566
  children,
55566
55567
  ...props
55567
55568
  }) {
55568
- return /* @__PURE__ */ React82.createElement(
55569
+ return /* @__PURE__ */ React83.createElement(
55569
55570
  "div",
55570
55571
  {
55571
55572
  className: cx15("pseudo-inline-edit-wrapper", {
@@ -55573,7 +55574,7 @@ function PseudoInlineEditorWrapper({
55573
55574
  "inline-wrapper--with-show-pseudo-editors": alwaysShowEditors
55574
55575
  })
55575
55576
  },
55576
- /* @__PURE__ */ React82.createElement(
55577
+ /* @__PURE__ */ React83.createElement(
55577
55578
  "span",
55578
55579
  {
55579
55580
  className: cx15("pseudo-inline-edit-content", "truncatingText", {
@@ -55586,12 +55587,12 @@ function PseudoInlineEditorWrapper({
55586
55587
  ...props
55587
55588
  },
55588
55589
  children,
55589
- /* @__PURE__ */ React82.createElement("div", { className: cx15("inline-edit-spacer") }),
55590
- hasValue && onClear && /* @__PURE__ */ React82.createElement("div", { className: cx15("clear-wrapper") }, /* @__PURE__ */ React82.createElement(Clear, { size: "sm", onMouseDown: onClear })),
55591
- showArrow && /* @__PURE__ */ React82.createElement("div", { className: cx15("arrow-down-wrapper") }, /* @__PURE__ */ React82.createElement("div", { className: cx15("arrow-down") })),
55592
- showCalendar && /* @__PURE__ */ React82.createElement("div", { className: cx15("calendar-wrapper") }, /* @__PURE__ */ React82.createElement(Calendar$1, { size: "sm" }))
55590
+ /* @__PURE__ */ React83.createElement("div", { className: cx15("inline-edit-spacer") }),
55591
+ hasValue && onClear && /* @__PURE__ */ React83.createElement("div", { className: cx15("clear-wrapper") }, /* @__PURE__ */ React83.createElement(Clear, { size: "sm", onMouseDown: onClear })),
55592
+ showArrow && /* @__PURE__ */ React83.createElement("div", { className: cx15("arrow-down-wrapper") }, /* @__PURE__ */ React83.createElement("div", { className: cx15("arrow-down") })),
55593
+ showCalendar && /* @__PURE__ */ React83.createElement("div", { className: cx15("calendar-wrapper") }, /* @__PURE__ */ React83.createElement(Calendar$1, { size: "sm" }))
55593
55594
  ),
55594
- /* @__PURE__ */ React82.createElement(
55595
+ /* @__PURE__ */ React83.createElement(
55595
55596
  ValidationOutput,
55596
55597
  {
55597
55598
  isRequired,
@@ -55601,8 +55602,8 @@ function PseudoInlineEditorWrapper({
55601
55602
  )
55602
55603
  );
55603
55604
  }
55604
- var InlineEditorWrapper = React82.forwardRef(function InlineEditorWrapper2({ rightAligned, errorMessage, isValid, isRequired, children }, ref) {
55605
- return /* @__PURE__ */ React82.createElement(
55605
+ var InlineEditorWrapper = React83.forwardRef(function InlineEditorWrapper2({ rightAligned, errorMessage, isValid, isRequired, children }, ref) {
55606
+ return /* @__PURE__ */ React83.createElement(
55606
55607
  "div",
55607
55608
  {
55608
55609
  className: cx15("inline-edit-wrapper", {
@@ -55610,7 +55611,7 @@ var InlineEditorWrapper = React82.forwardRef(function InlineEditorWrapper2({ rig
55610
55611
  })
55611
55612
  },
55612
55613
  children,
55613
- /* @__PURE__ */ React82.createElement(
55614
+ /* @__PURE__ */ React83.createElement(
55614
55615
  ValidationOutput,
55615
55616
  {
55616
55617
  ref,
@@ -55621,7 +55622,7 @@ var InlineEditorWrapper = React82.forwardRef(function InlineEditorWrapper2({ rig
55621
55622
  )
55622
55623
  );
55623
55624
  });
55624
- var NonEditorWrapper = React82.forwardRef(function NonEditorWrapper2({
55625
+ var NonEditorWrapper = React83.forwardRef(function NonEditorWrapper2({
55625
55626
  rightAligned,
55626
55627
  errorMessage,
55627
55628
  isValid,
@@ -55630,7 +55631,7 @@ var NonEditorWrapper = React82.forwardRef(function NonEditorWrapper2({
55630
55631
  isGroup,
55631
55632
  rowPinned
55632
55633
  }, ref) {
55633
- return /* @__PURE__ */ React82.createElement(
55634
+ return /* @__PURE__ */ React83.createElement(
55634
55635
  "div",
55635
55636
  {
55636
55637
  className: cx15("inline-nonedit-wrapper", {
@@ -55638,7 +55639,7 @@ var NonEditorWrapper = React82.forwardRef(function NonEditorWrapper2({
55638
55639
  })
55639
55640
  },
55640
55641
  children,
55641
- /* @__PURE__ */ React82.createElement(
55642
+ /* @__PURE__ */ React83.createElement(
55642
55643
  ValidationOutput,
55643
55644
  {
55644
55645
  ref,
@@ -55651,9 +55652,9 @@ var NonEditorWrapper = React82.forwardRef(function NonEditorWrapper2({
55651
55652
  )
55652
55653
  );
55653
55654
  });
55654
- var ValidationOutput = React82.forwardRef(function ValidationOutput2({ isRequired, isValid, errorMessage, rowPinned }, ref) {
55655
+ var ValidationOutput = React83.forwardRef(function ValidationOutput2({ isRequired, isValid, errorMessage, rowPinned }, ref) {
55655
55656
  const showError = !isValid && errorMessage;
55656
- return /* @__PURE__ */ React82.createElement(React82.Fragment, null, !showError && isRequired && !rowPinned && /* @__PURE__ */ React82.createElement(Required, { className: cx15("cell-asterisk") }), showError && /* @__PURE__ */ React82.createElement(InlineEditError, { ref, errorMessage }));
55657
+ return /* @__PURE__ */ React83.createElement(React83.Fragment, null, !showError && isRequired && !rowPinned && /* @__PURE__ */ React83.createElement(Required, { className: cx15("cell-asterisk") }), showError && /* @__PURE__ */ React83.createElement(InlineEditError, { ref, errorMessage }));
55657
55658
  });
55658
55659
 
55659
55660
  // src/CellRenderers/DataTableCell.tsx
@@ -55723,7 +55724,7 @@ var DataTableCellRenderer = ({
55723
55724
  }),
55724
55725
  [column2, node]
55725
55726
  );
55726
- return /* @__PURE__ */ React82.createElement(React82.Fragment, null, shouldDisplayRowCheckbox(columnApi, column2, node) && /* @__PURE__ */ React82.createElement(Box, { paddingLeft: "sm" }, /* @__PURE__ */ React82.createElement(RowCheckbox, { api, data, node })), columnDefinition.editable ? /* @__PURE__ */ React82.createElement(
55727
+ return /* @__PURE__ */ React83.createElement(React83.Fragment, null, shouldDisplayRowCheckbox(columnApi, column2, node) && /* @__PURE__ */ React83.createElement(Box, { paddingLeft: "sm" }, /* @__PURE__ */ React83.createElement(RowCheckbox, { api, data, node })), columnDefinition.editable ? /* @__PURE__ */ React83.createElement(
55727
55728
  PseudoInlineEditorWrapper,
55728
55729
  {
55729
55730
  showArrow: editorType === "select",
@@ -55737,8 +55738,8 @@ var DataTableCellRenderer = ({
55737
55738
  alwaysShowEditors: (_c = columnDefinition.cellEditorParams) == null ? void 0 : _c.alwaysShowPseudoEditors,
55738
55739
  ...validationOutput
55739
55740
  },
55740
- /* @__PURE__ */ React82.createElement(Component4, { ...componentParams })
55741
- ) : /* @__PURE__ */ React82.createElement(
55741
+ /* @__PURE__ */ React83.createElement(Component4, { ...componentParams })
55742
+ ) : /* @__PURE__ */ React83.createElement(
55742
55743
  NonEditorWrapper,
55743
55744
  {
55744
55745
  rightAligned: colDef.type === "rightAligned",
@@ -55746,7 +55747,7 @@ var DataTableCellRenderer = ({
55746
55747
  rowPinned: Boolean(componentParams.rowPinned),
55747
55748
  isGroup: Boolean(componentParams.isGroup)
55748
55749
  },
55749
- /* @__PURE__ */ React82.createElement(
55750
+ /* @__PURE__ */ React83.createElement(
55750
55751
  Component4,
55751
55752
  {
55752
55753
  ...componentParams,
@@ -55764,7 +55765,7 @@ function getStartingValue(eventKey, editorType, existingValue) {
55764
55765
  }
55765
55766
  return existingValue;
55766
55767
  }
55767
- var DataTableCellEditor = React82.forwardRef(
55768
+ var DataTableCellEditor = React83.forwardRef(
55768
55769
  ({
55769
55770
  api,
55770
55771
  colDef,
@@ -55782,10 +55783,10 @@ var DataTableCellEditor = React82.forwardRef(
55782
55783
  const startingValue = getStartingValue(eventKey, editorType, value);
55783
55784
  const [currentValue, setCurrentValue] = useState(startingValue);
55784
55785
  const { rowHeight, tableRef } = useInternalTableContext();
55785
- const inlineEditorRef = React82.useRef(null);
55786
- const inputRef = React82.useRef(null);
55787
- const selectRef = React82.useRef(null);
55788
- const textAreaRef = React82.useRef(null);
55786
+ const inlineEditorRef = React83.useRef(null);
55787
+ const inputRef = React83.useRef(null);
55788
+ const selectRef = React83.useRef(null);
55789
+ const textAreaRef = React83.useRef(null);
55789
55790
  const columnDefinition = transformToColumnDefinition(colDef);
55790
55791
  const validationOutput = ((_a = colDef.valueValidator) == null ? void 0 : _a.call(colDef, {
55791
55792
  data,
@@ -55793,7 +55794,7 @@ var DataTableCellEditor = React82.forwardRef(
55793
55794
  columnDefinition,
55794
55795
  node: serializeNode(node)
55795
55796
  })) ?? defaultValidationOutput;
55796
- React82.useImperativeHandle(ref, () => {
55797
+ React83.useImperativeHandle(ref, () => {
55797
55798
  return {
55798
55799
  getValue: () => {
55799
55800
  var _a2, _b;
@@ -55829,7 +55830,7 @@ var DataTableCellEditor = React82.forwardRef(
55829
55830
  }
55830
55831
  }
55831
55832
  }
55832
- React82.useEffect(() => {
55833
+ React83.useEffect(() => {
55833
55834
  var _a2, _b, _c, _d, _e, _f, _g, _h, _i;
55834
55835
  if (editorType === "input") {
55835
55836
  if (eventKey) {
@@ -55863,14 +55864,14 @@ var DataTableCellEditor = React82.forwardRef(
55863
55864
  return selectRef;
55864
55865
  }
55865
55866
  };
55866
- return /* @__PURE__ */ React82.createElement(
55867
+ return /* @__PURE__ */ React83.createElement(
55867
55868
  InlineEditorWrapper,
55868
55869
  {
55869
55870
  rightAligned: colDef.type === "rightAligned",
55870
55871
  ref: inlineEditorRef,
55871
55872
  ...validationOutput
55872
55873
  },
55873
- /* @__PURE__ */ React82.createElement(
55874
+ /* @__PURE__ */ React83.createElement(
55874
55875
  Component4,
55875
55876
  {
55876
55877
  columnDefinition,
@@ -55921,7 +55922,7 @@ function DefaultEmptyStateRenderer({
55921
55922
  const showFilterState = !!hasFilters || !!hasSearch;
55922
55923
  const title = getTitle(I18n, showFilterState, itemsLabel);
55923
55924
  const description = getDescription(I18n, showFilterState);
55924
- return /* @__PURE__ */ React82.createElement(EmptyState$1, null, /* @__PURE__ */ React82.createElement(EmptyState$1.Title, null, title), /* @__PURE__ */ React82.createElement(EmptyState$1.Description, null, description), !showFilterState && children ? /* @__PURE__ */ React82.createElement(EmptyState$1.Actions, null, children) : null);
55925
+ return /* @__PURE__ */ React83.createElement(EmptyState$1, null, /* @__PURE__ */ React83.createElement(EmptyState$1.Title, null, title), /* @__PURE__ */ React83.createElement(EmptyState$1.Description, null, description), !showFilterState && children ? /* @__PURE__ */ React83.createElement(EmptyState$1.Actions, null, children) : null);
55925
55926
  }
55926
55927
  var EmptyState = ({
55927
55928
  emptyStateRenderer: EmptyStateRenderer
@@ -55931,7 +55932,7 @@ var EmptyState = ({
55931
55932
  const hasFilters = ((_b = (_a = internalTableContext.tableRef) == null ? void 0 : _a.current) == null ? void 0 : _b.isAnyFilterPresent()) ?? false;
55932
55933
  const hasSearch = ((_d = (_c = internalTableContext.tableRef) == null ? void 0 : _c.current) == null ? void 0 : _d.isSearchPresent()) ?? false;
55933
55934
  const Renderer13 = EmptyStateRenderer ?? DefaultEmptyStateRenderer;
55934
- return /* @__PURE__ */ React82.createElement(Renderer13, { hasFilters, hasSearch });
55935
+ return /* @__PURE__ */ React83.createElement(Renderer13, { hasFilters, hasSearch });
55935
55936
  };
55936
55937
 
55937
55938
  // src/types.ts
@@ -55942,7 +55943,7 @@ var SelectAllState = /* @__PURE__ */ ((SelectAllState2) => {
55942
55943
  return SelectAllState2;
55943
55944
  })(SelectAllState || {});
55944
55945
  function withMenuProps(defaultMenuConfig, onSelectAll, selectionSSREnabled) {
55945
- return ({ ...genericHeaderprops }) => /* @__PURE__ */ React82.createElement(
55946
+ return ({ ...genericHeaderprops }) => /* @__PURE__ */ React83.createElement(
55946
55947
  GenericHeaderRenderer,
55947
55948
  {
55948
55949
  ...genericHeaderprops,
@@ -56167,9 +56168,9 @@ var tooltipDelay = {
56167
56168
  show: 500
56168
56169
  };
56169
56170
  function useOverflowObserver() {
56170
- const recalculate = React82.useRef();
56171
- const [isOverflowingX, setIsOverflowingX] = React82.useState(false);
56172
- const [isOverflowingY, setIsOverflowingY] = React82.useState(false);
56171
+ const recalculate = React83.useRef();
56172
+ const [isOverflowingX, setIsOverflowingX] = React83.useState(false);
56173
+ const [isOverflowingY, setIsOverflowingY] = React83.useState(false);
56173
56174
  function isContentOverflowing(length, visibleLength) {
56174
56175
  return Math.abs(length - visibleLength) > 1;
56175
56176
  }
@@ -56205,7 +56206,7 @@ function useOverflowObserver() {
56205
56206
  }
56206
56207
  function defaultOptionRenderer(option) {
56207
56208
  const isSelected = option.value === "pinnedLeft" || option.value === "pinnedRight";
56208
- return /* @__PURE__ */ React82.createElement(React82.Fragment, null, /* @__PURE__ */ React82.createElement(StyledDropdownFlyoutLabel, { "data-flyout": true, style: { width: "100%" } }, isSelected ? /* @__PURE__ */ React82.createElement(Typography, { color: "blue50", weight: "bold" }, option.label) : option.label), Array.isArray(option.children) && /* @__PURE__ */ React82.createElement(
56209
+ return /* @__PURE__ */ React83.createElement(React83.Fragment, null, /* @__PURE__ */ React83.createElement(StyledDropdownFlyoutLabel, { "data-flyout": true, style: { width: "100%" } }, isSelected ? /* @__PURE__ */ React83.createElement(Typography, { color: "blue50", weight: "bold" }, option.label) : option.label), Array.isArray(option.children) && /* @__PURE__ */ React83.createElement(
56209
56210
  StyledDropdownFlyoutExpandIcon,
56210
56211
  {
56211
56212
  "data-qa": "core-dropdown-flyout-option-expand-icon",
@@ -56230,7 +56231,7 @@ var SortComponent = (props) => {
56230
56231
  let sortIcon = null;
56231
56232
  switch (sort) {
56232
56233
  case "asc":
56233
- sortIcon = /* @__PURE__ */ React82.createElement(
56234
+ sortIcon = /* @__PURE__ */ React83.createElement(
56234
56235
  ArrowUp,
56235
56236
  {
56236
56237
  size: "sm",
@@ -56240,7 +56241,7 @@ var SortComponent = (props) => {
56240
56241
  );
56241
56242
  break;
56242
56243
  case "desc":
56243
- sortIcon = /* @__PURE__ */ React82.createElement(
56244
+ sortIcon = /* @__PURE__ */ React83.createElement(
56244
56245
  ArrowDown,
56245
56246
  {
56246
56247
  size: "sm",
@@ -56253,14 +56254,14 @@ var SortComponent = (props) => {
56253
56254
  sortIcon = null;
56254
56255
  break;
56255
56256
  }
56256
- return /* @__PURE__ */ React82.createElement(Flex, { inline: true, paddingTop: "xs" }, /* @__PURE__ */ React82.createElement(
56257
+ return /* @__PURE__ */ React83.createElement(Flex, { inline: true, paddingTop: "xs" }, /* @__PURE__ */ React83.createElement(
56257
56258
  "span",
56258
56259
  {
56259
56260
  className: "ag-header-icon ag-header-label-icon ag-sort-order",
56260
56261
  "aria-hidden": "true"
56261
56262
  },
56262
56263
  currentSortIndex
56263
- ), /* @__PURE__ */ React82.createElement("span", { className: "ag-header-icon", role: "presentation" }, sortIcon));
56264
+ ), /* @__PURE__ */ React83.createElement("span", { className: "ag-header-icon", role: "presentation" }, sortIcon));
56264
56265
  }
56265
56266
  return null;
56266
56267
  };
@@ -56274,8 +56275,8 @@ var GenericHeaderRenderer = (props) => {
56274
56275
  const I18n = useI18nContext();
56275
56276
  const { columnApi, tableRef, onServerSideDataRequest } = useInternalTableContext();
56276
56277
  const onSSDR = Boolean(onServerSideDataRequest);
56277
- const [sortOrder, setSortOrder] = React82.useState(props.column.getSort());
56278
- const [isFirstColumn2, setIsFirstColumn] = React82.useState(false);
56278
+ const [sortOrder, setSortOrder] = React83.useState(props.column.getSort());
56279
+ const [isFirstColumn2, setIsFirstColumn] = React83.useState(false);
56279
56280
  const defaultMenuOptions = getMainMenuItems(props, I18n);
56280
56281
  const headerCellRef = useRef(null);
56281
56282
  const headerCheckboxSelection = colDef.headerCheckboxSelection;
@@ -56288,7 +56289,7 @@ var GenericHeaderRenderer = (props) => {
56288
56289
  }) : !!headerCheckboxSelection;
56289
56290
  const checkbox = useRef(null);
56290
56291
  const colId = props.column.getId();
56291
- React82.useEffect(() => {
56292
+ React83.useEffect(() => {
56292
56293
  function calculatePosition() {
56293
56294
  const columns = props.columnApi.getColumnState();
56294
56295
  if (!(columns == null ? void 0 : columns.length)) {
@@ -56354,15 +56355,15 @@ var GenericHeaderRenderer = (props) => {
56354
56355
  });
56355
56356
  return useDefaultMenuOptions ? filteredOptions : [...defaultMenuOptions, ...filteredOptions, ...menuOptions];
56356
56357
  };
56357
- React82.useEffect(() => {
56358
+ React83.useEffect(() => {
56358
56359
  const onSortChanged = () => {
56359
56360
  setSortOrder(props.column.getSort());
56360
56361
  };
56361
56362
  props.column.addEventListener("sortChanged", onSortChanged);
56362
56363
  return () => props.column.removeEventListener("sortChanged", onSortChanged);
56363
56364
  }, [props.column]);
56364
- const [isExpandable, setIsExpandable] = React82.useState(false);
56365
- React82.useEffect(() => {
56365
+ const [isExpandable, setIsExpandable] = React83.useState(false);
56366
+ React83.useEffect(() => {
56366
56367
  if (onSSDR) {
56367
56368
  return;
56368
56369
  }
@@ -56374,8 +56375,8 @@ var GenericHeaderRenderer = (props) => {
56374
56375
  !props.menuConfig.suppressExpandGroupsButton && hasExpandableNodes && props.column.getColId() === "ag-Grid-AutoColumn"
56375
56376
  );
56376
56377
  });
56377
- const [expansionVariant, setExpansionVariant] = React82.useState("closed");
56378
- React82.useEffect(() => {
56378
+ const [expansionVariant, setExpansionVariant] = React83.useState("closed");
56379
+ React83.useEffect(() => {
56379
56380
  var _a2;
56380
56381
  const onExpandAllChange = (event) => {
56381
56382
  setExpansionVariant(event.source === "expandAll" ? "all" : "closed");
@@ -56389,7 +56390,7 @@ var GenericHeaderRenderer = (props) => {
56389
56390
  );
56390
56391
  };
56391
56392
  }, [props.api]);
56392
- React82.useEffect(() => {
56393
+ React83.useEffect(() => {
56393
56394
  const hasTierOneCollapsedNodes = !!findNode(
56394
56395
  (node) => node.level === 0 && !node.expanded,
56395
56396
  props.api
@@ -56446,10 +56447,10 @@ var GenericHeaderRenderer = (props) => {
56446
56447
  ),
56447
56448
  all: I18n.t("dataTable.rowGroupToggle.collapseAll")
56448
56449
  };
56449
- const [selectAll, setSelectAll] = React82.useState(
56450
+ const [selectAll, setSelectAll] = React83.useState(
56450
56451
  "none" /* None */
56451
56452
  );
56452
- React82.useEffect(() => {
56453
+ React83.useEffect(() => {
56453
56454
  if (onSSDR || !isFirstColumn2) {
56454
56455
  return;
56455
56456
  }
@@ -56485,7 +56486,7 @@ var GenericHeaderRenderer = (props) => {
56485
56486
  };
56486
56487
  }, [isFirstColumn2, selectAll]);
56487
56488
  const { ref, isOverflowing, recalculate } = useOverflowObserver();
56488
- React82.useEffect(() => {
56489
+ React83.useEffect(() => {
56489
56490
  const handler = () => {
56490
56491
  var _a2;
56491
56492
  return (_a2 = recalculate.current) == null ? void 0 : _a2.call(recalculate);
@@ -56497,7 +56498,7 @@ var GenericHeaderRenderer = (props) => {
56497
56498
  removeEventListenerFromGrid("columnResized", handler, props.api);
56498
56499
  };
56499
56500
  }, []);
56500
- React82.useEffect(() => {
56501
+ React83.useEffect(() => {
56501
56502
  if (!onSSDR || !isFirstColumn2 || !props.selectionSSREnabled) {
56502
56503
  return;
56503
56504
  }
@@ -56532,7 +56533,7 @@ var GenericHeaderRenderer = (props) => {
56532
56533
  );
56533
56534
  };
56534
56535
  }, [isFirstColumn2, props.selectionSSREnabled, props.api, onSSDR]);
56535
- const toggleSelectAll = React82.useCallback(() => {
56536
+ const toggleSelectAll = React83.useCallback(() => {
56536
56537
  var _a2, _b, _c;
56537
56538
  const nextSelectedState = selectAll === "all" /* All */ ? "none" /* None */ : "all" /* All */;
56538
56539
  setSelectAll(nextSelectedState);
@@ -56561,7 +56562,7 @@ var GenericHeaderRenderer = (props) => {
56561
56562
  props.selectionSSREnabled,
56562
56563
  props.api
56563
56564
  ]);
56564
- return /* @__PURE__ */ React82.createElement(
56565
+ return /* @__PURE__ */ React83.createElement(
56565
56566
  Flex,
56566
56567
  {
56567
56568
  alignItems: "center",
@@ -56570,7 +56571,7 @@ var GenericHeaderRenderer = (props) => {
56570
56571
  className: "data-table-header-cell-container",
56571
56572
  ref: headerCellRef
56572
56573
  },
56573
- /* @__PURE__ */ React82.createElement(
56574
+ /* @__PURE__ */ React83.createElement(
56574
56575
  "div",
56575
56576
  {
56576
56577
  className: "ag-header-cell-label-container",
@@ -56578,16 +56579,16 @@ var GenericHeaderRenderer = (props) => {
56578
56579
  onClick: onSortToggled,
56579
56580
  onTouchEnd: onSortToggled
56580
56581
  },
56581
- isExpandable && /* @__PURE__ */ React82.createElement(
56582
+ isExpandable && /* @__PURE__ */ React83.createElement(
56582
56583
  Tooltip,
56583
56584
  {
56584
56585
  hideDelay: tooltipDelay.hide,
56585
56586
  showDelay: tooltipDelay.show,
56586
- overlay: /* @__PURE__ */ React82.createElement(Tooltip.Content, { className: "auto-column-expand-tooltip-content" }, tooltipText[expansionVariant])
56587
+ overlay: /* @__PURE__ */ React83.createElement(Tooltip.Content, { className: "auto-column-expand-tooltip-content" }, tooltipText[expansionVariant])
56587
56588
  },
56588
- /* @__PURE__ */ React82.createElement("div", { className: "expand-button", onClick: onExpandToggle }, expansionVariant === "all" && /* @__PURE__ */ React82.createElement(CaretsInVertical, { size: "sm" }), expansionVariant === "closed" && /* @__PURE__ */ React82.createElement(CaretsOutVertical, { size: "sm" }), expansionVariant === "tierOne" && (onSSDR ? /* @__PURE__ */ React82.createElement(CaretsInVertical, { size: "sm" }) : /* @__PURE__ */ React82.createElement(CaretsOutVerticalWithLine, { size: "sm" })))
56589
+ /* @__PURE__ */ React83.createElement("div", { className: "expand-button", onClick: onExpandToggle }, expansionVariant === "all" && /* @__PURE__ */ React83.createElement(CaretsInVertical, { size: "sm" }), expansionVariant === "closed" && /* @__PURE__ */ React83.createElement(CaretsOutVertical, { size: "sm" }), expansionVariant === "tierOne" && (onSSDR ? /* @__PURE__ */ React83.createElement(CaretsInVertical, { size: "sm" }) : /* @__PURE__ */ React83.createElement(CaretsOutVerticalWithLine, { size: "sm" })))
56589
56590
  ),
56590
- isFirstColumn2 && headerCheckboxSelectionEnabled && /* @__PURE__ */ React82.createElement(
56591
+ isFirstColumn2 && headerCheckboxSelectionEnabled && /* @__PURE__ */ React83.createElement(
56591
56592
  Checkbox,
56592
56593
  {
56593
56594
  "data-qa": "select-all-checkbox",
@@ -56599,14 +56600,14 @@ var GenericHeaderRenderer = (props) => {
56599
56600
  onChange: toggleSelectAll
56600
56601
  }
56601
56602
  ),
56602
- /* @__PURE__ */ React82.createElement("div", { className: "ag-header-cell-label" }, /* @__PURE__ */ React82.createElement(
56603
+ /* @__PURE__ */ React83.createElement("div", { className: "ag-header-cell-label" }, /* @__PURE__ */ React83.createElement(
56603
56604
  Tooltip,
56604
56605
  {
56605
56606
  trigger: isOverflowing ? "hover" : "none",
56606
- overlay: /* @__PURE__ */ React82.createElement(Tooltip.Content, null, /* @__PURE__ */ React82.createElement("span", null, props.displayName))
56607
+ overlay: /* @__PURE__ */ React83.createElement(Tooltip.Content, null, /* @__PURE__ */ React83.createElement("span", null, props.displayName))
56607
56608
  },
56608
- /* @__PURE__ */ React82.createElement("div", null, /* @__PURE__ */ React82.createElement("span", { ref, className: "data-table-header-display-name" }, props.displayName))
56609
- ), HeaderNode && /* @__PURE__ */ React82.createElement(
56609
+ /* @__PURE__ */ React83.createElement("div", null, /* @__PURE__ */ React83.createElement("span", { ref, className: "data-table-header-display-name" }, props.displayName))
56610
+ ), HeaderNode && /* @__PURE__ */ React83.createElement(
56610
56611
  Flex,
56611
56612
  {
56612
56613
  marginLeft: "sm",
@@ -56614,15 +56615,15 @@ var GenericHeaderRenderer = (props) => {
56614
56615
  justifyContent: "center",
56615
56616
  style: { width: "24px" }
56616
56617
  },
56617
- /* @__PURE__ */ React82.createElement(
56618
+ /* @__PURE__ */ React83.createElement(
56618
56619
  HeaderNode,
56619
56620
  {
56620
56621
  columnDefinition: transformToColumnDefinition(colDef)
56621
56622
  }
56622
56623
  )
56623
- ), props.enableSorting && /* @__PURE__ */ React82.createElement(SortComponent, { ...props }))
56624
+ ), props.enableSorting && /* @__PURE__ */ React83.createElement(SortComponent, { ...props }))
56624
56625
  ),
56625
- props.enableMenu && /* @__PURE__ */ React82.createElement(
56626
+ props.enableMenu && /* @__PURE__ */ React83.createElement(
56626
56627
  DropdownFlyout,
56627
56628
  {
56628
56629
  className: "data-table-header-menu",
@@ -56641,14 +56642,14 @@ var GenericHeaderRenderer = (props) => {
56641
56642
  function GenericColumnGroupHeader(props) {
56642
56643
  const I18n = useI18nContext();
56643
56644
  const { expanded: initialExpanded, expandable } = props.columnGroup.providedColumnGroup;
56644
- const [isExpanded, setIsExpanded] = React82.useState(initialExpanded);
56645
- React82.useEffect(() => {
56645
+ const [isExpanded, setIsExpanded] = React83.useState(initialExpanded);
56646
+ React83.useEffect(() => {
56646
56647
  props.setExpanded(isExpanded);
56647
56648
  }, [isExpanded]);
56648
56649
  if (!props.displayName) {
56649
56650
  return null;
56650
56651
  }
56651
- return /* @__PURE__ */ React82.createElement(React82.Fragment, null, /* @__PURE__ */ React82.createElement("div", { className: "ag-header-group-cell-label", role: "presentation" }, /* @__PURE__ */ React82.createElement("span", { className: "ag-header-group-text", role: "presentation" }, props.displayName)), expandable && /* @__PURE__ */ React82.createElement(
56652
+ return /* @__PURE__ */ React83.createElement(React83.Fragment, null, /* @__PURE__ */ React83.createElement("div", { className: "ag-header-group-cell-label", role: "presentation" }, /* @__PURE__ */ React83.createElement("span", { className: "ag-header-group-text", role: "presentation" }, props.displayName)), expandable && /* @__PURE__ */ React83.createElement(
56652
56653
  Tooltip,
56653
56654
  {
56654
56655
  hideDelay: tooltipDelay.hide,
@@ -56657,13 +56658,13 @@ function GenericColumnGroupHeader(props) {
56657
56658
  `dataTable.columnGroupToggle.${isExpanded ? "collapse" : "expand"}`
56658
56659
  )
56659
56660
  },
56660
- /* @__PURE__ */ React82.createElement(
56661
+ /* @__PURE__ */ React83.createElement(
56661
56662
  "div",
56662
56663
  {
56663
56664
  className: "expand-button",
56664
56665
  onClick: () => setIsExpanded((v) => !v)
56665
56666
  },
56666
- isExpanded ? /* @__PURE__ */ React82.createElement(CaretsIn, { size: "sm" }) : /* @__PURE__ */ React82.createElement(CaretsOut, { size: "sm" })
56667
+ isExpanded ? /* @__PURE__ */ React83.createElement(CaretsIn, { size: "sm" }) : /* @__PURE__ */ React83.createElement(CaretsOut, { size: "sm" })
56667
56668
  )
56668
56669
  ));
56669
56670
  }
@@ -56684,8 +56685,8 @@ var getPaginationPageStartEnd = ({
56684
56685
 
56685
56686
  // src/utils/cellHelpers.tsx
56686
56687
  function withDataTableEditor(Component4, editorType) {
56687
- return React82.forwardRef(
56688
- (agGridProps, ref) => /* @__PURE__ */ React82.createElement(
56688
+ return React83.forwardRef(
56689
+ (agGridProps, ref) => /* @__PURE__ */ React83.createElement(
56689
56690
  DataTableCellEditor,
56690
56691
  {
56691
56692
  ...agGridProps,
@@ -56697,7 +56698,7 @@ function withDataTableEditor(Component4, editorType) {
56697
56698
  );
56698
56699
  }
56699
56700
  function withDataTableRenderer(Component4, editorType) {
56700
- return ({ colDef, ...agGridProps }) => /* @__PURE__ */ React82.createElement(
56701
+ return ({ colDef, ...agGridProps }) => /* @__PURE__ */ React83.createElement(
56701
56702
  DataTableCellRenderer,
56702
56703
  {
56703
56704
  ...agGridProps,
@@ -56734,17 +56735,17 @@ function CustomLoader(params) {
56734
56735
  const I18n = useI18nContext();
56735
56736
  const groupNodes = getGroupNodes(params);
56736
56737
  if (params.node === groupNodes.firstLoading) {
56737
- return /* @__PURE__ */ React82.createElement(Flex, { style: { paddingLeft: "16px" } }, /* @__PURE__ */ React82.createElement(
56738
+ return /* @__PURE__ */ React83.createElement(Flex, { style: { paddingLeft: "16px" } }, /* @__PURE__ */ React83.createElement(
56738
56739
  LevelIndents,
56739
56740
  {
56740
56741
  level: params.node.level,
56741
56742
  lastRowInGroup: params.node === groupNodes.last
56742
56743
  }
56743
- ), /* @__PURE__ */ React82.createElement(Spinner, { loading: true, size: "sm" }), /* @__PURE__ */ React82.createElement(Box, { paddingLeft: "sm" }, /* @__PURE__ */ React82.createElement(Typography, { color: "gray15", italic: true, intent: "small" }, I18n.t(
56744
+ ), /* @__PURE__ */ React83.createElement(Spinner, { loading: true, size: "sm" }), /* @__PURE__ */ React83.createElement(Box, { paddingLeft: "sm" }, /* @__PURE__ */ React83.createElement(Typography, { color: "gray15", italic: true, intent: "small" }, I18n.t(
56744
56745
  `dataTable.loading.${params.node === groupNodes.first ? "initial" : "secondary"}`
56745
56746
  ))));
56746
56747
  }
56747
- return /* @__PURE__ */ React82.createElement(LevelIndents, { level: params.node.level, lastRowInGroup: false });
56748
+ return /* @__PURE__ */ React83.createElement(LevelIndents, { level: params.node.level, lastRowInGroup: false });
56748
56749
  }
56749
56750
  var DefaultFrameworkComponents = {
56750
56751
  agColumnHeader: GenericHeaderRenderer,
@@ -56860,15 +56861,15 @@ function getId2(func, option) {
56860
56861
  }
56861
56862
  var InternalMultiSelectCellRenderer = ({ columnDefinition, rowHeight, value }) => {
56862
56863
  var _a, _b;
56863
- const ref = React82.useRef();
56864
- React82.useLayoutEffect(() => {
56864
+ const ref = React83.useRef();
56865
+ React83.useLayoutEffect(() => {
56865
56866
  var _a2, _b2;
56866
56867
  (_b2 = ref == null ? void 0 : ref.current) == null ? void 0 : _b2.setAttribute("title", (_a2 = ref == null ? void 0 : ref.current) == null ? void 0 : _a2.innerText);
56867
56868
  });
56868
56869
  if (value === void 0 || value === null) {
56869
56870
  return null;
56870
56871
  }
56871
- return /* @__PURE__ */ React82.createElement(
56872
+ return /* @__PURE__ */ React83.createElement(
56872
56873
  Typography,
56873
56874
  {
56874
56875
  as: "ol",
@@ -56887,8 +56888,8 @@ var InternalMultiSelectCellRenderer = ({ columnDefinition, rowHeight, value }) =
56887
56888
  emptyArray
56888
56889
  ).map((option, idx, arr) => {
56889
56890
  var _a2, _b2, _c;
56890
- return /* @__PURE__ */ React82.createElement(
56891
- React82.Fragment,
56891
+ return /* @__PURE__ */ React83.createElement(
56892
+ React83.Fragment,
56892
56893
  {
56893
56894
  key: (
56894
56895
  // eslint-disable-next-line react/no-array-index-key
@@ -56901,7 +56902,7 @@ var InternalMultiSelectCellRenderer = ({ columnDefinition, rowHeight, value }) =
56901
56902
  )}_idx_${idx}`
56902
56903
  )
56903
56904
  },
56904
- /* @__PURE__ */ React82.createElement("li", null, getLabel2((_c = columnDefinition.cellRendererParams) == null ? void 0 : _c.getLabel, option), idx !== arr.length - 1 ? commaToken : null)
56905
+ /* @__PURE__ */ React83.createElement("li", null, getLabel2((_c = columnDefinition.cellRendererParams) == null ? void 0 : _c.getLabel, option), idx !== arr.length - 1 ? commaToken : null)
56905
56906
  );
56906
56907
  })
56907
56908
  );
@@ -56939,7 +56940,7 @@ function useFilterStorage({
56939
56940
  initialSelectedFilters = emptyArray2,
56940
56941
  getColumnDefinition
56941
56942
  }) {
56942
- const [filtersState, setFiltersState] = React82.useState({
56943
+ const [filtersState, setFiltersState] = React83.useState({
56943
56944
  filterable: emptyObj,
56944
56945
  filterOptions: emptyObj,
56945
56946
  possibleFilters: emptyArray2,
@@ -56959,10 +56960,10 @@ function useFilterStorage({
56959
56960
  field
56960
56961
  };
56961
56962
  }
56962
- const hasDefinedFilters = React82.useMemo(() => {
56963
+ const hasDefinedFilters = React83.useMemo(() => {
56963
56964
  return Object.keys(filtersState.filterable).length > 0;
56964
56965
  }, [filtersState.filterable]);
56965
- React82.useEffect(() => {
56966
+ React83.useEffect(() => {
56966
56967
  const filterableColumns = columnDefinitions.filter(
56967
56968
  (col) => col.filterRenderer
56968
56969
  );
@@ -56985,7 +56986,7 @@ function useFilterStorage({
56985
56986
  selectedFilters: emptyObj
56986
56987
  }));
56987
56988
  }
56988
- const setSelectedFilters = React82.useCallback(
56989
+ const setSelectedFilters = React83.useCallback(
56989
56990
  (selectedFilters) => {
56990
56991
  setFiltersState((prev) => ({
56991
56992
  ...prev,
@@ -57112,13 +57113,13 @@ var EmptyResultsControlTooltip = ({
57112
57113
  }) => {
57113
57114
  const I18n = useI18nContext();
57114
57115
  if (!enabled) {
57115
- return /* @__PURE__ */ React82.createElement(React82.Fragment, null, children);
57116
+ return /* @__PURE__ */ React83.createElement(React83.Fragment, null, children);
57116
57117
  }
57117
57118
  const tooltipText = I18n.t(`dataTable.emptyState.noResults.tooltip`, {
57118
57119
  tableName: I18n.t(`tableName`) || I18n.t(`dataTable.emptyState.noResults.tableNameFallback`),
57119
57120
  featureName: I18n.t(`dataTable.emptyState.noResults.${featureI18nKey}`)
57120
57121
  });
57121
- return /* @__PURE__ */ React82.createElement(Tooltip, { placement: "bottom", trigger: "hover", overlay: tooltipText }, /* @__PURE__ */ React82.createElement("span", null, children));
57122
+ return /* @__PURE__ */ React83.createElement(Tooltip, { placement: "bottom", trigger: "hover", overlay: tooltipText }, /* @__PURE__ */ React83.createElement("span", null, children));
57122
57123
  };
57123
57124
 
57124
57125
  // src/QuickControls/quickControlsStyles.scss
@@ -57159,7 +57160,7 @@ var quickControlsStyles_default = {
57159
57160
  // src/QuickControls/ServerSideSearch.tsx
57160
57161
  var cx17 = classnames.bind(quickControlsStyles_default);
57161
57162
  function useSearchStorage() {
57162
- const [searchValue, setSearchValue] = React82.useState("");
57163
+ const [searchValue, setSearchValue] = React83.useState("");
57163
57164
  return { searchValue, setSearchValue };
57164
57165
  }
57165
57166
  var defaultSearchStorage = {
@@ -57171,16 +57172,16 @@ var ServerSideSearch = ({
57171
57172
  placeholder,
57172
57173
  disabled = false
57173
57174
  }) => {
57174
- const [internalValue, setInternalValue] = React82.useState("");
57175
+ const [internalValue, setInternalValue] = React83.useState("");
57175
57176
  const { updateServerSideDataSource } = useInternalTableContext();
57176
57177
  const I18n = useI18nContext();
57177
- const debouncedSetSearchValue = React82.useCallback(
57178
+ const debouncedSetSearchValue = React83.useCallback(
57178
57179
  debounce2((value) => {
57179
57180
  updateServerSideDataSource({ search: value });
57180
57181
  }, 250),
57181
57182
  [updateServerSideDataSource]
57182
57183
  );
57183
- const onChange = React82.useCallback(
57184
+ const onChange = React83.useCallback(
57184
57185
  (value, event) => {
57185
57186
  setInternalValue(value);
57186
57187
  if (onSearch) {
@@ -57191,13 +57192,13 @@ var ServerSideSearch = ({
57191
57192
  },
57192
57193
  [debouncedSetSearchValue, onSearch]
57193
57194
  );
57194
- return /* @__PURE__ */ React82.createElement(
57195
+ return /* @__PURE__ */ React83.createElement(
57195
57196
  EmptyResultsControlTooltip,
57196
57197
  {
57197
57198
  featureI18nKey: "featureSearch",
57198
57199
  enabled: disabled
57199
57200
  },
57200
- /* @__PURE__ */ React82.createElement(
57201
+ /* @__PURE__ */ React83.createElement(
57201
57202
  Typeahead,
57202
57203
  {
57203
57204
  disabled,
@@ -57211,7 +57212,7 @@ var ServerSideSearch = ({
57211
57212
  };
57212
57213
 
57213
57214
  // src/utils/internalTableContext.ts
57214
- var InternalTableContext = React82.createContext({
57215
+ var InternalTableContext = React83.createContext({
57215
57216
  columnDefinitions: [],
57216
57217
  contextPanel: {
57217
57218
  content: void 0,
@@ -57257,7 +57258,120 @@ var InternalTableContext = React82.createContext({
57257
57258
  setTotalRowCount: () => {
57258
57259
  }
57259
57260
  });
57260
- var useInternalTableContext = () => React82.useContext(InternalTableContext);
57261
+ var useInternalTableContext = () => React83.useContext(InternalTableContext);
57262
+ var prng = detectPrng(true);
57263
+ var ulid = factory(prng);
57264
+ var Analytics = class {
57265
+ constructor({
57266
+ bodyParams = {},
57267
+ client,
57268
+ endpoint,
57269
+ headers = {}
57270
+ }) {
57271
+ this.endpoint = endpoint;
57272
+ this.headers = headers;
57273
+ this.bodyParams = bodyParams;
57274
+ this.client = client;
57275
+ this.trackEvent = this.trackEvent.bind(this);
57276
+ }
57277
+ trackEvent(event, properties = {}) {
57278
+ const time = /* @__PURE__ */ new Date();
57279
+ return this.client(this.endpoint, {
57280
+ method: "POST",
57281
+ headers: this.headers,
57282
+ body: JSON.stringify(
57283
+ mergeDeepRight(
57284
+ {
57285
+ key: event,
57286
+ properties,
57287
+ timestamp: time,
57288
+ event_id: ulid(),
57289
+ page_id: ulid()
57290
+ },
57291
+ this.bodyParams
57292
+ )
57293
+ )
57294
+ });
57295
+ }
57296
+ };
57297
+
57298
+ // src/Analytics/Analytics.tsx
57299
+ var defaultTrackEvent = (e, params) => {
57300
+ console.log("analytics::trackEvent", e, params);
57301
+ };
57302
+ var AnalyticsContext = React83.createContext({});
57303
+ function AnalyticsProvider({
57304
+ analytics,
57305
+ children
57306
+ }) {
57307
+ return /* @__PURE__ */ React83.createElement(
57308
+ AnalyticsContext.Provider,
57309
+ {
57310
+ value: { trackEvent: (analytics == null ? void 0 : analytics.trackEvent) || defaultTrackEvent }
57311
+ },
57312
+ children
57313
+ );
57314
+ }
57315
+ var isAnalyticsHydrated = (analytics) => {
57316
+ return Object.keys(analytics).length > 0;
57317
+ };
57318
+ var useAnalyticsContext = () => {
57319
+ const context = React83.useContext(AnalyticsContext);
57320
+ if (!isAnalyticsHydrated(context)) {
57321
+ throw new Error("Must wrap app in Analytics.Provider");
57322
+ }
57323
+ return context;
57324
+ };
57325
+ var Analytics_default = {
57326
+ Client: Analytics,
57327
+ Consumer: AnalyticsContext.Consumer,
57328
+ Provider: AnalyticsProvider,
57329
+ Context: AnalyticsContext
57330
+ };
57331
+ var prng2 = detectPrng(true);
57332
+ var ulid2 = factory(prng2);
57333
+ var AnalyticsBulkClient = class extends Analytics_default.Client {
57334
+ constructor({
57335
+ projectId,
57336
+ bulkEndpoint,
57337
+ bodyParams = {},
57338
+ headers = {},
57339
+ ...coreAnalyticsConfig
57340
+ }) {
57341
+ super({ ...coreAnalyticsConfig, bodyParams, headers });
57342
+ this.events = [];
57343
+ this.projectId = projectId;
57344
+ this.bulkEndpoint = bulkEndpoint;
57345
+ }
57346
+ addEvent(event, properties) {
57347
+ this.events.push({
57348
+ key: event,
57349
+ properties,
57350
+ timestamp: /* @__PURE__ */ new Date(),
57351
+ project_id: this.projectId,
57352
+ event_id: ulid2(),
57353
+ page_id: ulid2()
57354
+ });
57355
+ }
57356
+ async sendAllEvents() {
57357
+ if (this.events.length === 0) {
57358
+ return;
57359
+ }
57360
+ const body = {
57361
+ analytic_events: this.events,
57362
+ project_id: this.projectId
57363
+ };
57364
+ try {
57365
+ await this.client(this.bulkEndpoint, {
57366
+ method: "POST",
57367
+ headers: this.headers,
57368
+ body: JSON.stringify(body)
57369
+ });
57370
+ } catch {
57371
+ }
57372
+ this.events = [];
57373
+ }
57374
+ };
57261
57375
 
57262
57376
  // ../../node_modules/@ag-grid-community/client-side-row-model/dist/esm/es6/clientSideRowModel/clientSideNodeManager.mjs
57263
57377
  var ClientSideNodeManager = class _ClientSideNodeManager {
@@ -58893,9 +59007,9 @@ var getSelectedRows = ({
58893
59007
  return (gridApi == null ? void 0 : gridApi.getModel().getType()) === "serverSide" ? serverSideRows : (gridApi == null ? void 0 : gridApi.getSelectedNodes()) ?? [];
58894
59008
  };
58895
59009
  var useRowSelectionState = () => {
58896
- const [selectedRows, setSelectedRows] = React82.useState([]);
59010
+ const [selectedRows, setSelectedRows] = React83.useState([]);
58897
59011
  const { gridApi, rowSelectionRef } = useInternalTableContext();
58898
- React82.useEffect(() => {
59012
+ React83.useEffect(() => {
58899
59013
  function selectionEventFunction() {
58900
59014
  if (!(gridApi == null ? void 0 : gridApi.destroyCalled)) {
58901
59015
  setSelectedRows(getSelectedRows({ gridApi, rowSelectionRef }));
@@ -58917,12 +59031,12 @@ var BulkEditActionButton = (props) => {
58917
59031
  const { contextPanel } = useInternalTableContext();
58918
59032
  const i18n = useI18nContext();
58919
59033
  const editActionLabel = props.actionText ?? i18n.t("dataTable.bulkActions.editValues");
58920
- return /* @__PURE__ */ React82.createElement(
59034
+ return /* @__PURE__ */ React83.createElement(
58921
59035
  Button,
58922
59036
  {
58923
59037
  "aria-label": i18n.t("dataTable.bulkActions.bulkEdit"),
58924
59038
  "data-qa": "bulkEditIcon",
58925
- icon: /* @__PURE__ */ React82.createElement(Pencil, null),
59039
+ icon: /* @__PURE__ */ React83.createElement(Pencil, null),
58926
59040
  onClick: () => contextPanel.show("bulkEdit"),
58927
59041
  variant: "tertiary"
58928
59042
  },
@@ -58941,9 +59055,9 @@ var BulkActions = (props) => {
58941
59055
  } = props;
58942
59056
  const selectedRows = useRowSelectionState();
58943
59057
  const I18n = useI18nContext();
58944
- const Children = React82.useMemo(() => {
58945
- if (React82.Children.count(children) === 0) {
58946
- return /* @__PURE__ */ React82.createElement(
59058
+ const Children = React83.useMemo(() => {
59059
+ if (React83.Children.count(children) === 0) {
59060
+ return /* @__PURE__ */ React83.createElement(
58947
59061
  BulkEditActionButton,
58948
59062
  {
58949
59063
  showLabel: showEditButtonLabel,
@@ -58960,7 +59074,7 @@ var BulkActions = (props) => {
58960
59074
  count: selectedRows.length,
58961
59075
  number: selectedRows.length > 1 ? I18n.t("dataTable.bulkActions.many") : I18n.t("dataTable.bulkActions.one")
58962
59076
  });
58963
- return /* @__PURE__ */ React82.createElement(
59077
+ return /* @__PURE__ */ React83.createElement(
58964
59078
  Box,
58965
59079
  {
58966
59080
  padding: "md",
@@ -58969,8 +59083,8 @@ var BulkActions = (props) => {
58969
59083
  style: { backgroundColor: ACTION_BAR_BLUE, ...props.style },
58970
59084
  "data-qa": "bulkActions"
58971
59085
  },
58972
- /* @__PURE__ */ React82.createElement(FlexList, { size: "xs", alignItems: "center" }, Children),
58973
- /* @__PURE__ */ React82.createElement(FlexList, { size: "xs", alignItems: "center" }, /* @__PURE__ */ React82.createElement(Typography, null, selectedItemsDesc))
59086
+ /* @__PURE__ */ React83.createElement(FlexList, { size: "xs", alignItems: "center" }, Children),
59087
+ /* @__PURE__ */ React83.createElement(FlexList, { size: "xs", alignItems: "center" }, /* @__PURE__ */ React83.createElement(Typography, null, selectedItemsDesc))
58974
59088
  );
58975
59089
  };
58976
59090
 
@@ -64101,12 +64215,12 @@ var ExcelCreator = class ExcelCreator2 extends BaseCreator {
64101
64215
  return this.packageFile(exportParams);
64102
64216
  }
64103
64217
  setFactoryMode(factoryMode, exportMode = "xlsx") {
64104
- const factory = exportMode === "xlsx" ? ExcelXlsxFactory : ExcelXmlFactory;
64105
- factory.factoryMode = factoryMode;
64218
+ const factory3 = exportMode === "xlsx" ? ExcelXlsxFactory : ExcelXmlFactory;
64219
+ factory3.factoryMode = factoryMode;
64106
64220
  }
64107
64221
  getFactoryMode(exportMode) {
64108
- const factory = exportMode === "xlsx" ? ExcelXlsxFactory : ExcelXmlFactory;
64109
- return factory.factoryMode;
64222
+ const factory3 = exportMode === "xlsx" ? ExcelXlsxFactory : ExcelXmlFactory;
64223
+ return factory3.factoryMode;
64110
64224
  }
64111
64225
  getSheetDataForExcel(params) {
64112
64226
  const mergedParams = this.getMergedParams(params);
@@ -66827,7 +66941,7 @@ var PortalManager = class _PortalManager {
66827
66941
  }
66828
66942
  };
66829
66943
  PortalManager.MAX_COMPONENT_CREATION_TIME_IN_MS = 1e3;
66830
- var BeansContext = React82.createContext({});
66944
+ var BeansContext = React83.createContext({});
66831
66945
 
66832
66946
  // ../../node_modules/@ag-grid-community/react/lib/reactUi/jsComp.mjs
66833
66947
  var showJsComp = (compDetails, context, eParent, ref) => {
@@ -67021,19 +67135,19 @@ var GroupCellRenderer3 = forwardRef((props, ref) => {
67021
67135
  const FwRenderer = useFwRenderer ? innerCompDetails.componentClass : void 0;
67022
67136
  const useValue = innerCompDetails == null && value != null;
67023
67137
  const escapedValue = _.escapeString(value, true);
67024
- return React82.createElement(
67138
+ return React83.createElement(
67025
67139
  "span",
67026
67140
  Object.assign({ className, ref: setRef2 }, !props.colDef ? { role: "gridcell" } : {}),
67027
- React82.createElement("span", { className: expandedClassName, ref: eExpandedRef }),
67028
- React82.createElement("span", { className: contractedClassName, ref: eContractedRef }),
67029
- React82.createElement("span", { className: checkboxClassName, ref: eCheckboxRef }),
67030
- React82.createElement(
67141
+ React83.createElement("span", { className: expandedClassName, ref: eExpandedRef }),
67142
+ React83.createElement("span", { className: contractedClassName, ref: eContractedRef }),
67143
+ React83.createElement("span", { className: checkboxClassName, ref: eCheckboxRef }),
67144
+ React83.createElement(
67031
67145
  "span",
67032
67146
  { className: "ag-group-value", ref: eValueRef },
67033
- useValue && React82.createElement(React82.Fragment, null, escapedValue),
67034
- useFwRenderer && React82.createElement(FwRenderer, Object.assign({}, innerCompDetails.params))
67147
+ useValue && React83.createElement(React83.Fragment, null, escapedValue),
67148
+ useFwRenderer && React83.createElement(FwRenderer, Object.assign({}, innerCompDetails.params))
67035
67149
  ),
67036
- React82.createElement("span", { className: "ag-group-child-count" }, childCount)
67150
+ React83.createElement("span", { className: "ag-group-child-count" }, childCount)
67037
67151
  );
67038
67152
  });
67039
67153
  var groupCellRenderer_default = GroupCellRenderer3;
@@ -67090,15 +67204,15 @@ var HeaderCellComp2 = (props) => {
67090
67204
  }, [userCompDetails]);
67091
67205
  const reactUserComp = userCompDetails && userCompDetails.componentFromFramework;
67092
67206
  const UserCompClass = userCompDetails && userCompDetails.componentClass;
67093
- return React82.createElement(
67207
+ return React83.createElement(
67094
67208
  "div",
67095
67209
  { ref: setRef2, className: "ag-header-cell", "col-id": colId, role: "columnheader", tabIndex: -1 },
67096
- React82.createElement("div", { ref: eResize, className: "ag-header-cell-resize", role: "presentation" }),
67097
- React82.createElement(
67210
+ React83.createElement("div", { ref: eResize, className: "ag-header-cell-resize", role: "presentation" }),
67211
+ React83.createElement(
67098
67212
  "div",
67099
67213
  { ref: eHeaderCompWrapper, className: "ag-header-cell-comp-wrapper", role: "presentation" },
67100
- reactUserComp && userCompStateless && React82.createElement(UserCompClass, Object.assign({}, userCompDetails.params)),
67101
- reactUserComp && !userCompStateless && React82.createElement(UserCompClass, Object.assign({}, userCompDetails.params, { ref: userCompRef }))
67214
+ reactUserComp && userCompStateless && React83.createElement(UserCompClass, Object.assign({}, userCompDetails.params)),
67215
+ reactUserComp && !userCompStateless && React83.createElement(UserCompClass, Object.assign({}, userCompDetails.params, { ref: userCompRef }))
67102
67216
  )
67103
67217
  );
67104
67218
  };
@@ -67145,11 +67259,11 @@ var HeaderGroupCellComp2 = (props) => {
67145
67259
  const resizableClassName = useMemo(() => "ag-header-cell-resize " + cssResizableClasses.toString(), [cssResizableClasses]);
67146
67260
  const reactUserComp = userCompDetails && userCompDetails.componentFromFramework;
67147
67261
  const UserCompClass = userCompDetails && userCompDetails.componentClass;
67148
- return React82.createElement(
67262
+ return React83.createElement(
67149
67263
  "div",
67150
67264
  { ref: setRef2, className, "col-id": colId, role: "columnheader", tabIndex: -1, "aria-expanded": ariaExpanded },
67151
- reactUserComp && React82.createElement(UserCompClass, Object.assign({}, userCompDetails.params)),
67152
- React82.createElement("div", { ref: eResize, "aria-hidden": resizableAriaHidden, className: resizableClassName })
67265
+ reactUserComp && React83.createElement(UserCompClass, Object.assign({}, userCompDetails.params)),
67266
+ React83.createElement("div", { ref: eResize, "aria-hidden": resizableAriaHidden, className: resizableClassName })
67153
67267
  );
67154
67268
  };
67155
67269
  var headerGroupCellComp_default = memo(HeaderGroupCellComp2);
@@ -67212,19 +67326,19 @@ var HeaderFilterCellComp2 = (props) => {
67212
67326
  }, [userCompDetails]);
67213
67327
  const reactUserComp = userCompDetails && userCompDetails.componentFromFramework;
67214
67328
  const UserCompClass = userCompDetails && userCompDetails.componentClass;
67215
- return React82.createElement(
67329
+ return React83.createElement(
67216
67330
  "div",
67217
67331
  { ref: setRef2, className, role: "gridcell", tabIndex: -1 },
67218
- React82.createElement(
67332
+ React83.createElement(
67219
67333
  "div",
67220
67334
  { ref: eFloatingFilterBody, className: bodyClassName, role: "presentation" },
67221
- reactUserComp && userCompStateless && React82.createElement(UserCompClass, Object.assign({}, userCompDetails.params)),
67222
- reactUserComp && !userCompStateless && React82.createElement(UserCompClass, Object.assign({}, userCompDetails.params, { ref: userCompRef }))
67335
+ reactUserComp && userCompStateless && React83.createElement(UserCompClass, Object.assign({}, userCompDetails.params)),
67336
+ reactUserComp && !userCompStateless && React83.createElement(UserCompClass, Object.assign({}, userCompDetails.params, { ref: userCompRef }))
67223
67337
  ),
67224
- React82.createElement(
67338
+ React83.createElement(
67225
67339
  "div",
67226
67340
  { ref: eButtonWrapper, "aria-hidden": buttonWrapperAriaHidden, className: buttonWrapperClassName, role: "presentation" },
67227
- React82.createElement("button", { ref: eButtonShowMainFilter, type: "button", className: "ag-button ag-floating-filter-button-button", tabIndex: -1 })
67341
+ React83.createElement("button", { ref: eButtonShowMainFilter, type: "button", className: "ag-button ag-floating-filter-button-button", tabIndex: -1 })
67228
67342
  )
67229
67343
  );
67230
67344
  };
@@ -67266,14 +67380,14 @@ var HeaderRowComp2 = (props) => {
67266
67380
  const createCellJsx = useCallback((cellCtrl) => {
67267
67381
  switch (ctrl.getType()) {
67268
67382
  case HeaderRowType.COLUMN_GROUP:
67269
- return React82.createElement(headerGroupCellComp_default, { ctrl: cellCtrl, key: cellCtrl.getInstanceId() });
67383
+ return React83.createElement(headerGroupCellComp_default, { ctrl: cellCtrl, key: cellCtrl.getInstanceId() });
67270
67384
  case HeaderRowType.FLOATING_FILTER:
67271
- return React82.createElement(headerFilterCellComp_default, { ctrl: cellCtrl, key: cellCtrl.getInstanceId() });
67385
+ return React83.createElement(headerFilterCellComp_default, { ctrl: cellCtrl, key: cellCtrl.getInstanceId() });
67272
67386
  default:
67273
- return React82.createElement(headerCellComp_default, { ctrl: cellCtrl, key: cellCtrl.getInstanceId() });
67387
+ return React83.createElement(headerCellComp_default, { ctrl: cellCtrl, key: cellCtrl.getInstanceId() });
67274
67388
  }
67275
67389
  }, []);
67276
- return React82.createElement("div", { ref: setRef2, className, role: "row", style: style2, "aria-rowindex": ariaRowIndex }, cellCtrls.map(createCellJsx));
67390
+ return React83.createElement("div", { ref: setRef2, className, role: "row", style: style2, "aria-rowindex": ariaRowIndex }, cellCtrls.map(createCellJsx));
67277
67391
  };
67278
67392
  var headerRowComp_default = memo(HeaderRowComp2);
67279
67393
 
@@ -67326,16 +67440,16 @@ var HeaderRowContainerComp2 = (props) => {
67326
67440
  headerRowCtrlRef.current.setComp(compProxy, eGui.current);
67327
67441
  }, []);
67328
67442
  const className = useMemo(() => cssClasses.toString(), [cssClasses]);
67329
- const insertRowsJsx = () => headerRowCtrls.map((ctrl) => React82.createElement(headerRowComp_default, { ctrl, key: ctrl.getInstanceId() }));
67330
- return React82.createElement(
67331
- React82.Fragment,
67443
+ const insertRowsJsx = () => headerRowCtrls.map((ctrl) => React83.createElement(headerRowComp_default, { ctrl, key: ctrl.getInstanceId() }));
67444
+ return React83.createElement(
67445
+ React83.Fragment,
67332
67446
  null,
67333
- pinnedLeft && React82.createElement("div", { ref: setRef2, className: "ag-pinned-left-header " + className, "aria-hidden": ariaHidden, role: "presentation" }, insertRowsJsx()),
67334
- pinnedRight && React82.createElement("div", { ref: setRef2, className: "ag-pinned-right-header " + className, "aria-hidden": ariaHidden, role: "presentation" }, insertRowsJsx()),
67335
- centre && React82.createElement(
67447
+ pinnedLeft && React83.createElement("div", { ref: setRef2, className: "ag-pinned-left-header " + className, "aria-hidden": ariaHidden, role: "presentation" }, insertRowsJsx()),
67448
+ pinnedRight && React83.createElement("div", { ref: setRef2, className: "ag-pinned-right-header " + className, "aria-hidden": ariaHidden, role: "presentation" }, insertRowsJsx()),
67449
+ centre && React83.createElement(
67336
67450
  "div",
67337
67451
  { ref: setRef2, className: "ag-header-viewport " + className, role: "presentation" },
67338
- React82.createElement("div", { ref: eCenterContainer, className: "ag-header-container", role: "rowgroup" }, insertRowsJsx())
67452
+ React83.createElement("div", { ref: eCenterContainer, className: "ag-header-container", role: "rowgroup" }, insertRowsJsx())
67339
67453
  )
67340
67454
  );
67341
67455
  };
@@ -67370,12 +67484,12 @@ var GridHeaderComp2 = () => {
67370
67484
  height,
67371
67485
  minHeight: height
67372
67486
  }), [height]);
67373
- return React82.createElement(
67487
+ return React83.createElement(
67374
67488
  "div",
67375
67489
  { ref: setRef2, className, style: style2, role: "presentation" },
67376
- React82.createElement(headerRowContainerComp_default, { pinned: "left" }),
67377
- React82.createElement(headerRowContainerComp_default, { pinned: null }),
67378
- React82.createElement(headerRowContainerComp_default, { pinned: "right" })
67490
+ React83.createElement(headerRowContainerComp_default, { pinned: "left" }),
67491
+ React83.createElement(headerRowContainerComp_default, { pinned: null }),
67492
+ React83.createElement(headerRowContainerComp_default, { pinned: "right" })
67379
67493
  );
67380
67494
  };
67381
67495
  var gridHeaderComp_default = memo(GridHeaderComp2);
@@ -67469,7 +67583,7 @@ var PopupEditorComp = (props) => {
67469
67583
  context.destroyBean(wrapper);
67470
67584
  };
67471
67585
  });
67472
- return React82.createElement(React82.Fragment, null, popupEditorWrapper && props.wrappedContent && createPortal(props.wrappedContent, popupEditorWrapper.getGui()));
67586
+ return React83.createElement(React83.Fragment, null, popupEditorWrapper && props.wrappedContent && createPortal(props.wrappedContent, popupEditorWrapper.getGui()));
67473
67587
  };
67474
67588
  var popupEditorComp_default = memo(PopupEditorComp);
67475
67589
  var useJsCellRenderer = (showDetails, showTools, eCellValue, cellValueVersion, jsCellRendererRef, eGui) => {
@@ -67551,12 +67665,12 @@ var jsxEditValue = (editDetails, setInlineCellEditorRef, setPopupCellEditorRef,
67551
67665
  const reactInlineEditor = compDetails.componentFromFramework && !editDetails.popup;
67552
67666
  const reactPopupEditor = compDetails.componentFromFramework && editDetails.popup;
67553
67667
  const jsPopupEditor = !compDetails.componentFromFramework && editDetails.popup;
67554
- return React82.createElement(
67555
- React82.Fragment,
67668
+ return React83.createElement(
67669
+ React83.Fragment,
67556
67670
  null,
67557
- reactInlineEditor && React82.createElement(CellEditorClass, Object.assign({}, editDetails.compDetails.params, { ref: setInlineCellEditorRef })),
67558
- reactPopupEditor && React82.createElement(popupEditorComp_default, { editDetails, cellCtrl, eParentCell: eGui, wrappedContent: React82.createElement(CellEditorClass, Object.assign({}, editDetails.compDetails.params, { ref: setPopupCellEditorRef })) }),
67559
- jsPopupEditor && jsEditorComp && React82.createElement(popupEditorComp_default, { editDetails, cellCtrl, eParentCell: eGui, jsChildComp: jsEditorComp })
67671
+ reactInlineEditor && React83.createElement(CellEditorClass, Object.assign({}, editDetails.compDetails.params, { ref: setInlineCellEditorRef })),
67672
+ reactPopupEditor && React83.createElement(popupEditorComp_default, { editDetails, cellCtrl, eParentCell: eGui, wrappedContent: React83.createElement(CellEditorClass, Object.assign({}, editDetails.compDetails.params, { ref: setPopupCellEditorRef })) }),
67673
+ jsPopupEditor && jsEditorComp && React83.createElement(popupEditorComp_default, { editDetails, cellCtrl, eParentCell: eGui, jsChildComp: jsEditorComp })
67560
67674
  );
67561
67675
  };
67562
67676
  var jsxShowValue = (showDetails, key, parentId, cellRendererRef, showCellWrapper, reactCellRendererStateless, setECellValue) => {
@@ -67565,14 +67679,14 @@ var jsxShowValue = (showDetails, key, parentId, cellRendererRef, showCellWrapper
67565
67679
  const reactCellRenderer = compDetails && compDetails.componentFromFramework;
67566
67680
  const CellRendererClass = compDetails && compDetails.componentClass;
67567
67681
  const valueForNoCellRenderer = (value === null || value === void 0 ? void 0 : value.toString) ? value.toString() : value;
67568
- const bodyJsxFunc = () => React82.createElement(
67569
- React82.Fragment,
67682
+ const bodyJsxFunc = () => React83.createElement(
67683
+ React83.Fragment,
67570
67684
  null,
67571
- noCellRenderer && React82.createElement(React82.Fragment, null, valueForNoCellRenderer),
67572
- reactCellRenderer && !reactCellRendererStateless && React82.createElement(CellRendererClass, Object.assign({}, compDetails.params, { key, ref: cellRendererRef })),
67573
- reactCellRenderer && reactCellRendererStateless && React82.createElement(CellRendererClass, Object.assign({}, compDetails.params, { key }))
67685
+ noCellRenderer && React83.createElement(React83.Fragment, null, valueForNoCellRenderer),
67686
+ reactCellRenderer && !reactCellRendererStateless && React83.createElement(CellRendererClass, Object.assign({}, compDetails.params, { key, ref: cellRendererRef })),
67687
+ reactCellRenderer && reactCellRendererStateless && React83.createElement(CellRendererClass, Object.assign({}, compDetails.params, { key }))
67574
67688
  );
67575
- return React82.createElement(React82.Fragment, null, showCellWrapper ? React82.createElement("span", { role: "presentation", id: `cell-${parentId}`, className: "ag-cell-value", ref: setECellValue }, bodyJsxFunc()) : bodyJsxFunc());
67689
+ return React83.createElement(React83.Fragment, null, showCellWrapper ? React83.createElement("span", { role: "presentation", id: `cell-${parentId}`, className: "ag-cell-value", ref: setECellValue }, bodyJsxFunc()) : bodyJsxFunc());
67576
67690
  };
67577
67691
  var CellComp2 = (props) => {
67578
67692
  const { context } = useContext(BeansContext);
@@ -67769,13 +67883,13 @@ var CellComp2 = (props) => {
67769
67883
  eGui.current.focus({ preventScroll: true });
67770
67884
  }
67771
67885
  });
67772
- const showContents = () => React82.createElement(
67773
- React82.Fragment,
67886
+ const showContents = () => React83.createElement(
67887
+ React83.Fragment,
67774
67888
  null,
67775
67889
  renderDetails != null && jsxShowValue(renderDetails, renderKey, cellInstanceId, cellRendererRef, showCellWrapper, reactCellRendererStateless, setCellValueRef),
67776
67890
  editDetails != null && jsxEditValue(editDetails, setInlineCellEditorRef, setPopupCellEditorRef, eGui.current, cellCtrl, jsEditorComp)
67777
67891
  );
67778
- return React82.createElement("div", { ref: setRef2, style: userStyles, tabIndex, role: "gridcell", "col-id": colId }, showCellWrapper ? React82.createElement("div", { className: "ag-cell-wrapper", role: "presentation", ref: setCellWrapperRef }, showContents()) : showContents());
67892
+ return React83.createElement("div", { ref: setRef2, style: userStyles, tabIndex, role: "gridcell", "col-id": colId }, showCellWrapper ? React83.createElement("div", { className: "ag-cell-wrapper", role: "presentation", ref: setCellWrapperRef }, showContents()) : showContents());
67779
67893
  };
67780
67894
  var cellComp_default = memo(CellComp2);
67781
67895
 
@@ -67867,17 +67981,17 @@ var RowComp2 = (params) => {
67867
67981
  const res = (fullWidthCompDetails === null || fullWidthCompDetails === void 0 ? void 0 : fullWidthCompDetails.componentFromFramework) && isComponentStateless(fullWidthCompDetails.componentClass);
67868
67982
  return !!res;
67869
67983
  }, [fullWidthCompDetails]);
67870
- const showCellsJsx = () => cellCtrls === null || cellCtrls === void 0 ? void 0 : cellCtrls.map((cellCtrl) => React82.createElement(cellComp_default, { cellCtrl, editingRow: rowCtrl.isEditing(), printLayout: rowCtrl.isPrintLayout(), key: cellCtrl.getInstanceId() }));
67984
+ const showCellsJsx = () => cellCtrls === null || cellCtrls === void 0 ? void 0 : cellCtrls.map((cellCtrl) => React83.createElement(cellComp_default, { cellCtrl, editingRow: rowCtrl.isEditing(), printLayout: rowCtrl.isPrintLayout(), key: cellCtrl.getInstanceId() }));
67871
67985
  const showFullWidthFrameworkJsx = () => {
67872
67986
  const FullWidthComp = fullWidthCompDetails.componentClass;
67873
- return React82.createElement(
67874
- React82.Fragment,
67987
+ return React83.createElement(
67988
+ React83.Fragment,
67875
67989
  null,
67876
- reactFullWidthCellRendererStateless && React82.createElement(FullWidthComp, Object.assign({}, fullWidthCompDetails.params)),
67877
- !reactFullWidthCellRendererStateless && React82.createElement(FullWidthComp, Object.assign({}, fullWidthCompDetails.params, { ref: fullWidthCompRef }))
67990
+ reactFullWidthCellRendererStateless && React83.createElement(FullWidthComp, Object.assign({}, fullWidthCompDetails.params)),
67991
+ !reactFullWidthCellRendererStateless && React83.createElement(FullWidthComp, Object.assign({}, fullWidthCompDetails.params, { ref: fullWidthCompRef }))
67878
67992
  );
67879
67993
  };
67880
- return React82.createElement(
67994
+ return React83.createElement(
67881
67995
  "div",
67882
67996
  { ref: setRef2, role: "row", style: rowStyles, "row-index": rowIndex, "row-id": rowId, "row-business-key": rowBusinessKey, tabIndex },
67883
67997
  showCells && showCellsJsx(),
@@ -67979,16 +68093,16 @@ var RowContainerComp2 = (params) => {
67979
68093
  eWrapper.current = e;
67980
68094
  setRef2();
67981
68095
  }, [setRef2]);
67982
- const buildContainer = () => React82.createElement("div", { className: containerClasses, ref: setContainerRef, role: rowCtrlsOrdered.length ? "rowgroup" : "presentation" }, rowCtrlsOrdered.map((rowCtrl) => React82.createElement(rowComp_default, { rowCtrl, containerType, key: rowCtrl.getInstanceId() })));
67983
- return React82.createElement(
67984
- React82.Fragment,
68096
+ const buildContainer = () => React83.createElement("div", { className: containerClasses, ref: setContainerRef, role: rowCtrlsOrdered.length ? "rowgroup" : "presentation" }, rowCtrlsOrdered.map((rowCtrl) => React83.createElement(rowComp_default, { rowCtrl, containerType, key: rowCtrl.getInstanceId() })));
68097
+ return React83.createElement(
68098
+ React83.Fragment,
67985
68099
  null,
67986
- template1 && React82.createElement(
68100
+ template1 && React83.createElement(
67987
68101
  "div",
67988
68102
  { className: wrapperClasses, ref: setWrapperRef, role: "presentation" },
67989
- React82.createElement("div", { className: viewportClasses, ref: setViewportRef, role: "presentation" }, buildContainer())
68103
+ React83.createElement("div", { className: viewportClasses, ref: setViewportRef, role: "presentation" }, buildContainer())
67990
68104
  ),
67991
- template2 && React82.createElement("div", { className: viewportClasses, ref: setViewportRef, role: "presentation" }, buildContainer()),
68105
+ template2 && React83.createElement("div", { className: viewportClasses, ref: setViewportRef, role: "presentation" }, buildContainer()),
67992
68106
  template3 && buildContainer()
67993
68107
  );
67994
68108
  };
@@ -68120,22 +68234,22 @@ var GridBodyComp2 = () => {
68120
68234
  display: bottomDisplay,
68121
68235
  overflowY: topAndBottomOverflowY
68122
68236
  }), [bottomHeight, bottomDisplay, topAndBottomOverflowY]);
68123
- const createRowContainer = (container) => React82.createElement(rowContainerComp_default, { name: container, key: `${container}-container` });
68124
- const createSection = ({ section, children, className, style: style2 }) => React82.createElement("div", { ref: section, className, role: "presentation", style: style2 }, children.map(createRowContainer));
68125
- return React82.createElement(
68237
+ const createRowContainer = (container) => React83.createElement(rowContainerComp_default, { name: container, key: `${container}-container` });
68238
+ const createSection = ({ section, children, className, style: style2 }) => React83.createElement("div", { ref: section, className, role: "presentation", style: style2 }, children.map(createRowContainer));
68239
+ return React83.createElement(
68126
68240
  "div",
68127
68241
  { ref: setRef2, className: rootClasses, role: "treegrid" },
68128
- React82.createElement(gridHeaderComp_default, null),
68242
+ React83.createElement(gridHeaderComp_default, null),
68129
68243
  createSection({ section: eTop, className: topClasses, style: topStyle, children: [
68130
68244
  RowContainerName.TOP_LEFT,
68131
68245
  RowContainerName.TOP_CENTER,
68132
68246
  RowContainerName.TOP_RIGHT,
68133
68247
  RowContainerName.TOP_FULL_WIDTH
68134
68248
  ] }),
68135
- React82.createElement(
68249
+ React83.createElement(
68136
68250
  "div",
68137
68251
  { className: bodyClasses, ref: eBody, role: "presentation" },
68138
- React82.createElement("div", { className: bodyClipperClasses, role: "presentation" }, createSection({
68252
+ React83.createElement("div", { className: bodyClipperClasses, role: "presentation" }, createSection({
68139
68253
  section: eBodyViewport,
68140
68254
  className: bodyViewportClasses,
68141
68255
  children: [
@@ -68214,10 +68328,10 @@ var TabGuardCompRef = (props, forwardRef4) => {
68214
68328
  }, [setupCtrl]);
68215
68329
  const createTabGuard = (side) => {
68216
68330
  const className = side === "top" ? TabGuardClassNames.TAB_GUARD_TOP : TabGuardClassNames.TAB_GUARD_BOTTOM;
68217
- return React82.createElement("div", { className: `${TabGuardClassNames.TAB_GUARD} ${className}`, role: "presentation", ref: side === "top" ? setTopRef : setBottomRef });
68331
+ return React83.createElement("div", { className: `${TabGuardClassNames.TAB_GUARD} ${className}`, role: "presentation", ref: side === "top" ? setTopRef : setBottomRef });
68218
68332
  };
68219
- return React82.createElement(
68220
- React82.Fragment,
68333
+ return React83.createElement(
68334
+ React83.Fragment,
68221
68335
  null,
68222
68336
  createTabGuard("top"),
68223
68337
  children,
@@ -68363,13 +68477,13 @@ var GridComp2 = ({ context }) => {
68363
68477
  tabGuardRef.current = ref;
68364
68478
  setTabGuardReady(ref !== null);
68365
68479
  }, []);
68366
- return React82.createElement(
68480
+ return React83.createElement(
68367
68481
  "div",
68368
68482
  { ref: setRef2, className: rootWrapperClasses, style: topStyle, role: "presentation" },
68369
- React82.createElement("div", { className: rootWrapperBodyClasses, ref: setGridBodyParent, role: "presentation" }, initialised && eGridBodyParent && beans && React82.createElement(
68483
+ React83.createElement("div", { className: rootWrapperBodyClasses, ref: setGridBodyParent, role: "presentation" }, initialised && eGridBodyParent && beans && React83.createElement(
68370
68484
  BeansContext.Provider,
68371
68485
  { value: beans },
68372
- React82.createElement(
68486
+ React83.createElement(
68373
68487
  tabGuardComp_default,
68374
68488
  { ref: setTabGuardCompRef, eFocusableElement: eGridBodyParent, onTabKeyDown, gridCtrl: gridCtrlRef.current },
68375
68489
  // we wait for initialised before rending the children, so GridComp has created and registered with it's
@@ -68377,7 +68491,7 @@ var GridComp2 = ({ context }) => {
68377
68491
  // before we have set the the Layout CSS classes, causing the GridBodyComp to render rows to a grid that
68378
68492
  // doesn't have it's height specified, which would result if all the rows getting rendered (and if many rows,
68379
68493
  // hangs the UI)
68380
- React82.createElement(gridBodyComp_default, null)
68494
+ React83.createElement(gridBodyComp_default, null)
68381
68495
  )
68382
68496
  ))
68383
68497
  );
@@ -68477,10 +68591,10 @@ var AgGridReactUi = (props) => {
68477
68591
  }
68478
68592
  });
68479
68593
  }, [props]);
68480
- return React82.createElement(
68594
+ return React83.createElement(
68481
68595
  "div",
68482
68596
  { style: style2, className: props.className, ref: setRef2 },
68483
- context && !context.isDestroyed() ? React82.createElement(gridComp_default, { context }) : null,
68597
+ context && !context.isDestroyed() ? React83.createElement(gridComp_default, { context }) : null,
68484
68598
  (_b = (_a = portalManager.current) === null || _a === void 0 ? void 0 : _a.getPortals()) !== null && _b !== void 0 ? _b : null
68485
68599
  );
68486
68600
  };
@@ -68594,7 +68708,7 @@ var DetailCellRenderer = (props, ref) => {
68594
68708
  var _a;
68595
68709
  (_a = ctrlRef.current) === null || _a === void 0 ? void 0 : _a.registerDetailWithMaster(api, columnApi);
68596
68710
  }, []);
68597
- return React82.createElement("div", { className: topClassName, ref: setRef2 }, detailGridOptions && React82.createElement(AgGridReactUi, Object.assign({ className: gridClassName }, detailGridOptions, { modules: parentModules, rowData: detailRowData, setGridApi })));
68711
+ return React83.createElement("div", { className: topClassName, ref: setRef2 }, detailGridOptions && React83.createElement(AgGridReactUi, Object.assign({ className: gridClassName }, detailGridOptions, { modules: parentModules, rowData: detailRowData, setGridApi })));
68598
68712
  };
68599
68713
  var detailCellRenderer_default = forwardRef(DetailCellRenderer);
68600
68714
 
@@ -68637,7 +68751,7 @@ var AgGridReactLegacy = class extends Component$1 {
68637
68751
  this.portalManager = new LegacyPortalManager(this, props.componentWrappingElement, props.maxComponentCreationTimeMs);
68638
68752
  }
68639
68753
  render() {
68640
- return React82.createElement("div", {
68754
+ return React83.createElement("div", {
68641
68755
  style: this.createStyleForDiv(),
68642
68756
  className: this.props.className,
68643
68757
  ref: (e) => {
@@ -68797,7 +68911,7 @@ var AgGridReact = class extends Component$1 {
68797
68911
  };
68798
68912
  }
68799
68913
  render() {
68800
- const ReactComponentToUse = this.props.suppressReactUi ? React82.createElement(AgGridReactLegacy, Object.assign({}, this.props, { setGridApi: this.setGridApi })) : React82.createElement(AgGridReactUi, Object.assign({}, this.props, { setGridApi: this.setGridApi }));
68914
+ const ReactComponentToUse = this.props.suppressReactUi ? React83.createElement(AgGridReactLegacy, Object.assign({}, this.props, { setGridApi: this.setGridApi })) : React83.createElement(AgGridReactUi, Object.assign({}, this.props, { setGridApi: this.setGridApi }));
68801
68915
  return ReactComponentToUse;
68802
68916
  }
68803
68917
  };
@@ -76371,47 +76485,47 @@ function isLastRowInGroup2(props) {
76371
76485
  }
76372
76486
  var FullWidthCellRenderer = (FullWidthInnerCellRenderer) => {
76373
76487
  return (props) => {
76374
- return /* @__PURE__ */ React82.createElement(Flex, { style: { height: "100%", alignItems: "center" } }, /* @__PURE__ */ React82.createElement(React82.Fragment, null, /* @__PURE__ */ React82.createElement(
76488
+ return /* @__PURE__ */ React83.createElement(Flex, { style: { height: "100%", alignItems: "center" } }, /* @__PURE__ */ React83.createElement(React83.Fragment, null, /* @__PURE__ */ React83.createElement(
76375
76489
  LevelIndents,
76376
76490
  {
76377
76491
  level: props.node.level,
76378
76492
  lastRowInGroup: isLastRowInGroup2(props)
76379
76493
  }
76380
- ), FullWidthInnerCellRenderer && /* @__PURE__ */ React82.createElement("div", { style: { paddingLeft: "12px" } }, /* @__PURE__ */ React82.createElement(FullWidthInnerCellRenderer, { ...props }))));
76494
+ ), FullWidthInnerCellRenderer && /* @__PURE__ */ React83.createElement("div", { style: { paddingLeft: "12px" } }, /* @__PURE__ */ React83.createElement(FullWidthInnerCellRenderer, { ...props }))));
76381
76495
  };
76382
76496
  };
76383
- var rowDrag = renderToString(/* @__PURE__ */ React82.createElement(Grip, { size: "sm" }));
76497
+ var rowDrag = renderToString(/* @__PURE__ */ React83.createElement(Grip, { size: "sm" }));
76384
76498
  function companyOptionRenderer(editorParams) {
76385
76499
  return function renderer(option, optionProps) {
76386
76500
  var _a, _b;
76387
- return /* @__PURE__ */ React82.createElement(Select.Option, { value: option, ...optionProps }, /* @__PURE__ */ React82.createElement(
76501
+ return /* @__PURE__ */ React83.createElement(Select.Option, { value: option, ...optionProps }, /* @__PURE__ */ React83.createElement(
76388
76502
  ContactItem$1,
76389
76503
  {
76390
76504
  imageUrl: (_a = editorParams == null ? void 0 : editorParams.getImageURL) == null ? void 0 : _a.call(editorParams, option),
76391
- icon: /* @__PURE__ */ React82.createElement(Building, null),
76505
+ icon: /* @__PURE__ */ React83.createElement(Building, null),
76392
76506
  selected: optionProps.selected
76393
76507
  },
76394
- /* @__PURE__ */ React82.createElement(ContactItem$1.Title, null, (_b = editorParams == null ? void 0 : editorParams.getCompanyName) == null ? void 0 : _b.call(editorParams, option))
76508
+ /* @__PURE__ */ React83.createElement(ContactItem$1.Title, null, (_b = editorParams == null ? void 0 : editorParams.getCompanyName) == null ? void 0 : _b.call(editorParams, option))
76395
76509
  ));
76396
76510
  };
76397
76511
  }
76398
76512
  function personOptionRenderer(editorParams) {
76399
76513
  return function renderer(option, optionProps) {
76400
76514
  var _a, _b, _c, _d, _e;
76401
- return /* @__PURE__ */ React82.createElement(Select.Option, { value: option, ...optionProps }, /* @__PURE__ */ React82.createElement(
76515
+ return /* @__PURE__ */ React83.createElement(Select.Option, { value: option, ...optionProps }, /* @__PURE__ */ React83.createElement(
76402
76516
  ContactItem$1,
76403
76517
  {
76404
76518
  imageUrl: (_a = editorParams == null ? void 0 : editorParams.getImageURL) == null ? void 0 : _a.call(editorParams, option),
76405
76519
  initials: (_b = editorParams == null ? void 0 : editorParams.getInitials) == null ? void 0 : _b.call(editorParams, option),
76406
76520
  selected: optionProps.selected
76407
76521
  },
76408
- /* @__PURE__ */ React82.createElement(ContactItem$1.Title, null, (_c = editorParams == null ? void 0 : editorParams.getPersonName) == null ? void 0 : _c.call(editorParams, option)),
76409
- ((_d = editorParams == null ? void 0 : editorParams.getCompanyName) == null ? void 0 : _d.call(editorParams, option)) && /* @__PURE__ */ React82.createElement(ContactItem$1.Description, null, (_e = editorParams == null ? void 0 : editorParams.getCompanyName) == null ? void 0 : _e.call(editorParams, option))
76522
+ /* @__PURE__ */ React83.createElement(ContactItem$1.Title, null, (_c = editorParams == null ? void 0 : editorParams.getPersonName) == null ? void 0 : _c.call(editorParams, option)),
76523
+ ((_d = editorParams == null ? void 0 : editorParams.getCompanyName) == null ? void 0 : _d.call(editorParams, option)) && /* @__PURE__ */ React83.createElement(ContactItem$1.Description, null, (_e = editorParams == null ? void 0 : editorParams.getCompanyName) == null ? void 0 : _e.call(editorParams, option))
76410
76524
  ));
76411
76525
  };
76412
76526
  }
76413
76527
  function LoadingField() {
76414
- return /* @__PURE__ */ React82.createElement(Box, { marginTop: "md" }, /* @__PURE__ */ React82.createElement(Spinner$1, { size: "sm", loading: true }));
76528
+ return /* @__PURE__ */ React83.createElement(Box, { marginTop: "md" }, /* @__PURE__ */ React83.createElement(Spinner$1, { size: "sm", loading: true }));
76415
76529
  }
76416
76530
  function RadioList({
76417
76531
  getId: getId3,
@@ -76422,10 +76536,10 @@ function RadioList({
76422
76536
  name,
76423
76537
  options = []
76424
76538
  }) {
76425
- React82.useEffect(() => {
76539
+ React83.useEffect(() => {
76426
76540
  getOptions();
76427
76541
  }, []);
76428
- return loading ? /* @__PURE__ */ React82.createElement(
76542
+ return loading ? /* @__PURE__ */ React83.createElement(
76429
76543
  Form.Field,
76430
76544
  {
76431
76545
  as: LoadingField,
@@ -76435,7 +76549,7 @@ function RadioList({
76435
76549
  label,
76436
76550
  name
76437
76551
  }
76438
- ) : /* @__PURE__ */ React82.createElement(
76552
+ ) : /* @__PURE__ */ React83.createElement(
76439
76553
  Form.RadioButtons,
76440
76554
  {
76441
76555
  colWidth: 12,
@@ -76471,7 +76585,7 @@ var BulkEditInput = (props) => {
76471
76585
  var _a;
76472
76586
  const I18n = useI18nContext();
76473
76587
  const { customBulkEditorFields } = useInternalTableContext();
76474
- const [loading, setLoading] = React82.useState(false);
76588
+ const [loading, setLoading] = React83.useState(false);
76475
76589
  const field = useField({ name: props.name });
76476
76590
  const placeholderForField = I18n.t(
76477
76591
  "dataTable.bulkActions.placeholderForField",
@@ -76502,7 +76616,7 @@ var BulkEditInput = (props) => {
76502
76616
  var _a2, _b;
76503
76617
  return ((_b = (_a2 = props.editorParams) == null ? void 0 : _a2.getOptionLabel) == null ? void 0 : _b.call(_a2, option)) || getLabel3(option);
76504
76618
  };
76505
- const defaultField = /* @__PURE__ */ React82.createElement(
76619
+ const defaultField = /* @__PURE__ */ React83.createElement(
76506
76620
  Form.Text,
76507
76621
  {
76508
76622
  colWidth: 12,
@@ -76515,7 +76629,7 @@ var BulkEditInput = (props) => {
76515
76629
  );
76516
76630
  switch (props.editor) {
76517
76631
  case "checkbox":
76518
- return /* @__PURE__ */ React82.createElement(
76632
+ return /* @__PURE__ */ React83.createElement(
76519
76633
  Form.Checkbox,
76520
76634
  {
76521
76635
  colWidth: 12,
@@ -76530,7 +76644,7 @@ var BulkEditInput = (props) => {
76530
76644
  placeholder: currencyPlaceholder,
76531
76645
  ...currencyParams
76532
76646
  } = props.editorParams;
76533
- return /* @__PURE__ */ React82.createElement(
76647
+ return /* @__PURE__ */ React83.createElement(
76534
76648
  Form.Currency,
76535
76649
  {
76536
76650
  ...currencyParams,
@@ -76545,7 +76659,7 @@ var BulkEditInput = (props) => {
76545
76659
  );
76546
76660
  case "dateSelect":
76547
76661
  const dateSelectParams = props.editorParams;
76548
- return /* @__PURE__ */ React82.createElement(
76662
+ return /* @__PURE__ */ React83.createElement(
76549
76663
  Form.DateSelect,
76550
76664
  {
76551
76665
  ...dateSelectParams,
@@ -76558,7 +76672,7 @@ var BulkEditInput = (props) => {
76558
76672
  );
76559
76673
  case "dateTimeSelect":
76560
76674
  const dateTimeSelectParams = props.editorParams;
76561
- return /* @__PURE__ */ React82.createElement(
76675
+ return /* @__PURE__ */ React83.createElement(
76562
76676
  DateTimeSelectField,
76563
76677
  {
76564
76678
  ...dateTimeSelectParams,
@@ -76574,7 +76688,7 @@ var BulkEditInput = (props) => {
76574
76688
  placeholder: multiSelectPlaceholder,
76575
76689
  ...multiSelectParams
76576
76690
  } = props.editorParams;
76577
- return /* @__PURE__ */ React82.createElement(
76691
+ return /* @__PURE__ */ React83.createElement(
76578
76692
  Form.MultiSelect,
76579
76693
  {
76580
76694
  ...multiSelectParams,
@@ -76592,7 +76706,7 @@ var BulkEditInput = (props) => {
76592
76706
  }
76593
76707
  );
76594
76708
  case "number":
76595
- return /* @__PURE__ */ React82.createElement(
76709
+ return /* @__PURE__ */ React83.createElement(
76596
76710
  Form.Number,
76597
76711
  {
76598
76712
  colWidth: 12,
@@ -76609,7 +76723,7 @@ var BulkEditInput = (props) => {
76609
76723
  placeholder: personPlaceholder,
76610
76724
  ...personParams
76611
76725
  } = props.editorParams;
76612
- return /* @__PURE__ */ React82.createElement(
76726
+ return /* @__PURE__ */ React83.createElement(
76613
76727
  Form.Select,
76614
76728
  {
76615
76729
  ...personParams,
@@ -76632,7 +76746,7 @@ var BulkEditInput = (props) => {
76632
76746
  placeholder: MultiSelectBulkEditorParams,
76633
76747
  ...PeopleBulkEditorParams
76634
76748
  } = props.editorParams;
76635
- return /* @__PURE__ */ React82.createElement(
76749
+ return /* @__PURE__ */ React83.createElement(
76636
76750
  Form.MultiSelect,
76637
76751
  {
76638
76752
  ...PeopleBulkEditorParams,
@@ -76651,7 +76765,7 @@ var BulkEditInput = (props) => {
76651
76765
  }
76652
76766
  );
76653
76767
  case "radio":
76654
- return /* @__PURE__ */ React82.createElement(
76768
+ return /* @__PURE__ */ React83.createElement(
76655
76769
  RadioList,
76656
76770
  {
76657
76771
  getId: getId3,
@@ -76668,7 +76782,7 @@ var BulkEditInput = (props) => {
76668
76782
  placeholder: selectPlaceholder,
76669
76783
  ...selectParams
76670
76784
  } = props.editorParams;
76671
- return /* @__PURE__ */ React82.createElement(
76785
+ return /* @__PURE__ */ React83.createElement(
76672
76786
  Form.Select,
76673
76787
  {
76674
76788
  ...selectParams,
@@ -76690,7 +76804,7 @@ var BulkEditInput = (props) => {
76690
76804
  placeholder: companyPlaceholder,
76691
76805
  ...companyParams
76692
76806
  } = props.editorParams;
76693
- return /* @__PURE__ */ React82.createElement(
76807
+ return /* @__PURE__ */ React83.createElement(
76694
76808
  Form.Select,
76695
76809
  {
76696
76810
  ...companyParams,
@@ -76713,7 +76827,7 @@ var BulkEditInput = (props) => {
76713
76827
  placeholder: companiesMultiSelectPlaceholder,
76714
76828
  ...companiesBulkEditorParams
76715
76829
  } = props.editorParams;
76716
- return /* @__PURE__ */ React82.createElement(
76830
+ return /* @__PURE__ */ React83.createElement(
76717
76831
  Form.MultiSelect,
76718
76832
  {
76719
76833
  ...companiesBulkEditorParams,
@@ -76733,7 +76847,7 @@ var BulkEditInput = (props) => {
76733
76847
  );
76734
76848
  default:
76735
76849
  if (props.editor && (customBulkEditorFields == null ? void 0 : customBulkEditorFields[props.editor])) {
76736
- return /* @__PURE__ */ React82.createElement(
76850
+ return /* @__PURE__ */ React83.createElement(
76737
76851
  Form.Field,
76738
76852
  {
76739
76853
  as: customBulkEditorFields[props.editor].component,
@@ -76752,7 +76866,7 @@ var BulkEditInput = (props) => {
76752
76866
  }
76753
76867
  }
76754
76868
  };
76755
- var BulkEdit = React82.forwardRef(
76869
+ var BulkEdit = React83.forwardRef(
76756
76870
  ({ onReset = noop3 }, ref) => {
76757
76871
  var _a;
76758
76872
  const {
@@ -76766,12 +76880,12 @@ var BulkEdit = React82.forwardRef(
76766
76880
  getRowId,
76767
76881
  tableRef
76768
76882
  } = useInternalTableContext();
76769
- const formRef = React82.useRef();
76883
+ const formRef = React83.useRef();
76770
76884
  const bulkEditCols = ((_a = tableRef == null ? void 0 : tableRef.current) == null ? void 0 : _a.getBulkEditColumns()) ?? [];
76771
76885
  const selectedRows = useRowSelectionState();
76772
76886
  const { showToast } = useToastAlertContext();
76773
76887
  const I18n = useI18nContext();
76774
- const [fieldOptions, setFieldOptions] = React82.useState({});
76888
+ const [fieldOptions, setFieldOptions] = React83.useState({});
76775
76889
  function getEditorParams(field) {
76776
76890
  var _a2;
76777
76891
  return (_a2 = getColumnDefinition(field)) == null ? void 0 : _a2.bulkEditEditorParams;
@@ -76881,7 +76995,7 @@ var BulkEdit = React82.forwardRef(
76881
76995
  }
76882
76996
  }
76883
76997
  };
76884
- React82.useImperativeHandle(
76998
+ React83.useImperativeHandle(
76885
76999
  ref,
76886
77000
  () => ({
76887
77001
  reset: () => {
@@ -76895,7 +77009,7 @@ var BulkEdit = React82.forwardRef(
76895
77009
  }),
76896
77010
  []
76897
77011
  );
76898
- return /* @__PURE__ */ React82.createElement(Form, { innerRef: formRef, view: "update", onSubmit: handleSubmit }, /* @__PURE__ */ React82.createElement(Form.Form, { "data-qa": "bulkEditForm" }, bulkEditCols.map((col) => /* @__PURE__ */ React82.createElement(Form.Row, { key: col.field }, /* @__PURE__ */ React82.createElement(
77012
+ return /* @__PURE__ */ React83.createElement(Form, { innerRef: formRef, view: "update", onSubmit: handleSubmit }, /* @__PURE__ */ React83.createElement(Form.Form, { "data-qa": "bulkEditForm" }, bulkEditCols.map((col) => /* @__PURE__ */ React83.createElement(Form.Row, { key: col.field }, /* @__PURE__ */ React83.createElement(
76899
77013
  BulkEditInput,
76900
77014
  {
76901
77015
  key: col.field,
@@ -76913,8 +77027,8 @@ var BulkEdit = React82.forwardRef(
76913
77027
  var BulkEditPanel = ({}) => {
76914
77028
  const { contextPanel } = useInternalTableContext();
76915
77029
  const I18n = useI18nContext();
76916
- const bulkEditRef = React82.useRef(null);
76917
- return /* @__PURE__ */ React82.createElement(Panel, null, /* @__PURE__ */ React82.createElement(
77030
+ const bulkEditRef = React83.useRef(null);
77031
+ return /* @__PURE__ */ React83.createElement(Panel, null, /* @__PURE__ */ React83.createElement(
76918
77032
  Panel.Header,
76919
77033
  {
76920
77034
  onClose: () => {
@@ -76923,8 +77037,8 @@ var BulkEditPanel = ({}) => {
76923
77037
  contextPanel.hide();
76924
77038
  }
76925
77039
  },
76926
- /* @__PURE__ */ React82.createElement(Panel.Title, null, I18n.t("dataTable.bulkActions.editValues"))
76927
- ), /* @__PURE__ */ React82.createElement(Panel.Body, null, /* @__PURE__ */ React82.createElement(Panel.Section, null, /* @__PURE__ */ React82.createElement(BulkEdit, { ref: bulkEditRef, onReset: contextPanel.hide }))), /* @__PURE__ */ React82.createElement(Panel.Footer, null, /* @__PURE__ */ React82.createElement(Panel.FooterActions, null, /* @__PURE__ */ React82.createElement(
77040
+ /* @__PURE__ */ React83.createElement(Panel.Title, null, I18n.t("dataTable.bulkActions.editValues"))
77041
+ ), /* @__PURE__ */ React83.createElement(Panel.Body, null, /* @__PURE__ */ React83.createElement(Panel.Section, null, /* @__PURE__ */ React83.createElement(BulkEdit, { ref: bulkEditRef, onReset: contextPanel.hide }))), /* @__PURE__ */ React83.createElement(Panel.Footer, null, /* @__PURE__ */ React83.createElement(Panel.FooterActions, null, /* @__PURE__ */ React83.createElement(
76928
77042
  Button,
76929
77043
  {
76930
77044
  key: "cancel",
@@ -76938,7 +77052,7 @@ var BulkEditPanel = ({}) => {
76938
77052
  }
76939
77053
  },
76940
77054
  I18n.t("dataTable.bulkActions.cancel")
76941
- ), /* @__PURE__ */ React82.createElement(
77055
+ ), /* @__PURE__ */ React83.createElement(
76942
77056
  Button,
76943
77057
  {
76944
77058
  key: "save",
@@ -77154,7 +77268,7 @@ function traverseTree(nodes) {
77154
77268
  var ConfigurationRowHeight = () => {
77155
77269
  const { rowHeight, setRowHeight } = useInternalTableContext();
77156
77270
  const I18n = useI18nContext();
77157
- return /* @__PURE__ */ React82.createElement(SegmentedController, { block: true }, /* @__PURE__ */ React82.createElement(
77271
+ return /* @__PURE__ */ React83.createElement(SegmentedController, { block: true }, /* @__PURE__ */ React83.createElement(
77158
77272
  SegmentedController.Segment,
77159
77273
  {
77160
77274
  active: rowHeight === rowSize.sm,
@@ -77163,7 +77277,7 @@ var ConfigurationRowHeight = () => {
77163
77277
  }
77164
77278
  },
77165
77279
  I18n.t("dataTable.tableSettings.small")
77166
- ), /* @__PURE__ */ React82.createElement(
77280
+ ), /* @__PURE__ */ React83.createElement(
77167
77281
  SegmentedController.Segment,
77168
77282
  {
77169
77283
  active: rowHeight === rowSize.md,
@@ -77172,7 +77286,7 @@ var ConfigurationRowHeight = () => {
77172
77286
  }
77173
77287
  },
77174
77288
  I18n.t("dataTable.tableSettings.medium")
77175
- ), /* @__PURE__ */ React82.createElement(
77289
+ ), /* @__PURE__ */ React83.createElement(
77176
77290
  SegmentedController.Segment,
77177
77291
  {
77178
77292
  active: rowHeight === rowSize.lg,
@@ -77183,7 +77297,7 @@ var ConfigurationRowHeight = () => {
77183
77297
  I18n.t("dataTable.tableSettings.large")
77184
77298
  ));
77185
77299
  };
77186
- var ConfigurationColumns = React82.forwardRef(
77300
+ var ConfigurationColumns = React83.forwardRef(
77187
77301
  ({
77188
77302
  onDisplayedColumnsChange
77189
77303
  }, ref) => {
@@ -77195,7 +77309,7 @@ var ConfigurationColumns = React82.forwardRef(
77195
77309
  columnApi,
77196
77310
  onTableConfigChange
77197
77311
  } = useInternalTableContext();
77198
- const [colDefs, setColumnDefs] = React82.useState(() => {
77312
+ const [colDefs, setColumnDefs] = React83.useState(() => {
77199
77313
  const columnDefs = gridApi == null ? void 0 : gridApi.getColumnDefs();
77200
77314
  if (columnDefs) {
77201
77315
  return columnDefs;
@@ -77209,7 +77323,7 @@ var ConfigurationColumns = React82.forwardRef(
77209
77323
  );
77210
77324
  return toGroupedCols(columnDefinitionsMappedToDefs);
77211
77325
  });
77212
- React82.useEffect(() => {
77326
+ React83.useEffect(() => {
77213
77327
  function onDisplayedColumnsChanged(event) {
77214
77328
  var _a;
77215
77329
  if ((_a = event.api.getColumnDefs()) == null ? void 0 : _a.length) {
@@ -77228,18 +77342,18 @@ var ConfigurationColumns = React82.forwardRef(
77228
77342
  );
77229
77343
  };
77230
77344
  }, [gridApi, colDefs]);
77231
- React82.useEffect(() => {
77345
+ React83.useEffect(() => {
77232
77346
  onDisplayedColumnsChange(
77233
77347
  flattenColDefs(colDefs).every((colDef) => !colDef.hide)
77234
77348
  );
77235
77349
  }, [colDefs]);
77236
- const configPanelColumns = React82.useMemo(() => {
77350
+ const configPanelColumns = React83.useMemo(() => {
77237
77351
  return getAllConfigPanelColumns(colDefs);
77238
77352
  }, [colDefs]);
77239
- const configPanelColumnFields = React82.useMemo(() => {
77353
+ const configPanelColumnFields = React83.useMemo(() => {
77240
77354
  return getConfigPanelColumnFields(configPanelColumns);
77241
77355
  }, [configPanelColumns]);
77242
- const toggleColumnVisibility = React82.useCallback(
77356
+ const toggleColumnVisibility = React83.useCallback(
77243
77357
  (column2) => (event) => {
77244
77358
  const show = event.target.checked;
77245
77359
  if (column2.children) {
@@ -77256,14 +77370,14 @@ var ConfigurationColumns = React82.forwardRef(
77256
77370
  },
77257
77371
  [columnApi, gridApi, onTableConfigChange]
77258
77372
  );
77259
- const toggleAllColumnVisibility = React82.useCallback(
77373
+ const toggleAllColumnVisibility = React83.useCallback(
77260
77374
  (show) => {
77261
77375
  columnApi == null ? void 0 : columnApi.setColumnsVisible(configPanelColumnFields, show);
77262
77376
  onTableConfigChange();
77263
77377
  },
77264
77378
  [columnApi, configPanelColumnFields, onTableConfigChange]
77265
77379
  );
77266
- const getColumnState = React82.useCallback(
77380
+ const getColumnState = React83.useCallback(
77267
77381
  (col) => {
77268
77382
  var _a, _b;
77269
77383
  if (isColGroupDef3(col) && col.children && col.groupId !== void 0) {
@@ -77277,16 +77391,16 @@ var ConfigurationColumns = React82.forwardRef(
77277
77391
  },
77278
77392
  [columnApi]
77279
77393
  );
77280
- const reset = React82.useCallback(() => {
77394
+ const reset = React83.useCallback(() => {
77281
77395
  toggleAllColumnVisibility(true);
77282
77396
  }, [toggleAllColumnVisibility]);
77283
- React82.useImperativeHandle(ref, () => ({
77397
+ React83.useImperativeHandle(ref, () => ({
77284
77398
  reset
77285
77399
  }));
77286
- return /* @__PURE__ */ React82.createElement("div", null, configPanelColumns == null ? void 0 : configPanelColumns.map(
77400
+ return /* @__PURE__ */ React83.createElement("div", null, configPanelColumns == null ? void 0 : configPanelColumns.map(
77287
77401
  (column2) => {
77288
77402
  var _a;
77289
- return column2.headerName && /* @__PURE__ */ React82.createElement(
77403
+ return column2.headerName && /* @__PURE__ */ React83.createElement(
77290
77404
  Flex,
77291
77405
  {
77292
77406
  alignItems: "center",
@@ -77298,14 +77412,14 @@ var ConfigurationColumns = React82.forwardRef(
77298
77412
  paddingLeft: `${spacing.lg + spacing.md * column2.depth}px`
77299
77413
  }
77300
77414
  },
77301
- /* @__PURE__ */ React82.createElement(
77415
+ /* @__PURE__ */ React83.createElement(
77302
77416
  Switch,
77303
77417
  {
77304
77418
  checked: ((_a = getColumnState(column2)) == null ? void 0 : _a.isVisible()) || false,
77305
77419
  onChange: toggleColumnVisibility(column2),
77306
77420
  disabled: column2.lockVisible
77307
77421
  },
77308
- /* @__PURE__ */ React82.createElement(
77422
+ /* @__PURE__ */ React83.createElement(
77309
77423
  Typography,
77310
77424
  {
77311
77425
  style: {
@@ -77323,21 +77437,21 @@ var ConfigurationColumns = React82.forwardRef(
77323
77437
  var ConfigurationPanel = ({}) => {
77324
77438
  const { contextPanel, onServerSideDataRequest, enableDynamicRowHeight } = useInternalTableContext();
77325
77439
  const I18n = useI18nContext();
77326
- const configurationColumnsRef = React82.useRef();
77327
- const [isAllColumnsVisible, setIsAllColumnsVisible] = React82.useState(false);
77328
- return /* @__PURE__ */ React82.createElement(Panel, null, /* @__PURE__ */ React82.createElement(Panel.Header, { onClose: contextPanel.hide }, /* @__PURE__ */ React82.createElement(Panel.Title, null, I18n.t("dataTable.tableSettings.tableSettings"))), /* @__PURE__ */ React82.createElement(Panel.Body, { className: cx18("contextPanelBody") }, !onServerSideDataRequest && !enableDynamicRowHeight && /* @__PURE__ */ React82.createElement(
77440
+ const configurationColumnsRef = React83.useRef();
77441
+ const [isAllColumnsVisible, setIsAllColumnsVisible] = React83.useState(false);
77442
+ return /* @__PURE__ */ React83.createElement(Panel, null, /* @__PURE__ */ React83.createElement(Panel.Header, { onClose: contextPanel.hide }, /* @__PURE__ */ React83.createElement(Panel.Title, null, I18n.t("dataTable.tableSettings.tableSettings"))), /* @__PURE__ */ React83.createElement(Panel.Body, { className: cx18("contextPanelBody") }, !onServerSideDataRequest && !enableDynamicRowHeight && /* @__PURE__ */ React83.createElement(
77329
77443
  Panel.Section,
77330
77444
  {
77331
77445
  "data-qa": "data-table-config-panel-section-row-height",
77332
77446
  heading: I18n.t("dataTable.tableSettings.rowHeight")
77333
77447
  },
77334
- /* @__PURE__ */ React82.createElement(ConfigurationRowHeight, null)
77335
- ), /* @__PURE__ */ React82.createElement(
77448
+ /* @__PURE__ */ React83.createElement(ConfigurationRowHeight, null)
77449
+ ), /* @__PURE__ */ React83.createElement(
77336
77450
  Panel.Section,
77337
77451
  {
77338
77452
  "data-qa": "data-table-config-panel-section-configure-columns",
77339
77453
  heading: I18n.t("dataTable.tableSettings.configureColumns"),
77340
- actions: /* @__PURE__ */ React82.createElement(
77454
+ actions: /* @__PURE__ */ React83.createElement(
77341
77455
  Button,
77342
77456
  {
77343
77457
  disabled: isAllColumnsVisible,
@@ -77350,7 +77464,7 @@ var ConfigurationPanel = ({}) => {
77350
77464
  I18n.t("dataTable.tableSettings.resetToDefault")
77351
77465
  )
77352
77466
  },
77353
- /* @__PURE__ */ React82.createElement(
77467
+ /* @__PURE__ */ React83.createElement(
77354
77468
  ConfigurationColumns,
77355
77469
  {
77356
77470
  onDisplayedColumnsChange: setIsAllColumnsVisible,
@@ -77363,14 +77477,14 @@ function ClientSideFilterInner(props) {
77363
77477
  var _a, _b;
77364
77478
  const { Component: Component4, columnDefinition, onChange, options, value } = props;
77365
77479
  const filterHeading = ((_b = (_a = columnDefinition.filterProps) == null ? void 0 : _a.getFilterHeadingText) == null ? void 0 : _b.call(_a, columnDefinition)) ?? columnDefinition.headerName;
77366
- const filterOptions = React82.useMemo(
77480
+ const filterOptions = React83.useMemo(
77367
77481
  () => {
77368
77482
  var _a2;
77369
77483
  return (_a2 = options ?? []) == null ? void 0 : _a2.filter((option) => !!option);
77370
77484
  },
77371
77485
  [options]
77372
77486
  );
77373
- return /* @__PURE__ */ React82.createElement(Box, { as: "li", display: "block", paddingBottom: "xl", style: { width: "100%" } }, filterHeading ? /* @__PURE__ */ React82.createElement(Label, { "data-qa": `data-table-filter-heading-${columnDefinition.field}` }, filterHeading) : null, /* @__PURE__ */ React82.createElement(
77487
+ return /* @__PURE__ */ React83.createElement(Box, { as: "li", display: "block", paddingBottom: "xl", style: { width: "100%" } }, filterHeading ? /* @__PURE__ */ React83.createElement(Label, { "data-qa": `data-table-filter-heading-${columnDefinition.field}` }, filterHeading) : null, /* @__PURE__ */ React83.createElement(
77374
77488
  Component4,
77375
77489
  {
77376
77490
  "data-qa": `data-table-filter-input-${columnDefinition.field}`,
@@ -77381,7 +77495,7 @@ function ClientSideFilterInner(props) {
77381
77495
  }
77382
77496
  ));
77383
77497
  }
77384
- var ClientSideFilter = React82.memo(
77498
+ var ClientSideFilter = React83.memo(
77385
77499
  ClientSideFilterInner,
77386
77500
  (prev, next) => prev.value === next.value && prev.options === next.options
77387
77501
  );
@@ -77480,7 +77594,7 @@ var Filters = ({
77480
77594
  FilterListItem
77481
77595
  }) => {
77482
77596
  const { getColumnDefinition } = useInternalTableContext();
77483
- return /* @__PURE__ */ React82.createElement(
77597
+ return /* @__PURE__ */ React83.createElement(
77484
77598
  "ol",
77485
77599
  {
77486
77600
  className: cx19("filters-list"),
@@ -77492,7 +77606,7 @@ var Filters = ({
77492
77606
  return null;
77493
77607
  }
77494
77608
  let FilterRenderer = (columnDefinition == null ? void 0 : columnDefinition.filterRenderer) ?? MultiSelectFilterRenderer_default;
77495
- return /* @__PURE__ */ React82.createElement(
77609
+ return /* @__PURE__ */ React83.createElement(
77496
77610
  FilterListItem,
77497
77611
  {
77498
77612
  key: fieldName,
@@ -77507,7 +77621,7 @@ function FilterListItems(props) {
77507
77621
  const { filtersInGroup, FilterListItem } = props;
77508
77622
  const { filterState, onServerSideDataRequest, tableRef } = useInternalTableContext();
77509
77623
  if (isServerSideFilterGroups(filtersInGroup, !!onServerSideDataRequest)) {
77510
- return /* @__PURE__ */ React82.createElement(
77624
+ return /* @__PURE__ */ React83.createElement(
77511
77625
  Filters,
77512
77626
  {
77513
77627
  filters: filtersInGroup.map((filter) => filter.field),
@@ -77515,7 +77629,7 @@ function FilterListItems(props) {
77515
77629
  }
77516
77630
  );
77517
77631
  }
77518
- return /* @__PURE__ */ React82.createElement(
77632
+ return /* @__PURE__ */ React83.createElement(
77519
77633
  "ol",
77520
77634
  {
77521
77635
  className: cx19("filters-list"),
@@ -77528,7 +77642,7 @@ function FilterListItems(props) {
77528
77642
  return null;
77529
77643
  }
77530
77644
  const FilterRenderer = columnDefinition.filterRenderer ?? MultiSelectFilterRenderer_default;
77531
- return /* @__PURE__ */ React82.createElement(
77645
+ return /* @__PURE__ */ React83.createElement(
77532
77646
  FilterListItem,
77533
77647
  {
77534
77648
  key: filterRecord.field,
@@ -77551,7 +77665,7 @@ function FilterGroupWrapper(props) {
77551
77665
  if (filterGroup === null) {
77552
77666
  return props.children;
77553
77667
  }
77554
- return /* @__PURE__ */ React82.createElement(
77668
+ return /* @__PURE__ */ React83.createElement(
77555
77669
  StyledPanelSection,
77556
77670
  {
77557
77671
  className: "filters-list-group-section",
@@ -77574,7 +77688,7 @@ function FiltersList(props) {
77574
77688
  if (!filterGroupsMap) {
77575
77689
  return null;
77576
77690
  }
77577
- return /* @__PURE__ */ React82.createElement(
77691
+ return /* @__PURE__ */ React83.createElement(
77578
77692
  Box,
77579
77693
  {
77580
77694
  className: cx19("filters-list"),
@@ -77588,7 +77702,7 @@ function FiltersList(props) {
77588
77702
  );
77589
77703
  return null;
77590
77704
  }
77591
- return /* @__PURE__ */ React82.createElement(FilterGroupWrapper, { filterGroup: group, key: group.name }, /* @__PURE__ */ React82.createElement(
77705
+ return /* @__PURE__ */ React83.createElement(FilterGroupWrapper, { filterGroup: group, key: group.name }, /* @__PURE__ */ React83.createElement(
77592
77706
  FilterListItems,
77593
77707
  {
77594
77708
  ...props,
@@ -77596,7 +77710,7 @@ function FiltersList(props) {
77596
77710
  }
77597
77711
  ));
77598
77712
  }),
77599
- filterGroupsMap[FILTER_GROUP_NO_KEY] && /* @__PURE__ */ React82.createElement(
77713
+ filterGroupsMap[FILTER_GROUP_NO_KEY] && /* @__PURE__ */ React83.createElement(
77600
77714
  FilterListItems,
77601
77715
  {
77602
77716
  ...props,
@@ -77613,7 +77727,7 @@ var BaseFiltersPanel = ({
77613
77727
  }) => {
77614
77728
  const { contextPanel } = useInternalTableContext();
77615
77729
  const I18n = useI18nContext();
77616
- return /* @__PURE__ */ React82.createElement(
77730
+ return /* @__PURE__ */ React83.createElement(
77617
77731
  Card,
77618
77732
  {
77619
77733
  style: { maxHeight: "100vh" },
@@ -77623,7 +77737,7 @@ var BaseFiltersPanel = ({
77623
77737
  "data-qa": "data-table-filters-context-panel",
77624
77738
  ...props
77625
77739
  },
77626
- /* @__PURE__ */ React82.createElement(Box, { className: cx19("contextPanelWrapper"), display: "flex-column" }, /* @__PURE__ */ React82.createElement(Panel, null, /* @__PURE__ */ React82.createElement(Panel.Header, { onClose: contextPanel.hide }, /* @__PURE__ */ React82.createElement(Panel.Title, null, I18n.t("dataTable.filters.filters")), /* @__PURE__ */ React82.createElement(
77740
+ /* @__PURE__ */ React83.createElement(Box, { className: cx19("contextPanelWrapper"), display: "flex-column" }, /* @__PURE__ */ React83.createElement(Panel, null, /* @__PURE__ */ React83.createElement(Panel.Header, { onClose: contextPanel.hide }, /* @__PURE__ */ React83.createElement(Panel.Title, null, I18n.t("dataTable.filters.filters")), /* @__PURE__ */ React83.createElement(
77627
77741
  Button,
77628
77742
  {
77629
77743
  "data-qa": "data-table-remove-all-filters",
@@ -77632,38 +77746,38 @@ var BaseFiltersPanel = ({
77632
77746
  variant: "tertiary"
77633
77747
  },
77634
77748
  I18n.t("dataTable.filters.clearAllFilters")
77635
- )), /* @__PURE__ */ React82.createElement(Panel.Body, { className: cx19("contextPanelBody") }, /* @__PURE__ */ React82.createElement(Panel.Section, null, children))))
77749
+ )), /* @__PURE__ */ React83.createElement(Panel.Body, { className: cx19("contextPanelBody") }, /* @__PURE__ */ React83.createElement(Panel.Section, null, children))))
77636
77750
  );
77637
77751
  };
77638
77752
  function ClientSideFiltersPanel(props) {
77639
77753
  var _a;
77640
77754
  const { tableRef } = useInternalTableContext();
77641
- return /* @__PURE__ */ React82.createElement(
77755
+ return /* @__PURE__ */ React83.createElement(
77642
77756
  BaseFiltersPanel,
77643
77757
  {
77644
77758
  onClearAllFilters: (_a = tableRef == null ? void 0 : tableRef.current) == null ? void 0 : _a.removeAllFilters,
77645
77759
  ...props
77646
77760
  },
77647
- /* @__PURE__ */ React82.createElement(FiltersList, { FilterListItem: ClientSideFilter })
77761
+ /* @__PURE__ */ React83.createElement(FiltersList, { FilterListItem: ClientSideFilter })
77648
77762
  );
77649
77763
  }
77650
77764
  var ServerSideFiltersPanel = (props) => {
77651
77765
  const { filterStorage } = useInternalTableContext();
77652
- return /* @__PURE__ */ React82.createElement(
77766
+ return /* @__PURE__ */ React83.createElement(
77653
77767
  BaseFiltersPanel,
77654
77768
  {
77655
77769
  onClearAllFilters: filterStorage.onClearAllFilters,
77656
77770
  ...props
77657
77771
  },
77658
- /* @__PURE__ */ React82.createElement(FiltersList, { FilterListItem: ServerSideFilter })
77772
+ /* @__PURE__ */ React83.createElement(FiltersList, { FilterListItem: ServerSideFilter })
77659
77773
  );
77660
77774
  };
77661
77775
  var FiltersPanel = (props) => {
77662
77776
  const { onServerSideDataRequest } = useInternalTableContext();
77663
77777
  if (onServerSideDataRequest) {
77664
- return /* @__PURE__ */ React82.createElement(ServerSideFiltersPanel, { ...props });
77778
+ return /* @__PURE__ */ React83.createElement(ServerSideFiltersPanel, { ...props });
77665
77779
  }
77666
- return /* @__PURE__ */ React82.createElement(ClientSideFiltersPanel, { ...props });
77780
+ return /* @__PURE__ */ React83.createElement(ClientSideFiltersPanel, { ...props });
77667
77781
  };
77668
77782
  function useContextPanel() {
77669
77783
  const [content, setContent] = useState();
@@ -77685,13 +77799,13 @@ function useContextPanel() {
77685
77799
  }
77686
77800
  var ConfigPanelButton = () => {
77687
77801
  const { contextPanel, totalRowCount } = useInternalTableContext();
77688
- return /* @__PURE__ */ React82.createElement(
77802
+ return /* @__PURE__ */ React83.createElement(
77689
77803
  EmptyResultsControlTooltip,
77690
77804
  {
77691
77805
  featureI18nKey: "featureConfigure",
77692
77806
  enabled: totalRowCount === 0
77693
77807
  },
77694
- /* @__PURE__ */ React82.createElement(
77808
+ /* @__PURE__ */ React83.createElement(
77695
77809
  ToggleButton,
77696
77810
  {
77697
77811
  disabled: totalRowCount === 0,
@@ -77705,7 +77819,7 @@ var ConfigPanelButton = () => {
77705
77819
  selected: contextPanel.content === "configuration",
77706
77820
  "data-qa": "table-config-button"
77707
77821
  },
77708
- /* @__PURE__ */ React82.createElement(
77822
+ /* @__PURE__ */ React83.createElement(
77709
77823
  "svg",
77710
77824
  {
77711
77825
  style: { marginTop: "6px" },
@@ -77716,7 +77830,7 @@ var ConfigPanelButton = () => {
77716
77830
  fill: "none",
77717
77831
  xmlns: "http://www.w3.org/2000/svg"
77718
77832
  },
77719
- /* @__PURE__ */ React82.createElement(
77833
+ /* @__PURE__ */ React83.createElement(
77720
77834
  "path",
77721
77835
  {
77722
77836
  d: "M0 11.5V13.5H4.5V11.5H0ZM0 1.5V3.5H7.5V1.5H0ZM8.5 15V13.5H15V11.5H8.5V10H6.66667V15H8.5ZM3.5 5V6.5H0V8.5H3.5V10H5.5V5H3.5ZM15 8.5V6.5H7.5V8.5H15ZM9.5 5H11.6667V3.5H15V1.5H11.6667V0H9.5V5Z",
@@ -77736,12 +77850,12 @@ function getFilterTokenText(columnDefinition, filterValue) {
77736
77850
  });
77737
77851
  }
77738
77852
  if (columnDefinition.filterRenderer === DateFilterRenderer_default) {
77739
- return /* @__PURE__ */ React82.createElement(
77853
+ return /* @__PURE__ */ React83.createElement(
77740
77854
  OptionalDateTimeProvider,
77741
77855
  {
77742
77856
  timeZone: columnDefinition.timeZone
77743
77857
  },
77744
- /* @__PURE__ */ React82.createElement(
77858
+ /* @__PURE__ */ React83.createElement(
77745
77859
  DateFilterTokenText,
77746
77860
  {
77747
77861
  headerName: columnDefinition.headerName,
@@ -77773,18 +77887,18 @@ var FiltersPanelToggleButton = ({ hasSelectedFilters, hasDefinedFilters }) => {
77773
77887
  if (!hasDefinedFilters) {
77774
77888
  return null;
77775
77889
  }
77776
- return /* @__PURE__ */ React82.createElement(
77890
+ return /* @__PURE__ */ React83.createElement(
77777
77891
  EmptyResultsControlTooltip,
77778
77892
  {
77779
77893
  featureI18nKey: "featureFilter",
77780
77894
  enabled: totalRowCount === 0
77781
77895
  },
77782
- /* @__PURE__ */ React82.createElement(
77896
+ /* @__PURE__ */ React83.createElement(
77783
77897
  ToggleButton,
77784
77898
  {
77785
77899
  "data-qa": "data-table-show-filters-button",
77786
77900
  disabled: totalRowCount === 0,
77787
- icon: /* @__PURE__ */ React82.createElement(FilterIcon, null),
77901
+ icon: /* @__PURE__ */ React83.createElement(FilterIcon, null),
77788
77902
  onClick: () => {
77789
77903
  if (contextPanel.content === "filters") {
77790
77904
  contextPanel.hide();
@@ -77802,7 +77916,7 @@ var ServerSideFiltersPanelToggleButton = () => {
77802
77916
  const {
77803
77917
  filterStorage: { hasDefinedFilters, hasSelectedFilters }
77804
77918
  } = useInternalTableContext();
77805
- return /* @__PURE__ */ React82.createElement(
77919
+ return /* @__PURE__ */ React83.createElement(
77806
77920
  FiltersPanelToggleButton,
77807
77921
  {
77808
77922
  hasDefinedFilters,
@@ -77812,12 +77926,12 @@ var ServerSideFiltersPanelToggleButton = () => {
77812
77926
  };
77813
77927
  var ClientSideFiltersPanelToggleButton = () => {
77814
77928
  const { filterState } = useInternalTableContext();
77815
- const activeFilters = React82.useMemo(() => {
77929
+ const activeFilters = React83.useMemo(() => {
77816
77930
  return filterState.allAvailableFilters.filter(({ instance }) => {
77817
77931
  return instance.isFilterActive();
77818
77932
  });
77819
77933
  }, [filterState.allAvailableFilters]);
77820
- return /* @__PURE__ */ React82.createElement(
77934
+ return /* @__PURE__ */ React83.createElement(
77821
77935
  FiltersPanelToggleButton,
77822
77936
  {
77823
77937
  hasDefinedFilters: filterState.allAvailableFilters.length > 0,
@@ -77828,7 +77942,7 @@ var ClientSideFiltersPanelToggleButton = () => {
77828
77942
 
77829
77943
  // src/QuickControls/QuickFilters.tsx
77830
77944
  var FilterIcon = () => {
77831
- return /* @__PURE__ */ React82.createElement(
77945
+ return /* @__PURE__ */ React83.createElement(
77832
77946
  "svg",
77833
77947
  {
77834
77948
  focusable: false,
@@ -77838,7 +77952,7 @@ var FilterIcon = () => {
77838
77952
  fill: "none",
77839
77953
  xmlns: "http://www.w3.org/2000/svg"
77840
77954
  },
77841
- /* @__PURE__ */ React82.createElement(
77955
+ /* @__PURE__ */ React83.createElement(
77842
77956
  "path",
77843
77957
  {
77844
77958
  fillRule: "evenodd",
@@ -77856,7 +77970,7 @@ var StyledFilterTokenWrapper = styled4.div`
77856
77970
  `;
77857
77971
  var ClientSideQuickFilters = ({ overlayMatchesTriggerWidth }) => {
77858
77972
  const { tableRef, filterState, getColumnDefinition } = useInternalTableContext();
77859
- const { quickFilters, tokens } = React82.useMemo(() => {
77973
+ const { quickFilters, tokens } = React83.useMemo(() => {
77860
77974
  return filterState.allAvailableFilters.reduce(
77861
77975
  (acc, filter) => {
77862
77976
  const colDef = getColumnDefinition(filter.field);
@@ -77877,7 +77991,7 @@ var ClientSideQuickFilters = ({ overlayMatchesTriggerWidth }) => {
77877
77991
  );
77878
77992
  }, [filterState.allAvailableFilters, getColumnDefinition]);
77879
77993
  const isEmpty2 = quickFilters.length === 0 && tokens.length === 0;
77880
- return isEmpty2 ? null : /* @__PURE__ */ React82.createElement(
77994
+ return isEmpty2 ? null : /* @__PURE__ */ React83.createElement(
77881
77995
  FlexList,
77882
77996
  {
77883
77997
  padding: "xs none",
@@ -77892,7 +78006,7 @@ var ClientSideQuickFilters = ({ overlayMatchesTriggerWidth }) => {
77892
78006
  if (!colDef || !QuickFilter) {
77893
78007
  return null;
77894
78008
  }
77895
- return /* @__PURE__ */ React82.createElement(
78009
+ return /* @__PURE__ */ React83.createElement(
77896
78010
  QuickFilter,
77897
78011
  {
77898
78012
  key: filter.field,
@@ -77915,7 +78029,7 @@ var ClientSideQuickFilters = ({ overlayMatchesTriggerWidth }) => {
77915
78029
  if (!colDef) {
77916
78030
  return null;
77917
78031
  }
77918
- return /* @__PURE__ */ React82.createElement(StyledFilterTokenWrapper, { key: filter.field }, /* @__PURE__ */ React82.createElement(UNSAFE_FilterToken, null, /* @__PURE__ */ React82.createElement(UNSAFE_FilterToken.Label, null, getFilterTokenText(colDef, filter.filterValues)), /* @__PURE__ */ React82.createElement(
78032
+ return /* @__PURE__ */ React83.createElement(StyledFilterTokenWrapper, { key: filter.field }, /* @__PURE__ */ React83.createElement(UNSAFE_FilterToken, null, /* @__PURE__ */ React83.createElement(UNSAFE_FilterToken.Label, null, getFilterTokenText(colDef, filter.filterValues)), /* @__PURE__ */ React83.createElement(
77919
78033
  UNSAFE_FilterToken.Remove,
77920
78034
  {
77921
78035
  onClick: () => {
@@ -77938,7 +78052,7 @@ var ServerSideQuickFilters = ({ overlayMatchesTriggerWidth }) => {
77938
78052
  },
77939
78053
  getColumnDefinition
77940
78054
  } = useInternalTableContext();
77941
- const { quickFilterNames, tokenNames } = React82.useMemo(() => {
78055
+ const { quickFilterNames, tokenNames } = React83.useMemo(() => {
77942
78056
  const appliedFilterNames = Object.keys(selectedFilters);
77943
78057
  const isActiveFilter = (filterName) => appliedFilterNames.includes(filterName);
77944
78058
  return possibleFilters.reduce(
@@ -77967,7 +78081,7 @@ var ServerSideQuickFilters = ({ overlayMatchesTriggerWidth }) => {
77967
78081
  return null;
77968
78082
  }
77969
78083
  const isEmpty2 = quickFilterNames.length === 0 && tokenNames.length === 0;
77970
- return isEmpty2 ? null : /* @__PURE__ */ React82.createElement(
78084
+ return isEmpty2 ? null : /* @__PURE__ */ React83.createElement(
77971
78085
  FlexList,
77972
78086
  {
77973
78087
  padding: "xs none",
@@ -77983,7 +78097,7 @@ var ServerSideQuickFilters = ({ overlayMatchesTriggerWidth }) => {
77983
78097
  if (!colDef || !QuickFilter) {
77984
78098
  return null;
77985
78099
  }
77986
- return /* @__PURE__ */ React82.createElement(
78100
+ return /* @__PURE__ */ React83.createElement(
77987
78101
  QuickFilter,
77988
78102
  {
77989
78103
  key: fieldName,
@@ -77998,10 +78112,10 @@ var ServerSideQuickFilters = ({ overlayMatchesTriggerWidth }) => {
77998
78112
  return null;
77999
78113
  }
78000
78114
  const filter = getListFilter(fieldName);
78001
- return /* @__PURE__ */ React82.createElement(StyledFilterTokenWrapper, { key: fieldName }, /* @__PURE__ */ React82.createElement(UNSAFE_FilterToken, null, /* @__PURE__ */ React82.createElement(UNSAFE_FilterToken.Label, null, getFilterTokenText(
78115
+ return /* @__PURE__ */ React83.createElement(StyledFilterTokenWrapper, { key: fieldName }, /* @__PURE__ */ React83.createElement(UNSAFE_FilterToken, null, /* @__PURE__ */ React83.createElement(UNSAFE_FilterToken.Label, null, getFilterTokenText(
78002
78116
  colDef,
78003
78117
  colDef.filterRenderer === DateFilterRenderer_default ? filter.value : filter.selected
78004
- )), /* @__PURE__ */ React82.createElement(
78118
+ )), /* @__PURE__ */ React83.createElement(
78005
78119
  UNSAFE_FilterToken.Remove,
78006
78120
  {
78007
78121
  "data-qa": "data-table-quick-filter-remove-token",
@@ -78014,14 +78128,14 @@ var ServerSideQuickFilters = ({ overlayMatchesTriggerWidth }) => {
78014
78128
  var QuickFilters = ({ overlayMatchesTriggerWidth }) => {
78015
78129
  const { onServerSideDataRequest } = useInternalTableContext();
78016
78130
  if (onServerSideDataRequest) {
78017
- return /* @__PURE__ */ React82.createElement(
78131
+ return /* @__PURE__ */ React83.createElement(
78018
78132
  ServerSideQuickFilters,
78019
78133
  {
78020
78134
  overlayMatchesTriggerWidth
78021
78135
  }
78022
78136
  );
78023
78137
  }
78024
- return /* @__PURE__ */ React82.createElement(
78138
+ return /* @__PURE__ */ React83.createElement(
78025
78139
  ClientSideQuickFilters,
78026
78140
  {
78027
78141
  overlayMatchesTriggerWidth
@@ -78031,9 +78145,9 @@ var QuickFilters = ({ overlayMatchesTriggerWidth }) => {
78031
78145
  var FiltersPanelButton = () => {
78032
78146
  const { onServerSideDataRequest } = useInternalTableContext();
78033
78147
  if (onServerSideDataRequest) {
78034
- return /* @__PURE__ */ React82.createElement(ServerSideFiltersPanelToggleButton, null);
78148
+ return /* @__PURE__ */ React83.createElement(ServerSideFiltersPanelToggleButton, null);
78035
78149
  }
78036
- return /* @__PURE__ */ React82.createElement(ClientSideFiltersPanelToggleButton, null);
78150
+ return /* @__PURE__ */ React83.createElement(ClientSideFiltersPanelToggleButton, null);
78037
78151
  };
78038
78152
  var RowGroupSelector = ({ localeText }) => {
78039
78153
  const {
@@ -78043,29 +78157,29 @@ var RowGroupSelector = ({ localeText }) => {
78043
78157
  tableRef,
78044
78158
  totalRowCount
78045
78159
  } = useInternalTableContext();
78046
- const [columnDefinitions, setColumnDefinitions] = React82.useState(_columnDefinitions);
78047
- const groupableColumns = React82.useMemo(
78160
+ const [columnDefinitions, setColumnDefinitions] = React83.useState(_columnDefinitions);
78161
+ const groupableColumns = React83.useMemo(
78048
78162
  () => mapColumnsToOptions(
78049
78163
  columnDefinitions.filter((column2) => column2.enableRowGroup)
78050
78164
  ),
78051
78165
  [columnDefinitions]
78052
78166
  );
78053
- const groupedColumns = React82.useMemo(() => {
78167
+ const groupedColumns = React83.useMemo(() => {
78054
78168
  const rowGrouping = (columnApi == null ? void 0 : columnApi.getRowGroupColumns()) ?? [];
78055
78169
  return rowGrouping.map((column2) => {
78056
78170
  const colDef = column2.getColDef();
78057
78171
  return transformToColumnDefinition(colDef);
78058
78172
  });
78059
78173
  }, [columnDefinitions]);
78060
- const selectedColumns = React82.useMemo(
78174
+ const selectedColumns = React83.useMemo(
78061
78175
  () => mapColumnsToOptions(groupedColumns),
78062
78176
  [groupedColumns]
78063
78177
  );
78064
- const onGroupedClear = React82.useCallback(() => {
78178
+ const onGroupedClear = React83.useCallback(() => {
78065
78179
  var _a;
78066
78180
  (_a = tableRef == null ? void 0 : tableRef.current) == null ? void 0 : _a.setRowGrouping([]);
78067
78181
  }, [tableRef]);
78068
- const onGroupedRowChange = React82.useCallback(
78182
+ const onGroupedRowChange = React83.useCallback(
78069
78183
  (newValue) => {
78070
78184
  var _a;
78071
78185
  const fields = newValue.map((val) => {
@@ -78077,7 +78191,7 @@ var RowGroupSelector = ({ localeText }) => {
78077
78191
  },
78078
78192
  [selectedColumns]
78079
78193
  );
78080
- React82.useEffect(() => {
78194
+ React83.useEffect(() => {
78081
78195
  function onDisplayedColumnsChanged(event) {
78082
78196
  const agColumnDefs = event.api.getColumnDefs();
78083
78197
  if (agColumnDefs == null ? void 0 : agColumnDefs.length) {
@@ -78103,13 +78217,13 @@ var RowGroupSelector = ({ localeText }) => {
78103
78217
  if (groupableColumns.length === 0) {
78104
78218
  return null;
78105
78219
  }
78106
- return /* @__PURE__ */ React82.createElement(
78220
+ return /* @__PURE__ */ React83.createElement(
78107
78221
  EmptyResultsControlTooltip,
78108
78222
  {
78109
78223
  featureI18nKey: "featureGroupBy",
78110
78224
  enabled: totalRowCount === 0
78111
78225
  },
78112
- /* @__PURE__ */ React82.createElement(
78226
+ /* @__PURE__ */ React83.createElement(
78113
78227
  GroupBySelect,
78114
78228
  {
78115
78229
  isDisabled: totalRowCount === 0,
@@ -78138,18 +78252,18 @@ var ClientSideSearch = ({
78138
78252
  placeholder
78139
78253
  }) => {
78140
78254
  var _a;
78141
- const [internalValue, setInternalValue] = React82.useState("");
78255
+ const [internalValue, setInternalValue] = React83.useState("");
78142
78256
  const { tableRef, totalRowCount } = useInternalTableContext();
78143
78257
  const disabled = totalRowCount === 0;
78144
78258
  const I18n = useI18nContext();
78145
- const debouncedSetSearchValue = React82.useCallback(
78259
+ const debouncedSetSearchValue = React83.useCallback(
78146
78260
  debounce2((value) => {
78147
78261
  var _a2;
78148
78262
  (_a2 = tableRef == null ? void 0 : tableRef.current) == null ? void 0 : _a2.setSearchValue(value);
78149
78263
  }, 250),
78150
78264
  [(_a = tableRef == null ? void 0 : tableRef.current) == null ? void 0 : _a.setSearchValue]
78151
78265
  );
78152
- const onChange = React82.useCallback(
78266
+ const onChange = React83.useCallback(
78153
78267
  (value, event) => {
78154
78268
  setInternalValue(value);
78155
78269
  if (onSearch) {
@@ -78160,13 +78274,13 @@ var ClientSideSearch = ({
78160
78274
  },
78161
78275
  [debouncedSetSearchValue, onSearch]
78162
78276
  );
78163
- return /* @__PURE__ */ React82.createElement(
78277
+ return /* @__PURE__ */ React83.createElement(
78164
78278
  EmptyResultsControlTooltip,
78165
78279
  {
78166
78280
  featureI18nKey: "featureSearch",
78167
78281
  enabled: disabled
78168
78282
  },
78169
- /* @__PURE__ */ React82.createElement(
78283
+ /* @__PURE__ */ React83.createElement(
78170
78284
  Typeahead,
78171
78285
  {
78172
78286
  disabled,
@@ -78184,16 +78298,16 @@ var ClientSideSearch = ({
78184
78298
  var Search = (props) => {
78185
78299
  const { onServerSideDataRequest } = useInternalTableContext();
78186
78300
  if (onServerSideDataRequest) {
78187
- return /* @__PURE__ */ React82.createElement(ServerSideSearch, { ...props });
78301
+ return /* @__PURE__ */ React83.createElement(ServerSideSearch, { ...props });
78188
78302
  }
78189
- return /* @__PURE__ */ React82.createElement(ClientSideSearch, { ...props });
78303
+ return /* @__PURE__ */ React83.createElement(ClientSideSearch, { ...props });
78190
78304
  };
78191
78305
 
78192
78306
  // src/QuickControls/QuickControls.tsx
78193
78307
  var QuickControls = (props) => {
78194
78308
  const I18n = useI18nContext();
78195
78309
  if (props.children) {
78196
- return /* @__PURE__ */ React82.createElement(
78310
+ return /* @__PURE__ */ React83.createElement(
78197
78311
  Box,
78198
78312
  {
78199
78313
  "data-qa": "data-table-quick-controls",
@@ -78203,14 +78317,14 @@ var QuickControls = (props) => {
78203
78317
  props.children
78204
78318
  );
78205
78319
  }
78206
- return /* @__PURE__ */ React82.createElement(Box, { padding: "xs none", style: props.style }, /* @__PURE__ */ React82.createElement(Box, { padding: "xs none", display: "flex-row", justifyContent: "space-between" }, /* @__PURE__ */ React82.createElement(FlexList, { size: "xs", alignItems: "center", marginRight: "sm" }, /* @__PURE__ */ React82.createElement(
78320
+ return /* @__PURE__ */ React83.createElement(Box, { padding: "xs none", style: props.style }, /* @__PURE__ */ React83.createElement(Box, { padding: "xs none", display: "flex-row", justifyContent: "space-between" }, /* @__PURE__ */ React83.createElement(FlexList, { size: "xs", alignItems: "center", marginRight: "sm" }, /* @__PURE__ */ React83.createElement(
78207
78321
  Search,
78208
78322
  {
78209
78323
  onSearch: props.onSearch,
78210
78324
  placeholder: props.placeholder,
78211
78325
  disabled: props.disabledSearch
78212
78326
  }
78213
- ), /* @__PURE__ */ React82.createElement(FiltersPanelButton, null)), /* @__PURE__ */ React82.createElement(FlexList, { size: "xs", alignItems: "center" }, /* @__PURE__ */ React82.createElement(
78327
+ ), /* @__PURE__ */ React83.createElement(FiltersPanelButton, null)), /* @__PURE__ */ React83.createElement(FlexList, { size: "xs", alignItems: "center" }, /* @__PURE__ */ React83.createElement(
78214
78328
  RowGroupSelector,
78215
78329
  {
78216
78330
  localeText: {
@@ -78219,7 +78333,7 @@ var QuickControls = (props) => {
78219
78333
  selectedItemsPrefix: I18n.t("dataTable.tableSettings.groupBy")
78220
78334
  }
78221
78335
  }
78222
- ), /* @__PURE__ */ React82.createElement(ConfigPanelButton, null))), /* @__PURE__ */ React82.createElement(
78336
+ ), /* @__PURE__ */ React83.createElement(ConfigPanelButton, null))), /* @__PURE__ */ React83.createElement(
78223
78337
  QuickFilters,
78224
78338
  {
78225
78339
  overlayMatchesTriggerWidth: props.filterOverlayMatchesTriggerWidth
@@ -80581,7 +80695,7 @@ function generateHTMLString({
80581
80695
  printStylesElement.innerHTML = pageOptions;
80582
80696
  if (Header) {
80583
80697
  const printHeader = exportedDocument.createElement("div");
80584
- printHeader.innerHTML = renderToString(/* @__PURE__ */ React82.createElement(Header, null));
80698
+ printHeader.innerHTML = renderToString(/* @__PURE__ */ React83.createElement(Header, null));
80585
80699
  printHeader.style.paddingBottom = "12px";
80586
80700
  exportedDocument.body.appendChild(printHeader);
80587
80701
  }
@@ -80724,14 +80838,14 @@ var useTableApi = ({
80724
80838
  setRowHeight: internalSetRowHeight,
80725
80839
  searchStorage
80726
80840
  } = useInternalTableContext();
80727
- const columnDefinitionsMap = React82.useMemo(
80841
+ const columnDefinitionsMap = React83.useMemo(
80728
80842
  () => getColumnDefinitionsMap(columnDefinitions),
80729
80843
  [columnDefinitions]
80730
80844
  );
80731
- const resetPagination = React82.useCallback(() => {
80845
+ const resetPagination = React83.useCallback(() => {
80732
80846
  gridApi == null ? void 0 : gridApi.paginationGoToPage(0);
80733
80847
  }, [gridApi]);
80734
- const applyListFilter = React82.useCallback(
80848
+ const applyListFilter = React83.useCallback(
80735
80849
  async (field, values2) => {
80736
80850
  const filterInstance = gridApi == null ? void 0 : gridApi.getFilterInstance(field);
80737
80851
  if (!filterInstance) {
@@ -80753,7 +80867,7 @@ var useTableApi = ({
80753
80867
  },
80754
80868
  [gridApi, analytics, onTableConfigChange, resetPagination]
80755
80869
  );
80756
- const applyNumberFilter = React82.useCallback(
80870
+ const applyNumberFilter = React83.useCallback(
80757
80871
  async (field, values2) => {
80758
80872
  const filterInstance = gridApi == null ? void 0 : gridApi.getFilterInstance(field);
80759
80873
  if (!filterInstance) {
@@ -80776,13 +80890,13 @@ var useTableApi = ({
80776
80890
  },
80777
80891
  [gridApi, analytics, onTableConfigChange, resetPagination]
80778
80892
  );
80779
- const refreshServerSide = React82.useCallback(
80893
+ const refreshServerSide = React83.useCallback(
80780
80894
  (params) => {
80781
80895
  gridApi == null ? void 0 : gridApi.refreshServerSide(params);
80782
80896
  },
80783
80897
  [gridApi]
80784
80898
  );
80785
- const removeFilter = React82.useCallback(
80899
+ const removeFilter = React83.useCallback(
80786
80900
  async (field) => {
80787
80901
  var _a;
80788
80902
  await ((_a = gridApi == null ? void 0 : gridApi.getFilterInstance(field)) == null ? void 0 : _a.setModel(null));
@@ -80792,13 +80906,13 @@ var useTableApi = ({
80792
80906
  },
80793
80907
  [gridApi, onTableConfigChange, resetPagination]
80794
80908
  );
80795
- const removeAllFilters = React82.useCallback(() => {
80909
+ const removeAllFilters = React83.useCallback(() => {
80796
80910
  gridApi == null ? void 0 : gridApi.setFilterModel(null);
80797
80911
  gridApi == null ? void 0 : gridApi.onFilterChanged();
80798
80912
  onTableConfigChange();
80799
80913
  resetPagination();
80800
80914
  }, [gridApi, onTableConfigChange, resetPagination]);
80801
- const getListFilter = React82.useCallback(
80915
+ const getListFilter = React83.useCallback(
80802
80916
  async (field) => {
80803
80917
  var _a, _b, _c;
80804
80918
  const filterInstance = gridApi == null ? void 0 : gridApi.getFilterInstance(field);
@@ -80826,7 +80940,7 @@ var useTableApi = ({
80826
80940
  },
80827
80941
  [gridApi]
80828
80942
  );
80829
- const getListFilters = React82.useCallback(
80943
+ const getListFilters = React83.useCallback(
80830
80944
  async (fields) => {
80831
80945
  const listFields = fields || columnDefinitions.filter((colDef) => colDef.filterRenderer).sort(sortColumnDefinitionsByFilterIndex).map((colDef) => colDef.field);
80832
80946
  const listFilters = await Promise.all(
@@ -80836,11 +80950,11 @@ var useTableApi = ({
80836
80950
  },
80837
80951
  [getListFilter, columnDefinitions]
80838
80952
  );
80839
- const getCellEditorInstances = React82.useCallback(
80953
+ const getCellEditorInstances = React83.useCallback(
80840
80954
  () => (gridApi == null ? void 0 : gridApi.getCellEditorInstances()) || [],
80841
80955
  [gridApi]
80842
80956
  );
80843
- const getBulkEditColumns = React82.useCallback(
80957
+ const getBulkEditColumns = React83.useCallback(
80844
80958
  () => columnDefinitions.filter((colDef) => {
80845
80959
  if (!colDef.bulkEditEditor) {
80846
80960
  return false;
@@ -80878,15 +80992,15 @@ var useTableApi = ({
80878
80992
  }),
80879
80993
  [columnDefinitions]
80880
80994
  );
80881
- const isAnyFilterPresent = React82.useCallback(
80995
+ const isAnyFilterPresent = React83.useCallback(
80882
80996
  () => ((gridApi == null ? void 0 : gridApi.isColumnFilterPresent()) || filterStorage.hasSelectedFilters) ?? false,
80883
80997
  [gridApi, filterStorage.hasSelectedFilters]
80884
80998
  );
80885
- const isSearchPresent = React82.useCallback(
80999
+ const isSearchPresent = React83.useCallback(
80886
81000
  () => ((gridApi == null ? void 0 : gridApi.isQuickFilterPresent()) || !!(searchStorage == null ? void 0 : searchStorage.searchValue)) ?? false,
80887
81001
  [gridApi, searchStorage == null ? void 0 : searchStorage.searchValue]
80888
81002
  );
80889
- const setColumnVisibility = React82.useCallback(
81003
+ const setColumnVisibility = React83.useCallback(
80890
81004
  (field, visibility) => {
80891
81005
  columnApi == null ? void 0 : columnApi.setColumnVisible(field, visibility);
80892
81006
  analytics == null ? void 0 : analytics.client.addEvent(
@@ -80901,34 +81015,34 @@ var useTableApi = ({
80901
81015
  },
80902
81016
  [columnApi, analytics, onTableConfigChange]
80903
81017
  );
80904
- const setSearchValue = React82.useCallback(
81018
+ const setSearchValue = React83.useCallback(
80905
81019
  (value) => {
80906
81020
  gridApi == null ? void 0 : gridApi.setQuickFilter(value);
80907
81021
  resetPagination();
80908
81022
  },
80909
81023
  [gridApi]
80910
81024
  );
80911
- const setLoading = React82.useCallback((loading, message = "") => {
81025
+ const setLoading = React83.useCallback((loading, message = "") => {
80912
81026
  setLoadingStatus({
80913
81027
  loading,
80914
81028
  message
80915
81029
  });
80916
81030
  }, []);
80917
- const setRowGrouping = React82.useCallback(
81031
+ const setRowGrouping = React83.useCallback(
80918
81032
  (value) => {
80919
81033
  columnApi == null ? void 0 : columnApi.setRowGroupColumns(value);
80920
81034
  resetPagination();
80921
81035
  },
80922
81036
  [columnApi]
80923
81037
  );
80924
- const setColumnsVisibility = React82.useCallback(
81038
+ const setColumnsVisibility = React83.useCallback(
80925
81039
  (fields, visibility) => {
80926
81040
  columnApi == null ? void 0 : columnApi.setColumnsVisible(fields, visibility);
80927
81041
  onTableConfigChange();
80928
81042
  },
80929
81043
  [columnApi, onTableConfigChange]
80930
81044
  );
80931
- const setTableConfiguration = React82.useCallback(
81045
+ const setTableConfiguration = React83.useCallback(
80932
81046
  (config) => {
80933
81047
  var _a, _b;
80934
81048
  if (!columnApi || !gridApi) {
@@ -80961,7 +81075,7 @@ var useTableApi = ({
80961
81075
  },
80962
81076
  [columnApi, gridApi, internalSetRowHeight, filterStorage.setSelectedFilters]
80963
81077
  );
80964
- const exportToCSV = React82.useCallback(
81078
+ const exportToCSV = React83.useCallback(
80965
81079
  ({
80966
81080
  fileName,
80967
81081
  columnKeys,
@@ -80990,7 +81104,7 @@ var useTableApi = ({
80990
81104
  },
80991
81105
  [analytics, columnDefinitions, gridApi]
80992
81106
  );
80993
- const exportToExcel = React82.useCallback(
81107
+ const exportToExcel = React83.useCallback(
80994
81108
  ({ fileName, columnKeys, sheetName = fileName }) => {
80995
81109
  function processCellCallback(params) {
80996
81110
  var _a;
@@ -81012,7 +81126,7 @@ var useTableApi = ({
81012
81126
  [analytics, columnDefinitions, gridApi]
81013
81127
  );
81014
81128
  const I18n = useI18nContext();
81015
- const exportToHTMLString = React82.useCallback(
81129
+ const exportToHTMLString = React83.useCallback(
81016
81130
  async (config = {}) => {
81017
81131
  const tableContainer = wrapperRef.current;
81018
81132
  if (!columnApi || !gridApi || !tableContainer) {
@@ -81039,13 +81153,13 @@ var useTableApi = ({
81039
81153
  },
81040
81154
  [analytics, columnApi, gridApi, I18n, setLoading]
81041
81155
  );
81042
- const setRowHeight = React82.useCallback(
81156
+ const setRowHeight = React83.useCallback(
81043
81157
  (size) => {
81044
81158
  internalSetRowHeight(size);
81045
81159
  },
81046
81160
  [internalSetRowHeight]
81047
81161
  );
81048
- const gridApiMethods = React82.useMemo(
81162
+ const gridApiMethods = React83.useMemo(
81049
81163
  () => buildPartialTableApi({
81050
81164
  gridApi,
81051
81165
  columnApi,
@@ -81091,7 +81205,7 @@ var useTableApi = ({
81091
81205
  rowNodes: rowValues.map((rowValue) => rowValue.node)
81092
81206
  });
81093
81207
  };
81094
- const selectRows = React82.useCallback(
81208
+ const selectRows = React83.useCallback(
81095
81209
  (rowIds, source) => {
81096
81210
  rowIds == null ? void 0 : rowIds.forEach((id) => {
81097
81211
  const rowNode = gridApi == null ? void 0 : gridApi.getRowNode(id.toString());
@@ -81103,7 +81217,7 @@ var useTableApi = ({
81103
81217
  },
81104
81218
  [gridApi]
81105
81219
  );
81106
- const deselectRows = React82.useCallback(
81220
+ const deselectRows = React83.useCallback(
81107
81221
  (rowIds, source) => {
81108
81222
  rowIds == null ? void 0 : rowIds.forEach((id) => {
81109
81223
  const rowNode = gridApi == null ? void 0 : gridApi.getRowNode(id.toString());
@@ -81379,12 +81493,12 @@ var DataTable = ({
81379
81493
  onTableConfigChange,
81380
81494
  translations: translations2 = {}
81381
81495
  }) => {
81382
- const [initialTableConfig] = React82.useState(_initialTableConfig);
81383
- const onServerSideDataRequestRef = React82.useRef(onServerSideDataRequest);
81384
- const tableRef = React82.useRef(null);
81385
- const [totalRowCount, setTotalRowCount] = React82.useState(0);
81386
- const [selectedGroupIndex, setSelectedGroupIndex] = React82.useState(null);
81387
- const [initialConfigSet, setInitialConfigSet] = React82.useState(
81496
+ const [initialTableConfig] = React83.useState(_initialTableConfig);
81497
+ const onServerSideDataRequestRef = React83.useRef(onServerSideDataRequest);
81498
+ const tableRef = React83.useRef(null);
81499
+ const [totalRowCount, setTotalRowCount] = React83.useState(0);
81500
+ const [selectedGroupIndex, setSelectedGroupIndex] = React83.useState(null);
81501
+ const [initialConfigSet, setInitialConfigSet] = React83.useState(
81388
81502
  !_initialTableConfig
81389
81503
  );
81390
81504
  const contextPanel = useContextPanel();
@@ -81398,7 +81512,7 @@ var DataTable = ({
81398
81512
  translations
81399
81513
  )
81400
81514
  });
81401
- const rowSelectionRef = React82.useRef({
81515
+ const rowSelectionRef = React83.useRef({
81402
81516
  affectedRows: {},
81403
81517
  getRowId
81404
81518
  });
@@ -81413,18 +81527,18 @@ var DataTable = ({
81413
81527
  }
81414
81528
  return missingTranslation(scope2, options);
81415
81529
  };
81416
- const columns = React82.useMemo(
81530
+ const columns = React83.useMemo(
81417
81531
  () => flattenColumnDefinitions(_columnDefinitions),
81418
81532
  [_columnDefinitions]
81419
81533
  );
81420
- const columnMapByField = React82.useMemo(() => {
81534
+ const columnMapByField = React83.useMemo(() => {
81421
81535
  const mapByField = /* @__PURE__ */ new Map();
81422
81536
  columns.forEach((column2) => {
81423
81537
  mapByField.set(column2.field, column2);
81424
81538
  });
81425
81539
  return mapByField;
81426
81540
  }, [columns]);
81427
- const getColumnDefinition = React82.useCallback(
81541
+ const getColumnDefinition = React83.useCallback(
81428
81542
  (field) => {
81429
81543
  if (field === void 0) {
81430
81544
  return void 0;
@@ -81433,14 +81547,14 @@ var DataTable = ({
81433
81547
  },
81434
81548
  [columnMapByField]
81435
81549
  );
81436
- const [rowHeight, setRowHeight] = React82.useState(
81550
+ const [rowHeight, setRowHeight] = React83.useState(
81437
81551
  (initialTableConfig == null ? void 0 : initialTableConfig.rowHeight) || rowSize.md
81438
81552
  );
81439
- const rowHeightRef = React82.useRef(
81553
+ const rowHeightRef = React83.useRef(
81440
81554
  (initialTableConfig == null ? void 0 : initialTableConfig.rowHeight) || rowSize.md
81441
81555
  );
81442
- const [gridApi, setGridApi] = React82.useState();
81443
- const [columnApi, setColumnApi] = React82.useState();
81556
+ const [gridApi, setGridApi] = React83.useState();
81557
+ const [columnApi, setColumnApi] = React83.useState();
81444
81558
  const searchStorage = useSearchStorage();
81445
81559
  const filterState = useFilterState({
81446
81560
  columnDefinitions: columns,
@@ -81452,8 +81566,8 @@ var DataTable = ({
81452
81566
  initialSelectedFilters: initialTableConfig == null ? void 0 : initialTableConfig.serverFilters,
81453
81567
  getColumnDefinition
81454
81568
  });
81455
- const checkboxColumn = React82.useRef(null);
81456
- React82.useEffect(() => {
81569
+ const checkboxColumn = React83.useRef(null);
81570
+ React83.useEffect(() => {
81457
81571
  var _a;
81458
81572
  if (gridApi && columnApi) {
81459
81573
  if (!checkboxColumn.current) {
@@ -81465,7 +81579,7 @@ var DataTable = ({
81465
81579
  }
81466
81580
  }
81467
81581
  }, [gridApi, columnApi, initialTableConfig, initialConfigSet]);
81468
- const internalOnTableConfigChange = React82.useCallback(() => {
81582
+ const internalOnTableConfigChange = React83.useCallback(() => {
81469
81583
  var _a;
81470
81584
  const newCheckboxColumn = getCheckboxColumn(columnApi);
81471
81585
  if (newCheckboxColumn !== checkboxColumn.current) {
@@ -81491,10 +81605,10 @@ var DataTable = ({
81491
81605
  if (!_isEqual(filtersRef.current, filterStorage.selectedFilters)) {
81492
81606
  filtersRef.current = filterStorage.selectedFilters;
81493
81607
  }
81494
- React82.useEffect(() => {
81608
+ React83.useEffect(() => {
81495
81609
  onServerSideDataRequestRef.current = onServerSideDataRequest;
81496
81610
  }, [onServerSideDataRequest]);
81497
- React82.useEffect(() => {
81611
+ React83.useEffect(() => {
81498
81612
  if (onServerSideDataRequestRef.current && gridApi && initialConfigSet) {
81499
81613
  gridApi == null ? void 0 : gridApi.setServerSideDatasource(
81500
81614
  getServerSideDatasource(
@@ -81515,7 +81629,7 @@ var DataTable = ({
81515
81629
  searchStorage.searchValue,
81516
81630
  initialConfigSet
81517
81631
  ]);
81518
- const internalSetRowHeight = React82.useCallback(
81632
+ const internalSetRowHeight = React83.useCallback(
81519
81633
  (tableRowHeight, createTrackEvent = true, triggerTableConfigChange = true) => {
81520
81634
  rowHeightRef.current = tableRowHeight;
81521
81635
  setRowHeight(tableRowHeight);
@@ -81539,7 +81653,7 @@ var DataTable = ({
81539
81653
  },
81540
81654
  [analytics, gridApi, internalOnTableConfigChange]
81541
81655
  );
81542
- const getRowHeight = React82.useCallback(
81656
+ const getRowHeight = React83.useCallback(
81543
81657
  (customFooters) => (params) => {
81544
81658
  var _a, _b;
81545
81659
  if (params.node.rowPinned === "bottom") {
@@ -81562,7 +81676,7 @@ var DataTable = ({
81562
81676
  Object.prototype.hasOwnProperty.call(params, "search") && searchStorage.setSearchValue(params.search || "");
81563
81677
  params.filter && filterStorage.onChangeFilterValue(params.filter);
81564
81678
  };
81565
- return /* @__PURE__ */ React82.createElement(I18nContext.Provider, { value: internalI18n }, /* @__PURE__ */ React82.createElement(ToastAlertProvider, null, /* @__PURE__ */ React82.createElement(
81679
+ return /* @__PURE__ */ React83.createElement(I18nContext.Provider, { value: internalI18n }, /* @__PURE__ */ React83.createElement(ToastAlertProvider, null, /* @__PURE__ */ React83.createElement(
81566
81680
  InternalTableContext.Provider,
81567
81681
  {
81568
81682
  value: {
@@ -81657,12 +81771,12 @@ var Table = (props) => {
81657
81771
  const clientSideRowData = props.rows ? { rowData: props.rows } : {};
81658
81772
  const serverSideInfiniteScroll = internalTableContext.onServerSideDataRequest ? { serverSideInfiniteScroll: true } : {};
81659
81773
  const { columnApi, getRowHeight, gridApi } = internalTableContext;
81660
- const [viewportWidth, setViewportWidth] = React82.useState(0);
81661
- const rowActionsWidth = React82.useRef(0);
81662
- const [tableHeight, setTableHeight] = React82.useState(0);
81663
- const frameworkComponentsInitialized = React82.useRef(false);
81774
+ const [viewportWidth, setViewportWidth] = React83.useState(0);
81775
+ const rowActionsWidth = React83.useRef(0);
81776
+ const [tableHeight, setTableHeight] = React83.useState(0);
81777
+ const frameworkComponentsInitialized = React83.useRef(false);
81664
81778
  const selectedGroupIndex = internalTableContext.selectedGroupIndex ?? null;
81665
- const tableRowSelectionEnabled = React82.useMemo(() => {
81779
+ const tableRowSelectionEnabled = React83.useMemo(() => {
81666
81780
  const bulkActionsEnabled = internalTableContext.columnDefinitions.some(
81667
81781
  (colDef) => {
81668
81782
  return !!colDef.bulkEditEditor;
@@ -81671,15 +81785,15 @@ var Table = (props) => {
81671
81785
  return Boolean(bulkActionsEnabled || props.rowSelectionEnabled);
81672
81786
  }, [props.rowSelectionEnabled, internalTableContext.columnDefinitions]);
81673
81787
  const { rowSelectionRef } = internalTableContext;
81674
- const [frameworkComponents, setFrameworkComponents] = React82.useState(
81788
+ const [frameworkComponents, setFrameworkComponents] = React83.useState(
81675
81789
  getFrameworkComponents(
81676
81790
  headerMenuConfig,
81677
81791
  props.onSelectAll,
81678
81792
  props.selectionSSREnabled
81679
81793
  )
81680
81794
  );
81681
- const wrapperRef = React82.useRef(null);
81682
- const [loadingStatus, setLoadingStatus] = React82.useState({
81795
+ const wrapperRef = React83.useRef(null);
81796
+ const [loadingStatus, setLoadingStatus] = React83.useState({
81683
81797
  loading: props.loading || false,
81684
81798
  message: I18n.t("loadingLabel") || ""
81685
81799
  });
@@ -81690,10 +81804,10 @@ var Table = (props) => {
81690
81804
  setLoadingStatus,
81691
81805
  wrapperRef
81692
81806
  });
81693
- React82.useImperativeHandle(internalTableContext.tableRef, () => tableApi, [
81807
+ React83.useImperativeHandle(internalTableContext.tableRef, () => tableApi, [
81694
81808
  tableApi
81695
81809
  ]);
81696
- const decoratedColDefs = React82.useMemo(
81810
+ const decoratedColDefs = React83.useMemo(
81697
81811
  () => {
81698
81812
  var _a2;
81699
81813
  return (_a2 = internalTableContext.columnDefinitions) == null ? void 0 : _a2.map(
@@ -81706,24 +81820,24 @@ var Table = (props) => {
81706
81820
  },
81707
81821
  [internalTableContext.columnDefinitions]
81708
81822
  );
81709
- const hasRowActions = React82.useMemo(
81823
+ const hasRowActions = React83.useMemo(
81710
81824
  () => decoratedColDefs.some(({ field }) => field === "rowActions"),
81711
81825
  [decoratedColDefs]
81712
81826
  );
81713
81827
  if (props.rowActions && !hasRowActions) {
81714
81828
  rowActionsWidth.current = 70 + 40 * (props.rowActions.length - 1);
81715
81829
  }
81716
- const columnGroupBordersEnabled = React82.useMemo(() => {
81830
+ const columnGroupBordersEnabled = React83.useMemo(() => {
81717
81831
  if (props.suppressColumnGroupBorders !== void 0) {
81718
81832
  return !props.suppressColumnGroupBorders;
81719
81833
  }
81720
81834
  return true;
81721
81835
  }, [props.suppressColumnGroupBorders]);
81722
- const getMainTableRowHeight = React82.useMemo(
81836
+ const getMainTableRowHeight = React83.useMemo(
81723
81837
  () => getRowHeight(props.customFooters),
81724
81838
  [props.customFooters]
81725
81839
  );
81726
- const updateDomLayout = React82.useCallback(() => {
81840
+ const updateDomLayout = React83.useCallback(() => {
81727
81841
  if (!gridApi) {
81728
81842
  return;
81729
81843
  }
@@ -81741,7 +81855,7 @@ var Table = (props) => {
81741
81855
  gridApi.setDomLayout(domLayout);
81742
81856
  setTableHeight(internalTableHeight);
81743
81857
  }, [getMainTableRowHeight, gridApi, props.maxHeight]);
81744
- const rowClassRules = React82.useMemo(() => {
81858
+ const rowClassRules = React83.useMemo(() => {
81745
81859
  return {
81746
81860
  /**
81747
81861
  * Row active class
@@ -81783,7 +81897,7 @@ var Table = (props) => {
81783
81897
  gridApi == null ? void 0 : gridApi.setHeaderHeight(maxHeight);
81784
81898
  }
81785
81899
  }
81786
- React82.useEffect(() => {
81900
+ React83.useEffect(() => {
81787
81901
  var _a2, _b2;
81788
81902
  if (gridApi && columnApi && ((_a2 = internalTableContext.tableRef) == null ? void 0 : _a2.current)) {
81789
81903
  (_b2 = props.onTableReady) == null ? void 0 : _b2.call(
@@ -81803,19 +81917,19 @@ var Table = (props) => {
81803
81917
  }
81804
81918
  return;
81805
81919
  }, [gridApi, columnApi]);
81806
- React82.useEffect(() => {
81920
+ React83.useEffect(() => {
81807
81921
  if (props.onRowDragEnd && Boolean(decoratedColDefs[0].rowDrag) === false) {
81808
81922
  decoratedColDefs[0].rowDrag = true;
81809
81923
  }
81810
81924
  }, [props.onRowDragEnd, decoratedColDefs]);
81811
81925
  const loadingLabel = I18n.t("loadingLabel");
81812
- React82.useEffect(() => {
81926
+ React83.useEffect(() => {
81813
81927
  tableApi.setLoading(props.loading || false, loadingLabel);
81814
81928
  }, [props.loading]);
81815
- React82.useEffect(() => {
81929
+ React83.useEffect(() => {
81816
81930
  updateDomLayout();
81817
81931
  }, [updateDomLayout]);
81818
- React82.useEffect(() => {
81932
+ React83.useEffect(() => {
81819
81933
  if (!gridApi) {
81820
81934
  return;
81821
81935
  }
@@ -81868,7 +81982,7 @@ var Table = (props) => {
81868
81982
  props.rowActions,
81869
81983
  props.suppressColumnVirtualisation
81870
81984
  ]);
81871
- React82.useEffect(() => {
81985
+ React83.useEffect(() => {
81872
81986
  if (frameworkComponentsInitialized.current === true) {
81873
81987
  console.warn("Don't update custom cells after the initial render.");
81874
81988
  setFrameworkComponents(
@@ -81881,7 +81995,7 @@ var Table = (props) => {
81881
81995
  }
81882
81996
  frameworkComponentsInitialized.current = true;
81883
81997
  }, []);
81884
- React82.useEffect(() => {
81998
+ React83.useEffect(() => {
81885
81999
  if (props.siblingGroupsRowSelectionDisabled) {
81886
82000
  setSiblingGroupsRowSelection(selectedGroupIndex, gridApi);
81887
82001
  }
@@ -81894,7 +82008,7 @@ var Table = (props) => {
81894
82008
  params.getValue(params.colDef.field)
81895
82009
  );
81896
82010
  }
81897
- return /* @__PURE__ */ React82.createElement(React82.Fragment, null, /* @__PURE__ */ React82.createElement(Typography, { weight: "semibold", intent: "small", color: "gray45" }, params.getValue(params.colDef.field)), " ", I18n.t("core.dataTable.subtotals"));
82011
+ return /* @__PURE__ */ React83.createElement(React83.Fragment, null, /* @__PURE__ */ React83.createElement(Typography, { weight: "semibold", intent: "small", color: "gray45" }, params.getValue(params.colDef.field)), " ", I18n.t("core.dataTable.subtotals"));
81898
82012
  }
81899
82013
  function onCellValueChanged(event) {
81900
82014
  var _a2;
@@ -81908,7 +82022,7 @@ var Table = (props) => {
81908
82022
  });
81909
82023
  }
81910
82024
  }
81911
- const onModelUpdated = React82.useCallback(
82025
+ const onModelUpdated = React83.useCallback(
81912
82026
  async (event) => {
81913
82027
  var _a2, _b2;
81914
82028
  if (!props.pinnedBottomRowData) {
@@ -81945,7 +82059,7 @@ var Table = (props) => {
81945
82059
  gridApi
81946
82060
  ]
81947
82061
  );
81948
- const internalOnCellValueChanged = React82.useCallback(
82062
+ const internalOnCellValueChanged = React83.useCallback(
81949
82063
  async (event) => {
81950
82064
  var _a2, _b2;
81951
82065
  if ((_a2 = event.api) == null ? void 0 : _a2.isAnyFilterPresent()) {
@@ -81958,7 +82072,7 @@ var Table = (props) => {
81958
82072
  },
81959
82073
  [onModelUpdated]
81960
82074
  );
81961
- const isFullWidthRow = React82.useCallback(
82075
+ const isFullWidthRow = React83.useCallback(
81962
82076
  (node) => {
81963
82077
  if (props.isFullWidth) {
81964
82078
  return props.isFullWidth(node.data);
@@ -81967,7 +82081,7 @@ var Table = (props) => {
81967
82081
  },
81968
82082
  [props]
81969
82083
  );
81970
- const isRowSelectable = React82.useCallback(
82084
+ const isRowSelectable = React83.useCallback(
81971
82085
  (node) => {
81972
82086
  if (typeof props.rowSelectionEnabled === "boolean") {
81973
82087
  return props.rowSelectionEnabled;
@@ -81984,7 +82098,7 @@ var Table = (props) => {
81984
82098
  },
81985
82099
  [props]
81986
82100
  );
81987
- const decoratedAutoGroupColDef = React82.useMemo(
82101
+ const decoratedAutoGroupColDef = React83.useMemo(
81988
82102
  () => getDecoratedAutoGroupColDef(
81989
82103
  props == null ? void 0 : props.autoGroupColumnDefinition,
81990
82104
  internalTableContext.enableGroupEditAndValidation,
@@ -81994,7 +82108,7 @@ var Table = (props) => {
81994
82108
  ),
81995
82109
  [props == null ? void 0 : props.autoGroupColumnDefinition]
81996
82110
  );
81997
- const onColumnGroupOpened = React82.useCallback(
82111
+ const onColumnGroupOpened = React83.useCallback(
81998
82112
  (event) => {
81999
82113
  var _a2, _b2, _c;
82000
82114
  (_c = internalTableContext.analytics) == null ? void 0 : _c.client.addEvent(
@@ -82012,7 +82126,7 @@ var Table = (props) => {
82012
82126
  },
82013
82127
  [internalTableContext, columnGroupBordersEnabled]
82014
82128
  );
82015
- const onColumnPinned = React82.useCallback(
82129
+ const onColumnPinned = React83.useCallback(
82016
82130
  (event) => {
82017
82131
  var _a2, _b2, _c, _d;
82018
82132
  (_d = internalTableContext.analytics) == null ? void 0 : _d.client.addEvent(
@@ -82034,11 +82148,11 @@ var Table = (props) => {
82034
82148
  },
82035
82149
  [columnApi, internalTableContext]
82036
82150
  );
82037
- const onColumnResized = React82.useCallback(() => {
82151
+ const onColumnResized = React83.useCallback(() => {
82038
82152
  internalTableContext.onTableConfigChange();
82039
82153
  setHeaderHeight();
82040
82154
  }, [internalTableContext.onTableConfigChange]);
82041
- const onDisplayedColumnsChanged = React82.useCallback(
82155
+ const onDisplayedColumnsChanged = React83.useCallback(
82042
82156
  (event) => {
82043
82157
  var _a2;
82044
82158
  if (props.onRowDragEnd) {
@@ -82052,14 +82166,14 @@ var Table = (props) => {
82052
82166
  },
82053
82167
  [props.onRowDragEnd]
82054
82168
  );
82055
- const onColumnMoved = React82.useCallback(
82169
+ const onColumnMoved = React83.useCallback(
82056
82170
  (event) => {
82057
82171
  moveColumnEvent = event;
82058
82172
  internalTableContext.onTableConfigChange();
82059
82173
  },
82060
82174
  [internalTableContext.onTableConfigChange]
82061
82175
  );
82062
- const onSortEventChanged = React82.useCallback(
82176
+ const onSortEventChanged = React83.useCallback(
82063
82177
  (event) => {
82064
82178
  var _a2;
82065
82179
  const { columnApi: columnApi2 } = event;
@@ -82100,7 +82214,7 @@ var Table = (props) => {
82100
82214
  });
82101
82215
  }
82102
82216
  }
82103
- const onDragStopped = React82.useCallback(
82217
+ const onDragStopped = React83.useCallback(
82104
82218
  // eslint-disable-next-line complexity
82105
82219
  (event) => {
82106
82220
  var _a2, _b2, _c;
@@ -82150,16 +82264,16 @@ var Table = (props) => {
82150
82264
  props.rows
82151
82265
  ]
82152
82266
  );
82153
- const onRowDragEnd = React82.useCallback((event) => {
82267
+ const onRowDragEnd = React83.useCallback((event) => {
82154
82268
  rowDragEndEvent = event;
82155
82269
  }, []);
82156
- const onRowDragMove = React82.useCallback((event) => {
82270
+ const onRowDragMove = React83.useCallback((event) => {
82157
82271
  rowDragMoveEvent = event;
82158
82272
  }, []);
82159
- const previousGroupedFields = React82.useRef(
82273
+ const previousGroupedFields = React83.useRef(
82160
82274
  ((_b = (_a = internalTableContext.initialTableConfig) == null ? void 0 : _a.columnState) == null ? void 0 : _b.filter((cs) => cs.rowGroup).sort((a, b) => a.rowGroupIndex - b.rowGroupIndex).map((cs) => cs.field)) || []
82161
82275
  );
82162
- const onColumnRowGroupChanged = React82.useCallback(() => {
82276
+ const onColumnRowGroupChanged = React83.useCallback(() => {
82163
82277
  var _a2;
82164
82278
  const currentGroupedFields = (columnApi == null ? void 0 : columnApi.getRowGroupColumns().map((c) => c.getColId())) || [];
82165
82279
  const groupedFieldsAdded = currentGroupedFields.filter(
@@ -82194,7 +82308,7 @@ var Table = (props) => {
82194
82308
  previousGroupedFields.current = currentGroupedFields;
82195
82309
  internalTableContext.onTableConfigChange();
82196
82310
  }, [columnApi, internalTableContext]);
82197
- const onContainerResize = React82.useCallback(() => {
82311
+ const onContainerResize = React83.useCallback(() => {
82198
82312
  var _a2;
82199
82313
  setViewportWidth(
82200
82314
  (_a2 = document.getElementsByClassName("ag-body-viewport")[0]) == null ? void 0 : _a2.clientWidth
@@ -82226,7 +82340,7 @@ var Table = (props) => {
82226
82340
  }
82227
82341
  }
82228
82342
  };
82229
- const internalRowGroupOpened = React82.useCallback(
82343
+ const internalRowGroupOpened = React83.useCallback(
82230
82344
  (event) => {
82231
82345
  var _a2;
82232
82346
  (_a2 = props.onRowGroupOpened) == null ? void 0 : _a2.call(props, {
@@ -82237,7 +82351,7 @@ var Table = (props) => {
82237
82351
  },
82238
82352
  [props.onRowGroupOpened]
82239
82353
  );
82240
- const getGroupRowAgg = React82.useCallback(
82354
+ const getGroupRowAgg = React83.useCallback(
82241
82355
  (params) => {
82242
82356
  const agNodes = params.nodes;
82243
82357
  if (!props.getGroupRowAgg) {
@@ -82258,7 +82372,7 @@ var Table = (props) => {
82258
82372
  },
82259
82373
  [props.getGroupRowAgg]
82260
82374
  );
82261
- const defaultColDef = React82.useMemo(
82375
+ const defaultColDef = React83.useMemo(
82262
82376
  function() {
82263
82377
  return {
82264
82378
  cellDataType: false,
@@ -82305,7 +82419,7 @@ var Table = (props) => {
82305
82419
  props.detailRowConfig
82306
82420
  ]
82307
82421
  );
82308
- const detailRowConfigProps = React82.useMemo(() => {
82422
+ const detailRowConfigProps = React83.useMemo(() => {
82309
82423
  return buildDetailRowsConfig({
82310
82424
  detailRowConfig: props.detailRowConfig,
82311
82425
  detailRowConfigs: props.detailRowConfigs,
@@ -82326,12 +82440,12 @@ var Table = (props) => {
82326
82440
  props.emptyStateRenderer,
82327
82441
  frameworkComponents
82328
82442
  ]);
82329
- React82.useEffect(() => {
82443
+ React83.useEffect(() => {
82330
82444
  getCurrentRows(gridApi).forEach(
82331
82445
  (rowNode) => rowNode.selectable = !!isRowSelectable(rowNode)
82332
82446
  );
82333
82447
  }, [isRowSelectable]);
82334
- React82.useEffect(() => {
82448
+ React83.useEffect(() => {
82335
82449
  rowSelectionRef.current = {
82336
82450
  affectedRows: {},
82337
82451
  enabled: props.rowSelectionEnabled,
@@ -82344,7 +82458,7 @@ var Table = (props) => {
82344
82458
  ["onGridReady"],
82345
82459
  props.UNSAFE_internalAGGridOverrides ?? {}
82346
82460
  );
82347
- return /* @__PURE__ */ React82.createElement(
82461
+ return /* @__PURE__ */ React83.createElement(
82348
82462
  Spinner,
82349
82463
  {
82350
82464
  loading: loadingStatus.loading,
@@ -82356,14 +82470,14 @@ var Table = (props) => {
82356
82470
  flexDirection: "column"
82357
82471
  }
82358
82472
  },
82359
- /* @__PURE__ */ React82.createElement(
82473
+ /* @__PURE__ */ React83.createElement(
82360
82474
  ReactResizeDetector,
82361
82475
  {
82362
82476
  onResize: onContainerResize,
82363
82477
  refreshMode: "debounce",
82364
82478
  refreshRate: 400
82365
82479
  },
82366
- /* @__PURE__ */ React82.createElement(
82480
+ /* @__PURE__ */ React83.createElement(
82367
82481
  "div",
82368
82482
  {
82369
82483
  style: {
@@ -82377,11 +82491,11 @@ var Table = (props) => {
82377
82491
  ref: wrapperRef,
82378
82492
  "data-qa": loadingStatus.loading ? "loading" : "loaded"
82379
82493
  },
82380
- /* @__PURE__ */ React82.createElement("style", null, `:root {
82494
+ /* @__PURE__ */ React83.createElement("style", null, `:root {
82381
82495
  --viewport-width: ${viewportWidth}px;
82382
82496
  --rowActions-width: ${rowActionsWidth.current}px;
82383
82497
  }`),
82384
- /* @__PURE__ */ React82.createElement(
82498
+ /* @__PURE__ */ React83.createElement(
82385
82499
  AgGridReact,
82386
82500
  {
82387
82501
  aggFuncs: aggregationFunctions_exports,
@@ -82480,7 +82594,7 @@ var Table = (props) => {
82480
82594
  )
82481
82595
  )
82482
82596
  ),
82483
- props.pagination && gridApi && /* @__PURE__ */ React82.createElement(
82597
+ props.pagination && gridApi && /* @__PURE__ */ React83.createElement(
82484
82598
  TablePagination,
82485
82599
  {
82486
82600
  gridApi,
@@ -82497,11 +82611,11 @@ var TablePagination = ({
82497
82611
  pageSize,
82498
82612
  totalRowCount
82499
82613
  }) => {
82500
- const [pagination, setPagination] = React82.useState({
82614
+ const [pagination, setPagination] = React83.useState({
82501
82615
  page: 0,
82502
82616
  items: 0
82503
82617
  });
82504
- React82.useEffect(() => {
82618
+ React83.useEffect(() => {
82505
82619
  function onPaginationChanged(params) {
82506
82620
  if (gridApi && params.api.paginationGetCurrentPage() !== pagination.page || pagination.items !== params.api.paginationGetRowCount()) {
82507
82621
  setPagination({
@@ -82519,7 +82633,7 @@ var TablePagination = ({
82519
82633
  );
82520
82634
  };
82521
82635
  }, []);
82522
- return /* @__PURE__ */ React82.createElement(
82636
+ return /* @__PURE__ */ React83.createElement(
82523
82637
  Pagination,
82524
82638
  {
82525
82639
  activePage: pagination.page + 1,
@@ -82538,7 +82652,7 @@ var ContextPanel = ({
82538
82652
  ...props
82539
82653
  }) => {
82540
82654
  const { contextPanel } = useInternalTableContext();
82541
- return /* @__PURE__ */ React82.createElement(
82655
+ return /* @__PURE__ */ React83.createElement(
82542
82656
  Card,
82543
82657
  {
82544
82658
  className: cx21("contextPanel", className, {
@@ -82547,7 +82661,7 @@ var ContextPanel = ({
82547
82661
  "data-qa": "data-table-context-panel",
82548
82662
  ...props
82549
82663
  },
82550
- /* @__PURE__ */ React82.createElement(Box, { className: cx21("contextPanelWrapper"), display: "flex-column" }, contextPanel.content === "configuration" && /* @__PURE__ */ React82.createElement(ConfigurationPanel, null), contextPanel.content === "bulkEdit" && /* @__PURE__ */ React82.createElement(BulkEditPanel, null), contextPanel.content === "custom" && children)
82664
+ /* @__PURE__ */ React83.createElement(Box, { className: cx21("contextPanelWrapper"), display: "flex-column" }, contextPanel.content === "configuration" && /* @__PURE__ */ React83.createElement(ConfigurationPanel, null), contextPanel.content === "bulkEdit" && /* @__PURE__ */ React83.createElement(BulkEditPanel, null), contextPanel.content === "custom" && children)
82551
82665
  );
82552
82666
  };
82553
82667
  function isLastColumnInGroup(params) {
@@ -82601,7 +82715,7 @@ var ClientSideDataTable = ({
82601
82715
  onTableConfigChange,
82602
82716
  translations: translations2 = {}
82603
82717
  }) => {
82604
- return /* @__PURE__ */ React82.createElement(
82718
+ return /* @__PURE__ */ React83.createElement(
82605
82719
  DataTable,
82606
82720
  {
82607
82721
  analytics,
@@ -82621,11 +82735,11 @@ var ClientSideDataTable = ({
82621
82735
  };
82622
82736
  var Table2 = (props) => {
82623
82737
  const internalTableContext = useInternalTableContext();
82624
- React82.useEffect(() => {
82738
+ React83.useEffect(() => {
82625
82739
  var _a;
82626
82740
  internalTableContext.setTotalRowCount(((_a = props.rows) == null ? void 0 : _a.length) ?? 0);
82627
82741
  }, [props.rows]);
82628
- return /* @__PURE__ */ React82.createElement(Table, { ...props, modules: [ClientSideRowModelModule] });
82742
+ return /* @__PURE__ */ React83.createElement(Table, { ...props, modules: [ClientSideRowModelModule] });
82629
82743
  };
82630
82744
  BulkActions.displayName = "ClientSideDataTable.BulkActions";
82631
82745
  ConfigPanelButton.displayName = "ClientSideDataTable.ConfigPanelButton";
@@ -82652,8 +82766,8 @@ var ClientSideDataTable_default = addSubcomponents(
82652
82766
  },
82653
82767
  ClientSideDataTable
82654
82768
  );
82655
- var QuickFilterLabel = React82.forwardRef(({ enabled, ...props }, ref) => {
82656
- return /* @__PURE__ */ React82.createElement(StyledQuickFilterLabel, { $enabled: enabled }, /* @__PURE__ */ React82.createElement(SelectButton, { ref, ...props }));
82769
+ var QuickFilterLabel = React83.forwardRef(({ enabled, ...props }, ref) => {
82770
+ return /* @__PURE__ */ React83.createElement(StyledQuickFilterLabel, { $enabled: enabled }, /* @__PURE__ */ React83.createElement(SelectButton, { ref, ...props }));
82657
82771
  });
82658
82772
  var StyledQuickFilterLabel = styled4.div`
82659
82773
  ${StyledSelectButton} {
@@ -82696,9 +82810,9 @@ function getPlacement2(currentSelectionType, position) {
82696
82810
  return "bottom-right";
82697
82811
  }
82698
82812
  var OptionalDateTimeProvider2 = ({ timeZone, children }) => {
82699
- return timeZone ? /* @__PURE__ */ React82.createElement(DateTimeProvider, { timeZone }, children) : /* @__PURE__ */ React82.createElement(React82.Fragment, null, children);
82813
+ return timeZone ? /* @__PURE__ */ React83.createElement(DateTimeProvider, { timeZone }, children) : /* @__PURE__ */ React83.createElement(React83.Fragment, null, children);
82700
82814
  };
82701
- var DateFilterSelect2 = React82.forwardRef(
82815
+ var DateFilterSelect2 = React83.forwardRef(
82702
82816
  ({
82703
82817
  afterHide,
82704
82818
  selectionType = "either",
@@ -82712,11 +82826,11 @@ var DateFilterSelect2 = React82.forwardRef(
82712
82826
  const dateTime = useDateTime();
82713
82827
  const { start, end } = selectedValue;
82714
82828
  const selectedDate = (position === "start" ? start : end) ?? void 0;
82715
- const [displayed, setDisplayed2] = React82.useState(
82829
+ const [displayed, setDisplayed2] = React83.useState(
82716
82830
  // @ts-ignore
82717
82831
  selectedDate || dateTime.newDate()
82718
82832
  );
82719
- React82.useEffect(() => {
82833
+ React83.useEffect(() => {
82720
82834
  if (isDate(start) && !isDate(end) && position === "end") {
82721
82835
  setDisplayed2(start);
82722
82836
  }
@@ -82727,10 +82841,10 @@ var DateFilterSelect2 = React82.forwardRef(
82727
82841
  function onClear() {
82728
82842
  onChange(null, position);
82729
82843
  }
82730
- const clearRef = React82.useRef(null);
82731
- const monthRef = React82.useRef(null);
82732
- const yearRef = React82.useRef(null);
82733
- const overlay = /* @__PURE__ */ React82.createElement(
82844
+ const clearRef = React83.useRef(null);
82845
+ const monthRef = React83.useRef(null);
82846
+ const yearRef = React83.useRef(null);
82847
+ const overlay = /* @__PURE__ */ React83.createElement(
82734
82848
  DateFilterOverlay,
82735
82849
  {
82736
82850
  displayDate: displayed,
@@ -82746,7 +82860,7 @@ var DateFilterSelect2 = React82.forwardRef(
82746
82860
  yearRef
82747
82861
  }
82748
82862
  );
82749
- return /* @__PURE__ */ React82.createElement(
82863
+ return /* @__PURE__ */ React83.createElement(
82750
82864
  OverlayTrigger,
82751
82865
  {
82752
82866
  afterHide,
@@ -82764,7 +82878,7 @@ var DateFilterSelect2 = React82.forwardRef(
82764
82878
  restoreFocusOnHide: true,
82765
82879
  role: "dialog"
82766
82880
  },
82767
- /* @__PURE__ */ React82.createElement(
82881
+ /* @__PURE__ */ React83.createElement(
82768
82882
  DateQuickFilterLabel,
82769
82883
  {
82770
82884
  headerName,
@@ -82785,10 +82899,10 @@ function DateFilter3({
82785
82899
  value,
82786
82900
  ...props
82787
82901
  }) {
82788
- const [selectedValue, setSelectedValue] = React82.useState({
82902
+ const [selectedValue, setSelectedValue] = React83.useState({
82789
82903
  type: selectionType === "either" ? "range" : selectionType
82790
82904
  });
82791
- React82.useEffect(() => {
82905
+ React83.useEffect(() => {
82792
82906
  const parsedValue = value.map((date) => {
82793
82907
  if (isDate(date)) {
82794
82908
  return date;
@@ -82798,7 +82912,7 @@ function DateFilter3({
82798
82912
  const type = isSameDay(parsedValue[0], parsedValue[1]) ? "single" : "range";
82799
82913
  setSelectedValue({ type, start: parsedValue[0], end: parsedValue[1] });
82800
82914
  }, [value]);
82801
- const dateRangeEndDateRef = React82.useRef(null);
82915
+ const dateRangeEndDateRef = React83.useRef(null);
82802
82916
  function dateFilterOnChange(date, position) {
82803
82917
  const newValue = getValueFromSelection(selectedValue, date, position);
82804
82918
  setSelectedValue(newValue);
@@ -82811,7 +82925,7 @@ function DateFilter3({
82811
82925
  );
82812
82926
  }
82813
82927
  }
82814
- const onSelectionTypeChange = React82.useCallback(
82928
+ const onSelectionTypeChange = React83.useCallback(
82815
82929
  (newSelectionType) => {
82816
82930
  setSelectedValue({ type: newSelectionType });
82817
82931
  },
@@ -82824,7 +82938,7 @@ function DateFilter3({
82824
82938
  }
82825
82939
  return true;
82826
82940
  }
82827
- return /* @__PURE__ */ React82.createElement(FlexList, { space: "xs", "data-qa": props["data-qa"] }, /* @__PURE__ */ React82.createElement(
82941
+ return /* @__PURE__ */ React83.createElement(FlexList, { space: "xs", "data-qa": props["data-qa"] }, /* @__PURE__ */ React83.createElement(
82828
82942
  DateFilterSelect2,
82829
82943
  {
82830
82944
  afterHide: dateRangeAfterHide,
@@ -82835,7 +82949,7 @@ function DateFilter3({
82835
82949
  selectionType,
82836
82950
  setSelectionType: onSelectionTypeChange
82837
82951
  }
82838
- ), selectedValue.type === "range" && /* @__PURE__ */ React82.createElement(
82952
+ ), selectedValue.type === "range" && /* @__PURE__ */ React83.createElement(
82839
82953
  DateFilterSelect2,
82840
82954
  {
82841
82955
  headerName,
@@ -82856,7 +82970,7 @@ function ServerSideQuickDateFilterRenderer({
82856
82970
  columnDefinition
82857
82971
  });
82858
82972
  const colDef = columnDefinition;
82859
- return /* @__PURE__ */ React82.createElement(OptionalDateTimeProvider2, { timeZone: colDef.timeZone }, /* @__PURE__ */ React82.createElement(
82973
+ return /* @__PURE__ */ React83.createElement(OptionalDateTimeProvider2, { timeZone: colDef.timeZone }, /* @__PURE__ */ React83.createElement(
82860
82974
  DateFilter3,
82861
82975
  {
82862
82976
  selectionType: ((_a = colDef.filterProps) == null ? void 0 : _a.selectionType) ?? "either",
@@ -82881,7 +82995,7 @@ function ServerSideQuickDateFilterRenderer({
82881
82995
  var QuickDateFilterRenderer = (props) => {
82882
82996
  const { onServerSideDataRequest } = useInternalTableContext();
82883
82997
  if (onServerSideDataRequest) {
82884
- return /* @__PURE__ */ React82.createElement(ServerSideQuickDateFilterRenderer, { ...props });
82998
+ return /* @__PURE__ */ React83.createElement(ServerSideQuickDateFilterRenderer, { ...props });
82885
82999
  }
82886
83000
  console.error(
82887
83001
  "Warning: Date Filters are currently only implemented for the serverside row model"
@@ -82911,7 +83025,7 @@ var dateInputLocales = {
82911
83025
  placeholders: { day: "tt", month: "MM", year: "jjjj" }
82912
83026
  }
82913
83027
  };
82914
- var DateQuickFilterLabel = React82.forwardRef(({ headerName, onClear, value }, ref) => {
83028
+ var DateQuickFilterLabel = React83.forwardRef(({ headerName, onClear, value }, ref) => {
82915
83029
  var _a;
82916
83030
  const dateTime = useDateTime();
82917
83031
  const i18n = useI18nContext();
@@ -82921,7 +83035,7 @@ var DateQuickFilterLabel = React82.forwardRef(({ headerName, onClear, value }, r
82921
83035
  year: "yyyy"
82922
83036
  };
82923
83037
  if (value !== void 0 && isDate(value)) {
82924
- return /* @__PURE__ */ React82.createElement(
83038
+ return /* @__PURE__ */ React83.createElement(
82925
83039
  QuickFilterLabel,
82926
83040
  {
82927
83041
  enabled: true,
@@ -82931,7 +83045,7 @@ var DateQuickFilterLabel = React82.forwardRef(({ headerName, onClear, value }, r
82931
83045
  }
82932
83046
  );
82933
83047
  }
82934
- return /* @__PURE__ */ React82.createElement(
83048
+ return /* @__PURE__ */ React83.createElement(
82935
83049
  QuickFilterLabel,
82936
83050
  {
82937
83051
  enabled: false,
@@ -82951,7 +83065,7 @@ var useSuperSelectOptionAsValueWorkaround = ({
82951
83065
  getId: getId3 = defaultGetId2,
82952
83066
  loading
82953
83067
  }) => {
82954
- const isValueFromOptions = React82.useRef(false);
83068
+ const isValueFromOptions = React83.useRef(false);
82955
83069
  const getValueFromOptions = () => {
82956
83070
  const valueIds = originValue.map(getId3);
82957
83071
  isValueFromOptions.current = true;
@@ -82967,7 +83081,7 @@ var useSuperSelectOptionAsValueWorkaround = ({
82967
83081
  getOptionValue: (option) => option
82968
83082
  };
82969
83083
  };
82970
- var LocationQuickFilterOverlay = React82.forwardRef(
83084
+ var LocationQuickFilterOverlay = React83.forwardRef(
82971
83085
  ({
82972
83086
  getId: getId3,
82973
83087
  getLabel: getLabel3,
@@ -82987,9 +83101,9 @@ var LocationQuickFilterOverlay = React82.forwardRef(
82987
83101
  );
82988
83102
  return null;
82989
83103
  }
82990
- const [items, setItems] = React82.useState(options);
82991
- const [searching, setSearching] = React82.useState(false);
82992
- const menuRef = React82.useRef(null);
83104
+ const [items, setItems] = React83.useState(options);
83105
+ const [searching, setSearching] = React83.useState(false);
83106
+ const menuRef = React83.useRef(null);
82993
83107
  const { menuProps, menuNavigationTriggerProps } = UNSAFE_useMenuImperativeControlNavigation(menuRef);
82994
83108
  const I18n = useI18nContext();
82995
83109
  const selectAllOption = {
@@ -83023,11 +83137,11 @@ var LocationQuickFilterOverlay = React82.forwardRef(
83023
83137
  }
83024
83138
  }
83025
83139
  const _onSearch = columnDefinition.filterProps.onSearch || defaultOnSearch;
83026
- React82.useEffect(() => {
83140
+ React83.useEffect(() => {
83027
83141
  var _a;
83028
83142
  (_a = menuRef.current) == null ? void 0 : _a.highlightSuggested();
83029
83143
  }, []);
83030
- return /* @__PURE__ */ React82.createElement(Card, { ref }, /* @__PURE__ */ React82.createElement(
83144
+ return /* @__PURE__ */ React83.createElement(Card, { ref }, /* @__PURE__ */ React83.createElement(
83031
83145
  UNSAFE_Menu,
83032
83146
  {
83033
83147
  ...menuProps,
@@ -83037,20 +83151,20 @@ var LocationQuickFilterOverlay = React82.forwardRef(
83037
83151
  onSelect,
83038
83152
  className: locationFilterStyles_default.locationFilterMenu
83039
83153
  },
83040
- /* @__PURE__ */ React82.createElement(
83154
+ /* @__PURE__ */ React83.createElement(
83041
83155
  UNSAFE_Menu.Search,
83042
83156
  {
83043
83157
  ...menuNavigationTriggerProps,
83044
83158
  onChange: _onSearch
83045
83159
  }
83046
83160
  ),
83047
- /* @__PURE__ */ React82.createElement(UNSAFE_Menu.Options, null, !searching && /* @__PURE__ */ React82.createElement(
83161
+ /* @__PURE__ */ React83.createElement(UNSAFE_Menu.Options, null, !searching && /* @__PURE__ */ React83.createElement(
83048
83162
  Box,
83049
83163
  {
83050
83164
  className: locationFilterStyles_default.controlsContainer,
83051
83165
  ...UNSAFE_menuItemsWrapperAttribute
83052
83166
  },
83053
- /* @__PURE__ */ React82.createElement(
83167
+ /* @__PURE__ */ React83.createElement(
83054
83168
  UNSAFE_Menu.CheckboxItem,
83055
83169
  {
83056
83170
  key: getId3(includeSublocationOption),
@@ -83059,7 +83173,7 @@ var LocationQuickFilterOverlay = React82.forwardRef(
83059
83173
  },
83060
83174
  getLabel3(includeSublocationOption)
83061
83175
  ),
83062
- /* @__PURE__ */ React82.createElement(
83176
+ /* @__PURE__ */ React83.createElement(
83063
83177
  UNSAFE_Menu.CheckboxItem,
83064
83178
  {
83065
83179
  key: getId3(selectAllOption),
@@ -83070,7 +83184,7 @@ var LocationQuickFilterOverlay = React82.forwardRef(
83070
83184
  getLabel3(selectAllOption)
83071
83185
  )
83072
83186
  ), !loading && items.map((item, i) => {
83073
- return /* @__PURE__ */ React82.createElement(
83187
+ return /* @__PURE__ */ React83.createElement(
83074
83188
  UNSAFE_Menu.CheckboxItem,
83075
83189
  {
83076
83190
  key: getId3(item),
@@ -83081,7 +83195,7 @@ var LocationQuickFilterOverlay = React82.forwardRef(
83081
83195
  getLabel3(item)
83082
83196
  );
83083
83197
  })),
83084
- loading && /* @__PURE__ */ React82.createElement(UNSAFE_Menu.Footer, null, /* @__PURE__ */ React82.createElement(Flex, { justifyContent: "center" }, /* @__PURE__ */ React82.createElement(Spinner$1, { size: "sm" })))
83198
+ loading && /* @__PURE__ */ React83.createElement(UNSAFE_Menu.Footer, null, /* @__PURE__ */ React83.createElement(Flex, { justifyContent: "center" }, /* @__PURE__ */ React83.createElement(Spinner$1, { size: "sm" })))
83085
83199
  ));
83086
83200
  }
83087
83201
  );
@@ -83117,16 +83231,16 @@ var LocationQuickFilterRenderer = ({
83117
83231
  }
83118
83232
  return "none";
83119
83233
  };
83120
- const ids = React82.useMemo(() => value.map(({ id }) => id), [value]);
83121
- const [selectedValueIds, setSelectedValueIds] = React82.useState(ids);
83122
- const [selectState, setSelectState] = React82.useState(
83234
+ const ids = React83.useMemo(() => value.map(({ id }) => id), [value]);
83235
+ const [selectedValueIds, setSelectedValueIds] = React83.useState(ids);
83236
+ const [selectState, setSelectState] = React83.useState(
83123
83237
  determineSelectedState(value)
83124
83238
  );
83125
- const [enableSublocations, setEnableSublocations] = React82.useState(false);
83126
- const onSelectSublocations = React82.useCallback(() => {
83239
+ const [enableSublocations, setEnableSublocations] = React83.useState(false);
83240
+ const onSelectSublocations = React83.useCallback(() => {
83127
83241
  setEnableSublocations(!enableSublocations);
83128
83242
  }, [enableSublocations]);
83129
- const onSelectAll = React82.useCallback(() => {
83243
+ const onSelectAll = React83.useCallback(() => {
83130
83244
  if (selectState === "none" || selectState === "partial") {
83131
83245
  setSelectState("all");
83132
83246
  setSelectedValueIds(options.map(({ id }) => id));
@@ -83160,7 +83274,7 @@ var LocationQuickFilterRenderer = ({
83160
83274
  return [];
83161
83275
  }
83162
83276
  };
83163
- const removeSelections = React82.useCallback(
83277
+ const removeSelections = React83.useCallback(
83164
83278
  function(selection, selected) {
83165
83279
  const sublocations = handleSelectSublocations(selection);
83166
83280
  return enableSublocations ? selected.filter(
@@ -83171,10 +83285,10 @@ var LocationQuickFilterRenderer = ({
83171
83285
  },
83172
83286
  [enableSublocations]
83173
83287
  );
83174
- React82.useEffect(() => {
83288
+ React83.useEffect(() => {
83175
83289
  setSelectState(determineSelectedState(value));
83176
83290
  }, [value]);
83177
- const overlay = /* @__PURE__ */ React82.createElement(
83291
+ const overlay = /* @__PURE__ */ React83.createElement(
83178
83292
  LocationQuickFilterOverlay,
83179
83293
  {
83180
83294
  columnDefinition,
@@ -83192,14 +83306,14 @@ var LocationQuickFilterRenderer = ({
83192
83306
  }
83193
83307
  );
83194
83308
  const triggerLabel = value.length ? value.length === 1 ? `: ${value[0].label}` : `: (${value.length})` : "";
83195
- return /* @__PURE__ */ React82.createElement(
83309
+ return /* @__PURE__ */ React83.createElement(
83196
83310
  OverlayTrigger,
83197
83311
  {
83198
83312
  overlay,
83199
83313
  beforeShow: getOptions,
83200
83314
  placement: "bottom-left"
83201
83315
  },
83202
- value.length ? /* @__PURE__ */ React82.createElement(
83316
+ value.length ? /* @__PURE__ */ React83.createElement(
83203
83317
  QuickFilterLabel,
83204
83318
  {
83205
83319
  enabled: true,
@@ -83211,7 +83325,7 @@ var LocationQuickFilterRenderer = ({
83211
83325
  },
83212
83326
  block: true
83213
83327
  }
83214
- ) : /* @__PURE__ */ React82.createElement(
83328
+ ) : /* @__PURE__ */ React83.createElement(
83215
83329
  QuickFilterLabel,
83216
83330
  {
83217
83331
  enabled: false,
@@ -83244,22 +83358,22 @@ var getSuperSelectFilterPreset = (columnDefinition) => {
83244
83358
  } : void 0;
83245
83359
  return {
83246
83360
  components: {
83247
- Label: React82.forwardRef(() => {
83361
+ Label: React83.forwardRef(() => {
83248
83362
  const ctx = UNSAFE_useSuperSelectContext();
83249
83363
  const isValueEmpty = ["", null, void 0].includes(
83250
83364
  ctx.state.value
83251
83365
  );
83252
- return /* @__PURE__ */ React82.createElement(UNSAFE_StyledSuperSelectLabel, { $hoverable: false }, typeof getValueLabel_ === "function" ? getValueLabel_(ctx.state.value) : getValueLabel(
83366
+ return /* @__PURE__ */ React83.createElement(UNSAFE_StyledSuperSelectLabel, { $hoverable: false }, typeof getValueLabel_ === "function" ? getValueLabel_(ctx.state.value) : getValueLabel(
83253
83367
  isValueEmpty,
83254
83368
  ctx.state.selectedLabel,
83255
83369
  ctx.config.placeholder,
83256
83370
  filterName
83257
83371
  ));
83258
83372
  }),
83259
- TriggerContainer: React82.forwardRef((props, ref) => {
83373
+ TriggerContainer: React83.forwardRef((props, ref) => {
83260
83374
  const ctx = UNSAFE_useSuperSelectContext();
83261
83375
  if (!Array.isArray(ctx.state.value)) {
83262
- return /* @__PURE__ */ React82.createElement(
83376
+ return /* @__PURE__ */ React83.createElement(
83263
83377
  UNSAFE_StyledSuperSelectTrigger,
83264
83378
  {
83265
83379
  $block: ctx.config.block,
@@ -83268,19 +83382,19 @@ var getSuperSelectFilterPreset = (columnDefinition) => {
83268
83382
  }
83269
83383
  );
83270
83384
  }
83271
- return /* @__PURE__ */ React82.createElement(
83385
+ return /* @__PURE__ */ React83.createElement(
83272
83386
  Popover,
83273
83387
  {
83274
83388
  placement: "top",
83275
83389
  trigger: ctx.state.value.length > 1 ? "hover" : "none",
83276
- overlay: /* @__PURE__ */ React82.createElement(StyledFilterPresetPopoverContent, null, /* @__PURE__ */ React82.createElement(Typography, null, ctx.state.value.map((v) => {
83390
+ overlay: /* @__PURE__ */ React83.createElement(StyledFilterPresetPopoverContent, null, /* @__PURE__ */ React83.createElement(Typography, null, ctx.state.value.map((v) => {
83277
83391
  const option = ctx.state.options.find(
83278
83392
  (option2) => ctx.option.value(option2) === v
83279
83393
  );
83280
83394
  return option ? ctx.option.label(option) : "";
83281
83395
  }).join(", ")))
83282
83396
  },
83283
- /* @__PURE__ */ React82.createElement(
83397
+ /* @__PURE__ */ React83.createElement(
83284
83398
  UNSAFE_StyledSuperSelectTrigger,
83285
83399
  {
83286
83400
  $block: ctx.config.block,
@@ -83295,14 +83409,14 @@ var getSuperSelectFilterPreset = (columnDefinition) => {
83295
83409
  if (Array.isArray(ctx.state.value)) {
83296
83410
  const isValueEmpty = !ctx.state.value.length;
83297
83411
  const value = ctx.state.value.length > 1 ? `(${ctx.state.value.length})` : ctx.state.value.length === 1 ? `${ctx.state.selectedLabel}` : "";
83298
- return /* @__PURE__ */ React82.createElement(UNSAFE_StyledSuperSelectLabel, { $hoverable: false }, typeof getValueLabel_ === "function" ? getValueLabel_(ctx.state.value) : getValueLabel(
83412
+ return /* @__PURE__ */ React83.createElement(UNSAFE_StyledSuperSelectLabel, { $hoverable: false }, typeof getValueLabel_ === "function" ? getValueLabel_(ctx.state.value) : getValueLabel(
83299
83413
  isValueEmpty,
83300
83414
  value,
83301
83415
  ctx.config.placeholder,
83302
83416
  filterName
83303
83417
  ));
83304
83418
  }
83305
- return /* @__PURE__ */ React82.createElement("div", null, "Value is not an array");
83419
+ return /* @__PURE__ */ React83.createElement("div", null, "Value is not an array");
83306
83420
  }
83307
83421
  },
83308
83422
  selectionStyle: "highlight"
@@ -83360,7 +83474,7 @@ var ClientSideMultiSelectQuickFilter = ({
83360
83474
  overlayMatchesTriggerWidth
83361
83475
  }) => {
83362
83476
  var _a;
83363
- return /* @__PURE__ */ React82.createElement(StyledSuperSelectWrapper, { $enabled: Boolean((_a = filter.filterValues) == null ? void 0 : _a.length) }, /* @__PURE__ */ React82.createElement(
83477
+ return /* @__PURE__ */ React83.createElement(StyledSuperSelectWrapper, { $enabled: Boolean((_a = filter.filterValues) == null ? void 0 : _a.length) }, /* @__PURE__ */ React83.createElement(
83364
83478
  UNSAFE_SuperSelect,
83365
83479
  {
83366
83480
  overlayMatchesTriggerWidth,
@@ -83393,7 +83507,7 @@ var useSuperSelectOptionAsValueWorkaround2 = ({
83393
83507
  getId: getId3,
83394
83508
  loading
83395
83509
  }) => {
83396
- const isValueFromOptions = React82.useRef(false);
83510
+ const isValueFromOptions = React83.useRef(false);
83397
83511
  const getValueFromOptions = () => {
83398
83512
  const valueIds = originValue.map((option) => getId(getId3, option));
83399
83513
  isValueFromOptions.current = true;
@@ -83428,7 +83542,7 @@ var ServerSideMultiSelectQuickFilter = ({ columnDefinition, overlayMatchesTrigge
83428
83542
  loading,
83429
83543
  getId: (_a = columnDefinition.filterProps) == null ? void 0 : _a.getId
83430
83544
  });
83431
- return /* @__PURE__ */ React82.createElement(StyledSuperSelectWrapper, { $enabled: Boolean(value == null ? void 0 : value.length) }, /* @__PURE__ */ React82.createElement(
83545
+ return /* @__PURE__ */ React83.createElement(StyledSuperSelectWrapper, { $enabled: Boolean(value == null ? void 0 : value.length) }, /* @__PURE__ */ React83.createElement(
83432
83546
  UNSAFE_SuperSelect,
83433
83547
  {
83434
83548
  overlayMatchesTriggerWidth,
@@ -83462,9 +83576,9 @@ var ServerSideMultiSelectQuickFilter = ({ columnDefinition, overlayMatchesTrigge
83462
83576
  var MultiSelectQuickFilterRenderer = (props) => {
83463
83577
  const { onServerSideDataRequest } = useInternalTableContext();
83464
83578
  if (!isClientSideFilterProps(props, !!onServerSideDataRequest)) {
83465
- return /* @__PURE__ */ React82.createElement(ServerSideMultiSelectQuickFilter, { ...props });
83579
+ return /* @__PURE__ */ React83.createElement(ServerSideMultiSelectQuickFilter, { ...props });
83466
83580
  }
83467
- return /* @__PURE__ */ React82.createElement(ClientSideMultiSelectQuickFilter, { ...props });
83581
+ return /* @__PURE__ */ React83.createElement(ClientSideMultiSelectQuickFilter, { ...props });
83468
83582
  };
83469
83583
  var MultiSelectQuickFilterRenderer_default = MultiSelectQuickFilterRenderer;
83470
83584
 
@@ -87889,7 +88003,7 @@ var ServerSideDataTable = ({
87889
88003
  onTableConfigChange,
87890
88004
  translations: translations2 = {}
87891
88005
  }) => {
87892
- return /* @__PURE__ */ React82.createElement(
88006
+ return /* @__PURE__ */ React83.createElement(
87893
88007
  DataTable,
87894
88008
  {
87895
88009
  analytics,
@@ -87908,7 +88022,7 @@ var ServerSideDataTable = ({
87908
88022
  children
87909
88023
  );
87910
88024
  };
87911
- var Table3 = (props) => /* @__PURE__ */ React82.createElement(
88025
+ var Table3 = (props) => /* @__PURE__ */ React83.createElement(
87912
88026
  Table,
87913
88027
  {
87914
88028
  ...{
@@ -88001,4 +88115,4 @@ object-assign/index.js:
88001
88115
  *)
88002
88116
  */
88003
88117
 
88004
- export { BooleanCellEditor, BooleanCellRenderer, ButtonsCellRenderer, ClientSideDataTable_default as ClientSideDataTable, CompanyCellRenderer, CurrencyCellEditor, CurrencyCellRenderer, DateCellEditor, DateCellRenderer, DateFilterRenderer_default as DateFilterRenderer, DateQuickFilterRenderer_default as DateQuickFilterRenderer, DateTimeCellEditor, DateTimeCellRenderer, GrandTotalsLabelRenderer, GroupCellRenderer2 as GroupCellRenderer, LinkCellRenderer, LocationFilterRenderer, LocationQuickFilterRenderer_default as LocationQuickFilterRenderer, MultiSelectCellRenderer, MultiSelectFilterRenderer_default as MultiSelectFilterRenderer, MultiSelectQuickFilterRenderer_default as MultiSelectQuickFilterRenderer, NumberCellEditor2 as NumberCellEditor, NumberCellRenderer, NumberFilterRenderer, PeopleCellRenderer, PercentCellEditor, PercentCellRenderer, PersonCellRenderer, PillCellRenderer, PillSelectCellEditor, SelectAllState, SelectCellEditor2 as SelectCellEditor, SelectCellRenderer, ServerSideDataTable_default as ServerSideDataTable, TextCellEditor2 as TextCellEditor, TextCellRenderer, UNSAFE_useTableContext, rowSize, useRowSelectionState, waitForAsyncCondition, withDataTableEditor, withDataTableRenderer };
88118
+ export { Analytics_default as Analytics, AnalyticsBulkClient, BooleanCellEditor, BooleanCellRenderer, ButtonsCellRenderer, ClientSideDataTable_default as ClientSideDataTable, CompanyCellRenderer, CurrencyCellEditor, CurrencyCellRenderer, DateCellEditor, DateCellRenderer, DateFilterRenderer_default as DateFilterRenderer, DateQuickFilterRenderer_default as DateQuickFilterRenderer, DateTimeCellEditor, DateTimeCellRenderer, GrandTotalsLabelRenderer, GroupCellRenderer2 as GroupCellRenderer, LinkCellRenderer, LocationFilterRenderer, LocationQuickFilterRenderer_default as LocationQuickFilterRenderer, MultiSelectCellRenderer, MultiSelectFilterRenderer_default as MultiSelectFilterRenderer, MultiSelectQuickFilterRenderer_default as MultiSelectQuickFilterRenderer, NumberCellEditor2 as NumberCellEditor, NumberCellRenderer, NumberFilterRenderer, PeopleCellRenderer, PercentCellEditor, PercentCellRenderer, PersonCellRenderer, PillCellRenderer, PillSelectCellEditor, SelectAllState, SelectCellEditor2 as SelectCellEditor, SelectCellRenderer, ServerSideDataTable_default as ServerSideDataTable, TextCellEditor2 as TextCellEditor, TextCellRenderer, UNSAFE_useTableContext, rowSize, useAnalyticsContext, useRowSelectionState, waitForAsyncCondition, withDataTableEditor, withDataTableRenderer };