@orient-ai/aurora-ui 1.0.0-alpha.11 → 1.0.0-alpha.12
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/dist/components/BulkEdit/componnets/BulkSet/BulkSet.d.ts +7 -8
- package/dist/components/BulkEdit/componnets/BulkSet/BulkSet.d.ts.map +1 -1
- package/dist/components/BulkEdit/componnets/Grid/Grid.d.ts +0 -18
- package/dist/components/BulkEdit/componnets/Grid/Grid.d.ts.map +1 -1
- package/dist/components/BulkEdit/componnets/Grid/index.d.ts +0 -2
- package/dist/components/BulkEdit/componnets/Grid/index.d.ts.map +1 -1
- package/dist/components/BulkEdit/componnets/Grid/types.d.ts +10 -7
- package/dist/components/BulkEdit/componnets/Grid/types.d.ts.map +1 -1
- package/dist/components/BulkEdit/componnets/Input/Input.d.ts +17 -8
- package/dist/components/BulkEdit/componnets/Input/Input.d.ts.map +1 -1
- package/dist/components/BulkEdit/hooks/index.d.ts +0 -2
- package/dist/components/BulkEdit/hooks/index.d.ts.map +1 -1
- package/dist/components/BulkEdit/hooks/useGridEditing.d.ts +0 -36
- package/dist/components/BulkEdit/hooks/useGridEditing.d.ts.map +1 -1
- package/dist/components/BulkEdit/hooks/useGridTable.d.ts +0 -11
- package/dist/components/BulkEdit/hooks/useGridTable.d.ts.map +1 -1
- package/dist/components/BulkEdit/hooks/useGridVirtualizer.d.ts +1 -0
- package/dist/components/BulkEdit/hooks/useGridVirtualizer.d.ts.map +1 -0
- package/dist/components/BulkEdit/index.d.ts +0 -20
- package/dist/components/BulkEdit/index.d.ts.map +1 -1
- package/dist/components/BulkEdit/utils/clipboard.d.ts +0 -4
- package/dist/components/BulkEdit/utils/clipboard.d.ts.map +1 -1
- package/dist/components/BulkEdit/utils/editing.d.ts +1 -19
- package/dist/components/BulkEdit/utils/editing.d.ts.map +1 -1
- package/dist/components/BulkEdit/utils/table.d.ts +1 -2
- package/dist/components/BulkEdit/utils/table.d.ts.map +1 -1
- package/dist/components/BulkEdit/utils/types.d.ts +6 -2
- package/dist/components/BulkEdit/utils/types.d.ts.map +1 -1
- package/dist/components/BulkEdit/utils/updates.d.ts +0 -3
- package/dist/components/BulkEdit/utils/updates.d.ts.map +1 -1
- package/dist/components/Collection/Grid/Grid.d.ts +6 -0
- package/dist/components/Collection/Grid/Grid.d.ts.map +1 -0
- package/dist/components/Collection/Grid/componnets/GridCell/GridCell.d.ts +18 -0
- package/dist/components/Collection/Grid/componnets/GridCell/GridCell.d.ts.map +1 -0
- package/dist/components/Collection/Grid/componnets/GridCell/index.d.ts +3 -0
- package/dist/components/Collection/Grid/componnets/GridCell/index.d.ts.map +1 -0
- package/dist/components/Collection/Grid/hooks/index.d.ts +2 -0
- package/dist/components/Collection/Grid/hooks/index.d.ts.map +1 -0
- package/dist/components/Collection/Grid/hooks/useGrid.d.ts +330 -0
- package/dist/components/Collection/Grid/hooks/useGrid.d.ts.map +1 -0
- package/dist/components/Collection/Grid/hooks/useGridColumnResizing.d.ts +15 -0
- package/dist/components/Collection/Grid/hooks/useGridColumnResizing.d.ts.map +1 -0
- package/dist/components/Collection/Grid/hooks/useGridDragSelection.d.ts +11 -0
- package/dist/components/Collection/Grid/hooks/useGridDragSelection.d.ts.map +1 -0
- package/dist/components/Collection/Grid/hooks/useGridSelection.d.ts +19 -0
- package/dist/components/Collection/Grid/hooks/useGridSelection.d.ts.map +1 -0
- package/dist/components/Collection/Grid/hooks/useGridVirtualizer.d.ts +11 -0
- package/dist/components/Collection/Grid/hooks/useGridVirtualizer.d.ts.map +1 -0
- package/dist/components/Collection/Grid/index.d.ts +6 -0
- package/dist/components/Collection/Grid/index.d.ts.map +1 -0
- package/dist/components/Collection/Grid/types.d.ts +18 -0
- package/dist/components/Collection/Grid/types.d.ts.map +1 -0
- package/dist/components/Collection/Pagination/Pagination.d.ts +12 -0
- package/dist/components/Collection/Pagination/Pagination.d.ts.map +1 -0
- package/dist/components/Collection/Pagination/index.d.ts.map +1 -0
- package/dist/components/Collection/Report/Report.d.ts +5 -0
- package/dist/components/Collection/Report/Report.d.ts.map +1 -0
- package/dist/components/Collection/Report/hooks/index.d.ts +2 -0
- package/dist/components/Collection/Report/hooks/index.d.ts.map +1 -0
- package/dist/components/Collection/Report/hooks/useColumnResizing.d.ts +19 -0
- package/dist/components/Collection/Report/hooks/useColumnResizing.d.ts.map +1 -0
- package/dist/components/Collection/Report/index.d.ts +3 -0
- package/dist/components/Collection/Report/index.d.ts.map +1 -0
- package/dist/components/Collection/Report/types.d.ts +12 -0
- package/dist/components/Collection/Report/types.d.ts.map +1 -0
- package/dist/components/Collection/Table/Table.d.ts +17 -0
- package/dist/components/Collection/Table/Table.d.ts.map +1 -0
- package/dist/components/Collection/Table/componnets/BulkActions/BulkActions.d.ts +13 -0
- package/dist/components/Collection/Table/componnets/BulkActions/BulkActions.d.ts.map +1 -0
- package/dist/components/Collection/Table/componnets/BulkActions/index.d.ts.map +1 -0
- package/dist/components/Collection/Table/index.d.ts +3 -0
- package/dist/components/Collection/Table/index.d.ts.map +1 -0
- package/dist/components/Collection/types.d.ts +10 -0
- package/dist/components/Collection/types.d.ts.map +1 -0
- package/dist/components/Collection/utils.d.ts +2 -0
- package/dist/components/Collection/utils.d.ts.map +1 -0
- package/dist/components/Combobox/Combobox.d.ts +3 -2
- package/dist/components/Combobox/Combobox.d.ts.map +1 -1
- package/dist/components/DateField/DateField.d.ts.map +1 -1
- package/dist/components/DatePicker/components/Month/Month.d.ts.map +1 -1
- package/dist/components/DatePicker/utils.d.ts +0 -2
- package/dist/components/DatePicker/utils.d.ts.map +1 -1
- package/dist/components/Filters/Date/Date.d.ts.map +1 -1
- package/dist/components/Filters/Select/Select.d.ts +2 -2
- package/dist/components/Filters/Select/Select.d.ts.map +1 -1
- package/dist/components/Filters/components/Filter/Filter.d.ts +9 -0
- package/dist/components/Filters/components/Filter/Filter.d.ts.map +1 -0
- package/dist/components/Filters/components/Filter/index.d.ts +2 -0
- package/dist/components/Filters/components/Filter/index.d.ts.map +1 -0
- package/dist/components/Filters/components/Trigger/Trigger.d.ts +3 -3
- package/dist/components/Filters/components/Trigger/Trigger.d.ts.map +1 -1
- package/dist/components/Frame/Frame.d.ts +1 -1
- package/dist/components/Frame/Frame.d.ts.map +1 -1
- package/dist/components/Frame/components/Navigation/index.d.ts +7 -1
- package/dist/components/Frame/components/Navigation/index.d.ts.map +1 -1
- package/dist/components/Frame/components/Viewport/Viewport.d.ts.map +1 -1
- package/dist/components/Frame/index.d.ts +0 -1
- package/dist/components/Frame/index.d.ts.map +1 -1
- package/dist/components/InputBase/InputBase.d.ts +3 -10
- package/dist/components/InputBase/InputBase.d.ts.map +1 -1
- package/dist/components/Labelled/Labelled.d.ts +1 -2
- package/dist/components/Labelled/Labelled.d.ts.map +1 -1
- package/dist/components/MultiSelect/MultipleSelect.d.ts +2 -2
- package/dist/components/MultiSelect/MultipleSelect.d.ts.map +1 -1
- package/dist/components/Page/Page.d.ts +2 -6
- package/dist/components/Page/Page.d.ts.map +1 -1
- package/dist/components/Page/components/Page/Page.d.ts +7 -0
- package/dist/components/Page/components/Page/Page.d.ts.map +1 -0
- package/dist/components/Page/components/Page/index.d.ts +2 -0
- package/dist/components/Page/components/Page/index.d.ts.map +1 -0
- package/dist/components/Page/components/Surface/Surface.d.ts +9 -0
- package/dist/components/Page/components/Surface/Surface.d.ts.map +1 -0
- package/dist/components/Page/components/Surface/index.d.ts +2 -0
- package/dist/components/Page/components/Surface/index.d.ts.map +1 -0
- package/dist/components/Page/context.d.ts +24 -0
- package/dist/components/Page/context.d.ts.map +1 -0
- package/dist/components/Page/index.d.ts +1 -0
- package/dist/components/Page/index.d.ts.map +1 -1
- package/dist/components/Page/utils.d.ts +8 -0
- package/dist/components/Page/utils.d.ts.map +1 -0
- package/dist/components/{IndexTable/Toolbar → Toolbar}/Toolbar.d.ts +7 -7
- package/dist/components/Toolbar/Toolbar.d.ts.map +1 -0
- package/dist/components/{IndexTable/Toolbar → Toolbar}/components/ColumnButton/ColumnButton.d.ts +2 -2
- package/dist/components/Toolbar/components/ColumnButton/ColumnButton.d.ts.map +1 -0
- package/dist/components/Toolbar/components/ColumnButton/index.d.ts.map +1 -0
- package/dist/components/Toolbar/components/Filter/Filter.d.ts.map +1 -0
- package/dist/components/Toolbar/components/Filter/index.d.ts.map +1 -0
- package/dist/components/Toolbar/components/SaveView/SaveView.d.ts.map +1 -0
- package/dist/components/Toolbar/components/SaveView/index.d.ts.map +1 -0
- package/dist/components/{IndexTable/Toolbar → Toolbar}/components/SortAndColumns/SortAndColumns.d.ts +1 -1
- package/dist/components/Toolbar/components/SortAndColumns/SortAndColumns.d.ts.map +1 -0
- package/dist/components/Toolbar/components/SortAndColumns/index.d.ts.map +1 -0
- package/dist/components/Toolbar/index.d.ts.map +1 -0
- package/dist/components/{IndexTable → Toolbar}/types.d.ts +1 -6
- package/dist/components/Toolbar/types.d.ts.map +1 -0
- package/dist/index.cjs +1 -2
- package/dist/index.css +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5694 -7002
- package/dist/lib/index.d.ts +3 -0
- package/dist/lib/index.d.ts.map +1 -0
- package/dist/lib/use-is-mobile.d.ts +4 -0
- package/dist/lib/use-is-mobile.d.ts.map +1 -0
- package/dist/lib/use-media-query.d.ts +3 -0
- package/dist/lib/use-media-query.d.ts.map +1 -0
- package/dist/locales/messages.json.d.ts +8 -0
- package/dist/utilities/i18n.d.ts +8 -3
- package/dist/utilities/i18n.d.ts.map +1 -1
- package/package.json +10 -3
- package/dist/components/BulkEdit/componnets/Combobox/Combobox.d.ts +0 -6
- package/dist/components/BulkEdit/componnets/Combobox/Combobox.d.ts.map +0 -1
- package/dist/components/BulkEdit/componnets/Combobox/index.d.ts +0 -2
- package/dist/components/BulkEdit/componnets/Combobox/index.d.ts.map +0 -1
- package/dist/components/BulkEdit/componnets/Grid/GridCellContext.d.ts +0 -10
- package/dist/components/BulkEdit/componnets/Grid/GridCellContext.d.ts.map +0 -1
- package/dist/components/BulkEdit/componnets/Popover/Popover.d.ts +0 -15
- package/dist/components/BulkEdit/componnets/Popover/Popover.d.ts.map +0 -1
- package/dist/components/BulkEdit/componnets/Popover/index.d.ts +0 -2
- package/dist/components/BulkEdit/componnets/Popover/index.d.ts.map +0 -1
- package/dist/components/BulkEdit/componnets/Toolbar/Toolbar.d.ts +0 -11
- package/dist/components/BulkEdit/componnets/Toolbar/Toolbar.d.ts.map +0 -1
- package/dist/components/BulkEdit/componnets/Toolbar/index.d.ts +0 -2
- package/dist/components/BulkEdit/componnets/Toolbar/index.d.ts.map +0 -1
- package/dist/components/Frame/context/FrameStackContext.d.ts +0 -21
- package/dist/components/Frame/context/FrameStackContext.d.ts.map +0 -1
- package/dist/components/IndexTable/DataTable/BulkActions/BulkActions.d.ts +0 -12
- package/dist/components/IndexTable/DataTable/BulkActions/BulkActions.d.ts.map +0 -1
- package/dist/components/IndexTable/DataTable/BulkActions/index.d.ts.map +0 -1
- package/dist/components/IndexTable/DataTable/DataTable.d.ts +0 -27
- package/dist/components/IndexTable/DataTable/DataTable.d.ts.map +0 -1
- package/dist/components/IndexTable/DataTable/Pagination/Pagination.d.ts +0 -15
- package/dist/components/IndexTable/DataTable/Pagination/Pagination.d.ts.map +0 -1
- package/dist/components/IndexTable/DataTable/Pagination/index.d.ts.map +0 -1
- package/dist/components/IndexTable/DataTable/index.d.ts +0 -4
- package/dist/components/IndexTable/DataTable/index.d.ts.map +0 -1
- package/dist/components/IndexTable/IndexTable.d.ts +0 -3
- package/dist/components/IndexTable/IndexTable.d.ts.map +0 -1
- package/dist/components/IndexTable/Toolbar/Toolbar.d.ts.map +0 -1
- package/dist/components/IndexTable/Toolbar/components/ColumnButton/ColumnButton.d.ts.map +0 -1
- package/dist/components/IndexTable/Toolbar/components/ColumnButton/index.d.ts.map +0 -1
- package/dist/components/IndexTable/Toolbar/components/Filter/Filter.d.ts.map +0 -1
- package/dist/components/IndexTable/Toolbar/components/Filter/index.d.ts.map +0 -1
- package/dist/components/IndexTable/Toolbar/components/SaveView/SaveView.d.ts.map +0 -1
- package/dist/components/IndexTable/Toolbar/components/SaveView/index.d.ts.map +0 -1
- package/dist/components/IndexTable/Toolbar/components/SortAndColumns/SortAndColumns.d.ts.map +0 -1
- package/dist/components/IndexTable/Toolbar/components/SortAndColumns/index.d.ts.map +0 -1
- package/dist/components/IndexTable/Toolbar/index.d.ts.map +0 -1
- package/dist/components/IndexTable/Toolbar/types.d.ts +0 -2
- package/dist/components/IndexTable/Toolbar/types.d.ts.map +0 -1
- package/dist/components/IndexTable/index.d.ts +0 -12
- package/dist/components/IndexTable/index.d.ts.map +0 -1
- package/dist/components/IndexTable/types.d.ts.map +0 -1
- package/dist/components/IndexTable/utils.d.ts +0 -5
- package/dist/components/IndexTable/utils.d.ts.map +0 -1
- package/dist/components/Report/Report.d.ts +0 -3
- package/dist/components/Report/Report.d.ts.map +0 -1
- package/dist/components/Report/index.d.ts +0 -3
- package/dist/components/Report/index.d.ts.map +0 -1
- package/dist/components/Report/types.d.ts +0 -63
- package/dist/components/Report/types.d.ts.map +0 -1
- package/dist/components/Report/useReportTable.d.ts +0 -8
- package/dist/components/Report/useReportTable.d.ts.map +0 -1
- /package/dist/components/{IndexTable/DataTable → Collection}/Pagination/index.d.ts +0 -0
- /package/dist/components/{IndexTable/DataTable → Collection/Table/componnets}/BulkActions/index.d.ts +0 -0
- /package/dist/components/{IndexTable/Toolbar → Toolbar}/components/ColumnButton/index.d.ts +0 -0
- /package/dist/components/{IndexTable/Toolbar → Toolbar}/components/Filter/Filter.d.ts +0 -0
- /package/dist/components/{IndexTable/Toolbar → Toolbar}/components/Filter/index.d.ts +0 -0
- /package/dist/components/{IndexTable/Toolbar → Toolbar}/components/SaveView/SaveView.d.ts +0 -0
- /package/dist/components/{IndexTable/Toolbar → Toolbar}/components/SaveView/index.d.ts +0 -0
- /package/dist/components/{IndexTable/Toolbar → Toolbar}/components/SortAndColumns/index.d.ts +0 -0
- /package/dist/components/{IndexTable/Toolbar → Toolbar}/index.d.ts +0 -0
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}): import('react').JSX.Element;
|
|
1
|
+
import { BulkEditColumn } from '../Grid/types';
|
|
2
|
+
export interface BulkSetProps<T> {
|
|
3
|
+
column: BulkEditColumn<T>;
|
|
4
|
+
onSubmit: (value: unknown) => string | undefined;
|
|
5
|
+
onClear?: () => void;
|
|
6
|
+
}
|
|
7
|
+
export declare function BulkSet<T>({ column, onSubmit }: BulkSetProps<T>): import('react').JSX.Element | null;
|
|
9
8
|
//# sourceMappingURL=BulkSet.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BulkSet.d.ts","sourceRoot":"","sources":["../../../../../src/components/BulkEdit/componnets/BulkSet/BulkSet.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"BulkSet.d.ts","sourceRoot":"","sources":["../../../../../src/components/BulkEdit/componnets/BulkSet/BulkSet.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAGpD,MAAM,WAAW,YAAY,CAAC,CAAC;IAC7B,MAAM,EAAE,cAAc,CAAC,CAAC,CAAC,CAAC;IAC1B,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,MAAM,GAAG,SAAS,CAAC;IACjD,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,wBAAgB,OAAO,CAAC,CAAC,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE,YAAY,CAAC,CAAC,CAAC,sCA+D/D"}
|
|
@@ -1,19 +1 @@
|
|
|
1
|
-
import { ComponentPropsWithRef, CSSProperties, Key } from 'react';
|
|
2
|
-
import { BulkEditColumn, BulkEditUpdate } from './types';
|
|
3
|
-
export interface BulkEditGridProps<T> extends Pick<ComponentPropsWithRef<'div'>, 'ref' | 'style' | 'className'> {
|
|
4
|
-
items: readonly T[];
|
|
5
|
-
columns: readonly BulkEditColumn<T>[];
|
|
6
|
-
getRowId: (item: T) => Key;
|
|
7
|
-
updates: BulkEditUpdate[];
|
|
8
|
-
onUpdatesChange: (updates: BulkEditUpdate[]) => void;
|
|
9
|
-
/** Ref for the selection toolbar and column header container. */
|
|
10
|
-
headerRef?: ComponentPropsWithRef<'div'>['ref'];
|
|
11
|
-
/** Style the selection toolbar and column header container from the surrounding layout. */
|
|
12
|
-
headerStyle?: CSSProperties;
|
|
13
|
-
/** Style body cells, including scroll margins for the surrounding layout. */
|
|
14
|
-
cellStyle?: CSSProperties;
|
|
15
|
-
/** Style the horizontal scrollbar rail from the surrounding layout. */
|
|
16
|
-
scrollbarStyle?: CSSProperties;
|
|
17
|
-
}
|
|
18
|
-
export declare function BulkEditGrid<T extends object>({ items, columns, getRowId, updates, onUpdatesChange, headerRef, headerStyle, cellStyle, scrollbarStyle, ref, style, className, }: BulkEditGridProps<T>): import('react').JSX.Element;
|
|
19
1
|
//# sourceMappingURL=Grid.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Grid.d.ts","sourceRoot":"","sources":["../../../../../src/components/BulkEdit/componnets/Grid/Grid.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Grid.d.ts","sourceRoot":"","sources":["../../../../../src/components/BulkEdit/componnets/Grid/Grid.tsx"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/BulkEdit/componnets/Grid/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/BulkEdit/componnets/Grid/index.ts"],"names":[],"mappings":""}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Key
|
|
1
|
+
import { Key } from 'react';
|
|
2
2
|
export interface BulkEditUpdate {
|
|
3
3
|
rowId: Key;
|
|
4
4
|
columnId: string;
|
|
@@ -20,7 +20,7 @@ export interface BulkEditColumn<T> {
|
|
|
20
20
|
id: string;
|
|
21
21
|
label: string;
|
|
22
22
|
/** Custom header content, such as a label with a help icon or currency. */
|
|
23
|
-
header?: ReactNode;
|
|
23
|
+
header?: React.ReactNode;
|
|
24
24
|
/** Initial width in pixels. */
|
|
25
25
|
width?: number;
|
|
26
26
|
minWidth?: number;
|
|
@@ -30,16 +30,19 @@ export interface BulkEditColumn<T> {
|
|
|
30
30
|
pinned?: boolean;
|
|
31
31
|
alignment?: 'start' | 'center' | 'end';
|
|
32
32
|
getValue?: (item: T) => unknown;
|
|
33
|
+
/** Allow value changes, including paste. Does not affect selection or copying. */
|
|
33
34
|
editable?: boolean | ((item: T) => boolean);
|
|
34
35
|
/** Opt in to Set all independently of range selection and paste. Defaults to false. */
|
|
35
36
|
bulkEditable?: boolean | ((item: T) => boolean);
|
|
37
|
+
/** Format a business value for the clipboard. */
|
|
36
38
|
formatClipboard?: (value: unknown, item: T) => string;
|
|
39
|
+
/** Convert Grid clipboard text to a business value for the target row. Used only during paste. */
|
|
37
40
|
parseClipboard?: (text: string, item: T) => unknown;
|
|
38
|
-
/** Return a message to reject
|
|
41
|
+
/** Return a message to reject a new edit, Set all or paste transaction. Skipped for undo and redo. */
|
|
39
42
|
validate?: (value: unknown, item: T) => string | undefined;
|
|
40
|
-
/** Set all editor. Emits business values directly;
|
|
41
|
-
renderBulkEditor?: (context: BulkEditValueContext) => ReactNode;
|
|
42
|
-
/** Render context.value for pending edits; item remains the original row.
|
|
43
|
-
renderCell: (item: T, index: number, context: BulkEditValueContext) => ReactNode;
|
|
43
|
+
/** Set all editor. Emits prepared business values directly; omitted editors have no Set all UI. */
|
|
44
|
+
renderBulkEditor?: (context: BulkEditValueContext) => React.ReactNode;
|
|
45
|
+
/** Render context.value for pending edits; item remains the original row. Columns with getValue support selection and copying regardless of editor type. */
|
|
46
|
+
renderCell: (item: T, index: number, context: BulkEditValueContext) => React.ReactNode;
|
|
44
47
|
}
|
|
45
48
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/BulkEdit/componnets/Grid/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/BulkEdit/componnets/Grid/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAEjC,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,GAAG,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,2DAA2D;IAC3D,aAAa,EAAE,OAAO,CAAC;IACvB,KAAK,EAAE,OAAO,CAAC;CAChB;AAED,MAAM,WAAW,oBAAoB;IACnC,uDAAuD;IACvD,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,+CAA+C;IAC/C,KAAK,EAAE,OAAO,CAAC;IACf,iEAAiE;IACjE,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,OAAO,CAAC;IACtC,0CAA0C;IAC1C,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,cAAc,CAAC,CAAC;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,2EAA2E;IAC3E,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,+BAA+B;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,0FAA0F;IAC1F,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC;IACvC,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,OAAO,CAAC;IAChC,kFAAkF;IAClF,QAAQ,CAAC,EAAE,OAAO,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,KAAK,OAAO,CAAC,CAAC;IAC5C,uFAAuF;IACvF,YAAY,CAAC,EAAE,OAAO,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,KAAK,OAAO,CAAC,CAAC;IAChD,iDAAiD;IACjD,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,KAAK,MAAM,CAAC;IACtD,kGAAkG;IAClG,cAAc,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,KAAK,OAAO,CAAC;IACpD,sGAAsG;IACtG,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,KAAK,MAAM,GAAG,SAAS,CAAC;IAC3D,mGAAmG;IACnG,gBAAgB,CAAC,EAAE,CAAC,OAAO,EAAE,oBAAoB,KAAK,KAAK,CAAC,SAAS,CAAC;IACtE,4JAA4J;IAC5J,UAAU,EAAE,CACV,IAAI,EAAE,CAAC,EACP,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,oBAAoB,KAC1B,KAAK,CAAC,SAAS,CAAC;CACtB"}
|
|
@@ -1,10 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { ReactElement, ReactNode } from 'react';
|
|
2
|
+
/** Grid field layout and visual state. Set native control props on children or render. */
|
|
3
|
+
export interface InputCellProps {
|
|
4
|
+
children: ReactElement<{
|
|
5
|
+
className?: string;
|
|
6
|
+
}>;
|
|
7
|
+
prefix?: ReactNode;
|
|
8
|
+
suffix?: ReactNode;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
readOnly?: boolean;
|
|
11
|
+
busy?: boolean;
|
|
12
|
+
/** Render the field shell, keeping its layout inside the interactive element. */
|
|
13
|
+
render?: (props: {
|
|
14
|
+
className: string;
|
|
15
|
+
children: ReactNode;
|
|
16
|
+
}) => ReactNode;
|
|
8
17
|
}
|
|
9
|
-
export declare function InputCell({
|
|
18
|
+
export declare function InputCell({ children, prefix, suffix, disabled, readOnly, busy, render, }: InputCellProps): import('react').JSX.Element;
|
|
10
19
|
//# sourceMappingURL=Input.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../../../src/components/BulkEdit/componnets/Input/Input.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../../../src/components/BulkEdit/componnets/Input/Input.tsx"],"names":[],"mappings":"AACA,OAAO,EAAgB,KAAK,YAAY,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAIxE,0FAA0F;AAC1F,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,YAAY,CAAC;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC/C,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,iFAAiF;IACjF,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,SAAS,CAAA;KAAE,KAAK,SAAS,CAAC;CAC3E;AAED,wBAAgB,SAAS,CAAC,EACxB,QAAQ,EACR,MAAM,EACN,MAAM,EACN,QAAgB,EAChB,QAAgB,EAChB,IAAY,EACZ,MAAM,GACP,EAAE,cAAc,+BAmChB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/BulkEdit/hooks/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/BulkEdit/hooks/index.ts"],"names":[],"mappings":""}
|
|
@@ -1,37 +1 @@
|
|
|
1
|
-
import { ClipboardEvent, KeyboardEvent, MouseEvent, RefObject } from 'react';
|
|
2
|
-
import { GridTable } from '../utils/table';
|
|
3
|
-
import { CellPoint, InputCellRegistry, UpdateIndex } from '../utils/types';
|
|
4
|
-
import { BulkEditGridProps } from '../componnets/Grid/Grid';
|
|
5
|
-
export declare function useGridEditing<T extends object>({ items, columns, getRowId, updates, onUpdatesChange, updatesByRow, inputCells, scrollRef, tableRef, table, direction, }: Pick<BulkEditGridProps<T>, 'items' | 'columns' | 'getRowId' | 'updates' | 'onUpdatesChange'> & {
|
|
6
|
-
updatesByRow: UpdateIndex;
|
|
7
|
-
inputCells: InputCellRegistry;
|
|
8
|
-
scrollRef: RefObject<HTMLDivElement | null>;
|
|
9
|
-
tableRef: RefObject<HTMLTableElement | null>;
|
|
10
|
-
table: GridTable<T>;
|
|
11
|
-
direction: 'ltr' | 'rtl';
|
|
12
|
-
}): {
|
|
13
|
-
active: CellPoint | null;
|
|
14
|
-
error: string;
|
|
15
|
-
selectedCount: number;
|
|
16
|
-
canUndo: boolean;
|
|
17
|
-
canRedo: boolean;
|
|
18
|
-
canRange: (point: CellPoint) => boolean;
|
|
19
|
-
changeCell: (point: CellPoint, value: unknown) => boolean;
|
|
20
|
-
selectColumn: (column: number) => void;
|
|
21
|
-
keyDown: (event: KeyboardEvent<HTMLTableCellElement>, point: CellPoint) => void;
|
|
22
|
-
mouseDown: (event: MouseEvent<HTMLTableCellElement>, point: CellPoint) => void;
|
|
23
|
-
doubleClick: (event: MouseEvent<HTMLTableCellElement>, point: CellPoint) => void;
|
|
24
|
-
mouseEnter: (point: CellPoint) => void;
|
|
25
|
-
copy: (event: ClipboardEvent<HTMLTableElement>) => void;
|
|
26
|
-
paste: (event: ClipboardEvent<HTMLTableElement>) => void;
|
|
27
|
-
focus: (point: CellPoint) => void;
|
|
28
|
-
undo: () => void;
|
|
29
|
-
redo: () => void;
|
|
30
|
-
columnCells: (column: number) => {
|
|
31
|
-
row: number;
|
|
32
|
-
column: number;
|
|
33
|
-
}[];
|
|
34
|
-
fillColumn: (column: number, value: unknown) => string | undefined;
|
|
35
|
-
shortcut: (event: KeyboardEvent<HTMLDivElement>) => void;
|
|
36
|
-
};
|
|
37
1
|
//# sourceMappingURL=useGridEditing.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useGridEditing.d.ts","sourceRoot":"","sources":["../../../../src/components/BulkEdit/hooks/useGridEditing.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useGridEditing.d.ts","sourceRoot":"","sources":["../../../../src/components/BulkEdit/hooks/useGridEditing.ts"],"names":[],"mappings":""}
|
|
@@ -1,12 +1 @@
|
|
|
1
|
-
import { GridTable } from '../utils/table';
|
|
2
|
-
import { UpdateIndex } from '../utils/types';
|
|
3
|
-
import { BulkEditGridProps } from '../componnets/Grid/Grid';
|
|
4
|
-
export declare function useGridTable<T extends object>({ items, columns, getRowId, updatesByRow, direction, }: Pick<BulkEditGridProps<T>, 'items' | 'columns' | 'getRowId'> & {
|
|
5
|
-
updatesByRow: UpdateIndex;
|
|
6
|
-
direction: 'ltr' | 'rtl';
|
|
7
|
-
}): {
|
|
8
|
-
table: GridTable<T>;
|
|
9
|
-
inputCells: ReadonlyMap<string, number>;
|
|
10
|
-
registerInput: (id: string) => () => void;
|
|
11
|
-
};
|
|
12
1
|
//# sourceMappingURL=useGridTable.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useGridTable.d.ts","sourceRoot":"","sources":["../../../../src/components/BulkEdit/hooks/useGridTable.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useGridTable.d.ts","sourceRoot":"","sources":["../../../../src/components/BulkEdit/hooks/useGridTable.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=useGridVirtualizer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useGridVirtualizer.d.ts","sourceRoot":"","sources":["../../../../src/components/BulkEdit/hooks/useGridVirtualizer.ts"],"names":[],"mappings":""}
|
|
@@ -1,21 +1 @@
|
|
|
1
|
-
import { BulkEditGrid } from './componnets/Grid';
|
|
2
|
-
import { BulkEditLayout } from './componnets/Layout';
|
|
3
|
-
import { BulkEditToolbar } from './componnets/Toolbar';
|
|
4
|
-
import { InputCell } from './componnets/Input';
|
|
5
|
-
import { ComboboxCell } from './componnets/Combobox';
|
|
6
|
-
import { PopoverCell } from './componnets/Popover';
|
|
7
|
-
export declare const BulkEdit: {
|
|
8
|
-
Layout: typeof BulkEditLayout;
|
|
9
|
-
Toolbar: typeof BulkEditToolbar;
|
|
10
|
-
Grid: typeof BulkEditGrid;
|
|
11
|
-
InputCell: typeof InputCell;
|
|
12
|
-
ComboboxCell: typeof ComboboxCell;
|
|
13
|
-
PopoverCell: typeof PopoverCell;
|
|
14
|
-
};
|
|
15
|
-
export * from './componnets/Grid';
|
|
16
|
-
export * from './componnets/Layout';
|
|
17
|
-
export * from './componnets/Toolbar';
|
|
18
|
-
export * from './componnets/Input';
|
|
19
|
-
export * from './componnets/Combobox';
|
|
20
|
-
export * from './componnets/Popover';
|
|
21
1
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/BulkEdit/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/BulkEdit/index.ts"],"names":[],"mappings":""}
|
|
@@ -5,9 +5,5 @@ export declare function selectionBounds(selection: CellSelection): {
|
|
|
5
5
|
left: number;
|
|
6
6
|
right: number;
|
|
7
7
|
};
|
|
8
|
-
export declare function copySelection<T>(data: EditData<T>, selection: CellSelection): string;
|
|
9
8
|
export declare function formatCell<T>(data: EditData<T>, point: CellPoint): string;
|
|
10
|
-
export declare function encodeTSV(rows: readonly (readonly string[])[]): string;
|
|
11
|
-
export declare function decodeTSV(text: string): string[][];
|
|
12
|
-
export declare function pasteChanges<T>(data: EditData<T>, selection: CellSelection, text: string): import('..').BulkEditUpdate[];
|
|
13
9
|
//# sourceMappingURL=clipboard.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clipboard.d.ts","sourceRoot":"","sources":["../../../../src/components/BulkEdit/utils/clipboard.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"clipboard.d.ts","sourceRoot":"","sources":["../../../../src/components/BulkEdit/utils/clipboard.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAGlE,wBAAgB,eAAe,CAAC,SAAS,EAAE,aAAa;;;;;EAOvD;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,SAAS,UAKhE"}
|
|
@@ -1,21 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { BulkEditColumn, BulkEditUpdate } from '../componnets/Grid/types';
|
|
3
|
-
import { CellPoint, EditData } from './types';
|
|
4
|
-
export declare function gridCellKey(rowId: Key, columnId: string): string;
|
|
1
|
+
import { BulkEditColumn } from '../componnets/Grid/types';
|
|
5
2
|
export declare function isEditable<T>(column: BulkEditColumn<T>, item: T): boolean;
|
|
6
|
-
export declare function isRangeEditable<T>(data: Pick<EditData<T>, 'getRowId' | 'inputCells'>, column: BulkEditColumn<T>, item: T): boolean;
|
|
7
|
-
export declare function isBulkEditable<T>(column: BulkEditColumn<T>, item: T): boolean;
|
|
8
|
-
export declare function bulkColumnCells<T>(data: EditData<T>, column: number): {
|
|
9
|
-
row: number;
|
|
10
|
-
column: number;
|
|
11
|
-
}[];
|
|
12
|
-
export declare function bulkColumnChanges<T>(data: EditData<T>, column: number, value: unknown): BulkEditUpdate[];
|
|
13
|
-
export declare function createChanges<T>(data: EditData<T>, cells: readonly (CellPoint & {
|
|
14
|
-
value: unknown;
|
|
15
|
-
})[], { parse, range, bulk }?: {
|
|
16
|
-
parse?: boolean | undefined;
|
|
17
|
-
range?: boolean | undefined;
|
|
18
|
-
bulk?: boolean | undefined;
|
|
19
|
-
}): BulkEditUpdate[];
|
|
20
|
-
export declare function historyChanges<T>(data: EditData<T>, changes: readonly BulkEditUpdate[], undo: boolean): BulkEditUpdate[];
|
|
21
3
|
//# sourceMappingURL=editing.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editing.d.ts","sourceRoot":"","sources":["../../../../src/components/BulkEdit/utils/editing.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"editing.d.ts","sourceRoot":"","sources":["../../../../src/components/BulkEdit/utils/editing.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE/D,wBAAgB,UAAU,CAAC,CAAC,EAAE,MAAM,EAAE,cAAc,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,WAO/D"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Cell, ColumnDef, ReactTable } from '@tanstack/react-table';
|
|
2
2
|
import { Key } from 'react';
|
|
3
3
|
import { BulkEditColumn } from '../componnets/Grid/types';
|
|
4
|
-
import { CellPoint, CellSelection,
|
|
4
|
+
import { CellPoint, CellSelection, UpdateIndex } from './types';
|
|
5
5
|
export declare const gridFeatures: {
|
|
6
6
|
cellSelectionFeature: import('@tanstack/react-table').TableFeature;
|
|
7
7
|
columnSizingFeature: import('@tanstack/react-table').TableFeature;
|
|
@@ -18,7 +18,6 @@ export declare function columnWidthBounds<T extends object>(column: BulkEditColu
|
|
|
18
18
|
max: number;
|
|
19
19
|
};
|
|
20
20
|
export declare function createGridColumns<T extends object>(columns: readonly BulkEditColumn<T>[], getRowId: (item: T) => Key, updatesByRow: UpdateIndex): ColumnDef<typeof gridFeatures, T>[];
|
|
21
|
-
export declare function canSelectGridCell<T extends object>(cell: GridCell<T>, data: Pick<EditData<T>, 'columns' | 'getRowId' | 'inputCells'>): boolean;
|
|
22
21
|
export declare function gridCellAt<T extends object>(table: GridTable<T>, point: CellPoint): Cell<{
|
|
23
22
|
cellSelectionFeature: import('@tanstack/react-table').TableFeature;
|
|
24
23
|
columnSizingFeature: import('@tanstack/react-table').TableFeature;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../../src/components/BulkEdit/utils/table.ts"],"names":[],"mappings":"AACA,OAAO,EAOL,KAAK,IAAI,EACT,KAAK,SAAS,EACd,KAAK,UAAU,EAChB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,
|
|
1
|
+
{"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../../src/components/BulkEdit/utils/table.ts"],"names":[],"mappings":"AACA,OAAO,EAOL,KAAK,IAAI,EACT,KAAK,SAAS,EACd,KAAK,UAAU,EAChB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAGrE,eAAO,MAAM,YAAY;;;;;;CAMvB,CAAC;AAEH,MAAM,MAAM,SAAS,CAAC,CAAC,SAAS,MAAM,IAAI,UAAU,CAAC,OAAO,YAAY,EAAE,CAAC,CAAC,CAAC;AAE7E,MAAM,MAAM,QAAQ,CAAC,CAAC,SAAS,MAAM,IAAI,IAAI,CAAC,OAAO,YAAY,EAAE,CAAC,CAAC,CAAC;AAEtE,wBAAgB,SAAS,CAAC,CAAC,EAAE,SAAS,GAAG,IAAI,EAAE,CAAC,EAAE,SAAS,GAAG,IAAI,WAEjE;AAED,wBAAgB,SAAS,CAAC,EAAE,EAAE,GAAG,UAGhC;AAED,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,MAAM,EAAE,MAAM,EAAE,cAAc,CAAC,CAAC,CAAC;;;EAG5E;AAED,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,MAAM,EAChD,OAAO,EAAE,SAAS,cAAc,CAAC,CAAC,CAAC,EAAE,EACrC,QAAQ,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,GAAG,EAC1B,YAAY,EAAE,WAAW,GACxB,SAAS,CAAC,OAAO,YAAY,EAAE,CAAC,CAAC,EAAE,CAerC;AAED,wBAAgB,UAAU,CAAC,CAAC,SAAS,MAAM,EACzC,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC,EACnB,KAAK,EAAE,SAAS;;;;;;eAGjB;AAED,wBAAgB,aAAa,CAAC,CAAC,SAAS,MAAM,EAC5C,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC,EACnB,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,GAChB,SAAS,CAKX;AAED,qFAAqF;AACrF,wBAAgB,aAAa,CAAC,CAAC,SAAS,MAAM,EAC5C,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC,GAClB,aAAa,CAef"}
|
|
@@ -1,17 +1,21 @@
|
|
|
1
1
|
import { Key } from 'react';
|
|
2
|
+
import { I18nTranslate } from '../../../utilities/i18n';
|
|
2
3
|
import { BulkEditColumn, BulkEditUpdate } from '../componnets/Grid/types';
|
|
3
4
|
export interface CellPoint {
|
|
4
5
|
row: number;
|
|
5
6
|
column: number;
|
|
6
7
|
}
|
|
8
|
+
export interface CellEdit extends CellPoint {
|
|
9
|
+
/** Prepared business value, after any source-specific text conversion. */
|
|
10
|
+
value: unknown;
|
|
11
|
+
}
|
|
7
12
|
export type CellSelection = readonly CellPoint[];
|
|
8
13
|
export interface EditData<T> {
|
|
9
14
|
items: readonly T[];
|
|
10
15
|
columns: readonly BulkEditColumn<T>[];
|
|
11
16
|
getRowId: (item: T) => Key;
|
|
12
17
|
updatesByRow: UpdateIndex;
|
|
13
|
-
|
|
18
|
+
translate: I18nTranslate;
|
|
14
19
|
}
|
|
15
20
|
export type UpdateIndex = ReadonlyMap<Key, ReadonlyMap<string, BulkEditUpdate>>;
|
|
16
|
-
export type InputCellRegistry = ReadonlyMap<string, number>;
|
|
17
21
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/BulkEdit/utils/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE/E,MAAM,WAAW,SAAS;IACxB,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,MAAM,aAAa,GAAG,SAAS,SAAS,EAAE,CAAC;AAEjD,MAAM,WAAW,QAAQ,CAAC,CAAC;IACzB,KAAK,EAAE,SAAS,CAAC,EAAE,CAAC;IACpB,OAAO,EAAE,SAAS,cAAc,CAAC,CAAC,CAAC,EAAE,CAAC;IACtC,QAAQ,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,GAAG,CAAC;IAC3B,YAAY,EAAE,WAAW,CAAC;IAC1B,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/BulkEdit/utils/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE/E,MAAM,WAAW,SAAS;IACxB,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,QAAS,SAAQ,SAAS;IACzC,0EAA0E;IAC1E,KAAK,EAAE,OAAO,CAAC;CAChB;AAED,MAAM,MAAM,aAAa,GAAG,SAAS,SAAS,EAAE,CAAC;AAEjD,MAAM,WAAW,QAAQ,CAAC,CAAC;IACzB,KAAK,EAAE,SAAS,CAAC,EAAE,CAAC;IACpB,OAAO,EAAE,SAAS,cAAc,CAAC,CAAC,CAAC,EAAE,CAAC;IACtC,QAAQ,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,GAAG,CAAC;IAC3B,YAAY,EAAE,WAAW,CAAC;IAC1B,SAAS,EAAE,aAAa,CAAC;CAC1B;AAED,MAAM,MAAM,WAAW,GAAG,WAAW,CAAC,GAAG,EAAE,WAAW,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC,CAAC"}
|
|
@@ -3,8 +3,5 @@ import { BulkEditColumn, BulkEditUpdate } from '../componnets/Grid/types';
|
|
|
3
3
|
import { EditData, UpdateIndex } from './types';
|
|
4
4
|
export declare function indexUpdates(updates: readonly BulkEditUpdate[]): Map<Key, Map<string, BulkEditUpdate>>;
|
|
5
5
|
export declare function sameUpdates(a: UpdateIndex, b: UpdateIndex): boolean;
|
|
6
|
-
export declare function sameBaseline<T>(a: EditData<T>, b: EditData<T>): boolean;
|
|
7
6
|
export declare function getCellValue<T>(data: Pick<EditData<T>, 'getRowId' | 'updatesByRow'>, column: BulkEditColumn<T>, item: T): unknown;
|
|
8
|
-
/** Merge a transaction into the complete draft, keeping values relative to the original items. */
|
|
9
|
-
export declare function mergeUpdates<T>(data: EditData<T>, updates: readonly BulkEditUpdate[], changes: readonly BulkEditUpdate[]): BulkEditUpdate[];
|
|
10
7
|
//# sourceMappingURL=updates.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updates.d.ts","sourceRoot":"","sources":["../../../../src/components/BulkEdit/utils/updates.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC/E,OAAO,KAAK,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAErD,wBAAgB,YAAY,CAAC,OAAO,EAAE,SAAS,cAAc,EAAE,yCAQ9D;AAED,wBAAgB,WAAW,CAAC,CAAC,EAAE,WAAW,EAAE,CAAC,EAAE,WAAW,WASzD;AAED,wBAAgB,YAAY,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"updates.d.ts","sourceRoot":"","sources":["../../../../src/components/BulkEdit/utils/updates.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC/E,OAAO,KAAK,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAErD,wBAAgB,YAAY,CAAC,OAAO,EAAE,SAAS,cAAc,EAAE,yCAQ9D;AAED,wBAAgB,WAAW,CAAC,CAAC,EAAE,WAAW,EAAE,CAAC,EAAE,WAAW,WASzD;AAED,wBAAgB,YAAY,CAAC,CAAC,EAC5B,IAAI,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,UAAU,GAAG,cAAc,CAAC,EACpD,MAAM,EAAE,cAAc,CAAC,CAAC,CAAC,EACzB,IAAI,EAAE,CAAC,WAIR"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { RowData } from '@tanstack/react-table';
|
|
2
|
+
import { Features } from '../types';
|
|
3
|
+
import { GridProps } from './types';
|
|
4
|
+
export type { GridProps } from './types';
|
|
5
|
+
export declare function Grid<TFeatures extends Features, TData extends RowData>(options: GridProps<TFeatures, TData>): import('react').JSX.Element;
|
|
6
|
+
//# sourceMappingURL=Grid.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Grid.d.ts","sourceRoot":"","sources":["../../../../src/components/Collection/Grid/Grid.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAMjE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAGzC,YAAY,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEzC,wBAAgB,IAAI,CAAC,SAAS,SAAS,QAAQ,EAAE,KAAK,SAAS,OAAO,EACpE,OAAO,EAAE,SAAS,CAAC,SAAS,EAAE,KAAK,CAAC,+BAkKrC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ComponentPropsWithRef, ReactNode } from 'react';
|
|
2
|
+
export type GridCellSelectionEdge = 'top' | 'bottom' | 'start' | 'end';
|
|
3
|
+
export interface GridCellProps extends Omit<ComponentPropsWithRef<'td'>, 'prefix'> {
|
|
4
|
+
/** Plain content or a single control receiving the cell's control class. */
|
|
5
|
+
children?: ReactNode;
|
|
6
|
+
prefix?: ReactNode;
|
|
7
|
+
suffix?: ReactNode;
|
|
8
|
+
selected?: boolean;
|
|
9
|
+
/** Visual state. Set readOnly or disabled on the child control separately. */
|
|
10
|
+
readOnly?: boolean;
|
|
11
|
+
selectionEdges?: readonly GridCellSelectionEdge[];
|
|
12
|
+
dirty?: boolean;
|
|
13
|
+
/** Shows a spinner without changing the child control's interaction. */
|
|
14
|
+
busy?: boolean;
|
|
15
|
+
error?: string;
|
|
16
|
+
}
|
|
17
|
+
export declare function GridCell({ selected, readOnly, selectionEdges, dirty, busy, error, className, children, prefix, suffix, ...props }: GridCellProps): import('react').JSX.Element;
|
|
18
|
+
//# sourceMappingURL=GridCell.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GridCell.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Collection/Grid/componnets/GridCell/GridCell.tsx"],"names":[],"mappings":"AACA,OAAO,EAIL,KAAK,qBAAqB,EAC1B,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAIf,MAAM,MAAM,qBAAqB,GAAG,KAAK,GAAG,QAAQ,GAAG,OAAO,GAAG,KAAK,CAAC;AAEvE,MAAM,WAAW,aAAc,SAAQ,IAAI,CACzC,qBAAqB,CAAC,IAAI,CAAC,EAC3B,QAAQ,CACT;IACC,4EAA4E;IAC5E,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,8EAA8E;IAC9E,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,cAAc,CAAC,EAAE,SAAS,qBAAqB,EAAE,CAAC;IAClD,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,wEAAwE;IACxE,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AASD,wBAAgB,QAAQ,CAAC,EACvB,QAAgB,EAChB,QAAQ,EACR,cAAkC,EAClC,KAAa,EACb,IAAI,EACJ,KAAK,EACL,SAAS,EACT,QAAQ,EACR,MAAM,EACN,MAAM,EACN,GAAG,KAAK,EACT,EAAE,aAAa,+BAqCf"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Collection/Grid/componnets/GridCell/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,YAAY,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Collection/Grid/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC"}
|