@ckeditor/ckeditor5-list 44.3.0 → 45.0.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/build/list.js +1 -1
  2. package/build/translations/be.js +1 -0
  3. package/ckeditor5-metadata.json +6 -6
  4. package/dist/index.js +17 -34
  5. package/dist/index.js.map +1 -1
  6. package/dist/translations/be.d.ts +8 -0
  7. package/dist/translations/be.js +5 -0
  8. package/dist/translations/be.umd.js +11 -0
  9. package/lang/translations/be.po +144 -0
  10. package/package.json +10 -9
  11. package/src/legacylist/legacyindentcommand.js +4 -0
  12. package/src/legacylist/legacylistcommand.js +4 -0
  13. package/src/legacylistproperties/legacyliststylecommand.js +4 -0
  14. package/src/legacytodolist/legacychecktodolistcommand.js +6 -0
  15. package/src/list/listcommand.js +11 -0
  16. package/src/list/listediting.js +4 -4
  17. package/src/list/listindentcommand.js +4 -0
  18. package/src/list/listmergecommand.js +4 -0
  19. package/src/list/listsplitcommand.js +4 -0
  20. package/src/list/listui.js +4 -3
  21. package/src/list/utils/listwalker.js +38 -3
  22. package/src/listproperties/listpropertiesui.js +14 -22
  23. package/src/listproperties/liststylecommand.js +8 -0
  24. package/src/listproperties/ui/listpropertiesview.js +52 -44
  25. package/src/todolist/todocheckboxchangeobserver.js +4 -7
  26. package/src/todolist/todolistui.js +3 -2
  27. package/theme/icons/liststylecircle.svg +0 -1
  28. package/theme/icons/liststyledecimal.svg +0 -1
  29. package/theme/icons/liststyledecimalleadingzero.svg +0 -1
  30. package/theme/icons/liststyledisc.svg +0 -1
  31. package/theme/icons/liststylelowerlatin.svg +0 -1
  32. package/theme/icons/liststylelowerroman.svg +0 -1
  33. package/theme/icons/liststylesquare.svg +0 -1
  34. package/theme/icons/liststyleupperlatin.svg +0 -1
  35. package/theme/icons/liststyleupperroman.svg +0 -1
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2025, 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
+
6
+ import type { Translations } from '@ckeditor/ckeditor5-utils';
7
+ declare const translations: Translations;
8
+ export default translations;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2025, 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
+ export default {"be":{"dictionary":{"Numbered List":"Нумарыроўваны спіс","Bulleted List":"Маркіраваны спіс","To-do List":"Спіс задач","Bulleted list styles toolbar":"Стылі маркіраваных спісаў","Numbered list styles toolbar":"Стылі нумарыроўваных спісаў","Toggle the disc list style":"Пераключыць на стыль маркіраваных спісаў з дыскам","Toggle the circle list style":"Пераключыць на стыль маркіраваных спісаў з кругам","Toggle the square list style":"Пераключыць на стыль маркіраваных спісаў з квадратам","Toggle the decimal list style":"Пераключыць на стыль маркіраваных спісаў з лікамі","Toggle the decimal with leading zero list style":"Пераключыць стыль спісу з дзесятковым лікам, які пачынаецца з нуля","Toggle the lower–roman list style":"Пераключыць на стыль маркіраваных спісаў з малымі рымскімі лікамі","Toggle the upper–roman list style":"Пераключыць на стыль маркіраваных спісаў з вялікімі рымскімі лікамі","Toggle the lower–latin list style":"Пераключыць на стыль маркіраваных спісаў з малымі лацінскімі лікамі","Toggle the upper–latin list style":"Пераключыць на стыль маркіраваных спісаў з вялікімі лацінскімі лікамі","Disc":"Дыск","Circle":"Круг","Square":"Квадрат","Decimal":"Дзесятковы","Decimal with leading zero":"Дзесятковы з нулямі ў пачатку","Lower–roman":"Малыя рымскія","Upper-roman":"Вялікія рымскія","Lower-latin":"Малыя лацінскія","Upper-latin":"Вялікія лацінскія","List properties":"Уласцівасці спіса","Start at":"Пачаць з","Invalid start index value.":"Памылковае значэнне пачатковага індэкса.","Start index must be greater than 0.":"Пачатковы індэкс павінен быць большым за 0.","Reversed order":"Адваротны парадак","Keystrokes that can be used in a list":"Спалучэнні клавіш, якія можна выкарыстоўваць у спісе","Increase list item indent":"Павялічыць адступ элемента спісу","Decrease list item indent":"Паменшыць адступ элемента спісу","Entering a to-do list":"Увод спісу задач","Leaving a to-do list":"Выхад з спісу задач"},getPluralForm(n){return (n % 10 == 1 && n % 100 != 11 ? 0 : n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 10 || n % 100 >= 20) ? 1 : 2);}}}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2025, 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
+
6
+ ( e => {
7
+ const { [ 'be' ]: { dictionary, getPluralForm } } = {"be":{"dictionary":{"Numbered List":"Нумарыроўваны спіс","Bulleted List":"Маркіраваны спіс","To-do List":"Спіс задач","Bulleted list styles toolbar":"Стылі маркіраваных спісаў","Numbered list styles toolbar":"Стылі нумарыроўваных спісаў","Toggle the disc list style":"Пераключыць на стыль маркіраваных спісаў з дыскам","Toggle the circle list style":"Пераключыць на стыль маркіраваных спісаў з кругам","Toggle the square list style":"Пераключыць на стыль маркіраваных спісаў з квадратам","Toggle the decimal list style":"Пераключыць на стыль маркіраваных спісаў з лікамі","Toggle the decimal with leading zero list style":"Пераключыць стыль спісу з дзесятковым лікам, які пачынаецца з нуля","Toggle the lower–roman list style":"Пераключыць на стыль маркіраваных спісаў з малымі рымскімі лікамі","Toggle the upper–roman list style":"Пераключыць на стыль маркіраваных спісаў з вялікімі рымскімі лікамі","Toggle the lower–latin list style":"Пераключыць на стыль маркіраваных спісаў з малымі лацінскімі лікамі","Toggle the upper–latin list style":"Пераключыць на стыль маркіраваных спісаў з вялікімі лацінскімі лікамі","Disc":"Дыск","Circle":"Круг","Square":"Квадрат","Decimal":"Дзесятковы","Decimal with leading zero":"Дзесятковы з нулямі ў пачатку","Lower–roman":"Малыя рымскія","Upper-roman":"Вялікія рымскія","Lower-latin":"Малыя лацінскія","Upper-latin":"Вялікія лацінскія","List properties":"Уласцівасці спіса","Start at":"Пачаць з","Invalid start index value.":"Памылковае значэнне пачатковага індэкса.","Start index must be greater than 0.":"Пачатковы індэкс павінен быць большым за 0.","Reversed order":"Адваротны парадак","Keystrokes that can be used in a list":"Спалучэнні клавіш, якія можна выкарыстоўваць у спісе","Increase list item indent":"Павялічыць адступ элемента спісу","Decrease list item indent":"Паменшыць адступ элемента спісу","Entering a to-do list":"Увод спісу задач","Leaving a to-do list":"Выхад з спісу задач"},getPluralForm(n){return (n % 10 == 1 && n % 100 != 11 ? 0 : n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 10 || n % 100 >= 20) ? 1 : 2);}}};
8
+ e[ 'be' ] ||= { dictionary: {}, getPluralForm: null };
9
+ e[ 'be' ].dictionary = Object.assign( e[ 'be' ].dictionary, dictionary );
10
+ e[ 'be' ].getPluralForm = getPluralForm;
11
+ } )( window.CKEDITOR_TRANSLATIONS ||= {} );
@@ -0,0 +1,144 @@
1
+ # Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
2
+ #
3
+ # Want to contribute to this file? Submit your changes via a GitHub Pull Request.
4
+ #
5
+ # Check out the official contributor's guide:
6
+ # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
7
+ #
8
+ msgid ""
9
+ msgstr ""
10
+ "Language: be\n"
11
+ "Plural-Forms: nplurals=3; plural=(n % 10 == 1 && n % 100 != 11 ? 0 : n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 10 || n % 100 >= 20) ? 1 : 2);\n"
12
+ "Content-Type: text/plain; charset=UTF-8\n"
13
+
14
+ msgctxt "Toolbar button tooltip for the Numbered List feature."
15
+ msgid "Numbered List"
16
+ msgstr "Нумарыроўваны спіс"
17
+
18
+ msgctxt "Toolbar button tooltip for the Bulleted List feature."
19
+ msgid "Bulleted List"
20
+ msgstr "Маркіраваны спіс"
21
+
22
+ msgctxt "Toolbar button tooltip for the To-do List feature."
23
+ msgid "To-do List"
24
+ msgstr "Спіс задач"
25
+
26
+ msgctxt "The ARIA label of the toolbar displaying buttons allowing users to change the bulleted list style."
27
+ msgid "Bulleted list styles toolbar"
28
+ msgstr "Стылі маркіраваных спісаў"
29
+
30
+ msgctxt "The ARIA label of the toolbar displaying buttons allowing users to change the numbered list style."
31
+ msgid "Numbered list styles toolbar"
32
+ msgstr "Стылі нумарыроўваных спісаў"
33
+
34
+ msgctxt "The ARIA label of the button that toggles the \"disc\" list style."
35
+ msgid "Toggle the disc list style"
36
+ msgstr "Пераключыць на стыль маркіраваных спісаў з дыскам"
37
+
38
+ msgctxt "The ARIA label of the button that toggles the \"circle\" list style."
39
+ msgid "Toggle the circle list style"
40
+ msgstr "Пераключыць на стыль маркіраваных спісаў з кругам"
41
+
42
+ msgctxt "The ARIA label of the button that toggles the \"square\" list style."
43
+ msgid "Toggle the square list style"
44
+ msgstr "Пераключыць на стыль маркіраваных спісаў з квадратам"
45
+
46
+ msgctxt "The ARIA label of the button that toggles the \"decimal\" list style."
47
+ msgid "Toggle the decimal list style"
48
+ msgstr "Пераключыць на стыль маркіраваных спісаў з лікамі"
49
+
50
+ msgctxt "The ARIA label of the button that toggles the \"decimal with leading zero\" list style."
51
+ msgid "Toggle the decimal with leading zero list style"
52
+ msgstr "Пераключыць стыль спісу з дзесятковым лікам, які пачынаецца з нуля"
53
+
54
+ msgctxt "The ARIA label of the button that toggles the \"lower–roman\" list style."
55
+ msgid "Toggle the lower–roman list style"
56
+ msgstr "Пераключыць на стыль маркіраваных спісаў з малымі рымскімі лікамі"
57
+
58
+ msgctxt "The ARIA label of the button that toggles the \"upper–roman\" list style."
59
+ msgid "Toggle the upper–roman list style"
60
+ msgstr "Пераключыць на стыль маркіраваных спісаў з вялікімі рымскімі лікамі"
61
+
62
+ msgctxt "The ARIA label of the button that toggles the \"lower–latin\" list style."
63
+ msgid "Toggle the lower–latin list style"
64
+ msgstr "Пераключыць на стыль маркіраваных спісаў з малымі лацінскімі лікамі"
65
+
66
+ msgctxt "The ARIA label of the button that toggles the \"upper–latin\" list style."
67
+ msgid "Toggle the upper–latin list style"
68
+ msgstr "Пераключыць на стыль маркіраваных спісаў з вялікімі лацінскімі лікамі"
69
+
70
+ msgctxt "The tooltip text of the button that toggles the \"disc\" list style."
71
+ msgid "Disc"
72
+ msgstr "Дыск"
73
+
74
+ msgctxt "The tooltip text of the button that toggles the \"circle\" list style."
75
+ msgid "Circle"
76
+ msgstr "Круг"
77
+
78
+ msgctxt "The tooltip text of the button that toggles the \"square\" list style."
79
+ msgid "Square"
80
+ msgstr "Квадрат"
81
+
82
+ msgctxt "The tooltip text of the button that toggles the \"decimal\" list style."
83
+ msgid "Decimal"
84
+ msgstr "Дзесятковы"
85
+
86
+ msgctxt "The tooltip text of the button that toggles the \"decimal with leading zero\" list style."
87
+ msgid "Decimal with leading zero"
88
+ msgstr "Дзесятковы з нулямі ў пачатку"
89
+
90
+ msgctxt "The tooltip text of the button that toggles the \"lower–roman\" list style."
91
+ msgid "Lower–roman"
92
+ msgstr "Малыя рымскія"
93
+
94
+ msgctxt "The tooltip text of the button that toggles the \"upper–roman\" list style."
95
+ msgid "Upper-roman"
96
+ msgstr "Вялікія рымскія"
97
+
98
+ msgctxt "The tooltip text of the button that toggles the \"lower–latin\" list style."
99
+ msgid "Lower-latin"
100
+ msgstr "Малыя лацінскія"
101
+
102
+ msgctxt "The tooltip text of the button that toggles the \"upper–latin\" list style."
103
+ msgid "Upper-latin"
104
+ msgstr "Вялікія лацінскія"
105
+
106
+ msgctxt "The label of the button that toggles the visibility of additional numbered list property UI fields."
107
+ msgid "List properties"
108
+ msgstr "Уласцівасці спіса"
109
+
110
+ msgctxt "The label of the input allowing to change the start index of a numbered list."
111
+ msgid "Start at"
112
+ msgstr "Пачаць з"
113
+
114
+ msgctxt "The error message displayed when the numbered list start index input value is not a valid number."
115
+ msgid "Invalid start index value."
116
+ msgstr "Памылковае значэнне пачатковага індэкса."
117
+
118
+ msgctxt "The error message displayed when the numbered list start index input value is invalid."
119
+ msgid "Start index must be greater than 0."
120
+ msgstr "Пачатковы індэкс павінен быць большым за 0."
121
+
122
+ msgctxt "The label of the switch button that reverses the order of the numbered list."
123
+ msgid "Reversed order"
124
+ msgstr "Адваротны парадак"
125
+
126
+ msgctxt "Accessibility help dialog header text displayed before the list of keystrokes that can be used in a list."
127
+ msgid "Keystrokes that can be used in a list"
128
+ msgstr "Спалучэнні клавіш, якія можна выкарыстоўваць у спісе"
129
+
130
+ msgctxt "Keystroke description for assistive technologies: keystroke for increasing list item indentation."
131
+ msgid "Increase list item indent"
132
+ msgstr "Павялічыць адступ элемента спісу"
133
+
134
+ msgctxt "Keystroke description for assistive technologies: keystroke for decreasing list item indentation."
135
+ msgid "Decrease list item indent"
136
+ msgstr "Паменшыць адступ элемента спісу"
137
+
138
+ msgctxt "Assistive technologies label for entering the to-do list."
139
+ msgid "Entering a to-do list"
140
+ msgstr "Увод спісу задач"
141
+
142
+ msgctxt "Assistive technologies label for leaving the to-do list."
143
+ msgid "Leaving a to-do list"
144
+ msgstr "Выхад з спісу задач"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-list",
3
- "version": "44.3.0",
3
+ "version": "45.0.0-alpha.1",
4
4
  "description": "Ordered and unordered lists feature to CKEditor 5.",
