@ckeditor/ckeditor5-table 0.0.0-nightly-next-20251230.0 → 0.0.0-nightly-20251231.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 (118) hide show
  1. package/build/table.js +2 -2
  2. package/build/translations/af.js +1 -1
  3. package/build/translations/ar.js +1 -1
  4. package/build/translations/ast.js +1 -1
  5. package/build/translations/az.js +1 -1
  6. package/build/translations/be.js +1 -1
  7. package/build/translations/bg.js +1 -1
  8. package/build/translations/bn.js +1 -1
  9. package/build/translations/bs.js +1 -1
  10. package/build/translations/ca.js +1 -1
  11. package/build/translations/cs.js +1 -1
  12. package/build/translations/da.js +1 -1
  13. package/build/translations/de-ch.js +1 -1
  14. package/build/translations/de.js +1 -1
  15. package/build/translations/el.js +1 -1
  16. package/build/translations/en-au.js +1 -1
  17. package/build/translations/en-gb.js +1 -1
  18. package/build/translations/eo.js +1 -1
  19. package/build/translations/es-co.js +1 -1
  20. package/build/translations/es.js +1 -1
  21. package/build/translations/et.js +1 -1
  22. package/build/translations/eu.js +1 -1
  23. package/build/translations/fa.js +1 -1
  24. package/build/translations/fi.js +1 -1
  25. package/build/translations/fr.js +1 -1
  26. package/build/translations/gl.js +1 -1
  27. package/build/translations/gu.js +1 -1
  28. package/build/translations/he.js +1 -1
  29. package/build/translations/hi.js +1 -1
  30. package/build/translations/hr.js +1 -1
  31. package/build/translations/hu.js +1 -1
  32. package/build/translations/hy.js +1 -1
  33. package/build/translations/id.js +1 -1
  34. package/build/translations/it.js +1 -1
  35. package/build/translations/ja.js +1 -1
  36. package/build/translations/jv.js +1 -1
  37. package/build/translations/kk.js +1 -1
  38. package/build/translations/km.js +1 -1
  39. package/build/translations/kn.js +1 -1
  40. package/build/translations/ko.js +1 -1
  41. package/build/translations/ku.js +1 -1
  42. package/build/translations/lt.js +1 -1
  43. package/build/translations/lv.js +1 -1
  44. package/build/translations/ms.js +1 -1
  45. package/build/translations/nb.js +1 -1
  46. package/build/translations/ne.js +1 -1
  47. package/build/translations/nl.js +1 -1
  48. package/build/translations/no.js +1 -1
  49. package/build/translations/oc.js +1 -1
  50. package/build/translations/pl.js +1 -1
  51. package/build/translations/pt-br.js +1 -1
  52. package/build/translations/pt.js +1 -1
  53. package/build/translations/ro.js +1 -1
  54. package/build/translations/ru.js +1 -1
  55. package/build/translations/si.js +1 -1
  56. package/build/translations/sk.js +1 -1
  57. package/build/translations/sl.js +1 -1
  58. package/build/translations/sq.js +1 -1
  59. package/build/translations/sr-latn.js +1 -1
  60. package/build/translations/sr.js +1 -1
  61. package/build/translations/sv.js +1 -1
  62. package/build/translations/th.js +1 -1
  63. package/build/translations/ti.js +1 -1
  64. package/build/translations/tk.js +1 -1
  65. package/build/translations/tr.js +1 -1
  66. package/build/translations/tt.js +1 -1
  67. package/build/translations/ug.js +1 -1
  68. package/build/translations/uk.js +1 -1
  69. package/build/translations/ur.js +1 -1
  70. package/build/translations/uz.js +1 -1
  71. package/build/translations/vi.js +1 -1
  72. package/build/translations/zh-cn.js +1 -1
  73. package/build/translations/zh.js +1 -1
  74. package/ckeditor5-metadata.json +2 -11
  75. package/dist/index-content.css +30 -30
  76. package/dist/index-editor.css +170 -104
  77. package/dist/index.css +237 -147
  78. package/dist/index.css.map +1 -1
  79. package/dist/index.js +2433 -448
  80. package/dist/index.js.map +1 -1
  81. package/lang/contexts.json +4 -2
  82. package/package.json +9 -9
  83. package/src/augmentation.d.ts +15 -0
  84. package/src/converters/downcast.js +13 -6
  85. package/src/index.d.ts +5 -2
  86. package/src/index.js +5 -1
  87. package/src/tablecellproperties/commands/tablecelltypecommand.d.ts +4 -0
  88. package/src/tablecellproperties/commands/tablecelltypecommand.js +1 -2
  89. package/src/tablecellproperties/tablecellpropertiesediting.js +8 -48
  90. package/src/tablecellproperties/tablecellpropertiesui.js +11 -33
  91. package/src/tablecellproperties/tablecellpropertiesuiexperimental.d.ts +128 -0
  92. package/src/tablecellproperties/tablecellpropertiesuiexperimental.js +408 -0
  93. package/src/tablecellproperties/ui/tablecellpropertiesview.d.ts +0 -36
  94. package/src/tablecellproperties/ui/tablecellpropertiesview.js +23 -143
  95. package/src/tablecellproperties/ui/tablecellpropertiesviewexperimental.d.ts +266 -0
  96. package/src/tablecellproperties/ui/tablecellpropertiesviewexperimental.js +744 -0
  97. package/src/tableconfig.d.ts +4 -24
  98. package/src/tablelayout/tablelayoutui.js +8 -2
  99. package/src/tableproperties/tablepropertiesediting.js +147 -14
  100. package/src/tableproperties/tablepropertiesuiexperimental.d.ts +136 -0
  101. package/src/tableproperties/tablepropertiesuiexperimental.js +375 -0
  102. package/src/tableproperties/ui/tablepropertiesview.d.ts +0 -8
  103. package/src/tableproperties/ui/tablepropertiesview.js +37 -59
  104. package/src/tableproperties/ui/tablepropertiesviewexperimental.d.ts +216 -0
  105. package/src/tableproperties/ui/tablepropertiesviewexperimental.js +544 -0
  106. package/src/tableutils.js +23 -58
  107. package/src/utils/common.js +4 -4
  108. package/src/utils/ui/table-propertiesexperimental.d.ts +215 -0
  109. package/src/utils/ui/table-propertiesexperimental.js +391 -0
  110. package/theme/formrow-experimental.css +15 -0
  111. package/theme/formrow.css +0 -2
  112. package/theme/tablecellproperties-experimental.css +4 -0
  113. package/theme/tableform-experimental.css +61 -0
  114. package/theme/tableform.css +5 -1
  115. package/theme/tableproperties-experimental.css +78 -0
  116. package/theme/tableproperties.css +0 -60
  117. package/src/tablecellproperties/tablecellpropertiesutils.d.ts +0 -18
  118. package/src/tablecellproperties/tablecellpropertiesutils.js +0 -15
