@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,11 +6,11 @@
6
6
  * @module table/tablecaption/tablecaptionediting
7
7
  */
8
8
  import { Plugin, type Editor } from 'ckeditor5/src/core.js';
9
- import { Element } from 'ckeditor5/src/engine.js';
9
+ import { ModelElement } from 'ckeditor5/src/engine.js';
10
10
  /**
11
11
  * The table caption editing plugin.
12
12
  */
13
- export default class TableCaptionEditing extends Plugin {
13
+ export declare class TableCaptionEditing extends Plugin {
14
14
  /**
15
15
  * A map that keeps saved JSONified table captions and table model elements they are
16
16
  * associated with.
@@ -35,7 +35,7 @@ export default class TableCaptionEditing extends Plugin {
35
35
  */
36
36
  init(): void;
37
37
  /**
38
- * Returns the saved {@link module:engine/model/element~Element#toJSON JSONified} caption
38
+ * Returns the saved {@link module:engine/model/element~ModelElement#toJSON JSONified} caption
39
39
  * of a table model element.
40
40
  *
41
41
  * See {@link #_saveCaption}.
@@ -44,9 +44,9 @@ export default class TableCaptionEditing extends Plugin {
44
44
  * @param tableModelElement The model element the caption should be returned for.
45
45
  * @returns The model caption element or `null` if there is none.
46
46
  */
47
- _getSavedCaption(tableModelElement: Element): Element | null;
47
+ _getSavedCaption(tableModelElement: ModelElement): ModelElement | null;
48
48
  /**
49
- * Saves a {@link module:engine/model/element~Element#toJSON JSONified} caption for
49
+ * Saves a {@link module:engine/model/element~ModelElement#toJSON JSONified} caption for
50
50
  * a table element to allow restoring it in the future.
51
51
  *
52
52
  * A caption is saved every time it gets hidden. The
@@ -63,5 +63,5 @@ export default class TableCaptionEditing extends Plugin {
63
63
  * @param tableModelElement The model element the caption is saved for.
64
64
  * @param caption The caption model element to be saved.
65
65
  */
66
- _saveCaption(tableModelElement: Element, caption: Element): void;
66
+ _saveCaption(tableModelElement: ModelElement, caption: ModelElement): void;
67
67
  }
@@ -6,15 +6,15 @@
6
6
  * @module table/tablecaption/tablecaptionediting
7
7
  */
8
8
  import { Plugin } from 'ckeditor5/src/core.js';
9
- import { Element, enablePlaceholder } from 'ckeditor5/src/engine.js';
9
+ import { ModelElement, enableViewPlaceholder } from 'ckeditor5/src/engine.js';
10
10
  import { toWidgetEditable } from 'ckeditor5/src/widget.js';
11
- import injectTableCaptionPostFixer from '../converters/table-caption-post-fixer.js';
12
- import ToggleTableCaptionCommand from './toggletablecaptioncommand.js';
11
+ import { injectTableCaptionPostFixer } from '../converters/table-caption-post-fixer.js';
12
+ import { ToggleTableCaptionCommand } from './toggletablecaptioncommand.js';
13
13
  import { isTable, matchTableCaptionViewElement } from './utils.js';
14
14
  /**
15
15
  * The table caption editing plugin.
16
16
  */
17
- export default class TableCaptionEditing extends Plugin {
17
+ export class TableCaptionEditing extends Plugin {
18
18
  /**
19
19
  * A map that keeps saved JSONified table captions and table model elements they are
20
20
  * associated with.
@@ -87,7 +87,7 @@ export default class TableCaptionEditing extends Plugin {
87
87
  const figcaptionElement = writer.createEditableElement('figcaption');
88
88
  writer.setCustomProperty('tableCaption', true, figcaptionElement);
89
89
  figcaptionElement.placeholder = t('Enter table caption');
90
- enablePlaceholder({
90
+ enableViewPlaceholder({
91
91
  view,
92
92
  element: figcaptionElement,
93
93
  keepOnFocus: true
@@ -98,7 +98,7 @@ export default class TableCaptionEditing extends Plugin {
98
98
  injectTableCaptionPostFixer(editor.model);
99
99
  }
100
100
  /**
101
- * Returns the saved {@link module:engine/model/element~Element#toJSON JSONified} caption
101
+ * Returns the saved {@link module:engine/model/element~ModelElement#toJSON JSONified} caption
102
102
  * of a table model element.
103
103
  *
104
104
  * See {@link #_saveCaption}.
@@ -109,10 +109,10 @@ export default class TableCaptionEditing extends Plugin {
109
109
  */
110
110
  _getSavedCaption(tableModelElement) {
111
111
  const jsonObject = this._savedCaptionsMap.get(tableModelElement);
112
- return jsonObject ? Element.fromJSON(jsonObject) : null;
112
+ return jsonObject ? ModelElement.fromJSON(jsonObject) : null;
113
113
  }
114
114
  /**
115
- * Saves a {@link module:engine/model/element~Element#toJSON JSONified} caption for
115
+ * Saves a {@link module:engine/model/element~ModelElement#toJSON JSONified} caption for
116
116
  * a table element to allow restoring it in the future.
117
117
  *
118
118
  * A caption is saved every time it gets hidden. The
@@ -9,7 +9,7 @@ import { Plugin } from 'ckeditor5/src/core.js';
9
9
  /**
10
10
  * The table caption UI plugin. It introduces the `'toggleTableCaption'` UI button.
11
11
  */
12
- export default class TableCaptionUI extends Plugin {
12
+ export declare class TableCaptionUI extends Plugin {
13
13
  /**
14
14
  * @inheritDoc
15
15
  */
@@ -12,7 +12,7 @@ import { getCaptionFromModelSelection } from './utils.js';
12
12
  /**
13
13
  * The table caption UI plugin. It introduces the `'toggleTableCaption'` UI button.
14
14
  */
15
- export default class TableCaptionUI extends Plugin {
15
+ export class TableCaptionUI extends Plugin {
16
16
  /**
17
17
  * @inheritDoc
18
18
  */
@@ -29,7 +29,7 @@ import { Command } from 'ckeditor5/src/core.js';
29
29
  * editor.execute( 'toggleTableCaption', { focusCaptionOnShow: true } );
30
30
  * ```
31
31
  */
32
- export default class ToggleTableCaptionCommand extends Command {
32
+ export declare class ToggleTableCaptionCommand extends Command {
33
33
  value: boolean;
34
34
  /**
35
35
  * @inheritDoc
@@ -31,7 +31,7 @@ import { getSelectionAffectedTable } from '../utils/common.js';
31
31
  * editor.execute( 'toggleTableCaption', { focusCaptionOnShow: true } );
32
32
  * ```
33
33
  */
34
- export default class ToggleTableCaptionCommand extends Command {
34
+ export class ToggleTableCaptionCommand extends Command {
35
35
  /**
36
36
  * @inheritDoc
37
37
  */
@@ -5,25 +5,28 @@
5
5
  /**
6
6
  * @module table/tablecaption/utils
7
7
  */
8
- import type { DocumentFragment, DocumentSelection, Element, ViewElement } from 'ckeditor5/src/engine.js';
8
+ import type { ModelDocumentFragment, ModelDocumentSelection, ModelElement, ViewElement } from 'ckeditor5/src/engine.js';
9
9
  /**
10
10
  * Checks if the provided model element is a `table`.
11
11
  *
12
12
  * @param modelElement Element to check if it is a table.
13
+ * @internal
13
14
  */
14
- export declare function isTable(modelElement: Element | DocumentFragment | null): boolean;
15
+ export declare function isTable(modelElement: ModelElement | ModelDocumentFragment | null): boolean;
15
16
  /**
16
17
  * Returns the caption model element from a given table element. Returns `null` if no caption is found.
17
18
  *
18
19
  * @param tableModelElement Table element in which we will try to find a caption element.
20
+ * @internal
19
21
  */
20
- export declare function getCaptionFromTableModelElement(tableModelElement: Element): Element | null;
22
+ export declare function getCaptionFromTableModelElement(tableModelElement: ModelElement): ModelElement | null;
21
23
  /**
22
24
  * Returns the caption model element for a model selection. Returns `null` if the selection has no caption element ancestor.
23
25
  *
24
26
  * @param selection The selection checked for caption presence.
27
+ * @internal
25
28
  */
26
- export declare function getCaptionFromModelSelection(selection: DocumentSelection): Element | null;
29
+ export declare function getCaptionFromModelSelection(selection: ModelDocumentSelection): ModelElement | null;
27
30
  /**
28
31
  * {@link module:engine/view/matcher~Matcher} pattern. Checks if a given element is a caption.
29
32
  *
@@ -32,6 +35,7 @@ export declare function getCaptionFromModelSelection(selection: DocumentSelectio
32
35
  * - A `<caption>` inside a <table>.
33
36
  *
34
37
  * @returns Returns the object accepted by {@link module:engine/view/matcher~Matcher} or `null` if the element cannot be matched.
38
+ * @internal
35
39
  */
36
40
  export declare function matchTableCaptionViewElement(element: ViewElement): {
37
41
  name: true;
@@ -7,6 +7,7 @@ import { getSelectionAffectedTable } from '../utils/common.js';
7
7
  * Checks if the provided model element is a `table`.
8
8
  *
9
9
  * @param modelElement Element to check if it is a table.
10
+ * @internal
10
11
  */
11
12
  export function isTable(modelElement) {
12
13
  return !!modelElement && modelElement.is('element', 'table');
@@ -15,6 +16,7 @@ export function isTable(modelElement) {
15
16
  * Returns the caption model element from a given table element. Returns `null` if no caption is found.
16
17
  *
17
18
  * @param tableModelElement Table element in which we will try to find a caption element.
19
+ * @internal
18
20
  */
19
21
  export function getCaptionFromTableModelElement(tableModelElement) {
20
22
  for (const node of tableModelElement.getChildren()) {
@@ -28,6 +30,7 @@ export function getCaptionFromTableModelElement(tableModelElement) {
28
30
  * Returns the caption model element for a model selection. Returns `null` if the selection has no caption element ancestor.
29
31
  *
30
32
  * @param selection The selection checked for caption presence.
33
+ * @internal
31
34
  */
32
35
  export function getCaptionFromModelSelection(selection) {
33
36
  const tableElement = getSelectionAffectedTable(selection);
@@ -44,6 +47,7 @@ export function getCaptionFromModelSelection(selection) {
44
47
  * - A `<caption>` inside a <table>.
45
48
  *
46
49
  * @returns Returns the object accepted by {@link module:engine/view/matcher~Matcher} or `null` if the element cannot be matched.
50
+ * @internal
47
51
  */
48
52
  export function matchTableCaptionViewElement(element) {
49
53
  const parent = element.parent;
@@ -6,13 +6,13 @@
6
6
  * @module table/tablecaption
7
7
  */
8
8
  import { Plugin } from 'ckeditor5/src/core.js';
9
- import TableCaptionEditing from './tablecaption/tablecaptionediting.js';
10
- import TableCaptionUI from './tablecaption/tablecaptionui.js';
9
+ import { TableCaptionEditing } from './tablecaption/tablecaptionediting.js';
10
+ import { TableCaptionUI } from './tablecaption/tablecaptionui.js';
11
11
  import '../theme/tablecaption.css';
12
12
  /**
13
13
  * The table caption plugin.
14
14
  */
15
- export default class TableCaption extends Plugin {
15
+ export declare class TableCaption extends Plugin {
16
16
  /**
17
17
  * @inheritDoc
18
18
  */
@@ -6,13 +6,13 @@
6
6
  * @module table/tablecaption
7
7
  */
8
8
  import { Plugin } from 'ckeditor5/src/core.js';
9
- import TableCaptionEditing from './tablecaption/tablecaptionediting.js';
10
- import TableCaptionUI from './tablecaption/tablecaptionui.js';
9
+ import { TableCaptionEditing } from './tablecaption/tablecaptionediting.js';
10
+ import { TableCaptionUI } from './tablecaption/tablecaptionui.js';
11
11
  import '../theme/tablecaption.css';
12
12
  /**
13
13
  * The table caption plugin.
14
14
  */
15
- export default class TableCaption extends Plugin {
15
+ export class TableCaption extends Plugin {
16
16
  /**
17
17
  * @inheritDoc
18
18
  */
@@ -6,7 +6,7 @@
6
6
  * @module table/tablecellproperties/commands/tablecellbackgroundcolorcommand
7
7
  */
8
8
  import type { Editor } from 'ckeditor5/src/core.js';
9
- import TableCellPropertyCommand from './tablecellpropertycommand.js';
9
+ import { TableCellPropertyCommand } from './tablecellpropertycommand.js';
10
10
  /**
11
11
  * The table cell background color command.
12
12
  *
@@ -21,7 +21,7 @@ import TableCellPropertyCommand from './tablecellpropertycommand.js';
21
21
  * } );
22
22
  * ```
23
23
  */
24
- export default class TableCellBackgroundColorCommand extends TableCellPropertyCommand {
24
+ export declare class TableCellBackgroundColorCommand extends TableCellPropertyCommand {
25
25
  /**
26
26
  * Creates a new `TableCellBackgroundColorCommand` 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 TableCellPropertyCommand from './tablecellpropertycommand.js';
5
+ import { TableCellPropertyCommand } from './tablecellpropertycommand.js';
6
6
  /**
7
7
  * The table cell background color command.
8
8
  *
@@ -17,7 +17,7 @@ import TableCellPropertyCommand from './tablecellpropertycommand.js';
17
17
  * } );
18
18
  * ```
19
19
  */
20
- export default class TableCellBackgroundColorCommand extends TableCellPropertyCommand {
20
+ export class TableCellBackgroundColorCommand extends TableCellPropertyCommand {
21
21
  /**
22
22
  * Creates a new `TableCellBackgroundColorCommand` instance.
23
23
  *
@@ -5,9 +5,9 @@
5
5
  /**
6
6
  * @module table/tablecellproperties/commands/tablecellbordercolorcommand
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 TableCellPropertyCommand from './tablecellpropertycommand.js';
10
+ import { TableCellPropertyCommand } from './tablecellpropertycommand.js';
11
11
  /**
12
12
  * The table cell border color command.
13
13
  *
@@ -22,7 +22,7 @@ import TableCellPropertyCommand from './tablecellpropertycommand.js';
22
22
  * } );
23
23
  * ```
24
24
  */
25
- export default class TableCellBorderColorCommand extends TableCellPropertyCommand {
25
+ export declare class TableCellBorderColorCommand extends TableCellPropertyCommand {
26
26
  /**
27
27
  * Creates a new `TableCellBorderColorCommand` instance.
28
28
  *
@@ -33,5 +33,5 @@ export default class TableCellBorderColorCommand extends TableCellPropertyComman
33
33
  /**
34
34
  * @inheritDoc
35
35
  */
36
- protected _getAttribute(tableCell: Element): unknown;
36
+ protected _getAttribute(tableCell: 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 TableCellPropertyCommand from './tablecellpropertycommand.js';
5
+ import { TableCellPropertyCommand } from './tablecellpropertycommand.js';
6
6
  import { getSingleValue } from '../../utils/table-properties.js';
7
7
  /**
8
8
  * The table cell border color command.
@@ -18,7 +18,7 @@ import { getSingleValue } from '../../utils/table-properties.js';
18
18
  * } );
19
19
  * ```
20
20
  */
21
- export default class TableCellBorderColorCommand extends TableCellPropertyCommand {
21
+ export class TableCellBorderColorCommand extends TableCellPropertyCommand {
22
22
  /**
23
23
  * Creates a new `TableCellBorderColorCommand` instance.
24
24
  *
@@ -6,8 +6,8 @@
6
6
  * @module table/tablecellproperties/commands/tablecellborderstylecommand
7
7
  */
8
8
  import type { Editor } from 'ckeditor5/src/core.js';
9
- import type { Element } from 'ckeditor5/src/engine.js';
10
- import TableCellPropertyCommand from './tablecellpropertycommand.js';
9
+ import type { ModelElement } from 'ckeditor5/src/engine.js';
10
+ import { TableCellPropertyCommand } from './tablecellpropertycommand.js';
11
11
  /**
12
12
  * The table cell border style command.
13
13
  *
@@ -22,7 +22,7 @@ import TableCellPropertyCommand from './tablecellpropertycommand.js';
22
22
  * } );
23
23
  * ```
24
24
  */
25
- export default class TableCellBorderStyleCommand extends TableCellPropertyCommand {
25
+ export declare class TableCellBorderStyleCommand extends TableCellPropertyCommand {
26
26
  /**
27
27
  * Creates a new `TableCellBorderStyleCommand` instance.
28
28
  *
@@ -33,5 +33,5 @@ export default class TableCellBorderStyleCommand extends TableCellPropertyComman
33
33
  /**
34
34
  * @inheritDoc
35
35
  */
36
- protected _getAttribute(tableCell: Element): unknown;
36
+ protected _getAttribute(tableCell: 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 TableCellPropertyCommand from './tablecellpropertycommand.js';
5
+ import { TableCellPropertyCommand } from './tablecellpropertycommand.js';
6
6
  import { getSingleValue } from '../../utils/table-properties.js';
7
7
  /**
8
8
  * The table cell border style command.
@@ -18,7 +18,7 @@ import { getSingleValue } from '../../utils/table-properties.js';
18
18
  * } );
19
19
  * ```
20
20
  */
21
- export default class TableCellBorderStyleCommand extends TableCellPropertyCommand {
21
+ export class TableCellBorderStyleCommand extends TableCellPropertyCommand {
22
22
  /**
23
23
  * Creates a new `TableCellBorderStyleCommand` instance.
24
24
  *
@@ -6,8 +6,8 @@
6
6
  * @module table/tablecellproperties/commands/tablecellborderwidthcommand
7
7
  */
8
8
  import type { Editor } from 'ckeditor5/src/core.js';
9
- import type { Element } from 'ckeditor5/src/engine.js';
10
- import TableCellPropertyCommand from './tablecellpropertycommand.js';
9
+ import type { ModelElement } from 'ckeditor5/src/engine.js';
10
+ import { TableCellPropertyCommand } from './tablecellpropertycommand.js';
11
11
  /**
12
12
  * The table cell border width command.
13
13
  *
@@ -32,7 +32,7 @@ import TableCellPropertyCommand from './tablecellpropertycommand.js';
32
32
  *
33
33
  * will set the `borderWidth` attribute to `'5px'` in the model.
34
34
  */
35
- export default class TableCellBorderWidthCommand extends TableCellPropertyCommand {
35
+ export declare class TableCellBorderWidthCommand extends TableCellPropertyCommand {
36
36
  /**
37
37
  * Creates a new `TableCellBorderWidthCommand` instance.
38
38
  *
@@ -43,7 +43,7 @@ export default class TableCellBorderWidthCommand extends TableCellPropertyComman
43
43
  /**
44
44
  * @inheritDoc
45
45
  */
46
- protected _getAttribute(tableCell: Element): unknown;
46
+ protected _getAttribute(tableCell: ModelElement): unknown;
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 TableCellPropertyCommand from './tablecellpropertycommand.js';
5
+ import { TableCellPropertyCommand } from './tablecellpropertycommand.js';
6
6
  import { addDefaultUnitToNumericValue, getSingleValue } from '../../utils/table-properties.js';
7
7
  /**
8
8
  * The table cell border width 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 TableCellBorderWidthCommand extends TableCellPropertyCommand {
31
+ export class TableCellBorderWidthCommand extends TableCellPropertyCommand {
32
32
  /**
33
33
  * Creates a new `TableCellBorderWidthCommand` instance.
34
34
  *
@@ -6,7 +6,7 @@
6
6
  * @module table/tablecellproperties/commands/tablecellheightcommand
7
7
  */
8
8
  import type { Editor } from 'ckeditor5/src/core.js';
9
- import TableCellPropertyCommand from './tablecellpropertycommand.js';
9
+ import { TableCellPropertyCommand } from './tablecellpropertycommand.js';
10
10
  /**
11
11
  * The table cell height command.
12
12
  *
@@ -31,7 +31,7 @@ import TableCellPropertyCommand from './tablecellpropertycommand.js';
31
31
  *
32
32
  * will set the `height` attribute to `'50px'` in the model.
33
33
  */
34
- export default class TableCellHeightCommand extends TableCellPropertyCommand {
34
+ export declare class TableCellHeightCommand extends TableCellPropertyCommand {
35
35
  /**
36
36
  * Creates a new `TableCellHeightCommand` instance.
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 TableCellPropertyCommand from './tablecellpropertycommand.js';
5
+ import { TableCellPropertyCommand } from './tablecellpropertycommand.js';
6
6
  import { addDefaultUnitToNumericValue } from '../../utils/table-properties.js';
7
7
  /**
8
8
  * The table cell height command.
@@ -28,7 +28,7 @@ import { addDefaultUnitToNumericValue } from '../../utils/table-properties.js';
28
28
  *
29
29
  * will set the `height` attribute to `'50px'` in the model.
30
30
  */
31
- export default class TableCellHeightCommand extends TableCellPropertyCommand {
31
+ export class TableCellHeightCommand extends TableCellPropertyCommand {
32
32
  /**
33
33
  * Creates a new `TableCellHeightCommand` instance.
34
34
  *
@@ -6,7 +6,7 @@
6
6
  * @module table/tablecellproperties/commands/tablecellhorizontalalignmentcommand
7
7
  */
8
8
  import type { Editor } from 'ckeditor5/src/core.js';
9
- import TableCellPropertyCommand from './tablecellpropertycommand.js';
9
+ import { TableCellPropertyCommand } from './tablecellpropertycommand.js';
10
10
  /**
11
11
  * The table cell horizontal alignment command.
12
12
  *
@@ -21,7 +21,7 @@ import TableCellPropertyCommand from './tablecellpropertycommand.js';
21
21
  * } );
22
22
  * ```
23
23
  */
24
- export default class TableCellHorizontalAlignmentCommand extends TableCellPropertyCommand {
24
+ export declare class TableCellHorizontalAlignmentCommand extends TableCellPropertyCommand {
25
25
  /**
26
26
  * Creates a new `TableCellHorizontalAlignmentCommand` 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 TableCellPropertyCommand from './tablecellpropertycommand.js';
5
+ import { TableCellPropertyCommand } from './tablecellpropertycommand.js';
6
6
  /**
7
7
  * The table cell horizontal alignment command.
8
8
  *
@@ -17,7 +17,7 @@ import TableCellPropertyCommand from './tablecellpropertycommand.js';
17
17
  * } );
18
18
  * ```
19
19
  */
20
- export default class TableCellHorizontalAlignmentCommand extends TableCellPropertyCommand {
20
+ export class TableCellHorizontalAlignmentCommand extends TableCellPropertyCommand {
21
21
  /**
22
22
  * Creates a new `TableCellHorizontalAlignmentCommand` instance.
23
23
  *
@@ -6,8 +6,8 @@
6
6
  * @module table/tablecellproperties/commands/tablecellpaddingcommand
7
7
  */
8
8
  import type { Editor } from 'ckeditor5/src/core.js';
9
- import type { Element } from 'ckeditor5/src/engine.js';
10
- import TableCellPropertyCommand from './tablecellpropertycommand.js';
9
+ import type { ModelElement } from 'ckeditor5/src/engine.js';
10
+ import { TableCellPropertyCommand } from './tablecellpropertycommand.js';
11
11
  /**
12
12
  * The table cell padding command.
13
13
  *
@@ -32,7 +32,7 @@ import TableCellPropertyCommand from './tablecellpropertycommand.js';
32
32
  *
33
33
  * will set the `padding` attribute to `'5px'` in the model.
34
34
  */
35
- export default class TableCellPaddingCommand extends TableCellPropertyCommand {
35
+ export declare class TableCellPaddingCommand extends TableCellPropertyCommand {
36
36
  /**
37
37
  * Creates a new `TableCellPaddingCommand` instance.
38
38
  *
@@ -43,7 +43,7 @@ export default class TableCellPaddingCommand extends TableCellPropertyCommand {
43
43
  /**
44
44
  * @inheritDoc
45
45
  */
46
- protected _getAttribute(tableCell: Element): unknown;
46
+ protected _getAttribute(tableCell: ModelElement): unknown;
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 TableCellPropertyCommand from './tablecellpropertycommand.js';
5
+ import { TableCellPropertyCommand } from './tablecellpropertycommand.js';
6
6
  import { addDefaultUnitToNumericValue, getSingleValue } from '../../utils/table-properties.js';
7
7
  /**
8
8
  * The table cell padding command.
@@ -28,7 +28,7 @@ import { addDefaultUnitToNumericValue, getSingleValue } from '../../utils/table-
28
28
  *
29
29
  * will set the `padding` attribute to `'5px'` in the model.
30
30
  */
31
- export default class TableCellPaddingCommand extends TableCellPropertyCommand {
31
+ export class TableCellPaddingCommand extends TableCellPropertyCommand {
32
32
  /**
33
33
  * Creates a new `TableCellPaddingCommand` instance.
34
34
  *
@@ -6,13 +6,13 @@
6
6
  * @module table/tablecellproperties/commands/tablecellpropertycommand
7
7
  */
8
8
  import { Command, type Editor } from 'ckeditor5/src/core.js';
9
- import type { Element, Batch } from 'ckeditor5/src/engine.js';
9
+ import type { ModelElement, Batch } from 'ckeditor5/src/engine.js';
10
10
  /**
11
11
  * The table cell attribute command.
12
12
  *
13
13
  * The command is a base command for other table cell property commands.
14
14
  */
15
- export default class TableCellPropertyCommand extends Command {
15
+ export declare class TableCellPropertyCommand extends Command {
16
16
  /**
17
17
  * The attribute that will be set by the command.
18
18
  */
@@ -59,7 +59,7 @@ export default class TableCellPropertyCommand extends Command {
59
59
  /**
60
60
  * Returns the attribute value for a table cell.
61
61
  */
62
- protected _getAttribute(tableCell: Element | undefined): unknown;
62
+ protected _getAttribute(tableCell: ModelElement | undefined): unknown;
63
63
  /**
64
64
  * Returns the proper model value. It can be used to add a default unit to numeric values.
65
65
  */
@@ -12,7 +12,7 @@ import { getSelectionAffectedTable } from '../../utils/common.js';
12
12
  *
13
13
  * The command is a base command for other table cell property commands.
14
14
  */
15
- export default class TableCellPropertyCommand extends Command {
15
+ export class TableCellPropertyCommand extends Command {
16
16
  /**
17
17
  * The attribute that will be set by the command.
18
18
  */
@@ -6,7 +6,7 @@
6
6
  * @module table/tablecellproperties/commands/tablecellverticalalignmentcommand
7
7
  */
8
8
  import type { Editor } from 'ckeditor5/src/core.js';
9
- import TableCellPropertyCommand from './tablecellpropertycommand.js';
9
+ import { TableCellPropertyCommand } from './tablecellpropertycommand.js';
10
10
  /**
11
11
  * The table cell vertical alignment command.
12
12
  *
@@ -29,7 +29,7 @@ import TableCellPropertyCommand from './tablecellpropertycommand.js';
29
29
  *
30
30
  * The `'middle'` value is the default one so there is no need to set it.
31
31
  */
32
- export default class TableCellVerticalAlignmentCommand extends TableCellPropertyCommand {
32
+ export declare class TableCellVerticalAlignmentCommand extends TableCellPropertyCommand {
33
33
  /**
34
34
  * Creates a new `TableCellVerticalAlignmentCommand` instance.
35
35
  *
@@ -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 TableCellPropertyCommand from './tablecellpropertycommand.js';
5
+ import { TableCellPropertyCommand } from './tablecellpropertycommand.js';
6
6
  /**
7
7
  * The table cell vertical alignment command.
8
8
  *
@@ -25,7 +25,7 @@ import TableCellPropertyCommand from './tablecellpropertycommand.js';
25
25
  *
26
26
  * The `'middle'` value is the default one so there is no need to set it.
27
27
  */
28
- export default class TableCellVerticalAlignmentCommand extends TableCellPropertyCommand {
28
+ export class TableCellVerticalAlignmentCommand extends TableCellPropertyCommand {
29
29
  /**
30
30
  * Creates a new `TableCellVerticalAlignmentCommand` instance.
31
31
  *
@@ -6,8 +6,8 @@
6
6
  * @module table/tablecellproperties/tablecellpropertiesediting
7
7
  */
8
8
  import { Plugin } from 'ckeditor5/src/core.js';
9
- import TableEditing from './../tableediting.js';
10
- import TableCellWidthEditing from '../tablecellwidth/tablecellwidthediting.js';
9
+ import { TableEditing } from './../tableediting.js';
10
+ import { TableCellWidthEditing } from '../tablecellwidth/tablecellwidthediting.js';
11
11
  /**
12
12
  * The table cell properties editing feature.
13
13
  *
@@ -27,7 +27,7 @@ import TableCellWidthEditing from '../tablecellwidth/tablecellwidthediting.js';
27
27
  * - horizontal and vertical alignment: the `'tableCellHorizontalAlignment'` and `'tableCellVerticalAlignment'` commands
28
28
  * - width and height: the `'tableCellWidth'` and `'tableCellHeight'` commands
29
29
  */
30
- export default class TableCellPropertiesEditing extends Plugin {
30
+ export declare class TableCellPropertiesEditing extends Plugin {
31
31
  /**
32
32
  * @inheritDoc
33
33
  */