@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
|
LoadingCell
|
|
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";
|
|
@@ -2184,6 +2184,7 @@ var DataGridCell = (0, import_react11.memo)(
|
|
|
2184
2184
|
center,
|
|
2185
2185
|
width,
|
|
2186
2186
|
minWidth,
|
|
2187
|
+
disabled,
|
|
2187
2188
|
testid
|
|
2188
2189
|
} = _b, props = __objRest(_b, [
|
|
2189
2190
|
"id",
|
|
@@ -2202,6 +2203,7 @@ var DataGridCell = (0, import_react11.memo)(
|
|
|
2202
2203
|
"center",
|
|
2203
2204
|
"width",
|
|
2204
2205
|
"minWidth",
|
|
2206
|
+
"disabled",
|
|
2205
2207
|
"testid"
|
|
2206
2208
|
]);
|
|
2207
2209
|
const Element = type === "header" ? "th" : "td";
|
|
@@ -2267,7 +2269,8 @@ var DataGridCell = (0, import_react11.memo)(
|
|
|
2267
2269
|
paddedLeft && "pl-2",
|
|
2268
2270
|
component === "icon" && "border-l",
|
|
2269
2271
|
isGrabbing && "!cursor-grabbing",
|
|
2270
|
-
component === "checkbox" || center && "justify-center"
|
|
2272
|
+
component === "checkbox" || center && "justify-center",
|
|
2273
|
+
disabled && "!text-text-primary-disabled"
|
|
2271
2274
|
);
|
|
2272
2275
|
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
2273
2276
|
Element,
|
|
@@ -2687,7 +2690,9 @@ function TableBody({
|
|
|
2687
2690
|
showFilterRow,
|
|
2688
2691
|
enableColumnSelector = false,
|
|
2689
2692
|
locked,
|
|
2690
|
-
pinDirection
|
|
2693
|
+
pinDirection,
|
|
2694
|
+
rowDisabled,
|
|
2695
|
+
rowDisabledAccessor
|
|
2691
2696
|
}) {
|
|
2692
2697
|
const { rows } = table.getRowModel();
|
|
2693
2698
|
const rowVirtualizer = (0, import_react_virtual.useVirtualizer)({
|
|
@@ -2780,7 +2785,8 @@ function TableBody({
|
|
|
2780
2785
|
showFilterRow,
|
|
2781
2786
|
enableColumnSelector,
|
|
2782
2787
|
locked,
|
|
2783
|
-
pinDirection
|
|
2788
|
+
pinDirection,
|
|
2789
|
+
disabled: rowDisabledAccessor ? rowDisabledAccessor(row.original) : rowDisabled
|
|
2784
2790
|
},
|
|
2785
2791
|
row.id
|
|
2786
2792
|
);
|
|
@@ -3090,6 +3096,8 @@ function DataGrid({
|
|
|
3090
3096
|
predeterminedLeftPins = [],
|
|
3091
3097
|
predeterminedRightPins = [],
|
|
3092
3098
|
useMenuDefaultMinWidth,
|
|
3099
|
+
rowDisabled,
|
|
3100
|
+
rowDisabledAccessor,
|
|
3093
3101
|
ref
|
|
3094
3102
|
}) {
|
|
3095
3103
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
@@ -3478,7 +3486,9 @@ function DataGrid({
|
|
|
3478
3486
|
isLoadingMore,
|
|
3479
3487
|
hasMore,
|
|
3480
3488
|
showFilterRow,
|
|
3481
|
-
enableColumnSelector
|
|
3489
|
+
enableColumnSelector,
|
|
3490
|
+
rowDisabled,
|
|
3491
|
+
rowDisabledAccessor
|
|
3482
3492
|
}
|
|
3483
3493
|
)
|
|
3484
3494
|
] }),
|
|
@@ -5676,7 +5686,8 @@ function TableBodyRow({
|
|
|
5676
5686
|
showFilterRow,
|
|
5677
5687
|
// enableColumnSelector = false,
|
|
5678
5688
|
locked,
|
|
5679
|
-
pinDirection
|
|
5689
|
+
pinDirection,
|
|
5690
|
+
disabled
|
|
5680
5691
|
}) {
|
|
5681
5692
|
var _a;
|
|
5682
5693
|
let visibleCells;
|
|
@@ -5694,10 +5705,11 @@ function TableBodyRow({
|
|
|
5694
5705
|
{
|
|
5695
5706
|
className: (0, import_clsx39.default)(
|
|
5696
5707
|
"min-h-10",
|
|
5697
|
-
"transition-colors
|
|
5698
|
-
|
|
5699
|
-
|
|
5700
|
-
|
|
5708
|
+
"transition-colors",
|
|
5709
|
+
!disabled && "hover:bg-background-action-secondary-hover",
|
|
5710
|
+
row.getIsSelected() && !disabled && "!bg-background-action-secondary-hover",
|
|
5711
|
+
isError && !disabled && "!bg-background-action-critical-secondary-hover",
|
|
5712
|
+
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"
|
|
5701
5713
|
),
|
|
5702
5714
|
id: id ? `${id}-row-${row.id}` : void 0,
|
|
5703
5715
|
"data-testid": testid ? `${testid}-row-${row.id}` : void 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
|
TableBodyRow
|
|
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";
|
|
@@ -2182,6 +2182,7 @@ var DataGridCell = (0, import_react11.memo)(
|
|
|
2182
2182
|
center,
|
|
2183
2183
|
width,
|
|
2184
2184
|
minWidth,
|
|
2185
|
+
disabled,
|
|
2185
2186
|
testid
|
|
2186
2187
|
} = _b, props = __objRest(_b, [
|
|
2187
2188
|
"id",
|
|
@@ -2200,6 +2201,7 @@ var DataGridCell = (0, import_react11.memo)(
|
|
|
2200
2201
|
"center",
|
|
2201
2202
|
"width",
|
|
2202
2203
|
"minWidth",
|
|
2204
|
+
"disabled",
|
|
2203
2205
|
"testid"
|
|
2204
2206
|
]);
|
|
2205
2207
|
const Element = type === "header" ? "th" : "td";
|
|
@@ -2265,7 +2267,8 @@ var DataGridCell = (0, import_react11.memo)(
|
|
|
2265
2267
|
paddedLeft && "pl-2",
|
|
2266
2268
|
component === "icon" && "border-l",
|
|
2267
2269
|
isGrabbing && "!cursor-grabbing",
|
|
2268
|
-
component === "checkbox" || center && "justify-center"
|
|
2270
|
+
component === "checkbox" || center && "justify-center",
|
|
2271
|
+
disabled && "!text-text-primary-disabled"
|
|
2269
2272
|
);
|
|
2270
2273
|
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
2271
2274
|
Element,
|
|
@@ -2909,6 +2912,8 @@ function DataGrid({
|
|
|
2909
2912
|
predeterminedLeftPins = [],
|
|
2910
2913
|
predeterminedRightPins = [],
|
|
2911
2914
|
useMenuDefaultMinWidth,
|
|
2915
|
+
rowDisabled,
|
|
2916
|
+
rowDisabledAccessor,
|
|
2912
2917
|
ref
|
|
2913
2918
|
}) {
|
|
2914
2919
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
@@ -3297,7 +3302,9 @@ function DataGrid({
|
|
|
3297
3302
|
isLoadingMore,
|
|
3298
3303
|
hasMore,
|
|
3299
3304
|
showFilterRow,
|
|
3300
|
-
enableColumnSelector
|
|
3305
|
+
enableColumnSelector,
|
|
3306
|
+
rowDisabled,
|
|
3307
|
+
rowDisabledAccessor
|
|
3301
3308
|
}
|
|
3302
3309
|
)
|
|
3303
3310
|
] }),
|
|
@@ -5501,7 +5508,8 @@ function TableBodyRow({
|
|
|
5501
5508
|
showFilterRow,
|
|
5502
5509
|
// enableColumnSelector = false,
|
|
5503
5510
|
locked,
|
|
5504
|
-
pinDirection
|
|
5511
|
+
pinDirection,
|
|
5512
|
+
disabled
|
|
5505
5513
|
}) {
|
|
5506
5514
|
var _a;
|
|
5507
5515
|
let visibleCells;
|
|
@@ -5519,10 +5527,11 @@ function TableBodyRow({
|
|
|
5519
5527
|
{
|
|
5520
5528
|
className: (0, import_clsx38.default)(
|
|
5521
5529
|
"min-h-10",
|
|
5522
|
-
"transition-colors
|
|
5523
|
-
|
|
5524
|
-
|
|
5525
|
-
|
|
5530
|
+
"transition-colors",
|
|
5531
|
+
!disabled && "hover:bg-background-action-secondary-hover",
|
|
5532
|
+
row.getIsSelected() && !disabled && "!bg-background-action-secondary-hover",
|
|
5533
|
+
isError && !disabled && "!bg-background-action-critical-secondary-hover",
|
|
5534
|
+
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"
|
|
5526
5535
|
),
|
|
5527
5536
|
id: id ? `${id}-row-${row.id}` : void 0,
|
|
5528
5537
|
"data-testid": testid ? `${testid}-row-${row.id}` : void 0,
|
|
@@ -5632,7 +5641,9 @@ function TableBody({
|
|
|
5632
5641
|
showFilterRow,
|
|
5633
5642
|
enableColumnSelector = false,
|
|
5634
5643
|
locked,
|
|
5635
|
-
pinDirection
|
|
5644
|
+
pinDirection,
|
|
5645
|
+
rowDisabled,
|
|
5646
|
+
rowDisabledAccessor
|
|
5636
5647
|
}) {
|
|
5637
5648
|
const { rows } = table.getRowModel();
|
|
5638
5649
|
const rowVirtualizer = (0, import_react_virtual2.useVirtualizer)({
|
|
@@ -5725,7 +5736,8 @@ function TableBody({
|
|
|
5725
5736
|
showFilterRow,
|
|
5726
5737
|
enableColumnSelector,
|
|
5727
5738
|
locked,
|
|
5728
|
-
pinDirection
|
|
5739
|
+
pinDirection,
|
|
5740
|
+
disabled: rowDisabledAccessor ? rowDisabledAccessor(row.original) : rowDisabled
|
|
5729
5741
|
},
|
|
5730
5742
|
row.id
|
|
5731
5743
|
);
|