@dxos/plugin-sheet 0.6.13 → 0.6.14-main.1366248
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/SheetContainer-JZEKRM4Z.mjs +297 -0
- package/dist/lib/browser/SheetContainer-JZEKRM4Z.mjs.map +7 -0
- package/dist/lib/browser/chunk-BVUN7SHF.mjs +67 -0
- package/dist/lib/browser/chunk-BVUN7SHF.mjs.map +7 -0
- package/dist/lib/browser/chunk-G2FUL6PK.mjs +1671 -0
- package/dist/lib/browser/chunk-G2FUL6PK.mjs.map +7 -0
- package/dist/lib/browser/chunk-RABELMEQ.mjs +15 -0
- package/dist/lib/browser/chunk-RABELMEQ.mjs.map +7 -0
- package/dist/lib/browser/{chunk-D5AGLXJP.mjs → chunk-VMSX6Z4X.mjs} +659 -675
- package/dist/lib/browser/chunk-VMSX6Z4X.mjs.map +7 -0
- package/dist/lib/browser/compute-graph-GGWUX644.mjs +35 -0
- package/dist/lib/browser/compute-graph-GGWUX644.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +168 -67
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/meta.mjs +1 -1
- package/dist/lib/browser/types.mjs +6 -12
- package/dist/lib/node/SheetContainer-PJE74VO4.cjs +300 -0
- package/dist/lib/node/SheetContainer-PJE74VO4.cjs.map +7 -0
- package/dist/lib/node/chunk-2ZVZI2KJ.cjs +38 -0
- package/dist/lib/node/chunk-2ZVZI2KJ.cjs.map +7 -0
- package/dist/lib/node/{chunk-DSYKOI4E.cjs → chunk-AWKOWDMI.cjs} +34 -52
- package/dist/lib/node/chunk-AWKOWDMI.cjs.map +7 -0
- package/dist/lib/node/{chunk-5KKJ4NPP.cjs → chunk-O7XR4R7Y.cjs} +678 -674
- package/dist/lib/node/chunk-O7XR4R7Y.cjs.map +7 -0
- package/dist/lib/node/chunk-STZ7S7RF.cjs +1656 -0
- package/dist/lib/node/chunk-STZ7S7RF.cjs.map +7 -0
- package/dist/lib/node/compute-graph-KGWA2QLE.cjs +57 -0
- package/dist/lib/node/compute-graph-KGWA2QLE.cjs.map +7 -0
- package/dist/lib/node/index.cjs +178 -75
- package/dist/lib/node/index.cjs.map +4 -4
- package/dist/lib/node/meta.cjs +3 -3
- package/dist/lib/node/meta.cjs.map +1 -1
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/types.cjs +9 -15
- package/dist/lib/node/types.cjs.map +2 -2
- package/dist/lib/node-esm/SheetContainer-R73XEXHU.mjs +298 -0
- package/dist/lib/node-esm/SheetContainer-R73XEXHU.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-BM2Q3FFC.mjs +17 -0
- package/dist/lib/node-esm/chunk-BM2Q3FFC.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-CR4K75EL.mjs +3220 -0
- package/dist/lib/node-esm/chunk-CR4K75EL.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-UIBWRHW7.mjs +68 -0
- package/dist/lib/node-esm/chunk-UIBWRHW7.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-V5N3Y2O5.mjs +1672 -0
- package/dist/lib/node-esm/chunk-V5N3Y2O5.mjs.map +7 -0
- package/dist/lib/node-esm/compute-graph-2SCZT7N5.mjs +36 -0
- package/dist/lib/node-esm/compute-graph-2SCZT7N5.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +350 -0
- package/dist/lib/node-esm/index.mjs.map +7 -0
- package/dist/lib/node-esm/meta.json +1 -0
- package/dist/lib/node-esm/meta.mjs +10 -0
- package/dist/lib/node-esm/meta.mjs.map +7 -0
- package/dist/lib/node-esm/types.mjs +17 -0
- package/dist/lib/node-esm/types.mjs.map +7 -0
- package/dist/types/src/SheetPlugin.d.ts.map +1 -1
- package/dist/types/src/components/ComputeGraph/ComputeGraphContextProvider.d.ts +13 -0
- package/dist/types/src/components/ComputeGraph/ComputeGraphContextProvider.d.ts.map +1 -0
- package/dist/types/src/components/ComputeGraph/index.d.ts +1 -3
- package/dist/types/src/components/ComputeGraph/index.d.ts.map +1 -1
- package/dist/types/src/components/FunctionEditor/FunctionEditor.d.ts +3 -0
- package/dist/types/src/components/FunctionEditor/FunctionEditor.d.ts.map +1 -0
- package/dist/types/src/components/FunctionEditor/index.d.ts +2 -0
- package/dist/types/src/components/FunctionEditor/index.d.ts.map +1 -0
- package/dist/types/src/components/GridSheet/GridSheet.d.ts +3 -0
- package/dist/types/src/components/GridSheet/GridSheet.d.ts.map +1 -0
- package/dist/types/src/components/GridSheet/GridSheet.stories.d.ts +6 -0
- package/dist/types/src/components/GridSheet/GridSheet.stories.d.ts.map +1 -0
- package/dist/types/src/components/{CellEditor/CellEditor.stories.d.ts → GridSheet/SheetCellEditor.stories.d.ts} +5 -9
- package/dist/types/src/components/GridSheet/SheetCellEditor.stories.d.ts.map +1 -0
- package/dist/types/src/components/GridSheet/index.d.ts +2 -0
- package/dist/types/src/components/GridSheet/index.d.ts.map +1 -0
- package/dist/types/src/components/GridSheet/util.d.ts +15 -0
- package/dist/types/src/components/GridSheet/util.d.ts.map +1 -0
- package/dist/types/src/components/RangeList/RangeList.d.ts +7 -0
- package/dist/types/src/components/RangeList/RangeList.d.ts.map +1 -0
- package/dist/types/src/components/RangeList/index.d.ts +2 -0
- package/dist/types/src/components/RangeList/index.d.ts.map +1 -0
- package/dist/types/src/components/SheetContainer/SheetContainer.d.ts +9 -0
- package/dist/types/src/components/SheetContainer/SheetContainer.d.ts.map +1 -0
- package/dist/types/src/components/SheetContainer/SheetContainer.stories.d.ts +6 -0
- package/dist/types/src/components/SheetContainer/SheetContainer.stories.d.ts.map +1 -0
- package/dist/types/src/components/SheetContainer/index.d.ts +3 -0
- package/dist/types/src/components/SheetContainer/index.d.ts.map +1 -0
- package/dist/types/src/components/SheetContext/SheetContext.d.ts +28 -0
- package/dist/types/src/components/SheetContext/SheetContext.d.ts.map +1 -0
- package/dist/types/src/components/SheetContext/index.d.ts +2 -0
- package/dist/types/src/components/SheetContext/index.d.ts.map +1 -0
- package/dist/types/src/components/Toolbar/Toolbar.d.ts +36 -9
- package/dist/types/src/components/Toolbar/Toolbar.d.ts.map +1 -1
- package/dist/types/src/components/Toolbar/Toolbar.stories.d.ts +4 -32
- package/dist/types/src/components/Toolbar/Toolbar.stories.d.ts.map +1 -1
- package/dist/types/src/components/index.d.ts +7 -4
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/compute-graph/compute-graph-registry.d.ts +34 -0
- package/dist/types/src/compute-graph/compute-graph-registry.d.ts.map +1 -0
- package/dist/types/src/compute-graph/compute-graph.d.ts +64 -0
- package/dist/types/src/compute-graph/compute-graph.d.ts.map +1 -0
- package/dist/types/src/compute-graph/compute-graph.stories.d.ts +6 -0
- package/dist/types/src/compute-graph/compute-graph.stories.d.ts.map +1 -0
- package/dist/types/src/compute-graph/compute-graph.test.d.ts +2 -0
- package/dist/types/src/compute-graph/compute-graph.test.d.ts.map +1 -0
- package/dist/types/src/compute-graph/compute-node.d.ts +26 -0
- package/dist/types/src/compute-graph/compute-node.d.ts.map +1 -0
- package/dist/types/src/{components/ComputeGraph → compute-graph/functions}/async-function.d.ts +14 -5
- package/dist/types/src/compute-graph/functions/async-function.d.ts.map +1 -0
- package/dist/types/src/compute-graph/functions/edge-function.d.ts +21 -0
- package/dist/types/src/compute-graph/functions/edge-function.d.ts.map +1 -0
- package/dist/types/src/{model/functions.d.ts → compute-graph/functions/function-defs.d.ts} +1 -1
- package/dist/types/src/compute-graph/functions/function-defs.d.ts.map +1 -0
- package/dist/types/src/compute-graph/functions/index.d.ts +4 -0
- package/dist/types/src/compute-graph/functions/index.d.ts.map +1 -0
- package/dist/types/src/compute-graph/hyperformula.test.d.ts +2 -0
- package/dist/types/src/compute-graph/hyperformula.test.d.ts.map +1 -0
- package/dist/types/src/compute-graph/index.d.ts +5 -0
- package/dist/types/src/compute-graph/index.d.ts.map +1 -0
- package/dist/types/src/compute-graph/testing/index.d.ts +3 -0
- package/dist/types/src/compute-graph/testing/index.d.ts.map +1 -0
- package/dist/types/src/compute-graph/testing/test-builder.d.ts +15 -0
- package/dist/types/src/compute-graph/testing/test-builder.d.ts.map +1 -0
- package/dist/types/src/compute-graph/testing/test-plugin.d.ts +36 -0
- package/dist/types/src/compute-graph/testing/test-plugin.d.ts.map +1 -0
- package/dist/types/src/compute-graph/util.d.ts +2 -0
- package/dist/types/src/compute-graph/util.d.ts.map +1 -0
- package/dist/types/src/defs/index.d.ts +4 -0
- package/dist/types/src/defs/index.d.ts.map +1 -0
- package/dist/types/src/defs/sheet-range-types.d.ts +13 -0
- package/dist/types/src/defs/sheet-range-types.d.ts.map +1 -0
- package/dist/types/src/defs/types.d.ts +28 -0
- package/dist/types/src/defs/types.d.ts.map +1 -0
- package/dist/types/src/defs/types.test.d.ts.map +1 -0
- package/dist/types/src/defs/util.d.ts +39 -0
- package/dist/types/src/defs/util.d.ts.map +1 -0
- package/dist/types/src/extensions/compute.d.ts +6 -0
- package/dist/types/src/extensions/compute.d.ts.map +1 -0
- package/dist/types/src/extensions/compute.stories.d.ts +21 -0
- package/dist/types/src/extensions/compute.stories.d.ts.map +1 -0
- package/dist/types/src/extensions/editor/extension.d.ts +39 -0
- package/dist/types/src/extensions/editor/extension.d.ts.map +1 -0
- package/dist/types/src/extensions/editor/extension.test.d.ts.map +1 -0
- package/dist/types/src/extensions/editor/index.d.ts +2 -0
- package/dist/types/src/extensions/editor/index.d.ts.map +1 -0
- package/dist/types/src/extensions/index.d.ts +3 -0
- package/dist/types/src/extensions/index.d.ts.map +1 -0
- package/dist/types/src/index.d.ts +1 -1
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/integrations/index.d.ts +2 -0
- package/dist/types/src/integrations/index.d.ts.map +1 -0
- package/dist/types/src/integrations/thread-ranges.d.ts +7 -0
- package/dist/types/src/integrations/thread-ranges.d.ts.map +1 -0
- package/dist/types/src/meta.d.ts +4 -9
- package/dist/types/src/meta.d.ts.map +1 -1
- package/dist/types/src/model/index.d.ts +2 -3
- package/dist/types/src/model/index.d.ts.map +1 -1
- package/dist/types/src/model/{model.d.ts → sheet-model.d.ts} +22 -69
- package/dist/types/src/model/sheet-model.d.ts.map +1 -0
- package/dist/types/src/model/sheet-model.test.d.ts +2 -0
- package/dist/types/src/model/sheet-model.test.d.ts.map +1 -0
- package/dist/types/src/model/useSheetModel.d.ts +8 -0
- package/dist/types/src/model/useSheetModel.d.ts.map +1 -0
- package/dist/types/src/sanity.test.d.ts +2 -0
- package/dist/types/src/sanity.test.d.ts.map +1 -0
- package/dist/types/src/serializer.d.ts +4 -0
- package/dist/types/src/serializer.d.ts.map +1 -0
- package/dist/types/src/testing/index.d.ts +2 -0
- package/dist/types/src/testing/index.d.ts.map +1 -0
- package/dist/types/src/testing/testing.d.ts +8 -0
- package/dist/types/src/testing/testing.d.ts.map +1 -0
- package/dist/types/src/translations.d.ts +32 -12
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types.d.ts +132 -43
- package/dist/types/src/types.d.ts.map +1 -1
- package/dist/vendor/hyperformula.mjs +37145 -0
- package/package.json +60 -61
- package/src/SheetPlugin.tsx +89 -78
- package/src/components/ComputeGraph/ComputeGraphContextProvider.tsx +37 -0
- package/src/components/ComputeGraph/index.ts +1 -3
- package/src/components/FunctionEditor/FunctionEditor.tsx +45 -0
- package/src/components/FunctionEditor/index.ts +5 -0
- package/src/components/GridSheet/GridSheet.stories.tsx +46 -0
- package/src/components/GridSheet/GridSheet.tsx +358 -0
- package/src/components/{CellEditor/CellEditor.stories.tsx → GridSheet/SheetCellEditor.stories.tsx} +18 -15
- package/src/components/GridSheet/index.ts +5 -0
- package/src/components/GridSheet/util.ts +170 -0
- package/src/components/RangeList/RangeList.tsx +53 -0
- package/src/components/RangeList/index.ts +5 -0
- package/src/components/SheetContainer/SheetContainer.stories.tsx +45 -0
- package/src/components/SheetContainer/SheetContainer.tsx +33 -0
- package/src/components/SheetContainer/index.ts +7 -0
- package/src/components/SheetContext/SheetContext.tsx +127 -0
- package/src/components/SheetContext/index.ts +5 -0
- package/src/components/Toolbar/Toolbar.stories.tsx +9 -6
- package/src/components/Toolbar/Toolbar.tsx +265 -111
- package/src/components/index.ts +5 -3
- package/src/compute-graph/compute-graph-registry.ts +90 -0
- package/src/compute-graph/compute-graph.stories.tsx +97 -0
- package/src/compute-graph/compute-graph.test.ts +87 -0
- package/src/compute-graph/compute-graph.ts +260 -0
- package/src/compute-graph/compute-node.ts +62 -0
- package/src/{components/ComputeGraph → compute-graph/functions}/async-function.ts +26 -15
- package/src/{components/ComputeGraph → compute-graph/functions}/edge-function.ts +21 -17
- package/src/compute-graph/functions/index.ts +7 -0
- package/src/compute-graph/hyperformula.test.ts +14 -0
- package/src/compute-graph/index.ts +8 -0
- package/src/compute-graph/testing/index.ts +6 -0
- package/src/compute-graph/testing/test-builder.ts +54 -0
- package/src/{components/ComputeGraph/custom.ts → compute-graph/testing/test-plugin.ts} +44 -14
- package/src/compute-graph/util.ts +8 -0
- package/src/defs/index.ts +7 -0
- package/src/defs/sheet-range-types.ts +49 -0
- package/src/{model → defs}/types.test.ts +8 -9
- package/src/defs/types.ts +86 -0
- package/src/defs/util.ts +136 -0
- package/src/extensions/compute.stories.tsx +155 -0
- package/src/extensions/compute.ts +147 -0
- package/src/{components/CellEditor → extensions/editor}/extension.test.ts +4 -6
- package/src/{components/CellEditor → extensions/editor}/extension.ts +51 -27
- package/src/{components/CellEditor → extensions/editor}/index.ts +0 -1
- package/src/extensions/index.ts +6 -0
- package/src/index.ts +2 -2
- package/src/integrations/index.ts +5 -0
- package/src/integrations/thread-ranges.ts +101 -0
- package/src/meta.ts +15 -0
- package/src/model/index.ts +2 -3
- package/src/model/sheet-model.test.ts +59 -0
- package/src/model/sheet-model.ts +495 -0
- package/src/model/useSheetModel.ts +40 -0
- package/src/sanity.test.ts +40 -0
- package/src/serializer.ts +27 -0
- package/src/{components/Sheet → testing}/index.ts +1 -1
- package/src/testing/testing.tsx +68 -0
- package/src/translations.ts +24 -4
- package/src/types.ts +62 -47
- package/dist/lib/browser/SheetContainer-U4H5D34A.mjs +0 -1772
- package/dist/lib/browser/SheetContainer-U4H5D34A.mjs.map +0 -7
- package/dist/lib/browser/chunk-APHOLYUB.mjs +0 -175
- package/dist/lib/browser/chunk-APHOLYUB.mjs.map +0 -7
- package/dist/lib/browser/chunk-D5AGLXJP.mjs.map +0 -7
- package/dist/lib/browser/chunk-FUAGSXA4.mjs +0 -82
- package/dist/lib/browser/chunk-FUAGSXA4.mjs.map +0 -7
- package/dist/lib/browser/chunk-JRL5LGCE.mjs +0 -18
- package/dist/lib/browser/chunk-JRL5LGCE.mjs.map +0 -7
- package/dist/lib/browser/chunk-NU4PBN33.mjs +0 -8
- package/dist/lib/browser/chunk-NU4PBN33.mjs.map +0 -7
- package/dist/lib/browser/testing.mjs +0 -92
- package/dist/lib/browser/testing.mjs.map +0 -7
- package/dist/lib/node/SheetContainer-AXQV3ZT5.cjs +0 -1765
- package/dist/lib/node/SheetContainer-AXQV3ZT5.cjs.map +0 -7
- package/dist/lib/node/chunk-5KKJ4NPP.cjs.map +0 -7
- package/dist/lib/node/chunk-BJ6ZD7MN.cjs +0 -51
- package/dist/lib/node/chunk-BJ6ZD7MN.cjs.map +0 -7
- package/dist/lib/node/chunk-CN3RPESU.cjs +0 -202
- package/dist/lib/node/chunk-CN3RPESU.cjs.map +0 -7
- package/dist/lib/node/chunk-DSYKOI4E.cjs.map +0 -7
- package/dist/lib/node/chunk-PYXHNAAK.cjs +0 -40
- package/dist/lib/node/chunk-PYXHNAAK.cjs.map +0 -7
- package/dist/lib/node/testing.cjs +0 -111
- package/dist/lib/node/testing.cjs.map +0 -7
- package/dist/types/src/components/CellEditor/CellEditor.d.ts +0 -14
- package/dist/types/src/components/CellEditor/CellEditor.d.ts.map +0 -1
- package/dist/types/src/components/CellEditor/CellEditor.stories.d.ts.map +0 -1
- package/dist/types/src/components/CellEditor/extension.d.ts +0 -19
- package/dist/types/src/components/CellEditor/extension.d.ts.map +0 -1
- package/dist/types/src/components/CellEditor/extension.test.d.ts.map +0 -1
- package/dist/types/src/components/CellEditor/index.d.ts +0 -3
- package/dist/types/src/components/CellEditor/index.d.ts.map +0 -1
- package/dist/types/src/components/ComputeGraph/async-function.d.ts.map +0 -1
- package/dist/types/src/components/ComputeGraph/custom.d.ts +0 -21
- package/dist/types/src/components/ComputeGraph/custom.d.ts.map +0 -1
- package/dist/types/src/components/ComputeGraph/edge-function.d.ts +0 -20
- package/dist/types/src/components/ComputeGraph/edge-function.d.ts.map +0 -1
- package/dist/types/src/components/ComputeGraph/graph-context.d.ts +0 -12
- package/dist/types/src/components/ComputeGraph/graph-context.d.ts.map +0 -1
- package/dist/types/src/components/ComputeGraph/graph.browser.test.d.ts +0 -2
- package/dist/types/src/components/ComputeGraph/graph.browser.test.d.ts.map +0 -1
- package/dist/types/src/components/ComputeGraph/graph.d.ts +0 -26
- package/dist/types/src/components/ComputeGraph/graph.d.ts.map +0 -1
- package/dist/types/src/components/Sheet/Sheet.d.ts +0 -55
- package/dist/types/src/components/Sheet/Sheet.d.ts.map +0 -1
- package/dist/types/src/components/Sheet/Sheet.stories.d.ts +0 -54
- package/dist/types/src/components/Sheet/Sheet.stories.d.ts.map +0 -1
- package/dist/types/src/components/Sheet/formatting.d.ts +0 -14
- package/dist/types/src/components/Sheet/formatting.d.ts.map +0 -1
- package/dist/types/src/components/Sheet/grid.d.ts +0 -52
- package/dist/types/src/components/Sheet/grid.d.ts.map +0 -1
- package/dist/types/src/components/Sheet/index.d.ts +0 -2
- package/dist/types/src/components/Sheet/index.d.ts.map +0 -1
- package/dist/types/src/components/Sheet/nav.d.ts +0 -29
- package/dist/types/src/components/Sheet/nav.d.ts.map +0 -1
- package/dist/types/src/components/Sheet/sheet-context.d.ts +0 -25
- package/dist/types/src/components/Sheet/sheet-context.d.ts.map +0 -1
- package/dist/types/src/components/Sheet/util.d.ts +0 -18
- package/dist/types/src/components/Sheet/util.d.ts.map +0 -1
- package/dist/types/src/components/SheetContainer.d.ts +0 -9
- package/dist/types/src/components/SheetContainer.d.ts.map +0 -1
- package/dist/types/src/components/Toolbar/common.d.ts +0 -20
- package/dist/types/src/components/Toolbar/common.d.ts.map +0 -1
- package/dist/types/src/model/functions.d.ts.map +0 -1
- package/dist/types/src/model/model.browser.test.d.ts +0 -2
- package/dist/types/src/model/model.browser.test.d.ts.map +0 -1
- package/dist/types/src/model/model.d.ts.map +0 -1
- package/dist/types/src/model/types.d.ts +0 -17
- package/dist/types/src/model/types.d.ts.map +0 -1
- package/dist/types/src/model/types.test.d.ts.map +0 -1
- package/dist/types/src/model/util.d.ts +0 -15
- package/dist/types/src/model/util.d.ts.map +0 -1
- package/dist/types/src/testing.d.ts +0 -9
- package/dist/types/src/testing.d.ts.map +0 -1
- package/src/components/CellEditor/CellEditor.tsx +0 -113
- package/src/components/ComputeGraph/graph-context.tsx +0 -50
- package/src/components/ComputeGraph/graph.browser.test.ts +0 -50
- package/src/components/ComputeGraph/graph.ts +0 -62
- package/src/components/Sheet/Sheet.stories.tsx +0 -287
- package/src/components/Sheet/Sheet.tsx +0 -1160
- package/src/components/Sheet/formatting.ts +0 -106
- package/src/components/Sheet/grid.ts +0 -191
- package/src/components/Sheet/nav.ts +0 -157
- package/src/components/Sheet/sheet-context.tsx +0 -150
- package/src/components/Sheet/util.ts +0 -56
- package/src/components/SheetContainer.tsx +0 -34
- package/src/components/Toolbar/common.tsx +0 -72
- package/src/meta.tsx +0 -18
- package/src/model/model.browser.test.ts +0 -100
- package/src/model/model.ts +0 -550
- package/src/model/types.ts +0 -71
- package/src/model/util.ts +0 -36
- package/src/testing.ts +0 -50
- /package/dist/types/src/{model → defs}/types.test.d.ts +0 -0
- /package/dist/types/src/{components/CellEditor → extensions/editor}/extension.test.d.ts +0 -0
- /package/src/{model/functions.ts → compute-graph/functions/function-defs.ts} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/FunctionEditor/index.ts"],"names":[],"mappings":"AAIA,cAAc,kBAAkB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GridSheet.d.ts","sourceRoot":"","sources":["../../../../../src/components/GridSheet/GridSheet.tsx"],"names":[],"mappings":"AAIA,OAAO,KASN,MAAM,OAAO,CAAC;AA8Cf,eAAO,MAAM,SAAS,yBA0SrB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GridSheet.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/GridSheet/GridSheet.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,KAAK,MAAM,OAAO,CAAC;AAa1B,eAAO,MAAM,KAAK,gCAajB,CAAC;AAEF,QAAA,MAAM,IAAI,EAAE,IAUX,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -1,13 +1,7 @@
|
|
|
1
1
|
import '@dxos-theme';
|
|
2
|
+
import { type Meta } from '@storybook/react';
|
|
2
3
|
import React from 'react';
|
|
3
|
-
import { type CellEditorProps } from '
|
|
4
|
-
declare const _default: {
|
|
5
|
-
title: string;
|
|
6
|
-
component: ({ value, extension, autoFocus, onBlur }: CellEditorProps) => React.JSX.Element;
|
|
7
|
-
render: (args: StoryProps) => React.JSX.Element;
|
|
8
|
-
decorators: import("@storybook/react/*").Decorator[];
|
|
9
|
-
};
|
|
10
|
-
export default _default;
|
|
4
|
+
import { type CellEditorProps } from '@dxos/react-ui-grid';
|
|
11
5
|
type StoryProps = CellEditorProps;
|
|
12
6
|
export declare const Default: {};
|
|
13
7
|
export declare const AutoComplete: {
|
|
@@ -26,4 +20,6 @@ export declare const Automerge: {
|
|
|
26
20
|
value: string;
|
|
27
21
|
};
|
|
28
22
|
};
|
|
29
|
-
|
|
23
|
+
declare const meta: Meta;
|
|
24
|
+
export default meta;
|
|
25
|
+
//# sourceMappingURL=SheetCellEditor.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SheetCellEditor.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/GridSheet/SheetCellEditor.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,KAAuC,MAAM,OAAO,CAAC;AAK5D,OAAO,EAAc,KAAK,eAAe,EAAE,MAAM,qBAAqB,CAAC;AASvE,KAAK,UAAU,GAAG,eAAe,CAAC;AA4ClC,eAAO,MAAM,OAAO,IAAK,CAAC;AAE1B,eAAO,MAAM,YAAY;;;;CAIxB,CAAC;AAEF,eAAO,MAAM,UAAU;;;;CAItB,CAAC;AAEF,eAAO,MAAM,SAAS;mBACL,UAAU;;;;CAI1B,CAAC;AAEF,QAAA,MAAM,IAAI,EAAE,IAKX,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/GridSheet/index.ts"],"names":[],"mappings":"AAIA,cAAc,aAAa,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type GridContentProps, type DxGridElement } from '@dxos/react-ui-grid';
|
|
2
|
+
import { type CellAddress } from '../../defs';
|
|
3
|
+
import { type SheetModel } from '../../model';
|
|
4
|
+
export declare const dxGridCellIndexToSheetCellAddress: (index: string) => CellAddress;
|
|
5
|
+
export declare const rowLabelCell: (row: number) => {
|
|
6
|
+
value: string;
|
|
7
|
+
className: string;
|
|
8
|
+
resizeHandle: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const colLabelCell: (col: number) => {
|
|
11
|
+
value: string;
|
|
12
|
+
resizeHandle: string;
|
|
13
|
+
};
|
|
14
|
+
export declare const useSheetModelDxGridProps: (dxGrid: DxGridElement | null, model: SheetModel) => Pick<GridContentProps, "columns" | "rows">;
|
|
15
|
+
//# sourceMappingURL=util.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../../../src/components/GridSheet/util.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,aAAa,EASnB,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EAAE,KAAK,WAAW,EAAkD,MAAM,YAAY,CAAC;AAE9F,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,aAAa,CAAC;AAE9C,eAAO,MAAM,iCAAiC,UAAW,MAAM,KAAG,WAMjE,CAAC;AAgEF,eAAO,MAAM,YAAY,QAAS,MAAM;;;;CAItC,CAAC;AAEH,eAAO,MAAM,YAAY,QAAS,MAAM;;;CAA2D,CAAC;AA0BpG,eAAO,MAAM,wBAAwB,WAC3B,aAAa,GAAG,IAAI,SACrB,UAAU,KAChB,IAAI,CAAC,gBAAgB,EAAE,SAAS,GAAG,MAAM,CAsC3C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RangeList.d.ts","sourceRoot":"","sources":["../../../../../src/components/RangeList/RangeList.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAsB,MAAM,OAAO,CAAC;AAS3C,OAAO,EAAS,KAAK,SAAS,EAAE,MAAM,aAAa,CAAC;AAEpD,MAAM,MAAM,cAAc,GAAG;IAC3B,KAAK,EAAE,SAAS,CAAC;CAClB,CAAC;AAEF,eAAO,MAAM,SAAS,cAAe,cAAc,sBAiClD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/RangeList/index.ts"],"names":[],"mappings":"AAIA,cAAc,aAAa,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type Space } from '@dxos/react-client/echo';
|
|
3
|
+
import { type SheetType } from '../../types';
|
|
4
|
+
export declare const SheetContainer: ({ space, sheet, role }: {
|
|
5
|
+
space: Space;
|
|
6
|
+
sheet: SheetType;
|
|
7
|
+
role?: string;
|
|
8
|
+
}) => React.JSX.Element | null;
|
|
9
|
+
//# sourceMappingURL=SheetContainer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SheetContainer.d.ts","sourceRoot":"","sources":["../../../../../src/components/SheetContainer/SheetContainer.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAErD,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,aAAa,CAAC;AAO7C,eAAO,MAAM,cAAc,2BAA4B;IAAE,KAAK,EAAE,KAAK,CAAC;IAAC,KAAK,EAAE,SAAS,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,6BAiBvG,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SheetContainer.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/SheetContainer/SheetContainer.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,KAAK,MAAM,OAAO,CAAC;AAY1B,eAAO,MAAM,KAAK,gCASjB,CAAC;AAEF,QAAA,MAAM,IAAI,EAAE,IAcX,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/SheetContainer/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import React, { type PropsWithChildren } from 'react';
|
|
2
|
+
import { type GridContentProps, type GridEditing } from '@dxos/react-ui-grid';
|
|
3
|
+
import { type ComputeGraph } from '../../compute-graph';
|
|
4
|
+
import { type CellAddress, type CellRange, type CompleteCellRange } from '../../defs';
|
|
5
|
+
import { type SheetModel } from '../../model';
|
|
6
|
+
import { type SheetType } from '../../types';
|
|
7
|
+
export type SheetContextValue = {
|
|
8
|
+
id: string;
|
|
9
|
+
model: SheetModel;
|
|
10
|
+
cursor?: CellAddress;
|
|
11
|
+
setCursor: (cell: CellAddress | undefined) => void;
|
|
12
|
+
range?: CellRange;
|
|
13
|
+
setRange: (range: CellRange | undefined) => void;
|
|
14
|
+
cursorFallbackRange?: CompleteCellRange;
|
|
15
|
+
editing: GridEditing;
|
|
16
|
+
setEditing: (editing: GridEditing) => void;
|
|
17
|
+
activeRefs: GridContentProps['activeRefs'];
|
|
18
|
+
setActiveRefs: (activeRefs: GridContentProps['activeRefs']) => void;
|
|
19
|
+
onInfo?: () => void;
|
|
20
|
+
};
|
|
21
|
+
export declare const useSheetContext: () => SheetContextValue;
|
|
22
|
+
export type SheetProviderProps = {
|
|
23
|
+
graph: ComputeGraph;
|
|
24
|
+
sheet: SheetType;
|
|
25
|
+
readonly?: boolean;
|
|
26
|
+
} & Pick<SheetContextValue, 'onInfo'>;
|
|
27
|
+
export declare const SheetProvider: ({ children, graph, sheet, readonly, onInfo }: PropsWithChildren<SheetProviderProps>) => React.JSX.Element | null;
|
|
28
|
+
//# sourceMappingURL=SheetContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SheetContext.d.ts","sourceRoot":"","sources":["../../../../../src/components/SheetContext/SheetContext.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAAoD,MAAM,OAAO,CAAC;AAIxG,OAAO,EAEL,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAGjB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,qBAAqB,CAAC;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/components/SheetContext/index.ts"],"names":[],"mappings":"AAIA,cAAc,gBAAgB,CAAC"}
|
|
@@ -1,19 +1,46 @@
|
|
|
1
1
|
import React, { type PropsWithChildren } from 'react';
|
|
2
|
-
import { type ThemedClassName } from '@dxos/react-ui';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
import { type ThemedClassName, type ToolbarButtonProps as NaturalToolbarButtonProps, type ToolbarToggleGroupItemProps as NaturalToolbarToggleGroupItemProps, type ToolbarToggleProps as NaturalToolbarToggleProps } from '@dxos/react-ui';
|
|
3
|
+
import { type AlignKey, type AlignValue, type CommentKey, type CommentValue, type StyleKey, type StyleValue } from '../../defs';
|
|
4
|
+
type ToolbarItemProps = (NaturalToolbarButtonProps & {
|
|
5
|
+
itemType: 'button';
|
|
6
|
+
icon: string;
|
|
7
|
+
}) | (NaturalToolbarToggleGroupItemProps & {
|
|
8
|
+
itemType: 'toggleGroupItem';
|
|
9
|
+
icon: string;
|
|
10
|
+
}) | (NaturalToolbarToggleProps & {
|
|
11
|
+
itemType: 'toggle';
|
|
12
|
+
icon: string;
|
|
13
|
+
});
|
|
14
|
+
export declare const ToolbarItem: ({ itemType, icon, children, ...props }: ToolbarItemProps) => React.JSX.Element;
|
|
15
|
+
type AlignAction = {
|
|
16
|
+
key: AlignKey;
|
|
17
|
+
value: AlignValue;
|
|
6
18
|
};
|
|
7
|
-
|
|
19
|
+
type CommentAction = {
|
|
20
|
+
key: CommentKey;
|
|
21
|
+
value: CommentValue;
|
|
22
|
+
cellContent?: string;
|
|
23
|
+
};
|
|
24
|
+
type StyleAction = {
|
|
25
|
+
key: StyleKey;
|
|
26
|
+
value: StyleValue;
|
|
27
|
+
};
|
|
28
|
+
export type ToolbarAction = StyleAction | AlignAction | CommentAction;
|
|
29
|
+
export type ToolbarActionAnnotated = ToolbarAction & {
|
|
30
|
+
unset?: boolean;
|
|
31
|
+
};
|
|
32
|
+
export type ToolbarActionType = ToolbarAction['key'];
|
|
33
|
+
export type ToolbarActionHandler = (action: ToolbarActionAnnotated) => void;
|
|
8
34
|
export type ToolbarProps = ThemedClassName<PropsWithChildren<{
|
|
9
|
-
|
|
35
|
+
role?: string;
|
|
10
36
|
}>>;
|
|
11
|
-
declare const useToolbarContext: (consumerName: string) =>
|
|
37
|
+
declare const useToolbarContext: (consumerName: string) => {
|
|
38
|
+
onAction: (action: ToolbarActionAnnotated) => void;
|
|
39
|
+
};
|
|
12
40
|
export declare const Toolbar: {
|
|
13
|
-
Root: ({ children,
|
|
41
|
+
Root: ({ children, role, classNames }: ToolbarProps) => React.JSX.Element;
|
|
14
42
|
Separator: () => React.JSX.Element;
|
|
15
43
|
Alignment: () => React.JSX.Element;
|
|
16
|
-
Format: () => React.JSX.Element;
|
|
17
44
|
Styles: () => React.JSX.Element;
|
|
18
45
|
Actions: () => React.JSX.Element;
|
|
19
46
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Toolbar.d.ts","sourceRoot":"","sources":["../../../../../src/components/Toolbar/Toolbar.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Toolbar.d.ts","sourceRoot":"","sources":["../../../../../src/components/Toolbar/Toolbar.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAAe,MAAM,OAAO,CAAC;AAGnE,OAAO,EAEL,KAAK,eAAe,EAEpB,KAAK,kBAAkB,IAAI,yBAAyB,EACpD,KAAK,2BAA2B,IAAI,kCAAkC,EACtE,KAAK,kBAAkB,IAAI,yBAAyB,EAGrD,MAAM,gBAAgB,CAAC;AAIxB,OAAO,EAEL,KAAK,QAAQ,EACb,KAAK,UAAU,EACf,KAAK,UAAU,EACf,KAAK,YAAY,EAKjB,KAAK,QAAQ,EACb,KAAK,UAAU,EAChB,MAAM,YAAY,CAAC;AAmBpB,KAAK,gBAAgB,GACjB,CAAC,yBAAyB,GAAG;IAAE,QAAQ,EAAE,QAAQ,CAAC;IAAC,IAAI,EA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,35 +1,7 @@
|
|
|
1
1
|
import '@dxos-theme';
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
title: string;
|
|
5
|
-
component: {
|
|
6
|
-
Root: ({ children, onAction, classNames }: import("./Toolbar").ToolbarProps) => React.JSX.Element;
|
|
7
|
-
Separator: () => React.JSX.Element;
|
|
8
|
-
Alignment: () => React.JSX.Element;
|
|
9
|
-
Format: () => React.JSX.Element;
|
|
10
|
-
Styles: () => React.JSX.Element;
|
|
11
|
-
Actions: () => React.JSX.Element;
|
|
12
|
-
};
|
|
13
|
-
decorators: import("@storybook/react/*").Decorator[];
|
|
14
|
-
parameters: {
|
|
15
|
-
translations: {
|
|
16
|
-
'en-US': {
|
|
17
|
-
"dxos.org/plugin/sheet": {
|
|
18
|
-
'plugin name': string;
|
|
19
|
-
'sheet title placeholder': string;
|
|
20
|
-
'create sheet label': string;
|
|
21
|
-
'create sheet section label': string;
|
|
22
|
-
'cell placeholder': string;
|
|
23
|
-
'toolbar left label': string;
|
|
24
|
-
'toolbar left center': string;
|
|
25
|
-
'toolbar left right': string;
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
}[];
|
|
29
|
-
layout: string;
|
|
30
|
-
};
|
|
31
|
-
render: (args: any) => React.JSX.Element;
|
|
32
|
-
};
|
|
33
|
-
export default _default;
|
|
2
|
+
import { type Meta } from '@storybook/react';
|
|
3
|
+
import { Toolbar } from './Toolbar';
|
|
34
4
|
export declare const Default: {};
|
|
5
|
+
declare const meta: Meta<typeof Toolbar.Root>;
|
|
6
|
+
export default meta;
|
|
35
7
|
//# sourceMappingURL=Toolbar.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Toolbar.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Toolbar/Toolbar.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,KAAK,MAAM,
|
|
1
|
+
{"version":3,"file":"Toolbar.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Toolbar/Toolbar.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAM7C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAWpC,eAAO,MAAM,OAAO,IAAK,CAAC;AAE1B,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,OAAO,CAAC,IAAI,CAMnC,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
export * from './ComputeGraph';
|
|
3
|
-
export
|
|
2
|
+
export * from './GridSheet';
|
|
3
|
+
export * from './RangeList';
|
|
4
|
+
export * from './SheetContext';
|
|
5
|
+
export declare const SheetContainer: import("react").LazyExoticComponent<({ space, sheet, role }: {
|
|
6
|
+
space: import("packages/sdk/client-protocol/dist/types/src").Space;
|
|
7
|
+
sheet: import("../types").SheetType;
|
|
4
8
|
role?: string;
|
|
5
|
-
|
|
6
|
-
}) => React.JSX.Element>;
|
|
9
|
+
}) => import("react").JSX.Element | null>;
|
|
7
10
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAMA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAE/B,eAAO,MAAM,cAAc;;;QAC4M,CAAC;yCADpK,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { FunctionPluginDefinition } from 'hyperformula';
|
|
2
|
+
import type { ConfigParams } from 'hyperformula/typings/ConfigParams';
|
|
3
|
+
import type { FunctionTranslationsPackage } from 'hyperformula/typings/interpreter';
|
|
4
|
+
import { type SpaceId, type Space } from '@dxos/client/echo';
|
|
5
|
+
import { Resource } from '@dxos/context';
|
|
6
|
+
import { ComputeGraph } from './compute-graph';
|
|
7
|
+
import { type FunctionContextOptions } from './functions';
|
|
8
|
+
export type ComputeGraphPlugin = {
|
|
9
|
+
plugin: FunctionPluginDefinition;
|
|
10
|
+
translations: FunctionTranslationsPackage;
|
|
11
|
+
};
|
|
12
|
+
export type ComputeGraphOptions = {
|
|
13
|
+
plugins?: ComputeGraphPlugin[];
|
|
14
|
+
} & Partial<FunctionContextOptions> & Partial<ConfigParams>;
|
|
15
|
+
export declare const defaultOptions: ComputeGraphOptions;
|
|
16
|
+
export declare const defaultPlugins: ComputeGraphPlugin[];
|
|
17
|
+
/**
|
|
18
|
+
* Manages a collection of ComputeGraph instances for each space.
|
|
19
|
+
*
|
|
20
|
+
* [ComputePlugin] => [ComputeGraphRegistry] => [ComputeGraph(Space)] => [ComputeNode(Object)]
|
|
21
|
+
*
|
|
22
|
+
* NOTE: The ComputeGraphRegistry manages the hierarchy of resources via its root Context.
|
|
23
|
+
* NOTE: The package.json file defines the packaged #hyperformula module.
|
|
24
|
+
*/
|
|
25
|
+
export declare class ComputeGraphRegistry extends Resource {
|
|
26
|
+
private readonly _graphs;
|
|
27
|
+
private readonly _options;
|
|
28
|
+
constructor(options?: ComputeGraphOptions);
|
|
29
|
+
getGraph(spaceId: SpaceId): ComputeGraph | undefined;
|
|
30
|
+
getOrCreateGraph(space: Space): ComputeGraph;
|
|
31
|
+
createGraph(space: Space): ComputeGraph;
|
|
32
|
+
protected _close(): Promise<void>;
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=compute-graph-registry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compute-graph-registry.d.ts","sourceRoot":"","sources":["../../../../src/compute-graph/compute-graph-registry.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK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os/context';
|
|
4
|
+
import { type HyperFormula } from '#hyperformula';
|
|
5
|
+
import { ComputeNode } from './compute-node';
|
|
6
|
+
import { FunctionContext, type FunctionContextOptions, type FunctionDefinition } from './functions';
|
|
7
|
+
type ObjectRef = {
|
|
8
|
+
type: string;
|
|
9
|
+
id: string;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Marker for sheets that are managed by an ECHO object.
|
|
13
|
+
* Sheet ID: `dxos.org/type/SheetType@1234`
|
|
14
|
+
*/
|
|
15
|
+
export declare const createSheetName: ({ type, id }: ObjectRef) => string;
|
|
16
|
+
export declare const parseSheetName: (name: string) => Partial<ObjectRef>;
|
|
17
|
+
export type ComputeGraphEvent = 'functionsUpdated' | 'valuesUpdated';
|
|
18
|
+
/**
|
|
19
|
+
* Per-space compute and dependency graph.
|
|
20
|
+
* Consists of multiple ComputeNode (corresponding to a HyperFormula sheet).
|
|
21
|
+
* Manages the set of custom functions.
|
|
22
|
+
* HyperFormula manages the dependency graph.
|
|
23
|
+
*/
|
|
24
|
+
export declare class ComputeGraph extends Resource {
|
|
25
|
+
private readonly _hf;
|
|
26
|
+
private readonly _space?;
|
|
27
|
+
private readonly _options?;
|
|
28
|
+
readonly id: string;
|
|
29
|
+
private readonly _nodes;
|
|
30
|
+
private _remoteFunctions;
|
|
31
|
+
readonly update: Event<{
|
|
32
|
+
type: ComputeGraphEvent;
|
|
33
|
+
}>;
|
|
34
|
+
readonly context: FunctionContext;
|
|
35
|
+
constructor(_hf: HyperFormula, _space?: Space | undefined, _options?: Partial<FunctionContextOptions> | undefined);
|
|
36
|
+
get hf(): HyperFormula;
|
|
37
|
+
getFunctions({ standard, echo }?: {
|
|
38
|
+
standard?: boolean;
|
|
39
|
+
echo?: boolean;
|
|
40
|
+
}): FunctionDefinition[];
|
|
41
|
+
/**
|
|
42
|
+
* Get or create cell representing a sheet.
|
|
43
|
+
*/
|
|
44
|
+
getOrCreateNode(name: string): ComputeNode;
|
|
45
|
+
/**
|
|
46
|
+
* Map bound value to custom function invocation.
|
|
47
|
+
* E.g., "HELLO(...args)" => "DX("HELLO", ...args)".
|
|
48
|
+
*/
|
|
49
|
+
mapFormulaToNative(formula: string): string;
|
|
50
|
+
/**
|
|
51
|
+
* Map from binding to fully qualified ECHO ID (to store).
|
|
52
|
+
* E.g., HELLO() => spaceId:objectId()
|
|
53
|
+
*/
|
|
54
|
+
mapFunctionBindingToId(formula: string): string;
|
|
55
|
+
/**
|
|
56
|
+
* Map from fully qualified ECHO ID to binding (from store).
|
|
57
|
+
* E.g., spaceId:objectId() => HELLO()
|
|
58
|
+
*/
|
|
59
|
+
mapFunctionBindingFromId(formula: string): string | undefined;
|
|
60
|
+
protected _open(): Promise<void>;
|
|
61
|
+
protected _close(): Promise<void>;
|
|
62
|
+
}
|
|
63
|
+
export {};
|
|
64
|
+
//# sourceMappingURL=compute-graph.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compute-graph.d.ts","sourceRoot":"","sources":["../../../../src/compute-graph/compute-graph.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,KAAK,KAAK,EAA4B,MAAM,mBAAmB,CAAC;AAEzE,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAQzC,OAAO,EAAsB,KAAK,YAAY,EAAE,MAAM,eAAe,CAAC;AACtE,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAEL,eAAe,EACf,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EAExB,MAAM,aAAa,CAAC;AASrB,KAAK,SAAS,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,EAAE,EAAE,MAAM,CAAA;CAAE,CAAC;AAE9C;;;GAGG;AACH,eAAO,MAAM,eAAe,iBAAkB,SAAS,WAAoB,CAAC;AAC5E,eAAO,MAAM,cAAc,SAAU,MAAM,KAAG,OAAO,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7C,eAAO,MAAM,OAAO,IAAK,CAAC;AAE1B,QAAA,MAAM,IAAI,EAAE,IAQX,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compute-graph.test.d.ts","sourceRoot":"","sources":["../../../../src/compute-graph/compute-graph.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { type Listeners } from 'hyperformula/typings/Emitter';
|
|
2
|
+
import { type ExportedCellChange } from 'hyperformula/typings/Exporter';
|
|
3
|
+
import { Event } from '@dxos/async';
|
|
4
|
+
import { Resource } from '@dxos/context';
|
|
5
|
+
import { type ComputeGraph } from './compute-graph';
|
|
6
|
+
import { type CellAddress } from '../defs';
|
|
7
|
+
import { type CellScalarValue } from '../types';
|
|
8
|
+
export type ComputeNodeEvent = {
|
|
9
|
+
type: keyof Listeners;
|
|
10
|
+
change?: ExportedCellChange;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Individual "sheet" (typically corresponds to an ECHO object).
|
|
14
|
+
*/
|
|
15
|
+
export declare class ComputeNode extends Resource {
|
|
16
|
+
private readonly _graph;
|
|
17
|
+
readonly sheetId: number;
|
|
18
|
+
readonly update: Event<ComputeNodeEvent>;
|
|
19
|
+
constructor(_graph: ComputeGraph, sheetId: number);
|
|
20
|
+
get graph(): ComputeGraph;
|
|
21
|
+
clear(): void;
|
|
22
|
+
getValue(cell: CellAddress): CellScalarValue;
|
|
23
|
+
setValue(cell: CellAddress, value: CellScalarValue): void;
|
|
24
|
+
protected _open(): Promise<void>;
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=compute-node.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compute-node.d.ts","sourceRoot":"","sources":["../../../../src/compute-graph/compute-node.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAExE,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAGzC,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,KAAK,WAAW,EAAa,MAAM,SAAS,CAAC;AACtD,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,UAAU,CAAC;AAEhD,MAAM,MAAM,gBAAgB,GAAG;IAC7B,IAAI,EAAE,MAAM,SAAS,CAAC;IACtB,MAAM,CAAC,EAAE,kBAAkB,CAAC;CAC7B,CAAC;AAEF;;GAEG;AAEH,qBAAa,WAAY,SAAQ,QAAQ;IAIrC,OAAO,CAAC,QAAQ,CAAC,MAAM;aACP,OAAO,EAAE,MAAM;IAJjC,SAAgB,MAAM,0BAAiC;gBAGpC,MAAM,EAAE,YAAY,EACrB,OAAO,EAAE,MAAM;IAKjC,IAAI,KAAK,iBAER;IAED,KAAK;IAIL,QAAQ,CAAC,IAAI,EAAE,WAAW,GAAG,eAAe;IAS5C,QAAQ,CAAC,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,eAAe;cAMzB,KAAK;CAI/B"}
|
package/dist/types/src/{components/ComputeGraph → compute-graph/functions}/async-function.d.ts
RENAMED
|
@@ -1,17 +1,23 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { type SimpleCellAddress } from 'hyperformula/typings/Cell';
|
|
2
2
|
import { type InterpreterState } from 'hyperformula/typings/interpreter/InterpreterState';
|
|
3
3
|
import { type InterpreterValue } from 'hyperformula/typings/interpreter/InterpreterValue';
|
|
4
4
|
import { type ProcedureAst } from 'hyperformula/typings/parser';
|
|
5
5
|
import { type UnsubscribeCallback } from '@dxos/async';
|
|
6
6
|
import { type Space } from '@dxos/client/echo';
|
|
7
|
+
import { FunctionPlugin, type HyperFormula } from '#hyperformula';
|
|
7
8
|
export type AsyncFunction = (...args: any) => Promise<InterpreterValue>;
|
|
9
|
+
export type FunctionUpdateEvent = {
|
|
10
|
+
name: string;
|
|
11
|
+
cell: SimpleCellAddress;
|
|
12
|
+
};
|
|
8
13
|
export type FunctionOptions = {
|
|
9
14
|
ttl?: number;
|
|
10
15
|
};
|
|
11
16
|
export type FunctionContextOptions = {
|
|
12
17
|
defaultTtl: number;
|
|
13
|
-
|
|
18
|
+
debounceDelay: number;
|
|
14
19
|
remoteFunctionUrl: string;
|
|
20
|
+
onUpdate?: (update: FunctionUpdateEvent) => void;
|
|
15
21
|
};
|
|
16
22
|
export declare const defaultFunctionContextOptions: FunctionContextOptions;
|
|
17
23
|
/**
|
|
@@ -32,7 +38,7 @@ export declare class FunctionContext {
|
|
|
32
38
|
private _invocations;
|
|
33
39
|
private readonly _options;
|
|
34
40
|
private readonly _onUpdate;
|
|
35
|
-
constructor(_hf: HyperFormula, _space: Space | undefined,
|
|
41
|
+
constructor(_hf: HyperFormula, _space: Space | undefined, _options?: Partial<FunctionContextOptions>);
|
|
36
42
|
get space(): Space | undefined;
|
|
37
43
|
get remoteFunctionUrl(): string;
|
|
38
44
|
get info(): {
|
|
@@ -50,8 +56,11 @@ export declare class FunctionContext {
|
|
|
50
56
|
/**
|
|
51
57
|
* Base class for async functions.
|
|
52
58
|
*/
|
|
53
|
-
export declare class
|
|
59
|
+
export declare class AsyncFunctionPlugin extends FunctionPlugin {
|
|
54
60
|
get context(): FunctionContext;
|
|
55
|
-
|
|
61
|
+
/**
|
|
62
|
+
* Immediately returns cached value then runs the async function.
|
|
63
|
+
*/
|
|
64
|
+
protected runAsyncFunction(ast: ProcedureAst, state: InterpreterState, cb: AsyncFunction, options?: FunctionOptions): import("hyperformula/typings/interpreter/InterpreterValue").RawInterpreterValue;
|
|
56
65
|
}
|
|
57
66
|
//# sourceMappingURL=async-function.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"async-function.d.ts","sourceRoot":"","sources":["../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M,CAA8D;IAGrF,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAA6B;IAGtD,OAAO,CAAC,QAAQ,CAAC,cAAc,CAA0C;IAGzE,OAAO,CAAC,YAAY,CAA8B;IAElD,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAyB;IAGlD,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAwC;gBAG/C,GAAG,EAAE,YAAY,EACjB,MAAM,EAAE,KAAK,GAAG,SAAS,EAC1C,QAAQ,CAAC,EAAE,OAAO,CAAC,sBAAsB,CAAC;IAW5C,IAAI,KAAK,sBAER;IAED,IAAI,iBAAiB,WAEpB;IAED,IAAI,IAAI;;;MAEP;IAED,KAAK;IAOL,kBAAkB,CAAC,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,mBAAmB;IAKjE;;;OAGG;IACH,cAAc,CACZ,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,gBAAgB,EACvB,IAAI,EAAE,GAAG,EAAE,EACX,EAAE,EAAE,aAAa,EACjB,OAAO,CAAC,EAAE,eAAe,GACxB,gBAAgB,GAAG,SAAS;CAgChC;AAED;;GAEG;AACH,qBAAa,mBAAoB,SAAQ,cAAc;IACrD,IAAI,OAAO,IACqB,eAAe,CAC9C;IAED;;OAEG;IACH,SAAS,CAAC,gBAAgB,CAAC,GAAG,EAAE,YAAY,EAAE,KAAK,EAAE,gBAAgB,EAAE,EAAE,EAAE,aAAa,EAAE,OAAO,CAAC,EAAE,eAAe;CAOpH"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type InterpreterState } from 'hyperformula/typings/interpreter/InterpreterState';
|
|
2
|
+
import { type ProcedureAst } from 'hyperformula/typings/parser';
|
|
3
|
+
import { AsyncFunctionPlugin } from './async-function';
|
|
4
|
+
export declare const EDGE_FUNCTION_NAME = "DX";
|
|
5
|
+
/**
|
|
6
|
+
* A hyperformula function plugin for calling remote (EDGE) functions.
|
|
7
|
+
*
|
|
8
|
+
* https://hyperformula.handsontable.com/guide/custom-functions.html#add-a-simple-custom-function
|
|
9
|
+
*/
|
|
10
|
+
export declare class EdgeFunctionPlugin extends AsyncFunctionPlugin {
|
|
11
|
+
dx(ast: ProcedureAst, state: InterpreterState): import("hyperformula/typings/interpreter/InterpreterValue").RawInterpreterValue;
|
|
12
|
+
}
|
|
13
|
+
export declare const EdgeFunctionPluginTranslations: {
|
|
14
|
+
enGB: {
|
|
15
|
+
DX: string;
|
|
16
|
+
};
|
|
17
|
+
enUS: {
|
|
18
|
+
DX: string;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=edge-function.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"edge-function.d.ts","sourceRoot":"","sources":["../../../../../src/compute-graph/functions/edge-function.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,mDAAmD,CAAC;AAC1F,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAShE,OAAO,EAAsB,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAE3E,eAAO,MAAM,kBAAkB,OAAO,CAAC;AAIvC;;;;GAIG;AACH,qBAAa,kBAAmB,SAAQ,mBAAmB;IACzD,EAAE,CAAC,GAAG,EAAE,YAAY,EAAE,KAAK,EAAE,gBAAgB;CA4C9C;AAuBD,eAAO,MAAM,8BAA8B;;;;;;;CAO1C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"function-defs.d.ts","sourceRoot":"","sources":["../../../../../src/compute-graph/functions/function-defs.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,gBAAgB,EAAE,kBAAkB,EA42EhD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/compute-graph/functions/index.ts"],"names":[],"mappings":"AAIA,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hyperformula.test.d.ts","sourceRoot":"","sources":["../../../../src/compute-graph/hyperformula.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/compute-graph/index.ts"],"names":[],"mappings":"AAIA,cAAc,iBAAiB,CAAC;AAChC,cAAc,0BAA0B,CAAC;AACzC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/compute-graph/testing/index.ts"],"names":[],"mappings":"AAIA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC"}
|