@ckeditor/ckeditor5-ui 43.2.0 → 43.3.0-alpha.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 (174) hide show
  1. package/dist/dialog/dialog.d.ts +16 -0
  2. package/dist/dialog/dialogview.d.ts +3 -1
  3. package/dist/editorui/accessibilityhelp/accessibilityhelp.d.ts +4 -0
  4. package/dist/index-editor.css +12 -15
  5. package/dist/index.css +14 -15
  6. package/dist/index.css.map +1 -1
  7. package/dist/index.js +101 -30
  8. package/dist/index.js.map +1 -1
  9. package/dist/notification/notification.d.ts +4 -0
  10. package/dist/panel/balloon/contextualballoon.d.ts +4 -0
  11. package/dist/toolbar/balloon/balloontoolbar.d.ts +4 -0
  12. package/dist/toolbar/block/blocktoolbar.d.ts +4 -0
  13. package/dist/translations/ar.js +1 -1
  14. package/dist/translations/ar.umd.js +1 -1
  15. package/dist/translations/bs.js +1 -1
  16. package/dist/translations/bs.umd.js +1 -1
  17. package/dist/translations/cs.js +1 -1
  18. package/dist/translations/cs.umd.js +1 -1
  19. package/dist/translations/en.js +1 -1
  20. package/dist/translations/en.umd.js +1 -1
  21. package/dist/translations/es-co.js +1 -1
  22. package/dist/translations/es-co.umd.js +1 -1
  23. package/dist/translations/es.js +1 -1
  24. package/dist/translations/es.umd.js +1 -1
  25. package/dist/translations/fa.js +1 -1
  26. package/dist/translations/fa.umd.js +1 -1
  27. package/dist/translations/fr.js +1 -1
  28. package/dist/translations/fr.umd.js +1 -1
  29. package/dist/translations/gu.d.ts +8 -0
  30. package/dist/translations/gu.js +5 -0
  31. package/dist/translations/gu.umd.js +11 -0
  32. package/dist/translations/he.js +1 -1
  33. package/dist/translations/he.umd.js +1 -1
  34. package/dist/translations/hr.js +1 -1
  35. package/dist/translations/hr.umd.js +1 -1
  36. package/dist/translations/hy.d.ts +8 -0
  37. package/dist/translations/hy.js +5 -0
  38. package/dist/translations/hy.umd.js +11 -0
  39. package/dist/translations/it.js +1 -1
  40. package/dist/translations/it.umd.js +1 -1
  41. package/dist/translations/jv.js +1 -1
  42. package/dist/translations/jv.umd.js +1 -1
  43. package/dist/translations/kk.d.ts +8 -0
  44. package/dist/translations/kk.js +5 -0
  45. package/dist/translations/kk.umd.js +11 -0
  46. package/dist/translations/kn.js +1 -1
  47. package/dist/translations/kn.umd.js +1 -1
  48. package/dist/translations/lt.js +1 -1
  49. package/dist/translations/lt.umd.js +1 -1
  50. package/dist/translations/lv.js +1 -1
  51. package/dist/translations/lv.umd.js +1 -1
  52. package/dist/translations/oc.d.ts +8 -0
  53. package/dist/translations/oc.js +5 -0
  54. package/dist/translations/oc.umd.js +11 -0
  55. package/dist/translations/pl.js +1 -1
  56. package/dist/translations/pl.umd.js +1 -1
  57. package/dist/translations/pt-br.js +1 -1
  58. package/dist/translations/pt-br.umd.js +1 -1
  59. package/dist/translations/pt.js +1 -1
  60. package/dist/translations/pt.umd.js +1 -1
  61. package/dist/translations/ro.js +1 -1
  62. package/dist/translations/ro.umd.js +1 -1
  63. package/dist/translations/ru.js +1 -1
  64. package/dist/translations/ru.umd.js +1 -1
  65. package/dist/translations/si.d.ts +8 -0
  66. package/dist/translations/si.js +5 -0
  67. package/dist/translations/si.umd.js +11 -0
  68. package/dist/translations/sk.js +1 -1
  69. package/dist/translations/sk.umd.js +1 -1
  70. package/dist/translations/sl.js +1 -1
  71. package/dist/translations/sl.umd.js +1 -1
  72. package/dist/translations/sr-latn.js +1 -1
  73. package/dist/translations/sr-latn.umd.js +1 -1
  74. package/dist/translations/sr.js +1 -1
  75. package/dist/translations/sr.umd.js +1 -1
  76. package/dist/translations/ug.js +1 -1
  77. package/dist/translations/ug.umd.js +1 -1
  78. package/dist/translations/uk.js +1 -1
  79. package/dist/translations/uk.umd.js +1 -1
  80. package/dist/translations/uz.js +1 -1
  81. package/dist/translations/uz.umd.js +1 -1
  82. package/lang/translations/af.po +3 -9
  83. package/lang/translations/ar.po +4 -10
  84. package/lang/translations/ast.po +3 -9
  85. package/lang/translations/az.po +3 -9
  86. package/lang/translations/bg.po +3 -9
  87. package/lang/translations/bn.po +3 -9
  88. package/lang/translations/bs.po +4 -10
  89. package/lang/translations/ca.po +3 -9
  90. package/lang/translations/cs.po +4 -10
  91. package/lang/translations/da.po +3 -9
  92. package/lang/translations/de-ch.po +3 -9
  93. package/lang/translations/de.po +3 -9
  94. package/lang/translations/el.po +3 -9
  95. package/lang/translations/en-au.po +3 -9
  96. package/lang/translations/en-gb.po +3 -9
  97. package/lang/translations/en.po +5 -11
  98. package/lang/translations/eo.po +3 -9
  99. package/lang/translations/es-co.po +4 -10
  100. package/lang/translations/es.po +4 -10
  101. package/lang/translations/et.po +3 -9
  102. package/lang/translations/eu.po +3 -9
  103. package/lang/translations/fa.po +4 -10
  104. package/lang/translations/fi.po +3 -9
  105. package/lang/translations/fr.po +4 -10
  106. package/lang/translations/gl.po +3 -9
  107. package/lang/translations/gu.po +208 -0
  108. package/lang/translations/he.po +4 -10
  109. package/lang/translations/hi.po +3 -9
  110. package/lang/translations/hr.po +4 -10
  111. package/lang/translations/hu.po +3 -9
  112. package/lang/translations/hy.po +208 -0
  113. package/lang/translations/id.po +3 -9
  114. package/lang/translations/it.po +4 -10
  115. package/lang/translations/ja.po +3 -9
  116. package/lang/translations/jv.po +4 -10
  117. package/lang/translations/kk.po +208 -0
  118. package/lang/translations/km.po +3 -9
  119. package/lang/translations/kn.po +4 -10
  120. package/lang/translations/ko.po +3 -9
  121. package/lang/translations/ku.po +3 -9
  122. package/lang/translations/lt.po +4 -10
  123. package/lang/translations/lv.po +4 -10
  124. package/lang/translations/ms.po +3 -9
  125. package/lang/translations/nb.po +3 -9
  126. package/lang/translations/ne.po +3 -9
  127. package/lang/translations/nl.po +3 -9
  128. package/lang/translations/no.po +3 -9
  129. package/lang/translations/oc.po +208 -0
  130. package/lang/translations/pl.po +4 -10
  131. package/lang/translations/pt-br.po +4 -10
  132. package/lang/translations/pt.po +4 -10
  133. package/lang/translations/ro.po +4 -10
  134. package/lang/translations/ru.po +4 -10
  135. package/lang/translations/si.po +208 -0
  136. package/lang/translations/sk.po +4 -10
  137. package/lang/translations/sl.po +4 -10
  138. package/lang/translations/sq.po +3 -9
  139. package/lang/translations/sr-latn.po +4 -10
  140. package/lang/translations/sr.po +4 -10
  141. package/lang/translations/sv.po +3 -9
  142. package/lang/translations/th.po +3 -9
  143. package/lang/translations/ti.po +3 -9
  144. package/lang/translations/tk.po +3 -9
  145. package/lang/translations/tr.po +3 -9
  146. package/lang/translations/tt.po +3 -9
  147. package/lang/translations/ug.po +4 -10
  148. package/lang/translations/uk.po +4 -10
  149. package/lang/translations/ur.po +3 -9
  150. package/lang/translations/uz.po +4 -10
  151. package/lang/translations/vi.po +3 -9
  152. package/lang/translations/zh-cn.po +3 -9
  153. package/lang/translations/zh.po +3 -9
  154. package/package.json +4 -4
  155. package/src/dialog/dialog.d.ts +16 -0
  156. package/src/dialog/dialog.js +31 -0
  157. package/src/dialog/dialogview.d.ts +3 -1
  158. package/src/dialog/dialogview.js +26 -17
  159. package/src/dropdown/menu/dropdownmenunestedmenuview.js +1 -0
  160. package/src/dropdown/utils.js +17 -2
  161. package/src/editorui/accessibilityhelp/accessibilityhelp.d.ts +4 -0
  162. package/src/editorui/accessibilityhelp/accessibilityhelp.js +6 -0
  163. package/src/editorui/editorui.js +2 -2
  164. package/src/notification/notification.d.ts +4 -0
  165. package/src/notification/notification.js +6 -0
  166. package/src/panel/balloon/contextualballoon.d.ts +4 -0
  167. package/src/panel/balloon/contextualballoon.js +6 -0
  168. package/src/toolbar/balloon/balloontoolbar.d.ts +4 -0
  169. package/src/toolbar/balloon/balloontoolbar.js +7 -1
  170. package/src/toolbar/block/blocktoolbar.d.ts +4 -0
  171. package/src/toolbar/block/blocktoolbar.js +6 -0
  172. package/src/toolbar/toolbarview.js +3 -3
  173. package/theme/components/dialog/dialog.css +5 -2
  174. package/theme/mixins/_dir.css +1 -1
