@ckeditor/ckeditor5-ui 0.0.0-internal-20241017.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 +4 -0
- package/LICENSE.md +21 -0
- package/README.md +26 -0
- package/ckeditor5-metadata.json +25 -0
- package/dist/arialiveannouncer.d.ts +113 -0
- package/dist/augmentation.d.ts +92 -0
- package/dist/autocomplete/autocompleteview.d.ts +85 -0
- package/dist/badge/badge.d.ts +133 -0
- package/dist/bindings/addkeyboardhandlingforgrid.d.ts +31 -0
- package/dist/bindings/clickoutsidehandler.d.ts +34 -0
- package/dist/bindings/csstransitiondisablermixin.d.ts +44 -0
- package/dist/bindings/draggableviewmixin.d.ts +50 -0
- package/dist/bindings/injectcsstransitiondisabler.d.ts +63 -0
- package/dist/bindings/preventdefault.d.ts +37 -0
- package/dist/bindings/submithandler.d.ts +61 -0
- package/dist/button/button.d.ts +179 -0
- package/dist/button/buttonlabel.d.ts +38 -0
- package/dist/button/buttonlabelview.d.ts +35 -0
- package/dist/button/buttonview.d.ts +201 -0
- package/dist/button/filedialogbuttonview.d.ts +111 -0
- package/dist/button/listitembuttonview.d.ts +82 -0
- package/dist/button/switchbuttonview.d.ts +49 -0
- package/dist/collapsible/collapsibleview.d.ts +74 -0
- package/dist/colorgrid/colorgridview.d.ts +136 -0
- package/dist/colorgrid/colortileview.d.ts +32 -0
- package/dist/colorgrid/utils.d.ts +51 -0
- package/dist/colorpicker/colorpickerview.d.ts +177 -0
- package/dist/colorpicker/utils.d.ts +52 -0
- package/dist/colorselector/colorgridsfragmentview.d.ts +199 -0
- package/dist/colorselector/colorpickerfragmentview.d.ts +137 -0
- package/dist/colorselector/colorselectorview.d.ts +246 -0
- package/dist/colorselector/documentcolorcollection.d.ts +74 -0
- package/dist/componentfactory.d.ts +85 -0
- package/dist/dialog/dialog.d.ts +281 -0
- package/dist/dialog/dialogactionsview.d.ts +73 -0
- package/dist/dialog/dialogcontentview.d.ts +31 -0
- package/dist/dialog/dialogview.d.ts +260 -0
- package/dist/dropdown/button/dropdownbutton.d.ts +29 -0
- package/dist/dropdown/button/dropdownbuttonview.d.ts +52 -0
- package/dist/dropdown/button/splitbuttonview.d.ts +166 -0
- package/dist/dropdown/dropdownpanelfocusable.d.ts +25 -0
- package/dist/dropdown/dropdownpanelview.d.ts +66 -0
- package/dist/dropdown/dropdownview.d.ts +332 -0
- package/dist/dropdown/menu/dropdownmenubehaviors.d.ts +48 -0
- package/dist/dropdown/menu/dropdownmenubuttonview.d.ts +40 -0
- package/dist/dropdown/menu/dropdownmenulistitembuttonview.d.ts +21 -0
- package/dist/dropdown/menu/dropdownmenulistitemview.d.ts +26 -0
- package/dist/dropdown/menu/dropdownmenulistview.d.ts +28 -0
- package/dist/dropdown/menu/dropdownmenunestedmenupanelview.d.ts +38 -0
- package/dist/dropdown/menu/dropdownmenunestedmenuview.d.ts +135 -0
- package/dist/dropdown/menu/dropdownmenurootlistview.d.ts +144 -0
- package/dist/dropdown/menu/utils.d.ts +128 -0
- package/dist/dropdown/utils.d.ts +297 -0
- package/dist/editableui/editableuiview.d.ts +76 -0
- package/dist/editableui/inline/inlineeditableuiview.d.ts +48 -0
- package/dist/editorui/accessibilityhelp/accessibilityhelp.d.ts +59 -0
- package/dist/editorui/accessibilityhelp/accessibilityhelpcontentview.d.ts +39 -0
- package/dist/editorui/bodycollection.d.ts +59 -0
- package/dist/editorui/boxed/boxededitoruiview.d.ts +44 -0
- package/dist/editorui/editorui.d.ts +358 -0
- package/dist/editorui/editoruiview.d.ts +48 -0
- package/dist/editorui/evaluationbadge.d.ts +37 -0
- package/dist/editorui/poweredby.d.ts +38 -0
- package/dist/focuscycler.d.ts +295 -0
- package/dist/formheader/formheaderview.d.ts +62 -0
- package/dist/highlightedtext/buttonlabelwithhighlightview.d.ts +34 -0
- package/dist/highlightedtext/highlightedtextview.d.ts +42 -0
- package/dist/highlightedtext/labelwithhighlightview.d.ts +30 -0
- package/dist/icon/iconview.d.ts +92 -0
- package/dist/iframe/iframeview.d.ts +54 -0
- package/dist/index-content.css +4 -0
- package/dist/index-editor.css +754 -0
- package/dist/index.css +1063 -0
- package/dist/index.css.map +1 -0
- package/dist/index.d.ts +97 -0
- package/dist/index.js +17688 -0
- package/dist/index.js.map +1 -0
- package/dist/input/inputbase.d.ts +123 -0
- package/dist/input/inputview.d.ts +40 -0
- package/dist/inputnumber/inputnumberview.d.ts +53 -0
- package/dist/inputtext/inputtextview.d.ts +22 -0
- package/dist/label/labelview.d.ts +40 -0
- package/dist/labeledfield/labeledfieldview.d.ts +191 -0
- package/dist/labeledfield/utils.d.ts +127 -0
- package/dist/labeledinput/labeledinputview.d.ts +129 -0
- package/dist/list/listitemgroupview.d.ts +63 -0
- package/dist/list/listitemview.d.ts +40 -0
- package/dist/list/listseparatorview.d.ts +22 -0
- package/dist/list/listview.d.ts +128 -0
- package/dist/menubar/menubarmenubuttonview.d.ts +39 -0
- package/dist/menubar/menubarmenulistitembuttonview.d.ts +25 -0
- package/dist/menubar/menubarmenulistitemfiledialogbuttonview.d.ts +27 -0
- package/dist/menubar/menubarmenulistitemview.d.ts +29 -0
- package/dist/menubar/menubarmenulistview.d.ts +33 -0
- package/dist/menubar/menubarmenupanelview.d.ts +57 -0
- package/dist/menubar/menubarmenuview.d.ts +113 -0
- package/dist/menubar/menubarview.d.ts +177 -0
- package/dist/menubar/utils.d.ts +451 -0
- package/dist/model.d.ts +26 -0
- package/dist/notification/notification.d.ts +219 -0
- package/dist/panel/balloon/balloonpanelview.d.ts +701 -0
- package/dist/panel/balloon/contextualballoon.d.ts +313 -0
- package/dist/panel/sticky/stickypanelview.d.ts +160 -0
- package/dist/search/filteredview.d.ts +35 -0
- package/dist/search/filtergroupanditemnames.d.ts +19 -0
- package/dist/search/searchinfoview.d.ts +49 -0
- package/dist/search/searchresultsview.d.ts +58 -0
- package/dist/search/text/searchtextqueryview.d.ts +80 -0
- package/dist/search/text/searchtextview.d.ts +223 -0
- package/dist/spinner/spinnerview.d.ts +29 -0
- package/dist/template.d.ts +946 -0
- package/dist/textarea/textareaview.d.ts +108 -0
- package/dist/toolbar/balloon/balloontoolbar.d.ts +130 -0
- package/dist/toolbar/block/blockbuttonview.d.ts +39 -0
- package/dist/toolbar/block/blocktoolbar.d.ts +175 -0
- package/dist/toolbar/normalizetoolbarconfig.d.ts +44 -0
- package/dist/toolbar/toolbarlinebreakview.d.ts +22 -0
- package/dist/toolbar/toolbarseparatorview.d.ts +22 -0
- package/dist/toolbar/toolbarview.d.ts +271 -0
- package/dist/tooltipmanager.d.ts +192 -0
- package/dist/translations/af.d.ts +8 -0
- package/dist/translations/af.js +5 -0
- package/dist/translations/af.umd.js +11 -0
- package/dist/translations/ar.d.ts +8 -0
- package/dist/translations/ar.js +5 -0
- package/dist/translations/ar.umd.js +11 -0
- package/dist/translations/ast.d.ts +8 -0
- package/dist/translations/ast.js +5 -0
- package/dist/translations/ast.umd.js +11 -0
- package/dist/translations/az.d.ts +8 -0
- package/dist/translations/az.js +5 -0
- package/dist/translations/az.umd.js +11 -0
- package/dist/translations/bg.d.ts +8 -0
- package/dist/translations/bg.js +5 -0
- package/dist/translations/bg.umd.js +11 -0
- package/dist/translations/bn.d.ts +8 -0
- package/dist/translations/bn.js +5 -0
- package/dist/translations/bn.umd.js +11 -0
- package/dist/translations/bs.d.ts +8 -0
- package/dist/translations/bs.js +5 -0
- package/dist/translations/bs.umd.js +11 -0
- package/dist/translations/ca.d.ts +8 -0
- package/dist/translations/ca.js +5 -0
- package/dist/translations/ca.umd.js +11 -0
- package/dist/translations/cs.d.ts +8 -0
- package/dist/translations/cs.js +5 -0
- package/dist/translations/cs.umd.js +11 -0
- package/dist/translations/da.d.ts +8 -0
- package/dist/translations/da.js +5 -0
- package/dist/translations/da.umd.js +11 -0
- package/dist/translations/de-ch.d.ts +8 -0
- package/dist/translations/de-ch.js +5 -0
- package/dist/translations/de-ch.umd.js +11 -0
- package/dist/translations/de.d.ts +8 -0
- package/dist/translations/de.js +5 -0
- package/dist/translations/de.umd.js +11 -0
- package/dist/translations/el.d.ts +8 -0
- package/dist/translations/el.js +5 -0
- package/dist/translations/el.umd.js +11 -0
- package/dist/translations/en-au.d.ts +8 -0
- package/dist/translations/en-au.js +5 -0
- package/dist/translations/en-au.umd.js +11 -0
- package/dist/translations/en-gb.d.ts +8 -0
- package/dist/translations/en-gb.js +5 -0
- package/dist/translations/en-gb.umd.js +11 -0
- package/dist/translations/en.d.ts +8 -0
- package/dist/translations/en.js +5 -0
- package/dist/translations/en.umd.js +11 -0
- package/dist/translations/eo.d.ts +8 -0
- package/dist/translations/eo.js +5 -0
- package/dist/translations/eo.umd.js +11 -0
- package/dist/translations/es-co.d.ts +8 -0
- package/dist/translations/es-co.js +5 -0
- package/dist/translations/es-co.umd.js +11 -0
- package/dist/translations/es.d.ts +8 -0
- package/dist/translations/es.js +5 -0
- package/dist/translations/es.umd.js +11 -0
- package/dist/translations/et.d.ts +8 -0
- package/dist/translations/et.js +5 -0
- package/dist/translations/et.umd.js +11 -0
- package/dist/translations/eu.d.ts +8 -0
- package/dist/translations/eu.js +5 -0
- package/dist/translations/eu.umd.js +11 -0
- package/dist/translations/fa.d.ts +8 -0
- package/dist/translations/fa.js +5 -0
- package/dist/translations/fa.umd.js +11 -0
- package/dist/translations/fi.d.ts +8 -0
- package/dist/translations/fi.js +5 -0
- package/dist/translations/fi.umd.js +11 -0
- package/dist/translations/fr.d.ts +8 -0
- package/dist/translations/fr.js +5 -0
- package/dist/translations/fr.umd.js +11 -0
- package/dist/translations/gl.d.ts +8 -0
- package/dist/translations/gl.js +5 -0
- package/dist/translations/gl.umd.js +11 -0
- package/dist/translations/he.d.ts +8 -0
- package/dist/translations/he.js +5 -0
- package/dist/translations/he.umd.js +11 -0
- package/dist/translations/hi.d.ts +8 -0
- package/dist/translations/hi.js +5 -0
- package/dist/translations/hi.umd.js +11 -0
- package/dist/translations/hr.d.ts +8 -0
- package/dist/translations/hr.js +5 -0
- package/dist/translations/hr.umd.js +11 -0
- package/dist/translations/hu.d.ts +8 -0
- package/dist/translations/hu.js +5 -0
- package/dist/translations/hu.umd.js +11 -0
- package/dist/translations/id.d.ts +8 -0
- package/dist/translations/id.js +5 -0
- package/dist/translations/id.umd.js +11 -0
- package/dist/translations/it.d.ts +8 -0
- package/dist/translations/it.js +5 -0
- package/dist/translations/it.umd.js +11 -0
- package/dist/translations/ja.d.ts +8 -0
- package/dist/translations/ja.js +5 -0
- package/dist/translations/ja.umd.js +11 -0
- package/dist/translations/jv.d.ts +8 -0
- package/dist/translations/jv.js +5 -0
- package/dist/translations/jv.umd.js +11 -0
- package/dist/translations/km.d.ts +8 -0
- package/dist/translations/km.js +5 -0
- package/dist/translations/km.umd.js +11 -0
- package/dist/translations/kn.d.ts +8 -0
- package/dist/translations/kn.js +5 -0
- package/dist/translations/kn.umd.js +11 -0
- package/dist/translations/ko.d.ts +8 -0
- package/dist/translations/ko.js +5 -0
- package/dist/translations/ko.umd.js +11 -0
- package/dist/translations/ku.d.ts +8 -0
- package/dist/translations/ku.js +5 -0
- package/dist/translations/ku.umd.js +11 -0
- package/dist/translations/lt.d.ts +8 -0
- package/dist/translations/lt.js +5 -0
- package/dist/translations/lt.umd.js +11 -0
- package/dist/translations/lv.d.ts +8 -0
- package/dist/translations/lv.js +5 -0
- package/dist/translations/lv.umd.js +11 -0
- package/dist/translations/ms.d.ts +8 -0
- package/dist/translations/ms.js +5 -0
- package/dist/translations/ms.umd.js +11 -0
- package/dist/translations/nb.d.ts +8 -0
- package/dist/translations/nb.js +5 -0
- package/dist/translations/nb.umd.js +11 -0
- package/dist/translations/ne.d.ts +8 -0
- package/dist/translations/ne.js +5 -0
- package/dist/translations/ne.umd.js +11 -0
- package/dist/translations/nl.d.ts +8 -0
- package/dist/translations/nl.js +5 -0
- package/dist/translations/nl.umd.js +11 -0
- package/dist/translations/no.d.ts +8 -0
- package/dist/translations/no.js +5 -0
- package/dist/translations/no.umd.js +11 -0
- package/dist/translations/pl.d.ts +8 -0
- package/dist/translations/pl.js +5 -0
- package/dist/translations/pl.umd.js +11 -0
- package/dist/translations/pt-br.d.ts +8 -0
- package/dist/translations/pt-br.js +5 -0
- package/dist/translations/pt-br.umd.js +11 -0
- package/dist/translations/pt.d.ts +8 -0
- package/dist/translations/pt.js +5 -0
- package/dist/translations/pt.umd.js +11 -0
- package/dist/translations/ro.d.ts +8 -0
- package/dist/translations/ro.js +5 -0
- package/dist/translations/ro.umd.js +11 -0
- package/dist/translations/ru.d.ts +8 -0
- package/dist/translations/ru.js +5 -0
- package/dist/translations/ru.umd.js +11 -0
- package/dist/translations/sk.d.ts +8 -0
- package/dist/translations/sk.js +5 -0
- package/dist/translations/sk.umd.js +11 -0
- package/dist/translations/sl.d.ts +8 -0
- package/dist/translations/sl.js +5 -0
- package/dist/translations/sl.umd.js +11 -0
- package/dist/translations/sq.d.ts +8 -0
- package/dist/translations/sq.js +5 -0
- package/dist/translations/sq.umd.js +11 -0
- package/dist/translations/sr-latn.d.ts +8 -0
- package/dist/translations/sr-latn.js +5 -0
- package/dist/translations/sr-latn.umd.js +11 -0
- package/dist/translations/sr.d.ts +8 -0
- package/dist/translations/sr.js +5 -0
- package/dist/translations/sr.umd.js +11 -0
- package/dist/translations/sv.d.ts +8 -0
- package/dist/translations/sv.js +5 -0
- package/dist/translations/sv.umd.js +11 -0
- package/dist/translations/th.d.ts +8 -0
- package/dist/translations/th.js +5 -0
- package/dist/translations/th.umd.js +11 -0
- package/dist/translations/ti.d.ts +8 -0
- package/dist/translations/ti.js +5 -0
- package/dist/translations/ti.umd.js +11 -0
- package/dist/translations/tk.d.ts +8 -0
- package/dist/translations/tk.js +5 -0
- package/dist/translations/tk.umd.js +11 -0
- package/dist/translations/tr.d.ts +8 -0
- package/dist/translations/tr.js +5 -0
- package/dist/translations/tr.umd.js +11 -0
- package/dist/translations/tt.d.ts +8 -0
- package/dist/translations/tt.js +5 -0
- package/dist/translations/tt.umd.js +11 -0
- package/dist/translations/ug.d.ts +8 -0
- package/dist/translations/ug.js +5 -0
- package/dist/translations/ug.umd.js +11 -0
- package/dist/translations/uk.d.ts +8 -0
- package/dist/translations/uk.js +5 -0
- package/dist/translations/uk.umd.js +11 -0
- package/dist/translations/ur.d.ts +8 -0
- package/dist/translations/ur.js +5 -0
- package/dist/translations/ur.umd.js +11 -0
- package/dist/translations/uz.d.ts +8 -0
- package/dist/translations/uz.js +5 -0
- package/dist/translations/uz.umd.js +11 -0
- package/dist/translations/vi.d.ts +8 -0
- package/dist/translations/vi.js +5 -0
- package/dist/translations/vi.umd.js +11 -0
- package/dist/translations/zh-cn.d.ts +8 -0
- package/dist/translations/zh-cn.js +5 -0
- package/dist/translations/zh-cn.umd.js +11 -0
- package/dist/translations/zh.d.ts +8 -0
- package/dist/translations/zh.js +5 -0
- package/dist/translations/zh.umd.js +11 -0
- package/dist/view.d.ts +426 -0
- package/dist/viewcollection.d.ts +143 -0
- package/lang/contexts.json +51 -0
- package/lang/translations/af.po +214 -0
- package/lang/translations/ar.po +214 -0
- package/lang/translations/ast.po +214 -0
- package/lang/translations/az.po +214 -0
- package/lang/translations/bg.po +214 -0
- package/lang/translations/bn.po +214 -0
- package/lang/translations/bs.po +214 -0
- package/lang/translations/ca.po +214 -0
- package/lang/translations/cs.po +214 -0
- package/lang/translations/da.po +214 -0
- package/lang/translations/de-ch.po +214 -0
- package/lang/translations/de.po +214 -0
- package/lang/translations/el.po +214 -0
- package/lang/translations/en-au.po +214 -0
- package/lang/translations/en-gb.po +214 -0
- package/lang/translations/en.po +214 -0
- package/lang/translations/eo.po +214 -0
- package/lang/translations/es-co.po +214 -0
- package/lang/translations/es.po +214 -0
- package/lang/translations/et.po +214 -0
- package/lang/translations/eu.po +214 -0
- package/lang/translations/fa.po +214 -0
- package/lang/translations/fi.po +214 -0
- package/lang/translations/fr.po +214 -0
- package/lang/translations/gl.po +214 -0
- package/lang/translations/he.po +214 -0
- package/lang/translations/hi.po +214 -0
- package/lang/translations/hr.po +214 -0
- package/lang/translations/hu.po +214 -0
- package/lang/translations/id.po +214 -0
- package/lang/translations/it.po +214 -0
- package/lang/translations/ja.po +214 -0
- package/lang/translations/jv.po +214 -0
- package/lang/translations/km.po +214 -0
- package/lang/translations/kn.po +214 -0
- package/lang/translations/ko.po +214 -0
- package/lang/translations/ku.po +214 -0
- package/lang/translations/lt.po +214 -0
- package/lang/translations/lv.po +214 -0
- package/lang/translations/ms.po +214 -0
- package/lang/translations/nb.po +214 -0
- package/lang/translations/ne.po +214 -0
- package/lang/translations/nl.po +214 -0
- package/lang/translations/no.po +214 -0
- package/lang/translations/pl.po +214 -0
- package/lang/translations/pt-br.po +214 -0
- package/lang/translations/pt.po +214 -0
- package/lang/translations/ro.po +214 -0
- package/lang/translations/ru.po +214 -0
- package/lang/translations/sk.po +214 -0
- package/lang/translations/sl.po +214 -0
- package/lang/translations/sq.po +214 -0
- package/lang/translations/sr-latn.po +214 -0
- package/lang/translations/sr.po +214 -0
- package/lang/translations/sv.po +214 -0
- package/lang/translations/th.po +214 -0
- package/lang/translations/ti.po +214 -0
- package/lang/translations/tk.po +214 -0
- package/lang/translations/tr.po +214 -0
- package/lang/translations/tt.po +214 -0
- package/lang/translations/ug.po +214 -0
- package/lang/translations/uk.po +214 -0
- package/lang/translations/ur.po +214 -0
- package/lang/translations/uz.po +214 -0
- package/lang/translations/vi.po +214 -0
- package/lang/translations/zh-cn.po +214 -0
- package/lang/translations/zh.po +214 -0
- package/package.json +42 -0
- package/src/arialiveannouncer.d.ts +109 -0
- package/src/arialiveannouncer.js +165 -0
- package/src/augmentation.d.ts +88 -0
- package/src/augmentation.js +5 -0
- package/src/autocomplete/autocompleteview.d.ts +81 -0
- package/src/autocomplete/autocompleteview.js +154 -0
- package/src/badge/badge.d.ts +129 -0
- package/src/badge/badge.js +218 -0
- package/src/bindings/addkeyboardhandlingforgrid.d.ts +27 -0
- package/src/bindings/addkeyboardhandlingforgrid.js +107 -0
- package/src/bindings/clickoutsidehandler.d.ts +30 -0
- package/src/bindings/clickoutsidehandler.js +37 -0
- package/src/bindings/csstransitiondisablermixin.d.ts +40 -0
- package/src/bindings/csstransitiondisablermixin.js +55 -0
- package/src/bindings/draggableviewmixin.d.ts +46 -0
- package/src/bindings/draggableviewmixin.js +144 -0
- package/src/bindings/injectcsstransitiondisabler.d.ts +59 -0
- package/src/bindings/injectcsstransitiondisabler.js +71 -0
- package/src/bindings/preventdefault.d.ts +33 -0
- package/src/bindings/preventdefault.js +34 -0
- package/src/bindings/submithandler.d.ts +57 -0
- package/src/bindings/submithandler.js +47 -0
- package/src/button/button.d.ts +175 -0
- package/src/button/button.js +5 -0
- 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 +197 -0
- package/src/button/buttonview.js +248 -0
- package/src/button/filedialogbuttonview.d.ts +107 -0
- package/src/button/filedialogbuttonview.js +145 -0
- package/src/button/listitembuttonview.d.ts +78 -0
- package/src/button/listitembuttonview.js +129 -0
- package/src/button/switchbuttonview.d.ts +45 -0
- package/src/button/switchbuttonview.js +75 -0
- package/src/collapsible/collapsibleview.d.ts +70 -0
- package/src/collapsible/collapsibleview.js +95 -0
- package/src/colorgrid/colorgridview.d.ts +132 -0
- package/src/colorgrid/colorgridview.js +124 -0
- package/src/colorgrid/colortileview.d.ts +28 -0
- package/src/colorgrid/colortileview.js +42 -0
- package/src/colorgrid/utils.d.ts +47 -0
- package/src/colorgrid/utils.js +84 -0
- package/src/colorpicker/colorpickerview.d.ts +173 -0
- package/src/colorpicker/colorpickerview.js +326 -0
- package/src/colorpicker/utils.d.ts +48 -0
- package/src/colorpicker/utils.js +108 -0
- package/src/colorselector/colorgridsfragmentview.d.ts +195 -0
- package/src/colorselector/colorgridsfragmentview.js +291 -0
- package/src/colorselector/colorpickerfragmentview.d.ts +133 -0
- package/src/colorselector/colorpickerfragmentview.js +212 -0
- package/src/colorselector/colorselectorview.d.ts +242 -0
- package/src/colorselector/colorselectorview.js +257 -0
- package/src/colorselector/documentcolorcollection.d.ts +70 -0
- package/src/colorselector/documentcolorcollection.js +42 -0
- package/src/componentfactory.d.ts +81 -0
- package/src/componentfactory.js +104 -0
- package/src/dialog/dialog.d.ts +277 -0
- package/src/dialog/dialog.js +279 -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 +453 -0
- package/src/dropdown/button/dropdownbutton.d.ts +25 -0
- package/src/dropdown/button/dropdownbutton.js +5 -0
- package/src/dropdown/button/dropdownbuttonview.d.ts +48 -0
- package/src/dropdown/button/dropdownbuttonview.js +66 -0
- package/src/dropdown/button/splitbuttonview.d.ts +162 -0
- package/src/dropdown/button/splitbuttonview.js +154 -0
- package/src/dropdown/dropdownpanelfocusable.d.ts +21 -0
- package/src/dropdown/dropdownpanelfocusable.js +5 -0
- package/src/dropdown/dropdownpanelview.d.ts +62 -0
- package/src/dropdown/dropdownpanelview.js +97 -0
- package/src/dropdown/dropdownview.d.ts +328 -0
- package/src/dropdown/dropdownview.js +380 -0
- package/src/dropdown/menu/dropdownmenubehaviors.d.ts +44 -0
- package/src/dropdown/menu/dropdownmenubehaviors.js +119 -0
- package/src/dropdown/menu/dropdownmenubuttonview.d.ts +36 -0
- package/src/dropdown/menu/dropdownmenubuttonview.js +65 -0
- package/src/dropdown/menu/dropdownmenulistitembuttonview.d.ts +17 -0
- package/src/dropdown/menu/dropdownmenulistitembuttonview.js +29 -0
- package/src/dropdown/menu/dropdownmenulistitemview.d.ts +22 -0
- package/src/dropdown/menu/dropdownmenulistitemview.js +34 -0
- package/src/dropdown/menu/dropdownmenulistview.d.ts +24 -0
- package/src/dropdown/menu/dropdownmenulistview.js +29 -0
- package/src/dropdown/menu/dropdownmenunestedmenupanelview.d.ts +34 -0
- package/src/dropdown/menu/dropdownmenunestedmenupanelview.js +63 -0
- package/src/dropdown/menu/dropdownmenunestedmenuview.d.ts +131 -0
- package/src/dropdown/menu/dropdownmenunestedmenuview.js +191 -0
- package/src/dropdown/menu/dropdownmenurootlistview.d.ts +140 -0
- package/src/dropdown/menu/dropdownmenurootlistview.js +160 -0
- package/src/dropdown/menu/utils.d.ts +124 -0
- package/src/dropdown/menu/utils.js +61 -0
- package/src/dropdown/utils.d.ts +293 -0
- package/src/dropdown/utils.js +562 -0
- package/src/editableui/editableuiview.d.ts +72 -0
- package/src/editableui/editableuiview.js +112 -0
- package/src/editableui/inline/inlineeditableuiview.d.ts +44 -0
- package/src/editableui/inline/inlineeditableuiview.js +71 -0
- package/src/editorui/accessibilityhelp/accessibilityhelp.d.ts +55 -0
- package/src/editorui/accessibilityhelp/accessibilityhelp.js +145 -0
- package/src/editorui/accessibilityhelp/accessibilityhelpcontentview.d.ts +35 -0
- package/src/editorui/accessibilityhelp/accessibilityhelpcontentview.js +112 -0
- package/src/editorui/bodycollection.d.ts +55 -0
- package/src/editorui/bodycollection.js +85 -0
- package/src/editorui/boxed/boxededitoruiview.d.ts +40 -0
- package/src/editorui/boxed/boxededitoruiview.js +81 -0
- package/src/editorui/editorui.d.ts +354 -0
- package/src/editorui/editorui.js +522 -0
- package/src/editorui/editoruiview.d.ts +44 -0
- package/src/editorui/editoruiview.js +38 -0
- package/src/editorui/evaluationbadge.d.ts +33 -0
- package/src/editorui/evaluationbadge.js +99 -0
- package/src/editorui/poweredby.d.ts +34 -0
- package/src/editorui/poweredby.js +127 -0
- package/src/focuscycler.d.ts +291 -0
- package/src/focuscycler.js +352 -0
- package/src/formheader/formheaderview.d.ts +58 -0
- package/src/formheader/formheaderview.js +69 -0
- package/src/highlightedtext/buttonlabelwithhighlightview.d.ts +30 -0
- package/src/highlightedtext/buttonlabelwithhighlightview.js +31 -0
- package/src/highlightedtext/highlightedtextview.d.ts +38 -0
- package/src/highlightedtext/highlightedtextview.js +102 -0
- package/src/highlightedtext/labelwithhighlightview.d.ts +26 -0
- package/src/highlightedtext/labelwithhighlightview.js +33 -0
- package/src/icon/iconview.d.ts +88 -0
- package/src/icon/iconview.js +115 -0
- package/src/iframe/iframeview.d.ts +50 -0
- package/src/iframe/iframeview.js +63 -0
- package/src/index.d.ts +93 -0
- package/src/index.js +90 -0
- package/src/input/inputbase.d.ts +119 -0
- package/src/input/inputbase.js +114 -0
- package/src/input/inputview.d.ts +36 -0
- package/src/input/inputview.js +24 -0
- package/src/inputnumber/inputnumberview.d.ts +49 -0
- package/src/inputnumber/inputnumberview.js +40 -0
- package/src/inputtext/inputtextview.d.ts +18 -0
- package/src/inputtext/inputtextview.js +27 -0
- package/src/label/labelview.d.ts +36 -0
- package/src/label/labelview.js +41 -0
- package/src/labeledfield/labeledfieldview.d.ts +187 -0
- package/src/labeledfield/labeledfieldview.js +157 -0
- package/src/labeledfield/utils.d.ts +123 -0
- package/src/labeledfield/utils.js +176 -0
- package/src/labeledinput/labeledinputview.d.ts +125 -0
- package/src/labeledinput/labeledinputview.js +125 -0
- package/src/list/listitemgroupview.d.ts +59 -0
- package/src/list/listitemgroupview.js +67 -0
- package/src/list/listitemview.d.ts +36 -0
- package/src/list/listitemview.js +42 -0
- package/src/list/listseparatorview.d.ts +18 -0
- package/src/list/listseparatorview.js +28 -0
- package/src/list/listview.d.ts +124 -0
- package/src/list/listview.js +188 -0
- package/src/menubar/menubarmenubuttonview.d.ts +35 -0
- package/src/menubar/menubarmenubuttonview.js +64 -0
- package/src/menubar/menubarmenulistitembuttonview.d.ts +21 -0
- package/src/menubar/menubarmenulistitembuttonview.js +30 -0
- package/src/menubar/menubarmenulistitemfiledialogbuttonview.d.ts +23 -0
- package/src/menubar/menubarmenulistitemfiledialogbuttonview.js +32 -0
- package/src/menubar/menubarmenulistitemview.d.ts +25 -0
- package/src/menubar/menubarmenulistitemview.js +34 -0
- package/src/menubar/menubarmenulistview.d.ts +29 -0
- package/src/menubar/menubarmenulistview.js +72 -0
- package/src/menubar/menubarmenupanelview.d.ts +53 -0
- package/src/menubar/menubarmenupanelview.js +60 -0
- package/src/menubar/menubarmenuview.d.ts +109 -0
- package/src/menubar/menubarmenuview.js +160 -0
- package/src/menubar/menubarview.d.ts +173 -0
- package/src/menubar/menubarview.js +261 -0
- package/src/menubar/utils.d.ts +447 -0
- package/src/menubar/utils.js +1388 -0
- package/src/model.d.ts +22 -0
- package/src/model.js +31 -0
- package/src/notification/notification.d.ts +215 -0
- package/src/notification/notification.js +193 -0
- package/src/panel/balloon/balloonpanelview.d.ts +697 -0
- package/src/panel/balloon/balloonpanelview.js +1055 -0
- package/src/panel/balloon/contextualballoon.d.ts +309 -0
- package/src/panel/balloon/contextualballoon.js +576 -0
- package/src/panel/sticky/stickypanelview.d.ts +156 -0
- package/src/panel/sticky/stickypanelview.js +234 -0
- package/src/search/filteredview.d.ts +31 -0
- package/src/search/filteredview.js +5 -0
- package/src/search/filtergroupanditemnames.d.ts +15 -0
- package/src/search/filtergroupanditemnames.js +38 -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 +202 -0
- package/src/spinner/spinnerview.d.ts +25 -0
- package/src/spinner/spinnerview.js +38 -0
- package/src/template.d.ts +942 -0
- package/src/template.js +1294 -0
- package/src/textarea/textareaview.d.ts +104 -0
- package/src/textarea/textareaview.js +182 -0
- package/src/toolbar/balloon/balloontoolbar.d.ts +126 -0
- package/src/toolbar/balloon/balloontoolbar.js +324 -0
- package/src/toolbar/block/blockbuttonview.d.ts +35 -0
- package/src/toolbar/block/blockbuttonview.js +41 -0
- package/src/toolbar/block/blocktoolbar.d.ts +171 -0
- package/src/toolbar/block/blocktoolbar.js +492 -0
- package/src/toolbar/normalizetoolbarconfig.d.ts +40 -0
- package/src/toolbar/normalizetoolbarconfig.js +52 -0
- package/src/toolbar/toolbarlinebreakview.d.ts +18 -0
- package/src/toolbar/toolbarlinebreakview.js +28 -0
- package/src/toolbar/toolbarseparatorview.d.ts +18 -0
- package/src/toolbar/toolbarseparatorview.js +28 -0
- package/src/toolbar/toolbarview.d.ts +267 -0
- package/src/toolbar/toolbarview.js +721 -0
- package/src/tooltipmanager.d.ts +188 -0
- package/src/tooltipmanager.js +413 -0
- package/src/view.d.ts +422 -0
- package/src/view.js +396 -0
- package/src/viewcollection.d.ts +139 -0
- package/src/viewcollection.js +206 -0
- package/theme/components/arialiveannouncer/arialiveannouncer.css +14 -0
- package/theme/components/autocomplete/autocomplete.css +22 -0
- package/theme/components/button/button.css +39 -0
- package/theme/components/button/listitembutton.css +48 -0
- package/theme/components/button/switchbutton.css +14 -0
- package/theme/components/collapsible/collapsible.css +10 -0
- package/theme/components/colorgrid/colorgrid.css +8 -0
- package/theme/components/colorpicker/colorpicker.css +34 -0
- package/theme/components/colorselector/colorselector.css +35 -0
- package/theme/components/dialog/dialog.css +39 -0
- package/theme/components/dialog/dialogactions.css +11 -0
- package/theme/components/dropdown/dropdown.css +95 -0
- package/theme/components/dropdown/listdropdown.css +10 -0
- package/theme/components/dropdown/menu/dropdownmenu.css +8 -0
- package/theme/components/dropdown/menu/dropdownmenubutton.css +9 -0
- package/theme/components/dropdown/menu/dropdownmenulistitem.css +10 -0
- package/theme/components/dropdown/menu/dropdownmenulistitembutton.css +10 -0
- package/theme/components/dropdown/menu/dropdownmenupanel.css +11 -0
- package/theme/components/dropdown/splitbutton.css +14 -0
- package/theme/components/dropdown/toolbardropdown.css +20 -0
- package/theme/components/editorui/accessibilityhelp.css +10 -0
- package/theme/components/editorui/editorui.css +10 -0
- package/theme/components/formheader/formheader.css +16 -0
- package/theme/components/highlightedtext/highlightedtext.css +12 -0
- package/theme/components/icon/icon.css +8 -0
- package/theme/components/input/input.css +10 -0
- package/theme/components/label/label.css +12 -0
- package/theme/components/labeledfield/labeledfieldview.css +16 -0
- package/theme/components/labeledinput/labeledinput.css +10 -0
- package/theme/components/list/list.css +26 -0
- package/theme/components/menubar/menubar.css +10 -0
- package/theme/components/menubar/menubarmenu.css +9 -0
- package/theme/components/menubar/menubarmenubutton.css +11 -0
- package/theme/components/menubar/menubarmenulistitem.css +10 -0
- package/theme/components/menubar/menubarmenulistitembutton.css +10 -0
- package/theme/components/menubar/menubarmenupanel.css +62 -0
- package/theme/components/panel/balloonpanel.css +56 -0
- package/theme/components/panel/balloonrotator.css +17 -0
- package/theme/components/panel/fakepanel.css +23 -0
- package/theme/components/panel/stickypanel.css +17 -0
- package/theme/components/responsive-form/responsiveform.css +42 -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/theme/components/toolbar/blocktoolbar.css +9 -0
- package/theme/components/toolbar/toolbar.css +58 -0
- package/theme/components/tooltip/tooltip.css +12 -0
- package/theme/globals/_evaluationbadge.css +50 -0
- package/theme/globals/_hidden.css +13 -0
- package/theme/globals/_poweredby.css +72 -0
- package/theme/globals/_transition.css +12 -0
- package/theme/globals/_zindex.css +10 -0
- package/theme/globals/globals.css +10 -0
- package/theme/icons/accessibility.svg +1 -0
- package/theme/icons/color-tile-check.svg +1 -0
- package/theme/icons/dropdown-arrow.svg +1 -0
- package/theme/icons/project-logo.svg +1 -0
- package/theme/mixins/_dir.css +10 -0
- package/theme/mixins/_mediacolors.css +20 -0
- package/theme/mixins/_rwd.css +10 -0
- package/theme/mixins/_unselectable.css +14 -0
package/CHANGELOG.md
ADDED
package/LICENSE.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
Software License Agreement
|
|
2
|
+
==========================
|
|
3
|
+
|
|
4
|
+
**CKEditor 5 UI framework** – https://github.com/ckeditor/ckeditor5-ui <br>
|
|
5
|
+
Copyright (c) 2003–2024, [CKSource Holding sp. z o.o.](https://cksource.com) All rights reserved.
|
|
6
|
+
|
|
7
|
+
Licensed under the terms of [GNU General Public License Version 2 or later](http://www.gnu.org/licenses/gpl.html).
|
|
8
|
+
|
|
9
|
+
Sources of Intellectual Property Included in CKEditor
|
|
10
|
+
-----------------------------------------------------
|
|
11
|
+
|
|
12
|
+
Where not otherwise indicated, all CKEditor content is authored by CKSource engineers and consists of CKSource-owned intellectual property. In some specific instances, CKEditor will incorporate work done by developers outside of CKSource with their express permission.
|
|
13
|
+
|
|
14
|
+
The following libraries are included in CKEditor under the [MIT license](https://opensource.org/licenses/MIT):
|
|
15
|
+
|
|
16
|
+
* Lodash - Copyright (c) JS Foundation and other contributors https://js.foundation/. Based on Underscore.js, copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors http://underscorejs.org/.
|
|
17
|
+
|
|
18
|
+
Trademarks
|
|
19
|
+
----------
|
|
20
|
+
|
|
21
|
+
**CKEditor** is a trademark of [CKSource Holding sp. z o.o.](https://cksource.com) All other brand and product names are trademarks, registered trademarks, or service marks of their respective holders.
|
package/README.md
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
CKEditor 5 UI framework
|
|
2
|
+
===========================================
|
|
3
|
+
|
|
4
|
+
[](https://www.npmjs.com/package/@ckeditor/ckeditor5-ui)
|
|
5
|
+
[](https://coveralls.io/github/ckeditor/ckeditor5?branch=master)
|
|
6
|
+
[](https://app.travis-ci.com/github/ckeditor/ckeditor5)
|
|
7
|
+
|
|
8
|
+
This package implements a simple UI framework and CKEditor 5's standard UI library.
|
|
9
|
+
|
|
10
|
+
## Demo
|
|
11
|
+
|
|
12
|
+
Check out the [editor toolbar demo](https://ckeditor.com/docs/ckeditor5/latest/getting-started/setup/toolbar/toolbar.html#demo) and [block toolbar demo](https://ckeditor.com/docs/ckeditor5/latest/getting-started/setup/toolbar.html#block-toolbar#demo) in CKEditor 5 documentation.
|
|
13
|
+
|
|
14
|
+
## Documentation
|
|
15
|
+
|
|
16
|
+
See the [`@ckeditor/ckeditor5-ui` package](https://ckeditor.com/docs/ckeditor5/latest/api/ui.html) page in [CKEditor 5 documentation](https://ckeditor.com/docs/ckeditor5/latest/).
|
|
17
|
+
|
|
18
|
+
## Installation
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
npm install ckeditor5
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## License
|
|
25
|
+
|
|
26
|
+
Licensed under the terms of [GNU General Public License Version 2 or later](http://www.gnu.org/licenses/gpl.html). For full details about the license, please check the `LICENSE.md` file or [https://ckeditor.com/legal/ckeditor-oss-license](https://ckeditor.com/legal/ckeditor-oss-license).
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"plugins": [
|
|
3
|
+
{
|
|
4
|
+
"name": "Block toolbar",
|
|
5
|
+
"className": "BlockToolbar",
|
|
6
|
+
"description": "Provides an additional configurable toolbar on the left-hand side of the content area, next to the selected block element. It comes in handy when the main editor toolbar cannot be accessed.",
|
|
7
|
+
"docs": "getting-started/setup/toolbar.html#block-toolbar",
|
|
8
|
+
"path": "src/toolbar/block/blocktoolbar.js"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"name": "Accessibility help",
|
|
12
|
+
"className": "AccessibilityHelp",
|
|
13
|
+
"description": "Displays all editor keyboard shortcuts in a dialog window.",
|
|
14
|
+
"docs": "features/accessibility.html",
|
|
15
|
+
"path": "src/editorui/accessibilityhelp/accessibilityhelp.js",
|
|
16
|
+
"uiComponents": [
|
|
17
|
+
{
|
|
18
|
+
"type": "Button",
|
|
19
|
+
"name": "accessibilityHelp",
|
|
20
|
+
"iconPath": "theme/icons/accessibility.svg"
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
}
|
|
24
|
+
]
|
|
25
|
+
}
|
|
@@ -0,0 +1,113 @@
|
|
|
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
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
8
|
+
*/
|
|
9
|
+
import type { Editor } from '@ckeditor/ckeditor5-core';
|
|
10
|
+
import type { Locale } from '@ckeditor/ckeditor5-utils';
|
|
11
|
+
import type ViewCollection from './viewcollection.js';
|
|
12
|
+
import View from './view.js';
|
|
13
|
+
import '../theme/components/arialiveannouncer/arialiveannouncer.css';
|
|
14
|
+
/**
|
|
15
|
+
* The politeness level of an `aria-live` announcement.
|
|
16
|
+
*
|
|
17
|
+
* Available keys are:
|
|
18
|
+
* * `AriaLiveAnnouncerPoliteness.POLITE`,
|
|
19
|
+
* * `AriaLiveAnnouncerPoliteness.ASSERTIVE`
|
|
20
|
+
*
|
|
21
|
+
* [Learn more](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Live_Regions#Politeness_levels).
|
|
22
|
+
*/
|
|
23
|
+
export declare const AriaLiveAnnouncerPoliteness: {
|
|
24
|
+
readonly POLITE: "polite";
|
|
25
|
+
readonly ASSERTIVE: "assertive";
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* An accessibility helper that manages all ARIA live regions associated with an editor instance. ARIA live regions announce changes
|
|
29
|
+
* to the state of the editor features.
|
|
30
|
+
*
|
|
31
|
+
* These announcements are consumed and propagated by screen readers and give users a better understanding of the current
|
|
32
|
+
* state of the editor.
|
|
33
|
+
*
|
|
34
|
+
* To announce a state change to an editor use the {@link #announce} method:
|
|
35
|
+
*
|
|
36
|
+
* ```ts
|
|
37
|
+
* editor.ui.ariaLiveAnnouncer.announce( 'Text of an announcement.' );
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
40
|
+
export default class AriaLiveAnnouncer {
|
|
41
|
+
/**
|
|
42
|
+
* The editor instance.
|
|
43
|
+
*/
|
|
44
|
+
readonly editor: Editor;
|
|
45
|
+
/**
|
|
46
|
+
* The view that aggregates all `aria-live` regions.
|
|
47
|
+
*/
|
|
48
|
+
view?: AriaLiveAnnouncerView;
|
|
49
|
+
/**
|
|
50
|
+
* @inheritDoc
|
|
51
|
+
*/
|
|
52
|
+
constructor(editor: Editor);
|
|
53
|
+
/**
|
|
54
|
+
* Sets an announcement text to an aria region that is then announced by a screen reader to the user.
|
|
55
|
+
*
|
|
56
|
+
* If the aria region of a specified politeness does not exist, it will be created and can be re-used later.
|
|
57
|
+
*
|
|
58
|
+
* The default announcement politeness level is `'polite'`.
|
|
59
|
+
*
|
|
60
|
+
* ```ts
|
|
61
|
+
* // Most screen readers will queue announcements from multiple aria-live regions and read them out in the order they were emitted.
|
|
62
|
+
* editor.ui.ariaLiveAnnouncer.announce( 'Image uploaded.' );
|
|
63
|
+
* editor.ui.ariaLiveAnnouncer.announce( 'Connection lost. Reconnecting.' );
|
|
64
|
+
* ```
|
|
65
|
+
*/
|
|
66
|
+
announce(announcement: string, attributes?: AriaLiveAnnouncerPolitenessValue | AriaLiveAnnounceConfig): void;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* The view that aggregates all `aria-live` regions.
|
|
70
|
+
*/
|
|
71
|
+
export declare class AriaLiveAnnouncerView extends View {
|
|
72
|
+
/**
|
|
73
|
+
* A collection of all views that represent individual `aria-live` regions.
|
|
74
|
+
*/
|
|
75
|
+
readonly regionViews: ViewCollection<AriaLiveAnnouncerRegionView>;
|
|
76
|
+
constructor(locale: Locale);
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* The view that represents a single `aria-live`.
|
|
80
|
+
*/
|
|
81
|
+
export declare class AriaLiveAnnouncerRegionView extends View {
|
|
82
|
+
/**
|
|
83
|
+
* Current politeness level of the region.
|
|
84
|
+
*/
|
|
85
|
+
readonly politeness: AriaLiveAnnouncerPolitenessValue;
|
|
86
|
+
/**
|
|
87
|
+
* DOM converter used to sanitize unsafe HTML passed to {@link #announce} method.
|
|
88
|
+
*/
|
|
89
|
+
private _domConverter;
|
|
90
|
+
/**
|
|
91
|
+
* Interval used to remove additions. It prevents accumulation of added nodes in region.
|
|
92
|
+
*/
|
|
93
|
+
private _pruneAnnouncementsInterval;
|
|
94
|
+
constructor(editor: Editor, politeness: AriaLiveAnnouncerPolitenessValue);
|
|
95
|
+
/**
|
|
96
|
+
* Appends new announcement to region.
|
|
97
|
+
*/
|
|
98
|
+
announce({ announcement, isUnsafeHTML }: AriaLiveAppendContentAttributes): void;
|
|
99
|
+
/**
|
|
100
|
+
* Return current announcements list HTML element.
|
|
101
|
+
*/
|
|
102
|
+
private get _listElement();
|
|
103
|
+
}
|
|
104
|
+
type AriaLiveAnnouncerPolitenessValue = typeof AriaLiveAnnouncerPoliteness[keyof typeof AriaLiveAnnouncerPoliteness];
|
|
105
|
+
type AriaLiveAppendContentAttributes = {
|
|
106
|
+
announcement: string;
|
|
107
|
+
isUnsafeHTML?: boolean;
|
|
108
|
+
};
|
|
109
|
+
type AriaLiveAnnounceConfig = {
|
|
110
|
+
politeness: AriaLiveAnnouncerPolitenessValue;
|
|
111
|
+
isUnsafeHTML?: boolean;
|
|
112
|
+
};
|
|
113
|
+
export {};
|
|
@@ -0,0 +1,92 @@
|
|
|
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
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
8
|
+
*/
|
|
9
|
+
import type { BalloonToolbar, BlockToolbar, ContextualBalloon, Notification, Dialog, AccessibilityHelp } from './index.js';
|
|
10
|
+
import type { ToolbarConfig } from '@ckeditor/ckeditor5-core';
|
|
11
|
+
declare module '@ckeditor/ckeditor5-core' {
|
|
12
|
+
interface EditorConfig {
|
|
13
|
+
/**
|
|
14
|
+
* Contextual toolbar configuration. Used by the {@link module:ui/toolbar/balloon/balloontoolbar~BalloonToolbar}
|
|
15
|
+
* feature.
|
|
16
|
+
*
|
|
17
|
+
* ## Configuring toolbar items
|
|
18
|
+
*
|
|
19
|
+
* ```ts
|
|
20
|
+
* const config = {
|
|
21
|
+
* balloonToolbar: [ 'bold', 'italic', 'undo', 'redo' ]
|
|
22
|
+
* };
|
|
23
|
+
* ```
|
|
24
|
+
*
|
|
25
|
+
* You can also use `'|'` to create a separator between groups of items:
|
|
26
|
+
*
|
|
27
|
+
* ```ts
|
|
28
|
+
* const config = {
|
|
29
|
+
* balloonToolbar: [ 'bold', 'italic', '|', 'undo', 'redo' ]
|
|
30
|
+
* };
|
|
31
|
+
* ```
|
|
32
|
+
*
|
|
33
|
+
* Read also about configuring the main editor toolbar in {@link module:core/editor/editorconfig~EditorConfig#toolbar}.
|
|
34
|
+
*
|
|
35
|
+
* ## Configuring items grouping
|
|
36
|
+
*
|
|
37
|
+
* You can prevent automatic items grouping by setting the `shouldNotGroupWhenFull` option:
|
|
38
|
+
*
|
|
39
|
+
* ```ts
|
|
40
|
+
* const config = {
|
|
41
|
+
* balloonToolbar: {
|
|
42
|
+
* items: [ 'bold', 'italic', 'undo', 'redo' ],
|
|
43
|
+
* shouldNotGroupWhenFull: true
|
|
44
|
+
* },
|
|
45
|
+
* };
|
|
46
|
+
* ```
|
|
47
|
+
*/
|
|
48
|
+
balloonToolbar?: ToolbarConfig;
|
|
49
|
+
/**
|
|
50
|
+
* The block toolbar configuration. Used by the {@link module:ui/toolbar/block/blocktoolbar~BlockToolbar}
|
|
51
|
+
* feature.
|
|
52
|
+
*
|
|
53
|
+
* ```ts
|
|
54
|
+
* const config = {
|
|
55
|
+
* blockToolbar: [ 'paragraph', 'heading1', 'heading2', 'bulletedList', 'numberedList' ]
|
|
56
|
+
* };
|
|
57
|
+
* ```
|
|
58
|
+
*
|
|
59
|
+
* You can also use `'|'` to create a separator between groups of items:
|
|
60
|
+
*
|
|
61
|
+
* ```ts
|
|
62
|
+
* const config = {
|
|
63
|
+
* blockToolbar: [ 'paragraph', 'heading1', 'heading2', '|', 'bulletedList', 'numberedList' ]
|
|
64
|
+
* };
|
|
65
|
+
* ```
|
|
66
|
+
*
|
|
67
|
+
* ## Configuring items grouping
|
|
68
|
+
*
|
|
69
|
+
* You can prevent automatic items grouping by setting the `shouldNotGroupWhenFull` option:
|
|
70
|
+
*
|
|
71
|
+
* ```ts
|
|
72
|
+
* const config = {
|
|
73
|
+
* blockToolbar: {
|
|
74
|
+
* items: [ 'paragraph', 'heading1', 'heading2', '|', 'bulletedList', 'numberedList' ],
|
|
75
|
+
* shouldNotGroupWhenFull: true
|
|
76
|
+
* },
|
|
77
|
+
* };
|
|
78
|
+
* ```
|
|
79
|
+
*
|
|
80
|
+
* Read more about configuring the main editor toolbar in {@link module:core/editor/editorconfig~EditorConfig#toolbar}.
|
|
81
|
+
*/
|
|
82
|
+
blockToolbar?: ToolbarConfig;
|
|
83
|
+
}
|
|
84
|
+
interface PluginsMap {
|
|
85
|
+
[BalloonToolbar.pluginName]: BalloonToolbar;
|
|
86
|
+
[BlockToolbar.pluginName]: BlockToolbar;
|
|
87
|
+
[ContextualBalloon.pluginName]: ContextualBalloon;
|
|
88
|
+
[Dialog.pluginName]: Dialog;
|
|
89
|
+
[Notification.pluginName]: Notification;
|
|
90
|
+
[AccessibilityHelp.pluginName]: AccessibilityHelp;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
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
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* @module ui/autocomplete/autocompleteview
|
|
11
|
+
*/
|
|
12
|
+
import { type PositioningFunction, type Locale } from '@ckeditor/ckeditor5-utils';
|
|
13
|
+
import SearchTextView, { type SearchTextViewConfig } from '../search/text/searchtextview.js';
|
|
14
|
+
import type SearchResultsView from '../search/searchresultsview.js';
|
|
15
|
+
import type InputBase from '../input/inputbase.js';
|
|
16
|
+
import '../../theme/components/autocomplete/autocomplete.css';
|
|
17
|
+
/**
|
|
18
|
+
* The autocomplete component's view class. It extends the {@link module:ui/search/text/searchtextview~SearchTextView} class
|
|
19
|
+
* with a floating {@link #resultsView} that shows up when the user starts typing and hides when they blur
|
|
20
|
+
* the component.
|
|
21
|
+
*/
|
|
22
|
+
export default class AutocompleteView<TQueryFieldView extends InputBase<HTMLInputElement | HTMLTextAreaElement>> extends SearchTextView<TQueryFieldView> {
|
|
23
|
+
/**
|
|
24
|
+
* The configuration of the autocomplete view.
|
|
25
|
+
*/
|
|
26
|
+
protected _config: AutocompleteViewConfig<TQueryFieldView>;
|
|
27
|
+
resultsView: AutocompleteResultsView;
|
|
28
|
+
/**
|
|
29
|
+
* @inheritDoc
|
|
30
|
+
*/
|
|
31
|
+
constructor(locale: Locale, config: AutocompleteViewConfig<TQueryFieldView>);
|
|
32
|
+
/**
|
|
33
|
+
* Updates the position of the results view on demand.
|
|
34
|
+
*/
|
|
35
|
+
private _updateResultsViewWidthAndPosition;
|
|
36
|
+
/**
|
|
37
|
+
* Updates the visibility of the results view on demand.
|
|
38
|
+
*/
|
|
39
|
+
private _updateResultsVisibility;
|
|
40
|
+
/**
|
|
41
|
+
* Positions for the autocomplete results view. Two positions are defined by default:
|
|
42
|
+
* * `s` - below the search field,
|
|
43
|
+
* * `n` - above the search field.
|
|
44
|
+
*/
|
|
45
|
+
static defaultResultsPositions: Array<PositioningFunction>;
|
|
46
|
+
/**
|
|
47
|
+
* A function used to calculate the optimal position for the dropdown panel.
|
|
48
|
+
*/
|
|
49
|
+
private static _getOptimalPosition;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* An interface describing additional properties of the floating search results view used by the autocomplete plugin.
|
|
53
|
+
*/
|
|
54
|
+
export interface AutocompleteResultsView extends SearchResultsView {
|
|
55
|
+
/**
|
|
56
|
+
* Controls the visibility of the results view.
|
|
57
|
+
*
|
|
58
|
+
* @observable
|
|
59
|
+
*/
|
|
60
|
+
isVisible: boolean;
|
|
61
|
+
/**
|
|
62
|
+
* Controls the position (CSS class suffix) of the results view.
|
|
63
|
+
*
|
|
64
|
+
* @internal
|
|
65
|
+
*/
|
|
66
|
+
_position?: string;
|
|
67
|
+
/**
|
|
68
|
+
* The observable property determining the CSS width of the results view.
|
|
69
|
+
*
|
|
70
|
+
* @internal
|
|
71
|
+
*/
|
|
72
|
+
_width: number;
|
|
73
|
+
}
|
|
74
|
+
export interface AutocompleteViewConfig<TConfigInputCreator extends InputBase<HTMLInputElement | HTMLTextAreaElement>> extends SearchTextViewConfig<TConfigInputCreator> {
|
|
75
|
+
/**
|
|
76
|
+
* When set `true`, the query view will be reset when the autocomplete view loses focus.
|
|
77
|
+
*/
|
|
78
|
+
resetOnBlur?: boolean;
|
|
79
|
+
/**
|
|
80
|
+
* Minimum number of characters that need to be typed before the search is performed.
|
|
81
|
+
*
|
|
82
|
+
* @default 0
|
|
83
|
+
*/
|
|
84
|
+
queryMinChars?: number;
|
|
85
|
+
}
|
|
@@ -0,0 +1,133 @@
|
|
|
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
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* @module ui/badge/badge
|
|
11
|
+
*/
|
|
12
|
+
import type { Editor } from '@ckeditor/ckeditor5-core';
|
|
13
|
+
import type View from '../view.js';
|
|
14
|
+
declare const Badge_base: {
|
|
15
|
+
new (): import("@ckeditor/ckeditor5-utils").DomEmitter;
|
|
16
|
+
prototype: import("@ckeditor/ckeditor5-utils").DomEmitter;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* A helper that enables the badge feature in the editor and renders a custom view next to the bottom of the editable element
|
|
20
|
+
* (editor root, source editing area, etc.) when the editor is focused.
|
|
21
|
+
*
|
|
22
|
+
* @private
|
|
23
|
+
*/
|
|
24
|
+
export default abstract class Badge extends /* #__PURE__ */ Badge_base {
|
|
25
|
+
/**
|
|
26
|
+
* Editor instance the helper was created for.
|
|
27
|
+
*/
|
|
28
|
+
protected readonly editor: Editor;
|
|
29
|
+
/**
|
|
30
|
+
* A reference to the balloon panel hosting and positioning the badge content.
|
|
31
|
+
*/
|
|
32
|
+
private _balloonView;
|
|
33
|
+
/**
|
|
34
|
+
* A throttled version of the {@link #_showBalloon} method meant for frequent use to avoid performance loss.
|
|
35
|
+
*/
|
|
36
|
+
private _showBalloonThrottled;
|
|
37
|
+
/**
|
|
38
|
+
* A reference to the last editable element (root, source editing area, etc.) focused by the user.
|
|
39
|
+
* Since the focus can move to other focusable elements in the UI, this reference allows positioning the balloon over the
|
|
40
|
+
* right element whether the user is typing or using the UI.
|
|
41
|
+
*/
|
|
42
|
+
private _lastFocusedEditableElement;
|
|
43
|
+
/**
|
|
44
|
+
* An additional CSS class added to the `BalloonView`.
|
|
45
|
+
*/
|
|
46
|
+
private readonly _balloonClass;
|
|
47
|
+
/**
|
|
48
|
+
* Creates a badge for a given editor. The feature is initialized on Editor#ready
|
|
49
|
+
* event.
|
|
50
|
+
*/
|
|
51
|
+
protected constructor(editor: Editor, options?: {
|
|
52
|
+
balloonClass?: string;
|
|
53
|
+
});
|
|
54
|
+
/**
|
|
55
|
+
* Destroys the badge along with its view.
|
|
56
|
+
*/
|
|
57
|
+
destroy(): void;
|
|
58
|
+
/**
|
|
59
|
+
* Enables badge label once the editor (ui) is ready.
|
|
60
|
+
*/
|
|
61
|
+
protected _handleEditorReady(): void;
|
|
62
|
+
/**
|
|
63
|
+
* Returns normalized configuration for the badge.
|
|
64
|
+
*/
|
|
65
|
+
protected _getNormalizedConfig(): BadgeConfig;
|
|
66
|
+
/**
|
|
67
|
+
* Creates the badge content.
|
|
68
|
+
*/
|
|
69
|
+
protected abstract _createBadgeContent(): View<HTMLElement>;
|
|
70
|
+
/**
|
|
71
|
+
* Enables the badge feature.
|
|
72
|
+
*/
|
|
73
|
+
protected abstract _isEnabled(): boolean;
|
|
74
|
+
/**
|
|
75
|
+
* Attempts to display the balloon with the badge view.
|
|
76
|
+
*/
|
|
77
|
+
private _showBalloon;
|
|
78
|
+
/**
|
|
79
|
+
* Hides the badge balloon if already visible.
|
|
80
|
+
*/
|
|
81
|
+
private _hideBalloon;
|
|
82
|
+
/**
|
|
83
|
+
* Creates an instance of the {@link module:ui/panel/balloon/balloonpanelview~BalloonPanelView balloon panel}
|
|
84
|
+
* with the badge view inside ready for positioning.
|
|
85
|
+
*/
|
|
86
|
+
private _createBalloonView;
|
|
87
|
+
/**
|
|
88
|
+
* Returns the options for attaching the balloon to the focused editable element.
|
|
89
|
+
*/
|
|
90
|
+
private _getBalloonAttachOptions;
|
|
91
|
+
/**
|
|
92
|
+
* Updates the {@link #_lastFocusedEditableElement} based on the state of the global focus tracker.
|
|
93
|
+
*/
|
|
94
|
+
private _updateLastFocusedEditableElement;
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* The badge configuration options.
|
|
98
|
+
**/
|
|
99
|
+
export interface BadgeConfig {
|
|
100
|
+
/**
|
|
101
|
+
* The position of the badge.
|
|
102
|
+
*
|
|
103
|
+
* * When `'inside'`, the badge will be displayed within the boundaries of the editing area.
|
|
104
|
+
* * When `'border'`, the basge will be displayed over the bottom border of the editing area.
|
|
105
|
+
*
|
|
106
|
+
* @default 'border'
|
|
107
|
+
*/
|
|
108
|
+
position: 'inside' | 'border';
|
|
109
|
+
/**
|
|
110
|
+
* Allows choosing the side of the editing area where the badge will be displayed.
|
|
111
|
+
*
|
|
112
|
+
* **Note:** If {@link module:core/editor/editorconfig~EditorConfig#language `config.language`} is set to an RTL (right-to-left)
|
|
113
|
+
* language, the side switches to `'left'` by default.
|
|
114
|
+
*
|
|
115
|
+
* @default 'right'
|
|
116
|
+
*/
|
|
117
|
+
side: 'left' | 'right';
|
|
118
|
+
/**
|
|
119
|
+
* The vertical distance the badge can be moved away from its default position.
|
|
120
|
+
*
|
|
121
|
+
* **Note:** If `position` is `'border'`, the offset is measured from the (vertical) center of the badge.
|
|
122
|
+
*
|
|
123
|
+
* @default 5
|
|
124
|
+
*/
|
|
125
|
+
verticalOffset: number;
|
|
126
|
+
/**
|
|
127
|
+
* The horizontal distance between the side of the editing root and the nearest side of the badge.
|
|
128
|
+
*
|
|
129
|
+
* @default 5
|
|
130
|
+
*/
|
|
131
|
+
horizontalOffset: number;
|
|
132
|
+
}
|
|
133
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
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
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* @module ui/bindings/addkeyboardhandlingforgrid
|
|
11
|
+
*/
|
|
12
|
+
import type { FocusTracker, KeystrokeHandler } from '@ckeditor/ckeditor5-utils';
|
|
13
|
+
import type ViewCollection from '../viewcollection.js';
|
|
14
|
+
/**
|
|
15
|
+
* A helper that adds a keyboard navigation support (arrow up/down/left/right) for grids.
|
|
16
|
+
*
|
|
17
|
+
* @param options Configuration options.
|
|
18
|
+
* @param options.keystrokeHandler Keystroke handler to register navigation with arrow keys.
|
|
19
|
+
* @param options.focusTracker A focus tracker for grid elements.
|
|
20
|
+
* @param options.gridItems A collection of grid items.
|
|
21
|
+
* @param options.numberOfColumns Number of columns in the grid. Can be specified as a function that returns
|
|
22
|
+
* the number (e.g. for responsive grids).
|
|
23
|
+
* @param options.uiLanguageDirection String of ui language direction.
|
|
24
|
+
*/
|
|
25
|
+
export default function addKeyboardHandlingForGrid({ keystrokeHandler, focusTracker, gridItems, numberOfColumns, uiLanguageDirection }: {
|
|
26
|
+
keystrokeHandler: KeystrokeHandler;
|
|
27
|
+
focusTracker: FocusTracker;
|
|
28
|
+
gridItems: ViewCollection;
|
|
29
|
+
numberOfColumns: number | (() => number);
|
|
30
|
+
uiLanguageDirection?: string;
|
|
31
|
+
}): void;
|
|
@@ -0,0 +1,34 @@
|
|
|
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
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* @module ui/bindings/clickoutsidehandler
|
|
11
|
+
*/
|
|
12
|
+
import type { CallbackOptions, DomEmitter } from '@ckeditor/ckeditor5-utils';
|
|
13
|
+
/**
|
|
14
|
+
* Handles clicking **outside** of a specified set of elements, then fires an action.
|
|
15
|
+
*
|
|
16
|
+
* **Note**: Actually, the action is executed upon `mousedown`, not `click`. It prevents
|
|
17
|
+
* certain issues when the user keeps holding the mouse button and the UI cannot react
|
|
18
|
+
* properly.
|
|
19
|
+
*
|
|
20
|
+
* @param options Configuration options.
|
|
21
|
+
* @param options.emitter The emitter to which this behavior should be added.
|
|
22
|
+
* @param options.activator Function returning a `Boolean`, to determine whether the handler is active.
|
|
23
|
+
* @param options.contextElements Array of HTML elements or a callback returning an array of HTML elements
|
|
24
|
+
* that determine the scope of the handler. Clicking any of them or their descendants will **not** fire the callback.
|
|
25
|
+
* @param options.callback An action executed by the handler.
|
|
26
|
+
* @param options.listenerOptions Additional options for the listener (like priority).
|
|
27
|
+
*/
|
|
28
|
+
export default function clickOutsideHandler({ emitter, activator, callback, contextElements, listenerOptions }: {
|
|
29
|
+
emitter: DomEmitter;
|
|
30
|
+
activator: () => boolean;
|
|
31
|
+
contextElements: Array<Element> | (() => Array<Element>);
|
|
32
|
+
callback: () => void;
|
|
33
|
+
listenerOptions?: CallbackOptions;
|
|
34
|
+
}): void;
|
|
@@ -0,0 +1,44 @@
|
|
|
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
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* @module ui/bindings/csstransitiondisablermixin
|
|
11
|
+
*/
|
|
12
|
+
import type { Constructor, Mixed } from '@ckeditor/ckeditor5-utils';
|
|
13
|
+
import type View from '../view.js';
|
|
14
|
+
/**
|
|
15
|
+
* A mixin that brings the possibility to temporarily disable CSS transitions using
|
|
16
|
+
* {@link module:ui/view~View} methods. It is helpful when, for instance, the transitions should not happen
|
|
17
|
+
* when the view is first displayed but they should work normal in other cases.
|
|
18
|
+
*
|
|
19
|
+
* The methods to control the CSS transitions are:
|
|
20
|
+
* * `disableCssTransitions()` – Adds the `.ck-transitions-disabled` class to the
|
|
21
|
+
* {@link module:ui/view~View#element view element}.
|
|
22
|
+
* * `enableCssTransitions()` – Removes the `.ck-transitions-disabled` class from the
|
|
23
|
+
* {@link module:ui/view~View#element view element}.
|
|
24
|
+
*
|
|
25
|
+
* The usage comes down to:
|
|
26
|
+
*
|
|
27
|
+
* ```ts
|
|
28
|
+
* const MyViewWithCssTransitionDisabler = CssTransitionDisablerMixin( MyView );
|
|
29
|
+
* const view = new MyViewWithCssTransitionDisabler();
|
|
30
|
+
*
|
|
31
|
+
* // ...
|
|
32
|
+
*
|
|
33
|
+
* view.disableCssTransitions();
|
|
34
|
+
* view.show();
|
|
35
|
+
* view.enableCssTransitions();
|
|
36
|
+
* ```
|
|
37
|
+
*
|
|
38
|
+
* @param view View instance that should get this functionality.
|
|
39
|
+
*/
|
|
40
|
+
export default function CssTransitionDisablerMixin<Base extends Constructor<View>>(view: Base): Mixed<Base, ViewWithCssTransitionDisabler>;
|
|
41
|
+
export type ViewWithCssTransitionDisabler = View & {
|
|
42
|
+
disableCssTransitions(): void;
|
|
43
|
+
enableCssTransitions(): void;
|
|
44
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
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
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* @module ui/bindings/draggableviewmixin
|
|
11
|
+
*/
|
|
12
|
+
import type View from '../view.js';
|
|
13
|
+
import { type Constructor, type Mixed } from '@ckeditor/ckeditor5-utils';
|
|
14
|
+
/**
|
|
15
|
+
* A mixin that brings the possibility to observe dragging of the view element.
|
|
16
|
+
* The view has to implement the {@link ~DraggableView} interface to use it:
|
|
17
|
+
*
|
|
18
|
+
* ```js
|
|
19
|
+
* export default class MyDraggableView extends DraggableViewMixin( View ) implements DraggableView {
|
|
20
|
+
* // ...
|
|
21
|
+
* }
|
|
22
|
+
* ```
|
|
23
|
+
*
|
|
24
|
+
* Creating a class extending it attaches a set of mouse and touch listeners allowing to observe dragging of the view element:
|
|
25
|
+
* * `mousedown` and `touchstart` on the view element - starting the dragging.
|
|
26
|
+
* * `mousemove` and `touchmove` on the document - updating the view coordinates.
|
|
27
|
+
* * `mouseup` and `touchend` on the document - stopping the dragging.
|
|
28
|
+
*
|
|
29
|
+
* The mixin itself does not provide a visual feedback (that is, the dragged element does not change its position) -
|
|
30
|
+
* it is up to the developer to implement it.
|
|
31
|
+
*/
|
|
32
|
+
export default function DraggableViewMixin<Base extends Constructor<View>>(view: Base): Mixed<Base, DraggableView>;
|
|
33
|
+
/**
|
|
34
|
+
* An interface that should be implemented by views that want to be draggable.
|
|
35
|
+
*/
|
|
36
|
+
export interface DraggableView extends View {
|
|
37
|
+
get dragHandleElement(): HTMLElement | null;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* An event data object for the {@link ~DraggableView} `drag` event. Fired when the view is dragged.
|
|
41
|
+
*/
|
|
42
|
+
export type DraggableViewDragEvent = {
|
|
43
|
+
name: 'drag';
|
|
44
|
+
args: [
|
|
45
|
+
{
|
|
46
|
+
deltaX: number;
|
|
47
|
+
deltaY: number;
|
|
48
|
+
}
|
|
49
|
+
];
|
|
50
|
+
};
|