@dxos/react-ui-table 0.8.4-main.fd6878d → 0.8.4-staging.60fe92afc8

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.
Files changed (183) hide show
  1. package/LICENSE +102 -5
  2. package/dist/lib/browser/chunk-4KOQTPFC.mjs +1702 -0
  3. package/dist/lib/browser/chunk-4KOQTPFC.mjs.map +7 -0
  4. package/dist/lib/browser/chunk-62PYOJPY.mjs +67 -0
  5. package/dist/lib/browser/chunk-62PYOJPY.mjs.map +7 -0
  6. package/dist/lib/browser/chunk-J5LGTIGS.mjs +10 -0
  7. package/dist/lib/browser/chunk-J5LGTIGS.mjs.map +7 -0
  8. package/dist/lib/browser/index.mjs +1151 -1175
  9. package/dist/lib/browser/index.mjs.map +4 -4
  10. package/dist/lib/browser/meta.json +1 -1
  11. package/dist/lib/browser/testing/index.mjs +37 -45
  12. package/dist/lib/browser/testing/index.mjs.map +3 -3
  13. package/dist/lib/browser/translations.mjs +36 -0
  14. package/dist/lib/browser/translations.mjs.map +7 -0
  15. package/dist/lib/browser/types/index.mjs +4 -3
  16. package/dist/lib/node-esm/chunk-7LMOZUTS.mjs +68 -0
  17. package/dist/lib/node-esm/chunk-7LMOZUTS.mjs.map +7 -0
  18. package/dist/lib/node-esm/chunk-HSLMI22Q.mjs +11 -0
  19. package/dist/lib/node-esm/chunk-HSLMI22Q.mjs.map +7 -0
  20. package/dist/lib/node-esm/chunk-KOSV2J5N.mjs +1704 -0
  21. package/dist/lib/node-esm/chunk-KOSV2J5N.mjs.map +7 -0
  22. package/dist/lib/node-esm/index.mjs +1151 -1175
  23. package/dist/lib/node-esm/index.mjs.map +4 -4
  24. package/dist/lib/node-esm/meta.json +1 -1
  25. package/dist/lib/node-esm/testing/index.mjs +37 -45
  26. package/dist/lib/node-esm/testing/index.mjs.map +3 -3
  27. package/dist/lib/node-esm/translations.mjs +37 -0
  28. package/dist/lib/node-esm/translations.mjs.map +7 -0
  29. package/dist/lib/node-esm/types/index.mjs +4 -3
  30. package/dist/types/src/components/Table/ColumnActionsMenu.d.ts +1 -2
  31. package/dist/types/src/components/Table/ColumnActionsMenu.d.ts.map +1 -1
  32. package/dist/types/src/components/Table/ColumnSettings.d.ts +2 -2
  33. package/dist/types/src/components/Table/ColumnSettings.d.ts.map +1 -1
  34. package/dist/types/src/components/Table/DynamicTable.d.ts +6 -7
  35. package/dist/types/src/components/Table/DynamicTable.d.ts.map +1 -1
  36. package/dist/types/src/components/Table/DynamicTable.stories.d.ts +36 -3
  37. package/dist/types/src/components/Table/DynamicTable.stories.d.ts.map +1 -1
  38. package/dist/types/src/components/Table/Relations.stories.d.ts +112 -5
  39. package/dist/types/src/components/Table/Relations.stories.d.ts.map +1 -1
  40. package/dist/types/src/components/Table/RowActionsMenu.d.ts.map +1 -1
  41. package/dist/types/src/components/Table/Table.d.ts +21 -19
  42. package/dist/types/src/components/Table/Table.d.ts.map +1 -1
  43. package/dist/types/src/components/Table/Table.stories.d.ts +115 -5
  44. package/dist/types/src/components/Table/Table.stories.d.ts.map +1 -1
  45. package/dist/types/src/components/Table/TableContent.d.ts +18 -0
  46. package/dist/types/src/components/Table/TableContent.d.ts.map +1 -0
  47. package/dist/types/src/components/Table/TableToolbar.d.ts +21 -0
  48. package/dist/types/src/components/Table/TableToolbar.d.ts.map +1 -0
  49. package/dist/types/src/components/TableCellEditor/CellValidationMessage.d.ts +1 -1
  50. package/dist/types/src/components/TableCellEditor/CellValidationMessage.d.ts.map +1 -1
  51. package/dist/types/src/components/TableCellEditor/FormCellEditor.d.ts +12 -9
  52. package/dist/types/src/components/TableCellEditor/FormCellEditor.d.ts.map +1 -1
  53. package/dist/types/src/components/TableCellEditor/TableCellEditor.d.ts +7 -14
  54. package/dist/types/src/components/TableCellEditor/TableCellEditor.d.ts.map +1 -1
  55. package/dist/types/src/components/TableCellEditor/TableCellEditor.stories.d.ts +38 -5
  56. package/dist/types/src/components/TableCellEditor/TableCellEditor.stories.d.ts.map +1 -1
  57. package/dist/types/src/components/TableCellEditor/index.d.ts +1 -0
  58. package/dist/types/src/components/TableCellEditor/index.d.ts.map +1 -1
  59. package/dist/types/src/components/index.d.ts +0 -1
  60. package/dist/types/src/components/index.d.ts.map +1 -1
  61. package/dist/types/src/components/testing.d.ts +23 -16
  62. package/dist/types/src/components/testing.d.ts.map +1 -1
  63. package/dist/types/src/hooks/index.d.ts +2 -1
  64. package/dist/types/src/hooks/index.d.ts.map +1 -1
  65. package/dist/types/src/hooks/useAddRow.d.ts +6 -6
  66. package/dist/types/src/hooks/useAddRow.d.ts.map +1 -1
  67. package/dist/types/src/hooks/useProjectionModel.d.ts +6 -0
  68. package/dist/types/src/hooks/useProjectionModel.d.ts.map +1 -0
  69. package/dist/types/src/hooks/useTableModel.d.ts +9 -9
  70. package/dist/types/src/hooks/useTableModel.d.ts.map +1 -1
  71. package/dist/types/src/index.d.ts +0 -2
  72. package/dist/types/src/index.d.ts.map +1 -1
  73. package/dist/types/src/model/modal-controller.d.ts +5 -8
  74. package/dist/types/src/model/modal-controller.d.ts.map +1 -1
  75. package/dist/types/src/model/selection-model.d.ts +18 -9
  76. package/dist/types/src/model/selection-model.d.ts.map +1 -1
  77. package/dist/types/src/model/table-model.d.ts +111 -30
  78. package/dist/types/src/model/table-model.d.ts.map +1 -1
  79. package/dist/types/src/model/table-presentation.d.ts +4 -2
  80. package/dist/types/src/model/table-presentation.d.ts.map +1 -1
  81. package/dist/types/src/playwright/TableManager.d.ts +2 -1
  82. package/dist/types/src/playwright/TableManager.d.ts.map +1 -1
  83. package/dist/types/src/playwright/playwright.config.d.ts.map +1 -1
  84. package/dist/types/src/testing/useTestTableModel.d.ts +18 -34
  85. package/dist/types/src/testing/useTestTableModel.d.ts.map +1 -1
  86. package/dist/types/src/translations.d.ts +21 -23
  87. package/dist/types/src/translations.d.ts.map +1 -1
  88. package/dist/types/src/types/Table.d.ts +32 -0
  89. package/dist/types/src/types/Table.d.ts.map +1 -0
  90. package/dist/types/src/types/index.d.ts +1 -1
  91. package/dist/types/src/types/index.d.ts.map +1 -1
  92. package/dist/types/src/util/dynamic-table.d.ts +14 -12
  93. package/dist/types/src/util/dynamic-table.d.ts.map +1 -1
  94. package/dist/types/src/util/dynamic-table.test.d.ts +2 -0
  95. package/dist/types/src/util/dynamic-table.test.d.ts.map +1 -0
  96. package/dist/types/src/util/index.d.ts +2 -1
  97. package/dist/types/src/util/index.d.ts.map +1 -1
  98. package/dist/types/src/util/query-ast.d.ts +7 -0
  99. package/dist/types/src/util/query-ast.d.ts.map +1 -0
  100. package/dist/types/src/util/schema.d.ts +1 -1
  101. package/dist/types/src/util/schema.d.ts.map +1 -1
  102. package/dist/types/src/util/signals.d.ts.map +1 -1
  103. package/dist/types/src/util/sort.d.ts +12 -0
  104. package/dist/types/src/util/sort.d.ts.map +1 -0
  105. package/dist/types/src/util/table-buttons.d.ts +20 -20
  106. package/dist/types/src/util/table-buttons.d.ts.map +1 -1
  107. package/dist/types/src/util/table-controls.d.ts +4 -4
  108. package/dist/types/src/util/table-controls.d.ts.map +1 -1
  109. package/dist/types/src/util/tag.d.ts.map +1 -1
  110. package/dist/types/tsconfig.tsbuildinfo +1 -1
  111. package/package.json +68 -77
  112. package/src/components/Table/ColumnActionsMenu.tsx +17 -12
  113. package/src/components/Table/ColumnSettings.tsx +8 -9
  114. package/src/components/Table/DynamicTable.stories.tsx +41 -38
  115. package/src/components/Table/DynamicTable.tsx +32 -36
  116. package/src/components/Table/Relations.stories.tsx +219 -61
  117. package/src/components/Table/RowActionsMenu.tsx +27 -17
  118. package/src/components/Table/Table.stories.tsx +217 -141
  119. package/src/components/Table/Table.tsx +46 -391
  120. package/src/components/Table/TableContent.tsx +426 -0
  121. package/src/components/Table/TableToolbar.tsx +111 -0
  122. package/src/components/TableCellEditor/CellValidationMessage.tsx +5 -6
  123. package/src/components/TableCellEditor/FormCellEditor.tsx +136 -41
  124. package/src/components/TableCellEditor/TableCellEditor.stories.tsx +39 -73
  125. package/src/components/TableCellEditor/TableCellEditor.tsx +81 -223
  126. package/src/components/TableCellEditor/index.ts +1 -0
  127. package/src/components/index.ts +0 -1
  128. package/src/components/testing.ts +42 -21
  129. package/src/hooks/index.ts +2 -1
  130. package/src/hooks/useAddRow.ts +14 -14
  131. package/src/hooks/useProjectionModel.ts +38 -0
  132. package/src/hooks/useTableModel.ts +36 -34
  133. package/src/index.ts +0 -4
  134. package/src/model/modal-controller.ts +23 -40
  135. package/src/model/selection-model.ts +75 -44
  136. package/src/model/table-model.test.ts +86 -56
  137. package/src/model/table-model.ts +464 -182
  138. package/src/model/table-presentation.test.ts +64 -59
  139. package/src/model/table-presentation.ts +107 -83
  140. package/src/playwright/TableManager.ts +13 -6
  141. package/src/playwright/playwright.config.ts +1 -1
  142. package/src/playwright/smoke.spec.ts +92 -46
  143. package/src/testing/useTestTableModel.ts +51 -42
  144. package/src/translations.ts +20 -22
  145. package/src/types/Table.ts +80 -0
  146. package/src/types/index.ts +1 -1
  147. package/src/util/dynamic-table.test.ts +63 -0
  148. package/src/util/dynamic-table.ts +53 -39
  149. package/src/util/index.ts +2 -1
  150. package/src/util/query-ast.ts +22 -0
  151. package/src/util/schema.ts +4 -4
  152. package/src/util/sort.ts +90 -0
  153. package/src/util/table-buttons.ts +3 -3
  154. package/src/util/table-controls.ts +2 -2
  155. package/dist/lib/browser/chunk-L2LSB6KV.mjs +0 -18
  156. package/dist/lib/browser/chunk-L2LSB6KV.mjs.map +0 -7
  157. package/dist/lib/browser/chunk-ZAOSIG3L.mjs +0 -1814
  158. package/dist/lib/browser/chunk-ZAOSIG3L.mjs.map +0 -7
  159. package/dist/lib/node-esm/chunk-NXZ4CJYX.mjs +0 -20
  160. package/dist/lib/node-esm/chunk-NXZ4CJYX.mjs.map +0 -7
  161. package/dist/lib/node-esm/chunk-ZOFFI3JJ.mjs +0 -1815
  162. package/dist/lib/node-esm/chunk-ZOFFI3JJ.mjs.map +0 -7
  163. package/dist/types/src/components/Table/CreateRefPanel.d.ts +0 -9
  164. package/dist/types/src/components/Table/CreateRefPanel.d.ts.map +0 -1
  165. package/dist/types/src/components/TableCellEditor/extension.d.ts +0 -13
  166. package/dist/types/src/components/TableCellEditor/extension.d.ts.map +0 -1
  167. package/dist/types/src/components/TableToolbar/TableToolbar.d.ts +0 -21
  168. package/dist/types/src/components/TableToolbar/TableToolbar.d.ts.map +0 -1
  169. package/dist/types/src/components/TableToolbar/index.d.ts +0 -2
  170. package/dist/types/src/components/TableToolbar/index.d.ts.map +0 -1
  171. package/dist/types/src/model/table-sorting.d.ts +0 -53
  172. package/dist/types/src/model/table-sorting.d.ts.map +0 -1
  173. package/dist/types/src/types/schema.d.ts +0 -8
  174. package/dist/types/src/types/schema.d.ts.map +0 -1
  175. package/dist/types/src/util/table.d.ts +0 -12
  176. package/dist/types/src/util/table.d.ts.map +0 -1
  177. package/src/components/Table/CreateRefPanel.tsx +0 -86
  178. package/src/components/TableCellEditor/extension.ts +0 -61
  179. package/src/components/TableToolbar/TableToolbar.tsx +0 -102
  180. package/src/components/TableToolbar/index.ts +0 -5
  181. package/src/model/table-sorting.ts +0 -216
  182. package/src/types/schema.ts +0 -16
  183. package/src/util/table.ts +0 -53
