@ckeditor/ckeditor5-table 38.2.0-alpha.0 → 38.2.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 (158) hide show
  1. package/build/table.js +1 -1
  2. package/package.json +2 -2
  3. package/src/augmentation.d.ts +1 -1
  4. package/src/commands/insertcolumncommand.d.ts +1 -1
  5. package/src/commands/insertcolumncommand.js +1 -1
  6. package/src/commands/insertrowcommand.d.ts +1 -1
  7. package/src/commands/insertrowcommand.js +1 -1
  8. package/src/commands/inserttablecommand.d.ts +1 -1
  9. package/src/commands/inserttablecommand.js +1 -1
  10. package/src/commands/mergecellcommand.d.ts +3 -3
  11. package/src/commands/mergecellcommand.js +4 -4
  12. package/src/commands/mergecellscommand.d.ts +1 -1
  13. package/src/commands/mergecellscommand.js +4 -4
  14. package/src/commands/removecolumncommand.d.ts +1 -1
  15. package/src/commands/removecolumncommand.js +2 -2
  16. package/src/commands/removerowcommand.d.ts +1 -1
  17. package/src/commands/removerowcommand.js +1 -1
  18. package/src/commands/selectcolumncommand.d.ts +1 -1
  19. package/src/commands/selectcolumncommand.js +2 -2
  20. package/src/commands/selectrowcommand.d.ts +1 -1
  21. package/src/commands/selectrowcommand.js +1 -1
  22. package/src/commands/setheadercolumncommand.d.ts +1 -1
  23. package/src/commands/setheadercolumncommand.js +3 -3
  24. package/src/commands/setheaderrowcommand.d.ts +1 -1
  25. package/src/commands/setheaderrowcommand.js +3 -3
  26. package/src/commands/splitcellcommand.d.ts +1 -1
  27. package/src/commands/splitcellcommand.js +1 -1
  28. package/src/converters/downcast.d.ts +3 -3
  29. package/src/converters/downcast.js +2 -2
  30. package/src/converters/table-caption-post-fixer.d.ts +1 -1
  31. package/src/converters/table-cell-paragraph-post-fixer.d.ts +1 -1
  32. package/src/converters/table-cell-refresh-handler.d.ts +1 -1
  33. package/src/converters/table-cell-refresh-handler.js +1 -1
  34. package/src/converters/table-headings-refresh-handler.d.ts +1 -1
  35. package/src/converters/table-headings-refresh-handler.js +1 -1
  36. package/src/converters/table-layout-post-fixer.d.ts +1 -1
  37. package/src/converters/table-layout-post-fixer.js +2 -2
  38. package/src/converters/tableproperties.d.ts +1 -1
  39. package/src/converters/upcasttable.d.ts +1 -1
  40. package/src/converters/upcasttable.js +2 -2
  41. package/src/index.d.ts +53 -53
  42. package/src/index.js +23 -23
  43. package/src/plaintableoutput.d.ts +2 -2
  44. package/src/plaintableoutput.js +2 -2
  45. package/src/table.d.ts +8 -8
  46. package/src/table.js +8 -8
  47. package/src/tablecaption/tablecaptionediting.d.ts +2 -2
  48. package/src/tablecaption/tablecaptionediting.js +6 -6
  49. package/src/tablecaption/tablecaptionui.d.ts +1 -1
  50. package/src/tablecaption/tablecaptionui.js +3 -3
  51. package/src/tablecaption/toggletablecaptioncommand.d.ts +1 -1
  52. package/src/tablecaption/toggletablecaptioncommand.js +2 -2
  53. package/src/tablecaption/utils.d.ts +1 -1
  54. package/src/tablecaption.d.ts +3 -3
  55. package/src/tablecaption.js +3 -3
  56. package/src/tablecellproperties/commands/tablecellbackgroundcolorcommand.d.ts +2 -2
  57. package/src/tablecellproperties/commands/tablecellbackgroundcolorcommand.js +1 -1
  58. package/src/tablecellproperties/commands/tablecellbordercolorcommand.d.ts +3 -3
  59. package/src/tablecellproperties/commands/tablecellbordercolorcommand.js +2 -2
  60. package/src/tablecellproperties/commands/tablecellborderstylecommand.d.ts +3 -3
  61. package/src/tablecellproperties/commands/tablecellborderstylecommand.js +2 -2
  62. package/src/tablecellproperties/commands/tablecellborderwidthcommand.d.ts +3 -3
  63. package/src/tablecellproperties/commands/tablecellborderwidthcommand.js +2 -2
  64. package/src/tablecellproperties/commands/tablecellheightcommand.d.ts +2 -2
  65. package/src/tablecellproperties/commands/tablecellheightcommand.js +2 -2
  66. package/src/tablecellproperties/commands/tablecellhorizontalalignmentcommand.d.ts +2 -2
  67. package/src/tablecellproperties/commands/tablecellhorizontalalignmentcommand.js +1 -1
  68. package/src/tablecellproperties/commands/tablecellpaddingcommand.d.ts +3 -3
  69. package/src/tablecellproperties/commands/tablecellpaddingcommand.js +2 -2
  70. package/src/tablecellproperties/commands/tablecellpropertycommand.d.ts +2 -2
  71. package/src/tablecellproperties/commands/tablecellpropertycommand.js +1 -1
  72. package/src/tablecellproperties/commands/tablecellverticalalignmentcommand.d.ts +2 -2
  73. package/src/tablecellproperties/commands/tablecellverticalalignmentcommand.js +1 -1
  74. package/src/tablecellproperties/tablecellpropertiesediting.d.ts +3 -3
  75. package/src/tablecellproperties/tablecellpropertiesediting.js +15 -15
  76. package/src/tablecellproperties/tablecellpropertiesui.d.ts +3 -3
  77. package/src/tablecellproperties/tablecellpropertiesui.js +10 -8
  78. package/src/tablecellproperties/ui/tablecellpropertiesview.d.ts +5 -4
  79. package/src/tablecellproperties/ui/tablecellpropertiesview.js +9 -7
  80. package/src/tablecellproperties.d.ts +3 -3
  81. package/src/tablecellproperties.js +3 -3
  82. package/src/tablecellwidth/commands/tablecellwidthcommand.d.ts +2 -2
  83. package/src/tablecellwidth/commands/tablecellwidthcommand.js +2 -2
  84. package/src/tablecellwidth/tablecellwidthediting.d.ts +2 -2
  85. package/src/tablecellwidth/tablecellwidthediting.js +5 -5
  86. package/src/tableclipboard.d.ts +5 -5
  87. package/src/tableclipboard.js +5 -5
  88. package/src/tablecolumnresize/converters.d.ts +2 -2
  89. package/src/tablecolumnresize/converters.js +1 -1
  90. package/src/tablecolumnresize/tablecolumnresizeediting.d.ts +4 -4
  91. package/src/tablecolumnresize/tablecolumnresizeediting.js +10 -10
  92. package/src/tablecolumnresize/tablewidthscommand.d.ts +2 -2
  93. package/src/tablecolumnresize/tablewidthscommand.js +2 -2
  94. package/src/tablecolumnresize/utils.d.ts +3 -3
  95. package/src/tablecolumnresize/utils.js +2 -2
  96. package/src/tablecolumnresize.d.ts +3 -3
  97. package/src/tablecolumnresize.js +3 -3
  98. package/src/tableconfig.d.ts +14 -2
  99. package/src/tableediting.d.ts +3 -3
  100. package/src/tableediting.js +20 -20
  101. package/src/tablekeyboard.d.ts +5 -5
  102. package/src/tablekeyboard.js +5 -5
  103. package/src/tablemouse/mouseeventsobserver.d.ts +1 -1
  104. package/src/tablemouse/mouseeventsobserver.js +1 -1
  105. package/src/tablemouse.d.ts +3 -3
  106. package/src/tablemouse.js +4 -4
  107. package/src/tableproperties/commands/tablealignmentcommand.d.ts +2 -2
  108. package/src/tableproperties/commands/tablealignmentcommand.js +1 -1
  109. package/src/tableproperties/commands/tablebackgroundcolorcommand.d.ts +2 -2
  110. package/src/tableproperties/commands/tablebackgroundcolorcommand.js +1 -1
  111. package/src/tableproperties/commands/tablebordercolorcommand.d.ts +3 -3
  112. package/src/tableproperties/commands/tablebordercolorcommand.js +2 -2
  113. package/src/tableproperties/commands/tableborderstylecommand.d.ts +3 -3
  114. package/src/tableproperties/commands/tableborderstylecommand.js +2 -2
  115. package/src/tableproperties/commands/tableborderwidthcommand.d.ts +3 -3
  116. package/src/tableproperties/commands/tableborderwidthcommand.js +2 -2
  117. package/src/tableproperties/commands/tableheightcommand.d.ts +2 -2
  118. package/src/tableproperties/commands/tableheightcommand.js +2 -2
  119. package/src/tableproperties/commands/tablepropertycommand.d.ts +2 -2
  120. package/src/tableproperties/commands/tablepropertycommand.js +1 -1
  121. package/src/tableproperties/commands/tablewidthcommand.d.ts +2 -2
  122. package/src/tableproperties/commands/tablewidthcommand.js +2 -2
  123. package/src/tableproperties/tablepropertiesediting.d.ts +2 -2
  124. package/src/tableproperties/tablepropertiesediting.js +12 -12
  125. package/src/tableproperties/tablepropertiesui.d.ts +3 -3
  126. package/src/tableproperties/tablepropertiesui.js +10 -8
  127. package/src/tableproperties/ui/tablepropertiesview.d.ts +8 -4
  128. package/src/tableproperties/ui/tablepropertiesview.js +9 -7
  129. package/src/tableproperties.d.ts +3 -3
  130. package/src/tableproperties.js +3 -3
  131. package/src/tableselection.d.ts +3 -3
  132. package/src/tableselection.js +5 -5
  133. package/src/tabletoolbar.d.ts +2 -2
  134. package/src/tabletoolbar.js +3 -3
  135. package/src/tableui.d.ts +1 -1
  136. package/src/tableui.js +4 -4
  137. package/src/tableutils.d.ts +3 -3
  138. package/src/tableutils.js +5 -5
  139. package/src/tablewalker.d.ts +1 -1
  140. package/src/ui/colorinputview.d.ts +5 -8
  141. package/src/ui/colorinputview.js +54 -37
  142. package/src/ui/formrowview.d.ts +2 -2
  143. package/src/ui/formrowview.js +1 -1
  144. package/src/ui/inserttableview.d.ts +2 -2
  145. package/src/ui/inserttableview.js +2 -2
  146. package/src/utils/common.d.ts +2 -2
  147. package/src/utils/common.js +1 -1
  148. package/src/utils/structure.d.ts +3 -3
  149. package/src/utils/structure.js +2 -2
  150. package/src/utils/table-properties.d.ts +1 -1
  151. package/src/utils/ui/contextualballoon.d.ts +2 -2
  152. package/src/utils/ui/contextualballoon.js +3 -3
  153. package/src/utils/ui/table-properties.d.ts +7 -5
  154. package/src/utils/ui/table-properties.js +7 -5
  155. package/src/utils/ui/widget.d.ts +1 -1
  156. package/src/utils/ui/widget.js +1 -1
  157. package/theme/tablecaption.css +7 -7
  158. package/theme/tablecolumnresize.css +2 -2
