@ckeditor/ckeditor5-table 48.2.0 → 48.3.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (94) hide show
  1. package/dist/augmentation.d.ts +80 -80
  2. package/dist/commands/insertcolumncommand.d.ts +50 -50
  3. package/dist/commands/insertrowcommand.d.ts +49 -49
  4. package/dist/commands/inserttablecommand.d.ts +43 -43
  5. package/dist/commands/inserttablelayoutcommand.d.ts +34 -34
  6. package/dist/commands/mergecellcommand.d.ts +63 -63
  7. package/dist/commands/mergecellscommand.d.ts +24 -24
  8. package/dist/commands/removecolumncommand.d.ts +24 -24
  9. package/dist/commands/removerowcommand.d.ts +24 -24
  10. package/dist/commands/selectcolumncommand.d.ts +28 -28
  11. package/dist/commands/selectrowcommand.d.ts +28 -28
  12. package/dist/commands/setfooterrowcommand.d.ts +48 -48
  13. package/dist/commands/setheadercolumncommand.d.ts +45 -45
  14. package/dist/commands/setheaderrowcommand.d.ts +48 -48
  15. package/dist/commands/splitcellcommand.d.ts +38 -38
  16. package/dist/converters/downcast.d.ts +77 -77
  17. package/dist/converters/table-caption-post-fixer.d.ts +18 -18
  18. package/dist/converters/table-cell-paragraph-post-fixer.d.ts +30 -30
  19. package/dist/converters/table-cell-refresh-handler.d.ts +16 -16
  20. package/dist/converters/table-layout-post-fixer.d.ts +224 -224
  21. package/dist/converters/table-structure-post-fixer.d.ts +16 -16
  22. package/dist/converters/table-structure-refresh-handler.d.ts +15 -15
  23. package/dist/converters/tableproperties.d.ts +98 -98
  24. package/dist/converters/upcasttable.d.ts +47 -47
  25. package/dist/index.css.map +1 -1
  26. package/dist/index.d.ts +98 -98
  27. package/dist/index.js +12835 -14503
  28. package/dist/index.js.map +1 -1
  29. package/dist/plaintableoutput.d.ts +28 -28
  30. package/dist/table.d.ts +39 -39
  31. package/dist/tablecaption/tablecaptionediting.d.ts +62 -62
  32. package/dist/tablecaption/tablecaptionui.d.ts +18 -18
  33. package/dist/tablecaption/toggletablecaptioncommand.d.ts +61 -61
  34. package/dist/tablecaption/utils.d.ts +31 -31
  35. package/dist/tablecaption.d.ts +23 -23
  36. package/dist/tablecellproperties/commands/tablecellbackgroundcolorcommand.d.ts +27 -27
  37. package/dist/tablecellproperties/commands/tablecellbordercolorcommand.d.ts +32 -32
  38. package/dist/tablecellproperties/commands/tablecellborderstylecommand.d.ts +32 -32
  39. package/dist/tablecellproperties/commands/tablecellborderwidthcommand.d.ts +46 -46
  40. package/dist/tablecellproperties/commands/tablecellheightcommand.d.ts +41 -41
  41. package/dist/tablecellproperties/commands/tablecellhorizontalalignmentcommand.d.ts +27 -27
  42. package/dist/tablecellproperties/commands/tablecellpaddingcommand.d.ts +46 -46
  43. package/dist/tablecellproperties/commands/tablecellpropertycommand.d.ts +79 -79
  44. package/dist/tablecellproperties/commands/tablecelltypecommand.d.ts +42 -42
  45. package/dist/tablecellproperties/commands/tablecellverticalalignmentcommand.d.ts +35 -35
  46. package/dist/tablecellproperties/tablecellpropertiesediting.d.ts +49 -49
  47. package/dist/tablecellproperties/tablecellpropertiesui.d.ts +123 -123
  48. package/dist/tablecellproperties/tablecellpropertiesutils.d.ts +13 -13
  49. package/dist/tablecellproperties/ui/tablecellpropertiesview.d.ts +257 -257
  50. package/dist/tablecellproperties.d.ts +29 -29
  51. package/dist/tablecellwidth/commands/tablecellwidthcommand.d.ts +41 -41
  52. package/dist/tablecellwidth/tablecellwidthediting.d.ts +28 -28
  53. package/dist/tableclipboard.d.ts +79 -79
  54. package/dist/tablecolumnresize/constants.d.ts +23 -23
  55. package/dist/tablecolumnresize/converters.d.ts +20 -20
  56. package/dist/tablecolumnresize/tablecolumnresizeediting.d.ts +184 -184
  57. package/dist/tablecolumnresize/tablewidthscommand.d.ts +31 -31
  58. package/dist/tablecolumnresize/utils.d.ts +127 -127
  59. package/dist/tablecolumnresize.d.ts +25 -25
  60. package/dist/tableconfig.d.ts +670 -670
  61. package/dist/tableediting.d.ts +99 -99
  62. package/dist/tablekeyboard.d.ts +67 -67
  63. package/dist/tablelayout/commands/tabletypecommand.d.ts +38 -38
  64. package/dist/tablelayout/tablelayoutediting.d.ts +58 -58
  65. package/dist/tablelayout/tablelayoutui.d.ts +27 -27
  66. package/dist/tablelayout.d.ts +25 -25
  67. package/dist/tablemouse/mouseeventsobserver.d.ts +54 -54
  68. package/dist/tablemouse.d.ts +47 -47
  69. package/dist/tableproperties/commands/tablealignmentcommand.d.ts +27 -27
  70. package/dist/tableproperties/commands/tablebackgroundcolorcommand.d.ts +27 -27
  71. package/dist/tableproperties/commands/tablebordercolorcommand.d.ts +32 -32
  72. package/dist/tableproperties/commands/tableborderstylecommand.d.ts +32 -32
  73. package/dist/tableproperties/commands/tableborderwidthcommand.d.ts +46 -46
  74. package/dist/tableproperties/commands/tableheightcommand.d.ts +41 -41
  75. package/dist/tableproperties/commands/tablepropertycommand.d.ts +64 -64
  76. package/dist/tableproperties/commands/tablewidthcommand.d.ts +41 -41
  77. package/dist/tableproperties/tablepropertiesediting.d.ts +48 -48
  78. package/dist/tableproperties/tablepropertiesui.d.ts +131 -131
  79. package/dist/tableproperties/ui/tablepropertiesview.d.ts +207 -207
  80. package/dist/tableproperties.d.ts +29 -29
  81. package/dist/tableselection.d.ts +106 -106
  82. package/dist/tabletoolbar.d.ts +31 -31
  83. package/dist/tableui.d.ts +53 -53
  84. package/dist/tableutils.d.ts +532 -532
  85. package/dist/tablewalker.d.ts +342 -350
  86. package/dist/ui/colorinputview.d.ts +137 -137
  87. package/dist/ui/inserttableview.d.ts +78 -78
  88. package/dist/utils/common.d.ts +58 -58
  89. package/dist/utils/structure.d.ts +229 -229
  90. package/dist/utils/table-properties.d.ts +92 -92
  91. package/dist/utils/ui/contextualballoon.d.ts +28 -28
  92. package/dist/utils/ui/table-properties.d.ts +195 -192
  93. package/dist/utils/ui/widget.d.ts +22 -22
  94. package/package.json +9 -9
