@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
@@ -234,8 +234,6 @@ const locale = { "sheets-ui": {
234
234
  notChangeMerge: "لا يمكنك إجراء تغييرات جزئية على الخلايا المدمجة",
235
235
  detailUpdate: "مفتوح حديثاً",
236
236
  detailSave: "تم استعادة ذاكرة التخزين المؤقت المحلية",
237
- row: "",
238
- column: "",
239
237
  loading: "جارٍ التحميل...",
240
238
  copy: "نسخ",
241
239
  return: "خروج",
@@ -67,7 +67,7 @@ const locale = { "sheets-ui": {
67
67
  insert: "Inserir",
68
68
  prevPage: "Anterior",
69
69
  nextPage: "Següent",
70
- total: "total:"
70
+ total: "Total:"
71
71
  },
72
72
  borderLine: {
73
73
  borderTop: "voraSuperior",
@@ -234,8 +234,6 @@ const locale = { "sheets-ui": {
234
234
  notChangeMerge: "No podeu fer canvis parcials a les cel·les combinades",
235
235
  detailUpdate: "Obert de nou",
236
236
  detailSave: "Memòria cau local restaurada",
237
- row: "",
238
- column: "",
239
237
  loading: "S'està carregant...",
240
238
  copy: "Copiar",
241
239
  return: "Sortir",
@@ -234,8 +234,6 @@ const locale = { "sheets-ui": {
234
234
  notChangeMerge: "Sie können an verbundenen Zellen keine Teiländerungen vornehmen",
235
235
  detailUpdate: "Neu geöffnet",
236
236
  detailSave: "Lokaler Cache wiederhergestellt",
237
- row: "",
238
- column: "",
239
237
  loading: "Wird geladen...",
240
238
  copy: "Kopieren",
241
239
  return: "Beenden",
@@ -249,8 +249,6 @@ const locale = { "sheets-ui": {
249
249
  notChangeMerge: "You cannot make partial changes to the merged cells",
250
250
  detailUpdate: "New opened",
251
251
  detailSave: "Local cache restored",
252
- row: "",
253
- column: "",
254
252
  loading: "Loading...",
255
253
  copy: "Copy",
256
254
  return: "Exit",
@@ -67,7 +67,7 @@ const locale = { "sheets-ui": {
67
67
  insert: "Insertar",
68
68
  prevPage: "Anterior",
69
69
  nextPage: "Siguiente",
70
- total: "total:"
70
+ total: "Total:"
71
71
  },
72
72
  borderLine: {
73
73
  borderTop: "bordeSuperior",
@@ -234,8 +234,6 @@ const locale = { "sheets-ui": {
234
234
  notChangeMerge: "No puedes realizar cambios parciales en las celdas combinadas",
235
235
  detailUpdate: "Nuevo abierto",
236
236
  detailSave: "Caché local restaurada",
237
- row: "",
238
- column: "",
239
237
  loading: "Cargando...",
240
238
  copy: "Copiar",
241
239
  return: "Salir",
@@ -234,8 +234,6 @@ const locale = { "sheets-ui": {
234
234
  notChangeMerge: "شما نمی‌توانید تغییرات جزئی در سلول‌های ادغام شده ایجاد کنید",
235
235
  detailUpdate: "جدید باز شد",
236
236
  detailSave: "پنهانگاه محلی بازیابی شد",
237
- row: "",
238
- column: "",
239
237
  loading: "در حال بارگیری...",
240
238
  copy: "کپی",
241
239
  return: "خروج",
@@ -234,8 +234,6 @@ const locale = { "sheets-ui": {
234
234
  notChangeMerge: "Vous ne pouvez pas apporter de modifications partielles aux cellules fusionnées",
235
235
  detailUpdate: "Nouvellement ouvert",
236
236
  detailSave: "Cache local restauré",
237
- row: "Ligne",
238
- column: "Colonne",
239
237
  loading: "Chargement...",
240
238
  copy: "Copier",
241
239
  return: "Quitter",
@@ -67,7 +67,7 @@ const locale = { "sheets-ui": {
67
67
  insert: "Sisipkan",
68
68
  prevPage: "Sebelumnya",
69
69
  nextPage: "Berikutnya",
70
- total: "total:"
70
+ total: "Total:"
71
71
  },
72
72
  borderLine: {
73
73
  borderTop: "Batas atas",
@@ -234,8 +234,6 @@ const locale = { "sheets-ui": {
234
234
  notChangeMerge: "Anda tidak dapat melakukan perubahan sebagian pada sel yang digabungkan",
235
235
  detailUpdate: "Baru dibuka",
236
236
  detailSave: "Cache lokal dipulihkan",
237
- row: "",
238
- column: "",
239
237
  loading: "Memuat...",
240
238
  copy: "Salin",
241
239
  return: "Keluar",
@@ -234,8 +234,6 @@ const locale = { "sheets-ui": {
234
234
  notChangeMerge: "Non puoi apportare modifiche parziali alle celle unite",
235
235
  detailUpdate: "Nuovo aperto",
236
236
  detailSave: "Cache locale ripristinata",
237
- row: "",
238
- column: "",
239
237
  loading: "Caricamento...",
240
238
  copy: "Copia",
241
239
  return: "Esci",
@@ -234,8 +234,6 @@ const locale = { "sheets-ui": {
234
234
  notChangeMerge: "結合セルに対して部分的な変更はできません",
235
235
  detailUpdate: "再読み込み",
236
236
  detailSave: "ローカルキャッシュを復元",
237
- row: "",
238
- column: "",
239
237
  loading: "読み込み中...",
240
238
  copy: "コピー",
241
239
  return: "終了",
@@ -224,7 +224,7 @@ const locale = { "sheets-ui": {
224
224
  hideAllRowsAlert: "행을 모두 숨길 수 없습니다",
225
225
  hideAllColumnsAlert: "열을 모두 숨길 수 없습니다",
226
226
  protectRange: "행과 열 보호",
227
- editProtectRange: "Set Protection Range",
227
+ editProtectRange: "보호 범위 설정",
228
228
  removeProtectRange: "보호 범위 제거",
229
229
  turnOnProtectRange: "보호 범위 추가",
230
230
  viewAllProtectArea: "모든 보호 범위 보기",
@@ -234,15 +234,13 @@ const locale = { "sheets-ui": {
234
234
  notChangeMerge: "병합된 셀에 대해 부분적인 변경을 할 수 없습니다",
235
235
  detailUpdate: "새로 열림",
236
236
  detailSave: "로컬 캐시 복원",
237
- row: "",
238
- column: "",
239
237
  loading: "로딩중...",
240
238
  copy: "복사",
241
239
  return: "종료",
242
240
  rename: "이름 변경",
243
241
  tips: "이름 변경",
244
- noName: "Untitled spreadsheet",
245
- wait: "waiting for update",
242
+ noName: "제목 없는 스프레드시트",
243
+ wait: "업데이트 대기 ",
246
244
  add: "추가",
247
245
  addLast: "아래에 더 많은 행 추가",
248
246
  backTop: "맨 위로 이동",
@@ -266,12 +264,12 @@ const locale = { "sheets-ui": {
266
264
  }
267
265
  },
268
266
  statusbar: {
269
- sum: "Sum",
270
- average: "Average",
271
- min: "Min",
272
- max: "Max",
273
- count: "Numerical Count",
274
- countA: "Count",
267
+ sum: "합계",
268
+ average: "평균",
269
+ min: "최솟값",
270
+ max: "최댓값",
271
+ count: "숫자 개수",
272
+ countA: "개수",
275
273
  clickToCopy: "클릭하여 복사",
276
274
  copied: "복사됨"
277
275
  },
@@ -234,8 +234,6 @@ const locale = { "sheets-ui": {
234
234
  notChangeMerge: "Nie możesz wprowadzać częściowych zmian w scalonych komórkach",
235
235
  detailUpdate: "Nowo otwarty",
236
236
  detailSave: "Przywrócono lokalną pamięć podręczną",
237
- row: "",
238
- column: "",
239
237
  loading: "Ładowanie...",
240
238
  copy: "Kopiuj",
241
239
  return: "Wyjdź",
@@ -67,7 +67,7 @@ const locale = { "sheets-ui": {
67
67
  insert: "Inserir",
68
68
  prevPage: "Anterior",
69
69
  nextPage: "Próximo",
70
- total: "total:"
70
+ total: "Total:"
71
71
  },
72
72
  borderLine: {
73
73
  borderTop: "borda superior",
@@ -234,8 +234,6 @@ const locale = { "sheets-ui": {
234
234
  notChangeMerge: "Você não pode fazer alterações parciais nas células mescladas",
235
235
  detailUpdate: "Novo aberto",
236
236
  detailSave: "Cache local restaurado",
237
- row: "",
238
- column: "",
239
237
  loading: "Carregando...",
240
238
  copy: "Copiar",
241
239
  return: "Sair",
@@ -234,8 +234,6 @@ const locale = { "sheets-ui": {
234
234
  notChangeMerge: "Вы не можете частично изменить объединенные ячейки",
235
235
  detailUpdate: "Новый открытый",
236
236
  detailSave: "Восстановлено из локального кэша",
237
- row: "",
238
- column: "",
239
237
  loading: "Загрузка...",
240
238
  copy: "Копировать",
241
239
  return: "Выход",
@@ -234,8 +234,6 @@ const locale = { "sheets-ui": {
234
234
  notChangeMerge: "Nie je možné vykonať čiastočné zmeny v zlúčených bunkách",
235
235
  detailUpdate: "Práve otvorené",
236
236
  detailSave: "Obnovená miestna vyrovnávacia pamäť",
237
- row: "",
238
- column: "",
239
237
  loading: "Načítava sa...",
240
238
  copy: "Kopírovať",
241
239
  return: "Ukončiť",
@@ -234,8 +234,6 @@ const locale = { "sheets-ui": {
234
234
  notChangeMerge: "Không thể thay đổi một phần của ô hợp nhất",
235
235
  detailUpdate: "Mở mới",
236
236
  detailSave: "Đã khôi phục từ bộ nhớ đệm cục bộ",
237
- row: "Hàng",
238
- column: "Cột",
239
237
  loading: "Đang render···",
240
238
  copy: "Bản sao",
241
239
  return: "Quay lại",
@@ -234,8 +234,6 @@ const locale = { "sheets-ui": {
234
234
  notChangeMerge: "不能对合并单元格做部分更改",
235
235
  detailUpdate: "新打开",
236
236
  detailSave: "已恢复本地缓存",
237
- row: "行",
238
- column: "列",
239
237
  loading: "渲染中···",
240
238
  copy: "副本",
241
239
  return: "返回",
@@ -328,7 +326,7 @@ const locale = { "sheets-ui": {
328
326
  inputRangePlaceholder: "请输入范围(必填)",
329
327
  inputFormulaPlaceholder: "请输入公式(必填)",
330
328
  formulaOrRefStringInvalid: "公式或引用字符串无效",
331
- defaultName: "DefinedName",
329
+ defaultName: "定义名称",
332
330
  updateButton: "修改",
333
331
  deleteButton: "删除",
334
332
  deleteConfirmText: "确定删除定义名称?"
@@ -234,13 +234,11 @@ const locale = { "sheets-ui": {
234
234
  notChangeMerge: "不能對合併儲存格做部分更改",
235
235
  detailUpdate: "新開啟",
236
236
  detailSave: "已恢復本機快取",
237
- row: "列",
238
- column: "欄",
239
237
  loading: "渲染中···",
240
238
  copy: "副本",
241
239
  return: "返回",
242
240
  rename: "重新命名",
243
- tips: "重命名",
241
+ tips: "重新命名",
244
242
  noName: "未命名的試算表",
245
243
  wait: "待更新",
246
244
  add: "新增",
@@ -328,7 +326,7 @@ const locale = { "sheets-ui": {
328
326
  inputRangePlaceholder: "請輸入範圍(必填)",
329
327
  inputFormulaPlaceholder: "請輸入公式(必填)",
330
328
  formulaOrRefStringInvalid: "公式或引用字串無效",
331
- defaultName: "DefinedName",
329
+ defaultName: "定義名稱",
332
330
  updateButton: "修改",
333
331
  deleteButton: "刪除",
334
332
  deleteConfirmText: "確定刪除定義名稱? "
@@ -403,7 +401,7 @@ const locale = { "sheets-ui": {
403
401
  setCellStyle: "設定儲存格樣式",
404
402
  copy: "複製",
405
403
  alert: "提示",
406
- search: "搜索",
404
+ search: "搜尋",
407
405
  ownerInherit: "文檔所有者,已開啟權限繼承",
408
406
  ownerWithoutInherit: "文檔所有者,未開啟權限繼承",
409
407
  alertContent: "該範圍已被保護,目前無編輯權限。如需編輯,請聯絡創建者。 ",
@@ -234,13 +234,11 @@ const locale = { "sheets-ui": {
234
234
  notChangeMerge: "不能對合併儲存格做部分更改",
235
235
  detailUpdate: "新開啟",
236
236
  detailSave: "已恢復本機快取",
237
- row: "列",
238
- column: "欄",
239
237
  loading: "渲染中···",
240
238
  copy: "副本",
241
239
  return: "返回",
242
240
  rename: "重新命名",
243
- tips: "重命名",
241
+ tips: "重新命名",
244
242
  noName: "未命名的試算表",
245
243
  wait: "待更新",
246
244
  add: "新增",
@@ -328,7 +326,7 @@ const locale = { "sheets-ui": {
328
326
  inputRangePlaceholder: "請輸入範圍(必填)",
329
327
  inputFormulaPlaceholder: "請輸入公式(必填)",
330
328
  formulaOrRefStringInvalid: "公式或引用字串無效",
331
- defaultName: "DefinedName",
329
+ defaultName: "定義名稱",
332
330
  updateButton: "修改",
333
331
  deleteButton: "刪除",
334
332
  deleteConfirmText: "確定刪除定義名稱? "
@@ -403,7 +401,7 @@ const locale = { "sheets-ui": {
403
401
  setCellStyle: "設定儲存格樣式",
404
402
  copy: "複製",
405
403
  alert: "提示",
406
- search: "搜索",
404
+ search: "搜尋",
407
405
  ownerInherit: "文檔所有者,已開啟權限繼承",
408
406
  ownerWithoutInherit: "文檔所有者,未開啟權限繼承",
409
407
  alertContent: "該範圍已被保護,目前無編輯權限。如需編輯,請聯絡創建者。 ",
package/lib/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
  }
package/lib/index.css CHANGED
@@ -11,10 +11,7 @@
11
11
  }
12
12
 
13
13
  .univer-inset-0 {
14
- top: 0;
15
- bottom: 0;
16
- left: 0;
17
- right: 0;
14
+ inset: 0;
18
15
  }
19
16
 
20
17
  .-univer-bottom-0\.5 {
@@ -493,7 +490,6 @@
493
490
  }
494
491
 
495
492
  .univer-appearance-none {
496
- -webkit-appearance: none;
497
493
  appearance: none;
498
494
  }
499
495
 
@@ -650,6 +646,11 @@
650
646
  border-radius: .125rem;
651
647
  }
652
648
 
649
+ .univer-rounded-t {
650
+ border-top-left-radius: .25rem;
651
+ border-top-right-radius: .25rem;
652
+ }
653
+
653
654
  .univer-border-2 {
654
655
  border-width: 2px;
655
656
  }