@dxos/react-ui-table 0.8.4-main.f9ba587 → 0.8.4-main.fcc0d83b33

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 (185) hide show
  1. package/dist/lib/browser/chunk-FBURZBPH.mjs +70 -0
  2. package/dist/lib/browser/chunk-FBURZBPH.mjs.map +7 -0
  3. package/dist/lib/browser/chunk-J5LGTIGS.mjs +10 -0
  4. package/dist/lib/browser/chunk-J5LGTIGS.mjs.map +7 -0
  5. package/dist/lib/browser/chunk-YGC7LZJN.mjs +1695 -0
  6. package/dist/lib/browser/chunk-YGC7LZJN.mjs.map +7 -0
  7. package/dist/lib/browser/index.mjs +1158 -2872
  8. package/dist/lib/browser/index.mjs.map +4 -4
  9. package/dist/lib/browser/meta.json +1 -1
  10. package/dist/lib/browser/testing/index.mjs +115 -0
  11. package/dist/lib/browser/testing/index.mjs.map +7 -0
  12. package/dist/lib/browser/translations.mjs +36 -0
  13. package/dist/lib/browser/translations.mjs.map +7 -0
  14. package/dist/lib/browser/types/index.mjs +4 -5
  15. package/dist/lib/node-esm/chunk-DKKMSVKP.mjs +71 -0
  16. package/dist/lib/node-esm/chunk-DKKMSVKP.mjs.map +7 -0
  17. package/dist/lib/node-esm/chunk-GKIWDEZ7.mjs +1697 -0
  18. package/dist/lib/node-esm/chunk-GKIWDEZ7.mjs.map +7 -0
  19. package/dist/lib/node-esm/chunk-HSLMI22Q.mjs +11 -0
  20. package/dist/lib/node-esm/chunk-HSLMI22Q.mjs.map +7 -0
  21. package/dist/lib/node-esm/index.mjs +1158 -2872
  22. package/dist/lib/node-esm/index.mjs.map +4 -4
  23. package/dist/lib/node-esm/meta.json +1 -1
  24. package/dist/lib/node-esm/testing/index.mjs +116 -0
  25. package/dist/lib/node-esm/testing/index.mjs.map +7 -0
  26. package/dist/lib/node-esm/translations.mjs +37 -0
  27. package/dist/lib/node-esm/translations.mjs.map +7 -0
  28. package/dist/lib/node-esm/types/index.mjs +4 -5
  29. package/dist/types/src/components/Table/ColumnActionsMenu.d.ts +2 -3
  30. package/dist/types/src/components/Table/ColumnActionsMenu.d.ts.map +1 -1
  31. package/dist/types/src/components/Table/ColumnSettings.d.ts +4 -2
  32. package/dist/types/src/components/Table/ColumnSettings.d.ts.map +1 -1
  33. package/dist/types/src/components/Table/DynamicTable.d.ts +7 -7
  34. package/dist/types/src/components/Table/DynamicTable.d.ts.map +1 -1
  35. package/dist/types/src/components/Table/DynamicTable.stories.d.ts +35 -3
  36. package/dist/types/src/components/Table/DynamicTable.stories.d.ts.map +1 -1
  37. package/dist/types/src/components/Table/Relations.stories.d.ts +111 -0
  38. package/dist/types/src/components/Table/Relations.stories.d.ts.map +1 -0
  39. package/dist/types/src/components/Table/RowActionsMenu.d.ts +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 -18
  42. package/dist/types/src/components/Table/Table.d.ts.map +1 -1
  43. package/dist/types/src/components/Table/Table.stories.d.ts +110 -6
  44. package/dist/types/src/components/Table/Table.stories.d.ts.map +1 -1
  45. package/dist/types/src/components/Table/TableContent.d.ts +17 -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 +14 -9
  52. package/dist/types/src/components/TableCellEditor/FormCellEditor.d.ts.map +1 -1
  53. package/dist/types/src/components/TableCellEditor/TableCellEditor.d.ts +12 -18
  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 +26 -56
  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 +11 -10
  70. package/dist/types/src/hooks/useTableModel.d.ts.map +1 -1
  71. package/dist/types/src/index.d.ts +0 -3
  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 -8
  76. package/dist/types/src/model/selection-model.d.ts.map +1 -1
  77. package/dist/types/src/model/table-model.d.ts +116 -34
  78. package/dist/types/src/model/table-model.d.ts.map +1 -1
  79. package/dist/types/src/model/table-presentation.d.ts +5 -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/index.d.ts +2 -0
  85. package/dist/types/src/testing/index.d.ts.map +1 -0
  86. package/dist/types/src/testing/useTestTableModel.d.ts +25 -0
  87. package/dist/types/src/testing/useTestTableModel.d.ts.map +1 -0
  88. package/dist/types/src/translations.d.ts +21 -23
  89. package/dist/types/src/translations.d.ts.map +1 -1
  90. package/dist/types/src/types/Table.d.ts +26 -0
  91. package/dist/types/src/types/Table.d.ts.map +1 -0
  92. package/dist/types/src/types/index.d.ts +1 -1
  93. package/dist/types/src/types/index.d.ts.map +1 -1
  94. package/dist/types/src/util/dynamic-table.d.ts +15 -14
  95. package/dist/types/src/util/dynamic-table.d.ts.map +1 -1
  96. package/dist/types/src/util/dynamic-table.test.d.ts +2 -0
  97. package/dist/types/src/util/dynamic-table.test.d.ts.map +1 -0
  98. package/dist/types/src/util/index.d.ts +2 -1
  99. package/dist/types/src/util/index.d.ts.map +1 -1
  100. package/dist/types/src/util/query-ast.d.ts +7 -0
  101. package/dist/types/src/util/query-ast.d.ts.map +1 -0
  102. package/dist/types/src/util/schema.d.ts +1 -1
  103. package/dist/types/src/util/schema.d.ts.map +1 -1
  104. package/dist/types/src/util/signals.d.ts.map +1 -1
  105. package/dist/types/src/util/sort.d.ts +12 -0
  106. package/dist/types/src/util/sort.d.ts.map +1 -0
  107. package/dist/types/src/util/table-buttons.d.ts +20 -20
  108. package/dist/types/src/util/table-buttons.d.ts.map +1 -1
  109. package/dist/types/src/util/table-controls.d.ts +4 -4
  110. package/dist/types/src/util/table-controls.d.ts.map +1 -1
  111. package/dist/types/src/util/tag.d.ts.map +1 -1
  112. package/dist/types/tsconfig.tsbuildinfo +1 -1
  113. package/package.json +80 -69
  114. package/src/components/Table/ColumnActionsMenu.tsx +18 -13
  115. package/src/components/Table/ColumnSettings.tsx +18 -15
  116. package/src/components/Table/DynamicTable.stories.tsx +40 -36
  117. package/src/components/Table/DynamicTable.tsx +38 -34
  118. package/src/components/Table/Relations.stories.tsx +281 -0
  119. package/src/components/Table/RowActionsMenu.tsx +28 -18
  120. package/src/components/Table/Table.stories.tsx +198 -220
  121. package/src/components/Table/Table.tsx +47 -376
  122. package/src/components/Table/TableContent.tsx +421 -0
  123. package/src/components/Table/TableToolbar.tsx +111 -0
  124. package/src/components/TableCellEditor/CellValidationMessage.tsx +6 -6
  125. package/src/components/TableCellEditor/FormCellEditor.tsx +153 -49
  126. package/src/components/TableCellEditor/TableCellEditor.stories.tsx +38 -77
  127. package/src/components/TableCellEditor/TableCellEditor.tsx +104 -233
  128. package/src/components/TableCellEditor/index.ts +1 -0
  129. package/src/components/index.ts +0 -1
  130. package/src/components/testing.ts +46 -37
  131. package/src/hooks/index.ts +2 -1
  132. package/src/hooks/useAddRow.ts +14 -14
  133. package/src/hooks/useProjectionModel.ts +39 -0
  134. package/src/hooks/useTableModel.ts +41 -35
  135. package/src/index.ts +0 -5
  136. package/src/model/modal-controller.ts +24 -41
  137. package/src/model/selection-model.ts +75 -41
  138. package/src/model/table-model.test.ts +91 -56
  139. package/src/model/table-model.ts +468 -187
  140. package/src/model/table-presentation.test.ts +77 -60
  141. package/src/model/table-presentation.ts +112 -66
  142. package/src/playwright/TableManager.ts +13 -6
  143. package/src/playwright/playwright.config.ts +1 -1
  144. package/src/playwright/smoke.spec.ts +180 -43
  145. package/src/testing/index.ts +5 -0
  146. package/src/testing/useTestTableModel.ts +133 -0
  147. package/src/translations.ts +20 -22
  148. package/src/types/Table.ts +79 -0
  149. package/src/types/index.ts +2 -2
  150. package/src/util/dynamic-table.test.ts +77 -0
  151. package/src/util/dynamic-table.ts +51 -36
  152. package/src/util/index.ts +2 -1
  153. package/src/util/query-ast.ts +22 -0
  154. package/src/util/schema.ts +4 -4
  155. package/src/util/sort.ts +90 -0
  156. package/src/util/table-buttons.ts +4 -3
  157. package/src/util/table-controls.ts +6 -3
  158. package/dist/lib/browser/chunk-Q5QQXJUO.mjs +0 -27
  159. package/dist/lib/browser/chunk-Q5QQXJUO.mjs.map +0 -7
  160. package/dist/lib/node-esm/chunk-ZNOU6LHG.mjs +0 -29
  161. package/dist/lib/node-esm/chunk-ZNOU6LHG.mjs.map +0 -7
  162. package/dist/types/src/components/Table/CreateRefPanel.d.ts +0 -9
  163. package/dist/types/src/components/Table/CreateRefPanel.d.ts.map +0 -1
  164. package/dist/types/src/components/Table/relations.stories.d.ts +0 -9
  165. package/dist/types/src/components/Table/relations.stories.d.ts.map +0 -1
  166. package/dist/types/src/components/TableCellEditor/extension.d.ts +0 -13
  167. package/dist/types/src/components/TableCellEditor/extension.d.ts.map +0 -1
  168. package/dist/types/src/components/TableToolbar/TableToolbar.d.ts +0 -21
  169. package/dist/types/src/components/TableToolbar/TableToolbar.d.ts.map +0 -1
  170. package/dist/types/src/components/TableToolbar/index.d.ts +0 -2
  171. package/dist/types/src/components/TableToolbar/index.d.ts.map +0 -1
  172. package/dist/types/src/model/table-sorting.d.ts +0 -53
  173. package/dist/types/src/model/table-sorting.d.ts.map +0 -1
  174. package/dist/types/src/types/table.d.ts +0 -56
  175. package/dist/types/src/types/table.d.ts.map +0 -1
  176. package/dist/types/src/util/table.d.ts +0 -14
  177. package/dist/types/src/util/table.d.ts.map +0 -1
  178. package/src/components/Table/CreateRefPanel.tsx +0 -84
  179. package/src/components/Table/relations.stories.tsx +0 -123
  180. package/src/components/TableCellEditor/extension.ts +0 -61
  181. package/src/components/TableToolbar/TableToolbar.tsx +0 -102
  182. package/src/components/TableToolbar/index.ts +0 -5
  183. package/src/model/table-sorting.ts +0 -216
  184. package/src/types/table.ts +0 -27
  185. package/src/util/table.ts +0 -127
