@ckeditor/ckeditor5-table 40.2.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 (240) hide show
  1. package/CHANGELOG.md +4 -4
  2. package/LICENSE.md +1 -1
  3. package/build/table.js +2 -2
  4. package/ckeditor5-metadata.json +1 -1
  5. package/lang/translations/ar.po +1 -1
  6. package/lang/translations/az.po +1 -1
  7. package/lang/translations/bg.po +1 -1
  8. package/lang/translations/bn.po +1 -1
  9. package/lang/translations/ca.po +1 -1
  10. package/lang/translations/cs.po +1 -1
  11. package/lang/translations/da.po +1 -1
  12. package/lang/translations/de-ch.po +1 -1
  13. package/lang/translations/de.po +1 -1
  14. package/lang/translations/el.po +1 -1
  15. package/lang/translations/en-au.po +1 -1
  16. package/lang/translations/en-gb.po +1 -1
  17. package/lang/translations/en.po +1 -1
  18. package/lang/translations/es.po +1 -1
  19. package/lang/translations/et.po +1 -1
  20. package/lang/translations/fa.po +1 -1
  21. package/lang/translations/fi.po +1 -1
  22. package/lang/translations/fr.po +1 -1
  23. package/lang/translations/gl.po +1 -1
  24. package/lang/translations/he.po +1 -1
  25. package/lang/translations/hi.po +1 -1
  26. package/lang/translations/hr.po +1 -1
  27. package/lang/translations/hu.po +1 -1
  28. package/lang/translations/hy.po +1 -1
  29. package/lang/translations/id.po +1 -1
  30. package/lang/translations/it.po +1 -1
  31. package/lang/translations/ja.po +1 -1
  32. package/lang/translations/ko.po +1 -1
  33. package/lang/translations/ku.po +1 -1
  34. package/lang/translations/lt.po +1 -1
  35. package/lang/translations/lv.po +1 -1
  36. package/lang/translations/ms.po +1 -1
  37. package/lang/translations/nb.po +1 -1
  38. package/lang/translations/ne.po +1 -1
  39. package/lang/translations/nl.po +1 -1
  40. package/lang/translations/no.po +1 -1
  41. package/lang/translations/pl.po +1 -1
  42. package/lang/translations/pt-br.po +1 -1
  43. package/lang/translations/pt.po +1 -1
  44. package/lang/translations/ro.po +1 -1
  45. package/lang/translations/ru.po +1 -1
  46. package/lang/translations/sk.po +1 -1
  47. package/lang/translations/sl.po +1 -1
  48. package/lang/translations/sq.po +1 -1
  49. package/lang/translations/sr-latn.po +1 -1
  50. package/lang/translations/sr.po +1 -1
  51. package/lang/translations/sv.po +1 -1
  52. package/lang/translations/th.po +1 -1
  53. package/lang/translations/tk.po +1 -1
  54. package/lang/translations/tr.po +1 -1
  55. package/lang/translations/tt.po +1 -1
  56. package/lang/translations/ug.po +1 -1
  57. package/lang/translations/uk.po +1 -1
  58. package/lang/translations/ur.po +1 -1
  59. package/lang/translations/uz.po +1 -1
  60. package/lang/translations/vi.po +1 -1
  61. package/lang/translations/zh-cn.po +1 -1
  62. package/lang/translations/zh.po +1 -1
  63. package/package.json +3 -2
  64. package/src/augmentation.d.ts +2 -2
  65. package/src/augmentation.js +1 -1
  66. package/src/commands/insertcolumncommand.d.ts +2 -2
  67. package/src/commands/insertcolumncommand.js +2 -2
  68. package/src/commands/insertrowcommand.d.ts +2 -2
  69. package/src/commands/insertrowcommand.js +2 -2
  70. package/src/commands/inserttablecommand.d.ts +2 -2
  71. package/src/commands/inserttablecommand.js +2 -2
  72. package/src/commands/mergecellcommand.d.ts +4 -4
  73. package/src/commands/mergecellcommand.js +5 -5
  74. package/src/commands/mergecellscommand.d.ts +2 -2
  75. package/src/commands/mergecellscommand.js +5 -5
  76. package/src/commands/removecolumncommand.d.ts +2 -2
  77. package/src/commands/removecolumncommand.js +3 -3
  78. package/src/commands/removerowcommand.d.ts +2 -2
  79. package/src/commands/removerowcommand.js +2 -2
  80. package/src/commands/selectcolumncommand.d.ts +2 -2
  81. package/src/commands/selectcolumncommand.js +3 -3
  82. package/src/commands/selectrowcommand.d.ts +2 -2
  83. package/src/commands/selectrowcommand.js +2 -2
  84. package/src/commands/setheadercolumncommand.d.ts +2 -2
  85. package/src/commands/setheadercolumncommand.js +4 -4
  86. package/src/commands/setheaderrowcommand.d.ts +2 -2
  87. package/src/commands/setheaderrowcommand.js +4 -4
  88. package/src/commands/splitcellcommand.d.ts +2 -2
  89. package/src/commands/splitcellcommand.js +2 -2
  90. package/src/converters/downcast.d.ts +4 -4
  91. package/src/converters/downcast.js +3 -3
  92. package/src/converters/table-caption-post-fixer.d.ts +2 -2
  93. package/src/converters/table-caption-post-fixer.js +1 -1
  94. package/src/converters/table-cell-paragraph-post-fixer.d.ts +2 -2
  95. package/src/converters/table-cell-paragraph-post-fixer.js +1 -1
  96. package/src/converters/table-cell-refresh-handler.d.ts +2 -2
  97. package/src/converters/table-cell-refresh-handler.js +2 -2
  98. package/src/converters/table-headings-refresh-handler.d.ts +2 -2
  99. package/src/converters/table-headings-refresh-handler.js +2 -2
  100. package/src/converters/table-layout-post-fixer.d.ts +2 -2
  101. package/src/converters/table-layout-post-fixer.js +3 -3
  102. package/src/converters/tableproperties.d.ts +2 -2
  103. package/src/converters/tableproperties.js +1 -1
  104. package/src/converters/upcasttable.d.ts +2 -2
  105. package/src/converters/upcasttable.js +3 -3
  106. package/src/index.d.ts +54 -54
  107. package/src/index.js +24 -24
  108. package/src/plaintableoutput.d.ts +3 -3
  109. package/src/plaintableoutput.js +3 -3
  110. package/src/table.d.ts +9 -9
  111. package/src/table.js +9 -9
  112. package/src/tablecaption/tablecaptionediting.d.ts +3 -3
  113. package/src/tablecaption/tablecaptionediting.js +7 -7
  114. package/src/tablecaption/tablecaptionui.d.ts +2 -2
  115. package/src/tablecaption/tablecaptionui.js +4 -4
  116. package/src/tablecaption/toggletablecaptioncommand.d.ts +2 -2
  117. package/src/tablecaption/toggletablecaptioncommand.js +4 -4
  118. package/src/tablecaption/utils.d.ts +2 -2
  119. package/src/tablecaption/utils.js +2 -2
  120. package/src/tablecaption.d.ts +4 -4
  121. package/src/tablecaption.js +4 -4
  122. package/src/tablecellproperties/commands/tablecellbackgroundcolorcommand.d.ts +3 -3
  123. package/src/tablecellproperties/commands/tablecellbackgroundcolorcommand.js +2 -2
  124. package/src/tablecellproperties/commands/tablecellbordercolorcommand.d.ts +4 -4
  125. package/src/tablecellproperties/commands/tablecellbordercolorcommand.js +3 -3
  126. package/src/tablecellproperties/commands/tablecellborderstylecommand.d.ts +4 -4
  127. package/src/tablecellproperties/commands/tablecellborderstylecommand.js +3 -3
  128. package/src/tablecellproperties/commands/tablecellborderwidthcommand.d.ts +4 -4
  129. package/src/tablecellproperties/commands/tablecellborderwidthcommand.js +3 -3
  130. package/src/tablecellproperties/commands/tablecellheightcommand.d.ts +3 -3
  131. package/src/tablecellproperties/commands/tablecellheightcommand.js +3 -3
  132. package/src/tablecellproperties/commands/tablecellhorizontalalignmentcommand.d.ts +3 -3
  133. package/src/tablecellproperties/commands/tablecellhorizontalalignmentcommand.js +2 -2
  134. package/src/tablecellproperties/commands/tablecellpaddingcommand.d.ts +4 -4
  135. package/src/tablecellproperties/commands/tablecellpaddingcommand.js +3 -3
  136. package/src/tablecellproperties/commands/tablecellpropertycommand.d.ts +3 -3
  137. package/src/tablecellproperties/commands/tablecellpropertycommand.js +2 -2
  138. package/src/tablecellproperties/commands/tablecellverticalalignmentcommand.d.ts +3 -3
  139. package/src/tablecellproperties/commands/tablecellverticalalignmentcommand.js +2 -2
  140. package/src/tablecellproperties/tablecellpropertiesediting.d.ts +4 -4
  141. package/src/tablecellproperties/tablecellpropertiesediting.js +16 -16
  142. package/src/tablecellproperties/tablecellpropertiesui.d.ts +4 -4
  143. package/src/tablecellproperties/tablecellpropertiesui.js +8 -8
  144. package/src/tablecellproperties/ui/tablecellpropertiesview.d.ts +8 -8
  145. package/src/tablecellproperties/ui/tablecellpropertiesview.js +6 -6
  146. package/src/tablecellproperties.d.ts +4 -4
  147. package/src/tablecellproperties.js +4 -4
  148. package/src/tablecellwidth/commands/tablecellwidthcommand.d.ts +3 -3
  149. package/src/tablecellwidth/commands/tablecellwidthcommand.js +3 -3
  150. package/src/tablecellwidth/tablecellwidthediting.d.ts +3 -3
  151. package/src/tablecellwidth/tablecellwidthediting.js +6 -6
  152. package/src/tableclipboard.d.ts +6 -6
  153. package/src/tableclipboard.js +6 -6
  154. package/src/tablecolumnresize/constants.d.ts +1 -1
  155. package/src/tablecolumnresize/constants.js +1 -1
  156. package/src/tablecolumnresize/converters.d.ts +3 -3
  157. package/src/tablecolumnresize/converters.js +2 -2
  158. package/src/tablecolumnresize/tablecolumnresizeediting.d.ts +5 -5
  159. package/src/tablecolumnresize/tablecolumnresizeediting.js +11 -11
  160. package/src/tablecolumnresize/tablewidthscommand.d.ts +3 -3
  161. package/src/tablecolumnresize/tablewidthscommand.js +3 -3
  162. package/src/tablecolumnresize/utils.d.ts +4 -4
  163. package/src/tablecolumnresize/utils.js +3 -3
  164. package/src/tablecolumnresize.d.ts +4 -4
  165. package/src/tablecolumnresize.js +4 -4
  166. package/src/tableconfig.d.ts +3 -3
  167. package/src/tableconfig.js +1 -1
  168. package/src/tableediting.d.ts +4 -4
  169. package/src/tableediting.js +21 -21
  170. package/src/tablekeyboard.d.ts +6 -6
  171. package/src/tablekeyboard.js +6 -6
  172. package/src/tablemouse/mouseeventsobserver.d.ts +2 -2
  173. package/src/tablemouse/mouseeventsobserver.js +2 -2
  174. package/src/tablemouse.d.ts +4 -4
  175. package/src/tablemouse.js +5 -5
  176. package/src/tableproperties/commands/tablealignmentcommand.d.ts +3 -3
  177. package/src/tableproperties/commands/tablealignmentcommand.js +2 -2
  178. package/src/tableproperties/commands/tablebackgroundcolorcommand.d.ts +3 -3
  179. package/src/tableproperties/commands/tablebackgroundcolorcommand.js +2 -2
  180. package/src/tableproperties/commands/tablebordercolorcommand.d.ts +4 -4
  181. package/src/tableproperties/commands/tablebordercolorcommand.js +3 -3
  182. package/src/tableproperties/commands/tableborderstylecommand.d.ts +4 -4
  183. package/src/tableproperties/commands/tableborderstylecommand.js +3 -3
  184. package/src/tableproperties/commands/tableborderwidthcommand.d.ts +4 -4
  185. package/src/tableproperties/commands/tableborderwidthcommand.js +3 -3
  186. package/src/tableproperties/commands/tableheightcommand.d.ts +3 -3
  187. package/src/tableproperties/commands/tableheightcommand.js +3 -3
  188. package/src/tableproperties/commands/tablepropertycommand.d.ts +3 -3
  189. package/src/tableproperties/commands/tablepropertycommand.js +3 -3
  190. package/src/tableproperties/commands/tablewidthcommand.d.ts +3 -3
  191. package/src/tableproperties/commands/tablewidthcommand.js +3 -3
  192. package/src/tableproperties/tablepropertiesediting.d.ts +3 -3
  193. package/src/tableproperties/tablepropertiesediting.js +13 -13
  194. package/src/tableproperties/tablepropertiesui.d.ts +4 -4
  195. package/src/tableproperties/tablepropertiesui.js +8 -8
  196. package/src/tableproperties/ui/tablepropertiesview.d.ts +6 -6
  197. package/src/tableproperties/ui/tablepropertiesview.js +6 -6
  198. package/src/tableproperties.d.ts +4 -4
  199. package/src/tableproperties.js +4 -4
  200. package/src/tableselection.d.ts +4 -4
  201. package/src/tableselection.js +6 -6
  202. package/src/tabletoolbar.d.ts +3 -3
  203. package/src/tabletoolbar.js +4 -4
  204. package/src/tableui.d.ts +2 -2
  205. package/src/tableui.js +7 -8
  206. package/src/tableutils.d.ts +4 -4
  207. package/src/tableutils.js +7 -7
  208. package/src/tablewalker.d.ts +2 -2
  209. package/src/tablewalker.js +1 -1
  210. package/src/ui/colorinputview.d.ts +4 -4
  211. package/src/ui/colorinputview.js +3 -3
  212. package/src/ui/formrowview.d.ts +3 -3
  213. package/src/ui/formrowview.js +2 -2
  214. package/src/ui/inserttableview.d.ts +3 -3
  215. package/src/ui/inserttableview.js +3 -3
  216. package/src/utils/common.d.ts +3 -3
  217. package/src/utils/common.js +2 -2
  218. package/src/utils/structure.d.ts +4 -4
  219. package/src/utils/structure.js +3 -3
  220. package/src/utils/table-properties.d.ts +2 -2
  221. package/src/utils/table-properties.js +1 -1
  222. package/src/utils/ui/contextualballoon.d.ts +3 -3
  223. package/src/utils/ui/contextualballoon.js +5 -5
  224. package/src/utils/ui/table-properties.d.ts +6 -6
  225. package/src/utils/ui/table-properties.js +6 -6
  226. package/src/utils/ui/widget.d.ts +2 -2
  227. package/src/utils/ui/widget.js +2 -2
  228. package/theme/colorinput.css +1 -1
  229. package/theme/form.css +1 -1
  230. package/theme/formrow.css +1 -1
  231. package/theme/inserttable.css +1 -1
  232. package/theme/table.css +1 -1
  233. package/theme/tablecaption.css +1 -1
  234. package/theme/tablecellproperties.css +1 -1
  235. package/theme/tablecolumnresize.css +1 -1
  236. package/theme/tableediting.css +1 -1
  237. package/theme/tableform.css +1 -1
  238. package/theme/tableproperties.css +1 -1
  239. package/theme/tableselection.css +1 -1
  240. package/theme/icons/table.svg +0 -1
