@uxf/data-grid 10.0.0-beta.70 → 10.0.0-beta.71
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/data-grid.js
CHANGED
|
@@ -85,7 +85,7 @@ const DataGrid = (props) => {
|
|
|
85
85
|
const columns = (0, useColumns_1.useColumns)(props, onReload);
|
|
86
86
|
const components = (0, react_1.useMemo)(() => {
|
|
87
87
|
return {
|
|
88
|
-
|
|
88
|
+
renderCheckbox: (args) => react_1.default.createElement(SelectRowCheckbox, { ...args }),
|
|
89
89
|
noRowsFallback: react_1.default.createElement(NoRowsFallback, { error: state.error, loading: !!state.loading }),
|
|
90
90
|
};
|
|
91
91
|
}, [SelectRowCheckbox, NoRowsFallback, state.error, state.loading]);
|
package/package.json
CHANGED
|
@@ -26,16 +26,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
26
26
|
exports.SelectRowCheckbox = void 0;
|
|
27
27
|
const react_1 = __importStar(require("react"));
|
|
28
28
|
const checkbox_1 = require("@uxf/ui/checkbox");
|
|
29
|
-
const SelectRowComponent = (props
|
|
29
|
+
const SelectRowComponent = (props) => {
|
|
30
30
|
var _a;
|
|
31
31
|
const handleChange = (value, e) => {
|
|
32
|
-
var _a;
|
|
33
32
|
if (typeof value !== "undefined") {
|
|
34
|
-
|
|
35
|
-
props.onChange(value,
|
|
33
|
+
const shiftKey = (e === null || e === void 0 ? void 0 : e.nativeEvent) && e.nativeEvent instanceof MouseEvent ? e.nativeEvent.shiftKey : false;
|
|
34
|
+
props.onChange(value, shiftKey);
|
|
36
35
|
}
|
|
37
36
|
};
|
|
38
37
|
return (react_1.default.createElement("div", { className: "uxf-data-grid__select-row-checkbox-wrapper" },
|
|
39
|
-
react_1.default.createElement(checkbox_1.Checkbox, {
|
|
38
|
+
react_1.default.createElement(checkbox_1.Checkbox, { ...props, value: (_a = props.checked) !== null && _a !== void 0 ? _a : false, onChange: handleChange })));
|
|
40
39
|
};
|
|
41
40
|
exports.SelectRowCheckbox = (0, react_1.forwardRef)(SelectRowComponent);
|
package/tailwindui/styles.css
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
--rdg-header-background-color: theme("colors.gray.50");
|
|
11
11
|
--rdg-row-hover-background-color: theme("colors.gray.50");
|
|
12
12
|
--rdg-row-selected-background-color: theme("colors.gray.100/.75");
|
|
13
|
-
--row-selected-hover-background-color: theme("colors.gray.200/.75");
|
|
13
|
+
--rdg-row-selected-hover-background-color: theme("colors.gray.200/.75");
|
|
14
14
|
--rdg-selection-color: theme("colors.lightBorder");
|
|
15
15
|
--rdg-font-size: 14px;
|
|
16
16
|
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
--rdg-header-background-color: theme("colors.gray.900");
|
|
24
24
|
--rdg-row-hover-background-color: theme("colors.gray.950");
|
|
25
25
|
--rdg-row-selected-background-color: theme("colors.gray.900/.75");
|
|
26
|
-
--row-selected-hover-background-color: theme("colors.gray.800/.75");
|
|
26
|
+
--rdg-row-selected-hover-background-color: theme("colors.gray.800/.75");
|
|
27
27
|
--rdg-selection-color: theme("colors.darkBorder");
|
|
28
28
|
--rdg-font-size: 14px;
|
|
29
29
|
}
|
|
@@ -291,6 +291,7 @@
|
|
|
291
291
|
bottom: theme("spacing.8");
|
|
292
292
|
display: flex;
|
|
293
293
|
justify-content: center;
|
|
294
|
+
left: 0;
|
|
294
295
|
position: fixed;
|
|
295
296
|
right: 0;
|
|
296
297
|
}
|
|
@@ -525,7 +526,9 @@
|
|
|
525
526
|
}
|
|
526
527
|
}
|
|
527
528
|
|
|
528
|
-
|
|
529
|
+
/* TODO: tohle je imo k ničemu, že Vejvis? */
|
|
530
|
+
|
|
531
|
+
/* .rdg-cell.action {
|
|
529
532
|
align-items: center;
|
|
530
533
|
border-right: 0;
|
|
531
534
|
box-shadow: -3px 0 15px rgba(221 221 221 / 50%);
|
|
@@ -534,7 +537,7 @@
|
|
|
534
537
|
position: sticky;
|
|
535
538
|
right: 0;
|
|
536
539
|
text-align: right;
|
|
537
|
-
}
|
|
540
|
+
} */
|
|
538
541
|
|
|
539
542
|
.rdg-header-row {
|
|
540
543
|
color: theme("colors.lightLow");
|