@gridsheet/react-core 3.0.0-rc.2 → 3.0.0-rc.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. package/dist/components/Cell.d.ts.map +1 -1
  2. package/dist/components/ColumnMenu.d.ts.map +1 -1
  3. package/dist/components/ColumnMenuFilterSection.d.ts +5 -0
  4. package/dist/components/ColumnMenuFilterSection.d.ts.map +1 -0
  5. package/dist/components/ColumnMenuLabelSection.d.ts +5 -0
  6. package/dist/components/ColumnMenuLabelSection.d.ts.map +1 -0
  7. package/dist/components/ColumnMenuSortSection.d.ts +5 -0
  8. package/dist/components/ColumnMenuSortSection.d.ts.map +1 -0
  9. package/dist/components/ContextMenu.d.ts +0 -19
  10. package/dist/components/ContextMenu.d.ts.map +1 -1
  11. package/dist/components/Editor.d.ts.map +1 -1
  12. package/dist/components/EditorOptions.d.ts.map +1 -1
  13. package/dist/components/FormulaBar.d.ts.map +1 -1
  14. package/dist/components/FunctionGuide.d.ts.map +1 -1
  15. package/dist/components/GridSheet.d.ts +6 -4
  16. package/dist/components/GridSheet.d.ts.map +1 -1
  17. package/dist/components/HeaderCellLeft.d.ts.map +1 -1
  18. package/dist/components/HeaderCellTop.d.ts.map +1 -1
  19. package/dist/components/MenuItem.d.ts +18 -0
  20. package/dist/components/MenuItem.d.ts.map +1 -0
  21. package/dist/components/PluginBase.d.ts +2 -2
  22. package/dist/components/PluginBase.d.ts.map +1 -1
  23. package/dist/components/RowMenu.d.ts.map +1 -1
  24. package/dist/components/StoreObserver.d.ts +7 -4
  25. package/dist/components/StoreObserver.d.ts.map +1 -1
  26. package/dist/components/Tabular.d.ts.map +1 -1
  27. package/dist/constants.d.ts +3 -0
  28. package/dist/constants.d.ts.map +1 -1
  29. package/dist/formula/evaluator.d.ts +28 -25
  30. package/dist/formula/evaluator.d.ts.map +1 -1
  31. package/dist/formula/formula-error.d.ts +1 -1
  32. package/dist/formula/formula-error.d.ts.map +1 -1
  33. package/dist/formula/functions/__async.d.ts +9 -9
  34. package/dist/formula/functions/__async.d.ts.map +1 -1
  35. package/dist/formula/functions/__base.d.ts +14 -21
  36. package/dist/formula/functions/__base.d.ts.map +1 -1
  37. package/dist/formula/functions/__utils.d.ts +2 -2
  38. package/dist/formula/functions/__utils.d.ts.map +1 -1
  39. package/dist/formula/functions/add.d.ts.map +1 -1
  40. package/dist/formula/functions/minus.d.ts +0 -1
  41. package/dist/formula/functions/minus.d.ts.map +1 -1
  42. package/dist/formula/solver.d.ts +25 -14
  43. package/dist/formula/solver.d.ts.map +1 -1
  44. package/dist/index.d.ts +16 -13
  45. package/dist/index.d.ts.map +1 -1
  46. package/dist/index.js +4487 -4524
  47. package/dist/index.js.map +1 -1
  48. package/dist/lib/autofill.d.ts +3 -3
  49. package/dist/lib/autofill.d.ts.map +1 -1
  50. package/dist/lib/{hub.d.ts → book.d.ts} +28 -27
  51. package/dist/lib/book.d.ts.map +1 -0
  52. package/dist/lib/cell.d.ts +6 -4
  53. package/dist/lib/cell.d.ts.map +1 -1
  54. package/dist/lib/clipboard.d.ts +7 -7
  55. package/dist/lib/coords.d.ts +13 -1
  56. package/dist/lib/coords.d.ts.map +1 -1
  57. package/dist/lib/dom.d.ts +5 -0
  58. package/dist/lib/dom.d.ts.map +1 -1
  59. package/dist/lib/input.d.ts +2 -2
  60. package/dist/lib/label.d.ts +4 -0
  61. package/dist/lib/label.d.ts.map +1 -0
  62. package/dist/lib/menu.d.ts +99 -0
  63. package/dist/lib/menu.d.ts.map +1 -0
  64. package/dist/lib/popup.d.ts +24 -0
  65. package/dist/lib/popup.d.ts.map +1 -0
  66. package/dist/lib/reference.d.ts +10 -4
  67. package/dist/lib/reference.d.ts.map +1 -1
  68. package/dist/lib/sheet.d.ts +507 -2
  69. package/dist/lib/sheet.d.ts.map +1 -1
  70. package/dist/lib/sheet_utils.d.ts +55 -0
  71. package/dist/lib/sheet_utils.d.ts.map +1 -0
  72. package/dist/lib/spatial.d.ts +5 -20
  73. package/dist/lib/spatial.d.ts.map +1 -1
  74. package/dist/lib/virtualization.d.ts +4 -4
  75. package/dist/policy/core.d.ts +13 -13
  76. package/dist/policy/core.d.ts.map +1 -1
  77. package/dist/sentinels.d.ts +3 -2
  78. package/dist/sentinels.d.ts.map +1 -1
  79. package/dist/store/actions.d.ts +3 -3
  80. package/dist/store/actions.d.ts.map +1 -1
  81. package/dist/store/dispatchers.d.ts +38 -34
  82. package/dist/store/dispatchers.d.ts.map +1 -1
  83. package/dist/store/helpers.d.ts +10 -5
  84. package/dist/store/helpers.d.ts.map +1 -1
  85. package/dist/styles/minified.d.ts +2 -2
  86. package/dist/styles/minified.d.ts.map +1 -1
  87. package/dist/types.d.ts +51 -35
  88. package/dist/types.d.ts.map +1 -1
  89. package/package.json +1 -1
  90. package/dist/lib/hub.d.ts.map +0 -1
  91. package/dist/lib/table.d.ts +0 -484
  92. package/dist/lib/table.d.ts.map +0 -1
