@univerjs/sheets-ui 1.0.0-alpha.1 → 1.0.0-alpha.3

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 (114) hide show
  1. package/lib/cjs/facade.js +51 -40
  2. package/lib/cjs/index.js +1187 -287
  3. package/lib/cjs/locale/ar-SA.js +7 -2
  4. package/lib/cjs/locale/ca-ES.js +7 -2
  5. package/lib/cjs/locale/de-DE.js +7 -2
  6. package/lib/cjs/locale/en-US.js +5 -0
  7. package/lib/cjs/locale/es-ES.js +8 -3
  8. package/lib/cjs/locale/fa-IR.js +7 -2
  9. package/lib/cjs/locale/fr-FR.js +7 -2
  10. package/lib/cjs/locale/id-ID.js +7 -2
  11. package/lib/cjs/locale/it-IT.js +7 -2
  12. package/lib/cjs/locale/ja-JP.js +5 -0
  13. package/lib/cjs/locale/ko-KR.js +5 -0
  14. package/lib/cjs/locale/pl-PL.js +7 -2
  15. package/lib/cjs/locale/pt-BR.js +7 -2
  16. package/lib/cjs/locale/ru-RU.js +7 -2
  17. package/lib/cjs/locale/sk-SK.js +7 -2
  18. package/lib/cjs/locale/vi-VN.js +7 -2
  19. package/lib/cjs/locale/zh-CN.js +5 -0
  20. package/lib/cjs/locale/zh-HK.js +5 -0
  21. package/lib/cjs/locale/zh-TW.js +5 -0
  22. package/lib/es/facade.js +51 -40
  23. package/lib/es/index.js +1168 -264
  24. package/lib/es/locale/ar-SA.js +7 -2
  25. package/lib/es/locale/ca-ES.js +7 -2
  26. package/lib/es/locale/de-DE.js +7 -2
  27. package/lib/es/locale/en-US.js +5 -0
  28. package/lib/es/locale/es-ES.js +8 -3
  29. package/lib/es/locale/fa-IR.js +7 -2
  30. package/lib/es/locale/fr-FR.js +7 -2
  31. package/lib/es/locale/id-ID.js +7 -2
  32. package/lib/es/locale/it-IT.js +7 -2
  33. package/lib/es/locale/ja-JP.js +5 -0
  34. package/lib/es/locale/ko-KR.js +5 -0
  35. package/lib/es/locale/pl-PL.js +7 -2
  36. package/lib/es/locale/pt-BR.js +7 -2
  37. package/lib/es/locale/ru-RU.js +7 -2
  38. package/lib/es/locale/sk-SK.js +7 -2
  39. package/lib/es/locale/vi-VN.js +7 -2
  40. package/lib/es/locale/zh-CN.js +5 -0
  41. package/lib/es/locale/zh-HK.js +5 -0
  42. package/lib/es/locale/zh-TW.js +5 -0
  43. package/lib/facade.js +51 -40
  44. package/lib/index.css +42 -4
  45. package/lib/index.js +1168 -264
  46. package/lib/locale/ar-SA.js +7 -2
  47. package/lib/locale/ca-ES.js +7 -2
  48. package/lib/locale/de-DE.js +7 -2
  49. package/lib/locale/en-US.js +5 -0
  50. package/lib/locale/es-ES.js +8 -3
  51. package/lib/locale/fa-IR.js +7 -2
  52. package/lib/locale/fr-FR.js +7 -2
  53. package/lib/locale/id-ID.js +7 -2
  54. package/lib/locale/it-IT.js +7 -2
  55. package/lib/locale/ja-JP.js +5 -0
  56. package/lib/locale/ko-KR.js +5 -0
  57. package/lib/locale/pl-PL.js +7 -2
  58. package/lib/locale/pt-BR.js +7 -2
  59. package/lib/locale/ru-RU.js +7 -2
  60. package/lib/locale/sk-SK.js +7 -2
  61. package/lib/locale/vi-VN.js +7 -2
  62. package/lib/locale/zh-CN.js +5 -0
  63. package/lib/locale/zh-HK.js +5 -0
  64. package/lib/locale/zh-TW.js +5 -0
  65. package/lib/types/commands/commands/set-scroll.command.d.ts +3 -0
  66. package/lib/types/controllers/editor/editing.render-controller.d.ts +1 -0
  67. package/lib/types/controllers/editor/formula-editor.controller.d.ts +1 -0
  68. package/lib/types/controllers/render-controllers/contextmenu.render-controller.d.ts +7 -2
  69. package/lib/types/controllers/render-controllers/editor-bridge.render-controller.d.ts +7 -1
  70. package/lib/types/controllers/render-controllers/header-unhide.render-controller.d.ts +0 -1
  71. package/lib/types/embed-tab-anchor.d.ts +23 -0
  72. package/lib/types/facade/f-range.d.ts +5 -4
  73. package/lib/types/facade/f-univer.d.ts +1 -0
  74. package/lib/types/index.d.ts +16 -3
  75. package/lib/types/locale/en-US.d.ts +5 -0
  76. package/lib/types/services/canvas-pop-manager.service.d.ts +9 -0
  77. package/lib/types/services/cell-popup-manager.service.d.ts +1 -0
  78. package/lib/types/services/editor/cell-editor-resize.service.d.ts +4 -1
  79. package/lib/types/services/editor-bridge.service.d.ts +2 -0
  80. package/lib/types/services/print-interceptor.service.d.ts +8 -0
  81. package/lib/types/services/selection/base-selection-render.service.d.ts +1 -0
  82. package/lib/types/services/sheet-embed-integration.service.d.ts +126 -0
  83. package/lib/types/services/sheet-embed-runtime.service.d.ts +26 -0
  84. package/lib/types/services/sheet-host-chrome-override.service.d.ts +25 -0
  85. package/lib/types/services/sheet-skeleton-manager.service.d.ts +2 -0
  86. package/lib/types/views/border-panel/interface.d.ts +63 -2
  87. package/lib/types/views/editor-container/EditorContainer.d.ts +7 -5
  88. package/lib/types/{menu/mobile-menu.d.ts → views/editor-container/EditorContainer.spec.d.ts} +1 -1
  89. package/lib/types/views/editor-container/focus-editor.d.ts +25 -0
  90. package/lib/types/views/sheet-bar/sheet-bar-tabs/SheetBarItem.d.ts +2 -1
  91. package/lib/types/views/sheet-bar/sheet-bar-tabs/utils/sheet-tab-drag-sort.d.ts +1 -0
  92. package/lib/types/views/sheet-bar/sheet-bar-tabs/utils/slide-tab-bar.d.ts +2 -1
  93. package/lib/umd/facade.js +1 -1
  94. package/lib/umd/index.js +12 -12
  95. package/lib/umd/locale/ar-SA.js +1 -1
  96. package/lib/umd/locale/ca-ES.js +1 -1
  97. package/lib/umd/locale/de-DE.js +1 -1
  98. package/lib/umd/locale/en-US.js +1 -1
  99. package/lib/umd/locale/es-ES.js +1 -1
  100. package/lib/umd/locale/fa-IR.js +1 -1
  101. package/lib/umd/locale/fr-FR.js +1 -1
  102. package/lib/umd/locale/id-ID.js +1 -1
  103. package/lib/umd/locale/it-IT.js +1 -1
  104. package/lib/umd/locale/ja-JP.js +1 -1
  105. package/lib/umd/locale/ko-KR.js +1 -1
  106. package/lib/umd/locale/pl-PL.js +1 -1
  107. package/lib/umd/locale/pt-BR.js +1 -1
  108. package/lib/umd/locale/ru-RU.js +1 -1
  109. package/lib/umd/locale/sk-SK.js +1 -1
  110. package/lib/umd/locale/vi-VN.js +1 -1
  111. package/lib/umd/locale/zh-CN.js +1 -1
  112. package/lib/umd/locale/zh-HK.js +1 -1
  113. package/lib/umd/locale/zh-TW.js +1 -1
  114. package/package.json +16 -16
