@univerjs/sheets-ui 1.0.0-alpha.7 → 1.0.0-beta.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.
Files changed (100) hide show
  1. package/lib/cjs/facade.js +14 -41
  2. package/lib/cjs/index.js +736 -838
  3. package/lib/cjs/locale/ar-SA.js +0 -2
  4. package/lib/cjs/locale/ca-ES.js +1 -3
  5. package/lib/cjs/locale/de-DE.js +0 -2
  6. package/lib/cjs/locale/en-US.js +0 -2
  7. package/lib/cjs/locale/es-ES.js +1 -3
  8. package/lib/cjs/locale/fa-IR.js +0 -2
  9. package/lib/cjs/locale/fr-FR.js +0 -2
  10. package/lib/cjs/locale/id-ID.js +1 -3
  11. package/lib/cjs/locale/it-IT.js +0 -2
  12. package/lib/cjs/locale/ja-JP.js +0 -2
  13. package/lib/cjs/locale/ko-KR.js +9 -11
  14. package/lib/cjs/locale/pl-PL.js +0 -2
  15. package/lib/cjs/locale/pt-BR.js +1 -3
  16. package/lib/cjs/locale/ru-RU.js +0 -2
  17. package/lib/cjs/locale/sk-SK.js +0 -2
  18. package/lib/cjs/locale/vi-VN.js +0 -2
  19. package/lib/cjs/locale/zh-CN.js +1 -3
  20. package/lib/cjs/locale/zh-HK.js +3 -5
  21. package/lib/cjs/locale/zh-TW.js +3 -5
  22. package/lib/es/facade.js +15 -42
  23. package/lib/es/index.js +743 -845
  24. package/lib/es/locale/ar-SA.js +0 -2
  25. package/lib/es/locale/ca-ES.js +1 -3
  26. package/lib/es/locale/de-DE.js +0 -2
  27. package/lib/es/locale/en-US.js +0 -2
  28. package/lib/es/locale/es-ES.js +1 -3
  29. package/lib/es/locale/fa-IR.js +0 -2
  30. package/lib/es/locale/fr-FR.js +0 -2
  31. package/lib/es/locale/id-ID.js +1 -3
  32. package/lib/es/locale/it-IT.js +0 -2
  33. package/lib/es/locale/ja-JP.js +0 -2
  34. package/lib/es/locale/ko-KR.js +9 -11
  35. package/lib/es/locale/pl-PL.js +0 -2
  36. package/lib/es/locale/pt-BR.js +1 -3
  37. package/lib/es/locale/ru-RU.js +0 -2
  38. package/lib/es/locale/sk-SK.js +0 -2
  39. package/lib/es/locale/vi-VN.js +0 -2
  40. package/lib/es/locale/zh-CN.js +1 -3
  41. package/lib/es/locale/zh-HK.js +3 -5
  42. package/lib/es/locale/zh-TW.js +3 -5
  43. package/lib/facade.js +15 -42
  44. package/lib/index.css +6 -5
  45. package/lib/index.js +743 -845
  46. package/lib/locale/ar-SA.js +0 -2
  47. package/lib/locale/ca-ES.js +1 -3
  48. package/lib/locale/de-DE.js +0 -2
  49. package/lib/locale/en-US.js +0 -2
  50. package/lib/locale/es-ES.js +1 -3
  51. package/lib/locale/fa-IR.js +0 -2
  52. package/lib/locale/fr-FR.js +0 -2
  53. package/lib/locale/id-ID.js +1 -3
  54. package/lib/locale/it-IT.js +0 -2
  55. package/lib/locale/ja-JP.js +0 -2
  56. package/lib/locale/ko-KR.js +9 -11
  57. package/lib/locale/pl-PL.js +0 -2
  58. package/lib/locale/pt-BR.js +1 -3
  59. package/lib/locale/ru-RU.js +0 -2
  60. package/lib/locale/sk-SK.js +0 -2
  61. package/lib/locale/vi-VN.js +0 -2
  62. package/lib/locale/zh-CN.js +1 -3
  63. package/lib/locale/zh-HK.js +3 -5
  64. package/lib/locale/zh-TW.js +3 -5
  65. package/lib/types/commands/operations/cell-edit.operation.d.ts +0 -2
  66. package/lib/types/config/config.d.ts +0 -4
  67. package/lib/types/controllers/editor/editing.render-controller.d.ts +0 -1
  68. package/lib/types/facade/f-workbook.d.ts +1 -63
  69. package/lib/types/facade/f-worksheet.d.ts +6 -35
  70. package/lib/types/locale/en-US.d.ts +0 -2
  71. package/lib/types/services/clipboard/type.d.ts +0 -1
  72. package/lib/types/services/editor-bridge.service.d.ts +1 -1
  73. package/lib/types/services/selection/base-selection-render.service.d.ts +0 -17
  74. package/lib/types/services/selection/selection-control.d.ts +0 -12
  75. package/lib/types/services/selection/selection-render-model.d.ts +1 -1
  76. package/lib/types/views/sheet-bar/sheet-bar-tabs/utils/slide-tab-bar.d.ts +0 -1
  77. package/lib/types/views/sheet-container/SheetContainer.d.ts +1 -1
  78. package/lib/umd/facade.js +1 -1
  79. package/lib/umd/index.js +11 -11
  80. package/lib/umd/locale/ar-SA.js +1 -1
  81. package/lib/umd/locale/ca-ES.js +1 -1
  82. package/lib/umd/locale/de-DE.js +1 -1
  83. package/lib/umd/locale/en-US.js +1 -1
  84. package/lib/umd/locale/es-ES.js +1 -1
  85. package/lib/umd/locale/fa-IR.js +1 -1
  86. package/lib/umd/locale/fr-FR.js +1 -1
  87. package/lib/umd/locale/id-ID.js +1 -1
  88. package/lib/umd/locale/it-IT.js +1 -1
  89. package/lib/umd/locale/ja-JP.js +1 -1
  90. package/lib/umd/locale/ko-KR.js +1 -1
  91. package/lib/umd/locale/pl-PL.js +1 -1
  92. package/lib/umd/locale/pt-BR.js +1 -1
  93. package/lib/umd/locale/ru-RU.js +1 -1
  94. package/lib/umd/locale/sk-SK.js +1 -1
  95. package/lib/umd/locale/vi-VN.js +1 -1
  96. package/lib/umd/locale/zh-CN.js +1 -1
  97. package/lib/umd/locale/zh-HK.js +1 -1
  98. package/lib/umd/locale/zh-TW.js +1 -1
  99. package/package.json +15 -15
  100. package/lib/types/views/editor-container/EditorContainer.spec.d.ts +0 -16