@@ -2,8 +2,8 @@
2
2
  * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
- import TableCellPropertyCommand from '../../tablecellproperties/commands/tablecellpropertycommand';
6
- import { addDefaultUnitToNumericValue } from '../../utils/table-properties';
5
+ import TableCellPropertyCommand from '../../tablecellproperties/commands/tablecellpropertycommand.js';
6
+ import { addDefaultUnitToNumericValue } from '../../utils/table-properties.js';
7
7
  /**
8
8
  * The table cell width command.
9
9
  *
@@ -5,8 +5,8 @@
5
5
  /**
6
6
  * @module table/tablecellwidth/tablecellwidthediting
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import TableEditing from './../tableediting';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import TableEditing from './../tableediting.js';
10
10
  /**
11
11
  * The table cell width editing feature.
12
12
  *
@@ -5,11 +5,11 @@
5
5
  /**
6
6
  * @module table/tablecellwidth/tablecellwidthediting
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import TableEditing from './../tableediting';
10
- import TableCellWidthCommand from './commands/tablecellwidthcommand';
11
- import { getNormalizedDefaultProperties } from '../utils/table-properties';
12
- import { enableProperty } from '../utils/common';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import TableEditing from './../tableediting.js';
10
+ import TableCellWidthCommand from './commands/tablecellwidthcommand.js';
11
+ import { getNormalizedDefaultProperties } from '../utils/table-properties.js';
12
+ import { enableProperty } from '../utils/common.js';
13
13
  /**
14
14
  * The table cell width editing feature.
15
15
  *
@@ -2,11 +2,11 @@
2
2
  * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
- import { Plugin } from 'ckeditor5/src/core';
6
- import type { DocumentFragment, Element, Item, Model, Position, Writer } from 'ckeditor5/src/engine';
7
- import TableSelection from './tableselection';
8
- import { type TableSlot } from './tablewalker';
9
- import TableUtils from './tableutils';
5
+ import { Plugin } from 'ckeditor5/src/core.js';
6
+ import type { DocumentFragment, Element, Item, Model, Position, Writer } from 'ckeditor5/src/engine.js';
7
+ import TableSelection from './tableselection.js';
8
+ import { type TableSlot } from './tablewalker.js';
9
+ import TableUtils from './tableutils.js';
10
10
  /**
11
11
  * This plugin adds support for copying/cutting/pasting fragments of tables.
12
12
  * It is loaded automatically by the {@link module:table/table~Table} plugin.
@@ -2,11 +2,11 @@
2
2
  * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
- import { Plugin } from 'ckeditor5/src/core';
6
- import TableSelection from './tableselection';
7
- import TableWalker from './tablewalker';
8
- import TableUtils from './tableutils';
9
- import { cropTableToDimensions, getHorizontallyOverlappingCells, getVerticallyOverlappingCells, removeEmptyRowsColumns, splitHorizontally, splitVertically, trimTableCellIfNeeded, adjustLastRowIndex, adjustLastColumnIndex } from './utils/structure';
5
+ import { Plugin } from 'ckeditor5/src/core.js';
6
+ import TableSelection from './tableselection.js';
7
+ import TableWalker from './tablewalker.js';
8
+ import TableUtils from './tableutils.js';
9
+ import { cropTableToDimensions, getHorizontallyOverlappingCells, getVerticallyOverlappingCells, removeEmptyRowsColumns, splitHorizontally, splitVertically, trimTableCellIfNeeded, adjustLastRowIndex, adjustLastColumnIndex } from './utils/structure.js';
10
10
  /**
11
11
  * This plugin adds support for copying/cutting/pasting fragments of tables.
12
12
  * It is loaded automatically by the {@link module:table/table~Table} plugin.
@@ -5,8 +5,8 @@
5
5
  /**
6
6
  * @module table/tablecolumnresize/converters
7
7
  */
