@ckeditor/ckeditor5-table 45.2.1 → 46.0.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (179) hide show
  1. package/build/table.js +1 -1
  2. package/dist/index-content.css +6 -5
  3. package/dist/index-editor.css +46 -46
  4. package/dist/index.css +63 -62
  5. package/dist/index.css.map +1 -1
  6. package/dist/index.js +305 -49
  7. package/dist/index.js.map +1 -1
  8. package/package.json +10 -10
  9. package/src/commands/insertcolumncommand.d.ts +1 -1
  10. package/src/commands/insertcolumncommand.js +1 -1
  11. package/src/commands/insertrowcommand.d.ts +1 -1
  12. package/src/commands/insertrowcommand.js +1 -1
  13. package/src/commands/inserttablecommand.d.ts +1 -1
  14. package/src/commands/inserttablecommand.js +1 -1
  15. package/src/commands/inserttablelayoutcommand.d.ts +1 -1
  16. package/src/commands/inserttablelayoutcommand.js +1 -1
  17. package/src/commands/mergecellcommand.d.ts +3 -3
  18. package/src/commands/mergecellcommand.js +2 -2
  19. package/src/commands/mergecellscommand.d.ts +1 -1
  20. package/src/commands/mergecellscommand.js +2 -2
  21. package/src/commands/removecolumncommand.d.ts +1 -1
  22. package/src/commands/removecolumncommand.js +2 -2
  23. package/src/commands/removerowcommand.d.ts +1 -1
  24. package/src/commands/removerowcommand.js +1 -1
  25. package/src/commands/selectcolumncommand.d.ts +1 -1
  26. package/src/commands/selectcolumncommand.js +2 -2
  27. package/src/commands/selectrowcommand.d.ts +1 -1
  28. package/src/commands/selectrowcommand.js +1 -1
  29. package/src/commands/setheadercolumncommand.d.ts +2 -2
  30. package/src/commands/setheadercolumncommand.js +1 -1
  31. package/src/commands/setheaderrowcommand.d.ts +2 -2
  32. package/src/commands/setheaderrowcommand.js +1 -1
  33. package/src/commands/splitcellcommand.d.ts +1 -1
  34. package/src/commands/splitcellcommand.js +1 -1
  35. package/src/converters/downcast.d.ts +21 -9
  36. package/src/converters/downcast.js +11 -3
  37. package/src/converters/table-caption-post-fixer.d.ts +3 -1
  38. package/src/converters/table-caption-post-fixer.js +3 -1
  39. package/src/converters/table-cell-paragraph-post-fixer.d.ts +3 -1
  40. package/src/converters/table-cell-paragraph-post-fixer.js +3 -1
  41. package/src/converters/table-cell-refresh-handler.d.ts +3 -1
  42. package/src/converters/table-cell-refresh-handler.js +3 -1
  43. package/src/converters/table-headings-refresh-handler.d.ts +3 -1
  44. package/src/converters/table-headings-refresh-handler.js +4 -2
  45. package/src/converters/table-layout-post-fixer.d.ts +3 -1
  46. package/src/converters/table-layout-post-fixer.js +4 -2
  47. package/src/converters/tableproperties.d.ts +17 -1
  48. package/src/converters/tableproperties.js +49 -2
  49. package/src/converters/upcasttable.d.ts +6 -1
  50. package/src/converters/upcasttable.js +6 -1
  51. package/src/index.d.ts +89 -56
  52. package/src/index.js +84 -24
  53. package/src/plaintableoutput.d.ts +2 -2
  54. package/src/plaintableoutput.js +2 -2
  55. package/src/table.d.ts +7 -7
  56. package/src/table.js +7 -7
  57. package/src/tablecaption/tablecaptionediting.d.ts +6 -6
  58. package/src/tablecaption/tablecaptionediting.js +8 -8
  59. package/src/tablecaption/tablecaptionui.d.ts +1 -1
  60. package/src/tablecaption/tablecaptionui.js +1 -1
  61. package/src/tablecaption/toggletablecaptioncommand.d.ts +1 -1
  62. package/src/tablecaption/toggletablecaptioncommand.js +1 -1
  63. package/src/tablecaption/utils.d.ts +8 -4
  64. package/src/tablecaption/utils.js +4 -0
  65. package/src/tablecaption.d.ts +3 -3
  66. package/src/tablecaption.js +3 -3
  67. package/src/tablecellproperties/commands/tablecellbackgroundcolorcommand.d.ts +2 -2
  68. package/src/tablecellproperties/commands/tablecellbackgroundcolorcommand.js +2 -2
  69. package/src/tablecellproperties/commands/tablecellbordercolorcommand.d.ts +4 -4
  70. package/src/tablecellproperties/commands/tablecellbordercolorcommand.js +2 -2
  71. package/src/tablecellproperties/commands/tablecellborderstylecommand.d.ts +4 -4
  72. package/src/tablecellproperties/commands/tablecellborderstylecommand.js +2 -2
  73. package/src/tablecellproperties/commands/tablecellborderwidthcommand.d.ts +4 -4
  74. package/src/tablecellproperties/commands/tablecellborderwidthcommand.js +2 -2
  75. package/src/tablecellproperties/commands/tablecellheightcommand.d.ts +2 -2
  76. package/src/tablecellproperties/commands/tablecellheightcommand.js +2 -2
  77. package/src/tablecellproperties/commands/tablecellhorizontalalignmentcommand.d.ts +2 -2
  78. package/src/tablecellproperties/commands/tablecellhorizontalalignmentcommand.js +2 -2
  79. package/src/tablecellproperties/commands/tablecellpaddingcommand.d.ts +4 -4
  80. package/src/tablecellproperties/commands/tablecellpaddingcommand.js +2 -2
  81. package/src/tablecellproperties/commands/tablecellpropertycommand.d.ts +3 -3
  82. package/src/tablecellproperties/commands/tablecellpropertycommand.js +1 -1
  83. package/src/tablecellproperties/commands/tablecellverticalalignmentcommand.d.ts +2 -2
  84. package/src/tablecellproperties/commands/tablecellverticalalignmentcommand.js +2 -2
  85. package/src/tablecellproperties/tablecellpropertiesediting.d.ts +3 -3
  86. package/src/tablecellproperties/tablecellpropertiesediting.js +44 -19
  87. package/src/tablecellproperties/tablecellpropertiesui.d.ts +2 -2
  88. package/src/tablecellproperties/tablecellpropertiesui.js +2 -2
  89. package/src/tablecellproperties/ui/tablecellpropertiesview.d.ts +2 -2
  90. package/src/tablecellproperties/ui/tablecellpropertiesview.js +1 -1
  91. package/src/tablecellproperties.d.ts +3 -3
  92. package/src/tablecellproperties.js +3 -3
  93. package/src/tablecellwidth/commands/tablecellwidthcommand.d.ts +2 -2
  94. package/src/tablecellwidth/commands/tablecellwidthcommand.js +2 -2
  95. package/src/tablecellwidth/tablecellwidthediting.d.ts +2 -2
  96. package/src/tablecellwidth/tablecellwidthediting.js +5 -3
  97. package/src/tableclipboard.d.ts +6 -6
  98. package/src/tableclipboard.js +4 -4
  99. package/src/tablecolumnresize/constants.d.ts +9 -0
  100. package/src/tablecolumnresize/constants.js +9 -0
  101. package/src/tablecolumnresize/converters.d.ts +11 -1
  102. package/src/tablecolumnresize/converters.js +16 -0
  103. package/src/tablecolumnresize/tablecolumnresizeediting.d.ts +7 -7
  104. package/src/tablecolumnresize/tablecolumnresizeediting.js +13 -11
  105. package/src/tablecolumnresize/tablewidthscommand.d.ts +3 -3
  106. package/src/tablecolumnresize/tablewidthscommand.js +1 -1
  107. package/src/tablecolumnresize/utils.d.ts +23 -11
  108. package/src/tablecolumnresize/utils.js +14 -2
  109. package/src/tablecolumnresize.d.ts +3 -3
  110. package/src/tablecolumnresize.js +3 -3
  111. package/src/tableconfig.d.ts +3 -1
  112. package/src/tableediting.d.ts +7 -7
  113. package/src/tableediting.js +19 -19
  114. package/src/tablekeyboard.d.ts +8 -8
  115. package/src/tablekeyboard.js +7 -7
  116. package/src/tablelayout/commands/tabletypecommand.d.ts +1 -1
  117. package/src/tablelayout/commands/tabletypecommand.js +1 -1
  118. package/src/tablelayout/tablelayoutediting.d.ts +2 -2
  119. package/src/tablelayout/tablelayoutediting.js +4 -4
  120. package/src/tablelayout/tablelayoutui.d.ts +1 -1
  121. package/src/tablelayout/tablelayoutui.js +4 -4
  122. package/src/tablelayout.d.ts +5 -5
  123. package/src/tablelayout.js +5 -5
  124. package/src/tablemouse/mouseeventsobserver.d.ts +13 -11
  125. package/src/tablemouse/mouseeventsobserver.js +4 -2
  126. package/src/tablemouse.d.ts +3 -3
  127. package/src/tablemouse.js +4 -4
  128. package/src/tableproperties/commands/tablealignmentcommand.d.ts +2 -2
  129. package/src/tableproperties/commands/tablealignmentcommand.js +2 -2
  130. package/src/tableproperties/commands/tablebackgroundcolorcommand.d.ts +2 -2
  131. package/src/tableproperties/commands/tablebackgroundcolorcommand.js +2 -2
  132. package/src/tableproperties/commands/tablebordercolorcommand.d.ts +4 -4
  133. package/src/tableproperties/commands/tablebordercolorcommand.js +2 -2
  134. package/src/tableproperties/commands/tableborderstylecommand.d.ts +4 -4
  135. package/src/tableproperties/commands/tableborderstylecommand.js +2 -2
  136. package/src/tableproperties/commands/tableborderwidthcommand.d.ts +4 -4
  137. package/src/tableproperties/commands/tableborderwidthcommand.js +2 -2
  138. package/src/tableproperties/commands/tableheightcommand.d.ts +2 -2
  139. package/src/tableproperties/commands/tableheightcommand.js +2 -2
  140. package/src/tableproperties/commands/tablepropertycommand.d.ts +4 -4
  141. package/src/tableproperties/commands/tablepropertycommand.js +1 -1
  142. package/src/tableproperties/commands/tablewidthcommand.d.ts +2 -2
  143. package/src/tableproperties/commands/tablewidthcommand.js +2 -2
  144. package/src/tableproperties/tablepropertiesediting.d.ts +2 -2
  145. package/src/tableproperties/tablepropertiesediting.js +49 -21
  146. package/src/tableproperties/tablepropertiesui.d.ts +2 -2
  147. package/src/tableproperties/tablepropertiesui.js +2 -2
  148. package/src/tableproperties/ui/tablepropertiesview.d.ts +2 -2
  149. package/src/tableproperties/ui/tablepropertiesview.js +1 -1
  150. package/src/tableproperties.d.ts +3 -3
  151. package/src/tableproperties.js +3 -3
  152. package/src/tableselection.d.ts +9 -9
  153. package/src/tableselection.js +4 -4
  154. package/src/tabletoolbar.d.ts +1 -1
  155. package/src/tabletoolbar.js +1 -1
  156. package/src/tableui.d.ts +1 -1
  157. package/src/tableui.js +4 -4
  158. package/src/tableutils.d.ts +25 -26
  159. package/src/tableutils.js +4 -4
  160. package/src/tablewalker.d.ts +8 -8
  161. package/src/tablewalker.js +2 -2
  162. package/src/ui/colorinputview.d.ts +6 -1
  163. package/src/ui/colorinputview.js +1 -1
  164. package/src/ui/inserttableview.d.ts +3 -1
  165. package/src/ui/inserttableview.js +3 -1
  166. package/src/utils/common.d.ts +16 -7
  167. package/src/utils/common.js +9 -1
  168. package/src/utils/structure.d.ts +24 -14
  169. package/src/utils/structure.js +11 -1
  170. package/src/utils/table-properties.d.ts +15 -2
  171. package/src/utils/table-properties.js +6 -0
  172. package/src/utils/ui/contextualballoon.d.ts +4 -3
  173. package/src/utils/ui/contextualballoon.js +1 -0
  174. package/src/utils/ui/table-properties.d.ts +20 -7
  175. package/src/utils/ui/table-properties.js +24 -11
  176. package/src/utils/ui/widget.d.ts +6 -0
  177. package/src/utils/ui/widget.js +6 -0
  178. package/theme/tablecaption.css +9 -8
  179. package/theme/tablecolumnresize.css +2 -2
