@ckeditor/ckeditor5-ui 41.1.0 → 41.3.0-alpha.0

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 (177) hide show
  1. package/ckeditor5-metadata.json +14 -0
  2. package/dist/content-index.css +4 -0
  3. package/dist/editor-index.css +451 -0
  4. package/dist/index.css +856 -0
  5. package/dist/index.css.map +1 -0
  6. package/dist/index.js +13857 -0
  7. package/dist/index.js.map +1 -0
  8. package/dist/types/arialiveannouncer.d.ts +98 -0
  9. package/dist/types/augmentation.d.ts +88 -0
  10. package/dist/types/autocomplete/autocompleteview.d.ts +81 -0
  11. package/dist/types/bindings/addkeyboardhandlingforgrid.d.ts +27 -0
  12. package/dist/types/bindings/clickoutsidehandler.d.ts +28 -0
  13. package/dist/types/bindings/csstransitiondisablermixin.d.ts +40 -0
  14. package/dist/types/bindings/draggableviewmixin.d.ts +46 -0
  15. package/dist/types/bindings/injectcsstransitiondisabler.d.ts +59 -0
  16. package/dist/types/bindings/preventdefault.d.ts +33 -0
  17. package/dist/types/bindings/submithandler.d.ts +57 -0
  18. package/dist/types/button/button.d.ts +175 -0
  19. package/dist/types/button/buttonlabel.d.ts +34 -0
  20. package/dist/types/button/buttonlabelview.d.ts +31 -0
  21. package/dist/types/button/buttonview.d.ts +181 -0
  22. package/dist/types/button/switchbuttonview.d.ts +45 -0
  23. package/dist/types/collapsible/collapsibleview.d.ts +70 -0
  24. package/dist/types/colorgrid/colorgridview.d.ts +132 -0
  25. package/dist/types/colorgrid/colortileview.d.ts +28 -0
  26. package/dist/types/colorgrid/utils.d.ts +47 -0
  27. package/dist/types/colorpicker/colorpickerview.d.ts +142 -0
  28. package/dist/types/colorpicker/utils.d.ts +48 -0
  29. package/dist/types/colorselector/colorgridsfragmentview.d.ts +195 -0
  30. package/dist/types/colorselector/colorpickerfragmentview.d.ts +129 -0
  31. package/dist/types/colorselector/colorselectorview.d.ts +242 -0
  32. package/dist/types/colorselector/documentcolorcollection.d.ts +70 -0
  33. package/dist/types/componentfactory.d.ts +81 -0
  34. package/dist/types/dialog/dialog.d.ts +273 -0
  35. package/dist/types/dialog/dialogactionsview.d.ts +69 -0
  36. package/dist/types/dialog/dialogcontentview.d.ts +27 -0
  37. package/dist/types/dialog/dialogview.d.ts +256 -0
  38. package/dist/types/dropdown/button/dropdownbutton.d.ts +25 -0
  39. package/dist/types/dropdown/button/dropdownbuttonview.d.ts +48 -0
  40. package/dist/types/dropdown/button/splitbuttonview.d.ts +162 -0
  41. package/dist/types/dropdown/dropdownpanelfocusable.d.ts +21 -0
  42. package/dist/types/dropdown/dropdownpanelview.d.ts +62 -0
  43. package/dist/types/dropdown/dropdownview.d.ts +315 -0
  44. package/dist/types/dropdown/utils.d.ts +235 -0
  45. package/dist/types/editableui/editableuiview.d.ts +72 -0
  46. package/dist/types/editableui/inline/inlineeditableuiview.d.ts +40 -0
  47. package/dist/types/editorui/accessibilityhelp/accessibilityhelp.d.ts +47 -0
  48. package/dist/types/editorui/accessibilityhelp/accessibilityhelpcontentview.d.ts +35 -0
  49. package/dist/types/editorui/bodycollection.d.ts +55 -0
  50. package/dist/types/editorui/boxed/boxededitoruiview.d.ts +40 -0
  51. package/dist/types/editorui/editorui.d.ts +288 -0
  52. package/dist/types/editorui/editoruiview.d.ts +39 -0
  53. package/dist/types/editorui/poweredby.d.ts +71 -0
  54. package/dist/types/focuscycler.d.ts +245 -0
  55. package/dist/types/formheader/formheaderview.d.ts +59 -0
  56. package/dist/types/highlightedtext/highlightedtextview.d.ts +38 -0
  57. package/dist/types/icon/iconview.d.ts +88 -0
  58. package/dist/types/iframe/iframeview.d.ts +50 -0
  59. package/dist/types/index.d.ts +74 -0
  60. package/dist/types/input/inputbase.d.ts +107 -0
  61. package/dist/types/input/inputview.d.ts +36 -0
  62. package/dist/types/inputnumber/inputnumberview.d.ts +49 -0
  63. package/dist/types/inputtext/inputtextview.d.ts +18 -0
  64. package/dist/types/label/labelview.d.ts +36 -0
  65. package/dist/types/labeledfield/labeledfieldview.d.ts +187 -0
  66. package/dist/types/labeledfield/utils.d.ts +123 -0
  67. package/dist/types/labeledinput/labeledinputview.d.ts +125 -0
  68. package/dist/types/list/listitemgroupview.d.ts +59 -0
  69. package/dist/types/list/listitemview.d.ts +36 -0
  70. package/dist/types/list/listseparatorview.d.ts +18 -0
  71. package/dist/types/list/listview.d.ts +124 -0
  72. package/dist/types/model.d.ts +22 -0
  73. package/dist/types/notification/notification.d.ts +211 -0
  74. package/dist/types/panel/balloon/balloonpanelview.d.ts +685 -0
  75. package/dist/types/panel/balloon/contextualballoon.d.ts +299 -0
  76. package/dist/types/panel/sticky/stickypanelview.d.ts +156 -0
  77. package/dist/types/search/filteredview.d.ts +31 -0
  78. package/dist/types/search/searchinfoview.d.ts +45 -0
  79. package/dist/types/search/searchresultsview.d.ts +54 -0
  80. package/dist/types/search/text/searchtextqueryview.d.ts +76 -0
  81. package/dist/types/search/text/searchtextview.d.ts +219 -0
  82. package/dist/types/spinner/spinnerview.d.ts +25 -0
  83. package/dist/types/template.d.ts +942 -0
  84. package/dist/types/textarea/textareaview.d.ts +104 -0
  85. package/dist/types/toolbar/balloon/balloontoolbar.d.ts +117 -0
  86. package/dist/types/toolbar/block/blockbuttonview.d.ts +35 -0
  87. package/dist/types/toolbar/block/blocktoolbar.d.ts +153 -0
  88. package/dist/types/toolbar/normalizetoolbarconfig.d.ts +40 -0
  89. package/dist/types/toolbar/toolbarlinebreakview.d.ts +18 -0
  90. package/dist/types/toolbar/toolbarseparatorview.d.ts +18 -0
  91. package/dist/types/toolbar/toolbarview.d.ts +267 -0
  92. package/dist/types/tooltipmanager.d.ts +184 -0
  93. package/dist/types/view.d.ts +422 -0
  94. package/dist/types/viewcollection.d.ts +139 -0
  95. package/lang/contexts.json +7 -1
  96. package/lang/translations/ar.po +24 -0
  97. package/lang/translations/ast.po +24 -0
  98. package/lang/translations/az.po +24 -0
  99. package/lang/translations/bg.po +24 -0
  100. package/lang/translations/bn.po +24 -0
  101. package/lang/translations/ca.po +24 -0
  102. package/lang/translations/cs.po +24 -0
  103. package/lang/translations/da.po +24 -0
  104. package/lang/translations/de-ch.po +24 -0
  105. package/lang/translations/de.po +24 -0
  106. package/lang/translations/el.po +24 -0
  107. package/lang/translations/en-au.po +24 -0
  108. package/lang/translations/en-gb.po +24 -0
  109. package/lang/translations/en.po +24 -0
  110. package/lang/translations/eo.po +24 -0
  111. package/lang/translations/es.po +24 -0
  112. package/lang/translations/et.po +24 -0
  113. package/lang/translations/eu.po +24 -0
  114. package/lang/translations/fa.po +24 -0
  115. package/lang/translations/fi.po +24 -0
  116. package/lang/translations/fr.po +24 -0
  117. package/lang/translations/gl.po +24 -0
  118. package/lang/translations/he.po +25 -1
  119. package/lang/translations/hi.po +24 -0
  120. package/lang/translations/hr.po +24 -0
  121. package/lang/translations/hu.po +24 -0
  122. package/lang/translations/id.po +24 -0
  123. package/lang/translations/it.po +24 -0
  124. package/lang/translations/ja.po +24 -0
  125. package/lang/translations/km.po +24 -0
  126. package/lang/translations/kn.po +24 -0
  127. package/lang/translations/ko.po +24 -0
  128. package/lang/translations/ku.po +24 -0
  129. package/lang/translations/lt.po +24 -0
  130. package/lang/translations/lv.po +24 -0
  131. package/lang/translations/ms.po +24 -0
  132. package/lang/translations/nb.po +24 -0
  133. package/lang/translations/ne.po +24 -0
  134. package/lang/translations/nl.po +24 -0
  135. package/lang/translations/no.po +24 -0
  136. package/lang/translations/pl.po +24 -0
  137. package/lang/translations/pt-br.po +24 -0
  138. package/lang/translations/pt.po +25 -1
  139. package/lang/translations/ro.po +24 -0
  140. package/lang/translations/ru.po +24 -0
  141. package/lang/translations/sk.po +24 -0
  142. package/lang/translations/sl.po +24 -0
  143. package/lang/translations/sq.po +24 -0
  144. package/lang/translations/sr-latn.po +24 -0
  145. package/lang/translations/sr.po +24 -0
  146. package/lang/translations/sv.po +24 -0
  147. package/lang/translations/th.po +24 -0
  148. package/lang/translations/tk.po +24 -0
  149. package/lang/translations/tr.po +24 -0
  150. package/lang/translations/tt.po +24 -0
  151. package/lang/translations/ug.po +24 -0
  152. package/lang/translations/uk.po +24 -0
  153. package/lang/translations/ur.po +24 -0
  154. package/lang/translations/uz.po +24 -0
  155. package/lang/translations/vi.po +24 -0
  156. package/lang/translations/zh-cn.po +24 -0
  157. package/lang/translations/zh.po +24 -0
  158. package/package.json +4 -3
  159. package/src/augmentation.d.ts +2 -1
  160. package/src/colorpicker/colorpickerview.js +0 -1
  161. package/src/dialog/dialog.js +10 -0
  162. package/src/editorui/accessibilityhelp/accessibilityhelp.d.ts +47 -0
  163. package/src/editorui/accessibilityhelp/accessibilityhelp.js +111 -0
  164. package/src/editorui/accessibilityhelp/accessibilityhelpcontentview.d.ts +35 -0
  165. package/src/editorui/accessibilityhelp/accessibilityhelpcontentview.js +112 -0
  166. package/src/formheader/formheaderview.js +2 -1
  167. package/src/index.d.ts +3 -2
  168. package/src/index.js +3 -1
  169. package/src/toolbar/balloon/balloontoolbar.d.ts +0 -5
  170. package/src/toolbar/balloon/balloontoolbar.js +5 -8
  171. package/src/toolbar/block/blocktoolbar.d.ts +0 -8
  172. package/src/toolbar/block/blocktoolbar.js +9 -14
  173. package/src/toolbar/toolbarview.js +2 -3
  174. package/src/tooltipmanager.d.ts +5 -1
  175. package/src/tooltipmanager.js +32 -4
  176. package/theme/components/editorui/accessibilityhelp.css +10 -0
  177. package/theme/icons/accessibility.svg +1 -0
