@ckeditor/ckeditor5-ui 40.1.0 → 41.0.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 (282) hide show
  1. package/CHANGELOG.md +34 -34
  2. package/LICENSE.md +1 -1
  3. package/lang/contexts.json +3 -1
  4. package/lang/translations/ar.po +9 -1
  5. package/lang/translations/ast.po +9 -1
  6. package/lang/translations/az.po +9 -1
  7. package/lang/translations/bg.po +9 -1
  8. package/lang/translations/bn.po +9 -1
  9. package/lang/translations/ca.po +9 -1
  10. package/lang/translations/cs.po +9 -1
  11. package/lang/translations/da.po +9 -1
  12. package/lang/translations/de-ch.po +9 -1
  13. package/lang/translations/de.po +9 -1
  14. package/lang/translations/el.po +9 -1
  15. package/lang/translations/en-au.po +9 -1
  16. package/lang/translations/en-gb.po +9 -1
  17. package/lang/translations/en.po +9 -1
  18. package/lang/translations/eo.po +9 -1
  19. package/lang/translations/es.po +14 -6
  20. package/lang/translations/et.po +9 -1
  21. package/lang/translations/eu.po +9 -1
  22. package/lang/translations/fa.po +9 -1
  23. package/lang/translations/fi.po +9 -1
  24. package/lang/translations/fr.po +9 -1
  25. package/lang/translations/gl.po +12 -4
  26. package/lang/translations/he.po +9 -1
  27. package/lang/translations/hi.po +9 -1
  28. package/lang/translations/hr.po +9 -1
  29. package/lang/translations/hu.po +9 -1
  30. package/lang/translations/id.po +9 -1
  31. package/lang/translations/it.po +9 -1
  32. package/lang/translations/ja.po +9 -1
  33. package/lang/translations/km.po +9 -1
  34. package/lang/translations/kn.po +9 -1
  35. package/lang/translations/ko.po +9 -1
  36. package/lang/translations/ku.po +9 -1
  37. package/lang/translations/lt.po +9 -1
  38. package/lang/translations/lv.po +9 -1
  39. package/lang/translations/ms.po +9 -1
  40. package/lang/translations/nb.po +9 -1
  41. package/lang/translations/ne.po +9 -1
  42. package/lang/translations/nl.po +9 -1
  43. package/lang/translations/no.po +9 -1
  44. package/lang/translations/pl.po +9 -1
  45. package/lang/translations/pt-br.po +9 -1
  46. package/lang/translations/pt.po +9 -1
  47. package/lang/translations/ro.po +9 -1
  48. package/lang/translations/ru.po +9 -1
  49. package/lang/translations/sk.po +9 -1
  50. package/lang/translations/sl.po +9 -1
  51. package/lang/translations/sq.po +9 -1
  52. package/lang/translations/sr-latn.po +14 -6
  53. package/lang/translations/sr.po +9 -1
  54. package/lang/translations/sv.po +9 -1
  55. package/lang/translations/th.po +9 -1
  56. package/lang/translations/tk.po +9 -1
  57. package/lang/translations/tr.po +9 -1
  58. package/lang/translations/tt.po +9 -1
  59. package/lang/translations/ug.po +9 -1
  60. package/lang/translations/uk.po +9 -1
  61. package/lang/translations/ur.po +9 -1
  62. package/lang/translations/uz.po +9 -1
  63. package/lang/translations/vi.po +9 -1
  64. package/lang/translations/zh-cn.po +9 -1
  65. package/lang/translations/zh.po +9 -1
  66. package/package.json +4 -3
  67. package/src/arialiveannouncer.d.ts +14 -10
  68. package/src/arialiveannouncer.js +11 -8
  69. package/src/augmentation.d.ts +3 -2
  70. package/src/augmentation.js +1 -1
  71. package/src/autocomplete/autocompleteview.d.ts +4 -4
  72. package/src/autocomplete/autocompleteview.js +4 -3
  73. package/src/bindings/addkeyboardhandlingforgrid.d.ts +2 -2
  74. package/src/bindings/addkeyboardhandlingforgrid.js +1 -1
  75. package/src/bindings/clickoutsidehandler.d.ts +1 -1
  76. package/src/bindings/clickoutsidehandler.js +1 -1
  77. package/src/bindings/csstransitiondisablermixin.d.ts +2 -2
  78. package/src/bindings/csstransitiondisablermixin.js +1 -1
  79. package/src/bindings/draggableviewmixin.d.ts +46 -0
  80. package/src/bindings/draggableviewmixin.js +144 -0
  81. package/src/bindings/injectcsstransitiondisabler.d.ts +2 -2
  82. package/src/bindings/injectcsstransitiondisabler.js +1 -1
  83. package/src/bindings/preventdefault.d.ts +3 -3
  84. package/src/bindings/preventdefault.js +1 -1
  85. package/src/bindings/submithandler.d.ts +2 -2
  86. package/src/bindings/submithandler.js +1 -1
  87. package/src/button/button.d.ts +1 -1
  88. package/src/button/button.js +1 -1
  89. package/src/button/buttonlabel.d.ts +2 -2
  90. package/src/button/buttonlabel.js +1 -1
  91. package/src/button/buttonlabelview.d.ts +3 -3
  92. package/src/button/buttonlabelview.js +2 -2
  93. package/src/button/buttonview.d.ts +6 -6
  94. package/src/button/buttonview.js +4 -4
  95. package/src/button/switchbuttonview.d.ts +3 -3
  96. package/src/button/switchbuttonview.js +3 -3
  97. package/src/collapsible/collapsibleview.d.ts +70 -0
  98. package/src/collapsible/collapsibleview.js +95 -0
  99. package/src/colorgrid/colorgridview.d.ts +5 -5
  100. package/src/colorgrid/colorgridview.js +4 -4
  101. package/src/colorgrid/colortileview.d.ts +2 -2
  102. package/src/colorgrid/colortileview.js +2 -2
  103. package/src/colorgrid/utils.d.ts +1 -1
  104. package/src/colorgrid/utils.js +1 -1
  105. package/src/colorpicker/colorpickerview.d.ts +4 -4
  106. package/src/colorpicker/colorpickerview.js +5 -5
  107. package/src/colorpicker/utils.d.ts +1 -1
  108. package/src/colorpicker/utils.js +1 -1
  109. package/src/colorselector/colorgridsfragmentview.d.ts +9 -8
  110. package/src/colorselector/colorgridsfragmentview.js +10 -10
  111. package/src/colorselector/colorpickerfragmentview.d.ts +9 -8
  112. package/src/colorselector/colorpickerfragmentview.js +7 -8
  113. package/src/colorselector/colorselectorview.d.ts +9 -9
  114. package/src/colorselector/colorselectorview.js +6 -6
  115. package/src/colorselector/documentcolorcollection.d.ts +2 -2
  116. package/src/colorselector/documentcolorcollection.js +1 -1
  117. package/src/componentfactory.d.ts +2 -2
  118. package/src/componentfactory.js +1 -1
  119. package/src/dialog/dialog.d.ts +273 -0
  120. package/src/dialog/dialog.js +261 -0
  121. package/src/dialog/dialogactionsview.d.ts +69 -0
  122. package/src/dialog/dialogactionsview.js +98 -0
  123. package/src/dialog/dialogcontentview.d.ts +27 -0
  124. package/src/dialog/dialogcontentview.js +35 -0
  125. package/src/dialog/dialogview.d.ts +256 -0
  126. package/src/dialog/dialogview.js +466 -0
  127. package/src/dropdown/button/dropdownbutton.d.ts +3 -3
  128. package/src/dropdown/button/dropdownbutton.js +1 -1
  129. package/src/dropdown/button/dropdownbuttonview.d.ts +4 -4
  130. package/src/dropdown/button/dropdownbuttonview.js +3 -3
  131. package/src/dropdown/button/splitbuttonview.d.ts +8 -7
  132. package/src/dropdown/button/splitbuttonview.js +10 -8
  133. package/src/dropdown/dropdownpanelfocusable.d.ts +1 -1
  134. package/src/dropdown/dropdownpanelfocusable.js +1 -1
  135. package/src/dropdown/dropdownpanelview.d.ts +4 -4
  136. package/src/dropdown/dropdownpanelview.js +2 -2
  137. package/src/dropdown/dropdownview.d.ts +8 -8
  138. package/src/dropdown/dropdownview.js +5 -4
  139. package/src/dropdown/utils.d.ts +11 -11
  140. package/src/dropdown/utils.js +18 -18
  141. package/src/editableui/editableuiview.d.ts +3 -3
  142. package/src/editableui/editableuiview.js +2 -2
  143. package/src/editableui/inline/inlineeditableuiview.d.ts +4 -4
  144. package/src/editableui/inline/inlineeditableuiview.js +2 -2
  145. package/src/editorui/bodycollection.d.ts +3 -3
  146. package/src/editorui/bodycollection.js +3 -3
  147. package/src/editorui/boxed/boxededitoruiview.d.ts +3 -3
  148. package/src/editorui/boxed/boxededitoruiview.js +3 -3
  149. package/src/editorui/editorui.d.ts +7 -7
  150. package/src/editorui/editorui.js +5 -5
  151. package/src/editorui/editoruiview.d.ts +4 -4
  152. package/src/editorui/editoruiview.js +3 -3
  153. package/src/editorui/poweredby.d.ts +1 -1
  154. package/src/editorui/poweredby.js +4 -4
  155. package/src/focuscycler.d.ts +27 -8
  156. package/src/focuscycler.js +44 -15
  157. package/src/formheader/formheaderview.d.ts +4 -4
  158. package/src/formheader/formheaderview.js +3 -3
  159. package/src/highlightedtext/highlightedtextview.d.ts +2 -2
  160. package/src/highlightedtext/highlightedtextview.js +2 -2
  161. package/src/icon/iconview.d.ts +2 -2
  162. package/src/icon/iconview.js +4 -3
  163. package/src/iframe/iframeview.d.ts +2 -2
  164. package/src/iframe/iframeview.js +2 -2
  165. package/src/index.d.ts +67 -67
  166. package/src/index.js +63 -64
  167. package/src/input/inputbase.d.ts +2 -2
  168. package/src/input/inputbase.js +2 -2
  169. package/src/input/inputview.d.ts +2 -2
  170. package/src/input/inputview.js +2 -2
  171. package/src/inputnumber/inputnumberview.d.ts +2 -2
  172. package/src/inputnumber/inputnumberview.js +2 -2
  173. package/src/inputtext/inputtextview.d.ts +2 -2
  174. package/src/inputtext/inputtextview.js +2 -2
  175. package/src/label/labelview.d.ts +2 -2
  176. package/src/label/labelview.js +2 -2
  177. package/src/labeledfield/labeledfieldview.d.ts +5 -5
  178. package/src/labeledfield/labeledfieldview.js +3 -3
  179. package/src/labeledfield/utils.d.ts +14 -14
  180. package/src/labeledfield/utils.js +13 -13
  181. package/src/labeledinput/labeledinputview.d.ts +4 -4
  182. package/src/labeledinput/labeledinputview.js +3 -3
  183. package/src/list/listitemgroupview.d.ts +6 -6
  184. package/src/list/listitemgroupview.js +11 -7
  185. package/src/list/listitemview.d.ts +4 -4
  186. package/src/list/listitemview.js +2 -2
  187. package/src/list/listseparatorview.d.ts +2 -2
  188. package/src/list/listseparatorview.js +2 -2
  189. package/src/list/listview.d.ts +10 -8
  190. package/src/list/listview.js +7 -6
  191. package/src/model.d.ts +1 -1
  192. package/src/model.js +1 -1
  193. package/src/notification/notification.d.ts +1 -1
  194. package/src/notification/notification.js +1 -1
  195. package/src/panel/balloon/balloonpanelview.d.ts +4 -4
  196. package/src/panel/balloon/balloonpanelview.js +5 -4
  197. package/src/panel/balloon/contextualballoon.d.ts +5 -5
  198. package/src/panel/balloon/contextualballoon.js +7 -9
  199. package/src/panel/sticky/stickypanelview.d.ts +9 -9
  200. package/src/panel/sticky/stickypanelview.js +7 -7
  201. package/src/search/filteredview.d.ts +2 -2
  202. package/src/search/filteredview.js +1 -1
  203. package/src/search/searchinfoview.d.ts +3 -3
  204. package/src/search/searchinfoview.js +2 -2
  205. package/src/search/searchresultsview.d.ts +5 -5
  206. package/src/search/searchresultsview.js +3 -3
  207. package/src/search/text/searchtextqueryview.d.ts +5 -5
  208. package/src/search/text/searchtextqueryview.js +5 -5
  209. package/src/search/text/searchtextview.d.ts +12 -12
  210. package/src/search/text/searchtextview.js +6 -6
  211. package/src/spinner/spinnerview.d.ts +2 -2
  212. package/src/spinner/spinnerview.js +2 -2
  213. package/src/template.d.ts +3 -3
  214. package/src/template.js +3 -3
  215. package/src/textarea/textareaview.d.ts +18 -2
  216. package/src/textarea/textareaview.js +46 -6
  217. package/src/toolbar/balloon/balloontoolbar.d.ts +3 -3
  218. package/src/toolbar/balloon/balloontoolbar.js +5 -5
  219. package/src/toolbar/block/blockbuttonview.d.ts +2 -2
  220. package/src/toolbar/block/blockbuttonview.js +2 -2
  221. package/src/toolbar/block/blocktoolbar.d.ts +4 -4
  222. package/src/toolbar/block/blocktoolbar.js +6 -6
  223. package/src/toolbar/normalizetoolbarconfig.d.ts +1 -1
  224. package/src/toolbar/normalizetoolbarconfig.js +1 -1
  225. package/src/toolbar/toolbarlinebreakview.d.ts +2 -2
  226. package/src/toolbar/toolbarlinebreakview.js +2 -2
  227. package/src/toolbar/toolbarseparatorview.d.ts +2 -2
  228. package/src/toolbar/toolbarseparatorview.js +2 -2
  229. package/src/toolbar/toolbarview.d.ts +7 -6
  230. package/src/toolbar/toolbarview.js +17 -15
  231. package/src/tooltipmanager.d.ts +3 -3
  232. package/src/tooltipmanager.js +5 -4
  233. package/src/view.d.ts +3 -3
  234. package/src/view.js +3 -3
  235. package/src/viewcollection.d.ts +2 -2
  236. package/src/viewcollection.js +1 -1
  237. package/theme/components/arialiveannouncer/arialiveannouncer.css +1 -1
  238. package/theme/components/autocomplete/autocomplete.css +2 -2
  239. package/theme/components/button/button.css +1 -1
  240. package/theme/components/button/switchbutton.css +1 -1
  241. package/theme/components/collapsible/collapsible.css +10 -0
  242. package/theme/components/colorgrid/colorgrid.css +1 -1
  243. package/theme/components/colorpicker/colorpicker.css +1 -1
  244. package/theme/components/colorselector/colorselector.css +1 -1
  245. package/theme/components/dialog/dialog.css +39 -0
  246. package/theme/components/dialog/dialogactions.css +11 -0
  247. package/theme/components/dropdown/dropdown.css +3 -3
  248. package/theme/components/dropdown/listdropdown.css +1 -1
  249. package/theme/components/dropdown/splitbutton.css +1 -1
  250. package/theme/components/dropdown/toolbardropdown.css +1 -1
  251. package/theme/components/editorui/editorui.css +1 -1
  252. package/theme/components/formheader/formheader.css +1 -1
  253. package/theme/components/highlightedtext/highlightedtext.css +1 -1
  254. package/theme/components/icon/icon.css +1 -1
  255. package/theme/components/input/input.css +1 -1
  256. package/theme/components/label/label.css +1 -1
  257. package/theme/components/labeledfield/labeledfieldview.css +1 -1
  258. package/theme/components/labeledinput/labeledinput.css +1 -1
  259. package/theme/components/list/list.css +1 -1
  260. package/theme/components/panel/balloonpanel.css +2 -2
  261. package/theme/components/panel/balloonrotator.css +1 -1
  262. package/theme/components/panel/fakepanel.css +2 -2
  263. package/theme/components/panel/stickypanel.css +2 -2
  264. package/theme/components/responsive-form/responsiveform.css +1 -1
  265. package/theme/components/search/search.css +1 -1
  266. package/theme/components/spinner/spinner.css +1 -1
  267. package/theme/components/textarea/textarea.css +1 -1
  268. package/theme/components/toolbar/blocktoolbar.css +1 -1
  269. package/theme/components/toolbar/toolbar.css +1 -1
  270. package/theme/components/tooltip/tooltip.css +2 -2
  271. package/theme/globals/_hidden.css +1 -1
  272. package/theme/globals/_poweredby.css +2 -2
  273. package/theme/globals/_reset.css +1 -1
  274. package/theme/globals/_transition.css +1 -1
  275. package/theme/globals/_zindex.css +3 -2
  276. package/theme/globals/globals.css +1 -1
  277. package/theme/mixins/_dir.css +1 -1
  278. package/theme/mixins/_rwd.css +1 -1
  279. package/theme/mixins/_unselectable.css +1 -1
  280. package/theme/icons/color-palette.svg +0 -1
  281. package/theme/icons/next-arrow.svg +0 -1
  282. package/theme/icons/previous-arrow.svg +0 -1
