@univerjs/sheets-formula 0.1.17 → 0.2.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.
@@ -10,18 +10,22 @@ export declare class TriggerCalculationController extends Disposable {
10
10
  private readonly _formulaDataModel;
11
11
  private readonly _progressService;
12
12
  private _waitingCommandQueue;
13
- private _executingCommandQueue;
13
+ private _executingDirtyData;
14
14
  private _setTimeoutKey;
15
15
  private _startExecutionTime;
16
16
  private _formulaCalculationDoneCount;
17
17
  private _arrayFormulaCalculationDoneCount;
18
+ private _executionInProgressParams;
19
+ private _restartCalculation;
18
20
  constructor(_commandService: ICommandService, _activeDirtyManagerService: IActiveDirtyManagerService, _numfmtService: INumfmtService, _formulaDataModel: FormulaDataModel, _progressService: IProgressService);
19
21
  private _initialize;
20
22
  private _commandExecutedListener;
21
23
  private _generateDirty;
24
+ private _mergeDirty;
22
25
  private _mergeDirtyNameMap;
23
26
  private _mergeDirtyUnitFeatureOrOtherFormulaMap;
24
27
  private _initialExecuteFormulaProcessListener;
28
+ private _resetExecutingDirtyData;
25
29
  private _initialExecuteFormula;
26
30
  /**
27
31
  * Update progress by completed count
@@ -2,6 +2,7 @@ import { Disposable, ICommandService, IUniverInstanceService } from '@univerjs/c
2
2
  import { FormulaDataModel, LexerTreeBuilder } from '@univerjs/engine-formula';
3
3
  import { SelectionManagerService, SheetInterceptorService } from '@univerjs/sheets';
4
4
  import { Injector } from '@wendellhu/redi';
5
+ import { IEditorService } from '@univerjs/ui';
5
6
 
6
7
  /**
7
8
  * Update formula process
@@ -21,8 +22,9 @@ export declare class UpdateFormulaController extends Disposable {
21
22
  private readonly _formulaDataModel;
22
23
  private _sheetInterceptorService;
23
24
  private _selectionManagerService;
25
+ private readonly _editorService;
24
26
  readonly _injector: Injector;
25
- constructor(_univerInstanceService: IUniverInstanceService, _commandService: ICommandService, _lexerTreeBuilder: LexerTreeBuilder, _formulaDataModel: FormulaDataModel, _sheetInterceptorService: SheetInterceptorService, _selectionManagerService: SelectionManagerService, _injector: Injector);
27
+ constructor(_univerInstanceService: IUniverInstanceService, _commandService: ICommandService, _lexerTreeBuilder: LexerTreeBuilder, _formulaDataModel: FormulaDataModel, _sheetInterceptorService: SheetInterceptorService, _selectionManagerService: SelectionManagerService, _editorService: IEditorService, _injector: Injector);
26
28
  private _initialize;
27
29
  private _commandExecutedListener;
28
30
  private _handleSetRangeValuesMutation;
@@ -23,3 +23,12 @@ export { IRegisterFunctionService } from './services/register-function.service';
23
23
  export { FormulaRefRangeService } from './services/formula-ref-range.service';
24
24
  export { RegisterOtherFormulaService } from './services/register-other-formula.service';
25
25
  export type { IFormulaInfo, IOtherFormulaResult } from './services/formula-common';
26
+ export { SheetOnlyPasteFormulaCommand } from './commands/commands/formula-clipboard.command';
27
+ export { InsertFunctionCommand } from './commands/commands/insert-function.command';
28
+ export { OtherFormulaMarkDirty } from './commands/mutations/formula.mutation';
29
+ export { SelectEditorFormulaOperation } from './commands/operations/editor-formula.operation';
30
+ export { HelpFunctionOperation } from './commands/operations/help-function.operation';
31
+ export { InsertFunctionOperation } from './commands/operations/insert-function.operation';
32
+ export { MoreFunctionsOperation } from './commands/operations/more-functions.operation';
33
+ export { ReferenceAbsoluteOperation } from './commands/operations/reference-absolute.operation';
34
+ export { SearchFunctionOperation } from './commands/operations/search-function.operation';
@@ -4391,11 +4391,15 @@ declare const _default: {
4391
4391
  url: string;
4392
4392
  }[];
4393
4393
  functionParameter: {
4394
- number1: {
4394
+ range: {
4395
4395
  name: string;
4396
4396
  detail: string;
4397
4397
  };
4398
- number2: {
4398
+ criteria: {
4399
+ name: string;
4400
+ detail: string;
4401
+ };
4402
+ averageRange: {
4399
4403
  name: string;
4400
4404
  detail: string;
4401
4405
  };
@@ -4409,11 +4413,23 @@ declare const _default: {
4409
4413
  url: string;
4410
4414
  }[];
4411
4415
  functionParameter: {
4412
- number1: {
4416
+ averageRange: {
4413
4417
  name: string;
4414
4418
  detail: string;
4415
4419
  };
4416
- number2: {
4420
+ criteriaRange1: {
4421
+ name: string;
4422
+ detail: string;
4423
+ };
4424
+ criteria1: {
4425
+ name: string;
4426
+ detail: string;
4427
+ };
4428
+ criteriaRange2: {
4429
+ name: string;
4430
+ detail: string;
4431
+ };
4432
+ criteria2: {
4417
4433
  name: string;
4418
4434
  detail: string;
4419
4435
  };
@@ -4697,11 +4713,7 @@ declare const _default: {
4697
4713
  url: string;
4698
4714
  }[];
4699
4715
  functionParameter: {
4700
- number1: {
4701
- name: string;
4702
- detail: string;
4703
- };
4704
- number2: {
4716
+ range: {
4705
4717
  name: string;
4706
4718
  detail: string;
4707
4719
  };
@@ -4715,11 +4727,11 @@ declare const _default: {
4715
4727
  url: string;
4716
4728
  }[];
4717
4729
  functionParameter: {
4718
- number1: {
4730
+ range: {
4719
4731
  name: string;
4720
4732
  detail: string;
4721
4733
  };
4722
- number2: {
4734
+ criteria: {
4723
4735
  name: string;
4724
4736
  detail: string;
4725
4737
  };
@@ -4733,11 +4745,19 @@ declare const _default: {
4733
4745
  url: string;
4734
4746
  }[];
4735
4747
  functionParameter: {
4736
- number1: {
4748
+ criteriaRange1: {
4737
4749
  name: string;
4738
4750
  detail: string;
4739
4751
  };
4740
- number2: {
4752
+ criteria1: {
4753
+ name: string;
4754
+ detail: string;
4755
+ };
4756
+ criteriaRange2: {
4757
+ name: string;
4758
+ detail: string;
4759
+ };
4760
+ criteria2: {
4741
4761
  name: string;
4742
4762
  detail: string;
4743
4763
  };
@@ -5399,11 +5419,11 @@ declare const _default: {
5399
5419
  url: string;
5400
5420
  }[];
5401
5421
  functionParameter: {
5402
- number1: {
5422
+ value1: {
5403
5423
  name: string;
5404
5424
  detail: string;
5405
5425
  };
5406
- number2: {
5426
+ value2: {
5407
5427
  name: string;
5408
5428
  detail: string;
5409
5429
  };
@@ -5483,11 +5503,11 @@ declare const _default: {
5483
5503
  url: string;
5484
5504
  }[];
5485
5505
  functionParameter: {
5486
- number1: {
5506
+ value1: {
5487
5507
  name: string;
5488
5508
  detail: string;
5489
5509
  };
5490
- number2: {
5510
+ value2: {
5491
5511
  name: string;
5492
5512
  detail: string;
5493
5513
  };
@@ -5501,11 +5521,23 @@ declare const _default: {
5501
5521
  url: string;
5502
5522
  }[];
5503
5523
  functionParameter: {
5504
- number1: {
5524
+ minRange: {
5505
5525
  name: string;
5506
5526
  detail: string;
5507
5527
  };
5508
- number2: {
5528
+ criteriaRange1: {
5529
+ name: string;
5530
+ detail: string;
5531
+ };
5532
+ criteria1: {
5533
+ name: string;
5534
+ detail: string;
5535
+ };
5536
+ criteriaRange2: {
5537
+ name: string;
5538
+ detail: string;
5539
+ };
5540
+ criteria2: {
5509
5541
  name: string;
5510
5542
  detail: string;
5511
5543
  };
@@ -6457,11 +6489,7 @@ declare const _default: {
6457
6489
  url: string;
6458
6490
  }[];
6459
6491
  functionParameter: {
6460
- number1: {
6461
- name: string;
6462
- detail: string;
6463
- };
6464
- number2: {
6492
+ number: {
6465
6493
  name: string;
6466
6494
  detail: string;
6467
6495
  };
@@ -6475,11 +6503,7 @@ declare const _default: {
6475
6503
  url: string;
6476
6504
  }[];
6477
6505
  functionParameter: {
6478
- number1: {
6479
- name: string;
6480
- detail: string;
6481
- };
6482
- number2: {
6506
+ number: {
6483
6507
  name: string;
6484
6508
  detail: string;
6485
6509
  };
@@ -6493,11 +6517,7 @@ declare const _default: {
6493
6517
  url: string;
6494
6518
  }[];
6495
6519
  functionParameter: {
6496
- number1: {
6497
- name: string;
6498
- detail: string;
6499
- };
6500
- number2: {
6520
+ number: {
6501
6521
  name: string;
6502
6522
  detail: string;
6503
6523
  };
@@ -6511,11 +6531,11 @@ declare const _default: {
6511
6531
  url: string;
6512
6532
  }[];
6513
6533
  functionParameter: {
6514
- number1: {
6534
+ xNum: {
6515
6535
  name: string;
6516
6536
  detail: string;
6517
6537
  };
6518
- number2: {
6538
+ yNum: {
6519
6539
  name: string;
6520
6540
  detail: string;
6521
6541
  };
@@ -6529,11 +6549,7 @@ declare const _default: {
6529
6549
  url: string;
6530
6550
  }[];
6531
6551
  functionParameter: {
6532
- number1: {
6533
- name: string;
6534
- detail: string;
6535
- };
6536
- number2: {
6552
+ number: {
6537
6553
  name: string;
6538
6554
  detail: string;
6539
6555
  };
@@ -6655,11 +6671,7 @@ declare const _default: {
6655
6671
  url: string;
6656
6672
  }[];
6657
6673
  functionParameter: {
6658
- number1: {
6659
- name: string;
6660
- detail: string;
6661
- };
6662
- number2: {
6674
+ number: {
6663
6675
  name: string;
6664
6676
  detail: string;
6665
6677
  };
@@ -7755,11 +7767,7 @@ declare const _default: {
7755
7767
  url: string;
7756
7768
  }[];
7757
7769
  functionParameter: {
7758
- number1: {
7759
- name: string;
7760
- detail: string;
7761
- };
7762
- number2: {
7770
+ number: {
7763
7771
  name: string;
7764
7772
  detail: string;
7765
7773
  };
@@ -7773,11 +7781,7 @@ declare const _default: {
7773
7781
  url: string;
7774
7782
  }[];
7775
7783
  functionParameter: {
7776
- number1: {
7777
- name: string;
7778
- detail: string;
7779
- };
7780
- number2: {
7784
+ number: {
7781
7785
  name: string;
7782
7786
  detail: string;
7783
7787
  };
@@ -7849,11 +7853,7 @@ declare const _default: {
7849
7853
  url: string;
7850
7854
  }[];
7851
7855
  functionParameter: {
7852
- number1: {
7853
- name: string;
7854
- detail: string;
7855
- };
7856
- number2: {
7856
+ dateText: {
7857
7857
  name: string;
7858
7858
  detail: string;
7859
7859
  };
@@ -8056,16 +8056,7 @@ declare const _default: {
8056
8056
  title: string;
8057
8057
  url: string;
8058
8058
  }[];
8059
- functionParameter: {
8060
- number1: {
8061
- name: string;
8062
- detail: string;
8063
- };
8064
- number2: {
8065
- name: string;
8066
- detail: string;
8067
- };
8068
- };
8059
+ functionParameter: {};
8069
8060
  };
8070
8061
  SECOND: {
8071
8062
  description: string;
@@ -8093,11 +8084,15 @@ declare const _default: {
8093
8084
  url: string;
8094
8085
  }[];
8095
8086
  functionParameter: {
8096
- number1: {
8087
+ hour: {
8097
8088
  name: string;
8098
8089
  detail: string;
8099
8090
  };
8100
- number2: {
8091
+ minute: {
8092
+ name: string;
8093
+ detail: string;
8094
+ };
8095
+ second: {
8101
8096
  name: string;
8102
8097
  detail: string;
8103
8098
  };
@@ -8111,11 +8106,7 @@ declare const _default: {
8111
8106
  url: string;
8112
8107
  }[];
8113
8108
  functionParameter: {
8114
- number1: {
8115
- name: string;
8116
- detail: string;
8117
- };
8118
- number2: {
8109
+ timeText: {
8119
8110
  name: string;
8120
8111
  detail: string;
8121
8112
  };
@@ -62,11 +62,7 @@ declare const _default: {
62
62
  url: string;
63
63
  }[];
64
64
  functionParameter: {
65
- number1: {
66
- name: string;
67
- detail: string;
68
- };
69
- number2: {
65
+ dateText: {
70
66
  name: string;
71
67
  detail: string;
72
68
  };
@@ -269,16 +265,7 @@ declare const _default: {
269
265
  title: string;
270
266
  url: string;
271
267
  }[];
272
- functionParameter: {
273
- number1: {
274
- name: string;
275
- detail: string;
276
- };
277
- number2: {
278
- name: string;
279
- detail: string;
280
- };
281
- };
268
+ functionParameter: {};
282
269
  };
283
270
  SECOND: {
284
271
  description: string;
@@ -306,11 +293,15 @@ declare const _default: {
306
293
  url: string;
307
294
  }[];
308
295
  functionParameter: {
309
- number1: {
296
+ hour: {
310
297
  name: string;
311
298
  detail: string;
312
299
  };
313
- number2: {
300
+ minute: {
301
+ name: string;
302
+ detail: string;
303
+ };
304
+ second: {
314
305
  name: string;
315
306
  detail: string;
316
307
  };
@@ -324,11 +315,7 @@ declare const _default: {
324
315
  url: string;
325
316
  }[];
326
317
  functionParameter: {
327
- number1: {
328
- name: string;
329
- detail: string;
330
- };
331
- number2: {
318
+ timeText: {
332
319
  name: string;
333
320
  detail: string;
334
321
  };
@@ -62,11 +62,7 @@ declare const _default: {
62
62
  url: string;
63
63
  }[];
64
64
  functionParameter: {
65
- number1: {
66
- name: string;
67
- detail: string;
68
- };
69
- number2: {
65
+ dateText: {
70
66
  name: string;
71
67
  detail: string;
72
68
  };
@@ -269,16 +265,7 @@ declare const _default: {
269
265
  title: string;
270
266
  url: string;
271
267
  }[];
272
- functionParameter: {
273
- number1: {
274
- name: string;
275
- detail: string;
276
- };
277
- number2: {
278
- name: string;
279
- detail: string;
280
- };
281
- };
268
+ functionParameter: {};
282
269
  };
283
270
  SECOND: {
284
271
  description: string;
@@ -306,11 +293,15 @@ declare const _default: {
306
293
  url: string;
307
294
  }[];
308
295
  functionParameter: {
309
- number1: {
296
+ hour: {
310
297
  name: string;
311
298
  detail: string;
312
299
  };
313
- number2: {
300
+ minute: {
301
+ name: string;
302
+ detail: string;
303
+ };
304
+ second: {
314
305
  name: string;
315
306
  detail: string;
316
307
  };
@@ -324,11 +315,7 @@ declare const _default: {
324
315
  url: string;
325
316
  }[];
326
317
  functionParameter: {
327
- number1: {
328
- name: string;
329
- detail: string;
330
- };
331
- number2: {
318
+ timeText: {
332
319
  name: string;
333
320
  detail: string;
334
321
  };
@@ -62,11 +62,7 @@ declare const _default: {
62
62
  url: string;
63
63
  }[];
64
64
  functionParameter: {
65
- number1: {
66
- name: string;
67
- detail: string;
68
- };
69
- number2: {
65
+ dateText: {
70
66
  name: string;
71
67
  detail: string;
72
68
  };
@@ -269,16 +265,7 @@ declare const _default: {
269
265
  title: string;
270
266
  url: string;
271
267
  }[];
272
- functionParameter: {
273
- number1: {
274
- name: string;
275
- detail: string;
276
- };
277
- number2: {
278
- name: string;
279
- detail: string;
280
- };
281
- };
268
+ functionParameter: {};
282
269
  };
283
270
  SECOND: {
284
271
  description: string;
@@ -306,11 +293,15 @@ declare const _default: {
306
293
  url: string;
307
294
  }[];
308
295
  functionParameter: {
309
- number1: {
296
+ hour: {
310
297
  name: string;
311
298
  detail: string;
312
299
  };
313
- number2: {
300
+ minute: {
301
+ name: string;
302
+ detail: string;
303
+ };
304
+ second: {
314
305
  name: string;
315
306
  detail: string;
316
307
  };
@@ -324,11 +315,7 @@ declare const _default: {
324
315
  url: string;
325
316
  }[];
326
317
  functionParameter: {
327
- number1: {
328
- name: string;
329
- detail: string;
330
- };
331
- number2: {
318
+ timeText: {
332
319
  name: string;
333
320
  detail: string;
334
321
  };
@@ -132,11 +132,7 @@ declare const _default: {
132
132
  url: string;
133
133
  }[];
134
134
  functionParameter: {
135
- number1: {
136
- name: string;
137
- detail: string;
138
- };
139
- number2: {
135
+ number: {
140
136
  name: string;
141
137
  detail: string;
142
138
  };
@@ -150,11 +146,7 @@ declare const _default: {
150
146
  url: string;
151
147
  }[];
152
148
  functionParameter: {
153
- number1: {
154
- name: string;
155
- detail: string;
156
- };
157
- number2: {
149
+ number: {
158
150
  name: string;
159
151
  detail: string;
160
152
  };
@@ -168,11 +160,7 @@ declare const _default: {
168
160
  url: string;
169
161
  }[];
170
162
  functionParameter: {
171
- number1: {
172
- name: string;
173
- detail: string;
174
- };
175
- number2: {
163
+ number: {
176
164
  name: string;
177
165
  detail: string;
178
166
  };
@@ -186,11 +174,11 @@ declare const _default: {
186
174
  url: string;
187
175
  }[];
188
176
  functionParameter: {
189
- number1: {
177
+ xNum: {
190
178
  name: string;
191
179
  detail: string;
192
180
  };
193
- number2: {
181
+ yNum: {
194
182
  name: string;
195
183
  detail: string;
196
184
  };
@@ -204,11 +192,7 @@ declare const _default: {
204
192
  url: string;
205
193
  }[];
206
194
  functionParameter: {
207
- number1: {
208
- name: string;
209
- detail: string;
210
- };
211
- number2: {
195
+ number: {
212
196
  name: string;
213
197
  detail: string;
214
198
  };
@@ -330,11 +314,7 @@ declare const _default: {
330
314
  url: string;
331
315
  }[];
332
316
  functionParameter: {
333
- number1: {
334
- name: string;
335
- detail: string;
336
- };
337
- number2: {
317
+ number: {
338
318
  name: string;
339
319
  detail: string;
340
320
  };
@@ -1448,11 +1428,7 @@ declare const _default: {
1448
1428
  url: string;
1449
1429
  }[];
1450
1430
  functionParameter: {
1451
- number1: {
1452
- name: string;
1453
- detail: string;
1454
- };
1455
- number2: {
1431
+ number: {
1456
1432
  name: string;
1457
1433
  detail: string;
1458
1434
  };
@@ -1466,11 +1442,7 @@ declare const _default: {
1466
1442
  url: string;
1467
1443
  }[];
1468
1444
  functionParameter: {
1469
- number1: {
1470
- name: string;
1471
- detail: string;
1472
- };
1473
- number2: {
1445
+ number: {
1474
1446
  name: string;
1475
1447
  detail: string;
1476
1448
  };