8
- import type { DowncastDispatcher, UpcastDispatcher } from 'ckeditor5/src/engine';
9
- import type TableUtils from '../tableutils';
8
+ import type { DowncastDispatcher, UpcastDispatcher } from 'ckeditor5/src/engine.js';
9
+ import type TableUtils from '../tableutils.js';
10
10
  /**
11
11
  * Returns a upcast helper that ensures the number of `<tableColumn>` elements corresponds to the actual number of columns in the table,
12
12
  * because the input data might have too few or too many <col> elements.
@@ -2,7 +2,7 @@
2
2
  * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
- import { normalizeColumnWidths, updateColumnElements, getColumnGroupElement, getTableColumnElements, getTableColumnsWidths } from './utils';
5
+ import { normalizeColumnWidths, updateColumnElements, getColumnGroupElement, getTableColumnElements, getTableColumnsWidths } from './utils.js';
6
6
  /**
7
7
  * Returns a upcast helper that ensures the number of `<tableColumn>` elements corresponds to the actual number of columns in the table,
8
8
  * because the input data might have too few or too many <col> elements.
@@ -2,10 +2,10 @@
2
2
  * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
- import { Plugin, type Editor } from 'ckeditor5/src/core';
6
- import type { Element } from 'ckeditor5/src/engine';
7
- import TableEditing from '../tableediting';
8
- import TableUtils from '../tableutils';
5
+ import { Plugin, type Editor } from 'ckeditor5/src/core.js';
6
+ import type { Element } from 'ckeditor5/src/engine.js';
7
+ import TableEditing from '../tableediting.js';
8
+ import TableUtils from '../tableutils.js';
9
9
  /**
10
10
  * The table column resize editing plugin.
11
11
  */
