@ckeditor/ckeditor5-table 0.0.0-nightly-20231214.0 → 0.0.0-nightly-20231216.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 (158) hide show
  1. package/CHANGELOG.md +2 -2
  2. package/build/table.js +1 -1
  3. package/package.json +3 -2
  4. package/src/augmentation.d.ts +1 -1
  5. package/src/commands/insertcolumncommand.d.ts +1 -1
  6. package/src/commands/insertcolumncommand.js +1 -1
  7. package/src/commands/insertrowcommand.d.ts +1 -1
  8. package/src/commands/insertrowcommand.js +1 -1
  9. package/src/commands/inserttablecommand.d.ts +1 -1
  10. package/src/commands/inserttablecommand.js +1 -1
  11. package/src/commands/mergecellcommand.d.ts +3 -3
  12. package/src/commands/mergecellcommand.js +4 -4
  13. package/src/commands/mergecellscommand.d.ts +1 -1
  14. package/src/commands/mergecellscommand.js +4 -4
  15. package/src/commands/removecolumncommand.d.ts +1 -1
  16. package/src/commands/removecolumncommand.js +2 -2
  17. package/src/commands/removerowcommand.d.ts +1 -1
  18. package/src/commands/removerowcommand.js +1 -1
  19. package/src/commands/selectcolumncommand.d.ts +1 -1
  20. package/src/commands/selectcolumncommand.js +2 -2
  21. package/src/commands/selectrowcommand.d.ts +1 -1
  22. package/src/commands/selectrowcommand.js +1 -1
  23. package/src/commands/setheadercolumncommand.d.ts +1 -1
  24. package/src/commands/setheadercolumncommand.js +3 -3
  25. package/src/commands/setheaderrowcommand.d.ts +1 -1
  26. package/src/commands/setheaderrowcommand.js +3 -3
  27. package/src/commands/splitcellcommand.d.ts +1 -1
  28. package/src/commands/splitcellcommand.js +1 -1
  29. package/src/converters/downcast.d.ts +3 -3
  30. package/src/converters/downcast.js +2 -2
  31. package/src/converters/table-caption-post-fixer.d.ts +1 -1
  32. package/src/converters/table-cell-paragraph-post-fixer.d.ts +1 -1
  33. package/src/converters/table-cell-refresh-handler.d.ts +1 -1
  34. package/src/converters/table-cell-refresh-handler.js +1 -1
  35. package/src/converters/table-headings-refresh-handler.d.ts +1 -1
  36. package/src/converters/table-headings-refresh-handler.js +1 -1
  37. package/src/converters/table-layout-post-fixer.d.ts +1 -1
  38. package/src/converters/table-layout-post-fixer.js +2 -2
  39. package/src/converters/tableproperties.d.ts +1 -1
  40. package/src/converters/upcasttable.d.ts +1 -1
  41. package/src/converters/upcasttable.js +2 -2
  42. package/src/index.d.ts +53 -53
  43. package/src/index.js +23 -23
  44. package/src/plaintableoutput.d.ts +2 -2
  45. package/src/plaintableoutput.js +2 -2
  46. package/src/table.d.ts +8 -8
  47. package/src/table.js +8 -8
  48. package/src/tablecaption/tablecaptionediting.d.ts +2 -2
  49. package/src/tablecaption/tablecaptionediting.js +6 -6
  50. package/src/tablecaption/tablecaptionui.d.ts +1 -1
  51. package/src/tablecaption/tablecaptionui.js +3 -3
  52. package/src/tablecaption/toggletablecaptioncommand.d.ts +1 -1
  53. package/src/tablecaption/toggletablecaptioncommand.js +3 -3
  54. package/src/tablecaption/utils.d.ts +1 -1
  55. package/src/tablecaption/utils.js +1 -1
  56. package/src/tablecaption.d.ts +3 -3
  57. package/src/tablecaption.js +3 -3
  58. package/src/tablecellproperties/commands/tablecellbackgroundcolorcommand.d.ts +2 -2
  59. package/src/tablecellproperties/commands/tablecellbackgroundcolorcommand.js +1 -1
  60. package/src/tablecellproperties/commands/tablecellbordercolorcommand.d.ts +3 -3
  61. package/src/tablecellproperties/commands/tablecellbordercolorcommand.js +2 -2
  62. package/src/tablecellproperties/commands/tablecellborderstylecommand.d.ts +3 -3
  63. package/src/tablecellproperties/commands/tablecellborderstylecommand.js +2 -2
  64. package/src/tablecellproperties/commands/tablecellborderwidthcommand.d.ts +3 -3
  65. package/src/tablecellproperties/commands/tablecellborderwidthcommand.js +2 -2
  66. package/src/tablecellproperties/commands/tablecellheightcommand.d.ts +2 -2
  67. package/src/tablecellproperties/commands/tablecellheightcommand.js +2 -2
  68. package/src/tablecellproperties/commands/tablecellhorizontalalignmentcommand.d.ts +2 -2
  69. package/src/tablecellproperties/commands/tablecellhorizontalalignmentcommand.js +1 -1
  70. package/src/tablecellproperties/commands/tablecellpaddingcommand.d.ts +3 -3
  71. package/src/tablecellproperties/commands/tablecellpaddingcommand.js +2 -2
  72. package/src/tablecellproperties/commands/tablecellpropertycommand.d.ts +2 -2
  73. package/src/tablecellproperties/commands/tablecellpropertycommand.js +1 -1
  74. package/src/tablecellproperties/commands/tablecellverticalalignmentcommand.d.ts +2 -2
  75. package/src/tablecellproperties/commands/tablecellverticalalignmentcommand.js +1 -1
  76. package/src/tablecellproperties/tablecellpropertiesediting.d.ts +3 -3
  77. package/src/tablecellproperties/tablecellpropertiesediting.js +15 -15
  78. package/src/tablecellproperties/tablecellpropertiesui.d.ts +3 -3
  79. package/src/tablecellproperties/tablecellpropertiesui.js +7 -7
  80. package/src/tablecellproperties/ui/tablecellpropertiesview.d.ts +4 -4
  81. package/src/tablecellproperties/ui/tablecellpropertiesview.js +5 -5
  82. package/src/tablecellproperties.d.ts +3 -3
  83. package/src/tablecellproperties.js +3 -3
  84. package/src/tablecellwidth/commands/tablecellwidthcommand.d.ts +2 -2
  85. package/src/tablecellwidth/commands/tablecellwidthcommand.js +2 -2
  86. package/src/tablecellwidth/tablecellwidthediting.d.ts +2 -2
  87. package/src/tablecellwidth/tablecellwidthediting.js +5 -5
  88. package/src/tableclipboard.d.ts +5 -5
  89. package/src/tableclipboard.js +5 -5
  90. package/src/tablecolumnresize/converters.d.ts +2 -2
  91. package/src/tablecolumnresize/converters.js +1 -1
  92. package/src/tablecolumnresize/tablecolumnresizeediting.d.ts +4 -4
  93. package/src/tablecolumnresize/tablecolumnresizeediting.js +10 -10
  94. package/src/tablecolumnresize/tablewidthscommand.d.ts +2 -2
  95. package/src/tablecolumnresize/tablewidthscommand.js +2 -2
  96. package/src/tablecolumnresize/utils.d.ts +3 -3
  97. package/src/tablecolumnresize/utils.js +2 -2
  98. package/src/tablecolumnresize.d.ts +3 -3
  99. package/src/tablecolumnresize.js +3 -3
  100. package/src/tableconfig.d.ts +2 -2
  101. package/src/tableediting.d.ts +3 -3
  102. package/src/tableediting.js +20 -20
  103. package/src/tablekeyboard.d.ts +5 -5
  104. package/src/tablekeyboard.js +5 -5
  105. package/src/tablemouse/mouseeventsobserver.d.ts +1 -1
  106. package/src/tablemouse/mouseeventsobserver.js +1 -1
  107. package/src/tablemouse.d.ts +3 -3
  108. package/src/tablemouse.js +4 -4
  109. package/src/tableproperties/commands/tablealignmentcommand.d.ts +2 -2
  110. package/src/tableproperties/commands/tablealignmentcommand.js +1 -1
  111. package/src/tableproperties/commands/tablebackgroundcolorcommand.d.ts +2 -2
  112. package/src/tableproperties/commands/tablebackgroundcolorcommand.js +1 -1
  113. package/src/tableproperties/commands/tablebordercolorcommand.d.ts +3 -3
  114. package/src/tableproperties/commands/tablebordercolorcommand.js +2 -2
  115. package/src/tableproperties/commands/tableborderstylecommand.d.ts +3 -3
  116. package/src/tableproperties/commands/tableborderstylecommand.js +2 -2
  117. package/src/tableproperties/commands/tableborderwidthcommand.d.ts +3 -3
  118. package/src/tableproperties/commands/tableborderwidthcommand.js +2 -2
  119. package/src/tableproperties/commands/tableheightcommand.d.ts +2 -2
  120. package/src/tableproperties/commands/tableheightcommand.js +2 -2
  121. package/src/tableproperties/commands/tablepropertycommand.d.ts +2 -2
  122. package/src/tableproperties/commands/tablepropertycommand.js +2 -2
  123. package/src/tableproperties/commands/tablewidthcommand.d.ts +2 -2
  124. package/src/tableproperties/commands/tablewidthcommand.js +2 -2
  125. package/src/tableproperties/tablepropertiesediting.d.ts +2 -2
  126. package/src/tableproperties/tablepropertiesediting.js +12 -12
  127. package/src/tableproperties/tablepropertiesui.d.ts +3 -3
  128. package/src/tableproperties/tablepropertiesui.js +7 -7
  129. package/src/tableproperties/ui/tablepropertiesview.d.ts +4 -4
  130. package/src/tableproperties/ui/tablepropertiesview.js +5 -5
  131. package/src/tableproperties.d.ts +3 -3
  132. package/src/tableproperties.js +3 -3
  133. package/src/tableselection.d.ts +3 -3
  134. package/src/tableselection.js +5 -5
  135. package/src/tabletoolbar.d.ts +2 -2
  136. package/src/tabletoolbar.js +3 -3
  137. package/src/tableui.d.ts +1 -1
  138. package/src/tableui.js +4 -4
  139. package/src/tableutils.d.ts +3 -3
  140. package/src/tableutils.js +6 -6
  141. package/src/tablewalker.d.ts +1 -1
  142. package/src/ui/colorinputview.d.ts +2 -2
  143. package/src/ui/colorinputview.js +2 -2
  144. package/src/ui/formrowview.d.ts +2 -2
  145. package/src/ui/formrowview.js +1 -1
  146. package/src/ui/inserttableview.d.ts +2 -2
  147. package/src/ui/inserttableview.js +2 -2
  148. package/src/utils/common.d.ts +2 -2
  149. package/src/utils/common.js +1 -1
  150. package/src/utils/structure.d.ts +3 -3
  151. package/src/utils/structure.js +2 -2
  152. package/src/utils/table-properties.d.ts +1 -1
  153. package/src/utils/ui/contextualballoon.d.ts +2 -2
  154. package/src/utils/ui/contextualballoon.js +4 -4
  155. package/src/utils/ui/table-properties.d.ts +5 -5
  156. package/src/utils/ui/table-properties.js +4 -4
  157. package/src/utils/ui/widget.d.ts +1 -1
  158. package/src/utils/ui/widget.js +1 -1