@@ -1,20 +1,14 @@
1
1
  # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
- # !!! IMPORTANT !!!
3
+ # Want to contribute to this file? Submit your changes via a GitHub Pull Request.
4
4
  #
5
- # Before you edit this file, please keep in mind that contributing to the project
6
- # translations is possible ONLY via the Transifex online service.
7
- #
8
- # To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5.
9
- #
10
- # To learn more, check out the official contributor's guide:
11
- # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
5
+ # Check out the official contributor's guide:
6
+ # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
12
7
  #
13
8
  msgid ""
14
9
  msgstr ""
15
- "Language-Team: Slovak (https://app.transifex.com/ckeditor/teams/11143/sk/)\n"
16
10
  "Language: sk\n"
17
- "Plural-Forms: nplurals=4; plural=(n % 1 == 0 && n == 1 ? 0 : n % 1 == 0 && n >= 2 && n <= 4 ? 1 : n % 1 != 0 ? 2: 3);\n"
11
+ "Plural-Forms: nplurals=3; plural=(n == 1 ? 0 : (n >= 2 && n <= 4) ? 1 : 2);\n"
18
12
  "Content-Type: text/plain; charset=UTF-8\n"
19
13
 
20
14
  msgctxt "Title of the CKEditor5 editor."
@@ -1,20 +1,14 @@
1
1
  # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