@@ -6,16 +6,16 @@
6
6
  * @module table/tablelayout
7
7
  */
8
8
  import { Plugin } from 'ckeditor5/src/core.js';
9
- import TableLayoutUI from './tablelayout/tablelayoutui.js';
10
- import TableLayoutEditing from './tablelayout/tablelayoutediting.js';
11
- import PlainTableOutput from './plaintableoutput.js';
12
- import TableColumnResize from './tablecolumnresize.js';
9
+ import { TableLayoutUI } from './tablelayout/tablelayoutui.js';
10
+ import { TableLayoutEditing } from './tablelayout/tablelayoutediting.js';
11
+ import { PlainTableOutput } from './plaintableoutput.js';
12
+ import { TableColumnResize } from './tablecolumnresize.js';
13
13
  /**
14
14
  * The table plugin.
15
15
  *
16
16
  * For a detailed overview, check the {@glink features/tables/layout-tables Layout table feature documentation}.
17
17
  */
18
- export default class TableLayout extends Plugin {
18
+ export class TableLayout extends Plugin {
19
19
  /**
20
20
  * @inheritDoc
21
21
  */
@@ -5,7 +5,7 @@
5
5
  /**
6
6
  * @module table/tablemouse/mouseeventsobserver
7
7
  */
8
- import { DomEventObserver, type DomEventData } from 'ckeditor5/src/engine.js';
8
+ import { DomEventObserver, type ViewDocumentDomEventData } from 'ckeditor5/src/engine.js';
9
9
  /**
10
10
  * The mouse selection event observer.
11
11
  *
@@ -15,11 +15,13 @@ import { DomEventObserver, type DomEventData } from 'ckeditor5/src/engine.js';
15
15
  * - `'mouseleave'`
16
16
  *
17
17
  * Note that this observer is disabled by default. To enable this observer, it needs to be added to
18
- * {@link module:engine/view/view~View} using the {@link module:engine/view/view~View#addObserver} method.
18
+ * {@link module:engine/view/view~EditingView} using the {@link module:engine/view/view~EditingView#addObserver} method.
19
19
  *
20
20
  * The observer is registered by the {@link module:table/tableselection~TableSelection} plugin.
21
+ *
22
+ * @internal
21
23
  */
22
- export default class MouseEventsObserver extends DomEventObserver<'mousemove' | 'mouseleave'> {
24
+ export declare class MouseEventsObserver extends DomEventObserver<'mousemove' | 'mouseleave'> {
23
25
  readonly domEventType: readonly ["mousemove", "mouseleave"];
24
26
  /**
25
27
  * @inheritDoc
@@ -33,15 +35,15 @@ export default class MouseEventsObserver extends DomEventObserver<'mousemove' |
33
35
  *
34
36
  * Note that this event is not available by default. To make it available,
35
37
  * {@link module:table/tablemouse/mouseeventsobserver~MouseEventsObserver} needs to be added
36
- * to {@link module:engine/view/view~View} using the {@link module:engine/view/view~View#addObserver} method.
38
+ * to {@link module:engine/view/view~EditingView} using the {@link module:engine/view/view~EditingView#addObserver} method.
37
39
  *
38
40
  * @see module:table/tablemouse/mouseeventsobserver~MouseEventsObserver
39
- * @eventName module:engine/view/document~Document#mousemove
41
+ * @eventName module:engine/view/document~ViewDocument#mousemove
40
42
  * @param data Event data.
41
43
  */
42
- export type ViewDocumentMouseMoveEvent = {
44
+ export type ViewDocumentTableMouseMoveEvent = {
43
45
  name: 'mousemove';
44
- args: [data: DomEventData<MouseEvent>];
46
+ args: [data: ViewDocumentDomEventData<MouseEvent>];
45
47
  };
46
48
  /**
47
49
  * Fired when the mouse is moved out of one of the editables.
@@ -50,13 +52,13 @@ export type ViewDocumentMouseMoveEvent = {
50
52
  *
51
53
  * Note that this event is not available by default. To make it available,
52
54
  * {@link module:table/tablemouse/mouseeventsobserver~MouseEventsObserver} needs to be added
53
- * to {@link module:engine/view/view~View} using the {@link module:engine/view/view~View#addObserver} method.
55
+ * to {@link module:engine/view/view~EditingView} using the {@link module:engine/view/view~EditingView#addObserver} method.
54
56
  *
55
57
  * @see module:table/tablemouse/mouseeventsobserver~MouseEventsObserver
56
- * @eventName module:engine/view/document~Document#mouseleave
58
+ * @eventName module:engine/view/document~ViewDocument#mouseleave
57
59
  * @param data Event data.
58
60
  */
59
- export type ViewDocumentMouseLeaveEvent = {
61
+ export type ViewDocumentTableMouseLeaveEvent = {
60
62
  name: 'mouseleave';
61
- args: [data: DomEventData<MouseEvent>];
63
+ args: [data: ViewDocumentDomEventData<MouseEvent>];
62
64
  };
@@ -15,11 +15,13 @@ import { DomEventObserver } from 'ckeditor5/src/engine.js';
15
15
  * - `'mouseleave'`
16
16
  *
17
17
  * Note that this observer is disabled by default. To enable this observer, it needs to be added to
18
- * {@link module:engine/view/view~View} using the {@link module:engine/view/view~View#addObserver} method.
18
+ * {@link module:engine/view/view~EditingView} using the {@link module:engine/view/view~EditingView#addObserver} method.
19
19
  *
20
20
  * The observer is registered by the {@link module:table/tableselection~TableSelection} plugin.
21
+ *
22
+ * @internal
21
23
  */
22
- export default class MouseEventsObserver extends DomEventObserver {
24
+ export class MouseEventsObserver extends DomEventObserver {
23
25
  domEventType = [
24
26
  'mousemove', 'mouseleave'
25
27
  ];
@@ -6,13 +6,13 @@
6
6
  * @module table/tablemouse
7
7
  */
8
8
  import { Plugin } from 'ckeditor5/src/core.js';
9
- import TableSelection from './tableselection.js';
10
- import TableUtils from './tableutils.js';
9
+ import { TableSelection } from './tableselection.js';
10
+ import { TableUtils } from './tableutils.js';
11
11
  /**
12
12
  * This plugin enables a table cells' selection with the mouse.
13
13
  * It is loaded automatically by the {@link module:table/table~Table} plugin.
14
14
  */
15
- export default class TableMouse extends Plugin {
15
+ export declare class TableMouse extends Plugin {
16
16
  /**
17
17
  * @inheritDoc
18
18
  */
package/src/tablemouse.js CHANGED
@@ -6,14 +6,14 @@
6
6
  * @module table/tablemouse
7
7
  */
8
8
  import { Plugin } from 'ckeditor5/src/core.js';
9
- import TableSelection from './tableselection.js';
10
- import MouseEventsObserver from './tablemouse/mouseeventsobserver.js';
11
- import TableUtils from './tableutils.js';
9
+ import { TableSelection } from './tableselection.js';
10
+ import { MouseEventsObserver } from './tablemouse/mouseeventsobserver.js';
11
+ import { TableUtils } from './tableutils.js';
12
12
  /**
13
13
  * This plugin enables a table cells' selection with the mouse.
14
14
  * It is loaded automatically by the {@link module:table/table~Table} plugin.
15
15
  */
16
- export default class TableMouse extends Plugin {
16
+ export class TableMouse extends Plugin {
17
17
  /**
18
18
  * @inheritDoc
19
19
  */
@@ -6,7 +6,7 @@
6
6
  * @module table/tableproperties/commands/tablealignmentcommand
7
7
  */
8
8
  import type { Editor } from 'ckeditor5/src/core.js';
9
- import TablePropertyCommand from './tablepropertycommand.js';
9
+ import { TablePropertyCommand } from './tablepropertycommand.js';
10
10
  /**
11
11
  * The table alignment command.
12
12
  *
@@ -21,7 +21,7 @@ import TablePropertyCommand from './tablepropertycommand.js';
21
21
  * } );
22
22
  * ```
23
23
  */
24
- export default class TableAlignmentCommand extends TablePropertyCommand {
24
+ export declare class TableAlignmentCommand extends TablePropertyCommand {
25
25
  /**
26
26
  * Creates a new `TableAlignmentCommand` instance.
27
27
  *
@@ -2,7 +2,7 @@
2
2
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
- import TablePropertyCommand from './tablepropertycommand.js';
5
+ import { TablePropertyCommand } from './tablepropertycommand.js';
6
6
  /**
7
7
  * The table alignment command.
8
8
  *
@@ -17,7 +17,7 @@ import TablePropertyCommand from './tablepropertycommand.js';
17
17
  * } );
18
18
  * ```
19
19
  */
20
- export default class TableAlignmentCommand extends TablePropertyCommand {
20
+ export class TableAlignmentCommand extends TablePropertyCommand {
21
21
  /**
22
22
  * Creates a new `TableAlignmentCommand` instance.
23
23
  *
@@ -6,7 +6,7 @@
6
6
  * @module table/tableproperties/commands/tablebackgroundcolorcommand
7
7
  */
8
8
  import type { Editor } from 'ckeditor5/src/core.js';
9
- import TablePropertyCommand from './tablepropertycommand.js';
9
+ import { TablePropertyCommand } from './tablepropertycommand.js';
10
10
  /**
11
11
  * The table background color command.
12
12
  *
@@ -21,7 +21,7 @@ import TablePropertyCommand from './tablepropertycommand.js';
21
21
  * } );
22
22
  * ```
23
23
  */
24
- export default class TableBackgroundColorCommand extends TablePropertyCommand {
24
+ export declare class TableBackgroundColorCommand extends TablePropertyCommand {
25
25
  /**
26
26
  * Creates a new `TableBackgroundColorCommand` instance.
27
27
  *
@@ -2,7 +2,7 @@
2
2
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
- import TablePropertyCommand from './tablepropertycommand.js';
5
+ import { TablePropertyCommand } from './tablepropertycommand.js';
6
6
  /**
7
7
  * The table background color command.
8
8
  *
@@ -17,7 +17,7 @@ import TablePropertyCommand from './tablepropertycommand.js';
17
17
  * } );
18
18
  * ```
19
19
  */
20
- export default class TableBackgroundColorCommand extends TablePropertyCommand {
20
+ export class TableBackgroundColorCommand extends TablePropertyCommand {
21
21
  /**
22
22
  * Creates a new `TableBackgroundColorCommand` instance.
23
23
  *
@@ -5,9 +5,9 @@
5
5
  /**
6
6
  * @module table/tableproperties/commands/tablebordercolorcommand
7
7
  */
8
- import type { Element } from 'ckeditor5/src/engine.js';
8
+ import type { ModelElement } from 'ckeditor5/src/engine.js';
9
9
  import type { Editor } from 'ckeditor5/src/core.js';
10
- import TablePropertyCommand from './tablepropertycommand.js';
10
+ import { TablePropertyCommand } from './tablepropertycommand.js';
11
11
  /**
12
12
  * The table border color command.
13
13
  *
@@ -22,7 +22,7 @@ import TablePropertyCommand from './tablepropertycommand.js';
22
22
  * } );
23
23
  * ```
24
24
  */
25
- export default class TableBorderColorCommand extends TablePropertyCommand {
25
+ export declare class TableBorderColorCommand extends TablePropertyCommand {
26
26
  /**
27
27
  * Creates a new `TableBorderColorCommand` instance.
28
28
  *
@@ -33,5 +33,5 @@ export default class TableBorderColorCommand extends TablePropertyCommand {
33
33
  /**
34
34
  * @inheritDoc
35
35
  */
36
- protected _getValue(table: Element): unknown;
36
+ protected _getValue(table: ModelElement): unknown;
37
37
  }
@@ -2,7 +2,7 @@
2
2
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
- import TablePropertyCommand from './tablepropertycommand.js';
5
+ import { TablePropertyCommand } from './tablepropertycommand.js';
6
6
  import { getSingleValue } from '../../utils/table-properties.js';
7
7
  /**
8
8
  * The table border color command.
@@ -18,7 +18,7 @@ import { getSingleValue } from '../../utils/table-properties.js';
18
18
  * } );
19
19
  * ```
20
20
  */
21
- export default class TableBorderColorCommand extends TablePropertyCommand {
21
+ export class TableBorderColorCommand extends TablePropertyCommand {
22
22
  /**
23
23
  * Creates a new `TableBorderColorCommand` instance.
24
24
  *
@@ -5,8 +5,8 @@
5
5
  /**
6
6
  * @module table/tableproperties/commands/tableborderstylecommand
7
7
  */
8
- import type { Element } from 'ckeditor5/src/engine.js';
9
- import TablePropertyCommand from './tablepropertycommand.js';
8
+ import type { ModelElement } from 'ckeditor5/src/engine.js';
9
+ import { TablePropertyCommand } from './tablepropertycommand.js';
10
10
  import type { Editor } from 'ckeditor5/src/core.js';
11
11
  /**
12
12
  * The table style border command.
@@ -22,7 +22,7 @@ import type { Editor } from 'ckeditor5/src/core.js';
22
22
  * } );
23
23
  * ```
24
24
  */
25
- export default class TableBorderStyleCommand extends TablePropertyCommand {
25
+ export declare class TableBorderStyleCommand extends TablePropertyCommand {
26
26
  /**
27
27
  * Creates a new `TableBorderStyleCommand` instance.
28
28
  *
@@ -33,5 +33,5 @@ export default class TableBorderStyleCommand extends TablePropertyCommand {
33
33
  /**
34
34
  * @inheritDoc
35
35
  */
36
- protected _getValue(table: Element): unknown;
36
+ protected _getValue(table: ModelElement): unknown;
37
37
  }
@@ -2,7 +2,7 @@
2
2
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
- import TablePropertyCommand from './tablepropertycommand.js';
5
+ import { TablePropertyCommand } from './tablepropertycommand.js';
6
6
  import { getSingleValue } from '../../utils/table-properties.js';
7
7
  /**
8
8
  * The table style border command.
@@ -18,7 +18,7 @@ import { getSingleValue } from '../../utils/table-properties.js';
18
18
  * } );
19
19
  * ```
20
20
  */
21
- export default class TableBorderStyleCommand extends TablePropertyCommand {
21
+ export class TableBorderStyleCommand extends TablePropertyCommand {
22
22
  /**
23
23
  * Creates a new `TableBorderStyleCommand` instance.
24
24
  *
@@ -5,9 +5,9 @@
5
5
  /**
6
6
  * @module table/tableproperties/commands/tableborderwidthcommand
7
7
  */
8
- import type { Element } from 'ckeditor5/src/engine.js';
8
+ import type { ModelElement } from 'ckeditor5/src/engine.js';
9
9
  import type { Editor } from 'ckeditor5/src/core.js';
10
- import TablePropertyCommand from './tablepropertycommand.js';
10
+ import { TablePropertyCommand } from './tablepropertycommand.js';
11
11
  /**
12
12
  * The table width border command.
13
13
  *
@@ -32,7 +32,7 @@ import TablePropertyCommand from './tablepropertycommand.js';
32
32
  *
33
33
  * will set the `borderWidth` attribute to `'5px'` in the model.
34
34
  */
35
- export default class TableBorderWidthCommand extends TablePropertyCommand {
35
+ export declare class TableBorderWidthCommand extends TablePropertyCommand {
36
36
  /**
37
37
  * Creates a new `TableBorderWidthCommand` instance.
38
38
  *
@@ -43,7 +43,7 @@ export default class TableBorderWidthCommand extends TablePropertyCommand {
43
43
  /**
44
44
  * @inheritDoc
45
45
  */
46
- protected _getValue(table: Element): string | undefined;
46
+ protected _getValue(table: ModelElement): string | undefined;
47
47
  /**
48
48
  * @inheritDoc
49
49
  */
@@ -2,7 +2,7 @@
2
2
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
- import TablePropertyCommand from './tablepropertycommand.js';
5
+ import { TablePropertyCommand } from './tablepropertycommand.js';
6
6
  import { addDefaultUnitToNumericValue, getSingleValue } from '../../utils/table-properties.js';
7
7
  /**
8
8
  * The table width border command.
@@ -28,7 +28,7 @@ import { addDefaultUnitToNumericValue, getSingleValue } from '../../utils/table-
28
28
  *
29
29
  * will set the `borderWidth` attribute to `'5px'` in the model.
30
30
  */
31
- export default class TableBorderWidthCommand extends TablePropertyCommand {
31
+ export class TableBorderWidthCommand extends TablePropertyCommand {
32
32
  /**
33
33
  * Creates a new `TableBorderWidthCommand` instance.
34
34
  *
@@ -5,7 +5,7 @@
5
5
  /**
6
6
  * @module table/tableproperties/commands/tableheightcommand
7
7
  */
8
- import TablePropertyCommand from './tablepropertycommand.js';
8
+ import { TablePropertyCommand } from './tablepropertycommand.js';
9
9
  import type { Editor } from 'ckeditor5/src/core.js';
10
10
  /**
11
11
  * The table height command.
@@ -31,7 +31,7 @@ import type { Editor } from 'ckeditor5/src/core.js';
31
31
  *
32
32
  * will set the `height` attribute to `'50px'` in the model.
33
33
  */
34
- export default class TableHeightCommand extends TablePropertyCommand {
34
+ export declare class TableHeightCommand extends TablePropertyCommand {
35
35
  /**
36
36
  * Creates a new `TableHeightCommand` instance.
37
37
  *
@@ -5,7 +5,7 @@
5
5
  /**
6
6
  * @module table/tableproperties/commands/tableheightcommand
7
7
  */
8
- import TablePropertyCommand from './tablepropertycommand.js';
8
+ import { TablePropertyCommand } from './tablepropertycommand.js';
9
9
  import { addDefaultUnitToNumericValue } from '../../utils/table-properties.js';
10
10
  /**
11
11
  * The table height command.
@@ -31,7 +31,7 @@ import { addDefaultUnitToNumericValue } from '../../utils/table-properties.js';
31
31
  *
32
32
  * will set the `height` attribute to `'50px'` in the model.
33
33
  */
34
- export default class TableHeightCommand extends TablePropertyCommand {
34
+ export class TableHeightCommand extends TablePropertyCommand {
35
35
  /**
36
36
  * Creates a new `TableHeightCommand` instance.
37
37
  *
@@ -5,12 +5,12 @@
5
5
  /**
6
6
  * @module table/tableproperties/commands/tablepropertycommand
7
7
  */
8
- import type { Batch, Element } from 'ckeditor5/src/engine.js';
8
+ import type { Batch, ModelElement } from 'ckeditor5/src/engine.js';
9
9
  import { Command, type Editor } from 'ckeditor5/src/core.js';
10
10
  export interface TablePropertyCommandExecuteOptions {
11
11
  batch?: Batch;
12
12
  columnWidths?: string;
13
- table?: Element;
13
+ table?: ModelElement;
14
14
  tableWidth?: string;
15
15
  value?: string;
16
16
  }
@@ -19,7 +19,7 @@ export interface TablePropertyCommandExecuteOptions {
19
19
  *
20
20
  * This command is a base command for other table property commands.
21
21
  */
22
- export default class TablePropertyCommand extends Command {
22
+ export declare class TablePropertyCommand extends Command {
23
23
  /**
24
24
  * The attribute that will be set by the command.
25
25
  */
@@ -63,7 +63,7 @@ export default class TablePropertyCommand extends Command {
63
63
  /**
64
64
  * Returns the attribute value for a table.
65
65
  */
66
- protected _getValue(table: Element): unknown;
66
+ protected _getValue(table: ModelElement): unknown;
67
67
  /**
68
68
  * Returns the proper model value. It can be used to add a default unit to numeric values.
69
69
  */
@@ -9,7 +9,7 @@ import { getSelectionAffectedTable } from '../../utils/common.js';
9
9
  *
10
10
  * This command is a base command for other table property commands.
11
11
  */
12
- export default class TablePropertyCommand extends Command {
12
+ export class TablePropertyCommand extends Command {
13
13
  /**
14
14
  * The attribute that will be set by the command.
15
15
  */
@@ -5,7 +5,7 @@
5
5
  /**
6
6
  * @module table/tableproperties/commands/tablewidthcommand
7
7
  */
8
- import TablePropertyCommand from './tablepropertycommand.js';
8
+ import { TablePropertyCommand } from './tablepropertycommand.js';
9
9
  import type { Editor } from 'ckeditor5/src/core.js';
10
10
  /**
11
11
  * The table width command.
@@ -31,7 +31,7 @@ import type { Editor } from 'ckeditor5/src/core.js';
31
31
  *
32
32
  * will set the `width` attribute to `'50px'` in the model.
33
33
  */
34
- export default class TableWidthCommand extends TablePropertyCommand {
34
+ export declare class TableWidthCommand extends TablePropertyCommand {
35
35
  /**
36
36
  * Creates a new `TableWidthCommand` instance.
37
37
  *
@@ -5,7 +5,7 @@
5
5
  /**
6
6
  * @module table/tableproperties/commands/tablewidthcommand
7
7
  */
8
- import TablePropertyCommand from './tablepropertycommand.js';
8
+ import { TablePropertyCommand } from './tablepropertycommand.js';
9
9
  import { addDefaultUnitToNumericValue } from '../../utils/table-properties.js';
10
10
  /**
11
11
  * The table width command.
@@ -31,7 +31,7 @@ import { addDefaultUnitToNumericValue } from '../../utils/table-properties.js';
31
31
  *
32
32
  * will set the `width` attribute to `'50px'` in the model.
33
33
  */
34
- export default class TableWidthCommand extends TablePropertyCommand {
34
+ export class TableWidthCommand extends TablePropertyCommand {
35
35
  /**
36
36
  * Creates a new `TableWidthCommand` instance.
37
37
  *
@@ -6,7 +6,7 @@
6
6
  * @module table/tableproperties/tablepropertiesediting
7
7
  */
8
8
  import { Plugin } from 'ckeditor5/src/core.js';
9
- import TableEditing from '../tableediting.js';
9
+ import { TableEditing } from '../tableediting.js';
10
10
  /**
11
11
  * The table properties editing feature.
12
12
  *
@@ -24,7 +24,7 @@ import TableEditing from '../tableediting.js';
24
24
  * - horizontal alignment: `'tableAlignment'`
25
25
  * - width & height: `'tableWidth'` & `'tableHeight'`
26
26
  */
27
- export default class TablePropertiesEditing extends Plugin {
27
+ export declare class TablePropertiesEditing extends Plugin {
28
28
  /**
29
29
  * @inheritDoc
30
30
  */