@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
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module ui/input/inputbase
|
|
7
|
+
*/
|
|
8
|
+
import View from '../view.js';
|
|
9
|
+
import { FocusTracker, type Locale } from '@ckeditor/ckeditor5-utils';
|
|
10
|
+
/**
|
|
11
|
+
* The base input view class.
|
|
12
|
+
*/
|
|
13
|
+
export default abstract class InputBase<TElement extends HTMLInputElement | HTMLTextAreaElement = HTMLInputElement> extends View<TElement> {
|
|
14
|
+
/**
|
|
15
|
+
* Stores information about the editor UI focus and propagates it so various plugins and components
|
|
16
|
+
* are unified as a focus group.
|
|
17
|
+
*/
|
|
18
|
+
readonly focusTracker: FocusTracker;
|
|
19
|
+
/**
|
|
20
|
+
* The value of the input.
|
|
21
|
+
*
|
|
22
|
+
* @observable
|
|
23
|
+
*/
|
|
24
|
+
value: string | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* The `id` attribute of the input (i.e. to pair with a `<label>` element).
|
|
27
|
+
*
|
|
28
|
+
* @observable
|
|
29
|
+
*/
|
|
30
|
+
id: string | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* The `placeholder` attribute of the input.
|
|
33
|
+
*
|
|
34
|
+
* @observable
|
|
35
|
+
*/
|
|
36
|
+
placeholder: string | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* The `tabindex` attribute of the input.
|
|
39
|
+
*
|
|
40
|
+
* @observable
|
|
41
|
+
*/
|
|
42
|
+
tabIndex: number | undefined;
|
|
43
|
+
/**
|
|
44
|
+
* The `aria-label` attribute of the input.
|
|
45
|
+
*
|
|
46
|
+
* @observable
|
|
47
|
+
*/
|
|
48
|
+
ariaLabel: string | undefined;
|
|
49
|
+
/**
|
|
50
|
+
* Controls whether the input view is in read-only mode.
|
|
51
|
+
*
|
|
52
|
+
* @observable
|
|
53
|
+
*/
|
|
54
|
+
isReadOnly: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* Set to `true` when the field has some error. Usually controlled via
|
|
57
|
+
* {@link module:ui/labeledinput/labeledinputview~LabeledInputView#errorText}.
|
|
58
|
+
*
|
|
59
|
+
* @observable
|
|
60
|
+
*/
|
|
61
|
+
hasError: boolean;
|
|
62
|
+
/**
|
|
63
|
+
* The `id` of the element describing this field, e.g. when it has
|
|
64
|
+
* some error; it helps screen readers read the error text.
|
|
65
|
+
*
|
|
66
|
+
* @observable
|
|
67
|
+
*/
|
|
68
|
+
ariaDescribedById: string | undefined;
|
|
69
|
+
/**
|
|
70
|
+
* An observable flag set to `true` when the input is currently focused by the user.
|
|
71
|
+
* Set to `false` otherwise.
|
|
72
|
+
*
|
|
73
|
+
* @readonly
|
|
74
|
+
* @observable
|
|
75
|
+
* @default false
|
|
76
|
+
*/
|
|
77
|
+
isFocused: boolean;
|
|
78
|
+
/**
|
|
79
|
+
* An observable flag set to `true` when the input contains no text, i.e.
|
|
80
|
+
* when {@link #value} is `''`, `null`, or `false`.
|
|
81
|
+
*
|
|
82
|
+
* @readonly
|
|
83
|
+
* @observable
|
|
84
|
+
* @default true
|
|
85
|
+
*/
|
|
86
|
+
isEmpty: boolean;
|
|
87
|
+
/**
|
|
88
|
+
* @inheritDoc
|
|
89
|
+
*/
|
|
90
|
+
constructor(locale?: Locale);
|
|
91
|
+
/**
|
|
92
|
+
* @inheritDoc
|
|
93
|
+
*/
|
|
94
|
+
render(): void;
|
|
95
|
+
/**
|
|
96
|
+
* @inheritDoc
|
|
97
|
+
*/
|
|
98
|
+
destroy(): void;
|
|
99
|
+
/**
|
|
100
|
+
* Moves the focus to the input and selects the value.
|
|
101
|
+
*/
|
|
102
|
+
select(): void;
|
|
103
|
+
/**
|
|
104
|
+
* Focuses the input.
|
|
105
|
+
*/
|
|
106
|
+
focus(): void;
|
|
107
|
+
/**
|
|
108
|
+
* Resets the value of the input
|
|
109
|
+
*/
|
|
110
|
+
reset(): void;
|
|
111
|
+
/**
|
|
112
|
+
* Updates the {@link #isEmpty} property value on demand.
|
|
113
|
+
*/
|
|
114
|
+
protected _updateIsEmpty(): void;
|
|
115
|
+
/**
|
|
116
|
+
* Sets the `value` property of the {@link #element DOM element} on demand.
|
|
117
|
+
*/
|
|
118
|
+
private _setDomElementValue;
|
|
119
|
+
}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module ui/input/inputbase
|
|
7
|
+
*/
|
|
8
|
+
import View from '../view.js';
|
|
9
|
+
import { FocusTracker } from '@ckeditor/ckeditor5-utils';
|
|
10
|
+
/**
|
|
11
|
+
* The base input view class.
|
|
12
|
+
*/
|
|
13
|
+
export default class InputBase extends View {
|
|
14
|
+
/**
|
|
15
|
+
* @inheritDoc
|
|
16
|
+
*/
|
|
17
|
+
constructor(locale) {
|
|
18
|
+
super(locale);
|
|
19
|
+
this.set('value', undefined);
|
|
20
|
+
this.set('id', undefined);
|
|
21
|
+
this.set('placeholder', undefined);
|
|
22
|
+
this.set('tabIndex', undefined);
|
|
23
|
+
this.set('isReadOnly', false);
|
|
24
|
+
this.set('hasError', false);
|
|
25
|
+
this.set('ariaDescribedById', undefined);
|
|
26
|
+
this.set('ariaLabel', undefined);
|
|
27
|
+
this.focusTracker = new FocusTracker();
|
|
28
|
+
this.bind('isFocused').to(this.focusTracker);
|
|
29
|
+
this.set('isEmpty', true);
|
|
30
|
+
const bind = this.bindTemplate;
|
|
31
|
+
this.setTemplate({
|
|
32
|
+
tag: 'input',
|
|
33
|
+
attributes: {
|
|
34
|
+
class: [
|
|
35
|
+
'ck',
|
|
36
|
+
'ck-input',
|
|
37
|
+
bind.if('isFocused', 'ck-input_focused'),
|
|
38
|
+
bind.if('isEmpty', 'ck-input-text_empty'),
|
|
39
|
+
bind.if('hasError', 'ck-error')
|
|
40
|
+
],
|
|
41
|
+
id: bind.to('id'),
|
|
42
|
+
placeholder: bind.to('placeholder'),
|
|
43
|
+
tabindex: bind.to('tabIndex'),
|
|
44
|
+
readonly: bind.to('isReadOnly'),
|
|
45
|
+
'aria-invalid': bind.if('hasError', true),
|
|
46
|
+
'aria-describedby': bind.to('ariaDescribedById'),
|
|
47
|
+
'aria-label': bind.to('ariaLabel')
|
|
48
|
+
},
|
|
49
|
+
on: {
|
|
50
|
+
input: bind.to((...args) => {
|
|
51
|
+
this.fire('input', ...args);
|
|
52
|
+
this._updateIsEmpty();
|
|
53
|
+
}),
|
|
54
|
+
change: bind.to(this._updateIsEmpty.bind(this))
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* @inheritDoc
|
|
60
|
+
*/
|
|
61
|
+
render() {
|
|
62
|
+
super.render();
|
|
63
|
+
this.focusTracker.add(this.element);
|
|
64
|
+
this._setDomElementValue(this.value);
|
|
65
|
+
this._updateIsEmpty();
|
|
66
|
+
// Bind `this.value` to the DOM element's value.
|
|
67
|
+
// We cannot use `value` DOM attribute because removing it on Edge does not clear the DOM element's value property.
|
|
68
|
+
this.on('change:value', (evt, name, value) => {
|
|
69
|
+
this._setDomElementValue(value);
|
|
70
|
+
this._updateIsEmpty();
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* @inheritDoc
|
|
75
|
+
*/
|
|
76
|
+
destroy() {
|
|
77
|
+
super.destroy();
|
|
78
|
+
this.focusTracker.destroy();
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Moves the focus to the input and selects the value.
|
|
82
|
+
*/
|
|
83
|
+
select() {
|
|
84
|
+
this.element.select();
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Focuses the input.
|
|
88
|
+
*/
|
|
89
|
+
focus() {
|
|
90
|
+
this.element.focus();
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Resets the value of the input
|
|
94
|
+
*/
|
|
95
|
+
reset() {
|
|
96
|
+
this.value = this.element.value = '';
|
|
97
|
+
this._updateIsEmpty();
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Updates the {@link #isEmpty} property value on demand.
|
|
101
|
+
*/
|
|
102
|
+
_updateIsEmpty() {
|
|
103
|
+
this.isEmpty = isInputElementEmpty(this.element);
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Sets the `value` property of the {@link #element DOM element} on demand.
|
|
107
|
+
*/
|
|
108
|
+
_setDomElementValue(value) {
|
|
109
|
+
this.element.value = (!value && value !== 0) ? '' : value;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
function isInputElementEmpty(domElement) {
|
|
113
|
+
return !domElement.value;
|
|
114
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module ui/input/inputview
|
|
7
|
+
*/
|
|
8
|
+
import { type Locale } from '@ckeditor/ckeditor5-utils';
|
|
9
|
+
import InputBase from './inputbase.js';
|
|
10
|
+
import '../../theme/components/input/input.css';
|
|
11
|
+
/**
|
|
12
|
+
* The input view class.
|
|
13
|
+
*/
|
|
14
|
+
export default class InputView extends InputBase {
|
|
15
|
+
/**
|
|
16
|
+
* Corresponds to the `inputmode` DOM attribute. Can be `text`, `numeric`, `decimal`, etc.
|
|
17
|
+
*
|
|
18
|
+
* @observable
|
|
19
|
+
* @default 'text'
|
|
20
|
+
*/
|
|
21
|
+
inputMode: string;
|
|
22
|
+
/**
|
|
23
|
+
* @inheritDoc
|
|
24
|
+
*/
|
|
25
|
+
constructor(locale?: Locale);
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Fired when the user types in the input. Corresponds to the native
|
|
29
|
+
* DOM `input` event.
|
|
30
|
+
*
|
|
31
|
+
* @eventName ~InputView#input
|
|
32
|
+
*/
|
|
33
|
+
export type InputViewInputEvent = {
|
|
34
|
+
name: 'input';
|
|
35
|
+
args: [InputEvent];
|
|
36
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
import InputBase from './inputbase.js';
|
|
6
|
+
import '../../theme/components/input/input.css';
|
|
7
|
+
/**
|
|
8
|
+
* The input view class.
|
|
9
|
+
*/
|
|
10
|
+
export default class InputView extends InputBase {
|
|
11
|
+
/**
|
|
12
|
+
* @inheritDoc
|
|
13
|
+
*/
|
|
14
|
+
constructor(locale) {
|
|
15
|
+
super(locale);
|
|
16
|
+
this.set('inputMode', 'text');
|
|
17
|
+
const bind = this.bindTemplate;
|
|
18
|
+
this.extendTemplate({
|
|
19
|
+
attributes: {
|
|
20
|
+
inputmode: bind.to('inputMode')
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module ui/inputnumber/inputnumberview
|
|
7
|
+
*/
|
|
8
|
+
import InputView from '../input/inputview.js';
|
|
9
|
+
import type { Locale } from '@ckeditor/ckeditor5-utils';
|
|
10
|
+
/**
|
|
11
|
+
* The number input view class.
|
|
12
|
+
*/
|
|
13
|
+
export default class InputNumberView extends InputView {
|
|
14
|
+
/**
|
|
15
|
+
* The value of the `min` DOM attribute (the lowest accepted value) set on the {@link #element}.
|
|
16
|
+
*
|
|
17
|
+
* @observable
|
|
18
|
+
* @default undefined
|
|
19
|
+
*/
|
|
20
|
+
min: number | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* The value of the `max` DOM attribute (the highest accepted value) set on the {@link #element}.
|
|
23
|
+
*
|
|
24
|
+
* @observable
|
|
25
|
+
* @default undefined
|
|
26
|
+
*/
|
|
27
|
+
max: number | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* The value of the `step` DOM attribute set on the {@link #element}.
|
|
30
|
+
*
|
|
31
|
+
* @observable
|
|
32
|
+
* @default undefined
|
|
33
|
+
*/
|
|
34
|
+
step: number | undefined;
|
|
35
|
+
/**
|
|
36
|
+
* Creates an instance of the input number view.
|
|
37
|
+
*
|
|
38
|
+
* @param locale The {@link module:core/editor/editor~Editor#locale} instance.
|
|
39
|
+
* @param options The options of the input.
|
|
40
|
+
* @param options.min The value of the `min` DOM attribute (the lowest accepted value).
|
|
41
|
+
* @param options.max The value of the `max` DOM attribute (the highest accepted value).
|
|
42
|
+
* @param options.step The value of the `step` DOM attribute.
|
|
43
|
+
*/
|
|
44
|
+
constructor(locale?: Locale, { min, max, step }?: {
|
|
45
|
+
min?: number;
|
|
46
|
+
max?: number;
|
|
47
|
+
step?: number;
|
|
48
|
+
});
|
|
49
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module ui/inputnumber/inputnumberview
|
|
7
|
+
*/
|
|
8
|
+
import InputView from '../input/inputview.js';
|
|
9
|
+
/**
|
|
10
|
+
* The number input view class.
|
|
11
|
+
*/
|
|
12
|
+
export default class InputNumberView extends InputView {
|
|
13
|
+
/**
|
|
14
|
+
* Creates an instance of the input number view.
|
|
15
|
+
*
|
|
16
|
+
* @param locale The {@link module:core/editor/editor~Editor#locale} instance.
|
|
17
|
+
* @param options The options of the input.
|
|
18
|
+
* @param options.min The value of the `min` DOM attribute (the lowest accepted value).
|
|
19
|
+
* @param options.max The value of the `max` DOM attribute (the highest accepted value).
|
|
20
|
+
* @param options.step The value of the `step` DOM attribute.
|
|
21
|
+
*/
|
|
22
|
+
constructor(locale, { min, max, step } = {}) {
|
|
23
|
+
super(locale);
|
|
24
|
+
const bind = this.bindTemplate;
|
|
25
|
+
this.set('min', min);
|
|
26
|
+
this.set('max', max);
|
|
27
|
+
this.set('step', step);
|
|
28
|
+
this.extendTemplate({
|
|
29
|
+
attributes: {
|
|
30
|
+
type: 'number',
|
|
31
|
+
class: [
|
|
32
|
+
'ck-input-number'
|
|
33
|
+
],
|
|
34
|
+
min: bind.to('min'),
|
|
35
|
+
max: bind.to('max'),
|
|
36
|
+
step: bind.to('step')
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module ui/inputtext/inputtextview
|
|
7
|
+
*/
|
|
8
|
+
import InputView from '../input/inputview.js';
|
|
9
|
+
import type { Locale } from '@ckeditor/ckeditor5-utils';
|
|
10
|
+
/**
|
|
11
|
+
* The text input view class.
|
|
12
|
+
*/
|
|
13
|
+
export default class InputTextView extends InputView {
|
|
14
|
+
/**
|
|
15
|
+
* @inheritDoc
|
|
16
|
+
*/
|
|
17
|
+
constructor(locale?: Locale);
|
|
18
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module ui/inputtext/inputtextview
|
|
7
|
+
*/
|
|
8
|
+
import InputView from '../input/inputview.js';
|
|
9
|
+
/**
|
|
10
|
+
* The text input view class.
|
|
11
|
+
*/
|
|
12
|
+
export default class InputTextView extends InputView {
|
|
13
|
+
/**
|
|
14
|
+
* @inheritDoc
|
|
15
|
+
*/
|
|
16
|
+
constructor(locale) {
|
|
17
|
+
super(locale);
|
|
18
|
+
this.extendTemplate({
|
|
19
|
+
attributes: {
|
|
20
|
+
type: 'text',
|
|
21
|
+
class: [
|
|
22
|
+
'ck-input-text'
|
|
23
|
+
]
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module ui/label/labelview
|
|
7
|
+
*/
|
|
8
|
+
import View from '../view.js';
|
|
9
|
+
import { type Locale } from '@ckeditor/ckeditor5-utils';
|
|
10
|
+
import '../../theme/components/label/label.css';
|
|
11
|
+
/**
|
|
12
|
+
* The label view class.
|
|
13
|
+
*/
|
|
14
|
+
export default class LabelView extends View {
|
|
15
|
+
/**
|
|
16
|
+
* An unique id of the label. It can be used by other UI components to reference
|
|
17
|
+
* the label, for instance, using the `aria-describedby` DOM attribute.
|
|
18
|
+
*/
|
|
19
|
+
readonly id: string;
|
|
20
|
+
/**
|
|
21
|
+
* The text of the label.
|
|
22
|
+
*
|
|
23
|
+
* @observable
|
|
24
|
+
*/
|
|
25
|
+
text: string | undefined;
|
|
26
|
+
/**
|
|
27
|
+
* The `for` attribute of the label (i.e. to pair with an `<input>` element).
|
|
28
|
+
*
|
|
29
|
+
* @observable
|
|
30
|
+
*/
|
|
31
|
+
for: string | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* @inheritDoc
|
|
34
|
+
*/
|
|
35
|
+
constructor(locale?: Locale);
|
|
36
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module ui/label/labelview
|
|
7
|
+
*/
|
|
8
|
+
import View from '../view.js';
|
|
9
|
+
import { uid } from '@ckeditor/ckeditor5-utils';
|
|
10
|
+
import '../../theme/components/label/label.css';
|
|
11
|
+
/**
|
|
12
|
+
* The label view class.
|
|
13
|
+
*/
|
|
14
|
+
export default class LabelView extends View {
|
|
15
|
+
/**
|
|
16
|
+
* @inheritDoc
|
|
17
|
+
*/
|
|
18
|
+
constructor(locale) {
|
|
19
|
+
super(locale);
|
|
20
|
+
this.set('text', undefined);
|
|
21
|
+
this.set('for', undefined);
|
|
22
|
+
this.id = `ck-editor__label_${uid()}`;
|
|
23
|
+
const bind = this.bindTemplate;
|
|
24
|
+
this.setTemplate({
|
|
25
|
+
tag: 'label',
|
|
26
|
+
attributes: {
|
|
27
|
+
class: [
|
|
28
|
+
'ck',
|
|
29
|
+
'ck-label'
|
|
30
|
+
],
|
|
31
|
+
id: this.id,
|
|
32
|
+
for: bind.to('for')
|
|
33
|
+
},
|
|
34
|
+
children: [
|
|
35
|
+
{
|
|
36
|
+
text: bind.to('text')
|
|
37
|
+
}
|
|
38
|
+
]
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module ui/labeledfield/labeledfieldview
|
|
7
|
+
*/
|
|
8
|
+
import View from '../view.js';
|
|
9
|
+
import LabelView from '../label/labelview.js';
|
|
10
|
+
import type { FocusableView } from '../focuscycler.js';
|
|
11
|
+
import type ViewCollection from '../viewcollection.js';
|
|
12
|
+
import { type Locale } from '@ckeditor/ckeditor5-utils';
|
|
13
|
+
import '../../theme/components/labeledfield/labeledfieldview.css';
|
|
14
|
+
/**
|
|
15
|
+
* The labeled field view class. It can be used to enhance any view with the following features:
|
|
16
|
+
*
|
|
17
|
+
* * a label,
|
|
18
|
+
* * (optional) an error message,
|
|
19
|
+
* * (optional) an info (status) text,
|
|
20
|
+
*
|
|
21
|
+
* all bound logically by proper DOM attributes for UX and accessibility. It also provides an interface
|
|
22
|
+
* (e.g. observable properties) that allows controlling those additional features.
|
|
23
|
+
*
|
|
24
|
+
* The constructor of this class requires a callback that returns a view to be labeled. The callback
|
|
25
|
+
* is called with unique ids that allow binding of DOM properties:
|
|
26
|
+
*
|
|
27
|
+
* ```ts
|
|
28
|
+
* const labeledInputView = new LabeledFieldView( locale, ( labeledFieldView, viewUid, statusUid ) => {
|
|
29
|
+
* const inputView = new InputTextView( labeledFieldView.locale );
|
|
30
|
+
*
|
|
31
|
+
* inputView.set( {
|
|
32
|
+
* id: viewUid,
|
|
33
|
+
* ariaDescribedById: statusUid
|
|
34
|
+
* } );
|
|
35
|
+
*
|
|
36
|
+
* inputView.bind( 'isReadOnly' ).to( labeledFieldView, 'isEnabled', value => !value );
|
|
37
|
+
* inputView.bind( 'hasError' ).to( labeledFieldView, 'errorText', value => !!value );
|
|
38
|
+
*
|
|
39
|
+
* return inputView;
|
|
40
|
+
* } );
|
|
41
|
+
*
|
|
42
|
+
* labeledInputView.label = 'User name';
|
|
43
|
+
* labeledInputView.infoText = 'Full name like for instance, John Doe.';
|
|
44
|
+
* labeledInputView.render();
|
|
45
|
+
*
|
|
46
|
+
* document.body.append( labeledInputView.element );
|
|
47
|
+
* ```
|
|
48
|
+
*
|
|
49
|
+
* See {@link module:ui/labeledfield/utils} to discover ready–to–use labeled input helpers for common
|
|
50
|
+
* UI components.
|
|
51
|
+
*/
|
|
52
|
+
export default class LabeledFieldView<TFieldView extends FocusableView = FocusableView> extends View {
|
|
53
|
+
/**
|
|
54
|
+
* The field view that gets labeled.
|
|
55
|
+
*/
|
|
56
|
+
readonly fieldView: TFieldView;
|
|
57
|
+
/**
|
|
58
|
+
* The label view instance that describes the entire view.
|
|
59
|
+
*/
|
|
60
|
+
readonly labelView: LabelView;
|
|
61
|
+
/**
|
|
62
|
+
* The status view for the {@link #fieldView}. It displays {@link #errorText} and
|
|
63
|
+
* {@link #infoText}.
|
|
64
|
+
*/
|
|
65
|
+
readonly statusView: View;
|
|
66
|
+
/**
|
|
67
|
+
* A collection of children of the internal wrapper element. Allows inserting additional DOM elements (views) next to
|
|
68
|
+
* the {@link #fieldView} for easy styling (e.g. positioning).
|
|
69
|
+
*
|
|
70
|
+
* By default, the collection contains {@link #fieldView} and {@link #labelView}.
|
|
71
|
+
*/
|
|
72
|
+
readonly fieldWrapperChildren: ViewCollection;
|
|
73
|
+
/**
|
|
74
|
+
* The text of the label.
|
|
75
|
+
*
|
|
76
|
+
* @observable
|
|
77
|
+
*/
|
|
78
|
+
label: string | undefined;
|
|
79
|
+
/**
|
|
80
|
+
* Controls whether the component is in read-only mode.
|
|
81
|
+
*
|
|
82
|
+
* @observable
|
|
83
|
+
*/
|
|
84
|
+
isEnabled: boolean;
|
|
85
|
+
/**
|
|
86
|
+
* An observable flag set to `true` when {@link #fieldView} is empty (`false` otherwise).
|
|
87
|
+
*
|
|
88
|
+
* @readonly
|
|
89
|
+
* @observable
|
|
90
|
+
* @default true
|
|
91
|
+
*/
|
|
92
|
+
isEmpty: boolean;
|
|
93
|
+
/**
|
|
94
|
+
* An observable flag set to `true` when {@link #fieldView} is currently focused by
|
|
95
|
+
* the user (`false` otherwise).
|
|
96
|
+
*
|
|
97
|
+
* @readonly
|
|
98
|
+
* @observable
|
|
99
|
+
* @default false
|
|
100
|
+
*/
|
|
101
|
+
isFocused: boolean;
|
|
102
|
+
/**
|
|
103
|
+
* The validation error text. When set, it will be displayed
|
|
104
|
+
* next to the {@link #fieldView} as a typical validation error message.
|
|
105
|
+
* Set it to `null` to hide the message.
|
|
106
|
+
*
|
|
107
|
+
* **Note:** Setting this property to anything but `null` will automatically
|
|
108
|
+
* make the `hasError` of the {@link #fieldView} `true`.
|
|
109
|
+
*
|
|
110
|
+
* @observable
|
|
111
|
+
*/
|
|
112
|
+
errorText: string | null;
|
|
113
|
+
/**
|
|
114
|
+
* The additional information text displayed next to the {@link #fieldView} which can
|
|
115
|
+
* be used to inform the user about its purpose, provide help or hints.
|
|
116
|
+
*
|
|
117
|
+
* Set it to `null` to hide the message.
|
|
118
|
+
*
|
|
119
|
+
* **Note:** This text will be displayed in the same place as {@link #errorText} but the
|
|
120
|
+
* latter always takes precedence: if the {@link #errorText} is set, it replaces
|
|
121
|
+
* {@link #infoText}.
|
|
122
|
+
*
|
|
123
|
+
* @observable
|
|
124
|
+
* @default null
|
|
125
|
+
*/
|
|
126
|
+
infoText: string | null;
|
|
127
|
+
/**
|
|
128
|
+
* (Optional) The additional CSS class set on the dropdown {@link #element}.
|
|
129
|
+
*
|
|
130
|
+
* @observable
|
|
131
|
+
*/
|
|
132
|
+
class: string | undefined;
|
|
133
|
+
/**
|
|
134
|
+
* The content of the `placeholder` attribute of the {@link #fieldView}.
|
|
135
|
+
*
|
|
136
|
+
* @observable
|
|
137
|
+
*/
|
|
138
|
+
placeholder: string | undefined;
|
|
139
|
+
/**
|
|
140
|
+
* The combined status text made of {@link #errorText} and {@link #infoText}.
|
|
141
|
+
* Note that when present, {@link #errorText} always takes precedence in the
|
|
142
|
+
* status.
|
|
143
|
+
*
|
|
144
|
+
* @see #errorText
|
|
145
|
+
* @see #infoText
|
|
146
|
+
* @see #statusView
|
|
147
|
+
* @private
|
|
148
|
+
* @observable
|
|
149
|
+
*/
|
|
150
|
+
_statusText: string | null;
|
|
151
|
+
/**
|
|
152
|
+
* Creates an instance of the labeled field view class using a provided creator function
|
|
153
|
+
* that provides the view to be labeled.
|
|
154
|
+
*
|
|
155
|
+
* @param locale The locale instance.
|
|
156
|
+
* @param viewCreator A function that returns a {@link module:ui/view~View}
|
|
157
|
+
* that will be labeled. The following arguments are passed to the creator function:
|
|
158
|
+
*
|
|
159
|
+
* * an instance of the `LabeledFieldView` to allow binding observable properties,
|
|
160
|
+
* * an UID string that connects the {@link #labelView label} and the labeled field view in DOM,
|
|
161
|
+
* * an UID string that connects the {@link #statusView status} and the labeled field view in DOM.
|
|
162
|
+
*/
|
|
163
|
+
constructor(locale: Locale | undefined, viewCreator: LabeledFieldViewCreator<TFieldView>);
|
|
164
|
+
/**
|
|
165
|
+
* Creates label view class instance and bind with view.
|
|
166
|
+
*
|
|
167
|
+
* @param id Unique id to set as labelView#for attribute.
|
|
168
|
+
*/
|
|
169
|
+
private _createLabelView;
|
|
170
|
+
/**
|
|
171
|
+
* Creates the status view instance. It displays {@link #errorText} and {@link #infoText}
|
|
172
|
+
* next to the {@link #fieldView}. See {@link #_statusText}.
|
|
173
|
+
*
|
|
174
|
+
* @param statusUid Unique id of the status, shared with the {@link #fieldView view's}
|
|
175
|
+
* `aria-describedby` attribute.
|
|
176
|
+
*/
|
|
177
|
+
private _createStatusView;
|
|
178
|
+
/**
|
|
179
|
+
* Focuses the {@link #fieldView}.
|
|
180
|
+
*/
|
|
181
|
+
focus(direction?: 1 | -1): void;
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
* A creator function that returns a focusable view to be labeled by a {@link module:ui/labeledfield/labeledfieldview~LabeledFieldView}
|
|
185
|
+
* instance.
|
|
186
|
+
*/
|
|
187
|
+
export type LabeledFieldViewCreator<TFieldView extends FocusableView> = (labeledFieldView: LabeledFieldView, viewUid: string, statusUid: string) => TFieldView;
|