@univerjs/sheets-formula 0.2.4 → 0.2.6

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 (49) hide show
  1. package/lib/cjs/index.js +4 -4
  2. package/lib/es/index.js +4882 -4712
  3. package/lib/index.css +1 -1
  4. package/lib/locale/en-US.json +387 -349
  5. package/lib/locale/ru-RU.json +315 -325
  6. package/lib/locale/vi-VN.json +177 -227
  7. package/lib/locale/zh-CN.json +391 -353
  8. package/lib/locale/zh-TW.json +403 -365
  9. package/lib/types/commands/operations/__tests__/create-command-test-bed.d.ts +7 -8
  10. package/lib/types/controllers/__tests__/create-command-test-bed.d.ts +1 -2
  11. package/lib/types/controllers/formula-clipboard.controller.d.ts +1 -2
  12. package/lib/types/controllers/formula-ui.controller.d.ts +1 -2
  13. package/lib/types/controllers/menu.d.ts +1 -1
  14. package/lib/types/controllers/prompt.controller.d.ts +3 -0
  15. package/lib/types/controllers/update-formula.controller.d.ts +1 -2
  16. package/lib/types/formula-ui-plugin.d.ts +2 -3
  17. package/lib/types/locale/en-US.d.ts +207 -169
  18. package/lib/types/locale/function-list/date/en-US.d.ts +25 -17
  19. package/lib/types/locale/function-list/date/ja-JP.d.ts +25 -17
  20. package/lib/types/locale/function-list/date/zh-CN.d.ts +25 -17
  21. package/lib/types/locale/function-list/date/zh-TW.d.ts +27 -19
  22. package/lib/types/locale/function-list/information/en-US.d.ts +4 -12
  23. package/lib/types/locale/function-list/information/ja-JP.d.ts +4 -12
  24. package/lib/types/locale/function-list/information/zh-CN.d.ts +4 -12
  25. package/lib/types/locale/function-list/information/zh-TW.d.ts +4 -12
  26. package/lib/types/locale/function-list/lookup/en-US.d.ts +53 -21
  27. package/lib/types/locale/function-list/lookup/ja-JP.d.ts +53 -21
  28. package/lib/types/locale/function-list/lookup/zh-CN.d.ts +53 -21
  29. package/lib/types/locale/function-list/lookup/zh-TW.d.ts +53 -21
  30. package/lib/types/locale/function-list/math/en-US.d.ts +69 -111
  31. package/lib/types/locale/function-list/math/ja-JP.d.ts +69 -111
  32. package/lib/types/locale/function-list/math/zh-CN.d.ts +69 -111
  33. package/lib/types/locale/function-list/math/zh-TW.d.ts +71 -113
  34. package/lib/types/locale/function-list/text/en-US.d.ts +56 -8
  35. package/lib/types/locale/function-list/text/ja-JP.d.ts +56 -8
  36. package/lib/types/locale/function-list/text/zh-CN.d.ts +56 -8
  37. package/lib/types/locale/function-list/text/zh-TW.d.ts +56 -8
  38. package/lib/types/locale/ru-RU.d.ts +151 -161
  39. package/lib/types/locale/vi-VN.d.ts +73 -123
  40. package/lib/types/locale/zh-CN.d.ts +207 -169
  41. package/lib/types/locale/zh-TW.d.ts +211 -173
  42. package/lib/types/services/description.service.d.ts +2 -3
  43. package/lib/types/services/formula-ref-range.service.d.ts +1 -2
  44. package/lib/types/services/prompt.service.d.ts +2 -3
  45. package/lib/types/services/register-function.service.d.ts +2 -3
  46. package/lib/types/services/remote/remote-register-function.service.d.ts +1 -1
  47. package/lib/types/services/render-services/ref-selections.render-service.d.ts +5 -4
  48. package/lib/umd/index.js +4 -4
  49. package/package.json +25 -27
@@ -1,6 +1,5 @@
1
- import { LocaleService } from '@univerjs/core';
1
+ import { LocaleService, IDisposable } from '@univerjs/core';
2
2
  import { IFunctionInfo, IFunctionNames, IFunctionService } from '@univerjs/engine-formula';
3
- import { IDisposable } from '@wendellhu/redi';
4
3
 
