@dmsi/wedgekit-react 0.0.417 → 0.0.419
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-CAQWLY5V.js → chunk-CANJ2YPW.js} +1 -1
- package/dist/chunk-ESCNCQGI.js +9 -0
- package/dist/{chunk-NRNWEQD7.js → chunk-IFHMGICR.js} +1 -1
- package/dist/components/CalendarRange.cjs +28 -25
- package/dist/components/CalendarRange.js +5 -4
- package/dist/components/CompactImagesPreview.cjs +1 -1
- package/dist/components/CompactImagesPreview.js +1 -1
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.cjs +5 -2
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.js +5 -4
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.cjs +12 -9
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.js +5 -4
- package/dist/components/DataGrid/PinnedColumns.cjs +23 -20
- package/dist/components/DataGrid/PinnedColumns.js +5 -4
- package/dist/components/DataGrid/TableBody/LoadingCell.cjs +8 -5
- package/dist/components/DataGrid/TableBody/LoadingCell.js +5 -4
- package/dist/components/DataGrid/TableBody/TableBodyRow.cjs +10 -7
- package/dist/components/DataGrid/TableBody/TableBodyRow.js +5 -4
- package/dist/components/DataGrid/TableBody/index.cjs +23 -20
- package/dist/components/DataGrid/TableBody/index.js +5 -4
- package/dist/components/DataGrid/index.cjs +83 -80
- package/dist/components/DataGrid/index.js +5 -4
- package/dist/components/DataGrid/utils.cjs +6 -3
- package/dist/components/DataGrid/utils.js +5 -4
- package/dist/components/DateInput.cjs +34 -31
- package/dist/components/DateInput.js +5 -4
- package/dist/components/DateRangeInput.cjs +34 -31
- package/dist/components/DateRangeInput.js +5 -4
- package/dist/components/ListGroup.cjs +1 -1
- package/dist/components/ListGroup.js +1 -1
- package/dist/components/MobileDataGrid/ColumnSelector/index.cjs +11 -8
- package/dist/components/MobileDataGrid/ColumnSelector/index.js +5 -4
- package/dist/components/MobileDataGrid/MobileDataGridHeader.cjs +19 -16
- package/dist/components/MobileDataGrid/MobileDataGridHeader.js +5 -4
- package/dist/components/MobileDataGrid/index.cjs +64 -61
- package/dist/components/MobileDataGrid/index.js +5 -4
- package/dist/components/SkeletonParagraph.js +3 -6
- package/dist/components/index.cjs +10 -2
- package/dist/components/index.js +8 -4
- package/package.json +1 -1
- package/src/components/CompactImagesPreview.tsx +1 -1
- package/src/components/ListGroup.tsx +1 -1
- package/src/components/index.ts +1 -0
- package/dist/{chunk-HYJIDHAK.js → chunk-TQIKP534.js} +3 -3
|
@@ -4806,8 +4806,11 @@ var Pagination = ({
|
|
|
4806
4806
|
};
|
|
4807
4807
|
Pagination.displayName = "Pagination";
|
|
4808
4808
|
|
|
4809
|
-
// src/components/
|
|
4809
|
+
// src/components/SkeletonParagraph.tsx
|
|
4810
4810
|
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
4811
|
+
|
|
4812
|
+
// src/components/DataGrid/TableBody/LoadingCell.tsx
|
|
4813
|
+
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
4811
4814
|
function LoadingCell({
|
|
4812
4815
|
id,
|
|
4813
4816
|
testid,
|
|
@@ -4815,16 +4818,16 @@ function LoadingCell({
|
|
|
4815
4818
|
}) {
|
|
4816
4819
|
const key = `loading-${column.id}`;
|
|
4817
4820
|
if (column.cell === "checkbox") {
|
|
4818
|
-
return /* @__PURE__ */ (0,
|
|
4821
|
+
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);
|
|
4819
4822
|
}
|
|
4820
4823
|
if (column.cell === "input") {
|
|
4821
|
-
return /* @__PURE__ */ (0,
|
|
4824
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
4822
4825
|
DataGridCell,
|
|
4823
4826
|
{
|
|
4824
4827
|
id: id ? `${id}-${key}` : void 0,
|
|
4825
4828
|
testid: testid ? `${testid}-${key}` : void 0,
|
|
4826
4829
|
component: "input",
|
|
4827
|
-
children: /* @__PURE__ */ (0,
|
|
4830
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
4828
4831
|
Input,
|
|
4829
4832
|
{
|
|
4830
4833
|
id: id ? `${id}-${key}-input` : void 0,
|
|
@@ -4838,7 +4841,7 @@ function LoadingCell({
|
|
|
4838
4841
|
key
|
|
4839
4842
|
);
|
|
4840
4843
|
}
|
|
4841
|
-
return /* @__PURE__ */ (0,
|
|
4844
|
+
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);
|
|
4842
4845
|
}
|
|
4843
4846
|
// Annotate the CommonJS export names for ESM import in node:
|
|
4844
4847
|
0 && (module.exports = {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
LoadingCell
|
|
3
|
-
} from "../../../chunk-
|
|
4
|
-
import "../../../chunk-M7INAUAJ.js";
|
|
3
|
+
} from "../../../chunk-TQIKP534.js";
|
|
5
4
|
import "../../../chunk-7AXHAWJX.js";
|
|
6
5
|
import "../../../chunk-P3MIP2FD.js";
|
|
6
|
+
import "../../../chunk-M7INAUAJ.js";
|
|
7
7
|
import "../../../chunk-3HBYDOYE.js";
|
|
8
8
|
import "../../../chunk-IMOIZFJZ.js";
|
|
9
9
|
import "../../../chunk-MBZ55T2D.js";
|
|
@@ -23,6 +23,7 @@ import "../../../chunk-VJVY6NPF.js";
|
|
|
23
23
|
import "../../../chunk-EWGHVZL5.js";
|
|
24
24
|
import "../../../chunk-DCLNAUC4.js";
|
|
25
25
|
import "../../../chunk-PQWWVBSR.js";
|
|
26
|
+
import "../../../chunk-ESCNCQGI.js";
|
|
26
27
|
import "../../../chunk-AT4AWD6B.js";
|
|
27
28
|
import "../../../chunk-J5V2JRIK.js";
|
|
28
29
|
import "../../../chunk-TYAQWVIM.js";
|
|
@@ -32,13 +33,13 @@ import "../../../chunk-AG43RS4Q.js";
|
|
|
32
33
|
import "../../../chunk-XM7IQHBU.js";
|
|
33
34
|
import "../../../chunk-FRHPFACM.js";
|
|
34
35
|
import "../../../chunk-T36HX6QY.js";
|
|
35
|
-
import "../../../chunk-
|
|
36
|
+
import "../../../chunk-IFHMGICR.js";
|
|
36
37
|
import "../../../chunk-SBRRNFOP.js";
|
|
37
38
|
import "../../../chunk-Y2GK27RX.js";
|
|
38
39
|
import "../../../chunk-EU73QPW7.js";
|
|
39
40
|
import "../../../chunk-QVWYTQKL.js";
|
|
40
41
|
import "../../../chunk-NO5BIKWS.js";
|
|
41
|
-
import "../../../chunk-
|
|
42
|
+
import "../../../chunk-CANJ2YPW.js";
|
|
42
43
|
import "../../../chunk-V47RTW7E.js";
|
|
43
44
|
import "../../../chunk-22VBZWJG.js";
|
|
44
45
|
import "../../../chunk-NVOZAVEX.js";
|
|
@@ -4740,8 +4740,11 @@ var Pagination = ({
|
|
|
4740
4740
|
};
|
|
4741
4741
|
Pagination.displayName = "Pagination";
|
|
4742
4742
|
|
|
4743
|
-
// src/components/
|
|
4743
|
+
// src/components/SkeletonParagraph.tsx
|
|
4744
4744
|
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
4745
|
+
|
|
4746
|
+
// src/components/DataGrid/TableBody/TableBodyRow.tsx
|
|
4747
|
+
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
4745
4748
|
var valueFormatters = {
|
|
4746
4749
|
date: (value) => typeof value === "string" ? formatDate(value) : "",
|
|
4747
4750
|
currency: (value) => formatCurrencyDisplay(value)
|
|
@@ -4774,7 +4777,7 @@ function TableBodyRow({
|
|
|
4774
4777
|
const columns = locked ? visibleCells : virtualColumns;
|
|
4775
4778
|
const isError = typeof row.original === "object" && row.original !== null && "rowState" in row.original && row.original.rowState === "error";
|
|
4776
4779
|
const CellElement = locked ? DataGridCell : DragAlongCell;
|
|
4777
|
-
return /* @__PURE__ */ (0,
|
|
4780
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
|
|
4778
4781
|
"tr",
|
|
4779
4782
|
{
|
|
4780
4783
|
className: (0, import_clsx37.default)(
|
|
@@ -4795,7 +4798,7 @@ function TableBodyRow({
|
|
|
4795
4798
|
children: [
|
|
4796
4799
|
!locked && virtualPaddingLeft ? (
|
|
4797
4800
|
// fake empty column to the left for virtualization scroll padding
|
|
4798
|
-
/* @__PURE__ */ (0,
|
|
4801
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)("td", { style: { display: "flex", width: virtualPaddingLeft } })
|
|
4799
4802
|
) : null,
|
|
4800
4803
|
columns.map((column) => {
|
|
4801
4804
|
var _a2, _b, _c, _d;
|
|
@@ -4806,7 +4809,7 @@ function TableBodyRow({
|
|
|
4806
4809
|
const cellFormat = (_a2 = cell.column.columnDef.meta) == null ? void 0 : _a2.format;
|
|
4807
4810
|
const cellValue = cellFormat && isValueFormatterKey(cellFormat) ? valueFormatters[cellFormat](cell.getValue()) : cell.getValue();
|
|
4808
4811
|
const cellAlignment = (_c = (_b = cell.column.columnDef.meta) == null ? void 0 : _b.align) != null ? _c : typeof cellValue === "number" ? "right" : "left";
|
|
4809
|
-
return ((_d = cell.column.columnDef.meta) == null ? void 0 : _d.useCustomRenderer) ? /* @__PURE__ */ (0,
|
|
4812
|
+
return ((_d = cell.column.columnDef.meta) == null ? void 0 : _d.useCustomRenderer) ? /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react36.default.Fragment, { children: (0, import_react_table3.flexRender)(cell.column.columnDef.cell, cell.getContext()) }, cell.id) : /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
4810
4813
|
CellElement,
|
|
4811
4814
|
{
|
|
4812
4815
|
id: id ? `${id}-row-${row.id}-cell-${cell.id}` : void 0,
|
|
@@ -4816,7 +4819,7 @@ function TableBodyRow({
|
|
|
4816
4819
|
"justify-start": cellAlignment === "left",
|
|
4817
4820
|
"justify-end": cellAlignment === "right"
|
|
4818
4821
|
}),
|
|
4819
|
-
children: /* @__PURE__ */ (0,
|
|
4822
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
4820
4823
|
Tooltip,
|
|
4821
4824
|
{
|
|
4822
4825
|
id: id ? `${id}-tooltip-${cell.id}` : void 0,
|
|
@@ -4824,7 +4827,7 @@ function TableBodyRow({
|
|
|
4824
4827
|
showOnTruncation: true,
|
|
4825
4828
|
message: cellValue,
|
|
4826
4829
|
position: "bottom",
|
|
4827
|
-
children: /* @__PURE__ */ (0,
|
|
4830
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Paragraph, { addOverflow: true, tall: true, children: cellValue })
|
|
4828
4831
|
}
|
|
4829
4832
|
)
|
|
4830
4833
|
},
|
|
@@ -4833,7 +4836,7 @@ function TableBodyRow({
|
|
|
4833
4836
|
}),
|
|
4834
4837
|
!locked && virtualPaddingRight ? (
|
|
4835
4838
|
// fake empty column to the right for virtualization scroll padding
|
|
4836
|
-
/* @__PURE__ */ (0,
|
|
4839
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)("td", { style: { display: "flex", width: virtualPaddingRight } })
|
|
4837
4840
|
) : null
|
|
4838
4841
|
]
|
|
4839
4842
|
},
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
TableBodyRow
|
|
3
|
-
} from "../../../chunk-
|
|
4
|
-
import "../../../chunk-M7INAUAJ.js";
|
|
3
|
+
} from "../../../chunk-TQIKP534.js";
|
|
5
4
|
import "../../../chunk-7AXHAWJX.js";
|
|
6
5
|
import "../../../chunk-P3MIP2FD.js";
|
|
6
|
+
import "../../../chunk-M7INAUAJ.js";
|
|
7
7
|
import "../../../chunk-3HBYDOYE.js";
|
|
8
8
|
import "../../../chunk-IMOIZFJZ.js";
|
|
9
9
|
import "../../../chunk-MBZ55T2D.js";
|
|
@@ -23,6 +23,7 @@ import "../../../chunk-VJVY6NPF.js";
|
|
|
23
23
|
import "../../../chunk-EWGHVZL5.js";
|
|
24
24
|
import "../../../chunk-DCLNAUC4.js";
|
|
25
25
|
import "../../../chunk-PQWWVBSR.js";
|
|
26
|
+
import "../../../chunk-ESCNCQGI.js";
|
|
26
27
|
import "../../../chunk-AT4AWD6B.js";
|
|
27
28
|
import "../../../chunk-J5V2JRIK.js";
|
|
28
29
|
import "../../../chunk-TYAQWVIM.js";
|
|
@@ -32,13 +33,13 @@ import "../../../chunk-AG43RS4Q.js";
|
|
|
32
33
|
import "../../../chunk-XM7IQHBU.js";
|
|
33
34
|
import "../../../chunk-FRHPFACM.js";
|
|
34
35
|
import "../../../chunk-T36HX6QY.js";
|
|
35
|
-
import "../../../chunk-
|
|
36
|
+
import "../../../chunk-IFHMGICR.js";
|
|
36
37
|
import "../../../chunk-SBRRNFOP.js";
|
|
37
38
|
import "../../../chunk-Y2GK27RX.js";
|
|
38
39
|
import "../../../chunk-EU73QPW7.js";
|
|
39
40
|
import "../../../chunk-QVWYTQKL.js";
|
|
40
41
|
import "../../../chunk-NO5BIKWS.js";
|
|
41
|
-
import "../../../chunk-
|
|
42
|
+
import "../../../chunk-CANJ2YPW.js";
|
|
42
43
|
import "../../../chunk-V47RTW7E.js";
|
|
43
44
|
import "../../../chunk-22VBZWJG.js";
|
|
44
45
|
import "../../../chunk-NVOZAVEX.js";
|
|
@@ -4559,6 +4559,9 @@ var Pagination = ({
|
|
|
4559
4559
|
};
|
|
4560
4560
|
Pagination.displayName = "Pagination";
|
|
4561
4561
|
|
|
4562
|
+
// src/components/SkeletonParagraph.tsx
|
|
4563
|
+
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
4564
|
+
|
|
4562
4565
|
// src/components/DataGrid/TableBody/index.tsx
|
|
4563
4566
|
var import_clsx37 = __toESM(require("clsx"), 1);
|
|
4564
4567
|
|
|
@@ -4566,7 +4569,7 @@ var import_clsx37 = __toESM(require("clsx"), 1);
|
|
|
4566
4569
|
var import_clsx36 = __toESM(require("clsx"), 1);
|
|
4567
4570
|
var import_react_table3 = require("@tanstack/react-table");
|
|
4568
4571
|
var import_react36 = __toESM(require("react"), 1);
|
|
4569
|
-
var
|
|
4572
|
+
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
4570
4573
|
var valueFormatters = {
|
|
4571
4574
|
date: (value) => typeof value === "string" ? formatDate(value) : "",
|
|
4572
4575
|
currency: (value) => formatCurrencyDisplay(value)
|
|
@@ -4599,7 +4602,7 @@ function TableBodyRow({
|
|
|
4599
4602
|
const columns = locked ? visibleCells : virtualColumns;
|
|
4600
4603
|
const isError = typeof row.original === "object" && row.original !== null && "rowState" in row.original && row.original.rowState === "error";
|
|
4601
4604
|
const CellElement = locked ? DataGridCell : DragAlongCell;
|
|
4602
|
-
return /* @__PURE__ */ (0,
|
|
4605
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
|
|
4603
4606
|
"tr",
|
|
4604
4607
|
{
|
|
4605
4608
|
className: (0, import_clsx36.default)(
|
|
@@ -4620,7 +4623,7 @@ function TableBodyRow({
|
|
|
4620
4623
|
children: [
|
|
4621
4624
|
!locked && virtualPaddingLeft ? (
|
|
4622
4625
|
// fake empty column to the left for virtualization scroll padding
|
|
4623
|
-
/* @__PURE__ */ (0,
|
|
4626
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("td", { style: { display: "flex", width: virtualPaddingLeft } })
|
|
4624
4627
|
) : null,
|
|
4625
4628
|
columns.map((column) => {
|
|
4626
4629
|
var _a2, _b, _c, _d;
|
|
@@ -4631,7 +4634,7 @@ function TableBodyRow({
|
|
|
4631
4634
|
const cellFormat = (_a2 = cell.column.columnDef.meta) == null ? void 0 : _a2.format;
|
|
4632
4635
|
const cellValue = cellFormat && isValueFormatterKey(cellFormat) ? valueFormatters[cellFormat](cell.getValue()) : cell.getValue();
|
|
4633
4636
|
const cellAlignment = (_c = (_b = cell.column.columnDef.meta) == null ? void 0 : _b.align) != null ? _c : typeof cellValue === "number" ? "right" : "left";
|
|
4634
|
-
return ((_d = cell.column.columnDef.meta) == null ? void 0 : _d.useCustomRenderer) ? /* @__PURE__ */ (0,
|
|
4637
|
+
return ((_d = cell.column.columnDef.meta) == null ? void 0 : _d.useCustomRenderer) ? /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_react36.default.Fragment, { children: (0, import_react_table3.flexRender)(cell.column.columnDef.cell, cell.getContext()) }, cell.id) : /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
4635
4638
|
CellElement,
|
|
4636
4639
|
{
|
|
4637
4640
|
id: id ? `${id}-row-${row.id}-cell-${cell.id}` : void 0,
|
|
@@ -4641,7 +4644,7 @@ function TableBodyRow({
|
|
|
4641
4644
|
"justify-start": cellAlignment === "left",
|
|
4642
4645
|
"justify-end": cellAlignment === "right"
|
|
4643
4646
|
}),
|
|
4644
|
-
children: /* @__PURE__ */ (0,
|
|
4647
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
4645
4648
|
Tooltip,
|
|
4646
4649
|
{
|
|
4647
4650
|
id: id ? `${id}-tooltip-${cell.id}` : void 0,
|
|
@@ -4649,7 +4652,7 @@ function TableBodyRow({
|
|
|
4649
4652
|
showOnTruncation: true,
|
|
4650
4653
|
message: cellValue,
|
|
4651
4654
|
position: "bottom",
|
|
4652
|
-
children: /* @__PURE__ */ (0,
|
|
4655
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Paragraph, { addOverflow: true, tall: true, children: cellValue })
|
|
4653
4656
|
}
|
|
4654
4657
|
)
|
|
4655
4658
|
},
|
|
@@ -4658,7 +4661,7 @@ function TableBodyRow({
|
|
|
4658
4661
|
}),
|
|
4659
4662
|
!locked && virtualPaddingRight ? (
|
|
4660
4663
|
// fake empty column to the right for virtualization scroll padding
|
|
4661
|
-
/* @__PURE__ */ (0,
|
|
4664
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("td", { style: { display: "flex", width: virtualPaddingRight } })
|
|
4662
4665
|
) : null
|
|
4663
4666
|
]
|
|
4664
4667
|
},
|
|
@@ -4667,7 +4670,7 @@ function TableBodyRow({
|
|
|
4667
4670
|
}
|
|
4668
4671
|
|
|
4669
4672
|
// src/components/DataGrid/TableBody/LoadingCell.tsx
|
|
4670
|
-
var
|
|
4673
|
+
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
4671
4674
|
function LoadingCell({
|
|
4672
4675
|
id,
|
|
4673
4676
|
testid,
|
|
@@ -4675,16 +4678,16 @@ function LoadingCell({
|
|
|
4675
4678
|
}) {
|
|
4676
4679
|
const key = `loading-${column.id}`;
|
|
4677
4680
|
if (column.cell === "checkbox") {
|
|
4678
|
-
return /* @__PURE__ */ (0,
|
|
4681
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(DataGridCell, { id: id ? `${id}-${key}` : void 0, testid: testid ? `${testid}-${key}` : void 0, children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Checkbox, { id: id ? `${id}-${key}-checkbox` : void 0, testid: testid ? `${testid}-${key}-checkbox` : void 0, disabled: true }) }, key);
|
|
4679
4682
|
}
|
|
4680
4683
|
if (column.cell === "input") {
|
|
4681
|
-
return /* @__PURE__ */ (0,
|
|
4684
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
4682
4685
|
DataGridCell,
|
|
4683
4686
|
{
|
|
4684
4687
|
id: id ? `${id}-${key}` : void 0,
|
|
4685
4688
|
testid: testid ? `${testid}-${key}` : void 0,
|
|
4686
4689
|
component: "input",
|
|
4687
|
-
children: /* @__PURE__ */ (0,
|
|
4690
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
4688
4691
|
Input,
|
|
4689
4692
|
{
|
|
4690
4693
|
id: id ? `${id}-${key}-input` : void 0,
|
|
@@ -4698,11 +4701,11 @@ function LoadingCell({
|
|
|
4698
4701
|
key
|
|
4699
4702
|
);
|
|
4700
4703
|
}
|
|
4701
|
-
return /* @__PURE__ */ (0,
|
|
4704
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(DataGridCell, { id: id ? `${id}-${key}` : void 0, testid: testid ? `${testid}-${key}` : void 0, children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "bg-linear-270 to-neutral-300/[24%] from-neutral-300/[12%] rounded-xs w-full max-w-25 h-6" }) }, key);
|
|
4702
4705
|
}
|
|
4703
4706
|
|
|
4704
4707
|
// src/components/DataGrid/TableBody/index.tsx
|
|
4705
|
-
var
|
|
4708
|
+
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
4706
4709
|
function TableBody({
|
|
4707
4710
|
id,
|
|
4708
4711
|
testid,
|
|
@@ -4736,7 +4739,7 @@ function TableBody({
|
|
|
4736
4739
|
} else {
|
|
4737
4740
|
headerGroups = table.getCenterHeaderGroups();
|
|
4738
4741
|
}
|
|
4739
|
-
return /* @__PURE__ */ (0,
|
|
4742
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
|
|
4740
4743
|
"tbody",
|
|
4741
4744
|
{
|
|
4742
4745
|
className: (0, import_clsx37.default)(locked ? "shadow-16" : ""),
|
|
@@ -4748,7 +4751,7 @@ function TableBody({
|
|
|
4748
4751
|
// needed for absolute positioning of rows
|
|
4749
4752
|
},
|
|
4750
4753
|
children: [
|
|
4751
|
-
showFilterRow && /* @__PURE__ */ (0,
|
|
4754
|
+
showFilterRow && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
4752
4755
|
"tr",
|
|
4753
4756
|
{
|
|
4754
4757
|
style: {
|
|
@@ -4764,7 +4767,7 @@ function TableBody({
|
|
|
4764
4767
|
children: headerGroups.flatMap(
|
|
4765
4768
|
(x) => x.headers.map((header) => {
|
|
4766
4769
|
var _a, _b, _c, _d, _e;
|
|
4767
|
-
return /* @__PURE__ */ (0,
|
|
4770
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
4768
4771
|
CellElement,
|
|
4769
4772
|
{
|
|
4770
4773
|
id: id ? `${id}-filter-cell-${header.id}` : void 0,
|
|
@@ -4775,7 +4778,7 @@ function TableBody({
|
|
|
4775
4778
|
children: header.column.getCanFilter() && ((_e = (_c = (_b = header.column.columnDef.meta) == null ? void 0 : _b.filterRowCell) == null ? void 0 : _c.call(_b, {
|
|
4776
4779
|
header,
|
|
4777
4780
|
table
|
|
4778
|
-
})) != null ? _e : /* @__PURE__ */ (0,
|
|
4781
|
+
})) != null ? _e : /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
4779
4782
|
Search,
|
|
4780
4783
|
{
|
|
4781
4784
|
id: id ? `${id}-filter-search-${header.id}` : void 0,
|
|
@@ -4796,7 +4799,7 @@ function TableBody({
|
|
|
4796
4799
|
),
|
|
4797
4800
|
virtualRows.map((virtualRow) => {
|
|
4798
4801
|
const row = rows[virtualRow.index];
|
|
4799
|
-
return /* @__PURE__ */ (0,
|
|
4802
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
4800
4803
|
TableBodyRow,
|
|
4801
4804
|
{
|
|
4802
4805
|
id,
|
|
@@ -4815,7 +4818,7 @@ function TableBody({
|
|
|
4815
4818
|
row.id
|
|
4816
4819
|
);
|
|
4817
4820
|
}),
|
|
4818
|
-
!pagination && isLoadingMore && hasMore && /* @__PURE__ */ (0,
|
|
4821
|
+
!pagination && isLoadingMore && hasMore && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
4819
4822
|
"tr",
|
|
4820
4823
|
{
|
|
4821
4824
|
style: {
|
|
@@ -4825,7 +4828,7 @@ function TableBody({
|
|
|
4825
4828
|
transform: `translateY(${virtualRows[virtualRows.length - 1].start + 40}px)`
|
|
4826
4829
|
},
|
|
4827
4830
|
className: "odd:bg-background-grouped-primary-normal even:bg-background-grouped-secondary-normal",
|
|
4828
|
-
children: table.getAllLeafColumns().map((column) => /* @__PURE__ */ (0,
|
|
4831
|
+
children: table.getAllLeafColumns().map((column) => /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
4829
4832
|
LoadingCell,
|
|
4830
4833
|
{
|
|
4831
4834
|
id,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
TableBody
|
|
3
|
-
} from "../../../chunk-
|
|
4
|
-
import "../../../chunk-M7INAUAJ.js";
|
|
3
|
+
} from "../../../chunk-TQIKP534.js";
|
|
5
4
|
import "../../../chunk-7AXHAWJX.js";
|
|
6
5
|
import "../../../chunk-P3MIP2FD.js";
|
|
6
|
+
import "../../../chunk-M7INAUAJ.js";
|
|
7
7
|
import "../../../chunk-3HBYDOYE.js";
|
|
8
8
|
import "../../../chunk-IMOIZFJZ.js";
|
|
9
9
|
import "../../../chunk-MBZ55T2D.js";
|
|
@@ -23,6 +23,7 @@ import "../../../chunk-VJVY6NPF.js";
|
|
|
23
23
|
import "../../../chunk-EWGHVZL5.js";
|
|
24
24
|
import "../../../chunk-DCLNAUC4.js";
|
|
25
25
|
import "../../../chunk-PQWWVBSR.js";
|
|
26
|
+
import "../../../chunk-ESCNCQGI.js";
|
|
26
27
|
import "../../../chunk-AT4AWD6B.js";
|
|
27
28
|
import "../../../chunk-J5V2JRIK.js";
|
|
28
29
|
import "../../../chunk-TYAQWVIM.js";
|
|
@@ -32,13 +33,13 @@ import "../../../chunk-AG43RS4Q.js";
|
|
|
32
33
|
import "../../../chunk-XM7IQHBU.js";
|
|
33
34
|
import "../../../chunk-FRHPFACM.js";
|
|
34
35
|
import "../../../chunk-T36HX6QY.js";
|
|
35
|
-
import "../../../chunk-
|
|
36
|
+
import "../../../chunk-IFHMGICR.js";
|
|
36
37
|
import "../../../chunk-SBRRNFOP.js";
|
|
37
38
|
import "../../../chunk-Y2GK27RX.js";
|
|
38
39
|
import "../../../chunk-EU73QPW7.js";
|
|
39
40
|
import "../../../chunk-QVWYTQKL.js";
|
|
40
41
|
import "../../../chunk-NO5BIKWS.js";
|
|
41
|
-
import "../../../chunk-
|
|
42
|
+
import "../../../chunk-CANJ2YPW.js";
|
|
42
43
|
import "../../../chunk-V47RTW7E.js";
|
|
43
44
|
import "../../../chunk-22VBZWJG.js";
|
|
44
45
|
import "../../../chunk-NVOZAVEX.js";
|