@univerjs/docs-ui 1.0.0-alpha.1 → 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 (126) hide show
  1. package/lib/cjs/index.js +2544 -1063
  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 +2474 -1070
  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 +2474 -1070
  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-delete.command.d.ts +6 -2
  65. package/lib/types/commands/commands/doc-header-footer.command.d.ts +4 -9
  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/commands/commands/table/doc-table-create.command.d.ts +2 -1
  70. package/lib/types/commands/operations/doc-section-setting-panel.operation.d.ts +17 -0
  71. package/lib/types/controllers/doc-header-footer.controller.d.ts +0 -8
  72. package/lib/types/controllers/doc-section-setting.controller.d.ts +24 -0
  73. package/lib/types/controllers/render-controllers/doc-input.controller.d.ts +4 -1
  74. package/lib/types/controllers/render-controllers/doc-selection-render.controller.d.ts +5 -1
  75. package/lib/types/controllers/render-controllers/doc.render-controller.d.ts +4 -1
  76. package/lib/types/controllers/render-controllers/zoom.render-controller.d.ts +3 -1
  77. package/lib/types/controllers/ui.controller.d.ts +4 -1
  78. package/lib/types/embed-docs-custom-block-bleed.d.ts +30 -0
  79. package/lib/types/embed-docs-custom-block-refresh.d.ts +28 -0
  80. package/lib/types/embed-docs-custom-block-scroll.d.ts +19 -0
  81. package/lib/types/embed-host-anchor.d.ts +45 -0
  82. package/lib/types/index.d.ts +19 -4
  83. package/lib/types/locale/en-US.d.ts +17 -0
  84. package/lib/types/menu/context-menu.d.ts +1 -0
  85. package/lib/types/menu/menu.d.ts +2 -1
  86. package/lib/types/services/clipboard/clipboard.service.d.ts +7 -3
  87. package/lib/types/services/clipboard/doc-paste-mutation-adapter.service.d.ts +47 -0
  88. package/lib/types/services/clipboard/html-to-udm/converter.d.ts +1 -0
  89. package/lib/types/services/doc-embed-integration.service.d.ts +63 -0
  90. package/lib/types/services/doc-paragraph-menu.service.d.ts +1 -1
  91. package/lib/types/services/doc-popup-manager.service.d.ts +2 -0
  92. package/lib/types/services/docs-render.service.d.ts +1 -1
  93. package/lib/types/services/float-menu.service.d.ts +1 -0
  94. package/lib/types/services/index.d.ts +1 -0
  95. package/lib/types/services/selection/convert-text-range.d.ts +3 -0
  96. package/lib/types/services/selection/doc-selection-render.service.d.ts +18 -4
  97. package/lib/types/shortcuts/core-editing.shortcut.d.ts +1 -0
  98. package/lib/types/utils/section-header-footer.d.ts +26 -0
  99. package/lib/types/views/ParagraphMenu.d.ts +8 -3
  100. package/lib/types/views/paragraph-setting/hook/utils.d.ts +13 -3
  101. package/lib/types/views/paragraph-setting/line-spacing.d.ts +6 -18
  102. package/lib/types/views/section-setting/Setting.d.ts +16 -0
  103. package/lib/types/views/section-setting/component-name.d.ts +16 -0
  104. package/lib/types/views/section-setting/index.d.ts +16 -0
  105. package/lib/types/views/section-setting/use-section-setting.d.ts +43 -0
  106. package/lib/umd/index.js +9 -10
  107. package/lib/umd/locale/ar-SA.js +1 -1
  108. package/lib/umd/locale/ca-ES.js +1 -1
  109. package/lib/umd/locale/de-DE.js +1 -1
  110. package/lib/umd/locale/en-US.js +1 -1
  111. package/lib/umd/locale/es-ES.js +1 -1
  112. package/lib/umd/locale/fa-IR.js +1 -1
  113. package/lib/umd/locale/fr-FR.js +1 -1
  114. package/lib/umd/locale/id-ID.js +1 -1
  115. package/lib/umd/locale/it-IT.js +1 -1
  116. package/lib/umd/locale/ja-JP.js +1 -1
  117. package/lib/umd/locale/ko-KR.js +1 -1
  118. package/lib/umd/locale/pl-PL.js +1 -1
  119. package/lib/umd/locale/pt-BR.js +1 -1
  120. package/lib/umd/locale/ru-RU.js +1 -1
  121. package/lib/umd/locale/sk-SK.js +1 -1
  122. package/lib/umd/locale/vi-VN.js +1 -1
  123. package/lib/umd/locale/zh-CN.js +1 -1
  124. package/lib/umd/locale/zh-HK.js +1 -1
  125. package/lib/umd/locale/zh-TW.js +1 -1
  126. package/package.json +11 -12
