@uxf/data-grid 11.74.0 → 11.74.2
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/_api/index.d.ts +8 -0
- package/_api/index.js +11 -0
- package/_components/drawer.d.ts +8 -0
- package/_components/drawer.js +19 -0
- package/_store/reducer.d.ts +8 -0
- package/_store/reducer.js +209 -0
- package/_story-utils/data.d.ts +34 -0
- package/_story-utils/data.js +229 -0
- package/_story-utils/grid-type.d.ts +32 -0
- package/_story-utils/grid-type.js +2 -0
- package/_story-utils/json-renderer.d.ts +7 -0
- package/_story-utils/json-renderer.js +12 -0
- package/_story-utils/loader.d.ts +2 -0
- package/_story-utils/loader.js +33 -0
- package/_story-utils/schema.d.ts +3 -0
- package/_story-utils/schema.js +76 -0
- package/body-cell/body-cell-boolean.d.ts +2 -0
- package/body-cell/body-cell-boolean.js +18 -0
- package/body-cell/body-cell-chip.d.ts +12 -0
- package/body-cell/body-cell-chip.js +21 -0
- package/body-cell/body-cell-date.d.ts +2 -0
- package/body-cell/body-cell-date.js +15 -0
- package/body-cell/body-cell-datetime.d.ts +2 -0
- package/body-cell/body-cell-datetime.js +15 -0
- package/body-cell/body-cell-default.d.ts +2 -0
- package/body-cell/body-cell-default.js +17 -0
- package/body-cell/body-cell-email.d.ts +2 -0
- package/body-cell/body-cell-email.js +16 -0
- package/body-cell/body-cell-money.d.ts +8 -0
- package/body-cell/body-cell-money.js +15 -0
- package/body-cell/body-cell-phone.d.ts +2 -0
- package/body-cell/body-cell-phone.js +16 -0
- package/body-cell/body-cell-to-many.d.ts +2 -0
- package/body-cell/body-cell-to-many.js +17 -0
- package/body-cell/body-cell-to-one.d.ts +2 -0
- package/body-cell/body-cell-to-one.js +14 -0
- package/body-cell/body-cell-url.d.ts +2 -0
- package/body-cell/body-cell-url.js +16 -0
- package/body-cell/index.d.ts +2 -0
- package/body-cell/index.js +33 -0
- package/components.d.ts +97 -0
- package/components.js +124 -0
- package/data-grid-custom-example.stories.d.ts +2 -0
- package/data-grid-custom-example.stories.js +58 -0
- package/data-grid-v2.d.ts +3 -0
- package/data-grid-v2.js +41 -0
- package/data-grid-v2.stories.d.ts +2 -0
- package/data-grid-v2.stories.js +99 -0
- package/data-grid.d.ts +3 -0
- package/data-grid.js +42 -0
- package/data-grid.stories.d.ts +2 -0
- package/data-grid.stories.js +106 -0
- package/export-button/export-button.d.ts +8 -0
- package/export-button/export-button.js +18 -0
- package/export-button/export-button.stories.d.ts +2 -0
- package/export-button/export-button.stories.js +17 -0
- package/export-button/index.d.ts +1 -0
- package/export-button/index.js +17 -0
- package/filter-handler/boolean-select.d.ts +4 -0
- package/filter-handler/boolean-select.js +27 -0
- package/filter-handler/checkbox.d.ts +4 -0
- package/filter-handler/checkbox.js +19 -0
- package/filter-handler/date.d.ts +7 -0
- package/filter-handler/date.js +96 -0
- package/filter-handler/datetime.d.ts +7 -0
- package/filter-handler/datetime.js +34 -0
- package/filter-handler/entity-multi-select.d.ts +5 -0
- package/filter-handler/entity-multi-select.js +27 -0
- package/filter-handler/entity-select.d.ts +5 -0
- package/filter-handler/entity-select.js +23 -0
- package/filter-handler/index.d.ts +4 -0
- package/filter-handler/index.js +41 -0
- package/filter-handler/interval.d.ts +7 -0
- package/filter-handler/interval.js +47 -0
- package/filter-handler/multi-select.d.ts +5 -0
- package/filter-handler/multi-select.js +27 -0
- package/filter-handler/select.d.ts +5 -0
- package/filter-handler/select.js +22 -0
- package/filter-handler/string.d.ts +4 -0
- package/filter-handler/string.js +26 -0
- package/filter-handler/types.d.ts +7 -0
- package/filter-handler/types.js +2 -0
- package/filter-list/filter-list.d.ts +10 -0
- package/filter-list/filter-list.js +31 -0
- package/filter-list/filter-list.stories.d.ts +2 -0
- package/filter-list/filter-list.stories.js +18 -0
- package/filter-list/index.d.ts +1 -0
- package/filter-list/index.js +17 -0
- package/filters/filters.d.ts +9 -0
- package/filters/filters.js +21 -0
- package/filters/filters.stories.d.ts +2 -0
- package/filters/filters.stories.js +18 -0
- package/filters/index.d.ts +1 -0
- package/filters/index.js +17 -0
- package/filters-button/filters-button.d.ts +10 -0
- package/filters-button/filters-button.js +47 -0
- package/filters-button/filters-button.stories.d.ts +2 -0
- package/filters-button/filters-button.stories.js +18 -0
- package/filters-button/index.d.ts +1 -0
- package/filters-button/index.js +17 -0
- package/footer/footer.d.ts +5 -0
- package/footer/footer.js +10 -0
- package/footer/index.d.ts +1 -0
- package/footer/index.js +17 -0
- package/fulltext-input/fulltext-input.d.ts +6 -0
- package/fulltext-input/fulltext-input.js +15 -0
- package/fulltext-input/fulltext-input.stories.d.ts +2 -0
- package/fulltext-input/fulltext-input.stories.js +17 -0
- package/fulltext-input/index.d.ts +1 -0
- package/fulltext-input/index.js +17 -0
- package/hidden-columns/hidden-columns.d.ts +8 -0
- package/hidden-columns/hidden-columns.js +37 -0
- package/hidden-columns/hidden-columns.stories.d.ts +2 -0
- package/hidden-columns/hidden-columns.stories.js +17 -0
- package/hidden-columns/index.d.ts +1 -0
- package/hidden-columns/index.js +17 -0
- package/hidden-columns-button/hidden-columns-button.d.ts +8 -0
- package/hidden-columns-button/hidden-columns-button.js +44 -0
- package/hidden-columns-button/hidden-columns-button.stories.d.ts +2 -0
- package/hidden-columns-button/hidden-columns-button.stories.js +17 -0
- package/hidden-columns-button/index.d.ts +1 -0
- package/hidden-columns-button/index.js +17 -0
- package/hooks/useCallbackRef.d.ts +2 -0
- package/hooks/useCallbackRef.js +6 -0
- package/index.d.ts +5 -0
- package/index.js +25 -0
- package/linear-progress/index.d.ts +1 -0
- package/linear-progress/index.js +17 -0
- package/linear-progress/linear-progress.d.ts +5 -0
- package/linear-progress/linear-progress.js +12 -0
- package/package.json +3 -3
- package/pagination/index.d.ts +1 -0
- package/pagination/index.js +17 -0
- package/pagination/pagination.d.ts +12 -0
- package/pagination/pagination.js +15 -0
- package/pagination/pagination.stories.d.ts +2 -0
- package/pagination/pagination.stories.js +17 -0
- package/root/index.d.ts +1 -0
- package/root/index.js +17 -0
- package/root/root.d.ts +6 -0
- package/root/root.js +11 -0
- package/row-counts/index.d.ts +1 -0
- package/row-counts/index.js +17 -0
- package/row-counts/row-counts.d.ts +8 -0
- package/row-counts/row-counts.js +23 -0
- package/row-counts/row-counts.stories.d.ts +2 -0
- package/row-counts/row-counts.stories.js +14 -0
- package/rows-per-page-select/index.d.ts +1 -0
- package/rows-per-page-select/index.js +17 -0
- package/rows-per-page-select/rows-per-page-select.d.ts +3 -0
- package/rows-per-page-select/rows-per-page-select.js +21 -0
- package/rows-per-page-select/rows-per-page-select.stories.d.ts +2 -0
- package/rows-per-page-select/rows-per-page-select.stories.js +17 -0
- package/selected-rows-toolbar/index.d.ts +1 -0
- package/selected-rows-toolbar/index.js +17 -0
- package/selected-rows-toolbar/selected-rows-toolbar.d.ts +11 -0
- package/selected-rows-toolbar/selected-rows-toolbar.js +33 -0
- package/selected-rows-toolbar/selected-rows-toolbar.stories.d.ts +2 -0
- package/selected-rows-toolbar/selected-rows-toolbar.stories.js +44 -0
- package/table/components/action-cell-wrapper.d.ts +6 -0
- package/table/components/action-cell-wrapper.js +57 -0
- package/table/components/action-cell.d.ts +7 -0
- package/table/components/action-cell.js +13 -0
- package/table/components/select-row-checkbox.d.ts +3 -0
- package/table/components/select-row-checkbox.js +40 -0
- package/table/hooks/use-rdg-visuals.d.ts +16 -0
- package/table/hooks/use-rdg-visuals.js +46 -0
- package/table/hooks/use-react-data-grid-columns.d.ts +4 -0
- package/table/hooks/use-react-data-grid-columns.js +86 -0
- package/table/index.d.ts +3 -0
- package/table/index.js +19 -0
- package/table/no-rows-fallback.d.ts +7 -0
- package/table/no-rows-fallback.js +16 -0
- package/table/table.d.ts +4 -0
- package/table/table.js +91 -0
- package/table/table.stories.d.ts +2 -0
- package/table/table.stories.js +20 -0
- package/table/types.d.ts +19 -0
- package/table/types.js +2 -0
- package/table-v2/components/action-cell-wrapper.d.ts +6 -0
- package/table-v2/components/action-cell-wrapper.js +10 -0
- package/table-v2/components/action-cell.d.ts +8 -0
- package/table-v2/components/action-cell.js +16 -0
- package/table-v2/components/body.d.ts +6 -0
- package/table-v2/components/body.js +10 -0
- package/table-v2/components/cell.d.ts +8 -0
- package/table-v2/components/cell.js +10 -0
- package/table-v2/components/header-action-cell.d.ts +2 -0
- package/table-v2/components/header-action-cell.js +10 -0
- package/table-v2/components/header-cell.d.ts +10 -0
- package/table-v2/components/header-cell.js +47 -0
- package/table-v2/components/header-select-all-rows-checkbox.d.ts +8 -0
- package/table-v2/components/header-select-all-rows-checkbox.js +24 -0
- package/table-v2/components/header.d.ts +6 -0
- package/table-v2/components/header.js +10 -0
- package/table-v2/components/index.d.ts +21 -0
- package/table-v2/components/index.js +26 -0
- package/table-v2/components/root.d.ts +7 -0
- package/table-v2/components/root.js +31 -0
- package/table-v2/components/row.d.ts +7 -0
- package/table-v2/components/row.js +11 -0
- package/table-v2/components/select-row-checkbox.d.ts +7 -0
- package/table-v2/components/select-row-checkbox.js +14 -0
- package/table-v2/hooks/use-resizable-columns.d.ts +9 -0
- package/table-v2/hooks/use-resizable-columns.js +69 -0
- package/table-v2/index.d.ts +1 -0
- package/table-v2/index.js +17 -0
- package/table-v2/no-rows-fallback.d.ts +7 -0
- package/table-v2/no-rows-fallback.js +16 -0
- package/table-v2/table-v2.d.ts +3 -0
- package/table-v2/table-v2.js +91 -0
- package/table-v2/table-v2.stories.d.ts +2 -0
- package/table-v2/table-v2.stories.js +23 -0
- package/table-v2/types.d.ts +23 -0
- package/table-v2/types.js +2 -0
- package/table-v2/utils/get-grid-template-columns.d.ts +9 -0
- package/table-v2/utils/get-grid-template-columns.js +23 -0
- package/table-v2/utils/get-grid-template-rows.d.ts +2 -0
- package/table-v2/utils/get-grid-template-rows.js +14 -0
- package/toolbar/index.d.ts +1 -0
- package/toolbar/index.js +17 -0
- package/toolbar/toolbar.d.ts +5 -0
- package/toolbar/toolbar.js +10 -0
- package/toolbar-control/index.d.ts +1 -0
- package/toolbar-control/index.js +17 -0
- package/toolbar-control/toolbar-control.d.ts +13 -0
- package/toolbar-control/toolbar-control.js +22 -0
- package/toolbar-control/toolbar-control.stories.d.ts +2 -0
- package/toolbar-control/toolbar-control.stories.js +19 -0
- package/toolbar-customs/index.d.ts +1 -0
- package/toolbar-customs/index.js +17 -0
- package/toolbar-customs/toolbar-customs.d.ts +13 -0
- package/toolbar-customs/toolbar-customs.js +20 -0
- package/toolbar-customs/toolbar-customs.stories.d.ts +2 -0
- package/toolbar-customs/toolbar-customs.stories.js +15 -0
- package/toolbar-tabs/index.d.ts +1 -0
- package/toolbar-tabs/index.js +17 -0
- package/toolbar-tabs/toolbar-tabs.d.ts +11 -0
- package/toolbar-tabs/toolbar-tabs.js +41 -0
- package/toolbar-tabs/toolbar-tabs.stories.d.ts +2 -0
- package/toolbar-tabs/toolbar-tabs.stories.js +17 -0
- package/translations/cs.json +47 -0
- package/translations/de.json +47 -0
- package/translations/en.json +47 -0
- package/translations/sk.json +47 -0
- package/types/api.d.ts +23 -0
- package/types/api.js +2 -0
- package/types/components.d.ts +32 -0
- package/types/components.js +2 -0
- package/types/core.d.ts +20 -0
- package/types/core.js +2 -0
- package/types/data-grid-props.d.ts +34 -0
- package/types/data-grid-props.js +2 -0
- package/types/index.d.ts +6 -0
- package/types/index.js +2 -0
- package/types/schema.d.ts +56 -0
- package/types/schema.js +2 -0
- package/types/state.d.ts +25 -0
- package/types/state.js +2 -0
- package/types/user-config-storage-adapter.d.ts +8 -0
- package/types/user-config-storage-adapter.js +2 -0
- package/use-data-grid-control/action.d.ts +47 -0
- package/use-data-grid-control/action.js +9 -0
- package/use-data-grid-control/actions-factory.d.ts +21 -0
- package/use-data-grid-control/actions-factory.js +21 -0
- package/use-data-grid-control/index.d.ts +1 -0
- package/use-data-grid-control/index.js +17 -0
- package/use-data-grid-control/use-data-grid-control.d.ts +32 -0
- package/use-data-grid-control/use-data-grid-control.js +12 -0
- package/use-data-grid-control/use-middleware-reducer.d.ts +3 -0
- package/use-data-grid-control/use-middleware-reducer.js +19 -0
- package/use-data-grid-fetching/index.d.ts +1 -0
- package/use-data-grid-fetching/index.js +17 -0
- package/use-data-grid-fetching/loader.d.ts +2 -0
- package/use-data-grid-fetching/loader.js +6 -0
- package/use-data-grid-fetching/use-data-grid-fetching.d.ts +24 -0
- package/use-data-grid-fetching/use-data-grid-fetching.js +40 -0
- package/user-config-storage-adapters/local-storage.d.ts +3 -0
- package/user-config-storage-adapters/local-storage.js +32 -0
- package/utils/create-filter-component-props.d.ts +4 -0
- package/utils/create-filter-component-props.js +15 -0
- package/utils/get-config-key.d.ts +2 -0
- package/utils/get-config-key.js +6 -0
- package/utils/merge-schema-with-config.d.ts +3 -0
- package/utils/merge-schema-with-config.js +30 -0
- package/utils/merge-schema-with-config.test.d.ts +1 -0
- package/utils/merge-schema-with-config.test.js +57 -0
- package/utils.d.ts +6 -0
- package/utils.js +37 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.Default = Default;
|
|
7
|
+
const react_1 = __importDefault(require("react"));
|
|
8
|
+
const data_1 = require("../_story-utils/data");
|
|
9
|
+
const json_renderer_1 = require("../_story-utils/json-renderer");
|
|
10
|
+
const schema_1 = require("../_story-utils/schema");
|
|
11
|
+
const body_cell_1 = require("../body-cell");
|
|
12
|
+
const hidden_columns_button_1 = require("../hidden-columns-button");
|
|
13
|
+
const use_data_grid_control_1 = require("../use-data-grid-control");
|
|
14
|
+
const action_cell_1 = require("./components/action-cell");
|
|
15
|
+
const table_v2_1 = require("./table-v2");
|
|
16
|
+
function Default() {
|
|
17
|
+
const { state, actions } = (0, use_data_grid_control_1.useDataGridControl)({ schema: schema_1.schema });
|
|
18
|
+
const reload = () => new Promise(() => null);
|
|
19
|
+
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
20
|
+
react_1.default.createElement(hidden_columns_button_1.DataGridHiddenColumnsButton, { actions: actions, schema: schema_1.schema, state: state }),
|
|
21
|
+
react_1.default.createElement(table_v2_1.DataGridTableV2, { actionCell: { width: 150, Component: () => react_1.default.createElement(action_cell_1.ActionCell, null, "Action cell") }, actions: actions, bodyCells: body_cell_1.BodyCells, data: data_1.data, error: undefined, isLoading: true, isRowSelectable: true, reload: reload, rowAccent: (row) => (row.id === 2 ? "success" : undefined), rowClassName: (row) => (row.id === 3 ? "some-custom-classname" : undefined), schema: schema_1.schema, state: state }),
|
|
22
|
+
react_1.default.createElement(json_renderer_1.JsonRenderer, { value: state })));
|
|
23
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Nullish } from "@uxf/core/types";
|
|
2
|
+
import { ActionCellComponent, BodyCellComponents, KeyExtractor, RowAccent, Schema } from "../types";
|
|
3
|
+
import { DataGridControl } from "../use-data-grid-control";
|
|
4
|
+
import { NoRowsFallbackComponent } from "./no-rows-fallback";
|
|
5
|
+
export interface DataGridTableProps<Row> extends DataGridControl {
|
|
6
|
+
schema: Schema<any>;
|
|
7
|
+
data: Row[];
|
|
8
|
+
isLoading?: boolean;
|
|
9
|
+
error?: any | Nullish;
|
|
10
|
+
reload: () => Promise<any>;
|
|
11
|
+
rowHeight?: number | ((row: Row) => number) | "auto";
|
|
12
|
+
headerRowHeight?: number;
|
|
13
|
+
rowAccent?: (row: Row) => RowAccent;
|
|
14
|
+
rowClassName?: (row: Row) => string | Nullish;
|
|
15
|
+
keyExtractor?: KeyExtractor;
|
|
16
|
+
bodyCells?: BodyCellComponents;
|
|
17
|
+
actionCell?: {
|
|
18
|
+
width: number;
|
|
19
|
+
Component: ActionCellComponent<Row>;
|
|
20
|
+
};
|
|
21
|
+
NoRowsFallback?: NoRowsFallbackComponent;
|
|
22
|
+
isRowSelectable?: boolean;
|
|
23
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getGridTemplateColumns = getGridTemplateColumns;
|
|
4
|
+
const build_array_1 = require("@uxf/core/utils/build-array");
|
|
5
|
+
const is_not_nil_1 = require("@uxf/core/utils/is-not-nil");
|
|
6
|
+
const rem_1 = require("@uxf/styles/units/rem");
|
|
7
|
+
// if minWidth nor width is set for the column, take this
|
|
8
|
+
const COLUMN_DEFAULT_MIN_WIDTH = (0, rem_1.rem)(80);
|
|
9
|
+
function getGridTemplateColumns(config) {
|
|
10
|
+
var _a, _b;
|
|
11
|
+
return (0, build_array_1.buildArray)()
|
|
12
|
+
.when((0, is_not_nil_1.isNotNil)(config.selectRowColumnWidth), (0, rem_1.rem)((_a = config.selectRowColumnWidth) !== null && _a !== void 0 ? _a : 0))
|
|
13
|
+
.add(config.columns
|
|
14
|
+
.map((col) => {
|
|
15
|
+
var _a;
|
|
16
|
+
return col.width.includes("fr")
|
|
17
|
+
? `minmax(${(_a = col.minWidth) !== null && _a !== void 0 ? _a : COLUMN_DEFAULT_MIN_WIDTH}, ${col.width})`
|
|
18
|
+
: col.width;
|
|
19
|
+
})
|
|
20
|
+
.join(" "))
|
|
21
|
+
.when((0, is_not_nil_1.isNotNil)(config.actionColumnWidth), `minmax(${(0, rem_1.rem)((_b = config.actionColumnWidth) !== null && _b !== void 0 ? _b : 0)}, auto)`)
|
|
22
|
+
.join(" ");
|
|
23
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getGridTemplateRows = getGridTemplateRows;
|
|
4
|
+
const is_nil_1 = require("@uxf/core/utils/is-nil");
|
|
5
|
+
const rem_1 = require("@uxf/styles/units/rem");
|
|
6
|
+
function getGridTemplateRows(rows, headerRowHeight, rowHeight) {
|
|
7
|
+
if (rowHeight === "auto" || (0, is_nil_1.isNil)(rowHeight)) {
|
|
8
|
+
return undefined;
|
|
9
|
+
}
|
|
10
|
+
if (typeof rowHeight === "number") {
|
|
11
|
+
return `${(0, rem_1.rem)(headerRowHeight)} repeat(${rows.length}, ${(0, rem_1.rem)(rowHeight)})`;
|
|
12
|
+
}
|
|
13
|
+
return `${headerRowHeight} ${rows.map(rowHeight).join(" ")}`;
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./toolbar";
|
package/toolbar/index.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./toolbar"), exports);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.DataGridToolbar = DataGridToolbar;
|
|
7
|
+
const react_1 = __importDefault(require("react"));
|
|
8
|
+
function DataGridToolbar(props) {
|
|
9
|
+
return react_1.default.createElement("div", { className: "uxf-data-grid__toolbar" }, props.children);
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./toolbar-control";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./toolbar-control"), exports);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Nullish } from "@uxf/core/types";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { FilterHandlers } from "../filter-handler";
|
|
4
|
+
import { CsvDownloadGetUrl, Schema } from "../types";
|
|
5
|
+
import { DataGridControl } from "../use-data-grid-control";
|
|
6
|
+
export interface DataGridToolbarControlProps extends DataGridControl {
|
|
7
|
+
schema: Schema<any>;
|
|
8
|
+
filterHandlers: FilterHandlers;
|
|
9
|
+
getCsvDownloadUrl?: CsvDownloadGetUrl;
|
|
10
|
+
isBorderHidden?: boolean | Nullish;
|
|
11
|
+
fulltextInputPlaceholder?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare function DataGridToolbarControl(props: DataGridToolbarControlProps): React.JSX.Element;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
"use client";
|
|
3
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
5
|
+
};
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.DataGridToolbarControl = DataGridToolbarControl;
|
|
8
|
+
const hide_1 = require("@uxf/core-react/components/hide");
|
|
9
|
+
const is_not_nil_1 = require("@uxf/core/utils/is-not-nil");
|
|
10
|
+
const react_1 = __importDefault(require("react"));
|
|
11
|
+
const export_button_1 = require("../export-button");
|
|
12
|
+
const filters_button_1 = require("../filters-button");
|
|
13
|
+
const fulltext_input_1 = require("../fulltext-input");
|
|
14
|
+
const hidden_columns_button_1 = require("../hidden-columns-button");
|
|
15
|
+
function DataGridToolbarControl(props) {
|
|
16
|
+
return (react_1.default.createElement("div", { className: "uxf-data-grid__toolbar-control" },
|
|
17
|
+
react_1.default.createElement(hide_1.Hide, { when: !props.schema.fullText },
|
|
18
|
+
react_1.default.createElement(fulltext_input_1.DataGridFulltextInput, { actions: props.actions, placeholder: props.fulltextInputPlaceholder, state: props.state })),
|
|
19
|
+
(0, is_not_nil_1.isNotNil)(props.getCsvDownloadUrl) && (react_1.default.createElement(export_button_1.DataGridExportButton, { actions: props.actions, getCsvDownloadUrl: props.getCsvDownloadUrl, schema: props.schema, state: props.state })),
|
|
20
|
+
react_1.default.createElement(hidden_columns_button_1.DataGridHiddenColumnsButton, { actions: props.actions, schema: props.schema, state: props.state }),
|
|
21
|
+
react_1.default.createElement(filters_button_1.DataGridFiltersButton, { actions: props.actions, filterHandlers: props.filterHandlers, schema: props.schema, state: props.state })));
|
|
22
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.Default = Default;
|
|
7
|
+
const react_1 = __importDefault(require("react"));
|
|
8
|
+
const json_renderer_1 = require("../_story-utils/json-renderer");
|
|
9
|
+
const schema_1 = require("../_story-utils/schema");
|
|
10
|
+
const filter_handler_1 = require("../filter-handler");
|
|
11
|
+
const use_data_grid_control_1 = require("../use-data-grid-control");
|
|
12
|
+
const toolbar_control_1 = require("./toolbar-control");
|
|
13
|
+
function Default() {
|
|
14
|
+
const { state, actions } = (0, use_data_grid_control_1.useDataGridControl)({ schema: schema_1.schema });
|
|
15
|
+
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
16
|
+
react_1.default.createElement("div", { className: "flex flex-row" },
|
|
17
|
+
react_1.default.createElement(toolbar_control_1.DataGridToolbarControl, { actions: actions, filterHandlers: filter_handler_1.defaultFilterHandlers, getCsvDownloadUrl: () => "", schema: schema_1.schema, state: state })),
|
|
18
|
+
react_1.default.createElement(json_renderer_1.JsonRenderer, { value: state })));
|
|
19
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./toolbar-customs";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./toolbar-customs"), exports);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ButtonVariant } from "@uxf/ui/button";
|
|
2
|
+
import { NextLink } from "@uxf/ui/utils/next-link";
|
|
3
|
+
import React, { ReactElement } from "react";
|
|
4
|
+
export interface DataGridToolbarCustomsProps {
|
|
5
|
+
buttons?: {
|
|
6
|
+
label: string | ReactElement;
|
|
7
|
+
onClick?: () => void;
|
|
8
|
+
href?: string;
|
|
9
|
+
as?: NextLink | "a";
|
|
10
|
+
variant?: ButtonVariant;
|
|
11
|
+
}[];
|
|
12
|
+
}
|
|
13
|
+
export declare function DataGridToolbarCustoms(props: DataGridToolbarCustomsProps): React.JSX.Element | null;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
"use client";
|
|
3
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
5
|
+
};
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.DataGridToolbarCustoms = DataGridToolbarCustoms;
|
|
8
|
+
const is_not_nil_1 = require("@uxf/core/utils/is-not-nil");
|
|
9
|
+
const button_1 = require("@uxf/ui/button");
|
|
10
|
+
const button_list_1 = require("@uxf/ui/button-list");
|
|
11
|
+
const react_1 = __importDefault(require("react"));
|
|
12
|
+
function DataGridToolbarCustoms(props) {
|
|
13
|
+
if (!props.buttons) {
|
|
14
|
+
return null;
|
|
15
|
+
}
|
|
16
|
+
const firstButton = props.buttons.at(0);
|
|
17
|
+
return (react_1.default.createElement("div", { className: "uxf-data-grid__toolbar-customs" },
|
|
18
|
+
react_1.default.createElement("div", { className: "uxf-data-grid__toolbar-customs-mobile" }, (0, is_not_nil_1.isNotNil)(firstButton) ? (react_1.default.createElement(button_1.Button, { as: firstButton.as, href: firstButton.href, onClick: firstButton.onClick, size: "sm", variant: firstButton.variant }, firstButton.label)) : (react_1.default.createElement(button_list_1.ButtonList, { buttons: props.buttons, openButton: { variant: "secondary" }, size: "sm", visibleButtonsCount: 1 }))),
|
|
19
|
+
react_1.default.createElement("div", { className: "uxf-data-grid__toolbar-customs-desktop" }, props.buttons.map((button, index) => (react_1.default.createElement(button_1.Button, { as: button.as, href: button.href, key: index, onClick: button.onClick, size: "sm", variant: button.variant }, button.label))))));
|
|
20
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.Default = Default;
|
|
7
|
+
const react_1 = __importDefault(require("react"));
|
|
8
|
+
const toolbar_customs_1 = require("./toolbar-customs");
|
|
9
|
+
function Default() {
|
|
10
|
+
return (react_1.default.createElement(toolbar_customs_1.DataGridToolbarCustoms, { buttons: [
|
|
11
|
+
{ label: "Default", href: "/", variant: "default" },
|
|
12
|
+
{ label: "Text", href: "/", variant: "text" },
|
|
13
|
+
{ label: "Outlined", href: "/", variant: "secondary" },
|
|
14
|
+
] }));
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./toolbar-tabs";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./toolbar-tabs"), exports);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Nullish } from "@uxf/core/types";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { ChangeTabFilterBehavior } from "../types";
|
|
4
|
+
import { Schema } from "../types/schema";
|
|
5
|
+
import { DataGridControl } from "../use-data-grid-control";
|
|
6
|
+
export interface DataGridToolbarTabsProps extends DataGridControl {
|
|
7
|
+
changeTabFilterBehavior?: ChangeTabFilterBehavior;
|
|
8
|
+
schema: Schema<any>;
|
|
9
|
+
tabCounts?: Record<string, number> | Nullish;
|
|
10
|
+
}
|
|
11
|
+
export declare function DataGridToolbarTabs(props: DataGridToolbarTabsProps): React.JSX.Element;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
"use client";
|
|
3
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
5
|
+
};
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.DataGridToolbarTabs = DataGridToolbarTabs;
|
|
8
|
+
const show_1 = require("@uxf/core-react/components/show");
|
|
9
|
+
const cx_1 = require("@uxf/core/utils/cx");
|
|
10
|
+
const button_1 = require("@uxf/ui/button");
|
|
11
|
+
const dialog_1 = require("@uxf/ui/dialog");
|
|
12
|
+
const icon_1 = require("@uxf/ui/icon");
|
|
13
|
+
const modal_service_1 = require("@uxf/ui/modal/modal-service");
|
|
14
|
+
const react_1 = __importDefault(require("react"));
|
|
15
|
+
function Tab(props) {
|
|
16
|
+
return (react_1.default.createElement("button", { className: (0, cx_1.cx)("uxf-data-grid__toolbar-tab", props.isActive && "is-active"), onClick: props.onClick },
|
|
17
|
+
props.title,
|
|
18
|
+
props.tabCount ? " (" + props.tabCount + ")" : ""));
|
|
19
|
+
}
|
|
20
|
+
function DataGridToolbarTabs(props) {
|
|
21
|
+
var _a, _b, _c, _d;
|
|
22
|
+
return (react_1.default.createElement(show_1.Show, { when: Boolean((_a = props.schema.tabs) === null || _a === void 0 ? void 0 : _a.length) },
|
|
23
|
+
react_1.default.createElement("div", { className: "uxf-data-grid__toolbar-tabs" },
|
|
24
|
+
react_1.default.createElement("nav", { "aria-label": "Tabs", className: "uxf-data-grid__toolbar-tabs-nav uxf-data-grid__toolbar-tabs-nav--desktop" }, (_b = props.schema.tabs) === null || _b === void 0 ? void 0 : _b.map((tab) => (react_1.default.createElement(Tab, { isActive: props.state.request.tab === tab.name, key: tab.name, onClick: () => { var _a; return props.actions.changeTab(tab, (_a = props.changeTabFilterBehavior) !== null && _a !== void 0 ? _a : "filtersPerTab"); }, tabCount: props.tabCounts ? props.tabCounts[tab.name] : undefined, title: tab.label })))),
|
|
25
|
+
react_1.default.createElement("nav", { className: "uxf-data-grid__toolbar-tabs-nav uxf-data-grid__toolbar-tabs-nav--mobile" },
|
|
26
|
+
react_1.default.createElement(button_1.Button, { className: "uxf-data-grid__toolbar-tabs-button", onClick: () => {
|
|
27
|
+
var _a;
|
|
28
|
+
return (0, modal_service_1.openModal)({
|
|
29
|
+
children: (react_1.default.createElement(dialog_1.DialogPanel, null,
|
|
30
|
+
react_1.default.createElement("div", { className: "uxf-data-grid__toolbar-tabs-modal-content" }, (_a = props.schema.tabs) === null || _a === void 0 ? void 0 : _a.map((tab) => (react_1.default.createElement(button_1.Button, { className: "uxf-data-grid__toolbar-tabs-modal-button", key: tab.name, onClick: () => {
|
|
31
|
+
var _a;
|
|
32
|
+
props.actions.changeTab(tab, (_a = props.changeTabFilterBehavior) !== null && _a !== void 0 ? _a : "filtersPerTab");
|
|
33
|
+
(0, modal_service_1.closeModal)();
|
|
34
|
+
}, size: "xl", variant: "text" },
|
|
35
|
+
tab.name === props.state.request.tab && (react_1.default.createElement(icon_1.Icon, { className: "uxf-data-grid__toolbar-tabs-modal-active-tab-icon", name: "check", size: 20 })),
|
|
36
|
+
react_1.default.createElement("span", { className: "uxf-data-grid__toolbar-tabs-modal-button-text" }, tab.label))))))),
|
|
37
|
+
});
|
|
38
|
+
}, size: "sm", variant: "text" },
|
|
39
|
+
react_1.default.createElement("span", { className: "uxf-data-grid__toolbar-tabs-nav-text" }, (_d = (_c = props.schema.tabs) === null || _c === void 0 ? void 0 : _c.find((t) => t.name === props.state.request.tab)) === null || _d === void 0 ? void 0 : _d.label),
|
|
40
|
+
react_1.default.createElement(icon_1.Icon, { className: "uxf-data-grid__toolbar-tabs-button-icon", name: "caretDown", size: 16 }))))));
|
|
41
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.Default = Default;
|
|
7
|
+
const react_1 = __importDefault(require("react"));
|
|
8
|
+
const json_renderer_1 = require("../_story-utils/json-renderer");
|
|
9
|
+
const schema_1 = require("../_story-utils/schema");
|
|
10
|
+
const use_data_grid_control_1 = require("../use-data-grid-control");
|
|
11
|
+
const toolbar_tabs_1 = require("./toolbar-tabs");
|
|
12
|
+
function Default() {
|
|
13
|
+
const { state, actions } = (0, use_data_grid_control_1.useDataGridControl)({ schema: schema_1.schema });
|
|
14
|
+
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
15
|
+
react_1.default.createElement(toolbar_tabs_1.DataGridToolbarTabs, { actions: actions, schema: schema_1.schema, state: state }),
|
|
16
|
+
react_1.default.createElement(json_renderer_1.JsonRenderer, { value: state })));
|
|
17
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
{
|
|
2
|
+
"uxf-data-grid-hidden-columns": {
|
|
3
|
+
"visible-columns": "Zobrazené sloupce",
|
|
4
|
+
"hide-all": "skrýt vše",
|
|
5
|
+
"empty-message": "Tabulka má všechny sloupce skryté. Pro zobrazení vyberte sloupec níže.",
|
|
6
|
+
"hidden-columns": "Skryté sloupce",
|
|
7
|
+
"show-all": "zobrazit vše"
|
|
8
|
+
},
|
|
9
|
+
"uxf-data-grid-fulltext-input": {
|
|
10
|
+
"search-label": "Vyhledávání",
|
|
11
|
+
"search-placeholder": "Pište pro hledání"
|
|
12
|
+
},
|
|
13
|
+
"uxf-data-grid-hidden-columns-button": {
|
|
14
|
+
"column-settings-label": "Nastavení sloupců",
|
|
15
|
+
"columns-title": "Sloupce"
|
|
16
|
+
},
|
|
17
|
+
"uxf-data-grid-filters-button": {
|
|
18
|
+
"filters-label": "Filtry",
|
|
19
|
+
"filter-title": "Filtrovat",
|
|
20
|
+
"filtering-title": "Filtrování"
|
|
21
|
+
},
|
|
22
|
+
"uxf-data-grid-export-button": {
|
|
23
|
+
"download-csv": "Stáhnout CSV"
|
|
24
|
+
},
|
|
25
|
+
"uxf-data-grid-rows-per-page-select": {
|
|
26
|
+
"rows-count-label": "Počet řádků"
|
|
27
|
+
},
|
|
28
|
+
"uxf-data-grid-selected-rows-toolbar": {
|
|
29
|
+
"selected-one": "Vybrán 1 záznam",
|
|
30
|
+
"selected-few": "Vybrány {{count}} záznamy",
|
|
31
|
+
"selected-many": "Vybráno {{count}} záznamů",
|
|
32
|
+
"cancel-selection": "Zrušit výběr"
|
|
33
|
+
},
|
|
34
|
+
"uxf-data-grid-no-rows-fallback": {
|
|
35
|
+
"loading": "Načítám...",
|
|
36
|
+
"no-records": "Žádné záznamy",
|
|
37
|
+
"error": "Vyskytla se chyba"
|
|
38
|
+
},
|
|
39
|
+
"uxf-data-grid-checkboxes": {
|
|
40
|
+
"select-all": "Vybrat vše",
|
|
41
|
+
"select": "Vybrat"
|
|
42
|
+
},
|
|
43
|
+
"uxf-data-grid-boolean-filter": {
|
|
44
|
+
"yes": "Ano",
|
|
45
|
+
"no": "Ne"
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
{
|
|
2
|
+
"uxf-data-grid-hidden-columns": {
|
|
3
|
+
"visible-columns": "Sichtbare Spalten",
|
|
4
|
+
"hide-all": "alle ausblenden",
|
|
5
|
+
"empty-message": "Die Tabelle hat alle Spalten ausgeblendet. Um sie anzuzeigen, wählen Sie eine Spalte unten aus.",
|
|
6
|
+
"hidden-columns": "Ausgeblendete Spalten",
|
|
7
|
+
"show-all": "alle anzeigen"
|
|
8
|
+
},
|
|
9
|
+
"uxf-data-grid-fulltext-input": {
|
|
10
|
+
"search-label": "Suche",
|
|
11
|
+
"search-placeholder": "Zum Suchen eingeben"
|
|
12
|
+
},
|
|
13
|
+
"uxf-data-grid-hidden-columns-button": {
|
|
14
|
+
"column-settings-label": "Spalteneinstellungen",
|
|
15
|
+
"columns-title": "Spalten"
|
|
16
|
+
},
|
|
17
|
+
"uxf-data-grid-filters-button": {
|
|
18
|
+
"filters-label": "Filter",
|
|
19
|
+
"filter-title": "Filtern",
|
|
20
|
+
"filtering-title": "Filterung"
|
|
21
|
+
},
|
|
22
|
+
"uxf-data-grid-export-button": {
|
|
23
|
+
"download-csv": "CSV herunterladen"
|
|
24
|
+
},
|
|
25
|
+
"uxf-data-grid-rows-per-page-select": {
|
|
26
|
+
"rows-count-label": "Anzahl Zeilen"
|
|
27
|
+
},
|
|
28
|
+
"uxf-data-grid-selected-rows-toolbar": {
|
|
29
|
+
"selected-one": "1 Datensatz ausgewählt",
|
|
30
|
+
"selected-few": "{{count}} Datensätze ausgewählt",
|
|
31
|
+
"selected-many": "{{count}} Datensätze ausgewählt",
|
|
32
|
+
"cancel-selection": "Auswahl abbrechen"
|
|
33
|
+
},
|
|
34
|
+
"uxf-data-grid-no-rows-fallback": {
|
|
35
|
+
"loading": "Laden...",
|
|
36
|
+
"no-records": "Keine Datensätze",
|
|
37
|
+
"error": "Ein Fehler ist aufgetreten"
|
|
38
|
+
},
|
|
39
|
+
"uxf-data-grid-checkboxes": {
|
|
40
|
+
"select-all": "Alle auswählen",
|
|
41
|
+
"select": "Auswählen"
|
|
42
|
+
},
|
|
43
|
+
"uxf-data-grid-boolean-filter": {
|
|
44
|
+
"yes": "Ja",
|
|
45
|
+
"no": "Nein"
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
{
|
|
2
|
+
"uxf-data-grid-hidden-columns": {
|
|
3
|
+
"visible-columns": "Visible columns",
|
|
4
|
+
"hide-all": "hide all",
|
|
5
|
+
"empty-message": "The table has all columns hidden. To display them, select a column below.",
|
|
6
|
+
"hidden-columns": "Hidden columns",
|
|
7
|
+
"show-all": "show all"
|
|
8
|
+
},
|
|
9
|
+
"uxf-data-grid-fulltext-input": {
|
|
10
|
+
"search-label": "Search",
|
|
11
|
+
"search-placeholder": "Type to search"
|
|
12
|
+
},
|
|
13
|
+
"uxf-data-grid-hidden-columns-button": {
|
|
14
|
+
"column-settings-label": "Column settings",
|
|
15
|
+
"columns-title": "Columns"
|
|
16
|
+
},
|
|
17
|
+
"uxf-data-grid-filters-button": {
|
|
18
|
+
"filters-label": "Filters",
|
|
19
|
+
"filter-title": "Filter",
|
|
20
|
+
"filtering-title": "Filtering"
|
|
21
|
+
},
|
|
22
|
+
"uxf-data-grid-export-button": {
|
|
23
|
+
"download-csv": "Download CSV"
|
|
24
|
+
},
|
|
25
|
+
"uxf-data-grid-rows-per-page-select": {
|
|
26
|
+
"rows-count-label": "Rows count"
|
|
27
|
+
},
|
|
28
|
+
"uxf-data-grid-selected-rows-toolbar": {
|
|
29
|
+
"selected-one": "1 record selected",
|
|
30
|
+
"selected-few": "{{count}} records selected",
|
|
31
|
+
"selected-many": "{{count}} records selected",
|
|
32
|
+
"cancel-selection": "Cancel selection"
|
|
33
|
+
},
|
|
34
|
+
"uxf-data-grid-no-rows-fallback": {
|
|
35
|
+
"loading": "Loading...",
|
|
36
|
+
"no-records": "No records",
|
|
37
|
+
"error": "An error occurred"
|
|
38
|
+
},
|
|
39
|
+
"uxf-data-grid-checkboxes": {
|
|
40
|
+
"select-all": "Select all",
|
|
41
|
+
"select": "Select"
|
|
42
|
+
},
|
|
43
|
+
"uxf-data-grid-boolean-filter": {
|
|
44
|
+
"yes": "Yes",
|
|
45
|
+
"no": "No"
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
{
|
|
2
|
+
"uxf-data-grid-hidden-columns": {
|
|
3
|
+
"visible-columns": "Zobrazené stĺpce",
|
|
4
|
+
"hide-all": "skryť všetko",
|
|
5
|
+
"empty-message": "Tabuľka má všetky stĺpce skryté. Pre zobrazenie vyberte stĺpec nižšie.",
|
|
6
|
+
"hidden-columns": "Skryté stĺpce",
|
|
7
|
+
"show-all": "zobraziť všetko"
|
|
8
|
+
},
|
|
9
|
+
"uxf-data-grid-fulltext-input": {
|
|
10
|
+
"search-label": "Vyhľadávanie",
|
|
11
|
+
"search-placeholder": "Píšte pre hľadanie"
|
|
12
|
+
},
|
|
13
|
+
"uxf-data-grid-hidden-columns-button": {
|
|
14
|
+
"column-settings-label": "Nastavenie stĺpcov",
|
|
15
|
+
"columns-title": "Stĺpce"
|
|
16
|
+
},
|
|
17
|
+
"uxf-data-grid-filters-button": {
|
|
18
|
+
"filters-label": "Filtre",
|
|
19
|
+
"filter-title": "Filtrovať",
|
|
20
|
+
"filtering-title": "Filtrovanie"
|
|
21
|
+
},
|
|
22
|
+
"uxf-data-grid-export-button": {
|
|
23
|
+
"download-csv": "Stiahnuť CSV"
|
|
24
|
+
},
|
|
25
|
+
"uxf-data-grid-rows-per-page-select": {
|
|
26
|
+
"rows-count-label": "Počet riadkov"
|
|
27
|
+
},
|
|
28
|
+
"uxf-data-grid-selected-rows-toolbar": {
|
|
29
|
+
"selected-one": "Vybraný 1 záznam",
|
|
30
|
+
"selected-few": "Vybrané {{count}} záznamy",
|
|
31
|
+
"selected-many": "Vybraných {{count}} záznamov",
|
|
32
|
+
"cancel-selection": "Zrušiť výber"
|
|
33
|
+
},
|
|
34
|
+
"uxf-data-grid-no-rows-fallback": {
|
|
35
|
+
"loading": "Načítam...",
|
|
36
|
+
"no-records": "Žiadne záznamy",
|
|
37
|
+
"error": "Vyskytla sa chyba"
|
|
38
|
+
},
|
|
39
|
+
"uxf-data-grid-checkboxes": {
|
|
40
|
+
"select-all": "Vybrať všetko",
|
|
41
|
+
"select": "Vybrať"
|
|
42
|
+
},
|
|
43
|
+
"uxf-data-grid-boolean-filter": {
|
|
44
|
+
"yes": "Áno",
|
|
45
|
+
"no": "Nie"
|
|
46
|
+
}
|
|
47
|
+
}
|
package/types/api.d.ts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Nullish } from "@uxf/core/types";
|
|
2
|
+
import { DataGridSort } from "./schema";
|
|
3
|
+
export type ResultItem = any;
|
|
4
|
+
export interface RequestFilter<T = any> {
|
|
5
|
+
name: string;
|
|
6
|
+
value: T;
|
|
7
|
+
op?: string;
|
|
8
|
+
}
|
|
9
|
+
export interface Request {
|
|
10
|
+
f?: RequestFilter[];
|
|
11
|
+
s?: DataGridSort;
|
|
12
|
+
page?: number;
|
|
13
|
+
perPage?: number;
|
|
14
|
+
search?: string;
|
|
15
|
+
tab?: string | null;
|
|
16
|
+
withTabCounts?: true | null;
|
|
17
|
+
}
|
|
18
|
+
export interface Response {
|
|
19
|
+
totalCount: number;
|
|
20
|
+
count: number;
|
|
21
|
+
tabCounts: Record<string, number> | Nullish;
|
|
22
|
+
result: ResultItem[];
|
|
23
|
+
}
|
package/types/api.js
ADDED