@@ -144,3 +144,27 @@ msgstr ""
144
144
  msgctxt "The label and the tooltip for the close button in the dialog header."
145
145
  msgid "Close"
146
146
  msgstr ""
147
+
148
+ msgctxt "Accessibility help dialog assistive technologies label telling users how to exit the dialog."
149
+ msgid "Help Contents. To close this dialog press ESC."
150
+ msgstr ""
151
+
152
+ msgctxt "Accessibility help dialog text explaining what can be found in that dialog."
153
+ msgid "Below, you can find a list of keyboard shortcuts that can be used in the editor."
154
+ msgstr ""
155
+
156
+ msgctxt "Accessibility help dialog text displayed next to keystrokes that may require the Fn key on Mac."
157
+ msgid "(may require <kbd>Fn</kbd>)"
158
+ msgstr ""
159
+
160
+ msgctxt "Accessibility help dialog title."
161
+ msgid "Accessibility help"
162
+ msgstr ""
163
+
164
+ msgctxt "Assistive technologies label added to each editor editing area informing users about the possibility of opening the accessibility help dialog."
165
+ msgid "Press %0 for help."
166
+ msgstr ""
167
+
168
+ msgctxt "Keystroke description for assistive technologies: keystroke for moving focus out of an active dialog window."
169
+ msgid "Move focus in and out of an active dialog window"
170
+ msgstr ""
@@ -144,3 +144,27 @@ msgstr "Dijalog za uređivanje"
144
144
  msgctxt "The label and the tooltip for the close button in the dialog header."
