@univerjs/sheets-formula 0.1.0-alpha.1
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/LICENSE +21 -0
- package/README.md +16 -0
- package/lib/cjs/index.js +4215 -0
- package/lib/cjs/locale/en-US.js +223 -0
- package/lib/cjs/locale/zh-CN.js +223 -0
- package/lib/esm/index.js +4205 -0
- package/lib/esm/locale/en-US.js +200 -0
- package/lib/esm/locale/zh-CN.js +200 -0
- package/lib/index.css +214 -0
- package/lib/types/commands/commands/insert-function.command.d.ts +23 -0
- package/lib/types/commands/commands/insert-function.command.d.ts.map +1 -0
- package/lib/types/commands/operations/__tests__/create-command-test-bed.d.ts +16 -0
- package/lib/types/commands/operations/__tests__/create-command-test-bed.d.ts.map +1 -0
- package/lib/types/commands/operations/__tests__/insert-function.operation.spec.d.ts +2 -0
- package/lib/types/commands/operations/__tests__/insert-function.operation.spec.d.ts.map +1 -0
- package/lib/types/commands/operations/editor-formula.operation.d.ts +11 -0
- package/lib/types/commands/operations/editor-formula.operation.d.ts.map +1 -0
- package/lib/types/commands/operations/help-function.operation.d.ts +3 -0
- package/lib/types/commands/operations/help-function.operation.d.ts.map +1 -0
- package/lib/types/commands/operations/insert-function.operation.d.ts +9 -0
- package/lib/types/commands/operations/insert-function.operation.d.ts.map +1 -0
- package/lib/types/commands/operations/more-functions.operation.d.ts +3 -0
- package/lib/types/commands/operations/more-functions.operation.d.ts.map +1 -0
- package/lib/types/commands/operations/reference-absolute.operation.d.ts +3 -0
- package/lib/types/commands/operations/reference-absolute.operation.d.ts.map +1 -0
- package/lib/types/commands/operations/search-function.operation.d.ts +3 -0
- package/lib/types/commands/operations/search-function.operation.d.ts.map +1 -0
- package/lib/types/common/plugin-name.d.ts +2 -0
- package/lib/types/common/plugin-name.d.ts.map +1 -0
- package/lib/types/common/prompt.d.ts +2 -0
- package/lib/types/common/prompt.d.ts.map +1 -0
- package/lib/types/common/selection.d.ts +5 -0
- package/lib/types/common/selection.d.ts.map +1 -0
- package/lib/types/controllers/__tests__/create-command-test-bed.d.ts +11 -0
- package/lib/types/controllers/__tests__/create-command-test-bed.d.ts.map +1 -0
- package/lib/types/controllers/__tests__/formula-auto-fill.controller.spec.d.ts +2 -0
- package/lib/types/controllers/__tests__/formula-auto-fill.controller.spec.d.ts.map +1 -0
- package/lib/types/controllers/formula-auto-fill.controller.d.ts +12 -0
- package/lib/types/controllers/formula-auto-fill.controller.d.ts.map +1 -0
- package/lib/types/controllers/formula-input.controller.d.ts +25 -0
- package/lib/types/controllers/formula-input.controller.d.ts.map +1 -0
- package/lib/types/controllers/formula-ui.controller.d.ts +19 -0
- package/lib/types/controllers/formula-ui.controller.d.ts.map +1 -0
- package/lib/types/controllers/menu.d.ts +5 -0
- package/lib/types/controllers/menu.d.ts.map +1 -0
- package/lib/types/controllers/prompt.controller.d.ts +146 -0
- package/lib/types/controllers/prompt.controller.d.ts.map +1 -0
- package/lib/types/controllers/shortcuts/prompt.shortcut.d.ts +10 -0
- package/lib/types/controllers/shortcuts/prompt.shortcut.d.ts.map +1 -0
- package/lib/types/formula-ui-plugin.d.ts +18 -0
- package/lib/types/formula-ui-plugin.d.ts.map +1 -0
- package/lib/types/index.d.ts +2 -0
- package/lib/types/index.d.ts.map +1 -0
- package/lib/types/locale/en-US.d.ts +136 -0
- package/lib/types/locale/en-US.d.ts.map +1 -0
- package/lib/types/locale/function-list/array/en-US.d.ts +3 -0
- package/lib/types/locale/function-list/array/en-US.d.ts.map +1 -0
- package/lib/types/locale/function-list/array/zh-CN.d.ts +3 -0
- package/lib/types/locale/function-list/array/zh-CN.d.ts.map +1 -0
- package/lib/types/locale/function-list/compatibility/en-US.d.ts +3 -0
- package/lib/types/locale/function-list/compatibility/en-US.d.ts.map +1 -0
- package/lib/types/locale/function-list/compatibility/zh-CN.d.ts +3 -0
- package/lib/types/locale/function-list/compatibility/zh-CN.d.ts.map +1 -0
- package/lib/types/locale/function-list/cube/en-US.d.ts +3 -0
- package/lib/types/locale/function-list/cube/en-US.d.ts.map +1 -0
- package/lib/types/locale/function-list/cube/zh-CN.d.ts +3 -0
- package/lib/types/locale/function-list/cube/zh-CN.d.ts.map +1 -0
- package/lib/types/locale/function-list/database/en-US.d.ts +3 -0
- package/lib/types/locale/function-list/database/en-US.d.ts.map +1 -0
- package/lib/types/locale/function-list/database/zh-CN.d.ts +3 -0
- package/lib/types/locale/function-list/database/zh-CN.d.ts.map +1 -0
- package/lib/types/locale/function-list/date/en-US.d.ts +3 -0
- package/lib/types/locale/function-list/date/en-US.d.ts.map +1 -0
- package/lib/types/locale/function-list/date/zh-CN.d.ts +3 -0
- package/lib/types/locale/function-list/date/zh-CN.d.ts.map +1 -0
- package/lib/types/locale/function-list/engineering/en-US.d.ts +3 -0
- package/lib/types/locale/function-list/engineering/en-US.d.ts.map +1 -0
- package/lib/types/locale/function-list/engineering/zh-CN.d.ts +3 -0
- package/lib/types/locale/function-list/engineering/zh-CN.d.ts.map +1 -0
- package/lib/types/locale/function-list/financial/en-US.d.ts +3 -0
- package/lib/types/locale/function-list/financial/en-US.d.ts.map +1 -0
- package/lib/types/locale/function-list/financial/zh-CN.d.ts +3 -0
- package/lib/types/locale/function-list/financial/zh-CN.d.ts.map +1 -0
- package/lib/types/locale/function-list/information/en-US.d.ts +3 -0
- package/lib/types/locale/function-list/information/en-US.d.ts.map +1 -0
- package/lib/types/locale/function-list/information/zh-CN.d.ts +3 -0
- package/lib/types/locale/function-list/information/zh-CN.d.ts.map +1 -0
- package/lib/types/locale/function-list/logical/en-US.d.ts +3 -0
- package/lib/types/locale/function-list/logical/en-US.d.ts.map +1 -0
- package/lib/types/locale/function-list/logical/zh-CN.d.ts +3 -0
- package/lib/types/locale/function-list/logical/zh-CN.d.ts.map +1 -0
- package/lib/types/locale/function-list/lookup/en-US.d.ts +3 -0
- package/lib/types/locale/function-list/lookup/en-US.d.ts.map +1 -0
- package/lib/types/locale/function-list/lookup/zh-CN.d.ts +3 -0
- package/lib/types/locale/function-list/lookup/zh-CN.d.ts.map +1 -0
- package/lib/types/locale/function-list/math/en-US.d.ts +36 -0
- package/lib/types/locale/function-list/math/en-US.d.ts.map +1 -0
- package/lib/types/locale/function-list/math/zh-CN.d.ts +36 -0
- package/lib/types/locale/function-list/math/zh-CN.d.ts.map +1 -0
- package/lib/types/locale/function-list/statistical/en-US.d.ts +60 -0
- package/lib/types/locale/function-list/statistical/en-US.d.ts.map +1 -0
- package/lib/types/locale/function-list/statistical/zh-CN.d.ts +60 -0
- package/lib/types/locale/function-list/statistical/zh-CN.d.ts.map +1 -0
- package/lib/types/locale/function-list/text/en-US.d.ts +3 -0
- package/lib/types/locale/function-list/text/en-US.d.ts.map +1 -0
- package/lib/types/locale/function-list/text/zh-CN.d.ts +3 -0
- package/lib/types/locale/function-list/text/zh-CN.d.ts.map +1 -0
- package/lib/types/locale/function-list/univer/en-US.d.ts +3 -0
- package/lib/types/locale/function-list/univer/en-US.d.ts.map +1 -0
- package/lib/types/locale/function-list/univer/zh-CN.d.ts +3 -0
- package/lib/types/locale/function-list/univer/zh-CN.d.ts.map +1 -0
- package/lib/types/locale/function-list/web/en-US.d.ts +3 -0
- package/lib/types/locale/function-list/web/en-US.d.ts.map +1 -0
- package/lib/types/locale/function-list/web/zh-CN.d.ts +3 -0
- package/lib/types/locale/function-list/web/zh-CN.d.ts.map +1 -0
- package/lib/types/locale/index.d.ts +3 -0
- package/lib/types/locale/index.d.ts.map +1 -0
- package/lib/types/locale/zh-CN.d.ts +136 -0
- package/lib/types/locale/zh-CN.d.ts.map +1 -0
- package/lib/types/services/description.service.d.ts +48 -0
- package/lib/types/services/description.service.d.ts.map +1 -0
- package/lib/types/services/formula-input.service.d.ts +95 -0
- package/lib/types/services/formula-input.service.d.ts.map +1 -0
- package/lib/types/services/function-list/array.d.ts +3 -0
- package/lib/types/services/function-list/array.d.ts.map +1 -0
- package/lib/types/services/function-list/compatibility.d.ts +3 -0
- package/lib/types/services/function-list/compatibility.d.ts.map +1 -0
- package/lib/types/services/function-list/cube.d.ts +3 -0
- package/lib/types/services/function-list/cube.d.ts.map +1 -0
- package/lib/types/services/function-list/database.d.ts +3 -0
- package/lib/types/services/function-list/database.d.ts.map +1 -0
- package/lib/types/services/function-list/date.d.ts +3 -0
- package/lib/types/services/function-list/date.d.ts.map +1 -0
- package/lib/types/services/function-list/engineering.d.ts +3 -0
- package/lib/types/services/function-list/engineering.d.ts.map +1 -0
- package/lib/types/services/function-list/financial.d.ts +3 -0
- package/lib/types/services/function-list/financial.d.ts.map +1 -0
- package/lib/types/services/function-list/function-list.d.ts +3 -0
- package/lib/types/services/function-list/function-list.d.ts.map +1 -0
- package/lib/types/services/function-list/information.d.ts +3 -0
- package/lib/types/services/function-list/information.d.ts.map +1 -0
- package/lib/types/services/function-list/logical.d.ts +3 -0
- package/lib/types/services/function-list/logical.d.ts.map +1 -0
- package/lib/types/services/function-list/lookup.d.ts +3 -0
- package/lib/types/services/function-list/lookup.d.ts.map +1 -0
- package/lib/types/services/function-list/math.d.ts +3 -0
- package/lib/types/services/function-list/math.d.ts.map +1 -0
- package/lib/types/services/function-list/statistical.d.ts +3 -0
- package/lib/types/services/function-list/statistical.d.ts.map +1 -0
- package/lib/types/services/function-list/text.d.ts +3 -0
- package/lib/types/services/function-list/text.d.ts.map +1 -0
- package/lib/types/services/function-list/univer.d.ts +3 -0
- package/lib/types/services/function-list/univer.d.ts.map +1 -0
- package/lib/types/services/function-list/web.d.ts +3 -0
- package/lib/types/services/function-list/web.d.ts.map +1 -0
- package/lib/types/services/prompt.service.d.ts +106 -0
- package/lib/types/services/prompt.service.d.ts.map +1 -0
- package/lib/types/services/utils.d.ts +8 -0
- package/lib/types/services/utils.d.ts.map +1 -0
- package/lib/types/views/FormulaPromptContainer.d.ts +3 -0
- package/lib/types/views/FormulaPromptContainer.d.ts.map +1 -0
- package/lib/types/views/more-functions/MoreFunctions.d.ts +3 -0
- package/lib/types/views/more-functions/MoreFunctions.d.ts.map +1 -0
- package/lib/types/views/more-functions/function-help/FunctionHelp.d.ts +9 -0
- package/lib/types/views/more-functions/function-help/FunctionHelp.d.ts.map +1 -0
- package/lib/types/views/more-functions/function-params/FunctionParams.d.ts +9 -0
- package/lib/types/views/more-functions/function-params/FunctionParams.d.ts.map +1 -0
- package/lib/types/views/more-functions/input-params/InputParams.d.ts +8 -0
- package/lib/types/views/more-functions/input-params/InputParams.d.ts.map +1 -0
- package/lib/types/views/more-functions/interface.d.ts +2 -0
- package/lib/types/views/more-functions/interface.d.ts.map +1 -0
- package/lib/types/views/more-functions/select-function/SelectFunction.d.ts +7 -0
- package/lib/types/views/more-functions/select-function/SelectFunction.d.ts.map +1 -0
- package/lib/types/views/prompt/error-function/error-function.d.ts +3 -0
- package/lib/types/views/prompt/error-function/error-function.d.ts.map +1 -0
- package/lib/types/views/prompt/help-function/HelpFunction.d.ts +3 -0
- package/lib/types/views/prompt/help-function/HelpFunction.d.ts.map +1 -0
- package/lib/types/views/prompt/search-function/SearchFunction.d.ts +3 -0
- package/lib/types/views/prompt/search-function/SearchFunction.d.ts.map +1 -0
- package/package.json +68 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"help-function.operation.d.ts","sourceRoot":"","sources":["../../../../src/commands/operations/help-function.operation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAO/C,eAAO,MAAM,qBAAqB,EAAE,QASnC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ICommand } from '@univerjs/core';
|
|
2
|
+
export interface IInsertFunctionOperationParams {
|
|
3
|
+
/**
|
|
4
|
+
* function name
|
|
5
|
+
*/
|
|
6
|
+
value: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const InsertFunctionOperation: ICommand;
|
|
9
|
+
//# sourceMappingURL=insert-function.operation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"insert-function.operation.d.ts","sourceRoot":"","sources":["../../../../src/commands/operations/insert-function.operation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAa,QAAQ,EAAkC,MAAM,gBAAgB,CAAC;AAiB1F,MAAM,WAAW,8BAA8B;IAC3C;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,uBAAuB,EAAE,QA0DrC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"more-functions.operation.d.ts","sourceRoot":"","sources":["../../../../src/commands/operations/more-functions.operation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAO/C,eAAO,MAAM,sBAAsB,EAAE,QAapC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reference-absolute.operation.d.ts","sourceRoot":"","sources":["../../../../src/commands/operations/reference-absolute.operation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAI/C,eAAO,MAAM,0BAA0B,EAAE,QAIxC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search-function.operation.d.ts","sourceRoot":"","sources":["../../../../src/commands/operations/search-function.operation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAO/C,eAAO,MAAM,uBAAuB,EAAE,QASrC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin-name.d.ts","sourceRoot":"","sources":["../../../src/common/plugin-name.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,sBAAsB,eAAe,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prompt.d.ts","sourceRoot":"","sources":["../../../src/common/prompt.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,4BAA4B,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { ThemeService } from '@univerjs/core';
|
|
2
|
+
import type { ISelectionStyle } from '@univerjs/sheets';
|
|
3
|
+
export declare const FORMULA_REF_SELECTION_PLUGIN_NAME = "formula_reference_selection_plugin_name";
|
|
4
|
+
export declare function getFormulaRefSelectionStyle(themeService: ThemeService, refColor: string, id: string): ISelectionStyle;
|
|
5
|
+
//# sourceMappingURL=selection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"selection.d.ts","sourceRoot":"","sources":["../../../src/common/selection.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAExD,eAAO,MAAM,iCAAiC,4CAA4C,CAAC;AAE3F,wBAAgB,2BAA2B,CAAC,YAAY,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,eAAe,CAqBrH"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { IWorkbookData, Workbook } from '@univerjs/core';
|
|
2
|
+
import { Univer } from '@univerjs/core';
|
|
3
|
+
import type { Dependency } from '@wendellhu/redi';
|
|
4
|
+
import { Injector } from '@wendellhu/redi';
|
|
5
|
+
export interface ITestBed {
|
|
6
|
+
univer: Univer;
|
|
7
|
+
get: Injector['get'];
|
|
8
|
+
sheet: Workbook;
|
|
9
|
+
}
|
|
10
|
+
export declare function createCommandTestBed(workbookConfig?: IWorkbookData, dependencies?: Dependency[]): ITestBed;
|
|
11
|
+
//# sourceMappingURL=create-command-test-bed.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-command-test-bed.d.ts","sourceRoot":"","sources":["../../../../src/controllers/__tests__/create-command-test-bed.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC9D,OAAO,EAAuE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAE7G,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAU,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AA0BnD,MAAM,WAAW,QAAQ;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC;IACrB,KAAK,EAAE,QAAQ,CAAC;CACnB;AAED,wBAAgB,oBAAoB,CAAC,cAAc,CAAC,EAAE,aAAa,EAAE,YAAY,CAAC,EAAE,UAAU,EAAE,GAAG,QAAQ,CAqC1G"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formula-auto-fill.controller.spec.d.ts","sourceRoot":"","sources":["../../../../src/controllers/__tests__/formula-auto-fill.controller.spec.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Disposable } from '@univerjs/core';
|
|
2
|
+
import { FormulaEngineService } from '@univerjs/engine-formula';
|
|
3
|
+
import type { AutoFillService } from '@univerjs/sheets-ui';
|
|
4
|
+
export declare class FormulaAutoFillController extends Disposable {
|
|
5
|
+
private readonly _autoFillService;
|
|
6
|
+
private readonly _formulaEngineService;
|
|
7
|
+
constructor(_autoFillService: AutoFillService, _formulaEngineService: FormulaEngineService);
|
|
8
|
+
private _initialize;
|
|
9
|
+
private _registerAutoFill;
|
|
10
|
+
private _fillCopyFormula;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=formula-auto-fill.controller.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formula-auto-fill.controller.d.ts","sourceRoot":"","sources":["../../../src/controllers/formula-auto-fill.controller.ts"],"names":[],"mappings":"AACA,OAAO,EAAa,UAAU,EAAwD,MAAM,gBAAgB,CAAC;AAC7G,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,KAAK,EAAE,eAAe,EAA2D,MAAM,qBAAqB,CAAC;AAIpH,qBACa,yBAA0B,SAAQ,UAAU;IAE/B,OAAO,CAAC,QAAQ,CAAC,gBAAgB;IACrB,OAAO,CAAC,QAAQ,CAAC,qBAAqB;gBADjC,gBAAgB,EAAE,eAAe,EACrB,qBAAqB,EAAE,oBAAoB;IAO9F,OAAO,CAAC,WAAW;IAInB,OAAO,CAAC,iBAAiB;IAqBzB,OAAO,CAAC,gBAAgB;CAwD3B"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Disposable, ICommandService } from '@univerjs/core';
|
|
2
|
+
import { FormulaEngineService } from '@univerjs/engine-formula';
|
|
3
|
+
import { IRenderManagerService, ITextSelectionRenderManager } from '@univerjs/engine-render';
|
|
4
|
+
import type { EditorBridgeService } from '@univerjs/sheets-ui';
|
|
5
|
+
import { IFormulaInputService } from '../services/formula-input.service';
|
|
6
|
+
export declare class FormulaInputController extends Disposable {
|
|
7
|
+
private readonly _commandService;
|
|
8
|
+
private readonly _textSelectionRenderManager;
|
|
9
|
+
private readonly _editorBridgeService;
|
|
10
|
+
private readonly _formulaEngineService;
|
|
11
|
+
private readonly _renderManagerService;
|
|
12
|
+
private readonly _formulaInputService;
|
|
13
|
+
private _userCursorMove;
|
|
14
|
+
constructor(_commandService: ICommandService, _textSelectionRenderManager: ITextSelectionRenderManager, _editorBridgeService: EditorBridgeService, _formulaEngineService: FormulaEngineService, _renderManagerService: IRenderManagerService, _formulaInputService: IFormulaInputService);
|
|
15
|
+
private _initialize;
|
|
16
|
+
private _initialEditorInputChange;
|
|
17
|
+
private _userMouseListener;
|
|
18
|
+
private _inputFormulaListener;
|
|
19
|
+
private _changeRefString;
|
|
20
|
+
private _changeRangeRef;
|
|
21
|
+
private _changeSingleRef;
|
|
22
|
+
private _commandExecutedListener;
|
|
23
|
+
private _getEditorObject;
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=formula-input.controller.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formula-input.controller.d.ts","sourceRoot":"","sources":["../../../src/controllers/formula-input.controller.ts"],"names":[],"mappings":"AACA,OAAO,EAGH,UAAU,EACV,eAAe,EAKlB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,oBAAoB,EAAgC,MAAM,0BAA0B,CAAC;AAC9F,OAAO,EAAwB,qBAAqB,EAAE,2BAA2B,EAAE,MAAM,yBAAyB,CAAC;AACnH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAM/D,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAEzE,qBACa,sBAAuB,SAAQ,UAAU;IAI7B,OAAO,CAAC,QAAQ,CAAC,eAAe;IACpB,OAAO,CAAC,QAAQ,CAAC,2BAA2B;IAC3C,OAAO,CAAC,QAAQ,CAAC,oBAAoB;IACrC,OAAO,CAAC,QAAQ,CAAC,qBAAqB;IAC7C,OAAO,CAAC,QAAQ,CAAC,qBAAqB;IACvC,OAAO,CAAC,QAAQ,CAAC,oBAAoB;IAR/D,OAAO,CAAC,eAAe,CAAkB;gBAGH,eAAe,EAAE,eAAe,EACpB,2BAA2B,EAAE,2BAA2B,EACvD,oBAAoB,EAAE,mBAAmB,EACzC,qBAAqB,EAAE,oBAAoB,EAClD,qBAAqB,EAAE,qBAAqB,EAC7C,oBAAoB,EAAE,oBAAoB;IAOrF,OAAO,CAAC,WAAW;IAUnB,OAAO,CAAC,yBAAyB;IAgBjC,OAAO,CAAC,kBAAkB;IAiB1B,OAAO,CAAC,qBAAqB;IAsB7B,OAAO,CAAC,gBAAgB;IA8DxB,OAAO,CAAC,eAAe;IAcvB,OAAO,CAAC,gBAAgB;IAsBxB,OAAO,CAAC,wBAAwB;IAehC,OAAO,CAAC,gBAAgB;CAG3B"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Disposable, ICommandService } from '@univerjs/core';
|
|
2
|
+
import type { IDesktopUIController } from '@univerjs/ui';
|
|
3
|
+
import { ComponentManager, IMenuService, IShortcutService } from '@univerjs/ui';
|
|
4
|
+
import { Injector } from '@wendellhu/redi';
|
|
5
|
+
export declare class FormulaUIController extends Disposable {
|
|
6
|
+
private readonly _injector;
|
|
7
|
+
private readonly _menuService;
|
|
8
|
+
private readonly _commandService;
|
|
9
|
+
private readonly _shortcutService;
|
|
10
|
+
private readonly _uiController;
|
|
11
|
+
private readonly _componentManager;
|
|
12
|
+
constructor(_injector: Injector, _menuService: IMenuService, _commandService: ICommandService, _shortcutService: IShortcutService, _uiController: IDesktopUIController, _componentManager: ComponentManager);
|
|
13
|
+
private _initialize;
|
|
14
|
+
private _registerMenus;
|
|
15
|
+
private _registerCommands;
|
|
16
|
+
private _registerShortcuts;
|
|
17
|
+
private _registerComponents;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=formula-ui.controller.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formula-ui.controller.d.ts","sourceRoot":"","sources":["../../../src/controllers/formula-ui.controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,eAAe,EAAgC,MAAM,gBAAgB,CAAC;AAC3F,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACzD,OAAO,EAAE,gBAAgB,EAAE,YAAY,EAAE,gBAAgB,EAAiB,MAAM,cAAc,CAAC;AAC/F,OAAO,EAAU,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAsBnD,qBACa,mBAAoB,SAAQ,UAAU;IAEzB,OAAO,CAAC,QAAQ,CAAC,SAAS;IAC9B,OAAO,CAAC,QAAQ,CAAC,YAAY;IAC1B,OAAO,CAAC,QAAQ,CAAC,eAAe;IAC/B,OAAO,CAAC,QAAQ,CAAC,gBAAgB;IACpC,OAAO,CAAC,QAAQ,CAAC,aAAa;IACnB,OAAO,CAAC,QAAQ,CAAC,iBAAiB;gBALzB,SAAS,EAAE,QAAQ,EACvB,YAAY,EAAE,YAAY,EACvB,eAAe,EAAE,eAAe,EAC/B,gBAAgB,EAAE,gBAAgB,EACrC,aAAa,EAAE,oBAAoB,EACxB,iBAAiB,EAAE,gBAAgB;IAOlF,OAAO,CAAC,WAAW;IAOnB,OAAO,CAAC,cAAc;IAMtB,OAAO,CAAC,iBAAiB;IAYzB,OAAO,CAAC,kBAAkB;IAY1B,OAAO,CAAC,mBAAmB;CAS9B"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { IMenuItem } from '@univerjs/ui';
|
|
2
|
+
import type { IAccessor } from '@wendellhu/redi';
|
|
3
|
+
export declare function InsertFunctionMenuItemFactory(accessor: IAccessor): IMenuItem;
|
|
4
|
+
export declare function MoreFunctionsMenuItemFactory(accessor: IAccessor): IMenuItem;
|
|
5
|
+
//# sourceMappingURL=menu.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"menu.d.ts","sourceRoot":"","sources":["../../../src/controllers/menu.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAKjD,wBAAgB,6BAA6B,CAAC,QAAQ,EAAE,SAAS,GAAG,SAAS,CAoC5E;AAED,wBAAgB,4BAA4B,CAAC,QAAQ,EAAE,SAAS,GAAG,SAAS,CAO3E"}
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import { Disposable, ICommandService, IContextService, IUniverInstanceService, LocaleService, ThemeService } from '@univerjs/core';
|
|
2
|
+
import { DocViewModelManagerService, TextSelectionManagerService } from '@univerjs/docs';
|
|
3
|
+
import { FormulaEngineService } from '@univerjs/engine-formula';
|
|
4
|
+
import { IRenderManagerService, ITextSelectionRenderManager } from '@univerjs/engine-render';
|
|
5
|
+
import { SelectionManagerService } from '@univerjs/sheets';
|
|
6
|
+
import type { EditorBridgeService } from '@univerjs/sheets-ui';
|
|
7
|
+
import { ISelectionRenderService, SheetSkeletonManagerService } from '@univerjs/sheets-ui';
|
|
8
|
+
import { IDescriptionService } from '../services/description.service';
|
|
9
|
+
import { IFormulaInputService } from '../services/formula-input.service';
|
|
10
|
+
import { IFormulaPromptService } from '../services/prompt.service';
|
|
11
|
+
export declare class PromptController extends Disposable {
|
|
12
|
+
private readonly _commandService;
|
|
13
|
+
private readonly _localeService;
|
|
14
|
+
private readonly _contextService;
|
|
15
|
+
private readonly _textSelectionRenderManager;
|
|
16
|
+
private readonly _editorBridgeService;
|
|
17
|
+
private readonly _formulaPromptService;
|
|
18
|
+
private readonly _formulaEngineService;
|
|
19
|
+
private readonly _renderManagerService;
|
|
20
|
+
private readonly _themeService;
|
|
21
|
+
private readonly _selectionManagerService;
|
|
22
|
+
private readonly _sheetSkeletonManagerService;
|
|
23
|
+
private readonly _currentUniverService;
|
|
24
|
+
private readonly _selectionRenderService;
|
|
25
|
+
private readonly _descriptionService;
|
|
26
|
+
private readonly _textSelectionManagerService;
|
|
27
|
+
private readonly _formulaInputService;
|
|
28
|
+
private readonly _docViewModelManagerService;
|
|
29
|
+
private _formulaRefColors;
|
|
30
|
+
private _previousSequenceNodes;
|
|
31
|
+
private _previousRangesCount;
|
|
32
|
+
private _previousInsertRefStringIndex;
|
|
33
|
+
private _currentInsertRefStringIndex;
|
|
34
|
+
private _currentUnitId;
|
|
35
|
+
private _currentSheetId;
|
|
36
|
+
private _arrowMoveActionState;
|
|
37
|
+
private _isSelectionMovingRefSelections;
|
|
38
|
+
private _stringColor;
|
|
39
|
+
private _numberColor;
|
|
40
|
+
private _insertSelections;
|
|
41
|
+
private _inputPanelState;
|
|
42
|
+
constructor(_commandService: ICommandService, _localeService: LocaleService, _contextService: IContextService, _textSelectionRenderManager: ITextSelectionRenderManager, _editorBridgeService: EditorBridgeService, _formulaPromptService: IFormulaPromptService, _formulaEngineService: FormulaEngineService, _renderManagerService: IRenderManagerService, _themeService: ThemeService, _selectionManagerService: SelectionManagerService, _sheetSkeletonManagerService: SheetSkeletonManagerService, _currentUniverService: IUniverInstanceService, _selectionRenderService: ISelectionRenderService, _descriptionService: IDescriptionService, _textSelectionManagerService: TextSelectionManagerService, _formulaInputService: IFormulaInputService, _docViewModelManagerService: DocViewModelManagerService);
|
|
43
|
+
dispose(): void;
|
|
44
|
+
private _resetTemp;
|
|
45
|
+
private _initialize;
|
|
46
|
+
private _initialFormulaTheme;
|
|
47
|
+
private _initialCursorSync;
|
|
48
|
+
private _initialEditorInputChange;
|
|
49
|
+
private _initialExitEditor;
|
|
50
|
+
private _initialRefSelectionUpdateEvent;
|
|
51
|
+
private _syncEditorListener;
|
|
52
|
+
private _selectionChanging;
|
|
53
|
+
private _initialRefSelectionInsertEvent;
|
|
54
|
+
private _initAcceptFormula;
|
|
55
|
+
private _changeFunctionPanelState;
|
|
56
|
+
private _changeHelpFunctionPanelState;
|
|
57
|
+
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;
|
|
64
|
+
/**
|
|
65
|
+
* Determine whether the character is a token keyword for the formula engine.
|
|
66
|
+
* @param char
|
|
67
|
+
* @returns
|
|
68
|
+
*/
|
|
69
|
+
private _matchRefDrawToken;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @returns Return the character under the current cursor in the editor.
|
|
73
|
+
*/
|
|
74
|
+
private _getCurrentChar;
|
|
75
|
+
/**
|
|
76
|
+
* Disable the ref string generation mode. In the ref string generation mode,
|
|
77
|
+
* users can select a certain area using the mouse and arrow keys, and convert the area into a ref string.
|
|
78
|
+
*/
|
|
79
|
+
private _disableForceKeepVisible;
|
|
80
|
+
private _getCurrentBody;
|
|
81
|
+
private _getFormulaAndCellEditorBody;
|
|
82
|
+
/**
|
|
83
|
+
* Detect whether the user's input content is a formula. If it is a formula,
|
|
84
|
+
* serialize the current input content into a sequenceNode;
|
|
85
|
+
* otherwise, close the formula panel.
|
|
86
|
+
* @param currentInputValue The text content entered by the user in the editor.
|
|
87
|
+
* @returns
|
|
88
|
+
*/
|
|
89
|
+
private _contextSwitch;
|
|
90
|
+
private _getContextState;
|
|
91
|
+
/**
|
|
92
|
+
* Switch from formula selection state to regular selection state.
|
|
93
|
+
*/
|
|
94
|
+
private _switchSelectionPlugin;
|
|
95
|
+
/**
|
|
96
|
+
* Highlight cell editor and formula bar editor.
|
|
97
|
+
*/
|
|
98
|
+
private _highlightFormula;
|
|
99
|
+
/**
|
|
100
|
+
* :
|
|
101
|
+
* #
|
|
102
|
+
* Generate styles for formula text, highlighting references, text, numbers, and arrays.
|
|
103
|
+
* @returns
|
|
104
|
+
*/
|
|
105
|
+
private _buildTextRuns;
|
|
106
|
+
/**
|
|
107
|
+
* Draw the referenced selection text based on the style and token.
|
|
108
|
+
* @param refSelections
|
|
109
|
+
* @returns
|
|
110
|
+
*/
|
|
111
|
+
private _refreshSelectionForReference;
|
|
112
|
+
private _getSheetIdByName;
|
|
113
|
+
private _getSheetNameById;
|
|
114
|
+
private _getCurrentUnitIdAndSheetId;
|
|
115
|
+
/**
|
|
116
|
+
* Convert the selection range to a ref string for the formula engine, such as A1:B1
|
|
117
|
+
* @param range
|
|
118
|
+
* @returns
|
|
119
|
+
*/
|
|
120
|
+
private _getRefString;
|
|
121
|
+
/**
|
|
122
|
+
* Restore the sequenceNode generated by the lexer to the text in the editor, and set the cursor position.
|
|
123
|
+
* @param sequenceNodes
|
|
124
|
+
* @param textSelectionOffset
|
|
125
|
+
* @returns
|
|
126
|
+
*/
|
|
127
|
+
private _syncToEditor;
|
|
128
|
+
private _fitEditorSize;
|
|
129
|
+
/**
|
|
130
|
+
* Update the editor's model value to facilitate formula updates.
|
|
131
|
+
* @param dataStream
|
|
132
|
+
* @param textRuns
|
|
133
|
+
* @returns
|
|
134
|
+
*/
|
|
135
|
+
private _updateEditorModel;
|
|
136
|
+
private _inertControlSelectionReplace;
|
|
137
|
+
private _inertControlSelection;
|
|
138
|
+
private _updateRefSelectionStyle;
|
|
139
|
+
private _changeControlSelection;
|
|
140
|
+
private _refreshFormulaAndCellEditor;
|
|
141
|
+
private _cursorStateListener;
|
|
142
|
+
private _commandExecutedListener;
|
|
143
|
+
private _moveInEditor;
|
|
144
|
+
private _getEditorObject;
|
|
145
|
+
}
|
|
146
|
+
//# sourceMappingURL=prompt.controller.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prompt.controller.d.ts","sourceRoot":"","sources":["../../../src/controllers/prompt.controller.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { IShortcutItem } from '@univerjs/ui';
|
|
2
|
+
import { KeyCode } from '@univerjs/ui';
|
|
3
|
+
export declare const PROMPT_SELECTION_KEYCODE_ARROW_LIST: KeyCode[];
|
|
4
|
+
export declare const PROMPT_SELECTION_KEYCODE_LIST: KeyCode[];
|
|
5
|
+
export declare function promptSelectionShortcutItem(): IShortcutItem<object>[];
|
|
6
|
+
export declare function promptSelectionShortcutItemShift(): IShortcutItem<object>[];
|
|
7
|
+
export declare function promptSelectionShortcutItemCtrl(): IShortcutItem<object>[];
|
|
8
|
+
export declare function promptSelectionShortcutItemCtrlAndShift(): IShortcutItem<object>[];
|
|
9
|
+
export declare const ChangeRefToAbsoluteShortcut: IShortcutItem;
|
|
10
|
+
//# sourceMappingURL=prompt.shortcut.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prompt.shortcut.d.ts","sourceRoot":"","sources":["../../../../src/controllers/shortcuts/prompt.shortcut.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,EAAE,OAAO,EAAY,MAAM,cAAc,CAAC;AAMjD,eAAO,MAAM,mCAAmC,WAK/C,CAAC;AAEF,eAAO,MAAM,6BAA6B,WAAuE,CAAC;AAElH,wBAAgB,2BAA2B,4BAc1C;AAED,wBAAgB,gCAAgC,4BAe/C;AAED,wBAAgB,+BAA+B,4BAe9C;AAED,wBAAgB,uCAAuC,4BAetD;AAED,eAAO,MAAM,2BAA2B,EAAE,aAIzC,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { IUniverInstanceService, LocaleService, Plugin, PluginType } from '@univerjs/core';
|
|
2
|
+
import type { IFunctionInfo } from '@univerjs/engine-formula';
|
|
3
|
+
import { Injector } from '@wendellhu/redi';
|
|
4
|
+
interface IFormulaUIConfig {
|
|
5
|
+
description: IFunctionInfo[];
|
|
6
|
+
}
|
|
7
|
+
export declare class FormulaUIPlugin extends Plugin {
|
|
8
|
+
private _config;
|
|
9
|
+
readonly _injector: Injector;
|
|
10
|
+
private readonly _localeService;
|
|
11
|
+
private readonly _currentUniverService;
|
|
12
|
+
static type: PluginType;
|
|
13
|
+
constructor(_config: Partial<IFormulaUIConfig>, _injector: Injector, _localeService: LocaleService, _currentUniverService: IUniverInstanceService);
|
|
14
|
+
initialize(): void;
|
|
15
|
+
onReady(): void;
|
|
16
|
+
}
|
|
17
|
+
export {};
|
|
18
|
+
//# sourceMappingURL=formula-ui-plugin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formula-ui-plugin.d.ts","sourceRoot":"","sources":["../../src/formula-ui-plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,aAAa,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC3F,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAE9D,OAAO,EAAU,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAanD,UAAU,gBAAgB;IACtB,WAAW,EAAE,aAAa,EAAE,CAAC;CAChC;AACD,qBAAa,eAAgB,SAAQ,MAAM;IAInC,OAAO,CAAC,OAAO;aACqB,SAAS,EAAE,QAAQ;IAChC,OAAO,CAAC,QAAQ,CAAC,cAAc;IAC9B,OAAO,CAAC,QAAQ,CAAC,qBAAqB;IANlE,OAAgB,IAAI,aAAoB;gBAG5B,OAAO,EAAE,OAAO,CAAC,gBAAgB,CAAC,EACN,SAAS,EAAE,QAAQ,EACf,cAAc,EAAE,aAAa,EAC5B,qBAAqB,EAAE,sBAAsB;IAK1F,UAAU,IAAI,IAAI;IA0BT,OAAO,IAAI,IAAI;CAG3B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
formula: {
|
|
3
|
+
insert: {
|
|
4
|
+
tooltip: string;
|
|
5
|
+
sum: string;
|
|
6
|
+
average: string;
|
|
7
|
+
count: string;
|
|
8
|
+
max: string;
|
|
9
|
+
min: string;
|
|
10
|
+
more: string;
|
|
11
|
+
};
|
|
12
|
+
functionList: {
|
|
13
|
+
AVERAGE: {
|
|
14
|
+
description: string;
|
|
15
|
+
abstract: string;
|
|
16
|
+
functionParameter: {
|
|
17
|
+
number1: {
|
|
18
|
+
name: string;
|
|
19
|
+
detail: string;
|
|
20
|
+
};
|
|
21
|
+
number2: {
|
|
22
|
+
name: string;
|
|
23
|
+
detail: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
COUNT: {
|
|
28
|
+
description: string;
|
|
29
|
+
abstract: string;
|
|
30
|
+
functionParameter: {
|
|
31
|
+
value1: {
|
|
32
|
+
name: string;
|
|
33
|
+
detail: string;
|
|
34
|
+
};
|
|
35
|
+
value2: {
|
|
36
|
+
name: string;
|
|
37
|
+
detail: string;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
MAX: {
|
|
42
|
+
description: string;
|
|
43
|
+
abstract: string;
|
|
44
|
+
functionParameter: {
|
|
45
|
+
number1: {
|
|
46
|
+
name: string;
|
|
47
|
+
detail: string;
|
|
48
|
+
};
|
|
49
|
+
number2: {
|
|
50
|
+
name: string;
|
|
51
|
+
detail: string;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
MIN: {
|
|
56
|
+
description: string;
|
|
57
|
+
abstract: string;
|
|
58
|
+
functionParameter: {
|
|
59
|
+
number1: {
|
|
60
|
+
name: string;
|
|
61
|
+
detail: string;
|
|
62
|
+
};
|
|
63
|
+
number2: {
|
|
64
|
+
name: string;
|
|
65
|
+
detail: string;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
SUM: {
|
|
70
|
+
description: string;
|
|
71
|
+
abstract: string;
|
|
72
|
+
functionParameter: {
|
|
73
|
+
number1: {
|
|
74
|
+
name: string;
|
|
75
|
+
detail: string;
|
|
76
|
+
};
|
|
77
|
+
number2: {
|
|
78
|
+
name: string;
|
|
79
|
+
detail: string;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
SUMIF: {
|
|
84
|
+
description: string;
|
|
85
|
+
abstract: string;
|
|
86
|
+
functionParameter: {
|
|
87
|
+
range: {
|
|
88
|
+
name: string;
|
|
89
|
+
detail: string;
|
|
90
|
+
};
|
|
91
|
+
criteria: {
|
|
92
|
+
name: string;
|
|
93
|
+
detail: string;
|
|
94
|
+
};
|
|
95
|
+
sum_range: {
|
|
96
|
+
name: string;
|
|
97
|
+
detail: string;
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
prompt: {
|
|
103
|
+
helpExample: string;
|
|
104
|
+
helpAbstract: string;
|
|
105
|
+
required: string;
|
|
106
|
+
optional: string;
|
|
107
|
+
};
|
|
108
|
+
functionType: {
|
|
109
|
+
financial: string;
|
|
110
|
+
date: string;
|
|
111
|
+
math: string;
|
|
112
|
+
statistical: string;
|
|
113
|
+
lookup: string;
|
|
114
|
+
database: string;
|
|
115
|
+
text: string;
|
|
116
|
+
logical: string;
|
|
117
|
+
information: string;
|
|
118
|
+
engineering: string;
|
|
119
|
+
cube: string;
|
|
120
|
+
compatibility: string;
|
|
121
|
+
web: string;
|
|
122
|
+
array: string;
|
|
123
|
+
univer: string;
|
|
124
|
+
};
|
|
125
|
+
moreFunctions: {
|
|
126
|
+
confirm: string;
|
|
127
|
+
prev: string;
|
|
128
|
+
next: string;
|
|
129
|
+
searchFunctionPlaceholder: string;
|
|
130
|
+
allFunctions: string;
|
|
131
|
+
syntax: string;
|
|
132
|
+
};
|
|
133
|
+
};
|
|
134
|
+
};
|
|
135
|
+
export default _default;
|
|
136
|
+
//# sourceMappingURL=en-US.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"en-US.d.ts","sourceRoot":"","sources":["../../../src/locale/en-US.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgBA,wBA4DE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"en-US.d.ts","sourceRoot":"","sources":["../../../../../src/locale/function-list/array/en-US.ts"],"names":[],"mappings":";AAAA,wBAAkB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"zh-CN.d.ts","sourceRoot":"","sources":["../../../../../src/locale/function-list/array/zh-CN.ts"],"names":[],"mappings":";AAAA,wBAAkB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"en-US.d.ts","sourceRoot":"","sources":["../../../../../src/locale/function-list/compatibility/en-US.ts"],"names":[],"mappings":";AAAA,wBAAkB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"zh-CN.d.ts","sourceRoot":"","sources":["../../../../../src/locale/function-list/compatibility/zh-CN.ts"],"names":[],"mappings":";AAAA,wBAAkB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"en-US.d.ts","sourceRoot":"","sources":["../../../../../src/locale/function-list/cube/en-US.ts"],"names":[],"mappings":";AAAA,wBAAkB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"zh-CN.d.ts","sourceRoot":"","sources":["../../../../../src/locale/function-list/cube/zh-CN.ts"],"names":[],"mappings":";AAAA,wBAAkB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"en-US.d.ts","sourceRoot":"","sources":["../../../../../src/locale/function-list/database/en-US.ts"],"names":[],"mappings":";AAAA,wBAAkB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"zh-CN.d.ts","sourceRoot":"","sources":["../../../../../src/locale/function-list/database/zh-CN.ts"],"names":[],"mappings":";AAAA,wBAAkB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"en-US.d.ts","sourceRoot":"","sources":["../../../../../src/locale/function-list/date/en-US.ts"],"names":[],"mappings":";AAAA,wBAAkB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"zh-CN.d.ts","sourceRoot":"","sources":["../../../../../src/locale/function-list/date/zh-CN.ts"],"names":[],"mappings":";AAAA,wBAAkB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"en-US.d.ts","sourceRoot":"","sources":["../../../../../src/locale/function-list/engineering/en-US.ts"],"names":[],"mappings":";AAAA,wBAAkB"}
|