@ckeditor/ckeditor5-list 41.1.0 → 41.2.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 (132) hide show
  1. package/build/list.js +2 -2
  2. package/build/translations/ar.js +1 -1
  3. package/build/translations/ast.js +1 -1
  4. package/build/translations/az.js +1 -1
  5. package/build/translations/bg.js +1 -1
  6. package/build/translations/bn.js +1 -1
  7. package/build/translations/ca.js +1 -1
  8. package/build/translations/cs.js +1 -1
  9. package/build/translations/da.js +1 -1
  10. package/build/translations/de-ch.js +1 -1
  11. package/build/translations/de.js +1 -1
  12. package/build/translations/el.js +1 -1
  13. package/build/translations/en-au.js +1 -1
  14. package/build/translations/en-gb.js +1 -1
  15. package/build/translations/eo.js +1 -1
  16. package/build/translations/es.js +1 -1
  17. package/build/translations/et.js +1 -1
  18. package/build/translations/eu.js +1 -1
  19. package/build/translations/fa.js +1 -1
  20. package/build/translations/fi.js +1 -1
  21. package/build/translations/fr.js +1 -1
  22. package/build/translations/gl.js +1 -1
  23. package/build/translations/he.js +1 -1
  24. package/build/translations/hi.js +1 -1
  25. package/build/translations/hr.js +1 -1
  26. package/build/translations/hu.js +1 -1
  27. package/build/translations/id.js +1 -1
  28. package/build/translations/it.js +1 -1
  29. package/build/translations/ja.js +1 -1
  30. package/build/translations/jv.js +1 -1
  31. package/build/translations/km.js +1 -1
  32. package/build/translations/kn.js +1 -1
  33. package/build/translations/ko.js +1 -1
  34. package/build/translations/ku.js +1 -1
  35. package/build/translations/lt.js +1 -1
  36. package/build/translations/lv.js +1 -1
  37. package/build/translations/ms.js +1 -1
  38. package/build/translations/nb.js +1 -1
  39. package/build/translations/ne.js +1 -1
  40. package/build/translations/nl.js +1 -1
  41. package/build/translations/no.js +1 -1
  42. package/build/translations/pl.js +1 -1
  43. package/build/translations/pt-br.js +1 -1
  44. package/build/translations/pt.js +1 -1
  45. package/build/translations/ro.js +1 -1
  46. package/build/translations/ru.js +1 -1
  47. package/build/translations/si.js +1 -1
  48. package/build/translations/sk.js +1 -1
  49. package/build/translations/sq.js +1 -1
  50. package/build/translations/sr-latn.js +1 -1
  51. package/build/translations/sr.js +1 -1
  52. package/build/translations/sv.js +1 -1
  53. package/build/translations/th.js +1 -1
  54. package/build/translations/tk.js +1 -1
  55. package/build/translations/tr.js +1 -1
  56. package/build/translations/tt.js +1 -1
  57. package/build/translations/ug.js +1 -1
  58. package/build/translations/uk.js +1 -1
  59. package/build/translations/ur.js +1 -1
  60. package/build/translations/uz.js +1 -1
  61. package/build/translations/vi.js +1 -1
  62. package/build/translations/zh-cn.js +1 -1
  63. package/build/translations/zh.js +1 -1
  64. package/lang/contexts.json +5 -1
  65. package/lang/translations/ar.po +16 -0
  66. package/lang/translations/ast.po +16 -0
  67. package/lang/translations/az.po +16 -0
  68. package/lang/translations/bg.po +16 -0
  69. package/lang/translations/bn.po +16 -0
  70. package/lang/translations/ca.po +16 -0
  71. package/lang/translations/cs.po +16 -0
  72. package/lang/translations/da.po +16 -0
  73. package/lang/translations/de-ch.po +16 -0
  74. package/lang/translations/de.po +16 -0
  75. package/lang/translations/el.po +16 -0
  76. package/lang/translations/en-au.po +16 -0
  77. package/lang/translations/en-gb.po +16 -0
  78. package/lang/translations/en.po +16 -0
  79. package/lang/translations/eo.po +16 -0
  80. package/lang/translations/es.po +16 -0
  81. package/lang/translations/et.po +16 -0
  82. package/lang/translations/eu.po +16 -0
  83. package/lang/translations/fa.po +16 -0
  84. package/lang/translations/fi.po +16 -0
  85. package/lang/translations/fr.po +16 -0
  86. package/lang/translations/gl.po +16 -0
  87. package/lang/translations/he.po +17 -1
  88. package/lang/translations/hi.po +16 -0
  89. package/lang/translations/hr.po +16 -0
  90. package/lang/translations/hu.po +16 -0
  91. package/lang/translations/id.po +16 -0
  92. package/lang/translations/it.po +16 -0
  93. package/lang/translations/ja.po +16 -0
  94. package/lang/translations/jv.po +16 -0
  95. package/lang/translations/km.po +16 -0
  96. package/lang/translations/kn.po +16 -0
  97. package/lang/translations/ko.po +16 -0
  98. package/lang/translations/ku.po +16 -0
  99. package/lang/translations/lt.po +16 -0
  100. package/lang/translations/lv.po +16 -0
  101. package/lang/translations/ms.po +16 -0
  102. package/lang/translations/nb.po +16 -0
  103. package/lang/translations/ne.po +16 -0
  104. package/lang/translations/nl.po +16 -0
  105. package/lang/translations/no.po +16 -0
  106. package/lang/translations/pl.po +16 -0
  107. package/lang/translations/pt-br.po +16 -0
  108. package/lang/translations/pt.po +27 -11
  109. package/lang/translations/ro.po +16 -0
  110. package/lang/translations/ru.po +16 -0
  111. package/lang/translations/si.po +16 -0
  112. package/lang/translations/sk.po +16 -0
  113. package/lang/translations/sq.po +16 -0
  114. package/lang/translations/sr-latn.po +16 -0
  115. package/lang/translations/sr.po +16 -0
  116. package/lang/translations/sv.po +16 -0
  117. package/lang/translations/th.po +16 -0
  118. package/lang/translations/tk.po +16 -0
  119. package/lang/translations/tr.po +16 -0
  120. package/lang/translations/tt.po +16 -0
  121. package/lang/translations/ug.po +16 -0
  122. package/lang/translations/uk.po +16 -0
  123. package/lang/translations/ur.po +16 -0
  124. package/lang/translations/uz.po +16 -0
  125. package/lang/translations/vi.po +16 -0
  126. package/lang/translations/zh-cn.po +16 -0
  127. package/lang/translations/zh.po +16 -0
  128. package/package.json +2 -2
  129. package/src/augmentation.d.ts +1 -1
  130. package/src/list/listediting.d.ts +4 -0
  131. package/src/list/listediting.js +22 -0
  132. package/src/listproperties/ui/listpropertiesview.js +3 -0
