@dxos/react-ui-table 0.8.4-main.bc674ce → 0.8.4-main.bcb3aa67d6
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/{chunk-OZBLY7XM.mjs → chunk-BF54SSNL.mjs} +12 -18
- package/dist/lib/browser/chunk-BF54SSNL.mjs.map +7 -0
- package/dist/lib/browser/{chunk-I5IFW7UF.mjs → chunk-EK6D2CVM.mjs} +37 -32
- package/dist/lib/browser/chunk-EK6D2CVM.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +200 -173
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/testing/index.mjs +4 -4
- package/dist/lib/browser/testing/index.mjs.map +2 -2
- package/dist/lib/browser/types/index.mjs +1 -1
- package/dist/lib/node-esm/{chunk-DDJKYJFY.mjs → chunk-LYYDF6JP.mjs} +37 -32
- package/dist/lib/node-esm/chunk-LYYDF6JP.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-WNZSKIRF.mjs → chunk-SIRDIPHZ.mjs} +12 -18
- package/dist/lib/node-esm/chunk-SIRDIPHZ.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +200 -173
- package/dist/lib/node-esm/index.mjs.map +4 -4
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/testing/index.mjs +4 -4
- package/dist/lib/node-esm/testing/index.mjs.map +2 -2
- package/dist/lib/node-esm/types/index.mjs +1 -1
- package/dist/types/src/components/Table/ColumnSettings.d.ts.map +1 -1
- package/dist/types/src/components/Table/DynamicTable.d.ts +5 -4
- package/dist/types/src/components/Table/DynamicTable.d.ts.map +1 -1
- package/dist/types/src/components/Table/DynamicTable.stories.d.ts +20 -22
- package/dist/types/src/components/Table/DynamicTable.stories.d.ts.map +1 -1
- package/dist/types/src/components/Table/Relations.stories.d.ts +80 -82
- package/dist/types/src/components/Table/Relations.stories.d.ts.map +1 -1
- package/dist/types/src/components/Table/Table.d.ts +28 -21
- package/dist/types/src/components/Table/Table.d.ts.map +1 -1
- package/dist/types/src/components/Table/Table.stories.d.ts +82 -84
- package/dist/types/src/components/Table/Table.stories.d.ts.map +1 -1
- package/dist/types/src/components/Table/TableContent.d.ts +21 -0
- package/dist/types/src/components/Table/TableContent.d.ts.map +1 -0
- package/dist/types/src/components/Table/TableToolbar.d.ts +25 -0
- package/dist/types/src/components/Table/TableToolbar.d.ts.map +1 -0
- package/dist/types/src/components/TableCellEditor/FormCellEditor.d.ts +3 -3
- package/dist/types/src/components/TableCellEditor/FormCellEditor.d.ts.map +1 -1
- package/dist/types/src/components/TableCellEditor/TableCellEditor.d.ts +2 -2
- package/dist/types/src/components/TableCellEditor/TableCellEditor.d.ts.map +1 -1
- package/dist/types/src/components/TableCellEditor/TableCellEditor.stories.d.ts +22 -24
- package/dist/types/src/components/TableCellEditor/TableCellEditor.stories.d.ts.map +1 -1
- package/dist/types/src/components/index.d.ts +0 -1
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/hooks/useAddRow.d.ts +1 -1
- package/dist/types/src/hooks/useAddRow.d.ts.map +1 -1
- package/dist/types/src/hooks/useProjectionModel.d.ts +1 -1
- package/dist/types/src/hooks/useProjectionModel.d.ts.map +1 -1
- package/dist/types/src/hooks/useTableModel.d.ts +1 -1
- package/dist/types/src/model/table-model.d.ts +5 -4
- package/dist/types/src/model/table-model.d.ts.map +1 -1
- package/dist/types/src/model/table-presentation.d.ts.map +1 -1
- package/dist/types/src/playwright/TableManager.d.ts +2 -1
- package/dist/types/src/playwright/TableManager.d.ts.map +1 -1
- package/dist/types/src/testing/useTestTableModel.d.ts +2 -2
- package/dist/types/src/testing/useTestTableModel.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +19 -21
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/Table.d.ts +1 -6
- package/dist/types/src/types/Table.d.ts.map +1 -1
- package/dist/types/src/util/dynamic-table.d.ts +6 -5
- package/dist/types/src/util/dynamic-table.d.ts.map +1 -1
- package/dist/types/src/util/dynamic-table.test.d.ts +2 -0
- package/dist/types/src/util/dynamic-table.test.d.ts.map +1 -0
- package/dist/types/src/util/query-ast.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +43 -43
- package/src/components/Table/ColumnActionsMenu.tsx +5 -5
- package/src/components/Table/ColumnSettings.tsx +3 -4
- package/src/components/Table/DynamicTable.stories.tsx +6 -5
- package/src/components/Table/DynamicTable.tsx +13 -19
- package/src/components/Table/Relations.stories.tsx +35 -25
- package/src/components/Table/Table.stories.tsx +61 -40
- package/src/components/Table/Table.tsx +41 -434
- package/src/components/Table/TableContent.tsx +422 -0
- package/src/components/{TableToolbar → Table}/TableToolbar.tsx +35 -42
- package/src/components/TableCellEditor/CellValidationMessage.tsx +4 -4
- package/src/components/TableCellEditor/FormCellEditor.tsx +12 -6
- package/src/components/TableCellEditor/TableCellEditor.stories.tsx +6 -5
- package/src/components/TableCellEditor/TableCellEditor.tsx +10 -5
- package/src/components/index.ts +0 -1
- package/src/components/testing.ts +1 -1
- package/src/hooks/useAddRow.ts +1 -1
- package/src/hooks/useProjectionModel.ts +3 -3
- package/src/hooks/useTableModel.ts +1 -1
- package/src/model/table-model.test.ts +5 -5
- package/src/model/table-model.ts +13 -12
- package/src/model/table-presentation.test.ts +5 -5
- package/src/model/table-presentation.ts +12 -11
- package/src/playwright/TableManager.ts +10 -3
- package/src/playwright/playwright.config.ts +1 -1
- package/src/playwright/smoke.spec.ts +45 -2
- package/src/testing/useTestTableModel.ts +4 -4
- package/src/translations.ts +19 -21
- package/src/types/Table.ts +11 -22
- package/src/util/dynamic-table.test.ts +70 -0
- package/src/util/dynamic-table.ts +17 -16
- package/src/util/query-ast.ts +3 -0
- package/src/util/table-buttons.ts +1 -1
- package/src/util/table-controls.ts +2 -2
- package/dist/lib/browser/chunk-I5IFW7UF.mjs.map +0 -7
- package/dist/lib/browser/chunk-OZBLY7XM.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-DDJKYJFY.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-WNZSKIRF.mjs.map +0 -7
- package/dist/types/src/components/TableToolbar/TableToolbar.d.ts +0 -21
- package/dist/types/src/components/TableToolbar/TableToolbar.d.ts.map +0 -1
- package/dist/types/src/components/TableToolbar/index.d.ts +0 -2
- package/dist/types/src/components/TableToolbar/index.d.ts.map +0 -1
- package/src/components/TableToolbar/index.ts +0 -5
|
@@ -1,28 +1,35 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
import { type Type } from '@dxos/echo';
|
|
1
|
+
import React, { type PropsWithChildren, type RefObject } from 'react';
|
|
3
2
|
import { type DxGridPosition } from '@dxos/react-ui-grid';
|
|
4
|
-
import { type InsertRowResult
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
9
|
-
|
|
3
|
+
import { type InsertRowResult } from '../../model';
|
|
4
|
+
type TableContextValue = {
|
|
5
|
+
/** Mutable ref populated by Content so Root can expose the controller. */
|
|
6
|
+
controllerRef: RefObject<TableController>;
|
|
7
|
+
};
|
|
8
|
+
declare const useTableContext: (consumerName: string) => TableContextValue;
|
|
9
|
+
type TableController = {
|
|
10
10
|
update?: (cell?: DxGridPosition) => void;
|
|
11
11
|
handleInsertRowResult?: (insertRowResult?: InsertRowResult) => void;
|
|
12
12
|
};
|
|
13
|
-
|
|
14
|
-
schema?: T;
|
|
15
|
-
model?: TableModel;
|
|
16
|
-
presentation?: TablePresentation;
|
|
17
|
-
ignoreAttention?: boolean;
|
|
18
|
-
onCreate?: OnCreateHandler;
|
|
19
|
-
onRowClick?: (row: any) => void;
|
|
20
|
-
testId?: string;
|
|
21
|
-
};
|
|
13
|
+
type TableRootProps = PropsWithChildren;
|
|
22
14
|
export declare const Table: {
|
|
23
|
-
Root:
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
15
|
+
Root: React.ForwardRefExoticComponent<{
|
|
16
|
+
children?: React.ReactNode | undefined;
|
|
17
|
+
} & React.RefAttributes<TableController>>;
|
|
18
|
+
Toolbar: React.ForwardRefExoticComponent<Omit<import("./TableToolbar").TableToolbarProps, "className"> & {
|
|
19
|
+
classNames?: import("@dxos/ui-types").ClassNameValue;
|
|
20
|
+
} & {
|
|
21
|
+
className?: string;
|
|
22
|
+
children?: React.ReactNode;
|
|
23
|
+
role?: string;
|
|
24
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
25
|
+
Content: React.ForwardRefExoticComponent<Omit<import("./TableContent").TableContentProps, "className"> & {
|
|
26
|
+
classNames?: import("@dxos/ui-types").ClassNameValue;
|
|
27
|
+
} & {
|
|
28
|
+
className?: string;
|
|
29
|
+
children?: React.ReactNode;
|
|
30
|
+
role?: string;
|
|
31
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
27
32
|
};
|
|
33
|
+
export type { TableController, TableRootProps };
|
|
34
|
+
export { useTableContext };
|
|
28
35
|
//# sourceMappingURL=Table.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../../../src/components/Table/Table.tsx"],"names":[],"mappings":"AAMA,
|
|
1
|
+
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../../../src/components/Table/Table.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAAE,KAAK,SAAS,EAA2C,MAAM,OAAO,CAAC;AAE/G,OAAO,EAAuB,KAAK,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAE/E,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,aAAa,CAAC;AAanD,KAAK,iBAAiB,GAAG;IACvB,0EAA0E;IAC1E,aAAa,EAAE,SAAS,CAAC,eAAe,CAAC,CAAC;CAC3C,CAAC;AAEF,QAAA,MAA6B,eAAe,6CAA6C,CAAC;AAM1F,KAAK,eAAe,GAAG;IACrB,MAAM,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,cAAc,KAAK,IAAI,CAAC;IACzC,qBAAqB,CAAC,EAAE,CAAC,eAAe,CAAC,EAAE,eAAe,KAAK,IAAI,CAAC;CACrE,CAAC;AAQF,KAAK,cAAc,GAAG,iBAAiB,CAAC;AAuBxC,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;CAIjB,CAAC;AAEF,YAAY,EAAE,eAAe,EAAE,cAAc,EAAE,CAAC;AAEhD,OAAO,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type Meta, type StoryObj } from '@storybook/react-vite';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
type
|
|
3
|
+
type DefaultStoryProps = {
|
|
4
4
|
rows?: number;
|
|
5
5
|
};
|
|
6
6
|
declare const meta: {
|
|
@@ -15,93 +15,91 @@ declare const meta: {
|
|
|
15
15
|
translations: ({
|
|
16
16
|
readonly 'en-US': {
|
|
17
17
|
readonly "@dxos/react-ui-table": {
|
|
18
|
-
readonly 'object
|
|
19
|
-
readonly 'create
|
|
20
|
-
readonly 'table
|
|
21
|
-
readonly 'settings
|
|
22
|
-
readonly 'table
|
|
23
|
-
readonly '
|
|
24
|
-
readonly '
|
|
25
|
-
readonly '
|
|
26
|
-
readonly '
|
|
27
|
-
readonly '
|
|
28
|
-
readonly 'column
|
|
29
|
-
readonly 'column
|
|
30
|
-
readonly 'column
|
|
31
|
-
readonly '
|
|
32
|
-
readonly '
|
|
33
|
-
readonly '
|
|
34
|
-
readonly '
|
|
35
|
-
readonly '
|
|
36
|
-
readonly '
|
|
37
|
-
readonly 'create new object label': "Create new object “{{text}}”";
|
|
38
|
-
readonly 'save view label': "Save changes to view";
|
|
18
|
+
readonly 'object.placeholder': "New table";
|
|
19
|
+
readonly 'create-object.label': "Create table";
|
|
20
|
+
readonly 'table-name.placeholder': "Table name";
|
|
21
|
+
readonly 'settings.title': "Table settings";
|
|
22
|
+
readonly 'table-schema.label': "Type";
|
|
23
|
+
readonly 'continue.label': "Continue";
|
|
24
|
+
readonly 'create-stack-section.label': "Create table";
|
|
25
|
+
readonly 'add-row.label': "Add row";
|
|
26
|
+
readonly 'column-action-sort-descending.menu': "Sort Descending";
|
|
27
|
+
readonly 'column-action-sort-ascending.menu': "Sort Ascending";
|
|
28
|
+
readonly 'column-action-clear-sorting.menu': "Clear Sorting";
|
|
29
|
+
readonly 'column-action-settings.menu': "Column Settings";
|
|
30
|
+
readonly 'column-action-delete.menu': "Delete Column";
|
|
31
|
+
readonly 'delete-row.label': "Delete row";
|
|
32
|
+
readonly 'bulk-delete-row.label': "Delete selected rows";
|
|
33
|
+
readonly 'column-deleted.label': "Column deleted";
|
|
34
|
+
readonly 'new-column-button.label': "Create column";
|
|
35
|
+
readonly 'create-new-object.label': "Create new object “{{text}}”";
|
|
36
|
+
readonly 'save-view.label': "Save changes to view";
|
|
39
37
|
};
|
|
40
38
|
};
|
|
41
39
|
} | {
|
|
42
40
|
readonly 'en-US': {
|
|
43
41
|
readonly "@dxos/react-ui-form": {
|
|
44
|
-
readonly "fields
|
|
45
|
-
readonly "hidden
|
|
46
|
-
readonly "empty
|
|
47
|
-
readonly "add
|
|
48
|
-
readonly "field
|
|
49
|
-
readonly "field
|
|
50
|
-
readonly "field
|
|
51
|
-
readonly "field
|
|
52
|
-
readonly "add
|
|
53
|
-
readonly "
|
|
54
|
-
readonly "
|
|
55
|
-
readonly "
|
|
56
|
-
readonly "
|
|
57
|
-
readonly "
|
|
58
|
-
readonly "
|
|
59
|
-
readonly "
|
|
60
|
-
readonly "ref
|
|
61
|
-
readonly "ref
|
|
62
|
-
readonly "
|
|
63
|
-
readonly "example
|
|
64
|
-
readonly "latitude
|
|
65
|
-
readonly "longitude
|
|
66
|
-
readonly "cancel
|
|
67
|
-
readonly "save
|
|
68
|
-
readonly "format
|
|
69
|
-
readonly "format
|
|
70
|
-
readonly "format
|
|
71
|
-
readonly "format
|
|
72
|
-
readonly "format
|
|
73
|
-
readonly "format
|
|
74
|
-
readonly "format
|
|
75
|
-
readonly "format
|
|
76
|
-
readonly "format
|
|
77
|
-
readonly "format
|
|
78
|
-
readonly "format
|
|
79
|
-
readonly "format
|
|
80
|
-
readonly "format
|
|
81
|
-
readonly "format
|
|
82
|
-
readonly "format
|
|
83
|
-
readonly "format
|
|
84
|
-
readonly "format
|
|
85
|
-
readonly "format
|
|
86
|
-
readonly "format
|
|
87
|
-
readonly "format
|
|
88
|
-
readonly "format
|
|
89
|
-
readonly "format
|
|
90
|
-
readonly "format
|
|
91
|
-
readonly "format
|
|
92
|
-
readonly "format
|
|
93
|
-
readonly "format
|
|
94
|
-
readonly "format
|
|
95
|
-
readonly "format
|
|
96
|
-
readonly "latitude
|
|
97
|
-
readonly "longitude
|
|
98
|
-
readonly "select
|
|
99
|
-
readonly "select
|
|
100
|
-
readonly "select
|
|
101
|
-
readonly "select
|
|
102
|
-
readonly "
|
|
103
|
-
readonly "system
|
|
104
|
-
readonly "
|
|
42
|
+
readonly "fields.label": "Fields";
|
|
43
|
+
readonly "hidden-fields.label": "Hidden Fields";
|
|
44
|
+
readonly "empty-readonly-ref-field.label": "(none)";
|
|
45
|
+
readonly "add-property-button.label": "Add property";
|
|
46
|
+
readonly "field-property.label": "Property";
|
|
47
|
+
readonly "field-property.placeholder": "Property name";
|
|
48
|
+
readonly "field-format.label": "Type";
|
|
49
|
+
readonly "field-path.label": "Field path";
|
|
50
|
+
readonly "add-field.button": "Add field";
|
|
51
|
+
readonly "boolean-input-true.value": "Yes";
|
|
52
|
+
readonly "boolean-input-false.value": "No";
|
|
53
|
+
readonly "show-field.label": "Show field";
|
|
54
|
+
readonly "hide-field.label": "Hide field";
|
|
55
|
+
readonly "delete-field.label": "Delete field";
|
|
56
|
+
readonly "ref-field-combobox-input.placeholder": "Search\u2026";
|
|
57
|
+
readonly "ref-field.placeholder": "Select\u2026";
|
|
58
|
+
readonly "ref-field.placeholder_one": "Select\u2026";
|
|
59
|
+
readonly "ref-field.placeholder_other": "Select items\u2026";
|
|
60
|
+
readonly "create-option.label": "Create";
|
|
61
|
+
readonly "example.placeholder": "Example";
|
|
62
|
+
readonly "latitude.placeholder": "Latitude (e.g., 40.7128)";
|
|
63
|
+
readonly "longitude.placeholder": "Longitude (e.g., -74.0060)";
|
|
64
|
+
readonly "cancel-button.label": "Cancel";
|
|
65
|
+
readonly "save-button.label": "Save";
|
|
66
|
+
readonly "format.boolean.label": "Boolean";
|
|
67
|
+
readonly "format.currency.label": "Currency";
|
|
68
|
+
readonly "format.date.label": "Date";
|
|
69
|
+
readonly "format.date-time.label": "DateTime";
|
|
70
|
+
readonly "format.did.label": "DID";
|
|
71
|
+
readonly "format.duration.label": "Duration";
|
|
72
|
+
readonly "format.dxn.label": "DXN";
|
|
73
|
+
readonly "format.email.label": "Email";
|
|
74
|
+
readonly "format.formula.label": "Formula";
|
|
75
|
+
readonly "format.hostname.label": "Hostname";
|
|
76
|
+
readonly "format.integer.label": "Integer";
|
|
77
|
+
readonly "format.json.label": "JSON";
|
|
78
|
+
readonly "format.lnglat.label": "Geopoint";
|
|
79
|
+
readonly "format.markdown.label": "Markdown";
|
|
80
|
+
readonly "format.percent.label": "Percent";
|
|
81
|
+
readonly "format.ref.label": "Reference";
|
|
82
|
+
readonly "format.regex.label": "RegExp";
|
|
83
|
+
readonly "format.string.label": "String";
|
|
84
|
+
readonly "format.single-select.label": "Select";
|
|
85
|
+
readonly "format.multi-select.label": "Multi-select";
|
|
86
|
+
readonly "format.text.label": "Long text";
|
|
87
|
+
readonly "format.time.label": "Time";
|
|
88
|
+
readonly "format.timestamp.label": "Timestamp";
|
|
89
|
+
readonly "format.user.label": "User";
|
|
90
|
+
readonly "format.number.label": "Number";
|
|
91
|
+
readonly "format.uri.label": "URI";
|
|
92
|
+
readonly "format.url.label": "URL";
|
|
93
|
+
readonly "format.uuid.label": "UUID";
|
|
94
|
+
readonly "latitude.label": "Latitude";
|
|
95
|
+
readonly "longitude.label": "Longitude";
|
|
96
|
+
readonly "select-option.label": "Label";
|
|
97
|
+
readonly "select-option-label.placeholder": "Option label";
|
|
98
|
+
readonly "select-option-delete.button": "Delete";
|
|
99
|
+
readonly "select-option-add.button": "Add option";
|
|
100
|
+
readonly "system-schema.title": "System type";
|
|
101
|
+
readonly "system-schema.description": "System type: cannot add or remove fields.";
|
|
102
|
+
readonly "remove.button": "Remove";
|
|
105
103
|
};
|
|
106
104
|
};
|
|
107
105
|
})[];
|
|
@@ -112,5 +110,5 @@ type Story = StoryObj<typeof meta>;
|
|
|
112
110
|
export declare const Default: Story;
|
|
113
111
|
export declare const StaticSchema: StoryObj;
|
|
114
112
|
export declare const ArrayOfObjects: StoryObj;
|
|
115
|
-
export declare const Tags: Meta<
|
|
113
|
+
export declare const Tags: Meta<DefaultStoryProps>;
|
|
116
114
|
//# 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,EAAE,KAAK,IAAI,EAAE,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEjE,OAAO,KAAsB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Table.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Table/Table.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,IAAI,EAAE,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEjE,OAAO,KAAsB,MAAM,OAAO,CAAC;AAmJ3C,KAAK,iBAAiB,GAAG;IAAE,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAQ3C,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2C6B,CAAC;AAExC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC;AAEjC,eAAO,MAAM,YAAY,EAAE,QA2B1B,CAAC;AAmBF,eAAO,MAAM,cAAc,EAAE,QA4B5B,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAAI,CAAC,iBAAiB,CAwDxC,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type Type } from '@dxos/echo';
|
|
3
|
+
import { type TableModel, type TablePresentation } from '../../model';
|
|
4
|
+
import { type OnCreateHandler } from '../TableCellEditor';
|
|
5
|
+
export type TableContentProps = {
|
|
6
|
+
schema?: Type.AnyEntity;
|
|
7
|
+
model?: TableModel;
|
|
8
|
+
presentation?: TablePresentation;
|
|
9
|
+
ignoreAttention?: boolean;
|
|
10
|
+
onCreate?: OnCreateHandler;
|
|
11
|
+
onRowClick?: (row: any) => void;
|
|
12
|
+
testId?: string;
|
|
13
|
+
};
|
|
14
|
+
export declare const TableContent: React.ForwardRefExoticComponent<Omit<TableContentProps, "className"> & {
|
|
15
|
+
classNames?: import("@dxos/ui-types").ClassNameValue;
|
|
16
|
+
} & {
|
|
17
|
+
className?: string;
|
|
18
|
+
children?: React.ReactNode;
|
|
19
|
+
role?: string;
|
|
20
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
21
|
+
//# sourceMappingURL=TableContent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableContent.d.ts","sourceRoot":"","sources":["../../../../../src/components/Table/TableContent.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAkG,MAAM,OAAO,CAAC;AAEvH,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,YAAY,CAAC;AAiBvC,OAAO,EAAyC,KAAK,UAAU,EAAE,KAAK,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAE7G,OAAO,EAAE,KAAK,eAAe,EAA+C,MAAM,oBAAoB,CAAC;AAmBvG,MAAM,MAAM,iBAAiB,GAAG;IAC9B,MAAM,CAAC,EAAE,IAAI,CAAC,SAAS,CAAC;IACxB,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,YAAY,CAAC,EAAE,iBAAiB,CAAC;IAEjC,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,EAAE,eAAe,CAAC;IAC3B,UAAU,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,KAAK,IAAI,CAAC;IAChC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,eAAO,MAAM,YAAY;;;;;;wCA0WxB,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Atom } from '@effect-atom/atom-react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { type ActionGraphProps, type MenuAction, MenuRootProps } from '@dxos/react-ui-menu';
|
|
4
|
+
export type TableToolbarActionProperties = {
|
|
5
|
+
type: TableToolbarActionType;
|
|
6
|
+
};
|
|
7
|
+
export type TableToolbarAction = MenuAction<TableToolbarActionProperties>;
|
|
8
|
+
export type TableToolbarActionType = 'add-row' | 'comment' | 'save-view';
|
|
9
|
+
type TableToolbarState = Partial<{
|
|
10
|
+
viewDirty: boolean;
|
|
11
|
+
}>;
|
|
12
|
+
export type TableToolbarProps = Pick<MenuRootProps, 'attendableId'> & TableToolbarState & {
|
|
13
|
+
onAdd?: () => void;
|
|
14
|
+
onSave?: () => void;
|
|
15
|
+
customActions?: Atom.Atom<ActionGraphProps>;
|
|
16
|
+
};
|
|
17
|
+
export declare const TableToolbar: React.ForwardRefExoticComponent<Omit<TableToolbarProps, "className"> & {
|
|
18
|
+
classNames?: import("@dxos/ui-types").ClassNameValue;
|
|
19
|
+
} & {
|
|
20
|
+
className?: string;
|
|
21
|
+
children?: React.ReactNode;
|
|
22
|
+
role?: string;
|
|
23
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
24
|
+
export {};
|
|
25
|
+
//# sourceMappingURL=TableToolbar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableToolbar.d.ts","sourceRoot":"","sources":["../../../../../src/components/Table/TableToolbar.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,IAAI,EAAmB,MAAM,yBAAyB,CAAC;AAChE,OAAO,KAAyC,MAAM,OAAO,CAAC;AAE9D,OAAO,EAGL,KAAK,gBAAgB,EAErB,KAAK,UAAU,EACf,aAAa,EAId,MAAM,qBAAqB,CAAC;AAK7B,MAAM,MAAM,4BAA4B,GAAG;IAAE,IAAI,EAAE,sBAAsB,CAAA;CAAE,CAAC;AAE5E,MAAM,MAAM,kBAAkB,GAAG,UAAU,CAAC,4BAA4B,CAAC,CAAC;AAE1E,MAAM,MAAM,sBAAsB,GAAG,SAAS,GAAG,SAAS,GAAG,WAAW,CAAC;AAEzE,KAAK,iBAAiB,GAAG,OAAO,CAAC;IAAE,SAAS,EAAE,OAAO,CAAA;CAAE,CAAC,CAAC;AAmDzD,MAAM,MAAM,iBAAiB,GAAG,IAAI,CAAC,aAAa,EAAE,cAAc,CAAC,GACjE,iBAAiB,GAAG;IAClB,KAAK,CAAC,EAAE,MAAM,IAAI,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,aAAa,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;CAC7C,CAAC;AAEJ,eAAO,MAAM,YAAY;;;;;;wCAsBxB,CAAC"}
|
|
@@ -4,8 +4,8 @@ import { Ref } from '@dxos/echo/internal';
|
|
|
4
4
|
import { type FormRootProps } from '@dxos/react-ui-form';
|
|
5
5
|
import { type FieldProjection } from '@dxos/schema';
|
|
6
6
|
import { type ModalController, type TableModel } from '../../model';
|
|
7
|
-
export type OnCreateHandler = (schema: Type.
|
|
8
|
-
export type FormCellEditorProps<T extends Type.
|
|
7
|
+
export type OnCreateHandler = (schema: Type.AnyEntity, values: any) => Parameters<typeof Ref.make>[0];
|
|
8
|
+
export type FormCellEditorProps<T extends Type.AnyEntity = Type.AnyEntity> = {
|
|
9
9
|
__gridScope: any;
|
|
10
10
|
schema?: T;
|
|
11
11
|
model?: TableModel;
|
|
@@ -14,5 +14,5 @@ export type FormCellEditorProps<T extends Type.Entity.Any = Type.Entity.Any> = {
|
|
|
14
14
|
onSave?: () => void;
|
|
15
15
|
onCreate?: OnCreateHandler;
|
|
16
16
|
} & Omit<FormRootProps<any>, 'values' | 'schema' | 'onCreate'>;
|
|
17
|
-
export declare const FormCellEditor: <T extends Type.
|
|
17
|
+
export declare const FormCellEditor: <T extends Type.AnyEntity = Type.AnyEntity>({ __gridScope, schema, model, fieldProjection, onSave, onCreate, ...formProps }: FormCellEditorProps<T>) => React.JSX.Element | null;
|
|
18
18
|
//# sourceMappingURL=FormCellEditor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormCellEditor.d.ts","sourceRoot":"","sources":["../../../../../src/components/TableCellEditor/FormCellEditor.tsx"],"names":[],"mappings":"AAKA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAEjF,OAAO,EAAU,KAAK,IAAI,EAAE,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAE,GAAG,EAAY,MAAM,qBAAqB,CAAC;AAGpD,OAAO,EAAQ,KAAK,aAAa,EAAsB,MAAM,qBAAqB,CAAC;AAEnF,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC;AAGpD,OAAO,EAAE,KAAK,eAAe,EAAE,KAAK,UAAU,EAAiB,MAAM,aAAa,CAAC;AAMnF,MAAM,MAAM,eAAe,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"FormCellEditor.d.ts","sourceRoot":"","sources":["../../../../../src/components/TableCellEditor/FormCellEditor.tsx"],"names":[],"mappings":"AAKA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAEjF,OAAO,EAAU,KAAK,IAAI,EAAE,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAE,GAAG,EAAY,MAAM,qBAAqB,CAAC;AAGpD,OAAO,EAAQ,KAAK,aAAa,EAAsB,MAAM,qBAAqB,CAAC;AAEnF,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC;AAGpD,OAAO,EAAE,KAAK,eAAe,EAAE,KAAK,UAAU,EAAiB,MAAM,aAAa,CAAC;AAMnF,MAAM,MAAM,eAAe,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC,SAAS,EAAE,MAAM,EAAE,GAAG,KAAK,UAAU,CAAC,OAAO,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;AAEtG,MAAM,MAAM,mBAAmB,CAAC,CAAC,SAAS,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,IAAI;IAC3E,WAAW,EAAE,GAAG,CAAC;IACjB,MAAM,CAAC,EAAE,CAAC,CAAC;IACX,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,eAAe,EAAE,eAAe,CAAC;IACjC,MAAM,CAAC,EAAE,eAAe,CAAC;IACzB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,CAAC,EAAE,eAAe,CAAC;CAC5B,GAAG,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,UAAU,CAAC,CAAC;AAE/D,eAAO,MAAM,cAAc,GAAI,CAAC,SAAS,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,EAAE,iFAQvE,mBAAmB,CAAC,CAAC,CAAC,6BA4JxB,CAAC"}
|
|
@@ -11,7 +11,7 @@ import { type OnCreateHandler } from './FormCellEditor';
|
|
|
11
11
|
export type QueryResult = Pick<Completion, 'label'> & {
|
|
12
12
|
data: any;
|
|
13
13
|
};
|
|
14
|
-
export type TableCellEditorProps<T extends Type.
|
|
14
|
+
export type TableCellEditorProps<T extends Type.AnyEntity = Type.AnyEntity> = {
|
|
15
15
|
schema?: T;
|
|
16
16
|
model?: TableModel;
|
|
17
17
|
modals?: ModalController;
|
|
@@ -19,6 +19,6 @@ export type TableCellEditorProps<T extends Type.Entity.Any = Type.Entity.Any> =
|
|
|
19
19
|
onCreate?: OnCreateHandler;
|
|
20
20
|
onSave?: () => void;
|
|
21
21
|
};
|
|
22
|
-
export declare const TableValueEditor: <T extends Type.
|
|
22
|
+
export declare const TableValueEditor: <T extends Type.AnyEntity = Type.AnyEntity>({ __gridScope, schema, model, modals, onFocus, onSave, onCreate, }: GridScopedProps<TableCellEditorProps<T>>) => React.JSX.Element;
|
|
23
23
|
export declare const TableCellEditor: ({ __gridScope, model, modals, onFocus, onSave, }: GridScopedProps<TableCellEditorProps>) => React.JSX.Element;
|
|
24
24
|
//# sourceMappingURL=TableCellEditor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableCellEditor.d.ts","sourceRoot":"","sources":["../../../../../src/components/TableCellEditor/TableCellEditor.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAE3D,OAAO,KAAiD,MAAM,OAAO,CAAC;AAGtE,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,YAAY,CAAC;AAGvC,OAAO,EAAE,KAAK,UAAU,EAAE,KAAK,cAAc,EAAE,MAAM,gBAAgB,CAAC;AACtE,OAAO,EAML,KAAK,eAAe,EAIrB,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EAAE,KAAK,eAAe,EAAE,KAAK,UAAU,EAAE,MAAM,aAAa,CAAC;AAGpE,OAAO,EAAkB,KAAK,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAQxE;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,IAAI,CAAC,UAAU,EAAE,OAAO,CAAC,GAAG;IACpD,IAAI,EAAE,GAAG,CAAC;CACX,CAAC;AAEF,MAAM,MAAM,oBAAoB,CA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eAAe,CAAC,oBAAoB,CAAC,CAAC,CAAC,CAAC,sBAoC1C,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,kDAM7B,eAAe,CAAC,oBAAoB,CAAC,sBA2JvC,CAAC"}
|
|
@@ -1,40 +1,38 @@
|
|
|
1
1
|
import { type StoryObj } from '@storybook/react-vite';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { type GridEditing } from '@dxos/react-ui-grid';
|
|
4
|
-
type
|
|
4
|
+
type DefaultStoryProps = {
|
|
5
5
|
editing: GridEditing;
|
|
6
6
|
};
|
|
7
7
|
declare const meta: {
|
|
8
8
|
title: string;
|
|
9
|
-
component: ({ editing }:
|
|
10
|
-
render: ({ editing }:
|
|
9
|
+
component: ({ editing }: DefaultStoryProps) => React.JSX.Element;
|
|
10
|
+
render: ({ editing }: DefaultStoryProps) => React.JSX.Element;
|
|
11
11
|
decorators: import("@storybook/react").Decorator[];
|
|
12
12
|
parameters: {
|
|
13
13
|
layout: string;
|
|
14
14
|
translations: [{
|
|
15
15
|
readonly 'en-US': {
|
|
16
16
|
readonly "@dxos/react-ui-table": {
|
|
17
|
-
readonly 'object
|
|
18
|
-
readonly 'create
|
|
19
|
-
readonly 'table
|
|
20
|
-
readonly 'settings
|
|
21
|
-
readonly 'table
|
|
22
|
-
readonly '
|
|
23
|
-
readonly '
|
|
24
|
-
readonly '
|
|
25
|
-
readonly '
|
|
26
|
-
readonly '
|
|
27
|
-
readonly 'column
|
|
28
|
-
readonly 'column
|
|
29
|
-
readonly 'column
|
|
30
|
-
readonly '
|
|
31
|
-
readonly '
|
|
32
|
-
readonly '
|
|
33
|
-
readonly '
|
|
34
|
-
readonly '
|
|
35
|
-
readonly '
|
|
36
|
-
readonly 'create new object label': "Create new object “{{text}}”";
|
|
37
|
-
readonly 'save view label': "Save changes to view";
|
|
17
|
+
readonly 'object.placeholder': "New table";
|
|
18
|
+
readonly 'create-object.label': "Create table";
|
|
19
|
+
readonly 'table-name.placeholder': "Table name";
|
|
20
|
+
readonly 'settings.title': "Table settings";
|
|
21
|
+
readonly 'table-schema.label': "Type";
|
|
22
|
+
readonly 'continue.label': "Continue";
|
|
23
|
+
readonly 'create-stack-section.label': "Create table";
|
|
24
|
+
readonly 'add-row.label': "Add row";
|
|
25
|
+
readonly 'column-action-sort-descending.menu': "Sort Descending";
|
|
26
|
+
readonly 'column-action-sort-ascending.menu': "Sort Ascending";
|
|
27
|
+
readonly 'column-action-clear-sorting.menu': "Clear Sorting";
|
|
28
|
+
readonly 'column-action-settings.menu': "Column Settings";
|
|
29
|
+
readonly 'column-action-delete.menu': "Delete Column";
|
|
30
|
+
readonly 'delete-row.label': "Delete row";
|
|
31
|
+
readonly 'bulk-delete-row.label': "Delete selected rows";
|
|
32
|
+
readonly 'column-deleted.label': "Column deleted";
|
|
33
|
+
readonly 'new-column-button.label': "Create column";
|
|
34
|
+
readonly 'create-new-object.label': "Create new object “{{text}}”";
|
|
35
|
+
readonly 'save-view.label': "Save changes to view";
|
|
38
36
|
};
|
|
39
37
|
};
|
|
40
38
|
}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableCellEditor.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/TableCellEditor/TableCellEditor.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"TableCellEditor.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/TableCellEditor/TableCellEditor.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,OAAO,EAAQ,KAAK,WAAW,EAAkB,MAAM,qBAAqB,CAAC;AAU7E,KAAK,iBAAiB,GAAG;IACvB,OAAO,EAAE,WAAW,CAAC;CACtB,CAAC;AAmBF,QAAA,MAAM,IAAI;;6BAhByB,iBAAiB;0BAAjB,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+Cf,CAAC;AAEtC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAQrB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAIA,cAAc,SAAS,CAAC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAIA,cAAc,SAAS,CAAC"}
|
|
@@ -2,7 +2,7 @@ import { type Database, type Type } from '@dxos/echo';
|
|
|
2
2
|
import { type InsertRowResult } from '../model';
|
|
3
3
|
export type UseAddRowProps = {
|
|
4
4
|
db?: Database.Database;
|
|
5
|
-
schema?: Type.
|
|
5
|
+
schema?: Type.AnyObj;
|
|
6
6
|
};
|
|
7
7
|
/**
|
|
8
8
|
* Hook that provides a safe row creation function that handles schema validation failures.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAddRow.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useAddRow.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,QAAQ,EAAO,KAAK,IAAI,EAAE,MAAM,YAAY,CAAC;AAE3D,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,UAAU,CAAC;AAEhD,MAAM,MAAM,cAAc,GAAG;IAC3B,EAAE,CAAC,EAAE,QAAQ,CAAC,QAAQ,CAAC;IACvB,MAAM,CAAC,EAAE,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"useAddRow.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useAddRow.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,QAAQ,EAAO,KAAK,IAAI,EAAE,MAAM,YAAY,CAAC;AAE3D,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,UAAU,CAAC;AAEhD,MAAM,MAAM,cAAc,GAAG;IAC3B,EAAE,CAAC,EAAE,QAAQ,CAAC,QAAQ,CAAC;IACvB,MAAM,CAAC,EAAE,IAAI,CAAC,MAAM,CAAC;CACtB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,SAAS,GAAI,gBAAgB,cAAc,aAE5C,GAAG,KAAG,eAajB,CAAC"}
|
|
@@ -2,5 +2,5 @@ import { type Registry } from '@effect-atom/atom-react';
|
|
|
2
2
|
import { Type } from '@dxos/echo';
|
|
3
3
|
import { ProjectionModel } from '@dxos/schema';
|
|
4
4
|
import { type Table } from '../types';
|
|
5
|
-
export declare const useProjectionModel: <S extends Type.
|
|
5
|
+
export declare const useProjectionModel: <S extends Type.AnyEntity>(schema: S | undefined, table: Table.Table | undefined, registry: Registry.Registry) => ProjectionModel | undefined;
|
|
6
6
|
//# sourceMappingURL=useProjectionModel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useProjectionModel.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useProjectionModel.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAGxD,OAAO,
|
|
1
|
+
{"version":3,"file":"useProjectionModel.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useProjectionModel.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAGxD,OAAO,EAAc,IAAI,EAAE,MAAM,YAAY,CAAC;AAE9C,OAAO,EAAE,eAAe,EAA4B,MAAM,cAAc,CAAC;AAEzE,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,UAAU,CAAC;AAEtC,eAAO,MAAM,kBAAkB,GAAI,CAAC,SAAS,IAAI,CAAC,SAAS,EACzD,QAAQ,CAAC,GAAG,SAAS,EACrB,OAAO,KAAK,CAAC,KAAK,GAAG,SAAS,EAC9B,UAAU,QAAQ,CAAC,QAAQ,gCAsB5B,CAAC"}
|
|
@@ -10,6 +10,6 @@ export type UseTableModelProps<T extends TableRow = TableRow> = {
|
|
|
10
10
|
rowActions?: TableRowAction[];
|
|
11
11
|
onSelectionChanged?: (selection: string[]) => void;
|
|
12
12
|
onRowAction?: (actionId: string, data: T) => void;
|
|
13
|
-
} & Pick<TableModelProps<T>, 'features' | 'onInsertRow' | 'onDeleteRows' | '
|
|
13
|
+
} & Pick<TableModelProps<T>, 'features' | 'onInsertRow' | 'onDeleteRows' | 'onColumnDelete' | 'onCellUpdate' | 'onRowOrderChange'>;
|
|
14
14
|
export declare const useTableModel: <T extends TableRow = TableRow>({ object, projection, db, rows, rowActions, features, onSelectionChanged, onRowAction, ...props }: UseTableModelProps<T>) => TableModel<T> | undefined;
|
|
15
15
|
//# sourceMappingURL=useTableModel.d.ts.map
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { Atom, type Registry } from '@effect-atom/atom-react';
|
|
2
2
|
import { Resource } from '@dxos/context';
|
|
3
3
|
import { type Database, type QueryAST } from '@dxos/echo';
|
|
4
|
+
import { type View } from '@dxos/echo';
|
|
4
5
|
import { type JsonProp, type JsonSchemaType } from '@dxos/echo/internal';
|
|
5
6
|
import { type Label } from '@dxos/react-ui';
|
|
6
7
|
import { type DxGridAxisMeta, type DxGridPlanePosition, type DxGridPosition } from '@dxos/react-ui-grid';
|
|
7
|
-
import { type ProjectionModel, type ValidationError
|
|
8
|
+
import { type ProjectionModel, type ValidationError } from '@dxos/schema';
|
|
8
9
|
import { type Table } from '../types';
|
|
9
10
|
/**
|
|
10
11
|
* Field sort configuration.
|
|
@@ -82,7 +83,7 @@ export type TableModelProps<T extends TableRow = TableRow> = {
|
|
|
82
83
|
onResolveSchema?: (typename: string) => Promise<JsonSchemaType>;
|
|
83
84
|
onInsertRow?: (data?: any) => InsertRowResult;
|
|
84
85
|
onDeleteRows?: (index: number, obj: T[]) => void;
|
|
85
|
-
|
|
86
|
+
onColumnDelete?: (fieldId: string) => void;
|
|
86
87
|
onCellUpdate?: (cell: DxGridPosition) => void;
|
|
87
88
|
onRowOrderChange?: () => void;
|
|
88
89
|
onRowAction?: (actionId: string, data: T) => void;
|
|
@@ -96,7 +97,7 @@ export declare class TableModel<T extends TableRow = TableRow> extends Resource
|
|
|
96
97
|
private readonly _visibleRange;
|
|
97
98
|
private readonly _onInsertRow?;
|
|
98
99
|
private readonly _onDeleteRows?;
|
|
99
|
-
private readonly
|
|
100
|
+
private readonly _onColumnDelete?;
|
|
100
101
|
private readonly _onCellUpdate?;
|
|
101
102
|
private readonly _onRowOrderChange?;
|
|
102
103
|
private readonly _onRowAction?;
|
|
@@ -113,7 +114,7 @@ export declare class TableModel<T extends TableRow = TableRow> extends Resource
|
|
|
113
114
|
private _selection;
|
|
114
115
|
private _columnMeta?;
|
|
115
116
|
private readonly _cellUpdateCounter;
|
|
116
|
-
constructor({ registry, object, projection, db, change, features, initialSelection, pinnedRows, rowActions, onCellUpdate,
|
|
117
|
+
constructor({ registry, object, projection, db, change, features, initialSelection, pinnedRows, rowActions, onCellUpdate, onColumnDelete, onDeleteRows, onInsertRow, onRowOrderChange, onRowAction, }: TableModelProps<T>);
|
|
117
118
|
get id(): string;
|
|
118
119
|
get view(): View.View;
|
|
119
120
|
get table(): Table.Table;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table-model.d.ts","sourceRoot":"","sources":["../../../../src/model/table-model.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,IAAI,EAAE,KAAK,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAE9D,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,KAAK,QAAQ,EAA6B,KAAK,QAAQ,EAAO,MAAM,YAAY,CAAC;AAC1F,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,cAAc,EAAgC,MAAM,qBAAqB,C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enC,cAAc,CAAC,WAAW,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;IAkBxD,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,GAAG,QAAQ,GAAG,IAAI;IAItD,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI;IASvC;;;OAGG;IACI,OAAO,CAAC,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,CAAC,cAAc,GAAG,IAAI;IAazE;;OAEG;IACI,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IAWxC;;OAEG;IACI,SAAS,IAAI,IAAI;IAIxB;;;OAGG;IACI,QAAQ,IAAI,IAAI;IA8BvB;;OAEG;IACH,OAAO,CAAC,aAAa;IASrB;;OAEG;IACI,YAAY,IAAI,OAAO;CAG/B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table-presentation.d.ts","sourceRoot":"","sources":["../../../../src/model/table-presentation.ts"],"names":[],"mappings":"AAIA,OAAO,EAAQ,KAAK,QAAQ,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"table-presentation.d.ts","sourceRoot":"","sources":["../../../../src/model/table-presentation.ts"],"names":[],"mappings":"AAIA,OAAO,EAAQ,KAAK,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAO9D,OAAO,EAEL,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EAEtB,MAAM,qBAAqB,CAAC;AAM7B,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAE,KAAK,UAAU,EAAE,KAAK,QAAQ,EAAE,MAAM,eAAe,CAAC;AAE/D;;;;GAIG;AACH,qBAAa,iBAAiB,CAAC,CAAC,SAAS,QAAQ,GAAG,QAAQ;IAOxD,OAAO,CAAC,QAAQ,CAAC,KAAK;IANxB,OAAO,CAAC,QAAQ,CAAC,SAAS,CAA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