@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: "該範圍已被保護,目前無編輯權限。如需編輯,請聯絡創建者。 ",
@@ -20,7 +20,5 @@ export declare const SetCellEditVisibleWithF2Operation: IOperation<IEditorBridge
20
20
  /**
21
21
  * When the editor is not clicked to change the cursor,
22
22
  * the arrow keys will exit editing and move the cell.
23
- *
24
- * @deprecated Should not use operation as an event.
25
23
  */
26
24
  export declare const SetCellEditVisibleArrowOperation: IOperation<IEditorBridgeServiceVisibleParam>;
@@ -79,10 +79,6 @@ export interface IUniverSheetsUIConfig {
79
79
  defaultColumnCount?: number;
80
80
  };
81
81
  };
82
- /**
83
- * @deprecated Use `footer.statisticBar` instead.
84
- */
85
- statusBarStatistic?: boolean;
86
82
  clipboardConfig?: {
87
83
  hidePasteOptions?: boolean;
88
84
  };
@@ -69,7 +69,6 @@ export declare class EditingRenderController extends Disposable {
69
69
  private _refreshCurrentSelections;
70
70
  private _handleEditorInvisible;
71
71
  private _getEditorObject;
72
- private _isCellImageData;
73
72
  submitCellData(documentDataModel: DocumentDataModel): Promise<boolean>;
74
73
  private _submitEdit;
75
74
  private _removeComposedCellStyleInCellData;
@@ -13,74 +13,14 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import type { IDisposable, Nullable } from '@univerjs/core';
16
+ import type { Nullable } from '@univerjs/core';
17
17
  import type { IColumnsHeaderCfgParam, IRowsHeaderCfgParam } from '@univerjs/engine-render';
18
18
  import type { IScrollState } from '@univerjs/sheets-ui';
19
- import type { IDialogPartMethodOptions, ISidebarMethodOptions } from '@univerjs/ui';
20
19
  import { FWorkbook } from '@univerjs/sheets/facade';
21
20
  /**
22
21
  * @ignore
23
22
  */
24
23
  export interface IFWorkbookSheetsUIMixin {
25
- /**
26
- * Open a sidebar.
27
- * @deprecated use `univerAPI.openSidebar` instead
28
- * @param {ISidebarMethodOptions} params the sidebar options
29
- * @returns {IDisposable} the disposable object
30
- * @example
31
- * ```ts
32
- * univerAPI.openSidebar({
33
- * id: 'mock-sidebar-id',
34
- * width: 300,
35
- * header: {
36
- * label: 'Sidebar Header',
37
- * },
38
- * children: {
39
- * label: 'Sidebar Content',
40
- * },
41
- * footer: {
42
- * label: 'Sidebar Footer',
43
- * },
44
- * onClose: () => {
45
- * console.log('Sidebar closed')
46
- * },
47
- * });
48
- * ```
49
- */
50
- openSiderbar(params: ISidebarMethodOptions): IDisposable;
51
- /**
52
- * Open a dialog.
53
- * @deprecated use `univerAPI.openDialog` instead
54
- * @param {IDialogPartMethodOptions} dialog the dialog options
55
- * @returns {IDisposable} the disposable object
56
- * @example
57
- * ```ts
58
- * import { Button } from '@univerjs/design';
59
- *
60
- * univerAPI.openDialog({
61
- * id: 'mock-dialog-id',
62
- * width: 500,
63
- * title: {
64
- * label: 'Dialog Title',
65
- * },
66
- * children: {
67
- * label: 'Dialog Content',
68
- * },
69
- * footer: {
70
- * title: (
71
- * <>
72
- * <Button onClick={() => { console.log('Cancel clicked') }}>Cancel</Button>
73
- * <Button variant="primary" onClick={() => { console.log('Confirm clicked') }} style={{marginLeft: '10px'}}>Confirm</Button>
74
- * </>
75
- * )
76
- * },
77
- * draggable: true,
78
- * mask: true,
79
- * maskClosable: true,
80
- * });
81
- * ```
82
- */
83
- openDialog(dialog: IDialogPartMethodOptions): IDisposable;
84
24
  /**
85
25
  * Customize the column header of the all worksheets in the workbook.
86
26
  * @param {IColumnsHeaderCfgParam} cfg The configuration of the column header.
@@ -235,8 +175,6 @@ export interface IFWorkbookSheetsUIMixin {
235
175
  showSelection(): FWorkbook;
236
176
  }
237
177
  export declare class FWorkbookSheetsUIMixin extends FWorkbook implements IFWorkbookSheetsUIMixin {
238
- openSiderbar(params: ISidebarMethodOptions): IDisposable;
239
- openDialog(dialog: IDialogPartMethodOptions): IDisposable;
240
178
  customizeColumnHeader(cfg: IColumnsHeaderCfgParam): void;
241
179
  customizeRowHeader(cfg: IRowsHeaderCfgParam): void;
242
180
  /**
@@ -170,29 +170,10 @@ export interface IFWorksheetUIMixin {
170
170
  * ```
171
171
  */
172
172
  getSkeleton(): Nullable<SpreadsheetSkeleton>;
173
- /**
174
- * Sets the width of the given column to fit its contents.
175
- * @param {number} columnPosition - The position of the given column to resize. index starts at 0.
176
- * @returns {FWorksheet} - The FWorksheet instance for chaining.
177
- * @example
178
- * ```ts
179
- * const fWorkbook = univerAPI.getActiveWorkbook();
180
- * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
181
- * if (!fWorksheet) return;
182
- *
183
- * // Set the long text value in cell A1
184
- * const fRange = fWorksheet.getRange('A1');
185
- * fRange.setValue('Whenever it is a damp, drizzly November in my soul...');
186
- *
187
- * // Set the column A to a width which fits the text
188
- * fWorksheet.autoResizeColumn(0);
189
- * ```
190
- */
191
- autoResizeColumn(columnPosition: number): FWorksheet;
192
173
  /**
193
174
  * Sets the width of all columns starting at the given column position to fit their contents.
194
175
  * @param {number} startColumn - The position of the first column to resize. index starts at 0.
195
- * @param {number} numColumns - The number of columns to auto-resize.
176
+ * @param {number} [numColumns] - The number of columns to auto-resize. Default is 1.
196
177
  * @returns {FWorksheet} - The FWorksheet instance for chaining.
197
178
  * @example
198
179
  * ```ts
@@ -204,19 +185,11 @@ export interface IFWorksheetUIMixin {
204
185
  * fWorksheet.autoResizeColumns(0, 3);
205
186
  * ```
206
187
  */
207
- autoResizeColumns(startColumn: number, numColumns: number): FWorksheet;
208
- /**
209
- * Sets the width of all columns starting at the given column position to fit their contents.
210
- * @deprecated use `autoResizeColumns` instead
211
- * @param {number} columnPosition - The position of the first column to resize. index starts at 0.
212
- * @param {number} numColumn - The number of columns to auto-resize.
213
- * @returns {FWorksheet} - The FWorksheet instance for chaining.
214
- */
215
- setColumnAutoWidth(columnPosition: number, numColumn: number): FWorksheet;
188
+ autoResizeColumns(startColumn: number, numColumns?: number): FWorksheet;
216
189
  /**
217
190
  * Sets the height of all rows starting at the given row position to fit their contents.
218
191
  * @param {number} startRow - The position of the first row to resize. index starts at 0.
219
- * @param {number} numRows - The number of rows to auto-resize.
192
+ * @param {number} [numRows] - The number of rows to auto-resize. Default is 1.
220
193
  * @returns {FWorksheet} - The FWorksheet instance for chaining.
221
194
  * @example
222
195
  * ```ts
@@ -228,7 +201,7 @@ export interface IFWorksheetUIMixin {
228
201
  * fWorksheet.autoResizeRows(0, 3);
229
202
  * ```
230
203
  */
231
- autoResizeRows(startRow: number, numRows: number): FWorksheet;
204
+ autoResizeRows(startRow: number, numRows?: number): FWorksheet;
232
205
  /**
233
206
  * Customize the column header of the worksheet.
234
207
  * @param {IColumnsHeaderCfgParam} cfg The configuration of the column header.
@@ -320,10 +293,8 @@ export declare class FWorksheetUIMixin extends FWorksheet implements IFWorksheet
320
293
  scrollToCell(row: number, column: number, duration?: number): FWorksheet;
321
294
  getScrollState(): IScrollState;
322
295
  getSkeleton(): Nullable<SpreadsheetSkeleton>;
323
- autoResizeColumn(columnPosition: number): FWorksheet;
324
- autoResizeColumns(startColumn: number, numColumns: number): FWorksheet;
325
- setColumnAutoWidth(columnPosition: number, numColumn: number): FWorksheet;
326
- autoResizeRows(startRow: number, numRows: number): FWorksheet;
296
+ autoResizeColumns(startColumn: number, numColumns?: number): FWorksheet;
297
+ autoResizeRows(startRow: number, numRows?: number): FWorksheet;
327
298
  customizeColumnHeader(cfg: IColumnsHeaderCfgParam): void;
328
299
  customizeRowHeader(cfg: IRowsHeaderCfgParam): void;
329
300
  setColumnHeaderHeight(height: number): FWorksheet;
@@ -251,8 +251,6 @@ declare const locale: {
251
251
  notChangeMerge: string;
252
252
  detailUpdate: string;
253
253
  detailSave: string;
254
- row: string;
255
- column: string;
256
254
  loading: string;
257
255
  copy: string;
258
256
  return: string;
@@ -111,7 +111,6 @@ export interface ISheetClipboardHook {
111
111
  /**
112
112
  * Properties that would be appended to the td element.
113
113
  *
114
- * @deprecated should be merged with `onCopyCellContent` to `onCopyCell`
115
114
  * @param row row of the the copied cell
116
115
  * @param col col of the the copied cell
117
116
  * @param rowSpan row span of the the copied cell
@@ -72,7 +72,7 @@ export interface IEditorBridgeService {
72
72
  updateEditLocation(row: number, col: number): void;
73
73
  getLatestEditCellState(): Readonly<Nullable<IEditorBridgeServiceParam>>;
74
74
  /**
75
- * @deprecated do not use it directly, use command SetCellEditVisibleOperation as instead.
75
+ * Do not use it directly. Use the `SetCellEditVisibleOperation` command instead.
76
76
  */
77
77
  changeVisible(param: IEditorBridgeServiceVisibleParam): void;
78
78
  changeEditorDirty(dirtyStatus: boolean): void;
@@ -43,14 +43,8 @@ export interface ISheetSelectionRenderService {
43
43
  scene: Scene;
44
44
  }>;
45
45
  }>;
46
- /** @deprecated This should not be provided by the selection render service. */
47
- getViewPort(): Viewport;
48
46
  getSkeleton(): SpreadsheetSkeleton;
49
47
  getSelectionControls(): SelectionControl[];
50
- /**
51
- * @deprecated Please use `getCellWithCoordByOffset` instead.
52
- */
53
- getSelectionCellByPosition(x: number, y: number): ICellWithCoord;
54
48
  getCellWithCoordByOffset(x: number, y: number, skeleton?: SpreadsheetSkeleton): Nullable<ICellWithCoord>;
55
49
  setSingleSelectionEnabled(enabled: boolean): void;
56
50
  refreshSelectionMoveEnd(): void;
@@ -139,8 +133,6 @@ export declare class BaseSelectionRenderService extends Disposable implements IS
139
133
  /**
140
134
  * Reset this._selectionStyle to default normal selection style
141
135
  */
142
- /** @deprecated This should not be provided by the selection render service. */
143
- getViewPort(): Viewport;
144
136
  setSingleSelectionEnabled(enabled?: boolean): void;
145
137
  newSelectionControl(scene: Scene, skeleton: SpreadsheetSkeleton, selection: ISelectionWithStyle): SelectionControl;
146
138
  /**
@@ -199,10 +191,6 @@ export declare class BaseSelectionRenderService extends Disposable implements IS
199
191
  * @param moveStartPosY
200
192
  */
201
193
  protected _setupPointerMoveListener(viewportMain: Nullable<Viewport>, activeSelectionControl: SelectionControl, rangeType: RANGE_TYPE, scrollTimerType: ScrollTimerType | undefined, moveStartPosX: number, moveStartPosY: number): void;
202
- /**
203
- * @deprecated Please use `getCellWithCoordByOffset` instead.
204
- */
205
- getSelectionCellByPosition(x: number, y: number): ICellWithCoord;
206
194
  getCellWithCoordByOffset(x: number, y: number, skeletonParam?: SpreadsheetSkeleton): ICellWithCoord;
207
195
  /**
208
196
  * When mousedown and mouseup need to go to the coordination and undo stack, when mousemove does not need to go to the coordination and undo stack
@@ -236,9 +224,4 @@ export declare class BaseSelectionRenderService extends Disposable implements IS
236
224
  }
237
225
  export declare function selectionDataForSelectAll(skeleton: SpreadsheetSkeleton): ISelectionWithStyle;
238
226
  export declare function getTopLeftSelectionOfCurrSheet(skeleton: SpreadsheetSkeleton): ISelectionWithStyle;
239
- /**
240
- * @deprecated use `getTopLeftSelectionOfCurrSheet` instead
241
- */
242
- declare const getTopLeftSelection: typeof getTopLeftSelectionOfCurrSheet;
243
- export { getTopLeftSelection };
244
227
  export declare function genSelectionByRange(skeleton: SpreadsheetSkeleton, range: IRange): ISelectionWithStyle;
@@ -199,18 +199,6 @@ export declare class SelectionControl extends Disposable {
199
199
  * @param selectionWthCoord
200
200
  */
201
201
  updateRangeBySelectionWithCoord(selectionWthCoord: ISelectionWithCoord, sk?: SpreadsheetSkeleton): void;
202
- /**
203
- * Update selection model with new range & primary cell(aka: highlight/current), also update row/col selection size & style.
204
- *
205
- * @deprecated use `updateRangeBySelectionWithCoord` and `updateStyle` to do same thing.
206
- *
207
- * @param newSelectionRange
208
- * @param rowHeaderWidth
209
- * @param columnHeaderHeight
210
- * @param style
211
- * @param primaryCell primary cell
212
- */
213
- update(newSelectionRange: IRangeWithCoord, rowHeaderWidth?: number, columnHeaderHeight?: number, style?: Nullable<ISelectionStyle>, primaryCell?: Nullable<ICellWithCoord>): void;
214
202
  /**
215
203
  * Update primary range.
216
204
  * highlight cell would update if primary cell has value.
@@ -46,7 +46,7 @@ export declare class SelectionRenderModel implements IRangeWithCoord {
46
46
  get currentCell(): Nullable<ICellWithCoord>;
47
47
  get rangeType(): RANGE_TYPE;
48
48
  /**
49
- * @deprecated, Duplicate with `Rectangle`
49
+ * Compares row and column bounds only.
50
50
  */
51
51
  isEqual(rangeWithCoord: IRangeWithCoord): boolean;
52
52
  highlightToSelection(): Nullable<IRangeWithCoord>;
@@ -72,7 +72,6 @@ export declare class SlideTabItem {
72
72
  }
73
73
  export declare class SlideScrollbar {
74
74
  protected _slideTabBar: SlideTabBar;
75
- protected _scrollX: number;
76
75
  constructor(slideTabBar: SlideTabBar);
77
76
  scrollX(x: number): void;
78
77
  scrollRight(): void;
@@ -17,6 +17,6 @@ export declare const SHEET_FOOTER_BAR_HEIGHT = 36;
17
17
  export declare function RenderSheetFooter(): import("react").JSX.Element | null;
18
18
  export declare function RenderSheetHeader(): import("react").JSX.Element | null;
19
19
  /**
20
- * @deprecated We should not write into this component anymore.
20
+ * We should not write into this component anymore.
21
21
  */
22
22
  export declare function RenderSheetContent(): import("react").JSX.Element | null;