@@ -1,8 +1,8 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
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 InputBase from './inputbase';
5
+ import InputBase from './inputbase.js';
6
6
  import '../../theme/components/input/input.css';
7
7
  /**
8
8
  * The input view class.
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
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
5
  /**
6
6
  * @module ui/inputnumber/inputnumberview
7
7
  */
8
- import InputView from '../input/inputview';
8
+ import InputView from '../input/inputview.js';
9
9
  import type { Locale } from '@ckeditor/ckeditor5-utils';
10
10
  /**
11
11
  * The number input view class.
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
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
5
  /**
6
6
  * @module ui/inputnumber/inputnumberview
7
7
  */
8
- import InputView from '../input/inputview';
8
+ import InputView from '../input/inputview.js';
9
9
  /**
10
10
  * The number input view class.
11
11
  */
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
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
5
  /**
6
6
  * @module ui/inputtext/inputtextview
7
7
  */
8
- import InputView from '../input/inputview';
8
+ import InputView from '../input/inputview.js';
9
9
  import type { Locale } from '@ckeditor/ckeditor5-utils';
10
10
  /**
11
11
  * The text input view class.
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
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
5
  /**
6
6
  * @module ui/inputtext/inputtextview
7
7
  */
8
- import InputView from '../input/inputview';
8
+ import InputView from '../input/inputview.js';
9
9
  /**
10
10
  * The text input view class.
11
11
  */
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
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
5
  /**
6
6
  * @module ui/label/labelview
7
7
  */
