@dmsi/wedgekit-react 0.0.496 → 0.0.498
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-34VEVX5H.js +31 -0
- package/dist/components/CalendarRange.cjs +28 -25
- package/dist/components/CalendarRange.js +8 -7
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.cjs +5 -2
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.js +8 -7
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.cjs +12 -9
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.js +8 -7
- package/dist/components/DataGrid/PinnedColumns.cjs +23 -20
- package/dist/components/DataGrid/PinnedColumns.js +8 -7
- package/dist/components/DataGrid/TableBody/LoadingCell.cjs +8 -5
- package/dist/components/DataGrid/TableBody/LoadingCell.js +8 -7
- package/dist/components/DataGrid/TableBody/TableBodyRow.cjs +10 -7
- package/dist/components/DataGrid/TableBody/TableBodyRow.js +8 -7
- package/dist/components/DataGrid/TableBody/index.cjs +23 -20
- package/dist/components/DataGrid/TableBody/index.js +8 -7
- package/dist/components/DataGrid/index.cjs +83 -80
- package/dist/components/DataGrid/index.js +8 -7
- package/dist/components/DataGrid/utils.cjs +6 -3
- package/dist/components/DataGrid/utils.js +8 -7
- package/dist/components/DateInput.cjs +34 -31
- package/dist/components/DateInput.js +8 -7
- package/dist/components/DateRangeInput.cjs +34 -31
- package/dist/components/DateRangeInput.js +8 -7
- package/dist/components/MobileDataGrid/ColumnSelector/index.cjs +11 -8
- package/dist/components/MobileDataGrid/ColumnSelector/index.js +8 -7
- package/dist/components/MobileDataGrid/MobileDataGridHeader.cjs +19 -16
- package/dist/components/MobileDataGrid/MobileDataGridHeader.js +8 -7
- package/dist/components/MobileDataGrid/index.cjs +64 -61
- package/dist/components/MobileDataGrid/index.js +8 -7
- package/dist/components/OrderCheckIcon.cjs +67 -0
- package/dist/components/OrderCheckIcon.js +7 -0
- package/dist/components/PDFViewer/index.js +3 -3
- package/dist/components/ProductImagePreview/index.js +2 -2
- package/dist/components/index.cjs +25 -0
- package/dist/components/index.js +12 -8
- package/package.json +1 -1
- package/src/components/OrderCheckIcon.tsx +19 -0
- package/src/components/index.ts +1 -0
- package/dist/{chunk-TPBEID5X.js → chunk-3WCLGTYP.js} +3 -3
- package/dist/{chunk-2A7H5GVB.js → chunk-7LKGHCVT.js} +3 -3
- package/dist/{chunk-DYBJUTGK.js → chunk-XHQOTLG6.js} +3 -3
|
@@ -5748,8 +5748,11 @@ var import_clsx40 = __toESM(require("clsx"), 1);
|
|
|
5748
5748
|
var import_react40 = require("react");
|
|
5749
5749
|
var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
5750
5750
|
|
|
5751
|
-
// src/components/
|
|
5751
|
+
// src/components/OrderCheckIcon.tsx
|
|
5752
5752
|
var import_jsx_runtime66 = require("react/jsx-runtime");
|
|
5753
|
+
|
|
5754
|
+
// src/components/DataGrid/TableBody/LoadingCell.tsx
|
|
5755
|
+
var import_jsx_runtime67 = require("react/jsx-runtime");
|
|
5753
5756
|
function LoadingCell({
|
|
5754
5757
|
id,
|
|
5755
5758
|
testid,
|
|
@@ -5757,16 +5760,16 @@ function LoadingCell({
|
|
|
5757
5760
|
}) {
|
|
5758
5761
|
const key = `loading-${column.id}`;
|
|
5759
5762
|
if (column.cell === "checkbox") {
|
|
5760
|
-
return /* @__PURE__ */ (0,
|
|
5763
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(DataGridCell, { id: id ? `${id}-${key}` : void 0, testid: testid ? `${testid}-${key}` : void 0, children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Checkbox, { id: id ? `${id}-${key}-checkbox` : void 0, testid: testid ? `${testid}-${key}-checkbox` : void 0, disabled: true }) }, key);
|
|
5761
5764
|
}
|
|
5762
5765
|
if (column.cell === "input") {
|
|
5763
|
-
return /* @__PURE__ */ (0,
|
|
5766
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
5764
5767
|
DataGridCell,
|
|
5765
5768
|
{
|
|
5766
5769
|
id: id ? `${id}-${key}` : void 0,
|
|
5767
5770
|
testid: testid ? `${testid}-${key}` : void 0,
|
|
5768
5771
|
component: "input",
|
|
5769
|
-
children: /* @__PURE__ */ (0,
|
|
5772
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
5770
5773
|
Input,
|
|
5771
5774
|
{
|
|
5772
5775
|
id: id ? `${id}-${key}-input` : void 0,
|
|
@@ -5780,7 +5783,7 @@ function LoadingCell({
|
|
|
5780
5783
|
key
|
|
5781
5784
|
);
|
|
5782
5785
|
}
|
|
5783
|
-
return /* @__PURE__ */ (0,
|
|
5786
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(DataGridCell, { id: id ? `${id}-${key}` : void 0, testid: testid ? `${testid}-${key}` : void 0, children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: "bg-linear-270 to-neutral-300/[24%] from-neutral-300/[12%] rounded-xs w-full max-w-25 h-6" }) }, key);
|
|
5784
5787
|
}
|
|
5785
5788
|
// Annotate the CommonJS export names for ESM import in node:
|
|
5786
5789
|
0 && (module.exports = {
|
|
@@ -1,31 +1,32 @@
|
|
|
1
1
|
import {
|
|
2
2
|
LoadingCell
|
|
3
|
-
} from "../../../chunk-
|
|
3
|
+
} from "../../../chunk-7LKGHCVT.js";
|
|
4
4
|
import "../../../chunk-M7INAUAJ.js";
|
|
5
5
|
import "../../../chunk-4Q7T4GJ2.js";
|
|
6
6
|
import "../../../chunk-3DEYCNUE.js";
|
|
7
|
-
import "../../../chunk-
|
|
7
|
+
import "../../../chunk-XHQOTLG6.js";
|
|
8
|
+
import "../../../chunk-BQNPOGD5.js";
|
|
8
9
|
import "../../../chunk-Y5GD2FJA.js";
|
|
9
|
-
import "../../../chunk-
|
|
10
|
+
import "../../../chunk-3WCLGTYP.js";
|
|
11
|
+
import "../../../chunk-YEZBNQZI.js";
|
|
10
12
|
import "../../../chunk-B53XDCLO.js";
|
|
13
|
+
import "../../../chunk-S5ZJ3Q7P.js";
|
|
11
14
|
import "../../../chunk-MBZ55T2D.js";
|
|
12
15
|
import "../../../chunk-2IKT6IHB.js";
|
|
13
16
|
import "../../../chunk-YCDDBSVU.js";
|
|
14
17
|
import "../../../chunk-3X3Y4TMS.js";
|
|
15
|
-
import "../../../chunk-BQNPOGD5.js";
|
|
16
18
|
import "../../../chunk-QMSPTD6L.js";
|
|
17
19
|
import "../../../chunk-XIXQUEYC.js";
|
|
18
20
|
import "../../../chunk-5IFPG6TS.js";
|
|
19
21
|
import "../../../chunk-AJ5M6MVX.js";
|
|
20
22
|
import "../../../chunk-KW6V7O3H.js";
|
|
21
23
|
import "../../../chunk-JUFBGNWW.js";
|
|
22
|
-
import "../../../chunk-
|
|
23
|
-
import "../../../chunk-S5ZJ3Q7P.js";
|
|
24
|
+
import "../../../chunk-7GHD74J3.js";
|
|
24
25
|
import "../../../chunk-AT4AWD6B.js";
|
|
25
26
|
import "../../../chunk-EWGHVZL5.js";
|
|
26
|
-
import "../../../chunk-7GHD74J3.js";
|
|
27
27
|
import "../../../chunk-7BVUTFZ5.js";
|
|
28
28
|
import "../../../chunk-L3BXRDLP.js";
|
|
29
|
+
import "../../../chunk-34VEVX5H.js";
|
|
29
30
|
import "../../../chunk-GRGDX7JC.js";
|
|
30
31
|
import "../../../chunk-HVNHTM3P.js";
|
|
31
32
|
import "../../../chunk-X67L3NZI.js";
|
|
@@ -5682,8 +5682,11 @@ var import_clsx39 = __toESM(require("clsx"), 1);
|
|
|
5682
5682
|
var import_react39 = require("react");
|
|
5683
5683
|
var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
5684
5684
|
|
|
5685
|
-
// src/components/
|
|
5685
|
+
// src/components/OrderCheckIcon.tsx
|
|
5686
5686
|
var import_jsx_runtime66 = require("react/jsx-runtime");
|
|
5687
|
+
|
|
5688
|
+
// src/components/DataGrid/TableBody/TableBodyRow.tsx
|
|
5689
|
+
var import_jsx_runtime67 = require("react/jsx-runtime");
|
|
5687
5690
|
var valueFormatters = {
|
|
5688
5691
|
date: (value) => typeof value === "string" ? formatDate(value) : "",
|
|
5689
5692
|
currency: (value) => formatCurrencyDisplay(value)
|
|
@@ -5716,7 +5719,7 @@ function TableBodyRow({
|
|
|
5716
5719
|
const columns = locked ? visibleCells : virtualColumns;
|
|
5717
5720
|
const isError = typeof row.original === "object" && row.original !== null && "rowState" in row.original && row.original.rowState === "error";
|
|
5718
5721
|
const CellElement = locked ? DataGridCell : DragAlongCell;
|
|
5719
|
-
return /* @__PURE__ */ (0,
|
|
5722
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
|
|
5720
5723
|
"tr",
|
|
5721
5724
|
{
|
|
5722
5725
|
className: (0, import_clsx40.default)(
|
|
@@ -5737,7 +5740,7 @@ function TableBodyRow({
|
|
|
5737
5740
|
children: [
|
|
5738
5741
|
!locked && virtualPaddingLeft ? (
|
|
5739
5742
|
// fake empty column to the left for virtualization scroll padding
|
|
5740
|
-
/* @__PURE__ */ (0,
|
|
5743
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)("td", { style: { display: "flex", width: virtualPaddingLeft } })
|
|
5741
5744
|
) : null,
|
|
5742
5745
|
columns.map((column) => {
|
|
5743
5746
|
var _a2, _b, _c, _d;
|
|
@@ -5748,7 +5751,7 @@ function TableBodyRow({
|
|
|
5748
5751
|
const cellFormat = (_a2 = cell.column.columnDef.meta) == null ? void 0 : _a2.format;
|
|
5749
5752
|
const cellValue = cellFormat && isValueFormatterKey(cellFormat) ? valueFormatters[cellFormat](cell.getValue()) : cell.getValue();
|
|
5750
5753
|
const cellAlignment = (_c = (_b = cell.column.columnDef.meta) == null ? void 0 : _b.align) != null ? _c : typeof cellValue === "number" ? "right" : "left";
|
|
5751
|
-
return ((_d = cell.column.columnDef.meta) == null ? void 0 : _d.useCustomRenderer) ? /* @__PURE__ */ (0,
|
|
5754
|
+
return ((_d = cell.column.columnDef.meta) == null ? void 0 : _d.useCustomRenderer) ? /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_react40.default.Fragment, { children: (0, import_react_table3.flexRender)(cell.column.columnDef.cell, cell.getContext()) }, cell.id) : /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
5752
5755
|
CellElement,
|
|
5753
5756
|
{
|
|
5754
5757
|
id: id ? `${id}-row-${row.id}-cell-${cell.id}` : void 0,
|
|
@@ -5758,7 +5761,7 @@ function TableBodyRow({
|
|
|
5758
5761
|
"justify-start": cellAlignment === "left",
|
|
5759
5762
|
"justify-end": cellAlignment === "right"
|
|
5760
5763
|
}),
|
|
5761
|
-
children: /* @__PURE__ */ (0,
|
|
5764
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
5762
5765
|
Tooltip,
|
|
5763
5766
|
{
|
|
5764
5767
|
id: id ? `${id}-tooltip-${cell.id}` : void 0,
|
|
@@ -5766,7 +5769,7 @@ function TableBodyRow({
|
|
|
5766
5769
|
showOnTruncation: true,
|
|
5767
5770
|
message: cellValue,
|
|
5768
5771
|
position: "bottom",
|
|
5769
|
-
children: /* @__PURE__ */ (0,
|
|
5772
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Paragraph, { addOverflow: true, tall: true, children: cellValue })
|
|
5770
5773
|
}
|
|
5771
5774
|
)
|
|
5772
5775
|
},
|
|
@@ -5775,7 +5778,7 @@ function TableBodyRow({
|
|
|
5775
5778
|
}),
|
|
5776
5779
|
!locked && virtualPaddingRight ? (
|
|
5777
5780
|
// fake empty column to the right for virtualization scroll padding
|
|
5778
|
-
/* @__PURE__ */ (0,
|
|
5781
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)("td", { style: { display: "flex", width: virtualPaddingRight } })
|
|
5779
5782
|
) : null
|
|
5780
5783
|
]
|
|
5781
5784
|
},
|
|
@@ -1,31 +1,32 @@
|
|
|
1
1
|
import {
|
|
2
2
|
TableBodyRow
|
|
3
|
-
} from "../../../chunk-
|
|
3
|
+
} from "../../../chunk-7LKGHCVT.js";
|
|
4
4
|
import "../../../chunk-M7INAUAJ.js";
|
|
5
5
|
import "../../../chunk-4Q7T4GJ2.js";
|
|
6
6
|
import "../../../chunk-3DEYCNUE.js";
|
|
7
|
-
import "../../../chunk-
|
|
7
|
+
import "../../../chunk-XHQOTLG6.js";
|
|
8
|
+
import "../../../chunk-BQNPOGD5.js";
|
|
8
9
|
import "../../../chunk-Y5GD2FJA.js";
|
|
9
|
-
import "../../../chunk-
|
|
10
|
+
import "../../../chunk-3WCLGTYP.js";
|
|
11
|
+
import "../../../chunk-YEZBNQZI.js";
|
|
10
12
|
import "../../../chunk-B53XDCLO.js";
|
|
13
|
+
import "../../../chunk-S5ZJ3Q7P.js";
|
|
11
14
|
import "../../../chunk-MBZ55T2D.js";
|
|
12
15
|
import "../../../chunk-2IKT6IHB.js";
|
|
13
16
|
import "../../../chunk-YCDDBSVU.js";
|
|
14
17
|
import "../../../chunk-3X3Y4TMS.js";
|
|
15
|
-
import "../../../chunk-BQNPOGD5.js";
|
|
16
18
|
import "../../../chunk-QMSPTD6L.js";
|
|
17
19
|
import "../../../chunk-XIXQUEYC.js";
|
|
18
20
|
import "../../../chunk-5IFPG6TS.js";
|
|
19
21
|
import "../../../chunk-AJ5M6MVX.js";
|
|
20
22
|
import "../../../chunk-KW6V7O3H.js";
|
|
21
23
|
import "../../../chunk-JUFBGNWW.js";
|
|
22
|
-
import "../../../chunk-
|
|
23
|
-
import "../../../chunk-S5ZJ3Q7P.js";
|
|
24
|
+
import "../../../chunk-7GHD74J3.js";
|
|
24
25
|
import "../../../chunk-AT4AWD6B.js";
|
|
25
26
|
import "../../../chunk-EWGHVZL5.js";
|
|
26
|
-
import "../../../chunk-7GHD74J3.js";
|
|
27
27
|
import "../../../chunk-7BVUTFZ5.js";
|
|
28
28
|
import "../../../chunk-L3BXRDLP.js";
|
|
29
|
+
import "../../../chunk-34VEVX5H.js";
|
|
29
30
|
import "../../../chunk-GRGDX7JC.js";
|
|
30
31
|
import "../../../chunk-HVNHTM3P.js";
|
|
31
32
|
import "../../../chunk-X67L3NZI.js";
|
|
@@ -5501,6 +5501,9 @@ var import_clsx38 = __toESM(require("clsx"), 1);
|
|
|
5501
5501
|
var import_react39 = require("react");
|
|
5502
5502
|
var import_jsx_runtime63 = require("react/jsx-runtime");
|
|
5503
5503
|
|
|
5504
|
+
// src/components/OrderCheckIcon.tsx
|
|
5505
|
+
var import_jsx_runtime64 = require("react/jsx-runtime");
|
|
5506
|
+
|
|
5504
5507
|
// src/components/DataGrid/TableBody/index.tsx
|
|
5505
5508
|
var import_clsx40 = __toESM(require("clsx"), 1);
|
|
5506
5509
|
|
|
@@ -5508,7 +5511,7 @@ var import_clsx40 = __toESM(require("clsx"), 1);
|
|
|
5508
5511
|
var import_clsx39 = __toESM(require("clsx"), 1);
|
|
5509
5512
|
var import_react_table3 = require("@tanstack/react-table");
|
|
5510
5513
|
var import_react40 = __toESM(require("react"), 1);
|
|
5511
|
-
var
|
|
5514
|
+
var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
5512
5515
|
var valueFormatters = {
|
|
5513
5516
|
date: (value) => typeof value === "string" ? formatDate(value) : "",
|
|
5514
5517
|
currency: (value) => formatCurrencyDisplay(value)
|
|
@@ -5541,7 +5544,7 @@ function TableBodyRow({
|
|
|
5541
5544
|
const columns = locked ? visibleCells : virtualColumns;
|
|
5542
5545
|
const isError = typeof row.original === "object" && row.original !== null && "rowState" in row.original && row.original.rowState === "error";
|
|
5543
5546
|
const CellElement = locked ? DataGridCell : DragAlongCell;
|
|
5544
|
-
return /* @__PURE__ */ (0,
|
|
5547
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
|
|
5545
5548
|
"tr",
|
|
5546
5549
|
{
|
|
5547
5550
|
className: (0, import_clsx39.default)(
|
|
@@ -5562,7 +5565,7 @@ function TableBodyRow({
|
|
|
5562
5565
|
children: [
|
|
5563
5566
|
!locked && virtualPaddingLeft ? (
|
|
5564
5567
|
// fake empty column to the left for virtualization scroll padding
|
|
5565
|
-
/* @__PURE__ */ (0,
|
|
5568
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)("td", { style: { display: "flex", width: virtualPaddingLeft } })
|
|
5566
5569
|
) : null,
|
|
5567
5570
|
columns.map((column) => {
|
|
5568
5571
|
var _a2, _b, _c, _d;
|
|
@@ -5573,7 +5576,7 @@ function TableBodyRow({
|
|
|
5573
5576
|
const cellFormat = (_a2 = cell.column.columnDef.meta) == null ? void 0 : _a2.format;
|
|
5574
5577
|
const cellValue = cellFormat && isValueFormatterKey(cellFormat) ? valueFormatters[cellFormat](cell.getValue()) : cell.getValue();
|
|
5575
5578
|
const cellAlignment = (_c = (_b = cell.column.columnDef.meta) == null ? void 0 : _b.align) != null ? _c : typeof cellValue === "number" ? "right" : "left";
|
|
5576
|
-
return ((_d = cell.column.columnDef.meta) == null ? void 0 : _d.useCustomRenderer) ? /* @__PURE__ */ (0,
|
|
5579
|
+
return ((_d = cell.column.columnDef.meta) == null ? void 0 : _d.useCustomRenderer) ? /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_react40.default.Fragment, { children: (0, import_react_table3.flexRender)(cell.column.columnDef.cell, cell.getContext()) }, cell.id) : /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
5577
5580
|
CellElement,
|
|
5578
5581
|
{
|
|
5579
5582
|
id: id ? `${id}-row-${row.id}-cell-${cell.id}` : void 0,
|
|
@@ -5583,7 +5586,7 @@ function TableBodyRow({
|
|
|
5583
5586
|
"justify-start": cellAlignment === "left",
|
|
5584
5587
|
"justify-end": cellAlignment === "right"
|
|
5585
5588
|
}),
|
|
5586
|
-
children: /* @__PURE__ */ (0,
|
|
5589
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
5587
5590
|
Tooltip,
|
|
5588
5591
|
{
|
|
5589
5592
|
id: id ? `${id}-tooltip-${cell.id}` : void 0,
|
|
@@ -5591,7 +5594,7 @@ function TableBodyRow({
|
|
|
5591
5594
|
showOnTruncation: true,
|
|
5592
5595
|
message: cellValue,
|
|
5593
5596
|
position: "bottom",
|
|
5594
|
-
children: /* @__PURE__ */ (0,
|
|
5597
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Paragraph, { addOverflow: true, tall: true, children: cellValue })
|
|
5595
5598
|
}
|
|
5596
5599
|
)
|
|
5597
5600
|
},
|
|
@@ -5600,7 +5603,7 @@ function TableBodyRow({
|
|
|
5600
5603
|
}),
|
|
5601
5604
|
!locked && virtualPaddingRight ? (
|
|
5602
5605
|
// fake empty column to the right for virtualization scroll padding
|
|
5603
|
-
/* @__PURE__ */ (0,
|
|
5606
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)("td", { style: { display: "flex", width: virtualPaddingRight } })
|
|
5604
5607
|
) : null
|
|
5605
5608
|
]
|
|
5606
5609
|
},
|
|
@@ -5609,7 +5612,7 @@ function TableBodyRow({
|
|
|
5609
5612
|
}
|
|
5610
5613
|
|
|
5611
5614
|
// src/components/DataGrid/TableBody/LoadingCell.tsx
|
|
5612
|
-
var
|
|
5615
|
+
var import_jsx_runtime66 = require("react/jsx-runtime");
|
|
5613
5616
|
function LoadingCell({
|
|
5614
5617
|
id,
|
|
5615
5618
|
testid,
|
|
@@ -5617,16 +5620,16 @@ function LoadingCell({
|
|
|
5617
5620
|
}) {
|
|
5618
5621
|
const key = `loading-${column.id}`;
|
|
5619
5622
|
if (column.cell === "checkbox") {
|
|
5620
|
-
return /* @__PURE__ */ (0,
|
|
5623
|
+
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);
|
|
5621
5624
|
}
|
|
5622
5625
|
if (column.cell === "input") {
|
|
5623
|
-
return /* @__PURE__ */ (0,
|
|
5626
|
+
return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
5624
5627
|
DataGridCell,
|
|
5625
5628
|
{
|
|
5626
5629
|
id: id ? `${id}-${key}` : void 0,
|
|
5627
5630
|
testid: testid ? `${testid}-${key}` : void 0,
|
|
5628
5631
|
component: "input",
|
|
5629
|
-
children: /* @__PURE__ */ (0,
|
|
5632
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
5630
5633
|
Input,
|
|
5631
5634
|
{
|
|
5632
5635
|
id: id ? `${id}-${key}-input` : void 0,
|
|
@@ -5640,11 +5643,11 @@ function LoadingCell({
|
|
|
5640
5643
|
key
|
|
5641
5644
|
);
|
|
5642
5645
|
}
|
|
5643
|
-
return /* @__PURE__ */ (0,
|
|
5646
|
+
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);
|
|
5644
5647
|
}
|
|
5645
5648
|
|
|
5646
5649
|
// src/components/DataGrid/TableBody/index.tsx
|
|
5647
|
-
var
|
|
5650
|
+
var import_jsx_runtime67 = require("react/jsx-runtime");
|
|
5648
5651
|
function TableBody({
|
|
5649
5652
|
id,
|
|
5650
5653
|
testid,
|
|
@@ -5678,7 +5681,7 @@ function TableBody({
|
|
|
5678
5681
|
} else {
|
|
5679
5682
|
headerGroups = table.getCenterHeaderGroups();
|
|
5680
5683
|
}
|
|
5681
|
-
return /* @__PURE__ */ (0,
|
|
5684
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
|
|
5682
5685
|
"tbody",
|
|
5683
5686
|
{
|
|
5684
5687
|
className: (0, import_clsx40.default)(locked ? "shadow-16" : ""),
|
|
@@ -5690,7 +5693,7 @@ function TableBody({
|
|
|
5690
5693
|
// needed for absolute positioning of rows
|
|
5691
5694
|
},
|
|
5692
5695
|
children: [
|
|
5693
|
-
showFilterRow && /* @__PURE__ */ (0,
|
|
5696
|
+
showFilterRow && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
5694
5697
|
"tr",
|
|
5695
5698
|
{
|
|
5696
5699
|
style: {
|
|
@@ -5706,7 +5709,7 @@ function TableBody({
|
|
|
5706
5709
|
children: headerGroups.flatMap(
|
|
5707
5710
|
(x) => x.headers.map((header) => {
|
|
5708
5711
|
var _a, _b, _c, _d, _e;
|
|
5709
|
-
return /* @__PURE__ */ (0,
|
|
5712
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
5710
5713
|
CellElement,
|
|
5711
5714
|
{
|
|
5712
5715
|
id: id ? `${id}-filter-cell-${header.id}` : void 0,
|
|
@@ -5717,7 +5720,7 @@ function TableBody({
|
|
|
5717
5720
|
children: header.column.getCanFilter() && ((_e = (_c = (_b = header.column.columnDef.meta) == null ? void 0 : _b.filterRowCell) == null ? void 0 : _c.call(_b, {
|
|
5718
5721
|
header,
|
|
5719
5722
|
table
|
|
5720
|
-
})) != null ? _e : /* @__PURE__ */ (0,
|
|
5723
|
+
})) != null ? _e : /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
5721
5724
|
Search,
|
|
5722
5725
|
{
|
|
5723
5726
|
id: id ? `${id}-filter-search-${header.id}` : void 0,
|
|
@@ -5738,7 +5741,7 @@ function TableBody({
|
|
|
5738
5741
|
),
|
|
5739
5742
|
virtualRows.map((virtualRow) => {
|
|
5740
5743
|
const row = rows[virtualRow.index];
|
|
5741
|
-
return /* @__PURE__ */ (0,
|
|
5744
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
5742
5745
|
TableBodyRow,
|
|
5743
5746
|
{
|
|
5744
5747
|
id,
|
|
@@ -5757,7 +5760,7 @@ function TableBody({
|
|
|
5757
5760
|
row.id
|
|
5758
5761
|
);
|
|
5759
5762
|
}),
|
|
5760
|
-
!pagination && isLoadingMore && hasMore && /* @__PURE__ */ (0,
|
|
5763
|
+
!pagination && isLoadingMore && hasMore && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
5761
5764
|
"tr",
|
|
5762
5765
|
{
|
|
5763
5766
|
style: {
|
|
@@ -5767,7 +5770,7 @@ function TableBody({
|
|
|
5767
5770
|
transform: `translateY(${virtualRows[virtualRows.length - 1].start + 40}px)`
|
|
5768
5771
|
},
|
|
5769
5772
|
className: "odd:bg-background-grouped-primary-normal even:bg-background-grouped-secondary-normal",
|
|
5770
|
-
children: table.getAllLeafColumns().map((column) => /* @__PURE__ */ (0,
|
|
5773
|
+
children: table.getAllLeafColumns().map((column) => /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
5771
5774
|
LoadingCell,
|
|
5772
5775
|
{
|
|
5773
5776
|
id,
|
|
@@ -1,31 +1,32 @@
|
|
|
1
1
|
import {
|
|
2
2
|
TableBody
|
|
3
|
-
} from "../../../chunk-
|
|
3
|
+
} from "../../../chunk-7LKGHCVT.js";
|
|
4
4
|
import "../../../chunk-M7INAUAJ.js";
|
|
5
5
|
import "../../../chunk-4Q7T4GJ2.js";
|
|
6
6
|
import "../../../chunk-3DEYCNUE.js";
|
|
7
|
-
import "../../../chunk-
|
|
7
|
+
import "../../../chunk-XHQOTLG6.js";
|
|
8
|
+
import "../../../chunk-BQNPOGD5.js";
|
|
8
9
|
import "../../../chunk-Y5GD2FJA.js";
|
|
9
|
-
import "../../../chunk-
|
|
10
|
+
import "../../../chunk-3WCLGTYP.js";
|
|
11
|
+
import "../../../chunk-YEZBNQZI.js";
|
|
10
12
|
import "../../../chunk-B53XDCLO.js";
|
|
13
|
+
import "../../../chunk-S5ZJ3Q7P.js";
|
|
11
14
|
import "../../../chunk-MBZ55T2D.js";
|
|
12
15
|
import "../../../chunk-2IKT6IHB.js";
|
|
13
16
|
import "../../../chunk-YCDDBSVU.js";
|
|
14
17
|
import "../../../chunk-3X3Y4TMS.js";
|
|
15
|
-
import "../../../chunk-BQNPOGD5.js";
|
|
16
18
|
import "../../../chunk-QMSPTD6L.js";
|
|
17
19
|
import "../../../chunk-XIXQUEYC.js";
|
|
18
20
|
import "../../../chunk-5IFPG6TS.js";
|
|
19
21
|
import "../../../chunk-AJ5M6MVX.js";
|
|
20
22
|
import "../../../chunk-KW6V7O3H.js";
|
|
21
23
|
import "../../../chunk-JUFBGNWW.js";
|
|
22
|
-
import "../../../chunk-
|
|
23
|
-
import "../../../chunk-S5ZJ3Q7P.js";
|
|
24
|
+
import "../../../chunk-7GHD74J3.js";
|
|
24
25
|
import "../../../chunk-AT4AWD6B.js";
|
|
25
26
|
import "../../../chunk-EWGHVZL5.js";
|
|
26
|
-
import "../../../chunk-7GHD74J3.js";
|
|
27
27
|
import "../../../chunk-7BVUTFZ5.js";
|
|
28
28
|
import "../../../chunk-L3BXRDLP.js";
|
|
29
|
+
import "../../../chunk-34VEVX5H.js";
|
|
29
30
|
import "../../../chunk-GRGDX7JC.js";
|
|
30
31
|
import "../../../chunk-HVNHTM3P.js";
|
|
31
32
|
import "../../../chunk-X67L3NZI.js";
|