@fileverse-dev/fortune-core 1.0.2-mod-12 → 1.0.2-mod-10-test-1

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.
@@ -21,7 +21,6 @@ declare const _default: {
21
21
  moreFormats: string;
22
22
  "border-all": string;
23
23
  "merge-all": string;
24
- format: string;
25
24
  font: string;
26
25
  "font-size": string;
27
26
  bold: string;
@@ -152,40 +151,12 @@ declare const _default: {
152
151
  tipRowHeightLimit: string;
153
152
  tipColumnWidthLimit: string;
154
153
  pageInfoFull: string;
155
- sheetIsFocused: string;
156
- sheetNotFocused: string;
157
- sheetSrIntro: string;
158
- currentCellInput: string;
159
- newSheet: string;
160
- sheetOptions: string;
161
- Dropdown: string;
162
- zoomIn: string;
163
- zoomOut: string;
164
- toggleSheetFocusShortcut: string;
165
- selectRangeShortcut: string;
166
- autoFillDownShortcut: string;
167
- autoFillRightShortcut: string;
168
- boldTextShortcut: string;
169
- copyShortcut: string;
170
- pasteShortcut: string;
171
- undoShortcut: string;
172
- redoShortcut: string;
173
- deleteCellContentShortcut: string;
174
- confirmCellEditShortcut: string;
175
- moveRightShortcut: string;
176
- moveLeftShortcut: string;
177
- shortcuts: string;
178
154
  };
179
155
  currencyDetail: {
180
156
  name: string;
181
157
  pos: string;
182
158
  value: string;
183
159
  }[];
184
- numberFmtList: {
185
- name: string;
186
- pos: string;
187
- value: string;
188
- }[];
189
160
  defaultFmt: (currency: string) => ({
190
161
  text: string;
191
162
  value: string;
@@ -59,7 +59,6 @@ declare const _default: {
59
59
  numberDecrease: string;
60
60
  numberIncrease: string;
61
61
  moreFormats: string;
62
- format: string;
63
62
  font: string;
64
63
  "font-size": string;
65
64
  bold: string;
@@ -178,29 +177,6 @@ declare const _default: {
178
177
  tipRowHeightLimit: string;
179
178
  tipColumnWidthLimit: string;
180
179
  pageInfoFull: string;
181
- sheetIsFocused: string;
182
- sheetNotFocused: string;
183
- sheetSrIntro: string;
184
- currentCellInput: string;
185
- newSheet: string;
186
- sheetOptions: string;
187
- Dropdown: string;
188
- zoomIn: string;
189
- zoomOut: string;
190
- toggleSheetFocusShortcut: string;
191
- selectRangeShortcut: string;
192
- autoFillDownShortcut: string;
193
- autoFillRightShortcut: string;
194
- boldTextShortcut: string;
195
- copyShortcut: string;
196
- pasteShortcut: string;
197
- undoShortcut: string;
198
- redoShortcut: string;
199
- deleteCellContentShortcut: string;
200
- confirmCellEditShortcut: string;
201
- moveRightShortcut: string;
202
- moveLeftShortcut: string;
203
- shortcuts: string;
204
180
  };
205
181
  currencyDetail: {
206
182
  RMB: string;
@@ -361,11 +337,6 @@ declare const _default: {
361
337
  ChileanPeso: string;
362
338
  CFAFrancBEAC: string;
363
339
  };
364
- numberFmtList: {
365
- name: string;
366
- pos: string;
367
- value: string;
368
- }[];
369
340
  defaultFmt: (currency: string) => {
370
341
  text: string;
371
342
  value: string;
@@ -61,7 +61,6 @@ declare const _default: {
61
61
  "number-decrease": string;
62
62
  "number-increase": string;
63
63
  moreFormats: string;
64
- format: string;
65
64
  "border-all": string;
66
65
  "merge-all": string;
67
66
  font: string;
@@ -194,40 +193,12 @@ declare const _default: {
194
193
  tipRowHeightLimit: string;
195
194
  tipColumnWidthLimit: string;
196
195
  pageInfoFull: string;
197
- sheetIsFocused: string;
198
- sheetNotFocused: string;
199
- sheetSrIntro: string;
200
- currentCellInput: string;
201
- newSheet: string;
202
- sheetOptions: string;
203
- Dropdown: string;
204
- zoomIn: string;
205
- zoomOut: string;
206
- toggleSheetFocusShortcut: string;
207
- selectRangeShortcut: string;
208
- autoFillDownShortcut: string;
209
- autoFillRightShortcut: string;
210
- boldTextShortcut: string;
211
- copyShortcut: string;
212
- pasteShortcut: string;
213
- undoShortcut: string;
214
- redoShortcut: string;
215
- deleteCellContentShortcut: string;
216
- confirmCellEditShortcut: string;
217
- moveRightShortcut: string;
218
- moveLeftShortcut: string;
219
- shortcuts: string;
220
196
  };
221
197
  currencyDetail: {
222
198
  name: string;
223
199
  pos: string;
224
200
  value: string;
225
201
  }[];
226
- numberFmtList: {
227
- name: string;
228
- pos: string;
229
- value: string;
230
- }[];
231
202
  defaultFmt: (currency: string) => ({
232
203
  text: string;
233
204
  value: string;
@@ -63,7 +63,6 @@ declare function locale(ctx: Context): {
63
63
  moreFormats: string;
64
64
  "border-all": string;
65
65
  "merge-all": string;
66
- format: string;
67
66
  font: string;
68
67
  "font-size": string;
69
68
  bold: string;
@@ -194,40 +193,12 @@ declare function locale(ctx: Context): {
194
193
  tipRowHeightLimit: string;
195
194
  tipColumnWidthLimit: string;
196
195
  pageInfoFull: string;
197
- sheetIsFocused: string;
198
- sheetNotFocused: string;
199
- sheetSrIntro: string;
200
- currentCellInput: string;
201
- newSheet: string;
202
- sheetOptions: string;
203
- Dropdown: string;
204
- zoomIn: string;
205
- zoomOut: string;
206
- toggleSheetFocusShortcut: string;
207
- selectRangeShortcut: string;
208
- autoFillDownShortcut: string;
209
- autoFillRightShortcut: string;
210
- boldTextShortcut: string;
211
- copyShortcut: string;
212
- pasteShortcut: string;
213
- undoShortcut: string;
214
- redoShortcut: string;
215
- deleteCellContentShortcut: string;
216
- confirmCellEditShortcut: string;
217
- moveRightShortcut: string;
218
- moveLeftShortcut: string;
219
- shortcuts: string;
220
196
  };
221
197
  currencyDetail: {
222
198
  name: string;
223
199
  pos: string;
224
200
  value: string;
225
201
  }[];
226
- numberFmtList: {
227
- name: string;
228
- pos: string;
229
- value: string;
230
- }[];
231
202
  defaultFmt: (currency: string) => ({
232
203
  text: string;
233
204
  value: string;
@@ -62,7 +62,6 @@ declare const _default: {
62
62
  moreFormats: string;
63
63
  "border-all": string;
64
64
  "merge-all": string;
65
- format: string;
66
65
  font: string;
67
66
  "font-size": string;
68
67
  bold: string;
@@ -193,40 +192,12 @@ declare const _default: {
193
192
  tipRowHeightLimit: string;
194
193
  tipColumnWidthLimit: string;
195
194
  pageInfoFull: string;
196
- sheetIsFocused: string;
197
- sheetNotFocused: string;
198
- sheetSrIntro: string;
199
- currentCellInput: string;
200
- newSheet: string;
201
- sheetOptions: string;
202
- Dropdown: string;
203
- zoomIn: string;
204
- zoomOut: string;
205
- toggleSheetFocusShortcut: string;
206
- selectRangeShortcut: string;
207
- autoFillDownShortcut: string;
208
- autoFillRightShortcut: string;
209
- boldTextShortcut: string;
210
- copyShortcut: string;
211
- pasteShortcut: string;
212
- undoShortcut: string;
213
- redoShortcut: string;
214
- deleteCellContentShortcut: string;
215
- confirmCellEditShortcut: string;
216
- moveRightShortcut: string;
217
- moveLeftShortcut: string;
218
- shortcuts: string;
219
195
  };
220
196
  currencyDetail: {
221
197
  name: string;
222
198
  pos: string;
223
199
  value: string;
224
200
  }[];
225
- numberFmtList: {
226
- name: string;
227
- pos: string;
228
- value: string;
229
- }[];
230
201
  defaultFmt: (currency: string) => ({
231
202
  text: string;
232
203
  value: string;
@@ -73,7 +73,6 @@ declare const _default: {
73
73
  numberDecrease: string;
74
74
  numberIncrease: string;
75
75
  moreFormats: string;
76
- format: string;
77
76
  font: string;
78
77
  "font-size": string;
79
78
  bold: string;
@@ -193,29 +192,6 @@ declare const _default: {
193
192
  tipRowHeightLimit: string;
194
193
  tipColumnWidthLimit: string;
195
194
  pageInfoFull: string;
196
- sheetIsFocused: string;
197
- sheetNotFocused: string;
198
- sheetSrIntro: string;
199
- currentCellInput: string;
200
- newSheet: string;
201
- sheetOptions: string;
202
- Dropdown: string;
203
- zoomIn: string;
204
- zoomOut: string;
205
- toggleSheetFocusShortcut: string;
206
- selectRangeShortcut: string;
207
- autoFillDownShortcut: string;
208
- autoFillRightShortcut: string;
209
- boldTextShortcut: string;
210
- copyShortcut: string;
211
- pasteShortcut: string;
212
- undoShortcut: string;
213
- redoShortcut: string;
214
- deleteCellContentShortcut: string;
215
- confirmCellEditShortcut: string;
216
- moveRightShortcut: string;
217
- moveLeftShortcut: string;
218
- shortcuts: string;
219
195
  };
220
196
  currencyDetail: {
221
197
  RMB: string;
@@ -376,11 +352,6 @@ declare const _default: {
376
352
  ChileanPeso: string;
377
353
  CFAFrancBEAC: string;
378
354
  };
379
- numberFmtList: {
380
- name: string;
381
- pos: string;
382
- value: string;
383
- }[];
384
355
  defaultFmt: (currency: string) => {
385
356
  text: string;
386
357
  value: string;
@@ -1,5 +1,5 @@
1
1
  import { Context } from "../context";
2
- import { Cell, CellMatrix, FormulaDependency, Range, Selection, SingleRange } from "../types";
2
+ import { Cell, CellMatrix, Range, Selection, SingleRange } from "../types";
3
3
  export declare function normalizedCellAttr(cell: Cell, attr: keyof Cell, defaultFontSize?: number): any;
4
4
  export declare function normalizedAttr(data: CellMatrix, r: number, c: number, attr: keyof Cell): any;
5
5
  export declare function getCellValue(r: number, c: number, data: CellMatrix, attr?: keyof Cell): any;
@@ -21,7 +21,7 @@ export declare function getFlattenedRange(ctx: Context, range?: Range): {
21
21
  c: number;
22
22
  }[];
23
23
  export declare function getRangetxt(ctx: Context, sheetId: string, range: SingleRange, currentId?: string): string;
24
- export declare function getRangeByTxt(ctx: Context, txt: string): (FormulaDependency | null)[];
24
+ export declare function getRangeByTxt(ctx: Context, txt: string): any[];
25
25
  export declare function isAllSelectedCellsInStatus(ctx: Context, attr: keyof Cell, status: any): boolean;
26
26
  export declare function getFontStyleByCell(cell: Cell | null | undefined, checksAF?: any[], checksCF?: any, isCheck?: boolean): any;
27
27
  export declare function getStyleByCell(ctx: Context, d: CellMatrix, r: number, c: number): any;
@@ -1,6 +1,5 @@
1
- import type { Cell, CellMatrix, FormulaDependency, FormulaCell, FormulaCellInfoMap, History, Rect, Selection } from "../types";
1
+ import type { Cell, Rect, Selection } from "../types";
2
2
  import { Context } from "../context";
3
- export declare function isFormula(value: any): boolean;
4
3
  export declare class FormulaCache {
5
4
  parser: any;
6
5
  func_selectedrange?: Selection;
@@ -25,20 +24,16 @@ export declare class FormulaCache {
25
24
  functionlistMap: any;
26
25
  execFunctionExist?: any[];
27
26
  execFunctionGlobalData: any;
28
- formulaCellInfoMap: FormulaCellInfoMap | null;
29
27
  constructor();
30
28
  tryGetCellAsNumber(cell: Cell): string | number | boolean | undefined;
31
- updateFormulaCache(ctx: Context, history: History, type: "undo" | "redo", data?: CellMatrix): void;
32
29
  }
33
30
  export declare function iscelldata(txt: string): boolean;
34
- export declare function getcellrange(ctx: Context, txt: string, formulaId?: string, data?: CellMatrix): FormulaDependency | null;
35
- export declare function isFunctionRange(ctx: Context, txt: string, r: number | null, c: number | null, id: string, dynamicArray_compute: any, cellRangeFunction: any): string;
36
- export declare function getAllFunctionGroup(ctx: Context): FormulaCell[];
31
+ export declare function getcellrange(ctx: Context, txt: string, formulaId?: string): any;
32
+ export declare function getAllFunctionGroup(ctx: Context): any[];
37
33
  export declare function delFunctionGroup(ctx: Context, r: number, c: number, id?: string): void;
38
34
  export declare function insertUpdateFunctionGroup(ctx: Context, r: number, c: number, id?: string, calcChainSet?: Set<string>): void;
39
35
  export declare function execfunction(ctx: Context, txt: string, r: number, c: number, id?: string, calcChainSet?: Set<string>, isrefresh?: boolean, notInsertFunc?: boolean): any[];
40
36
  export declare function groupValuesRefresh(ctx: Context): void;
41
- export declare function setFormulaCellInfoMap(ctx: Context, calcChains?: any[], data?: CellMatrix): void;
42
37
  export declare function execFunctionGroup(ctx: Context, origin_r: number, origin_c: number, value: any, id?: string, data?: any, isForce?: boolean): void;
43
38
  export declare function createFormulaRangeSelect(ctx: Context, select: {
44
39
  rangeIndex: number;
@@ -12,7 +12,7 @@ export declare const error: {
12
12
  export declare function valueIsError(value: string): boolean;
13
13
  export declare function isRealNull(val: any): boolean;
14
14
  export declare function isRealNum(val: any): boolean;
15
- export declare function isdatetime(s: any, format?: string): boolean;
15
+ export declare function isdatetime(s: any): boolean;
16
16
  export declare function diff(now: any, then: any): number;
17
17
  export declare function isdatatypemulti(s: any): any;
18
18
  export declare function isdatatype(s: any): string;
package/dist/types.d.ts CHANGED
@@ -352,36 +352,3 @@ export type SingleRange = {
352
352
  column: number[];
353
353
  };
354
354
  export type Range = SingleRange[];
355
- export type FormulaDependency = {
356
- row: [number, number];
357
- column: [number, number];
358
- sheetId: string | undefined;
359
- };
360
- type AncestorFormulaCell = {
361
- [rxcxix: string]: number;
362
- };
363
- export type FormulaCellInfo = {
364
- formulaDependency: FormulaDependency[];
365
- calc_funcStr: string;
366
- key: string;
367
- r: number;
368
- c: number;
369
- id: string;
370
- parents: AncestorFormulaCell;
371
- chidren: AncestorFormulaCell;
372
- color: string;
373
- };
374
- export type FormulaCellInfoMap = {
375
- [rxcxix: string]: FormulaCellInfo;
376
- };
377
- export type FormulaCell = {
378
- r: number;
379
- c: number;
380
- id: string;
381
- parent?: AncestorFormulaCell;
382
- func?: [boolean, number, string];
383
- color?: string;
384
- chidren?: AncestorFormulaCell;
385
- times?: number;
386
- };
387
- export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fileverse-dev/fortune-core",
3
- "version": "1.0.2-mod-12",
3
+ "version": "1.0.2-mod-10-test-1",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.esm.js",
6
6
  "typings": "dist/index.d.ts",
@@ -10,7 +10,7 @@
10
10
  "repository": "https://github.com/ruilisi/fortune-sheet",
11
11
  "license": "MIT",
12
12
  "dependencies": {
13
- "@fileverse-dev/formula-parser": "^0.2.13-mod-4",
13
+ "@fileverse-dev/formula-parser": "^0.2.13-mod-3",
14
14
  "dayjs": "^1.11.0",
15
15
  "immer": "^9.0.12",
16
16
  "lodash": "^4.17.21",
@@ -1,5 +0,0 @@
1
- import { CellMatrix, Context, FormulaCell } from "..";
2
- export declare function setFormulaCellInfo(ctx: Context, formulaCell: FormulaCell, data?: CellMatrix): void;
3
- export declare function executeAffectedFormulas(ctx: Context, formulaRunList: any[], calcChains: any): void;
4
- export declare function getFormulaRunList(updateValueArray: any[], formulaCellInfoMap: any): any[];
5
- export declare const arrayMatch: (arrayMatchCache: any, formulaDependency: any, _formulaCellInfoMap: any, _updateValueObjects: any, func: any) => void;