@univerjs/core 1.2.0 → 1.3.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/es/index.js CHANGED
@@ -1670,7 +1670,7 @@ let ThemeColors = /* @__PURE__ */ function(ThemeColors) {
1670
1670
  //#endregion
1671
1671
  //#region package.json
1672
1672
  var name = "@univerjs/core";
1673
- var version = "1.2.0";
1673
+ var version = "1.3.0";
1674
1674
 
1675
1675
  //#endregion
1676
1676
  //#region src/common/array.ts
@@ -15694,10 +15694,10 @@ function getBlockRangeSlice(body, startOffset, endOffset, mode = 0) {
15694
15694
  const { blockRanges = [] } = body;
15695
15695
  const newBlockRanges = [];
15696
15696
  for (const blockRange of blockRanges) {
15697
- const clonedBlockRange = Tools.deepClone(blockRange);
15698
- const { startIndex, endIndex } = clonedBlockRange;
15699
- if (hasStructuralRangeInSlice(startIndex, endIndex, startOffset, endOffset, mode)) newBlockRanges.push({
15700
- ...clonedBlockRange,
15697
+ const { startIndex, endIndex } = blockRange;
15698
+ if (!(mode === 1 ? startIndex >= startOffset && endIndex < endOffset : hasStructuralRangeInSlice(startIndex, endIndex, startOffset, endOffset, mode))) continue;
15699
+ newBlockRanges.push({
15700
+ ...blockRange,
15701
15701
  ...getSlicedStructuralRange(startIndex, endIndex, startOffset, endOffset, mode)
15702
15702
  });
15703
15703
  }
@@ -20154,6 +20154,7 @@ var RichTextBuilder = class RichTextBuilder extends RichTextValue {
20154
20154
  _defineProperty(this, "_trackedRanges", /* @__PURE__ */ new Set());
20155
20155
  _defineProperty(this, "_childHandleRevision", 0);
20156
20156
  this._doc = new DocumentDataModel(data);
20157
+ this._data.body = this._doc.getBody();
20157
20158
  }
20158
20159
  /**
20159
20160
  * Returns editable paragraph handles backed by this detached rich-text builder.
@@ -22485,6 +22486,96 @@ function convertTextRotation(textRotation) {
22485
22486
  };
22486
22487
  }
22487
22488
 
22489
+ //#endregion
22490
+ //#region src/sheets/sheet-dimensions.ts
22491
+ function isValidSheetDimension(value, allowZero = true) {
22492
+ return typeof value === "number" && Number.isFinite(value) && (allowZero ? value >= 0 : value > 0);
22493
+ }
22494
+ function normalizeSheetDimension(value, fallback, allowZero = true) {
22495
+ return isValidSheetDimension(value, allowZero) ? value : fallback;
22496
+ }
22497
+ function isValidColumnDimensions(data) {
22498
+ return (data === null || data === void 0 ? void 0 : data.w) == null || isValidSheetDimension(data.w);
22499
+ }
22500
+ function isValidRowDimensions(data) {
22501
+ return ((data === null || data === void 0 ? void 0 : data.h) == null || isValidSheetDimension(data.h)) && ((data === null || data === void 0 ? void 0 : data.ah) == null || isValidSheetDimension(data.ah));
22502
+ }
22503
+
22504
+ //#endregion
22505
+ //#region src/sheets/sheet-snapshot-utils.ts
22506
+ const DEFAULT_WORKSHEET_ROW_COUNT_KEY = "DEFAULT_WORKSHEET_ROW_COUNT";
22507
+ const DEFAULT_WORKSHEET_ROW_COUNT = 1e3;
22508
+ const DEFAULT_WORKSHEET_COLUMN_COUNT_KEY = "DEFAULT_WORKSHEET_COLUMN_COUNT";
22509
+ const DEFAULT_WORKSHEET_COLUMN_COUNT = 20;
22510
+ const DEFAULT_WORKSHEET_ROW_HEIGHT_KEY = "DEFAULT_WORKSHEET_ROW_HEIGHT";
22511
+ const DEFAULT_WORKSHEET_ROW_HEIGHT = 24;
22512
+ const DEFAULT_WORKSHEET_COLUMN_WIDTH_KEY = "DEFAULT_WORKSHEET_COLUMN_WIDTH";
22513
+ const DEFAULT_WORKSHEET_COLUMN_WIDTH = 88;
22514
+ const DEFAULT_WORKSHEET_ROW_TITLE_WIDTH_KEY = "DEFAULT_WORKSHEET_ROW_TITLE_WIDTH";
22515
+ const DEFAULT_WORKSHEET_ROW_TITLE_WIDTH = 46;
22516
+ const DEFAULT_WORKSHEET_COLUMN_TITLE_HEIGHT_KEY = "DEFAULT_WORKSHEET_COLUMN_TITLE_HEIGHT";
22517
+ const DEFAULT_WORKSHEET_COLUMN_TITLE_HEIGHT = 20;
22518
+ /**
22519
+ * This function is used to merge the user passed in snapshot with the default snapshot
22520
+ * without changing the user's snapshot's reference.
22521
+ *
22522
+ * @param snapshot user passed in snapshot
22523
+ * @returns merged snapshot
22524
+ */
22525
+ function mergeWorksheetSnapshotWithDefault(snapshot) {
22526
+ const defaultSnapshot = {
22527
+ name: "Sheet1",
22528
+ id: "sheet-01",
22529
+ tabColor: "",
22530
+ hidden: 0,
22531
+ rowCount: DEFAULT_WORKSHEET_ROW_COUNT,
22532
+ columnCount: 20,
22533
+ zoomRatio: 1,
22534
+ freeze: {
22535
+ xSplit: 0,
22536
+ ySplit: 0,
22537
+ startRow: -1,
22538
+ startColumn: -1
22539
+ },
22540
+ scrollTop: 0,
22541
+ scrollLeft: 0,
22542
+ defaultColumnWidth: 88,
22543
+ defaultRowHeight: 24,
22544
+ mergeData: [],
22545
+ cellData: {},
22546
+ rowData: {},
22547
+ columnData: {},
22548
+ showGridlines: 1,
22549
+ rowHeader: {
22550
+ width: 46,
22551
+ hidden: 0
22552
+ },
22553
+ columnHeader: {
22554
+ height: 20,
22555
+ hidden: 0
22556
+ },
22557
+ rightToLeft: 0
22558
+ };
22559
+ Object.keys(defaultSnapshot).forEach((_key) => {
22560
+ const key = _key;
22561
+ if (typeof snapshot[key] === "undefined") snapshot[key] = defaultSnapshot[key];
22562
+ });
22563
+ const freeze = snapshot.freeze;
22564
+ freeze.xSplit = freeze.xSplit ?? defaultSnapshot.freeze.xSplit;
22565
+ freeze.ySplit = freeze.ySplit ?? defaultSnapshot.freeze.ySplit;
22566
+ freeze.startRow = freeze.ySplit === 0 ? defaultSnapshot.freeze.startRow : freeze.startRow ?? defaultSnapshot.freeze.startRow;
22567
+ freeze.startColumn = freeze.xSplit === 0 ? defaultSnapshot.freeze.startColumn : freeze.startColumn ?? defaultSnapshot.freeze.startColumn;
22568
+ snapshot.defaultColumnWidth = normalizeSheetDimension(snapshot.defaultColumnWidth, 88, false);
22569
+ snapshot.defaultRowHeight = normalizeSheetDimension(snapshot.defaultRowHeight, 24, false);
22570
+ for (const column of Object.values(snapshot.columnData)) if (column && column.w !== void 0 && !isValidSheetDimension(column.w)) column.w = 0;
22571
+ for (const row of Object.values(snapshot.rowData)) {
22572
+ if (!row) continue;
22573
+ if (row.h !== void 0 && !isValidSheetDimension(row.h)) row.h = 0;
22574
+ if (row.ah !== void 0 && !isValidSheetDimension(row.ah)) delete row.ah;
22575
+ }
22576
+ return snapshot;
22577
+ }
22578
+
22488
22579
  //#endregion
22489
22580
  //#region src/sheets/column-manager.ts
22490
22581
  /**
@@ -22624,7 +22715,9 @@ var ColumnManager = class {
22624
22715
  */
22625
22716
  getColumnWidth(columnPos) {
22626
22717
  var _this$_columnData$col2;
22627
- return ((_this$_columnData$col2 = this._columnData[columnPos]) === null || _this$_columnData$col2 === void 0 ? void 0 : _this$_columnData$col2.w) ?? this._config.defaultColumnWidth;
22718
+ const defaultWidth = normalizeSheetDimension(this._config.defaultColumnWidth, 88, false);
22719
+ const width = (_this$_columnData$col2 = this._columnData[columnPos]) === null || _this$_columnData$col2 === void 0 ? void 0 : _this$_columnData$col2.w;
22720
+ return width === void 0 ? defaultWidth : normalizeSheetDimension(width, 0);
22628
22721
  }
22629
22722
  /**
22630
22723
  * Set the width of column
@@ -22632,6 +22725,7 @@ var ColumnManager = class {
22632
22725
  * @param width width of column
22633
22726
  */
22634
22727
  setColumnWidth(columnPos, width) {
22728
+ if (!isValidSheetDimension(width)) return;
22635
22729
  const column = this._columnData[columnPos];
22636
22730
  if (width === this._config.defaultColumnWidth) {
22637
22731
  if (column) {
@@ -22668,7 +22762,10 @@ var ColumnManager = class {
22668
22762
  }
22669
22763
  for (let c = startColumn; c <= endColumn; c++) {
22670
22764
  const columnData = columnDataInfo === null || columnDataInfo === void 0 ? void 0 : columnDataInfo[c - startColumn];
22671
- if (columnData !== void 0 && columnData !== null && Object.keys(columnData).length > 0) this._columnData[c] = { ...columnData };
22765
+ if (columnData !== void 0 && columnData !== null && Object.keys(columnData).length > 0) {
22766
+ this._columnData[c] = { ...columnData };
22767
+ if (columnData.w !== void 0 && !isValidSheetDimension(columnData.w)) this._columnData[c].w = 0;
22768
+ }
22672
22769
  }
22673
22770
  }
22674
22771
  /**
@@ -23296,13 +23393,14 @@ var RowManager = class {
23296
23393
  getRowHeight(rowPos, count = 1) {
23297
23394
  const { _rowData } = this;
23298
23395
  const config = this._config;
23396
+ const defaultHeight = normalizeSheetDimension(config.defaultRowHeight, 24, false);
23299
23397
  let height = 0;
23300
23398
  for (let i = 0; i < count; i++) {
23301
- const { ia, ah, h = config.defaultRowHeight } = _rowData[i + rowPos] || {
23399
+ const { ia, ah, h = defaultHeight } = _rowData[i + rowPos] || {
23302
23400
  hd: 0,
23303
- h: config.defaultRowHeight
23401
+ h: defaultHeight
23304
23402
  };
23305
- height += (ia == null || ia === 1) && typeof ah === "number" ? ah : h;
23403
+ height += (ia == null || ia === 1) && isValidSheetDimension(ah, false) ? ah : normalizeSheetDimension(h, 0);
23306
23404
  }
23307
23405
  return height;
23308
23406
  }
@@ -23312,6 +23410,7 @@ var RowManager = class {
23312
23410
  * @param height row height
23313
23411
  */
23314
23412
  setRowHeight(rowPos, height) {
23413
+ if (!isValidSheetDimension(height)) return;
23315
23414
  const row = this._rowData[rowPos];
23316
23415
  if (height === this._config.defaultRowHeight) {
23317
23416
  if (row) {
@@ -23352,7 +23451,12 @@ var RowManager = class {
23352
23451
  }
23353
23452
  for (let r = startRow; r <= endRow; r++) {
23354
23453
  const rowData = rowDataInfo === null || rowDataInfo === void 0 ? void 0 : rowDataInfo[r - startRow];
23355
- if (rowData !== void 0 && rowData !== null && Object.keys(rowData).length > 0) this._rowData[r] = { ...rowData };
23454
+ if (rowData !== void 0 && rowData !== null && Object.keys(rowData).length > 0) {
23455
+ this._rowData[r] = { ...rowData };
23456
+ const row = this._rowData[r];
23457
+ if (row.h !== void 0 && !isValidSheetDimension(row.h)) row.h = 0;
23458
+ if (row.ah !== void 0 && !isValidSheetDimension(row.ah)) delete row.ah;
23459
+ }
23356
23460
  }
23357
23461
  }
23358
23462
  /**
@@ -23469,73 +23573,6 @@ var RowManager = class {
23469
23573
  }
23470
23574
  };
23471
23575
 
23472
- //#endregion
23473
- //#region src/sheets/sheet-snapshot-utils.ts
23474
- const DEFAULT_WORKSHEET_ROW_COUNT_KEY = "DEFAULT_WORKSHEET_ROW_COUNT";
23475
- const DEFAULT_WORKSHEET_ROW_COUNT = 1e3;
23476
- const DEFAULT_WORKSHEET_COLUMN_COUNT_KEY = "DEFAULT_WORKSHEET_COLUMN_COUNT";
23477
- const DEFAULT_WORKSHEET_COLUMN_COUNT = 20;
23478
- const DEFAULT_WORKSHEET_ROW_HEIGHT_KEY = "DEFAULT_WORKSHEET_ROW_HEIGHT";
23479
- const DEFAULT_WORKSHEET_ROW_HEIGHT = 24;
23480
- const DEFAULT_WORKSHEET_COLUMN_WIDTH_KEY = "DEFAULT_WORKSHEET_COLUMN_WIDTH";
23481
- const DEFAULT_WORKSHEET_COLUMN_WIDTH = 88;
23482
- const DEFAULT_WORKSHEET_ROW_TITLE_WIDTH_KEY = "DEFAULT_WORKSHEET_ROW_TITLE_WIDTH";
23483
- const DEFAULT_WORKSHEET_ROW_TITLE_WIDTH = 46;
23484
- const DEFAULT_WORKSHEET_COLUMN_TITLE_HEIGHT_KEY = "DEFAULT_WORKSHEET_COLUMN_TITLE_HEIGHT";
23485
- const DEFAULT_WORKSHEET_COLUMN_TITLE_HEIGHT = 20;
23486
- /**
23487
- * This function is used to merge the user passed in snapshot with the default snapshot
23488
- * without changing the user's snapshot's reference.
23489
- *
23490
- * @param snapshot user passed in snapshot
23491
- * @returns merged snapshot
23492
- */
23493
- function mergeWorksheetSnapshotWithDefault(snapshot) {
23494
- const defaultSnapshot = {
23495
- name: "Sheet1",
23496
- id: "sheet-01",
23497
- tabColor: "",
23498
- hidden: 0,
23499
- rowCount: DEFAULT_WORKSHEET_ROW_COUNT,
23500
- columnCount: 20,
23501
- zoomRatio: 1,
23502
- freeze: {
23503
- xSplit: 0,
23504
- ySplit: 0,
23505
- startRow: -1,
23506
- startColumn: -1
23507
- },
23508
- scrollTop: 0,
23509
- scrollLeft: 0,
23510
- defaultColumnWidth: 88,
23511
- defaultRowHeight: 24,
23512
- mergeData: [],
23513
- cellData: {},
23514
- rowData: {},
23515
- columnData: {},
23516
- showGridlines: 1,
23517
- rowHeader: {
23518
- width: 46,
23519
- hidden: 0
23520
- },
23521
- columnHeader: {
23522
- height: 20,
23523
- hidden: 0
23524
- },
23525
- rightToLeft: 0
23526
- };
23527
- Object.keys(defaultSnapshot).forEach((_key) => {
23528
- const key = _key;
23529
- if (typeof snapshot[key] === "undefined") snapshot[key] = defaultSnapshot[key];
23530
- });
23531
- const freeze = snapshot.freeze;
23532
- freeze.xSplit = freeze.xSplit ?? defaultSnapshot.freeze.xSplit;
23533
- freeze.ySplit = freeze.ySplit ?? defaultSnapshot.freeze.ySplit;
23534
- freeze.startRow = freeze.ySplit === 0 ? defaultSnapshot.freeze.startRow : freeze.startRow ?? defaultSnapshot.freeze.startRow;
23535
- freeze.startColumn = freeze.xSplit === 0 ? defaultSnapshot.freeze.startColumn : freeze.startColumn ?? defaultSnapshot.freeze.startColumn;
23536
- return snapshot;
23537
- }
23538
-
23539
23576
  //#endregion
23540
23577
  //#region src/sheets/span-model.ts
23541
23578
  var SpanModel = class extends Disposable {
@@ -27804,17 +27841,18 @@ let SheetSkeleton = class SheetSkeleton extends Skeleton {
27804
27841
  _generateRowMatrixCache(rowCount, rowData, defaultRowHeight) {
27805
27842
  let rowTotalHeight = 0;
27806
27843
  const rowHeightAccumulation = [];
27844
+ const fallbackHeight = normalizeSheetDimension(defaultRowHeight, 24, false);
27807
27845
  const data = rowData;
27808
27846
  for (let r = 0; r < rowCount; r++) {
27809
27847
  var _this$_gapConfig$rowG2;
27810
- let rowHeight = defaultRowHeight;
27848
+ let rowHeight = fallbackHeight;
27811
27849
  if (this.worksheet.getRowFiltered(r)) rowHeight = 0;
27812
27850
  else if (data[r] != null) {
27813
27851
  const rowDataItem = data[r];
27814
27852
  if (!rowDataItem) continue;
27815
- const { h = defaultRowHeight, ah, ia } = rowDataItem;
27816
- if ((ia == null || ia === 1) && typeof ah === "number" && ah > 0) rowHeight = ah;
27817
- else rowHeight = h;
27853
+ const { h = fallbackHeight, ah, ia } = rowDataItem;
27854
+ if ((ia == null || ia === 1) && isValidSheetDimension(ah, false)) rowHeight = ah;
27855
+ else rowHeight = normalizeSheetDimension(h, 0);
27818
27856
  if (rowDataItem.hd === 1) rowHeight = 0;
27819
27857
  }
27820
27858
  const gapSize = ((_this$_gapConfig$rowG2 = this._gapConfig.rowGaps) === null || _this$_gapConfig$rowG2 === void 0 || (_this$_gapConfig$rowG2 = _this$_gapConfig$rowG2[r]) === null || _this$_gapConfig$rowG2 === void 0 ? void 0 : _this$_gapConfig$rowG2.size) ?? 0;
@@ -27833,14 +27871,15 @@ let SheetSkeleton = class SheetSkeleton extends Skeleton {
27833
27871
  _generateColumnMatrixCache(colCount, columnData, defaultColumnWidth) {
27834
27872
  let columnTotalWidth = 0;
27835
27873
  const columnWidthAccumulation = [];
27874
+ const fallbackWidth = normalizeSheetDimension(defaultColumnWidth, 88, false);
27836
27875
  const data = columnData;
27837
27876
  for (let c = 0; c < colCount; c++) {
27838
27877
  var _this$_gapConfig$colG2;
27839
- let columnWidth = defaultColumnWidth;
27878
+ let columnWidth = fallbackWidth;
27840
27879
  if (data[c] != null) {
27841
27880
  const columnDataItem = data[c];
27842
27881
  if (!columnDataItem) continue;
27843
- if (columnDataItem.w != null) columnWidth = columnDataItem.w;
27882
+ if (columnDataItem.w !== void 0) columnWidth = normalizeSheetDimension(columnDataItem.w, 0);
27844
27883
  if (columnDataItem.hd === 1) columnWidth = 0;
27845
27884
  }
27846
27885
  const gapSize = ((_this$_gapConfig$colG2 = this._gapConfig.colGaps) === null || _this$_gapConfig$colG2 === void 0 || (_this$_gapConfig$colG2 = _this$_gapConfig$colG2[c]) === null || _this$_gapConfig$colG2 === void 0 ? void 0 : _this$_gapConfig$colG2.size) ?? 0;
@@ -28849,4 +28888,4 @@ function createUniverInjector(parentInjector, override) {
28849
28888
  installShims();
28850
28889
 
28851
28890
  //#endregion
28852
- export { ABCToNumber, AUTO_HEIGHT_FOR_MERGED_CELLS, AbsoluteRefType, ActionIterator, AlignTypeH, AlignTypeV, ArrangeTypeEnum, AsyncInterceptorManager, AsyncLock, AuthzIoLocalService, AutoFillSeries, BASE_RECORD_ID_FIELD_ID, BASE_RECORD_ID_FIELD_NAME, BORDER_KEYS, BORDER_STYLE_KEYS, BaseConditionalColorOperator, BaseConditionalColorTarget, BaseConditionalDateMode, BaseDataModel, BaseFieldType, BaseFilterConjunction, BaseFilterOperator, BaseHierarchyInvalidReason, BaseRecordLinkRole, BaseSortDirection, BaseViewType, BaselineOffset, BlockType, BooleanNumber, BorderStyleTypes, BorderType, BuildTextUtils, BulletAlignment, COLORS, COLOR_STYLE_KEYS, COMMAND_LOG_EXECUTION_CONFIG_KEY, CanceledError, CellModeEnum, CellValueType, ColorKit, ColorType, ColumnLayoutType, ColumnResponsiveType, ColumnSeparatorType, CommandService, CommandType, CommonHideTypes, ConfigService, ContextService, CopyPasteType, CustomCommandExecutionError, CustomDecorationType, CustomRangeType, DEFAULT_CELL, DEFAULT_DOC, DEFAULT_DOCUMENT_PARAGRAPH_LINE_SPACING, DEFAULT_DOCUMENT_PARAGRAPH_SPACE_ABOVE, DEFAULT_DOCUMENT_PARAGRAPH_SPACE_BELOW, DEFAULT_DOCUMENT_SUB_COMPONENT_ID, DEFAULT_EMPTY_DOCUMENT_VALUE, DEFAULT_NUMBER_FORMAT, DEFAULT_RANGE, DEFAULT_RANGE_ARRAY, DEFAULT_SELECTION, DEFAULT_STYLES, DEFAULT_TEXT_FORMAT, DEFAULT_TEXT_FORMAT_EXCEL, DEFAULT_WORKSHEET_COLUMN_COUNT, DEFAULT_WORKSHEET_COLUMN_COUNT_KEY, DEFAULT_WORKSHEET_COLUMN_TITLE_HEIGHT, DEFAULT_WORKSHEET_COLUMN_TITLE_HEIGHT_KEY, DEFAULT_WORKSHEET_COLUMN_WIDTH, DEFAULT_WORKSHEET_COLUMN_WIDTH_KEY, DEFAULT_WORKSHEET_ROW_COUNT, DEFAULT_WORKSHEET_ROW_COUNT_KEY, DEFAULT_WORKSHEET_ROW_HEIGHT, DEFAULT_WORKSHEET_ROW_HEIGHT_KEY, DEFAULT_WORKSHEET_ROW_TITLE_WIDTH, DEFAULT_WORKSHEET_ROW_TITLE_WIDTH_KEY, DOCS_COMMENT_EDITOR_UNIT_ID_KEY, DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY, DOCS_NORMAL_EDITOR_UNIT_ID_KEY, DOC_DRAWING_PRINTING_COMPONENT_KEY, DOC_RANGE_TYPE, DashStyleType, DataStreamTreeNodeType, DataStreamTreeTokenType, DataValidationErrorStyle, DataValidationImeMode, DataValidationOperator, DataValidationRenderMode, DataValidationStatus, DataValidationType, DateSystem, DeleteDirection, DependentOn, DesktopLogService, DeveloperMetadataVisibility, Dimension, Direction, Disposable, DisposableCollection, DocStyleType, DocumentBlockRangeType, DocumentBlockType, DocumentDataModel, DocumentFlavor, DocxBreakType, DrawingTypeEnum, EDITOR_ACTIVATED, EMU_PER_CSS_PX, EXCEL_1904_OFFSET, EXTENSION_NAMES, ErrorService, EventState, EventSubject, FOCUSING_BOARD, FOCUSING_COMMENT_EDITOR, FOCUSING_COMMON_DRAWINGS, FOCUSING_DOC, FOCUSING_EDITOR_INPUT_FORMULA, FOCUSING_EDITOR_STANDALONE, FOCUSING_FX_BAR_EDITOR, FOCUSING_PANEL_EDITOR, FOCUSING_SHAPE_TEXT_EDITOR, FOCUSING_SHEET, FOCUSING_SLIDE, FOCUSING_UNIT, FOCUSING_UNIVER_EDITOR, FOCUSING_UNIVER_EDITOR_STANDALONE_SINGLE_MODE, FORMULA_EDITOR_ACTIVATED, FilterSelectionMode, FollowNumberWithType, FontItalic, FontStyleType, FontWeight, FormulaType, GridType, HorizontalAlign, IAuthzIoService, ICommandService, IConfigService, IConfirmService, IContextService, IImageIoService, ILocalStorageService, ILogService, IMentionIOService, IPermissionService, IResourceLoaderService, IResourceManagerService, IS_ROW_STYLE_PRECEDE_COLUMN_STYLE, IURLImageService, IUndoRedoService, IUniverInstanceService, ImageCacheMap, ImageSourceType, ImageUploadStatusType, Inject, InjectSelf, Injector, InterceptorEffectEnum, InterceptorManager, InterpolationPointType, json1 as JSON1, JSONX, LOCALE_META, LRUHelper, LRUMap, LifecycleService, LifecycleStages, LifecycleUnreachableError, ListGlyphType, LocalUndoRedoService, LocaleService, LocaleType, LogLevel, LookUp, MAX_COLUMN_COUNT, MAX_ITERATION_COUNT, MAX_ROW_COUNT, MODERN_DOCUMENT_DEFAULT_MARGIN, MODERN_DOCUMENT_WIDTH, MOVE_BUFFER_VALUE, Many, MemoryCursor, MentionIOLocalService, MentionType, ModernDocumentWidthMode, NAMED_STYLE_MAP, NAMED_STYLE_SPACE_MAP, NamedStyleType, NilCommand, NumberUnitType, OBJECT_PERMISSION_CONFIG_KEY, ObjectMatrix, ObjectPermissionRuleModel, ObjectPermissionService, ObjectRelativeFromH, ObjectRelativeFromV, Optional, PADDING_KEYS, PAGE_SIZE, PAPER_TYPES, PARAGRAPH_ID_PREFIX, PRESERVE_INSERTED_PARAGRAPH_IDS, PRESET_LIST_TYPE, PageOrientType, PaperType, ParagraphElementType, ParagraphStyleBuilder, ParagraphStyleValue, PermissionService, PermissionStatus, Plugin, PluginService, PositionedObjectLayoutType, PresetListType, ProtectionType, Quantity, QuickListType, QuickListTypeMap, RANGE_DIRECTION, RANGE_TYPE, RBush, RCDisposable, RESTORE_INSERTED_PARAGRAPH_IDS, RGBA_PAREN, RGB_PAREN, ROTATE_BUFFER_VALUE, RTree, Range, RecordValueType, Rectangle, RediError, RedoCommand, RedoCommandId, RefAlias, RegionService, Registry, RegistryAsMap, RelativeDate, ResourceManagerService, RichTextBuilder, RichTextParagraphBuilder, RichTextRunBuilder, RichTextValue, RxDisposable, SECTION_ID_PREFIX, SHEET_EDITOR_UNITS, SHEET_TEXT_LINE_GAP, STYLE_KEYS, SectionType, Self, SheetSkeleton, SheetTypes, SheetViewModel, Skeleton, SkipSelf, SliceBodyType, SpacingRule, Styles, TEXT_DECORATION_KEYS, TEXT_ROTATION_KEYS, THEME_COLORS, TRADITIONAL_DOCUMENT_DEFAULT_MARGIN, TabStopAlignment, TabStopLeader, TableAlignmentType, TableLayoutType, TableRowHeightRule, TableSizeType, TableTextWrapType, TestConfirmService, TextDecoration, TextDecorationBuilder, TextDirection, TextDirectionType, TextStyleBuilder, TextStyleValue, TextX, TextXActionType, ThemeColorType, ThemeColors, ThemeService, Tools, UndoCommand, UndoCommandId, UnitModel, Univer, UniverInstanceService, UniverInstanceType, UpdateDocsAttributeType, UserManagerService, VerticalAlign, VerticalAlignmentType, WithNew, Workbook, Worksheet, WorksheetHiddenState, WrapStrategy, WrapTextType, addLinkToDocumentModel, afterInitApply, afterTime, allocateBaseFormulaTableName, assertBaseTableRecordIdentity, awaitTime, binSearchFirstGreaterThanTarget, binarySearchArray, bufferDebounceTime, cellToRange, characterSpacingControlType, checkForSubstrings, checkIfMove, checkParagraphHasBullet, checkParagraphHasIndent, checkParagraphHasIndentByStyle, cloneBodyWithFreshParagraphIds, cloneCellData, cloneCellDataMatrix, cloneCellDataWithSpanAndDisplay, cloneParagraphWithId, cloneSectionBreakWithId, cloneValue, cloneWorksheetData, codeToBlob, columnLabelToNumber, composeBody, composeInterceptors, composeStyles, concatMatrixArray, containsInteriorInsertionOffset, containsStreamIndex, convertCellToRange, convertObservableToBehaviorSubject, covertCellValue, covertCellValues, createAsyncInterceptorKey, createBaseFormulaTableNameMap, createBaseFormulaTableReferenceNormalizer, createBaseRecordIdField, createDefaultBaseTableSnapshot, createDefaultUser, createDocumentModelWithStyle, createIdentifier, createInterceptorKey, createInternalEditorID, createParagraphId, createRandomId, createRowColIter, createSectionId, createSheetGapTestConfig, cssPxToEmu, currencySymbols, customNameCharacterCheck, dateKit, debounce, dedupe, dedupeBy, deepCompare, delayAnimationFrame, deleteContent, emuToCssPx, excelDateSerial, excelDateTimePartsToSerial, excelDateTimeSerial, excelSerialToDate, excelSerialToDateTime, excelSerialToDateTimeParts, extractPureTextFromCell, forwardRef, fromCallback, fromEventSubject, generateIntervalsByPoints, generateRandomId, get, getArrayLength, getBaseFormulaTableName, getEmptySnapshot as getBasesEmptySnapshot, getBlockRangeInterval, getBodySlice, getBodySliceForSplitTextXAction, getBodySliceForTextXAction, getBorderStyleType, getCellCoordByIndexSimple, getCellValueType, getCellWithCoordByIndexCore, getColorStyle, getColumnGroupRangeInterval, getCustomBlockIdsInSelections, getCustomBlockInterval, getCustomBlockSlice, getCustomDecorationSlice, getCustomRangeInterval, getCustomRangeSlice, getDateSystemMaxSerial, getDisplayValueFromCell, getEmptySnapshot$1 as getDocsEmptySnapshot, getDocsUpdateBody, getDrawingOrderIndex, getEmptyCell, getExclusiveRangeInterval, getInclusiveRangeInterval, getIntersectRange, getNumfmtLocaleTag, getNumfmtParseValueFilter, getOriginCellValue, getParagraphContentStartOffset, getParagraphContentStartOffsets, getParagraphFollowingBlockOffset, getParagraphsSlice, getPlainText, getRecordValueKey, getReverseDirection, getRichTextEditPath, getSdtBindingKey, getSdtBindingValue, getSectionBreakSlice, getSectionHeaderFooterReferenceKey, getEmptySnapshot$2 as getSheetsEmptySnapshot, getSingleDataStreamChange, getTableCellTokenInterval, getTableRangeInterval, getTableRowTokenInterval, getTableSlice, getTextRunSlice, getTransformOffsetX, getTransformOffsetY, getWorksheetUID, groupBy, handleStyleToString, hashAlgorithm, horizontalLineSegmentsSubtraction, insertMatrixArray, insertTextToContent, intersectsOperationalIntervals, invertColorByHSL, invertColorByMatrix, isAsyncDependencyItem, isAsyncHook, isBaseRecordIdFieldName, isBlackColor, isBooleanString, isCellCoverable, isCellV, isClassDependencyItem, isCommentEditorID, isCtor, isDefaultFormat, isDisposable, isEmptyCell, isFactoryDependencyItem, isFormulaId, isFormulaString, isICellData, isInternalEditorID, isNodeEnv, isNotNullOrUndefined, isNullCell, isNumeric, isPatternEqualWithoutDecimal, isRangesEqual, isRealNum, isSafeNumeric, isSafeUrl, isSameStyleTextRun, isTextFormat, isUnitRangesEqual, isValidBaseRecordId, isValidRange, isValueDependencyItem, isWhiteColor, makeArray, makeCellRangeToRangeData, mapObjectMatrix, merge, mergeIntervals, mergeLocales, mergeOverrideWithDependencies, mergeSets, mergeWith, mergeWorksheetSnapshotWithDefault, migrateBaseFormulaTableNames, mixinClass, moveMatrixArray, moveRangeByOffset, nameCharacterCheck, noop, normalizeBaseFormulaTableName, normalizeBaseFormulaTableReferences, normalizeBody, normalizeDrawingOrderIndex, normalizeInsertedSectionIdsForDocument, normalizeTextRuns, normalizeUrl, normalizeWorkbookCalculationSettings, numberToABC, numberToListABC, api_exports as numfmt, regexp, registerDependencies, remove, repeatStringNumTimes, replaceInDocumentBody, requestImmediateMacroTask, resolveDocumentParagraphStyle, resolveSectionHeaderFooterReference, resolveSectionHeaderFooterReferences, resolveWithBasePath, rotate, searchArray, searchInOrderedArray, selectionToArray, sequence, sequenceAsync, sequenceExecute, sequenceExecuteAsync, set, setDependencies, setWith, shallowEqual, shiftExclusiveRangeOnDelete, shiftExclusiveRangeOnInsert, shiftInclusiveRangeOnDelete, shiftInclusiveRangeOnInsert, skipParseTagNames, sliceMatrixArray, sortRules, sortRulesByDesc, sortRulesFactory, spliceArray, splitIntoGrid, takeAfter, throttle, toDisposable, touchDependencies, updateAttributeByDelete, updateAttributeByInsert, validateDocBodyStructure, validateDocumentStructure, willLoseNumericPrecision };
28891
+ export { ABCToNumber, AUTO_HEIGHT_FOR_MERGED_CELLS, AbsoluteRefType, ActionIterator, AlignTypeH, AlignTypeV, ArrangeTypeEnum, AsyncInterceptorManager, AsyncLock, AuthzIoLocalService, AutoFillSeries, BASE_RECORD_ID_FIELD_ID, BASE_RECORD_ID_FIELD_NAME, BORDER_KEYS, BORDER_STYLE_KEYS, BaseConditionalColorOperator, BaseConditionalColorTarget, BaseConditionalDateMode, BaseDataModel, BaseFieldType, BaseFilterConjunction, BaseFilterOperator, BaseHierarchyInvalidReason, BaseRecordLinkRole, BaseSortDirection, BaseViewType, BaselineOffset, BlockType, BooleanNumber, BorderStyleTypes, BorderType, BuildTextUtils, BulletAlignment, COLORS, COLOR_STYLE_KEYS, COMMAND_LOG_EXECUTION_CONFIG_KEY, CanceledError, CellModeEnum, CellValueType, ColorKit, ColorType, ColumnLayoutType, ColumnResponsiveType, ColumnSeparatorType, CommandService, CommandType, CommonHideTypes, ConfigService, ContextService, CopyPasteType, CustomCommandExecutionError, CustomDecorationType, CustomRangeType, DEFAULT_CELL, DEFAULT_DOC, DEFAULT_DOCUMENT_PARAGRAPH_LINE_SPACING, DEFAULT_DOCUMENT_PARAGRAPH_SPACE_ABOVE, DEFAULT_DOCUMENT_PARAGRAPH_SPACE_BELOW, DEFAULT_DOCUMENT_SUB_COMPONENT_ID, DEFAULT_EMPTY_DOCUMENT_VALUE, DEFAULT_NUMBER_FORMAT, DEFAULT_RANGE, DEFAULT_RANGE_ARRAY, DEFAULT_SELECTION, DEFAULT_STYLES, DEFAULT_TEXT_FORMAT, DEFAULT_TEXT_FORMAT_EXCEL, DEFAULT_WORKSHEET_COLUMN_COUNT, DEFAULT_WORKSHEET_COLUMN_COUNT_KEY, DEFAULT_WORKSHEET_COLUMN_TITLE_HEIGHT, DEFAULT_WORKSHEET_COLUMN_TITLE_HEIGHT_KEY, DEFAULT_WORKSHEET_COLUMN_WIDTH, DEFAULT_WORKSHEET_COLUMN_WIDTH_KEY, DEFAULT_WORKSHEET_ROW_COUNT, DEFAULT_WORKSHEET_ROW_COUNT_KEY, DEFAULT_WORKSHEET_ROW_HEIGHT, DEFAULT_WORKSHEET_ROW_HEIGHT_KEY, DEFAULT_WORKSHEET_ROW_TITLE_WIDTH, DEFAULT_WORKSHEET_ROW_TITLE_WIDTH_KEY, DOCS_COMMENT_EDITOR_UNIT_ID_KEY, DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY, DOCS_NORMAL_EDITOR_UNIT_ID_KEY, DOC_DRAWING_PRINTING_COMPONENT_KEY, DOC_RANGE_TYPE, DashStyleType, DataStreamTreeNodeType, DataStreamTreeTokenType, DataValidationErrorStyle, DataValidationImeMode, DataValidationOperator, DataValidationRenderMode, DataValidationStatus, DataValidationType, DateSystem, DeleteDirection, DependentOn, DesktopLogService, DeveloperMetadataVisibility, Dimension, Direction, Disposable, DisposableCollection, DocStyleType, DocumentBlockRangeType, DocumentBlockType, DocumentDataModel, DocumentFlavor, DocxBreakType, DrawingTypeEnum, EDITOR_ACTIVATED, EMU_PER_CSS_PX, EXCEL_1904_OFFSET, EXTENSION_NAMES, ErrorService, EventState, EventSubject, FOCUSING_BOARD, FOCUSING_COMMENT_EDITOR, FOCUSING_COMMON_DRAWINGS, FOCUSING_DOC, FOCUSING_EDITOR_INPUT_FORMULA, FOCUSING_EDITOR_STANDALONE, FOCUSING_FX_BAR_EDITOR, FOCUSING_PANEL_EDITOR, FOCUSING_SHAPE_TEXT_EDITOR, FOCUSING_SHEET, FOCUSING_SLIDE, FOCUSING_UNIT, FOCUSING_UNIVER_EDITOR, FOCUSING_UNIVER_EDITOR_STANDALONE_SINGLE_MODE, FORMULA_EDITOR_ACTIVATED, FilterSelectionMode, FollowNumberWithType, FontItalic, FontStyleType, FontWeight, FormulaType, GridType, HorizontalAlign, IAuthzIoService, ICommandService, IConfigService, IConfirmService, IContextService, IImageIoService, ILocalStorageService, ILogService, IMentionIOService, IPermissionService, IResourceLoaderService, IResourceManagerService, IS_ROW_STYLE_PRECEDE_COLUMN_STYLE, IURLImageService, IUndoRedoService, IUniverInstanceService, ImageCacheMap, ImageSourceType, ImageUploadStatusType, Inject, InjectSelf, Injector, InterceptorEffectEnum, InterceptorManager, InterpolationPointType, json1 as JSON1, JSONX, LOCALE_META, LRUHelper, LRUMap, LifecycleService, LifecycleStages, LifecycleUnreachableError, ListGlyphType, LocalUndoRedoService, LocaleService, LocaleType, LogLevel, LookUp, MAX_COLUMN_COUNT, MAX_ITERATION_COUNT, MAX_ROW_COUNT, MODERN_DOCUMENT_DEFAULT_MARGIN, MODERN_DOCUMENT_WIDTH, MOVE_BUFFER_VALUE, Many, MemoryCursor, MentionIOLocalService, MentionType, ModernDocumentWidthMode, NAMED_STYLE_MAP, NAMED_STYLE_SPACE_MAP, NamedStyleType, NilCommand, NumberUnitType, OBJECT_PERMISSION_CONFIG_KEY, ObjectMatrix, ObjectPermissionRuleModel, ObjectPermissionService, ObjectRelativeFromH, ObjectRelativeFromV, Optional, PADDING_KEYS, PAGE_SIZE, PAPER_TYPES, PARAGRAPH_ID_PREFIX, PRESERVE_INSERTED_PARAGRAPH_IDS, PRESET_LIST_TYPE, PageOrientType, PaperType, ParagraphElementType, ParagraphStyleBuilder, ParagraphStyleValue, PermissionService, PermissionStatus, Plugin, PluginService, PositionedObjectLayoutType, PresetListType, ProtectionType, Quantity, QuickListType, QuickListTypeMap, RANGE_DIRECTION, RANGE_TYPE, RBush, RCDisposable, RESTORE_INSERTED_PARAGRAPH_IDS, RGBA_PAREN, RGB_PAREN, ROTATE_BUFFER_VALUE, RTree, Range, RecordValueType, Rectangle, RediError, RedoCommand, RedoCommandId, RefAlias, RegionService, Registry, RegistryAsMap, RelativeDate, ResourceManagerService, RichTextBuilder, RichTextParagraphBuilder, RichTextRunBuilder, RichTextValue, RxDisposable, SECTION_ID_PREFIX, SHEET_EDITOR_UNITS, SHEET_TEXT_LINE_GAP, STYLE_KEYS, SectionType, Self, SheetSkeleton, SheetTypes, SheetViewModel, Skeleton, SkipSelf, SliceBodyType, SpacingRule, Styles, TEXT_DECORATION_KEYS, TEXT_ROTATION_KEYS, THEME_COLORS, TRADITIONAL_DOCUMENT_DEFAULT_MARGIN, TabStopAlignment, TabStopLeader, TableAlignmentType, TableLayoutType, TableRowHeightRule, TableSizeType, TableTextWrapType, TestConfirmService, TextDecoration, TextDecorationBuilder, TextDirection, TextDirectionType, TextStyleBuilder, TextStyleValue, TextX, TextXActionType, ThemeColorType, ThemeColors, ThemeService, Tools, UndoCommand, UndoCommandId, UnitModel, Univer, UniverInstanceService, UniverInstanceType, UpdateDocsAttributeType, UserManagerService, VerticalAlign, VerticalAlignmentType, WithNew, Workbook, Worksheet, WorksheetHiddenState, WrapStrategy, WrapTextType, addLinkToDocumentModel, afterInitApply, afterTime, allocateBaseFormulaTableName, assertBaseTableRecordIdentity, awaitTime, binSearchFirstGreaterThanTarget, binarySearchArray, bufferDebounceTime, cellToRange, characterSpacingControlType, checkForSubstrings, checkIfMove, checkParagraphHasBullet, checkParagraphHasIndent, checkParagraphHasIndentByStyle, cloneBodyWithFreshParagraphIds, cloneCellData, cloneCellDataMatrix, cloneCellDataWithSpanAndDisplay, cloneParagraphWithId, cloneSectionBreakWithId, cloneValue, cloneWorksheetData, codeToBlob, columnLabelToNumber, composeBody, composeInterceptors, composeStyles, concatMatrixArray, containsInteriorInsertionOffset, containsStreamIndex, convertCellToRange, convertObservableToBehaviorSubject, covertCellValue, covertCellValues, createAsyncInterceptorKey, createBaseFormulaTableNameMap, createBaseFormulaTableReferenceNormalizer, createBaseRecordIdField, createDefaultBaseTableSnapshot, createDefaultUser, createDocumentModelWithStyle, createIdentifier, createInterceptorKey, createInternalEditorID, createParagraphId, createRandomId, createRowColIter, createSectionId, createSheetGapTestConfig, cssPxToEmu, currencySymbols, customNameCharacterCheck, dateKit, debounce, dedupe, dedupeBy, deepCompare, delayAnimationFrame, deleteContent, emuToCssPx, excelDateSerial, excelDateTimePartsToSerial, excelDateTimeSerial, excelSerialToDate, excelSerialToDateTime, excelSerialToDateTimeParts, extractPureTextFromCell, forwardRef, fromCallback, fromEventSubject, generateIntervalsByPoints, generateRandomId, get, getArrayLength, getBaseFormulaTableName, getEmptySnapshot as getBasesEmptySnapshot, getBlockRangeInterval, getBodySlice, getBodySliceForSplitTextXAction, getBodySliceForTextXAction, getBorderStyleType, getCellCoordByIndexSimple, getCellValueType, getCellWithCoordByIndexCore, getColorStyle, getColumnGroupRangeInterval, getCustomBlockIdsInSelections, getCustomBlockInterval, getCustomBlockSlice, getCustomDecorationSlice, getCustomRangeInterval, getCustomRangeSlice, getDateSystemMaxSerial, getDisplayValueFromCell, getEmptySnapshot$1 as getDocsEmptySnapshot, getDocsUpdateBody, getDrawingOrderIndex, getEmptyCell, getExclusiveRangeInterval, getInclusiveRangeInterval, getIntersectRange, getNumfmtLocaleTag, getNumfmtParseValueFilter, getOriginCellValue, getParagraphContentStartOffset, getParagraphContentStartOffsets, getParagraphFollowingBlockOffset, getParagraphsSlice, getPlainText, getRecordValueKey, getReverseDirection, getRichTextEditPath, getSdtBindingKey, getSdtBindingValue, getSectionBreakSlice, getSectionHeaderFooterReferenceKey, getEmptySnapshot$2 as getSheetsEmptySnapshot, getSingleDataStreamChange, getTableCellTokenInterval, getTableRangeInterval, getTableRowTokenInterval, getTableSlice, getTextRunSlice, getTransformOffsetX, getTransformOffsetY, getWorksheetUID, groupBy, handleStyleToString, hashAlgorithm, horizontalLineSegmentsSubtraction, insertMatrixArray, insertTextToContent, intersectsOperationalIntervals, invertColorByHSL, invertColorByMatrix, isAsyncDependencyItem, isAsyncHook, isBaseRecordIdFieldName, isBlackColor, isBooleanString, isCellCoverable, isCellV, isClassDependencyItem, isCommentEditorID, isCtor, isDefaultFormat, isDisposable, isEmptyCell, isFactoryDependencyItem, isFormulaId, isFormulaString, isICellData, isInternalEditorID, isNodeEnv, isNotNullOrUndefined, isNullCell, isNumeric, isPatternEqualWithoutDecimal, isRangesEqual, isRealNum, isSafeNumeric, isSafeUrl, isSameStyleTextRun, isTextFormat, isUnitRangesEqual, isValidBaseRecordId, isValidColumnDimensions, isValidRange, isValidRowDimensions, isValidSheetDimension, isValueDependencyItem, isWhiteColor, makeArray, makeCellRangeToRangeData, mapObjectMatrix, merge, mergeIntervals, mergeLocales, mergeOverrideWithDependencies, mergeSets, mergeWith, mergeWorksheetSnapshotWithDefault, migrateBaseFormulaTableNames, mixinClass, moveMatrixArray, moveRangeByOffset, nameCharacterCheck, noop, normalizeBaseFormulaTableName, normalizeBaseFormulaTableReferences, normalizeBody, normalizeDrawingOrderIndex, normalizeInsertedSectionIdsForDocument, normalizeTextRuns, normalizeUrl, normalizeWorkbookCalculationSettings, numberToABC, numberToListABC, api_exports as numfmt, regexp, registerDependencies, remove, repeatStringNumTimes, replaceInDocumentBody, requestImmediateMacroTask, resolveDocumentParagraphStyle, resolveSectionHeaderFooterReference, resolveSectionHeaderFooterReferences, resolveWithBasePath, rotate, searchArray, searchInOrderedArray, selectionToArray, sequence, sequenceAsync, sequenceExecute, sequenceExecuteAsync, set, setDependencies, setWith, shallowEqual, shiftExclusiveRangeOnDelete, shiftExclusiveRangeOnInsert, shiftInclusiveRangeOnDelete, shiftInclusiveRangeOnInsert, skipParseTagNames, sliceMatrixArray, sortRules, sortRulesByDesc, sortRulesFactory, spliceArray, splitIntoGrid, takeAfter, throttle, toDisposable, touchDependencies, updateAttributeByDelete, updateAttributeByInsert, validateDocBodyStructure, validateDocumentStructure, willLoseNumericPrecision };