@univerjs/sheets 1.0.3 → 1.1.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/facade.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { BooleanNumber, CanceledError, DEFAULT_STYLES, Dimension, Direction, HorizontalAlign, IAuthzIoService, ICommandService, ILogService, IPermissionService, IResourceLoaderService, IUniverInstanceService, Inject, Injector, LocaleService, ObjectMatrix, RANGE_TYPE, Rectangle, RedoCommand, RichTextValue, TextStyleValue, Tools, UndoCommand, UniverInstanceType, VerticalAlign, WorksheetHiddenState, WrapStrategy, cellToRange, covertCellValue, covertCellValues, generateIntervalsByPoints, generateRandomId, getDisplayValueFromCell, getOriginCellValue, isNullCell, mergeWorksheetSnapshotWithDefault, toDisposable } from "@univerjs/core";
2
2
  import { FBase, FBaseInitialable, FEnum, FEventName, FUniver } from "@univerjs/core/facade";
3
- import { AddRangeProtectionMutation, AddWorksheetProtectionMutation, AppendRowCommand, AutoFillCommand, COMMAND_LISTENER_VALUE_CHANGE, CancelFrozenCommand, ClearSelectionAllCommand, ClearSelectionContentCommand, ClearSelectionFormatCommand, CopySheetCommand, DeleteRangeMoveLeftCommand, DeleteRangeMoveUpCommand, DeleteRangeProtectionMutation, DeleteWorksheetProtectionMutation, DeleteWorksheetRangeThemeStyleCommand, EditStateEnum, InsertColByRangeCommand, InsertRangeMoveDownCommand, InsertRangeMoveRightCommand, InsertRowByRangeCommand, InsertSheetCommand, MoveColsCommand, MoveRowsCommand, RangeProtectionPermissionDeleteProtectionPoint, RangeProtectionPermissionEditPoint, RangeProtectionPermissionManageCollaPoint, RangeProtectionPermissionViewPoint, RangeProtectionRuleModel, RangeThemeStyle, RegisterWorksheetRangeThemeStyleCommand, RemoveColByRangeCommand, RemoveDefinedNameCommand, RemoveRowByRangeCommand, RemoveSheetCommand, RemoveWorksheetMergeCommand, SCOPE_WORKBOOK_VALUE_DEFINED_NAME, SetBorderBasicCommand, SetColDataCommand, SetColHiddenCommand, SetColWidthCommand, SetDefinedNameCommand, SetFrozenCommand, SetGridlinesColorCommand, SetHorizontalTextAlignCommand, SetRangeCustomMetadataCommand, SetRangeProtectionMutation, SetRangeValuesCommand, SetRowDataCommand, SetRowHeightCommand, SetRowHiddenCommand, SetSelectionsOperation, SetShrinkToFitCommand, SetSpecificColsVisibleCommand, SetSpecificRowsVisibleCommand, SetStyleCommand, SetTabColorCommand, SetTabColorMutation, SetTextRotationCommand, SetTextWrapCommand, SetVerticalTextAlignCommand, SetWorkbookNameCommand, SetWorksheetActiveOperation, SetWorksheetColumnCountCommand, SetWorksheetDefaultStyleMutation, SetWorksheetHideCommand, SetWorksheetHideMutation, SetWorksheetNameCommand, SetWorksheetOrderCommand, SetWorksheetOrderMutation, SetWorksheetRangeThemeStyleCommand, SetWorksheetRowCountCommand, SetWorksheetRowIsAutoHeightCommand, SetWorksheetRowIsAutoHeightMutation, SetWorksheetShowCommand, SheetRangeThemeService, SheetSkeletonChangeType, SheetValueChangeType, SheetsFreezeSyncController, SheetsSelectionsService, SplitDelimiterEnum, SplitTextToColumnsCommand, ToggleGridlinesCommand, UnregisterWorksheetRangeThemeStyleCommand, ViewStateEnum, WorkbookCommentPermission, WorkbookCopyPermission, WorkbookCopySheetPermission, WorkbookCreateProtectPermission, WorkbookCreateSheetPermission, WorkbookDeleteColumnPermission, WorkbookDeleteRowPermission, WorkbookDeleteSheetPermission, WorkbookDuplicatePermission, WorkbookEditablePermission, WorkbookExportPermission, WorkbookHideSheetPermission, WorkbookInsertColumnPermission, WorkbookInsertRowPermission, WorkbookManageCollaboratorPermission, WorkbookMoveSheetPermission, WorkbookPrintPermission, WorkbookRecoverHistoryPermission, WorkbookRenameSheetPermission, WorkbookSharePermission, WorkbookViewHistoryPermission, WorkbookViewPermission, WorksheetCopyPermission, WorksheetDeleteColumnPermission, WorksheetDeleteProtectionPermission, WorksheetDeleteRowPermission, WorksheetEditExtraObjectPermission, WorksheetEditPermission, WorksheetFilterPermission, WorksheetInsertColumnPermission, WorksheetInsertHyperlinkPermission, WorksheetInsertRowPermission, WorksheetManageCollaboratorPermission, WorksheetPivotTablePermission, WorksheetProtectionPointModel, WorksheetProtectionRuleModel, WorksheetSelectProtectedCellsPermission, WorksheetSelectUnProtectedCellsPermission, WorksheetSetCellStylePermission, WorksheetSetCellValuePermission, WorksheetSetColumnStylePermission, WorksheetSetRowStylePermission, WorksheetSortPermission, WorksheetViewPermission, addMergeCellsUtil, copyRangeStyles, getAddMergeMutationRangeByType, getAllWorksheetPermissionPoint, getAllWorksheetPermissionPointByPointPanel, getNextPrimaryCell, getPrimaryForRange, getValueChangedEffectedRange, validateDefinedName } from "@univerjs/sheets";
3
+ import { AddRangeProtectionMutation, AddWorksheetProtectionMutation, AppendRowCommand, AutoFillCommand, COMMAND_LISTENER_VALUE_CHANGE, CancelFrozenCommand, ClearSelectionAllCommand, ClearSelectionContentCommand, ClearSelectionFormatCommand, CopySheetCommand, DeleteRangeMoveLeftCommand, DeleteRangeMoveUpCommand, DeleteRangeProtectionMutation, DeleteWorksheetProtectionMutation, DeleteWorksheetRangeThemeStyleCommand, EditStateEnum, InsertColByRangeCommand, InsertRangeMoveDownCommand, InsertRangeMoveRightCommand, InsertRowByRangeCommand, InsertSheetCommand, MoveColsCommand, MoveRowsCommand, RangeProtectionPermissionDeleteProtectionPoint, RangeProtectionPermissionEditPoint, RangeProtectionPermissionManageCollaPoint, RangeProtectionPermissionViewPoint, RangeProtectionRuleModel, RangeThemeStyle, RegisterWorksheetRangeThemeStyleCommand, RemoveColByRangeCommand, RemoveDefinedNameCommand, RemoveRowByRangeCommand, RemoveSheetCommand, RemoveWorksheetMergeCommand, SCOPE_WORKBOOK_VALUE_DEFINED_NAME, SetBorderBasicCommand, SetColDataCommand, SetColHiddenCommand, SetColWidthCommand, SetDefinedNameCommand, SetFrozenCommand, SetGridlinesColorCommand, SetHorizontalTextAlignCommand, SetRangeCustomMetadataCommand, SetRangeProtectionMutation, SetRangeValuesCommand, SetRowDataCommand, SetRowHeightCommand, SetRowHiddenCommand, SetSelectionsOperation, SetShrinkToFitCommand, SetSpecificColsVisibleCommand, SetSpecificRowsVisibleCommand, SetStyleCommand, SetTabColorCommand, SetTabColorMutation, SetTextRotationCommand, SetTextWrapCommand, SetVerticalTextAlignCommand, SetWorkbookCalculationSettingsCommand, SetWorkbookNameCommand, SetWorksheetActiveOperation, SetWorksheetColumnCountCommand, SetWorksheetDefaultStyleMutation, SetWorksheetHideCommand, SetWorksheetHideMutation, SetWorksheetNameCommand, SetWorksheetOrderCommand, SetWorksheetOrderMutation, SetWorksheetRangeThemeStyleCommand, SetWorksheetRowCountCommand, SetWorksheetRowIsAutoHeightCommand, SetWorksheetRowIsAutoHeightMutation, SetWorksheetShowCommand, SheetRangeThemeService, SheetSkeletonChangeType, SheetValueChangeType, SheetsFreezeSyncController, SheetsSelectionsService, SplitDelimiterEnum, SplitTextToColumnsCommand, ToggleGridlinesCommand, UnregisterWorksheetRangeThemeStyleCommand, ViewStateEnum, WorkbookCommentPermission, WorkbookCopyPermission, WorkbookCopySheetPermission, WorkbookCreateProtectPermission, WorkbookCreateSheetPermission, WorkbookDeleteColumnPermission, WorkbookDeleteRowPermission, WorkbookDeleteSheetPermission, WorkbookDuplicatePermission, WorkbookEditablePermission, WorkbookExportPermission, WorkbookHideSheetPermission, WorkbookInsertColumnPermission, WorkbookInsertRowPermission, WorkbookManageCollaboratorPermission, WorkbookMoveSheetPermission, WorkbookPrintPermission, WorkbookRecoverHistoryPermission, WorkbookRenameSheetPermission, WorkbookSharePermission, WorkbookViewHistoryPermission, WorkbookViewPermission, WorksheetCopyPermission, WorksheetDeleteColumnPermission, WorksheetDeleteProtectionPermission, WorksheetDeleteRowPermission, WorksheetEditExtraObjectPermission, WorksheetEditPermission, WorksheetFilterPermission, WorksheetInsertColumnPermission, WorksheetInsertHyperlinkPermission, WorksheetInsertRowPermission, WorksheetManageCollaboratorPermission, WorksheetPivotTablePermission, WorksheetProtectionPointModel, WorksheetProtectionRuleModel, WorksheetSelectProtectedCellsPermission, WorksheetSelectUnProtectedCellsPermission, WorksheetSetCellStylePermission, WorksheetSetCellValuePermission, WorksheetSetColumnStylePermission, WorksheetSetRowStylePermission, WorksheetSortPermission, WorksheetViewPermission, addMergeCellsUtil, copyRangeStyles, getAddMergeMutationRangeByType, getAllWorksheetPermissionPoint, getAllWorksheetPermissionPointByPointPanel, getNextPrimaryCell, getPrimaryForRange, getValueChangedEffectedRange, validateDefinedName } from "@univerjs/sheets";
4
4
  import { FormulaDataModel, IDefinedNamesService, IFunctionService, ISuperTableService, deserializeRangeWithSheet, serializeRange, serializeRangeWithSheet } from "@univerjs/engine-formula";