5
5
  "keywords": [
6
6
  "ckeditor",
@@ -13,14 +13,15 @@
13
13
  "type": "module",
14
14
  "main": "src/index.js",
15
15
  "dependencies": {
16
- "@ckeditor/ckeditor5-clipboard": "44.3.0",
17
- "@ckeditor/ckeditor5-core": "44.3.0",
18
- "@ckeditor/ckeditor5-engine": "44.3.0",
19
- "@ckeditor/ckeditor5-enter": "44.3.0",
20
- "@ckeditor/ckeditor5-typing": "44.3.0",
21
- "@ckeditor/ckeditor5-ui": "44.3.0",
22
- "@ckeditor/ckeditor5-utils": "44.3.0",
23
- "ckeditor5": "44.3.0"
16
+ "@ckeditor/ckeditor5-clipboard": "45.0.0-alpha.1",
17
+ "@ckeditor/ckeditor5-core": "45.0.0-alpha.1",
18
+ "@ckeditor/ckeditor5-engine": "45.0.0-alpha.1",
19
+ "@ckeditor/ckeditor5-enter": "45.0.0-alpha.1",
20
+ "@ckeditor/ckeditor5-icons": "45.0.0-alpha.1",
21
+ "@ckeditor/ckeditor5-typing": "45.0.0-alpha.1",
22
+ "@ckeditor/ckeditor5-ui": "45.0.0-alpha.1",
23
+ "@ckeditor/ckeditor5-utils": "45.0.0-alpha.1",
24
+ "ckeditor5": "45.0.0-alpha.1"
24
25
  },
25
26
  "author": "CKSource (http://cksource.com/)",
26
27
  "license": "SEE LICENSE IN LICENSE.md",
@@ -8,6 +8,10 @@ import { first } from 'ckeditor5/src/utils.js';
8
8
  * The list indent command. It is used by the {@link module:list/legacylist~LegacyList legacy list feature}.
9
9
  */
10
10
  export default class LegacyIndentCommand extends Command {
11
+ /**
12
+ * Determines by how much the command will change the list item's indent attribute.
13
+ */
14
+ _indentBy;
11
15
  /**
12
16
  * Creates an instance of the command.
13
17
  *
@@ -8,6 +8,10 @@ import { first } from 'ckeditor5/src/utils.js';
8
8
  * The list command. It is used by the {@link module:list/legacylist~LegacyList legacy list feature}.
9
9
  */
10
10
  export default class LegacyListCommand extends Command {
11
+ /**
12
+ * The type of the list created by the command.
13
+ */
14
+ type;
11
15
  /**
12
16
  * Creates an instance of the command.
13
17
  *
@@ -15,6 +15,10 @@ import { getListTypeFromListStyleType, getSelectedListItems } from '../legacylis
15
15
  * It is used by the {@link module:list/legacylistproperties~LegacyListProperties legacy list properties feature}.
16
16
  */
17
17
  export default class LegacyListStyleCommand extends Command {
18
+ /**
19
+ * The default type of the list style.
20
+ */
21
+ defaultType;
18
22
  /**
19
23
  * Creates an instance of the command.
20
24
  *
@@ -14,6 +14,12 @@ const attributeKey = 'todoListChecked';
14
14
  * the `checkTodoList` editor command and it is also available via aliased `todoListCheck` name.
15
15
  */
16
16
  export default class LegacyCheckTodoListCommand extends Command {
17
+ /**
18
+ * A list of to-do list items selected by the {@link module:engine/model/selection~Selection}.
19
+ *
20
+ * @internal
21
+ */
22
+ _selectedElements;
17
23
  /**
18
24
  * @inheritDoc
19
25
  */
@@ -8,6 +8,17 @@ import { splitListItemBefore, expandListBlocksToCompleteItems, getListItemBlocks
8
8
  * The list command. It is used by the {@link module:list/list~List list feature}.
9
9
  */
10
10
  export default class ListCommand extends Command {
11
+ /**
12
+ * The type of the list created by the command.
13
+ */
14
+ type;
15
+ /**
16
+ * List Walker options that change the range of the list items to be changed when the selection is collapsed within a list item.
17
+ *
18
+ * In a multi-level list, when the selection is collapsed within a list item, instead of changing only the list items of the same list
19
+ * type and current indent level, the entire list structure is changed (all list items at all indent levels of any list type).
20
+ */
21
+ _listWalkerOptions;
11
22
  /**
12
23
  * Creates an instance of the command.
13
24
  *
@@ -30,6 +30,10 @@ const LIST_BASE_ATTRIBUTES = ['listType', 'listIndent', 'listItemId'];
30
30
  * The editing part of the document-list feature. It handles creating, editing and removing lists and list items.
31
31
  */
32
32
  export default class ListEditing extends Plugin {
33
+ /**
34
+ * The list of registered downcast strategies.
35
+ */
36
+ _downcastStrategies = [];
33
37
  /**
34
38
  * @inheritDoc
35
39
  */
@@ -53,10 +57,6 @@ export default class ListEditing extends Plugin {
53
57
  */
54
58
  constructor(editor) {
55
59
  super(editor);
56
- /**
57
- * The list of registered downcast strategies.
58
- */
59
- this._downcastStrategies = [];
60
60
  editor.config.define('list.multiBlock', true);
61
61
  }
62
62
  /**
@@ -12,6 +12,10 @@ import ListWalker from './utils/listwalker.js';
12
12
  * The document list indent command. It is used by the {@link module:list/list~List list feature}.
13
13
  */
14
14
  export default class ListIndentCommand extends Command {
15
+ /**
16
+ * Determines by how much the command will change the list item's indent attribute.
17
+ */
18
+ _direction;
15
19
  /**
16
20
  * Creates an instance of the command.
17
21
  *
@@ -12,6 +12,10 @@ import ListWalker from './utils/listwalker.js';
12
12
  * The document list merge command. It is used by the {@link module:list/list~List list feature}.
13
13
  */
14
14
  export default class ListMergeCommand extends Command {
15
+ /**
16
+ * Whether list item should be merged before or after the selected block.
17
+ */
18
+ _direction;
15
19
  /**
16
20
  * Creates an instance of the command.
17
21
  *
@@ -10,6 +10,10 @@ import { isFirstBlockOfListItem, isListItemBlock, sortBlocks, splitListItemBefor
10
10
  * It is used by the {@link module:list/list~List list feature}.
11
11
  */
12
12
  export default class ListSplitCommand extends Command {
13
+ /**
14
+ * Whether list item should be split before or after the selected block.
15
+ */
16
+ _direction;
13
17
  /**
14
18
  * Creates an instance of the command.
15
19
  *
@@ -6,7 +6,8 @@
6
6
  * @module list/list/listui
7
7
  */
8
8
  import { createUIComponents } from './utils.js';
9
- import { icons, Plugin } from 'ckeditor5/src/core.js';
9
+ import { Plugin } from 'ckeditor5/src/core.js';
10
+ import { IconBulletedList, IconNumberedList } from 'ckeditor5/src/icons.js';
10
11
  /**
11
12
  * The list UI feature. It introduces the `'numberedList'` and `'bulletedList'` buttons that
12
13
  * allow to convert paragraphs to and from list items and indent or outdent them.
@@ -31,11 +32,11 @@ export default class ListUI extends Plugin {
31
32
  const t = this.editor.t;
32
33
  // Create button numberedList.
33
34
  if (!this.editor.ui.componentFactory.has('numberedList')) {
34
- createUIComponents(this.editor, 'numberedList', t('Numbered List'), icons.numberedList);
35
+ createUIComponents(this.editor, 'numberedList', t('Numbered List'), IconNumberedList);
35
36
  }
36
37
  // Create button bulletedList.
37
38
  if (!this.editor.ui.componentFactory.has('bulletedList')) {
38
- createUIComponents(this.editor, 'bulletedList', t('Bulleted List'), icons.bulletedList);
39
+ createUIComponents(this.editor, 'bulletedList', t('Bulleted List'), IconBulletedList);
39
40
  }
40
41
  }
41
42
  }
@@ -11,6 +11,38 @@ import { isListItemBlock } from './model.js';
11
11
  * Document list blocks iterator.
12
12
  */
13
13
  export default class ListWalker {
14
+ /**
15
+ * The start list item block element.
16
+ */
17
+ _startElement;
18
+ /**
19
+ * The reference indent. Initialized by the indent of the start block.
20
+ */
21
+ _referenceIndent;
22
+ /**
23
+ * The iterating direction.
24
+ */
25
+ _isForward;
26
+ /**
27
+ * Whether start block should be included in the result (if it's matching other criteria).
28
+ */
29
+ _includeSelf;
30
+ /**
31
+ * Additional attributes that must be the same for each block.
32
+ */
33
+ _sameAttributes;
34
+ /**
35
+ * Whether blocks with the same indent level as the start block should be included in the result.
36
+ */
37
+ _sameIndent;
38
+ /**
39
+ * Whether blocks with a lower indent level than the start block should be included in the result.
40
+ */
41
+ _lowerIndent;
42
+ /**
43
+ * Whether blocks with a higher indent level than the start block should be included in the result.
44
+ */
45
+ _higherIndent;
14
46
  /**
15
47
  * Creates a document list iterator.
16
48
  *
@@ -126,14 +158,16 @@ export default class ListWalker {
126
158
  * Iterates sibling list blocks starting from the given node.
127
159
  */
128
160
  export class SiblingListBlocksIterator {
161
+ _node;
162
+ _isForward;
163
+ _previousNodesByIndent = [];
164
+ _previous = null;
165
+ _previousNodeIndent = null;
129
166
  /**
130
167
  * @param node The model node.
131
168
  * @param direction Iteration direction.
132
169
  */
133
170
  constructor(node, direction = 'forward') {
134
- this._previousNodesByIndent = [];
135
- this._previous = null;
136
- this._previousNodeIndent = null;
137
171
  this._node = node;
138
172
  this._isForward = direction === 'forward';
139
173
  }
@@ -180,6 +214,7 @@ export class SiblingListBlocksIterator {
180
214
  * @internal
181
215
  */
182
216
  export class ListBlocksIterable {
217
+ _listHead;
183
218
  /**
184
219
  * @param listHead The head element of a list.
185
220
  */
@@ -5,19 +5,11 @@
5
5
  /**
6
6
  * @module list/listproperties/listpropertiesui
7
7
  */
8
- import { icons, Plugin } from 'ckeditor5/src/core.js';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import { IconBulletedList, IconNumberedList, IconListStyleCircle, IconListStyleDecimal, IconListStyleDecimalLeadingZero, IconListStyleDisc, IconListStyleLowerLatin, IconListStyleLowerRoman, IconListStyleSquare, IconListStyleUpperLatin, IconListStyleUpperRoman } from 'ckeditor5/src/icons.js';
9
10
  import { ButtonView, SplitButtonView, createDropdown, focusChildOnDropdownOpen, MenuBarMenuView } from 'ckeditor5/src/ui.js';
10
11
  import ListPropertiesView from './ui/listpropertiesview.js';
11
12
  import { getNormalizedConfig } from './utils/config.js';
12
- import listStyleDiscIcon from '../../theme/icons/liststyledisc.svg';
13
- import listStyleCircleIcon from '../../theme/icons/liststylecircle.svg';
14
- import listStyleSquareIcon from '../../theme/icons/liststylesquare.svg';
15
- import listStyleDecimalIcon from '../../theme/icons/liststyledecimal.svg';
16
- import listStyleDecimalWithLeadingZeroIcon from '../../theme/icons/liststyledecimalleadingzero.svg';
17
- import listStyleLowerRomanIcon from '../../theme/icons/liststylelowerroman.svg';
18
- import listStyleUpperRomanIcon from '../../theme/icons/liststyleupperroman.svg';
19
- import listStyleLowerLatinIcon from '../../theme/icons/liststylelowerlatin.svg';
20
- import listStyleUpperLatinIcon from '../../theme/icons/liststyleupperlatin.svg';
21
13
  import '../../theme/liststyles.css';
22
14
  /**
23
15
  * The list properties UI plugin. It introduces the extended `'bulletedList'` and `'numberedList'` toolbar
@@ -54,19 +46,19 @@ export default class ListPropertiesUI extends Plugin {
54
46
  label: t('Toggle the disc list style'),
55
47
  tooltip: t('Disc'),
56
48
  type: 'disc',
57
- icon: listStyleDiscIcon
49
+ icon: IconListStyleDisc
58
50
  },
59
51
  {
60
52
  label: t('Toggle the circle list style'),
61
53
  tooltip: t('Circle'),
62
54
  type: 'circle',
63
- icon: listStyleCircleIcon
55
+ icon: IconListStyleCircle
64
56
  },
65
57
  {
66
58
  label: t('Toggle the square list style'),
67
59
  tooltip: t('Square'),
68
60
  type: 'square',
69
- icon: listStyleSquareIcon
61
+ icon: IconListStyleSquare
70
62
  }
71
63
  ];
72
64
  const buttonLabel = t('Bulleted List');
@@ -77,7 +69,7 @@ export default class ListPropertiesUI extends Plugin {
77
69
  normalizedConfig,
78
70
  parentCommandName: commandName,
79
71
  buttonLabel,
80
- buttonIcon: icons.bulletedList,
72
+ buttonIcon: IconBulletedList,
81
73
  styleGridAriaLabel,
82
74
  styleDefinitions
83
75
  }));
@@ -100,37 +92,37 @@ export default class ListPropertiesUI extends Plugin {
100
92
  label: t('Toggle the decimal list style'),
101
93
  tooltip: t('Decimal'),
102
94
  type: 'decimal',
103
- icon: listStyleDecimalIcon
95
+ icon: IconListStyleDecimal
104
96
  },
105
97
  {
106
98
  label: t('Toggle the decimal with leading zero list style'),
107
99
  tooltip: t('Decimal with leading zero'),
108
100
  type: 'decimal-leading-zero',
109
- icon: listStyleDecimalWithLeadingZeroIcon
101
+ icon: IconListStyleDecimalLeadingZero
110
102
  },
111
103
  {
112
104
  label: t('Toggle the lower–roman list style'),
113
105
  tooltip: t('Lower–roman'),
114
106
  type: 'lower-roman',
115
- icon: listStyleLowerRomanIcon
107
+ icon: IconListStyleLowerRoman
116
108
  },
117
109
  {
118
110
  label: t('Toggle the upper–roman list style'),
119
111
  tooltip: t('Upper-roman'),
120
112
  type: 'upper-roman',
121
- icon: listStyleUpperRomanIcon
113
+ icon: IconListStyleUpperRoman
122
114
  },
123
115
  {
124
116
  label: t('Toggle the lower–latin list style'),
125
117
  tooltip: t('Lower-latin'),
126
118
  type: 'lower-latin',
127
- icon: listStyleLowerLatinIcon
119
+ icon: IconListStyleLowerLatin
128
120
  },
129
121
  {
130
122
  label: t('Toggle the upper–latin list style'),
131
123
  tooltip: t('Upper-latin'),
132
124
  type: 'upper-latin',
133
- icon: listStyleUpperLatinIcon
125
+ icon: IconListStyleUpperLatin
134
126
  }
135
127
  ];
136
128
  const buttonLabel = t('Numbered List');
@@ -141,7 +133,7 @@ export default class ListPropertiesUI extends Plugin {
141
133
  normalizedConfig,
142
134
  parentCommandName: commandName,
143
135
  buttonLabel,
144
- buttonIcon: icons.numberedList,
136
+ buttonIcon: IconNumberedList,
145
137
  styleGridAriaLabel,
146
138
  styleDefinitions
147
139
  }));
@@ -367,7 +359,7 @@ function getMenuBarStylesMenuCreator({ editor, normalizedConfig, parentCommandNa
367
359
  listPropertiesView.delegate('execute').to(menuView);
368
360
  menuView.buttonView.set({
369
361
  label: buttonLabel,
370
- icon: icons[parentCommandName]
362
+ icon: parentCommandName === 'bulletedList' ? IconBulletedList : IconNumberedList
371
363
  });
372
364
  menuView.panelView.children.add(listPropertiesView);
373
365
  menuView.bind('isEnabled').to(listCommand, 'isEnabled');
@@ -15,6 +15,14 @@ import { getListTypeFromListStyleType } from './utils/style.js';
15
15
  * It is used by the {@link module:list/listproperties~ListProperties list properties feature}.
16
16
  */
17
17
  export default class ListStyleCommand extends Command {
18
+ /**
19
+ * The default type of the list style.
20
+ */
21
+ defaultType;
22
+ /**
23
+ * The list of supported style types by this command.
24
+ */
25
+ _supportedTypes;
18
26
  /**
19
27
  * Creates an instance of the command.
20
28
  *