@ckeditor/ckeditor5-table 37.0.0-alpha.2 → 37.0.0-rc.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 (79) hide show
  1. package/build/table.js +1 -1
  2. package/lang/translations/ar.po +1 -1
  3. package/lang/translations/az.po +1 -1
  4. package/lang/translations/bg.po +1 -1
  5. package/lang/translations/bn.po +1 -1
  6. package/lang/translations/ca.po +1 -1
  7. package/lang/translations/cs.po +1 -1
  8. package/lang/translations/da.po +1 -1
  9. package/lang/translations/de-ch.po +1 -1
  10. package/lang/translations/de.po +1 -1
  11. package/lang/translations/el.po +1 -1
  12. package/lang/translations/en-au.po +1 -1
  13. package/lang/translations/en-gb.po +1 -1
  14. package/lang/translations/en.po +1 -1
  15. package/lang/translations/es.po +1 -1
  16. package/lang/translations/et.po +1 -1
  17. package/lang/translations/fa.po +1 -1
  18. package/lang/translations/fi.po +1 -1
  19. package/lang/translations/fr.po +1 -1
  20. package/lang/translations/gl.po +1 -1
  21. package/lang/translations/he.po +1 -1
  22. package/lang/translations/hi.po +1 -1
  23. package/lang/translations/hr.po +1 -1
  24. package/lang/translations/hu.po +1 -1
  25. package/lang/translations/id.po +1 -1
  26. package/lang/translations/it.po +1 -1
  27. package/lang/translations/ja.po +1 -1
  28. package/lang/translations/ko.po +1 -1
  29. package/lang/translations/ku.po +1 -1
  30. package/lang/translations/lt.po +1 -1
  31. package/lang/translations/lv.po +1 -1
  32. package/lang/translations/ms.po +1 -1
  33. package/lang/translations/nb.po +1 -1
  34. package/lang/translations/ne.po +1 -1
  35. package/lang/translations/nl.po +1 -1
  36. package/lang/translations/no.po +1 -1
  37. package/lang/translations/pl.po +1 -1
  38. package/lang/translations/pt-br.po +1 -1
  39. package/lang/translations/pt.po +1 -1
  40. package/lang/translations/ro.po +1 -1
  41. package/lang/translations/ru.po +1 -1
  42. package/lang/translations/sk.po +1 -1
  43. package/lang/translations/sq.po +1 -1
  44. package/lang/translations/sr-latn.po +1 -1
  45. package/lang/translations/sr.po +1 -1
  46. package/lang/translations/sv.po +1 -1
  47. package/lang/translations/th.po +1 -1
  48. package/lang/translations/tk.po +1 -1
  49. package/lang/translations/tr.po +1 -1
  50. package/lang/translations/tt.po +1 -1
  51. package/lang/translations/ug.po +1 -1
  52. package/lang/translations/uk.po +1 -1
  53. package/lang/translations/ur.po +1 -1
  54. package/lang/translations/uz.po +1 -1
  55. package/lang/translations/vi.po +1 -1
  56. package/lang/translations/zh-cn.po +1 -1
  57. package/lang/translations/zh.po +1 -1
  58. package/package.json +27 -27
  59. package/src/plaintableoutput.d.ts +3 -2
  60. package/src/table.d.ts +10 -3
  61. package/src/table.js +1 -1
  62. package/src/tablecaption.d.ts +4 -2
  63. package/src/tablecellproperties/tablecellpropertiesediting.d.ts +4 -2
  64. package/src/tablecellproperties/tablecellpropertiesui.d.ts +3 -2
  65. package/src/tablecellproperties.d.ts +5 -3
  66. package/src/tablecellproperties.js +1 -1
  67. package/src/tablecellwidth/tablecellwidthediting.d.ts +3 -2
  68. package/src/tableclipboard.d.ts +4 -2
  69. package/src/tablecolumnresize/tablecolumnresizeediting.d.ts +4 -2
  70. package/src/tablecolumnresize.d.ts +4 -2
  71. package/src/tableediting.d.ts +3 -2
  72. package/src/tablekeyboard.d.ts +7 -2
  73. package/src/tablemouse.d.ts +4 -2
  74. package/src/tableproperties/tablepropertiesediting.d.ts +3 -2
  75. package/src/tableproperties/tablepropertiesui.d.ts +3 -2
  76. package/src/tableproperties.d.ts +5 -3
  77. package/src/tableproperties.js +1 -1
  78. package/src/tableselection.d.ts +3 -2
  79. package/src/tabletoolbar.d.ts +3 -2