@@ -1,41 +1,25 @@
1
- import { ProjectionModel } from '@dxos/schema';
1
+ import { type RefObject } from 'react';
2
+ import { type Database, Type } from '@dxos/echo';
3
+ import { type ProjectionModel } from '@dxos/schema';
2
4
  import { type TableController } from '../components';
3
- import { TablePresentation } from '../model';
4
- /**
5
- * Custom hook to create and manage a test table model for storybook demonstrations.
6
- * Provides table data, schema, and handlers for table operations.
7
- */
8
- export declare const useTestTableModel: () => {
9
- schema: import("effect/Schema").Schema.AnyNoContext | undefined;
10
- view: import("@dxos/live-object").Live<import("@dxos/echo/Type").OfKind<import("@dxos/echo-schema").EntityKind.Object> & {
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;
5
+ import { type TableModel, TablePresentation } from '../model';
6
+ import { Table } from '../types';
7
+ export type TestTableModel<T extends Type.AnyObj = Type.AnyObj> = {
8
+ schema: T | undefined;
9
+ table: Table.Table | undefined;
30
10
  projection: ProjectionModel | undefined;
31
- tableRef: import("react").RefObject<TableController>;
32
- model: import("..").TableModel<any> | undefined;
33
- presentation: TablePresentation<any> | undefined;
34
- space: import("@dxos/client-protocol").Space | undefined;
35
- client: import("@dxos/client").Client;
11
+ tableRef: RefObject<TableController | null>;
12
+ model: TableModel | undefined;
13
+ presentation: TablePresentation | undefined;
14
+ db: Database.Database | undefined;
36
15
  handleInsertRow: () => void;
37
16
  handleSaveView: () => void;
38
- handleDeleteRows: (_: number, objects: any[]) => void;
17
+ handleDeleteRows: (rowIndex: number, objects: any[]) => void;
39
18
  handleDeleteColumn: (fieldId: string) => void;
40
19
  };
20
+ /**
21
+ * Custom hook to create and manage a test table model for storybook demonstrations.
22
+ * Provides table data, schema, and handlers for table operations.
23
+ */
24
+ export declare const useTestTableModel: <T extends Type.AnyObj = Type.AnyObj>() => TestTableModel<T>;
41
25
  //# sourceMappingURL=useTestTableModel.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useTestTableModel.d.ts","sourceRoot":"","sources":["../../../../src/testing/useTestTableModel.ts"],"names":[],"mappings":"AAYA,OAAO,EAAY,eAAe,EAAE,MAAM,cAAc,CAAC;AAEzD,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,eAAe,CAAC;AAErD,OAAO,EAAE,iBAAiB,EAAE,MAA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AO,EAAE,MAAM,KAAK,IAAI,CAAC;CAC/C,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,iBAAiB,GAAI,CAAC,SAAS,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,OAAK,cAAc,CAAC,CAAC,CA4FzF,CAAC"}
@@ -1,28 +1,26 @@
1
- export declare const translationKey = "react-ui-table";
1
+ export declare const translationKey = "@dxos/react-ui-table";
2
2
  export declare const translations: [{
3
3
  readonly 'en-US': {
4
- readonly "react-ui-table": {
5
- readonly 'object placeholder': "New table";
6
- readonly 'create object label': "Create table";
7
- readonly 'table name placeholder': "Table name";
8
- readonly 'settings title': "Table settings";
9
- readonly 'table schema label': "Record type";
10
- readonly 'new schema': "New record type";
11
- readonly 'continue label': "Continue";
12
- readonly 'create stack section label': "Create table";
13
- readonly 'add row label': "Add row";
14
- readonly 'create comment': "Create thread";
15
- readonly 'column action sort descending': "Sort Descending";
16
- readonly 'column action sort ascending': "Sort Ascending";
17
- readonly 'column action clear sorting': "Clear Sorting";
18
- readonly 'column action settings': "Column Settings";
19
- readonly 'column action delete': "Delete Column";
20
- readonly 'delete row label': "Delete row";
21
- readonly 'bulk delete row label': "Delete selected rows";
22
- readonly 'column deleted label': "Column deleted";
23
- readonly 'new column button label': "Create column";
24
- readonly 'create new object label': "Create new object “{{text}}”";
25
- readonly 'save view label': "Save changes to view";
4
+ readonly "@dxos/react-ui-table": {
5
+ readonly 'object.placeholder': 'New table';
6
+ readonly 'create-object.label': 'Create table';
7
+ readonly 'table-name.placeholder': 'Table name';
8
+ readonly 'settings.title': 'Table settings';
9
+ readonly 'table-schema.label': 'Type';
10
+ readonly 'continue.label': 'Continue';
11
+ readonly 'create-stack-section.label': 'Create table';
12
+ readonly 'add-row.label': 'Add row';
13
+ readonly 'column-action-sort-descending.menu': 'Sort Descending';
14
+ readonly 'column-action-sort-ascending.menu': 'Sort Ascending';
15
+ readonly 'column-action-clear-sorting.menu': 'Clear Sorting';
16
+ readonly 'column-action-settings.menu': 'Column Settings';
17
+ readonly 'column-action-delete.menu': 'Delete Column';
18
+ readonly 'delete-row.label': 'Delete row';
19
+ readonly 'bulk-delete-row.label': 'Delete selected rows';
20
+ readonly 'column-deleted.label': 'Column deleted';
21
+ readonly 'new-column-button.label': 'Create column';
22
+ readonly 'create-new-object.label': 'Create new object \u201C{{text}}\u201D';
23
+ readonly 'save-view.label': 'Save changes to view';
26
24
  };
27
25
  };
28
26
  }];
@@ -1 +1 @@
1
- {"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/translations.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,cAAc,mBAAmB,CAAC;AAE/C,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;EA4BM,CAAC"}
1
+ {"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/translations.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,cAAc,yBAAyB,CAAC;AAErD,eAAO,MAAM,YAAY;;;qBAIjB,oBAAoB,EAAE,WAAW;qBACjC,qBAAqB,EAAE,cAAc;qBACrC,wBAAwB,EAAE,YAAY;qBACtC,gBAAgB,EAAE,gBAAgB;qBAClC,oBAAoB,EAAE,MAAM;qBAC5B,gBAAgB,EAAE,UAAU;qBAC5B,4BAA4B,EAAE,cAAc;qBAC5C,eAAe,EAAE,SAAS;qBAC1B,oCAAoC,EAAE,iBAAiB;qBACvD,mCAAmC,EAAE,gBAAgB;qBACrD,kCAAkC,EAAE,eAAe;qBACnD,6BAA6B,EAAE,iBAAiB;qBAChD,2BAA2B,EAAE,eAAe;qBAC5C,kBAAkB,EAAE,YAAY;qBAChC,uBAAuB,EAAE,sBAAsB;qBAC/C,sBAAsB,EAAE,gBAAgB;qBACxC,yBAAyB,EAAE,eAAe;qBAC1C,yBAAyB,EAAE,wCAA8B;qBACzD,iBAAiB,EAAE,sBAAsB;;;EAIlB,CAAC"}
@@ -0,0 +1,32 @@
1
+ import * as Schema from 'effect/Schema';
2
+ import { Obj, Type, View } from '@dxos/echo';
3
+ import { type JsonSchema as JsonSchemaType } from '@dxos/echo/JsonSchema';
4
+ declare const TableSchema: Type.Obj<{
5
+ readonly name?: string | undefined;
6
+ readonly view: import("@dxos/echo/internal").Ref<View.View & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>;
7
+ readonly sizes: {
8
+ [x: string]: number;
9
+ };
10
+ }, Schema.Struct.Fields>;
11
+ export interface Table extends Type.InstanceType<typeof TableSchema> {
12
+ }
13
+ export declare const Table: Type.Obj<{
14
+ readonly name?: string | undefined;
15
+ readonly view: import("@dxos/echo/internal").Ref<View.View & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>;
16
+ readonly sizes: {
17
+ [x: string]: number;
18
+ };
19
+ }, Schema.Struct.Fields>;
20
+ type MakeProps = {
21
+ name?: string;
22
+ sizes?: Record<string, number>;
23
+ view: View.View;
24
+ /** Required to auto-size columns. */
25
+ jsonSchema?: JsonSchemaType;
26
+ };
27
+ /**
28
+ * Make a table as a view of a data set.
29
+ */
30
+ export declare const make: ({ name, sizes, view, jsonSchema }: MakeProps) => Table;
31
+ export {};
32
+ //# sourceMappingURL=Table.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../../src/types/Table.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAOxC,OAAO,EAA+B,GAAG,EAAiB,IAAI,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAEzF,OAAO,EAAE,KAAK,UAAU,IAAI,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAI1E,QAAA,MAAM,WAAW;;;;;;wBAehB,CAAC;AAGF,MAAM,WAAW,KAAM,SAAQ,IAAI,CAAC,YAAY,CAAC,OAAO,WAAW,CAAC;CAAG;AACvE,eAAO,MAAM,KAAK;;;;;;wBAAc,CAAC;AAEjC,KAAK,SAAS,GAAG;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC/B,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC;IAChB,qCAAqC;IACrC,UAAU,CAAC,EAAE,cAAc,CAAC;CAC7B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,IAAI,sCAA4C,SAAS,KAAG,KA6BxE,CAAC"}
@@ -1,2 +1,2 @@
1
- export * from './schema';
1
+ export * as Table from './Table';
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,cAAc,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/types/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC"}
@@ -1,31 +1,33 @@
1
- import { type Schema } from 'effect';
2
- import type { JsonSchemaType, SortDirectionType } from '@dxos/echo-schema';
3
- import { type DataType, ProjectionModel, type SchemaPropertyDefinition } from '@dxos/schema';
1
+ import { type Registry } from '@effect-atom/atom-react';
2
+ import type * as Types from 'effect/Types';
3
+ import { type JsonSchema, type QueryAST, Type } from '@dxos/echo';
4
+ import { ProjectionModel, type SchemaPropertyDefinition } from '@dxos/schema';
5
+ import { Table } from '../types';
4
6
  type PropertyDisplayProps = {
5
7
  size: number;
6
8
  title: string;
7
- sort: SortDirectionType;
9
+ sort: QueryAST.OrderDirection;
8
10
  };
9
11
  export type TablePropertyDefinition = SchemaPropertyDefinition & Partial<PropertyDisplayProps>;
10
12
  /**
11
13
  * @deprecated
12
14
  */
13
- export declare const getBaseSchema: ({ typename, properties, jsonSchema, schema, }: {
15
+ export declare const getBaseSchema: ({ type, typename, properties, jsonSchema, }: {
16
+ type?: Type.AnyEntity;
14
17
  typename?: string;
15
18
  properties?: TablePropertyDefinition[];
16
- jsonSchema?: JsonSchemaType;
17
- schema?: Schema.Schema.AnyNoContext;
19
+ jsonSchema?: Types.DeepMutable<JsonSchema.JsonSchema>;
18
20
  }) => {
19
21
  typename: string;
20
- jsonSchema: JsonSchemaType;
22
+ type: Type.AnyEntity;
21
23
  };
22
- export declare const makeDynamicTable: ({ typename, jsonSchema, properties, }: {
23
- typename: string;
24
- jsonSchema: JsonSchemaType;
24
+ export declare const makeDynamicTable: ({ registry, type, properties, }: {
25
+ registry: Registry.Registry;
26
+ type: Type.AnyEntity;
25
27
  properties?: TablePropertyDefinition[];
26
28
  }) => {
27
29
  projection: ProjectionModel;
28
- view: DataType.View;
30
+ object: Table.Table;
29
31
  };
30
32
  export {};
31
33
  //# sourceMappingURL=dynamic-table.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"dynamic-table.d.ts","sourceRoot":"","sources":["../../../../src/util/dynamic-table.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,QAAQ,CAAC;AAIrC,OAAO,KAAK,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC3E,OAAO,EACL,KAAK,QAAQ,EACb,eAAe,EACf,KAAK,wBAAwB,EAG9B,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,YA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QAAQ,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,IAAI,CAAC,SAAS,CAAA;CAU3C,CAAC;AAEF,eAAO,MAAM,gBAAgB,oCAI1B;IACD,QAAQ,EAAE,QAAQ,CAAC,QAAQ,CAAC;IAC5B,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC;IACrB,UAAU,CAAC,EAAE,uBAAuB,EAAE,CAAC;CACxC,KAAG;IAAE,UAAU,EAAE,eAAe,CAAC;IAAC,MAAM,EAAE,KAAK,CAAC,KAAK,CAAA;CAsBrD,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=dynamic-table.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dynamic-table.test.d.ts","sourceRoot":"","sources":["../../../../src/util/dynamic-table.test.ts"],"names":[],"mappings":""}
@@ -1,6 +1,7 @@
1
1
  export * from './dynamic-table';
2
+ export * from './query-ast';
2
3
  export * from './signals';
3
- export * from './table';
4
+ export * from './sort';
4
5
  export * from './table-buttons';
5
6
  export * from './table-controls';
6
7
  export * from './schema';
@@ -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,SAAS,CAAC;AACxB,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/util/index.ts"],"names":[],"mappings":"AAIA,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,UAAU,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { type QueryAST } from '@dxos/echo';
2
+ /**
3
+ * Extracts order clauses from a query AST.
4
+ * Handles nested structures (options, order, etc.).
5
+ */
6
+ export declare const extractOrder: (queryAst: QueryAST.Query) => readonly QueryAST.Order[] | undefined;
7
+ //# sourceMappingURL=query-ast.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"query-ast.d.ts","sourceRoot":"","sources":["../../../../src/util/query-ast.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE3C;;;GAGG;AACH,eAAO,MAAM,YAAY,aAAc,QAAQ,CAAC,KAAK,KAAG,SAAS,QAAQ,CAAC,KAAK,EAAE,GAAG,SAWnF,CAAC"}
@@ -1,4 +1,4 @@
1
- import { Schema } from 'effect';
1
+ import * as Schema from 'effect/Schema';
2
2
  /**
3
3
  * Creates a narrowed schema from an original schema that only includes
4
4
  * the specified paths. This allows form components to only display
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/util/schema.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAGhC;;;;;;;;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
+ {"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,UACvD,CAAC,SACF,MAAM,EAAE,KACd,MAAM,CAAC,MAAM,CAAC,OAAO,EAAE,OAAO,CAAC,GAAG,SAgBpC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"signals.d.ts","sourceRoot":"","sources":["../../../../src/util/signals.ts"],"names":[],"mappings":"AAIA;;;GAGG;AACH,eAAO,MAAM,KAAK,GAAI,CAAC,EAAE,OAAO,CAAC,MAAU,CAAC"}
1
+ {"version":3,"file":"signals.d.ts","sourceRoot":"","sources":["../../../../src/util/signals.ts"],"names":[],"mappings":"AAIA;;;GAGG;AACH,eAAO,MAAM,KAAK,GAAI,CAAC,SAAS,CAAC,MAAU,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { Format, type QueryAST } from '@dxos/echo';
2
+ /**
3
+ * Gets a normalized sort value for a given value and format.
4
+ * This ensures consistent sorting behavior across different data types.
5
+ */
6
+ export declare const getSortValue: (value: any, format: Format.TypeFormat) => any;
7
+ /**
8
+ * Compares two values for sorting based on the field format.
9
+ * Handles dates, numbers, and strings appropriately.
10
+ */
11
+ export declare const compareValues: (aValue: any, bValue: any, format: Format.TypeFormat, direction: QueryAST.OrderDirection) => number;
12
+ //# sourceMappingURL=sort.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sort.d.ts","sourceRoot":"","sources":["../../../../src/util/sort.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,KAAK,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEnD;;;GAGG;AACH,eAAO,MAAM,YAAY,UAAW,GAAG,UAAU,MAAM,CAAC,UAAU,KAAG,GA2CpE,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,aAAa,WAChB,GAAG,UACH,GAAG,UACH,MAAM,CAAC,UAAU,aACd,QAAQ,CAAC,cAAc,KACjC,MAyBF,CAAC"}
@@ -23,52 +23,52 @@ type ButtonData = {
23
23
  export declare const tableButtons: {
24
24
  readonly addColumn: {
25
25
  readonly attr: string;
26
- readonly icon: "ph--plus--regular";
26
+ readonly icon: 'ph--plus--regular';
27
27
  readonly render: ({ disabled }: Omit<Extract<ButtonData, {
28
- type: "newColumn";
29
- }>, "type">) => string;
28
+ type: 'newColumn';
29
+ }>, 'type'>) => string;
30
30
  readonly getData: (_el: HTMLElement) => Extract<ButtonData, {
31
- type: "newColumn";
31
+ type: 'newColumn';
32
32
  }>;
33
33
  };
34
34
  readonly columnSettings: {
35
35
  readonly attr: string;
36
- readonly icon: "ph--caret-down--regular";
36
+ readonly icon: 'ph--caret-down--regular';
37
37
  readonly render: ({ fieldId }: Omit<Extract<ButtonData, {
38
- type: "columnSettings";
39
- }>, "type">) => string;
38
+ type: 'columnSettings';
39
+ }>, 'type'>) => string;
40
40
  readonly getData: (el: HTMLElement) => Extract<ButtonData, {
41
- type: "columnSettings";
41
+ type: 'columnSettings';
42
42
  }>;
43
43
  };
44
44
  readonly rowMenu: {
45
45
  readonly attr: string;
46
- readonly icon: "ph--dots-three--regular";
46
+ readonly icon: 'ph--dots-three--regular';
47
47
  readonly render: ({ rowIndex }: Omit<Extract<ButtonData, {
48
- type: "rowMenu";
49
- }>, "type">) => string;
48
+ type: 'rowMenu';
49
+ }>, 'type'>) => string;
50
50
  readonly getData: (el: HTMLElement) => Extract<ButtonData, {
51
- type: "rowMenu";
51
+ type: 'rowMenu';
52
52
  }>;
53
53
  };
54
54
  readonly saveDraftRow: {
55
55
  readonly attr: string;
56
- readonly icon: "ph--floppy-disk--regular";
56
+ readonly icon: 'ph--floppy-disk--regular';
57
57
  readonly render: ({ rowIndex, disabled }: Omit<Extract<ButtonData, {
58
- type: "saveDraftRow";
59
- }>, "type">) => string;
58
+ type: 'saveDraftRow';
59
+ }>, 'type'>) => string;
60
60
  readonly getData: (el: HTMLElement) => Extract<ButtonData, {
61
- type: "saveDraftRow";
61
+ type: 'saveDraftRow';
62
62
  }>;
63
63
  };
64
64
  readonly sort: {
65
65
  readonly attr: string;
66
- readonly icon: "ph--sort-ascending--regular";
66
+ readonly icon: 'ph--sort-ascending--regular';
67
67
  readonly render: ({ fieldId, direction }: Omit<Extract<ButtonData, {
68
- type: "sort";
69
- }>, "type">) => string;
68
+ type: 'sort';
69
+ }>, 'type'>) => string;
70
70
  readonly getData: (el: HTMLElement) => Extract<ButtonData, {
71
- type: "sort";
71
+ type: 'sort';
72
72
  }>;
