@univerjs/sheets-formula 0.2.8 → 0.2.10

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.
Files changed (37) hide show
  1. package/lib/cjs/index.js +4 -4
  2. package/lib/es/index.js +908 -451
  3. package/lib/locale/en-US.json +595 -351
  4. package/lib/locale/ru-RU.json +595 -351
  5. package/lib/locale/vi-VN.json +666 -322
  6. package/lib/locale/zh-CN.json +604 -360
  7. package/lib/locale/zh-TW.json +603 -359
  8. package/lib/types/controllers/formula-editor-show.controller.d.ts +7 -3
  9. package/lib/types/controllers/prompt.controller.d.ts +6 -1
  10. package/lib/types/locale/en-US.d.ts +464 -220
  11. package/lib/types/locale/function-list/compatibility/en-US.d.ts +6 -2
  12. package/lib/types/locale/function-list/compatibility/ja-JP.d.ts +6 -2
  13. package/lib/types/locale/function-list/compatibility/vi-VN.d.ts +6 -2
  14. package/lib/types/locale/function-list/compatibility/zh-CN.d.ts +6 -2
  15. package/lib/types/locale/function-list/compatibility/zh-TW.d.ts +6 -2
  16. package/lib/types/locale/function-list/engineering/en-US.d.ts +32 -112
  17. package/lib/types/locale/function-list/engineering/ja-JP.d.ts +32 -112
  18. package/lib/types/locale/function-list/engineering/vi-VN.d.ts +32 -112
  19. package/lib/types/locale/function-list/engineering/zh-CN.d.ts +32 -112
  20. package/lib/types/locale/function-list/engineering/zh-TW.d.ts +32 -112
  21. package/lib/types/locale/function-list/financial/en-US.d.ts +364 -52
  22. package/lib/types/locale/function-list/financial/ja-JP.d.ts +364 -52
  23. package/lib/types/locale/function-list/financial/vi-VN.d.ts +412 -46
  24. package/lib/types/locale/function-list/financial/zh-CN.d.ts +364 -52
  25. package/lib/types/locale/function-list/financial/zh-TW.d.ts +364 -52
  26. package/lib/types/locale/function-list/statistical/en-US.d.ts +12 -4
  27. package/lib/types/locale/function-list/statistical/ja-JP.d.ts +12 -4
  28. package/lib/types/locale/function-list/statistical/vi-VN.d.ts +44 -0
  29. package/lib/types/locale/function-list/statistical/zh-CN.d.ts +12 -4
  30. package/lib/types/locale/function-list/statistical/zh-TW.d.ts +12 -4
  31. package/lib/types/locale/ru-RU.d.ts +464 -220
  32. package/lib/types/locale/vi-VN.d.ts +494 -160
  33. package/lib/types/locale/zh-CN.d.ts +464 -220
  34. package/lib/types/locale/zh-TW.d.ts +464 -220
  35. package/lib/types/services/render-services/ref-selections.render-service.d.ts +8 -3
  36. package/lib/umd/index.js +4 -4
  37. package/package.json +24 -24
@@ -1,6 +1,6 @@
1
- import { Workbook, Disposable, ICommandService, ThemeService } from '@univerjs/core';
1
+ import { Workbook, Disposable, ICommandService, ILogService, ThemeService } from '@univerjs/core';
2
2
  import { FormulaDataModel } from '@univerjs/engine-formula';
3
- import { IRenderContext, IRenderModule, IRenderManagerService } from '@univerjs/engine-render';
3
+ import { IRenderContext, IRenderModule, SpreadsheetSkeleton, IRenderManagerService } from '@univerjs/engine-render';
4
4
  import { IEditorBridgeService, SheetSkeletonManagerService } from '@univerjs/sheets-ui';
5
5
  export declare class FormulaEditorShowController extends Disposable implements IRenderModule {
6
6
  private readonly _context;
@@ -10,8 +10,12 @@ export declare class FormulaEditorShowController extends Disposable implements I
10
10
  private readonly _renderManagerService;
11
11
  private readonly _sheetSkeletonManagerService;
12
12
  private readonly _commandService;
13
+ private readonly _logService;
13
14
  private _previousShape;
14
- constructor(_context: IRenderContext<Workbook>, _editorBridgeService: IEditorBridgeService, _formulaDataModel: FormulaDataModel, _themeService: ThemeService, _renderManagerService: IRenderManagerService, _sheetSkeletonManagerService: SheetSkeletonManagerService, _commandService: ICommandService);
15
+ private _skeleton;
16
+ constructor(_context: IRenderContext<Workbook>, _editorBridgeService: IEditorBridgeService, _formulaDataModel: FormulaDataModel, _themeService: ThemeService, _renderManagerService: IRenderManagerService, _sheetSkeletonManagerService: SheetSkeletonManagerService, _commandService: ICommandService, _logService: ILogService);
17
+ private _initSkeletonChangeListener;
18
+ protected _changeRuntime(skeleton: SpreadsheetSkeleton): void;
15
19
  private _initInterceptorEditorStart;
16
20
  private _commandExecutedListener;
17
21
  private _displayArrayFormulaRangeShape;
@@ -39,7 +39,7 @@ export declare class PromptController extends Disposable {
39
39
  private _existsSequenceNode;
40
40
  private get _selectionRenderService();
41
41
  /**
42
- * If there are multiple sheet instances, we should enable or disable all of them.
42
+ * For multiple sheet instances.
43
43
  */
44
44
  private get _allSelectionRenderServices();
45
45
  constructor(_commandService: ICommandService, _contextService: IContextService, _textSelectionRenderManager: ITextSelectionRenderManager, _editorBridgeService: EditorBridgeService, _formulaPromptService: IFormulaPromptService, _lexerTreeBuilder: LexerTreeBuilder, _renderManagerService: IRenderManagerService, _themeService: ThemeService, _sheetsSelectionsService: SheetsSelectionsService, _refSelectionsService: SheetsSelectionsService, _univerInstanceService: IUniverInstanceService, _descriptionService: IDescriptionService, _textSelectionManagerService: TextSelectionManagerService, _contextMenuService: IContextMenuService, _editorService: IEditorService);
@@ -53,6 +53,9 @@ export declare class PromptController extends Disposable {
53
53
  private _initialChangeEditor;
54
54
  private _closeRangePrompt;
55
55
  private _initSelectionsEndListener;
56
+ /**
57
+ * For interaction with mouse & keyboard shortcuts on spreadsheet. Not in formula editor.
58
+ */
56
59
  private _updateSelecting;
57
60
  private _currentlyWorkingRefRenderer;
58
61
  private _selectionsChangeDisposables;
@@ -116,7 +119,9 @@ export declare class PromptController extends Disposable {
116
119
  */
117
120
  private _generateRefString;
118
121
  /**
122
+ * Update Editor formula text in prompt editor by current selection in spreadsheet.
119
123
  * Restore the sequenceNode generated by the lexer to the text in the editor, and set the cursor position.
124
+ *
120
125
  * @param sequenceNodes
121
126
  * @param textSelectionOffset
122
127
  */