@dmsi/wedgekit-react 0.0.511 → 0.0.513
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-Y2GK27RX.js → chunk-BWPNXY7T.js} +0 -1
- package/dist/{chunk-FJRYHJUV.js → chunk-CDMXM5JW.js} +1 -1
- package/dist/{chunk-JWVZOEF5.js → chunk-YY66JVTB.js} +18 -9
- package/dist/{chunk-F6RZ7MUE.js → chunk-ZCIC3AIZ.js} +4 -1
- package/dist/components/CalendarRange.cjs +21 -9
- package/dist/components/CalendarRange.css +142 -0
- package/dist/components/CalendarRange.js +4 -4
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.cjs +21 -9
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.css +142 -0
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.js +4 -4
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.cjs +21 -9
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.css +142 -0
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.js +4 -4
- package/dist/components/DataGrid/PinnedColumns.cjs +21 -9
- package/dist/components/DataGrid/PinnedColumns.css +142 -0
- package/dist/components/DataGrid/PinnedColumns.js +4 -4
- package/dist/components/DataGrid/TableBody/LoadingCell.cjs +21 -9
- package/dist/components/DataGrid/TableBody/LoadingCell.css +142 -0
- package/dist/components/DataGrid/TableBody/LoadingCell.js +4 -4
- package/dist/components/DataGrid/TableBody/TableBodyRow.cjs +21 -9
- package/dist/components/DataGrid/TableBody/TableBodyRow.css +142 -0
- package/dist/components/DataGrid/TableBody/TableBodyRow.js +4 -4
- package/dist/components/DataGrid/TableBody/index.cjs +21 -9
- package/dist/components/DataGrid/TableBody/index.css +142 -0
- package/dist/components/DataGrid/TableBody/index.js +4 -4
- package/dist/components/DataGrid/index.cjs +21 -9
- package/dist/components/DataGrid/index.css +142 -0
- package/dist/components/DataGrid/index.js +4 -4
- package/dist/components/DataGrid/utils.cjs +21 -9
- package/dist/components/DataGrid/utils.css +142 -0
- package/dist/components/DataGrid/utils.js +4 -4
- package/dist/components/DataGridCell.cjs +4 -1
- package/dist/components/DataGridCell.js +1 -1
- package/dist/components/DateInput.cjs +21 -9
- package/dist/components/DateInput.css +142 -0
- package/dist/components/DateInput.js +4 -4
- package/dist/components/DateRangeInput.cjs +21 -9
- package/dist/components/DateRangeInput.css +142 -0
- package/dist/components/DateRangeInput.js +4 -4
- package/dist/components/Grid.cjs +0 -1
- package/dist/components/Grid.js +1 -1
- package/dist/components/MobileDataGrid/ColumnSelector/index.cjs +21 -9
- package/dist/components/MobileDataGrid/ColumnSelector/index.css +142 -0
- package/dist/components/MobileDataGrid/ColumnSelector/index.js +4 -4
- package/dist/components/MobileDataGrid/MobileDataGridHeader.cjs +21 -9
- package/dist/components/MobileDataGrid/MobileDataGridHeader.css +142 -0
- package/dist/components/MobileDataGrid/MobileDataGridHeader.js +4 -4
- package/dist/components/MobileDataGrid/index.cjs +21 -9
- package/dist/components/MobileDataGrid/index.css +142 -0
- package/dist/components/MobileDataGrid/index.js +4 -4
- package/dist/components/ProductImagePreview/index.cjs +0 -1
- package/dist/components/ProductImagePreview/index.js +2 -2
- package/dist/components/index.cjs +21 -10
- package/dist/components/index.css +142 -0
- package/dist/components/index.js +4 -4
- package/dist/index.css +142 -0
- package/package.json +1 -1
- package/src/components/DataGrid/TableBody/TableBodyRow.tsx +7 -4
- package/src/components/DataGrid/TableBody/index.tsx +9 -0
- package/src/components/DataGrid/index.tsx +4 -0
- package/src/components/DataGrid/types.ts +2 -0
- package/src/components/DataGridCell.tsx +3 -0
- package/src/components/Grid.tsx +1 -2
- package/src/index.css +1 -0
|
@@ -1038,9 +1038,36 @@
|
|
|
1038
1038
|
.grid-cols-2 {
|
|
1039
1039
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
1040
1040
|
}
|
|
1041
|
+
.grid-cols-3 {
|
|
1042
|
+
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
1043
|
+
}
|
|
1044
|
+
.grid-cols-4 {
|
|
1045
|
+
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
1046
|
+
}
|
|
1047
|
+
.grid-cols-5 {
|
|
1048
|
+
grid-template-columns: repeat(5, minmax(0, 1fr));
|
|
1049
|
+
}
|
|
1050
|
+
.grid-cols-6 {
|
|
1051
|
+
grid-template-columns: repeat(6, minmax(0, 1fr));
|
|
1052
|
+
}
|
|
1041
1053
|
.grid-cols-7 {
|
|
1042
1054
|
grid-template-columns: repeat(7, minmax(0, 1fr));
|
|
1043
1055
|
}
|
|
1056
|
+
.grid-cols-8 {
|
|
1057
|
+
grid-template-columns: repeat(8, minmax(0, 1fr));
|
|
1058
|
+
}
|
|
1059
|
+
.grid-cols-9 {
|
|
1060
|
+
grid-template-columns: repeat(9, minmax(0, 1fr));
|
|
1061
|
+
}
|
|
1062
|
+
.grid-cols-10 {
|
|
1063
|
+
grid-template-columns: repeat(10, minmax(0, 1fr));
|
|
1064
|
+
}
|
|
1065
|
+
.grid-cols-11 {
|
|
1066
|
+
grid-template-columns: repeat(11, minmax(0, 1fr));
|
|
1067
|
+
}
|
|
1068
|
+
.grid-cols-12 {
|
|
1069
|
+
grid-template-columns: repeat(12, minmax(0, 1fr));
|
|
1070
|
+
}
|
|
1044
1071
|
.grid-cols-\[auto_1fr\] {
|
|
1045
1072
|
grid-template-columns: auto 1fr;
|
|
1046
1073
|
}
|
|
@@ -3867,6 +3894,66 @@
|
|
|
3867
3894
|
margin-top: var(--spacing-desktop-compact-component-gap);
|
|
3868
3895
|
}
|
|
3869
3896
|
}
|
|
3897
|
+
.compact\:grid-cols-1 {
|
|
3898
|
+
&:where([data-compact]) {
|
|
3899
|
+
grid-template-columns: repeat(1, minmax(0, 1fr));
|
|
3900
|
+
}
|
|
3901
|
+
}
|
|
3902
|
+
.compact\:grid-cols-2 {
|
|
3903
|
+
&:where([data-compact]) {
|
|
3904
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
3905
|
+
}
|
|
3906
|
+
}
|
|
3907
|
+
.compact\:grid-cols-3 {
|
|
3908
|
+
&:where([data-compact]) {
|
|
3909
|
+
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
3910
|
+
}
|
|
3911
|
+
}
|
|
3912
|
+
.compact\:grid-cols-4 {
|
|
3913
|
+
&:where([data-compact]) {
|
|
3914
|
+
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
3915
|
+
}
|
|
3916
|
+
}
|
|
3917
|
+
.compact\:grid-cols-5 {
|
|
3918
|
+
&:where([data-compact]) {
|
|
3919
|
+
grid-template-columns: repeat(5, minmax(0, 1fr));
|
|
3920
|
+
}
|
|
3921
|
+
}
|
|
3922
|
+
.compact\:grid-cols-6 {
|
|
3923
|
+
&:where([data-compact]) {
|
|
3924
|
+
grid-template-columns: repeat(6, minmax(0, 1fr));
|
|
3925
|
+
}
|
|
3926
|
+
}
|
|
3927
|
+
.compact\:grid-cols-7 {
|
|
3928
|
+
&:where([data-compact]) {
|
|
3929
|
+
grid-template-columns: repeat(7, minmax(0, 1fr));
|
|
3930
|
+
}
|
|
3931
|
+
}
|
|
3932
|
+
.compact\:grid-cols-8 {
|
|
3933
|
+
&:where([data-compact]) {
|
|
3934
|
+
grid-template-columns: repeat(8, minmax(0, 1fr));
|
|
3935
|
+
}
|
|
3936
|
+
}
|
|
3937
|
+
.compact\:grid-cols-9 {
|
|
3938
|
+
&:where([data-compact]) {
|
|
3939
|
+
grid-template-columns: repeat(9, minmax(0, 1fr));
|
|
3940
|
+
}
|
|
3941
|
+
}
|
|
3942
|
+
.compact\:grid-cols-10 {
|
|
3943
|
+
&:where([data-compact]) {
|
|
3944
|
+
grid-template-columns: repeat(10, minmax(0, 1fr));
|
|
3945
|
+
}
|
|
3946
|
+
}
|
|
3947
|
+
.compact\:grid-cols-11 {
|
|
3948
|
+
&:where([data-compact]) {
|
|
3949
|
+
grid-template-columns: repeat(11, minmax(0, 1fr));
|
|
3950
|
+
}
|
|
3951
|
+
}
|
|
3952
|
+
.compact\:grid-cols-12 {
|
|
3953
|
+
&:where([data-compact]) {
|
|
3954
|
+
grid-template-columns: repeat(12, minmax(0, 1fr));
|
|
3955
|
+
}
|
|
3956
|
+
}
|
|
3870
3957
|
.compact\:gap-desktop-compact-component-gap {
|
|
3871
3958
|
&:where([data-compact]) {
|
|
3872
3959
|
gap: var(--spacing-desktop-compact-component-gap);
|
|
@@ -4203,11 +4290,66 @@
|
|
|
4203
4290
|
flex-grow: 0;
|
|
4204
4291
|
}
|
|
4205
4292
|
}
|
|
4293
|
+
.desktop\:grid-cols-1 {
|
|
4294
|
+
@container root (width >= 48rem) {
|
|
4295
|
+
grid-template-columns: repeat(1, minmax(0, 1fr));
|
|
4296
|
+
}
|
|
4297
|
+
}
|
|
4298
|
+
.desktop\:grid-cols-2 {
|
|
4299
|
+
@container root (width >= 48rem) {
|
|
4300
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
4301
|
+
}
|
|
4302
|
+
}
|
|
4303
|
+
.desktop\:grid-cols-3 {
|
|
4304
|
+
@container root (width >= 48rem) {
|
|
4305
|
+
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
4306
|
+
}
|
|
4307
|
+
}
|
|
4206
4308
|
.desktop\:grid-cols-4 {
|
|
4207
4309
|
@container root (width >= 48rem) {
|
|
4208
4310
|
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
4209
4311
|
}
|
|
4210
4312
|
}
|
|
4313
|
+
.desktop\:grid-cols-5 {
|
|
4314
|
+
@container root (width >= 48rem) {
|
|
4315
|
+
grid-template-columns: repeat(5, minmax(0, 1fr));
|
|
4316
|
+
}
|
|
4317
|
+
}
|
|
4318
|
+
.desktop\:grid-cols-6 {
|
|
4319
|
+
@container root (width >= 48rem) {
|
|
4320
|
+
grid-template-columns: repeat(6, minmax(0, 1fr));
|
|
4321
|
+
}
|
|
4322
|
+
}
|
|
4323
|
+
.desktop\:grid-cols-7 {
|
|
4324
|
+
@container root (width >= 48rem) {
|
|
4325
|
+
grid-template-columns: repeat(7, minmax(0, 1fr));
|
|
4326
|
+
}
|
|
4327
|
+
}
|
|
4328
|
+
.desktop\:grid-cols-8 {
|
|
4329
|
+
@container root (width >= 48rem) {
|
|
4330
|
+
grid-template-columns: repeat(8, minmax(0, 1fr));
|
|
4331
|
+
}
|
|
4332
|
+
}
|
|
4333
|
+
.desktop\:grid-cols-9 {
|
|
4334
|
+
@container root (width >= 48rem) {
|
|
4335
|
+
grid-template-columns: repeat(9, minmax(0, 1fr));
|
|
4336
|
+
}
|
|
4337
|
+
}
|
|
4338
|
+
.desktop\:grid-cols-10 {
|
|
4339
|
+
@container root (width >= 48rem) {
|
|
4340
|
+
grid-template-columns: repeat(10, minmax(0, 1fr));
|
|
4341
|
+
}
|
|
4342
|
+
}
|
|
4343
|
+
.desktop\:grid-cols-11 {
|
|
4344
|
+
@container root (width >= 48rem) {
|
|
4345
|
+
grid-template-columns: repeat(11, minmax(0, 1fr));
|
|
4346
|
+
}
|
|
4347
|
+
}
|
|
4348
|
+
.desktop\:grid-cols-12 {
|
|
4349
|
+
@container root (width >= 48rem) {
|
|
4350
|
+
grid-template-columns: repeat(12, minmax(0, 1fr));
|
|
4351
|
+
}
|
|
4352
|
+
}
|
|
4211
4353
|
.desktop\:flex-col {
|
|
4212
4354
|
@container root (width >= 48rem) {
|
|
4213
4355
|
flex-direction: column;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getSortIcon
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-YY66JVTB.js";
|
|
4
4
|
import "../../chunk-M7INAUAJ.js";
|
|
5
5
|
import "../../chunk-ELXVDRWS.js";
|
|
6
6
|
import "../../chunk-3UUCDNX3.js";
|
|
7
|
-
import "../../chunk-
|
|
7
|
+
import "../../chunk-CDMXM5JW.js";
|
|
8
8
|
import "../../chunk-BQNPOGD5.js";
|
|
9
9
|
import "../../chunk-Y5GD2FJA.js";
|
|
10
10
|
import "../../chunk-MBZ55T2D.js";
|
|
@@ -31,9 +31,9 @@ import "../../chunk-CMMQTIVM.js";
|
|
|
31
31
|
import "../../chunk-AG43RS4Q.js";
|
|
32
32
|
import "../../chunk-AKJUBFJK.js";
|
|
33
33
|
import "../../chunk-SUSUNSVZ.js";
|
|
34
|
-
import "../../chunk-
|
|
34
|
+
import "../../chunk-BWPNXY7T.js";
|
|
35
35
|
import "../../chunk-QVWYTQKL.js";
|
|
36
|
-
import "../../chunk-
|
|
36
|
+
import "../../chunk-ZCIC3AIZ.js";
|
|
37
37
|
import "../../chunk-TCMOGTPB.js";
|
|
38
38
|
import "../../chunk-DVU5XV7L.js";
|
|
39
39
|
import "../../chunk-LKKFQLWD.js";
|
|
@@ -1971,6 +1971,7 @@ var DataGridCell = (0, import_react11.memo)(
|
|
|
1971
1971
|
center,
|
|
1972
1972
|
width,
|
|
1973
1973
|
minWidth,
|
|
1974
|
+
disabled,
|
|
1974
1975
|
testid
|
|
1975
1976
|
} = _b, props = __objRest(_b, [
|
|
1976
1977
|
"id",
|
|
@@ -1989,6 +1990,7 @@ var DataGridCell = (0, import_react11.memo)(
|
|
|
1989
1990
|
"center",
|
|
1990
1991
|
"width",
|
|
1991
1992
|
"minWidth",
|
|
1993
|
+
"disabled",
|
|
1992
1994
|
"testid"
|
|
1993
1995
|
]);
|
|
1994
1996
|
const Element = type === "header" ? "th" : "td";
|
|
@@ -2054,7 +2056,8 @@ var DataGridCell = (0, import_react11.memo)(
|
|
|
2054
2056
|
paddedLeft && "pl-2",
|
|
2055
2057
|
component === "icon" && "border-l",
|
|
2056
2058
|
isGrabbing && "!cursor-grabbing",
|
|
2057
|
-
component === "checkbox" || center && "justify-center"
|
|
2059
|
+
component === "checkbox" || center && "justify-center",
|
|
2060
|
+
disabled && "!text-text-primary-disabled"
|
|
2058
2061
|
);
|
|
2059
2062
|
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
2060
2063
|
Element,
|
|
@@ -2188,6 +2188,7 @@ var DataGridCell = (0, import_react11.memo)(
|
|
|
2188
2188
|
center,
|
|
2189
2189
|
width,
|
|
2190
2190
|
minWidth,
|
|
2191
|
+
disabled,
|
|
2191
2192
|
testid
|
|
2192
2193
|
} = _b, props = __objRest(_b, [
|
|
2193
2194
|
"id",
|
|
@@ -2206,6 +2207,7 @@ var DataGridCell = (0, import_react11.memo)(
|
|
|
2206
2207
|
"center",
|
|
2207
2208
|
"width",
|
|
2208
2209
|
"minWidth",
|
|
2210
|
+
"disabled",
|
|
2209
2211
|
"testid"
|
|
2210
2212
|
]);
|
|
2211
2213
|
const Element = type === "header" ? "th" : "td";
|
|
@@ -2271,7 +2273,8 @@ var DataGridCell = (0, import_react11.memo)(
|
|
|
2271
2273
|
paddedLeft && "pl-2",
|
|
2272
2274
|
component === "icon" && "border-l",
|
|
2273
2275
|
isGrabbing && "!cursor-grabbing",
|
|
2274
|
-
component === "checkbox" || center && "justify-center"
|
|
2276
|
+
component === "checkbox" || center && "justify-center",
|
|
2277
|
+
disabled && "!text-text-primary-disabled"
|
|
2275
2278
|
);
|
|
2276
2279
|
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
2277
2280
|
Element,
|
|
@@ -2664,7 +2667,8 @@ function TableBodyRow({
|
|
|
2664
2667
|
showFilterRow,
|
|
2665
2668
|
// enableColumnSelector = false,
|
|
2666
2669
|
locked,
|
|
2667
|
-
pinDirection
|
|
2670
|
+
pinDirection,
|
|
2671
|
+
disabled
|
|
2668
2672
|
}) {
|
|
2669
2673
|
var _a;
|
|
2670
2674
|
let visibleCells;
|
|
@@ -2682,10 +2686,11 @@ function TableBodyRow({
|
|
|
2682
2686
|
{
|
|
2683
2687
|
className: (0, import_clsx11.default)(
|
|
2684
2688
|
"min-h-10",
|
|
2685
|
-
"transition-colors
|
|
2686
|
-
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
+
"transition-colors",
|
|
2690
|
+
!disabled && "hover:bg-background-action-secondary-hover",
|
|
2691
|
+
row.getIsSelected() && !disabled && "!bg-background-action-secondary-hover",
|
|
2692
|
+
isError && !disabled && "!bg-background-action-critical-secondary-hover",
|
|
2693
|
+
showFilterRow && !disabled ? "even:bg-background-grouped-primary-normal odd:bg-background-grouped-secondary-normal" : "odd:bg-background-grouped-primary-normal even:bg-background-grouped-secondary-normal"
|
|
2689
2694
|
),
|
|
2690
2695
|
id: id ? `${id}-row-${row.id}` : void 0,
|
|
2691
2696
|
"data-testid": testid ? `${testid}-row-${row.id}` : void 0,
|
|
@@ -2795,7 +2800,9 @@ function TableBody({
|
|
|
2795
2800
|
showFilterRow,
|
|
2796
2801
|
enableColumnSelector = false,
|
|
2797
2802
|
locked,
|
|
2798
|
-
pinDirection
|
|
2803
|
+
pinDirection,
|
|
2804
|
+
rowDisabled,
|
|
2805
|
+
rowDisabledAccessor
|
|
2799
2806
|
}) {
|
|
2800
2807
|
const { rows } = table.getRowModel();
|
|
2801
2808
|
const rowVirtualizer = (0, import_react_virtual.useVirtualizer)({
|
|
@@ -2888,7 +2895,8 @@ function TableBody({
|
|
|
2888
2895
|
showFilterRow,
|
|
2889
2896
|
enableColumnSelector,
|
|
2890
2897
|
locked,
|
|
2891
|
-
pinDirection
|
|
2898
|
+
pinDirection,
|
|
2899
|
+
disabled: rowDisabledAccessor ? rowDisabledAccessor(row.original) : rowDisabled
|
|
2892
2900
|
},
|
|
2893
2901
|
row.id
|
|
2894
2902
|
);
|
|
@@ -3198,6 +3206,8 @@ function DataGrid({
|
|
|
3198
3206
|
predeterminedLeftPins = [],
|
|
3199
3207
|
predeterminedRightPins = [],
|
|
3200
3208
|
useMenuDefaultMinWidth,
|
|
3209
|
+
rowDisabled,
|
|
3210
|
+
rowDisabledAccessor,
|
|
3201
3211
|
ref
|
|
3202
3212
|
}) {
|
|
3203
3213
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
@@ -3586,7 +3596,9 @@ function DataGrid({
|
|
|
3586
3596
|
isLoadingMore,
|
|
3587
3597
|
hasMore,
|
|
3588
3598
|
showFilterRow,
|
|
3589
|
-
enableColumnSelector
|
|
3599
|
+
enableColumnSelector,
|
|
3600
|
+
rowDisabled,
|
|
3601
|
+
rowDisabledAccessor
|
|
3590
3602
|
}
|
|
3591
3603
|
)
|
|
3592
3604
|
] }),
|
|
@@ -1038,9 +1038,36 @@
|
|
|
1038
1038
|
.grid-cols-2 {
|
|
1039
1039
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
1040
1040
|
}
|
|
1041
|
+
.grid-cols-3 {
|
|
1042
|
+
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
1043
|
+
}
|
|
1044
|
+
.grid-cols-4 {
|
|
1045
|
+
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
1046
|
+
}
|
|
1047
|
+
.grid-cols-5 {
|
|
1048
|
+
grid-template-columns: repeat(5, minmax(0, 1fr));
|
|
1049
|
+
}
|
|
1050
|
+
.grid-cols-6 {
|
|
1051
|
+
grid-template-columns: repeat(6, minmax(0, 1fr));
|
|
1052
|
+
}
|
|
1041
1053
|
.grid-cols-7 {
|
|
1042
1054
|
grid-template-columns: repeat(7, minmax(0, 1fr));
|
|
1043
1055
|
}
|
|
1056
|
+
.grid-cols-8 {
|
|
1057
|
+
grid-template-columns: repeat(8, minmax(0, 1fr));
|
|
1058
|
+
}
|
|
1059
|
+
.grid-cols-9 {
|
|
1060
|
+
grid-template-columns: repeat(9, minmax(0, 1fr));
|
|
1061
|
+
}
|
|
1062
|
+
.grid-cols-10 {
|
|
1063
|
+
grid-template-columns: repeat(10, minmax(0, 1fr));
|
|
1064
|
+
}
|
|
1065
|
+
.grid-cols-11 {
|
|
1066
|
+
grid-template-columns: repeat(11, minmax(0, 1fr));
|
|
1067
|
+
}
|
|
1068
|
+
.grid-cols-12 {
|
|
1069
|
+
grid-template-columns: repeat(12, minmax(0, 1fr));
|
|
1070
|
+
}
|
|
1044
1071
|
.grid-cols-\[auto_1fr\] {
|
|
1045
1072
|
grid-template-columns: auto 1fr;
|
|
1046
1073
|
}
|
|
@@ -3867,6 +3894,66 @@
|
|
|
3867
3894
|
margin-top: var(--spacing-desktop-compact-component-gap);
|
|
3868
3895
|
}
|
|
3869
3896
|
}
|
|
3897
|
+
.compact\:grid-cols-1 {
|
|
3898
|
+
&:where([data-compact]) {
|
|
3899
|
+
grid-template-columns: repeat(1, minmax(0, 1fr));
|
|
3900
|
+
}
|
|
3901
|
+
}
|
|
3902
|
+
.compact\:grid-cols-2 {
|
|
3903
|
+
&:where([data-compact]) {
|
|
3904
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
3905
|
+
}
|
|
3906
|
+
}
|
|
3907
|
+
.compact\:grid-cols-3 {
|
|
3908
|
+
&:where([data-compact]) {
|
|
3909
|
+
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
3910
|
+
}
|
|
3911
|
+
}
|
|
3912
|
+
.compact\:grid-cols-4 {
|
|
3913
|
+
&:where([data-compact]) {
|
|
3914
|
+
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
3915
|
+
}
|
|
3916
|
+
}
|
|
3917
|
+
.compact\:grid-cols-5 {
|
|
3918
|
+
&:where([data-compact]) {
|
|
3919
|
+
grid-template-columns: repeat(5, minmax(0, 1fr));
|
|
3920
|
+
}
|
|
3921
|
+
}
|
|
3922
|
+
.compact\:grid-cols-6 {
|
|
3923
|
+
&:where([data-compact]) {
|
|
3924
|
+
grid-template-columns: repeat(6, minmax(0, 1fr));
|
|
3925
|
+
}
|
|
3926
|
+
}
|
|
3927
|
+
.compact\:grid-cols-7 {
|
|
3928
|
+
&:where([data-compact]) {
|
|
3929
|
+
grid-template-columns: repeat(7, minmax(0, 1fr));
|
|
3930
|
+
}
|
|
3931
|
+
}
|
|
3932
|
+
.compact\:grid-cols-8 {
|
|
3933
|
+
&:where([data-compact]) {
|
|
3934
|
+
grid-template-columns: repeat(8, minmax(0, 1fr));
|
|
3935
|
+
}
|
|
3936
|
+
}
|
|
3937
|
+
.compact\:grid-cols-9 {
|
|
3938
|
+
&:where([data-compact]) {
|
|
3939
|
+
grid-template-columns: repeat(9, minmax(0, 1fr));
|
|
3940
|
+
}
|
|
3941
|
+
}
|
|
3942
|
+
.compact\:grid-cols-10 {
|
|
3943
|
+
&:where([data-compact]) {
|
|
3944
|
+
grid-template-columns: repeat(10, minmax(0, 1fr));
|
|
3945
|
+
}
|
|
3946
|
+
}
|
|
3947
|
+
.compact\:grid-cols-11 {
|
|
3948
|
+
&:where([data-compact]) {
|
|
3949
|
+
grid-template-columns: repeat(11, minmax(0, 1fr));
|
|
3950
|
+
}
|
|
3951
|
+
}
|
|
3952
|
+
.compact\:grid-cols-12 {
|
|
3953
|
+
&:where([data-compact]) {
|
|
3954
|
+
grid-template-columns: repeat(12, minmax(0, 1fr));
|
|
3955
|
+
}
|
|
3956
|
+
}
|
|
3870
3957
|
.compact\:gap-desktop-compact-component-gap {
|
|
3871
3958
|
&:where([data-compact]) {
|
|
3872
3959
|
gap: var(--spacing-desktop-compact-component-gap);
|
|
@@ -4203,11 +4290,66 @@
|
|
|
4203
4290
|
flex-grow: 0;
|
|
4204
4291
|
}
|
|
4205
4292
|
}
|
|
4293
|
+
.desktop\:grid-cols-1 {
|
|
4294
|
+
@container root (width >= 48rem) {
|
|
4295
|
+
grid-template-columns: repeat(1, minmax(0, 1fr));
|
|
4296
|
+
}
|
|
4297
|
+
}
|
|
4298
|
+
.desktop\:grid-cols-2 {
|
|
4299
|
+
@container root (width >= 48rem) {
|
|
4300
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
4301
|
+
}
|
|
4302
|
+
}
|
|
4303
|
+
.desktop\:grid-cols-3 {
|
|
4304
|
+
@container root (width >= 48rem) {
|
|
4305
|
+
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
4306
|
+
}
|
|
4307
|
+
}
|
|
4206
4308
|
.desktop\:grid-cols-4 {
|
|
4207
4309
|
@container root (width >= 48rem) {
|
|
4208
4310
|
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
4209
4311
|
}
|
|
4210
4312
|
}
|
|
4313
|
+
.desktop\:grid-cols-5 {
|
|
4314
|
+
@container root (width >= 48rem) {
|
|
4315
|
+
grid-template-columns: repeat(5, minmax(0, 1fr));
|
|
4316
|
+
}
|
|
4317
|
+
}
|
|
4318
|
+
.desktop\:grid-cols-6 {
|
|
4319
|
+
@container root (width >= 48rem) {
|
|
4320
|
+
grid-template-columns: repeat(6, minmax(0, 1fr));
|
|
4321
|
+
}
|
|
4322
|
+
}
|
|
4323
|
+
.desktop\:grid-cols-7 {
|
|
4324
|
+
@container root (width >= 48rem) {
|
|
4325
|
+
grid-template-columns: repeat(7, minmax(0, 1fr));
|
|
4326
|
+
}
|
|
4327
|
+
}
|
|
4328
|
+
.desktop\:grid-cols-8 {
|
|
4329
|
+
@container root (width >= 48rem) {
|
|
4330
|
+
grid-template-columns: repeat(8, minmax(0, 1fr));
|
|
4331
|
+
}
|
|
4332
|
+
}
|
|
4333
|
+
.desktop\:grid-cols-9 {
|
|
4334
|
+
@container root (width >= 48rem) {
|
|
4335
|
+
grid-template-columns: repeat(9, minmax(0, 1fr));
|
|
4336
|
+
}
|
|
4337
|
+
}
|
|
4338
|
+
.desktop\:grid-cols-10 {
|
|
4339
|
+
@container root (width >= 48rem) {
|
|
4340
|
+
grid-template-columns: repeat(10, minmax(0, 1fr));
|
|
4341
|
+
}
|
|
4342
|
+
}
|
|
4343
|
+
.desktop\:grid-cols-11 {
|
|
4344
|
+
@container root (width >= 48rem) {
|
|
4345
|
+
grid-template-columns: repeat(11, minmax(0, 1fr));
|
|
4346
|
+
}
|
|
4347
|
+
}
|
|
4348
|
+
.desktop\:grid-cols-12 {
|
|
4349
|
+
@container root (width >= 48rem) {
|
|
4350
|
+
grid-template-columns: repeat(12, minmax(0, 1fr));
|
|
4351
|
+
}
|
|
4352
|
+
}
|
|
4211
4353
|
.desktop\:flex-col {
|
|
4212
4354
|
@container root (width >= 48rem) {
|
|
4213
4355
|
flex-direction: column;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DateInput
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-YY66JVTB.js";
|
|
4
4
|
import "../chunk-M7INAUAJ.js";
|
|
5
5
|
import "../chunk-ELXVDRWS.js";
|
|
6
6
|
import "../chunk-3UUCDNX3.js";
|
|
7
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-CDMXM5JW.js";
|
|
8
8
|
import "../chunk-BQNPOGD5.js";
|
|
9
9
|
import "../chunk-Y5GD2FJA.js";
|
|
10
10
|
import "../chunk-MBZ55T2D.js";
|
|
@@ -31,9 +31,9 @@ import "../chunk-CMMQTIVM.js";
|
|
|
31
31
|
import "../chunk-AG43RS4Q.js";
|
|
32
32
|
import "../chunk-AKJUBFJK.js";
|
|
33
33
|
import "../chunk-SUSUNSVZ.js";
|
|
34
|
-
import "../chunk-
|
|
34
|
+
import "../chunk-BWPNXY7T.js";
|
|
35
35
|
import "../chunk-QVWYTQKL.js";
|
|
36
|
-
import "../chunk-
|
|
36
|
+
import "../chunk-ZCIC3AIZ.js";
|
|
37
37
|
import "../chunk-TCMOGTPB.js";
|
|
38
38
|
import "../chunk-DVU5XV7L.js";
|
|
39
39
|
import "../chunk-LKKFQLWD.js";
|
|
@@ -2196,6 +2196,7 @@ var DataGridCell = (0, import_react11.memo)(
|
|
|
2196
2196
|
center,
|
|
2197
2197
|
width,
|
|
2198
2198
|
minWidth,
|
|
2199
|
+
disabled,
|
|
2199
2200
|
testid
|
|
2200
2201
|
} = _b, props = __objRest(_b, [
|
|
2201
2202
|
"id",
|
|
@@ -2214,6 +2215,7 @@ var DataGridCell = (0, import_react11.memo)(
|
|
|
2214
2215
|
"center",
|
|
2215
2216
|
"width",
|
|
2216
2217
|
"minWidth",
|
|
2218
|
+
"disabled",
|
|
2217
2219
|
"testid"
|
|
2218
2220
|
]);
|
|
2219
2221
|
const Element = type === "header" ? "th" : "td";
|
|
@@ -2279,7 +2281,8 @@ var DataGridCell = (0, import_react11.memo)(
|
|
|
2279
2281
|
paddedLeft && "pl-2",
|
|
2280
2282
|
component === "icon" && "border-l",
|
|
2281
2283
|
isGrabbing && "!cursor-grabbing",
|
|
2282
|
-
component === "checkbox" || center && "justify-center"
|
|
2284
|
+
component === "checkbox" || center && "justify-center",
|
|
2285
|
+
disabled && "!text-text-primary-disabled"
|
|
2283
2286
|
);
|
|
2284
2287
|
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
2285
2288
|
Element,
|
|
@@ -2672,7 +2675,8 @@ function TableBodyRow({
|
|
|
2672
2675
|
showFilterRow,
|
|
2673
2676
|
// enableColumnSelector = false,
|
|
2674
2677
|
locked,
|
|
2675
|
-
pinDirection
|
|
2678
|
+
pinDirection,
|
|
2679
|
+
disabled
|
|
2676
2680
|
}) {
|
|
2677
2681
|
var _a;
|
|
2678
2682
|
let visibleCells;
|
|
@@ -2690,10 +2694,11 @@ function TableBodyRow({
|
|
|
2690
2694
|
{
|
|
2691
2695
|
className: (0, import_clsx11.default)(
|
|
2692
2696
|
"min-h-10",
|
|
2693
|
-
"transition-colors
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
+
"transition-colors",
|
|
2698
|
+
!disabled && "hover:bg-background-action-secondary-hover",
|
|
2699
|
+
row.getIsSelected() && !disabled && "!bg-background-action-secondary-hover",
|
|
2700
|
+
isError && !disabled && "!bg-background-action-critical-secondary-hover",
|
|
2701
|
+
showFilterRow && !disabled ? "even:bg-background-grouped-primary-normal odd:bg-background-grouped-secondary-normal" : "odd:bg-background-grouped-primary-normal even:bg-background-grouped-secondary-normal"
|
|
2697
2702
|
),
|
|
2698
2703
|
id: id ? `${id}-row-${row.id}` : void 0,
|
|
2699
2704
|
"data-testid": testid ? `${testid}-row-${row.id}` : void 0,
|
|
@@ -2803,7 +2808,9 @@ function TableBody({
|
|
|
2803
2808
|
showFilterRow,
|
|
2804
2809
|
enableColumnSelector = false,
|
|
2805
2810
|
locked,
|
|
2806
|
-
pinDirection
|
|
2811
|
+
pinDirection,
|
|
2812
|
+
rowDisabled,
|
|
2813
|
+
rowDisabledAccessor
|
|
2807
2814
|
}) {
|
|
2808
2815
|
const { rows } = table.getRowModel();
|
|
2809
2816
|
const rowVirtualizer = (0, import_react_virtual.useVirtualizer)({
|
|
@@ -2896,7 +2903,8 @@ function TableBody({
|
|
|
2896
2903
|
showFilterRow,
|
|
2897
2904
|
enableColumnSelector,
|
|
2898
2905
|
locked,
|
|
2899
|
-
pinDirection
|
|
2906
|
+
pinDirection,
|
|
2907
|
+
disabled: rowDisabledAccessor ? rowDisabledAccessor(row.original) : rowDisabled
|
|
2900
2908
|
},
|
|
2901
2909
|
row.id
|
|
2902
2910
|
);
|
|
@@ -3206,6 +3214,8 @@ function DataGrid({
|
|
|
3206
3214
|
predeterminedLeftPins = [],
|
|
3207
3215
|
predeterminedRightPins = [],
|
|
3208
3216
|
useMenuDefaultMinWidth,
|
|
3217
|
+
rowDisabled,
|
|
3218
|
+
rowDisabledAccessor,
|
|
3209
3219
|
ref
|
|
3210
3220
|
}) {
|
|
3211
3221
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
@@ -3594,7 +3604,9 @@ function DataGrid({
|
|
|
3594
3604
|
isLoadingMore,
|
|
3595
3605
|
hasMore,
|
|
3596
3606
|
showFilterRow,
|
|
3597
|
-
enableColumnSelector
|
|
3607
|
+
enableColumnSelector,
|
|
3608
|
+
rowDisabled,
|
|
3609
|
+
rowDisabledAccessor
|
|
3598
3610
|
}
|
|
3599
3611
|
)
|
|
3600
3612
|
] }),
|