@univerjs/ui 1.0.0-alpha.2 → 1.0.0-alpha.4
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.
- package/lib/cjs/facade.js +2 -0
- package/lib/cjs/index.js +1174 -798
- package/lib/cjs/locale/ar-SA.js +11 -0
- package/lib/cjs/locale/ca-ES.js +11 -0
- package/lib/cjs/locale/de-DE.js +11 -0
- package/lib/cjs/locale/en-US.js +11 -0
- package/lib/cjs/locale/es-ES.js +11 -0
- package/lib/cjs/locale/fa-IR.js +11 -0
- package/lib/cjs/locale/fr-FR.js +11 -0
- package/lib/cjs/locale/id-ID.js +11 -0
- package/lib/cjs/locale/it-IT.js +11 -0
- package/lib/cjs/locale/ja-JP.js +11 -0
- package/lib/cjs/locale/ko-KR.js +11 -0
- package/lib/cjs/locale/pl-PL.js +11 -0
- package/lib/cjs/locale/pt-BR.js +11 -0
- package/lib/cjs/locale/ru-RU.js +11 -0
- package/lib/cjs/locale/sk-SK.js +11 -0
- package/lib/cjs/locale/vi-VN.js +11 -0
- package/lib/cjs/locale/zh-CN.js +11 -0
- package/lib/cjs/locale/zh-HK.js +11 -0
- package/lib/cjs/locale/zh-TW.js +11 -0
- package/lib/es/facade.js +2 -0
- package/lib/es/index.js +1168 -803
- package/lib/es/locale/ar-SA.js +11 -0
- package/lib/es/locale/ca-ES.js +11 -0
- package/lib/es/locale/de-DE.js +11 -0
- package/lib/es/locale/en-US.js +11 -0
- package/lib/es/locale/es-ES.js +11 -0
- package/lib/es/locale/fa-IR.js +11 -0
- package/lib/es/locale/fr-FR.js +11 -0
- package/lib/es/locale/id-ID.js +11 -0
- package/lib/es/locale/it-IT.js +11 -0
- package/lib/es/locale/ja-JP.js +11 -0
- package/lib/es/locale/ko-KR.js +11 -0
- package/lib/es/locale/pl-PL.js +11 -0
- package/lib/es/locale/pt-BR.js +11 -0
- package/lib/es/locale/ru-RU.js +11 -0
- package/lib/es/locale/sk-SK.js +11 -0
- package/lib/es/locale/vi-VN.js +11 -0
- package/lib/es/locale/zh-CN.js +11 -0
- package/lib/es/locale/zh-HK.js +11 -0
- package/lib/es/locale/zh-TW.js +11 -0
- package/lib/facade.js +2 -0
- package/lib/index.css +5 -12
- package/lib/index.js +1168 -803
- package/lib/locale/ar-SA.js +11 -0
- package/lib/locale/ca-ES.js +11 -0
- package/lib/locale/de-DE.js +11 -0
- package/lib/locale/en-US.js +11 -0
- package/lib/locale/es-ES.js +11 -0
- package/lib/locale/fa-IR.js +11 -0
- package/lib/locale/fr-FR.js +11 -0
- package/lib/locale/id-ID.js +11 -0
- package/lib/locale/it-IT.js +11 -0
- package/lib/locale/ja-JP.js +11 -0
- package/lib/locale/ko-KR.js +11 -0
- package/lib/locale/pl-PL.js +11 -0
- package/lib/locale/pt-BR.js +11 -0
- package/lib/locale/ru-RU.js +11 -0
- package/lib/locale/sk-SK.js +11 -0
- package/lib/locale/vi-VN.js +11 -0
- package/lib/locale/zh-CN.js +11 -0
- package/lib/locale/zh-HK.js +11 -0
- package/lib/locale/zh-TW.js +11 -0
- package/lib/types/commands/operations/toggle-fullscreen.operation.d.ts +17 -0
- package/lib/types/controllers/ui/ui-desktop.controller.d.ts +1 -3
- package/lib/types/controllers/ui/ui-mobile.controller.d.ts +1 -3
- package/lib/types/facade/f-menu-builder.d.ts +2 -0
- package/lib/types/index.d.ts +8 -3
- package/lib/types/locale/en-US.d.ts +13 -0
- package/lib/types/services/before-close/before-close.service.d.ts +3 -2
- package/lib/types/services/contextmenu/contextmenu.service.d.ts +6 -3
- package/lib/types/services/dom/canvas-dom-layer.service.d.ts +52 -1
- package/lib/types/services/menu/menu-manager.service.d.ts +1 -0
- package/lib/types/services/menu/menu.d.ts +3 -2
- package/lib/types/services/menu/types.d.ts +1 -0
- package/lib/types/services/popup/canvas-popup.service.d.ts +5 -1
- package/lib/types/services/ribbon/ribbon-override.service.d.ts +42 -0
- package/lib/types/services/runtime-scope/ui-runtime-scope.service.d.ts +32 -0
- package/lib/types/services/shortcut/shortcut.service.d.ts +2 -1
- package/lib/types/utils/embed-boundary.d.ts +23 -0
- package/lib/types/utils/index.d.ts +1 -0
- package/lib/types/views/components/context-menu/AnchoredContextMenu.d.ts +4 -0
- package/lib/types/views/components/context-menu/ContextMenuPanel.d.ts +4 -0
- package/lib/types/views/components/dom/FloatDom.d.ts +12 -1
- package/lib/types/views/components/dom/Print.d.ts +1 -1
- package/lib/types/views/components/dom/float-dom-layout.d.ts +35 -0
- package/lib/types/views/components/ribbon/Ribbon.d.ts +2 -0
- package/lib/types/views/components/ribbon/TooltipButtonWrapper.d.ts +6 -1
- package/lib/types/views/emoji-picker/emoji-picker-utils.d.ts +1 -1
- package/lib/types/views/index.d.ts +1 -1
- package/lib/types/views/menu/mobile/MobileMenu.d.ts +2 -0
- package/lib/types/views/slider/ZoomInput.d.ts +25 -0
- package/lib/types/views/slider/index.d.ts +1 -0
- package/lib/umd/index.js +15 -22
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +9 -9
package/lib/locale/ar-SA.js
CHANGED
|
@@ -7426,6 +7426,17 @@ const locale = { ui: {
|
|
|
7426
7426
|
},
|
|
7427
7427
|
"common-edit": "اختصارات التحرير الشائعة",
|
|
7428
7428
|
"toggle-shortcut-panel": "تبديل لوحة الاختصارات",
|
|
7429
|
+
navigation: {
|
|
7430
|
+
back: "رجوع",
|
|
7431
|
+
previous: "السابق",
|
|
7432
|
+
next: "التالي"
|
|
7433
|
+
},
|
|
7434
|
+
sidebar: {
|
|
7435
|
+
panel: "لوحة جانبية",
|
|
7436
|
+
resize: "تغيير حجم الشريط الجانبي",
|
|
7437
|
+
close: "إغلاق الشريط الجانبي"
|
|
7438
|
+
},
|
|
7439
|
+
beforeClose: { title: "لم يتم حفظ بعض التغييرات" },
|
|
7429
7440
|
clipboard: { authentication: {
|
|
7430
7441
|
title: "تم رفض الإذن",
|
|
7431
7442
|
content: "يرجى السماح لـ Univer بالوصول إلى الحافظة."
|
package/lib/locale/ca-ES.js
CHANGED
|
@@ -7426,6 +7426,17 @@ const locale = { ui: {
|
|
|
7426
7426
|
},
|
|
7427
7427
|
"common-edit": "Dreceres d'edició comunes",
|
|
7428
7428
|
"toggle-shortcut-panel": "Alterna el panell de dreceres",
|
|
7429
|
+
navigation: {
|
|
7430
|
+
back: "Enrere",
|
|
7431
|
+
previous: "Anterior",
|
|
7432
|
+
next: "Següent"
|
|
7433
|
+
},
|
|
7434
|
+
sidebar: {
|
|
7435
|
+
panel: "Panell lateral",
|
|
7436
|
+
resize: "Canvia la mida del panell lateral",
|
|
7437
|
+
close: "Tanca el panell lateral"
|
|
7438
|
+
},
|
|
7439
|
+
beforeClose: { title: "Alguns canvis no s'han desat" },
|
|
7429
7440
|
clipboard: { authentication: {
|
|
7430
7441
|
title: "Permís denegat",
|
|
7431
7442
|
content: "Si us plau, permet que Univer accedeixi al teu porta-retalls."
|
package/lib/locale/de-DE.js
CHANGED
|
@@ -7426,6 +7426,17 @@ const locale = { ui: {
|
|
|
7426
7426
|
},
|
|
7427
7427
|
"common-edit": "Häufige Bearbeitungstastenkürzel",
|
|
7428
7428
|
"toggle-shortcut-panel": "Tastenkürzel-Panel ein-/ausblenden",
|
|
7429
|
+
navigation: {
|
|
7430
|
+
back: "Zurück",
|
|
7431
|
+
previous: "Vorherige",
|
|
7432
|
+
next: "Nächste"
|
|
7433
|
+
},
|
|
7434
|
+
sidebar: {
|
|
7435
|
+
panel: "Seitenleiste",
|
|
7436
|
+
resize: "Größe der Seitenleiste ändern",
|
|
7437
|
+
close: "Seitenleiste schließen"
|
|
7438
|
+
},
|
|
7439
|
+
beforeClose: { title: "Einige Änderungen wurden nicht gespeichert" },
|
|
7429
7440
|
clipboard: { authentication: {
|
|
7430
7441
|
title: "Berechtigung verweigert",
|
|
7431
7442
|
content: "Bitte erlauben Sie Univer den Zugriff auf Ihre Zwischenablage."
|
package/lib/locale/en-US.js
CHANGED
|
@@ -7441,6 +7441,17 @@ const locale = { ui: {
|
|
|
7441
7441
|
},
|
|
7442
7442
|
"common-edit": "Common Editing Shortcuts",
|
|
7443
7443
|
"toggle-shortcut-panel": "Toggle Shortcut Panel",
|
|
7444
|
+
navigation: {
|
|
7445
|
+
back: "Back",
|
|
7446
|
+
previous: "Previous",
|
|
7447
|
+
next: "Next"
|
|
7448
|
+
},
|
|
7449
|
+
sidebar: {
|
|
7450
|
+
panel: "Sidebar panel",
|
|
7451
|
+
resize: "Resize sidebar",
|
|
7452
|
+
close: "Close sidebar"
|
|
7453
|
+
},
|
|
7454
|
+
beforeClose: { title: "Some changes are not saved" },
|
|
7444
7455
|
clipboard: { authentication: {
|
|
7445
7456
|
title: "Permission Denied",
|
|
7446
7457
|
content: "Please allow Univer to access your clipboard."
|
package/lib/locale/es-ES.js
CHANGED
|
@@ -7426,6 +7426,17 @@ const locale = { ui: {
|
|
|
7426
7426
|
},
|
|
7427
7427
|
"common-edit": "Atajos de edición comunes",
|
|
7428
7428
|
"toggle-shortcut-panel": "Alternar panel de atajos",
|
|
7429
|
+
navigation: {
|
|
7430
|
+
back: "Atrás",
|
|
7431
|
+
previous: "Anterior",
|
|
7432
|
+
next: "Siguiente"
|
|
7433
|
+
},
|
|
7434
|
+
sidebar: {
|
|
7435
|
+
panel: "Panel lateral",
|
|
7436
|
+
resize: "Cambiar el tamaño del panel lateral",
|
|
7437
|
+
close: "Cerrar el panel lateral"
|
|
7438
|
+
},
|
|
7439
|
+
beforeClose: { title: "Algunos cambios no se han guardado" },
|
|
7429
7440
|
clipboard: { authentication: {
|
|
7430
7441
|
title: "Permiso denegado",
|
|
7431
7442
|
content: "Por favor, permite que Univer acceda a tu portapapeles."
|
package/lib/locale/fa-IR.js
CHANGED
|
@@ -7426,6 +7426,17 @@ const locale = { ui: {
|
|
|
7426
7426
|
},
|
|
7427
7427
|
"common-edit": "کلیدهای میانبر ویرایش عمومی",
|
|
7428
7428
|
"toggle-shortcut-panel": "نمایش/مخفی کردن پنل کلیدهای میانبر",
|
|
7429
|
+
navigation: {
|
|
7430
|
+
back: "بازگشت",
|
|
7431
|
+
previous: "قبلی",
|
|
7432
|
+
next: "بعدی"
|
|
7433
|
+
},
|
|
7434
|
+
sidebar: {
|
|
7435
|
+
panel: "پنل کناری",
|
|
7436
|
+
resize: "تغییر اندازه پنل کناری",
|
|
7437
|
+
close: "بستن پنل کناری"
|
|
7438
|
+
},
|
|
7439
|
+
beforeClose: { title: "برخی تغییرات ذخیره نشدهاند" },
|
|
7429
7440
|
clipboard: { authentication: {
|
|
7430
7441
|
title: "اجازه دسترسی داده نشده است",
|
|
7431
7442
|
content: "لطفا به Univer اجازه دسترسی به کلیپ بورد خود را بدهید."
|
package/lib/locale/fr-FR.js
CHANGED
|
@@ -7426,6 +7426,17 @@ const locale = { ui: {
|
|
|
7426
7426
|
},
|
|
7427
7427
|
"common-edit": "Raccourcis d'édition courants",
|
|
7428
7428
|
"toggle-shortcut-panel": "Basculer le panneau de raccourcis",
|
|
7429
|
+
navigation: {
|
|
7430
|
+
back: "Retour",
|
|
7431
|
+
previous: "Précédent",
|
|
7432
|
+
next: "Suivant"
|
|
7433
|
+
},
|
|
7434
|
+
sidebar: {
|
|
7435
|
+
panel: "Panneau latéral",
|
|
7436
|
+
resize: "Redimensionner le panneau latéral",
|
|
7437
|
+
close: "Fermer le panneau latéral"
|
|
7438
|
+
},
|
|
7439
|
+
beforeClose: { title: "Certaines modifications n'ont pas été enregistrées" },
|
|
7429
7440
|
clipboard: { authentication: {
|
|
7430
7441
|
title: "Permission refusée",
|
|
7431
7442
|
content: "Veuillez autoriser Univer à accéder à votre presse-papiers."
|
package/lib/locale/id-ID.js
CHANGED
|
@@ -7426,6 +7426,17 @@ const locale = { ui: {
|
|
|
7426
7426
|
},
|
|
7427
7427
|
"common-edit": "Pintasan Edit Umum",
|
|
7428
7428
|
"toggle-shortcut-panel": "Alihkan Panel Pintasan",
|
|
7429
|
+
navigation: {
|
|
7430
|
+
back: "Kembali",
|
|
7431
|
+
previous: "Sebelumnya",
|
|
7432
|
+
next: "Berikutnya"
|
|
7433
|
+
},
|
|
7434
|
+
sidebar: {
|
|
7435
|
+
panel: "Panel samping",
|
|
7436
|
+
resize: "Ubah ukuran panel samping",
|
|
7437
|
+
close: "Tutup panel samping"
|
|
7438
|
+
},
|
|
7439
|
+
beforeClose: { title: "Beberapa perubahan belum disimpan" },
|
|
7429
7440
|
clipboard: { authentication: {
|
|
7430
7441
|
title: "Izin Ditolak",
|
|
7431
7442
|
content: "Izinkan Univer untuk mengakses clipboard Anda."
|
package/lib/locale/it-IT.js
CHANGED
|
@@ -7426,6 +7426,17 @@ const locale = { ui: {
|
|
|
7426
7426
|
},
|
|
7427
7427
|
"common-edit": "Scorciatoie di Modifica Comuni",
|
|
7428
7428
|
"toggle-shortcut-panel": "Attiva/Disattiva Pannello Scorciatoie",
|
|
7429
|
+
navigation: {
|
|
7430
|
+
back: "Indietro",
|
|
7431
|
+
previous: "Precedente",
|
|
7432
|
+
next: "Successivo"
|
|
7433
|
+
},
|
|
7434
|
+
sidebar: {
|
|
7435
|
+
panel: "Pannello laterale",
|
|
7436
|
+
resize: "Ridimensiona il pannello laterale",
|
|
7437
|
+
close: "Chiudi il pannello laterale"
|
|
7438
|
+
},
|
|
7439
|
+
beforeClose: { title: "Alcune modifiche non sono state salvate" },
|
|
7429
7440
|
clipboard: { authentication: {
|
|
7430
7441
|
title: "Autorizzazione Negata",
|
|
7431
7442
|
content: "Consenti a Univer di accedere alla tua clipboard."
|
package/lib/locale/ja-JP.js
CHANGED
|
@@ -7426,6 +7426,17 @@ const locale = { ui: {
|
|
|
7426
7426
|
},
|
|
7427
7427
|
"common-edit": "一般編集ショートカット",
|
|
7428
7428
|
"toggle-shortcut-panel": "ショートカットパネルを切り替え",
|
|
7429
|
+
navigation: {
|
|
7430
|
+
back: "戻る",
|
|
7431
|
+
previous: "前へ",
|
|
7432
|
+
next: "次へ"
|
|
7433
|
+
},
|
|
7434
|
+
sidebar: {
|
|
7435
|
+
panel: "サイドバーパネル",
|
|
7436
|
+
resize: "サイドバーのサイズを変更",
|
|
7437
|
+
close: "サイドバーを閉じる"
|
|
7438
|
+
},
|
|
7439
|
+
beforeClose: { title: "一部の変更が保存されていません" },
|
|
7429
7440
|
clipboard: { authentication: {
|
|
7430
7441
|
title: "権限が拒否されました",
|
|
7431
7442
|
content: "Univerにクリップボードアクセスの権限を付与してください。"
|
package/lib/locale/ko-KR.js
CHANGED
|
@@ -7426,6 +7426,17 @@ const locale = { ui: {
|
|
|
7426
7426
|
},
|
|
7427
7427
|
"common-edit": "일반 편집 단축키",
|
|
7428
7428
|
"toggle-shortcut-panel": "단축키 패널 전환",
|
|
7429
|
+
navigation: {
|
|
7430
|
+
back: "뒤로",
|
|
7431
|
+
previous: "이전",
|
|
7432
|
+
next: "다음"
|
|
7433
|
+
},
|
|
7434
|
+
sidebar: {
|
|
7435
|
+
panel: "사이드바 패널",
|
|
7436
|
+
resize: "사이드바 크기 조정",
|
|
7437
|
+
close: "사이드바 닫기"
|
|
7438
|
+
},
|
|
7439
|
+
beforeClose: { title: "일부 변경 사항이 저장되지 않았습니다" },
|
|
7429
7440
|
clipboard: { authentication: {
|
|
7430
7441
|
title: "권한 거절",
|
|
7431
7442
|
content: "Univer에 클립보드 접근 권한을 부여해주세요."
|
package/lib/locale/pl-PL.js
CHANGED
|
@@ -7426,6 +7426,17 @@ const locale = { ui: {
|
|
|
7426
7426
|
},
|
|
7427
7427
|
"common-edit": "Skróty do częstej edycji",
|
|
7428
7428
|
"toggle-shortcut-panel": "Przełącz panel skrótów",
|
|
7429
|
+
navigation: {
|
|
7430
|
+
back: "Wstecz",
|
|
7431
|
+
previous: "Poprzedni",
|
|
7432
|
+
next: "Następny"
|
|
7433
|
+
},
|
|
7434
|
+
sidebar: {
|
|
7435
|
+
panel: "Panel boczny",
|
|
7436
|
+
resize: "Zmień rozmiar panelu bocznego",
|
|
7437
|
+
close: "Zamknij panel boczny"
|
|
7438
|
+
},
|
|
7439
|
+
beforeClose: { title: "Niektóre zmiany nie zostały zapisane" },
|
|
7429
7440
|
clipboard: { authentication: {
|
|
7430
7441
|
title: "Brak uprawnień",
|
|
7431
7442
|
content: "Zezwól Univer na dostęp do schowka."
|
package/lib/locale/pt-BR.js
CHANGED
|
@@ -7426,6 +7426,17 @@ const locale = { ui: {
|
|
|
7426
7426
|
},
|
|
7427
7427
|
"common-edit": "Atalhos Comuns de Edição",
|
|
7428
7428
|
"toggle-shortcut-panel": "Alternar Painel de Atalhos",
|
|
7429
|
+
navigation: {
|
|
7430
|
+
back: "Voltar",
|
|
7431
|
+
previous: "Anterior",
|
|
7432
|
+
next: "Próximo"
|
|
7433
|
+
},
|
|
7434
|
+
sidebar: {
|
|
7435
|
+
panel: "Painel lateral",
|
|
7436
|
+
resize: "Redimensionar o painel lateral",
|
|
7437
|
+
close: "Fechar o painel lateral"
|
|
7438
|
+
},
|
|
7439
|
+
beforeClose: { title: "Algumas alterações não foram salvas" },
|
|
7429
7440
|
clipboard: { authentication: {
|
|
7430
7441
|
title: "Permissão Negada",
|
|
7431
7442
|
content: "Permita que o Univer acesse sua área de transferência."
|
package/lib/locale/ru-RU.js
CHANGED
|
@@ -7426,6 +7426,17 @@ const locale = { ui: {
|
|
|
7426
7426
|
},
|
|
7427
7427
|
"common-edit": "Общие команды редактирования",
|
|
7428
7428
|
"toggle-shortcut-panel": "Переключить панель сочетания клавиш",
|
|
7429
|
+
navigation: {
|
|
7430
|
+
back: "Назад",
|
|
7431
|
+
previous: "Предыдущий",
|
|
7432
|
+
next: "Следующий"
|
|
7433
|
+
},
|
|
7434
|
+
sidebar: {
|
|
7435
|
+
panel: "Боковая панель",
|
|
7436
|
+
resize: "Изменить размер боковой панели",
|
|
7437
|
+
close: "Закрыть боковую панель"
|
|
7438
|
+
},
|
|
7439
|
+
beforeClose: { title: "Некоторые изменения не сохранены" },
|
|
7429
7440
|
clipboard: { authentication: {
|
|
7430
7441
|
title: "Доступ запрещен",
|
|
7431
7442
|
content: "Пожалуйста, разрешите Univer доступ к вашему буферу обмена."
|
package/lib/locale/sk-SK.js
CHANGED
|
@@ -7426,6 +7426,17 @@ const locale = { ui: {
|
|
|
7426
7426
|
},
|
|
7427
7427
|
"common-edit": "Bežné úpravové skratky",
|
|
7428
7428
|
"toggle-shortcut-panel": "Prepnúť panel skratiek",
|
|
7429
|
+
navigation: {
|
|
7430
|
+
back: "Späť",
|
|
7431
|
+
previous: "Predchádzajúce",
|
|
7432
|
+
next: "Ďalšie"
|
|
7433
|
+
},
|
|
7434
|
+
sidebar: {
|
|
7435
|
+
panel: "Bočný panel",
|
|
7436
|
+
resize: "Zmeniť veľkosť bočného panela",
|
|
7437
|
+
close: "Zavrieť bočný panel"
|
|
7438
|
+
},
|
|
7439
|
+
beforeClose: { title: "Niektoré zmeny neboli uložené" },
|
|
7429
7440
|
clipboard: { authentication: {
|
|
7430
7441
|
title: "Povolenie zamietnuté",
|
|
7431
7442
|
content: "Povoľte Univeru prístup k schránke."
|
package/lib/locale/vi-VN.js
CHANGED
|
@@ -7426,6 +7426,17 @@ const locale = { ui: {
|
|
|
7426
7426
|
},
|
|
7427
7427
|
"common-edit": "Chỉnh sửa thường dùng",
|
|
7428
7428
|
"toggle-shortcut-panel": "Mở/Đóng bảng phím tắt",
|
|
7429
|
+
navigation: {
|
|
7430
|
+
back: "Quay lại",
|
|
7431
|
+
previous: "Trước",
|
|
7432
|
+
next: "Tiếp theo"
|
|
7433
|
+
},
|
|
7434
|
+
sidebar: {
|
|
7435
|
+
panel: "Bảng bên",
|
|
7436
|
+
resize: "Thay đổi kích thước bảng bên",
|
|
7437
|
+
close: "Đóng bảng bên"
|
|
7438
|
+
},
|
|
7439
|
+
beforeClose: { title: "Một số thay đổi chưa được lưu" },
|
|
7429
7440
|
clipboard: { authentication: {
|
|
7430
7441
|
title: "Không thể truy cập vào bảng nhớ tạm",
|
|
7431
7442
|
content: "Vui lòng cho phép Univer truy cập vào bảng nhớ tạm của bạn."
|
package/lib/locale/zh-CN.js
CHANGED
|
@@ -7426,6 +7426,17 @@ const locale = { ui: {
|
|
|
7426
7426
|
},
|
|
7427
7427
|
"common-edit": "常用编辑",
|
|
7428
7428
|
"toggle-shortcut-panel": "打开收起快捷键面板",
|
|
7429
|
+
navigation: {
|
|
7430
|
+
back: "返回",
|
|
7431
|
+
previous: "上一个",
|
|
7432
|
+
next: "下一个"
|
|
7433
|
+
},
|
|
7434
|
+
sidebar: {
|
|
7435
|
+
panel: "侧边栏",
|
|
7436
|
+
resize: "调整侧边栏大小",
|
|
7437
|
+
close: "关闭侧边栏"
|
|
7438
|
+
},
|
|
7439
|
+
beforeClose: { title: "部分更改尚未保存" },
|
|
7429
7440
|
clipboard: { authentication: {
|
|
7430
7441
|
title: "无法访问剪贴板",
|
|
7431
7442
|
content: "请允许 Univer 访问您的剪贴板。"
|
package/lib/locale/zh-HK.js
CHANGED
|
@@ -7426,6 +7426,17 @@ const locale = { ui: {
|
|
|
7426
7426
|
},
|
|
7427
7427
|
"common-edit": "常用編輯",
|
|
7428
7428
|
"toggle-shortcut-panel": "開啟收起快速鍵面板",
|
|
7429
|
+
navigation: {
|
|
7430
|
+
back: "返回",
|
|
7431
|
+
previous: "上一個",
|
|
7432
|
+
next: "下一個"
|
|
7433
|
+
},
|
|
7434
|
+
sidebar: {
|
|
7435
|
+
panel: "側邊欄",
|
|
7436
|
+
resize: "調整側邊欄大小",
|
|
7437
|
+
close: "關閉側邊欄"
|
|
7438
|
+
},
|
|
7439
|
+
beforeClose: { title: "部分變更尚未儲存" },
|
|
7429
7440
|
clipboard: { authentication: {
|
|
7430
7441
|
title: "無法存取剪貼簿",
|
|
7431
7442
|
content: "請允許 Univer 存取您的剪貼簿。 "
|
package/lib/locale/zh-TW.js
CHANGED
|
@@ -7426,6 +7426,17 @@ const locale = { ui: {
|
|
|
7426
7426
|
},
|
|
7427
7427
|
"common-edit": "常用編輯",
|
|
7428
7428
|
"toggle-shortcut-panel": "開啟收起快速鍵面板",
|
|
7429
|
+
navigation: {
|
|
7430
|
+
back: "返回",
|
|
7431
|
+
previous: "上一個",
|
|
7432
|
+
next: "下一個"
|
|
7433
|
+
},
|
|
7434
|
+
sidebar: {
|
|
7435
|
+
panel: "側邊欄",
|
|
7436
|
+
resize: "調整側邊欄大小",
|
|
7437
|
+
close: "關閉側邊欄"
|
|
7438
|
+
},
|
|
7439
|
+
beforeClose: { title: "部分變更尚未儲存" },
|
|
7429
7440
|
clipboard: { authentication: {
|
|
7430
7441
|
title: "無法存取剪貼簿",
|
|
7431
7442
|
content: "請允許 Univer 存取您的剪貼簿。 "
|
|
@@ -0,0 +1,17 @@
|
|
|
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 { IOperation } from '@univerjs/core';
|
|
17
|
+
export declare const ToggleFullscreenOperation: IOperation;
|
|
@@ -17,15 +17,13 @@ import type { IDisposable } from '@univerjs/core';
|
|
|
17
17
|
import type { IUniverUIConfig } from '../../config/config';
|
|
18
18
|
import { Injector, IUniverInstanceService, LifecycleService } from '@univerjs/core';
|
|
19
19
|
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
20
|
-
import { ComponentManager } from '../../common';
|
|
21
20
|
import { ILayoutService } from '../../services/layout/layout.service';
|
|
22
21
|
import { IMenuManagerService } from '../../services/menu/menu-manager.service';
|
|
23
22
|
import { IUIPartsService } from '../../services/parts/parts.service';
|
|
24
23
|
import { SingleUnitUIController } from './ui-shared.controller';
|
|
25
24
|
export declare class DesktopUIController extends SingleUnitUIController {
|
|
26
25
|
private readonly _config;
|
|
27
|
-
|
|
28
|
-
constructor(_config: IUniverUIConfig, injector: Injector, lifecycleService: LifecycleService, renderManagerService: IRenderManagerService, layoutService: ILayoutService, instanceService: IUniverInstanceService, menuManagerService: IMenuManagerService, uiPartsService: IUIPartsService, _componentManager: ComponentManager);
|
|
26
|
+
constructor(_config: IUniverUIConfig, injector: Injector, lifecycleService: LifecycleService, renderManagerService: IRenderManagerService, layoutService: ILayoutService, instanceService: IUniverInstanceService, menuManagerService: IMenuManagerService, uiPartsService: IUIPartsService);
|
|
29
27
|
dispose(): void;
|
|
30
28
|
bootstrap(callback: (contentElement: HTMLElement, containerElement: HTMLElement) => void): IDisposable;
|
|
31
29
|
private _initBuiltinComponents;
|
|
@@ -18,15 +18,13 @@ import type { IUniverUIConfig } from '../../config/config';
|
|
|
18
18
|
import type { IUIController } from './ui.controller';
|
|
19
19
|
import { Injector, IUniverInstanceService, LifecycleService } from '@univerjs/core';
|
|
20
20
|
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
21
|
-
import { ComponentManager } from '../../common';
|
|
22
21
|
import { ILayoutService } from '../../services/layout/layout.service';
|
|
23
22
|
import { IMenuManagerService } from '../../services/menu/menu-manager.service';
|
|
24
23
|
import { IUIPartsService } from '../../services/parts/parts.service';
|
|
25
24
|
import { SingleUnitUIController } from './ui-shared.controller';
|
|
26
25
|
export declare class MobileUIController extends SingleUnitUIController implements IUIController {
|
|
27
26
|
private readonly _config;
|
|
28
|
-
|
|
29
|
-
constructor(_config: IUniverUIConfig, injector: Injector, lifecycleService: LifecycleService, renderManagerService: IRenderManagerService, layoutService: ILayoutService, instanceService: IUniverInstanceService, menuManagerService: IMenuManagerService, uiPartsService: IUIPartsService, _componentManager: ComponentManager);
|
|
27
|
+
constructor(_config: IUniverUIConfig, injector: Injector, lifecycleService: LifecycleService, renderManagerService: IRenderManagerService, layoutService: ILayoutService, instanceService: IUniverInstanceService, menuManagerService: IMenuManagerService, uiPartsService: IUIPartsService);
|
|
30
28
|
dispose(): void;
|
|
31
29
|
bootstrap(callback: (contentElement: HTMLElement, containerElement: HTMLElement) => void): IDisposable;
|
|
32
30
|
private _initBuiltinComponents;
|
|
@@ -133,6 +133,7 @@ export declare class FMenu extends FMenuBase {
|
|
|
133
133
|
constructor(_item: IFacadeMenuItem, _injector: Injector, _commandService: ICommandService, _menuManagerService: IMenuManagerService);
|
|
134
134
|
/**
|
|
135
135
|
* @ignore
|
|
136
|
+
* @returns The generated menu schema.
|
|
136
137
|
*/
|
|
137
138
|
__getSchema(): {
|
|
138
139
|
[key: string]: MenuSchemaType;
|
|
@@ -223,6 +224,7 @@ export declare class FSubmenu extends FMenuBase {
|
|
|
223
224
|
addSeparator(): this;
|
|
224
225
|
/**
|
|
225
226
|
* @ignore
|
|
227
|
+
* @returns The generated submenu schema.
|
|
226
228
|
*/
|
|
227
229
|
__getSchema(): {
|
|
228
230
|
[key: string]: MenuSchemaType;
|
package/lib/types/index.d.ts
CHANGED
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import './global.css';
|
|
17
|
+
export { ToggleFullscreenOperation } from './commands/operations/toggle-fullscreen.operation';
|
|
17
18
|
export { ToggleShortcutPanelOperation } from './commands/operations/toggle-shortcut-panel.operation';
|
|
18
19
|
export * from './common';
|
|
19
20
|
export { getHeaderFooterMenuHiddenObservable, getMenuHiddenObservable } from './common/menu-hidden-observable';
|
|
@@ -41,8 +42,8 @@ export { ContextMenuService, IContextMenuService } from './services/contextmenu/
|
|
|
41
42
|
export type { IContextMenuHandler } from './services/contextmenu/contextmenu.service';
|
|
42
43
|
export { DesktopDialogService } from './services/dialog/desktop-dialog.service';
|
|
43
44
|
export { IDialogService } from './services/dialog/dialog.service';
|
|
44
|
-
export { CanvasFloatDomService } from './services/dom/canvas-dom-layer.service';
|
|
45
|
-
export type { IFloatDom, IFloatDomLayout } from './services/dom/canvas-dom-layer.service';
|
|
45
|
+
export { CanvasFloatDomPreviewService, CanvasFloatDomService } from './services/dom/canvas-dom-layer.service';
|
|
46
|
+
export type { ICanvasFloatDomPreview, ICanvasFloatDomPreviewRequest, IFloatDom, IFloatDomLayout } from './services/dom/canvas-dom-layer.service';
|
|
46
47
|
export { FontService, IFontService } from './services/font.service';
|
|
47
48
|
export type { IFontConfig } from './services/font.service';
|
|
48
49
|
export { DesktopGalleryService } from './services/gallery/desktop-gallery.service';
|
|
@@ -66,8 +67,12 @@ export { INotificationService } from './services/notification/notification.servi
|
|
|
66
67
|
export { BuiltInUIPart, IUIPartsService, UIPartsService } from './services/parts/parts.service';
|
|
67
68
|
export { IPlatformService, PlatformService } from './services/platform/platform.service';
|
|
68
69
|
export { CanvasPopupService, ICanvasPopupService } from './services/popup/canvas-popup.service';
|
|
69
|
-
export type { IPopup } from './services/popup/canvas-popup.service';
|
|
70
|
+
export type { IPopup, IPopupWithExtraProps } from './services/popup/canvas-popup.service';
|
|
71
|
+
export { IRibbonOverrideService, RibbonOverrideService } from './services/ribbon/ribbon-override.service';
|
|
72
|
+
export type { IRibbonOverride } from './services/ribbon/ribbon-override.service';
|
|
70
73
|
export { DesktopRibbonService, IRibbonService } from './services/ribbon/ribbon.service';
|
|
74
|
+
export { IUIRuntimeScopeService, UIRuntimeScopeService } from './services/runtime-scope/ui-runtime-scope.service';
|
|
75
|
+
export type { IUIRuntimeScope } from './services/runtime-scope/ui-runtime-scope.service';
|
|
71
76
|
export { KeyCode, MetaKeys } from './services/shortcut/keycode';
|
|
72
77
|
export { ShortcutPanelService } from './services/shortcut/shortcut-panel.service';
|
|
73
78
|
export { IShortcutService, ShortcutService } from './services/shortcut/shortcut.service';
|
|
@@ -89,6 +89,19 @@ declare const locale: {
|
|
|
89
89
|
};
|
|
90
90
|
'common-edit': string;
|
|
91
91
|
'toggle-shortcut-panel': string;
|
|
92
|
+
navigation: {
|
|
93
|
+
back: string;
|
|
94
|
+
previous: string;
|
|
95
|
+
next: string;
|
|
96
|
+
};
|
|
97
|
+
sidebar: {
|
|
98
|
+
panel: string;
|
|
99
|
+
resize: string;
|
|
100
|
+
close: string;
|
|
101
|
+
};
|
|
102
|
+
beforeClose: {
|
|
103
|
+
title: string;
|
|
104
|
+
};
|
|
92
105
|
clipboard: {
|
|
93
106
|
authentication: {
|
|
94
107
|
title: string;
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import type { IDisposable } from '@univerjs/core';
|
|
17
|
-
import { Disposable } from '@univerjs/core';
|
|
17
|
+
import { Disposable, LocaleService } from '@univerjs/core';
|
|
18
18
|
import { INotificationService } from '../notification/notification.service';
|
|
19
19
|
export interface IBeforeCloseService {
|
|
20
20
|
/**
|
|
@@ -35,11 +35,12 @@ export interface IBeforeCloseService {
|
|
|
35
35
|
export declare const IBeforeCloseService: import("@wendellhu/redi").IdentifierDecorator<IBeforeCloseService>;
|
|
36
36
|
export declare class DesktopBeforeCloseService extends Disposable implements IBeforeCloseService {
|
|
37
37
|
private readonly _notificationService;
|
|
38
|
+
private readonly _localeService;
|
|
38
39
|
private _beforeUnloadCallbacks;
|
|
39
40
|
private _onCloseCallbacks;
|
|
40
41
|
private readonly _beforeUnloadHandler;
|
|
41
42
|
private readonly _unloadHandler;
|
|
42
|
-
constructor(_notificationService: INotificationService);
|
|
43
|
+
constructor(_notificationService: INotificationService, _localeService: LocaleService);
|
|
43
44
|
dispose(): void;
|
|
44
45
|
registerBeforeClose(callback: () => string | undefined): IDisposable;
|
|
45
46
|
registerOnClose(callback: () => void): IDisposable;
|
|
@@ -16,9 +16,12 @@
|
|
|
16
16
|
import type { IDisposable } from '@univerjs/core';
|
|
17
17
|
import type { IMouseEvent, IPointerEvent } from '@univerjs/engine-render';
|
|
18
18
|
import { Disposable } from '@univerjs/core';
|
|
19
|
+
export interface IContextMenuTriggerContext {
|
|
20
|
+
unitId?: string;
|
|
21
|
+
}
|
|
19
22
|
export interface IContextMenuHandler {
|
|
20
23
|
/** A callback to open context menu with given position and menu type. */
|
|
21
|
-
handleContextMenu(event: IPointerEvent | IMouseEvent, menuType: string): void;
|
|
24
|
+
handleContextMenu(event: IPointerEvent | IMouseEvent, menuType: string, context?: IContextMenuTriggerContext): void;
|
|
22
25
|
hideContextMenu(): void;
|
|
23
26
|
get visible(): boolean;
|
|
24
27
|
}
|
|
@@ -27,7 +30,7 @@ export interface IContextMenuService {
|
|
|
27
30
|
get visible(): boolean;
|
|
28
31
|
enable(): void;
|
|
29
32
|
disable(): void;
|
|
30
|
-
triggerContextMenu(event: IPointerEvent | IMouseEvent, menuType: string): void;
|
|
33
|
+
triggerContextMenu(event: IPointerEvent | IMouseEvent, menuType: string, context?: IContextMenuTriggerContext): void;
|
|
31
34
|
hideContextMenu(): void;
|
|
32
35
|
registerContextMenuHandler(handler: IContextMenuHandler): IDisposable;
|
|
33
36
|
}
|
|
@@ -38,7 +41,7 @@ export declare class ContextMenuService extends Disposable implements IContextMe
|
|
|
38
41
|
get visible(): boolean;
|
|
39
42
|
disable(): void;
|
|
40
43
|
enable(): void;
|
|
41
|
-
triggerContextMenu(event: IPointerEvent | IMouseEvent, menuType: string): void;
|
|
44
|
+
triggerContextMenu(event: IPointerEvent | IMouseEvent, menuType: string, context?: IContextMenuTriggerContext): void;
|
|
42
45
|
hideContextMenu(): void;
|
|
43
46
|
registerContextMenuHandler(handler: IContextMenuHandler): IDisposable;
|
|
44
47
|
}
|
|
@@ -15,6 +15,8 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import type { IPosition, Serializable } from '@univerjs/core';
|
|
17
17
|
import type { Observable } from 'rxjs';
|
|
18
|
+
import { Disposable } from '@univerjs/core';
|
|
19
|
+
import { Subject } from 'rxjs';
|
|
18
20
|
export interface IFloatDomLayout extends IPosition {
|
|
19
21
|
rotate: number;
|
|
20
22
|
width: number;
|
|
@@ -25,11 +27,34 @@ export interface IFloatDomLayout extends IPosition {
|
|
|
25
27
|
};
|
|
26
28
|
opacity?: number;
|
|
27
29
|
}
|
|
30
|
+
export interface IFloatDomContentBoxConfig {
|
|
31
|
+
/** Amount subtracted from the visible wrapper width and height. @default 2 */
|
|
32
|
+
wrapperInset?: number;
|
|
33
|
+
/** Amount subtracted from the content width and height. @default 4 */
|
|
34
|
+
contentInset?: number;
|
|
35
|
+
}
|
|
28
36
|
export interface IFloatDom {
|
|
29
37
|
position$: Observable<IFloatDomLayout>;
|
|
30
38
|
id: string;
|
|
31
39
|
domId?: string;
|
|
32
40
|
componentKey: string | React.ComponentType;
|
|
41
|
+
/**
|
|
42
|
+
* Whether pointer and wheel events inside the floating DOM should be
|
|
43
|
+
* forwarded back to the host canvas. Existing canvas-owned float DOMs keep
|
|
44
|
+
* forwarding by default; interactive embed runtimes can opt out.
|
|
45
|
+
*/
|
|
46
|
+
eventPassThrough?: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Keep rendering this host-owned layer even when focus temporarily moves
|
|
49
|
+
* into a child runtime unit. Interactive embed float blocks need this so
|
|
50
|
+
* their DOM portal is not filtered out when the child handles focus.
|
|
51
|
+
*/
|
|
52
|
+
preserveOnFocusChange?: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* Insets subtracted from FloatDom's wrapper and content dimensions.
|
|
55
|
+
* Omitted values preserve the historical wrapper/content insets of 2/4.
|
|
56
|
+
*/
|
|
57
|
+
contentBox?: IFloatDomContentBoxConfig;
|
|
33
58
|
onPointerMove: (evt: PointerEvent | MouseEvent) => void;
|
|
34
59
|
onPointerDown: (evt: PointerEvent | MouseEvent) => void;
|
|
35
60
|
onPointerUp: (evt: PointerEvent | MouseEvent) => void;
|
|
@@ -38,7 +63,9 @@ export interface IFloatDom {
|
|
|
38
63
|
data?: Serializable;
|
|
39
64
|
unitId: string;
|
|
40
65
|
}
|
|
41
|
-
export declare
|
|
66
|
+
export declare function shouldForwardFloatDomEvents(layer: Pick<IFloatDom, 'eventPassThrough'>): boolean;
|
|
67
|
+
export declare function shouldRenderFloatDomLayer(layer: Pick<IFloatDom, 'unitId' | 'preserveOnFocusChange'>, currentUnitId: string | null | undefined): boolean;
|
|
68
|
+
export declare class CanvasFloatDomService extends Disposable {
|
|
42
69
|
private _domLayerMap;
|
|
43
70
|
private _domLayers$;
|
|
44
71
|
domLayers$: Observable<[string, IFloatDom][]>;
|
|
@@ -48,4 +75,28 @@ export declare class CanvasFloatDomService {
|
|
|
48
75
|
addFloatDom(item: IFloatDom): void;
|
|
49
76
|
removeFloatDom(id: string): void;
|
|
50
77
|
removeAll(): void;
|
|
78
|
+
dispose(): void;
|
|
79
|
+
}
|
|
80
|
+
export interface ICanvasFloatDomPreview {
|
|
81
|
+
id: string;
|
|
82
|
+
image: string;
|
|
83
|
+
updatedAt: number;
|
|
84
|
+
}
|
|
85
|
+
export interface ICanvasFloatDomPreviewRequest {
|
|
86
|
+
id: string;
|
|
87
|
+
width: number;
|
|
88
|
+
height: number;
|
|
89
|
+
data?: unknown;
|
|
90
|
+
}
|
|
91
|
+
export declare class CanvasFloatDomPreviewService extends Disposable {
|
|
92
|
+
readonly previewUpdated$: Subject<ICanvasFloatDomPreview>;
|
|
93
|
+
readonly previewRequested$: Subject<ICanvasFloatDomPreviewRequest>;
|
|
94
|
+
private readonly _previewMap;
|
|
95
|
+
private readonly _requestMap;
|
|
96
|
+
getPreview(id: string): ICanvasFloatDomPreview | undefined;
|
|
97
|
+
getPendingRequests(): ICanvasFloatDomPreviewRequest[];
|
|
98
|
+
setPreview(preview: ICanvasFloatDomPreview): void;
|
|
99
|
+
removePreview(id: string): void;
|
|
100
|
+
requestPreview(request: ICanvasFloatDomPreviewRequest): void;
|
|
101
|
+
dispose(): void;
|
|
51
102
|
}
|
|
@@ -69,6 +69,7 @@ export declare class MenuManagerService extends Disposable implements IMenuManag
|
|
|
69
69
|
*/
|
|
70
70
|
mergeMenu(source: MenuSchemaType, target?: MenuSchemaType): void;
|
|
71
71
|
appendRootMenu(source: MenuSchemaType): void;
|
|
72
|
+
createScoped(injector: Injector): IMenuManagerService;
|
|
72
73
|
private _buildMenuSchema;
|
|
73
74
|
/**
|
|
74
75
|
* Get menu schema by position key
|