@@ -1,145 +1,145 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
- */
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
+ */
5
5
  /**
6
- * @module table/ui/colorinputview
7
- */
8
- import { View, InputTextView, FocusCycler, ViewCollection, type ColorDefinition, type DropdownView, type ColorPickerConfig, type FocusableView } from '@ckeditor/ckeditor5-ui';
9
- import { FocusTracker, KeystrokeHandler, type Locale } from '@ckeditor/ckeditor5-utils';
10
- import '../../theme/colorinput.css';
6
+ * @module table/ui/colorinputview
7
+ */
8
+ import { View, InputTextView, FocusCycler, ViewCollection, type ColorDefinition, type DropdownView, type ColorPickerConfig, type FocusableView } from "@ckeditor/ckeditor5-ui";
9
+ import { FocusTracker, KeystrokeHandler, type Locale } from "@ckeditor/ckeditor5-utils";
10
+ import "../../theme/colorinput.css";
11
11
  /**
12
- * The options for the color input view.
13
- *
14
- * @internal
15
- */
12
+ * The options for the color input view.
13
+ *
14
+ * @internal
15
+ */
16
16
  export type ColorInputViewOptions = {
17
- colorDefinitions: Array<ColorDefinition>;
18
- columns: number;
19
- defaultColorValue?: string;
20
- colorPickerConfig: false | ColorPickerConfig;
17
+ colorDefinitions: Array<ColorDefinition>;
18
+ columns: number;
19
+ defaultColorValue?: string;
20
+ colorPickerConfig: false | ColorPickerConfig;
21
21
  };