@@ -6,16 +6,16 @@
6
6
  * @module table/tablecolumnresize/tablecolumnresizeediting
7
7
  */
8
8
  import { throttle, isEqual } from 'lodash-es';
9
- import { global, DomEmitterMixin } from 'ckeditor5/src/utils';
10
- import { Plugin } from 'ckeditor5/src/core';
11
- import MouseEventsObserver from '../../src/tablemouse/mouseeventsobserver';
12
- import TableEditing from '../tableediting';
13
- import TableUtils from '../tableutils';
14
- import TableWalker from '../tablewalker';
15
- import TableWidthsCommand from './tablewidthscommand';
16
- import { downcastTableResizedClass, upcastColgroupElement } from './converters';
17
- import { clamp, createFilledArray, sumArray, getColumnEdgesIndexes, getChangedResizedTables, getColumnMinWidthAsPercentage, getElementWidthInPixels, getTableWidthInPixels, normalizeColumnWidths, toPrecision, getDomCellOuterWidth, updateColumnElements, getColumnGroupElement, getTableColumnElements, getTableColumnsWidths } from './utils';
18
- import { COLUMN_MIN_WIDTH_IN_PIXELS } from './constants';
9
+ import { global, DomEmitterMixin } from 'ckeditor5/src/utils.js';
10
+ import { Plugin } from 'ckeditor5/src/core.js';
11
+ import MouseEventsObserver from '../../src/tablemouse/mouseeventsobserver.js';
12
+ import TableEditing from '../tableediting.js';
13
+ import TableUtils from '../tableutils.js';
14
+ import TableWalker from '../tablewalker.js';
15
+ import TableWidthsCommand from './tablewidthscommand.js';
16
+ import { downcastTableResizedClass, upcastColgroupElement } from './converters.js';
17
+ import { clamp, createFilledArray, sumArray, getColumnEdgesIndexes, getChangedResizedTables, getColumnMinWidthAsPercentage, getElementWidthInPixels, getTableWidthInPixels, normalizeColumnWidths, toPrecision, getDomCellOuterWidth, updateColumnElements, getColumnGroupElement, getTableColumnElements, getTableColumnsWidths } from './utils.js';
18
+ import { COLUMN_MIN_WIDTH_IN_PIXELS } from './constants.js';
19
19
  /**
20
20
  * The table column resize editing plugin.
21
21
  */
@@ -5,8 +5,8 @@
5
5
  /**
6
6
  * @module table/tablecolumnresize/tablewidthscommand
7
7
  */
8
- import type { Element } from 'ckeditor5/src/engine';
9
- import { Command } from 'ckeditor5/src/core';
8
+ import type { Element } from 'ckeditor5/src/engine.js';
9
+ import { Command } from 'ckeditor5/src/core.js';
10
10
  /**
11
11
  * Command used by the {@link module:table/tablecolumnresize~TableColumnResize Table column resize feature} that
12
12
  * updates the width of the whole table as well as its individual columns.
@@ -2,8 +2,8 @@
2
2
  * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
- import { Command } from 'ckeditor5/src/core';
6
- import { normalizeColumnWidths } from './utils';
5
+ import { Command } from 'ckeditor5/src/core.js';
6
+ import { normalizeColumnWidths } from './utils.js';
7
7
  /**
8
8
  * Command used by the {@link module:table/tablecolumnresize~TableColumnResize Table column resize feature} that
9
9
  * updates the width of the whole table as well as its individual columns.
@@ -5,9 +5,9 @@
5
5
  /**
6
6
  * @module table/tablecolumnresize/utils
7
7
  */
