@ozen-ui/data-grid 0.76.0 → 0.78.0
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/__inner__/cjs/core/column/store/DataGridStoreColumn.js +5 -4
- package/__inner__/cjs/core/column/store/utils.js +17 -0
- package/__inner__/cjs/core/column/table/DataGridColumn.js +4 -25
- package/__inner__/cjs/core/column/table/utils.js +14 -0
- package/__inner__/cjs/core/filter/store/base/DataGridStoreFilter.js +0 -9
- package/__inner__/cjs/core/filter/table/base/DataGridTableFilter.js +2 -3
- package/__inner__/cjs/core/store/DataGridStore.js +0 -8
- package/__inner__/cjs/core/sub-row/entities/index.js +1 -0
- package/__inner__/cjs/core/sub-row/entities/render.js +2 -0
- package/__inner__/cjs/core/table/DataGridTable.js +0 -1
- package/__inner__/cjs/ui/DataGrid/components/DataGridHeadFoot/DataGridHeadFoot.js +7 -1
- package/__inner__/cjs/ui/DataGrid/components/DataGridPagination/DataGridPagination.js +14 -4
- package/__inner__/cjs/ui/DataGrid/components/DataGridRow/DataGridRow.js +7 -3
- package/__inner__/cjs/ui/DataGrid/components/DataGridSubRow/DataGridSubRow.js +2 -2
- package/__inner__/cjs/ui/DataGridAllFiltersDrawer/DataGridAllFiltersDrawer.js +9 -4
- package/__inner__/cjs/ui/DataGridSettingsDrawer/DataGridSettingsDrawer.js +10 -4
- package/__inner__/cjs/ui/filters/DataGridAutocompleteFilter/DataGridAutocompleteFilter.js +1 -13
- package/__inner__/esm/core/column/store/DataGridStoreColumn.js +5 -4
- package/__inner__/esm/core/column/store/utils.js +12 -0
- package/__inner__/esm/core/column/table/DataGridColumn.js +4 -25
- package/__inner__/esm/core/column/table/utils.js +9 -0
- package/__inner__/esm/core/filter/store/base/DataGridStoreFilter.js +0 -9
- package/__inner__/esm/core/filter/table/base/DataGridTableFilter.js +2 -3
- package/__inner__/esm/core/store/DataGridStore.js +0 -8
- package/__inner__/esm/core/sub-row/entities/index.js +1 -0
- package/__inner__/esm/core/sub-row/entities/render.js +1 -0
- package/__inner__/esm/core/table/DataGridTable.js +0 -1
- package/__inner__/esm/ui/DataGrid/components/DataGridHeadFoot/DataGridHeadFoot.js +7 -1
- package/__inner__/esm/ui/DataGrid/components/DataGridPagination/DataGridPagination.js +14 -4
- package/__inner__/esm/ui/DataGrid/components/DataGridRow/DataGridRow.js +7 -3
- package/__inner__/esm/ui/DataGrid/components/DataGridSubRow/DataGridSubRow.js +2 -2
- package/__inner__/esm/ui/DataGridAllFiltersDrawer/DataGridAllFiltersDrawer.js +10 -4
- package/__inner__/esm/ui/DataGridSettingsDrawer/DataGridSettingsDrawer.js +12 -6
- package/__inner__/esm/ui/filters/DataGridAutocompleteFilter/DataGridAutocompleteFilter.js +1 -13
- package/__inner__/types/core/column/hooks/useDataGridColumn.d.ts +2 -1
- package/__inner__/types/core/column/hooks/useDataGridColumnEvents.d.ts +2 -1
- package/__inner__/types/core/column/hooks/useDataGridColumnsInfo.d.ts +2 -1
- package/__inner__/types/core/column/store/DataGridStoreColumn.d.ts +2 -1
- package/__inner__/types/core/column/store/utils.d.ts +5 -0
- package/__inner__/types/core/column/table/DataGridColumn.d.ts +2 -12
- package/__inner__/types/core/column/table/types.d.ts +7 -1
- package/__inner__/types/core/column/table/utils.d.ts +2 -0
- package/__inner__/types/core/columns-group/hooks/useDataGridColumnsGroup.d.ts +2 -1
- package/__inner__/types/core/columns-group/hooks/useDataGridColumnsGroupEvents.d.ts +2 -1
- package/__inner__/types/core/entities/cell.d.ts +7 -1
- package/__inner__/types/core/filter/hooks/useDataGridFilter.d.ts +2 -1
- package/__inner__/types/core/filter/hooks/useDataGridFilterEvents.d.ts +2 -1
- package/__inner__/types/core/filter/hooks/useDataGridFilters.d.ts +2 -1
- package/__inner__/types/core/filter/hooks/useDataGridFiltersEvents.d.ts +2 -1
- package/__inner__/types/core/filter/store/base/DataGridStoreFilter.d.ts +0 -3
- package/__inner__/types/core/filter/table/base/DataGridTableFilter.d.ts +1 -3
- package/__inner__/types/core/filter/table/base/types.d.ts +0 -2
- package/__inner__/types/core/pagination/hooks/useDataGridPagination.d.ts +2 -1
- package/__inner__/types/core/pagination/hooks/useDataGridPaginationEvents.d.ts +2 -1
- package/__inner__/types/core/selection/hooks/useDataGridSelection.d.ts +2 -1
- package/__inner__/types/core/selection/hooks/useDataGridSelectionEvents.d.ts +2 -1
- package/__inner__/types/core/store/hooks/useDataGridCreateStore.d.ts +2 -2
- package/__inner__/types/core/store/hooks/useDataGridStore.d.ts +2 -1
- package/__inner__/types/core/store/hooks/useDataGridStoreEvents.d.ts +2 -1
- package/__inner__/types/core/sub-row/entities/index.d.ts +1 -0
- package/__inner__/types/core/sub-row/entities/render.d.ts +8 -0
- package/__inner__/types/core/sub-row/hooks/useDataGridSubRow.d.ts +2 -1
- package/__inner__/types/core/sub-row/hooks/useDataGridSubRowEvents.d.ts +2 -1
- package/__inner__/types/core/sub-row/hooks/useDataGridSubRows.d.ts +2 -1
- package/__inner__/types/core/sub-row/hooks/useDataGridSubRowsEvents.d.ts +2 -1
- package/__inner__/types/core/sub-row/store/sub-row/DataGridStoreSubRow.d.ts +2 -2
- package/__inner__/types/core/sub-row/table/DataGridSubRow.d.ts +2 -2
- package/__inner__/types/core/sub-row/table/types.d.ts +2 -2
- package/__inner__/types/ui/DataGrid/DataGrid.d.ts +2 -1
- package/__inner__/types/ui/DataGrid/components/DataGridPagination/entities/afterText.d.ts +3 -1
- package/__inner__/types/ui/DataGridAllFiltersDrawer/DataGridAllFiltersDrawer.d.ts +16 -4
- package/__inner__/types/ui/DataGridAllFiltersDrawer/types.d.ts +3 -1
- package/__inner__/types/ui/DataGridSettingsDrawer/DataGridSettingsDrawer.d.ts +22 -4
- package/__inner__/types/ui/DataGridSettingsDrawer/types.d.ts +5 -1
- package/__inner__/types/ui/context/DataGridProvider.d.ts +2 -1
- package/__inner__/types/ui/context/context.d.ts +1 -1
- package/__inner__/types/ui/filters/DataGridAutocompleteFilter/utilts.d.ts +2 -2
- package/__inner__/types/ui/filters/DataGridAutocompleteListCardFilter/utilts.d.ts +2 -2
- package/package.json +6 -8
|
@@ -19,9 +19,13 @@ export var DataGridRow = dataGridObserver(function (_a) {
|
|
|
19
19
|
store.columns.map(function (column) {
|
|
20
20
|
var cell = column.cell;
|
|
21
21
|
var value = column.accessor(row, index);
|
|
22
|
-
var renderedCell =
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
var renderedCell = (function () {
|
|
23
|
+
if (isFunction(cell)) {
|
|
24
|
+
var Component = cell;
|
|
25
|
+
return (React.createElement(Component, { key: "".concat(column.id, "-").concat(index), data: value, item: row, index: index, column: column }));
|
|
26
|
+
}
|
|
27
|
+
return cell;
|
|
28
|
+
})();
|
|
25
29
|
var cellComponent = (function () {
|
|
26
30
|
if (isString(renderedCell) || isNumber(renderedCell)) {
|
|
27
31
|
return (React.createElement(DataGridCellItem, { align: column.align }, renderedCell));
|
|
@@ -23,7 +23,7 @@ export var DataGridSubRow = dataGridObserver(function (_a) {
|
|
|
23
23
|
? store.subRows.getIsExpandedRoot(id)
|
|
24
24
|
: !!((_c = subRow.root) === null || _c === void 0 ? void 0 : _c.getIsExpanded(id));
|
|
25
25
|
var canExpand = subRow.canExpand;
|
|
26
|
-
var
|
|
26
|
+
var Component = subRow.render;
|
|
27
27
|
var expandButton = (React.createElement(IconButton, { icon: subRow.getIsExpanded(id) ? ChevronUpIcon : ChevronDownIcon, size: "s", onClick: function () {
|
|
28
28
|
subRow.toggle(id);
|
|
29
29
|
}, compressed: true }));
|
|
@@ -43,7 +43,7 @@ export var DataGridSubRow = dataGridObserver(function (_a) {
|
|
|
43
43
|
canExpand &&
|
|
44
44
|
store.subRows.isLeft &&
|
|
45
45
|
expandButton,
|
|
46
|
-
|
|
46
|
+
React.createElement(Component, { subRow: subRow, index: index, item: row }),
|
|
47
47
|
isSomeRowsVisible &&
|
|
48
48
|
canExpand &&
|
|
49
49
|
store.subRows.isRight &&
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { __assign, __rest } from "tslib";
|
|
2
|
+
import React, { forwardRef } from 'react';
|
|
2
3
|
import { Drawer, DrawerBody, DrawerHeader, DrawerSubtitle, DrawerTitle, } from "@ozen-ui/kit/DrawerNext";
|
|
3
4
|
import { Stack } from "@ozen-ui/kit/Stack";
|
|
4
5
|
import { useEventListener } from "@ozen-ui/kit/useEventListener";
|
|
@@ -6,8 +7,8 @@ import { isKey } from '@ozen-ui/kit/utils';
|
|
|
6
7
|
import { dataGridObserver, useDataGridStore } from '../../core';
|
|
7
8
|
import { DataGridFilter } from '../filters';
|
|
8
9
|
import { DataGridAllFiltersDrawerFooter } from './components';
|
|
9
|
-
|
|
10
|
-
var title = _a.title, subTitle = _a.subTitle, applyButton = _a.applyButton, closeButton = _a.closeButton;
|
|
10
|
+
var NonWrappedDataGridAllFiltersDrawer = forwardRef(function (_a, ref) {
|
|
11
|
+
var title = _a.title, subTitle = _a.subTitle, applyButton = _a.applyButton, closeButton = _a.closeButton, onClose = _a.onClose, other = __rest(_a, ["title", "subTitle", "applyButton", "closeButton", "onClose"]);
|
|
11
12
|
var store = useDataGridStore();
|
|
12
13
|
var isOpen = store.modals.isOpen('filters');
|
|
13
14
|
var filters = store.filters;
|
|
@@ -21,7 +22,10 @@ export var DataGridAllFiltersDrawer = dataGridObserver(function (_a) {
|
|
|
21
22
|
store.modals.closeFilters();
|
|
22
23
|
},
|
|
23
24
|
});
|
|
24
|
-
return (React.createElement(Drawer, { open: isOpen, onClose: function () {
|
|
25
|
+
return (React.createElement(Drawer, __assign({}, other, { ref: ref, open: isOpen, onClose: function () {
|
|
26
|
+
store.modals.closeFilters();
|
|
27
|
+
onClose === null || onClose === void 0 ? void 0 : onClose();
|
|
28
|
+
} }),
|
|
25
29
|
React.createElement(DrawerHeader, null,
|
|
26
30
|
React.createElement(DrawerTitle, null, title),
|
|
27
31
|
subTitle && React.createElement(DrawerSubtitle, null, subTitle)),
|
|
@@ -29,3 +33,5 @@ export var DataGridAllFiltersDrawer = dataGridObserver(function (_a) {
|
|
|
29
33
|
React.createElement(Stack, { direction: "column", gap: "s", fullWidth: true }, filters.filters.map(function (filter) { return (React.createElement(DataGridFilter, { key: filter.id, filter: filter, type: "allFilter" })); }))),
|
|
30
34
|
React.createElement(DataGridAllFiltersDrawerFooter, { applyButton: applyButton, closeButton: closeButton })));
|
|
31
35
|
});
|
|
36
|
+
NonWrappedDataGridAllFiltersDrawer.displayName = 'DataGridAllFiltersDrawer';
|
|
37
|
+
export var DataGridAllFiltersDrawer = dataGridObserver(NonWrappedDataGridAllFiltersDrawer);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { __assign, __read } from "tslib";
|
|
2
|
-
import React, { useMemo, useState } from 'react';
|
|
1
|
+
import { __assign, __read, __rest } from "tslib";
|
|
2
|
+
import React, { forwardRef, useMemo, useState } from 'react';
|
|
3
3
|
import { Checkbox } from "@ozen-ui/kit/CheckboxNext";
|
|
4
4
|
import { Drawer, DrawerBody, DrawerFooter, DrawerFooterButton, DrawerFooterButtonsGroup, DrawerHeader, DrawerSubtitle, DrawerTitle, } from "@ozen-ui/kit/DrawerNext";
|
|
5
5
|
import { FormGroup } from "@ozen-ui/kit/FormGroup";
|
|
6
6
|
import { dataGridObserver, useDataGridStore } from '../../core';
|
|
7
|
-
|
|
8
|
-
var title = _a.title, subTitle = _a.subTitle, closeButton = _a.closeButton, applyButton = _a.applyButton;
|
|
7
|
+
var NonWrappedDataGridSettingsDrawer = forwardRef(function (_a, ref) {
|
|
8
|
+
var title = _a.title, subTitle = _a.subTitle, closeButton = _a.closeButton, applyButton = _a.applyButton, onClose = _a.onClose, other = __rest(_a, ["title", "subTitle", "closeButton", "applyButton", "onClose"]);
|
|
9
9
|
var store = useDataGridStore();
|
|
10
10
|
var isOpen = store.modals.isOpen('columns-settings');
|
|
11
11
|
var columns = store.allColumns;
|
|
@@ -34,14 +34,18 @@ export var DataGridSettingsDrawer = dataGridObserver(function (_a) {
|
|
|
34
34
|
setLocalVisible({});
|
|
35
35
|
}
|
|
36
36
|
}, [isOpen]);
|
|
37
|
-
return (React.createElement(Drawer, { open: isOpen, onClose: function () {
|
|
37
|
+
return (React.createElement(Drawer, __assign({}, other, { ref: ref, open: isOpen, onClose: function () {
|
|
38
|
+
store.modals.closeColumnsSettings();
|
|
39
|
+
onClose === null || onClose === void 0 ? void 0 : onClose();
|
|
40
|
+
} }),
|
|
38
41
|
React.createElement(DrawerHeader, null,
|
|
39
42
|
React.createElement(DrawerTitle, null, title),
|
|
40
43
|
subTitle && React.createElement(DrawerSubtitle, null, subTitle)),
|
|
41
44
|
React.createElement(DrawerBody, null,
|
|
42
45
|
React.createElement(FormGroup, { size: "l", direction: "column" }, columns.map(function (column) {
|
|
43
46
|
var checked = checkIsSelected(column);
|
|
44
|
-
|
|
47
|
+
var NameComponent = column.name;
|
|
48
|
+
return (React.createElement(Checkbox, { key: column.id, label: React.createElement(NameComponent, null), checked: checked, disabled: isLeftAlone && checked, size: "l", onChange: function (event) {
|
|
45
49
|
setLocalVisible(function (previousVisible) {
|
|
46
50
|
var _a;
|
|
47
51
|
return (__assign(__assign({}, previousVisible), (_a = {}, _a[column.id] = event.target.checked, _a)));
|
|
@@ -58,3 +62,5 @@ export var DataGridSettingsDrawer = dataGridObserver(function (_a) {
|
|
|
58
62
|
store.modals.closeColumnsSettings();
|
|
59
63
|
} }, applyButton)))));
|
|
60
64
|
});
|
|
65
|
+
NonWrappedDataGridSettingsDrawer.displayName = 'DataGridSettingsDrawer';
|
|
66
|
+
export var DataGridSettingsDrawer = dataGridObserver(NonWrappedDataGridSettingsDrawer);
|
|
@@ -6,19 +6,7 @@ import { filterValueToAutocomplete, autocompleteValueToFilter } from './utilts';
|
|
|
6
6
|
export var DataGridAutocompleteFilter = dataGridObserver(function (_a) {
|
|
7
7
|
var filter = _a.filter, type = _a.type, onChange = _a.onChange, onInputChange = _a.onInputChange, style = _a.style, renderMoreTag = _a.renderMoreTag, renderOption = _a.renderOption, searchFunction = _a.searchFunction, other = __rest(_a, ["filter", "type", "onChange", "onInputChange", "style", "renderMoreTag", "renderOption", "searchFunction"]);
|
|
8
8
|
var value = filter.valueByType(type);
|
|
9
|
-
return (React.createElement(Autocomplete, __assign({ disableCloseOnSelect: filter.isMultiple, limitTags: "responsive", label: filter.name }, other, { size: type === 'allFilter' ? 's' : 'xs', options: filter.options, getOptionKey: function (option) { return option.value; }, getOptionLabel: function (option) { return option.label; }, getOptionDisabled: function () { return false; }, multiple: filter.isMultiple, renderMoreTag: renderMoreTag
|
|
10
|
-
? function (props, ref) {
|
|
11
|
-
return renderMoreTag(props, ref);
|
|
12
|
-
}
|
|
13
|
-
: undefined, renderOption: renderOption
|
|
14
|
-
? function (props) {
|
|
15
|
-
return renderOption(props);
|
|
16
|
-
}
|
|
17
|
-
: undefined, searchFunction: searchFunction
|
|
18
|
-
? function (options, searchValue) {
|
|
19
|
-
return searchFunction(options, searchValue);
|
|
20
|
-
}
|
|
21
|
-
: undefined, value: filterValueToAutocomplete(filter, value), style: __assign(__assign({}, style), { minWidth: 200 }), onInputChange: function (event, _value) {
|
|
9
|
+
return (React.createElement(Autocomplete, __assign({ disableCloseOnSelect: filter.isMultiple, limitTags: "responsive", label: filter.name }, other, { size: type === 'allFilter' ? 's' : 'xs', options: filter.options, getOptionKey: function (option) { return option.value; }, getOptionLabel: function (option) { return option.label; }, getOptionDisabled: function () { return false; }, multiple: filter.isMultiple, renderMoreTag: renderMoreTag, renderOption: renderOption, searchFunction: searchFunction, value: filterValueToAutocomplete(filter, value), style: __assign(__assign({}, style), { minWidth: 200 }), onInputChange: function (event, _value) {
|
|
22
10
|
var value = _value !== null && _value !== void 0 ? _value : '';
|
|
23
11
|
onInputChange === null || onInputChange === void 0 ? void 0 : onInputChange(event, value);
|
|
24
12
|
}, onChange: function (event, _value) {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { DataGridItem } from '../../entities';
|
|
1
2
|
import type { DataGridStore } from '../../store';
|
|
2
3
|
import type { DataGridColumn } from '../table';
|
|
3
|
-
export declare const useDataGridColumn: <Item extends
|
|
4
|
+
export declare const useDataGridColumn: <Item extends DataGridItem, AccessorReturn>(column: DataGridColumn<Item, AccessorReturn>, store?: DataGridStore<Item>) => import("..").DataGridStoreColumn<Item, AccessorReturn>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { UseEventBusEventsSubscribes } from '../../../shared';
|
|
2
|
+
import type { DataGridItem } from '../../entities';
|
|
2
3
|
import type { DataGridStore } from '../../store';
|
|
3
4
|
import type { DataGridStoreColumnEvents } from '../store';
|
|
4
5
|
import type { DataGridColumn } from '../table';
|
|
5
|
-
export declare const useDataGridColumnEvents: <Item extends
|
|
6
|
+
export declare const useDataGridColumnEvents: <Item extends DataGridItem, AccessorReturn>(column: DataGridColumn<Item, AccessorReturn>, subscribes: UseEventBusEventsSubscribes<DataGridStoreColumnEvents>, store?: DataGridStore<Item>) => void;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
import type { DataGridItem } from '../../entities';
|
|
1
2
|
import type { DataGridStore } from '../../store';
|
|
2
|
-
export declare const useDataGridColumnsInfo: <Item extends
|
|
3
|
+
export declare const useDataGridColumnsInfo: <Item extends DataGridItem>(store?: DataGridStore<Item>) => import("..").DataGridColumnsInfo<Item, unknown>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
1
2
|
import { EventBus } from '../../../shared';
|
|
2
3
|
import type { DataGridStoreColumnsGroup } from '../../columns-group';
|
|
3
4
|
import type { DataGridItem, DataGridColumnCell, DataGridColumnHeader, DataGridColumnAccessor, DataGridColumnFooter } from '../../entities';
|
|
@@ -8,7 +9,7 @@ import type { DataGridStoreColumnEvents, DataGridStoreColumnWidth } from './type
|
|
|
8
9
|
export declare class DataGridStoreColumn<Item extends DataGridItem, AccessorReturn = unknown> {
|
|
9
10
|
id: string;
|
|
10
11
|
cell: DataGridColumnCell<Item, AccessorReturn>;
|
|
11
|
-
name:
|
|
12
|
+
name: () => ReactNode;
|
|
12
13
|
header: DataGridColumnHeader;
|
|
13
14
|
align: DataGridColumnAlign;
|
|
14
15
|
accessor: DataGridColumnAccessor<Item, AccessorReturn>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { DataGridItem } from '../../entities';
|
|
3
|
+
import type { DataGridColumn } from '../table';
|
|
4
|
+
import type { DataGridStoreColumn } from './DataGridStoreColumn';
|
|
5
|
+
export declare const createDataGridStoreColumnName: <Item extends DataGridItem, AccessorReturn = unknown>(column: DataGridColumn<Item, AccessorReturn>, storeColumn: DataGridStoreColumn<Item, AccessorReturn>) => () => string | number | boolean | Iterable<React.ReactNode> | React.JSX.Element | null | undefined;
|
|
@@ -1,30 +1,20 @@
|
|
|
1
1
|
import type { DataGridColumnsGroup } from '../../columns-group';
|
|
2
2
|
import type { DataGridColumnAccessor, DataGridColumnCell, DataGridColumnFooter, DataGridColumnHeader, DataGridItem } from '../../entities';
|
|
3
|
-
import type { DataGridFilterOption, DataGridAutocompleteTableFilterParams, DataGridAutocompleteListCardTableFilterParams, DataGridDateTableFilterParams, DataGridNumberTableFilterParams, DataGridStringTableFilterParams, DataGridSelectTableFilterParams } from '../../filter';
|
|
4
|
-
import type { DataGridTable } from '../../table';
|
|
5
3
|
import type { DataGridColumnAlign, DataGridColumnSortSettings, DataGridColumnWidth, DataGridGetColumnWidth } from '../entities';
|
|
6
|
-
import type { DataGridColumnParams } from './types';
|
|
4
|
+
import type { DataGridColumnName, DataGridColumnParams } from './types';
|
|
7
5
|
export declare class DataGridColumn<Item extends DataGridItem, AccessorReturn = unknown> {
|
|
8
6
|
rawId: string;
|
|
9
7
|
header: DataGridColumnHeader;
|
|
10
|
-
name:
|
|
8
|
+
name: DataGridColumnName<Item, AccessorReturn>;
|
|
11
9
|
cell: DataGridColumnCell<Item, AccessorReturn>;
|
|
12
10
|
align: DataGridColumnAlign;
|
|
13
11
|
footer: DataGridColumnFooter | undefined;
|
|
14
12
|
accessor: DataGridColumnAccessor<Item, AccessorReturn>;
|
|
15
13
|
root: DataGridColumnsGroup<Item> | null;
|
|
16
|
-
private context;
|
|
17
14
|
sortSettings: DataGridColumnSortSettings;
|
|
18
15
|
width: DataGridColumnWidth | DataGridGetColumnWidth<Item, AccessorReturn> | null;
|
|
19
16
|
constructor({ id, cell, header, accessor, footer, name, align, sorting, width, }: DataGridColumnParams<Item, AccessorReturn>);
|
|
20
|
-
setContext(context: DataGridTable<Item>): void;
|
|
21
17
|
get id(): string;
|
|
22
18
|
setRoot(root: DataGridColumnsGroup<Item>): void;
|
|
23
|
-
createDateFilter(params: DataGridDateTableFilterParams<Item>): import("../../filter").DataGridDateTableFilter<Item>;
|
|
24
|
-
createSelectFilter<Option extends DataGridFilterOption>(params: DataGridSelectTableFilterParams<Item, Option>): import("../../filter").DataGridSelectTableFilter<Item, Option>;
|
|
25
|
-
createNumberFilter(params: DataGridNumberTableFilterParams<Item>): import("../../filter").DataGridNumberTableFilter<Item>;
|
|
26
|
-
createStringFilter(params: DataGridStringTableFilterParams<Item>): import("../../filter").DataGridStringTableFilter<Item>;
|
|
27
|
-
createAutocompleteFilter<Option extends DataGridFilterOption>(params: DataGridAutocompleteTableFilterParams<Item, Option>): import("../../filter").DataGridAutocompleteTableFilter<Item, Option>;
|
|
28
|
-
createAutocompleteListCardFilter<Option extends DataGridFilterOption>(params: DataGridAutocompleteListCardTableFilterParams<Item, Option>): import("../../filter").DataGridAutocompleteListCardTableFilter<Item, Option>;
|
|
29
19
|
get depth(): number;
|
|
30
20
|
}
|
|
@@ -1,9 +1,15 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
1
2
|
import type { DataGridColumnAccessor, DataGridColumnCell, DataGridColumnFooter, DataGridColumnHeader, DataGridItem } from '../../entities';
|
|
2
3
|
import type { DataGridColumnAlign, DataGridColumnWidth, DataGridGetColumnWidth } from '../entities';
|
|
4
|
+
import type { DataGridStoreColumn } from '../store';
|
|
5
|
+
export type DataGridColumnNameRender<Item extends DataGridItem, AccessorReturn> = (params: {
|
|
6
|
+
column: DataGridStoreColumn<Item, AccessorReturn>;
|
|
7
|
+
}) => ReactNode;
|
|
8
|
+
export type DataGridColumnName<Item extends DataGridItem, AccessorReturn> = ReactNode | DataGridColumnNameRender<Item, AccessorReturn>;
|
|
3
9
|
export type DataGridColumnParams<Item extends DataGridItem, AccessorReturn> = {
|
|
4
10
|
id: string;
|
|
5
11
|
accessor: DataGridColumnAccessor<Item, AccessorReturn>;
|
|
6
|
-
name:
|
|
12
|
+
name: DataGridColumnName<Item, AccessorReturn>;
|
|
7
13
|
header?: DataGridColumnHeader;
|
|
8
14
|
cell?: DataGridColumnCell<Item, AccessorReturn>;
|
|
9
15
|
footer?: DataGridColumnFooter;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { DataGridItem } from '../../entities';
|
|
1
2
|
import type { DataGridStore } from '../../store';
|
|
2
3
|
import type { DataGridColumnsGroup } from '../table';
|
|
3
|
-
export declare const useDataGridColumnsGroup: <Item extends
|
|
4
|
+
export declare const useDataGridColumnsGroup: <Item extends DataGridItem>(group: DataGridColumnsGroup<Item>, store?: DataGridStore<Item>) => import("..").DataGridStoreColumnsGroup<Item>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { UseEventBusEventsSubscribes } from '../../../shared';
|
|
2
|
+
import type { DataGridItem } from '../../entities';
|
|
2
3
|
import type { DataGridStore } from '../../store';
|
|
3
4
|
import type { DataGridStoreColumnsGroupEvents } from '../store';
|
|
4
5
|
import type { DataGridColumnsGroup } from '../table';
|
|
5
|
-
export declare const useDataGridColumnsGroupEvents: <Item extends
|
|
6
|
+
export declare const useDataGridColumnsGroupEvents: <Item extends DataGridItem>(group: DataGridColumnsGroup<Item>, subscribes: UseEventBusEventsSubscribes<DataGridStoreColumnsGroupEvents<Item>>, store?: DataGridStore<Item>) => void;
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
|
+
import type { DataGridStoreColumn } from '../column';
|
|
2
3
|
import type { DataGridItem } from './data';
|
|
3
|
-
export type DataGridColumnCellRender<Item extends DataGridItem, AccessorReturn> = (
|
|
4
|
+
export type DataGridColumnCellRender<Item extends DataGridItem, AccessorReturn> = (params: {
|
|
5
|
+
data: AccessorReturn;
|
|
6
|
+
item: Item;
|
|
7
|
+
index: number;
|
|
8
|
+
column: DataGridStoreColumn<Item, AccessorReturn>;
|
|
9
|
+
}) => ReactNode;
|
|
4
10
|
export type DataGridColumnCellNode = ReactNode;
|
|
5
11
|
export type DataGridColumnCell<Item extends DataGridItem, AccessorReturn> = DataGridColumnCellNode | DataGridColumnCellRender<Item, AccessorReturn>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { DataGridItem } from '../../entities';
|
|
1
2
|
import type { DataGridStore } from '../../store';
|
|
2
3
|
import type { DataGridTableFilter } from '../table/base';
|
|
3
|
-
export declare const useDataGridFilter: <Item extends
|
|
4
|
+
export declare const useDataGridFilter: <Item extends DataGridItem, Filter extends DataGridTableFilter<Item>>(filter: Filter, store?: DataGridStore<Item>) => import("../../store").DataGridTableFilterToStore<Item, Filter>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { UseEventBusEventsSubscribes } from '../../../shared';
|
|
2
|
+
import type { DataGridItem } from '../../entities';
|
|
2
3
|
import type { DataGridStore, DataGridTableFilterToStore } from '../../store';
|
|
3
4
|
import type { DataGridTableFilter } from '../table';
|
|
4
5
|
import type { DataGridStoreFilterExtractEvents } from '../types';
|
|
5
|
-
export declare const useDataGridFilterEvents: <Item extends
|
|
6
|
+
export declare const useDataGridFilterEvents: <Item extends DataGridItem, Filter extends DataGridTableFilter<Item>>(filter: Filter, subscribes: UseEventBusEventsSubscribes<DataGridStoreFilterExtractEvents<DataGridTableFilterToStore<Item, Filter>>>, store?: DataGridStore<Item>) => void;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
import type { DataGridItem } from '../../entities';
|
|
1
2
|
import type { DataGridStore } from '../../store';
|
|
2
|
-
export declare const useDataGridFilters: <Item extends
|
|
3
|
+
export declare const useDataGridFilters: <Item extends DataGridItem>(store?: DataGridStore<Item>) => import("..").DataGridStoreFilters<Item>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { UseEventBusEventsSubscribes } from '../../../shared';
|
|
2
|
+
import type { DataGridItem } from '../../entities';
|
|
2
3
|
import type { DataGridStore } from '../../store';
|
|
3
4
|
import type { DataGridStoreFiltersEvents } from '../store/types';
|
|
4
|
-
export declare const useDataGridFiltersEvents: <Item extends
|
|
5
|
+
export declare const useDataGridFiltersEvents: <Item extends DataGridItem>(subscribes: UseEventBusEventsSubscribes<DataGridStoreFiltersEvents<Item>>, store?: DataGridStore<Item>) => void;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { EventBus } from '../../../../shared';
|
|
2
|
-
import type { DataGridStoreColumn } from '../../../column';
|
|
3
2
|
import type { DataGridItem } from '../../../entities';
|
|
4
3
|
import type { DataGridStore } from '../../../store';
|
|
5
4
|
import type { DataGridFilterGroup } from '../../entities';
|
|
@@ -9,7 +8,6 @@ export declare abstract class DataGridStoreFilter<Item extends DataGridItem, Val
|
|
|
9
8
|
id: string;
|
|
10
9
|
protected rawName: string | null;
|
|
11
10
|
protected context: DataGridStore<Item>;
|
|
12
|
-
column: DataGridStoreColumn<Item> | null;
|
|
13
11
|
group: DataGridFilterGroup;
|
|
14
12
|
abstract value: Value;
|
|
15
13
|
abstract localValue: Value;
|
|
@@ -31,7 +29,6 @@ export declare abstract class DataGridStoreFilter<Item extends DataGridItem, Val
|
|
|
31
29
|
setValueByType(value: Value, type: DataGridStoreFilterValueType): void;
|
|
32
30
|
valueByType(type: DataGridStoreFilterValueType): Value;
|
|
33
31
|
setGroup(group: DataGridFilterGroup): void;
|
|
34
|
-
setColumn(column: DataGridStoreColumn<Item>): void;
|
|
35
32
|
get isEditedLocal(): boolean;
|
|
36
33
|
get isEditedAllFilter(): boolean;
|
|
37
34
|
abstract isEqualValues(value1: Value, value2: Value): boolean;
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import type { DataGridColumn } from '../../../column';
|
|
2
1
|
import type { DataGridItem } from '../../../entities';
|
|
3
2
|
import type { DataGridFilterGroup } from '../../entities';
|
|
4
3
|
import type { DataGridTableFilterParams, DataGridTableFilterRender } from './types';
|
|
5
4
|
export declare abstract class DataGridTableFilter<Item extends DataGridItem, Render extends DataGridTableFilterRender<Item, any> = DataGridTableFilterRender<Item, any>> {
|
|
6
5
|
id: string;
|
|
7
6
|
name: string | null;
|
|
8
|
-
readonly column: DataGridColumn<Item> | null;
|
|
9
7
|
group: DataGridFilterGroup;
|
|
10
8
|
render: Render | null;
|
|
11
|
-
constructor({ id,
|
|
9
|
+
constructor({ id, name, group, render, }: DataGridTableFilterParams<Item, Render>);
|
|
12
10
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
|
-
import type { DataGridColumn } from '../../../column';
|
|
3
2
|
import type { DataGridItem } from '../../../entities';
|
|
4
3
|
import type { DataGridStore } from '../../../store';
|
|
5
4
|
import type { DataGridFilterGroup } from '../../entities';
|
|
@@ -13,6 +12,5 @@ export type DataGridTableFilterParams<Item extends DataGridItem, Render extends
|
|
|
13
12
|
id: string;
|
|
14
13
|
group?: DataGridFilterGroup;
|
|
15
14
|
name?: string;
|
|
16
|
-
column?: DataGridColumn<Item>;
|
|
17
15
|
render?: Render;
|
|
18
16
|
};
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
import type { DataGridItem } from '../../entities';
|
|
1
2
|
import type { DataGridStore } from '../../store';
|
|
2
|
-
export declare const useDataGridPagination: <Item extends
|
|
3
|
+
export declare const useDataGridPagination: <Item extends DataGridItem>(store?: DataGridStore<Item>) => import("..").DataGridStorePagination<Item>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { UseEventBusEventsSubscribes } from '../../../shared';
|
|
2
|
+
import type { DataGridItem } from '../../entities';
|
|
2
3
|
import type { DataGridStore } from '../../store';
|
|
3
4
|
import type { DataGridStorePaginationEvents } from '../store';
|
|
4
|
-
export declare const useDataGridPaginationEvents: <Item extends
|
|
5
|
+
export declare const useDataGridPaginationEvents: <Item extends DataGridItem>(subscribes: UseEventBusEventsSubscribes<DataGridStorePaginationEvents>, store?: DataGridStore<Item>) => void;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
import type { DataGridItem } from '../../entities';
|
|
1
2
|
import type { DataGridStore } from '../../store';
|
|
2
|
-
export declare const useDataGridSelection: <Item extends
|
|
3
|
+
export declare const useDataGridSelection: <Item extends DataGridItem>(store?: DataGridStore<Item>) => import("..").DataGridStoreSelection<Item>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { UseEventBusEventsSubscribes } from '../../../shared';
|
|
2
|
+
import type { DataGridItem } from '../../entities';
|
|
2
3
|
import type { DataGridStore } from '../../store';
|
|
3
4
|
import type { DataGridStoreSelectionEvents } from '../store';
|
|
4
|
-
export declare const useDataGridSelectionEvents: <Item extends
|
|
5
|
+
export declare const useDataGridSelectionEvents: <Item extends DataGridItem>(subscribes: UseEventBusEventsSubscribes<DataGridStoreSelectionEvents>, store?: DataGridStore<Item>) => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { DataGridData } from '../../entities';
|
|
1
|
+
import type { DataGridData, DataGridItem } from '../../entities';
|
|
2
2
|
import type { DataGridTable } from '../../table';
|
|
3
3
|
import { DataGridStore } from '../DataGridStore';
|
|
4
|
-
export declare const useDataGridCreateStore: <Item extends
|
|
4
|
+
export declare const useDataGridCreateStore: <Item extends DataGridItem>(table: DataGridTable<Item>, data: DataGridData<Item>, onCreate?: (store: DataGridStore<Item>) => void) => DataGridStore<Item>;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import type { DataGridItem } from '../../entities';
|
|
2
|
+
export declare const useDataGridStore: <Item extends DataGridItem>() => import("..").DataGridStore<Item>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { UseEventBusEventsSubscribes } from '../../../shared';
|
|
2
|
+
import type { DataGridItem } from '../../entities';
|
|
2
3
|
import type { DataGridStore } from '../DataGridStore';
|
|
3
4
|
import type { DataGridStoreEvents } from '../entities';
|
|
4
|
-
export declare const useDataGridStoreEvents: <Item extends
|
|
5
|
+
export declare const useDataGridStoreEvents: <Item extends DataGridItem>(subscribes: UseEventBusEventsSubscribes<DataGridStoreEvents<Item>>, store?: DataGridStore<Item>) => void;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { DataGridItem } from '../../entities';
|
|
3
|
+
import type { DataGridStoreSubRow } from '../store/sub-row';
|
|
4
|
+
export type DataGridSubRowRender<Item extends DataGridItem> = (params: {
|
|
5
|
+
item: Item;
|
|
6
|
+
index: number;
|
|
7
|
+
subRow: DataGridStoreSubRow<Item>;
|
|
8
|
+
}) => ReactNode;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { DataGridItem } from '../../entities';
|
|
1
2
|
import type { DataGridStore } from '../../store';
|
|
2
3
|
import type { DataGridSubRow } from '../table';
|
|
3
|
-
export declare const useDataGridSubRow: <Item extends
|
|
4
|
+
export declare const useDataGridSubRow: <Item extends DataGridItem>(subRow: DataGridSubRow<Item>, store?: DataGridStore<Item>) => import("..").DataGridStoreSubRow<Item>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { UseEventBusEventsSubscribes } from '../../../shared';
|
|
2
|
+
import type { DataGridItem } from '../../entities';
|
|
2
3
|
import type { DataGridStore } from '../../store';
|
|
3
4
|
import type { DataGridStoreSubRowEvents } from '../store';
|
|
4
5
|
import type { DataGridSubRow } from '../table';
|
|
5
|
-
export declare const useDataGridSubRowEvents: <Item extends
|
|
6
|
+
export declare const useDataGridSubRowEvents: <Item extends DataGridItem>(subRow: DataGridSubRow<Item>, subscribes: UseEventBusEventsSubscribes<DataGridStoreSubRowEvents<Item>>, store?: DataGridStore<Item>) => void;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
import type { DataGridItem } from '../../entities';
|
|
1
2
|
import type { DataGridStore } from '../../store';
|
|
2
|
-
export declare const useDataGridSubRows: <Item extends
|
|
3
|
+
export declare const useDataGridSubRows: <Item extends DataGridItem>(store?: DataGridStore<Item>) => import("..").DataGridStoreSubRows<Item>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { UseEventBusEventsSubscribes } from '../../../shared';
|
|
2
|
+
import type { DataGridItem } from '../../entities';
|
|
2
3
|
import type { DataGridStore } from '../../store';
|
|
3
4
|
import type { DataGridStoreSubRowsEvents } from '../store';
|
|
4
|
-
export declare const useDataGridSubRowsEvents: <Item extends
|
|
5
|
+
export declare const useDataGridSubRowsEvents: <Item extends DataGridItem>(subscribes: UseEventBusEventsSubscribes<DataGridStoreSubRowsEvents<Item>>, store?: DataGridStore<Item>) => void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { ReactNode } from 'react';
|
|
2
1
|
import { EventBus } from '../../../../shared';
|
|
3
2
|
import type { DataGridItem } from '../../../entities';
|
|
4
3
|
import type { DataGridStore } from '../../../store';
|
|
4
|
+
import type { DataGridSubRowRender } from '../../entities';
|
|
5
5
|
import type { DataGridSubRow } from '../../table';
|
|
6
6
|
import type { DataGridStoreSubRowEvents } from './types';
|
|
7
7
|
export declare class DataGridStoreSubRow<Item extends DataGridItem> {
|
|
@@ -9,7 +9,7 @@ export declare class DataGridStoreSubRow<Item extends DataGridItem> {
|
|
|
9
9
|
root: DataGridStoreSubRow<Item> | null;
|
|
10
10
|
rows: DataGridStoreSubRow<Item>[];
|
|
11
11
|
expandedByRowId: Record<string, boolean>;
|
|
12
|
-
render:
|
|
12
|
+
render: DataGridSubRowRender<Item>;
|
|
13
13
|
context: DataGridStore<Item>;
|
|
14
14
|
eventBus: EventBus<DataGridStoreSubRowEvents<Item>>;
|
|
15
15
|
private readonly getIsVisible;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type { ReactNode } from 'react';
|
|
2
1
|
import type { DataGridItem } from '../../entities';
|
|
2
|
+
import type { DataGridSubRowRender } from '../entities';
|
|
3
3
|
import type { DataGridSubRowParams } from './types';
|
|
4
4
|
export declare class DataGridSubRow<Item extends DataGridItem> {
|
|
5
5
|
rawId: string;
|
|
6
6
|
root: DataGridSubRow<Item> | null;
|
|
7
7
|
subRows: DataGridSubRow<Item>[];
|
|
8
|
-
render:
|
|
8
|
+
render: DataGridSubRowRender<Item>;
|
|
9
9
|
isVisible: (item: Item, index: number) => boolean;
|
|
10
10
|
constructor({ id, render, isVisible }: DataGridSubRowParams<Item>);
|
|
11
11
|
get id(): string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { ReactNode } from 'react';
|
|
2
1
|
import type { DataGridItem } from '../../entities';
|
|
2
|
+
import type { DataGridSubRowRender } from '../entities';
|
|
3
3
|
export type DataGridSubRowParams<Item extends DataGridItem> = {
|
|
4
4
|
id: string;
|
|
5
|
-
render:
|
|
5
|
+
render: DataGridSubRowRender<Item>;
|
|
6
6
|
isVisible?: (item: Item, index: number) => boolean;
|
|
7
7
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import type { DataGridItem } from '../../core';
|
|
2
3
|
import type { DataGridProps } from './types';
|
|
3
4
|
import './components/DataGridWrapper/DataGridWrapper.css';
|
|
4
5
|
import './components/DataGridPagination/DataGridPagination.css';
|
|
@@ -20,4 +21,4 @@ import '../footer/DataGridFooterContainer/DataGridFooterContainer.css';
|
|
|
20
21
|
import '../footer/DataGridSelectionFooter/DataGridSelectionFooter.css';
|
|
21
22
|
import './DataGrid.css';
|
|
22
23
|
export declare const cnDataGrid: import("@bem-react/classname").ClassNameFormatter;
|
|
23
|
-
export declare const DataGrid: <Item extends
|
|
24
|
+
export declare const DataGrid: <Item extends DataGridItem>({ store, actions, layout, subControlsBefore, subControlsAfter, className, allFiltersDrawer, settingsDrawer, paginationBeforeText, paginationAfterText, stickyHeader, loading, empty, clearFiltersText, applyFiltersText, footer, overflow, refs, }: DataGridProps<Item>) => React.JSX.Element;
|
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
export declare const DataGridAllFiltersDrawer: React.MemoExoticComponent<React.ForwardRefExoticComponent<(Omit<{
|
|
3
|
+
title: string;
|
|
4
|
+
subTitle?: string;
|
|
5
|
+
closeButton: string;
|
|
6
|
+
applyButton: string;
|
|
7
|
+
} & Omit<import("@ozen-ui/kit/DrawerNext").DrawerDeviceTypeProps<"mobile">, "children" | "open"> & React.RefAttributes<HTMLDivElement>, "ref"> | Omit<{
|
|
8
|
+
title: string;
|
|
9
|
+
subTitle?: string;
|
|
10
|
+
closeButton: string;
|
|
11
|
+
applyButton: string;
|
|
12
|
+
} & Omit<import("@ozen-ui/kit/DrawerNext").DrawerDeviceTypeProps<"desktop">, "children" | "open"> & React.RefAttributes<HTMLDivElement>, "ref"> | Omit<{
|
|
13
|
+
title: string;
|
|
14
|
+
subTitle?: string;
|
|
15
|
+
closeButton: string;
|
|
16
|
+
applyButton: string;
|
|
17
|
+
} & Omit<import("@ozen-ui/kit/DrawerNext").DrawerDeviceTypeProps<undefined>, "children" | "open"> & React.RefAttributes<HTMLDivElement>, "ref">) & React.RefAttributes<HTMLDivElement>>>;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import type { DrawerRef, DrawerOmittedProps } from "@ozen-ui/kit/DrawerNext";
|
|
2
|
+
export type DataGridAllFiltersDrawerRef = DrawerRef;
|
|
1
3
|
export type DataGridAllFiltersDrawerProps = {
|
|
2
4
|
title: string;
|
|
3
5
|
subTitle?: string;
|
|
4
6
|
closeButton: string;
|
|
5
7
|
applyButton: string;
|
|
6
|
-
}
|
|
8
|
+
} & DrawerOmittedProps<'children' | 'open'>;
|
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
export declare const DataGridSettingsDrawer: React.MemoExoticComponent<React.ForwardRefExoticComponent<(Omit<{
|
|
3
|
+
title: string;
|
|
4
|
+
subTitle?: string;
|
|
5
|
+
closeButton: string;
|
|
6
|
+
applyButton: string;
|
|
7
|
+
open?: never;
|
|
8
|
+
children?: never;
|
|
9
|
+
} & Omit<import("@ozen-ui/kit/DrawerNext").DrawerDeviceTypeProps<"mobile">, "children" | "open"> & React.RefAttributes<HTMLDivElement>, "ref"> | Omit<{
|
|
10
|
+
title: string;
|
|
11
|
+
subTitle?: string;
|
|
12
|
+
closeButton: string;
|
|
13
|
+
applyButton: string;
|
|
14
|
+
open?: never;
|
|
15
|
+
children?: never;
|
|
16
|
+
} & Omit<import("@ozen-ui/kit/DrawerNext").DrawerDeviceTypeProps<"desktop">, "children" | "open"> & React.RefAttributes<HTMLDivElement>, "ref"> | Omit<{
|
|
17
|
+
title: string;
|
|
18
|
+
subTitle?: string;
|
|
19
|
+
closeButton: string;
|
|
20
|
+
applyButton: string;
|
|
21
|
+
open?: never;
|
|
22
|
+
children?: never;
|
|
23
|
+
} & Omit<import("@ozen-ui/kit/DrawerNext").DrawerDeviceTypeProps<undefined>, "children" | "open"> & React.RefAttributes<HTMLDivElement>, "ref">) & React.RefAttributes<HTMLDivElement>>>;
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
+
import type { DrawerOmittedProps, DrawerRef } from "@ozen-ui/kit/DrawerNext";
|
|
2
|
+
export type DataGridSettingsDrawerRef = DrawerRef;
|
|
1
3
|
export type DataGridSettingsDrawerProps = {
|
|
2
4
|
title: string;
|
|
3
5
|
subTitle?: string;
|
|
4
6
|
closeButton: string;
|
|
5
7
|
applyButton: string;
|
|
6
|
-
|
|
8
|
+
open?: never;
|
|
9
|
+
children?: never;
|
|
10
|
+
} & DrawerOmittedProps<'children' | 'open'>;
|