145
145
  msgid "Close"
146
146
  msgstr "Zatvori"
147
+
148
+ msgctxt "Accessibility help dialog assistive technologies label telling users how to exit the dialog."
149
+ msgid "Help Contents. To close this dialog press ESC."
150
+ msgstr "Sadržaji za pomoć. Kako biste zatvorili ovaj dijalog pritisnite taster ESC."
151
+
152
+ msgctxt "Accessibility help dialog text explaining what can be found in that dialog."
153
+ msgid "Below, you can find a list of keyboard shortcuts that can be used in the editor."
154
+ msgstr "Ispod možete pronaći listu prečica na tastaturi koje se mogu koristiti u uređivaču."
155
+
156
+ msgctxt "Accessibility help dialog text displayed next to keystrokes that may require the Fn key on Mac."
157
+ msgid "(may require <kbd>Fn</kbd>)"
158
+ msgstr "(možda će biti neophodan <kbd>Fn</kbd>)"
159
+
160
+ msgctxt "Accessibility help dialog title."
161
+ msgid "Accessibility help"
162
+ msgstr "Pomoć oko pristupačnosti"
163
+
164
+ msgctxt "Assistive technologies label added to each editor editing area informing users about the possibility of opening the accessibility help dialog."
165
+ msgid "Press %0 for help."
166
+ msgstr "Pritisni %0 za pomoć."
167
+
168
+ msgctxt "Keystroke description for assistive technologies: keystroke for moving focus out of an active dialog window."
169
+ msgid "Move focus in and out of an active dialog window"
170
+ msgstr "Pomeri fokus u i van aktivnog prozora dijaloga"
@@ -144,3 +144,27 @@ msgstr "Ordbehandlardialog"
144
144
  msgctxt "The label and the tooltip for the close button in the dialog header."
145
145
  msgid "Close"
146
146
  msgstr "Stäng"
147
+
148
+ msgctxt "Accessibility help dialog assistive technologies label telling users how to exit the dialog."
149
+ msgid "Help Contents. To close this dialog press ESC."
150
+ msgstr "Hjälpinnehåll. Tryck på ESC för att stänga dialogrutan."
151
+
152
+ msgctxt "Accessibility help dialog text explaining what can be found in that dialog."
153
+ msgid "Below, you can find a list of keyboard shortcuts that can be used in the editor."
154
+ msgstr "Nedan hittar du en lista med kortkommandon som kan användas i redigeraren."
155
+
156
+ msgctxt "Accessibility help dialog text displayed next to keystrokes that may require the Fn key on Mac."
157
+ msgid "(may require <kbd>Fn</kbd>)"
158
+ msgstr "(kan kräva <kbd>Fn</kbd>)"
159
+
160
+ msgctxt "Accessibility help dialog title."
161
+ msgid "Accessibility help"
162
+ msgstr "Hjälp med tillgänglighet"
163
+
164
+ msgctxt "Assistive technologies label added to each editor editing area informing users about the possibility of opening the accessibility help dialog."
165
+ msgid "Press %0 for help."
166
+ msgstr "Tryck på %0 för hjälp."
167
+
168
+ msgctxt "Keystroke description for assistive technologies: keystroke for moving focus out of an active dialog window."
169
+ msgid "Move focus in and out of an active dialog window"
170
+ msgstr "Flytta fokus till och från en aktiv dialogruta"
@@ -144,3 +144,27 @@ msgstr "การสนทนาของบรรณาธิการ"
144
144
  msgctxt "The label and the tooltip for the close button in the dialog header."