73
73
  };
74
74
  };
@@ -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;;;;wCA/FA,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE;YAAE,IAAI,EAAE,WAAW,CAAA;SAAE,CAAC,EAAE,MAAM,CAAC;gCAShE,WAAW,KAAG,OAAO,CAAC,UAAU,EAAE;YAAE,IAAI,EAAE,WAAW,CAAA;SAAE,CAAC;;;;;uCAMjD,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE;YAAE,IAAI,EAAE,gBAAgB,CAAA;SAAE,CAAC,EAAE,MAAM,CAAC;+BAUrE,WAAW,KAAG,OAAO,CAAC,UAAU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WAAW,KAAG,OAAO,CAAC,UAAU,EAAE;YAAE,IAAI,EAAE,MAAM,CAAA;SAAE,CAAC;;CAkCzD,CAAC"}
@@ -19,8 +19,8 @@ export type RenderSwitchProps = CommonRenderProps & Omit<Extract<ControlData, {
19
19
  type: 'switch';
20
20
  }>, 'type'>;
21
21
  export declare const CONTROL_IDENTIFIERS: {
22
- readonly checkbox: "data-table-checkbox";
23
- readonly switch: "data-table-switch";
22
+ readonly checkbox: 'data-table-checkbox';
23
+ readonly switch: 'data-table-switch';
24
24
  };
