@ckeditor/ckeditor5-ui 41.3.1 → 41.4.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/dist/index-content.css +4 -0
- package/dist/index-editor.css +497 -0
- package/dist/index.css +942 -0
- package/dist/index.css.map +1 -0
- package/dist/index.js +14343 -0
- package/dist/index.js.map +1 -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/types/arialiveannouncer.d.ts +113 -0
- package/dist/types/augmentation.d.ts +92 -0
- package/dist/types/autocomplete/autocompleteview.d.ts +85 -0
- package/dist/types/bindings/addkeyboardhandlingforgrid.d.ts +31 -0
- package/dist/types/bindings/clickoutsidehandler.d.ts +32 -0
- package/dist/types/bindings/csstransitiondisablermixin.d.ts +44 -0
- package/dist/types/bindings/draggableviewmixin.d.ts +50 -0
- package/dist/types/bindings/injectcsstransitiondisabler.d.ts +63 -0
- package/dist/types/bindings/preventdefault.d.ts +37 -0
- package/dist/types/bindings/submithandler.d.ts +61 -0
- package/dist/types/button/button.d.ts +185 -0
- package/dist/types/button/buttonlabel.d.ts +38 -0
- package/dist/types/button/buttonlabelview.d.ts +35 -0
- package/dist/types/button/buttonview.d.ts +189 -0
- package/dist/types/button/filedialogbuttonview.d.ts +84 -0
- package/dist/types/button/switchbuttonview.d.ts +49 -0
- package/dist/types/collapsible/collapsibleview.d.ts +74 -0
- package/dist/types/colorgrid/colorgridview.d.ts +136 -0
- package/dist/types/colorgrid/colortileview.d.ts +32 -0
- package/dist/types/colorgrid/utils.d.ts +51 -0
- package/dist/types/colorpicker/colorpickerview.d.ts +177 -0
- package/dist/types/colorpicker/utils.d.ts +52 -0
- package/dist/types/colorselector/colorgridsfragmentview.d.ts +199 -0
- package/dist/types/colorselector/colorpickerfragmentview.d.ts +137 -0
- package/dist/types/colorselector/colorselectorview.d.ts +246 -0
- package/dist/types/colorselector/documentcolorcollection.d.ts +74 -0
- package/dist/types/componentfactory.d.ts +85 -0
- package/dist/types/dialog/dialog.d.ts +277 -0
- package/dist/types/dialog/dialogactionsview.d.ts +73 -0
- package/dist/types/dialog/dialogcontentview.d.ts +31 -0
- package/dist/types/dialog/dialogview.d.ts +260 -0
- package/dist/types/dropdown/button/dropdownbutton.d.ts +29 -0
- package/dist/types/dropdown/button/dropdownbuttonview.d.ts +52 -0
- package/dist/types/dropdown/button/splitbuttonview.d.ts +166 -0
- package/dist/types/dropdown/dropdownpanelfocusable.d.ts +25 -0
- package/dist/types/dropdown/dropdownpanelview.d.ts +66 -0
- package/dist/types/dropdown/dropdownview.d.ts +319 -0
- package/dist/types/dropdown/utils.d.ts +239 -0
- package/dist/types/editableui/editableuiview.d.ts +76 -0
- package/dist/types/editableui/inline/inlineeditableuiview.d.ts +44 -0
- package/dist/types/editorui/accessibilityhelp/accessibilityhelp.d.ts +55 -0
- package/dist/types/editorui/accessibilityhelp/accessibilityhelpcontentview.d.ts +39 -0
- package/dist/types/editorui/bodycollection.d.ts +59 -0
- package/dist/types/editorui/boxed/boxededitoruiview.d.ts +44 -0
- package/dist/types/editorui/editorui.d.ts +292 -0
- package/dist/types/editorui/editoruiview.d.ts +43 -0
- package/dist/types/editorui/poweredby.d.ts +75 -0
- package/dist/types/focuscycler.d.ts +249 -0
- package/dist/types/formheader/formheaderview.d.ts +63 -0
- package/dist/types/highlightedtext/highlightedtextview.d.ts +42 -0
- package/dist/types/icon/iconview.d.ts +92 -0
- package/dist/types/iframe/iframeview.d.ts +54 -0
- package/dist/types/index.d.ts +87 -0
- package/dist/types/input/inputbase.d.ts +123 -0
- package/dist/types/input/inputview.d.ts +40 -0
- package/dist/types/inputnumber/inputnumberview.d.ts +53 -0
- package/dist/types/inputtext/inputtextview.d.ts +22 -0
- package/dist/types/label/labelview.d.ts +40 -0
- package/dist/types/labeledfield/labeledfieldview.d.ts +191 -0
- package/dist/types/labeledfield/utils.d.ts +127 -0
- package/dist/types/labeledinput/labeledinputview.d.ts +129 -0
- package/dist/types/list/listitemgroupview.d.ts +63 -0
- package/dist/types/list/listitemview.d.ts +40 -0
- package/dist/types/list/listseparatorview.d.ts +22 -0
- package/dist/types/list/listview.d.ts +128 -0
- package/dist/types/menubar/menubarmenubuttonview.d.ts +39 -0
- package/dist/types/menubar/menubarmenulistitembuttonview.d.ts +25 -0
- package/dist/types/menubar/menubarmenulistitemfiledialogbuttonview.d.ts +27 -0
- package/dist/types/menubar/menubarmenulistitemview.d.ts +29 -0
- package/dist/types/menubar/menubarmenulistview.d.ts +28 -0
- package/dist/types/menubar/menubarmenupanelview.d.ts +57 -0
- package/dist/types/menubar/menubarmenuview.d.ts +113 -0
- package/dist/types/menubar/menubarview.d.ts +168 -0
- package/dist/types/menubar/utils.d.ts +443 -0
- package/dist/types/model.d.ts +26 -0
- package/dist/types/notification/notification.d.ts +215 -0
- package/dist/types/panel/balloon/balloonpanelview.d.ts +689 -0
- package/dist/types/panel/balloon/contextualballoon.d.ts +303 -0
- package/dist/types/panel/sticky/stickypanelview.d.ts +160 -0
- package/dist/types/search/filteredview.d.ts +35 -0
- package/dist/types/search/searchinfoview.d.ts +49 -0
- package/dist/types/search/searchresultsview.d.ts +58 -0
- package/dist/types/search/text/searchtextqueryview.d.ts +80 -0
- package/dist/types/search/text/searchtextview.d.ts +223 -0
- package/dist/types/spinner/spinnerview.d.ts +29 -0
- package/dist/types/template.d.ts +946 -0
- package/dist/types/textarea/textareaview.d.ts +108 -0
- package/dist/types/toolbar/balloon/balloontoolbar.d.ts +121 -0
- package/dist/types/toolbar/block/blockbuttonview.d.ts +39 -0
- package/dist/types/toolbar/block/blocktoolbar.d.ts +157 -0
- package/dist/types/toolbar/normalizetoolbarconfig.d.ts +44 -0
- package/dist/types/toolbar/toolbarlinebreakview.d.ts +22 -0
- package/dist/types/toolbar/toolbarseparatorview.d.ts +22 -0
- package/dist/types/toolbar/toolbarview.d.ts +271 -0
- package/dist/types/tooltipmanager.d.ts +199 -0
- package/dist/types/view.d.ts +426 -0
- package/dist/types/viewcollection.d.ts +143 -0
- package/lang/contexts.json +2 -1
- package/lang/translations/af.po +4 -0
- package/lang/translations/ar.po +4 -0
- package/lang/translations/ast.po +4 -0
- package/lang/translations/az.po +4 -0
- package/lang/translations/bg.po +4 -0
- package/lang/translations/bn.po +4 -0
- package/lang/translations/bs.po +4 -0
- package/lang/translations/ca.po +4 -0
- package/lang/translations/cs.po +4 -0
- package/lang/translations/da.po +4 -0
- package/lang/translations/de-ch.po +4 -0
- package/lang/translations/de.po +4 -0
- package/lang/translations/el.po +4 -0
- package/lang/translations/en-au.po +4 -0
- package/lang/translations/en-gb.po +4 -0
- package/lang/translations/en.po +4 -0
- package/lang/translations/eo.po +4 -0
- package/lang/translations/es-co.po +4 -0
- package/lang/translations/es.po +4 -0
- package/lang/translations/et.po +4 -0
- package/lang/translations/eu.po +4 -0
- package/lang/translations/fa.po +4 -0
- package/lang/translations/fi.po +4 -0
- package/lang/translations/fr.po +4 -0
- package/lang/translations/gl.po +4 -0
- package/lang/translations/he.po +4 -0
- package/lang/translations/hi.po +4 -0
- package/lang/translations/hr.po +4 -0
- package/lang/translations/hu.po +4 -0
- package/lang/translations/id.po +4 -0
- package/lang/translations/it.po +4 -0
- package/lang/translations/ja.po +4 -0
- package/lang/translations/jv.po +4 -0
- package/lang/translations/km.po +4 -0
- package/lang/translations/kn.po +4 -0
- package/lang/translations/ko.po +4 -0
- package/lang/translations/ku.po +4 -0
- package/lang/translations/lt.po +4 -0
- package/lang/translations/lv.po +4 -0
- package/lang/translations/ms.po +4 -0
- package/lang/translations/nb.po +4 -0
- package/lang/translations/ne.po +4 -0
- package/lang/translations/nl.po +4 -0
- package/lang/translations/no.po +4 -0
- package/lang/translations/pl.po +4 -0
- package/lang/translations/pt-br.po +4 -0
- package/lang/translations/pt.po +4 -0
- package/lang/translations/ro.po +4 -0
- package/lang/translations/ru.po +4 -0
- package/lang/translations/sk.po +4 -0
- package/lang/translations/sl.po +4 -0
- package/lang/translations/sq.po +4 -0
- package/lang/translations/sr-latn.po +4 -0
- package/lang/translations/sr.po +4 -0
- package/lang/translations/sv.po +4 -0
- package/lang/translations/th.po +4 -0
- package/lang/translations/ti.po +214 -0
- package/lang/translations/tk.po +4 -0
- package/lang/translations/tr.po +4 -0
- package/lang/translations/tt.po +4 -0
- package/lang/translations/ug.po +4 -0
- package/lang/translations/uk.po +4 -0
- package/lang/translations/ur.po +4 -0
- package/lang/translations/uz.po +4 -0
- package/lang/translations/vi.po +4 -0
- package/lang/translations/zh-cn.po +4 -0
- package/lang/translations/zh.po +4 -0
- package/package.json +4 -3
- package/src/arialiveannouncer.d.ts +34 -23
- package/src/arialiveannouncer.js +80 -30
- package/src/colorgrid/colortileview.d.ts +1 -1
- package/src/colorgrid/colortileview.js +3 -1
- package/src/colorpicker/colorpickerview.d.ts +32 -1
- package/src/colorpicker/colorpickerview.js +62 -13
- package/src/colorselector/colorpickerfragmentview.d.ts +4 -0
- package/src/colorselector/colorpickerfragmentview.js +13 -5
- package/src/colorselector/colorselectorview.js +1 -0
- package/src/index.d.ts +4 -4
- package/src/index.js +3 -2
- package/src/menubar/utils.d.ts +8 -1
- package/src/menubar/utils.js +26 -2
- package/src/toolbar/toolbarview.js +2 -3
- package/theme/components/arialiveannouncer/arialiveannouncer.css +4 -0
- package/theme/components/tooltip/tooltip.css +4 -0
- package/theme/globals/globals.css +0 -1
- package/theme/mixins/_mediacolors.css +20 -0
- package/theme/globals/_reset.css +0 -13
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* @module ui/labeledinput/labeledinputview
|
|
11
|
+
*/
|
|
12
|
+
import View from '../view.js';
|
|
13
|
+
import LabelView from '../label/labelview.js';
|
|
14
|
+
import type { default as InputView } from '../input/inputview.js';
|
|
15
|
+
import { type Locale } from '@ckeditor/ckeditor5-utils';
|
|
16
|
+
import '../../theme/components/labeledinput/labeledinput.css';
|
|
17
|
+
/**
|
|
18
|
+
* The labeled input view class.
|
|
19
|
+
*/
|
|
20
|
+
export default class LabeledInputView extends View {
|
|
21
|
+
/**
|
|
22
|
+
* The label view.
|
|
23
|
+
*/
|
|
24
|
+
readonly labelView: LabelView;
|
|
25
|
+
/**
|
|
26
|
+
* The input view.
|
|
27
|
+
*/
|
|
28
|
+
readonly inputView: InputView;
|
|
29
|
+
/**
|
|
30
|
+
* The status view for the {@link #inputView}. It displays {@link #errorText} and
|
|
31
|
+
* {@link #infoText}.
|
|
32
|
+
*/
|
|
33
|
+
readonly statusView: View;
|
|
34
|
+
/**
|
|
35
|
+
* The text of the label.
|
|
36
|
+
*
|
|
37
|
+
* @observable
|
|
38
|
+
*/
|
|
39
|
+
label: string | undefined;
|
|
40
|
+
/**
|
|
41
|
+
* The value of the input.
|
|
42
|
+
*
|
|
43
|
+
* @observable
|
|
44
|
+
*/
|
|
45
|
+
value: string | undefined;
|
|
46
|
+
/**
|
|
47
|
+
* Controls whether the component is in read-only mode.
|
|
48
|
+
*
|
|
49
|
+
* @observable
|
|
50
|
+
*/
|
|
51
|
+
isReadOnly: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* The validation error text. When set, it will be displayed
|
|
54
|
+
* next to the {@link #inputView} as a typical validation error message.
|
|
55
|
+
* Set it to `null` to hide the message.
|
|
56
|
+
*
|
|
57
|
+
* **Note:** Setting this property to anything but `null` will automatically
|
|
58
|
+
* make the {@link module:ui/inputtext/inputtextview~InputTextView#hasError `hasError`}
|
|
59
|
+
* of the {@link #inputView} `true`.
|
|
60
|
+
*
|
|
61
|
+
* **Note:** Typing in the {@link #inputView} which fires the
|
|
62
|
+
* {@link module:ui/inputtext/inputtextview~InputTextView#event:input `input` event}
|
|
63
|
+
* resets this property back to `null`, indicating that the input field can be re–validated.
|
|
64
|
+
*
|
|
65
|
+
* @observable
|
|
66
|
+
*/
|
|
67
|
+
errorText: string | null;
|
|
68
|
+
/**
|
|
69
|
+
* The additional information text displayed next to the {@link #inputView} which can
|
|
70
|
+
* be used to inform the user about the purpose of the input, provide help or hints.
|
|
71
|
+
*
|
|
72
|
+
* Set it to `null` to hide the message.
|
|
73
|
+
*
|
|
74
|
+
* **Note:** This text will be displayed in the same place as {@link #errorText} but the
|
|
75
|
+
* latter always takes precedence: if the {@link #errorText} is set, it replaces
|
|
76
|
+
* {@link #errorText} for as long as the value of the input is invalid.
|
|
77
|
+
*
|
|
78
|
+
* @observable
|
|
79
|
+
*/
|
|
80
|
+
infoText: string | null;
|
|
81
|
+
/**
|
|
82
|
+
* The combined status text made of {@link #errorText} and {@link #infoText}.
|
|
83
|
+
* Note that when present, {@link #errorText} always takes precedence in the
|
|
84
|
+
* status.
|
|
85
|
+
*
|
|
86
|
+
* @see #errorText
|
|
87
|
+
* @see #infoText
|
|
88
|
+
* @see #statusView
|
|
89
|
+
* @private
|
|
90
|
+
* @observable
|
|
91
|
+
*/
|
|
92
|
+
_statusText: string | null;
|
|
93
|
+
/**
|
|
94
|
+
* Creates an instance of the labeled input view class.
|
|
95
|
+
*
|
|
96
|
+
* @param locale The locale instance.
|
|
97
|
+
* @param InputView Constructor of the input view.
|
|
98
|
+
*/
|
|
99
|
+
constructor(locale: Locale | undefined, InputView: new (locale: Locale | undefined, statusUid: string) => InputView);
|
|
100
|
+
/**
|
|
101
|
+
* Creates label view class instance and bind with view.
|
|
102
|
+
*
|
|
103
|
+
* @param id Unique id to set as labelView#for attribute.
|
|
104
|
+
*/
|
|
105
|
+
private _createLabelView;
|
|
106
|
+
/**
|
|
107
|
+
* Creates input view class instance and bind with view.
|
|
108
|
+
*
|
|
109
|
+
* @param InputView Input view constructor.
|
|
110
|
+
* @param inputUid Unique id to set as inputView#id attribute.
|
|
111
|
+
* @param statusUid Unique id of the status for the input's `aria-describedby` attribute.
|
|
112
|
+
*/
|
|
113
|
+
private _createInputView;
|
|
114
|
+
/**
|
|
115
|
+
* Creates the status view instance. It displays {@link #errorText} and {@link #infoText}
|
|
116
|
+
* next to the {@link #inputView}. See {@link #_statusText}.
|
|
117
|
+
*
|
|
118
|
+
* @param statusUid Unique id of the status, shared with the input's `aria-describedby` attribute.
|
|
119
|
+
*/
|
|
120
|
+
private _createStatusView;
|
|
121
|
+
/**
|
|
122
|
+
* Moves the focus to the input and selects the value.
|
|
123
|
+
*/
|
|
124
|
+
select(): void;
|
|
125
|
+
/**
|
|
126
|
+
* Focuses the input.
|
|
127
|
+
*/
|
|
128
|
+
focus(): void;
|
|
129
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* @module ui/list/listitemgroupview
|
|
11
|
+
*/
|
|
12
|
+
import View from '../view.js';
|
|
13
|
+
import type ViewCollection from '../viewcollection.js';
|
|
14
|
+
import ListView from './listview.js';
|
|
15
|
+
import LabelView from '../label/labelview.js';
|
|
16
|
+
import { type Locale } from '@ckeditor/ckeditor5-utils';
|
|
17
|
+
/**
|
|
18
|
+
* The list item group view class.
|
|
19
|
+
*/
|
|
20
|
+
export default class ListItemGroupView extends View {
|
|
21
|
+
/**
|
|
22
|
+
* The visible label of the group.
|
|
23
|
+
*
|
|
24
|
+
* @observable
|
|
25
|
+
* @default ''
|
|
26
|
+
*/
|
|
27
|
+
label: string;
|
|
28
|
+
/**
|
|
29
|
+
* Label of the group view. Its text is configurable using the {@link #label label attribute}.
|
|
30
|
+
*
|
|
31
|
+
* If a custom label view is not passed in `ListItemGroupView` constructor, the label is an instance
|
|
32
|
+
* of {@link module:ui/label/labelview~LabelView}.
|
|
33
|
+
*/
|
|
34
|
+
readonly labelView: LabelView;
|
|
35
|
+
/**
|
|
36
|
+
* Collection of the child list items inside this group.
|
|
37
|
+
*/
|
|
38
|
+
readonly items: ListView['items'];
|
|
39
|
+
/**
|
|
40
|
+
* Collection of the child elements of the group.
|
|
41
|
+
*/
|
|
42
|
+
readonly children: ViewCollection;
|
|
43
|
+
/**
|
|
44
|
+
* Controls whether the item view is visible. Visible by default, list items are hidden
|
|
45
|
+
* using a CSS class.
|
|
46
|
+
*
|
|
47
|
+
* @observable
|
|
48
|
+
* @default true
|
|
49
|
+
*/
|
|
50
|
+
isVisible: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* Creates an instance of the list item group view class.
|
|
53
|
+
*
|
|
54
|
+
* @param locale The {@link module:core/editor/editor~Editor#locale} instance.
|
|
55
|
+
* @param labelView The instance of the group's label. If not provided, an instance of
|
|
56
|
+
* {@link module:ui/label/labelview~LabelView} is used.
|
|
57
|
+
*/
|
|
58
|
+
constructor(locale?: Locale, labelView?: LabelView);
|
|
59
|
+
/**
|
|
60
|
+
* Focuses the list item (which is not a separator).
|
|
61
|
+
*/
|
|
62
|
+
focus(): void;
|
|
63
|
+
}
|
|
@@ -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
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* @module ui/list/listitemview
|
|
11
|
+
*/
|
|
12
|
+
import View from '../view.js';
|
|
13
|
+
import type { FocusableView } from '../focuscycler.js';
|
|
14
|
+
import type ViewCollection from '../viewcollection.js';
|
|
15
|
+
import type { Locale } from '@ckeditor/ckeditor5-utils';
|
|
16
|
+
/**
|
|
17
|
+
* The list item view class.
|
|
18
|
+
*/
|
|
19
|
+
export default class ListItemView extends View {
|
|
20
|
+
/**
|
|
21
|
+
* Collection of the child views inside of the list item {@link #element}.
|
|
22
|
+
*/
|
|
23
|
+
readonly children: ViewCollection<FocusableView>;
|
|
24
|
+
/**
|
|
25
|
+
* Controls whether the item view is visible. Visible by default, list items are hidden
|
|
26
|
+
* using a CSS class.
|
|
27
|
+
*
|
|
28
|
+
* @observable
|
|
29
|
+
* @default true
|
|
30
|
+
*/
|
|
31
|
+
isVisible: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* @inheritDoc
|
|
34
|
+
*/
|
|
35
|
+
constructor(locale?: Locale);
|
|
36
|
+
/**
|
|
37
|
+
* Focuses the list item.
|
|
38
|
+
*/
|
|
39
|
+
focus(): void;
|
|
40
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* @module ui/list/listseparatorview
|
|
11
|
+
*/
|
|
12
|
+
import View from '../view.js';
|
|
13
|
+
import type { Locale } from '@ckeditor/ckeditor5-utils';
|
|
14
|
+
/**
|
|
15
|
+
* The list separator view class.
|
|
16
|
+
*/
|
|
17
|
+
export default class ListSeparatorView extends View {
|
|
18
|
+
/**
|
|
19
|
+
* @inheritDoc
|
|
20
|
+
*/
|
|
21
|
+
constructor(locale?: Locale);
|
|
22
|
+
}
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* @module ui/list/listview
|
|
11
|
+
*/
|
|
12
|
+
import View from '../view.js';
|
|
13
|
+
import { type FocusableView } from '../focuscycler.js';
|
|
14
|
+
import ListItemView from './listitemview.js';
|
|
15
|
+
import ListItemGroupView from './listitemgroupview.js';
|
|
16
|
+
import type ListSeparatorView from './listseparatorview.js';
|
|
17
|
+
import type DropdownPanelFocusable from '../dropdown/dropdownpanelfocusable.js';
|
|
18
|
+
import ViewCollection from '../viewcollection.js';
|
|
19
|
+
import { FocusTracker, KeystrokeHandler, type Locale } from '@ckeditor/ckeditor5-utils';
|
|
20
|
+
import '../../theme/components/list/list.css';
|
|
21
|
+
/**
|
|
22
|
+
* The list view class.
|
|
23
|
+
*/
|
|
24
|
+
export default class ListView extends View<HTMLUListElement> implements DropdownPanelFocusable {
|
|
25
|
+
/**
|
|
26
|
+
* The collection of focusable views in the list. It is used to determine accessible navigation
|
|
27
|
+
* between the {@link module:ui/list/listitemview~ListItemView list items} and
|
|
28
|
+
* {@link module:ui/list/listitemgroupview~ListItemGroupView list groups}.
|
|
29
|
+
*/
|
|
30
|
+
readonly focusables: ViewCollection<FocusableView>;
|
|
31
|
+
/**
|
|
32
|
+
* Collection of the child list views.
|
|
33
|
+
*/
|
|
34
|
+
readonly items: ViewCollection<ListItemView | ListItemGroupView | ListSeparatorView>;
|
|
35
|
+
/**
|
|
36
|
+
* Tracks information about DOM focus in the list.
|
|
37
|
+
*/
|
|
38
|
+
readonly focusTracker: FocusTracker;
|
|
39
|
+
/**
|
|
40
|
+
* Instance of the {@link module:utils/keystrokehandler~KeystrokeHandler}.
|
|
41
|
+
*/
|
|
42
|
+
readonly keystrokes: KeystrokeHandler;
|
|
43
|
+
/**
|
|
44
|
+
* Label used by assistive technologies to describe this list element.
|
|
45
|
+
*
|
|
46
|
+
* @observable
|
|
47
|
+
*/
|
|
48
|
+
ariaLabel: string | undefined;
|
|
49
|
+
/**
|
|
50
|
+
* (Optional) The ARIA property reflected by the `aria-ariaLabelledBy` DOM attribute used by assistive technologies.
|
|
51
|
+
*
|
|
52
|
+
* @observable
|
|
53
|
+
*/
|
|
54
|
+
ariaLabelledBy?: string | undefined;
|
|
55
|
+
/**
|
|
56
|
+
* The property reflected by the `role` DOM attribute to be used by assistive technologies.
|
|
57
|
+
*
|
|
58
|
+
* @observable
|
|
59
|
+
*/
|
|
60
|
+
role: string | undefined;
|
|
61
|
+
/**
|
|
62
|
+
* Helps cycling over focusable {@link #items} in the list.
|
|
63
|
+
*/
|
|
64
|
+
private readonly _focusCycler;
|
|
65
|
+
/**
|
|
66
|
+
* A cached map of {@link module:ui/list/listitemgroupview~ListItemGroupView} to `change` event listeners for their `items`.
|
|
67
|
+
* Used for accessibility and keyboard navigation purposes.
|
|
68
|
+
*/
|
|
69
|
+
private readonly _listItemGroupToChangeListeners;
|
|
70
|
+
/**
|
|
71
|
+
* @inheritDoc
|
|
72
|
+
*/
|
|
73
|
+
constructor(locale?: Locale);
|
|
74
|
+
/**
|
|
75
|
+
* @inheritDoc
|
|
76
|
+
*/
|
|
77
|
+
render(): void;
|
|
78
|
+
/**
|
|
79
|
+
* @inheritDoc
|
|
80
|
+
*/
|
|
81
|
+
destroy(): void;
|
|
82
|
+
/**
|
|
83
|
+
* Focuses the first focusable in {@link #items}.
|
|
84
|
+
*/
|
|
85
|
+
focus(): void;
|
|
86
|
+
/**
|
|
87
|
+
* Focuses the first focusable in {@link #items}.
|
|
88
|
+
*/
|
|
89
|
+
focusFirst(): void;
|
|
90
|
+
/**
|
|
91
|
+
* Focuses the last focusable in {@link #items}.
|
|
92
|
+
*/
|
|
93
|
+
focusLast(): void;
|
|
94
|
+
/**
|
|
95
|
+
* Registers a list item view in the focus tracker.
|
|
96
|
+
*
|
|
97
|
+
* @param item The list item view to be registered.
|
|
98
|
+
* @param index Index of the list item view in the {@link #items} collection. If not specified, the item will be added at the end.
|
|
99
|
+
*/
|
|
100
|
+
private _registerFocusableListItem;
|
|
101
|
+
/**
|
|
102
|
+
* Removes a list item view from the focus tracker.
|
|
103
|
+
*
|
|
104
|
+
* @param item The list item view to be removed.
|
|
105
|
+
*/
|
|
106
|
+
private _deregisterFocusableListItem;
|
|
107
|
+
/**
|
|
108
|
+
* Gets a callback that will be called when the `items` collection of a {@link module:ui/list/listitemgroupview~ListItemGroupView}
|
|
109
|
+
* change.
|
|
110
|
+
*
|
|
111
|
+
* @param groupView The group view for which the callback will be created.
|
|
112
|
+
* @returns The callback function to be used for the items `change` event listener in a group.
|
|
113
|
+
*/
|
|
114
|
+
private _getOnGroupItemsChangeCallback;
|
|
115
|
+
/**
|
|
116
|
+
* Registers a list item group view (and its children) in the focus tracker.
|
|
117
|
+
*
|
|
118
|
+
* @param groupView A group view to be registered.
|
|
119
|
+
* @param groupIndex Index of the group view in the {@link #items} collection. If not specified, the group will be added at the end.
|
|
120
|
+
*/
|
|
121
|
+
private _registerFocusableItemsGroup;
|
|
122
|
+
/**
|
|
123
|
+
* Removes a list item group view (and its children) from the focus tracker.
|
|
124
|
+
*
|
|
125
|
+
* @param groupView The group view to be removed.
|
|
126
|
+
*/
|
|
127
|
+
private _deregisterFocusableItemsGroup;
|
|
128
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* @module ui/menubar/menubarmenubuttonview
|
|
11
|
+
*/
|
|
12
|
+
import IconView from '../icon/iconview.js';
|
|
13
|
+
import ButtonView from '../button/buttonview.js';
|
|
14
|
+
import type { Locale } from '@ckeditor/ckeditor5-utils';
|
|
15
|
+
import '../../theme/components/menubar/menubarmenubutton.css';
|
|
16
|
+
/**
|
|
17
|
+
* A menu {@link module:ui/menubar/menubarmenuview~MenuBarMenuView#buttonView} class. Buttons like this one
|
|
18
|
+
* open both top-level bar menus as well as sub-menus.
|
|
19
|
+
*/
|
|
20
|
+
export default class MenuBarMenuButtonView extends ButtonView {
|
|
21
|
+
/**
|
|
22
|
+
* An icon that displays an arrow to indicate a direction of the menu.
|
|
23
|
+
*/
|
|
24
|
+
readonly arrowView: IconView;
|
|
25
|
+
/**
|
|
26
|
+
* Creates an instance of the menu bar button view.
|
|
27
|
+
*
|
|
28
|
+
* @param locale The localization services instance.
|
|
29
|
+
*/
|
|
30
|
+
constructor(locale: Locale);
|
|
31
|
+
/**
|
|
32
|
+
* @inheritDoc
|
|
33
|
+
*/
|
|
34
|
+
render(): void;
|
|
35
|
+
/**
|
|
36
|
+
* Creates the {@link #arrowView} instance.
|
|
37
|
+
*/
|
|
38
|
+
private _createArrowView;
|
|
39
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* @module ui/menubar/menubarmenulistitembuttonview
|
|
11
|
+
*/
|
|
12
|
+
import type { Locale } from '@ckeditor/ckeditor5-utils';
|
|
13
|
+
import ButtonView from '../button/buttonview.js';
|
|
14
|
+
import '../../theme/components/menubar/menubarmenulistitembutton.css';
|
|
15
|
+
/**
|
|
16
|
+
* A menu bar list button view. Buttons like this one execute user actions.
|
|
17
|
+
*/
|
|
18
|
+
export default class MenuBarMenuListItemButtonView extends ButtonView {
|
|
19
|
+
/**
|
|
20
|
+
* Creates an instance of the menu bar list button view.
|
|
21
|
+
*
|
|
22
|
+
* @param locale The localization services instance.
|
|
23
|
+
*/
|
|
24
|
+
constructor(locale: Locale);
|
|
25
|
+
}
|
|
@@ -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
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* @module ui/menubar/menubarmenulistitemfiledialogbuttonview
|
|
11
|
+
*/
|
|
12
|
+
import type { Locale } from '@ckeditor/ckeditor5-utils';
|
|
13
|
+
import FileDialogButtonView from '../button/filedialogbuttonview.js';
|
|
14
|
+
import '../../theme/components/menubar/menubarmenulistitembutton.css';
|
|
15
|
+
/**
|
|
16
|
+
* A menu bar list file dialog button view. Buttons like this one execute user actions.
|
|
17
|
+
*
|
|
18
|
+
* This component provides a button that opens the native file selection dialog.
|
|
19
|
+
*/
|
|
20
|
+
export default class MenuBarMenuListItemFileDialogButtonView extends FileDialogButtonView {
|
|
21
|
+
/**
|
|
22
|
+
* Creates an instance of the menu bar list button view.
|
|
23
|
+
*
|
|
24
|
+
* @param locale The localization services instance.
|
|
25
|
+
*/
|
|
26
|
+
constructor(locale: Locale);
|
|
27
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* @module ui/menubar/menubarmenulistitemview
|
|
11
|
+
*/
|
|
12
|
+
import type { Locale } from '@ckeditor/ckeditor5-utils';
|
|
13
|
+
import ListItemView from '../list/listitemview.js';
|
|
14
|
+
import type MenuBarMenuView from './menubarmenuview.js';
|
|
15
|
+
import '../../theme/components/menubar/menubarmenulistitem.css';
|
|
16
|
+
/**
|
|
17
|
+
* A menu bar list item view, a child of {@link module:ui/menubar/menubarmenulistview~MenuBarMenuListView}.
|
|
18
|
+
*
|
|
19
|
+
* Populate this item with a {@link module:ui/menubar/menubarmenulistitembuttonview~MenuBarMenuListItemButtonView} instance
|
|
20
|
+
* or a {@link module:ui/menubar/menubarmenuview~MenuBarMenuView} instance to create a sub-menu.
|
|
21
|
+
*/
|
|
22
|
+
export default class MenuBarMenuListItemView extends ListItemView {
|
|
23
|
+
/**
|
|
24
|
+
* Creates an instance of the list item view.
|
|
25
|
+
*
|
|
26
|
+
* @param locale The localization services instance.
|
|
27
|
+
*/
|
|
28
|
+
constructor(locale: Locale, parentMenuView: MenuBarMenuView);
|
|
29
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* @module ui/menubar/menubarmenulistview
|
|
11
|
+
*/
|
|
12
|
+
import type { Locale } from '@ckeditor/ckeditor5-utils';
|
|
13
|
+
import ListView from '../list/listview.js';
|
|
14
|
+
/**
|
|
15
|
+
* A list of menu bar items, a child of {@link module:ui/menubar/menubarmenuview~MenuBarMenuView#panelView}.
|
|
16
|
+
*
|
|
17
|
+
* Use this class to create a list of items (options, buttons) to be displayed in a menu bar.
|
|
18
|
+
*
|
|
19
|
+
* To populate this list, use {@link module:ui/menubar/menubarmenulistitemview~MenuBarMenuListItemView} instances.
|
|
20
|
+
*/
|
|
21
|
+
export default class MenuBarMenuListView extends ListView {
|
|
22
|
+
/**
|
|
23
|
+
* Creates an instance of the list view.
|
|
24
|
+
*
|
|
25
|
+
* @param locale The localization services instance.
|
|
26
|
+
*/
|
|
27
|
+
constructor(locale: Locale);
|
|
28
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* @module ui/menubar/menubarmenupanelview
|
|
11
|
+
*/
|
|
12
|
+
import { type Locale } from '@ckeditor/ckeditor5-utils';
|
|
13
|
+
import type { FocusableView } from '../focuscycler.js';
|
|
14
|
+
import type ViewCollection from '../viewcollection.js';
|
|
15
|
+
import View from '../view.js';
|
|
16
|
+
import '../../theme/components/menubar/menubarmenupanel.css';
|
|
17
|
+
/**
|
|
18
|
+
* A view representing a {@link module:ui/menubar/menubarmenuview~MenuBarMenuView#panelView} of a menu.
|
|
19
|
+
*/
|
|
20
|
+
export default class MenuBarMenuPanelView extends View implements FocusableView {
|
|
21
|
+
/**
|
|
22
|
+
* Collection of the child views in this panel.
|
|
23
|
+
*/
|
|
24
|
+
readonly children: ViewCollection<FocusableView>;
|
|
25
|
+
/**
|
|
26
|
+
* Controls whether the panel is visible.
|
|
27
|
+
*
|
|
28
|
+
* @observable
|
|
29
|
+
*/
|
|
30
|
+
isVisible: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* The name of the position of the panel, relative to the parent.
|
|
33
|
+
*
|
|
34
|
+
* This property is reflected in the CSS class suffix set to {@link #element} that controls
|
|
35
|
+
* the position of the panel.
|
|
36
|
+
*
|
|
37
|
+
* @observable
|
|
38
|
+
* @default 'se'
|
|
39
|
+
*/
|
|
40
|
+
position: MenuBarMenuPanelPosition;
|
|
41
|
+
/**
|
|
42
|
+
* Creates an instance of the menu panel view.
|
|
43
|
+
*
|
|
44
|
+
* @param locale The localization services instance.
|
|
45
|
+
*/
|
|
46
|
+
constructor(locale?: Locale);
|
|
47
|
+
/**
|
|
48
|
+
* Focuses the first child of the panel (default) or the last one if the `direction` is `-1`.
|
|
49
|
+
*/
|
|
50
|
+
focus(direction?: -1 | 1): void;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* The names of the positions of the {@link module:ui/menubar/menubarmenupanelview~MenuBarMenuPanelView}.
|
|
54
|
+
*
|
|
55
|
+
* They are reflected as CSS class suffixes on the panel view element.
|
|
56
|
+
*/
|
|
57
|
+
export type MenuBarMenuPanelPosition = 'se' | 'sw' | 'ne' | 'nw' | 'w' | 'e';
|