@dxos/plugin-sheet 0.7.2 → 0.7.3-staging.971cd8d
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-YAMIOFC6.mjs → SheetContainer-KCLT6PEO.mjs} +8 -6
- package/dist/lib/browser/SheetContainer-KCLT6PEO.mjs.map +7 -0
- package/dist/lib/browser/{chunk-QHQFM7LV.mjs → chunk-E5WQ7U7G.mjs} +77 -78
- package/dist/lib/browser/chunk-E5WQ7U7G.mjs.map +7 -0
- package/dist/lib/browser/{chunk-VMSX6Z4X.mjs → chunk-F3HE6D3J.mjs} +76 -26
- package/dist/lib/browser/chunk-F3HE6D3J.mjs.map +7 -0
- package/dist/lib/browser/{chunk-BVUN7SHF.mjs → chunk-JXFPOYNA.mjs} +1 -1
- package/dist/lib/browser/chunk-JXFPOYNA.mjs.map +7 -0
- package/dist/lib/browser/{compute-graph-GGWUX644.mjs → compute-graph-SNUS7HOH.mjs} +3 -3
- package/dist/lib/browser/index.mjs +84 -32
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/types.mjs +1 -1
- package/dist/lib/node/{SheetContainer-BSDHHYXE.cjs → SheetContainer-VVVRYTQG.cjs} +32 -31
- package/dist/lib/node/SheetContainer-VVVRYTQG.cjs.map +7 -0
- package/dist/lib/node/{chunk-J5ZFWMOD.cjs → chunk-45YW2DX2.cjs} +96 -101
- package/dist/lib/node/chunk-45YW2DX2.cjs.map +7 -0
- package/dist/lib/node/{chunk-O7XR4R7Y.cjs → chunk-KSEEI5VC.cjs} +87 -27
- package/dist/lib/node/chunk-KSEEI5VC.cjs.map +7 -0
- package/dist/lib/node/{chunk-AWKOWDMI.cjs → chunk-OWH2EUHZ.cjs} +4 -4
- package/dist/lib/node/chunk-OWH2EUHZ.cjs.map +7 -0
- package/dist/lib/node/{compute-graph-KGWA2QLE.cjs → compute-graph-WILPHO4A.cjs} +20 -20
- package/dist/lib/node/{compute-graph-KGWA2QLE.cjs.map → compute-graph-WILPHO4A.cjs.map} +2 -2
- package/dist/lib/node/index.cjs +101 -47
- package/dist/lib/node/index.cjs.map +3 -3
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/types.cjs +6 -6
- package/dist/lib/node/types.cjs.map +1 -1
- package/dist/lib/node-esm/{SheetContainer-T47T2NYJ.mjs → SheetContainer-LSBE6Q4X.mjs} +8 -6
- package/dist/lib/node-esm/SheetContainer-LSBE6Q4X.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-CR4K75EL.mjs → chunk-6JF2AHKO.mjs} +76 -26
- package/dist/lib/node-esm/chunk-6JF2AHKO.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-UIBWRHW7.mjs → chunk-BVS2IQRO.mjs} +1 -1
- package/dist/lib/node-esm/chunk-BVS2IQRO.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-6GSTEN7N.mjs → chunk-NYDNXI7L.mjs} +77 -78
- package/dist/lib/node-esm/chunk-NYDNXI7L.mjs.map +7 -0
- package/dist/lib/node-esm/{compute-graph-2SCZT7N5.mjs → compute-graph-S6CVN7RS.mjs} +3 -3
- package/dist/lib/node-esm/index.mjs +84 -32
- 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.mjs +1 -1
- package/dist/types/src/SheetPlugin.d.ts.map +1 -1
- package/dist/types/src/components/GridSheet/GridSheet.d.ts.map +1 -1
- package/dist/types/src/components/GridSheet/GridSheet.stories.d.ts +1 -0
- package/dist/types/src/components/GridSheet/GridSheet.stories.d.ts.map +1 -1
- package/dist/types/src/components/GridSheet/util.d.ts +0 -2
- package/dist/types/src/components/GridSheet/util.d.ts.map +1 -1
- package/dist/types/src/components/SheetContainer/SheetContainer.stories.d.ts +2 -0
- package/dist/types/src/components/SheetContainer/SheetContainer.stories.d.ts.map +1 -1
- package/dist/types/src/components/SheetObjectSettings.d.ts +7 -0
- package/dist/types/src/components/SheetObjectSettings.d.ts.map +1 -0
- package/dist/types/src/components/Toolbar/Toolbar.d.ts.map +1 -1
- package/dist/types/src/components/index.d.ts +1 -0
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/defs/sheet-range-types.d.ts.map +1 -1
- package/dist/types/src/defs/types.d.ts +2 -4
- package/dist/types/src/defs/types.d.ts.map +1 -1
- package/dist/types/src/defs/util.d.ts +8 -0
- package/dist/types/src/defs/util.d.ts.map +1 -1
- package/dist/types/src/extensions/editor/extension.d.ts +2 -1
- package/dist/types/src/extensions/editor/extension.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +1 -0
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/integrations/thread-ranges.d.ts.map +1 -1
- package/dist/types/src/model/sheet-model.d.ts +0 -4
- package/dist/types/src/model/sheet-model.d.ts.map +1 -1
- package/dist/types/src/model/testing.d.ts +6 -0
- package/dist/types/src/model/testing.d.ts.map +1 -0
- package/dist/types/src/testing/data.d.ts +3 -0
- package/dist/types/src/testing/data.d.ts.map +1 -0
- package/dist/types/src/testing/index.d.ts +1 -0
- package/dist/types/src/testing/index.d.ts.map +1 -1
- package/dist/types/src/testing/playwright/playwright.config.d.ts +3 -0
- package/dist/types/src/testing/playwright/playwright.config.d.ts.map +1 -0
- package/dist/types/src/testing/playwright/sheet-manager.d.ts +24 -0
- package/dist/types/src/testing/playwright/sheet-manager.d.ts.map +1 -0
- package/dist/types/src/testing/playwright/sheet.spec.d.ts +2 -0
- package/dist/types/src/testing/playwright/sheet.spec.d.ts.map +1 -0
- package/dist/types/src/testing/testing.d.ts +1 -2
- package/dist/types/src/testing/testing.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +61 -0
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types.d.ts +2 -3
- package/dist/types/src/types.d.ts.map +1 -1
- package/package.json +40 -37
- package/src/SheetPlugin.tsx +9 -21
- package/src/components/FunctionEditor/FunctionEditor.tsx +2 -2
- package/src/components/GridSheet/GridSheet.stories.tsx +2 -0
- package/src/components/GridSheet/GridSheet.tsx +18 -8
- package/src/components/GridSheet/util.ts +1 -9
- package/src/components/SheetContainer/SheetContainer.stories.tsx +44 -2
- package/src/components/SheetObjectSettings.tsx +38 -0
- package/src/components/Toolbar/Toolbar.tsx +7 -1
- package/src/components/index.ts +1 -0
- package/src/compute-graph/compute-graph.stories.tsx +1 -1
- package/src/compute-graph/compute-graph.test.ts +1 -1
- package/src/defs/sheet-range-types.ts +3 -0
- package/src/defs/types.ts +3 -1
- package/src/defs/util.ts +32 -1
- package/src/extensions/editor/extension.ts +3 -3
- package/src/index.ts +3 -0
- package/src/integrations/thread-ranges.ts +2 -0
- package/src/model/sheet-model.test.ts +35 -1
- package/src/model/sheet-model.ts +5 -17
- package/src/model/testing.ts +35 -0
- package/src/sanity.test.ts +1 -1
- package/src/testing/data.ts +33 -0
- package/src/testing/index.ts +1 -0
- package/src/testing/playwright/playwright.config.ts +18 -0
- package/src/testing/playwright/sheet-manager.ts +91 -0
- package/src/testing/playwright/sheet.spec.ts +78 -0
- package/src/testing/testing.tsx +1 -31
- package/src/translations.ts +4 -0
- package/src/types.ts +1 -3
- package/dist/lib/browser/SheetContainer-YAMIOFC6.mjs.map +0 -7
- package/dist/lib/browser/chunk-BVUN7SHF.mjs.map +0 -7
- package/dist/lib/browser/chunk-QHQFM7LV.mjs.map +0 -7
- package/dist/lib/browser/chunk-VMSX6Z4X.mjs.map +0 -7
- package/dist/lib/node/SheetContainer-BSDHHYXE.cjs.map +0 -7
- package/dist/lib/node/chunk-AWKOWDMI.cjs.map +0 -7
- package/dist/lib/node/chunk-J5ZFWMOD.cjs.map +0 -7
- package/dist/lib/node/chunk-O7XR4R7Y.cjs.map +0 -7
- package/dist/lib/node-esm/SheetContainer-T47T2NYJ.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-6GSTEN7N.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-CR4K75EL.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-UIBWRHW7.mjs.map +0 -7
- /package/dist/lib/browser/{compute-graph-GGWUX644.mjs.map → compute-graph-SNUS7HOH.mjs.map} +0 -0
- /package/dist/lib/node-esm/{compute-graph-2SCZT7N5.mjs.map → compute-graph-S6CVN7RS.mjs.map} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
SheetType
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-BVS2IQRO.mjs";
|
|
5
5
|
|
|
6
6
|
// packages/plugins/plugin-sheet/src/compute-graph/compute-graph.ts
|
|
7
7
|
import { Event as Event2 } from "@dxos/async";
|
|
@@ -9,7 +9,7 @@ import { Filter as Filter2, fullyQualifiedId } from "@dxos/client/echo";
|
|
|
9
9
|
import { FQ_ID_LENGTH } from "@dxos/client/echo";
|
|
10
10
|
import { Resource as Resource2 } from "@dxos/context";
|
|
11
11
|
import { getTypename } from "@dxos/echo-schema";
|
|
12
|
-
import { invariant as
|
|
12
|
+
import { invariant as invariant3 } from "@dxos/invariant";
|
|
13
13
|
import { PublicKey } from "@dxos/keys";
|
|
14
14
|
import { log as log3 } from "@dxos/log";
|
|
15
15
|
import { FunctionType as FunctionType2 } from "@dxos/plugin-script/types";
|
|
@@ -69,7 +69,7 @@ var posEquals = (a, b) => {
|
|
|
69
69
|
var columnLetter = (col) => {
|
|
70
70
|
invariant(col < MAX_COLUMNS, `Invalid column: ${col}`, {
|
|
71
71
|
F: __dxlog_file,
|
|
72
|
-
L:
|
|
72
|
+
L: 32,
|
|
73
73
|
S: void 0,
|
|
74
74
|
A: [
|
|
75
75
|
"col < MAX_COLUMNS",
|
|
@@ -85,7 +85,7 @@ var addressFromA1Notation = (ref) => {
|
|
|
85
85
|
const match = ref.match(/([A-Z]+)(\d+)/);
|
|
86
86
|
invariant(match, `Invalid notation: ${ref}`, {
|
|
87
87
|
F: __dxlog_file,
|
|
88
|
-
L:
|
|
88
|
+
L: 46,
|
|
89
89
|
S: void 0,
|
|
90
90
|
A: [
|
|
91
91
|
"match",
|
|
@@ -103,6 +103,13 @@ var rangeToA1Notation = (range) => {
|
|
|
103
103
|
range?.to && addressToA1Notation(range?.to)
|
|
104
104
|
].filter(Boolean).join(":");
|
|
105
105
|
};
|
|
106
|
+
var rangeFromA1Notation = (ref) => {
|
|
107
|
+
const [from, to] = ref.split(":").map(addressFromA1Notation);
|
|
108
|
+
return {
|
|
109
|
+
from,
|
|
110
|
+
to
|
|
111
|
+
};
|
|
112
|
+
};
|
|
106
113
|
var inRange = (range, cell) => {
|
|
107
114
|
if (!range) {
|
|
108
115
|
return false;
|
|
@@ -126,7 +133,9 @@ var inRange = (range, cell) => {
|
|
|
126
133
|
|
|
127
134
|
// packages/plugins/plugin-sheet/src/defs/util.ts
|
|
128
135
|
import { randomBytes } from "@dxos/crypto";
|
|
129
|
-
import {
|
|
136
|
+
import { invariant as invariant2 } from "@dxos/invariant";
|
|
137
|
+
import { create } from "@dxos/live-object";
|
|
138
|
+
var __dxlog_file2 = "/home/runner/work/dxos/dxos/packages/plugins/plugin-sheet/src/defs/util.ts";
|
|
130
139
|
var ApiError = class extends Error {
|
|
131
140
|
};
|
|
132
141
|
var ReadonlyException = class extends ApiError {
|
|
@@ -176,6 +185,9 @@ var createSheet = ({ name, cells, ...size } = {}) => {
|
|
|
176
185
|
if (cells) {
|
|
177
186
|
Object.entries(cells).forEach(([key, { value }]) => {
|
|
178
187
|
const idx = addressToIndex(sheet, addressFromA1Notation(key));
|
|
188
|
+
if (isFormula(value)) {
|
|
189
|
+
value = mapFormulaRefsToIndices(sheet, value);
|
|
190
|
+
}
|
|
179
191
|
sheet.cells[idx] = {
|
|
180
192
|
value
|
|
181
193
|
};
|
|
@@ -215,6 +227,34 @@ var compareIndexPositions = (sheet, indexA, indexB) => {
|
|
|
215
227
|
return columnA - columnB;
|
|
216
228
|
}
|
|
217
229
|
};
|
|
230
|
+
var mapFormulaRefsToIndices = (sheet, formula) => {
|
|
231
|
+
invariant2(isFormula(formula), void 0, {
|
|
232
|
+
F: __dxlog_file2,
|
|
233
|
+
L: 153,
|
|
234
|
+
S: void 0,
|
|
235
|
+
A: [
|
|
236
|
+
"isFormula(formula)",
|
|
237
|
+
""
|
|
238
|
+
]
|
|
239
|
+
});
|
|
240
|
+
return formula.replace(/([a-zA-Z]+)([0-9]+)/g, (match) => {
|
|
241
|
+
return addressToIndex(sheet, addressFromA1Notation(match));
|
|
242
|
+
});
|
|
243
|
+
};
|
|
244
|
+
var mapFormulaIndicesToRefs = (sheet, formula) => {
|
|
245
|
+
invariant2(isFormula(formula), void 0, {
|
|
246
|
+
F: __dxlog_file2,
|
|
247
|
+
L: 163,
|
|
248
|
+
S: void 0,
|
|
249
|
+
A: [
|
|
250
|
+
"isFormula(formula)",
|
|
251
|
+
""
|
|
252
|
+
]
|
|
253
|
+
});
|
|
254
|
+
return formula.replace(/([a-zA-Z0-9]+)@([a-zA-Z0-9]+)/g, (idx) => {
|
|
255
|
+
return addressToA1Notation(addressFromIndex(sheet, idx));
|
|
256
|
+
});
|
|
257
|
+
};
|
|
218
258
|
|
|
219
259
|
// packages/plugins/plugin-sheet/src/compute-graph/compute-node.ts
|
|
220
260
|
var ComputeNode = class extends Resource {
|
|
@@ -263,7 +303,7 @@ import defaultsDeep from "lodash.defaultsdeep";
|
|
|
263
303
|
import { debounce } from "@dxos/async";
|
|
264
304
|
import { log } from "@dxos/log";
|
|
265
305
|
import { CellError, ErrorType, EmptyValue, FunctionPlugin } from "#hyperformula";
|
|
266
|
-
var
|
|
306
|
+
var __dxlog_file3 = "/home/runner/work/dxos/dxos/packages/plugins/plugin-sheet/src/compute-graph/functions/async-function.ts";
|
|
267
307
|
var defaultFunctionContextOptions = {
|
|
268
308
|
defaultTtl: 5e3,
|
|
269
309
|
debounceDelay: 200,
|
|
@@ -287,7 +327,7 @@ var FunctionContext = class _FunctionContext {
|
|
|
287
327
|
this._options = defaultsDeep(_options ?? {}, defaultFunctionContextOptions);
|
|
288
328
|
this._onUpdate = debounce((update) => {
|
|
289
329
|
log("update", update, {
|
|
290
|
-
F:
|
|
330
|
+
F: __dxlog_file3,
|
|
291
331
|
L: 86,
|
|
292
332
|
S: this,
|
|
293
333
|
C: (f, a) => f(...a)
|
|
@@ -343,7 +383,7 @@ var FunctionContext = class _FunctionContext {
|
|
|
343
383
|
cell,
|
|
344
384
|
value: value2
|
|
345
385
|
}, {
|
|
346
|
-
F:
|
|
386
|
+
F: __dxlog_file3,
|
|
347
387
|
L: 144,
|
|
348
388
|
S: this,
|
|
349
389
|
C: (f, a) => f(...a)
|
|
@@ -357,7 +397,7 @@ var FunctionContext = class _FunctionContext {
|
|
|
357
397
|
cell,
|
|
358
398
|
err
|
|
359
399
|
}, {
|
|
360
|
-
F:
|
|
400
|
+
F: __dxlog_file3,
|
|
361
401
|
L: 148,
|
|
362
402
|
S: this,
|
|
363
403
|
C: (f, a) => f(...a)
|
|
@@ -377,7 +417,7 @@ var FunctionContext = class _FunctionContext {
|
|
|
377
417
|
args,
|
|
378
418
|
cache: value
|
|
379
419
|
}, {
|
|
380
|
-
F:
|
|
420
|
+
F: __dxlog_file3,
|
|
381
421
|
L: 156,
|
|
382
422
|
S: this,
|
|
383
423
|
C: (f, a) => f(...a)
|
|
@@ -409,7 +449,7 @@ import { getUserFunctionUrlInMetadata } from "@dxos/plugin-script/edge";
|
|
|
409
449
|
import { FunctionType } from "@dxos/plugin-script/types";
|
|
410
450
|
import { nonNullable } from "@dxos/util";
|
|
411
451
|
import { CellError as CellError2, ErrorType as ErrorType2, FunctionArgumentType } from "#hyperformula";
|
|
412
|
-
var
|
|
452
|
+
var __dxlog_file4 = "/home/runner/work/dxos/dxos/packages/plugins/plugin-sheet/src/compute-graph/functions/edge-function.ts";
|
|
413
453
|
var EDGE_FUNCTION_NAME = "DX";
|
|
414
454
|
var FUNCTION_TTL = 1e4;
|
|
415
455
|
var EdgeFunctionPlugin = class extends AsyncFunctionPlugin {
|
|
@@ -426,7 +466,7 @@ var EdgeFunctionPlugin = class extends AsyncFunctionPlugin {
|
|
|
426
466
|
log2.info("Function not found", {
|
|
427
467
|
binding
|
|
428
468
|
}, {
|
|
429
|
-
F:
|
|
469
|
+
F: __dxlog_file4,
|
|
430
470
|
L: 41,
|
|
431
471
|
S: this,
|
|
432
472
|
C: (f, a) => f(...a)
|
|
@@ -438,7 +478,7 @@ var EdgeFunctionPlugin = class extends AsyncFunctionPlugin {
|
|
|
438
478
|
log2("function changed", {
|
|
439
479
|
fn
|
|
440
480
|
}, {
|
|
441
|
-
F:
|
|
481
|
+
F: __dxlog_file4,
|
|
442
482
|
L: 47,
|
|
443
483
|
S: this,
|
|
444
484
|
C: (f, a) => f(...a)
|
|
@@ -464,7 +504,7 @@ var EdgeFunctionPlugin = class extends AsyncFunctionPlugin {
|
|
|
464
504
|
log2("function executed", {
|
|
465
505
|
result
|
|
466
506
|
}, {
|
|
467
|
-
F:
|
|
507
|
+
F: __dxlog_file4,
|
|
468
508
|
L: 65,
|
|
469
509
|
S: this,
|
|
470
510
|
C: (f, a) => f(...a)
|
|
@@ -2905,7 +2945,7 @@ var defaultFunctions = [
|
|
|
2905
2945
|
];
|
|
2906
2946
|
|
|
2907
2947
|
// packages/plugins/plugin-sheet/src/compute-graph/compute-graph.ts
|
|
2908
|
-
var
|
|
2948
|
+
var __dxlog_file5 = "/home/runner/work/dxos/dxos/packages/plugins/plugin-sheet/src/compute-graph/compute-graph.ts";
|
|
2909
2949
|
var UNKNOWN_BINDING = "__UNKNOWN__";
|
|
2910
2950
|
var createSheetName = ({ type, id }) => `${type}@${id}`;
|
|
2911
2951
|
var parseSheetName = (name) => {
|
|
@@ -2982,8 +3022,8 @@ var ComputeGraph = class extends Resource2 {
|
|
|
2982
3022
|
// E.g., Cross-object reference would be stored as "ObjectId!A1"
|
|
2983
3023
|
// The graph would then load the object and create a ComputeNode (model) of the appropriate type.
|
|
2984
3024
|
getOrCreateNode(name) {
|
|
2985
|
-
|
|
2986
|
-
F:
|
|
3025
|
+
invariant3(name.length, void 0, {
|
|
3026
|
+
F: __dxlog_file5,
|
|
2987
3027
|
L: 129,
|
|
2988
3028
|
S: this,
|
|
2989
3029
|
A: [
|
|
@@ -2996,7 +3036,7 @@ var ComputeGraph = class extends Resource2 {
|
|
|
2996
3036
|
space: this._space?.id,
|
|
2997
3037
|
sheet: name
|
|
2998
3038
|
}, {
|
|
2999
|
-
F:
|
|
3039
|
+
F: __dxlog_file5,
|
|
3000
3040
|
L: 131,
|
|
3001
3041
|
S: this,
|
|
3002
3042
|
C: (f, a) => f(...a)
|
|
@@ -3004,8 +3044,8 @@ var ComputeGraph = class extends Resource2 {
|
|
|
3004
3044
|
this._hf.addSheet(name);
|
|
3005
3045
|
}
|
|
3006
3046
|
const sheetId = this._hf.getSheetId(name);
|
|
3007
|
-
|
|
3008
|
-
F:
|
|
3047
|
+
invariant3(sheetId !== void 0, void 0, {
|
|
3048
|
+
F: __dxlog_file5,
|
|
3009
3049
|
L: 136,
|
|
3010
3050
|
S: this,
|
|
3011
3051
|
A: [
|
|
@@ -3114,10 +3154,10 @@ var ComputeGraph = class extends Resource2 {
|
|
|
3114
3154
|
// packages/plugins/plugin-sheet/src/compute-graph/compute-graph-registry.ts
|
|
3115
3155
|
import defaultsDeep2 from "lodash.defaultsdeep";
|
|
3116
3156
|
import { Resource as Resource3 } from "@dxos/context";
|
|
3117
|
-
import { invariant as
|
|
3157
|
+
import { invariant as invariant4 } from "@dxos/invariant";
|
|
3118
3158
|
import { log as log4 } from "@dxos/log";
|
|
3119
3159
|
import { HyperFormula } from "#hyperformula";
|
|
3120
|
-
var
|
|
3160
|
+
var __dxlog_file6 = "/home/runner/work/dxos/dxos/packages/plugins/plugin-sheet/src/compute-graph/compute-graph-registry.ts";
|
|
3121
3161
|
var defaultOptions = {
|
|
3122
3162
|
licenseKey: "gpl-v3"
|
|
3123
3163
|
};
|
|
@@ -3147,7 +3187,7 @@ var ComputeGraphRegistry = class extends Resource3 {
|
|
|
3147
3187
|
log4("create graph", {
|
|
3148
3188
|
space: space.id
|
|
3149
3189
|
}, {
|
|
3150
|
-
F:
|
|
3190
|
+
F: __dxlog_file6,
|
|
3151
3191
|
L: 69,
|
|
3152
3192
|
S: this,
|
|
3153
3193
|
C: (f, a) => f(...a)
|
|
@@ -3157,8 +3197,8 @@ var ComputeGraphRegistry = class extends Resource3 {
|
|
|
3157
3197
|
return graph;
|
|
3158
3198
|
}
|
|
3159
3199
|
createGraph(space) {
|
|
3160
|
-
|
|
3161
|
-
F:
|
|
3200
|
+
invariant4(!this._graphs.has(space.id), `ComputeGraph already exists for space: ${space.id}`, {
|
|
3201
|
+
F: __dxlog_file6,
|
|
3162
3202
|
L: 77,
|
|
3163
3203
|
S: this,
|
|
3164
3204
|
A: [
|
|
@@ -3181,6 +3221,7 @@ var ComputeGraphRegistry = class extends Resource3 {
|
|
|
3181
3221
|
|
|
3182
3222
|
export {
|
|
3183
3223
|
alignKey,
|
|
3224
|
+
commentKey,
|
|
3184
3225
|
styleKey,
|
|
3185
3226
|
cellClassNameForRange,
|
|
3186
3227
|
DEFAULT_ROWS,
|
|
@@ -3189,11 +3230,18 @@ export {
|
|
|
3189
3230
|
MAX_COLUMNS,
|
|
3190
3231
|
RANGE_NOTATION,
|
|
3191
3232
|
isFormula,
|
|
3233
|
+
posEquals,
|
|
3234
|
+
columnLetter,
|
|
3192
3235
|
addressToA1Notation,
|
|
3193
3236
|
addressFromA1Notation,
|
|
3194
3237
|
rangeToA1Notation,
|
|
3238
|
+
rangeFromA1Notation,
|
|
3195
3239
|
inRange,
|
|
3240
|
+
ApiError,
|
|
3196
3241
|
ReadonlyException,
|
|
3242
|
+
RangeException,
|
|
3243
|
+
createIndex,
|
|
3244
|
+
createIndices,
|
|
3197
3245
|
insertIndices,
|
|
3198
3246
|
initialize,
|
|
3199
3247
|
createSheet,
|
|
@@ -3202,6 +3250,8 @@ export {
|
|
|
3202
3250
|
rangeToIndex,
|
|
3203
3251
|
rangeFromIndex,
|
|
3204
3252
|
compareIndexPositions,
|
|
3253
|
+
mapFormulaRefsToIndices,
|
|
3254
|
+
mapFormulaIndicesToRefs,
|
|
3205
3255
|
ComputeNode,
|
|
3206
3256
|
defaultFunctionContextOptions,
|
|
3207
3257
|
FunctionContext,
|
|
@@ -3217,4 +3267,4 @@ export {
|
|
|
3217
3267
|
defaultPlugins,
|
|
3218
3268
|
ComputeGraphRegistry
|
|
3219
3269
|
};
|
|
3220
|
-
//# sourceMappingURL=chunk-
|
|
3270
|
+
//# sourceMappingURL=chunk-6JF2AHKO.mjs.map
|