25
25
  export declare const CheckboxStory: ({ rowIndex, header, checked, disabled, }: RenderCheckboxProps) => string;
26
26
  export declare const SwitchStory: ({ colIndex, rowIndex, checked, disabled }: RenderSwitchProps) => string;
@@ -29,14 +29,14 @@ export declare const tableControls: {
29
29
  readonly attr: "data-table-checkbox";
30
30
  readonly render: ({ rowIndex, header, checked, disabled, }: RenderCheckboxProps) => string;
31
31
  readonly getData: (el: HTMLElement) => Extract<ControlData, {
32
- type: "checkbox";
32
+ type: 'checkbox';
33
33
  }>;
34
34
  };
35
35
  readonly switch: {
36
36
  readonly attr: "data-table-switch";
37
37
  readonly render: ({ colIndex, rowIndex, checked, disabled }: RenderSwitchProps) => string;
38
38
  readonly getData: (el: HTMLElement) => Extract<ControlData, {
39
- type: "switch";
39
+ type: 'switch';
40
40
  }>;
41
41
  };
42
42
  };
@@ -1 +1 @@
1
- {"version":3,"file":"table-controls.d.ts","sourceRoot":"","sources":["../../../../src/util/table-controls.ts"],"names":[],"mappings":"AAOA,MAAM,MAAM,YAAY,GAAG,UAAU,GAAG,QAAQ,CAAC;AAEjD,MAAM,MAAM,WAAW,GACnB;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,OAAO,CAAA;CAAE,GACxD;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA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,OAAO,KAAG,MAAM,EAAE,GAAG,SAgBzD,CAAC"}
1
+ {"version":3,"file":"tag.d.ts","sourceRoot":"","sources":["../../../../src/util/tag.ts"],"names":[],"mappings":"AAMA;;GAEG;AACH,eAAO,MAAM,iBAAiB,QAA6B,CAAC;AAE5D;;;;GAIG;AACH,eAAO,MAAM,aAAa,UAAW,OAAO,KAAG,MAAM,EAAE,GAAG,SAgBzD,CAAC"}