@univerjs/sheets-formula 0.1.12 → 0.1.14

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.
@@ -1,10 +1,10 @@
1
1
  import { Workbook, Disposable, ICommandService, ThemeService } from '@univerjs/core';
2
2
  import { FormulaDataModel, LexerTreeBuilder } from '@univerjs/engine-formula';
3
- import { IRenderContext, IRenderController, IRenderManagerService } from '@univerjs/engine-render';
3
+ import { IRenderContext, IRenderModule, IRenderManagerService } from '@univerjs/engine-render';
4
4
  import { SheetInterceptorService } from '@univerjs/sheets';
5
5
  import { IEditorBridgeService, ISelectionRenderService, SheetSkeletonManagerService } from '@univerjs/sheets-ui';
6
6
 
7
- export declare class FormulaEditorShowController extends Disposable implements IRenderController {
7
+ export declare class FormulaEditorShowController extends Disposable implements IRenderModule {
8
8
  private readonly _context;
9
9
  private _editorBridgeService;
10
10
  private readonly _formulaDataModel;
@@ -1,11 +1,8 @@
1
1
  import { RxDisposable } from '@univerjs/core';
2
- import { SheetSkeletonManagerService } from '@univerjs/sheets-ui';
3
2
  import { SheetInterceptorService } from '@univerjs/sheets';
4
3
 
5
- export declare class FormulaRenderController extends RxDisposable {
6
- private readonly _sheetSkeletonManagerService;
4
+ export declare class FormulaRenderManagerController extends RxDisposable {
7
5
  private readonly _sheetInterceptorService;
8
- constructor(_sheetSkeletonManagerService: SheetSkeletonManagerService, _sheetInterceptorService: SheetInterceptorService);
6
+ constructor(_sheetInterceptorService: SheetInterceptorService);
9
7
  private _init;
10
- private _initViewModelIntercept;
11
8
  }
@@ -3,7 +3,7 @@ import { DocViewModelManagerService, TextSelectionManagerService } from '@univer
3
3
  import { LexerTreeBuilder } from '@univerjs/engine-formula';
4
4
  import { IRenderManagerService, ITextSelectionRenderManager } from '@univerjs/engine-render';
5
5
  import { SelectionManagerService } from '@univerjs/sheets';
6
- import { EditorBridgeService, ISelectionRenderService, SheetSkeletonManagerService } from '@univerjs/sheets-ui';
6
+ import { EditorBridgeService, ISelectionRenderService } from '@univerjs/sheets-ui';
7
7
  import { IContextMenuService, IEditorService } from '@univerjs/ui';
8
8
  import { IDescriptionService } from '../services/description.service';
9
9
  import { IFormulaPromptService } from '../services/prompt.service';
@@ -18,7 +18,6 @@ export declare class PromptController extends Disposable {
18
18
  private readonly _renderManagerService;
19
19
  private readonly _themeService;
20
20
  private readonly _selectionManagerService;
21
- private readonly _sheetSkeletonManagerService;
22
21
  private readonly _univerInstanceService;
23
22
  private readonly _selectionRenderService;
24
23
  private readonly _descriptionService;
@@ -40,7 +39,7 @@ export declare class PromptController extends Disposable {
40
39
  private _userCursorMove;
41
40
  private _previousEditorUnitId;
42
41
  private _existsSequenceNode;
43
- constructor(_commandService: ICommandService, _contextService: IContextService, _textSelectionRenderManager: ITextSelectionRenderManager, _editorBridgeService: EditorBridgeService, _formulaPromptService: IFormulaPromptService, _lexerTreeBuilder: LexerTreeBuilder, _renderManagerService: IRenderManagerService, _themeService: ThemeService, _selectionManagerService: SelectionManagerService, _sheetSkeletonManagerService: SheetSkeletonManagerService, _univerInstanceService: IUniverInstanceService, _selectionRenderService: ISelectionRenderService, _descriptionService: IDescriptionService, _textSelectionManagerService: TextSelectionManagerService, _docViewModelManagerService: DocViewModelManagerService, _contextMenuService: IContextMenuService, _editorService: IEditorService);
42
+ constructor(_commandService: ICommandService, _contextService: IContextService, _textSelectionRenderManager: ITextSelectionRenderManager, _editorBridgeService: EditorBridgeService, _formulaPromptService: IFormulaPromptService, _lexerTreeBuilder: LexerTreeBuilder, _renderManagerService: IRenderManagerService, _themeService: ThemeService, _selectionManagerService: SelectionManagerService, _univerInstanceService: IUniverInstanceService, _selectionRenderService: ISelectionRenderService, _descriptionService: IDescriptionService, _textSelectionManagerService: TextSelectionManagerService, _docViewModelManagerService: DocViewModelManagerService, _contextMenuService: IContextMenuService, _editorService: IEditorService);
44
43
  dispose(): void;
45
44
  private _resetTemp;
46
45
  private _initialize;
@@ -14,6 +14,7 @@ export declare class TriggerCalculationController extends Disposable {
14
14
  private _setTimeoutKey;
15
15
  private _startExecutionTime;
16
16
  private _formulaCalculationDoneCount;
17
+ private _arrayFormulaCalculationDoneCount;
17
18
  constructor(_commandService: ICommandService, _activeDirtyManagerService: IActiveDirtyManagerService, _numfmtService: INumfmtService, _formulaDataModel: FormulaDataModel, _progressService: IProgressService);
18
19
  private _initialize;
19
20
  private _commandExecutedListener;
@@ -26,5 +27,10 @@ export declare class TriggerCalculationController extends Disposable {
26
27
  * Update progress by completed count
27
28
  * @param completedCount
28
29
  */
29
- private _pushTask;
30
+ private _pushFormulaTask;
31
+ /**
32
+ * Update progress by completed count
33
+ * @param completedCount
34
+ */
35
+ private _pushArrayFormulaTask;
30
36
  }
@@ -8,3 +8,9 @@ export declare function whenEditorStandalone(contextService: IContextService): b
8
8
  * @returns
9
9
  */
10
10
  export declare function extractFormulaError(cell: Nullable<ICellData>): ErrorType | null;
11
+ /**
12
+ * Extract the formula number from the cell, handle the precision issue
13
+ * @param cell
14
+ * @returns
15
+ */
16
+ export declare function extractFormulaNumber(cell: Nullable<ICellData>): number | null;
@@ -14,7 +14,6 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  export { UniverSheetsFormulaPlugin } from './formula-ui-plugin';
17
- export { enUS, zhCN, ruRU } from './locale';
18
17
  export { IDescriptionService } from './services/description.service';
19
18
  export { DescriptionService } from './services/description.service';
20
19
  export { FormulaCustomFunctionService, IFormulaCustomFunctionService, } from './services/formula-custom-function.service';
@@ -9259,6 +9259,7 @@ declare const _default: {
9259
9259
  array: string;
9260
9260
  univer: string;
9261
9261
  user: string;
9262
+ definedname: string;
9262
9263
  };
9263
9264
  moreFunctions: {
9264
9265
  confirm: string;
@@ -9259,6 +9259,7 @@ declare const _default: {
9259
9259
  array: string;
9260
9260
  univer: string;
9261
9261
  user: string;
9262
+ definedname: string;
9262
9263
  };
9263
9264
  moreFunctions: {
9264
9265
  confirm: string;