@procore/data-table 14.31.0 → 14.33.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.
@@ -7984,32 +7984,15 @@ var styles_default = {
7984
7984
  "spin": "_spin_if78k_1"
7985
7985
  };
7986
7986
 
7987
- // src/utils/getCellValueTypographyProps.ts
7988
- function getCellValueTypographyProps(typographyProps) {
7989
- return {
7990
- intent: "small",
7991
- ...typographyProps ?? {}
7992
- };
7993
- }
7994
-
7995
7987
  // src/CellRenderers/BooleanCell.tsx
7996
7988
  var cx = classnames.bind(styles_default);
7997
- var InternalBooleanCellRenderer = ({ columnDefinition, isGroup, value }) => {
7998
- var _a;
7989
+ var InternalBooleanCellRenderer = ({ isGroup, value, typographyProps }) => {
7999
7990
  const I18n = useI18nContext();
8000
7991
  const internalValue = value ? I18n.t("dataTable.cells.booleanCell.options.yes") : I18n.t("dataTable.cells.booleanCell.options.no");
8001
7992
  if (isGroup) {
8002
7993
  return null;
8003
7994
  }
8004
- return /* @__PURE__ */ React80.createElement(
8005
- Typography,
8006
- {
8007
- ...getCellValueTypographyProps(
8008
- (_a = columnDefinition.cellRendererParams) == null ? void 0 : _a.typographyProps
8009
- )
8010
- },
8011
- internalValue
8012
- );
7995
+ return /* @__PURE__ */ React80.createElement(Typography, { ...typographyProps }, internalValue);
8013
7996
  };
8014
7997
  var BooleanCellRenderer = withDataTableRenderer(
8015
7998
  InternalBooleanCellRenderer,
@@ -8050,12 +8033,13 @@ var BooleanCellEditor = withDataTableEditor(
8050
8033
  var Renderer = ({
8051
8034
  columnDefinition,
8052
8035
  rowPinned,
8036
+ buttons,
8053
8037
  ...props
8054
8038
  }) => {
8055
8039
  if (rowPinned) {
8056
8040
  return null;
8057
8041
  }
8058
- return /* @__PURE__ */ React80.createElement(FlexList, { justifyContent: "center", alignItems: "center", size: "xs" }, columnDefinition.cellRendererParams.buttons.map((Button6) => /* @__PURE__ */ React80.createElement(
8042
+ return /* @__PURE__ */ React80.createElement(FlexList, { justifyContent: "center", alignItems: "center", size: "xs" }, buttons.map((Button6) => /* @__PURE__ */ React80.createElement(
8059
8043
  Button6,
8060
8044
  {
8061
8045
  key: Button6.displayName,
@@ -8157,12 +8141,13 @@ function ContactItem({
8157
8141
 
8158
8142
  // src/CellRenderers/CompanyCell.tsx
8159
8143
  var Renderer2 = ({
8160
- columnDefinition,
8161
8144
  rowHeight,
8162
8145
  isGroup,
8163
- value
8146
+ value,
8147
+ getCompanyName,
8148
+ getImageURL,
8149
+ typographyProps
8164
8150
  }) => {
8165
- var _a, _b, _c, _d, _e;
8166
8151
  const [showAvatar, setShowAvatar] = React80.useState(false);
8167
8152
  React80.useEffect(() => {
8168
8153
  setShowAvatar(rowHeight === rowSize.lg || rowHeight === rowSize.md);
@@ -8170,18 +8155,9 @@ var Renderer2 = ({
8170
8155
  if (value === void 0 || value === null) {
8171
8156
  return null;
8172
8157
  }
8173
- const companyName = isGroup ? value : ((_b = (_a = columnDefinition.cellRendererParams) == null ? void 0 : _a.getCompanyName) == null ? void 0 : _b.call(_a, value)) ?? value.name;
8174
- const imageURL = (_d = (_c = columnDefinition.cellRendererParams) == null ? void 0 : _c.getImageURL) == null ? void 0 : _d.call(_c, value);
8175
- return isGroup ? /* @__PURE__ */ React80.createElement(
8176
- Typography,
8177
- {
8178
- ...getCellValueTypographyProps(
8179
- (_e = columnDefinition.cellRendererParams) == null ? void 0 : _e.typographyProps
8180
- ),
8181
- weight: "semibold"
8182
- },
8183
- companyName
8184
- ) : /* @__PURE__ */ React80.createElement(
8158
+ const companyName = isGroup ? value : (getCompanyName == null ? void 0 : getCompanyName(value)) ?? value.name;
8159
+ const imageURL = getImageURL == null ? void 0 : getImageURL(value);
8160
+ return isGroup ? /* @__PURE__ */ React80.createElement(Typography, { ...typographyProps, weight: "semibold" }, companyName) : /* @__PURE__ */ React80.createElement(
8185
8161
  ContactItem,
8186
8162
  {
8187
8163
  imageUrl: showAvatar ? imageURL : void 0,
@@ -8216,29 +8192,19 @@ var Renderer3 = ({
8216
8192
  columnDefinition,
8217
8193
  isGroup,
8218
8194
  rowPinned,
8219
- value
8195
+ value,
8196
+ typographyProps,
8197
+ formatConfig,
8198
+ inputProps
8220
8199
  }) => {
8221
- var _a, _b, _c, _d, _e, _f, _g;
8222
8200
  const I18n = useI18nContext();
8223
- const internalValue = value !== void 0 && formatCurrency(
8224
- value == null ? void 0 : value.toString(),
8225
- (_a = columnDefinition.cellRendererParams) == null ? void 0 : _a.formatConfig
8226
- ) || void 0;
8201
+ const internalValue = value !== void 0 && formatCurrency(value == null ? void 0 : value.toString(), formatConfig) || void 0;
8227
8202
  if (isEmptyValue(value)) {
8228
8203
  if (isGroup) {
8229
8204
  return null;
8230
8205
  }
8231
8206
  if (columnDefinition.editable) {
8232
- return /* @__PURE__ */ React80.createElement(
8233
- Typography,
8234
- {
8235
- ...getCellValueTypographyProps(
8236
- (_b = columnDefinition.cellRendererParams) == null ? void 0 : _b.typographyProps
8237
- ),
8238
- className: cx3("input-placeholder")
8239
- },
8240
- ((_d = (_c = columnDefinition.cellEditorParams) == null ? void 0 : _c.inputProps) == null ? void 0 : _d.placeholder) || I18n.t("dataTable.cells.currencyCell.placeholder")
8241
- );
8207
+ return /* @__PURE__ */ React80.createElement(Typography, { ...typographyProps, className: cx3("input-placeholder") }, (inputProps == null ? void 0 : inputProps.placeholder) || I18n.t("dataTable.cells.currencyCell.placeholder"));
8242
8208
  }
8243
8209
  }
8244
8210
  if (isGroup) {
@@ -8255,10 +8221,8 @@ var Renderer3 = ({
8255
8221
  return /* @__PURE__ */ React80.createElement(
8256
8222
  Typography,
8257
8223
  {
8258
- ...getCellValueTypographyProps(
8259
- (_e = columnDefinition.cellRendererParams) == null ? void 0 : _e.typographyProps
8260
- ),
8261
- weight: rowPinned ? "bold" : (_g = (_f = columnDefinition.cellRendererParams) == null ? void 0 : _f.typographyProps) == null ? void 0 : _g.weight,
8224
+ ...typographyProps,
8225
+ weight: rowPinned ? "bold" : typographyProps == null ? void 0 : typographyProps.weight,
8262
8226
  className: cx3("tabular-nums")
8263
8227
  },
8264
8228
  internalValue
@@ -8266,8 +8230,15 @@ var Renderer3 = ({
8266
8230
  };
8267
8231
  var CurrencyCellRenderer = withDataTableRenderer(Renderer3, "input");
8268
8232
  var Editor = React80.forwardRef(
8269
- ({ columnDefinition, eventKey, stopEditing, value }, ref) => {
8270
- var _a, _b, _c, _d, _e;
8233
+ ({
8234
+ columnDefinition,
8235
+ eventKey,
8236
+ stopEditing,
8237
+ value,
8238
+ formatConfig,
8239
+ inputProps
8240
+ }, ref) => {
8241
+ var _a;
8271
8242
  const I18n = useI18nContext();
8272
8243
  if (isEmptyValue(value) && !columnDefinition.editable) {
8273
8244
  return null;
@@ -8276,19 +8247,20 @@ var Editor = React80.forwardRef(
8276
8247
  stopEditing(ensureIsHTMLElement(event.relatedTarget));
8277
8248
  }
8278
8249
  const defaultValue = eventKey ? value : formatNumber(value, {
8279
- ...((_a = columnDefinition.cellEditorParams) == null ? void 0 : _a.formatConfig) ?? ((_b = columnDefinition.cellRendererParams) == null ? void 0 : _b.formatConfig) ?? {},
8250
+ ...formatConfig || ((_a = columnDefinition.cellRendererParams) == null ? void 0 : _a.formatConfig),
8251
+ //TODO remove usage of columnDefinition.cellRendererParams in next major version
8280
8252
  symbol: void 0,
8281
8253
  symbolAfterValue: void 0
8282
8254
  });
8283
8255
  return /* @__PURE__ */ React80.createElement(
8284
8256
  Input,
8285
8257
  {
8286
- placeholder: ((_d = (_c = columnDefinition.cellEditorParams) == null ? void 0 : _c.inputProps) == null ? void 0 : _d.placeholder) || I18n.t("dataTable.cells.currencyCell.placeholder"),
8258
+ placeholder: (inputProps == null ? void 0 : inputProps.placeholder) || I18n.t("dataTable.cells.currencyCell.placeholder"),
8287
8259
  defaultValue,
8288
8260
  onBlur,
8289
8261
  ref,
8290
8262
  className: cx3("input-cell", "input-cell--right-aligned"),
8291
- ...((_e = columnDefinition.cellEditorParams) == null ? void 0 : _e.inputProps) || {}
8263
+ ...inputProps
8292
8264
  }
8293
8265
  );
8294
8266
  }
@@ -8702,6 +8674,14 @@ var DateFilterTokenText = ({
8702
8674
  };
8703
8675
  var DateFilterRenderer_default = DateFilterRenderer;
8704
8676
 
8677
+ // src/utils/getCellValueTypographyProps.ts
8678
+ function getCellValueTypographyProps(typographyProps) {
8679
+ return {
8680
+ intent: "small",
8681
+ ...typographyProps
8682
+ };
8683
+ }
8684
+
8705
8685
  // src/CellRenderers/DateCell.tsx
8706
8686
  var cx4 = classnames.bind(styles_default);
8707
8687
  function getDateObject(date) {
@@ -8791,39 +8771,32 @@ function getDateObject2(date) {
8791
8771
  return date;
8792
8772
  }
8793
8773
  var DateTimeCellValue = ({
8794
- columnDefinition,
8795
8774
  isGroup,
8796
- value
8775
+ value,
8776
+ typographyProps,
8777
+ dateFormatType
8797
8778
  }) => {
8798
- var _a, _b;
8799
8779
  const { format: format3 } = useDateTime();
8800
8780
  if (isGroup || isEmptyValue(value)) {
8801
8781
  return null;
8802
8782
  }
8803
8783
  const parsedValue = getDateObject2(value);
8804
- const internalValue = parsedValue ? format3(
8805
- parsedValue,
8806
- ((_a = columnDefinition.cellRendererParams) == null ? void 0 : _a.dateFormatType) || "abbr-weekday-abbr-date-at-time"
8807
- ) : void 0;
8808
- const typographyProps = getCellValueTypographyProps(
8809
- (_b = columnDefinition.cellRendererParams) == null ? void 0 : _b.typographyProps
8810
- );
8784
+ const internalValue = parsedValue ? format3(parsedValue, dateFormatType || "abbr-weekday-abbr-date-at-time") : void 0;
8811
8785
  return /* @__PURE__ */ React80.createElement(Typography, { ...typographyProps }, internalValue);
8812
8786
  };
8813
8787
  var Renderer5 = (props) => {
8814
- var _a, _b;
8815
- return /* @__PURE__ */ React80.createElement(
8816
- OptionalDateTimeProvider,
8817
- {
8818
- timeZone: (_b = (_a = props.columnDefinition) == null ? void 0 : _a.cellRendererParams) == null ? void 0 : _b.timeZone
8819
- },
8820
- /* @__PURE__ */ React80.createElement(DateTimeCellValue, { ...props })
8821
- );
8788
+ return /* @__PURE__ */ React80.createElement(OptionalDateTimeProvider, { timeZone: props.timeZone }, /* @__PURE__ */ React80.createElement(DateTimeCellValue, { ...props }));
8822
8789
  };
8823
8790
  var DateTimeCellRenderer = withDataTableRenderer(Renderer5, "date");
8824
8791
  var Editor3 = React80.forwardRef(
8825
- ({ columnDefinition, setDataValue, stopEditing, value }, ref) => {
8826
- var _a, _b;
8792
+ ({
8793
+ columnDefinition,
8794
+ setDataValue,
8795
+ stopEditing,
8796
+ value,
8797
+ timeZone,
8798
+ disabledDate
8799
+ }, ref) => {
8827
8800
  function afterHide(event) {
8828
8801
  stopEditing(ensureIsHTMLElement(event == null ? void 0 : event.target));
8829
8802
  }
@@ -8834,23 +8807,17 @@ var Editor3 = React80.forwardRef(
8834
8807
  setDataValue(columnDefinition.field, void 0);
8835
8808
  }
8836
8809
  }
8837
- return /* @__PURE__ */ React80.createElement(
8838
- OptionalDateTimeProvider,
8810
+ return /* @__PURE__ */ React80.createElement(OptionalDateTimeProvider, { timeZone }, /* @__PURE__ */ React80.createElement(
8811
+ DateSelect,
8839
8812
  {
8840
- timeZone: (_a = columnDefinition.cellEditorParams) == null ? void 0 : _a.timeZone
8841
- },
8842
- /* @__PURE__ */ React80.createElement(
8843
- DateSelect,
8844
- {
8845
- afterHide,
8846
- className: cx5("input-cell"),
8847
- disabledDate: (_b = columnDefinition.cellEditorParams) == null ? void 0 : _b.disabledDate,
8848
- onChange,
8849
- ref,
8850
- value: getDateObject2(value)
8851
- }
8852
- )
8853
- );
8813
+ afterHide,
8814
+ className: cx5("input-cell"),
8815
+ disabledDate,
8816
+ onChange,
8817
+ ref,
8818
+ value: getDateObject2(value)
8819
+ }
8820
+ ));
8854
8821
  }
8855
8822
  );
8856
8823
  var DateTimeCellEditor = withDataTableEditor(Editor3, "date");
@@ -52376,16 +52343,22 @@ globalObj.MouseEvent = typeof MouseEvent === "undefined" ? {} : MouseEvent;
52376
52343
  var GroupCellRenderer2 = GroupCellRenderer;
52377
52344
  var cx6 = classnames.bind(truncation_default);
52378
52345
  var MIN_LINK_WIDTH = 48;
52379
- var InternalLinkCellRenderer = ({ columnDefinition, isGroup, data, rowHeight, value }) => {
52380
- var _a, _b, _c, _d;
52346
+ var InternalLinkCellRenderer = ({
52347
+ columnDefinition,
52348
+ isGroup,
52349
+ data,
52350
+ rowHeight,
52351
+ value,
52352
+ typographyProps,
52353
+ isExternalLink,
52354
+ getURL
52355
+ }) => {
52356
+ var _a;
52381
52357
  const [isLinkWidthBelowMin, setIsLinkWidthBelowMin] = useState(false);
52382
52358
  const linkRef = useRef(null);
52383
52359
  const internalValue = value ? (_a = columnDefinition.getStringFormattedValue) == null ? void 0 : _a.call(columnDefinition, value) : "";
52384
- const typographyProps = getCellValueTypographyProps(
52385
- (_b = columnDefinition.cellRendererParams) == null ? void 0 : _b.typographyProps
52386
- );
52387
52360
  const className = cx6(
52388
- (_d = (_c = columnDefinition.cellRendererParams) == null ? void 0 : _c.typographyProps) == null ? void 0 : _d.className,
52361
+ typographyProps == null ? void 0 : typographyProps.className,
52389
52362
  "textCell",
52390
52363
  "truncatingText",
52391
52364
  {
@@ -52403,8 +52376,7 @@ var InternalLinkCellRenderer = ({ columnDefinition, isGroup, data, rowHeight, va
52403
52376
  setIsLinkWidthBelowMin(width < MIN_LINK_WIDTH);
52404
52377
  }
52405
52378
  }, [internalValue]);
52406
- const isExternalLink = columnDefinition.cellRendererParams.isExternalLink ?? false;
52407
- const URL = columnDefinition.cellRendererParams.getURL(value, data);
52379
+ const URL = getURL(value, data);
52408
52380
  const extendClickableAreaClassNames = isLinkWidthBelowMin ? cx6("extendClickableArea", {
52409
52381
  "extendClickableArea--rowHeightSm": rowHeight === rowSize.sm
52410
52382
  }) : "";
@@ -52434,24 +52406,22 @@ var LinkCellRenderer = withDataTableRenderer(
52434
52406
  "input"
52435
52407
  );
52436
52408
  var cx7 = classnames.bind(styles_default);
52437
- var InternalNumberCellRenderer = ({ columnDefinition, rowPinned, isGroup, value }) => {
52438
- var _a, _b, _c, _d, _e, _f, _g;
52409
+ var InternalNumberCellRenderer = ({
52410
+ columnDefinition,
52411
+ rowPinned,
52412
+ isGroup,
52413
+ value,
52414
+ typographyProps,
52415
+ inputProps,
52416
+ formatConfig
52417
+ }) => {
52439
52418
  const I18n = useI18nContext();
52440
52419
  if (isEmptyValue(value)) {
52441
52420
  if (isGroup) {
52442
52421
  return null;
52443
52422
  }
52444
52423
  if (columnDefinition.editable) {
52445
- return /* @__PURE__ */ React80.createElement(
52446
- Typography,
52447
- {
52448
- ...getCellValueTypographyProps(
52449
- (_a = columnDefinition.cellRendererParams) == null ? void 0 : _a.typographyProps
52450
- ),
52451
- className: cx7("input-placeholder")
52452
- },
52453
- ((_c = (_b = columnDefinition.cellEditorParams) == null ? void 0 : _b.inputProps) == null ? void 0 : _c.placeholder) || I18n.t("dataTable.cells.numberCell.placeholder")
52454
- );
52424
+ return /* @__PURE__ */ React80.createElement(Typography, { ...typographyProps, className: cx7("input-placeholder") }, (inputProps == null ? void 0 : inputProps.placeholder) || I18n.t("dataTable.cells.numberCell.placeholder"));
52455
52425
  }
52456
52426
  return /* @__PURE__ */ React80.createElement(React80.Fragment, null);
52457
52427
  }
@@ -52460,7 +52430,7 @@ var InternalNumberCellRenderer = ({ columnDefinition, rowPinned, isGroup, value
52460
52430
  minDecimalPrecision: 0,
52461
52431
  shouldUseGtk: true,
52462
52432
  symbol: "",
52463
- ...(_d = columnDefinition.cellRendererParams) == null ? void 0 : _d.formatConfig
52433
+ ...formatConfig
52464
52434
  });
52465
52435
  if (isGroup) {
52466
52436
  return /* @__PURE__ */ React80.createElement(Typography, { intent: "small", weight: "semibold" }, internalValue);
@@ -52468,10 +52438,8 @@ var InternalNumberCellRenderer = ({ columnDefinition, rowPinned, isGroup, value
52468
52438
  return /* @__PURE__ */ React80.createElement(
52469
52439
  Typography,
52470
52440
  {
52471
- ...getCellValueTypographyProps(
52472
- (_e = columnDefinition.cellRendererParams) == null ? void 0 : _e.typographyProps
52473
- ),
52474
- weight: rowPinned ? "bold" : (_g = (_f = columnDefinition.cellRendererParams) == null ? void 0 : _f.typographyProps) == null ? void 0 : _g.weight
52441
+ ...typographyProps,
52442
+ weight: rowPinned ? "bold" : typographyProps == null ? void 0 : typographyProps.weight
52475
52443
  },
52476
52444
  internalValue
52477
52445
  );
@@ -52480,8 +52448,7 @@ var NumberCellRenderer = withDataTableRenderer(
52480
52448
  InternalNumberCellRenderer,
52481
52449
  "input"
52482
52450
  );
52483
- var InternalNumberCellEditor = React80.forwardRef(({ columnDefinition, stopEditing, value }, ref) => {
52484
- var _a, _b, _c;
52451
+ var InternalNumberCellEditor = React80.forwardRef(({ columnDefinition, stopEditing, value, inputProps }, ref) => {
52485
52452
  const I18n = useI18nContext();
52486
52453
  if (isEmptyValue(value) && !columnDefinition.editable) {
52487
52454
  return null;
@@ -52492,13 +52459,13 @@ var InternalNumberCellEditor = React80.forwardRef(({ columnDefinition, stopEditi
52492
52459
  return /* @__PURE__ */ React80.createElement(
52493
52460
  Input,
52494
52461
  {
52495
- placeholder: ((_b = (_a = columnDefinition.cellEditorParams) == null ? void 0 : _a.inputProps) == null ? void 0 : _b.placeholder) || I18n.t("dataTable.cells.numberCell.placeholder"),
52462
+ placeholder: (inputProps == null ? void 0 : inputProps.placeholder) || I18n.t("dataTable.cells.numberCell.placeholder"),
52496
52463
  type: "number",
52497
52464
  defaultValue: value,
52498
52465
  onBlur,
52499
52466
  ref,
52500
52467
  className: cx7("input-cell", "input-cell--right-aligned"),
52501
- ...((_c = columnDefinition.cellEditorParams) == null ? void 0 : _c.inputProps) || {}
52468
+ ...inputProps
52502
52469
  }
52503
52470
  );
52504
52471
  });
@@ -52579,45 +52546,43 @@ var defaultAvatarStackItemFilter = (person) => !!person || !!person.id;
52579
52546
  var Renderer6 = ({
52580
52547
  columnDefinition,
52581
52548
  rowHeight,
52582
- value
52549
+ value,
52550
+ getValue: getValue2,
52551
+ getCompanyName: getCompanyNameParam,
52552
+ getPersonName: getPersonNameParam,
52553
+ getInitials,
52554
+ getImageURL,
52555
+ typographyProps
52583
52556
  }) => {
52584
- var _a, _b, _c, _d, _e, _f, _g;
52557
+ var _a;
52585
52558
  const [fullCellView, setFullCellView] = React80.useState(false);
52586
52559
  const getPeople = React80.useCallback(() => {
52587
- var _a2, _b2;
52588
- return ((_b2 = (_a2 = columnDefinition.cellRendererParams) == null ? void 0 : _a2.getValue) == null ? void 0 : _b2.call(_a2, value)) || value || [];
52589
- }, [(_a = columnDefinition.cellRendererParams) == null ? void 0 : _a.getValue, value]);
52560
+ return (getValue2 == null ? void 0 : getValue2(value)) || value || [];
52561
+ }, [getValue2, value]);
52590
52562
  const getCompanyName = React80.useCallback(
52591
52563
  (person) => {
52592
- var _a2, _b2;
52593
- return ((_b2 = (_a2 = columnDefinition.cellRendererParams) == null ? void 0 : _a2.getCompanyName) == null ? void 0 : _b2.call(_a2, person)) ?? person.company ?? "";
52564
+ return (getCompanyNameParam == null ? void 0 : getCompanyNameParam(person)) ?? person.company ?? "";
52594
52565
  },
52595
- [(_b = columnDefinition.cellRendererParams) == null ? void 0 : _b.getCompanyName]
52566
+ [getCompanyNameParam]
52596
52567
  );
52597
52568
  const getPersonName = React80.useCallback(
52598
52569
  (person) => {
52599
- var _a2, _b2;
52600
- return ((_b2 = (_a2 = columnDefinition.cellRendererParams) == null ? void 0 : _a2.getPersonName) == null ? void 0 : _b2.call(_a2, person)) ?? person.name ?? "";
52570
+ return (getPersonNameParam == null ? void 0 : getPersonNameParam(person)) ?? person.name ?? "";
52601
52571
  },
52602
- [(_c = columnDefinition.cellRendererParams) == null ? void 0 : _c.getPersonName]
52572
+ [getPersonNameParam]
52603
52573
  );
52604
52574
  const getPersonImageUrl = React80.useCallback(
52605
52575
  (person) => {
52606
- var _a2, _b2;
52607
- return ((_b2 = (_a2 = columnDefinition.cellRendererParams) == null ? void 0 : _a2.getImageURL) == null ? void 0 : _b2.call(_a2, person)) ?? "";
52576
+ return (getImageURL == null ? void 0 : getImageURL(person)) ?? "";
52608
52577
  },
52609
- [(_d = columnDefinition.cellRendererParams) == null ? void 0 : _d.getImageURL]
52578
+ [getImageURL]
52610
52579
  );
52611
52580
  const getPersonInitials = React80.useCallback(
52612
52581
  (person) => {
52613
- var _a2, _b2;
52614
- return ((_b2 = (_a2 = columnDefinition.cellRendererParams) == null ? void 0 : _a2.getInitials) == null ? void 0 : _b2.call(_a2, person)) ?? "";
52582
+ return (getInitials == null ? void 0 : getInitials(person)) ?? "";
52615
52583
  },
52616
- [(_e = columnDefinition.cellRendererParams) == null ? void 0 : _e.getInitials]
52584
+ [getInitials]
52617
52585
  );
52618
- React80.useEffect(() => {
52619
- setFullCellView(rowHeight === rowSize.lg || rowHeight === rowSize.md);
52620
- }, [rowHeight]);
52621
52586
  const getPersonNameWithCompany = React80.useCallback(
52622
52587
  (person) => {
52623
52588
  const name = getPersonName(person);
@@ -52626,6 +52591,9 @@ var Renderer6 = ({
52626
52591
  },
52627
52592
  [getCompanyName, getPersonName]
52628
52593
  );
52594
+ React80.useEffect(() => {
52595
+ setFullCellView(rowHeight === rowSize.lg || rowHeight === rowSize.md);
52596
+ }, [rowHeight]);
52629
52597
  const namesWithCompany = React80.useMemo(
52630
52598
  () => getPeople().map(getPersonNameWithCompany).join(", "),
52631
52599
  [getPeople, getPersonNameWithCompany]
@@ -52641,9 +52609,6 @@ var Renderer6 = ({
52641
52609
  }
52642
52610
  return avatarWidth * avatarCount;
52643
52611
  }, [getPeople, rowHeight]);
52644
- const typographyProps = getCellValueTypographyProps(
52645
- (_f = columnDefinition.cellRendererParams) == null ? void 0 : _f.typographyProps
52646
- );
52647
52612
  const people = getPeople();
52648
52613
  if (isEmptyValue(value) || people.length === 0) {
52649
52614
  return null;
@@ -52657,7 +52622,7 @@ var Renderer6 = ({
52657
52622
  type: person.type || "user"
52658
52623
  };
52659
52624
  }).filter(
52660
- ((_g = columnDefinition.cellRendererParams) == null ? void 0 : _g.avatarStackItemFilter) ?? defaultAvatarStackItemFilter
52625
+ ((_a = columnDefinition.cellRendererParams) == null ? void 0 : _a.avatarStackItemFilter) ?? defaultAvatarStackItemFilter
52661
52626
  );
52662
52627
  const isAvatarStackDisplayed = fullCellView && avatarStackItems && !!avatarStackItems.length;
52663
52628
  return /* @__PURE__ */ React80.createElement(
@@ -52752,31 +52717,21 @@ var Renderer7 = ({
52752
52717
  columnDefinition,
52753
52718
  isGroup,
52754
52719
  rowPinned,
52755
- value
52720
+ value,
52721
+ typographyProps,
52722
+ inputProps,
52723
+ formatConfig
52756
52724
  }) => {
52757
- var _a, _b, _c, _d, _e, _f, _g;
52758
52725
  const I18n = useI18nContext();
52759
52726
  if (isEmptyValue(value)) {
52760
52727
  if (isGroup) {
52761
52728
  return null;
52762
52729
  }
52763
52730
  if (columnDefinition.editable) {
52764
- return /* @__PURE__ */ React80.createElement(
52765
- Typography,
52766
- {
52767
- ...getCellValueTypographyProps(
52768
- (_a = columnDefinition.cellRendererParams) == null ? void 0 : _a.typographyProps
52769
- ),
52770
- className: cx9("input-placeholder")
52771
- },
52772
- ((_c = (_b = columnDefinition.cellEditorParams) == null ? void 0 : _b.inputProps) == null ? void 0 : _c.placeholder) || I18n.t("dataTable.cells.percentCell.placeholder")
52773
- );
52731
+ return /* @__PURE__ */ React80.createElement(Typography, { ...typographyProps, className: cx9("input-placeholder") }, (inputProps == null ? void 0 : inputProps.placeholder) || I18n.t("dataTable.cells.percentCell.placeholder"));
52774
52732
  }
52775
52733
  }
52776
- const internalValue = formatPercentage(
52777
- (value == null ? void 0 : value.toString()) ?? "",
52778
- (_d = columnDefinition.cellRendererParams) == null ? void 0 : _d.formatConfig
52779
- );
52734
+ const internalValue = formatPercentage((value == null ? void 0 : value.toString()) ?? "", formatConfig);
52780
52735
  if (isGroup) {
52781
52736
  return /* @__PURE__ */ React80.createElement(
52782
52737
  Typography,
@@ -52791,51 +52746,62 @@ var Renderer7 = ({
52791
52746
  return /* @__PURE__ */ React80.createElement(
52792
52747
  Typography,
52793
52748
  {
52794
- ...getCellValueTypographyProps(
52795
- (_e = columnDefinition.cellRendererParams) == null ? void 0 : _e.typographyProps
52796
- ),
52797
- weight: rowPinned ? "bold" : (_g = (_f = columnDefinition.cellRendererParams) == null ? void 0 : _f.typographyProps) == null ? void 0 : _g.weight,
52749
+ ...typographyProps,
52750
+ weight: rowPinned ? "bold" : typographyProps == null ? void 0 : typographyProps.weight,
52798
52751
  className: cx9("tabular-nums")
52799
52752
  },
52800
52753
  internalValue
52801
52754
  );
52802
52755
  };
52803
52756
  var PercentCellRenderer = withDataTableRenderer(Renderer7, "input");
52804
- var Editor4 = React80.forwardRef(({ columnDefinition, eventKey, stopEditing, value }, ref) => {
52805
- var _a, _b, _c, _d, _e;
52806
- const I18n = useI18nContext();
52807
- function onBlur(event) {
52808
- stopEditing(ensureIsHTMLElement(event.relatedTarget));
52809
- }
52810
- if (isEmptyValue(value) && !columnDefinition.editable) {
52811
- return null;
52812
- }
52813
- const defaultValue = eventKey ? value : formatNumber(value, {
52814
- ...((_a = columnDefinition.cellEditorParams) == null ? void 0 : _a.formatConfig) ?? ((_b = columnDefinition.cellRendererParams) == null ? void 0 : _b.formatConfig) ?? {},
52815
- symbol: void 0,
52816
- symbolAfterValue: void 0
52817
- });
52818
- return /* @__PURE__ */ React80.createElement(
52819
- Input,
52820
- {
52821
- placeholder: ((_d = (_c = columnDefinition.cellEditorParams) == null ? void 0 : _c.inputProps) == null ? void 0 : _d.placeholder) || I18n.t("dataTable.cells.percentCell.placeholder"),
52822
- className: cx9("input-cell", "input-cell--right-aligned"),
52823
- defaultValue,
52824
- onBlur,
52825
- ref,
52826
- style: { textAlign: "right" },
52827
- ...((_e = columnDefinition.cellEditorParams) == null ? void 0 : _e.inputProps) || {}
52757
+ var Editor4 = React80.forwardRef(
52758
+ ({
52759
+ columnDefinition,
52760
+ eventKey,
52761
+ stopEditing,
52762
+ value,
52763
+ formatConfig,
52764
+ inputProps
52765
+ }, ref) => {
52766
+ var _a;
52767
+ const I18n = useI18nContext();
52768
+ function onBlur(event) {
52769
+ stopEditing(ensureIsHTMLElement(event.relatedTarget));
52828
52770
  }
52829
- );
52830
- });
52771
+ if (isEmptyValue(value) && !columnDefinition.editable) {
52772
+ return null;
52773
+ }
52774
+ const defaultValue = eventKey ? value : formatNumber(value, {
52775
+ ...formatConfig || ((_a = columnDefinition.cellRendererParams) == null ? void 0 : _a.formatConfig),
52776
+ //TODO remove usage of columnDefinition.cellRendererParams in next major version
52777
+ symbol: void 0,
52778
+ symbolAfterValue: void 0
52779
+ });
52780
+ return /* @__PURE__ */ React80.createElement(
52781
+ Input,
52782
+ {
52783
+ placeholder: (inputProps == null ? void 0 : inputProps.placeholder) || I18n.t("dataTable.cells.percentCell.placeholder"),
52784
+ className: cx9("input-cell", "input-cell--right-aligned"),
52785
+ defaultValue,
52786
+ onBlur,
52787
+ ref,
52788
+ style: { textAlign: "right" },
52789
+ ...inputProps
52790
+ }
52791
+ );
52792
+ }
52793
+ );
52831
52794
  var PercentCellEditor = withDataTableEditor(Editor4, "input");
52832
52795
  var Renderer8 = ({
52833
- columnDefinition,
52834
52796
  rowHeight,
52835
52797
  isGroup,
52836
- value
52798
+ value,
52799
+ getPersonName,
52800
+ getCompanyName,
52801
+ getImageURL,
52802
+ getInitials,
52803
+ typographyProps
52837
52804
  }) => {
52838
- var _a, _b, _c, _d, _e, _f, _g, _h, _i;
52839
52805
  const [showAvatar, setShowAvatar] = React80.useState(false);
52840
52806
  React80.useEffect(() => {
52841
52807
  setShowAvatar(rowHeight === rowSize.lg || rowHeight === rowSize.md);
@@ -52843,13 +52809,10 @@ var Renderer8 = ({
52843
52809
  if (value === void 0 || value === null) {
52844
52810
  return null;
52845
52811
  }
52846
- const name = (_b = (_a = columnDefinition.cellRendererParams) == null ? void 0 : _a.getPersonName) == null ? void 0 : _b.call(_a, value);
52847
- const companyName = (_d = (_c = columnDefinition.cellRendererParams) == null ? void 0 : _c.getCompanyName) == null ? void 0 : _d.call(_c, value);
52848
- const imageURL = (_f = (_e = columnDefinition.cellRendererParams) == null ? void 0 : _e.getImageURL) == null ? void 0 : _f.call(_e, value);
52849
- const initials = (_h = (_g = columnDefinition.cellRendererParams) == null ? void 0 : _g.getInitials) == null ? void 0 : _h.call(_g, value);
52850
- const typographyProps = getCellValueTypographyProps(
52851
- (_i = columnDefinition.cellRendererParams) == null ? void 0 : _i.typographyProps
52852
- );
52812
+ const name = getPersonName == null ? void 0 : getPersonName(value);
52813
+ const companyName = getCompanyName == null ? void 0 : getCompanyName(value);
52814
+ const imageURL = getImageURL == null ? void 0 : getImageURL(value);
52815
+ const initials = getInitials == null ? void 0 : getInitials(value);
52853
52816
  if (isGroup) {
52854
52817
  return /* @__PURE__ */ React80.createElement(Typography, { ...typographyProps, weight: "semibold" }, name);
52855
52818
  }
@@ -52873,35 +52836,26 @@ var Renderer9 = ({
52873
52836
  columnDefinition,
52874
52837
  isGroup,
52875
52838
  value,
52876
- rowPinned
52839
+ rowPinned,
52840
+ getColor,
52841
+ displayAsPill,
52842
+ typographyProps,
52843
+ placeholder
52877
52844
  }) => {
52878
- var _a, _b, _c, _d;
52879
- const { getColor, displayAsPill } = columnDefinition.cellRendererParams;
52845
+ var _a;
52880
52846
  const I18n = useI18nContext();
52881
52847
  if (isEmptyValue(value)) {
52882
52848
  if (isGroup) {
52883
52849
  return null;
52884
52850
  }
52885
52851
  if (columnDefinition.editable) {
52886
- return /* @__PURE__ */ React80.createElement(
52887
- Typography,
52888
- {
52889
- ...getCellValueTypographyProps(
52890
- (_a = columnDefinition.cellRendererParams) == null ? void 0 : _a.typographyProps
52891
- ),
52892
- className: cx10("input-placeholder")
52893
- },
52894
- ((_b = columnDefinition.cellEditorParams) == null ? void 0 : _b.placeholder) || I18n.t("dataTable.cells.pillCell.placeholder", {
52895
- label: columnDefinition.headerName
52896
- })
52897
- );
52852
+ return /* @__PURE__ */ React80.createElement(Typography, { ...typographyProps, className: cx10("input-placeholder") }, placeholder || I18n.t("dataTable.cells.pillCell.placeholder", {
52853
+ label: columnDefinition.headerName
52854
+ }));
52898
52855
  }
52899
52856
  return null;
52900
52857
  }
52901
- const label = ((_c = columnDefinition.getStringFormattedValue) == null ? void 0 : _c.call(columnDefinition, value)) || value;
52902
- const typographyProps = getCellValueTypographyProps(
52903
- (_d = columnDefinition.cellRendererParams) == null ? void 0 : _d.typographyProps
52904
- );
52858
+ const label = ((_a = columnDefinition.getStringFormattedValue) == null ? void 0 : _a.call(columnDefinition, value)) || value;
52905
52859
  if ((isGroup || rowPinned && columnDefinition.aggFunc) && !displayAsPill) {
52906
52860
  return /* @__PURE__ */ React80.createElement(Typography, { ...typographyProps, weight: "semibold" }, label);
52907
52861
  }
@@ -52909,8 +52863,18 @@ var Renderer9 = ({
52909
52863
  };
52910
52864
  var PillCellRenderer = withDataTableRenderer(Renderer9, "select");
52911
52865
  var Editor5 = React80.forwardRef(
52912
- ({ columnDefinition, data, setDataValue, stopEditing, value }, ref) => {
52913
- var _a, _b, _c;
52866
+ ({
52867
+ columnDefinition,
52868
+ data,
52869
+ setDataValue,
52870
+ stopEditing,
52871
+ value,
52872
+ selectOptions,
52873
+ getId: getIdParam,
52874
+ placeholder,
52875
+ getColor,
52876
+ clearable
52877
+ }, ref) => {
52914
52878
  const [options, setOptions] = React80.useState([]);
52915
52879
  const [loading, setLoading] = React80.useState(false);
52916
52880
  const I18n = useI18nContext();
@@ -52918,8 +52882,6 @@ var Editor5 = React80.forwardRef(
52918
52882
  stopEditing();
52919
52883
  }
52920
52884
  async function beforeShow() {
52921
- var _a2;
52922
- const selectOptions = ((_a2 = columnDefinition.cellEditorParams) == null ? void 0 : _a2.selectOptions) || [];
52923
52885
  if (Array.isArray(selectOptions)) {
52924
52886
  setOptions(selectOptions);
52925
52887
  } else {
@@ -52936,28 +52898,27 @@ var Editor5 = React80.forwardRef(
52936
52898
  setDataValue(columnDefinition.field, null);
52937
52899
  }
52938
52900
  function getId3(item) {
52939
- var _a2, _b2;
52940
- return ((_b2 = (_a2 = columnDefinition.cellEditorParams) == null ? void 0 : _a2.getId) == null ? void 0 : _b2.call(_a2, item)) ?? item;
52901
+ return (getIdParam == null ? void 0 : getIdParam(item)) ?? item;
52941
52902
  }
52942
52903
  function getLabel3(item) {
52943
- var _a2;
52944
- const unformattedLabel = ((_a2 = columnDefinition.getStringFormattedValue) == null ? void 0 : _a2.call(columnDefinition, item)) || "";
52904
+ var _a;
52905
+ const unformattedLabel = ((_a = columnDefinition.getStringFormattedValue) == null ? void 0 : _a.call(columnDefinition, item)) || "";
52945
52906
  return unformattedLabel;
52946
52907
  }
52947
52908
  return /* @__PURE__ */ React80.createElement(
52948
52909
  PillSelect,
52949
52910
  {
52950
- placeholder: ((_a = columnDefinition.cellEditorParams) == null ? void 0 : _a.placeholder) || I18n.t("dataTable.cells.pillCell.placeholder", {
52911
+ placeholder: placeholder || I18n.t("dataTable.cells.pillCell.placeholder", {
52951
52912
  label: columnDefinition.headerName
52952
52913
  }),
52953
52914
  afterHide,
52954
52915
  beforeShow,
52955
52916
  block: true,
52956
- getColor: ((_b = columnDefinition.cellEditorParams) == null ? void 0 : _b.getColor) ?? columnDefinition.cellRendererParams.getColor,
52917
+ getColor,
52957
52918
  getId: getId3,
52958
52919
  getLabel: getLabel3,
52959
52920
  loading,
52960
- onClear: ((_c = columnDefinition.cellEditorParams) == null ? void 0 : _c.clearable) ? onClear : void 0,
52921
+ onClear: clearable ? onClear : void 0,
52961
52922
  onSelect,
52962
52923
  options,
52963
52924
  ref,
@@ -53002,14 +52963,12 @@ function useSearch(data, onSearchFunction) {
53002
52963
  setSearchResultOptions
53003
52964
  };
53004
52965
  }
53005
- function useSelectOptions(columnDefinition, data) {
52966
+ function useSelectOptions(selectOptions, data) {
53006
52967
  const [options, setOptions] = React80.useState([]);
53007
52968
  const [loading, setLoading] = React80.useState(false);
53008
52969
  const [totalOptions, setTotalOptions] = React80.useState(0);
53009
52970
  const fetchOptions = async (offset4) => {
53010
- var _a;
53011
52971
  setLoading(true);
53012
- const selectOptions = ((_a = columnDefinition.cellEditorParams) == null ? void 0 : _a.selectOptions) || [];
53013
52972
  let newOptions = [];
53014
52973
  let total = 0;
53015
52974
  if (typeof selectOptions === "function") {
@@ -53041,33 +53000,23 @@ var cx11 = classnames.bind({ ...styles_default, ...truncation_default });
53041
53000
  var Renderer10 = ({
53042
53001
  columnDefinition,
53043
53002
  isGroup,
53044
- value
53003
+ value,
53004
+ typographyProps,
53005
+ placeholder
53045
53006
  }) => {
53046
- var _a, _b, _c, _d;
53007
+ var _a;
53047
53008
  const I18n = useI18nContext();
53048
53009
  if (isEmptyValue(value)) {
53049
53010
  if (isGroup) {
53050
53011
  return null;
53051
53012
  }
53052
53013
  if (columnDefinition.editable) {
53053
- return /* @__PURE__ */ React80.createElement(
53054
- Typography,
53055
- {
53056
- ...getCellValueTypographyProps(
53057
- (_a = columnDefinition.cellRendererParams) == null ? void 0 : _a.typographyProps
53058
- ),
53059
- className: cx11("truncatingText")
53060
- },
53061
- ((_b = columnDefinition.cellEditorParams) == null ? void 0 : _b.placeholder) || I18n.t("dataTable.cells.selectCell.placeholder", {
53062
- label: columnDefinition.headerName
53063
- })
53064
- );
53014
+ return /* @__PURE__ */ React80.createElement(Typography, { ...typographyProps, className: cx11("truncatingText") }, placeholder || I18n.t("dataTable.cells.selectCell.placeholder", {
53015
+ label: columnDefinition.headerName
53016
+ }));
53065
53017
  }
53066
53018
  }
53067
- const internalValue = (_c = columnDefinition.getStringFormattedValue) == null ? void 0 : _c.call(columnDefinition, value);
53068
- const typographyProps = getCellValueTypographyProps(
53069
- (_d = columnDefinition.cellRendererParams) == null ? void 0 : _d.typographyProps
53070
- );
53019
+ const internalValue = (_a = columnDefinition.getStringFormattedValue) == null ? void 0 : _a.call(columnDefinition, value);
53071
53020
  if (isGroup) {
53072
53021
  return /* @__PURE__ */ React80.createElement(
53073
53022
  Typography,
@@ -53083,15 +53032,25 @@ var Renderer10 = ({
53083
53032
  };
53084
53033
  var SelectCellRenderer = withDataTableRenderer(Renderer10, "select");
53085
53034
  var Editor6 = React80.forwardRef(
53086
- ({ columnDefinition, data, setDataValue, stopEditing, value }, ref) => {
53087
- var _a, _b;
53035
+ ({
53036
+ columnDefinition,
53037
+ data,
53038
+ setDataValue,
53039
+ stopEditing,
53040
+ value,
53041
+ clearable,
53042
+ selectOptions,
53043
+ onSearch: onSearchParam,
53044
+ getId: getIdParam,
53045
+ getOptionLabel: getOptionLabelParam
53046
+ }, ref) => {
53088
53047
  const { options, loading, totalOptions, fetchOptions } = useSelectOptions(
53089
- columnDefinition,
53048
+ selectOptions,
53090
53049
  data
53091
53050
  );
53092
53051
  const { onSearch, searchResultOptions, isSearching } = useSearch(
53093
53052
  data,
53094
- (_a = columnDefinition.cellEditorParams) == null ? void 0 : _a.onSearch
53053
+ onSearchParam
53095
53054
  );
53096
53055
  function onSelect(selection) {
53097
53056
  if (selection.item !== value) {
@@ -53114,16 +53073,14 @@ var Editor6 = React80.forwardRef(
53114
53073
  }
53115
53074
  }, 500);
53116
53075
  function getId3(val) {
53117
- var _a2, _b2;
53118
- return ((_b2 = (_a2 = columnDefinition.cellEditorParams) == null ? void 0 : _a2.getId) == null ? void 0 : _b2.call(_a2, val)) ?? val;
53076
+ return (getIdParam == null ? void 0 : getIdParam(val)) ?? val;
53119
53077
  }
53120
53078
  function getLabel3(val) {
53121
- var _a2;
53122
- return (_a2 = columnDefinition.getStringFormattedValue) == null ? void 0 : _a2.call(columnDefinition, val);
53079
+ var _a;
53080
+ return (_a = columnDefinition.getStringFormattedValue) == null ? void 0 : _a.call(columnDefinition, val);
53123
53081
  }
53124
53082
  function getOptionLabel(option) {
53125
- var _a2, _b2;
53126
- return ((_b2 = (_a2 = columnDefinition.cellEditorParams) == null ? void 0 : _a2.getOptionLabel) == null ? void 0 : _b2.call(_a2, option)) || getLabel3(option);
53083
+ return (getOptionLabelParam == null ? void 0 : getOptionLabelParam(option)) || getLabel3(option);
53127
53084
  }
53128
53085
  return /* @__PURE__ */ React80.createElement(
53129
53086
  Select,
@@ -53135,7 +53092,7 @@ var Editor6 = React80.forwardRef(
53135
53092
  loading: isSearching || loading,
53136
53093
  onSearch,
53137
53094
  onSelect,
53138
- onClear: ((_b = columnDefinition.cellEditorParams) == null ? void 0 : _b.clearable) ? onClear : void 0,
53095
+ onClear: clearable ? onClear : void 0,
53139
53096
  onScrollBottom,
53140
53097
  ref,
53141
53098
  className: cx11("input-cell", "truncatingText")
@@ -53159,28 +53116,21 @@ var Renderer11 = ({
53159
53116
  rowHeight,
53160
53117
  node,
53161
53118
  isGroup,
53162
- value
53119
+ value,
53120
+ typographyProps,
53121
+ inputProps
53163
53122
  }) => {
53164
- var _a, _b, _c, _d, _e, _f, _g;
53123
+ var _a;
53165
53124
  const I18n = useI18nContext();
53166
53125
  if (isEmptyValue(value) && columnDefinition.editable) {
53167
53126
  if (isGroup) {
53168
53127
  return null;
53169
53128
  }
53170
- return /* @__PURE__ */ React80.createElement(
53171
- Typography,
53172
- {
53173
- ...getCellValueTypographyProps(
53174
- (_a = columnDefinition.cellRendererParams) == null ? void 0 : _a.typographyProps
53175
- ),
53176
- className: cx12("input-placeholder")
53177
- },
53178
- ((_c = (_b = columnDefinition.cellEditorParams) == null ? void 0 : _b.inputProps) == null ? void 0 : _c.placeholder) || I18n.t("dataTable.cells.textCell.placeholder")
53179
- );
53129
+ return /* @__PURE__ */ React80.createElement(Typography, { ...typographyProps, className: cx12("input-placeholder") }, (inputProps == null ? void 0 : inputProps.placeholder) || I18n.t("dataTable.cells.textCell.placeholder"));
53180
53130
  }
53181
- const internalValue = ((_d = columnDefinition.getStringFormattedValue) == null ? void 0 : _d.call(columnDefinition, value)) ?? value;
53131
+ const internalValue = ((_a = columnDefinition.getStringFormattedValue) == null ? void 0 : _a.call(columnDefinition, value)) ?? value;
53182
53132
  const className = cx12(
53183
- (_f = (_e = columnDefinition.cellRendererParams) == null ? void 0 : _e.typographyProps) == null ? void 0 : _f.className,
53133
+ typographyProps == null ? void 0 : typographyProps.className,
53184
53134
  "textCell",
53185
53135
  "truncatingText",
53186
53136
  {
@@ -53188,9 +53138,6 @@ var Renderer11 = ({
53188
53138
  "truncatingText--lg": rowHeight === rowSize.lg
53189
53139
  }
53190
53140
  );
53191
- const typographyProps = getCellValueTypographyProps(
53192
- (_g = columnDefinition.cellRendererParams) == null ? void 0 : _g.typographyProps
53193
- );
53194
53141
  if (isGroup) {
53195
53142
  const fontWeight = (node == null ? void 0 : node.footer) ? "regular" : "semibold";
53196
53143
  return /* @__PURE__ */ React80.createElement(
@@ -53208,8 +53155,8 @@ var Renderer11 = ({
53208
53155
  };
53209
53156
  var TextCellRenderer = withDataTableRenderer(Renderer11, "input");
53210
53157
  var Editor7 = React80.forwardRef(
53211
- ({ columnDefinition, eventKey, stopEditing, value }, ref) => {
53212
- var _a, _b, _c, _d;
53158
+ ({ columnDefinition, eventKey, stopEditing, value, inputProps }, ref) => {
53159
+ var _a;
53213
53160
  function onBlur(event) {
53214
53161
  stopEditing(ensureIsHTMLElement(event.relatedTarget));
53215
53162
  }
@@ -53218,12 +53165,12 @@ var Editor7 = React80.forwardRef(
53218
53165
  return /* @__PURE__ */ React80.createElement(
53219
53166
  Input,
53220
53167
  {
53221
- placeholder: ((_c = (_b = columnDefinition.cellEditorParams) == null ? void 0 : _b.inputProps) == null ? void 0 : _c.placeholder) || I18n.t("dataTable.cells.textCell.placeholder"),
53222
53168
  className: cx12("input-cell"),
53223
53169
  defaultValue: internalValue,
53224
53170
  onBlur,
53225
53171
  ref,
53226
- ...((_d = columnDefinition.cellEditorParams) == null ? void 0 : _d.inputProps) || {}
53172
+ ...inputProps,
53173
+ placeholder: (inputProps == null ? void 0 : inputProps.placeholder) || I18n.t("dataTable.cells.textCell.placeholder")
53227
53174
  }
53228
53175
  );
53229
53176
  }
@@ -53244,29 +53191,19 @@ var Renderer12 = ({
53244
53191
  columnDefinition,
53245
53192
  node,
53246
53193
  isGroup,
53247
- value
53194
+ value,
53195
+ typographyProps,
53196
+ textAreaProps
53248
53197
  }) => {
53249
- var _a, _b, _c, _d, _e;
53198
+ var _a;
53250
53199
  const I18n = useI18nContext();
53251
53200
  if (isEmptyValue(value) && columnDefinition.editable) {
53252
53201
  if (isGroup) {
53253
53202
  return null;
53254
53203
  }
53255
- return /* @__PURE__ */ React80.createElement(
53256
- Typography,
53257
- {
53258
- ...getCellValueTypographyProps(
53259
- (_a = columnDefinition.cellRendererParams) == null ? void 0 : _a.typographyProps
53260
- ),
53261
- className: cx13("input-placeholder")
53262
- },
53263
- ((_c = (_b = columnDefinition.cellEditorParams) == null ? void 0 : _b.textAreaProps) == null ? void 0 : _c.placeholder) || I18n.t("dataTable.cells.textCell.placeholder")
53264
- );
53204
+ return /* @__PURE__ */ React80.createElement(Typography, { ...typographyProps, className: cx13("input-placeholder") }, (textAreaProps == null ? void 0 : textAreaProps.placeholder) || I18n.t("dataTable.cells.textCell.placeholder"));
53265
53205
  }
53266
- const internalValue = ((_d = columnDefinition.getStringFormattedValue) == null ? void 0 : _d.call(columnDefinition, value)) ?? value;
53267
- const typographyProps = getCellValueTypographyProps(
53268
- (_e = columnDefinition.cellRendererParams) == null ? void 0 : _e.typographyProps
53269
- );
53206
+ const internalValue = ((_a = columnDefinition.getStringFormattedValue) == null ? void 0 : _a.call(columnDefinition, value)) ?? value;
53270
53207
  if (isGroup) {
53271
53208
  const fontWeight = (node == null ? void 0 : node.footer) ? "regular" : "semibold";
53272
53209
  return /* @__PURE__ */ React80.createElement(
@@ -53282,8 +53219,8 @@ var Renderer12 = ({
53282
53219
  return /* @__PURE__ */ React80.createElement(Typography, { ...typographyProps, className: cx13("textarea-cell", "text") }, internalValue);
53283
53220
  };
53284
53221
  var Editor8 = React80.forwardRef(
53285
- ({ columnDefinition, stopEditing, value }, ref) => {
53286
- var _a, _b, _c, _d;
53222
+ ({ columnDefinition, stopEditing, value, textAreaProps }, ref) => {
53223
+ var _a;
53287
53224
  function onBlur(event) {
53288
53225
  stopEditing(ensureIsHTMLElement(event.relatedTarget));
53289
53226
  }
@@ -53292,14 +53229,14 @@ var Editor8 = React80.forwardRef(
53292
53229
  return /* @__PURE__ */ React80.createElement(
53293
53230
  TextArea,
53294
53231
  {
53295
- placeholder: ((_c = (_b = columnDefinition.cellEditorParams) == null ? void 0 : _b.textAreaProps) == null ? void 0 : _c.placeholder) || I18n.t("dataTable.cells.textCell.placeholder"),
53296
53232
  className: cx13("textarea-cell", "editor-text"),
53297
53233
  defaultValue: internalValue,
53298
53234
  onBlur,
53299
53235
  ref,
53300
53236
  resize: "none",
53301
53237
  style: { lineHeight: "16px" },
53302
- ...((_d = columnDefinition.cellEditorParams) == null ? void 0 : _d.textAreaProps) || {}
53238
+ ...textAreaProps,
53239
+ placeholder: (textAreaProps == null ? void 0 : textAreaProps.placeholder) || I18n.t("dataTable.cells.textCell.placeholder")
53303
53240
  }
53304
53241
  );
53305
53242
  }
@@ -54000,7 +53937,7 @@ var NumberFilterRenderer = React80.memo(
54000
53937
  return {
54001
53938
  type: prev == null ? void 0 : prev.type,
54002
53939
  filter: prev == null ? void 0 : prev.filter,
54003
- filterTo: inputValue
53940
+ filterTo: inputValue !== "" ? Number(inputValue) : void 0
54004
53941
  };
54005
53942
  });
54006
53943
  if (inputValue === void 0 || inputValue === "") {
@@ -54010,7 +53947,7 @@ var NumberFilterRenderer = React80.memo(
54010
53947
  return {
54011
53948
  type: prev == null ? void 0 : prev.type,
54012
53949
  filter: prev == null ? void 0 : prev.filter,
54013
- filterTo: inputValue
53950
+ filterTo: Number(inputValue)
54014
53951
  };
54015
53952
  });
54016
53953
  }, []);
@@ -54278,7 +54215,7 @@ var ServerSideFilter = ({
54278
54215
  "data-qa": `data-table-filter-heading-${fieldName}`,
54279
54216
  id: `data-table-filter-heading-${fieldName}`
54280
54217
  },
54281
- filterHeading
54218
+ typeof filterHeading === "function" ? filterHeading({}) : filterHeading
54282
54219
  ) : null,
54283
54220
  /* @__PURE__ */ React80.createElement(
54284
54221
  Component4,
@@ -55697,11 +55634,8 @@ function getRowActions(actions, rowProps) {
55697
55634
  return actions;
55698
55635
  }
55699
55636
  var InternalRowActionsCellRenderer = (props) => {
55700
- const actions = getRowActions(
55701
- props.columnDefinition.cellRendererParams.actions,
55702
- props
55703
- );
55704
- if (props.rowPinned || props.columnDefinition.cellRendererParams.hideActionsOnGroupedRow && props.isGroup || actions.length === 0) {
55637
+ const actions = getRowActions(props.actions, props);
55638
+ if (props.rowPinned || props.hideActionsOnGroupedRow && props.isGroup || actions.length === 0) {
55705
55639
  return null;
55706
55640
  }
55707
55641
  return /* @__PURE__ */ React80.createElement(
@@ -55973,7 +55907,8 @@ var DataTableCellRenderer = ({
55973
55907
  node,
55974
55908
  editorType,
55975
55909
  value,
55976
- setValue
55910
+ setValue,
55911
+ ...props
55977
55912
  }) => {
55978
55913
  var _a, _b, _c, _d, _e;
55979
55914
  const { columnApi } = useInternalTableContext();
@@ -56004,10 +55939,11 @@ var DataTableCellRenderer = ({
56004
55939
  parentData: context == null ? void 0 : context.parentData,
56005
55940
  parentId: context == null ? void 0 : context.parentId,
56006
55941
  rowHeight,
56007
- rowIndex: node.rowIndex,
56008
55942
  rowPinned: node.rowPinned,
56009
55943
  tableApi: tableRef == null ? void 0 : tableRef.current,
56010
- value
55944
+ value,
55945
+ ...props,
55946
+ typographyProps: getCellValueTypographyProps(props.typographyProps)
56011
55947
  };
56012
55948
  const hasValue = value !== void 0 && value !== null && value !== "";
56013
55949
  const isSelectCellComponent = ((_c = (_b = columnDefinition.cellRendererSelector) == null ? void 0 : _b.call(columnDefinition, {
@@ -56087,7 +56023,8 @@ var DataTableCellEditor = React80.forwardRef(
56087
56023
  node,
56088
56024
  parseValue,
56089
56025
  stopEditing,
56090
- value
56026
+ value,
56027
+ ...props
56091
56028
  }, ref) => {
56092
56029
  var _a;
56093
56030
  const startingValue = getStartingValue(eventKey, editorType, value);
@@ -56198,7 +56135,7 @@ var DataTableCellEditor = React80.forwardRef(
56198
56135
  setCurrentValue(newValue);
56199
56136
  },
56200
56137
  stopEditing: (relatedTarget) => {
56201
- const isRelatedTargetOutsideTable = (relatedTarget == null ? void 0 : relatedTarget.closest('[data-qa="data-table-table')) === null;
56138
+ const isRelatedTargetOutsideTable = (relatedTarget == null ? void 0 : relatedTarget.closest('[data-qa="data-table-table"]')) === null;
56202
56139
  stopEditing(isRelatedTargetOutsideTable);
56203
56140
  if (isRelatedTargetOutsideTable) {
56204
56141
  api.clearFocusedCell();
@@ -56207,7 +56144,8 @@ var DataTableCellEditor = React80.forwardRef(
56207
56144
  },
56208
56145
  tableApi: tableRef == null ? void 0 : tableRef.current,
56209
56146
  value: currentValue,
56210
- ref: handleRefs(editorType)
56147
+ ref: handleRefs(editorType),
56148
+ ...props
56211
56149
  }
56212
56150
  )
56213
56151
  );
@@ -57297,31 +57235,34 @@ function getLabel2(func, option) {
57297
57235
  function getId2(func, option) {
57298
57236
  return (func == null ? void 0 : func(option)) ?? (option == null ? void 0 : option.id) ?? option;
57299
57237
  }
57300
- var InternalMultiSelectCellRenderer = ({ columnDefinition, rowHeight, value }) => {
57301
- var _a, _b, _c, _d;
57238
+ var InternalMultiSelectCellRenderer = ({
57239
+ columnDefinition,
57240
+ rowHeight,
57241
+ value,
57242
+ getValue: getValueParam,
57243
+ enablePlaceholder: enablePlaceholderParam,
57244
+ placeholder: placeholderParam,
57245
+ typographyProps,
57246
+ getLabel: getLabelParam,
57247
+ getId: getIdParam
57248
+ }) => {
57302
57249
  const I18n = useI18nContext();
57303
57250
  const ref = React80.useRef();
57304
57251
  React80.useLayoutEffect(() => {
57305
- var _a2, _b2;
57306
- (_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);
57252
+ var _a, _b;
57253
+ (_b = ref == null ? void 0 : ref.current) == null ? void 0 : _b.setAttribute("title", (_a = ref == null ? void 0 : ref.current) == null ? void 0 : _a.innerText);
57307
57254
  });
57308
57255
  if (value === void 0 || value === null) {
57309
57256
  return null;
57310
57257
  }
57311
- const options = getValue(
57312
- (_a = columnDefinition.cellRendererParams) == null ? void 0 : _a.getValue,
57313
- value,
57314
- emptyArray
57315
- );
57316
- const enablePlaceholder = (((_b = columnDefinition.cellRendererParams) == null ? void 0 : _b.enablePlaceholder) && columnDefinition.editable) ?? false;
57317
- const placeholder = ((_c = columnDefinition.cellRendererParams) == null ? void 0 : _c.placeholder) ?? I18n.t("dataTable.cells.multiSelectCell.placeholder");
57258
+ const options = getValue(getValueParam, value, emptyArray);
57259
+ const enablePlaceholder = (enablePlaceholderParam && columnDefinition.editable) ?? false;
57260
+ const placeholder = placeholderParam ?? I18n.t("dataTable.cells.multiSelectCell.placeholder");
57318
57261
  return /* @__PURE__ */ React80.createElement(
57319
57262
  Typography,
57320
57263
  {
57321
57264
  as: "ol",
57322
- ...getCellValueTypographyProps(
57323
- (_d = columnDefinition.cellRendererParams) == null ? void 0 : _d.typographyProps
57324
- ),
57265
+ ...typographyProps,
57325
57266
  className: cx16("inlineListItems", "truncatingText", {
57326
57267
  "truncatingText--md": rowHeight === rowSize.md,
57327
57268
  "truncatingText--lg": rowHeight === rowSize.lg
@@ -57329,15 +57270,8 @@ var InternalMultiSelectCellRenderer = ({ columnDefinition, rowHeight, value }) =
57329
57270
  ref
57330
57271
  },
57331
57272
  options.length ? options.map((option, idx, arr) => {
57332
- var _a2, _b2;
57333
- const label = getLabel2(
57334
- (_a2 = columnDefinition.cellRendererParams) == null ? void 0 : _a2.getLabel,
57335
- option
57336
- );
57337
- const optionId = getId2(
57338
- (_b2 = columnDefinition.cellRendererParams) == null ? void 0 : _b2.getId,
57339
- option
57340
- );
57273
+ const label = getLabel2(getLabelParam, option);
57274
+ const optionId = getId2(getIdParam, option);
57341
57275
  const key = `${label}_${optionId}_idx_${idx}`;
57342
57276
  return /* @__PURE__ */ React80.createElement(React80.Fragment, { key }, /* @__PURE__ */ React80.createElement("li", null, label, idx !== arr.length - 1 ? commaToken : null));
57343
57277
  }) : enablePlaceholder ? /* @__PURE__ */ React80.createElement("li", { style: { color: colors.gray45 } }, placeholder) : null
@@ -57347,66 +57281,80 @@ var MultiSelectCellRenderer = withDataTableRenderer(
57347
57281
  InternalMultiSelectCellRenderer,
57348
57282
  "select"
57349
57283
  );
57350
- var MultiSelectEditor = React80.forwardRef(({ columnDefinition, value = [], setDataValue, data, stopEditing }, ref) => {
57351
- var _a;
57352
- const [selectedValue, setSelectedValue] = React80.useState(value);
57353
- const { options, loading, totalOptions, fetchOptions } = useSelectOptions(
57284
+ var MultiSelectEditor = React80.forwardRef(
57285
+ ({
57354
57286
  columnDefinition,
57355
- data
57356
- );
57357
- const { onSearch: editorOnSearch } = columnDefinition.cellEditorParams || {};
57358
- const shouldSearch = options.length < totalOptions && !!editorOnSearch;
57359
- const { onSearch, searchResultOptions, setSearchResultOptions, isSearching } = useSearch(data, shouldSearch ? editorOnSearch : void 0);
57360
- async function beforeShow() {
57361
- if (options.length === 0) {
57362
- await fetchOptions();
57287
+ value = [],
57288
+ setDataValue,
57289
+ data,
57290
+ stopEditing,
57291
+ selectOptions,
57292
+ placeholder,
57293
+ onSearch: editorOnSearch,
57294
+ getLabel: getLabelParam,
57295
+ getId: getIdParam
57296
+ }, ref) => {
57297
+ const [selectedValue, setSelectedValue] = React80.useState(value);
57298
+ const { options, loading, totalOptions, fetchOptions } = useSelectOptions(
57299
+ selectOptions,
57300
+ data
57301
+ );
57302
+ const shouldSearch = options.length < totalOptions && !!editorOnSearch;
57303
+ const {
57304
+ onSearch,
57305
+ searchResultOptions,
57306
+ setSearchResultOptions,
57307
+ isSearching
57308
+ } = useSearch(data, shouldSearch ? editorOnSearch : void 0);
57309
+ async function beforeShow() {
57310
+ if (options.length === 0) {
57311
+ await fetchOptions();
57312
+ }
57313
+ return true;
57363
57314
  }
57364
- return true;
57365
- }
57366
- const onScrollBottom = debounce5(async () => {
57367
- if (!searchResultOptions && options.length < totalOptions) {
57368
- const nextOffset = options.length;
57369
- await fetchOptions(nextOffset);
57315
+ const onScrollBottom = debounce5(async () => {
57316
+ if (!searchResultOptions && options.length < totalOptions) {
57317
+ const nextOffset = options.length;
57318
+ await fetchOptions(nextOffset);
57319
+ }
57320
+ }, 500);
57321
+ function onChange(value2) {
57322
+ setSelectedValue(value2);
57323
+ setDataValue(columnDefinition.field, value2);
57324
+ if (searchResultOptions) {
57325
+ setSearchResultOptions(void 0);
57326
+ }
57370
57327
  }
57371
- }, 500);
57372
- function onChange(value2) {
57373
- setSelectedValue(value2);
57374
- setDataValue(columnDefinition.field, value2);
57375
- if (searchResultOptions) {
57376
- setSearchResultOptions(void 0);
57328
+ function getLabel3(func, option) {
57329
+ return (func == null ? void 0 : func(option)) ?? (option == null ? void 0 : option.label) ?? (option == null ? void 0 : option.name) ?? option;
57377
57330
  }
57378
- }
57379
- function getLabel3(func, option) {
57380
- return (func == null ? void 0 : func(option)) ?? (option == null ? void 0 : option.label) ?? (option == null ? void 0 : option.name) ?? option;
57381
- }
57382
- function getId3(func, option) {
57383
- return (func == null ? void 0 : func(option)) ?? (option == null ? void 0 : option.id) ?? option;
57384
- }
57385
- return /* @__PURE__ */ React80.createElement(
57386
- MultiSelect,
57387
- {
57388
- beforeShow,
57389
- afterHide: () => stopEditing(),
57390
- block: true,
57391
- loading: isSearching || loading,
57392
- getId: (option) => {
57393
- var _a2;
57394
- return getId3((_a2 = columnDefinition.cellEditorParams) == null ? void 0 : _a2.getId, option);
57395
- },
57396
- getLabel: (option) => {
57397
- var _a2;
57398
- return getLabel3((_a2 = columnDefinition.cellEditorParams) == null ? void 0 : _a2.getLabel, option);
57399
- },
57400
- placeholder: (_a = columnDefinition.cellEditorParams) == null ? void 0 : _a.placeholder,
57401
- onScrollBottom,
57402
- onSearch,
57403
- onChange,
57404
- options: searchResultOptions || options,
57405
- value: selectedValue,
57406
- ref
57331
+ function getId3(func, option) {
57332
+ return (func == null ? void 0 : func(option)) ?? (option == null ? void 0 : option.id) ?? option;
57407
57333
  }
57408
- );
57409
- });
57334
+ return /* @__PURE__ */ React80.createElement(
57335
+ MultiSelect,
57336
+ {
57337
+ beforeShow,
57338
+ afterHide: () => stopEditing(),
57339
+ block: true,
57340
+ loading: isSearching || loading,
57341
+ getId: (option) => {
57342
+ return getId3(getIdParam, option);
57343
+ },
57344
+ getLabel: (option) => {
57345
+ return getLabel3(getLabelParam, option);
57346
+ },
57347
+ placeholder,
57348
+ onScrollBottom,
57349
+ onSearch,
57350
+ onChange,
57351
+ options: searchResultOptions || options,
57352
+ value: selectedValue,
57353
+ ref
57354
+ }
57355
+ );
57356
+ }
57357
+ );
57410
57358
  var MultiSelectCellEditor = withDataTableEditor(
57411
57359
  MultiSelectEditor,
57412
57360
  "select"
@@ -104612,11 +104560,6 @@ var de_DE_default = {
104612
104560
  error: "Entschuldigung, die Elemente konnten nicht aktualisiert werden. Versuchen Sie es noch einmal.",
104613
104561
  placeholderForField: "%{fieldName} eingeben",
104614
104562
  selection: "%{count} %{number} ausgew\xE4hlt",
104615
- selection_count: {
104616
- zero: "%{count} Elemente ausgew\xE4hlt",
104617
- one: "%{count} Element ausgew\xE4hlt",
104618
- other: "%{count} Elemente ausgew\xE4hlt"
104619
- },
104620
104563
  success: "Die Elemente wurden erfolgreich aktualisiert.",
104621
104564
  one: "Element",
104622
104565
  many: "Elemente"
@@ -104783,11 +104726,6 @@ var en_AU_default = {
104783
104726
  error: "Sorry, the items couldn't be updated. Try again.",
104784
104727
  placeholderForField: "Enter %{fieldName}",
104785
104728
  selection: "%{count} %{number} selected",
104786
- selection_count: {
104787
- zero: "%{count} items selected",
104788
- one: "%{count} item selected",
104789
- other: "%{count} items selected"
104790
- },
104791
104729
  success: "The items were successfully updated.",
104792
104730
  one: "item",
104793
104731
  many: "items"
@@ -104851,7 +104789,7 @@ var en_AU_default = {
104851
104789
  autoSizeAllColumns: "Autosize all columns",
104852
104790
  hideColumn: "Hide column",
104853
104791
  resetColumns: "Reset columns",
104854
- unGroupBy: "Un-Group by {{label}}",
104792
+ unGroupBy: "Un-group by {{label}}",
104855
104793
  groupBy: "Group by {{label}}"
104856
104794
  },
104857
104795
  grandTotals: "Grand totals",
@@ -104954,11 +104892,6 @@ var en_CA_default = {
104954
104892
  error: "Sorry, the items couldn't be updated. Try again.",
104955
104893
  placeholderForField: "Enter %{fieldName}",
104956
104894
  selection: "%{count} %{number} selected",
104957
- selection_count: {
104958
- zero: "%{count} items selected",
104959
- one: "%{count} item selected",
104960
- other: "%{count} items selected"
104961
- },
104962
104895
  success: "The items were successfully updated.",
104963
104896
  one: "item",
104964
104897
  many: "items"
@@ -105022,7 +104955,7 @@ var en_CA_default = {
105022
104955
  autoSizeAllColumns: "Autosize all columns",
105023
104956
  hideColumn: "Hide column",
105024
104957
  resetColumns: "Reset columns",
105025
- unGroupBy: "Un-Group by {{label}}",
104958
+ unGroupBy: "Un-group by {{label}}",
105026
104959
  groupBy: "Group by {{label}}"
105027
104960
  },
105028
104961
  grandTotals: "Grand totals",
@@ -105125,11 +105058,6 @@ var en_GB_default = {
105125
105058
  error: "Sorry, the items couldn't be updated. Try again.",
105126
105059
  placeholderForField: "Enter %{fieldName}",
105127
105060
  selection: "%{count} %{number} selected",
105128
- selection_count: {
105129
- zero: "%{count} items selected",
105130
- one: "%{count} item selected",
105131
- other: "%{count} items selected"
105132
- },
105133
105061
  success: "The items were successfully updated.",
105134
105062
  one: "item",
105135
105063
  many: "items"
@@ -105467,11 +105395,6 @@ var es_ES_default = {
105467
105395
  error: "No se han podido actualizar los elementos. Int\xE9ntelo de nuevo.",
105468
105396
  placeholderForField: "Introducir %{fieldName}",
105469
105397
  selection: "%{count} %{number} seleccionados",
105470
- selection_count: {
105471
- zero: "%{count} elementos seleccionados",
105472
- one: "%{count} elemento seleccionado",
105473
- other: "%{count} elementos seleccionados"
105474
- },
105475
105398
  success: "Los elementos se han actualizado correctamente.",
105476
105399
  one: "elemento",
105477
105400
  many: "elementos"
@@ -105622,7 +105545,7 @@ var es_default = {
105622
105545
  title: "No hay \xEDtems para mostrar en este momento",
105623
105546
  itemsTitle: "No hay %{itemsLabel} para mostrar en este momento",
105624
105547
  tooltip: "El bot\xF3n %{featureName} se habilitar\xE1 una vez que agregue informaci\xF3n a la %{tableName}.",
105625
- searchTooltip: "La b\xFAsqueda se habilitar\xE1 una vez que agregue informaci\xF3n a la %{tableName}.",
105548
+ searchTooltip: "La b\xFAsqueda se habilitar\xE1 una vez que agregue informaci\xF3n a la %{tableName}",
105626
105549
  featureFilter: "Filtro",
105627
105550
  featureQuickFilter: "Filtro r\xE1pido",
105628
105551
  featureGroupBy: "Agrupar por",
@@ -105635,14 +105558,9 @@ var es_default = {
105635
105558
  bulkEdit: "Edici\xF3n masiva",
105636
105559
  cancel: "Cancelar",
105637
105560
  editValues: "Editar valores",
105638
- error: "Lo sentimos, no se pudieron actualizar los \xEDtems. Vuelva a intentarlo.",
105561
+ error: "Lo sentimos, no se pudieron actualizar los \xEDtems. Int\xE9ntelo de nuevo.",
105639
105562
  placeholderForField: "Ingrese %{fieldName}",
105640
105563
  selection: "%{count} %{number} seleccionado",
105641
- selection_count: {
105642
- zero: "%{count} \xEDtems seleccionados",
105643
- one: "%{count} \xEDtem seleccionado",
105644
- other: "%{count} \xEDtems seleccionados"
105645
- },
105646
105564
  success: "Los \xEDtems se actualizaron correctamente.",
105647
105565
  one: "\xEDtem",
105648
105566
  many: "\xEDtems"
@@ -105806,14 +105724,9 @@ var fr_CA_default = {
105806
105724
  bulkEdit: "Modifier en bloc",
105807
105725
  cancel: "Annuler",
105808
105726
  editValues: "Modifier les valeurs",
105809
- error: "D\xE9sol\xE9, les items n'ont pas pu \xEAtre mis \xE0 jour. R\xE9essayer.",
105727
+ error: "D\xE9sol\xE9, les items n'ont pas pu \xEAtre mis \xE0 jour. Veuillez r\xE9essayer.",
105810
105728
  placeholderForField: "Entrez %{fieldName}",
105811
105729
  selection: "%{count} %{number} s\xE9lectionn\xE9",
105812
- selection_count: {
105813
- zero: "%{count}\xA0items s\xE9lectionn\xE9s",
105814
- one: "%{count}\xA0item s\xE9lectionn\xE9",
105815
- other: "%{count}\xA0items s\xE9lectionn\xE9s"
105816
- },
105817
105730
  success: "Les items ont \xE9t\xE9 mis \xE0 jour avec succ\xE8s.",
105818
105731
  one: "Item",
105819
105732
  many: "items"
@@ -105936,7 +105849,7 @@ var fr_CA_default = {
105936
105849
  },
105937
105850
  filterRenders: {
105938
105851
  dateFilter: {
105939
- single: "Seul",
105852
+ single: "Unique",
105940
105853
  range: "Intervalle"
105941
105854
  }
105942
105855
  },
@@ -105977,14 +105890,9 @@ var fr_FR_default = {
105977
105890
  bulkEdit: "Modifier en masse",
105978
105891
  cancel: "Annuler",
105979
105892
  editValues: "Modifier les valeurs",
105980
- error: "D\xE9sol\xE9, les \xE9l\xE9ments n'ont pas pu \xEAtre mis \xE0 jour. R\xE9essayez.",
105893
+ error: "D\xE9sol\xE9, les \xE9l\xE9ments n'ont pas pu \xEAtre mis \xE0 jour. Veuillez r\xE9essayer.",
105981
105894
  placeholderForField: "Saisissez %{fieldName}",
105982
105895
  selection: "%{count} %{number} s\xE9lectionn\xE9",
105983
- selection_count: {
105984
- zero: "%{count}\xA0\xE9l\xE9ments s\xE9lectionn\xE9s",
105985
- one: "%{count}\xA0\xE9l\xE9ment s\xE9lectionn\xE9",
105986
- other: "%{count}\xA0\xE9l\xE9ments s\xE9lectionn\xE9s"
105987
- },
105988
105896
  success: "Les \xE9l\xE9ments ont bien \xE9t\xE9 mis \xE0 jour.",
105989
105897
  one: "\xE9l\xE9ment",
105990
105898
  many: "\xE9l\xE9ments"
@@ -106151,11 +106059,6 @@ var is_IS_default = {
106151
106059
  error: "\xDEv\xED mi\xF0ur var ekki h\xE6gt a\xF0 uppf\xE6ra atri\xF0in. Reyndu aftur.",
106152
106060
  placeholderForField: "Sl\xE1\xF0u inn %{fieldName}",
106153
106061
  selection: "%{count} %{number} valinn",
106154
- selection_count: {
106155
- zero: "%{count} atri\xF0i valin",
106156
- one: "%{count} atri\xF0i vali\xF0",
106157
- other: "%{count} atri\xF0i valin"
106158
- },
106159
106062
  success: "Atri\xF0in voru uppf\xE6r\xF0.",
106160
106063
  one: "Atri\xF0i",
106161
106064
  many: "Hlutir"
@@ -106322,11 +106225,6 @@ var ja_JP_default = {
106322
106225
  error: "\u7533\u3057\u8A33\u3042\u308A\u307E\u305B\u3093\u304C\u3001\u9805\u76EE\u3092\u66F4\u65B0\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u518D\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002",
106323
106226
  placeholderForField: "%{fieldName}\u3092\u5165\u529B",
106324
106227
  selection: "%{count}%{number}\u3092\u9078\u629E\u3057\u307E\u3057\u305F",
106325
- selection_count: {
106326
- zero: "%{count}\u500B\u306E\u9805\u76EE\u3092\u9078\u629E\u3057\u307E\u3057\u305F",
106327
- one: "%{count}\u500B\u306E\u9805\u76EE\u3092\u9078\u629E\u3057\u307E\u3057\u305F",
106328
- other: "%{count}\u500B\u306E\u9805\u76EE\u3092\u9078\u629E\u3057\u307E\u3057\u305F"
106329
- },
106330
106228
  success: "\u9805\u76EE\u3092\u6B63\u5E38\u306B\u66F4\u65B0\u3057\u307E\u3057\u305F\u3002",
106331
106229
  one: "\u9805\u76EE",
106332
106230
  many: "\u9805\u76EE"
@@ -106493,11 +106391,6 @@ var pl_PL_default = {
106493
106391
  error: "Przepraszamy, nie mo\u017Cna zaktualizowa\u0107 pozycji. Spr\xF3buj ponownie.",
106494
106392
  placeholderForField: "Wprowad\u017A %{fieldName}",
106495
106393
  selection: "Wybrano %{count} %{number}",
106496
- selection_count: {
106497
- zero: "Wybrano pozycje: %{count}",
106498
- one: "Wybrano pozycji: %{count}",
106499
- other: "Wybrano pozycje: %{count}"
106500
- },
106501
106394
  success: "Pozycje zosta\u0142y pomy\u015Blnie zaktualizowane.",
106502
106395
  one: "pozycja",
106503
106396
  many: "pozycje"
@@ -106832,14 +106725,9 @@ var pt_BR_default = {
106832
106725
  bulkEdit: "Edi\xE7\xE3o em Massa",
106833
106726
  cancel: "Cancelar",
106834
106727
  editValues: "Editar Valores",
106835
- error: "Lamentamos, mas n\xE3o foi poss\xEDvel atualizar os itens. Tente novamente.",
106728
+ error: "Sentimos muito, mas n\xE3o foi poss\xEDvel atualizar os itens. Tente novamente.",
106836
106729
  placeholderForField: "Digite %{fieldName}",
106837
106730
  selection: "%{count} %{number} selecionado",
106838
- selection_count: {
106839
- zero: "%{count} itens selecionados",
106840
- one: "%{count} item selecionado",
106841
- other: "%{count} itens selecionados"
106842
- },
106843
106731
  success: "Os itens foram atualizados com sucesso.",
106844
106732
  one: "item",
106845
106733
  many: "itens"
@@ -107003,14 +106891,9 @@ var th_TH_default = {
107003
106891
  bulkEdit: "\u0E01\u0E32\u0E23\u0E41\u0E01\u0E49\u0E44\u0E02\u0E41\u0E1A\u0E1A\u0E01\u0E25\u0E38\u0E48\u0E21",
107004
106892
  cancel: "\u0E22\u0E01\u0E40\u0E25\u0E34\u0E01",
107005
106893
  editValues: "\u0E41\u0E01\u0E49\u0E44\u0E02\u0E04\u0E48\u0E32",
107006
- error: "\u0E02\u0E2D\u0E2D\u0E20\u0E31\u0E22 \u0E44\u0E21\u0E48\u0E2A\u0E32\u0E21\u0E32\u0E23\u0E16\u0E2D\u0E31\u0E1B\u0E40\u0E14\u0E15\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23\u0E44\u0E14\u0E49 \u0E42\u0E1B\u0E23\u0E14\u0E25\u0E2D\u0E07\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07",
106894
+ error: "\u0E02\u0E2D\u0E2D\u0E20\u0E31\u0E22 \u0E44\u0E21\u0E48\u0E2A\u0E32\u0E21\u0E32\u0E23\u0E16\u0E2D\u0E31\u0E1B\u0E40\u0E14\u0E15\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23\u0E44\u0E14\u0E49 \u0E25\u0E2D\u0E07\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07.",
107007
106895
  placeholderForField: "\u0E1B\u0E49\u0E2D\u0E19 %{fieldName}",
107008
106896
  selection: "%{count} %{number} \u0E17\u0E35\u0E48\u0E40\u0E25\u0E37\u0E2D\u0E01",
107009
- selection_count: {
107010
- zero: "\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E41\u0E25\u0E49\u0E27 %{count} \u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",
107011
- one: "\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E41\u0E25\u0E49\u0E27 %{count} \u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",
107012
- other: "\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E41\u0E25\u0E49\u0E27 %{count} \u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"
107013
- },
107014
106897
  success: "\u0E2D\u0E31\u0E1B\u0E40\u0E14\u0E15\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23\u0E2A\u0E33\u0E40\u0E23\u0E47\u0E08\u0E41\u0E25\u0E49\u0E27",
107015
106898
  one: "\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",
107016
106899
  many: "\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"
@@ -107177,11 +107060,6 @@ var zh_SG_default = {
107177
107060
  error: "\u62B1\u6B49\uFF0C\u65E0\u6CD5\u66F4\u65B0\u6B64\u9879\u3002\u8BF7\u91CD\u8BD5\u3002",
107178
107061
  placeholderForField: "\u8F93\u5165 %{fieldName}",
107179
107062
  selection: "\u5DF2\u9009\u62E9 %{count} %{number}",
107180
- selection_count: {
107181
- zero: "\u5DF2\u9009\u62E9 %{count} \u9879",
107182
- one: "\u5DF2\u9009\u62E9 %{count} \u9879",
107183
- other: "\u5DF2\u9009\u62E9 %{count} \u9879"
107184
- },
107185
107063
  success: "\u5DF2\u6210\u529F\u66F4\u65B0\u8FD9\u4E9B\u9879\u3002",
107186
107064
  one: "\u9879",
107187
107065
  many: "\u9879"
@@ -109051,7 +108929,7 @@ var Table = (props) => {
109051
108929
  (acc, column3) => acc + column3.width,
109052
108930
  0
109053
108931
  );
109054
- const currentPinnedColumnMaxWidth = tableWidth - totalPinnedWidth + column2.actualWidth - 50;
108932
+ const currentPinnedColumnMaxWidth = tableWidth - totalPinnedWidth + column2.getActualWidth() - 50;
109055
108933
  column2.maxWidth = currentPinnedColumnMaxWidth;
109056
108934
  }
109057
108935
  },
@@ -109624,14 +109502,14 @@ function ClientSideFilterInner(props) {
109624
109502
  const { Component: Component4, columnDefinition, onChange, options, value } = props;
109625
109503
  const filterHeading = ((_b = (_a = columnDefinition.filterProps) == null ? void 0 : _a.getFilterHeadingText) == null ? void 0 : _b.call(_a, columnDefinition)) ?? columnDefinition.headerName;
109626
109504
  const filterOptions = React80.useMemo(() => options ?? [], [options]);
109627
- return /* @__PURE__ */ React80.createElement(Box, { as: "li", display: "block", paddingBottom: "xl", style: { width: "100%" } }, filterHeading ? /* @__PURE__ */ React80.createElement(
109505
+ return /* @__PURE__ */ React80.createElement(Box, { as: "li", display: "block", paddingBottom: "xl", style: { width: "100%" } }, filterHeading && /* @__PURE__ */ React80.createElement(
109628
109506
  Label$1,
109629
109507
  {
109630
109508
  "data-qa": `data-table-filter-heading-${columnDefinition.field}`,
109631
109509
  id: `data-table-filter-heading-${columnDefinition.field}`
109632
109510
  },
109633
- filterHeading
109634
- ) : null, /* @__PURE__ */ React80.createElement(
109511
+ /* @__PURE__ */ React80.createElement(React80.Fragment, null, filterHeading)
109512
+ ), /* @__PURE__ */ React80.createElement(
109635
109513
  Component4,
109636
109514
  {
109637
109515
  "data-qa": `data-table-filter-input-${columnDefinition.field}`,
@@ -110633,58 +110511,60 @@ var getSuperSelectFilterPreset = (columnDefinition) => {
110633
110511
  const isValueEmpty = ["", null, void 0].includes(
110634
110512
  ctx.state.value
110635
110513
  );
110636
- return /* @__PURE__ */ React80.createElement(UNSAFE_StyledSuperSelectLabel, { $hoverable: false }, typeof getValueLabel_ === "function" ? getValueLabel_(ctx.state.value) : getValueLabel(
110514
+ return /* @__PURE__ */ React80.createElement(UNSAFE_StyledSuperSelectLabel, { $hoverable: false }, /* @__PURE__ */ React80.createElement(React80.Fragment, null, typeof getValueLabel_ === "function" ? getValueLabel_(ctx.state.value) : getValueLabel(
110637
110515
  isValueEmpty,
110638
110516
  ctx.state.selectedLabel,
110639
110517
  ctx.config.placeholder,
110640
110518
  filterName
110641
- ));
110519
+ )));
110642
110520
  }),
110643
- TriggerContainer: React80.forwardRef((props, ref) => {
110644
- const ctx = UNSAFE_useSuperSelectContext();
110645
- if (!Array.isArray(ctx.state.value)) {
110521
+ TriggerContainer: React80.forwardRef(
110522
+ (props, ref) => {
110523
+ const ctx = UNSAFE_useSuperSelectContext();
110524
+ if (!Array.isArray(ctx.state.value)) {
110525
+ return /* @__PURE__ */ React80.createElement(
110526
+ UNSAFE_StyledSuperSelectTrigger,
110527
+ {
110528
+ $block: ctx.config.block,
110529
+ ...props,
110530
+ ref
110531
+ }
110532
+ );
110533
+ }
110646
110534
  return /* @__PURE__ */ React80.createElement(
110647
- UNSAFE_StyledSuperSelectTrigger,
110535
+ Popover,
110648
110536
  {
110649
- $block: ctx.config.block,
110650
- ...props,
110651
- ref
110652
- }
110537
+ placement: "top",
110538
+ trigger: ctx.state.value.length > 1 ? "hover" : "none",
110539
+ overlay: /* @__PURE__ */ React80.createElement(StyledFilterPresetPopoverContent, null, /* @__PURE__ */ React80.createElement(Typography, null, ctx.state.value.map((v) => {
110540
+ const option = ctx.state.options.find(
110541
+ (option2) => ctx.option.value(option2) === v
110542
+ );
110543
+ return option ? ctx.option.label(option) : "";
110544
+ }).join(", ")))
110545
+ },
110546
+ /* @__PURE__ */ React80.createElement(
110547
+ UNSAFE_StyledSuperSelectTrigger,
110548
+ {
110549
+ $block: ctx.config.block,
110550
+ ...props,
110551
+ ref
110552
+ }
110553
+ )
110653
110554
  );
110654
110555
  }
110655
- return /* @__PURE__ */ React80.createElement(
110656
- Popover,
110657
- {
110658
- placement: "top",
110659
- trigger: ctx.state.value.length > 1 ? "hover" : "none",
110660
- overlay: /* @__PURE__ */ React80.createElement(StyledFilterPresetPopoverContent, null, /* @__PURE__ */ React80.createElement(Typography, null, ctx.state.value.map((v) => {
110661
- const option = ctx.state.options.find(
110662
- (option2) => ctx.option.value(option2) === v
110663
- );
110664
- return option ? ctx.option.label(option) : "";
110665
- }).join(", ")))
110666
- },
110667
- /* @__PURE__ */ React80.createElement(
110668
- UNSAFE_StyledSuperSelectTrigger,
110669
- {
110670
- $block: ctx.config.block,
110671
- ...props,
110672
- ref
110673
- }
110674
- )
110675
- );
110676
- }),
110556
+ ),
110677
110557
  MultiValueContainer: () => {
110678
110558
  const ctx = UNSAFE_useSuperSelectContext();
110679
110559
  if (Array.isArray(ctx.state.value)) {
110680
110560
  const isValueEmpty = !ctx.state.value.length;
110681
110561
  const value = ctx.state.value.length > 1 ? `(${ctx.state.value.length})` : ctx.state.value.length === 1 ? `${ctx.state.selectedLabel}` : "";
110682
- return /* @__PURE__ */ React80.createElement(UNSAFE_StyledSuperSelectLabel, { $hoverable: false }, typeof getValueLabel_ === "function" ? getValueLabel_(ctx.state.value) : getValueLabel(
110562
+ return /* @__PURE__ */ React80.createElement(UNSAFE_StyledSuperSelectLabel, { $hoverable: false }, /* @__PURE__ */ React80.createElement(React80.Fragment, null, typeof getValueLabel_ === "function" ? getValueLabel_(ctx.state.value) : getValueLabel(
110683
110563
  isValueEmpty,
110684
110564
  value,
110685
110565
  ctx.config.placeholder,
110686
110566
  filterName
110687
- ));
110567
+ )));
110688
110568
  }
110689
110569
  return /* @__PURE__ */ React80.createElement("div", null, "Value is not an array");
110690
110570
  }
@@ -111241,7 +111121,7 @@ var ClientSideQuickFilters = ({ overlayMatchesTriggerWidth }) => {
111241
111121
  if (!colDef) {
111242
111122
  return null;
111243
111123
  }
111244
- return /* @__PURE__ */ React80.createElement(StyledFilterTokenWrapper, { key: filter.field }, /* @__PURE__ */ React80.createElement(UNSAFE_FilterToken, null, /* @__PURE__ */ React80.createElement(UNSAFE_FilterToken.Label, null, getFilterTokenText(colDef, filter.filterValues)), /* @__PURE__ */ React80.createElement(
111124
+ return /* @__PURE__ */ React80.createElement(StyledFilterTokenWrapper, { key: filter.field }, /* @__PURE__ */ React80.createElement(UNSAFE_FilterToken, null, /* @__PURE__ */ React80.createElement(UNSAFE_FilterToken.Label, null, /* @__PURE__ */ React80.createElement(React80.Fragment, null, getFilterTokenText(colDef, filter.filterValues))), /* @__PURE__ */ React80.createElement(
111245
111125
  UNSAFE_FilterToken.Remove,
111246
111126
  {
111247
111127
  onClick: () => {
@@ -111340,10 +111220,10 @@ var ServerSideQuickFilters = ({ overlayMatchesTriggerWidth }) => {
111340
111220
  return null;
111341
111221
  }
111342
111222
  const filter = getListFilter(fieldName);
111343
- return /* @__PURE__ */ React80.createElement(StyledFilterTokenWrapper, { key: fieldName }, /* @__PURE__ */ React80.createElement(UNSAFE_FilterToken, null, /* @__PURE__ */ React80.createElement(UNSAFE_FilterToken.Label, null, getFilterTokenText(
111223
+ return /* @__PURE__ */ React80.createElement(StyledFilterTokenWrapper, { key: fieldName }, /* @__PURE__ */ React80.createElement(UNSAFE_FilterToken, null, /* @__PURE__ */ React80.createElement(UNSAFE_FilterToken.Label, null, /* @__PURE__ */ React80.createElement(React80.Fragment, null, getFilterTokenText(
111344
111224
  colDef,
111345
111225
  colDef.filterRenderer === DateFilterRenderer_default ? filter.value : filter.selected
111346
- )), /* @__PURE__ */ React80.createElement(
111226
+ ))), /* @__PURE__ */ React80.createElement(
111347
111227
  UNSAFE_FilterToken.Remove,
111348
111228
  {
111349
111229
  "data-qa": "data-table-quick-filter-remove-token",