@@ -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 table/tabletoolbar
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import { WidgetToolbarRepository } from 'ckeditor5/src/widget';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import { WidgetToolbarRepository } from 'ckeditor5/src/widget.js';
10
10
  /**
11
11
  * The table toolbar class. It creates toolbars for the table feature and its content (for now only for the table cell content).
12
12
  *
@@ -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 table/tabletoolbar
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import { WidgetToolbarRepository } from 'ckeditor5/src/widget';
10
- import { getSelectedTableWidget, getTableWidgetAncestor } from './utils/ui/widget';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import { WidgetToolbarRepository } from 'ckeditor5/src/widget.js';
10
+ import { getSelectedTableWidget, getTableWidgetAncestor } from './utils/ui/widget.js';
11
11
  /**
12
12
  * The table toolbar class. It creates toolbars for the table feature and its content (for now only for the table cell content).
13
13
  *
package/src/tableui.d.ts CHANGED
@@ -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 table/tableui
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
9
  /**
10
10
  * The table UI plugin. It introduces:
11
11
  *
package/src/tableui.js CHANGED
@@ -1,15 +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 table/tableui
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import { addListToDropdown, createDropdown, Model, SplitButtonView, SwitchButtonView } from 'ckeditor5/src/ui';
10
- import { Collection } from 'ckeditor5/src/utils';
11
- import InsertTableView from './ui/inserttableview';
12
- import tableIcon from './../theme/icons/table.svg';
8
+ import { icons, Plugin } from 'ckeditor5/src/core.js';
9
+ import { addListToDropdown, createDropdown, ViewModel, SplitButtonView, SwitchButtonView } from 'ckeditor5/src/ui.js';
10
+ import { Collection } from 'ckeditor5/src/utils.js';
11
+ import InsertTableView from './ui/inserttableview.js';
13
12
  import tableColumnIcon from './../theme/icons/table-column.svg';
14
13
  import tableRowIcon from './../theme/icons/table-row.svg';
15
14
  import tableMergeCellIcon from './../theme/icons/table-merge-cell.svg';
@@ -44,7 +43,7 @@ export default class TableUI extends Plugin {
44
43
  dropdownView.bind('isEnabled').to(command);
45
44
  // Decorate dropdown's button.
46
45
  dropdownView.buttonView.set({
47
- icon: tableIcon,
46
+ icon: icons.table,
48
47
  label: t('Insert table'),
49
48
  tooltip: true
50
49
  });
@@ -292,7 +291,7 @@ export default class TableUI extends Plugin {
292
291
  */
