@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.
- package/build/list.js +1 -1
- package/build/translations/be.js +1 -0
- package/ckeditor5-metadata.json +6 -6
- package/dist/index.js +17 -34
- package/dist/index.js.map +1 -1
- package/dist/translations/be.d.ts +8 -0
- package/dist/translations/be.js +5 -0
- package/dist/translations/be.umd.js +11 -0
- package/lang/translations/be.po +144 -0
- package/package.json +10 -9
- package/src/legacylist/legacyindentcommand.js +4 -0
- package/src/legacylist/legacylistcommand.js +4 -0
- package/src/legacylistproperties/legacyliststylecommand.js +4 -0
- package/src/legacytodolist/legacychecktodolistcommand.js +6 -0
- package/src/list/listcommand.js +11 -0
- package/src/list/listediting.js +4 -4
- package/src/list/listindentcommand.js +4 -0
- package/src/list/listmergecommand.js +4 -0
- package/src/list/listsplitcommand.js +4 -0
- package/src/list/listui.js +4 -3
- package/src/list/utils/listwalker.js +38 -3
- package/src/listproperties/listpropertiesui.js +14 -22
- package/src/listproperties/liststylecommand.js +8 -0
- package/src/listproperties/ui/listpropertiesview.js +52 -44
- package/src/todolist/todocheckboxchangeobserver.js +4 -7
- package/src/todolist/todolistui.js +3 -2
- package/theme/icons/liststylecircle.svg +0 -1
- package/theme/icons/liststyledecimal.svg +0 -1
- package/theme/icons/liststyledecimalleadingzero.svg +0 -1
- package/theme/icons/liststyledisc.svg +0 -1
- package/theme/icons/liststylelowerlatin.svg +0 -1
- package/theme/icons/liststylelowerroman.svg +0 -1
- package/theme/icons/liststylesquare.svg +0 -1
- package/theme/icons/liststyleupperlatin.svg +0 -1
- package/theme/icons/liststyleupperroman.svg +0 -1
package/ckeditor5-metadata.json
CHANGED
|
@@ -10,12 +10,12 @@
|
|
|
10
10
|
{
|
|
11
11
|
"type": "Button",
|
|
12
12
|
"name": "numberedList",
|
|
13
|
-
"iconPath": "@ckeditor/ckeditor5-
|
|
13
|
+
"iconPath": "@ckeditor/ckeditor5-icons/theme/icons/numbered-list.svg"
|
|
14
14
|
},
|
|
15
15
|
{
|
|
16
16
|
"type": "Button",
|
|
17
17
|
"name": "bulletedList",
|
|
18
|
-
"iconPath": "@ckeditor/ckeditor5-
|
|
18
|
+
"iconPath": "@ckeditor/ckeditor5-icons/theme/icons/bulleted-list.svg"
|
|
19
19
|
}
|
|
20
20
|
],
|
|
21
21
|
"htmlOutput": [
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
{
|
|
42
42
|
"type": "Button",
|
|
43
43
|
"name": "todoList",
|
|
44
|
-
"iconPath": "@ckeditor/ckeditor5-
|
|
44
|
+
"iconPath": "@ckeditor/ckeditor5-icons/theme/icons/todo-list.svg"
|
|
45
45
|
}
|
|
46
46
|
],
|
|
47
47
|
"htmlOutput": [
|
|
@@ -103,12 +103,12 @@
|
|
|
103
103
|
{
|
|
104
104
|
"type": "Button",
|
|
105
105
|
"name": "numberedList",
|
|
106
|
-
"iconPath": "@ckeditor/ckeditor5-
|
|
106
|
+
"iconPath": "@ckeditor/ckeditor5-icons/theme/icons/numbered-list.svg"
|
|
107
107
|
},
|
|
108
108
|
{
|
|
109
109
|
"type": "Button",
|
|
110
110
|
"name": "bulletedList",
|
|
111
|
-
"iconPath": "@ckeditor/ckeditor5-
|
|
111
|
+
"iconPath": "@ckeditor/ckeditor5-icons/theme/icons/bulleted-list.svg"
|
|
112
112
|
}
|
|
113
113
|
],
|
|
114
114
|
"htmlOutput": [
|
|
@@ -136,7 +136,7 @@
|
|
|
136
136
|
{
|
|
137
137
|
"type": "Button",
|
|
138
138
|
"name": "todoList",
|
|
139
|
-
"iconPath": "@ckeditor/ckeditor5-
|
|
139
|
+
"iconPath": "@ckeditor/ckeditor5-icons/theme/icons/todo-list.svg"
|
|
140
140
|
}
|
|
141
141
|
],
|
|
142
142
|
"htmlOutput": [
|
package/dist/index.js
CHANGED
|
@@ -2,12 +2,13 @@
|
|
|
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 { Command, Plugin
|
|
5
|
+
import { Command, Plugin } from '@ckeditor/ckeditor5-core/dist/index.js';
|
|
6
6
|
import { Delete } from '@ckeditor/ckeditor5-typing/dist/index.js';
|
|
7
7
|
import { Enter } from '@ckeditor/ckeditor5-enter/dist/index.js';
|
|
8
8
|
import { toArray, first, uid, CKEditorError, FocusTracker, KeystrokeHandler, global, getCode, parseKeystroke, getLocalizedArrowKeyCodeDirection, createElement, logWarning } from '@ckeditor/ckeditor5-utils/dist/index.js';
|
|
9
9
|
import { ClipboardPipeline } from '@ckeditor/ckeditor5-clipboard/dist/index.js';
|
|
10
10
|
import { ButtonView, MenuBarMenuListItemButtonView, View, ViewCollection, FocusCycler, addKeyboardHandlingForGrid, CollapsibleView, LabeledFieldView, createLabeledInputNumber, SwitchButtonView, createDropdown, SplitButtonView, MenuBarMenuView, focusChildOnDropdownOpen } from '@ckeditor/ckeditor5-ui/dist/index.js';
|
|
11
|
+
import { IconNumberedList, IconBulletedList, IconListStyleDisc, IconListStyleCircle, IconListStyleSquare, IconListStyleDecimal, IconListStyleDecimalLeadingZero, IconListStyleLowerRoman, IconListStyleUpperRoman, IconListStyleLowerLatin, IconListStyleUpperLatin, IconTodoList } from '@ckeditor/ckeditor5-icons/dist/index.js';
|
|
11
12
|
import { DomEventObserver, Matcher, TreeWalker, getFillerOffset } from '@ckeditor/ckeditor5-engine/dist/index.js';
|
|
12
13
|
|
|
13
14
|
/**
|
|
@@ -2638,11 +2639,11 @@ function shouldUseBogusParagraph(item, attributeNames, blocks = getAllListItemBl
|
|
|
2638
2639
|
const t = this.editor.t;
|
|
2639
2640
|
// Create button numberedList.
|
|
2640
2641
|
if (!this.editor.ui.componentFactory.has('numberedList')) {
|
|
2641
|
-
createUIComponents(this.editor, 'numberedList', t('Numbered List'),
|
|
2642
|
+
createUIComponents(this.editor, 'numberedList', t('Numbered List'), IconNumberedList);
|
|
2642
2643
|
}
|
|
2643
2644
|
// Create button bulletedList.
|
|
2644
2645
|
if (!this.editor.ui.componentFactory.has('bulletedList')) {
|
|
2645
|
-
createUIComponents(this.editor, 'bulletedList', t('Bulleted List'),
|
|
2646
|
+
createUIComponents(this.editor, 'bulletedList', t('Bulleted List'), IconBulletedList);
|
|
2646
2647
|
}
|
|
2647
2648
|
}
|
|
2648
2649
|
}
|
|
@@ -3657,24 +3658,6 @@ const DEFAULT_LIST_TYPE$1 = 'default';
|
|
|
3657
3658
|
}
|
|
3658
3659
|
}
|
|
3659
3660
|
|
|
3660
|
-
var listStyleDiscIcon = "<svg viewBox=\"0 0 44 44\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M35 29a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17z\" fill-opacity=\".163\"/><path d=\"M11 27a3 3 0 1 1 0 6 3 3 0 0 1 0-6zm0-9a3 3 0 1 1 0 6 3 3 0 0 1 0-6zm0-9a3 3 0 1 1 0 6 3 3 0 0 1 0-6z\"/></svg>";
|
|
3661
|
-
|
|
3662
|
-
var listStyleCircleIcon = "<svg viewBox=\"0 0 44 44\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M35 29a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17z\" fill-opacity=\".163\"/><path d=\"M11 27a3 3 0 1 1 0 6 3 3 0 0 1 0-6zm0 1a2 2 0 1 0 0 4 2 2 0 0 0 0-4zm0-10a3 3 0 1 1 0 6 3 3 0 0 1 0-6zm0 1a2 2 0 1 0 0 4 2 2 0 0 0 0-4zm0-10a3 3 0 1 1 0 6 3 3 0 0 1 0-6zm0 1a2 2 0 1 0 0 4 2 2 0 0 0 0-4z\"/></svg>";
|
|
3663
|
-
|
|
3664
|
-
var listStyleSquareIcon = "<svg viewBox=\"0 0 44 44\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M35 29a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17z\" fill-opacity=\".163\"/><path d=\"M14 27v6H8v-6h6zm0-9v6H8v-6h6zm0-9v6H8V9h6z\"/></svg>";
|
|
3665
|
-
|
|
3666
|
-
var listStyleDecimalIcon = "<svg viewBox=\"0 0 44 44\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M35 29a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17z\" fill-opacity=\".163\"/><path d=\"M10.29 15V8.531H9.286c-.14.393-.4.736-.778 1.03-.378.295-.728.495-1.05.6v1.121a4.257 4.257 0 0 0 1.595-.936V15h1.235zm3.343 0v-1.235h-1.235V15h1.235zM11.3 24v-1.147H8.848c.064-.111.148-.226.252-.343.104-.117.351-.354.74-.712.39-.357.66-.631.81-.821.225-.288.39-.562.494-.824.104-.263.156-.539.156-.829 0-.51-.182-.936-.545-1.279-.363-.342-.863-.514-1.499-.514-.58 0-1.063.148-1.45.444-.387.296-.617.784-.69 1.463l1.23.124c.024-.36.112-.619.264-.774.153-.155.358-.233.616-.233.26 0 .465.074.613.222.148.148.222.36.222.635 0 .25-.085.501-.255.756-.126.185-.468.536-1.024 1.055-.692.641-1.155 1.156-1.389 1.544-.234.389-.375.8-.422 1.233H11.3zm2.333 0v-1.235h-1.235V24h1.235zM9.204 34.11c.615 0 1.129-.2 1.542-.598.413-.398.62-.88.62-1.446 0-.39-.11-.722-.332-.997a1.5 1.5 0 0 0-.886-.532c.619-.337.928-.788.928-1.353 0-.399-.151-.756-.453-1.073-.366-.386-.852-.58-1.459-.58a2.25 2.25 0 0 0-.96.2 1.617 1.617 0 0 0-.668.55c-.16.232-.28.544-.358.933l1.138.194c.032-.282.123-.495.272-.642.15-.146.33-.22.54-.22.215 0 .386.065.515.194s.193.302.193.518c0 .255-.087.46-.263.613-.176.154-.43.227-.765.218l-.136 1.006c.22-.061.409-.092.567-.092.24 0 .444.09.61.272.168.182.251.428.251.739 0 .328-.087.589-.261.782a.833.833 0 0 1-.644.29.841.841 0 0 1-.607-.242c-.167-.16-.27-.394-.307-.698l-1.196.145c.062.542.285.98.668 1.316.384.335.868.503 1.45.503zm4.43-.11v-1.235h-1.236V34h1.235z\"/></svg>";
|
|
3667
|
-
|
|
3668
|
-
var listStyleDecimalWithLeadingZeroIcon = "<svg viewBox=\"0 0 44 44\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M35 29a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17z\" fill-opacity=\".163\"/><path d=\"M5.714 15.11c.624 0 1.11-.22 1.46-.66.421-.533.632-1.408.632-2.627 0-1.222-.21-2.096-.629-2.624-.351-.445-.839-.668-1.463-.668-.624 0-1.11.22-1.459.66-.422.533-.633 1.406-.633 2.619 0 1.236.192 2.095.576 2.577.384.482.89.723 1.516.723zm0-1.024a.614.614 0 0 1-.398-.14c-.115-.094-.211-.283-.287-.565-.077-.283-.115-.802-.115-1.558s.043-1.294.128-1.613c.064-.246.155-.417.272-.512a.617.617 0 0 1 .4-.143.61.61 0 0 1 .398.143c.116.095.211.284.288.567.076.283.114.802.114 1.558s-.043 1.292-.128 1.608c-.064.246-.155.417-.272.512a.617.617 0 0 1-.4.143zm6.078.914V8.531H10.79c-.14.393-.4.736-.778 1.03-.378.295-.728.495-1.05.6v1.121a4.257 4.257 0 0 0 1.595-.936V15h1.235zm3.344 0v-1.235h-1.235V15h1.235zm-9.422 9.11c.624 0 1.11-.22 1.46-.66.421-.533.632-1.408.632-2.627 0-1.222-.21-2.096-.629-2.624-.351-.445-.839-.668-1.463-.668-.624 0-1.11.22-1.459.66-.422.533-.633 1.406-.633 2.619 0 1.236.192 2.095.576 2.577.384.482.89.723 1.516.723zm0-1.024a.614.614 0 0 1-.398-.14c-.115-.094-.211-.283-.287-.565-.077-.283-.115-.802-.115-1.558s.043-1.294.128-1.613c.064-.246.155-.417.272-.512a.617.617 0 0 1 .4-.143.61.61 0 0 1 .398.143c.116.095.211.284.288.567.076.283.114.802.114 1.558s-.043 1.292-.128 1.608c-.064.246-.155.417-.272.512a.617.617 0 0 1-.4.143zm7.088.914v-1.147H10.35c.065-.111.149-.226.253-.343.104-.117.35-.354.74-.712.39-.357.66-.631.81-.821.225-.288.39-.562.493-.824.104-.263.156-.539.156-.829 0-.51-.181-.936-.544-1.279-.364-.342-.863-.514-1.499-.514-.58 0-1.063.148-1.45.444-.387.296-.617.784-.69 1.463l1.23.124c.024-.36.112-.619.264-.774.152-.155.357-.233.615-.233.261 0 .465.074.613.222.148.148.222.36.222.635 0 .25-.085.501-.255.756-.126.185-.467.536-1.024 1.055-.691.641-1.154 1.156-1.388 1.544-.235.389-.375.8-.422 1.233h4.328zm2.334 0v-1.235h-1.235V24h1.235zM5.714 34.11c.624 0 1.11-.22 1.46-.66.421-.533.632-1.408.632-2.627 0-1.222-.21-2.096-.629-2.624-.351-.445-.839-.668-1.463-.668-.624 0-1.11.22-1.459.66-.422.533-.633 1.406-.633 2.619 0 1.236.192 2.095.576 2.577.384.482.89.723 1.516.723zm0-1.024a.614.614 0 0 1-.398-.14c-.115-.094-.211-.283-.287-.565-.077-.283-.115-.802-.115-1.558s.043-1.294.128-1.613c.064-.246.155-.417.272-.512a.617.617 0 0 1 .4-.143.61.61 0 0 1 .398.143c.116.095.211.284.288.567.076.283.114.802.114 1.558s-.043 1.292-.128 1.608c-.064.246-.155.417-.272.512a.617.617 0 0 1-.4.143zm4.992 1.024c.616 0 1.13-.2 1.543-.598.413-.398.62-.88.62-1.446 0-.39-.111-.722-.332-.997a1.5 1.5 0 0 0-.886-.532c.618-.337.927-.788.927-1.353 0-.399-.15-.756-.452-1.073-.366-.386-.853-.58-1.46-.58a2.25 2.25 0 0 0-.96.2 1.617 1.617 0 0 0-.667.55c-.16.232-.28.544-.359.933l1.139.194c.032-.282.123-.495.272-.642.15-.146.33-.22.54-.22.214 0 .386.065.515.194s.193.302.193.518c0 .255-.088.46-.264.613-.175.154-.43.227-.764.218l-.136 1.006c.22-.061.408-.092.566-.092.24 0 .444.09.611.272.167.182.25.428.25.739 0 .328-.086.589-.26.782a.833.833 0 0 1-.644.29.841.841 0 0 1-.607-.242c-.167-.16-.27-.394-.308-.698l-1.195.145c.062.542.284.98.668 1.316.384.335.867.503 1.45.503zm4.43-.11v-1.235h-1.235V34h1.235z\"/></svg>";
|
|
3669
|
-
|
|
3670
|
-
var listStyleLowerRomanIcon = "<svg viewBox=\"0 0 44 44\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M35 29a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17z\" fill-opacity=\".163\"/><path d=\"M11.88 8.7V7.558h-1.234V8.7h1.234zm0 5.3V9.333h-1.234V14h1.234zm2.5 0v-1.235h-1.234V14h1.235zm-4.75 4.7v-1.142H8.395V18.7H9.63zm0 5.3v-4.667H8.395V24H9.63zm2.5-5.3v-1.142h-1.234V18.7h1.235zm0 5.3v-4.667h-1.234V24h1.235zm2.501 0v-1.235h-1.235V24h1.235zM7.38 28.7v-1.142H6.145V28.7H7.38zm0 5.3v-4.667H6.145V34H7.38zm2.5-5.3v-1.142H8.646V28.7H9.88zm0 5.3v-4.667H8.646V34H9.88zm2.5-5.3v-1.142h-1.234V28.7h1.235zm0 5.3v-4.667h-1.234V34h1.235zm2.501 0v-1.235h-1.235V34h1.235z\"/></svg>";
|
|
3671
|
-
|
|
3672
|
-
var listStyleUpperRomanIcon = "<svg viewBox=\"0 0 44 44\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M35 29a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17z\" fill-opacity=\".163\"/><path d=\"M11.916 15V8.558h-1.301V15h1.3zm2.465 0v-1.235h-1.235V15h1.235zM9.665 25v-6.442h-1.3V25h1.3zm2.5 0v-6.442h-1.3V25h1.3zm2.466 0v-1.235h-1.235V25h1.235zm-7.216 9v-6.442h-1.3V34h1.3zm2.5 0v-6.442h-1.3V34h1.3zm2.501 0v-6.442h-1.3V34h1.3zm2.465 0v-1.235h-1.235V34h1.235z\"/></svg>";
|
|
3673
|
-
|
|
3674
|
-
var listStyleLowerLatinIcon = "<svg viewBox=\"0 0 44 44\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M35 29a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17z\" fill-opacity=\".163\"/><path d=\"M9.62 14.105c.272 0 .528-.05.768-.153s.466-.257.677-.462c.009.024.023.072.044.145.047.161.086.283.119.365h1.221a2.649 2.649 0 0 1-.222-.626c-.04-.195-.059-.498-.059-.908l.013-1.441c0-.536-.055-.905-.165-1.105-.11-.201-.3-.367-.569-.497-.27-.13-.68-.195-1.23-.195-.607 0-1.064.108-1.371.325-.308.217-.525.55-.65 1.002l1.12.202c.076-.217.176-.369.299-.455.123-.086.294-.13.514-.13.325 0 .546.05.663.152.118.101.176.27.176.508v.123c-.222.093-.622.194-1.2.303-.427.082-.755.178-.982.288-.227.11-.403.268-.53.474a1.327 1.327 0 0 0-.188.706c0 .398.138.728.415.988.277.261.656.391 1.136.391zm.368-.87a.675.675 0 0 1-.492-.189.606.606 0 0 1-.193-.448c0-.176.08-.32.241-.435.106-.07.33-.142.673-.215a7.19 7.19 0 0 0 .751-.19v.247c0 .296-.016.496-.048.602a.773.773 0 0 1-.295.409 1.07 1.07 0 0 1-.637.22zm4.645.765v-1.235h-1.235V14h1.235zM10.2 25.105c.542 0 1.003-.215 1.382-.646.38-.43.57-1.044.57-1.84 0-.771-.187-1.362-.559-1.774a1.82 1.82 0 0 0-1.41-.617c-.522 0-.973.216-1.354.65v-2.32H7.594V25h1.147v-.686a1.9 1.9 0 0 0 .67.592c.26.133.523.2.79.2zm-.299-.975c-.354 0-.638-.164-.852-.492-.153-.232-.229-.59-.229-1.073 0-.468.098-.818.295-1.048a.93.93 0 0 1 .738-.345c.302 0 .55.118.743.354.193.236.29.62.29 1.154 0 .5-.096.868-.288 1.1-.192.233-.424.35-.697.35zm4.478.87v-1.235h-1.234V25h1.234zm-4.017 9.105c.6 0 1.08-.142 1.437-.426.357-.284.599-.704.725-1.261l-1.213-.207c-.061.326-.167.555-.316.688a.832.832 0 0 1-.576.2.916.916 0 0 1-.75-.343c-.185-.228-.278-.62-.278-1.173 0-.498.091-.853.274-1.066.183-.212.429-.318.736-.318.232 0 .42.061.565.184.145.123.238.306.28.55l1.216-.22c-.146-.501-.387-.874-.722-1.119-.336-.244-.788-.366-1.356-.366-.695 0-1.245.214-1.653.643-.407.43-.61 1.03-.61 1.8 0 .762.202 1.358.608 1.788.406.431.95.646 1.633.646zM14.633 34v-1.235h-1.235V34h1.235z\"/></svg>";
|
|
3675
|
-
|
|
3676
|
-
var listStyleUpperLatinIcon = "<svg viewBox=\"0 0 44 44\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M35 29a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17z\" fill-opacity=\".163\"/><path d=\"m7.88 15 .532-1.463h2.575L11.549 15h1.415l-2.58-6.442H9.01L6.5 15h1.38zm2.69-2.549H8.811l.87-2.39.887 2.39zM14.88 15v-1.235h-1.234V15h1.234zM9.352 25c.83-.006 1.352-.02 1.569-.044.346-.038.636-.14.872-.305.236-.166.422-.387.558-.664.137-.277.205-.562.205-.855 0-.372-.106-.695-.317-.97-.21-.276-.512-.471-.905-.585a1.51 1.51 0 0 0 .661-.567 1.5 1.5 0 0 0 .244-.83c0-.28-.066-.53-.197-.754a1.654 1.654 0 0 0-.495-.539 1.676 1.676 0 0 0-.672-.266c-.25-.042-.63-.063-1.14-.063H7.158V25h2.193zm.142-3.88H8.46v-1.49h.747c.612 0 .983.007 1.112.022.217.026.38.102.49.226.11.125.165.287.165.486a.68.68 0 0 1-.192.503.86.86 0 0 1-.525.23 11.47 11.47 0 0 1-.944.023h.18zm.17 2.795H8.46v-1.723h1.05c.592 0 .977.03 1.154.092.177.062.313.16.406.295a.84.84 0 0 1 .14.492c0 .228-.06.41-.181.547a.806.806 0 0 1-.473.257c-.126.026-.423.04-.892.04zM14.88 25v-1.235h-1.234V25h1.234zm-5.018 9.11c.691 0 1.262-.17 1.711-.512.45-.341.772-.864.965-1.567l-1.261-.4c-.109.472-.287.818-.536 1.037-.25.22-.547.33-.892.33-.47 0-.85-.173-1.143-.519-.293-.345-.44-.925-.44-1.74 0-.767.15-1.322.447-1.665.297-.343.684-.514 1.162-.514.346 0 .64.096.881.29.242.193.4.457.477.79l1.288-.307c-.147-.516-.367-.911-.66-1.187-.492-.465-1.132-.698-1.92-.698-.902 0-1.63.296-2.184.89-.554.593-.83 1.426-.83 2.498 0 1.014.275 1.813.825 2.397.551.585 1.254.877 2.11.877zM14.88 34v-1.235h-1.234V34h1.234z\"/></svg>";
|
|
3677
|
-
|
|
3678
3661
|
/**
|
|
3679
3662
|
* The list properties UI plugin. It introduces the extended `'bulletedList'` and `'numberedList'` toolbar
|
|
3680
3663
|
* buttons that allow users to control such aspects of list as the marker, start index or order.
|
|
@@ -3707,19 +3690,19 @@ var listStyleUpperLatinIcon = "<svg viewBox=\"0 0 44 44\" xmlns=\"http://www.w3.
|
|
|
3707
3690
|
label: t('Toggle the disc list style'),
|
|
3708
3691
|
tooltip: t('Disc'),
|
|
3709
3692
|
type: 'disc',
|
|
3710
|
-
icon:
|
|
3693
|
+
icon: IconListStyleDisc
|
|
3711
3694
|
},
|
|
3712
3695
|
{
|
|
3713
3696
|
label: t('Toggle the circle list style'),
|
|
3714
3697
|
tooltip: t('Circle'),
|
|
3715
3698
|
type: 'circle',
|
|
3716
|
-
icon:
|
|
3699
|
+
icon: IconListStyleCircle
|
|
3717
3700
|
},
|
|
3718
3701
|
{
|
|
3719
3702
|
label: t('Toggle the square list style'),
|
|
3720
3703
|
tooltip: t('Square'),
|
|
3721
3704
|
type: 'square',
|
|
3722
|
-
icon:
|
|
3705
|
+
icon: IconListStyleSquare
|
|
3723
3706
|
}
|
|
3724
3707
|
];
|
|
3725
3708
|
const buttonLabel = t('Bulleted List');
|
|
@@ -3730,7 +3713,7 @@ var listStyleUpperLatinIcon = "<svg viewBox=\"0 0 44 44\" xmlns=\"http://www.w3.
|
|
|
3730
3713
|
normalizedConfig,
|
|
3731
3714
|
parentCommandName: commandName,
|
|
3732
3715
|
buttonLabel,
|
|
3733
|
-
buttonIcon:
|
|
3716
|
+
buttonIcon: IconBulletedList,
|
|
3734
3717
|
styleGridAriaLabel,
|
|
3735
3718
|
styleDefinitions
|
|
3736
3719
|
}));
|
|
@@ -3753,37 +3736,37 @@ var listStyleUpperLatinIcon = "<svg viewBox=\"0 0 44 44\" xmlns=\"http://www.w3.
|
|
|
3753
3736
|
label: t('Toggle the decimal list style'),
|
|
3754
3737
|
tooltip: t('Decimal'),
|
|
3755
3738
|
type: 'decimal',
|
|
3756
|
-
icon:
|
|
3739
|
+
icon: IconListStyleDecimal
|
|
3757
3740
|
},
|
|
3758
3741
|
{
|
|
3759
3742
|
label: t('Toggle the decimal with leading zero list style'),
|
|
3760
3743
|
tooltip: t('Decimal with leading zero'),
|
|
3761
3744
|
type: 'decimal-leading-zero',
|
|
3762
|
-
icon:
|
|
3745
|
+
icon: IconListStyleDecimalLeadingZero
|
|
3763
3746
|
},
|
|
3764
3747
|
{
|
|
3765
3748
|
label: t('Toggle the lower–roman list style'),
|
|
3766
3749
|
tooltip: t('Lower–roman'),
|
|
3767
3750
|
type: 'lower-roman',
|
|
3768
|
-
icon:
|
|
3751
|
+
icon: IconListStyleLowerRoman
|
|
3769
3752
|
},
|
|
3770
3753
|
{
|
|
3771
3754
|
label: t('Toggle the upper–roman list style'),
|
|
3772
3755
|
tooltip: t('Upper-roman'),
|
|
3773
3756
|
type: 'upper-roman',
|
|
3774
|
-
icon:
|
|
3757
|
+
icon: IconListStyleUpperRoman
|
|
3775
3758
|
},
|
|
3776
3759
|
{
|
|
3777
3760
|
label: t('Toggle the lower–latin list style'),
|
|
3778
3761
|
tooltip: t('Lower-latin'),
|
|
3779
3762
|
type: 'lower-latin',
|
|
3780
|
-
icon:
|
|
3763
|
+
icon: IconListStyleLowerLatin
|
|
3781
3764
|
},
|
|
3782
3765
|
{
|
|
3783
3766
|
label: t('Toggle the upper–latin list style'),
|
|
3784
3767
|
tooltip: t('Upper-latin'),
|
|
3785
3768
|
type: 'upper-latin',
|
|
3786
|
-
icon:
|
|
3769
|
+
icon: IconListStyleUpperLatin
|
|
3787
3770
|
}
|
|
3788
3771
|
];
|
|
3789
3772
|
const buttonLabel = t('Numbered List');
|
|
@@ -3794,7 +3777,7 @@ var listStyleUpperLatinIcon = "<svg viewBox=\"0 0 44 44\" xmlns=\"http://www.w3.
|
|
|
3794
3777
|
normalizedConfig,
|
|
3795
3778
|
parentCommandName: commandName,
|
|
3796
3779
|
buttonLabel,
|
|
3797
|
-
buttonIcon:
|
|
3780
|
+
buttonIcon: IconNumberedList,
|
|
3798
3781
|
styleGridAriaLabel,
|
|
3799
3782
|
styleDefinitions
|
|
3800
3783
|
}));
|
|
@@ -4019,7 +4002,7 @@ var listStyleUpperLatinIcon = "<svg viewBox=\"0 0 44 44\" xmlns=\"http://www.w3.
|
|
|
4019
4002
|
listPropertiesView.delegate('execute').to(menuView);
|
|
4020
4003
|
menuView.buttonView.set({
|
|
4021
4004
|
label: buttonLabel,
|
|
4022
|
-
icon:
|
|
4005
|
+
icon: parentCommandName === 'bulletedList' ? IconBulletedList : IconNumberedList
|
|
4023
4006
|
});
|
|
4024
4007
|
menuView.panelView.children.add(listPropertiesView);
|
|
4025
4008
|
menuView.bind('isEnabled').to(listCommand, 'isEnabled');
|
|
@@ -4645,7 +4628,7 @@ const ITEM_TOGGLE_KEYSTROKE$1 = /* #__PURE__ */ parseKeystroke('Ctrl+Enter');
|
|
|
4645
4628
|
* @inheritDoc
|
|
4646
4629
|
*/ init() {
|
|
4647
4630
|
const t = this.editor.t;
|
|
4648
|
-
createUIComponents(this.editor, 'todoList', t('To-do List'),
|
|
4631
|
+
createUIComponents(this.editor, 'todoList', t('To-do List'), IconTodoList);
|
|
4649
4632
|
}
|
|
4650
4633
|
}
|
|
4651
4634
|
|