22
22
  /**
23
- * The color input view class. It allows the user to type in a color (hex, rgb, etc.)
24
- * or choose it from the configurable color palette with a preview.
25
- *
26
- * @internal
27
- */
23
+ * The color input view class. It allows the user to type in a color (hex, rgb, etc.)
24
+ * or choose it from the configurable color palette with a preview.
25
+ *
26
+ * @internal
27
+ */
28
28
  export declare class ColorInputView extends View implements FocusableView {
29
- /**
30
- * The value of the input.
31
- *
32
- * @observable
33
- * @default ''
34
- */
35
- value: string;
36
- /**
37
- * Controls whether the input view is in read-only mode.
38
- *
39
- * @observable
40
- * @default false
41
- */
42
- isReadOnly: boolean;
43
- /**
44
- * An observable flag set to `true` when the input is focused by the user.
45
- * `false` otherwise.
46
- *
47
- * @observable
48
- * @default false
49
- */
50
- readonly isFocused: boolean;
51
- /**
52
- * An observable flag set to `true` when the input contains no text.
53
- *
54
- * @observable
55
- * @default true
56
- */
57
- readonly isEmpty: boolean;
58
- /**
59
- * @observable
60
- */
61
- hasError: boolean;
62
- /**
63
- * A cached reference to the options passed to the constructor.
64
- */
65
- options: ColorInputViewOptions;
66
- /**
67
- * Tracks information about the DOM focus in the view.
68
- */
69
- readonly focusTracker: FocusTracker;
70
- /**
71
- * Helps cycling over focusable children in the input view.
72
- */
73
- readonly focusCycler: FocusCycler;
74
- /**
75
- * A collection of views that can be focused in the view.
76
- */
77
- protected readonly _focusables: ViewCollection<FocusableView>;
78
- /**
79
- * An instance of the dropdown allowing to select a color from a grid.
80
- */
81
- dropdownView: DropdownView;
82
- /**
83
- * An instance of the input allowing the user to type a color value.
84
- */
85
- inputView: InputTextView;
86
- /**
87
- * An instance of the {@link module:utils/keystrokehandler~KeystrokeHandler}.
88
- */
89
- readonly keystrokes: KeystrokeHandler;
90
- /**
91
- * The flag that indicates whether the user is still typing.
92
- * If set to true, it means that the text input field ({@link #inputView}) still has the focus.
93
- * So, we should interrupt the user by replacing the input's value.
94
- */
95
- protected _stillTyping: boolean;
96
- /**
97
- * Creates an instance of the color input view.
98
- *
99
- * @param locale The locale instance.
100
- * @param options The input options.
101
- * @param options.colorDefinitions The colors to be displayed in the palette inside the input's dropdown.
102
- * @param options.columns The number of columns in which the colors will be displayed.
103
- * @param options.defaultColorValue If specified, the color input view will replace the "Remove color" button with
104
- * the "Restore default" button. Instead of clearing the input field, the default color value will be set.
105
- */
106
- constructor(locale: Locale, options: ColorInputViewOptions);
107
- /**
108
- * @inheritDoc
109
- */
110
- render(): void;
111
- /**
112
- * Focuses the view.
113
- */
114
- focus(direction: 1 | -1): void;
115
- /**
116
- * @inheritDoc
117
- */
118
- destroy(): void;
119
- /**
120
- * Creates and configures the {@link #dropdownView}.
121
- */
122
- private _createDropdownView;
123
- /**
124
- * Creates and configures an instance of {@link module:ui/inputtext/inputtextview~InputTextView}.
125
- *
126
- * @returns A configured instance to be set as {@link #inputView}.
127
- */
128
- private _createInputTextView;
129
- /**
130
- * Creates and configures the panel with "color grid" and "color picker" inside the {@link #dropdownView}.
131
- */
132
- private _createColorSelector;
133
- /**
134
- * Sets {@link #inputView}'s value property to the color value or color label,
135
- * if there is one and the user is not typing.
136
- *
137
- * Handles cases like:
138
- *
139
- * * Someone picks the color in the grid.
140
- * * The color is set from the plugin level.
141
- *
142
- * @param inputValue Color value to be set.
143
- */
144
- private _setInputValue;
29
+ /**
30
+ * The value of the input.
31
+ *
32
+ * @observable
33
+ * @default ''
34
+ */
35
+ value: string;
36
+ /**
37
+ * Controls whether the input view is in read-only mode.
38
+ *
39
+ * @observable
40
+ * @default false
41
+ */
42
+ isReadOnly: boolean;
43
+ /**
44
+ * An observable flag set to `true` when the input is focused by the user.
45
+ * `false` otherwise.
46
+ *
47
+ * @observable
48
+ * @default false
49
+ */
50
+ readonly isFocused: boolean;
51
+ /**
52
+ * An observable flag set to `true` when the input contains no text.
53
+ *
54
+ * @observable
55
+ * @default true
56
+ */
57
+ readonly isEmpty: boolean;
58
+ /**
59
+ * @observable
60
+ */
61
+ hasError: boolean;
62
+ /**
63
+ * A cached reference to the options passed to the constructor.
64
+ */
65
+ options: ColorInputViewOptions;
66
+ /**
67
+ * Tracks information about the DOM focus in the view.
68
+ */
69
+ readonly focusTracker: FocusTracker;
70
+ /**
71
+ * Helps cycling over focusable children in the input view.
72
+ */
73
+ readonly focusCycler: FocusCycler;
74
+ /**
75
+ * A collection of views that can be focused in the view.
76
+ */
77
+ protected readonly _focusables: ViewCollection<FocusableView>;
78
+ /**
79
+ * An instance of the dropdown allowing to select a color from a grid.
80
+ */
81
+ dropdownView: DropdownView;
82
+ /**
83
+ * An instance of the input allowing the user to type a color value.
84
+ */
85
+ inputView: InputTextView;
86
+ /**
87
+ * An instance of the {@link module:utils/keystrokehandler~KeystrokeHandler}.
88
+ */
89
+ readonly keystrokes: KeystrokeHandler;
90
+ /**
91
+ * The flag that indicates whether the user is still typing.
92
+ * If set to true, it means that the text input field ({@link #inputView}) still has the focus.
93
+ * So, we should interrupt the user by replacing the input's value.
94
+ */
95
+ protected _stillTyping: boolean;
96
+ /**
97
+ * Creates an instance of the color input view.
98
+ *
99
+ * @param locale The locale instance.
100
+ * @param options The input options.
101
+ * @param options.colorDefinitions The colors to be displayed in the palette inside the input's dropdown.
102
+ * @param options.columns The number of columns in which the colors will be displayed.
103
+ * @param options.defaultColorValue If specified, the color input view will replace the "Remove color" button with
104
+ * the "Restore default" button. Instead of clearing the input field, the default color value will be set.
105
+ */
106
+ constructor(locale: Locale, options: ColorInputViewOptions);
107
+ /**
108
+ * @inheritDoc
109
+ */
110
+ override render(): void;
111
+ /**
112
+ * Focuses the view.
113
+ */
114
+ focus(direction: 1 | -1): void;
115
+ /**
116
+ * @inheritDoc
117
+ */
118
+ override destroy(): void;
119
+ /**
120
+ * Creates and configures the {@link #dropdownView}.
121
+ */
122
+ private _createDropdownView;
123
+ /**
124
+ * Creates and configures an instance of {@link module:ui/inputtext/inputtextview~InputTextView}.
125
+ *
126
+ * @returns A configured instance to be set as {@link #inputView}.
127
+ */
128
+ private _createInputTextView;
129
+ /**
130
+ * Creates and configures the panel with "color grid" and "color picker" inside the {@link #dropdownView}.
131
+ */
132
+ private _createColorSelector;
133
+ /**
134
+ * Sets {@link #inputView}'s value property to the color value or color label,
135
+ * if there is one and the user is not typing.
136
+ *
137
+ * Handles cases like:
138
+ *
139
+ * * Someone picks the color in the grid.
140
+ * * The color is set from the plugin level.
141
+ *
142
+ * @param inputValue Color value to be set.
143
+ */
144
+ private _setInputValue;
145
145
  }
