@univerjs/sheets-formula 0.22.0 → 0.22.1-insiders.20260515-225d350

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 CHANGED
@@ -513,9 +513,10 @@ let TriggerCalculationController = class TriggerCalculationController extends _u
513
513
  this._totalCalculationTaskCount = 0;
514
514
  this._emitProgress();
515
515
  }
516
- constructor(_commandService, _activeDirtyManagerService, _logService, _configService, _formulaDataModel, _localeService, _registerOtherFormulaService) {
516
+ constructor(_commandService, _univerInstanceService, _activeDirtyManagerService, _logService, _configService, _formulaDataModel, _localeService, _registerOtherFormulaService) {
517
517
  super();
518
518
  this._commandService = _commandService;
519
+ this._univerInstanceService = _univerInstanceService;
519
520
  this._activeDirtyManagerService = _activeDirtyManagerService;
520
521
  this._logService = _logService;
521
522
  this._configService = _configService;
@@ -543,6 +544,9 @@ let TriggerCalculationController = class TriggerCalculationController extends _u
543
544
  this._commandExecutedListener();
544
545
  this._initialExecuteFormulaProcessListener();
545
546
  this._initialExecuteFormula();
547
+ this.disposeWithMe(this._univerInstanceService.getTypeOfUnitAdded$(_univerjs_core.UniverInstanceType.UNIVER_SHEET).subscribe(() => {
548
+ this._initialExecuteFormula();
549
+ }));
546
550
  }
547
551
  dispose() {
548
552
  super.dispose();
@@ -786,12 +790,13 @@ let TriggerCalculationController = class TriggerCalculationController extends _u
786
790
  };
787
791
  TriggerCalculationController = __decorate([
788
792
  __decorateParam(0, _univerjs_core.ICommandService),
789
- __decorateParam(1, _univerjs_engine_formula.IActiveDirtyManagerService),
790
- __decorateParam(2, _univerjs_core.ILogService),
791
- __decorateParam(3, _univerjs_core.IConfigService),
792
- __decorateParam(4, (0, _univerjs_core.Inject)(_univerjs_engine_formula.FormulaDataModel)),
793
- __decorateParam(5, (0, _univerjs_core.Inject)(_univerjs_core.LocaleService)),
794
- __decorateParam(6, (0, _univerjs_core.Inject)(_univerjs_engine_formula.RegisterOtherFormulaService))
793
+ __decorateParam(1, _univerjs_core.IUniverInstanceService),
794
+ __decorateParam(2, _univerjs_engine_formula.IActiveDirtyManagerService),
795
+ __decorateParam(3, _univerjs_core.ILogService),
796
+ __decorateParam(4, _univerjs_core.IConfigService),
797
+ __decorateParam(5, (0, _univerjs_core.Inject)(_univerjs_engine_formula.FormulaDataModel)),
798
+ __decorateParam(6, (0, _univerjs_core.Inject)(_univerjs_core.LocaleService)),
799
+ __decorateParam(7, (0, _univerjs_core.Inject)(_univerjs_engine_formula.RegisterOtherFormulaService))
795
800
  ], TriggerCalculationController);
796
801
 
797
802
  //#endregion
@@ -2296,7 +2301,7 @@ UpdateFormulaController = __decorate([
2296
2301
  //#endregion
2297
2302
  //#region package.json
2298
2303
  var name = "@univerjs/sheets-formula";
2299
- var version = "0.22.0";
2304
+ var version = "0.22.1-insiders.20260515-225d350";
2300
2305
 
2301
2306
  //#endregion
2302
2307
  //#region src/common/plugin-name.ts
package/lib/es/index.js CHANGED
@@ -512,9 +512,10 @@ let TriggerCalculationController = class TriggerCalculationController extends Di
512
512
  this._totalCalculationTaskCount = 0;
513
513
  this._emitProgress();
514
514
  }
515
- constructor(_commandService, _activeDirtyManagerService, _logService, _configService, _formulaDataModel, _localeService, _registerOtherFormulaService) {
515
+ constructor(_commandService, _univerInstanceService, _activeDirtyManagerService, _logService, _configService, _formulaDataModel, _localeService, _registerOtherFormulaService) {
516
516
  super();
517
517
  this._commandService = _commandService;
518
+ this._univerInstanceService = _univerInstanceService;
518
519
  this._activeDirtyManagerService = _activeDirtyManagerService;
519
520
  this._logService = _logService;
520
521
  this._configService = _configService;
@@ -542,6 +543,9 @@ let TriggerCalculationController = class TriggerCalculationController extends Di
542
543
  this._commandExecutedListener();
543
544
  this._initialExecuteFormulaProcessListener();
544
545
  this._initialExecuteFormula();
546
+ this.disposeWithMe(this._univerInstanceService.getTypeOfUnitAdded$(UniverInstanceType.UNIVER_SHEET).subscribe(() => {
547
+ this._initialExecuteFormula();
548
+ }));
545
549
  }
546
550
  dispose() {
547
551
  super.dispose();
@@ -785,12 +789,13 @@ let TriggerCalculationController = class TriggerCalculationController extends Di
785
789
  };
786
790
  TriggerCalculationController = __decorate([
787
791
  __decorateParam(0, ICommandService),
788
- __decorateParam(1, IActiveDirtyManagerService),
789
- __decorateParam(2, ILogService),
790
- __decorateParam(3, IConfigService),
791
- __decorateParam(4, Inject(FormulaDataModel)),
792
- __decorateParam(5, Inject(LocaleService)),
793
- __decorateParam(6, Inject(RegisterOtherFormulaService))
792
+ __decorateParam(1, IUniverInstanceService),
793
+ __decorateParam(2, IActiveDirtyManagerService),
794
+ __decorateParam(3, ILogService),
795
+ __decorateParam(4, IConfigService),
796
+ __decorateParam(5, Inject(FormulaDataModel)),
797
+ __decorateParam(6, Inject(LocaleService)),
798
+ __decorateParam(7, Inject(RegisterOtherFormulaService))
794
799
  ], TriggerCalculationController);
795
800
 
796
801
  //#endregion
@@ -2295,7 +2300,7 @@ UpdateFormulaController = __decorate([
2295
2300
  //#endregion
2296
2301
  //#region package.json
2297
2302
  var name = "@univerjs/sheets-formula";
2298
- var version = "0.22.0";
2303
+ var version = "0.22.1-insiders.20260515-225d350";
2299
2304
 
2300
2305
  //#endregion
2301
2306
  //#region src/common/plugin-name.ts
package/lib/index.js CHANGED
@@ -512,9 +512,10 @@ let TriggerCalculationController = class TriggerCalculationController extends Di
512
512
  this._totalCalculationTaskCount = 0;
513
513
  this._emitProgress();
514
514
  }
515
- constructor(_commandService, _activeDirtyManagerService, _logService, _configService, _formulaDataModel, _localeService, _registerOtherFormulaService) {
515
+ constructor(_commandService, _univerInstanceService, _activeDirtyManagerService, _logService, _configService, _formulaDataModel, _localeService, _registerOtherFormulaService) {
516
516
  super();
517
517
  this._commandService = _commandService;
518
+ this._univerInstanceService = _univerInstanceService;
518
519
  this._activeDirtyManagerService = _activeDirtyManagerService;
519
520
  this._logService = _logService;
520
521
  this._configService = _configService;
@@ -542,6 +543,9 @@ let TriggerCalculationController = class TriggerCalculationController extends Di
542
543
  this._commandExecutedListener();
543
544
  this._initialExecuteFormulaProcessListener();
544
545
  this._initialExecuteFormula();
546
+ this.disposeWithMe(this._univerInstanceService.getTypeOfUnitAdded$(UniverInstanceType.UNIVER_SHEET).subscribe(() => {
547
+ this._initialExecuteFormula();
548
+ }));
545
549
  }
546
550
  dispose() {
547
551
  super.dispose();
@@ -785,12 +789,13 @@ let TriggerCalculationController = class TriggerCalculationController extends Di
785
789
  };
786
790
  TriggerCalculationController = __decorate([
787
791
  __decorateParam(0, ICommandService),
788
- __decorateParam(1, IActiveDirtyManagerService),
789
- __decorateParam(2, ILogService),
790
- __decorateParam(3, IConfigService),
791
- __decorateParam(4, Inject(FormulaDataModel)),
792
- __decorateParam(5, Inject(LocaleService)),
793
- __decorateParam(6, Inject(RegisterOtherFormulaService))
792
+ __decorateParam(1, IUniverInstanceService),
793
+ __decorateParam(2, IActiveDirtyManagerService),
794
+ __decorateParam(3, ILogService),
795
+ __decorateParam(4, IConfigService),
796
+ __decorateParam(5, Inject(FormulaDataModel)),
797
+ __decorateParam(6, Inject(LocaleService)),
798
+ __decorateParam(7, Inject(RegisterOtherFormulaService))
794
799
  ], TriggerCalculationController);
795
800
 
796
801
  //#endregion
@@ -2295,7 +2300,7 @@ UpdateFormulaController = __decorate([
2295
2300
  //#endregion
2296
2301
  //#region package.json
2297
2302
  var name = "@univerjs/sheets-formula";
2298
- var version = "0.22.0";
2303
+ var version = "0.22.1-insiders.20260515-225d350";
2299
2304
 
2300
2305
  //#endregion
2301
2306
  //#region src/common/plugin-name.ts
@@ -13,7 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { Disposable, ICommandService, IConfigService, ILogService, LocaleService } from '@univerjs/core';
16
+ import { Disposable, ICommandService, IConfigService, ILogService, IUniverInstanceService, LocaleService } from '@univerjs/core';
17
17
  import { FormulaDataModel, IActiveDirtyManagerService, RegisterOtherFormulaService } from '@univerjs/engine-formula';
18
18
  /**
19
19
  * This interface is for the progress bar to display the calculation progress.
@@ -28,6 +28,7 @@ export interface ICalculationProgress {
28
28
  }
29
29
  export declare class TriggerCalculationController extends Disposable {
30
30
  private readonly _commandService;
31
+ private readonly _univerInstanceService;
31
32
  private readonly _activeDirtyManagerService;
32
33
  private readonly _logService;
33
34
  private readonly _configService;
@@ -49,7 +50,7 @@ export declare class TriggerCalculationController extends Disposable {
49
50
  private _calculateProgress;
50
51
  private _completeProgress;
51
52
  clearProgress(): void;
52
- constructor(_commandService: ICommandService, _activeDirtyManagerService: IActiveDirtyManagerService, _logService: ILogService, _configService: IConfigService, _formulaDataModel: FormulaDataModel, _localeService: LocaleService, _registerOtherFormulaService: RegisterOtherFormulaService);
53
+ constructor(_commandService: ICommandService, _univerInstanceService: IUniverInstanceService, _activeDirtyManagerService: IActiveDirtyManagerService, _logService: ILogService, _configService: IConfigService, _formulaDataModel: FormulaDataModel, _localeService: LocaleService, _registerOtherFormulaService: RegisterOtherFormulaService);
53
54
  dispose(): void;
54
55
  private _getCalculationMode;
55
56
  private _commandExecutedListener;