145
145
  msgid "Close"
146
146
  msgstr "ปิด"
147
+
148
+ msgctxt "Accessibility help dialog assistive technologies label telling users how to exit the dialog."
149
+ msgid "Help Contents. To close this dialog press ESC."
150
+ msgstr "เนื้อหาความช่วยเหลือ หากต้องการปิดกล่องโต้ตอบนี้ ให้กดปุ่ม ESC"
151
+
152
+ msgctxt "Accessibility help dialog text explaining what can be found in that dialog."
153
+ msgid "Below, you can find a list of keyboard shortcuts that can be used in the editor."
154
+ msgstr "ด้านล่างนี้ คุณจะพบกับรายการแป้นพิมพ์ลัดที่สามารถใช้ในตัวแก้ไขได้"
155
+
156
+ msgctxt "Accessibility help dialog text displayed next to keystrokes that may require the Fn key on Mac."
157
+ msgid "(may require <kbd>Fn</kbd>)"
158
+ msgstr "(อาจจำเป็นต้องมี <kbd>Fn</kbd>)"
159
+
160
+ msgctxt "Accessibility help dialog title."
161
+ msgid "Accessibility help"
162
+ msgstr "ความช่วยเหลือการเข้าถึง"
163
+
164
+ msgctxt "Assistive technologies label added to each editor editing area informing users about the possibility of opening the accessibility help dialog."
165
+ msgid "Press %0 for help."
166
+ msgstr "กด %0 เพื่อความช่วยเหลือ"
167
+
168
+ msgctxt "Keystroke description for assistive technologies: keystroke for moving focus out of an active dialog window."
169
+ msgid "Move focus in and out of an active dialog window"
170
+ msgstr "ย้ายโฟกัสเข้าและออกจากกล่องโต้ตอบที่ใช้งานอยู่"
@@ -144,3 +144,27 @@ msgstr ""
144
144
  msgctxt "The label and the tooltip for the close button in the dialog header."
145
145
  msgid "Close"
146
146
  msgstr ""
147
+
148
+ msgctxt "Accessibility help dialog assistive technologies label telling users how to exit the dialog."
149
+ msgid "Help Contents. To close this dialog press ESC."
150
+ msgstr ""
151
+
152
+ msgctxt "Accessibility help dialog text explaining what can be found in that dialog."
153
+ msgid "Below, you can find a list of keyboard shortcuts that can be used in the editor."
154
+ msgstr ""
155
+
156
+ msgctxt "Accessibility help dialog text displayed next to keystrokes that may require the Fn key on Mac."
157
+ msgid "(may require <kbd>Fn</kbd>)"
158
+ msgstr ""
159
+
160
+ msgctxt "Accessibility help dialog title."
161
+ msgid "Accessibility help"
162
+ msgstr ""
163
+
164
+ msgctxt "Assistive technologies label added to each editor editing area informing users about the possibility of opening the accessibility help dialog."
165
+ msgid "Press %0 for help."
166
+ msgstr ""
167
+
168
+ msgctxt "Keystroke description for assistive technologies: keystroke for moving focus out of an active dialog window."
169
+ msgid "Move focus in and out of an active dialog window"
170
+ msgstr ""
@@ -144,3 +144,27 @@ msgstr "Düzenleyici iletişim kutusu"
144
144
  msgctxt "The label and the tooltip for the close button in the dialog header."
145
145
  msgid "Close"
146
146
  msgstr "Kapat"
147
+
148
+ msgctxt "Accessibility help dialog assistive technologies label telling users how to exit the dialog."
149
+ msgid "Help Contents. To close this dialog press ESC."
150
+ msgstr "Yardım İçerikleri. Bu iletişim kutusunu kapatmak için ESC tuşuna basın."
151
+
152
+ msgctxt "Accessibility help dialog text explaining what can be found in that dialog."
153
+ msgid "Below, you can find a list of keyboard shortcuts that can be used in the editor."
154
+ msgstr "Aşağıda editörde kullanılabilecek klavye kısayollarının bir listesini bulabilirsiniz."
155
+
156
+ msgctxt "Accessibility help dialog text displayed next to keystrokes that may require the Fn key on Mac."
157
+ msgid "(may require <kbd>Fn</kbd>)"
158
+ msgstr "(<kbd>Fn</kbd> gerekebilir)"
159
+
160
+ msgctxt "Accessibility help dialog title."
161
+ msgid "Accessibility help"
162
+ msgstr "Erişilebilirlik yardımı"
163
+
164
+ msgctxt "Assistive technologies label added to each editor editing area informing users about the possibility of opening the accessibility help dialog."
165
+ msgid "Press %0 for help."
166
+ msgstr "Yardım için %0 tuşuna basın."
167
+
168
+ msgctxt "Keystroke description for assistive technologies: keystroke for moving focus out of an active dialog window."
169
+ msgid "Move focus in and out of an active dialog window"
170
+ msgstr "Odağı etkin iletişim penceresinin içine ve dışına taşı"
@@ -144,3 +144,27 @@ msgstr ""
144
144
  msgctxt "The label and the tooltip for the close button in the dialog header."
145
145
  msgid "Close"
146
146
  msgstr ""
