@dmsi/wedgekit-react 0.0.561 → 0.0.563

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.
Files changed (39) hide show
  1. package/dist/chunk-6MGHIYMP.js +42 -0
  2. package/dist/components/CalendarRange.cjs +58 -49
  3. package/dist/components/CalendarRange.js +3 -2
  4. package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.cjs +26 -17
  5. package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.js +3 -2
  6. package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.cjs +36 -27
  7. package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.js +3 -2
  8. package/dist/components/DataGrid/PinnedColumns.cjs +48 -39
  9. package/dist/components/DataGrid/PinnedColumns.js +3 -2
  10. package/dist/components/DataGrid/TableBody/LoadingCell.cjs +27 -18
  11. package/dist/components/DataGrid/TableBody/LoadingCell.js +3 -2
  12. package/dist/components/DataGrid/TableBody/TableBodyRow.cjs +30 -21
  13. package/dist/components/DataGrid/TableBody/TableBodyRow.js +3 -2
  14. package/dist/components/DataGrid/TableBody/index.cjs +43 -34
  15. package/dist/components/DataGrid/TableBody/index.js +3 -2
  16. package/dist/components/DataGrid/index.cjs +123 -114
  17. package/dist/components/DataGrid/index.js +3 -2
  18. package/dist/components/DataGrid/utils.cjs +25 -16
  19. package/dist/components/DataGrid/utils.js +3 -2
  20. package/dist/components/DateInput.cjs +77 -68
  21. package/dist/components/DateInput.js +3 -2
  22. package/dist/components/DateRangeInput.cjs +77 -68
  23. package/dist/components/DateRangeInput.js +3 -2
  24. package/dist/components/EditingContext.cjs +8 -2
  25. package/dist/components/EditingContext.js +7 -32
  26. package/dist/components/MobileDataGrid/ColumnList.js +1 -1
  27. package/dist/components/MobileDataGrid/ColumnSelector/index.cjs +34 -25
  28. package/dist/components/MobileDataGrid/ColumnSelector/index.js +3 -2
  29. package/dist/components/MobileDataGrid/MobileDataGridCard/index.js +1 -1
  30. package/dist/components/MobileDataGrid/MobileDataGridHeader.cjs +42 -33
  31. package/dist/components/MobileDataGrid/MobileDataGridHeader.js +3 -2
  32. package/dist/components/MobileDataGrid/RowDetailModalProvider/ModalContent.js +1 -1
  33. package/dist/components/MobileDataGrid/RowDetailModalProvider/index.js +1 -1
  34. package/dist/components/MobileDataGrid/index.cjs +136 -127
  35. package/dist/components/MobileDataGrid/index.js +3 -2
  36. package/dist/components/index.cjs +46 -31
  37. package/dist/components/index.js +7 -3
  38. package/package.json +1 -1
  39. /package/dist/{chunk-LKFYNRJZ.js → chunk-3JQPFWKR.js} +0 -0
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  LoadingCell
3
- } from "../../../chunk-LKFYNRJZ.js";
3
+ } from "../../../chunk-3JQPFWKR.js";
4
4
  import "../../../chunk-CJ7V4X6B.js";
5
5
  import "../../../chunk-M7INAUAJ.js";
6
6
  import "../../../chunk-7ZCXZDJD.js";
@@ -14,8 +14,8 @@ import "../../../chunk-2IKT6IHB.js";
14
14
  import "../../../chunk-RZ5EIDX4.js";
15
15
  import "../../../chunk-AGHBLWDZ.js";
16
16
  import "../../../chunk-5IFPG6TS.js";
17
- import "../../../chunk-M4FM3B3R.js";
18
17
  import "../../../chunk-AJ5M6MVX.js";
18
+ import "../../../chunk-M4FM3B3R.js";
19
19
  import "../../../chunk-AT4AWD6B.js";
20
20
  import "../../../chunk-EWGHVZL5.js";
21
21
  import "../../../chunk-I5BV7UPG.js";
@@ -32,6 +32,7 @@ import "../../../chunk-EJOPJIRO.js";
32
32
  import "../../../chunk-AG43RS4Q.js";