8
- import View from '../view';
8
+ import View from '../view.js';
9
9
  import { type Locale } from '@ckeditor/ckeditor5-utils';
10
10
  import '../../theme/components/label/label.css';
11
11
  /**
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
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
5
  /**
6
6
  * @module ui/label/labelview
7
7
  */
8
- import View from '../view';
8
+ import View from '../view.js';
9
9
  import { uid } from '@ckeditor/ckeditor5-utils';
10
10
  import '../../theme/components/label/label.css';
11
11
  /**
@@ -1,14 +1,14 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
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
5
  /**
6
6
  * @module ui/labeledfield/labeledfieldview
7
7
  */
8
- import View from '../view';
9
- import LabelView from '../label/labelview';
10
- import type { FocusableView } from '../focuscycler';
11
- import type ViewCollection from '../viewcollection';
8
+ import View from '../view.js';
9
+ import LabelView from '../label/labelview.js';
10
+ import type { FocusableView } from '../focuscycler.js';
11
+ import type ViewCollection from '../viewcollection.js';
12
12
  import { type Locale } from '@ckeditor/ckeditor5-utils';
13
13
  import '../../theme/components/labeledfield/labeledfieldview.css';
14
14
  /**
@@ -1,12 +1,12 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
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
5
  /**
6
6
  * @module ui/labeledfield/labeledfieldview
7
7
  */
