@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
@@ -62,7 +62,7 @@ __export(ColumnSelectorHeaderCell_exports, {
62
62
  ColumnSelectorHeaderCell: () => ColumnSelectorHeaderCell
63
63
  });
64
64
  module.exports = __toCommonJS(ColumnSelectorHeaderCell_exports);
65
- var import_react38 = require("react");
65
+ var import_react39 = require("react");
66
66
 
67
67
  // src/components/DataGridCell.tsx
68
68
  var import_sortable = require("@dnd-kit/sortable");
@@ -5751,12 +5751,21 @@ var import_jsx_runtime59 = require("react/jsx-runtime");
5751
5751
  // src/components/OrderCheckIcon.tsx
5752
5752
  var import_jsx_runtime60 = require("react/jsx-runtime");
5753
5753
 
5754
+ // src/components/EditingContext.tsx
5755
+ var import_react36 = require("react");
5756
+ var import_jsx_runtime61 = require("react/jsx-runtime");
5757
+ var EditingContext = (0, import_react36.createContext)({
5758
+ data: [],
5759
+ setData: () => {
5760
+ }
5761
+ });
5762
+
5754
5763
  // src/components/AccessCard.tsx
5755
5764
  var import_clsx41 = __toESM(require("clsx"), 1);
5756
5765
 
5757
5766
  // src/components/Radio.tsx
5758
5767
  var import_clsx40 = __toESM(require("clsx"), 1);
5759
- var import_jsx_runtime61 = require("react/jsx-runtime");
5768
+ var import_jsx_runtime62 = require("react/jsx-runtime");
5760
5769
  var Radio = (_a) => {
5761
5770
  var _b = _a, {
5762
5771
  className,
@@ -5791,7 +5800,7 @@ var Radio = (_a) => {
5791
5800
  const readonlyClassName = (0, import_clsx40.default)(
5792
5801
  readOnly && "peer-read-only:bg-background-action-secondary-disabled peer-read-only:border-border-primary-normal peer-checked:border-0"
5793
5802
  );
5794
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
5803
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
5795
5804
  "label",
5796
5805
  {
5797
5806
  htmlFor: radioId,
@@ -5803,8 +5812,8 @@ var Radio = (_a) => {
5803
5812
  className
5804
5813
  ),
5805
5814
  children: [
5806
- /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "relative", children: [
5807
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
5815
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { className: "relative", children: [
5816
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
5808
5817
  "input",
5809
5818
  __spreadValues({
5810
5819
  id: radioId,
@@ -5816,7 +5825,7 @@ var Radio = (_a) => {
5816
5825
  readOnly
5817
5826
  }, props)
5818
5827
  ),
5819
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
5828
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
5820
5829
  "div",
5821
5830
  {
5822
5831
  className: (0, import_clsx40.default)(
@@ -5827,7 +5836,7 @@ var Radio = (_a) => {
5827
5836
  disabledClassName,
5828
5837
  readonlyClassName
5829
5838
  ),
5830
- children: checked && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
5839
+ children: checked && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
5831
5840
  RadioIcon,
5832
5841
  {
5833
5842
  className: (0, import_clsx40.default)(
@@ -5842,14 +5851,14 @@ var Radio = (_a) => {
5842
5851
  }
5843
5852
  )
5844
5853
  ] }),
5845
- 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 })
5854
+ 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 })
5846
5855
  ]
5847
5856
  }
5848
5857
  );
5849
5858
  };
5850
5859
  Radio.displayName = "Radio";