@@ -1,83 +1,83 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
- */
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
+ */
5
5
  /**
6
- * @module table/ui/inserttableview
7
- */
8
- import { View, ButtonView, type ViewCollection } from '@ckeditor/ckeditor5-ui';
9
- import { KeystrokeHandler, FocusTracker, type Locale } from '@ckeditor/ckeditor5-utils';
10
- import './../../theme/inserttable.css';
6
+ * @module table/ui/inserttableview
7
+ */
8
+ import { View, ButtonView, type ViewCollection } from "@ckeditor/ckeditor5-ui";
9
+ import { KeystrokeHandler, FocusTracker, type Locale } from "@ckeditor/ckeditor5-utils";
10
+ import "./../../theme/inserttable.css";
11
11
  /**
12
- * The table size view.
13
- *
14
- * It renders a 10x10 grid to choose the inserted table size.
15
- *
16
- * @internal
17
- */
12
+ * The table size view.
13
+ *
14
+ * It renders a 10x10 grid to choose the inserted table size.
15
+ *
16
+ * @internal
17
+ */
18
18
  export declare class InsertTableView extends View {
19
- /**
20
- * A collection of table size box items.
21
- */
22
- readonly items: ViewCollection<ButtonView>;
23
- /**
24
- * Listen to `keydown` events fired in this view's main element.
25
- */
26
- readonly keystrokes: KeystrokeHandler;
27
- /**
28
- * Tracks information about the DOM focus in the grid.
29
- */
30
- readonly focusTracker: FocusTracker;
31
- /**
32
- * The currently selected number of rows of the new table.
33
- *
34
- * @observable
35
- */
36
- rows: number;
37
- /**
38
- * The currently selected number of columns of the new table.
39
- *
40
- * @observable
41
- */
42
- columns: number;
43
- /**
44
- * The label text displayed under the boxes.
45
- *
46
- * @observable
47
- */
48
- label: string;
49
- /**
50
- * @inheritDoc
51
- */
52
- constructor(locale: Locale);
53
- render(): void;
54
- /**
55
- * Resets the rows and columns selection.
56
- */
57
- reset(): void;
58
- /**
59
- * @inheritDoc
60
- */
61
- focus(): void;
62
- /**
63
- * @inheritDoc
64
- */
65
- focusLast(): void;
66
- /**
67
- * Highlights grid boxes depending on rows and columns selected.
68
- */
69
- private _highlightGridBoxes;
70
- /**
71
- * Creates a new Button for the grid.
72
- *
73
- * @param locale The locale instance.
74
- * @param row Row number.
75
- * @param column Column number.
76
- * @param label The grid button label.
77
- */
78
- private _createGridButton;
79
- /**
80
- * @returns A view collection containing boxes to be placed in a table grid.
81
- */
82
- private _createGridCollection;
19
+ /**
20
+ * A collection of table size box items.
21
+ */
22
+ readonly items: ViewCollection<ButtonView>;
23
+ /**
24
+ * Listen to `keydown` events fired in this view's main element.
25
+ */
26
+ readonly keystrokes: KeystrokeHandler;
27
+ /**
28
+ * Tracks information about the DOM focus in the grid.
29
+ */
30
+ readonly focusTracker: FocusTracker;
31
+ /**
32
+ * The currently selected number of rows of the new table.
33
+ *
34
+ * @observable
35
+ */
36
+ rows: number;
37
+ /**
38
+ * The currently selected number of columns of the new table.
39
+ *
40
+ * @observable
41
+ */
42
+ columns: number;
43
+ /**
44
+ * The label text displayed under the boxes.
45
+ *
46
+ * @observable
47
+ */
48
+ label: string;
49
+ /**
50
+ * @inheritDoc
51
+ */
52
+ constructor(locale: Locale);
53
+ override render(): void;
54
+ /**
55
+ * Resets the rows and columns selection.
56
+ */
57
+ reset(): void;
58
+ /**
59
+ * @inheritDoc
60
+ */
61
+ focus(): void;
62
+ /**
63
+ * @inheritDoc
64
+ */
65
+ focusLast(): void;
66
+ /**
67
+ * Highlights grid boxes depending on rows and columns selected.
68
+ */
69
+ private _highlightGridBoxes;
70
+ /**
71
+ * Creates a new Button for the grid.
72
+ *
73
+ * @param locale The locale instance.
74
+ * @param row Row number.
75
+ * @param column Column number.
76
+ * @param label The grid button label.
77
+ */
78
+ private _createGridButton;
79
+ /**
80
+ * @returns A view collection containing boxes to be placed in a table grid.
81
+ */
82
+ private _createGridCollection;
83
83
  }
