@univerjs/sheets-formula 0.2.2 → 0.2.4-alpha.0
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/README.md +13 -7
- package/lib/cjs/index.js +4 -4
- package/lib/es/index.js +4321 -4196
- package/lib/locale/en-US.json +103 -119
- package/lib/locale/ru-RU.json +103 -119
- package/lib/locale/vi-VN.json +7425 -0
- package/lib/locale/zh-CN.json +107 -123
- package/lib/locale/zh-TW.json +10292 -0
- package/lib/types/commands/operations/__tests__/create-command-test-bed.d.ts +7 -8
- package/lib/types/controllers/__tests__/create-command-test-bed.d.ts +1 -2
- package/lib/types/controllers/formula-clipboard.controller.d.ts +1 -2
- package/lib/types/controllers/formula-editor-show.controller.d.ts +7 -3
- package/lib/types/controllers/formula-ui.controller.d.ts +2 -2
- package/lib/types/controllers/menu.d.ts +1 -1
- package/lib/types/controllers/prompt.controller.d.ts +27 -25
- package/lib/types/controllers/trigger-calculation.controller.d.ts +4 -0
- package/lib/types/controllers/update-formula.controller.d.ts +3 -4
- package/lib/types/controllers/utils/ref-range-formula.d.ts +0 -17
- package/lib/types/formula-ui-plugin.d.ts +9 -4
- package/lib/types/index.d.ts +2 -2
- package/lib/types/locale/en-US.d.ts +53 -69
- package/lib/types/locale/function-list/array/vi-VN.d.ts +17 -0
- package/lib/types/locale/function-list/array/zh-TW.d.ts +17 -0
- package/lib/types/locale/function-list/compatibility/vi-VN.d.ts +702 -0
- package/lib/types/locale/function-list/compatibility/zh-TW.d.ts +702 -0
- package/lib/types/locale/function-list/cube/vi-VN.d.ts +144 -0
- package/lib/types/locale/function-list/cube/zh-TW.d.ts +144 -0
- package/lib/types/locale/function-list/database/vi-VN.d.ts +234 -0
- package/lib/types/locale/function-list/database/zh-TW.d.ts +234 -0
- package/lib/types/locale/function-list/date/en-US.d.ts +37 -25
- package/lib/types/locale/function-list/date/ja-JP.d.ts +37 -25
- package/lib/types/locale/function-list/date/vi-VN.d.ts +379 -0
- package/lib/types/locale/function-list/date/zh-CN.d.ts +37 -25
- package/lib/types/locale/function-list/date/zh-TW.d.ts +426 -0
- package/lib/types/locale/function-list/engineering/vi-VN.d.ts +990 -0
- package/lib/types/locale/function-list/engineering/zh-TW.d.ts +990 -0
- package/lib/types/locale/function-list/financial/vi-VN.d.ts +954 -0
- package/lib/types/locale/function-list/financial/zh-TW.d.ts +1008 -0
- package/lib/types/locale/function-list/information/vi-VN.d.ts +3 -0
- package/lib/types/locale/function-list/information/zh-TW.d.ts +352 -0
- package/lib/types/locale/function-list/logical/vi-VN.d.ts +368 -0
- package/lib/types/locale/function-list/logical/zh-TW.d.ts +368 -0
- package/lib/types/locale/function-list/lookup/vi-VN.d.ts +188 -0
- package/lib/types/locale/function-list/lookup/zh-TW.d.ts +752 -0
- package/lib/types/locale/function-list/math/en-US.d.ts +16 -44
- package/lib/types/locale/function-list/math/ja-JP.d.ts +16 -44
- package/lib/types/locale/function-list/math/vi-VN.d.ts +3 -0
- package/lib/types/locale/function-list/math/zh-CN.d.ts +16 -44
- package/lib/types/locale/function-list/math/zh-TW.d.ts +1498 -0
- package/lib/types/locale/function-list/statistical/vi-VN.d.ts +394 -0
- package/lib/types/locale/function-list/statistical/zh-TW.d.ts +2060 -0
- package/lib/types/locale/function-list/text/vi-VN.d.ts +650 -0
- package/lib/types/locale/function-list/text/zh-TW.d.ts +852 -0
- package/lib/types/locale/function-list/univer/vi-VN.d.ts +17 -0
- package/lib/types/locale/function-list/univer/zh-TW.d.ts +17 -0
- package/lib/types/locale/function-list/web/vi-VN.d.ts +3 -0
- package/lib/types/locale/function-list/web/zh-TW.d.ts +72 -0
- package/lib/types/locale/ru-RU.d.ts +53 -69
- package/lib/types/locale/vi-VN.d.ts +6699 -0
- package/lib/types/locale/zh-CN.d.ts +53 -69
- package/lib/types/locale/zh-TW.d.ts +9288 -0
- package/lib/types/services/description.service.d.ts +2 -3
- package/lib/types/services/formula-ref-range.service.d.ts +1 -2
- package/lib/types/services/prompt.service.d.ts +2 -11
- package/lib/types/services/register-function.service.d.ts +21 -8
- package/lib/types/services/register-other-formula.service.d.ts +1 -0
- package/lib/types/services/remote/remote-register-function.service.d.ts +17 -0
- package/lib/types/services/render-services/ref-selections.render-service.d.ts +36 -0
- package/lib/types/views/prompt/resize-scroll-observer.d.ts +18 -0
- package/lib/umd/index.js +4 -4
- package/package.json +24 -24
- package/lib/types/services/formula-custom-function.service.d.ts +0 -19
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import { IWorkbookData, Univer } from '@univerjs/core';
|
|
2
|
-
import { Dependency } from '@wendellhu/redi';
|
|
1
|
+
import { Dependency, IWorkbookData, Univer } from '@univerjs/core';
|
|
3
2
|
|
|
4
3
|
export declare function createCommandTestBed(workbookData?: IWorkbookData, dependencies?: Dependency[]): {
|
|
5
4
|
univer: Univer;
|
|
6
5
|
get: {
|
|
7
|
-
<T>(id: import('@
|
|
8
|
-
<T>(id: import('@
|
|
9
|
-
<T>(id: import('@
|
|
10
|
-
<T>(id: import('@
|
|
11
|
-
<T>(id: import('@
|
|
12
|
-
<T>(id: import('@
|
|
6
|
+
<T>(id: import('@univerjs/core').DependencyIdentifier<T>, lookUp?: import('@univerjs/core').LookUp): T;
|
|
7
|
+
<T>(id: import('@univerjs/core').DependencyIdentifier<T>, quantity: import("@univerjs/core").Quantity.MANY, lookUp?: import('@univerjs/core').LookUp): T[];
|
|
8
|
+
<T>(id: import('@univerjs/core').DependencyIdentifier<T>, quantity: import("@univerjs/core").Quantity.OPTIONAL, lookUp?: import('@univerjs/core').LookUp): T | null;
|
|
9
|
+
<T>(id: import('@univerjs/core').DependencyIdentifier<T>, quantity: import("@univerjs/core").Quantity.REQUIRED, lookUp?: import('@univerjs/core').LookUp): T;
|
|
10
|
+
<T>(id: import('@univerjs/core').DependencyIdentifier<T>, quantity?: import('@univerjs/core').Quantity, lookUp?: import('@univerjs/core').LookUp): T[] | T | null;
|
|
11
|
+
<T>(id: import('@univerjs/core').DependencyIdentifier<T>, quantityOrLookup?: import('@univerjs/core').Quantity | import('@univerjs/core').LookUp, lookUp?: import('@univerjs/core').LookUp): T[] | T | null;
|
|
13
12
|
};
|
|
14
13
|
sheet: import('@univerjs/core').UnitModel<object, number>;
|
|
15
14
|
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { IMutationInfo, Disposable, IUniverInstanceService, ObjectMatrix } from '@univerjs/core';
|
|
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
|
-
import { IAccessor, Injector } from '@wendellhu/redi';
|
|
5
4
|
|
|
6
5
|
export declare const DEFAULT_PASTE_FORMULA = "default-paste-formula";
|
|
7
6
|
export declare class FormulaClipboardController extends Disposable {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Workbook, Disposable, ICommandService, ThemeService } from '@univerjs/core';
|
|
2
2
|
import { FormulaDataModel } from '@univerjs/engine-formula';
|
|
3
3
|
import { IRenderContext, IRenderModule, IRenderManagerService } from '@univerjs/engine-render';
|
|
4
|
-
import { IEditorBridgeService,
|
|
4
|
+
import { IEditorBridgeService, SheetSkeletonManagerService } from '@univerjs/sheets-ui';
|
|
5
5
|
|
|
6
6
|
export declare class FormulaEditorShowController extends Disposable implements IRenderModule {
|
|
7
7
|
private readonly _context;
|
|
@@ -9,13 +9,17 @@ export declare class FormulaEditorShowController extends Disposable implements I
|
|
|
9
9
|
private readonly _formulaDataModel;
|
|
10
10
|
private readonly _themeService;
|
|
11
11
|
private readonly _renderManagerService;
|
|
12
|
-
private readonly _selectionRenderService;
|
|
13
12
|
private readonly _sheetSkeletonManagerService;
|
|
14
13
|
private readonly _commandService;
|
|
15
14
|
private _previousShape;
|
|
16
|
-
constructor(_context: IRenderContext<Workbook>, _editorBridgeService: IEditorBridgeService, _formulaDataModel: FormulaDataModel, _themeService: ThemeService, _renderManagerService: IRenderManagerService,
|
|
15
|
+
constructor(_context: IRenderContext<Workbook>, _editorBridgeService: IEditorBridgeService, _formulaDataModel: FormulaDataModel, _themeService: ThemeService, _renderManagerService: IRenderManagerService, _sheetSkeletonManagerService: SheetSkeletonManagerService, _commandService: ICommandService);
|
|
17
16
|
private _initInterceptorEditorStart;
|
|
18
17
|
private _commandExecutedListener;
|
|
18
|
+
private _displayArrayFormulaRangeShape;
|
|
19
19
|
private _createArrayFormulaRangeShape;
|
|
20
20
|
private _removeArrayFormulaRangeShape;
|
|
21
|
+
private _refreshArrayFormulaRangeShape;
|
|
22
|
+
private _checkCurrentSheet;
|
|
23
|
+
private _refreshArrayFormulaRangeShapeByRanges;
|
|
24
|
+
private _refreshArrayFormulaRangeShapeByRow;
|
|
21
25
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Disposable, ICommandService } from '@univerjs/core';
|
|
1
|
+
import { Disposable, ICommandService, Injector, Ctor } from '@univerjs/core';
|
|
2
2
|
import { MenuConfig, ComponentManager, IMenuService, IShortcutService, IUIPartsService } from '@univerjs/ui';
|
|
3
|
-
import { Ctor, Injector } from '@wendellhu/redi';
|
|
4
3
|
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
5
4
|
import { BaseFunction, IFunctionInfo, IFunctionNames } from '@univerjs/engine-formula';
|
|
6
5
|
|
|
7
6
|
export interface IUniverSheetsFormulaConfig {
|
|
8
7
|
menu: MenuConfig;
|
|
8
|
+
notExecuteFormula?: boolean;
|
|
9
9
|
description: IFunctionInfo[];
|
|
10
10
|
function: Array<[Ctor<BaseFunction>, IFunctionNames]>;
|
|
11
11
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { IAccessor } from '@univerjs/core';
|
|
1
2
|
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;
|
|
@@ -2,8 +2,8 @@ import { Disposable, ICommandService, IContextService, IUniverInstanceService, T
|
|
|
2
2
|
import { TextSelectionManagerService } from '@univerjs/docs';
|
|
3
3
|
import { LexerTreeBuilder } from '@univerjs/engine-formula';
|
|
4
4
|
import { IRenderManagerService, ITextSelectionRenderManager } from '@univerjs/engine-render';
|
|
5
|
-
import {
|
|
6
|
-
import { EditorBridgeService
|
|
5
|
+
import { SheetsSelectionsService } from '@univerjs/sheets';
|
|
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';
|
|
@@ -17,9 +17,9 @@ export declare class PromptController extends Disposable {
|
|
|
17
17
|
private readonly _lexerTreeBuilder;
|
|
18
18
|
private readonly _renderManagerService;
|
|
19
19
|
private readonly _themeService;
|
|
20
|
-
private readonly
|
|
20
|
+
private readonly _sheetsSelectionsService;
|
|
21
|
+
private readonly _refSelectionsService;
|
|
21
22
|
private readonly _univerInstanceService;
|
|
22
|
-
private readonly _selectionRenderService;
|
|
23
23
|
private readonly _descriptionService;
|
|
24
24
|
private readonly _textSelectionManagerService;
|
|
25
25
|
private readonly _contextMenuService;
|
|
@@ -38,7 +38,12 @@ export declare class PromptController extends Disposable {
|
|
|
38
38
|
private _userCursorMove;
|
|
39
39
|
private _previousEditorUnitId;
|
|
40
40
|
private _existsSequenceNode;
|
|
41
|
-
|
|
41
|
+
private get _selectionRenderService();
|
|
42
|
+
/**
|
|
43
|
+
* If there are multiple sheet instances, we should enable or disable all of them.
|
|
44
|
+
*/
|
|
45
|
+
private get _allSelectionRenderServices();
|
|
46
|
+
constructor(_commandService: ICommandService, _contextService: IContextService, _textSelectionRenderManager: ITextSelectionRenderManager, _editorBridgeService: EditorBridgeService, _formulaPromptService: IFormulaPromptService, _lexerTreeBuilder: LexerTreeBuilder, _renderManagerService: IRenderManagerService, _themeService: ThemeService, _sheetsSelectionsService: SheetsSelectionsService, _refSelectionsService: SheetsSelectionsService, _univerInstanceService: IUniverInstanceService, _descriptionService: IDescriptionService, _textSelectionManagerService: TextSelectionManagerService, _contextMenuService: IContextMenuService, _editorService: IEditorService);
|
|
42
47
|
dispose(): void;
|
|
43
48
|
private _resetTemp;
|
|
44
49
|
private _initialize;
|
|
@@ -48,29 +53,32 @@ export declare class PromptController extends Disposable {
|
|
|
48
53
|
private _initialExitEditor;
|
|
49
54
|
private _initialChangeEditor;
|
|
50
55
|
private _closeRangePrompt;
|
|
51
|
-
private
|
|
52
|
-
private
|
|
53
|
-
private
|
|
56
|
+
private _initSelectionsEndListener;
|
|
57
|
+
private _updateSelecting;
|
|
58
|
+
private _currentlyWorkingRefRenderer;
|
|
59
|
+
private _selectionsChangeDisposables;
|
|
60
|
+
private _enableRefSelectionsRenderService;
|
|
61
|
+
private _checkClearingLastSelection;
|
|
62
|
+
private _disposeSelectionsChangeListeners;
|
|
63
|
+
private _insertControlSelections;
|
|
54
64
|
private _initAcceptFormula;
|
|
55
65
|
private _changeFunctionPanelState;
|
|
56
66
|
private _changeHelpFunctionPanelState;
|
|
57
67
|
private _hideFunctionPanel;
|
|
58
|
-
|
|
59
|
-
* If the cursor is located at a formula token,
|
|
60
|
-
* it is necessary to prohibit the behavior of closing the editor by clicking on the canvas,
|
|
61
|
-
* in order to generate reference text for the formula.
|
|
62
|
-
*/
|
|
63
|
-
private _changeKeepVisibleHideState;
|
|
68
|
+
private _checkShouldEnterSelectingMode;
|
|
64
69
|
/**
|
|
65
70
|
*
|
|
66
71
|
* @returns Return the character under the current cursor in the editor.
|
|
67
72
|
*/
|
|
68
73
|
private _getCurrentChar;
|
|
74
|
+
private _getCurrentDataStream;
|
|
75
|
+
private _isSelectingMode;
|
|
76
|
+
private _enterSelectingMode;
|
|
69
77
|
/**
|
|
70
78
|
* Disable the ref string generation mode. In the ref string generation mode,
|
|
71
79
|
* users can select a certain area using the mouse and arrow keys, and convert the area into a ref string.
|
|
72
80
|
*/
|
|
73
|
-
private
|
|
81
|
+
private _quitSelectingMode;
|
|
74
82
|
private _getCurrentBodyDataStreamAndOffset;
|
|
75
83
|
private _getFormulaAndCellEditorBody;
|
|
76
84
|
private _editorModelUnitIds;
|
|
@@ -82,10 +90,6 @@ export declare class PromptController extends Disposable {
|
|
|
82
90
|
*/
|
|
83
91
|
private _contextSwitch;
|
|
84
92
|
private _getContextState;
|
|
85
|
-
/**
|
|
86
|
-
* Switch from formula selection state to regular selection state.
|
|
87
|
-
*/
|
|
88
|
-
private _switchSelectionPlugin;
|
|
89
93
|
/**
|
|
90
94
|
* Highlight cell editor and formula bar editor.
|
|
91
95
|
*/
|
|
@@ -106,12 +110,12 @@ export declare class PromptController extends Disposable {
|
|
|
106
110
|
private _getSheetIdByName;
|
|
107
111
|
private _getSheetNameById;
|
|
108
112
|
private _getCurrentUnitIdAndSheetId;
|
|
109
|
-
private
|
|
113
|
+
private _getEditorOpenedForSheet;
|
|
110
114
|
/**
|
|
111
115
|
* Convert the selection range to a ref string for the formula engine, such as A1:B1
|
|
112
116
|
* @param currentSelection
|
|
113
117
|
*/
|
|
114
|
-
private
|
|
118
|
+
private _generateRefString;
|
|
115
119
|
/**
|
|
116
120
|
* Restore the sequenceNode generated by the lexer to the text in the editor, and set the cursor position.
|
|
117
121
|
* @param sequenceNodes
|
|
@@ -125,7 +129,7 @@ export declare class PromptController extends Disposable {
|
|
|
125
129
|
* @param textRuns
|
|
126
130
|
*/
|
|
127
131
|
private _updateEditorModel;
|
|
128
|
-
private
|
|
132
|
+
private _insertControlSelectionReplace;
|
|
129
133
|
/**
|
|
130
134
|
* pro/issues/450
|
|
131
135
|
* In range selection mode, certain measures are implemented to ensure that the selection behavior is processed correctly.
|
|
@@ -136,11 +140,9 @@ export declare class PromptController extends Disposable {
|
|
|
136
140
|
* In range selection mode, certain measures are implemented to ensure that the selection behavior is processed correctly.
|
|
137
141
|
*/
|
|
138
142
|
private _resetSequenceNodes;
|
|
139
|
-
private _inertControlSelection;
|
|
140
143
|
private _updateRefSelectionStyle;
|
|
141
|
-
private
|
|
144
|
+
private _onSelectionControlChange;
|
|
142
145
|
private _refreshFormulaAndCellEditor;
|
|
143
|
-
private _setRemainCapture;
|
|
144
146
|
private _cursorStateListener;
|
|
145
147
|
private _pressEnter;
|
|
146
148
|
private _pressTab;
|
|
@@ -27,6 +27,10 @@ export declare class TriggerCalculationController extends Disposable {
|
|
|
27
27
|
private _initialExecuteFormulaProcessListener;
|
|
28
28
|
private _resetExecutingDirtyData;
|
|
29
29
|
private _initialExecuteFormula;
|
|
30
|
+
/**
|
|
31
|
+
* The user manually stops the progress bar
|
|
32
|
+
*/
|
|
33
|
+
private _initialProgressBar;
|
|
30
34
|
/**
|
|
31
35
|
* Update progress by completed count
|
|
32
36
|
* @param completedCount
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { Disposable, ICommandService, IUniverInstanceService } from '@univerjs/core';
|
|
1
|
+
import { Disposable, ICommandService, Injector, IUniverInstanceService } from '@univerjs/core';
|
|
2
2
|
import { FormulaDataModel, LexerTreeBuilder } from '@univerjs/engine-formula';
|
|
3
|
-
import {
|
|
4
|
-
import { Injector } from '@wendellhu/redi';
|
|
3
|
+
import { SheetInterceptorService, SheetsSelectionsService } from '@univerjs/sheets';
|
|
5
4
|
import { IEditorService } from '@univerjs/ui';
|
|
6
5
|
|
|
7
6
|
/**
|
|
@@ -24,7 +23,7 @@ export declare class UpdateFormulaController extends Disposable {
|
|
|
24
23
|
private _selectionManagerService;
|
|
25
24
|
private readonly _editorService;
|
|
26
25
|
readonly _injector: Injector;
|
|
27
|
-
constructor(_univerInstanceService: IUniverInstanceService, _commandService: ICommandService, _lexerTreeBuilder: LexerTreeBuilder, _formulaDataModel: FormulaDataModel, _sheetInterceptorService: SheetInterceptorService, _selectionManagerService:
|
|
26
|
+
constructor(_univerInstanceService: IUniverInstanceService, _commandService: ICommandService, _lexerTreeBuilder: LexerTreeBuilder, _formulaDataModel: FormulaDataModel, _sheetInterceptorService: SheetInterceptorService, _selectionManagerService: SheetsSelectionsService, _editorService: IEditorService, _injector: Injector);
|
|
28
27
|
private _initialize;
|
|
29
28
|
private _commandExecutedListener;
|
|
30
29
|
private _handleSetRangeValuesMutation;
|
|
@@ -63,21 +63,4 @@ export declare function refRangeFormula(oldFormulaData: IFormulaData, newFormula
|
|
|
63
63
|
* └──────────────────┴─────┴───┴───┴───────────┴─────┘
|
|
64
64
|
*/
|
|
65
65
|
export declare function formulaDataItemToCellData(formulaDataItem: Nullable<IFormulaDataItem>): Nullable<ICellData>;
|
|
66
|
-
/**
|
|
67
|
-
* Transfer the formulaDataItem to the cellData, contains formula
|
|
68
|
-
* ┌────────────────────────────────┬─────────────────┐
|
|
69
|
-
* │ IFormulaDataItem │ ICellData │
|
|
70
|
-
* ├──────────────────┬─────┬───┬───┼───────────┬─────┤
|
|
71
|
-
* │ f │ si │ x │ y │ f │ si │
|
|
72
|
-
* ├──────────────────┼─────┼───┼───┼───────────┼─────┤
|
|
73
|
-
* │ =SUM(1) │ │ │ │ =SUM(1) │ │
|
|
74
|
-
* │ │ id1 │ │ │ │ id1 │
|
|
75
|
-
* │ =SUM(1) │ id1 │ │ │ =SUM(1) │ │
|
|
76
|
-
* │ =SUM(1) │ id1 │ 0 │ 0 │ =SUM(1) │ │
|
|
77
|
-
* │ =SUM(1) │ id1 │ 0 │ 1 │ =SUM(1) │ │
|
|
78
|
-
* └──────────────────┴─────┴───┴───┴───────────┴─────┘
|
|
79
|
-
*
|
|
80
|
-
* The fifth case: The value f of the formula is already the result value. If the formula content of si contains #REF, it cannot be obtained from the formula offset of si, and the result value must be stored directly
|
|
81
|
-
*/
|
|
82
|
-
export declare function formulaDataItemToCellDataFormula(formulaDataItem: Nullable<IFormulaDataItem>): Nullable<ICellData>;
|
|
83
66
|
export declare function isFormulaDataItem(cell: IFormulaDataItem): boolean;
|
|
@@ -1,8 +1,15 @@
|
|
|
1
|
-
import { Plugin, UniverInstanceType } from '@univerjs/core';
|
|
2
|
-
import { Injector } from '@wendellhu/redi';
|
|
1
|
+
import { Injector, Plugin, UniverInstanceType } from '@univerjs/core';
|
|
3
2
|
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
4
3
|
import { IUniverSheetsFormulaConfig } from './controllers/formula-ui.controller';
|
|
5
4
|
|
|
5
|
+
export declare class UniverRemoteSheetsFormulaPlugin extends Plugin {
|
|
6
|
+
private readonly _config;
|
|
7
|
+
readonly _injector: Injector;
|
|
8
|
+
static pluginName: string;
|
|
9
|
+
static type: UniverInstanceType;
|
|
10
|
+
constructor(_config: {}, _injector: Injector);
|
|
11
|
+
onStarting(injector: Injector): void;
|
|
12
|
+
}
|
|
6
13
|
/**
|
|
7
14
|
* The configuration of the formula UI plugin.
|
|
8
15
|
*/
|
|
@@ -15,8 +22,6 @@ export declare class UniverSheetsFormulaPlugin extends Plugin {
|
|
|
15
22
|
constructor(_config: Partial<IUniverSheetsFormulaConfig>, _injector: Injector, _renderManagerService: IRenderManagerService);
|
|
16
23
|
onStarting(): void;
|
|
17
24
|
onRendered(): void;
|
|
18
|
-
private _registerRenderModules;
|
|
19
|
-
_init(): void;
|
|
20
25
|
}
|
|
21
26
|
export declare class UniverSheetsFormulaMobilePlugin extends Plugin {
|
|
22
27
|
private readonly _config;
|
package/lib/types/index.d.ts
CHANGED
|
@@ -13,13 +13,13 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
export { UniverSheetsFormulaPlugin, UniverSheetsFormulaMobilePlugin } from './formula-ui-plugin';
|
|
16
|
+
export { UniverRemoteSheetsFormulaPlugin, UniverSheetsFormulaPlugin, UniverSheetsFormulaMobilePlugin } from './formula-ui-plugin';
|
|
17
17
|
export { IDescriptionService } from './services/description.service';
|
|
18
18
|
export { DescriptionService } from './services/description.service';
|
|
19
|
-
export { FormulaCustomFunctionService, IFormulaCustomFunctionService, } from './services/formula-custom-function.service';
|
|
20
19
|
export type { IRegisterFunctionParams, IUnregisterFunctionParams } from './services/register-function.service';
|
|
21
20
|
export { RegisterFunctionService } from './services/register-function.service';
|
|
22
21
|
export { IRegisterFunctionService } from './services/register-function.service';
|
|
22
|
+
export { IRemoteRegisterFunctionService, RemoteRegisterFunctionService } from './services/remote/remote-register-function.service';
|
|
23
23
|
export { FormulaRefRangeService } from './services/formula-ref-range.service';
|
|
24
24
|
export { RegisterOtherFormulaService } from './services/register-other-formula.service';
|
|
25
25
|
export type { IFormulaInfo, IOtherFormulaResult } from './services/formula-common';
|
|
@@ -6435,11 +6435,7 @@ declare const _default: {
|
|
|
6435
6435
|
url: string;
|
|
6436
6436
|
}[];
|
|
6437
6437
|
functionParameter: {
|
|
6438
|
-
|
|
6439
|
-
name: string;
|
|
6440
|
-
detail: string;
|
|
6441
|
-
};
|
|
6442
|
-
number2: {
|
|
6438
|
+
number: {
|
|
6443
6439
|
name: string;
|
|
6444
6440
|
detail: string;
|
|
6445
6441
|
};
|
|
@@ -6563,11 +6559,15 @@ declare const _default: {
|
|
|
6563
6559
|
url: string;
|
|
6564
6560
|
}[];
|
|
6565
6561
|
functionParameter: {
|
|
6566
|
-
|
|
6562
|
+
number: {
|
|
6567
6563
|
name: string;
|
|
6568
6564
|
detail: string;
|
|
6569
6565
|
};
|
|
6570
|
-
|
|
6566
|
+
radix: {
|
|
6567
|
+
name: string;
|
|
6568
|
+
detail: string;
|
|
6569
|
+
};
|
|
6570
|
+
minLength: {
|
|
6571
6571
|
name: string;
|
|
6572
6572
|
detail: string;
|
|
6573
6573
|
};
|
|
@@ -6685,11 +6685,7 @@ declare const _default: {
|
|
|
6685
6685
|
url: string;
|
|
6686
6686
|
}[];
|
|
6687
6687
|
functionParameter: {
|
|
6688
|
-
|
|
6689
|
-
name: string;
|
|
6690
|
-
detail: string;
|
|
6691
|
-
};
|
|
6692
|
-
number2: {
|
|
6688
|
+
number: {
|
|
6693
6689
|
name: string;
|
|
6694
6690
|
detail: string;
|
|
6695
6691
|
};
|
|
@@ -6703,11 +6699,7 @@ declare const _default: {
|
|
|
6703
6699
|
url: string;
|
|
6704
6700
|
}[];
|
|
6705
6701
|
functionParameter: {
|
|
6706
|
-
|
|
6707
|
-
name: string;
|
|
6708
|
-
detail: string;
|
|
6709
|
-
};
|
|
6710
|
-
number2: {
|
|
6702
|
+
number: {
|
|
6711
6703
|
name: string;
|
|
6712
6704
|
detail: string;
|
|
6713
6705
|
};
|
|
@@ -6721,11 +6713,7 @@ declare const _default: {
|
|
|
6721
6713
|
url: string;
|
|
6722
6714
|
}[];
|
|
6723
6715
|
functionParameter: {
|
|
6724
|
-
|
|
6725
|
-
name: string;
|
|
6726
|
-
detail: string;
|
|
6727
|
-
};
|
|
6728
|
-
number2: {
|
|
6716
|
+
number: {
|
|
6729
6717
|
name: string;
|
|
6730
6718
|
detail: string;
|
|
6731
6719
|
};
|
|
@@ -6739,11 +6727,7 @@ declare const _default: {
|
|
|
6739
6727
|
url: string;
|
|
6740
6728
|
}[];
|
|
6741
6729
|
functionParameter: {
|
|
6742
|
-
|
|
6743
|
-
name: string;
|
|
6744
|
-
detail: string;
|
|
6745
|
-
};
|
|
6746
|
-
number2: {
|
|
6730
|
+
number: {
|
|
6747
6731
|
name: string;
|
|
6748
6732
|
detail: string;
|
|
6749
6733
|
};
|
|
@@ -6757,11 +6741,7 @@ declare const _default: {
|
|
|
6757
6741
|
url: string;
|
|
6758
6742
|
}[];
|
|
6759
6743
|
functionParameter: {
|
|
6760
|
-
|
|
6761
|
-
name: string;
|
|
6762
|
-
detail: string;
|
|
6763
|
-
};
|
|
6764
|
-
number2: {
|
|
6744
|
+
number: {
|
|
6765
6745
|
name: string;
|
|
6766
6746
|
detail: string;
|
|
6767
6747
|
};
|
|
@@ -7513,11 +7493,7 @@ declare const _default: {
|
|
|
7513
7493
|
url: string;
|
|
7514
7494
|
}[];
|
|
7515
7495
|
functionParameter: {
|
|
7516
|
-
|
|
7517
|
-
name: string;
|
|
7518
|
-
detail: string;
|
|
7519
|
-
};
|
|
7520
|
-
number2: {
|
|
7496
|
+
number: {
|
|
7521
7497
|
name: string;
|
|
7522
7498
|
detail: string;
|
|
7523
7499
|
};
|
|
@@ -7531,11 +7507,7 @@ declare const _default: {
|
|
|
7531
7507
|
url: string;
|
|
7532
7508
|
}[];
|
|
7533
7509
|
functionParameter: {
|
|
7534
|
-
|
|
7535
|
-
name: string;
|
|
7536
|
-
detail: string;
|
|
7537
|
-
};
|
|
7538
|
-
number2: {
|
|
7510
|
+
number: {
|
|
7539
7511
|
name: string;
|
|
7540
7512
|
detail: string;
|
|
7541
7513
|
};
|
|
@@ -7677,11 +7649,11 @@ declare const _default: {
|
|
|
7677
7649
|
url: string;
|
|
7678
7650
|
}[];
|
|
7679
7651
|
functionParameter: {
|
|
7680
|
-
|
|
7652
|
+
array1: {
|
|
7681
7653
|
name: string;
|
|
7682
7654
|
detail: string;
|
|
7683
7655
|
};
|
|
7684
|
-
|
|
7656
|
+
array2: {
|
|
7685
7657
|
name: string;
|
|
7686
7658
|
detail: string;
|
|
7687
7659
|
};
|
|
@@ -7953,11 +7925,7 @@ declare const _default: {
|
|
|
7953
7925
|
url: string;
|
|
7954
7926
|
}[];
|
|
7955
7927
|
functionParameter: {
|
|
7956
|
-
|
|
7957
|
-
name: string;
|
|
7958
|
-
detail: string;
|
|
7959
|
-
};
|
|
7960
|
-
number2: {
|
|
7928
|
+
serialNumber: {
|
|
7961
7929
|
name: string;
|
|
7962
7930
|
detail: string;
|
|
7963
7931
|
};
|
|
@@ -7989,11 +7957,7 @@ declare const _default: {
|
|
|
7989
7957
|
url: string;
|
|
7990
7958
|
}[];
|
|
7991
7959
|
functionParameter: {
|
|
7992
|
-
|
|
7993
|
-
name: string;
|
|
7994
|
-
detail: string;
|
|
7995
|
-
};
|
|
7996
|
-
number2: {
|
|
7960
|
+
serialNumber: {
|
|
7997
7961
|
name: string;
|
|
7998
7962
|
detail: string;
|
|
7999
7963
|
};
|
|
@@ -8021,11 +7985,15 @@ declare const _default: {
|
|
|
8021
7985
|
url: string;
|
|
8022
7986
|
}[];
|
|
8023
7987
|
functionParameter: {
|
|
8024
|
-
|
|
7988
|
+
startDate: {
|
|
8025
7989
|
name: string;
|
|
8026
7990
|
detail: string;
|
|
8027
7991
|
};
|
|
8028
|
-
|
|
7992
|
+
endDate: {
|
|
7993
|
+
name: string;
|
|
7994
|
+
detail: string;
|
|
7995
|
+
};
|
|
7996
|
+
holidays: {
|
|
8029
7997
|
name: string;
|
|
8030
7998
|
detail: string;
|
|
8031
7999
|
};
|
|
@@ -8039,11 +8007,19 @@ declare const _default: {
|
|
|
8039
8007
|
url: string;
|
|
8040
8008
|
}[];
|
|
8041
8009
|
functionParameter: {
|
|
8042
|
-
|
|
8010
|
+
startDate: {
|
|
8043
8011
|
name: string;
|
|
8044
8012
|
detail: string;
|
|
8045
8013
|
};
|
|
8046
|
-
|
|
8014
|
+
endDate: {
|
|
8015
|
+
name: string;
|
|
8016
|
+
detail: string;
|
|
8017
|
+
};
|
|
8018
|
+
weekend: {
|
|
8019
|
+
name: string;
|
|
8020
|
+
detail: string;
|
|
8021
|
+
};
|
|
8022
|
+
holidays: {
|
|
8047
8023
|
name: string;
|
|
8048
8024
|
detail: string;
|
|
8049
8025
|
};
|
|
@@ -8066,11 +8042,7 @@ declare const _default: {
|
|
|
8066
8042
|
url: string;
|
|
8067
8043
|
}[];
|
|
8068
8044
|
functionParameter: {
|
|
8069
|
-
|
|
8070
|
-
name: string;
|
|
8071
|
-
detail: string;
|
|
8072
|
-
};
|
|
8073
|
-
number2: {
|
|
8045
|
+
serialNumber: {
|
|
8074
8046
|
name: string;
|
|
8075
8047
|
detail: string;
|
|
8076
8048
|
};
|
|
@@ -8129,11 +8101,11 @@ declare const _default: {
|
|
|
8129
8101
|
url: string;
|
|
8130
8102
|
}[];
|
|
8131
8103
|
functionParameter: {
|
|
8132
|
-
|
|
8104
|
+
serialNumber: {
|
|
8133
8105
|
name: string;
|
|
8134
8106
|
detail: string;
|
|
8135
8107
|
};
|
|
8136
|
-
|
|
8108
|
+
returnType: {
|
|
8137
8109
|
name: string;
|
|
8138
8110
|
detail: string;
|
|
8139
8111
|
};
|
|
@@ -8165,11 +8137,15 @@ declare const _default: {
|
|
|
8165
8137
|
url: string;
|
|
8166
8138
|
}[];
|
|
8167
8139
|
functionParameter: {
|
|
8168
|
-
|
|
8140
|
+
startDate: {
|
|
8169
8141
|
name: string;
|
|
8170
8142
|
detail: string;
|
|
8171
8143
|
};
|
|
8172
|
-
|
|
8144
|
+
days: {
|
|
8145
|
+
name: string;
|
|
8146
|
+
detail: string;
|
|
8147
|
+
};
|
|
8148
|
+
holidays: {
|
|
8173
8149
|
name: string;
|
|
8174
8150
|
detail: string;
|
|
8175
8151
|
};
|
|
@@ -8183,11 +8159,19 @@ declare const _default: {
|
|
|
8183
8159
|
url: string;
|
|
8184
8160
|
}[];
|
|
8185
8161
|
functionParameter: {
|
|
8186
|
-
|
|
8162
|
+
startDate: {
|
|
8187
8163
|
name: string;
|
|
8188
8164
|
detail: string;
|
|
8189
8165
|
};
|
|
8190
|
-
|
|
8166
|
+
days: {
|
|
8167
|
+
name: string;
|
|
8168
|
+
detail: string;
|
|
8169
|
+
};
|
|
8170
|
+
weekend: {
|
|
8171
|
+
name: string;
|
|
8172
|
+
detail: string;
|
|
8173
|
+
};
|
|
8174
|
+
holidays: {
|
|
8191
8175
|
name: string;
|
|
8192
8176
|
detail: string;
|
|
8193
8177
|
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
declare const _default: {};
|
|
17
|
+
export default _default;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
declare const _default: {};
|
|
17
|
+
export default _default;
|