@@ -0,0 +1,408 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2025, 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
+ /**
6
+ * @module table/tablecellproperties/tablecellpropertiesuiexperimental
7
+ */
8
+ /* istanbul ignore file -- @preserve */
9
+ import { Plugin } from 'ckeditor5/src/core.js';
10
+ import { IconTableCellProperties } from 'ckeditor5/src/icons.js';
11
+ import { ButtonView, clickOutsideHandler, ContextualBalloon, getLocalizedColorOptions, normalizeColorOptions } from 'ckeditor5/src/ui.js';
12
+ import { TableCellPropertiesViewExperimental } from './ui/tablecellpropertiesviewexperimental.js';
13
+ import { colorFieldValidator, getLocalizedColorErrorText, getLocalizedLengthErrorText, defaultColors, lengthFieldValidator, lineWidthFieldValidator } from '../utils/ui/table-properties.js';
14
+ import { debounce } from 'es-toolkit/compat';
15
+ import { getSelectionAffectedTableWidget, getTableWidgetAncestor } from '../utils/ui/widget.js';
16
+ import { getBalloonCellPositionData, repositionContextualBalloon } from '../utils/ui/contextualballoon.js';
17
+ import { getNormalizedDefaultCellProperties, getNormalizedDefaultProperties } from '../utils/table-properties.js';
18
+ const ERROR_TEXT_TIMEOUT = 500;
19
+ // Map of view properties and related commands.
20
+ const propertyToCommandMap = {
21
+ borderStyle: 'tableCellBorderStyle',
22
+ borderColor: 'tableCellBorderColor',
23
+ borderWidth: 'tableCellBorderWidth',
24
+ height: 'tableCellHeight',
25
+ width: 'tableCellWidth',
26
+ padding: 'tableCellPadding',
27
+ backgroundColor: 'tableCellBackgroundColor',
28
+ horizontalAlignment: 'tableCellHorizontalAlignment',
29
+ verticalAlignment: 'tableCellVerticalAlignment',
30
+ cellType: 'tableCellType'
31
+ };
32
+ /**
33
+ * The table cell properties UI plugin. It introduces the `'tableCellProperties'` button
34
+ * that opens a form allowing to specify the visual styling of a table cell.
35
+ *
36
+ * It uses the {@link module:ui/panel/balloon/contextualballoon~ContextualBalloon contextual balloon plugin}.
37
+ */
38
+ export class TableCellPropertiesUIExperimental extends Plugin {
39
+ /**
40
+ * The default table cell properties.
41
+ */
42
+ _defaultContentTableCellProperties;
43
+ /**
44
+ * The default layout table cell properties.
45
+ */
46
+ _defaultLayoutTableCellProperties;
47
+ /**
48
+ * The contextual balloon plugin instance.
49
+ */
50
+ _balloon;
51
+ /**
52
+ * The cell properties form view displayed inside the balloon.
53
+ */
54
+ view;
55
+ /**
56
+ * The cell properties form view displayed inside the balloon (content table).
57
+ */
58
+ _viewWithContentTableDefaults;
59
+ /**
60
+ * The cell properties form view displayed inside the balloon (layout table).
61
+ */
62
+ _viewWithLayoutTableDefaults;
63
+ /**
64
+ * The batch used to undo all changes made by the form (which are live, as the user types)
65
+ * when "Cancel" was pressed. Each time the view is shown, a new batch is created.
66
+ */
67
+ _undoStepBatch;
68
+ /**
69
+ * Flag used to indicate whether view is ready to execute update commands
70
+ * (it finished loading initial data).
71
+ */
72
+ _isReady;
73
+ /**
74
+ * @inheritDoc
75
+ */
76
+ static get requires() {
77
+ return [ContextualBalloon];
78
+ }
79
+ /**
80
+ * @inheritDoc
81
+ */
82
+ static get pluginName() {
83
+ return 'TableCellPropertiesUIExperimental';
84
+ }
85
+ /**
86
+ * @inheritDoc
87
+ */
88
+ static get isOfficialPlugin() {
89
+ return true;
90
+ }
91
+ /**
92
+ * @inheritDoc
93
+ */
94
+ constructor(editor) {
95
+ super(editor);
96
+ editor.config.define('table.tableCellProperties', {
97
+ borderColors: defaultColors,
98
+ backgroundColors: defaultColors
99
+ });
100
+ }
101
+ /**
102
+ * @inheritDoc
103
+ */
104
+ init() {
105
+ const editor = this.editor;
106
+ const t = editor.t;
107
+ this._defaultContentTableCellProperties = getNormalizedDefaultCellProperties(editor.config.get('table.tableCellProperties.defaultProperties'), {
108
+ includeVerticalAlignmentProperty: true,
109
+ includeHorizontalAlignmentProperty: true,
110
+ includePaddingProperty: true,
111
+ isRightToLeftContent: editor.locale.contentLanguageDirection === 'rtl'
112
+ });
113
+ this._defaultLayoutTableCellProperties = getNormalizedDefaultProperties(undefined, {
114
+ includeVerticalAlignmentProperty: true,
115
+ includeHorizontalAlignmentProperty: true,
116
+ isRightToLeftContent: editor.locale.contentLanguageDirection === 'rtl'
117
+ });
118
+ this._balloon = editor.plugins.get(ContextualBalloon);
119
+ this.view = null;
120
+ this._isReady = false;
121
+ editor.ui.componentFactory.add('tableCellProperties', locale => {
122
+ const view = new ButtonView(locale);
123
+ view.set({
124
+ label: t('Cell properties'),
125
+ icon: IconTableCellProperties,
126
+ tooltip: true
127
+ });
128
+ this.listenTo(view, 'execute', () => this._showView());
129
+ const commands = (Object
130
+ .values(propertyToCommandMap)
131
+ .map(commandName => editor.commands.get(commandName))
132
+ .filter(val => !!val));
133
+ view.bind('isEnabled').toMany(commands, 'isEnabled', (...areEnabled) => (areEnabled.some(isCommandEnabled => isCommandEnabled)));
134
+ return view;
135
+ });
136
+ }
137
+ /**
138
+ * @inheritDoc
139
+ */
140
+ destroy() {
141
+ super.destroy();
142
+ // Destroy created UI components as they are not automatically destroyed.
143
+ // See https://github.com/ckeditor/ckeditor5/issues/1341.
144
+ if (this.view) {
145
+ this.view.destroy();
146
+ }
147
+ }
148
+ /**
149
+ * Creates the {@link module:table/tablecellproperties/ui/tablecellpropertiesview~TableCellPropertiesView} instance.
150
+ *
151
+ * @returns The cell properties form view instance.
152
+ */
153
+ _createPropertiesView(defaultTableCellProperties) {
154
+ const editor = this.editor;
155
+ const config = editor.config.get('table.tableCellProperties');
156
+ const borderColorsConfig = normalizeColorOptions(config.borderColors);
157
+ const localizedBorderColors = getLocalizedColorOptions(editor.locale, borderColorsConfig);
158
+ const backgroundColorsConfig = normalizeColorOptions(config.backgroundColors);
159
+ const localizedBackgroundColors = getLocalizedColorOptions(editor.locale, backgroundColorsConfig);
160
+ const hasColorPicker = config.colorPicker !== false;
161
+ const isTableCellTypeSupported = !!editor.config.get('experimentalFlags.tableCellTypeSupport');
162
+ const view = new TableCellPropertiesViewExperimental(editor.locale, {
163
+ borderColors: localizedBorderColors,
164
+ backgroundColors: localizedBackgroundColors,
165
+ defaultTableCellProperties,
166
+ colorPickerConfig: hasColorPicker ? (config.colorPicker || {}) : false,
167
+ isTableCellTypeSupported
168
+ });
169
+ const t = editor.t;
170
+ // Render the view so its #element is available for the clickOutsideHandler.
171
+ view.render();
172
+ this.listenTo(view, 'submit', () => {
173
+ this._hideView();
174
+ });
175
+ this.listenTo(view, 'cancel', () => {
176
+ // https://github.com/ckeditor/ckeditor5/issues/6180
177
+ if (this._undoStepBatch.operations.length) {
178
+ editor.execute('undo', this._undoStepBatch);
179
+ }
180
+ this._hideView();
181
+ });
182
+ // Close the balloon on Esc key press.
183
+ view.keystrokes.set('Esc', (data, cancel) => {
184
+ this._hideView();
185
+ cancel();
186
+ });
187
+ // Close on click outside of balloon panel element.
188
+ clickOutsideHandler({
189
+ emitter: view,
190
+ activator: () => this._isViewInBalloon,
191
+ contextElements: [this._balloon.view.element],
192
+ callback: () => this._hideView()
193
+ });
194
+ const colorErrorText = getLocalizedColorErrorText(t);
195
+ const lengthErrorText = getLocalizedLengthErrorText(t);
196
+ // Create the "UI -> editor data" binding.
197
+ // These listeners update the editor data (via table commands) when any observable
198
+ // property of the view has changed. They also validate the value and display errors in the UI
199
+ // when necessary. This makes the view live, which means the changes are
200
+ // visible in the editing as soon as the user types or changes fields' values.
201
+ view.on('change:borderStyle', this._getPropertyChangeCallback('tableCellBorderStyle'));
202
+ view.on('change:borderColor', this._getValidatedPropertyChangeCallback({
203
+ viewField: view.borderColorInput,
204
+ commandName: 'tableCellBorderColor',
205
+ errorText: colorErrorText,
206
+ validator: colorFieldValidator
207
+ }));
208
+ view.on('change:borderWidth', this._getValidatedPropertyChangeCallback({
209
+ viewField: view.borderWidthInput,
210
+ commandName: 'tableCellBorderWidth',
211
+ errorText: lengthErrorText,
212
+ validator: lineWidthFieldValidator
213
+ }));
214
+ view.on('change:padding', this._getValidatedPropertyChangeCallback({
215
+ viewField: view.paddingInput,
216
+ commandName: 'tableCellPadding',
217
+ errorText: lengthErrorText,
218
+ validator: lengthFieldValidator
219
+ }));
220
+ view.on('change:width', this._getValidatedPropertyChangeCallback({
221
+ viewField: view.widthInput,
222
+ commandName: 'tableCellWidth',
223
+ errorText: lengthErrorText,
224
+ validator: lengthFieldValidator
225
+ }));
226
+ view.on('change:height', this._getValidatedPropertyChangeCallback({
227
+ viewField: view.heightInput,
228
+ commandName: 'tableCellHeight',
229
+ errorText: lengthErrorText,
230
+ validator: lengthFieldValidator
231
+ }));
232
+ view.on('change:backgroundColor', this._getValidatedPropertyChangeCallback({
233
+ viewField: view.backgroundInput,
234
+ commandName: 'tableCellBackgroundColor',
235
+ errorText: colorErrorText,
236
+ validator: colorFieldValidator
237
+ }));
238
+ view.on('change:horizontalAlignment', this._getPropertyChangeCallback('tableCellHorizontalAlignment'));
239
+ view.on('change:verticalAlignment', this._getPropertyChangeCallback('tableCellVerticalAlignment'));
240
+ const cellTypeCommand = editor.commands.get('tableCellType');
241
+ if (cellTypeCommand) {
242
+ view.cellTypeDropdown.bind('isEnabled').to(cellTypeCommand, 'isEnabled');
243
+ view.on('change:cellType', this._getPropertyChangeCallback('tableCellType'));
244
+ }
245
+ return view;
246
+ }
247
+ /**
248
+ * In this method the "editor data -> UI" binding is happening.
249
+ *
250
+ * When executed, this method obtains selected cell property values from various table commands
251
+ * and passes them to the {@link #view}.
252
+ *
253
+ * This way, the UI stays up–to–date with the editor data.
254
+ */
255
+ _fillViewFormFromCommandValues() {
256
+ const commands = this.editor.commands;
257
+ const borderStyleCommand = commands.get('tableCellBorderStyle');
258
+ Object
259
+ .entries(propertyToCommandMap)
260
+ .flatMap(([property, commandName]) => {
261
+ const command = commands.get(commandName);
262
+ if (!command) {
263
+ return [];
264
+ }
265
+ const propertyKey = property;
266
+ let defaultValue;
267
+ if (propertyKey === 'cellType') {
268
+ defaultValue = '';
269
+ }
270
+ else {
271
+ defaultValue = this.view === this._viewWithContentTableDefaults ?
272
+ this._defaultContentTableCellProperties[propertyKey] || '' :
273
+ this._defaultLayoutTableCellProperties[propertyKey] || '';
274
+ }
275
+ const entry = [
276
+ property,
277
+ command.value || defaultValue
278
+ ];
279
+ return [entry];
280
+ })
281
+ .forEach(([property, value]) => {
282
+ // Do not set the `border-color` and `border-width` fields if `border-style:none`.
283
+ if ((property === 'borderColor' || property === 'borderWidth') && borderStyleCommand.value === 'none') {
284
+ return;
285
+ }
286
+ this.view.set(property, value);
287
+ });
288
+ this._isReady = true;
289
+ }
290
+ /**
291
+ * Shows the {@link #view} in the {@link #_balloon}.
292
+ *
293
+ * **Note**: Each time a view is shown, a new {@link #_undoStepBatch} is created. It contains
294
+ * all changes made to the document when the view is visible, allowing a single undo step
295
+ * for all of them.
296
+ */
297
+ _showView() {
298
+ const editor = this.editor;
299
+ const viewTable = getSelectionAffectedTableWidget(editor.editing.view.document.selection);
300
+ const modelTable = viewTable && editor.editing.mapper.toModelElement(viewTable);
301
+ const useDefaults = !modelTable || modelTable.getAttribute('tableType') !== 'layout';
302
+ if (useDefaults && !this._viewWithContentTableDefaults) {
303
+ this._viewWithContentTableDefaults = this._createPropertiesView(this._defaultContentTableCellProperties);
304
+ }
305
+ else if (!useDefaults && !this._viewWithLayoutTableDefaults) {
306
+ this._viewWithLayoutTableDefaults = this._createPropertiesView(this._defaultLayoutTableCellProperties);
307
+ }
308
+ this.view = useDefaults ? this._viewWithContentTableDefaults : this._viewWithLayoutTableDefaults;
309
+ this.listenTo(editor.ui, 'update', () => {
310
+ this._updateView();
311
+ });
312
+ // Update the view with the model values.
313
+ this._fillViewFormFromCommandValues();
314
+ this._balloon.add({
315
+ view: this.view,
316
+ position: getBalloonCellPositionData(editor)
317
+ });
318
+ // Create a new batch. Clicking "Cancel" will undo this batch.
319
+ this._undoStepBatch = editor.model.createBatch();
320
+ // Basic a11y.
321
+ this.view.focus();
322
+ }
323
+ /**
324
+ * Removes the {@link #view} from the {@link #_balloon}.
325
+ */
326
+ _hideView() {
327
+ const editor = this.editor;
328
+ this.stopListening(editor.ui, 'update');
329
+ this._isReady = false;
330
+ // Blur any input element before removing it from DOM to prevent issues in some browsers.
331
+ // See https://github.com/ckeditor/ckeditor5/issues/1501.
332
+ this.view.saveButtonView.focus();
333
+ this._balloon.remove(this.view);
334
+ // Make sure the focus is not lost in the process by putting it directly
335
+ // into the editing view.
336
+ this.editor.editing.view.focus();
337
+ }
338
+ /**
339
+ * Repositions the {@link #_balloon} or hides the {@link #view} if a table cell is no longer selected.
340
+ */
341
+ _updateView() {
342
+ const editor = this.editor;
343
+ const viewDocument = editor.editing.view.document;
344
+ if (!getTableWidgetAncestor(viewDocument.selection)) {
345
+ this._hideView();
346
+ }
347
+ else if (this._isViewVisible) {
348
+ repositionContextualBalloon(editor, 'cell');
349
+ }
350
+ }
351
+ /**
352
+ * Returns `true` when the {@link #view} is visible in the {@link #_balloon}.
353
+ */
354
+ get _isViewVisible() {
355
+ return !!this.view && this._balloon.visibleView === this.view;
356
+ }
357
+ /**
358
+ * Returns `true` when the {@link #view} is in the {@link #_balloon}.
359
+ */
360
+ get _isViewInBalloon() {
361
+ return !!this.view && this._balloon.hasView(this.view);
362
+ }
363
+ /**
364
+ * Creates a callback that when executed upon the {@link #view view's} property change
365
+ * executes a related editor command with the new property value.
366
+ *
367
+ * @param commandName The default value of the command.
368
+ */
369
+ _getPropertyChangeCallback(commandName) {
370
+ return (evt, propertyName, newValue) => {
371
+ if (!this._isReady) {
372
+ return;
373
+ }
374
+ this.editor.execute(commandName, {
375
+ value: newValue,
376
+ batch: this._undoStepBatch
377
+ });
378
+ };
379
+ }
380
+ /**
381
+ * Creates a callback that when executed upon the {@link #view view's} property change:
382
+ * * Executes a related editor command with the new property value if the value is valid,
383
+ * * Or sets the error text next to the invalid field, if the value did not pass the validation.
384
+ */
385
+ _getValidatedPropertyChangeCallback(options) {
386
+ const { commandName, viewField, validator, errorText } = options;
387
+ const setErrorTextDebounced = debounce(() => {
388
+ viewField.errorText = errorText;
389
+ }, ERROR_TEXT_TIMEOUT);
390
+ return (evt, propertyName, newValue) => {
391
+ setErrorTextDebounced.cancel();
392
+ // Do not execute the command on initial call (opening the table properties view).
393
+ if (!this._isReady) {
394
+ return;
395
+ }
396
+ if (validator(newValue)) {
397
+ this.editor.execute(commandName, {
398
+ value: newValue,
399
+ batch: this._undoStepBatch
400
+ });
401
+ viewField.errorText = null;
402
+ }
403
+ else {
404
+ setErrorTextDebounced();
405
+ }
406
+ };
407
+ }
408
+ }
@@ -18,7 +18,6 @@ export interface TableCellPropertiesViewOptions {
18
18
  backgroundColors: Array<NormalizedColorOption>;
19
19
  defaultTableCellProperties: TableCellPropertiesOptions;
20
20
  colorPickerConfig: false | ColorPickerConfig;
21
- showScopedHeaderOptions?: boolean;
22
21
  }
