@univerjs/sheets-formula 0.2.4-alpha.0 → 0.2.4
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.
- package/lib/cjs/index.js +4 -4
- package/lib/es/index.js +102 -100
- package/lib/types/commands/operations/__tests__/create-command-test-bed.d.ts +8 -7
- package/lib/types/controllers/__tests__/create-command-test-bed.d.ts +2 -1
- package/lib/types/controllers/formula-clipboard.controller.d.ts +2 -1
- package/lib/types/controllers/formula-ui.controller.d.ts +2 -1
- package/lib/types/controllers/menu.d.ts +1 -1
- package/lib/types/controllers/update-formula.controller.d.ts +2 -1
- package/lib/types/formula-ui-plugin.d.ts +2 -1
- package/lib/types/services/description.service.d.ts +3 -2
- package/lib/types/services/formula-ref-range.service.d.ts +2 -1
- package/lib/types/services/prompt.service.d.ts +3 -2
- package/lib/types/services/register-function.service.d.ts +3 -2
- package/lib/types/services/remote/remote-register-function.service.d.ts +1 -1
- package/lib/types/services/render-services/ref-selections.render-service.d.ts +2 -1
- package/lib/umd/index.js +4 -4
- package/package.json +24 -22
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IWorkbookData, Univer } from '@univerjs/core';
|
|
2
|
+
import { Dependency } from '@wendellhu/redi';
|
|
2
3
|
|
|
3
4
|
export declare function createCommandTestBed(workbookData?: IWorkbookData, dependencies?: Dependency[]): {
|
|
4
5
|
univer: Univer;
|
|
5
6
|
get: {
|
|
6
|
-
<T>(id: import('@
|
|
7
|
-
<T>(id: import('@
|
|
8
|
-
<T>(id: import('@
|
|
9
|
-
<T>(id: import('@
|
|
10
|
-
<T>(id: import('@
|
|
11
|
-
<T>(id: import('@
|
|
7
|
+
<T>(id: import('@wendellhu/redi').DependencyIdentifier<T>, lookUp?: import('@wendellhu/redi').LookUp): T;
|
|
8
|
+
<T>(id: import('@wendellhu/redi').DependencyIdentifier<T>, quantity: import("@wendellhu/redi").Quantity.MANY, lookUp?: import('@wendellhu/redi').LookUp): T[];
|
|
9
|
+
<T>(id: import('@wendellhu/redi').DependencyIdentifier<T>, quantity: import("@wendellhu/redi").Quantity.OPTIONAL, lookUp?: import('@wendellhu/redi').LookUp): T | null;
|
|
10
|
+
<T>(id: import('@wendellhu/redi').DependencyIdentifier<T>, quantity: import("@wendellhu/redi").Quantity.REQUIRED, lookUp?: import('@wendellhu/redi').LookUp): T;
|
|
11
|
+
<T>(id: import('@wendellhu/redi').DependencyIdentifier<T>, quantity?: import('@wendellhu/redi').Quantity, lookUp?: import('@wendellhu/redi').LookUp): T[] | T | null;
|
|
12
|
+
<T>(id: import('@wendellhu/redi').DependencyIdentifier<T>, quantityOrLookup?: import('@wendellhu/redi').Quantity | import('@wendellhu/redi').LookUp, lookUp?: import('@wendellhu/redi').LookUp): T[] | T | null;
|
|
12
13
|
};
|
|
13
14
|
sheet: import('@univerjs/core').UnitModel<object, number>;
|
|
14
15
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IMutationInfo, Disposable, 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
|
+
import { IAccessor, Injector } from '@wendellhu/redi';
|
|
4
5
|
|
|
5
6
|
export declare const DEFAULT_PASTE_FORMULA = "default-paste-formula";
|
|
6
7
|
export declare class FormulaClipboardController extends Disposable {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { Disposable, ICommandService
|
|
1
|
+
import { Disposable, ICommandService } from '@univerjs/core';
|
|
2
2
|
import { MenuConfig, ComponentManager, IMenuService, IShortcutService, IUIPartsService } from '@univerjs/ui';
|
|
3
|
+
import { Ctor, Injector } from '@wendellhu/redi';
|
|
3
4
|
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
4
5
|
import { BaseFunction, IFunctionInfo, IFunctionNames } from '@univerjs/engine-formula';
|
|
5
6
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IAccessor } from '@univerjs/core';
|
|
2
1
|
import { IMenuItem } from '@univerjs/ui';
|
|
2
|
+
import { IAccessor } from '@wendellhu/redi';
|
|
3
3
|
|
|
4
4
|
export declare function InsertFunctionMenuItemFactory(accessor: IAccessor): IMenuItem;
|
|
5
5
|
export declare function MoreFunctionsMenuItemFactory(accessor: IAccessor): IMenuItem;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { Disposable, ICommandService,
|
|
1
|
+
import { Disposable, ICommandService, IUniverInstanceService } from '@univerjs/core';
|
|
2
2
|
import { FormulaDataModel, LexerTreeBuilder } from '@univerjs/engine-formula';
|
|
3
3
|
import { SheetInterceptorService, SheetsSelectionsService } from '@univerjs/sheets';
|
|
4
|
+
import { Injector } from '@wendellhu/redi';
|
|
4
5
|
import { IEditorService } from '@univerjs/ui';
|
|
5
6
|
|
|
6
7
|
/**
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Plugin, UniverInstanceType } from '@univerjs/core';
|
|
2
|
+
import { Injector } from '@wendellhu/redi';
|
|
2
3
|
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
3
4
|
import { IUniverSheetsFormulaConfig } from './controllers/formula-ui.controller';
|
|
4
5
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { LocaleService
|
|
1
|
+
import { LocaleService } from '@univerjs/core';
|
|
2
2
|
import { IFunctionInfo, IFunctionNames, IFunctionService } from '@univerjs/engine-formula';
|
|
3
|
+
import { IDisposable } from '@wendellhu/redi';
|
|
3
4
|
|
|
4
5
|
export interface ISearchItem {
|
|
5
6
|
name: string;
|
|
@@ -60,7 +61,7 @@ export interface IDescriptionService {
|
|
|
60
61
|
*/
|
|
61
62
|
isFormulaDefinedName(name: string): boolean;
|
|
62
63
|
}
|
|
63
|
-
export declare const IDescriptionService: import('@
|
|
64
|
+
export declare const IDescriptionService: import('@wendellhu/redi').IdentifierDecorator<IDescriptionService>;
|
|
64
65
|
export declare class DescriptionService implements IDescriptionService, IDisposable {
|
|
65
66
|
private _description;
|
|
66
67
|
private readonly _functionService;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { 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';
|
|
4
5
|
|
|
5
6
|
export type FormulaChangeMap = Record<string, Record<string, Record<string, string>>>;
|
|
6
7
|
export type FormulaChangeCallback = (formulaString: string) => {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { Direction
|
|
1
|
+
import { Direction } from '@univerjs/core';
|
|
2
2
|
import { IFunctionInfo, ISequenceNode } from '@univerjs/engine-formula';
|
|
3
|
+
import { IDisposable } from '@wendellhu/redi';
|
|
3
4
|
import { Observable } from 'rxjs';
|
|
4
5
|
import { ISearchItem } from './description.service';
|
|
5
6
|
|
|
@@ -94,7 +95,7 @@ export interface IFormulaPromptService {
|
|
|
94
95
|
disableLockedSelectionInsert(): void;
|
|
95
96
|
isLockedSelectionInsert(): boolean;
|
|
96
97
|
}
|
|
97
|
-
export declare const IFormulaPromptService: import('@
|
|
98
|
+
export declare const IFormulaPromptService: import('@wendellhu/redi').IdentifierDecorator<FormulaPromptService>;
|
|
98
99
|
export declare class FormulaPromptService implements IFormulaPromptService, IDisposable {
|
|
99
100
|
private readonly _search$;
|
|
100
101
|
private readonly _help$;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ILocales, Disposable, LocaleService } from '@univerjs/core';
|
|
2
2
|
import { IFunctionInfo, PrimitiveValueType, IFunctionService } from '@univerjs/engine-formula';
|
|
3
|
+
import { IDisposable } from '@wendellhu/redi';
|
|
3
4
|
import { IDescriptionService } from './description.service';
|
|
4
5
|
import { IRemoteRegisterFunctionService } from './remote/remote-register-function.service';
|
|
5
6
|
|
|
@@ -52,7 +53,7 @@ export interface IRegisterFunctionService {
|
|
|
52
53
|
*/
|
|
53
54
|
registerFunctions(params: IRegisterFunctionParams): IDisposable;
|
|
54
55
|
}
|
|
55
|
-
export declare const IRegisterFunctionService: import('@
|
|
56
|
+
export declare const IRegisterFunctionService: import('@wendellhu/redi').IdentifierDecorator<IRegisterFunctionService>;
|
|
56
57
|
export declare class RegisterFunctionService extends Disposable implements IRegisterFunctionService {
|
|
57
58
|
private readonly _localeService;
|
|
58
59
|
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('@
|
|
8
|
+
export declare const IRemoteRegisterFunctionService: import('@wendellhu/redi').IdentifierDecorator<IRemoteRegisterFunctionService>;
|
|
9
9
|
/**
|
|
10
10
|
* This class should resident in the remote process.
|
|
11
11
|
*/
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Workbook, ThemeService } from '@univerjs/core';
|
|
2
2
|
import { IRenderContext, IRenderModule, IRenderManagerService } from '@univerjs/engine-render';
|
|
3
3
|
import { 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';
|
|
6
7
|
|
|
7
8
|
/**
|
|
8
9
|
* This service extends the existing `SelectionRenderService` to provide the rendering of prompt selections
|