@@ -117,6 +117,10 @@ msgctxt "The label of the input allowing to change the start index of a numbered
117
117
  msgid "Start at"
118
118
  msgstr ""
119
119
 
120
+ msgctxt "The error message displayed when the numbered list start index input value is not a valid number."
121
+ msgid "Invalid start index value."
122
+ msgstr ""
123
+
120
124
  msgctxt "The error message displayed when the numbered list start index input value is invalid."
121
125
  msgid "Start index must be greater than 0."
122
126
  msgstr ""
@@ -124,3 +128,15 @@ msgstr ""
124
128
  msgctxt "The label of the switch button that reverses the order of the numbered list."
125
129
  msgid "Reversed order"
126
130
  msgstr ""
131
+
132
+ msgctxt "Accessibility help dialog header text displayed before the list of keystrokes that can be used in a list."
133
+ msgid "Keystrokes that can be used in a list"
134
+ msgstr ""
135
+
136
+ msgctxt "Keystroke description for assistive technologies: keystroke for increasing list item indentation."
137
+ msgid "Increase list item indent"
138
+ msgstr ""
139
+
140
+ msgctxt "Keystroke description for assistive technologies: keystroke for decreasing list item indentation."
141
+ msgid "Decrease list item indent"
142
+ msgstr ""
@@ -117,6 +117,10 @@ msgctxt "The label of the input allowing to change the start index of a numbered
117
117
  msgid "Start at"
118
118
  msgstr ""
119
119
 
120
+ msgctxt "The error message displayed when the numbered list start index input value is not a valid number."
121
+ msgid "Invalid start index value."
122
+ msgstr ""
123
+
120
124
  msgctxt "The error message displayed when the numbered list start index input value is invalid."
121
125
  msgid "Start index must be greater than 0."
122
126
  msgstr ""
@@ -124,3 +128,15 @@ msgstr ""
124
128
  msgctxt "The label of the switch button that reverses the order of the numbered list."
125
129
  msgid "Reversed order"
126
130
  msgstr ""