- # !!! IMPORTANT !!!
3
+ # Want to contribute to this file? Submit your changes via a GitHub Pull Request.
4
4
  #
5
- # Before you edit this file, please keep in mind that contributing to the project
6
- # translations is possible ONLY via the Transifex online service.
7
- #
8
- # To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5.
9
- #
10
- # To learn more, check out the official contributor's guide:
11
- # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
5
+ # Check out the official contributor's guide:
6
+ # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
12
7
  #
13
8
  msgid ""
14
9
  msgstr ""
15
- "Language-Team: Slovenian (https://app.transifex.com/ckeditor/teams/11143/sl/)\n"
16
10
  "Language: sl\n"
17
- "Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3);\n"
11
+ "Plural-Forms: nplurals=4; plural=(n % 100 == 1 ? 1 : n % 100 == 2 ? 2 : n % 100 == 3 || n % 100 == 4 ? 3 : 0);\n"
18
12
  "Content-Type: text/plain; charset=UTF-8\n"
19
13
 
20
14
  msgctxt "Title of the CKEditor5 editor."
@@ -1,18 +1,12 @@
1
1
  # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
- # !!! IMPORTANT !!!
3
+ # Want to contribute to this file? Submit your changes via a GitHub Pull Request.
4
4
  #
5
- # Before you edit this file, please keep in mind that contributing to the project
6
- # translations is possible ONLY via the Transifex online service.
7
- #
8
- # To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5.
9
- #
10
- # To learn more, check out the official contributor's guide:
11
- # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
5
+ # Check out the official contributor's guide:
6
+ # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
12
7
  #
13
8
  msgid ""
14
9
  msgstr ""
15
- "Language-Team: Albanian (https://app.transifex.com/ckeditor/teams/11143/sq/)\n"
16
10
  "Language: sq\n"
17
11
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
18
12
  "Content-Type: text/plain; charset=UTF-8\n"
@@ -1,20 +1,14 @@
1
1
  # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
- # !!! IMPORTANT !!!
3
+ # Want to contribute to this file? Submit your changes via a GitHub Pull Request.
4
4
  #
5
- # Before you edit this file, please keep in mind that contributing to the project
6
- # translations is possible ONLY via the Transifex online service.
7
- #
8
- # To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5.
9
- #
10
- # To learn more, check out the official contributor's guide:
11
- # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
5
+ # Check out the official contributor's guide:
6
+ # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
12
7
  #