8
- import View from '../view';
9
- import LabelView from '../label/labelview';
8
+ import View from '../view.js';
9
+ import LabelView from '../label/labelview.js';
10
10
  import { uid } from '@ckeditor/ckeditor5-utils';
11
11
  import '../../theme/components/labeledfield/labeledfieldview.css';
12
12
  /**
@@ -1,15 +1,15 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
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
5
  /**
6
6
  * @module ui/labeledfield/utils
7
7
  */
8
- import InputTextView from '../inputtext/inputtextview';
9
- import InputNumberView from '../inputnumber/inputnumberview';
10
- import TextareaView from '../textarea/textareaview';
11
- import type DropdownView from '../dropdown/dropdownview';
12
- import type { LabeledFieldViewCreator } from './labeledfieldview';
8
+ import InputTextView from '../inputtext/inputtextview.js';
9
+ import InputNumberView from '../inputnumber/inputnumberview.js';
10
+ import TextareaView from '../textarea/textareaview.js';
11
+ import type DropdownView from '../dropdown/dropdownview.js';
12
+ import type { LabeledFieldViewCreator } from './labeledfieldview.js';
13
13
  /**
14
14
  * A helper for creating labeled inputs.
15
15
  *
@@ -31,9 +31,9 @@ import type { LabeledFieldViewCreator } from './labeledfieldview';
31
31
  * ```
32
32
  *
33
33
  * @param labeledFieldView The instance of the labeled field view.
34
- * @param viewUid An UID string that allows DOM logical connection between the
34
+ * @param viewUid A UID string that allows DOM logical connection between the
35
35
  * {@link module:ui/labeledfield/labeledfieldview~LabeledFieldView#labelView labeled view's label} and the input.
36
- * @param statusUid An UID string that allows DOM logical connection between the
36
+ * @param statusUid A UID string that allows DOM logical connection between the
37
37
  * {@link module:ui/labeledfield/labeledfieldview~LabeledFieldView#statusView labeled view's status} and the input.
38
38
  * @returns The input text view instance.
39
39
  */
