@univerjs/docs-ui 1.0.0-beta.0 → 1.0.0-beta.1

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 (100) hide show
  1. package/lib/cjs/index.js +960 -254
  2. package/lib/cjs/locale/ar-SA.js +17 -8
  3. package/lib/cjs/locale/ca-ES.js +17 -8
  4. package/lib/cjs/locale/de-DE.js +17 -8
  5. package/lib/cjs/locale/en-US.js +17 -8
  6. package/lib/cjs/locale/es-ES.js +17 -8
  7. package/lib/cjs/locale/fa-IR.js +17 -8
  8. package/lib/cjs/locale/fr-FR.js +17 -8
  9. package/lib/cjs/locale/id-ID.js +17 -8
  10. package/lib/cjs/locale/it-IT.js +17 -8
  11. package/lib/cjs/locale/ja-JP.js +17 -8
  12. package/lib/cjs/locale/ko-KR.js +17 -8
  13. package/lib/cjs/locale/pl-PL.js +17 -8
  14. package/lib/cjs/locale/pt-BR.js +17 -8
  15. package/lib/cjs/locale/ru-RU.js +17 -8
  16. package/lib/cjs/locale/sk-SK.js +17 -8
  17. package/lib/cjs/locale/vi-VN.js +17 -8
  18. package/lib/cjs/locale/zh-CN.js +17 -8
  19. package/lib/cjs/locale/zh-HK.js +17 -8
  20. package/lib/cjs/locale/zh-TW.js +17 -8
  21. package/lib/es/index.js +962 -258
  22. package/lib/es/locale/ar-SA.js +17 -8
  23. package/lib/es/locale/ca-ES.js +17 -8
  24. package/lib/es/locale/de-DE.js +17 -8
  25. package/lib/es/locale/en-US.js +17 -8
  26. package/lib/es/locale/es-ES.js +17 -8
  27. package/lib/es/locale/fa-IR.js +17 -8
  28. package/lib/es/locale/fr-FR.js +17 -8
  29. package/lib/es/locale/id-ID.js +17 -8
  30. package/lib/es/locale/it-IT.js +17 -8
  31. package/lib/es/locale/ja-JP.js +17 -8
  32. package/lib/es/locale/ko-KR.js +17 -8
  33. package/lib/es/locale/pl-PL.js +17 -8
  34. package/lib/es/locale/pt-BR.js +17 -8
  35. package/lib/es/locale/ru-RU.js +17 -8
  36. package/lib/es/locale/sk-SK.js +17 -8
  37. package/lib/es/locale/vi-VN.js +17 -8
  38. package/lib/es/locale/zh-CN.js +17 -8
  39. package/lib/es/locale/zh-HK.js +17 -8
  40. package/lib/es/locale/zh-TW.js +17 -8
  41. package/lib/index.css +154 -16
  42. package/lib/index.js +962 -258
  43. package/lib/locale/ar-SA.js +17 -8
  44. package/lib/locale/ca-ES.js +17 -8
  45. package/lib/locale/de-DE.js +17 -8
  46. package/lib/locale/en-US.js +17 -8
  47. package/lib/locale/es-ES.js +17 -8
  48. package/lib/locale/fa-IR.js +17 -8
  49. package/lib/locale/fr-FR.js +17 -8
  50. package/lib/locale/id-ID.js +17 -8
  51. package/lib/locale/it-IT.js +17 -8
  52. package/lib/locale/ja-JP.js +17 -8
  53. package/lib/locale/ko-KR.js +17 -8
  54. package/lib/locale/pl-PL.js +17 -8
  55. package/lib/locale/pt-BR.js +17 -8
  56. package/lib/locale/ru-RU.js +17 -8
  57. package/lib/locale/sk-SK.js +17 -8
  58. package/lib/locale/vi-VN.js +17 -8
  59. package/lib/locale/zh-CN.js +17 -8
  60. package/lib/locale/zh-HK.js +17 -8
  61. package/lib/locale/zh-TW.js +17 -8
  62. package/lib/types/commands/commands/clipboard.inner.command.d.ts +8 -2
  63. package/lib/types/commands/commands/doc-select-all.command.d.ts +2 -0
  64. package/lib/types/commands/commands/replace-content.command.d.ts +1 -0
  65. package/lib/types/config/config.d.ts +1 -0
  66. package/lib/types/controllers/render-controllers/doc-ime-input.controller.d.ts +3 -2
  67. package/lib/types/controllers/render-controllers/doc-input.controller.d.ts +1 -1
  68. package/lib/types/controllers/render-controllers/doc-paragraph-placeholder.render-controller.d.ts +1 -1
  69. package/lib/types/controllers/render-controllers/doc.render-controller.d.ts +2 -0
  70. package/lib/types/index.d.ts +1 -0
  71. package/lib/types/locale/en-US.d.ts +16 -7
  72. package/lib/types/services/doc-ime-input-manager.service.d.ts +17 -0
  73. package/lib/types/services/doc-menu-style.service.d.ts +3 -2
  74. package/lib/types/services/doc-render-background.d.ts +1 -1
  75. package/lib/types/services/selection/doc-selection-render.service.d.ts +2 -0
  76. package/lib/types/services/selection/text-range.d.ts +3 -0
  77. package/lib/types/views/doc-statistics/DocStatistics.d.ts +16 -0
  78. package/lib/types/views/doc-statistics/use-doc-statistics.d.ts +30 -0
  79. package/lib/types/views/list-type-picker/Picker.d.ts +1 -4
  80. package/lib/umd/index.js +9 -9
  81. package/lib/umd/locale/ar-SA.js +1 -1
  82. package/lib/umd/locale/ca-ES.js +1 -1
  83. package/lib/umd/locale/de-DE.js +1 -1
  84. package/lib/umd/locale/en-US.js +1 -1
  85. package/lib/umd/locale/es-ES.js +1 -1
  86. package/lib/umd/locale/fa-IR.js +1 -1
  87. package/lib/umd/locale/fr-FR.js +1 -1
  88. package/lib/umd/locale/id-ID.js +1 -1
  89. package/lib/umd/locale/it-IT.js +1 -1
  90. package/lib/umd/locale/ja-JP.js +1 -1
  91. package/lib/umd/locale/ko-KR.js +1 -1
  92. package/lib/umd/locale/pl-PL.js +1 -1
  93. package/lib/umd/locale/pt-BR.js +1 -1
  94. package/lib/umd/locale/ru-RU.js +1 -1
  95. package/lib/umd/locale/sk-SK.js +1 -1
  96. package/lib/umd/locale/vi-VN.js +1 -1
  97. package/lib/umd/locale/zh-CN.js +1 -1
  98. package/lib/umd/locale/zh-HK.js +1 -1
  99. package/lib/umd/locale/zh-TW.js +1 -1
  100. package/package.json +8 -8
