@univerjs/sheets-formula 0.1.11 → 0.1.13

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,17 +1,25 @@
1
1
  import { Disposable, ICommandService } from '@univerjs/core';
2
- import { IDesktopUIController, ComponentManager, IMenuService, IShortcutService } from '@univerjs/ui';
3
- import { Injector } from '@wendellhu/redi';
2
+ import { MenuConfig, ComponentManager, IMenuService, IShortcutService, IUIPartsService } from '@univerjs/ui';
3
+ import { Ctor, Injector } from '@wendellhu/redi';
4
4
  import { IRenderManagerService } from '@univerjs/engine-render';
5
+ import { BaseFunction, IFunctionInfo, IFunctionNames } from '@univerjs/engine-formula';
5
6
 
7
+ export interface IUniverSheetsFormulaConfig {
8
+ menu: MenuConfig;
9
+ description: IFunctionInfo[];
10
+ function: Array<[Ctor<BaseFunction>, IFunctionNames]>;
11
+ }
12
+ export declare const DefaultSheetFormulaConfig: {};
6
13
  export declare class FormulaUIController extends Disposable {
14
+ private readonly _config;
7
15
  private readonly _injector;
8
16
  private readonly _menuService;
9
17
  private readonly _commandService;
10
18
  private readonly _shortcutService;
11
- private readonly _uiController;
19
+ private readonly _uiPartsService;
12
20
  private readonly _renderManagerService;
13
21
  private readonly _componentManager;
14
- constructor(_injector: Injector, _menuService: IMenuService, _commandService: ICommandService, _shortcutService: IShortcutService, _uiController: IDesktopUIController, _renderManagerService: IRenderManagerService, _componentManager: ComponentManager);
22
+ constructor(_config: Partial<IUniverSheetsFormulaConfig>, _injector: Injector, _menuService: IMenuService, _commandService: ICommandService, _shortcutService: IShortcutService, _uiPartsService: IUIPartsService, _renderManagerService: IRenderManagerService, _componentManager: ComponentManager);
15
23
  private _initialize;
16
24
  private _registerMenus;
17
25
  private _registerCommands;
@@ -2,5 +2,5 @@ import { IMenuItem } from '@univerjs/ui';
2
2
  import { IAccessor } from '@wendellhu/redi';
3
3
 
4
4
  export declare function InsertFunctionMenuItemFactory(accessor: IAccessor): IMenuItem;
5
- export declare function MoreFunctionsMenuItemFactory(): IMenuItem;
5
+ export declare function MoreFunctionsMenuItemFactory(accessor: IAccessor): IMenuItem;
6
6
  export declare function PasteFormulaMenuItemFactory(accessor: IAccessor): IMenuItem;
@@ -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
  }
@@ -1,22 +1,17 @@
1
1
  import { LocaleService, Plugin, UniverInstanceType } from '@univerjs/core';
2
- import { BaseFunction, IFunctionInfo, IFunctionNames } from '@univerjs/engine-formula';
3
- import { Ctor, Injector } from '@wendellhu/redi';
2
+ import { Injector } from '@wendellhu/redi';
3
+ import { IUniverSheetsFormulaConfig } from './controllers/formula-ui.controller';
4
4
 
5
5
  /**
6
6
  * The configuration of the formula UI plugin.
7
7
  */
8
- interface IFormulaUIConfig {
9
- description: IFunctionInfo[];
10
- function: Array<[Ctor<BaseFunction>, IFunctionNames]>;
11
- }
12
8
  export declare class UniverSheetsFormulaPlugin extends Plugin {
13
- private _config;
9
+ private readonly _config;
14
10
  readonly _injector: Injector;
15
11
  private readonly _localeService;
16
12
  static pluginName: string;
17
13
  static type: UniverInstanceType;
18
- constructor(_config: Partial<IFormulaUIConfig>, _injector: Injector, _localeService: LocaleService);
14
+ constructor(_config: Partial<IUniverSheetsFormulaConfig>, _injector: Injector, _localeService: LocaleService);
19
15
  onStarting(): void;
20
16
  _init(): void;
21
17
  }
22
- export {};
@@ -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;