8
- import type { Editor } from 'ckeditor5/src/core';
9
- import type { Element, Model, Writer } from 'ckeditor5/src/engine';
10
- import type TableUtils from '../tableutils';
8
+ import type { Editor } from 'ckeditor5/src/core.js';
9
+ import type { Element, Model, Writer } from 'ckeditor5/src/engine.js';
10
+ import type TableUtils from '../tableutils.js';
11
11
  /**
12
12
  * Returns all the inserted or changed table model elements in a given change set. Only the tables
13
13
  * with 'columnsWidth' attribute are taken into account. The returned set may be empty.
@@ -2,8 +2,8 @@
2
2
  * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
- import { global } from 'ckeditor5/src/utils';
6
- import { COLUMN_WIDTH_PRECISION, COLUMN_MIN_WIDTH_AS_PERCENTAGE, COLUMN_MIN_WIDTH_IN_PIXELS } from './constants';
5
+ import { global } from 'ckeditor5/src/utils.js';
6
+ import { COLUMN_WIDTH_PRECISION, COLUMN_MIN_WIDTH_AS_PERCENTAGE, COLUMN_MIN_WIDTH_IN_PIXELS } from './constants.js';
7
7
  /**
8
8
  * Returns all the inserted or changed table model elements in a given change set. Only the tables
9
9
  * with 'columnsWidth' attribute are taken into account. The returned set may be empty.
@@ -5,9 +5,9 @@
5
5
  /**
6
6
  * @module table/tablecolumnresize
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import TableColumnResizeEditing from './tablecolumnresize/tablecolumnresizeediting';
10
- import TableCellWidthEditing from './tablecellwidth/tablecellwidthediting';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import TableColumnResizeEditing from './tablecolumnresize/tablecolumnresizeediting.js';
10
+ import TableCellWidthEditing from './tablecellwidth/tablecellwidthediting.js';
11
11
  import '../theme/tablecolumnresize.css';
12
12
  /**
13
13
  * The table column resize feature.
@@ -5,9 +5,9 @@
5
5
  /**
6
6
  * @module table/tablecolumnresize
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import TableColumnResizeEditing from './tablecolumnresize/tablecolumnresizeediting';
10
- import TableCellWidthEditing from './tablecellwidth/tablecellwidthediting';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import TableColumnResizeEditing from './tablecolumnresize/tablecolumnresizeediting.js';
10
+ import TableCellWidthEditing from './tablecellwidth/tablecellwidthediting.js';
11
11
  import '../theme/tablecolumnresize.css';
12
12
  /**
13
13
  * The table column resize feature.
@@ -5,8 +5,8 @@
5
5
  /**
6
6
  * @module table/tableconfig
7
7
  */
8
- import type { ToolbarConfigItem } from 'ckeditor5/src/core';
9
- import type { ColorOption } from 'ckeditor5/src/ui';
8
+ import type { ToolbarConfigItem } from 'ckeditor5/src/core.js';
9
+ import type { ColorOption, ColorPickerConfig } from 'ckeditor5/src/ui.js';
10
10
  /**
11
11
  * The configuration of the table feature. Used by the table feature in the `@ckeditor/ckeditor5-table` package.
12
12
  *
@@ -208,6 +208,12 @@ export interface TablePropertiesConfig {
208
208
  borderColors?: TableColorConfig;
209
209
  backgroundColors?: TableColorConfig;
210
210
  defaultProperties?: TablePropertiesOptions;
211
+ /**
212
+ * Configuration of the color picker in the table properties balloon.
213
+ *
214
+ * If set to `false` the picker will not appear.
215
+ */
216
+ colorPicker?: false | ColorPickerConfig;
211
217
  }
212
218
  /**
213
219
  * The configuration of the table default properties feature.
@@ -253,6 +259,12 @@ export interface TableCellPropertiesConfig {
253
259
  borderColors?: TableColorConfig;
254
260
  backgroundColors?: TableColorConfig;
255
261
  defaultProperties?: TableCellPropertiesOptions;
262
+ /**
263
+ * Configuration of the color picker in the table cell properties balloon.
264
+ *
265
+ * If set to `false` the picker will not appear.
266
+ */
267
+ colorPicker?: false | ColorPickerConfig;
256
268
  }
257
269
  /**
258
270
  * An array of color definitions (either strings or objects).
@@ -5,9 +5,9 @@
5
5
  /**
6
6
  * @module table/tableediting
7
7
  */
