@dxos/react-ui-table 0.8.2-main.12df754 → 0.8.2-main.36232bc
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/index.mjs +41 -9
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/node/index.cjs +38 -8
- package/dist/lib/node/index.cjs.map +4 -4
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node-esm/index.mjs +41 -9
- package/dist/lib/node-esm/index.mjs.map +4 -4
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/types/src/components/Table/Table.d.ts.map +1 -1
- package/dist/types/src/components/Table/relations.stories.d.ts.map +1 -1
- package/dist/types/src/model/table-model.d.ts.map +1 -1
- package/dist/types/src/util/table.d.ts.map +1 -1
- package/dist/types/src/util/tag.d.ts +11 -0
- package/dist/types/src/util/tag.d.ts.map +1 -0
- package/package.json +33 -33
- package/src/components/Table/Table.stories.tsx +2 -2
- package/src/components/Table/Table.tsx +18 -18
- package/src/components/Table/relations.stories.tsx +29 -20
- package/src/model/table-model.ts +17 -0
- package/src/util/table.ts +1 -5
- package/src/util/tag.ts +33 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"inputs":{"packages/ui/react-ui-table/src/translations.ts":{"bytes":3942,"imports":[],"format":"esm"},"packages/ui/react-ui-table/src/components/Table/ColumnActionsMenu.tsx":{"bytes":8486,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"packages/ui/react-ui-table/src/translations.ts","kind":"import-statement","original":"../../translations"}],"format":"esm"},"packages/ui/react-ui-table/src/components/Table/ColumnSettings.tsx":{"bytes":8916,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true}],"format":"esm"},"packages/ui/react-ui-table/src/components/Table/CreateRefPanel.tsx":{"bytes":9156,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"@dxos/react-ui-grid","kind":"import-statement","external":true}],"format":"esm"},"packages/ui/react-ui-table/src/components/Table/RefPanel.tsx":{"bytes":5663,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true}],"format":"esm"},"packages/ui/react-ui-table/src/components/Table/RowActionsMenu.tsx":{"bytes":5974,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"packages/ui/react-ui-table/src/translations.ts","kind":"import-statement","original":"../../translations"}],"format":"esm"},"packages/ui/react-ui-table/src/types/table.ts":{"bytes":2992,"imports":[{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true}],"format":"esm"},"packages/ui/react-ui-table/src/types/index.ts":{"bytes":497,"imports":[{"path":"packages/ui/react-ui-table/src/types/table.ts","kind":"import-statement","original":"./table"}],"format":"esm"},"packages/ui/react-ui-table/src/util/dynamic-table.ts":{"bytes":9457,"imports":[{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true},{"path":"packages/ui/react-ui-table/src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"packages/ui/react-ui-table/src/util/signals.ts":{"bytes":915,"imports":[],"format":"esm"},"packages/ui/react-ui-table/src/util/table.ts":{"bytes":12119,"imports":[{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/react-client","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true}],"format":"esm"},"packages/ui/react-ui-table/src/util/table-buttons.ts":{"bytes":14779,"imports":[],"format":"esm"},"packages/ui/react-ui-table/src/util/table-controls.ts":{"bytes":8862,"imports":[],"format":"esm"},"packages/ui/react-ui-table/src/util/index.ts":{"bytes":895,"imports":[{"path":"packages/ui/react-ui-table/src/util/dynamic-table.ts","kind":"import-statement","original":"./dynamic-table"},{"path":"packages/ui/react-ui-table/src/util/signals.ts","kind":"import-statement","original":"./signals"},{"path":"packages/ui/react-ui-table/src/util/table.ts","kind":"import-statement","original":"./table"},{"path":"packages/ui/react-ui-table/src/util/table-buttons.ts","kind":"import-statement","original":"./table-buttons"},{"path":"packages/ui/react-ui-table/src/util/table-controls.ts","kind":"import-statement","original":"./table-controls"}],"format":"esm"},"packages/ui/react-ui-table/src/model/selection-model.ts":{"bytes":12076,"imports":[{"path":"@preact/signals-core","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"packages/ui/react-ui-table/src/util/index.ts","kind":"import-statement","original":"../util"}],"format":"esm"},"packages/ui/react-ui-table/src/model/table-sorting.ts":{"bytes":23382,"imports":[{"path":"@preact/signals-core","kind":"import-statement","external":true},{"path":"lodash.orderby","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true}],"format":"esm"},"packages/ui/react-ui-table/src/model/table-model.ts":{"bytes":42624,"imports":[{"path":"@preact/signals-core","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"packages/ui/react-ui-table/src/model/selection-model.ts","kind":"import-statement","original":"./selection-model"},{"path":"packages/ui/react-ui-table/src/model/table-sorting.ts","kind":"import-statement","original":"./table-sorting"},{"path":"packages/ui/react-ui-table/src/util/index.ts","kind":"import-statement","original":"../util"}],"format":"esm"},"packages/ui/react-ui-table/src/model/modal-controller.ts":{"bytes":8467,"imports":[{"path":"@preact/signals-core","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true}],"format":"esm"},"packages/ui/react-ui-table/src/model/table-presentation.ts":{"bytes":37513,"imports":[{"path":"@preact/signals-core","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"@dxos/react-ui-grid","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true},{"path":"packages/ui/react-ui-table/src/util/index.ts","kind":"import-statement","original":"../util"}],"format":"esm"},"packages/ui/react-ui-table/src/model/index.ts":{"bytes":817,"imports":[{"path":"packages/ui/react-ui-table/src/model/table-model.ts","kind":"import-statement","original":"./table-model"},{"path":"packages/ui/react-ui-table/src/model/modal-controller.ts","kind":"import-statement","original":"./modal-controller"},{"path":"packages/ui/react-ui-table/src/model/table-presentation.ts","kind":"import-statement","original":"./table-presentation"}],"format":"esm"},"packages/ui/react-ui-table/src/components/TableCellEditor/extension.ts":{"bytes":5534,"imports":[{"path":"@codemirror/autocomplete","kind":"import-statement","external":true},{"path":"@codemirror/view","kind":"import-statement","external":true}],"format":"esm"},"packages/ui/react-ui-table/src/components/TableCellEditor/TableCellEditor.tsx":{"bytes":30550,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-editor","kind":"import-statement","external":true},{"path":"@dxos/react-ui-grid","kind":"import-statement","external":true},{"path":"@dxos/react-ui-tag-picker","kind":"import-statement","external":true},{"path":"packages/ui/react-ui-table/src/components/TableCellEditor/extension.ts","kind":"import-statement","original":"./extension"}],"format":"esm"},"packages/ui/react-ui-table/src/components/TableCellEditor/index.ts":{"bytes":544,"imports":[{"path":"packages/ui/react-ui-table/src/components/TableCellEditor/TableCellEditor.tsx","kind":"import-statement","original":"./TableCellEditor"}],"format":"esm"},"packages/ui/react-ui-table/src/components/Table/Table.tsx":{"bytes":41214,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true},{"path":"@dxos/react-ui-grid","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"packages/ui/react-ui-table/src/components/Table/ColumnActionsMenu.tsx","kind":"import-statement","original":"./ColumnActionsMenu"},{"path":"packages/ui/react-ui-table/src/components/Table/ColumnSettings.tsx","kind":"import-statement","original":"./ColumnSettings"},{"path":"packages/ui/react-ui-table/src/components/Table/CreateRefPanel.tsx","kind":"import-statement","original":"./CreateRefPanel"},{"path":"packages/ui/react-ui-table/src/components/Table/RefPanel.tsx","kind":"import-statement","original":"./RefPanel"},{"path":"packages/ui/react-ui-table/src/components/Table/RowActionsMenu.tsx","kind":"import-statement","original":"./RowActionsMenu"},{"path":"packages/ui/react-ui-table/src/model/index.ts","kind":"import-statement","original":"../../model"},{"path":"packages/ui/react-ui-table/src/translations.ts","kind":"import-statement","original":"../../translations"},{"path":"packages/ui/react-ui-table/src/util/index.ts","kind":"import-statement","original":"../../util"},{"path":"packages/ui/react-ui-table/src/components/TableCellEditor/index.ts","kind":"import-statement","original":"../TableCellEditor"}],"format":"esm"},"packages/ui/react-ui-table/src/hooks/useTableModel.ts":{"bytes":8200,"imports":[{"path":"@preact/signals-core","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"packages/ui/react-ui-table/src/model/index.ts","kind":"import-statement","original":"../model"}],"format":"esm"},"packages/ui/react-ui-table/src/hooks/index.ts":{"bytes":517,"imports":[{"path":"packages/ui/react-ui-table/src/hooks/useTableModel.ts","kind":"import-statement","original":"./useTableModel"}],"format":"esm"},"packages/ui/react-ui-table/src/components/Table/DynamicTable.tsx":{"bytes":10092,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"packages/ui/react-ui-table/src/components/Table/Table.tsx","kind":"import-statement","original":"./Table"},{"path":"packages/ui/react-ui-table/src/hooks/index.ts","kind":"import-statement","original":"../../hooks"},{"path":"packages/ui/react-ui-table/src/model/index.ts","kind":"import-statement","original":"../../model"},{"path":"packages/ui/react-ui-table/src/util/index.ts","kind":"import-statement","original":"../../util"}],"format":"esm"},"packages/ui/react-ui-table/src/components/Table/index.ts":{"bytes":608,"imports":[{"path":"packages/ui/react-ui-table/src/components/Table/Table.tsx","kind":"import-statement","original":"./Table"},{"path":"packages/ui/react-ui-table/src/components/Table/DynamicTable.tsx","kind":"import-statement","original":"./DynamicTable"}],"format":"esm"},"packages/ui/react-ui-table/src/components/TableToolbar/TableToolbar.tsx":{"bytes":7729,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"@dxos/react-ui-menu","kind":"import-statement","external":true},{"path":"packages/ui/react-ui-table/src/translations.ts","kind":"import-statement","original":"../../translations"}],"format":"esm"},"packages/ui/react-ui-table/src/components/TableToolbar/index.ts":{"bytes":534,"imports":[{"path":"packages/ui/react-ui-table/src/components/TableToolbar/TableToolbar.tsx","kind":"import-statement","original":"./TableToolbar"}],"format":"esm"},"packages/ui/react-ui-table/src/components/index.ts":{"bytes":602,"imports":[{"path":"packages/ui/react-ui-table/src/components/Table/index.ts","kind":"import-statement","original":"./Table"},{"path":"packages/ui/react-ui-table/src/components/TableToolbar/index.ts","kind":"import-statement","original":"./TableToolbar"}],"format":"esm"},"packages/ui/react-ui-table/src/index.ts":{"bytes":1083,"imports":[{"path":"packages/ui/react-ui-table/src/translations.ts","kind":"import-statement","original":"./translations"},{"path":"packages/ui/react-ui-table/src/components/index.ts","kind":"import-statement","original":"./components"},{"path":"packages/ui/react-ui-table/src/hooks/index.ts","kind":"import-statement","original":"./hooks"},{"path":"packages/ui/react-ui-table/src/model/index.ts","kind":"import-statement","original":"./model"},{"path":"packages/ui/react-ui-table/src/types/index.ts","kind":"import-statement","original":"./types"},{"path":"packages/ui/react-ui-table/src/util/index.ts","kind":"import-statement","original":"./util"}],"format":"esm"}},"outputs":{"packages/ui/react-ui-table/dist/lib/node-esm/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":158351},"packages/ui/react-ui-table/dist/lib/node-esm/index.mjs":{"imports":[{"path":"packages/ui/react-ui-table/dist/lib/node-esm/chunk-KKLP54L3.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true},{"path":"@dxos/react-ui-grid","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"@dxos/react-ui-grid","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@preact/signals-core","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"@preact/signals-core","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/react-client","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true},{"path":"@preact/signals-core","kind":"import-statement","external":true},{"path":"lodash.orderby","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"@preact/signals-core","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@preact/signals-core","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"@dxos/react-ui-grid","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-editor","kind":"import-statement","external":true},{"path":"@dxos/react-ui-grid","kind":"import-statement","external":true},{"path":"@dxos/react-ui-tag-picker","kind":"import-statement","external":true},{"path":"@codemirror/autocomplete","kind":"import-statement","external":true},{"path":"@codemirror/view","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"@preact/signals-core","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"@dxos/react-ui-menu","kind":"import-statement","external":true}],"exports":["BUTTON_IDENTIFIERS","CONTROL_IDENTIFIERS","CheckboxStory","DynamicTable","ModalController","SwitchStory","Table","TableModel","TablePresentation","TableSchema","TableToolbar","TableType","cellClassesForRowSelection","getBaseSchems","initializeTable","makeDynamicTable","tableButtons","tableControls","touch","translations","useTableModel"],"entryPoint":"packages/ui/react-ui-table/src/index.ts","inputs":{"packages/ui/react-ui-table/src/translations.ts":{"bytesInOutput":1158},"packages/ui/react-ui-table/src/components/Table/Table.tsx":{"bytesInOutput":9300},"packages/ui/react-ui-table/src/components/Table/ColumnActionsMenu.tsx":{"bytesInOutput":2102},"packages/ui/react-ui-table/src/components/Table/ColumnSettings.tsx":{"bytesInOutput":2214},"packages/ui/react-ui-table/src/components/Table/CreateRefPanel.tsx":{"bytesInOutput":2218},"packages/ui/react-ui-table/src/components/Table/RefPanel.tsx":{"bytesInOutput":1352},"packages/ui/react-ui-table/src/components/Table/RowActionsMenu.tsx":{"bytesInOutput":1373},"packages/ui/react-ui-table/src/model/table-model.ts":{"bytesInOutput":9441},"packages/ui/react-ui-table/src/model/selection-model.ts":{"bytesInOutput":2627},"packages/ui/react-ui-table/src/util/dynamic-table.ts":{"bytesInOutput":1999},"packages/ui/react-ui-table/src/util/index.ts":{"bytesInOutput":0},"packages/ui/react-ui-table/src/util/signals.ts":{"bytesInOutput":30},"packages/ui/react-ui-table/src/util/table.ts":{"bytesInOutput":2590},"packages/ui/react-ui-table/src/util/table-buttons.ts":{"bytesInOutput":3500},"packages/ui/react-ui-table/src/util/table-controls.ts":{"bytesInOutput":1905},"packages/ui/react-ui-table/src/model/table-sorting.ts":{"bytesInOutput":4459},"packages/ui/react-ui-table/src/model/index.ts":{"bytesInOutput":0},"packages/ui/react-ui-table/src/model/modal-controller.ts":{"bytesInOutput":2085},"packages/ui/react-ui-table/src/model/table-presentation.ts":{"bytesInOutput":9089},"packages/ui/react-ui-table/src/components/TableCellEditor/TableCellEditor.tsx":{"bytesInOutput":7378},"packages/ui/react-ui-table/src/components/TableCellEditor/extension.ts":{"bytesInOutput":1145},"packages/ui/react-ui-table/src/components/TableCellEditor/index.ts":{"bytesInOutput":0},"packages/ui/react-ui-table/src/components/Table/index.ts":{"bytesInOutput":0},"packages/ui/react-ui-table/src/components/Table/DynamicTable.tsx":{"bytesInOutput":1822},"packages/ui/react-ui-table/src/hooks/useTableModel.ts":{"bytesInOutput":1695},"packages/ui/react-ui-table/src/hooks/index.ts":{"bytesInOutput":0},"packages/ui/react-ui-table/src/components/index.ts":{"bytesInOutput":0},"packages/ui/react-ui-table/src/components/TableToolbar/TableToolbar.tsx":{"bytesInOutput":1736},"packages/ui/react-ui-table/src/components/TableToolbar/index.ts":{"bytesInOutput":0},"packages/ui/react-ui-table/src/index.ts":{"bytesInOutput":0}},"bytes":73532},"packages/ui/react-ui-table/dist/lib/node-esm/types/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"packages/ui/react-ui-table/dist/lib/node-esm/types/index.mjs":{"imports":[{"path":"packages/ui/react-ui-table/dist/lib/node-esm/chunk-KKLP54L3.mjs","kind":"import-statement"}],"exports":["TableSchema","TableType"],"entryPoint":"packages/ui/react-ui-table/src/types/index.ts","inputs":{},"bytes":234},"packages/ui/react-ui-table/dist/lib/node-esm/chunk-KKLP54L3.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1587},"packages/ui/react-ui-table/dist/lib/node-esm/chunk-KKLP54L3.mjs":{"imports":[{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true}],"exports":["TableSchema","TableType"],"inputs":{"packages/ui/react-ui-table/src/types/table.ts":{"bytesInOutput":581},"packages/ui/react-ui-table/src/types/index.ts":{"bytesInOutput":0}},"bytes":807}}}
|
|
1
|
+
{"inputs":{"packages/ui/react-ui-table/src/translations.ts":{"bytes":3942,"imports":[],"format":"esm"},"packages/ui/react-ui-table/src/components/Table/ColumnActionsMenu.tsx":{"bytes":8486,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"packages/ui/react-ui-table/src/translations.ts","kind":"import-statement","original":"../../translations"}],"format":"esm"},"packages/ui/react-ui-table/src/components/Table/ColumnSettings.tsx":{"bytes":8916,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true}],"format":"esm"},"packages/ui/react-ui-table/src/components/Table/CreateRefPanel.tsx":{"bytes":9156,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"@dxos/react-ui-grid","kind":"import-statement","external":true}],"format":"esm"},"packages/ui/react-ui-table/src/components/Table/RefPanel.tsx":{"bytes":5663,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true}],"format":"esm"},"packages/ui/react-ui-table/src/components/Table/RowActionsMenu.tsx":{"bytes":5974,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"packages/ui/react-ui-table/src/translations.ts","kind":"import-statement","original":"../../translations"}],"format":"esm"},"packages/ui/react-ui-table/src/types/table.ts":{"bytes":2992,"imports":[{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true}],"format":"esm"},"packages/ui/react-ui-table/src/types/index.ts":{"bytes":497,"imports":[{"path":"packages/ui/react-ui-table/src/types/table.ts","kind":"import-statement","original":"./table"}],"format":"esm"},"packages/ui/react-ui-table/src/util/dynamic-table.ts":{"bytes":9457,"imports":[{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true},{"path":"packages/ui/react-ui-table/src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"packages/ui/react-ui-table/src/util/signals.ts":{"bytes":915,"imports":[],"format":"esm"},"packages/ui/react-ui-table/src/util/table.ts":{"bytes":11508,"imports":[{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/react-client","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true}],"format":"esm"},"packages/ui/react-ui-table/src/util/table-buttons.ts":{"bytes":14779,"imports":[],"format":"esm"},"packages/ui/react-ui-table/src/util/table-controls.ts":{"bytes":8862,"imports":[],"format":"esm"},"packages/ui/react-ui-table/src/util/index.ts":{"bytes":895,"imports":[{"path":"packages/ui/react-ui-table/src/util/dynamic-table.ts","kind":"import-statement","original":"./dynamic-table"},{"path":"packages/ui/react-ui-table/src/util/signals.ts","kind":"import-statement","original":"./signals"},{"path":"packages/ui/react-ui-table/src/util/table.ts","kind":"import-statement","original":"./table"},{"path":"packages/ui/react-ui-table/src/util/table-buttons.ts","kind":"import-statement","original":"./table-buttons"},{"path":"packages/ui/react-ui-table/src/util/table-controls.ts","kind":"import-statement","original":"./table-controls"}],"format":"esm"},"packages/ui/react-ui-table/src/model/selection-model.ts":{"bytes":12076,"imports":[{"path":"@preact/signals-core","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"packages/ui/react-ui-table/src/util/index.ts","kind":"import-statement","original":"../util"}],"format":"esm"},"packages/ui/react-ui-table/src/model/table-sorting.ts":{"bytes":23382,"imports":[{"path":"@preact/signals-core","kind":"import-statement","external":true},{"path":"lodash.orderby","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true}],"format":"esm"},"packages/ui/react-ui-table/src/util/tag.ts":{"bytes":2915,"imports":[],"format":"esm"},"packages/ui/react-ui-table/src/model/table-model.ts":{"bytes":44539,"imports":[{"path":"@preact/signals-core","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"packages/ui/react-ui-table/src/model/selection-model.ts","kind":"import-statement","original":"./selection-model"},{"path":"packages/ui/react-ui-table/src/model/table-sorting.ts","kind":"import-statement","original":"./table-sorting"},{"path":"packages/ui/react-ui-table/src/util/index.ts","kind":"import-statement","original":"../util"},{"path":"packages/ui/react-ui-table/src/util/tag.ts","kind":"import-statement","original":"../util/tag"}],"format":"esm"},"packages/ui/react-ui-table/src/model/modal-controller.ts":{"bytes":8467,"imports":[{"path":"@preact/signals-core","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true}],"format":"esm"},"packages/ui/react-ui-table/src/model/table-presentation.ts":{"bytes":37513,"imports":[{"path":"@preact/signals-core","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"@dxos/react-ui-grid","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true},{"path":"packages/ui/react-ui-table/src/util/index.ts","kind":"import-statement","original":"../util"}],"format":"esm"},"packages/ui/react-ui-table/src/model/index.ts":{"bytes":817,"imports":[{"path":"packages/ui/react-ui-table/src/model/table-model.ts","kind":"import-statement","original":"./table-model"},{"path":"packages/ui/react-ui-table/src/model/modal-controller.ts","kind":"import-statement","original":"./modal-controller"},{"path":"packages/ui/react-ui-table/src/model/table-presentation.ts","kind":"import-statement","original":"./table-presentation"}],"format":"esm"},"packages/ui/react-ui-table/src/components/TableCellEditor/extension.ts":{"bytes":5534,"imports":[{"path":"@codemirror/autocomplete","kind":"import-statement","external":true},{"path":"@codemirror/view","kind":"import-statement","external":true}],"format":"esm"},"packages/ui/react-ui-table/src/components/TableCellEditor/TableCellEditor.tsx":{"bytes":30550,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-editor","kind":"import-statement","external":true},{"path":"@dxos/react-ui-grid","kind":"import-statement","external":true},{"path":"@dxos/react-ui-tag-picker","kind":"import-statement","external":true},{"path":"packages/ui/react-ui-table/src/components/TableCellEditor/extension.ts","kind":"import-statement","original":"./extension"}],"format":"esm"},"packages/ui/react-ui-table/src/components/TableCellEditor/index.ts":{"bytes":544,"imports":[{"path":"packages/ui/react-ui-table/src/components/TableCellEditor/TableCellEditor.tsx","kind":"import-statement","original":"./TableCellEditor"}],"format":"esm"},"packages/ui/react-ui-table/src/components/Table/Table.tsx":{"bytes":39760,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true},{"path":"@dxos/react-ui-grid","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"packages/ui/react-ui-table/src/components/Table/ColumnActionsMenu.tsx","kind":"import-statement","original":"./ColumnActionsMenu"},{"path":"packages/ui/react-ui-table/src/components/Table/ColumnSettings.tsx","kind":"import-statement","original":"./ColumnSettings"},{"path":"packages/ui/react-ui-table/src/components/Table/CreateRefPanel.tsx","kind":"import-statement","original":"./CreateRefPanel"},{"path":"packages/ui/react-ui-table/src/components/Table/RefPanel.tsx","kind":"import-statement","original":"./RefPanel"},{"path":"packages/ui/react-ui-table/src/components/Table/RowActionsMenu.tsx","kind":"import-statement","original":"./RowActionsMenu"},{"path":"packages/ui/react-ui-table/src/model/index.ts","kind":"import-statement","original":"../../model"},{"path":"packages/ui/react-ui-table/src/translations.ts","kind":"import-statement","original":"../../translations"},{"path":"packages/ui/react-ui-table/src/util/index.ts","kind":"import-statement","original":"../../util"},{"path":"packages/ui/react-ui-table/src/components/TableCellEditor/index.ts","kind":"import-statement","original":"../TableCellEditor"}],"format":"esm"},"packages/ui/react-ui-table/src/hooks/useTableModel.ts":{"bytes":8200,"imports":[{"path":"@preact/signals-core","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"packages/ui/react-ui-table/src/model/index.ts","kind":"import-statement","original":"../model"}],"format":"esm"},"packages/ui/react-ui-table/src/hooks/index.ts":{"bytes":517,"imports":[{"path":"packages/ui/react-ui-table/src/hooks/useTableModel.ts","kind":"import-statement","original":"./useTableModel"}],"format":"esm"},"packages/ui/react-ui-table/src/components/Table/DynamicTable.tsx":{"bytes":10092,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"packages/ui/react-ui-table/src/components/Table/Table.tsx","kind":"import-statement","original":"./Table"},{"path":"packages/ui/react-ui-table/src/hooks/index.ts","kind":"import-statement","original":"../../hooks"},{"path":"packages/ui/react-ui-table/src/model/index.ts","kind":"import-statement","original":"../../model"},{"path":"packages/ui/react-ui-table/src/util/index.ts","kind":"import-statement","original":"../../util"}],"format":"esm"},"packages/ui/react-ui-table/src/components/Table/index.ts":{"bytes":608,"imports":[{"path":"packages/ui/react-ui-table/src/components/Table/Table.tsx","kind":"import-statement","original":"./Table"},{"path":"packages/ui/react-ui-table/src/components/Table/DynamicTable.tsx","kind":"import-statement","original":"./DynamicTable"}],"format":"esm"},"packages/ui/react-ui-table/src/components/TableToolbar/TableToolbar.tsx":{"bytes":7729,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"@dxos/react-ui-menu","kind":"import-statement","external":true},{"path":"packages/ui/react-ui-table/src/translations.ts","kind":"import-statement","original":"../../translations"}],"format":"esm"},"packages/ui/react-ui-table/src/components/TableToolbar/index.ts":{"bytes":534,"imports":[{"path":"packages/ui/react-ui-table/src/components/TableToolbar/TableToolbar.tsx","kind":"import-statement","original":"./TableToolbar"}],"format":"esm"},"packages/ui/react-ui-table/src/components/index.ts":{"bytes":602,"imports":[{"path":"packages/ui/react-ui-table/src/components/Table/index.ts","kind":"import-statement","original":"./Table"},{"path":"packages/ui/react-ui-table/src/components/TableToolbar/index.ts","kind":"import-statement","original":"./TableToolbar"}],"format":"esm"},"packages/ui/react-ui-table/src/index.ts":{"bytes":1083,"imports":[{"path":"packages/ui/react-ui-table/src/translations.ts","kind":"import-statement","original":"./translations"},{"path":"packages/ui/react-ui-table/src/components/index.ts","kind":"import-statement","original":"./components"},{"path":"packages/ui/react-ui-table/src/hooks/index.ts","kind":"import-statement","original":"./hooks"},{"path":"packages/ui/react-ui-table/src/model/index.ts","kind":"import-statement","original":"./model"},{"path":"packages/ui/react-ui-table/src/types/index.ts","kind":"import-statement","original":"./types"},{"path":"packages/ui/react-ui-table/src/util/index.ts","kind":"import-statement","original":"./util"}],"format":"esm"}},"outputs":{"packages/ui/react-ui-table/dist/lib/node-esm/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":159767},"packages/ui/react-ui-table/dist/lib/node-esm/index.mjs":{"imports":[{"path":"packages/ui/react-ui-table/dist/lib/node-esm/chunk-KKLP54L3.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true},{"path":"@dxos/react-ui-grid","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"@dxos/react-ui-grid","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@preact/signals-core","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"@preact/signals-core","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/react-client","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true},{"path":"@preact/signals-core","kind":"import-statement","external":true},{"path":"lodash.orderby","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"@preact/signals-core","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@preact/signals-core","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"@dxos/react-ui-grid","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-editor","kind":"import-statement","external":true},{"path":"@dxos/react-ui-grid","kind":"import-statement","external":true},{"path":"@dxos/react-ui-tag-picker","kind":"import-statement","external":true},{"path":"@codemirror/autocomplete","kind":"import-statement","external":true},{"path":"@codemirror/view","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"@preact/signals-core","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"@dxos/react-ui-menu","kind":"import-statement","external":true}],"exports":["BUTTON_IDENTIFIERS","CONTROL_IDENTIFIERS","CheckboxStory","DynamicTable","ModalController","SwitchStory","Table","TableModel","TablePresentation","TableSchema","TableToolbar","TableType","cellClassesForRowSelection","getBaseSchems","initializeTable","makeDynamicTable","tableButtons","tableControls","touch","translations","useTableModel"],"entryPoint":"packages/ui/react-ui-table/src/index.ts","inputs":{"packages/ui/react-ui-table/src/translations.ts":{"bytesInOutput":1158},"packages/ui/react-ui-table/src/components/Table/Table.tsx":{"bytesInOutput":9077},"packages/ui/react-ui-table/src/components/Table/ColumnActionsMenu.tsx":{"bytesInOutput":2102},"packages/ui/react-ui-table/src/components/Table/ColumnSettings.tsx":{"bytesInOutput":2214},"packages/ui/react-ui-table/src/components/Table/CreateRefPanel.tsx":{"bytesInOutput":2218},"packages/ui/react-ui-table/src/components/Table/RefPanel.tsx":{"bytesInOutput":1352},"packages/ui/react-ui-table/src/components/Table/RowActionsMenu.tsx":{"bytesInOutput":1373},"packages/ui/react-ui-table/src/model/table-model.ts":{"bytesInOutput":9881},"packages/ui/react-ui-table/src/model/selection-model.ts":{"bytesInOutput":2627},"packages/ui/react-ui-table/src/util/dynamic-table.ts":{"bytesInOutput":1999},"packages/ui/react-ui-table/src/util/index.ts":{"bytesInOutput":0},"packages/ui/react-ui-table/src/util/signals.ts":{"bytesInOutput":30},"packages/ui/react-ui-table/src/util/table.ts":{"bytesInOutput":2541},"packages/ui/react-ui-table/src/util/table-buttons.ts":{"bytesInOutput":3500},"packages/ui/react-ui-table/src/util/table-controls.ts":{"bytesInOutput":1905},"packages/ui/react-ui-table/src/model/table-sorting.ts":{"bytesInOutput":4459},"packages/ui/react-ui-table/src/util/tag.ts":{"bytesInOutput":334},"packages/ui/react-ui-table/src/model/index.ts":{"bytesInOutput":0},"packages/ui/react-ui-table/src/model/modal-controller.ts":{"bytesInOutput":2085},"packages/ui/react-ui-table/src/model/table-presentation.ts":{"bytesInOutput":9089},"packages/ui/react-ui-table/src/components/TableCellEditor/TableCellEditor.tsx":{"bytesInOutput":7378},"packages/ui/react-ui-table/src/components/TableCellEditor/extension.ts":{"bytesInOutput":1145},"packages/ui/react-ui-table/src/components/TableCellEditor/index.ts":{"bytesInOutput":0},"packages/ui/react-ui-table/src/components/Table/index.ts":{"bytesInOutput":0},"packages/ui/react-ui-table/src/components/Table/DynamicTable.tsx":{"bytesInOutput":1822},"packages/ui/react-ui-table/src/hooks/useTableModel.ts":{"bytesInOutput":1695},"packages/ui/react-ui-table/src/hooks/index.ts":{"bytesInOutput":0},"packages/ui/react-ui-table/src/components/index.ts":{"bytesInOutput":0},"packages/ui/react-ui-table/src/components/TableToolbar/TableToolbar.tsx":{"bytesInOutput":1736},"packages/ui/react-ui-table/src/components/TableToolbar/index.ts":{"bytesInOutput":0},"packages/ui/react-ui-table/src/index.ts":{"bytesInOutput":0}},"bytes":74081},"packages/ui/react-ui-table/dist/lib/node-esm/types/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"packages/ui/react-ui-table/dist/lib/node-esm/types/index.mjs":{"imports":[{"path":"packages/ui/react-ui-table/dist/lib/node-esm/chunk-KKLP54L3.mjs","kind":"import-statement"}],"exports":["TableSchema","TableType"],"entryPoint":"packages/ui/react-ui-table/src/types/index.ts","inputs":{},"bytes":234},"packages/ui/react-ui-table/dist/lib/node-esm/chunk-KKLP54L3.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1587},"packages/ui/react-ui-table/dist/lib/node-esm/chunk-KKLP54L3.mjs":{"imports":[{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true}],"exports":["TableSchema","TableType"],"inputs":{"packages/ui/react-ui-table/src/types/table.ts":{"bytesInOutput":581},"packages/ui/react-ui-table/src/types/index.ts":{"bytesInOutput":0}},"bytes":807}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../../../src/components/Table/Table.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAEZ,KAAK,iBAAiB,EAQvB,MAAM,OAAO,CAAC;AAOf,OAAO,
|
|
1
|
+
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../../../src/components/Table/Table.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAEZ,KAAK,iBAAiB,EAQvB,MAAM,OAAO,CAAC;AAOf,OAAO,EAGL,KAAK,cAAc,EAOpB,MAAM,qBAAqB,CAAC;AAS7B,OAAO,EAAmB,KAAK,UAAU,EAAE,KAAK,iBAAiB,EAAE,MAAM,aAAa,CAAC;AASvF,MAAM,MAAM,cAAc,GAAG,iBAAiB,CAAC;IAAE,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC;AAsBlE,MAAM,MAAM,eAAe,GAAG;IAC5B,MAAM,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,cAAc,KAAK,IAAI,CAAC;CAC1C,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,YAAY,CAAC,EAAE,iBAAiB,CAAC;IAEjC,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,UAAU,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,KAAK,IAAI,CAAC;CACjC,CAAC;AA4SF,eAAO,MAAM,KAAK;+BA1UqB,cAAc;;CA6UpD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"relations.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Table/relations.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,KAA6B,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"relations.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Table/relations.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,KAA6B,MAAM,OAAO,CAAC;AA0ElD,QAAA,MAAM,YAAY,yBAmBjB,CAAC;AAEF,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,YAAY,CAanC,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,YAAY,CAAC,CAAC;AAE3C,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table-model.d.ts","sourceRoot":"","sources":["../../../../src/model/table-model.ts"],"names":[],"mappings":"AAIA,OAAO,EAA4B,KAAK,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAErF,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,KAAK,aAAa,EAAkC,KAAK,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAItG,OAAO,EACL,KAAK,cAAc,EAEnB,KAAK,mBAAmB,EACxB,KAAK,cAAc,EACpB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,cAAc,EAAE,MAAM,cAAc,CAAC;AAElE,OAAO,EAAE,KAAK,aAAa,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACvE,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CA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AK,EAAE,KAAK,CAAC;IACb,KAAK,EAAE,SAAS,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,eAAe,oDAMzB,oBAAoB,KAAG,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,YAAY,
|
|
1
|
+
{"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../../src/util/table.ts"],"names":[],"mappings":"AAIA,OAAO,EAOL,CAAC,EAGF,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,KAAK,MAAM,EAAa,MAAM,oBAAoB,CAAC;AAC5D,OAAO,EAAiB,KAAK,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAGpE,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,UAAU,CAAC;AAG1C,KAAK,oBAAoB,GAAG;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,KAAK,CAAC;IACb,KAAK,EAAE,SAAS,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,eAAe,oDAMzB,oBAAoB,KAAG,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,YAAY,CA0CtD,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Regex pattern for matching tags in the format [Label](id)
|
|
3
|
+
*/
|
|
4
|
+
export declare const TAG_PATTERN_REGEX: RegExp;
|
|
5
|
+
/**
|
|
6
|
+
* Extracts tag IDs from a string in the format [Label](id)
|
|
7
|
+
* @param value The string to extract IDs from
|
|
8
|
+
* @returns Array of extracted IDs or undefined if no matches or value is not a string
|
|
9
|
+
*/
|
|
10
|
+
export declare const extractTagIds: (value: unknown) => string[] | undefined;
|
|
11
|
+
//# sourceMappingURL=tag.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/react-ui-table",
|
|
3
|
-
"version": "0.8.2-main.
|
|
3
|
+
"version": "0.8.2-main.36232bc",
|
|
4
4
|
"description": "A table component.",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -52,30 +52,30 @@
|
|
|
52
52
|
"@radix-ui/react-use-controllable-state": "1.1.0",
|
|
53
53
|
"date-fns": "^3.3.1",
|
|
54
54
|
"lodash.orderby": "^4.6.0",
|
|
55
|
-
"@dxos/context": "0.8.2-main.
|
|
56
|
-
"@dxos/
|
|
57
|
-
"@dxos/
|
|
58
|
-
"@dxos/
|
|
59
|
-
"@dxos/
|
|
60
|
-
"@dxos/
|
|
61
|
-
"@dxos/
|
|
62
|
-
"@dxos/
|
|
63
|
-
"@dxos/
|
|
64
|
-
"@dxos/
|
|
65
|
-
"@dxos/plugin-space": "0.8.2-main.
|
|
66
|
-
"@dxos/react-
|
|
67
|
-
"@dxos/react-
|
|
68
|
-
"@dxos/react-ui-
|
|
69
|
-
"@dxos/react-ui-
|
|
70
|
-
"@dxos/react-ui-
|
|
71
|
-
"@dxos/react-ui-
|
|
72
|
-
"@dxos/react-ui-stack": "0.8.2-main.
|
|
73
|
-
"@dxos/react-ui-
|
|
74
|
-
"@dxos/react-ui-
|
|
75
|
-
"@dxos/react-ui-
|
|
76
|
-
"@dxos/schema": "0.8.2-main.
|
|
77
|
-
"@dxos/
|
|
78
|
-
"@dxos/
|
|
55
|
+
"@dxos/context": "0.8.2-main.36232bc",
|
|
56
|
+
"@dxos/echo-schema": "0.8.2-main.36232bc",
|
|
57
|
+
"@dxos/invariant": "0.8.2-main.36232bc",
|
|
58
|
+
"@dxos/effect": "0.8.2-main.36232bc",
|
|
59
|
+
"@dxos/lit-grid": "0.8.2-main.36232bc",
|
|
60
|
+
"@dxos/debug": "0.8.2-main.36232bc",
|
|
61
|
+
"@dxos/live-object": "0.8.2-main.36232bc",
|
|
62
|
+
"@dxos/keys": "0.8.2-main.36232bc",
|
|
63
|
+
"@dxos/log": "0.8.2-main.36232bc",
|
|
64
|
+
"@dxos/plugin-search": "0.8.2-main.36232bc",
|
|
65
|
+
"@dxos/plugin-space": "0.8.2-main.36232bc",
|
|
66
|
+
"@dxos/react-ui-attention": "0.8.2-main.36232bc",
|
|
67
|
+
"@dxos/react-client": "0.8.2-main.36232bc",
|
|
68
|
+
"@dxos/react-ui-editor": "0.8.2-main.36232bc",
|
|
69
|
+
"@dxos/react-ui-form": "0.8.2-main.36232bc",
|
|
70
|
+
"@dxos/react-ui-grid": "0.8.2-main.36232bc",
|
|
71
|
+
"@dxos/react-ui-searchlist": "0.8.2-main.36232bc",
|
|
72
|
+
"@dxos/react-ui-stack": "0.8.2-main.36232bc",
|
|
73
|
+
"@dxos/react-ui-menu": "0.8.2-main.36232bc",
|
|
74
|
+
"@dxos/react-ui-syntax-highlighter": "0.8.2-main.36232bc",
|
|
75
|
+
"@dxos/react-ui-types": "0.8.2-main.36232bc",
|
|
76
|
+
"@dxos/schema": "0.8.2-main.36232bc",
|
|
77
|
+
"@dxos/util": "0.8.2-main.36232bc",
|
|
78
|
+
"@dxos/react-ui-tag-picker": "0.8.2-main.36232bc"
|
|
79
79
|
},
|
|
80
80
|
"devDependencies": {
|
|
81
81
|
"@phosphor-icons/react": "^2.1.5",
|
|
@@ -86,19 +86,19 @@
|
|
|
86
86
|
"react": "~18.2.0",
|
|
87
87
|
"react-dom": "~18.2.0",
|
|
88
88
|
"vite": "5.4.7",
|
|
89
|
-
"@dxos/
|
|
90
|
-
"@dxos/
|
|
91
|
-
"@dxos/react-ui": "0.8.2-main.
|
|
92
|
-
"@dxos/react-ui-theme": "0.8.2-main.
|
|
93
|
-
"@dxos/storybook-utils": "0.8.2-main.
|
|
94
|
-
"@dxos/test-utils": "0.8.2-main.
|
|
89
|
+
"@dxos/echo-signals": "0.8.2-main.36232bc",
|
|
90
|
+
"@dxos/random": "0.8.2-main.36232bc",
|
|
91
|
+
"@dxos/react-ui": "0.8.2-main.36232bc",
|
|
92
|
+
"@dxos/react-ui-theme": "0.8.2-main.36232bc",
|
|
93
|
+
"@dxos/storybook-utils": "0.8.2-main.36232bc",
|
|
94
|
+
"@dxos/test-utils": "0.8.2-main.36232bc"
|
|
95
95
|
},
|
|
96
96
|
"peerDependencies": {
|
|
97
97
|
"@phosphor-icons/react": "^2.1.5",
|
|
98
98
|
"react": "~18.2.0",
|
|
99
99
|
"react-dom": "~18.2.0",
|
|
100
|
-
"@dxos/react-ui": "0.8.2-main.
|
|
101
|
-
"@dxos/react-ui-theme": "0.8.2-main.
|
|
100
|
+
"@dxos/react-ui": "0.8.2-main.36232bc",
|
|
101
|
+
"@dxos/react-ui-theme": "0.8.2-main.36232bc"
|
|
102
102
|
},
|
|
103
103
|
"publishConfig": {
|
|
104
104
|
"access": "public"
|
|
@@ -247,7 +247,7 @@ export const StaticSchema: StoryObj = {
|
|
|
247
247
|
parameters: { translations },
|
|
248
248
|
decorators: [
|
|
249
249
|
withClientProvider({
|
|
250
|
-
types: [TableType, ViewType, Testing.Contact, Testing.
|
|
250
|
+
types: [TableType, ViewType, Testing.Contact, Testing.Organization],
|
|
251
251
|
createIdentity: true,
|
|
252
252
|
createSpace: true,
|
|
253
253
|
onSpaceCreated: async ({ client, space }) => {
|
|
@@ -257,7 +257,7 @@ export const StaticSchema: StoryObj = {
|
|
|
257
257
|
const factory = createObjectFactory(space.db, faker as any);
|
|
258
258
|
await factory([
|
|
259
259
|
{ type: Testing.Contact, count: 10 },
|
|
260
|
-
{ type: Testing.
|
|
260
|
+
{ type: Testing.Organization, count: 1 },
|
|
261
261
|
]);
|
|
262
262
|
},
|
|
263
263
|
}),
|
|
@@ -19,7 +19,17 @@ import { invariant } from '@dxos/invariant';
|
|
|
19
19
|
import { Filter } from '@dxos/react-client/echo';
|
|
20
20
|
import { useTranslation } from '@dxos/react-ui';
|
|
21
21
|
import { useAttention } from '@dxos/react-ui-attention';
|
|
22
|
-
import {
|
|
22
|
+
import {
|
|
23
|
+
closestCell,
|
|
24
|
+
type DxGridElement,
|
|
25
|
+
type DxGridPosition,
|
|
26
|
+
type GridContentProps,
|
|
27
|
+
Grid,
|
|
28
|
+
type DxGridPlane,
|
|
29
|
+
type DxGridPlaneRange,
|
|
30
|
+
gridSeparatorInlineEnd,
|
|
31
|
+
gridSeparatorBlockEnd,
|
|
32
|
+
} from '@dxos/react-ui-grid';
|
|
23
33
|
import { mx } from '@dxos/react-ui-theme';
|
|
24
34
|
import { isNotFalsy, safeParseInt } from '@dxos/util';
|
|
25
35
|
|
|
@@ -33,13 +43,6 @@ import { translationKey } from '../../translations';
|
|
|
33
43
|
import { tableButtons, tableControls } from '../../util';
|
|
34
44
|
import { createOption, TableCellEditor, type TableCellEditorProps } from '../TableCellEditor';
|
|
35
45
|
|
|
36
|
-
// NOTE(Zan): These fragments add border to inline-end and block-end of the grid using pseudo-elements.
|
|
37
|
-
// These are offset by 1px to avoid double borders in planks.
|
|
38
|
-
const inlineEndLine =
|
|
39
|
-
'[&>.dx-grid]:relative [&>.dx-grid]:after:absolute [&>.dx-grid]:after:inset-block-0 [&>.dx-grid]:after:-inline-end-px [&>.dx-grid]:after:is-px [&>.dx-grid]:after:bg-separator';
|
|
40
|
-
const blockEndLine =
|
|
41
|
-
'[&>.dx-grid]:before:absolute [&>.dx-grid]:before:inset-inline-0 [&>.dx-grid]:before:-block-end-px [&>.dx-grid]:before:bs-px [&>.dx-grid]:before:bg-separator';
|
|
42
|
-
|
|
43
46
|
//
|
|
44
47
|
// Table.Root
|
|
45
48
|
//
|
|
@@ -98,20 +101,17 @@ const TableMain = forwardRef<TableController, TableMainProps>(
|
|
|
98
101
|
};
|
|
99
102
|
}, [model]);
|
|
100
103
|
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
// );
|
|
104
|
+
const getCells = useCallback<NonNullable<GridContentProps['getCells']>>(
|
|
105
|
+
(range: DxGridPlaneRange, plane: DxGridPlane) => presentation?.getCells(range, plane) ?? {},
|
|
106
|
+
[presentation],
|
|
107
|
+
);
|
|
106
108
|
|
|
107
109
|
useEffect(() => {
|
|
108
110
|
if (!presentation || !dxGrid) {
|
|
109
111
|
return;
|
|
110
112
|
}
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
dxGrid.getCells = (range, plane) => presentation.getCells(range, plane);
|
|
114
|
-
}, [presentation, dxGrid]);
|
|
113
|
+
dxGrid.getCells = getCells;
|
|
114
|
+
}, [presentation, dxGrid, getCells]);
|
|
115
115
|
|
|
116
116
|
/**
|
|
117
117
|
* Provides an external controller that can be called to repaint the table.
|
|
@@ -356,7 +356,7 @@ const TableMain = forwardRef<TableController, TableMainProps>(
|
|
|
356
356
|
onQuery={handleQuery}
|
|
357
357
|
/>
|
|
358
358
|
<Grid.Content
|
|
359
|
-
className={mx('[--dx-grid-base:var(--surface-bg)]',
|
|
359
|
+
className={mx('[--dx-grid-base:var(--surface-bg)]', gridSeparatorInlineEnd, gridSeparatorBlockEnd)}
|
|
360
360
|
frozen={frozen}
|
|
361
361
|
// getCells={getCells}
|
|
362
362
|
columns={model.columnMeta.value}
|
|
@@ -10,15 +10,15 @@ import React, { useEffect, useMemo } from 'react';
|
|
|
10
10
|
import { AST, type BaseObject, ImmutableSchema, type BaseSchema, type HasId } from '@dxos/echo-schema';
|
|
11
11
|
import { getAnnotation } from '@dxos/effect';
|
|
12
12
|
import { faker } from '@dxos/random';
|
|
13
|
-
import { live, makeRef
|
|
14
|
-
import { withClientProvider } from '@dxos/react-client/testing';
|
|
15
|
-
import { createView, ViewProjection, ViewType } from '@dxos/schema';
|
|
16
|
-
import {
|
|
13
|
+
import { live, makeRef } from '@dxos/react-client/echo';
|
|
14
|
+
import { useClientProvider, withClientProvider } from '@dxos/react-client/testing';
|
|
15
|
+
import { Contact, createView, Organization, ViewProjection, ViewType } from '@dxos/schema';
|
|
16
|
+
import { createAsyncGenerator, type ValueGenerator } from '@dxos/schema/testing';
|
|
17
17
|
import { withLayout, withTheme } from '@dxos/storybook-utils';
|
|
18
18
|
|
|
19
19
|
import { Table } from './Table';
|
|
20
20
|
import { useTableModel } from '../../hooks';
|
|
21
|
-
import { TablePresentation, type TableRow } from '../../model';
|
|
21
|
+
import { type TableFeatures, TablePresentation, type TableRow } from '../../model';
|
|
22
22
|
import translations from '../../translations';
|
|
23
23
|
import { TableType } from '../../types';
|
|
24
24
|
|
|
@@ -30,6 +30,8 @@ const generator: ValueGenerator = faker as any;
|
|
|
30
30
|
// TODO(burdon): Reconcile schemas types and utils (see API PR).
|
|
31
31
|
// TODO(burdon): Base type for T (with id); see ECHO API PR?
|
|
32
32
|
const useTestModel = <T extends BaseObject & HasId>(schema: BaseSchema<T>, count: number) => {
|
|
33
|
+
const { space } = useClientProvider();
|
|
34
|
+
|
|
33
35
|
const table = useMemo(() => {
|
|
34
36
|
// const { typename } = pipe(schema.ast, AST.getAnnotation<TypeAnnotation>(TypeAnnotationId), Option.getOrThrow);
|
|
35
37
|
const typename = schema.typename;
|
|
@@ -47,16 +49,24 @@ const useTestModel = <T extends BaseObject & HasId>(schema: BaseSchema<T>, count
|
|
|
47
49
|
return new ViewProjection(schema.jsonSchema, table.view.target);
|
|
48
50
|
}, [schema, table]);
|
|
49
51
|
|
|
50
|
-
const
|
|
52
|
+
const features = useMemo<TableFeatures>(
|
|
53
|
+
() => ({ schemaEditable: false, dataEditable: true, selection: { enabled: false } }),
|
|
54
|
+
[],
|
|
55
|
+
);
|
|
56
|
+
|
|
57
|
+
const model = useTableModel<TableRow>({ table, projection, rows: [], features });
|
|
51
58
|
useEffect(() => {
|
|
52
|
-
if (!model) {
|
|
59
|
+
if (!model || !space) {
|
|
53
60
|
return;
|
|
54
61
|
}
|
|
55
62
|
|
|
56
|
-
const objectGenerator =
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
63
|
+
const objectGenerator = createAsyncGenerator(generator, schema, { optional: true, db: space?.db });
|
|
64
|
+
void objectGenerator.createObjects(count).then((objects) => {
|
|
65
|
+
model.setRows(objects);
|
|
66
|
+
});
|
|
67
|
+
}, [model, space]);
|
|
68
|
+
|
|
69
|
+
console.log(projection?.getFieldProjections());
|
|
60
70
|
|
|
61
71
|
const presentation = useMemo(() => {
|
|
62
72
|
if (!model) {
|
|
@@ -71,21 +81,20 @@ const useTestModel = <T extends BaseObject & HasId>(schema: BaseSchema<T>, count
|
|
|
71
81
|
|
|
72
82
|
const DefaultStory = () => {
|
|
73
83
|
// TODO(burdon): Remove need for ImmutableSchema wrapper at API-level.
|
|
74
|
-
const orgSchema = useMemo(() => new ImmutableSchema(
|
|
75
|
-
const { model: orgModel, presentation: orgPresentation } = useTestModel<
|
|
84
|
+
const orgSchema = useMemo(() => new ImmutableSchema(Organization), []);
|
|
85
|
+
const { model: orgModel, presentation: orgPresentation } = useTestModel<Organization>(orgSchema, 50);
|
|
76
86
|
|
|
77
87
|
// TODO(burdon): Generate links with references.
|
|
78
|
-
const contactSchema = useMemo(() => new ImmutableSchema(
|
|
79
|
-
const { model: contactModel, presentation: contactPresentation } = useTestModel<
|
|
88
|
+
const contactSchema = useMemo(() => new ImmutableSchema(Contact), []);
|
|
89
|
+
const { model: contactModel, presentation: contactPresentation } = useTestModel<Contact>(contactSchema, 50);
|
|
80
90
|
|
|
81
|
-
// TODO(burdon): Scrolling isn't working.
|
|
82
91
|
return (
|
|
83
|
-
<div className='
|
|
92
|
+
<div className='is-full bs-full grid grid-cols-2 divide-x divide-separator'>
|
|
84
93
|
<Table.Root>
|
|
85
|
-
<Table.Main model={orgModel} presentation={orgPresentation} />
|
|
94
|
+
<Table.Main model={orgModel} presentation={orgPresentation} ignoreAttention />
|
|
86
95
|
</Table.Root>
|
|
87
96
|
<Table.Root>
|
|
88
|
-
<Table.Main model={contactModel} presentation={contactPresentation} />
|
|
97
|
+
<Table.Main model={contactModel} presentation={contactPresentation} ignoreAttention />
|
|
89
98
|
</Table.Root>
|
|
90
99
|
</div>
|
|
91
100
|
);
|
|
@@ -97,7 +106,7 @@ const meta: Meta<typeof DefaultStory> = {
|
|
|
97
106
|
parameters: { translations },
|
|
98
107
|
decorators: [
|
|
99
108
|
withClientProvider({
|
|
100
|
-
types: [TableType, ViewType,
|
|
109
|
+
types: [TableType, ViewType, Organization, Contact],
|
|
101
110
|
createIdentity: true,
|
|
102
111
|
createSpace: true,
|
|
103
112
|
}),
|
package/src/model/table-model.ts
CHANGED
|
@@ -21,6 +21,7 @@ import { type ViewType, type ViewProjection } from '@dxos/schema';
|
|
|
21
21
|
import { type SelectionMode, SelectionModel } from './selection-model';
|
|
22
22
|
import { TableSorting } from './table-sorting';
|
|
23
23
|
import { touch } from '../util';
|
|
24
|
+
import { extractTagIds } from '../util/tag';
|
|
24
25
|
|
|
25
26
|
// TODO(burdon): Use schema types.
|
|
26
27
|
export type TableRow = Record<JsonProp, any> & { id: string };
|
|
@@ -348,6 +349,22 @@ export class TableModel<T extends TableRow = TableRow> extends Resource {
|
|
|
348
349
|
break;
|
|
349
350
|
}
|
|
350
351
|
|
|
352
|
+
case FormatEnum.SingleSelect: {
|
|
353
|
+
const ids = extractTagIds(value);
|
|
354
|
+
if (ids && ids.length > 0) {
|
|
355
|
+
setValue(this._rows.value[rowIdx], field.path, ids[0]);
|
|
356
|
+
}
|
|
357
|
+
break;
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
case FormatEnum.MultiSelect: {
|
|
361
|
+
const ids = extractTagIds(value);
|
|
362
|
+
if (ids) {
|
|
363
|
+
setValue(this._rows.value[rowIdx], field.path, ids);
|
|
364
|
+
}
|
|
365
|
+
break;
|
|
366
|
+
}
|
|
367
|
+
|
|
351
368
|
default: {
|
|
352
369
|
setValue(
|
|
353
370
|
this._rows.value[rowIdx],
|
package/src/util/table.ts
CHANGED
|
@@ -41,11 +41,7 @@ export const initializeTable = async ({
|
|
|
41
41
|
throw new Error(`Schema not found: ${typename}`);
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
|
|
45
|
-
// For now, only simple types and refs, not compound types are going to be supported.
|
|
46
|
-
const fields = getSchemaProperties(schema.ast)
|
|
47
|
-
.filter((prop) => prop.format !== FormatEnum.Ref)
|
|
48
|
-
.map((prop) => prop.name);
|
|
44
|
+
const fields = getSchemaProperties(schema.ast).map((prop) => prop.name);
|
|
49
45
|
|
|
50
46
|
table.view = makeRef(
|
|
51
47
|
createView({
|
package/src/util/tag.ts
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2025 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
// TODO(ZaymonFC): Push this into the tag picker module.
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Regex pattern for matching tags in the format [Label](id)
|
|
9
|
+
*/
|
|
10
|
+
export const TAG_PATTERN_REGEX = /\[([^\]]+)\]\(([^)]+)\)/g;
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Extracts tag IDs from a string in the format [Label](id)
|
|
14
|
+
* @param value The string to extract IDs from
|
|
15
|
+
* @returns Array of extracted IDs or undefined if no matches or value is not a string
|
|
16
|
+
*/
|
|
17
|
+
export const extractTagIds = (value: unknown): string[] | undefined => {
|
|
18
|
+
if (typeof value !== 'string') {
|
|
19
|
+
return undefined;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
const ids: string[] = [];
|
|
23
|
+
let match;
|
|
24
|
+
|
|
25
|
+
// Use the global regex to find all matches
|
|
26
|
+
while ((match = TAG_PATTERN_REGEX.exec(value)) !== null) {
|
|
27
|
+
if (match[2]) {
|
|
28
|
+
ids.push(match[2]);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
return ids.length > 0 ? ids : undefined;
|
|
33
|
+
};
|