@ckeditor/ckeditor5-ui 40.1.0 → 41.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 +34 -34
- package/LICENSE.md +1 -1
- package/lang/contexts.json +3 -1
- package/lang/translations/ar.po +9 -1
- package/lang/translations/ast.po +9 -1
- package/lang/translations/az.po +9 -1
- package/lang/translations/bg.po +9 -1
- package/lang/translations/bn.po +9 -1
- package/lang/translations/ca.po +9 -1
- package/lang/translations/cs.po +9 -1
- package/lang/translations/da.po +9 -1
- package/lang/translations/de-ch.po +9 -1
- package/lang/translations/de.po +9 -1
- package/lang/translations/el.po +9 -1
- package/lang/translations/en-au.po +9 -1
- package/lang/translations/en-gb.po +9 -1
- package/lang/translations/en.po +9 -1
- package/lang/translations/eo.po +9 -1
- package/lang/translations/es.po +14 -6
- package/lang/translations/et.po +9 -1
- package/lang/translations/eu.po +9 -1
- package/lang/translations/fa.po +9 -1
- package/lang/translations/fi.po +9 -1
- package/lang/translations/fr.po +9 -1
- package/lang/translations/gl.po +12 -4
- package/lang/translations/he.po +9 -1
- package/lang/translations/hi.po +9 -1
- package/lang/translations/hr.po +9 -1
- package/lang/translations/hu.po +9 -1
- package/lang/translations/id.po +9 -1
- package/lang/translations/it.po +9 -1
- package/lang/translations/ja.po +9 -1
- package/lang/translations/km.po +9 -1
- package/lang/translations/kn.po +9 -1
- package/lang/translations/ko.po +9 -1
- package/lang/translations/ku.po +9 -1
- package/lang/translations/lt.po +9 -1
- package/lang/translations/lv.po +9 -1
- package/lang/translations/ms.po +9 -1
- package/lang/translations/nb.po +9 -1
- package/lang/translations/ne.po +9 -1
- package/lang/translations/nl.po +9 -1
- package/lang/translations/no.po +9 -1
- package/lang/translations/pl.po +9 -1
- package/lang/translations/pt-br.po +9 -1
- package/lang/translations/pt.po +9 -1
- package/lang/translations/ro.po +9 -1
- package/lang/translations/ru.po +9 -1
- package/lang/translations/sk.po +9 -1
- package/lang/translations/sl.po +9 -1
- package/lang/translations/sq.po +9 -1
- package/lang/translations/sr-latn.po +14 -6
- package/lang/translations/sr.po +9 -1
- package/lang/translations/sv.po +9 -1
- package/lang/translations/th.po +9 -1
- package/lang/translations/tk.po +9 -1
- package/lang/translations/tr.po +9 -1
- package/lang/translations/tt.po +9 -1
- package/lang/translations/ug.po +9 -1
- package/lang/translations/uk.po +9 -1
- package/lang/translations/ur.po +9 -1
- package/lang/translations/uz.po +9 -1
- package/lang/translations/vi.po +9 -1
- package/lang/translations/zh-cn.po +9 -1
- package/lang/translations/zh.po +9 -1
- package/package.json +4 -3
- package/src/arialiveannouncer.d.ts +14 -10
- package/src/arialiveannouncer.js +11 -8
- package/src/augmentation.d.ts +3 -2
- package/src/augmentation.js +1 -1
- package/src/autocomplete/autocompleteview.d.ts +4 -4
- package/src/autocomplete/autocompleteview.js +4 -3
- package/src/bindings/addkeyboardhandlingforgrid.d.ts +2 -2
- package/src/bindings/addkeyboardhandlingforgrid.js +1 -1
- package/src/bindings/clickoutsidehandler.d.ts +1 -1
- package/src/bindings/clickoutsidehandler.js +1 -1
- package/src/bindings/csstransitiondisablermixin.d.ts +2 -2
- package/src/bindings/csstransitiondisablermixin.js +1 -1
- package/src/bindings/draggableviewmixin.d.ts +46 -0
- package/src/bindings/draggableviewmixin.js +144 -0
- package/src/bindings/injectcsstransitiondisabler.d.ts +2 -2
- package/src/bindings/injectcsstransitiondisabler.js +1 -1
- package/src/bindings/preventdefault.d.ts +3 -3
- package/src/bindings/preventdefault.js +1 -1
- package/src/bindings/submithandler.d.ts +2 -2
- package/src/bindings/submithandler.js +1 -1
- package/src/button/button.d.ts +1 -1
- package/src/button/button.js +1 -1
- package/src/button/buttonlabel.d.ts +2 -2
- package/src/button/buttonlabel.js +1 -1
- package/src/button/buttonlabelview.d.ts +3 -3
- package/src/button/buttonlabelview.js +2 -2
- package/src/button/buttonview.d.ts +6 -6
- package/src/button/buttonview.js +4 -4
- package/src/button/switchbuttonview.d.ts +3 -3
- package/src/button/switchbuttonview.js +3 -3
- package/src/collapsible/collapsibleview.d.ts +70 -0
- package/src/collapsible/collapsibleview.js +95 -0
- package/src/colorgrid/colorgridview.d.ts +5 -5
- package/src/colorgrid/colorgridview.js +4 -4
- package/src/colorgrid/colortileview.d.ts +2 -2
- package/src/colorgrid/colortileview.js +2 -2
- package/src/colorgrid/utils.d.ts +1 -1
- package/src/colorgrid/utils.js +1 -1
- package/src/colorpicker/colorpickerview.d.ts +4 -4
- package/src/colorpicker/colorpickerview.js +5 -5
- package/src/colorpicker/utils.d.ts +1 -1
- package/src/colorpicker/utils.js +1 -1
- package/src/colorselector/colorgridsfragmentview.d.ts +9 -8
- package/src/colorselector/colorgridsfragmentview.js +10 -10
- package/src/colorselector/colorpickerfragmentview.d.ts +9 -8
- package/src/colorselector/colorpickerfragmentview.js +7 -8
- package/src/colorselector/colorselectorview.d.ts +9 -9
- package/src/colorselector/colorselectorview.js +6 -6
- package/src/colorselector/documentcolorcollection.d.ts +2 -2
- package/src/colorselector/documentcolorcollection.js +1 -1
- package/src/componentfactory.d.ts +2 -2
- package/src/componentfactory.js +1 -1
- package/src/dialog/dialog.d.ts +273 -0
- package/src/dialog/dialog.js +261 -0
- package/src/dialog/dialogactionsview.d.ts +69 -0
- package/src/dialog/dialogactionsview.js +98 -0
- package/src/dialog/dialogcontentview.d.ts +27 -0
- package/src/dialog/dialogcontentview.js +35 -0
- package/src/dialog/dialogview.d.ts +256 -0
- package/src/dialog/dialogview.js +466 -0
- package/src/dropdown/button/dropdownbutton.d.ts +3 -3
- package/src/dropdown/button/dropdownbutton.js +1 -1
- package/src/dropdown/button/dropdownbuttonview.d.ts +4 -4
- package/src/dropdown/button/dropdownbuttonview.js +3 -3
- package/src/dropdown/button/splitbuttonview.d.ts +8 -7
- package/src/dropdown/button/splitbuttonview.js +10 -8
- package/src/dropdown/dropdownpanelfocusable.d.ts +1 -1
- package/src/dropdown/dropdownpanelfocusable.js +1 -1
- package/src/dropdown/dropdownpanelview.d.ts +4 -4
- package/src/dropdown/dropdownpanelview.js +2 -2
- package/src/dropdown/dropdownview.d.ts +8 -8
- package/src/dropdown/dropdownview.js +5 -4
- package/src/dropdown/utils.d.ts +11 -11
- package/src/dropdown/utils.js +18 -18
- package/src/editableui/editableuiview.d.ts +3 -3
- package/src/editableui/editableuiview.js +2 -2
- package/src/editableui/inline/inlineeditableuiview.d.ts +4 -4
- package/src/editableui/inline/inlineeditableuiview.js +2 -2
- package/src/editorui/bodycollection.d.ts +3 -3
- package/src/editorui/bodycollection.js +3 -3
- package/src/editorui/boxed/boxededitoruiview.d.ts +3 -3
- package/src/editorui/boxed/boxededitoruiview.js +3 -3
- package/src/editorui/editorui.d.ts +7 -7
- package/src/editorui/editorui.js +5 -5
- package/src/editorui/editoruiview.d.ts +4 -4
- package/src/editorui/editoruiview.js +3 -3
- package/src/editorui/poweredby.d.ts +1 -1
- package/src/editorui/poweredby.js +4 -4
- package/src/focuscycler.d.ts +27 -8
- package/src/focuscycler.js +44 -15
- package/src/formheader/formheaderview.d.ts +4 -4
- package/src/formheader/formheaderview.js +3 -3
- package/src/highlightedtext/highlightedtextview.d.ts +2 -2
- package/src/highlightedtext/highlightedtextview.js +2 -2
- package/src/icon/iconview.d.ts +2 -2
- package/src/icon/iconview.js +4 -3
- package/src/iframe/iframeview.d.ts +2 -2
- package/src/iframe/iframeview.js +2 -2
- package/src/index.d.ts +67 -67
- package/src/index.js +63 -64
- package/src/input/inputbase.d.ts +2 -2
- package/src/input/inputbase.js +2 -2
- package/src/input/inputview.d.ts +2 -2
- package/src/input/inputview.js +2 -2
- package/src/inputnumber/inputnumberview.d.ts +2 -2
- package/src/inputnumber/inputnumberview.js +2 -2
- package/src/inputtext/inputtextview.d.ts +2 -2
- package/src/inputtext/inputtextview.js +2 -2
- package/src/label/labelview.d.ts +2 -2
- package/src/label/labelview.js +2 -2
- package/src/labeledfield/labeledfieldview.d.ts +5 -5
- package/src/labeledfield/labeledfieldview.js +3 -3
- package/src/labeledfield/utils.d.ts +14 -14
- package/src/labeledfield/utils.js +13 -13
- package/src/labeledinput/labeledinputview.d.ts +4 -4
- package/src/labeledinput/labeledinputview.js +3 -3
- package/src/list/listitemgroupview.d.ts +6 -6
- package/src/list/listitemgroupview.js +11 -7
- package/src/list/listitemview.d.ts +4 -4
- package/src/list/listitemview.js +2 -2
- package/src/list/listseparatorview.d.ts +2 -2
- package/src/list/listseparatorview.js +2 -2
- package/src/list/listview.d.ts +10 -8
- package/src/list/listview.js +7 -6
- package/src/model.d.ts +1 -1
- package/src/model.js +1 -1
- package/src/notification/notification.d.ts +1 -1
- package/src/notification/notification.js +1 -1
- package/src/panel/balloon/balloonpanelview.d.ts +4 -4
- package/src/panel/balloon/balloonpanelview.js +5 -4
- package/src/panel/balloon/contextualballoon.d.ts +5 -5
- package/src/panel/balloon/contextualballoon.js +7 -9
- package/src/panel/sticky/stickypanelview.d.ts +9 -9
- package/src/panel/sticky/stickypanelview.js +7 -7
- package/src/search/filteredview.d.ts +2 -2
- package/src/search/filteredview.js +1 -1
- package/src/search/searchinfoview.d.ts +3 -3
- package/src/search/searchinfoview.js +2 -2
- package/src/search/searchresultsview.d.ts +5 -5
- package/src/search/searchresultsview.js +3 -3
- package/src/search/text/searchtextqueryview.d.ts +5 -5
- package/src/search/text/searchtextqueryview.js +5 -5
- package/src/search/text/searchtextview.d.ts +12 -12
- package/src/search/text/searchtextview.js +6 -6
- package/src/spinner/spinnerview.d.ts +2 -2
- package/src/spinner/spinnerview.js +2 -2
- package/src/template.d.ts +3 -3
- package/src/template.js +3 -3
- package/src/textarea/textareaview.d.ts +18 -2
- package/src/textarea/textareaview.js +46 -6
- package/src/toolbar/balloon/balloontoolbar.d.ts +3 -3
- package/src/toolbar/balloon/balloontoolbar.js +5 -5
- package/src/toolbar/block/blockbuttonview.d.ts +2 -2
- package/src/toolbar/block/blockbuttonview.js +2 -2
- package/src/toolbar/block/blocktoolbar.d.ts +4 -4
- package/src/toolbar/block/blocktoolbar.js +6 -6
- package/src/toolbar/normalizetoolbarconfig.d.ts +1 -1
- package/src/toolbar/normalizetoolbarconfig.js +1 -1
- package/src/toolbar/toolbarlinebreakview.d.ts +2 -2
- package/src/toolbar/toolbarlinebreakview.js +2 -2
- package/src/toolbar/toolbarseparatorview.d.ts +2 -2
- package/src/toolbar/toolbarseparatorview.js +2 -2
- package/src/toolbar/toolbarview.d.ts +7 -6
- package/src/toolbar/toolbarview.js +17 -15
- package/src/tooltipmanager.d.ts +3 -3
- package/src/tooltipmanager.js +5 -4
- package/src/view.d.ts +3 -3
- package/src/view.js +3 -3
- package/src/viewcollection.d.ts +2 -2
- package/src/viewcollection.js +1 -1
- package/theme/components/arialiveannouncer/arialiveannouncer.css +1 -1
- package/theme/components/autocomplete/autocomplete.css +2 -2
- package/theme/components/button/button.css +1 -1
- package/theme/components/button/switchbutton.css +1 -1
- package/theme/components/collapsible/collapsible.css +10 -0
- package/theme/components/colorgrid/colorgrid.css +1 -1
- package/theme/components/colorpicker/colorpicker.css +1 -1
- package/theme/components/colorselector/colorselector.css +1 -1
- package/theme/components/dialog/dialog.css +39 -0
- package/theme/components/dialog/dialogactions.css +11 -0
- package/theme/components/dropdown/dropdown.css +3 -3
- package/theme/components/dropdown/listdropdown.css +1 -1
- package/theme/components/dropdown/splitbutton.css +1 -1
- package/theme/components/dropdown/toolbardropdown.css +1 -1
- package/theme/components/editorui/editorui.css +1 -1
- package/theme/components/formheader/formheader.css +1 -1
- package/theme/components/highlightedtext/highlightedtext.css +1 -1
- package/theme/components/icon/icon.css +1 -1
- package/theme/components/input/input.css +1 -1
- package/theme/components/label/label.css +1 -1
- package/theme/components/labeledfield/labeledfieldview.css +1 -1
- package/theme/components/labeledinput/labeledinput.css +1 -1
- package/theme/components/list/list.css +1 -1
- package/theme/components/panel/balloonpanel.css +2 -2
- package/theme/components/panel/balloonrotator.css +1 -1
- package/theme/components/panel/fakepanel.css +2 -2
- package/theme/components/panel/stickypanel.css +2 -2
- package/theme/components/responsive-form/responsiveform.css +1 -1
- package/theme/components/search/search.css +1 -1
- package/theme/components/spinner/spinner.css +1 -1
- package/theme/components/textarea/textarea.css +1 -1
- package/theme/components/toolbar/blocktoolbar.css +1 -1
- package/theme/components/toolbar/toolbar.css +1 -1
- package/theme/components/tooltip/tooltip.css +2 -2
- package/theme/globals/_hidden.css +1 -1
- package/theme/globals/_poweredby.css +2 -2
- package/theme/globals/_reset.css +1 -1
- package/theme/globals/_transition.css +1 -1
- package/theme/globals/_zindex.css +3 -2
- package/theme/globals/globals.css +1 -1
- package/theme/mixins/_dir.css +1 -1
- package/theme/mixins/_rwd.css +1 -1
- package/theme/mixins/_unselectable.css +1 -1
- package/theme/icons/color-palette.svg +0 -1
- package/theme/icons/next-arrow.svg +0 -1
- package/theme/icons/previous-arrow.svg +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright (c) 2003-
|
|
1
|
+
# Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
2
2
|
#
|
|
3
3
|
# !!! IMPORTANT !!!
|
|
4
4
|
#
|
|
@@ -31,11 +31,11 @@ msgstr "Blok uređivač"
|
|
|
31
31
|
|
|
32
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
33
|
msgid "Click to edit block"
|
|
34
|
-
msgstr ""
|
|
34
|
+
msgstr "Kliknite da biste uredili blok"
|
|
35
35
|
|
|
36
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
37
|
msgid "Drag to move"
|
|
38
|
-
msgstr ""
|
|
38
|
+
msgstr "Prevucite da biste premestili"
|
|
39
39
|
|
|
40
40
|
msgctxt "Label for a button showing the next thing (tab, page, etc.)."
|
|
41
41
|
msgid "Next"
|
|
@@ -123,16 +123,24 @@ msgstr "Kontekstualna traka sa alatkama Editor"
|
|
|
123
123
|
|
|
124
124
|
msgctxt "Label of an input field for typing colors in the HEX color format."
|
|
125
125
|
msgid "HEX"
|
|
126
|
-
msgstr ""
|
|
126
|
+
msgstr "HEX"
|
|
127
127
|
|
|
128
128
|
msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component."
|
|
129
129
|
msgid "Accept"
|
|
130
|
-
msgstr ""
|
|
130
|
+
msgstr "Prihvati"
|
|
131
131
|
|
|
132
132
|
msgctxt "The main text of the message shown to the user when given query does not match any results."
|
|
133
133
|
msgid "No results found"
|
|
134
|
-
msgstr ""
|
|
134
|
+
msgstr "Nije pronađen nijedan rezultat"
|
|
135
135
|
|
|
136
136
|
msgctxt "The main text of the message shown to the user when no results are available."
|
|
137
137
|
msgid "No searchable items"
|
|
138
|
+
msgstr "Nema stavki koje se mogu pretražiti"
|
|
139
|
+
|
|
140
|
+
msgctxt "A default label of a dialog window displayed on top the editor."
|
|
141
|
+
msgid "Editor dialog"
|
|
142
|
+
msgstr ""
|
|
143
|
+
|
|
144
|
+
msgctxt "The label and the tooltip for the close button in the dialog header."
|
|
145
|
+
msgid "Close"
|
|
138
146
|
msgstr ""
|
package/lang/translations/sr.po
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright (c) 2003-
|
|
1
|
+
# Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
2
2
|
#
|
|
3
3
|
# !!! IMPORTANT !!!
|
|
4
4
|
#
|
|
@@ -136,3 +136,11 @@ msgstr "Nije pronađen nijedan rezultat"
|
|
|
136
136
|
msgctxt "The main text of the message shown to the user when no results are available."
|
|
137
137
|
msgid "No searchable items"
|
|
138
138
|
msgstr "Nema stavki koje se mogu pretražiti"
|
|
139
|
+
|
|
140
|
+
msgctxt "A default label of a dialog window displayed on top the editor."
|
|
141
|
+
msgid "Editor dialog"
|
|
142
|
+
msgstr "Dijalog za uređivanje"
|
|
143
|
+
|
|
144
|
+
msgctxt "The label and the tooltip for the close button in the dialog header."
|
|
145
|
+
msgid "Close"
|
|
146
|
+
msgstr "Zatvori"
|
package/lang/translations/sv.po
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright (c) 2003-
|
|
1
|
+
# Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
2
2
|
#
|
|
3
3
|
# !!! IMPORTANT !!!
|
|
4
4
|
#
|
|
@@ -136,3 +136,11 @@ msgstr "Inga resultat hittades"
|
|
|
136
136
|
msgctxt "The main text of the message shown to the user when no results are available."
|
|
137
137
|
msgid "No searchable items"
|
|
138
138
|
msgstr "Inga sökbara objekt"
|
|
139
|
+
|
|
140
|
+
msgctxt "A default label of a dialog window displayed on top the editor."
|
|
141
|
+
msgid "Editor dialog"
|
|
142
|
+
msgstr "Ordbehandlardialog"
|
|
143
|
+
|
|
144
|
+
msgctxt "The label and the tooltip for the close button in the dialog header."
|
|
145
|
+
msgid "Close"
|
|
146
|
+
msgstr "Stäng"
|
package/lang/translations/th.po
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright (c) 2003-
|
|
1
|
+
# Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
2
2
|
#
|
|
3
3
|
# !!! IMPORTANT !!!
|
|
4
4
|
#
|
|
@@ -136,3 +136,11 @@ msgstr "ไม่พบผลลัพธ์"
|
|
|
136
136
|
msgctxt "The main text of the message shown to the user when no results are available."
|
|
137
137
|
msgid "No searchable items"
|
|
138
138
|
msgstr "ไม่มีรายการที่สามารถค้นหาได้"
|
|
139
|
+
|
|
140
|
+
msgctxt "A default label of a dialog window displayed on top the editor."
|
|
141
|
+
msgid "Editor dialog"
|
|
142
|
+
msgstr "การสนทนาของบรรณาธิการ"
|
|
143
|
+
|
|
144
|
+
msgctxt "The label and the tooltip for the close button in the dialog header."
|
|
145
|
+
msgid "Close"
|
|
146
|
+
msgstr "ปิด"
|
package/lang/translations/tk.po
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright (c) 2003-
|
|
1
|
+
# Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
2
2
|
#
|
|
3
3
|
# !!! IMPORTANT !!!
|
|
4
4
|
#
|
|
@@ -136,3 +136,11 @@ msgstr ""
|
|
|
136
136
|
msgctxt "The main text of the message shown to the user when no results are available."
|
|
137
137
|
msgid "No searchable items"
|
|
138
138
|
msgstr ""
|
|
139
|
+
|
|
140
|
+
msgctxt "A default label of a dialog window displayed on top the editor."
|
|
141
|
+
msgid "Editor dialog"
|
|
142
|
+
msgstr ""
|
|
143
|
+
|
|
144
|
+
msgctxt "The label and the tooltip for the close button in the dialog header."
|
|
145
|
+
msgid "Close"
|
|
146
|
+
msgstr ""
|
package/lang/translations/tr.po
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright (c) 2003-
|
|
1
|
+
# Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
2
2
|
#
|
|
3
3
|
# !!! IMPORTANT !!!
|
|
4
4
|
#
|
|
@@ -136,3 +136,11 @@ msgstr "Sonuç bulunamadı"
|
|
|
136
136
|
msgctxt "The main text of the message shown to the user when no results are available."
|
|
137
137
|
msgid "No searchable items"
|
|
138
138
|
msgstr "Aranabilir öge yok"
|
|
139
|
+
|
|
140
|
+
msgctxt "A default label of a dialog window displayed on top the editor."
|
|
141
|
+
msgid "Editor dialog"
|
|
142
|
+
msgstr "Düzenleyici iletişim kutusu"
|
|
143
|
+
|
|
144
|
+
msgctxt "The label and the tooltip for the close button in the dialog header."
|
|
145
|
+
msgid "Close"
|
|
146
|
+
msgstr "Kapat"
|
package/lang/translations/tt.po
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright (c) 2003-
|
|
1
|
+
# Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
2
2
|
#
|
|
3
3
|
# !!! IMPORTANT !!!
|
|
4
4
|
#
|
|
@@ -136,3 +136,11 @@ msgstr ""
|
|
|
136
136
|
msgctxt "The main text of the message shown to the user when no results are available."
|
|
137
137
|
msgid "No searchable items"
|
|
138
138
|
msgstr ""
|
|
139
|
+
|
|
140
|
+
msgctxt "A default label of a dialog window displayed on top the editor."
|
|
141
|
+
msgid "Editor dialog"
|
|
142
|
+
msgstr ""
|
|
143
|
+
|
|
144
|
+
msgctxt "The label and the tooltip for the close button in the dialog header."
|
|
145
|
+
msgid "Close"
|
|
146
|
+
msgstr ""
|
package/lang/translations/ug.po
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright (c) 2003-
|
|
1
|
+
# Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
2
2
|
#
|
|
3
3
|
# !!! IMPORTANT !!!
|
|
4
4
|
#
|
|
@@ -136,3 +136,11 @@ msgstr "ھېچقانداق نەتىجە تېپىلمىدى"
|
|
|
136
136
|
msgctxt "The main text of the message shown to the user when no results are available."
|
|
137
137
|
msgid "No searchable items"
|
|
138
138
|
msgstr "ئىزدىگۈدەك تۈر يوق"
|
|
139
|
+
|
|
140
|
+
msgctxt "A default label of a dialog window displayed on top the editor."
|
|
141
|
+
msgid "Editor dialog"
|
|
142
|
+
msgstr ""
|
|
143
|
+
|
|
144
|
+
msgctxt "The label and the tooltip for the close button in the dialog header."
|
|
145
|
+
msgid "Close"
|
|
146
|
+
msgstr ""
|
package/lang/translations/uk.po
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright (c) 2003-
|
|
1
|
+
# Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
2
2
|
#
|
|
3
3
|
# !!! IMPORTANT !!!
|
|
4
4
|
#
|
|
@@ -136,3 +136,11 @@ msgstr "Нічого не знайдено"
|
|
|
136
136
|
msgctxt "The main text of the message shown to the user when no results are available."
|
|
137
137
|
msgid "No searchable items"
|
|
138
138
|
msgstr "Немає шуканих об'єктів"
|
|
139
|
+
|
|
140
|
+
msgctxt "A default label of a dialog window displayed on top the editor."
|
|
141
|
+
msgid "Editor dialog"
|
|
142
|
+
msgstr "Діалогове вікно редактора"
|
|
143
|
+
|
|
144
|
+
msgctxt "The label and the tooltip for the close button in the dialog header."
|
|
145
|
+
msgid "Close"
|
|
146
|
+
msgstr "Закрити"
|
package/lang/translations/ur.po
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright (c) 2003-
|
|
1
|
+
# Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
2
2
|
#
|
|
3
3
|
# !!! IMPORTANT !!!
|
|
4
4
|
#
|
|
@@ -136,3 +136,11 @@ msgstr ""
|
|
|
136
136
|
msgctxt "The main text of the message shown to the user when no results are available."
|
|
137
137
|
msgid "No searchable items"
|
|
138
138
|
msgstr ""
|
|
139
|
+
|
|
140
|
+
msgctxt "A default label of a dialog window displayed on top the editor."
|
|
141
|
+
msgid "Editor dialog"
|
|
142
|
+
msgstr ""
|
|
143
|
+
|
|
144
|
+
msgctxt "The label and the tooltip for the close button in the dialog header."
|
|
145
|
+
msgid "Close"
|
|
146
|
+
msgstr ""
|
package/lang/translations/uz.po
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright (c) 2003-
|
|
1
|
+
# Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
2
2
|
#
|
|
3
3
|
# !!! IMPORTANT !!!
|
|
4
4
|
#
|
|
@@ -136,3 +136,11 @@ msgstr ""
|
|
|
136
136
|
msgctxt "The main text of the message shown to the user when no results are available."
|
|
137
137
|
msgid "No searchable items"
|
|
138
138
|
msgstr ""
|
|
139
|
+
|
|
140
|
+
msgctxt "A default label of a dialog window displayed on top the editor."
|
|
141
|
+
msgid "Editor dialog"
|
|
142
|
+
msgstr ""
|
|
143
|
+
|
|
144
|
+
msgctxt "The label and the tooltip for the close button in the dialog header."
|
|
145
|
+
msgid "Close"
|
|
146
|
+
msgstr ""
|
package/lang/translations/vi.po
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright (c) 2003-
|
|
1
|
+
# Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
2
2
|
#
|
|
3
3
|
# !!! IMPORTANT !!!
|
|
4
4
|
#
|
|
@@ -136,3 +136,11 @@ msgstr "Không tìm thấy kết quả"
|
|
|
136
136
|
msgctxt "The main text of the message shown to the user when no results are available."
|
|
137
137
|
msgid "No searchable items"
|
|
138
138
|
msgstr "Không có mục nào tìm kiếm được"
|
|
139
|
+
|
|
140
|
+
msgctxt "A default label of a dialog window displayed on top the editor."
|
|
141
|
+
msgid "Editor dialog"
|
|
142
|
+
msgstr "Hộp thoại trình biên tập"
|
|
143
|
+
|
|
144
|
+
msgctxt "The label and the tooltip for the close button in the dialog header."
|
|
145
|
+
msgid "Close"
|
|
146
|
+
msgstr "Đóng"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright (c) 2003-
|
|
1
|
+
# Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
2
2
|
#
|
|
3
3
|
# !!! IMPORTANT !!!
|
|
4
4
|
#
|
|
@@ -136,3 +136,11 @@ msgstr "未找到结果"
|
|
|
136
136
|
msgctxt "The main text of the message shown to the user when no results are available."
|
|
137
137
|
msgid "No searchable items"
|
|
138
138
|
msgstr "没有可搜索的项目"
|
|
139
|
+
|
|
140
|
+
msgctxt "A default label of a dialog window displayed on top the editor."
|
|
141
|
+
msgid "Editor dialog"
|
|
142
|
+
msgstr "编辑器对话框"
|
|
143
|
+
|
|
144
|
+
msgctxt "The label and the tooltip for the close button in the dialog header."
|
|
145
|
+
msgid "Close"
|
|
146
|
+
msgstr "关闭"
|
package/lang/translations/zh.po
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright (c) 2003-
|
|
1
|
+
# Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
2
2
|
#
|
|
3
3
|
# !!! IMPORTANT !!!
|
|
4
4
|
#
|
|
@@ -136,3 +136,11 @@ msgstr "找不到結果"
|
|
|
136
136
|
msgctxt "The main text of the message shown to the user when no results are available."
|
|
137
137
|
msgid "No searchable items"
|
|
138
138
|
msgstr "沒有可搜尋的項目"
|
|
139
|
+
|
|
140
|
+
msgctxt "A default label of a dialog window displayed on top the editor."
|
|
141
|
+
msgid "Editor dialog"
|
|
142
|
+
msgstr "編輯工具對話框"
|
|
143
|
+
|
|
144
|
+
msgctxt "The label and the tooltip for the close button in the dialog header."
|
|
145
|
+
msgid "Close"
|
|
146
|
+
msgstr "關閉"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-ui",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "41.0.0",
|
|
4
4
|
"description": "The UI framework and standard UI library of CKEditor 5.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ckeditor",
|
|
@@ -9,10 +9,11 @@
|
|
|
9
9
|
"ckeditor5-lib",
|
|
10
10
|
"ckeditor5-dll"
|
|
11
11
|
],
|
|
12
|
+
"type": "module",
|
|
12
13
|
"main": "src/index.js",
|
|
13
14
|
"dependencies": {
|
|
14
|
-
"@ckeditor/ckeditor5-core": "
|
|
15
|
-
"@ckeditor/ckeditor5-utils": "
|
|
15
|
+
"@ckeditor/ckeditor5-core": "41.0.0",
|
|
16
|
+
"@ckeditor/ckeditor5-utils": "41.0.0",
|
|
16
17
|
"color-convert": "2.0.1",
|
|
17
18
|
"color-parse": "1.4.2",
|
|
18
19
|
"lodash-es": "4.17.21",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
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
5
|
/**
|
|
@@ -7,18 +7,22 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import type { Editor } from '@ckeditor/ckeditor5-core';
|
|
9
9
|
import type { Locale } from '@ckeditor/ckeditor5-utils';
|
|
10
|
-
import type ViewCollection from './viewcollection';
|
|
11
|
-
import View from './view';
|
|
10
|
+
import type ViewCollection from './viewcollection.js';
|
|
11
|
+
import View from './view.js';
|
|
12
12
|
import '../theme/components/arialiveannouncer/arialiveannouncer.css';
|
|
13
13
|
/**
|
|
14
14
|
* The politeness level of an `aria-live` announcement.
|
|
15
15
|
*
|
|
16
|
-
*
|
|
16
|
+
* Available keys are:
|
|
17
|
+
* * `AriaLiveAnnouncerPoliteness.POLITE`,
|
|
18
|
+
* * `AriaLiveAnnouncerPoliteness.ASSERTIVE`
|
|
19
|
+
*
|
|
20
|
+
* [Learn more](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Live_Regions#Politeness_levels).
|
|
17
21
|
*/
|
|
18
|
-
export declare
|
|
19
|
-
POLITE
|
|
20
|
-
ASSERTIVE
|
|
21
|
-
}
|
|
22
|
+
export declare const AriaLiveAnnouncerPoliteness: {
|
|
23
|
+
readonly POLITE: "polite";
|
|
24
|
+
readonly ASSERTIVE: "assertive";
|
|
25
|
+
};
|
|
22
26
|
/**
|
|
23
27
|
* An accessibility helper that manages all ARIA live regions associated with an editor instance. ARIA live regions announce changes
|
|
24
28
|
* to the state of the editor features.
|
|
@@ -62,7 +66,7 @@ export default class AriaLiveAnnouncer {
|
|
|
62
66
|
* editor.ui.ariaLiveAnnouncer.announce( 'network', 'Connection lost. Reconnecting.' );
|
|
63
67
|
* ```
|
|
64
68
|
*/
|
|
65
|
-
announce(regionName: string, announcementText: string, politeness?: AriaLiveAnnouncerPoliteness): void;
|
|
69
|
+
announce(regionName: string, announcementText: string, politeness?: typeof AriaLiveAnnouncerPoliteness[keyof typeof AriaLiveAnnouncerPoliteness]): void;
|
|
66
70
|
}
|
|
67
71
|
/**
|
|
68
72
|
* The view that aggregates all `aria-live` regions.
|
|
@@ -85,7 +89,7 @@ export declare class AriaLiveAnnouncerRegionView extends View {
|
|
|
85
89
|
/**
|
|
86
90
|
* Current politeness level of the region.
|
|
87
91
|
*/
|
|
88
|
-
politeness: AriaLiveAnnouncerPoliteness;
|
|
92
|
+
politeness: typeof AriaLiveAnnouncerPoliteness[keyof typeof AriaLiveAnnouncerPoliteness];
|
|
89
93
|
/**
|
|
90
94
|
* A unique name of the region, usually associated with a specific editor feature or system.
|
|
91
95
|
*/
|
package/src/arialiveannouncer.js
CHANGED
|
@@ -1,19 +1,22 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
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 View from './view';
|
|
5
|
+
import View from './view.js';
|
|
6
6
|
import '../theme/components/arialiveannouncer/arialiveannouncer.css';
|
|
7
7
|
/**
|
|
8
8
|
* The politeness level of an `aria-live` announcement.
|
|
9
9
|
*
|
|
10
|
-
*
|
|
10
|
+
* Available keys are:
|
|
11
|
+
* * `AriaLiveAnnouncerPoliteness.POLITE`,
|
|
12
|
+
* * `AriaLiveAnnouncerPoliteness.ASSERTIVE`
|
|
13
|
+
*
|
|
14
|
+
* [Learn more](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Live_Regions#Politeness_levels).
|
|
11
15
|
*/
|
|
12
|
-
export
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
})(AriaLiveAnnouncerPoliteness || (AriaLiveAnnouncerPoliteness = {}));
|
|
16
|
+
export const AriaLiveAnnouncerPoliteness = {
|
|
17
|
+
POLITE: 'polite',
|
|
18
|
+
ASSERTIVE: 'assertive'
|
|
19
|
+
};
|
|
17
20
|
/**
|
|
18
21
|
* An accessibility helper that manages all ARIA live regions associated with an editor instance. ARIA live regions announce changes
|
|
19
22
|
* to the state of the editor features.
|
package/src/augmentation.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
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 { BalloonToolbar, BlockToolbar, ContextualBalloon, Notification } from './index';
|
|
5
|
+
import type { BalloonToolbar, BlockToolbar, ContextualBalloon, Notification, Dialog } from './index.js';
|
|
6
6
|
import type { ToolbarConfig } from '@ckeditor/ckeditor5-core';
|
|
7
7
|
declare module '@ckeditor/ckeditor5-core' {
|
|
8
8
|
interface EditorConfig {
|
|
@@ -81,6 +81,7 @@ declare module '@ckeditor/ckeditor5-core' {
|
|
|
81
81
|
[BalloonToolbar.pluginName]: BalloonToolbar;
|
|
82
82
|
[BlockToolbar.pluginName]: BlockToolbar;
|
|
83
83
|
[ContextualBalloon.pluginName]: ContextualBalloon;
|
|
84
|
+
[Dialog.pluginName]: Dialog;
|
|
84
85
|
[Notification.pluginName]: Notification;
|
|
85
86
|
}
|
|
86
87
|
}
|
package/src/augmentation.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
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
5
|
export {};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
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
5
|
/**
|
|
6
6
|
* @module ui/autocomplete/autocompleteview
|
|
7
7
|
*/
|
|
8
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';
|
|
9
|
+
import SearchTextView, { type SearchTextViewConfig } from '../search/text/searchtextview.js';
|
|
10
|
+
import type SearchResultsView from '../search/searchresultsview.js';
|
|
11
|
+
import type InputBase from '../input/inputbase.js';
|
|
12
12
|
import '../../theme/components/autocomplete/autocomplete.css';
|
|
13
13
|
/**
|
|
14
14
|
* The autocomplete component's view class. It extends the {@link module:ui/search/text/searchtextview~SearchTextView} class
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
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
5
|
/**
|
|
6
6
|
* @module ui/autocomplete/autocompleteview
|
|
7
7
|
*/
|
|
8
8
|
import { getOptimalPosition, global, toUnit, Rect } from '@ckeditor/ckeditor5-utils';
|
|
9
|
-
import SearchTextView from '../search/text/searchtextview';
|
|
9
|
+
import SearchTextView from '../search/text/searchtextview.js';
|
|
10
10
|
import '../../theme/components/autocomplete/autocomplete.css';
|
|
11
11
|
/**
|
|
12
12
|
* The autocomplete component's view class. It extends the {@link module:ui/search/text/searchtextview~SearchTextView} class
|
|
13
13
|
* with a floating {@link #resultsView} that shows up when the user starts typing and hides when they blur
|
|
14
14
|
* the component.
|
|
15
15
|
*/
|
|
16
|
-
|
|
16
|
+
class AutocompleteView extends SearchTextView {
|
|
17
17
|
/**
|
|
18
18
|
* @inheritDoc
|
|
19
19
|
*/
|
|
@@ -151,3 +151,4 @@ AutocompleteView.defaultResultsPositions = [
|
|
|
151
151
|
* A function used to calculate the optimal position for the dropdown panel.
|
|
152
152
|
*/
|
|
153
153
|
AutocompleteView._getOptimalPosition = getOptimalPosition;
|
|
154
|
+
export default AutocompleteView;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
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
5
|
/**
|
|
6
6
|
* @module ui/bindings/addkeyboardhandlingforgrid
|
|
7
7
|
*/
|
|
8
8
|
import type { FocusTracker, KeystrokeHandler } from '@ckeditor/ckeditor5-utils';
|
|
9
|
-
import type ViewCollection from '../viewcollection';
|
|
9
|
+
import type ViewCollection from '../viewcollection.js';
|
|
10
10
|
/**
|
|
11
11
|
* A helper that adds a keyboard navigation support (arrow up/down/left/right) for grids.
|
|
12
12
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
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
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
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
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
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
5
|
/* global document */
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
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
5
|
/**
|
|
6
6
|
* @module ui/bindings/csstransitiondisablermixin
|
|
7
7
|
*/
|
|
8
8
|
import type { Constructor, Mixed } from '@ckeditor/ckeditor5-utils';
|
|
9
|
-
import type View from '../view';
|
|
9
|
+
import type View from '../view.js';
|
|
10
10
|
/**
|
|
11
11
|
* A mixin that brings the possibility to temporarily disable CSS transitions using
|
|
12
12
|
* {@link module:ui/view~View} methods. It is helpful when, for instance, the transitions should not happen
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
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
5
|
/**
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2024, 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/bindings/draggableviewmixin
|
|
7
|
+
*/
|
|
8
|
+
import type View from '../view.js';
|
|
9
|
+
import { type Constructor, type Mixed } from '@ckeditor/ckeditor5-utils';
|
|
10
|
+
/**
|
|
11
|
+
* A mixin that brings the possibility to observe dragging of the view element.
|
|
12
|
+
* The view has to implement the {@link ~DraggableView} interface to use it:
|
|
13
|
+
*
|
|
14
|
+
* ```js
|
|
15
|
+
* export default class MyDraggableView extends DraggableViewMixin( View ) implements DraggableView {
|
|
16
|
+
* // ...
|
|
17
|
+
* }
|
|
18
|
+
* ```
|
|
19
|
+
*
|
|
20
|
+
* Creating a class extending it attaches a set of mouse and touch listeners allowing to observe dragging of the view element:
|
|
21
|
+
* * `mousedown` and `touchstart` on the view element - starting the dragging,
|
|
22
|
+
* * `mousemove` and `touchmove` on the document - updating the view coordinates,
|
|
23
|
+
* * `mouseup` and `touchend` on the document - stopping the dragging.
|
|
24
|
+
*
|
|
25
|
+
* The mixin itself doesn't provide a visual feedback (i.e. the dragged element doesn't change its position) -
|
|
26
|
+
* it's up to the developer to implement it.
|
|
27
|
+
*/
|
|
28
|
+
export default function DraggableViewMixin<Base extends Constructor<View>>(view: Base): Mixed<Base, DraggableView>;
|
|
29
|
+
/**
|
|
30
|
+
* An interface that should be implemented by views that want to be draggable.
|
|
31
|
+
*/
|
|
32
|
+
export interface DraggableView extends View {
|
|
33
|
+
get dragHandleElement(): HTMLElement | null;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* An event data object for the {@link ~DraggableView} `drag` event. Fired when the view is dragged.
|
|
37
|
+
*/
|
|
38
|
+
export type DraggableViewDragEvent = {
|
|
39
|
+
name: 'drag';
|
|
40
|
+
args: [
|
|
41
|
+
{
|
|
42
|
+
deltaX: number;
|
|
43
|
+
deltaY: number;
|
|
44
|
+
}
|
|
45
|
+
];
|
|
46
|
+
};
|