8
- import { Plugin, type Editor } from 'ckeditor5/src/core';
9
- import type { PositionOffset, SlotFilter } from 'ckeditor5/src/engine';
10
- import TableUtils from '../src/tableutils';
8
+ import { Plugin, type Editor } from 'ckeditor5/src/core.js';
9
+ import type { PositionOffset, SlotFilter } from 'ckeditor5/src/engine.js';
10
+ import TableUtils from '../src/tableutils.js';
11
11
  import '../theme/tableediting.css';
12
12
  /**
13
13
  * The table editing feature.
@@ -5,26 +5,26 @@
5
5
  /**
6
6
  * @module table/tableediting
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import upcastTable, { ensureParagraphInTableCell, skipEmptyTableRow, upcastTableFigure } from './converters/upcasttable';
10
- import { convertParagraphInTableCell, downcastCell, downcastRow, downcastTable } from './converters/downcast';
11
- import InsertTableCommand from './commands/inserttablecommand';
12
- import InsertRowCommand from './commands/insertrowcommand';
13
- import InsertColumnCommand from './commands/insertcolumncommand';
14
- import SplitCellCommand from './commands/splitcellcommand';
15
- import MergeCellCommand from './commands/mergecellcommand';
16
- import RemoveRowCommand from './commands/removerowcommand';
17
- import RemoveColumnCommand from './commands/removecolumncommand';
18
- import SetHeaderRowCommand from './commands/setheaderrowcommand';
19
- import SetHeaderColumnCommand from './commands/setheadercolumncommand';
20
- import MergeCellsCommand from './commands/mergecellscommand';
21
- import SelectRowCommand from './commands/selectrowcommand';
22
- import SelectColumnCommand from './commands/selectcolumncommand';
23
- import TableUtils from '../src/tableutils';
24
- import injectTableLayoutPostFixer from './converters/table-layout-post-fixer';
25
- import injectTableCellParagraphPostFixer from './converters/table-cell-paragraph-post-fixer';
26
- import tableHeadingsRefreshHandler from './converters/table-headings-refresh-handler';
27
- import tableCellRefreshHandler from './converters/table-cell-refresh-handler';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import upcastTable, { ensureParagraphInTableCell, skipEmptyTableRow, upcastTableFigure } from './converters/upcasttable.js';
10
+ import { convertParagraphInTableCell, downcastCell, downcastRow, downcastTable } from './converters/downcast.js';
11
+ import InsertTableCommand from './commands/inserttablecommand.js';
12
+ import InsertRowCommand from './commands/insertrowcommand.js';
13
+ import InsertColumnCommand from './commands/insertcolumncommand.js';
14
+ import SplitCellCommand from './commands/splitcellcommand.js';
15
+ import MergeCellCommand from './commands/mergecellcommand.js';
16
+ import RemoveRowCommand from './commands/removerowcommand.js';
17
+ import RemoveColumnCommand from './commands/removecolumncommand.js';
18
+ import SetHeaderRowCommand from './commands/setheaderrowcommand.js';
19
+ import SetHeaderColumnCommand from './commands/setheadercolumncommand.js';
20
+ import MergeCellsCommand from './commands/mergecellscommand.js';
21
+ import SelectRowCommand from './commands/selectrowcommand.js';
22
+ import SelectColumnCommand from './commands/selectcolumncommand.js';
23
+ import TableUtils from '../src/tableutils.js';
24
+ import injectTableLayoutPostFixer from './converters/table-layout-post-fixer.js';
25
+ import injectTableCellParagraphPostFixer from './converters/table-cell-paragraph-post-fixer.js';
26
+ import tableHeadingsRefreshHandler from './converters/table-headings-refresh-handler.js';
27
+ import tableCellRefreshHandler from './converters/table-cell-refresh-handler.js';
28
28
  import '../theme/tableediting.css';
29
29
  /**
30
30
  * The table editing feature.
@@ -5,11 +5,11 @@
5
5
  /**
6
6
  * @module table/tablekeyboard
7
7
  */
8
- import TableSelection from './tableselection';
9
- import TableUtils from './tableutils';
10
- import { Plugin } from 'ckeditor5/src/core';
11
- import { type ArrowKeyCodeDirection } from 'ckeditor5/src/utils';
12
- import type { Element } from 'ckeditor5/src/engine';
8
+ import TableSelection from './tableselection.js';
9
+ import TableUtils from './tableutils.js';
10
+ import { Plugin } from 'ckeditor5/src/core.js';
11
+ import { type ArrowKeyCodeDirection } from 'ckeditor5/src/utils.js';
12
+ import type { Element } from 'ckeditor5/src/engine.js';
13
13
  /**
14
14
  * This plugin enables keyboard navigation for tables.
15
15
  * It is loaded automatically by the {@link module:table/table~Table} plugin.
@@ -5,11 +5,11 @@
5
5
  /**
6
6
  * @module table/tablekeyboard
7
7
  */
