@univerjs/sheets-ui 0.5.5-nightly.202501221606 → 0.5.5-nightly.202501231606

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.
Files changed (50) hide show
  1. package/lib/cjs/index.js +4 -4
  2. package/lib/es/facade.js +3 -0
  3. package/lib/es/index.js +66 -52
  4. package/lib/types/facade/f-event.d.ts +38 -32
  5. package/lib/types/facade/f-permission.d.ts +3 -0
  6. package/lib/types/facade/f-range.d.ts +3 -0
  7. package/lib/types/facade/f-sheet-hooks.d.ts +3 -0
  8. package/lib/types/facade/f-univer.d.ts +6 -0
  9. package/lib/types/facade/f-workbook.d.ts +3 -0
  10. package/lib/types/facade/f-worksheet.d.ts +3 -0
  11. package/lib/types/services/clipboard/utils.d.ts +1 -1
  12. package/lib/umd/index.js +4 -4
  13. package/package.json +14 -14
  14. package/lib/types/commands/commands/__tests__/add-worksheet-merge.command.spec.d.ts +0 -16
  15. package/lib/types/commands/commands/__tests__/auto-fill.controller.spec.d.ts +0 -16
  16. package/lib/types/commands/commands/__tests__/create-command-test-bed.d.ts +0 -7
  17. package/lib/types/commands/commands/__tests__/create-selection-command-test-bed.d.ts +0 -28
  18. package/lib/types/commands/commands/__tests__/create-sheet-skeleton-test-bed.d.ts +0 -22
  19. package/lib/types/commands/commands/__tests__/hide-row-col-confirm.command.spec.d.ts +0 -16
  20. package/lib/types/commands/commands/__tests__/remove-row-col-confirm.command.spec.d.ts +0 -16
  21. package/lib/types/commands/commands/__tests__/selection-utils.spec.d.ts +0 -16
  22. package/lib/types/commands/commands/__tests__/set-format-painter.command.spec.d.ts +0 -16
  23. package/lib/types/commands/commands/__tests__/set-frozen.command.spec.d.ts +0 -16
  24. package/lib/types/commands/commands/__tests__/set-selections.command.spec.d.ts +0 -16
  25. package/lib/types/commands/commands/__tests__/sheet-skeleton.spec.d.ts +0 -16
  26. package/lib/types/controllers/editor/__tests__/create-test-bed.d.ts +0 -7
  27. package/lib/types/controllers/editor/__tests__/end-edit.controller.spec.d.ts +0 -16
  28. package/lib/types/controllers/editor/__tests__/mock-function.service.d.ts +0 -5
  29. package/lib/types/controllers/menu/__tests__/create-menu-test-bed.d.ts +0 -13
  30. package/lib/types/controllers/menu/__tests__/menu.spec.d.ts +0 -16
  31. package/lib/types/controllers/menu/__tests__/row-col.menu.spec.d.ts +0 -16
  32. package/lib/types/controllers/utils/__tests__/cell-tools.spec.d.ts +0 -16
  33. package/lib/types/facade/__tests__/create-test-bed.d.ts +0 -10
  34. package/lib/types/facade/__tests__/f-sheet-hooks.spec.d.ts +0 -16
  35. package/lib/types/services/auto-fill/__tests__/tool.spec.d.ts +0 -16
  36. package/lib/types/services/clipboard/__tests__/clipboard-copy-filter.spec.d.ts +0 -16
  37. package/lib/types/services/clipboard/__tests__/clipboard-paste-alignment.spec.d.ts +0 -16
  38. package/lib/types/services/clipboard/__tests__/clipboard-paste-border.spec.d.ts +0 -16
  39. package/lib/types/services/clipboard/__tests__/clipboard-paste-col-width.spec.d.ts +0 -16
  40. package/lib/types/services/clipboard/__tests__/clipboard-paste-font.spec.d.ts +0 -16
  41. package/lib/types/services/clipboard/__tests__/clipboard-paste-form-excel.spec.d.ts +0 -16
  42. package/lib/types/services/clipboard/__tests__/clipboard-paste-from-google.spec.d.ts +0 -16
  43. package/lib/types/services/clipboard/__tests__/clipboard-paste-from-notepad.spec.d.ts +0 -16
  44. package/lib/types/services/clipboard/__tests__/clipboard-paste-rotate.spec.d.ts +0 -16
  45. package/lib/types/services/clipboard/__tests__/clipboard-service.spec.d.ts +0 -16
  46. package/lib/types/services/clipboard/__tests__/clipboard-test-bed.d.ts +0 -29
  47. package/lib/types/services/clipboard/__tests__/constant.d.ts +0 -28
  48. package/lib/types/services/clipboard/__tests__/mock-clipboard.d.ts +0 -39
  49. package/lib/types/services/clipboard/__tests__/sheet-paste.spec.d.ts +0 -16
  50. package/lib/types/services/clipboard/__tests__/utils.spec.d.ts +0 -16
package/lib/es/facade.js CHANGED
@@ -130,6 +130,9 @@ const _FUniverSheetsUIMixin = class _FUniverSheetsUIMixin extends FUniver {
130
130
  }
131
131
  })), this._initObserverListener(injector);
132
132
  }
133
+ /**
134
+ * @ignore
135
+ */
133
136
  // eslint-disable-next-line max-lines-per-function
134
137
  _initObserverListener(injector) {
135
138
  const unitM = injector.get(IUniverInstanceService).getFocusedUnit(), unitId = unitM == null ? void 0 : unitM.getUnitId(), renderManagerService = injector.get(IRenderManagerService);
package/lib/es/index.js CHANGED
@@ -7305,10 +7305,23 @@ const getRepeatRange = /* @__PURE__ */ __name((sourceRange, targetRange, isStric
7305
7305
  }
7306
7306
  return repeatList;
7307
7307
  }, "getRepeatRange");
