@univerjs/engine-formula 0.23.0 → 0.24.0

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
@@ -1781,7 +1781,7 @@ function replaceRefPrefixString(token) {
1781
1781
  /**
1782
1782
  * implement getSheetIdByName
1783
1783
  * function getSheetIdByName(name: string) {
1784
- return univerInstanceService.getCurrentUnitForType<Workbook>(UniverInstanceType.UNIVER_SHEET)?.getSheetBySheetName(name)?.getSheetId() || '';
1784
+ return univerInstanceService.getCurrentUnitOfType<Workbook>(UniverInstanceType.UNIVER_SHEET)?.getSheetBySheetName(name)?.getSheetId() || '';
1785
1785
  }
1786
1786
  */
1787
1787
  function getRangeWithRefsString(refString, getSheetIdByName) {
@@ -5482,7 +5482,7 @@ let FormulaCurrentConfigService = class FormulaCurrentConfigService extends _uni
5482
5482
  return this._localeService.getCurrentLocale();
5483
5483
  }
5484
5484
  getSheetsInfo() {
5485
- const { id, sheetOrder } = this._univerInstanceService.getCurrentUnitForType(_univerjs_core.UniverInstanceType.UNIVER_SHEET).getSnapshot();
5485
+ const { id, sheetOrder } = this._univerInstanceService.getCurrentUnitOfType(_univerjs_core.UniverInstanceType.UNIVER_SHEET).getSnapshot();
5486
5486
  return {
5487
5487
  sheetOrder,
5488
5488
  sheetNameMap: this._sheetIdToNameMap[id]
@@ -5586,7 +5586,7 @@ let FormulaCurrentConfigService = class FormulaCurrentConfigService extends _uni
5586
5586
  });
5587
5587
  }