8
- import TableSelection from './tableselection';
9
- import TableWalker from './tablewalker';
10
- import TableUtils from './tableutils';
11
- import { Plugin } from 'ckeditor5/src/core';
12
- import { getLocalizedArrowKeyCodeDirection } from 'ckeditor5/src/utils';
8
+ import TableSelection from './tableselection.js';
9
+ import TableWalker from './tablewalker.js';
10
+ import TableUtils from './tableutils.js';
11
+ import { Plugin } from 'ckeditor5/src/core.js';
12
+ import { getLocalizedArrowKeyCodeDirection } from 'ckeditor5/src/utils.js';
13
13
  /**
14
14
  * This plugin enables keyboard navigation for tables.
15
15
  * It is loaded automatically by the {@link module:table/table~Table} plugin.
@@ -5,7 +5,7 @@
5
5
  /**
6
6
  * @module table/tablemouse/mouseeventsobserver
7
7
  */
8
- import { DomEventObserver, type DomEventData } from 'ckeditor5/src/engine';
8
+ import { DomEventObserver, type DomEventData } from 'ckeditor5/src/engine.js';
9
9
  /**
10
10
  * The mouse selection event observer.
11
11
  *
@@ -5,7 +5,7 @@
5
5
  /**
6
6
  * @module table/tablemouse/mouseeventsobserver
7
7
  */
8
- import { DomEventObserver } from 'ckeditor5/src/engine';
8
+ import { DomEventObserver } from 'ckeditor5/src/engine.js';
9
9
  /**
10
10
  * The mouse selection event observer.
11
11
  *
@@ -5,9 +5,9 @@
5
5
  /**
6
6
  * @module table/tablemouse
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import TableSelection from './tableselection';
10
- import TableUtils from './tableutils';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import TableSelection from './tableselection.js';
10
+ import TableUtils from './tableutils.js';
11
11
  /**
12
12
  * This plugin enables a table cells' selection with the mouse.
13
13
  * It is loaded automatically by the {@link module:table/table~Table} plugin.
package/src/tablemouse.js CHANGED
@@ -5,10 +5,10 @@
5
5
  /**
6
6
  * @module table/tablemouse
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import TableSelection from './tableselection';
10
- import MouseEventsObserver from './tablemouse/mouseeventsobserver';
11
- import TableUtils from './tableutils';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import TableSelection from './tableselection.js';
10
+ import MouseEventsObserver from './tablemouse/mouseeventsobserver.js';
11
+ import TableUtils from './tableutils.js';
12
12
  /**
13
13
  * This plugin enables a table cells' selection with the mouse.
14
14
  * It is loaded automatically by the {@link module:table/table~Table} plugin.
@@ -5,8 +5,8 @@
5
5
  /**
6
6
  * @module table/tableproperties/commands/tablealignmentcommand
7
7
  */
8
- import type { Editor } from 'ckeditor5/src/core';
9
- import TablePropertyCommand from './tablepropertycommand';
8
+ import type { Editor } from 'ckeditor5/src/core.js';
9
+ import TablePropertyCommand from './tablepropertycommand.js';
10
10
  /**
11
11
  * The table alignment command.
12
12
  *
@@ -2,7 +2,7 @@
2
2
  * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
- import TablePropertyCommand from './tablepropertycommand';
5
+ import TablePropertyCommand from './tablepropertycommand.js';
6
6
  /**
7
7
  * The table alignment command.
8
8
  *
@@ -5,8 +5,8 @@
5
5
  /**
6
6
  * @module table/tableproperties/commands/tablebackgroundcolorcommand
7
7
  */
8
- import type { Editor } from 'ckeditor5/src/core';
9
- import TablePropertyCommand from './tablepropertycommand';
8
+ import type { Editor } from 'ckeditor5/src/core.js';
9
+ import TablePropertyCommand from './tablepropertycommand.js';
10
10
  /**
11
11
  * The table background color command.
12
12
  *
@@ -2,7 +2,7 @@
2
2
  * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
- import TablePropertyCommand from './tablepropertycommand';
5
+ import TablePropertyCommand from './tablepropertycommand.js';
6
6
  /**
7
7
  * The table background color command.
8
8
  *
@@ -5,9 +5,9 @@
5
5
  /**
6
6
  * @module table/tableproperties/commands/tablebordercolorcommand
7
7
  */
8
- import type { Element } from 'ckeditor5/src/engine';
9
- import type { Editor } from 'ckeditor5/src/core';
10
- import TablePropertyCommand from './tablepropertycommand';
8
+ import type { Element } from 'ckeditor5/src/engine.js';
9
+ import type { Editor } from 'ckeditor5/src/core.js';
10
+ import TablePropertyCommand from './tablepropertycommand.js';
11
11
  /**
12
12
  * The table border color command.
13
13
  *
@@ -2,8 +2,8 @@
2
2
  * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
- import TablePropertyCommand from './tablepropertycommand';
6
- import { getSingleValue } from '../../utils/table-properties';
5
+ import TablePropertyCommand from './tablepropertycommand.js';
6
+ import { getSingleValue } from '../../utils/table-properties.js';
7
7
  /**
8
8
  * The table border color command.
9
9
  *
@@ -5,9 +5,9 @@
5
5
  /**
6
6
  * @module table/tableproperties/commands/tableborderstylecommand
7
7
  */