@@ -235,8 +235,6 @@ const locale = { "sheets-ui": {
235
235
  notChangeMerge: "لا يمكنك إجراء تغييرات جزئية على الخلايا المدمجة",
236
236
  detailUpdate: "مفتوح حديثاً",
237
237
  detailSave: "تم استعادة ذاكرة التخزين المؤقت المحلية",
238
- row: "",
239
- column: "",
240
238
  loading: "جارٍ التحميل...",
241
239
  copy: "نسخ",
242
240
  return: "خروج",
@@ -68,7 +68,7 @@ const locale = { "sheets-ui": {
68
68
  insert: "Inserir",
69
69
  prevPage: "Anterior",
70
70
  nextPage: "Següent",
71
- total: "total:"
71
+ total: "Total:"
72
72
  },
73
73
  borderLine: {
74
74
  borderTop: "voraSuperior",
@@ -235,8 +235,6 @@ const locale = { "sheets-ui": {
235
235
  notChangeMerge: "No podeu fer canvis parcials a les cel·les combinades",
236
236
  detailUpdate: "Obert de nou",
237
237
  detailSave: "Memòria cau local restaurada",
238
- row: "",
239
- column: "",
240
238
  loading: "S'està carregant...",
241
239
  copy: "Copiar",
242
240
  return: "Sortir",
@@ -235,8 +235,6 @@ const locale = { "sheets-ui": {
235
235
  notChangeMerge: "Sie können an verbundenen Zellen keine Teiländerungen vornehmen",
236
236
  detailUpdate: "Neu geöffnet",
237
237
  detailSave: "Lokaler Cache wiederhergestellt",
238
- row: "",
239
- column: "",
240
238
  loading: "Wird geladen...",
241
239
  copy: "Kopieren",
242
240
  return: "Beenden",
@@ -250,8 +250,6 @@ const locale = { "sheets-ui": {
250
250
  notChangeMerge: "You cannot make partial changes to the merged cells",
251
251
  detailUpdate: "New opened",
252
252
  detailSave: "Local cache restored",
253
- row: "",
254
- column: "",
255
253
  loading: "Loading...",
256
254
  copy: "Copy",
257
255
  return: "Exit",
@@ -68,7 +68,7 @@ const locale = { "sheets-ui": {
68
68
  insert: "Insertar",
69
69
  prevPage: "Anterior",
70
70
  nextPage: "Siguiente",
71
- total: "total:"
71
+ total: "Total:"
72
72
  },
73
73
  borderLine: {
74
74
  borderTop: "bordeSuperior",
@@ -235,8 +235,6 @@ const locale = { "sheets-ui": {
235
235
  notChangeMerge: "No puedes realizar cambios parciales en las celdas combinadas",
236
236
  detailUpdate: "Nuevo abierto",
237
237
  detailSave: "Caché local restaurada",
238
- row: "",
239
- column: "",
240
238
  loading: "Cargando...",
241
239
  copy: "Copiar",
242
240
  return: "Salir",
@@ -235,8 +235,6 @@ const locale = { "sheets-ui": {
235
235
  notChangeMerge: "شما نمی‌توانید تغییرات جزئی در سلول‌های ادغام شده ایجاد کنید",
236
236
  detailUpdate: "جدید باز شد",
237
237
  detailSave: "پنهانگاه محلی بازیابی شد",
238
- row: "",
239
- column: "",
240
238
  loading: "در حال بارگیری...",
241
239
  copy: "کپی",
242
240
  return: "خروج",
@@ -235,8 +235,6 @@ const locale = { "sheets-ui": {
235
235
  notChangeMerge: "Vous ne pouvez pas apporter de modifications partielles aux cellules fusionnées",
236
236
  detailUpdate: "Nouvellement ouvert",
237
237
  detailSave: "Cache local restauré",
238
- row: "Ligne",
239
- column: "Colonne",
240
238
  loading: "Chargement...",
241
239
  copy: "Copier",
242
240
  return: "Quitter",
@@ -68,7 +68,7 @@ const locale = { "sheets-ui": {
68
68
  insert: "Sisipkan",
69
69
  prevPage: "Sebelumnya",
70
70
  nextPage: "Berikutnya",
71
- total: "total:"
71
+ total: "Total:"
72
72
  },
73
73
  borderLine: {
74
74
  borderTop: "Batas atas",
@@ -235,8 +235,6 @@ const locale = { "sheets-ui": {
235
235
  notChangeMerge: "Anda tidak dapat melakukan perubahan sebagian pada sel yang digabungkan",
236
236
  detailUpdate: "Baru dibuka",
237
237
  detailSave: "Cache lokal dipulihkan",
238
- row: "",
239
- column: "",
240
238
  loading: "Memuat...",
241
239
  copy: "Salin",
242
240
  return: "Keluar",
@@ -235,8 +235,6 @@ const locale = { "sheets-ui": {
235
235
  notChangeMerge: "Non puoi apportare modifiche parziali alle celle unite",
236
236
  detailUpdate: "Nuovo aperto",
237
237
  detailSave: "Cache locale ripristinata",
238
- row: "",
239
- column: "",
240
238
  loading: "Caricamento...",
241
239
  copy: "Copia",
242
240
  return: "Esci",
@@ -235,8 +235,6 @@ const locale = { "sheets-ui": {
235
235
  notChangeMerge: "結合セルに対して部分的な変更はできません",
236
236
  detailUpdate: "再読み込み",
237
237
  detailSave: "ローカルキャッシュを復元",
238
- row: "",
239
- column: "",
240
238
  loading: "読み込み中...",
241
239
  copy: "コピー",
242
240
  return: "終了",
@@ -225,7 +225,7 @@ const locale = { "sheets-ui": {
225
225
  hideAllRowsAlert: "행을 모두 숨길 수 없습니다",
226
226
  hideAllColumnsAlert: "열을 모두 숨길 수 없습니다",
227
227
  protectRange: "행과 열 보호",
228
- editProtectRange: "Set Protection Range",
228
+ editProtectRange: "보호 범위 설정",
229
229
  removeProtectRange: "보호 범위 제거",
230
230
  turnOnProtectRange: "보호 범위 추가",
231
231
  viewAllProtectArea: "모든 보호 범위 보기",
@@ -235,15 +235,13 @@ const locale = { "sheets-ui": {
235
235
  notChangeMerge: "병합된 셀에 대해 부분적인 변경을 할 수 없습니다",
236
236
  detailUpdate: "새로 열림",
237
237
  detailSave: "로컬 캐시 복원",
238
- row: "",
239
- column: "",
240
238
  loading: "로딩중...",
241
239
  copy: "복사",
242
240
  return: "종료",
243
241
  rename: "이름 변경",
244
242
  tips: "이름 변경",
245
- noName: "Untitled spreadsheet",
246
- wait: "waiting for update",
243
+ noName: "제목 없는 스프레드시트",
244
+ wait: "업데이트 대기 ",
247
245
  add: "추가",
248
246
  addLast: "아래에 더 많은 행 추가",
249
247
  backTop: "맨 위로 이동",
@@ -267,12 +265,12 @@ const locale = { "sheets-ui": {
267
265
  }
268
266
  },
269
267
  statusbar: {
270
- sum: "Sum",
271
- average: "Average",
272
- min: "Min",
273
- max: "Max",
274
- count: "Numerical Count",
275
- countA: "Count",
268
+ sum: "합계",
269
+ average: "평균",
270
+ min: "최솟값",
271
+ max: "최댓값",
272
+ count: "숫자 개수",
273
+ countA: "개수",
276
274
  clickToCopy: "클릭하여 복사",
277
275
  copied: "복사됨"
278
276
  },
@@ -235,8 +235,6 @@ const locale = { "sheets-ui": {
235
235
  notChangeMerge: "Nie możesz wprowadzać częściowych zmian w scalonych komórkach",
236
236
  detailUpdate: "Nowo otwarty",
237
237
  detailSave: "Przywrócono lokalną pamięć podręczną",
238
- row: "",
239
- column: "",
240
238
  loading: "Ładowanie...",
241
239
  copy: "Kopiuj",
242
240
  return: "Wyjdź",
@@ -68,7 +68,7 @@ const locale = { "sheets-ui": {
68
68
  insert: "Inserir",
69
69
  prevPage: "Anterior",
70
70
  nextPage: "Próximo",
71
- total: "total:"
71
+ total: "Total:"
72
72
  },
73
73
  borderLine: {
74
74
  borderTop: "borda superior",
@@ -235,8 +235,6 @@ const locale = { "sheets-ui": {
235
235
  notChangeMerge: "Você não pode fazer alterações parciais nas células mescladas",
236
236
  detailUpdate: "Novo aberto",
237
237
  detailSave: "Cache local restaurado",
238
- row: "",
239
- column: "",
240
238
  loading: "Carregando...",
241
239
  copy: "Copiar",
242
240
  return: "Sair",
@@ -235,8 +235,6 @@ const locale = { "sheets-ui": {
235
235
  notChangeMerge: "Вы не можете частично изменить объединенные ячейки",
236
236
  detailUpdate: "Новый открытый",
237
237
  detailSave: "Восстановлено из локального кэша",
238
- row: "",
239
- column: "",
240
238
  loading: "Загрузка...",
241
239
  copy: "Копировать",
242
240
  return: "Выход",
@@ -235,8 +235,6 @@ const locale = { "sheets-ui": {
235
235
  notChangeMerge: "Nie je možné vykonať čiastočné zmeny v zlúčených bunkách",
236
236
  detailUpdate: "Práve otvorené",
237
237
  detailSave: "Obnovená miestna vyrovnávacia pamäť",
238
- row: "",
239
- column: "",
240
238
  loading: "Načítava sa...",
241
239
  copy: "Kopírovať",
242
240
  return: "Ukončiť",
@@ -235,8 +235,6 @@ const locale = { "sheets-ui": {
235
235
  notChangeMerge: "Không thể thay đổi một phần của ô hợp nhất",
236
236
  detailUpdate: "Mở mới",
237
237
  detailSave: "Đã khôi phục từ bộ nhớ đệm cục bộ",
238
- row: "Hàng",
239
- column: "Cột",
240
238
  loading: "Đang render···",
241
239
  copy: "Bản sao",
242
240
  return: "Quay lại",
@@ -235,8 +235,6 @@ const locale = { "sheets-ui": {
235
235
  notChangeMerge: "不能对合并单元格做部分更改",
236
236
  detailUpdate: "新打开",
237
237
  detailSave: "已恢复本地缓存",
238
- row: "行",
239
- column: "列",
240
238
  loading: "渲染中···",
241
239
  copy: "副本",
242
240
  return: "返回",
@@ -329,7 +327,7 @@ const locale = { "sheets-ui": {
329
327
  inputRangePlaceholder: "请输入范围(必填)",
330
328
  inputFormulaPlaceholder: "请输入公式(必填)",
331
329
  formulaOrRefStringInvalid: "公式或引用字符串无效",
332
- defaultName: "DefinedName",
330
+ defaultName: "定义名称",
333
331
  updateButton: "修改",
334
332
  deleteButton: "删除",
335
333
  deleteConfirmText: "确定删除定义名称?"
@@ -235,13 +235,11 @@ const locale = { "sheets-ui": {
235
235
  notChangeMerge: "不能對合併儲存格做部分更改",
236
236
  detailUpdate: "新開啟",
237
237
  detailSave: "已恢復本機快取",
238
- row: "列",
239
- column: "欄",
240
238
  loading: "渲染中···",
241
239
  copy: "副本",
242
240
  return: "返回",
243
241
  rename: "重新命名",
244
- tips: "重命名",
242
+ tips: "重新命名",
245
243
  noName: "未命名的試算表",
246
244
  wait: "待更新",
247
245
  add: "新增",
@@ -329,7 +327,7 @@ const locale = { "sheets-ui": {
329
327
  inputRangePlaceholder: "請輸入範圍(必填)",
330
328
  inputFormulaPlaceholder: "請輸入公式(必填)",
331
329
  formulaOrRefStringInvalid: "公式或引用字串無效",
332
- defaultName: "DefinedName",
330
+ defaultName: "定義名稱",
333
331
  updateButton: "修改",
334
332
  deleteButton: "刪除",
335
333
  deleteConfirmText: "確定刪除定義名稱? "
@@ -404,7 +402,7 @@ const locale = { "sheets-ui": {
404
402
  setCellStyle: "設定儲存格樣式",
405
403
  copy: "複製",
406
404
  alert: "提示",
407
- search: "搜索",
405
+ search: "搜尋",
408
406
  ownerInherit: "文檔所有者,已開啟權限繼承",
409
407
  ownerWithoutInherit: "文檔所有者,未開啟權限繼承",
410
408
  alertContent: "該範圍已被保護,目前無編輯權限。如需編輯,請聯絡創建者。 ",
@@ -235,13 +235,11 @@ const locale = { "sheets-ui": {
235
235
  notChangeMerge: "不能對合併儲存格做部分更改",
236
236
  detailUpdate: "新開啟",
237
237
  detailSave: "已恢復本機快取",
238
- row: "列",
239
- column: "欄",
240
238
  loading: "渲染中···",
241
239
  copy: "副本",
242
240
  return: "返回",
243
241
  rename: "重新命名",
244
- tips: "重命名",
242
+ tips: "重新命名",
245
243
  noName: "未命名的試算表",
246
244
  wait: "待更新",
247
245
  add: "新增",
@@ -329,7 +327,7 @@ const locale = { "sheets-ui": {
329
327
  inputRangePlaceholder: "請輸入範圍(必填)",
330
328
  inputFormulaPlaceholder: "請輸入公式(必填)",
331
329
  formulaOrRefStringInvalid: "公式或引用字串無效",
332
- defaultName: "DefinedName",
330
+ defaultName: "定義名稱",
333
331
  updateButton: "修改",
334
332
  deleteButton: "刪除",
335
333
  deleteConfirmText: "確定刪除定義名稱? "
@@ -404,7 +402,7 @@ const locale = { "sheets-ui": {
404
402
  setCellStyle: "設定儲存格樣式",
405
403
  copy: "複製",
406
404
  alert: "提示",
407
- search: "搜索",
405
+ search: "搜尋",
408
406
  ownerInherit: "文檔所有者,已開啟權限繼承",
409
407
  ownerWithoutInherit: "文檔所有者,未開啟權限繼承",
410
408
  alertContent: "該範圍已被保護,目前無編輯權限。如需編輯,請聯絡創建者。 ",
package/lib/es/facade.js CHANGED
@@ -4,7 +4,7 @@ import { RichTextEditingMutation } from "@univerjs/docs";
4
4
  import { DeviceInputEventType, IRenderManagerService, SHEET_VIEWPORT_KEY } from "@univerjs/engine-render";
5
5
  import { COMMAND_LISTENER_SKELETON_CHANGE, INTERCEPTOR_POINT, SetWorksheetRowIsAutoHeightCommand, SheetInterceptorService, SheetsSelectionsService, getSkeletonChangedEffectedRange } from "@univerjs/sheets";
6
6
  import { CellAlertManagerService, DragManagerService, HoverManagerService, IEditorBridgeService, IMarkSelectionService, ISheetCellDropdownManagerService, ISheetClipboardService, ISheetSelectionRenderService, SHEET_VIEW_KEY, SetCellEditVisibleOperation, SetColumnHeaderHeightCommand, SetRowHeaderWidthCommand, SetWorksheetColAutoWidthCommand, SetZoomRatioCommand, SheetCanvasPopManagerService, SheetPasteShortKeyCommand, SheetPermissionRenderManagerService, SheetScrollManagerService, SheetSkeletonManagerService, SheetsScrollRenderController } from "@univerjs/sheets-ui";
7
- import { ComponentManager, CopyCommand, CutCommand, HTML_CLIPBOARD_MIME_TYPE, IClipboardInterfaceService, IDialogService, ISidebarService, KeyCode, PLAIN_TEXT_CLIPBOARD_MIME_TYPE, PasteCommand, supportClipboardAPI } from "@univerjs/ui";
7
+ import { ComponentManager, CopyCommand, CutCommand, HTML_CLIPBOARD_MIME_TYPE, IClipboardInterfaceService, KeyCode, PLAIN_TEXT_CLIPBOARD_MIME_TYPE, PasteCommand, supportClipboardAPI } from "@univerjs/ui";
8
8
  import { combineLatest, filter } from "rxjs";
9
9
  import { FRange, FWorkbook, FWorksheet } from "@univerjs/sheets/facade";
10
10
 
@@ -460,38 +460,34 @@ var FUniverSheetsUIMixin = class extends FUniver {
460
460
  })));
461
461
  if (selectionService) {
462
462
  combined$Disposable.add(this.registerEventHandler(this.Event.SelectionMoveStart, () => selectionService.selectionMoveStart$.subscribe((selections) => {
463
- var _selections$map;
464
463
  const eventParams = {
465
464
  workbook,
466
465
  worksheet: workbook.getActiveSheet(),
467
- selections: (_selections$map = selections === null || selections === void 0 ? void 0 : selections.map((s) => s.range)) !== null && _selections$map !== void 0 ? _selections$map : []
466
+ selections: (selections === null || selections === void 0 ? void 0 : selections.map((s) => s.range)) ?? []
468
467
  };
469
468
  this.fireEvent(this.Event.SelectionMoveStart, eventParams);
470
469
  })));
471
470
  combined$Disposable.add(this.registerEventHandler(this.Event.SelectionMoving, () => selectionService.selectionMoving$.subscribe((selections) => {
472
- var _selections$map2;
473
471
  const eventParams = {
474
472
  workbook,
475
473
  worksheet: workbook.getActiveSheet(),
476
- selections: (_selections$map2 = selections === null || selections === void 0 ? void 0 : selections.map((s) => s.range)) !== null && _selections$map2 !== void 0 ? _selections$map2 : []
474
+ selections: (selections === null || selections === void 0 ? void 0 : selections.map((s) => s.range)) ?? []
477
475
  };
478
476
  this.fireEvent(this.Event.SelectionMoving, eventParams);
479
477
  })));
480
478
  combined$Disposable.add(this.registerEventHandler(this.Event.SelectionMoveEnd, () => selectionService.selectionMoveEnd$.subscribe((selections) => {
481
- var _selections$map3;
482
479
  const eventParams = {
483
480
  workbook,
484
481
  worksheet: workbook.getActiveSheet(),
485
- selections: (_selections$map3 = selections === null || selections === void 0 ? void 0 : selections.map((s) => s.range)) !== null && _selections$map3 !== void 0 ? _selections$map3 : []
482
+ selections: (selections === null || selections === void 0 ? void 0 : selections.map((s) => s.range)) ?? []
486
483
  };
487
484
  this.fireEvent(this.Event.SelectionMoveEnd, eventParams);
488
485
  })));
489
486
  combined$Disposable.add(this.registerEventHandler(this.Event.SelectionChanged, () => selectionService.selectionChanged$.subscribe((selections) => {
490
- var _selections$map4;
491
487
  const eventParams = {
492
488
  workbook,
493
489
  worksheet: workbook.getActiveSheet(),
494
- selections: (_selections$map4 = selections === null || selections === void 0 ? void 0 : selections.map((s) => s.range)) !== null && _selections$map4 !== void 0 ? _selections$map4 : []
490
+ selections: (selections === null || selections === void 0 ? void 0 : selections.map((s) => s.range)) ?? []
495
491
  };
496
492
  this.fireEvent(this.Event.SelectionChanged, eventParams);
497
493
  })));
@@ -736,20 +732,6 @@ FUniver.extend(FUniverSheetsUIMixin);
736
732
  //#endregion
737
733
  //#region src/facade/f-workbook.ts
738
734
  var FWorkbookSheetsUIMixin = class extends FWorkbook {
739
- openSiderbar(params) {
740
- this._logDeprecation("openSiderbar");
741
- return this._injector.get(ISidebarService).open(params);
742
- }
743
- openDialog(dialog) {
744
- this._logDeprecation("openDialog");
745
- const disposable = this._injector.get(IDialogService).open({
746
- ...dialog,
747
- onClose: () => {
748
- disposable.dispose();
749
- }
750
- });
751
- return disposable;
752
- }
753
735
  customizeColumnHeader(cfg) {
754
736
  const unitId = this._workbook.getUnitId();
755
737
  this._getSheetRenderComponent(unitId, SHEET_VIEW_KEY.COLUMN).setCustomHeader(cfg);
@@ -930,10 +912,7 @@ var FWorksheetUIMixin = class extends FWorksheet {
930
912
  const service = (_this$_injector$get$g = this._injector.get(IRenderManagerService).getRenderUnitById(this._workbook.getUnitId())) === null || _this$_injector$get$g === void 0 ? void 0 : _this$_injector$get$g.with(SheetSkeletonManagerService);
931
913
  return service === null || service === void 0 ? void 0 : service.getSkeleton(this._worksheet.getSheetId());
932
914
  }
933
- autoResizeColumn(columnPosition) {
934
- return this.autoResizeColumns(columnPosition, 1);
935
- }
936
- autoResizeColumns(startColumn, numColumns) {
915
+ autoResizeColumns(startColumn, numColumns = 1) {
937
916
  const unitId = this._workbook.getUnitId();
938
917
  const subUnitId = this._worksheet.getSheetId();
939
918
  const ranges = [{
@@ -949,10 +928,7 @@ var FWorksheetUIMixin = class extends FWorksheet {
949
928
  });
950
929
  return this;
951
930
  }
952
- setColumnAutoWidth(columnPosition, numColumn) {
953
- return this.autoResizeColumns(columnPosition, numColumn);
954
- }
955
- autoResizeRows(startRow, numRows) {
931
+ autoResizeRows(startRow, numRows = 1) {
956
932
  const unitId = this._workbook.getUnitId();
957
933
  const subUnitId = this._worksheet.getSheetId();
958
934
  const ranges = [{
@@ -1189,15 +1165,13 @@ var FRangeSheetsUIMixin = class extends FRange {
1189
1165
  };
1190
1166
  }
1191
1167
  generateHTML() {
1192
- var _copyContent$html;
1193
1168
  const copyContent = this._injector.get(ISheetClipboardService).generateCopyContent(this._workbook.getUnitId(), this._worksheet.getSheetId(), this._range);
1194
- return (_copyContent$html = copyContent === null || copyContent === void 0 ? void 0 : copyContent.html) !== null && _copyContent$html !== void 0 ? _copyContent$html : "";
1169
+ return (copyContent === null || copyContent === void 0 ? void 0 : copyContent.html) ?? "";
1195
1170
  }
1196
1171
  attachPopup(popup) {
1197
- var _popup$direction, _popup$extraProps, _popup$offset;
1198
- popup.direction = (_popup$direction = popup.direction) !== null && _popup$direction !== void 0 ? _popup$direction : "horizontal";
1199
- popup.extraProps = (_popup$extraProps = popup.extraProps) !== null && _popup$extraProps !== void 0 ? _popup$extraProps : {};
1200
- popup.offset = (_popup$offset = popup.offset) !== null && _popup$offset !== void 0 ? _popup$offset : [0, 0];
1172
+ popup.direction = popup.direction ?? "horizontal";
1173
+ popup.extraProps = popup.extraProps ?? {};
1174
+ popup.offset = popup.offset ?? [0, 0];
1201
1175
  const { key, disposableCollection } = transformComponentKey(popup, this._injector.get(ComponentManager));
1202
1176
  const disposePopup = this._injector.get(SheetCanvasPopManagerService).attachPopupToCell(this._range.startRow, this._range.startColumn, {
1203
1177
  ...popup,
@@ -1245,10 +1219,9 @@ var FRangeSheetsUIMixin = class extends FRange {
1245
1219
  * ```
1246
1220
  */
1247
1221
  attachRangePopup(popup) {
1248
- var _popup$direction2, _popup$extraProps2, _popup$offset2;
1249
- popup.direction = (_popup$direction2 = popup.direction) !== null && _popup$direction2 !== void 0 ? _popup$direction2 : "top-center";
1250
- popup.extraProps = (_popup$extraProps2 = popup.extraProps) !== null && _popup$extraProps2 !== void 0 ? _popup$extraProps2 : {};
1251
- popup.offset = (_popup$offset2 = popup.offset) !== null && _popup$offset2 !== void 0 ? _popup$offset2 : [0, 0];
1222
+ popup.direction = popup.direction ?? "top-center";
1223
+ popup.extraProps = popup.extraProps ?? {};
1224
+ popup.offset = popup.offset ?? [0, 0];
1252
1225
  const { key, disposableCollection } = transformComponentKey(popup, this._injector.get(ComponentManager));
1253
1226
  const disposePopup = this._injector.get(SheetCanvasPopManagerService).attachRangePopup(this._range, {
1254
1227
  ...popup,
@@ -1290,7 +1263,7 @@ function transformComponentKey(component, componentManager) {
1290
1263
  const disposableCollection = new DisposableCollection();
1291
1264
  if (typeof componentKey === "string") key = componentKey;
1292
1265
  else {
1293
- const resolvedFramework = framework !== null && framework !== void 0 ? framework : "react";
1266
+ const resolvedFramework = framework ?? "react";
1294
1267
  key = resolvedFramework === "web-component" ? `external-${generateRandomId(6).toLowerCase()}` : `External_${generateRandomId(6)}`;
1295
1268
  disposableCollection.add(componentManager.register(key, componentKey, { framework: resolvedFramework }));
1296
1269
  }