147
+
148
+ msgctxt "Accessibility help dialog assistive technologies label telling users how to exit the dialog."
149
+ msgid "Help Contents. To close this dialog press ESC."
150
+ msgstr ""
151
+
152
+ msgctxt "Accessibility help dialog text explaining what can be found in that dialog."
153
+ msgid "Below, you can find a list of keyboard shortcuts that can be used in the editor."
154
+ msgstr ""
155
+
156
+ msgctxt "Accessibility help dialog text displayed next to keystrokes that may require the Fn key on Mac."
157
+ msgid "(may require <kbd>Fn</kbd>)"
158
+ msgstr ""
159
+
160
+ msgctxt "Accessibility help dialog title."
161
+ msgid "Accessibility help"
162
+ msgstr ""
163
+
164
+ msgctxt "Assistive technologies label added to each editor editing area informing users about the possibility of opening the accessibility help dialog."
165
+ msgid "Press %0 for help."
166
+ msgstr ""
167
+
168
+ msgctxt "Keystroke description for assistive technologies: keystroke for moving focus out of an active dialog window."
169
+ msgid "Move focus in and out of an active dialog window"
170
+ msgstr ""
@@ -144,3 +144,27 @@ msgstr ""
144
144
  msgctxt "The label and the tooltip for the close button in the dialog header."
145
145
  msgid "Close"
146
146
  msgstr ""
147
+
148
+ msgctxt "Accessibility help dialog assistive technologies label telling users how to exit the dialog."
149
+ msgid "Help Contents. To close this dialog press ESC."
150
+ msgstr ""
151
+
152
+ msgctxt "Accessibility help dialog text explaining what can be found in that dialog."
153
+ msgid "Below, you can find a list of keyboard shortcuts that can be used in the editor."
154
+ msgstr ""
155
+
156
+ msgctxt "Accessibility help dialog text displayed next to keystrokes that may require the Fn key on Mac."
157
+ msgid "(may require <kbd>Fn</kbd>)"
158
+ msgstr ""
159
+
160
+ msgctxt "Accessibility help dialog title."
161
+ msgid "Accessibility help"
162
+ msgstr ""
163
+
164
+ msgctxt "Assistive technologies label added to each editor editing area informing users about the possibility of opening the accessibility help dialog."
165
+ msgid "Press %0 for help."
166
+ msgstr ""
167
+
168
+ msgctxt "Keystroke description for assistive technologies: keystroke for moving focus out of an active dialog window."
169
+ msgid "Move focus in and out of an active dialog window"
170
+ msgstr ""
@@ -144,3 +144,27 @@ msgstr "Діалогове вікно редактора"
144
144
  msgctxt "The label and the tooltip for the close button in the dialog header."
145
145
  msgid "Close"
146
146
  msgstr "Закрити"
147
+
148
+ msgctxt "Accessibility help dialog assistive technologies label telling users how to exit the dialog."
149
+ msgid "Help Contents. To close this dialog press ESC."
150
+ msgstr "Зміст довідки. Щоб закрити це діалогове вікно, натисніть ESC."
151
+
152
+ msgctxt "Accessibility help dialog text explaining what can be found in that dialog."
153
+ msgid "Below, you can find a list of keyboard shortcuts that can be used in the editor."
154
+ msgstr "Нижче ви можете знайти список комбінацій клавіш, які можна використовувати в редакторі."
155
+
156
+ msgctxt "Accessibility help dialog text displayed next to keystrokes that may require the Fn key on Mac."
157
+ msgid "(may require <kbd>Fn</kbd>)"
158
+ msgstr "(може вимагати <kbd>Fn</kbd>)"
159
+
160
+ msgctxt "Accessibility help dialog title."
161
+ msgid "Accessibility help"
162
+ msgstr "Довідка щодо доступності"
163
+
164
+ msgctxt "Assistive technologies label added to each editor editing area informing users about the possibility of opening the accessibility help dialog."
165
+ msgid "Press %0 for help."
166
+ msgstr "Натисніть %0 для довідки."
167
+
168
+ msgctxt "Keystroke description for assistive technologies: keystroke for moving focus out of an active dialog window."
169
+ msgid "Move focus in and out of an active dialog window"
170
+ msgstr "Переміщення фокуса в активному діалоговому вікні та з нього"
@@ -144,3 +144,27 @@ msgstr ""
144
144
  msgctxt "The label and the tooltip for the close button in the dialog header."
145
145
  msgid "Close"
146
146
  msgstr ""
147
+
148
+ msgctxt "Accessibility help dialog assistive technologies label telling users how to exit the dialog."
149
+ msgid "Help Contents. To close this dialog press ESC."
150
+ msgstr ""
151
+
152
+ msgctxt "Accessibility help dialog text explaining what can be found in that dialog."
153
+ msgid "Below, you can find a list of keyboard shortcuts that can be used in the editor."
154
+ msgstr ""
155
+
156
+ msgctxt "Accessibility help dialog text displayed next to keystrokes that may require the Fn key on Mac."
157
+ msgid "(may require <kbd>Fn</kbd>)"
158
+ msgstr ""
159
+
160
+ msgctxt "Accessibility help dialog title."
161
+ msgid "Accessibility help"
162
+ msgstr ""
163
+
164
+ msgctxt "Assistive technologies label added to each editor editing area informing users about the possibility of opening the accessibility help dialog."
165
+ msgid "Press %0 for help."
166
+ msgstr ""
167
+
168
+ msgctxt "Keystroke description for assistive technologies: keystroke for moving focus out of an active dialog window."
169
+ msgid "Move focus in and out of an active dialog window"
170
+ msgstr ""
@@ -144,3 +144,27 @@ msgstr ""
144
144
  msgctxt "The label and the tooltip for the close button in the dialog header."