131
+
132
+ msgctxt "Accessibility help dialog header text displayed before the list of keystrokes that can be used in a list."
133
+ msgid "Keystrokes that can be used in a list"
134
+ msgstr ""
135
+
136
+ msgctxt "Keystroke description for assistive technologies: keystroke for increasing list item indentation."
137
+ msgid "Increase list item indent"
138
+ msgstr ""
139
+
140
+ msgctxt "Keystroke description for assistive technologies: keystroke for decreasing list item indentation."
141
+ msgid "Decrease list item indent"
142
+ msgstr ""
@@ -117,6 +117,10 @@ msgctxt "The label of the input allowing to change the start index of a numbered
117
117
  msgid "Start at"
118
118
  msgstr "Початок при"
119
119
 
120
+ msgctxt "The error message displayed when the numbered list start index input value is not a valid number."
121
+ msgid "Invalid start index value."
122
+ msgstr "Недійсне початкове значення індексу."
123
+
120
124
  msgctxt "The error message displayed when the numbered list start index input value is invalid."
121
125
  msgid "Start index must be greater than 0."
122
126
  msgstr "Початковий індекс має бути більше 0."
@@ -124,3 +128,15 @@ msgstr "Початковий індекс має бути більше 0."
124
128
  msgctxt "The label of the switch button that reverses the order of the numbered list."
125
129
  msgid "Reversed order"
126
130
  msgstr "Зворотний порядок"
131
+
132
+ msgctxt "Accessibility help dialog header text displayed before the list of keystrokes that can be used in a list."
133
+ msgid "Keystrokes that can be used in a list"
134
+ msgstr "Натискання клавіш, які можна використовувати в списку"
135
+
136
+ msgctxt "Keystroke description for assistive technologies: keystroke for increasing list item indentation."
137
+ msgid "Increase list item indent"
138
+ msgstr "Збільшити відступ елемента списку"
139
+
140
+ msgctxt "Keystroke description for assistive technologies: keystroke for decreasing list item indentation."
141
+ msgid "Decrease list item indent"
142
+ msgstr "Зменшити відступ елемента списку"
@@ -117,6 +117,10 @@ msgctxt "The label of the input allowing to change the start index of a numbered
117
117
  msgid "Start at"
118
118
  msgstr ""
119
119
 
120
+ msgctxt "The error message displayed when the numbered list start index input value is not a valid number."
121
+ msgid "Invalid start index value."
122
+ msgstr ""
123
+
120
124
  msgctxt "The error message displayed when the numbered list start index input value is invalid."
121
125
  msgid "Start index must be greater than 0."
122
126
  msgstr ""
@@ -124,3 +128,15 @@ msgstr ""
124
128
  msgctxt "The label of the switch button that reverses the order of the numbered list."
125
129
  msgid "Reversed order"
126
130
  msgstr ""
131
+
132
+ msgctxt "Accessibility help dialog header text displayed before the list of keystrokes that can be used in a list."
133
+ msgid "Keystrokes that can be used in a list"
134
+ msgstr ""
135
+
136
+ msgctxt "Keystroke description for assistive technologies: keystroke for increasing list item indentation."
137
+ msgid "Increase list item indent"
138
+ msgstr ""
139
+
140
+ msgctxt "Keystroke description for assistive technologies: keystroke for decreasing list item indentation."
141
+ msgid "Decrease list item indent"
142
+ msgstr ""
@@ -117,6 +117,10 @@ msgctxt "The label of the input allowing to change the start index of a numbered
117
117
  msgid "Start at"
118
118
  msgstr ""
119
119
 
120
+ msgctxt "The error message displayed when the numbered list start index input value is not a valid number."
121
+ msgid "Invalid start index value."
122
+ msgstr ""
123
+
120
124
  msgctxt "The error message displayed when the numbered list start index input value is invalid."
121
125
  msgid "Start index must be greater than 0."
122
126
  msgstr ""
@@ -124,3 +128,15 @@ msgstr ""
124
128
  msgctxt "The label of the switch button that reverses the order of the numbered list."
125
129
  msgid "Reversed order"
126
130
  msgstr ""
131
+
132
+ msgctxt "Accessibility help dialog header text displayed before the list of keystrokes that can be used in a list."
133
+ msgid "Keystrokes that can be used in a list"
134
+ msgstr ""
135
+
136
+ msgctxt "Keystroke description for assistive technologies: keystroke for increasing list item indentation."
137
+ msgid "Increase list item indent"
138
+ msgstr ""
139
+
140
+ msgctxt "Keystroke description for assistive technologies: keystroke for decreasing list item indentation."
141
+ msgid "Decrease list item indent"
142
+ msgstr ""
@@ -117,6 +117,10 @@ msgctxt "The label of the input allowing to change the start index of a numbered
117
117
  msgid "Start at"
118
118
  msgstr "Bắt đầu tại"
119
119
 
