@univerjs/docs-ui 1.0.0-alpha.2 → 1.0.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +2333 -789
- package/lib/cjs/locale/ar-SA.js +41 -19
- package/lib/cjs/locale/ca-ES.js +40 -18
- package/lib/cjs/locale/de-DE.js +41 -19
- package/lib/cjs/locale/en-US.js +24 -2
- package/lib/cjs/locale/es-ES.js +41 -19
- package/lib/cjs/locale/fa-IR.js +41 -19
- package/lib/cjs/locale/fr-FR.js +41 -19
- package/lib/cjs/locale/id-ID.js +40 -18
- package/lib/cjs/locale/it-IT.js +41 -19
- package/lib/cjs/locale/ja-JP.js +41 -19
- package/lib/cjs/locale/ko-KR.js +41 -19
- package/lib/cjs/locale/pl-PL.js +41 -19
- package/lib/cjs/locale/pt-BR.js +40 -18
- package/lib/cjs/locale/ru-RU.js +41 -19
- package/lib/cjs/locale/sk-SK.js +41 -19
- package/lib/cjs/locale/vi-VN.js +41 -19
- package/lib/cjs/locale/zh-CN.js +24 -2
- package/lib/cjs/locale/zh-HK.js +24 -2
- package/lib/cjs/locale/zh-TW.js +24 -2
- package/lib/es/index.js +2254 -782
- package/lib/es/locale/ar-SA.js +41 -19
- package/lib/es/locale/ca-ES.js +40 -18
- package/lib/es/locale/de-DE.js +41 -19
- package/lib/es/locale/en-US.js +24 -2
- package/lib/es/locale/es-ES.js +41 -19
- package/lib/es/locale/fa-IR.js +41 -19
- package/lib/es/locale/fr-FR.js +41 -19
- package/lib/es/locale/id-ID.js +40 -18
- package/lib/es/locale/it-IT.js +41 -19
- package/lib/es/locale/ja-JP.js +41 -19
- package/lib/es/locale/ko-KR.js +41 -19
- package/lib/es/locale/pl-PL.js +41 -19
- package/lib/es/locale/pt-BR.js +40 -18
- package/lib/es/locale/ru-RU.js +41 -19
- package/lib/es/locale/sk-SK.js +41 -19
- package/lib/es/locale/vi-VN.js +41 -19
- package/lib/es/locale/zh-CN.js +24 -2
- package/lib/es/locale/zh-HK.js +24 -2
- package/lib/es/locale/zh-TW.js +24 -2
- package/lib/index.css +8 -0
- package/lib/index.js +2254 -782
- package/lib/locale/ar-SA.js +41 -19
- package/lib/locale/ca-ES.js +40 -18
- package/lib/locale/de-DE.js +41 -19
- package/lib/locale/en-US.js +24 -2
- package/lib/locale/es-ES.js +41 -19
- package/lib/locale/fa-IR.js +41 -19
- package/lib/locale/fr-FR.js +41 -19
- package/lib/locale/id-ID.js +40 -18
- package/lib/locale/it-IT.js +41 -19
- package/lib/locale/ja-JP.js +41 -19
- package/lib/locale/ko-KR.js +41 -19
- package/lib/locale/pl-PL.js +41 -19
- package/lib/locale/pt-BR.js +40 -18
- package/lib/locale/ru-RU.js +41 -19
- package/lib/locale/sk-SK.js +41 -19
- package/lib/locale/vi-VN.js +41 -19
- package/lib/locale/zh-CN.js +24 -2
- package/lib/locale/zh-HK.js +24 -2
- package/lib/locale/zh-TW.js +24 -2
- package/lib/types/commands/commands/break-line.command.d.ts +4 -3
- package/lib/types/commands/commands/clipboard.inner.command.d.ts +1 -2
- package/lib/types/commands/commands/doc-block-move.command.d.ts +13 -1
- package/lib/types/commands/commands/doc-header-footer.command.d.ts +1 -0
- package/lib/types/commands/commands/doc-horizontal-line.command.d.ts +1 -0
- package/lib/types/commands/commands/doc-paragraph-setting.command.d.ts +1 -2
- package/lib/types/commands/commands/replace-content.command.d.ts +2 -1
- package/lib/types/{basics/transform-position.d.ts → commands/operations/doc-section-setting-panel.operation.d.ts} +2 -3
- package/lib/types/controllers/doc-section-setting.controller.d.ts +24 -0
- package/lib/types/controllers/render-controllers/doc-input.controller.d.ts +4 -1
- package/lib/types/controllers/render-controllers/doc-selection-render.controller.d.ts +5 -1
- package/lib/types/controllers/render-controllers/doc.render-controller.d.ts +4 -1
- package/lib/types/controllers/render-controllers/zoom.render-controller.d.ts +3 -1
- package/lib/types/controllers/ui.controller.d.ts +4 -1
- package/lib/types/embed-docs-custom-block-bleed.d.ts +30 -0
- package/lib/types/embed-docs-custom-block-refresh.d.ts +28 -0
- package/lib/types/embed-docs-custom-block-scroll.d.ts +19 -0
- package/lib/types/embed-host-anchor.d.ts +45 -0
- package/lib/types/index.d.ts +17 -3
- package/lib/types/locale/en-US.d.ts +20 -0
- package/lib/types/menu/context-menu.d.ts +1 -0
- package/lib/types/menu/menu.d.ts +1 -1
- package/lib/types/plugin.d.ts +3 -4
- package/lib/types/services/clipboard/clipboard.service.d.ts +7 -3
- package/lib/types/services/clipboard/doc-paste-mutation-adapter.service.d.ts +47 -0
- package/lib/types/services/clipboard/html-to-udm/converter.d.ts +1 -0
- package/lib/types/services/doc-embed-integration.service.d.ts +63 -0
- package/lib/types/services/doc-popup-manager.service.d.ts +2 -0
- package/lib/types/services/docs-render.service.d.ts +1 -1
- package/lib/types/services/float-menu.service.d.ts +2 -4
- package/lib/types/services/selection/convert-text-range.d.ts +3 -0
- package/lib/types/services/selection/doc-selection-render.service.d.ts +19 -4
- package/lib/types/utils/section-header-footer.d.ts +26 -0
- package/lib/types/views/ParagraphMenu.d.ts +7 -3
- package/lib/types/views/float-toolbar/FloatToolbar.d.ts +1 -0
- package/lib/types/views/paragraph-setting/hook/utils.d.ts +13 -3
- package/lib/types/views/paragraph-setting/line-spacing.d.ts +4 -4
- package/lib/types/views/section-setting/Setting.d.ts +16 -0
- package/lib/types/views/section-setting/component-name.d.ts +16 -0
- package/lib/types/views/section-setting/index.d.ts +16 -0
- package/lib/types/views/section-setting/use-section-setting.d.ts +43 -0
- package/lib/umd/index.js +9 -9
- 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 -12
package/lib/cjs/locale/vi-VN.js
CHANGED
|
@@ -56,6 +56,7 @@ const locale = { "docs-ui": {
|
|
|
56
56
|
deleteTable: "Xóa bảng"
|
|
57
57
|
},
|
|
58
58
|
headerFooter: {
|
|
59
|
+
linkToPrevious: "Link to previous",
|
|
59
60
|
header: "Đầu trang",
|
|
60
61
|
footer: "Chân trang",
|
|
61
62
|
panel: "Cài đặt đầu trang và chân trang",
|
|
@@ -67,17 +68,24 @@ const locale = { "docs-ui": {
|
|
|
67
68
|
disableText: "Cài đặt đầu trang và chân trang không khả dụng"
|
|
68
69
|
},
|
|
69
70
|
placeholder: {
|
|
70
|
-
heading1: "
|
|
71
|
-
heading2: "
|
|
72
|
-
heading3: "
|
|
73
|
-
heading4: "
|
|
74
|
-
heading5: "
|
|
75
|
-
normalText: "
|
|
76
|
-
listItem: "
|
|
71
|
+
heading1: "Tiêu đề 1",
|
|
72
|
+
heading2: "Tiêu đề 2",
|
|
73
|
+
heading3: "Tiêu đề 3",
|
|
74
|
+
heading4: "Tiêu đề 4",
|
|
75
|
+
heading5: "Tiêu đề 5",
|
|
76
|
+
normalText: "Nhập văn bản hoặc nhấn \"/\" để dùng lệnh",
|
|
77
|
+
listItem: "Mục"
|
|
77
78
|
},
|
|
78
79
|
doc: {
|
|
79
|
-
|
|
80
|
-
|
|
80
|
+
blockMenu: { dragBlock: "Kéo khối" },
|
|
81
|
+
menu: {
|
|
82
|
+
paragraphSetting: "Paragraph Setting",
|
|
83
|
+
sectionSetting: "Section Settings"
|
|
84
|
+
},
|
|
85
|
+
slider: {
|
|
86
|
+
paragraphSetting: "Paragraph Setting",
|
|
87
|
+
sectionSetting: "Section Settings"
|
|
88
|
+
},
|
|
81
89
|
paragraphSetting: {
|
|
82
90
|
alignment: "Alignment",
|
|
83
91
|
indentation: "Indentation",
|
|
@@ -93,6 +101,20 @@ const locale = { "docs-ui": {
|
|
|
93
101
|
atLeast: "At Least (px)",
|
|
94
102
|
exactly: "Exactly (px)",
|
|
95
103
|
fixedValue: "Fixed Value(px)"
|
|
104
|
+
},
|
|
105
|
+
sectionSetting: {
|
|
106
|
+
selectedSections: "{0} sections selected",
|
|
107
|
+
columnCount: "Column count",
|
|
108
|
+
columnGap: "Column gap",
|
|
109
|
+
columnSeparator: "Separator",
|
|
110
|
+
none: "None",
|
|
111
|
+
betweenColumns: "Between columns",
|
|
112
|
+
sectionStart: "Section start",
|
|
113
|
+
unspecified: "Unspecified",
|
|
114
|
+
continuous: "Continuous",
|
|
115
|
+
nextPage: "Next page",
|
|
116
|
+
evenPage: "Even page",
|
|
117
|
+
oddPage: "Odd page"
|
|
96
118
|
}
|
|
97
119
|
},
|
|
98
120
|
rightClick: {
|
|
@@ -106,16 +128,16 @@ const locale = { "docs-ui": {
|
|
|
106
128
|
insertBellow: "Chèn dưới"
|
|
107
129
|
},
|
|
108
130
|
paragraphMenu: {
|
|
109
|
-
alignAndIndent: "
|
|
110
|
-
align: "
|
|
111
|
-
indent: "
|
|
112
|
-
color: "
|
|
113
|
-
increase: "
|
|
114
|
-
decrease: "
|
|
115
|
-
increaseIndent: "
|
|
116
|
-
decreaseIndent: "
|
|
117
|
-
defaultTextColor: "
|
|
118
|
-
noBackground: "
|
|
131
|
+
alignAndIndent: "Căn chỉnh và thụt lề",
|
|
132
|
+
align: "Căn chỉnh",
|
|
133
|
+
indent: "Thụt lề",
|
|
134
|
+
color: "Màu sắc",
|
|
135
|
+
increase: "Tăng",
|
|
136
|
+
decrease: "Giảm",
|
|
137
|
+
increaseIndent: "Tăng thụt lề",
|
|
138
|
+
decreaseIndent: "Giảm thụt lề",
|
|
139
|
+
defaultTextColor: "Màu văn bản mặc định",
|
|
140
|
+
noBackground: "Không có nền"
|
|
119
141
|
},
|
|
120
142
|
"page-settings": {
|
|
121
143
|
"document-setting": "Cài đặt tài liệu",
|
package/lib/cjs/locale/zh-CN.js
CHANGED
|
@@ -56,6 +56,7 @@ const locale = { "docs-ui": {
|
|
|
56
56
|
deleteTable: "删除表格"
|
|
57
57
|
},
|
|
58
58
|
headerFooter: {
|
|
59
|
+
linkToPrevious: "链接到上一节",
|
|
59
60
|
header: "页眉",
|
|
60
61
|
footer: "页脚",
|
|
61
62
|
panel: "页眉页脚设置",
|
|
@@ -76,8 +77,15 @@ const locale = { "docs-ui": {
|
|
|
76
77
|
listItem: "项目"
|
|
77
78
|
},
|
|
78
79
|
doc: {
|
|
79
|
-
|
|
80
|
-
|
|
80
|
+
blockMenu: { dragBlock: "拖动块" },
|
|
81
|
+
menu: {
|
|
82
|
+
paragraphSetting: "段落设置",
|
|
83
|
+
sectionSetting: "节设置"
|
|
84
|
+
},
|
|
85
|
+
slider: {
|
|
86
|
+
paragraphSetting: "段落设置",
|
|
87
|
+
sectionSetting: "节设置"
|
|
88
|
+
},
|
|
81
89
|
paragraphSetting: {
|
|
82
90
|
alignment: "对齐方式",
|
|
83
91
|
indentation: "缩进",
|
|
@@ -93,6 +101,20 @@ const locale = { "docs-ui": {
|
|
|
93
101
|
atLeast: "至少值(px)",
|
|
94
102
|
exactly: "固定值(px)",
|
|
95
103
|
fixedValue: "固定值(px)"
|
|
104
|
+
},
|
|
105
|
+
sectionSetting: {
|
|
106
|
+
selectedSections: "已选择 {0} 个节",
|
|
107
|
+
columnCount: "栏数",
|
|
108
|
+
columnGap: "栏间距",
|
|
109
|
+
columnSeparator: "分隔线",
|
|
110
|
+
none: "无",
|
|
111
|
+
betweenColumns: "栏间分隔线",
|
|
112
|
+
sectionStart: "节起始位置",
|
|
113
|
+
unspecified: "未指定",
|
|
114
|
+
continuous: "连续",
|
|
115
|
+
nextPage: "下一页",
|
|
116
|
+
evenPage: "偶数页",
|
|
117
|
+
oddPage: "奇数页"
|
|
96
118
|
}
|
|
97
119
|
},
|
|
98
120
|
rightClick: {
|
package/lib/cjs/locale/zh-HK.js
CHANGED
|
@@ -56,6 +56,7 @@ const locale = { "docs-ui": {
|
|
|
56
56
|
deleteTable: "Delete table"
|
|
57
57
|
},
|
|
58
58
|
headerFooter: {
|
|
59
|
+
linkToPrevious: "連結到上一節",
|
|
59
60
|
header: "頁眉",
|
|
60
61
|
footer: "頁腳",
|
|
61
62
|
panel: "頁眉頁腳設置",
|
|
@@ -76,8 +77,15 @@ const locale = { "docs-ui": {
|
|
|
76
77
|
listItem: "項目"
|
|
77
78
|
},
|
|
78
79
|
doc: {
|
|
79
|
-
|
|
80
|
-
|
|
80
|
+
blockMenu: { dragBlock: "拖曳區塊" },
|
|
81
|
+
menu: {
|
|
82
|
+
paragraphSetting: "Paragraph Setting",
|
|
83
|
+
sectionSetting: "Section Settings"
|
|
84
|
+
},
|
|
85
|
+
slider: {
|
|
86
|
+
paragraphSetting: "Paragraph Setting",
|
|
87
|
+
sectionSetting: "Section Settings"
|
|
88
|
+
},
|
|
81
89
|
paragraphSetting: {
|
|
82
90
|
alignment: "Alignment",
|
|
83
91
|
indentation: "Indentation",
|
|
@@ -93,6 +101,20 @@ const locale = { "docs-ui": {
|
|
|
93
101
|
atLeast: "At Least (px)",
|
|
94
102
|
exactly: "Exactly (px)",
|
|
95
103
|
fixedValue: "Fixed Value(px)"
|
|
104
|
+
},
|
|
105
|
+
sectionSetting: {
|
|
106
|
+
selectedSections: "{0} sections selected",
|
|
107
|
+
columnCount: "Column count",
|
|
108
|
+
columnGap: "Column gap",
|
|
109
|
+
columnSeparator: "Separator",
|
|
110
|
+
none: "None",
|
|
111
|
+
betweenColumns: "Between columns",
|
|
112
|
+
sectionStart: "Section start",
|
|
113
|
+
unspecified: "Unspecified",
|
|
114
|
+
continuous: "Continuous",
|
|
115
|
+
nextPage: "Next page",
|
|
116
|
+
evenPage: "Even page",
|
|
117
|
+
oddPage: "Odd page"
|
|
96
118
|
}
|
|
97
119
|
},
|
|
98
120
|
rightClick: {
|
package/lib/cjs/locale/zh-TW.js
CHANGED
|
@@ -56,6 +56,7 @@ const locale = { "docs-ui": {
|
|
|
56
56
|
deleteTable: "刪除表格"
|
|
57
57
|
},
|
|
58
58
|
headerFooter: {
|
|
59
|
+
linkToPrevious: "連結到上一節",
|
|
59
60
|
header: "頁眉",
|
|
60
61
|
footer: "頁腳",
|
|
61
62
|
panel: "頁眉頁腳設置",
|
|
@@ -76,8 +77,15 @@ const locale = { "docs-ui": {
|
|
|
76
77
|
listItem: "項目"
|
|
77
78
|
},
|
|
78
79
|
doc: {
|
|
79
|
-
|
|
80
|
-
|
|
80
|
+
blockMenu: { dragBlock: "拖曳區塊" },
|
|
81
|
+
menu: {
|
|
82
|
+
paragraphSetting: "Paragraph Setting",
|
|
83
|
+
sectionSetting: "Section Settings"
|
|
84
|
+
},
|
|
85
|
+
slider: {
|
|
86
|
+
paragraphSetting: "Paragraph Setting",
|
|
87
|
+
sectionSetting: "Section Settings"
|
|
88
|
+
},
|
|
81
89
|
paragraphSetting: {
|
|
82
90
|
alignment: "Alignment",
|
|
83
91
|
indentation: "Indentation",
|
|
@@ -93,6 +101,20 @@ const locale = { "docs-ui": {
|
|
|
93
101
|
atLeast: "At Least (px)",
|
|
94
102
|
exactly: "Exactly (px)",
|
|
95
103
|
fixedValue: "Fixed Value(px)"
|
|
104
|
+
},
|
|
105
|
+
sectionSetting: {
|
|
106
|
+
selectedSections: "{0} sections selected",
|
|
107
|
+
columnCount: "Column count",
|
|
108
|
+
columnGap: "Column gap",
|
|
109
|
+
columnSeparator: "Separator",
|
|
110
|
+
none: "None",
|
|
111
|
+
betweenColumns: "Between columns",
|
|
112
|
+
sectionStart: "Section start",
|
|
113
|
+
unspecified: "Unspecified",
|
|
114
|
+
continuous: "Continuous",
|
|
115
|
+
nextPage: "Next page",
|
|
116
|
+
evenPage: "Even page",
|
|
117
|
+
oddPage: "Odd page"
|
|
96
118
|
}
|
|
97
119
|
},
|
|
98
120
|
rightClick: {
|