@ckeditor/ckeditor5-table 48.2.0-alpha.7 → 48.3.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 (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,215 +1,215 @@
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/tableproperties/ui/tablepropertiesview
7
- */
8
- import { ButtonView, FocusCycler, LabeledFieldView, ToolbarView, View, ViewCollection, type DropdownView, type InputTextView, type NormalizedColorOption, type ColorPickerConfig, type FocusableView } from '@ckeditor/ckeditor5-ui';
9
- import { FocusTracker, KeystrokeHandler, type Locale } from '@ckeditor/ckeditor5-utils';
10
- import { type ColorInputView } from '../../ui/colorinputview.js';
11
- import type { TablePropertiesOptions } from '../../tableconfig.js';
12
- import '../../../theme/formrow.css';
13
- import '../../../theme/tableform.css';
14
- import '../../../theme/tableproperties.css';
6
+ * @module table/tableproperties/ui/tablepropertiesview
7
+ */
8
+ import { ButtonView, FocusCycler, LabeledFieldView, ToolbarView, View, ViewCollection, type DropdownView, type InputTextView, type NormalizedColorOption, type ColorPickerConfig, type FocusableView } from "@ckeditor/ckeditor5-ui";
9
+ import { FocusTracker, KeystrokeHandler, type Locale } from "@ckeditor/ckeditor5-utils";
10
+ import { type ColorInputView } from "../../ui/colorinputview.js";
11
+ import type { TablePropertiesOptions } from "../../tableconfig.js";
12
+ import "../../../theme/formrow.css";
13
+ import "../../../theme/tableform.css";
14
+ import "../../../theme/tableproperties.css";
15
15
  /**
16
- * Additional configuration of the view.
17
- */
16
+ * Additional configuration of the view.
17
+ */
18
18
  export interface TablePropertiesViewOptions {
19
- /**
20
- * A configuration of the border color palette used by the
21
- * {@link module:table/tableproperties/ui/tablepropertiesview~TablePropertiesView#borderColorInput}.
22
- */
23
- borderColors: Array<NormalizedColorOption>;
24
- /**
25
- * A configuration of the background color palette used by the
26
- * {@link module:table/tableproperties/ui/tablepropertiesview~TablePropertiesView#backgroundInput}.
27
- */
28
- backgroundColors: Array<NormalizedColorOption>;
29
- /**
30
- * The default table properties.
31
- */
32
- defaultTableProperties: TablePropertiesOptions;
33
- /**
34
- * The default color picker config.
35
- */
36
- colorPickerConfig: false | ColorPickerConfig;
19
+ /**
20
+ * A configuration of the border color palette used by the
21
+ * {@link module:table/tableproperties/ui/tablepropertiesview~TablePropertiesView#borderColorInput}.
22
+ */
23
+ borderColors: Array<NormalizedColorOption>;
24
+ /**
25
+ * A configuration of the background color palette used by the
26
+ * {@link module:table/tableproperties/ui/tablepropertiesview~TablePropertiesView#backgroundInput}.
27
+ */
28
+ backgroundColors: Array<NormalizedColorOption>;
29
+ /**
30
+ * The default table properties.
31
+ */
32
+ defaultTableProperties: TablePropertiesOptions;
33
+ /**
34
+ * The default color picker config.
35
+ */
36
+ colorPickerConfig: false | ColorPickerConfig;
37
37
  }
38
38
  /**
39
- * The class representing a table properties form, allowing users to customize
40
- * certain style aspects of a table, for instance, border, background color, alignment, etc..
41
- */
39
+ * The class representing a table properties form, allowing users to customize
40
+ * certain style aspects of a table, for instance, border, background color, alignment, etc..
41
+ */
42
42
  export declare class TablePropertiesView extends View {
43
- /**
44
- * The value of the border style.
45
- *
46
- * @observable
47
- * @default ''
48
- */
49
- borderStyle: string;
50
- /**
51
- * The value of the border width style.
52
- *
53
- * @observable
54
- * @default ''
55
- */
56
- borderWidth: string;
57
- /**
58
- * The value of the border color style.
59
- *
60
- * @observable
61
- * @default ''
62
- */
63
- borderColor: string;
64
- /**
65
- * The value of the background color style.
66
- *
67
- * @observable
68
- * @default ''
69
- */
70
- backgroundColor: string;
71
- /**
72
- * The value of the table width style.
73
- *
74
- * @observable
75
- * @default ''
76
- */
77
- width: string;
78
- /**
79
- * The value of the table height style.
80
- *
81
- * @observable
82
- * @default ''
83
- */
84
- height: string;
85
- /**
86
- * The value of the table alignment style.
87
- *
88
- * @observable
89
- * @default ''
90
- */
91
- alignment: string;
92
- /**
93
- * Options passed to the view. See {@link #constructor} to learn more.
94
- */
95
- readonly options: TablePropertiesViewOptions;
96
- /**
97
- * Tracks information about the DOM focus in the form.
98
- */
99
- readonly focusTracker: FocusTracker;
100
- /**
101
- * An instance of the {@link module:utils/keystrokehandler~KeystrokeHandler}.
102
- */
103
- readonly keystrokes: KeystrokeHandler;
104
- /**
105
- * A collection of child views in the form.
106
- */
107
- readonly children: ViewCollection;
108
- /**
109
- * A dropdown that allows selecting the style of the table border.
110
- */
111
- readonly borderStyleDropdown: LabeledFieldView<DropdownView>;
112
- /**
113
- * An input that allows specifying the width of the table border.
114
- */
115
- readonly borderWidthInput: LabeledFieldView<InputTextView>;
116
- /**
117
- * An input that allows specifying the color of the table border.
118
- */
119
- readonly borderColorInput: LabeledFieldView<ColorInputView>;
120
- /**
121
- * An input that allows specifying the table background color.
122
- */
123
- readonly backgroundInput: LabeledFieldView<ColorInputView>;
124
- /**
125
- * An input that allows specifying the table width.
126
- */
127
- readonly widthInput: LabeledFieldView<InputTextView>;
128
- /**
129
- * An input that allows specifying the table height.
130
- */
131
- readonly heightInput: LabeledFieldView<InputTextView>;
132
- /**
133
- * A toolbar with buttons that allow changing the alignment of an entire table.
134
- */
135
- readonly alignmentToolbar: ToolbarView;
136
- /**
137
- * The "Save" button view.
138
- */
139
- saveButtonView: ButtonView;
140
- /**
141
- * The "Cancel" button view.
142
- */
143
- cancelButtonView: ButtonView;
144
- /**
145
- * The Back button view displayed in the header.
146
- */
147
- backButtonView: ButtonView;
148
- /**
149
- * A collection of views that can be focused in the form.
150
- */
151
- protected readonly _focusables: ViewCollection<FocusableView>;
152
- /**
153
- * Helps cycling over {@link #_focusables} in the form.
154
- */
155
- protected readonly _focusCycler: FocusCycler;
156
- /**
157
- * @param locale The {@link module:core/editor/editor~Editor#locale} instance.
158
- * @param options Additional configuration of the view.
159
- */
160
- constructor(locale: Locale, options: TablePropertiesViewOptions);
161
- /**
162
- * @inheritDoc
163
- */
164
- render(): void;
165
- /**
166
- * @inheritDoc
167
- */
168
- destroy(): void;
169
- /**
170
- * Focuses the fist focusable field in the form.
171
- */
172
- focus(): void;
173
- /**
174
- * Creates the following form fields:
175
- *
176
- * * {@link #borderStyleDropdown},
177
- * * {@link #borderWidthInput},
178
- * * {@link #borderColorInput}.
179
- */
180
- private _createBorderFields;
181
- /**
182
- * Creates the following form fields:
183
- *
184
- * * {@link #backgroundInput}.
185
- */
186
- private _createBackgroundFields;
187
- /**
188
- * Creates the following form fields:
189
- *
190
- * * {@link #widthInput},
191
- * * {@link #heightInput}.
192
- */
193
- private _createDimensionFields;
194
- /**
195
- * Creates the following form fields:
196
- *
197
- * * {@link #alignmentToolbar}.
198
- */
199
- private _createAlignmentFields;
200
- /**
201
- * Creates the following form controls:
202
- *
203
- * * {@link #saveButtonView},
204
- * * {@link #cancelButtonView}.
205
- */
206
- private _createActionButtons;
207
- /**
208
- * Creates a back button view that cancels the form.
209
- */
210
- private _createBackButton;
211
- /**
212
- * Provides localized labels for {@link #alignmentToolbar} buttons.
213
- */
214
- private get _alignmentLabels();
43
+ /**
44
+ * The value of the border style.
45
+ *
46
+ * @observable
47
+ * @default ''
48
+ */
49
+ borderStyle: string;
50
+ /**
51
+ * The value of the border width style.
52
+ *
53
+ * @observable
54
+ * @default ''
55
+ */
56
+ borderWidth: string;
57
+ /**
58
+ * The value of the border color style.
59
+ *
60
+ * @observable
61
+ * @default ''
62
+ */
63
+ borderColor: string;
64
+ /**
65
+ * The value of the background color style.
66
+ *
67
+ * @observable
68
+ * @default ''
69
+ */
70
+ backgroundColor: string;
71
+ /**
72
+ * The value of the table width style.
73
+ *
74
+ * @observable
75
+ * @default ''
76
+ */
77
+ width: string;
78
+ /**
79
+ * The value of the table height style.
80
+ *
81
+ * @observable
82
+ * @default ''
83
+ */
84
+ height: string;
85
+ /**
86
+ * The value of the table alignment style.
87
+ *
88
+ * @observable
89
+ * @default ''
90
+ */
91
+ alignment: string;
92
+ /**
93
+ * Options passed to the view. See {@link #constructor} to learn more.
94
+ */
95
+ readonly options: TablePropertiesViewOptions;
96
+ /**
97
+ * Tracks information about the DOM focus in the form.
98
+ */
99
+ readonly focusTracker: FocusTracker;
100
+ /**
101
+ * An instance of the {@link module:utils/keystrokehandler~KeystrokeHandler}.
102
+ */
103
+ readonly keystrokes: KeystrokeHandler;
104
+ /**
105
+ * A collection of child views in the form.
106
+ */
107
+ readonly children: ViewCollection;
108
+ /**
109
+ * A dropdown that allows selecting the style of the table border.
110
+ */
111
+ readonly borderStyleDropdown: LabeledFieldView<DropdownView>;
112
+ /**
113
+ * An input that allows specifying the width of the table border.
114
+ */
115
+ readonly borderWidthInput: LabeledFieldView<InputTextView>;
116
+ /**
117
+ * An input that allows specifying the color of the table border.
118
+ */
119
+ readonly borderColorInput: LabeledFieldView<ColorInputView>;
120
+ /**
121
+ * An input that allows specifying the table background color.
122
+ */
123
+ readonly backgroundInput: LabeledFieldView<ColorInputView>;
124
+ /**
125
+ * An input that allows specifying the table width.
126
+ */
127
+ readonly widthInput: LabeledFieldView<InputTextView>;
128
+ /**
129
+ * An input that allows specifying the table height.
130
+ */
131
+ readonly heightInput: LabeledFieldView<InputTextView>;
132
+ /**
133
+ * A toolbar with buttons that allow changing the alignment of an entire table.
134
+ */
135
+ readonly alignmentToolbar: ToolbarView;
136
+ /**
137
+ * The "Save" button view.
138
+ */
139
+ saveButtonView: ButtonView;
140
+ /**
141
+ * The "Cancel" button view.
142
+ */
143
+ cancelButtonView: ButtonView;
144
+ /**
145
+ * The Back button view displayed in the header.
146
+ */
147
+ backButtonView: ButtonView;
148
+ /**
149
+ * A collection of views that can be focused in the form.
150
+ */
151
+ protected readonly _focusables: ViewCollection<FocusableView>;
152
+ /**
153
+ * Helps cycling over {@link #_focusables} in the form.
154
+ */
155
+ protected readonly _focusCycler: FocusCycler;
156
+ /**
157
+ * @param locale The {@link module:core/editor/editor~Editor#locale} instance.
158
+ * @param options Additional configuration of the view.
159
+ */
160
+ constructor(locale: Locale, options: TablePropertiesViewOptions);
161
+ /**
162
+ * @inheritDoc
163
+ */
164
+ override render(): void;
165
+ /**
166
+ * @inheritDoc
167
+ */
168
+ override destroy(): void;
169
+ /**
170
+ * Focuses the fist focusable field in the form.
171
+ */
172
+ focus(): void;
173
+ /**
174
+ * Creates the following form fields:
175
+ *
176
+ * * {@link #borderStyleDropdown},
177
+ * * {@link #borderWidthInput},
178
+ * * {@link #borderColorInput}.
179
+ */
180
+ private _createBorderFields;
181
+ /**
182
+ * Creates the following form fields:
183
+ *
184
+ * * {@link #backgroundInput}.
185
+ */
186
+ private _createBackgroundFields;
187
+ /**
188
+ * Creates the following form fields:
189
+ *
190
+ * * {@link #widthInput},
191
+ * * {@link #heightInput}.
192
+ */
193
+ private _createDimensionFields;
194
+ /**
195
+ * Creates the following form fields:
196
+ *
197
+ * * {@link #alignmentToolbar}.
198
+ */
199
+ private _createAlignmentFields;
200
+ /**
201
+ * Creates the following form controls:
202
+ *
203
+ * * {@link #saveButtonView},
204
+ * * {@link #cancelButtonView}.
205
+ */
206
+ private _createActionButtons;
207
+ /**
208
+ * Creates a back button view that cancels the form.
209
+ */
210
+ private _createBackButton;
211
+ /**
212
+ * Provides localized labels for {@link #alignmentToolbar} buttons.
213
+ */
214
+ private get _alignmentLabels();
215
215
  }
@@ -1,34 +1,34 @@
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/tableproperties
7
- */
8
- import { Plugin } from '@ckeditor/ckeditor5-core';
9
- import { TablePropertiesEditing } from './tableproperties/tablepropertiesediting.js';
10
- import { TablePropertiesUI } from './tableproperties/tablepropertiesui.js';
6
+ * @module table/tableproperties
7
+ */
8
+ import { Plugin, type PluginDependenciesOf } from "@ckeditor/ckeditor5-core";
9
+ import { TablePropertiesEditing } from "./tableproperties/tablepropertiesediting.js";
10
+ import { TablePropertiesUI } from "./tableproperties/tablepropertiesui.js";
11
11
  /**
12
- * The table properties feature. Enables support for setting properties of tables (size, border, background, etc.).
13
- *
14
- * Read more in the {@glink features/tables/tables-styling Table and cell styling tools} section.
15
- * See also the {@link module:table/tablecellproperties~TableCellProperties} plugin.
16
- *
17
- * This is a "glue" plugin that loads the
18
- * {@link module:table/tableproperties/tablepropertiesediting~TablePropertiesEditing table properties editing feature} and
19
- * the {@link module:table/tableproperties/tablepropertiesui~TablePropertiesUI table properties UI feature}.
20
- */
12
+ * The table properties feature. Enables support for setting properties of tables (size, border, background, etc.).
13
+ *
14
+ * Read more in the {@glink features/tables/tables-styling Table and cell styling tools} section.
15
+ * See also the {@link module:table/tablecellproperties~TableCellProperties} plugin.
16
+ *
17
+ * This is a "glue" plugin that loads the
18
+ * {@link module:table/tableproperties/tablepropertiesediting~TablePropertiesEditing table properties editing feature} and
19
+ * the {@link module:table/tableproperties/tablepropertiesui~TablePropertiesUI table properties UI feature}.
20
+ */
21
21
  export declare class TableProperties extends Plugin {
22
- /**
23
- * @inheritDoc
24
- */
25
- static get pluginName(): "TableProperties";
26
- /**
27
- * @inheritDoc
28
- */
29
- static get isOfficialPlugin(): true;
30
- /**
31
- * @inheritDoc
32
- */
33
- static get requires(): readonly [typeof TablePropertiesEditing, typeof TablePropertiesUI];
22
+ /**
23
+ * @inheritDoc
24
+ */
25
+ static get pluginName(): "TableProperties";
26
+ /**
27
+ * @inheritDoc
28
+ */
29
+ static override get isOfficialPlugin(): true;
30
+ /**
31
+ * @inheritDoc
32
+ */
33
+ static get requires(): PluginDependenciesOf<[TablePropertiesEditing, TablePropertiesUI]>;
34
34
  }