@uxf/data-grid 5.0.0-beta.20 → 5.0.0-beta.21
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/package.json
CHANGED
|
@@ -22,11 +22,11 @@ var BoolFilterHandler = {
|
|
|
22
22
|
{ id: "", label: "Nerozhoduje" },
|
|
23
23
|
{ id: 1, label: "Ano" },
|
|
24
24
|
{ id: 0, label: "Ne" },
|
|
25
|
-
], label: props.filter.label, value: props.value.value, onChange: function (value) { return props.onFilter(__assign(__assign({}, props.value), { value: value })); } })); },
|
|
25
|
+
], label: props.filter.label, value: props.value.value, onChange: function (value) { return props.onFilter(__assign(__assign({}, props.value), { value: value })); }, isClearable: true })); },
|
|
26
26
|
listItem: function (props) { return (react_1.default.createElement(chip_1.Chip, { onClose: props.onClear },
|
|
27
27
|
props.filter.label,
|
|
28
28
|
":\u00A0",
|
|
29
29
|
props.value.value ? "Ano" : "Ne")); },
|
|
30
30
|
};
|
|
31
31
|
exports.default = BoolFilterHandler;
|
|
32
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
32
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYm9vbC1maWx0ZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvdGFpbHdpbmR1aS9maWx0ZXItaGFuZGxlci9ib29sLWZpbHRlci50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7OztBQUFBLGdEQUEwQjtBQUUxQixxQ0FBb0M7QUFDcEMseUNBQXdDO0FBRXhDLElBQU0saUJBQWlCLEdBQWtCO0lBQ3JDLEtBQUssRUFBRSxVQUFBLEtBQUssSUFBSSxPQUFBLENBQ1osOEJBQUMsZUFBTSxJQUNILE9BQU8sRUFBRTtZQUNMLEVBQUUsRUFBRSxFQUFFLEVBQUUsRUFBRSxLQUFLLEVBQUUsYUFBYSxFQUFFO1lBQ2hDLEVBQUUsRUFBRSxFQUFFLENBQUMsRUFBRSxLQUFLLEVBQUUsS0FBSyxFQUFFO1lBQ3ZCLEVBQUUsRUFBRSxFQUFFLENBQUMsRUFBRSxLQUFLLEVBQUUsSUFBSSxFQUFFO1NBQ3pCLEVBQ0QsS0FBSyxFQUFFLEtBQUssQ0FBQyxNQUFNLENBQUMsS0FBSyxFQUN6QixLQUFLLEVBQUUsS0FBSyxDQUFDLEtBQUssQ0FBQyxLQUFLLEVBQ3hCLFFBQVEsRUFBRSxVQUFBLEtBQUssSUFBSSxPQUFBLEtBQUssQ0FBQyxRQUFRLHVCQUFNLEtBQUssQ0FBQyxLQUFLLEtBQUUsS0FBSyxPQUFBLElBQUcsRUFBekMsQ0FBeUMsRUFDNUQsV0FBVyxTQUNiLENBQ0wsRUFaZSxDQVlmO0lBQ0QsUUFBUSxFQUFFLFVBQUEsS0FBSyxJQUFJLE9BQUEsQ0FDZiw4QkFBQyxXQUFJLElBQUMsT0FBTyxFQUFFLEtBQUssQ0FBQyxPQUFPO1FBQ3ZCLEtBQUssQ0FBQyxNQUFNLENBQUMsS0FBSzs7UUFBUyxLQUFLLENBQUMsS0FBSyxDQUFDLEtBQUssQ0FBQyxDQUFDLENBQUMsS0FBSyxDQUFDLENBQUMsQ0FBQyxJQUFJLENBQ3pELENBQ1YsRUFKa0IsQ0FJbEI7Q0FDSixDQUFDO0FBRUYsa0JBQWUsaUJBQWlCLENBQUMifQ==
|
package/tailwindui/styles.css
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
.uxf-data-grid {
|
|
2
|
-
@apply border border-gray-300 rounded;
|
|
2
|
+
@apply border border-gray-300 dark:border-gray-700 rounded;
|
|
3
3
|
|
|
4
4
|
&.no-border {
|
|
5
5
|
@apply border-0;
|
|
@@ -8,14 +8,18 @@
|
|
|
8
8
|
&__action-cell {
|
|
9
9
|
@apply sticky right-0;
|
|
10
10
|
|
|
11
|
-
border-inline-start: 1px solid
|
|
11
|
+
border-inline-start: 1px solid theme("colors.gray.200");
|
|
12
|
+
|
|
13
|
+
:root .dark & {
|
|
14
|
+
border-inline-start: 1px solid theme("colors.gray.700");
|
|
15
|
+
}
|
|
12
16
|
}
|
|
13
17
|
|
|
14
18
|
&__action-cell-wrapper {
|
|
15
19
|
@apply flex items-center justify-center text-center w-full h-full space-x-2;
|
|
16
20
|
|
|
17
21
|
.uxf-icon {
|
|
18
|
-
@apply text-gray-400;
|
|
22
|
+
@apply text-gray-400 dark:text-gray-500;
|
|
19
23
|
}
|
|
20
24
|
}
|
|
21
25
|
|
|
@@ -26,7 +30,7 @@
|
|
|
26
30
|
}
|
|
27
31
|
|
|
28
32
|
&__drawer {
|
|
29
|
-
@apply fixed overflow-hidden z-10 bg-gray-900 bg-opacity-25 inset-0 transform ease-in-out;
|
|
33
|
+
@apply fixed overflow-hidden z-10 bg-gray-900 bg-opacity-25 dark:bg-opacity-75 inset-0 transform ease-in-out;
|
|
30
34
|
|
|
31
35
|
&--open {
|
|
32
36
|
@apply transition-opacity opacity-100 duration-500 translate-x-0;
|
|
@@ -45,7 +49,7 @@
|
|
|
45
49
|
}
|
|
46
50
|
|
|
47
51
|
&-body {
|
|
48
|
-
@apply relative w-full max-w-sm pb-10 flex flex-col overflow-y-scroll h-full;
|
|
52
|
+
@apply relative w-full max-w-sm pb-10 flex flex-col overflow-y-scroll h-full dark:bg-gray-950 dark:text-gray-100;
|
|
49
53
|
}
|
|
50
54
|
|
|
51
55
|
&-close-button {
|
|
@@ -68,7 +72,7 @@
|
|
|
68
72
|
&__fallback {
|
|
69
73
|
grid-column: 1/-1;
|
|
70
74
|
|
|
71
|
-
@apply flex items-center justify-center text-center text-gray-600;
|
|
75
|
+
@apply flex items-center justify-center text-center text-gray-600; /* ?? */
|
|
72
76
|
}
|
|
73
77
|
|
|
74
78
|
&__filter {
|
|
@@ -165,7 +169,7 @@
|
|
|
165
169
|
}
|
|
166
170
|
|
|
167
171
|
&__selected-rows-toolbar {
|
|
168
|
-
@apply text-white text-sm bg-dataGridPrimary rounded-full px-6 py-2 flex items-center justify-center drop-shadow-xl border border-gray-100;
|
|
172
|
+
@apply text-white text-sm bg-dataGridPrimary rounded-full px-6 py-2 flex items-center justify-center drop-shadow-xl border border-gray-100 dark:border-gray-800;
|
|
169
173
|
}
|
|
170
174
|
|
|
171
175
|
&__selected-rows-toolbar-actions {
|
|
@@ -177,7 +181,7 @@
|
|
|
177
181
|
}
|
|
178
182
|
|
|
179
183
|
&__toolbar {
|
|
180
|
-
@apply flex flex-wrap gap-2 items-center justify-end border-b border-b-gray-300 px-2 md:pl-0 py-2 md:py-0;
|
|
184
|
+
@apply flex flex-wrap gap-2 items-center justify-end border-b border-b-gray-300 dark:border-b-gray-700 px-2 md:pl-0 py-2 md:py-0;
|
|
181
185
|
}
|
|
182
186
|
|
|
183
187
|
&__toolbar-tab {
|
|
@@ -211,18 +215,18 @@
|
|
|
211
215
|
@apply m-0 flex items-center;
|
|
212
216
|
|
|
213
217
|
&-icon {
|
|
214
|
-
@apply ml-1 text-lightHigh;
|
|
218
|
+
@apply ml-1 text-lightHigh dark:text-darkHigh;
|
|
215
219
|
}
|
|
216
220
|
}
|
|
217
221
|
}
|
|
218
222
|
|
|
219
223
|
&-text {
|
|
220
|
-
@apply text-lightHigh;
|
|
224
|
+
@apply text-lightHigh dark:text-darkHigh;
|
|
221
225
|
}
|
|
222
226
|
}
|
|
223
227
|
|
|
224
228
|
&-modal-content {
|
|
225
|
-
@apply flex flex-col items-start divide-y divide-lightBorder pb-4 pt-1 text-left;
|
|
229
|
+
@apply flex flex-col items-start divide-y divide-lightBorder dark:divide-darkBorder pb-4 pt-1 text-left;
|
|
226
230
|
}
|
|
227
231
|
|
|
228
232
|
&-modal-button {
|
|
@@ -230,11 +234,11 @@
|
|
|
230
234
|
}
|
|
231
235
|
|
|
232
236
|
&-modal-button-text {
|
|
233
|
-
@apply text-lightHigh;
|
|
237
|
+
@apply text-lightHigh dark:text-darkHigh;
|
|
234
238
|
}
|
|
235
239
|
|
|
236
240
|
&-modal-active-tab-icon {
|
|
237
|
-
@apply text-lightMedium mr-3;
|
|
241
|
+
@apply text-lightMedium dark:text-darkMedium mr-3;
|
|
238
242
|
}
|
|
239
243
|
}
|
|
240
244
|
|
|
@@ -267,13 +271,17 @@
|
|
|
267
271
|
}
|
|
268
272
|
|
|
269
273
|
.rdg-header-row {
|
|
270
|
-
@apply bg-gray-200 text-gray-400 font-medium;
|
|
274
|
+
@apply bg-gray-200 dark:bg-gray-800 text-gray-400 dark:text-gray-600 font-medium;
|
|
271
275
|
|
|
272
276
|
.rdg-cell {
|
|
273
|
-
@apply rounded-none bg-gray-50;
|
|
277
|
+
@apply rounded-none bg-gray-50 dark:bg-gray-900 dark:text-darkMedium;
|
|
274
278
|
|
|
275
279
|
&:not(:first-child) {
|
|
276
|
-
border-inline-start: 1px solid
|
|
280
|
+
border-inline-start: 1px solid theme("colors.gray.200");
|
|
281
|
+
|
|
282
|
+
:root .dark & {
|
|
283
|
+
border-inline-start: 1px solid theme("colors.gray.700");
|
|
284
|
+
}
|
|
277
285
|
}
|
|
278
286
|
}
|
|
279
287
|
}
|
|
@@ -293,26 +301,38 @@
|
|
|
293
301
|
|
|
294
302
|
.rdg-cell[aria-selected=true] {
|
|
295
303
|
outline-color: theme("colors.gray.300");
|
|
304
|
+
|
|
305
|
+
:root .dark & {
|
|
306
|
+
outline-color: theme("colors.gray.700");
|
|
307
|
+
}
|
|
296
308
|
}
|
|
297
309
|
|
|
298
310
|
.rdg-row[aria-selected=true] {
|
|
299
|
-
@apply bg-gray-100/75;
|
|
311
|
+
@apply bg-gray-100/75 dark:bg-gray-900/75;
|
|
300
312
|
|
|
301
313
|
.uxf-data-grid__action-cell {
|
|
302
314
|
background-color: white;
|
|
315
|
+
|
|
316
|
+
:root .dark & {
|
|
317
|
+
background-color: theme("colors.gray.900");
|
|
318
|
+
}
|
|
303
319
|
}
|
|
304
320
|
}
|
|
305
321
|
|
|
306
322
|
.rdg-row:hover {
|
|
307
|
-
@apply bg-gray-50;
|
|
323
|
+
@apply bg-gray-50 dark:bg-gray-950;
|
|
308
324
|
|
|
309
325
|
.uxf-data-grid__action-cell {
|
|
310
326
|
background-color: white;
|
|
327
|
+
|
|
328
|
+
:root .dark & {
|
|
329
|
+
background-color: theme("colors.gray.950");
|
|
330
|
+
}
|
|
311
331
|
}
|
|
312
332
|
}
|
|
313
333
|
|
|
314
334
|
.rdg-row[aria-selected=true]:hover {
|
|
315
|
-
@apply bg-gray-200/75;
|
|
335
|
+
@apply bg-gray-200/75 dark:bg-gray-800/75;
|
|
316
336
|
}
|
|
317
337
|
|
|
318
338
|
@keyframes datagridLineAnim {
|