@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.
@@ -7997,32 +7997,15 @@ var styles_default = {
7997
7997
  "spin": "_spin_if78k_1"
7998
7998
  };
7999
7999
 
8000
- // src/utils/getCellValueTypographyProps.ts
8001
- function getCellValueTypographyProps(typographyProps) {
8002
- return {
8003
- intent: "small",
8004
- ...typographyProps ?? {}
8005
- };
8006
- }
8007
-
8008
8000
  // src/CellRenderers/BooleanCell.tsx
8009
8001
  var cx = classnames__default.default.bind(styles_default);
8010
- var InternalBooleanCellRenderer = ({ columnDefinition, isGroup, value }) => {
8011
- var _a;
8002
+ var InternalBooleanCellRenderer = ({ isGroup, value, typographyProps }) => {
8012
8003
  const I18n = coreReact.useI18nContext();
8013
8004
  const internalValue = value ? I18n.t("dataTable.cells.booleanCell.options.yes") : I18n.t("dataTable.cells.booleanCell.options.no");
8014
8005
  if (isGroup) {
8015
8006
  return null;
8016
8007
  }
8017
- return /* @__PURE__ */ React80__default.default.createElement(
8018
- coreReact.Typography,
8019
- {
8020
- ...getCellValueTypographyProps(
8021
- (_a = columnDefinition.cellRendererParams) == null ? void 0 : _a.typographyProps
8022
- )
8023
- },
8024
- internalValue
8025
- );
8008
+ return /* @__PURE__ */ React80__default.default.createElement(coreReact.Typography, { ...typographyProps }, internalValue);
8026
8009
  };
8027
8010
  var BooleanCellRenderer = withDataTableRenderer(
8028
8011
  InternalBooleanCellRenderer,
@@ -8063,12 +8046,13 @@ var BooleanCellEditor = withDataTableEditor(
8063
8046
  var Renderer = ({
8064
8047
  columnDefinition,
8065
8048
  rowPinned,
8049
+ buttons,
8066
8050
  ...props
8067
8051
  }) => {
8068
8052
  if (rowPinned) {
8069
8053
  return null;
8070
8054
  }
8071
- return /* @__PURE__ */ React80__default.default.createElement(coreReact.FlexList, { justifyContent: "center", alignItems: "center", size: "xs" }, columnDefinition.cellRendererParams.buttons.map((Button6) => /* @__PURE__ */ React80__default.default.createElement(
8055
+ return /* @__PURE__ */ React80__default.default.createElement(coreReact.FlexList, { justifyContent: "center", alignItems: "center", size: "xs" }, buttons.map((Button6) => /* @__PURE__ */ React80__default.default.createElement(
8072
8056
  Button6,
8073
8057
  {
8074
8058
  key: Button6.displayName,
@@ -8170,12 +8154,13 @@ function ContactItem({
8170
8154
 
8171
8155
  // src/CellRenderers/CompanyCell.tsx
8172
8156
  var Renderer2 = ({
8173
- columnDefinition,
8174
8157
  rowHeight,
8175
8158
  isGroup,
8176
- value
8159
+ value,
8160
+ getCompanyName,
8161
+ getImageURL,
8162
+ typographyProps
8177
8163
  }) => {
8178
- var _a, _b, _c, _d, _e;
8179
8164
  const [showAvatar, setShowAvatar] = React80__default.default.useState(false);
8180
8165
  React80__default.default.useEffect(() => {
8181
8166
  setShowAvatar(rowHeight === rowSize.lg || rowHeight === rowSize.md);
@@ -8183,18 +8168,9 @@ var Renderer2 = ({
8183
8168
  if (value === void 0 || value === null) {
8184
8169
  return null;
8185
8170
  }
8186
- const companyName = isGroup ? value : ((_b = (_a = columnDefinition.cellRendererParams) == null ? void 0 : _a.getCompanyName) == null ? void 0 : _b.call(_a, value)) ?? value.name;
8187
- const imageURL = (_d = (_c = columnDefinition.cellRendererParams) == null ? void 0 : _c.getImageURL) == null ? void 0 : _d.call(_c, value);
8188
- return isGroup ? /* @__PURE__ */ React80__default.default.createElement(
8189
- coreReact.Typography,
8190
- {
8191
- ...getCellValueTypographyProps(
8192
- (_e = columnDefinition.cellRendererParams) == null ? void 0 : _e.typographyProps
8193
- ),
8194
- weight: "semibold"
8195
- },
8196
- companyName
8197
- ) : /* @__PURE__ */ React80__default.default.createElement(
8171
+ const companyName = isGroup ? value : (getCompanyName == null ? void 0 : getCompanyName(value)) ?? value.name;
8172
+ const imageURL = getImageURL == null ? void 0 : getImageURL(value);
8173
+ return isGroup ? /* @__PURE__ */ React80__default.default.createElement(coreReact.Typography, { ...typographyProps, weight: "semibold" }, companyName) : /* @__PURE__ */ React80__default.default.createElement(
8198
8174
  ContactItem,
8199
8175
  {
8200
8176
  imageUrl: showAvatar ? imageURL : void 0,
@@ -8229,29 +8205,19 @@ var Renderer3 = ({
8229
8205
  columnDefinition,
8230
8206
  isGroup,
8231
8207
  rowPinned,
8232
- value
8208
+ value,
8209
+ typographyProps,
8210
+ formatConfig,
8211
+ inputProps
8233
8212
  }) => {
8234
- var _a, _b, _c, _d, _e, _f, _g;
8235
8213
  const I18n = coreReact.useI18nContext();
8236
- const internalValue = value !== void 0 && labsFinancialsUtils.formatCurrency(
8237
- value == null ? void 0 : value.toString(),
8238
- (_a = columnDefinition.cellRendererParams) == null ? void 0 : _a.formatConfig
8239
- ) || void 0;
8214
+ const internalValue = value !== void 0 && labsFinancialsUtils.formatCurrency(value == null ? void 0 : value.toString(), formatConfig) || void 0;
8240
8215
  if (isEmptyValue(value)) {
8241
8216
  if (isGroup) {
8242
8217
  return null;
8243
8218
  }
8244
8219
  if (columnDefinition.editable) {
8245
- return /* @__PURE__ */ React80__default.default.createElement(
8246
- coreReact.Typography,
8247
- {
8248
- ...getCellValueTypographyProps(
8249
- (_b = columnDefinition.cellRendererParams) == null ? void 0 : _b.typographyProps
8250
- ),
8251
- className: cx3("input-placeholder")
8252
- },
8253
- ((_d = (_c = columnDefinition.cellEditorParams) == null ? void 0 : _c.inputProps) == null ? void 0 : _d.placeholder) || I18n.t("dataTable.cells.currencyCell.placeholder")
8254
- );
8220
+ return /* @__PURE__ */ React80__default.default.createElement(coreReact.Typography, { ...typographyProps, className: cx3("input-placeholder") }, (inputProps == null ? void 0 : inputProps.placeholder) || I18n.t("dataTable.cells.currencyCell.placeholder"));
8255
8221
  }
8256
8222
  }
8257
8223
  if (isGroup) {
@@ -8268,10 +8234,8 @@ var Renderer3 = ({
8268
8234
  return /* @__PURE__ */ React80__default.default.createElement(
8269
8235
  coreReact.Typography,
8270
8236
  {
8271
- ...getCellValueTypographyProps(
8272
- (_e = columnDefinition.cellRendererParams) == null ? void 0 : _e.typographyProps
8273
- ),
8274
- weight: rowPinned ? "bold" : (_g = (_f = columnDefinition.cellRendererParams) == null ? void 0 : _f.typographyProps) == null ? void 0 : _g.weight,
8237
+ ...typographyProps,
8238
+ weight: rowPinned ? "bold" : typographyProps == null ? void 0 : typographyProps.weight,
8275
8239
  className: cx3("tabular-nums")
8276
8240
  },
8277
8241
  internalValue
@@ -8279,8 +8243,15 @@ var Renderer3 = ({
8279
8243
  };
8280
8244
  var CurrencyCellRenderer = withDataTableRenderer(Renderer3, "input");
8281
8245
  var Editor = React80__default.default.forwardRef(
8282
- ({ columnDefinition, eventKey, stopEditing, value }, ref) => {
8283
- var _a, _b, _c, _d, _e;
8246
+ ({
8247
+ columnDefinition,
8248
+ eventKey,
8249
+ stopEditing,
8250
+ value,
8251
+ formatConfig,
8252
+ inputProps
8253
+ }, ref) => {
8254
+ var _a;
8284
8255
  const I18n = coreReact.useI18nContext();
8285
8256
  if (isEmptyValue(value) && !columnDefinition.editable) {
8286
8257
  return null;
@@ -8289,19 +8260,20 @@ var Editor = React80__default.default.forwardRef(
8289
8260
  stopEditing(ensureIsHTMLElement(event.relatedTarget));
8290
8261
  }
8291
8262
  const defaultValue = eventKey ? value : labsFinancialsUtils.formatNumber(value, {
8292
- ...((_a = columnDefinition.cellEditorParams) == null ? void 0 : _a.formatConfig) ?? ((_b = columnDefinition.cellRendererParams) == null ? void 0 : _b.formatConfig) ?? {},
8263
+ ...formatConfig || ((_a = columnDefinition.cellRendererParams) == null ? void 0 : _a.formatConfig),
8264
+ //TODO remove usage of columnDefinition.cellRendererParams in next major version
8293
8265
  symbol: void 0,
8294
8266
  symbolAfterValue: void 0
8295
8267
  });
8296
8268
  return /* @__PURE__ */ React80__default.default.createElement(
8297
8269
  coreReact.Input,
8298
8270
  {
8299
- placeholder: ((_d = (_c = columnDefinition.cellEditorParams) == null ? void 0 : _c.inputProps) == null ? void 0 : _d.placeholder) || I18n.t("dataTable.cells.currencyCell.placeholder"),
8271
+ placeholder: (inputProps == null ? void 0 : inputProps.placeholder) || I18n.t("dataTable.cells.currencyCell.placeholder"),
8300
8272
  defaultValue,
8301
8273
  onBlur,
8302
8274
  ref,
8303
8275
  className: cx3("input-cell", "input-cell--right-aligned"),
8304
- ...((_e = columnDefinition.cellEditorParams) == null ? void 0 : _e.inputProps) || {}
8276
+ ...inputProps
8305
8277
  }
8306
8278
  );
8307
8279
  }
@@ -8715,6 +8687,14 @@ var DateFilterTokenText = ({
8715
8687
  };
8716
8688
  var DateFilterRenderer_default = DateFilterRenderer;
8717
8689
 
8690
+ // src/utils/getCellValueTypographyProps.ts
8691
+ function getCellValueTypographyProps(typographyProps) {
8692
+ return {
8693
+ intent: "small",
8694
+ ...typographyProps
8695
+ };
8696
+ }
8697
+
8718
8698
  // src/CellRenderers/DateCell.tsx
8719
8699
  var cx4 = classnames__default.default.bind(styles_default);
8720
8700
  function getDateObject(date) {
@@ -8804,39 +8784,32 @@ function getDateObject2(date) {
8804
8784
  return date;
8805
8785
  }
8806
8786
  var DateTimeCellValue = ({
8807
- columnDefinition,
8808
8787
  isGroup,
8809
- value
8788
+ value,
8789
+ typographyProps,
8790
+ dateFormatType
8810
8791
  }) => {
8811
- var _a, _b;
8812
8792
  const { format: format3 } = coreReact.useDateTime();
8813
8793
  if (isGroup || isEmptyValue(value)) {
8814
8794
  return null;
8815
8795
  }
8816
8796
  const parsedValue = getDateObject2(value);
8817
- const internalValue = parsedValue ? format3(
8818
- parsedValue,
8819
- ((_a = columnDefinition.cellRendererParams) == null ? void 0 : _a.dateFormatType) || "abbr-weekday-abbr-date-at-time"
8820
- ) : void 0;
8821
- const typographyProps = getCellValueTypographyProps(
8822
- (_b = columnDefinition.cellRendererParams) == null ? void 0 : _b.typographyProps
8823
- );
8797
+ const internalValue = parsedValue ? format3(parsedValue, dateFormatType || "abbr-weekday-abbr-date-at-time") : void 0;
8824
8798
  return /* @__PURE__ */ React80__default.default.createElement(coreReact.Typography, { ...typographyProps }, internalValue);
8825
8799
  };
8826
8800
  var Renderer5 = (props) => {
8827
- var _a, _b;
8828
- return /* @__PURE__ */ React80__default.default.createElement(
8829
- OptionalDateTimeProvider,
8830
- {
8831
- timeZone: (_b = (_a = props.columnDefinition) == null ? void 0 : _a.cellRendererParams) == null ? void 0 : _b.timeZone
8832
- },
8833
- /* @__PURE__ */ React80__default.default.createElement(DateTimeCellValue, { ...props })
8834
- );
8801
+ return /* @__PURE__ */ React80__default.default.createElement(OptionalDateTimeProvider, { timeZone: props.timeZone }, /* @__PURE__ */ React80__default.default.createElement(DateTimeCellValue, { ...props }));
8835
8802
  };
8836
8803
  var DateTimeCellRenderer = withDataTableRenderer(Renderer5, "date");
8837
8804
  var Editor3 = React80__default.default.forwardRef(
8838
- ({ columnDefinition, setDataValue, stopEditing, value }, ref) => {
8839
- var _a, _b;
8805
+ ({
8806
+ columnDefinition,
8807
+ setDataValue,
8808
+ stopEditing,
8809
+ value,
8810
+ timeZone,
8811
+ disabledDate
8812
+ }, ref) => {
8840
8813
  function afterHide(event) {
8841
8814
  stopEditing(ensureIsHTMLElement(event == null ? void 0 : event.target));
8842
8815
  }
@@ -8847,23 +8820,17 @@ var Editor3 = React80__default.default.forwardRef(
8847
8820
  setDataValue(columnDefinition.field, void 0);
8848
8821
  }
8849
8822
  }
8850
- return /* @__PURE__ */ React80__default.default.createElement(
8851
- OptionalDateTimeProvider,
8823
+ return /* @__PURE__ */ React80__default.default.createElement(OptionalDateTimeProvider, { timeZone }, /* @__PURE__ */ React80__default.default.createElement(
8824
+ coreReact.DateSelect,
8852
8825
  {
8853
- timeZone: (_a = columnDefinition.cellEditorParams) == null ? void 0 : _a.timeZone
8854
- },
8855
- /* @__PURE__ */ React80__default.default.createElement(
8856
- coreReact.DateSelect,
8857
- {
8858
- afterHide,
8859
- className: cx5("input-cell"),
8860
- disabledDate: (_b = columnDefinition.cellEditorParams) == null ? void 0 : _b.disabledDate,
8861
- onChange,
8862
- ref,
8863
- value: getDateObject2(value)
8864
- }
8865
- )
8866
- );
8826
+ afterHide,
8827
+ className: cx5("input-cell"),
8828
+ disabledDate,
8829
+ onChange,
8830
+ ref,
8831
+ value: getDateObject2(value)
8832
+ }
8833
+ ));
8867
8834
  }
8868
8835
  );
8869
8836
  var DateTimeCellEditor = withDataTableEditor(Editor3, "date");
@@ -52389,16 +52356,22 @@ globalObj.MouseEvent = typeof MouseEvent === "undefined" ? {} : MouseEvent;
52389
52356
  var GroupCellRenderer2 = GroupCellRenderer;
52390
52357
  var cx6 = classnames__default.default.bind(truncation_default);
52391
52358
  var MIN_LINK_WIDTH = 48;
52392
- var InternalLinkCellRenderer = ({ columnDefinition, isGroup, data, rowHeight, value }) => {
52393
- var _a, _b, _c, _d;
52359
+ var InternalLinkCellRenderer = ({
52360
+ columnDefinition,
52361
+ isGroup,
52362
+ data,
52363
+ rowHeight,
52364
+ value,
52365
+ typographyProps,
52366
+ isExternalLink,
52367
+ getURL
52368
+ }) => {
52369
+ var _a;
52394
52370
  const [isLinkWidthBelowMin, setIsLinkWidthBelowMin] = React80.useState(false);
52395
52371
  const linkRef = React80.useRef(null);
52396
52372
  const internalValue = value ? (_a = columnDefinition.getStringFormattedValue) == null ? void 0 : _a.call(columnDefinition, value) : "";
52397
- const typographyProps = getCellValueTypographyProps(
52398
- (_b = columnDefinition.cellRendererParams) == null ? void 0 : _b.typographyProps
52399
- );
52400
52373
  const className = cx6(
52401
- (_d = (_c = columnDefinition.cellRendererParams) == null ? void 0 : _c.typographyProps) == null ? void 0 : _d.className,
52374
+ typographyProps == null ? void 0 : typographyProps.className,
52402
52375
  "textCell",
52403
52376
  "truncatingText",
52404
52377
  {
@@ -52416,8 +52389,7 @@ var InternalLinkCellRenderer = ({ columnDefinition, isGroup, data, rowHeight, va
52416
52389
  setIsLinkWidthBelowMin(width < MIN_LINK_WIDTH);
52417
52390
  }
52418
52391
  }, [internalValue]);
52419
- const isExternalLink = columnDefinition.cellRendererParams.isExternalLink ?? false;
52420
- const URL = columnDefinition.cellRendererParams.getURL(value, data);
52392
+ const URL = getURL(value, data);
52421
52393
  const extendClickableAreaClassNames = isLinkWidthBelowMin ? cx6("extendClickableArea", {
52422
52394
  "extendClickableArea--rowHeightSm": rowHeight === rowSize.sm
52423
52395
  }) : "";
@@ -52447,24 +52419,22 @@ var LinkCellRenderer = withDataTableRenderer(
52447
52419
  "input"
52448
52420
  );
52449
52421
  var cx7 = classnames__default.default.bind(styles_default);
52450
- var InternalNumberCellRenderer = ({ columnDefinition, rowPinned, isGroup, value }) => {
52451
- var _a, _b, _c, _d, _e, _f, _g;
52422
+ var InternalNumberCellRenderer = ({
52423
+ columnDefinition,
52424
+ rowPinned,
52425
+ isGroup,
52426
+ value,
52427
+ typographyProps,
52428
+ inputProps,
52429
+ formatConfig
52430
+ }) => {
52452
52431
  const I18n = coreReact.useI18nContext();
52453
52432
  if (isEmptyValue(value)) {
52454
52433
  if (isGroup) {
52455
52434
  return null;
52456
52435
  }
52457
52436
  if (columnDefinition.editable) {
52458
- return /* @__PURE__ */ React80__default.default.createElement(
52459
- coreReact.Typography,
52460
- {
52461
- ...getCellValueTypographyProps(
52462
- (_a = columnDefinition.cellRendererParams) == null ? void 0 : _a.typographyProps
52463
- ),
52464
- className: cx7("input-placeholder")
52465
- },
52466
- ((_c = (_b = columnDefinition.cellEditorParams) == null ? void 0 : _b.inputProps) == null ? void 0 : _c.placeholder) || I18n.t("dataTable.cells.numberCell.placeholder")
52467
- );
52437
+ return /* @__PURE__ */ React80__default.default.createElement(coreReact.Typography, { ...typographyProps, className: cx7("input-placeholder") }, (inputProps == null ? void 0 : inputProps.placeholder) || I18n.t("dataTable.cells.numberCell.placeholder"));
52468
52438
  }
52469
52439
  return /* @__PURE__ */ React80__default.default.createElement(React80__default.default.Fragment, null);
52470
52440
  }
@@ -52473,7 +52443,7 @@ var InternalNumberCellRenderer = ({ columnDefinition, rowPinned, isGroup, value
52473
52443
  minDecimalPrecision: 0,
52474
52444
  shouldUseGtk: true,
52475
52445
  symbol: "",
52476
- ...(_d = columnDefinition.cellRendererParams) == null ? void 0 : _d.formatConfig
52446
+ ...formatConfig
52477
52447
  });
52478
52448
  if (isGroup) {
52479
52449
  return /* @__PURE__ */ React80__default.default.createElement(coreReact.Typography, { intent: "small", weight: "semibold" }, internalValue);
@@ -52481,10 +52451,8 @@ var InternalNumberCellRenderer = ({ columnDefinition, rowPinned, isGroup, value
52481
52451
  return /* @__PURE__ */ React80__default.default.createElement(
52482
52452
  coreReact.Typography,
52483
52453
  {
52484
- ...getCellValueTypographyProps(
52485
- (_e = columnDefinition.cellRendererParams) == null ? void 0 : _e.typographyProps
52486
- ),
52487
- weight: rowPinned ? "bold" : (_g = (_f = columnDefinition.cellRendererParams) == null ? void 0 : _f.typographyProps) == null ? void 0 : _g.weight
52454
+ ...typographyProps,
52455
+ weight: rowPinned ? "bold" : typographyProps == null ? void 0 : typographyProps.weight
52488
52456
  },
52489
52457
  internalValue
52490
52458
  );
@@ -52493,8 +52461,7 @@ var NumberCellRenderer = withDataTableRenderer(
52493
52461
  InternalNumberCellRenderer,
52494
52462
  "input"
52495
52463
  );
52496
- var InternalNumberCellEditor = React80__default.default.forwardRef(({ columnDefinition, stopEditing, value }, ref) => {
52497
- var _a, _b, _c;
52464
+ var InternalNumberCellEditor = React80__default.default.forwardRef(({ columnDefinition, stopEditing, value, inputProps }, ref) => {
52498
52465
  const I18n = coreReact.useI18nContext();
52499
52466
  if (isEmptyValue(value) && !columnDefinition.editable) {
52500
52467
  return null;
@@ -52505,13 +52472,13 @@ var InternalNumberCellEditor = React80__default.default.forwardRef(({ columnDefi
52505
52472
  return /* @__PURE__ */ React80__default.default.createElement(
52506
52473
  coreReact.Input,
52507
52474
  {
52508
- placeholder: ((_b = (_a = columnDefinition.cellEditorParams) == null ? void 0 : _a.inputProps) == null ? void 0 : _b.placeholder) || I18n.t("dataTable.cells.numberCell.placeholder"),
52475
+ placeholder: (inputProps == null ? void 0 : inputProps.placeholder) || I18n.t("dataTable.cells.numberCell.placeholder"),
52509
52476
  type: "number",
52510
52477
  defaultValue: value,
52511
52478
  onBlur,
52512
52479
  ref,
52513
52480
  className: cx7("input-cell", "input-cell--right-aligned"),
52514
- ...((_c = columnDefinition.cellEditorParams) == null ? void 0 : _c.inputProps) || {}
52481
+ ...inputProps
52515
52482
  }
52516
52483
  );
52517
52484
  });
@@ -52592,45 +52559,43 @@ var defaultAvatarStackItemFilter = (person) => !!person || !!person.id;
52592
52559
  var Renderer6 = ({
52593
52560
  columnDefinition,
52594
52561
  rowHeight,
52595
- value
52562
+ value,
52563
+ getValue: getValue2,
52564
+ getCompanyName: getCompanyNameParam,
52565
+ getPersonName: getPersonNameParam,
52566
+ getInitials,
52567
+ getImageURL,
52568
+ typographyProps
52596
52569
  }) => {
52597
- var _a, _b, _c, _d, _e, _f, _g;
52570
+ var _a;
52598
52571
  const [fullCellView, setFullCellView] = React80__default.default.useState(false);
52599
52572
  const getPeople = React80__default.default.useCallback(() => {
52600
- var _a2, _b2;
52601
- return ((_b2 = (_a2 = columnDefinition.cellRendererParams) == null ? void 0 : _a2.getValue) == null ? void 0 : _b2.call(_a2, value)) || value || [];
52602
- }, [(_a = columnDefinition.cellRendererParams) == null ? void 0 : _a.getValue, value]);
52573
+ return (getValue2 == null ? void 0 : getValue2(value)) || value || [];
52574
+ }, [getValue2, value]);
52603
52575
  const getCompanyName = React80__default.default.useCallback(
52604
52576
  (person) => {
52605
- var _a2, _b2;
52606
- return ((_b2 = (_a2 = columnDefinition.cellRendererParams) == null ? void 0 : _a2.getCompanyName) == null ? void 0 : _b2.call(_a2, person)) ?? person.company ?? "";
52577
+ return (getCompanyNameParam == null ? void 0 : getCompanyNameParam(person)) ?? person.company ?? "";
52607
52578
  },
52608
- [(_b = columnDefinition.cellRendererParams) == null ? void 0 : _b.getCompanyName]
52579
+ [getCompanyNameParam]
52609
52580
  );
52610
52581
  const getPersonName = React80__default.default.useCallback(
52611
52582
  (person) => {
52612
- var _a2, _b2;
52613
- return ((_b2 = (_a2 = columnDefinition.cellRendererParams) == null ? void 0 : _a2.getPersonName) == null ? void 0 : _b2.call(_a2, person)) ?? person.name ?? "";
52583
+ return (getPersonNameParam == null ? void 0 : getPersonNameParam(person)) ?? person.name ?? "";
52614
52584
  },
52615
- [(_c = columnDefinition.cellRendererParams) == null ? void 0 : _c.getPersonName]
52585
+ [getPersonNameParam]
52616
52586
  );
52617
52587
  const getPersonImageUrl = React80__default.default.useCallback(
52618
52588
  (person) => {
52619
- var _a2, _b2;
52620
- return ((_b2 = (_a2 = columnDefinition.cellRendererParams) == null ? void 0 : _a2.getImageURL) == null ? void 0 : _b2.call(_a2, person)) ?? "";
52589
+ return (getImageURL == null ? void 0 : getImageURL(person)) ?? "";
52621
52590
  },
52622
- [(_d = columnDefinition.cellRendererParams) == null ? void 0 : _d.getImageURL]
52591
+ [getImageURL]
52623
52592
  );
52624
52593
  const getPersonInitials = React80__default.default.useCallback(
52625
52594
  (person) => {
52626
- var _a2, _b2;
52627
- return ((_b2 = (_a2 = columnDefinition.cellRendererParams) == null ? void 0 : _a2.getInitials) == null ? void 0 : _b2.call(_a2, person)) ?? "";
52595
+ return (getInitials == null ? void 0 : getInitials(person)) ?? "";
52628
52596
  },
52629
- [(_e = columnDefinition.cellRendererParams) == null ? void 0 : _e.getInitials]
52597
+ [getInitials]
52630
52598
  );
52631
- React80__default.default.useEffect(() => {
52632
- setFullCellView(rowHeight === rowSize.lg || rowHeight === rowSize.md);
52633
- }, [rowHeight]);
52634
52599
  const getPersonNameWithCompany = React80__default.default.useCallback(
52635
52600
  (person) => {
52636
52601
  const name = getPersonName(person);
@@ -52639,6 +52604,9 @@ var Renderer6 = ({
52639
52604
  },
52640
52605
  [getCompanyName, getPersonName]
52641
52606
  );
52607
+ React80__default.default.useEffect(() => {
52608
+ setFullCellView(rowHeight === rowSize.lg || rowHeight === rowSize.md);
52609
+ }, [rowHeight]);
52642
52610
  const namesWithCompany = React80__default.default.useMemo(
52643
52611
  () => getPeople().map(getPersonNameWithCompany).join(", "),
52644
52612
  [getPeople, getPersonNameWithCompany]
@@ -52654,9 +52622,6 @@ var Renderer6 = ({
52654
52622
  }
52655
52623
  return avatarWidth * avatarCount;
52656
52624
  }, [getPeople, rowHeight]);
52657
- const typographyProps = getCellValueTypographyProps(
52658
- (_f = columnDefinition.cellRendererParams) == null ? void 0 : _f.typographyProps
52659
- );
52660
52625
  const people = getPeople();
52661
52626
  if (isEmptyValue(value) || people.length === 0) {
52662
52627
  return null;
@@ -52670,7 +52635,7 @@ var Renderer6 = ({
52670
52635
  type: person.type || "user"
52671
52636
  };
52672
52637
  }).filter(
52673
- ((_g = columnDefinition.cellRendererParams) == null ? void 0 : _g.avatarStackItemFilter) ?? defaultAvatarStackItemFilter
52638
+ ((_a = columnDefinition.cellRendererParams) == null ? void 0 : _a.avatarStackItemFilter) ?? defaultAvatarStackItemFilter
52674
52639
  );
52675
52640
  const isAvatarStackDisplayed = fullCellView && avatarStackItems && !!avatarStackItems.length;
52676
52641
  return /* @__PURE__ */ React80__default.default.createElement(
@@ -52765,31 +52730,21 @@ var Renderer7 = ({
52765
52730
  columnDefinition,
52766
52731
  isGroup,
52767
52732
  rowPinned,
52768
- value
52733
+ value,
52734
+ typographyProps,
52735
+ inputProps,
52736
+ formatConfig
52769
52737
  }) => {
52770
- var _a, _b, _c, _d, _e, _f, _g;
52771
52738
  const I18n = coreReact.useI18nContext();
52772
52739
  if (isEmptyValue(value)) {
52773
52740
  if (isGroup) {
52774
52741
  return null;
52775
52742
  }
52776
52743
  if (columnDefinition.editable) {
52777
- return /* @__PURE__ */ React80__default.default.createElement(
52778
- coreReact.Typography,
52779
- {
52780
- ...getCellValueTypographyProps(
52781
- (_a = columnDefinition.cellRendererParams) == null ? void 0 : _a.typographyProps
52782
- ),
52783
- className: cx9("input-placeholder")
52784
- },
52785
- ((_c = (_b = columnDefinition.cellEditorParams) == null ? void 0 : _b.inputProps) == null ? void 0 : _c.placeholder) || I18n.t("dataTable.cells.percentCell.placeholder")
52786
- );
52744
+ return /* @__PURE__ */ React80__default.default.createElement(coreReact.Typography, { ...typographyProps, className: cx9("input-placeholder") }, (inputProps == null ? void 0 : inputProps.placeholder) || I18n.t("dataTable.cells.percentCell.placeholder"));
52787
52745
  }
52788
52746
  }
52789
- const internalValue = labsFinancialsUtils.formatPercentage(
52790
- (value == null ? void 0 : value.toString()) ?? "",
52791
- (_d = columnDefinition.cellRendererParams) == null ? void 0 : _d.formatConfig
52792
- );
52747
+ const internalValue = labsFinancialsUtils.formatPercentage((value == null ? void 0 : value.toString()) ?? "", formatConfig);
52793
52748
  if (isGroup) {
52794
52749
  return /* @__PURE__ */ React80__default.default.createElement(
52795
52750
  coreReact.Typography,
@@ -52804,51 +52759,62 @@ var Renderer7 = ({
52804
52759
  return /* @__PURE__ */ React80__default.default.createElement(
52805
52760
  coreReact.Typography,
52806
52761
  {
52807
- ...getCellValueTypographyProps(
52808
- (_e = columnDefinition.cellRendererParams) == null ? void 0 : _e.typographyProps
52809
- ),
52810
- weight: rowPinned ? "bold" : (_g = (_f = columnDefinition.cellRendererParams) == null ? void 0 : _f.typographyProps) == null ? void 0 : _g.weight,
52762
+ ...typographyProps,
52763
+ weight: rowPinned ? "bold" : typographyProps == null ? void 0 : typographyProps.weight,
52811
52764
  className: cx9("tabular-nums")
52812
52765
  },
52813
52766
  internalValue
52814
52767
  );
52815
52768
  };
52816
52769
  var PercentCellRenderer = withDataTableRenderer(Renderer7, "input");
52817
- var Editor4 = React80__default.default.forwardRef(({ columnDefinition, eventKey, stopEditing, value }, ref) => {
52818
- var _a, _b, _c, _d, _e;
52819
- const I18n = coreReact.useI18nContext();
52820
- function onBlur(event) {
52821
- stopEditing(ensureIsHTMLElement(event.relatedTarget));
52822
- }
52823
- if (isEmptyValue(value) && !columnDefinition.editable) {
52824
- return null;
52825
- }
52826
- const defaultValue = eventKey ? value : labsFinancialsUtils.formatNumber(value, {
52827
- ...((_a = columnDefinition.cellEditorParams) == null ? void 0 : _a.formatConfig) ?? ((_b = columnDefinition.cellRendererParams) == null ? void 0 : _b.formatConfig) ?? {},
52828
- symbol: void 0,
52829
- symbolAfterValue: void 0
52830
- });
52831
- return /* @__PURE__ */ React80__default.default.createElement(
52832
- coreReact.Input,
52833
- {
52834
- placeholder: ((_d = (_c = columnDefinition.cellEditorParams) == null ? void 0 : _c.inputProps) == null ? void 0 : _d.placeholder) || I18n.t("dataTable.cells.percentCell.placeholder"),
52835
- className: cx9("input-cell", "input-cell--right-aligned"),
52836
- defaultValue,
52837
- onBlur,
52838
- ref,
52839
- style: { textAlign: "right" },
52840
- ...((_e = columnDefinition.cellEditorParams) == null ? void 0 : _e.inputProps) || {}
52770
+ var Editor4 = React80__default.default.forwardRef(
52771
+ ({
52772
+ columnDefinition,
52773
+ eventKey,
52774
+ stopEditing,
52775
+ value,
52776
+ formatConfig,
52777
+ inputProps
52778
+ }, ref) => {
52779
+ var _a;
52780
+ const I18n = coreReact.useI18nContext();
52781
+ function onBlur(event) {
52782
+ stopEditing(ensureIsHTMLElement(event.relatedTarget));
52841
52783
  }
52842
- );
52843
- });
52784
+ if (isEmptyValue(value) && !columnDefinition.editable) {
52785
+ return null;
52786
+ }
52787
+ const defaultValue = eventKey ? value : labsFinancialsUtils.formatNumber(value, {
52788
+ ...formatConfig || ((_a = columnDefinition.cellRendererParams) == null ? void 0 : _a.formatConfig),
52789
+ //TODO remove usage of columnDefinition.cellRendererParams in next major version
52790
+ symbol: void 0,
52791
+ symbolAfterValue: void 0
52792
+ });
52793
+ return /* @__PURE__ */ React80__default.default.createElement(
52794
+ coreReact.Input,
52795
+ {
52796
+ placeholder: (inputProps == null ? void 0 : inputProps.placeholder) || I18n.t("dataTable.cells.percentCell.placeholder"),
52797
+ className: cx9("input-cell", "input-cell--right-aligned"),
52798
+ defaultValue,
52799
+ onBlur,
52800
+ ref,
52801
+ style: { textAlign: "right" },
52802
+ ...inputProps
52803
+ }
52804
+ );
52805
+ }
52806
+ );
52844
52807
  var PercentCellEditor = withDataTableEditor(Editor4, "input");
52845
52808
  var Renderer8 = ({
52846
- columnDefinition,
52847
52809
  rowHeight,
52848
52810
  isGroup,
52849
- value
52811
+ value,
52812
+ getPersonName,
52813
+ getCompanyName,
52814
+ getImageURL,
52815
+ getInitials,
52816
+ typographyProps
52850
52817
  }) => {
52851
- var _a, _b, _c, _d, _e, _f, _g, _h, _i;
52852
52818
  const [showAvatar, setShowAvatar] = React80__default.default.useState(false);
52853
52819
  React80__default.default.useEffect(() => {
52854
52820
  setShowAvatar(rowHeight === rowSize.lg || rowHeight === rowSize.md);
@@ -52856,13 +52822,10 @@ var Renderer8 = ({
52856
52822
  if (value === void 0 || value === null) {
52857
52823
  return null;
52858
52824
  }
52859
- const name = (_b = (_a = columnDefinition.cellRendererParams) == null ? void 0 : _a.getPersonName) == null ? void 0 : _b.call(_a, value);
52860
- const companyName = (_d = (_c = columnDefinition.cellRendererParams) == null ? void 0 : _c.getCompanyName) == null ? void 0 : _d.call(_c, value);
52861
- const imageURL = (_f = (_e = columnDefinition.cellRendererParams) == null ? void 0 : _e.getImageURL) == null ? void 0 : _f.call(_e, value);
52862
- const initials = (_h = (_g = columnDefinition.cellRendererParams) == null ? void 0 : _g.getInitials) == null ? void 0 : _h.call(_g, value);
52863
- const typographyProps = getCellValueTypographyProps(
52864
- (_i = columnDefinition.cellRendererParams) == null ? void 0 : _i.typographyProps
52865
- );
52825
+ const name = getPersonName == null ? void 0 : getPersonName(value);
52826
+ const companyName = getCompanyName == null ? void 0 : getCompanyName(value);
52827
+ const imageURL = getImageURL == null ? void 0 : getImageURL(value);
52828
+ const initials = getInitials == null ? void 0 : getInitials(value);
52866
52829
  if (isGroup) {
52867
52830
  return /* @__PURE__ */ React80__default.default.createElement(coreReact.Typography, { ...typographyProps, weight: "semibold" }, name);
52868
52831
  }
@@ -52886,35 +52849,26 @@ var Renderer9 = ({
52886
52849
  columnDefinition,
52887
52850
  isGroup,
52888
52851
  value,
52889
- rowPinned
52852
+ rowPinned,
52853
+ getColor,
52854
+ displayAsPill,
52855
+ typographyProps,
52856
+ placeholder
52890
52857
  }) => {
52891
- var _a, _b, _c, _d;
52892
- const { getColor, displayAsPill } = columnDefinition.cellRendererParams;
52858
+ var _a;
52893
52859
  const I18n = coreReact.useI18nContext();
52894
52860
  if (isEmptyValue(value)) {
52895
52861
  if (isGroup) {
52896
52862
  return null;
52897
52863
  }
52898
52864
  if (columnDefinition.editable) {
52899
- return /* @__PURE__ */ React80__default.default.createElement(
52900
- coreReact.Typography,
52901
- {
52902
- ...getCellValueTypographyProps(
52903
- (_a = columnDefinition.cellRendererParams) == null ? void 0 : _a.typographyProps
52904
- ),
52905
- className: cx10("input-placeholder")
52906
- },
52907
- ((_b = columnDefinition.cellEditorParams) == null ? void 0 : _b.placeholder) || I18n.t("dataTable.cells.pillCell.placeholder", {
52908
- label: columnDefinition.headerName
52909
- })
52910
- );
52865
+ return /* @__PURE__ */ React80__default.default.createElement(coreReact.Typography, { ...typographyProps, className: cx10("input-placeholder") }, placeholder || I18n.t("dataTable.cells.pillCell.placeholder", {
52866
+ label: columnDefinition.headerName
52867
+ }));
52911
52868
  }
52912
52869
  return null;
52913
52870
  }
52914
- const label = ((_c = columnDefinition.getStringFormattedValue) == null ? void 0 : _c.call(columnDefinition, value)) || value;
52915
- const typographyProps = getCellValueTypographyProps(
52916
- (_d = columnDefinition.cellRendererParams) == null ? void 0 : _d.typographyProps
52917
- );
52871
+ const label = ((_a = columnDefinition.getStringFormattedValue) == null ? void 0 : _a.call(columnDefinition, value)) || value;
52918
52872
  if ((isGroup || rowPinned && columnDefinition.aggFunc) && !displayAsPill) {
52919
52873
  return /* @__PURE__ */ React80__default.default.createElement(coreReact.Typography, { ...typographyProps, weight: "semibold" }, label);
52920
52874
  }
@@ -52922,8 +52876,18 @@ var Renderer9 = ({
52922
52876
  };
52923
52877
  var PillCellRenderer = withDataTableRenderer(Renderer9, "select");
52924
52878
  var Editor5 = React80__default.default.forwardRef(
52925
- ({ columnDefinition, data, setDataValue, stopEditing, value }, ref) => {
52926
- var _a, _b, _c;
52879
+ ({
52880
+ columnDefinition,
52881
+ data,
52882
+ setDataValue,
52883
+ stopEditing,
52884
+ value,
52885
+ selectOptions,
52886
+ getId: getIdParam,
52887
+ placeholder,
52888
+ getColor,
52889
+ clearable
52890
+ }, ref) => {
52927
52891
  const [options, setOptions] = React80__default.default.useState([]);
52928
52892
  const [loading, setLoading] = React80__default.default.useState(false);
52929
52893
  const I18n = coreReact.useI18nContext();
@@ -52931,8 +52895,6 @@ var Editor5 = React80__default.default.forwardRef(
52931
52895
  stopEditing();
52932
52896
  }
52933
52897
  async function beforeShow() {
52934
- var _a2;
52935
- const selectOptions = ((_a2 = columnDefinition.cellEditorParams) == null ? void 0 : _a2.selectOptions) || [];
52936
52898
  if (Array.isArray(selectOptions)) {
52937
52899
  setOptions(selectOptions);
52938
52900
  } else {
@@ -52949,28 +52911,27 @@ var Editor5 = React80__default.default.forwardRef(
52949
52911
  setDataValue(columnDefinition.field, null);
52950
52912
  }
52951
52913
  function getId3(item) {
52952
- var _a2, _b2;
52953
- return ((_b2 = (_a2 = columnDefinition.cellEditorParams) == null ? void 0 : _a2.getId) == null ? void 0 : _b2.call(_a2, item)) ?? item;
52914
+ return (getIdParam == null ? void 0 : getIdParam(item)) ?? item;
52954
52915
  }
52955
52916
  function getLabel3(item) {
52956
- var _a2;
52957
- const unformattedLabel = ((_a2 = columnDefinition.getStringFormattedValue) == null ? void 0 : _a2.call(columnDefinition, item)) || "";
52917
+ var _a;
52918
+ const unformattedLabel = ((_a = columnDefinition.getStringFormattedValue) == null ? void 0 : _a.call(columnDefinition, item)) || "";
52958
52919
  return unformattedLabel;
52959
52920
  }
52960
52921
  return /* @__PURE__ */ React80__default.default.createElement(
52961
52922
  coreReact.PillSelect,
52962
52923
  {
52963
- placeholder: ((_a = columnDefinition.cellEditorParams) == null ? void 0 : _a.placeholder) || I18n.t("dataTable.cells.pillCell.placeholder", {
52924
+ placeholder: placeholder || I18n.t("dataTable.cells.pillCell.placeholder", {
52964
52925
  label: columnDefinition.headerName
52965
52926
  }),
52966
52927
  afterHide,
52967
52928
  beforeShow,
52968
52929
  block: true,
52969
- getColor: ((_b = columnDefinition.cellEditorParams) == null ? void 0 : _b.getColor) ?? columnDefinition.cellRendererParams.getColor,
52930
+ getColor,
52970
52931
  getId: getId3,
52971
52932
  getLabel: getLabel3,
52972
52933
  loading,
52973
- onClear: ((_c = columnDefinition.cellEditorParams) == null ? void 0 : _c.clearable) ? onClear : void 0,
52934
+ onClear: clearable ? onClear : void 0,
52974
52935
  onSelect,
52975
52936
  options,
52976
52937
  ref,
@@ -53015,14 +52976,12 @@ function useSearch(data, onSearchFunction) {
53015
52976
  setSearchResultOptions
53016
52977
  };
53017
52978
  }
53018
- function useSelectOptions(columnDefinition, data) {
52979
+ function useSelectOptions(selectOptions, data) {
53019
52980
  const [options, setOptions] = React80__default.default.useState([]);
53020
52981
  const [loading, setLoading] = React80__default.default.useState(false);
53021
52982
  const [totalOptions, setTotalOptions] = React80__default.default.useState(0);
53022
52983
  const fetchOptions = async (offset4) => {
53023
- var _a;
53024
52984
  setLoading(true);
53025
- const selectOptions = ((_a = columnDefinition.cellEditorParams) == null ? void 0 : _a.selectOptions) || [];
53026
52985
  let newOptions = [];
53027
52986
  let total = 0;
53028
52987
  if (typeof selectOptions === "function") {
@@ -53054,33 +53013,23 @@ var cx11 = classnames__default.default.bind({ ...styles_default, ...truncation_d
53054
53013
  var Renderer10 = ({
53055
53014
  columnDefinition,
53056
53015
  isGroup,
53057
- value
53016
+ value,
53017
+ typographyProps,
53018
+ placeholder
53058
53019
  }) => {
53059
- var _a, _b, _c, _d;
53020
+ var _a;
53060
53021
  const I18n = coreReact.useI18nContext();
53061
53022
  if (isEmptyValue(value)) {
53062
53023
  if (isGroup) {
53063
53024
  return null;
53064
53025
  }
53065
53026
  if (columnDefinition.editable) {
53066
- return /* @__PURE__ */ React80__default.default.createElement(
53067
- coreReact.Typography,
53068
- {
53069
- ...getCellValueTypographyProps(
53070
- (_a = columnDefinition.cellRendererParams) == null ? void 0 : _a.typographyProps
53071
- ),
53072
- className: cx11("truncatingText")
53073
- },
53074
- ((_b = columnDefinition.cellEditorParams) == null ? void 0 : _b.placeholder) || I18n.t("dataTable.cells.selectCell.placeholder", {
53075
- label: columnDefinition.headerName
53076
- })
53077
- );
53027
+ return /* @__PURE__ */ React80__default.default.createElement(coreReact.Typography, { ...typographyProps, className: cx11("truncatingText") }, placeholder || I18n.t("dataTable.cells.selectCell.placeholder", {
53028
+ label: columnDefinition.headerName
53029
+ }));
53078
53030
  }
53079
53031
  }
53080
- const internalValue = (_c = columnDefinition.getStringFormattedValue) == null ? void 0 : _c.call(columnDefinition, value);
53081
- const typographyProps = getCellValueTypographyProps(
53082
- (_d = columnDefinition.cellRendererParams) == null ? void 0 : _d.typographyProps
53083
- );
53032
+ const internalValue = (_a = columnDefinition.getStringFormattedValue) == null ? void 0 : _a.call(columnDefinition, value);
53084
53033
  if (isGroup) {
53085
53034
  return /* @__PURE__ */ React80__default.default.createElement(
53086
53035
  coreReact.Typography,
@@ -53096,15 +53045,25 @@ var Renderer10 = ({
53096
53045
  };
53097
53046
  var SelectCellRenderer = withDataTableRenderer(Renderer10, "select");
53098
53047
  var Editor6 = React80__default.default.forwardRef(
53099
- ({ columnDefinition, data, setDataValue, stopEditing, value }, ref) => {
53100
- var _a, _b;
53048
+ ({
53049
+ columnDefinition,
53050
+ data,
53051
+ setDataValue,
53052
+ stopEditing,
53053
+ value,
53054
+ clearable,
53055
+ selectOptions,
53056
+ onSearch: onSearchParam,
53057
+ getId: getIdParam,
53058
+ getOptionLabel: getOptionLabelParam
53059
+ }, ref) => {
53101
53060
  const { options, loading, totalOptions, fetchOptions } = useSelectOptions(
53102
- columnDefinition,
53061
+ selectOptions,
53103
53062
  data
53104
53063
  );
53105
53064
  const { onSearch, searchResultOptions, isSearching } = useSearch(
53106
53065
  data,
53107
- (_a = columnDefinition.cellEditorParams) == null ? void 0 : _a.onSearch
53066
+ onSearchParam
53108
53067
  );
53109
53068
  function onSelect(selection) {
53110
53069
  if (selection.item !== value) {
@@ -53127,16 +53086,14 @@ var Editor6 = React80__default.default.forwardRef(
53127
53086
  }
53128
53087
  }, 500);
53129
53088
  function getId3(val) {
53130
- var _a2, _b2;
53131
- return ((_b2 = (_a2 = columnDefinition.cellEditorParams) == null ? void 0 : _a2.getId) == null ? void 0 : _b2.call(_a2, val)) ?? val;
53089
+ return (getIdParam == null ? void 0 : getIdParam(val)) ?? val;
53132
53090
  }
53133
53091
  function getLabel3(val) {
53134
- var _a2;
53135
- return (_a2 = columnDefinition.getStringFormattedValue) == null ? void 0 : _a2.call(columnDefinition, val);
53092
+ var _a;
53093
+ return (_a = columnDefinition.getStringFormattedValue) == null ? void 0 : _a.call(columnDefinition, val);
53136
53094
  }
53137
53095
  function getOptionLabel(option) {
53138
- var _a2, _b2;
53139
- return ((_b2 = (_a2 = columnDefinition.cellEditorParams) == null ? void 0 : _a2.getOptionLabel) == null ? void 0 : _b2.call(_a2, option)) || getLabel3(option);
53096
+ return (getOptionLabelParam == null ? void 0 : getOptionLabelParam(option)) || getLabel3(option);
53140
53097
  }
53141
53098
  return /* @__PURE__ */ React80__default.default.createElement(
53142
53099
  coreReact.Select,
@@ -53148,7 +53105,7 @@ var Editor6 = React80__default.default.forwardRef(
53148
53105
  loading: isSearching || loading,
53149
53106
  onSearch,
53150
53107
  onSelect,
53151
- onClear: ((_b = columnDefinition.cellEditorParams) == null ? void 0 : _b.clearable) ? onClear : void 0,
53108
+ onClear: clearable ? onClear : void 0,
53152
53109
  onScrollBottom,
53153
53110
  ref,
53154
53111
  className: cx11("input-cell", "truncatingText")
@@ -53172,28 +53129,21 @@ var Renderer11 = ({
53172
53129
  rowHeight,
53173
53130
  node,
53174
53131
  isGroup,
53175
- value
53132
+ value,
53133
+ typographyProps,
53134
+ inputProps
53176
53135
  }) => {
53177
- var _a, _b, _c, _d, _e, _f, _g;
53136
+ var _a;
53178
53137
  const I18n = coreReact.useI18nContext();
53179
53138
  if (isEmptyValue(value) && columnDefinition.editable) {
53180
53139
  if (isGroup) {
53181
53140
  return null;
53182
53141
  }
53183
- return /* @__PURE__ */ React80__default.default.createElement(
53184
- coreReact.Typography,
53185
- {
53186
- ...getCellValueTypographyProps(
53187
- (_a = columnDefinition.cellRendererParams) == null ? void 0 : _a.typographyProps
53188
- ),
53189
- className: cx12("input-placeholder")
53190
- },
53191
- ((_c = (_b = columnDefinition.cellEditorParams) == null ? void 0 : _b.inputProps) == null ? void 0 : _c.placeholder) || I18n.t("dataTable.cells.textCell.placeholder")
53192
- );
53142
+ return /* @__PURE__ */ React80__default.default.createElement(coreReact.Typography, { ...typographyProps, className: cx12("input-placeholder") }, (inputProps == null ? void 0 : inputProps.placeholder) || I18n.t("dataTable.cells.textCell.placeholder"));
53193
53143
  }
53194
- const internalValue = ((_d = columnDefinition.getStringFormattedValue) == null ? void 0 : _d.call(columnDefinition, value)) ?? value;
53144
+ const internalValue = ((_a = columnDefinition.getStringFormattedValue) == null ? void 0 : _a.call(columnDefinition, value)) ?? value;
53195
53145
  const className = cx12(
53196
- (_f = (_e = columnDefinition.cellRendererParams) == null ? void 0 : _e.typographyProps) == null ? void 0 : _f.className,
53146
+ typographyProps == null ? void 0 : typographyProps.className,
53197
53147
  "textCell",
53198
53148
  "truncatingText",
53199
53149
  {
@@ -53201,9 +53151,6 @@ var Renderer11 = ({
53201
53151
  "truncatingText--lg": rowHeight === rowSize.lg
53202
53152
  }
53203
53153
  );
53204
- const typographyProps = getCellValueTypographyProps(
53205
- (_g = columnDefinition.cellRendererParams) == null ? void 0 : _g.typographyProps
53206
- );
53207
53154
  if (isGroup) {
53208
53155
  const fontWeight = (node == null ? void 0 : node.footer) ? "regular" : "semibold";
53209
53156
  return /* @__PURE__ */ React80__default.default.createElement(
@@ -53221,8 +53168,8 @@ var Renderer11 = ({
53221
53168
  };
53222
53169
  var TextCellRenderer = withDataTableRenderer(Renderer11, "input");
53223
53170
  var Editor7 = React80__default.default.forwardRef(
53224
- ({ columnDefinition, eventKey, stopEditing, value }, ref) => {
53225
- var _a, _b, _c, _d;
53171
+ ({ columnDefinition, eventKey, stopEditing, value, inputProps }, ref) => {
53172
+ var _a;
53226
53173
  function onBlur(event) {
53227
53174
  stopEditing(ensureIsHTMLElement(event.relatedTarget));
53228
53175
  }
@@ -53231,12 +53178,12 @@ var Editor7 = React80__default.default.forwardRef(
53231
53178
  return /* @__PURE__ */ React80__default.default.createElement(
53232
53179
  coreReact.Input,
53233
53180
  {
53234
- placeholder: ((_c = (_b = columnDefinition.cellEditorParams) == null ? void 0 : _b.inputProps) == null ? void 0 : _c.placeholder) || I18n.t("dataTable.cells.textCell.placeholder"),
53235
53181
  className: cx12("input-cell"),
53236
53182
  defaultValue: internalValue,
53237
53183
  onBlur,
53238
53184
  ref,
53239
- ...((_d = columnDefinition.cellEditorParams) == null ? void 0 : _d.inputProps) || {}
53185
+ ...inputProps,
53186
+ placeholder: (inputProps == null ? void 0 : inputProps.placeholder) || I18n.t("dataTable.cells.textCell.placeholder")
53240
53187
  }
53241
53188
  );
53242
53189
  }
@@ -53257,29 +53204,19 @@ var Renderer12 = ({
53257
53204
  columnDefinition,
53258
53205
  node,
53259
53206
  isGroup,
53260
- value
53207
+ value,
53208
+ typographyProps,
53209
+ textAreaProps
53261
53210
  }) => {
53262
- var _a, _b, _c, _d, _e;
53211
+ var _a;
53263
53212
  const I18n = coreReact.useI18nContext();
53264
53213
  if (isEmptyValue(value) && columnDefinition.editable) {
53265
53214
  if (isGroup) {
53266
53215
  return null;
53267
53216
  }
53268
- return /* @__PURE__ */ React80__default.default.createElement(
53269
- coreReact.Typography,
53270
- {
53271
- ...getCellValueTypographyProps(
53272
- (_a = columnDefinition.cellRendererParams) == null ? void 0 : _a.typographyProps
53273
- ),
53274
- className: cx13("input-placeholder")
53275
- },
53276
- ((_c = (_b = columnDefinition.cellEditorParams) == null ? void 0 : _b.textAreaProps) == null ? void 0 : _c.placeholder) || I18n.t("dataTable.cells.textCell.placeholder")
53277
- );
53217
+ return /* @__PURE__ */ React80__default.default.createElement(coreReact.Typography, { ...typographyProps, className: cx13("input-placeholder") }, (textAreaProps == null ? void 0 : textAreaProps.placeholder) || I18n.t("dataTable.cells.textCell.placeholder"));
53278
53218
  }
53279
- const internalValue = ((_d = columnDefinition.getStringFormattedValue) == null ? void 0 : _d.call(columnDefinition, value)) ?? value;
53280
- const typographyProps = getCellValueTypographyProps(
53281
- (_e = columnDefinition.cellRendererParams) == null ? void 0 : _e.typographyProps
53282
- );
53219
+ const internalValue = ((_a = columnDefinition.getStringFormattedValue) == null ? void 0 : _a.call(columnDefinition, value)) ?? value;
53283
53220
  if (isGroup) {
53284
53221
  const fontWeight = (node == null ? void 0 : node.footer) ? "regular" : "semibold";
53285
53222
  return /* @__PURE__ */ React80__default.default.createElement(
@@ -53295,8 +53232,8 @@ var Renderer12 = ({
53295
53232
  return /* @__PURE__ */ React80__default.default.createElement(coreReact.Typography, { ...typographyProps, className: cx13("textarea-cell", "text") }, internalValue);
53296
53233
  };
53297
53234
  var Editor8 = React80__default.default.forwardRef(
53298
- ({ columnDefinition, stopEditing, value }, ref) => {
53299
- var _a, _b, _c, _d;
53235
+ ({ columnDefinition, stopEditing, value, textAreaProps }, ref) => {
53236
+ var _a;
53300
53237
  function onBlur(event) {
53301
53238
  stopEditing(ensureIsHTMLElement(event.relatedTarget));
53302
53239
  }
@@ -53305,14 +53242,14 @@ var Editor8 = React80__default.default.forwardRef(
53305
53242
  return /* @__PURE__ */ React80__default.default.createElement(
53306
53243
  coreReact.TextArea,
53307
53244
  {
53308
- placeholder: ((_c = (_b = columnDefinition.cellEditorParams) == null ? void 0 : _b.textAreaProps) == null ? void 0 : _c.placeholder) || I18n.t("dataTable.cells.textCell.placeholder"),
53309
53245
  className: cx13("textarea-cell", "editor-text"),
53310
53246
  defaultValue: internalValue,
53311
53247
  onBlur,
53312
53248
  ref,
53313
53249
  resize: "none",
53314
53250
  style: { lineHeight: "16px" },
53315
- ...((_d = columnDefinition.cellEditorParams) == null ? void 0 : _d.textAreaProps) || {}
53251
+ ...textAreaProps,
53252
+ placeholder: (textAreaProps == null ? void 0 : textAreaProps.placeholder) || I18n.t("dataTable.cells.textCell.placeholder")
53316
53253
  }
53317
53254
  );
53318
53255
  }
@@ -54013,7 +53950,7 @@ var NumberFilterRenderer = React80__default.default.memo(
54013
53950
  return {
54014
53951
  type: prev == null ? void 0 : prev.type,
54015
53952
  filter: prev == null ? void 0 : prev.filter,
54016
- filterTo: inputValue
53953
+ filterTo: inputValue !== "" ? Number(inputValue) : void 0
54017
53954
  };
54018
53955
  });
54019
53956
  if (inputValue === void 0 || inputValue === "") {
@@ -54023,7 +53960,7 @@ var NumberFilterRenderer = React80__default.default.memo(
54023
53960
  return {
54024
53961
  type: prev == null ? void 0 : prev.type,
54025
53962
  filter: prev == null ? void 0 : prev.filter,
54026
- filterTo: inputValue
53963
+ filterTo: Number(inputValue)
54027
53964
  };
54028
53965
  });
54029
53966
  }, []);
@@ -54291,7 +54228,7 @@ var ServerSideFilter = ({
54291
54228
  "data-qa": `data-table-filter-heading-${fieldName}`,
54292
54229
  id: `data-table-filter-heading-${fieldName}`
54293
54230
  },
54294
- filterHeading
54231
+ typeof filterHeading === "function" ? filterHeading({}) : filterHeading
54295
54232
  ) : null,
54296
54233
  /* @__PURE__ */ React80__default.default.createElement(
54297
54234
  Component4,
@@ -55710,11 +55647,8 @@ function getRowActions(actions, rowProps) {
55710
55647
  return actions;
55711
55648
  }
55712
55649
  var InternalRowActionsCellRenderer = (props) => {
55713
- const actions = getRowActions(
55714
- props.columnDefinition.cellRendererParams.actions,
55715
- props
55716
- );
55717
- if (props.rowPinned || props.columnDefinition.cellRendererParams.hideActionsOnGroupedRow && props.isGroup || actions.length === 0) {
55650
+ const actions = getRowActions(props.actions, props);
55651
+ if (props.rowPinned || props.hideActionsOnGroupedRow && props.isGroup || actions.length === 0) {
55718
55652
  return null;
55719
55653
  }
55720
55654
  return /* @__PURE__ */ React80__default.default.createElement(
@@ -55986,7 +55920,8 @@ var DataTableCellRenderer = ({
55986
55920
  node,
55987
55921
  editorType,
55988
55922
  value,
55989
- setValue
55923
+ setValue,
55924
+ ...props
55990
55925
  }) => {
55991
55926
  var _a, _b, _c, _d, _e;
55992
55927
  const { columnApi } = useInternalTableContext();
@@ -56017,10 +55952,11 @@ var DataTableCellRenderer = ({
56017
55952
  parentData: context == null ? void 0 : context.parentData,
56018
55953
  parentId: context == null ? void 0 : context.parentId,
56019
55954
  rowHeight,
56020
- rowIndex: node.rowIndex,
56021
55955
  rowPinned: node.rowPinned,
56022
55956
  tableApi: tableRef == null ? void 0 : tableRef.current,
56023
- value
55957
+ value,
55958
+ ...props,
55959
+ typographyProps: getCellValueTypographyProps(props.typographyProps)
56024
55960
  };
56025
55961
  const hasValue = value !== void 0 && value !== null && value !== "";
56026
55962
  const isSelectCellComponent = ((_c = (_b = columnDefinition.cellRendererSelector) == null ? void 0 : _b.call(columnDefinition, {
@@ -56100,7 +56036,8 @@ var DataTableCellEditor = React80__default.default.forwardRef(
56100
56036
  node,
56101
56037
  parseValue,
56102
56038
  stopEditing,
56103
- value
56039
+ value,
56040
+ ...props
56104
56041
  }, ref) => {
56105
56042
  var _a;
56106
56043
  const startingValue = getStartingValue(eventKey, editorType, value);
@@ -56211,7 +56148,7 @@ var DataTableCellEditor = React80__default.default.forwardRef(
56211
56148
  setCurrentValue(newValue);
56212
56149
  },
56213
56150
  stopEditing: (relatedTarget) => {
56214
- const isRelatedTargetOutsideTable = (relatedTarget == null ? void 0 : relatedTarget.closest('[data-qa="data-table-table')) === null;
56151
+ const isRelatedTargetOutsideTable = (relatedTarget == null ? void 0 : relatedTarget.closest('[data-qa="data-table-table"]')) === null;
56215
56152
  stopEditing(isRelatedTargetOutsideTable);
56216
56153
  if (isRelatedTargetOutsideTable) {
56217
56154
  api.clearFocusedCell();
@@ -56220,7 +56157,8 @@ var DataTableCellEditor = React80__default.default.forwardRef(
56220
56157
  },
56221
56158
  tableApi: tableRef == null ? void 0 : tableRef.current,
56222
56159
  value: currentValue,
56223
- ref: handleRefs(editorType)
56160
+ ref: handleRefs(editorType),
56161
+ ...props
56224
56162
  }
56225
56163
  )
56226
56164
  );
@@ -57310,31 +57248,34 @@ function getLabel2(func, option) {
57310
57248
  function getId2(func, option) {
57311
57249
  return (func == null ? void 0 : func(option)) ?? (option == null ? void 0 : option.id) ?? option;
57312
57250
  }
57313
- var InternalMultiSelectCellRenderer = ({ columnDefinition, rowHeight, value }) => {
57314
- var _a, _b, _c, _d;
57251
+ var InternalMultiSelectCellRenderer = ({
57252
+ columnDefinition,
57253
+ rowHeight,
57254
+ value,
57255
+ getValue: getValueParam,
57256
+ enablePlaceholder: enablePlaceholderParam,
57257
+ placeholder: placeholderParam,
57258
+ typographyProps,
57259
+ getLabel: getLabelParam,
57260
+ getId: getIdParam
57261
+ }) => {
57315
57262
  const I18n = coreReact.useI18nContext();
57316
57263
  const ref = React80__default.default.useRef();
57317
57264
  React80__default.default.useLayoutEffect(() => {
57318
- var _a2, _b2;
57319
- (_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);
57265
+ var _a, _b;
57266
+ (_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);
57320
57267
  });
57321
57268
  if (value === void 0 || value === null) {
57322
57269
  return null;
57323
57270
  }
57324
- const options = getValue(
57325
- (_a = columnDefinition.cellRendererParams) == null ? void 0 : _a.getValue,
57326
- value,
57327
- emptyArray
57328
- );
57329
- const enablePlaceholder = (((_b = columnDefinition.cellRendererParams) == null ? void 0 : _b.enablePlaceholder) && columnDefinition.editable) ?? false;
57330
- const placeholder = ((_c = columnDefinition.cellRendererParams) == null ? void 0 : _c.placeholder) ?? I18n.t("dataTable.cells.multiSelectCell.placeholder");
57271
+ const options = getValue(getValueParam, value, emptyArray);
57272
+ const enablePlaceholder = (enablePlaceholderParam && columnDefinition.editable) ?? false;
57273
+ const placeholder = placeholderParam ?? I18n.t("dataTable.cells.multiSelectCell.placeholder");
57331
57274
  return /* @__PURE__ */ React80__default.default.createElement(
57332
57275
  coreReact.Typography,
57333
57276
  {
57334
57277
  as: "ol",
57335
- ...getCellValueTypographyProps(
57336
- (_d = columnDefinition.cellRendererParams) == null ? void 0 : _d.typographyProps
57337
- ),
57278
+ ...typographyProps,
57338
57279
  className: cx16("inlineListItems", "truncatingText", {
57339
57280
  "truncatingText--md": rowHeight === rowSize.md,
57340
57281
  "truncatingText--lg": rowHeight === rowSize.lg
@@ -57342,15 +57283,8 @@ var InternalMultiSelectCellRenderer = ({ columnDefinition, rowHeight, value }) =
57342
57283
  ref
57343
57284
  },
57344
57285
  options.length ? options.map((option, idx, arr) => {
57345
- var _a2, _b2;
57346
- const label = getLabel2(
57347
- (_a2 = columnDefinition.cellRendererParams) == null ? void 0 : _a2.getLabel,
57348
- option
57349
- );
57350
- const optionId = getId2(
57351
- (_b2 = columnDefinition.cellRendererParams) == null ? void 0 : _b2.getId,
57352
- option
57353
- );
57286
+ const label = getLabel2(getLabelParam, option);
57287
+ const optionId = getId2(getIdParam, option);
57354
57288
  const key = `${label}_${optionId}_idx_${idx}`;
57355
57289
  return /* @__PURE__ */ React80__default.default.createElement(React80__default.default.Fragment, { key }, /* @__PURE__ */ React80__default.default.createElement("li", null, label, idx !== arr.length - 1 ? commaToken : null));
57356
57290
  }) : enablePlaceholder ? /* @__PURE__ */ React80__default.default.createElement("li", { style: { color: coreReact.colors.gray45 } }, placeholder) : null
@@ -57360,66 +57294,80 @@ var MultiSelectCellRenderer = withDataTableRenderer(
57360
57294
  InternalMultiSelectCellRenderer,
57361
57295
  "select"
57362
57296
  );
57363
- var MultiSelectEditor = React80__default.default.forwardRef(({ columnDefinition, value = [], setDataValue, data, stopEditing }, ref) => {
57364
- var _a;
57365
- const [selectedValue, setSelectedValue] = React80__default.default.useState(value);
57366
- const { options, loading, totalOptions, fetchOptions } = useSelectOptions(
57297
+ var MultiSelectEditor = React80__default.default.forwardRef(
57298
+ ({
57367
57299
  columnDefinition,
57368
- data
57369
- );
57370
- const { onSearch: editorOnSearch } = columnDefinition.cellEditorParams || {};
57371
- const shouldSearch = options.length < totalOptions && !!editorOnSearch;
57372
- const { onSearch, searchResultOptions, setSearchResultOptions, isSearching } = useSearch(data, shouldSearch ? editorOnSearch : void 0);
57373
- async function beforeShow() {
57374
- if (options.length === 0) {
57375
- await fetchOptions();
57300
+ value = [],
57301
+ setDataValue,
57302
+ data,
57303
+ stopEditing,
57304
+ selectOptions,
57305
+ placeholder,
57306
+ onSearch: editorOnSearch,
57307
+ getLabel: getLabelParam,
57308
+ getId: getIdParam
57309
+ }, ref) => {
57310
+ const [selectedValue, setSelectedValue] = React80__default.default.useState(value);
57311
+ const { options, loading, totalOptions, fetchOptions } = useSelectOptions(
57312
+ selectOptions,
57313
+ data
57314
+ );
57315
+ const shouldSearch = options.length < totalOptions && !!editorOnSearch;
57316
+ const {
57317
+ onSearch,
57318
+ searchResultOptions,
57319
+ setSearchResultOptions,
57320
+ isSearching
57321
+ } = useSearch(data, shouldSearch ? editorOnSearch : void 0);
57322
+ async function beforeShow() {
57323
+ if (options.length === 0) {
57324
+ await fetchOptions();
57325
+ }
57326
+ return true;
57376
57327
  }
57377
- return true;
57378
- }
57379
- const onScrollBottom = debounce5__default.default(async () => {
57380
- if (!searchResultOptions && options.length < totalOptions) {
57381
- const nextOffset = options.length;
57382
- await fetchOptions(nextOffset);
57328
+ const onScrollBottom = debounce5__default.default(async () => {
57329
+ if (!searchResultOptions && options.length < totalOptions) {
57330
+ const nextOffset = options.length;
57331
+ await fetchOptions(nextOffset);
57332
+ }
57333
+ }, 500);
57334
+ function onChange(value2) {
57335
+ setSelectedValue(value2);
57336
+ setDataValue(columnDefinition.field, value2);
57337
+ if (searchResultOptions) {
57338
+ setSearchResultOptions(void 0);
57339
+ }
57383
57340
  }
57384
- }, 500);
57385
- function onChange(value2) {
57386
- setSelectedValue(value2);
57387
- setDataValue(columnDefinition.field, value2);
57388
- if (searchResultOptions) {
57389
- setSearchResultOptions(void 0);
57341
+ function getLabel3(func, option) {
57342
+ return (func == null ? void 0 : func(option)) ?? (option == null ? void 0 : option.label) ?? (option == null ? void 0 : option.name) ?? option;
57390
57343
  }
57391
- }
57392
- function getLabel3(func, option) {
57393
- return (func == null ? void 0 : func(option)) ?? (option == null ? void 0 : option.label) ?? (option == null ? void 0 : option.name) ?? option;
57394
- }
57395
- function getId3(func, option) {
57396
- return (func == null ? void 0 : func(option)) ?? (option == null ? void 0 : option.id) ?? option;
57397
- }
57398
- return /* @__PURE__ */ React80__default.default.createElement(
57399
- coreReact.MultiSelect,
57400
- {
57401
- beforeShow,
57402
- afterHide: () => stopEditing(),
57403
- block: true,
57404
- loading: isSearching || loading,
57405
- getId: (option) => {
57406
- var _a2;
57407
- return getId3((_a2 = columnDefinition.cellEditorParams) == null ? void 0 : _a2.getId, option);
57408
- },
57409
- getLabel: (option) => {
57410
- var _a2;
57411
- return getLabel3((_a2 = columnDefinition.cellEditorParams) == null ? void 0 : _a2.getLabel, option);
57412
- },
57413
- placeholder: (_a = columnDefinition.cellEditorParams) == null ? void 0 : _a.placeholder,
57414
- onScrollBottom,
57415
- onSearch,
57416
- onChange,
57417
- options: searchResultOptions || options,
57418
- value: selectedValue,
57419
- ref
57344
+ function getId3(func, option) {
57345
+ return (func == null ? void 0 : func(option)) ?? (option == null ? void 0 : option.id) ?? option;
57420
57346
  }
57421
- );
57422
- });
57347
+ return /* @__PURE__ */ React80__default.default.createElement(
57348
+ coreReact.MultiSelect,
57349
+ {
57350
+ beforeShow,
57351
+ afterHide: () => stopEditing(),
57352
+ block: true,
57353
+ loading: isSearching || loading,
57354
+ getId: (option) => {
57355
+ return getId3(getIdParam, option);
57356
+ },
57357
+ getLabel: (option) => {
57358
+ return getLabel3(getLabelParam, option);
57359
+ },
57360
+ placeholder,
57361
+ onScrollBottom,
57362
+ onSearch,
57363
+ onChange,
57364
+ options: searchResultOptions || options,
57365
+ value: selectedValue,
57366
+ ref
57367
+ }
57368
+ );
57369
+ }
57370
+ );
57423
57371
  var MultiSelectCellEditor = withDataTableEditor(
57424
57372
  MultiSelectEditor,
57425
57373
  "select"
@@ -104625,11 +104573,6 @@ var de_DE_default = {
104625
104573
  error: "Entschuldigung, die Elemente konnten nicht aktualisiert werden. Versuchen Sie es noch einmal.",
104626
104574
  placeholderForField: "%{fieldName} eingeben",
104627
104575
  selection: "%{count} %{number} ausgew\xE4hlt",
104628
- selection_count: {
104629
- zero: "%{count} Elemente ausgew\xE4hlt",
104630
- one: "%{count} Element ausgew\xE4hlt",
104631
- other: "%{count} Elemente ausgew\xE4hlt"
104632
- },
104633
104576
  success: "Die Elemente wurden erfolgreich aktualisiert.",
104634
104577
  one: "Element",
104635
104578
  many: "Elemente"
@@ -104796,11 +104739,6 @@ var en_AU_default = {
104796
104739
  error: "Sorry, the items couldn't be updated. Try again.",
104797
104740
  placeholderForField: "Enter %{fieldName}",
104798
104741
  selection: "%{count} %{number} selected",
104799
- selection_count: {
104800
- zero: "%{count} items selected",
104801
- one: "%{count} item selected",
104802
- other: "%{count} items selected"
104803
- },
104804
104742
  success: "The items were successfully updated.",
104805
104743
  one: "item",
104806
104744
  many: "items"
@@ -104864,7 +104802,7 @@ var en_AU_default = {
104864
104802
  autoSizeAllColumns: "Autosize all columns",
104865
104803
  hideColumn: "Hide column",
104866
104804
  resetColumns: "Reset columns",
104867
- unGroupBy: "Un-Group by {{label}}",
104805
+ unGroupBy: "Un-group by {{label}}",
104868
104806
  groupBy: "Group by {{label}}"
104869
104807
  },
104870
104808
  grandTotals: "Grand totals",
@@ -104967,11 +104905,6 @@ var en_CA_default = {
104967
104905
  error: "Sorry, the items couldn't be updated. Try again.",
104968
104906
  placeholderForField: "Enter %{fieldName}",
104969
104907
  selection: "%{count} %{number} selected",
104970
- selection_count: {
104971
- zero: "%{count} items selected",
104972
- one: "%{count} item selected",
104973
- other: "%{count} items selected"
104974
- },
104975
104908
  success: "The items were successfully updated.",
104976
104909
  one: "item",
104977
104910
  many: "items"
@@ -105035,7 +104968,7 @@ var en_CA_default = {
105035
104968
  autoSizeAllColumns: "Autosize all columns",
105036
104969
  hideColumn: "Hide column",
105037
104970
  resetColumns: "Reset columns",
105038
- unGroupBy: "Un-Group by {{label}}",
104971
+ unGroupBy: "Un-group by {{label}}",
105039
104972
  groupBy: "Group by {{label}}"
105040
104973
  },
105041
104974
  grandTotals: "Grand totals",
@@ -105138,11 +105071,6 @@ var en_GB_default = {
105138
105071
  error: "Sorry, the items couldn't be updated. Try again.",
105139
105072
  placeholderForField: "Enter %{fieldName}",
105140
105073
  selection: "%{count} %{number} selected",
105141
- selection_count: {
105142
- zero: "%{count} items selected",
105143
- one: "%{count} item selected",
105144
- other: "%{count} items selected"
105145
- },
105146
105074
  success: "The items were successfully updated.",
105147
105075
  one: "item",
105148
105076
  many: "items"
@@ -105480,11 +105408,6 @@ var es_ES_default = {
105480
105408
  error: "No se han podido actualizar los elementos. Int\xE9ntelo de nuevo.",
105481
105409
  placeholderForField: "Introducir %{fieldName}",
105482
105410
  selection: "%{count} %{number} seleccionados",
105483
- selection_count: {
105484
- zero: "%{count} elementos seleccionados",
105485
- one: "%{count} elemento seleccionado",
105486
- other: "%{count} elementos seleccionados"
105487
- },
105488
105411
  success: "Los elementos se han actualizado correctamente.",
105489
105412
  one: "elemento",
105490
105413
  many: "elementos"
@@ -105635,7 +105558,7 @@ var es_default = {
105635
105558
  title: "No hay \xEDtems para mostrar en este momento",
105636
105559
  itemsTitle: "No hay %{itemsLabel} para mostrar en este momento",
105637
105560
  tooltip: "El bot\xF3n %{featureName} se habilitar\xE1 una vez que agregue informaci\xF3n a la %{tableName}.",
105638
- searchTooltip: "La b\xFAsqueda se habilitar\xE1 una vez que agregue informaci\xF3n a la %{tableName}.",
105561
+ searchTooltip: "La b\xFAsqueda se habilitar\xE1 una vez que agregue informaci\xF3n a la %{tableName}",
105639
105562
  featureFilter: "Filtro",
105640
105563
  featureQuickFilter: "Filtro r\xE1pido",
105641
105564
  featureGroupBy: "Agrupar por",
@@ -105648,14 +105571,9 @@ var es_default = {
105648
105571
  bulkEdit: "Edici\xF3n masiva",
105649
105572
  cancel: "Cancelar",
105650
105573
  editValues: "Editar valores",
105651
- error: "Lo sentimos, no se pudieron actualizar los \xEDtems. Vuelva a intentarlo.",
105574
+ error: "Lo sentimos, no se pudieron actualizar los \xEDtems. Int\xE9ntelo de nuevo.",
105652
105575
  placeholderForField: "Ingrese %{fieldName}",
105653
105576
  selection: "%{count} %{number} seleccionado",
105654
- selection_count: {
105655
- zero: "%{count} \xEDtems seleccionados",
105656
- one: "%{count} \xEDtem seleccionado",
105657
- other: "%{count} \xEDtems seleccionados"
105658
- },
105659
105577
  success: "Los \xEDtems se actualizaron correctamente.",
105660
105578
  one: "\xEDtem",
105661
105579
  many: "\xEDtems"
@@ -105819,14 +105737,9 @@ var fr_CA_default = {
105819
105737
  bulkEdit: "Modifier en bloc",
105820
105738
  cancel: "Annuler",
105821
105739
  editValues: "Modifier les valeurs",
105822
- error: "D\xE9sol\xE9, les items n'ont pas pu \xEAtre mis \xE0 jour. R\xE9essayer.",
105740
+ error: "D\xE9sol\xE9, les items n'ont pas pu \xEAtre mis \xE0 jour. Veuillez r\xE9essayer.",
105823
105741
  placeholderForField: "Entrez %{fieldName}",
105824
105742
  selection: "%{count} %{number} s\xE9lectionn\xE9",
105825
- selection_count: {
105826
- zero: "%{count}\xA0items s\xE9lectionn\xE9s",
105827
- one: "%{count}\xA0item s\xE9lectionn\xE9",
105828
- other: "%{count}\xA0items s\xE9lectionn\xE9s"
105829
- },
105830
105743
  success: "Les items ont \xE9t\xE9 mis \xE0 jour avec succ\xE8s.",
105831
105744
  one: "Item",
105832
105745
  many: "items"
@@ -105949,7 +105862,7 @@ var fr_CA_default = {
105949
105862
  },
105950
105863
  filterRenders: {
105951
105864
  dateFilter: {
105952
- single: "Seul",
105865
+ single: "Unique",
105953
105866
  range: "Intervalle"
105954
105867
  }
105955
105868
  },
@@ -105990,14 +105903,9 @@ var fr_FR_default = {
105990
105903
  bulkEdit: "Modifier en masse",
105991
105904
  cancel: "Annuler",
105992
105905
  editValues: "Modifier les valeurs",
105993
- error: "D\xE9sol\xE9, les \xE9l\xE9ments n'ont pas pu \xEAtre mis \xE0 jour. R\xE9essayez.",
105906
+ error: "D\xE9sol\xE9, les \xE9l\xE9ments n'ont pas pu \xEAtre mis \xE0 jour. Veuillez r\xE9essayer.",
105994
105907
  placeholderForField: "Saisissez %{fieldName}",
105995
105908
  selection: "%{count} %{number} s\xE9lectionn\xE9",
105996
- selection_count: {
105997
- zero: "%{count}\xA0\xE9l\xE9ments s\xE9lectionn\xE9s",
105998
- one: "%{count}\xA0\xE9l\xE9ment s\xE9lectionn\xE9",
105999
- other: "%{count}\xA0\xE9l\xE9ments s\xE9lectionn\xE9s"
106000
- },
106001
105909
  success: "Les \xE9l\xE9ments ont bien \xE9t\xE9 mis \xE0 jour.",
106002
105910
  one: "\xE9l\xE9ment",
106003
105911
  many: "\xE9l\xE9ments"
@@ -106164,11 +106072,6 @@ var is_IS_default = {
106164
106072
  error: "\xDEv\xED mi\xF0ur var ekki h\xE6gt a\xF0 uppf\xE6ra atri\xF0in. Reyndu aftur.",
106165
106073
  placeholderForField: "Sl\xE1\xF0u inn %{fieldName}",
106166
106074
  selection: "%{count} %{number} valinn",
106167
- selection_count: {
106168
- zero: "%{count} atri\xF0i valin",
106169
- one: "%{count} atri\xF0i vali\xF0",
106170
- other: "%{count} atri\xF0i valin"
106171
- },
106172
106075
  success: "Atri\xF0in voru uppf\xE6r\xF0.",
106173
106076
  one: "Atri\xF0i",
106174
106077
  many: "Hlutir"
@@ -106335,11 +106238,6 @@ var ja_JP_default = {
106335
106238
  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",
106336
106239
  placeholderForField: "%{fieldName}\u3092\u5165\u529B",
106337
106240
  selection: "%{count}%{number}\u3092\u9078\u629E\u3057\u307E\u3057\u305F",
106338
- selection_count: {
106339
- zero: "%{count}\u500B\u306E\u9805\u76EE\u3092\u9078\u629E\u3057\u307E\u3057\u305F",
106340
- one: "%{count}\u500B\u306E\u9805\u76EE\u3092\u9078\u629E\u3057\u307E\u3057\u305F",
106341
- other: "%{count}\u500B\u306E\u9805\u76EE\u3092\u9078\u629E\u3057\u307E\u3057\u305F"
106342
- },
106343
106241
  success: "\u9805\u76EE\u3092\u6B63\u5E38\u306B\u66F4\u65B0\u3057\u307E\u3057\u305F\u3002",
106344
106242
  one: "\u9805\u76EE",
106345
106243
  many: "\u9805\u76EE"
@@ -106506,11 +106404,6 @@ var pl_PL_default = {
106506
106404
  error: "Przepraszamy, nie mo\u017Cna zaktualizowa\u0107 pozycji. Spr\xF3buj ponownie.",
106507
106405
  placeholderForField: "Wprowad\u017A %{fieldName}",
106508
106406
  selection: "Wybrano %{count} %{number}",
106509
- selection_count: {
106510
- zero: "Wybrano pozycje: %{count}",
106511
- one: "Wybrano pozycji: %{count}",
106512
- other: "Wybrano pozycje: %{count}"
106513
- },
106514
106407
  success: "Pozycje zosta\u0142y pomy\u015Blnie zaktualizowane.",
106515
106408
  one: "pozycja",
106516
106409
  many: "pozycje"
@@ -106845,14 +106738,9 @@ var pt_BR_default = {
106845
106738
  bulkEdit: "Edi\xE7\xE3o em Massa",
106846
106739
  cancel: "Cancelar",
106847
106740
  editValues: "Editar Valores",
106848
- error: "Lamentamos, mas n\xE3o foi poss\xEDvel atualizar os itens. Tente novamente.",
106741
+ error: "Sentimos muito, mas n\xE3o foi poss\xEDvel atualizar os itens. Tente novamente.",
106849
106742
  placeholderForField: "Digite %{fieldName}",
106850
106743
  selection: "%{count} %{number} selecionado",
106851
- selection_count: {
106852
- zero: "%{count} itens selecionados",
106853
- one: "%{count} item selecionado",
106854
- other: "%{count} itens selecionados"
106855
- },
106856
106744
  success: "Os itens foram atualizados com sucesso.",
106857
106745
  one: "item",
106858
106746
  many: "itens"
@@ -107016,14 +106904,9 @@ var th_TH_default = {
107016
106904
  bulkEdit: "\u0E01\u0E32\u0E23\u0E41\u0E01\u0E49\u0E44\u0E02\u0E41\u0E1A\u0E1A\u0E01\u0E25\u0E38\u0E48\u0E21",
107017
106905
  cancel: "\u0E22\u0E01\u0E40\u0E25\u0E34\u0E01",
107018
106906
  editValues: "\u0E41\u0E01\u0E49\u0E44\u0E02\u0E04\u0E48\u0E32",
107019
- 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",
106907
+ 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.",
107020
106908
  placeholderForField: "\u0E1B\u0E49\u0E2D\u0E19 %{fieldName}",
107021
106909
  selection: "%{count} %{number} \u0E17\u0E35\u0E48\u0E40\u0E25\u0E37\u0E2D\u0E01",
107022
- selection_count: {
107023
- zero: "\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E41\u0E25\u0E49\u0E27 %{count} \u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",
107024
- one: "\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E41\u0E25\u0E49\u0E27 %{count} \u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",
107025
- other: "\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E41\u0E25\u0E49\u0E27 %{count} \u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"
107026
- },
107027
106910
  success: "\u0E2D\u0E31\u0E1B\u0E40\u0E14\u0E15\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23\u0E2A\u0E33\u0E40\u0E23\u0E47\u0E08\u0E41\u0E25\u0E49\u0E27",
107028
106911
  one: "\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",
107029
106912
  many: "\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"
@@ -107190,11 +107073,6 @@ var zh_SG_default = {
107190
107073
  error: "\u62B1\u6B49\uFF0C\u65E0\u6CD5\u66F4\u65B0\u6B64\u9879\u3002\u8BF7\u91CD\u8BD5\u3002",
107191
107074
  placeholderForField: "\u8F93\u5165 %{fieldName}",
107192
107075
  selection: "\u5DF2\u9009\u62E9 %{count} %{number}",
107193
- selection_count: {
107194
- zero: "\u5DF2\u9009\u62E9 %{count} \u9879",
107195
- one: "\u5DF2\u9009\u62E9 %{count} \u9879",
107196
- other: "\u5DF2\u9009\u62E9 %{count} \u9879"
107197
- },
107198
107076
  success: "\u5DF2\u6210\u529F\u66F4\u65B0\u8FD9\u4E9B\u9879\u3002",
107199
107077
  one: "\u9879",
107200
107078
  many: "\u9879"
@@ -109064,7 +108942,7 @@ var Table = (props) => {
109064
108942
  (acc, column3) => acc + column3.width,
109065
108943
  0
109066
108944
  );
109067
- const currentPinnedColumnMaxWidth = tableWidth - totalPinnedWidth + column2.actualWidth - 50;
108945
+ const currentPinnedColumnMaxWidth = tableWidth - totalPinnedWidth + column2.getActualWidth() - 50;
109068
108946
  column2.maxWidth = currentPinnedColumnMaxWidth;
109069
108947
  }
109070
108948
  },
@@ -109637,14 +109515,14 @@ function ClientSideFilterInner(props) {
109637
109515
  const { Component: Component4, columnDefinition, onChange, options, value } = props;
109638
109516
  const filterHeading = ((_b = (_a = columnDefinition.filterProps) == null ? void 0 : _a.getFilterHeadingText) == null ? void 0 : _b.call(_a, columnDefinition)) ?? columnDefinition.headerName;
109639
109517
  const filterOptions = React80__default.default.useMemo(() => options ?? [], [options]);
109640
- return /* @__PURE__ */ React80__default.default.createElement(coreReact.Box, { as: "li", display: "block", paddingBottom: "xl", style: { width: "100%" } }, filterHeading ? /* @__PURE__ */ React80__default.default.createElement(
109518
+ return /* @__PURE__ */ React80__default.default.createElement(coreReact.Box, { as: "li", display: "block", paddingBottom: "xl", style: { width: "100%" } }, filterHeading && /* @__PURE__ */ React80__default.default.createElement(
109641
109519
  coreReact.Label,
109642
109520
  {
109643
109521
  "data-qa": `data-table-filter-heading-${columnDefinition.field}`,
109644
109522
  id: `data-table-filter-heading-${columnDefinition.field}`
109645
109523
  },
109646
- filterHeading
109647
- ) : null, /* @__PURE__ */ React80__default.default.createElement(
109524
+ /* @__PURE__ */ React80__default.default.createElement(React80__default.default.Fragment, null, filterHeading)
109525
+ ), /* @__PURE__ */ React80__default.default.createElement(
109648
109526
  Component4,
109649
109527
  {
109650
109528
  "data-qa": `data-table-filter-input-${columnDefinition.field}`,
@@ -110646,58 +110524,60 @@ var getSuperSelectFilterPreset = (columnDefinition) => {
110646
110524
  const isValueEmpty = ["", null, void 0].includes(
110647
110525
  ctx.state.value
110648
110526
  );
110649
- return /* @__PURE__ */ React80__default.default.createElement(coreReact.UNSAFE_StyledSuperSelectLabel, { $hoverable: false }, typeof getValueLabel_ === "function" ? getValueLabel_(ctx.state.value) : getValueLabel(
110527
+ return /* @__PURE__ */ React80__default.default.createElement(coreReact.UNSAFE_StyledSuperSelectLabel, { $hoverable: false }, /* @__PURE__ */ React80__default.default.createElement(React80__default.default.Fragment, null, typeof getValueLabel_ === "function" ? getValueLabel_(ctx.state.value) : getValueLabel(
110650
110528
  isValueEmpty,
110651
110529
  ctx.state.selectedLabel,
110652
110530
  ctx.config.placeholder,
110653
110531
  filterName
110654
- ));
110532
+ )));
110655
110533
  }),
110656
- TriggerContainer: React80__default.default.forwardRef((props, ref) => {
110657
- const ctx = coreReact.UNSAFE_useSuperSelectContext();
110658
- if (!Array.isArray(ctx.state.value)) {
110534
+ TriggerContainer: React80__default.default.forwardRef(
110535
+ (props, ref) => {
110536
+ const ctx = coreReact.UNSAFE_useSuperSelectContext();
110537
+ if (!Array.isArray(ctx.state.value)) {
110538
+ return /* @__PURE__ */ React80__default.default.createElement(
110539
+ coreReact.UNSAFE_StyledSuperSelectTrigger,
110540
+ {
110541
+ $block: ctx.config.block,
110542
+ ...props,
110543
+ ref
110544
+ }
110545
+ );
110546
+ }
110659
110547
  return /* @__PURE__ */ React80__default.default.createElement(
110660
- coreReact.UNSAFE_StyledSuperSelectTrigger,
110548
+ coreReact.Popover,
110661
110549
  {
110662
- $block: ctx.config.block,
110663
- ...props,
110664
- ref
110665
- }
110550
+ placement: "top",
110551
+ trigger: ctx.state.value.length > 1 ? "hover" : "none",
110552
+ overlay: /* @__PURE__ */ React80__default.default.createElement(StyledFilterPresetPopoverContent, null, /* @__PURE__ */ React80__default.default.createElement(coreReact.Typography, null, ctx.state.value.map((v) => {
110553
+ const option = ctx.state.options.find(
110554
+ (option2) => ctx.option.value(option2) === v
110555
+ );
110556
+ return option ? ctx.option.label(option) : "";
110557
+ }).join(", ")))
110558
+ },
110559
+ /* @__PURE__ */ React80__default.default.createElement(
110560
+ coreReact.UNSAFE_StyledSuperSelectTrigger,
110561
+ {
110562
+ $block: ctx.config.block,
110563
+ ...props,
110564
+ ref
110565
+ }
110566
+ )
110666
110567
  );
110667
110568
  }
110668
- return /* @__PURE__ */ React80__default.default.createElement(
110669
- coreReact.Popover,
110670
- {
110671
- placement: "top",
110672
- trigger: ctx.state.value.length > 1 ? "hover" : "none",
110673
- overlay: /* @__PURE__ */ React80__default.default.createElement(StyledFilterPresetPopoverContent, null, /* @__PURE__ */ React80__default.default.createElement(coreReact.Typography, null, ctx.state.value.map((v) => {
110674
- const option = ctx.state.options.find(
110675
- (option2) => ctx.option.value(option2) === v
110676
- );
110677
- return option ? ctx.option.label(option) : "";
110678
- }).join(", ")))
110679
- },
110680
- /* @__PURE__ */ React80__default.default.createElement(
110681
- coreReact.UNSAFE_StyledSuperSelectTrigger,
110682
- {
110683
- $block: ctx.config.block,
110684
- ...props,
110685
- ref
110686
- }
110687
- )
110688
- );
110689
- }),
110569
+ ),
110690
110570
  MultiValueContainer: () => {
110691
110571
  const ctx = coreReact.UNSAFE_useSuperSelectContext();
110692
110572
  if (Array.isArray(ctx.state.value)) {
110693
110573
  const isValueEmpty = !ctx.state.value.length;
110694
110574
  const value = ctx.state.value.length > 1 ? `(${ctx.state.value.length})` : ctx.state.value.length === 1 ? `${ctx.state.selectedLabel}` : "";
110695
- return /* @__PURE__ */ React80__default.default.createElement(coreReact.UNSAFE_StyledSuperSelectLabel, { $hoverable: false }, typeof getValueLabel_ === "function" ? getValueLabel_(ctx.state.value) : getValueLabel(
110575
+ return /* @__PURE__ */ React80__default.default.createElement(coreReact.UNSAFE_StyledSuperSelectLabel, { $hoverable: false }, /* @__PURE__ */ React80__default.default.createElement(React80__default.default.Fragment, null, typeof getValueLabel_ === "function" ? getValueLabel_(ctx.state.value) : getValueLabel(
110696
110576
  isValueEmpty,
110697
110577
  value,
110698
110578
  ctx.config.placeholder,
110699
110579
  filterName
110700
- ));
110580
+ )));
110701
110581
  }
110702
110582
  return /* @__PURE__ */ React80__default.default.createElement("div", null, "Value is not an array");
110703
110583
  }
@@ -111254,7 +111134,7 @@ var ClientSideQuickFilters = ({ overlayMatchesTriggerWidth }) => {
111254
111134
  if (!colDef) {
111255
111135
  return null;
111256
111136
  }
111257
- return /* @__PURE__ */ React80__default.default.createElement(StyledFilterTokenWrapper, { key: filter.field }, /* @__PURE__ */ React80__default.default.createElement(coreReact.UNSAFE_FilterToken, null, /* @__PURE__ */ React80__default.default.createElement(coreReact.UNSAFE_FilterToken.Label, null, getFilterTokenText(colDef, filter.filterValues)), /* @__PURE__ */ React80__default.default.createElement(
111137
+ return /* @__PURE__ */ React80__default.default.createElement(StyledFilterTokenWrapper, { key: filter.field }, /* @__PURE__ */ React80__default.default.createElement(coreReact.UNSAFE_FilterToken, null, /* @__PURE__ */ React80__default.default.createElement(coreReact.UNSAFE_FilterToken.Label, null, /* @__PURE__ */ React80__default.default.createElement(React80__default.default.Fragment, null, getFilterTokenText(colDef, filter.filterValues))), /* @__PURE__ */ React80__default.default.createElement(
111258
111138
  coreReact.UNSAFE_FilterToken.Remove,
111259
111139
  {
111260
111140
  onClick: () => {
@@ -111353,10 +111233,10 @@ var ServerSideQuickFilters = ({ overlayMatchesTriggerWidth }) => {
111353
111233
  return null;
111354
111234
  }
111355
111235
  const filter = getListFilter(fieldName);
111356
- return /* @__PURE__ */ React80__default.default.createElement(StyledFilterTokenWrapper, { key: fieldName }, /* @__PURE__ */ React80__default.default.createElement(coreReact.UNSAFE_FilterToken, null, /* @__PURE__ */ React80__default.default.createElement(coreReact.UNSAFE_FilterToken.Label, null, getFilterTokenText(
111236
+ return /* @__PURE__ */ React80__default.default.createElement(StyledFilterTokenWrapper, { key: fieldName }, /* @__PURE__ */ React80__default.default.createElement(coreReact.UNSAFE_FilterToken, null, /* @__PURE__ */ React80__default.default.createElement(coreReact.UNSAFE_FilterToken.Label, null, /* @__PURE__ */ React80__default.default.createElement(React80__default.default.Fragment, null, getFilterTokenText(
111357
111237
  colDef,
111358
111238
  colDef.filterRenderer === DateFilterRenderer_default ? filter.value : filter.selected
111359
- )), /* @__PURE__ */ React80__default.default.createElement(
111239
+ ))), /* @__PURE__ */ React80__default.default.createElement(
111360
111240
  coreReact.UNSAFE_FilterToken.Remove,
111361
111241
  {
111362
111242
  "data-qa": "data-table-quick-filter-remove-token",