@@ -1,3 +1,508 @@
1
- export declare const escapeSheetName: (name: string) => string;
2
- export declare const getSheetPrefix: (name?: string) => string;
1
+ import { Id, AreaType, CellsByAddressType, PointType, Address, CellFilter, MatrixType, CellType, FilterConfig, HistoryType, StorePatchType, ShapeType, RectType, OperatorType, OperationType, RawCellType, StoreType, Resolution, System } from '../types';
2
+ import { FunctionMapping } from '../formula/functions/__base';
3
+ import { ProcessFormulaProps } from '../formula/evaluator';
4
+ import { SolveOptions } from '../formula/solver';
5
+ import { Registry } from './book';
6
+ import { PolicyType, RenderProps } from '../policy/core';
7
+ type CellField = keyof CellType;
8
+ export type SheetLimits = {
9
+ minRows?: number;
10
+ maxRows?: number;
11
+ minCols?: number;
12
+ maxCols?: number;
13
+ };
14
+ type Props = {
15
+ limits?: SheetLimits;
16
+ functions?: FunctionMapping;
17
+ name?: string;
18
+ registry?: Registry;
19
+ };
20
+ type MoveProps = {
21
+ srcSheet?: UserSheet;
22
+ src: AreaType;
23
+ dst: AreaType;
24
+ operator?: OperatorType;
25
+ undoReflection?: StorePatchType;
26
+ redoReflection?: StorePatchType;
27
+ historicize?: boolean;
28
+ };
29
+ export interface UserSheet {
30
+ changedTime: number;
31
+ lastChangedTime?: number;
32
+ area: AreaType;
33
+ top: number;
34
+ left: number;
35
+ bottom: number;
36
+ right: number;
37
+ minNumRows: number;
38
+ maxNumRows: number;
39
+ minNumCols: number;
40
+ maxNumCols: number;
41
+ headerWidth: number;
42
+ headerHeight: number;
43
+ name: string;
44
+ /**
45
+ * Returns the raw sheet object, which is used for internal operations.
46
+ * This is not intended for public use and may change in future versions.
47
+ */
48
+ __raw__: Sheet;
49
+ getRectSize(area: AreaType): RectType;
50
+ getCell(point: PointType, options?: {
51
+ resolution?: Resolution;
52
+ raise?: boolean;
53
+ }): CellType | undefined;
54
+ getPolicy(point: PointType): PolicyType;
55
+ get numRows(): number;
56
+ get numCols(): number;
57
+ get shape(): ShapeType;
58
+ move(args: MoveProps): UserSheet;
59
+ copy(args: MoveProps & {
60
+ onlyValue?: boolean;
61
+ }): UserSheet;
62
+ update(args: {
63
+ diff: CellsByAddressType;
64
+ historicize?: boolean;
65
+ partial?: boolean;
66
+ updateChangedTime?: boolean;
67
+ reflection?: StorePatchType;
68
+ }): UserSheet;
69
+ writeMatrix(args: {
70
+ point: PointType;
71
+ matrix: MatrixType<string>;
72
+ updateChangedTime?: boolean;
73
+ reflection?: StorePatchType;
74
+ }): UserSheet;
75
+ write(args: {
76
+ point: PointType;
77
+ value: string;
78
+ updateChangedTime?: boolean;
79
+ reflection?: StorePatchType;
80
+ }): UserSheet;
81
+ insertRows(args: {
82
+ y: number;
83
+ numRows: number;
84
+ baseY: number;
85
+ diff?: CellsByAddressType;
86
+ partial?: boolean;
87
+ updateChangedTime?: boolean;
88
+ reflection?: StorePatchType;
89
+ }): UserSheet;
90
+ removeRows(args: {
91
+ y: number;
92
+ numRows: number;
93
+ reflection?: StorePatchType;
94
+ }): UserSheet;
95
+ insertCols(args: {
96
+ x: number;
97
+ numCols: number;
98
+ baseX: number;
99
+ diff?: CellsByAddressType;
100
+ partial?: boolean;
101
+ updateChangedTime?: boolean;
102
+ reflection?: StorePatchType;
103
+ }): UserSheet;
104
+ removeCols(args: {
105
+ x: number;
106
+ numCols: number;
107
+ reflection?: StorePatchType;
108
+ }): UserSheet;
109
+ undo(): {
110
+ history: HistoryType | null;
111
+ };
112
+ redo(): {
113
+ history: HistoryType | null;
114
+ };
115
+ histories(): HistoryType[];
116
+ historyIndex(): number;
117
+ historySize(): number;
118
+ setHeaderHeight(height: number, historicize?: boolean): UserSheet;
119
+ setHeaderWidth(width: number, historicize?: boolean): UserSheet;
120
+ sortRows(args: {
121
+ x: number;
122
+ direction: 'asc' | 'desc';
123
+ }): UserSheet;
124
+ filterRows(args?: {
125
+ x?: number;
126
+ filter?: FilterConfig;
127
+ }): UserSheet;
128
+ isRowFiltered(y: number): boolean;
129
+ hasActiveFilters(): boolean;
130
+ hasPendingCells(): boolean;
131
+ waitForPending(): Promise<void>;
132
+ getLastChangedAddresses(): Address[];
133
+ getSerializedValue(props: {
134
+ point: PointType;
135
+ cell?: CellType;
136
+ resolution?: Resolution;
137
+ }): string;
138
+ }
139
+ type InternalToValueMatrixProps = {
140
+ area?: AreaType;
141
+ resolution?: Resolution;
142
+ raise?: boolean;
143
+ filter?: CellFilter;
144
+ asScalar?: boolean;
145
+ at?: Id;
146
+ };
147
+ export declare class Sheet implements UserSheet {
148
+ /** @internal */
149
+ __gsType: string;
150
+ changedTime: number;
151
+ lastChangedTime?: number;
152
+ area: AreaType;
153
+ /** @internal */
154
+ private _limits;
155
+ get minNumRows(): number;
156
+ get maxNumRows(): number;
157
+ get minNumCols(): number;
158
+ get maxNumCols(): number;
159
+ /** @internal */
160
+ id: number;
161
+ name: string;
162
+ /** @internal */
163
+ prevName: string;
164
+ /** @internal */
165
+ status: 0 | 1 | 2;
166
+ /** @internal */
167
+ registry: Registry;
168
+ /** @internal */
169
+ idsToBeIdentified: Id[];
170
+ /** @internal */
171
+ totalWidth: number;
172
+ /** @internal */
173
+ totalHeight: number;
174
+ /** @internal */
175
+ fullHeight: number;
176
+ /** @internal */
177
+ defaultColWidth: number;
178
+ /** @internal */
179
+ defaultRowHeight: number;
180
+ /** @internal */
181
+ private version;
182
+ /** @internal */
183
+ private idMatrix;
184
+ /** @internal */
185
+ private addressCaches;
186
+ /** @internal */
187
+ private lastChangedAddresses;
188
+ constructor({ limits, name, registry }: Props);
189
+ static is(obj: any): obj is Sheet;
190
+ toString(): string;
191
+ get headerHeight(): number;
192
+ setHeaderHeight(height: number, historicize?: boolean): Sheet;
193
+ get headerWidth(): number;
194
+ setHeaderWidth(width: number, historicize?: boolean): Sheet;
195
+ /**
196
+ * Get the raw (mutable) cell data for a point. Unlike getCell, this returns the actual registry.data reference.
197
+ * @internal
198
+ */
199
+ private _pointToRawCell;
200
+ isRowFiltered(y: number): boolean;
201
+ hasActiveFilters(): boolean;
202
+ /**
203
+ * Returns true if any data cell in this sheet currently holds a Pending value
204
+ * (i.e. an async formula that hasn't resolved yet).
205
+ */
206
+ hasPendingCells(): boolean;
207
+ /**
208
+ * Returns a Promise that resolves when all in-flight async formula computations
209
+ * have completed and no data cells hold Pending values.
210
+ * If nothing is pending, resolves immediately.
211
+ * Useful for waiting before sort/filter so that cell values are fully resolved.
212
+ */
213
+ waitForPending(): Promise<void>;
214
+ /**
215
+ * Returns the addresses that were changed in the most recent `_update()` call.
216
+ * Useful inside `onChange` to know which cells were modified.
217
+ */
218
+ getLastChangedAddresses(): Address[];
219
+ /**
220
+ * Capture the full cell state of all filter-related header cells as a CellsByIdType snapshot.
221
+ * @internal
222
+ */
223
+ private _captureFilterCellStates;
224
+ filterRows({ x, filter, }?: {
225
+ x?: number;
226
+ filter?: FilterConfig;
227
+ }): Sheet;
228
+ /** @internal */
229
+ private _reapplyFilters;
230
+ sortRows({ x, direction }: {
231
+ x: number;
232
+ direction: 'asc' | 'desc';
233
+ }): Sheet;
234
+ /** @internal */
235
+ private _sortRowMapping;
236
+ get isInitialized(): boolean;
237
+ get policies(): {
238
+ [policyName: string]: import('../policy/core').Policy | null;
239
+ };
240
+ /** @internal */
241
+ getSystem(point: PointType): System | undefined;
242
+ /** @internal */
243
+ processFormula(value: any, { idMap, ...props }: ProcessFormulaProps): any;
244
+ /** @internal */
245
+ resolveFormulas(): void;
246
+ /** @internal */
247
+ getSheetBySheetName(sheetName: string): Sheet | null;
248
+ /** @internal */
249
+ getSheetBySheetId(sheetId: number): Sheet | null;
250
+ /** @internal */
251
+ private static _stack;
252
+ /** @internal */
253
+ initialize(cells: CellsByAddressType): void;
254
+ /** @internal */
255
+ private _incrementVersion;
256
+ /** @internal */
257
+ private _xsheetDispatch;
258
+ /** @internal */
259
+ private _generateId;
260
+ getRectSize({ top, left, bottom, right }: AreaType): RectType;
261
+ /** @internal */
262
+ setTotalSize(): void;
263
+ /** @internal */
264
+ refresh(relocate?: boolean, resize?: boolean): Sheet;
265
+ /** @internal */
266
+ clone(relocate?: boolean): Sheet;
267
+ /** @internal */
268
+ getPointById(id: Id, slideY?: number, slideX?: number): PointType & {
269
+ absCol: boolean;
270
+ absRow: boolean;
271
+ };
272
+ /** @internal */
273
+ getAddressById(id: Id, slideY?: number, slideX?: number): string | undefined;
274
+ /** @internal */
275
+ clearAddressCaches(): void;
276
+ /** @internal */
277
+ private _warmAddressCaches;
278
+ /** @internal */
279
+ getId(point: PointType): string;
280
+ /** @internal */
281
+ getCell(point: PointType, { resolution, raise }?: SolveOptions): CellType | undefined;
282
+ /** @internal */
283
+ get numRows(): number;
284
+ get numCols(): number;
285
+ get top(): number;
286
+ get left(): number;
287
+ get bottom(): number;
288
+ get right(): number;
289
+ /** @internal */
290
+ _toValueMatrix({ area, at, resolution, raise, filter, asScalar, }?: InternalToValueMatrixProps): any[][];
291
+ /** @internal */
292
+ private _pushHistory;
293
+ /** @internal */
294
+ private _cleanObsolete;
295
+ /** @internal */
296
+ private _cleanStrayed;
297
+ /**
298
+ * Remove an id from registry.data and registry.dependents entirely.
299
+ * @internal
300
+ */
301
+ private _deleteOrphanedId;
302
+ /** @internal */
303
+ private _copyCellLayout;
304
+ move({ srcSheet, src, dst, historicize, operator, undoReflection, redoReflection, }: MoveProps): Sheet;
305
+ /**
306
+ * Build MoveRelations from src area to dst area, skipping filtered rows.
307
+ *
308
+ * Layout of the returned array (processed in this order by _moveCells):
309
+ * 1. Entries where [0] is a newly-generated ID — these fill the vacated src cells (processed last in forward order)
310
+ * 2. Entries where [0] is a src address and [1] is a dst address — the actual moves (processed first in forward order, descending)
311
+ * Entries whose [1] is an existing ID mean the destination cell is displaced/overflowed and
312
+ * is no longer addressable; on forward pass they are skipped; on reverse pass the ID is written back.
313
+ */
314
+ /** @internal */
315
+ private _createMoveRelations;
316
+ get defaultPolicy(): PolicyType;
317
+ /**
318
+ * Apply (or reverse) a MoveRelations list.
319
+ *
320
+ * Forward (reverse=false): process descending — actual ID moves happen bottom-up so
321
+ * earlier entries don't clobber later ones; vacate entries (at front of array) are
322
+ * applied last.
323
+ * Reverse (reverse=true): process ascending — restores IDs in the natural order.
324
+ *
325
+ * On forward pass: applies policy, collects diffBefore, runs ReferencePreserver.
326
+ * On reverse pass: only moves IDs (caller is responsible for applyDiff(diffBefore)).
327
+ */
328
+ /** @internal */
329
+ private _moveCells;
330
+ copy({ srcSheet, src, dst, onlyValue, operator, undoReflection, redoReflection, }: MoveProps & {
331
+ onlyValue?: boolean;
332
+ }): Sheet;
333
+ getPolicy(point: PointType): PolicyType;
334
+ /** @internal */
335
+ private _update;
336
+ update({ diff, partial, updateChangedTime, historicize, operator, operation: op, ignoreFields, undoReflection, redoReflection, }: {
337
+ diff: CellsByAddressType;
338
+ partial?: boolean;
339
+ updateChangedTime?: boolean;
340
+ historicize?: boolean;
341
+ operator?: OperatorType;
342
+ operation?: OperationType;
343
+ ignoreFields?: CellField[];
344
+ undoReflection?: StorePatchType;
345
+ redoReflection?: StorePatchType;
346
+ }): Sheet;
347
+ /** @internal */
348
+ writeRawCellMatrix({ point, matrix, updateChangedTime, historicize, onlyValue, operator, undoReflection, redoReflection, }: {
349
+ point: PointType;
350
+ matrix: MatrixType<RawCellType>;
351
+ updateChangedTime?: boolean;
352
+ historicize?: boolean;
353
+ onlyValue?: boolean;
354
+ operator?: OperatorType;
355
+ undoReflection?: StorePatchType;
356
+ redoReflection?: StorePatchType;
357
+ }): Sheet;
358
+ writeMatrix(props: {
359
+ point: PointType;
360
+ matrix: MatrixType<string>;
361
+ updateChangedTime?: boolean;
362
+ historicize?: boolean;
363
+ operator?: OperatorType;
364
+ undoReflection?: StorePatchType;
365
+ redoReflection?: StorePatchType;
366
+ }): Sheet;
367
+ write(props: {
368
+ point: PointType;
369
+ value: string;
370
+ updateChangedTime?: boolean;
371
+ historicize?: boolean;
372
+ operator?: OperatorType;
373
+ undoReflection?: StorePatchType;
374
+ redoReflection?: StorePatchType;
375
+ }): Sheet;
376
+ insertRows({ y, numRows, baseY, diff, partial, updateChangedTime, operator, undoReflection, redoReflection, }: {
377
+ y: number;
378
+ numRows: number;
379
+ baseY: number;
380
+ diff?: CellsByAddressType;
381
+ partial?: boolean;
382
+ updateChangedTime?: boolean;
383
+ operator?: OperatorType;
384
+ undoReflection?: StorePatchType;
385
+ redoReflection?: StorePatchType;
386
+ }): Sheet;
387
+ removeRows({ y, numRows, operator, undoReflection, redoReflection, }: {
388
+ y: number;
389
+ numRows: number;
390
+ operator?: OperatorType;
391
+ undoReflection?: StorePatchType;
392
+ redoReflection?: StorePatchType;
393
+ }): Sheet;
394
+ insertCols({ x, numCols, baseX, diff, partial, updateChangedTime, operator, undoReflection, redoReflection, }: {
395
+ x: number;
396
+ numCols: number;
397
+ baseX: number;
398
+ diff?: CellsByAddressType;
399
+ partial?: boolean;
400
+ updateChangedTime?: boolean;
401
+ operator?: OperatorType;
402
+ undoReflection?: StorePatchType;
403
+ redoReflection?: StorePatchType;
404
+ }): Sheet;
405
+ removeCols({ x, numCols, operator, undoReflection, redoReflection, }: {
406
+ x: number;
407
+ numCols: number;
408
+ operator?: OperatorType;
409
+ undoReflection?: StorePatchType;
410
+ redoReflection?: StorePatchType;
411
+ }): Sheet;
412
+ /** @internal */
413
+ histories(): HistoryType[];
414
+ /** @internal */
415
+ historyIndex(): number;
416
+ /** @internal */
417
+ historySize(): number;
418
+ /** @internal */
419
+ getHistoryLimit(): number;
420
+ /** @internal */
421
+ parse(point: PointType, value: any): CellType;
422
+ /** @internal */
423
+ render(props: RenderProps): any;
424
+ getSerializedValue({ point, cell, resolution, }: {
425
+ point: PointType;
426
+ cell?: CellType;
427
+ resolution?: Resolution;
428
+ }): string;
429
+ /** @internal */
430
+ trim(area: AreaType): Sheet;
431
+ /**
432
+ * Solve all formulas in this sheet and return a 2D matrix of resolved values.
433
+ * @internal
434
+ */
435
+ solve({ raise, at }: {
436
+ raise?: boolean;
437
+ at: Id;
438
+ }): any[][];
439
+ /**
440
+ * Collapse this sheet to a scalar (top-left cell value).
441
+ * @internal
442
+ */
443
+ strip({ raise, at }: {
444
+ raise?: boolean;
445
+ at?: Id;
446
+ }): any;
447
+ /** @internal */
448
+ private _applyDiff;
449
+ undo(): {
450
+ history: null;
451
+ newSheet: Sheet;
452
+ callback?: undefined;
453
+ } | {
454
+ history: HistoryType;
455
+ callback: ({ sheetReactive: sheetRef }: StoreType) => void;
456
+ newSheet?: undefined;
457
+ };
458
+ redo(): {
459
+ history: null;
460
+ newSheet: Sheet;
461
+ callback?: undefined;
462
+ } | {
463
+ history: HistoryType;
464
+ callback: ({ sheetReactive: sheetRef }: StoreType) => void;
465
+ newSheet?: undefined;
466
+ };
467
+ /** @internal */
468
+ getFunctionByName(name: string): typeof import('../formula/functions/__base').BaseFunction;
469
+ /** @internal */
470
+ clearDependencies(id: Id): void;
471
+ /** @internal */
472
+ addDependency(id: Id, dependency: Id): void;
473
+ /** @internal */
474
+ getSolvedCache(point: PointType): [boolean, any];
475
+ /** @internal */
476
+ setSolvingCache(point: PointType): void;
477
+ /** @internal */
478
+ finishSolvedCache(point: PointType, value: any): void;
479
+ /** @internal */
480
+ clearSolvedCaches(): void;
481
+ /**
482
+ * Spill a 2D matrix of values starting from the origin cell.
483
+ * The origin cell receives matrix[0][0] and adjacent cells receive spill values in solvedCaches.
484
+ * For a 1×1 matrix, no spill occurs — the single value is cached directly.
485
+ * Throws FormulaError('#REF!') if the spill range is obstructed.
486
+ *
487
+ * @param origin The anchor cell that produced the spill.
488
+ * @param matrix The 2D array of resolved scalar values.
489
+ * @returns The top-left value (matrix[0][0]).
490
+ * @internal
491
+ */
492
+ spill(origin: PointType, matrix: any[][]): any;
493
+ /** @internal */
494
+ sheetPrefix(omit?: boolean): string;
495
+ /** @internal */
496
+ rangeToArea(range: string): {
497
+ top: number;
498
+ left: number;
499
+ bottom: number;
500
+ right: number;
501
+ };
502
+ get __raw__(): Sheet;
503
+ get shape(): ShapeType;
504
+ get hasSingleCell(): boolean;
505
+ get currentVersion(): number;
506
+ }
507
+ export {};
3
508
  //# sourceMappingURL=sheet.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sheet.d.ts","sourceRoot":"","sources":["../../src/lib/sheet.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,GAAI,MAAM,MAAM,KAAG,MAG9C,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,OAAO,MAAM,KAAG,MAK9C,CAAC"}