@@ -1,78 +1,78 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
- */
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
+ */
5
5
  /**
6
- * @module table/utils/common
7
- */
8
- import type { Editor } from '@ckeditor/ckeditor5-core';
9
- import type { Conversion, ModelElement, ModelItem, ModelPosition, ModelSchema, ModelWriter, ModelDocumentSelection } from '@ckeditor/ckeditor5-engine';
10
- import { type TableUtils } from '../tableutils.js';
6
+ * @module table/utils/common
7
+ */
8
+ import type { Editor } from "@ckeditor/ckeditor5-core";
9
+ import type { Conversion, ModelElement, ModelItem, ModelPosition, ModelSchema, ModelWriter, ModelDocumentSelection } from "@ckeditor/ckeditor5-engine";
10
+ import { type TableUtils } from "../tableutils.js";
11
11
  /**
12
- * A common method to update the numeric value. If a value is the default one, it will be unset.
13
- *
14
- * @internal
15
- * @param key An attribute key.
16
- * @param value The new attribute value.
17
- * @param item A model item on which the attribute will be set.
18
- * @param defaultValue The default attribute value. If a value is lower or equal, it will be unset.
19
- */
12
+ * A common method to update the numeric value. If a value is the default one, it will be unset.
13
+ *
14
+ * @internal
15
+ * @param key An attribute key.
16
+ * @param value The new attribute value.
17
+ * @param item A model item on which the attribute will be set.
18
+ * @param defaultValue The default attribute value. If a value is lower or equal, it will be unset.
19
+ */
20
20
  export declare function updateNumericAttribute(key: string, value: unknown, item: ModelItem, writer: ModelWriter, defaultValue?: unknown): void;