@@ -80,6 +80,11 @@ const locale = { "sheets-ui": {
80
80
  borderInside: "الحدود الداخلية",
81
81
  borderHorizontal: "الحدود الأفقية",
82
82
  borderVertical: "الحدود العمودية",
83
+ borderTlbr: "حد قطري لأسفل",
84
+ borderTlbcTlmr: "حد قطري مزدوج لأسفل",
85
+ borderTlbrTlbcTlmr: "حد قطري ثلاثي لأسفل",
86
+ borderBlTr: "حد قطري لأعلى",
87
+ borderMltrBctr: "حد قطري مزدوج لأعلى",
83
88
  borderColor: "لون الحدود",
84
89
  borderSize: "حجم الحدود",
85
90
  borderType: "نوع الحدود"
@@ -270,8 +275,8 @@ const locale = { "sheets-ui": {
270
275
  copied: "تم النسخ"
271
276
  },
272
277
  shortcut: {
273
- "sheet-view": "Sheet View",
274
- "sheet-edit": "Sheet Edit",
278
+ "sheet-view": "عرض الورقة",
279
+ "sheet-edit": "تحرير الورقة",
275
280
  sheet: {
276
281
  "zoom-in": "تكبير",
277
282
  "zoom-out": "تصغير",
@@ -80,6 +80,11 @@ const locale = { "sheets-ui": {
80
80
  borderInside: "voraInterior",
81
81
  borderHorizontal: "voraHoritzontal",
82
82
  borderVertical: "voraVertical",
83
+ borderTlbr: "Vora diagonal descendent",
84
+ borderTlbcTlmr: "Vora diagonal descendent doble",
85
+ borderTlbrTlbcTlmr: "Vora diagonal descendent triple",
86
+ borderBlTr: "Vora diagonal ascendent",
87
+ borderMltrBctr: "Vora diagonal ascendent doble",
83
88
  borderColor: "colorVora",
84
89
  borderSize: "gruixVora",
85
90
  borderType: "tipusVora"
@@ -270,8 +275,8 @@ const locale = { "sheets-ui": {
270
275
  copied: "Copiat"
271
276
  },
272
277
  shortcut: {
273
- "sheet-view": "Sheet View",
274
- "sheet-edit": "Sheet Edit",
278
+ "sheet-view": "Vista del full",
279
+ "sheet-edit": "Edició del full",
275
280
  sheet: {
276
281
  "zoom-in": "Apropar",
277
282
  "zoom-out": "Allunyar",
@@ -80,6 +80,11 @@ const locale = { "sheets-ui": {
80
80
  borderInside: "Rahmen innen",
81
81
  borderHorizontal: "Horizontale Rahmenlinie",
82
82
  borderVertical: "Vertikale Rahmenlinie",
83
+ borderTlbr: "Diagonale Linie abwärts",
84
+ borderTlbcTlmr: "Doppelte diagonale Linie abwärts",
85
+ borderTlbrTlbcTlmr: "Dreifache diagonale Linie abwärts",
86
+ borderBlTr: "Diagonale Linie aufwärts",
87
+ borderMltrBctr: "Doppelte diagonale Linie aufwärts",
83
88
  borderColor: "Rahmenfarbe",
84
89
  borderSize: "Rahmenstärke",
85
90
  borderType: "Rahmentyp"
@@ -270,8 +275,8 @@ const locale = { "sheets-ui": {
270
275
  copied: "Kopiert"
271
276
  },
272
277
  shortcut: {
273
- "sheet-view": "Sheet View",
274
- "sheet-edit": "Sheet Edit",
278
+ "sheet-view": "Tabellenblattansicht",
279
+ "sheet-edit": "Tabellenblattbearbeitung",
275
280
  sheet: {
276
281
  "zoom-in": "Vergrößern",
277
282
  "zoom-out": "Verkleinern",
@@ -95,6 +95,11 @@ const locale = { "sheets-ui": {
95
95
  borderInside: "borderInside",
96
96
  borderHorizontal: "borderHorizontal",
97
97
  borderVertical: "borderVertical",
98
+ borderTlbr: "Diagonal down border",
99
+ borderTlbcTlmr: "Double diagonal down border",
100
+ borderTlbrTlbcTlmr: "Triple diagonal down border",
101
+ borderBlTr: "Diagonal up border",
102
+ borderMltrBctr: "Double diagonal up border",
98
103
  borderColor: "borderColor",
99
104
  borderSize: "borderSize",
100
105
  borderType: "borderType"
@@ -80,6 +80,11 @@ const locale = { "sheets-ui": {
80
80
  borderInside: "bordeInterior",
81
81
  borderHorizontal: "bordeHorizontal",
82
82
  borderVertical: "bordeVertical",
83
+ borderTlbr: "Borde diagonal descendente",
84
+ borderTlbcTlmr: "Borde diagonal descendente doble",
85
+ borderTlbrTlbcTlmr: "Borde diagonal descendente triple",
86
+ borderBlTr: "Borde diagonal ascendente",
87
+ borderMltrBctr: "Borde diagonal ascendente doble",
83
88
  borderColor: "colorBorde",
84
89
  borderSize: "grosorBorde",
85
90
  borderType: "tipoBorde"
@@ -270,8 +275,8 @@ const locale = { "sheets-ui": {
270
275
  copied: "Copiado"
271
276
  },
272
277
  shortcut: {
273
- "sheet-view": "Sheet View",
274
- "sheet-edit": "Sheet Edit",
278
+ "sheet-view": "Vista de hoja",
279
+ "sheet-edit": "Edición de hoja",
275
280
  sheet: {
276
281
  "zoom-in": "Acercar",
277
282
  "zoom-out": "Alejar",
@@ -377,7 +382,7 @@ const locale = { "sheets-ui": {
377
382
  iCanNotEdit: "No puedo editar",
378
383
  iCanView: "Puedo ver",
379
384
  iCanNotView: "No puedo ver",
380
- emptyRangeError: "El rango не puede estar vacío",
385
+ emptyRangeError: "El rango no puede estar vacío",
381
386
  rangeOverlapError: "El rango no puede superponerse",
382
387
  rangeOverlapOverPermissionError: "El rango no puede superponerse con el rango que tiene el mismo permiso",
383
388
  InsertHyperlink: "Insertar hipervínculo",
@@ -80,6 +80,11 @@ const locale = { "sheets-ui": {
80
80
  borderInside: "حاشیه داخلی",
81
81
  borderHorizontal: "حاشیه افقی",
82
82
  borderVertical: "حاشیه عمودی",
83
+ borderTlbr: "حاشیه قطری رو به پایین",
84
+ borderTlbcTlmr: "حاشیه قطری دوتایی رو به پایین",
85
+ borderTlbrTlbcTlmr: "حاشیه قطری سه‌تایی رو به پایین",
86
+ borderBlTr: "حاشیه قطری رو به بالا",
87
+ borderMltrBctr: "حاشیه قطری دوتایی رو به بالا",
83
88
  borderColor: "رنگ حاشیه",
84
89
  borderSize: "اندازه حاشیه",
85
90
  borderType: "نوع حاشیه"
@@ -270,8 +275,8 @@ const locale = { "sheets-ui": {
270
275
  copied: "کپی شد"
271
276
  },
272
277
  shortcut: {
273
- "sheet-view": "Sheet View",
274
- "sheet-edit": "Sheet Edit",
278
+ "sheet-view": "نمایش برگه",
279
+ "sheet-edit": "ویرایش برگه",
275
280
  sheet: {
276
281
  "zoom-in": "بزرگنمایی",
277
282
  "zoom-out": "کوچکنمایی",
@@ -80,6 +80,11 @@ const locale = { "sheets-ui": {
80
80
  borderInside: "bordureIntérieure",
81
81
  borderHorizontal: "bordureHorizontale",
82
82
  borderVertical: "bordureVerticale",
83
+ borderTlbr: "Bordure diagonale descendante",
84
+ borderTlbcTlmr: "Double bordure diagonale descendante",
85
+ borderTlbrTlbcTlmr: "Triple bordure diagonale descendante",
86
+ borderBlTr: "Bordure diagonale montante",
87
+ borderMltrBctr: "Double bordure diagonale montante",
83
88
  borderColor: "couleurDeBordure",
84
89
  borderSize: "tailleDeBordure",
85
90
  borderType: "typeDeBordure"
@@ -270,8 +275,8 @@ const locale = { "sheets-ui": {
270
275
  copied: "Copié"
271
276
  },
272
277
  shortcut: {
273
- "sheet-view": "Sheet View",
274
- "sheet-edit": "Sheet Edit",
278
+ "sheet-view": "Affichage de la feuille",
279
+ "sheet-edit": "Modification de la feuille",
275
280
  sheet: {
276
281
  "zoom-in": "Zoom avant",
277
282
  "zoom-out": "Zoom arrière",
@@ -80,6 +80,11 @@ const locale = { "sheets-ui": {
80
80
  borderInside: "Batas dalam",
81
81
  borderHorizontal: "Batas horizontal",
82
82
  borderVertical: "Batas vertikal",
83
+ borderTlbr: "Batas diagonal turun",
84
+ borderTlbcTlmr: "Batas diagonal turun ganda",
85
+ borderTlbrTlbcTlmr: "Batas diagonal turun rangkap tiga",
86
+ borderBlTr: "Batas diagonal naik",
87
+ borderMltrBctr: "Batas diagonal naik ganda",
83
88
  borderColor: "Warna batas",
84
89
  borderSize: "Ukuran batas",
85
90
  borderType: "Jenis batas"
@@ -270,8 +275,8 @@ const locale = { "sheets-ui": {
270
275
  copied: "Tersalin"
271
276
  },
272
277
  shortcut: {
273
- "sheet-view": "Sheet View",
274
- "sheet-edit": "Sheet Edit",
278
+ "sheet-view": "Tampilan lembar",
279
+ "sheet-edit": "Pengeditan lembar",
275
280
  sheet: {
276
281
  "zoom-in": "Perbesar",
277
282
  "zoom-out": "Perkecil",
@@ -80,6 +80,11 @@ const locale = { "sheets-ui": {
80
80
  borderInside: "bordoInterno",
81
81
  borderHorizontal: "bordoOrizzontale",
82
82
  borderVertical: "bordoVerticale",
83
+ borderTlbr: "Bordo diagonale discendente",
84
+ borderTlbcTlmr: "Bordo diagonale discendente doppio",
85
+ borderTlbrTlbcTlmr: "Bordo diagonale discendente triplo",
86
+ borderBlTr: "Bordo diagonale ascendente",
87
+ borderMltrBctr: "Bordo diagonale ascendente doppio",
83
88
  borderColor: "coloreBordo",
84
89
  borderSize: "spessoreBordo",
85
90
  borderType: "tipoBordo"
@@ -270,8 +275,8 @@ const locale = { "sheets-ui": {
270
275
  copied: "Copiato"
271
276
  },
272
277
  shortcut: {
273
- "sheet-view": "Sheet View",
274
- "sheet-edit": "Sheet Edit",
278
+ "sheet-view": "Visualizzazione foglio",
279
+ "sheet-edit": "Modifica foglio",
275
280
  sheet: {
276
281
  "zoom-in": "Aumenta zoom",
277
282
  "zoom-out": "Diminuisci zoom",
@@ -80,6 +80,11 @@ const locale = { "sheets-ui": {
80
80
  borderInside: "内側",
81
81
  borderHorizontal: "横罫線",
82
82
  borderVertical: "縦罫線",
83
+ borderTlbr: "右下がり罫線",
84
+ borderTlbcTlmr: "右下がり二重斜線",
85
+ borderTlbrTlbcTlmr: "右下がり三重斜線",
86
+ borderBlTr: "右上がり罫線",
87
+ borderMltrBctr: "右上がり二重斜線",
83
88
  borderColor: "罫線の色",
84
89
  borderSize: "罫線の太さ",
85
90
  borderType: "罫線の種類"
@@ -80,6 +80,11 @@ const locale = { "sheets-ui": {
80
80
  borderInside: "내부",
81
81
  borderHorizontal: "가로",
82
82
  borderVertical: "세로",
83
+ borderTlbr: "오른쪽 아래 대각선 테두리",
84
+ borderTlbcTlmr: "오른쪽 아래 이중 대각선 테두리",
85
+ borderTlbrTlbcTlmr: "오른쪽 아래 삼중 대각선 테두리",
86
+ borderBlTr: "오른쪽 위 대각선 테두리",
87
+ borderMltrBctr: "오른쪽 위 이중 대각선 테두리",
83
88
  borderColor: "테두리 색상",
84
89
  borderSize: "테두리 크기",
85
90
  borderType: "테두리 유형"
@@ -80,6 +80,11 @@ const locale = { "sheets-ui": {
80
80
  borderInside: "Wewnątrz",
81
81
  borderHorizontal: "Poziome",
82
82
  borderVertical: "Pionowe",
83
+ borderTlbr: "Ukośne obramowanie w dół",
84
+ borderTlbcTlmr: "Podwójne ukośne obramowanie w dół",
85
+ borderTlbrTlbcTlmr: "Potrójne ukośne obramowanie w dół",
86
+ borderBlTr: "Ukośne obramowanie w górę",
87
+ borderMltrBctr: "Podwójne ukośne obramowanie w górę",
83
88
  borderColor: "Kolor obramowania",
84
89
  borderSize: "Rozmiar obramowania",
85
90
  borderType: "Typ obramowania"
@@ -270,8 +275,8 @@ const locale = { "sheets-ui": {
270
275
  copied: "Skopiowano"
271
276
  },
272
277
  shortcut: {
273
- "sheet-view": "Sheet View",
274
- "sheet-edit": "Sheet Edit",
278
+ "sheet-view": "Widok arkusza",
279
+ "sheet-edit": "Edycja arkusza",
275
280
  sheet: {
276
281
  "zoom-in": "Powiększ",
277
282
  "zoom-out": "Pomniejsz",
@@ -80,6 +80,11 @@ const locale = { "sheets-ui": {
80
80
  borderInside: "borda interna",
81
81
  borderHorizontal: "borda horizontal",
82
82
  borderVertical: "borda vertical",
83
+ borderTlbr: "Borda diagonal descendente",
84
+ borderTlbcTlmr: "Borda diagonal descendente dupla",
85
+ borderTlbrTlbcTlmr: "Borda diagonal descendente tripla",
86
+ borderBlTr: "Borda diagonal ascendente",
87
+ borderMltrBctr: "Borda diagonal ascendente dupla",
83
88
  borderColor: "cor da borda",
84
89
  borderSize: "tamanho da borda",
85
90
  borderType: "tipo de borda"
@@ -270,8 +275,8 @@ const locale = { "sheets-ui": {
270
275
  copied: "Copiado"
271
276
  },
272
277
  shortcut: {
273
- "sheet-view": "Sheet View",
274
- "sheet-edit": "Sheet Edit",
278
+ "sheet-view": "Visualização da planilha",
279
+ "sheet-edit": "Edição da planilha",
275
280
  sheet: {
276
281
  "zoom-in": "Aumentar zoom",
277
282
  "zoom-out": "Diminuir zoom",
@@ -80,6 +80,11 @@ const locale = { "sheets-ui": {
80
80
  borderInside: "внутренняя граница",
81
81
  borderHorizontal: "горизонтальная граница",
82
82
  borderVertical: "вертикальная граница",
83
+ borderTlbr: "Диагональная граница вниз",
84
+ borderTlbcTlmr: "Двойная диагональная граница вниз",
85
+ borderTlbrTlbcTlmr: "Тройная диагональная граница вниз",
86
+ borderBlTr: "Диагональная граница вверх",
87
+ borderMltrBctr: "Двойная диагональная граница вверх",
83
88
  borderColor: "цвет границы",
84
89
  borderSize: "размер границы",
85
90
  borderType: "тип границы"
@@ -270,8 +275,8 @@ const locale = { "sheets-ui": {
270
275
  copied: "Скопировано"
271
276
  },
272
277
  shortcut: {
273
- "sheet-view": "Sheet View",
274
- "sheet-edit": "Sheet Edit",
278
+ "sheet-view": "Просмотр листа",
279
+ "sheet-edit": "Редактирование листа",
275
280
  sheet: {
276
281
  "zoom-in": "Увеличить",
277
282
  "zoom-out": "Уменьшить",
@@ -80,6 +80,11 @@ const locale = { "sheets-ui": {
80
80
  borderInside: "vnútornéOhraničenie",
81
81
  borderHorizontal: "vodorovnéOhraničenie",
82
82
  borderVertical: "zvisléOhraničenie",
83
+ borderTlbr: "Diagonálne orámovanie nadol",
84
+ borderTlbcTlmr: "Dvojité diagonálne orámovanie nadol",
85
+ borderTlbrTlbcTlmr: "Trojité diagonálne orámovanie nadol",
86
+ borderBlTr: "Diagonálne orámovanie nahor",
87
+ borderMltrBctr: "Dvojité diagonálne orámovanie nahor",
83
88
  borderColor: "farbaOhraničenia",
84
89
  borderSize: "hrúbkaOhraničenia",
85
90
  borderType: "typOhraničenia"
@@ -270,8 +275,8 @@ const locale = { "sheets-ui": {
270
275
  copied: "Skopírované"
271
276
  },
272
277
  shortcut: {
273
- "sheet-view": "Sheet View",
274
- "sheet-edit": "Sheet Edit",
278
+ "sheet-view": "Zobrazenie hárka",
279
+ "sheet-edit": "Úprava hárka",
275
280
  sheet: {
276
281
  "zoom-in": "Priblížiť",
277
282
  "zoom-out": "Oddialiť",
@@ -80,6 +80,11 @@ const locale = { "sheets-ui": {
80
80
  borderInside: "Bên trong",
81
81
  borderHorizontal: "Đường ngang bên trong",
82
82
  borderVertical: "Đường dọc bên trong",
83
+ borderTlbr: "Đường viền chéo xuống",
84
+ borderTlbcTlmr: "Đường viền chéo xuống kép",
85
+ borderTlbrTlbcTlmr: "Đường viền chéo xuống ba",
86
+ borderBlTr: "Đường viền chéo lên",
87
+ borderMltrBctr: "Đường viền chéo lên kép",
83
88
  borderColor: "Màu viền",
84
89
  borderSize: "Độ dày viền",
85
90
  borderType: "Loại đường viền"
@@ -270,8 +275,8 @@ const locale = { "sheets-ui": {
270
275
  copied: "Đã sao chép"
271
276
  },
272
277
  shortcut: {
273
- "sheet-view": "Sheet View",
274
- "sheet-edit": "Sheet Edit",
278
+ "sheet-view": "Xem trang tính",
279
+ "sheet-edit": "Chỉnh sửa trang tính",
275
280
  sheet: {
276
281
  "zoom-in": "Phóng to",
277
282
  "zoom-out": "Thu nhỏ",
@@ -80,6 +80,11 @@ const locale = { "sheets-ui": {
80
80
  borderInside: "内侧",
81
81
  borderHorizontal: "内侧横线",
82
82
  borderVertical: "内侧竖线",
83
+ borderTlbr: "右下斜线",
84
+ borderTlbcTlmr: "右下双斜线",
85
+ borderTlbrTlbcTlmr: "右下三斜线",
86
+ borderBlTr: "右上斜线",
87
+ borderMltrBctr: "右上双斜线",
83
88
  borderColor: "边框颜色",
84
89
  borderSize: "边框粗细",
85
90
  borderType: "边框线类型"
@@ -80,6 +80,11 @@ const locale = { "sheets-ui": {
80
80
  borderInside: "內側",
81
81
  borderHorizontal: "內側水平框線",
82
82
  borderVertical: "內側垂直框線",
83
+ borderTlbr: "右下斜線",
84
+ borderTlbcTlmr: "右下雙斜線",
85
+ borderTlbrTlbcTlmr: "右下三斜線",
86
+ borderBlTr: "右上斜線",
87
+ borderMltrBctr: "右上雙斜線",
83
88
  borderColor: "邊框顏色",
84
89
  borderSize: "邊框粗細",
85
90
  borderType: "邊框線類型"
@@ -80,6 +80,11 @@ const locale = { "sheets-ui": {
80
80
  borderInside: "內側",
81
81
  borderHorizontal: "內側水平框線",
82
82
  borderVertical: "內側垂直框線",
83
+ borderTlbr: "右下斜線",
84
+ borderTlbcTlmr: "右下雙斜線",
85
+ borderTlbrTlbcTlmr: "右下三斜線",
86
+ borderBlTr: "右上斜線",
87
+ borderMltrBctr: "右上雙斜線",
83
88
  borderColor: "邊框顏色",
84
89
  borderSize: "邊框粗細",
85
90
  borderType: "邊框線類型"
package/lib/es/facade.js CHANGED
@@ -448,7 +448,7 @@ var FUniverSheetsUIMixin = class extends FUniver {
448
448
  if (!workbook) return;
449
449
  combined$Disposable.dispose();
450
450
  const scrollManagerService = sheetRenderUnit.with(SheetScrollManagerService);
451
- const selectionService = sheetRenderUnit.with(SheetsSelectionsService);
451
+ const selectionService = this._tryGetRenderDependency(sheetRenderUnit, SheetsSelectionsService);
452
452
  combined$Disposable.add(this.registerEventHandler(this.Event.Scroll, () => scrollManagerService.validViewportScrollInfo$.subscribe((params) => {
453
453
  if (!params) return;
454
454
  const eventParams = {
@@ -458,46 +458,56 @@ var FUniverSheetsUIMixin = class extends FUniver {
458
458
  };
459
459
  this.fireEvent(this.Event.Scroll, eventParams);
460
460
  })));
461
- combined$Disposable.add(this.registerEventHandler(this.Event.SelectionMoveStart, () => selectionService.selectionMoveStart$.subscribe((selections) => {
462
- var _selections$map;
463
- const eventParams = {
464
- workbook,
465
- worksheet: workbook.getActiveSheet(),
466
- selections: (_selections$map = selections === null || selections === void 0 ? void 0 : selections.map((s) => s.range)) !== null && _selections$map !== void 0 ? _selections$map : []
467
- };
468
- this.fireEvent(this.Event.SelectionMoveStart, eventParams);
469
- })));
470
- combined$Disposable.add(this.registerEventHandler(this.Event.SelectionMoving, () => selectionService.selectionMoving$.subscribe((selections) => {
471
- var _selections$map2;
472
- const eventParams = {
473
- workbook,
474
- worksheet: workbook.getActiveSheet(),
475
- selections: (_selections$map2 = selections === null || selections === void 0 ? void 0 : selections.map((s) => s.range)) !== null && _selections$map2 !== void 0 ? _selections$map2 : []
476
- };
477
- this.fireEvent(this.Event.SelectionMoving, eventParams);
478
- })));
479
- combined$Disposable.add(this.registerEventHandler(this.Event.SelectionMoveEnd, () => selectionService.selectionMoveEnd$.subscribe((selections) => {
480
- var _selections$map3;
481
- const eventParams = {
482
- workbook,
483
- worksheet: workbook.getActiveSheet(),
484
- selections: (_selections$map3 = selections === null || selections === void 0 ? void 0 : selections.map((s) => s.range)) !== null && _selections$map3 !== void 0 ? _selections$map3 : []
485
- };
486
- this.fireEvent(this.Event.SelectionMoveEnd, eventParams);
487
- })));
488
- combined$Disposable.add(this.registerEventHandler(this.Event.SelectionChanged, () => selectionService.selectionChanged$.subscribe((selections) => {
489
- var _selections$map4;
490
- const eventParams = {
491
- workbook,
492
- worksheet: workbook.getActiveSheet(),
493
- selections: (_selections$map4 = selections === null || selections === void 0 ? void 0 : selections.map((s) => s.range)) !== null && _selections$map4 !== void 0 ? _selections$map4 : []
494
- };
495
- this.fireEvent(this.Event.SelectionChanged, eventParams);
496
- })));
461
+ if (selectionService) {
462
+ combined$Disposable.add(this.registerEventHandler(this.Event.SelectionMoveStart, () => selectionService.selectionMoveStart$.subscribe((selections) => {
463
+ var _selections$map;
464
+ const eventParams = {
465
+ workbook,
466
+ 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 : []
468
+ };
469
+ this.fireEvent(this.Event.SelectionMoveStart, eventParams);
470
+ })));
471
+ combined$Disposable.add(this.registerEventHandler(this.Event.SelectionMoving, () => selectionService.selectionMoving$.subscribe((selections) => {
472
+ var _selections$map2;
473
+ const eventParams = {
474
+ workbook,
475
+ 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 : []
477
+ };
478
+ this.fireEvent(this.Event.SelectionMoving, eventParams);
479
+ })));
480
+ combined$Disposable.add(this.registerEventHandler(this.Event.SelectionMoveEnd, () => selectionService.selectionMoveEnd$.subscribe((selections) => {
481
+ var _selections$map3;
482
+ const eventParams = {
483
+ workbook,
484
+ 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 : []
486
+ };
487
+ this.fireEvent(this.Event.SelectionMoveEnd, eventParams);
488
+ })));
489
+ combined$Disposable.add(this.registerEventHandler(this.Event.SelectionChanged, () => selectionService.selectionChanged$.subscribe((selections) => {
490
+ var _selections$map4;
491
+ const eventParams = {
492
+ workbook,
493
+ 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 : []
495
+ };
496
+ this.fireEvent(this.Event.SelectionChanged, eventParams);
497
+ })));
498
+ }
497
499
  sheetRenderUnit = null;
498
500
  this.disposeWithMe(combined$Disposable);
499
501
  }));
500
502
  }
503
+ _tryGetRenderDependency(render, dependency) {
504
+ try {
505
+ return render.with(dependency);
506
+ } catch (error) {
507
+ if (error instanceof Error && (error.message.includes("DependencyNotFoundError") || error.message.includes("Cannot find"))) return null;
508
+ throw error;
509
+ }
510
+ }
501
511
  /**
502
512
  * @ignore
503
513
  */
@@ -1275,13 +1285,14 @@ FRange.extend(FRangeSheetsUIMixin);
1275
1285
  * @returns {string} The transformed component key.
1276
1286
  */
1277
1287
  function transformComponentKey(component, componentManager) {
1278
- const { componentKey, isVue3 } = component;
1288
+ const { componentKey, framework } = component;
1279
1289
  let key;
1280
1290
  const disposableCollection = new DisposableCollection();
1281
1291
  if (typeof componentKey === "string") key = componentKey;
1282
1292
  else {
1283
- key = `External_${generateRandomId(6)}`;
1284
- disposableCollection.add(componentManager.register(key, componentKey, { framework: isVue3 ? "vue3" : "react" }));
1293
+ const resolvedFramework = framework !== null && framework !== void 0 ? framework : "react";
1294
+ key = resolvedFramework === "web-component" ? `external-${generateRandomId(6).toLowerCase()}` : `External_${generateRandomId(6)}`;
1295
+ disposableCollection.add(componentManager.register(key, componentKey, { framework: resolvedFramework }));
1285
1296
  }
1286
1297
  return {
1287
1298
  key,