@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,75 @@
|
|
|
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/editorui/poweredby
|
|
11
|
+
*/
|
|
12
|
+
import type { Editor } from '@ckeditor/ckeditor5-core';
|
|
13
|
+
declare const PoweredBy_base: {
|
|
14
|
+
new (): import("@ckeditor/ckeditor5-utils").DomEmitter;
|
|
15
|
+
prototype: import("@ckeditor/ckeditor5-utils").DomEmitter;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* A helper that enables the "powered by" feature in the editor and renders a link to the project's
|
|
19
|
+
* webpage next to the bottom of the editable element (editor root, source editing area, etc.) when the editor is focused.
|
|
20
|
+
*
|
|
21
|
+
* @private
|
|
22
|
+
*/
|
|
23
|
+
export default class PoweredBy extends PoweredBy_base {
|
|
24
|
+
/**
|
|
25
|
+
* Editor instance the helper was created for.
|
|
26
|
+
*/
|
|
27
|
+
private readonly editor;
|
|
28
|
+
/**
|
|
29
|
+
* A reference to the balloon panel hosting and positioning the "powered by" link and logo.
|
|
30
|
+
*/
|
|
31
|
+
private _balloonView;
|
|
32
|
+
/**
|
|
33
|
+
* A throttled version of the {@link #_showBalloon} method meant for frequent use to avoid performance loss.
|
|
34
|
+
*/
|
|
35
|
+
private _showBalloonThrottled;
|
|
36
|
+
/**
|
|
37
|
+
* A reference to the last editable element (root, source editing area, etc.) focused by the user.
|
|
38
|
+
* Since the focus can move to other focusable elements in the UI, this reference allows positioning the balloon over the
|
|
39
|
+
* right element whether the user is typing or using the UI.
|
|
40
|
+
*/
|
|
41
|
+
private _lastFocusedEditableElement;
|
|
42
|
+
/**
|
|
43
|
+
* Creates a "powered by" helper for a given editor. The feature is initialized on Editor#ready
|
|
44
|
+
* event.
|
|
45
|
+
*
|
|
46
|
+
* @param editor
|
|
47
|
+
*/
|
|
48
|
+
constructor(editor: Editor);
|
|
49
|
+
/**
|
|
50
|
+
* Destroys the "powered by" helper along with its view.
|
|
51
|
+
*/
|
|
52
|
+
destroy(): void;
|
|
53
|
+
/**
|
|
54
|
+
* Enables "powered by" label once the editor (ui) is ready.
|
|
55
|
+
*/
|
|
56
|
+
private _handleEditorReady;
|
|
57
|
+
/**
|
|
58
|
+
* Creates an instance of the {@link module:ui/panel/balloon/balloonpanelview~BalloonPanelView balloon panel}
|
|
59
|
+
* with the "powered by" view inside ready for positioning.
|
|
60
|
+
*/
|
|
61
|
+
private _createBalloonView;
|
|
62
|
+
/**
|
|
63
|
+
* Attempts to display the balloon with the "powered by" view.
|
|
64
|
+
*/
|
|
65
|
+
private _showBalloon;
|
|
66
|
+
/**
|
|
67
|
+
* Hides the "powered by" balloon if already visible.
|
|
68
|
+
*/
|
|
69
|
+
private _hideBalloon;
|
|
70
|
+
/**
|
|
71
|
+
* Updates the {@link #_lastFocusedEditableElement} based on the state of the global focus tracker.
|
|
72
|
+
*/
|
|
73
|
+
private _updateLastFocusedEditableElement;
|
|
74
|
+
}
|
|
75
|
+
export {};
|
|
@@ -0,0 +1,249 @@
|
|
|
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/focuscycler
|
|
11
|
+
*/
|
|
12
|
+
import { type ArrayOrItem, type FocusTracker, type KeystrokeHandler } from '@ckeditor/ckeditor5-utils';
|
|
13
|
+
import type View from './view.js';
|
|
14
|
+
import type ViewCollection from './viewcollection.js';
|
|
15
|
+
declare const FocusCycler_base: {
|
|
16
|
+
new (): import("@ckeditor/ckeditor5-utils").Emitter;
|
|
17
|
+
prototype: import("@ckeditor/ckeditor5-utils").Emitter;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* A utility class that helps cycling over {@link module:ui/focuscycler~FocusableView focusable views} in a
|
|
21
|
+
* {@link module:ui/viewcollection~ViewCollection} when the focus is tracked by the
|
|
22
|
+
* {@link module:utils/focustracker~FocusTracker} instance. It helps implementing keyboard
|
|
23
|
+
* navigation in HTML forms, toolbars, lists and the like.
|
|
24
|
+
*
|
|
25
|
+
* To work properly it requires:
|
|
26
|
+
* * a collection of focusable (HTML `tabindex` attribute) views that implement the `focus()` method,
|
|
27
|
+
* * an associated focus tracker to determine which view is focused.
|
|
28
|
+
*
|
|
29
|
+
* A simple cycler setup can look like this:
|
|
30
|
+
*
|
|
31
|
+
* ```ts
|
|
32
|
+
* const focusables = new ViewCollection<FocusableView>();
|
|
33
|
+
* const focusTracker = new FocusTracker();
|
|
34
|
+
*
|
|
35
|
+
* // Add focusable views to the focus tracker.
|
|
36
|
+
* focusTracker.add( ... );
|
|
37
|
+
* ```
|
|
38
|
+
*
|
|
39
|
+
* Then, the cycler can be used manually:
|
|
40
|
+
*
|
|
41
|
+
* ```ts
|
|
42
|
+
* const cycler = new FocusCycler( { focusables, focusTracker } );
|
|
43
|
+
*
|
|
44
|
+
* // Will focus the first focusable view in #focusables.
|
|
45
|
+
* cycler.focusFirst();
|
|
46
|
+
*
|
|
47
|
+
* // Will log the next focusable item in #focusables.
|
|
48
|
+
* console.log( cycler.next );
|
|
49
|
+
* ```
|
|
50
|
+
*
|
|
51
|
+
* Alternatively, it can work side by side with the {@link module:utils/keystrokehandler~KeystrokeHandler}:
|
|
52
|
+
*
|
|
53
|
+
* ```ts
|
|
54
|
+
* const keystrokeHandler = new KeystrokeHandler();
|
|
55
|
+
*
|
|
56
|
+
* // Activate the keystroke handler.
|
|
57
|
+
* keystrokeHandler.listenTo( sourceOfEvents );
|
|
58
|
+
*
|
|
59
|
+
* const cycler = new FocusCycler( {
|
|
60
|
+
* focusables, focusTracker, keystrokeHandler,
|
|
61
|
+
* actions: {
|
|
62
|
+
* // When arrowup of arrowleft is detected by the #keystrokeHandler,
|
|
63
|
+
* // focusPrevious() will be called on the cycler.
|
|
64
|
+
* focusPrevious: [ 'arrowup', 'arrowleft' ],
|
|
65
|
+
* }
|
|
66
|
+
* } );
|
|
67
|
+
* ```
|
|
68
|
+
*
|
|
69
|
+
* Check out the {@glink framework/deep-dive/ui/focus-tracking "Deep dive into focus tracking"} guide to learn more.
|
|
70
|
+
*/
|
|
71
|
+
export default class FocusCycler extends FocusCycler_base {
|
|
72
|
+
/**
|
|
73
|
+
* A {@link module:ui/focuscycler~FocusableView focusable views} collection that the cycler operates on.
|
|
74
|
+
*/
|
|
75
|
+
readonly focusables: ViewCollection<FocusableView>;
|
|
76
|
+
/**
|
|
77
|
+
* A focus tracker instance that the cycler uses to determine the current focus
|
|
78
|
+
* state in {@link #focusables}.
|
|
79
|
+
*/
|
|
80
|
+
readonly focusTracker: FocusTracker;
|
|
81
|
+
/**
|
|
82
|
+
* An instance of the {@link module:utils/keystrokehandler~KeystrokeHandler}
|
|
83
|
+
* which can respond to certain keystrokes and cycle the focus.
|
|
84
|
+
*/
|
|
85
|
+
readonly keystrokeHandler?: KeystrokeHandler;
|
|
86
|
+
/**
|
|
87
|
+
* Actions that the cycler can take when a keystroke is pressed. Requires
|
|
88
|
+
* `options.keystrokeHandler` to be passed and working. When an action is
|
|
89
|
+
* performed, `preventDefault` and `stopPropagation` will be called on the event
|
|
90
|
+
* the keystroke fired in the DOM.
|
|
91
|
+
*
|
|
92
|
+
* ```ts
|
|
93
|
+
* actions: {
|
|
94
|
+
* // Will call #focusPrevious() when arrowleft or arrowup is pressed.
|
|
95
|
+
* focusPrevious: [ 'arrowleft', 'arrowup' ],
|
|
96
|
+
*
|
|
97
|
+
* // Will call #focusNext() when arrowdown is pressed.
|
|
98
|
+
* focusNext: 'arrowdown'
|
|
99
|
+
* }
|
|
100
|
+
* ```
|
|
101
|
+
*/
|
|
102
|
+
readonly actions?: FocusCyclerActions;
|
|
103
|
+
/**
|
|
104
|
+
* Creates an instance of the focus cycler utility.
|
|
105
|
+
*
|
|
106
|
+
* @param options Configuration options.
|
|
107
|
+
*/
|
|
108
|
+
constructor(options: {
|
|
109
|
+
focusables: ViewCollection<FocusableView>;
|
|
110
|
+
focusTracker: FocusTracker;
|
|
111
|
+
keystrokeHandler?: KeystrokeHandler;
|
|
112
|
+
actions?: FocusCyclerActions;
|
|
113
|
+
});
|
|
114
|
+
/**
|
|
115
|
+
* Returns the first focusable view in {@link #focusables}.
|
|
116
|
+
* Returns `null` if there is none.
|
|
117
|
+
*
|
|
118
|
+
* **Note**: Hidden views (e.g. with `display: none`) are ignored.
|
|
119
|
+
*/
|
|
120
|
+
get first(): FocusableView | null;
|
|
121
|
+
/**
|
|
122
|
+
* Returns the last focusable view in {@link #focusables}.
|
|
123
|
+
* Returns `null` if there is none.
|
|
124
|
+
*
|
|
125
|
+
* **Note**: Hidden views (e.g. with `display: none`) are ignored.
|
|
126
|
+
*/
|
|
127
|
+
get last(): FocusableView | null;
|
|
128
|
+
/**
|
|
129
|
+
* Returns the next focusable view in {@link #focusables} based on {@link #current}.
|
|
130
|
+
* Returns `null` if there is none.
|
|
131
|
+
*
|
|
132
|
+
* **Note**: Hidden views (e.g. with `display: none`) are ignored.
|
|
133
|
+
*/
|
|
134
|
+
get next(): FocusableView | null;
|
|
135
|
+
/**
|
|
136
|
+
* Returns the previous focusable view in {@link #focusables} based on {@link #current}.
|
|
137
|
+
* Returns `null` if there is none.
|
|
138
|
+
*
|
|
139
|
+
* **Note**: Hidden views (e.g. with `display: none`) are ignored.
|
|
140
|
+
*/
|
|
141
|
+
get previous(): FocusableView | null;
|
|
142
|
+
/**
|
|
143
|
+
* An index of the view in the {@link #focusables} which is focused according
|
|
144
|
+
* to {@link #focusTracker}. Returns `null` when there is no such view.
|
|
145
|
+
*/
|
|
146
|
+
get current(): number | null;
|
|
147
|
+
/**
|
|
148
|
+
* Focuses the {@link #first} item in {@link #focusables}.
|
|
149
|
+
*
|
|
150
|
+
* **Note**: Hidden views (e.g. with `display: none`) are ignored.
|
|
151
|
+
*/
|
|
152
|
+
focusFirst(): void;
|
|
153
|
+
/**
|
|
154
|
+
* Focuses the {@link #last} item in {@link #focusables}.
|
|
155
|
+
*
|
|
156
|
+
* **Note**: Hidden views (e.g. with `display: none`) are ignored.
|
|
157
|
+
*/
|
|
158
|
+
focusLast(): void;
|
|
159
|
+
/**
|
|
160
|
+
* Focuses the {@link #next} item in {@link #focusables}.
|
|
161
|
+
*
|
|
162
|
+
* **Note**: Hidden views (e.g. with `display: none`) are ignored.
|
|
163
|
+
*/
|
|
164
|
+
focusNext(): void;
|
|
165
|
+
/**
|
|
166
|
+
* Focuses the {@link #previous} item in {@link #focusables}.
|
|
167
|
+
*
|
|
168
|
+
* **Note**: Hidden views (e.g. with `display: none`) are ignored.
|
|
169
|
+
*/
|
|
170
|
+
focusPrevious(): void;
|
|
171
|
+
/**
|
|
172
|
+
* Focuses the given view if it exists.
|
|
173
|
+
*
|
|
174
|
+
* @param view The view to be focused
|
|
175
|
+
* @param direction The direction of the focus if the view has focusable children.
|
|
176
|
+
* @returns
|
|
177
|
+
*/
|
|
178
|
+
private _focus;
|
|
179
|
+
/**
|
|
180
|
+
* Returns the next or previous focusable view in {@link #focusables} with respect
|
|
181
|
+
* to {@link #current}.
|
|
182
|
+
*
|
|
183
|
+
* @param step Either `1` for checking forward from {@link #current} or `-1` for checking backwards.
|
|
184
|
+
*/
|
|
185
|
+
private _getDomFocusableItem;
|
|
186
|
+
}
|
|
187
|
+
/**
|
|
188
|
+
* A {@link module:ui/view~View} that can be focused (e.g. has `focus()` method).
|
|
189
|
+
*/
|
|
190
|
+
export type FocusableView = View & {
|
|
191
|
+
/**
|
|
192
|
+
* Focuses the view.
|
|
193
|
+
*
|
|
194
|
+
* @param direction This optional parameter helps improve the UX by providing additional information about the direction the focus moved
|
|
195
|
+
* (e.g. in a complex view or a form). It is useful for views that host multiple focusable children (e.g. lists, toolbars):
|
|
196
|
+
* * `1` indicates that the focus moved forward and, in most cases, the first child of the focused view should get focused,
|
|
197
|
+
* * `-1` indicates that the focus moved backwards, and the last focusable child should get focused
|
|
198
|
+
*
|
|
199
|
+
* See {@link module:ui/focuscycler~FocusCycler#event:forwardCycle} and {@link module:ui/focuscycler~FocusCycler#event:backwardCycle}
|
|
200
|
+
* to learn more.
|
|
201
|
+
*/
|
|
202
|
+
focus(direction?: 1 | -1): void;
|
|
203
|
+
};
|
|
204
|
+
/**
|
|
205
|
+
* A {@link module:ui/view~View} that hosts one or more of focusable children being managed by a {@link module:ui/focuscycler~FocusCycler}
|
|
206
|
+
* instance exposed under `focusCycler` property.
|
|
207
|
+
*/
|
|
208
|
+
export type ViewWithFocusCycler = FocusableView & {
|
|
209
|
+
focusCycler: FocusCycler;
|
|
210
|
+
};
|
|
211
|
+
export interface FocusCyclerActions {
|
|
212
|
+
focusFirst?: ArrayOrItem<string>;
|
|
213
|
+
focusLast?: ArrayOrItem<string>;
|
|
214
|
+
focusNext?: ArrayOrItem<string>;
|
|
215
|
+
focusPrevious?: ArrayOrItem<string>;
|
|
216
|
+
}
|
|
217
|
+
/**
|
|
218
|
+
* Fired when the focus cycler is about to move the focus from the last focusable item
|
|
219
|
+
* to the first one.
|
|
220
|
+
*
|
|
221
|
+
* @eventName ~FocusCycler#forwardCycle
|
|
222
|
+
*/
|
|
223
|
+
export type FocusCyclerForwardCycleEvent = {
|
|
224
|
+
name: 'forwardCycle';
|
|
225
|
+
args: [];
|
|
226
|
+
};
|
|
227
|
+
/**
|
|
228
|
+
* Fired when the focus cycler is about to move the focus from the first focusable item
|
|
229
|
+
* to the last one.
|
|
230
|
+
*
|
|
231
|
+
* @eventName ~FocusCycler#backwardCycle
|
|
232
|
+
*/
|
|
233
|
+
export type FocusCyclerBackwardCycleEvent = {
|
|
234
|
+
name: 'backwardCycle';
|
|
235
|
+
args: [];
|
|
236
|
+
};
|
|
237
|
+
/**
|
|
238
|
+
* Checks whether a view is {@link ~FocusableView}.
|
|
239
|
+
*
|
|
240
|
+
* @param view A view to be checked.
|
|
241
|
+
*/
|
|
242
|
+
export declare function isFocusable(view: View): view is FocusableView;
|
|
243
|
+
/**
|
|
244
|
+
* Checks whether a view is an instance of {@link ~ViewWithFocusCycler}.
|
|
245
|
+
*
|
|
246
|
+
* @param view A view to be checked.
|
|
247
|
+
*/
|
|
248
|
+
export declare function isViewWithFocusCycler(view: View): view is ViewWithFocusCycler;
|
|
249
|
+
export {};
|
|
@@ -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/formheader/formheaderview
|
|
11
|
+
*/
|
|
12
|
+
import View from '../view.js';
|
|
13
|
+
import type ViewCollection from '../viewcollection.js';
|
|
14
|
+
import IconView from '../icon/iconview.js';
|
|
15
|
+
import type { Locale } from '@ckeditor/ckeditor5-utils';
|
|
16
|
+
import '../../theme/components/formheader/formheader.css';
|
|
17
|
+
/**
|
|
18
|
+
* The class component representing a form header view. It should be used in more advanced forms to
|
|
19
|
+
* describe the main purpose of the form.
|
|
20
|
+
*
|
|
21
|
+
* By default the component contains a bolded label view that has to be set. The label is usually a short (at most 3-word) string.
|
|
22
|
+
* The component can also be extended by any other elements, like: icons, dropdowns, etc.
|
|
23
|
+
*
|
|
24
|
+
* It is used i.a.
|
|
25
|
+
* by {@link module:table/tablecellproperties/ui/tablecellpropertiesview~TableCellPropertiesView}
|
|
26
|
+
* and {@link module:special-characters/ui/specialcharactersnavigationview~SpecialCharactersNavigationView}.
|
|
27
|
+
*
|
|
28
|
+
* The latter is an example, where the component has been extended by {@link module:ui/dropdown/dropdownview~DropdownView} view.
|
|
29
|
+
*/
|
|
30
|
+
export default class FormHeaderView extends View {
|
|
31
|
+
/**
|
|
32
|
+
* A collection of header items.
|
|
33
|
+
*/
|
|
34
|
+
readonly children: ViewCollection;
|
|
35
|
+
/**
|
|
36
|
+
* The label of the header.
|
|
37
|
+
*
|
|
38
|
+
* @observable
|
|
39
|
+
*/
|
|
40
|
+
label: string;
|
|
41
|
+
/**
|
|
42
|
+
* An additional CSS class added to the {@link #element}.
|
|
43
|
+
*
|
|
44
|
+
* @observable
|
|
45
|
+
*/
|
|
46
|
+
class: string | null;
|
|
47
|
+
/**
|
|
48
|
+
* The icon view instance. Defined only if icon was passed in the constructor's options.
|
|
49
|
+
*/
|
|
50
|
+
readonly iconView?: IconView;
|
|
51
|
+
/**
|
|
52
|
+
* Creates an instance of the form header class.
|
|
53
|
+
*
|
|
54
|
+
* @param locale The locale instance.
|
|
55
|
+
* @param options.label A label.
|
|
56
|
+
* @param options.class An additional class.
|
|
57
|
+
*/
|
|
58
|
+
constructor(locale: Locale | undefined, options?: {
|
|
59
|
+
label?: string | null;
|
|
60
|
+
class?: string | null;
|
|
61
|
+
icon?: string | null;
|
|
62
|
+
});
|
|
63
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
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/highlightedtext/highlightedtextview
|
|
11
|
+
*/
|
|
12
|
+
import View from '../view.js';
|
|
13
|
+
import '../../theme/components/highlightedtext/highlightedtext.css';
|
|
14
|
+
/**
|
|
15
|
+
* A class representing a view that displays a text which subset can be highlighted using the
|
|
16
|
+
* {@link #highlightText} method.
|
|
17
|
+
*/
|
|
18
|
+
export default class HighlightedTextView extends View {
|
|
19
|
+
/**
|
|
20
|
+
* The text that can be highlighted using the {@link #highlightText} method.
|
|
21
|
+
*
|
|
22
|
+
* **Note:** When this property changes, the previous highlighting is removed.
|
|
23
|
+
*
|
|
24
|
+
* @observable
|
|
25
|
+
*/
|
|
26
|
+
text: string | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* @inheritDoc
|
|
29
|
+
*/
|
|
30
|
+
constructor();
|
|
31
|
+
/**
|
|
32
|
+
* Highlights view's {@link #text} according to the specified `RegExp`. If the passed RegExp is `null`, the
|
|
33
|
+
* highlighting is removed
|
|
34
|
+
*
|
|
35
|
+
* @param regExp
|
|
36
|
+
*/
|
|
37
|
+
highlightText(regExp: RegExp | null): void;
|
|
38
|
+
/**
|
|
39
|
+
* Updates element's `innerHTML` with the passed content.
|
|
40
|
+
*/
|
|
41
|
+
private _updateInnerHTML;
|
|
42
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* @module ui/icon/iconview
|
|
11
|
+
*/
|
|
12
|
+
import View from '../view.js';
|
|
13
|
+
import '../../theme/components/icon/icon.css';
|
|
14
|
+
/**
|
|
15
|
+
* The icon view class.
|
|
16
|
+
*/
|
|
17
|
+
export default class IconView extends View {
|
|
18
|
+
/**
|
|
19
|
+
* The SVG source of the icon.
|
|
20
|
+
*
|
|
21
|
+
* The user must provide the entire XML string, not just the path. See the
|
|
22
|
+
* {@glink framework/architecture/ui-library#setting-label-icon-and-tooltip UI library} guide for details.
|
|
23
|
+
*
|
|
24
|
+
* @observable
|
|
25
|
+
*/
|
|
26
|
+
content: string | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* This attribute specifies the boundaries to which the
|
|
29
|
+
* icon content should stretch.
|
|
30
|
+
*
|
|
31
|
+
* @observable
|
|
32
|
+
* @default '0 0 20 20'
|
|
33
|
+
*/
|
|
34
|
+
viewBox: string;
|
|
35
|
+
/**
|
|
36
|
+
* The fill color of the child `path.ck-icon__fill`.
|
|
37
|
+
*
|
|
38
|
+
* @observable
|
|
39
|
+
* @default ''
|
|
40
|
+
*/
|
|
41
|
+
fillColor: string;
|
|
42
|
+
/**
|
|
43
|
+
* When set true (default), all parts of the icon inherit the fill color from the CSS `color` property of the
|
|
44
|
+
* icon's DOM parent.
|
|
45
|
+
*
|
|
46
|
+
* This effectively makes the icon monochromatic and allows it to change its fill color dynamically, for instance,
|
|
47
|
+
* when a {@link module:ui/button/buttonview~ButtonView} displays an icon and it switches between different states
|
|
48
|
+
* (pushed, hovered, etc.) the icon will follow along.
|
|
49
|
+
*
|
|
50
|
+
* **Note**: For the monochromatic icon to render properly, it must be made up of shapes that can be filled
|
|
51
|
+
* with color instead of, for instance, paths with strokes. Be sure to use the *outline stroke* tool
|
|
52
|
+
* (the name could be different in your vector graphics editor) before exporting your icon. Also, remove any
|
|
53
|
+
* excess `fill="..."` attributes that could break the color inheritance.
|
|
54
|
+
*
|
|
55
|
+
* **Note**: If you want to preserve the original look of your icon and disable dynamic color inheritance,
|
|
56
|
+
* set this flag to `false`.
|
|
57
|
+
*
|
|
58
|
+
* @observable
|
|
59
|
+
* @default true
|
|
60
|
+
*/
|
|
61
|
+
isColorInherited: boolean;
|
|
62
|
+
/**
|
|
63
|
+
* Controls whether the icon is visible.
|
|
64
|
+
*
|
|
65
|
+
* @observable
|
|
66
|
+
* @default true
|
|
67
|
+
*/
|
|
68
|
+
isVisible: boolean;
|
|
69
|
+
/**
|
|
70
|
+
* A list of presentational attributes that can be set on the `<svg>` element and should be preserved
|
|
71
|
+
* when the icon {@link module:ui/icon/iconview~IconView#content content} is loaded.
|
|
72
|
+
*
|
|
73
|
+
* See the [specification](https://www.w3.org/TR/SVG/styling.html#TermPresentationAttribute) to learn more.
|
|
74
|
+
*/
|
|
75
|
+
private static presentationalAttributeNames;
|
|
76
|
+
/**
|
|
77
|
+
* @inheritDoc
|
|
78
|
+
*/
|
|
79
|
+
constructor();
|
|
80
|
+
/**
|
|
81
|
+
* @inheritDoc
|
|
82
|
+
*/
|
|
83
|
+
render(): void;
|
|
84
|
+
/**
|
|
85
|
+
* Updates the {@link #element} with the value of {@link #content}.
|
|
86
|
+
*/
|
|
87
|
+
private _updateXMLContent;
|
|
88
|
+
/**
|
|
89
|
+
* Fills all child `path.ck-icon__fill` with the `#fillColor`.
|
|
90
|
+
*/
|
|
91
|
+
private _colorFillPaths;
|
|
92
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
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/iframe/iframeview
|
|
11
|
+
*/
|
|
12
|
+
import View from '../view.js';
|
|
13
|
+
import type { Locale } from '@ckeditor/ckeditor5-utils';
|
|
14
|
+
/**
|
|
15
|
+
* The iframe view class.
|
|
16
|
+
*
|
|
17
|
+
* ```ts
|
|
18
|
+
* const iframe = new IframeView();
|
|
19
|
+
*
|
|
20
|
+
* iframe.render();
|
|
21
|
+
* document.body.appendChild( iframe.element );
|
|
22
|
+
*
|
|
23
|
+
* iframe.on( 'loaded', () => {
|
|
24
|
+
* console.log( 'The iframe has loaded', iframe.element.contentWindow );
|
|
25
|
+
* } );
|
|
26
|
+
*
|
|
27
|
+
* iframe.element.src = 'https://ckeditor.com';
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
export default class IframeView extends View<HTMLIFrameElement> {
|
|
31
|
+
/**
|
|
32
|
+
* Creates a new instance of the iframe view.
|
|
33
|
+
*
|
|
34
|
+
* @param locale The locale instance.
|
|
35
|
+
*/
|
|
36
|
+
constructor(locale?: Locale);
|
|
37
|
+
/**
|
|
38
|
+
* Renders the iframe's {@link #element} and returns a `Promise` for asynchronous
|
|
39
|
+
* child `contentDocument` loading process.
|
|
40
|
+
*
|
|
41
|
+
* @returns A promise which resolves once the iframe `contentDocument` has
|
|
42
|
+
* been {@link #event:loaded}.
|
|
43
|
+
*/
|
|
44
|
+
render(): Promise<unknown>;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Fired when the DOM iframe's `contentDocument` finished loading.
|
|
48
|
+
*
|
|
49
|
+
* @eventName ~IframeView#loaded
|
|
50
|
+
*/
|
|
51
|
+
export type IframeViewLoadedEvent = {
|
|
52
|
+
name: 'loaded';
|
|
53
|
+
args: [];
|
|
54
|
+
};
|
|
@@ -0,0 +1,87 @@
|
|
|
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
|
|
11
|
+
*/
|
|
12
|
+
export { default as View, type UIViewRenderEvent } from './view.js';
|
|
13
|
+
export { default as clickOutsideHandler } from './bindings/clickoutsidehandler.js';
|
|
14
|
+
export { default as injectCssTransitionDisabler } from './bindings/injectcsstransitiondisabler.js';
|
|
15
|
+
export { default as CssTransitionDisablerMixin, type ViewWithCssTransitionDisabler } from './bindings/csstransitiondisablermixin.js';
|
|
16
|
+
export { default as submitHandler } from './bindings/submithandler.js';
|
|
17
|
+
export { default as addKeyboardHandlingForGrid } from './bindings/addkeyboardhandlingforgrid.js';
|
|
18
|
+
export { default as AccessibilityHelp } from './editorui/accessibilityhelp/accessibilityhelp.js';
|
|
19
|
+
export { default as BodyCollection } from './editorui/bodycollection.js';
|
|
20
|
+
export type { default as Button, ButtonExecuteEvent } from './button/button.js';
|
|
21
|
+
export type { default as ButtonLabel } from './button/buttonlabel.js';
|
|
22
|
+
export { default as ButtonView } from './button/buttonview.js';
|
|
23
|
+
export { default as ButtonLabelView } from './button/buttonlabelview.js';
|
|
24
|
+
export { default as SwitchButtonView } from './button/switchbuttonview.js';
|
|
25
|
+
export { default as FileDialogButtonView } from './button/filedialogbuttonview.js';
|
|
26
|
+
export { default as CollapsibleView } from './collapsible/collapsibleview.js';
|
|
27
|
+
export * from './colorgrid/utils.js';
|
|
28
|
+
export { default as ColorGridView, type ColorDefinition } from './colorgrid/colorgridview.js';
|
|
29
|
+
export { default as ColorTileView } from './colorgrid/colortileview.js';
|
|
30
|
+
export { default as ColorPickerView } from './colorpicker/colorpickerview.js';
|
|
31
|
+
export type { ColorPickerConfig, ColorPickerViewConfig, ColorPickerOutputFormat } from './colorpicker/utils.js';
|
|
32
|
+
export { default as ColorSelectorView, type ColorSelectorExecuteEvent, type ColorSelectorColorPickerCancelEvent, type ColorSelectorColorPickerShowEvent } from './colorselector/colorselectorview.js';
|
|
33
|
+
export { default as ComponentFactory } from './componentfactory.js';
|
|
34
|
+
export { default as Dialog } from './dialog/dialog.js';
|
|
35
|
+
export { default as DialogView, DialogViewPosition, type DialogViewMoveToEvent } from './dialog/dialogview.js';
|
|
36
|
+
export { default as DropdownView } from './dropdown/dropdownview.js';
|
|
37
|
+
export { default as DropdownPanelView } from './dropdown/dropdownpanelview.js';
|
|
38
|
+
export { default as DropdownButtonView } from './dropdown/button/dropdownbuttonview.js';
|
|
39
|
+
export { default as SplitButtonView } from './dropdown/button/splitbuttonview.js';
|
|
40
|
+
export * from './dropdown/utils.js';
|
|
41
|
+
export { default as EditorUI, type EditorUIReadyEvent, type EditorUIUpdateEvent } from './editorui/editorui.js';
|
|
42
|
+
export { default as EditorUIView } from './editorui/editoruiview.js';
|
|
43
|
+
export { default as BoxedEditorUIView } from './editorui/boxed/boxededitoruiview.js';
|
|
44
|
+
export { default as InlineEditableUIView } from './editableui/inline/inlineeditableuiview.js';
|
|
45
|
+
export { default as FormHeaderView } from './formheader/formheaderview.js';
|
|
46
|
+
export { default as FocusCycler, type FocusableView, type ViewWithFocusCycler, type FocusCyclerForwardCycleEvent, type FocusCyclerBackwardCycleEvent, isViewWithFocusCycler, isFocusable } from './focuscycler.js';
|
|
47
|
+
export { default as IconView } from './icon/iconview.js';
|
|
48
|
+
export { default as InputView } from './input/inputview.js';
|
|
49
|
+
export { default as InputTextView } from './inputtext/inputtextview.js';
|
|
50
|
+
export { default as InputNumberView } from './inputnumber/inputnumberview.js';
|
|
51
|
+
export { default as TextareaView, type TextareaViewUpdateEvent } from './textarea/textareaview.js';
|
|
52
|
+
export { default as IframeView } from './iframe/iframeview.js';
|
|
53
|
+
export { default as LabelView } from './label/labelview.js';
|
|
54
|
+
export { type LabeledFieldViewCreator, default as LabeledFieldView } from './labeledfield/labeledfieldview.js';
|
|
55
|
+
export * from './labeledfield/utils.js';
|
|
56
|
+
export { default as ListItemGroupView } from './list/listitemgroupview.js';
|
|
57
|
+
export { default as ListItemView } from './list/listitemview.js';
|
|
58
|
+
export { default as ListSeparatorView } from './list/listseparatorview.js';
|
|
59
|
+
export { default as ListView } from './list/listview.js';
|
|
60
|
+
export { default as Notification } from './notification/notification.js';
|
|
61
|
+
export { default as ViewModel } from './model.js';
|
|
62
|
+
export { default as BalloonPanelView } from './panel/balloon/balloonpanelview.js';
|
|
63
|
+
export { default as ContextualBalloon } from './panel/balloon/contextualballoon.js';
|
|
64
|
+
export { default as StickyPanelView } from './panel/sticky/stickypanelview.js';
|
|
65
|
+
export { default as AutocompleteView, type AutocompleteViewConfig, type AutocompleteResultsView } from './autocomplete/autocompleteview.js';
|
|
66
|
+
export { default as SearchTextView, type SearchTextViewSearchEvent, type SearchTextViewConfig } from './search/text/searchtextview.js';
|
|
67
|
+
export { default as SearchInfoView } from './search/searchinfoview.js';
|
|
68
|
+
export type { default as FilteredView, FilteredViewExecuteEvent } from './search/filteredview.js';
|
|
69
|
+
export { default as HighlightedTextView } from './highlightedtext/highlightedtextview.js';
|
|
70
|
+
export { default as TooltipManager } from './tooltipmanager.js';
|
|
71
|
+
export { default as Template, type TemplateDefinition } from './template.js';
|
|
72
|
+
export { default as SpinnerView } from './spinner/spinnerview.js';
|
|
73
|
+
export { default as ToolbarView } from './toolbar/toolbarview.js';
|
|
74
|
+
export { default as ToolbarLineBreakView } from './toolbar/toolbarlinebreakview.js';
|
|
75
|
+
export { default as ToolbarSeparatorView } from './toolbar/toolbarseparatorview.js';
|
|
76
|
+
export { default as normalizeToolbarConfig } from './toolbar/normalizetoolbarconfig.js';
|
|
77
|
+
export { default as BalloonToolbar, type BalloonToolbarShowEvent } from './toolbar/balloon/balloontoolbar.js';
|
|
78
|
+
export { default as BlockToolbar } from './toolbar/block/blocktoolbar.js';
|
|
79
|
+
export { default as ViewCollection } from './viewcollection.js';
|
|
80
|
+
export { default as MenuBarView, type MenuBarConfig } from './menubar/menubarview.js';
|
|
81
|
+
export { default as MenuBarMenuView } from './menubar/menubarmenuview.js';
|
|
82
|
+
export { default as MenuBarMenuListView } from './menubar/menubarmenulistview.js';
|
|
83
|
+
export { default as MenuBarMenuListItemView } from './menubar/menubarmenulistitemview.js';
|
|
84
|
+
export { default as MenuBarMenuListItemButtonView } from './menubar/menubarmenulistitembuttonview.js';
|
|
85
|
+
export { default as MenuBarMenuListItemFileDialogButtonView } from './menubar/menubarmenulistitemfiledialogbuttonview.js';
|
|
86
|
+
export { normalizeMenuBarConfig, DefaultMenuBarItems, _initMenuBar } from './menubar/utils.js';
|
|
87
|
+
import './augmentation.js';
|