21
21
  /**
22
- * A common method to create an empty table cell. It creates a proper model structure as a table cell must have at least one block inside.
23
- *
24
- * @internal
25
- * @param writer The model writer.
26
- * @param insertPosition The position at which the table cell should be inserted.
27
- * @param attributes The element attributes.
28
- * @returns Created table cell.
29
- */
22
+ * A common method to create an empty table cell. It creates a proper model structure as a table cell must have at least one block inside.
23
+ *
24
+ * @internal
25
+ * @param writer The model writer.
26
+ * @param insertPosition The position at which the table cell should be inserted.
27
+ * @param attributes The element attributes.
28
+ * @returns Created table cell.
29
+ */
30
30
  export declare function createEmptyTableCell(writer: ModelWriter, insertPosition: ModelPosition, attributes?: Record<string, unknown>): ModelElement;
31
31
  /**
32
- * Checks if a table cell belongs to the heading column section.
33
- *
34
- * @internal
35
- */
32
+ * Checks if a table cell belongs to the heading column section.
33
+ *
34
+ * @internal
35
+ */
36
36
  export declare function isHeadingColumnCell(tableUtils: TableUtils, tableCell: ModelElement): boolean;
37
37
  /**
38
- * Enables conversion for an attribute for simple view-model mappings.
39
- *
40
- * @internal
41
- * @param options.defaultValue The default value for the specified `modelAttribute`.
42
- */
38
+ * Enables conversion for an attribute for simple view-model mappings.
39
+ *
40
+ * @internal
41
+ * @param options.defaultValue The default value for the specified `modelAttribute`.
42
+ */
43
43
  export declare function enableProperty(schema: ModelSchema, conversion: Conversion, options: {
44
- modelAttribute: string;
45
- styleName: string;
46
- attributeName?: string;
47
- attributeType?: 'length' | 'color';
48
- defaultValue: string;
49
- reduceBoxSides?: boolean;
44
+ modelAttribute: string;
45
+ styleName: string;
46
+ attributeName?: string;
47
+ attributeType?: "length" | "color";
48
+ defaultValue: string;
49
+ reduceBoxSides?: boolean;
50
50
  }): void;
