@ckeditor/ckeditor5-table 45.2.1 → 46.0.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/table.js +1 -1
- package/dist/index-content.css +6 -5
- package/dist/index-editor.css +46 -46
- package/dist/index.css +63 -62
- package/dist/index.css.map +1 -1
- package/dist/index.js +305 -49
- package/dist/index.js.map +1 -1
- package/package.json +10 -10
- package/src/commands/insertcolumncommand.d.ts +1 -1
- package/src/commands/insertcolumncommand.js +1 -1
- package/src/commands/insertrowcommand.d.ts +1 -1
- package/src/commands/insertrowcommand.js +1 -1
- package/src/commands/inserttablecommand.d.ts +1 -1
- package/src/commands/inserttablecommand.js +1 -1
- package/src/commands/inserttablelayoutcommand.d.ts +1 -1
- package/src/commands/inserttablelayoutcommand.js +1 -1
- package/src/commands/mergecellcommand.d.ts +3 -3
- package/src/commands/mergecellcommand.js +2 -2
- package/src/commands/mergecellscommand.d.ts +1 -1
- package/src/commands/mergecellscommand.js +2 -2
- package/src/commands/removecolumncommand.d.ts +1 -1
- package/src/commands/removecolumncommand.js +2 -2
- package/src/commands/removerowcommand.d.ts +1 -1
- package/src/commands/removerowcommand.js +1 -1
- package/src/commands/selectcolumncommand.d.ts +1 -1
- package/src/commands/selectcolumncommand.js +2 -2
- package/src/commands/selectrowcommand.d.ts +1 -1
- package/src/commands/selectrowcommand.js +1 -1
- package/src/commands/setheadercolumncommand.d.ts +2 -2
- package/src/commands/setheadercolumncommand.js +1 -1
- package/src/commands/setheaderrowcommand.d.ts +2 -2
- package/src/commands/setheaderrowcommand.js +1 -1
- package/src/commands/splitcellcommand.d.ts +1 -1
- package/src/commands/splitcellcommand.js +1 -1
- package/src/converters/downcast.d.ts +21 -9
- package/src/converters/downcast.js +11 -3
- package/src/converters/table-caption-post-fixer.d.ts +3 -1
- package/src/converters/table-caption-post-fixer.js +3 -1
- package/src/converters/table-cell-paragraph-post-fixer.d.ts +3 -1
- package/src/converters/table-cell-paragraph-post-fixer.js +3 -1
- package/src/converters/table-cell-refresh-handler.d.ts +3 -1
- package/src/converters/table-cell-refresh-handler.js +3 -1
- package/src/converters/table-headings-refresh-handler.d.ts +3 -1
- package/src/converters/table-headings-refresh-handler.js +4 -2
- package/src/converters/table-layout-post-fixer.d.ts +3 -1
- package/src/converters/table-layout-post-fixer.js +4 -2
- package/src/converters/tableproperties.d.ts +17 -1
- package/src/converters/tableproperties.js +49 -2
- package/src/converters/upcasttable.d.ts +6 -1
- package/src/converters/upcasttable.js +6 -1
- package/src/index.d.ts +89 -56
- package/src/index.js +84 -24
- package/src/plaintableoutput.d.ts +2 -2
- package/src/plaintableoutput.js +2 -2
- package/src/table.d.ts +7 -7
- package/src/table.js +7 -7
- package/src/tablecaption/tablecaptionediting.d.ts +6 -6
- package/src/tablecaption/tablecaptionediting.js +8 -8
- package/src/tablecaption/tablecaptionui.d.ts +1 -1
- package/src/tablecaption/tablecaptionui.js +1 -1
- package/src/tablecaption/toggletablecaptioncommand.d.ts +1 -1
- package/src/tablecaption/toggletablecaptioncommand.js +1 -1
- package/src/tablecaption/utils.d.ts +8 -4
- package/src/tablecaption/utils.js +4 -0
- package/src/tablecaption.d.ts +3 -3
- package/src/tablecaption.js +3 -3
- package/src/tablecellproperties/commands/tablecellbackgroundcolorcommand.d.ts +2 -2
- package/src/tablecellproperties/commands/tablecellbackgroundcolorcommand.js +2 -2
- package/src/tablecellproperties/commands/tablecellbordercolorcommand.d.ts +4 -4
- package/src/tablecellproperties/commands/tablecellbordercolorcommand.js +2 -2
- package/src/tablecellproperties/commands/tablecellborderstylecommand.d.ts +4 -4
- package/src/tablecellproperties/commands/tablecellborderstylecommand.js +2 -2
- package/src/tablecellproperties/commands/tablecellborderwidthcommand.d.ts +4 -4
- package/src/tablecellproperties/commands/tablecellborderwidthcommand.js +2 -2
- package/src/tablecellproperties/commands/tablecellheightcommand.d.ts +2 -2
- package/src/tablecellproperties/commands/tablecellheightcommand.js +2 -2
- package/src/tablecellproperties/commands/tablecellhorizontalalignmentcommand.d.ts +2 -2
- package/src/tablecellproperties/commands/tablecellhorizontalalignmentcommand.js +2 -2
- package/src/tablecellproperties/commands/tablecellpaddingcommand.d.ts +4 -4
- package/src/tablecellproperties/commands/tablecellpaddingcommand.js +2 -2
- package/src/tablecellproperties/commands/tablecellpropertycommand.d.ts +3 -3
- package/src/tablecellproperties/commands/tablecellpropertycommand.js +1 -1
- package/src/tablecellproperties/commands/tablecellverticalalignmentcommand.d.ts +2 -2
- package/src/tablecellproperties/commands/tablecellverticalalignmentcommand.js +2 -2
- package/src/tablecellproperties/tablecellpropertiesediting.d.ts +3 -3
- package/src/tablecellproperties/tablecellpropertiesediting.js +44 -19
- package/src/tablecellproperties/tablecellpropertiesui.d.ts +2 -2
- package/src/tablecellproperties/tablecellpropertiesui.js +2 -2
- package/src/tablecellproperties/ui/tablecellpropertiesview.d.ts +2 -2
- package/src/tablecellproperties/ui/tablecellpropertiesview.js +1 -1
- package/src/tablecellproperties.d.ts +3 -3
- package/src/tablecellproperties.js +3 -3
- package/src/tablecellwidth/commands/tablecellwidthcommand.d.ts +2 -2
- package/src/tablecellwidth/commands/tablecellwidthcommand.js +2 -2
- package/src/tablecellwidth/tablecellwidthediting.d.ts +2 -2
- package/src/tablecellwidth/tablecellwidthediting.js +5 -3
- package/src/tableclipboard.d.ts +6 -6
- package/src/tableclipboard.js +4 -4
- package/src/tablecolumnresize/constants.d.ts +9 -0
- package/src/tablecolumnresize/constants.js +9 -0
- package/src/tablecolumnresize/converters.d.ts +11 -1
- package/src/tablecolumnresize/converters.js +16 -0
- package/src/tablecolumnresize/tablecolumnresizeediting.d.ts +7 -7
- package/src/tablecolumnresize/tablecolumnresizeediting.js +13 -11
- package/src/tablecolumnresize/tablewidthscommand.d.ts +3 -3
- package/src/tablecolumnresize/tablewidthscommand.js +1 -1
- package/src/tablecolumnresize/utils.d.ts +23 -11
- package/src/tablecolumnresize/utils.js +14 -2
- package/src/tablecolumnresize.d.ts +3 -3
- package/src/tablecolumnresize.js +3 -3
- package/src/tableconfig.d.ts +3 -1
- package/src/tableediting.d.ts +7 -7
- package/src/tableediting.js +19 -19
- package/src/tablekeyboard.d.ts +8 -8
- package/src/tablekeyboard.js +7 -7
- package/src/tablelayout/commands/tabletypecommand.d.ts +1 -1
- package/src/tablelayout/commands/tabletypecommand.js +1 -1
- package/src/tablelayout/tablelayoutediting.d.ts +2 -2
- package/src/tablelayout/tablelayoutediting.js +4 -4
- package/src/tablelayout/tablelayoutui.d.ts +1 -1
- package/src/tablelayout/tablelayoutui.js +4 -4
- package/src/tablelayout.d.ts +5 -5
- package/src/tablelayout.js +5 -5
- package/src/tablemouse/mouseeventsobserver.d.ts +13 -11
- package/src/tablemouse/mouseeventsobserver.js +4 -2
- package/src/tablemouse.d.ts +3 -3
- package/src/tablemouse.js +4 -4
- package/src/tableproperties/commands/tablealignmentcommand.d.ts +2 -2
- package/src/tableproperties/commands/tablealignmentcommand.js +2 -2
- package/src/tableproperties/commands/tablebackgroundcolorcommand.d.ts +2 -2
- package/src/tableproperties/commands/tablebackgroundcolorcommand.js +2 -2
- package/src/tableproperties/commands/tablebordercolorcommand.d.ts +4 -4
- package/src/tableproperties/commands/tablebordercolorcommand.js +2 -2
- package/src/tableproperties/commands/tableborderstylecommand.d.ts +4 -4
- package/src/tableproperties/commands/tableborderstylecommand.js +2 -2
- package/src/tableproperties/commands/tableborderwidthcommand.d.ts +4 -4
- package/src/tableproperties/commands/tableborderwidthcommand.js +2 -2
- package/src/tableproperties/commands/tableheightcommand.d.ts +2 -2
- package/src/tableproperties/commands/tableheightcommand.js +2 -2
- package/src/tableproperties/commands/tablepropertycommand.d.ts +4 -4
- package/src/tableproperties/commands/tablepropertycommand.js +1 -1
- package/src/tableproperties/commands/tablewidthcommand.d.ts +2 -2
- package/src/tableproperties/commands/tablewidthcommand.js +2 -2
- package/src/tableproperties/tablepropertiesediting.d.ts +2 -2
- package/src/tableproperties/tablepropertiesediting.js +49 -21
- package/src/tableproperties/tablepropertiesui.d.ts +2 -2
- package/src/tableproperties/tablepropertiesui.js +2 -2
- package/src/tableproperties/ui/tablepropertiesview.d.ts +2 -2
- package/src/tableproperties/ui/tablepropertiesview.js +1 -1
- package/src/tableproperties.d.ts +3 -3
- package/src/tableproperties.js +3 -3
- package/src/tableselection.d.ts +9 -9
- package/src/tableselection.js +4 -4
- package/src/tabletoolbar.d.ts +1 -1
- package/src/tabletoolbar.js +1 -1
- package/src/tableui.d.ts +1 -1
- package/src/tableui.js +4 -4
- package/src/tableutils.d.ts +25 -26
- package/src/tableutils.js +4 -4
- package/src/tablewalker.d.ts +8 -8
- package/src/tablewalker.js +2 -2
- package/src/ui/colorinputview.d.ts +6 -1
- package/src/ui/colorinputview.js +1 -1
- package/src/ui/inserttableview.d.ts +3 -1
- package/src/ui/inserttableview.js +3 -1
- package/src/utils/common.d.ts +16 -7
- package/src/utils/common.js +9 -1
- package/src/utils/structure.d.ts +24 -14
- package/src/utils/structure.js +11 -1
- package/src/utils/table-properties.d.ts +15 -2
- package/src/utils/table-properties.js +6 -0
- package/src/utils/ui/contextualballoon.d.ts +4 -3
- package/src/utils/ui/contextualballoon.js +1 -0
- package/src/utils/ui/table-properties.d.ts +20 -7
- package/src/utils/ui/table-properties.js +24 -11
- package/src/utils/ui/widget.d.ts +6 -0
- package/src/utils/ui/widget.js +6 -0
- package/theme/tablecaption.css +9 -8
- package/theme/tablecolumnresize.css +2 -2
package/src/tablelayout.js
CHANGED
|
@@ -6,16 +6,16 @@
|
|
|
6
6
|
* @module table/tablelayout
|
|
7
7
|
*/
|
|
8
8
|
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
-
import TableLayoutUI from './tablelayout/tablelayoutui.js';
|
|
10
|
-
import TableLayoutEditing from './tablelayout/tablelayoutediting.js';
|
|
11
|
-
import PlainTableOutput from './plaintableoutput.js';
|
|
12
|
-
import TableColumnResize from './tablecolumnresize.js';
|
|
9
|
+
import { TableLayoutUI } from './tablelayout/tablelayoutui.js';
|
|
10
|
+
import { TableLayoutEditing } from './tablelayout/tablelayoutediting.js';
|
|
11
|
+
import { PlainTableOutput } from './plaintableoutput.js';
|
|
12
|
+
import { TableColumnResize } from './tablecolumnresize.js';
|
|
13
13
|
/**
|
|
14
14
|
* The table plugin.
|
|
15
15
|
*
|
|
16
16
|
* For a detailed overview, check the {@glink features/tables/layout-tables Layout table feature documentation}.
|
|
17
17
|
*/
|
|
18
|
-
export
|
|
18
|
+
export class TableLayout extends Plugin {
|
|
19
19
|
/**
|
|
20
20
|
* @inheritDoc
|
|
21
21
|
*/
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module table/tablemouse/mouseeventsobserver
|
|
7
7
|
*/
|
|
8
|
-
import { DomEventObserver, type
|
|
8
|
+
import { DomEventObserver, type ViewDocumentDomEventData } from 'ckeditor5/src/engine.js';
|
|
9
9
|
/**
|
|
10
10
|
* The mouse selection event observer.
|
|
11
11
|
*
|
|
@@ -15,11 +15,13 @@ import { DomEventObserver, type DomEventData } from 'ckeditor5/src/engine.js';
|
|
|
15
15
|
* - `'mouseleave'`
|
|
16
16
|
*
|
|
17
17
|
* Note that this observer is disabled by default. To enable this observer, it needs to be added to
|
|
18
|
-
* {@link module:engine/view/view~
|
|
18
|
+
* {@link module:engine/view/view~EditingView} using the {@link module:engine/view/view~EditingView#addObserver} method.
|
|
19
19
|
*
|
|
20
20
|
* The observer is registered by the {@link module:table/tableselection~TableSelection} plugin.
|
|
21
|
+
*
|
|
22
|
+
* @internal
|
|
21
23
|
*/
|
|
22
|
-
export
|
|
24
|
+
export declare class MouseEventsObserver extends DomEventObserver<'mousemove' | 'mouseleave'> {
|
|
23
25
|
readonly domEventType: readonly ["mousemove", "mouseleave"];
|
|
24
26
|
/**
|
|
25
27
|
* @inheritDoc
|
|
@@ -33,15 +35,15 @@ export default class MouseEventsObserver extends DomEventObserver<'mousemove' |
|
|
|
33
35
|
*
|
|
34
36
|
* Note that this event is not available by default. To make it available,
|
|
35
37
|
* {@link module:table/tablemouse/mouseeventsobserver~MouseEventsObserver} needs to be added
|
|
36
|
-
* to {@link module:engine/view/view~
|
|
38
|
+
* to {@link module:engine/view/view~EditingView} using the {@link module:engine/view/view~EditingView#addObserver} method.
|
|
37
39
|
*
|
|
38
40
|
* @see module:table/tablemouse/mouseeventsobserver~MouseEventsObserver
|
|
39
|
-
* @eventName module:engine/view/document~
|
|
41
|
+
* @eventName module:engine/view/document~ViewDocument#mousemove
|
|
40
42
|
* @param data Event data.
|
|
41
43
|
*/
|
|
42
|
-
export type
|
|
44
|
+
export type ViewDocumentTableMouseMoveEvent = {
|
|
43
45
|
name: 'mousemove';
|
|
44
|
-
args: [data:
|
|
46
|
+
args: [data: ViewDocumentDomEventData<MouseEvent>];
|
|
45
47
|
};
|
|
46
48
|
/**
|
|
47
49
|
* Fired when the mouse is moved out of one of the editables.
|
|
@@ -50,13 +52,13 @@ export type ViewDocumentMouseMoveEvent = {
|
|
|
50
52
|
*
|
|
51
53
|
* Note that this event is not available by default. To make it available,
|
|
52
54
|
* {@link module:table/tablemouse/mouseeventsobserver~MouseEventsObserver} needs to be added
|
|
53
|
-
* to {@link module:engine/view/view~
|
|
55
|
+
* to {@link module:engine/view/view~EditingView} using the {@link module:engine/view/view~EditingView#addObserver} method.
|
|
54
56
|
*
|
|
55
57
|
* @see module:table/tablemouse/mouseeventsobserver~MouseEventsObserver
|
|
56
|
-
* @eventName module:engine/view/document~
|
|
58
|
+
* @eventName module:engine/view/document~ViewDocument#mouseleave
|
|
57
59
|
* @param data Event data.
|
|
58
60
|
*/
|
|
59
|
-
export type
|
|
61
|
+
export type ViewDocumentTableMouseLeaveEvent = {
|
|
60
62
|
name: 'mouseleave';
|
|
61
|
-
args: [data:
|
|
63
|
+
args: [data: ViewDocumentDomEventData<MouseEvent>];
|
|
62
64
|
};
|
|
@@ -15,11 +15,13 @@ import { DomEventObserver } from 'ckeditor5/src/engine.js';
|
|
|
15
15
|
* - `'mouseleave'`
|
|
16
16
|
*
|
|
17
17
|
* Note that this observer is disabled by default. To enable this observer, it needs to be added to
|
|
18
|
-
* {@link module:engine/view/view~
|
|
18
|
+
* {@link module:engine/view/view~EditingView} using the {@link module:engine/view/view~EditingView#addObserver} method.
|
|
19
19
|
*
|
|
20
20
|
* The observer is registered by the {@link module:table/tableselection~TableSelection} plugin.
|
|
21
|
+
*
|
|
22
|
+
* @internal
|
|
21
23
|
*/
|
|
22
|
-
export
|
|
24
|
+
export class MouseEventsObserver extends DomEventObserver {
|
|
23
25
|
domEventType = [
|
|
24
26
|
'mousemove', 'mouseleave'
|
|
25
27
|
];
|
package/src/tablemouse.d.ts
CHANGED
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
* @module table/tablemouse
|
|
7
7
|
*/
|
|
8
8
|
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
-
import TableSelection from './tableselection.js';
|
|
10
|
-
import TableUtils from './tableutils.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.
|
|
14
14
|
*/
|
|
15
|
-
export
|
|
15
|
+
export declare class TableMouse extends Plugin {
|
|
16
16
|
/**
|
|
17
17
|
* @inheritDoc
|
|
18
18
|
*/
|
package/src/tablemouse.js
CHANGED
|
@@ -6,14 +6,14 @@
|
|
|
6
6
|
* @module table/tablemouse
|
|
7
7
|
*/
|
|
8
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';
|
|
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.
|
|
15
15
|
*/
|
|
16
|
-
export
|
|
16
|
+
export class TableMouse extends Plugin {
|
|
17
17
|
/**
|
|
18
18
|
* @inheritDoc
|
|
19
19
|
*/
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* @module table/tableproperties/commands/tablealignmentcommand
|
|
7
7
|
*/
|
|
8
8
|
import type { Editor } from 'ckeditor5/src/core.js';
|
|
9
|
-
import TablePropertyCommand from './tablepropertycommand.js';
|
|
9
|
+
import { TablePropertyCommand } from './tablepropertycommand.js';
|
|
10
10
|
/**
|
|
11
11
|
* The table alignment command.
|
|
12
12
|
*
|
|
@@ -21,7 +21,7 @@ import TablePropertyCommand from './tablepropertycommand.js';
|
|
|
21
21
|
* } );
|
|
22
22
|
* ```
|
|
23
23
|
*/
|
|
24
|
-
export
|
|
24
|
+
export declare class TableAlignmentCommand extends TablePropertyCommand {
|
|
25
25
|
/**
|
|
26
26
|
* Creates a new `TableAlignmentCommand` instance.
|
|
27
27
|
*
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
|
-
import TablePropertyCommand from './tablepropertycommand.js';
|
|
5
|
+
import { TablePropertyCommand } from './tablepropertycommand.js';
|
|
6
6
|
/**
|
|
7
7
|
* The table alignment command.
|
|
8
8
|
*
|
|
@@ -17,7 +17,7 @@ import TablePropertyCommand from './tablepropertycommand.js';
|
|
|
17
17
|
* } );
|
|
18
18
|
* ```
|
|
19
19
|
*/
|
|
20
|
-
export
|
|
20
|
+
export class TableAlignmentCommand extends TablePropertyCommand {
|
|
21
21
|
/**
|
|
22
22
|
* Creates a new `TableAlignmentCommand` instance.
|
|
23
23
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* @module table/tableproperties/commands/tablebackgroundcolorcommand
|
|
7
7
|
*/
|
|
8
8
|
import type { Editor } from 'ckeditor5/src/core.js';
|
|
9
|
-
import TablePropertyCommand from './tablepropertycommand.js';
|
|
9
|
+
import { TablePropertyCommand } from './tablepropertycommand.js';
|
|
10
10
|
/**
|
|
11
11
|
* The table background color command.
|
|
12
12
|
*
|
|
@@ -21,7 +21,7 @@ import TablePropertyCommand from './tablepropertycommand.js';
|
|
|
21
21
|
* } );
|
|
22
22
|
* ```
|
|
23
23
|
*/
|
|
24
|
-
export
|
|
24
|
+
export declare class TableBackgroundColorCommand extends TablePropertyCommand {
|
|
25
25
|
/**
|
|
26
26
|
* Creates a new `TableBackgroundColorCommand` instance.
|
|
27
27
|
*
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
|
-
import TablePropertyCommand from './tablepropertycommand.js';
|
|
5
|
+
import { TablePropertyCommand } from './tablepropertycommand.js';
|
|
6
6
|
/**
|
|
7
7
|
* The table background color command.
|
|
8
8
|
*
|
|
@@ -17,7 +17,7 @@ import TablePropertyCommand from './tablepropertycommand.js';
|
|
|
17
17
|
* } );
|
|
18
18
|
* ```
|
|
19
19
|
*/
|
|
20
|
-
export
|
|
20
|
+
export class TableBackgroundColorCommand extends TablePropertyCommand {
|
|
21
21
|
/**
|
|
22
22
|
* Creates a new `TableBackgroundColorCommand` instance.
|
|
23
23
|
*
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module table/tableproperties/commands/tablebordercolorcommand
|
|
7
7
|
*/
|
|
8
|
-
import type {
|
|
8
|
+
import type { ModelElement } from 'ckeditor5/src/engine.js';
|
|
9
9
|
import type { Editor } from 'ckeditor5/src/core.js';
|
|
10
|
-
import TablePropertyCommand from './tablepropertycommand.js';
|
|
10
|
+
import { TablePropertyCommand } from './tablepropertycommand.js';
|
|
11
11
|
/**
|
|
12
12
|
* The table border color command.
|
|
13
13
|
*
|
|
@@ -22,7 +22,7 @@ import TablePropertyCommand from './tablepropertycommand.js';
|
|
|
22
22
|
* } );
|
|
23
23
|
* ```
|
|
24
24
|
*/
|
|
25
|
-
export
|
|
25
|
+
export declare class TableBorderColorCommand extends TablePropertyCommand {
|
|
26
26
|
/**
|
|
27
27
|
* Creates a new `TableBorderColorCommand` instance.
|
|
28
28
|
*
|
|
@@ -33,5 +33,5 @@ export default class TableBorderColorCommand extends TablePropertyCommand {
|
|
|
33
33
|
/**
|
|
34
34
|
* @inheritDoc
|
|
35
35
|
*/
|
|
36
|
-
protected _getValue(table:
|
|
36
|
+
protected _getValue(table: ModelElement): unknown;
|
|
37
37
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
|
-
import TablePropertyCommand from './tablepropertycommand.js';
|
|
5
|
+
import { TablePropertyCommand } from './tablepropertycommand.js';
|
|
6
6
|
import { getSingleValue } from '../../utils/table-properties.js';
|
|
7
7
|
/**
|
|
8
8
|
* The table border color command.
|
|
@@ -18,7 +18,7 @@ import { getSingleValue } from '../../utils/table-properties.js';
|
|
|
18
18
|
* } );
|
|
19
19
|
* ```
|
|
20
20
|
*/
|
|
21
|
-
export
|
|
21
|
+
export class TableBorderColorCommand extends TablePropertyCommand {
|
|
22
22
|
/**
|
|
23
23
|
* Creates a new `TableBorderColorCommand` instance.
|
|
24
24
|
*
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module table/tableproperties/commands/tableborderstylecommand
|
|
7
7
|
*/
|
|
8
|
-
import type {
|
|
9
|
-
import TablePropertyCommand from './tablepropertycommand.js';
|
|
8
|
+
import type { ModelElement } from 'ckeditor5/src/engine.js';
|
|
9
|
+
import { TablePropertyCommand } from './tablepropertycommand.js';
|
|
10
10
|
import type { Editor } from 'ckeditor5/src/core.js';
|
|
11
11
|
/**
|
|
12
12
|
* The table style border command.
|
|
@@ -22,7 +22,7 @@ import type { Editor } from 'ckeditor5/src/core.js';
|
|
|
22
22
|
* } );
|
|
23
23
|
* ```
|
|
24
24
|
*/
|
|
25
|
-
export
|
|
25
|
+
export declare class TableBorderStyleCommand extends TablePropertyCommand {
|
|
26
26
|
/**
|
|
27
27
|
* Creates a new `TableBorderStyleCommand` instance.
|
|
28
28
|
*
|
|
@@ -33,5 +33,5 @@ export default class TableBorderStyleCommand extends TablePropertyCommand {
|
|
|
33
33
|
/**
|
|
34
34
|
* @inheritDoc
|
|
35
35
|
*/
|
|
36
|
-
protected _getValue(table:
|
|
36
|
+
protected _getValue(table: ModelElement): unknown;
|
|
37
37
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
|
-
import TablePropertyCommand from './tablepropertycommand.js';
|
|
5
|
+
import { TablePropertyCommand } from './tablepropertycommand.js';
|
|
6
6
|
import { getSingleValue } from '../../utils/table-properties.js';
|
|
7
7
|
/**
|
|
8
8
|
* The table style border command.
|
|
@@ -18,7 +18,7 @@ import { getSingleValue } from '../../utils/table-properties.js';
|
|
|
18
18
|
* } );
|
|
19
19
|
* ```
|
|
20
20
|
*/
|
|
21
|
-
export
|
|
21
|
+
export class TableBorderStyleCommand extends TablePropertyCommand {
|
|
22
22
|
/**
|
|
23
23
|
* Creates a new `TableBorderStyleCommand` instance.
|
|
24
24
|
*
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module table/tableproperties/commands/tableborderwidthcommand
|
|
7
7
|
*/
|
|
8
|
-
import type {
|
|
8
|
+
import type { ModelElement } from 'ckeditor5/src/engine.js';
|
|
9
9
|
import type { Editor } from 'ckeditor5/src/core.js';
|
|
10
|
-
import TablePropertyCommand from './tablepropertycommand.js';
|
|
10
|
+
import { TablePropertyCommand } from './tablepropertycommand.js';
|
|
11
11
|
/**
|
|
12
12
|
* The table width border command.
|
|
13
13
|
*
|
|
@@ -32,7 +32,7 @@ import TablePropertyCommand from './tablepropertycommand.js';
|
|
|
32
32
|
*
|
|
33
33
|
* will set the `borderWidth` attribute to `'5px'` in the model.
|
|
34
34
|
*/
|
|
35
|
-
export
|
|
35
|
+
export declare class TableBorderWidthCommand extends TablePropertyCommand {
|
|
36
36
|
/**
|
|
37
37
|
* Creates a new `TableBorderWidthCommand` instance.
|
|
38
38
|
*
|
|
@@ -43,7 +43,7 @@ export default class TableBorderWidthCommand extends TablePropertyCommand {
|
|
|
43
43
|
/**
|
|
44
44
|
* @inheritDoc
|
|
45
45
|
*/
|
|
46
|
-
protected _getValue(table:
|
|
46
|
+
protected _getValue(table: ModelElement): string | undefined;
|
|
47
47
|
/**
|
|
48
48
|
* @inheritDoc
|
|
49
49
|
*/
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
|
-
import TablePropertyCommand from './tablepropertycommand.js';
|
|
5
|
+
import { TablePropertyCommand } from './tablepropertycommand.js';
|
|
6
6
|
import { addDefaultUnitToNumericValue, getSingleValue } from '../../utils/table-properties.js';
|
|
7
7
|
/**
|
|
8
8
|
* The table width border command.
|
|
@@ -28,7 +28,7 @@ import { addDefaultUnitToNumericValue, getSingleValue } from '../../utils/table-
|
|
|
28
28
|
*
|
|
29
29
|
* will set the `borderWidth` attribute to `'5px'` in the model.
|
|
30
30
|
*/
|
|
31
|
-
export
|
|
31
|
+
export class TableBorderWidthCommand extends TablePropertyCommand {
|
|
32
32
|
/**
|
|
33
33
|
* Creates a new `TableBorderWidthCommand` instance.
|
|
34
34
|
*
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module table/tableproperties/commands/tableheightcommand
|
|
7
7
|
*/
|
|
8
|
-
import TablePropertyCommand from './tablepropertycommand.js';
|
|
8
|
+
import { TablePropertyCommand } from './tablepropertycommand.js';
|
|
9
9
|
import type { Editor } from 'ckeditor5/src/core.js';
|
|
10
10
|
/**
|
|
11
11
|
* The table height command.
|
|
@@ -31,7 +31,7 @@ import type { Editor } from 'ckeditor5/src/core.js';
|
|
|
31
31
|
*
|
|
32
32
|
* will set the `height` attribute to `'50px'` in the model.
|
|
33
33
|
*/
|
|
34
|
-
export
|
|
34
|
+
export declare class TableHeightCommand extends TablePropertyCommand {
|
|
35
35
|
/**
|
|
36
36
|
* Creates a new `TableHeightCommand` instance.
|
|
37
37
|
*
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module table/tableproperties/commands/tableheightcommand
|
|
7
7
|
*/
|
|
8
|
-
import TablePropertyCommand from './tablepropertycommand.js';
|
|
8
|
+
import { TablePropertyCommand } from './tablepropertycommand.js';
|
|
9
9
|
import { addDefaultUnitToNumericValue } from '../../utils/table-properties.js';
|
|
10
10
|
/**
|
|
11
11
|
* The table height command.
|
|
@@ -31,7 +31,7 @@ import { addDefaultUnitToNumericValue } from '../../utils/table-properties.js';
|
|
|
31
31
|
*
|
|
32
32
|
* will set the `height` attribute to `'50px'` in the model.
|
|
33
33
|
*/
|
|
34
|
-
export
|
|
34
|
+
export class TableHeightCommand extends TablePropertyCommand {
|
|
35
35
|
/**
|
|
36
36
|
* Creates a new `TableHeightCommand` instance.
|
|
37
37
|
*
|
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module table/tableproperties/commands/tablepropertycommand
|
|
7
7
|
*/
|
|
8
|
-
import type { Batch,
|
|
8
|
+
import type { Batch, ModelElement } from 'ckeditor5/src/engine.js';
|
|
9
9
|
import { Command, type Editor } from 'ckeditor5/src/core.js';
|
|
10
10
|
export interface TablePropertyCommandExecuteOptions {
|
|
11
11
|
batch?: Batch;
|
|
12
12
|
columnWidths?: string;
|
|
13
|
-
table?:
|
|
13
|
+
table?: ModelElement;
|
|
14
14
|
tableWidth?: string;
|
|
15
15
|
value?: string;
|
|
16
16
|
}
|
|
@@ -19,7 +19,7 @@ export interface TablePropertyCommandExecuteOptions {
|
|
|
19
19
|
*
|
|
20
20
|
* This command is a base command for other table property commands.
|
|
21
21
|
*/
|
|
22
|
-
export
|
|
22
|
+
export declare class TablePropertyCommand extends Command {
|
|
23
23
|
/**
|
|
24
24
|
* The attribute that will be set by the command.
|
|
25
25
|
*/
|
|
@@ -63,7 +63,7 @@ export default class TablePropertyCommand extends Command {
|
|
|
63
63
|
/**
|
|
64
64
|
* Returns the attribute value for a table.
|
|
65
65
|
*/
|
|
66
|
-
protected _getValue(table:
|
|
66
|
+
protected _getValue(table: ModelElement): unknown;
|
|
67
67
|
/**
|
|
68
68
|
* Returns the proper model value. It can be used to add a default unit to numeric values.
|
|
69
69
|
*/
|
|
@@ -9,7 +9,7 @@ import { getSelectionAffectedTable } from '../../utils/common.js';
|
|
|
9
9
|
*
|
|
10
10
|
* This command is a base command for other table property commands.
|
|
11
11
|
*/
|
|
12
|
-
export
|
|
12
|
+
export class TablePropertyCommand extends Command {
|
|
13
13
|
/**
|
|
14
14
|
* The attribute that will be set by the command.
|
|
15
15
|
*/
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module table/tableproperties/commands/tablewidthcommand
|
|
7
7
|
*/
|
|
8
|
-
import TablePropertyCommand from './tablepropertycommand.js';
|
|
8
|
+
import { TablePropertyCommand } from './tablepropertycommand.js';
|
|
9
9
|
import type { Editor } from 'ckeditor5/src/core.js';
|
|
10
10
|
/**
|
|
11
11
|
* The table width command.
|
|
@@ -31,7 +31,7 @@ import type { Editor } from 'ckeditor5/src/core.js';
|
|
|
31
31
|
*
|
|
32
32
|
* will set the `width` attribute to `'50px'` in the model.
|
|
33
33
|
*/
|
|
34
|
-
export
|
|
34
|
+
export declare class TableWidthCommand extends TablePropertyCommand {
|
|
35
35
|
/**
|
|
36
36
|
* Creates a new `TableWidthCommand` instance.
|
|
37
37
|
*
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module table/tableproperties/commands/tablewidthcommand
|
|
7
7
|
*/
|
|
8
|
-
import TablePropertyCommand from './tablepropertycommand.js';
|
|
8
|
+
import { TablePropertyCommand } from './tablepropertycommand.js';
|
|
9
9
|
import { addDefaultUnitToNumericValue } from '../../utils/table-properties.js';
|
|
10
10
|
/**
|
|
11
11
|
* The table width command.
|
|
@@ -31,7 +31,7 @@ import { addDefaultUnitToNumericValue } from '../../utils/table-properties.js';
|
|
|
31
31
|
*
|
|
32
32
|
* will set the `width` attribute to `'50px'` in the model.
|
|
33
33
|
*/
|
|
34
|
-
export
|
|
34
|
+
export class TableWidthCommand extends TablePropertyCommand {
|
|
35
35
|
/**
|
|
36
36
|
* Creates a new `TableWidthCommand` instance.
|
|
37
37
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* @module table/tableproperties/tablepropertiesediting
|
|
7
7
|
*/
|
|
8
8
|
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
-
import TableEditing from '../tableediting.js';
|
|
9
|
+
import { TableEditing } from '../tableediting.js';
|
|
10
10
|
/**
|
|
11
11
|
* The table properties editing feature.
|
|
12
12
|
*
|
|
@@ -24,7 +24,7 @@ import TableEditing from '../tableediting.js';
|
|
|
24
24
|
* - horizontal alignment: `'tableAlignment'`
|
|
25
25
|
* - width & height: `'tableWidth'` & `'tableHeight'`
|
|
26
26
|
*/
|
|
27
|
-
export
|
|
27
|
+
export declare class TablePropertiesEditing extends Plugin {
|
|
28
28
|
/**
|
|
29
29
|
* @inheritDoc
|
|
30
30
|
*/
|