5588
5588
  _loadSheetData() {
5589
- const workbook = this._univerInstanceService.getCurrentUnitForType(_univerjs_core.UniverInstanceType.UNIVER_SHEET);
5589
+ const workbook = this._univerInstanceService.getCurrentUnitOfType(_univerjs_core.UniverInstanceType.UNIVER_SHEET);
5590
5590
  const worksheet = workbook === null || workbook === void 0 ? void 0 : workbook.getActiveSheet();
5591
5591
  this._executeUnitId = workbook === null || workbook === void 0 ? void 0 : workbook.getUnitId();
5592
5592
  this._executeSubUnitId = worksheet === null || worksheet === void 0 ? void 0 : worksheet.getSheetId();
@@ -40447,7 +40447,7 @@ function getObjectValue(result, isUseStrip = false) {
40447
40447
  //#endregion
40448
40448
  //#region package.json
40449
40449
  var name = "@univerjs/engine-formula";
40450
- var version = "0.23.0";
40450
+ var version = "0.24.0";
40451
40451
 
40452
40452
  //#endregion
40453
40453
  //#region src/services/global-computing-status.service.ts
package/lib/es/index.js CHANGED
@@ -1751,7 +1751,7 @@ function replaceRefPrefixString(token) {
1751
1751
  /**
1752
1752
  * implement getSheetIdByName
1753
1753
  * function getSheetIdByName(name: string) {
1754
- return univerInstanceService.getCurrentUnitForType<Workbook>(UniverInstanceType.UNIVER_SHEET)?.getSheetBySheetName(name)?.getSheetId() || '';
1754
+ return univerInstanceService.getCurrentUnitOfType<Workbook>(UniverInstanceType.UNIVER_SHEET)?.getSheetBySheetName(name)?.getSheetId() || '';
1755
1755
  }
1756
1756
  */
1757
1757
  function getRangeWithRefsString(refString, getSheetIdByName) {
@@ -5452,7 +5452,7 @@ let FormulaCurrentConfigService = class FormulaCurrentConfigService extends Disp
5452
5452
  return this._localeService.getCurrentLocale();
5453
5453
  }
5454
5454
  getSheetsInfo() {
5455
- const { id, sheetOrder } = this._univerInstanceService.getCurrentUnitForType(UniverInstanceType.UNIVER_SHEET).getSnapshot();
5455
+ const { id, sheetOrder } = this._univerInstanceService.getCurrentUnitOfType(UniverInstanceType.UNIVER_SHEET).getSnapshot();
5456
5456
  return {
5457
5457
  sheetOrder,
5458
5458
  sheetNameMap: this._sheetIdToNameMap[id]
@@ -5556,7 +5556,7 @@ let FormulaCurrentConfigService = class FormulaCurrentConfigService extends Disp
5556
5556
  });
5557
5557
  }
5558
5558
  _loadSheetData() {
5559
- const workbook = this._univerInstanceService.getCurrentUnitForType(UniverInstanceType.UNIVER_SHEET);
5559
+ const workbook = this._univerInstanceService.getCurrentUnitOfType(UniverInstanceType.UNIVER_SHEET);
5560
5560
  const worksheet = workbook === null || workbook === void 0 ? void 0 : workbook.getActiveSheet();
5561
5561
  this._executeUnitId = workbook === null || workbook === void 0 ? void 0 : workbook.getUnitId();
5562
5562
  this._executeSubUnitId = worksheet === null || worksheet === void 0 ? void 0 : worksheet.getSheetId();
@@ -40417,7 +40417,7 @@ function getObjectValue(result, isUseStrip = false) {
40417
40417
  //#endregion
40418
40418
  //#region package.json
40419
40419
  var name = "@univerjs/engine-formula";
40420
- var version = "0.23.0";
40420
+ var version = "0.24.0";
40421
40421
 
40422
40422
  //#endregion
40423
40423
  //#region src/services/global-computing-status.service.ts
package/lib/index.js CHANGED
@@ -1751,7 +1751,7 @@ function replaceRefPrefixString(token) {
1751
1751
  /**
1752
1752
  * implement getSheetIdByName
1753
1753
  * function getSheetIdByName(name: string) {
1754
- return univerInstanceService.getCurrentUnitForType<Workbook>(UniverInstanceType.UNIVER_SHEET)?.getSheetBySheetName(name)?.getSheetId() || '';
1754
+ return univerInstanceService.getCurrentUnitOfType<Workbook>(UniverInstanceType.UNIVER_SHEET)?.getSheetBySheetName(name)?.getSheetId() || '';
1755
1755
  }
1756
1756
  */
1757
1757
  function getRangeWithRefsString(refString, getSheetIdByName) {
@@ -5452,7 +5452,7 @@ let FormulaCurrentConfigService = class FormulaCurrentConfigService extends Disp
5452
5452
  return this._localeService.getCurrentLocale();
5453
5453
  }
5454
5454
  getSheetsInfo() {
5455
- const { id, sheetOrder } = this._univerInstanceService.getCurrentUnitForType(UniverInstanceType.UNIVER_SHEET).getSnapshot();
5455
+ const { id, sheetOrder } = this._univerInstanceService.getCurrentUnitOfType(UniverInstanceType.UNIVER_SHEET).getSnapshot();
5456
5456
  return {
5457
5457
  sheetOrder,
5458
5458
  sheetNameMap: this._sheetIdToNameMap[id]
@@ -5556,7 +5556,7 @@ let FormulaCurrentConfigService = class FormulaCurrentConfigService extends Disp
5556
5556
  });
5557
5557
  }
5558
5558
  _loadSheetData() {
5559
- const workbook = this._univerInstanceService.getCurrentUnitForType(UniverInstanceType.UNIVER_SHEET);
5559
+ const workbook = this._univerInstanceService.getCurrentUnitOfType(UniverInstanceType.UNIVER_SHEET);
5560
5560
  const worksheet = workbook === null || workbook === void 0 ? void 0 : workbook.getActiveSheet();
5561
5561
  this._executeUnitId = workbook === null || workbook === void 0 ? void 0 : workbook.getUnitId();
5562
5562
  this._executeSubUnitId = worksheet === null || worksheet === void 0 ? void 0 : worksheet.getSheetId();
@@ -40417,7 +40417,7 @@ function getObjectValue(result, isUseStrip = false) {
40417
40417
  //#endregion
40418
40418
  //#region package.json
40419
40419
  var name = "@univerjs/engine-formula";
40420
- var version = "0.23.0";
40420
+ var version = "0.24.0";
40421
40421
 
40422
40422
  //#endregion
40423
40423
  //#region src/services/global-computing-status.service.ts
@@ -64,7 +64,7 @@ export declare function replaceRefPrefixString(token: string): string;
64
64
  /**
65
65
  * implement getSheetIdByName
66
66
  * function getSheetIdByName(name: string) {
67
- return univerInstanceService.getCurrentUnitForType<Workbook>(UniverInstanceType.UNIVER_SHEET)?.getSheetBySheetName(name)?.getSheetId() || '';
67
+ return univerInstanceService.getCurrentUnitOfType<Workbook>(UniverInstanceType.UNIVER_SHEET)?.getSheetBySheetName(name)?.getSheetId() || '';
68
68
  }
69
69
  */
70
70
  export declare function getRangeWithRefsString(refString: string, getSheetIdByName: (name: string) => string): IUnitRangeWithName[];