@univerjs/docs-ui 1.0.0-alpha.2 → 1.0.0-alpha.3

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 (120) hide show
  1. package/lib/cjs/index.js +1924 -480
  2. package/lib/cjs/locale/ar-SA.js +40 -19
  3. package/lib/cjs/locale/ca-ES.js +39 -18
  4. package/lib/cjs/locale/de-DE.js +40 -19
  5. package/lib/cjs/locale/en-US.js +23 -2
  6. package/lib/cjs/locale/es-ES.js +40 -19
  7. package/lib/cjs/locale/fa-IR.js +40 -19
  8. package/lib/cjs/locale/fr-FR.js +40 -19
  9. package/lib/cjs/locale/id-ID.js +39 -18
  10. package/lib/cjs/locale/it-IT.js +40 -19
  11. package/lib/cjs/locale/ja-JP.js +40 -19
  12. package/lib/cjs/locale/ko-KR.js +40 -19
  13. package/lib/cjs/locale/pl-PL.js +40 -19
  14. package/lib/cjs/locale/pt-BR.js +39 -18
  15. package/lib/cjs/locale/ru-RU.js +40 -19
  16. package/lib/cjs/locale/sk-SK.js +40 -19
  17. package/lib/cjs/locale/vi-VN.js +40 -19
  18. package/lib/cjs/locale/zh-CN.js +23 -2
  19. package/lib/cjs/locale/zh-HK.js +23 -2
  20. package/lib/cjs/locale/zh-TW.js +23 -2
  21. package/lib/es/index.js +1845 -476
  22. package/lib/es/locale/ar-SA.js +40 -19
  23. package/lib/es/locale/ca-ES.js +39 -18
  24. package/lib/es/locale/de-DE.js +40 -19
  25. package/lib/es/locale/en-US.js +23 -2
  26. package/lib/es/locale/es-ES.js +40 -19
  27. package/lib/es/locale/fa-IR.js +40 -19
  28. package/lib/es/locale/fr-FR.js +40 -19
  29. package/lib/es/locale/id-ID.js +39 -18
  30. package/lib/es/locale/it-IT.js +40 -19
  31. package/lib/es/locale/ja-JP.js +40 -19
  32. package/lib/es/locale/ko-KR.js +40 -19
  33. package/lib/es/locale/pl-PL.js +40 -19
  34. package/lib/es/locale/pt-BR.js +39 -18
  35. package/lib/es/locale/ru-RU.js +40 -19
  36. package/lib/es/locale/sk-SK.js +40 -19
  37. package/lib/es/locale/vi-VN.js +40 -19
  38. package/lib/es/locale/zh-CN.js +23 -2
  39. package/lib/es/locale/zh-HK.js +23 -2
  40. package/lib/es/locale/zh-TW.js +23 -2
  41. package/lib/index.css +8 -0
  42. package/lib/index.js +1845 -476
  43. package/lib/locale/ar-SA.js +40 -19
  44. package/lib/locale/ca-ES.js +39 -18
  45. package/lib/locale/de-DE.js +40 -19
  46. package/lib/locale/en-US.js +23 -2
  47. package/lib/locale/es-ES.js +40 -19
  48. package/lib/locale/fa-IR.js +40 -19
  49. package/lib/locale/fr-FR.js +40 -19
  50. package/lib/locale/id-ID.js +39 -18
  51. package/lib/locale/it-IT.js +40 -19
  52. package/lib/locale/ja-JP.js +40 -19
  53. package/lib/locale/ko-KR.js +40 -19
  54. package/lib/locale/pl-PL.js +40 -19
  55. package/lib/locale/pt-BR.js +39 -18
  56. package/lib/locale/ru-RU.js +40 -19
  57. package/lib/locale/sk-SK.js +40 -19
  58. package/lib/locale/vi-VN.js +40 -19
  59. package/lib/locale/zh-CN.js +23 -2
  60. package/lib/locale/zh-HK.js +23 -2
  61. package/lib/locale/zh-TW.js +23 -2
  62. package/lib/types/commands/commands/break-line.command.d.ts +4 -3
  63. package/lib/types/commands/commands/doc-block-move.command.d.ts +13 -1
  64. package/lib/types/commands/commands/doc-header-footer.command.d.ts +1 -0
  65. package/lib/types/commands/commands/doc-horizontal-line.command.d.ts +1 -0
  66. package/lib/types/commands/commands/doc-paragraph-setting.command.d.ts +1 -2
  67. package/lib/types/commands/commands/replace-content.command.d.ts +2 -1
  68. package/lib/types/commands/operations/doc-section-setting-panel.operation.d.ts +17 -0
  69. package/lib/types/controllers/doc-section-setting.controller.d.ts +24 -0
  70. package/lib/types/controllers/render-controllers/doc-input.controller.d.ts +4 -1
  71. package/lib/types/controllers/render-controllers/doc-selection-render.controller.d.ts +5 -1
  72. package/lib/types/controllers/render-controllers/doc.render-controller.d.ts +4 -1
  73. package/lib/types/controllers/render-controllers/zoom.render-controller.d.ts +3 -1
  74. package/lib/types/controllers/ui.controller.d.ts +4 -1
  75. package/lib/types/embed-docs-custom-block-bleed.d.ts +30 -0
  76. package/lib/types/embed-docs-custom-block-refresh.d.ts +28 -0
  77. package/lib/types/embed-docs-custom-block-scroll.d.ts +19 -0
  78. package/lib/types/embed-host-anchor.d.ts +45 -0
  79. package/lib/types/index.d.ts +16 -1
  80. package/lib/types/locale/en-US.d.ts +17 -0
  81. package/lib/types/menu/context-menu.d.ts +1 -0
  82. package/lib/types/menu/menu.d.ts +1 -1
  83. package/lib/types/services/clipboard/clipboard.service.d.ts +7 -3
  84. package/lib/types/services/clipboard/doc-paste-mutation-adapter.service.d.ts +47 -0
  85. package/lib/types/services/clipboard/html-to-udm/converter.d.ts +1 -0
  86. package/lib/types/services/doc-embed-integration.service.d.ts +63 -0
  87. package/lib/types/services/doc-popup-manager.service.d.ts +2 -0
  88. package/lib/types/services/docs-render.service.d.ts +1 -1
  89. package/lib/types/services/float-menu.service.d.ts +1 -0
  90. package/lib/types/services/selection/convert-text-range.d.ts +3 -0
  91. package/lib/types/services/selection/doc-selection-render.service.d.ts +18 -4
  92. package/lib/types/utils/section-header-footer.d.ts +26 -0
  93. package/lib/types/views/ParagraphMenu.d.ts +7 -3
  94. package/lib/types/views/paragraph-setting/hook/utils.d.ts +13 -3
  95. package/lib/types/views/paragraph-setting/line-spacing.d.ts +4 -4
  96. package/lib/types/views/section-setting/Setting.d.ts +16 -0
  97. package/lib/types/views/section-setting/component-name.d.ts +16 -0
  98. package/lib/types/views/section-setting/index.d.ts +16 -0
  99. package/lib/types/views/section-setting/use-section-setting.d.ts +43 -0
  100. package/lib/umd/index.js +9 -9
  101. package/lib/umd/locale/ar-SA.js +1 -1
  102. package/lib/umd/locale/ca-ES.js +1 -1
  103. package/lib/umd/locale/de-DE.js +1 -1
  104. package/lib/umd/locale/en-US.js +1 -1
  105. package/lib/umd/locale/es-ES.js +1 -1
  106. package/lib/umd/locale/fa-IR.js +1 -1
  107. package/lib/umd/locale/fr-FR.js +1 -1
  108. package/lib/umd/locale/id-ID.js +1 -1
  109. package/lib/umd/locale/it-IT.js +1 -1
  110. package/lib/umd/locale/ja-JP.js +1 -1
  111. package/lib/umd/locale/ko-KR.js +1 -1
  112. package/lib/umd/locale/pl-PL.js +1 -1
  113. package/lib/umd/locale/pt-BR.js +1 -1
  114. package/lib/umd/locale/ru-RU.js +1 -1
  115. package/lib/umd/locale/sk-SK.js +1 -1
  116. package/lib/umd/locale/vi-VN.js +1 -1
  117. package/lib/umd/locale/zh-CN.js +1 -1
  118. package/lib/umd/locale/zh-HK.js +1 -1
  119. package/lib/umd/locale/zh-TW.js +1 -1
  120. package/package.json +10 -11
