@dmsi/wedgekit-react 0.0.451 → 0.0.452
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.
- package/dist/{chunk-3HBYDOYE.js → chunk-5H4VGR2X.js} +1 -1
- package/dist/chunk-75USUR3I.js +27 -0
- package/dist/{chunk-FFGIFICI.js → chunk-FJ7XT63P.js} +1 -1
- package/dist/{chunk-7B334WPV.js → chunk-YUGQX4KH.js} +1 -1
- package/dist/components/CalendarRange.cjs +28 -25
- package/dist/components/CalendarRange.js +9 -8
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.cjs +5 -2
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.js +9 -8
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.cjs +12 -9
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.js +9 -8
- package/dist/components/DataGrid/PinnedColumns.cjs +23 -20
- package/dist/components/DataGrid/PinnedColumns.js +9 -8
- package/dist/components/DataGrid/TableBody/LoadingCell.cjs +8 -5
- package/dist/components/DataGrid/TableBody/LoadingCell.js +9 -8
- package/dist/components/DataGrid/TableBody/TableBodyRow.cjs +10 -7
- package/dist/components/DataGrid/TableBody/TableBodyRow.js +9 -8
- package/dist/components/DataGrid/TableBody/index.cjs +23 -20
- package/dist/components/DataGrid/TableBody/index.js +9 -8
- package/dist/components/DataGrid/index.cjs +83 -80
- package/dist/components/DataGrid/index.js +9 -8
- package/dist/components/DataGrid/utils.cjs +6 -3
- package/dist/components/DataGrid/utils.js +9 -8
- package/dist/components/DateInput.cjs +34 -31
- package/dist/components/DateInput.js +9 -8
- package/dist/components/DateRangeInput.cjs +34 -31
- package/dist/components/DateRangeInput.js +9 -8
- package/dist/components/EmptyCartIcon.cjs +51 -0
- package/dist/components/EmptyCartIcon.js +7 -0
- package/dist/components/MobileDataGrid/ColumnList.js +1 -1
- package/dist/components/MobileDataGrid/ColumnSelector/index.cjs +11 -8
- package/dist/components/MobileDataGrid/ColumnSelector/index.js +9 -8
- package/dist/components/MobileDataGrid/MobileDataGridCard/index.js +1 -1
- package/dist/components/MobileDataGrid/MobileDataGridHeader.cjs +19 -16
- package/dist/components/MobileDataGrid/MobileDataGridHeader.js +9 -8
- package/dist/components/MobileDataGrid/RowDetailModalProvider/ModalContent.js +1 -1
- package/dist/components/MobileDataGrid/RowDetailModalProvider/index.js +4 -4
- package/dist/components/MobileDataGrid/index.cjs +64 -61
- package/dist/components/MobileDataGrid/index.js +9 -8
- package/dist/components/Modal.js +2 -2
- package/dist/components/PDFViewer/index.js +4 -4
- package/dist/components/index.cjs +26 -0
- package/dist/components/index.js +12 -8
- package/package.json +1 -1
- package/src/components/EmptyCartIcon.tsx +18 -0
- package/src/components/index.ts +1 -0
- package/dist/{chunk-SBCFBHNG.js → chunk-3N66DG6V.js} +3 -3
|
@@ -4593,6 +4593,9 @@ Pagination.displayName = "Pagination";
|
|
|
4593
4593
|
// src/components/SkeletonParagraph.tsx
|
|
4594
4594
|
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
4595
4595
|
|
|
4596
|
+
// src/components/EmptyCartIcon.tsx
|
|
4597
|
+
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
4598
|
+
|
|
4596
4599
|
// src/components/DataGrid/PinnedColumns.tsx
|
|
4597
4600
|
var import_clsx37 = __toESM(require("clsx"), 1);
|
|
4598
4601
|
var import_react36 = __toESM(require("react"), 1);
|
|
@@ -4602,7 +4605,7 @@ var import_react35 = require("react");
|
|
|
4602
4605
|
|
|
4603
4606
|
// src/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.tsx
|
|
4604
4607
|
var import_react34 = require("react");
|
|
4605
|
-
var
|
|
4608
|
+
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
4606
4609
|
function ColumnSelectorMenuOption({
|
|
4607
4610
|
id,
|
|
4608
4611
|
testid,
|
|
@@ -4611,7 +4614,7 @@ function ColumnSelectorMenuOption({
|
|
|
4611
4614
|
}) {
|
|
4612
4615
|
const [isVisible, setIsVisible] = (0, import_react34.useState)(column.getIsVisible());
|
|
4613
4616
|
const label = typeof column.columnDef.header === "string" ? column.columnDef.header : null;
|
|
4614
|
-
return /* @__PURE__ */ (0,
|
|
4617
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(MenuOption, { id, testid, defaultChecked: isVisible, children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
4615
4618
|
Checkbox,
|
|
4616
4619
|
{
|
|
4617
4620
|
id: id ? `${id}-checkbox` : void 0,
|
|
@@ -4627,7 +4630,7 @@ function ColumnSelectorMenuOption({
|
|
|
4627
4630
|
}
|
|
4628
4631
|
|
|
4629
4632
|
// src/components/DataGrid/ColumnSelectorHeaderCell/index.tsx
|
|
4630
|
-
var
|
|
4633
|
+
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
4631
4634
|
function ColumnSelectorHeaderCell({
|
|
4632
4635
|
id,
|
|
4633
4636
|
testid,
|
|
@@ -4637,7 +4640,7 @@ function ColumnSelectorHeaderCell({
|
|
|
4637
4640
|
}) {
|
|
4638
4641
|
const ref = (0, import_react35.useRef)(null);
|
|
4639
4642
|
const [show, setShow] = (0, import_react35.useState)(false);
|
|
4640
|
-
return /* @__PURE__ */ (0,
|
|
4643
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
|
|
4641
4644
|
DataGridCell,
|
|
4642
4645
|
{
|
|
4643
4646
|
id,
|
|
@@ -4647,7 +4650,7 @@ function ColumnSelectorHeaderCell({
|
|
|
4647
4650
|
color: "text-secondary-normal",
|
|
4648
4651
|
ref,
|
|
4649
4652
|
children: [
|
|
4650
|
-
/* @__PURE__ */ (0,
|
|
4653
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
4651
4654
|
Button,
|
|
4652
4655
|
{
|
|
4653
4656
|
id: id ? `${id}-button` : void 0,
|
|
@@ -4655,10 +4658,10 @@ function ColumnSelectorHeaderCell({
|
|
|
4655
4658
|
onClick: () => setShow((prev) => !prev),
|
|
4656
4659
|
variant: "navigation",
|
|
4657
4660
|
iconOnly: true,
|
|
4658
|
-
leftIcon: /* @__PURE__ */ (0,
|
|
4661
|
+
leftIcon: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Icon, { name: "tune" })
|
|
4659
4662
|
}
|
|
4660
4663
|
),
|
|
4661
|
-
/* @__PURE__ */ (0,
|
|
4664
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
|
|
4662
4665
|
Menu,
|
|
4663
4666
|
{
|
|
4664
4667
|
id: id ? `${id}-menu` : void 0,
|
|
@@ -4669,7 +4672,7 @@ function ColumnSelectorHeaderCell({
|
|
|
4669
4672
|
setShow,
|
|
4670
4673
|
calculateMinMaxHeight: true,
|
|
4671
4674
|
children: [
|
|
4672
|
-
/* @__PURE__ */ (0,
|
|
4675
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
4673
4676
|
Button,
|
|
4674
4677
|
{
|
|
4675
4678
|
id: id ? `${id}-reset-button` : void 0,
|
|
@@ -4685,7 +4688,7 @@ function ColumnSelectorHeaderCell({
|
|
|
4685
4688
|
table.getAllColumns().filter((x) => {
|
|
4686
4689
|
var _a;
|
|
4687
4690
|
return (_a = x.columnDef.meta) == null ? void 0 : _a.inVisibilityMenu;
|
|
4688
|
-
}).map((column) => /* @__PURE__ */ (0,
|
|
4691
|
+
}).map((column) => /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
4689
4692
|
ColumnSelectorMenuOption,
|
|
4690
4693
|
{
|
|
4691
4694
|
id: id ? `${id}-option-${column.id}` : void 0,
|
|
@@ -4704,7 +4707,7 @@ function ColumnSelectorHeaderCell({
|
|
|
4704
4707
|
}
|
|
4705
4708
|
|
|
4706
4709
|
// src/components/DataGrid/PinnedColumns.tsx
|
|
4707
|
-
var
|
|
4710
|
+
var import_jsx_runtime61 = require("react/jsx-runtime");
|
|
4708
4711
|
function PinnedColumns(_a) {
|
|
4709
4712
|
var _b = _a, {
|
|
4710
4713
|
id,
|
|
@@ -4736,7 +4739,7 @@ function PinnedColumns(_a) {
|
|
|
4736
4739
|
const pinnedTestId = testid ? `${pinDirection}-pinned-${testid}` : void 0;
|
|
4737
4740
|
const hasAnyHeaders = ((_a2 = headerGroups[0]) == null ? void 0 : _a2.headers.length) > 0;
|
|
4738
4741
|
if (!hasAnyHeaders && !enableColumnSelector) return;
|
|
4739
|
-
return /* @__PURE__ */ (0,
|
|
4742
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
|
|
4740
4743
|
"table",
|
|
4741
4744
|
{
|
|
4742
4745
|
className: (0, import_clsx37.default)(
|
|
@@ -4745,8 +4748,8 @@ function PinnedColumns(_a) {
|
|
|
4745
4748
|
),
|
|
4746
4749
|
"data-testid": pinnedTestId,
|
|
4747
4750
|
children: [
|
|
4748
|
-
/* @__PURE__ */ (0,
|
|
4749
|
-
return /* @__PURE__ */ (0,
|
|
4751
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)("thead", { className: "sticky top-0 z-20 grid", children: headerGroups.map((headerGroup) => {
|
|
4752
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
|
|
4750
4753
|
"tr",
|
|
4751
4754
|
{
|
|
4752
4755
|
"data-testid": pinnedTestId ? `${pinnedTestId}-header-row-${headerGroup.id}` : void 0,
|
|
@@ -4759,7 +4762,7 @@ function PinnedColumns(_a) {
|
|
|
4759
4762
|
}
|
|
4760
4763
|
if (typeof header.column.columnDef.header === "string") {
|
|
4761
4764
|
const customHeaderWidth = (_a3 = header.column.columnDef.meta) == null ? void 0 : _a3.headerWidth;
|
|
4762
|
-
return /* @__PURE__ */ (0,
|
|
4765
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
|
|
4763
4766
|
DataCellHeader,
|
|
4764
4767
|
{
|
|
4765
4768
|
locked: true,
|
|
@@ -4772,11 +4775,11 @@ function PinnedColumns(_a) {
|
|
|
4772
4775
|
"group"
|
|
4773
4776
|
),
|
|
4774
4777
|
children: [
|
|
4775
|
-
/* @__PURE__ */ (0,
|
|
4778
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Subheader, { tall: true, children: header.column.columnDef.header }),
|
|
4776
4779
|
getSortIcon(header.column.getIsSorted()),
|
|
4777
4780
|
!header.column.getIsSorted() && header.column.getCanSort() && getSortIcon(header.column.getNextSortingOrder(), true),
|
|
4778
|
-
header.column.getSortIndex() !== -1 && table.getState().sorting.length > 1 && /* @__PURE__ */ (0,
|
|
4779
|
-
!((_b2 = header.column.columnDef.meta) == null ? void 0 : _b2.locked) && /* @__PURE__ */ (0,
|
|
4781
|
+
header.column.getSortIndex() !== -1 && table.getState().sorting.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Subheader, { tall: true, children: header.column.getSortIndex() + 1 }),
|
|
4782
|
+
!((_b2 = header.column.columnDef.meta) == null ? void 0 : _b2.locked) && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
4780
4783
|
"div",
|
|
4781
4784
|
{
|
|
4782
4785
|
onDoubleClick: (e) => {
|
|
@@ -4799,7 +4802,7 @@ function PinnedColumns(_a) {
|
|
|
4799
4802
|
header.id
|
|
4800
4803
|
);
|
|
4801
4804
|
}
|
|
4802
|
-
return /* @__PURE__ */ (0,
|
|
4805
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_react36.default.Fragment, { children: ((_c = header.column.columnDef.meta) == null ? void 0 : _c.checkbox) ? /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(DataGridCell, { type: "header", component: "checkbox", locked: true, children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
4803
4806
|
Checkbox,
|
|
4804
4807
|
{
|
|
4805
4808
|
checked: allSelectedAcrossPages,
|
|
@@ -4811,7 +4814,7 @@ function PinnedColumns(_a) {
|
|
|
4811
4814
|
header.getContext()
|
|
4812
4815
|
) }, header.id);
|
|
4813
4816
|
}),
|
|
4814
|
-
enableColumnSelector && /* @__PURE__ */ (0,
|
|
4817
|
+
enableColumnSelector && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
4815
4818
|
ColumnSelectorHeaderCell,
|
|
4816
4819
|
{
|
|
4817
4820
|
id: id ? `${id}-column-selector` : void 0,
|
|
@@ -4828,7 +4831,7 @@ function PinnedColumns(_a) {
|
|
|
4828
4831
|
headerGroup.id
|
|
4829
4832
|
);
|
|
4830
4833
|
}) }),
|
|
4831
|
-
/* @__PURE__ */ (0,
|
|
4834
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
4832
4835
|
TableBody,
|
|
4833
4836
|
__spreadProps(__spreadValues({
|
|
4834
4837
|
testid: pinnedTestId
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PinnedColumns
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-
|
|
3
|
+
} from "../../chunk-YUGQX4KH.js";
|
|
4
|
+
import "../../chunk-FJ7XT63P.js";
|
|
5
5
|
import "../../chunk-NAY4I3FL.js";
|
|
6
6
|
import "../../chunk-M7INAUAJ.js";
|
|
7
|
-
import "../../chunk-
|
|
7
|
+
import "../../chunk-5H4VGR2X.js";
|
|
8
8
|
import "../../chunk-DNYGKNQM.js";
|
|
9
9
|
import "../../chunk-MBZ55T2D.js";
|
|
10
10
|
import "../../chunk-2IKT6IHB.js";
|
|
@@ -14,30 +14,31 @@ import "../../chunk-BQNPOGD5.js";
|
|
|
14
14
|
import "../../chunk-TJV3S52X.js";
|
|
15
15
|
import "../../chunk-RDJT63IS.js";
|
|
16
16
|
import "../../chunk-5IFPG6TS.js";
|
|
17
|
-
import "../../chunk-AJ5M6MVX.js";
|
|
18
17
|
import "../../chunk-7HCS6TZN.js";
|
|
18
|
+
import "../../chunk-AJ5M6MVX.js";
|
|
19
19
|
import "../../chunk-EJSPFQCY.js";
|
|
20
20
|
import "../../chunk-RQLWSLVE.js";
|
|
21
|
-
import "../../chunk-6LHBY2IH.js";
|
|
22
21
|
import "../../chunk-VJVY6NPF.js";
|
|
22
|
+
import "../../chunk-6LHBY2IH.js";
|
|
23
|
+
import "../../chunk-AT4AWD6B.js";
|
|
23
24
|
import "../../chunk-EWGHVZL5.js";
|
|
24
25
|
import "../../chunk-DCLNAUC4.js";
|
|
25
26
|
import "../../chunk-PQWWVBSR.js";
|
|
26
27
|
import "../../chunk-ETAEB3TA.js";
|
|
27
|
-
import "../../chunk-AT4AWD6B.js";
|
|
28
28
|
import "../../chunk-JQWYQDH7.js";
|
|
29
29
|
import "../../chunk-TYAQWVIM.js";
|
|
30
|
-
import "../../chunk-
|
|
30
|
+
import "../../chunk-3N66DG6V.js";
|
|
31
31
|
import "../../chunk-4RJKB7LC.js";
|
|
32
|
+
import "../../chunk-T36HX6QY.js";
|
|
32
33
|
import "../../chunk-AG43RS4Q.js";
|
|
33
34
|
import "../../chunk-XM7IQHBU.js";
|
|
34
35
|
import "../../chunk-FRHPFACM.js";
|
|
35
|
-
import "../../chunk-T36HX6QY.js";
|
|
36
36
|
import "../../chunk-IFHMGICR.js";
|
|
37
37
|
import "../../chunk-SBRRNFOP.js";
|
|
38
38
|
import "../../chunk-Y2GK27RX.js";
|
|
39
39
|
import "../../chunk-EU73QPW7.js";
|
|
40
40
|
import "../../chunk-QVWYTQKL.js";
|
|
41
|
+
import "../../chunk-75USUR3I.js";
|
|
41
42
|
import "../../chunk-NO5BIKWS.js";
|
|
42
43
|
import "../../chunk-CANJ2YPW.js";
|
|
43
44
|
import "../../chunk-4V6ZO2MR.js";
|
|
@@ -4810,8 +4810,11 @@ Pagination.displayName = "Pagination";
|
|
|
4810
4810
|
// src/components/SkeletonParagraph.tsx
|
|
4811
4811
|
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
4812
4812
|
|
|
4813
|
-
// src/components/
|
|
4813
|
+
// src/components/EmptyCartIcon.tsx
|
|
4814
4814
|
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
4815
|
+
|
|
4816
|
+
// src/components/DataGrid/TableBody/LoadingCell.tsx
|
|
4817
|
+
var import_jsx_runtime61 = require("react/jsx-runtime");
|
|
4815
4818
|
function LoadingCell({
|
|
4816
4819
|
id,
|
|
4817
4820
|
testid,
|
|
@@ -4819,16 +4822,16 @@ function LoadingCell({
|
|
|
4819
4822
|
}) {
|
|
4820
4823
|
const key = `loading-${column.id}`;
|
|
4821
4824
|
if (column.cell === "checkbox") {
|
|
4822
|
-
return /* @__PURE__ */ (0,
|
|
4825
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(DataGridCell, { id: id ? `${id}-${key}` : void 0, testid: testid ? `${testid}-${key}` : void 0, children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Checkbox, { id: id ? `${id}-${key}-checkbox` : void 0, testid: testid ? `${testid}-${key}-checkbox` : void 0, disabled: true }) }, key);
|
|
4823
4826
|
}
|
|
4824
4827
|
if (column.cell === "input") {
|
|
4825
|
-
return /* @__PURE__ */ (0,
|
|
4828
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
4826
4829
|
DataGridCell,
|
|
4827
4830
|
{
|
|
4828
4831
|
id: id ? `${id}-${key}` : void 0,
|
|
4829
4832
|
testid: testid ? `${testid}-${key}` : void 0,
|
|
4830
4833
|
component: "input",
|
|
4831
|
-
children: /* @__PURE__ */ (0,
|
|
4834
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
4832
4835
|
Input,
|
|
4833
4836
|
{
|
|
4834
4837
|
id: id ? `${id}-${key}-input` : void 0,
|
|
@@ -4842,7 +4845,7 @@ function LoadingCell({
|
|
|
4842
4845
|
key
|
|
4843
4846
|
);
|
|
4844
4847
|
}
|
|
4845
|
-
return /* @__PURE__ */ (0,
|
|
4848
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(DataGridCell, { id: id ? `${id}-${key}` : void 0, testid: testid ? `${testid}-${key}` : void 0, children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: "bg-linear-270 to-neutral-300/[24%] from-neutral-300/[12%] rounded-xs w-full max-w-25 h-6" }) }, key);
|
|
4846
4849
|
}
|
|
4847
4850
|
// Annotate the CommonJS export names for ESM import in node:
|
|
4848
4851
|
0 && (module.exports = {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
LoadingCell
|
|
3
|
-
} from "../../../chunk-
|
|
4
|
-
import "../../../chunk-
|
|
3
|
+
} from "../../../chunk-YUGQX4KH.js";
|
|
4
|
+
import "../../../chunk-FJ7XT63P.js";
|
|
5
5
|
import "../../../chunk-NAY4I3FL.js";
|
|
6
6
|
import "../../../chunk-M7INAUAJ.js";
|
|
7
|
-
import "../../../chunk-
|
|
7
|
+
import "../../../chunk-5H4VGR2X.js";
|
|
8
8
|
import "../../../chunk-DNYGKNQM.js";
|
|
9
9
|
import "../../../chunk-MBZ55T2D.js";
|
|
10
10
|
import "../../../chunk-2IKT6IHB.js";
|
|
@@ -14,30 +14,31 @@ import "../../../chunk-BQNPOGD5.js";
|
|
|
14
14
|
import "../../../chunk-TJV3S52X.js";
|
|
15
15
|
import "../../../chunk-RDJT63IS.js";
|
|
16
16
|
import "../../../chunk-5IFPG6TS.js";
|
|
17
|
-
import "../../../chunk-AJ5M6MVX.js";
|
|
18
17
|
import "../../../chunk-7HCS6TZN.js";
|
|
18
|
+
import "../../../chunk-AJ5M6MVX.js";
|
|
19
19
|
import "../../../chunk-EJSPFQCY.js";
|
|
20
20
|
import "../../../chunk-RQLWSLVE.js";
|
|
21
|
-
import "../../../chunk-6LHBY2IH.js";
|
|
22
21
|
import "../../../chunk-VJVY6NPF.js";
|
|
22
|
+
import "../../../chunk-6LHBY2IH.js";
|
|
23
|
+
import "../../../chunk-AT4AWD6B.js";
|
|
23
24
|
import "../../../chunk-EWGHVZL5.js";
|
|
24
25
|
import "../../../chunk-DCLNAUC4.js";
|
|
25
26
|
import "../../../chunk-PQWWVBSR.js";
|
|
26
27
|
import "../../../chunk-ETAEB3TA.js";
|
|
27
|
-
import "../../../chunk-AT4AWD6B.js";
|
|
28
28
|
import "../../../chunk-JQWYQDH7.js";
|
|
29
29
|
import "../../../chunk-TYAQWVIM.js";
|
|
30
|
-
import "../../../chunk-
|
|
30
|
+
import "../../../chunk-3N66DG6V.js";
|
|
31
31
|
import "../../../chunk-4RJKB7LC.js";
|
|
32
|
+
import "../../../chunk-T36HX6QY.js";
|
|
32
33
|
import "../../../chunk-AG43RS4Q.js";
|
|
33
34
|
import "../../../chunk-XM7IQHBU.js";
|
|
34
35
|
import "../../../chunk-FRHPFACM.js";
|
|
35
|
-
import "../../../chunk-T36HX6QY.js";
|
|
36
36
|
import "../../../chunk-IFHMGICR.js";
|
|
37
37
|
import "../../../chunk-SBRRNFOP.js";
|
|
38
38
|
import "../../../chunk-Y2GK27RX.js";
|
|
39
39
|
import "../../../chunk-EU73QPW7.js";
|
|
40
40
|
import "../../../chunk-QVWYTQKL.js";
|
|
41
|
+
import "../../../chunk-75USUR3I.js";
|
|
41
42
|
import "../../../chunk-NO5BIKWS.js";
|
|
42
43
|
import "../../../chunk-CANJ2YPW.js";
|
|
43
44
|
import "../../../chunk-4V6ZO2MR.js";
|
|
@@ -4744,8 +4744,11 @@ Pagination.displayName = "Pagination";
|
|
|
4744
4744
|
// src/components/SkeletonParagraph.tsx
|
|
4745
4745
|
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
4746
4746
|
|
|
4747
|
-
// src/components/
|
|
4747
|
+
// src/components/EmptyCartIcon.tsx
|
|
4748
4748
|
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
4749
|
+
|
|
4750
|
+
// src/components/DataGrid/TableBody/TableBodyRow.tsx
|
|
4751
|
+
var import_jsx_runtime61 = require("react/jsx-runtime");
|
|
4749
4752
|
var valueFormatters = {
|
|
4750
4753
|
date: (value) => typeof value === "string" ? formatDate(value) : "",
|
|
4751
4754
|
currency: (value) => formatCurrencyDisplay(value)
|
|
@@ -4778,7 +4781,7 @@ function TableBodyRow({
|
|
|
4778
4781
|
const columns = locked ? visibleCells : virtualColumns;
|
|
4779
4782
|
const isError = typeof row.original === "object" && row.original !== null && "rowState" in row.original && row.original.rowState === "error";
|
|
4780
4783
|
const CellElement = locked ? DataGridCell : DragAlongCell;
|
|
4781
|
-
return /* @__PURE__ */ (0,
|
|
4784
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
|
|
4782
4785
|
"tr",
|
|
4783
4786
|
{
|
|
4784
4787
|
className: (0, import_clsx37.default)(
|
|
@@ -4799,7 +4802,7 @@ function TableBodyRow({
|
|
|
4799
4802
|
children: [
|
|
4800
4803
|
!locked && virtualPaddingLeft ? (
|
|
4801
4804
|
// fake empty column to the left for virtualization scroll padding
|
|
4802
|
-
/* @__PURE__ */ (0,
|
|
4805
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)("td", { style: { display: "flex", width: virtualPaddingLeft } })
|
|
4803
4806
|
) : null,
|
|
4804
4807
|
columns.map((column) => {
|
|
4805
4808
|
var _a2, _b, _c, _d;
|
|
@@ -4810,7 +4813,7 @@ function TableBodyRow({
|
|
|
4810
4813
|
const cellFormat = (_a2 = cell.column.columnDef.meta) == null ? void 0 : _a2.format;
|
|
4811
4814
|
const cellValue = cellFormat && isValueFormatterKey(cellFormat) ? valueFormatters[cellFormat](cell.getValue()) : cell.getValue();
|
|
4812
4815
|
const cellAlignment = (_c = (_b = cell.column.columnDef.meta) == null ? void 0 : _b.align) != null ? _c : typeof cellValue === "number" ? "right" : "left";
|
|
4813
|
-
return ((_d = cell.column.columnDef.meta) == null ? void 0 : _d.useCustomRenderer) ? /* @__PURE__ */ (0,
|
|
4816
|
+
return ((_d = cell.column.columnDef.meta) == null ? void 0 : _d.useCustomRenderer) ? /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_react36.default.Fragment, { children: (0, import_react_table3.flexRender)(cell.column.columnDef.cell, cell.getContext()) }, cell.id) : /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
4814
4817
|
CellElement,
|
|
4815
4818
|
{
|
|
4816
4819
|
id: id ? `${id}-row-${row.id}-cell-${cell.id}` : void 0,
|
|
@@ -4820,7 +4823,7 @@ function TableBodyRow({
|
|
|
4820
4823
|
"justify-start": cellAlignment === "left",
|
|
4821
4824
|
"justify-end": cellAlignment === "right"
|
|
4822
4825
|
}),
|
|
4823
|
-
children: /* @__PURE__ */ (0,
|
|
4826
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
4824
4827
|
Tooltip,
|
|
4825
4828
|
{
|
|
4826
4829
|
id: id ? `${id}-tooltip-${cell.id}` : void 0,
|
|
@@ -4828,7 +4831,7 @@ function TableBodyRow({
|
|
|
4828
4831
|
showOnTruncation: true,
|
|
4829
4832
|
message: cellValue,
|
|
4830
4833
|
position: "bottom",
|
|
4831
|
-
children: /* @__PURE__ */ (0,
|
|
4834
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Paragraph, { addOverflow: true, tall: true, children: cellValue })
|
|
4832
4835
|
}
|
|
4833
4836
|
)
|
|
4834
4837
|
},
|
|
@@ -4837,7 +4840,7 @@ function TableBodyRow({
|
|
|
4837
4840
|
}),
|
|
4838
4841
|
!locked && virtualPaddingRight ? (
|
|
4839
4842
|
// fake empty column to the right for virtualization scroll padding
|
|
4840
|
-
/* @__PURE__ */ (0,
|
|
4843
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)("td", { style: { display: "flex", width: virtualPaddingRight } })
|
|
4841
4844
|
) : null
|
|
4842
4845
|
]
|
|
4843
4846
|
},
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
TableBodyRow
|
|
3
|
-
} from "../../../chunk-
|
|
4
|
-
import "../../../chunk-
|
|
3
|
+
} from "../../../chunk-YUGQX4KH.js";
|
|
4
|
+
import "../../../chunk-FJ7XT63P.js";
|
|
5
5
|
import "../../../chunk-NAY4I3FL.js";
|
|
6
6
|
import "../../../chunk-M7INAUAJ.js";
|
|
7
|
-
import "../../../chunk-
|
|
7
|
+
import "../../../chunk-5H4VGR2X.js";
|
|
8
8
|
import "../../../chunk-DNYGKNQM.js";
|
|
9
9
|
import "../../../chunk-MBZ55T2D.js";
|
|
10
10
|
import "../../../chunk-2IKT6IHB.js";
|
|
@@ -14,30 +14,31 @@ import "../../../chunk-BQNPOGD5.js";
|
|
|
14
14
|
import "../../../chunk-TJV3S52X.js";
|
|
15
15
|
import "../../../chunk-RDJT63IS.js";
|
|
16
16
|
import "../../../chunk-5IFPG6TS.js";
|
|
17
|
-
import "../../../chunk-AJ5M6MVX.js";
|
|
18
17
|
import "../../../chunk-7HCS6TZN.js";
|
|
18
|
+
import "../../../chunk-AJ5M6MVX.js";
|
|
19
19
|
import "../../../chunk-EJSPFQCY.js";
|
|
20
20
|
import "../../../chunk-RQLWSLVE.js";
|
|
21
|
-
import "../../../chunk-6LHBY2IH.js";
|
|
22
21
|
import "../../../chunk-VJVY6NPF.js";
|
|
22
|
+
import "../../../chunk-6LHBY2IH.js";
|
|
23
|
+
import "../../../chunk-AT4AWD6B.js";
|
|
23
24
|
import "../../../chunk-EWGHVZL5.js";
|
|
24
25
|
import "../../../chunk-DCLNAUC4.js";
|
|
25
26
|
import "../../../chunk-PQWWVBSR.js";
|
|
26
27
|
import "../../../chunk-ETAEB3TA.js";
|
|
27
|
-
import "../../../chunk-AT4AWD6B.js";
|
|
28
28
|
import "../../../chunk-JQWYQDH7.js";
|
|
29
29
|
import "../../../chunk-TYAQWVIM.js";
|
|
30
|
-
import "../../../chunk-
|
|
30
|
+
import "../../../chunk-3N66DG6V.js";
|
|
31
31
|
import "../../../chunk-4RJKB7LC.js";
|
|
32
|
+
import "../../../chunk-T36HX6QY.js";
|
|
32
33
|
import "../../../chunk-AG43RS4Q.js";
|
|
33
34
|
import "../../../chunk-XM7IQHBU.js";
|
|
34
35
|
import "../../../chunk-FRHPFACM.js";
|
|
35
|
-
import "../../../chunk-T36HX6QY.js";
|
|
36
36
|
import "../../../chunk-IFHMGICR.js";
|
|
37
37
|
import "../../../chunk-SBRRNFOP.js";
|
|
38
38
|
import "../../../chunk-Y2GK27RX.js";
|
|
39
39
|
import "../../../chunk-EU73QPW7.js";
|
|
40
40
|
import "../../../chunk-QVWYTQKL.js";
|
|
41
|
+
import "../../../chunk-75USUR3I.js";
|
|
41
42
|
import "../../../chunk-NO5BIKWS.js";
|
|
42
43
|
import "../../../chunk-CANJ2YPW.js";
|
|
43
44
|
import "../../../chunk-4V6ZO2MR.js";
|
|
@@ -4563,6 +4563,9 @@ Pagination.displayName = "Pagination";
|
|
|
4563
4563
|
// src/components/SkeletonParagraph.tsx
|
|
4564
4564
|
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
4565
4565
|
|
|
4566
|
+
// src/components/EmptyCartIcon.tsx
|
|
4567
|
+
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
4568
|
+
|
|
4566
4569
|
// src/components/DataGrid/TableBody/index.tsx
|
|
4567
4570
|
var import_clsx37 = __toESM(require("clsx"), 1);
|
|
4568
4571
|
|
|
@@ -4570,7 +4573,7 @@ var import_clsx37 = __toESM(require("clsx"), 1);
|
|
|
4570
4573
|
var import_clsx36 = __toESM(require("clsx"), 1);
|
|
4571
4574
|
var import_react_table3 = require("@tanstack/react-table");
|
|
4572
4575
|
var import_react36 = __toESM(require("react"), 1);
|
|
4573
|
-
var
|
|
4576
|
+
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
4574
4577
|
var valueFormatters = {
|
|
4575
4578
|
date: (value) => typeof value === "string" ? formatDate(value) : "",
|
|
4576
4579
|
currency: (value) => formatCurrencyDisplay(value)
|
|
@@ -4603,7 +4606,7 @@ function TableBodyRow({
|
|
|
4603
4606
|
const columns = locked ? visibleCells : virtualColumns;
|
|
4604
4607
|
const isError = typeof row.original === "object" && row.original !== null && "rowState" in row.original && row.original.rowState === "error";
|
|
4605
4608
|
const CellElement = locked ? DataGridCell : DragAlongCell;
|
|
4606
|
-
return /* @__PURE__ */ (0,
|
|
4609
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
|
|
4607
4610
|
"tr",
|
|
4608
4611
|
{
|
|
4609
4612
|
className: (0, import_clsx36.default)(
|
|
@@ -4624,7 +4627,7 @@ function TableBodyRow({
|
|
|
4624
4627
|
children: [
|
|
4625
4628
|
!locked && virtualPaddingLeft ? (
|
|
4626
4629
|
// fake empty column to the left for virtualization scroll padding
|
|
4627
|
-
/* @__PURE__ */ (0,
|
|
4630
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("td", { style: { display: "flex", width: virtualPaddingLeft } })
|
|
4628
4631
|
) : null,
|
|
4629
4632
|
columns.map((column) => {
|
|
4630
4633
|
var _a2, _b, _c, _d;
|
|
@@ -4635,7 +4638,7 @@ function TableBodyRow({
|
|
|
4635
4638
|
const cellFormat = (_a2 = cell.column.columnDef.meta) == null ? void 0 : _a2.format;
|
|
4636
4639
|
const cellValue = cellFormat && isValueFormatterKey(cellFormat) ? valueFormatters[cellFormat](cell.getValue()) : cell.getValue();
|
|
4637
4640
|
const cellAlignment = (_c = (_b = cell.column.columnDef.meta) == null ? void 0 : _b.align) != null ? _c : typeof cellValue === "number" ? "right" : "left";
|
|
4638
|
-
return ((_d = cell.column.columnDef.meta) == null ? void 0 : _d.useCustomRenderer) ? /* @__PURE__ */ (0,
|
|
4641
|
+
return ((_d = cell.column.columnDef.meta) == null ? void 0 : _d.useCustomRenderer) ? /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_react36.default.Fragment, { children: (0, import_react_table3.flexRender)(cell.column.columnDef.cell, cell.getContext()) }, cell.id) : /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
4639
4642
|
CellElement,
|
|
4640
4643
|
{
|
|
4641
4644
|
id: id ? `${id}-row-${row.id}-cell-${cell.id}` : void 0,
|
|
@@ -4645,7 +4648,7 @@ function TableBodyRow({
|
|
|
4645
4648
|
"justify-start": cellAlignment === "left",
|
|
4646
4649
|
"justify-end": cellAlignment === "right"
|
|
4647
4650
|
}),
|
|
4648
|
-
children: /* @__PURE__ */ (0,
|
|
4651
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
4649
4652
|
Tooltip,
|
|
4650
4653
|
{
|
|
4651
4654
|
id: id ? `${id}-tooltip-${cell.id}` : void 0,
|
|
@@ -4653,7 +4656,7 @@ function TableBodyRow({
|
|
|
4653
4656
|
showOnTruncation: true,
|
|
4654
4657
|
message: cellValue,
|
|
4655
4658
|
position: "bottom",
|
|
4656
|
-
children: /* @__PURE__ */ (0,
|
|
4659
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Paragraph, { addOverflow: true, tall: true, children: cellValue })
|
|
4657
4660
|
}
|
|
4658
4661
|
)
|
|
4659
4662
|
},
|
|
@@ -4662,7 +4665,7 @@ function TableBodyRow({
|
|
|
4662
4665
|
}),
|
|
4663
4666
|
!locked && virtualPaddingRight ? (
|
|
4664
4667
|
// fake empty column to the right for virtualization scroll padding
|
|
4665
|
-
/* @__PURE__ */ (0,
|
|
4668
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("td", { style: { display: "flex", width: virtualPaddingRight } })
|
|
4666
4669
|
) : null
|
|
4667
4670
|
]
|
|
4668
4671
|
},
|
|
@@ -4671,7 +4674,7 @@ function TableBodyRow({
|
|
|
4671
4674
|
}
|
|
4672
4675
|
|
|
4673
4676
|
// src/components/DataGrid/TableBody/LoadingCell.tsx
|
|
4674
|
-
var
|
|
4677
|
+
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
4675
4678
|
function LoadingCell({
|
|
4676
4679
|
id,
|
|
4677
4680
|
testid,
|
|
@@ -4679,16 +4682,16 @@ function LoadingCell({
|
|
|
4679
4682
|
}) {
|
|
4680
4683
|
const key = `loading-${column.id}`;
|
|
4681
4684
|
if (column.cell === "checkbox") {
|
|
4682
|
-
return /* @__PURE__ */ (0,
|
|
4685
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(DataGridCell, { id: id ? `${id}-${key}` : void 0, testid: testid ? `${testid}-${key}` : void 0, children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Checkbox, { id: id ? `${id}-${key}-checkbox` : void 0, testid: testid ? `${testid}-${key}-checkbox` : void 0, disabled: true }) }, key);
|
|
4683
4686
|
}
|
|
4684
4687
|
if (column.cell === "input") {
|
|
4685
|
-
return /* @__PURE__ */ (0,
|
|
4688
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
4686
4689
|
DataGridCell,
|
|
4687
4690
|
{
|
|
4688
4691
|
id: id ? `${id}-${key}` : void 0,
|
|
4689
4692
|
testid: testid ? `${testid}-${key}` : void 0,
|
|
4690
4693
|
component: "input",
|
|
4691
|
-
children: /* @__PURE__ */ (0,
|
|
4694
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
4692
4695
|
Input,
|
|
4693
4696
|
{
|
|
4694
4697
|
id: id ? `${id}-${key}-input` : void 0,
|
|
@@ -4702,11 +4705,11 @@ function LoadingCell({
|
|
|
4702
4705
|
key
|
|
4703
4706
|
);
|
|
4704
4707
|
}
|
|
4705
|
-
return /* @__PURE__ */ (0,
|
|
4708
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(DataGridCell, { id: id ? `${id}-${key}` : void 0, testid: testid ? `${testid}-${key}` : void 0, children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("div", { className: "bg-linear-270 to-neutral-300/[24%] from-neutral-300/[12%] rounded-xs w-full max-w-25 h-6" }) }, key);
|
|
4706
4709
|
}
|
|
4707
4710
|
|
|
4708
4711
|
// src/components/DataGrid/TableBody/index.tsx
|
|
4709
|
-
var
|
|
4712
|
+
var import_jsx_runtime61 = require("react/jsx-runtime");
|
|
4710
4713
|
function TableBody({
|
|
4711
4714
|
id,
|
|
4712
4715
|
testid,
|
|
@@ -4740,7 +4743,7 @@ function TableBody({
|
|
|
4740
4743
|
} else {
|
|
4741
4744
|
headerGroups = table.getCenterHeaderGroups();
|
|
4742
4745
|
}
|
|
4743
|
-
return /* @__PURE__ */ (0,
|
|
4746
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
|
|
4744
4747
|
"tbody",
|
|
4745
4748
|
{
|
|
4746
4749
|
className: (0, import_clsx37.default)(locked ? "shadow-16" : ""),
|
|
@@ -4752,7 +4755,7 @@ function TableBody({
|
|
|
4752
4755
|
// needed for absolute positioning of rows
|
|
4753
4756
|
},
|
|
4754
4757
|
children: [
|
|
4755
|
-
showFilterRow && /* @__PURE__ */ (0,
|
|
4758
|
+
showFilterRow && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
4756
4759
|
"tr",
|
|
4757
4760
|
{
|
|
4758
4761
|
style: {
|
|
@@ -4768,7 +4771,7 @@ function TableBody({
|
|
|
4768
4771
|
children: headerGroups.flatMap(
|
|
4769
4772
|
(x) => x.headers.map((header) => {
|
|
4770
4773
|
var _a, _b, _c, _d, _e;
|
|
4771
|
-
return /* @__PURE__ */ (0,
|
|
4774
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
4772
4775
|
CellElement,
|
|
4773
4776
|
{
|
|
4774
4777
|
id: id ? `${id}-filter-cell-${header.id}` : void 0,
|
|
@@ -4779,7 +4782,7 @@ function TableBody({
|
|
|
4779
4782
|
children: header.column.getCanFilter() && ((_e = (_c = (_b = header.column.columnDef.meta) == null ? void 0 : _b.filterRowCell) == null ? void 0 : _c.call(_b, {
|
|
4780
4783
|
header,
|
|
4781
4784
|
table
|
|
4782
|
-
})) != null ? _e : /* @__PURE__ */ (0,
|
|
4785
|
+
})) != null ? _e : /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
4783
4786
|
Search,
|
|
4784
4787
|
{
|
|
4785
4788
|
id: id ? `${id}-filter-search-${header.id}` : void 0,
|
|
@@ -4800,7 +4803,7 @@ function TableBody({
|
|
|
4800
4803
|
),
|
|
4801
4804
|
virtualRows.map((virtualRow) => {
|
|
4802
4805
|
const row = rows[virtualRow.index];
|
|
4803
|
-
return /* @__PURE__ */ (0,
|
|
4806
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
4804
4807
|
TableBodyRow,
|
|
4805
4808
|
{
|
|
4806
4809
|
id,
|
|
@@ -4819,7 +4822,7 @@ function TableBody({
|
|
|
4819
4822
|
row.id
|
|
4820
4823
|
);
|
|
4821
4824
|
}),
|
|
4822
|
-
!pagination && isLoadingMore && hasMore && /* @__PURE__ */ (0,
|
|
4825
|
+
!pagination && isLoadingMore && hasMore && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
4823
4826
|
"tr",
|
|
4824
4827
|
{
|
|
4825
4828
|
style: {
|
|
@@ -4829,7 +4832,7 @@ function TableBody({
|
|
|
4829
4832
|
transform: `translateY(${virtualRows[virtualRows.length - 1].start + 40}px)`
|
|
4830
4833
|
},
|
|
4831
4834
|
className: "odd:bg-background-grouped-primary-normal even:bg-background-grouped-secondary-normal",
|
|
4832
|
-
children: table.getAllLeafColumns().map((column) => /* @__PURE__ */ (0,
|
|
4835
|
+
children: table.getAllLeafColumns().map((column) => /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
4833
4836
|
LoadingCell,
|
|
4834
4837
|
{
|
|
4835
4838
|
id,
|