145
145
  msgid "Close"
146
146
  msgstr ""
147
+
148
+ msgctxt "Accessibility help dialog assistive technologies label telling users how to exit the dialog."
149
+ msgid "Help Contents. To close this dialog press ESC."
150
+ msgstr ""
151
+
152
+ msgctxt "Accessibility help dialog text explaining what can be found in that dialog."
153
+ msgid "Below, you can find a list of keyboard shortcuts that can be used in the editor."
154
+ msgstr ""
155
+
156
+ msgctxt "Accessibility help dialog text displayed next to keystrokes that may require the Fn key on Mac."
157
+ msgid "(may require <kbd>Fn</kbd>)"
158
+ msgstr ""
159
+
160
+ msgctxt "Accessibility help dialog title."
161
+ msgid "Accessibility help"
162
+ msgstr ""
163
+
164
+ msgctxt "Assistive technologies label added to each editor editing area informing users about the possibility of opening the accessibility help dialog."
165
+ msgid "Press %0 for help."
166
+ msgstr ""
167
+
168
+ msgctxt "Keystroke description for assistive technologies: keystroke for moving focus out of an active dialog window."
169
+ msgid "Move focus in and out of an active dialog window"
170
+ msgstr ""
@@ -144,3 +144,27 @@ msgstr "Hộp thoại trình biên tập"
144
144
  msgctxt "The label and the tooltip for the close button in the dialog header."
145
145
  msgid "Close"
146
146
  msgstr "Đóng"
147
+
148
+ msgctxt "Accessibility help dialog assistive technologies label telling users how to exit the dialog."
149
+ msgid "Help Contents. To close this dialog press ESC."
150
+ msgstr "Nội dung Trợ giúp. Nhấn phím ESC để đóng hộp thoại này."
151
+
152
+ msgctxt "Accessibility help dialog text explaining what can be found in that dialog."
153
+ msgid "Below, you can find a list of keyboard shortcuts that can be used in the editor."
154
+ msgstr "Dưới đây, bạn có thể tìm thấy danh sách các phím tắt mà bạn có thể dùng trong trình biên tập này."
155
+
156
+ msgctxt "Accessibility help dialog text displayed next to keystrokes that may require the Fn key on Mac."
157
+ msgid "(may require <kbd>Fn</kbd>)"
158
+ msgstr "(có thể cần nhấn phím <kbd>Fn</kbd>)"
159
+
160
+ msgctxt "Accessibility help dialog title."
161
+ msgid "Accessibility help"
162
+ msgstr "Trợ giúp về khả năng truy cập"
163
+
164
+ msgctxt "Assistive technologies label added to each editor editing area informing users about the possibility of opening the accessibility help dialog."
165
+ msgid "Press %0 for help."
166
+ msgstr "Nhấn %0 để được trợ giúp."
167
+
168
+ msgctxt "Keystroke description for assistive technologies: keystroke for moving focus out of an active dialog window."
169
+ msgid "Move focus in and out of an active dialog window"
170
+ msgstr "Di chuyển tiêu điểm vào và ra khỏi cửa sổ hộp thoại đang kích hoạt"
@@ -144,3 +144,27 @@ msgstr "编辑器对话框"
144
144
  msgctxt "The label and the tooltip for the close button in the dialog header."
145
145
  msgid "Close"
146
146
  msgstr "关闭"
147
+
148
+ msgctxt "Accessibility help dialog assistive technologies label telling users how to exit the dialog."
149
+ msgid "Help Contents. To close this dialog press ESC."
150
+ msgstr "帮助内容。要关闭此对话框,请按 ESC 键。"
151
+
152
+ msgctxt "Accessibility help dialog text explaining what can be found in that dialog."
153
+ msgid "Below, you can find a list of keyboard shortcuts that can be used in the editor."
154
+ msgstr "您可以在下方找到可在编辑器中使用的键盘快捷键列表。"
155
+
156
+ msgctxt "Accessibility help dialog text displayed next to keystrokes that may require the Fn key on Mac."
157
+ msgid "(may require <kbd>Fn</kbd>)"
158
+ msgstr "(可能需要用到 <kbd>Fn</kbd>键)"
159
+
160
+ msgctxt "Accessibility help dialog title."
161
+ msgid "Accessibility help"
162
+ msgstr "无障碍辅助功能帮助"
163
+
164
+ msgctxt "Assistive technologies label added to each editor editing area informing users about the possibility of opening the accessibility help dialog."
165
+ msgid "Press %0 for help."
166
+ msgstr "按 %0 获取帮助。"
167
+
168
+ msgctxt "Keystroke description for assistive technologies: keystroke for moving focus out of an active dialog window."
169
+ msgid "Move focus in and out of an active dialog window"
170
+ msgstr "将焦点移入或移出活跃的对话框窗口"
@@ -144,3 +144,27 @@ msgstr "編輯工具對話框"
144
144
  msgctxt "The label and the tooltip for the close button in the dialog header."
145
145
  msgid "Close"
146
146
  msgstr "關閉"