120
+ msgctxt "The error message displayed when the numbered list start index input value is not a valid number."
121
+ msgid "Invalid start index value."
122
+ msgstr "Giá trị chỉ mục bắt đầu không hợp lệ."
123
+
120
124
  msgctxt "The error message displayed when the numbered list start index input value is invalid."
121
125
  msgid "Start index must be greater than 0."
122
126
  msgstr "Chỉ mục bắt đầu phải lớn hơn 0."
@@ -124,3 +128,15 @@ msgstr "Chỉ mục bắt đầu phải lớn hơn 0."
124
128
  msgctxt "The label of the switch button that reverses the order of the numbered list."
125
129
  msgid "Reversed order"
126
130
  msgstr "Thứ tự đảo ngược"
131
+
132
+ msgctxt "Accessibility help dialog header text displayed before the list of keystrokes that can be used in a list."
133
+ msgid "Keystrokes that can be used in a list"
134
+ msgstr "Tổ hợp phím mà bạn có thể dùng trong danh sách"
135
+
136
+ msgctxt "Keystroke description for assistive technologies: keystroke for increasing list item indentation."
137
+ msgid "Increase list item indent"
138
+ msgstr "Tăng thụt lề mục danh sách"
139
+
140
+ msgctxt "Keystroke description for assistive technologies: keystroke for decreasing list item indentation."
141
+ msgid "Decrease list item indent"
142
+ msgstr "Giảm thụt lề mục danh sách"
@@ -117,6 +117,10 @@ msgctxt "The label of the input allowing to change the start index of a numbered
117
117
  msgid "Start at"
118
118
  msgstr "起始编号"
119
119
 
120
+ msgctxt "The error message displayed when the numbered list start index input value is not a valid number."
121
+ msgid "Invalid start index value."
122
+ msgstr "无效的起始索引值。"
123
+
120
124
  msgctxt "The error message displayed when the numbered list start index input value is invalid."
121
125
  msgid "Start index must be greater than 0."
122
126
  msgstr "起始编号必须大于0。"
@@ -124,3 +128,15 @@ msgstr "起始编号必须大于0。"
124
128
  msgctxt "The label of the switch button that reverses the order of the numbered list."
125
129
  msgid "Reversed order"
126
130
  msgstr "顺序反转"
131
+
132
+ msgctxt "Accessibility help dialog header text displayed before the list of keystrokes that can be used in a list."
133
+ msgid "Keystrokes that can be used in a list"
134
+ msgstr "可在列表中使用的按键"
135
+
136
+ msgctxt "Keystroke description for assistive technologies: keystroke for increasing list item indentation."
137
+ msgid "Increase list item indent"
138
+ msgstr "增加列表项的缩进"
139
+
140
+ msgctxt "Keystroke description for assistive technologies: keystroke for decreasing list item indentation."
141
+ msgid "Decrease list item indent"
142
+ msgstr "减少列表项的缩进"
@@ -117,6 +117,10 @@ msgctxt "The label of the input allowing to change the start index of a numbered
117
117
  msgid "Start at"
118
118
  msgstr "起始於"
119
119
 
120
+ msgctxt "The error message displayed when the numbered list start index input value is not a valid number."
121
+ msgid "Invalid start index value."
122
+ msgstr "無效的起始索引值。"
123
+
120
124
  msgctxt "The error message displayed when the numbered list start index input value is invalid."
121
125
  msgid "Start index must be greater than 0."
122
126
  msgstr "起始索引須大於 0。"
@@ -124,3 +128,15 @@ msgstr "起始索引須大於 0。"
124
128
  msgctxt "The label of the switch button that reverses the order of the numbered list."
125
129
  msgid "Reversed order"
126
130
  msgstr "反轉順序"
131
+
132
+ msgctxt "Accessibility help dialog header text displayed before the list of keystrokes that can be used in a list."
133
+ msgid "Keystrokes that can be used in a list"
134
+ msgstr "可在列表中使用的按鍵"
135
+
136
+ msgctxt "Keystroke description for assistive technologies: keystroke for increasing list item indentation."
137
+ msgid "Increase list item indent"
138
+ msgstr "增加列表項目縮排"
139
+
140
+ msgctxt "Keystroke description for assistive technologies: keystroke for decreasing list item indentation."
141
+ msgid "Decrease list item indent"
142
+ msgstr "減少列表項目縮排"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-list",
3
- "version": "41.1.0",
3
+ "version": "41.2.0",
4
4
  "description": "Ordered and unordered lists feature to CKEditor 5.",