5
4
  export interface ISearchItem {
6
5
  name: string;
@@ -61,7 +60,7 @@ export interface IDescriptionService {
61
60
  */
62
61
  isFormulaDefinedName(name: string): boolean;
63
62
  }
64
- export declare const IDescriptionService: import('@wendellhu/redi').IdentifierDecorator<IDescriptionService>;
63
+ export declare const IDescriptionService: import('@univerjs/core').IdentifierDecorator<IDescriptionService>;
65
64
  export declare class DescriptionService implements IDescriptionService, IDisposable {
66
65
  private _description;
67
66
  private readonly _functionService;
@@ -1,7 +1,6 @@
1
- import { IMutationInfo, Disposable, IUniverInstanceService } from '@univerjs/core';
1
+ import { IDisposable, IMutationInfo, Disposable, IUniverInstanceService } from '@univerjs/core';
2
2
  import { LexerTreeBuilder } from '@univerjs/engine-formula';
3
3
  import { RefRangeService } from '@univerjs/sheets';
4
- import { IDisposable } from '@wendellhu/redi';
5
4
 
6
5
  export type FormulaChangeMap = Record<string, Record<string, Record<string, string>>>;
7
6
  export type FormulaChangeCallback = (formulaString: string) => {
@@ -1,6 +1,5 @@
1
- import { Direction } from '@univerjs/core';
1
+ import { Direction, IDisposable } from '@univerjs/core';
2
2
  import { IFunctionInfo, ISequenceNode } from '@univerjs/engine-formula';
3
- import { IDisposable } from '@wendellhu/redi';
4
3
  import { Observable } from 'rxjs';
5
4
  import { ISearchItem } from './description.service';
6
5
 
@@ -95,7 +94,7 @@ export interface IFormulaPromptService {
95
94
  disableLockedSelectionInsert(): void;
96
95
  isLockedSelectionInsert(): boolean;
97
96
  }
98
- export declare const IFormulaPromptService: import('@wendellhu/redi').IdentifierDecorator<FormulaPromptService>;
97
+ export declare const IFormulaPromptService: import('@univerjs/core').IdentifierDecorator<FormulaPromptService>;
99
98
  export declare class FormulaPromptService implements IFormulaPromptService, IDisposable {
100
99
  private readonly _search$;
101
100
  private readonly _help$;
@@ -1,6 +1,5 @@
1
- import { ILocales, Disposable, LocaleService } from '@univerjs/core';
1
+ import { IDisposable, ILocales, Disposable, LocaleService } from '@univerjs/core';
2
2
  import { IFunctionInfo, PrimitiveValueType, IFunctionService } from '@univerjs/engine-formula';
3
- import { IDisposable } from '@wendellhu/redi';
4
3
  import { IDescriptionService } from './description.service';
5
4
  import { IRemoteRegisterFunctionService } from './remote/remote-register-function.service';
6
5
 
@@ -53,7 +52,7 @@ export interface IRegisterFunctionService {
53
52
  */
54
53
  registerFunctions(params: IRegisterFunctionParams): IDisposable;
55
54
  }
56
- export declare const IRegisterFunctionService: import('@wendellhu/redi').IdentifierDecorator<IRegisterFunctionService>;
55
+ export declare const IRegisterFunctionService: import('@univerjs/core').IdentifierDecorator<IRegisterFunctionService>;
57
56
  export declare class RegisterFunctionService extends Disposable implements IRegisterFunctionService {
58
57
  private readonly _localeService;
59
58
  private readonly _descriptionService;
@@ -5,7 +5,7 @@ export interface IRemoteRegisterFunctionService {
5
5
  unregisterFunctions(names: string[]): Promise<void>;
6
6
  }
7
7
  export declare const RemoteRegisterFunctionServiceName = "sheets-formula.remote-register-function.service";
8
- export declare const IRemoteRegisterFunctionService: import('@wendellhu/redi').IdentifierDecorator<IRemoteRegisterFunctionService>;
8
+ export declare const IRemoteRegisterFunctionService: import('@univerjs/core').IdentifierDecorator<IRemoteRegisterFunctionService>;
9
9
  /**
10
10
  * This class should resident in the remote process.
11
11
  */
@@ -1,9 +1,8 @@
1
- import { Workbook, ThemeService } from '@univerjs/core';
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
- import { IDisposable, Injector } from '@wendellhu/redi';
7
6
 
8
7
  /**
9
8
  * This service extends the existing `SelectionRenderService` to provide the rendering of prompt selections
@@ -14,10 +13,11 @@ import { IDisposable, Injector } from '@wendellhu/redi';
14
13
  */
15
14
  export declare class RefSelectionsRenderService extends BaseSelectionRenderService implements IRenderModule {
16
15
  private readonly _context;
16
+ private readonly _refSelectionsService;
17
17
  private readonly _sheetSkeletonManagerService;
18
18
  private readonly _workbookSelections;
19
19
  private _eventDisposables;
20
- 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);
21
21
  getLocation(): [string, string];
22
22
  setRemainLastEnabled(enabled: boolean): void;
23
23
  setSkipLastEnabled(enabled: boolean): void;
@@ -32,6 +32,7 @@ export declare class RefSelectionsRenderService extends BaseSelectionRenderServi
32
32
  private _updateSelections;
33
33
  private _initSelectionChangeListener;
34
34
  private _initSkeletonChangeListener;
35
+ protected _refreshSelectionControl(selectionsData: readonly ISelectionWithStyle[]): void;
35
36
  private _getActiveViewport;
36
37
  private _getSheetObject;
37
38
  }