147
+
148
+ msgctxt "Accessibility help dialog assistive technologies label telling users how to exit the dialog."
149
+ msgid "Help Contents. To close this dialog press ESC."
150
+ msgstr "協助內容。想關閉此對話框,請按 ESC 鍵。"
151
+
152
+ msgctxt "Accessibility help dialog text explaining what can be found in that dialog."
153
+ msgid "Below, you can find a list of keyboard shortcuts that can be used in the editor."
154
+ msgstr "下方是可在編輯器中使用的鍵盤快捷鍵列表。"
155
+
156
+ msgctxt "Accessibility help dialog text displayed next to keystrokes that may require the Fn key on Mac."
157
+ msgid "(may require <kbd>Fn</kbd>)"
158
+ msgstr "(可能需要 <kbd>Fn</kbd>)"
159
+
160
+ msgctxt "Accessibility help dialog title."
161
+ msgid "Accessibility help"
162
+ msgstr "無障礙協助"
163
+
164
+ msgctxt "Assistive technologies label added to each editor editing area informing users about the possibility of opening the accessibility help dialog."
165
+ msgid "Press %0 for help."
166
+ msgstr "按下 %0 來取得協助。"
167
+
168
+ msgctxt "Keystroke description for assistive technologies: keystroke for moving focus out of an active dialog window."
169
+ msgid "Move focus in and out of an active dialog window"
170
+ msgstr "將焦點移入或移出啟用中的對話視窗"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-ui",
3
- "version": "41.1.0",
3
+ "version": "41.3.0-alpha.0",
4
4
  "description": "The UI framework and standard UI library of CKEditor 5.",