7308
- async function clipboardItemIsFromExcel(html) {
7309
- return html ? /<td[^>]*class=".*?xl.*?"[^>]*>.*?<\/td>/.test(html) : !1;
7310
- }
7311
- __name(clipboardItemIsFromExcel, "clipboardItemIsFromExcel");
7308
+ function htmlIsFromExcel(html) {
7309
+ return html ? [
7310
+ // Excel class names
7311
+ /<td[^>]*class=".*?xl.*?"[^>]*>/i,
7312
+ // Excel namespace
7313
+ /xmlns:x="urn:schemas-microsoft-com:office:excel"/i,
7314
+ // Excel ProgID
7315
+ /ProgId="Excel.Sheet"/i,
7316
+ // Office specific namespace
7317
+ /xmlns:o="urn:schemas-microsoft-com:office:office"/i,
7318
+ // Excel specific style markers
7319
+ /@mso-|mso-excel/i,
7320
+ // Excel workbook metadata
7321
+ /<x:ExcelWorkbook>/i
7322
+ ].some((marker) => marker.test(html)) : !1;
7323
+ }
7324
+ __name(htmlIsFromExcel, "htmlIsFromExcel");
7312
7325
  function mergeCellValues(...cellValues) {
7313
7326
  if (cellValues.length === 1)
7314
7327
  return cellValues[0];
@@ -7467,8 +7480,8 @@ let SheetClipboardService = (_a15 = class extends Disposable {
7467
7480
  return this.copy(COPY_TYPE.CUT);
7468
7481
  }
7469
7482
  async paste(item, pasteType = PREDEFINED_HOOK_NAME.DEFAULT_PASTE) {
7470
- const types = item.types, text = types.indexOf(PLAIN_TEXT_CLIPBOARD_MIME_TYPE) !== -1 ? await item.getType(PLAIN_TEXT_CLIPBOARD_MIME_TYPE).then((blob) => blob && blob.text()) : "", html = types.indexOf(HTML_CLIPBOARD_MIME_TYPE) !== -1 ? await item.getType(HTML_CLIPBOARD_MIME_TYPE).then((blob) => blob && blob.text()) : "", imageIndex = types.findIndex((type) => imageMimeTypeSet.has(type));
7471
- if (imageIndex !== -1) {
7483
+ const types = item.types, text = types.indexOf(PLAIN_TEXT_CLIPBOARD_MIME_TYPE) !== -1 ? await item.getType(PLAIN_TEXT_CLIPBOARD_MIME_TYPE).then((blob) => blob && blob.text()) : "", html = types.indexOf(HTML_CLIPBOARD_MIME_TYPE) !== -1 ? await item.getType(HTML_CLIPBOARD_MIME_TYPE).then((blob) => blob && blob.text()) : "", isFromExcel = htmlIsFromExcel(html), imageIndex = types.findIndex((type) => imageMimeTypeSet.has(type));
7484
+ if (imageIndex !== -1 && !isFromExcel) {
7472
7485
  const imageMimeType = types[imageIndex], imageBlob = await item.getType(imageMimeType);
7473
7486
  if (imageBlob) {
7474
7487
  const file = new File(
@@ -7479,14 +7492,15 @@ let SheetClipboardService = (_a15 = class extends Disposable {
7479
7492
  return this._pasteFiles([file], pasteType);
7480
7493
  }
7481
7494
  }
7482
- return html ? (this._platformService.isWindows && await clipboardItemIsFromExcel(html) && this._notificationService.show({
7495
+ return html ? (this._platformService.isWindows && isFromExcel && this._notificationService.show({
7483
7496
  type: "warning",
7484
7497
  title: this._localeService.t("clipboard.shortCutNotify.title"),
7485
7498
  content: this._localeService.t("clipboard.shortCutNotify.useShortCutInstead")
7486
7499
  }), this._pasteHTML(html, pasteType)) : text ? this._pastePlainText(text, pasteType) : (this._logService.error("[SheetClipboardService]", "No valid data on clipboard"), !1);
7487
7500
  }
7488
- legacyPaste(html, text, files) {
7489
- return files ? this._pasteFiles(files, PREDEFINED_HOOK_NAME.DEFAULT_PASTE) : html ? this._pasteHTML(html, PREDEFINED_HOOK_NAME.DEFAULT_PASTE) : text ? /[\n\t]/.test(text) ? this._pasteHTML(convertTextToTable(text), PREDEFINED_HOOK_NAME.DEFAULT_PASTE) : this._pastePlainText(text, PREDEFINED_HOOK_NAME.DEFAULT_PASTE) : this._pasteUnrecognized();
7501
+ async legacyPaste(html, text, files) {
7502
+ const isFromExcel = htmlIsFromExcel(html != null ? html : "");
7503
+ return files && !isFromExcel ? this._pasteFiles(files, PREDEFINED_HOOK_NAME.DEFAULT_PASTE) : html ? this._pasteHTML(html, PREDEFINED_HOOK_NAME.DEFAULT_PASTE) : text ? /[\n\t]/.test(text) ? this._pasteHTML(convertTextToTable(text), PREDEFINED_HOOK_NAME.DEFAULT_PASTE) : this._pastePlainText(text, PREDEFINED_HOOK_NAME.DEFAULT_PASTE) : this._pasteUnrecognized();
7490
7504
  }
7491
7505
  rePasteWithPasteType(type) {
7492
7506
  const pasteOptionsCache = this._pasteOptionsCache$.getValue();
@@ -11913,38 +11927,38 @@ const AddWorksheetMergeCommand = {
11913
11927
  }) ? commandService.executeCommand(InsertRangeMoveRightCommand.id) : !0 : commandService.executeCommand(InsertRangeMoveRightCommand.id);
11914
11928
  }, "handler")
11915
11929
  };
11916
- var _ = /* @__PURE__ */ ((E) => (E[E.UNIVER_UNKNOWN = 0] = "UNIVER_UNKNOWN", E[E.UNIVER_DOC = 1] = "UNIVER_DOC", E[E.UNIVER_SHEET = 2] = "UNIVER_SHEET", E[E.UNIVER_SLIDE = 3] = "UNIVER_SLIDE", E[E.UNIVER_PROJECT = 4] = "UNIVER_PROJECT", E[E.UNRECOGNIZED = -1] = "UNRECOGNIZED", E))(_ || {}), R = /* @__PURE__ */ ((E) => (E[E.View = 0] = "View", E[E.Edit = 1] = "Edit", E[E.ManageCollaborator = 2] = "ManageCollaborator", E[E.Print = 3] = "Print", E[E.Duplicate = 4] = "Duplicate", E[E.Comment = 5] = "Comment", E[E.Copy = 6] = "Copy", E[E.Share = 7] = "Share", E[E.Export = 8] = "Export", E[E.MoveWorksheet = 9] = "MoveWorksheet", E[E.DeleteWorksheet = 10] = "DeleteWorksheet", E[E.HideWorksheet = 11] = "HideWorksheet", E[E.RenameWorksheet = 12] = "RenameWorksheet", E[E.CreateWorksheet = 13] = "CreateWorksheet", E[E.SetWorksheetStyle = 14] = "SetWorksheetStyle", E[E.EditWorksheetCell = 15] = "EditWorksheetCell", E[E.InsertHyperlink = 16] = "InsertHyperlink", E[E.Sort = 17] = "Sort", E[E.Filter = 18] = "Filter", E[E.PivotTable = 19] = "PivotTable", E[E.FloatImg = 20] = "FloatImg", E[E.History = 21] = "History", E[E.RwHgtClWdt = 22] = "RwHgtClWdt", E[E.ViemRwHgtClWdt = 23] = "ViemRwHgtClWdt", E[E.ViewFilter = 24] = "ViewFilter", E[E.MoveSheet = 25] = "MoveSheet", E[E.DeleteSheet = 26] = "DeleteSheet", E[E.HideSheet = 27] = "HideSheet", E[E.CopySheet = 28] = "CopySheet", E[E.RenameSheet = 29] = "RenameSheet", E[E.CreateSheet = 30] = "CreateSheet", E[E.SelectProtectedCells = 31] = "SelectProtectedCells", E[E.SelectUnProtectedCells = 32] = "SelectUnProtectedCells", E[E.SetCellStyle = 33] = "SetCellStyle", E[E.SetCellValue = 34] = "SetCellValue", E[E.SetRowStyle = 35] = "SetRowStyle", E[E.SetColumnStyle = 36] = "SetColumnStyle", E[E.InsertRow = 37] = "InsertRow", E[E.InsertColumn = 38] = "InsertColumn", E[E.DeleteRow = 39] = "DeleteRow", E[E.DeleteColumn = 40] = "DeleteColumn", E[E.EditExtraObject = 41] = "EditExtraObject", E[E.Delete = 42] = "Delete", E[E.RecoverHistory = 43] = "RecoverHistory", E[E.ViewHistory = 44] = "ViewHistory", E[E.CreatePermissionObject = 45] = "CreatePermissionObject", E[E.UNRECOGNIZED = -1] = "UNRECOGNIZED", E))(R || {}), S = /* @__PURE__ */ ((E) => (E[E.Reader = 0] = "Reader", E[E.Editor = 1] = "Editor", E[E.Owner = 2] = "Owner", E[E.UNRECOGNIZED = -1] = "UNRECOGNIZED", E))(S || {}), L = /* @__PURE__ */ ((E) => (E[E.Unkonwn = 0] = "Unkonwn", E[E.Workbook = 1] = "Workbook", E[E.Worksheet = 2] = "Worksheet", E[E.SelectRange = 3] = "SelectRange", E[E.Document = 4] = "Document", E[E.Slide = 5] = "Slide", E[E.UNRECOGNIZED = -1] = "UNRECOGNIZED", E))(L || {}), M = /* @__PURE__ */ ((E) => (E[E.SomeCollaborator = 0] = "SomeCollaborator", E[E.AllCollaborator = 1] = "AllCollaborator", E[E.OneSelf = 2] = "OneSelf", E[E.UNRECOGNIZED = -1] = "UNRECOGNIZED", E))(M || {});
11930
+ var _ = /* @__PURE__ */ ((E) => (E[E.UNIVER_UNKNOWN = 0] = "UNIVER_UNKNOWN", E[E.UNIVER_DOC = 1] = "UNIVER_DOC", E[E.UNIVER_SHEET = 2] = "UNIVER_SHEET", E[E.UNIVER_SLIDE = 3] = "UNIVER_SLIDE", E[E.UNIVER_PROJECT = 4] = "UNIVER_PROJECT", E[E.UNRECOGNIZED = -1] = "UNRECOGNIZED", E))(_ || {}), D = /* @__PURE__ */ ((E) => (E[E.View = 0] = "View", E[E.Edit = 1] = "Edit", E[E.ManageCollaborator = 2] = "ManageCollaborator", E[E.Print = 3] = "Print", E[E.Duplicate = 4] = "Duplicate", E[E.Comment = 5] = "Comment", E[E.Copy = 6] = "Copy", E[E.Share = 7] = "Share", E[E.Export = 8] = "Export", E[E.MoveWorksheet = 9] = "MoveWorksheet", E[E.DeleteWorksheet = 10] = "DeleteWorksheet", E[E.HideWorksheet = 11] = "HideWorksheet", E[E.RenameWorksheet = 12] = "RenameWorksheet", E[E.CreateWorksheet = 13] = "CreateWorksheet", E[E.SetWorksheetStyle = 14] = "SetWorksheetStyle", E[E.EditWorksheetCell = 15] = "EditWorksheetCell", E[E.InsertHyperlink = 16] = "InsertHyperlink", E[E.Sort = 17] = "Sort", E[E.Filter = 18] = "Filter", E[E.PivotTable = 19] = "PivotTable", E[E.FloatImg = 20] = "FloatImg", E[E.History = 21] = "History", E[E.RwHgtClWdt = 22] = "RwHgtClWdt", E[E.ViemRwHgtClWdt = 23] = "ViemRwHgtClWdt", E[E.ViewFilter = 24] = "ViewFilter", E[E.MoveSheet = 25] = "MoveSheet", E[E.DeleteSheet = 26] = "DeleteSheet", E[E.HideSheet = 27] = "HideSheet", E[E.CopySheet = 28] = "CopySheet", E[E.RenameSheet = 29] = "RenameSheet", E[E.CreateSheet = 30] = "CreateSheet", E[E.SelectProtectedCells = 31] = "SelectProtectedCells", E[E.SelectUnProtectedCells = 32] = "SelectUnProtectedCells", E[E.SetCellStyle = 33] = "SetCellStyle", E[E.SetCellValue = 34] = "SetCellValue", E[E.SetRowStyle = 35] = "SetRowStyle", E[E.SetColumnStyle = 36] = "SetColumnStyle", E[E.InsertRow = 37] = "InsertRow", E[E.InsertColumn = 38] = "InsertColumn", E[E.DeleteRow = 39] = "DeleteRow", E[E.DeleteColumn = 40] = "DeleteColumn", E[E.EditExtraObject = 41] = "EditExtraObject", E[E.Delete = 42] = "Delete", E[E.RecoverHistory = 43] = "RecoverHistory", E[E.ViewHistory = 44] = "ViewHistory", E[E.CreatePermissionObject = 45] = "CreatePermissionObject", E[E.UNRECOGNIZED = -1] = "UNRECOGNIZED", E))(D || {}), S = /* @__PURE__ */ ((E) => (E[E.Reader = 0] = "Reader", E[E.Editor = 1] = "Editor", E[E.Owner = 2] = "Owner", E[E.UNRECOGNIZED = -1] = "UNRECOGNIZED", E))(S || {}), L = /* @__PURE__ */ ((E) => (E[E.Unkonwn = 0] = "Unkonwn", E[E.Workbook = 1] = "Workbook", E[E.Worksheet = 2] = "Worksheet", E[E.SelectRange = 3] = "SelectRange", E[E.Document = 4] = "Document", E[E.Slide = 5] = "Slide", E[E.UNRECOGNIZED = -1] = "UNRECOGNIZED", E))(L || {}), M = /* @__PURE__ */ ((E) => (E[E.SomeCollaborator = 0] = "SomeCollaborator", E[E.AllCollaborator = 1] = "AllCollaborator", E[E.OneSelf = 2] = "OneSelf", E[E.UNRECOGNIZED = -1] = "UNRECOGNIZED", E))(M || {});
11917
11931
  const UNIVER_SHEET_PERMISSION_PANEL = "UNIVER_SHEET_PERMISSION_PANEL", UNIVER_SHEET_PERMISSION_USER_PART = "UNIVER_SHEET_PERMISSION_USER_PART", UNIVER_SHEET_PERMISSION_BACKGROUND = "UNIVER_SHEET_PERMISSION_BACKGROUND", UNIVER_SHEET_PERMISSION_USER_DIALOG = "UNIVER_SHEET_PERMISSION_USER_DIALOG", UNIVER_SHEET_PERMISSION_DIALOG = "UNIVER_SHEET_PERMISSION_DIALOG", UNIVER_SHEET_PERMISSION_USER_DIALOG_ID = "UNIVER_SHEET_PERMISSION_USER_DIALOG_ID", UNIVER_SHEET_PERMISSION_DIALOG_ID = "UNIVER_SHEET_PERMISSION_DIALOG_ID", subUnitPermissionTypeMap = {
11918
- [R.Copy]: "Copy",
11919
- [R.SetCellStyle]: "SetCellStyle",
11920
- [R.SetCellValue]: "SetCellValue",
11921
- [R.SetRowStyle]: "SetRowStyle",
11922
- [R.SetColumnStyle]: "SetColumnStyle",
11923
- [R.InsertRow]: "InsertRow",
11924
- [R.InsertColumn]: "InsertColumn",
11925
- [R.InsertHyperlink]: "InsertHyperlink",
11926
- [R.DeleteRow]: "DeleteRow",
11927
- [R.DeleteColumn]: "DeleteColumn",
11928
- [R.Sort]: "Sort",
11929
- [R.Filter]: "Filter",
11930
- [R.PivotTable]: "PivotTable",
11931
- [R.EditExtraObject]: "EditExtraObject"
11932
+ [D.Copy]: "Copy",
11933
+ [D.SetCellStyle]: "SetCellStyle",
11934
+ [D.SetCellValue]: "SetCellValue",
11935
+ [D.SetRowStyle]: "SetRowStyle",
11936
+ [D.SetColumnStyle]: "SetColumnStyle",
11937
+ [D.InsertRow]: "InsertRow",
11938
+ [D.InsertColumn]: "InsertColumn",
11939
+ [D.InsertHyperlink]: "InsertHyperlink",
11940
+ [D.DeleteRow]: "DeleteRow",
11941
+ [D.DeleteColumn]: "DeleteColumn",
11942
+ [D.Sort]: "Sort",
11943
+ [D.Filter]: "Filter",
11944
+ [D.PivotTable]: "PivotTable",
11945
+ [D.EditExtraObject]: "EditExtraObject"
11932
11946
  }, defaultWorksheetUnitActionList = [
11933
- R.Copy,
11934
- R.SetCellStyle,
11935
- R.SetCellValue,
11936
- R.SetRowStyle,
11937
- R.SetColumnStyle,
11938
- R.InsertRow,
11939
- R.InsertColumn,
11940
- R.InsertHyperlink,
11941
- R.DeleteRow,
11942
- R.DeleteColumn,
11943
- R.Sort,
11944
- R.Filter,
11945
- R.PivotTable,
11946
- R.EditExtraObject,
11947
- R.View
11947
+ D.Copy,
11948
+ D.SetCellStyle,
11949
+ D.SetCellValue,
11950
+ D.SetRowStyle,
11951
+ D.SetColumnStyle,
11952
+ D.InsertRow,
11953
+ D.InsertColumn,
11954
+ D.InsertHyperlink,
11955
+ D.DeleteRow,
11956
+ D.DeleteColumn,
11957
+ D.Sort,
11958
+ D.Filter,
11959
+ D.PivotTable,
11960
+ D.EditExtraObject,
11961
+ D.View
11948
11962
  ], permissionMenuIconKey = "sheet-permission-menu-icon", permissionDeleteIconKey = "sheet-permission-delete-icon", permissionEditIconKey = "sheet-permission-edit-icon", permissionCheckIconKey = "sheet-permission-check-icon", permissionLockIconKey = "sheet-permission-lock-icon", DEFAULT_RANGE_RULE = {
11949
11963
  unitId: "",
11950
11964
  subUnitId: "",
@@ -19640,7 +19654,7 @@ let SheetPermissionCheckUIController = (_a36 = class extends Disposable {
19640
19654
  for (let row = range.startRow; row <= range.endRow; row++)
19641
19655
  for (let col = range.startColumn; col <= range.endColumn; col++) {
19642
19656
  const permission = (_b = (_a61 = worksheet.getCell(row, col)) == null ? void 0 : _a61.selectionProtection) == null ? void 0 : _b[0];
19643
- if ((permission == null ? void 0 : permission[R.Edit]) === !1)
19657
+ if ((permission == null ? void 0 : permission[D.Edit]) === !1)
19644
19658
  return !0;
19645
19659
  }
19646
19660
  return !1;
@@ -19686,11 +19700,11 @@ let SheetPermissionInterceptorCanvasRenderController = (_a37 = class extends RxD
19686
19700
  return defaultValue;
19687
19701
  if (selectionRange.rangeType === RANGE_TYPE.ROW) {
19688
19702
  for (let i = selectionRange.startRow; i <= selectionRange.endRow; i++)
19689
- if (this._rangeProtectionCache.getRowPermissionInfo(unitId, subUnitId, i, [R.Edit]) === !1)
19703
+ if (this._rangeProtectionCache.getRowPermissionInfo(unitId, subUnitId, i, [D.Edit]) === !1)
19690
19704
  return !1;
19691
19705
  } else
19692
19706
  for (let i = selectionRange.startColumn; i <= selectionRange.endColumn; i++)
19693
- if (this._rangeProtectionCache.getColPermissionInfo(unitId, subUnitId, i, [R.Edit]) === !1)
19707
+ if (this._rangeProtectionCache.getColPermissionInfo(unitId, subUnitId, i, [D.Edit]) === !1)
19694
19708
  return !1;
19695
19709
  return !0;
19696
19710
  }, "handler")
@@ -19742,7 +19756,7 @@ let SheetPermissionInterceptorCanvasRenderController = (_a37 = class extends RxD
19742
19756
  for (let row = startRow; row <= endRow; row++)
19743
19757
  for (let col = startColumn; col <= endColumn; col++) {
19744
19758
  const permission = (_c = (_b = worksheet.getCell(row, col)) == null ? void 0 : _b.selectionProtection) == null ? void 0 : _c[0];
19745
- if ((permission == null ? void 0 : permission[R.Edit]) === !1 || (permission == null ? void 0 : permission[R.View]) === !1)
19759
+ if ((permission == null ? void 0 : permission[D.Edit]) === !1 || (permission == null ? void 0 : permission[D.View]) === !1)
19746
19760
  return !1;
19747
19761
  }
19748
19762
  return !0;
@@ -19768,7 +19782,7 @@ let SheetPermissionInterceptorCanvasRenderController = (_a37 = class extends RxD
19768
19782
  for (let row = startRow; row <= endRow; row++)
19769
19783
  for (let col = startColumn; col <= endColumn; col++) {
19770
19784
  const permission = (_b = (_a62 = worksheet.getCell(row, col)) == null ? void 0 : _a62.selectionProtection) == null ? void 0 : _b[0];
19771
- if ((permission == null ? void 0 : permission[R.Edit]) === !1)
19785
+ if ((permission == null ? void 0 : permission[D.Edit]) === !1)
19772
19786
  return !0;
19773
19787
  }
19774
19788
  return !1;
@@ -19835,7 +19849,7 @@ let SheetPermissionInterceptorClipboardController = (_a38 = class extends Dispos
19835
19849
  for (let row = startRow; row <= endRow; row++)
19836
19850
  for (let col = startColumn; col <= endColumn; col++) {
19837
19851
  const permission = (_c = (_b = worksheet.getCell(row, col)) == null ? void 0 : _b.selectionProtection) == null ? void 0 : _c[0];
19838
- if ((permission == null ? void 0 : permission[R.Edit]) === !1) {
19852
+ if ((permission == null ? void 0 : permission[D.Edit]) === !1) {
19839
19853
  hasPermission = !1;
19840
19854
  break;
19841
19855
  }
@@ -20076,7 +20090,7 @@ let SheetPermissionInterceptorFormulaRenderController = (_a40 = class extends Rx
20076
20090
  if (((_a62 = worksheet.getCellRaw(rowIndex + startRow, colIndex + startCol)) == null ? void 0 : _a62.v) === void 0)
20077
20091
  return;
20078
20092
  const permission = this._rangeProtectionCache.getCellInfo(unitId, subUnitId, rowIndex + startRow, colIndex + startCol);
20079
- (permission == null ? void 0 : permission[R.View]) === !1 && (itemValue[rowIndex][colIndex] = NullValueObject.create());
20093
+ (permission == null ? void 0 : permission[D.View]) === !1 && (itemValue[rowIndex][colIndex] = NullValueObject.create());
20080
20094
  });
20081
20095
  });
20082
20096
  }), originValue;
@@ -20226,7 +20240,7 @@ const checkRangeValid = /* @__PURE__ */ __name((injector, permissionRanges, perm
20226
20240
  collaborators,
20227
20241
  unitID: activeRule.unitId,
20228
20242
  name: "",
20229
- strategies: [{ role: S.Editor, action: R.Edit }, { role: S.Reader, action: R.View }],
20243
+ strategies: [{ role: S.Editor, action: D.Edit }, { role: S.Reader, action: D.View }],
20230
20244
  scope: scopeObj
20231
20245
  },
20232
20246
  objectType: UnitObject.Worksheet
@@ -20252,7 +20266,7 @@ const checkRangeValid = /* @__PURE__ */ __name((injector, permissionRanges, perm
20252
20266
  collaborators,
20253
20267
  unitID: activeRule.unitId,
20254
20268
  name: "",
20255
- strategies: [{ role: S.Editor, action: R.Edit }, { role: S.Reader, action: R.View }],
20269
+ strategies: [{ role: S.Editor, action: D.Edit }, { role: S.Reader, action: D.View }],
20256
20270
  scope: scopeObj
20257
20271
  },
20258
20272
  objectType: UnitObject.Worksheet
@@ -20533,7 +20547,7 @@ const checkRangeValid = /* @__PURE__ */ __name((injector, permissionRanges, perm
20533
20547
  const rule = allRuleMap.get(item.objectID);
20534
20548
  if (!rule)
20535
20549
  return null;
20536
- const editAction = item.actions.find((action) => action.action === R.Edit), editPermission = editAction == null ? void 0 : editAction.allowed, viewAction = item.actions.find((action) => action.action === R.View), viewPermission = viewAction == null ? void 0 : viewAction.allowed, manageCollaboratorAction = item.actions.find((action) => action.action === R.ManageCollaborator), deleteAction = item.actions.find((action) => action.action === R.Delete), hasManagerPermission = (manageCollaboratorAction == null ? void 0 : manageCollaboratorAction.allowed) || currentUser.userID === ((_a62 = item.creator) == null ? void 0 : _a62.userID), hasDeletePermission = (deleteAction == null ? void 0 : deleteAction.allowed) || currentUser.userID === ((_b = item.creator) == null ? void 0 : _b.userID);
20550
+ const editAction = item.actions.find((action) => action.action === D.Edit), editPermission = editAction == null ? void 0 : editAction.allowed, viewAction = item.actions.find((action) => action.action === D.View), viewPermission = viewAction == null ? void 0 : viewAction.allowed, manageCollaboratorAction = item.actions.find((action) => action.action === D.ManageCollaborator), deleteAction = item.actions.find((action) => action.action === D.Delete), hasManagerPermission = (manageCollaboratorAction == null ? void 0 : manageCollaboratorAction.allowed) || currentUser.userID === ((_a62 = item.creator) == null ? void 0 : _a62.userID), hasDeletePermission = (deleteAction == null ? void 0 : deleteAction.allowed) || currentUser.userID === ((_b = item.creator) == null ? void 0 : _b.userID);
20537
20551
  let ruleName = "";
20538
20552
  const targetSheet = workbook.getSheetBySheetId(rule.subUnitId), targetName = targetSheet == null ? void 0 : targetSheet.getName();
20539
20553
  if (rule.unitType === L.SelectRange) {
@@ -20906,7 +20920,7 @@ const _RangeProtectionCanViewRenderExtension = class _RangeProtectionCanViewRend
20906
20920
  __publicField(this, "Z_INDEX", EXTENSION_CAN_VIEW_Z_INDEX$1);
20907
20921
  }
20908
20922
  shouldRender(config) {
20909
- return (config == null ? void 0 : config[R.View]) !== !1;
20923
+ return (config == null ? void 0 : config[D.View]) !== !1;
20910
20924
  }
20911
20925
  };
20912
20926
  __name(_RangeProtectionCanViewRenderExtension, "RangeProtectionCanViewRenderExtension");
@@ -20918,7 +20932,7 @@ const _RangeProtectionCanNotViewRenderExtension = class _RangeProtectionCanNotVi
20918
20932
  __publicField(this, "Z_INDEX", EXTENSION_CAN_NOT_VIEW_Z_INDEX$1);
20919
20933
  }
20920
20934
  shouldRender(config) {
20921
- return (config == null ? void 0 : config[R.View]) === !1;
20935
+ return (config == null ? void 0 : config[D.View]) === !1;
20922
20936
  }
20923
20937
  };
20924
20938
  __name(_RangeProtectionCanNotViewRenderExtension, "RangeProtectionCanNotViewRenderExtension");
@@ -20941,7 +20955,7 @@ const worksheetProtectionKey = "worksheet-protection", EXTENSION_CAN_VIEW_Z_INDE
20941
20955
  if (this._pattern) {
20942
20956
  if (selectionProtection.length > 0) {
20943
20957
  const cellProtectionConfig = selectionProtection[0];
20944
- (cellProtectionConfig == null ? void 0 : cellProtectionConfig[R.View]) ? this.setZIndex(EXTENSION_CAN_VIEW_Z_INDEX) : this.setZIndex(EXTENSION_CAN_NOT_VIEW_Z_INDEX);
20958
+ (cellProtectionConfig == null ? void 0 : cellProtectionConfig[D.View]) ? this.setZIndex(EXTENSION_CAN_VIEW_Z_INDEX) : this.setZIndex(EXTENSION_CAN_NOT_VIEW_Z_INDEX);
20945
20959
  }
20946
20960
  ctx.fillStyle = this._pattern, hasWorksheetRule && ctx.fillRect(start.startX, start.startY, end.endX - start.startX, end.endY - start.startY), ctx.restore();
20947
20961
  }
@@ -126,6 +126,9 @@ export declare const CellFEventName: {
126
126
  readonly SelectionMoveEnd: "SelectionMoveEnd";
127
127
  readonly SelectionChanged: "SelectionChanged";
128
128
  };
129
+ /**
130
+ * @ignore
131
+ */
129
132
  export interface IFSheetsUIEventNameMixin {
130
133
  /**
131
134
  * Trigger this event before the clipboard content changes.
@@ -159,10 +162,10 @@ export interface IFSheetsUIEventNameMixin {
159
162
  * @example
160
163
  * ```ts
161
164
  * univerAPI.addEvent(univerAPI.Event.BeforeClipboardPaste, (param) => {
162
- * const {text, html} = param;
163
- * console.log('debugger', text, html);
164
- * // if want to cancel the clipboard paste
165
- * param.cancel = true;
165
+ * const {text, html} = param;
166
+ * console.log('debugger', text, html);
167
+ * // if want to cancel the clipboard paste
168
+ * param.cancel = true;
166
169
  * })
167
170
  * ```
168
171
  */
@@ -173,8 +176,8 @@ export interface IFSheetsUIEventNameMixin {
173
176
  * @example
174
177
  * ```ts
175
178
  * univerAPI.addEvent(univerAPI.Event.ClipboardPasted, (param) => {
176
- * const {text, html} = param;
177
- * console.log('debugger', text, html); // {text: '...', html: '...'}
179
+ * const {text, html} = param;
180
+ * console.log('debugger', text, html); // {text: '...', html: '...'}
178
181
  * })
179
182
  * ```
180
183
  */
@@ -185,7 +188,7 @@ export interface IFSheetsUIEventNameMixin {
185
188
  * @example
186
189
  * ```ts
187
190
  * univerAPI.addEvent(univerAPI.Event.BeforeSheetEditStart, (params) => {
188
- * const { worksheet, workbook, row, column, eventType, keycode, isZenEditor } = params;
191
+ * const { worksheet, workbook, row, column, eventType, keycode, isZenEditor } = params;
189
192
  * });
190
193
  * ```
191
194
  */
@@ -196,7 +199,7 @@ export interface IFSheetsUIEventNameMixin {
196
199
  * @example
197
200
  * ```ts
198
201
  * univerAPI.addEvent(univerAPI.Event.SheetEditStarted, (params) => {
199
- * const { worksheet, workbook, row, column, eventType, keycode, isZenEditor } = params;
202
+ * const { worksheet, workbook, row, column, eventType, keycode, isZenEditor } = params;
200
203
  * });
201
204
  * ```
202
205
  */
@@ -207,7 +210,7 @@ export interface IFSheetsUIEventNameMixin {
207
210
  * @example
208
211
  * ```ts
209
212
  * univerAPI.addEvent(univerAPI.Event.SheetEditChanging, (params) => {
210
- * const { worksheet, workbook, row, column, value, isZenEditor } = params;
213
+ * const { worksheet, workbook, row, column, value, isZenEditor } = params;
211
214
  * });
212
215
  * ```
213
216
  */
@@ -218,7 +221,7 @@ export interface IFSheetsUIEventNameMixin {
218
221
  * @example
219
222
  * ```ts
220
223
  * univerAPI.addEvent(univerAPI.Event.BeforeSheetEditEnd, (params) => {
221
- * const { worksheet, workbook, row, column, value, eventType, keycode, isZenEditor } = params;
224
+ * const { worksheet, workbook, row, column, value, eventType, keycode, isZenEditor } = params;
222
225
  * });
223
226
  * ```
224
227
  */
@@ -229,7 +232,7 @@ export interface IFSheetsUIEventNameMixin {
229
232
  * @example
230
233
  * ```ts
231
234
  * univerAPI.addEvent(univerAPI.Event.SheetEditEnded, (params) => {
232
- * const { worksheet, workbook, row, column, eventType, keycode, isZenEditor } = params;
235
+ * const { worksheet, workbook, row, column, eventType, keycode, isZenEditor } = params;
233
236
  * });
234
237
  * ```
235
238
  */
@@ -239,7 +242,7 @@ export interface IFSheetsUIEventNameMixin {
239
242
  * @see {@link ICellEventParam}
240
243
  * @example
241
244
  * ```ts
242
- * univerAPI.addEvent(univerAPI.Event.CellClicked, (params)=> {
245
+ * univerAPI.addEvent(univerAPI.Event.CellClicked, (params) => {
243
246
  * const { worksheet, workbook, row, column, value, isZenEditor } = params;
244
247
  * });
245
248
  * ```
@@ -250,8 +253,8 @@ export interface IFSheetsUIEventNameMixin {
250
253
  * @see {@link ICellEventParam}
251
254
  * @example
252
255
  * ```ts
253
- * univerAPI.addEvent(univerAPI.Event.CellPointerDown, (params)=> {
254
- * const { worksheet, workbook, row, column } = params;
256
+ * univerAPI.addEvent(univerAPI.Event.CellPointerDown, (params) => {
257
+ * const { worksheet, workbook, row, column } = params;
255
258
  * });
256
259
  * ```
257
260
  */
@@ -261,8 +264,8 @@ export interface IFSheetsUIEventNameMixin {
261
264
  * @see {@link ICellEventParam}
262
265
  * @example
263
266
  * ```ts
264
- * univerAPI.addEvent(univerAPI.Event.CellPointerUp, (params)=> {
265
- * const { worksheet, workbook, row, column } = params;
267
+ * univerAPI.addEvent(univerAPI.Event.CellPointerUp, (params) => {
268
+ * const { worksheet, workbook, row, column } = params;
266
269
  * });
267
270
  * ```
268
271
  */
@@ -272,8 +275,8 @@ export interface IFSheetsUIEventNameMixin {
272
275
  * @see {@link ICellEventParam}
273
276
  * @example
274
277
  * ```ts
275
- * univerAPI.addEvent(univerAPI.Event.CellHover, (params)=> {
276
- * const { worksheet, workbook, row, column } = params;
278
+ * univerAPI.addEvent(univerAPI.Event.CellHover, (params) => {
279
+ * const { worksheet, workbook, row, column } = params;
277
280
  * });
278
281
  * ```
279
282
  */
@@ -283,8 +286,8 @@ export interface IFSheetsUIEventNameMixin {
283
286
  * @see {@link ICellEventParam}
284
287
  * @example
285
288
  * ```ts
286
- * univerAPI.addEvent(univerAPI.Event.CellPointerMove, (params)=> {
287
- * const { worksheet, workbook, row, column } = params;
289
+ * univerAPI.addEvent(univerAPI.Event.CellPointerMove, (params) => {
290
+ * const { worksheet, workbook, row, column } = params;
288
291
  * });
289
292
  * ```
290
293
  */
@@ -382,8 +385,8 @@ export interface IFSheetsUIEventNameMixin {
382
385
  * @see {@link ICellEventParam}
383
386
  * @example
384
387
  * ```ts
385
- * univerAPI.getActiveWorkbook().addEvent(univerAPI.Event.DragOver, (params)=> {
386
- * const { worksheet, workbook, row, column } = params;
388
+ * univerAPI.getActiveWorkbook().addEvent(univerAPI.Event.DragOver, (params) => {
389
+ * const { worksheet, workbook, row, column } = params;
387
390
  * });
388
391
  * ```
389
392
  */
@@ -393,7 +396,7 @@ export interface IFSheetsUIEventNameMixin {
393
396
  * @see {@link ICellEventParam}
394
397
  * @example
395
398
  * ```ts
396
- * univerAPI.getActiveWorkbook().addEvent(univerAPI.Event.Drop, (params)=> {
399
+ * univerAPI.getActiveWorkbook().addEvent(univerAPI.Event.Drop, (params) => {
397
400
  * const { worksheet, workbook, row, column } = params;
398
401
  * });
399
402
  * ```
@@ -404,8 +407,8 @@ export interface IFSheetsUIEventNameMixin {
404
407
  * @see {@link IScrollEventParam}
405
408
  * @example
406
409
  * ```ts
407
- * univerAPI.addEvent(univerAPI.Event.Scroll, (params)=> {
408
- * const { worksheet, workbook, scrollX, scrollY } = params;
410
+ * univerAPI.addEvent(univerAPI.Event.Scroll, (params) => {
411
+ * const { worksheet, workbook, scrollX, scrollY } = params;
409
412
  * });
410
413
  * ```
411
414
  */
@@ -416,7 +419,7 @@ export interface IFSheetsUIEventNameMixin {
416
419
  * @example
417
420
  * ```ts
418
421
  * univerAPI.addEvent(univerAPI.Event.SelectionChanged, (p)=> {
419
- * const { worksheet, workbook, selections } = p;
422
+ * const { worksheet, workbook, selections } = p;
420
423
  * });
421
424
  * ```
422
425
  */
@@ -427,7 +430,7 @@ export interface IFSheetsUIEventNameMixin {
427
430
  * @example
428
431
  * ```ts
429
432
  * univerAPI.addEvent(univerAPI.Event.SelectionMoveStart, (p)=> {
430
- * const { worksheet, workbook, selections } = p;
433
+ * const { worksheet, workbook, selections } = p;
431
434
  * });
432
435
  * ```
433
436
  */
@@ -438,7 +441,7 @@ export interface IFSheetsUIEventNameMixin {
438
441
  * @example
439
442
  * ```ts
440
443
  * univerAPI.addEvent(univerAPI.Event.SelectionMoving, (p)=> {
441
- * const { worksheet, workbook, selections } = p;
444
+ * const { worksheet, workbook, selections } = p;
442
445
  * });
443
446
  * ```
444
447
  */
@@ -449,7 +452,7 @@ export interface IFSheetsUIEventNameMixin {
449
452
  * @example
450
453
  * ```ts
451
454
  * univerAPI.addEvent(univerAPI.Event.SelectionMoveEnd, (p)=> {
452
- * const { worksheet, workbook, selections } = p;
455
+ * const { worksheet, workbook, selections } = p;
453
456
  * });
454
457
  * ```
455
458
  */
@@ -460,7 +463,7 @@ export interface IFSheetsUIEventNameMixin {
460
463
  * @example
461
464
  * ```ts
462
465
  * univerAPI.addEvent(univerAPI.Event.SheetZoomChanged, (p)=> {
463
- * const { worksheet, workbook, zoom } = p;
466
+ * const { worksheet, workbook, zoom } = p;
464
467
  * });
465
468
  * ```
466
469
  */
@@ -471,7 +474,7 @@ export interface IFSheetsUIEventNameMixin {
471
474
  * @example
472
475
  * ```ts
473
476
  * univerAPI.addEvent(univerAPI.Event.BeforeSheetZoomChange, (p)=> {
474
- * const { worksheet, workbook, zoom } = p;
477
+ * const { worksheet, workbook, zoom } = p;
475
478
  * });
476
479
  * ```
477
480
  */
@@ -482,7 +485,7 @@ export interface IFSheetsUIEventNameMixin {
482
485
  * @example
483
486
  * ```ts
484
487
  * univerAPI.addEvent(univerAPI.Event.SheetSkeletonChanged, (p)=> {
485
- * const { worksheet, workbook } = p;
488
+ * const { worksheet, workbook } = p;
486
489
  * });
487
490
  * ```
488
491
  */
@@ -520,6 +523,9 @@ export declare class FSheetsUIEventName extends FEventName implements IFSheetsUI
520
523
  get ColumnHeaderHover(): 'ColumnHeaderHover';
521
524
  get SheetSkeletonChanged(): 'SheetSkeletonChanged';
522
525
  }
526
+ /**
527
+ * @ignore
528
+ */
523
529
  export interface ISheetUIEventBase extends IEventBase {
524
530
  /**
525
531
  * The workbook instance currently being operated on. {@link FWorkbook}
@@ -1,4 +1,7 @@
1
1
  import { FPermission } from '@univerjs/sheets/facade';
2
+ /**
3
+ * @ignore
4
+ */
2
5
  export interface IFPermissionSheetsUIMixin {
3
6
  /**
4
7
  * Set visibility of unauthorized pop-up window
@@ -17,6 +17,9 @@ export interface IFComponentKey {
17
17
  }
18
18
  export interface IFCanvasPopup extends Omit<ICanvasPopup, 'componentKey'>, IFComponentKey {
19
19
  }
20
+ /**
21
+ * @ignore
22
+ */
20
23
  interface IFRangeSheetsUIMixin {
21
24
  /**
22
25
  * Return this cell information, including whether it is merged and cell coordinates
@@ -1,6 +1,9 @@
1
1
  import { ICellCustomRender, IDisposable, Nullable, InterceptorEffectEnum } from '@univerjs/core';
2
2
  import { IDragCellPosition, IEditorBridgeServiceVisibleParam, IHoverCellPosition } from '@univerjs/sheets-ui';
3
3
  import { FSheetHooks } from '@univerjs/sheets/facade';
4
+ /**
5
+ * @ignore
6
+ */
4
7
  export interface IFSheetHooksUIMixin {
5
8
  /**
6
9
  * The onCellPointerMove event is fired when a pointer changes coordinates.
@@ -1,6 +1,9 @@
1
1
  import { IDisposable, Injector, FUniver } from '@univerjs/core';
2
2
  import { IColumnsHeaderCfgParam, IRowsHeaderCfgParam, SheetExtension } from '@univerjs/engine-render';
3
3
  import { FSheetHooks } from '@univerjs/sheets/facade';
4
+ /**
5
+ * @ignore
6
+ */
4
7
  export interface IFUniverSheetsUIMixin {
5
8
  /**
6
9
  * Customize the column header of the spreadsheet.
@@ -48,6 +51,9 @@ export interface IFUniverSheetsUIMixin {
48
51
  }
49
52
  export declare class FUniverSheetsUIMixin extends FUniver implements IFUniverSheetsUIMixin {
50
53
  private _initSheetUIEvent;
54
+ /**
55
+ * @ignore
56
+ */
51
57
  _initObserverListener(injector: Injector): void;
52
58
  /**
53
59
  * @ignore
@@ -4,6 +4,9 @@ import { ICellPosWithEvent, IDragCellPosition, IHoverRichTextInfo, IHoverRichTex
4
4
  import { ICellEventParam } from './f-event';
5
5
  import { FWorkbook } from '@univerjs/sheets/facade';
6
6
  import { IDialogPartMethodOptions, ISidebarMethodOptions } from '@univerjs/ui';
7
+ /**
8
+ * @ignore
9
+ */
7
10
  export interface IFWorkbookSheetsUIMixin {
8
11
  /**
9
12
  * Open a sidebar.
@@ -2,6 +2,9 @@ import { IDisposable, IRange, Nullable } from '@univerjs/core';
2
2
  import { SpreadsheetSkeleton } from '@univerjs/engine-render';
3
3
  import { IScrollState, IViewportScrollState } from '@univerjs/sheets-ui';
4
4
  import { FWorksheet } from '@univerjs/sheets/facade';
5
+ /**
6
+ * @ignore
7
+ */
5
8
  export interface IFWorksheetSkeletonMixin {
6
9
  /**
7
10
  * Refresh the canvas.
@@ -13,7 +13,7 @@ export declare const getRepeatRange: (sourceRange: IRange, targetRange: IRange,
13
13
  startRange: IRange;
14
14
  repeatRelativeRange: IRange;
15
15
  }[];
16
- export declare function clipboardItemIsFromExcel(html: string): Promise<boolean>;
16
+ export declare function htmlIsFromExcel(html: string): boolean;
17
17
  export declare function mergeCellValues(...cellValues: IObjectMatrixPrimitiveType<Nullable<ICellData>>[]): IObjectMatrixPrimitiveType<Nullable<ICellData>> | IObjectMatrixPrimitiveType<IObjectMatrixPrimitiveType<Nullable<ICellData>>>;
18
18
  export declare function getRangeValuesMergeable(m1: IMutationInfo<ISetRangeValuesMutationParams>, m2: IMutationInfo<ISetRangeValuesMutationParams>): boolean;
19
19
  export declare function mergeSetRangeValues(mutations: IMutationInfo[]): IMutationInfo<object>[];