@univerjs/docs-ui 1.3.1 → 1.5.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/README.md +7 -75
- package/lib/cjs/facade.js +1 -3
- package/lib/cjs/index.js +384 -523
- package/lib/cjs/locale/ar-SA.js +2 -2
- package/lib/cjs/locale/ca-ES.js +2 -2
- package/lib/cjs/locale/de-DE.js +2 -2
- package/lib/cjs/locale/en-US.js +2 -2
- package/lib/cjs/locale/es-ES.js +2 -2
- package/lib/cjs/locale/fa-IR.js +2 -2
- package/lib/cjs/locale/fr-FR.js +2 -2
- package/lib/cjs/locale/id-ID.js +2 -2
- package/lib/cjs/locale/it-IT.js +2 -2
- package/lib/cjs/locale/ja-JP.js +2 -2
- package/lib/cjs/locale/ko-KR.js +2 -2
- package/lib/cjs/locale/pl-PL.js +2 -2
- package/lib/cjs/locale/pt-BR.js +2 -2
- package/lib/cjs/locale/ru-RU.js +2 -2
- package/lib/cjs/locale/sk-SK.js +2 -2
- package/lib/cjs/locale/vi-VN.js +2 -2
- package/lib/cjs/locale/zh-CN.js +2 -2
- package/lib/cjs/locale/zh-HK.js +2 -2
- package/lib/cjs/locale/zh-TW.js +2 -2
- package/lib/es/facade.js +1 -2
- package/lib/es/index.js +384 -522
- package/lib/es/locale/ar-SA.js +2 -2
- package/lib/es/locale/ca-ES.js +2 -2
- package/lib/es/locale/de-DE.js +2 -2
- package/lib/es/locale/en-US.js +2 -2
- package/lib/es/locale/es-ES.js +2 -2
- package/lib/es/locale/fa-IR.js +2 -2
- package/lib/es/locale/fr-FR.js +2 -2
- package/lib/es/locale/id-ID.js +2 -2
- package/lib/es/locale/it-IT.js +2 -2
- package/lib/es/locale/ja-JP.js +2 -2
- package/lib/es/locale/ko-KR.js +2 -2
- package/lib/es/locale/pl-PL.js +2 -2
- package/lib/es/locale/pt-BR.js +2 -2
- package/lib/es/locale/ru-RU.js +2 -2
- package/lib/es/locale/sk-SK.js +2 -2
- package/lib/es/locale/vi-VN.js +2 -2
- package/lib/es/locale/zh-CN.js +2 -2
- package/lib/es/locale/zh-HK.js +2 -2
- package/lib/es/locale/zh-TW.js +2 -2
- package/lib/facade.js +1 -2
- package/lib/index.css +4 -21
- package/lib/index.js +384 -522
- package/lib/locale/ar-SA.js +2 -2
- package/lib/locale/ca-ES.js +2 -2
- package/lib/locale/de-DE.js +2 -2
- package/lib/locale/en-US.js +2 -2
- package/lib/locale/es-ES.js +2 -2
- package/lib/locale/fa-IR.js +2 -2
- package/lib/locale/fr-FR.js +2 -2
- package/lib/locale/id-ID.js +2 -2
- package/lib/locale/it-IT.js +2 -2
- package/lib/locale/ja-JP.js +2 -2
- package/lib/locale/ko-KR.js +2 -2
- package/lib/locale/pl-PL.js +2 -2
- package/lib/locale/pt-BR.js +2 -2
- package/lib/locale/ru-RU.js +2 -2
- package/lib/locale/sk-SK.js +2 -2
- package/lib/locale/vi-VN.js +2 -2
- package/lib/locale/zh-CN.js +2 -2
- package/lib/locale/zh-HK.js +2 -2
- package/lib/locale/zh-TW.js +2 -2
- package/lib/types/commands/commands/doc-paragraph-setting.command.d.ts +1 -1
- package/lib/types/commands/commands/table/doc-table-create.command.d.ts +2 -2
- package/lib/types/controllers/components.controller.d.ts +0 -1
- package/lib/types/controllers/mobile/components.controller.d.ts +0 -1
- package/lib/types/locale/en-US.d.ts +1 -0
- package/lib/types/menu/mobile-schema.d.ts +5 -4
- package/lib/types/menu/paragraph-menu.d.ts +2 -2
- package/lib/types/services/clipboard/clipboard.service.d.ts +1 -1
- package/lib/types/services/clipboard/doc-paste-mutation-adapter.service.d.ts +1 -1
- package/lib/types/services/clipboard/paste-options.d.ts +6 -6
- package/lib/types/services/clipboard/udm-to-html/convertor.d.ts +1 -1
- package/lib/types/services/doc-render-background.d.ts +1 -1
- package/lib/types/services/editor/editor-manager.service.d.ts +1 -1
- package/lib/types/services/editor/editor.d.ts +1 -1
- package/lib/types/services/selection/text-range.d.ts +2 -2
- package/lib/types/views/header-footer/panel/DocHeaderFooterPanel.d.ts +1 -1
- package/lib/types/views/header-footer/panel/use-header-footer-options.d.ts +2 -2
- package/lib/types/views/paragraph-setting/ParagraphWordWrapSetting.d.ts +16 -0
- package/lib/types/views/paragraph-setting/hook/utils.d.ts +2 -2
- package/lib/types/views/rich-text-editor/hooks/use-resize.d.ts +1 -1
- package/lib/types/views/section-setting/use-section-setting.d.ts +13 -13
- package/lib/umd/index.js +16 -16
- 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 +16 -16
package/lib/locale/ar-SA.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/ar-SA.ts
|
|
2
2
|
const locale = { "docs-ui": {
|
|
3
3
|
pasteOptions: {
|
|
4
4
|
special: "لصق خاص",
|
|
@@ -157,6 +157,7 @@ const locale = { "docs-ui": {
|
|
|
157
157
|
sectionSetting: "إعدادات المقطع"
|
|
158
158
|
},
|
|
159
159
|
paragraphSetting: {
|
|
160
|
+
wordWrap: "السماح بالتفاف النص اللاتيني في وسط الكلمة",
|
|
160
161
|
alignment: "محاذاة",
|
|
161
162
|
indentation: "إزاحة",
|
|
162
163
|
left: "يسار",
|
|
@@ -254,5 +255,4 @@ const locale = { "docs-ui": {
|
|
|
254
255
|
}
|
|
255
256
|
} };
|
|
256
257
|
|
|
257
|
-
//#endregion
|
|
258
258
|
export { locale as default };
|
package/lib/locale/ca-ES.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/ca-ES.ts
|
|
2
2
|
const locale = { "docs-ui": {
|
|
3
3
|
pasteOptions: {
|
|
4
4
|
special: "Enganxament especial",
|
|
@@ -157,6 +157,7 @@ const locale = { "docs-ui": {
|
|
|
157
157
|
sectionSetting: "Configuració de secció"
|
|
158
158
|
},
|
|
159
159
|
paragraphSetting: {
|
|
160
|
+
wordWrap: "Permet ajustar el text llatí al mig d’una paraula",
|
|
160
161
|
alignment: "Alineació",
|
|
161
162
|
indentation: "Sagnat",
|
|
162
163
|
left: "Esquerra",
|
|
@@ -254,5 +255,4 @@ const locale = { "docs-ui": {
|
|
|
254
255
|
}
|
|
255
256
|
} };
|
|
256
257
|
|
|
257
|
-
//#endregion
|
|
258
258
|
export { locale as default };
|
package/lib/locale/de-DE.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/de-DE.ts
|
|
2
2
|
const locale = { "docs-ui": {
|
|
3
3
|
pasteOptions: {
|
|
4
4
|
special: "Inhalte einfügen",
|
|
@@ -157,6 +157,7 @@ const locale = { "docs-ui": {
|
|
|
157
157
|
sectionSetting: "Abschnittseinstellungen"
|
|
158
158
|
},
|
|
159
159
|
paragraphSetting: {
|
|
160
|
+
wordWrap: "Textumbruch in der Mitte eines Wortes für westlichen Text zulassen",
|
|
160
161
|
alignment: "Ausrichtung",
|
|
161
162
|
indentation: "Einzug",
|
|
162
163
|
left: "Links",
|
|
@@ -254,5 +255,4 @@ const locale = { "docs-ui": {
|
|
|
254
255
|
}
|
|
255
256
|
} };
|
|
256
257
|
|
|
257
|
-
//#endregion
|
|
258
258
|
export { locale as default };
|
package/lib/locale/en-US.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/en-US.ts
|
|
2
2
|
/**
|
|
3
3
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
4
4
|
*
|
|
@@ -172,6 +172,7 @@ const locale = { "docs-ui": {
|
|
|
172
172
|
sectionSetting: "Section Settings"
|
|
173
173
|
},
|
|
174
174
|
paragraphSetting: {
|
|
175
|
+
wordWrap: "Allow Latin text to wrap in the middle of a word",
|
|
175
176
|
alignment: "Alignment",
|
|
176
177
|
indentation: "Indentation",
|
|
177
178
|
left: "Left",
|
|
@@ -269,5 +270,4 @@ const locale = { "docs-ui": {
|
|
|
269
270
|
}
|
|
270
271
|
} };
|
|
271
272
|
|
|
272
|
-
//#endregion
|
|
273
273
|
export { locale as default };
|
package/lib/locale/es-ES.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/es-ES.ts
|
|
2
2
|
const locale = { "docs-ui": {
|
|
3
3
|
pasteOptions: {
|
|
4
4
|
special: "Pegado especial",
|
|
@@ -157,6 +157,7 @@ const locale = { "docs-ui": {
|
|
|
157
157
|
sectionSetting: "Configuración de sección"
|
|
158
158
|
},
|
|
159
159
|
paragraphSetting: {
|
|
160
|
+
wordWrap: "Permitir ajuste de línea con división de palabra en el texto latino",
|
|
160
161
|
alignment: "Alineación",
|
|
161
162
|
indentation: "Sangría",
|
|
162
163
|
left: "Izquierda",
|
|
@@ -254,5 +255,4 @@ const locale = { "docs-ui": {
|
|
|
254
255
|
}
|
|
255
256
|
} };
|
|
256
257
|
|
|
257
|
-
//#endregion
|
|
258
258
|
export { locale as default };
|
package/lib/locale/fa-IR.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/fa-IR.ts
|
|
2
2
|
const locale = { "docs-ui": {
|
|
3
3
|
pasteOptions: {
|
|
4
4
|
special: "چسباندن ویژه",
|
|
@@ -157,6 +157,7 @@ const locale = { "docs-ui": {
|
|
|
157
157
|
sectionSetting: "تنظیمات بخش"
|
|
158
158
|
},
|
|
159
159
|
paragraphSetting: {
|
|
160
|
+
wordWrap: "اجازه شکستن متن لاتین در میانهٔ کلمه",
|
|
160
161
|
alignment: "تراز",
|
|
161
162
|
indentation: "تورفتگی",
|
|
162
163
|
left: "چپ",
|
|
@@ -254,5 +255,4 @@ const locale = { "docs-ui": {
|
|
|
254
255
|
}
|
|
255
256
|
} };
|
|
256
257
|
|
|
257
|
-
//#endregion
|
|
258
258
|
export { locale as default };
|
package/lib/locale/fr-FR.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/fr-FR.ts
|
|
2
2
|
const locale = { "docs-ui": {
|
|
3
3
|
pasteOptions: {
|
|
4
4
|
special: "Collage spécial",
|
|
@@ -157,6 +157,7 @@ const locale = { "docs-ui": {
|
|
|
157
157
|
sectionSetting: "Paramètres de section"
|
|
158
158
|
},
|
|
159
159
|
paragraphSetting: {
|
|
160
|
+
wordWrap: "Autoriser la césure en milieu de mot pour le texte en caractères latins",
|
|
160
161
|
alignment: "Alignement",
|
|
161
162
|
indentation: "Retrait",
|
|
162
163
|
left: "Gauche",
|
|
@@ -254,5 +255,4 @@ const locale = { "docs-ui": {
|
|
|
254
255
|
}
|
|
255
256
|
} };
|
|
256
257
|
|
|
257
|
-
//#endregion
|
|
258
258
|
export { locale as default };
|
package/lib/locale/id-ID.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/id-ID.ts
|
|
2
2
|
const locale = { "docs-ui": {
|
|
3
3
|
pasteOptions: {
|
|
4
4
|
special: "Tempel khusus",
|
|
@@ -157,6 +157,7 @@ const locale = { "docs-ui": {
|
|
|
157
157
|
sectionSetting: "Pengaturan bagian"
|
|
158
158
|
},
|
|
159
159
|
paragraphSetting: {
|
|
160
|
+
wordWrap: "Perbolehkan teks Latin untuk dibungkus di tengah kata",
|
|
160
161
|
alignment: "Perataan",
|
|
161
162
|
indentation: "Indentasi",
|
|
162
163
|
left: "Kiri",
|
|
@@ -254,5 +255,4 @@ const locale = { "docs-ui": {
|
|
|
254
255
|
}
|
|
255
256
|
} };
|
|
256
257
|
|
|
257
|
-
//#endregion
|
|
258
258
|
export { locale as default };
|
package/lib/locale/it-IT.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/it-IT.ts
|
|
2
2
|
const locale = { "docs-ui": {
|
|
3
3
|
pasteOptions: {
|
|
4
4
|
special: "Incolla speciale",
|
|
@@ -157,6 +157,7 @@ const locale = { "docs-ui": {
|
|
|
157
157
|
sectionSetting: "Impostazioni sezione"
|
|
158
158
|
},
|
|
159
159
|
paragraphSetting: {
|
|
160
|
+
wordWrap: "Consenti sillabazione testo in alfabeto latino",
|
|
160
161
|
alignment: "Allineamento",
|
|
161
162
|
indentation: "Rientro",
|
|
162
163
|
left: "Sinistra",
|
|
@@ -254,5 +255,4 @@ const locale = { "docs-ui": {
|
|
|
254
255
|
}
|
|
255
256
|
} };
|
|
256
257
|
|
|
257
|
-
//#endregion
|
|
258
258
|
export { locale as default };
|
package/lib/locale/ja-JP.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/ja-JP.ts
|
|
2
2
|
const locale = { "docs-ui": {
|
|
3
3
|
pasteOptions: {
|
|
4
4
|
special: "形式を選択して貼り付け",
|
|
@@ -157,6 +157,7 @@ const locale = { "docs-ui": {
|
|
|
157
157
|
sectionSetting: "セクション設定"
|
|
158
158
|
},
|
|
159
159
|
paragraphSetting: {
|
|
160
|
+
wordWrap: "英単語の途中で改行する",
|
|
160
161
|
alignment: "配置",
|
|
161
162
|
indentation: "インデント",
|
|
162
163
|
left: "左",
|
|
@@ -254,5 +255,4 @@ const locale = { "docs-ui": {
|
|
|
254
255
|
}
|
|
255
256
|
} };
|
|
256
257
|
|
|
257
|
-
//#endregion
|
|
258
258
|
export { locale as default };
|
package/lib/locale/ko-KR.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/ko-KR.ts
|
|
2
2
|
const locale = { "docs-ui": {
|
|
3
3
|
pasteOptions: {
|
|
4
4
|
special: "선택하여 붙여넣기",
|
|
@@ -157,6 +157,7 @@ const locale = { "docs-ui": {
|
|
|
157
157
|
sectionSetting: "구역 설정"
|
|
158
158
|
},
|
|
159
159
|
paragraphSetting: {
|
|
160
|
+
wordWrap: "영어 단어 잘림 허용",
|
|
160
161
|
alignment: "정렬",
|
|
161
162
|
indentation: "들여쓰기",
|
|
162
163
|
left: "왼쪽",
|
|
@@ -254,5 +255,4 @@ const locale = { "docs-ui": {
|
|
|
254
255
|
}
|
|
255
256
|
} };
|
|
256
257
|
|
|
257
|
-
//#endregion
|
|
258
258
|
export { locale as default };
|
package/lib/locale/pl-PL.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/pl-PL.ts
|
|
2
2
|
const locale = { "docs-ui": {
|
|
3
3
|
pasteOptions: {
|
|
4
4
|
special: "Wklej specjalnie",
|
|
@@ -157,6 +157,7 @@ const locale = { "docs-ui": {
|
|
|
157
157
|
sectionSetting: "Ustawienia sekcji"
|
|
158
158
|
},
|
|
159
159
|
paragraphSetting: {
|
|
160
|
+
wordWrap: "Zezwalaj na zawijanie tekstu łacińskiego w środku wyrazu",
|
|
160
161
|
alignment: "Wyrównanie",
|
|
161
162
|
indentation: "Wcięcie",
|
|
162
163
|
left: "Lewe",
|
|
@@ -254,5 +255,4 @@ const locale = { "docs-ui": {
|
|
|
254
255
|
}
|
|
255
256
|
} };
|
|
256
257
|
|
|
257
|
-
//#endregion
|
|
258
258
|
export { locale as default };
|
package/lib/locale/pt-BR.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/pt-BR.ts
|
|
2
2
|
const locale = { "docs-ui": {
|
|
3
3
|
pasteOptions: {
|
|
4
4
|
special: "Colar especial",
|
|
@@ -157,6 +157,7 @@ const locale = { "docs-ui": {
|
|
|
157
157
|
sectionSetting: "Configurações da seção"
|
|
158
158
|
},
|
|
159
159
|
paragraphSetting: {
|
|
160
|
+
wordWrap: "Permitir quebra de texto latino no meio de uma palavra",
|
|
160
161
|
alignment: "Alinhamento",
|
|
161
162
|
indentation: "Recuo",
|
|
162
163
|
left: "Esquerda",
|
|
@@ -254,5 +255,4 @@ const locale = { "docs-ui": {
|
|
|
254
255
|
}
|
|
255
256
|
} };
|
|
256
257
|
|
|
257
|
-
//#endregion
|
|
258
258
|
export { locale as default };
|
package/lib/locale/ru-RU.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/ru-RU.ts
|
|
2
2
|
const locale = { "docs-ui": {
|
|
3
3
|
pasteOptions: {
|
|
4
4
|
special: "Специальная вставка",
|
|
@@ -157,6 +157,7 @@ const locale = { "docs-ui": {
|
|
|
157
157
|
sectionSetting: "Параметры раздела"
|
|
158
158
|
},
|
|
159
159
|
paragraphSetting: {
|
|
160
|
+
wordWrap: "Разрешить перенос английского текста в середине слова",
|
|
160
161
|
alignment: "Выравнивание",
|
|
161
162
|
indentation: "Отступ",
|
|
162
163
|
left: "Левый",
|
|
@@ -254,5 +255,4 @@ const locale = { "docs-ui": {
|
|
|
254
255
|
}
|
|
255
256
|
} };
|
|
256
257
|
|
|
257
|
-
//#endregion
|
|
258
258
|
export { locale as default };
|
package/lib/locale/sk-SK.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/sk-SK.ts
|
|
2
2
|
const locale = { "docs-ui": {
|
|
3
3
|
pasteOptions: {
|
|
4
4
|
special: "Prilepiť špeciálne",
|
|
@@ -157,6 +157,7 @@ const locale = { "docs-ui": {
|
|
|
157
157
|
sectionSetting: "Nastavenia sekcie"
|
|
158
158
|
},
|
|
159
159
|
paragraphSetting: {
|
|
160
|
+
wordWrap: "Povoliť zalamovanie textu v latinke v strede slova",
|
|
160
161
|
alignment: "Zarovnanie",
|
|
161
162
|
indentation: "Odsadenie",
|
|
162
163
|
left: "Vľavo",
|
|
@@ -254,5 +255,4 @@ const locale = { "docs-ui": {
|
|
|
254
255
|
}
|
|
255
256
|
} };
|
|
256
257
|
|
|
257
|
-
//#endregion
|
|
258
258
|
export { locale as default };
|
package/lib/locale/vi-VN.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/vi-VN.ts
|
|
2
2
|
const locale = { "docs-ui": {
|
|
3
3
|
pasteOptions: {
|
|
4
4
|
special: "Dán đặc biệt",
|
|
@@ -157,6 +157,7 @@ const locale = { "docs-ui": {
|
|
|
157
157
|
sectionSetting: "Cài đặt phần"
|
|
158
158
|
},
|
|
159
159
|
paragraphSetting: {
|
|
160
|
+
wordWrap: "Cho phép ngắt dòng văn bản Latinh ở giữa từ",
|
|
160
161
|
alignment: "Căn chỉnh",
|
|
161
162
|
indentation: "Thụt lề",
|
|
162
163
|
left: "Trái",
|
|
@@ -254,5 +255,4 @@ const locale = { "docs-ui": {
|
|
|
254
255
|
}
|
|
255
256
|
} };
|
|
256
257
|
|
|
257
|
-
//#endregion
|
|
258
258
|
export { locale as default };
|
package/lib/locale/zh-CN.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/zh-CN.ts
|
|
2
2
|
const locale = { "docs-ui": {
|
|
3
3
|
pasteOptions: {
|
|
4
4
|
special: "选择性粘贴",
|
|
@@ -157,6 +157,7 @@ const locale = { "docs-ui": {
|
|
|
157
157
|
sectionSetting: "节设置"
|
|
158
158
|
},
|
|
159
159
|
paragraphSetting: {
|
|
160
|
+
wordWrap: "允许西文在单词中间换行",
|
|
160
161
|
alignment: "对齐方式",
|
|
161
162
|
indentation: "缩进",
|
|
162
163
|
left: "左边距",
|
|
@@ -254,5 +255,4 @@ const locale = { "docs-ui": {
|
|
|
254
255
|
}
|
|
255
256
|
} };
|
|
256
257
|
|
|
257
|
-
//#endregion
|
|
258
258
|
export { locale as default };
|
package/lib/locale/zh-HK.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/zh-HK.ts
|
|
2
2
|
const locale = { "docs-ui": {
|
|
3
3
|
pasteOptions: {
|
|
4
4
|
special: "選擇性貼上",
|
|
@@ -157,6 +157,7 @@ const locale = { "docs-ui": {
|
|
|
157
157
|
sectionSetting: "節設定"
|
|
158
158
|
},
|
|
159
159
|
paragraphSetting: {
|
|
160
|
+
wordWrap: "允許英文字元在字中換行",
|
|
160
161
|
alignment: "對齊",
|
|
161
162
|
indentation: "縮排",
|
|
162
163
|
left: "左",
|
|
@@ -254,5 +255,4 @@ const locale = { "docs-ui": {
|
|
|
254
255
|
}
|
|
255
256
|
} };
|
|
256
257
|
|
|
257
|
-
//#endregion
|
|
258
258
|
export { locale as default };
|
package/lib/locale/zh-TW.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/zh-TW.ts
|
|
2
2
|
const locale = { "docs-ui": {
|
|
3
3
|
pasteOptions: {
|
|
4
4
|
special: "選擇性貼上",
|
|
@@ -157,6 +157,7 @@ const locale = { "docs-ui": {
|
|
|
157
157
|
sectionSetting: "節設定"
|
|
158
158
|
},
|
|
159
159
|
paragraphSetting: {
|
|
160
|
+
wordWrap: "允許英文字元在字中換行",
|
|
160
161
|
alignment: "對齊方式",
|
|
161
162
|
indentation: "縮排",
|
|
162
163
|
left: "左",
|
|
@@ -254,5 +255,4 @@ const locale = { "docs-ui": {
|
|
|
254
255
|
}
|
|
255
256
|
} };
|
|
256
257
|
|
|
257
|
-
//#endregion
|
|
258
258
|
export { locale as default };
|
|
@@ -15,6 +15,6 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import type { ICommand, IParagraphStyle } from '@univerjs/core';
|
|
17
17
|
export interface IDocParagraphSettingCommandParams {
|
|
18
|
-
paragraph?: Partial<Pick<IParagraphStyle, 'hanging' | 'horizontalAlign' | 'spaceBelow' | 'spaceAbove' | 'indentEnd' | 'indentStart' | 'lineSpacing' | 'indentFirstLine' | 'snapToGrid' | 'spacingRule'>>;
|
|
18
|
+
paragraph?: Partial<Pick<IParagraphStyle, 'hanging' | 'horizontalAlign' | 'spaceBelow' | 'spaceAbove' | 'indentEnd' | 'indentStart' | 'lineSpacing' | 'indentFirstLine' | 'snapToGrid' | 'spacingRule' | 'wordWrap'>>;
|
|
19
19
|
}
|
|
20
20
|
export declare const DocParagraphSettingCommand: ICommand<IDocParagraphSettingCommandParams>;
|
|
@@ -32,10 +32,10 @@ export declare function buildDocTableInsertBody(params: IDocTableInsertBodyParam
|
|
|
32
32
|
paragraphs: IParagraph[];
|
|
33
33
|
sectionBreaks: ISectionBreak[];
|
|
34
34
|
textRuns: {
|
|
35
|
-
st: number;
|
|
36
|
-
ed: number;
|
|
37
35
|
sId?: string;
|
|
38
36
|
ts?: import("@univerjs/core").ITextStyle;
|
|
37
|
+
st: number;
|
|
38
|
+
ed: number;
|
|
39
39
|
}[];
|
|
40
40
|
tables: {
|
|
41
41
|
startIndex: number;
|
|
@@ -19,7 +19,6 @@ export declare class ComponentsController extends Disposable {
|
|
|
19
19
|
private readonly _componentManager;
|
|
20
20
|
private readonly _iconManager;
|
|
21
21
|
constructor(_componentManager: ComponentManager, _iconManager: IconManager);
|
|
22
|
-
private _registerParts;
|
|
23
22
|
private _registerIcons;
|
|
24
23
|
private _registerComponents;
|
|
25
24
|
}
|
|
@@ -19,7 +19,6 @@ export declare class MobileComponentsController extends Disposable {
|
|
|
19
19
|
protected readonly _componentManager: ComponentManager;
|
|
20
20
|
private readonly _iconManager;
|
|
21
21
|
constructor(_componentManager: ComponentManager, _iconManager: IconManager);
|
|
22
|
-
private _registerParts;
|
|
23
22
|
private _registerIcons;
|
|
24
23
|
protected _registerComponents(): void;
|
|
25
24
|
}
|
|
@@ -13,12 +13,13 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
+
import { ContextMenuGroup, ContextMenuPosition } from '@univerjs/ui';
|
|
16
17
|
import { DocPasteCommand, DocPasteSpecialCommand } from '../commands/commands/clipboard.command';
|
|
17
18
|
import { DocSelectAllCommand, DocSelectWordCommand } from '../commands/commands/doc-select-all.command';
|
|
18
19
|
import { PasteMenuFactory, PasteSpecialMenuFactory, SelectAllMenuFactory, SelectWordMenuFactory } from './context-menu';
|
|
19
20
|
export declare const mobileMenuSchema: {
|
|
20
|
-
|
|
21
|
-
|
|
21
|
+
[ContextMenuPosition.MAIN_AREA]: {
|
|
22
|
+
[ContextMenuGroup.QUICK]: {
|
|
22
23
|
[DocSelectWordCommand.id]: {
|
|
23
24
|
order: number;
|
|
24
25
|
menuItemFactory: typeof SelectWordMenuFactory;
|
|
@@ -30,7 +31,7 @@ export declare const mobileMenuSchema: {
|
|
|
30
31
|
};
|
|
31
32
|
};
|
|
32
33
|
"docs.contextMenu.caret": {
|
|
33
|
-
|
|
34
|
+
[ContextMenuGroup.QUICK]: {
|
|
34
35
|
[DocPasteCommand.id]: {
|
|
35
36
|
order: number;
|
|
36
37
|
menuItemFactory: typeof PasteMenuFactory;
|
|
@@ -45,7 +46,7 @@ export declare const mobileMenuSchema: {
|
|
|
45
46
|
};
|
|
46
47
|
quickLayout: "tile";
|
|
47
48
|
};
|
|
48
|
-
|
|
49
|
+
[ContextMenuGroup.FORMAT]: {
|
|
49
50
|
[DocPasteSpecialCommand.id]: {
|
|
50
51
|
order: number;
|
|
51
52
|
menuItemFactory: typeof PasteSpecialMenuFactory;
|
|
@@ -17,8 +17,8 @@ import type { IAccessor } from '@univerjs/core';
|
|
|
17
17
|
import type { IMenuButtonItem, IMenuItem, IMenuSelectorItem } from '@univerjs/ui';
|
|
18
18
|
import type { LocaleKey } from '../locale/types';
|
|
19
19
|
export declare const TEXT_COLORS: string[];
|
|
20
|
-
export declare const TEXT_COLOR_SWATCH_ICONS: readonly [
|
|
21
|
-
export declare const BACKGROUND_COLOR_SWATCH_ICONS: readonly [
|
|
20
|
+
export declare const TEXT_COLOR_SWATCH_ICONS: readonly ['DocParagraphTextColorSwatchIcon.0', 'DocParagraphTextColorSwatchIcon.1', 'DocParagraphTextColorSwatchIcon.2', 'DocParagraphTextColorSwatchIcon.3', 'DocParagraphTextColorSwatchIcon.4', 'DocParagraphTextColorSwatchIcon.5', 'DocParagraphTextColorSwatchIcon.6'];
|
|
21
|
+
export declare const BACKGROUND_COLOR_SWATCH_ICONS: readonly ['DocParagraphBackgroundColorSwatchIcon.0', 'DocParagraphBackgroundColorSwatchIcon.1', 'DocParagraphBackgroundColorSwatchIcon.2', 'DocParagraphBackgroundColorSwatchIcon.3', 'DocParagraphBackgroundColorSwatchIcon.4', 'DocParagraphBackgroundColorSwatchIcon.5', 'DocParagraphBackgroundColorSwatchIcon.6', 'DocParagraphBackgroundColorSwatchIcon.7', 'DocParagraphBackgroundColorSwatchIcon.8', 'DocParagraphBackgroundColorSwatchIcon.9', 'DocParagraphBackgroundColorSwatchIcon.10', 'DocParagraphBackgroundColorSwatchIcon.11', 'DocParagraphBackgroundColorSwatchIcon.12', 'DocParagraphBackgroundColorSwatchIcon.13', 'DocParagraphBackgroundColorSwatchIcon.14'];
|
|
22
22
|
export declare function H1HeadingMenuItemFactory(accessor: IAccessor): IMenuItem<LocaleKey>;
|
|
23
23
|
export declare function H2HeadingMenuItemFactory(accessor: IAccessor): IMenuItem<LocaleKey>;
|
|
24
24
|
export declare function H3HeadingMenuItemFactory(accessor: IAccessor): IMenuItem<LocaleKey>;
|
|
@@ -82,7 +82,7 @@ export interface IDocClipboardService {
|
|
|
82
82
|
addClipboardHook(hook: IDocClipboardHook): IDisposable;
|
|
83
83
|
}
|
|
84
84
|
export declare function getTableClipboardBodySlice(body: IDocumentBody, range: IRectRangeWithStyle): IDocumentBody;
|
|
85
|
-
export declare const IDocClipboardService: import("@
|
|
85
|
+
export declare const IDocClipboardService: import("@univerjs/core").IdentifierDecorator<IDocClipboardService>;
|
|
86
86
|
export declare class DocClipboardService extends Disposable implements IDocClipboardService {
|
|
87
87
|
private readonly _univerInstanceService;
|
|
88
88
|
private readonly _logService;
|
|
@@ -49,7 +49,7 @@ export interface IDocClipboardPasteAdapterService {
|
|
|
49
49
|
registerAdapter(adapter: IDocClipboardPasteAdapter): IDisposable;
|
|
50
50
|
getPasteMutationInfos(params: IDocClipboardPasteMutationInfoParams): IDocClipboardPasteMutationInfos;
|
|
51
51
|
}
|
|
52
|
-
export declare const IDocClipboardPasteAdapterService: import("@
|
|
52
|
+
export declare const IDocClipboardPasteAdapterService: import("@univerjs/core").IdentifierDecorator<IDocClipboardPasteAdapterService>;
|
|
53
53
|
export declare class DocClipboardPasteAdapterService implements IDocClipboardPasteAdapterService {
|
|
54
54
|
private readonly _adapters;
|
|
55
55
|
registerAdapter(adapter: IDocClipboardPasteAdapter): IDisposable;
|
|
@@ -20,14 +20,14 @@ export interface IDocPasteStyle {
|
|
|
20
20
|
paragraphStyle?: IParagraphStyle;
|
|
21
21
|
}
|
|
22
22
|
export declare const DOC_PASTE_OPTIONS: readonly [{
|
|
23
|
-
readonly value:
|
|
24
|
-
readonly label:
|
|
23
|
+
readonly value: 'source';
|
|
24
|
+
readonly label: 'docs-ui.pasteOptions.source';
|
|
25
25
|
}, {
|
|
26
|
-
readonly value:
|
|
27
|
-
readonly label:
|
|
26
|
+
readonly value: 'destination';
|
|
27
|
+
readonly label: 'docs-ui.pasteOptions.destination';
|
|
28
28
|
}, {
|
|
29
|
-
readonly value:
|
|
30
|
-
readonly label:
|
|
29
|
+
readonly value: 'text';
|
|
30
|
+
readonly label: 'docs-ui.pasteOptions.text';
|
|
31
31
|
}];
|
|
32
32
|
export declare function getClipboardPlainText(doc: Partial<IDocumentData>): string;
|
|
33
33
|
export declare function applyDocPasteMode(source: Partial<IDocumentData>, mode: DocPasteMode, style: IDocPasteStyle, text?: string): Partial<IDocumentData>;
|
|
@@ -20,6 +20,6 @@ export declare function getBodySliceHtml(doc: IDocumentData, startIndex: number,
|
|
|
20
20
|
export declare function convertBodyToHtml(doc: IDocumentData): string;
|
|
21
21
|
export declare class UDMToHtmlService {
|
|
22
22
|
private readonly _docHtmlExportService?;
|
|
23
|
-
constructor(_docHtmlExportService?: Pick<DocHtmlExportService,
|
|
23
|
+
constructor(_docHtmlExportService?: Pick<DocHtmlExportService, 'transformDocumentForHtmlExport'> | undefined);
|
|
24
24
|
convert(docList: IDocumentData[]): string;
|
|
25
25
|
}
|
|
@@ -26,4 +26,4 @@ export interface IResolvedDocRenderBackground {
|
|
|
26
26
|
docBackgroundFillColor?: string;
|
|
27
27
|
}
|
|
28
28
|
export declare function resolveDocRenderBackground(options: IResolveDocRenderBackgroundOptions): IResolvedDocRenderBackground;
|
|
29
|
-
export declare function getDefaultDocCanvasBackgroundColor(documentFlavor?: DocumentFlavor, isEditor?: boolean): "transparent" | "var(--univer-gray-
|
|
29
|
+
export declare function getDefaultDocCanvasBackgroundColor(documentFlavor?: DocumentFlavor, isEditor?: boolean): "transparent" | "var(--univer-gray-0)" | "var(--univer-gray-100)";
|
|
@@ -85,4 +85,4 @@ export declare class EditorService extends Disposable implements IEditorService,
|
|
|
85
85
|
private _getCurrentEditorUnitId;
|
|
86
86
|
private _getBlank;
|
|
87
87
|
}
|
|
88
|
-
export declare const IEditorService: import("@
|
|
88
|
+
export declare const IEditorService: import("@univerjs/core").IdentifierDecorator<IEditorService>;
|
|
@@ -122,9 +122,9 @@ export declare class Editor extends Disposable implements IEditor {
|
|
|
122
122
|
dispose(disposeDocument?: boolean): void;
|
|
123
123
|
get cancelDefaultResizeListener(): boolean | undefined;
|
|
124
124
|
getRenderConfig(): {
|
|
125
|
-
backScrollOffset?: number | undefined;
|
|
126
125
|
canvasStyle: IEditorCanvasStyle;
|
|
127
126
|
scrollBar: boolean | undefined;
|
|
127
|
+
backScrollOffset?: number | undefined;
|
|
128
128
|
};
|
|
129
129
|
get render(): IRender;
|
|
130
130
|
isReadOnly(): boolean;
|
|
@@ -63,10 +63,10 @@ export declare class TextRange implements IDocRange {
|
|
|
63
63
|
get segmentId(): string;
|
|
64
64
|
get segmentPage(): number;
|
|
65
65
|
getAbsolutePosition(): {
|
|
66
|
-
left: number;
|
|
67
|
-
top: number;
|
|
68
66
|
width: number;
|
|
69
67
|
height: number;
|
|
68
|
+
left: number;
|
|
69
|
+
top: number;
|
|
70
70
|
} | undefined;
|
|
71
71
|
getAnchor(): Nullable<Rect<import("@univerjs/engine-render").IRectProps>>;
|
|
72
72
|
activeStatic(): void;
|
|
@@ -14,4 +14,4 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import type { IDocHeaderFooterOptionsProps } from './DocHeaderFooterOptions';
|
|
17
|
-
export declare const DocHeaderFooterPanel: (props: Pick<IDocHeaderFooterOptionsProps,
|
|
17
|
+
export declare const DocHeaderFooterPanel: (props: Pick<IDocHeaderFooterOptionsProps, 'ContentComponent'>) => import("react").JSX.Element;
|
|
@@ -19,7 +19,7 @@ export declare function useHeaderFooterOptions(unitId: string): {
|
|
|
19
19
|
linkedToPrevious: boolean;
|
|
20
20
|
options: IHeaderFooterProps;
|
|
21
21
|
handleLinkToPreviousChange: (linked: boolean) => Promise<void>;
|
|
22
|
-
handleCheckboxChange: (val: boolean, type:
|
|
23
|
-
handleMarginChange: (val: number, type:
|
|
22
|
+
handleCheckboxChange: (val: boolean, type: 'useFirstPageHeaderFooter' | 'evenAndOddHeaders') => Promise<void>;
|
|
23
|
+
handleMarginChange: (val: number, type: 'marginHeader' | 'marginFooter') => Promise<void>;
|
|
24
24
|
closeHeaderFooter: () => Promise<boolean>;
|
|
25
25
|
};
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
export declare function ParagraphWordWrapSetting(): import("react").JSX.Element;
|
|
@@ -16,7 +16,6 @@
|
|
|
16
16
|
import type { IDocumentBody, IDocumentStyle, IParagraph } from '@univerjs/core';
|
|
17
17
|
import { SpacingRule } from '@univerjs/core';
|
|
18
18
|
export declare function resolveParagraphsForSettingPanel(paragraphs: IParagraph[], body: IDocumentBody, documentStyle: IDocumentStyle): {
|
|
19
|
-
paragraphStyle: import("@univerjs/core").IParagraphStyle;
|
|
20
19
|
startIndex: number;
|
|
21
20
|
paragraphId: string;
|
|
22
21
|
headingCollapsed?: boolean;
|
|
@@ -24,9 +23,9 @@ export declare function resolveParagraphsForSettingPanel(paragraphs: IParagraph[
|
|
|
24
23
|
bullet?: import("@univerjs/core").IBullet;
|
|
25
24
|
sourceBullet?: import("@univerjs/core").IBullet | null;
|
|
26
25
|
directBullet?: import("@univerjs/core").IBullet | null;
|
|
26
|
+
paragraphStyle: import("@univerjs/core").IParagraphStyle;
|
|
27
27
|
}[];
|
|
28
28
|
export declare const useCurrentParagraph: () => import("@univerjs/core").IParagraphRange[] | {
|
|
29
|
-
paragraphStyle: import("@univerjs/core").IParagraphStyle;
|
|
30
29
|
startIndex: number;
|
|
31
30
|
paragraphId: string;
|
|
32
31
|
headingCollapsed?: boolean;
|
|
@@ -34,6 +33,7 @@ export declare const useCurrentParagraph: () => import("@univerjs/core").IParagr
|
|
|
34
33
|
bullet?: import("@univerjs/core").IBullet;
|
|
35
34
|
sourceBullet?: import("@univerjs/core").IBullet | null;
|
|
36
35
|
directBullet?: import("@univerjs/core").IBullet | null;
|
|
36
|
+
paragraphStyle: import("@univerjs/core").IParagraphStyle;
|
|
37
37
|
}[];
|
|
38
38
|
export declare const useFirstParagraphHorizontalAlign: (paragraph: IParagraph[], defaultValue: string) => readonly [string, (v: string) => Promise<boolean>];
|
|
39
39
|
export declare const useFirstParagraphIndentStart: (paragraph: IParagraph[]) => readonly [number, (v: number) => Promise<boolean>];
|