5851
5860
  var RadioIcon = ({ className }) => {
5852
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
5861
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
5853
5862
  "svg",
5854
5863
  {
5855
5864
  className,
@@ -5859,7 +5868,7 @@ var RadioIcon = ({ className }) => {
5859
5868
  viewBox: "0 0 24 24",
5860
5869
  fill: "none",
5861
5870
  children: [
5862
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
5871
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
5863
5872
  "rect",
5864
5873
  {
5865
5874
  x: "1",
@@ -5871,7 +5880,7 @@ var RadioIcon = ({ className }) => {
5871
5880
  strokeWidth: "2"
5872
5881
  }
5873
5882
  ),
5874
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("rect", { x: "4", y: "4", width: "16", height: "16", rx: "8", fill: "currentColor" })
5883
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("rect", { x: "4", y: "4", width: "16", height: "16", rx: "8", fill: "currentColor" })
5875
5884
  ]
5876
5885
  }
5877
5886
  );
@@ -5879,25 +5888,25 @@ var RadioIcon = ({ className }) => {
5879
5888
  RadioIcon.displayName = "RadioIcon";
5880
5889
 
5881
5890
  // src/components/AccessCard.tsx
5882
- var import_jsx_runtime62 = require("react/jsx-runtime");
5891
+ var import_jsx_runtime63 = require("react/jsx-runtime");
5883
5892
 
5884
5893
  // src/components/AccessCardGroup.tsx
5885
5894
  var import_clsx42 = __toESM(require("clsx"), 1);
5886
- var import_react36 = require("react");
5887
- var import_jsx_runtime63 = require("react/jsx-runtime");
5888
-
5889
- // src/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.tsx
5890
5895
  var import_react37 = require("react");
5891
5896
  var import_jsx_runtime64 = require("react/jsx-runtime");
5897
+
5898
+ // src/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.tsx
5899
+ var import_react38 = require("react");
5900
+ var import_jsx_runtime65 = require("react/jsx-runtime");
5892
5901
  function ColumnSelectorMenuOption({
5893
5902
  id,
5894
5903
  testid,
5895
5904
  column,
5896
5905
  toggleColumnVisibility
5897
5906
  }) {
5898
- const [isVisible, setIsVisible] = (0, import_react37.useState)(column.getIsVisible());
5907
+ const [isVisible, setIsVisible] = (0, import_react38.useState)(column.getIsVisible());
5899
5908
  const label = typeof column.columnDef.header === "string" ? column.columnDef.header : null;
5900
- return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(MenuOption, { id, testid, defaultChecked: isVisible, children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
5909
+ return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(MenuOption, { id, testid, defaultChecked: isVisible, children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
5901
5910
  Checkbox,
5902
5911
  {
5903
5912
  id: id ? `${id}-checkbox` : void 0,
@@ -5913,7 +5922,7 @@ function ColumnSelectorMenuOption({
5913
5922
  }
5914
5923
 
5915
5924
  // src/components/DataGrid/ColumnSelectorHeaderCell/index.tsx
5916
- var import_jsx_runtime65 = require("react/jsx-runtime");
5925
+ var import_jsx_runtime66 = require("react/jsx-runtime");
5917
5926
  function ColumnSelectorHeaderCell({
5918
5927
  id,
5919
5928
  testid,
@@ -5921,9 +5930,9 @@ function ColumnSelectorHeaderCell({
5921
5930
  toggleColumnVisibility,
5922
5931
  resetColumnVisibility
5923
5932
  }) {
5924
- const ref = (0, import_react38.useRef)(null);
5925
- const [show, setShow] = (0, import_react38.useState)(false);
5926
- return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
5933
+ const ref = (0, import_react39.useRef)(null);
5934
+ const [show, setShow] = (0, import_react39.useState)(false);
5935
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
5927
5936
  DataGridCell,
5928
5937
  {
5929
5938
  id,
@@ -5933,7 +5942,7 @@ function ColumnSelectorHeaderCell({
5933
5942
  color: "text-secondary-normal",
5934
5943
  ref,
5935
5944
  children: [
5936
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
5945
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
5937
5946
  Button,
5938
5947
  {
5939
5948
  id: id ? `${id}-button` : void 0,
@@ -5941,10 +5950,10 @@ function ColumnSelectorHeaderCell({
5941
5950
  onClick: () => setShow((prev) => !prev),
5942
5951
  variant: "navigation",
5943
5952
  iconOnly: true,
5944
- leftIcon: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Icon, { name: "tune" })
5953
+ leftIcon: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Icon, { name: "tune" })
5945
5954
  }
5946
5955
  ),
5947
- /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
5956
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
5948
5957
  Menu,
5949
5958
  {
5950
5959
  id: id ? `${id}-menu` : void 0,
@@ -5955,7 +5964,7 @@ function ColumnSelectorHeaderCell({
5955
5964
  setShow,
5956
5965
  calculateMinMaxHeight: true,
5957
5966
  children: [
5958
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
5967
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
5959
5968
  Button,
5960
5969
  {
5961
5970
  id: id ? `${id}-reset-button` : void 0,
@@ -5971,7 +5980,7 @@ function ColumnSelectorHeaderCell({
5971
5980
  table.getAllColumns().filter((x) => {
5972
5981
  var _a;
5973
5982
  return (_a = x.columnDef.meta) == null ? void 0 : _a.inVisibilityMenu;
5974
- }).map((column) => /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
5983
+ }).map((column) => /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
5975
5984
  ColumnSelectorMenuOption,
5976
5985
  {
5977
5986
  id: id ? `${id}-option-${column.id}` : void 0,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ColumnSelectorHeaderCell
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";
@@ -5598,12 +5598,21 @@ var import_jsx_runtime58 = require("react/jsx-runtime");
5598
5598
  // src/components/OrderCheckIcon.tsx
5599
5599
  var import_jsx_runtime59 = require("react/jsx-runtime");
5600
5600
 
5601
+ // src/components/EditingContext.tsx
5602
+ var import_react35 = require("react");
5603
+ var import_jsx_runtime60 = require("react/jsx-runtime");
5604
+ var EditingContext = (0, import_react35.createContext)({
5605
+ data: [],
5606
+ setData: () => {
5607
+ }
5608
+ });
5609
+
5601
5610
  // src/components/AccessCard.tsx
5602
5611
  var import_clsx40 = __toESM(require("clsx"), 1);
5603
5612
 
5604
5613
  // src/components/Radio.tsx
5605
5614
  var import_clsx39 = __toESM(require("clsx"), 1);
5606
- var import_jsx_runtime60 = require("react/jsx-runtime");
5615
+ var import_jsx_runtime61 = require("react/jsx-runtime");
5607
5616
  var Radio = (_a) => {
5608
5617
  var _b = _a, {
5609
5618
  className,
@@ -5638,7 +5647,7 @@ var Radio = (_a) => {
5638
5647
  const readonlyClassName = (0, import_clsx39.default)(
5639
5648
  readOnly && "peer-read-only:bg-background-action-secondary-disabled peer-read-only:border-border-primary-normal peer-checked:border-0"
5640
5649
  );
5641
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
5650
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
5642
5651
  "label",
5643
5652
  {
5644
5653
  htmlFor: radioId,
@@ -5650,8 +5659,8 @@ var Radio = (_a) => {
5650
5659
  className
5651
5660
  ),
5652
5661
  children: [
5653
- /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("div", { className: "relative", children: [
5654
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
5662
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "relative", children: [
5663
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
5655
5664
  "input",
5656
5665
  __spreadValues({
5657
5666
  id: radioId,
@@ -5663,7 +5672,7 @@ var Radio = (_a) => {
5663
5672
  readOnly
5664
5673
  }, props)
5665
5674
  ),
5666
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
5675
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
5667
5676
  "div",
5668
5677
  {
5669
5678
  className: (0, import_clsx39.default)(
@@ -5674,7 +5683,7 @@ var Radio = (_a) => {
5674
5683
  disabledClassName,
5675
5684
  readonlyClassName
5676
5685
  ),
5677
- children: checked && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
5686
+ children: checked && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
5678
5687
  RadioIcon,
5679
5688
  {
5680
5689
  className: (0, import_clsx39.default)(
@@ -5689,14 +5698,14 @@ var Radio = (_a) => {
5689
5698
  }
5690
5699
  )
5691
5700
  ] }),
5692
- 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 })
5701
+ 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 })
5693
5702
  ]
5694
5703
  }
5695
5704
  );
5696
5705
  };
5697
5706
  Radio.displayName = "Radio";
5698
5707
  var RadioIcon = ({ className }) => {
5699
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
5708
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
5700
5709
  "svg",
5701
5710
  {
5702
5711
  className,
@@ -5706,7 +5715,7 @@ var RadioIcon = ({ className }) => {
5706
5715
  viewBox: "0 0 24 24",
5707
5716
  fill: "none",
5708
5717
  children: [
5709
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
5718
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
5710
5719
  "rect",
5711
5720
  {
5712
5721
  x: "1",
@@ -5718,7 +5727,7 @@ var RadioIcon = ({ className }) => {
5718
5727
  strokeWidth: "2"
5719
5728
  }
5720
5729
  ),
5721
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("rect", { x: "4", y: "4", width: "16", height: "16", rx: "8", fill: "currentColor" })
5730
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("rect", { x: "4", y: "4", width: "16", height: "16", rx: "8", fill: "currentColor" })
5722
5731
  ]
5723
5732
  }
5724
5733
  );
@@ -5726,32 +5735,32 @@ var RadioIcon = ({ className }) => {
5726
5735
  RadioIcon.displayName = "RadioIcon";
5727
5736
 
5728
5737
  // src/components/AccessCard.tsx
5729
- var import_jsx_runtime61 = require("react/jsx-runtime");
5738
+ var import_jsx_runtime62 = require("react/jsx-runtime");
5730
5739
 
5731
5740
  // src/components/AccessCardGroup.tsx
5732
5741
  var import_clsx41 = __toESM(require("clsx"), 1);
5733
- var import_react35 = require("react");
5734
- var import_jsx_runtime62 = require("react/jsx-runtime");
5742
+ var import_react36 = require("react");
5743
+ var import_jsx_runtime63 = require("react/jsx-runtime");
5735
5744
 
5736
5745
  // src/components/DataGrid/PinnedColumns.tsx
5737
5746
  var import_clsx42 = __toESM(require("clsx"), 1);
5738
- var import_react38 = __toESM(require("react"), 1);
5747
+ var import_react39 = __toESM(require("react"), 1);
5739
5748
 
5740
5749
  // src/components/DataGrid/ColumnSelectorHeaderCell/index.tsx
5741
- var import_react37 = require("react");
5750
+ var import_react38 = require("react");
5742
5751
 
5743
5752
  // src/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.tsx
5744
- var import_react36 = require("react");
5745
- var import_jsx_runtime63 = require("react/jsx-runtime");
5753
+ var import_react37 = require("react");
5754
+ var import_jsx_runtime64 = require("react/jsx-runtime");
5746
5755
  function ColumnSelectorMenuOption({
5747
5756
  id,
5748
5757
  testid,
5749
5758
  column,
5750
5759
  toggleColumnVisibility
5751
5760
  }) {
5752
- const [isVisible, setIsVisible] = (0, import_react36.useState)(column.getIsVisible());
5761
+ const [isVisible, setIsVisible] = (0, import_react37.useState)(column.getIsVisible());
5753
5762
  const label = typeof column.columnDef.header === "string" ? column.columnDef.header : null;
5754
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(MenuOption, { id, testid, defaultChecked: isVisible, children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
5763
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(MenuOption, { id, testid, defaultChecked: isVisible, children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
5755
5764
  Checkbox,
5756
5765
  {
5757
5766
  id: id ? `${id}-checkbox` : void 0,
@@ -5767,7 +5776,7 @@ function ColumnSelectorMenuOption({
5767
5776
  }
5768
5777
 
5769
5778
  // src/components/DataGrid/ColumnSelectorHeaderCell/index.tsx
5770
- var import_jsx_runtime64 = require("react/jsx-runtime");
5779
+ var import_jsx_runtime65 = require("react/jsx-runtime");
5771
5780
  function ColumnSelectorHeaderCell({
5772
5781
  id,
5773
5782
  testid,
@@ -5775,9 +5784,9 @@ function ColumnSelectorHeaderCell({
5775
5784
  toggleColumnVisibility,
5776
5785
  resetColumnVisibility
5777
5786
  }) {
5778
- const ref = (0, import_react37.useRef)(null);
5779
- const [show, setShow] = (0, import_react37.useState)(false);
5780
- return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
5787
+ const ref = (0, import_react38.useRef)(null);
5788
+ const [show, setShow] = (0, import_react38.useState)(false);
5789
+ return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
5781
5790
  DataGridCell,
5782
5791
  {
5783
5792
  id,
@@ -5787,7 +5796,7 @@ function ColumnSelectorHeaderCell({
5787
5796
  color: "text-secondary-normal",
5788
5797
  ref,
5789
5798
  children: [
5790
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
5799
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
5791
5800
  Button,
5792
5801
  {
5793
5802
  id: id ? `${id}-button` : void 0,
@@ -5795,10 +5804,10 @@ function ColumnSelectorHeaderCell({
5795
5804
  onClick: () => setShow((prev) => !prev),
5796
5805
  variant: "navigation",
5797
5806
  iconOnly: true,
5798
- leftIcon: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Icon, { name: "tune" })
5807
+ leftIcon: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Icon, { name: "tune" })
5799
5808
  }
5800
5809
  ),
5801
- /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
5810
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
5802
5811
  Menu,
5803
5812
  {
5804
5813
  id: id ? `${id}-menu` : void 0,
@@ -5809,7 +5818,7 @@ function ColumnSelectorHeaderCell({
5809
5818
  setShow,
5810
5819
  calculateMinMaxHeight: true,
5811
5820
  children: [
5812
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
5821
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
5813
5822
  Button,
5814
5823
  {
5815
5824
  id: id ? `${id}-reset-button` : void 0,
@@ -5825,7 +5834,7 @@ function ColumnSelectorHeaderCell({
5825
5834
  table.getAllColumns().filter((x) => {
5826
5835
  var _a;
5827
5836
  return (_a = x.columnDef.meta) == null ? void 0 : _a.inVisibilityMenu;
5828
- }).map((column) => /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
5837
+ }).map((column) => /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
5829
5838
  ColumnSelectorMenuOption,
5830
5839
  {
5831
5840
  id: id ? `${id}-option-${column.id}` : void 0,
@@ -5844,7 +5853,7 @@ function ColumnSelectorHeaderCell({
5844
5853
  }
5845
5854
 
5846
5855
  // src/components/DataGrid/PinnedColumns.tsx
5847
- var import_jsx_runtime65 = require("react/jsx-runtime");
5856
+ var import_jsx_runtime66 = require("react/jsx-runtime");
5848
5857
  function PinnedColumns(_a) {
5849
5858
  var _b = _a, {
5850
5859
  id,
@@ -5876,7 +5885,7 @@ function PinnedColumns(_a) {
5876
5885
  const pinnedTestId = testid ? `${pinDirection}-pinned-${testid}` : void 0;
5877
5886
  const hasAnyHeaders = ((_a2 = headerGroups[0]) == null ? void 0 : _a2.headers.length) > 0;
5878
5887
  if (!hasAnyHeaders && !enableColumnSelector) return;
5879
- return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
5888
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
5880
5889
  "table",
5881
5890
  {
5882
5891
  className: (0, import_clsx42.default)(
@@ -5885,8 +5894,8 @@ function PinnedColumns(_a) {
5885
5894
  ),
5886
5895
  "data-testid": pinnedTestId,
5887
5896
  children: [
5888
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("thead", { className: "sticky top-0 z-20 grid", children: headerGroups.map((headerGroup) => {
5889
- return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
5897
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("thead", { className: "sticky top-0 z-20 grid", children: headerGroups.map((headerGroup) => {
5898
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
5890
5899
  "tr",
5891
5900
  {
5892
5901
  "data-testid": pinnedTestId ? `${pinnedTestId}-header-row-${headerGroup.id}` : void 0,
@@ -5901,7 +5910,7 @@ function PinnedColumns(_a) {
5901
5910
  const cellAlignment = (_c = (_b2 = header.column.columnDef.meta) == null ? void 0 : _b2.align) != null ? _c : typeof cellValue === "number" ? "right" : "left";
5902
5911
  if (typeof header.column.columnDef.header === "string") {
5903
5912
  const customHeaderWidth = (_d = header.column.columnDef.meta) == null ? void 0 : _d.headerWidth;
5904
- return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
5913
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
5905
5914
  DataCellHeader,
5906
5915
  {
5907
5916
  locked: true,
@@ -5918,11 +5927,11 @@ function PinnedColumns(_a) {
5918
5927
  }
5919
5928
  ),
5920
5929
  children: [
5921
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Subheader, { tall: true, children: header.column.columnDef.header }),
5930
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Subheader, { tall: true, children: header.column.columnDef.header }),
5922
5931
  getSortIcon(header.column.getIsSorted()),
5923
5932
  !header.column.getIsSorted() && header.column.getCanSort() && getSortIcon(header.column.getNextSortingOrder(), true),
5924
- header.column.getSortIndex() !== -1 && table.getState().sorting.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Subheader, { tall: true, children: header.column.getSortIndex() + 1 }),
5925
- !((_e = header.column.columnDef.meta) == null ? void 0 : _e.locked) && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
5933
+ header.column.getSortIndex() !== -1 && table.getState().sorting.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Subheader, { tall: true, children: header.column.getSortIndex() + 1 }),
5934
+ !((_e = header.column.columnDef.meta) == null ? void 0 : _e.locked) && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
5926
5935
  "div",
5927
5936
  {
5928
5937
  onDoubleClick: (e) => {
@@ -5945,7 +5954,7 @@ function PinnedColumns(_a) {
5945
5954
  header.id
5946
5955
  );
5947
5956
  }
5948
- return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_react38.default.Fragment, { children: ((_f = header.column.columnDef.meta) == null ? void 0 : _f.checkbox) ? /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(DataGridCell, { type: "header", component: "checkbox", locked: true, children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
5957
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_react39.default.Fragment, { children: ((_f = header.column.columnDef.meta) == null ? void 0 : _f.checkbox) ? /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(DataGridCell, { type: "header", component: "checkbox", locked: true, children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
5949
5958
  Checkbox,
5950
5959
  {
5951
5960
  checked: allSelectedAcrossPages,
@@ -5957,7 +5966,7 @@ function PinnedColumns(_a) {
5957
5966
  header.getContext()
5958
5967
  ) }, header.id);
5959
5968
  }),
5960
- enableColumnSelector && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
5969
+ enableColumnSelector && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
5961
5970
  ColumnSelectorHeaderCell,
5962
5971
  {
5963
5972
  id: id ? `${id}-column-selector` : void 0,
@@ -5974,7 +5983,7 @@ function PinnedColumns(_a) {
5974
5983
  headerGroup.id
5975
5984
  );
5976
5985
  }) }),
5977
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
5986
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
5978
5987
  TableBody,
5979
5988
  __spreadProps(__spreadValues({
5980
5989
  testid: pinnedTestId
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  PinnedColumns
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";
@@ -5821,12 +5821,21 @@ var import_jsx_runtime60 = require("react/jsx-runtime");
5821
5821
  // src/components/OrderCheckIcon.tsx
5822
5822
  var import_jsx_runtime61 = require("react/jsx-runtime");
5823
5823
 
5824
+ // src/components/EditingContext.tsx
5825
+ var import_react38 = require("react");
5826
+ var import_jsx_runtime62 = require("react/jsx-runtime");
5827
+ var EditingContext = (0, import_react38.createContext)({
5828
+ data: [],
5829
+ setData: () => {
5830
+ }
5831
+ });
5832
+
5824
5833
  // src/components/AccessCard.tsx
5825
5834
  var import_clsx41 = __toESM(require("clsx"), 1);
5826
5835
 
5827
5836
  // src/components/Radio.tsx
5828
5837
  var import_clsx40 = __toESM(require("clsx"), 1);
5829
- var import_jsx_runtime62 = require("react/jsx-runtime");
5838
+ var import_jsx_runtime63 = require("react/jsx-runtime");
5830
5839
  var Radio = (_a) => {
5831
5840
  var _b = _a, {
5832
5841
  className,
@@ -5861,7 +5870,7 @@ var Radio = (_a) => {
5861
5870
  const readonlyClassName = (0, import_clsx40.default)(
5862
5871
  readOnly && "peer-read-only:bg-background-action-secondary-disabled peer-read-only:border-border-primary-normal peer-checked:border-0"
5863
5872
  );
5864
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
5873
+ return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
5865
5874
  "label",
5866
5875
  {
5867
5876
  htmlFor: radioId,
@@ -5873,8 +5882,8 @@ var Radio = (_a) => {
5873
5882
  className
5874
5883
  ),
5875
5884
  children: [
5876
- /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { className: "relative", children: [
5877
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
5885
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: "relative", children: [
5886
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
5878
5887
  "input",
5879
5888
  __spreadValues({
5880
5889
  id: radioId,
@@ -5886,7 +5895,7 @@ var Radio = (_a) => {
5886
5895
  readOnly
5887
5896
  }, props)
5888
5897
  ),
5889
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
5898
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
5890
5899
  "div",
5891
5900
  {
5892
5901
  className: (0, import_clsx40.default)(
@@ -5897,7 +5906,7 @@ var Radio = (_a) => {
5897
5906
  disabledClassName,
5898
5907
  readonlyClassName
5899
5908
  ),
5900
- children: checked && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
5909
+ children: checked && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
5901
5910
  RadioIcon,
5902
5911
  {
5903
5912
  className: (0, import_clsx40.default)(
@@ -5912,14 +5921,14 @@ var Radio = (_a) => {
5912
5921
  }
5913
5922
  )
5914
5923
  ] }),
5915
- 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 })
5924
+ 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 })
5916
5925
  ]
5917
5926
  }
5918
5927
  );
5919
5928
  };
5920
5929
  Radio.displayName = "Radio";
5921
5930
  var RadioIcon = ({ className }) => {
5922
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
5931
+ return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
5923
5932
  "svg",
5924
5933
  {
5925
5934
  className,
@@ -5929,7 +5938,7 @@ var RadioIcon = ({ className }) => {
5929
5938
  viewBox: "0 0 24 24",
5930
5939
  fill: "none",
5931
5940
  children: [
5932
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
5941
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
5933
5942
  "rect",
5934
5943
  {
5935
5944
  x: "1",
@@ -5941,7 +5950,7 @@ var RadioIcon = ({ className }) => {
5941
5950
  strokeWidth: "2"
5942
5951
  }
5943
5952
  ),
5944
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("rect", { x: "4", y: "4", width: "16", height: "16", rx: "8", fill: "currentColor" })
5953
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("rect", { x: "4", y: "4", width: "16", height: "16", rx: "8", fill: "currentColor" })
5945
5954
  ]
5946
5955
  }
5947
5956
  );
@@ -5949,15 +5958,15 @@ var RadioIcon = ({ className }) => {
5949
5958
  RadioIcon.displayName = "RadioIcon";
5950
5959
 
5951
5960
  // src/components/AccessCard.tsx
5952
- var import_jsx_runtime63 = require("react/jsx-runtime");
5961
+ var import_jsx_runtime64 = require("react/jsx-runtime");
5953
5962
 
5954
5963
  // src/components/AccessCardGroup.tsx
5955
5964
  var import_clsx42 = __toESM(require("clsx"), 1);
5956
- var import_react38 = require("react");
5957
- var import_jsx_runtime64 = require("react/jsx-runtime");
5965
+ var import_react39 = require("react");
5966
+ var import_jsx_runtime65 = require("react/jsx-runtime");
5958
5967
 
5959
5968
  // src/components/DataGrid/TableBody/LoadingCell.tsx
5960
- var import_jsx_runtime65 = require("react/jsx-runtime");
5969
+ var import_jsx_runtime66 = require("react/jsx-runtime");
5961
5970
  function LoadingCell({
5962
5971
  id,
5963
5972
  testid,
@@ -5965,16 +5974,16 @@ function LoadingCell({
5965
5974
  }) {
5966
5975
  const key = `loading-${column.id}`;
5967
5976
  if (column.cell === "checkbox") {
5968
- 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);
5977
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(DataGridCell, { id: id ? `${id}-${key}` : void 0, testid: testid ? `${testid}-${key}` : void 0, children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Checkbox, { id: id ? `${id}-${key}-checkbox` : void 0, testid: testid ? `${testid}-${key}-checkbox` : void 0, disabled: true }) }, key);
5969
5978
  }
5970
5979
  if (column.cell === "input") {
5971
- return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
5980
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
5972
5981
  DataGridCell,
5973
5982
  {
5974
5983
  id: id ? `${id}-${key}` : void 0,
5975
5984
  testid: testid ? `${testid}-${key}` : void 0,
5976
5985
  component: "input",
5977
- children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
5986
+ children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
5978
5987
  Input,
5979
5988
  {
5980
5989
  id: id ? `${id}-${key}-input` : void 0,
@@ -5988,7 +5997,7 @@ function LoadingCell({
5988
5997
  key
5989
5998
  );
5990
5999
  }
5991
- 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);
6000
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(DataGridCell, { id: id ? `${id}-${key}` : void 0, testid: testid ? `${testid}-${key}` : void 0, children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "bg-linear-270 to-neutral-300/[24%] from-neutral-300/[12%] rounded-xs w-full max-w-25 h-6" }) }, key);
5992
6001
  }
5993
6002
  // Annotate the CommonJS export names for ESM import in node:
5994
6003
  0 && (module.exports = {