@@ -10,9 +10,10 @@ export declare class TableManager {
10
10
  toggleSelectAll(): Promise<void>;
11
11
  selection(index: number): Locator;
12
12
  sortColumn(index: number, direction: 'ascending' | 'descending'): Promise<void>;
13
+ addRow(): Promise<void>;
13
14
  addColumn({ label, format }: {
14
15
  label: string;
15
- format: 'number';
16
+ format?: string;
16
17
  }): Promise<void>;
17
18
  }
18
19
  //# sourceMappingURL=TableManager.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TableManager.d.ts","sourceRoot":"","sources":["../../../../src/playwright/TableManager.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAE3D,OAAO,EAAE,aAAa,EAAE,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AI,CAAC,CAE5C;IAEM,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAEvC;IAEY,UAAU,CAAC,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,WAAW,GAAG,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CAG3F;IAEY,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC,CAEnC;IAEY,SAAS,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAS3F;CACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"playwright.config.d.ts","sourceRoot":"","sources":["../../../../src/playwright/playwright.config.ts"],"names":[],"mappings":";AAQA,wBAQG"}
1
+ {"version":3,"file":"playwright.config.d.ts","sourceRoot":"","sources":["../../../../src/playwright/playwright.config.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export * from './useTestTableModel';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/testing/index.ts"],"names":[],"mappings":"AAIA,cAAc,qBAAqB,CAAC"}
@@ -0,0 +1,25 @@
1
+ import { type RefObject } from 'react';
2
+ import { type Database, type Type } from '@dxos/echo';
3
+ import { type ProjectionModel } from '@dxos/schema';
4
+ import { type TableController } from '../components';
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;
10
+ projection: ProjectionModel | undefined;
11
+ tableRef: RefObject<TableController | null>;
12
+ model: TableModel | undefined;
13
+ presentation: TablePresentation | undefined;
14
+ db: Database.Database | undefined;
15
+ handleInsertRow: () => void;
16
+ handleSaveView: () => void;
17
+ handleDeleteRows: (rowIndex: number, objects: any[]) => void;
18
+ handleDeleteColumn: (fieldId: string) => void;
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>;
25
+ //# sourceMappingURL=useTestTableModel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useTestTableModel.d.ts","sourceRoot":"","sources":["../../../../src/testing/useTestTableModel.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,SAAS,EAA4C,MAAM,OAAO,CAAC;AAEjF,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,IAAI,EAAE,MAAM,YAAY,CAAC;AAMtD,OAAO,EAAE,KAAK,eAAe,EAAwB,MAAM,cAAc,CAAC;AAE1E,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,eAAe,CAAC;AAErD,OAAO,EAAE,KAAK,UAAU,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAC9D,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAIjC,MAAM,MAAM,cAAc,CAAC,CAAC,SAAS,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,IAAI;IAChE,MAAM,EAAE,CAAC,GAAG,SAAS,CAAC;IACtB,KAAK,EAAE,KAAK,CAAC,KAAK,GAAG,SAAS,CAAC;IAC/B,UAAU,EAAE,eAAe,GAAG,SAAS,CAAC;IACxC,QAAQ,EAAE,SAAS,CAAC,eAAe,GAAG,IAAI,CAAC,CAAC;IAC5C,KAAK,EAAE,UAAU,GAAG,SAAS,CAAC;IAC9B,YAAY,EAAE,iBAAiB,GAAG,SAAS,CAAC;IAC5C,EAAE,EAAE,QAAQ,CAAC,QAAQ,GAAG,SAAS,CAAC;IAClC,eAAe,EAAE,MAAM,IAAI,CAAC;IAC5B,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,gBAAgB,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,EAAE,KAAK,IAAI,CAAC;IAC7D,kBAAkB,EAAE,CAAC,OAAO,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': "Schema";
10
- readonly 'new schema': "New schema";
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,26 @@
1
+ import * as Schema from 'effect/Schema';
2
+ import { Type } from '@dxos/echo';
3
+ import { View } from '@dxos/echo';
4
+ import { type JsonSchemaType } from '@dxos/echo/internal';
5
+ export declare const Table: Type.Obj<{
6
+ readonly name?: string | undefined;
7
+ readonly view: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & View.View>;
8
+ readonly sizes: {
9
+ [x: string]: number;
10
+ };
11
+ }, Schema.Struct.Fields>;
12
+ export interface Table extends Schema.Schema.Type<typeof Table> {
13
+ }
14
+ type MakeProps = {
15
+ name?: string;
16
+ sizes?: Record<string, number>;
17
+ view: View.View;
18
+ /** Required to auto-size columns. */
19
+ jsonSchema?: JsonSchemaType;
20
+ };
21
+ /**
22
+ * Make a table as a view of a data set.
23
+ */
24
+ export declare const make: ({ name, sizes, view, jsonSchema }: MakeProps) => Table;
25
+ export {};
26
+ //# 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;AAGxC,OAAO,EAAoC,IAAI,EAAE,MAAM,YAAY,CAAC;AACpE,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAClC,OAAO,EAAsC,KAAK,cAAc,EAAmB,MAAM,qBAAqB,CAAC;AAG/G,eAAO,MAAM,KAAK;;;;;;wBAqBjB,CAAC;AAEF,MAAM,WAAW,KAAM,SAAQ,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,KAAK,CAAC;CAAG;AAElE,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 './table';
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,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/types/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC"}
@@ -1,32 +1,33 @@
1
- import { type Schema } from 'effect';
2
- import type { JsonSchemaType, SortDirectionType } from '@dxos/echo-schema';
3
- import { ViewProjection, type SchemaPropertyDefinition } from '@dxos/schema';
4
- import { TableType } from '../types';
1
+ import { type Registry } from '@effect-atom/atom-react';
2
+ import type * as Types from 'effect/Types';
3
+ import { JsonSchema, type QueryAST, Type } from '@dxos/echo';
4
+ import { ProjectionModel, type SchemaPropertyDefinition } from '@dxos/schema';
5
+ import { Table } from '../types';
5
6
  type PropertyDisplayProps = {
6
7
  size: number;
7
8
  title: string;
8
- sort: SortDirectionType;
9
+ sort: QueryAST.OrderDirection;
9
10
  };
