@dxos/react-ui-table 0.8.1-main.ae460ac → 0.8.1-staging.391c573
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/browser/_deprecated/index.mjs +4 -4
- package/dist/lib/browser/_deprecated/index.mjs.map +3 -3
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/node/_deprecated/index.cjs +4 -4
- package/dist/lib/node/_deprecated/index.cjs.map +3 -3
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node-esm/_deprecated/index.mjs +4 -4
- package/dist/lib/node-esm/_deprecated/index.mjs.map +3 -3
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/types/src/_deprecated/components/Cell/Cell.d.ts +2 -2
- package/dist/types/src/_deprecated/components/Cell/Cell.d.ts.map +1 -1
- package/dist/types/src/_deprecated/components/Cell/CellCombobox.d.ts +2 -1
- package/dist/types/src/_deprecated/components/Cell/CellCombobox.d.ts.map +1 -1
- package/dist/types/src/_deprecated/components/ColumnMenu/ColumnMenu.d.ts +3 -2
- package/dist/types/src/_deprecated/components/ColumnMenu/ColumnMenu.d.ts.map +1 -1
- package/dist/types/src/_deprecated/components/ColumnMenu/ColumnMenu.stories.d.ts +3 -2
- package/dist/types/src/_deprecated/components/ColumnMenu/ColumnMenu.stories.d.ts.map +1 -1
- package/dist/types/src/_deprecated/components/ColumnMenu/ColumnSettings.d.ts +2 -1
- package/dist/types/src/_deprecated/components/ColumnMenu/ColumnSettings.d.ts.map +1 -1
- package/dist/types/src/_deprecated/components/ColumnMenu/ColumnSettings.stories.d.ts +3 -2
- package/dist/types/src/_deprecated/components/ColumnMenu/ColumnSettings.stories.d.ts.map +1 -1
- package/dist/types/src/_deprecated/components/Table/Table.d.ts +5 -5
- package/dist/types/src/_deprecated/components/Table/Table.d.ts.map +1 -1
- package/dist/types/src/_deprecated/components/Table/Table.stories.d.ts +8 -7
- package/dist/types/src/_deprecated/components/Table/Table.stories.d.ts.map +1 -1
- package/dist/types/src/_deprecated/components/Table/TableBody.d.ts +2 -1
- package/dist/types/src/_deprecated/components/Table/TableBody.d.ts.map +1 -1
- package/dist/types/src/_deprecated/components/Table/TableContext.d.ts +1 -1
- package/dist/types/src/_deprecated/components/Table/TableContext.d.ts.map +1 -1
- package/dist/types/src/_deprecated/components/Table/TableHead.d.ts +2 -1
- package/dist/types/src/_deprecated/components/Table/TableHead.d.ts.map +1 -1
- package/dist/types/src/_deprecated/schema/Schema.stories.d.ts +2 -1
- package/dist/types/src/_deprecated/schema/Schema.stories.d.ts.map +1 -1
- package/dist/types/src/components/Table/ColumnActionsMenu.d.ts +2 -1
- package/dist/types/src/components/Table/ColumnActionsMenu.d.ts.map +1 -1
- package/dist/types/src/components/Table/ColumnSettings.d.ts +2 -1
- package/dist/types/src/components/Table/ColumnSettings.d.ts.map +1 -1
- package/dist/types/src/components/Table/CreateRefPanel.d.ts +2 -1
- package/dist/types/src/components/Table/CreateRefPanel.d.ts.map +1 -1
- package/dist/types/src/components/Table/RefPanel.d.ts +2 -1
- package/dist/types/src/components/Table/RefPanel.d.ts.map +1 -1
- package/dist/types/src/components/Table/RowActionsMenu.d.ts +2 -1
- package/dist/types/src/components/Table/RowActionsMenu.d.ts.map +1 -1
- package/dist/types/src/components/Table/Table.d.ts +1 -1
- package/dist/types/src/components/TableCellEditor/TableCellEditor.d.ts +2 -1
- package/dist/types/src/components/TableCellEditor/TableCellEditor.d.ts.map +1 -1
- package/dist/types/src/components/TableToolbar/TableToolbar.d.ts +2 -1
- package/dist/types/src/components/TableToolbar/TableToolbar.d.ts.map +1 -1
- package/dist/types/src/components/testing.d.ts +7 -0
- package/dist/types/src/components/testing.d.ts.map +1 -1
- package/dist/types/src/types/table.d.ts +21 -0
- package/dist/types/src/types/table.d.ts.map +1 -1
- package/package.json +31 -31
- package/src/_deprecated/components/Cell/Cell.tsx +2 -2
- package/src/_deprecated/components/Table/TableBody.tsx +2 -2
- package/src/_deprecated/helpers.tsx +2 -2
- package/src/components/testing.ts +1 -0
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import '@dxos-theme';
|
|
2
|
+
import React from 'react';
|
|
2
3
|
declare const _default: {
|
|
3
4
|
title: string;
|
|
4
5
|
decorators: import("@storybook/react").Decorator[];
|
|
5
6
|
};
|
|
6
7
|
export default _default;
|
|
7
8
|
export declare const Default: {
|
|
8
|
-
render: () =>
|
|
9
|
+
render: () => React.JSX.Element;
|
|
9
10
|
};
|
|
10
11
|
//# sourceMappingURL=Schema.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Schema.stories.d.ts","sourceRoot":"","sources":["../../../../../src/_deprecated/schema/Schema.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;;;;;
|
|
1
|
+
{"version":3,"file":"Schema.stories.d.ts","sourceRoot":"","sources":["../../../../../src/_deprecated/schema/Schema.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAIrB,OAAO,KAAK,MAAM,OAAO,CAAC;;;;;AAQ1B,wBAGE;AAoBF,eAAO,MAAM,OAAO;;CAmBnB,CAAC"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { type TableModel, type ModalController } from '../../model';
|
|
2
3
|
type ColumnActionsMenuProps = {
|
|
3
4
|
model: TableModel;
|
|
4
5
|
modals: ModalController;
|
|
5
6
|
};
|
|
6
|
-
export declare const ColumnActionsMenu: ({ model, modals }: ColumnActionsMenuProps) =>
|
|
7
|
+
export declare const ColumnActionsMenu: ({ model, modals }: ColumnActionsMenuProps) => React.JSX.Element | null;
|
|
7
8
|
export {};
|
|
8
9
|
//# sourceMappingURL=ColumnActionsMenu.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ColumnActionsMenu.d.ts","sourceRoot":"","sources":["../../../../../src/components/Table/ColumnActionsMenu.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ColumnActionsMenu.d.ts","sourceRoot":"","sources":["../../../../../src/components/Table/ColumnActionsMenu.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,KAAK,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,aAAa,CAAC;AAGpE,KAAK,sBAAsB,GAAG;IAAE,KAAK,EAAE,UAAU,CAAC;IAAC,MAAM,EAAE,eAAe,CAAA;CAAE,CAAC;AAE7E,eAAO,MAAM,iBAAiB,sBAAuB,sBAAsB,6BAmD1E,CAAC"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { type TableModel, type ModalController } from '../../model';
|
|
2
3
|
type ColumnSettingsProps = {
|
|
3
4
|
model?: TableModel;
|
|
4
5
|
modals: ModalController;
|
|
5
6
|
onNewColumn: () => void;
|
|
6
7
|
};
|
|
7
|
-
export declare const ColumnSettings: ({ model, modals, onNewColumn }: ColumnSettingsProps) =>
|
|
8
|
+
export declare const ColumnSettings: ({ model, modals, onNewColumn }: ColumnSettingsProps) => React.JSX.Element | null;
|
|
8
9
|
export {};
|
|
9
10
|
//# sourceMappingURL=ColumnSettings.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ColumnSettings.d.ts","sourceRoot":"","sources":["../../../../../src/components/Table/ColumnSettings.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ColumnSettings.d.ts","sourceRoot":"","sources":["../../../../../src/components/Table/ColumnSettings.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAoD,MAAM,OAAO,CAAC;AAOzE,OAAO,EAAE,KAAK,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,aAAa,CAAC;AAEpE,KAAK,mBAAmB,GAAG;IAAE,KAAK,CAAC,EAAE,UAAU,CAAC;IAAC,MAAM,EAAE,eAAe,CAAC;IAAC,WAAW,EAAE,MAAM,IAAI,CAAA;CAAE,CAAC;AAEpG,eAAO,MAAM,cAAc,mCAAoC,mBAAmB,6BA+DjF,CAAC"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { type GridScopedProps } from '@dxos/react-ui-grid';
|
|
2
3
|
import { type TableModel, type ModalController } from '../../model';
|
|
3
4
|
export type CreateRefPanelProps = {
|
|
4
5
|
model?: TableModel;
|
|
5
6
|
modals: ModalController;
|
|
6
7
|
};
|
|
7
|
-
export declare const CreateRefPanel: ({ model, modals, __gridScope }: GridScopedProps<CreateRefPanelProps>) =>
|
|
8
|
+
export declare const CreateRefPanel: ({ model, modals, __gridScope }: GridScopedProps<CreateRefPanelProps>) => React.JSX.Element | null;
|
|
8
9
|
//# sourceMappingURL=CreateRefPanel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreateRefPanel.d.ts","sourceRoot":"","sources":["../../../../../src/components/Table/CreateRefPanel.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CreateRefPanel.d.ts","sourceRoot":"","sources":["../../../../../src/components/Table/CreateRefPanel.tsx"],"names":[],"mappings":"AAIA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAMpD,OAAO,EAAE,KAAK,eAAe,EAAkB,MAAM,qBAAqB,CAAC;AAE3E,OAAO,EAAE,KAAK,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,aAAa,CAAC;AAEpE,MAAM,MAAM,mBAAmB,GAAG;IAAE,KAAK,CAAC,EAAE,UAAU,CAAC;IAAC,MAAM,EAAE,eAAe,CAAA;CAAE,CAAC;AAGlF,eAAO,MAAM,cAAc,mCAAoC,eAAe,CAAC,mBAAmB,CAAC,6BAgElG,CAAC"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { type TableModel, type ModalController } from '../../model';
|
|
2
3
|
type RefPanelProps = {
|
|
3
4
|
model: TableModel;
|
|
4
5
|
modals: ModalController;
|
|
5
6
|
};
|
|
6
|
-
export declare const RefPanel: ({ model, modals }: RefPanelProps) =>
|
|
7
|
+
export declare const RefPanel: ({ model, modals }: RefPanelProps) => React.JSX.Element | null;
|
|
7
8
|
export {};
|
|
8
9
|
//# sourceMappingURL=RefPanel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RefPanel.d.ts","sourceRoot":"","sources":["../../../../../src/components/Table/RefPanel.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RefPanel.d.ts","sourceRoot":"","sources":["../../../../../src/components/Table/RefPanel.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,EAAE,KAAK,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,aAAa,CAAC;AAEpE,KAAK,aAAa,GAAG;IAAE,KAAK,EAAE,UAAU,CAAC;IAAC,MAAM,EAAE,eAAe,CAAA;CAAE,CAAC;AAUpE,eAAO,MAAM,QAAQ,sBAAuB,aAAa,6BA6BxD,CAAC"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { type TableModel, type ModalController } from '../../model';
|
|
2
3
|
type RowActionsMenuProps = {
|
|
3
4
|
model: TableModel;
|
|
4
5
|
modals: ModalController;
|
|
5
6
|
};
|
|
6
|
-
export declare const RowActionsMenu: ({ model, modals }: RowActionsMenuProps) =>
|
|
7
|
+
export declare const RowActionsMenu: ({ model, modals }: RowActionsMenuProps) => React.JSX.Element | null;
|
|
7
8
|
export {};
|
|
8
9
|
//# sourceMappingURL=RowActionsMenu.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RowActionsMenu.d.ts","sourceRoot":"","sources":["../../../../../src/components/Table/RowActionsMenu.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RowActionsMenu.d.ts","sourceRoot":"","sources":["../../../../../src/components/Table/RowActionsMenu.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,KAAK,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,aAAa,CAAC;AAGpE,KAAK,mBAAmB,GAAG;IAAE,KAAK,EAAE,UAAU,CAAC;IAAC,MAAM,EAAE,eAAe,CAAA;CAAE,CAAC;AAE1E,eAAO,MAAM,cAAc,sBAAuB,mBAAmB,6BAoBpE,CAAC"}
|
|
@@ -13,7 +13,7 @@ export type TableMainProps = {
|
|
|
13
13
|
ignoreAttention?: boolean;
|
|
14
14
|
};
|
|
15
15
|
export declare const Table: {
|
|
16
|
-
Root: ({ children, role }: TableRootProps) =>
|
|
16
|
+
Root: ({ children, role }: TableRootProps) => React.JSX.Element;
|
|
17
17
|
Main: React.ForwardRefExoticComponent<TableMainProps & React.RefAttributes<TableController>>;
|
|
18
18
|
};
|
|
19
19
|
//# sourceMappingURL=Table.d.ts.map
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type Completion } from '@codemirror/autocomplete';
|
|
2
|
+
import React from 'react';
|
|
2
3
|
import { type DxGrid } from '@dxos/lit-grid';
|
|
3
4
|
import { type DxGridPlanePosition, type GridScopedProps } from '@dxos/react-ui-grid';
|
|
4
5
|
import { type FieldProjection } from '@dxos/schema';
|
|
@@ -21,6 +22,6 @@ export type TableCellEditorProps = {
|
|
|
21
22
|
onFocus?: DxGrid['refocus'];
|
|
22
23
|
onQuery?: (field: FieldProjection, text: string) => Promise<QueryResult[]>;
|
|
23
24
|
};
|
|
24
|
-
export declare const TableCellEditor: ({ model, modals, onEnter, onFocus, onQuery, __gridScope, }: GridScopedProps<TableCellEditorProps>) =>
|
|
25
|
+
export declare const TableCellEditor: ({ model, modals, onEnter, onFocus, onQuery, __gridScope, }: GridScopedProps<TableCellEditorProps>) => React.JSX.Element;
|
|
25
26
|
export {};
|
|
26
27
|
//# 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;AAC3D,OAAO,KAAuC,MAAM,OAAO,CAAC;AAI5D,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAKL,KAAK,mBAAmB,EAMxB,KAAK,eAAe,EACrB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC;AAGpD,OAAO,EAAE,KAAK,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,aAAa,CAAC;AAEpE,QAAA,MAAM,QAAQ,eAAyB,CAAC;AAExC;;GAEG;AACH,eAAO,MAAM,YAAY,SAAU,MAAM;;;CAAiC,CAAC;AAI3E,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,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,mBAAmB,KAAK,IAAI,CAAC;IAC9C,OAAO,CAAC,EAAE,MAAM,CAAC,SAAS,CAAC,CAAC;IAC5B,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,eAAe,EAAE,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,WAAW,EAAE,CAAC,CAAC;CAC5E,CAAC;AAEF,eAAO,MAAM,eAAe,+DAOzB,eAAe,CAAC,oBAAoB,CAAC,sBA0HvC,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { type ThemedClassName } from '@dxos/react-ui';
|
|
2
3
|
import { type MenuAction, type MenuActionHandler } from '@dxos/react-ui-menu';
|
|
3
4
|
export type TableToolbarActionProperties = {
|
|
@@ -12,6 +13,6 @@ export type TableToolbarProps = ThemedClassName<TableToolbarState & {
|
|
|
12
13
|
onAction?: MenuActionHandler<TableToolbarAction>;
|
|
13
14
|
attendableId?: string;
|
|
14
15
|
}>;
|
|
15
|
-
export declare const TableToolbar: ({ classNames, viewDirty, attendableId, onAction }: TableToolbarProps) =>
|
|
16
|
+
export declare const TableToolbar: ({ classNames, viewDirty, attendableId, onAction }: TableToolbarProps) => React.JSX.Element;
|
|
16
17
|
export {};
|
|
17
18
|
//# sourceMappingURL=TableToolbar.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableToolbar.d.ts","sourceRoot":"","sources":["../../../../../src/components/TableToolbar/TableToolbar.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TableToolbar.d.ts","sourceRoot":"","sources":["../../../../../src/components/TableToolbar/TableToolbar.tsx"],"names":[],"mappings":"AAIA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAGpD,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACtD,OAAO,EAGL,KAAK,UAAU,EACf,KAAK,iBAAiB,EAIvB,MAAM,qBAAqB,CAAC;AAI7B,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;AAEzD,MAAM,MAAM,iBAAiB,GAAG,eAAe,CAC7C,iBAAiB,GAAG;IAAE,QAAQ,CAAC,EAAE,iBAAiB,CAAC,kBAAkB,CAAC,CAAC;IAAC,YAAY,CAAC,EAAE,MAAM,CAAA;CAAE,CAChG,CAAC;AA+BF,eAAO,MAAM,YAAY,sDAAuD,iBAAiB,sBAUhG,CAAC"}
|
|
@@ -39,6 +39,13 @@ export declare const createTable: (schema?: import("@dxos/echo-schema").TypedObj
|
|
|
39
39
|
size: S.optional<typeof S.Number>;
|
|
40
40
|
referencePath: S.optional<S.Schema<import("@dxos/effect").JsonPath, import("@dxos/effect").JsonPath, never>>;
|
|
41
41
|
}>>>>;
|
|
42
|
+
hiddenFields: S.optional<S.mutable<S.Array$<S.mutable<S.Struct<{
|
|
43
|
+
id: typeof S.String;
|
|
44
|
+
path: S.Schema<import("@dxos/effect").JsonPath, import("@dxos/effect").JsonPath, never>;
|
|
45
|
+
visible: S.optional<typeof S.Boolean>;
|
|
46
|
+
size: S.optional<typeof S.Number>;
|
|
47
|
+
referencePath: S.optional<S.Schema<import("@dxos/effect").JsonPath, import("@dxos/effect").JsonPath, never>>;
|
|
48
|
+
}>>>>>;
|
|
42
49
|
metadata: S.optional<S.mutable<S.Record$<typeof S.String, typeof S.Any>>>;
|
|
43
50
|
}, import("@dxos/echo-schema").TypedObjectOptions>>>;
|
|
44
51
|
readonly threads: S.optional<S.Array$<import("@dxos/echo-schema").Ref$<import("@dxos/echo-schema").Expando>>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"testing.d.ts","sourceRoot":"","sources":["../../../../src/components/testing.ts"],"names":[],"mappings":"AAMA,OAAO,EAA0B,CAAC,EAAqC,MAAM,mBAAmB,CAAC;AAMjG,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAErC,eAAO,MAAM,UAAU;;;;;;;;;;;;GAMrB,CAAC;AAEH,eAAO,MAAM,WAAW;;;;;;;;;;;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GAAG;;;mDApDrB,CAAC;AAEF,eAAO,MAAM,WAAW,MAAO,MAAM;;;;;GAWpC,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,KAAK,EAAE,SAAS,CAAC;IACjB,KAAK,EAAE,GAAG,EAAE,CAAC;IACb,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,eAAO,MAAM,YAAY,qDAAsD,cAAc,SA+D5F,CAAC"}
|
|
@@ -13,6 +13,13 @@ export declare const TableSchema: S.Struct<{
|
|
|
13
13
|
size: S.optional<typeof S.Number>;
|
|
14
14
|
referencePath: S.optional<S.Schema<import("@dxos/effect").JsonPath, import("@dxos/effect").JsonPath, never>>;
|
|
15
15
|
}>>>>;
|
|
16
|
+
hiddenFields: S.optional<S.mutable<S.Array$<S.mutable<S.Struct<{
|
|
17
|
+
id: typeof S.String;
|
|
18
|
+
path: S.Schema<import("@dxos/effect").JsonPath, import("@dxos/effect").JsonPath, never>;
|
|
19
|
+
visible: S.optional<typeof S.Boolean>;
|
|
20
|
+
size: S.optional<typeof S.Number>;
|
|
21
|
+
referencePath: S.optional<S.Schema<import("@dxos/effect").JsonPath, import("@dxos/effect").JsonPath, never>>;
|
|
22
|
+
}>>>>>;
|
|
16
23
|
metadata: S.optional<S.mutable<S.Record$<typeof S.String, typeof S.Any>>>;
|
|
17
24
|
}, import("@dxos/echo-schema").TypedObjectOptions>>>;
|
|
18
25
|
threads: S.optional<S.Array$<import("@dxos/echo-schema").Ref$<Expando>>>;
|
|
@@ -31,6 +38,13 @@ declare const TableType_base: import("@dxos/echo-schema").TypedObjectPrototype<i
|
|
|
31
38
|
size: S.optional<typeof S.Number>;
|
|
32
39
|
referencePath: S.optional<S.Schema<import("@dxos/effect").JsonPath, import("@dxos/effect").JsonPath, never>>;
|
|
33
40
|
}>>>>;
|
|
41
|
+
hiddenFields: S.optional<S.mutable<S.Array$<S.mutable<S.Struct<{
|
|
42
|
+
id: typeof S.String;
|
|
43
|
+
path: S.Schema<import("@dxos/effect").JsonPath, import("@dxos/effect").JsonPath, never>;
|
|
44
|
+
visible: S.optional<typeof S.Boolean>;
|
|
45
|
+
size: S.optional<typeof S.Number>;
|
|
46
|
+
referencePath: S.optional<S.Schema<import("@dxos/effect").JsonPath, import("@dxos/effect").JsonPath, never>>;
|
|
47
|
+
}>>>>>;
|
|
34
48
|
metadata: S.optional<S.mutable<S.Record$<typeof S.String, typeof S.Any>>>;
|
|
35
49
|
}, import("@dxos/echo-schema").TypedObjectOptions>>>;
|
|
36
50
|
readonly threads: S.optional<S.Array$<import("@dxos/echo-schema").Ref$<Expando>>>;
|
|
@@ -48,6 +62,13 @@ declare const TableType_base: import("@dxos/echo-schema").TypedObjectPrototype<i
|
|
|
48
62
|
size: S.optional<typeof S.Number>;
|
|
49
63
|
referencePath: S.optional<S.Schema<import("@dxos/effect").JsonPath, import("@dxos/effect").JsonPath, never>>;
|
|
50
64
|
}>>>>;
|
|
65
|
+
hiddenFields: S.optional<S.mutable<S.Array$<S.mutable<S.Struct<{
|
|
66
|
+
id: typeof S.String;
|
|
67
|
+
path: S.Schema<import("@dxos/effect").JsonPath, import("@dxos/effect").JsonPath, never>;
|
|
68
|
+
visible: S.optional<typeof S.Boolean>;
|
|
69
|
+
size: S.optional<typeof S.Number>;
|
|
70
|
+
referencePath: S.optional<S.Schema<import("@dxos/effect").JsonPath, import("@dxos/effect").JsonPath, never>>;
|
|
71
|
+
}>>>>>;
|
|
51
72
|
metadata: S.optional<S.mutable<S.Record$<typeof S.String, typeof S.Any>>>;
|
|
52
73
|
}, import("@dxos/echo-schema").TypedObjectOptions>>>;
|
|
53
74
|
readonly threads: S.optional<S.Array$<import("@dxos/echo-schema").Ref$<Expando>>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../../src/types/table.ts"],"names":[],"mappings":"AAIA,OAAO,EAAiB,CAAC,EAAe,O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MAAM;;kBAAgH,EAAG,QAAQ,CAAC,EAAE,OAAO,CAAC,EAAE,OAAO,QAAO,EAAG,MAAM,SAAQ,EAAG,GAAG;;;;AAJp5C,qBAAa,SAAU,SAAQ,cAGT;CAAG"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/react-ui-table",
|
|
3
|
-
"version": "0.8.1-
|
|
3
|
+
"version": "0.8.1-staging.391c573",
|
|
4
4
|
"description": "A table component.",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"@codemirror/autocomplete": "^6.18.1",
|
|
45
45
|
"@codemirror/state": "^6.4.1",
|
|
46
46
|
"@codemirror/view": "^6.34.1",
|
|
47
|
-
"@fluentui/react-tabster": "9.
|
|
47
|
+
"@fluentui/react-tabster": "^9.24.2",
|
|
48
48
|
"@preact/signals-core": "^1.6.0",
|
|
49
49
|
"@radix-ui/react-context": "1.1.1",
|
|
50
50
|
"@radix-ui/react-primitive": "2.0.2",
|
|
@@ -54,27 +54,27 @@
|
|
|
54
54
|
"@tanstack/react-virtual": "^3.9.0",
|
|
55
55
|
"date-fns": "^3.3.1",
|
|
56
56
|
"lodash.orderby": "^4.6.0",
|
|
57
|
-
"@dxos/
|
|
58
|
-
"@dxos/echo-schema": "0.8.1-
|
|
59
|
-
"@dxos/invariant": "0.8.1-
|
|
60
|
-
"@dxos/
|
|
61
|
-
"@dxos/
|
|
62
|
-
"@dxos/
|
|
63
|
-
"@dxos/
|
|
64
|
-
"@dxos/log": "0.8.1-
|
|
65
|
-
"@dxos/plugin-search": "0.8.1-
|
|
66
|
-
"@dxos/plugin-space": "0.8.1-
|
|
67
|
-
"@dxos/react-
|
|
68
|
-
"@dxos/react-ui-
|
|
69
|
-
"@dxos/react-
|
|
70
|
-
"@dxos/react-ui-menu": "0.8.1-
|
|
71
|
-
"@dxos/react-ui-
|
|
72
|
-
"@dxos/react-ui-stack": "0.8.1-
|
|
73
|
-
"@dxos/react-ui-
|
|
74
|
-
"@dxos/react-ui-
|
|
75
|
-
"@dxos/
|
|
76
|
-
"@dxos/
|
|
77
|
-
"@dxos/
|
|
57
|
+
"@dxos/debug": "0.8.1-staging.391c573",
|
|
58
|
+
"@dxos/echo-schema": "0.8.1-staging.391c573",
|
|
59
|
+
"@dxos/invariant": "0.8.1-staging.391c573",
|
|
60
|
+
"@dxos/context": "0.8.1-staging.391c573",
|
|
61
|
+
"@dxos/keys": "0.8.1-staging.391c573",
|
|
62
|
+
"@dxos/lit-grid": "0.8.1-staging.391c573",
|
|
63
|
+
"@dxos/live-object": "0.8.1-staging.391c573",
|
|
64
|
+
"@dxos/log": "0.8.1-staging.391c573",
|
|
65
|
+
"@dxos/plugin-search": "0.8.1-staging.391c573",
|
|
66
|
+
"@dxos/plugin-space": "0.8.1-staging.391c573",
|
|
67
|
+
"@dxos/react-ui-attention": "0.8.1-staging.391c573",
|
|
68
|
+
"@dxos/react-ui-grid": "0.8.1-staging.391c573",
|
|
69
|
+
"@dxos/react-client": "0.8.1-staging.391c573",
|
|
70
|
+
"@dxos/react-ui-menu": "0.8.1-staging.391c573",
|
|
71
|
+
"@dxos/react-ui-form": "0.8.1-staging.391c573",
|
|
72
|
+
"@dxos/react-ui-stack": "0.8.1-staging.391c573",
|
|
73
|
+
"@dxos/react-ui-syntax-highlighter": "0.8.1-staging.391c573",
|
|
74
|
+
"@dxos/react-ui-types": "0.8.1-staging.391c573",
|
|
75
|
+
"@dxos/react-ui-searchlist": "0.8.1-staging.391c573",
|
|
76
|
+
"@dxos/schema": "0.8.1-staging.391c573",
|
|
77
|
+
"@dxos/util": "0.8.1-staging.391c573"
|
|
78
78
|
},
|
|
79
79
|
"devDependencies": {
|
|
80
80
|
"@phosphor-icons/react": "^2.1.5",
|
|
@@ -85,19 +85,19 @@
|
|
|
85
85
|
"react": "~18.2.0",
|
|
86
86
|
"react-dom": "~18.2.0",
|
|
87
87
|
"vite": "5.4.7",
|
|
88
|
-
"@dxos/
|
|
89
|
-
"@dxos/react-ui": "0.8.1-
|
|
90
|
-
"@dxos/
|
|
91
|
-
"@dxos/
|
|
92
|
-
"@dxos/
|
|
93
|
-
"@dxos/
|
|
88
|
+
"@dxos/random": "0.8.1-staging.391c573",
|
|
89
|
+
"@dxos/react-ui": "0.8.1-staging.391c573",
|
|
90
|
+
"@dxos/storybook-utils": "0.8.1-staging.391c573",
|
|
91
|
+
"@dxos/react-ui-theme": "0.8.1-staging.391c573",
|
|
92
|
+
"@dxos/echo-signals": "0.8.1-staging.391c573",
|
|
93
|
+
"@dxos/test-utils": "0.8.1-staging.391c573"
|
|
94
94
|
},
|
|
95
95
|
"peerDependencies": {
|
|
96
96
|
"@phosphor-icons/react": "^2.1.5",
|
|
97
97
|
"react": "~18.2.0",
|
|
98
98
|
"react-dom": "~18.2.0",
|
|
99
|
-
"@dxos/react-ui": "0.8.1-
|
|
100
|
-
"@dxos/react-ui-theme": "0.8.1-
|
|
99
|
+
"@dxos/react-ui": "0.8.1-staging.391c573",
|
|
100
|
+
"@dxos/react-ui-theme": "0.8.1-staging.391c573"
|
|
101
101
|
},
|
|
102
102
|
"publishConfig": {
|
|
103
103
|
"access": "public"
|
|
@@ -17,7 +17,7 @@ const CELL_NAME = 'Cell';
|
|
|
17
17
|
|
|
18
18
|
const FocusableCell = <TData extends RowData, TValue>({ cell, children }: CellProps<TData, TValue>) => {
|
|
19
19
|
const tableContext = useTableContext();
|
|
20
|
-
const
|
|
20
|
+
const focusableGroupAttrs = useFocusableGroup({ tabBehavior: 'limited' });
|
|
21
21
|
|
|
22
22
|
const pinned = tableContext.table.getState().rowPinning?.bottom?.includes(cell.row.id);
|
|
23
23
|
const className = tdRoot({ ...tableContext, pinned }, cell.column.columnDef.meta?.cell?.classNames);
|
|
@@ -60,7 +60,7 @@ const FocusableCell = <TData extends RowData, TValue>({ cell, children }: CellPr
|
|
|
60
60
|
}, []);
|
|
61
61
|
|
|
62
62
|
return (
|
|
63
|
-
<td data-testid='table.cell' tabIndex={0} {...
|
|
63
|
+
<td data-testid='table.cell' tabIndex={0} {...focusableGroupAttrs} className={className} onKeyDown={handleKeyDown}>
|
|
64
64
|
{children}
|
|
65
65
|
</td>
|
|
66
66
|
);
|
|
@@ -21,13 +21,13 @@ const TableBody = ({ rows }: TableBodyProps) => {
|
|
|
21
21
|
const { table, keyAccessor, currentDatum, debug, expand, isGrid, onDatumClick } = useTableContext();
|
|
22
22
|
|
|
23
23
|
const rowSelection = table.getState().rowSelection;
|
|
24
|
-
const
|
|
24
|
+
const arrowNavigationAttrs = useArrowNavigationGroup({ axis: 'grid' });
|
|
25
25
|
const canBeCurrent = !isGrid && !!onDatumClick;
|
|
26
26
|
|
|
27
27
|
const { virtualizer } = useContext(TableRootContext);
|
|
28
28
|
|
|
29
29
|
return (
|
|
30
|
-
<tbody {...(isGrid &&
|
|
30
|
+
<tbody {...(isGrid && arrowNavigationAttrs)}>
|
|
31
31
|
{rows.map((row) => {
|
|
32
32
|
const isCurrent = currentDatum === row.original;
|
|
33
33
|
const isSelected = rowSelection?.[row.id];
|
|
@@ -126,7 +126,7 @@ const StringBuilderCell = <TData extends RowData>(cellContext: CellContext<TData
|
|
|
126
126
|
let placeholder = false;
|
|
127
127
|
const columns = cellContext.table.getVisibleFlatColumns();
|
|
128
128
|
|
|
129
|
-
// Calling getRowModel is expensive, so only do it when we're a cell in the first position
|
|
129
|
+
// Calling getRowModel is expensive, so only do it when we're a cell in the first position.
|
|
130
130
|
if (columns[0].id === cellContext.column.id) {
|
|
131
131
|
const rowCount = cellContext.table.getRowModel().rows.length;
|
|
132
132
|
placeholder = cellContext.row.index === rowCount - 1 && columns[0].id === cellContext.column.id;
|
|
@@ -206,7 +206,7 @@ const NumberBuilderCell = <TData extends RowData>(cellContext: CellContext<TData
|
|
|
206
206
|
onFocus={handleEdit}
|
|
207
207
|
onChange={({ target: { value } }) => setText(value)}
|
|
208
208
|
onKeyDown={(event) => {
|
|
209
|
-
// TODO(thure): `Escape` is reserved for blurring the input and moving focus to the cell
|
|
209
|
+
// TODO(thure): `Escape` is reserved for blurring the input and moving focus to the cell.
|
|
210
210
|
return /* (event.key === 'Escape' && handleCancel()) || */ event.key === 'Enter' && handleSave();
|
|
211
211
|
}}
|
|
212
212
|
autoComplete='off'
|
|
@@ -75,6 +75,7 @@ export const useSimulator = ({ items, table, insertInterval, updateInterval }: S
|
|
|
75
75
|
const rowIdx = Math.floor(Math.random() * items.length);
|
|
76
76
|
const fields = table.view?.target?.fields ?? [];
|
|
77
77
|
const columnIdx = Math.floor(Math.random() * fields.length);
|
|
78
|
+
// TODO(ZaymonFC): ... This is borked.
|
|
78
79
|
const projection: ViewProjection = (table as any)._projection;
|
|
79
80
|
const field = fields[columnIdx];
|
|
80
81
|
const item = items[rowIdx];
|