@univerjs/sheets-formula 0.1.7 → 0.1.9

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.
Files changed (30) hide show
  1. package/README.md +4 -3
  2. package/lib/cjs/index.js +6 -6
  3. package/lib/es/index.js +3064 -2990
  4. package/lib/types/commands/mutations/formula.mutation.d.ts +10 -0
  5. package/lib/types/commands/operations/__tests__/create-command-test-bed.d.ts +1 -1
  6. package/lib/types/controllers/__tests__/create-command-test-bed.d.ts +1 -1
  7. package/lib/types/controllers/active-dirty.controller.d.ts +6 -2
  8. package/lib/types/controllers/formula-clipboard.controller.d.ts +5 -4
  9. package/lib/types/controllers/prompt.controller.d.ts +7 -2
  10. package/lib/types/controllers/trigger-calculation.controller.d.ts +9 -1
  11. package/lib/types/controllers/update-formula.controller.d.ts +2 -2
  12. package/lib/types/controllers/utils/offset-formula-data.d.ts +4 -31
  13. package/lib/types/controllers/utils/ref-range-formula.d.ts +1 -1
  14. package/lib/types/formula-ui-plugin.d.ts +5 -5
  15. package/lib/types/index.d.ts +2 -0
  16. package/lib/types/locale/en-US.d.ts +3 -15
  17. package/lib/types/locale/function-list/information/en-US.d.ts +2 -10
  18. package/lib/types/locale/function-list/information/ja-JP.d.ts +2 -10
  19. package/lib/types/locale/function-list/information/zh-CN.d.ts +2 -10
  20. package/lib/types/locale/function-list/text/en-US.d.ts +1 -5
  21. package/lib/types/locale/function-list/text/ja-JP.d.ts +1 -5
  22. package/lib/types/locale/function-list/text/zh-CN.d.ts +1 -5
  23. package/lib/types/locale/zh-CN.d.ts +3 -15
  24. package/lib/types/services/formula-common.d.ts +19 -0
  25. package/lib/types/services/register-other-formula.service.d.ts +27 -0
  26. package/lib/umd/index.js +6 -6
  27. package/package.json +25 -26
  28. package/lib/types/controllers/numfmt-formula-display.controller.d.ts +0 -14
  29. package/lib/types/controllers/utils/__tests__/redo-undo-formula-data.spec.d.ts +0 -16
  30. 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, PluginType } from '@univerjs/core';
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 type = PluginType.Sheet;
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(FORMULA_UI_PLUGIN_NAME);
632
+ super();
632
633
  }
633
634
 
634
635
  initialize(): void {