@@ -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,23 @@ 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
+ menu: {
81
+ paragraphSetting: "Paragraph Setting",
82
+ sectionSetting: "Section Settings"
83
+ },
84
+ slider: {
85
+ paragraphSetting: "Paragraph Setting",
86
+ sectionSetting: "Section Settings"
87
+ },
81
88
  paragraphSetting: {
82
89
  alignment: "Alignment",
83
90
  indentation: "Indentation",
@@ -93,6 +100,20 @@ const locale = { "docs-ui": {
93
100
  atLeast: "At Least (px)",
94
101
  exactly: "Exactly (px)",
95
102
  fixedValue: "Fixed Value(px)"
103
+ },
104
+ sectionSetting: {
105
+ selectedSections: "{0} sections selected",
106
+ columnCount: "Column count",
107
+ columnGap: "Column gap",
108
+ columnSeparator: "Separator",
109
+ none: "None",
110
+ betweenColumns: "Between columns",
111
+ sectionStart: "Section start",
112
+ unspecified: "Unspecified",
113
+ continuous: "Continuous",
114
+ nextPage: "Next page",
115
+ evenPage: "Even page",
116
+ oddPage: "Odd page"
96
117
  }
97
118
  },
98
119
  rightClick: {
@@ -106,16 +127,16 @@ const locale = { "docs-ui": {
106
127
  insertBellow: "Chèn dưới"
107
128
  },
108
129
  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"
130
+ alignAndIndent: "Căn chỉnh và thụt lề",
131
+ align: "Căn chỉnh",
132
+ indent: "Thụt lề",
133
+ color: "Màu sắc",
134
+ increase: "Tăng",
135
+ decrease: "Giảm",
136
+ increaseIndent: "Tăng thụt lề",
137
+ decreaseIndent: "Giảm thụt lề",
138
+ defaultTextColor: "Màu văn bản mặc định",
139
+ noBackground: "Không có nền"
119
140
  },
120
141
  "page-settings": {
121
142
  "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,14 @@ const locale = { "docs-ui": {
76
77
  listItem: "项目"
77
78
  },
78
79
  doc: {
79
- menu: { paragraphSetting: "段落设置" },
80
- slider: { paragraphSetting: "段落设置" },
80
+ menu: {
81
+ paragraphSetting: "段落设置",
82
+ sectionSetting: "节设置"
83
+ },
84
+ slider: {
85
+ paragraphSetting: "段落设置",
86
+ sectionSetting: "节设置"
87
+ },
81
88
  paragraphSetting: {
82
89
  alignment: "对齐方式",
83
90
  indentation: "缩进",
@@ -93,6 +100,20 @@ const locale = { "docs-ui": {
93
100
  atLeast: "至少值(px)",
94
101
  exactly: "固定值(px)",
95
102
  fixedValue: "固定值(px)"
103
+ },
104
+ sectionSetting: {
105
+ selectedSections: "已选择 {0} 个节",
106
+ columnCount: "栏数",
107
+ columnGap: "栏间距",
108
+ columnSeparator: "分隔线",
109
+ none: "无",
110
+ betweenColumns: "栏间分隔线",
111
+ sectionStart: "节起始位置",
112
+ unspecified: "未指定",
113
+ continuous: "连续",
114
+ nextPage: "下一页",
115
+ evenPage: "偶数页",
116
+ oddPage: "奇数页"
96
117
  }
97
118
  },
98
119
  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,14 @@ const locale = { "docs-ui": {
76
77
  listItem: "項目"
77
78
  },
78
79
  doc: {
79
- menu: { paragraphSetting: "Paragraph Setting" },
80
- slider: { paragraphSetting: "Paragraph Setting" },
80
+ menu: {
81
+ paragraphSetting: "Paragraph Setting",
82
+ sectionSetting: "Section Settings"
83
+ },
84
+ slider: {
85
+ paragraphSetting: "Paragraph Setting",
86
+ sectionSetting: "Section Settings"
87
+ },
81
88
  paragraphSetting: {
82
89
  alignment: "Alignment",
83
90
  indentation: "Indentation",
@@ -93,6 +100,20 @@ const locale = { "docs-ui": {
93
100
  atLeast: "At Least (px)",
94
101
  exactly: "Exactly (px)",
95
102
  fixedValue: "Fixed Value(px)"
103
+ },
104
+ sectionSetting: {
105
+ selectedSections: "{0} sections selected",
106
+ columnCount: "Column count",
107
+ columnGap: "Column gap",
108
+ columnSeparator: "Separator",
109
+ none: "None",
110
+ betweenColumns: "Between columns",
111
+ sectionStart: "Section start",
112
+ unspecified: "Unspecified",
113
+ continuous: "Continuous",
114
+ nextPage: "Next page",
115
+ evenPage: "Even page",
116
+ oddPage: "Odd page"
96
117
  }
97
118
  },
98
119
  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,14 @@ const locale = { "docs-ui": {
76
77
  listItem: "項目"
77
78
  },
78
79
  doc: {
79
- menu: { paragraphSetting: "Paragraph Setting" },
80
- slider: { paragraphSetting: "Paragraph Setting" },
80
+ menu: {
81
+ paragraphSetting: "Paragraph Setting",
82
+ sectionSetting: "Section Settings"
83
+ },
84
+ slider: {
85
+ paragraphSetting: "Paragraph Setting",
86
+ sectionSetting: "Section Settings"
87
+ },
81
88
  paragraphSetting: {
82
89
  alignment: "Alignment",
83
90
  indentation: "Indentation",
@@ -93,6 +100,20 @@ const locale = { "docs-ui": {
93
100
  atLeast: "At Least (px)",
94
101
  exactly: "Exactly (px)",
95
102
  fixedValue: "Fixed Value(px)"
103
+ },
104
+ sectionSetting: {
105
+ selectedSections: "{0} sections selected",
106
+ columnCount: "Column count",
107
+ columnGap: "Column gap",
108
+ columnSeparator: "Separator",
109
+ none: "None",
110
+ betweenColumns: "Between columns",
111
+ sectionStart: "Section start",
112
+ unspecified: "Unspecified",
113
+ continuous: "Continuous",
114
+ nextPage: "Next page",
115
+ evenPage: "Even page",
116
+ oddPage: "Odd page"
96
117
  }
97
118
  },
98
119
  rightClick: {