10
11
  export type TablePropertyDefinition = SchemaPropertyDefinition & Partial<PropertyDisplayProps>;
11
12
  /**
12
13
  * @deprecated
13
14
  */
14
- export declare const getBaseSchema: ({ typename, properties, jsonSchema, schema, }: {
15
+ export declare const getBaseSchema: ({ schema, typename, properties, jsonSchema, }: {
16
+ schema?: Type.AnyEntity;
15
17
  typename?: string;
16
18
  properties?: TablePropertyDefinition[];
17
- jsonSchema?: JsonSchemaType;
18
- schema?: Schema.Schema.AnyNoContext;
19
+ jsonSchema?: Types.DeepMutable<JsonSchema.JsonSchema>;
19
20
  }) => {
20
21
  typename: string;
21
- jsonSchema: JsonSchemaType;
22
+ jsonSchema: Types.DeepMutable<JsonSchema.JsonSchema>;
22
23
  };
23
- export declare const makeDynamicTable: ({ typename, jsonSchema, properties, }: {
24
- typename: string;
25
- jsonSchema: JsonSchemaType;
24
+ export declare const makeDynamicTable: ({ registry, jsonSchema, properties, }: {
25
+ registry: Registry.Registry;
26
+ jsonSchema: Types.DeepMutable<JsonSchema.JsonSchema>;
26
27
  properties?: TablePropertyDefinition[];
27
28
  }) => {
28
- table: TableType;
29
- projection: ViewProjection;
29
+ projection: ProjectionModel;
30
+ object: Table.Table;
30
31
  };
31
32
  export {};
32
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,EAGL,cAAc,EAEd,KAAK,wBAAwB,EAC9B,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAGrC,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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AAW,CAAC,UAAU,CAAC,UAAU,CAAC,CAAA;CAW3E,CAAC;AAEF,eAAO,MAAM,gBAAgB,0CAI1B;IACD,QAAQ,EAAE,QAAQ,CAAC,QAAQ,CAAC;IAC5B,UAAU,EAAE,KAAK,CAAC,WAAW,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC;IACrD,UAAU,CAAC,EAAE,uBAAuB,EAAE,CAAC;CACxC,KAAG;IAAE,UAAU,EAAE,eAAe,CAAC;IAAC,MAAM,EAAE,KAAK,CAAC,KAAK,CAAA;CAoBrD,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;AA0HlE,eAAO,MAAM,YAAY;;;;wCA9FA,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,U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BActE,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":"AAKA,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,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OAAO,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"}