@uxf/data-grid 10.0.0-beta.8 → 10.0.0-beta.81
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 +16 -24
- package/data-grid.stories.js +10 -9
- package/hooks/use-rdg-visuals.d.ts +18 -0
- package/hooks/use-rdg-visuals.js +47 -0
- package/hooks/useColumns.js +2 -2
- package/index.d.ts +1 -1
- package/index.js +1 -1
- package/package.json +12 -10
- package/store/actions.d.ts +3 -3
- package/store/reducer.d.ts +1 -1
- package/tailwindui/body-cell/body-cell-boolean.js +1 -1
- package/tailwindui/body-cell/body-cell-date.js +1 -1
- package/tailwindui/body-cell/body-cell-datetime.js +1 -1
- package/tailwindui/body-cell/body-cell-email.js +1 -1
- package/tailwindui/body-cell/body-cell-phone.js +1 -1
- package/tailwindui/body-cell/body-cell-url.js +1 -1
- package/tailwindui/body-cell/index.js +3 -3
- package/tailwindui/components/action-cell-base.js +5 -3
- package/tailwindui/components/drawer.js +17 -10
- package/tailwindui/components/no-rows-fallback.js +1 -1
- package/tailwindui/components/pagination-rows-per-page-select.js +1 -1
- package/tailwindui/components/select-row-checkbox.js +5 -6
- package/tailwindui/components/selected-rows-toolbar.js +1 -1
- package/tailwindui/components/toolbar-control.js +27 -9
- package/tailwindui/components/toolbar-customs.js +1 -1
- package/tailwindui/components/toolbar-tabs.js +3 -3
- package/tailwindui/data-grid.d.ts +1 -1
- package/tailwindui/data-grid.js +1 -1
- package/tailwindui/filter-handler/bool-filter.js +1 -1
- package/tailwindui/filter-handler/boolean-filter.js +3 -3
- package/tailwindui/filter-handler/index.js +2 -1
- package/tailwindui/filter-handler/interval-filter.js +1 -1
- package/tailwindui/filter-handler/select-filter.js +1 -1
- package/tailwindui/filter-handler/text-filter.js +1 -1
- package/tailwindui/index.d.ts +1 -1
- package/tailwindui/index.js +1 -1
- package/tailwindui/styles.css +371 -131
- package/tailwindui/ui.js +9 -9
- package/types/api.d.ts +2 -2
- package/types/components.d.ts +9 -8
- package/types/core.d.ts +1 -0
- package/types/data-grid-props.d.ts +5 -4
- package/types/index.d.ts +3 -3
- package/types/index.js +3 -3
- package/types/schema.d.ts +5 -2
- package/types/schema.js +6 -0
- package/types/state.d.ts +2 -2
- package/types/ui-components.d.ts +1 -1
- package/utils.d.ts +2 -2
package/tailwindui/data-grid.js
CHANGED
|
@@ -24,8 +24,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.DataGrid = void 0;
|
|
27
|
-
const data_grid_1 = require("../data-grid");
|
|
28
27
|
const react_1 = __importStar(require("react"));
|
|
28
|
+
const data_grid_1 = require("../data-grid");
|
|
29
29
|
const ui_1 = require("./ui");
|
|
30
30
|
const DataGrid = (props) => {
|
|
31
31
|
const ui = (0, react_1.useMemo)(() => {
|
|
@@ -3,9 +3,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const react_1 = __importDefault(require("react"));
|
|
7
6
|
const chip_1 = require("@uxf/ui/chip");
|
|
8
7
|
const select_1 = require("@uxf/ui/select");
|
|
8
|
+
const react_1 = __importDefault(require("react"));
|
|
9
9
|
const BoolFilterHandler = {
|
|
10
10
|
input: (props) => (react_1.default.createElement(select_1.Select, { options: [
|
|
11
11
|
{ id: "", label: "Nerozhoduje" },
|
|
@@ -3,11 +3,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const react_1 = __importDefault(require("react"));
|
|
7
|
-
const chip_1 = require("@uxf/ui/chip");
|
|
8
6
|
const checkbox_input_1 = require("@uxf/ui/checkbox-input");
|
|
7
|
+
const chip_1 = require("@uxf/ui/chip");
|
|
8
|
+
const react_1 = __importDefault(require("react"));
|
|
9
9
|
const BooleanFilterHandler = {
|
|
10
|
-
input: (props) => (react_1.default.createElement(checkbox_input_1.CheckboxInput, { label: props.filter.label, value: props.value.value, onChange: (value) => props.onFilter({ ...props.value, value }) })),
|
|
10
|
+
input: (props) => (react_1.default.createElement(checkbox_input_1.CheckboxInput, { label: props.filter.label, value: props.value.value, onChange: (value) => props.onFilter({ ...props.value, value: value === true ? value : undefined }) })),
|
|
11
11
|
listItem: (props) => (react_1.default.createElement(chip_1.Chip, { onClose: props.onClear },
|
|
12
12
|
props.filter.label,
|
|
13
13
|
":\u00A0",
|
|
@@ -4,16 +4,17 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.defaultFilterHandlers = void 0;
|
|
7
|
-
const text_filter_1 = __importDefault(require("./text-filter"));
|
|
8
7
|
const bool_filter_1 = __importDefault(require("./bool-filter"));
|
|
9
8
|
const boolean_filter_1 = __importDefault(require("./boolean-filter"));
|
|
10
9
|
const interval_filter_1 = __importDefault(require("./interval-filter"));
|
|
11
10
|
const select_filter_1 = __importDefault(require("./select-filter"));
|
|
11
|
+
const text_filter_1 = __importDefault(require("./text-filter"));
|
|
12
12
|
exports.defaultFilterHandlers = {
|
|
13
13
|
text: text_filter_1.default,
|
|
14
14
|
string: text_filter_1.default,
|
|
15
15
|
bool: bool_filter_1.default,
|
|
16
16
|
boolean: boolean_filter_1.default,
|
|
17
|
+
checkbox: boolean_filter_1.default,
|
|
17
18
|
interval: interval_filter_1.default,
|
|
18
19
|
select: select_filter_1.default,
|
|
19
20
|
};
|
|
@@ -3,9 +3,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const react_1 = __importDefault(require("react"));
|
|
7
6
|
const chip_1 = require("@uxf/ui/chip");
|
|
8
7
|
const text_input_1 = require("@uxf/ui/text-input");
|
|
8
|
+
const react_1 = __importDefault(require("react"));
|
|
9
9
|
const IntervalFilterHandler = {
|
|
10
10
|
input: (props) => {
|
|
11
11
|
const initializedValue = props.value.value &&
|
|
@@ -3,9 +3,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const react_1 = __importDefault(require("react"));
|
|
7
6
|
const chip_1 = require("@uxf/ui/chip");
|
|
8
7
|
const select_1 = require("@uxf/ui/select");
|
|
8
|
+
const react_1 = __importDefault(require("react"));
|
|
9
9
|
const SelectFilterHandler = {
|
|
10
10
|
input: (props) => {
|
|
11
11
|
var _a;
|
|
@@ -3,9 +3,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const react_1 = __importDefault(require("react"));
|
|
7
6
|
const chip_1 = require("@uxf/ui/chip");
|
|
8
7
|
const text_input_1 = require("@uxf/ui/text-input");
|
|
8
|
+
const react_1 = __importDefault(require("react"));
|
|
9
9
|
const TextFilterHandler = {
|
|
10
10
|
input: (props) => {
|
|
11
11
|
var _a;
|
package/tailwindui/index.d.ts
CHANGED
package/tailwindui/index.js
CHANGED
|
@@ -14,6 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./data-grid"), exports);
|
|
18
17
|
__exportStar(require("./components/action-cell-base"), exports);
|
|
18
|
+
__exportStar(require("./data-grid"), exports);
|
|
19
19
|
__exportStar(require("./ui"), exports);
|