@univerjs/core 1.0.0-alpha.0 → 1.0.0-alpha.1

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
@@ -606,10 +606,9 @@ function diffArrays(oneArray, twoArray) {
606
606
  }
607
607
  function diffObject(oneObject, twoObject) {
608
608
  const oneKeys = Object.keys(oneObject);
609
- const twoKeys = Object.keys(twoObject);
610
- if (oneKeys.length !== twoKeys.length) return false;
609
+ if (oneKeys.length !== Object.keys(twoObject).length) return false;
611
610
  for (const key of oneKeys) {
612
- if (!twoKeys.includes(key)) return false;
611
+ if (!Object.prototype.propertyIsEnumerable.call(twoObject, key)) return false;
613
612
  const oneValue = oneObject[key];
614
613
  const twoValue = twoObject[key];
615
614
  if (!isValueEqual(oneValue, twoValue)) return false;
@@ -753,11 +752,9 @@ var Tools = class Tools {
753
752
  return clone;
754
753
  }
755
754
  if (this.isObject(value)) {
755
+ const source = value;
756
756
  const clone = {};
757
- Object.keys(value).forEach((key) => {
758
- const item = value[key];
759
- clone[key] = Tools.deepClone(item);
760
- });
757
+ for (const key in source) if (Object.prototype.hasOwnProperty.call(source, key)) clone[key] = Tools.deepClone(source[key]);
761
758
  Object.setPrototypeOf(clone, Object.getPrototypeOf(value));
762
759
  return clone;
763
760
  }
@@ -2892,6 +2889,18 @@ function generateRandomId(n = 21, alphabet) {
2892
2889
 
2893
2890
  //#endregion
2894
2891
  //#region src/types/interfaces/i-document-data.ts
2892
+ /**
2893
+ * The top-level block types in a document body.
2894
+ * These block types are used to represent the structure of the document and can be used to identify different sections or elements within the document.
2895
+ */
2896
+ let DocumentBlockType = /* @__PURE__ */ function(DocumentBlockType) {
2897
+ DocumentBlockType["PARAGRAPH"] = "paragraph";
2898
+ DocumentBlockType["BLOCK_RANGE"] = "blockRange";
2899
+ DocumentBlockType["TABLE"] = "table";
2900
+ DocumentBlockType["CUSTOM_BLOCK"] = "customBlock";
2901
+ DocumentBlockType["COLUMN_GROUP"] = "columnGroup";
2902
+ return DocumentBlockType;
2903
+ }({});
2895
2904
  let DocStyleType = /* @__PURE__ */ function(DocStyleType) {
2896
2905
  DocStyleType[DocStyleType["character"] = 0] = "character";
2897
2906
  DocStyleType[DocStyleType["paragraph"] = 1] = "paragraph";
@@ -3170,6 +3179,16 @@ let TableTextWrapType = /* @__PURE__ */ function(TableTextWrapType) {
3170
3179
  TableTextWrapType[TableTextWrapType["WRAP"] = 1] = "WRAP";
3171
3180
  return TableTextWrapType;
3172
3181
  }({});
3182
+ let ColumnLayoutType = /* @__PURE__ */ function(ColumnLayoutType) {
3183
+ ColumnLayoutType["FIXED"] = "fixed";
3184
+ ColumnLayoutType["AUTO"] = "auto";
3185
+ return ColumnLayoutType;
3186
+ }({});
3187
+ let ColumnResponsiveType = /* @__PURE__ */ function(ColumnResponsiveType) {
3188
+ ColumnResponsiveType["STACK"] = "stack";
3189
+ ColumnResponsiveType["SHRINK"] = "shrink";
3190
+ return ColumnResponsiveType;
3191
+ }({});
3173
3192
  let TableRowHeightRule = /* @__PURE__ */ function(TableRowHeightRule) {
3174
3193
  TableRowHeightRule[TableRowHeightRule["AUTO"] = 0] = "AUTO";
3175
3194
  TableRowHeightRule[TableRowHeightRule["AT_LEAST"] = 1] = "AT_LEAST";
@@ -3789,6 +3808,7 @@ function getEmptySnapshot$1(unitID = generateRandomId(6), locale = "enUS", title
3789
3808
  textRuns: [],
3790
3809
  customBlocks: [],
3791
3810
  tables: [],
3811
+ columnGroups: [],
3792
3812
  blockRanges: [],
3793
3813
  customRanges: [],
3794
3814
  customDecorations: [],
@@ -9256,7 +9276,7 @@ var RefAlias = class {
9256
9276
  setValue(key, attr, value) {
9257
9277
  const item = this.getValue(key);
9258
9278
  if (item) {
9259
- if (Object.keys(item).includes(attr)) item[attr] = value;
9279
+ if (Object.prototype.hasOwnProperty.call(item, attr)) item[attr] = value;
9260
9280
  }
9261
9281
  }
9262
9282
  deleteValue(key, keyGroup) {
@@ -9631,7 +9651,7 @@ function insertTables(body, insertBody, textLength, currentIndex) {
9631
9651
  for (let i = 0, len = tables.length; i < len; i++) {
9632
9652
  const table = tables[i];
9633
9653
  const { startIndex, endIndex } = table;
9634
- if (startIndex > currentIndex) {
9654
+ if (startIndex >= currentIndex) {
9635
9655
  table.startIndex += textLength;
9636
9656
  table.endIndex += textLength;
9637
9657
  } else if (endIndex > currentIndex) table.endIndex += textLength;
@@ -9647,6 +9667,30 @@ function insertTables(body, insertBody, textLength, currentIndex) {
9647
9667
  tables.sort(sortRulesFactory("startIndex"));
9648
9668
  }
9649
9669
  }
9670
+ function insertColumnGroups(body, insertBody, textLength, currentIndex) {
9671
+ var _insertBody$columnGro;
9672
+ if (!body.columnGroups && !((_insertBody$columnGro = insertBody.columnGroups) === null || _insertBody$columnGro === void 0 ? void 0 : _insertBody$columnGro.length)) return;
9673
+ if (!body.columnGroups) body.columnGroups = [];
9674
+ const { columnGroups } = body;
9675
+ for (let i = 0, len = columnGroups.length; i < len; i++) {
9676
+ const columnGroup = columnGroups[i];
9677
+ const { startIndex, endIndex } = columnGroup;
9678
+ if (startIndex >= currentIndex) {
9679
+ columnGroup.startIndex += textLength;
9680
+ columnGroup.endIndex += textLength;
9681
+ } else if (endIndex >= currentIndex) columnGroup.endIndex += textLength;
9682
+ }
9683
+ const insertColumnGroups = insertBody.columnGroups;
9684
+ if (insertColumnGroups) {
9685
+ for (let i = 0, len = insertColumnGroups.length; i < len; i++) {
9686
+ const columnGroup = insertColumnGroups[i];
9687
+ columnGroup.startIndex += currentIndex;
9688
+ columnGroup.endIndex += currentIndex;
9689
+ }
9690
+ columnGroups.push(...insertColumnGroups);
9691
+ columnGroups.sort(sortRulesFactory("startIndex"));
9692
+ }
9693
+ }
9650
9694
  function insertBlockRanges(body, insertBody, textLength, currentIndex) {
9651
9695
  var _insertBody$blockRang;
9652
9696
  if (!body.blockRanges && !((_insertBody$blockRang = insertBody.blockRanges) === null || _insertBody$blockRang === void 0 ? void 0 : _insertBody$blockRang.length)) return;
@@ -9978,6 +10022,39 @@ function deleteTables(body, textLength, currentIndex) {
9978
10022
  }
9979
10023
  return removeTables;
9980
10024
  }
10025
+ function deleteColumnGroups(body, textLength, currentIndex) {
10026
+ const { columnGroups } = body;
10027
+ const startIndex = currentIndex;
10028
+ const endIndex = currentIndex + textLength - 1;
10029
+ const removeColumnGroups = [];
10030
+ if (columnGroups) {
10031
+ const newColumnGroups = [];
10032
+ for (let i = 0, len = columnGroups.length; i < len; i++) {
10033
+ const columnGroup = columnGroups[i];
10034
+ const { startIndex: st, endIndex: ed } = columnGroup;
10035
+ if (startIndex <= st && endIndex >= ed) {
10036
+ removeColumnGroups.push({
10037
+ ...columnGroup,
10038
+ startIndex: st - currentIndex,
10039
+ endIndex: ed - currentIndex
10040
+ });
10041
+ continue;
10042
+ } else if (st <= startIndex && ed >= endIndex) {
10043
+ const segments = horizontalLineSegmentsSubtraction(st, ed, startIndex, endIndex);
10044
+ if (segments.length === 0) continue;
10045
+ columnGroup.startIndex = segments[0];
10046
+ columnGroup.endIndex = segments[1];
10047
+ if (columnGroup.startIndex === columnGroup.endIndex) continue;
10048
+ } else if (endIndex < st) {
10049
+ columnGroup.startIndex -= textLength;
10050
+ columnGroup.endIndex -= textLength;
10051
+ }
10052
+ newColumnGroups.push(columnGroup);
10053
+ }
10054
+ body.columnGroups = newColumnGroups;
10055
+ }
10056
+ return removeColumnGroups;
10057
+ }
9981
10058
  function deleteCustomRanges(body, textLength, currentIndex) {
9982
10059
  const { customRanges } = body;
9983
10060
  const startIndex = currentIndex;
@@ -10503,6 +10580,7 @@ function updateAttribute(body, updateBody, textLength, currentIndex, coverType)
10503
10580
  sectionBreaks: updateSectionBreaks(body, updateBody, textLength, currentIndex, coverType),
10504
10581
  customBlocks: updateCustomBlocks(body, updateBody, textLength, currentIndex, coverType),
10505
10582
  tables: updateTables(body, updateBody, textLength, currentIndex, coverType),
10583
+ columnGroups: updateColumnGroups(body, updateBody, textLength, currentIndex, coverType),
10506
10584
  blockRanges: updateBlockRanges(body, updateBody, textLength, currentIndex, coverType),
10507
10585
  customRanges: updateCustomRanges(body, updateBody, textLength, currentIndex, coverType),
10508
10586
  customDecorations: updateCustomDecorations(body, updateBody, textLength, currentIndex, coverType)
@@ -10749,6 +10827,38 @@ function updateTables(body, updateBody, textLength, currentIndex, coverType) {
10749
10827
  insertTables(body, updateBody, textLength, currentIndex);
10750
10828
  return removeTables;
10751
10829
  }
10830
+ function updateColumnGroups(body, updateBody, textLength, currentIndex, coverType) {
10831
+ const { columnGroups } = body;
10832
+ const { columnGroups: updateDataColumnGroups } = updateBody;
10833
+ if (columnGroups == null || updateDataColumnGroups == null) return;
10834
+ const removeColumnGroups = deleteColumnGroups(body, textLength, currentIndex);
10835
+ if (coverType !== 1) {
10836
+ const newUpdateColumnGroups = [];
10837
+ for (const updateColumnGroup of updateDataColumnGroups) {
10838
+ const { startIndex: updateStartIndex, endIndex: updateEndIndex } = updateColumnGroup;
10839
+ let splitUpdateColumnGroups = [];
10840
+ for (const removeColumnGroup of removeColumnGroups) {
10841
+ const { startIndex: removeStartIndex, endIndex: removeEndIndex } = removeColumnGroup;
10842
+ if (removeStartIndex >= updateStartIndex && removeEndIndex <= updateEndIndex) {
10843
+ if (coverType === 0) splitUpdateColumnGroups.push({
10844
+ ...removeColumnGroup,
10845
+ ...updateColumnGroup
10846
+ });
10847
+ else splitUpdateColumnGroups.push({
10848
+ ...updateColumnGroup,
10849
+ ...removeColumnGroup
10850
+ });
10851
+ break;
10852
+ }
10853
+ }
10854
+ newUpdateColumnGroups.push(...splitUpdateColumnGroups);
10855
+ splitUpdateColumnGroups = [];
10856
+ }
10857
+ updateBody.columnGroups = newUpdateColumnGroups;
10858
+ }
10859
+ insertColumnGroups(body, updateBody, textLength, currentIndex);
10860
+ return removeColumnGroups;
10861
+ }
10752
10862
  function updateBlockRanges(body, updateBody, textLength, currentIndex, coverType) {
10753
10863
  const { blockRanges } = body;
10754
10864
  const { blockRanges: updateDataBlockRanges } = updateBody;
@@ -10900,6 +11010,20 @@ function getBlockRangeSlice(body, startOffset, endOffset) {
10900
11010
  }
10901
11011
  return newBlockRanges;
10902
11012
  }
11013
+ function getColumnGroupSlice(body, startOffset, endOffset) {
11014
+ const { columnGroups = [] } = body;
11015
+ const newColumnGroups = [];
11016
+ for (const columnGroup of columnGroups) {
11017
+ const clonedColumnGroup = Tools.deepClone(columnGroup);
11018
+ const { startIndex, endIndex } = clonedColumnGroup;
11019
+ if (startIndex >= startOffset && endIndex < endOffset) newColumnGroups.push({
11020
+ ...clonedColumnGroup,
11021
+ startIndex: startIndex - startOffset,
11022
+ endIndex: endIndex - startOffset
11023
+ });
11024
+ }
11025
+ return newColumnGroups;
11026
+ }
10903
11027
  function getParagraphsSlice(body, startOffset, endOffset, type = 1) {
10904
11028
  const { paragraphs = [] } = body;
10905
11029
  const newParagraphs = [];
@@ -10962,6 +11086,8 @@ function getBodySlice(body, startOffset, endOffset, returnEmptyArray = true, typ
10962
11086
  if (newTables.length) docBody.tables = newTables;
10963
11087
  const newBlockRanges = getBlockRangeSlice(body, startOffset, endOffset);
10964
11088
  if (newBlockRanges.length) docBody.blockRanges = newBlockRanges;
11089
+ const newColumnGroups = getColumnGroupSlice(body, startOffset, endOffset);
11090
+ if (newColumnGroups.length) docBody.columnGroups = newColumnGroups;
10965
11091
  docBody.paragraphs = getParagraphsSlice(body, startOffset, endOffset, type);
10966
11092
  if (type === 1) {
10967
11093
  const customDecorations = getCustomDecorationSlice(body, startOffset, endOffset);
@@ -10975,7 +11101,7 @@ function getBodySlice(body, startOffset, endOffset, returnEmptyArray = true, typ
10975
11101
  return docBody;
10976
11102
  }
10977
11103
  function normalizeBody(body) {
10978
- const { dataStream, textRuns, paragraphs, customRanges, customDecorations, tables, blockRanges } = body;
11104
+ const { dataStream, textRuns, paragraphs, customRanges, customDecorations, tables, columnGroups, blockRanges } = body;
10979
11105
  let leftOffset = 0;
10980
11106
  let rightOffset = 0;
10981
11107
  customRanges === null || customRanges === void 0 || customRanges.forEach((range) => {
@@ -11006,6 +11132,10 @@ function normalizeBody(body) {
11006
11132
  table.startIndex += leftOffset;
11007
11133
  table.endIndex += rightOffset;
11008
11134
  });
11135
+ columnGroups === null || columnGroups === void 0 || columnGroups.forEach((columnGroup) => {
11136
+ columnGroup.startIndex += leftOffset;
11137
+ columnGroup.endIndex += rightOffset;
11138
+ });
11009
11139
  return {
11010
11140
  ...body,
11011
11141
  dataStream: newData,
@@ -11014,6 +11144,7 @@ function normalizeBody(body) {
11014
11144
  customRanges,
11015
11145
  customDecorations,
11016
11146
  tables,
11147
+ columnGroups,
11017
11148
  blockRanges
11018
11149
  };
11019
11150
  }
@@ -11076,8 +11207,8 @@ function composeCustomDecorations(updateDataCustomDecorations, originCustomDecor
11076
11207
  function composeBody(thisBody, otherBody, coverType = 0) {
11077
11208
  if (otherBody.dataStream !== "") throw new Error("Cannot compose other body with non-empty dataStream");
11078
11209
  const retBody = { dataStream: thisBody.dataStream };
11079
- const { textRuns: thisTextRuns, paragraphs: thisParagraphs = [], customRanges: thisCustomRanges, customDecorations: thisCustomDecorations = [], blockRanges: thisBlockRanges = [] } = thisBody;
11080
- const { textRuns: otherTextRuns, paragraphs: otherParagraphs = [], customRanges: otherCustomRanges, customDecorations: otherCustomDecorations = [], blockRanges: otherBlockRanges = [] } = otherBody;
11210
+ const { textRuns: thisTextRuns, paragraphs: thisParagraphs = [], customRanges: thisCustomRanges, customDecorations: thisCustomDecorations = [], columnGroups: thisColumnGroups = [], blockRanges: thisBlockRanges = [] } = thisBody;
11211
+ const { textRuns: otherTextRuns, paragraphs: otherParagraphs = [], customRanges: otherCustomRanges, customDecorations: otherCustomDecorations = [], columnGroups: otherColumnGroups = [], blockRanges: otherBlockRanges = [] } = otherBody;
11081
11212
  retBody.textRuns = composeTextRuns(otherTextRuns, thisTextRuns, coverType);
11082
11213
  retBody.customRanges = composeCustomRanges(otherCustomRanges, thisCustomRanges, coverType);
11083
11214
  const customDecorations = composeCustomDecorations(otherCustomDecorations, thisCustomDecorations, coverType);
@@ -11107,6 +11238,8 @@ function composeBody(thisBody, otherBody, coverType = 0) {
11107
11238
  if (paragraphs.length) retBody.paragraphs = paragraphs;
11108
11239
  const blockRanges = composeDocumentBlockRanges(thisBlockRanges, otherBlockRanges);
11109
11240
  if (blockRanges.length) retBody.blockRanges = blockRanges;
11241
+ const columnGroups = composeColumnGroups(thisColumnGroups, otherColumnGroups);
11242
+ if (columnGroups.length) retBody.columnGroups = columnGroups;
11110
11243
  return retBody;
11111
11244
  }
11112
11245
  function composeDocumentBlockRanges(thisRanges, otherRanges) {
@@ -11116,11 +11249,18 @@ function composeDocumentBlockRanges(thisRanges, otherRanges) {
11116
11249
  otherRanges.forEach((range) => byId.set(range.blockId, Tools.deepClone(range)));
11117
11250
  return Array.from(byId.values()).sort((left, right) => left.startIndex - right.startIndex);
11118
11251
  }
11252
+ function composeColumnGroups(thisRanges, otherRanges) {
11253
+ if (!thisRanges.length) return otherRanges;
11254
+ if (!otherRanges.length) return thisRanges;
11255
+ const byId = new Map(thisRanges.map((range) => [range.columnGroupId, Tools.deepClone(range)]));
11256
+ otherRanges.forEach((range) => byId.set(range.columnGroupId, Tools.deepClone(range)));
11257
+ return Array.from(byId.values()).sort((left, right) => left.startIndex - right.startIndex);
11258
+ }
11119
11259
  function isUselessRetainAction(action) {
11120
11260
  const { body } = action;
11121
11261
  if (body == null) return true;
11122
- const { textRuns, paragraphs, customRanges, customBlocks, customDecorations, tables, blockRanges } = body;
11123
- if (textRuns == null && paragraphs == null && customRanges == null && customBlocks == null && customDecorations == null && tables == null && blockRanges == null) return true;
11262
+ const { textRuns, paragraphs, customRanges, customBlocks, customDecorations, tables, columnGroups, blockRanges } = body;
11263
+ if (textRuns == null && paragraphs == null && customRanges == null && customBlocks == null && customDecorations == null && tables == null && columnGroups == null && blockRanges == null) return true;
11124
11264
  return false;
11125
11265
  }
11126
11266
  function getRichTextEditPath(docDataModel, segmentId = "") {
@@ -11223,6 +11363,7 @@ function updateAttributeByDelete(body, textLength, currentIndex) {
11223
11363
  const removeSectionBreaks = deleteSectionBreaks(body, textLength, currentIndex);
11224
11364
  const removeCustomBlocks = deleteCustomBlocks(body, textLength, currentIndex);
11225
11365
  const removeTables = deleteTables(body, textLength, currentIndex);
11366
+ const removeColumnGroups = deleteColumnGroups(body, textLength, currentIndex);
11226
11367
  const removeBlockRanges = deleteBlockRanges(body, textLength, currentIndex);
11227
11368
  const removeCustomRanges = deleteCustomRanges(body, textLength, currentIndex);
11228
11369
  const removeCustomDecorations = deleteCustomDecorations(body, textLength, currentIndex);
@@ -11238,6 +11379,7 @@ function updateAttributeByDelete(body, textLength, currentIndex) {
11238
11379
  sectionBreaks: removeSectionBreaks,
11239
11380
  customBlocks: removeCustomBlocks,
11240
11381
  tables: removeTables,
11382
+ columnGroups: removeColumnGroups,
11241
11383
  blockRanges: removeBlockRanges,
11242
11384
  customRanges: removeCustomRanges,
11243
11385
  customDecorations: removeCustomDecorations
@@ -11253,6 +11395,7 @@ function updateAttributeByInsert(body, insertBody, textLength, currentIndex) {
11253
11395
  insertSectionBreaks(body, insertBody, textLength, currentIndex);
11254
11396
  insertCustomBlocks(body, insertBody, textLength, currentIndex);
11255
11397
  insertTables(body, insertBody, textLength, currentIndex);
11398
+ insertColumnGroups(body, insertBody, textLength, currentIndex);
11256
11399
  insertBlockRanges(body, insertBody, textLength, currentIndex);
11257
11400
  insertCustomRanges(body, insertBody, textLength, currentIndex);
11258
11401
  insertCustomDecorations(body, insertBody, textLength, currentIndex);
@@ -11864,6 +12007,8 @@ let DataStreamTreeNodeType = /* @__PURE__ */ function(DataStreamTreeNodeType) {
11864
12007
  DataStreamTreeNodeType["TABLE"] = "TABLE";
11865
12008
  DataStreamTreeNodeType["TABLE_ROW"] = "TABLE_ROW";
11866
12009
  DataStreamTreeNodeType["TABLE_CELL"] = "TABLE_CELL";
12010
+ DataStreamTreeNodeType["COLUMN_GROUP"] = "COLUMN_GROUP";
12011
+ DataStreamTreeNodeType["COLUMN"] = "COLUMN";
11867
12012
  DataStreamTreeNodeType["BLOCK"] = "BLOCK";
11868
12013
  DataStreamTreeNodeType["CUSTOM_BLOCK"] = "CUSTOM_BLOCK";
11869
12014
  return DataStreamTreeNodeType;
@@ -11877,6 +12022,10 @@ let DataStreamTreeTokenType = /* @__PURE__ */ function(DataStreamTreeTokenType)
11877
12022
  DataStreamTreeTokenType["TABLE_CELL_END"] = "";
11878
12023
  DataStreamTreeTokenType["TABLE_ROW_END"] = "";
11879
12024
  DataStreamTreeTokenType["TABLE_END"] = "";
12025
+ DataStreamTreeTokenType["COLUMN_GROUP_START"] = "";
12026
+ DataStreamTreeTokenType["COLUMN_START"] = "";
12027
+ DataStreamTreeTokenType["COLUMN_END"] = "";
12028
+ DataStreamTreeTokenType["COLUMN_GROUP_END"] = "";
11880
12029
  DataStreamTreeTokenType["BLOCK_START"] = "";
11881
12030
  DataStreamTreeTokenType["BLOCK_END"] = "";
11882
12031
  /**
@@ -15567,7 +15716,7 @@ const IURLImageService = createIdentifier("core.url-image.service");
15567
15716
  //#endregion
15568
15717
  //#region package.json
15569
15718
  var name = "@univerjs/core";
15570
- var version = "1.0.0-alpha.0";
15719
+ var version = "1.0.0-alpha.1";
15571
15720
 
15572
15721
  //#endregion
15573
15722
  //#region src/sheets/empty-snapshot.ts
@@ -20890,4 +21039,4 @@ function createUniverInjector(parentInjector, override) {
20890
21039
  installShims();
20891
21040
 
20892
21041
  //#endregion
20893
- export { ABCToNumber, AUTO_HEIGHT_FOR_MERGED_CELLS, AbsoluteRefType, ActionIterator, AlignTypeH, AlignTypeV, ArrangeTypeEnum, AsyncInterceptorManager, AsyncLock, AuthzIoLocalService, AutoFillSeries, BORDER_KEYS, BORDER_STYLE_KEYS, BaseDataModel, BaselineOffset, BlockType, BooleanNumber, BorderStyleTypes, BorderType, BuildTextUtils, BulletAlignment, COLORS, COLOR_STYLE_KEYS, COMMAND_LOG_EXECUTION_CONFIG_KEY, CanceledError, CellModeEnum, CellValueType, ColorKit, ColorType, 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, DeleteDirection, DependentOn, DesktopLogService, DeveloperMetadataVisibility, Dimension, Direction, Disposable, DisposableCollection, DocStyleType, DocumentBlockRangeType, DocumentDataModel, DocumentFlavor, DrawingTypeEnum, EDITOR_ACTIVATED, EXTENSION_NAMES, ErrorService, EventState, EventSubject, FOCUSING_COMMENT_EDITOR, FOCUSING_COMMON_DRAWINGS, FOCUSING_DOC, FOCUSING_EDITOR_BUT_HIDDEN, 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, FollowNumberWithType, FontItalic, FontStyleType, FontWeight, 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, LRUHelper, LRUMap, LifecycleService, LifecycleStages, LifecycleUnreachableError, ListGlyphType, LocalUndoRedoService, LocaleService, LocaleType, LogLevel, LookUp, MAX_COLUMN_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, ObjectMatrix, ObjectRelativeFromH, ObjectRelativeFromV, Optional, PADDING_KEYS, PAGE_SIZE, PAPER_TYPES, PARAGRAPH_ID_PREFIX, PRESET_LIST_TYPE, PRINT_CHART_COMPONENT_KEY, PageOrientType, PaperType, ParagraphElementType, ParagraphStyleBuilder, ParagraphStyleValue, PermissionService, PermissionStatus, Plugin, PluginService, PositionedObjectLayoutType, PresetListType, ProtectionType, Quantity, QuickListType, QuickListTypeMap, RANGE_DIRECTION, RANGE_TYPE, RBush, RCDisposable, RGBA_PAREN, RGB_PAREN, ROTATE_BUFFER_VALUE, RTree, Range, Rectangle, RediError, RedoCommand, RedoCommandId, RefAlias, Registry, RegistryAsMap, RelativeDate, ResourceManagerService, RichTextBuilder, RichTextValue, RxDisposable, SHEET_EDITOR_UNITS, STYLE_KEYS, SectionType, Self, SheetSkeleton, SheetTypes, SheetViewModel, Skeleton, SkipSelf, SliceBodyType, SpacingRule, Styles, TEXT_DECORATION_KEYS, TEXT_ROTATION_KEYS, THEME_COLORS, TabStopAlignment, 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, WrapStrategy, WrapTextType, addLinkToDocumentModel, afterInitApply, afterTime, awaitTime, binSearchFirstGreaterThanTarget, binarySearchArray, bufferDebounceTime, cellToRange, characterSpacingControlType, checkForSubstrings, checkIfMove, checkParagraphHasBullet, checkParagraphHasIndent, checkParagraphHasIndentByStyle, cloneBodyWithFreshParagraphIds, cloneCellData, cloneCellDataMatrix, cloneCellDataWithSpanAndDisplay, cloneParagraphWithId, cloneValue, cloneWorksheetData, codeToBlob, columnLabelToNumber, composeBody, composeInterceptors, composeStyles, concatMatrixArray, convertCellToRange, convertObservableToBehaviorSubject, covertCellValue, covertCellValues, createAsyncInterceptorKey, createDefaultBaseTableSnapshot, createDefaultUser, createDocumentModelWithStyle, createIdentifier, createInterceptorKey, createInternalEditorID, createParagraphId, createREGEXFromWildChar, createRandomId, createRowColIter, createSheetGapTestConfig, currencySymbols, customNameCharacterCheck, dateKit, debounce, dedupe, dedupeBy, deepCompare, delayAnimationFrame, deleteContent, escapeRegExp, extractPureTextFromCell, forwardRef, fromCallback, fromEventSubject, generateIntervalsByPoints, generateRandomId, get, getArrayLength, getBodySlice, getBorderStyleType, getCellCoordByIndexSimple, getCellInfoInMergeData, getCellValueType, getCellWithCoordByIndexCore, getColorStyle, getCustomBlockSlice, getCustomDecorationSlice, getCustomRangeSlice, getDisplayValueFromCell, getDocsUpdateBody, getEmptyBaseSnapshot, getEmptyCell, getIntersectRange, getNumfmtParseValueFilter, getOriginCellValue, getParagraphsSlice, getPlainText, getReverseDirection, getRichTextEditPath, getSectionBreakSlice, getTableSlice, getTextRunSlice, getTransformOffsetX, getTransformOffsetY, getWorksheetUID, groupBy, handleStyleToString, hashAlgorithm, horizontalLineSegmentsSubtraction, insertMatrixArray, insertTextToContent, invertColorByHSL, invertColorByMatrix, isAsyncDependencyItem, isAsyncHook, 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, isValidRange, isValueDependencyItem, isWhiteColor, makeArray, makeCellRangeToRangeData, makeCellToSelection, makeCustomRangeStream, mapObjectMatrix, merge, mergeIntervals, mergeLocales, mergeOverrideWithDependencies, mergeSets, mergeWith, mergeWorksheetSnapshotWithDefault, mixinClass, moveMatrixArray, moveRangeByOffset, nameCharacterCheck, noop, normalizeBody, normalizeTextRuns, normalizeUrl, numberToABC, numberToListABC, numfmt, queryObjectMatrix, registerDependencies, remove, repeatStringNumTimes, replaceInDocumentBody, requestImmediateMacroTask, resolveWithBasePath, rotate, searchArray, searchInOrderedArray, selectionToArray, sequence, sequenceAsync, sequenceExecute, sequenceExecuteAsync, set, setDependencies, shallowEqual, skipParseTagNames, sliceMatrixArray, sortRules, sortRulesByDesc, sortRulesFactory, spliceArray, splitIntoGrid, takeAfter, throttle, toDisposable, touchDependencies, updateAttributeByDelete, updateAttributeByInsert, willLoseNumericPrecision };
21042
+ export { ABCToNumber, AUTO_HEIGHT_FOR_MERGED_CELLS, AbsoluteRefType, ActionIterator, AlignTypeH, AlignTypeV, ArrangeTypeEnum, AsyncInterceptorManager, AsyncLock, AuthzIoLocalService, AutoFillSeries, BORDER_KEYS, BORDER_STYLE_KEYS, BaseDataModel, 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, DeleteDirection, DependentOn, DesktopLogService, DeveloperMetadataVisibility, Dimension, Direction, Disposable, DisposableCollection, DocStyleType, DocumentBlockRangeType, DocumentBlockType, DocumentDataModel, DocumentFlavor, DrawingTypeEnum, EDITOR_ACTIVATED, EXTENSION_NAMES, ErrorService, EventState, EventSubject, FOCUSING_COMMENT_EDITOR, FOCUSING_COMMON_DRAWINGS, FOCUSING_DOC, FOCUSING_EDITOR_BUT_HIDDEN, 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, FollowNumberWithType, FontItalic, FontStyleType, FontWeight, 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, LRUHelper, LRUMap, LifecycleService, LifecycleStages, LifecycleUnreachableError, ListGlyphType, LocalUndoRedoService, LocaleService, LocaleType, LogLevel, LookUp, MAX_COLUMN_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, ObjectMatrix, ObjectRelativeFromH, ObjectRelativeFromV, Optional, PADDING_KEYS, PAGE_SIZE, PAPER_TYPES, PARAGRAPH_ID_PREFIX, PRESET_LIST_TYPE, PRINT_CHART_COMPONENT_KEY, 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, Rectangle, RediError, RedoCommand, RedoCommandId, RefAlias, Registry, RegistryAsMap, RelativeDate, ResourceManagerService, RichTextBuilder, RichTextValue, RxDisposable, SHEET_EDITOR_UNITS, STYLE_KEYS, SectionType, Self, SheetSkeleton, SheetTypes, SheetViewModel, Skeleton, SkipSelf, SliceBodyType, SpacingRule, Styles, TEXT_DECORATION_KEYS, TEXT_ROTATION_KEYS, THEME_COLORS, TabStopAlignment, 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, WrapStrategy, WrapTextType, addLinkToDocumentModel, afterInitApply, afterTime, awaitTime, binSearchFirstGreaterThanTarget, binarySearchArray, bufferDebounceTime, cellToRange, characterSpacingControlType, checkForSubstrings, checkIfMove, checkParagraphHasBullet, checkParagraphHasIndent, checkParagraphHasIndentByStyle, cloneBodyWithFreshParagraphIds, cloneCellData, cloneCellDataMatrix, cloneCellDataWithSpanAndDisplay, cloneParagraphWithId, cloneValue, cloneWorksheetData, codeToBlob, columnLabelToNumber, composeBody, composeInterceptors, composeStyles, concatMatrixArray, convertCellToRange, convertObservableToBehaviorSubject, covertCellValue, covertCellValues, createAsyncInterceptorKey, createDefaultBaseTableSnapshot, createDefaultUser, createDocumentModelWithStyle, createIdentifier, createInterceptorKey, createInternalEditorID, createParagraphId, createREGEXFromWildChar, createRandomId, createRowColIter, createSheetGapTestConfig, currencySymbols, customNameCharacterCheck, dateKit, debounce, dedupe, dedupeBy, deepCompare, delayAnimationFrame, deleteContent, escapeRegExp, extractPureTextFromCell, forwardRef, fromCallback, fromEventSubject, generateIntervalsByPoints, generateRandomId, get, getArrayLength, getBodySlice, getBorderStyleType, getCellCoordByIndexSimple, getCellInfoInMergeData, getCellValueType, getCellWithCoordByIndexCore, getColorStyle, getCustomBlockSlice, getCustomDecorationSlice, getCustomRangeSlice, getDisplayValueFromCell, getDocsUpdateBody, getEmptyBaseSnapshot, getEmptyCell, getIntersectRange, getNumfmtParseValueFilter, getOriginCellValue, getParagraphsSlice, getPlainText, getReverseDirection, getRichTextEditPath, getSectionBreakSlice, getTableSlice, getTextRunSlice, getTransformOffsetX, getTransformOffsetY, getWorksheetUID, groupBy, handleStyleToString, hashAlgorithm, horizontalLineSegmentsSubtraction, insertMatrixArray, insertTextToContent, invertColorByHSL, invertColorByMatrix, isAsyncDependencyItem, isAsyncHook, 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, isValidRange, isValueDependencyItem, isWhiteColor, makeArray, makeCellRangeToRangeData, makeCellToSelection, makeCustomRangeStream, mapObjectMatrix, merge, mergeIntervals, mergeLocales, mergeOverrideWithDependencies, mergeSets, mergeWith, mergeWorksheetSnapshotWithDefault, mixinClass, moveMatrixArray, moveRangeByOffset, nameCharacterCheck, noop, normalizeBody, normalizeTextRuns, normalizeUrl, numberToABC, numberToListABC, numfmt, queryObjectMatrix, registerDependencies, remove, repeatStringNumTimes, replaceInDocumentBody, requestImmediateMacroTask, resolveWithBasePath, rotate, searchArray, searchInOrderedArray, selectionToArray, sequence, sequenceAsync, sequenceExecute, sequenceExecuteAsync, set, setDependencies, shallowEqual, skipParseTagNames, sliceMatrixArray, sortRules, sortRulesByDesc, sortRulesFactory, spliceArray, splitIntoGrid, takeAfter, throttle, toDisposable, touchDependencies, updateAttributeByDelete, updateAttributeByInsert, willLoseNumericPrecision };