@dxos/react-ui-table 0.6.14-staging.e15392e → 0.7.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/dist/lib/browser/_deprecated/index.mjs +1483 -0
- package/dist/lib/browser/_deprecated/index.mjs.map +7 -0
- package/dist/lib/browser/chunk-A5W4XWPD.mjs +18 -0
- package/dist/lib/browser/chunk-A5W4XWPD.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +1275 -1356
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/types/index.mjs +7 -0
- package/dist/lib/browser/types/index.mjs.map +7 -0
- package/dist/lib/node/_deprecated/index.cjs +1511 -0
- package/dist/lib/node/_deprecated/index.cjs.map +7 -0
- package/dist/lib/node/chunk-32IGMRME.cjs +40 -0
- package/dist/lib/node/chunk-32IGMRME.cjs.map +7 -0
- package/dist/lib/node/index.cjs +1381 -0
- package/dist/lib/node/index.cjs.map +7 -0
- package/dist/lib/node/meta.json +1 -0
- package/dist/lib/node/types/index.cjs +29 -0
- package/dist/lib/node/types/index.cjs.map +7 -0
- package/dist/lib/node-esm/_deprecated/index.mjs +1485 -0
- package/dist/lib/node-esm/_deprecated/index.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-DWQ4KGLD.mjs +20 -0
- package/dist/lib/node-esm/chunk-DWQ4KGLD.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +1400 -0
- package/dist/lib/node-esm/index.mjs.map +7 -0
- package/dist/lib/node-esm/meta.json +1 -0
- package/dist/lib/node-esm/types/index.mjs +8 -0
- package/dist/lib/node-esm/types/index.mjs.map +7 -0
- package/dist/types/src/_deprecated/components/Cell/Cell.d.ts.map +1 -0
- package/dist/types/src/_deprecated/components/Cell/CellCombobox.d.ts.map +1 -0
- package/dist/types/src/_deprecated/components/Cell/index.d.ts.map +1 -0
- package/dist/types/src/_deprecated/components/ColumnMenu/ColumnMenu.d.ts.map +1 -0
- package/dist/types/src/_deprecated/components/ColumnMenu/ColumnMenu.stories.d.ts.map +1 -0
- package/dist/types/src/_deprecated/components/ColumnMenu/ColumnSettings.d.ts.map +1 -0
- package/dist/types/src/{components → _deprecated/components}/ColumnMenu/ColumnSettings.stories.d.ts +4 -4
- package/dist/types/src/_deprecated/components/ColumnMenu/ColumnSettings.stories.d.ts.map +1 -0
- package/dist/types/src/_deprecated/components/ColumnMenu/index.d.ts.map +1 -0
- package/dist/types/src/_deprecated/components/Table/Table.d.ts +20 -0
- package/dist/types/src/_deprecated/components/Table/Table.d.ts.map +1 -0
- package/dist/types/src/_deprecated/components/Table/Table.stories.d.ts +116 -0
- package/dist/types/src/_deprecated/components/Table/Table.stories.d.ts.map +1 -0
- package/dist/types/src/_deprecated/components/Table/TableBody.d.ts.map +1 -0
- package/dist/types/src/_deprecated/components/Table/TableContext.d.ts.map +1 -0
- package/dist/types/src/_deprecated/components/Table/TableHead.d.ts.map +1 -0
- package/dist/types/src/_deprecated/components/Table/TableRootContext.d.ts.map +1 -0
- package/dist/types/src/_deprecated/components/Table/index.d.ts +5 -0
- package/dist/types/src/_deprecated/components/Table/index.d.ts.map +1 -0
- package/dist/types/src/_deprecated/components/Table/props.d.ts.map +1 -0
- package/dist/types/src/_deprecated/components/index.d.ts +4 -0
- package/dist/types/src/_deprecated/components/index.d.ts.map +1 -0
- package/dist/types/src/_deprecated/helpers.d.ts.map +1 -0
- package/dist/types/src/_deprecated/hooks/index.d.ts +5 -0
- package/dist/types/src/_deprecated/hooks/index.d.ts.map +1 -0
- package/dist/types/src/_deprecated/hooks/useColumnSizing.d.ts.map +1 -0
- package/dist/types/src/{hooks → _deprecated/hooks}/useColumnSorting.d.ts +1 -1
- package/dist/types/src/_deprecated/hooks/useColumnSorting.d.ts.map +1 -0
- package/dist/types/src/_deprecated/hooks/usePinLastRow.d.ts.map +1 -0
- package/dist/types/src/_deprecated/hooks/useRowSelection.d.ts.map +1 -0
- package/dist/types/src/_deprecated/index.d.ts +8 -0
- package/dist/types/src/_deprecated/index.d.ts.map +1 -0
- package/dist/types/src/_deprecated/schema/Schema.stories.d.ts.map +1 -0
- package/dist/types/src/{schema → _deprecated/schema}/column-utils.d.ts +3 -0
- package/dist/types/src/_deprecated/schema/column-utils.d.ts.map +1 -0
- package/dist/types/src/_deprecated/schema/index.d.ts.map +1 -0
- package/dist/types/src/{schema → _deprecated/schema}/types.d.ts +3 -2
- package/dist/types/src/_deprecated/schema/types.d.ts.map +1 -0
- package/dist/types/src/_deprecated/theme.d.ts.map +1 -0
- package/dist/types/src/_deprecated/translations.d.ts +21 -0
- package/dist/types/src/_deprecated/translations.d.ts.map +1 -0
- package/dist/types/src/_deprecated/types.d.ts.map +1 -0
- package/dist/types/src/components/Table/ColumnActionsMenu.d.ts +8 -0
- package/dist/types/src/components/Table/ColumnActionsMenu.d.ts.map +1 -0
- package/dist/types/src/components/Table/ColumnSettings.d.ts +8 -0
- package/dist/types/src/components/Table/ColumnSettings.d.ts.map +1 -0
- package/dist/types/src/components/Table/RowActionsMenu.d.ts +8 -0
- package/dist/types/src/components/Table/RowActionsMenu.d.ts.map +1 -0
- package/dist/types/src/components/Table/Table.d.ts +11 -14
- package/dist/types/src/components/Table/Table.d.ts.map +1 -1
- package/dist/types/src/components/Table/Table.stories.d.ts +10 -113
- package/dist/types/src/components/Table/Table.stories.d.ts.map +1 -1
- package/dist/types/src/components/Table/index.d.ts +0 -3
- package/dist/types/src/components/Table/index.d.ts.map +1 -1
- package/dist/types/src/components/TableCellEditor/TableCellEditor.d.ts +17 -0
- package/dist/types/src/components/TableCellEditor/TableCellEditor.d.ts.map +1 -0
- package/dist/types/src/components/TableCellEditor/TableCellEditor.stories.d.ts +11 -0
- package/dist/types/src/components/TableCellEditor/TableCellEditor.stories.d.ts.map +1 -0
- package/dist/types/src/components/TableCellEditor/extension.d.ts +12 -0
- package/dist/types/src/components/TableCellEditor/extension.d.ts.map +1 -0
- package/dist/types/src/components/TableCellEditor/index.d.ts +2 -0
- package/dist/types/src/components/TableCellEditor/index.d.ts.map +1 -0
- package/dist/types/src/components/Toolbar/Toolbar.d.ts +21 -0
- package/dist/types/src/components/Toolbar/Toolbar.d.ts.map +1 -0
- package/dist/types/src/components/Toolbar/common.d.ts +20 -0
- package/dist/types/src/components/Toolbar/common.d.ts.map +1 -0
- package/dist/types/src/components/Toolbar/index.d.ts +2 -0
- package/dist/types/src/components/Toolbar/index.d.ts.map +1 -0
- package/dist/types/src/components/index.d.ts +1 -2
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/components/testing.d.ts +97 -0
- package/dist/types/src/components/testing.d.ts.map +1 -0
- package/dist/types/src/hooks/index.d.ts +1 -4
- package/dist/types/src/hooks/index.d.ts.map +1 -1
- package/dist/types/src/hooks/useTableModel.d.ts +15 -0
- package/dist/types/src/hooks/useTableModel.d.ts.map +1 -0
- package/dist/types/src/index.d.ts +3 -4
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/model/index.d.ts +3 -0
- package/dist/types/src/model/index.d.ts.map +1 -0
- package/dist/types/src/model/modal-controller.d.ts +29 -0
- package/dist/types/src/model/modal-controller.d.ts.map +1 -0
- package/dist/types/src/model/selection-model.d.ts +22 -0
- package/dist/types/src/model/selection-model.d.ts.map +1 -0
- package/dist/types/src/model/table-model.d.ts +93 -0
- package/dist/types/src/model/table-model.d.ts.map +1 -0
- package/dist/types/src/model/table-model.test.d.ts +2 -0
- package/dist/types/src/model/table-model.test.d.ts.map +1 -0
- package/dist/types/src/translations.d.ts +23 -16
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/index.d.ts +2 -0
- package/dist/types/src/types/index.d.ts.map +1 -0
- package/dist/types/src/types/table.d.ts +106 -0
- package/dist/types/src/types/table.d.ts.map +1 -0
- package/dist/types/src/util/grid.d.ts +14 -0
- package/dist/types/src/util/grid.d.ts.map +1 -0
- package/dist/types/src/util/index.d.ts +5 -0
- package/dist/types/src/util/index.d.ts.map +1 -0
- package/dist/types/src/util/signals.d.ts +6 -0
- package/dist/types/src/util/signals.d.ts.map +1 -0
- package/dist/types/src/util/table-buttons.d.ts +24 -0
- package/dist/types/src/util/table-buttons.d.ts.map +1 -0
- package/dist/types/src/util/table-controls.d.ts +21 -0
- package/dist/types/src/util/table-controls.d.ts.map +1 -0
- package/dist/types/src/util/table.d.ts +8 -0
- package/dist/types/src/util/table.d.ts.map +1 -0
- package/package.json +56 -22
- package/src/{components → _deprecated/components}/ColumnMenu/ColumnMenu.stories.tsx +4 -4
- package/src/{components → _deprecated/components}/ColumnMenu/ColumnSettings.stories.tsx +9 -9
- package/src/{components → _deprecated/components}/ColumnMenu/ColumnSettings.tsx +3 -3
- package/src/_deprecated/components/Table/Table.stories.tsx +508 -0
- package/src/_deprecated/components/Table/Table.tsx +301 -0
- package/src/{components → _deprecated/components}/Table/TableHead.tsx +3 -1
- package/src/_deprecated/components/Table/index.ts +8 -0
- package/src/_deprecated/components/index.ts +7 -0
- package/src/{helpers.tsx → _deprecated/helpers.tsx} +4 -3
- package/src/_deprecated/hooks/index.ts +8 -0
- package/src/_deprecated/index.ts +12 -0
- package/src/_deprecated/schema/column-utils.ts +54 -0
- package/src/{schema → _deprecated/schema}/types.ts +3 -2
- package/src/_deprecated/translations.ts +26 -0
- package/src/components/Table/ColumnActionsMenu.tsx +60 -0
- package/src/components/Table/ColumnSettings.tsx +76 -0
- package/src/components/Table/RowActionsMenu.tsx +36 -0
- package/src/components/Table/Table.stories.tsx +197 -467
- package/src/components/Table/Table.tsx +172 -256
- package/src/components/Table/index.ts +1 -4
- package/src/components/TableCellEditor/TableCellEditor.stories.tsx +114 -0
- package/src/components/TableCellEditor/TableCellEditor.tsx +155 -0
- package/src/components/TableCellEditor/extension.ts +62 -0
- package/src/components/TableCellEditor/index.ts +5 -0
- package/src/components/Toolbar/Toolbar.tsx +86 -0
- package/src/components/Toolbar/common.tsx +72 -0
- package/src/components/Toolbar/index.ts +5 -0
- package/src/components/index.ts +2 -3
- package/src/components/testing.ts +114 -0
- package/src/hooks/index.ts +1 -4
- package/src/hooks/useTableModel.ts +52 -0
- package/src/index.ts +5 -6
- package/src/model/index.ts +6 -0
- package/src/model/modal-controller.ts +83 -0
- package/src/model/selection-model.ts +99 -0
- package/src/model/table-model.test.ts +182 -0
- package/src/model/table-model.ts +565 -0
- package/src/translations.ts +20 -13
- package/src/types/index.ts +5 -0
- package/src/types/table.ts +13 -0
- package/src/util/grid.ts +23 -0
- package/src/util/index.ts +8 -0
- package/src/util/signals.ts +9 -0
- package/src/util/table-buttons.ts +48 -0
- package/src/util/table-controls.ts +27 -0
- package/src/util/table.ts +77 -0
- package/dist/types/src/components/Cell/Cell.d.ts.map +0 -1
- package/dist/types/src/components/Cell/CellCombobox.d.ts.map +0 -1
- package/dist/types/src/components/Cell/index.d.ts.map +0 -1
- package/dist/types/src/components/ColumnMenu/ColumnMenu.d.ts.map +0 -1
- package/dist/types/src/components/ColumnMenu/ColumnMenu.stories.d.ts.map +0 -1
- package/dist/types/src/components/ColumnMenu/ColumnSettings.d.ts.map +0 -1
- package/dist/types/src/components/ColumnMenu/ColumnSettings.stories.d.ts.map +0 -1
- package/dist/types/src/components/ColumnMenu/index.d.ts.map +0 -1
- package/dist/types/src/components/Table/TableBody.d.ts.map +0 -1
- package/dist/types/src/components/Table/TableContext.d.ts.map +0 -1
- package/dist/types/src/components/Table/TableHead.d.ts.map +0 -1
- package/dist/types/src/components/Table/TableRootContext.d.ts.map +0 -1
- package/dist/types/src/components/Table/props.d.ts.map +0 -1
- package/dist/types/src/helpers.d.ts.map +0 -1
- package/dist/types/src/hooks/useColumnSizing.d.ts.map +0 -1
- package/dist/types/src/hooks/useColumnSorting.d.ts.map +0 -1
- package/dist/types/src/hooks/usePinLastRow.d.ts.map +0 -1
- package/dist/types/src/hooks/useRowSelection.d.ts.map +0 -1
- package/dist/types/src/schema/Schema.stories.d.ts.map +0 -1
- package/dist/types/src/schema/column-utils.d.ts.map +0 -1
- package/dist/types/src/schema/index.d.ts.map +0 -1
- package/dist/types/src/schema/types.d.ts.map +0 -1
- package/dist/types/src/theme.d.ts.map +0 -1
- package/dist/types/src/types.d.ts.map +0 -1
- package/src/schema/column-utils.ts +0 -48
- /package/dist/types/src/{components → _deprecated/components}/Cell/Cell.d.ts +0 -0
- /package/dist/types/src/{components → _deprecated/components}/Cell/CellCombobox.d.ts +0 -0
- /package/dist/types/src/{components → _deprecated/components}/Cell/index.d.ts +0 -0
- /package/dist/types/src/{components → _deprecated/components}/ColumnMenu/ColumnMenu.d.ts +0 -0
- /package/dist/types/src/{components → _deprecated/components}/ColumnMenu/ColumnMenu.stories.d.ts +0 -0
- /package/dist/types/src/{components → _deprecated/components}/ColumnMenu/ColumnSettings.d.ts +0 -0
- /package/dist/types/src/{components → _deprecated/components}/ColumnMenu/index.d.ts +0 -0
- /package/dist/types/src/{components → _deprecated/components}/Table/TableBody.d.ts +0 -0
- /package/dist/types/src/{components → _deprecated/components}/Table/TableContext.d.ts +0 -0
- /package/dist/types/src/{components → _deprecated/components}/Table/TableHead.d.ts +0 -0
- /package/dist/types/src/{components → _deprecated/components}/Table/TableRootContext.d.ts +0 -0
- /package/dist/types/src/{components → _deprecated/components}/Table/props.d.ts +0 -0
- /package/dist/types/src/{helpers.d.ts → _deprecated/helpers.d.ts} +0 -0
- /package/dist/types/src/{hooks → _deprecated/hooks}/useColumnSizing.d.ts +0 -0
- /package/dist/types/src/{hooks → _deprecated/hooks}/usePinLastRow.d.ts +0 -0
- /package/dist/types/src/{hooks → _deprecated/hooks}/useRowSelection.d.ts +0 -0
- /package/dist/types/src/{schema → _deprecated/schema}/Schema.stories.d.ts +0 -0
- /package/dist/types/src/{schema → _deprecated/schema}/index.d.ts +0 -0
- /package/dist/types/src/{theme.d.ts → _deprecated/theme.d.ts} +0 -0
- /package/dist/types/src/{types.d.ts → _deprecated/types.d.ts} +0 -0
- /package/src/{components → _deprecated/components}/Cell/Cell.tsx +0 -0
- /package/src/{components → _deprecated/components}/Cell/CellCombobox.tsx +0 -0
- /package/src/{components → _deprecated/components}/Cell/index.ts +0 -0
- /package/src/{components → _deprecated/components}/ColumnMenu/ColumnMenu.tsx +0 -0
- /package/src/{components → _deprecated/components}/ColumnMenu/index.ts +0 -0
- /package/src/{components → _deprecated/components}/Table/TableBody.tsx +0 -0
- /package/src/{components → _deprecated/components}/Table/TableContext.tsx +0 -0
- /package/src/{components → _deprecated/components}/Table/TableRootContext.ts +0 -0
- /package/src/{components → _deprecated/components}/Table/props.ts +0 -0
- /package/src/{hooks → _deprecated/hooks}/useColumnSizing.ts +0 -0
- /package/src/{hooks → _deprecated/hooks}/useColumnSorting.ts +0 -0
- /package/src/{hooks → _deprecated/hooks}/usePinLastRow.ts +0 -0
- /package/src/{hooks → _deprecated/hooks}/useRowSelection.ts +0 -0
- /package/src/{schema → _deprecated/schema}/Schema.stories.tsx +0 -0
- /package/src/{schema → _deprecated/schema}/index.ts +0 -0
- /package/src/{theme.ts → _deprecated/theme.ts} +0 -0
- /package/src/{types.ts → _deprecated/types.ts} +0 -0
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import '@dxos-theme';
|
|
2
|
+
import { type StoryObj } from '@storybook/react';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { PublicKey } from '@dxos/keys';
|
|
5
|
+
import { type TableColumnDef } from '../../types';
|
|
6
|
+
type Item = {
|
|
7
|
+
publicKey: PublicKey;
|
|
8
|
+
name: string;
|
|
9
|
+
company?: string;
|
|
10
|
+
count?: number;
|
|
11
|
+
started?: Date;
|
|
12
|
+
complete?: boolean;
|
|
13
|
+
};
|
|
14
|
+
declare const _default: {
|
|
15
|
+
title: string;
|
|
16
|
+
component: (props: any) => React.JSX.Element;
|
|
17
|
+
args: {
|
|
18
|
+
header: boolean;
|
|
19
|
+
keyAccessor: (item: Item) => string;
|
|
20
|
+
};
|
|
21
|
+
argTypes: {
|
|
22
|
+
header: {
|
|
23
|
+
control: string;
|
|
24
|
+
};
|
|
25
|
+
footer: {
|
|
26
|
+
control: string;
|
|
27
|
+
};
|
|
28
|
+
border: {
|
|
29
|
+
control: string;
|
|
30
|
+
};
|
|
31
|
+
fullWidth: {
|
|
32
|
+
control: string;
|
|
33
|
+
};
|
|
34
|
+
grouping: {
|
|
35
|
+
control: string;
|
|
36
|
+
options: string[];
|
|
37
|
+
mapping: {
|
|
38
|
+
none: undefined;
|
|
39
|
+
complete: string[];
|
|
40
|
+
count: string[];
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
columnVisibility: {
|
|
44
|
+
control: string;
|
|
45
|
+
options: string[];
|
|
46
|
+
mapping: {
|
|
47
|
+
all: undefined;
|
|
48
|
+
limited: {
|
|
49
|
+
key: boolean;
|
|
50
|
+
started: boolean;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
rowsSelectable: {
|
|
55
|
+
control: string;
|
|
56
|
+
options: (string | boolean)[];
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
decorators: import("@storybook/react/*").Decorator[];
|
|
60
|
+
};
|
|
61
|
+
export default _default;
|
|
62
|
+
export declare const Default: {
|
|
63
|
+
args: {
|
|
64
|
+
columns: TableColumnDef<Item, any>[];
|
|
65
|
+
data: Item[];
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
export declare const Scrolling: {
|
|
69
|
+
args: {
|
|
70
|
+
columns: TableColumnDef<Item, any>[];
|
|
71
|
+
data: Item[];
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
export declare const Visibility: {
|
|
75
|
+
args: {
|
|
76
|
+
columns: TableColumnDef<Item, any>[];
|
|
77
|
+
data: Item[];
|
|
78
|
+
columnVisibility: {
|
|
79
|
+
key: boolean;
|
|
80
|
+
started: boolean;
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
export declare const Empty: {
|
|
85
|
+
args: {
|
|
86
|
+
columns: TableColumnDef<Item, any>[];
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
export declare const Dynamic: {
|
|
90
|
+
render: () => React.JSX.Element;
|
|
91
|
+
};
|
|
92
|
+
export declare const Editable: {
|
|
93
|
+
render: () => React.JSX.Element;
|
|
94
|
+
};
|
|
95
|
+
export declare const PinnedLastRow: {
|
|
96
|
+
render: () => React.JSX.Element;
|
|
97
|
+
};
|
|
98
|
+
export declare const InsertDelete: {
|
|
99
|
+
render: () => React.JSX.Element;
|
|
100
|
+
};
|
|
101
|
+
export declare const Resizable: {
|
|
102
|
+
render: () => React.JSX.Element;
|
|
103
|
+
};
|
|
104
|
+
export declare const TenThousandRows: {
|
|
105
|
+
render: () => React.JSX.Element;
|
|
106
|
+
};
|
|
107
|
+
type StoryProps = {
|
|
108
|
+
periodicMutations: boolean;
|
|
109
|
+
mutationInterval: number;
|
|
110
|
+
periodicDeletions: boolean;
|
|
111
|
+
deletionInterval: number;
|
|
112
|
+
periodicInsertions: boolean;
|
|
113
|
+
insertionInterval: number;
|
|
114
|
+
};
|
|
115
|
+
export declare const RealTimeUpdates: StoryObj<StoryProps>;
|
|
116
|
+
//# sourceMappingURL=Table.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Table.stories.d.ts","sourceRoot":"","sources":["../../../../../../src/_deprecated/components/Table/Table.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAGrB,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,KAAoD,MAAM,OAAO,CAAC;AAGzE,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AASvC,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,aAAa,CAAC;AAKlD,KAAK,IAAI,GAAG;IACV,SAAS,EAAE,SAAS,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,IAA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;;CAwD1C,CAAC;AAIF,OAAO,EAAE,SAAS,EAAE,CAAC;AAErB,YAAY,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableContext.d.ts","sourceRoot":"","sources":["../../../../../../src/_deprecated/components/Table/TableContext.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAc,EAIZ,KAAK,GAAG,EACR,KAAK,iBAAiB,EACtB,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAIf,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAEjD,eAAO,MAAM,UAAU,UAAU,CAAC;AAIlC,MAAM,MAAM,kBAAkB,CAAC,KAAK,SAAS,OAAO,IAAI;IACtD,CAAC,KAAK,EAAE,iBAAiB,CAAC,KAAK,CAAC,GAAG;QAAE,QAAQ,EAAE,SAAS,CAAA;KAAE,GAAG,GAAG,CAAC,OAAO,CAAC;IACzE,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,aAAa,2BAA4B,iBAAiB,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC,gBAElG,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,KAAK,SAAS,OAAO,OAAK,iBAAiB,CAAC,KAAK,CAEhF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableHead.d.ts","sourceRoot":"","sources":["../../../../../../src/_deprecated/components/Table/TableHead.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAC;AAS1B,KAAK,cAAc,GAAG,EAAE,CAAC;AAEzB,QAAA,MAAM,SAAS;aAAY,cAAc;;CAuDxC,CAAC;AAIF,OAAO,EAAE,SAAS,EAAE,CAAC;AAErB,YAAY,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableRootContext.d.ts","sourceRoot":"","sources":["../../../../../../src/_deprecated/components/Table/TableRootContext.ts"],"names":[],"mappings":"AAOA,KAAK,uBAAuB,GAAG;IAAE,IAAI,EAAE,kBAAkB,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAE3E,eAAO,MAAM,mBAAmB;;;uBAWJ,uBAAuB;CAYlD,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAI3E,eAAO,MAAM,gBAAgB;;;uBAlBD,uBAAuB;EAkB8C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/_deprecated/components/Table/index.ts"],"names":[],"mappings":"AAIA,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../../../../src/_deprecated/components/Table/props.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,OAAO,EAAE,KAAK,iBAAiB,EAAE,KAAK,KAAK,EAAE,KAAK,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAE/G,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAE3D,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,cAAc,EAAE,MAAM,aAAa,CAAC;AAEjE,MAAM,MAAM,UAAU,GAAG,OAAO,CAAC;IAC/B,IAAI,EAAE,OAAO,GAAG,MAAM,GAAG,UAAU,CAAC;IACpC,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,EAAE,OAAO,CAAC;IAChB,SAAS,EAAE,OA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Y,CAAC,KAAK,CAAC,GACnB,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE,aAAa,CAAC,GAAG;IACvC,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;IACpB,MAAM,EAAE,OAAO,CAAC;CACjB,GAAG,aAAa,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/_deprecated/components/index.ts"],"names":[],"mappings":"AAIA,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../src/_deprecated/helpers.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAwB,KAAK,IAAI,EAAK,MAAM,uBAAuB,CAAC;AAC3E,OAAO,EAEL,KAAK,SAAS,EACd,KAAK,UAAU,EACf,KAAK,OAAO,EACZ,KAAK,YAAY,EAElB,MAAM,uBAAuB,CAAC;AAK/B,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,OAAO,EAAE,KAAK,cAAc,EAAkB,MAAM,gBAAgB,CAAC;AAOrE,MAAM,MAAM,YAAY,CAAC,KAAK,SAAS,OAAO,EAAE,MAAM,IAAI,CAAC,GAAG,EAAE,KAAK,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;AAE1G,eAAO,MAAM,mBAAmB,GAAI,KAAK,SAAS,OAAO;;;CAGvD,CAAC;AAGH;;GAEG;AACH,MAAM,MAAM,iBAAiB,CAAC,KAAK,EAAE,MAAM,IAAI,OAAO,CAAC,SAAS,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,GAAG;IACjF,IAAI,CAAC,EAAE,UAAU,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;IACjC,KAAK,CAAC,EAAE,MAAM,CAAC;IAC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AAC;AAChC,cAAc,mBAAmB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useColumnSizing.d.ts","sourceRoot":"","sources":["../../../../../src/_deprecated/hooks/useColumnSizing.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,qBAAqB,EAAE,KAAK,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAK3F,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,UAAU,CAAC;AAE/C,eAAO,MAAM,iBAAiB,iCAG3B;IACD,OAAO,EAAE,cAAc,CAAC,GAAG,CAAC,EAAE,CAAC;IAC/B,cAAc,EAAE,CAAC,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KAAK,IAAI,CAAC,GAAG,SAAS,CAAC;CACvE;;;;;CA4BA,CAAC"}
|
|
@@ -7,7 +7,7 @@ export declare const useColumnSorting: () => {
|
|
|
7
7
|
export type ColumnSorting = ReturnType<typeof useColumnSorting>;
|
|
8
8
|
export declare const useSortColumn: (column: Column<any>) => {
|
|
9
9
|
canSort: boolean;
|
|
10
|
-
sortDirection: "
|
|
10
|
+
sortDirection: "desc" | "asc" | undefined;
|
|
11
11
|
onSelectSort: (direction: SortDirection) => void;
|
|
12
12
|
onToggleSort: () => void;
|
|
13
13
|
onClearSort: () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useColumnSorting.d.ts","sourceRoot":"","sources":["../../../../../src/_deprecated/hooks/useColumnSorting.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,MAAM,EAAE,KAAK,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAKzF,eAAO,MAAM,gBAAgB;;2BAGG,MAAM,iBAAiB,aAAa;;CASnE,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAEhE,eAAO,MAAM,aAAa,WAAY,MAAM,CAAC,GAAG,CAAC;;;8BA2Bd,aAAa;;;CAW/C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usePinLastRow.d.ts","sourceRoot":"","sources":["../../../../../src/_deprecated/hooks/usePinLastRow.ts"],"names":[],"mappings":"AAIA,OAAO,EAAY,KAAK,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAG7D,eAAO,MAAM,aAAa,eAAgB,OAAO,GAAG,SAAS,SAAS,KAAK,CAAC,GAAG,CAAC,QAAQ,GAAG,EAAE,SAuC5F,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useRowSelection.d.ts","sourceRoot":"","sources":["../../../../../src/_deprecated/hooks/useRowSelection.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,UAAU,EAAE,KAAK,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAGhF,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEtD,eAAO,MAAM,eAAe,UACnB,IAAI,CACT,UAAU,CAAC,GAAG,CAAC,EACf,gBAAgB,GAAG,qBAAqB,GAAG,cAAc,GAAG,sBAAsB,GAAG,gBAAgB,CACtG;;;CAyBF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/_deprecated/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEzD,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Schema.stories.d.ts","sourceRoot":"","sources":["../../../../../src/_deprecated/schema/Schema.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAIrB,OAAO,KAAK,MAAM,OAAO,CAAC;;;;;AAQ1B,wBAGE;AAoBF,eAAO,MAAM,OAAO;;CAmBnB,CAAC"}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { type ColumnDef } from '@tanstack/react-table';
|
|
2
2
|
import { type S } from '@dxos/echo-schema';
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated
|
|
5
|
+
*/
|
|
3
6
|
export declare const schemaToColumnDefs: <T>(schema: S.Schema<T, any>) => ColumnDef<T, any>[];
|
|
4
7
|
//# sourceMappingURL=column-utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"column-utils.d.ts","sourceRoot":"","sources":["../../../../../src/_deprecated/schema/column-utils.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAEvD,OAAO,EAAY,KAAK,CAAC,EAAE,MAAM,mBAAmB,CAAC;AAMrD;;GAEG;AACH,eAAO,MAAM,kBAAkB,GAAI,CAAC,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC,EAAE,GAAG,CAAC,KAAG,SAAS,CAAC,CAAC,EAAE,GAAG,CAAC,EAsCjF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/_deprecated/schema/index.ts"],"names":[],"mappings":"AAIA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type TypeEnum, type FormatEnum } from '@dxos/echo-schema';
|
|
2
2
|
/**
|
|
3
3
|
* @deprecated
|
|
4
4
|
*/
|
|
@@ -13,7 +13,8 @@ export type TableDef = {
|
|
|
13
13
|
export type ColumnDef = {
|
|
14
14
|
id: string;
|
|
15
15
|
prop: string;
|
|
16
|
-
type:
|
|
16
|
+
type: TypeEnum;
|
|
17
|
+
format?: FormatEnum;
|
|
17
18
|
size?: number;
|
|
18
19
|
label?: string;
|
|
19
20
|
digits?: number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/_deprecated/schema/types.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAEnE;;GAEG;AAEH,MAAM,MAAM,QAAQ,GAAG;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,SAAS,EAAE,CAAC;CACtB,CAAC;AAEF;;GAEG;AAEH,MAAM,MAAM,SAAS,GAAG;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,QAAQ,CAAC;IACf,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IAGf,MAAM,CAAC,EAAE,MAAM,CAAC;IAGhB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IAGjB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../../src/_deprecated/theme.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAE9D,OAAO,EAAE,KAAK,iBAAiB,EAAE,KAAK,UAAU,EAAE,MAAM,cAAc,CAAC;AAEvE,eAAO,MAAM,UAAU,wCAAwC,CAAC;AAChE,eAAO,MAAM,WAAW,yCAAyC,CAAC;AAClE,eAAO,MAAM,YA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
|
3
|
+
'en-US': {
|
|
4
|
+
table: {
|
|
5
|
+
'no selection label': string;
|
|
6
|
+
'number column type label': string;
|
|
7
|
+
'boolean column type label': string;
|
|
8
|
+
'date column type label': string;
|
|
9
|
+
'string column type label': string;
|
|
10
|
+
'ref column type label': string;
|
|
11
|
+
'digits label': string;
|
|
12
|
+
'save label': string;
|
|
13
|
+
'delete label': string;
|
|
14
|
+
'column label label': string;
|
|
15
|
+
'property key label': string;
|
|
16
|
+
'column type label': string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
}[];
|
|
20
|
+
export default _default;
|
|
21
|
+
//# sourceMappingURL=translations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../../src/_deprecated/translations.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,cAAc,UAAU,CAAC;;;;;;;;;;;;;;;;;;;AAEtC,wBAmBE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/_deprecated/types.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAErE,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAE3D,OAAO,EAAE,KAAK,oBAAoB,EAAE,KAAK,YAAY,EAAE,MAAM,WAAW,CAAC;AAGzE,OAAO,QAAQ,uBAAuB,CAAC;IAGrC,UAAU,SAAS,CAAC,KAAK,SAAS,OAAO;KAAI;IAG7C,UAAU,UAAU,CAAC,KAAK,SAAS,OAAO,EAAE,MAAM;QAChD,MAAM,CAAC,EAAE,OAAO,CAAC;QACjB,SAAS,CAAC,EAAE,OAAO,CAAC;QACpB,KAAK,CAAC,EAAE,oBAAoB,CAAC,KAAK,CAAC,CAAC;QACpC,QAAQ,CAAC,EAAE,YAAY,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;QACpC,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,MAAM,CAAC,EAAE;YACP,UAAU,CAAC,EAAE,cAAc,CAAC;SAC7B,CAAC;QACF,MAAM,CAAC,EAAE;YACP,UAAU,CAAC,EAAE,cAAc,CAAC;SAC7B,CAAC;QACF,IAAI,CAAC,EAAE;YACL,UAAU,CAAC,EAAE,cAAc,CAAC;SAC7B,CAAC;KACH;CACF;AAED,MAAM,MAAM,QAAQ,CAAC,KAAK,SAAS,OAAO,IAAI,CAAC,GAAG,EAAE,KAAK,KAAK,MAAM,CAAC;AAErE,MAAM,MAAM,cAAc,CAAC,KAAK,SAAS,OAAO,EAAE,MAAM,GAAG,GAAG,IAAI,SAAS,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type TableModel } from '../../model';
|
|
3
|
+
type ColumnActionsMenuProps = {
|
|
4
|
+
model?: TableModel;
|
|
5
|
+
};
|
|
6
|
+
export declare const ColumnActionsMenu: ({ model }: ColumnActionsMenuProps) => React.JSX.Element | null;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=ColumnActionsMenu.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ColumnActionsMenu.d.ts","sourceRoot":"","sources":["../../../../../src/components/Table/ColumnActionsMenu.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,aAAa,CAAC;AAG9C,KAAK,sBAAsB,GAAG;IAAE,KAAK,CAAC,EAAE,UAAU,CAAA;CAAE,CAAC;AAErD,eAAO,MAAM,iBAAiB,cAAe,sBAAsB,6BA8ClE,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type TableModel } from '../../model';
|
|
3
|
+
type ColumnSettingsProps = {
|
|
4
|
+
model?: TableModel;
|
|
5
|
+
};
|
|
6
|
+
export declare const ColumnSettings: ({ model }: ColumnSettingsProps) => React.JSX.Element | null;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=ColumnSettings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ColumnSettings.d.ts","sourceRoot":"","sources":["../../../../../src/components/Table/ColumnSettings.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAoD,MAAM,OAAO,CAAC;AAOzE,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,aAAa,CAAC;AAE9C,KAAK,mBAAmB,GAAG;IAAE,KAAK,CAAC,EAAE,UAAU,CAAA;CAAE,CAAC;AAElD,eAAO,MAAM,cAAc,cAAe,mBAAmB,6BA4D5D,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type TableModel } from '../../model';
|
|
3
|
+
type RowActionsMenuProps = {
|
|
4
|
+
model: TableModel;
|
|
5
|
+
};
|
|
6
|
+
export declare const RowActionsMenu: ({ model }: RowActionsMenuProps) => React.JSX.Element | null;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=RowActionsMenu.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RowActionsMenu.d.ts","sourceRoot":"","sources":["../../../../../src/components/Table/RowActionsMenu.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,aAAa,CAAC;AAG9C,KAAK,mBAAmB,GAAG;IAAE,KAAK,EAAE,UAAU,CAAA;CAAE,CAAC;AAEjD,eAAO,MAAM,cAAc,cAAe,mBAAmB,6BAsB5D,CAAC"}
|
|
@@ -1,20 +1,17 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
import { type
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import React, { type PropsWithChildren } from 'react';
|
|
2
|
+
import { type TableModel } from '../../model';
|
|
3
|
+
import { type GridCell } from '../../util';
|
|
4
|
+
export type TableRootProps = PropsWithChildren<{
|
|
5
|
+
role?: string;
|
|
6
|
+
}>;
|
|
7
|
+
export type TableController = {
|
|
8
|
+
update?: (cell?: GridCell) => void;
|
|
8
9
|
};
|
|
9
|
-
type
|
|
10
|
-
|
|
10
|
+
export type TableMainProps = {
|
|
11
|
+
model?: TableModel;
|
|
11
12
|
};
|
|
12
|
-
export declare const TablePrimitive: <TData extends RowData>(props: TableProps<TData>) => React.JSX.Element;
|
|
13
|
-
export declare const MemoizedVirtualizedTableContent: React.MemoExoticComponent<() => React.JSX.Element>;
|
|
14
13
|
export declare const Table: {
|
|
15
14
|
Root: ({ children }: TableRootProps) => React.JSX.Element;
|
|
16
|
-
|
|
17
|
-
Main: <TData extends RowData>(props: TableProps<TData>) => React.JSX.Element;
|
|
15
|
+
Main: React.ForwardRefExoticComponent<TableMainProps & React.RefAttributes<TableController>>;
|
|
18
16
|
};
|
|
19
|
-
export {};
|
|
20
17
|
//# sourceMappingURL=Table.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../../../src/components/Table/Table.tsx"],"names":[],"mappings":"AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../../../src/components/Table/Table.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAEZ,KAAK,iBAAiB,EAKvB,MAAM,OAAO,CAAC;AAaf,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,YAAY,CAAC;AAgB3C,MAAM,MAAM,cAAc,GAAG,iBAAiB,CAAC;IAAE,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC;AAclE,MAAM,MAAM,eAAe,GAAG;IAC5B,MAAM,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,QAAQ,KAAK,IAAI,CAAC;CACpC,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,KAAK,CAAC,EAAE,UAAU,CAAC;CACpB,CAAC;AAwJF,eAAO,MAAM,KAAK;yBA1Ke,cAAc;;CA6K9C,CAAC"}
|
|
@@ -1,116 +1,13 @@
|
|
|
1
1
|
import '@dxos-theme';
|
|
2
|
-
import { type StoryObj } from '@storybook/react';
|
|
3
|
-
import
|
|
4
|
-
import { PublicKey } from '@dxos/keys';
|
|
5
|
-
import { type TableColumnDef } from '../../types';
|
|
6
|
-
type Item = {
|
|
7
|
-
publicKey: PublicKey;
|
|
8
|
-
name: string;
|
|
9
|
-
company?: string;
|
|
10
|
-
count?: number;
|
|
11
|
-
started?: Date;
|
|
12
|
-
complete?: boolean;
|
|
13
|
-
};
|
|
14
|
-
declare const _default: {
|
|
15
|
-
title: string;
|
|
16
|
-
component: (props: any) => React.JSX.Element;
|
|
17
|
-
args: {
|
|
18
|
-
header: boolean;
|
|
19
|
-
keyAccessor: (item: Item) => string;
|
|
20
|
-
};
|
|
21
|
-
argTypes: {
|
|
22
|
-
header: {
|
|
23
|
-
control: string;
|
|
24
|
-
};
|
|
25
|
-
footer: {
|
|
26
|
-
control: string;
|
|
27
|
-
};
|
|
28
|
-
border: {
|
|
29
|
-
control: string;
|
|
30
|
-
};
|
|
31
|
-
fullWidth: {
|
|
32
|
-
control: string;
|
|
33
|
-
};
|
|
34
|
-
grouping: {
|
|
35
|
-
control: string;
|
|
36
|
-
options: string[];
|
|
37
|
-
mapping: {
|
|
38
|
-
none: undefined;
|
|
39
|
-
complete: string[];
|
|
40
|
-
count: string[];
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
columnVisibility: {
|
|
44
|
-
control: string;
|
|
45
|
-
options: string[];
|
|
46
|
-
mapping: {
|
|
47
|
-
all: undefined;
|
|
48
|
-
limited: {
|
|
49
|
-
key: boolean;
|
|
50
|
-
started: boolean;
|
|
51
|
-
};
|
|
52
|
-
};
|
|
53
|
-
};
|
|
54
|
-
rowsSelectable: {
|
|
55
|
-
control: string;
|
|
56
|
-
options: (string | boolean)[];
|
|
57
|
-
};
|
|
58
|
-
};
|
|
59
|
-
decorators: import("@storybook/react/*").Decorator[];
|
|
60
|
-
};
|
|
61
|
-
export default _default;
|
|
62
|
-
export declare const Default: {
|
|
63
|
-
args: {
|
|
64
|
-
columns: TableColumnDef<Item, any>[];
|
|
65
|
-
data: Item[];
|
|
66
|
-
};
|
|
67
|
-
};
|
|
68
|
-
export declare const Scrolling: {
|
|
69
|
-
args: {
|
|
70
|
-
columns: TableColumnDef<Item, any>[];
|
|
71
|
-
data: Item[];
|
|
72
|
-
};
|
|
73
|
-
};
|
|
74
|
-
export declare const Visibility: {
|
|
75
|
-
args: {
|
|
76
|
-
columns: TableColumnDef<Item, any>[];
|
|
77
|
-
data: Item[];
|
|
78
|
-
columnVisibility: {
|
|
79
|
-
key: boolean;
|
|
80
|
-
started: boolean;
|
|
81
|
-
};
|
|
82
|
-
};
|
|
83
|
-
};
|
|
84
|
-
export declare const Empty: {
|
|
85
|
-
args: {
|
|
86
|
-
columns: TableColumnDef<Item, any>[];
|
|
87
|
-
};
|
|
88
|
-
};
|
|
89
|
-
export declare const Dynamic: {
|
|
90
|
-
render: () => React.JSX.Element;
|
|
91
|
-
};
|
|
92
|
-
export declare const Editable: {
|
|
93
|
-
render: () => React.JSX.Element;
|
|
94
|
-
};
|
|
95
|
-
export declare const PinnedLastRow: {
|
|
96
|
-
render: () => React.JSX.Element;
|
|
97
|
-
};
|
|
98
|
-
export declare const InsertDelete: {
|
|
99
|
-
render: () => React.JSX.Element;
|
|
100
|
-
};
|
|
101
|
-
export declare const Resizable: {
|
|
102
|
-
render: () => React.JSX.Element;
|
|
103
|
-
};
|
|
104
|
-
export declare const TenThousandRows: {
|
|
105
|
-
render: () => React.JSX.Element;
|
|
106
|
-
};
|
|
2
|
+
import { type StoryObj, type Meta } from '@storybook/react';
|
|
3
|
+
import { type SimulatorProps } from '../testing';
|
|
107
4
|
type StoryProps = {
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
export declare const
|
|
5
|
+
rows?: number;
|
|
6
|
+
} & Pick<SimulatorProps, 'insertInterval' | 'updateInterval'>;
|
|
7
|
+
declare const meta: Meta<StoryProps>;
|
|
8
|
+
export default meta;
|
|
9
|
+
type Story = StoryObj<StoryProps>;
|
|
10
|
+
export declare const Default: {};
|
|
11
|
+
export declare const Mutations: Story;
|
|
12
|
+
export declare const RapidInsertions: Story;
|
|
116
13
|
//# sourceMappingURL=Table.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Table.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Table/Table.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"Table.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Table/Table.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAqB5D,OAAO,EAA4B,KAAK,cAAc,EAAgB,MAAM,YAAY,CAAC;AAmHzF,KAAK,UAAU,GAAG;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,GAAG,IAAI,CAAC,cAAc,EAAE,gBAAgB,GAAG,gBAAgB,CAAC,CAAC;AA8C9D,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,UAAU,CAyB1B,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,UAAU,CAAC,CAAC;AAElC,eAAO,MAAM,OAAO,IAAK,CAAC;AAE1B,eAAO,MAAM,SAAS,EAAE,KAMvB,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,KAM7B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Table/index.ts"],"names":[],"mappings":"AAIA,cAAc,SAAS,CAAC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Table/index.ts"],"names":[],"mappings":"AAIA,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type DxGrid } from '@dxos/lit-grid';
|
|
3
|
+
import { type GridScopedProps } from '@dxos/react-ui-grid';
|
|
4
|
+
import { type FieldProjection } from '@dxos/schema';
|
|
5
|
+
import { type TableModel } from '../../model';
|
|
6
|
+
import { type GridCell } from '../../util';
|
|
7
|
+
export type TableCellEditorProps = {
|
|
8
|
+
model?: TableModel;
|
|
9
|
+
onEnter?: (cell: GridCell) => void;
|
|
10
|
+
onFocus?: DxGrid['refocus'];
|
|
11
|
+
onQuery?: (field: FieldProjection, text: string) => Promise<{
|
|
12
|
+
label: string;
|
|
13
|
+
data: any;
|
|
14
|
+
}[]>;
|
|
15
|
+
};
|
|
16
|
+
export declare const TableCellEditor: ({ model, onEnter, onFocus, onQuery, __gridScope, }: GridScopedProps<TableCellEditorProps>) => React.JSX.Element;
|
|
17
|
+
//# sourceMappingURL=TableCellEditor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableCellEditor.d.ts","sourceRoot":"","sources":["../../../../../src/components/TableCellEditor/TableCellEditor.tsx"],"names":[],"mappings":"AAIA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAIpD,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAOL,KAAK,eAAe,EAErB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC;AAGpD,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,KAAK,QAAQ,EAAc,MAAM,YAAY,CAAC;AAEvD,MAAM,MAAM,oBAAoB,GAAG;IACjC,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAC;IACnC,OAAO,CAAC,EAAE,MAAM,CAAC,SAAS,CAAC,CAAC;IAC5B,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,eAAe,EAAE,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,GAAG,CAAA;KAAE,EAAE,CAAC,CAAC;CAC7F,CAAC;AAEF,eAAO,MAAM,eAAe,uDAMzB,eAAe,CAAC,oBAAoB,CAAC,sBAuFvC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import '@dxos-theme';
|
|
2
|
+
import { type Meta, type StoryObj } from '@storybook/react';
|
|
3
|
+
import { type GridEditing } from '@dxos/react-ui-grid';
|
|
4
|
+
type StoryProps = {
|
|
5
|
+
editing: GridEditing;
|
|
6
|
+
};
|
|
7
|
+
declare const meta: Meta<StoryProps>;
|
|
8
|
+
export default meta;
|
|
9
|
+
type Story = StoryObj<StoryProps>;
|
|
10
|
+
export declare const Default: Story;
|
|
11
|
+
//# sourceMappingURL=TableCellEditor.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableCellEditor.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/TableCellEditor/TableCellEditor.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,KAAK,IAAI,EAAE,KAAK,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAQ5D,OAAO,EAAwB,KAAK,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAU7E,KAAK,UAAU,GAAG;IAChB,OAAO,EAAE,WAAW,CAAC;CACtB,CAAC;AAiDF,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,UAAU,CAyB1B,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,UAAU,CAAC,CAAC;AAElC,eAAO,MAAM,OAAO,EAAE,KAOrB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type CompletionResult } from '@codemirror/autocomplete';
|
|
2
|
+
import { type Extension } from '@codemirror/state';
|
|
3
|
+
export type CompletionOptions = {
|
|
4
|
+
onQuery: (text: string) => Promise<CompletionResult['options']>;
|
|
5
|
+
onMatch: (data: any) => void;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Autocomplete Codemirror extension.
|
|
9
|
+
* https://codemirror.net/docs/ref/#autocomplete.autocompletion
|
|
10
|
+
*/
|
|
11
|
+
export declare const completion: ({ onQuery, onMatch }: CompletionOptions) => Extension;
|
|
12
|
+
//# sourceMappingURL=extension.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extension.d.ts","sourceRoot":"","sources":["../../../../../src/components/TableCellEditor/extension.ts"],"names":[],"mappings":"AAIA,OAAO,EAIL,KAAK,gBAAgB,EACtB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAGnD,MAAM,MAAM,iBAAiB,GAAG;IAC9B,OAAO,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,gBAAgB,CAAC,SAAS,CAAC,CAAC,CAAC;IAChE,OAAO,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,IAAI,CAAC;CAC9B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,UAAU,yBAA0B,iBAAiB,KAAG,SAuCpE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/TableCellEditor/index.ts"],"names":[],"mappings":"AAIA,cAAc,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React, { type PropsWithChildren } from 'react';
|
|
2
|
+
import { type ThemedClassName } from '@dxos/react-ui';
|
|
3
|
+
export type ToolbarAction = {
|
|
4
|
+
type: 'add-row';
|
|
5
|
+
} | {
|
|
6
|
+
type: 'comment';
|
|
7
|
+
};
|
|
8
|
+
export type ToolbarActionType = ToolbarAction['type'];
|
|
9
|
+
export type ToolbarActionHandler = (action: ToolbarAction) => void;
|
|
10
|
+
export type ToolbarProps = ThemedClassName<PropsWithChildren<{
|
|
11
|
+
onAction?: ToolbarActionHandler;
|
|
12
|
+
}>>;
|
|
13
|
+
declare const useToolbarContext: (consumerName: string) => ToolbarProps;
|
|
14
|
+
export declare const Toolbar: {
|
|
15
|
+
Root: ({ classNames, children, onAction }: ToolbarProps) => React.JSX.Element;
|
|
16
|
+
Editing: () => React.JSX.Element;
|
|
17
|
+
Actions: () => React.JSX.Element;
|
|
18
|
+
Separator: () => React.JSX.Element;
|
|
19
|
+
};
|
|
20
|
+
export { useToolbarContext };
|
|
21
|
+
//# sourceMappingURL=Toolbar.d.ts.map
|