8
- import type { Element } from 'ckeditor5/src/engine';
9
- import TablePropertyCommand from './tablepropertycommand';
10
- import type { Editor } from 'ckeditor5/src/core';
8
+ import type { Element } from 'ckeditor5/src/engine.js';
9
+ import TablePropertyCommand from './tablepropertycommand.js';
10
+ import type { Editor } from 'ckeditor5/src/core.js';
11
11
  /**
12
12
  * The table style border command.
13
13
  *
@@ -2,8 +2,8 @@
2
2
  * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
- import TablePropertyCommand from './tablepropertycommand';
6
- import { getSingleValue } from '../../utils/table-properties';
5
+ import TablePropertyCommand from './tablepropertycommand.js';
6
+ import { getSingleValue } from '../../utils/table-properties.js';
7
7
  /**
8
8
  * The table style border command.
9
9
  *
@@ -5,9 +5,9 @@
5
5
  /**
6
6
  * @module table/tableproperties/commands/tableborderwidthcommand
7
7
  */
8
- import type { Element } from 'ckeditor5/src/engine';
9
- import type { Editor } from 'ckeditor5/src/core';
10
- import TablePropertyCommand from './tablepropertycommand';
8
+ import type { Element } from 'ckeditor5/src/engine.js';
9
+ import type { Editor } from 'ckeditor5/src/core.js';
10
+ import TablePropertyCommand from './tablepropertycommand.js';
11
11
  /**
12
12
  * The table width border command.
13
13
  *
@@ -2,8 +2,8 @@
2
2
  * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
- import TablePropertyCommand from './tablepropertycommand';
6
- import { addDefaultUnitToNumericValue, getSingleValue } from '../../utils/table-properties';
5
+ import TablePropertyCommand from './tablepropertycommand.js';
6
+ import { addDefaultUnitToNumericValue, getSingleValue } from '../../utils/table-properties.js';
7
7
  /**
8
8
  * The table width border command.
9
9
  *
@@ -5,8 +5,8 @@
5
5
  /**
6
6
  * @module table/tableproperties/commands/tableheightcommand
7
7
  */
8
- import TablePropertyCommand from './tablepropertycommand';
9
- import type { Editor } from 'ckeditor5/src/core';
8
+ import TablePropertyCommand from './tablepropertycommand.js';
9
+ import type { Editor } from 'ckeditor5/src/core.js';
10
10
  /**
11
11
  * The table height command.
12
12
  *
@@ -5,8 +5,8 @@
5
5
  /**
6
6
  * @module table/tableproperties/commands/tableheightcommand
7
7
  */
8
- import TablePropertyCommand from './tablepropertycommand';
9
- import { addDefaultUnitToNumericValue } from '../../utils/table-properties';
8
+ import TablePropertyCommand from './tablepropertycommand.js';
9
+ import { addDefaultUnitToNumericValue } from '../../utils/table-properties.js';
10
10
  /**
11
11
  * The table height command.
12
12
  *
@@ -5,8 +5,8 @@
5
5
  /**
6
6
  * @module table/tableproperties/commands/tablepropertycommand
7
7
  */
8
- import type { Batch, Element } from 'ckeditor5/src/engine';
9
- import { Command, type Editor } from 'ckeditor5/src/core';
8
+ import type { Batch, Element } from 'ckeditor5/src/engine.js';
9
+ import { Command, type Editor } from 'ckeditor5/src/core.js';
10
10
  export interface TablePropertyCommandExecuteOptions {
11
11
  batch?: Batch;
12
12
  columnWidths?: string;
@@ -2,7 +2,7 @@
2
2
  * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
- import { Command } from 'ckeditor5/src/core';
5
+ import { Command } from 'ckeditor5/src/core.js';
6
6
  /**
7
7
  * The table cell attribute command.
8
8
  *
@@ -5,8 +5,8 @@
5
5
  /**
6
6
  * @module table/tableproperties/commands/tablewidthcommand
7
7
  */
8
- import TablePropertyCommand from './tablepropertycommand';
9
- import type { Editor } from 'ckeditor5/src/core';
8
+ import TablePropertyCommand from './tablepropertycommand.js';
9
+ import type { Editor } from 'ckeditor5/src/core.js';
10
10
  /**
11
11
  * The table width command.
12
12
  *
@@ -5,8 +5,8 @@
5
5
  /**
6
6
  * @module table/tableproperties/commands/tablewidthcommand
7
7
  */
8
- import TablePropertyCommand from './tablepropertycommand';
9
- import { addDefaultUnitToNumericValue } from '../../utils/table-properties';
8
+ import TablePropertyCommand from './tablepropertycommand.js';
9
+ import { addDefaultUnitToNumericValue } from '../../utils/table-properties.js';
10
10
  /**
11
11
  * The table width command.
12
12
  *
@@ -5,8 +5,8 @@
5
5
  /**
6
6
  * @module table/tableproperties/tablepropertiesediting
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import TableEditing from '../tableediting';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import TableEditing from '../tableediting.js';
10
10
  /**
11
11
  * The table properties editing feature.
12
12
  *