@univerjs/sheets-formula 0.1.7 → 0.1.8
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 +4 -3
- package/lib/cjs/index.js +6 -6
- package/lib/es/index.js +3006 -2937
- package/lib/types/commands/mutations/formula.mutation.d.ts +10 -0
- package/lib/types/commands/operations/__tests__/create-command-test-bed.d.ts +1 -1
- package/lib/types/controllers/__tests__/create-command-test-bed.d.ts +1 -1
- package/lib/types/controllers/active-dirty.controller.d.ts +6 -2
- package/lib/types/controllers/formula-clipboard.controller.d.ts +5 -4
- package/lib/types/controllers/prompt.controller.d.ts +7 -2
- package/lib/types/controllers/trigger-calculation.controller.d.ts +9 -1
- package/lib/types/controllers/update-formula.controller.d.ts +2 -2
- package/lib/types/controllers/utils/offset-formula-data.d.ts +4 -31
- package/lib/types/controllers/utils/ref-range-formula.d.ts +1 -1
- package/lib/types/formula-ui-plugin.d.ts +5 -5
- package/lib/types/index.d.ts +2 -0
- package/lib/types/locale/en-US.d.ts +3 -15
- package/lib/types/locale/function-list/information/en-US.d.ts +2 -10
- package/lib/types/locale/function-list/information/ja-JP.d.ts +2 -10
- package/lib/types/locale/function-list/information/zh-CN.d.ts +2 -10
- package/lib/types/locale/function-list/text/en-US.d.ts +1 -5
- package/lib/types/locale/function-list/text/ja-JP.d.ts +1 -5
- package/lib/types/locale/function-list/text/zh-CN.d.ts +1 -5
- package/lib/types/locale/zh-CN.d.ts +3 -15
- package/lib/types/services/formula-common.d.ts +19 -0
- package/lib/types/services/register-other-formula.service.d.ts +27 -0
- package/lib/umd/index.js +6 -6
- package/package.json +24 -25
- package/lib/types/controllers/numfmt-formula-display.controller.d.ts +0 -14
- package/lib/types/controllers/utils/__tests__/redo-undo-formula-data.spec.d.ts +0 -16
- package/lib/types/controllers/utils/redo-undo-formula-data.d.ts +0 -5
package/README.md
CHANGED
|
@@ -617,7 +617,7 @@ In addition to registering through the `UniverFormulaEnginePlugin` configuration
|
|
|
617
617
|
First of all, there is no need to register `CustomFunctionController` in `plugin.ts`. Create a new `custom-function-plugin.ts` in the same directory, specifically for registering `CustomFunctionController`.
|
|
618
618
|
|
|
619
619
|
```ts
|
|
620
|
-
import { Plugin,
|
|
620
|
+
import { Plugin, UniverInstanceType } from '@univerjs/core';
|
|
621
621
|
import type { Dependency } from '@wendellhu/redi';
|
|
622
622
|
import { Inject, Injector } from '@wendellhu/redi';
|
|
623
623
|
|
|
@@ -625,10 +625,11 @@ import { FORMULA_UI_PLUGIN_NAME } from './common/plugin-name';
|
|
|
625
625
|
import { CustomFunctionController } from './controllers/custom-function.controller';
|
|
626
626
|
|
|
627
627
|
export class UniverSheetsCustomFunctionPlugin extends Plugin {
|
|
628
|
-
static override
|
|
628
|
+
static override pluginName = FORMULA_UI_PLUGIN_NAME
|
|
629
|
+
static override type = UniverInstanceType.UNIVER_SHEET;
|
|
629
630
|
|
|
630
631
|
constructor(@Inject(Injector) override readonly _injector: Injector) {
|
|
631
|
-
super(
|
|
632
|
+
super();
|
|
632
633
|
}
|
|
633
634
|
|
|
634
635
|
initialize(): void {
|