@univerjs/sheets-ui 1.0.4 → 1.2.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 (90) hide show
  1. package/lib/cjs/index.js +352 -230
  2. package/lib/cjs/locale/ar-SA.js +15 -0
  3. package/lib/cjs/locale/ca-ES.js +15 -0
  4. package/lib/cjs/locale/de-DE.js +15 -0
  5. package/lib/cjs/locale/en-US.js +15 -0
  6. package/lib/cjs/locale/es-ES.js +15 -0
  7. package/lib/cjs/locale/fa-IR.js +15 -0
  8. package/lib/cjs/locale/fr-FR.js +15 -0
  9. package/lib/cjs/locale/id-ID.js +15 -0
  10. package/lib/cjs/locale/it-IT.js +15 -0
  11. package/lib/cjs/locale/ja-JP.js +15 -0
  12. package/lib/cjs/locale/ko-KR.js +15 -0
  13. package/lib/cjs/locale/pl-PL.js +15 -0
  14. package/lib/cjs/locale/pt-BR.js +15 -0
  15. package/lib/cjs/locale/ru-RU.js +15 -0
  16. package/lib/cjs/locale/sk-SK.js +15 -0
  17. package/lib/cjs/locale/vi-VN.js +15 -0
  18. package/lib/cjs/locale/zh-CN.js +15 -0
  19. package/lib/cjs/locale/zh-HK.js +15 -0
  20. package/lib/cjs/locale/zh-TW.js +15 -0
  21. package/lib/es/index.js +318 -196
  22. package/lib/es/locale/ar-SA.js +15 -0
  23. package/lib/es/locale/ca-ES.js +15 -0
  24. package/lib/es/locale/de-DE.js +15 -0
  25. package/lib/es/locale/en-US.js +15 -0
  26. package/lib/es/locale/es-ES.js +15 -0
  27. package/lib/es/locale/fa-IR.js +15 -0
  28. package/lib/es/locale/fr-FR.js +15 -0
  29. package/lib/es/locale/id-ID.js +15 -0
  30. package/lib/es/locale/it-IT.js +15 -0
  31. package/lib/es/locale/ja-JP.js +15 -0
  32. package/lib/es/locale/ko-KR.js +15 -0
  33. package/lib/es/locale/pl-PL.js +15 -0
  34. package/lib/es/locale/pt-BR.js +15 -0
  35. package/lib/es/locale/ru-RU.js +15 -0
  36. package/lib/es/locale/sk-SK.js +15 -0
  37. package/lib/es/locale/vi-VN.js +15 -0
  38. package/lib/es/locale/zh-CN.js +15 -0
  39. package/lib/es/locale/zh-HK.js +15 -0
  40. package/lib/es/locale/zh-TW.js +15 -0
  41. package/lib/index.css +0 -20
  42. package/lib/index.js +318 -196
  43. package/lib/locale/ar-SA.js +15 -0
  44. package/lib/locale/ca-ES.js +15 -0
  45. package/lib/locale/de-DE.js +15 -0
  46. package/lib/locale/en-US.js +15 -0
  47. package/lib/locale/es-ES.js +15 -0
  48. package/lib/locale/fa-IR.js +15 -0
  49. package/lib/locale/fr-FR.js +15 -0
  50. package/lib/locale/id-ID.js +15 -0
  51. package/lib/locale/it-IT.js +15 -0
  52. package/lib/locale/ja-JP.js +15 -0
  53. package/lib/locale/ko-KR.js +15 -0
  54. package/lib/locale/pl-PL.js +15 -0
  55. package/lib/locale/pt-BR.js +15 -0
  56. package/lib/locale/ru-RU.js +15 -0
  57. package/lib/locale/sk-SK.js +15 -0
  58. package/lib/locale/vi-VN.js +15 -0
  59. package/lib/locale/zh-CN.js +15 -0
  60. package/lib/locale/zh-HK.js +15 -0
  61. package/lib/locale/zh-TW.js +15 -0
  62. package/lib/types/controllers/editor/utils/get-edit-cell-input-position.d.ts +31 -0
  63. package/lib/types/locale/en-US.d.ts +15 -0
  64. package/lib/types/menu/zoom.menu.d.ts +2 -2
  65. package/lib/types/services/cell-alert-manager.service.d.ts +1 -0
  66. package/lib/types/services/editor/cell-editor-resize.service.d.ts +6 -0
  67. package/lib/types/views/border-panel/interface.d.ts +37 -4
  68. package/lib/umd/facade.js +3 -1
  69. package/lib/umd/index.js +10 -12
  70. package/lib/umd/locale/ar-SA.js +1 -1
  71. package/lib/umd/locale/ca-ES.js +1 -1
  72. package/lib/umd/locale/de-DE.js +1 -1
  73. package/lib/umd/locale/en-US.js +1 -1
  74. package/lib/umd/locale/es-ES.js +1 -1
  75. package/lib/umd/locale/fa-IR.js +1 -1
  76. package/lib/umd/locale/fr-FR.js +1 -1
  77. package/lib/umd/locale/id-ID.js +1 -1
  78. package/lib/umd/locale/it-IT.js +1 -1
  79. package/lib/umd/locale/ja-JP.js +1 -1
  80. package/lib/umd/locale/ko-KR.js +1 -1
  81. package/lib/umd/locale/pl-PL.js +1 -1
  82. package/lib/umd/locale/pt-BR.js +1 -1
  83. package/lib/umd/locale/ru-RU.js +1 -1
  84. package/lib/umd/locale/sk-SK.js +1 -1
  85. package/lib/umd/locale/vi-VN.js +1 -1
  86. package/lib/umd/locale/zh-CN.js +1 -1
  87. package/lib/umd/locale/zh-HK.js +1 -1
  88. package/lib/umd/locale/zh-TW.js +1 -1
  89. package/package.json +17 -17
  90. package/lib/types/views/sheet-slider/SheetZoomInput.d.ts +0 -18