5
5
  "keywords": [
6
6
  "ckeditor",
@@ -12,8 +12,8 @@
12
12
  "type": "module",
13
13
  "main": "src/index.js",
14
14
  "dependencies": {
15
- "@ckeditor/ckeditor5-core": "41.1.0",
16
- "@ckeditor/ckeditor5-utils": "41.1.0",
15
+ "@ckeditor/ckeditor5-core": "41.3.0-alpha.0",
16
+ "@ckeditor/ckeditor5-utils": "41.3.0-alpha.0",
17
17
  "color-convert": "2.0.1",
18
18
  "color-parse": "1.4.2",
19
19
  "lodash-es": "4.17.21",
@@ -29,6 +29,7 @@
29
29
  "directory": "packages/ckeditor5-ui"
30
30
  },
31
31
  "files": [
32
+ "dist",
32
33
  "lang",
33
34
  "src/**/*.js",
34
35
  "src/**/*.d.ts",
@@ -2,7 +2,7 @@
2
2
  * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
- import type { BalloonToolbar, BlockToolbar, ContextualBalloon, Notification, Dialog } from './index.js';
5
+ import type { BalloonToolbar, BlockToolbar, ContextualBalloon, Notification, Dialog, AccessibilityHelp } from './index.js';
6
6
  import type { ToolbarConfig } from '@ckeditor/ckeditor5-core';
7
7
  declare module '@ckeditor/ckeditor5-core' {
8
8
  interface EditorConfig {
@@ -83,5 +83,6 @@ declare module '@ckeditor/ckeditor5-core' {
83
83
  [ContextualBalloon.pluginName]: ContextualBalloon;
84
84
  [Dialog.pluginName]: Dialog;
85
85
  [Notification.pluginName]: Notification;
86
+ [AccessibilityHelp.pluginName]: AccessibilityHelp;
86
87
  }
87
88
  }
@@ -12,7 +12,6 @@ import View from '../view.js';
12
12
  import LabeledFieldView from '../labeledfield/labeledfieldview.js';
13
13
  import { createLabeledInputText } from '../labeledfield/utils.js';
14
14
  // Custom export due to https://github.com/ckeditor/ckeditor5/issues/15698.
15
- // eslint-disable-next-line ckeditor5-rules/require-file-extensions-in-imports
16
15
  import { HexBase } from 'vanilla-colorful/lib/entrypoints/hex';
17
16
  import '../../theme/components/colorpicker/colorpicker.css';
18
17
  const waitingTime = 150;
@@ -19,10 +19,20 @@ export default class Dialog extends Plugin {
19
19
  */
20
20
  constructor(editor) {
21
21
  super(editor);
22
+ const t = editor.t;
22
23
  this._initShowHideListeners();
23
24
  this._initFocusToggler();
24
25
  this._initMultiRootIntegration();
25
26
  this.set('id', null);
27
+ // Add the information about the keystroke to the accessibility database.
28
+ editor.accessibility.addKeystrokeInfos({
29
+ categoryId: 'navigation',
30
+ keystrokes: [{
31
+ label: t('Move focus in and out of an active dialog window'),
32
+ keystroke: 'Ctrl+F6',
33
+ mayRequireFn: true
34
+ }]
35
+ });
26
36
  }
27
37
  /**
28
38
  * Initiates listeners for the `show` and `hide` events emitted by this plugin.
@@ -0,0 +1,47 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module ui/editorui/accessibilityhelp/accessibilityhelp
7
+ */
8
+ import { Plugin } from '@ckeditor/ckeditor5-core';
9
+ import { Dialog } from '../../index.js';
10
+ import AccessibilityHelpContentView from './accessibilityhelpcontentview.js';
11
+ import '../../../theme/components/editorui/accessibilityhelp.css';
12
+ /**
13
+ * A plugin that brings the accessibility help dialog to the editor available under the <kbd>Alt</kbd>+<kbd>0</kbd>
14
+ * keystroke and via the "Accessibility help" toolbar button. The dialog displays a list of keystrokes that can be used
15
+ * by the user to perform various actions in the editor.
16
+ *
17
+ * Keystroke information is loaded from {@link module:core/accessibility~Accessibility#keystrokeInfos}. New entries can be
18
+ * added using the API provided by the {@link module:core/accessibility~Accessibility} class.
19
+ */
20
+ export default class AccessibilityHelp extends Plugin {
21
+ /**
22
+ * The view that displays the dialog content (list of keystrokes).
23
+ * Created when the dialog is opened for the first time.
24
+ */
25
+ contentView: AccessibilityHelpContentView | null;
26
+ /**
27
+ * @inheritDoc
28
+ */
29
+ static get requires(): readonly [typeof Dialog];
30
+ /**
31
+ * @inheritDoc
32
+ */
33
+ static get pluginName(): "AccessibilityHelp";
34
+ /**
35
+ * @inheritDoc
36
+ */
37
+ init(): void;
38
+ /**
39
+ * Injects a help text into each editing root's `aria-label` attribute allowing assistive technology users
40
+ * to discover the availability of the Accessibility help dialog.
41
+ */
42
+ private _setupRootLabels;
43
+ /**
44
+ * Shows the accessibility help dialog. Also, creates {@link #contentView} on demand.
45
+ */
46
+ private _showDialog;
47
+ }
@@ -0,0 +1,111 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module ui/editorui/accessibilityhelp/accessibilityhelp
7
+ */
8
+ import { Plugin } from '@ckeditor/ckeditor5-core';
9
+ import { ButtonView, Dialog } from '../../index.js';
10
+ import AccessibilityHelpContentView from './accessibilityhelpcontentview.js';
11
+ import { getEnvKeystrokeText } from '@ckeditor/ckeditor5-utils';
12
+ import accessibilityIcon from '../../../theme/icons/accessibility.svg';
13
+ import '../../../theme/components/editorui/accessibilityhelp.css';
14
+ /**
15
+ * A plugin that brings the accessibility help dialog to the editor available under the <kbd>Alt</kbd>+<kbd>0</kbd>
16
+ * keystroke and via the "Accessibility help" toolbar button. The dialog displays a list of keystrokes that can be used
17
+ * by the user to perform various actions in the editor.
18
+ *
19
+ * Keystroke information is loaded from {@link module:core/accessibility~Accessibility#keystrokeInfos}. New entries can be
20
+ * added using the API provided by the {@link module:core/accessibility~Accessibility} class.
21
+ */
22
+ export default class AccessibilityHelp extends Plugin {
23
+ constructor() {
24
+ super(...arguments);
25
+ /**
26
+ * The view that displays the dialog content (list of keystrokes).
27
+ * Created when the dialog is opened for the first time.
28
+ */
29
+ this.contentView = null;
30
+ }
31
+ /**
32
+ * @inheritDoc
33
+ */
34
+ static get requires() {
35
+ return [Dialog];
36
+ }
37
+ /**
38
+ * @inheritDoc
39
+ */
40
+ static get pluginName() {
41
+ return 'AccessibilityHelp';
42
+ }
43
+ /**
44
+ * @inheritDoc
45
+ */
46
+ init() {
47
+ const editor = this.editor;
48
+ const t = editor.locale.t;
49
+ editor.ui.componentFactory.add('accessibilityHelp', locale => {
50
+ const buttonView = new ButtonView(locale);
51
+ buttonView.set({
52
+ label: t('Accessibility help'),
53
+ tooltip: true,
54
+ withText: false,
55
+ keystroke: 'Alt+0',
56
+ icon: accessibilityIcon
57
+ });
58
+ buttonView.on('execute', () => this._showDialog());
59
+ return buttonView;
60
+ });
61
+ editor.keystrokes.set('Alt+0', (evt, cancel) => {
62
+ this._showDialog();
63
+ cancel();
64
+ });
65
+ this._setupRootLabels();
66
+ }
67
+ /**
68
+ * Injects a help text into each editing root's `aria-label` attribute allowing assistive technology users
69
+ * to discover the availability of the Accessibility help dialog.
70
+ */
71
+ _setupRootLabels() {
72
+ const editor = this.editor;
73
+ const editingView = editor.editing.view;
74
+ const t = editor.t;
75
+ editor.ui.on('ready', () => {
76
+ editingView.change(writer => {
77
+ for (const root of editingView.document.roots) {
78
+ addAriaLabelTextToRoot(writer, root);
79
+ }
80
+ });
81
+ editor.on('addRoot', (evt, modelRoot) => {
82
+ const viewRoot = editor.editing.view.document.getRoot(modelRoot.rootName);
83
+ editingView.change(writer => addAriaLabelTextToRoot(writer, viewRoot));
84
+ }, { priority: 'low' });
85
+ });
86
+ function addAriaLabelTextToRoot(writer, viewRoot) {
87
+ const currentAriaLabel = viewRoot.getAttribute('aria-label');
88
+ const newAriaLabel = `${currentAriaLabel}. ${t('Press %0 for help.', [getEnvKeystrokeText('Alt+0')])}`;
89
+ writer.setAttribute('aria-label', newAriaLabel, viewRoot);
90
+ }
91
+ }
92
+ /**
93
+ * Shows the accessibility help dialog. Also, creates {@link #contentView} on demand.
94
+ */
95
+ _showDialog() {
96
+ const editor = this.editor;
97
+ const dialog = editor.plugins.get('Dialog');
98
+ const t = editor.locale.t;
99
+ if (!this.contentView) {
100
+ this.contentView = new AccessibilityHelpContentView(editor.locale, editor.accessibility.keystrokeInfos);
101
+ }
102
+ dialog.show({
103
+ id: 'accessibilityHelp',
104
+ className: 'ck-accessibility-help-dialog',
105
+ title: t('Accessibility help'),
106
+ icon: accessibilityIcon,
107
+ hasCloseButton: true,
108
+ content: this.contentView
109
+ });
110
+ }
111
+ }