@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.
Files changed (123) hide show
  1. package/lib/cjs/index.js +2333 -789
  2. package/lib/cjs/locale/ar-SA.js +41 -19
  3. package/lib/cjs/locale/ca-ES.js +40 -18
  4. package/lib/cjs/locale/de-DE.js +41 -19
  5. package/lib/cjs/locale/en-US.js +24 -2
  6. package/lib/cjs/locale/es-ES.js +41 -19
  7. package/lib/cjs/locale/fa-IR.js +41 -19
  8. package/lib/cjs/locale/fr-FR.js +41 -19
  9. package/lib/cjs/locale/id-ID.js +40 -18
  10. package/lib/cjs/locale/it-IT.js +41 -19
  11. package/lib/cjs/locale/ja-JP.js +41 -19
  12. package/lib/cjs/locale/ko-KR.js +41 -19
  13. package/lib/cjs/locale/pl-PL.js +41 -19
  14. package/lib/cjs/locale/pt-BR.js +40 -18
  15. package/lib/cjs/locale/ru-RU.js +41 -19
  16. package/lib/cjs/locale/sk-SK.js +41 -19
  17. package/lib/cjs/locale/vi-VN.js +41 -19
  18. package/lib/cjs/locale/zh-CN.js +24 -2
  19. package/lib/cjs/locale/zh-HK.js +24 -2
  20. package/lib/cjs/locale/zh-TW.js +24 -2
  21. package/lib/es/index.js +2254 -782
  22. package/lib/es/locale/ar-SA.js +41 -19
  23. package/lib/es/locale/ca-ES.js +40 -18
  24. package/lib/es/locale/de-DE.js +41 -19
  25. package/lib/es/locale/en-US.js +24 -2
  26. package/lib/es/locale/es-ES.js +41 -19
  27. package/lib/es/locale/fa-IR.js +41 -19
  28. package/lib/es/locale/fr-FR.js +41 -19
  29. package/lib/es/locale/id-ID.js +40 -18
  30. package/lib/es/locale/it-IT.js +41 -19
  31. package/lib/es/locale/ja-JP.js +41 -19
  32. package/lib/es/locale/ko-KR.js +41 -19
  33. package/lib/es/locale/pl-PL.js +41 -19
  34. package/lib/es/locale/pt-BR.js +40 -18
  35. package/lib/es/locale/ru-RU.js +41 -19
  36. package/lib/es/locale/sk-SK.js +41 -19
  37. package/lib/es/locale/vi-VN.js +41 -19
  38. package/lib/es/locale/zh-CN.js +24 -2
  39. package/lib/es/locale/zh-HK.js +24 -2
  40. package/lib/es/locale/zh-TW.js +24 -2
  41. package/lib/index.css +8 -0
  42. package/lib/index.js +2254 -782
  43. package/lib/locale/ar-SA.js +41 -19
  44. package/lib/locale/ca-ES.js +40 -18
  45. package/lib/locale/de-DE.js +41 -19
  46. package/lib/locale/en-US.js +24 -2
  47. package/lib/locale/es-ES.js +41 -19
  48. package/lib/locale/fa-IR.js +41 -19
  49. package/lib/locale/fr-FR.js +41 -19
  50. package/lib/locale/id-ID.js +40 -18
  51. package/lib/locale/it-IT.js +41 -19
  52. package/lib/locale/ja-JP.js +41 -19
  53. package/lib/locale/ko-KR.js +41 -19
  54. package/lib/locale/pl-PL.js +41 -19
  55. package/lib/locale/pt-BR.js +40 -18
  56. package/lib/locale/ru-RU.js +41 -19
  57. package/lib/locale/sk-SK.js +41 -19
  58. package/lib/locale/vi-VN.js +41 -19
  59. package/lib/locale/zh-CN.js +24 -2
  60. package/lib/locale/zh-HK.js +24 -2
  61. package/lib/locale/zh-TW.js +24 -2
  62. package/lib/types/commands/commands/break-line.command.d.ts +4 -3
  63. package/lib/types/commands/commands/clipboard.inner.command.d.ts +1 -2
  64. package/lib/types/commands/commands/doc-block-move.command.d.ts +13 -1
  65. package/lib/types/commands/commands/doc-header-footer.command.d.ts +1 -0
  66. package/lib/types/commands/commands/doc-horizontal-line.command.d.ts +1 -0
  67. package/lib/types/commands/commands/doc-paragraph-setting.command.d.ts +1 -2
  68. package/lib/types/commands/commands/replace-content.command.d.ts +2 -1
  69. package/lib/types/{basics/transform-position.d.ts → commands/operations/doc-section-setting-panel.operation.d.ts} +2 -3
  70. package/lib/types/controllers/doc-section-setting.controller.d.ts +24 -0
  71. package/lib/types/controllers/render-controllers/doc-input.controller.d.ts +4 -1
  72. package/lib/types/controllers/render-controllers/doc-selection-render.controller.d.ts +5 -1
  73. package/lib/types/controllers/render-controllers/doc.render-controller.d.ts +4 -1
  74. package/lib/types/controllers/render-controllers/zoom.render-controller.d.ts +3 -1
  75. package/lib/types/controllers/ui.controller.d.ts +4 -1
  76. package/lib/types/embed-docs-custom-block-bleed.d.ts +30 -0
  77. package/lib/types/embed-docs-custom-block-refresh.d.ts +28 -0
  78. package/lib/types/embed-docs-custom-block-scroll.d.ts +19 -0
  79. package/lib/types/embed-host-anchor.d.ts +45 -0
  80. package/lib/types/index.d.ts +17 -3
  81. package/lib/types/locale/en-US.d.ts +20 -0
  82. package/lib/types/menu/context-menu.d.ts +1 -0
  83. package/lib/types/menu/menu.d.ts +1 -1
  84. package/lib/types/plugin.d.ts +3 -4
  85. package/lib/types/services/clipboard/clipboard.service.d.ts +7 -3
  86. package/lib/types/services/clipboard/doc-paste-mutation-adapter.service.d.ts +47 -0
  87. package/lib/types/services/clipboard/html-to-udm/converter.d.ts +1 -0
  88. package/lib/types/services/doc-embed-integration.service.d.ts +63 -0
  89. package/lib/types/services/doc-popup-manager.service.d.ts +2 -0
  90. package/lib/types/services/docs-render.service.d.ts +1 -1
  91. package/lib/types/services/float-menu.service.d.ts +2 -4
  92. package/lib/types/services/selection/convert-text-range.d.ts +3 -0
  93. package/lib/types/services/selection/doc-selection-render.service.d.ts +19 -4
  94. package/lib/types/utils/section-header-footer.d.ts +26 -0
  95. package/lib/types/views/ParagraphMenu.d.ts +7 -3
  96. package/lib/types/views/float-toolbar/FloatToolbar.d.ts +1 -0
  97. package/lib/types/views/paragraph-setting/hook/utils.d.ts +13 -3
  98. package/lib/types/views/paragraph-setting/line-spacing.d.ts +4 -4
  99. package/lib/types/views/section-setting/Setting.d.ts +16 -0
  100. package/lib/types/views/section-setting/component-name.d.ts +16 -0
  101. package/lib/types/views/section-setting/index.d.ts +16 -0
  102. package/lib/types/views/section-setting/use-section-setting.d.ts +43 -0
  103. package/lib/umd/index.js +9 -9
  104. package/lib/umd/locale/ar-SA.js +1 -1
  105. package/lib/umd/locale/ca-ES.js +1 -1
  106. package/lib/umd/locale/de-DE.js +1 -1
  107. package/lib/umd/locale/en-US.js +1 -1
  108. package/lib/umd/locale/es-ES.js +1 -1
  109. package/lib/umd/locale/fa-IR.js +1 -1
  110. package/lib/umd/locale/fr-FR.js +1 -1
  111. package/lib/umd/locale/id-ID.js +1 -1
  112. package/lib/umd/locale/it-IT.js +1 -1
  113. package/lib/umd/locale/ja-JP.js +1 -1
  114. package/lib/umd/locale/ko-KR.js +1 -1
  115. package/lib/umd/locale/pl-PL.js +1 -1
  116. package/lib/umd/locale/pt-BR.js +1 -1
  117. package/lib/umd/locale/ru-RU.js +1 -1
  118. package/lib/umd/locale/sk-SK.js +1 -1
  119. package/lib/umd/locale/vi-VN.js +1 -1
  120. package/lib/umd/locale/zh-CN.js +1 -1
  121. package/lib/umd/locale/zh-HK.js +1 -1
  122. package/lib/umd/locale/zh-TW.js +1 -1
  123. package/package.json +11 -12
@@ -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: "Heading 1",
71
- heading2: "Heading 2",
72
- heading3: "Heading 3",
73
- heading4: "Heading 4",
74
- heading5: "Heading 5",
75
- normalText: "Type text or press \"/\" for commands",
76
- listItem: "Item"
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
- menu: { paragraphSetting: "Paragraph Setting" },
80
- slider: { paragraphSetting: "Paragraph Setting" },
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: "Align and indent",
110
- align: "Align",
111
- indent: "Indent",
112
- color: "Colors",
113
- increase: "Increase",
114
- decrease: "Decrease",
115
- increaseIndent: "Increase indent",
116
- decreaseIndent: "Decrease indent",
117
- defaultTextColor: "Default text color",
118
- noBackground: "No background"
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",
@@ -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
- menu: { paragraphSetting: "段落设置" },
80
- slider: { paragraphSetting: "段落设置" },
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: {
@@ -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
- menu: { paragraphSetting: "Paragraph Setting" },
80
- slider: { paragraphSetting: "Paragraph Setting" },
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: {
@@ -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
- menu: { paragraphSetting: "Paragraph Setting" },
80
- slider: { paragraphSetting: "Paragraph Setting" },
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: {