23
22
  /**
24
23
  * The class representing a table cell properties form, allowing users to customize
@@ -88,13 +87,6 @@ export declare class TableCellPropertiesView extends View {
88
87
  * @default ''
89
88
  */
90
89
  verticalAlignment: string;
91
- /**
92
- * The type of the table cell ('data' or 'header').
93
- *
94
- * @observable
95
- * @default ''
96
- */
97
- cellType: string;
98
90
  /**
99
91
  * Options passed to the view. See {@link #constructor} to learn more.
100
92
  */
@@ -127,10 +119,6 @@ export declare class TableCellPropertiesView extends View {
127
119
  * An input that allows specifying the table cell background color.
128
120
  */
129
121
  readonly backgroundInput: LabeledFieldView<ColorInputView>;
130
- /**
131
- * A dropdown that allows selecting the type of the table cell (data or header).
132
- */
133
- readonly cellTypeDropdown: LabeledFieldView<FocusableView>;
134
122
  /**
135
123
  * An input that allows specifying the table cell padding.
136
124
  */
@@ -159,10 +147,6 @@ export declare class TableCellPropertiesView extends View {
159
147
  * The "Cancel" button view.
160
148
  */
161
149
  cancelButtonView: ButtonView;
162
- /**
163
- * The "Back" button view.
164
- */
165
- backButtonView: ButtonView;
166
150
  /**
167
151
  * A collection of views that can be focused in the form.
168
152
  */
@@ -207,14 +191,6 @@ export declare class TableCellPropertiesView extends View {
207
191
  * * {@link #backgroundInput}.
208
192
  */
209
193
  private _createBackgroundFields;
210
- /**
211
- * Create cell type field.
212
- *
213
- * * {@link #cellTypeDropdown}.
214
- *
215
- * @internal
216
- */
217
- private _createCellTypeField;
218
194
  /**
219
195
  * Creates the following form fields:
220
196
  *
@@ -242,14 +218,6 @@ export declare class TableCellPropertiesView extends View {
242
218
  * * {@link #cancelButtonView}.
243
219
  */
244
220
  private _createActionButtons;
245
- /**
246
- * Creates a back button view that cancels the form.
247
- */
248
- private _createBackButton;
249
- /**
250
- * Creates the cell type dropdown definitions.
251
- */
252
- private _getCellTypeDefinitions;
253
221
  /**
254
222
  * Provides localized labels for {@link #horizontalAlignmentToolbar} buttons.
255
223
  */
@@ -258,8 +226,4 @@ export declare class TableCellPropertiesView extends View {
258
226
  * Provides localized labels for {@link #verticalAlignmentToolbar} buttons.
259
227
  */
260
228
  private get _verticalAlignmentLabels();
261
- /**
262
- * Provides localized labels for {@link #cellTypeDropdown}.
263
- */
264
- private get _cellTypeLabels();
265
229
  }