5
5
  import { ObjectScope, UnitAction, UnitObject, UnitRole } from "@univerjs/protocol";
6
6
 
@@ -23,7 +23,7 @@ import { ObjectScope, UnitAction, UnitObject, UnitRole } from "@univerjs/protoco
23
23
  const SHEETS_CUSTOM_FIELD_WARNING_MESSAGE = "[Facade]: The sheets custom field is not recommended for external use. Use it at your own risk.";
24
24
 
25
25
  //#endregion
26
- //#region \0@oxc-project+runtime@0.149.0/helpers/esm/typeof.js
26
+ //#region \0@oxc-project+runtime@0.153.0/helpers/esm/typeof.js
27
27
  function _typeof(o) {
28
28
  "@babel/helpers - typeof";
29
29
  return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
@@ -34,7 +34,7 @@ function _typeof(o) {
34
34
  }
35
35
 
36
36
  //#endregion
37
- //#region \0@oxc-project+runtime@0.149.0/helpers/esm/toPrimitive.js
37
+ //#region \0@oxc-project+runtime@0.153.0/helpers/esm/toPrimitive.js
38
38
  function toPrimitive(t, r) {
39
39
  if ("object" != _typeof(t) || !t) return t;
40
40
  var e = t[Symbol.toPrimitive];
@@ -47,14 +47,14 @@ function toPrimitive(t, r) {
47
47
  }
48
48
 
49
49
  //#endregion
50
- //#region \0@oxc-project+runtime@0.149.0/helpers/esm/toPropertyKey.js
50
+ //#region \0@oxc-project+runtime@0.153.0/helpers/esm/toPropertyKey.js
51
51
  function toPropertyKey(t) {
52
52
  var i = toPrimitive(t, "string");
53
53
  return "symbol" == _typeof(i) ? i : i + "";
54
54
  }
55
55
 
56
56
  //#endregion
57
- //#region \0@oxc-project+runtime@0.149.0/helpers/esm/defineProperty.js
57
+ //#region \0@oxc-project+runtime@0.153.0/helpers/esm/defineProperty.js
58
58
  function _defineProperty(e, r, t) {
59
59
  return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
60
60
  value: t,
@@ -65,7 +65,7 @@ function _defineProperty(e, r, t) {
65
65
  }
66
66
 
67
67
  //#endregion
68
- //#region \0@oxc-project+runtime@0.149.0/helpers/esm/decorateParam.js
68
+ //#region \0@oxc-project+runtime@0.153.0/helpers/esm/decorateParam.js
69
69
  function __decorateParam(paramIndex, decorator) {
70
70
  return function(target, key) {
71
71
  decorator(target, key, paramIndex);
@@ -73,7 +73,7 @@ function __decorateParam(paramIndex, decorator) {
73
73
  }
74
74
 
75
75
  //#endregion
76
- //#region \0@oxc-project+runtime@0.149.0/helpers/esm/decorate.js
76
+ //#region \0@oxc-project+runtime@0.153.0/helpers/esm/decorate.js
77
77
  function __decorate(decorators, target, key, desc) {
78
78
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
79
79
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -6545,6 +6545,7 @@ let FRange = _FRange = class FRange extends FBaseInitialable {
6545
6545
  * Returns a copy of the range expanded `Direction.UP` and `Direction.DOWN` if the specified dimension is `Dimension.ROWS`, or `Direction.NEXT` and `Direction.PREVIOUS` if the dimension is `Dimension.COLUMNS`.
6546
6546
  * The expansion of the range is based on detecting data next to the range that is organized like a table.
6547
6547
  * The expanded range covers all adjacent cells with data in them along the specified dimension including the table boundaries.
6548
+ * Cells connected only diagonally do not cause the range to expand.
6548
6549
  * If the original range is surrounded by empty cells along the specified dimension, the range itself is returned.
6549
6550
  * @param {Dimension} [dimension] - The dimension along which to expand the range. If not provided, the range will be expanded in both dimensions.
6550
6551
  * @returns {FRange} The range's data region or a range covering each column or each row spanned by the original range.
@@ -6565,7 +6566,7 @@ let FRange = _FRange = class FRange extends FBaseInitialable {
6565
6566
  * fWorksheet.getRange('D3').setValue(100);
6566
6567
  * fWorksheet.getRange('C4').setValue(100);
6567
6568
  *
6568
- * // Get C3 data region along the rows dimension, the range will be C2:D4
6569
+ * // Get C3 data region along the rows dimension, the range will be C2:C4
6569
6570
  * const range = fWorksheet.getRange('C3').getDataRegion(univerAPI.Enum.Dimension.ROWS);
6570
6571
  * console.log(range.getA1Notation()); // C2:C4
6571
6572
  *
@@ -6579,41 +6580,43 @@ let FRange = _FRange = class FRange extends FBaseInitialable {
6579
6580
  * ```
6580
6581
  */
6581
6582
  getDataRegion(dimension) {
6582
- const { startRow, startColumn, endRow, endColumn } = this._range;
6583
+ let { startRow, startColumn, endRow, endColumn } = this._range;
6583
6584
  const maxRows = this._worksheet.getMaxRows();
6584
6585
  const maxColumns = this._worksheet.getMaxColumns();
6585
6586
  const cellMatrix = this._worksheet.getCellMatrix();
6586
- let newStartRow = startRow;
6587
- let newStartColumn = startColumn;
6588
- let newEndRow = endRow;
6589
- let newEndColumn = endColumn;
6590
- if (dimension !== Dimension.COLUMNS) {
6591
- let topRowHasValue = false;
6592
- let bottomRowHasValue = false;
6593
- for (let c = startColumn; c <= endColumn; c++) {
6594
- if (startRow > 0 && !isNullCell(cellMatrix.getValue(startRow - 1, c))) topRowHasValue = true;
6595
- if (endRow < maxRows - 1 && !isNullCell(cellMatrix.getValue(endRow + 1, c))) bottomRowHasValue = true;
6596
- if (topRowHasValue && bottomRowHasValue) break;
6587
+ const rowHasData = (row) => {
6588
+ for (let c = startColumn; c <= endColumn; c++) if (!isNullCell(cellMatrix.getValue(row, c))) return true;
6589
+ return false;
6590
+ };
6591
+ const columnHasData = (column) => {
6592
+ for (let r = startRow; r <= endRow; r++) if (!isNullCell(cellMatrix.getValue(r, column))) return true;
6593
+ return false;
6594
+ };
6595
+ let expanded = true;
6596
+ while (expanded) {
6597
+ expanded = false;
6598
+ while (dimension !== Dimension.COLUMNS && startRow > 0 && rowHasData(startRow - 1)) {
6599
+ startRow--;
6600
+ expanded = true;
6597
6601
  }
6598
- if (topRowHasValue) newStartRow = startRow - 1;
6599
- if (bottomRowHasValue) newEndRow = endRow + 1;
6600
- }
6601
- if (dimension !== Dimension.ROWS) {
6602
- let leftColumnHasValue = false;
6603
- let rightColumnHasValue = false;
6604
- for (let r = startRow; r <= endRow; r++) {
6605
- if (startColumn > 0 && !isNullCell(cellMatrix.getValue(r, startColumn - 1))) leftColumnHasValue = true;
6606
- if (endColumn < maxColumns - 1 && !isNullCell(cellMatrix.getValue(r, endColumn + 1))) rightColumnHasValue = true;
6607
- if (leftColumnHasValue && rightColumnHasValue) break;
6602
+ while (dimension !== Dimension.COLUMNS && endRow < maxRows - 1 && rowHasData(endRow + 1)) {
6603
+ endRow++;
6604
+ expanded = true;
6605
+ }
6606
+ while (dimension !== Dimension.ROWS && startColumn > 0 && columnHasData(startColumn - 1)) {
6607
+ startColumn--;
6608
+ expanded = true;
6609
+ }
6610
+ while (dimension !== Dimension.ROWS && endColumn < maxColumns - 1 && columnHasData(endColumn + 1)) {
6611
+ endColumn++;
6612
+ expanded = true;
6608
6613
  }
6609
- if (leftColumnHasValue) newStartColumn = startColumn - 1;
6610
- if (rightColumnHasValue) newEndColumn = endColumn + 1;
6611
6614
  }
6612
6615
  return this._injector.createInstance(_FRange, this._workbook, this._worksheet, {
6613
- startRow: newStartRow,
6614
- startColumn: newStartColumn,
6615
- endRow: newEndRow,
6616
- endColumn: newEndColumn
6616
+ startRow,
6617
+ startColumn,
6618
+ endRow,
6619
+ endColumn
6617
6620
  });
6618
6621
  }
6619
6622
  /**
@@ -8110,6 +8113,43 @@ let FWorkbook = class FWorkbook extends FBaseInitialable {
8110
8113
  removeStyles(styleKeys) {
8111
8114
  this._workbook.removeStyles(styleKeys);
8112
8115
  }
8116
+ /**
8117
+ * Get the workbook's iterative calculation settings.
8118
+ * Missing or invalid settings use the defaults: iteration disabled, 100 iterations and a maximum change of 0.001.
8119
+ * @returns {IWorkbookCalculationSettings} A copy of the normalized workbook calculation settings.
8120
+ * @example
8121
+ * ```ts
8122
+ * const fWorkbook = univerAPI.getActiveWorkbook();
8123
+ * const settings = fWorkbook.getCalculationSettings();
8124
+ * console.log(settings.iterativeCalculation, settings.maxIterations, settings.maxChange);
8125
+ * ```
8126
+ */
8127
+ getCalculationSettings() {
8128
+ return this._workbook.getCalculationSettings();
8129
+ }
8130
+ /**
8131
+ * Set iterative calculation settings for the entire workbook through an undoable command.
8132
+ * @param {IWorkbookCalculationSettings} settings The complete calculation settings.
8133
+ * Set `iterativeCalculation` to enable or disable iterative evaluation of circular references.
8134
+ * `maxIterations` must be an integer from 1 to 32767, and `maxChange` must be a finite positive number.
8135
+ * @returns {boolean} Whether the settings command succeeded. Returns false if the workbook cannot be edited or found.
8136
+ * @example
8137
+ * ```ts
8138
+ * const fWorkbook = univerAPI.getActiveWorkbook();
8139
+ * const success = fWorkbook.setCalculationSettings({
8140
+ * iterativeCalculation: true,
8141
+ * maxIterations: 100,
8142
+ * maxChange: 0.001,
8143
+ * });
8144
+ * console.log('Calculation settings updated:', success);
8145
+ * ```
8146
+ */
8147
+ setCalculationSettings(settings) {
8148
+ return this._commandService.syncExecuteCommand(SetWorkbookCalculationSettingsCommand.id, {
8149
+ unitId: this.id,
8150
+ settings
8151
+ });
8152
+ }
8113
8153
  };
8114
8154
  FWorkbook = __decorate([
8115
8155
  __decorateParam(1, Inject(Injector)),
package/lib/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { AUTO_HEIGHT_FOR_MERGED_CELLS, BORDER_KEYS, BORDER_STYLE_KEYS, BooleanNumber, BorderStyleTypes, BorderType, BuildTextUtils, COLOR_STYLE_KEYS, CellModeEnum, CellValueType, CommandType, CustomCommandExecutionError, DependentOn, Dimension, Direction, Disposable, DisposableCollection, DocumentDataModel, ErrorService, FontItalic, FontWeight, HorizontalAlign, IAuthzIoService, ICommandService, IConfigService, IConfirmService, IContextService, ILogService, IPermissionService, IResourceManagerService, IS_ROW_STYLE_PRECEDE_COLUMN_STYLE, IUndoRedoService, IUniverInstanceService, Inject, Injector, InterceptorEffectEnum, InterceptorManager, LRUMap, LocaleService, MAX_COLUMN_COUNT, MAX_ROW_COUNT, ObjectMatrix, Optional, PADDING_KEYS, PermissionStatus, Plugin, RANGE_TYPE, RTree, Range, Rectangle, RxDisposable, STYLE_KEYS, Styles, TEXT_DECORATION_KEYS, TEXT_ROTATION_KEYS, TextX, Tools, UniverInstanceType, UserManagerService, WorksheetHiddenState, cellToRange, cloneWorksheetData, composeInterceptors, concatMatrixArray, createIdentifier, createInterceptorKey, createRowColIter, generateRandomId, getArrayLength, getIntersectRange, getNumfmtLocaleTag, getNumfmtParseValueFilter, isBooleanString, isDefaultFormat, isFormulaId, isFormulaString, isICellData, isRealNum, isSafeNumeric, isTextFormat, mapObjectMatrix, merge, mergeIntervals, mergeOverrideWithDependencies, mergeWorksheetSnapshotWithDefault, moveMatrixArray, normalizeTextRuns, numfmt, regexp, registerDependencies, remove, selectionToArray, sequenceExecute, sliceMatrixArray, spliceArray, throttle, toDisposable, touchDependencies, willLoseNumericPrecision } from "@univerjs/core";
1
+ import { AUTO_HEIGHT_FOR_MERGED_CELLS, BORDER_KEYS, BORDER_STYLE_KEYS, BooleanNumber, BorderStyleTypes, BorderType, BuildTextUtils, COLOR_STYLE_KEYS, CellModeEnum, CellValueType, CommandType, CustomCommandExecutionError, DependentOn, Dimension, Direction, Disposable, DisposableCollection, DocumentDataModel, ErrorService, FontItalic, FontWeight, HorizontalAlign, IAuthzIoService, ICommandService, IConfigService, IConfirmService, IContextService, ILogService, IPermissionService, IResourceManagerService, IS_ROW_STYLE_PRECEDE_COLUMN_STYLE, IUndoRedoService, IUniverInstanceService, Inject, Injector, InterceptorEffectEnum, InterceptorManager, LRUMap, LocaleService, MAX_COLUMN_COUNT, MAX_ROW_COUNT, ObjectMatrix, Optional, PADDING_KEYS, PermissionStatus, Plugin, RANGE_TYPE, RTree, Range, Rectangle, RxDisposable, SHEET_TEXT_LINE_GAP, STYLE_KEYS, Styles, TEXT_DECORATION_KEYS, TEXT_ROTATION_KEYS, TextX, Tools, UniverInstanceType, UserManagerService, WorksheetHiddenState, WrapStrategy, cellToRange, cloneWorksheetData, composeInterceptors, concatMatrixArray, createIdentifier, createInterceptorKey, createRowColIter, generateRandomId, getArrayLength, getIntersectRange, getNumfmtLocaleTag, getNumfmtParseValueFilter, isBooleanString, isDefaultFormat, isFormulaId, isFormulaString, isICellData, isRealNum, isSafeNumeric, isTextFormat, mapObjectMatrix, merge, mergeIntervals, mergeOverrideWithDependencies, mergeWorksheetSnapshotWithDefault, moveMatrixArray, normalizeTextRuns, normalizeWorkbookCalculationSettings, numfmt, regexp, registerDependencies, remove, selectionToArray, sequenceExecute, sliceMatrixArray, spliceArray, throttle, toDisposable, touchDependencies, willLoseNumericPrecision } from "@univerjs/core";
2
2
  import { BehaviorSubject, Subject, distinctUntilChanged, filter, map, merge as merge$1, of, share, shareReplay, skip, switchMap, take, takeUntil } from "rxjs";
3
3
  import { IDefinedNamesService, LexerTreeBuilder, RemoveDefinedNameMutation, SetDefinedNameMutation, SetDefinedNameMutationFactory, SetFormulaCalculationResultMutation, UniverFormulaEnginePlugin, deserializeRangeWithSheet, deserializeRangeWithSheetWithCache, handleNumfmtInCell, isReferenceStringWithEffectiveColumn, operatorToken, sequenceNodeType, stripErrorMargin } from "@univerjs/engine-formula";
4
4
  import { SpreadsheetSkeleton, cjk, precisionTo } from "@univerjs/engine-render";
@@ -218,7 +218,7 @@ const RangeThemeInterceptorId = "sheet.interceptor.range-theme-id";
218
218
  const IgnoreRangeThemeInterceptorKey = "sheet.interceptor.ignore-range-theme";
219
219
 
220
220
  //#endregion
221
- //#region \0@oxc-project+runtime@0.149.0/helpers/esm/typeof.js
221
+ //#region \0@oxc-project+runtime@0.153.0/helpers/esm/typeof.js
222
222
  function _typeof(o) {
223
223
  "@babel/helpers - typeof";
224
224
  return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
@@ -229,7 +229,7 @@ function _typeof(o) {
229
229
  }
230
230
 
231
231
  //#endregion
232
- //#region \0@oxc-project+runtime@0.149.0/helpers/esm/toPrimitive.js
232
+ //#region \0@oxc-project+runtime@0.153.0/helpers/esm/toPrimitive.js
233
233
  function toPrimitive(t, r) {
234
234
  if ("object" != _typeof(t) || !t) return t;
235
235
  var e = t[Symbol.toPrimitive];
@@ -242,14 +242,14 @@ function toPrimitive(t, r) {
242
242
  }
243
243
 
244
244
  //#endregion
245
- //#region \0@oxc-project+runtime@0.149.0/helpers/esm/toPropertyKey.js
245
+ //#region \0@oxc-project+runtime@0.153.0/helpers/esm/toPropertyKey.js
246
246
  function toPropertyKey(t) {
247
247
  var i = toPrimitive(t, "string");
248
248
  return "symbol" == _typeof(i) ? i : i + "";
249
249
  }
250
250
 
251
251
  //#endregion
252
- //#region \0@oxc-project+runtime@0.149.0/helpers/esm/defineProperty.js
252
+ //#region \0@oxc-project+runtime@0.153.0/helpers/esm/defineProperty.js
253
253
  function _defineProperty(e, r, t) {
254
254
  return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
255
255
  value: t,
@@ -260,7 +260,7 @@ function _defineProperty(e, r, t) {
260
260
  }
261
261
 
262
262
  //#endregion
263
- //#region \0@oxc-project+runtime@0.149.0/helpers/esm/decorateParam.js
263
+ //#region \0@oxc-project+runtime@0.153.0/helpers/esm/decorateParam.js
264
264
  function __decorateParam(paramIndex, decorator) {
265
265
  return function(target, key) {
266
266
  decorator(target, key, paramIndex);
@@ -268,7 +268,7 @@ function __decorateParam(paramIndex, decorator) {
268
268
  }
269
269
 
270
270
  //#endregion
271
- //#region \0@oxc-project+runtime@0.149.0/helpers/esm/decorate.js
271
+ //#region \0@oxc-project+runtime@0.153.0/helpers/esm/decorate.js
272
272
  function __decorate(decorators, target, key, desc) {
273
273
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
274
274
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -1648,7 +1648,7 @@ const MoveRangeMutation = {
1648
1648
  handler: (accessor, params) => {
1649
1649
  const { from, to } = params;
1650
1650
  if (!from || !to) return false;
1651
- const workbook = accessor.get(IUniverInstanceService).getCurrentUnitOfType(UniverInstanceType.UNIVER_SHEET);
1651
+ const workbook = accessor.get(IUniverInstanceService).getUnit(params.unitId, UniverInstanceType.UNIVER_SHEET);
1652
1652
  if (!workbook) return false;
1653
1653
  const fromWorksheet = workbook.getSheetBySheetId(params.from.subUnitId);
1654
1654
  const toWorksheet = workbook.getSheetBySheetId(params.to.subUnitId);
@@ -2319,7 +2319,9 @@ function prepareSetRangeValuesMutation(cells, styles, params) {
2319
2319
  const before = new ObjectMatrix();
2320
2320
  const after = new ObjectMatrix();
2321
2321
  new ObjectMatrix(Tools.deepClone(params.cellValue)).forValue((row, column, value) => {
2322
+ var _params$sourceFormula;
2322
2323
  const original = Tools.deepClone(cells.getValue(row, column) ?? null);
2324
+ if (isStaleFormulaResult(original, (_params$sourceFormula = params.sourceFormulaData) === null || _params$sourceFormula === void 0 || (_params$sourceFormula = _params$sourceFormula[row]) === null || _params$sourceFormula === void 0 ? void 0 : _params$sourceFormula[column])) return;
2323
2325
  before.setValue(row, column, original);
2324
2326
  const next = value ? mergeCellData(value, Tools.deepClone(original ?? {}), detachedStyles, !!params.isOverrideStyle) : null;
2325
2327
  after.setValue(row, column, next && !Tools.isEmptyObject(next) ? next : null);
@@ -2369,7 +2371,7 @@ const SetRangeValuesMutation = {
2369
2371
  id: "sheet.mutation.set-range-values",
2370
2372
  type: CommandType.MUTATION,
2371
2373
  handler: (accessor, params) => {
2372
- const { cellValue, subUnitId, unitId, isOverrideStyle } = params;
2374
+ const { cellValue, subUnitId, unitId, isOverrideStyle, sourceFormulaData } = params;
2373
2375
  const workbook = accessor.get(IUniverInstanceService).getUnit(unitId);
2374
2376
  if (!workbook) return false;
2375
2377
  const worksheet = workbook.getSheetBySheetId(subUnitId);
@@ -2377,6 +2379,8 @@ const SetRangeValuesMutation = {
2377
2379
  const cellMatrix = worksheet.getCellMatrix();
2378
2380
  const styles = workbook.getStyles();
2379
2381
  new ObjectMatrix(cellValue).forValue((row, col, newVal) => {
2382
+ var _sourceFormulaData$ro;
2383
+ if (isStaleFormulaResult(cellMatrix.getValue(row, col), sourceFormulaData === null || sourceFormulaData === void 0 || (_sourceFormulaData$ro = sourceFormulaData[row]) === null || _sourceFormulaData$ro === void 0 ? void 0 : _sourceFormulaData$ro[col])) return;
2380
2384
  if (!newVal) cellMatrix.realDeleteValue(row, col);
2381
2385
  else {
2382
2386
  let oldVal = cellMatrix.getValue(row, col) || {};
@@ -2388,6 +2392,9 @@ const SetRangeValuesMutation = {
2388
2392
  return true;
2389
2393
  }
2390
2394
  };
2395
+ function isStaleFormulaResult(cell, source) {
2396
+ return source != null && (source.f !== ((cell === null || cell === void 0 ? void 0 : cell.f) ?? "") || source.si !== ((cell === null || cell === void 0 ? void 0 : cell.si) ?? void 0));
2397
+ }
2391
2398
  const overwriteCellPropertiesSet = /* @__PURE__ */ new Set([
2392
2399
  "f",
2393
2400
  "p",
@@ -10348,6 +10355,27 @@ const AFFECT_LAYOUT_STYLES = [
10348
10355
  "tr",
10349
10356
  "tb"
10350
10357
  ];
10358
+ function createStyleCellValue(worksheet, ranges, style) {
10359
+ const cellValue = new ObjectMatrix();
10360
+ const iterator = createRangeIteratorWithSkipFilteredRows(worksheet);
10361
+ if (Tools.isArray(style.value)) for (let i = 0; i < ranges.length; i++) iterator.forOperableEach(ranges[i], (r, c, range) => {
10362
+ cellValue.setValue(r, c, { s: { [style.type]: style.value[r - range.startRow][c - range.startColumn] } });
10363
+ });
10364
+ else {
10365
+ const styleObj = { s: { [style.type]: style.value } };
10366
+ for (let i = 0; i < ranges.length; i++) iterator.forOperableEach(ranges[i], (r, c) => cellValue.setValue(r, c, styleObj));
10367
+ }
10368
+ if (style.type === "tb" || style.type === "stf") cellValue.forValue((row, column, cell) => {
10369
+ var _worksheet$getCompose;
10370
+ const cellStyle = cell.s;
10371
+ if (cellStyle.tb === WrapStrategy.WRAP) cellStyle.stf = BooleanNumber.FALSE;
10372
+ else if (cellStyle.stf === BooleanNumber.TRUE && ((_worksheet$getCompose = worksheet.getComposedCellStyle(row, column)) === null || _worksheet$getCompose === void 0 ? void 0 : _worksheet$getCompose.tb) === WrapStrategy.WRAP) cellValue.setValue(row, column, { s: {
10373
+ ...cellStyle,
10374
+ tb: WrapStrategy.UNSPECIFIED
10375
+ } });
10376
+ });
10377
+ return cellValue;
10378
+ }
10351
10379
  /**
10352
10380
  * The command to set cell style.
10353
10381
  * Set style to a bunch of ranges.
@@ -10367,19 +10395,10 @@ const SetStyleCommand = {
10367
10395
  const selectionManagerService = accessor.get(SheetsSelectionsService);
10368
10396
  const ranges = range ? [range] : (_selectionManagerServ = selectionManagerService.getCurrentSelections()) === null || _selectionManagerServ === void 0 ? void 0 : _selectionManagerServ.map((s) => s.range);
10369
10397
  if (!(ranges === null || ranges === void 0 ? void 0 : ranges.length)) return false;
10370
- const cellValue = new ObjectMatrix();
10371
- const iterator = createRangeIteratorWithSkipFilteredRows(worksheet);
10372
- if (Tools.isArray(style.value)) for (let i = 0; i < ranges.length; i++) iterator.forOperableEach(ranges[i], (r, c, range) => {
10373
- cellValue.setValue(r, c, { s: { [style.type]: style.value[r - range.startRow][c - range.startColumn] } });
10374
- });
10375
- else for (let i = 0; i < ranges.length; i++) {
10376
- const styleObj = { s: { [style.type]: style.value } };
10377
- iterator.forOperableEach(ranges[i], (r, c) => cellValue.setValue(r, c, styleObj));
10378
- }
10379
10398
  const setRangeValuesMutationParams = {
10380
10399
  subUnitId,
10381
10400
  unitId,
10382
- cellValue: cellValue.getMatrix()
10401
+ cellValue: createStyleCellValue(worksheet, ranges, style).getMatrix()
10383
10402
  };
10384
10403
  const skeleton = accessor.get(SheetSkeletonService).getSkeleton(unitId, subUnitId);
10385
10404
  const undoSetRangeValuesMutationParams = SetRangeValuesUndoMutationFactory(accessor, setRangeValuesMutationParams);
@@ -14701,6 +14720,72 @@ const SetTabColorCommand = {
14701
14720
  }
14702
14721
  };
14703
14722
 
14723
+ //#endregion
14724
+ //#region src/services/permission/permission-point/workbook/editable.ts
14725
+ var WorkbookEditablePermission = class {
14726
+ constructor(unitId) {
14727
+ this.unitId = unitId;
14728
+ _defineProperty(this, "id", void 0);
14729
+ _defineProperty(this, "value", true);
14730
+ _defineProperty(this, "type", UnitObject.Workbook);
14731
+ _defineProperty(this, "status", PermissionStatus.INIT);
14732
+ _defineProperty(this, "subType", UnitAction.Edit);
14733
+ this.unitId = unitId;
14734
+ this.id = `${this.type}.${UnitAction.Edit}_${unitId}`;
14735
+ }
14736
+ };
14737
+
14738
+ //#endregion
14739
+ //#region src/commands/mutations/set-workbook-calculation-settings.mutation.ts
14740
+ const SetWorkbookCalculationSettingsMutation = {
14741
+ id: "sheet.mutation.set-workbook-calculation-settings",
14742
+ type: CommandType.MUTATION,
14743
+ handler: (accessor, params) => {
14744
+ const workbook = accessor.get(IUniverInstanceService).getUnit(params.unitId, UniverInstanceType.UNIVER_SHEET);
14745
+ if (!workbook) return false;
14746
+ workbook.setCalculationSettings(params.settings);
14747
+ return true;
14748
+ }
14749
+ };
14750
+
14751
+ //#endregion
14752
+ //#region src/commands/commands/set-workbook-calculation-settings.command.ts
14753
+ const SetWorkbookCalculationSettingsCommand = {
14754
+ id: "sheet.command.set-workbook-calculation-settings",
14755
+ type: CommandType.COMMAND,
14756
+ handler: (accessor, params) => {
14757
+ if (!params) return false;
14758
+ const target = getSheetCommandTargetWorkbook(accessor.get(IUniverInstanceService), params);
14759
+ if (!target) return false;
14760
+ const permission = accessor.get(IPermissionService).getPermissionPoint(new WorkbookEditablePermission(params.unitId).id);
14761
+ if (permission && !permission.value) return false;
14762
+ const undoParams = {
14763
+ unitId: params.unitId,
14764
+ settings: target.workbook.getCalculationSettings()
14765
+ };
14766
+ const redoParams = {
14767
+ unitId: params.unitId,
14768
+ settings: normalizeWorkbookCalculationSettings(params.settings)
14769
+ };
14770
+ if (undoParams.settings.iterativeCalculation === redoParams.settings.iterativeCalculation && undoParams.settings.maxIterations === redoParams.settings.maxIterations && undoParams.settings.maxChange === redoParams.settings.maxChange) return true;
14771
+ if (accessor.get(ICommandService).syncExecuteCommand(SetWorkbookCalculationSettingsMutation.id, redoParams)) {
14772
+ accessor.get(IUndoRedoService).pushUndoRedo({
14773
+ unitID: params.unitId,
14774
+ undoMutations: [{
14775
+ id: SetWorkbookCalculationSettingsMutation.id,
14776
+ params: undoParams
14777
+ }],
14778
+ redoMutations: [{
14779
+ id: SetWorkbookCalculationSettingsMutation.id,
14780
+ params: redoParams
14781
+ }]
14782
+ });
14783
+ return true;
14784
+ }
14785
+ return false;
14786
+ }
14787
+ };
14788
+
14704
14789
  //#endregion
14705
14790
  //#region src/commands/mutations/set-workbook-name.mutation.ts
14706
14791
  const SetWorkbookNameMutation = {
@@ -15574,21 +15659,6 @@ var WorkbookDuplicatePermission = class {
15574
15659
  }
15575
15660
  };
15576
15661
 
15577
- //#endregion
15578
- //#region src/services/permission/permission-point/workbook/editable.ts
15579
- var WorkbookEditablePermission = class {
15580
- constructor(unitId) {
15581
- this.unitId = unitId;
15582
- _defineProperty(this, "id", void 0);
15583
- _defineProperty(this, "value", true);
15584
- _defineProperty(this, "type", UnitObject.Workbook);
15585
- _defineProperty(this, "status", PermissionStatus.INIT);
15586
- _defineProperty(this, "subType", UnitAction.Edit);
15587
- this.unitId = unitId;
15588
- this.id = `${this.type}.${UnitAction.Edit}_${unitId}`;
15589
- }
15590
- };
15591
-
15592
15662
  //#endregion
15593
15663
  //#region src/services/permission/permission-point/workbook/export.ts
15594
15664
  var WorkbookExportPermission = class {
@@ -17807,7 +17877,7 @@ let CalculateResultApplyController = class CalculateResultApplyController extend
17807
17877
  _initialize() {
17808
17878
  this.disposeWithMe(this._commandService.onCommandExecuted((command) => {
17809
17879
  if (command.id !== SetFormulaCalculationResultMutation.id) return;
17810
- const { unitData } = command.params;
17880
+ const { unitData, sourceFormulaData } = command.params;
17811
17881
  const unitIds = Object.keys(unitData);
17812
17882
  const redoMutationsInfo = [];
17813
17883
  for (let i = 0; i < unitIds.length; i++) {
@@ -17818,6 +17888,7 @@ let CalculateResultApplyController = class CalculateResultApplyController extend
17818
17888
  if (sheetData == null) continue;
17819
17889
  const sheetIds = Object.keys(sheetData);
17820
17890
  for (let j = 0; j < sheetIds.length; j++) {
17891
+ var _sourceFormulaData$un;
17821
17892
  const sheetId = sheetIds[j];
17822
17893
  const cellData = sheetData[sheetId];
17823
17894
  if (cellData == null) continue;
@@ -17825,7 +17896,8 @@ let CalculateResultApplyController = class CalculateResultApplyController extend
17825
17896
  const setRangeValuesMutation = {
17826
17897
  subUnitId: sheetId,
17827
17898
  unitId,
17828
- cellValue: this._getMergedCellData(unitId, sheetId, cellData)
17899
+ cellValue: this._getMergedCellData(unitId, sheetId, cellData, sourceFormulaData),
17900
+ sourceFormulaData: sourceFormulaData === null || sourceFormulaData === void 0 || (_sourceFormulaData$un = sourceFormulaData[unitId]) === null || _sourceFormulaData$un === void 0 ? void 0 : _sourceFormulaData$un[sheetId]
17829
17901
  };
17830
17902
  redoMutationsInfo.push({
17831
17903
  id: SetRangeValuesMutation.id,
@@ -17845,16 +17917,23 @@ let CalculateResultApplyController = class CalculateResultApplyController extend
17845
17917
  * @param unitId
17846
17918
  * @param sheetId
17847
17919
  * @param cellData
17920
+ * @param sourceFormulaData Formula identities captured before scalar evaluation.
17848
17921
  * @returns Calculated cell data merged with number formats.
17849
17922
  */
17850
- _getMergedCellData(unitId, sheetId, cellData) {
17923
+ _getMergedCellData(unitId, sheetId, cellData, sourceFormulaData) {
17851
17924
  const workbook = this._univerInstanceService.getUnit(unitId, UniverInstanceType.UNIVER_SHEET);
17852
17925
  const styles = workbook === null || workbook === void 0 ? void 0 : workbook.getStyles();
17853
17926
  const worksheet = workbook === null || workbook === void 0 ? void 0 : workbook.getSheetBySheetId(sheetId);
17854
17927
  const oldCellDataMatrix = worksheet === null || worksheet === void 0 ? void 0 : worksheet.getCellMatrix();
17855
17928
  const cellDataMatrix = new ObjectMatrix(cellData);
17856
17929
  cellDataMatrix.forValue((row, col, cell) => {
17930
+ var _sourceFormulaData$un2;
17857
17931
  const oldCell = oldCellDataMatrix === null || oldCellDataMatrix === void 0 ? void 0 : oldCellDataMatrix.getValue(row, col);
17932
+ const sourceFormula = sourceFormulaData === null || sourceFormulaData === void 0 || (_sourceFormulaData$un2 = sourceFormulaData[unitId]) === null || _sourceFormulaData$un2 === void 0 || (_sourceFormulaData$un2 = _sourceFormulaData$un2[sheetId]) === null || _sourceFormulaData$un2 === void 0 || (_sourceFormulaData$un2 = _sourceFormulaData$un2[row]) === null || _sourceFormulaData$un2 === void 0 ? void 0 : _sourceFormulaData$un2[col];
17933
+ if (sourceFormula != null && (sourceFormula.f !== ((oldCell === null || oldCell === void 0 ? void 0 : oldCell.f) ?? "") || sourceFormula.si !== ((oldCell === null || oldCell === void 0 ? void 0 : oldCell.si) ?? void 0))) {
17934
+ cellDataMatrix.realDeleteValue(row, col);
17935
+ return;
17936
+ }
17858
17937
  const newCell = handleNumfmtInCell(oldCell, cell, styles);
17859
17938
  cellDataMatrix.setValue(row, col, newCell);
17860
17939
  });
@@ -19490,7 +19569,7 @@ RangeProtectionCache = __decorate([
19490
19569
  //#endregion
19491
19570
  //#region package.json
19492
19571
  var name = "@univerjs/sheets";
19493
- var version = "1.0.3";
19572
+ var version = "1.1.0";
19494
19573
 
19495
19574
  //#endregion
19496
19575
  //#region src/controllers/active-worksheet.controller.ts
@@ -19620,6 +19699,7 @@ let BasicWorksheetController = class BasicWorksheetController extends Disposable
19620
19699
  RemoveWorksheetMergeMutation,
19621
19700
  RemoveNumfmtMutation,
19622
19701
  AddWorksheetMergeMutation,
19702
+ SetWorkbookCalculationSettingsMutation,
19623
19703
  SetWorkbookNameMutation,
19624
19704
  SetWorksheetNameMutation,
19625
19705
  SetNumfmtMutation,
@@ -19713,6 +19793,7 @@ let BasicWorksheetController = class BasicWorksheetController extends Disposable
19713
19793
  SetTextRotationCommand,
19714
19794
  SetTextWrapCommand,
19715
19795
  SetVerticalTextAlignCommand,
19796
+ SetWorkbookCalculationSettingsCommand,
19716
19797
  SetWorkbookNameCommand,
19717
19798
  SetWorksheetActivateCommand,
19718
19799
  SetWorksheetActiveOperation,
@@ -20837,6 +20918,9 @@ let UniverSheetsPlugin = class UniverSheetsPlugin extends Plugin {
20837
20918
  }
20838
20919
  _initConfig() {
20839
20920
  var _this$_config, _this$_config2, _this$_config3;
20921
+ const textLineGap = this._config.textLineGap ?? 0;
20922
+ if (!Number.isFinite(textLineGap) || textLineGap < 0) throw new RangeError("textLineGap must be a finite, non-negative number.");
20923
+ this._configService.setConfig(SHEET_TEXT_LINE_GAP, textLineGap);
20840
20924
  if ((_this$_config = this._config) === null || _this$_config === void 0 ? void 0 : _this$_config.onlyRegisterFormulaRelatedMutations) this._configService.setConfig(ONLY_REGISTER_FORMULA_RELATED_MUTATIONS_KEY, true);
20841
20925
  if ((_this$_config2 = this._config) === null || _this$_config2 === void 0 ? void 0 : _this$_config2.isRowStylePrecedeColumnStyle) this._configService.setConfig(IS_ROW_STYLE_PRECEDE_COLUMN_STYLE, true);
20842
20926
  if ((_this$_config3 = this._config) === null || _this$_config3 === void 0 ? void 0 : _this$_config3.autoHeightForMergedCells) this._configService.setConfig(AUTO_HEIGHT_FOR_MERGED_CELLS, true);
@@ -21438,4 +21522,4 @@ function convertPositionCellToSheetOverGrid(unitId, subUnitId, cellOverGridPosit
21438
21522
  }
21439
21523
 
21440
21524
  //#endregion
21441
- export { AFFECT_LAYOUT_STYLES, AFTER_CELL_EDIT, AUTO_FILL_APPLY_TYPE, AUTO_FILL_DATA_TYPE, AUTO_FILL_HOOK_TYPE, AddMergeRedoSelectionsOperationFactory, AddMergeUndoMutationFactory, AddMergeUndoSelectionsOperationFactory, AddRangeProtectionCommand, AddRangeProtectionMutation, AddRangeThemeMutation, AddWorksheetMergeAllCommand, AddWorksheetMergeCommand, AddWorksheetMergeHorizontalCommand, AddWorksheetMergeMutation, AddWorksheetMergeVerticalCommand, AddWorksheetProtectionCommand, AddWorksheetProtectionMutation, AppendRowCommand, AutoClearContentCommand, AutoFillCommand, AutoFillController, AutoFillRules, AutoFillService, AutoFillTools, BEFORE_CELL_EDIT, BorderStyleManagerService, COMMAND_LISTENER_SKELETON_CHANGE, COMMAND_LISTENER_VALUE_CHANGE, CalculateResultApplyController, CancelFrozenCommand, CancelMarkDirtyRowAutoHeightOperation, ClearSelectionAllCommand, ClearSelectionContentCommand, ClearSelectionFormatCommand, CopySheetCommand, CopyWorksheetEndMutation, DISABLE_NORMAL_SELECTIONS, DefinedNameDataController, DeleteRangeMoveLeftCommand, DeleteRangeMoveUpCommand, DeleteRangeProtectionCommand, DeleteRangeProtectionMutation, DeleteWorksheetProtectionCommand, DeleteWorksheetProtectionMutation, DeleteWorksheetRangeThemeStyleCommand, DeleteWorksheetRangeThemeStyleMutation, DeleteWorksheetRangeThemeStyleMutationFactory, DeltaColumnWidthCommand, DeltaRowHeightCommand, EditStateEnum, EffectRefRangId, EmptyMutation, ExclusiveRangeService, FactoryAddRangeProtectionMutation, FactoryDeleteRangeProtectionMutation, FactorySetRangeProtectionMutation, IAutoFillService, IExclusiveRangeService, INTERCEPTOR_POINT, INumfmtService, IRefSelectionsService, InsertColAfterCommand, InsertColBeforeCommand, InsertColByRangeCommand, InsertColCommand, InsertColMutation, InsertColMutationUndoFactory, InsertDefinedNameCommand, InsertMultiColsLeftCommand, InsertMultiColsRightCommand, InsertMultiRowsAboveCommand, InsertMultiRowsAfterCommand, InsertRangeMoveDownCommand, InsertRangeMoveRightCommand, InsertRowAfterCommand, InsertRowBeforeCommand, InsertRowByRangeCommand, InsertRowCommand, InsertRowMutation, InsertRowMutationUndoFactory, InsertSheetCommand, InsertSheetMutation, InsertSheetUndoMutationFactory, InterceptCellContentPriority, MAX_CELL_PER_SHEET_KEY, MERGE_CELL_INTERCEPTOR_CHECK, MarkDirtyFilterChangeMutation, MarkDirtyRowAutoHeightOperation, MergeCellController, MoveColsCommand, MoveColsMutation, MoveColsMutationUndoFactory, MoveRangeCommand, MoveRangeMutation, MoveRowsCommand, MoveRowsMutation, MoveRowsMutationUndoFactory, NumfmtService, OperatorType, PermissionPointsDefinitions, REF_SELECTIONS_ENABLED, RangeMergeUtil, RangeProtectionCache, RangeProtectionPermissionDeleteProtectionPoint, RangeProtectionPermissionEditPoint, RangeProtectionPermissionManageCollaPoint, RangeProtectionPermissionViewPoint, RangeProtectionRefRangeService, RangeProtectionRenderModel, RangeProtectionRuleModel, RangeProtectionService, RangeThemeStyle, RefRangeService, RefSelectionsService, RefillCommand, RegisterWorksheetRangeThemeStyleCommand, RegisterWorksheetRangeThemeStyleMutation, RemoveColByRangeCommand, RemoveColCommand, RemoveColMutation, RemoveDefinedNameCommand, RemoveMergeUndoMutationFactory, RemoveNumfmtMutation, RemoveRangeThemeMutation, RemoveRowByRangeCommand, RemoveRowCommand, RemoveRowMutation, RemoveSheetCommand, RemoveSheetMutation, RemoveSheetUndoMutationFactory, RemoveWorksheetMergeCommand, RemoveWorksheetMergeMutation, ReorderRangeCommand, ReorderRangeMutation, ReorderRangeUndoMutationFactory, ResetBackgroundColorCommand, ResetTextColorCommand, SCOPE_WORKBOOK_VALUE_DEFINED_NAME, SELECTIONS_ENABLED, SELECTION_CONTROL_BORDER_BUFFER_COLOR, SELECTION_CONTROL_BORDER_BUFFER_WIDTH, SHEETS_PLUGIN_CONFIG_KEY, ScrollToCellOperation, SelectRangeCommand, SelectionMoveType, SetBackgroundColorCommand, SetBoldCommand, SetBorderBasicCommand, SetBorderColorCommand, SetBorderCommand, SetBorderPositionCommand, SetBorderStyleCommand, SetColDataCommand, SetColDataMutation, SetColDataMutationFactory, SetColHiddenCommand, SetColHiddenMutation, SetColVisibleMutation, SetColWidthCommand, SetDefinedNameCommand, SetFontFamilyCommand, SetFontSizeCommand, SetFrozenCommand, SetFrozenMutation, SetFrozenMutationFactory, SetGridlinesColorCommand, SetGridlinesColorMutation, SetHorizontalTextAlignCommand, SetItalicCommand, SetNumfmtMutation, SetOverlineCommand, SetProtectionCommand, SetRangeCustomMetadataCommand, SetRangeProtectionMutation, SetRangeThemeMutation, SetRangeValuesCommand, SetRangeValuesMutation, SetRangeValuesUndoMutationFactory, SetRowDataCommand, SetRowDataMutation, SetRowDataMutationFactory, SetRowHeightCommand, SetRowHiddenCommand, SetRowHiddenMutation, SetRowVisibleMutation, SetSelectedColsVisibleCommand, SetSelectedRowsVisibleCommand, SetSelectionsOperation, SetShrinkToFitCommand, SetSpecificColsVisibleCommand, SetSpecificRowsVisibleCommand, SetStrikeThroughCommand, SetStyleCommand, SetTabColorCommand, SetTabColorMutation, SetTextColorCommand, SetTextRotationCommand, SetTextWrapCommand, SetUnderlineCommand, SetVerticalTextAlignCommand, SetWorkbookNameCommand, SetWorkbookNameMutation, SetWorksheetActivateCommand, SetWorksheetActiveOperation, SetWorksheetColWidthMutation, SetWorksheetColWidthMutationFactory, SetWorksheetColumnCountCommand, SetWorksheetColumnCountMutation, SetWorksheetColumnCountUndoMutationFactory, SetWorksheetDefaultStyleCommand, SetWorksheetDefaultStyleMutation, SetWorksheetDefaultStyleMutationFactory, SetWorksheetHideCommand, SetWorksheetHideMutation, SetWorksheetNameCommand, SetWorksheetNameMutation, SetWorksheetOrderCommand, SetWorksheetOrderMutation, SetWorksheetPermissionPointsCommand, SetWorksheetPermissionPointsMutation, SetWorksheetProtectionCommand, SetWorksheetProtectionMutation, SetWorksheetRangeThemeStyleCommand, SetWorksheetRangeThemeStyleMutation, SetWorksheetRangeThemeStyleMutationFactory, SetWorksheetRightToLeftCommand, SetWorksheetRightToLeftMutation, SetWorksheetRowAutoHeightMutation, SetWorksheetRowAutoHeightMutationFactory, SetWorksheetRowCountCommand, SetWorksheetRowCountMutation, SetWorksheetRowCountUndoMutationFactory, SetWorksheetRowHeightMutation, SetWorksheetRowHeightMutationFactory, SetWorksheetRowIsAutoHeightCommand, SetWorksheetRowIsAutoHeightMutation, SetWorksheetRowIsAutoHeightMutationFactory, SetWorksheetShowCommand, SheetCopyDownCommand, SheetCopyRightCommand, SheetInterceptorService, SheetLazyExecuteScheduleService, SheetPermissionCheckController, SheetPermissionInitController, SheetRangeThemeModel, SheetRangeThemeService, SheetSkeletonChangeType, SheetSkeletonService, SheetValueChangeType, SheetsFreezeSyncController, SheetsSelectionsService, SplitDelimiterEnum, SplitTextToColumnsCommand, TextToNumberCommand, ToggleCellCheckboxCommand, ToggleGridlinesCommand, ToggleGridlinesMutation, UniverSheetsPlugin, UnregisterWorksheetRangeThemeStyleCommand, UnregisterWorksheetRangeThemeStyleMutation, VALIDATE_CELL, ViewStateEnum, WorkbookCommentPermission, WorkbookCopyPermission, WorkbookCopySheetPermission, WorkbookCreateProtectPermission, WorkbookCreateSheetPermission, WorkbookDeleteColumnPermission, WorkbookDeleteRowPermission, WorkbookDeleteSheetPermission, WorkbookDuplicatePermission, WorkbookEditablePermission, WorkbookExportPermission, WorkbookHideSheetPermission, WorkbookInsertColumnPermission, WorkbookInsertRowPermission, WorkbookManageCollaboratorPermission, WorkbookMoveSheetPermission, WorkbookPermissionService, WorkbookPrintPermission, WorkbookRecoverHistoryPermission, WorkbookRenameSheetPermission, WorkbookSelectionModel, WorkbookSharePermission, WorkbookViewHistoryPermission, WorkbookViewPermission, WorksheetCopyPermission, WorksheetDeleteColumnPermission, WorksheetDeleteProtectionPermission, WorksheetDeleteRowPermission, WorksheetEditExtraObjectPermission, WorksheetEditPermission, WorksheetFilterPermission, WorksheetInsertColumnPermission, WorksheetInsertHyperlinkPermission, WorksheetInsertRowPermission, WorksheetManageCollaboratorPermission, WorksheetPermissionService, WorksheetPivotTablePermission, WorksheetProtectionPointModel, WorksheetProtectionRuleModel, WorksheetSelectProtectedCellsPermission, WorksheetSelectUnProtectedCellsPermission, WorksheetSetCellStylePermission, WorksheetSetCellValuePermission, WorksheetSetColumnStylePermission, WorksheetSetRowStylePermission, WorksheetSortPermission, WorksheetViewPermission, ZebraCrossingCacheController, addMergeCellsUtil, adjustRangeOnMutation, alignToMergedCellsBorders, attachPrimaryWithCoord, attachRangeWithCoord, attachSelectionWithCoord, baseProtectionActions, checkCellValueType, checkRangesEditablePermission, convertPositionCellToSheetOverGrid, convertPositionSheetOverGridToAbsolute, convertPrimaryWithCoordToPrimary, convertSelectionDataToRange, copyRangeStyles, countCells, createTopMatrixFromMatrix, createTopMatrixFromRanges, defaultLargeSheetOperationConfig, defaultWorkbookPermissionPoints, defaultWorksheetPermissionPoint, deserializeListOptions, discreteRangeToRange, expandToContinuousRange, factoryRemoveNumfmtUndoMutation, factorySetNumfmtUndoMutation, findAllRectangle, findFirstNonEmptyCell, followSelectionOperation, generateNullCell, generateNullCellValue, getAddMergeMutationRangeByType, getAllRangePermissionPoint, getAllWorkbookPermissionPoint, getAllWorksheetPermissionPoint, getAllWorksheetPermissionPointByPointPanel, getCellAtRowCol, getCellType, getCellValue, getClearContentMutationParamForRange, getClearContentMutationParamsForRanges, getDefaultRangePermission, getInsertRangeMutations, getMoveRangeCommandMutations, getMoveRangeUndoRedoMutations, getNextPrimaryCell, getPrimaryForRange, getRemoveRangeMutations, getSelectionsService, getSeparateEffectedRangesOnCommand, getSheetCommandTarget, getSheetCommandTargetWorkbook, getSheetMutationTarget, getSkeletonChangedEffectedRange, getValueChangedEffectedRange, getVisibleRanges, handleBaseInsertRange, handleBaseMoveRowsCols, handleBaseRemoveRange, handleCommonDefaultRangeChangeWithEffectRefCommands, handleCommonRangeChangeWithEffectRefCommandsSkipNoInterests, handleDefaultRangeChangeWithEffectRefCommands, handleDefaultRangeChangeWithEffectRefCommandsSkipNoInterests, handleDeleteRangeMoveLeft, handleDeleteRangeMoveUp, handleDeleteRangeMutation, handleIRemoveCol, handleIRemoveRow, handleInsertCol, handleInsertRangeMoveDown, handleInsertRangeMoveRight, handleInsertRangeMutation, handleInsertRow, handleMoveCols, handleMoveRange, handleMoveRows, isCellImage, isSingleCellSelection, prepareSetRangeValuesMutation, rangeMerge, rangeToDiscreteRange, rotateRange, runRefRangeMutations, serializeListOptions, setEndForRange, splitRangeText, transformCellsToRange, validateDefinedName };
21525
+ export { AFFECT_LAYOUT_STYLES, AFTER_CELL_EDIT, AUTO_FILL_APPLY_TYPE, AUTO_FILL_DATA_TYPE, AUTO_FILL_HOOK_TYPE, AddMergeRedoSelectionsOperationFactory, AddMergeUndoMutationFactory, AddMergeUndoSelectionsOperationFactory, AddRangeProtectionCommand, AddRangeProtectionMutation, AddRangeThemeMutation, AddWorksheetMergeAllCommand, AddWorksheetMergeCommand, AddWorksheetMergeHorizontalCommand, AddWorksheetMergeMutation, AddWorksheetMergeVerticalCommand, AddWorksheetProtectionCommand, AddWorksheetProtectionMutation, AppendRowCommand, AutoClearContentCommand, AutoFillCommand, AutoFillController, AutoFillRules, AutoFillService, AutoFillTools, BEFORE_CELL_EDIT, BorderStyleManagerService, COMMAND_LISTENER_SKELETON_CHANGE, COMMAND_LISTENER_VALUE_CHANGE, CalculateResultApplyController, CancelFrozenCommand, CancelMarkDirtyRowAutoHeightOperation, ClearSelectionAllCommand, ClearSelectionContentCommand, ClearSelectionFormatCommand, CopySheetCommand, CopyWorksheetEndMutation, DISABLE_NORMAL_SELECTIONS, DefinedNameDataController, DeleteRangeMoveLeftCommand, DeleteRangeMoveUpCommand, DeleteRangeProtectionCommand, DeleteRangeProtectionMutation, DeleteWorksheetProtectionCommand, DeleteWorksheetProtectionMutation, DeleteWorksheetRangeThemeStyleCommand, DeleteWorksheetRangeThemeStyleMutation, DeleteWorksheetRangeThemeStyleMutationFactory, DeltaColumnWidthCommand, DeltaRowHeightCommand, EditStateEnum, EffectRefRangId, EmptyMutation, ExclusiveRangeService, FactoryAddRangeProtectionMutation, FactoryDeleteRangeProtectionMutation, FactorySetRangeProtectionMutation, IAutoFillService, IExclusiveRangeService, INTERCEPTOR_POINT, INumfmtService, IRefSelectionsService, InsertColAfterCommand, InsertColBeforeCommand, InsertColByRangeCommand, InsertColCommand, InsertColMutation, InsertColMutationUndoFactory, InsertDefinedNameCommand, InsertMultiColsLeftCommand, InsertMultiColsRightCommand, InsertMultiRowsAboveCommand, InsertMultiRowsAfterCommand, InsertRangeMoveDownCommand, InsertRangeMoveRightCommand, InsertRowAfterCommand, InsertRowBeforeCommand, InsertRowByRangeCommand, InsertRowCommand, InsertRowMutation, InsertRowMutationUndoFactory, InsertSheetCommand, InsertSheetMutation, InsertSheetUndoMutationFactory, InterceptCellContentPriority, MAX_CELL_PER_SHEET_KEY, MERGE_CELL_INTERCEPTOR_CHECK, MarkDirtyFilterChangeMutation, MarkDirtyRowAutoHeightOperation, MergeCellController, MoveColsCommand, MoveColsMutation, MoveColsMutationUndoFactory, MoveRangeCommand, MoveRangeMutation, MoveRowsCommand, MoveRowsMutation, MoveRowsMutationUndoFactory, NumfmtService, OperatorType, PermissionPointsDefinitions, REF_SELECTIONS_ENABLED, RangeMergeUtil, RangeProtectionCache, RangeProtectionPermissionDeleteProtectionPoint, RangeProtectionPermissionEditPoint, RangeProtectionPermissionManageCollaPoint, RangeProtectionPermissionViewPoint, RangeProtectionRefRangeService, RangeProtectionRenderModel, RangeProtectionRuleModel, RangeProtectionService, RangeThemeStyle, RefRangeService, RefSelectionsService, RefillCommand, RegisterWorksheetRangeThemeStyleCommand, RegisterWorksheetRangeThemeStyleMutation, RemoveColByRangeCommand, RemoveColCommand, RemoveColMutation, RemoveDefinedNameCommand, RemoveMergeUndoMutationFactory, RemoveNumfmtMutation, RemoveRangeThemeMutation, RemoveRowByRangeCommand, RemoveRowCommand, RemoveRowMutation, RemoveSheetCommand, RemoveSheetMutation, RemoveSheetUndoMutationFactory, RemoveWorksheetMergeCommand, RemoveWorksheetMergeMutation, ReorderRangeCommand, ReorderRangeMutation, ReorderRangeUndoMutationFactory, ResetBackgroundColorCommand, ResetTextColorCommand, SCOPE_WORKBOOK_VALUE_DEFINED_NAME, SELECTIONS_ENABLED, SELECTION_CONTROL_BORDER_BUFFER_COLOR, SELECTION_CONTROL_BORDER_BUFFER_WIDTH, SHEETS_PLUGIN_CONFIG_KEY, ScrollToCellOperation, SelectRangeCommand, SelectionMoveType, SetBackgroundColorCommand, SetBoldCommand, SetBorderBasicCommand, SetBorderColorCommand, SetBorderCommand, SetBorderPositionCommand, SetBorderStyleCommand, SetColDataCommand, SetColDataMutation, SetColDataMutationFactory, SetColHiddenCommand, SetColHiddenMutation, SetColVisibleMutation, SetColWidthCommand, SetDefinedNameCommand, SetFontFamilyCommand, SetFontSizeCommand, SetFrozenCommand, SetFrozenMutation, SetFrozenMutationFactory, SetGridlinesColorCommand, SetGridlinesColorMutation, SetHorizontalTextAlignCommand, SetItalicCommand, SetNumfmtMutation, SetOverlineCommand, SetProtectionCommand, SetRangeCustomMetadataCommand, SetRangeProtectionMutation, SetRangeThemeMutation, SetRangeValuesCommand, SetRangeValuesMutation, SetRangeValuesUndoMutationFactory, SetRowDataCommand, SetRowDataMutation, SetRowDataMutationFactory, SetRowHeightCommand, SetRowHiddenCommand, SetRowHiddenMutation, SetRowVisibleMutation, SetSelectedColsVisibleCommand, SetSelectedRowsVisibleCommand, SetSelectionsOperation, SetShrinkToFitCommand, SetSpecificColsVisibleCommand, SetSpecificRowsVisibleCommand, SetStrikeThroughCommand, SetStyleCommand, SetTabColorCommand, SetTabColorMutation, SetTextColorCommand, SetTextRotationCommand, SetTextWrapCommand, SetUnderlineCommand, SetVerticalTextAlignCommand, SetWorkbookCalculationSettingsCommand, SetWorkbookCalculationSettingsMutation, SetWorkbookNameCommand, SetWorkbookNameMutation, SetWorksheetActivateCommand, SetWorksheetActiveOperation, SetWorksheetColWidthMutation, SetWorksheetColWidthMutationFactory, SetWorksheetColumnCountCommand, SetWorksheetColumnCountMutation, SetWorksheetColumnCountUndoMutationFactory, SetWorksheetDefaultStyleCommand, SetWorksheetDefaultStyleMutation, SetWorksheetDefaultStyleMutationFactory, SetWorksheetHideCommand, SetWorksheetHideMutation, SetWorksheetNameCommand, SetWorksheetNameMutation, SetWorksheetOrderCommand, SetWorksheetOrderMutation, SetWorksheetPermissionPointsCommand, SetWorksheetPermissionPointsMutation, SetWorksheetProtectionCommand, SetWorksheetProtectionMutation, SetWorksheetRangeThemeStyleCommand, SetWorksheetRangeThemeStyleMutation, SetWorksheetRangeThemeStyleMutationFactory, SetWorksheetRightToLeftCommand, SetWorksheetRightToLeftMutation, SetWorksheetRowAutoHeightMutation, SetWorksheetRowAutoHeightMutationFactory, SetWorksheetRowCountCommand, SetWorksheetRowCountMutation, SetWorksheetRowCountUndoMutationFactory, SetWorksheetRowHeightMutation, SetWorksheetRowHeightMutationFactory, SetWorksheetRowIsAutoHeightCommand, SetWorksheetRowIsAutoHeightMutation, SetWorksheetRowIsAutoHeightMutationFactory, SetWorksheetShowCommand, SheetCopyDownCommand, SheetCopyRightCommand, SheetInterceptorService, SheetLazyExecuteScheduleService, SheetPermissionCheckController, SheetPermissionInitController, SheetRangeThemeModel, SheetRangeThemeService, SheetSkeletonChangeType, SheetSkeletonService, SheetValueChangeType, SheetsFreezeSyncController, SheetsSelectionsService, SplitDelimiterEnum, SplitTextToColumnsCommand, TextToNumberCommand, ToggleCellCheckboxCommand, ToggleGridlinesCommand, ToggleGridlinesMutation, UniverSheetsPlugin, UnregisterWorksheetRangeThemeStyleCommand, UnregisterWorksheetRangeThemeStyleMutation, VALIDATE_CELL, ViewStateEnum, WorkbookCommentPermission, WorkbookCopyPermission, WorkbookCopySheetPermission, WorkbookCreateProtectPermission, WorkbookCreateSheetPermission, WorkbookDeleteColumnPermission, WorkbookDeleteRowPermission, WorkbookDeleteSheetPermission, WorkbookDuplicatePermission, WorkbookEditablePermission, WorkbookExportPermission, WorkbookHideSheetPermission, WorkbookInsertColumnPermission, WorkbookInsertRowPermission, WorkbookManageCollaboratorPermission, WorkbookMoveSheetPermission, WorkbookPermissionService, WorkbookPrintPermission, WorkbookRecoverHistoryPermission, WorkbookRenameSheetPermission, WorkbookSelectionModel, WorkbookSharePermission, WorkbookViewHistoryPermission, WorkbookViewPermission, WorksheetCopyPermission, WorksheetDeleteColumnPermission, WorksheetDeleteProtectionPermission, WorksheetDeleteRowPermission, WorksheetEditExtraObjectPermission, WorksheetEditPermission, WorksheetFilterPermission, WorksheetInsertColumnPermission, WorksheetInsertHyperlinkPermission, WorksheetInsertRowPermission, WorksheetManageCollaboratorPermission, WorksheetPermissionService, WorksheetPivotTablePermission, WorksheetProtectionPointModel, WorksheetProtectionRuleModel, WorksheetSelectProtectedCellsPermission, WorksheetSelectUnProtectedCellsPermission, WorksheetSetCellStylePermission, WorksheetSetCellValuePermission, WorksheetSetColumnStylePermission, WorksheetSetRowStylePermission, WorksheetSortPermission, WorksheetViewPermission, ZebraCrossingCacheController, addMergeCellsUtil, adjustRangeOnMutation, alignToMergedCellsBorders, attachPrimaryWithCoord, attachRangeWithCoord, attachSelectionWithCoord, baseProtectionActions, checkCellValueType, checkRangesEditablePermission, convertPositionCellToSheetOverGrid, convertPositionSheetOverGridToAbsolute, convertPrimaryWithCoordToPrimary, convertSelectionDataToRange, copyRangeStyles, countCells, createTopMatrixFromMatrix, createTopMatrixFromRanges, defaultLargeSheetOperationConfig, defaultWorkbookPermissionPoints, defaultWorksheetPermissionPoint, deserializeListOptions, discreteRangeToRange, expandToContinuousRange, factoryRemoveNumfmtUndoMutation, factorySetNumfmtUndoMutation, findAllRectangle, findFirstNonEmptyCell, followSelectionOperation, generateNullCell, generateNullCellValue, getAddMergeMutationRangeByType, getAllRangePermissionPoint, getAllWorkbookPermissionPoint, getAllWorksheetPermissionPoint, getAllWorksheetPermissionPointByPointPanel, getCellAtRowCol, getCellType, getCellValue, getClearContentMutationParamForRange, getClearContentMutationParamsForRanges, getDefaultRangePermission, getInsertRangeMutations, getMoveRangeCommandMutations, getMoveRangeUndoRedoMutations, getNextPrimaryCell, getPrimaryForRange, getRemoveRangeMutations, getSelectionsService, getSeparateEffectedRangesOnCommand, getSheetCommandTarget, getSheetCommandTargetWorkbook, getSheetMutationTarget, getSkeletonChangedEffectedRange, getValueChangedEffectedRange, getVisibleRanges, handleBaseInsertRange, handleBaseMoveRowsCols, handleBaseRemoveRange, handleCommonDefaultRangeChangeWithEffectRefCommands, handleCommonRangeChangeWithEffectRefCommandsSkipNoInterests, handleDefaultRangeChangeWithEffectRefCommands, handleDefaultRangeChangeWithEffectRefCommandsSkipNoInterests, handleDeleteRangeMoveLeft, handleDeleteRangeMoveUp, handleDeleteRangeMutation, handleIRemoveCol, handleIRemoveRow, handleInsertCol, handleInsertRangeMoveDown, handleInsertRangeMoveRight, handleInsertRangeMutation, handleInsertRow, handleMoveCols, handleMoveRange, handleMoveRows, isCellImage, isSingleCellSelection, prepareSetRangeValuesMutation, rangeMerge, rangeToDiscreteRange, rotateRange, runRefRangeMutations, serializeListOptions, setEndForRange, splitRangeText, transformCellsToRange, validateDefinedName };
@@ -13,9 +13,9 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import type { HorizontalAlign, ICommand, IRange, IStyleData, VerticalAlign, WrapStrategy } from '@univerjs/core';
16
+ import type { HorizontalAlign, ICommand, IRange, IStyleData, VerticalAlign } from '@univerjs/core';
17
17
  import type { ISheetCommandSharedParams } from '../utils/interface';
18
- import { BooleanNumber } from '@univerjs/core';
18
+ import { BooleanNumber, WrapStrategy } from '@univerjs/core';
19
19
  export interface IStyleTypeValue<T> {
20
20
  type: keyof IStyleData;
21
21
  value: T | T[][];
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import type { ICommand } from '@univerjs/core';
17
+ import type { ISetWorkbookCalculationSettingsMutationParams } from '../mutations/set-workbook-calculation-settings.mutation';
18
+ export declare const SetWorkbookCalculationSettingsCommand: ICommand<ISetWorkbookCalculationSettingsMutationParams>;
@@ -28,6 +28,8 @@ export interface ISetRangeValuesMutationParams extends IMutationCommonParams {
28
28
  * @default false
29
29
  */
30
30
  isOverrideStyle?: boolean;
31
+ /** Formula identities retained for conditional result application across Worker replay. */
32
+ sourceFormulaData?: IObjectMatrixPrimitiveType<Pick<ICellData, 'f' | 'si'>>;
31
33
  }
32
34
  export interface ISetRangeValuesRangeMutationParams extends ISetRangeValuesMutationParams {
33
35
  range: IRange[];
@@ -37,7 +39,7 @@ export interface ISetRangeValuesRangeMutationParams extends ISetRangeValuesMutat
37
39
  * must travel with the prepared cells; replay installs them and must not allocate replacement IDs.
38
40
  * This does not execute handlers, publish notifications, or own style garbage collection.
39
41
  */
40
- export declare function prepareSetRangeValuesMutation(cells: ObjectMatrix<Nullable<ICellData>>, styles: Styles, params: Pick<ISetRangeValuesMutationParams, 'cellValue' | 'isOverrideStyle'>): {
42
+ export declare function prepareSetRangeValuesMutation(cells: ObjectMatrix<Nullable<ICellData>>, styles: Styles, params: Pick<ISetRangeValuesMutationParams, 'cellValue' | 'isOverrideStyle' | 'sourceFormulaData'>): {
41
43
  before: IObjectMatrixPrimitiveType<Nullable<ICellData>>;
42
44
  after: IObjectMatrixPrimitiveType<Nullable<ICellData>>;
43
45
  styles: Record<string, IStyleData>;