@dxos/react-ui-table 0.8.2-main.fbd8ed0 → 0.8.2-staging.4d6ad0f
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-PFFO5LYM.mjs → chunk-U6LL2AVU.mjs} +5 -6
- package/dist/lib/browser/chunk-U6LL2AVU.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +972 -911
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/types/index.mjs +1 -1
- package/dist/lib/node/{chunk-VREQOYRW.cjs → chunk-CXDGXPM6.cjs} +7 -8
- package/dist/lib/node/chunk-CXDGXPM6.cjs.map +7 -0
- package/dist/lib/node/index.cjs +973 -912
- package/dist/lib/node/index.cjs.map +3 -3
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/types/index.cjs +3 -3
- package/dist/lib/node/types/index.cjs.map +1 -1
- package/dist/lib/node-esm/{chunk-34JG3SDI.mjs → chunk-EFSM52KQ.mjs} +5 -6
- package/dist/lib/node-esm/chunk-EFSM52KQ.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +972 -911
- package/dist/lib/node-esm/index.mjs.map +3 -3
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/types/index.mjs +1 -1
- package/dist/types/src/components/Table/Table.stories.d.ts.map +1 -1
- package/dist/types/src/components/Table/relations.stories.d.ts.map +1 -1
- package/dist/types/src/components/TableCellEditor/TableCellEditor.stories.d.ts.map +1 -1
- package/dist/types/src/components/TableToolbar/TableToolbar.d.ts +6 -3
- package/dist/types/src/components/TableToolbar/TableToolbar.d.ts.map +1 -1
- package/dist/types/src/components/testing.d.ts +4 -4
- package/dist/types/src/hooks/useTableModel.d.ts.map +1 -1
- package/dist/types/src/model/selection-model.d.ts.map +1 -1
- package/dist/types/src/model/table-model.d.ts.map +1 -1
- package/dist/types/src/types/table.d.ts +2 -2
- package/dist/types/src/types/table.d.ts.map +1 -1
- package/dist/types/src/util/table.d.ts.map +1 -1
- package/package.json +41 -35
- package/src/components/Table/Table.stories.tsx +16 -28
- package/src/components/Table/relations.stories.tsx +1 -2
- package/src/components/TableCellEditor/FormCellEditor.tsx +2 -2
- package/src/components/TableCellEditor/TableCellEditor.stories.tsx +2 -1
- package/src/components/TableToolbar/TableToolbar.tsx +62 -31
- package/src/hooks/useTableModel.ts +4 -2
- package/src/model/selection-model.ts +1 -1
- package/src/model/table-model.ts +1 -1
- package/src/model/table-presentation.ts +1 -1
- package/src/types/table.ts +2 -5
- package/src/util/table-buttons.ts +1 -1
- package/src/util/table.ts +3 -3
- package/dist/lib/browser/chunk-PFFO5LYM.mjs.map +0 -7
- package/dist/lib/node/chunk-VREQOYRW.cjs.map +0 -7
- package/dist/lib/node-esm/chunk-34JG3SDI.mjs.map +0 -7
|
@@ -38,7 +38,7 @@ export const FormCellEditor = ({ fieldProjection, model, schema, __gridScope }:
|
|
|
38
38
|
return undefined;
|
|
39
39
|
}
|
|
40
40
|
return narrowSchema(schema, [fieldProjection.field.path]);
|
|
41
|
-
}, [JSON.stringify(schema), fieldProjection.field.path]);
|
|
41
|
+
}, [JSON.stringify(schema), fieldProjection.field.path]); // TODO(burdon): Avoid stringify.
|
|
42
42
|
|
|
43
43
|
const originalRow = useMemo(() => {
|
|
44
44
|
if (model && editing) {
|
|
@@ -85,7 +85,7 @@ export const FormCellEditor = ({ fieldProjection, model, schema, __gridScope }:
|
|
|
85
85
|
return (
|
|
86
86
|
<Popover.Root open={editing !== null} onOpenChange={handleOpenChange}>
|
|
87
87
|
<Popover.VirtualTrigger virtualRef={cellRef} />
|
|
88
|
-
<Popover.Content tabIndex={-1} classNames='popover-
|
|
88
|
+
<Popover.Content tabIndex={-1} classNames='popover-card-width'>
|
|
89
89
|
<Popover.Arrow />
|
|
90
90
|
<Form values={formValues} schema={narrowedSchema as any} onSave={handleSave} />
|
|
91
91
|
</Popover.Content>
|
|
@@ -61,7 +61,8 @@ const DefaultStory = ({ editing }: StoryProps) => {
|
|
|
61
61
|
const model = useTableModel({ table, projection, features });
|
|
62
62
|
|
|
63
63
|
const handleQuery: TableCellEditorProps['onQuery'] = async ({ field }) => {
|
|
64
|
-
|
|
64
|
+
// TODO(dmaretskyi): If no schema query nothing
|
|
65
|
+
const { objects } = await space.db.query(schema ? Filter.type(schema) : Filter.everything()).run();
|
|
65
66
|
return objects.map((obj) => {
|
|
66
67
|
const label = obj[field.referencePath ?? 'id'];
|
|
67
68
|
return {
|
|
@@ -2,11 +2,15 @@
|
|
|
2
2
|
// Copyright 2024 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import
|
|
5
|
+
import { Rx } from '@effect-rx/rx-react';
|
|
6
|
+
import React, { useMemo } from 'react';
|
|
6
7
|
|
|
7
8
|
import { live } from '@dxos/live-object';
|
|
8
9
|
import { type ThemedClassName } from '@dxos/react-ui';
|
|
9
10
|
import {
|
|
11
|
+
type ActionGraphEdges,
|
|
12
|
+
type ActionGraphNodes,
|
|
13
|
+
type ActionGraphProps,
|
|
10
14
|
createGapSeparator,
|
|
11
15
|
createMenuAction,
|
|
12
16
|
type MenuAction,
|
|
@@ -14,6 +18,7 @@ import {
|
|
|
14
18
|
ToolbarMenu,
|
|
15
19
|
useMenuActions,
|
|
16
20
|
} from '@dxos/react-ui-menu';
|
|
21
|
+
import { rxFromSignal } from '@dxos/react-ui-menu';
|
|
17
22
|
|
|
18
23
|
import { translationKey } from '../../translations';
|
|
19
24
|
|
|
@@ -26,41 +31,67 @@ export type TableToolbarActionType = 'add-row' | 'comment' | 'save-view';
|
|
|
26
31
|
type TableToolbarState = Partial<{ viewDirty: boolean }>;
|
|
27
32
|
|
|
28
33
|
export type TableToolbarProps = ThemedClassName<
|
|
29
|
-
TableToolbarState & {
|
|
34
|
+
TableToolbarState & {
|
|
35
|
+
onAdd: () => void;
|
|
36
|
+
onSave: () => void;
|
|
37
|
+
attendableId?: string;
|
|
38
|
+
customActions?: Rx.Rx<ActionGraphProps>;
|
|
39
|
+
}
|
|
30
40
|
>;
|
|
31
41
|
|
|
32
|
-
const createTableToolbarActions = (
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
42
|
+
const createTableToolbarActions = ({
|
|
43
|
+
state,
|
|
44
|
+
onAdd,
|
|
45
|
+
onSave,
|
|
46
|
+
customActions,
|
|
47
|
+
}: {
|
|
48
|
+
state: TableToolbarState;
|
|
49
|
+
onAdd: () => void;
|
|
50
|
+
onSave: () => void;
|
|
51
|
+
customActions?: Rx.Rx<ActionGraphProps>;
|
|
52
|
+
}) =>
|
|
53
|
+
Rx.make((get) => {
|
|
54
|
+
const add = createMenuAction<TableToolbarActionProperties>('add-row', onAdd, {
|
|
55
|
+
type: 'add-row' as const,
|
|
56
|
+
icon: 'ph--plus--regular',
|
|
57
|
+
label: ['add row', { ns: translationKey }],
|
|
58
|
+
testId: 'table.toolbar.add-row',
|
|
59
|
+
});
|
|
60
|
+
const save = createMenuAction<TableToolbarActionProperties>('save-view', onSave, {
|
|
61
|
+
type: 'save-view' as const,
|
|
62
|
+
icon: 'ph--floppy-disk--regular',
|
|
63
|
+
label: ['save view label', { ns: translationKey }],
|
|
64
|
+
testId: 'table.toolbar.save-view',
|
|
65
|
+
iconOnly: false,
|
|
66
|
+
hidden: get(rxFromSignal(() => !state.viewDirty)),
|
|
67
|
+
});
|
|
68
|
+
const gap = createGapSeparator();
|
|
69
|
+
const nodes: ActionGraphNodes = [add, save, ...gap.nodes];
|
|
70
|
+
const edges: ActionGraphEdges = nodes.map(({ id: target }) => ({ source: 'root', target }));
|
|
71
|
+
if (customActions) {
|
|
72
|
+
const custom = get(customActions);
|
|
73
|
+
nodes.push(...custom.nodes);
|
|
74
|
+
edges.push(...custom.edges);
|
|
75
|
+
}
|
|
76
|
+
return {
|
|
77
|
+
nodes,
|
|
78
|
+
edges,
|
|
79
|
+
};
|
|
38
80
|
});
|
|
39
|
-
const save = createMenuAction<TableToolbarActionProperties>('save-view', () => onAction(save), {
|
|
40
|
-
type: 'save-view' as const,
|
|
41
|
-
icon: 'ph--floppy-disk--regular',
|
|
42
|
-
label: ['save view label', { ns: translationKey }],
|
|
43
|
-
testId: 'table.toolbar.save-view',
|
|
44
|
-
iconOnly: false,
|
|
45
|
-
hidden: !state.viewDirty,
|
|
46
|
-
});
|
|
47
|
-
const gap = createGapSeparator();
|
|
48
|
-
const comment = createMenuAction('comment', () => onAction(comment), {
|
|
49
|
-
type: 'comment' as const,
|
|
50
|
-
icon: 'ph--chat-text--regular',
|
|
51
|
-
label: ['create comment', { ns: translationKey }],
|
|
52
|
-
testId: 'table.toolbar.comment',
|
|
53
|
-
});
|
|
54
|
-
const nodes = [add, save, ...gap.nodes, comment];
|
|
55
|
-
return {
|
|
56
|
-
nodes,
|
|
57
|
-
edges: nodes.map(({ id: target }) => ({ source: 'root', target })),
|
|
58
|
-
};
|
|
59
|
-
};
|
|
60
81
|
|
|
61
|
-
export const TableToolbar = ({
|
|
82
|
+
export const TableToolbar = ({
|
|
83
|
+
classNames,
|
|
84
|
+
viewDirty,
|
|
85
|
+
attendableId,
|
|
86
|
+
onAdd,
|
|
87
|
+
onSave,
|
|
88
|
+
customActions,
|
|
89
|
+
}: TableToolbarProps) => {
|
|
62
90
|
const state = useMemo(() => live<TableToolbarState>({ viewDirty }), []);
|
|
63
|
-
const actionsCreator =
|
|
91
|
+
const actionsCreator = useMemo(
|
|
92
|
+
() => createTableToolbarActions({ state, onAdd, onSave, customActions }),
|
|
93
|
+
[state, onAdd, onSave, customActions],
|
|
94
|
+
);
|
|
64
95
|
const menu = useMenuActions(actionsCreator);
|
|
65
96
|
|
|
66
97
|
return (
|
|
@@ -70,7 +70,9 @@ export const useTableModel = <T extends TableRow = TableRow>({
|
|
|
70
70
|
}
|
|
71
71
|
}, [model, rows]);
|
|
72
72
|
|
|
73
|
-
const {
|
|
73
|
+
const { multiSelect, clear } = useSelectionActions(
|
|
74
|
+
[table?.id, table?.view?.target?.query.typename].filter(isNonNullable),
|
|
75
|
+
);
|
|
74
76
|
|
|
75
77
|
useEffect(() => {
|
|
76
78
|
if (!model) {
|
|
@@ -79,7 +81,7 @@ export const useTableModel = <T extends TableRow = TableRow>({
|
|
|
79
81
|
|
|
80
82
|
const unsubscribe = effect(() => {
|
|
81
83
|
const selectedItems = [...model.selection.selection.value];
|
|
82
|
-
|
|
84
|
+
multiSelect(selectedItems);
|
|
83
85
|
onSelectionChanged?.(selectedItems);
|
|
84
86
|
});
|
|
85
87
|
|
|
@@ -43,7 +43,7 @@ export class SelectionModel<T extends TableRow> extends Resource {
|
|
|
43
43
|
super();
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
protected override async _open() {
|
|
46
|
+
protected override async _open(): Promise<void> {
|
|
47
47
|
const selectionWatcher = effect(() => {
|
|
48
48
|
touch(this._selection.value);
|
|
49
49
|
this._onSelectionChanged?.();
|
package/src/model/table-model.ts
CHANGED
|
@@ -202,7 +202,7 @@ export class TableModel<T extends TableRow = TableRow> extends Resource {
|
|
|
202
202
|
// Initialisation
|
|
203
203
|
//
|
|
204
204
|
|
|
205
|
-
protected override async _open() {
|
|
205
|
+
protected override async _open(): Promise<void> {
|
|
206
206
|
this.initializeColumnMeta();
|
|
207
207
|
this.initializeEffects();
|
|
208
208
|
this._selection = new SelectionModel(this._sorting.sortedRows, this._features.selection.mode ?? 'multiple', () =>
|
|
@@ -171,7 +171,7 @@ export class TablePresentation<T extends TableRow = TableRow> {
|
|
|
171
171
|
const targetObj = getValue(obj, field.path)?.target;
|
|
172
172
|
if (targetObj) {
|
|
173
173
|
const dxn = getDXN(targetObj)?.toString();
|
|
174
|
-
cell.accessoryHtml = `<dx-ref-tag
|
|
174
|
+
cell.accessoryHtml = `<dx-ref-tag refId=${dxn} class="dx-button block is-6 pli-[3px] plb-[3px] pbe-[2px] min-bs-0 absolute inline-end-1"><dx-icon icon="ph--link-simple--regular"/></dx-ref-tag>`;
|
|
175
175
|
}
|
|
176
176
|
}
|
|
177
177
|
|
package/src/types/table.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import { Schema } from 'effect';
|
|
6
6
|
|
|
7
7
|
// import { ThreadType } from '@dxos/plugin-space/types';
|
|
8
|
-
import {
|
|
8
|
+
import { ObjectId, Ref, Expando, EchoObject, LabelAnnotation } from '@dxos/echo-schema';
|
|
9
9
|
import { ViewType } from '@dxos/schema';
|
|
10
10
|
|
|
11
11
|
export const TableSchema = Schema.Struct({
|
|
@@ -14,10 +14,7 @@ export const TableSchema = Schema.Struct({
|
|
|
14
14
|
view: Schema.optional(Ref(ViewType)),
|
|
15
15
|
// TODO(burdon): Document why threads is included here?
|
|
16
16
|
threads: Schema.optional(Schema.Array(Ref(Expando /* ThreadType */))),
|
|
17
|
-
}).
|
|
18
|
-
// TODO(burdon): Move annotation to property.
|
|
19
|
-
[LabelAnnotationId]: 'name',
|
|
20
|
-
});
|
|
17
|
+
}).pipe(LabelAnnotation.set(['name']));
|
|
21
18
|
|
|
22
19
|
// TODO(burdon): Move out of react-ui-xxx.
|
|
23
20
|
export const TableType = TableSchema.pipe(
|
|
@@ -38,7 +38,7 @@ const createButton = ({
|
|
|
38
38
|
.join(' ');
|
|
39
39
|
|
|
40
40
|
const positionClass = type === 'primary' ? 'inline-end-2' : 'inline-end-9';
|
|
41
|
-
return `<button ${attr} data-testid="${testId}" class="dx-button is-6 pli-0.5 min-bs-0 absolute inset-block-1 ${positionClass}" ${dataAttrs} ${disabled ? 'disabled' : ''}><svg><use href="/icons.svg#${icon}"/></svg></button>`;
|
|
41
|
+
return `<button ${attr} data-testid="${testId}" class="dx-button is-6 pli-0.5 min-bs-0 absolute inset-block-1 ${positionClass}" ${dataAttrs} ${disabled ? 'disabled' : ''}><svg data-size="4"><use href="/icons.svg#${icon}"/></svg></button>`;
|
|
42
42
|
};
|
|
43
43
|
|
|
44
44
|
const addColumnButton = {
|
package/src/util/table.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Copyright 2024 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import { Schema
|
|
5
|
+
import { Schema } from 'effect';
|
|
6
6
|
|
|
7
7
|
import {
|
|
8
8
|
type EchoSchema,
|
|
@@ -83,10 +83,10 @@ const ContactSchema = TypedObject({
|
|
|
83
83
|
typename: `example.com/type/${PublicKey.random().truncate()}`,
|
|
84
84
|
version: '0.1.0',
|
|
85
85
|
})({
|
|
86
|
-
name: Schema.optional(Schema.String).annotations({
|
|
86
|
+
name: Schema.optional(Schema.String).annotations({ title: 'Name' }),
|
|
87
87
|
active: Schema.optional(Schema.Boolean),
|
|
88
88
|
email: Schema.optional(Format.Email),
|
|
89
|
-
salary: Schema.optional(Format.Currency()).annotations({
|
|
89
|
+
salary: Schema.optional(Format.Currency()).annotations({ title: 'Salary' }),
|
|
90
90
|
});
|
|
91
91
|
|
|
92
92
|
const ContactFields = ['name', 'email', 'salary', 'active'];
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/types/table.ts"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2024 DXOS.org\n//\n\nimport { Schema } from 'effect';\n\n// import { ThreadType } from '@dxos/plugin-space/types';\nimport { LabelAnnotationId, ObjectId, Ref, Expando, EchoObject } from '@dxos/echo-schema';\nimport { ViewType } from '@dxos/schema';\n\nexport const TableSchema = Schema.Struct({\n id: ObjectId,\n name: Schema.optional(Schema.String),\n view: Schema.optional(Ref(ViewType)),\n // TODO(burdon): Document why threads is included here?\n threads: Schema.optional(Schema.Array(Ref(Expando /* ThreadType */))),\n}).annotations({\n // TODO(burdon): Move annotation to property.\n [LabelAnnotationId]: 'name',\n});\n\n// TODO(burdon): Move out of react-ui-xxx.\nexport const TableType = TableSchema.pipe(\n EchoObject({\n typename: 'dxos.org/type/Table',\n version: '0.1.0',\n }),\n);\nexport interface TableType extends Schema.Schema.Type<typeof TableType> {}\n"],
|
|
5
|
-
"mappings": ";AAIA,SAASA,cAAc;AAGvB,SAASC,mBAAmBC,UAAUC,KAAKC,SAASC,kBAAkB;AACtE,SAASC,gBAAgB;AAElB,IAAMC,cAAcC,OAAOC,OAAO;EACvCC,IAAIC;EACJC,MAAMJ,OAAOK,SAASL,OAAOM,MAAM;EACnCC,MAAMP,OAAOK,SAASG,IAAIC,QAAAA,CAAAA;;EAE1BC,SAASV,OAAOK,SAASL,OAAOW,MAAMH;IAAII;;EAAsB,CAAA,CAAA;AAClE,CAAA,EAAGC,YAAY;;EAEb,CAACC,iBAAAA,GAAoB;AACvB,CAAA;AAGO,IAAMC,YAAYhB,YAAYiB,KACnCC,WAAW;EACTC,UAAU;EACVC,SAAS;AACX,CAAA,CAAA;",
|
|
6
|
-
"names": ["Schema", "LabelAnnotationId", "ObjectId", "Ref", "Expando", "EchoObject", "ViewType", "TableSchema", "Schema", "Struct", "id", "ObjectId", "name", "optional", "String", "view", "Ref", "ViewType", "threads", "Array", "Expando", "annotations", "LabelAnnotationId", "TableType", "pipe", "EchoObject", "typename", "version"]
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/types/table.ts"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2024 DXOS.org\n//\n\nimport { Schema } from 'effect';\n\n// import { ThreadType } from '@dxos/plugin-space/types';\nimport { LabelAnnotationId, ObjectId, Ref, Expando, EchoObject } from '@dxos/echo-schema';\nimport { ViewType } from '@dxos/schema';\n\nexport const TableSchema = Schema.Struct({\n id: ObjectId,\n name: Schema.optional(Schema.String),\n view: Schema.optional(Ref(ViewType)),\n // TODO(burdon): Document why threads is included here?\n threads: Schema.optional(Schema.Array(Ref(Expando /* ThreadType */))),\n}).annotations({\n // TODO(burdon): Move annotation to property.\n [LabelAnnotationId]: 'name',\n});\n\n// TODO(burdon): Move out of react-ui-xxx.\nexport const TableType = TableSchema.pipe(\n EchoObject({\n typename: 'dxos.org/type/Table',\n version: '0.1.0',\n }),\n);\nexport interface TableType extends Schema.Schema.Type<typeof TableType> {}\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAIA,oBAAuB;AAGvB,yBAAsE;AACtE,oBAAyB;AAElB,IAAMA,cAAcC,qBAAOC,OAAO;EACvCC,IAAIC;EACJC,MAAMJ,qBAAOK,SAASL,qBAAOM,MAAM;EACnCC,MAAMP,qBAAOK,aAASG,wBAAIC,sBAAAA,CAAAA;;EAE1BC,SAASV,qBAAOK,SAASL,qBAAOW,UAAMH;IAAII;;EAAsB,CAAA,CAAA;AAClE,CAAA,EAAGC,YAAY;;EAEb,CAACC,oCAAAA,GAAoB;AACvB,CAAA;AAGO,IAAMC,YAAYhB,YAAYiB,SACnCC,+BAAW;EACTC,UAAU;EACVC,SAAS;AACX,CAAA,CAAA;",
|
|
6
|
-
"names": ["TableSchema", "Schema", "Struct", "id", "ObjectId", "name", "optional", "String", "view", "Ref", "ViewType", "threads", "Array", "Expando", "annotations", "LabelAnnotationId", "TableType", "pipe", "EchoObject", "typename", "version"]
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/types/table.ts"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2024 DXOS.org\n//\n\nimport { Schema } from 'effect';\n\n// import { ThreadType } from '@dxos/plugin-space/types';\nimport { LabelAnnotationId, ObjectId, Ref, Expando, EchoObject } from '@dxos/echo-schema';\nimport { ViewType } from '@dxos/schema';\n\nexport const TableSchema = Schema.Struct({\n id: ObjectId,\n name: Schema.optional(Schema.String),\n view: Schema.optional(Ref(ViewType)),\n // TODO(burdon): Document why threads is included here?\n threads: Schema.optional(Schema.Array(Ref(Expando /* ThreadType */))),\n}).annotations({\n // TODO(burdon): Move annotation to property.\n [LabelAnnotationId]: 'name',\n});\n\n// TODO(burdon): Move out of react-ui-xxx.\nexport const TableType = TableSchema.pipe(\n EchoObject({\n typename: 'dxos.org/type/Table',\n version: '0.1.0',\n }),\n);\nexport interface TableType extends Schema.Schema.Type<typeof TableType> {}\n"],
|
|
5
|
-
"mappings": ";;;AAIA,SAASA,cAAc;AAGvB,SAASC,mBAAmBC,UAAUC,KAAKC,SAASC,kBAAkB;AACtE,SAASC,gBAAgB;AAElB,IAAMC,cAAcC,OAAOC,OAAO;EACvCC,IAAIC;EACJC,MAAMJ,OAAOK,SAASL,OAAOM,MAAM;EACnCC,MAAMP,OAAOK,SAASG,IAAIC,QAAAA,CAAAA;;EAE1BC,SAASV,OAAOK,SAASL,OAAOW,MAAMH;IAAII;;EAAsB,CAAA,CAAA;AAClE,CAAA,EAAGC,YAAY;;EAEb,CAACC,iBAAAA,GAAoB;AACvB,CAAA;AAGO,IAAMC,YAAYhB,YAAYiB,KACnCC,WAAW;EACTC,UAAU;EACVC,SAAS;AACX,CAAA,CAAA;",
|
|
6
|
-
"names": ["Schema", "LabelAnnotationId", "ObjectId", "Ref", "Expando", "EchoObject", "ViewType", "TableSchema", "Schema", "Struct", "id", "ObjectId", "name", "optional", "String", "view", "Ref", "ViewType", "threads", "Array", "Expando", "annotations", "LabelAnnotationId", "TableType", "pipe", "EchoObject", "typename", "version"]
|
|
7
|
-
}
|