@@ -21,6 +21,7 @@ const locale = { "sheets-ui": {
21
21
  shrinkToFit: "تقليص لاحتواء الخلية",
22
22
  textRotateMode: { main: "تدوير النص" },
23
23
  toggleGridlines: "تبديل خطوط الشبكة",
24
+ zoom: "التكبير والتصغير",
24
25
  fullscreen: "ملء الشاشة"
25
26
  },
26
27
  align: {
@@ -35,6 +36,20 @@ const locale = { "sheets-ui": {
35
36
  confirm: "موافق",
36
37
  cancel: "إلغاء"
37
38
  },
39
+ borderStyle: {
40
+ thin: "رفيع",
41
+ hair: "رفيع جدًا",
42
+ dotted: "منقّط",
43
+ dashed: "متقطّع",
44
+ dashDot: "شرطة ونقطة",
45
+ dashDotDot: "شرطة ونقطتان",
46
+ medium: "متوسط",
47
+ mediumDashed: "متقطّع متوسط",
48
+ mediumDashDot: "شرطة ونقطة متوسط",
49
+ mediumDashDotDot: "شرطة ونقطتان متوسط",
50
+ thick: "سميك",
51
+ double: "مزدوج"
52
+ },
38
53
  borderLine: {
39
54
  borderTop: "الحد العلوي",
40
55
  borderBottom: "الحد السفلي",
@@ -21,6 +21,7 @@ const locale = { "sheets-ui": {
21
21
  shrinkToFit: "Redueix per ajustar",
22
22
  textRotateMode: { main: "Girar text" },
23
23
  toggleGridlines: "Alternar línies de quadrícula",
24
+ zoom: "Zoom",
24
25
  fullscreen: "Pantalla completa"
25
26
  },
26
27
  align: {
@@ -35,6 +36,20 @@ const locale = { "sheets-ui": {
35
36
  confirm: "D'acord",
36
37
  cancel: "Cancel·lar"
37
38
  },
39
+ borderStyle: {
40
+ thin: "Fi",
41
+ hair: "Molt fi",
42
+ dotted: "Puntejat",
43
+ dashed: "Discontinu",
44
+ dashDot: "Guió i punt",
45
+ dashDotDot: "Guió i dos punts",
46
+ medium: "Mitjà",
47
+ mediumDashed: "Discontinu mitjà",
48
+ mediumDashDot: "Guió i punt mitjà",
49
+ mediumDashDotDot: "Guió i dos punts mitjà",
50
+ thick: "Gruixut",
51
+ double: "Doble"
52
+ },
38
53
  borderLine: {
39
54
  borderTop: "voraSuperior",
40
55
  borderBottom: "voraInferior",
@@ -21,6 +21,7 @@ const locale = { "sheets-ui": {
21
21
  shrinkToFit: "An Zellgröße anpassen",
22
22
  textRotateMode: { main: "Text drehen" },
23
23
  toggleGridlines: "Gitterlinien ein-/ausblenden",
24
+ zoom: "Zoom",
24
25
  fullscreen: "Vollbild"
25
26
  },
26
27
  align: {
@@ -35,6 +36,20 @@ const locale = { "sheets-ui": {
35
36
  confirm: "OK",
36
37
  cancel: "Abbrechen"
37
38
  },
39
+ borderStyle: {
40
+ thin: "Dünn",
41
+ hair: "Haarlinie",
42
+ dotted: "Gepunktet",
43
+ dashed: "Gestrichelt",
44
+ dashDot: "Strich-Punkt",
45
+ dashDotDot: "Strich-Punkt-Punkt",
46
+ medium: "Mittel",
47
+ mediumDashed: "Mittel gestrichelt",
48
+ mediumDashDot: "Mittel Strich-Punkt",
49
+ mediumDashDotDot: "Mittel Strich-Punkt-Punkt",
50
+ thick: "Dick",
51
+ double: "Doppelt"
52
+ },
38
53
  borderLine: {
39
54
  borderTop: "Rahmen oben",
40
55
  borderBottom: "Rahmen unten",
@@ -36,6 +36,7 @@ const locale = { "sheets-ui": {
36
36
  shrinkToFit: "Shrink to fit",
37
37
  textRotateMode: { main: "Text rotate" },
38
38
  toggleGridlines: "Toggle Gridlines",
39
+ zoom: "Zoom",
39
40
  fullscreen: "Fullscreen"
40
41
  },
41
42
  align: {
@@ -50,6 +51,20 @@ const locale = { "sheets-ui": {
50
51
  confirm: "OK",
51
52
  cancel: "Cancel"
52
53
  },
54
+ borderStyle: {
55
+ thin: "Thin",
56
+ hair: "Hairline",
57
+ dotted: "Dotted",
58
+ dashed: "Dashed",
59
+ dashDot: "Dash-dot",
60
+ dashDotDot: "Dash-dot-dot",
61
+ medium: "Medium",
62
+ mediumDashed: "Medium dashed",
63
+ mediumDashDot: "Medium dash-dot",
64
+ mediumDashDotDot: "Medium dash-dot-dot",
65
+ thick: "Thick",
66
+ double: "Double"
67
+ },
53
68
  borderLine: {
54
69
  borderTop: "borderTop",
55
70
  borderBottom: "borderBottom",
@@ -21,6 +21,7 @@ const locale = { "sheets-ui": {
21
21
  shrinkToFit: "Reducir hasta ajustar",
22
22
  textRotateMode: { main: "Girar texto" },
23
23
  toggleGridlines: "Alternar líneas de cuadrícula",
24
+ zoom: "Zoom",
24
25
  fullscreen: "Pantalla completa"
25
26
  },
26
27
  align: {
@@ -35,6 +36,20 @@ const locale = { "sheets-ui": {
35
36
  confirm: "Aceptar",
36
37
  cancel: "Cancelar"
37
38
  },
39
+ borderStyle: {
40
+ thin: "Fino",
41
+ hair: "Muy fino",
42
+ dotted: "Punteado",
43
+ dashed: "Discontinuo",
44
+ dashDot: "Guion y punto",
45
+ dashDotDot: "Guion y dos puntos",
46
+ medium: "Medio",
47
+ mediumDashed: "Discontinuo medio",
48
+ mediumDashDot: "Guion y punto medio",
49
+ mediumDashDotDot: "Guion y dos puntos medio",
50
+ thick: "Grueso",
51
+ double: "Doble"
52
+ },
38
53
  borderLine: {
39
54
  borderTop: "bordeSuperior",
40
55
  borderBottom: "bordeInferior",
@@ -21,6 +21,7 @@ const locale = { "sheets-ui": {
21
21
  shrinkToFit: "کوچک کردن برای جا شدن",
22
22
  textRotateMode: { main: "چرخش متن" },
23
23
  toggleGridlines: "تغییر وضعیت خطوط شبکه",
24
+ zoom: "بزرگ‌نمایی",
24
25
  fullscreen: "تمام‌صفحه"
25
26
  },
26
27
  align: {
@@ -35,6 +36,20 @@ const locale = { "sheets-ui": {
35
36
  confirm: "تایید",
36
37
  cancel: "انصراف"
37
38
  },
39
+ borderStyle: {
40
+ thin: "نازک",
41
+ hair: "بسیار نازک",
42
+ dotted: "نقطه‌چین",
43
+ dashed: "خط‌چین",
44
+ dashDot: "خط و نقطه",
45
+ dashDotDot: "خط و دو نقطه",
46
+ medium: "متوسط",
47
+ mediumDashed: "خط‌چین متوسط",
48
+ mediumDashDot: "خط و نقطه متوسط",
49
+ mediumDashDotDot: "خط و دو نقطه متوسط",
50
+ thick: "ضخیم",
51
+ double: "دوتایی"
52
+ },
38
53
  borderLine: {
39
54
  borderTop: "خط بالای قاب",
40
55
  borderBottom: "خط پایینی قاب",
@@ -21,6 +21,7 @@ const locale = { "sheets-ui": {
21
21
  shrinkToFit: "Réduire pour tenir",
22
22
  textRotateMode: { main: "Rotation du texte" },
23
23
  toggleGridlines: "Activer/désactiver le quadrillage",
24
+ zoom: "Zoom",
24
25
  fullscreen: "Plein écran"
25
26
  },
26
27
  align: {
@@ -35,6 +36,20 @@ const locale = { "sheets-ui": {
35
36
  confirm: "OK",
36
37
  cancel: "Annuler"
37
38
  },
39
+ borderStyle: {
40
+ thin: "Fin",
41
+ hair: "Très fin",
42
+ dotted: "Pointillé",
43
+ dashed: "Tirets",
44
+ dashDot: "Tiret-point",
45
+ dashDotDot: "Tiret-point-point",
46
+ medium: "Moyen",
47
+ mediumDashed: "Tirets moyens",
48
+ mediumDashDot: "Tiret-point moyen",
49
+ mediumDashDotDot: "Tiret-point-point moyen",
50
+ thick: "Épais",
51
+ double: "Double"
52
+ },
38
53
  borderLine: {
39
54
  borderTop: "bordureHaut",
40
55
  borderBottom: "bordureBas",
@@ -21,6 +21,7 @@ const locale = { "sheets-ui": {
21
21
  shrinkToFit: "Kecilkan agar pas",
22
22
  textRotateMode: { main: "Putar teks" },
23
23
  toggleGridlines: "Alihkan garis kisi",
24
+ zoom: "Zoom",
24
25
  fullscreen: "Layar penuh"
25
26
  },
26
27
  align: {
@@ -35,6 +36,20 @@ const locale = { "sheets-ui": {
35
36
  confirm: "OK",
36
37
  cancel: "Batal"
37
38
  },
39
+ borderStyle: {
40
+ thin: "Tipis",
41
+ hair: "Sangat tipis",
42
+ dotted: "Titik-titik",
43
+ dashed: "Putus-putus",
44
+ dashDot: "Garis-titik",
45
+ dashDotDot: "Garis-dua titik",
46
+ medium: "Sedang",
47
+ mediumDashed: "Putus-putus sedang",
48
+ mediumDashDot: "Garis-titik sedang",
49
+ mediumDashDotDot: "Garis-dua titik sedang",
50
+ thick: "Tebal",
51
+ double: "Ganda"
52
+ },
38
53
  borderLine: {
39
54
  borderTop: "Batas atas",
40
55
  borderBottom: "Batas bawah",
@@ -21,6 +21,7 @@ const locale = { "sheets-ui": {
21
21
  shrinkToFit: "Riduci e adatta",
22
22
  textRotateMode: { main: "Rotazione testo" },
23
23
  toggleGridlines: "Mostra/Nascondi griglia",
24
+ zoom: "Zoom",
24
25
  fullscreen: "Schermo intero"
25
26
  },
26
27
  align: {
@@ -35,6 +36,20 @@ const locale = { "sheets-ui": {
35
36
  confirm: "OK",
36
37
  cancel: "Annulla"
37
38
  },
39
+ borderStyle: {
40
+ thin: "Sottile",
41
+ hair: "Sottilissimo",
42
+ dotted: "Punteggiato",
43
+ dashed: "Tratteggiato",
44
+ dashDot: "Tratto-punto",
45
+ dashDotDot: "Tratto-punto-punto",
46
+ medium: "Medio",
47
+ mediumDashed: "Tratteggiato medio",
48
+ mediumDashDot: "Tratto-punto medio",
49
+ mediumDashDotDot: "Tratto-punto-punto medio",
50
+ thick: "Spesso",
51
+ double: "Doppio"
52
+ },
38
53
  borderLine: {
39
54
  borderTop: "bordoSuperiore",
40
55
  borderBottom: "bordoInferiore",
@@ -21,6 +21,7 @@ const locale = { "sheets-ui": {
21
21
  shrinkToFit: "縮小して全体を表示",
22
22
  textRotateMode: { main: "文字の回転" },
23
23
  toggleGridlines: "グリッド線の表示/非表示",
24
+ zoom: "ズーム",
24
25
  fullscreen: "全画面表示"
25
26
  },
26
27
  align: {
@@ -35,6 +36,20 @@ const locale = { "sheets-ui": {
35
36
  confirm: "確認",
36
37
  cancel: "キャンセル"
37
38
  },
39
+ borderStyle: {
40
+ thin: "細線",
41
+ hair: "極細線",
42
+ dotted: "点線",
43
+ dashed: "破線",
44
+ dashDot: "一点鎖線",
45
+ dashDotDot: "二点鎖線",
46
+ medium: "中太線",
47
+ mediumDashed: "中太の破線",
48
+ mediumDashDot: "中太の一点鎖線",
49
+ mediumDashDotDot: "中太の二点鎖線",
50
+ thick: "太線",
51
+ double: "二重線"
52
+ },
38
53
  borderLine: {
39
54
  borderTop: "上",
40
55
  borderBottom: "下",
@@ -21,6 +21,7 @@ const locale = { "sheets-ui": {
21
21
  shrinkToFit: "셀에 맞춤",
22
22
  textRotateMode: { main: "텍스트 회전" },
23
23
  toggleGridlines: "눈금선 표시/숨기기",
24
+ zoom: "확대/축소",
24
25
  fullscreen: "전체 화면"
25
26
  },
26
27
  align: {
@@ -35,6 +36,20 @@ const locale = { "sheets-ui": {
35
36
  confirm: "확인",
36
37
  cancel: "취소"
37
38
  },
39
+ borderStyle: {
40
+ thin: "가는 실선",
41
+ hair: "매우 가는 선",
42
+ dotted: "점선",
43
+ dashed: "파선",
44
+ dashDot: "일점쇄선",
45
+ dashDotDot: "이점쇄선",
46
+ medium: "중간 실선",
47
+ mediumDashed: "중간 파선",
48
+ mediumDashDot: "중간 일점쇄선",
49
+ mediumDashDotDot: "중간 이점쇄선",
50
+ thick: "굵은 실선",
51
+ double: "이중선"
52
+ },
38
53
  borderLine: {
39
54
  borderTop: "위쪽",
40
55
  borderBottom: "아래쪽",
@@ -21,6 +21,7 @@ const locale = { "sheets-ui": {
21
21
  shrinkToFit: "Zmniejsz, aby dopasować",
22
22
  textRotateMode: { main: "Obrót tekstu" },
23
23
  toggleGridlines: "Przełącz linie siatki",
24
+ zoom: "Powiększenie",
24
25
  fullscreen: "Pełny ekran"
25
26
  },
26
27
  align: {
@@ -35,6 +36,20 @@ const locale = { "sheets-ui": {
35
36
  confirm: "OK",
36
37
  cancel: "Anuluj"
37
38
  },
39
+ borderStyle: {
40
+ thin: "Cienka",
41
+ hair: "Bardzo cienka",
42
+ dotted: "Kropkowana",
43
+ dashed: "Kreskowana",
44
+ dashDot: "Kreska-kropka",
45
+ dashDotDot: "Kreska-kropka-kropka",
46
+ medium: "Średnia",
47
+ mediumDashed: "Średnia kreskowana",
48
+ mediumDashDot: "Średnia kreska-kropka",
49
+ mediumDashDotDot: "Średnia kreska-kropka-kropka",
50
+ thick: "Gruba",
51
+ double: "Podwójna"
52
+ },
38
53
  borderLine: {
39
54
  borderTop: "Góra",
40
55
  borderBottom: "Dół",
@@ -21,6 +21,7 @@ const locale = { "sheets-ui": {
21
21
  shrinkToFit: "Reduzir para caber",
22
22
  textRotateMode: { main: "Rotação de texto" },
23
23
  toggleGridlines: "Mostrar/Ocultar linhas de grade",
24
+ zoom: "Zoom",
24
25
  fullscreen: "Tela cheia"
25
26
  },
26
27
  align: {
@@ -35,6 +36,20 @@ const locale = { "sheets-ui": {
35
36
  confirm: "OK",
36
37
  cancel: "Cancelar"
37
38
  },
39
+ borderStyle: {
40
+ thin: "Fina",
41
+ hair: "Muito fina",
42
+ dotted: "Pontilhada",
43
+ dashed: "Tracejada",
44
+ dashDot: "Traço e ponto",
45
+ dashDotDot: "Traço e dois pontos",
46
+ medium: "Média",
47
+ mediumDashed: "Tracejada média",
48
+ mediumDashDot: "Traço e ponto médio",
49
+ mediumDashDotDot: "Traço e dois pontos médio",
50
+ thick: "Grossa",
51
+ double: "Dupla"
52
+ },
38
53
  borderLine: {
39
54
  borderTop: "borda superior",
40
55
  borderBottom: "borda inferior",
@@ -21,6 +21,7 @@ const locale = { "sheets-ui": {
21
21
  shrinkToFit: "Уменьшить до размера ячейки",
22
22
  textRotateMode: { main: "Поворот текста" },
23
23
  toggleGridlines: "Переключить сетку",
24
+ zoom: "Масштаб",
24
25
  fullscreen: "Полноэкранный режим"
25
26
  },
26
27
  align: {
@@ -35,6 +36,20 @@ const locale = { "sheets-ui": {
35
36
  confirm: "ОК",
36
37
  cancel: "Отмена"
37
38
  },
39
+ borderStyle: {
40
+ thin: "Тонкая",
41
+ hair: "Волосяная",
42
+ dotted: "Точечная",
43
+ dashed: "Штриховая",
44
+ dashDot: "Штрихпунктирная",
45
+ dashDotDot: "Штрихпунктирная с двумя точками",
46
+ medium: "Средняя",
47
+ mediumDashed: "Средняя штриховая",
48
+ mediumDashDot: "Средняя штрихпунктирная",
49
+ mediumDashDotDot: "Средняя штрихпунктирная с двумя точками",
50
+ thick: "Толстая",
51
+ double: "Двойная"
52
+ },
38
53
  borderLine: {
39
54
  borderTop: "верхняя граница",
40
55
  borderBottom: "нижняя граница",
@@ -21,6 +21,7 @@ const locale = { "sheets-ui": {
21
21
  shrinkToFit: "Zmenšiť podľa veľkosti bunky",
22
22
  textRotateMode: { main: "Otočenie textu" },
23
23
  toggleGridlines: "Prepnúť mriežku",
24
+ zoom: "Priblíženie",
24
25
  fullscreen: "Celá obrazovka"
25
26
  },
26
27
  align: {
@@ -35,6 +36,20 @@ const locale = { "sheets-ui": {
35
36
  confirm: "OK",
36
37
  cancel: "Zrušiť"
37
38
  },
39
+ borderStyle: {
40
+ thin: "Tenká",
41
+ hair: "Vlasová",
42
+ dotted: "Bodkovaná",
43
+ dashed: "Čiarkovaná",
44
+ dashDot: "Bodkočiarkovaná",
45
+ dashDotDot: "Dvojbodkočiarkovaná",
46
+ medium: "Stredná",
47
+ mediumDashed: "Stredná čiarkovaná",
48
+ mediumDashDot: "Stredná bodkočiarkovaná",
49
+ mediumDashDotDot: "Stredná dvojbodkočiarkovaná",
50
+ thick: "Hrubá",
51
+ double: "Dvojitá"
52
+ },
38
53
  borderLine: {
39
54
  borderTop: "hornéOhraničenie",
40
55
  borderBottom: "dolnéOhraničenie",
@@ -21,6 +21,7 @@ const locale = { "sheets-ui": {
21
21
  shrinkToFit: "Thu nhỏ để vừa",
22
22
  textRotateMode: { main: "Xoay văn bản" },
23
23
  toggleGridlines: "Chuyển đổi đường lưới",
24
+ zoom: "Thu phóng",
24
25
  fullscreen: "Toàn màn hình"
25
26
  },
26
27
  align: {
@@ -35,6 +36,20 @@ const locale = { "sheets-ui": {
35
36
  confirm: "Xác nhận",
36
37
  cancel: "Hủy"
37
38
  },
39
+ borderStyle: {
40
+ thin: "Nét mảnh",
41
+ hair: "Nét cực mảnh",
42
+ dotted: "Nét chấm",
43
+ dashed: "Nét đứt",
44
+ dashDot: "Gạch chấm",
45
+ dashDotDot: "Gạch hai chấm",
46
+ medium: "Nét vừa",
47
+ mediumDashed: "Nét đứt vừa",
48
+ mediumDashDot: "Gạch chấm vừa",
49
+ mediumDashDotDot: "Gạch hai chấm vừa",
50
+ thick: "Nét đậm",
51
+ double: "Nét đôi"
52
+ },
38
53
  borderLine: {
39
54
  borderTop: "Viền trên",
40
55
  borderBottom: "Viền dưới",
@@ -21,6 +21,7 @@ const locale = { "sheets-ui": {
21
21
  shrinkToFit: "缩小字体填充",
22
22
  textRotateMode: { main: "文本旋转" },
23
23
  toggleGridlines: "切换网格线",
24
+ zoom: "缩放",
24
25
  fullscreen: "全屏"
25
26
  },
26
27
  align: {
@@ -35,6 +36,20 @@ const locale = { "sheets-ui": {
35
36
  confirm: "确定",
36
37
  cancel: "取消"
37
38
  },
39
+ borderStyle: {
40
+ thin: "细实线",
41
+ hair: "极细线",
42
+ dotted: "点线",
43
+ dashed: "虚线",
44
+ dashDot: "点划线",
45
+ dashDotDot: "双点划线",
46
+ medium: "中等实线",
47
+ mediumDashed: "中等虚线",
48
+ mediumDashDot: "中等点划线",
49
+ mediumDashDotDot: "中等双点划线",
50
+ thick: "粗实线",
51
+ double: "双线"
52
+ },
38
53
  borderLine: {
39
54
  borderTop: "上框线",
40
55
  borderBottom: "下框线",
@@ -21,6 +21,7 @@ const locale = { "sheets-ui": {
21
21
  shrinkToFit: "縮小字型填滿",
22
22
  textRotateMode: { main: "文字旋轉" },
23
23
  toggleGridlines: "切換網格線",
24
+ zoom: "縮放",
24
25
  fullscreen: "全螢幕"
25
26
  },
26
27
  align: {
@@ -35,6 +36,20 @@ const locale = { "sheets-ui": {
35
36
  confirm: "確定",
36
37
  cancel: "取消"
37
38
  },
39
+ borderStyle: {
40
+ thin: "細實線",
41
+ hair: "極細線",
42
+ dotted: "點線",
43
+ dashed: "虛線",
44
+ dashDot: "點劃線",
45
+ dashDotDot: "雙點劃線",
46
+ medium: "中等實線",
47
+ mediumDashed: "中等虛線",
48
+ mediumDashDot: "中等點劃線",
49
+ mediumDashDotDot: "中等雙點劃線",
50
+ thick: "粗實線",
51
+ double: "雙線"
52
+ },
38
53
  borderLine: {
39
54
  borderTop: "上框線",
40
55
  borderBottom: "下框線",
@@ -21,6 +21,7 @@ const locale = { "sheets-ui": {
21
21
  shrinkToFit: "縮小字型填滿",
22
22
  textRotateMode: { main: "文字旋轉" },
23
23
  toggleGridlines: "切換網格線",
24
+ zoom: "縮放",
24
25
  fullscreen: "全螢幕"
25
26
  },
26
27
  align: {
@@ -35,6 +36,20 @@ const locale = { "sheets-ui": {
35
36
  confirm: "確定",
36
37
  cancel: "取消"
37
38
  },
39
+ borderStyle: {
40
+ thin: "細實線",
41
+ hair: "極細線",
42
+ dotted: "點線",
43
+ dashed: "虛線",
44
+ dashDot: "點劃線",
45
+ dashDotDot: "雙點劃線",
46
+ medium: "中等實線",
47
+ mediumDashed: "中等虛線",
48
+ mediumDashDot: "中等點劃線",
49
+ mediumDashDotDot: "中等雙點劃線",
50
+ thick: "粗實線",
51
+ double: "雙線"
52
+ },
38
53
  borderLine: {
39
54
  borderTop: "上框線",
40
55
  borderBottom: "下框線",
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import type { Nullable } from '@univerjs/core';
17
+ import type { ICellEditorLayout } from '../../../services/editor-bridge.service';
18
+ /**
19
+ * Get the position of the hidden editor input for the current edit cell.
20
+ *
21
+ * The OS anchors the IME candidate window to the focused input, so the input should stay on the
22
+ * selected cell even before the cell editor opens. The position is kept inside the sheet canvas,
23
+ * so a cell scrolled out of view never moves the input outside the sheet.
24
+ */
25
+ export declare function getEditCellInputPosition(layout: Pick<ICellEditorLayout, 'position' | 'canvasOffset'>, canvasSize?: Nullable<{
26
+ width: number;
27
+ height: number;
28
+ }>): {
29
+ x: number;
30
+ y: number;
31
+ };
@@ -52,6 +52,7 @@ declare const locale: {
52
52
  main: string;
53
53
  };
54
54
  toggleGridlines: string;
55
+ zoom: string;
55
56
  fullscreen: string;
56
57
  };
57
58
  align: {
@@ -66,6 +67,20 @@ declare const locale: {
66
67
  confirm: string;
67
68
  cancel: string;
68
69
  };
70
+ borderStyle: {
71
+ thin: string;
72
+ hair: string;
73
+ dotted: string;
74
+ dashed: string;
75
+ dashDot: string;
76
+ dashDotDot: string;
77
+ medium: string;
78
+ mediumDashed: string;
79
+ mediumDashDot: string;
80
+ mediumDashDotDot: string;
81
+ thick: string;
82
+ double: string;
83
+ };
69
84
  borderLine: {
70
85
  borderTop: string;
71
86
  borderBottom: string;
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import type { IAccessor } from '@univerjs/core';
17
- import type { IMenuButtonItem } from '@univerjs/ui';
17
+ import type { IMenuSelectorItem } from '@univerjs/ui';
18
18
  import type { LocaleKey } from '../locale/types';
19
19
  export declare const ZOOM_RATIO_MENU_ID = "sheet.menu.zoom-ratio";
20
- export declare function ZoomRatioMenuItemFactory(accessor: IAccessor): IMenuButtonItem<LocaleKey, number>;
20
+ export declare function ZoomRatioMenuItemFactory(accessor: IAccessor): IMenuSelectorItem<LocaleKey, number>;
@@ -38,6 +38,7 @@ export interface ICellAlert {
38
38
  height: number;
39
39
  key: string;
40
40
  menu?: ICellAlertMenuItem[];
41
+ action?: ICellAlertMenuItem;
41
42
  }
42
43
  export declare class CellAlertManagerService extends Disposable {
43
44
  private readonly _renderManagerService;
@@ -27,6 +27,10 @@ export declare class SheetCellEditorResizeService extends Disposable {
27
27
  private readonly _univerInstanceService;
28
28
  private readonly _configService;
29
29
  private readonly _embedFloatingGeometryService?;
30
+ private _editorWidth;
31
+ private _editorHeight;
32
+ private _initialEditorSize;
33
+ private _cellSize;
30
34
  constructor(_layoutService: ILayoutService, _cellEditorManagerService: ICellEditorManagerService, _editorBridgeService: IEditorBridgeService, _renderManagerService: IRenderManagerService, _univerInstanceService: IUniverInstanceService, _configService: IConfigService, _embedFloatingGeometryService?: ISheetEmbedFloatingGeometryService | undefined);
31
35
  private get _currentRenderer();
32
36
  private get _editingUnitId();
@@ -35,6 +39,7 @@ export declare class SheetCellEditorResizeService extends Disposable {
35
39
  private get _sheetSkeletonManagerService();
36
40
  private get engine();
37
41
  fitTextSize(callback?: () => void): void;
42
+ private _syncCellSize;
38
43
  /**
39
44
  * Mainly used to pre-calculate the width of the editor,
40
45
  * to determine whether it needs to be automatically widened.
@@ -47,6 +52,7 @@ export declare class SheetCellEditorResizeService extends Disposable {
47
52
  * and calculate the editor's boundaries relative to the browser.
48
53
  */
49
54
  private _editAreaProcessing;
55
+ private _fitEditorViewport;
50
56
  private _getEditorContentElement;
51
57
  /**
52
58
  * Since the document does not support cell background color, an additional rect needs to be added.