293
292
  function addListOption(option, editor, commands, itemDefinitions) {
294
293
  if (option.type === 'button' || option.type === 'switchbutton') {
295
- const model = option.model = new Model(option.model);
294
+ const model = option.model = new ViewModel(option.model);
296
295
  const { commandName, bindIsOn } = option.model;
297
296
  const command = editor.commands.get(commandName);
298
297
  commands.push(command);
@@ -1,10 +1,10 @@
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 { Plugin } from 'ckeditor5/src/core';
6
- import type { DocumentSelection, Element, Range, Selection, Writer } from 'ckeditor5/src/engine';
7
- import TableWalker, { type TableWalkerOptions } from './tablewalker';
5
+ import { Plugin } from 'ckeditor5/src/core.js';
6
+ import type { DocumentSelection, Element, Range, Selection, Writer } from 'ckeditor5/src/engine.js';
7
+ import TableWalker, { type TableWalkerOptions } from './tablewalker.js';
8
8
  type IndexesObject = {
9
9
  first: number;
10
10
  last: number;
package/src/tableutils.js CHANGED
@@ -1,16 +1,16 @@
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 table/tableutils
7
7
  */
8
- import { CKEditorError } from 'ckeditor5/src/utils';
9
- import { Plugin } from 'ckeditor5/src/core';
10
- import TableWalker from './tablewalker';
11
- import { createEmptyTableCell, updateNumericAttribute } from './utils/common';
12
- import { removeEmptyColumns, removeEmptyRows } from './utils/structure';
13
- import { getTableColumnElements } from './tablecolumnresize/utils';
8
+ import { CKEditorError } from 'ckeditor5/src/utils.js';
9
+ import { Plugin } from 'ckeditor5/src/core.js';
10
+ import TableWalker from './tablewalker.js';
11
+ import { createEmptyTableCell, updateNumericAttribute } from './utils/common.js';
12
+ import { removeEmptyColumns, removeEmptyRows } from './utils/structure.js';
13
+ import { getTableColumnElements } from './tablecolumnresize/utils.js';
14
14
  /**
15
15
  * The table utilities plugin.
16
16
  */
@@ -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 table/tablewalker
7
7
  */
8
- import type { Element, Position } from 'ckeditor5/src/engine';
8
+ import type { Element, Position } from 'ckeditor5/src/engine.js';
9
9
  /**
10
10
  * An object with configuration for `TableWalker`.
11
11
  */
@@ -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 table/ui/colorinputview
7
7
  */
8
- import { View, InputTextView, FocusCycler, ViewCollection, type ColorDefinition, type DropdownView, type ColorPickerConfig, type FocusableView } from 'ckeditor5/src/ui';
9
- import { FocusTracker, KeystrokeHandler, type Locale } from 'ckeditor5/src/utils';
8
+ import { View, InputTextView, FocusCycler, ViewCollection, type ColorDefinition, type DropdownView, type ColorPickerConfig, type FocusableView } from 'ckeditor5/src/ui.js';
9
+ import { FocusTracker, KeystrokeHandler, type Locale } from 'ckeditor5/src/utils.js';
10
10
  import '../../theme/colorinput.css';
11
11
  export type ColorInputViewOptions = {
12
12
  colorDefinitions: Array<ColorDefinition>;
@@ -69,7 +69,7 @@ export default class ColorInputView extends View implements FocusableView {
69
69
  /**
70
70
  * A collection of views that can be focused in the view.
71
71
  */
72
- protected readonly _focusables: ViewCollection;
72
+ protected readonly _focusables: ViewCollection<FocusableView>;
73
73
  /**
74
74
  * An instance of the dropdown allowing to select a color from a grid.
75
75
  */
@@ -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 table/ui/colorinputview
7
7
  */
8
- import { View, InputTextView, createDropdown, FocusCycler, ViewCollection, ColorSelectorView } from 'ckeditor5/src/ui';
9
- import { FocusTracker, KeystrokeHandler } from 'ckeditor5/src/utils';
8
+ import { View, InputTextView, createDropdown, FocusCycler, ViewCollection, ColorSelectorView } from 'ckeditor5/src/ui.js';
9
+ import { FocusTracker, KeystrokeHandler } from 'ckeditor5/src/utils.js';
10
10
  import '../../theme/colorinput.css';
11
11
  /**
12
12
  * The color input view class. It allows the user to type in a color (hex, rgb, etc.)
@@ -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 table/ui/formrowview
7
7
  */
8
- import { View, type LabelView, type ViewCollection } from 'ckeditor5/src/ui';
9
- import type { Locale } from 'ckeditor5/src/utils';
8
+ import { View, type LabelView, type ViewCollection } from 'ckeditor5/src/ui.js';
9
+ import type { Locale } from 'ckeditor5/src/utils.js';
10
10
  import '../../theme/formrow.css';
11
11
  /**
12
12
  * The class representing a single row in a complex form,
@@ -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 table/ui/formrowview
7
7
  */
8
- import { View } from 'ckeditor5/src/ui';
8
+ import { View } from 'ckeditor5/src/ui.js';
9
9
  import '../../theme/formrow.css';
10
10
  /**
11
11
  * The class representing a single row in a complex form,
@@ -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 table/ui/inserttableview
7
7
  */
8
- import { View, ButtonView, type ViewCollection } from 'ckeditor5/src/ui';
9
- import { KeystrokeHandler, FocusTracker, type Locale } from 'ckeditor5/src/utils';
8
+ import { View, ButtonView, type ViewCollection } from 'ckeditor5/src/ui.js';
9
+ import { KeystrokeHandler, FocusTracker, type Locale } from 'ckeditor5/src/utils.js';
10
10
  import './../../theme/inserttable.css';
11
11
  /**
12
12
  * The table size view.
@@ -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 table/ui/inserttableview
7
7
  */
8
- import { View, ButtonView, addKeyboardHandlingForGrid } from 'ckeditor5/src/ui';
9
- import { KeystrokeHandler, FocusTracker } from 'ckeditor5/src/utils';
8
+ import { View, ButtonView, addKeyboardHandlingForGrid } from 'ckeditor5/src/ui.js';
9
+ import { KeystrokeHandler, FocusTracker } from 'ckeditor5/src/utils.js';
10
10
  import './../../theme/inserttable.css';
11
11
  /**
12
12
  * The table size view.
@@ -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 table/utils/common
7
7
  */
8
- import type { Conversion, Element, Item, Position, Schema, Writer, DocumentSelection } from 'ckeditor5/src/engine';
9
- import type TableUtils from '../tableutils';
8
+ import type { Conversion, Element, Item, Position, Schema, Writer, DocumentSelection } from 'ckeditor5/src/engine.js';
9
+ import type TableUtils from '../tableutils.js';
10
10
  /**
11
11
  * A common method to update the numeric value. If a value is the default one, it will be unset.
12
12
  *
@@ -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 { downcastAttributeToStyle, upcastStyleToAttribute } from './../converters/tableproperties';
5
+ import { downcastAttributeToStyle, upcastStyleToAttribute } from './../converters/tableproperties.js';
6
6
  /**
7
7
  * A common method to update the numeric value. If a value is the default one, it will be unset.
8
8
  *
@@ -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 table/utils/structure
7
7
  */
8
- import type { Element, Writer } from 'ckeditor5/src/engine';
9
- import { type TableSlot } from '../tablewalker';
10
- import type TableUtils from '../tableutils';
8
+ import type { Element, Writer } from 'ckeditor5/src/engine.js';
9
+ import { type TableSlot } from '../tablewalker.js';
10
+ import type TableUtils from '../tableutils.js';
11
11
  /**
12
12
  * Returns a cropped table according to given dimensions.
13
13
 
@@ -1,9 +1,9 @@
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 { default as TableWalker } from '../tablewalker';
6
- import { createEmptyTableCell, updateNumericAttribute } from './common';
5
+ import { default as TableWalker } from '../tablewalker.js';
6
+ import { createEmptyTableCell, updateNumericAttribute } from './common.js';
7
7
  /**
8
8
  * Returns a cropped table according to given dimensions.
9
9
 
@@ -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 table/utils/table-properties
7
7
  */
8
- import type { BoxSides } from 'ckeditor5/src/engine';
8
+ import type { BoxSides } from 'ckeditor5/src/engine.js';
9
9
  /**
10
10
  * Returns a string if all four values of box sides are equal.
11
11
  *
@@ -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
  import { isObject } from 'lodash-es';
@@ -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 table/utils/ui/contextualballoon
7
7
  */
8
- import { type PositionOptions } from 'ckeditor5/src/utils';
9
- import type { Editor } from 'ckeditor5/src/core';
8
+ import { type PositionOptions } from 'ckeditor5/src/utils.js';
9
+ import type { Editor } from 'ckeditor5/src/core.js';
10
10
  /**
11
11
  * A helper utility that positions the
12
12
  * {@link module:ui/panel/balloon/contextualballoon~ContextualBalloon contextual balloon} instance
@@ -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 table/utils/ui/contextualballoon
7
7
  */
8
- import { Rect } from 'ckeditor5/src/utils';
9
- import { BalloonPanelView } from 'ckeditor5/src/ui';
10
- import { getSelectionAffectedTableWidget, getTableWidgetAncestor } from './widget';
11
- import { getSelectionAffectedTable } from '../common';
8
+ import { Rect } from 'ckeditor5/src/utils.js';
9
+ import { BalloonPanelView } from 'ckeditor5/src/ui.js';
10
+ import { getSelectionAffectedTableWidget, getTableWidgetAncestor } from './widget.js';
11
+ import { getSelectionAffectedTable } from '../common.js';
12
12
  const DEFAULT_BALLOON_POSITIONS = BalloonPanelView.defaultPositions;
13
13
  const BALLOON_POSITIONS = [
14
14
  DEFAULT_BALLOON_POSITIONS.northArrowSouth,
@@ -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 table/utils/ui/table-properties
7
7
  */
8
- import { type ColorOption, type LabeledFieldView, type ListDropdownItemDefinition, type NormalizedColorOption, type ToolbarView, type View, type ColorPickerConfig } from 'ckeditor5/src/ui';
9
- import { Collection, type LocaleTranslate } from 'ckeditor5/src/utils';
10
- import type TableCellPropertiesView from '../../tablecellproperties/ui/tablecellpropertiesview';
11
- import type TablePropertiesView from '../../tableproperties/ui/tablepropertiesview';
12
- import ColorInputView from '../../ui/colorinputview';
8
+ import { type ColorOption, type LabeledFieldView, type ListDropdownItemDefinition, type NormalizedColorOption, type ToolbarView, type View, type ColorPickerConfig } from 'ckeditor5/src/ui.js';
9
+ import { Collection, type LocaleTranslate } from 'ckeditor5/src/utils.js';
10
+ import type TableCellPropertiesView from '../../tablecellproperties/ui/tablecellpropertiesview.js';
11
+ import type TablePropertiesView from '../../tableproperties/ui/tablepropertiesview.js';
12
+ import ColorInputView from '../../ui/colorinputview.js';
13
13
  /**
14
14
  * Returns an object containing pairs of CSS border style values and their localized UI
15
15
  * labels. Used by {@link module:table/tablecellproperties/ui/tablecellpropertiesview~TableCellPropertiesView}
@@ -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 table/utils/ui/table-properties
7
7
  */
8
- import { ButtonView, Model } from 'ckeditor5/src/ui';
9
- import { Collection } from 'ckeditor5/src/utils';
10
- import { isColor, isLength, isPercentage } from 'ckeditor5/src/engine';
11
- import ColorInputView from '../../ui/colorinputview';
8
+ import { ButtonView, ViewModel } from 'ckeditor5/src/ui.js';
9
+ import { Collection } from 'ckeditor5/src/utils.js';
10
+ import { isColor, isLength, isPercentage } from 'ckeditor5/src/engine.js';
11
+ import ColorInputView from '../../ui/colorinputview.js';
12
12
  const isEmpty = (val) => val === '';
13
13
  /**
14
14
  * Returns an object containing pairs of CSS border style values and their localized UI
@@ -90,7 +90,7 @@ export function getBorderStyleDefinitions(view, defaultStyle) {
90
90
  for (const style in styleLabels) {
91
91
  const definition = {
92
92
  type: 'button',
93
- model: new Model({
93
+ model: new ViewModel({
94
94
  _borderStyleValue: style,
95
95
  label: styleLabels[style],
96
96
  role: 'menuitemradio',
@@ -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 table/utils/ui/widget
7
7
  */
8
- import type { ViewDocumentSelection, ViewElement } from 'ckeditor5/src/engine';
8
+ import type { ViewDocumentSelection, ViewElement } from 'ckeditor5/src/engine.js';
9
9
  /**
10
10
  * Depending on the position of the selection either return the selected table or the table higher in the hierarchy.
11
11
  */
@@ -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 { isWidget } from 'ckeditor5/src/widget';
5
+ import { isWidget } from 'ckeditor5/src/widget.js';
6
6
  /**
7
7
  * Depending on the position of the selection either return the selected table or the table higher in the hierarchy.
8
8
  */
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * 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
 
package/theme/form.css CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * 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
 
package/theme/formrow.css CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * 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
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * 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
 
package/theme/table.css CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * 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
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * 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
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * 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
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * 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
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * 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
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * 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
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * 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
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * 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 +0,0 @@
1
- <svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3 6v3h4V6H3zm0 4v3h4v-3H3zm0 4v3h4v-3H3zm5 3h4v-3H8v3zm5 0h4v-3h-4v3zm4-4v-3h-4v3h4zm0-4V6h-4v3h4zm1.5 8a1.5 1.5 0 0 1-1.5 1.5H3A1.5 1.5 0 0 1 1.5 17V4c.222-.863 1.068-1.5 2-1.5h13c.932 0 1.778.637 2 1.5v13zM12 13v-3H8v3h4zm0-4V6H8v3h4z"/></svg>