@dxos/plugin-sheet 0.7.4 → 0.7.5-main.937ce75
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-KCLT6PEO.mjs → SheetContainer-S4NCLUYL.mjs} +16 -22
- package/dist/lib/browser/SheetContainer-S4NCLUYL.mjs.map +7 -0
- package/dist/lib/browser/{chunk-E5WQ7U7G.mjs → chunk-A374JPWV.mjs} +72 -705
- package/dist/lib/browser/chunk-A374JPWV.mjs.map +7 -0
- package/dist/lib/browser/chunk-Q4XS4YWF.mjs +900 -0
- package/dist/lib/browser/chunk-Q4XS4YWF.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +74 -180
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/types/index.mjs +62 -0
- package/dist/lib/node/{SheetContainer-VVVRYTQG.cjs → SheetContainer-TP4GYXZB.cjs} +41 -43
- package/dist/lib/node/SheetContainer-TP4GYXZB.cjs.map +7 -0
- package/dist/lib/node/{chunk-45YW2DX2.cjs → chunk-FDEQ2PGJ.cjs} +115 -726
- package/dist/lib/node/chunk-FDEQ2PGJ.cjs.map +7 -0
- package/dist/lib/node/chunk-TQOJ7DG2.cjs +935 -0
- package/dist/lib/node/chunk-TQOJ7DG2.cjs.map +7 -0
- package/dist/lib/node/index.cjs +104 -207
- package/dist/lib/node/index.cjs.map +3 -3
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/types/index.cjs +84 -0
- package/dist/lib/node/types/index.cjs.map +7 -0
- package/dist/lib/node-esm/{SheetContainer-LSBE6Q4X.mjs → SheetContainer-YB3JBVPZ.mjs} +16 -22
- package/dist/lib/node-esm/SheetContainer-YB3JBVPZ.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-NYDNXI7L.mjs → chunk-L5PQHVTX.mjs} +72 -705
- package/dist/lib/node-esm/chunk-L5PQHVTX.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-NYYIDVR7.mjs +901 -0
- package/dist/lib/node-esm/chunk-NYYIDVR7.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +74 -180
- package/dist/lib/node-esm/index.mjs.map +3 -3
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/types/index.mjs +63 -0
- package/dist/types/src/SheetPlugin.d.ts.map +1 -1
- package/dist/types/src/components/ComputeGraph/ComputeGraphContextProvider.d.ts +1 -1
- package/dist/types/src/components/ComputeGraph/ComputeGraphContextProvider.d.ts.map +1 -1
- package/dist/types/src/components/ComputeGraph/compute-graph.stories.d.ts.map +1 -0
- package/dist/types/src/components/FunctionEditor/FunctionEditor.d.ts.map +1 -1
- package/dist/types/src/components/GridSheet/GridSheet.d.ts.map +1 -1
- package/dist/types/src/components/GridSheet/SheetCellEditor.stories.d.ts.map +1 -1
- package/dist/types/src/components/GridSheet/util.d.ts.map +1 -1
- package/dist/types/src/components/RangeList/RangeList.d.ts.map +1 -1
- package/dist/types/src/components/SheetContainer/SheetContainer.stories.d.ts.map +1 -1
- package/dist/types/src/components/SheetContext/SheetContext.d.ts +1 -2
- package/dist/types/src/components/SheetContext/SheetContext.d.ts.map +1 -1
- package/dist/types/src/components/Toolbar/Toolbar.d.ts +1 -1
- package/dist/types/src/components/Toolbar/Toolbar.d.ts.map +1 -1
- package/dist/types/src/components/index.d.ts +1 -1
- package/dist/types/src/extensions/compute.d.ts +1 -1
- package/dist/types/src/extensions/compute.d.ts.map +1 -1
- package/dist/types/src/extensions/editor/extension.d.ts +1 -1
- package/dist/types/src/extensions/editor/extension.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +1 -1
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/integrations/thread-ranges.d.ts +1 -1
- package/dist/types/src/integrations/thread-ranges.d.ts.map +1 -1
- package/dist/types/src/model/sheet-model.d.ts +6 -8
- package/dist/types/src/model/sheet-model.d.ts.map +1 -1
- package/dist/types/src/model/testing.d.ts +1 -1
- package/dist/types/src/model/testing.d.ts.map +1 -1
- package/dist/types/src/model/useSheetModel.d.ts +1 -1
- package/dist/types/src/model/useSheetModel.d.ts.map +1 -1
- package/dist/types/src/testing/testing.d.ts +2 -2
- package/dist/types/src/testing/testing.d.ts.map +1 -1
- package/dist/types/src/{defs → types}/index.d.ts +1 -0
- package/dist/types/src/types/index.d.ts.map +1 -0
- package/dist/types/src/types/schema.d.ts +105 -0
- package/dist/types/src/types/schema.d.ts.map +1 -0
- package/dist/types/src/types/sheet-range-types.d.ts.map +1 -0
- package/dist/types/src/types/types.d.ts +82 -0
- package/dist/types/src/types/types.d.ts.map +1 -0
- package/dist/types/src/{defs → types}/util.d.ts +5 -1
- package/dist/types/src/types/util.d.ts.map +1 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -0
- package/package.json +46 -53
- package/src/SheetPlugin.tsx +44 -115
- package/src/components/ComputeGraph/ComputeGraphContextProvider.tsx +1 -2
- package/src/{compute-graph → components/ComputeGraph}/compute-graph.stories.tsx +6 -7
- package/src/components/FunctionEditor/FunctionEditor.tsx +2 -1
- package/src/components/GridSheet/GridSheet.tsx +15 -18
- package/src/components/GridSheet/SheetCellEditor.stories.tsx +6 -7
- package/src/components/GridSheet/util.ts +3 -2
- package/src/components/RangeList/RangeList.tsx +2 -1
- package/src/components/SheetContainer/SheetContainer.stories.tsx +11 -12
- package/src/components/SheetContext/SheetContext.tsx +1 -2
- package/src/components/Toolbar/Toolbar.tsx +18 -20
- package/src/extensions/compute.ts +7 -4
- package/src/extensions/editor/extension.test.ts +2 -1
- package/src/extensions/editor/extension.ts +2 -3
- package/src/index.ts +1 -3
- package/src/integrations/thread-ranges.ts +28 -24
- package/src/model/sheet-model.test.ts +4 -10
- package/src/model/sheet-model.ts +30 -22
- package/src/model/testing.ts +3 -2
- package/src/model/useSheetModel.ts +2 -1
- package/src/sanity.test.ts +1 -1
- package/src/testing/testing.tsx +2 -3
- package/src/{defs → types}/index.ts +1 -0
- package/src/types/schema.ts +56 -0
- package/src/types/types.ts +93 -0
- package/src/{defs → types}/util.ts +13 -13
- package/dist/lib/browser/SheetContainer-KCLT6PEO.mjs.map +0 -7
- package/dist/lib/browser/chunk-E5WQ7U7G.mjs.map +0 -7
- package/dist/lib/browser/chunk-F3HE6D3J.mjs +0 -3269
- package/dist/lib/browser/chunk-F3HE6D3J.mjs.map +0 -7
- package/dist/lib/browser/chunk-JXFPOYNA.mjs +0 -67
- package/dist/lib/browser/chunk-JXFPOYNA.mjs.map +0 -7
- package/dist/lib/browser/compute-graph-SNUS7HOH.mjs +0 -35
- package/dist/lib/browser/types.mjs +0 -16
- package/dist/lib/node/SheetContainer-VVVRYTQG.cjs.map +0 -7
- package/dist/lib/node/chunk-45YW2DX2.cjs.map +0 -7
- package/dist/lib/node/chunk-KSEEI5VC.cjs +0 -3323
- package/dist/lib/node/chunk-KSEEI5VC.cjs.map +0 -7
- package/dist/lib/node/chunk-OWH2EUHZ.cjs +0 -90
- package/dist/lib/node/chunk-OWH2EUHZ.cjs.map +0 -7
- package/dist/lib/node/compute-graph-WILPHO4A.cjs +0 -57
- package/dist/lib/node/compute-graph-WILPHO4A.cjs.map +0 -7
- package/dist/lib/node/types.cjs +0 -38
- package/dist/lib/node/types.cjs.map +0 -7
- package/dist/lib/node-esm/SheetContainer-LSBE6Q4X.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-6JF2AHKO.mjs +0 -3270
- package/dist/lib/node-esm/chunk-6JF2AHKO.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-BVS2IQRO.mjs +0 -68
- package/dist/lib/node-esm/chunk-BVS2IQRO.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-NYDNXI7L.mjs.map +0 -7
- package/dist/lib/node-esm/compute-graph-S6CVN7RS.mjs +0 -36
- package/dist/lib/node-esm/compute-graph-S6CVN7RS.mjs.map +0 -7
- package/dist/lib/node-esm/types.mjs +0 -17
- package/dist/lib/node-esm/types.mjs.map +0 -7
- package/dist/types/src/compute-graph/compute-graph-registry.d.ts +0 -34
- package/dist/types/src/compute-graph/compute-graph-registry.d.ts.map +0 -1
- package/dist/types/src/compute-graph/compute-graph.d.ts +0 -64
- package/dist/types/src/compute-graph/compute-graph.d.ts.map +0 -1
- package/dist/types/src/compute-graph/compute-graph.stories.d.ts.map +0 -1
- package/dist/types/src/compute-graph/compute-graph.test.d.ts +0 -2
- package/dist/types/src/compute-graph/compute-graph.test.d.ts.map +0 -1
- package/dist/types/src/compute-graph/compute-node.d.ts +0 -26
- package/dist/types/src/compute-graph/compute-node.d.ts.map +0 -1
- package/dist/types/src/compute-graph/functions/async-function.d.ts +0 -66
- package/dist/types/src/compute-graph/functions/async-function.d.ts.map +0 -1
- package/dist/types/src/compute-graph/functions/edge-function.d.ts +0 -21
- package/dist/types/src/compute-graph/functions/edge-function.d.ts.map +0 -1
- package/dist/types/src/compute-graph/functions/function-defs.d.ts +0 -11
- package/dist/types/src/compute-graph/functions/function-defs.d.ts.map +0 -1
- package/dist/types/src/compute-graph/functions/index.d.ts +0 -4
- package/dist/types/src/compute-graph/functions/index.d.ts.map +0 -1
- package/dist/types/src/compute-graph/hyperformula.test.d.ts +0 -2
- package/dist/types/src/compute-graph/hyperformula.test.d.ts.map +0 -1
- package/dist/types/src/compute-graph/index.d.ts +0 -5
- package/dist/types/src/compute-graph/index.d.ts.map +0 -1
- package/dist/types/src/compute-graph/testing/index.d.ts +0 -3
- package/dist/types/src/compute-graph/testing/index.d.ts.map +0 -1
- package/dist/types/src/compute-graph/testing/test-builder.d.ts +0 -15
- package/dist/types/src/compute-graph/testing/test-builder.d.ts.map +0 -1
- package/dist/types/src/compute-graph/testing/test-plugin.d.ts +0 -36
- package/dist/types/src/compute-graph/testing/test-plugin.d.ts.map +0 -1
- package/dist/types/src/compute-graph/util.d.ts +0 -2
- package/dist/types/src/compute-graph/util.d.ts.map +0 -1
- package/dist/types/src/defs/index.d.ts.map +0 -1
- package/dist/types/src/defs/sheet-range-types.d.ts.map +0 -1
- package/dist/types/src/defs/types.d.ts +0 -26
- package/dist/types/src/defs/types.d.ts.map +0 -1
- package/dist/types/src/defs/types.test.d.ts +0 -2
- package/dist/types/src/defs/types.test.d.ts.map +0 -1
- package/dist/types/src/defs/util.d.ts.map +0 -1
- package/dist/types/src/types.d.ts +0 -182
- package/dist/types/src/types.d.ts.map +0 -1
- package/dist/vendor/hyperformula.mjs +0 -37145
- package/src/compute-graph/compute-graph-registry.ts +0 -90
- package/src/compute-graph/compute-graph.test.ts +0 -87
- package/src/compute-graph/compute-graph.ts +0 -260
- package/src/compute-graph/compute-node.ts +0 -62
- package/src/compute-graph/functions/async-function.ts +0 -179
- package/src/compute-graph/functions/edge-function.ts +0 -102
- package/src/compute-graph/functions/function-defs.ts +0 -2427
- package/src/compute-graph/functions/index.ts +0 -7
- package/src/compute-graph/hyperformula.test.ts +0 -14
- package/src/compute-graph/index.ts +0 -8
- package/src/compute-graph/testing/index.ts +0 -6
- package/src/compute-graph/testing/test-builder.ts +0 -54
- package/src/compute-graph/testing/test-plugin.ts +0 -100
- package/src/compute-graph/util.ts +0 -8
- package/src/defs/types.test.ts +0 -91
- package/src/defs/types.ts +0 -88
- package/src/types.ts +0 -125
- /package/dist/lib/browser/{compute-graph-SNUS7HOH.mjs.map → types/index.mjs.map} +0 -0
- /package/dist/lib/{browser/types.mjs.map → node-esm/types/index.mjs.map} +0 -0
- /package/dist/types/src/{compute-graph → components/ComputeGraph}/compute-graph.stories.d.ts +0 -0
- /package/dist/types/src/{defs → types}/sheet-range-types.d.ts +0 -0
- /package/src/{defs → types}/sheet-range-types.ts +0 -0
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"hyperformula.test.d.ts","sourceRoot":"","sources":["../../../../src/compute-graph/hyperformula.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Client, type ClientOptions } from '@dxos/client';
|
|
2
|
-
import { type Context, Resource } from '@dxos/context';
|
|
3
|
-
import { type ComputeGraphOptions, ComputeGraphRegistry } from '../compute-graph-registry';
|
|
4
|
-
export type TestBuilderOptions = ClientOptions & ComputeGraphOptions;
|
|
5
|
-
export declare class TestBuilder extends Resource {
|
|
6
|
-
private readonly _options;
|
|
7
|
-
private _client?;
|
|
8
|
-
private _registry?;
|
|
9
|
-
constructor(_options?: TestBuilderOptions);
|
|
10
|
-
get ctx(): Context;
|
|
11
|
-
get client(): Client;
|
|
12
|
-
get registry(): ComputeGraphRegistry;
|
|
13
|
-
_open(): Promise<void>;
|
|
14
|
-
}
|
|
15
|
-
//# sourceMappingURL=test-builder.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"test-builder.d.ts","sourceRoot":"","sources":["../../../../../src/compute-graph/testing/test-builder.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,KAAK,aAAa,EAAE,MAAM,cAAc,CAAC;AAC1D,OAAO,EAAE,KAAK,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAGvD,OAAO,EAAE,KAAK,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAE3F,MAAM,MAAM,kBAAkB,GAAG,aAAa,GAAG,mBAAmB,CAAC;AAGrE,qBAAa,WAAY,SAAQ,QAAQ;IAI3B,OAAO,CAAC,QAAQ,CAAC,QAAQ;IAHrC,OAAO,CAAC,OAAO,CAAC,CAAS;IACzB,OAAO,CAAC,SAAS,CAAC,CAAuB;gBAEZ,QAAQ,GAAE,kBAAuB;IAI9D,IAAI,GAAG,IAAI,OAAO,CAEjB;IAED,IAAI,MAAM,IAAI,MAAM,CAGnB;IAED,IAAI,QAAQ,IAAI,oBAAoB,CAGnC;IAEc,KAAK;CAkBrB"}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { type InterpreterState } from 'hyperformula/typings/interpreter/InterpreterState';
|
|
2
|
-
import { type ProcedureAst } from 'hyperformula/typings/parser';
|
|
3
|
-
import { type ComputeGraphPlugin } from '../compute-graph-registry';
|
|
4
|
-
import { AsyncFunctionPlugin } from '../functions';
|
|
5
|
-
/**
|
|
6
|
-
* Testing functions run locally (not run via EDGE).
|
|
7
|
-
* https://hyperformula.handsontable.com/guide/custom-functions.html#add-a-simple-custom-function
|
|
8
|
-
*/
|
|
9
|
-
export declare class TestPlugin extends AsyncFunctionPlugin {
|
|
10
|
-
/**
|
|
11
|
-
* Simple local function returns input value.
|
|
12
|
-
*/
|
|
13
|
-
test(ast: ProcedureAst, state: InterpreterState): import("hyperformula/typings/interpreter/InterpreterValue").RawInterpreterValue;
|
|
14
|
-
/**
|
|
15
|
-
* Simple local function returns random number.
|
|
16
|
-
*/
|
|
17
|
-
random(ast: ProcedureAst, state: InterpreterState): import("hyperformula/typings/interpreter/InterpreterValue").RawInterpreterValue;
|
|
18
|
-
/**
|
|
19
|
-
* Async HTTP function.
|
|
20
|
-
*/
|
|
21
|
-
crypto(ast: ProcedureAst, state: InterpreterState): import("hyperformula/typings/interpreter/InterpreterValue").RawInterpreterValue;
|
|
22
|
-
}
|
|
23
|
-
export declare const TestPluginTranslations: {
|
|
24
|
-
enGB: {
|
|
25
|
-
TEST: string;
|
|
26
|
-
RANDOM: string;
|
|
27
|
-
CRYPTO: string;
|
|
28
|
-
};
|
|
29
|
-
enUS: {
|
|
30
|
-
TEST: string;
|
|
31
|
-
RANDOM: string;
|
|
32
|
-
CRYPTO: string;
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
export declare const testFunctionPlugins: ComputeGraphPlugin[];
|
|
36
|
-
//# sourceMappingURL=test-plugin.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"test-plugin.d.ts","sourceRoot":"","sources":["../../../../../src/compute-graph/testing/test-plugin.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,mDAAmD,CAAC;AAC1F,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAKhE,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAsB,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAGvE;;;GAGG;AACH,qBAAa,UAAW,SAAQ,mBAAmB;IACjD;;OAEG;IACH,IAAI,CAAC,GAAG,EAAE,YAAY,EAAE,KAAK,EAAE,gBAAgB;IAQ/C;;OAEG;IACH,MAAM,CAAC,GAAG,EAAE,YAAY,EAAE,KAAK,EAAE,gBAAgB;IAQjD;;OAEG;IACH,MAAM,CAAC,GAAG,EAAE,YAAY,EAAE,KAAK,EAAE,gBAAgB;CAelD;AAsBD,eAAO,MAAM,sBAAsB;;;;;;;;;;;CAWlC,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,kBAAkB,EAKnD,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../../src/compute-graph/util.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,iBAAiB,QAAS,MAAM,KAAG,MAE/C,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/defs/index.ts"],"names":[],"mappings":"AAIA,cAAc,qBAAqB,CAAC;AACpC,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sheet-range-types.d.ts","sourceRoot":"","sources":["../../../../src/defs/sheet-range-types.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAErD,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,UAAU,CAAC;AAE1C,eAAO,MAAM,QAAQ,cAAc,CAAC;AACpC,MAAM,MAAM,QAAQ,GAAG,OAAO,QAAQ,CAAC;AACvC,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,QAAQ,GAAG,KAAK,GAAG,OAAO,CAAC;AAE9D,eAAO,MAAM,UAAU,YAAY,CAAC;AACpC,MAAM,MAAM,UAAU,GAAG,OAAO,UAAU,CAAC;AAC3C,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC;AAElC,eAAO,MAAM,QAAQ,UAAU,CAAC;AAChC,MAAM,MAAM,QAAQ,GAAG,OAAO,QAAQ,CAAC;AACvC,MAAM,MAAM,UAAU,GAAG,WAAW,GAAG,UAAU,CAAC;AAGlD,eAAO,MAAM,qBAAqB,mBAAoB,SAAS,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,KAAG,cA8BnF,CAAC"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { type DxGridPlanePosition } from '@dxos/react-ui-grid';
|
|
2
|
-
export declare const DEFAULT_ROWS = 50;
|
|
3
|
-
export declare const DEFAULT_COLUMNS = 26;
|
|
4
|
-
export declare const MAX_ROWS = 500;
|
|
5
|
-
export declare const MAX_COLUMNS: number;
|
|
6
|
-
export type CellAddress = DxGridPlanePosition;
|
|
7
|
-
export type CellRange = {
|
|
8
|
-
from: CellAddress;
|
|
9
|
-
to?: CellAddress;
|
|
10
|
-
};
|
|
11
|
-
export type CompleteCellRange = {
|
|
12
|
-
from: CellAddress;
|
|
13
|
-
to: CellAddress;
|
|
14
|
-
};
|
|
15
|
-
export type CellIndex = string;
|
|
16
|
-
export type CellContentValue = number | string | boolean | null;
|
|
17
|
-
export declare const RANGE_NOTATION: RegExp;
|
|
18
|
-
export declare const isFormula: (value: any) => value is string;
|
|
19
|
-
export declare const posEquals: (a: CellAddress | undefined, b: CellAddress | undefined) => boolean;
|
|
20
|
-
export declare const columnLetter: (col: number) => string;
|
|
21
|
-
export declare const addressToA1Notation: ({ col, row }: CellAddress) => string;
|
|
22
|
-
export declare const addressFromA1Notation: (ref: string) => CellAddress;
|
|
23
|
-
export declare const rangeToA1Notation: (range: CellRange) => string;
|
|
24
|
-
export declare const rangeFromA1Notation: (ref: string) => CellRange;
|
|
25
|
-
export declare const inRange: (range: CellRange | undefined, cell: CellAddress) => boolean;
|
|
26
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/defs/types.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAE/D,eAAO,MAAM,YAAY,KAAK,CAAC;AAC/B,eAAO,MAAM,eAAe,KAAK,CAAC;AAElC,eAAO,MAAM,QAAQ,MAAM,CAAC;AAC5B,eAAO,MAAM,WAAW,QAAS,CAAC;AAElC,MAAM,MAAM,WAAW,GAAG,mBAAmB,CAAC;AAE9C,MAAM,MAAM,SAAS,GAAG;IAAE,IAAI,EAAE,WAAW,CAAC;IAAC,EAAE,CAAC,EAAE,WAAW,CAAA;CAAE,CAAC;AAChE,MAAM,MAAM,iBAAiB,GAAG;IAAE,IAAI,EAAE,WAAW,CAAC;IAAC,EAAE,EAAE,WAAW,CAAA;CAAE,CAAC;AAEvE,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC;AAE/B,MAAM,MAAM,gBAAgB,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,CAAC;AAEhE,eAAO,MAAM,cAAc,QAAmC,CAAC;AAE/D,eAAO,MAAM,SAAS,UAAW,GAAG,KAAG,KAAK,IAAI,MAA8D,CAAC;AAE/G,eAAO,MAAM,SAAS,MAAO,WAAW,GAAG,SAAS,KAAK,WAAW,GAAG,SAAS,YAE/E,CAAC;AAEF,eAAO,MAAM,YAAY,QAAS,MAAM,KAAG,MAM1C,CAAC;AAEF,eAAO,MAAM,mBAAmB,iBAAkB,WAAW,KAAG,MAE/D,CAAC;AAGF,eAAO,MAAM,qBAAqB,QAAS,MAAM,KAAG,WAOnD,CAAC;AAEF,eAAO,MAAM,iBAAiB,UAAW,SAAS,WAIjD,CAAC;AAEF,eAAO,MAAM,mBAAmB,QAAS,MAAM,KAAG,SAGjD,CAAC;AAEF,eAAO,MAAM,OAAO,UAAW,SAAS,GAAG,SAAS,QAAQ,WAAW,KAAG,OAwBzE,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.test.d.ts","sourceRoot":"","sources":["../../../../src/defs/types.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../../src/defs/util.ts"],"names":[],"mappings":"AAQA,OAAO,EAIL,KAAK,WAAW,EAChB,KAAK,SAAS,EACd,KAAK,iBAAiB,EAKvB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,KAAK,kBAAkB,EAAE,KAAK,SAAS,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAG9E,qBAAa,QAAS,SAAQ,KAAK;CAAG;AAEtC,qBAAa,iBAAkB,SAAQ,QAAQ;CAAG;AAElD,qBAAa,cAAe,SAAQ,QAAQ;gBAC9B,CAAC,EAAE,MAAM;CAGtB;AAID;;GAEG;AACH,eAAO,MAAM,WAAW,uBAAiB,MAKxC,CAAC;AAEF,eAAO,MAAM,aAAa,WAAY,MAAM,KAAG,MAAM,EAAqD,CAAC;AAE3G,eAAO,MAAM,aAAa,YAAa,MAAM,EAAE,KAAK,MAAM,KAAK,MAAM,OAAO,MAAM,aAQjF,CAAC;AAEF,eAAO,MAAM,UAAU,UACd,SAAS,sBACoC,OAAO,CAAC,SAAS,CAAC,SAQvE,CAAC;AAEF,eAAO,MAAM,WAAW,8BAA8B,kBAAkB,KAAQ,SA0B/E,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,cAAc,UAAW,SAAS,QAAQ,WAAW,KAAG,MAEpE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,gBAAgB,UAAW,SAAS,OAAO,MAAM,KAAG,WAMhE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,YAAY,UAAW,SAAS,SAAS,SAAS,KAAG,MAEjE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,cAAc,UAAW,SAAS,OAAO,MAAM,KAAG,iBAG9D,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,qBAAqB,UAAW,SAAS,UAAU,MAAM,UAAU,MAAM,KAAG,MAUxF,CAAC;AAIF;;GAEG;AACH,eAAO,MAAM,uBAAuB,UAAW,SAAS,WAAW,MAAM,KAAG,MAK3E,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,uBAAuB,UAAW,SAAS,WAAW,MAAM,KAAG,MAK3E,CAAC"}
|
|
@@ -1,182 +0,0 @@
|
|
|
1
|
-
import type { GraphBuilderProvides, IntentResolverProvides, MetadataRecordsProvides, SurfaceProvides, TranslationsProvides, IntentData } from '@dxos/app-framework';
|
|
2
|
-
import { ref, S } from '@dxos/echo-schema';
|
|
3
|
-
import { type MarkdownExtensionProvides } from '@dxos/plugin-markdown';
|
|
4
|
-
import { type SchemaProvides } from '@dxos/plugin-space';
|
|
5
|
-
import { type StackProvides } from '@dxos/plugin-stack';
|
|
6
|
-
import { type DxGridAxis } from '@dxos/react-ui-grid';
|
|
7
|
-
import { type SheetModel } from './model';
|
|
8
|
-
export declare enum SheetAction {
|
|
9
|
-
CREATE = "dxos.org/plugin/sheet/action/create",
|
|
10
|
-
INSERT_AXIS = "dxos.org/plugin/sheet/action/axis-insert",
|
|
11
|
-
DROP_AXIS = "dxos.org/plugin/sheet/action/axis-drop"
|
|
12
|
-
}
|
|
13
|
-
export type RestoreAxis = {
|
|
14
|
-
axis: DxGridAxis;
|
|
15
|
-
axisIndex: string;
|
|
16
|
-
index: number;
|
|
17
|
-
axisMeta?: S.Schema.Type<typeof RowColumnMeta>;
|
|
18
|
-
values: CellScalarValue[];
|
|
19
|
-
};
|
|
20
|
-
export declare namespace SheetAction {
|
|
21
|
-
type Create = IntentData<{
|
|
22
|
-
sheet: SheetType;
|
|
23
|
-
}>;
|
|
24
|
-
type InsertAxis = IntentData<{
|
|
25
|
-
model: SheetModel;
|
|
26
|
-
axis: DxGridAxis;
|
|
27
|
-
index: number;
|
|
28
|
-
count?: number;
|
|
29
|
-
}>;
|
|
30
|
-
type DropAxis = IntentData<{
|
|
31
|
-
model: SheetModel;
|
|
32
|
-
axis: DxGridAxis;
|
|
33
|
-
axisIndex: string;
|
|
34
|
-
}>;
|
|
35
|
-
type DropAxisRestore = IntentData<RestoreAxis & {
|
|
36
|
-
model: SheetModel;
|
|
37
|
-
}>;
|
|
38
|
-
}
|
|
39
|
-
type ThreadProvides<T> = {
|
|
40
|
-
thread: {
|
|
41
|
-
predicate: (obj: any) => obj is T;
|
|
42
|
-
createSort: (obj: T) => (anchorA: string | undefined, anchorB: string | undefined) => number;
|
|
43
|
-
};
|
|
44
|
-
};
|
|
45
|
-
export type SheetPluginProvides = SurfaceProvides & IntentResolverProvides & GraphBuilderProvides & MarkdownExtensionProvides & MetadataRecordsProvides & TranslationsProvides & SchemaProvides & StackProvides & ThreadProvides<SheetType>;
|
|
46
|
-
export type CellScalarValue = number | string | boolean | null;
|
|
47
|
-
export declare const CellValue: S.Struct<{
|
|
48
|
-
value: typeof S.Any;
|
|
49
|
-
}>;
|
|
50
|
-
export type CellValue = S.Schema.Type<typeof CellValue>;
|
|
51
|
-
export declare const Range: S.Struct<{
|
|
52
|
-
range: typeof S.String;
|
|
53
|
-
key: typeof S.String;
|
|
54
|
-
value: typeof S.String;
|
|
55
|
-
}>;
|
|
56
|
-
export type Range = S.Schema.Type<typeof Range>;
|
|
57
|
-
export declare const RowColumnMeta: S.Struct<{
|
|
58
|
-
size: S.optional<typeof S.Number>;
|
|
59
|
-
}>;
|
|
60
|
-
declare const SheetType_base: import("@dxos/echo-schema").AbstractTypedObject<{
|
|
61
|
-
name?: string | undefined;
|
|
62
|
-
cells: {
|
|
63
|
-
[x: string]: {
|
|
64
|
-
value: any;
|
|
65
|
-
};
|
|
66
|
-
};
|
|
67
|
-
rows: string[];
|
|
68
|
-
columns: string[];
|
|
69
|
-
rowMeta: {
|
|
70
|
-
[x: string]: {
|
|
71
|
-
size?: number | undefined;
|
|
72
|
-
};
|
|
73
|
-
};
|
|
74
|
-
columnMeta: {
|
|
75
|
-
[x: string]: {
|
|
76
|
-
size?: number | undefined;
|
|
77
|
-
};
|
|
78
|
-
};
|
|
79
|
-
ranges: {
|
|
80
|
-
readonly key: string;
|
|
81
|
-
readonly value: string;
|
|
82
|
-
readonly range: string;
|
|
83
|
-
}[];
|
|
84
|
-
threads?: import("@dxos/echo-schema").Ref<{
|
|
85
|
-
name?: string | undefined;
|
|
86
|
-
anchor?: string | undefined;
|
|
87
|
-
status?: "active" | "staged" | "resolved" | undefined;
|
|
88
|
-
messages: import("@dxos/echo-schema").Ref<{
|
|
89
|
-
text: string;
|
|
90
|
-
timestamp: string;
|
|
91
|
-
state?: import("@dxos/plugin-space").MessageState | undefined;
|
|
92
|
-
sender: {
|
|
93
|
-
name?: string | undefined;
|
|
94
|
-
contact?: import("@dxos/echo-schema").Ref<{
|
|
95
|
-
name?: string | undefined;
|
|
96
|
-
identifiers: {
|
|
97
|
-
readonly value: string;
|
|
98
|
-
readonly type: string;
|
|
99
|
-
}[];
|
|
100
|
-
} & {
|
|
101
|
-
id: string;
|
|
102
|
-
}>;
|
|
103
|
-
identityKey?: string | undefined;
|
|
104
|
-
email?: string | undefined;
|
|
105
|
-
};
|
|
106
|
-
parts?: import("@dxos/echo-schema").Ref<import("@dxos/echo-schema").Expando>[] | undefined;
|
|
107
|
-
properties?: {
|
|
108
|
-
[x: string]: any;
|
|
109
|
-
} | undefined;
|
|
110
|
-
context?: import("@dxos/echo-schema").Ref<import("@dxos/echo-schema").Expando>;
|
|
111
|
-
} & {
|
|
112
|
-
id: string;
|
|
113
|
-
}>[];
|
|
114
|
-
} & {
|
|
115
|
-
id: string;
|
|
116
|
-
}>[] | undefined;
|
|
117
|
-
} & {
|
|
118
|
-
id: string;
|
|
119
|
-
}, S.Struct.Encoded<{
|
|
120
|
-
name: S.optional<typeof S.String>;
|
|
121
|
-
cells: S.mutable<S.Record$<typeof S.String, S.mutable<S.Struct<{
|
|
122
|
-
value: typeof S.Any;
|
|
123
|
-
}>>>>;
|
|
124
|
-
rows: S.mutable<S.Array$<typeof S.String>>;
|
|
125
|
-
columns: S.mutable<S.Array$<typeof S.String>>;
|
|
126
|
-
rowMeta: S.mutable<S.Record$<typeof S.String, S.mutable<S.Struct<{
|
|
127
|
-
size: S.optional<typeof S.Number>;
|
|
128
|
-
}>>>>;
|
|
129
|
-
columnMeta: S.mutable<S.Record$<typeof S.String, S.mutable<S.Struct<{
|
|
130
|
-
size: S.optional<typeof S.Number>;
|
|
131
|
-
}>>>>;
|
|
132
|
-
ranges: S.mutable<S.Array$<S.Struct<{
|
|
133
|
-
range: typeof S.String;
|
|
134
|
-
key: typeof S.String;
|
|
135
|
-
value: typeof S.String;
|
|
136
|
-
}>>>;
|
|
137
|
-
threads: S.optional<S.mutable<S.Array$<ref<{
|
|
138
|
-
name?: string | undefined;
|
|
139
|
-
anchor?: string | undefined;
|
|
140
|
-
status?: "active" | "staged" | "resolved" | undefined;
|
|
141
|
-
messages: import("@dxos/echo-schema").Ref<{
|
|
142
|
-
text: string;
|
|
143
|
-
timestamp: string;
|
|
144
|
-
state?: import("@dxos/plugin-space").MessageState | undefined;
|
|
145
|
-
sender: {
|
|
146
|
-
name?: string | undefined;
|
|
147
|
-
contact?: import("@dxos/echo-schema").Ref<{
|
|
148
|
-
name?: string | undefined;
|
|
149
|
-
identifiers: {
|
|
150
|
-
readonly value: string;
|
|
151
|
-
readonly type: string;
|
|
152
|
-
}[];
|
|
153
|
-
} & {
|
|
154
|
-
id: string;
|
|
155
|
-
}>;
|
|
156
|
-
identityKey?: string | undefined;
|
|
157
|
-
email?: string | undefined;
|
|
158
|
-
};
|
|
159
|
-
parts?: import("@dxos/echo-schema").Ref<import("@dxos/echo-schema").Expando>[] | undefined;
|
|
160
|
-
properties?: {
|
|
161
|
-
[x: string]: any;
|
|
162
|
-
} | undefined;
|
|
163
|
-
context?: import("@dxos/echo-schema").Ref<import("@dxos/echo-schema").Expando>;
|
|
164
|
-
} & {
|
|
165
|
-
id: string;
|
|
166
|
-
}>[];
|
|
167
|
-
} & {
|
|
168
|
-
id: string;
|
|
169
|
-
}>>>>;
|
|
170
|
-
}>>;
|
|
171
|
-
export declare class SheetType extends SheetType_base {
|
|
172
|
-
}
|
|
173
|
-
export type SheetSize = {
|
|
174
|
-
rows: number;
|
|
175
|
-
columns: number;
|
|
176
|
-
};
|
|
177
|
-
export type CreateSheetOptions = {
|
|
178
|
-
name?: string;
|
|
179
|
-
cells?: Record<string, CellValue>;
|
|
180
|
-
} & Partial<SheetSize>;
|
|
181
|
-
export {};
|
|
182
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/types.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,oBAAoB,EACpB,sBAAsB,EACtB,uBAAuB,EACvB,eAAe,EACf,oBAAoB,E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