@dxos/react-ui-table 0.8.4-main.28f8d3d → 0.8.4-main.406dc2a
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-4K7JPALT.mjs +66 -0
- package/dist/lib/browser/chunk-4K7JPALT.mjs.map +7 -0
- package/dist/lib/browser/{chunk-ZAOSIG3L.mjs → chunk-OZTXLZGM.mjs} +526 -536
- package/dist/lib/browser/chunk-OZTXLZGM.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +373 -481
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/testing/index.mjs +11 -8
- package/dist/lib/browser/testing/index.mjs.map +3 -3
- package/dist/lib/browser/types/index.mjs +3 -3
- package/dist/lib/node-esm/chunk-MK6OVUF6.mjs +67 -0
- package/dist/lib/node-esm/chunk-MK6OVUF6.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-ZOFFI3JJ.mjs → chunk-S56Z4V4X.mjs} +526 -536
- package/dist/lib/node-esm/chunk-S56Z4V4X.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +373 -481
- 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 +11 -8
- package/dist/lib/node-esm/testing/index.mjs.map +3 -3
- package/dist/lib/node-esm/types/index.mjs +3 -3
- package/dist/types/src/components/Table/DynamicTable.d.ts +2 -2
- package/dist/types/src/components/Table/DynamicTable.d.ts.map +1 -1
- package/dist/types/src/components/Table/DynamicTable.stories.d.ts +51 -3
- package/dist/types/src/components/Table/DynamicTable.stories.d.ts.map +1 -1
- package/dist/types/src/components/Table/Relations.stories.d.ts +104 -5
- package/dist/types/src/components/Table/Relations.stories.d.ts.map +1 -1
- package/dist/types/src/components/Table/Table.d.ts +8 -5
- package/dist/types/src/components/Table/Table.d.ts.map +1 -1
- package/dist/types/src/components/Table/Table.stories.d.ts +41 -3
- package/dist/types/src/components/Table/Table.stories.d.ts.map +1 -1
- package/dist/types/src/components/TableCellEditor/FormCellEditor.d.ts +12 -6
- package/dist/types/src/components/TableCellEditor/FormCellEditor.d.ts.map +1 -1
- package/dist/types/src/components/TableCellEditor/TableCellEditor.d.ts +8 -13
- package/dist/types/src/components/TableCellEditor/TableCellEditor.d.ts.map +1 -1
- package/dist/types/src/components/TableCellEditor/TableCellEditor.stories.d.ts +39 -4
- package/dist/types/src/components/TableCellEditor/TableCellEditor.stories.d.ts.map +1 -1
- package/dist/types/src/components/TableCellEditor/index.d.ts +1 -0
- package/dist/types/src/components/TableCellEditor/index.d.ts.map +1 -1
- package/dist/types/src/components/testing.d.ts +3 -3
- package/dist/types/src/components/testing.d.ts.map +1 -1
- package/dist/types/src/hooks/useAddRow.d.ts +3 -2
- package/dist/types/src/hooks/useAddRow.d.ts.map +1 -1
- package/dist/types/src/hooks/useTableModel.d.ts +1 -1
- package/dist/types/src/hooks/useTableModel.d.ts.map +1 -1
- package/dist/types/src/model/modal-controller.d.ts +0 -7
- package/dist/types/src/model/modal-controller.d.ts.map +1 -1
- package/dist/types/src/model/table-model.d.ts +7 -6
- package/dist/types/src/model/table-model.d.ts.map +1 -1
- package/dist/types/src/model/table-presentation.d.ts +1 -1
- package/dist/types/src/model/table-presentation.d.ts.map +1 -1
- package/dist/types/src/model/table-sorting.d.ts +1 -2
- package/dist/types/src/model/table-sorting.d.ts.map +1 -1
- package/dist/types/src/testing/useTestTableModel.d.ts +3 -22
- package/dist/types/src/testing/useTestTableModel.d.ts.map +1 -1
- package/dist/types/src/types/index.d.ts +1 -1
- package/dist/types/src/types/index.d.ts.map +1 -1
- package/dist/types/src/types/schema.d.ts +25 -5
- package/dist/types/src/types/schema.d.ts.map +1 -1
- package/dist/types/src/util/dynamic-table.d.ts +4 -5
- package/dist/types/src/util/dynamic-table.d.ts.map +1 -1
- package/dist/types/src/util/index.d.ts +0 -1
- package/dist/types/src/util/index.d.ts.map +1 -1
- package/dist/types/src/util/schema.d.ts +1 -1
- package/dist/types/src/util/schema.d.ts.map +1 -1
- package/dist/types/src/util/table-buttons.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +51 -50
- package/src/components/Table/DynamicTable.stories.tsx +12 -9
- package/src/components/Table/DynamicTable.tsx +4 -7
- package/src/components/Table/Relations.stories.tsx +162 -38
- package/src/components/Table/Table.stories.tsx +59 -52
- package/src/components/Table/Table.tsx +109 -90
- package/src/components/TableCellEditor/FormCellEditor.tsx +153 -42
- package/src/components/TableCellEditor/TableCellEditor.stories.tsx +22 -63
- package/src/components/TableCellEditor/TableCellEditor.tsx +62 -208
- package/src/components/TableCellEditor/index.ts +1 -0
- package/src/components/testing.ts +2 -2
- package/src/hooks/useAddRow.ts +7 -5
- package/src/hooks/useTableModel.ts +1 -1
- package/src/model/modal-controller.ts +0 -28
- package/src/model/table-model.test.ts +18 -10
- package/src/model/table-model.ts +26 -17
- package/src/model/table-presentation.test.ts +21 -20
- package/src/model/table-presentation.ts +58 -39
- package/src/model/table-sorting.ts +15 -6
- package/src/playwright/smoke.spec.ts +46 -46
- package/src/testing/useTestTableModel.ts +9 -6
- package/src/types/index.ts +1 -1
- package/src/types/schema.ts +63 -6
- package/src/util/dynamic-table.ts +11 -11
- package/src/util/index.ts +0 -1
- package/src/util/schema.ts +4 -4
- package/src/util/table-buttons.ts +3 -3
- package/dist/lib/browser/chunk-L2LSB6KV.mjs +0 -18
- package/dist/lib/browser/chunk-L2LSB6KV.mjs.map +0 -7
- package/dist/lib/browser/chunk-ZAOSIG3L.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-NXZ4CJYX.mjs +0 -20
- package/dist/lib/node-esm/chunk-NXZ4CJYX.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-ZOFFI3JJ.mjs.map +0 -7
- package/dist/types/src/components/Table/CreateRefPanel.d.ts +0 -9
- package/dist/types/src/components/Table/CreateRefPanel.d.ts.map +0 -1
- package/dist/types/src/components/TableCellEditor/extension.d.ts +0 -13
- package/dist/types/src/components/TableCellEditor/extension.d.ts.map +0 -1
- package/dist/types/src/util/table.d.ts +0 -12
- package/dist/types/src/util/table.d.ts.map +0 -1
- package/src/components/Table/CreateRefPanel.tsx +0 -86
- package/src/components/TableCellEditor/extension.ts +0 -61
- package/src/util/table.ts +0 -53
|
@@ -1,11 +1,49 @@
|
|
|
1
|
-
import '@dxos-theme';
|
|
2
1
|
import { type Meta, type StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import React from 'react';
|
|
3
3
|
type StoryProps = {
|
|
4
4
|
rows?: number;
|
|
5
5
|
};
|
|
6
|
-
declare const meta:
|
|
6
|
+
declare const meta: {
|
|
7
|
+
title: string;
|
|
8
|
+
render: () => React.JSX.Element;
|
|
9
|
+
decorators: import("@storybook/react").Decorator[];
|
|
10
|
+
parameters: {
|
|
11
|
+
layout: string;
|
|
12
|
+
controls: {
|
|
13
|
+
disable: boolean;
|
|
14
|
+
};
|
|
15
|
+
translations: [{
|
|
16
|
+
readonly 'en-US': {
|
|
17
|
+
readonly "react-ui-table": {
|
|
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': "Record type";
|
|
23
|
+
readonly 'new schema': "New record type";
|
|
24
|
+
readonly 'continue label': "Continue";
|
|
25
|
+
readonly 'create stack section label': "Create table";
|
|
26
|
+
readonly 'add row label': "Add row";
|
|
27
|
+
readonly 'create comment': "Create thread";
|
|
28
|
+
readonly 'column action sort descending': "Sort Descending";
|
|
29
|
+
readonly 'column action sort ascending': "Sort Ascending";
|
|
30
|
+
readonly 'column action clear sorting': "Clear Sorting";
|
|
31
|
+
readonly 'column action settings': "Column Settings";
|
|
32
|
+
readonly 'column action delete': "Delete Column";
|
|
33
|
+
readonly 'delete row label': "Delete row";
|
|
34
|
+
readonly 'bulk delete row label': "Delete selected rows";
|
|
35
|
+
readonly 'column deleted label': "Column deleted";
|
|
36
|
+
readonly 'new column button label': "Create column";
|
|
37
|
+
readonly 'create new object label': "Create new object “{{text}}”";
|
|
38
|
+
readonly 'save view label': "Save changes to view";
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
}];
|
|
42
|
+
};
|
|
43
|
+
};
|
|
7
44
|
export default meta;
|
|
8
|
-
|
|
45
|
+
type Story = StoryObj<typeof meta>;
|
|
46
|
+
export declare const Default: Story;
|
|
9
47
|
export declare const StaticSchema: StoryObj;
|
|
10
48
|
export declare const ArrayOfObjects: StoryObj;
|
|
11
49
|
export declare const Tags: Meta<StoryProps>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Table.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Table/Table.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,
|
|
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;AAgJ3C,KAAK,UAAU,GAAG;IAAE,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAQpC,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsC6B,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,QAuB1B,CAAC;AAmBF,eAAO,MAAM,cAAc,EAAE,QAwB5B,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAAI,CAAC,UAAU,CAuDjC,CAAC"}
|
|
@@ -1,14 +1,20 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as Schema from 'effect/Schema';
|
|
2
2
|
import React from 'react';
|
|
3
|
+
import { Ref } from '@dxos/echo/internal';
|
|
4
|
+
import { type Client } from '@dxos/react-client';
|
|
5
|
+
import { type FormProps } from '@dxos/react-ui-form';
|
|
3
6
|
import { type FieldProjection } from '@dxos/schema';
|
|
4
|
-
import { type TableModel } from '../../model';
|
|
5
|
-
type
|
|
7
|
+
import { type ModalController, type TableModel } from '../../model';
|
|
8
|
+
export type OnCreateHandler = (schema: Schema.Schema.AnyNoContext, values: any) => Parameters<typeof Ref.make>[0];
|
|
9
|
+
export type FormCellEditorProps = {
|
|
6
10
|
fieldProjection: FieldProjection;
|
|
7
11
|
model?: TableModel;
|
|
8
12
|
schema?: Schema.Schema.AnyNoContext;
|
|
9
13
|
onSave?: () => void;
|
|
14
|
+
onCreate?: OnCreateHandler;
|
|
15
|
+
client?: Client;
|
|
16
|
+
modals?: ModalController;
|
|
10
17
|
__gridScope: any;
|
|
11
|
-
}
|
|
12
|
-
export declare const FormCellEditor: ({ fieldProjection, model, schema, onSave, __gridScope }: FormCellEditorProps) => React.JSX.Element | null;
|
|
13
|
-
export {};
|
|
18
|
+
} & Omit<FormProps<any>, 'values' | 'schema' | 'onCreate'>;
|
|
19
|
+
export declare const FormCellEditor: ({ fieldProjection, model, schema, onSave, client, modals, onCreate, __gridScope, ...formProps }: FormCellEditorProps) => React.JSX.Element | null;
|
|
14
20
|
//# sourceMappingURL=FormCellEditor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormCellEditor.d.ts","sourceRoot":"","sources":["../../../../../src/components/TableCellEditor/FormCellEditor.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"FormCellEditor.d.ts","sourceRoot":"","sources":["../../../../../src/components/TableCellEditor/FormCellEditor.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAA4D,MAAM,OAAO,CAAC;AAGjF,OAAO,EAAc,GAAG,EAAiC,MAAM,qBAAqB,CAAC;AAGrF,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAGjD,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAE3D,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC;AAGpD,OAAO,EAAE,KAAK,eAAe,EAAE,KAAK,UAAU,EAAE,MAAM,aAAa,CAAC;AAIpE,MAAM,MAAM,eAAe,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,YAAY,EAAE,MAAM,EAAE,GAAG,KAAK,UAAU,CAAC,OAAO,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;AAElH,MAAM,MAAM,mBAAmB,GAAG;IAChC,eAAe,EAAE,eAAe,CAAC;IACjC,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,CAAC,YAAY,CAAC;IACpC,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,CAAC,EAAE,eAAe,CAAC;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,eAAe,CAAC;IACzB,WAAW,EAAE,GAAG,CAAC;CAClB,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,UAAU,CAAC,CAAC;AAI3D,eAAO,MAAM,cAAc,GAAI,iGAU5B,mBAAmB,6BAuKrB,CAAC"}
|
|
@@ -1,31 +1,26 @@
|
|
|
1
1
|
import { type Completion } from '@codemirror/autocomplete';
|
|
2
|
-
import
|
|
2
|
+
import type * as Schema from 'effect/Schema';
|
|
3
3
|
import React from 'react';
|
|
4
|
+
import type { Client } from '@dxos/client';
|
|
4
5
|
import { type DxGridAxis, type DxGridPosition } from '@dxos/lit-grid';
|
|
5
6
|
import { type GridScopedProps } from '@dxos/react-ui-grid';
|
|
6
|
-
import { type FieldProjection } from '@dxos/schema';
|
|
7
7
|
import { type ModalController, type TableModel } from '../../model';
|
|
8
|
-
|
|
8
|
+
import { type OnCreateHandler } from './FormCellEditor';
|
|
9
9
|
/**
|
|
10
10
|
* Option to create new object/value.
|
|
11
11
|
*/
|
|
12
|
-
export declare const createOption: (text: string) => {
|
|
13
|
-
[newValue]: boolean;
|
|
14
|
-
text: string;
|
|
15
|
-
};
|
|
16
12
|
export type QueryResult = Pick<Completion, 'label'> & {
|
|
17
13
|
data: any;
|
|
18
14
|
};
|
|
19
15
|
export type TableCellEditorProps = {
|
|
20
16
|
model?: TableModel;
|
|
21
17
|
modals?: ModalController;
|
|
22
|
-
schema?: Schema.AnyNoContext;
|
|
23
|
-
onEnter?: (cell: DxGridPosition) => void;
|
|
18
|
+
schema?: Schema.Schema.AnyNoContext;
|
|
24
19
|
onFocus?: (axis?: DxGridAxis, delta?: -1 | 0 | 1, cell?: DxGridPosition) => void;
|
|
20
|
+
onCreate?: OnCreateHandler;
|
|
25
21
|
onSave?: () => void;
|
|
26
|
-
|
|
22
|
+
client?: Client;
|
|
27
23
|
};
|
|
28
|
-
export declare const TableValueEditor: ({ model, modals, schema,
|
|
29
|
-
export declare const TableCellEditor: ({ model, modals,
|
|
30
|
-
export {};
|
|
24
|
+
export declare const TableValueEditor: ({ model, modals, schema, onFocus, onSave, onCreate, client, __gridScope, }: GridScopedProps<TableCellEditorProps>) => React.JSX.Element;
|
|
25
|
+
export declare const TableCellEditor: ({ model, modals, onFocus, onSave, __gridScope, }: GridScopedProps<TableCellEditorProps>) => React.JSX.Element;
|
|
31
26
|
//# 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;
|
|
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,KAAK,KAAK,MAAM,MAAM,eAAe,CAAC;AAC7C,OAAO,KAAiD,MAAM,OAAO,CAAC;AAGtE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAG3C,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;AAExE;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,IAAI,CAAC,UAAU,EAAE,OAAO,CAAC,GAAG;IAAE,IAAI,EAAE,GAAG,CAAA;CAAE,CAAC;AAEpE,MAAM,MAAM,oBAAoB,GAAG;IACjC,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,MAAM,CAAC,EAAE,eAAe,CAAC;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,CAAC,YAAY,CAAC;IACpC,OAAO,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,IAAI,CAAC,EAAE,cAAc,KAAK,IAAI,CAAC;IACjF,QAAQ,CAAC,EAAE,eAAe,CAAC;IAC3B,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAKF,eAAO,MAAM,gBAAgB,GAAI,4EAS9B,eAAe,CAAC,oBAAoB,CAAC,sBAqCvC,CAAC;AAIF,eAAO,MAAM,eAAe,GAAI,kDAM7B,eAAe,CAAC,oBAAoB,CAAC,sBAqJvC,CAAC"}
|
|
@@ -1,11 +1,46 @@
|
|
|
1
|
-
import '@
|
|
2
|
-
import
|
|
1
|
+
import { type StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import React from 'react';
|
|
3
3
|
import { type GridEditing } from '@dxos/react-ui-grid';
|
|
4
4
|
type StoryProps = {
|
|
5
5
|
editing: GridEditing;
|
|
6
6
|
};
|
|
7
|
-
declare const meta:
|
|
7
|
+
declare const meta: {
|
|
8
|
+
title: string;
|
|
9
|
+
component: ({ editing }: StoryProps) => React.JSX.Element;
|
|
10
|
+
render: ({ editing }: StoryProps) => React.JSX.Element;
|
|
11
|
+
decorators: import("@storybook/react").Decorator[];
|
|
12
|
+
parameters: {
|
|
13
|
+
translations: [{
|
|
14
|
+
readonly 'en-US': {
|
|
15
|
+
readonly "react-ui-table": {
|
|
16
|
+
readonly 'object placeholder': "New table";
|
|
17
|
+
readonly 'create object label': "Create table";
|
|
18
|
+
readonly 'table name placeholder': "Table name";
|
|
19
|
+
readonly 'settings title': "Table settings";
|
|
20
|
+
readonly 'table schema label': "Record type";
|
|
21
|
+
readonly 'new schema': "New record type";
|
|
22
|
+
readonly 'continue label': "Continue";
|
|
23
|
+
readonly 'create stack section label': "Create table";
|
|
24
|
+
readonly 'add row label': "Add row";
|
|
25
|
+
readonly 'create comment': "Create thread";
|
|
26
|
+
readonly 'column action sort descending': "Sort Descending";
|
|
27
|
+
readonly 'column action sort ascending': "Sort Ascending";
|
|
28
|
+
readonly 'column action clear sorting': "Clear Sorting";
|
|
29
|
+
readonly 'column action settings': "Column Settings";
|
|
30
|
+
readonly 'column action delete': "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";
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
}];
|
|
40
|
+
layout: string;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
8
43
|
export default meta;
|
|
9
|
-
type Story = StoryObj<
|
|
44
|
+
type Story = StoryObj<typeof meta>;
|
|
10
45
|
export declare const Default: Story;
|
|
11
46
|
//# sourceMappingURL=TableCellEditor.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableCellEditor.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/TableCellEditor/TableCellEditor.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,
|
|
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;AAM1B,OAAO,EAAQ,KAAK,WAAW,EAAkB,MAAM,qBAAqB,CAAC;AAS7E,KAAK,UAAU,GAAG;IAChB,OAAO,EAAE,WAAW,CAAC;CACtB,CAAC;AAkBF,QAAA,MAAM,IAAI;;6BAhByB,UAAU;0BAAV,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6CR,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/TableCellEditor/index.ts"],"names":[],"mappings":"AAIA,cAAc,mBAAmB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/TableCellEditor/index.ts"],"names":[],"mappings":"AAIA,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as Schema from 'effect/Schema';
|
|
2
2
|
import { type ProjectionModel } from '@dxos/schema';
|
|
3
|
-
export declare const TestSchema: import("@dxos/echo
|
|
3
|
+
export declare const TestSchema: import("@dxos/echo/internal").TypedObjectPrototype<import("@dxos/echo/internal").TypedObjectFields<{
|
|
4
4
|
id: import("@dxos/keys").ObjectIdClass;
|
|
5
5
|
name: Schema.optional<typeof Schema.String>;
|
|
6
6
|
age: Schema.optional<typeof Schema.Number>;
|
|
7
7
|
active: Schema.optional<typeof Schema.Boolean>;
|
|
8
8
|
netWorth: Schema.optional<typeof Schema.Number>;
|
|
9
|
-
}, import("@dxos/echo
|
|
9
|
+
}, import("@dxos/echo/internal").TypedObjectOptions>, Schema.Struct.Encoded<{
|
|
10
10
|
id: import("@dxos/keys").ObjectIdClass;
|
|
11
11
|
name: Schema.optional<typeof Schema.String>;
|
|
12
12
|
age: Schema.optional<typeof Schema.Number>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"testing.d.ts","sourceRoot":"","sources":["../../../../src/components/testing.ts"],"names":[],"mappings":"AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"testing.d.ts","sourceRoot":"","sources":["../../../../src/components/testing.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAMxC,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC;AAEpD,eAAO,MAAM,UAAU;;;;;;;;;;;;GAMrB,CAAC;AAEH,eAAO,MAAM,WAAW,GAAI,GAAG,MAAM;;;;;GAWpC,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,UAAU,EAAE,eAAe,CAAC;IAC5B,KAAK,EAAE,GAAG,EAAE,CAAC;IACb,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,uDAAuD,cAAc,SA6DjG,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type * as Schema from 'effect/Schema';
|
|
2
2
|
import { type Space } from '@dxos/client/echo';
|
|
3
|
+
import { type InsertRowResult } from '../model';
|
|
3
4
|
export type UseAddRowParams = {
|
|
4
5
|
space?: Space;
|
|
5
6
|
schema?: Schema.Schema.AnyNoContext;
|
|
@@ -9,5 +10,5 @@ export type UseAddRowParams = {
|
|
|
9
10
|
* Returns a callback that attempts to create an object and returns boolean success/failure.
|
|
10
11
|
* Can accept optional data to create objects with specific content (used for committing draft rows).
|
|
11
12
|
*/
|
|
12
|
-
export declare const useAddRow: ({ space, schema }: UseAddRowParams) => (data?: any) =>
|
|
13
|
+
export declare const useAddRow: ({ space, schema }: UseAddRowParams) => (data?: any) => InsertRowResult;
|
|
13
14
|
//# sourceMappingURL=useAddRow.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAddRow.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useAddRow.ts"],"names":[],"mappings":"AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"useAddRow.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useAddRow.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,MAAM,MAAM,eAAe,CAAC;AAG7C,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAG/C,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,UAAU,CAAC;AAEhD,MAAM,MAAM,eAAe,GAAG;IAC5B,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,CAAC,YAAY,CAAC;CACrC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,SAAS,GAAI,mBAAmB,eAAe,aAEhD,GAAG,KAAG,eAajB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type JsonSchemaType } from '@dxos/echo
|
|
1
|
+
import { type JsonSchemaType } from '@dxos/echo/internal';
|
|
2
2
|
import { type Live } from '@dxos/live-object';
|
|
3
3
|
import { type DataType, type ProjectionModel } from '@dxos/schema';
|
|
4
4
|
import { TableModel, type TableModelProps, type TableRow, type TableRowAction } from '../model';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTableModel.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useTableModel.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"useTableModel.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useTableModel.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAG9C,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC;AAGnE,OAAO,EAAE,UAAU,EAAE,KAAK,eAAe,EAAE,KAAK,QAAQ,EAAE,KAAK,cAAc,EAAE,MAAM,UAAU,CAAC;AAEhG,MAAM,MAAM,mBAAmB,CAAC,CAAC,SAAS,QAAQ,GAAG,QAAQ,IAAI;IAC/D,IAAI,CAAC,EAAE,QAAQ,CAAC,IAAI,CAAC;IACrB,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB,UAAU,CAAC,EAAE,eAAe,CAAC;IAC7B,IAAI,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC;IACjB,UAAU,CAAC,EAAE,cAAc,EAAE,CAAC;IAC9B,kBAAkB,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IACnD,WAAW,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,KAAK,IAAI,CAAC;CACnD,GAAG,IAAI,CACN,eAAe,CAAC,CAAC,CAAC,EAClB,UAAU,GAAG,aAAa,GAAG,cAAc,GAAG,gBAAgB,GAAG,cAAc,GAAG,kBAAkB,CACrG,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,CAAC,SAAS,QAAQ,GAAG,QAAQ,EAAE,qGAU1D,mBAAmB,CAAC,CAAC,CAAC,KAAG,UAAU,CAAC,CAAC,CAAC,GAAG,SAkE3C,CAAC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { type RefObject } from 'react';
|
|
2
|
-
import { type Live } from '@dxos/live-object';
|
|
3
2
|
export type ColumnSettingsMode = {
|
|
4
3
|
type: 'create';
|
|
5
4
|
} | {
|
|
@@ -16,11 +15,6 @@ export type ModalState = {
|
|
|
16
15
|
type: 'refPanel';
|
|
17
16
|
targetId: string;
|
|
18
17
|
typename: string;
|
|
19
|
-
} | {
|
|
20
|
-
type: 'createRefPanel';
|
|
21
|
-
typename: string;
|
|
22
|
-
initialValues?: Record<string, string>;
|
|
23
|
-
onCreate?: (obj: Live<any>) => void;
|
|
24
18
|
} | {
|
|
25
19
|
type: 'columnSettings';
|
|
26
20
|
mode: ColumnSettingsMode;
|
|
@@ -38,7 +32,6 @@ export declare class ModalController {
|
|
|
38
32
|
showColumnCreator: () => void;
|
|
39
33
|
showReferencePanel: (targetId: string, schemaId: string) => void;
|
|
40
34
|
openColumnSettings: () => void;
|
|
41
|
-
openCreateRef: (typename: string, anchorCell: Element | null, initialValues?: Record<string, string>, onCreate?: (obj: Live<any>) => void) => void;
|
|
42
35
|
close: () => void;
|
|
43
36
|
}
|
|
44
37
|
//# sourceMappingURL=modal-controller.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modal-controller.d.ts","sourceRoot":"","sources":["../../../../src/model/modal-controller.ts"],"names":[],"mappings":"AAKA,OAAO,EAAyB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAE9D,
|
|
1
|
+
{"version":3,"file":"modal-controller.d.ts","sourceRoot":"","sources":["../../../../src/model/modal-controller.ts"],"names":[],"mappings":"AAKA,OAAO,EAAyB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAE9D,MAAM,MAAM,kBAAkB,GAAG;IAAE,IAAI,EAAE,QAAQ,CAAA;CAAE,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC;AAExF,MAAM,MAAM,UAAU,GAClB;IAAE,IAAI,EAAE,KAAK,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,GACjC;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,GACnC;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,GACxD;IAAE,IAAI,EAAE,gBAAgB,CAAC;IAAC,IAAI,EAAE,kBAAkB,CAAA;CAAE,GACpD;IAAE,IAAI,EAAE,QAAQ,CAAA;CAAE,CAAC;AAEvB,qBAAa,eAAe;IAC1B,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA0C;IACjE,OAAO,CAAC,QAAQ,CAAC,WAAW,CAA8E;IAE1G,IAAW,KAAK,sDAEf;IAED,IAAW,OAAO,IACW,SAAS,CAAC,iBAAiB,CAAC,CACxD;IAEM,UAAU,GAAI,SAAS,WAAW,UAEvC;IAEK,WAAW,GAAI,UAAU,MAAM,UAEpC;IAEK,cAAc,GAAI,SAAS,MAAM,UAEtC;IAEK,iBAAiB,aAEtB;IAEK,kBAAkB,GAAI,UAAU,MAAM,EAAE,UAAU,MAAM,UAE7D;IAEK,kBAAkB,aAWvB;IAEK,KAAK,aAEV;CACH"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { type ReadonlySignal } from '@preact/signals-core';
|
|
2
2
|
import { Resource } from '@dxos/context';
|
|
3
|
-
import { type
|
|
3
|
+
import { type JsonProp, type JsonSchemaType } from '@dxos/echo/internal';
|
|
4
4
|
import { type Label } from '@dxos/react-ui';
|
|
5
5
|
import { type DxGridAxisMeta, type DxGridPlanePosition, type DxGridPosition } from '@dxos/react-ui-grid';
|
|
6
|
-
import { type DataType, ProjectionModel, type ValidationError } from '@dxos/schema';
|
|
7
|
-
import {
|
|
6
|
+
import { type DataType, type FieldSortType, ProjectionModel, type ValidationError } from '@dxos/schema';
|
|
7
|
+
import { Table } from '../types';
|
|
8
8
|
import { type SelectionMode, SelectionModel } from './selection-model';
|
|
9
9
|
import { TableSorting } from './table-sorting';
|
|
10
10
|
export type TableCellType = 'standard' | 'draft' | 'header';
|
|
@@ -34,6 +34,7 @@ export type TableFeatures = {
|
|
|
34
34
|
dataEditable: boolean;
|
|
35
35
|
schemaEditable: boolean;
|
|
36
36
|
};
|
|
37
|
+
export type InsertRowResult = 'draft' | 'final';
|
|
37
38
|
export type TableModelProps<T extends TableRow = TableRow> = {
|
|
38
39
|
view: DataType.View;
|
|
39
40
|
schema: JsonSchemaType;
|
|
@@ -47,7 +48,7 @@ export type TableModelProps<T extends TableRow = TableRow> = {
|
|
|
47
48
|
};
|
|
48
49
|
rowActions?: TableRowAction[];
|
|
49
50
|
onResolveSchema?: (typename: string) => Promise<JsonSchemaType>;
|
|
50
|
-
onInsertRow?: (data?: any) =>
|
|
51
|
+
onInsertRow?: (data?: any) => InsertRowResult;
|
|
51
52
|
onDeleteRows?: (index: number, obj: T[]) => void;
|
|
52
53
|
onDeleteColumn?: (fieldId: string) => void;
|
|
53
54
|
onCellUpdate?: (cell: DxGridPosition) => void;
|
|
@@ -76,7 +77,7 @@ export declare class TableModel<T extends TableRow = TableRow> extends Resource
|
|
|
76
77
|
constructor({ view, schema, projection, features, sorting, initialSelection, pinnedRows, rowActions, onCellUpdate, onDeleteColumn, onDeleteRows, onInsertRow, onRowOrderChange, onRowAction, }: TableModelProps<T>);
|
|
77
78
|
get id(): string;
|
|
78
79
|
get view(): DataType.View;
|
|
79
|
-
get table():
|
|
80
|
+
get table(): Table.Table;
|
|
80
81
|
get projection(): ProjectionModel;
|
|
81
82
|
get rows(): ReadonlySignal<T[]>;
|
|
82
83
|
get features(): TableFeatures;
|
|
@@ -112,7 +113,7 @@ export declare class TableModel<T extends TableRow = TableRow> extends Resource
|
|
|
112
113
|
*/
|
|
113
114
|
hasDraftRowValidationError(draftRowIndex: number, fieldPath: string): boolean;
|
|
114
115
|
getColumnCount: () => number;
|
|
115
|
-
insertRow: () =>
|
|
116
|
+
insertRow: () => InsertRowResult;
|
|
116
117
|
private createDraftRow;
|
|
117
118
|
private validateDraftRow;
|
|
118
119
|
private validateDraftRowData;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table-model.d.ts","sourceRoot":"","sources":["../../../../src/model/table-model.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,cAAc,EAA4B,MAAM,sBAAsB,CAAC;AAErF,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEzC,OAAO,
|
|
1
|
+
{"version":3,"file":"table-model.d.ts","sourceRoot":"","sources":["../../../../src/model/table-model.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,cAAc,EAA4B,MAAM,sBAAsB,CAAC;AAErF,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEzC,OAAO,EAEL,KAAK,QAAQ,EACb,KAAK,cAAc,EAKpB,MAAM,qBAAqB,CAAC;AAK7B,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAE5C,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,mBAAmB,EAExB,KAAK,cAAc,EACpB,MAAM,qBAAqB,CAAC;AAC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AAE,MAAM,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,GAAG,GAAG,IAAI;IAU3F;;;;;OAKG;IACI,WAAW,CAAC,IAAI,EAAE,cAAc,GAAG,aAAa;IAYvD;;;;OAIG;IACI,WAAW,CAAC,IAAI,EAAE,cAAc,GAAG,OAAO;IAQ1C,YAAY,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IAenC,cAAc,CAAC,WAAW,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;IAgBxD,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,GAAG,QAAQ,GAAG,IAAI;IAItD,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI;IAShC,QAAQ,IAAI,IAAI;CAGxB"}
|
|
@@ -25,7 +25,7 @@ export declare class TablePresentation<T extends TableRow = TableRow> {
|
|
|
25
25
|
private getSelectAllCell;
|
|
26
26
|
private getNewColumnCell;
|
|
27
27
|
private getDraftActionCells;
|
|
28
|
-
private
|
|
28
|
+
private getDraftIconCells;
|
|
29
29
|
}
|
|
30
30
|
export declare const cellClassesForRowSelection: (selected: boolean, selectionMode: SelectionMode) => string[] | undefined;
|
|
31
31
|
//# sourceMappingURL=table-presentation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table-presentation.d.ts","sourceRoot":"","sources":["../../../../src/model/table-presentation.ts"],"names":[],"mappings":"AAUA,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;IAIxD,OAAO,CAAC,QAAQ,CA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IA2B3B,OAAO,CAAC,iBAAiB;CAe1B;AAED,eAAO,MAAM,0BAA0B,GAAI,UAAU,OAAO,EAAE,eAAe,aAAa,yBAezF,CAAC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { type ReadonlySignal, type Signal } from '@preact/signals-core';
|
|
2
|
-
import {
|
|
3
|
-
import type { DataType, ProjectionModel } from '@dxos/schema';
|
|
2
|
+
import type { DataType, FieldSortType, ProjectionModel, SortDirectionType } from '@dxos/schema';
|
|
4
3
|
import { type TableRow } from './table-model';
|
|
5
4
|
/**
|
|
6
5
|
* Manages table sorting functionality through display and data index mapping.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table-sorting.d.ts","sourceRoot":"","sources":["../../../../src/model/table-sorting.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,MAAM,EAAoB,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"table-sorting.d.ts","sourceRoot":"","sources":["../../../../src/model/table-sorting.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,MAAM,EAAoB,MAAM,sBAAsB,CAAC;AAK1F,OAAO,KAAK,EACV,QAAQ,EACR,aAAa,EAEb,eAAe,EAEf,iBAAiB,EAClB,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,eAAe,CAAC;AAY9C;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,qBAAa,YAAY,CAAC,CAAC,SAAS,QAAQ;IASxC,OAAO,CAAC,QAAQ,CAAC,KAAK;IACtB,OAAO,CAAC,QAAQ,CAAC,WAAW;IAT9B,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAA6B;IACjE,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAc;IACpC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAgC;IAC3D,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAA0B;IACnD,SAAgB,UAAU,EAAE,cAAc,CAAC,CAAC,EAAE,CAAC,CAAC;gBAG9C,IAAI,EAAE,MAAM,CAAC,CAAC,EAAE,CAAC,EACA,KAAK,EAAE,QAAQ,CAAC,IAAI,EACpB,WAAW,EAAE,eAAe;IAoB/C;;;OAGG;IACH,IAAW,OAAO,IAAI,aAAa,GAAG,SAAS,CAU9C;IAED;;;OAGG;IACH,IAAW,OAAO,IAAI,OAAO,CAE5B;IAEM,YAAY,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM;IAI1C,OAAO,CAAC,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,iBAAiB,GAAG,IAAI;IAO5D,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IAiBjC,SAAS,IAAI,IAAI;IAIjB,IAAI,IAAI,IAAI;IAenB,OAAO,CAAC,oBAAoB;IAkC5B,OAAO,CAAC,YAAY;CAsCrB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ProjectionModel } from '@dxos/schema';
|
|
1
|
+
import { DataType, ProjectionModel } from '@dxos/schema';
|
|
2
2
|
import { type TableController } from '../components';
|
|
3
3
|
import { TablePresentation } from '../model';
|
|
4
4
|
/**
|
|
@@ -7,28 +7,9 @@ import { TablePresentation } from '../model';
|
|
|
7
7
|
*/
|
|
8
8
|
export declare const useTestTableModel: () => {
|
|
9
9
|
schema: import("effect/Schema").Schema.AnyNoContext | undefined;
|
|
10
|
-
view: import("@dxos/live-object").Live<
|
|
11
|
-
name?: string | undefined;
|
|
12
|
-
query: import("@dxos/echo-schema").QueryType;
|
|
13
|
-
projection: {
|
|
14
|
-
schema?: import("@dxos/echo-schema").JsonSchemaType | undefined;
|
|
15
|
-
fields: {
|
|
16
|
-
id: string;
|
|
17
|
-
path: import("@dxos/effect").JsonPath;
|
|
18
|
-
referencePath?: import("@dxos/effect").JsonPath | undefined;
|
|
19
|
-
visible?: boolean | undefined;
|
|
20
|
-
}[];
|
|
21
|
-
hiddenFields?: {
|
|
22
|
-
id: string;
|
|
23
|
-
path: import("@dxos/effect").JsonPath;
|
|
24
|
-
referencePath?: import("@dxos/effect").JsonPath | undefined;
|
|
25
|
-
visible?: boolean | undefined;
|
|
26
|
-
}[] | undefined;
|
|
27
|
-
};
|
|
28
|
-
presentation: import("@dxos/echo-schema").Ref<import("@dxos/echo/Type").Expando>;
|
|
29
|
-
}> | undefined;
|
|
10
|
+
view: import("@dxos/live-object").Live<DataType.View> | undefined;
|
|
30
11
|
projection: ProjectionModel | undefined;
|
|
31
|
-
tableRef: import("react").RefObject<TableController>;
|
|
12
|
+
tableRef: import("react").RefObject<TableController | null>;
|
|
32
13
|
model: import("..").TableModel<any> | undefined;
|
|
33
14
|
presentation: TablePresentation<any> | undefined;
|
|
34
15
|
space: import("@dxos/client-protocol").Space | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTestTableModel.d.ts","sourceRoot":"","sources":["../../../../src/testing/useTestTableModel.ts"],"names":[],"mappings":"AAYA,OAAO,
|
|
1
|
+
{"version":3,"file":"useTestTableModel.d.ts","sourceRoot":"","sources":["../../../../src/testing/useTestTableModel.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAwB,MAAM,cAAc,CAAC;AAE/E,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,eAAe,CAAC;AAErD,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAI7C;;;GAGG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;0BA0CtB,MAAM,WAAW,GAAG,EAAE;kCAShB,MAAM;CAkDnB,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './schema';
|
|
1
|
+
export * as Table from './schema';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/types/index.ts"],"names":[],"mappings":"AAIA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/types/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,MAAM,UAAU,CAAC"}
|
|
@@ -1,8 +1,28 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Type } from '@dxos/echo';
|
|
3
|
-
import { JsonPath } from '@dxos/
|
|
4
|
-
|
|
1
|
+
import * as Schema from 'effect/Schema';
|
|
2
|
+
import { Obj, Type } from '@dxos/echo';
|
|
3
|
+
import { JsonPath, type JsonSchemaType, toEffectSchema } from '@dxos/echo/internal';
|
|
4
|
+
import { type CreateViewFromSpaceProps, type DataType } from '@dxos/schema';
|
|
5
|
+
export declare const Table: Type.obj<Schema.Struct<{
|
|
5
6
|
sizes: Schema.mutable<Schema.Record$<Schema.Schema<JsonPath, JsonPath, never>, typeof Schema.Number>>;
|
|
6
7
|
}>>;
|
|
7
|
-
export type
|
|
8
|
+
export type Table = Schema.Schema.Type<typeof Table>;
|
|
9
|
+
/**
|
|
10
|
+
* Make a table view.
|
|
11
|
+
*/
|
|
12
|
+
export declare const make: (props?: Partial<Obj.MakeProps<typeof Table>>) => import("@dxos/live-object").Live<Type.OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
13
|
+
sizes: {
|
|
14
|
+
[x: string & {
|
|
15
|
+
__JsonPath: true;
|
|
16
|
+
}]: number;
|
|
17
|
+
};
|
|
18
|
+
}>;
|
|
19
|
+
type MakeViewProps = Omit<CreateViewFromSpaceProps, 'presentation'> & {
|
|
20
|
+
sizes?: Record<string, number>;
|
|
21
|
+
};
|
|
22
|
+
export declare const makeView: ({ sizes, ...props }: MakeViewProps) => Promise<{
|
|
23
|
+
jsonSchema: JsonSchemaType;
|
|
24
|
+
view: DataType.View;
|
|
25
|
+
schema: ReturnType<typeof toEffectSchema>;
|
|
26
|
+
}>;
|
|
27
|
+
export {};
|
|
8
28
|
//# sourceMappingURL=schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/types/schema.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/types/schema.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,KAAK,cAAc,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAGpF,OAAO,EAAE,KAAK,wBAAwB,EAAE,KAAK,QAAQ,EAA4C,MAAM,cAAc,CAAC;AAEtH,eAAO,MAAM,KAAK;;GAWjB,CAAC;AAEF,MAAM,MAAM,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,KAAK,CAAC,CAAC;AAErD;;GAEG;AACH,eAAO,MAAM,IAAI,GAAI,QAAO,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,OAAO,KAAK,CAAC,CAAM;;;;;;EAA6C,CAAC;AAEnH,KAAK,aAAa,GAAG,IAAI,CAAC,wBAAwB,EAAE,cAAc,CAAC,GAAG;IACpE,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAChC,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAU,qBAG5B,aAAa,KAAG,OAAO,CAAC;IACzB,UAAU,EAAE,cAAc,CAAC;IAC3B,IAAI,EAAE,QAAQ,CAAC,IAAI,CAAC;IACpB,MAAM,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;CAC3C,CA4BA,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import type { JsonSchemaType
|
|
3
|
-
import { type DataType, ProjectionModel, type SchemaPropertyDefinition } from '@dxos/schema';
|
|
1
|
+
import type * as Schema from 'effect/Schema';
|
|
2
|
+
import type { JsonSchemaType } from '@dxos/echo/internal';
|
|
3
|
+
import { type DataType, ProjectionModel, type SchemaPropertyDefinition, type SortDirectionType } from '@dxos/schema';
|
|
4
4
|
type PropertyDisplayProps = {
|
|
5
5
|
size: number;
|
|
6
6
|
title: string;
|
|
@@ -19,8 +19,7 @@ export declare const getBaseSchema: ({ typename, properties, jsonSchema, schema,
|
|
|
19
19
|
typename: string;
|
|
20
20
|
jsonSchema: JsonSchemaType;
|
|
21
21
|
};
|
|
22
|
-
export declare const makeDynamicTable: ({
|
|
23
|
-
typename: string;
|
|
22
|
+
export declare const makeDynamicTable: ({ jsonSchema, properties, }: {
|
|
24
23
|
jsonSchema: JsonSchemaType;
|
|
25
24
|
properties?: TablePropertyDefinition[];
|
|
26
25
|
}) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dynamic-table.d.ts","sourceRoot":"","sources":["../../../../src/util/dynamic-table.ts"],"names":[],"mappings":"AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"dynamic-table.d.ts","sourceRoot":"","sources":["../../../../src/util/dynamic-table.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,MAAM,MAAM,eAAe,CAAC;AAI7C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,EACL,KAAK,QAAQ,EACb,eAAe,EACf,KAAK,wBAAwB,EAC7B,KAAK,iBAAiB,EAGvB,MAAM,cAAc,CAAC;AAKtB,KAAK,oBAAoB,GAAG;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,iBAAiB,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG,wBAAwB,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAAC;AAE/F;;GAEG;AAEH,eAAO,MAAM,aAAa,GAAI,+CAK3B;IACD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,uBAAuB,EAAE,CAAC;IACvC,UAAU,CAAC,EAAE,cAAc,CAAC;IAC5B,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,CAAC,YAAY,CAAC;CACrC,KAAG;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,cAAc,CAAA;CAWjD,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,6BAG9B;IACD,UAAU,EAAE,cAAc,CAAC;IAC3B,UAAU,CAAC,EAAE,uBAAuB,EAAE,CAAC;CACxC,KAAG;IAAE,UAAU,EAAE,eAAe,CAAC;IAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,CAAA;CAgBrD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/util/index.ts"],"names":[],"mappings":"AAIA,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/util/index.ts"],"names":[],"mappings":"AAIA,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,UAAU,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/util/schema.ts"],"names":[],"mappings":"AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/util/schema.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC;;;;;;;;GAQG;AACH,eAAO,MAAM,YAAY,GAAI,CAAC,SAAS,MAAM,CAAC,MAAM,CAAC,YAAY,EAC/D,QAAQ,CAAC,EACT,OAAO,MAAM,EAAE,KACd,MAAM,CAAC,MAAM,CAAC,OAAO,EAAE,OAAO,CAAC,GAAG,SAgBpC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table-buttons.d.ts","sourceRoot":"","sources":["../../../../src/util/table-buttons.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,WAAW,GAAG,gBAAgB,GAAG,SAAS,GAAG,WAAW,GAAG,gBAAgB,GAAG,MAAM,GAAG,cAAc,CAAC;AAElH,eAAO,MAAM,kBAAkB,EAAE;KAAG,CAAC,IAAI,WAAW,GAAG,MAAM;CAOnD,CAAC;AAEX,KAAK,UAAU,GACX;IAAE,IAAI,EAAE,gBAAgB,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,GAC3C;IAAE,IAAI,EAAE,WAAW,CAAC;IAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAE,GACzC;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,GACrC;IAAE,IAAI,EAAE,cAAc,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAE,GAC9D;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,KAAK,GAAG,MAAM,CAAA;CAAE,CAAC;AA2HlE,eAAO,MAAM,YAAY;;;;
|
|
1
|
+
{"version":3,"file":"table-buttons.d.ts","sourceRoot":"","sources":["../../../../src/util/table-buttons.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,WAAW,GAAG,gBAAgB,GAAG,SAAS,GAAG,WAAW,GAAG,gBAAgB,GAAG,MAAM,GAAG,cAAc,CAAC;AAElH,eAAO,MAAM,kBAAkB,EAAE;KAAG,CAAC,IAAI,WAAW,GAAG,MAAM;CAOnD,CAAC;AAEX,KAAK,UAAU,GACX;IAAE,IAAI,EAAE,gBAAgB,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,GAC3C;IAAE,IAAI,EAAE,WAAW,CAAC;IAAC,QAAQ,CA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