5
5
  "keywords": [
6
6
  "ckeditor",
@@ -13,7 +13,7 @@
13
13
  "type": "module",
14
14
  "main": "src/index.js",
15
15
  "dependencies": {
16
- "ckeditor5": "41.1.0"
16
+ "ckeditor5": "41.2.0"
17
17
  },
18
18
  "author": "CKSource (http://cksource.com/)",
19
19
  "license": "GPL-2.0-or-later",
@@ -2,7 +2,7 @@
2
2
  * @license Copyright (c) 2003-2024, 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 type { List, ListEditing, ListUtils, ListUI, ListCommand, ListIndentCommand, ListMergeCommand, ListSplitCommand, ListProperties, ListPropertiesUtils, ListPropertiesEditing, ListPropertiesUI, ListStyleCommand, ListStartCommand, ListReversedCommand, TodoList, TodoListEditing, TodoListUI, CheckTodoListCommand, LegacyList, LegacyListEditing, LegacyListUtils, LegacyListCommand, LegacyIndentCommand, LegacyListProperties, LegacyListPropertiesEditing, LegacyListStyleCommand, LegacyListStartCommand, LegacyListReversedCommand, LegacyTodoList, LegacyTodoListEditing, LegacyCheckTodoListCommand, ListConfig, DocumentList, DocumentListProperties, TodoDocumentList } from '.';
5
+ import type { List, ListEditing, ListUtils, ListUI, ListCommand, ListIndentCommand, ListMergeCommand, ListSplitCommand, ListProperties, ListPropertiesUtils, ListPropertiesEditing, ListPropertiesUI, ListStyleCommand, ListStartCommand, ListReversedCommand, TodoList, TodoListEditing, TodoListUI, CheckTodoListCommand, LegacyList, LegacyListEditing, LegacyListUtils, LegacyListCommand, LegacyIndentCommand, LegacyListProperties, LegacyListPropertiesEditing, LegacyListStyleCommand, LegacyListStartCommand, LegacyListReversedCommand, LegacyTodoList, LegacyTodoListEditing, LegacyCheckTodoListCommand, ListConfig, DocumentList, DocumentListProperties, TodoDocumentList } from './index.js';
6
6
  declare module '@ckeditor/ckeditor5-core' {
7
7
  interface EditorConfig {
8
8
  /**
@@ -91,6 +91,10 @@ export default class ListEditing extends Plugin {
91
91
  * {@link module:engine/model/model~Model#getSelectedContent}.
92
92
  */
93
93
  private _setupClipboardIntegration;
94
+ /**
95
+ * Informs editor accessibility features about keystrokes brought by the plugin.
96
+ */
97
+ private _setupAccessibilityIntegration;
94
98
  }
95
99
  /**
96
100
  * The attribute to attribute downcast strategy for UL, OL, LI elements.
@@ -101,6 +101,7 @@ export default class ListEditing extends Plugin {
101
101
  this._setupEnterIntegration();
102
102
  this._setupTabIntegration();
103
103
  this._setupClipboardIntegration();
104
+ this._setupAccessibilityIntegration();
104
105
  }
105
106
  /**
106
107
  * @inheritDoc
@@ -450,6 +451,27 @@ export default class ListEditing extends Plugin {
450
451
  });
451
452
  });
452
453
  }
454
+ /**
455
+ * Informs editor accessibility features about keystrokes brought by the plugin.
456
+ */
457
+ _setupAccessibilityIntegration() {
458
+ const editor = this.editor;
459
+ const t = editor.t;
460
+ editor.accessibility.addKeystrokeInfoGroup({
461
+ id: 'list',
462
+ label: t('Keystrokes that can be used in a list'),
463
+ keystrokes: [
464
+ {
465
+ label: t('Increase list item indent'),
466
+ keystroke: 'Tab'
467
+ },
468
+ {
469
+ label: t('Decrease list item indent'),
470
+ keystroke: 'Shift+Tab'
471
+ }
472
+ ]
473
+ });
474
+ }
453
475
  }
454
476
  /**
455
477
  * Post-fixer that reacts to changes on document and fixes incorrect model states (invalid `listItemId` and `listIndent` values).
@@ -270,6 +270,9 @@ export default class ListPropertiesView extends View {
270
270
  const inputElement = startIndexFieldView.fieldView.element;
271
271
  const startIndex = inputElement.valueAsNumber;
272
272
  if (Number.isNaN(startIndex)) {
273
+ // Number inputs allow for the entry of characters that may result in NaN,
274
+ // such as 'e', '+', '123e', '2-'.
275
+ startIndexFieldView.errorText = t('Invalid start index value.');
273
276
  return;
274
277
  }
275
278
  if (!inputElement.checkValidity()) {