@@ -5,11 +5,13 @@
5
5
  /**
6
6
  * @module table/tablecellproperties
7
7
  */
8
- import { Plugin, type PluginDependencies } from 'ckeditor5/src/core';
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ import TableCellPropertiesUI from './tablecellproperties/tablecellpropertiesui';
10
+ import TableCellPropertiesEditing from './tablecellproperties/tablecellpropertiesediting';
9
11
  /**
10
12
  * The table cell properties feature. Enables support for setting properties of table cells (size, border, background, etc.).
11
13
  *
12
- * Read more in the {@glink features/table#table-and-cell-styling-tools Table and cell styling tools} section.
14
+ * Read more in the {@glink features/tables/tables-styling Table and cell styling tools} section.
13
15
  * See also the {@link module:table/tableproperties~TableProperties} plugin.
14
16
  *
15
17
  * This is a "glue" plugin that loads the
@@ -24,5 +26,5 @@ export default class TableCellProperties extends Plugin {
24
26
  /**
25
27
  * @inheritDoc
26
28
  */
27
- static get requires(): PluginDependencies;
29
+ static get requires(): readonly [typeof TableCellPropertiesEditing, typeof TableCellPropertiesUI];
28
30
  }
@@ -11,7 +11,7 @@ import TableCellPropertiesEditing from './tablecellproperties/tablecellpropertie
11
11
  /**
12
12
  * The table cell properties feature. Enables support for setting properties of table cells (size, border, background, etc.).
13
13
  *
14
- * Read more in the {@glink features/table#table-and-cell-styling-tools Table and cell styling tools} section.
14
+ * Read more in the {@glink features/tables/tables-styling Table and cell styling tools} section.
15
15
  * See also the {@link module:table/tableproperties~TableProperties} plugin.
16
16
  *
17
17
  * This is a "glue" plugin that loads the
@@ -5,7 +5,8 @@
5
5
  /**
6
6
  * @module table/tablecellwidth/tablecellwidthediting
7
7
  */
8
- import { Plugin, type PluginDependencies } from 'ckeditor5/src/core';
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ import TableEditing from './../tableediting';
9
10
  /**
10
11
  * The table cell width editing feature.
11
12
  *
@@ -20,7 +21,7 @@ export default class TableCellWidthEditing extends Plugin {
20
21
  /**
21
22
  * @inheritDoc
22
23
  */
23
- static get requires(): PluginDependencies;
24
+ static get requires(): readonly [typeof TableEditing];
24
25
  /**
25
26
  * @inheritDoc
26
27
  */
@@ -2,9 +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, type PluginDependencies } from 'ckeditor5/src/core';
5
+ import { Plugin } from 'ckeditor5/src/core';
6
6
  import type { DocumentFragment, Element, Item, Model, Position, Writer } from 'ckeditor5/src/engine';
7
+ import TableSelection from './tableselection';
7
8
  import { type TableSlot } from './tablewalker';
9
+ import TableUtils from './tableutils';
8
10
  /**
9
11
  * This plugin adds support for copying/cutting/pasting fragments of tables.
10
12
  * It is loaded automatically by the {@link module:table/table~Table} plugin.
@@ -17,7 +19,7 @@ export default class TableClipboard extends Plugin {
17
19
  /**
18
20
  * @inheritDoc
19
21
  */
20
- static get requires(): PluginDependencies;
22
+ static get requires(): readonly [typeof TableSelection, typeof TableUtils];
21
23
  /**
22
24
  * @inheritDoc
23
25
  */
@@ -2,8 +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, type PluginDependencies } from 'ckeditor5/src/core';
5
+ import { Plugin, type Editor } from 'ckeditor5/src/core';
6
6
  import type { Element } from 'ckeditor5/src/engine';
7
+ import TableEditing from '../tableediting';
8
+ import TableUtils from '../tableutils';
7
9
  /**
8
10
  * The table column resize editing plugin.
9
11
  */