33
33
  import "../../../chunk-QVWYTQKL.js";
34
34
  import "../../../chunk-UAMI54FE.js";
35
+ import "../../../chunk-6MGHIYMP.js";
35
36
  import "../../../chunk-75USUR3I.js";
36
37
  import "../../../chunk-BWPNXY7T.js";
37
38
  import "../../../chunk-DWKS5ZXG.js";
@@ -64,7 +64,7 @@ __export(TableBodyRow_exports, {
64
64
  module.exports = __toCommonJS(TableBodyRow_exports);
65
65
  var import_clsx42 = __toESM(require("clsx"), 1);
66
66
  var import_react_table3 = require("@tanstack/react-table");
67
- var import_react38 = __toESM(require("react"), 1);
67
+ var import_react39 = __toESM(require("react"), 1);
68
68
 
69
69
  // src/components/DataGridCell.tsx
70
70
  var import_sortable = require("@dnd-kit/sortable");
@@ -5753,12 +5753,21 @@ var import_jsx_runtime60 = require("react/jsx-runtime");
5753
5753
  // src/components/OrderCheckIcon.tsx
5754
5754
  var import_jsx_runtime61 = require("react/jsx-runtime");
5755
5755
 
5756
+ // src/components/EditingContext.tsx
5757
+ var import_react37 = require("react");
5758
+ var import_jsx_runtime62 = require("react/jsx-runtime");
5759
+ var EditingContext = (0, import_react37.createContext)({
5760
+ data: [],
5761
+ setData: () => {
5762
+ }
5763
+ });
5764
+
5756
5765
  // src/components/AccessCard.tsx
5757
5766
  var import_clsx40 = __toESM(require("clsx"), 1);
5758
5767
 
5759
5768
  // src/components/Radio.tsx
5760
5769
  var import_clsx39 = __toESM(require("clsx"), 1);
5761
- var import_jsx_runtime62 = require("react/jsx-runtime");
5770
+ var import_jsx_runtime63 = require("react/jsx-runtime");
5762
5771
  var Radio = (_a) => {
5763
5772
  var _b = _a, {
5764
5773
  className,
@@ -5793,7 +5802,7 @@ var Radio = (_a) => {
5793
5802
  const readonlyClassName = (0, import_clsx39.default)(
5794
5803
  readOnly && "peer-read-only:bg-background-action-secondary-disabled peer-read-only:border-border-primary-normal peer-checked:border-0"
5795
5804
  );
5796
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
5805
+ return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
5797
5806
  "label",
5798
5807
  {
5799
5808
  htmlFor: radioId,
@@ -5805,8 +5814,8 @@ var Radio = (_a) => {
5805
5814
  className
5806
5815
  ),
5807
5816
  children: [
5808
- /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { className: "relative", children: [
5809
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
5817
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: "relative", children: [
5818
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
5810
5819
  "input",
5811
5820
  __spreadValues({
5812
5821
  id: radioId,
@@ -5818,7 +5827,7 @@ var Radio = (_a) => {
5818
5827
  readOnly
5819
5828
  }, props)
5820
5829
  ),
5821
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
5830
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
5822
5831
  "div",
5823
5832
  {
5824
5833
  className: (0, import_clsx39.default)(
@@ -5829,7 +5838,7 @@ var Radio = (_a) => {
5829
5838
  disabledClassName,
5830
5839
  readonlyClassName
5831
5840
  ),
5832
- children: checked && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
5841
+ children: checked && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
5833
5842
  RadioIcon,
5834
5843
  {
5835
5844
  className: (0, import_clsx39.default)(
@@ -5844,14 +5853,14 @@ var Radio = (_a) => {
5844
5853
  }
5845
5854
  )
5846
5855
  ] }),
5847
- label && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Paragraph, { id: radioId ? `${radioId}-label` : void 0, testid: testid ? `${testid}-label` : void 0, padded: true, color: paragraphColor, children: label })
5856
+ label && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Paragraph, { id: radioId ? `${radioId}-label` : void 0, testid: testid ? `${testid}-label` : void 0, padded: true, color: paragraphColor, children: label })
5848
5857
  ]
5849
5858
  }
5850
5859
  );
5851
5860
  };
5852
5861
  Radio.displayName = "Radio";
5853
5862
  var RadioIcon = ({ className }) => {
5854
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
5863
+ return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
5855
5864
  "svg",
5856
5865
  {
5857
5866
  className,
@@ -5861,7 +5870,7 @@ var RadioIcon = ({ className }) => {
5861
5870
  viewBox: "0 0 24 24",
5862
5871
  fill: "none",
5863
5872
  children: [
5864
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
5873
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
5865
5874
  "rect",
5866
5875
  {
5867
5876
  x: "1",
@@ -5873,7 +5882,7 @@ var RadioIcon = ({ className }) => {
5873
5882
  strokeWidth: "2"
5874
5883
  }
5875
5884
  ),
5876
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("rect", { x: "4", y: "4", width: "16", height: "16", rx: "8", fill: "currentColor" })
5885
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("rect", { x: "4", y: "4", width: "16", height: "16", rx: "8", fill: "currentColor" })
5877
5886
  ]
5878
5887
  }
5879
5888
  );
@@ -5881,15 +5890,15 @@ var RadioIcon = ({ className }) => {
5881
5890
  RadioIcon.displayName = "RadioIcon";
5882
5891
 
5883
5892
  // src/components/AccessCard.tsx
5884
- var import_jsx_runtime63 = require("react/jsx-runtime");
5893
+ var import_jsx_runtime64 = require("react/jsx-runtime");
5885
5894
 
5886
5895
  // src/components/AccessCardGroup.tsx
5887
5896
  var import_clsx41 = __toESM(require("clsx"), 1);
5888
- var import_react37 = require("react");
5889
- var import_jsx_runtime64 = require("react/jsx-runtime");
5897
+ var import_react38 = require("react");
5898
+ var import_jsx_runtime65 = require("react/jsx-runtime");
5890
5899
 
5891
5900
  // src/components/DataGrid/TableBody/TableBodyRow.tsx
5892
- var import_jsx_runtime65 = require("react/jsx-runtime");
5901
+ var import_jsx_runtime66 = require("react/jsx-runtime");
5893
5902
  var valueFormatters = {
5894
5903
  date: (value) => typeof value === "string" ? formatDate(value) : "",
5895
5904
  currency: (value) => formatCurrencyDisplay(value)
@@ -5923,7 +5932,7 @@ function TableBodyRow({
5923
5932
  const columns = locked ? visibleCells : virtualColumns;
5924
5933
  const isError = typeof row.original === "object" && row.original !== null && "rowState" in row.original && row.original.rowState === "error";
5925
5934
  const CellElement = locked ? DataGridCell : DragAlongCell;
5926
- return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
5935
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
5927
5936
  "tr",
5928
5937
  {
5929
5938
  className: (0, import_clsx42.default)(
@@ -5945,7 +5954,7 @@ function TableBodyRow({
5945
5954
  children: [
5946
5955
  !locked && virtualPaddingLeft ? (
5947
5956
  // fake empty column to the left for virtualization scroll padding
5948
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("td", { style: { display: "flex", width: virtualPaddingLeft } })
5957
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("td", { style: { display: "flex", width: virtualPaddingLeft } })
5949
5958
  ) : null,
5950
5959
  columns.map((column) => {
5951
5960
  var _a2, _b, _c, _d;
@@ -5956,7 +5965,7 @@ function TableBodyRow({
5956
5965
  const cellFormat = (_a2 = cell.column.columnDef.meta) == null ? void 0 : _a2.format;
5957
5966
  const cellValue = cellFormat && isValueFormatterKey(cellFormat) ? valueFormatters[cellFormat](cell.getValue()) : cell.getValue();
5958
5967
  const cellAlignment = (_c = (_b = cell.column.columnDef.meta) == null ? void 0 : _b.align) != null ? _c : typeof cellValue === "number" ? "right" : "left";
5959
- return ((_d = cell.column.columnDef.meta) == null ? void 0 : _d.useCustomRenderer) ? /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_react38.default.Fragment, { children: (0, import_react_table3.flexRender)(cell.column.columnDef.cell, cell.getContext()) }, cell.id) : /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
5968
+ return ((_d = cell.column.columnDef.meta) == null ? void 0 : _d.useCustomRenderer) ? /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_react39.default.Fragment, { children: (0, import_react_table3.flexRender)(cell.column.columnDef.cell, cell.getContext()) }, cell.id) : /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
5960
5969
  CellElement,
5961
5970
  {
5962
5971
  id: id ? `${id}-row-${row.id}-cell-${cell.id}` : void 0,
@@ -5966,7 +5975,7 @@ function TableBodyRow({
5966
5975
  "justify-start": cellAlignment === "left",
5967
5976
  "justify-end": cellAlignment === "right"
5968
5977
  }),
5969
- children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
5978
+ children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
5970
5979
  Tooltip,
5971
5980
  {
5972
5981
  id: id ? `${id}-tooltip-${cell.id}` : void 0,
@@ -5974,7 +5983,7 @@ function TableBodyRow({
5974
5983
  showOnTruncation: true,
5975
5984
  message: cellValue,
5976
5985
  position: "bottom",
5977
- children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Paragraph, { addOverflow: true, tall: true, children: cellValue })
5986
+ children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Paragraph, { addOverflow: true, tall: true, children: cellValue })
5978
5987
  }
5979
5988
  )
5980
5989
  },
@@ -5983,7 +5992,7 @@ function TableBodyRow({
5983
5992
  }),
5984
5993
  !locked && virtualPaddingRight ? (
5985
5994
  // fake empty column to the right for virtualization scroll padding
5986
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("td", { style: { display: "flex", width: virtualPaddingRight } })
5995
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("td", { style: { display: "flex", width: virtualPaddingRight } })
5987
5996
  ) : null
5988
5997
  ]
5989
5998
  },
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TableBodyRow
3
- } from "../../../chunk-LKFYNRJZ.js";
3
+ } from "../../../chunk-3JQPFWKR.js";
4
4
  import "../../../chunk-CJ7V4X6B.js";
5
5
  import "../../../chunk-M7INAUAJ.js";
6
6
  import "../../../chunk-7ZCXZDJD.js";
@@ -14,8 +14,8 @@ import "../../../chunk-2IKT6IHB.js";
14
14
  import "../../../chunk-RZ5EIDX4.js";
15
15
  import "../../../chunk-AGHBLWDZ.js";
16
16
  import "../../../chunk-5IFPG6TS.js";
17
- import "../../../chunk-M4FM3B3R.js";
18
17
  import "../../../chunk-AJ5M6MVX.js";
18
+ import "../../../chunk-M4FM3B3R.js";
19
19
  import "../../../chunk-AT4AWD6B.js";
20
20
  import "../../../chunk-EWGHVZL5.js";
21
21
  import "../../../chunk-I5BV7UPG.js";
@@ -32,6 +32,7 @@ import "../../../chunk-EJOPJIRO.js";
32
32
  import "../../../chunk-AG43RS4Q.js";
33
33
  import "../../../chunk-QVWYTQKL.js";
34
34
  import "../../../chunk-UAMI54FE.js";
35
+ import "../../../chunk-6MGHIYMP.js";
35
36
  import "../../../chunk-75USUR3I.js";
36
37
  import "../../../chunk-BWPNXY7T.js";
37
38
  import "../../../chunk-DWKS5ZXG.js";
@@ -5569,12 +5569,21 @@ var import_jsx_runtime58 = require("react/jsx-runtime");
5569
5569
  // src/components/OrderCheckIcon.tsx
5570
5570
  var import_jsx_runtime59 = require("react/jsx-runtime");
5571
5571
 
5572
+ // src/components/EditingContext.tsx
5573
+ var import_react37 = require("react");
5574
+ var import_jsx_runtime60 = require("react/jsx-runtime");
5575
+ var EditingContext = (0, import_react37.createContext)({
5576
+ data: [],
5577
+ setData: () => {
5578
+ }
5579
+ });
5580
+
5572
5581
  // src/components/AccessCard.tsx
5573
5582
  var import_clsx39 = __toESM(require("clsx"), 1);
5574
5583
 
5575
5584
  // src/components/Radio.tsx
5576
5585
  var import_clsx38 = __toESM(require("clsx"), 1);
5577
- var import_jsx_runtime60 = require("react/jsx-runtime");
5586
+ var import_jsx_runtime61 = require("react/jsx-runtime");
5578
5587
  var Radio = (_a) => {
5579
5588
  var _b = _a, {
5580
5589
  className,
@@ -5609,7 +5618,7 @@ var Radio = (_a) => {
5609
5618
  const readonlyClassName = (0, import_clsx38.default)(
5610
5619
  readOnly && "peer-read-only:bg-background-action-secondary-disabled peer-read-only:border-border-primary-normal peer-checked:border-0"
5611
5620
  );
5612
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
5621
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
5613
5622
  "label",
5614
5623
  {
5615
5624
  htmlFor: radioId,
@@ -5621,8 +5630,8 @@ var Radio = (_a) => {
5621
5630
  className
5622
5631
  ),
5623
5632
  children: [
5624
- /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("div", { className: "relative", children: [
5625
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
5633
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "relative", children: [
5634
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
5626
5635
  "input",
5627
5636
  __spreadValues({
5628
5637
  id: radioId,
@@ -5634,7 +5643,7 @@ var Radio = (_a) => {
5634
5643
  readOnly
5635
5644
  }, props)
5636
5645
  ),
5637
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
5646
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
5638
5647
  "div",
5639
5648
  {
5640
5649
  className: (0, import_clsx38.default)(
@@ -5645,7 +5654,7 @@ var Radio = (_a) => {
5645
5654
  disabledClassName,
5646
5655
  readonlyClassName
5647
5656
  ),
5648
- children: checked && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
5657
+ children: checked && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
5649
5658
  RadioIcon,
5650
5659
  {
5651
5660
  className: (0, import_clsx38.default)(
@@ -5660,14 +5669,14 @@ var Radio = (_a) => {
5660
5669
  }
5661
5670
  )
5662
5671
  ] }),
5663
- label && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Paragraph, { id: radioId ? `${radioId}-label` : void 0, testid: testid ? `${testid}-label` : void 0, padded: true, color: paragraphColor, children: label })
5672
+ label && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Paragraph, { id: radioId ? `${radioId}-label` : void 0, testid: testid ? `${testid}-label` : void 0, padded: true, color: paragraphColor, children: label })
5664
5673
  ]
5665
5674
  }
5666
5675
  );
5667
5676
  };
5668
5677
  Radio.displayName = "Radio";
5669
5678
  var RadioIcon = ({ className }) => {
5670
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
5679
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
5671
5680
  "svg",
5672
5681
  {
5673
5682
  className,
@@ -5677,7 +5686,7 @@ var RadioIcon = ({ className }) => {
5677
5686
  viewBox: "0 0 24 24",
5678
5687
  fill: "none",
5679
5688
  children: [
5680
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
5689
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
5681
5690
  "rect",
5682
5691
  {
5683
5692
  x: "1",
@@ -5689,7 +5698,7 @@ var RadioIcon = ({ className }) => {
5689
5698
  strokeWidth: "2"
5690
5699
  }
5691
5700
  ),
5692
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("rect", { x: "4", y: "4", width: "16", height: "16", rx: "8", fill: "currentColor" })
5701
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("rect", { x: "4", y: "4", width: "16", height: "16", rx: "8", fill: "currentColor" })
5693
5702
  ]
5694
5703
  }
5695
5704
  );
@@ -5697,12 +5706,12 @@ var RadioIcon = ({ className }) => {
5697
5706
  RadioIcon.displayName = "RadioIcon";
5698
5707
 
5699
5708
  // src/components/AccessCard.tsx
5700
- var import_jsx_runtime61 = require("react/jsx-runtime");
5709
+ var import_jsx_runtime62 = require("react/jsx-runtime");
5701
5710
 
5702
5711
  // src/components/AccessCardGroup.tsx
5703
5712
  var import_clsx40 = __toESM(require("clsx"), 1);
5704
- var import_react37 = require("react");
5705
- var import_jsx_runtime62 = require("react/jsx-runtime");
5713
+ var import_react38 = require("react");
5714
+ var import_jsx_runtime63 = require("react/jsx-runtime");
5706
5715
 
5707
5716
  // src/components/DataGrid/TableBody/index.tsx
5708
5717
  var import_clsx42 = __toESM(require("clsx"), 1);
@@ -5710,8 +5719,8 @@ var import_clsx42 = __toESM(require("clsx"), 1);
5710
5719
  // src/components/DataGrid/TableBody/TableBodyRow.tsx
5711
5720
  var import_clsx41 = __toESM(require("clsx"), 1);
5712
5721
  var import_react_table3 = require("@tanstack/react-table");
5713
- var import_react38 = __toESM(require("react"), 1);
5714
- var import_jsx_runtime63 = require("react/jsx-runtime");
5722
+ var import_react39 = __toESM(require("react"), 1);
5723
+ var import_jsx_runtime64 = require("react/jsx-runtime");
5715
5724
  var valueFormatters = {
5716
5725
  date: (value) => typeof value === "string" ? formatDate(value) : "",
5717
5726
  currency: (value) => formatCurrencyDisplay(value)
@@ -5745,7 +5754,7 @@ function TableBodyRow({
5745
5754
  const columns = locked ? visibleCells : virtualColumns;
5746
5755
  const isError = typeof row.original === "object" && row.original !== null && "rowState" in row.original && row.original.rowState === "error";
5747
5756
  const CellElement = locked ? DataGridCell : DragAlongCell;
5748
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
5757
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
5749
5758
  "tr",
5750
5759
  {
5751
5760
  className: (0, import_clsx41.default)(
@@ -5767,7 +5776,7 @@ function TableBodyRow({
5767
5776
  children: [
5768
5777
  !locked && virtualPaddingLeft ? (
5769
5778
  // fake empty column to the left for virtualization scroll padding
5770
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("td", { style: { display: "flex", width: virtualPaddingLeft } })
5779
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("td", { style: { display: "flex", width: virtualPaddingLeft } })
5771
5780
  ) : null,
5772
5781
  columns.map((column) => {
5773
5782
  var _a2, _b, _c, _d;
@@ -5778,7 +5787,7 @@ function TableBodyRow({
5778
5787
  const cellFormat = (_a2 = cell.column.columnDef.meta) == null ? void 0 : _a2.format;
5779
5788
  const cellValue = cellFormat && isValueFormatterKey(cellFormat) ? valueFormatters[cellFormat](cell.getValue()) : cell.getValue();
5780
5789
  const cellAlignment = (_c = (_b = cell.column.columnDef.meta) == null ? void 0 : _b.align) != null ? _c : typeof cellValue === "number" ? "right" : "left";
5781
- return ((_d = cell.column.columnDef.meta) == null ? void 0 : _d.useCustomRenderer) ? /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_react38.default.Fragment, { children: (0, import_react_table3.flexRender)(cell.column.columnDef.cell, cell.getContext()) }, cell.id) : /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
5790
+ return ((_d = cell.column.columnDef.meta) == null ? void 0 : _d.useCustomRenderer) ? /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_react39.default.Fragment, { children: (0, import_react_table3.flexRender)(cell.column.columnDef.cell, cell.getContext()) }, cell.id) : /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
5782
5791
  CellElement,
5783
5792
  {
5784
5793
  id: id ? `${id}-row-${row.id}-cell-${cell.id}` : void 0,
@@ -5788,7 +5797,7 @@ function TableBodyRow({
5788
5797
  "justify-start": cellAlignment === "left",
5789
5798
  "justify-end": cellAlignment === "right"
5790
5799
  }),
5791
- children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
5800
+ children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
5792
5801
  Tooltip,
5793
5802
  {
5794
5803
  id: id ? `${id}-tooltip-${cell.id}` : void 0,
@@ -5796,7 +5805,7 @@ function TableBodyRow({
5796
5805
  showOnTruncation: true,
5797
5806
  message: cellValue,
5798
5807
  position: "bottom",
5799
- children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Paragraph, { addOverflow: true, tall: true, children: cellValue })
5808
+ children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Paragraph, { addOverflow: true, tall: true, children: cellValue })
5800
5809
  }
5801
5810
  )
5802
5811
  },
@@ -5805,7 +5814,7 @@ function TableBodyRow({
5805
5814
  }),
5806
5815
  !locked && virtualPaddingRight ? (
5807
5816
  // fake empty column to the right for virtualization scroll padding
5808
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("td", { style: { display: "flex", width: virtualPaddingRight } })
5817
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("td", { style: { display: "flex", width: virtualPaddingRight } })
5809
5818
  ) : null
5810
5819
  ]
5811
5820
  },
@@ -5814,7 +5823,7 @@ function TableBodyRow({
5814
5823
  }
5815
5824
 
5816
5825
  // src/components/DataGrid/TableBody/LoadingCell.tsx
5817
- var import_jsx_runtime64 = require("react/jsx-runtime");
5826
+ var import_jsx_runtime65 = require("react/jsx-runtime");
5818
5827
  function LoadingCell({
5819
5828
  id,
5820
5829
  testid,
@@ -5822,16 +5831,16 @@ function LoadingCell({
5822
5831
  }) {
5823
5832
  const key = `loading-${column.id}`;
5824
5833
  if (column.cell === "checkbox") {
5825
- return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(DataGridCell, { id: id ? `${id}-${key}` : void 0, testid: testid ? `${testid}-${key}` : void 0, children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Checkbox, { id: id ? `${id}-${key}-checkbox` : void 0, testid: testid ? `${testid}-${key}-checkbox` : void 0, disabled: true }) }, key);
5834
+ return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(DataGridCell, { id: id ? `${id}-${key}` : void 0, testid: testid ? `${testid}-${key}` : void 0, children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Checkbox, { id: id ? `${id}-${key}-checkbox` : void 0, testid: testid ? `${testid}-${key}-checkbox` : void 0, disabled: true }) }, key);
5826
5835
  }
5827
5836
  if (column.cell === "input") {
5828
- return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
5837
+ return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
5829
5838
  DataGridCell,
5830
5839
  {
5831
5840
  id: id ? `${id}-${key}` : void 0,
5832
5841
  testid: testid ? `${testid}-${key}` : void 0,
5833
5842
  component: "input",
5834
- children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
5843
+ children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
5835
5844
  Input,
5836
5845
  {
5837
5846
  id: id ? `${id}-${key}-input` : void 0,
@@ -5845,11 +5854,11 @@ function LoadingCell({
5845
5854
  key
5846
5855
  );
5847
5856
  }
5848
- return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(DataGridCell, { id: id ? `${id}-${key}` : void 0, testid: testid ? `${testid}-${key}` : void 0, children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "bg-linear-270 to-neutral-300/[24%] from-neutral-300/[12%] rounded-xs w-full max-w-25 h-6" }) }, key);
5857
+ return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(DataGridCell, { id: id ? `${id}-${key}` : void 0, testid: testid ? `${testid}-${key}` : void 0, children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { className: "bg-linear-270 to-neutral-300/[24%] from-neutral-300/[12%] rounded-xs w-full max-w-25 h-6" }) }, key);
5849
5858
  }
5850
5859
 
5851
5860
  // src/components/DataGrid/TableBody/index.tsx
5852
- var import_jsx_runtime65 = require("react/jsx-runtime");
5861
+ var import_jsx_runtime66 = require("react/jsx-runtime");
5853
5862
  function TableBody({
5854
5863
  id,
5855
5864
  testid,
@@ -5885,7 +5894,7 @@ function TableBody({
5885
5894
  } else {
5886
5895
  headerGroups = table.getCenterHeaderGroups();
5887
5896
  }
5888
- return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
5897
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
5889
5898
  "tbody",
5890
5899
  {
5891
5900
  className: (0, import_clsx42.default)(locked ? "shadow-16" : ""),
@@ -5897,7 +5906,7 @@ function TableBody({
5897
5906
  // needed for absolute positioning of rows
5898
5907
  },
5899
5908
  children: [
5900
- showFilterRow && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
5909
+ showFilterRow && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
5901
5910
  "tr",
5902
5911
  {
5903
5912
  style: {
@@ -5913,7 +5922,7 @@ function TableBody({
5913
5922
  children: headerGroups.flatMap(
5914
5923
  (x) => x.headers.map((header) => {
5915
5924
  var _a, _b, _c, _d, _e;
5916
- return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
5925
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
5917
5926
  CellElement,
5918
5927
  {
5919
5928
  id: id ? `${id}-filter-cell-${header.id}` : void 0,
@@ -5924,7 +5933,7 @@ function TableBody({
5924
5933
  children: header.column.getCanFilter() && ((_e = (_c = (_b = header.column.columnDef.meta) == null ? void 0 : _b.filterRowCell) == null ? void 0 : _c.call(_b, {
5925
5934
  header,
5926
5935
  table
5927
- })) != null ? _e : /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
5936
+ })) != null ? _e : /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
5928
5937
  Search,
5929
5938
  {
5930
5939
  id: id ? `${id}-filter-search-${header.id}` : void 0,
@@ -5945,7 +5954,7 @@ function TableBody({
5945
5954
  ),
5946
5955
  virtualRows.map((virtualRow) => {
5947
5956
  const row = rows[virtualRow.index];
5948
- return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
5957
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
5949
5958
  TableBodyRow,
5950
5959
  {
5951
5960
  id,
@@ -5965,7 +5974,7 @@ function TableBody({
5965
5974
  row.id
5966
5975
  );
5967
5976
  }),
5968
- !pagination && isLoadingMore && hasMore && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
5977
+ !pagination && isLoadingMore && hasMore && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
5969
5978
  "tr",
5970
5979
  {
5971
5980
  style: {
@@ -5975,7 +5984,7 @@ function TableBody({
5975
5984
  transform: `translateY(${virtualRows[virtualRows.length - 1].start + 40}px)`
5976
5985
  },
5977
5986
  className: "odd:bg-background-grouped-primary-normal even:bg-background-grouped-secondary-normal",
5978
- children: table.getAllLeafColumns().map((column) => /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
5987
+ children: table.getAllLeafColumns().map((column) => /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
5979
5988
  LoadingCell,
5980
5989
  {
5981
5990
  id,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TableBody
3
- } from "../../../chunk-LKFYNRJZ.js";
3
+ } from "../../../chunk-3JQPFWKR.js";
4
4
  import "../../../chunk-CJ7V4X6B.js";
5
5
  import "../../../chunk-M7INAUAJ.js";
6
6
  import "../../../chunk-7ZCXZDJD.js";
@@ -14,8 +14,8 @@ import "../../../chunk-2IKT6IHB.js";
14
14
  import "../../../chunk-RZ5EIDX4.js";
15
15
  import "../../../chunk-AGHBLWDZ.js";
16
16
  import "../../../chunk-5IFPG6TS.js";
17
- import "../../../chunk-M4FM3B3R.js";
18
17
  import "../../../chunk-AJ5M6MVX.js";
18
+ import "../../../chunk-M4FM3B3R.js";
19
19
  import "../../../chunk-AT4AWD6B.js";
20
20
  import "../../../chunk-EWGHVZL5.js";
21
21
  import "../../../chunk-I5BV7UPG.js";
@@ -32,6 +32,7 @@ import "../../../chunk-EJOPJIRO.js";
32
32
  import "../../../chunk-AG43RS4Q.js";
33
33
  import "../../../chunk-QVWYTQKL.js";
34
34
  import "../../../chunk-UAMI54FE.js";
35
+ import "../../../chunk-6MGHIYMP.js";
35
36
  import "../../../chunk-75USUR3I.js";
36
37
  import "../../../chunk-BWPNXY7T.js";
37
38
  import "../../../chunk-DWKS5ZXG.js";