@univerjs/sheets-formula 0.2.5 → 0.2.7

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 (44) hide show
  1. package/lib/cjs/index.js +4 -4
  2. package/lib/es/index.js +4695 -4511
  3. package/lib/locale/en-US.json +246 -172
  4. package/lib/locale/ru-RU.json +172 -146
  5. package/lib/locale/vi-VN.json +1986 -1481
  6. package/lib/locale/zh-CN.json +287 -213
  7. package/lib/locale/zh-TW.json +371 -329
  8. package/lib/types/controllers/prompt.controller.d.ts +3 -5
  9. package/lib/types/formula-ui-plugin.d.ts +1 -1
  10. package/lib/types/index.d.ts +1 -0
  11. package/lib/types/locale/en-US.d.ts +143 -69
  12. package/lib/types/locale/function-list/date/vi-VN.d.ts +105 -26
  13. package/lib/types/locale/function-list/date/zh-TW.d.ts +32 -8
  14. package/lib/types/locale/function-list/information/ja-JP.d.ts +8 -40
  15. package/lib/types/locale/function-list/information/vi-VN.d.ts +218 -3
  16. package/lib/types/locale/function-list/logical/en-US.d.ts +31 -33
  17. package/lib/types/locale/function-list/logical/ja-JP.d.ts +31 -33
  18. package/lib/types/locale/function-list/logical/vi-VN.d.ts +31 -33
  19. package/lib/types/locale/function-list/logical/zh-CN.d.ts +31 -33
  20. package/lib/types/locale/function-list/logical/zh-TW.d.ts +31 -33
  21. package/lib/types/locale/function-list/lookup/en-US.d.ts +54 -26
  22. package/lib/types/locale/function-list/lookup/ja-JP.d.ts +54 -26
  23. package/lib/types/locale/function-list/lookup/vi-VN.d.ts +421 -9
  24. package/lib/types/locale/function-list/lookup/zh-CN.d.ts +54 -26
  25. package/lib/types/locale/function-list/lookup/zh-TW.d.ts +54 -26
  26. package/lib/types/locale/function-list/math/en-US.d.ts +2 -2
  27. package/lib/types/locale/function-list/math/ja-JP.d.ts +2 -2
  28. package/lib/types/locale/function-list/math/vi-VN.d.ts +1022 -3
  29. package/lib/types/locale/function-list/math/zh-CN.d.ts +2 -2
  30. package/lib/types/locale/function-list/math/zh-TW.d.ts +23 -79
  31. package/lib/types/locale/function-list/statistical/vi-VN.d.ts +334 -0
  32. package/lib/types/locale/function-list/text/en-US.d.ts +56 -8
  33. package/lib/types/locale/function-list/text/ja-JP.d.ts +56 -8
  34. package/lib/types/locale/function-list/text/vi-VN.d.ts +135 -1
  35. package/lib/types/locale/function-list/text/zh-CN.d.ts +56 -8
  36. package/lib/types/locale/function-list/text/zh-TW.d.ts +56 -8
  37. package/lib/types/locale/ru-RU.d.ts +87 -61
  38. package/lib/types/locale/vi-VN.d.ts +953 -482
  39. package/lib/types/locale/zh-CN.d.ts +143 -69
  40. package/lib/types/locale/zh-TW.d.ts +196 -154
  41. package/lib/types/services/prompt.service.d.ts +5 -1
  42. package/lib/types/services/render-services/ref-selections.render-service.d.ts +4 -2
  43. package/lib/umd/index.js +4 -4
  44. package/package.json +25 -25
@@ -1,8 +1,10 @@
1
- import { Direction, IDisposable } from '@univerjs/core';
1
+ import { Direction, IDisposable, IContextService } from '@univerjs/core';
2
2
  import { IFunctionInfo, ISequenceNode } from '@univerjs/engine-formula';
3
3
  import { Observable } from 'rxjs';
4
4
  import { ISearchItem } from './description.service';
5
5
 
6
+ /** If the formula prompt is visible. */
7
+ export declare const FORMULA_PROMPT_ACTIVATED = "FORMULA_PROMPT_ACTIVATED";
6
8
  export interface ISearchFunctionOperationParams {
7
9
  /**
8
10
  * show SearchFunction Component or not
@@ -96,6 +98,7 @@ export interface IFormulaPromptService {
96
98
  }
97
99
  export declare const IFormulaPromptService: import('@univerjs/core').IdentifierDecorator<FormulaPromptService>;
98
100
  export declare class FormulaPromptService implements IFormulaPromptService, IDisposable {
101
+ private readonly _contextService;
99
102
  private readonly _search$;
100
103
  private readonly _help$;
101
104
  private readonly _navigate$;
@@ -111,6 +114,7 @@ export declare class FormulaPromptService implements IFormulaPromptService, IDis
111
114
  private _sequenceNodes;
112
115
  private _isLockedOnSelectionChangeRefString;
113
116
  private _isLockedOnSelectionInsertRefString;
117
+ constructor(_contextService: IContextService);
114
118
  dispose(): void;
115
119
  search(param: ISearchFunctionOperationParams): void;
116
120
  isSearching(): boolean;
@@ -1,6 +1,6 @@
1
1
  import { IDisposable, Workbook, Injector, ThemeService } from '@univerjs/core';
2
2
  import { IRenderContext, IRenderModule, IRenderManagerService } from '@univerjs/engine-render';
3
- import { SheetsSelectionsService } from '@univerjs/sheets';
3
+ import { ISelectionWithStyle, SheetsSelectionsService } from '@univerjs/sheets';
4
4
  import { BaseSelectionRenderService, SheetSkeletonManagerService } from '@univerjs/sheets-ui';
5
5
  import { IShortcutService } from '@univerjs/ui';
6
6
 
@@ -13,10 +13,11 @@ import { IShortcutService } from '@univerjs/ui';
13
13
  */
14
14
  export declare class RefSelectionsRenderService extends BaseSelectionRenderService implements IRenderModule {
15
15
  private readonly _context;
16
+ private readonly _refSelectionsService;
16
17
  private readonly _sheetSkeletonManagerService;
17
18
  private readonly _workbookSelections;
18
19
  private _eventDisposables;
19
- constructor(_context: IRenderContext<Workbook>, injector: Injector, themeService: ThemeService, shortcutService: IShortcutService, renderManagerService: IRenderManagerService, refSelectionsService: SheetsSelectionsService, _sheetSkeletonManagerService: SheetSkeletonManagerService);
20
+ constructor(_context: IRenderContext<Workbook>, injector: Injector, themeService: ThemeService, shortcutService: IShortcutService, renderManagerService: IRenderManagerService, _refSelectionsService: SheetsSelectionsService, _sheetSkeletonManagerService: SheetSkeletonManagerService);
20
21
  getLocation(): [string, string];
21
22
  setRemainLastEnabled(enabled: boolean): void;
22
23
  setSkipLastEnabled(enabled: boolean): void;
@@ -31,6 +32,7 @@ export declare class RefSelectionsRenderService extends BaseSelectionRenderServi
31
32
  private _updateSelections;
32
33
  private _initSelectionChangeListener;
33
34
  private _initSkeletonChangeListener;
35
+ protected _refreshSelectionControl(selectionsData: readonly ISelectionWithStyle[]): void;
34
36
  private _getActiveViewport;
35
37
  private _getSheetObject;
36
38
  }