@univerjs/thread-comment-ui 1.0.0-insiders.20260809-70eefdd → 1.0.0-rc.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.
- package/LICENSE +176 -0
- package/README.md +0 -1
- package/lib/cjs/index.js +582 -132
- package/lib/cjs/locale/ar-SA.js +2 -3
- package/lib/cjs/locale/ca-ES.js +2 -3
- package/lib/cjs/locale/de-DE.js +2 -3
- package/lib/cjs/locale/en-US.js +2 -3
- package/lib/cjs/locale/es-ES.js +2 -3
- package/lib/cjs/locale/fa-IR.js +2 -3
- package/lib/cjs/locale/fr-FR.js +2 -3
- package/lib/cjs/locale/id-ID.js +2 -3
- package/lib/cjs/locale/it-IT.js +2 -3
- package/lib/cjs/locale/ja-JP.js +2 -3
- package/lib/cjs/locale/ko-KR.js +2 -3
- package/lib/cjs/locale/pl-PL.js +2 -3
- package/lib/cjs/locale/pt-BR.js +2 -3
- package/lib/cjs/locale/ru-RU.js +2 -3
- package/lib/cjs/locale/sk-SK.js +2 -3
- package/lib/cjs/locale/vi-VN.js +2 -3
- package/lib/cjs/locale/zh-CN.js +2 -3
- package/lib/cjs/locale/zh-HK.js +2 -3
- package/lib/cjs/locale/zh-TW.js +2 -3
- package/lib/es/index.js +573 -138
- package/lib/es/locale/ar-SA.js +2 -3
- package/lib/es/locale/ca-ES.js +2 -3
- package/lib/es/locale/de-DE.js +2 -3
- package/lib/es/locale/en-US.js +2 -3
- package/lib/es/locale/es-ES.js +2 -3
- package/lib/es/locale/fa-IR.js +2 -3
- package/lib/es/locale/fr-FR.js +2 -3
- package/lib/es/locale/id-ID.js +2 -3
- package/lib/es/locale/it-IT.js +2 -3
- package/lib/es/locale/ja-JP.js +2 -3
- package/lib/es/locale/ko-KR.js +2 -3
- package/lib/es/locale/pl-PL.js +2 -3
- package/lib/es/locale/pt-BR.js +2 -3
- package/lib/es/locale/ru-RU.js +2 -3
- package/lib/es/locale/sk-SK.js +2 -3
- package/lib/es/locale/vi-VN.js +2 -3
- package/lib/es/locale/zh-CN.js +2 -3
- package/lib/es/locale/zh-HK.js +2 -3
- package/lib/es/locale/zh-TW.js +2 -3
- package/lib/index.css +54 -18
- package/lib/index.js +573 -138
- package/lib/locale/ar-SA.js +2 -3
- package/lib/locale/ca-ES.js +2 -3
- package/lib/locale/de-DE.js +2 -3
- package/lib/locale/en-US.js +2 -3
- package/lib/locale/es-ES.js +2 -3
- package/lib/locale/fa-IR.js +2 -3
- package/lib/locale/fr-FR.js +2 -3
- package/lib/locale/id-ID.js +2 -3
- package/lib/locale/it-IT.js +2 -3
- package/lib/locale/ja-JP.js +2 -3
- package/lib/locale/ko-KR.js +2 -3
- package/lib/locale/pl-PL.js +2 -3
- package/lib/locale/pt-BR.js +2 -3
- package/lib/locale/ru-RU.js +2 -3
- package/lib/locale/sk-SK.js +2 -3
- package/lib/locale/vi-VN.js +2 -3
- package/lib/locale/zh-CN.js +2 -3
- package/lib/locale/zh-HK.js +2 -3
- package/lib/locale/zh-TW.js +2 -3
- package/lib/types/index.d.ts +7 -0
- package/lib/types/locale/en-US.d.ts +1 -2
- package/lib/types/mobile-plugin.d.ts +29 -0
- package/lib/types/render-objects/thread-comment-canvas-overlay.d.ts +66 -0
- package/lib/types/services/thread-comment-draft.service.d.ts +39 -0
- package/lib/types/services/thread-comment-panel.service.d.ts +7 -3
- package/lib/types/views/ThreadCommentEditor.d.ts +3 -1
- package/lib/types/views/ThreadCommentPanel.d.ts +9 -0
- package/lib/types/views/ThreadCommentTree.d.ts +10 -2
- package/lib/types/views/mobile/MobileThreadCommentEditor.d.ts +17 -0
- package/lib/types/views/mobile/MobileThreadCommentPanel.d.ts +17 -0
- package/lib/types/views/mobile/MobileThreadCommentTree.d.ts +17 -0
- package/lib/types/views/thread-comment-panel/util.d.ts +8 -0
- package/lib/umd/index.js +4 -4
- 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 +11 -11
package/lib/locale/ar-SA.js
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
//#region src/locale/ar-SA.ts
|
|
2
2
|
const locale = { "thread-comment-ui": {
|
|
3
3
|
panel: {
|
|
4
|
-
title: "إدارة التعليقات",
|
|
5
4
|
empty: "لا توجد تعليقات بعد",
|
|
6
|
-
filterEmpty: "لا توجد نتائج مطابقة",
|
|
7
5
|
reset: "إعادة ضبط التصفية",
|
|
8
6
|
addComment: "إضافة تعليق",
|
|
9
7
|
solved: "تم الحل"
|
|
@@ -16,7 +14,8 @@ const locale = { "thread-comment-ui": {
|
|
|
16
14
|
},
|
|
17
15
|
item: {
|
|
18
16
|
edit: "تحرير",
|
|
19
|
-
delete: "حذف هذا التعليق"
|
|
17
|
+
delete: "حذف هذا التعليق",
|
|
18
|
+
more: "المزيد"
|
|
20
19
|
},
|
|
21
20
|
filter: {
|
|
22
21
|
sheet: {
|
package/lib/locale/ca-ES.js
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
//#region src/locale/ca-ES.ts
|
|
2
2
|
const locale = { "thread-comment-ui": {
|
|
3
3
|
panel: {
|
|
4
|
-
title: "Gestió de comentaris",
|
|
5
4
|
empty: "Encara no hi ha comentaris",
|
|
6
|
-
filterEmpty: "Cap resultat coincident",
|
|
7
5
|
reset: "Restableix el filtre",
|
|
8
6
|
addComment: "Afegeix un comentari",
|
|
9
7
|
solved: "Resolut"
|
|
@@ -16,7 +14,8 @@ const locale = { "thread-comment-ui": {
|
|
|
16
14
|
},
|
|
17
15
|
item: {
|
|
18
16
|
edit: "Edita",
|
|
19
|
-
delete: "Elimina aquest comentari"
|
|
17
|
+
delete: "Elimina aquest comentari",
|
|
18
|
+
more: "Més"
|
|
20
19
|
},
|
|
21
20
|
filter: {
|
|
22
21
|
sheet: {
|
package/lib/locale/de-DE.js
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
//#region src/locale/de-DE.ts
|
|
2
2
|
const locale = { "thread-comment-ui": {
|
|
3
3
|
panel: {
|
|
4
|
-
title: "Kommentarverwaltung",
|
|
5
4
|
empty: "Noch keine Kommentare",
|
|
6
|
-
filterEmpty: "Kein Treffer",
|
|
7
5
|
reset: "Filter zurücksetzen",
|
|
8
6
|
addComment: "Kommentar hinzufügen",
|
|
9
7
|
solved: "Gelöst"
|
|
@@ -16,7 +14,8 @@ const locale = { "thread-comment-ui": {
|
|
|
16
14
|
},
|
|
17
15
|
item: {
|
|
18
16
|
edit: "Bearbeiten",
|
|
19
|
-
delete: "Diesen Kommentar löschen"
|
|
17
|
+
delete: "Diesen Kommentar löschen",
|
|
18
|
+
more: "Mehr"
|
|
20
19
|
},
|
|
21
20
|
filter: {
|
|
22
21
|
sheet: {
|
package/lib/locale/en-US.js
CHANGED
|
@@ -16,9 +16,7 @@
|
|
|
16
16
|
*/
|
|
17
17
|
const locale = { "thread-comment-ui": {
|
|
18
18
|
panel: {
|
|
19
|
-
title: "Comment Management",
|
|
20
19
|
empty: "No comments yet",
|
|
21
|
-
filterEmpty: "No match result",
|
|
22
20
|
reset: "Reset Filter",
|
|
23
21
|
addComment: "Add Comment",
|
|
24
22
|
solved: "Solved"
|
|
@@ -31,7 +29,8 @@ const locale = { "thread-comment-ui": {
|
|
|
31
29
|
},
|
|
32
30
|
item: {
|
|
33
31
|
edit: "Edit",
|
|
34
|
-
delete: "Delete This Comment"
|
|
32
|
+
delete: "Delete This Comment",
|
|
33
|
+
more: "More"
|
|
35
34
|
},
|
|
36
35
|
filter: {
|
|
37
36
|
sheet: {
|
package/lib/locale/es-ES.js
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
//#region src/locale/es-ES.ts
|
|
2
2
|
const locale = { "thread-comment-ui": {
|
|
3
3
|
panel: {
|
|
4
|
-
title: "Gestión de comentarios",
|
|
5
4
|
empty: "Aún no hay comentarios",
|
|
6
|
-
filterEmpty: "Sin resultados coincidentes",
|
|
7
5
|
reset: "Restablecer filtro",
|
|
8
6
|
addComment: "Añadir comentario",
|
|
9
7
|
solved: "Resuelto"
|
|
@@ -16,7 +14,8 @@ const locale = { "thread-comment-ui": {
|
|
|
16
14
|
},
|
|
17
15
|
item: {
|
|
18
16
|
edit: "Editar",
|
|
19
|
-
delete: "Eliminar este comentario"
|
|
17
|
+
delete: "Eliminar este comentario",
|
|
18
|
+
more: "Más"
|
|
20
19
|
},
|
|
21
20
|
filter: {
|
|
22
21
|
sheet: {
|
package/lib/locale/fa-IR.js
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
//#region src/locale/fa-IR.ts
|
|
2
2
|
const locale = { "thread-comment-ui": {
|
|
3
3
|
panel: {
|
|
4
|
-
title: "مدیریت نظرات",
|
|
5
4
|
empty: "هنوز نظری وجود ندارد",
|
|
6
|
-
filterEmpty: "نتیجه ای یافت نشد",
|
|
7
5
|
reset: "بازنشانی فیلتر",
|
|
8
6
|
addComment: "افزودن نظر",
|
|
9
7
|
solved: "حل شده"
|
|
@@ -16,7 +14,8 @@ const locale = { "thread-comment-ui": {
|
|
|
16
14
|
},
|
|
17
15
|
item: {
|
|
18
16
|
edit: "ویرایش",
|
|
19
|
-
delete: "حذف این نظر"
|
|
17
|
+
delete: "حذف این نظر",
|
|
18
|
+
more: "بیشتر"
|
|
20
19
|
},
|
|
21
20
|
filter: {
|
|
22
21
|
sheet: {
|
package/lib/locale/fr-FR.js
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
//#region src/locale/fr-FR.ts
|
|
2
2
|
const locale = { "thread-comment-ui": {
|
|
3
3
|
panel: {
|
|
4
|
-
title: "Gestion des commentaires",
|
|
5
4
|
empty: "Pas encore de commentaires",
|
|
6
|
-
filterEmpty: "Aucun résultat correspondant",
|
|
7
5
|
reset: "Réinitialiser le filtre",
|
|
8
6
|
addComment: "Ajouter un commentaire",
|
|
9
7
|
solved: "Résolu"
|
|
@@ -16,7 +14,8 @@ const locale = { "thread-comment-ui": {
|
|
|
16
14
|
},
|
|
17
15
|
item: {
|
|
18
16
|
edit: "Modifier",
|
|
19
|
-
delete: "Supprimer ce commentaire"
|
|
17
|
+
delete: "Supprimer ce commentaire",
|
|
18
|
+
more: "Plus"
|
|
20
19
|
},
|
|
21
20
|
filter: {
|
|
22
21
|
sheet: {
|
package/lib/locale/id-ID.js
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
//#region src/locale/id-ID.ts
|
|
2
2
|
const locale = { "thread-comment-ui": {
|
|
3
3
|
panel: {
|
|
4
|
-
title: "Manajemen Komentar",
|
|
5
4
|
empty: "Belum ada komentar",
|
|
6
|
-
filterEmpty: "Tidak ada hasil yang cocok",
|
|
7
5
|
reset: "Atur Ulang Filter",
|
|
8
6
|
addComment: "Tambah Komentar",
|
|
9
7
|
solved: "Terselesaikan"
|
|
@@ -16,7 +14,8 @@ const locale = { "thread-comment-ui": {
|
|
|
16
14
|
},
|
|
17
15
|
item: {
|
|
18
16
|
edit: "Edit",
|
|
19
|
-
delete: "Hapus Komentar Ini"
|
|
17
|
+
delete: "Hapus Komentar Ini",
|
|
18
|
+
more: "Lebih Banyak"
|
|
20
19
|
},
|
|
21
20
|
filter: {
|
|
22
21
|
sheet: {
|
package/lib/locale/it-IT.js
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
//#region src/locale/it-IT.ts
|
|
2
2
|
const locale = { "thread-comment-ui": {
|
|
3
3
|
panel: {
|
|
4
|
-
title: "Gestione commenti",
|
|
5
4
|
empty: "Nessun commento",
|
|
6
|
-
filterEmpty: "Nessun risultato",
|
|
7
5
|
reset: "Reimposta filtro",
|
|
8
6
|
addComment: "Aggiungi commento",
|
|
9
7
|
solved: "Risolto"
|
|
@@ -16,7 +14,8 @@ const locale = { "thread-comment-ui": {
|
|
|
16
14
|
},
|
|
17
15
|
item: {
|
|
18
16
|
edit: "Modifica",
|
|
19
|
-
delete: "Elimina questo commento"
|
|
17
|
+
delete: "Elimina questo commento",
|
|
18
|
+
more: "Altro"
|
|
20
19
|
},
|
|
21
20
|
filter: {
|
|
22
21
|
sheet: {
|
package/lib/locale/ja-JP.js
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
//#region src/locale/ja-JP.ts
|
|
2
2
|
const locale = { "thread-comment-ui": {
|
|
3
3
|
panel: {
|
|
4
|
-
title: "コメント管理",
|
|
5
4
|
empty: "まだコメントはありません",
|
|
6
|
-
filterEmpty: "一致する結果がありません",
|
|
7
5
|
reset: "フィルタをリセット",
|
|
8
6
|
addComment: "コメントを追加",
|
|
9
7
|
solved: "解決済み"
|
|
@@ -16,7 +14,8 @@ const locale = { "thread-comment-ui": {
|
|
|
16
14
|
},
|
|
17
15
|
item: {
|
|
18
16
|
edit: "編集",
|
|
19
|
-
delete: "コメントを削除"
|
|
17
|
+
delete: "コメントを削除",
|
|
18
|
+
more: "もっと見る"
|
|
20
19
|
},
|
|
21
20
|
filter: {
|
|
22
21
|
sheet: {
|
package/lib/locale/ko-KR.js
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
//#region src/locale/ko-KR.ts
|
|
2
2
|
const locale = { "thread-comment-ui": {
|
|
3
3
|
panel: {
|
|
4
|
-
title: "댓글 관리",
|
|
5
4
|
empty: "아직 댓글이 없습니다",
|
|
6
|
-
filterEmpty: "일치하는 결과가 없습니다",
|
|
7
5
|
reset: "필터 초기화",
|
|
8
6
|
addComment: "댓글 추가",
|
|
9
7
|
solved: "해결됨"
|
|
@@ -16,7 +14,8 @@ const locale = { "thread-comment-ui": {
|
|
|
16
14
|
},
|
|
17
15
|
item: {
|
|
18
16
|
edit: "편집",
|
|
19
|
-
delete: "댓글 삭제"
|
|
17
|
+
delete: "댓글 삭제",
|
|
18
|
+
more: "더 보기"
|
|
20
19
|
},
|
|
21
20
|
filter: {
|
|
22
21
|
sheet: {
|
package/lib/locale/pl-PL.js
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
//#region src/locale/pl-PL.ts
|
|
2
2
|
const locale = { "thread-comment-ui": {
|
|
3
3
|
panel: {
|
|
4
|
-
title: "Zarządzanie komentarzami",
|
|
5
4
|
empty: "Brak komentarzy",
|
|
6
|
-
filterEmpty: "Brak wyników",
|
|
7
5
|
reset: "Resetuj filtr",
|
|
8
6
|
addComment: "Dodaj komentarz",
|
|
9
7
|
solved: "Rozwiązane"
|
|
@@ -16,7 +14,8 @@ const locale = { "thread-comment-ui": {
|
|
|
16
14
|
},
|
|
17
15
|
item: {
|
|
18
16
|
edit: "Edytuj",
|
|
19
|
-
delete: "Usuń ten komentarz"
|
|
17
|
+
delete: "Usuń ten komentarz",
|
|
18
|
+
more: "Więcej"
|
|
20
19
|
},
|
|
21
20
|
filter: {
|
|
22
21
|
sheet: {
|
package/lib/locale/pt-BR.js
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
//#region src/locale/pt-BR.ts
|
|
2
2
|
const locale = { "thread-comment-ui": {
|
|
3
3
|
panel: {
|
|
4
|
-
title: "Gerenciamento de Comentários",
|
|
5
4
|
empty: "Nenhum comentário ainda",
|
|
6
|
-
filterEmpty: "Nenhum resultado correspondente",
|
|
7
5
|
reset: "Redefinir Filtro",
|
|
8
6
|
addComment: "Adicionar Comentário",
|
|
9
7
|
solved: "Resolvido"
|
|
@@ -16,7 +14,8 @@ const locale = { "thread-comment-ui": {
|
|
|
16
14
|
},
|
|
17
15
|
item: {
|
|
18
16
|
edit: "Editar",
|
|
19
|
-
delete: "Excluir Este Comentário"
|
|
17
|
+
delete: "Excluir Este Comentário",
|
|
18
|
+
more: "Mais"
|
|
20
19
|
},
|
|
21
20
|
filter: {
|
|
22
21
|
sheet: {
|
package/lib/locale/ru-RU.js
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
//#region src/locale/ru-RU.ts
|
|
2
2
|
const locale = { "thread-comment-ui": {
|
|
3
3
|
panel: {
|
|
4
|
-
title: "Управление комментариями",
|
|
5
4
|
empty: "Комментариев пока нет",
|
|
6
|
-
filterEmpty: "Нет совпадений",
|
|
7
5
|
reset: "Сбросить фильтр",
|
|
8
6
|
addComment: "Добавить комментарий",
|
|
9
7
|
solved: "Решено"
|
|
@@ -16,7 +14,8 @@ const locale = { "thread-comment-ui": {
|
|
|
16
14
|
},
|
|
17
15
|
item: {
|
|
18
16
|
edit: "Редактировать",
|
|
19
|
-
delete: "Удалить"
|
|
17
|
+
delete: "Удалить",
|
|
18
|
+
more: "Больше"
|
|
20
19
|
},
|
|
21
20
|
filter: {
|
|
22
21
|
sheet: {
|
package/lib/locale/sk-SK.js
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
//#region src/locale/sk-SK.ts
|
|
2
2
|
const locale = { "thread-comment-ui": {
|
|
3
3
|
panel: {
|
|
4
|
-
title: "Správa komentárov",
|
|
5
4
|
empty: "Zatiaľ žiadne komentáre",
|
|
6
|
-
filterEmpty: "Žiadne zodpovedajúce výsledky",
|
|
7
5
|
reset: "Obnoviť filter",
|
|
8
6
|
addComment: "Pridať komentár",
|
|
9
7
|
solved: "Vyriešené"
|
|
@@ -16,7 +14,8 @@ const locale = { "thread-comment-ui": {
|
|
|
16
14
|
},
|
|
17
15
|
item: {
|
|
18
16
|
edit: "Upraviť",
|
|
19
|
-
delete: "Odstrániť tento komentár"
|
|
17
|
+
delete: "Odstrániť tento komentár",
|
|
18
|
+
more: "Viac"
|
|
20
19
|
},
|
|
21
20
|
filter: {
|
|
22
21
|
sheet: {
|
package/lib/locale/vi-VN.js
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
//#region src/locale/vi-VN.ts
|
|
2
2
|
const locale = { "thread-comment-ui": {
|
|
3
3
|
panel: {
|
|
4
|
-
title: "Quản lý Bình luận",
|
|
5
4
|
empty: "Chưa có bình luận",
|
|
6
|
-
filterEmpty: "Không có kết quả phù hợp",
|
|
7
5
|
reset: "Đặt lại",
|
|
8
6
|
addComment: "Thêm bình luận",
|
|
9
7
|
solved: "Đã giải quyết"
|
|
@@ -16,7 +14,8 @@ const locale = { "thread-comment-ui": {
|
|
|
16
14
|
},
|
|
17
15
|
item: {
|
|
18
16
|
edit: "Chỉnh sửa",
|
|
19
|
-
delete: "Xóa"
|
|
17
|
+
delete: "Xóa",
|
|
18
|
+
more: "Thêm"
|
|
20
19
|
},
|
|
21
20
|
filter: {
|
|
22
21
|
sheet: {
|
package/lib/locale/zh-CN.js
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
//#region src/locale/zh-CN.ts
|
|
2
2
|
const locale = { "thread-comment-ui": {
|
|
3
3
|
panel: {
|
|
4
|
-
title: "评论管理",
|
|
5
4
|
empty: "暂无评论",
|
|
6
|
-
filterEmpty: "没有匹配的结果",
|
|
7
5
|
reset: "重置",
|
|
8
6
|
addComment: "添加评论",
|
|
9
7
|
solved: "已解决"
|
|
@@ -16,7 +14,8 @@ const locale = { "thread-comment-ui": {
|
|
|
16
14
|
},
|
|
17
15
|
item: {
|
|
18
16
|
edit: "编辑",
|
|
19
|
-
delete: "删除"
|
|
17
|
+
delete: "删除",
|
|
18
|
+
more: "更多"
|
|
20
19
|
},
|
|
21
20
|
filter: {
|
|
22
21
|
sheet: {
|
package/lib/locale/zh-HK.js
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
//#region src/locale/zh-HK.ts
|
|
2
2
|
const locale = { "thread-comment-ui": {
|
|
3
3
|
panel: {
|
|
4
|
-
title: "評論管理",
|
|
5
4
|
empty: "暫無評論",
|
|
6
|
-
filterEmpty: "沒有符合的結果",
|
|
7
5
|
reset: "重置",
|
|
8
6
|
addComment: "新增評論",
|
|
9
7
|
solved: "已解決"
|
|
@@ -16,7 +14,8 @@ const locale = { "thread-comment-ui": {
|
|
|
16
14
|
},
|
|
17
15
|
item: {
|
|
18
16
|
edit: "編輯",
|
|
19
|
-
delete: "刪除"
|
|
17
|
+
delete: "刪除",
|
|
18
|
+
more: "更多"
|
|
20
19
|
},
|
|
21
20
|
filter: {
|
|
22
21
|
sheet: {
|
package/lib/locale/zh-TW.js
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
//#region src/locale/zh-TW.ts
|
|
2
2
|
const locale = { "thread-comment-ui": {
|
|
3
3
|
panel: {
|
|
4
|
-
title: "評論管理",
|
|
5
4
|
empty: "暫無評論",
|
|
6
|
-
filterEmpty: "沒有符合的結果",
|
|
7
5
|
reset: "重置",
|
|
8
6
|
addComment: "新增評論",
|
|
9
7
|
solved: "已解決"
|
|
@@ -16,7 +14,8 @@ const locale = { "thread-comment-ui": {
|
|
|
16
14
|
},
|
|
17
15
|
item: {
|
|
18
16
|
edit: "編輯",
|
|
19
|
-
delete: "刪除"
|
|
17
|
+
delete: "刪除",
|
|
18
|
+
more: "更多"
|
|
20
19
|
},
|
|
21
20
|
filter: {
|
|
22
21
|
sheet: {
|
package/lib/types/index.d.ts
CHANGED
|
@@ -17,9 +17,16 @@ import './global.css';
|
|
|
17
17
|
export { SetActiveCommentOperation } from './commands/operations/comment.operations';
|
|
18
18
|
export type { ISetActiveCommentOperationParams } from './commands/operations/comment.operations';
|
|
19
19
|
export type { IUniverThreadCommentUIConfig } from './config/config';
|
|
20
|
+
export { UniverThreadCommentMobileUIPlugin } from './mobile-plugin';
|
|
20
21
|
export { UniverThreadCommentUIPlugin } from './plugin';
|
|
22
|
+
export { ThreadCommentCanvasOverlay } from './render-objects/thread-comment-canvas-overlay';
|
|
23
|
+
export type { IThreadCommentCanvasOutline, IThreadCommentCanvasUnderline, } from './render-objects/thread-comment-canvas-overlay';
|
|
24
|
+
export { ThreadCommentDraftService } from './services/thread-comment-draft.service';
|
|
25
|
+
export type { IThreadCommentDraft } from './services/thread-comment-draft.service';
|
|
21
26
|
export { ThreadCommentPanelService } from './services/thread-comment-panel.service';
|
|
22
27
|
export type { ActiveCommentInfo } from './services/thread-comment-panel.service';
|
|
28
|
+
export { MobileThreadCommentPanel } from './views/mobile/MobileThreadCommentPanel';
|
|
29
|
+
export { MobileThreadCommentTree } from './views/mobile/MobileThreadCommentTree';
|
|
23
30
|
export { ThreadCommentPanel } from './views/ThreadCommentPanel';
|
|
24
31
|
export type { IThreadCommentPanelProps } from './views/ThreadCommentPanel';
|
|
25
32
|
export { ThreadCommentTree, ThreadCommentTreeLocation } from './views/ThreadCommentTree';
|
|
@@ -16,9 +16,7 @@
|
|
|
16
16
|
declare const locale: {
|
|
17
17
|
'thread-comment-ui': {
|
|
18
18
|
panel: {
|
|
19
|
-
title: string;
|
|
20
19
|
empty: string;
|
|
21
|
-
filterEmpty: string;
|
|
22
20
|
reset: string;
|
|
23
21
|
addComment: string;
|
|
24
22
|
solved: string;
|
|
@@ -32,6 +30,7 @@ declare const locale: {
|
|
|
32
30
|
item: {
|
|
33
31
|
edit: string;
|
|
34
32
|
delete: string;
|
|
33
|
+
more: string;
|
|
35
34
|
};
|
|
36
35
|
filter: {
|
|
37
36
|
sheet: {
|
|
@@ -0,0 +1,29 @@
|
|
|
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 { IUniverThreadCommentUIConfig } from './config/config';
|
|
17
|
+
import { ICommandService, IConfigService, Injector, Plugin, UniverInstanceType } from '@univerjs/core';
|
|
18
|
+
export declare class UniverThreadCommentMobileUIPlugin extends Plugin {
|
|
19
|
+
private readonly _config;
|
|
20
|
+
protected _injector: Injector;
|
|
21
|
+
private readonly _commandService;
|
|
22
|
+
private readonly _configService;
|
|
23
|
+
static pluginName: string;
|
|
24
|
+
static packageName: string;
|
|
25
|
+
static version: string;
|
|
26
|
+
static type: UniverInstanceType;
|
|
27
|
+
constructor(_config: Partial<IUniverThreadCommentUIConfig> | undefined, _injector: Injector, _commandService: ICommandService, _configService: IConfigService);
|
|
28
|
+
onStarting(): void;
|
|
29
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
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 { IViewportInfo, UniverRenderingContext, Vector2 } from '@univerjs/engine-render';
|
|
17
|
+
import { BaseObject } from '@univerjs/engine-render';
|
|
18
|
+
export interface IThreadCommentCanvasMarker {
|
|
19
|
+
commentId: string;
|
|
20
|
+
commentIds?: readonly string[];
|
|
21
|
+
count?: number;
|
|
22
|
+
x: number;
|
|
23
|
+
y: number;
|
|
24
|
+
}
|
|
25
|
+
export interface IThreadCommentCanvasUnderline {
|
|
26
|
+
commentId: string;
|
|
27
|
+
left: number;
|
|
28
|
+
top: number;
|
|
29
|
+
width: number;
|
|
30
|
+
}
|
|
31
|
+
export interface IThreadCommentCanvasOutline {
|
|
32
|
+
left: number;
|
|
33
|
+
top: number;
|
|
34
|
+
width: number;
|
|
35
|
+
height: number;
|
|
36
|
+
}
|
|
37
|
+
export interface IThreadCommentCanvasOverlayState {
|
|
38
|
+
accentColor: string;
|
|
39
|
+
foregroundColor: string;
|
|
40
|
+
outlineColor: string;
|
|
41
|
+
zoomRatio: number;
|
|
42
|
+
markers: readonly IThreadCommentCanvasMarker[];
|
|
43
|
+
underlines: readonly IThreadCommentCanvasUnderline[];
|
|
44
|
+
focusedCommentIds?: readonly string[];
|
|
45
|
+
focusOutlines?: readonly IThreadCommentCanvasOutline[];
|
|
46
|
+
previewMarker?: Omit<IThreadCommentCanvasMarker, 'commentId'> | null;
|
|
47
|
+
previewUnderline?: Omit<IThreadCommentCanvasUnderline, 'commentId'> | null;
|
|
48
|
+
}
|
|
49
|
+
export declare function groupThreadCommentCanvasMarkers(markers: readonly IThreadCommentCanvasMarker[]): IThreadCommentCanvasMarker[];
|
|
50
|
+
export declare class ThreadCommentCanvasOverlay extends BaseObject {
|
|
51
|
+
private _state;
|
|
52
|
+
private _hoveredCommentId;
|
|
53
|
+
private _hitCommentId;
|
|
54
|
+
constructor(key: string, state: IThreadCommentCanvasOverlayState);
|
|
55
|
+
get hitCommentId(): string | null;
|
|
56
|
+
updateState(state: Partial<IThreadCommentCanvasOverlayState>): void;
|
|
57
|
+
clearHover(): void;
|
|
58
|
+
isHit(coord: Vector2): boolean;
|
|
59
|
+
render(ctx: UniverRenderingContext, _bounds: IViewportInfo): this;
|
|
60
|
+
private _getZoomRatio;
|
|
61
|
+
private _containsComment;
|
|
62
|
+
private _markerContainsComment;
|
|
63
|
+
private _renderUnderline;
|
|
64
|
+
private _renderOutline;
|
|
65
|
+
private _renderMarker;
|
|
66
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
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 { UniverInstanceType } from '@univerjs/core';
|
|
17
|
+
import type { IThreadCommentAnchor } from '@univerjs/thread-comment';
|
|
18
|
+
import { Disposable, IUniverInstanceService, UserManagerService } from '@univerjs/core';
|
|
19
|
+
export interface IThreadCommentDraft {
|
|
20
|
+
unitId: string;
|
|
21
|
+
subUnitId: string;
|
|
22
|
+
anchor: IThreadCommentAnchor;
|
|
23
|
+
}
|
|
24
|
+
export declare class ThreadCommentDraftService extends Disposable {
|
|
25
|
+
private readonly _userManagerService;
|
|
26
|
+
private readonly _placementType$;
|
|
27
|
+
private readonly _draft$;
|
|
28
|
+
private _placementUnitId;
|
|
29
|
+
private _ownerUserId;
|
|
30
|
+
readonly placementType$: import("rxjs").Observable<UniverInstanceType | null>;
|
|
31
|
+
readonly draft$: import("rxjs").Observable<IThreadCommentDraft | null>;
|
|
32
|
+
constructor(instanceService: IUniverInstanceService, _userManagerService: UserManagerService);
|
|
33
|
+
get placementType(): UniverInstanceType | null;
|
|
34
|
+
get draft(): IThreadCommentDraft | null;
|
|
35
|
+
startPlacement(type: UniverInstanceType, unitId: string): void;
|
|
36
|
+
place(draft: IThreadCommentDraft): void;
|
|
37
|
+
cancel(): void;
|
|
38
|
+
dispose(): void;
|
|
39
|
+
}
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import type { Nullable } from '@univerjs/core';
|
|
17
|
-
import { Disposable
|
|
17
|
+
import { Disposable } from '@univerjs/core';
|
|
18
18
|
import { ISidebarService } from '@univerjs/ui';
|
|
19
19
|
export type ActiveCommentInfo = Nullable<{
|
|
20
20
|
unitId: string;
|
|
@@ -24,17 +24,21 @@ export type ActiveCommentInfo = Nullable<{
|
|
|
24
24
|
}>;
|
|
25
25
|
export declare class ThreadCommentPanelService extends Disposable {
|
|
26
26
|
private readonly _sidebarService;
|
|
27
|
-
private readonly _univerInstanceService;
|
|
28
27
|
private _panelVisible;
|
|
29
28
|
private _panelVisible$;
|
|
30
29
|
private _activeCommentId;
|
|
31
30
|
private _activeCommentId$;
|
|
31
|
+
private _hoveredCommentId;
|
|
32
|
+
private _hoveredCommentId$;
|
|
32
33
|
panelVisible$: import("rxjs").Observable<boolean>;
|
|
33
34
|
activeCommentId$: import("rxjs").Observable<ActiveCommentInfo>;
|
|
34
|
-
|
|
35
|
+
hoveredCommentId$: import("rxjs").Observable<ActiveCommentInfo>;
|
|
36
|
+
constructor(_sidebarService: ISidebarService);
|
|
35
37
|
private _init;
|
|
36
38
|
get panelVisible(): boolean;
|
|
37
39
|
get activeCommentId(): ActiveCommentInfo;
|
|
40
|
+
get hoveredCommentId(): ActiveCommentInfo;
|
|
38
41
|
setPanelVisible(visible: boolean): void;
|
|
39
42
|
setActiveComment(commentInfo: ActiveCommentInfo): void;
|
|
43
|
+
setHoveredComment(commentInfo: ActiveCommentInfo): void;
|
|
40
44
|
}
|
|
@@ -16,16 +16,18 @@
|
|
|
16
16
|
import type { IDocumentBody, IUser } from '@univerjs/core';
|
|
17
17
|
import type { IThreadComment } from '@univerjs/thread-comment';
|
|
18
18
|
import { UniverInstanceType } from '@univerjs/core';
|
|
19
|
+
import { ActionRow } from '@univerjs/design';
|
|
19
20
|
export interface IThreadCommentEditorProps {
|
|
20
21
|
id?: string;
|
|
21
22
|
comment?: Pick<IThreadComment, 'attachments' | 'text' | 'mentions'>;
|
|
22
|
-
onSave?: (comment: Pick<IThreadComment, 'attachments' | 'text'>) => void
|
|
23
|
+
onSave?: (comment: Pick<IThreadComment, 'attachments' | 'text'>) => boolean | void | Promise<boolean | void>;
|
|
23
24
|
onCancel?: () => void;
|
|
24
25
|
autoFocus?: boolean;
|
|
25
26
|
unitId: string;
|
|
26
27
|
subUnitId: string;
|
|
27
28
|
type: UniverInstanceType;
|
|
28
29
|
editorId: string;
|
|
30
|
+
ActionRowComponent?: typeof ActionRow;
|
|
29
31
|
}
|
|
30
32
|
export interface IThreadCommentEditorInstance {
|
|
31
33
|
reply: (text: IDocumentBody) => void;
|
|
@@ -18,6 +18,8 @@ import type { IThreadComment } from '@univerjs/thread-comment';
|
|
|
18
18
|
import type { Observable } from 'rxjs';
|
|
19
19
|
import type { IThreadCommentTreeProps } from './ThreadCommentTree';
|
|
20
20
|
import { UniverInstanceType } from '@univerjs/core';
|
|
21
|
+
import { ActionRow, Select } from '@univerjs/design';
|
|
22
|
+
import { ThreadCommentTree } from './ThreadCommentTree';
|
|
21
23
|
export interface IThreadCommentPanelProps {
|
|
22
24
|
unitId: string;
|
|
23
25
|
subUnitId$: Observable<string | undefined>;
|
|
@@ -32,6 +34,13 @@ export interface IThreadCommentPanelProps {
|
|
|
32
34
|
tempComment?: Nullable<IThreadComment>;
|
|
33
35
|
onAddComment?: IThreadCommentTreeProps['onAddComment'];
|
|
34
36
|
onDeleteComment?: IThreadCommentTreeProps['onDeleteComment'];
|
|
37
|
+
onAfterDeleteComment?: IThreadCommentTreeProps['onAfterDeleteComment'];
|
|
35
38
|
showComments?: string[];
|
|
39
|
+
formatRef?: (comment: IThreadComment) => string;
|
|
40
|
+
onTempCommentClose?: () => void;
|
|
41
|
+
autoFocusActiveComment?: boolean;
|
|
42
|
+
ActionRowComponent?: typeof ActionRow;
|
|
43
|
+
SelectComponent?: typeof Select;
|
|
44
|
+
ThreadCommentTreeComponent?: typeof ThreadCommentTree;
|
|
36
45
|
}
|
|
37
46
|
export declare const ThreadCommentPanel: (props: IThreadCommentPanelProps) => import("react").JSX.Element;
|