@ckeditor/ckeditor5-list 48.2.0-alpha.7 → 48.3.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/dist/augmentation.d.ts +54 -54
- package/dist/index.css.map +1 -1
- package/dist/index.d.ts +67 -67
- package/dist/index.js +7187 -8921
- package/dist/index.js.map +1 -1
- package/dist/legacyerrors.d.ts +0 -4
- package/dist/legacylist/legacyconverters.d.ts +184 -184
- package/dist/legacylist/legacyindentcommand.d.ts +33 -33
- package/dist/legacylist/legacylistcommand.d.ts +52 -52
- package/dist/legacylist/legacylistediting.d.ts +32 -32
- package/dist/legacylist/legacylistutils.d.ts +40 -40
- package/dist/legacylist/legacyutils.d.ts +91 -91
- package/dist/legacylist.d.ts +25 -25
- package/dist/legacylistproperties/legacylistpropertiesediting.d.ts +71 -71
- package/dist/legacylistproperties/legacylistreversedcommand.d.ts +33 -33
- package/dist/legacylistproperties/legacyliststartcommand.d.ts +33 -33
- package/dist/legacylistproperties/legacyliststylecommand.d.ts +63 -63
- package/dist/legacylistproperties.d.ts +26 -26
- package/dist/legacytodolist/legacychecktodolistcommand.d.ts +47 -47
- package/dist/legacytodolist/legacytodolistconverters.d.ts +76 -76
- package/dist/legacytodolist/legacytodolistediting.d.ts +46 -46
- package/dist/legacytodolist.d.ts +26 -26
- package/dist/list/adjacentlistssupport.d.ts +16 -16
- package/dist/list/converters.d.ts +68 -68
- package/dist/list/listcommand.d.ts +84 -84
- package/dist/list/listediting.d.ts +213 -219
- package/dist/list/listindentcommand.d.ts +54 -54
- package/dist/list/listmergecommand.d.ts +68 -68
- package/dist/list/listsplitcommand.d.ts +59 -59
- package/dist/list/listui.d.ts +19 -19
- package/dist/list/listutils.d.ts +55 -55
- package/dist/list/utils/listwalker.d.ts +139 -139
- package/dist/list/utils/model.d.ts +202 -202
- package/dist/list/utils/postfixers.d.ts +30 -30
- package/dist/list/utils/view.d.ts +65 -65
- package/dist/list/utils.d.ts +15 -15
- package/dist/list.d.ts +25 -25
- package/dist/listconfig.d.ts +234 -234
- package/dist/listformatting/listitemboldintegration.d.ts +29 -29
- package/dist/listformatting/listitemfontcolorintegration.d.ts +29 -29
- package/dist/listformatting/listitemfontfamilyintegration.d.ts +29 -29
- package/dist/listformatting/listitemfontsizeintegration.d.ts +29 -29
- package/dist/listformatting/listitemitalicintegration.d.ts +29 -29
- package/dist/listformatting.d.ts +66 -66
- package/dist/listproperties/converters.d.ts +15 -15
- package/dist/listproperties/listpropertiesediting.d.ts +91 -91
- package/dist/listproperties/listpropertiesui.d.ts +22 -22
- package/dist/listproperties/listpropertiesutils.d.ts +32 -32
- package/dist/listproperties/listreversedcommand.d.ts +31 -31
- package/dist/listproperties/liststartcommand.d.ts +34 -34
- package/dist/listproperties/liststylecommand.d.ts +67 -67
- package/dist/listproperties/ui/listpropertiesview.d.ts +147 -147
- package/dist/listproperties/utils/config.d.ts +32 -32
- package/dist/listproperties/utils/style.d.ts +31 -31
- package/dist/listproperties.d.ts +26 -26
- package/dist/todolist/checktodolistcommand.d.ts +44 -44
- package/dist/todolist/todocheckboxchangeobserver.d.ts +36 -36
- package/dist/todolist/todolistediting.d.ts +45 -45
- package/dist/todolist/todolistui.d.ts +19 -19
- package/dist/todolist.d.ts +26 -26
- package/package.json +10 -10
|
@@ -1,161 +1,161 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import { ButtonView, View, ViewCollection, FocusCycler, SwitchButtonView, LabeledFieldView, CollapsibleView, type InputNumberView, type FocusableView } from
|
|
9
|
-
import { FocusTracker, KeystrokeHandler, type Locale } from
|
|
10
|
-
import type { NormalizedListPropertiesConfig } from
|
|
11
|
-
import
|
|
6
|
+
* @module list/listproperties/ui/listpropertiesview
|
|
7
|
+
*/
|
|
8
|
+
import { ButtonView, View, ViewCollection, FocusCycler, SwitchButtonView, LabeledFieldView, CollapsibleView, type InputNumberView, type FocusableView } from "@ckeditor/ckeditor5-ui";
|
|
9
|
+
import { FocusTracker, KeystrokeHandler, type Locale } from "@ckeditor/ckeditor5-utils";
|
|
10
|
+
import type { NormalizedListPropertiesConfig } from "../utils/config.js";
|
|
11
|
+
import "../../../theme/listproperties.css";
|
|
12
12
|
/**
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
13
|
+
* The list properties view to be displayed in the list dropdown.
|
|
14
|
+
*
|
|
15
|
+
* Contains a grid of available list styles and, for numbered list, also the list start index and reversed fields.
|
|
16
|
+
*
|
|
17
|
+
* @internal
|
|
18
|
+
*/
|
|
19
19
|
export declare class ListPropertiesView extends View {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
20
|
+
/**
|
|
21
|
+
* @inheritDoc
|
|
22
|
+
*/
|
|
23
|
+
locale: Locale;
|
|
24
|
+
/**
|
|
25
|
+
* A collection of the child views.
|
|
26
|
+
*/
|
|
27
|
+
readonly children: ViewCollection;
|
|
28
|
+
/**
|
|
29
|
+
* A view that renders the grid of list styles.
|
|
30
|
+
*/
|
|
31
|
+
readonly stylesView: StylesView | null;
|
|
32
|
+
/**
|
|
33
|
+
* A collapsible view that hosts additional list property fields ({@link #startIndexFieldView} and
|
|
34
|
+
* {@link #reversedSwitchButtonView}) to visually separate them from the {@link #stylesView grid of styles}.
|
|
35
|
+
*
|
|
36
|
+
* **Note**: Only present when:
|
|
37
|
+
* * the view represents **numbered** list properties,
|
|
38
|
+
* * and the {@link #stylesView} is rendered,
|
|
39
|
+
* * and either {@link #startIndexFieldView} or {@link #reversedSwitchButtonView} is rendered.
|
|
40
|
+
*
|
|
41
|
+
* @readonly
|
|
42
|
+
*/
|
|
43
|
+
additionalPropertiesCollapsibleView: CollapsibleView | null;
|
|
44
|
+
/**
|
|
45
|
+
* A labeled number field allowing the user to set the start index of the list.
|
|
46
|
+
*
|
|
47
|
+
* **Note**: Only present when the view represents **numbered** list properties.
|
|
48
|
+
*
|
|
49
|
+
* @readonly
|
|
50
|
+
*/
|
|
51
|
+
startIndexFieldView: LabeledFieldView<InputNumberView> | null;
|
|
52
|
+
/**
|
|
53
|
+
* A switch button allowing the user to make the edited list reversed.
|
|
54
|
+
*
|
|
55
|
+
* **Note**: Only present when the view represents **numbered** list properties.
|
|
56
|
+
*
|
|
57
|
+
* @readonly
|
|
58
|
+
*/
|
|
59
|
+
reversedSwitchButtonView: SwitchButtonView | null;
|
|
60
|
+
/**
|
|
61
|
+
* Tracks information about the DOM focus in the view.
|
|
62
|
+
*/
|
|
63
|
+
readonly focusTracker: FocusTracker;
|
|
64
|
+
/**
|
|
65
|
+
* An instance of the {@link module:utils/keystrokehandler~KeystrokeHandler}.
|
|
66
|
+
*/
|
|
67
|
+
readonly keystrokes: KeystrokeHandler;
|
|
68
|
+
/**
|
|
69
|
+
* A collection of views that can be focused in the properties view.
|
|
70
|
+
*/
|
|
71
|
+
readonly focusables: ViewCollection<FocusableView>;
|
|
72
|
+
/**
|
|
73
|
+
* Helps cycling over {@link #focusables} in the view.
|
|
74
|
+
*/
|
|
75
|
+
readonly focusCycler: FocusCycler;
|
|
76
|
+
/**
|
|
77
|
+
* Creates an instance of the list properties view.
|
|
78
|
+
*
|
|
79
|
+
* @param locale The {@link module:core/editor/editor~Editor#locale} instance.
|
|
80
|
+
* @param options Options of the view.
|
|
81
|
+
* @param options.enabledProperties An object containing the configuration of enabled list property names.
|
|
82
|
+
* Allows conditional rendering the sub-components of the properties view.
|
|
83
|
+
* @param options.styleButtonViews A list of style buttons to be rendered
|
|
84
|
+
* inside the styles grid. The grid will not be rendered when `enabledProperties` does not include the `'styles'` key.
|
|
85
|
+
* @param options.styleGridAriaLabel An assistive technologies label set on the grid of styles (if the grid is rendered).
|
|
86
|
+
*/
|
|
87
|
+
constructor(locale: Locale, { enabledProperties, styleButtonViews, styleGridAriaLabel }: {
|
|
88
|
+
enabledProperties: NormalizedListPropertiesConfig;
|
|
89
|
+
styleButtonViews: Array<ButtonView> | null;
|
|
90
|
+
styleGridAriaLabel: string;
|
|
91
|
+
});
|
|
92
|
+
/**
|
|
93
|
+
* @inheritDoc
|
|
94
|
+
*/
|
|
95
|
+
override render(): void;
|
|
96
|
+
/**
|
|
97
|
+
* @inheritDoc
|
|
98
|
+
*/
|
|
99
|
+
focus(): void;
|
|
100
|
+
/**
|
|
101
|
+
* @inheritDoc
|
|
102
|
+
*/
|
|
103
|
+
focusLast(): void;
|
|
104
|
+
/**
|
|
105
|
+
* @inheritDoc
|
|
106
|
+
*/
|
|
107
|
+
override destroy(): void;
|
|
108
|
+
/**
|
|
109
|
+
* Creates the list styles grid.
|
|
110
|
+
*
|
|
111
|
+
* @param styleButtons Buttons to be placed in the grid.
|
|
112
|
+
* @param styleGridAriaLabel The assistive technology label of the grid.
|
|
113
|
+
*/
|
|
114
|
+
private _createStylesView;
|
|
115
|
+
/**
|
|
116
|
+
* Renders {@link #startIndexFieldView} and/or {@link #reversedSwitchButtonView} depending on the configuration of the properties view.
|
|
117
|
+
*
|
|
118
|
+
* @param enabledProperties An object containing the configuration of enabled list property names
|
|
119
|
+
* (see {@link #constructor}).
|
|
120
|
+
*/
|
|
121
|
+
private _addNumberedListPropertyViews;
|
|
122
|
+
/**
|
|
123
|
+
* Creates the list start index labeled field.
|
|
124
|
+
*/
|
|
125
|
+
private _createStartIndexField;
|
|
126
|
+
/**
|
|
127
|
+
* Creates the reversed list switch button.
|
|
128
|
+
*/
|
|
129
|
+
private _createReversedSwitchButton;
|
|
130
130
|
}
|
|
131
131
|
/**
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
132
|
+
* The view that renders the grid of styles.
|
|
133
|
+
*
|
|
134
|
+
* @internal
|
|
135
|
+
*/
|
|
136
136
|
export type StylesView = View & {
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
137
|
+
children: ViewCollection;
|
|
138
|
+
focusTracker: FocusTracker;
|
|
139
|
+
keystrokes: KeystrokeHandler;
|
|
140
|
+
focus(): void;
|
|
141
141
|
};
|
|
142
142
|
/**
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
143
|
+
* Fired when the list start index value has changed via {@link ~ListPropertiesView#startIndexFieldView}.
|
|
144
|
+
*
|
|
145
|
+
* @eventName ~ListPropertiesView#listStart
|
|
146
|
+
*/
|
|
147
147
|
export type ListPropertiesViewListStartEvent = {
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
148
|
+
name: "listStart";
|
|
149
|
+
args: [data: {
|
|
150
|
+
startIndex: number;
|
|
151
|
+
}];
|
|
152
152
|
};
|
|
153
153
|
/**
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
154
|
+
* Fired when the list order has changed (reversed) via {@link ~ListPropertiesView#reversedSwitchButtonView}.
|
|
155
|
+
*
|
|
156
|
+
* @eventName ~ListPropertiesView#listReversed
|
|
157
|
+
*/
|
|
158
158
|
export type ListPropertiesViewListReversedEvent = {
|
|
159
|
-
|
|
160
|
-
|
|
159
|
+
name: "listReversed";
|
|
160
|
+
args: [];
|
|
161
161
|
};
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import type { ListPropertiesConfig, ListPropertiesStyleListType } from
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
|
+
import type { ListPropertiesConfig, ListPropertiesStyleListType } from "../../listconfig.js";
|
|
6
6
|
/**
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
7
|
+
* Normalizes {@link module:list/listconfig~ListPropertiesConfig} in the configuration of the list properties feature.
|
|
8
|
+
* The structure of normalized list properties options looks as follows:
|
|
9
|
+
*
|
|
10
|
+
* ```ts
|
|
11
|
+
* {
|
|
12
|
+
* styles: {
|
|
13
|
+
* listTypes: [ 'bulleted', 'numbered' ],
|
|
14
|
+
* useAttribute: false
|
|
15
|
+
* },
|
|
16
|
+
* startIndex: true,
|
|
17
|
+
* reversed: true
|
|
18
|
+
* }
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
* @internal
|
|
22
|
+
* @param config The list properties {@link module:list/listconfig~ListPropertiesConfig config}.
|
|
23
|
+
* @returns An object with normalized list properties options.
|
|
24
|
+
*/
|
|
25
25
|
export declare function getNormalizedConfig(config: ListPropertiesConfig): NormalizedListPropertiesConfig;
|
|
26
26
|
/**
|
|
27
27
|
* Normalized list properties config.
|
|
@@ -29,14 +29,14 @@ export declare function getNormalizedConfig(config: ListPropertiesConfig): Norma
|
|
|
29
29
|
* @internal
|
|
30
30
|
*/
|
|
31
31
|
export type NormalizedListPropertiesConfig = {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
32
|
+
styles: {
|
|
33
|
+
listTypes: Array<ListPropertiesStyleListType>;
|
|
34
|
+
listStyleTypes?: {
|
|
35
|
+
numbered?: Array<string>;
|
|
36
|
+
bulleted?: Array<string>;
|
|
37
|
+
};
|
|
38
|
+
useAttribute: boolean;
|
|
39
|
+
};
|
|
40
|
+
startIndex: boolean;
|
|
41
|
+
reversed: boolean;
|
|
42
42
|
};
|
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
* Gets all the style types supported by given list type.
|
|
7
|
+
*
|
|
8
|
+
* @internal
|
|
9
|
+
*/
|
|
10
10
|
export declare function getAllSupportedStyleTypes(): Array<string>;
|
|
11
11
|
/**
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
export declare function getListTypeFromListStyleType(listStyleType: string):
|
|
12
|
+
* Checks whether the given list-style-type is supported by numbered or bulleted list.
|
|
13
|
+
*
|
|
14
|
+
* @internal
|
|
15
|
+
*/
|
|
16
|
+
export declare function getListTypeFromListStyleType(listStyleType: string): "bulleted" | "numbered" | null;
|
|
17
17
|
/**
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
* Converts `type` attribute of `<ul>` or `<ol>` elements to `list-style-type` equivalent.
|
|
19
|
+
*
|
|
20
|
+
* @internal
|
|
21
|
+
*/
|
|
22
22
|
export declare function getListStyleTypeFromTypeAttribute(value: string): string | null;
|
|
23
23
|
/**
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
24
|
+
* Converts `list-style-type` style to `type` attribute of `<ul>` or `<ol>` elements.
|
|
25
|
+
*
|
|
26
|
+
* @internal
|
|
27
|
+
*/
|
|
28
28
|
export declare function getTypeAttributeFromListStyleType(value: string): string | null;
|
|
29
29
|
/**
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
30
|
+
* Normalizes list style by converting aliases to their canonical form.
|
|
31
|
+
*
|
|
32
|
+
* @internal
|
|
33
|
+
* @param listStyle The list style value to normalize.
|
|
34
|
+
* @returns The canonical form of the list style.
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* normalizeListStyle( 'lower-alpha' ); // Returns 'lower-latin'
|
|
38
|
+
* normalizeListStyle( 'upper-alpha' ); // Returns 'upper-latin'
|
|
39
|
+
* normalizeListStyle( 'disc' ); // Returns 'disc'
|
|
40
|
+
*/
|
|
41
41
|
export declare function normalizeListStyle(listStyle: string): string;
|
package/dist/listproperties.d.ts
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import { Plugin } from
|
|
9
|
-
import { ListPropertiesEditing } from
|
|
10
|
-
import { ListPropertiesUI } from
|
|
6
|
+
* @module list/listproperties
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin, type PluginDependenciesOf } from "@ckeditor/ckeditor5-core";
|
|
9
|
+
import { ListPropertiesEditing } from "./listproperties/listpropertiesediting.js";
|
|
10
|
+
import { ListPropertiesUI } from "./listproperties/listpropertiesui.js";
|
|
11
11
|
/**
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
12
|
+
* The list properties feature.
|
|
13
|
+
*
|
|
14
|
+
* This is a "glue" plugin that loads the
|
|
15
|
+
* {@link module:list/listproperties/listpropertiesediting~ListPropertiesEditing list properties
|
|
16
|
+
* editing feature} and the {@link module:list/listproperties/listpropertiesui~ListPropertiesUI list properties UI feature}.
|
|
17
|
+
*/
|
|
18
18
|
export declare class ListProperties extends Plugin {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
19
|
+
/**
|
|
20
|
+
* @inheritDoc
|
|
21
|
+
*/
|
|
22
|
+
static get requires(): PluginDependenciesOf<[ListPropertiesEditing, ListPropertiesUI]>;
|
|
23
|
+
/**
|
|
24
|
+
* @inheritDoc
|
|
25
|
+
*/
|
|
26
|
+
static get pluginName(): "ListProperties";
|
|
27
|
+
/**
|
|
28
|
+
* @inheritDoc
|
|
29
|
+
*/
|
|
30
|
+
static override get isOfficialPlugin(): true;
|
|
31
31
|
}
|
|
@@ -1,49 +1,49 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import { Command, type Editor } from
|
|
6
|
+
* @module list/todolist/checktodolistcommand
|
|
7
|
+
*/
|
|
8
|
+
import { Command, type Editor } from "@ckeditor/ckeditor5-core";
|
|
9
9
|
/**
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
* The check to-do command.
|
|
11
|
+
*
|
|
12
|
+
* The command is registered by the {@link module:list/todolist/todolistediting~TodoListEditing} as
|
|
13
|
+
* the `checkTodoList` editor command.
|
|
14
|
+
*/
|
|
15
15
|
export declare class CheckTodoListCommand extends Command {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
16
|
+
/**
|
|
17
|
+
* A list of to-do list items selected by the {@link module:engine/model/selection~ModelSelection}.
|
|
18
|
+
*
|
|
19
|
+
* @observable
|
|
20
|
+
* @readonly
|
|
21
|
+
*/
|
|
22
|
+
value: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* @inheritDoc
|
|
25
|
+
*/
|
|
26
|
+
constructor(editor: Editor);
|
|
27
|
+
/**
|
|
28
|
+
* Updates the command's {@link #value} and {@link #isEnabled} properties based on the current selection.
|
|
29
|
+
*/
|
|
30
|
+
override refresh(): void;
|
|
31
|
+
/**
|
|
32
|
+
* Executes the command.
|
|
33
|
+
*
|
|
34
|
+
* @param options.forceValue If set, it will force the command behavior. If `true`, the command will apply
|
|
35
|
+
* the attribute. Otherwise, the command will remove the attribute. If not set, the command will look for its current
|
|
36
|
+
* value to decide what it should do.
|
|
37
|
+
*/
|
|
38
|
+
override execute(options?: {
|
|
39
|
+
forceValue?: boolean;
|
|
40
|
+
}): void;
|
|
41
|
+
/**
|
|
42
|
+
* Returns a value for the command.
|
|
43
|
+
*/
|
|
44
|
+
private _getValue;
|
|
45
|
+
/**
|
|
46
|
+
* Gets all to-do list items selected by the {@link module:engine/model/selection~ModelSelection}.
|
|
47
|
+
*/
|
|
48
|
+
private _getSelectedItems;
|
|
49
49
|
}
|