@univerjs/sheets-formula 0.2.7 → 0.2.8

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 (103) hide show
  1. package/lib/cjs/index.js +2 -2
  2. package/lib/es/index.js +880 -366
  3. package/lib/locale/en-US.json +616 -332
  4. package/lib/locale/ru-RU.json +616 -332
  5. package/lib/locale/vi-VN.json +624 -340
  6. package/lib/locale/zh-CN.json +624 -340
  7. package/lib/locale/zh-TW.json +624 -340
  8. package/lib/types/commands/commands/formula-clipboard.command.d.ts +0 -1
  9. package/lib/types/commands/commands/insert-function.command.d.ts +0 -1
  10. package/lib/types/commands/mutations/formula.mutation.d.ts +0 -1
  11. package/lib/types/commands/operations/__tests__/create-command-test-bed.d.ts +0 -1
  12. package/lib/types/commands/operations/editor-formula.operation.d.ts +0 -1
  13. package/lib/types/commands/operations/help-function.operation.d.ts +0 -1
  14. package/lib/types/commands/operations/insert-function.operation.d.ts +0 -1
  15. package/lib/types/commands/operations/more-functions.operation.d.ts +0 -1
  16. package/lib/types/commands/operations/reference-absolute.operation.d.ts +0 -1
  17. package/lib/types/commands/operations/search-function.operation.d.ts +0 -1
  18. package/lib/types/common/selection.d.ts +0 -1
  19. package/lib/types/controllers/__tests__/create-command-test-bed.d.ts +0 -1
  20. package/lib/types/controllers/active-dirty.controller.d.ts +0 -1
  21. package/lib/types/controllers/array-formula-display.controller.d.ts +0 -1
  22. package/lib/types/controllers/defined-name.controller.d.ts +0 -1
  23. package/lib/types/controllers/formula-alert-render.controller.d.ts +0 -1
  24. package/lib/types/controllers/formula-auto-fill.controller.d.ts +0 -1
  25. package/lib/types/controllers/formula-clipboard.controller.d.ts +0 -1
  26. package/lib/types/controllers/formula-editor-show.controller.d.ts +0 -1
  27. package/lib/types/controllers/formula-render.controller.d.ts +0 -1
  28. package/lib/types/controllers/formula-ui.controller.d.ts +0 -1
  29. package/lib/types/controllers/menu.d.ts +0 -1
  30. package/lib/types/controllers/prompt.controller.d.ts +4 -1
  31. package/lib/types/controllers/shortcuts/prompt.shortcut.d.ts +0 -1
  32. package/lib/types/controllers/trigger-calculation.controller.d.ts +0 -1
  33. package/lib/types/controllers/update-formula.controller.d.ts +0 -1
  34. package/lib/types/controllers/utils/offset-formula-data.d.ts +0 -1
  35. package/lib/types/controllers/utils/ref-range-formula.d.ts +0 -1
  36. package/lib/types/controllers/utils/utils.d.ts +0 -1
  37. package/lib/types/formula-ui-plugin.d.ts +0 -1
  38. package/lib/types/locale/en-US.d.ts +408 -124
  39. package/lib/types/locale/function-list/array/ru-RU.d.ts +0 -1
  40. package/lib/types/locale/function-list/compatibility/ru-RU.d.ts +0 -1
  41. package/lib/types/locale/function-list/date/ru-RU.d.ts +0 -1
  42. package/lib/types/locale/function-list/engineering/en-US.d.ts +50 -66
  43. package/lib/types/locale/function-list/engineering/ja-JP.d.ts +50 -66
  44. package/lib/types/locale/function-list/engineering/ru-RU.d.ts +0 -1
  45. package/lib/types/locale/function-list/engineering/vi-VN.d.ts +50 -66
  46. package/lib/types/locale/function-list/engineering/zh-CN.d.ts +50 -66
  47. package/lib/types/locale/function-list/engineering/zh-TW.d.ts +50 -66
  48. package/lib/types/locale/function-list/financial/en-US.d.ts +344 -56
  49. package/lib/types/locale/function-list/financial/ja-JP.d.ts +344 -56
  50. package/lib/types/locale/function-list/financial/ru-RU.d.ts +0 -1
  51. package/lib/types/locale/function-list/financial/vi-VN.d.ts +344 -56
  52. package/lib/types/locale/function-list/financial/zh-CN.d.ts +344 -56
  53. package/lib/types/locale/function-list/financial/zh-TW.d.ts +344 -56
  54. package/lib/types/locale/function-list/information/ru-RU.d.ts +0 -1
  55. package/lib/types/locale/function-list/logical/en-US.d.ts +14 -2
  56. package/lib/types/locale/function-list/logical/ja-JP.d.ts +14 -2
  57. package/lib/types/locale/function-list/logical/ru-RU.d.ts +0 -1
  58. package/lib/types/locale/function-list/logical/vi-VN.d.ts +14 -2
  59. package/lib/types/locale/function-list/logical/zh-CN.d.ts +14 -2
  60. package/lib/types/locale/function-list/logical/zh-TW.d.ts +14 -2
  61. package/lib/types/locale/function-list/lookup/ru-RU.d.ts +0 -1
  62. package/lib/types/locale/function-list/math/ru-RU.d.ts +0 -1
  63. package/lib/types/locale/function-list/statistical/ru-RU.d.ts +0 -1
  64. package/lib/types/locale/function-list/web/vi-VN.d.ts +0 -1
  65. package/lib/types/locale/ru-RU.d.ts +408 -124
  66. package/lib/types/locale/vi-VN.d.ts +408 -124
  67. package/lib/types/locale/zh-CN.d.ts +408 -124
  68. package/lib/types/locale/zh-TW.d.ts +408 -124
  69. package/lib/types/services/description.service.d.ts +0 -1
  70. package/lib/types/services/formula-common.d.ts +0 -1
  71. package/lib/types/services/formula-ref-range.service.d.ts +0 -1
  72. package/lib/types/services/function-list/array.d.ts +0 -1
  73. package/lib/types/services/function-list/compatibility.d.ts +0 -1
  74. package/lib/types/services/function-list/cube.d.ts +0 -1
  75. package/lib/types/services/function-list/database.d.ts +0 -1
  76. package/lib/types/services/function-list/date.d.ts +0 -1
  77. package/lib/types/services/function-list/engineering.d.ts +0 -1
  78. package/lib/types/services/function-list/financial.d.ts +0 -1
  79. package/lib/types/services/function-list/function-list.d.ts +0 -1
  80. package/lib/types/services/function-list/information.d.ts +0 -1
  81. package/lib/types/services/function-list/logical.d.ts +0 -1
  82. package/lib/types/services/function-list/lookup.d.ts +0 -1
  83. package/lib/types/services/function-list/math.d.ts +0 -1
  84. package/lib/types/services/function-list/statistical.d.ts +0 -1
  85. package/lib/types/services/function-list/text.d.ts +0 -1
  86. package/lib/types/services/function-list/univer.d.ts +0 -1
  87. package/lib/types/services/function-list/web.d.ts +0 -1
  88. package/lib/types/services/prompt.service.d.ts +0 -1
  89. package/lib/types/services/register-function.service.d.ts +0 -1
  90. package/lib/types/services/register-other-formula.service.d.ts +0 -1
  91. package/lib/types/services/remote/remote-register-function.service.d.ts +0 -1
  92. package/lib/types/services/render-services/ref-selections.render-service.d.ts +0 -1
  93. package/lib/types/services/utils.d.ts +0 -1
  94. package/lib/types/views/FormulaPromptContainer.d.ts +0 -1
  95. package/lib/types/views/more-functions/MoreFunctions.d.ts +0 -1
  96. package/lib/types/views/more-functions/function-help/FunctionHelp.d.ts +0 -1
  97. package/lib/types/views/more-functions/function-params/FunctionParams.d.ts +0 -1
  98. package/lib/types/views/more-functions/input-params/InputParams.d.ts +0 -1
  99. package/lib/types/views/more-functions/select-function/SelectFunction.d.ts +0 -1
  100. package/lib/types/views/prompt/help-function/HelpFunction.d.ts +0 -1
  101. package/lib/types/views/prompt/search-function/SearchFunction.d.ts +0 -1
  102. package/lib/umd/index.js +2 -2
  103. package/package.json +23 -23
