@ckeditor/ckeditor5-ui 39.0.1 → 40.0.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/CHANGELOG.md +1 -1
- package/LICENSE.md +1 -1
- package/README.md +4 -4
- package/lang/contexts.json +5 -1
- package/lang/translations/ar.po +17 -0
- package/lang/translations/ast.po +17 -0
- package/lang/translations/az.po +17 -0
- package/lang/translations/bg.po +17 -0
- package/lang/translations/bn.po +17 -0
- package/lang/translations/ca.po +17 -0
- package/lang/translations/cs.po +17 -0
- package/lang/translations/da.po +17 -0
- package/lang/translations/de-ch.po +17 -0
- package/lang/translations/de.po +17 -0
- package/lang/translations/el.po +17 -0
- package/lang/translations/en-au.po +17 -0
- package/lang/translations/en-gb.po +17 -0
- package/lang/translations/en.po +17 -0
- package/lang/translations/eo.po +17 -0
- package/lang/translations/es.po +17 -0
- package/lang/translations/et.po +17 -0
- package/lang/translations/eu.po +17 -0
- package/lang/translations/fa.po +17 -0
- package/lang/translations/fi.po +17 -0
- package/lang/translations/fr.po +17 -0
- package/lang/translations/gl.po +17 -0
- package/lang/translations/he.po +17 -0
- package/lang/translations/hi.po +17 -0
- package/lang/translations/hr.po +17 -0
- package/lang/translations/hu.po +17 -0
- package/lang/translations/id.po +17 -0
- package/lang/translations/it.po +17 -0
- package/lang/translations/ja.po +17 -0
- package/lang/translations/km.po +17 -0
- package/lang/translations/kn.po +17 -0
- package/lang/translations/ko.po +17 -0
- package/lang/translations/ku.po +17 -0
- package/lang/translations/lt.po +17 -0
- package/lang/translations/lv.po +17 -0
- package/lang/translations/ms.po +17 -0
- package/lang/translations/nb.po +17 -0
- package/lang/translations/ne.po +17 -0
- package/lang/translations/nl.po +17 -0
- package/lang/translations/no.po +17 -0
- package/lang/translations/pl.po +17 -0
- package/lang/translations/pt-br.po +17 -0
- package/lang/translations/pt.po +17 -0
- package/lang/translations/ro.po +17 -0
- package/lang/translations/ru.po +17 -0
- package/lang/translations/sk.po +17 -0
- package/lang/translations/sl.po +17 -0
- package/lang/translations/sq.po +17 -0
- package/lang/translations/sr-latn.po +17 -0
- package/lang/translations/sr.po +17 -0
- package/lang/translations/sv.po +17 -0
- package/lang/translations/th.po +17 -0
- package/lang/translations/tk.po +17 -0
- package/lang/translations/tr.po +17 -0
- package/lang/translations/tt.po +17 -0
- package/lang/translations/ug.po +17 -0
- package/lang/translations/uk.po +17 -0
- package/lang/translations/ur.po +17 -0
- package/lang/translations/uz.po +17 -0
- package/lang/translations/vi.po +17 -0
- package/lang/translations/zh-cn.po +17 -0
- package/lang/translations/zh.po +17 -0
- package/package.json +3 -7
- package/src/augmentation.d.ts +86 -86
- package/src/augmentation.js +5 -5
- package/src/autocomplete/autocompleteview.d.ts +81 -0
- package/src/autocomplete/autocompleteview.js +146 -0
- package/src/bindings/addkeyboardhandlingforgrid.d.ts +27 -27
- package/src/bindings/addkeyboardhandlingforgrid.js +107 -107
- package/src/bindings/clickoutsidehandler.d.ts +28 -28
- package/src/bindings/clickoutsidehandler.js +36 -36
- package/src/bindings/csstransitiondisablermixin.d.ts +40 -40
- package/src/bindings/csstransitiondisablermixin.js +55 -55
- package/src/bindings/injectcsstransitiondisabler.d.ts +59 -59
- package/src/bindings/injectcsstransitiondisabler.js +71 -71
- package/src/bindings/preventdefault.d.ts +33 -33
- package/src/bindings/preventdefault.js +34 -34
- package/src/bindings/submithandler.d.ts +57 -57
- package/src/bindings/submithandler.js +47 -47
- package/src/button/button.d.ts +178 -178
- package/src/button/button.js +5 -5
- package/src/button/buttonlabel.d.ts +34 -0
- package/src/button/buttonlabel.js +5 -0
- package/src/button/buttonlabelview.d.ts +31 -0
- package/src/button/buttonlabelview.js +42 -0
- package/src/button/buttonview.d.ts +185 -177
- package/src/button/buttonview.js +219 -231
- package/src/button/switchbuttonview.d.ts +45 -45
- package/src/button/switchbuttonview.js +75 -75
- package/src/colorgrid/colorgridview.d.ts +132 -132
- package/src/colorgrid/colorgridview.js +124 -124
- package/src/colorgrid/colortileview.d.ts +28 -28
- package/src/colorgrid/colortileview.js +40 -40
- package/src/colorgrid/utils.d.ts +47 -47
- package/src/colorgrid/utils.js +84 -84
- package/src/colorpicker/colorpickerview.d.ts +137 -137
- package/src/colorpicker/colorpickerview.js +270 -270
- package/src/colorpicker/utils.d.ts +43 -43
- package/src/colorpicker/utils.js +99 -99
- package/src/colorselector/colorgridsfragmentview.d.ts +194 -194
- package/src/colorselector/colorgridsfragmentview.js +289 -289
- package/src/colorselector/colorpickerfragmentview.d.ts +128 -128
- package/src/colorselector/colorpickerfragmentview.js +205 -205
- package/src/colorselector/colorselectorview.d.ts +242 -242
- package/src/colorselector/colorselectorview.js +256 -256
- package/src/colorselector/documentcolorcollection.d.ts +70 -70
- package/src/colorselector/documentcolorcollection.js +42 -42
- package/src/componentfactory.d.ts +81 -81
- package/src/componentfactory.js +104 -104
- package/src/dropdown/button/dropdownbutton.d.ts +25 -25
- package/src/dropdown/button/dropdownbutton.js +5 -5
- package/src/dropdown/button/dropdownbuttonview.d.ts +48 -48
- package/src/dropdown/button/dropdownbuttonview.js +66 -66
- package/src/dropdown/button/splitbuttonview.d.ts +161 -161
- package/src/dropdown/button/splitbuttonview.js +152 -152
- package/src/dropdown/dropdownpanelfocusable.d.ts +21 -21
- package/src/dropdown/dropdownpanelfocusable.js +5 -5
- package/src/dropdown/dropdownpanelview.d.ts +62 -62
- package/src/dropdown/dropdownpanelview.js +97 -97
- package/src/dropdown/dropdownview.d.ts +315 -315
- package/src/dropdown/dropdownview.js +379 -378
- package/src/dropdown/utils.d.ts +235 -221
- package/src/dropdown/utils.js +458 -437
- package/src/editableui/editableuiview.d.ts +72 -72
- package/src/editableui/editableuiview.js +112 -112
- package/src/editableui/inline/inlineeditableuiview.d.ts +40 -40
- package/src/editableui/inline/inlineeditableuiview.js +48 -48
- package/src/editorui/bodycollection.d.ts +55 -55
- package/src/editorui/bodycollection.js +84 -84
- package/src/editorui/boxed/boxededitoruiview.d.ts +40 -40
- package/src/editorui/boxed/boxededitoruiview.js +81 -81
- package/src/editorui/editorui.d.ts +282 -282
- package/src/editorui/editorui.js +410 -410
- package/src/editorui/editoruiview.d.ts +39 -39
- package/src/editorui/editoruiview.js +38 -38
- package/src/editorui/poweredby.d.ts +71 -71
- package/src/editorui/poweredby.js +276 -299
- package/src/focuscycler.d.ts +226 -183
- package/src/focuscycler.js +245 -220
- package/src/formheader/formheaderview.d.ts +59 -53
- package/src/formheader/formheaderview.js +69 -63
- package/src/highlightedtext/highlightedtextview.d.ts +38 -0
- package/src/highlightedtext/highlightedtextview.js +102 -0
- package/src/icon/iconview.d.ts +85 -78
- package/src/icon/iconview.js +114 -112
- package/src/iframe/iframeview.d.ts +50 -50
- package/src/iframe/iframeview.js +63 -63
- package/src/index.d.ts +73 -63
- package/src/index.js +70 -62
- package/src/input/inputbase.d.ts +107 -0
- package/src/input/inputbase.js +110 -0
- package/src/input/inputview.d.ts +36 -121
- package/src/input/inputview.js +24 -106
- package/src/inputnumber/inputnumberview.d.ts +49 -49
- package/src/inputnumber/inputnumberview.js +40 -40
- package/src/inputtext/inputtextview.d.ts +18 -18
- package/src/inputtext/inputtextview.js +27 -27
- package/src/label/labelview.d.ts +36 -36
- package/src/label/labelview.js +41 -41
- package/src/labeledfield/labeledfieldview.d.ts +187 -182
- package/src/labeledfield/labeledfieldview.js +157 -157
- package/src/labeledfield/utils.d.ts +123 -93
- package/src/labeledfield/utils.js +176 -131
- package/src/labeledinput/labeledinputview.d.ts +125 -125
- package/src/labeledinput/labeledinputview.js +125 -125
- package/src/list/listitemgroupview.d.ts +51 -0
- package/src/list/listitemgroupview.js +75 -0
- package/src/list/listitemview.d.ts +36 -35
- package/src/list/listitemview.js +42 -40
- package/src/list/listseparatorview.d.ts +18 -18
- package/src/list/listseparatorview.js +28 -28
- package/src/list/listview.d.ts +122 -65
- package/src/list/listview.js +187 -90
- package/src/model.d.ts +22 -22
- package/src/model.js +31 -31
- package/src/notification/notification.d.ts +211 -211
- package/src/notification/notification.js +187 -187
- package/src/panel/balloon/balloonpanelview.d.ts +685 -685
- package/src/panel/balloon/balloonpanelview.js +1010 -988
- package/src/panel/balloon/contextualballoon.d.ts +299 -299
- package/src/panel/balloon/contextualballoon.js +572 -572
- package/src/panel/sticky/stickypanelview.d.ts +156 -158
- package/src/panel/sticky/stickypanelview.js +234 -231
- package/src/search/filteredview.d.ts +31 -0
- package/src/search/filteredview.js +5 -0
- package/src/search/searchinfoview.d.ts +45 -0
- package/src/search/searchinfoview.js +59 -0
- package/src/search/searchresultsview.d.ts +54 -0
- package/src/search/searchresultsview.js +65 -0
- package/src/search/text/searchtextqueryview.d.ts +76 -0
- package/src/search/text/searchtextqueryview.js +75 -0
- package/src/search/text/searchtextview.d.ts +219 -0
- package/src/search/text/searchtextview.js +201 -0
- package/src/spinner/spinnerview.d.ts +25 -0
- package/src/spinner/spinnerview.js +38 -0
- package/src/template.d.ts +942 -942
- package/src/template.js +1294 -1294
- package/src/textarea/textareaview.d.ts +88 -0
- package/src/textarea/textareaview.js +140 -0
- package/src/toolbar/balloon/balloontoolbar.d.ts +122 -122
- package/src/toolbar/balloon/balloontoolbar.js +300 -300
- package/src/toolbar/block/blockbuttonview.d.ts +35 -35
- package/src/toolbar/block/blockbuttonview.js +41 -41
- package/src/toolbar/block/blocktoolbar.d.ts +161 -161
- package/src/toolbar/block/blocktoolbar.js +395 -391
- package/src/toolbar/normalizetoolbarconfig.d.ts +40 -39
- package/src/toolbar/normalizetoolbarconfig.js +51 -51
- package/src/toolbar/toolbarlinebreakview.d.ts +18 -18
- package/src/toolbar/toolbarlinebreakview.js +28 -28
- package/src/toolbar/toolbarseparatorview.d.ts +18 -18
- package/src/toolbar/toolbarseparatorview.js +28 -28
- package/src/toolbar/toolbarview.d.ts +266 -265
- package/src/toolbar/toolbarview.js +719 -717
- package/src/tooltipmanager.d.ts +180 -180
- package/src/tooltipmanager.js +353 -353
- package/src/view.d.ts +422 -422
- package/src/view.js +396 -396
- package/src/viewcollection.d.ts +139 -139
- package/src/viewcollection.js +206 -206
- package/theme/components/autocomplete/autocomplete.css +22 -0
- package/theme/components/formheader/formheader.css +8 -0
- package/theme/components/highlightedtext/highlightedtext.css +12 -0
- package/theme/components/search/search.css +43 -0
- package/theme/components/spinner/spinner.css +23 -0
- package/theme/components/textarea/textarea.css +10 -0
package/lang/translations/tk.po
CHANGED
|
@@ -15,6 +15,7 @@ msgstr ""
|
|
|
15
15
|
"Language-Team: Turkmen (https://app.transifex.com/ckeditor/teams/11143/tk/)\n"
|
|
16
16
|
"Language: tk\n"
|
|
17
17
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
|
18
|
+
"Content-Type: text/plain; charset=UTF-8\n"
|
|
18
19
|
|
|
19
20
|
msgctxt "Title of the CKEditor5 editor."
|
|
20
21
|
msgid "Rich Text Editor"
|
|
@@ -28,6 +29,14 @@ msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to e
|
|
|
28
29
|
msgid "Edit block"
|
|
29
30
|
msgstr "Bloky redaktirläň"
|
|
30
31
|
|
|
32
|
+
msgctxt "First part of the label of the block toolbar icon when functionality of drag and drop is available (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)"
|
|
33
|
+
msgid "Click to edit block"
|
|
34
|
+
msgstr ""
|
|
35
|
+
|
|
36
|
+
msgctxt "Second part of the label of the block toolbar icon when functionality of drag and drop is available (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)"
|
|
37
|
+
msgid "Drag to move"
|
|
38
|
+
msgstr ""
|
|
39
|
+
|
|
31
40
|
msgctxt "Label for a button showing the next thing (tab, page, etc.)."
|
|
32
41
|
msgid "Next"
|
|
33
42
|
msgstr "Indiki"
|
|
@@ -119,3 +128,11 @@ msgstr ""
|
|
|
119
128
|
msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component."
|
|
120
129
|
msgid "Accept"
|
|
121
130
|
msgstr ""
|
|
131
|
+
|
|
132
|
+
msgctxt "The main text of the message shown to the user when given query does not match any results."
|
|
133
|
+
msgid "No results found"
|
|
134
|
+
msgstr ""
|
|
135
|
+
|
|
136
|
+
msgctxt "The main text of the message shown to the user when no results are available."
|
|
137
|
+
msgid "No searchable items"
|
|
138
|
+
msgstr ""
|
package/lang/translations/tr.po
CHANGED
|
@@ -15,6 +15,7 @@ msgstr ""
|
|
|
15
15
|
"Language-Team: Turkish (https://app.transifex.com/ckeditor/teams/11143/tr/)\n"
|
|
16
16
|
"Language: tr\n"
|
|
17
17
|
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
|
|
18
|
+
"Content-Type: text/plain; charset=UTF-8\n"
|
|
18
19
|
|
|
19
20
|
msgctxt "Title of the CKEditor5 editor."
|
|
20
21
|
msgid "Rich Text Editor"
|
|
@@ -28,6 +29,14 @@ msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to e
|
|
|
28
29
|
msgid "Edit block"
|
|
29
30
|
msgstr "Bloğu Düzenle"
|
|
30
31
|
|
|
32
|
+
msgctxt "First part of the label of the block toolbar icon when functionality of drag and drop is available (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)"
|
|
33
|
+
msgid "Click to edit block"
|
|
34
|
+
msgstr "Bloğu düzenlemek için tıkla"
|
|
35
|
+
|
|
36
|
+
msgctxt "Second part of the label of the block toolbar icon when functionality of drag and drop is available (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)"
|
|
37
|
+
msgid "Drag to move"
|
|
38
|
+
msgstr "Taşımak için sürükle"
|
|
39
|
+
|
|
31
40
|
msgctxt "Label for a button showing the next thing (tab, page, etc.)."
|
|
32
41
|
msgid "Next"
|
|
33
42
|
msgstr "Sonraki"
|
|
@@ -119,3 +128,11 @@ msgstr "ONALTILIK"
|
|
|
119
128
|
msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component."
|
|
120
129
|
msgid "Accept"
|
|
121
130
|
msgstr "Kabul et"
|
|
131
|
+
|
|
132
|
+
msgctxt "The main text of the message shown to the user when given query does not match any results."
|
|
133
|
+
msgid "No results found"
|
|
134
|
+
msgstr "Sonuç bulunamadı"
|
|
135
|
+
|
|
136
|
+
msgctxt "The main text of the message shown to the user when no results are available."
|
|
137
|
+
msgid "No searchable items"
|
|
138
|
+
msgstr "Aranabilir öge yok"
|
package/lang/translations/tt.po
CHANGED
|
@@ -15,6 +15,7 @@ msgstr ""
|
|
|
15
15
|
"Language-Team: Tatar (https://app.transifex.com/ckeditor/teams/11143/tt/)\n"
|
|
16
16
|
"Language: tt\n"
|
|
17
17
|
"Plural-Forms: nplurals=1; plural=0;\n"
|
|
18
|
+
"Content-Type: text/plain; charset=UTF-8\n"
|
|
18
19
|
|
|
19
20
|
msgctxt "Title of the CKEditor5 editor."
|
|
20
21
|
msgid "Rich Text Editor"
|
|
@@ -28,6 +29,14 @@ msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to e
|
|
|
28
29
|
msgid "Edit block"
|
|
29
30
|
msgstr ""
|
|
30
31
|
|
|
32
|
+
msgctxt "First part of the label of the block toolbar icon when functionality of drag and drop is available (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)"
|
|
33
|
+
msgid "Click to edit block"
|
|
34
|
+
msgstr ""
|
|
35
|
+
|
|
36
|
+
msgctxt "Second part of the label of the block toolbar icon when functionality of drag and drop is available (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)"
|
|
37
|
+
msgid "Drag to move"
|
|
38
|
+
msgstr ""
|
|
39
|
+
|
|
31
40
|
msgctxt "Label for a button showing the next thing (tab, page, etc.)."
|
|
32
41
|
msgid "Next"
|
|
33
42
|
msgstr ""
|
|
@@ -119,3 +128,11 @@ msgstr ""
|
|
|
119
128
|
msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component."
|
|
120
129
|
msgid "Accept"
|
|
121
130
|
msgstr ""
|
|
131
|
+
|
|
132
|
+
msgctxt "The main text of the message shown to the user when given query does not match any results."
|
|
133
|
+
msgid "No results found"
|
|
134
|
+
msgstr ""
|
|
135
|
+
|
|
136
|
+
msgctxt "The main text of the message shown to the user when no results are available."
|
|
137
|
+
msgid "No searchable items"
|
|
138
|
+
msgstr ""
|
package/lang/translations/ug.po
CHANGED
|
@@ -15,6 +15,7 @@ msgstr ""
|
|
|
15
15
|
"Language-Team: Uyghur (https://app.transifex.com/ckeditor/teams/11143/ug/)\n"
|
|
16
16
|
"Language: ug\n"
|
|
17
17
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
|
18
|
+
"Content-Type: text/plain; charset=UTF-8\n"
|
|
18
19
|
|
|
19
20
|
msgctxt "Title of the CKEditor5 editor."
|
|
20
21
|
msgid "Rich Text Editor"
|
|
@@ -28,6 +29,14 @@ msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to e
|
|
|
28
29
|
msgid "Edit block"
|
|
29
30
|
msgstr ""
|
|
30
31
|
|
|
32
|
+
msgctxt "First part of the label of the block toolbar icon when functionality of drag and drop is available (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)"
|
|
33
|
+
msgid "Click to edit block"
|
|
34
|
+
msgstr ""
|
|
35
|
+
|
|
36
|
+
msgctxt "Second part of the label of the block toolbar icon when functionality of drag and drop is available (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)"
|
|
37
|
+
msgid "Drag to move"
|
|
38
|
+
msgstr ""
|
|
39
|
+
|
|
31
40
|
msgctxt "Label for a button showing the next thing (tab, page, etc.)."
|
|
32
41
|
msgid "Next"
|
|
33
42
|
msgstr ""
|
|
@@ -119,3 +128,11 @@ msgstr ""
|
|
|
119
128
|
msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component."
|
|
120
129
|
msgid "Accept"
|
|
121
130
|
msgstr "قوشۇل"
|
|
131
|
+
|
|
132
|
+
msgctxt "The main text of the message shown to the user when given query does not match any results."
|
|
133
|
+
msgid "No results found"
|
|
134
|
+
msgstr ""
|
|
135
|
+
|
|
136
|
+
msgctxt "The main text of the message shown to the user when no results are available."
|
|
137
|
+
msgid "No searchable items"
|
|
138
|
+
msgstr ""
|
package/lang/translations/uk.po
CHANGED
|
@@ -15,6 +15,7 @@ msgstr ""
|
|
|
15
15
|
"Language-Team: Ukrainian (https://app.transifex.com/ckeditor/teams/11143/uk/)\n"
|
|
16
16
|
"Language: uk\n"
|
|
17
17
|
"Plural-Forms: nplurals=4; plural=(n % 1 == 0 && n % 10 == 1 && n % 100 != 11 ? 0 : n % 1 == 0 && n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 12 || n % 100 > 14) ? 1 : n % 1 == 0 && (n % 10 ==0 || (n % 10 >=5 && n % 10 <=9) || (n % 100 >=11 && n % 100 <=14 )) ? 2: 3);\n"
|
|
18
|
+
"Content-Type: text/plain; charset=UTF-8\n"
|
|
18
19
|
|
|
19
20
|
msgctxt "Title of the CKEditor5 editor."
|
|
20
21
|
msgid "Rich Text Editor"
|
|
@@ -28,6 +29,14 @@ msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to e
|
|
|
28
29
|
msgid "Edit block"
|
|
29
30
|
msgstr "Редагувати блок"
|
|
30
31
|
|
|
32
|
+
msgctxt "First part of the label of the block toolbar icon when functionality of drag and drop is available (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)"
|
|
33
|
+
msgid "Click to edit block"
|
|
34
|
+
msgstr "Клацніть, щоб редагувати блок"
|
|
35
|
+
|
|
36
|
+
msgctxt "Second part of the label of the block toolbar icon when functionality of drag and drop is available (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)"
|
|
37
|
+
msgid "Drag to move"
|
|
38
|
+
msgstr "Потягніть, щоб перемістити"
|
|
39
|
+
|
|
31
40
|
msgctxt "Label for a button showing the next thing (tab, page, etc.)."
|
|
32
41
|
msgid "Next"
|
|
33
42
|
msgstr "Наступний"
|
|
@@ -119,3 +128,11 @@ msgstr "Шістнадцятковий"
|
|
|
119
128
|
msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component."
|
|
120
129
|
msgid "Accept"
|
|
121
130
|
msgstr "Прийняти"
|
|
131
|
+
|
|
132
|
+
msgctxt "The main text of the message shown to the user when given query does not match any results."
|
|
133
|
+
msgid "No results found"
|
|
134
|
+
msgstr "Нічого не знайдено"
|
|
135
|
+
|
|
136
|
+
msgctxt "The main text of the message shown to the user when no results are available."
|
|
137
|
+
msgid "No searchable items"
|
|
138
|
+
msgstr "Немає шуканих об'єктів"
|
package/lang/translations/ur.po
CHANGED
|
@@ -15,6 +15,7 @@ msgstr ""
|
|
|
15
15
|
"Language-Team: Urdu (https://app.transifex.com/ckeditor/teams/11143/ur/)\n"
|
|
16
16
|
"Language: ur\n"
|
|
17
17
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
|
18
|
+
"Content-Type: text/plain; charset=UTF-8\n"
|
|
18
19
|
|
|
19
20
|
msgctxt "Title of the CKEditor5 editor."
|
|
20
21
|
msgid "Rich Text Editor"
|
|
@@ -28,6 +29,14 @@ msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to e
|
|
|
28
29
|
msgid "Edit block"
|
|
29
30
|
msgstr "خانہ کی تدوین"
|
|
30
31
|
|
|
32
|
+
msgctxt "First part of the label of the block toolbar icon when functionality of drag and drop is available (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)"
|
|
33
|
+
msgid "Click to edit block"
|
|
34
|
+
msgstr ""
|
|
35
|
+
|
|
36
|
+
msgctxt "Second part of the label of the block toolbar icon when functionality of drag and drop is available (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)"
|
|
37
|
+
msgid "Drag to move"
|
|
38
|
+
msgstr ""
|
|
39
|
+
|
|
31
40
|
msgctxt "Label for a button showing the next thing (tab, page, etc.)."
|
|
32
41
|
msgid "Next"
|
|
33
42
|
msgstr "اگلا"
|
|
@@ -119,3 +128,11 @@ msgstr ""
|
|
|
119
128
|
msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component."
|
|
120
129
|
msgid "Accept"
|
|
121
130
|
msgstr ""
|
|
131
|
+
|
|
132
|
+
msgctxt "The main text of the message shown to the user when given query does not match any results."
|
|
133
|
+
msgid "No results found"
|
|
134
|
+
msgstr ""
|
|
135
|
+
|
|
136
|
+
msgctxt "The main text of the message shown to the user when no results are available."
|
|
137
|
+
msgid "No searchable items"
|
|
138
|
+
msgstr ""
|
package/lang/translations/uz.po
CHANGED
|
@@ -15,6 +15,7 @@ msgstr ""
|
|
|
15
15
|
"Language-Team: Uzbek (https://app.transifex.com/ckeditor/teams/11143/uz/)\n"
|
|
16
16
|
"Language: uz\n"
|
|
17
17
|
"Plural-Forms: nplurals=1; plural=0;\n"
|
|
18
|
+
"Content-Type: text/plain; charset=UTF-8\n"
|
|
18
19
|
|
|
19
20
|
msgctxt "Title of the CKEditor5 editor."
|
|
20
21
|
msgid "Rich Text Editor"
|
|
@@ -28,6 +29,14 @@ msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to e
|
|
|
28
29
|
msgid "Edit block"
|
|
29
30
|
msgstr "Blokni tahrirlash"
|
|
30
31
|
|
|
32
|
+
msgctxt "First part of the label of the block toolbar icon when functionality of drag and drop is available (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)"
|
|
33
|
+
msgid "Click to edit block"
|
|
34
|
+
msgstr ""
|
|
35
|
+
|
|
36
|
+
msgctxt "Second part of the label of the block toolbar icon when functionality of drag and drop is available (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)"
|
|
37
|
+
msgid "Drag to move"
|
|
38
|
+
msgstr ""
|
|
39
|
+
|
|
31
40
|
msgctxt "Label for a button showing the next thing (tab, page, etc.)."
|
|
32
41
|
msgid "Next"
|
|
33
42
|
msgstr "Keyingi"
|
|
@@ -119,3 +128,11 @@ msgstr ""
|
|
|
119
128
|
msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component."
|
|
120
129
|
msgid "Accept"
|
|
121
130
|
msgstr ""
|
|
131
|
+
|
|
132
|
+
msgctxt "The main text of the message shown to the user when given query does not match any results."
|
|
133
|
+
msgid "No results found"
|
|
134
|
+
msgstr ""
|
|
135
|
+
|
|
136
|
+
msgctxt "The main text of the message shown to the user when no results are available."
|
|
137
|
+
msgid "No searchable items"
|
|
138
|
+
msgstr ""
|
package/lang/translations/vi.po
CHANGED
|
@@ -15,6 +15,7 @@ msgstr ""
|
|
|
15
15
|
"Language-Team: Vietnamese (https://app.transifex.com/ckeditor/teams/11143/vi/)\n"
|
|
16
16
|
"Language: vi\n"
|
|
17
17
|
"Plural-Forms: nplurals=1; plural=0;\n"
|
|
18
|
+
"Content-Type: text/plain; charset=UTF-8\n"
|
|
18
19
|
|
|
19
20
|
msgctxt "Title of the CKEditor5 editor."
|
|
20
21
|
msgid "Rich Text Editor"
|
|
@@ -28,6 +29,14 @@ msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to e
|
|
|
28
29
|
msgid "Edit block"
|
|
29
30
|
msgstr "Chỉnh sửa đoạn"
|
|
30
31
|
|
|
32
|
+
msgctxt "First part of the label of the block toolbar icon when functionality of drag and drop is available (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)"
|
|
33
|
+
msgid "Click to edit block"
|
|
34
|
+
msgstr "Nhấp để sửa khối"
|
|
35
|
+
|
|
36
|
+
msgctxt "Second part of the label of the block toolbar icon when functionality of drag and drop is available (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)"
|
|
37
|
+
msgid "Drag to move"
|
|
38
|
+
msgstr "Kéo để di chuyển"
|
|
39
|
+
|
|
31
40
|
msgctxt "Label for a button showing the next thing (tab, page, etc.)."
|
|
32
41
|
msgid "Next"
|
|
33
42
|
msgstr "Tiếp theo"
|
|
@@ -119,3 +128,11 @@ msgstr "HEX"
|
|
|
119
128
|
msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component."
|
|
120
129
|
msgid "Accept"
|
|
121
130
|
msgstr "Chấp nhận"
|
|
131
|
+
|
|
132
|
+
msgctxt "The main text of the message shown to the user when given query does not match any results."
|
|
133
|
+
msgid "No results found"
|
|
134
|
+
msgstr "Không tìm thấy kết quả"
|
|
135
|
+
|
|
136
|
+
msgctxt "The main text of the message shown to the user when no results are available."
|
|
137
|
+
msgid "No searchable items"
|
|
138
|
+
msgstr "Không có mục nào tìm kiếm được"
|
|
@@ -15,6 +15,7 @@ msgstr ""
|
|
|
15
15
|
"Language-Team: Chinese (China) (https://app.transifex.com/ckeditor/teams/11143/zh_CN/)\n"
|
|
16
16
|
"Language: zh_CN\n"
|
|
17
17
|
"Plural-Forms: nplurals=1; plural=0;\n"
|
|
18
|
+
"Content-Type: text/plain; charset=UTF-8\n"
|
|
18
19
|
|
|
19
20
|
msgctxt "Title of the CKEditor5 editor."
|
|
20
21
|
msgid "Rich Text Editor"
|
|
@@ -28,6 +29,14 @@ msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to e
|
|
|
28
29
|
msgid "Edit block"
|
|
29
30
|
msgstr "编辑框"
|
|
30
31
|
|
|
32
|
+
msgctxt "First part of the label of the block toolbar icon when functionality of drag and drop is available (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)"
|
|
33
|
+
msgid "Click to edit block"
|
|
34
|
+
msgstr "单击以编辑块"
|
|
35
|
+
|
|
36
|
+
msgctxt "Second part of the label of the block toolbar icon when functionality of drag and drop is available (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)"
|
|
37
|
+
msgid "Drag to move"
|
|
38
|
+
msgstr "拖拽以移动"
|
|
39
|
+
|
|
31
40
|
msgctxt "Label for a button showing the next thing (tab, page, etc.)."
|
|
32
41
|
msgid "Next"
|
|
33
42
|
msgstr "下一步"
|
|
@@ -119,3 +128,11 @@ msgstr "十六进制"
|
|
|
119
128
|
msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component."
|
|
120
129
|
msgid "Accept"
|
|
121
130
|
msgstr "接受"
|
|
131
|
+
|
|
132
|
+
msgctxt "The main text of the message shown to the user when given query does not match any results."
|
|
133
|
+
msgid "No results found"
|
|
134
|
+
msgstr "未找到结果"
|
|
135
|
+
|
|
136
|
+
msgctxt "The main text of the message shown to the user when no results are available."
|
|
137
|
+
msgid "No searchable items"
|
|
138
|
+
msgstr "没有可搜索的项目"
|
package/lang/translations/zh.po
CHANGED
|
@@ -15,6 +15,7 @@ msgstr ""
|
|
|
15
15
|
"Language-Team: Chinese (Taiwan) (https://app.transifex.com/ckeditor/teams/11143/zh_TW/)\n"
|
|
16
16
|
"Language: zh_TW\n"
|
|
17
17
|
"Plural-Forms: nplurals=1; plural=0;\n"
|
|
18
|
+
"Content-Type: text/plain; charset=UTF-8\n"
|
|
18
19
|
|
|
19
20
|
msgctxt "Title of the CKEditor5 editor."
|
|
20
21
|
msgid "Rich Text Editor"
|
|
@@ -28,6 +29,14 @@ msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to e
|
|
|
28
29
|
msgid "Edit block"
|
|
29
30
|
msgstr "編輯區塊"
|
|
30
31
|
|
|
32
|
+
msgctxt "First part of the label of the block toolbar icon when functionality of drag and drop is available (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)"
|
|
33
|
+
msgid "Click to edit block"
|
|
34
|
+
msgstr "點擊來編輯區塊"
|
|
35
|
+
|
|
36
|
+
msgctxt "Second part of the label of the block toolbar icon when functionality of drag and drop is available (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)"
|
|
37
|
+
msgid "Drag to move"
|
|
38
|
+
msgstr "拖曳來移動"
|
|
39
|
+
|
|
31
40
|
msgctxt "Label for a button showing the next thing (tab, page, etc.)."
|
|
32
41
|
msgid "Next"
|
|
33
42
|
msgstr "下一"
|
|
@@ -119,3 +128,11 @@ msgstr "十六進位"
|
|
|
119
128
|
msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component."
|
|
120
129
|
msgid "Accept"
|
|
121
130
|
msgstr "接受"
|
|
131
|
+
|
|
132
|
+
msgctxt "The main text of the message shown to the user when given query does not match any results."
|
|
133
|
+
msgid "No results found"
|
|
134
|
+
msgstr "找不到結果"
|
|
135
|
+
|
|
136
|
+
msgctxt "The main text of the message shown to the user when no results are available."
|
|
137
|
+
msgid "No searchable items"
|
|
138
|
+
msgstr "沒有可搜尋的項目"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-ui",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "40.0.0",
|
|
4
4
|
"description": "The UI framework and standard UI library of CKEditor 5.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ckeditor",
|
|
@@ -11,17 +11,13 @@
|
|
|
11
11
|
],
|
|
12
12
|
"main": "src/index.js",
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@ckeditor/ckeditor5-core": "
|
|
15
|
-
"@ckeditor/ckeditor5-utils": "
|
|
14
|
+
"@ckeditor/ckeditor5-core": "40.0.0",
|
|
15
|
+
"@ckeditor/ckeditor5-utils": "40.0.0",
|
|
16
16
|
"color-convert": "2.0.1",
|
|
17
17
|
"color-parse": "1.4.2",
|
|
18
18
|
"lodash-es": "4.17.21",
|
|
19
19
|
"vanilla-colorful": "0.7.2"
|
|
20
20
|
},
|
|
21
|
-
"engines": {
|
|
22
|
-
"node": ">=16.0.0",
|
|
23
|
-
"npm": ">=5.7.1"
|
|
24
|
-
},
|
|
25
21
|
"author": "CKSource (http://cksource.com/)",
|
|
26
22
|
"license": "GPL-2.0-or-later",
|
|
27
23
|
"homepage": "https://ckeditor.com/ckeditor-5",
|
package/src/augmentation.d.ts
CHANGED
|
@@ -1,86 +1,86 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
import type { BalloonToolbar, BlockToolbar, ContextualBalloon, Notification } from './index';
|
|
6
|
-
import type { ToolbarConfig } from '@ckeditor/ckeditor5-core';
|
|
7
|
-
declare module '@ckeditor/ckeditor5-core' {
|
|
8
|
-
interface EditorConfig {
|
|
9
|
-
/**
|
|
10
|
-
* Contextual toolbar configuration. Used by the {@link module:ui/toolbar/balloon/balloontoolbar~BalloonToolbar}
|
|
11
|
-
* feature.
|
|
12
|
-
*
|
|
13
|
-
* ## Configuring toolbar items
|
|
14
|
-
*
|
|
15
|
-
* ```ts
|
|
16
|
-
* const config = {
|
|
17
|
-
* balloonToolbar: [ 'bold', 'italic', 'undo', 'redo' ]
|
|
18
|
-
* };
|
|
19
|
-
* ```
|
|
20
|
-
*
|
|
21
|
-
* You can also use `'|'` to create a separator between groups of items:
|
|
22
|
-
*
|
|
23
|
-
* ```ts
|
|
24
|
-
* const config = {
|
|
25
|
-
* balloonToolbar: [ 'bold', 'italic', '|', 'undo', 'redo' ]
|
|
26
|
-
* };
|
|
27
|
-
* ```
|
|
28
|
-
*
|
|
29
|
-
* Read also about configuring the main editor toolbar in {@link module:core/editor/editorconfig~EditorConfig#toolbar}.
|
|
30
|
-
*
|
|
31
|
-
* ## Configuring items grouping
|
|
32
|
-
*
|
|
33
|
-
* You can prevent automatic items grouping by setting the `shouldNotGroupWhenFull` option:
|
|
34
|
-
*
|
|
35
|
-
* ```ts
|
|
36
|
-
* const config = {
|
|
37
|
-
* balloonToolbar: {
|
|
38
|
-
* items: [ 'bold', 'italic', 'undo', 'redo' ],
|
|
39
|
-
* shouldNotGroupWhenFull: true
|
|
40
|
-
* },
|
|
41
|
-
* };
|
|
42
|
-
* ```
|
|
43
|
-
*/
|
|
44
|
-
balloonToolbar?: ToolbarConfig;
|
|
45
|
-
/**
|
|
46
|
-
* The block toolbar configuration. Used by the {@link module:ui/toolbar/block/blocktoolbar~BlockToolbar}
|
|
47
|
-
* feature.
|
|
48
|
-
*
|
|
49
|
-
* ```ts
|
|
50
|
-
* const config = {
|
|
51
|
-
* blockToolbar: [ 'paragraph', 'heading1', 'heading2', 'bulletedList', 'numberedList' ]
|
|
52
|
-
* };
|
|
53
|
-
* ```
|
|
54
|
-
*
|
|
55
|
-
* You can also use `'|'` to create a separator between groups of items:
|
|
56
|
-
*
|
|
57
|
-
* ```ts
|
|
58
|
-
* const config = {
|
|
59
|
-
* blockToolbar: [ 'paragraph', 'heading1', 'heading2', '|', 'bulletedList', 'numberedList' ]
|
|
60
|
-
* };
|
|
61
|
-
* ```
|
|
62
|
-
*
|
|
63
|
-
* ## Configuring items grouping
|
|
64
|
-
*
|
|
65
|
-
* You can prevent automatic items grouping by setting the `shouldNotGroupWhenFull` option:
|
|
66
|
-
*
|
|
67
|
-
* ```ts
|
|
68
|
-
* const config = {
|
|
69
|
-
* blockToolbar: {
|
|
70
|
-
* items: [ 'paragraph', 'heading1', 'heading2', '|', 'bulletedList', 'numberedList' ],
|
|
71
|
-
* shouldNotGroupWhenFull: true
|
|
72
|
-
* },
|
|
73
|
-
* };
|
|
74
|
-
* ```
|
|
75
|
-
*
|
|
76
|
-
* Read more about configuring the main editor toolbar in {@link module:core/editor/editorconfig~EditorConfig#toolbar}.
|
|
77
|
-
*/
|
|
78
|
-
blockToolbar?: ToolbarConfig;
|
|
79
|
-
}
|
|
80
|
-
interface PluginsMap {
|
|
81
|
-
[BalloonToolbar.pluginName]: BalloonToolbar;
|
|
82
|
-
[BlockToolbar.pluginName]: BlockToolbar;
|
|
83
|
-
[ContextualBalloon.pluginName]: ContextualBalloon;
|
|
84
|
-
[Notification.pluginName]: Notification;
|
|
85
|
-
}
|
|
86
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
import type { BalloonToolbar, BlockToolbar, ContextualBalloon, Notification } from './index';
|
|
6
|
+
import type { ToolbarConfig } from '@ckeditor/ckeditor5-core';
|
|
7
|
+
declare module '@ckeditor/ckeditor5-core' {
|
|
8
|
+
interface EditorConfig {
|
|
9
|
+
/**
|
|
10
|
+
* Contextual toolbar configuration. Used by the {@link module:ui/toolbar/balloon/balloontoolbar~BalloonToolbar}
|
|
11
|
+
* feature.
|
|
12
|
+
*
|
|
13
|
+
* ## Configuring toolbar items
|
|
14
|
+
*
|
|
15
|
+
* ```ts
|
|
16
|
+
* const config = {
|
|
17
|
+
* balloonToolbar: [ 'bold', 'italic', 'undo', 'redo' ]
|
|
18
|
+
* };
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
* You can also use `'|'` to create a separator between groups of items:
|
|
22
|
+
*
|
|
23
|
+
* ```ts
|
|
24
|
+
* const config = {
|
|
25
|
+
* balloonToolbar: [ 'bold', 'italic', '|', 'undo', 'redo' ]
|
|
26
|
+
* };
|
|
27
|
+
* ```
|
|
28
|
+
*
|
|
29
|
+
* Read also about configuring the main editor toolbar in {@link module:core/editor/editorconfig~EditorConfig#toolbar}.
|
|
30
|
+
*
|
|
31
|
+
* ## Configuring items grouping
|
|
32
|
+
*
|
|
33
|
+
* You can prevent automatic items grouping by setting the `shouldNotGroupWhenFull` option:
|
|
34
|
+
*
|
|
35
|
+
* ```ts
|
|
36
|
+
* const config = {
|
|
37
|
+
* balloonToolbar: {
|
|
38
|
+
* items: [ 'bold', 'italic', 'undo', 'redo' ],
|
|
39
|
+
* shouldNotGroupWhenFull: true
|
|
40
|
+
* },
|
|
41
|
+
* };
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
balloonToolbar?: ToolbarConfig;
|
|
45
|
+
/**
|
|
46
|
+
* The block toolbar configuration. Used by the {@link module:ui/toolbar/block/blocktoolbar~BlockToolbar}
|
|
47
|
+
* feature.
|
|
48
|
+
*
|
|
49
|
+
* ```ts
|
|
50
|
+
* const config = {
|
|
51
|
+
* blockToolbar: [ 'paragraph', 'heading1', 'heading2', 'bulletedList', 'numberedList' ]
|
|
52
|
+
* };
|
|
53
|
+
* ```
|
|
54
|
+
*
|
|
55
|
+
* You can also use `'|'` to create a separator between groups of items:
|
|
56
|
+
*
|
|
57
|
+
* ```ts
|
|
58
|
+
* const config = {
|
|
59
|
+
* blockToolbar: [ 'paragraph', 'heading1', 'heading2', '|', 'bulletedList', 'numberedList' ]
|
|
60
|
+
* };
|
|
61
|
+
* ```
|
|
62
|
+
*
|
|
63
|
+
* ## Configuring items grouping
|
|
64
|
+
*
|
|
65
|
+
* You can prevent automatic items grouping by setting the `shouldNotGroupWhenFull` option:
|
|
66
|
+
*
|
|
67
|
+
* ```ts
|
|
68
|
+
* const config = {
|
|
69
|
+
* blockToolbar: {
|
|
70
|
+
* items: [ 'paragraph', 'heading1', 'heading2', '|', 'bulletedList', 'numberedList' ],
|
|
71
|
+
* shouldNotGroupWhenFull: true
|
|
72
|
+
* },
|
|
73
|
+
* };
|
|
74
|
+
* ```
|
|
75
|
+
*
|
|
76
|
+
* Read more about configuring the main editor toolbar in {@link module:core/editor/editorconfig~EditorConfig#toolbar}.
|
|
77
|
+
*/
|
|
78
|
+
blockToolbar?: ToolbarConfig;
|
|
79
|
+
}
|
|
80
|
+
interface PluginsMap {
|
|
81
|
+
[BalloonToolbar.pluginName]: BalloonToolbar;
|
|
82
|
+
[BlockToolbar.pluginName]: BlockToolbar;
|
|
83
|
+
[ContextualBalloon.pluginName]: ContextualBalloon;
|
|
84
|
+
[Notification.pluginName]: Notification;
|
|
85
|
+
}
|
|
86
|
+
}
|
package/src/augmentation.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
export {};
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
export {};
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module ui/autocomplete/autocompleteview
|
|
7
|
+
*/
|
|
8
|
+
import { type PositioningFunction, type Locale } from '@ckeditor/ckeditor5-utils';
|
|
9
|
+
import SearchTextView, { type SearchTextViewConfig } from '../search/text/searchtextview';
|
|
10
|
+
import type SearchResultsView from '../search/searchresultsview';
|
|
11
|
+
import type InputBase from '../input/inputbase';
|
|
12
|
+
import '../../theme/components/autocomplete/autocomplete.css';
|
|
13
|
+
/**
|
|
14
|
+
* The autocomplete component's view class. It extends the {@link module:ui/search/text/searchtextview~SearchTextView} class
|
|
15
|
+
* with a floating {@link #resultsView} that shows up when the user starts typing and hides when they blur
|
|
16
|
+
* the component.
|
|
17
|
+
*/
|
|
18
|
+
export default class AutocompleteView<TQueryFieldView extends InputBase<HTMLInputElement | HTMLTextAreaElement>> extends SearchTextView<TQueryFieldView> {
|
|
19
|
+
/**
|
|
20
|
+
* The configuration of the autocomplete view.
|
|
21
|
+
*/
|
|
22
|
+
protected _config: AutocompleteViewConfig<TQueryFieldView>;
|
|
23
|
+
resultsView: AutocompleteResultsView;
|
|
24
|
+
/**
|
|
25
|
+
* @inheritDoc
|
|
26
|
+
*/
|
|
27
|
+
constructor(locale: Locale, config: AutocompleteViewConfig<TQueryFieldView>);
|
|
28
|
+
/**
|
|
29
|
+
* Updates the position of the results view on demand.
|
|
30
|
+
*/
|
|
31
|
+
private _updateResultsViewWidthAndPosition;
|
|
32
|
+
/**
|
|
33
|
+
* Updates the visibility of the results view on demand.
|
|
34
|
+
*/
|
|
35
|
+
private _updateResultsVisibility;
|
|
36
|
+
/**
|
|
37
|
+
* Positions for the autocomplete results view. Two positions are defined by default:
|
|
38
|
+
* * `s` - below the search field,
|
|
39
|
+
* * `n` - above the search field.
|
|
40
|
+
*/
|
|
41
|
+
static defaultResultsPositions: Array<PositioningFunction>;
|
|
42
|
+
/**
|
|
43
|
+
* A function used to calculate the optimal position for the dropdown panel.
|
|
44
|
+
*/
|
|
45
|
+
private static _getOptimalPosition;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* An interface describing additional properties of the floating search results view used by the autocomplete plugin.
|
|
49
|
+
*/
|
|
50
|
+
export interface AutocompleteResultsView extends SearchResultsView {
|
|
51
|
+
/**
|
|
52
|
+
* Controls the visibility of the results view.
|
|
53
|
+
*
|
|
54
|
+
* @observable
|
|
55
|
+
*/
|
|
56
|
+
isVisible: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* Controls the position (CSS class suffix) of the results view.
|
|
59
|
+
*
|
|
60
|
+
* @internal
|
|
61
|
+
*/
|
|
62
|
+
_position?: string;
|
|
63
|
+
/**
|
|
64
|
+
* The observable property determining the CSS width of the results view.
|
|
65
|
+
*
|
|
66
|
+
* @internal
|
|
67
|
+
*/
|
|
68
|
+
_width: number;
|
|
69
|
+
}
|
|
70
|
+
export interface AutocompleteViewConfig<TConfigInputCreator extends InputBase<HTMLInputElement | HTMLTextAreaElement>> extends SearchTextViewConfig<TConfigInputCreator> {
|
|
71
|
+
/**
|
|
72
|
+
* When set `true`, the query view will be reset when the autocomplete view loses focus.
|
|
73
|
+
*/
|
|
74
|
+
resetOnBlur?: boolean;
|
|
75
|
+
/**
|
|
76
|
+
* Minimum number of characters that need to be typed before the search is performed.
|
|
77
|
+
*
|
|
78
|
+
* @default 0
|
|
79
|
+
*/
|
|
80
|
+
queryMinChars?: number;
|
|
81
|
+
}
|