@@ -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, translateColSpanAttribute } from './utils';
5
+ import { normalizeColumnWidths, updateColumnElements, getColumnGroupElement, getTableColumnElements, translateColSpanAttribute } 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, ColorPickerConfig } 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
  *
@@ -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,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 { getSelectionAffectedTable } from '../../utils/common';
5
+ import { Command } from 'ckeditor5/src/core.js';
6
+ import { getSelectionAffectedTable } from '../../utils/common.js';
7
7
  /**
8
8
  * The table cell attribute command.
9
9
  *
@@ -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
  *
@@ -5,18 +5,18 @@
5
5
  /**
6
6
  * @module table/tableproperties/tablepropertiesediting
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import { addBackgroundRules, addBorderRules } from 'ckeditor5/src/engine';
10
- import TableEditing from '../tableediting';
11
- import { downcastAttributeToStyle, downcastTableAttribute, upcastBorderStyles, upcastStyleToAttribute } from '../converters/tableproperties';
12
- import TableBackgroundColorCommand from './commands/tablebackgroundcolorcommand';
13
- import TableBorderColorCommand from './commands/tablebordercolorcommand';
14
- import TableBorderStyleCommand from './commands/tableborderstylecommand';
15
- import TableBorderWidthCommand from './commands/tableborderwidthcommand';
16
- import TableWidthCommand from './commands/tablewidthcommand';
17
- import TableHeightCommand from './commands/tableheightcommand';
18
- import TableAlignmentCommand from './commands/tablealignmentcommand';
19
- import { getNormalizedDefaultProperties } from '../utils/table-properties';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import { addBackgroundRules, addBorderRules } from 'ckeditor5/src/engine.js';
10
+ import TableEditing from '../tableediting.js';
11
+ import { downcastAttributeToStyle, downcastTableAttribute, upcastBorderStyles, upcastStyleToAttribute } from '../converters/tableproperties.js';
12
+ import TableBackgroundColorCommand from './commands/tablebackgroundcolorcommand.js';
13
+ import TableBorderColorCommand from './commands/tablebordercolorcommand.js';
14
+ import TableBorderStyleCommand from './commands/tableborderstylecommand.js';
15
+ import TableBorderWidthCommand from './commands/tableborderwidthcommand.js';
16
+ import TableWidthCommand from './commands/tablewidthcommand.js';
17
+ import TableHeightCommand from './commands/tableheightcommand.js';
18
+ import TableAlignmentCommand from './commands/tablealignmentcommand.js';
19
+ import { getNormalizedDefaultProperties } from '../utils/table-properties.js';
20
20
  const ALIGN_VALUES_REG_EXP = /^(left|center|right)$/;
21
21
  const FLOAT_VALUES_REG_EXP = /^(left|none|right)$/;
22
22
  /**