@ckeditor/ckeditor5-ui 44.1.0 → 44.2.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +1 -1
- package/dist/index-content.css +2 -2
- package/dist/index-editor.css +2 -2
- package/dist/index.css +51 -51
- package/dist/index.css.map +1 -1
- package/dist/index.js +63 -25
- package/dist/index.js.map +1 -1
- package/dist/translations/af.d.ts +2 -2
- package/dist/translations/af.js +2 -2
- package/dist/translations/af.umd.js +2 -2
- package/dist/translations/ar.d.ts +2 -2
- package/dist/translations/ar.js +2 -2
- package/dist/translations/ar.umd.js +2 -2
- package/dist/translations/ast.d.ts +2 -2
- package/dist/translations/ast.js +2 -2
- package/dist/translations/ast.umd.js +2 -2
- package/dist/translations/az.d.ts +2 -2
- package/dist/translations/az.js +2 -2
- package/dist/translations/az.umd.js +2 -2
- package/dist/translations/bg.d.ts +2 -2
- package/dist/translations/bg.js +2 -2
- package/dist/translations/bg.umd.js +2 -2
- package/dist/translations/bn.d.ts +2 -2
- package/dist/translations/bn.js +2 -2
- package/dist/translations/bn.umd.js +2 -2
- package/dist/translations/bs.d.ts +2 -2
- package/dist/translations/bs.js +2 -2
- package/dist/translations/bs.umd.js +2 -2
- package/dist/translations/ca.d.ts +2 -2
- package/dist/translations/ca.js +2 -2
- package/dist/translations/ca.umd.js +2 -2
- package/dist/translations/cs.d.ts +2 -2
- package/dist/translations/cs.js +2 -2
- package/dist/translations/cs.umd.js +2 -2
- package/dist/translations/da.d.ts +2 -2
- package/dist/translations/da.js +2 -2
- package/dist/translations/da.umd.js +2 -2
- package/dist/translations/de-ch.d.ts +2 -2
- package/dist/translations/de-ch.js +2 -2
- package/dist/translations/de-ch.umd.js +2 -2
- package/dist/translations/de.d.ts +2 -2
- package/dist/translations/de.js +2 -2
- package/dist/translations/de.umd.js +2 -2
- package/dist/translations/el.d.ts +2 -2
- package/dist/translations/el.js +2 -2
- package/dist/translations/el.umd.js +2 -2
- package/dist/translations/en-au.d.ts +2 -2
- package/dist/translations/en-au.js +2 -2
- package/dist/translations/en-au.umd.js +2 -2
- package/dist/translations/en-gb.d.ts +2 -2
- package/dist/translations/en-gb.js +2 -2
- package/dist/translations/en-gb.umd.js +2 -2
- package/dist/translations/en.d.ts +2 -2
- package/dist/translations/en.js +2 -2
- package/dist/translations/en.umd.js +2 -2
- package/dist/translations/eo.d.ts +2 -2
- package/dist/translations/eo.js +2 -2
- package/dist/translations/eo.umd.js +2 -2
- package/dist/translations/es-co.d.ts +2 -2
- package/dist/translations/es-co.js +2 -2
- package/dist/translations/es-co.umd.js +2 -2
- package/dist/translations/es.d.ts +2 -2
- package/dist/translations/es.js +2 -2
- package/dist/translations/es.umd.js +2 -2
- package/dist/translations/et.d.ts +2 -2
- package/dist/translations/et.js +2 -2
- package/dist/translations/et.umd.js +2 -2
- package/dist/translations/eu.d.ts +2 -2
- package/dist/translations/eu.js +2 -2
- package/dist/translations/eu.umd.js +2 -2
- package/dist/translations/fa.d.ts +2 -2
- package/dist/translations/fa.js +2 -2
- package/dist/translations/fa.umd.js +2 -2
- package/dist/translations/fi.d.ts +2 -2
- package/dist/translations/fi.js +2 -2
- package/dist/translations/fi.umd.js +2 -2
- package/dist/translations/fr.d.ts +2 -2
- package/dist/translations/fr.js +2 -2
- package/dist/translations/fr.umd.js +2 -2
- package/dist/translations/gl.d.ts +2 -2
- package/dist/translations/gl.js +2 -2
- package/dist/translations/gl.umd.js +2 -2
- package/dist/translations/gu.d.ts +2 -2
- package/dist/translations/gu.js +2 -2
- package/dist/translations/gu.umd.js +2 -2
- package/dist/translations/he.d.ts +2 -2
- package/dist/translations/he.js +2 -2
- package/dist/translations/he.umd.js +2 -2
- package/dist/translations/hi.d.ts +2 -2
- package/dist/translations/hi.js +2 -2
- package/dist/translations/hi.umd.js +2 -2
- package/dist/translations/hr.d.ts +2 -2
- package/dist/translations/hr.js +2 -2
- package/dist/translations/hr.umd.js +2 -2
- package/dist/translations/hu.d.ts +2 -2
- package/dist/translations/hu.js +2 -2
- package/dist/translations/hu.umd.js +2 -2
- package/dist/translations/hy.d.ts +2 -2
- package/dist/translations/hy.js +2 -2
- package/dist/translations/hy.umd.js +2 -2
- package/dist/translations/id.d.ts +2 -2
- package/dist/translations/id.js +2 -2
- package/dist/translations/id.umd.js +2 -2
- package/dist/translations/it.d.ts +2 -2
- package/dist/translations/it.js +2 -2
- package/dist/translations/it.umd.js +2 -2
- package/dist/translations/ja.d.ts +2 -2
- package/dist/translations/ja.js +2 -2
- package/dist/translations/ja.umd.js +2 -2
- package/dist/translations/jv.d.ts +2 -2
- package/dist/translations/jv.js +2 -2
- package/dist/translations/jv.umd.js +2 -2
- package/dist/translations/kk.d.ts +2 -2
- package/dist/translations/kk.js +2 -2
- package/dist/translations/kk.umd.js +2 -2
- package/dist/translations/km.d.ts +2 -2
- package/dist/translations/km.js +2 -2
- package/dist/translations/km.umd.js +2 -2
- package/dist/translations/kn.d.ts +2 -2
- package/dist/translations/kn.js +2 -2
- package/dist/translations/kn.umd.js +2 -2
- package/dist/translations/ko.d.ts +2 -2
- package/dist/translations/ko.js +2 -2
- package/dist/translations/ko.umd.js +2 -2
- package/dist/translations/ku.d.ts +2 -2
- package/dist/translations/ku.js +2 -2
- package/dist/translations/ku.umd.js +2 -2
- package/dist/translations/lt.d.ts +2 -2
- package/dist/translations/lt.js +2 -2
- package/dist/translations/lt.umd.js +2 -2
- package/dist/translations/lv.d.ts +2 -2
- package/dist/translations/lv.js +2 -2
- package/dist/translations/lv.umd.js +2 -2
- package/dist/translations/ms.d.ts +2 -2
- package/dist/translations/ms.js +2 -2
- package/dist/translations/ms.umd.js +2 -2
- package/dist/translations/nb.d.ts +2 -2
- package/dist/translations/nb.js +2 -2
- package/dist/translations/nb.umd.js +2 -2
- package/dist/translations/ne.d.ts +2 -2
- package/dist/translations/ne.js +2 -2
- package/dist/translations/ne.umd.js +2 -2
- package/dist/translations/nl.d.ts +2 -2
- package/dist/translations/nl.js +2 -2
- package/dist/translations/nl.umd.js +2 -2
- package/dist/translations/no.d.ts +2 -2
- package/dist/translations/no.js +2 -2
- package/dist/translations/no.umd.js +2 -2
- package/dist/translations/oc.d.ts +2 -2
- package/dist/translations/oc.js +2 -2
- package/dist/translations/oc.umd.js +2 -2
- package/dist/translations/pl.d.ts +2 -2
- package/dist/translations/pl.js +2 -2
- package/dist/translations/pl.umd.js +2 -2
- package/dist/translations/pt-br.d.ts +2 -2
- package/dist/translations/pt-br.js +2 -2
- package/dist/translations/pt-br.umd.js +2 -2
- package/dist/translations/pt.d.ts +2 -2
- package/dist/translations/pt.js +2 -2
- package/dist/translations/pt.umd.js +2 -2
- package/dist/translations/ro.d.ts +2 -2
- package/dist/translations/ro.js +2 -2
- package/dist/translations/ro.umd.js +2 -2
- package/dist/translations/ru.d.ts +2 -2
- package/dist/translations/ru.js +2 -2
- package/dist/translations/ru.umd.js +2 -2
- package/dist/translations/si.d.ts +2 -2
- package/dist/translations/si.js +2 -2
- package/dist/translations/si.umd.js +2 -2
- package/dist/translations/sk.d.ts +2 -2
- package/dist/translations/sk.js +2 -2
- package/dist/translations/sk.umd.js +2 -2
- package/dist/translations/sl.d.ts +2 -2
- package/dist/translations/sl.js +2 -2
- package/dist/translations/sl.umd.js +2 -2
- package/dist/translations/sq.d.ts +2 -2
- package/dist/translations/sq.js +2 -2
- package/dist/translations/sq.umd.js +2 -2
- package/dist/translations/sr-latn.d.ts +2 -2
- package/dist/translations/sr-latn.js +2 -2
- package/dist/translations/sr-latn.umd.js +2 -2
- package/dist/translations/sr.d.ts +2 -2
- package/dist/translations/sr.js +2 -2
- package/dist/translations/sr.umd.js +2 -2
- package/dist/translations/sv.d.ts +2 -2
- package/dist/translations/sv.js +2 -2
- package/dist/translations/sv.umd.js +2 -2
- package/dist/translations/th.d.ts +2 -2
- package/dist/translations/th.js +2 -2
- package/dist/translations/th.umd.js +2 -2
- package/dist/translations/ti.d.ts +2 -2
- package/dist/translations/ti.js +2 -2
- package/dist/translations/ti.umd.js +2 -2
- package/dist/translations/tk.d.ts +2 -2
- package/dist/translations/tk.js +2 -2
- package/dist/translations/tk.umd.js +2 -2
- package/dist/translations/tr.d.ts +2 -2
- package/dist/translations/tr.js +2 -2
- package/dist/translations/tr.umd.js +2 -2
- package/dist/translations/tt.d.ts +2 -2
- package/dist/translations/tt.js +2 -2
- package/dist/translations/tt.umd.js +2 -2
- package/dist/translations/ug.d.ts +2 -2
- package/dist/translations/ug.js +2 -2
- package/dist/translations/ug.umd.js +2 -2
- package/dist/translations/uk.d.ts +2 -2
- package/dist/translations/uk.js +2 -2
- package/dist/translations/uk.umd.js +2 -2
- package/dist/translations/ur.d.ts +2 -2
- package/dist/translations/ur.js +2 -2
- package/dist/translations/ur.umd.js +2 -2
- package/dist/translations/uz.d.ts +2 -2
- package/dist/translations/uz.js +2 -2
- package/dist/translations/uz.umd.js +2 -2
- package/dist/translations/vi.d.ts +2 -2
- package/dist/translations/vi.js +2 -2
- package/dist/translations/vi.umd.js +2 -2
- package/dist/translations/zh-cn.d.ts +2 -2
- package/dist/translations/zh-cn.js +2 -2
- package/dist/translations/zh-cn.umd.js +2 -2
- package/dist/translations/zh.d.ts +2 -2
- package/dist/translations/zh.js +2 -2
- package/dist/translations/zh.umd.js +2 -2
- package/lang/translations/af.po +1 -1
- package/lang/translations/ar.po +1 -1
- package/lang/translations/ast.po +1 -1
- package/lang/translations/az.po +1 -1
- package/lang/translations/bg.po +1 -1
- package/lang/translations/bn.po +1 -1
- package/lang/translations/bs.po +1 -1
- package/lang/translations/ca.po +1 -1
- package/lang/translations/cs.po +1 -1
- package/lang/translations/da.po +1 -1
- package/lang/translations/de-ch.po +1 -1
- package/lang/translations/de.po +1 -1
- package/lang/translations/el.po +1 -1
- package/lang/translations/en-au.po +1 -1
- package/lang/translations/en-gb.po +1 -1
- package/lang/translations/en.po +1 -1
- package/lang/translations/eo.po +1 -1
- package/lang/translations/es-co.po +1 -1
- package/lang/translations/es.po +1 -1
- package/lang/translations/et.po +1 -1
- package/lang/translations/eu.po +1 -1
- package/lang/translations/fa.po +1 -1
- package/lang/translations/fi.po +1 -1
- package/lang/translations/fr.po +1 -1
- package/lang/translations/gl.po +1 -1
- package/lang/translations/gu.po +1 -1
- package/lang/translations/he.po +1 -1
- package/lang/translations/hi.po +1 -1
- package/lang/translations/hr.po +1 -1
- package/lang/translations/hu.po +1 -1
- package/lang/translations/hy.po +1 -1
- package/lang/translations/id.po +1 -1
- package/lang/translations/it.po +1 -1
- package/lang/translations/ja.po +1 -1
- package/lang/translations/jv.po +1 -1
- package/lang/translations/kk.po +1 -1
- package/lang/translations/km.po +1 -1
- package/lang/translations/kn.po +1 -1
- package/lang/translations/ko.po +1 -1
- package/lang/translations/ku.po +1 -1
- package/lang/translations/lt.po +1 -1
- package/lang/translations/lv.po +1 -1
- package/lang/translations/ms.po +1 -1
- package/lang/translations/nb.po +1 -1
- package/lang/translations/ne.po +1 -1
- package/lang/translations/nl.po +1 -1
- package/lang/translations/no.po +1 -1
- package/lang/translations/oc.po +1 -1
- package/lang/translations/pl.po +1 -1
- package/lang/translations/pt-br.po +1 -1
- package/lang/translations/pt.po +1 -1
- package/lang/translations/ro.po +1 -1
- package/lang/translations/ru.po +1 -1
- package/lang/translations/si.po +1 -1
- package/lang/translations/sk.po +1 -1
- package/lang/translations/sl.po +1 -1
- package/lang/translations/sq.po +1 -1
- package/lang/translations/sr-latn.po +1 -1
- package/lang/translations/sr.po +1 -1
- package/lang/translations/sv.po +1 -1
- package/lang/translations/th.po +1 -1
- package/lang/translations/ti.po +1 -1
- package/lang/translations/tk.po +1 -1
- package/lang/translations/tr.po +1 -1
- package/lang/translations/tt.po +1 -1
- package/lang/translations/ug.po +1 -1
- package/lang/translations/uk.po +1 -1
- package/lang/translations/ur.po +1 -1
- package/lang/translations/uz.po +1 -1
- package/lang/translations/vi.po +1 -1
- package/lang/translations/zh-cn.po +1 -1
- package/lang/translations/zh.po +1 -1
- package/package.json +28 -5
- package/src/arialiveannouncer.d.ts +1 -1
- package/src/arialiveannouncer.js +1 -1
- package/src/augmentation.d.ts +1 -1
- package/src/augmentation.js +1 -1
- package/src/autocomplete/autocompleteview.d.ts +1 -1
- package/src/autocomplete/autocompleteview.js +1 -1
- package/src/badge/badge.d.ts +1 -1
- package/src/badge/badge.js +1 -1
- package/src/bindings/addkeyboardhandlingforgrid.d.ts +1 -1
- 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 +1 -1
- package/src/bindings/csstransitiondisablermixin.js +1 -1
- package/src/bindings/draggableviewmixin.d.ts +1 -1
- package/src/bindings/draggableviewmixin.js +1 -1
- package/src/bindings/injectcsstransitiondisabler.d.ts +1 -1
- package/src/bindings/injectcsstransitiondisabler.js +1 -1
- package/src/bindings/preventdefault.d.ts +1 -1
- package/src/bindings/preventdefault.js +1 -1
- package/src/bindings/submithandler.d.ts +1 -1
- 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 +1 -1
- package/src/button/buttonlabel.js +1 -1
- package/src/button/buttonlabelview.d.ts +1 -1
- package/src/button/buttonlabelview.js +1 -1
- package/src/button/buttonview.d.ts +1 -1
- package/src/button/buttonview.js +1 -1
- package/src/button/filedialogbuttonview.d.ts +1 -1
- package/src/button/filedialogbuttonview.js +1 -1
- package/src/button/listitembuttonview.d.ts +1 -1
- package/src/button/listitembuttonview.js +1 -1
- package/src/button/switchbuttonview.d.ts +1 -1
- package/src/button/switchbuttonview.js +1 -1
- package/src/collapsible/collapsibleview.d.ts +1 -1
- package/src/collapsible/collapsibleview.js +1 -1
- package/src/colorgrid/colorgridview.d.ts +1 -1
- package/src/colorgrid/colorgridview.js +1 -1
- package/src/colorgrid/colortileview.d.ts +1 -1
- package/src/colorgrid/colortileview.js +1 -1
- package/src/colorgrid/utils.d.ts +1 -1
- package/src/colorgrid/utils.js +1 -1
- package/src/colorpicker/colorpickerview.d.ts +1 -1
- package/src/colorpicker/colorpickerview.js +1 -1
- package/src/colorpicker/utils.d.ts +1 -1
- package/src/colorpicker/utils.js +1 -1
- package/src/colorselector/colorgridsfragmentview.d.ts +1 -1
- package/src/colorselector/colorgridsfragmentview.js +1 -1
- package/src/colorselector/colorpickerfragmentview.d.ts +1 -1
- package/src/colorselector/colorpickerfragmentview.js +1 -1
- package/src/colorselector/colorselectorview.d.ts +1 -1
- package/src/colorselector/colorselectorview.js +1 -1
- package/src/colorselector/documentcolorcollection.d.ts +1 -1
- package/src/colorselector/documentcolorcollection.js +1 -1
- package/src/componentfactory.d.ts +1 -1
- package/src/componentfactory.js +1 -1
- package/src/dialog/dialog.d.ts +8 -1
- package/src/dialog/dialog.js +7 -4
- package/src/dialog/dialogactionsview.d.ts +1 -1
- package/src/dialog/dialogactionsview.js +1 -1
- package/src/dialog/dialogcontentview.d.ts +1 -1
- package/src/dialog/dialogcontentview.js +1 -1
- package/src/dialog/dialogview.d.ts +4 -3
- package/src/dialog/dialogview.js +4 -3
- package/src/dropdown/button/dropdownbutton.d.ts +1 -1
- package/src/dropdown/button/dropdownbutton.js +1 -1
- package/src/dropdown/button/dropdownbuttonview.d.ts +1 -1
- package/src/dropdown/button/dropdownbuttonview.js +1 -1
- package/src/dropdown/button/splitbuttonview.d.ts +1 -1
- package/src/dropdown/button/splitbuttonview.js +1 -1
- package/src/dropdown/dropdownpanelfocusable.d.ts +1 -1
- package/src/dropdown/dropdownpanelfocusable.js +1 -1
- package/src/dropdown/dropdownpanelview.d.ts +1 -1
- package/src/dropdown/dropdownpanelview.js +1 -1
- package/src/dropdown/dropdownview.d.ts +1 -1
- package/src/dropdown/dropdownview.js +1 -1
- package/src/dropdown/menu/dropdownmenubehaviors.d.ts +1 -1
- package/src/dropdown/menu/dropdownmenubehaviors.js +1 -1
- package/src/dropdown/menu/dropdownmenubuttonview.d.ts +1 -1
- package/src/dropdown/menu/dropdownmenubuttonview.js +1 -1
- package/src/dropdown/menu/dropdownmenulistitembuttonview.d.ts +1 -1
- package/src/dropdown/menu/dropdownmenulistitembuttonview.js +1 -1
- package/src/dropdown/menu/dropdownmenulistitemview.d.ts +1 -1
- package/src/dropdown/menu/dropdownmenulistitemview.js +1 -1
- package/src/dropdown/menu/dropdownmenulistview.d.ts +1 -1
- package/src/dropdown/menu/dropdownmenulistview.js +1 -1
- package/src/dropdown/menu/dropdownmenunestedmenupanelview.d.ts +1 -1
- package/src/dropdown/menu/dropdownmenunestedmenupanelview.js +1 -1
- package/src/dropdown/menu/dropdownmenunestedmenuview.d.ts +1 -1
- package/src/dropdown/menu/dropdownmenunestedmenuview.js +1 -1
- package/src/dropdown/menu/dropdownmenurootlistview.d.ts +1 -1
- package/src/dropdown/menu/dropdownmenurootlistview.js +1 -1
- package/src/dropdown/menu/utils.d.ts +1 -1
- package/src/dropdown/menu/utils.js +1 -1
- package/src/dropdown/utils.d.ts +1 -1
- package/src/dropdown/utils.js +1 -1
- package/src/editableui/editableuiview.d.ts +1 -1
- package/src/editableui/editableuiview.js +1 -1
- package/src/editableui/inline/inlineeditableuiview.d.ts +1 -1
- package/src/editableui/inline/inlineeditableuiview.js +1 -1
- package/src/editorui/accessibilityhelp/accessibilityhelp.d.ts +1 -1
- package/src/editorui/accessibilityhelp/accessibilityhelp.js +1 -1
- package/src/editorui/accessibilityhelp/accessibilityhelpcontentview.d.ts +1 -1
- package/src/editorui/accessibilityhelp/accessibilityhelpcontentview.js +1 -1
- package/src/editorui/bodycollection.d.ts +1 -1
- package/src/editorui/bodycollection.js +1 -1
- package/src/editorui/boxed/boxededitoruiview.d.ts +1 -1
- package/src/editorui/boxed/boxededitoruiview.js +1 -1
- package/src/editorui/editorui.d.ts +1 -1
- package/src/editorui/editorui.js +1 -1
- package/src/editorui/editoruiview.d.ts +1 -1
- package/src/editorui/editoruiview.js +1 -1
- package/src/editorui/evaluationbadge.d.ts +1 -1
- package/src/editorui/evaluationbadge.js +1 -1
- package/src/editorui/poweredby.d.ts +1 -1
- package/src/editorui/poweredby.js +1 -1
- package/src/focuscycler.d.ts +1 -1
- package/src/focuscycler.js +1 -1
- package/src/formheader/formheaderview.d.ts +1 -1
- package/src/formheader/formheaderview.js +1 -1
- package/src/highlightedtext/buttonlabelwithhighlightview.d.ts +1 -1
- package/src/highlightedtext/buttonlabelwithhighlightview.js +1 -1
- package/src/highlightedtext/highlightedtextview.d.ts +1 -1
- package/src/highlightedtext/highlightedtextview.js +1 -1
- package/src/highlightedtext/labelwithhighlightview.d.ts +1 -1
- package/src/highlightedtext/labelwithhighlightview.js +1 -1
- package/src/icon/iconview.d.ts +1 -1
- package/src/icon/iconview.js +1 -1
- package/src/iframe/iframeview.d.ts +1 -1
- package/src/iframe/iframeview.js +1 -1
- package/src/index.d.ts +2 -1
- package/src/index.js +2 -1
- package/src/input/inputbase.d.ts +1 -1
- package/src/input/inputbase.js +1 -1
- package/src/input/inputview.d.ts +1 -1
- package/src/input/inputview.js +1 -1
- package/src/inputnumber/inputnumberview.d.ts +1 -1
- package/src/inputnumber/inputnumberview.js +1 -1
- package/src/inputtext/inputtextview.d.ts +1 -1
- package/src/inputtext/inputtextview.js +1 -1
- package/src/label/labelview.d.ts +1 -1
- package/src/label/labelview.js +1 -1
- package/src/labeledfield/labeledfieldview.d.ts +1 -1
- package/src/labeledfield/labeledfieldview.js +1 -1
- package/src/labeledfield/utils.d.ts +1 -1
- package/src/labeledfield/utils.js +1 -1
- package/src/labeledinput/labeledinputview.d.ts +1 -1
- package/src/labeledinput/labeledinputview.js +1 -1
- package/src/list/listitemgroupview.d.ts +1 -1
- package/src/list/listitemgroupview.js +1 -1
- package/src/list/listitemview.d.ts +1 -1
- package/src/list/listitemview.js +1 -1
- package/src/list/listseparatorview.d.ts +1 -1
- package/src/list/listseparatorview.js +1 -1
- package/src/list/listview.d.ts +1 -1
- package/src/list/listview.js +1 -1
- package/src/menubar/menubarmenubuttonview.d.ts +1 -1
- package/src/menubar/menubarmenubuttonview.js +1 -1
- package/src/menubar/menubarmenulistitembuttonview.d.ts +1 -1
- package/src/menubar/menubarmenulistitembuttonview.js +1 -1
- package/src/menubar/menubarmenulistitemfiledialogbuttonview.d.ts +1 -1
- package/src/menubar/menubarmenulistitemfiledialogbuttonview.js +1 -1
- package/src/menubar/menubarmenulistitemview.d.ts +1 -1
- package/src/menubar/menubarmenulistitemview.js +1 -1
- package/src/menubar/menubarmenulistview.d.ts +1 -1
- package/src/menubar/menubarmenulistview.js +1 -1
- package/src/menubar/menubarmenupanelview.d.ts +1 -1
- package/src/menubar/menubarmenupanelview.js +1 -1
- package/src/menubar/menubarmenuview.d.ts +1 -1
- package/src/menubar/menubarmenuview.js +1 -1
- package/src/menubar/menubarview.d.ts +1 -1
- package/src/menubar/menubarview.js +1 -1
- package/src/menubar/utils.d.ts +9 -2
- package/src/menubar/utils.js +17 -3
- 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 +1 -1
- package/src/panel/balloon/balloonpanelview.js +1 -1
- package/src/panel/balloon/contextualballoon.d.ts +1 -1
- package/src/panel/balloon/contextualballoon.js +1 -1
- package/src/panel/sticky/stickypanelview.d.ts +1 -1
- package/src/panel/sticky/stickypanelview.js +1 -1
- package/src/search/filteredview.d.ts +1 -1
- package/src/search/filteredview.js +1 -1
- package/src/search/filtergroupanditemnames.d.ts +1 -1
- package/src/search/filtergroupanditemnames.js +1 -1
- package/src/search/searchinfoview.d.ts +1 -1
- package/src/search/searchinfoview.js +1 -1
- package/src/search/searchresultsview.d.ts +1 -1
- package/src/search/searchresultsview.js +1 -1
- package/src/search/text/searchtextqueryview.d.ts +1 -1
- package/src/search/text/searchtextqueryview.js +1 -1
- package/src/search/text/searchtextview.d.ts +1 -1
- package/src/search/text/searchtextview.js +1 -1
- package/src/spinner/spinnerview.d.ts +1 -1
- package/src/spinner/spinnerview.js +1 -1
- package/src/template.d.ts +1 -1
- package/src/template.js +1 -1
- package/src/textarea/textareaview.d.ts +1 -1
- package/src/textarea/textareaview.js +1 -1
- package/src/toolbar/balloon/balloontoolbar.d.ts +1 -1
- package/src/toolbar/balloon/balloontoolbar.js +1 -1
- package/src/toolbar/block/blockbuttonview.d.ts +1 -1
- package/src/toolbar/block/blockbuttonview.js +1 -1
- package/src/toolbar/block/blocktoolbar.d.ts +1 -1
- package/src/toolbar/block/blocktoolbar.js +1 -1
- package/src/toolbar/normalizetoolbarconfig.d.ts +1 -1
- package/src/toolbar/normalizetoolbarconfig.js +1 -1
- package/src/toolbar/toolbarlinebreakview.d.ts +1 -1
- package/src/toolbar/toolbarlinebreakview.js +1 -1
- package/src/toolbar/toolbarseparatorview.d.ts +1 -1
- package/src/toolbar/toolbarseparatorview.js +1 -1
- package/src/toolbar/toolbarview.d.ts +8 -1
- package/src/toolbar/toolbarview.js +3 -2
- package/src/tooltipmanager.d.ts +10 -2
- package/src/tooltipmanager.js +26 -4
- package/src/view.d.ts +1 -1
- package/src/view.js +1 -1
- package/src/viewcollection.d.ts +1 -1
- package/src/viewcollection.js +1 -1
- package/theme/components/arialiveannouncer/arialiveannouncer.css +1 -1
- package/theme/components/autocomplete/autocomplete.css +1 -1
- package/theme/components/button/button.css +1 -1
- package/theme/components/button/listitembutton.css +1 -1
- package/theme/components/button/switchbutton.css +1 -1
- package/theme/components/collapsible/collapsible.css +1 -1
- 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 +1 -1
- package/theme/components/dialog/dialogactions.css +1 -1
- package/theme/components/dropdown/dropdown.css +1 -1
- package/theme/components/dropdown/listdropdown.css +1 -1
- package/theme/components/dropdown/menu/dropdownmenu.css +1 -1
- package/theme/components/dropdown/menu/dropdownmenubutton.css +1 -1
- package/theme/components/dropdown/menu/dropdownmenulistitem.css +1 -1
- package/theme/components/dropdown/menu/dropdownmenulistitembutton.css +1 -1
- package/theme/components/dropdown/menu/dropdownmenupanel.css +1 -1
- package/theme/components/dropdown/splitbutton.css +1 -1
- package/theme/components/dropdown/toolbardropdown.css +1 -1
- package/theme/components/editorui/accessibilityhelp.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/menubar/menubar.css +1 -1
- package/theme/components/menubar/menubarmenu.css +1 -1
- package/theme/components/menubar/menubarmenubutton.css +1 -1
- package/theme/components/menubar/menubarmenulistitem.css +1 -1
- package/theme/components/menubar/menubarmenulistitembutton.css +1 -1
- package/theme/components/menubar/menubarmenupanel.css +1 -1
- package/theme/components/panel/balloonpanel.css +1 -1
- package/theme/components/panel/balloonrotator.css +1 -1
- package/theme/components/panel/fakepanel.css +1 -1
- package/theme/components/panel/stickypanel.css +1 -1
- 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 +1 -1
- package/theme/globals/_evaluationbadge.css +1 -1
- package/theme/globals/_hidden.css +1 -1
- package/theme/globals/_poweredby.css +1 -1
- package/theme/globals/_transition.css +1 -1
- package/theme/globals/_zindex.css +1 -1
- package/theme/globals/globals.css +1 -1
- package/theme/mixins/_dir.css +1 -1
- package/theme/mixins/_mediacolors.css +1 -1
- package/theme/mixins/_rwd.css +1 -1
- package/theme/mixins/_unselectable.css +1 -1
- package/dist/arialiveannouncer.d.ts +0 -113
- package/dist/augmentation.d.ts +0 -92
- package/dist/autocomplete/autocompleteview.d.ts +0 -85
- package/dist/badge/badge.d.ts +0 -133
- package/dist/bindings/addkeyboardhandlingforgrid.d.ts +0 -31
- package/dist/bindings/clickoutsidehandler.d.ts +0 -34
- package/dist/bindings/csstransitiondisablermixin.d.ts +0 -44
- package/dist/bindings/draggableviewmixin.d.ts +0 -50
- package/dist/bindings/injectcsstransitiondisabler.d.ts +0 -63
- package/dist/bindings/preventdefault.d.ts +0 -37
- package/dist/bindings/submithandler.d.ts +0 -61
- package/dist/button/button.d.ts +0 -179
- package/dist/button/buttonlabel.d.ts +0 -38
- package/dist/button/buttonlabelview.d.ts +0 -35
- package/dist/button/buttonview.d.ts +0 -201
- package/dist/button/filedialogbuttonview.d.ts +0 -111
- package/dist/button/listitembuttonview.d.ts +0 -82
- package/dist/button/switchbuttonview.d.ts +0 -49
- package/dist/collapsible/collapsibleview.d.ts +0 -74
- package/dist/colorgrid/colorgridview.d.ts +0 -136
- package/dist/colorgrid/colortileview.d.ts +0 -32
- package/dist/colorgrid/utils.d.ts +0 -51
- package/dist/colorpicker/colorpickerview.d.ts +0 -177
- package/dist/colorpicker/utils.d.ts +0 -52
- package/dist/colorselector/colorgridsfragmentview.d.ts +0 -199
- package/dist/colorselector/colorpickerfragmentview.d.ts +0 -137
- package/dist/colorselector/colorselectorview.d.ts +0 -246
- package/dist/colorselector/documentcolorcollection.d.ts +0 -74
- package/dist/componentfactory.d.ts +0 -85
- package/dist/dialog/dialog.d.ts +0 -293
- package/dist/dialog/dialogactionsview.d.ts +0 -73
- package/dist/dialog/dialogcontentview.d.ts +0 -31
- package/dist/dialog/dialogview.d.ts +0 -262
- package/dist/dropdown/button/dropdownbutton.d.ts +0 -29
- package/dist/dropdown/button/dropdownbuttonview.d.ts +0 -52
- package/dist/dropdown/button/splitbuttonview.d.ts +0 -166
- package/dist/dropdown/dropdownpanelfocusable.d.ts +0 -25
- package/dist/dropdown/dropdownpanelview.d.ts +0 -66
- package/dist/dropdown/dropdownview.d.ts +0 -338
- package/dist/dropdown/menu/dropdownmenubehaviors.d.ts +0 -48
- package/dist/dropdown/menu/dropdownmenubuttonview.d.ts +0 -40
- package/dist/dropdown/menu/dropdownmenulistitembuttonview.d.ts +0 -21
- package/dist/dropdown/menu/dropdownmenulistitemview.d.ts +0 -26
- package/dist/dropdown/menu/dropdownmenulistview.d.ts +0 -28
- package/dist/dropdown/menu/dropdownmenunestedmenupanelview.d.ts +0 -38
- package/dist/dropdown/menu/dropdownmenunestedmenuview.d.ts +0 -135
- package/dist/dropdown/menu/dropdownmenurootlistview.d.ts +0 -144
- package/dist/dropdown/menu/utils.d.ts +0 -128
- package/dist/dropdown/utils.d.ts +0 -297
- package/dist/editableui/editableuiview.d.ts +0 -76
- package/dist/editableui/inline/inlineeditableuiview.d.ts +0 -48
- package/dist/editorui/accessibilityhelp/accessibilityhelp.d.ts +0 -59
- package/dist/editorui/accessibilityhelp/accessibilityhelpcontentview.d.ts +0 -39
- package/dist/editorui/bodycollection.d.ts +0 -94
- package/dist/editorui/boxed/boxededitoruiview.d.ts +0 -44
- package/dist/editorui/editorui.d.ts +0 -358
- package/dist/editorui/editoruiview.d.ts +0 -48
- package/dist/editorui/evaluationbadge.d.ts +0 -37
- package/dist/editorui/poweredby.d.ts +0 -38
- package/dist/focuscycler.d.ts +0 -295
- package/dist/formheader/formheaderview.d.ts +0 -62
- package/dist/highlightedtext/buttonlabelwithhighlightview.d.ts +0 -34
- package/dist/highlightedtext/highlightedtextview.d.ts +0 -42
- package/dist/highlightedtext/labelwithhighlightview.d.ts +0 -30
- package/dist/icon/iconview.d.ts +0 -92
- package/dist/iframe/iframeview.d.ts +0 -54
- package/dist/index.d.ts +0 -97
- package/dist/input/inputbase.d.ts +0 -123
- package/dist/input/inputview.d.ts +0 -40
- package/dist/inputnumber/inputnumberview.d.ts +0 -53
- package/dist/inputtext/inputtextview.d.ts +0 -22
- package/dist/label/labelview.d.ts +0 -40
- package/dist/labeledfield/labeledfieldview.d.ts +0 -191
- package/dist/labeledfield/utils.d.ts +0 -127
- package/dist/labeledinput/labeledinputview.d.ts +0 -129
- package/dist/list/listitemgroupview.d.ts +0 -63
- package/dist/list/listitemview.d.ts +0 -40
- package/dist/list/listseparatorview.d.ts +0 -22
- package/dist/list/listview.d.ts +0 -128
- package/dist/menubar/menubarmenubuttonview.d.ts +0 -39
- package/dist/menubar/menubarmenulistitembuttonview.d.ts +0 -25
- package/dist/menubar/menubarmenulistitemfiledialogbuttonview.d.ts +0 -27
- package/dist/menubar/menubarmenulistitemview.d.ts +0 -29
- package/dist/menubar/menubarmenulistview.d.ts +0 -33
- package/dist/menubar/menubarmenupanelview.d.ts +0 -57
- package/dist/menubar/menubarmenuview.d.ts +0 -118
- package/dist/menubar/menubarview.d.ts +0 -177
- package/dist/menubar/utils.d.ts +0 -452
- package/dist/model.d.ts +0 -26
- package/dist/notification/notification.d.ts +0 -219
- package/dist/panel/balloon/balloonpanelview.d.ts +0 -701
- package/dist/panel/balloon/contextualballoon.d.ts +0 -313
- package/dist/panel/sticky/stickypanelview.d.ts +0 -160
- package/dist/search/filteredview.d.ts +0 -35
- package/dist/search/filtergroupanditemnames.d.ts +0 -19
- package/dist/search/searchinfoview.d.ts +0 -49
- package/dist/search/searchresultsview.d.ts +0 -58
- package/dist/search/text/searchtextqueryview.d.ts +0 -80
- package/dist/search/text/searchtextview.d.ts +0 -223
- package/dist/spinner/spinnerview.d.ts +0 -29
- package/dist/template.d.ts +0 -946
- package/dist/textarea/textareaview.d.ts +0 -108
- package/dist/toolbar/balloon/balloontoolbar.d.ts +0 -130
- package/dist/toolbar/block/blockbuttonview.d.ts +0 -39
- package/dist/toolbar/block/blocktoolbar.d.ts +0 -175
- package/dist/toolbar/normalizetoolbarconfig.d.ts +0 -44
- package/dist/toolbar/toolbarlinebreakview.d.ts +0 -22
- package/dist/toolbar/toolbarseparatorview.d.ts +0 -22
- package/dist/toolbar/toolbarview.d.ts +0 -271
- package/dist/tooltipmanager.d.ts +0 -192
- package/dist/view.d.ts +0 -426
- package/dist/viewcollection.d.ts +0 -143
|
@@ -1,358 +0,0 @@
|
|
|
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-licensing-options
|
|
8
|
-
*/
|
|
9
|
-
/**
|
|
10
|
-
* @module ui/editorui/editorui
|
|
11
|
-
*/
|
|
12
|
-
import ComponentFactory from '../componentfactory.js';
|
|
13
|
-
import TooltipManager from '../tooltipmanager.js';
|
|
14
|
-
import PoweredBy from './poweredby.js';
|
|
15
|
-
import EvaluationBadge from './evaluationbadge.js';
|
|
16
|
-
import AriaLiveAnnouncer from '../arialiveannouncer.js';
|
|
17
|
-
import type EditorUIView from './editoruiview.js';
|
|
18
|
-
import type ToolbarView from '../toolbar/toolbarview.js';
|
|
19
|
-
import { FocusTracker } from '@ckeditor/ckeditor5-utils';
|
|
20
|
-
import type { Editor } from '@ckeditor/ckeditor5-core';
|
|
21
|
-
import type { default as MenuBarView, MenuBarConfigAddedGroup, MenuBarConfigAddedItem, MenuBarConfigAddedMenu } from '../menubar/menubarview.js';
|
|
22
|
-
declare const EditorUI_base: {
|
|
23
|
-
new (): import("@ckeditor/ckeditor5-utils").Observable;
|
|
24
|
-
prototype: import("@ckeditor/ckeditor5-utils").Observable;
|
|
25
|
-
};
|
|
26
|
-
/**
|
|
27
|
-
* A class providing the minimal interface that is required to successfully bootstrap any editor UI.
|
|
28
|
-
*/
|
|
29
|
-
export default abstract class EditorUI extends /* #__PURE__ */ EditorUI_base {
|
|
30
|
-
/**
|
|
31
|
-
* The editor that the UI belongs to.
|
|
32
|
-
*/
|
|
33
|
-
readonly editor: Editor;
|
|
34
|
-
/**
|
|
35
|
-
* An instance of the {@link module:ui/componentfactory~ComponentFactory}, a registry used by plugins
|
|
36
|
-
* to register factories of specific UI components.
|
|
37
|
-
*/
|
|
38
|
-
readonly componentFactory: ComponentFactory;
|
|
39
|
-
/**
|
|
40
|
-
* Stores the information about the editor UI focus and propagates it so various plugins and components
|
|
41
|
-
* are unified as a focus group.
|
|
42
|
-
*/
|
|
43
|
-
readonly focusTracker: FocusTracker;
|
|
44
|
-
/**
|
|
45
|
-
* Manages the tooltips displayed on mouseover and focus across the UI.
|
|
46
|
-
*/
|
|
47
|
-
readonly tooltipManager: TooltipManager;
|
|
48
|
-
/**
|
|
49
|
-
* A helper that enables the "powered by" feature in the editor and renders a link to the project's webpage.
|
|
50
|
-
*/
|
|
51
|
-
readonly poweredBy: PoweredBy;
|
|
52
|
-
/**
|
|
53
|
-
* A helper that enables the "evaluation badge" feature in the editor.
|
|
54
|
-
*/
|
|
55
|
-
readonly evaluationBadge: EvaluationBadge;
|
|
56
|
-
/**
|
|
57
|
-
* A helper that manages the content of an `aria-live` regions used by editor features to announce status changes
|
|
58
|
-
* to screen readers.
|
|
59
|
-
*/
|
|
60
|
-
readonly ariaLiveAnnouncer: AriaLiveAnnouncer;
|
|
61
|
-
/**
|
|
62
|
-
* Indicates the UI is ready. Set `true` after {@link #event:ready} event is fired.
|
|
63
|
-
*
|
|
64
|
-
* @readonly
|
|
65
|
-
* @default false
|
|
66
|
-
*/
|
|
67
|
-
isReady: boolean;
|
|
68
|
-
abstract get view(): EditorUIView;
|
|
69
|
-
/**
|
|
70
|
-
* Stores viewport offsets from every direction.
|
|
71
|
-
*
|
|
72
|
-
* Viewport offset can be used to constrain balloons or other UI elements into an element smaller than the viewport.
|
|
73
|
-
* This can be useful if there are any other absolutely positioned elements that may interfere with editor UI.
|
|
74
|
-
*
|
|
75
|
-
* Example `editor.ui.viewportOffset` returns:
|
|
76
|
-
*
|
|
77
|
-
* ```js
|
|
78
|
-
* {
|
|
79
|
-
* top: 50,
|
|
80
|
-
* right: 50,
|
|
81
|
-
* bottom: 50,
|
|
82
|
-
* left: 50
|
|
83
|
-
* }
|
|
84
|
-
* ```
|
|
85
|
-
*
|
|
86
|
-
* This property can be overriden after editor already being initialized:
|
|
87
|
-
*
|
|
88
|
-
* ```js
|
|
89
|
-
* editor.ui.viewportOffset = {
|
|
90
|
-
* top: 100,
|
|
91
|
-
* right: 0,
|
|
92
|
-
* bottom: 0,
|
|
93
|
-
* left: 0
|
|
94
|
-
* };
|
|
95
|
-
* ```
|
|
96
|
-
*
|
|
97
|
-
* @observable
|
|
98
|
-
*/
|
|
99
|
-
viewportOffset: {
|
|
100
|
-
left?: number;
|
|
101
|
-
right?: number;
|
|
102
|
-
top?: number;
|
|
103
|
-
bottom?: number;
|
|
104
|
-
};
|
|
105
|
-
/**
|
|
106
|
-
* Stores all editable elements used by the editor instance.
|
|
107
|
-
*/
|
|
108
|
-
private _editableElementsMap;
|
|
109
|
-
/**
|
|
110
|
-
* All available & focusable toolbars.
|
|
111
|
-
*/
|
|
112
|
-
private _focusableToolbarDefinitions;
|
|
113
|
-
/**
|
|
114
|
-
* All additional menu bar items, groups or menus that have their default location defined.
|
|
115
|
-
*/
|
|
116
|
-
private _extraMenuBarElements;
|
|
117
|
-
/**
|
|
118
|
-
* The last focused element to which focus should return on `Esc` press.
|
|
119
|
-
*/
|
|
120
|
-
private _lastFocusedForeignElement;
|
|
121
|
-
/**
|
|
122
|
-
* Creates an instance of the editor UI class.
|
|
123
|
-
*
|
|
124
|
-
* @param editor The editor instance.
|
|
125
|
-
*/
|
|
126
|
-
constructor(editor: Editor);
|
|
127
|
-
/**
|
|
128
|
-
* The main (outermost) DOM element of the editor UI.
|
|
129
|
-
*
|
|
130
|
-
* For example, in {@link module:editor-classic/classiceditor~ClassicEditor} it is a `<div>` which
|
|
131
|
-
* wraps the editable element and the toolbar. In {@link module:editor-inline/inlineeditor~InlineEditor}
|
|
132
|
-
* it is the editable element itself (as there is no other wrapper). However, in
|
|
133
|
-
* {@link module:editor-decoupled/decouplededitor~DecoupledEditor} it is set to `null` because this editor does not
|
|
134
|
-
* come with a single "main" HTML element (its editable element and toolbar are separate).
|
|
135
|
-
*
|
|
136
|
-
* This property can be understood as a shorthand for retrieving the element that a specific editor integration
|
|
137
|
-
* considers to be its main DOM element.
|
|
138
|
-
*/
|
|
139
|
-
get element(): HTMLElement | null;
|
|
140
|
-
/**
|
|
141
|
-
* Fires the {@link module:ui/editorui/editorui~EditorUI#event:update `update`} event.
|
|
142
|
-
*
|
|
143
|
-
* This method should be called when the editor UI (e.g. positions of its balloons) needs to be updated due to
|
|
144
|
-
* some environmental change which CKEditor 5 is not aware of (e.g. resize of a container in which it is used).
|
|
145
|
-
*/
|
|
146
|
-
update(): void;
|
|
147
|
-
/**
|
|
148
|
-
* Destroys the UI.
|
|
149
|
-
*/
|
|
150
|
-
destroy(): void;
|
|
151
|
-
/**
|
|
152
|
-
* Stores the native DOM editable element used by the editor under a unique name.
|
|
153
|
-
*
|
|
154
|
-
* Also, registers the element in the editor to maintain the accessibility of the UI. When the user is editing text in a focusable
|
|
155
|
-
* editable area, they can use the <kbd>Alt</kbd> + <kbd>F10</kbd> keystroke to navigate over editor toolbars. See {@link #addToolbar}.
|
|
156
|
-
*
|
|
157
|
-
* @param rootName The unique name of the editable element.
|
|
158
|
-
* @param domElement The native DOM editable element.
|
|
159
|
-
*/
|
|
160
|
-
setEditableElement(rootName: string, domElement: HTMLElement): void;
|
|
161
|
-
/**
|
|
162
|
-
* Removes the editable from the editor UI. Removes all handlers added by {@link #setEditableElement}.
|
|
163
|
-
*
|
|
164
|
-
* @param rootName The name of the editable element to remove.
|
|
165
|
-
*/
|
|
166
|
-
removeEditableElement(rootName: string): void;
|
|
167
|
-
/**
|
|
168
|
-
* Returns the editable editor element with the given name or null if editable does not exist.
|
|
169
|
-
*
|
|
170
|
-
* @param rootName The editable name.
|
|
171
|
-
*/
|
|
172
|
-
getEditableElement(rootName?: string): HTMLElement | undefined;
|
|
173
|
-
/**
|
|
174
|
-
* Returns array of names of all editor editable elements.
|
|
175
|
-
*/
|
|
176
|
-
getEditableElementsNames(): IterableIterator<string>;
|
|
177
|
-
/**
|
|
178
|
-
* Adds a toolbar to the editor UI. Used primarily to maintain the accessibility of the UI.
|
|
179
|
-
*
|
|
180
|
-
* Focusable toolbars can be accessed (focused) by users by pressing the <kbd>Alt</kbd> + <kbd>F10</kbd> keystroke.
|
|
181
|
-
* Successive keystroke presses navigate over available toolbars.
|
|
182
|
-
*
|
|
183
|
-
* @param toolbarView A instance of the toolbar to be registered.
|
|
184
|
-
*/
|
|
185
|
-
addToolbar(toolbarView: ToolbarView, options?: FocusableToolbarOptions): void;
|
|
186
|
-
/**
|
|
187
|
-
* Registers an extra menu bar element, which could be a single item, a group of items, or a menu containing groups.
|
|
188
|
-
*
|
|
189
|
-
* ```ts
|
|
190
|
-
* // Register a new menu bar item.
|
|
191
|
-
* editor.ui.extendMenuBar( {
|
|
192
|
-
* item: 'menuBar:customFunctionButton',
|
|
193
|
-
* position: 'after:menuBar:bold'
|
|
194
|
-
* } );
|
|
195
|
-
*
|
|
196
|
-
* // Register a new menu bar group.
|
|
197
|
-
* editor.ui.extendMenuBar( {
|
|
198
|
-
* group: {
|
|
199
|
-
* groupId: 'customGroup',
|
|
200
|
-
* items: [
|
|
201
|
-
* 'menuBar:customFunctionButton'
|
|
202
|
-
* ]
|
|
203
|
-
* },
|
|
204
|
-
* position: 'start:help'
|
|
205
|
-
* } );
|
|
206
|
-
*
|
|
207
|
-
* // Register a new menu bar menu.
|
|
208
|
-
* editor.ui.extendMenuBar( {
|
|
209
|
-
* menu: {
|
|
210
|
-
* menuId: 'customMenu',
|
|
211
|
-
* label: 'customMenu',
|
|
212
|
-
* groups: [
|
|
213
|
-
* {
|
|
214
|
-
* groupId: 'customGroup',
|
|
215
|
-
* items: [
|
|
216
|
-
* 'menuBar:customFunctionButton'
|
|
217
|
-
* ]
|
|
218
|
-
* }
|
|
219
|
-
* ]
|
|
220
|
-
* },
|
|
221
|
-
* position: 'after:help'
|
|
222
|
-
* } );
|
|
223
|
-
* ```
|
|
224
|
-
*/
|
|
225
|
-
extendMenuBar(config: MenuBarConfigAddedItem | MenuBarConfigAddedGroup | MenuBarConfigAddedMenu): void;
|
|
226
|
-
/**
|
|
227
|
-
* Stores all editable elements used by the editor instance.
|
|
228
|
-
*
|
|
229
|
-
* @deprecated
|
|
230
|
-
*/
|
|
231
|
-
protected get _editableElements(): unknown;
|
|
232
|
-
/**
|
|
233
|
-
* Initializes menu bar.
|
|
234
|
-
*/
|
|
235
|
-
protected _initMenuBar(menuBarView: MenuBarView): void;
|
|
236
|
-
/**
|
|
237
|
-
* Returns viewport offsets object:
|
|
238
|
-
*
|
|
239
|
-
* ```js
|
|
240
|
-
* {
|
|
241
|
-
* top: Number,
|
|
242
|
-
* right: Number,
|
|
243
|
-
* bottom: Number,
|
|
244
|
-
* left: Number
|
|
245
|
-
* }
|
|
246
|
-
* ```
|
|
247
|
-
*
|
|
248
|
-
* Only top property is currently supported.
|
|
249
|
-
*/
|
|
250
|
-
private _readViewportOffsetFromConfig;
|
|
251
|
-
/**
|
|
252
|
-
* Starts listening for <kbd>Alt</kbd> + <kbd>F10</kbd> and <kbd>Esc</kbd> keystrokes in the context of focusable
|
|
253
|
-
* {@link #setEditableElement editable elements} and {@link #addToolbar toolbars}
|
|
254
|
-
* to allow users navigate across the UI.
|
|
255
|
-
*/
|
|
256
|
-
private _initFocusTracking;
|
|
257
|
-
/**
|
|
258
|
-
* Saves last focused element that doen not belong to editing view to restore focus on `Esc`.
|
|
259
|
-
*/
|
|
260
|
-
private _saveLastFocusedForeignElement;
|
|
261
|
-
/**
|
|
262
|
-
* Returns definitions of toolbars that could potentially be focused, sorted by their importance for the user.
|
|
263
|
-
*
|
|
264
|
-
* Focusable toolbars candidates are either:
|
|
265
|
-
* * already visible,
|
|
266
|
-
* * have `beforeFocus()` set in their {@link module:ui/editorui/editorui~FocusableToolbarDefinition definition} that suggests that
|
|
267
|
-
* they might show up when called. Keep in mind that determining whether a toolbar will show up (and become focusable) is impossible
|
|
268
|
-
* at this stage because it depends on its implementation, that in turn depends on the editing context (selection).
|
|
269
|
-
*
|
|
270
|
-
* **Note**: Contextual toolbars take precedence over regular toolbars.
|
|
271
|
-
*/
|
|
272
|
-
private _getFocusableCandidateToolbarDefinitions;
|
|
273
|
-
/**
|
|
274
|
-
* Returns a definition of the toolbar that is currently visible and focused (one of its children has focus).
|
|
275
|
-
*
|
|
276
|
-
* `null` is returned when no toolbar is currently focused.
|
|
277
|
-
*/
|
|
278
|
-
private _getCurrentFocusedToolbarDefinition;
|
|
279
|
-
/**
|
|
280
|
-
* Focuses a focusable toolbar candidate using its definition.
|
|
281
|
-
*
|
|
282
|
-
* @param candidateToolbarDefinition A definition of the toolbar to focus.
|
|
283
|
-
* @returns `true` when the toolbar candidate was focused. `false` otherwise.
|
|
284
|
-
*/
|
|
285
|
-
private _focusFocusableCandidateToolbar;
|
|
286
|
-
/**
|
|
287
|
-
* Provides an integration between {@link #viewportOffset} and {@link module:utils/dom/scroll~scrollViewportToShowTarget}.
|
|
288
|
-
* It allows the UI-agnostic engine method to consider user-configured viewport offsets specific for the integration.
|
|
289
|
-
*
|
|
290
|
-
* @param evt The `scrollToTheSelection` event info.
|
|
291
|
-
* @param data The payload carried by the `scrollToTheSelection` event.
|
|
292
|
-
*/
|
|
293
|
-
private _handleScrollToTheSelection;
|
|
294
|
-
/**
|
|
295
|
-
* Ensures that the focus tracker is aware of all views' DOM elements in the body collection.
|
|
296
|
-
*/
|
|
297
|
-
private _bindBodyCollectionWithFocusTracker;
|
|
298
|
-
}
|
|
299
|
-
/**
|
|
300
|
-
* Fired when the editor UI is ready.
|
|
301
|
-
*
|
|
302
|
-
* Fired before {@link module:engine/controller/datacontroller~DataController#event:ready}.
|
|
303
|
-
*
|
|
304
|
-
* @eventName ~EditorUI#ready
|
|
305
|
-
*/
|
|
306
|
-
export type EditorUIReadyEvent = {
|
|
307
|
-
name: 'ready';
|
|
308
|
-
args: [];
|
|
309
|
-
};
|
|
310
|
-
/**
|
|
311
|
-
* Fired whenever the UI (all related components) should be refreshed.
|
|
312
|
-
*
|
|
313
|
-
* **Note:**: The event is fired after each {@link module:engine/view/document~Document#event:layoutChanged}.
|
|
314
|
-
* It can also be fired manually via the {@link module:ui/editorui/editorui~EditorUI#update} method.
|
|
315
|
-
*
|
|
316
|
-
* @eventName ~EditorUI#update
|
|
317
|
-
*/
|
|
318
|
-
export type EditorUIUpdateEvent = {
|
|
319
|
-
name: 'update';
|
|
320
|
-
args: [];
|
|
321
|
-
};
|
|
322
|
-
/**
|
|
323
|
-
* A definition of a focusable toolbar. Used by {@link module:ui/editorui/editorui~EditorUI#addToolbar}.
|
|
324
|
-
*/
|
|
325
|
-
export interface FocusableToolbarDefinition {
|
|
326
|
-
/**
|
|
327
|
-
* An instance of a focusable toolbar view.
|
|
328
|
-
*/
|
|
329
|
-
toolbarView: ToolbarView;
|
|
330
|
-
/**
|
|
331
|
-
* Options of a focusable toolbar view:
|
|
332
|
-
*
|
|
333
|
-
* * `isContextual`: Marks the higher priority toolbar. For example when there are 2 visible toolbars,
|
|
334
|
-
* it allows to distinguish which toolbar should be focused first after the `alt+f10` keystroke
|
|
335
|
-
* * `beforeFocus`: A callback executed before the `ToolbarView` gains focus upon the `Alt+F10` keystroke.
|
|
336
|
-
* * `afterBlur`: A callback executed after `ToolbarView` loses focus upon `Esc` keystroke but before
|
|
337
|
-
* the focus goes back to the `origin`.
|
|
338
|
-
*/
|
|
339
|
-
options: FocusableToolbarOptions;
|
|
340
|
-
}
|
|
341
|
-
export interface FocusableToolbarOptions {
|
|
342
|
-
/**
|
|
343
|
-
* Set `true` if the toolbar is attached to the content of the editor. Such toolbar takes
|
|
344
|
-
* a precedence over other toolbars when a user pressed <kbd>Alt</kbd> + <kbd>F10</kbd>.
|
|
345
|
-
*/
|
|
346
|
-
isContextual?: boolean;
|
|
347
|
-
/**
|
|
348
|
-
* Specify a callback executed before the toolbar instance DOM element gains focus
|
|
349
|
-
* upon the <kbd>Alt</kbd> + <kbd>F10</kbd> keystroke.
|
|
350
|
-
*/
|
|
351
|
-
beforeFocus?: () => void;
|
|
352
|
-
/**
|
|
353
|
-
* Specify a callback executed after the toolbar instance DOM element loses focus upon
|
|
354
|
-
* <kbd>Esc</kbd> keystroke but before the focus goes back to the {@link ~EditorUI#setEditableElement editable element}.
|
|
355
|
-
*/
|
|
356
|
-
afterBlur?: () => void;
|
|
357
|
-
}
|
|
358
|
-
export {};
|
|
@@ -1,48 +0,0 @@
|
|
|
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-licensing-options
|
|
8
|
-
*/
|
|
9
|
-
/**
|
|
10
|
-
* @module ui/editorui/editoruiview
|
|
11
|
-
*/
|
|
12
|
-
import View from '../view.js';
|
|
13
|
-
import BodyCollection from './bodycollection.js';
|
|
14
|
-
import type EditableUIView from '../editableui/editableuiview.js';
|
|
15
|
-
import type { Locale, LocaleTranslate } from '@ckeditor/ckeditor5-utils';
|
|
16
|
-
import '../../theme/components/editorui/editorui.css';
|
|
17
|
-
import type MenuBarView from '../menubar/menubarview.js';
|
|
18
|
-
/**
|
|
19
|
-
* The editor UI view class. Base class for the editor main views.
|
|
20
|
-
*/
|
|
21
|
-
export default abstract class EditorUIView extends View {
|
|
22
|
-
/**
|
|
23
|
-
* Collection of the child views, detached from the DOM
|
|
24
|
-
* structure of the editor, like panels, icons etc.
|
|
25
|
-
*/
|
|
26
|
-
readonly body: BodyCollection;
|
|
27
|
-
locale: Locale;
|
|
28
|
-
t: LocaleTranslate;
|
|
29
|
-
abstract get editable(): EditableUIView;
|
|
30
|
-
/**
|
|
31
|
-
* Menu bar view instance. May not be initialized in some editor types.
|
|
32
|
-
*/
|
|
33
|
-
menuBarView?: MenuBarView;
|
|
34
|
-
/**
|
|
35
|
-
* Creates an instance of the editor UI view class.
|
|
36
|
-
*
|
|
37
|
-
* @param locale The locale instance.
|
|
38
|
-
*/
|
|
39
|
-
constructor(locale: Locale);
|
|
40
|
-
/**
|
|
41
|
-
* @inheritDoc
|
|
42
|
-
*/
|
|
43
|
-
render(): void;
|
|
44
|
-
/**
|
|
45
|
-
* @inheritDoc
|
|
46
|
-
*/
|
|
47
|
-
destroy(): void;
|
|
48
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
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-licensing-options
|
|
8
|
-
*/
|
|
9
|
-
/**
|
|
10
|
-
* @module ui/editorui/evaluationbadge
|
|
11
|
-
*/
|
|
12
|
-
import type { Editor } from '@ckeditor/ckeditor5-core';
|
|
13
|
-
import View from '../view.js';
|
|
14
|
-
import Badge, { type BadgeConfig } from '../badge/badge.js';
|
|
15
|
-
/**
|
|
16
|
-
* A helper that enables the "evaluation badge" feature in the editor at the bottom of the editable element
|
|
17
|
-
* (editor root, source editing area, etc.) when the editor is focused.
|
|
18
|
-
*
|
|
19
|
-
* @private
|
|
20
|
-
*/
|
|
21
|
-
export default class EvaluationBadge extends Badge {
|
|
22
|
-
private licenseTypeMessage;
|
|
23
|
-
constructor(editor: Editor);
|
|
24
|
-
/**
|
|
25
|
-
* Enables "evaluation badge" label.
|
|
26
|
-
*/
|
|
27
|
-
protected _isEnabled(): boolean;
|
|
28
|
-
/**
|
|
29
|
-
* Creates the content of the "evaluation badge".
|
|
30
|
-
*/
|
|
31
|
-
protected _createBadgeContent(): View<HTMLElement>;
|
|
32
|
-
/**
|
|
33
|
-
* Returns the normalized configuration for the "evaluation badge".
|
|
34
|
-
* It takes 'ui.poweredBy' configuration into account to determine the badge position and side.
|
|
35
|
-
*/
|
|
36
|
-
protected _getNormalizedConfig(): BadgeConfig;
|
|
37
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
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-licensing-options
|
|
8
|
-
*/
|
|
9
|
-
/**
|
|
10
|
-
* @module ui/editorui/poweredby
|
|
11
|
-
*/
|
|
12
|
-
import type { Editor, UiConfig } from '@ckeditor/ckeditor5-core';
|
|
13
|
-
import View from '../view.js';
|
|
14
|
-
import Badge from '../badge/badge.js';
|
|
15
|
-
type PoweredByConfig = Required<UiConfig>['poweredBy'];
|
|
16
|
-
/**
|
|
17
|
-
* A helper that enables the "powered by" feature in the editor and renders a link to the project's
|
|
18
|
-
* webpage next to the bottom of the editable element (editor root, source editing area, etc.) when the editor is focused.
|
|
19
|
-
*
|
|
20
|
-
* @private
|
|
21
|
-
*/
|
|
22
|
-
export default class PoweredBy extends Badge {
|
|
23
|
-
constructor(editor: Editor);
|
|
24
|
-
/**
|
|
25
|
-
* Enables "powered by" label.
|
|
26
|
-
*/
|
|
27
|
-
protected _isEnabled(): boolean;
|
|
28
|
-
/**
|
|
29
|
-
* Creates a "powered by" badge content.
|
|
30
|
-
*/
|
|
31
|
-
protected _createBadgeContent(): View<HTMLElement>;
|
|
32
|
-
/**
|
|
33
|
-
* Returns the normalized configuration for the "powered by" badge.
|
|
34
|
-
* It takes the user configuration into account and falls back to the default one.
|
|
35
|
-
*/
|
|
36
|
-
protected _getNormalizedConfig(): Required<PoweredByConfig>;
|
|
37
|
-
}
|
|
38
|
-
export {};
|