@univerjs/slides-ui 0.24.0 → 0.25.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/lib/cjs/index.js +31 -31
- package/lib/cjs/locale/ar-SA.js +45 -0
- package/lib/cjs/locale/ca-ES.js +18 -1
- package/lib/cjs/locale/de-DE.js +45 -0
- package/lib/cjs/locale/en-US.js +18 -1
- package/lib/cjs/locale/es-ES.js +18 -1
- package/lib/cjs/locale/fa-IR.js +18 -1
- package/lib/cjs/locale/fr-FR.js +18 -1
- package/lib/cjs/locale/id-ID.js +45 -0
- package/lib/cjs/locale/it-IT.js +45 -0
- package/lib/cjs/locale/ja-JP.js +18 -1
- package/lib/cjs/locale/ko-KR.js +18 -1
- package/lib/cjs/locale/pl-PL.js +45 -0
- package/lib/cjs/locale/pt-BR.js +45 -0
- package/lib/cjs/locale/ru-RU.js +18 -1
- package/lib/cjs/locale/sk-SK.js +18 -1
- package/lib/cjs/locale/vi-VN.js +18 -1
- package/lib/cjs/locale/zh-CN.js +18 -1
- package/lib/cjs/locale/zh-HK.js +64 -0
- package/lib/cjs/locale/zh-TW.js +18 -1
- package/lib/es/index.js +31 -31
- package/lib/es/locale/ar-SA.js +44 -0
- package/lib/es/locale/ca-ES.js +18 -1
- package/lib/es/locale/de-DE.js +44 -0
- package/lib/es/locale/en-US.js +18 -1
- package/lib/es/locale/es-ES.js +18 -1
- package/lib/es/locale/fa-IR.js +18 -1
- package/lib/es/locale/fr-FR.js +18 -1
- package/lib/es/locale/id-ID.js +44 -0
- package/lib/es/locale/it-IT.js +44 -0
- package/lib/es/locale/ja-JP.js +18 -1
- package/lib/es/locale/ko-KR.js +18 -1
- package/lib/es/locale/pl-PL.js +44 -0
- package/lib/es/locale/pt-BR.js +44 -0
- package/lib/es/locale/ru-RU.js +18 -1
- package/lib/es/locale/sk-SK.js +18 -1
- package/lib/es/locale/vi-VN.js +18 -1
- package/lib/es/locale/zh-CN.js +18 -1
- package/lib/es/locale/zh-HK.js +63 -0
- package/lib/es/locale/zh-TW.js +18 -1
- package/lib/index.js +31 -31
- package/lib/locale/ar-SA.js +44 -0
- package/lib/locale/ca-ES.js +18 -1
- package/lib/locale/de-DE.js +44 -0
- package/lib/locale/en-US.js +18 -1
- package/lib/locale/es-ES.js +18 -1
- package/lib/locale/fa-IR.js +18 -1
- package/lib/locale/fr-FR.js +18 -1
- package/lib/locale/id-ID.js +44 -0
- package/lib/locale/it-IT.js +44 -0
- package/lib/locale/ja-JP.js +18 -1
- package/lib/locale/ko-KR.js +18 -1
- package/lib/locale/pl-PL.js +44 -0
- package/lib/locale/pt-BR.js +44 -0
- package/lib/locale/ru-RU.js +18 -1
- package/lib/locale/sk-SK.js +18 -1
- package/lib/locale/vi-VN.js +18 -1
- package/lib/locale/zh-CN.js +18 -1
- package/lib/locale/zh-HK.js +63 -0
- package/lib/locale/zh-TW.js +18 -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 +18 -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 +1 -1
- 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 +12 -12
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/locale/pl-PL.ts
|
|
3
|
+
const locale = { "slides-ui": {
|
|
4
|
+
append: "Dodaj slajd",
|
|
5
|
+
text: { insert: { title: "Wstaw tekst" } },
|
|
6
|
+
shape: { insert: {
|
|
7
|
+
title: "Wstaw kształt",
|
|
8
|
+
rectangle: "Wstaw prostokąt",
|
|
9
|
+
ellipse: "Wstaw elipsę"
|
|
10
|
+
} },
|
|
11
|
+
image: { insert: {
|
|
12
|
+
title: "Wstaw obraz",
|
|
13
|
+
float: "Wstaw obraz swobodny"
|
|
14
|
+
} },
|
|
15
|
+
popup: {
|
|
16
|
+
edit: "Edytuj",
|
|
17
|
+
delete: "Usuń"
|
|
18
|
+
},
|
|
19
|
+
sidebar: {
|
|
20
|
+
text: "Edytuj tekst",
|
|
21
|
+
shape: "Edytuj kształt",
|
|
22
|
+
image: "Edytuj obraz"
|
|
23
|
+
},
|
|
24
|
+
"image-panel": {
|
|
25
|
+
arrange: {
|
|
26
|
+
title: "Rozmieść",
|
|
27
|
+
forward: "Przesuń do przodu",
|
|
28
|
+
backward: "Przesuń do tyłu",
|
|
29
|
+
front: "Przesuń na wierzch",
|
|
30
|
+
back: "Przesuń na spód"
|
|
31
|
+
},
|
|
32
|
+
transform: {
|
|
33
|
+
title: "Przekształć",
|
|
34
|
+
width: "Szerokość (px)",
|
|
35
|
+
height: "Wysokość (px)",
|
|
36
|
+
x: "X (px)",
|
|
37
|
+
y: "Y (px)",
|
|
38
|
+
rotate: "Obrót (°)"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
panel: { fill: { title: "Kolor wypełnienia" } }
|
|
42
|
+
} };
|
|
43
|
+
|
|
44
|
+
//#endregion
|
|
45
|
+
module.exports = locale;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/locale/pt-BR.ts
|
|
3
|
+
const locale = { "slides-ui": {
|
|
4
|
+
append: "Adicionar Slide",
|
|
5
|
+
text: { insert: { title: "Inserir Texto" } },
|
|
6
|
+
shape: { insert: {
|
|
7
|
+
title: "Inserir Forma",
|
|
8
|
+
rectangle: "Inserir Retângulo",
|
|
9
|
+
ellipse: "Inserir Elipse"
|
|
10
|
+
} },
|
|
11
|
+
image: { insert: {
|
|
12
|
+
title: "Inserir Imagem",
|
|
13
|
+
float: "Inserir Imagem Flutuante"
|
|
14
|
+
} },
|
|
15
|
+
popup: {
|
|
16
|
+
edit: "Editar",
|
|
17
|
+
delete: "Excluir"
|
|
18
|
+
},
|
|
19
|
+
sidebar: {
|
|
20
|
+
text: "Editar Texto",
|
|
21
|
+
shape: "Editar Forma",
|
|
22
|
+
image: "Editar Imagem"
|
|
23
|
+
},
|
|
24
|
+
"image-panel": {
|
|
25
|
+
arrange: {
|
|
26
|
+
title: "Organizar",
|
|
27
|
+
forward: "Trazer para Frente",
|
|
28
|
+
backward: "Enviar para Trás",
|
|
29
|
+
front: "Trazer para a Frente",
|
|
30
|
+
back: "Enviar para Trás"
|
|
31
|
+
},
|
|
32
|
+
transform: {
|
|
33
|
+
title: "Transformar",
|
|
34
|
+
width: "Largura (px)",
|
|
35
|
+
height: "Altura (px)",
|
|
36
|
+
x: "X (px)",
|
|
37
|
+
y: "Y (px)",
|
|
38
|
+
rotate: "Rotacionar (°)"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
panel: { fill: { title: "Cor de Preenchimento" } }
|
|
42
|
+
} };
|
|
43
|
+
|
|
44
|
+
//#endregion
|
|
45
|
+
module.exports = locale;
|
package/lib/cjs/locale/ru-RU.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$1 = {
|
|
18
|
+
const locale$1 = { "slides-ui": {
|
|
19
19
|
append: "Append Slide",
|
|
20
20
|
text: { insert: { title: "Insert Text" } },
|
|
21
21
|
shape: { insert: {
|
|
@@ -36,6 +36,23 @@ const locale$1 = { slide: {
|
|
|
36
36
|
shape: "Edit Shape",
|
|
37
37
|
image: "Edit Image"
|
|
38
38
|
},
|
|
39
|
+
"image-panel": {
|
|
40
|
+
arrange: {
|
|
41
|
+
title: "Arrange",
|
|
42
|
+
forward: "Bring Forward",
|
|
43
|
+
backward: "Send Backward",
|
|
44
|
+
front: "Bring to Front",
|
|
45
|
+
back: "Send to Back"
|
|
46
|
+
},
|
|
47
|
+
transform: {
|
|
48
|
+
title: "Transform",
|
|
49
|
+
width: "Width (px)",
|
|
50
|
+
height: "Height (px)",
|
|
51
|
+
x: "X (px)",
|
|
52
|
+
y: "Y (px)",
|
|
53
|
+
rotate: "Rotate (°)"
|
|
54
|
+
}
|
|
55
|
+
},
|
|
39
56
|
panel: { fill: { title: "Fill Color" } }
|
|
40
57
|
} };
|
|
41
58
|
|
package/lib/cjs/locale/sk-SK.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
//#region src/locale/sk-SK.ts
|
|
3
|
-
const locale = {
|
|
3
|
+
const locale = { "slides-ui": {
|
|
4
4
|
append: "Pridať snímku",
|
|
5
5
|
text: { insert: { title: "Vložiť text" } },
|
|
6
6
|
shape: { insert: {
|
|
@@ -21,6 +21,23 @@ const locale = { slide: {
|
|
|
21
21
|
shape: "Upraviť tvar",
|
|
22
22
|
image: "Upraviť obrázok"
|
|
23
23
|
},
|
|
24
|
+
"image-panel": {
|
|
25
|
+
arrange: {
|
|
26
|
+
title: "Usporiadať",
|
|
27
|
+
forward: "Posunúť dopredu",
|
|
28
|
+
backward: "Posunúť dozadu",
|
|
29
|
+
front: "Presunúť do popredia",
|
|
30
|
+
back: "Presunúť do pozadia"
|
|
31
|
+
},
|
|
32
|
+
transform: {
|
|
33
|
+
title: "Transformovať",
|
|
34
|
+
width: "Šírka (px)",
|
|
35
|
+
height: "Výška (px)",
|
|
36
|
+
x: "X (px)",
|
|
37
|
+
y: "Y (px)",
|
|
38
|
+
rotate: "Otočiť (°)"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
24
41
|
panel: { fill: { title: "Farba výplne" } }
|
|
25
42
|
} };
|
|
26
43
|
|
package/lib/cjs/locale/vi-VN.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$1 = {
|
|
18
|
+
const locale$1 = { "slides-ui": {
|
|
19
19
|
append: "Append Slide",
|
|
20
20
|
text: { insert: { title: "Insert Text" } },
|
|
21
21
|
shape: { insert: {
|
|
@@ -36,6 +36,23 @@ const locale$1 = { slide: {
|
|
|
36
36
|
shape: "Edit Shape",
|
|
37
37
|
image: "Edit Image"
|
|
38
38
|
},
|
|
39
|
+
"image-panel": {
|
|
40
|
+
arrange: {
|
|
41
|
+
title: "Arrange",
|
|
42
|
+
forward: "Bring Forward",
|
|
43
|
+
backward: "Send Backward",
|
|
44
|
+
front: "Bring to Front",
|
|
45
|
+
back: "Send to Back"
|
|
46
|
+
},
|
|
47
|
+
transform: {
|
|
48
|
+
title: "Transform",
|
|
49
|
+
width: "Width (px)",
|
|
50
|
+
height: "Height (px)",
|
|
51
|
+
x: "X (px)",
|
|
52
|
+
y: "Y (px)",
|
|
53
|
+
rotate: "Rotate (°)"
|
|
54
|
+
}
|
|
55
|
+
},
|
|
39
56
|
panel: { fill: { title: "Fill Color" } }
|
|
40
57
|
} };
|
|
41
58
|
|
package/lib/cjs/locale/zh-CN.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
//#region src/locale/zh-CN.ts
|
|
3
|
-
const locale = {
|
|
3
|
+
const locale = { "slides-ui": {
|
|
4
4
|
append: "新增幻灯片",
|
|
5
5
|
text: { insert: { title: "插入文本" } },
|
|
6
6
|
shape: { insert: {
|
|
@@ -21,6 +21,23 @@ const locale = { slide: {
|
|
|
21
21
|
shape: "编辑图形",
|
|
22
22
|
image: "编辑图片"
|
|
23
23
|
},
|
|
24
|
+
"image-panel": {
|
|
25
|
+
arrange: {
|
|
26
|
+
title: "排列",
|
|
27
|
+
forward: "上移一层",
|
|
28
|
+
backward: "下移一层",
|
|
29
|
+
front: "置于顶层",
|
|
30
|
+
back: "置于底层"
|
|
31
|
+
},
|
|
32
|
+
transform: {
|
|
33
|
+
title: "变换",
|
|
34
|
+
width: "宽度 (px)",
|
|
35
|
+
height: "高度 (px)",
|
|
36
|
+
x: "X (px)",
|
|
37
|
+
y: "Y (px)",
|
|
38
|
+
rotate: "旋转 (°)"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
24
41
|
panel: { fill: { title: "填充" } }
|
|
25
42
|
} };
|
|
26
43
|
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/locale/en-US.ts
|
|
3
|
+
/**
|
|
4
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
5
|
+
*
|
|
6
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
* you may not use this file except in compliance with the License.
|
|
8
|
+
* You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
* See the License for the specific language governing permissions and
|
|
16
|
+
* limitations under the License.
|
|
17
|
+
*/
|
|
18
|
+
const locale$1 = { "slides-ui": {
|
|
19
|
+
append: "Append Slide",
|
|
20
|
+
text: { insert: { title: "Insert Text" } },
|
|
21
|
+
shape: { insert: {
|
|
22
|
+
title: "Insert Shape",
|
|
23
|
+
rectangle: "Insert Rectangle",
|
|
24
|
+
ellipse: "Insert Ellipse"
|
|
25
|
+
} },
|
|
26
|
+
image: { insert: {
|
|
27
|
+
title: "Insert Image",
|
|
28
|
+
float: "Insert Float Image"
|
|
29
|
+
} },
|
|
30
|
+
popup: {
|
|
31
|
+
edit: "Edit",
|
|
32
|
+
delete: "Delete"
|
|
33
|
+
},
|
|
34
|
+
sidebar: {
|
|
35
|
+
text: "Edit Text",
|
|
36
|
+
shape: "Edit Shape",
|
|
37
|
+
image: "Edit Image"
|
|
38
|
+
},
|
|
39
|
+
"image-panel": {
|
|
40
|
+
arrange: {
|
|
41
|
+
title: "Arrange",
|
|
42
|
+
forward: "Bring Forward",
|
|
43
|
+
backward: "Send Backward",
|
|
44
|
+
front: "Bring to Front",
|
|
45
|
+
back: "Send to Back"
|
|
46
|
+
},
|
|
47
|
+
transform: {
|
|
48
|
+
title: "Transform",
|
|
49
|
+
width: "Width (px)",
|
|
50
|
+
height: "Height (px)",
|
|
51
|
+
x: "X (px)",
|
|
52
|
+
y: "Y (px)",
|
|
53
|
+
rotate: "Rotate (°)"
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
panel: { fill: { title: "Fill Color" } }
|
|
57
|
+
} };
|
|
58
|
+
|
|
59
|
+
//#endregion
|
|
60
|
+
//#region src/locale/zh-HK.ts
|
|
61
|
+
const locale = locale$1;
|
|
62
|
+
|
|
63
|
+
//#endregion
|
|
64
|
+
module.exports = locale;
|
package/lib/cjs/locale/zh-TW.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$1 = {
|
|
18
|
+
const locale$1 = { "slides-ui": {
|
|
19
19
|
append: "Append Slide",
|
|
20
20
|
text: { insert: { title: "Insert Text" } },
|
|
21
21
|
shape: { insert: {
|
|
@@ -36,6 +36,23 @@ const locale$1 = { slide: {
|
|
|
36
36
|
shape: "Edit Shape",
|
|
37
37
|
image: "Edit Image"
|
|
38
38
|
},
|
|
39
|
+
"image-panel": {
|
|
40
|
+
arrange: {
|
|
41
|
+
title: "Arrange",
|
|
42
|
+
forward: "Bring Forward",
|
|
43
|
+
backward: "Send Backward",
|
|
44
|
+
front: "Bring to Front",
|
|
45
|
+
back: "Send to Back"
|
|
46
|
+
},
|
|
47
|
+
transform: {
|
|
48
|
+
title: "Transform",
|
|
49
|
+
width: "Width (px)",
|
|
50
|
+
height: "Height (px)",
|
|
51
|
+
x: "X (px)",
|
|
52
|
+
y: "Y (px)",
|
|
53
|
+
rotate: "Rotate (°)"
|
|
54
|
+
}
|
|
55
|
+
},
|
|
39
56
|
panel: { fill: { title: "Fill Color" } }
|
|
40
57
|
} };
|
|
41
58
|
|
package/lib/es/index.js
CHANGED
|
@@ -11,7 +11,7 @@ import { DOCS_COMPONENT_MAIN_LAYER_INDEX, DOCS_VIEW_KEY, DeleteLeftCommand, DocS
|
|
|
11
11
|
import { BehaviorSubject, Subject, filter, takeUntil } from "rxjs";
|
|
12
12
|
import { DocSelectionManagerService, DocSkeletonManagerService, RichTextEditingMutation } from "@univerjs/docs";
|
|
13
13
|
|
|
14
|
-
//#region \0@oxc-project+runtime@0.
|
|
14
|
+
//#region \0@oxc-project+runtime@0.133.0/helpers/esm/typeof.js
|
|
15
15
|
function _typeof(o) {
|
|
16
16
|
"@babel/helpers - typeof";
|
|
17
17
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
@@ -22,7 +22,7 @@ function _typeof(o) {
|
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
//#endregion
|
|
25
|
-
//#region \0@oxc-project+runtime@0.
|
|
25
|
+
//#region \0@oxc-project+runtime@0.133.0/helpers/esm/toPrimitive.js
|
|
26
26
|
function toPrimitive(t, r) {
|
|
27
27
|
if ("object" != _typeof(t) || !t) return t;
|
|
28
28
|
var e = t[Symbol.toPrimitive];
|
|
@@ -35,14 +35,14 @@ function toPrimitive(t, r) {
|
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
//#endregion
|
|
38
|
-
//#region \0@oxc-project+runtime@0.
|
|
38
|
+
//#region \0@oxc-project+runtime@0.133.0/helpers/esm/toPropertyKey.js
|
|
39
39
|
function toPropertyKey(t) {
|
|
40
40
|
var i = toPrimitive(t, "string");
|
|
41
41
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
//#endregion
|
|
45
|
-
//#region \0@oxc-project+runtime@0.
|
|
45
|
+
//#region \0@oxc-project+runtime@0.133.0/helpers/esm/defineProperty.js
|
|
46
46
|
function _defineProperty(e, r, t) {
|
|
47
47
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
48
48
|
value: t,
|
|
@@ -53,7 +53,7 @@ function _defineProperty(e, r, t) {
|
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
//#endregion
|
|
56
|
-
//#region \0@oxc-project+runtime@0.
|
|
56
|
+
//#region \0@oxc-project+runtime@0.133.0/helpers/esm/decorateParam.js
|
|
57
57
|
function __decorateParam(paramIndex, decorator) {
|
|
58
58
|
return function(target, key) {
|
|
59
59
|
decorator(target, key, paramIndex);
|
|
@@ -61,7 +61,7 @@ function __decorateParam(paramIndex, decorator) {
|
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
//#endregion
|
|
64
|
-
//#region \0@oxc-project+runtime@0.
|
|
64
|
+
//#region \0@oxc-project+runtime@0.133.0/helpers/esm/decorate.js
|
|
65
65
|
function __decorate(decorators, target, key, desc) {
|
|
66
66
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
67
67
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -561,7 +561,7 @@ function ArrangePanel$1(props) {
|
|
|
561
561
|
className: "univer-relative univer-mt-2.5 univer-flex univer-h-full",
|
|
562
562
|
children: /* @__PURE__ */ jsx("div", {
|
|
563
563
|
className: "univer-w-full univer-text-left univer-text-gray-600 dark:!univer-text-gray-200",
|
|
564
|
-
children: /* @__PURE__ */ jsx("div", { children: localeService.t("image-panel.arrange.title") })
|
|
564
|
+
children: /* @__PURE__ */ jsx("div", { children: localeService.t("slides-ui.image-panel.arrange.title") })
|
|
565
565
|
})
|
|
566
566
|
}),
|
|
567
567
|
/* @__PURE__ */ jsxs("div", {
|
|
@@ -574,7 +574,7 @@ function ArrangePanel$1(props) {
|
|
|
574
574
|
},
|
|
575
575
|
children: /* @__PURE__ */ jsxs("span", {
|
|
576
576
|
className: "univer-flex univer-items-center univer-gap-1",
|
|
577
|
-
children: [/* @__PURE__ */ jsx(MoveUpIcon, {}), localeService.t("image-panel.arrange.forward")]
|
|
577
|
+
children: [/* @__PURE__ */ jsx(MoveUpIcon, {}), localeService.t("slides-ui.image-panel.arrange.forward")]
|
|
578
578
|
})
|
|
579
579
|
})
|
|
580
580
|
}), /* @__PURE__ */ jsx("div", {
|
|
@@ -585,7 +585,7 @@ function ArrangePanel$1(props) {
|
|
|
585
585
|
},
|
|
586
586
|
children: /* @__PURE__ */ jsxs("span", {
|
|
587
587
|
className: "univer-flex univer-items-center univer-gap-1",
|
|
588
|
-
children: [/* @__PURE__ */ jsx(MoveDownIcon, {}), localeService.t("image-panel.arrange.backward")]
|
|
588
|
+
children: [/* @__PURE__ */ jsx(MoveDownIcon, {}), localeService.t("slides-ui.image-panel.arrange.backward")]
|
|
589
589
|
})
|
|
590
590
|
})
|
|
591
591
|
})]
|
|
@@ -600,7 +600,7 @@ function ArrangePanel$1(props) {
|
|
|
600
600
|
},
|
|
601
601
|
children: /* @__PURE__ */ jsxs("span", {
|
|
602
602
|
className: "univer-flex univer-items-center univer-gap-1",
|
|
603
|
-
children: [/* @__PURE__ */ jsx(TopmostIcon, {}), localeService.t("image-panel.arrange.front")]
|
|
603
|
+
children: [/* @__PURE__ */ jsx(TopmostIcon, {}), localeService.t("slides-ui.image-panel.arrange.front")]
|
|
604
604
|
})
|
|
605
605
|
})
|
|
606
606
|
}), /* @__PURE__ */ jsx("div", {
|
|
@@ -611,7 +611,7 @@ function ArrangePanel$1(props) {
|
|
|
611
611
|
},
|
|
612
612
|
children: /* @__PURE__ */ jsxs("span", {
|
|
613
613
|
className: "univer-flex univer-items-center univer-gap-1",
|
|
614
|
-
children: [/* @__PURE__ */ jsx(BottomIcon, {}), localeService.t("image-panel.arrange.back")]
|
|
614
|
+
children: [/* @__PURE__ */ jsx(BottomIcon, {}), localeService.t("slides-ui.image-panel.arrange.back")]
|
|
615
615
|
})
|
|
616
616
|
})
|
|
617
617
|
})]
|
|
@@ -661,7 +661,7 @@ function ArrangePanel(props) {
|
|
|
661
661
|
className: "univer-relative univer-mt-2.5 univer-flex univer-h-full",
|
|
662
662
|
children: /* @__PURE__ */ jsx("div", {
|
|
663
663
|
className: "univer-w-full univer-text-left univer-text-gray-600 dark:!univer-text-gray-200",
|
|
664
|
-
children: /* @__PURE__ */ jsx("div", { children: localeService.t("
|
|
664
|
+
children: /* @__PURE__ */ jsx("div", { children: localeService.t("slides-ui.panel.fill.title") })
|
|
665
665
|
})
|
|
666
666
|
}), /* @__PURE__ */ jsx("div", {
|
|
667
667
|
className: "univer-relative univer-mt-2.5 univer-flex univer-h-full",
|
|
@@ -787,17 +787,17 @@ function TransformPanel(props) {
|
|
|
787
787
|
children: [
|
|
788
788
|
/* @__PURE__ */ jsx("header", {
|
|
789
789
|
className: "univer-text-gray-600 dark:!univer-text-gray-200",
|
|
790
|
-
children: /* @__PURE__ */ jsx("div", { children: localeService.t("image-panel.transform.title") })
|
|
790
|
+
children: /* @__PURE__ */ jsx("div", { children: localeService.t("slides-ui.image-panel.transform.title") })
|
|
791
791
|
}),
|
|
792
792
|
/* @__PURE__ */ jsxs("div", {
|
|
793
793
|
className: "univer-grid univer-grid-cols-3 univer-gap-2 [&>div]:univer-grid [&>div]:univer-gap-2",
|
|
794
|
-
children: [/* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("span", { children: localeService.t("image-panel.transform.width") }), /* @__PURE__ */ jsx(InputNumber, {
|
|
794
|
+
children: [/* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("span", { children: localeService.t("slides-ui.image-panel.transform.width") }), /* @__PURE__ */ jsx(InputNumber, {
|
|
795
795
|
min: 1,
|
|
796
796
|
value: width,
|
|
797
797
|
onChange: (val) => {
|
|
798
798
|
handleWidthChange(val);
|
|
799
799
|
}
|
|
800
|
-
})] }), /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("span", { children: localeService.t("image-panel.transform.height") }), /* @__PURE__ */ jsx(InputNumber, {
|
|
800
|
+
})] }), /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("span", { children: localeService.t("slides-ui.image-panel.transform.height") }), /* @__PURE__ */ jsx(InputNumber, {
|
|
801
801
|
min: 1,
|
|
802
802
|
value: height,
|
|
803
803
|
onChange: (val) => {
|
|
@@ -808,7 +808,7 @@ function TransformPanel(props) {
|
|
|
808
808
|
/* @__PURE__ */ jsxs("div", {
|
|
809
809
|
className: "univer-relative univer-mt-2.5 univer-flex univer-h-full",
|
|
810
810
|
children: [
|
|
811
|
-
/* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("span", { children: localeService.t("image-panel.transform.x") }), /* @__PURE__ */ jsx(InputNumber, {
|
|
811
|
+
/* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("span", { children: localeService.t("slides-ui.image-panel.transform.x") }), /* @__PURE__ */ jsx(InputNumber, {
|
|
812
812
|
min: 0,
|
|
813
813
|
precision: 1,
|
|
814
814
|
value: xPosition,
|
|
@@ -816,7 +816,7 @@ function TransformPanel(props) {
|
|
|
816
816
|
handleXChange(val);
|
|
817
817
|
}
|
|
818
818
|
})] }),
|
|
819
|
-
/* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("span", { children: localeService.t("image-panel.transform.y") }), /* @__PURE__ */ jsx(InputNumber, {
|
|
819
|
+
/* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("span", { children: localeService.t("slides-ui.image-panel.transform.y") }), /* @__PURE__ */ jsx(InputNumber, {
|
|
820
820
|
min: 0,
|
|
821
821
|
precision: 1,
|
|
822
822
|
value: yPosition,
|
|
@@ -824,7 +824,7 @@ function TransformPanel(props) {
|
|
|
824
824
|
handleYChange(val);
|
|
825
825
|
}
|
|
826
826
|
})] }),
|
|
827
|
-
/* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("span", { children: localeService.t("image-panel.transform.rotate") }), /* @__PURE__ */ jsx(InputNumber, {
|
|
827
|
+
/* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("span", { children: localeService.t("slides-ui.image-panel.transform.rotate") }), /* @__PURE__ */ jsx(InputNumber, {
|
|
828
828
|
precision: 1,
|
|
829
829
|
value: rotation,
|
|
830
830
|
onChange: handleChangeRotation
|
|
@@ -926,13 +926,13 @@ const ToggleSlideEditSidebarOperation = {
|
|
|
926
926
|
let title = "";
|
|
927
927
|
let children = "";
|
|
928
928
|
if (objectType === ObjectType.RECT) {
|
|
929
|
-
title = "
|
|
929
|
+
title = "slides-ui.sidebar.shape";
|
|
930
930
|
children = COMPONENT_SLIDE_SIDEBAR;
|
|
931
931
|
} else if (objectType === ObjectType.IMAGE) {
|
|
932
|
-
title = "
|
|
932
|
+
title = "slides-ui.sidebar.image";
|
|
933
933
|
children = COMPONENT_SLIDE_SIDEBAR;
|
|
934
934
|
} else if (objectType === ObjectType.RICH_TEXT) {
|
|
935
|
-
title = "
|
|
935
|
+
title = "slides-ui.sidebar.text";
|
|
936
936
|
children = COMPONENT_SLIDE_SIDEBAR;
|
|
937
937
|
}
|
|
938
938
|
if (visible) sidebarService.open({
|
|
@@ -1122,7 +1122,7 @@ function SlideSideBar() {
|
|
|
1122
1122
|
children: /* @__PURE__ */ jsx("a", {
|
|
1123
1123
|
className: clsx("univer-box-border univer-block univer-h-8 univer-w-full univer-cursor-pointer univer-rounded-md univer-bg-white univer-text-center univer-text-sm univer-leading-8 univer-transition-colors", borderClassName),
|
|
1124
1124
|
onClick: handleAppendSlide,
|
|
1125
|
-
children: localeService.t("
|
|
1125
|
+
children: localeService.t("slides-ui.append")
|
|
1126
1126
|
})
|
|
1127
1127
|
}), slideList.map((item, index) => /* @__PURE__ */ jsxs("div", {
|
|
1128
1128
|
className: clsx("univer-my-4 univer-flex univer-gap-2", { "[&>div]:univer-border-primary-600 [&>span]:univer-text-primary-600": item.id === activatePageId }),
|
|
@@ -1244,14 +1244,14 @@ function SlideImageMenuFactory(accessor) {
|
|
|
1244
1244
|
id: SLIDES_IMAGE_MENU_ID,
|
|
1245
1245
|
type: MenuItemType.SUBITEMS,
|
|
1246
1246
|
icon: "AddImageIcon",
|
|
1247
|
-
tooltip: "
|
|
1247
|
+
tooltip: "slides-ui.image.insert.title",
|
|
1248
1248
|
hidden$: getMenuHiddenObservable(accessor, UniverInstanceType.UNIVER_SLIDE)
|
|
1249
1249
|
};
|
|
1250
1250
|
}
|
|
1251
1251
|
function UploadSlideFloatImageMenuFactory(_accessor) {
|
|
1252
1252
|
return {
|
|
1253
1253
|
id: InsertSlideFloatImageCommand.id,
|
|
1254
|
-
title: "
|
|
1254
|
+
title: "slides-ui.image.insert.float",
|
|
1255
1255
|
type: MenuItemType.BUTTON,
|
|
1256
1256
|
hidden$: getMenuHiddenObservable(_accessor, UniverInstanceType.UNIVER_SLIDE)
|
|
1257
1257
|
};
|
|
@@ -1265,14 +1265,14 @@ function SlideShapeMenuFactory(accessor) {
|
|
|
1265
1265
|
id: SHAPE_MENU_ID,
|
|
1266
1266
|
type: MenuItemType.SUBITEMS,
|
|
1267
1267
|
icon: "GraphIcon",
|
|
1268
|
-
tooltip: "
|
|
1268
|
+
tooltip: "slides-ui.shape.insert.title",
|
|
1269
1269
|
hidden$: getMenuHiddenObservable(accessor, UniverInstanceType.UNIVER_SLIDE)
|
|
1270
1270
|
};
|
|
1271
1271
|
}
|
|
1272
1272
|
function UploadSlideFloatRectangleShapeMenuFactory(_accessor) {
|
|
1273
1273
|
return {
|
|
1274
1274
|
id: InsertSlideShapeRectangleCommand.id,
|
|
1275
|
-
title: "
|
|
1275
|
+
title: "slides-ui.shape.insert.rectangle",
|
|
1276
1276
|
type: MenuItemType.BUTTON,
|
|
1277
1277
|
hidden$: getMenuHiddenObservable(_accessor, UniverInstanceType.UNIVER_SLIDE)
|
|
1278
1278
|
};
|
|
@@ -1280,7 +1280,7 @@ function UploadSlideFloatRectangleShapeMenuFactory(_accessor) {
|
|
|
1280
1280
|
function UploadSlideFloatEllipseShapeMenuFactory(_accessor) {
|
|
1281
1281
|
return {
|
|
1282
1282
|
id: InsertSlideShapeEllipseCommand.id,
|
|
1283
|
-
title: "
|
|
1283
|
+
title: "slides-ui.shape.insert.ellipse",
|
|
1284
1284
|
type: MenuItemType.BUTTON,
|
|
1285
1285
|
hidden$: getMenuHiddenObservable(_accessor, UniverInstanceType.UNIVER_SLIDE)
|
|
1286
1286
|
};
|
|
@@ -1293,7 +1293,7 @@ function SlideAddTextMenuItemFactory(_accessor) {
|
|
|
1293
1293
|
id: SlideAddTextCommand.id,
|
|
1294
1294
|
type: MenuItemType.BUTTON,
|
|
1295
1295
|
icon: "TextIcon",
|
|
1296
|
-
tooltip: "
|
|
1296
|
+
tooltip: "slides-ui.text.insert.title",
|
|
1297
1297
|
hidden$: getMenuHiddenObservable(_accessor, UniverInstanceType.UNIVER_SLIDE)
|
|
1298
1298
|
};
|
|
1299
1299
|
}
|
|
@@ -1573,7 +1573,7 @@ SlidesUIController = __decorate([
|
|
|
1573
1573
|
//#endregion
|
|
1574
1574
|
//#region package.json
|
|
1575
1575
|
var name = "@univerjs/slides-ui";
|
|
1576
|
-
var version = "0.
|
|
1576
|
+
var version = "0.25.0";
|
|
1577
1577
|
|
|
1578
1578
|
//#endregion
|
|
1579
1579
|
//#region src/config/config.ts
|
|
@@ -2545,7 +2545,7 @@ let SlidePopupMenuController = class SlidePopupMenuController extends RxDisposab
|
|
|
2545
2545
|
}
|
|
2546
2546
|
_getMenuItemsByObjectType(objectType, oKey, unitId) {
|
|
2547
2547
|
return [{
|
|
2548
|
-
label: "
|
|
2548
|
+
label: "slides-ui.popup.edit",
|
|
2549
2549
|
index: 0,
|
|
2550
2550
|
commandId: ToggleSlideEditSidebarOperation.id,
|
|
2551
2551
|
commandParams: {
|
|
@@ -2554,7 +2554,7 @@ let SlidePopupMenuController = class SlidePopupMenuController extends RxDisposab
|
|
|
2554
2554
|
},
|
|
2555
2555
|
disable: false
|
|
2556
2556
|
}, {
|
|
2557
|
-
label: "
|
|
2557
|
+
label: "slides-ui.popup.delete",
|
|
2558
2558
|
index: 5,
|
|
2559
2559
|
commandId: DeleteSlideElementOperation.id,
|
|
2560
2560
|
commandParams: {
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
//#region src/locale/ar-SA.ts
|
|
2
|
+
const locale = { "slides-ui": {
|
|
3
|
+
append: "إلحاق شريحة",
|
|
4
|
+
text: { insert: { title: "إدراج نص" } },
|
|
5
|
+
shape: { insert: {
|
|
6
|
+
title: "إدراج شكل",
|
|
7
|
+
rectangle: "إدراج مستطيل",
|
|
8
|
+
ellipse: "إدراج قطع ناقص"
|
|
9
|
+
} },
|
|
10
|
+
image: { insert: {
|
|
11
|
+
title: "إدراج صورة",
|
|
12
|
+
float: "إدراج صورة عائمة"
|
|
13
|
+
} },
|
|
14
|
+
popup: {
|
|
15
|
+
edit: "تحرير",
|
|
16
|
+
delete: "حذف"
|
|
17
|
+
},
|
|
18
|
+
sidebar: {
|
|
19
|
+
text: "تحرير النص",
|
|
20
|
+
shape: "تحرير الشكل",
|
|
21
|
+
image: "تحرير الصورة"
|
|
22
|
+
},
|
|
23
|
+
"image-panel": {
|
|
24
|
+
arrange: {
|
|
25
|
+
title: "ترتيب",
|
|
26
|
+
forward: "إحضار إلى الأمام",
|
|
27
|
+
backward: "إرسال إلى الخلف",
|
|
28
|
+
front: "إحضار إلى المقدمة",
|
|
29
|
+
back: "إرسال إلى المؤخرة"
|
|
30
|
+
},
|
|
31
|
+
transform: {
|
|
32
|
+
title: "تحويل",
|
|
33
|
+
width: "العرض (بكسل)",
|
|
34
|
+
height: "الارتفاع (بكسل)",
|
|
35
|
+
x: "X (بكسل)",
|
|
36
|
+
y: "Y (بكسل)",
|
|
37
|
+
rotate: "تدوير (°)"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
panel: { fill: { title: "لون التعبئة" } }
|
|
41
|
+
} };
|
|
42
|
+
|
|
43
|
+
//#endregion
|
|
44
|
+
export { locale as default };
|
package/lib/es/locale/ca-ES.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/locale/ca-ES.ts
|
|
2
|
-
const locale = {
|
|
2
|
+
const locale = { "slides-ui": {
|
|
3
3
|
append: "Afegeix diapositiva",
|
|
4
4
|
text: { insert: { title: "Insereix text" } },
|
|
5
5
|
shape: { insert: {
|
|
@@ -20,6 +20,23 @@ const locale = { slide: {
|
|
|
20
20
|
shape: "Edita forma",
|
|
21
21
|
image: "Edita imatge"
|
|
22
22
|
},
|
|
23
|
+
"image-panel": {
|
|
24
|
+
arrange: {
|
|
25
|
+
title: "Organitza",
|
|
26
|
+
forward: "Porta endavant",
|
|
27
|
+
backward: "Envia enrere",
|
|
28
|
+
front: "Porta al davant",
|
|
29
|
+
back: "Envia al fons"
|
|
30
|
+
},
|
|
31
|
+
transform: {
|
|
32
|
+
title: "Transforma",
|
|
33
|
+
width: "Amplada (px)",
|
|
34
|
+
height: "Alçada (px)",
|
|
35
|
+
x: "X (px)",
|
|
36
|
+
y: "Y (px)",
|
|
37
|
+
rotate: "Gira (°)"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
23
40
|
panel: { fill: { title: "Color de farciment" } }
|
|
24
41
|
} };
|
|
25
42
|
|