@@ -1,3 +1,2 @@
1
1
  import { ICommand } from '@univerjs/core';
2
-
3
2
  export declare const SheetOnlyPasteFormulaCommand: ICommand;
@@ -1,5 +1,4 @@
1
1
  import { ICommand, IRange } from '@univerjs/core';
2
-
3
2
  export interface IInsertFunction {
4
3
  /**
5
4
  * The range into which the function is to be inserted
@@ -1,5 +1,4 @@
1
1
  import { IMutation } from '@univerjs/core';
2
-
3
2
  export interface IOtherFormulaMarkDirtyParams {
4
3
  [unitId: string]: {
5
4
  [sunUnitId: string]: {
@@ -1,5 +1,4 @@
1
1
  import { Dependency, IWorkbookData, Univer } from '@univerjs/core';
2
-
3
2
  export declare function createCommandTestBed(workbookData?: IWorkbookData, dependencies?: Dependency[]): {
4
3
  univer: Univer;
5
4
  get: {
@@ -2,7 +2,6 @@ import { IOperation } from '@univerjs/core';
2
2
  import { DeviceInputEventType } from '@univerjs/engine-render';
3
3
  import { KeyCode, MetaKeys } from '@univerjs/ui';
4
4
  import { META_KEY_CTRL_AND_SHIFT } from '../../common/prompt';
5
-
6
5
  export interface ISelectEditorFormulaOperationParam {
7
6
  eventType: DeviceInputEventType;
8
7
  keycode?: KeyCode;
@@ -1,3 +1,2 @@
1
1
  import { ICommand } from '@univerjs/core';
2
-
3
2
  export declare const HelpFunctionOperation: ICommand;
@@ -1,5 +1,4 @@
1
1
  import { ICellData, ICommand, IRange, Nullable } from '@univerjs/core';
2
-
3
2
  export interface IInsertFunctionOperationParams {
4
3
  /**
5
4
  * function name
@@ -1,3 +1,2 @@
1
1
  import { ICommand } from '@univerjs/core';
2
-
3
2
  export declare const MoreFunctionsOperation: ICommand;
@@ -1,3 +1,2 @@
1
1
  import { ICommand } from '@univerjs/core';
2
-
3
2
  export declare const ReferenceAbsoluteOperation: ICommand;
@@ -1,3 +1,2 @@
1
1
  import { ICommand } from '@univerjs/core';
2
-
3
2
  export declare const SearchFunctionOperation: ICommand;
@@ -1,5 +1,4 @@
1
1
  import { ThemeService } from '@univerjs/core';
2
2
  import { ISelectionStyle } from '@univerjs/sheets';
3
-
4
3
  export declare const FORMULA_REF_SELECTION_PLUGIN_NAME = "formula_reference_selection_plugin_name";
5
4
  export declare function getFormulaRefSelectionStyle(themeService: ThemeService, refColor: string, id: string): ISelectionStyle;
@@ -1,5 +1,4 @@
1
1
  import { Dependency, IWorkbookData, Workbook, Injector, Univer } from '@univerjs/core';
2
-
3
2
  export interface ITestBed {
4
3
  univer: Univer;
5
4
  get: Injector['get'];
@@ -1,6 +1,5 @@
1
1
  import { Disposable, IUniverInstanceService } from '@univerjs/core';
2
2
  import { FormulaDataModel, IActiveDirtyManagerService, IDefinedNamesService } from '@univerjs/engine-formula';
3
-
4
3
  export declare class ActiveDirtyController extends Disposable {
5
4
  private readonly _activeDirtyManagerService;
6
5
  private readonly _univerInstanceService;
@@ -1,7 +1,6 @@
1
1
  import { Disposable, ICommandService, ThemeService } from '@univerjs/core';
2
2
  import { FormulaDataModel } from '@univerjs/engine-formula';
3
3
  import { SheetInterceptorService } from '@univerjs/sheets';
4
-
5
4
  export declare class ArrayFormulaDisplayController extends Disposable {
6
5
  private readonly _commandService;
7
6
  private _sheetInterceptorService;
@@ -1,7 +1,6 @@
1
1
  import { Disposable, ICommandService, IUniverInstanceService } from '@univerjs/core';
2
2
  import { IDefinedNamesService } from '@univerjs/engine-formula';
3
3
  import { IDescriptionService } from '../services/description.service';
4
-
5
4
  export declare const SCOPE_WORKBOOK_VALUE = "AllDefaultWorkbook";
6
5
  /**
7
6
  * header highlight
@@ -1,7 +1,6 @@
1
1
  import { Workbook, Disposable, LocaleService } from '@univerjs/core';
2
2
  import { CellAlertManagerService, HoverManagerService } from '@univerjs/sheets-ui';
3
3
  import { IRenderContext, IRenderModule } from '@univerjs/engine-render';
4
-
5
4
  export declare class FormulaAlertRenderController extends Disposable implements IRenderModule {
6
5
  private readonly _context;
7
6
  private readonly _hoverManagerService;
@@ -1,7 +1,6 @@
1
1
  import { Disposable } from '@univerjs/core';
2
2
  import { LexerTreeBuilder } from '@univerjs/engine-formula';
3
3
  import { AutoFillService } from '@univerjs/sheets-ui';
4
-
5
4
  export declare class FormulaAutoFillController extends Disposable {
6
5
  private readonly _autoFillService;
7
6
  private readonly _lexerTreeBuilder;
@@ -1,7 +1,6 @@
1
1
  import { IAccessor, IMutationInfo, Disposable, Injector, IUniverInstanceService, ObjectMatrix } from '@univerjs/core';
2
2
  import { FormulaDataModel, LexerTreeBuilder } from '@univerjs/engine-formula';
3
3
  import { COPY_TYPE, ISheetClipboardService, ICellDataWithSpanInfo, IDiscreteRange, ISheetDiscreteRangeLocation } from '@univerjs/sheets-ui';
4
-
5
4
  export declare const DEFAULT_PASTE_FORMULA = "default-paste-formula";
6
5
  export declare class FormulaClipboardController extends Disposable {
7
6
  private readonly _currentUniverSheet;
@@ -2,7 +2,6 @@ import { Workbook, Disposable, ICommandService, ThemeService } from '@univerjs/c
2
2
  import { FormulaDataModel } from '@univerjs/engine-formula';
3
3
  import { IRenderContext, IRenderModule, IRenderManagerService } from '@univerjs/engine-render';
4
4
  import { IEditorBridgeService, SheetSkeletonManagerService } from '@univerjs/sheets-ui';
5
-
6
5
  export declare class FormulaEditorShowController extends Disposable implements IRenderModule {
7
6
  private readonly _context;
8
7
  private _editorBridgeService;
@@ -1,6 +1,5 @@
1
1
  import { RxDisposable } from '@univerjs/core';
2
2
  import { SheetInterceptorService } from '@univerjs/sheets';
3
-
4
3
  export declare class FormulaRenderManagerController extends RxDisposable {
5
4
  private readonly _sheetInterceptorService;
6
5
  constructor(_sheetInterceptorService: SheetInterceptorService);
@@ -2,7 +2,6 @@ import { Disposable, ICommandService, Injector, Ctor } from '@univerjs/core';
2
2
  import { MenuConfig, ComponentManager, IMenuService, IShortcutService, IUIPartsService } from '@univerjs/ui';
3
3
  import { IRenderManagerService } from '@univerjs/engine-render';
4
4
  import { BaseFunction, IFunctionInfo, IFunctionNames } from '@univerjs/engine-formula';
5
-
6
5
  export interface IUniverSheetsFormulaConfig {
7
6
  menu: MenuConfig;
8
7
  notExecuteFormula?: boolean;
@@ -1,6 +1,5 @@
1
1
  import { IAccessor } from '@univerjs/core';
2
2
  import { IMenuItem } from '@univerjs/ui';
3
-
4
3
  export declare function InsertFunctionMenuItemFactory(accessor: IAccessor): IMenuItem;
5
4
  export declare function MoreFunctionsMenuItemFactory(accessor: IAccessor): IMenuItem;
6
5
  export declare function PasteFormulaMenuItemFactory(accessor: IAccessor): IMenuItem;
@@ -7,7 +7,6 @@ import { EditorBridgeService } 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';
10
-
11
10
  export declare class PromptController extends Disposable {
12
11
  private readonly _commandService;
13
12
  private readonly _contextService;
@@ -151,6 +150,10 @@ export declare class PromptController extends Disposable {
151
150
  private _commandExecutedListener;
152
151
  private _moveInEditor;
153
152
  private _userMouseListener;
153
+ private _inputFormulaListener;
154
+ /**
155
+ * Absolute range, triggered by F4
156
+ */
154
157
  private _changeRefString;
155
158
  private _changeRangeRef;
156
159
  private _changeSingleRef;
@@ -1,5 +1,4 @@
1
1
  import { IShortcutItem, KeyCode } from '@univerjs/ui';
2
-
3
2
  export declare const PROMPT_SELECTION_KEYCODE_ARROW_LIST: KeyCode[];
4
3
  export declare const PROMPT_SELECTION_KEYCODE_LIST: KeyCode[];
5
4
  export declare function promptSelectionShortcutItem(): IShortcutItem<object>[];
@@ -2,7 +2,6 @@ import { Disposable, ICommandService } from '@univerjs/core';
2
2
  import { FormulaDataModel, IActiveDirtyManagerService } from '@univerjs/engine-formula';
3
3
  import { INumfmtService } from '@univerjs/sheets';
4
4
  import { IProgressService } from '@univerjs/ui';
5
-
6
5
  export declare class TriggerCalculationController extends Disposable {
7
6
  private readonly _commandService;
8
7
  private readonly _activeDirtyManagerService;
@@ -2,7 +2,6 @@ import { Disposable, ICommandService, Injector, IUniverInstanceService } from '@
2
2
  import { FormulaDataModel, LexerTreeBuilder } from '@univerjs/engine-formula';
3
3
  import { SheetInterceptorService, SheetsSelectionsService } from '@univerjs/sheets';
4
4
  import { IEditorService } from '@univerjs/ui';
5
-
6
5
  /**
7
6
  * Update formula process
8
7
  *
@@ -1,6 +1,5 @@
1
1
  import { IRange } from '@univerjs/core';
2
2
  import { IArrayFormulaRangeType, IArrayFormulaUnitCellType, IFormulaData } from '@univerjs/engine-formula';
3
-
4
3
  export interface IRefRangeWithPosition {
5
4
  row: number;
6
5
  column: number;
@@ -1,6 +1,5 @@
1
1
  import { ICellData, IMutationInfo, IObjectMatrixPrimitiveType, IRange, Nullable } from '@univerjs/core';
2
2
  import { IFormulaData, IFormulaDataItem } from '@univerjs/engine-formula';
3
-
4
3
  export declare enum FormulaReferenceMoveType {
5
4
  MoveRange = 0,// range
6
5
  MoveRows = 1,// move rows
@@ -1,6 +1,5 @@
1
1
  import { ICellData, IContextService, Nullable } from '@univerjs/core';
2
2
  import { ErrorType } from '@univerjs/engine-formula';
3
-
4
3
  export declare function whenEditorStandalone(contextService: IContextService): boolean;
5
4
  /**
6
5
  * Extract the formula error from the cell
@@ -1,7 +1,6 @@
1
1
  import { Injector, Plugin, UniverInstanceType } from '@univerjs/core';
2
2
  import { IRenderManagerService } from '@univerjs/engine-render';
3
3
  import { IUniverSheetsFormulaConfig } from './controllers/formula-ui.controller';
4
-
5
4
  export declare class UniverRemoteSheetsFormulaPlugin extends Plugin {
6
5
  private readonly _config;
7
6
  readonly _injector: Injector;