@@ -59,9 +59,9 @@ declare const createLabeledInputText: LabeledFieldViewCreator<InputTextView>;
59
59
  * ```
60
60
  *
61
61
  * @param labeledFieldView The instance of the labeled field view.
62
- * @param viewUid An UID string that allows DOM logical connection between the
62
+ * @param viewUid A UID string that allows DOM logical connection between the
63
63
  * {@link module:ui/labeledfield/labeledfieldview~LabeledFieldView#labelView labeled view's label} and the input.
64
- * @param statusUid An UID string that allows DOM logical connection between the
64
+ * @param statusUid A UID string that allows DOM logical connection between the
65
65
  * {@link module:ui/labeledfield/labeledfieldview~LabeledFieldView#statusView labeled view's status} and the input.
66
66
  * @returns The input number view instance.
67
67
  */
@@ -87,9 +87,9 @@ declare const createLabeledInputNumber: LabeledFieldViewCreator<InputNumberView>
87
87
  * ```
88
88
  *
89
89
  * @param labeledFieldView The instance of the labeled field view.
90
- * @param viewUid An UID string that allows DOM logical connection between the
90
+ * @param viewUid A UID string that allows DOM logical connection between the
91
91
  * {@link module:ui/labeledfield/labeledfieldview~LabeledFieldView#labelView labeled view's label} and the textarea.
92
- * @param statusUid An UID string that allows DOM logical connection between the
92
+ * @param statusUid A UID string that allows DOM logical connection between the
93
93
  * {@link module:ui/labeledfield/labeledfieldview~LabeledFieldView#statusView labeled view's status} and the textarea.
94
94
  * @returns The textarea view instance.
95
95
  */
@@ -113,9 +113,9 @@ declare const createLabeledTextarea: LabeledFieldViewCreator<TextareaView>;
113
113
  * ```
114
114
  *
115
115
  * @param labeledFieldView The instance of the labeled field view.
116
- * @param viewUid An UID string that allows DOM logical connection between the
116
+ * @param viewUid A UID string that allows DOM logical connection between the
117
117
  * {@link module:ui/labeledfield/labeledfieldview~LabeledFieldView#labelView labeled view label} and the dropdown.
118
- * @param statusUid An UID string that allows DOM logical connection between the
118
+ * @param statusUid A UID string that allows DOM logical connection between the
119
119
  * {@link module:ui/labeledfield/labeledfieldview~LabeledFieldView#statusView labeled view status} and the dropdown.
120
120
  * @returns The dropdown view instance.
121
121
  */
@@ -1,14 +1,14 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
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
5
  /**
6
6
  * @module ui/labeledfield/utils
7
7
  */
8
- import InputTextView from '../inputtext/inputtextview';
9
- import InputNumberView from '../inputnumber/inputnumberview';
10
- import TextareaView from '../textarea/textareaview';
11
- import { createDropdown } from '../dropdown/utils';
8
+ import InputTextView from '../inputtext/inputtextview.js';
9
+ import InputNumberView from '../inputnumber/inputnumberview.js';
10
+ import TextareaView from '../textarea/textareaview.js';
11
+ import { createDropdown } from '../dropdown/utils.js';
12
12
  /**
13
13
  * A helper for creating labeled inputs.
14
14
  *
@@ -30,9 +30,9 @@ import { createDropdown } from '../dropdown/utils';
30
30
  * ```
31
31
  *
32
32
  * @param labeledFieldView The instance of the labeled field view.
33
- * @param viewUid An UID string that allows DOM logical connection between the
33
+ * @param viewUid A UID string that allows DOM logical connection between the
34
34
  * {@link module:ui/labeledfield/labeledfieldview~LabeledFieldView#labelView labeled view's label} and the input.
35
- * @param statusUid An UID string that allows DOM logical connection between the
35
+ * @param statusUid A UID string that allows DOM logical connection between the
36
36
  * {@link module:ui/labeledfield/labeledfieldview~LabeledFieldView#statusView labeled view's status} and the input.
37
37
  * @returns The input text view instance.
38
38
  */
@@ -73,9 +73,9 @@ const createLabeledInputText = (labeledFieldView, viewUid, statusUid) => {
73
73
  * ```
74
74
  *
75
75
  * @param labeledFieldView The instance of the labeled field view.
76
- * @param viewUid An UID string that allows DOM logical connection between the
76
+ * @param viewUid A UID string that allows DOM logical connection between the
77
77
  * {@link module:ui/labeledfield/labeledfieldview~LabeledFieldView#labelView labeled view's label} and the input.
78
- * @param statusUid An UID string that allows DOM logical connection between the
78
+ * @param statusUid A UID string that allows DOM logical connection between the
79
79
  * {@link module:ui/labeledfield/labeledfieldview~LabeledFieldView#statusView labeled view's status} and the input.
80
80
  * @returns The input number view instance.
81
81
  */
@@ -117,9 +117,9 @@ const createLabeledInputNumber = (labeledFieldView, viewUid, statusUid) => {
117
117
  * ```
118
118
  *
119
119
  * @param labeledFieldView The instance of the labeled field view.
120
- * @param viewUid An UID string that allows DOM logical connection between the
120
+ * @param viewUid A UID string that allows DOM logical connection between the
121
121
  * {@link module:ui/labeledfield/labeledfieldview~LabeledFieldView#labelView labeled view's label} and the textarea.
122
- * @param statusUid An UID string that allows DOM logical connection between the
122
+ * @param statusUid A UID string that allows DOM logical connection between the
123
123
  * {@link module:ui/labeledfield/labeledfieldview~LabeledFieldView#statusView labeled view's status} and the textarea.
124
124
  * @returns The textarea view instance.
125
125
  */
@@ -158,9 +158,9 @@ const createLabeledTextarea = (labeledFieldView, viewUid, statusUid) => {
158
158
  * ```
159
159
  *
160
160
  * @param labeledFieldView The instance of the labeled field view.
161
- * @param viewUid An UID string that allows DOM logical connection between the
161
+ * @param viewUid A UID string that allows DOM logical connection between the
162
162
  * {@link module:ui/labeledfield/labeledfieldview~LabeledFieldView#labelView labeled view label} and the dropdown.
163
- * @param statusUid An UID string that allows DOM logical connection between the
163
+ * @param statusUid A UID string that allows DOM logical connection between the
164
164
  * {@link module:ui/labeledfield/labeledfieldview~LabeledFieldView#statusView labeled view status} and the dropdown.
165
165
  * @returns The dropdown view instance.
166
166
  */
@@ -1,13 +1,13 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
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
5
  /**
6
6
  * @module ui/labeledinput/labeledinputview
7
7
  */
8
- import View from '../view';
9
- import LabelView from '../label/labelview';
10
- import type { default as InputView } from '../input/inputview';
8
+ import View from '../view.js';
9
+ import LabelView from '../label/labelview.js';
10
+ import type { default as InputView } from '../input/inputview.js';
11
11
  import { type Locale } from '@ckeditor/ckeditor5-utils';
12
12
  import '../../theme/components/labeledinput/labeledinput.css';
13
13
  /**
@@ -1,12 +1,12 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
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
5
  /**
6
6
  * @module ui/labeledinput/labeledinputview
7
7
  */
8
- import View from '../view';
9
- import LabelView from '../label/labelview';
8
+ import View from '../view.js';
9
+ import LabelView from '../label/labelview.js';
10
10
  import { uid } from '@ckeditor/ckeditor5-utils';
11
11
  import '../../theme/components/labeledinput/labeledinput.css';
12
12
  /**
@@ -1,14 +1,14 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
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
5
  /**
6
6
  * @module ui/list/listitemgroupview
7
7
  */
8
- import View from '../view';
9
- import type ViewCollection from '../viewcollection';
10
- import ListView from './listview';
11
- import LabelView from '../label/labelview';
8
+ import View from '../view.js';
9
+ import type ViewCollection from '../viewcollection.js';
10
+ import ListView from './listview.js';
11
+ import LabelView from '../label/labelview.js';
12
12
  import { type Locale } from '@ckeditor/ckeditor5-utils';
13
13
  /**
14
14
  * The list item group view class.
@@ -53,7 +53,7 @@ export default class ListItemGroupView extends View {
53
53
  */
54
54
  constructor(locale?: Locale, labelView?: LabelView);
55
55
  /**
56
- * Focuses the list item.
56
+ * Focuses the list item (which is not a separator).
57
57
  */
58
58
  focus(): void;
59
59
  }
@@ -1,13 +1,14 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
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
5
  /**
6
6
  * @module ui/list/listitemgroupview
7
7
  */
8
- import View from '../view';
9
- import ListView from './listview';
10
- import LabelView from '../label/labelview';
8
+ import View from '../view.js';
9
+ import ListView from './listview.js';
10
+ import LabelView from '../label/labelview.js';
11
+ import ListSeparatorView from './listseparatorview.js';
11
12
  /**
12
13
  * The list item group view class.
13
14
  */
@@ -53,11 +54,14 @@ export default class ListItemGroupView extends View {
53
54
  });
54
55
  }
55
56
  /**
56
- * Focuses the list item.
57
+ * Focuses the list item (which is not a separator).
57
58
  */
58
59
  focus() {
59
- if (this.items.first) {
60
- this.items.first.focus();
60
+ if (this.items) {
61
+ const firstListItem = this.items.find(item => !(item instanceof ListSeparatorView));
62
+ if (firstListItem) {
63
+ firstListItem.focus();
64
+ }
61
65
  }
62
66
  }
63
67
  }
@@ -1,13 +1,13 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
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
5
  /**
6
6
  * @module ui/list/listitemview
7
7
  */
8
- import View from '../view';
9
- import type { FocusableView } from '../focuscycler';
10
- import type ViewCollection from '../viewcollection';
8
+ import View from '../view.js';
9
+ import type { FocusableView } from '../focuscycler.js';
10
+ import type ViewCollection from '../viewcollection.js';
11
11
  import type { Locale } from '@ckeditor/ckeditor5-utils';
12
12
  /**
13
13
  * The list item view class.
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
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
5
  /**
6
6
  * @module ui/list/listitemview
7
7
  */
8
- import View from '../view';
8
+ import View from '../view.js';
9
9
  /**
10
10
  * The list item view class.
11
11
  */
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
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
5
  /**
6
6
  * @module ui/list/listseparatorview
7
7
  */
8
- import View from '../view';
8
+ import View from '../view.js';
9
9
  import type { Locale } from '@ckeditor/ckeditor5-utils';
10
10
  /**
11
11
  * The list separator view class.
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
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
5
  /**
6
6
  * @module ui/list/listseparatorview
7
7
  */
8
- import View from '../view';
8
+ import View from '../view.js';
9
9
  /**
10
10
  * The list separator view class.
11
11
  */
@@ -1,15 +1,17 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
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
5
  /**
6
6
  * @module ui/list/listview
7
7
  */
8
- import View from '../view';
9
- import type ListItemView from './listitemview';
10
- import ListItemGroupView from './listitemgroupview';
11
- import type DropdownPanelFocusable from '../dropdown/dropdownpanelfocusable';
12
- import ViewCollection from '../viewcollection';
8
+ import View from '../view.js';
9
+ import { type FocusableView } from '../focuscycler.js';
10
+ import ListItemView from './listitemview.js';
11
+ import ListItemGroupView from './listitemgroupview.js';
12
+ import type ListSeparatorView from './listseparatorview.js';
13
+ import type DropdownPanelFocusable from '../dropdown/dropdownpanelfocusable.js';
14
+ import ViewCollection from '../viewcollection.js';
13
15
  import { FocusTracker, KeystrokeHandler, type Locale } from '@ckeditor/ckeditor5-utils';
14
16
  import '../../theme/components/list/list.css';
15
17
  /**
@@ -21,11 +23,11 @@ export default class ListView extends View<HTMLUListElement> implements Dropdown
21
23
  * between the {@link module:ui/list/listitemview~ListItemView list items} and
22
24
  * {@link module:ui/list/listitemgroupview~ListItemGroupView list groups}.
23
25
  */
24
- readonly focusables: ViewCollection;
26
+ readonly focusables: ViewCollection<FocusableView>;
25
27
  /**
26
28
  * Collection of the child list views.
27
29
  */
28
- readonly items: ViewCollection<ListItemView | ListItemGroupView>;
30
+ readonly items: ViewCollection<ListItemView | ListItemGroupView | ListSeparatorView>;
29
31
  /**
30
32
  * Tracks information about DOM focus in the list.
31
33
  */
@@ -1,14 +1,15 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
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
5
  /**
6
6
  * @module ui/list/listview
7
7
  */
8
- import View from '../view';
9
- import FocusCycler from '../focuscycler';
10
- import ListItemGroupView from './listitemgroupview';
11
- import ViewCollection from '../viewcollection';
8
+ import View from '../view.js';
9
+ import FocusCycler from '../focuscycler.js';
10
+ import ListItemView from './listitemview.js';
11
+ import ListItemGroupView from './listitemgroupview.js';
12
+ import ViewCollection from '../viewcollection.js';
12
13
  import { FocusTracker, KeystrokeHandler } from '@ckeditor/ckeditor5-utils';
13
14
  import '../../theme/components/list/list.css';
14
15
  /**
@@ -69,7 +70,7 @@ export default class ListView extends View {
69
70
  if (item instanceof ListItemGroupView) {
70
71
  this._registerFocusableItemsGroup(item);
71
72
  }
72
- else {
73
+ else if (item instanceof ListItemView) {
73
74
  this._registerFocusableListItem(item);
74
75
  }
75
76
  }
package/src/model.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
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
5
  declare const Model_base: {
package/src/model.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
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
5
  /**
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
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
5
  /**
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
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
5
  /**
@@ -1,12 +1,12 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
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
5
  /**
6
6
  * @module ui/panel/balloon/balloonpanelview
7
7
  */
8
- import View from '../../view';
9
- import type ViewCollection from '../../viewcollection';
8
+ import View from '../../view.js';
9
+ import type ViewCollection from '../../viewcollection.js';
10
10
  import { type Locale, type PositionOptions, type PositioningFunction } from '@ckeditor/ckeditor5-utils';
11
11
  import '../../../theme/components/panel/balloonpanel.css';
12
12
  /**
@@ -647,7 +647,7 @@ export default class BalloonPanelView extends View {
647
647
  *
648
648
  * See {@link module:ui/panel/balloon/balloonpanelview~BalloonPanelView#attachTo}.
649
649
  *
650
- * Positioning functions must be compatible with {@link module:utils/dom/position~Position}.
650
+ * Positioning functions must be compatible with {@link module:utils/dom/position~DomPoint}.
651
651
  *
652
652
  * Default positioning functions with customized offsets can be generated using
653
653
  * {@link module:ui/panel/balloon/balloonpanelview~generatePositions}.
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
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
5
  /**
6
6
  * @module ui/panel/balloon/balloonpanelview
7
7
  */
8
- import View from '../../view';
8
+ import View from '../../view.js';
9
9
  import { getOptimalPosition, global, isRange, toUnit } from '@ckeditor/ckeditor5-utils';
10
10
  import { isElement } from 'lodash-es';
11
11
  import '../../../theme/components/panel/balloonpanel.css';
@@ -66,7 +66,7 @@ const POSITION_OFF_SCREEN = {
66
66
  * } );
67
67
  * ```
68
68
  */
69
- export default class BalloonPanelView extends View {
69
+ class BalloonPanelView extends View {
70
70
  /**
71
71
  * @inheritDoc
72
72
  */
@@ -720,7 +720,7 @@ BalloonPanelView._getOptimalPosition = getOptimalPosition;
720
720
  *
721
721
  * See {@link module:ui/panel/balloon/balloonpanelview~BalloonPanelView#attachTo}.
722
722
  *
723
- * Positioning functions must be compatible with {@link module:utils/dom/position~Position}.
723
+ * Positioning functions must be compatible with {@link module:utils/dom/position~DomPoint}.
724
724
  *
725
725
  * Default positioning functions with customized offsets can be generated using
726
726
  * {@link module:ui/panel/balloon/balloonpanelview~generatePositions}.
@@ -729,6 +729,7 @@ BalloonPanelView._getOptimalPosition = getOptimalPosition;
729
729
  * controls the placement of the "arrow". See {@link #position} to learn more.
730
730
  */
731
731
  BalloonPanelView.defaultPositions = generatePositions();
732
+ export default BalloonPanelView;
732
733
  /**
733
734
  * Returns the DOM element for given object or null, if there is none,
734
735
  * e.g. when the passed object is a Rect instance or so.
@@ -1,14 +1,14 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
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
5
  /**
6
6
  * @module ui/panel/balloon/contextualballoon
7
7
  */
8
- import BalloonPanelView from './balloonpanelview';
9
- import View from '../../view';
10
- import ButtonView from '../../button/buttonview';
11
- import type ViewCollection from '../../viewcollection';
8
+ import BalloonPanelView from './balloonpanelview.js';
9
+ import View from '../../view.js';
10
+ import ButtonView from '../../button/buttonview.js';
11
+ import type ViewCollection from '../../viewcollection.js';
12
12
  import { Plugin, type Editor } from '@ckeditor/ckeditor5-core';
13
13
  import { FocusTracker, type Locale, type PositionOptions } from '@ckeditor/ckeditor5-utils';
14
14
  import '../../../theme/components/panel/balloonrotator.css';