@@ -1,8 +1,6 @@
1
1
  //#region src/locale/pl-PL.ts
2
2
  const locale = { "docs-ui": {
3
3
  toolbar: {
4
- undo: "Cofnij",
5
- redo: "Ponów",
6
4
  font: "Czcionka",
7
5
  fontSize: "Rozmiar czcionki",
8
6
  bold: "Pogrubienie",
@@ -23,7 +21,6 @@ const locale = { "docs-ui": {
23
21
  order: "Lista numerowana",
24
22
  unorder: "Lista punktowana",
25
23
  checklist: "Lista zadań",
26
- documentFlavor: "Tryb nowoczesny",
27
24
  alignLeft: "Wyrównaj do lewej",
28
25
  alignCenter: "Wyrównaj do środka",
29
26
  alignRight: "Wyrównaj do prawej",
@@ -73,6 +70,22 @@ const locale = { "docs-ui": {
73
70
  closeHeaderFooter: "Zamknij nagłówek i stopkę",
74
71
  disableText: "Ustawienia nagłówka i stopki są wyłączone"
75
72
  },
73
+ statistics: {
74
+ title: "Statystyki dokumentu",
75
+ open: "Wyświetl statystyki dokumentu",
76
+ document: "Cały dokument",
77
+ selection: "Bieżące zaznaczenie",
78
+ wordCount: "Liczba wyrazów: {0}",
79
+ selectedWords: "Liczba wyrazów: {0} z {1}",
80
+ pages: "Strony",
81
+ words: "Wyrazy",
82
+ charactersWithoutSpaces: "Znaki (bez spacji)",
83
+ charactersWithSpaces: "Znaki (ze spacjami)",
84
+ paragraphs: "Akapity",
85
+ lines: "Wiersze",
86
+ nonAsianWords: "Wyrazy nieazjatyckie",
87
+ asianCharactersAndKoreanWords: "Znaki azjatyckie i wyrazy koreańskie"
88
+ },
76
89
  placeholder: {
77
90
  heading1: "Nagłówek 1",
78
91
  heading2: "Nagłówek 2",
@@ -105,8 +118,7 @@ const locale = { "docs-ui": {
105
118
  lineSpace: "Odstęp między wierszami",
106
119
  multiSpace: "Wielokrotny odstęp",
107
120
  atLeast: "Co najmniej (px)",
108
- exactly: "Dokładnie (px)",
109
- fixedValue: "Wartość stała (px)"
121
+ exactly: "Dokładnie (px)"
110
122
  },
111
123
  sectionSetting: {
112
124
  selectedSections: "Wybrano sekcje: {0}",
@@ -153,9 +165,6 @@ const locale = { "docs-ui": {
153
165
  },
154
166
  "page-settings": {
155
167
  "document-setting": "Ustawienia dokumentu",
156
- mode: "Tryb",
157
- "modern-mode": "Nowoczesny",
158
- "classic-mode": "Klasyczny",
159
168
  "modern-width": "Szerokość treści",
160
169
  "modern-width-narrow": "Wąski",
161
170
  "modern-width-medium": "Średni",
@@ -1,8 +1,6 @@
1
1
  //#region src/locale/pt-BR.ts
2
2
  const locale = { "docs-ui": {
3
3
  toolbar: {
4
- undo: "Desfazer",
5
- redo: "Refazer",
6
4
  font: "Fonte",
7
5
  fontSize: "Tamanho da fonte",
8
6
  bold: "Negrito",
@@ -23,7 +21,6 @@ const locale = { "docs-ui": {
23
21
  order: "Lista ordenada",
24
22
  unorder: "Lista não ordenada",
25
23
  checklist: "Lista de tarefas",
26
- documentFlavor: "Modo Moderno",
27
24
  alignLeft: "Alinhar à esquerda",
28
25
  alignCenter: "Alinhar ao centro",
29
26
  alignRight: "Alinhar à direita",
@@ -73,6 +70,22 @@ const locale = { "docs-ui": {
73
70
  closeHeaderFooter: "Fechar cabeçalho e rodapé",
74
71
  disableText: "As configurações de cabeçalho e rodapé estão desativadas"
75
72
  },
73
+ statistics: {
74
+ title: "Estatísticas do documento",
75
+ open: "Exibir estatísticas do documento",
76
+ document: "Documento inteiro",
77
+ selection: "Seleção atual",
78
+ wordCount: "{0} palavras",
79
+ selectedWords: "{0} de {1} palavras",
80
+ pages: "Páginas",
81
+ words: "Palavras",
82
+ charactersWithoutSpaces: "Caracteres (sem espaços)",
83
+ charactersWithSpaces: "Caracteres (com espaços)",
84
+ paragraphs: "Parágrafos",
85
+ lines: "Linhas",
86
+ nonAsianWords: "Palavras não asiáticas",
87
+ asianCharactersAndKoreanWords: "Caracteres asiáticos e palavras coreanas"
88
+ },
76
89
  placeholder: {
77
90
  heading1: "Título 1",
78
91
  heading2: "Título 2",
@@ -105,8 +118,7 @@ const locale = { "docs-ui": {
105
118
  lineSpace: "Espaçamento entre linhas",
106
119
  multiSpace: "Espaçamento múltiplo",
107
120
  atLeast: "Pelo menos (px)",
108
- exactly: "Exatamente (px)",
109
- fixedValue: "Valor fixo (px)"
121
+ exactly: "Exatamente (px)"
110
122
  },
111
123
  sectionSetting: {
112
124
  selectedSections: "{0} seções selecionadas",
@@ -153,9 +165,6 @@ const locale = { "docs-ui": {
153
165
  },
154
166
  "page-settings": {
155
167
  "document-setting": "Configuração do documento",
156
- mode: "Modo",
157
- "modern-mode": "Moderno",
158
- "classic-mode": "Clássico",
159
168
  "modern-width": "Largura do conteúdo",
160
169
  "modern-width-narrow": "Estreito",
161
170
  "modern-width-medium": "Médio",
@@ -1,8 +1,6 @@
1
1
  //#region src/locale/ru-RU.ts
2
2
  const locale = { "docs-ui": {
3
3
  toolbar: {
4
- undo: "Отменить",
5
- redo: "Повторить",
6
4
  font: "Шрифт",
7
5
  fontSize: "Размер шрифта",
8
6
  bold: "Полужирный",
@@ -23,7 +21,6 @@ const locale = { "docs-ui": {
23
21
  order: "Упорядоченный список",
24
22
  unorder: "Неупорядоченный список",
25
23
  checklist: "Список задач",
26
- documentFlavor: "Современный режим",
27
24
  alignLeft: "Выровнять по левому краю",
28
25
  alignCenter: "Выровнять по центру",
29
26
  alignRight: "Выровнять по правому краю",
@@ -73,6 +70,22 @@ const locale = { "docs-ui": {
73
70
  closeHeaderFooter: "Закрыть верхний и нижний колонтитулы",
74
71
  disableText: "Настройки верхнего и нижнего колонтитулов отключены"
75
72
  },
73
+ statistics: {
74
+ title: "Статистика документа",
75
+ open: "Показать статистику документа",
76
+ document: "Весь документ",
77
+ selection: "Текущее выделение",
78
+ wordCount: "Слов: {0}",
79
+ selectedWords: "Слов: {0} из {1}",
80
+ pages: "Страницы",
81
+ words: "Слова",
82
+ charactersWithoutSpaces: "Знаки (без пробелов)",
83
+ charactersWithSpaces: "Знаки (с пробелами)",
84
+ paragraphs: "Абзацы",
85
+ lines: "Строки",
86
+ nonAsianWords: "Неазиатские слова",
87
+ asianCharactersAndKoreanWords: "Азиатские знаки и корейские слова"
88
+ },
76
89
  placeholder: {
77
90
  heading1: "Заголовок 1",
78
91
  heading2: "Заголовок 2",
@@ -105,8 +118,7 @@ const locale = { "docs-ui": {
105
118
  lineSpace: "Высота строки",
106
119
  multiSpace: "Двойной отступ",
107
120
  atLeast: "Не менее (px)",
108
- exactly: "Точно (px)",
109
- fixedValue: "Фиксированное значение (px)"
121
+ exactly: "Точно (px)"
110
122
  },
111
123
  sectionSetting: {
112
124
  selectedSections: "Выбрано разделов: {0}",
@@ -153,9 +165,6 @@ const locale = { "docs-ui": {
153
165
  },
154
166
  "page-settings": {
155
167
  "document-setting": "Настройки документа",
156
- mode: "Режим",
157
- "modern-mode": "Современный",
158
- "classic-mode": "Классический",
159
168
  "modern-width": "Ширина содержимого",
160
169
  "modern-width-narrow": "Узкая",
161
170
  "modern-width-medium": "Средняя",
@@ -1,8 +1,6 @@
1
1
  //#region src/locale/sk-SK.ts
2
2
  const locale = { "docs-ui": {
3
3
  toolbar: {
4
- undo: "Späť",
5
- redo: "Znova",
6
4
  font: "Písmo",
7
5
  fontSize: "Veľkosť písma",
8
6
  bold: "Tučné",
@@ -23,7 +21,6 @@ const locale = { "docs-ui": {
23
21
  order: "Číslovaný zoznam",
24
22
  unorder: "Odrážkový zoznam",
25
23
  checklist: "Zoznam úloh",
26
- documentFlavor: "Moderný režim",
27
24
  alignLeft: "Zarovnať doľava",
28
25
  alignCenter: "Zarovnať na stred",
29
26
  alignRight: "Zarovnať doprava",
@@ -73,6 +70,22 @@ const locale = { "docs-ui": {
73
70
  closeHeaderFooter: "Zavrieť hlavičku a pätu",
74
71
  disableText: "Nastavenia hlavičky a päty sú vypnuté"
75
72
  },
73
+ statistics: {
74
+ title: "Štatistika dokumentu",
75
+ open: "Zobraziť štatistiku dokumentu",
76
+ document: "Celý dokument",
77
+ selection: "Aktuálny výber",
78
+ wordCount: "Počet slov: {0}",
79
+ selectedWords: "Počet slov: {0} z {1}",
80
+ pages: "Strany",
81
+ words: "Slová",
82
+ charactersWithoutSpaces: "Znaky (bez medzier)",
83
+ charactersWithSpaces: "Znaky (s medzerami)",
84
+ paragraphs: "Odseky",
85
+ lines: "Riadky",
86
+ nonAsianWords: "Neázijské slová",
87
+ asianCharactersAndKoreanWords: "Ázijské znaky a kórejské slová"
88
+ },
76
89
  placeholder: {
77
90
  heading1: "Nadpis 1",
78
91
  heading2: "Nadpis 2",
@@ -105,8 +118,7 @@ const locale = { "docs-ui": {
105
118
  lineSpace: "Riadkovanie",
106
119
  multiSpace: "Viacnásobné",
107
120
  atLeast: "Najmenej (px)",
108
- exactly: "Presne (px)",
109
- fixedValue: "Pevná hodnota (px)"
121
+ exactly: "Presne (px)"
110
122
  },
111
123
  sectionSetting: {
112
124
  selectedSections: "Vybraté sekcie: {0}",
@@ -153,9 +165,6 @@ const locale = { "docs-ui": {
153
165
  },
154
166
  "page-settings": {
155
167
  "document-setting": "Nastavenia dokumentu",
156
- mode: "Režim",
157
- "modern-mode": "Moderný",
158
- "classic-mode": "Klasický",
159
168
  "modern-width": "Šírka obsahu",
160
169
  "modern-width-narrow": "Úzka",
161
170
  "modern-width-medium": "Stredná",
@@ -1,8 +1,6 @@
1
1
  //#region src/locale/vi-VN.ts
2
2
  const locale = { "docs-ui": {
3
3
  toolbar: {
4
- undo: "Hoàn tác",
5
- redo: "Làm lại",
6
4
  font: "Phông chữ",
7
5
  fontSize: "Cỡ chữ",
8
6
  bold: "In đậm",
@@ -23,7 +21,6 @@ const locale = { "docs-ui": {
23
21
  order: "Danh sách có thứ tự",
24
22
  unorder: "Danh sách không thứ tự",
25
23
  checklist: "Danh sách công việc",
26
- documentFlavor: "Chế độ hiện đại",
27
24
  alignLeft: "Căn trái",
28
25
  alignCenter: "Căn giữa",
29
26
  alignRight: "Căn phải",
@@ -73,6 +70,22 @@ const locale = { "docs-ui": {
73
70
  closeHeaderFooter: "Đóng đầu trang và chân trang",
74
71
  disableText: "Cài đặt đầu trang và chân trang không khả dụng"
75
72
  },
73
+ statistics: {
74
+ title: "Thống kê tài liệu",
75
+ open: "Xem thống kê tài liệu",
76
+ document: "Toàn bộ tài liệu",
77
+ selection: "Vùng chọn hiện tại",
78
+ wordCount: "{0} từ",
79
+ selectedWords: "{0} trên {1} từ",
80
+ pages: "Trang",
81
+ words: "Từ",
82
+ charactersWithoutSpaces: "Ký tự (không có dấu cách)",
83
+ charactersWithSpaces: "Ký tự (có dấu cách)",
84
+ paragraphs: "Đoạn văn",
85
+ lines: "Dòng",
86
+ nonAsianWords: "Từ không thuộc ngôn ngữ châu Á",
87
+ asianCharactersAndKoreanWords: "Ký tự châu Á và từ tiếng Hàn"
88
+ },
76
89
  placeholder: {
77
90
  heading1: "Tiêu đề 1",
78
91
  heading2: "Tiêu đề 2",
@@ -105,8 +118,7 @@ const locale = { "docs-ui": {
105
118
  lineSpace: "Giãn dòng",
106
119
  multiSpace: "Nhiều dòng",
107
120
  atLeast: "Tối thiểu (px)",
108
- exactly: "Chính xác (px)",
109
- fixedValue: "Giá trị cố định (px)"
121
+ exactly: "Chính xác (px)"
110
122
  },
111
123
  sectionSetting: {
112
124
  selectedSections: "Đã chọn {0} phần",
@@ -153,9 +165,6 @@ const locale = { "docs-ui": {
153
165
  },
154
166
  "page-settings": {
155
167
  "document-setting": "Cài đặt tài liệu",
156
- mode: "Chế độ",
157
- "modern-mode": "Hiện đại",
158
- "classic-mode": "Cổ điển",
159
168
  "modern-width": "Độ rộng nội dung",
160
169
  "modern-width-narrow": "Hẹp",
161
170
  "modern-width-medium": "Vừa",
@@ -1,8 +1,6 @@
1
1
  //#region src/locale/zh-CN.ts
2
2
  const locale = { "docs-ui": {
3
3
  toolbar: {
4
- undo: "撤销",
5
- redo: "重做",
6
4
  font: "字体",
7
5
  fontSize: "字号",
8
6
  bold: "粗体",
@@ -23,7 +21,6 @@ const locale = { "docs-ui": {
23
21
  order: "有序列表",
24
22
  unorder: "无序列表",
25
23
  checklist: "任务列表",
26
- documentFlavor: "现代模式",
27
24
  alignLeft: "左对齐",
28
25
  alignCenter: "居中对齐",
29
26
  alignRight: "右对齐",
@@ -73,6 +70,22 @@ const locale = { "docs-ui": {
73
70
  closeHeaderFooter: "关闭页眉页脚",
74
71
  disableText: "页眉页脚设置不可用"
75
72
  },
73
+ statistics: {
74
+ title: "文档统计",
75
+ open: "查看文档统计",
76
+ document: "整个文档",
77
+ selection: "当前选区",
78
+ wordCount: "字数 {0}",
79
+ selectedWords: "字数 {0} / {1}",
80
+ pages: "页数",
81
+ words: "字数",
82
+ charactersWithoutSpaces: "字符数(不计空格)",
83
+ charactersWithSpaces: "字符数(计空格)",
84
+ paragraphs: "段落数",
85
+ lines: "行数",
86
+ nonAsianWords: "非亚洲语言字数",
87
+ asianCharactersAndKoreanWords: "亚洲语言字符、韩文单词"
88
+ },
76
89
  placeholder: {
77
90
  heading1: "标题1",
78
91
  heading2: "标题2",
@@ -105,8 +118,7 @@ const locale = { "docs-ui": {
105
118
  lineSpace: "行距",
106
119
  multiSpace: "多倍行距",
107
120
  atLeast: "至少值(px)",
108
- exactly: "固定值(px)",
109
- fixedValue: "固定值(px)"
121
+ exactly: "固定值(px)"
110
122
  },
111
123
  sectionSetting: {
112
124
  selectedSections: "已选择 {0} 个节",
@@ -153,9 +165,6 @@ const locale = { "docs-ui": {
153
165
  },
154
166
  "page-settings": {
155
167
  "document-setting": "文档设置",
156
- mode: "模式",
157
- "modern-mode": "现代模式",
158
- "classic-mode": "经典模式",
159
168
  "modern-width": "内容宽度",
160
169
  "modern-width-narrow": "窄",
161
170
  "modern-width-medium": "适中",
@@ -1,8 +1,6 @@
1
1
  //#region src/locale/zh-HK.ts
2
2
  const locale = { "docs-ui": {
3
3
  toolbar: {
4
- undo: "撤銷",
5
- redo: "重做",
6
4
  font: "字型",
7
5
  fontSize: "字號",
8
6
  bold: "粗體",
@@ -23,7 +21,6 @@ const locale = { "docs-ui": {
23
21
  order: "有序列表",
24
22
  unorder: "無序列表",
25
23
  checklist: "任務列表",
26
- documentFlavor: "現代模式",
27
24
  alignLeft: "左對齊",
28
25
  alignCenter: "居中對齊",
29
26
  alignRight: "右對齊",
@@ -73,6 +70,22 @@ const locale = { "docs-ui": {
73
70
  closeHeaderFooter: "關閉頁眉頁腳",
74
71
  disableText: "頁眉頁腳設置不可用"
75
72
  },
73
+ statistics: {
74
+ title: "文件統計",
75
+ open: "查看文件統計",
76
+ document: "整份文件",
77
+ selection: "目前選取範圍",
78
+ wordCount: "字數 {0}",
79
+ selectedWords: "字數 {0} / {1}",
80
+ pages: "頁數",
81
+ words: "字數",
82
+ charactersWithoutSpaces: "字元數(不計空格)",
83
+ charactersWithSpaces: "字元數(計空格)",
84
+ paragraphs: "段落數",
85
+ lines: "行數",
86
+ nonAsianWords: "非亞洲語言字數",
87
+ asianCharactersAndKoreanWords: "亞洲語言字元、韓文單字"
88
+ },
76
89
  placeholder: {
77
90
  heading1: "標題1",
78
91
  heading2: "標題2",
@@ -105,8 +118,7 @@ const locale = { "docs-ui": {
105
118
  lineSpace: "行距",
106
119
  multiSpace: "多倍行距",
107
120
  atLeast: "最小值 (px)",
108
- exactly: "固定值 (px)",
109
- fixedValue: "固定值 (px)"
121
+ exactly: "固定值 (px)"
110
122
  },
111
123
  sectionSetting: {
112
124
  selectedSections: "已選取 {0} 個節",
@@ -153,9 +165,6 @@ const locale = { "docs-ui": {
153
165
  },
154
166
  "page-settings": {
155
167
  "document-setting": "文件設定",
156
- mode: "模式",
157
- "modern-mode": "現代模式",
158
- "classic-mode": "經典模式",
159
168
  "modern-width": "內容寬度",
160
169
  "modern-width-narrow": "窄",
161
170
  "modern-width-medium": "適中",
@@ -1,8 +1,6 @@
1
1
  //#region src/locale/zh-TW.ts
2
2
  const locale = { "docs-ui": {
3
3
  toolbar: {
4
- undo: "撤銷",
5
- redo: "重做",
6
4
  font: "字體",
7
5
  fontSize: "字號",
8
6
  bold: "粗體",
@@ -23,7 +21,6 @@ const locale = { "docs-ui": {
23
21
  order: "有序列表",
24
22
  unorder: "無序列表",
25
23
  checklist: "任務列表",
26
- documentFlavor: "現代模式",
27
24
  alignLeft: "左對齊",
28
25
  alignCenter: "居中對齊",
29
26
  alignRight: "右對齊",
@@ -73,6 +70,22 @@ const locale = { "docs-ui": {
73
70
  closeHeaderFooter: "關閉頁眉頁腳",
74
71
  disableText: "頁眉頁腳設置不可用"
75
72
  },
73
+ statistics: {
74
+ title: "文件統計",
75
+ open: "檢視文件統計",
76
+ document: "整份文件",
77
+ selection: "目前選取範圍",
78
+ wordCount: "字數 {0}",
79
+ selectedWords: "字數 {0} / {1}",
80
+ pages: "頁數",
81
+ words: "字數",
82
+ charactersWithoutSpaces: "字元數(不計空格)",
83
+ charactersWithSpaces: "字元數(計空格)",
84
+ paragraphs: "段落數",
85
+ lines: "行數",
86
+ nonAsianWords: "非亞洲語言字數",
87
+ asianCharactersAndKoreanWords: "亞洲語言字元、韓文單字"
88
+ },
76
89
  placeholder: {
77
90
  heading1: "標題1",
78
91
  heading2: "標題2",
@@ -105,8 +118,7 @@ const locale = { "docs-ui": {
105
118
  lineSpace: "行距",
106
119
  multiSpace: "多倍行距",
107
120
  atLeast: "至少 (px)",
108
- exactly: "固定值 (px)",
109
- fixedValue: "固定值 (px)"
121
+ exactly: "固定值 (px)"
110
122
  },
111
123
  sectionSetting: {
112
124
  selectedSections: "已選取 {0} 個節",
@@ -153,9 +165,6 @@ const locale = { "docs-ui": {
153
165
  },
154
166
  "page-settings": {
155
167
  "document-setting": "文件設定",
156
- mode: "模式",
157
- "modern-mode": "現代模式",
158
- "classic-mode": "經典模式",
159
168
  "modern-width": "內容寬度",
160
169
  "modern-width-narrow": "窄",
161
170
  "modern-width-medium": "適中",
@@ -13,7 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import type { DocumentDataModel, ICommand, IDocumentData, ITextRange, JSONXActions, Nullable } from '@univerjs/core';
16
+ import type { DocumentDataModel, ICommand, IDocumentBody, IDocumentData, ITextRange, JSONXActions, Nullable } from '@univerjs/core';
17
17
  import type { DocumentViewModel, IRectRangeWithStyle, ITextRangeWithStyle } from '@univerjs/engine-render';
18
18
  import type { IDocClipboardPasteCustomRangeMapping } from '../../services/clipboard/doc-paste-mutation-adapter.service';
19
19
  export interface IInnerPasteCommandParams {
@@ -23,11 +23,17 @@ export interface IInnerPasteCommandParams {
23
23
  customRangeMappings?: IDocClipboardPasteCustomRangeMapping[];
24
24
  }
25
25
  export declare const InnerPasteCommand: ICommand<IInnerPasteCommandParams>;
26
- export declare function getCutActionsFromDocRanges(textRanges: Readonly<Nullable<ITextRangeWithStyle[]>>, rectRanges: Readonly<Nullable<IRectRangeWithStyle[]>>, docDataModel: DocumentDataModel, viewModel: DocumentViewModel, segmentId: string): JSONXActions;
26
+ export declare function getCutActionsFromDocRanges(textRanges: Readonly<Nullable<ITextRangeWithStyle[]>>, rectRanges: Readonly<Nullable<IRectRangeWithStyle[]>>, docDataModel: DocumentDataModel, viewModel: DocumentViewModel, segmentId: string, wholeBodySelected?: boolean): JSONXActions;
27
+ export declare function getReplaceDocRangesActions(textRanges: Readonly<Nullable<ITextRangeWithStyle[]>>, rectRanges: Readonly<Nullable<IRectRangeWithStyle[]>>, docDataModel: DocumentDataModel, viewModel: DocumentViewModel, segmentId: string, insertBody: IDocumentBody, wholeBodySelected?: boolean): {
28
+ actions: JSONXActions;
29
+ insertOffset: number;
30
+ } | null;
31
+ export declare function getDocRangeInsertOffset(textRanges: Readonly<Nullable<ITextRangeWithStyle[]>>, rectRanges: Readonly<Nullable<IRectRangeWithStyle[]>>): Nullable<number>;
27
32
  export interface IInnerCutCommandParams {
28
33
  segmentId: string;
29
34
  textRanges: ITextRangeWithStyle[];
30
35
  selections?: ITextRange[];
31
36
  rectRanges?: IRectRangeWithStyle[];
37
+ wholeBodySelected?: boolean;
32
38
  }
33
39
  export declare const CutContentCommand: ICommand<IInnerCutCommandParams>;
@@ -15,6 +15,8 @@
15
15
  */
16
16
  import type { ICommand } from '@univerjs/core';
17
17
  interface ISelectAllCommandParams {
18
+ segmentId?: string;
19
+ wholeDocument?: boolean;
18
20
  }
19
21
  export declare const DocSelectAllCommand: ICommand<ISelectAllCommandParams>;
20
22
  export {};
@@ -38,6 +38,7 @@ export interface IReplaceSelectionCommandParams {
38
38
  selection?: ITextRange;
39
39
  body: IDocumentBody;
40
40
  textRanges?: ITextRangeWithStyle[];
41
+ segmentId?: string;
41
42
  }
42
43
  export declare const ReplaceSelectionCommand: ICommand<IReplaceSelectionCommandParams>;
43
44
  interface IReplaceTextRunsCommandParams {
@@ -34,6 +34,7 @@ export interface IUniverDocsUIConfig {
34
34
  container?: HTMLElement | string;
35
35
  toc?: boolean;
36
36
  footer?: boolean;
37
+ wordCount?: boolean;
37
38
  placeholder?: boolean;
38
39
  fitToWidth?: IDocFitToWidthOptions;
39
40
  override?: DependencyOverride;
@@ -16,7 +16,7 @@
16
16
  import type { DocumentDataModel } from '@univerjs/core';
17
17
  import type { IRenderContext, IRenderModule } from '@univerjs/engine-render';
18
18
  import { Disposable, ICommandService } from '@univerjs/core';
19
- import { DocSkeletonManagerService, DocStateEmitService } from '@univerjs/docs';
19
+ import { DocSelectionManagerService, DocSkeletonManagerService, DocStateEmitService } from '@univerjs/docs';
20
20
  import { DocIMEInputManagerService } from '../../services/doc-ime-input-manager.service';
21
21
  import { DocSelectionRenderService } from '../../services/selection/doc-selection-render.service';
22
22
  export declare class DocIMEInputController extends Disposable implements IRenderModule {
@@ -25,13 +25,14 @@ export declare class DocIMEInputController extends Disposable implements IRender
25
25
  private readonly _docImeInputManagerService;
26
26
  private readonly _docSkeletonManagerService;
27
27
  private readonly _docStateEmitService;
28
+ private readonly _docSelectionManagerService;
28
29
  private readonly _commandService;
29
30
  private _previousIMEContent;
30
31
  private _isCompositionStart;
31
32
  private _onStartSubscription;
32
33
  private _onUpdateSubscription;
33
34
  private _onEndSubscription;
34
- constructor(_context: IRenderContext<DocumentDataModel>, _docSelectionRenderService: DocSelectionRenderService, _docImeInputManagerService: DocIMEInputManagerService, _docSkeletonManagerService: DocSkeletonManagerService, _docStateEmitService: DocStateEmitService, _commandService: ICommandService);
35
+ constructor(_context: IRenderContext<DocumentDataModel>, _docSelectionRenderService: DocSelectionRenderService, _docImeInputManagerService: DocIMEInputManagerService, _docSkeletonManagerService: DocSkeletonManagerService, _docStateEmitService: DocStateEmitService, _docSelectionManagerService: DocSelectionManagerService, _commandService: ICommandService);
35
36
  dispose(): void;
36
37
  private _initialize;
37
38
  private _initialOnCompositionstart;
@@ -17,8 +17,8 @@ import type { DocumentDataModel } from '@univerjs/core';
17
17
  import type { IRenderContext, IRenderModule } from '@univerjs/engine-render';
18
18
  import { Disposable, ICommandService } from '@univerjs/core';
19
19
  import { DocSkeletonManagerService } from '@univerjs/docs';
20
- import { DocMenuStyleService } from '../../services/doc-menu-style.service';
21
20
  import { IDocEmbedInteractionBoundaryService, IDocEmbedRuntimeFocusCoordinator } from '../../services/doc-embed-integration.service';
21
+ import { DocMenuStyleService } from '../../services/doc-menu-style.service';
22
22
  import { DocSelectionRenderService } from '../../services/selection/doc-selection-render.service';
23
23
  export declare class DocInputController extends Disposable implements IRenderModule {
24
24
  private readonly _context;
@@ -55,6 +55,6 @@ export declare class DocParagraphPlaceholderRenderController extends Disposable
55
55
  private _getLocale;
56
56
  }
57
57
  export declare function shouldRenderParagraphPlaceholder(documentModel: DocumentDataModel, unitId: string, config?: Nullable<IUniverDocsUIConfig>): boolean;
58
- export declare function getParagraphPlaceholderLayouts(page: IDocumentSkeletonPage, body: IDocumentBody, locale: IParagraphPlaceholderLocale, pageLeft?: number, pageTop?: number, activeOffset?: number, options?: IParagraphPlaceholderLayoutOptions): IParagraphPlaceholderLayout[];
58
+ export declare function getParagraphPlaceholderLayouts(page: IDocumentSkeletonPage, body: IDocumentBody, locale: IParagraphPlaceholderLocale, pageLeft: number | undefined, pageTop: number | undefined, activeOffset: number, options?: IParagraphPlaceholderLayoutOptions): IParagraphPlaceholderLayout[];
59
59
  export declare function drawParagraphPlaceholders(ctx: UniverRenderingContext, placeholders: IParagraphPlaceholderLayout[]): void;
60
60
  export {};
@@ -34,6 +34,7 @@ export declare class DocRenderController extends RxDisposable implements IRender
34
34
  private readonly _textSelectionManagerService;
35
35
  private readonly _docViewScaleService;
36
36
  private readonly _themeService;
37
+ private _changesetRenderScheduled;
37
38
  constructor(_context: IRenderContext<DocumentDataModel>, _commandService: ICommandService, _docSelectionRenderService: DocSelectionRenderService, _docSkeletonManagerService: DocSkeletonManagerService, _editorService: IEditorService, _renderManagerService: IRenderManagerService, _univerInstanceService: IUniverInstanceService, _docPageLayoutService: DocPageLayoutService, _textSelectionManagerService: DocSelectionManagerService, _docViewScaleService: DocViewScaleService, _themeService: ThemeService);
38
39
  reRender(unitId: string): void;
39
40
  private _addNewRender;
@@ -42,6 +43,7 @@ export declare class DocRenderController extends RxDisposable implements IRender
42
43
  private _initRenderRefresh;
43
44
  private _create;
44
45
  private _initCommandListener;
46
+ private _scheduleChangesetRender;
45
47
  private _initThemeListener;
46
48
  private _refreshPagePositionAndSelection;
47
49
  private _recalculateSizeBySkeleton;
@@ -117,6 +117,7 @@ export { getCanvasOffsetByEngine, getTextRangeFromCharIndex } from './services/s
117
117
  export { getAnchorBounding, getLineBounding, TEXT_RANGE_LAYER_INDEX, TextRange } from './services/selection/text-range';
118
118
  export { whenDocAndEditorFocused } from './shortcuts/utils';
119
119
  export { DOC_VERTICAL_PADDING } from './types/const/padding';
120
+ export { BulletListTypePicker, OrderListTypePicker } from './views/list-type-picker/Picker';
120
121
  export { createEditorUndoRedoKeyboardConfig, executeEditorUndoRedoCommand, useEditor, useEditorClickOutside, useIsFocusing, useKeyboardEvent, useLeftAndRightArrow, useOnChange, useResize, } from './views/rich-text-editor/hooks';
121
122
  export type { ICreateEditorUndoRedoKeyboardConfigOptions, IExecuteEditorUndoRedoCommandOptions, IKeyboardEventConfig, } from './views/rich-text-editor/hooks';
122
123
  export { RichTextEditor } from './views/RichTextEditor';
@@ -16,8 +16,6 @@
16
16
  declare const locale: {
17
17
  'docs-ui': {
18
18
  toolbar: {
19
- undo: string;
20
- redo: string;
21
19
  font: string;
22
20
  fontSize: string;
23
21
  bold: string;
@@ -42,7 +40,6 @@ declare const locale: {
42
40
  order: string;
43
41
  unorder: string;
44
42
  checklist: string;
45
- documentFlavor: string;
46
43
  alignLeft: string;
47
44
  alignCenter: string;
48
45
  alignRight: string;
@@ -92,6 +89,22 @@ declare const locale: {
92
89
  closeHeaderFooter: string;
93
90
  disableText: string;
94
91
  };
92
+ statistics: {
93
+ title: string;
94
+ open: string;
95
+ document: string;
96
+ selection: string;
97
+ wordCount: string;
98
+ selectedWords: string;
99
+ pages: string;
100
+ words: string;
101
+ charactersWithoutSpaces: string;
102
+ charactersWithSpaces: string;
103
+ paragraphs: string;
104
+ lines: string;
105
+ nonAsianWords: string;
106
+ asianCharactersAndKoreanWords: string;
107
+ };
95
108
  placeholder: {
96
109
  heading1: string;
97
110
  heading2: string;
@@ -127,7 +140,6 @@ declare const locale: {
127
140
  multiSpace: string;
128
141
  atLeast: string;
129
142
  exactly: string;
130
- fixedValue: string;
131
143
  };
132
144
  sectionSetting: {
133
145
  selectedSections: string;
@@ -174,9 +186,6 @@ declare const locale: {
174
186
  };
175
187
  'page-settings': {
176
188
  'document-setting': string;
177
- mode: string;
178
- 'modern-mode': string;
179
- 'classic-mode': string;
180
189
  'modern-width': string;
181
190
  'modern-width-narrow': string;
182
191
  'modern-width-medium': string;