@@ -55,6 +55,7 @@ const locale = { "docs-ui": {
55
55
  deleteTable: "Xóa bảng"
56
56
  },
57
57
  headerFooter: {
58
+ linkToPrevious: "Link to previous",
58
59
  header: "Đầu trang",
59
60
  footer: "Chân trang",
60
61
  panel: "Cài đặt đầu trang và chân trang",
@@ -66,17 +67,23 @@ const locale = { "docs-ui": {
66
67
  disableText: "Cài đặt đầu trang và chân trang không khả dụng"
67
68
  },
68
69
  placeholder: {
69
- heading1: "Heading 1",
70
- heading2: "Heading 2",
71
- heading3: "Heading 3",
72
- heading4: "Heading 4",
73
- heading5: "Heading 5",
74
- normalText: "Type text or press \"/\" for commands",
75
- listItem: "Item"
70
+ heading1: "Tiêu đề 1",
71
+ heading2: "Tiêu đề 2",
72
+ heading3: "Tiêu đề 3",
73
+ heading4: "Tiêu đề 4",
74
+ heading5: "Tiêu đề 5",
75
+ normalText: "Nhập văn bản hoặc nhấn \"/\" để dùng lệnh",
76
+ listItem: "Mục"
76
77
  },
77
78
  doc: {
78
- menu: { paragraphSetting: "Paragraph Setting" },
79
- slider: { paragraphSetting: "Paragraph Setting" },
79
+ menu: {
80
+ paragraphSetting: "Paragraph Setting",
81
+ sectionSetting: "Section Settings"
82
+ },
83
+ slider: {
84
+ paragraphSetting: "Paragraph Setting",
85
+ sectionSetting: "Section Settings"
86
+ },
80
87
  paragraphSetting: {
81
88
  alignment: "Alignment",
82
89
  indentation: "Indentation",
@@ -92,6 +99,20 @@ const locale = { "docs-ui": {
92
99
  atLeast: "At Least (px)",
93
100
  exactly: "Exactly (px)",
94
101
  fixedValue: "Fixed Value(px)"
102
+ },
103
+ sectionSetting: {
104
+ selectedSections: "{0} sections selected",
105
+ columnCount: "Column count",
106
+ columnGap: "Column gap",
107
+ columnSeparator: "Separator",
108
+ none: "None",
109
+ betweenColumns: "Between columns",
110
+ sectionStart: "Section start",
111
+ unspecified: "Unspecified",
112
+ continuous: "Continuous",
113
+ nextPage: "Next page",
114
+ evenPage: "Even page",
115
+ oddPage: "Odd page"
95
116
  }
96
117
  },
97
118
  rightClick: {
@@ -105,16 +126,16 @@ const locale = { "docs-ui": {
105
126
  insertBellow: "Chèn dưới"
106
127
  },
107
128
  paragraphMenu: {
108
- alignAndIndent: "Align and indent",
109
- align: "Align",
110
- indent: "Indent",
111
- color: "Colors",
112
- increase: "Increase",
113
- decrease: "Decrease",
114
- increaseIndent: "Increase indent",
115
- decreaseIndent: "Decrease indent",
116
- defaultTextColor: "Default text color",
117
- noBackground: "No background"
129
+ alignAndIndent: "Căn chỉnh và thụt lề",
130
+ align: "Căn chỉnh",
131
+ indent: "Thụt lề",
132
+ color: "Màu sắc",
133
+ increase: "Tăng",
134
+ decrease: "Giảm",
135
+ increaseIndent: "Tăng thụt lề",
136
+ decreaseIndent: "Giảm thụt lề",
137
+ defaultTextColor: "Màu văn bản mặc định",
138
+ noBackground: "Không có nền"
118
139
  },
119
140
  "page-settings": {
120
141
  "document-setting": "Cài đặt tài liệu",
@@ -55,6 +55,7 @@ const locale = { "docs-ui": {
55
55
  deleteTable: "删除表格"
56
56
  },
57
57
  headerFooter: {
58
+ linkToPrevious: "链接到上一节",
58
59
  header: "页眉",
59
60
  footer: "页脚",
60
61
  panel: "页眉页脚设置",
@@ -75,8 +76,14 @@ const locale = { "docs-ui": {
75
76
  listItem: "项目"
76
77
  },
77
78
  doc: {
78
- menu: { paragraphSetting: "段落设置" },
79
- slider: { paragraphSetting: "段落设置" },
79
+ menu: {
80
+ paragraphSetting: "段落设置",
81
+ sectionSetting: "节设置"
82
+ },
83
+ slider: {
84
+ paragraphSetting: "段落设置",
85
+ sectionSetting: "节设置"
86
+ },
80
87
  paragraphSetting: {
81
88
  alignment: "对齐方式",
82
89
  indentation: "缩进",
@@ -92,6 +99,20 @@ const locale = { "docs-ui": {
92
99
  atLeast: "至少值(px)",
93
100
  exactly: "固定值(px)",
94
101
  fixedValue: "固定值(px)"
102
+ },
103
+ sectionSetting: {
104
+ selectedSections: "已选择 {0} 个节",
105
+ columnCount: "栏数",
106
+ columnGap: "栏间距",
107
+ columnSeparator: "分隔线",
108
+ none: "无",
109
+ betweenColumns: "栏间分隔线",
110
+ sectionStart: "节起始位置",
111
+ unspecified: "未指定",
112
+ continuous: "连续",
113
+ nextPage: "下一页",
114
+ evenPage: "偶数页",
115
+ oddPage: "奇数页"
95
116
  }
96
117
  },
97
118
  rightClick: {
@@ -55,6 +55,7 @@ const locale = { "docs-ui": {
55
55
  deleteTable: "Delete table"
56
56
  },
57
57
  headerFooter: {
58
+ linkToPrevious: "連結到上一節",
58
59
  header: "頁眉",
59
60
  footer: "頁腳",
60
61
  panel: "頁眉頁腳設置",
@@ -75,8 +76,14 @@ const locale = { "docs-ui": {
75
76
  listItem: "項目"
76
77
  },
77
78
  doc: {
78
- menu: { paragraphSetting: "Paragraph Setting" },
79
- slider: { paragraphSetting: "Paragraph Setting" },
79
+ menu: {
80
+ paragraphSetting: "Paragraph Setting",
81
+ sectionSetting: "Section Settings"
82
+ },
83
+ slider: {
84
+ paragraphSetting: "Paragraph Setting",
85
+ sectionSetting: "Section Settings"
86
+ },
80
87
  paragraphSetting: {
81
88
  alignment: "Alignment",
82
89
  indentation: "Indentation",
@@ -92,6 +99,20 @@ const locale = { "docs-ui": {
92
99
  atLeast: "At Least (px)",
93
100
  exactly: "Exactly (px)",
94
101
  fixedValue: "Fixed Value(px)"
102
+ },
103
+ sectionSetting: {
104
+ selectedSections: "{0} sections selected",
105
+ columnCount: "Column count",
106
+ columnGap: "Column gap",
107
+ columnSeparator: "Separator",
108
+ none: "None",
109
+ betweenColumns: "Between columns",
110
+ sectionStart: "Section start",
111
+ unspecified: "Unspecified",
112
+ continuous: "Continuous",
113
+ nextPage: "Next page",
114
+ evenPage: "Even page",
115
+ oddPage: "Odd page"
95
116
  }
96
117
  },
97
118
  rightClick: {
@@ -55,6 +55,7 @@ const locale = { "docs-ui": {
55
55
  deleteTable: "刪除表格"
56
56
  },
57
57
  headerFooter: {
58
+ linkToPrevious: "連結到上一節",
58
59
  header: "頁眉",
59
60
  footer: "頁腳",
60
61
  panel: "頁眉頁腳設置",
@@ -75,8 +76,14 @@ const locale = { "docs-ui": {
75
76
  listItem: "項目"
76
77
  },
77
78
  doc: {
78
- menu: { paragraphSetting: "Paragraph Setting" },
79
- slider: { paragraphSetting: "Paragraph Setting" },
79
+ menu: {
80
+ paragraphSetting: "Paragraph Setting",
81
+ sectionSetting: "Section Settings"
82
+ },
83
+ slider: {
84
+ paragraphSetting: "Paragraph Setting",
85
+ sectionSetting: "Section Settings"
86
+ },
80
87
  paragraphSetting: {
81
88
  alignment: "Alignment",
82
89
  indentation: "Indentation",
@@ -92,6 +99,20 @@ const locale = { "docs-ui": {
92
99
  atLeast: "At Least (px)",
93
100
  exactly: "Exactly (px)",
94
101
  fixedValue: "Fixed Value(px)"
102
+ },
103
+ sectionSetting: {
104
+ selectedSections: "{0} sections selected",
105
+ columnCount: "Column count",
106
+ columnGap: "Column gap",
107
+ columnSeparator: "Separator",
108
+ none: "None",
109
+ betweenColumns: "Between columns",
110
+ sectionStart: "Section start",
111
+ unspecified: "Unspecified",
112
+ continuous: "Continuous",
113
+ nextPage: "Next page",
114
+ evenPage: "Even page",
115
+ oddPage: "Odd page"
95
116
  }
96
117
  },
97
118
  rightClick: {
package/lib/index.css CHANGED
@@ -67,6 +67,10 @@
67
67
  margin-bottom: .5rem;
68
68
  }
69
69
 
70
+ .univer-mb-4 {
71
+ margin-bottom: 1rem;
72
+ }
73
+
70
74
  .univer-mr-1 {
71
75
  margin-right: .25rem;
72
76
  }
@@ -673,6 +677,10 @@
673
677
  color: var(--univer-gray-200) !important;
674
678
  }
675
679
 
680
+ .dark\:\!univer-text-gray-300:where(.univer-dark, .univer-dark *) {
681
+ color: var(--univer-gray-300) !important;
682
+ }
683
+
676
684
  .dark\:\!univer-text-gray-400:where(.univer-dark, .univer-dark *) {
677
685
  color: var(--univer-gray-400) !important;
678
686
  }