@@ -36,7 +38,7 @@ export default class TableColumnResizeEditing extends Plugin {
36
38
  /**
37
39
  * @inheritDoc
38
40
  */
39
- static get requires(): PluginDependencies;
41
+ static get requires(): readonly [typeof TableEditing, typeof TableUtils];
40
42
  /**
41
43
  * @inheritDoc
42
44
  */
@@ -5,7 +5,9 @@
5
5
  /**
6
6
  * @module table/tablecolumnresize
7
7
  */
8
- import { Plugin, type PluginDependencies } from 'ckeditor5/src/core';
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ import TableColumnResizeEditing from './tablecolumnresize/tablecolumnresizeediting';
10
+ import TableCellWidthEditing from './tablecellwidth/tablecellwidthediting';
9
11
  import '../theme/tablecolumnresize.css';
10
12
  /**
11
13
  * The table column resize feature.
@@ -16,7 +18,7 @@ export default class TableColumnResize extends Plugin {
16
18
  /**
17
19
  * @inheritDoc
18
20
  */
19
- static get requires(): PluginDependencies;
21
+ static get requires(): readonly [typeof TableColumnResizeEditing, typeof TableCellWidthEditing];
20
22
  /**
21
23
  * @inheritDoc
22
24
  */
@@ -5,8 +5,9 @@
5
5
  /**
6
6
  * @module table/tableediting
7
7
  */
8
- import { Plugin, type Editor, type PluginDependencies } from 'ckeditor5/src/core';
8
+ import { Plugin, type Editor } from 'ckeditor5/src/core';
9
9
  import type { PositionOffset, SlotFilter } from 'ckeditor5/src/engine';
10
+ import TableUtils from '../src/tableutils';
10
11
  import '../theme/tableediting.css';
11
12
  /**
12
13
  * The table editing feature.
@@ -23,7 +24,7 @@ export default class TableEditing extends Plugin {
23
24
  /**
24
25
  * @inheritDoc
25
26
  */
26
- static get requires(): PluginDependencies;
27
+ static get requires(): readonly [typeof TableUtils];
27
28
  /**
28
29
  * @inheritDoc
29
30
  */
@@ -2,7 +2,12 @@
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 PluginDependencies } from 'ckeditor5/src/core';
5
+ /**
6
+ * @module table/tablekeyboard
7
+ */
8
+ import TableSelection from './tableselection';
9
+ import TableUtils from './tableutils';
10
+ import { Plugin } from 'ckeditor5/src/core';
6
11
  import { type ArrowKeyCodeDirection } from 'ckeditor5/src/utils';
7
12
  import type { Element } from 'ckeditor5/src/engine';
8
13
  /**
@@ -17,7 +22,7 @@ export default class TableKeyboard extends Plugin {
17
22
  /**
18
23
  * @inheritDoc
19
24
  */
20
- static get requires(): PluginDependencies;
25
+ static get requires(): readonly [typeof TableSelection, typeof TableUtils];
21
26
  /**
22
27
  * @inheritDoc
23
28
  */
@@ -5,7 +5,9 @@
5
5
  /**
6
6
  * @module table/tablemouse
7
7
  */
8
- import { Plugin, type PluginDependencies } from 'ckeditor5/src/core';
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ import TableSelection from './tableselection';
10
+ import TableUtils from './tableutils';
9
11
  /**
10
12
  * This plugin enables a table cells' selection with the mouse.
11
13
  * It is loaded automatically by the {@link module:table/table~Table} plugin.
@@ -18,7 +20,7 @@ export default class TableMouse extends Plugin {
18
20
  /**
19
21
  * @inheritDoc
20
22
  */
21
- static get requires(): PluginDependencies;
23
+ static get requires(): readonly [typeof TableSelection, typeof TableUtils];
22
24
  /**
23
25
  * @inheritDoc
24
26
  */
@@ -5,7 +5,8 @@
5
5
  /**
6
6
  * @module table/tableproperties/tablepropertiesediting
7
7
  */
8
- import { Plugin, type PluginDependencies } from 'ckeditor5/src/core';
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ import TableEditing from '../tableediting';
9
10
  /**
10
11
  * The table properties editing feature.
11
12
  *
@@ -31,7 +32,7 @@ export default class TablePropertiesEditing extends Plugin {
31
32
  /**
32
33
  * @inheritDoc
33
34
  */
34
- static get requires(): PluginDependencies;
35
+ static get requires(): readonly [typeof TableEditing];
35
36
  /**
36
37
  * @inheritDoc
37
38
  */