13
8
  msgid ""
14
9
  msgstr ""
15
- "Language-Team: Serbian (Latin) (https://app.transifex.com/ckeditor/teams/11143/sr@latin/)\n"
16
10
  "Language: sr@latin\n"
17
- "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
11
+ "Plural-Forms: nplurals=3; plural=(n % 10 == 1 && n % 100 != 11 ? 0 : n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 10 || n % 100 >= 20) ? 1 : 2);\n"
18
12
  "Content-Type: text/plain; charset=UTF-8\n"
19
13
 
20
14
  msgctxt "Title of the CKEditor5 editor."
@@ -1,20 +1,14 @@
1
1
  # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
- # !!! IMPORTANT !!!
3
+ # Want to contribute to this file? Submit your changes via a GitHub Pull Request.
4
4
  #
5
- # Before you edit this file, please keep in mind that contributing to the project
6
- # translations is possible ONLY via the Transifex online service.
7
- #
8
- # To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5.
9
- #
10
- # To learn more, check out the official contributor's guide:
11
- # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
5
+ # Check out the official contributor's guide:
6
+ # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
12
7
  #
13
8
  msgid ""
14
9
  msgstr ""
15
- "Language-Team: Serbian (https://app.transifex.com/ckeditor/teams/11143/sr/)\n"
16
10
  "Language: sr\n"
17
- "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
11
+ "Plural-Forms: nplurals=3; plural=(n % 10 == 1 && n % 100 != 11 ? 0 : n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 10 || n % 100 >= 20) ? 1 : 2);\n"
18
12
  "Content-Type: text/plain; charset=UTF-8\n"
19
13
 
20
14
  msgctxt "Title of the CKEditor5 editor."
@@ -1,18 +1,12 @@
1
1
  # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
- # !!! IMPORTANT !!!
3
+ # Want to contribute to this file? Submit your changes via a GitHub Pull Request.
4
4
  #
5
- # Before you edit this file, please keep in mind that contributing to the project
6
- # translations is possible ONLY via the Transifex online service.
7
- #
8
- # To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5.
9
- #
10
- # To learn more, check out the official contributor's guide:
11
- # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
5
+ # Check out the official contributor's guide:
6
+ # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
12
7
  #
13
8
  msgid ""
14
9
  msgstr ""
15
- "Language-Team: Swedish (https://app.transifex.com/ckeditor/teams/11143/sv/)\n"
16
10
  "Language: sv\n"
17
11
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
18
12
  "Content-Type: text/plain; charset=UTF-8\n"
@@ -1,18 +1,12 @@
1
1
  # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
- # !!! IMPORTANT !!!
3
+ # Want to contribute to this file? Submit your changes via a GitHub Pull Request.
4
4
  #
5
- # Before you edit this file, please keep in mind that contributing to the project
6
- # translations is possible ONLY via the Transifex online service.
7
- #
8
- # To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5.
9
- #
10
- # To learn more, check out the official contributor's guide:
11
- # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
5
+ # Check out the official contributor's guide:
6
+ # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
12
7
  #
13
8
  msgid ""
14
9
  msgstr ""
15
- "Language-Team: Thai (https://app.transifex.com/ckeditor/teams/11143/th/)\n"
16
10
  "Language: th\n"
17
11
  "Plural-Forms: nplurals=1; plural=0;\n"
18
12
  "Content-Type: text/plain; charset=UTF-8\n"
@@ -1,18 +1,12 @@
1
1
  # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
- # !!! IMPORTANT !!!
3
+ # Want to contribute to this file? Submit your changes via a GitHub Pull Request.
4
4
  #
5
- # Before you edit this file, please keep in mind that contributing to the project
6
- # translations is possible ONLY via the Transifex online service.
7
- #
8
- # To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5.
9
- #
10
- # To learn more, check out the official contributor's guide:
11
- # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
5
+ # Check out the official contributor's guide:
6
+ # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
12
7
  #
13
8
  msgid ""
14
9
  msgstr ""
15
- "Language-Team: Tigrinya (https://app.transifex.com/ckeditor/teams/11143/ti/)\n"
16
10
  "Language: ti\n"
17
11
  "Plural-Forms: nplurals=2; plural=(n > 1);\n"
18
12
  "Content-Type: text/plain; charset=UTF-8\n"
@@ -1,18 +1,12 @@
1
1
  # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
- # !!! IMPORTANT !!!
3
+ # Want to contribute to this file? Submit your changes via a GitHub Pull Request.
4
4
  #
