@univerjs/sheets-formula 0.1.12 → 0.1.14
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 -36
- package/lib/es/index.js +3445 -19241
- package/lib/index.css +1 -1
- package/lib/locale/en-US.json +10281 -0
- package/lib/locale/ru-RU.json +10280 -0
- package/lib/locale/zh-CN.json +10281 -0
- package/lib/types/controllers/formula-editor-show.controller.d.ts +2 -2
- package/lib/types/controllers/formula-render.controller.d.ts +2 -5
- package/lib/types/controllers/prompt.controller.d.ts +2 -3
- package/lib/types/controllers/trigger-calculation.controller.d.ts +7 -1
- package/lib/types/controllers/utils/utils.d.ts +6 -0
- package/lib/types/index.d.ts +0 -1
- package/lib/types/locale/en-US.d.ts +1 -0
- package/lib/types/locale/zh-CN.d.ts +1 -0
- package/lib/umd/index.js +4 -36
- package/package.json +42 -28
- package/lib/types/locale/index.d.ts +0 -18
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Workbook, Disposable, ICommandService, ThemeService } from '@univerjs/core';
|
|
2
2
|
import { FormulaDataModel, LexerTreeBuilder } from '@univerjs/engine-formula';
|
|
3
|
-
import { IRenderContext,
|
|
3
|
+
import { IRenderContext, IRenderModule, IRenderManagerService } from '@univerjs/engine-render';
|
|
4
4
|
import { SheetInterceptorService } from '@univerjs/sheets';
|
|
5
5
|
import { IEditorBridgeService, ISelectionRenderService, SheetSkeletonManagerService } from '@univerjs/sheets-ui';
|
|
6
6
|
|
|
7
|
-
export declare class FormulaEditorShowController extends Disposable implements
|
|
7
|
+
export declare class FormulaEditorShowController extends Disposable implements IRenderModule {
|
|
8
8
|
private readonly _context;
|
|
9
9
|
private _editorBridgeService;
|
|
10
10
|
private readonly _formulaDataModel;
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import { RxDisposable } from '@univerjs/core';
|
|
2
|
-
import { SheetSkeletonManagerService } from '@univerjs/sheets-ui';
|
|
3
2
|
import { SheetInterceptorService } from '@univerjs/sheets';
|
|
4
3
|
|
|
5
|
-
export declare class
|
|
6
|
-
private readonly _sheetSkeletonManagerService;
|
|
4
|
+
export declare class FormulaRenderManagerController extends RxDisposable {
|
|
7
5
|
private readonly _sheetInterceptorService;
|
|
8
|
-
constructor(
|
|
6
|
+
constructor(_sheetInterceptorService: SheetInterceptorService);
|
|
9
7
|
private _init;
|
|
10
|
-
private _initViewModelIntercept;
|
|
11
8
|
}
|
|
@@ -3,7 +3,7 @@ import { DocViewModelManagerService, TextSelectionManagerService } from '@univer
|
|
|
3
3
|
import { LexerTreeBuilder } from '@univerjs/engine-formula';
|
|
4
4
|
import { IRenderManagerService, ITextSelectionRenderManager } from '@univerjs/engine-render';
|
|
5
5
|
import { SelectionManagerService } from '@univerjs/sheets';
|
|
6
|
-
import { EditorBridgeService, ISelectionRenderService
|
|
6
|
+
import { EditorBridgeService, ISelectionRenderService } 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';
|
|
@@ -18,7 +18,6 @@ export declare class PromptController extends Disposable {
|
|
|
18
18
|
private readonly _renderManagerService;
|
|
19
19
|
private readonly _themeService;
|
|
20
20
|
private readonly _selectionManagerService;
|
|
21
|
-
private readonly _sheetSkeletonManagerService;
|
|
22
21
|
private readonly _univerInstanceService;
|
|
23
22
|
private readonly _selectionRenderService;
|
|
24
23
|
private readonly _descriptionService;
|
|
@@ -40,7 +39,7 @@ export declare class PromptController extends Disposable {
|
|
|
40
39
|
private _userCursorMove;
|
|
41
40
|
private _previousEditorUnitId;
|
|
42
41
|
private _existsSequenceNode;
|
|
43
|
-
constructor(_commandService: ICommandService, _contextService: IContextService, _textSelectionRenderManager: ITextSelectionRenderManager, _editorBridgeService: EditorBridgeService, _formulaPromptService: IFormulaPromptService, _lexerTreeBuilder: LexerTreeBuilder, _renderManagerService: IRenderManagerService, _themeService: ThemeService, _selectionManagerService: SelectionManagerService,
|
|
42
|
+
constructor(_commandService: ICommandService, _contextService: IContextService, _textSelectionRenderManager: ITextSelectionRenderManager, _editorBridgeService: EditorBridgeService, _formulaPromptService: IFormulaPromptService, _lexerTreeBuilder: LexerTreeBuilder, _renderManagerService: IRenderManagerService, _themeService: ThemeService, _selectionManagerService: SelectionManagerService, _univerInstanceService: IUniverInstanceService, _selectionRenderService: ISelectionRenderService, _descriptionService: IDescriptionService, _textSelectionManagerService: TextSelectionManagerService, _docViewModelManagerService: DocViewModelManagerService, _contextMenuService: IContextMenuService, _editorService: IEditorService);
|
|
44
43
|
dispose(): void;
|
|
45
44
|
private _resetTemp;
|
|
46
45
|
private _initialize;
|
|
@@ -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
|
|
30
|
+
private _pushFormulaTask;
|
|
31
|
+
/**
|
|
32
|
+
* Update progress by completed count
|
|
33
|
+
* @param completedCount
|
|
34
|
+
*/
|
|
35
|
+
private _pushArrayFormulaTask;
|
|
30
36
|
}
|
|
@@ -8,3 +8,9 @@ export declare function whenEditorStandalone(contextService: IContextService): b
|
|
|
8
8
|
* @returns
|
|
9
9
|
*/
|
|
10
10
|
export declare function extractFormulaError(cell: Nullable<ICellData>): ErrorType | null;
|
|
11
|
+
/**
|
|
12
|
+
* Extract the formula number from the cell, handle the precision issue
|
|
13
|
+
* @param cell
|
|
14
|
+
* @returns
|
|
15
|
+
*/
|
|
16
|
+
export declare function extractFormulaNumber(cell: Nullable<ICellData>): number | null;
|
package/lib/types/index.d.ts
CHANGED
|
@@ -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';
|