@gridsheet/engine 3.3.0
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/LICENSE +190 -0
- package/README.md +50 -0
- package/dist/constants.d.ts +21 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/formula/evaluator.d.ts +135 -0
- package/dist/formula/evaluator.d.ts.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/functions/__async.d.ts +67 -0
- package/dist/formula/functions/__async.d.ts.map +1 -0
- package/dist/formula/functions/__base.d.ts +120 -0
- package/dist/formula/functions/__base.d.ts.map +1 -0
- package/dist/formula/functions/__utils.d.ts +30 -0
- package/dist/formula/functions/__utils.d.ts.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/add.d.ts +10 -0
- package/dist/formula/functions/add.d.ts.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/arrayformula.d.ts +12 -0
- package/dist/formula/functions/arrayformula.d.ts.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/concat.d.ts +9 -0
- package/dist/formula/functions/concat.d.ts.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/counta.d.ts +9 -0
- package/dist/formula/functions/counta.d.ts.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/eq.d.ts +9 -0
- package/dist/formula/functions/eq.d.ts.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/gte.d.ts +9 -0
- package/dist/formula/functions/gte.d.ts.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/iferror.d.ts +10 -0
- package/dist/formula/functions/iferror.d.ts.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/lt.d.ts +9 -0
- package/dist/formula/functions/lt.d.ts.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/max.d.ts +9 -0
- package/dist/formula/functions/max.d.ts.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/minus.d.ts +10 -0
- package/dist/formula/functions/minus.d.ts.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/ne.d.ts +9 -0
- package/dist/formula/functions/ne.d.ts.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/now.d.ts +9 -0
- package/dist/formula/functions/now.d.ts.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/power.d.ts +9 -0
- package/dist/formula/functions/power.d.ts.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/uminus.d.ts +9 -0
- package/dist/formula/functions/uminus.d.ts.map +1 -0
- package/dist/formula/mapping.d.ts +11 -0
- package/dist/formula/mapping.d.ts.map +1 -0
- package/dist/formula/solver.d.ts +39 -0
- package/dist/formula/solver.d.ts.map +1 -0
- package/dist/index.d.ts +31 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +4888 -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/book.d.ts +141 -0
- package/dist/lib/book.d.ts.map +1 -0
- package/dist/lib/cell.d.ts +17 -0
- package/dist/lib/cell.d.ts.map +1 -0
- package/dist/lib/coords.d.ts +22 -0
- package/dist/lib/coords.d.ts.map +1 -0
- package/dist/lib/date.d.ts +2 -0
- package/dist/lib/date.d.ts.map +1 -0
- package/dist/lib/filter.d.ts +7 -0
- package/dist/lib/filter.d.ts.map +1 -0
- package/dist/lib/label.d.ts +4 -0
- package/dist/lib/label.d.ts.map +1 -0
- package/dist/lib/operation.d.ts +31 -0
- package/dist/lib/operation.d.ts.map +1 -0
- package/dist/lib/palette.d.ts +2 -0
- package/dist/lib/palette.d.ts.map +1 -0
- package/dist/lib/reference.d.ts +19 -0
- package/dist/lib/reference.d.ts.map +1 -0
- package/dist/lib/sheet.d.ts +626 -0
- package/dist/lib/sheet.d.ts.map +1 -0
- package/dist/lib/sheet_utils.d.ts +52 -0
- package/dist/lib/sheet_utils.d.ts.map +1 -0
- package/dist/lib/spatial.d.ts +79 -0
- package/dist/lib/spatial.d.ts.map +1 -0
- package/dist/lib/time.d.ts +29 -0
- package/dist/lib/time.d.ts.map +1 -0
- package/dist/policy/core.d.ts +161 -0
- package/dist/policy/core.d.ts.map +1 -0
- package/dist/policy/percentage.d.ts +3 -0
- package/dist/policy/percentage.d.ts.map +1 -0
- package/dist/policy/thousand_separator.d.ts +4 -0
- package/dist/policy/thousand_separator.d.ts.map +1 -0
- package/dist/sentinels.d.ts +41 -0
- package/dist/sentinels.d.ts.map +1 -0
- package/dist/types.d.ts +313 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/utils.d.ts +2 -0
- package/dist/utils.d.ts.map +1 -0
- package/package.json +63 -0
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,313 @@
|
|
|
1
|
+
import { UserSheet, Sheet } from './lib/sheet';
|
|
2
|
+
/**
|
|
3
|
+
* Framework-agnostic CSS properties type.
|
|
4
|
+
* React-core / Preact-core can narrow this to their own CSSProperties if needed.
|
|
5
|
+
*/
|
|
6
|
+
export type CSSPropertiesLike = {
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* Framework-agnostic ref-like type (equivalent to React.RefObject).
|
|
11
|
+
*/
|
|
12
|
+
export type RefLike<T> = {
|
|
13
|
+
current: T | null;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Controls how formula values are resolved when reading a cell.
|
|
17
|
+
*
|
|
18
|
+
* - `'RESOLVED'` (default) — Fully evaluates formulas to a scalar value.
|
|
19
|
+
* Range references (e.g. `=C1:F1`) are unwrapped to the top-left scalar.
|
|
20
|
+
* - `'EVALUATED'` — Evaluates formulas one level deep but keeps range/Sheet
|
|
21
|
+
* results intact. Use this when you need the `Sheet` object a range formula
|
|
22
|
+
* produces (e.g. in `renderSheet` policy hooks).
|
|
23
|
+
* - `'RAW'` — Returns the formula string with cell addresses resolved to their
|
|
24
|
+
* display form; does not evaluate.
|
|
25
|
+
* - `'SYSTEM'` — Returns the raw stored value with no evaluation or transformation.
|
|
26
|
+
*/
|
|
27
|
+
export type Resolution = 'RESOLVED' | 'EVALUATED' | 'RAW' | 'SYSTEM';
|
|
28
|
+
export type Y = number;
|
|
29
|
+
export type X = number;
|
|
30
|
+
export type Height = number;
|
|
31
|
+
export type Width = number;
|
|
32
|
+
export type ShapeType = {
|
|
33
|
+
rows: number;
|
|
34
|
+
cols: number;
|
|
35
|
+
};
|
|
36
|
+
export type RectType = {
|
|
37
|
+
y: Y;
|
|
38
|
+
x: X;
|
|
39
|
+
height: Height;
|
|
40
|
+
width: Width;
|
|
41
|
+
};
|
|
42
|
+
export type MatrixType<T = any> = T[][];
|
|
43
|
+
export type CursorStateType = {
|
|
44
|
+
pointing: PointType;
|
|
45
|
+
selectingFrom: PointType;
|
|
46
|
+
selectingTo: PointType;
|
|
47
|
+
};
|
|
48
|
+
export type FeedbackType = (args: {
|
|
49
|
+
sheet: UserSheet;
|
|
50
|
+
points?: CursorStateType;
|
|
51
|
+
}) => void;
|
|
52
|
+
export type ModeType = 'light' | 'dark' | 'auto' | 'inherit-light' | 'inherit-dark';
|
|
53
|
+
export type DensityType = 'compact' | 'comfortable';
|
|
54
|
+
export type GridLinesType = 'all' | 'horizontal' | 'none';
|
|
55
|
+
export type MatrixAlignmentType = 'none' | 'vertical' | 'horizontal' | 'both';
|
|
56
|
+
export type HeadersType = 'both' | 'vertical' | 'horizontal' | 'none';
|
|
57
|
+
export type AsyncCache = {
|
|
58
|
+
/** Cached result value from the async computation. */
|
|
59
|
+
value: any;
|
|
60
|
+
/** Absolute timestamp (ms since epoch) at which the cache expires. undefined means cache never expires. */
|
|
61
|
+
expireTime?: number;
|
|
62
|
+
};
|
|
63
|
+
export type System = {
|
|
64
|
+
id?: string;
|
|
65
|
+
sheetId?: number;
|
|
66
|
+
changedTime?: number;
|
|
67
|
+
/** Cumulative top offset (px) from sheet origin. Set on row-header cells (x=0). */
|
|
68
|
+
offsetTop?: number;
|
|
69
|
+
/** Cumulative left offset (px) from sheet origin. Set on col-header cells (y=0). */
|
|
70
|
+
offsetLeft?: number;
|
|
71
|
+
tmpAsyncCaches?: Record<string, AsyncCache>;
|
|
72
|
+
/** Address of the origin cell whose array formula spilled its value into this cell. */
|
|
73
|
+
spilledFrom?: Address;
|
|
74
|
+
/** IDs of cells whose formula depends on this cell. */
|
|
75
|
+
dependents?: Set<Id>;
|
|
76
|
+
/** IDs of cells that this cell's formula depends on. */
|
|
77
|
+
dependencies?: Set<Id>;
|
|
78
|
+
};
|
|
79
|
+
export type FilterConditionMethod = 'eq' | 'ne' | 'gt' | 'gte' | 'lt' | 'lte' | 'blank' | 'nonblank' | 'includes' | 'excludes';
|
|
80
|
+
export type FilterCondition = {
|
|
81
|
+
method: FilterConditionMethod;
|
|
82
|
+
value: string[];
|
|
83
|
+
};
|
|
84
|
+
export type FilterConfig = {
|
|
85
|
+
mode?: 'and' | 'or';
|
|
86
|
+
conditions: FilterCondition[];
|
|
87
|
+
};
|
|
88
|
+
export type CellType<T = any, Custom = any> = {
|
|
89
|
+
value?: T;
|
|
90
|
+
style?: CSSPropertiesLike;
|
|
91
|
+
justifyContent?: string;
|
|
92
|
+
alignItems?: string;
|
|
93
|
+
label?: string;
|
|
94
|
+
width?: Width;
|
|
95
|
+
height?: Height;
|
|
96
|
+
policy?: string;
|
|
97
|
+
custom?: Custom;
|
|
98
|
+
formulaEnabled?: boolean;
|
|
99
|
+
prevention?: OperationType;
|
|
100
|
+
/** Cached result from an async formula. Stored directly on the cell for serializability. */
|
|
101
|
+
asyncCaches?: Record<string, AsyncCache>;
|
|
102
|
+
/** Filter configuration. Set on col-header cells (y=0). null means explicitly absent (used in undo diffBefore to survive JSON serialization). */
|
|
103
|
+
filter?: FilterConfig | null;
|
|
104
|
+
/** Whether this row is hidden by a filter. Set on row-header cells (x=0). */
|
|
105
|
+
filtered?: boolean;
|
|
106
|
+
/** If true, this row is excluded from sort and stays at its original position. Set on row-header cells (x=0). */
|
|
107
|
+
sortFixed?: boolean;
|
|
108
|
+
/** If true, this row is always visible regardless of active filters. Set on row-header cells (x=0). */
|
|
109
|
+
filterFixed?: boolean;
|
|
110
|
+
};
|
|
111
|
+
export type RawCellType = {
|
|
112
|
+
value?: string;
|
|
113
|
+
style?: CSSPropertiesLike;
|
|
114
|
+
skip?: boolean;
|
|
115
|
+
};
|
|
116
|
+
export type CellPatchType<T = any> = Partial<CellType> & {
|
|
117
|
+
value: T;
|
|
118
|
+
};
|
|
119
|
+
export type CellFilter = (cell: CellType) => boolean;
|
|
120
|
+
export type CellsByAddressType = {
|
|
121
|
+
[address: string]: CellType;
|
|
122
|
+
};
|
|
123
|
+
export type CellsByIdType = {
|
|
124
|
+
[id: Id]: CellType | undefined;
|
|
125
|
+
};
|
|
126
|
+
export type SystemsByIdType = {
|
|
127
|
+
[id: Id]: System;
|
|
128
|
+
};
|
|
129
|
+
export type RangeType = {
|
|
130
|
+
start: number;
|
|
131
|
+
end: number;
|
|
132
|
+
};
|
|
133
|
+
export type PointType = {
|
|
134
|
+
y: Y;
|
|
135
|
+
x: X;
|
|
136
|
+
};
|
|
137
|
+
export type ExtraPointType = {
|
|
138
|
+
y: Y;
|
|
139
|
+
x: X;
|
|
140
|
+
absY?: boolean;
|
|
141
|
+
absX?: boolean;
|
|
142
|
+
sheet?: Sheet;
|
|
143
|
+
};
|
|
144
|
+
export type PositionType = {
|
|
145
|
+
y: Y;
|
|
146
|
+
x: X;
|
|
147
|
+
};
|
|
148
|
+
export type ZoneType = {
|
|
149
|
+
startY: Y;
|
|
150
|
+
startX: X;
|
|
151
|
+
endY: Y;
|
|
152
|
+
endX: X;
|
|
153
|
+
};
|
|
154
|
+
export type AreaType = {
|
|
155
|
+
top: Y;
|
|
156
|
+
left: X;
|
|
157
|
+
bottom: Y;
|
|
158
|
+
right: X;
|
|
159
|
+
};
|
|
160
|
+
export type WriterType = (value: string) => void;
|
|
161
|
+
export type Id = string;
|
|
162
|
+
export type Ids = Id[];
|
|
163
|
+
export type IdMatrix = Ids[];
|
|
164
|
+
export type Address = string;
|
|
165
|
+
export type MatricesByAddress<T> = {
|
|
166
|
+
[origin: Address]: MatrixType<T>;
|
|
167
|
+
};
|
|
168
|
+
export type StorePatchType = {
|
|
169
|
+
sheetId: number;
|
|
170
|
+
choosing?: PointType;
|
|
171
|
+
selectingZone?: ZoneType | undefined;
|
|
172
|
+
sheetHeight?: number;
|
|
173
|
+
sheetWidth?: number;
|
|
174
|
+
transmit?: any;
|
|
175
|
+
};
|
|
176
|
+
export type HistoryUpdateType = {
|
|
177
|
+
operation: 'UPDATE';
|
|
178
|
+
srcSheetId: number;
|
|
179
|
+
dstSheetId: number;
|
|
180
|
+
applyed: boolean;
|
|
181
|
+
undoReflection?: StorePatchType;
|
|
182
|
+
redoReflection?: StorePatchType;
|
|
183
|
+
diffBefore: CellsByIdType;
|
|
184
|
+
diffAfter: CellsByIdType;
|
|
185
|
+
partial: boolean;
|
|
186
|
+
};
|
|
187
|
+
export type MoveRelation = {
|
|
188
|
+
before?: string;
|
|
189
|
+
after?: string;
|
|
190
|
+
src: Address;
|
|
191
|
+
dst?: Address;
|
|
192
|
+
new?: Id;
|
|
193
|
+
lost?: Id;
|
|
194
|
+
};
|
|
195
|
+
export type MoveRelations = MoveRelation[];
|
|
196
|
+
export type HistoryMoveType = {
|
|
197
|
+
operation: 'MOVE';
|
|
198
|
+
srcSheetId: number;
|
|
199
|
+
dstSheetId: number;
|
|
200
|
+
applyed: boolean;
|
|
201
|
+
undoReflection?: StorePatchType;
|
|
202
|
+
redoReflection?: StorePatchType;
|
|
203
|
+
diffBefore: CellsByIdType;
|
|
204
|
+
diffAfter: CellsByIdType;
|
|
205
|
+
moveRelations: MoveRelations;
|
|
206
|
+
};
|
|
207
|
+
export type HistoryInsertRowsType = {
|
|
208
|
+
operation: 'INSERT_ROWS';
|
|
209
|
+
srcSheetId: number;
|
|
210
|
+
dstSheetId: number;
|
|
211
|
+
applyed: boolean;
|
|
212
|
+
undoReflection?: StorePatchType;
|
|
213
|
+
redoReflection?: StorePatchType;
|
|
214
|
+
y: number;
|
|
215
|
+
numRows: number;
|
|
216
|
+
idMatrix: IdMatrix;
|
|
217
|
+
diffBefore?: CellsByIdType;
|
|
218
|
+
diffAfter?: CellsByIdType;
|
|
219
|
+
partial?: true;
|
|
220
|
+
};
|
|
221
|
+
export type HistoryRemoveRowsType = {
|
|
222
|
+
operation: 'REMOVE_ROWS';
|
|
223
|
+
srcSheetId: number;
|
|
224
|
+
dstSheetId: number;
|
|
225
|
+
applyed: boolean;
|
|
226
|
+
undoReflection?: StorePatchType;
|
|
227
|
+
redoReflection?: StorePatchType;
|
|
228
|
+
ys: number[];
|
|
229
|
+
diffBefore?: CellsByIdType;
|
|
230
|
+
deleted: IdMatrix;
|
|
231
|
+
};
|
|
232
|
+
export type HistoryInsertColsType = {
|
|
233
|
+
operation: 'INSERT_COLS';
|
|
234
|
+
srcSheetId: number;
|
|
235
|
+
dstSheetId: number;
|
|
236
|
+
applyed: boolean;
|
|
237
|
+
undoReflection?: StorePatchType;
|
|
238
|
+
redoReflection?: StorePatchType;
|
|
239
|
+
x: number;
|
|
240
|
+
numCols: number;
|
|
241
|
+
idMatrix: IdMatrix;
|
|
242
|
+
diffBefore?: CellsByIdType;
|
|
243
|
+
diffAfter?: CellsByIdType;
|
|
244
|
+
partial?: true;
|
|
245
|
+
};
|
|
246
|
+
export type HistoryRemoveColsType = {
|
|
247
|
+
operation: 'REMOVE_COLS';
|
|
248
|
+
srcSheetId: number;
|
|
249
|
+
dstSheetId: number;
|
|
250
|
+
applyed: boolean;
|
|
251
|
+
undoReflection?: StorePatchType;
|
|
252
|
+
redoReflection?: StorePatchType;
|
|
253
|
+
xs: number[];
|
|
254
|
+
diffBefore?: CellsByIdType;
|
|
255
|
+
deleted: IdMatrix;
|
|
256
|
+
};
|
|
257
|
+
export type HistorySortRowsType = {
|
|
258
|
+
operation: 'SORT_ROWS';
|
|
259
|
+
srcSheetId: number;
|
|
260
|
+
dstSheetId: number;
|
|
261
|
+
applyed: boolean;
|
|
262
|
+
undoReflection?: StorePatchType;
|
|
263
|
+
redoReflection?: StorePatchType;
|
|
264
|
+
/** Mapping from original row index to new row index after sort */
|
|
265
|
+
sortedRowMapping: {
|
|
266
|
+
[beforeY: number]: number;
|
|
267
|
+
};
|
|
268
|
+
};
|
|
269
|
+
export type HistoryType = HistoryUpdateType | HistoryMoveType | HistoryInsertRowsType | HistoryRemoveRowsType | HistoryInsertColsType | HistoryRemoveColsType | HistorySortRowsType;
|
|
270
|
+
export type Virtualization = {
|
|
271
|
+
xs: number[];
|
|
272
|
+
ys: number[];
|
|
273
|
+
adjuster: AreaType;
|
|
274
|
+
};
|
|
275
|
+
export type OperatorType = 'USER' | 'SYSTEM';
|
|
276
|
+
export type OperationType = number;
|
|
277
|
+
/**
|
|
278
|
+
* Framework-agnostic dispatcher type.
|
|
279
|
+
* React-core defines the concrete version using React.Dispatch.
|
|
280
|
+
*/
|
|
281
|
+
export type Dispatcher = (action: {
|
|
282
|
+
type: number;
|
|
283
|
+
value: any;
|
|
284
|
+
}) => void;
|
|
285
|
+
export type StoreDispatchType = {
|
|
286
|
+
store: any;
|
|
287
|
+
dispatch: Dispatcher;
|
|
288
|
+
};
|
|
289
|
+
export type ContextsBySheetId = {
|
|
290
|
+
[sheetId: string]: StoreDispatchType;
|
|
291
|
+
};
|
|
292
|
+
export type SheetIdsByName = {
|
|
293
|
+
[sheetName: string]: number;
|
|
294
|
+
};
|
|
295
|
+
export type RefPaletteType = {
|
|
296
|
+
[address: string]: number;
|
|
297
|
+
};
|
|
298
|
+
/**
|
|
299
|
+
* Framework-agnostic editor event type.
|
|
300
|
+
* Covers the common subset of native KeyboardEvent and framework synthetic events (React, Preact).
|
|
301
|
+
*/
|
|
302
|
+
export interface EditorEvent {
|
|
303
|
+
key: string;
|
|
304
|
+
code: string;
|
|
305
|
+
altKey: boolean;
|
|
306
|
+
ctrlKey: boolean;
|
|
307
|
+
metaKey: boolean;
|
|
308
|
+
shiftKey: boolean;
|
|
309
|
+
target: EventTarget | null;
|
|
310
|
+
preventDefault(): void;
|
|
311
|
+
stopPropagation(): void;
|
|
312
|
+
}
|
|
313
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,KAAK,EAAe,MAAM,aAAa,CAAC;AAEjE;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,CAAC;AAEvD;;GAEG;AACH,MAAM,MAAM,OAAO,CAAC,CAAC,IAAI;IAAE,OAAO,EAAE,CAAC,GAAG,IAAI,CAAA;CAAE,CAAC;AAE/C;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,UAAU,GAAG,UAAU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AAU,CAAC;CACtB,CAAC;AACF,MAAM,MAAM,iBAAiB,GAAG;IAAE,CAAC,OAAO,EAAE,MAAM,GAAG,iBAAiB,CAAA;CAAE,CAAC;AACzE,MAAM,MAAM,cAAc,GAAG;IAAE,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,CAAC;AAE7D,MAAM,MAAM,cAAc,GAAG;IAAE,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,CAAC;AAE3D;;;GAGG;AACH,MAAM,WAAW,WAAW;IAC1B,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,OAAO,CAAC;IAClB,MAAM,EAAE,WAAW,GAAG,IAAI,CAAC;IAC3B,cAAc,IAAI,IAAI,CAAC;IACvB,eAAe,IAAI,IAAI,CAAC;CACzB"}
|
package/dist/utils.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,GAAI,CAAC,GAAG,WAAW,EAAE,CAAC,GAAG,GAAG,EAAE,QAAQ,GAAG,EAAE,KAAK,CAAC,EAAE,cAAc,CAAC,KAAG,CAK3F,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@gridsheet/engine",
|
|
3
|
+
"version": "3.3.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"description": "Headless spreadsheet model + formula resolution engine for gridsheet (React/DOM-free; usable from CLI, extension hosts, and backends).",
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"module": "./dist/index.js",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"import": "./dist/index.js",
|
|
13
|
+
"default": "./dist/index.js"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"scripts": {
|
|
17
|
+
"build": "rm -rf ./dist || true && vite build",
|
|
18
|
+
"typecheck": "tsc --noEmit",
|
|
19
|
+
"jest": "jest"
|
|
20
|
+
},
|
|
21
|
+
"repository": {
|
|
22
|
+
"type": "git",
|
|
23
|
+
"url": "git+https://github.com/walkframe/gridsheet.git"
|
|
24
|
+
},
|
|
25
|
+
"keywords": [
|
|
26
|
+
"spreadsheet",
|
|
27
|
+
"spread-sheet",
|
|
28
|
+
"excel",
|
|
29
|
+
"gridsheet",
|
|
30
|
+
"formula",
|
|
31
|
+
"engine",
|
|
32
|
+
"headless",
|
|
33
|
+
"cell",
|
|
34
|
+
"grid"
|
|
35
|
+
],
|
|
36
|
+
"author": "righ",
|
|
37
|
+
"license": "Apache-2.0",
|
|
38
|
+
"files": [
|
|
39
|
+
"dist/",
|
|
40
|
+
"package.json",
|
|
41
|
+
"README.md",
|
|
42
|
+
"LICENSE"
|
|
43
|
+
],
|
|
44
|
+
"bugs": {
|
|
45
|
+
"url": "https://github.com/walkframe/gridsheet/issues"
|
|
46
|
+
},
|
|
47
|
+
"homepage": "https://gridsheet.walkframe.com/",
|
|
48
|
+
"packageManager": "pnpm@10.6.5",
|
|
49
|
+
"devDependencies": {
|
|
50
|
+
"@types/jest": "^29.5.14",
|
|
51
|
+
"jest": "^29.4.3",
|
|
52
|
+
"ts-jest": "^29.0.5",
|
|
53
|
+
"typescript": "^5.8.2",
|
|
54
|
+
"vite": "^6.2.2",
|
|
55
|
+
"vite-plugin-dts": "^4.5.3"
|
|
56
|
+
},
|
|
57
|
+
"dependencies": {
|
|
58
|
+
"dayjs": "^1.11.13"
|
|
59
|
+
},
|
|
60
|
+
"publishConfig": {
|
|
61
|
+
"access": "public"
|
|
62
|
+
}
|
|
63
|
+
}
|