5
- # Before you edit this file, please keep in mind that contributing to the project
6
- # translations is possible ONLY via the Transifex online service.
7
- #
8
- # To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5.
9
- #
10
- # To learn more, check out the official contributor's guide:
11
- # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
5
+ # Check out the official contributor's guide:
6
+ # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
12
7
  #
13
8
  msgid ""
14
9
  msgstr ""
15
- "Language-Team: Turkmen (https://app.transifex.com/ckeditor/teams/11143/tk/)\n"
16
10
  "Language: tk\n"
17
11
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
18
12
  "Content-Type: text/plain; charset=UTF-8\n"
@@ -1,18 +1,12 @@
1
1
  # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
- # !!! IMPORTANT !!!
3
+ # Want to contribute to this file? Submit your changes via a GitHub Pull Request.
4
4
  #
5
- # Before you edit this file, please keep in mind that contributing to the project
6
- # translations is possible ONLY via the Transifex online service.
7
- #
8
- # To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5.
9
- #
10
- # To learn more, check out the official contributor's guide:
11
- # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
5
+ # Check out the official contributor's guide:
6
+ # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
12
7
  #
13
8
  msgid ""
14
9
  msgstr ""
15
- "Language-Team: Turkish (https://app.transifex.com/ckeditor/teams/11143/tr/)\n"
16
10
  "Language: tr\n"
17
11
  "Plural-Forms: nplurals=2; plural=(n > 1);\n"
18
12
  "Content-Type: text/plain; charset=UTF-8\n"
@@ -1,18 +1,12 @@
1
1
  # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
- # !!! IMPORTANT !!!
3
+ # Want to contribute to this file? Submit your changes via a GitHub Pull Request.
4
4
  #
5
- # Before you edit this file, please keep in mind that contributing to the project
6
- # translations is possible ONLY via the Transifex online service.
7
- #
8
- # To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5.
9
- #
10
- # To learn more, check out the official contributor's guide:
11
- # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
5
+ # Check out the official contributor's guide:
6
+ # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
12
7
  #
13
8
  msgid ""
14
9
  msgstr ""
15
- "Language-Team: Tatar (https://app.transifex.com/ckeditor/teams/11143/tt/)\n"
16
10
  "Language: tt\n"
17
11
  "Plural-Forms: nplurals=1; plural=0;\n"
18
12
  "Content-Type: text/plain; charset=UTF-8\n"
@@ -1,20 +1,14 @@
1
1
  # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
- # !!! IMPORTANT !!!
3
+ # Want to contribute to this file? Submit your changes via a GitHub Pull Request.
4
4
  #
5
- # Before you edit this file, please keep in mind that contributing to the project
6
- # translations is possible ONLY via the Transifex online service.
7
- #
8
- # To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5.
9
- #
10
- # To learn more, check out the official contributor's guide:
11
- # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
5
+ # Check out the official contributor's guide:
6
+ # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
12
7
  #
13
8
  msgid ""
14
9
  msgstr ""
15
- "Language-Team: Uyghur (https://app.transifex.com/ckeditor/teams/11143/ug/)\n"
16
10
  "Language: ug\n"
17
- "Plural-Forms: nplurals=2; plural=(n != 1);\n"
11
+ "Plural-Forms: nplurals=1; plural=0;\n"
18
12
  "Content-Type: text/plain; charset=UTF-8\n"
19
13
 
20
14
  msgctxt "Title of the CKEditor5 editor."
@@ -1,20 +1,14 @@
1
1
  # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
- # !!! IMPORTANT !!!
3
+ # Want to contribute to this file? Submit your changes via a GitHub Pull Request.
4
4
  #
5
- # Before you edit this file, please keep in mind that contributing to the project
6
- # translations is possible ONLY via the Transifex online service.
7
- #
8
- # To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5.
9
- #
10
- # To learn more, check out the official contributor's guide:
11
- # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
5
+ # Check out the official contributor's guide:
6
+ # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
12
7
  #
13
8
  msgid ""
14
9
  msgstr ""
15
- "Language-Team: Ukrainian (https://app.transifex.com/ckeditor/teams/11143/uk/)\n"
16
10
  "Language: uk\n"
17
- "Plural-Forms: nplurals=4; plural=(n % 1 == 0 && n % 10 == 1 && n % 100 != 11 ? 0 : n % 1 == 0 && n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 12 || n % 100 > 14) ? 1 : n % 1 == 0 && (n % 10 ==0 || (n % 10 >=5 && n % 10 <=9) || (n % 100 >=11 && n % 100 <=14 )) ? 2: 3);\n"
11
+ "Plural-Forms: nplurals=3; plural=(n % 10 == 1 && n % 100 != 11 ? 0 : n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 10 || n % 100 >= 20) ? 1 : 2);\n"
18
12
  "Content-Type: text/plain; charset=UTF-8\n"
