Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.
TypeScript boardcollaborationdocdocxexceloffce365officepdfpptpptxpresentationsdksheetslidesspreadsheetuniverwordwordprocessorworkspacexlsx
fix: add UniverSheetsFormulaPlugin for SheetsConditionalFormatting & SheetsDataValidation (#6329)
白熱21b2d38fbd03
diff --git a/packages/sheets-conditional-formatting/src/plugin.ts b/packages/sheets-conditional-formatting/src/plugin.tsindex 7ab92e39e5..e51ed89f61 100644--- a/packages/sheets-conditional-formatting/src/plugin.ts+++ b/packages/sheets-conditional-formatting/src/plugin.ts@@ -17,7 +17,7 @@import type { Dependency } from '@univerjs/core';import type { IUniverSheetsConditionalFormattingConfig } from './controllers/config.schema';import { DependentOn, ICommandService, IConfigService, Inject, Injector, merge, Plugin, touchDependencies, UniverInstanceType } from '@univerjs/core';-import { UniverFormulaEnginePlugin } from '@univerjs/engine-formula';+import { UniverSheetsFormulaPlugin } from '@univerjs/sheets-formula';import { SHEET_CONDITIONAL_FORMATTING_PLUGIN } from './base/const';import { AddCfCommand } from './commands/commands/add-cf.command';import { ClearRangeCfCommand } from './commands/commands/clear-range-cf.command';@@ -38,7 +38,7 @@ import { ConditionalFormattingViewModel } from './models/conditional-formatting-import { ConditionalFormattingFormulaService } from './services/conditional-formatting-formula.service';import { ConditionalFormattingService } from './services/conditional-formatting.service';-@DependentOn(UniverFormulaEnginePlugin)+@DependentOn(UniverSheetsFormulaPlugin)export class UniverSheetsConditionalFormattingPlugin extends Plugin {static override pluginName = SHEET_CONDITIONAL_FORMATTING_PLUGIN;static override type = UniverInstanceType.UNIVER_SHEET;diff --git a/packages/sheets-data-validation/src/plugin.ts b/packages/sheets-data-validation/src/plugin.tsindex a750f966f2..b1b9b3f48a 100644--- a/packages/sheets-data-validation/src/plugin.ts+++ b/packages/sheets-data-validation/src/plugin.ts@@ -27,6 +27,7 @@ import {UniverInstanceType,} from '@univerjs/core';import { UniverDataValidationPlugin } from '@univerjs/data-validation';+import { UniverSheetsFormulaPlugin } from '@univerjs/sheets-formula';import {AddSheetDataValidationCommand,ClearRangeDataValidationCommand,@@ -50,7 +51,7 @@ import { DataValidationFormulaService } from './services/dv-formula.service';import { DataValidationListCacheService } from './services/dv-list-cache.service';import { SheetsDataValidationValidatorService } from './services/dv-validator-service';-@DependentOn(UniverDataValidationPlugin)+@DependentOn(UniverSheetsFormulaPlugin, UniverDataValidationPlugin)export class UniverSheetsDataValidationPlugin extends Plugin {static override pluginName = DATA_VALIDATION_PLUGIN_NAME;static override type = UniverInstanceType.UNIVER_SHEET;diff --git a/packages/sheets-formula-ui/src/plugin.ts b/packages/sheets-formula-ui/src/plugin.tsindex dc879c18dd..0652bd722a 100644--- a/packages/sheets-formula-ui/src/plugin.ts+++ b/packages/sheets-formula-ui/src/plugin.ts@@ -17,7 +17,6 @@import type { Dependency } from '@univerjs/core';import type { IUniverSheetsFormulaUIConfig } from './controllers/config.schema';import { DependentOn, IConfigService, Inject, Injector, merge, Plugin, registerDependencies, touchDependencies, UniverInstanceType } from '@univerjs/core';-import { UniverFormulaEnginePlugin } from '@univerjs/engine-formula';import { IRenderManagerService } from '@univerjs/engine-render';import { UniverSheetsFormulaPlugin } from '@univerjs/sheets-formula';import { EMBEDDING_FORMULA_EDITOR_COMPONENT_KEY, RANGE_SELECTOR_COMPONENT_KEY } from '@univerjs/sheets-ui';@@ -45,7 +44,7 @@ import { GlobalRangeSelector } from './views/range-selector/global';/*** The configuration of the formula UI plugin.*/-@DependentOn(UniverFormulaEnginePlugin, UniverSheetsFormulaPlugin)+@DependentOn(UniverSheetsFormulaPlugin)export class UniverSheetsFormulaUIPlugin extends Plugin {static override pluginName = FORMULA_UI_PLUGIN_NAME;static override type = UniverInstanceType.UNIVER_SHEET;diff --git a/packages/sheets-formula/src/plugin.ts b/packages/sheets-formula/src/plugin.tsindex edc61c1602..19972d1cbb 100644--- a/packages/sheets-formula/src/plugin.ts+++ b/packages/sheets-formula/src/plugin.ts@@ -71,7 +71,7 @@ export class UniverRemoteSheetsFormulaPlugin extends Plugin {}}-@DependentOn(UniverFormulaEnginePlugin, UniverSheetsPlugin)+@DependentOn(UniverSheetsPlugin)export class UniverSheetsFormulaPlugin extends Plugin {static override pluginName = SHEETS_FORMULA_PLUGIN_NAME;static override type = UniverInstanceType.UNIVER_SHEET;