@univerjs/thread-comment-ui 0.23.0 → 0.24.0-insiders.20260528-29f582d
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/index.js +16 -16
- package/lib/cjs/locale/ar-SA.js +37 -0
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.js +37 -0
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/id-ID.js +37 -0
- package/lib/cjs/locale/it-IT.js +37 -0
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +37 -0
- package/lib/cjs/locale/pt-BR.js +37 -0
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-HK.js +37 -0
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +16 -16
- package/lib/es/locale/ar-SA.js +36 -0
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.js +36 -0
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/id-ID.js +36 -0
- package/lib/es/locale/it-IT.js +36 -0
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +36 -0
- package/lib/es/locale/pt-BR.js +36 -0
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-HK.js +36 -0
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.js +16 -16
- package/lib/locale/ar-SA.js +36 -0
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.js +36 -0
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +36 -0
- package/lib/locale/it-IT.js +36 -0
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +36 -0
- package/lib/locale/pt-BR.js +36 -0
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +36 -0
- package/lib/locale/zh-TW.js +1 -1
- package/lib/types/locale/ar-SA.d.ts +18 -0
- package/lib/types/locale/de-DE.d.ts +18 -0
- package/lib/types/locale/en-US.d.ts +1 -1
- package/lib/types/locale/id-ID.d.ts +18 -0
- package/lib/types/locale/it-IT.d.ts +18 -0
- package/lib/types/locale/pl-PL.d.ts +18 -0
- package/lib/types/locale/pt-BR.d.ts +18 -0
- package/lib/types/locale/zh-HK.d.ts +18 -0
- package/lib/umd/index.js +3 -3
- package/lib/umd/locale/ar-SA.js +1 -0
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -0
- 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 -0
- package/lib/umd/locale/it-IT.js +1 -0
- 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 -0
- package/lib/umd/locale/pt-BR.js +1 -0
- 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 -0
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +8 -8
- package/LICENSE +0 -176
package/lib/cjs/index.js
CHANGED
|
@@ -125,7 +125,7 @@ const SetActiveCommentOperation = {
|
|
|
125
125
|
//#endregion
|
|
126
126
|
//#region package.json
|
|
127
127
|
var name = "@univerjs/thread-comment-ui";
|
|
128
|
-
var version = "0.
|
|
128
|
+
var version = "0.24.0-insiders.20260528-29f582d";
|
|
129
129
|
|
|
130
130
|
//#endregion
|
|
131
131
|
//#region src/config/config.ts
|
|
@@ -258,7 +258,7 @@ const ThreadCommentEditor = (0, react.forwardRef)((props, ref) => {
|
|
|
258
258
|
editorId,
|
|
259
259
|
autoFocus,
|
|
260
260
|
keyboardEventConfig,
|
|
261
|
-
placeholder: localeService.t("
|
|
261
|
+
placeholder: localeService.t("thread-comment-ui.editor.placeholder"),
|
|
262
262
|
initialValue: (comment === null || comment === void 0 ? void 0 : comment.text) && getSnapshot(comment.text),
|
|
263
263
|
onFocusChange: (isFocus) => isFocus && setEditing(isFocus),
|
|
264
264
|
isSingle: false,
|
|
@@ -278,12 +278,12 @@ const ThreadCommentEditor = (0, react.forwardRef)((props, ref) => {
|
|
|
278
278
|
(_editor$current9 = editor.current) === null || _editor$current9 === void 0 || _editor$current9.replaceText("", true);
|
|
279
279
|
commandService.executeCommand(SetActiveCommentOperation.id);
|
|
280
280
|
},
|
|
281
|
-
children: localeService.t("
|
|
281
|
+
children: localeService.t("thread-comment-ui.editor.cancel")
|
|
282
282
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.Button, {
|
|
283
283
|
variant: "primary",
|
|
284
284
|
disabled: !canSubmit,
|
|
285
285
|
onClick: handleSave,
|
|
286
|
-
children: localeService.t(id ? "
|
|
286
|
+
children: localeService.t(id ? "thread-comment-ui.editor.save" : "thread-comment-ui.editor.reply")
|
|
287
287
|
})]
|
|
288
288
|
}) : null]
|
|
289
289
|
});
|
|
@@ -416,11 +416,11 @@ const ThreadCommentItem = (props) => {
|
|
|
416
416
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("li", { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("a", {
|
|
417
417
|
className: "hover:univer-bg-gray-200",
|
|
418
418
|
onClick: () => onEditingChange === null || onEditingChange === void 0 ? void 0 : onEditingChange(true),
|
|
419
|
-
children: localeService.t("
|
|
419
|
+
children: localeService.t("thread-comment-ui.item.edit")
|
|
420
420
|
}) }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("li", { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("a", {
|
|
421
421
|
className: "hover:univer-bg-gray-200",
|
|
422
422
|
onClick: handleDeleteItem,
|
|
423
|
-
children: localeService.t("
|
|
423
|
+
children: localeService.t("thread-comment-ui.item.delete")
|
|
424
424
|
}) })]
|
|
425
425
|
})
|
|
426
426
|
}),
|
|
@@ -767,10 +767,10 @@ const ThreadCommentPanel = (props) => {
|
|
|
767
767
|
value: unit,
|
|
768
768
|
options: [{
|
|
769
769
|
value: "current",
|
|
770
|
-
label: localeService.t("
|
|
770
|
+
label: localeService.t("thread-comment-ui.filter.sheet.current")
|
|
771
771
|
}, {
|
|
772
772
|
value: "all",
|
|
773
|
-
label: localeService.t("
|
|
773
|
+
label: localeService.t("thread-comment-ui.filter.sheet.all")
|
|
774
774
|
}],
|
|
775
775
|
onChange: setUnit
|
|
776
776
|
}) : null, /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.Select, {
|
|
@@ -779,36 +779,36 @@ const ThreadCommentPanel = (props) => {
|
|
|
779
779
|
options: [
|
|
780
780
|
{
|
|
781
781
|
value: "all",
|
|
782
|
-
label: localeService.t("
|
|
782
|
+
label: localeService.t("thread-comment-ui.filter.status.all")
|
|
783
783
|
},
|
|
784
784
|
{
|
|
785
785
|
value: "resolved",
|
|
786
|
-
label: localeService.t("
|
|
786
|
+
label: localeService.t("thread-comment-ui.filter.status.resolved")
|
|
787
787
|
},
|
|
788
788
|
{
|
|
789
789
|
value: "unsolved",
|
|
790
|
-
label: localeService.t("
|
|
790
|
+
label: localeService.t("thread-comment-ui.filter.status.unsolved")
|
|
791
791
|
},
|
|
792
792
|
{
|
|
793
793
|
value: "concern_me",
|
|
794
|
-
label: localeService.t("
|
|
794
|
+
label: localeService.t("thread-comment-ui.filter.status.concernMe")
|
|
795
795
|
}
|
|
796
796
|
],
|
|
797
797
|
onChange: setStatus
|
|
798
798
|
})]
|
|
799
799
|
}), renderComments.length === 0 ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
800
800
|
className: "univer-flex univer-flex-1 univer-flex-col univer-items-center univer-justify-center univer-text-sm univer-text-gray-600 dark:!univer-text-gray-200",
|
|
801
|
-
children: [localeService.t("
|
|
801
|
+
children: [localeService.t("thread-comment-ui.panel.empty"), isFiltering ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
802
802
|
className: "univer-mt-2 univer-flex univer-flex-row",
|
|
803
803
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.Button, {
|
|
804
804
|
onClick: onReset,
|
|
805
|
-
children: localeService.t("
|
|
805
|
+
children: localeService.t("thread-comment-ui.panel.reset")
|
|
806
806
|
})
|
|
807
807
|
}) : !disableAdd ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
808
808
|
className: "univer-mt-2 univer-flex univer-flex-row",
|
|
809
809
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_univerjs_design.Button, {
|
|
810
810
|
onClick: onAdd,
|
|
811
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_icons.IncreaseIcon, { className: "univer-mr-1.5" }), localeService.t("
|
|
811
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_icons.IncreaseIcon, { className: "univer-mr-1.5" }), localeService.t("thread-comment-ui.panel.addComment")]
|
|
812
812
|
})
|
|
813
813
|
}) : null]
|
|
814
814
|
}) : /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
@@ -817,7 +817,7 @@ const ThreadCommentPanel = (props) => {
|
|
|
817
817
|
unSolvedComments.map(renderComment),
|
|
818
818
|
solvedComments.length > 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
819
819
|
className: "univer-text-xs",
|
|
820
|
-
children: localeService.t("
|
|
820
|
+
children: localeService.t("thread-comment-ui.panel.solved")
|
|
821
821
|
}),
|
|
822
822
|
solvedComments.map(renderComment)
|
|
823
823
|
]
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/locale/ar-SA.ts
|
|
3
|
+
const locale = { "thread-comment-ui": {
|
|
4
|
+
panel: {
|
|
5
|
+
title: "إدارة التعليقات",
|
|
6
|
+
empty: "لا توجد تعليقات بعد",
|
|
7
|
+
filterEmpty: "لا توجد نتائج مطابقة",
|
|
8
|
+
reset: "إعادة ضبط التصفية",
|
|
9
|
+
addComment: "إضافة تعليق",
|
|
10
|
+
solved: "تم الحل"
|
|
11
|
+
},
|
|
12
|
+
editor: {
|
|
13
|
+
placeholder: "رد أو إشارة إلى آخرين باستخدام @",
|
|
14
|
+
reply: "تعليق",
|
|
15
|
+
cancel: "إلغاء",
|
|
16
|
+
save: "حفظ"
|
|
17
|
+
},
|
|
18
|
+
item: {
|
|
19
|
+
edit: "تحرير",
|
|
20
|
+
delete: "حذف هذا التعليق"
|
|
21
|
+
},
|
|
22
|
+
filter: {
|
|
23
|
+
sheet: {
|
|
24
|
+
all: "كل الأوراق",
|
|
25
|
+
current: "الورقة الحالية"
|
|
26
|
+
},
|
|
27
|
+
status: {
|
|
28
|
+
all: "كل التعليقات",
|
|
29
|
+
resolved: "تم الحل",
|
|
30
|
+
unsolved: "لم يتم الحل",
|
|
31
|
+
concernMe: "يتعلق بي"
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
} };
|
|
35
|
+
|
|
36
|
+
//#endregion
|
|
37
|
+
module.exports = locale;
|
package/lib/cjs/locale/ca-ES.js
CHANGED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/locale/de-DE.ts
|
|
3
|
+
const locale = { "thread-comment-ui": {
|
|
4
|
+
panel: {
|
|
5
|
+
title: "Kommentarverwaltung",
|
|
6
|
+
empty: "Noch keine Kommentare",
|
|
7
|
+
filterEmpty: "Kein Treffer",
|
|
8
|
+
reset: "Filter zurücksetzen",
|
|
9
|
+
addComment: "Kommentar hinzufügen",
|
|
10
|
+
solved: "Gelöst"
|
|
11
|
+
},
|
|
12
|
+
editor: {
|
|
13
|
+
placeholder: "Antworten oder andere mit @ erwähnen",
|
|
14
|
+
reply: "Kommentar",
|
|
15
|
+
cancel: "Abbrechen",
|
|
16
|
+
save: "Speichern"
|
|
17
|
+
},
|
|
18
|
+
item: {
|
|
19
|
+
edit: "Bearbeiten",
|
|
20
|
+
delete: "Diesen Kommentar löschen"
|
|
21
|
+
},
|
|
22
|
+
filter: {
|
|
23
|
+
sheet: {
|
|
24
|
+
all: "Alle Blätter",
|
|
25
|
+
current: "Aktuelles Blatt"
|
|
26
|
+
},
|
|
27
|
+
status: {
|
|
28
|
+
all: "Alle Kommentare",
|
|
29
|
+
resolved: "Gelöst",
|
|
30
|
+
unsolved: "Ungelöst",
|
|
31
|
+
concernMe: "Betrifft mich"
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
} };
|
|
35
|
+
|
|
36
|
+
//#endregion
|
|
37
|
+
module.exports = locale;
|
package/lib/cjs/locale/en-US.js
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
* See the License for the specific language governing permissions and
|
|
16
16
|
* limitations under the License.
|
|
17
17
|
*/
|
|
18
|
-
const locale = {
|
|
18
|
+
const locale = { "thread-comment-ui": {
|
|
19
19
|
panel: {
|
|
20
20
|
title: "Comment Management",
|
|
21
21
|
empty: "No comments yet",
|
package/lib/cjs/locale/es-ES.js
CHANGED
package/lib/cjs/locale/fa-IR.js
CHANGED
package/lib/cjs/locale/fr-FR.js
CHANGED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/locale/id-ID.ts
|
|
3
|
+
const locale = { "thread-comment-ui": {
|
|
4
|
+
panel: {
|
|
5
|
+
title: "Manajemen Komentar",
|
|
6
|
+
empty: "Belum ada komentar",
|
|
7
|
+
filterEmpty: "Tidak ada hasil yang cocok",
|
|
8
|
+
reset: "Atur Ulang Filter",
|
|
9
|
+
addComment: "Tambah Komentar",
|
|
10
|
+
solved: "Terselesaikan"
|
|
11
|
+
},
|
|
12
|
+
editor: {
|
|
13
|
+
placeholder: "Balas atau tambahkan orang lain dengan @",
|
|
14
|
+
reply: "Komentar",
|
|
15
|
+
cancel: "Batal",
|
|
16
|
+
save: "Simpan"
|
|
17
|
+
},
|
|
18
|
+
item: {
|
|
19
|
+
edit: "Edit",
|
|
20
|
+
delete: "Hapus Komentar Ini"
|
|
21
|
+
},
|
|
22
|
+
filter: {
|
|
23
|
+
sheet: {
|
|
24
|
+
all: "Semua lembar",
|
|
25
|
+
current: "Lembar saat ini"
|
|
26
|
+
},
|
|
27
|
+
status: {
|
|
28
|
+
all: "Semua komentar",
|
|
29
|
+
resolved: "Terselesaikan",
|
|
30
|
+
unsolved: "Belum terselesaikan",
|
|
31
|
+
concernMe: "Yang menyangkut saya"
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
} };
|
|
35
|
+
|
|
36
|
+
//#endregion
|
|
37
|
+
module.exports = locale;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/locale/it-IT.ts
|
|
3
|
+
const locale = { "thread-comment-ui": {
|
|
4
|
+
panel: {
|
|
5
|
+
title: "Gestione commenti",
|
|
6
|
+
empty: "Nessun commento",
|
|
7
|
+
filterEmpty: "Nessun risultato",
|
|
8
|
+
reset: "Reimposta filtro",
|
|
9
|
+
addComment: "Aggiungi commento",
|
|
10
|
+
solved: "Risolto"
|
|
11
|
+
},
|
|
12
|
+
editor: {
|
|
13
|
+
placeholder: "Rispondi o aggiungi altri con @",
|
|
14
|
+
reply: "Commenta",
|
|
15
|
+
cancel: "Annulla",
|
|
16
|
+
save: "Salva"
|
|
17
|
+
},
|
|
18
|
+
item: {
|
|
19
|
+
edit: "Modifica",
|
|
20
|
+
delete: "Elimina questo commento"
|
|
21
|
+
},
|
|
22
|
+
filter: {
|
|
23
|
+
sheet: {
|
|
24
|
+
all: "Tutti i fogli",
|
|
25
|
+
current: "Foglio corrente"
|
|
26
|
+
},
|
|
27
|
+
status: {
|
|
28
|
+
all: "Tutti i commenti",
|
|
29
|
+
resolved: "Risolti",
|
|
30
|
+
unsolved: "Non risolti",
|
|
31
|
+
concernMe: "Mi riguardano"
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
} };
|
|
35
|
+
|
|
36
|
+
//#endregion
|
|
37
|
+
module.exports = locale;
|
package/lib/cjs/locale/ja-JP.js
CHANGED
package/lib/cjs/locale/ko-KR.js
CHANGED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/locale/pl-PL.ts
|
|
3
|
+
const locale = { "thread-comment-ui": {
|
|
4
|
+
panel: {
|
|
5
|
+
title: "Zarządzanie komentarzami",
|
|
6
|
+
empty: "Brak komentarzy",
|
|
7
|
+
filterEmpty: "Brak wyników",
|
|
8
|
+
reset: "Resetuj filtr",
|
|
9
|
+
addComment: "Dodaj komentarz",
|
|
10
|
+
solved: "Rozwiązane"
|
|
11
|
+
},
|
|
12
|
+
editor: {
|
|
13
|
+
placeholder: "Odpowiedz lub dodaj innych za pomocą @",
|
|
14
|
+
reply: "Komentarz",
|
|
15
|
+
cancel: "Anuluj",
|
|
16
|
+
save: "Zapisz"
|
|
17
|
+
},
|
|
18
|
+
item: {
|
|
19
|
+
edit: "Edytuj",
|
|
20
|
+
delete: "Usuń ten komentarz"
|
|
21
|
+
},
|
|
22
|
+
filter: {
|
|
23
|
+
sheet: {
|
|
24
|
+
all: "Wszystkie arkusze",
|
|
25
|
+
current: "Bieżący arkusz"
|
|
26
|
+
},
|
|
27
|
+
status: {
|
|
28
|
+
all: "Wszystkie komentarze",
|
|
29
|
+
resolved: "Rozwiązane",
|
|
30
|
+
unsolved: "Nierozwiązane",
|
|
31
|
+
concernMe: "Dotyczące mnie"
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
} };
|
|
35
|
+
|
|
36
|
+
//#endregion
|
|
37
|
+
module.exports = locale;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/locale/pt-BR.ts
|
|
3
|
+
const locale = { "thread-comment-ui": {
|
|
4
|
+
panel: {
|
|
5
|
+
title: "Gerenciamento de Comentários",
|
|
6
|
+
empty: "Nenhum comentário ainda",
|
|
7
|
+
filterEmpty: "Nenhum resultado correspondente",
|
|
8
|
+
reset: "Redefinir Filtro",
|
|
9
|
+
addComment: "Adicionar Comentário",
|
|
10
|
+
solved: "Resolvido"
|
|
11
|
+
},
|
|
12
|
+
editor: {
|
|
13
|
+
placeholder: "Responder ou mencionar outros com @",
|
|
14
|
+
reply: "Comentar",
|
|
15
|
+
cancel: "Cancelar",
|
|
16
|
+
save: "Salvar"
|
|
17
|
+
},
|
|
18
|
+
item: {
|
|
19
|
+
edit: "Editar",
|
|
20
|
+
delete: "Excluir Este Comentário"
|
|
21
|
+
},
|
|
22
|
+
filter: {
|
|
23
|
+
sheet: {
|
|
24
|
+
all: "Todas as planilhas",
|
|
25
|
+
current: "Planilha atual"
|
|
26
|
+
},
|
|
27
|
+
status: {
|
|
28
|
+
all: "Todos os comentários",
|
|
29
|
+
resolved: "Resolvidos",
|
|
30
|
+
unsolved: "Não resolvidos",
|
|
31
|
+
concernMe: "Me envolvem"
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
} };
|
|
35
|
+
|
|
36
|
+
//#endregion
|
|
37
|
+
module.exports = locale;
|
package/lib/cjs/locale/ru-RU.js
CHANGED
package/lib/cjs/locale/sk-SK.js
CHANGED
package/lib/cjs/locale/vi-VN.js
CHANGED
package/lib/cjs/locale/zh-CN.js
CHANGED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/locale/zh-HK.ts
|
|
3
|
+
const locale = { "thread-comment-ui": {
|
|
4
|
+
panel: {
|
|
5
|
+
title: "評論管理",
|
|
6
|
+
empty: "暫無評論",
|
|
7
|
+
filterEmpty: "沒有符合的結果",
|
|
8
|
+
reset: "重置",
|
|
9
|
+
addComment: "新增評論",
|
|
10
|
+
solved: "已解決"
|
|
11
|
+
},
|
|
12
|
+
editor: {
|
|
13
|
+
placeholder: "回覆",
|
|
14
|
+
reply: "回覆",
|
|
15
|
+
cancel: "取消",
|
|
16
|
+
save: "儲存"
|
|
17
|
+
},
|
|
18
|
+
item: {
|
|
19
|
+
edit: "編輯",
|
|
20
|
+
delete: "刪除"
|
|
21
|
+
},
|
|
22
|
+
filter: {
|
|
23
|
+
sheet: {
|
|
24
|
+
all: "所有表格",
|
|
25
|
+
current: "當前表格"
|
|
26
|
+
},
|
|
27
|
+
status: {
|
|
28
|
+
all: "所有評論",
|
|
29
|
+
resolved: "已解決",
|
|
30
|
+
unsolved: "未解決",
|
|
31
|
+
concernMe: "與我有關"
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
} };
|
|
35
|
+
|
|
36
|
+
//#endregion
|
|
37
|
+
module.exports = locale;
|
package/lib/cjs/locale/zh-TW.js
CHANGED
package/lib/es/index.js
CHANGED
|
@@ -124,7 +124,7 @@ const SetActiveCommentOperation = {
|
|
|
124
124
|
//#endregion
|
|
125
125
|
//#region package.json
|
|
126
126
|
var name = "@univerjs/thread-comment-ui";
|
|
127
|
-
var version = "0.
|
|
127
|
+
var version = "0.24.0-insiders.20260528-29f582d";
|
|
128
128
|
|
|
129
129
|
//#endregion
|
|
130
130
|
//#region src/config/config.ts
|
|
@@ -257,7 +257,7 @@ const ThreadCommentEditor = forwardRef((props, ref) => {
|
|
|
257
257
|
editorId,
|
|
258
258
|
autoFocus,
|
|
259
259
|
keyboardEventConfig,
|
|
260
|
-
placeholder: localeService.t("
|
|
260
|
+
placeholder: localeService.t("thread-comment-ui.editor.placeholder"),
|
|
261
261
|
initialValue: (comment === null || comment === void 0 ? void 0 : comment.text) && getSnapshot(comment.text),
|
|
262
262
|
onFocusChange: (isFocus) => isFocus && setEditing(isFocus),
|
|
263
263
|
isSingle: false,
|
|
@@ -277,12 +277,12 @@ const ThreadCommentEditor = forwardRef((props, ref) => {
|
|
|
277
277
|
(_editor$current9 = editor.current) === null || _editor$current9 === void 0 || _editor$current9.replaceText("", true);
|
|
278
278
|
commandService.executeCommand(SetActiveCommentOperation.id);
|
|
279
279
|
},
|
|
280
|
-
children: localeService.t("
|
|
280
|
+
children: localeService.t("thread-comment-ui.editor.cancel")
|
|
281
281
|
}), /* @__PURE__ */ jsx(Button, {
|
|
282
282
|
variant: "primary",
|
|
283
283
|
disabled: !canSubmit,
|
|
284
284
|
onClick: handleSave,
|
|
285
|
-
children: localeService.t(id ? "
|
|
285
|
+
children: localeService.t(id ? "thread-comment-ui.editor.save" : "thread-comment-ui.editor.reply")
|
|
286
286
|
})]
|
|
287
287
|
}) : null]
|
|
288
288
|
});
|
|
@@ -415,11 +415,11 @@ const ThreadCommentItem = (props) => {
|
|
|
415
415
|
children: [/* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx("a", {
|
|
416
416
|
className: "hover:univer-bg-gray-200",
|
|
417
417
|
onClick: () => onEditingChange === null || onEditingChange === void 0 ? void 0 : onEditingChange(true),
|
|
418
|
-
children: localeService.t("
|
|
418
|
+
children: localeService.t("thread-comment-ui.item.edit")
|
|
419
419
|
}) }), /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx("a", {
|
|
420
420
|
className: "hover:univer-bg-gray-200",
|
|
421
421
|
onClick: handleDeleteItem,
|
|
422
|
-
children: localeService.t("
|
|
422
|
+
children: localeService.t("thread-comment-ui.item.delete")
|
|
423
423
|
}) })]
|
|
424
424
|
})
|
|
425
425
|
}),
|
|
@@ -766,10 +766,10 @@ const ThreadCommentPanel = (props) => {
|
|
|
766
766
|
value: unit,
|
|
767
767
|
options: [{
|
|
768
768
|
value: "current",
|
|
769
|
-
label: localeService.t("
|
|
769
|
+
label: localeService.t("thread-comment-ui.filter.sheet.current")
|
|
770
770
|
}, {
|
|
771
771
|
value: "all",
|
|
772
|
-
label: localeService.t("
|
|
772
|
+
label: localeService.t("thread-comment-ui.filter.sheet.all")
|
|
773
773
|
}],
|
|
774
774
|
onChange: setUnit
|
|
775
775
|
}) : null, /* @__PURE__ */ jsx(Select, {
|
|
@@ -778,36 +778,36 @@ const ThreadCommentPanel = (props) => {
|
|
|
778
778
|
options: [
|
|
779
779
|
{
|
|
780
780
|
value: "all",
|
|
781
|
-
label: localeService.t("
|
|
781
|
+
label: localeService.t("thread-comment-ui.filter.status.all")
|
|
782
782
|
},
|
|
783
783
|
{
|
|
784
784
|
value: "resolved",
|
|
785
|
-
label: localeService.t("
|
|
785
|
+
label: localeService.t("thread-comment-ui.filter.status.resolved")
|
|
786
786
|
},
|
|
787
787
|
{
|
|
788
788
|
value: "unsolved",
|
|
789
|
-
label: localeService.t("
|
|
789
|
+
label: localeService.t("thread-comment-ui.filter.status.unsolved")
|
|
790
790
|
},
|
|
791
791
|
{
|
|
792
792
|
value: "concern_me",
|
|
793
|
-
label: localeService.t("
|
|
793
|
+
label: localeService.t("thread-comment-ui.filter.status.concernMe")
|
|
794
794
|
}
|
|
795
795
|
],
|
|
796
796
|
onChange: setStatus
|
|
797
797
|
})]
|
|
798
798
|
}), renderComments.length === 0 ? /* @__PURE__ */ jsxs("div", {
|
|
799
799
|
className: "univer-flex univer-flex-1 univer-flex-col univer-items-center univer-justify-center univer-text-sm univer-text-gray-600 dark:!univer-text-gray-200",
|
|
800
|
-
children: [localeService.t("
|
|
800
|
+
children: [localeService.t("thread-comment-ui.panel.empty"), isFiltering ? /* @__PURE__ */ jsx("div", {
|
|
801
801
|
className: "univer-mt-2 univer-flex univer-flex-row",
|
|
802
802
|
children: /* @__PURE__ */ jsx(Button, {
|
|
803
803
|
onClick: onReset,
|
|
804
|
-
children: localeService.t("
|
|
804
|
+
children: localeService.t("thread-comment-ui.panel.reset")
|
|
805
805
|
})
|
|
806
806
|
}) : !disableAdd ? /* @__PURE__ */ jsx("div", {
|
|
807
807
|
className: "univer-mt-2 univer-flex univer-flex-row",
|
|
808
808
|
children: /* @__PURE__ */ jsxs(Button, {
|
|
809
809
|
onClick: onAdd,
|
|
810
|
-
children: [/* @__PURE__ */ jsx(IncreaseIcon, { className: "univer-mr-1.5" }), localeService.t("
|
|
810
|
+
children: [/* @__PURE__ */ jsx(IncreaseIcon, { className: "univer-mr-1.5" }), localeService.t("thread-comment-ui.panel.addComment")]
|
|
811
811
|
})
|
|
812
812
|
}) : null]
|
|
813
813
|
}) : /* @__PURE__ */ jsxs("div", {
|
|
@@ -816,7 +816,7 @@ const ThreadCommentPanel = (props) => {
|
|
|
816
816
|
unSolvedComments.map(renderComment),
|
|
817
817
|
solvedComments.length > 0 && /* @__PURE__ */ jsx("div", {
|
|
818
818
|
className: "univer-text-xs",
|
|
819
|
-
children: localeService.t("
|
|
819
|
+
children: localeService.t("thread-comment-ui.panel.solved")
|
|
820
820
|
}),
|
|
821
821
|
solvedComments.map(renderComment)
|
|
822
822
|
]
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
//#region src/locale/ar-SA.ts
|
|
2
|
+
const locale = { "thread-comment-ui": {
|
|
3
|
+
panel: {
|
|
4
|
+
title: "إدارة التعليقات",
|
|
5
|
+
empty: "لا توجد تعليقات بعد",
|
|
6
|
+
filterEmpty: "لا توجد نتائج مطابقة",
|
|
7
|
+
reset: "إعادة ضبط التصفية",
|
|
8
|
+
addComment: "إضافة تعليق",
|
|
9
|
+
solved: "تم الحل"
|
|
10
|
+
},
|
|
11
|
+
editor: {
|
|
12
|
+
placeholder: "رد أو إشارة إلى آخرين باستخدام @",
|
|
13
|
+
reply: "تعليق",
|
|
14
|
+
cancel: "إلغاء",
|
|
15
|
+
save: "حفظ"
|
|
16
|
+
},
|
|
17
|
+
item: {
|
|
18
|
+
edit: "تحرير",
|
|
19
|
+
delete: "حذف هذا التعليق"
|
|
20
|
+
},
|
|
21
|
+
filter: {
|
|
22
|
+
sheet: {
|
|
23
|
+
all: "كل الأوراق",
|
|
24
|
+
current: "الورقة الحالية"
|
|
25
|
+
},
|
|
26
|
+
status: {
|
|
27
|
+
all: "كل التعليقات",
|
|
28
|
+
resolved: "تم الحل",
|
|
29
|
+
unsolved: "لم يتم الحل",
|
|
30
|
+
concernMe: "يتعلق بي"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
} };
|
|
34
|
+
|
|
35
|
+
//#endregion
|
|
36
|
+
export { locale as default };
|
package/lib/es/locale/ca-ES.js
CHANGED