19
13
 
20
14
  msgctxt "Title of the CKEditor5 editor."
@@ -1,18 +1,12 @@
1
1
  # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
- # !!! IMPORTANT !!!
3
+ # Want to contribute to this file? Submit your changes via a GitHub Pull Request.
4
4
  #
5
- # Before you edit this file, please keep in mind that contributing to the project
6
- # translations is possible ONLY via the Transifex online service.
7
- #
8
- # To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5.
9
- #
10
- # To learn more, check out the official contributor's guide:
11
- # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
5
+ # Check out the official contributor's guide:
6
+ # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
12
7
  #
13
8
  msgid ""
14
9
  msgstr ""
15
- "Language-Team: Urdu (https://app.transifex.com/ckeditor/teams/11143/ur/)\n"
16
10
  "Language: ur\n"
17
11
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
18
12
  "Content-Type: text/plain; charset=UTF-8\n"
@@ -1,20 +1,14 @@
1
1
  # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
- # !!! IMPORTANT !!!
3
+ # Want to contribute to this file? Submit your changes via a GitHub Pull Request.
4
4
  #
5
- # Before you edit this file, please keep in mind that contributing to the project
6
- # translations is possible ONLY via the Transifex online service.
7
- #
8
- # To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5.
9
- #
10
- # To learn more, check out the official contributor's guide:
11
- # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
5
+ # Check out the official contributor's guide:
6
+ # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
12
7
  #
13
8
  msgid ""
14
9
  msgstr ""
15
- "Language-Team: Uzbek (https://app.transifex.com/ckeditor/teams/11143/uz/)\n"
16
10
  "Language: uz\n"
17
- "Plural-Forms: nplurals=1; plural=0;\n"
11
+ "Plural-Forms: nplurals=2; plural=(n > 1);\n"
18
12
  "Content-Type: text/plain; charset=UTF-8\n"
19
13
 
20
14
  msgctxt "Title of the CKEditor5 editor."
@@ -1,18 +1,12 @@
1
1
  # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
- # !!! IMPORTANT !!!
3
+ # Want to contribute to this file? Submit your changes via a GitHub Pull Request.
4
4
  #
5
- # Before you edit this file, please keep in mind that contributing to the project
6
- # translations is possible ONLY via the Transifex online service.
7
- #
8
- # To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5.
9
- #
10
- # To learn more, check out the official contributor's guide:
11
- # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
5
+ # Check out the official contributor's guide:
6
+ # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
12
7
  #
13
8
  msgid ""
14
9
  msgstr ""
15
- "Language-Team: Vietnamese (https://app.transifex.com/ckeditor/teams/11143/vi/)\n"
16
10
  "Language: vi\n"
17
11
  "Plural-Forms: nplurals=1; plural=0;\n"
18
12
  "Content-Type: text/plain; charset=UTF-8\n"
@@ -1,18 +1,12 @@
1
1
  # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
- # !!! IMPORTANT !!!
3
+ # Want to contribute to this file? Submit your changes via a GitHub Pull Request.
4
4
  #
5
- # Before you edit this file, please keep in mind that contributing to the project
6
- # translations is possible ONLY via the Transifex online service.
7
- #
8
- # To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5.
9
- #
10
- # To learn more, check out the official contributor's guide:
11
- # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
5
+ # Check out the official contributor's guide:
6
+ # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
12
7
  #
13
8
  msgid ""
14
9
  msgstr ""
15
- "Language-Team: Chinese (China) (https://app.transifex.com/ckeditor/teams/11143/zh_CN/)\n"
16
10
  "Language: zh_CN\n"
17
11
  "Plural-Forms: nplurals=1; plural=0;\n"
18
12
  "Content-Type: text/plain; charset=UTF-8\n"
@@ -1,18 +1,12 @@
1
1
  # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
- # !!! IMPORTANT !!!
3
+ # Want to contribute to this file? Submit your changes via a GitHub Pull Request.
4
4
  #
5
- # Before you edit this file, please keep in mind that contributing to the project
6
- # translations is possible ONLY via the Transifex online service.
7
- #
8
- # To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5.
9
- #
10
- # To learn more, check out the official contributor's guide:
11
- # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
5
+ # Check out the official contributor's guide:
6
+ # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
12
7
  #
13
8
  msgid ""
