@gridsheet/core 3.0.0-rc.8
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/README.md +17 -0
- package/dist/constants.d.ts +21 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/constants.js +28 -0
- package/dist/constants.js.map +1 -0
- package/dist/formula/evaluator.d.ts +134 -0
- package/dist/formula/evaluator.d.ts.map +1 -0
- package/dist/formula/evaluator.js +585 -0
- package/dist/formula/evaluator.js.map +1 -0
- package/dist/formula/formula-error.d.ts +10 -0
- package/dist/formula/formula-error.d.ts.map +1 -0
- package/dist/formula/formula-error.js +15 -0
- package/dist/formula/formula-error.js.map +1 -0
- package/dist/formula/functions/__async.d.ts +67 -0
- package/dist/formula/functions/__async.d.ts.map +1 -0
- package/dist/formula/functions/__async.js +70 -0
- package/dist/formula/functions/__async.js.map +1 -0
- package/dist/formula/functions/__base.d.ts +112 -0
- package/dist/formula/functions/__base.d.ts.map +1 -0
- package/dist/formula/functions/__base.js +265 -0
- package/dist/formula/functions/__base.js.map +1 -0
- package/dist/formula/functions/__utils.d.ts +28 -0
- package/dist/formula/functions/__utils.d.ts.map +1 -0
- package/dist/formula/functions/__utils.js +179 -0
- package/dist/formula/functions/__utils.js.map +1 -0
- package/dist/formula/functions/abs.d.ts +9 -0
- package/dist/formula/functions/abs.d.ts.map +1 -0
- package/dist/formula/functions/abs.js +15 -0
- package/dist/formula/functions/abs.js.map +1 -0
- package/dist/formula/functions/add.d.ts +10 -0
- package/dist/formula/functions/add.d.ts.map +1 -0
- package/dist/formula/functions/add.js +37 -0
- package/dist/formula/functions/add.js.map +1 -0
- package/dist/formula/functions/and.d.ts +9 -0
- package/dist/formula/functions/and.d.ts.map +1 -0
- package/dist/formula/functions/and.js +23 -0
- package/dist/formula/functions/and.js.map +1 -0
- package/dist/formula/functions/arrayformula.d.ts +12 -0
- package/dist/formula/functions/arrayformula.d.ts.map +1 -0
- package/dist/formula/functions/arrayformula.js +24 -0
- package/dist/formula/functions/arrayformula.js.map +1 -0
- package/dist/formula/functions/average.d.ts +9 -0
- package/dist/formula/functions/average.d.ts.map +1 -0
- package/dist/formula/functions/average.js +40 -0
- package/dist/formula/functions/average.js.map +1 -0
- package/dist/formula/functions/concat.d.ts +9 -0
- package/dist/formula/functions/concat.d.ts.map +1 -0
- package/dist/formula/functions/concat.js +27 -0
- package/dist/formula/functions/concat.js.map +1 -0
- package/dist/formula/functions/count.d.ts +9 -0
- package/dist/formula/functions/count.d.ts.map +1 -0
- package/dist/formula/functions/count.js +32 -0
- package/dist/formula/functions/count.js.map +1 -0
- package/dist/formula/functions/counta.d.ts +9 -0
- package/dist/formula/functions/counta.d.ts.map +1 -0
- package/dist/formula/functions/counta.js +32 -0
- package/dist/formula/functions/counta.js.map +1 -0
- package/dist/formula/functions/divide.d.ts +10 -0
- package/dist/formula/functions/divide.d.ts.map +1 -0
- package/dist/formula/functions/divide.js +34 -0
- package/dist/formula/functions/divide.js.map +1 -0
- package/dist/formula/functions/eq.d.ts +9 -0
- package/dist/formula/functions/eq.d.ts.map +1 -0
- package/dist/formula/functions/eq.js +19 -0
- package/dist/formula/functions/eq.js.map +1 -0
- package/dist/formula/functions/gt.d.ts +9 -0
- package/dist/formula/functions/gt.d.ts.map +1 -0
- package/dist/formula/functions/gt.js +19 -0
- package/dist/formula/functions/gt.js.map +1 -0
- package/dist/formula/functions/gte.d.ts +9 -0
- package/dist/formula/functions/gte.d.ts.map +1 -0
- package/dist/formula/functions/gte.js +19 -0
- package/dist/formula/functions/gte.js.map +1 -0
- package/dist/formula/functions/if.d.ts +9 -0
- package/dist/formula/functions/if.d.ts.map +1 -0
- package/dist/formula/functions/if.js +29 -0
- package/dist/formula/functions/if.js.map +1 -0
- package/dist/formula/functions/iferror.d.ts +10 -0
- package/dist/formula/functions/iferror.d.ts.map +1 -0
- package/dist/formula/functions/iferror.js +28 -0
- package/dist/formula/functions/iferror.js.map +1 -0
- package/dist/formula/functions/len.d.ts +9 -0
- package/dist/formula/functions/len.d.ts.map +1 -0
- package/dist/formula/functions/len.js +21 -0
- package/dist/formula/functions/len.js.map +1 -0
- package/dist/formula/functions/lt.d.ts +9 -0
- package/dist/formula/functions/lt.d.ts.map +1 -0
- package/dist/formula/functions/lt.js +19 -0
- package/dist/formula/functions/lt.js.map +1 -0
- package/dist/formula/functions/lte.d.ts +9 -0
- package/dist/formula/functions/lte.d.ts.map +1 -0
- package/dist/formula/functions/lte.js +19 -0
- package/dist/formula/functions/lte.js.map +1 -0
- package/dist/formula/functions/max.d.ts +9 -0
- package/dist/formula/functions/max.d.ts.map +1 -0
- package/dist/formula/functions/max.js +37 -0
- package/dist/formula/functions/max.js.map +1 -0
- package/dist/formula/functions/min.d.ts +9 -0
- package/dist/formula/functions/min.d.ts.map +1 -0
- package/dist/formula/functions/min.js +37 -0
- package/dist/formula/functions/min.js.map +1 -0
- package/dist/formula/functions/minus.d.ts +10 -0
- package/dist/formula/functions/minus.d.ts.map +1 -0
- package/dist/formula/functions/minus.js +41 -0
- package/dist/formula/functions/minus.js.map +1 -0
- package/dist/formula/functions/multiply.d.ts +9 -0
- package/dist/formula/functions/multiply.d.ts.map +1 -0
- package/dist/formula/functions/multiply.js +19 -0
- package/dist/formula/functions/multiply.js.map +1 -0
- package/dist/formula/functions/ne.d.ts +9 -0
- package/dist/formula/functions/ne.d.ts.map +1 -0
- package/dist/formula/functions/ne.js +19 -0
- package/dist/formula/functions/ne.js.map +1 -0
- package/dist/formula/functions/not.d.ts +9 -0
- package/dist/formula/functions/not.d.ts.map +1 -0
- package/dist/formula/functions/not.js +22 -0
- package/dist/formula/functions/not.js.map +1 -0
- package/dist/formula/functions/now.d.ts +9 -0
- package/dist/formula/functions/now.d.ts.map +1 -0
- package/dist/formula/functions/now.js +14 -0
- package/dist/formula/functions/now.js.map +1 -0
- package/dist/formula/functions/or.d.ts +9 -0
- package/dist/formula/functions/or.d.ts.map +1 -0
- package/dist/formula/functions/or.js +23 -0
- package/dist/formula/functions/or.js.map +1 -0
- package/dist/formula/functions/power.d.ts +9 -0
- package/dist/formula/functions/power.d.ts.map +1 -0
- package/dist/formula/functions/power.js +18 -0
- package/dist/formula/functions/power.js.map +1 -0
- package/dist/formula/functions/sum.d.ts +9 -0
- package/dist/formula/functions/sum.d.ts.map +1 -0
- package/dist/formula/functions/sum.js +34 -0
- package/dist/formula/functions/sum.js.map +1 -0
- package/dist/formula/functions/uminus.d.ts +9 -0
- package/dist/formula/functions/uminus.d.ts.map +1 -0
- package/dist/formula/functions/uminus.js +17 -0
- package/dist/formula/functions/uminus.js.map +1 -0
- package/dist/formula/mapping.d.ts +11 -0
- package/dist/formula/mapping.d.ts.map +1 -0
- package/dist/formula/mapping.js +82 -0
- package/dist/formula/mapping.js.map +1 -0
- package/dist/formula/solver.d.ts +39 -0
- package/dist/formula/solver.d.ts.map +1 -0
- package/dist/formula/solver.js +71 -0
- package/dist/formula/solver.js.map +1 -0
- package/dist/index.d.ts +22 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +74 -0
- package/dist/index.js.map +1 -0
- package/dist/lib/autofill.d.ts +22 -0
- package/dist/lib/autofill.d.ts.map +1 -0
- package/dist/lib/autofill.js +276 -0
- package/dist/lib/autofill.js.map +1 -0
- package/dist/lib/book.d.ts +131 -0
- package/dist/lib/book.d.ts.map +1 -0
- package/dist/lib/book.js +53 -0
- package/dist/lib/book.js.map +1 -0
- package/dist/lib/cell.d.ts +17 -0
- package/dist/lib/cell.d.ts.map +1 -0
- package/dist/lib/cell.js +17 -0
- package/dist/lib/cell.js.map +1 -0
- package/dist/lib/coords.d.ts +22 -0
- package/dist/lib/coords.d.ts.map +1 -0
- package/dist/lib/coords.js +73 -0
- package/dist/lib/coords.js.map +1 -0
- package/dist/lib/date.d.ts +2 -0
- package/dist/lib/date.d.ts.map +1 -0
- package/dist/lib/date.js +91 -0
- package/dist/lib/date.js.map +1 -0
- package/dist/lib/dom.d.ts +7 -0
- package/dist/lib/dom.d.ts.map +1 -0
- package/dist/lib/dom.js +28 -0
- package/dist/lib/dom.js.map +1 -0
- package/dist/lib/filter.d.ts +7 -0
- package/dist/lib/filter.d.ts.map +1 -0
- package/dist/lib/filter.js +122 -0
- package/dist/lib/filter.js.map +1 -0
- package/dist/lib/input.d.ts +28 -0
- package/dist/lib/input.d.ts.map +1 -0
- package/dist/lib/input.js +73 -0
- package/dist/lib/input.js.map +1 -0
- package/dist/lib/label.d.ts +4 -0
- package/dist/lib/label.d.ts.map +1 -0
- package/dist/lib/label.js +10 -0
- package/dist/lib/label.js.map +1 -0
- package/dist/lib/operation.d.ts +31 -0
- package/dist/lib/operation.d.ts.map +1 -0
- package/dist/lib/operation.js +36 -0
- package/dist/lib/operation.js.map +1 -0
- package/dist/lib/palette.d.ts +2 -0
- package/dist/lib/palette.d.ts.map +1 -0
- package/dist/lib/palette.js +26 -0
- package/dist/lib/palette.js.map +1 -0
- package/dist/lib/popup.d.ts +24 -0
- package/dist/lib/popup.d.ts.map +1 -0
- package/dist/lib/popup.js +21 -0
- package/dist/lib/popup.js.map +1 -0
- package/dist/lib/reference.d.ts +19 -0
- package/dist/lib/reference.d.ts.map +1 -0
- package/dist/lib/reference.js +40 -0
- package/dist/lib/reference.js.map +1 -0
- package/dist/lib/sheet.d.ts +512 -0
- package/dist/lib/sheet.d.ts.map +1 -0
- package/dist/lib/sheet.js +1530 -0
- package/dist/lib/sheet.js.map +1 -0
- package/dist/lib/sheet_utils.d.ts +55 -0
- package/dist/lib/sheet_utils.d.ts.map +1 -0
- package/dist/lib/sheet_utils.js +125 -0
- package/dist/lib/sheet_utils.js.map +1 -0
- package/dist/lib/spatial.d.ts +79 -0
- package/dist/lib/spatial.d.ts.map +1 -0
- package/dist/lib/spatial.js +227 -0
- package/dist/lib/spatial.js.map +1 -0
- package/dist/lib/time.d.ts +29 -0
- package/dist/lib/time.d.ts.map +1 -0
- package/dist/lib/time.js +113 -0
- package/dist/lib/time.js.map +1 -0
- package/dist/lib/virtualization.d.ts +22 -0
- package/dist/lib/virtualization.d.ts.map +1 -0
- package/dist/lib/virtualization.js +91 -0
- package/dist/lib/virtualization.js.map +1 -0
- package/dist/policy/core.d.ts +161 -0
- package/dist/policy/core.d.ts.map +1 -0
- package/dist/policy/core.js +248 -0
- package/dist/policy/core.js.map +1 -0
- package/dist/policy/thousand_separator.d.ts +4 -0
- package/dist/policy/thousand_separator.d.ts.map +1 -0
- package/dist/policy/thousand_separator.js +13 -0
- package/dist/policy/thousand_separator.js.map +1 -0
- package/dist/sentinels.d.ts +40 -0
- package/dist/sentinels.d.ts.map +1 -0
- package/dist/sentinels.js +41 -0
- package/dist/sentinels.js.map +1 -0
- package/dist/styles/embedder.d.ts +2 -0
- package/dist/styles/embedder.d.ts.map +1 -0
- package/dist/styles/embedder.js +11 -0
- package/dist/styles/embedder.js.map +1 -0
- package/dist/styles/minified.d.ts +3 -0
- package/dist/styles/minified.d.ts.map +1 -0
- package/dist/styles/minified.js +6 -0
- package/dist/styles/minified.js.map +1 -0
- package/dist/types.d.ts +310 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +2 -0
- package/dist/types.js.map +1 -0
- package/dist/utils.d.ts +2 -0
- package/dist/utils.d.ts.map +1 -0
- package/dist/utils.js +5 -0
- package/dist/utils.js.map +1 -0
- package/package.json +59 -0
|
@@ -0,0 +1,512 @@
|
|
|
1
|
+
import { Id, AreaType, CellsByAddressType, PointType, Address, CellFilter, MatrixType, CellType, FilterConfig, HistoryType, StorePatchType, ShapeType, RectType, OperatorType, OperationType, RawCellType, RefLike, 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 | 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): any;
|
|
248
|
+
/** @internal */
|
|
249
|
+
getSheetBySheetId(sheetId: number): any;
|
|
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 }: {
|
|
456
|
+
sheetReactive: RefLike<Sheet>;
|
|
457
|
+
}) => void;
|
|
458
|
+
newSheet?: undefined;
|
|
459
|
+
};
|
|
460
|
+
redo(): {
|
|
461
|
+
history: null;
|
|
462
|
+
newSheet: Sheet;
|
|
463
|
+
callback?: undefined;
|
|
464
|
+
} | {
|
|
465
|
+
history: HistoryType;
|
|
466
|
+
callback: ({ sheetReactive: sheetRef }: {
|
|
467
|
+
sheetReactive: RefLike<Sheet>;
|
|
468
|
+
}) => void;
|
|
469
|
+
newSheet?: undefined;
|
|
470
|
+
};
|
|
471
|
+
/** @internal */
|
|
472
|
+
getFunctionByName(name: string): typeof import('..').BaseFunction;
|
|
473
|
+
/** @internal */
|
|
474
|
+
clearDependencies(id: Id): void;
|
|
475
|
+
/** @internal */
|
|
476
|
+
addDependency(id: Id, dependency: Id): void;
|
|
477
|
+
/** @internal */
|
|
478
|
+
getSolvedCache(point: PointType): [boolean, any];
|
|
479
|
+
/** @internal */
|
|
480
|
+
setSolvingCache(point: PointType): void;
|
|
481
|
+
/** @internal */
|
|
482
|
+
finishSolvedCache(point: PointType, value: any): void;
|
|
483
|
+
/** @internal */
|
|
484
|
+
clearSolvedCaches(): void;
|
|
485
|
+
/**
|
|
486
|
+
* Spill a 2D matrix of values starting from the origin cell.
|
|
487
|
+
* The origin cell receives matrix[0][0] and adjacent cells receive spill values in solvedCaches.
|
|
488
|
+
* For a 1×1 matrix, no spill occurs — the single value is cached directly.
|
|
489
|
+
* Throws FormulaError('#REF!') if the spill range is obstructed.
|
|
490
|
+
*
|
|
491
|
+
* @param origin The anchor cell that produced the spill.
|
|
492
|
+
* @param matrix The 2D array of resolved scalar values.
|
|
493
|
+
* @returns The top-left value (matrix[0][0]).
|
|
494
|
+
* @internal
|
|
495
|
+
*/
|
|
496
|
+
spill(origin: PointType, matrix: any[][]): any;
|
|
497
|
+
/** @internal */
|
|
498
|
+
sheetPrefix(omit?: boolean): string;
|
|
499
|
+
/** @internal */
|
|
500
|
+
rangeToArea(range: string): {
|
|
501
|
+
top: number;
|
|
502
|
+
left: number;
|
|
503
|
+
bottom: number;
|
|
504
|
+
right: number;
|
|
505
|
+
};
|
|
506
|
+
get __raw__(): Sheet;
|
|
507
|
+
get shape(): ShapeType;
|
|
508
|
+
get hasSingleCell(): boolean;
|
|
509
|
+
get currentVersion(): number;
|
|
510
|
+
}
|
|
511
|
+
export {};
|
|
512
|
+
//# sourceMappingURL=sheet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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,OAAO,EACP,UAAU,EAIV,MAAM,EACP,MAAM,UAAU,CAAC;AAGlB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AACnE,OA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