51
51
  /**
52
- * Depending on the position of the selection we either return the table under cursor or look for the table higher in the hierarchy.
53
- *
54
- * @internal
55
- */
52
+ * Depending on the position of the selection we either return the table under cursor or look for the table higher in the hierarchy.
53
+ *
54
+ * @internal
55
+ */
56
56
  export declare function getSelectionAffectedTable(selection: ModelDocumentSelection): ModelElement;
57
57
  /**
58
- * Groups table cells by their parent table.
59
- *
60
- * @internal
61
- */
58
+ * Groups table cells by their parent table.
59
+ *
60
+ * @internal
61
+ */
62
62
  export declare function groupCellsByTable(tableCells: Array<ModelElement>): Map<ModelElement, Array<ModelElement>>;
63
63
  /**
64
- * Checks if all cells in a given row or column are header cells.
65
- *
66
- * @internal
67
- */
64
+ * Checks if all cells in a given row or column are header cells.
65
+ *
66
+ * @internal
67
+ */
68
68
  export declare function isEntireCellsLineHeader({ table, row, column }: {
69
- table: ModelElement;
70
- row?: number;
71
- column?: number;
69
+ table: ModelElement;
70
+ row?: number;
71
+ column?: number;
72
72
  }): boolean;
73
73
  /**
74
- * Checks whether the `tableCellType` attribute is enabled in the editor schema and the experimental flag is set.
75
- *
76
- * @internal
77
- */
74
+ * Checks whether the `tableCellType` attribute is enabled in the editor schema and the experimental flag is set.
75
+ *
76
+ * @internal
77
+ */
78
78
  export declare function isTableCellTypeEnabled(editor: Editor): boolean;