14
9
  msgstr ""
15
- "Language-Team: Chinese (Taiwan) (https://app.transifex.com/ckeditor/teams/11143/zh_TW/)\n"
16
10
  "Language: zh_TW\n"
17
11
  "Plural-Forms: nplurals=1; plural=0;\n"
18
12
  "Content-Type: text/plain; charset=UTF-8\n"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-ui",
3
- "version": "43.2.0",
3
+ "version": "43.3.0-alpha.1",
4
4
  "description": "The UI framework and standard UI library of CKEditor 5.",
5
5
  "keywords": [
6
6
  "ckeditor",
@@ -12,9 +12,9 @@
12
12
  "type": "module",
13
13
  "main": "src/index.js",
14
14
  "dependencies": {
15
- "@ckeditor/ckeditor5-core": "43.2.0",
16
- "@ckeditor/ckeditor5-engine": "43.2.0",
17
- "@ckeditor/ckeditor5-utils": "43.2.0",
15
+ "@ckeditor/ckeditor5-core": "43.3.0-alpha.1",
16
+ "@ckeditor/ckeditor5-engine": "43.3.0-alpha.1",
17
+ "@ckeditor/ckeditor5-utils": "43.3.0-alpha.1",
18
18
  "color-convert": "2.0.1",
19
19
  "color-parse": "1.4.2",
20
20
  "lodash-es": "4.17.21",
@@ -47,10 +47,18 @@ export default class Dialog extends Plugin {
47
47
  * @inheritDoc
48
48
  */
49
49
  static get pluginName(): "Dialog";
50
+ /**
51
+ * @inheritDoc
52
+ */
53
+ static get isOfficialPlugin(): true;
50
54
  /**
51
55
  * @inheritDoc
52
56
  */
53
57
  constructor(editor: Editor);
58
+ /**
59
+ * @inheritDoc
60
+ */
61
+ destroy(): void;
54
62
  /**
55
63
  * Initiates listeners for the `show` and `hide` events emitted by this plugin.
56
64
  *
@@ -167,6 +175,14 @@ export default class Dialog extends Plugin {
167
175
  * Destroys the {@link module:ui/dialog/dialogview~DialogView} and cleans up the stored dialog state.
168
176
  */
169
177
  private _hide;
178
+ /**
179
+ * Makes the <body> unscrollable (e.g. when the modal shows up).
180
+ */
181
+ private _lockBodyScroll;
182
+ /**
183
+ * Makes the <body> scrollable again (e.g. once the modal hides).
184
+ */
185
+ private _unlockBodyScroll;
170
186
  }
171
187
  /**
172
188
  * The definition that describes a dialog window and its content. Passed to the {@link module:ui/dialog/dialog~Dialog#show} method.
@@ -14,6 +14,12 @@ export default class Dialog extends Plugin {
14
14
  static get pluginName() {
15
15
  return 'Dialog';
16
16
  }
17
+ /**
18
+ * @inheritDoc
19
+ */
20
+ static get isOfficialPlugin() {
21
+ return true;
22
+ }
17
23
  /**
18
24
  * @inheritDoc
19
25
  */
@@ -37,6 +43,13 @@ export default class Dialog extends Plugin {
37
43
  }]
38
44
  });
39
45
  }
46
+ /**
47
+ * @inheritDoc
48
+ */
49
+ destroy() {
50
+ super.destroy();
51
+ this._unlockBodyScroll();
52
+ }
40
53
  /**
41
54
  * Initiates listeners for the `show` and `hide` events emitted by this plugin.
42
55
  *
@@ -215,6 +228,9 @@ export default class Dialog extends Plugin {
215
228
  if (!position) {
216
229
  position = isModal ? DialogViewPosition.SCREEN_CENTER : DialogViewPosition.EDITOR_CENTER;
217
230
  }
231
+ if (isModal) {
232
+ this._lockBodyScroll();
233
+ }
218
234
  view.set({
219
235
  position,
220
236
  _isVisible: true,
@@ -254,6 +270,9 @@ export default class Dialog extends Plugin {
254
270
  }
255
271
  const editor = this.editor;
256
272
  const view = this.view;
273
+ if (view.isModal) {
274
+ this._unlockBodyScroll();
275
+ }
257
276
  // Reset the content view to prevent its children from being destroyed in the standard
258
277
  // View#destroy() (and collections) chain. If the content children were left in there,
259
278
  // they would have to be re-created by the feature using the dialog every time the dialog
@@ -270,4 +289,16 @@ export default class Dialog extends Plugin {
270
289
  this.isOpen = false;
271
290
  Dialog._visibleDialogPlugin = null;
272
291
  }
292
+ /**
293
+ * Makes the <body> unscrollable (e.g. when the modal shows up).
294
+ */
295
+ _lockBodyScroll() {
296
+ document.documentElement.classList.add('ck-dialog-scroll-locked');
297
+ }
298
+ /**
299
+ * Makes the <body> scrollable again (e.g. once the modal hides).
300
+ */
301
+ _unlockBodyScroll() {
302
+ document.documentElement.classList.remove('ck-dialog-scroll-locked');
303
+ }
273
304
  }