@@ -5,7 +5,8 @@
5
5
  /**
6
6
  * @module table/tableproperties/tablepropertiesui
7
7
  */
8
- import { type Editor, Plugin, type PluginDependencies } from 'ckeditor5/src/core';
8
+ import { type Editor, Plugin } from 'ckeditor5/src/core';
9
+ import { ContextualBalloon } from 'ckeditor5/src/ui';
9
10
  import TablePropertiesView from './ui/tablepropertiesview';
10
11
  /**
11
12
  * The table properties UI plugin. It introduces the `'tableProperties'` button
@@ -39,7 +40,7 @@ export default class TablePropertiesUI extends Plugin {
39
40
  /**
40
41
  * @inheritDoc
41
42
  */
42
- static get requires(): PluginDependencies;
43
+ static get requires(): readonly [typeof ContextualBalloon];
43
44
  /**
44
45
  * @inheritDoc
45
46
  */
@@ -5,11 +5,13 @@
5
5
  /**
6
6
  * @module table/tableproperties
7
7
  */
8
- import { Plugin, type PluginDependencies } from 'ckeditor5/src/core';
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ import TablePropertiesEditing from './tableproperties/tablepropertiesediting';
10
+ import TablePropertiesUI from './tableproperties/tablepropertiesui';
9
11
  /**
10
12
  * The table properties feature. Enables support for setting properties of tables (size, border, background, etc.).
11
13
  *
12
- * Read more in the {@glink features/table#table-and-cell-styling-tools Table and cell styling tools} section.
14
+ * Read more in the {@glink features/tables/tables-styling Table and cell styling tools} section.
13
15
  * See also the {@link module:table/tablecellproperties~TableCellProperties} plugin.
14
16
  *
15
17
  * This is a "glue" plugin that loads the
@@ -24,5 +26,5 @@ export default class TableProperties extends Plugin {
24
26
  /**
25
27
  * @inheritDoc
26
28
  */
27
- static get requires(): PluginDependencies;
29
+ static get requires(): readonly [typeof TablePropertiesEditing, typeof TablePropertiesUI];
28
30
  }
@@ -11,7 +11,7 @@ import TablePropertiesUI from './tableproperties/tablepropertiesui';
11
11
  /**
12
12
  * The table properties feature. Enables support for setting properties of tables (size, border, background, etc.).
13
13
  *
14
- * Read more in the {@glink features/table#table-and-cell-styling-tools Table and cell styling tools} section.
14
+ * Read more in the {@glink features/tables/tables-styling Table and cell styling tools} section.
15
15
  * See also the {@link module:table/tablecellproperties~TableCellProperties} plugin.
16
16
  *
17
17
  * This is a "glue" plugin that loads the
@@ -5,8 +5,9 @@
5
5
  /**
6
6
  * @module table/tableselection
7
7
  */
8
- import { Plugin, type PluginDependencies } from 'ckeditor5/src/core';
8
+ import { Plugin } from 'ckeditor5/src/core';
9
9
  import type { Element, DocumentFragment } from 'ckeditor5/src/engine';
10
+ import TableUtils from './tableutils';
10
11
  import '../theme/tableselection.css';
11
12
  /**
12
13
  * This plugin enables the advanced table cells, rows and columns selection.
@@ -20,7 +21,7 @@ export default class TableSelection extends Plugin {
20
21
  /**
21
22
  * @inheritDoc
22
23
  */
23
- static get requires(): PluginDependencies;
24
+ static get requires(): readonly [typeof TableUtils, typeof TableUtils];
24
25
  /**
25
26
  * @inheritDoc
26
27
  */
@@ -5,7 +5,8 @@
5
5
  /**
6
6
  * @module table/tabletoolbar
7
7
  */
8
- import { Plugin, type PluginDependencies } from 'ckeditor5/src/core';
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ import { WidgetToolbarRepository } from 'ckeditor5/src/widget';
9
10
  /**
10
11
  * The table toolbar class. It creates toolbars for the table feature and its content (for now only for the table cell content).
11
12
  *
@@ -19,7 +20,7 @@ export default class TableToolbar extends Plugin {
19
20
  /**
20
21
  * @inheritDoc
21
22
  */
22
- static get requires(): PluginDependencies;
23
+ static get requires(): readonly [typeof WidgetToolbarRepository];
23
24
  /**
24
25
  * @inheritDoc
25
26
  */