1
+ {"version":3,"file":"sheet.d.ts","sourceRoot":"","sources":["../../src/lib/sheet.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,EAAE,EAGF,QAAQ,EAER,kBAAkB,EAClB,SAAS,EACT,OAAO,EACP,UAAU,EACV,UAAU,EACV,QAAQ,EACR,YAAY,EACZ,WAAW,EAEX,cAAc,EACd,SAAS,EACT,QAAQ,EACR,YAAY,EACZ,aAAa,EACb,WAAW,EAEX,SAAS,EACT,UAAU,EAIV,MAAM,EACP,MAAM,UAAU,CAAC;AAGlB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,EAAS,mBAAmB,EAAE,MAAM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MAAM;;;;;;IAyBhC,IAAI,OAAO,IAAI,KAAK,CAEnB;IAED,IAAI,KAAK,cAER;IACD,IAAI,aAAa,YAGhB;IACD,IAAI,cAAc,WAEjB;CACF"}
@@ -0,0 +1,55 @@
1
+ import { Address, AreaType, CellsByAddressType, CellType, CellFilter, Resolution } from '../types';
2
+ import { UserSheet } from './sheet';
3
+ import { SolveOptions } from '../formula/solver';
4
+ type CellField = keyof CellType;
5
+ type ToProps = {
6
+ resolution?: Resolution;
7
+ raise?: boolean;
8
+ filter?: CellFilter;
9
+ asScalar?: boolean;
10
+ };
11
+ type ToCellProps = ToProps & {
12
+ ignoreFields?: CellField[];
13
+ };
14
+ /**
15
+ * @internal — used by Sheet._toValueMatrix and solver.ts; keeps resolution for internal wiring.
16
+ */
17
+ export type ToValueMatrixProps = ToProps & {
18
+ area?: AreaType;
19
+ };
20
+ export type ToCellMatrixProps = ToCellProps & {
21
+ area?: AreaType;
22
+ };
23
+ export type ToValueObjectProps = ToProps & {
24
+ addresses?: Address[];
25
+ };
26
+ export type ToCellObjectProps = ToCellProps & {
27
+ addresses?: Address[];
28
+ };
29
+ export type ToValueRowsProps = ToProps & {
30
+ rows?: number[];
31
+ };
32
+ export type ToCellRowsProps = ToCellProps & {
33
+ rows?: number[];
34
+ };
35
+ export type ToValueColsProps = ToProps & {
36
+ cols?: (number | string)[];
37
+ };
38
+ export type ToCellColsProps = ToCellProps & {
39
+ cols?: (number | string)[];
40
+ };
41
+ export declare const getCellByAddress: (sheet: UserSheet, address: Address, options?: SolveOptions) => CellType | undefined;
42
+ export declare const toValueMatrix: (sheet: UserSheet, { area, resolution, raise, filter, asScalar }?: ToValueMatrixProps) => any[][];
43
+ export declare const toValueObject: (sheet: UserSheet, { resolution, raise, filter, addresses, asScalar }?: ToValueObjectProps) => {
44
+ [address: Address]: any;
45
+ };
46
+ export declare const toValueRows: (sheet: UserSheet, { resolution, raise, filter, rows, asScalar }?: ToValueRowsProps) => CellsByAddressType[];
47
+ export declare const toValueCols: (sheet: UserSheet, { resolution, raise, filter, cols, asScalar }?: ToValueColsProps) => CellsByAddressType[];
48
+ export declare const toCellMatrix: (sheet: UserSheet, { area, resolution, raise, filter, ignoreFields }?: ToCellMatrixProps) => (CellType | null)[][];
49
+ export declare const toCellObject: (sheet: UserSheet, { resolution, raise, filter, addresses, ignoreFields }?: ToCellObjectProps) => CellsByAddressType;
50
+ export declare const toCellRows: (sheet: UserSheet, { resolution, raise, filter, rows, ignoreFields }?: ToCellRowsProps) => CellsByAddressType[];
51
+ export declare const escapeSheetName: (name: string) => string;
52
+ export declare const toSheetPrefix: (name?: string) => string;
53
+ export declare const toCellCols: (sheet: UserSheet, { resolution, raise, filter, cols, ignoreFields }?: ToCellColsProps) => CellsByAddressType[];
54
+ export {};
55
+ //# sourceMappingURL=sheet_utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sheet_utils.d.ts","sourceRoot":"","sources":["../../src/lib/sheet_utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,kBAAkB,EAAE,QAAQ,EAAM,MAAM,UAAU,CAAC;AACpF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAIzC,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACvD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAItD,KAAK,SAAS,GAAG,MAAM,QAAQ,CAAC;AAEhC,KAAK,OAAO,GAAG;IACb,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,KAAK,WAAW,GAAG,OAAO,GAAG;IAC3B,YAAY,CAAC,EAAE,SAAS,EAAE,CAAC;CAC5B,CAAC;AAEF;;GAEG;AAEH,MAAM,M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,kBAAkB,EAoBpB,CAAC;AAEF,eAAO,MAAM,WAAW,GACtB,OAAO,SAAS,EAChB,gDAAuF,gBAAqB,KAC3G,kBAAkB,EAsBpB,CAAC;AAEF,eAAO,MAAM,YAAY,GACvB,OAAO,SAAS,EAChB,oDAAwF,iBAAsB,KAC7G,CAAC,QAAQ,GAAG,IAAI,CAAC,EAAE,EAkBrB,CAAC;AAEF,eAAO,MAAM,YAAY,GACvB,OAAO,SAAS,EAChB,yDAA6F,iBAAsB,KAClH,kBAqBF,CAAC;AAEF,eAAO,MAAM,UAAU,GACrB,OAAO,SAAS,EAChB,oDAAwF,eAAoB,KAC3G,kBAAkB,EAepB,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,MAAM,MAAM,KAAG,MAG9C,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,OAAO,MAAM,KAAG,MAK7C,CAAC;AAEF,eAAO,MAAM,UAAU,GACrB,OAAO,SAAS,EAChB,oDAAwF,eAAoB,KAC3G,kBAAkB,EAiBpB,CAAC"}
@@ -1,5 +1,4 @@
1
- import { MatrixType, AreaType, ZoneType, RangeType, PointType, Y, X, CellsByAddressType, ShapeType, MatricesByAddress, CellType, Address } from '../types';
2
- export declare const slideArea: (area: AreaType, y: Y, x: X) => AreaType;
1
+ import { MatrixType, AreaType, ZoneType, RangeType, PointType, CellsByAddressType, ShapeType, MatricesByAddress, CellType, Address } from '../types';
3
2
  export declare const superposeArea: (srcArea: AreaType, dstArea: AreaType) => ShapeType;
4
3
  export declare const concatAreas: (area1: AreaType, area2: AreaType) => AreaType;
5
4
  export declare const zoneToArea: (zone: ZoneType) => AreaType;
@@ -10,8 +9,10 @@ export declare const among: (area: AreaType, point: PointType) => boolean;
10
9
  type ShapeExtension = {
11
10
  base?: number;
12
11
  };
13
- export declare const zoneShape: ({ base, ...zone }: ZoneType & ShapeExtension) => ShapeType;
14
- export declare const areaShape: ({ base, ...area }: AreaType & ShapeExtension) => ShapeType;
12
+ export declare const zoneDiff: (zone: ZoneType) => ShapeType;
13
+ export declare const zoneShape: (zone: ZoneType) => ShapeType;
14
+ export declare const areaDiff: (area: AreaType) => ShapeType;
15
+ export declare const areaShape: (area: AreaType) => ShapeType;
15
16
  export declare const matrixShape: ({ base, matrix }: {
16
17
  matrix: MatrixType;
17
18
  } & ShapeExtension) => ShapeType;
@@ -22,15 +23,7 @@ export declare const oa2aa: (oa: {
22
23
  export declare const aa2oa: (aa: MatrixType, fields: string[]) => {
23
24
  [s: string]: any;
24
25
  }[];
25
- type PutMatrixFilterProps<T = any> = {
26
- srcValue: T;
27
- dstValue: T;
28
- srcPoint: PointType;
29
- dstPoint: PointType;
30
- };
31
- export declare const putMatrix: <T = any>(dst: T[][], src: T[][], dstArea: AreaType, filter?: (arg: PutMatrixFilterProps) => boolean) => MatricesByAddress<T>;
32
26
  export declare const createMatrix: <T = any>(numRows: number, numCols: number, fill?: T) => T[][];
33
- export declare const cropMatrix: <T = any>(matrix: T[][], area: AreaType) => T[][];
34
27
  export declare const buildInitialCellsFromOrigin: ({ cells, ensured, matrix, flattenAs, origin, }: {
35
28
  cells?: CellsByAddressType;
36
29
  ensured?: {
@@ -61,17 +54,10 @@ export declare const getMaxSizesFromCells: (cells?: CellsByAddressType) => {
61
54
  };
62
55
  export declare const range: (start: number, end: number) => number[];
63
56
  export declare const complementSelectingArea: (selectingArea: AreaType, choosing: PointType) => AreaType;
64
- export declare const isSameArea: (area1: AreaType, area2: AreaType) => boolean;
65
57
  export declare const expandRange: (range: string) => Address[];
66
58
  export declare const restrictZone: (zone: ZoneType) => ZoneType;
67
59
  export type BinarySearchPredicate = (mid: number) => boolean;
68
60
  export declare const binarySearch: (low: number, high: number, predicate: BinarySearchPredicate, lessThan: boolean) => number;
69
- export declare const moveKey: (obj: any, keyFrom: string, keyTo: string) => void;
70
- export declare const invertObject: (obj: {
71
- [key: string]: string;
72
- }) => {
73
- [value: string]: string;
74
- };
75
61
  /**
76
62
  * Convert a list of addresses into an array of bounding areas.
77
63
  * Adjacent cells (4-connected: up/down/left/right) are grouped into the same area.
@@ -88,7 +74,6 @@ export declare const addressesToCols: (addresses: Address[], asc?: boolean | nul
88
74
  * @param asc - true: ascending, false: descending, null: insertion order
89
75
  */
90
76
  export declare const addressesToRows: (addresses: Address[], asc?: boolean | null) => number[];
91
- export declare const isAreaNotSelected: (area: AreaType) => boolean;
92
77
  export declare const isZoneNotSelected: (zone: ZoneType) => boolean;
93
78
  export {};
94
79
  //# sourceMappingURL=spatial.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"spatial.d.ts","sourceRoot":"","sources":["../../src/lib/spatial.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,SAAS,EACT,CAAC,EACD,CAAC,EACD,kBAAkB,EAClB,SAAS,EACT,iBAAiB,EACjB,QAAQ,EACR,OAAO,EACR,MAAM,UAAU,CAAC;AAGlB,eAAO,MAAM,SAAS,GAAI,MAAM,QAAQ,EAAE,GAAG,CAAC,EAAE,GAAG,CAAC,KAAG,QAGtD,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,SAAS,QAAQ,EAAE,SAAS,QAAQ,KAAG,SASpE,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,OAAO,QAAQ,EAAE,OAAO,QAAQ,KAAG,QAe9D,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,MAAM,QAAQ,KAAG,QAO3C,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,MAAM,QAAQ,KAAG,QAO3C,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,MAAM,QAAQ,KAAG,MAQ5C,CAAC;AAEF,eAAO,MAAM,OAAO,GAAI,OAAO,SAAS,EAAE,OAAO,MAAM,YAKtD,CAAC;AAEF,eAAO,MAAM,KAAK,GAAI,MAAM,QAAQ,EAAE,OAAO,SAAS,YAOrD,CAAC;AAEF,KAAK,cAAc,GAAG;IAAE,IAAI,CAAC,EAAE,MAAM,CA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