@@ -223,7 +223,9 @@ export default class DialogView extends /* #__PURE__ */ DialogView_base implemen
223
223
  */
224
224
  private _getDialogRect;
225
225
  /**
226
- * Calculates the viewport rect.
226
+ * Returns a viewport `Rect` shrunk by the viewport offset config from all sides.
227
+ *
228
+ * TODO: This is a duplicate from position.ts module. It should either be exported there or land somewhere in utils.
227
229
  */
228
230
  private _getViewportRect;
229
231
  /**
@@ -104,6 +104,7 @@ class DialogView extends /* #__PURE__ */ DraggableViewMixin(View) {
104
104
  class: [
105
105
  'ck',
106
106
  'ck-dialog',
107
+ bind.if('isModal', 'ck-dialog_modal'),
107
108
  bind.to('className')
108
109
  ],
109
110
  role: 'dialog',
@@ -167,7 +168,8 @@ class DialogView extends /* #__PURE__ */ DraggableViewMixin(View) {
167
168
  * Returns the element that should be used as a drag handle.
168
169
  */
169
170
  get dragHandleElement() {
170
- if (this.headerView) {
171
+ // Modals should not be draggable.
172
+ if (this.headerView && !this.isModal) {
171
173
  return this.headerView.element;
172
174
  }
173
175
  else {
@@ -385,10 +387,31 @@ class DialogView extends /* #__PURE__ */ DraggableViewMixin(View) {
385
387
  return new Rect(this.element.firstElementChild);
386
388
  }
387
389
  /**
388
- * Calculates the viewport rect.
390
+ * Returns a viewport `Rect` shrunk by the viewport offset config from all sides.
391
+ *
392
+ * TODO: This is a duplicate from position.ts module. It should either be exported there or land somewhere in utils.
389
393
  */
390
394
  _getViewportRect() {
391
- return getConstrainedViewportRect(this._getViewportOffset());
395
+ const viewportRect = new Rect(global.window);
396
+ // Modals should not be restricted by the viewport offsets as they are always displayed on top of the page.
397
+ if (this.isModal) {
398
+ return viewportRect;
399
+ }
400
+ const viewportOffset = {
401
+ top: 0,
402
+ bottom: 0,
403
+ left: 0,
404
+ right: 0,
405
+ ...this._getViewportOffset()
406
+ };
407
+ viewportRect.top += viewportOffset.top;
408
+ viewportRect.height -= viewportOffset.top;
409
+ viewportRect.bottom -= viewportOffset.bottom;
410
+ viewportRect.height -= viewportOffset.bottom;
411
+ viewportRect.left += viewportOffset.left;
412
+ viewportRect.right -= viewportOffset.right;
413
+ viewportRect.width -= viewportOffset.left + viewportOffset.right;
414
+ return viewportRect;
392
415
  }
393
416
  /**
394
417
  * Collects all focusable elements inside the dialog parts
@@ -437,17 +460,3 @@ class DialogView extends /* #__PURE__ */ DraggableViewMixin(View) {
437
460
  */
438
461
  DialogView.defaultOffset = 15;
439
462
  export default DialogView;
440
- // Returns a viewport `Rect` shrunk by the viewport offset config from all sides.
441
- // TODO: This is a duplicate from position.ts module. It should either be exported there or land somewhere in utils.
442
- function getConstrainedViewportRect(viewportOffset) {
443
- viewportOffset = Object.assign({ top: 0, bottom: 0, left: 0, right: 0 }, viewportOffset);
444
- const viewportRect = new Rect(global.window);
445
- viewportRect.top += viewportOffset.top;
446
- viewportRect.height -= viewportOffset.top;
447
- viewportRect.bottom -= viewportOffset.bottom;
448
- viewportRect.height -= viewportOffset.bottom;
449
- viewportRect.left += viewportOffset.left;
450
- viewportRect.right -= viewportOffset.right;
451
- viewportRect.width -= viewportOffset.left + viewportOffset.right;
452
- return viewportRect;
453
- }