@ckeditor/ckeditor5-ui 40.2.0 → 41.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -8
- package/LICENSE.md +1 -1
- package/lang/contexts.json +3 -1
- package/lang/translations/ar.po +9 -1
- package/lang/translations/ast.po +9 -1
- package/lang/translations/az.po +9 -1
- package/lang/translations/bg.po +9 -1
- package/lang/translations/bn.po +9 -1
- package/lang/translations/ca.po +9 -1
- package/lang/translations/cs.po +9 -1
- package/lang/translations/da.po +9 -1
- package/lang/translations/de-ch.po +9 -1
- package/lang/translations/de.po +9 -1
- package/lang/translations/el.po +9 -1
- package/lang/translations/en-au.po +9 -1
- package/lang/translations/en-gb.po +9 -1
- package/lang/translations/en.po +9 -1
- package/lang/translations/eo.po +9 -1
- package/lang/translations/es.po +14 -6
- package/lang/translations/et.po +9 -1
- package/lang/translations/eu.po +9 -1
- package/lang/translations/fa.po +9 -1
- package/lang/translations/fi.po +9 -1
- package/lang/translations/fr.po +9 -1
- package/lang/translations/gl.po +9 -1
- package/lang/translations/he.po +9 -1
- package/lang/translations/hi.po +9 -1
- package/lang/translations/hr.po +9 -1
- package/lang/translations/hu.po +9 -1
- package/lang/translations/id.po +9 -1
- package/lang/translations/it.po +9 -1
- package/lang/translations/ja.po +9 -1
- package/lang/translations/km.po +9 -1
- package/lang/translations/kn.po +9 -1
- package/lang/translations/ko.po +9 -1
- package/lang/translations/ku.po +9 -1
- package/lang/translations/lt.po +9 -1
- package/lang/translations/lv.po +9 -1
- package/lang/translations/ms.po +9 -1
- package/lang/translations/nb.po +9 -1
- package/lang/translations/ne.po +9 -1
- package/lang/translations/nl.po +9 -1
- package/lang/translations/no.po +9 -1
- package/lang/translations/pl.po +9 -1
- package/lang/translations/pt-br.po +9 -1
- package/lang/translations/pt.po +9 -1
- package/lang/translations/ro.po +9 -1
- package/lang/translations/ru.po +9 -1
- package/lang/translations/sk.po +9 -1
- package/lang/translations/sl.po +9 -1
- package/lang/translations/sq.po +9 -1
- package/lang/translations/sr-latn.po +9 -1
- package/lang/translations/sr.po +9 -1
- package/lang/translations/sv.po +9 -1
- package/lang/translations/th.po +9 -1
- package/lang/translations/tk.po +9 -1
- package/lang/translations/tr.po +9 -1
- package/lang/translations/tt.po +9 -1
- package/lang/translations/ug.po +9 -1
- package/lang/translations/uk.po +9 -1
- package/lang/translations/ur.po +9 -1
- package/lang/translations/uz.po +9 -1
- package/lang/translations/vi.po +9 -1
- package/lang/translations/zh-cn.po +9 -1
- package/lang/translations/zh.po +9 -1
- package/package.json +4 -3
- package/src/arialiveannouncer.d.ts +14 -10
- package/src/arialiveannouncer.js +11 -8
- package/src/augmentation.d.ts +3 -2
- package/src/augmentation.js +1 -1
- package/src/autocomplete/autocompleteview.d.ts +4 -4
- package/src/autocomplete/autocompleteview.js +4 -3
- package/src/bindings/addkeyboardhandlingforgrid.d.ts +2 -2
- package/src/bindings/addkeyboardhandlingforgrid.js +1 -1
- package/src/bindings/clickoutsidehandler.d.ts +1 -1
- package/src/bindings/clickoutsidehandler.js +1 -1
- package/src/bindings/csstransitiondisablermixin.d.ts +2 -2
- package/src/bindings/csstransitiondisablermixin.js +1 -1
- package/src/bindings/draggableviewmixin.d.ts +46 -0
- package/src/bindings/draggableviewmixin.js +144 -0
- package/src/bindings/injectcsstransitiondisabler.d.ts +2 -2
- package/src/bindings/injectcsstransitiondisabler.js +1 -1
- package/src/bindings/preventdefault.d.ts +3 -3
- package/src/bindings/preventdefault.js +1 -1
- package/src/bindings/submithandler.d.ts +2 -2
- package/src/bindings/submithandler.js +1 -1
- package/src/button/button.d.ts +1 -1
- package/src/button/button.js +1 -1
- package/src/button/buttonlabel.d.ts +2 -2
- package/src/button/buttonlabel.js +1 -1
- package/src/button/buttonlabelview.d.ts +3 -3
- package/src/button/buttonlabelview.js +2 -2
- package/src/button/buttonview.d.ts +6 -6
- package/src/button/buttonview.js +4 -4
- package/src/button/switchbuttonview.d.ts +3 -3
- package/src/button/switchbuttonview.js +3 -3
- package/src/collapsible/collapsibleview.d.ts +7 -6
- package/src/collapsible/collapsibleview.js +3 -3
- package/src/colorgrid/colorgridview.d.ts +5 -5
- package/src/colorgrid/colorgridview.js +4 -4
- package/src/colorgrid/colortileview.d.ts +2 -2
- package/src/colorgrid/colortileview.js +2 -2
- package/src/colorgrid/utils.d.ts +1 -1
- package/src/colorgrid/utils.js +1 -1
- package/src/colorpicker/colorpickerview.d.ts +4 -4
- package/src/colorpicker/colorpickerview.js +5 -5
- package/src/colorpicker/utils.d.ts +1 -1
- package/src/colorpicker/utils.js +1 -1
- package/src/colorselector/colorgridsfragmentview.d.ts +9 -8
- package/src/colorselector/colorgridsfragmentview.js +10 -10
- package/src/colorselector/colorpickerfragmentview.d.ts +9 -8
- package/src/colorselector/colorpickerfragmentview.js +7 -8
- package/src/colorselector/colorselectorview.d.ts +9 -9
- package/src/colorselector/colorselectorview.js +6 -6
- package/src/colorselector/documentcolorcollection.d.ts +2 -2
- package/src/colorselector/documentcolorcollection.js +1 -1
- package/src/componentfactory.d.ts +2 -2
- package/src/componentfactory.js +1 -1
- package/src/dialog/dialog.d.ts +273 -0
- package/src/dialog/dialog.js +261 -0
- package/src/dialog/dialogactionsview.d.ts +69 -0
- package/src/dialog/dialogactionsview.js +98 -0
- package/src/dialog/dialogcontentview.d.ts +27 -0
- package/src/dialog/dialogcontentview.js +35 -0
- package/src/dialog/dialogview.d.ts +256 -0
- package/src/dialog/dialogview.js +466 -0
- package/src/dropdown/button/dropdownbutton.d.ts +3 -3
- package/src/dropdown/button/dropdownbutton.js +1 -1
- package/src/dropdown/button/dropdownbuttonview.d.ts +4 -4
- package/src/dropdown/button/dropdownbuttonview.js +3 -3
- package/src/dropdown/button/splitbuttonview.d.ts +7 -7
- package/src/dropdown/button/splitbuttonview.js +3 -3
- package/src/dropdown/dropdownpanelfocusable.d.ts +1 -1
- package/src/dropdown/dropdownpanelfocusable.js +1 -1
- package/src/dropdown/dropdownpanelview.d.ts +4 -4
- package/src/dropdown/dropdownpanelview.js +2 -2
- package/src/dropdown/dropdownview.d.ts +8 -8
- package/src/dropdown/dropdownview.js +5 -4
- package/src/dropdown/utils.d.ts +9 -9
- package/src/dropdown/utils.js +15 -15
- package/src/editableui/editableuiview.d.ts +3 -3
- package/src/editableui/editableuiview.js +2 -2
- package/src/editableui/inline/inlineeditableuiview.d.ts +4 -4
- package/src/editableui/inline/inlineeditableuiview.js +2 -2
- package/src/editorui/bodycollection.d.ts +3 -3
- package/src/editorui/bodycollection.js +3 -3
- package/src/editorui/boxed/boxededitoruiview.d.ts +3 -3
- package/src/editorui/boxed/boxededitoruiview.js +3 -3
- package/src/editorui/editorui.d.ts +7 -7
- package/src/editorui/editorui.js +5 -5
- package/src/editorui/editoruiview.d.ts +4 -4
- package/src/editorui/editoruiview.js +3 -3
- package/src/editorui/poweredby.d.ts +1 -1
- package/src/editorui/poweredby.js +4 -4
- package/src/focuscycler.d.ts +27 -8
- package/src/focuscycler.js +44 -15
- package/src/formheader/formheaderview.d.ts +4 -4
- package/src/formheader/formheaderview.js +3 -3
- package/src/highlightedtext/highlightedtextview.d.ts +2 -2
- package/src/highlightedtext/highlightedtextview.js +2 -2
- package/src/icon/iconview.d.ts +2 -2
- package/src/icon/iconview.js +4 -3
- package/src/iframe/iframeview.d.ts +2 -2
- package/src/iframe/iframeview.js +2 -2
- package/src/index.d.ts +67 -68
- package/src/index.js +63 -65
- package/src/input/inputbase.d.ts +2 -2
- package/src/input/inputbase.js +2 -2
- package/src/input/inputview.d.ts +2 -2
- package/src/input/inputview.js +2 -2
- package/src/inputnumber/inputnumberview.d.ts +2 -2
- package/src/inputnumber/inputnumberview.js +2 -2
- package/src/inputtext/inputtextview.d.ts +2 -2
- package/src/inputtext/inputtextview.js +2 -2
- package/src/label/labelview.d.ts +2 -2
- package/src/label/labelview.js +2 -2
- package/src/labeledfield/labeledfieldview.d.ts +5 -5
- package/src/labeledfield/labeledfieldview.js +3 -3
- package/src/labeledfield/utils.d.ts +14 -14
- package/src/labeledfield/utils.js +13 -13
- package/src/labeledinput/labeledinputview.d.ts +4 -4
- package/src/labeledinput/labeledinputview.js +3 -3
- package/src/list/listitemgroupview.d.ts +5 -5
- package/src/list/listitemgroupview.js +5 -5
- package/src/list/listitemview.d.ts +4 -4
- package/src/list/listitemview.js +2 -2
- package/src/list/listseparatorview.d.ts +2 -2
- package/src/list/listseparatorview.js +2 -2
- package/src/list/listview.d.ts +9 -8
- package/src/list/listview.js +6 -6
- package/src/model.d.ts +1 -1
- package/src/model.js +1 -1
- package/src/notification/notification.d.ts +1 -1
- package/src/notification/notification.js +1 -1
- package/src/panel/balloon/balloonpanelview.d.ts +4 -4
- package/src/panel/balloon/balloonpanelview.js +5 -4
- package/src/panel/balloon/contextualballoon.d.ts +5 -5
- package/src/panel/balloon/contextualballoon.js +7 -9
- package/src/panel/sticky/stickypanelview.d.ts +9 -9
- package/src/panel/sticky/stickypanelview.js +7 -7
- package/src/search/filteredview.d.ts +2 -2
- package/src/search/filteredview.js +1 -1
- package/src/search/searchinfoview.d.ts +3 -3
- package/src/search/searchinfoview.js +2 -2
- package/src/search/searchresultsview.d.ts +5 -5
- package/src/search/searchresultsview.js +3 -3
- package/src/search/text/searchtextqueryview.d.ts +5 -5
- package/src/search/text/searchtextqueryview.js +5 -5
- package/src/search/text/searchtextview.d.ts +12 -12
- package/src/search/text/searchtextview.js +6 -6
- package/src/spinner/spinnerview.d.ts +2 -2
- package/src/spinner/spinnerview.js +2 -2
- package/src/template.d.ts +3 -3
- package/src/template.js +3 -3
- package/src/textarea/textareaview.d.ts +18 -2
- package/src/textarea/textareaview.js +46 -6
- package/src/toolbar/balloon/balloontoolbar.d.ts +3 -3
- package/src/toolbar/balloon/balloontoolbar.js +5 -5
- package/src/toolbar/block/blockbuttonview.d.ts +2 -2
- package/src/toolbar/block/blockbuttonview.js +2 -2
- package/src/toolbar/block/blocktoolbar.d.ts +4 -4
- package/src/toolbar/block/blocktoolbar.js +6 -6
- package/src/toolbar/normalizetoolbarconfig.d.ts +1 -1
- package/src/toolbar/normalizetoolbarconfig.js +1 -1
- package/src/toolbar/toolbarlinebreakview.d.ts +2 -2
- package/src/toolbar/toolbarlinebreakview.js +2 -2
- package/src/toolbar/toolbarseparatorview.d.ts +2 -2
- package/src/toolbar/toolbarseparatorview.js +2 -2
- package/src/toolbar/toolbarview.d.ts +7 -6
- package/src/toolbar/toolbarview.js +17 -15
- package/src/tooltipmanager.d.ts +3 -3
- package/src/tooltipmanager.js +5 -4
- package/src/view.d.ts +3 -3
- package/src/view.js +3 -3
- package/src/viewcollection.d.ts +2 -2
- package/src/viewcollection.js +1 -1
- package/theme/components/arialiveannouncer/arialiveannouncer.css +1 -1
- package/theme/components/autocomplete/autocomplete.css +2 -2
- package/theme/components/button/button.css +1 -1
- package/theme/components/button/switchbutton.css +1 -1
- package/theme/components/collapsible/collapsible.css +1 -1
- package/theme/components/colorgrid/colorgrid.css +1 -1
- package/theme/components/colorpicker/colorpicker.css +1 -1
- package/theme/components/colorselector/colorselector.css +1 -1
- package/theme/components/dialog/dialog.css +39 -0
- package/theme/components/dialog/dialogactions.css +11 -0
- package/theme/components/dropdown/dropdown.css +3 -3
- package/theme/components/dropdown/listdropdown.css +1 -1
- package/theme/components/dropdown/splitbutton.css +1 -1
- package/theme/components/dropdown/toolbardropdown.css +1 -1
- package/theme/components/editorui/editorui.css +1 -1
- package/theme/components/formheader/formheader.css +1 -1
- package/theme/components/highlightedtext/highlightedtext.css +1 -1
- package/theme/components/icon/icon.css +1 -1
- package/theme/components/input/input.css +1 -1
- package/theme/components/label/label.css +1 -1
- package/theme/components/labeledfield/labeledfieldview.css +1 -1
- package/theme/components/labeledinput/labeledinput.css +1 -1
- package/theme/components/list/list.css +1 -1
- package/theme/components/panel/balloonpanel.css +2 -2
- package/theme/components/panel/balloonrotator.css +1 -1
- package/theme/components/panel/fakepanel.css +2 -2
- package/theme/components/panel/stickypanel.css +2 -2
- package/theme/components/responsive-form/responsiveform.css +1 -1
- package/theme/components/search/search.css +1 -1
- package/theme/components/spinner/spinner.css +1 -1
- package/theme/components/textarea/textarea.css +1 -1
- package/theme/components/toolbar/blocktoolbar.css +1 -1
- package/theme/components/toolbar/toolbar.css +1 -1
- package/theme/components/tooltip/tooltip.css +2 -2
- package/theme/globals/_hidden.css +1 -1
- package/theme/globals/_poweredby.css +2 -2
- package/theme/globals/_reset.css +1 -1
- package/theme/globals/_transition.css +1 -1
- package/theme/globals/_zindex.css +3 -2
- package/theme/globals/globals.css +1 -1
- package/theme/mixins/_dir.css +1 -1
- package/theme/mixins/_rwd.css +1 -1
- package/theme/mixins/_unselectable.css +1 -1
- package/theme/icons/color-palette.svg +0 -1
- package/theme/icons/next-arrow.svg +0 -1
- package/theme/icons/previous-arrow.svg +0 -1
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module ui/toolbar/toolbarview
|
|
7
7
|
*/
|
|
8
|
-
import View from '../view';
|
|
9
|
-
import FocusCycler from '../focuscycler';
|
|
10
|
-
import ToolbarSeparatorView from './toolbarseparatorview';
|
|
11
|
-
import ToolbarLineBreakView from './toolbarlinebreakview';
|
|
12
|
-
import preventDefault from '../bindings/preventdefault';
|
|
13
|
-
import { createDropdown, addToolbarToDropdown } from '../dropdown/utils';
|
|
14
|
-
import normalizeToolbarConfig from './normalizetoolbarconfig';
|
|
8
|
+
import View from '../view.js';
|
|
9
|
+
import FocusCycler, { isFocusable } from '../focuscycler.js';
|
|
10
|
+
import ToolbarSeparatorView from './toolbarseparatorview.js';
|
|
11
|
+
import ToolbarLineBreakView from './toolbarlinebreakview.js';
|
|
12
|
+
import preventDefault from '../bindings/preventdefault.js';
|
|
13
|
+
import { createDropdown, addToolbarToDropdown } from '../dropdown/utils.js';
|
|
14
|
+
import normalizeToolbarConfig from './normalizetoolbarconfig.js';
|
|
15
15
|
import { FocusTracker, KeystrokeHandler, Rect, ResizeObserver, global, isVisible, logWarning } from '@ckeditor/ckeditor5-utils';
|
|
16
16
|
import { icons } from '@ckeditor/ckeditor5-core';
|
|
17
17
|
import { isObject } from 'lodash-es';
|
|
@@ -387,7 +387,7 @@ class StaticLayout {
|
|
|
387
387
|
// 1:1 pass–through binding, all ToolbarView#items are visible.
|
|
388
388
|
view.itemsView.children.bindTo(view.items).using(item => item);
|
|
389
389
|
// 1:1 pass–through binding, all ToolbarView#items are focusable.
|
|
390
|
-
view.focusables.bindTo(view.items).using(item => item);
|
|
390
|
+
view.focusables.bindTo(view.items).using(item => isFocusable(item) ? item : null);
|
|
391
391
|
view.extendTemplate({
|
|
392
392
|
attributes: {
|
|
393
393
|
class: [
|
|
@@ -468,10 +468,10 @@ class DynamicGrouping {
|
|
|
468
468
|
this.groupedItemsDropdown = this._createGroupedItemsDropdown();
|
|
469
469
|
// Only those items that were not grouped are visible to the user.
|
|
470
470
|
view.itemsView.children.bindTo(this.ungroupedItems).using(item => item);
|
|
471
|
-
// Make sure all #items visible in the main space of the toolbar are "
|
|
472
|
-
this.ungroupedItems.on('change', this.
|
|
471
|
+
// Make sure all #items visible in the main space of the toolbar are "focuscyclable".
|
|
472
|
+
this.ungroupedItems.on('change', this._updateFocusCyclableItems.bind(this));
|
|
473
473
|
// Make sure the #groupedItemsDropdown is also included in cycling when it appears.
|
|
474
|
-
view.children.on('change', this.
|
|
474
|
+
view.children.on('change', this._updateFocusCyclableItems.bind(this));
|
|
475
475
|
// ToolbarView#items is dynamic. When an item is added or removed, it should be automatically
|
|
476
476
|
// represented in either grouped or ungrouped items at the right index.
|
|
477
477
|
// In other words #items == concat( #ungroupedItems, #groupedItems )
|
|
@@ -698,7 +698,7 @@ class DynamicGrouping {
|
|
|
698
698
|
return dropdown;
|
|
699
699
|
}
|
|
700
700
|
/**
|
|
701
|
-
* Updates the {@link module:ui/toolbar/toolbarview~ToolbarView#focusables focus–
|
|
701
|
+
* Updates the {@link module:ui/toolbar/toolbarview~ToolbarView#focusables focus–cyclable items}
|
|
702
702
|
* collection so it represents the up–to–date state of the UI from the perspective of the user.
|
|
703
703
|
*
|
|
704
704
|
* For instance, the {@link #groupedItemsDropdown} can show up and hide but when it is visible,
|
|
@@ -707,10 +707,12 @@ class DynamicGrouping {
|
|
|
707
707
|
* See the {@link module:ui/toolbar/toolbarview~ToolbarView#focusables collection} documentation
|
|
708
708
|
* to learn more about the purpose of this method.
|
|
709
709
|
*/
|
|
710
|
-
|
|
710
|
+
_updateFocusCyclableItems() {
|
|
711
711
|
this.viewFocusables.clear();
|
|
712
712
|
this.ungroupedItems.map(item => {
|
|
713
|
-
|
|
713
|
+
if (isFocusable(item)) {
|
|
714
|
+
this.viewFocusables.add(item);
|
|
715
|
+
}
|
|
714
716
|
});
|
|
715
717
|
if (this.groupedItems.length) {
|
|
716
718
|
this.viewFocusables.add(this.groupedItemsDropdown);
|
package/src/tooltipmanager.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module ui/tooltipmanager
|
|
7
7
|
*/
|
|
8
|
-
import View from './view';
|
|
9
|
-
import BalloonPanelView from './panel/balloon/balloonpanelview';
|
|
8
|
+
import View from './view.js';
|
|
9
|
+
import BalloonPanelView from './panel/balloon/balloonpanelview.js';
|
|
10
10
|
import { type PositioningFunction } from '@ckeditor/ckeditor5-utils';
|
|
11
11
|
import type { Editor } from '@ckeditor/ckeditor5-core';
|
|
12
12
|
import '../theme/components/tooltip/tooltip.css';
|
package/src/tooltipmanager.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module ui/tooltipmanager
|
|
7
7
|
*/
|
|
8
|
-
import View from './view';
|
|
9
|
-
import BalloonPanelView, { generatePositions } from './panel/balloon/balloonpanelview';
|
|
8
|
+
import View from './view.js';
|
|
9
|
+
import BalloonPanelView, { generatePositions } from './panel/balloon/balloonpanelview.js';
|
|
10
10
|
import { DomEmitterMixin, ResizeObserver, first, global, isVisible } from '@ckeditor/ckeditor5-utils';
|
|
11
11
|
import { isElement, debounce } from 'lodash-es';
|
|
12
12
|
import '../theme/components/tooltip/tooltip.css';
|
|
@@ -65,7 +65,7 @@ const BALLOON_CLASS = 'ck-tooltip';
|
|
|
65
65
|
* **Note**: This class is a singleton. All editor instances re-use the same instance loaded by
|
|
66
66
|
* {@link module:ui/editorui/editorui~EditorUI} of the first editor.
|
|
67
67
|
*/
|
|
68
|
-
|
|
68
|
+
class TooltipManager extends DomEmitterMixin() {
|
|
69
69
|
/**
|
|
70
70
|
* Creates an instance of the tooltip manager.
|
|
71
71
|
*/
|
|
@@ -338,6 +338,7 @@ TooltipManager._editors = new Set();
|
|
|
338
338
|
* successive attempts at creating instances should return this instance.
|
|
339
339
|
*/
|
|
340
340
|
TooltipManager._instance = null;
|
|
341
|
+
export default TooltipManager;
|
|
341
342
|
function getDescendantWithTooltip(element) {
|
|
342
343
|
if (!isElement(element)) {
|
|
343
344
|
return null;
|
package/src/view.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module ui/view
|
|
7
7
|
*/
|
|
8
|
-
import ViewCollection from './viewcollection';
|
|
9
|
-
import Template, { type BindChain, type TemplateDefinition } from './template';
|
|
8
|
+
import ViewCollection from './viewcollection.js';
|
|
9
|
+
import Template, { type BindChain, type TemplateDefinition } from './template.js';
|
|
10
10
|
import { Collection, type DecoratedMethodEvent, type Locale, type LocaleTranslate } from '@ckeditor/ckeditor5-utils';
|
|
11
11
|
import '../theme/globals/globals.css';
|
|
12
12
|
declare const View_base: import("@ckeditor/ckeditor5-utils").Mixed<{
|
package/src/view.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/* eslint-disable @typescript-eslint/no-invalid-void-type */
|
|
6
6
|
/**
|
|
7
7
|
* @module ui/view
|
|
8
8
|
*/
|
|
9
|
-
import ViewCollection from './viewcollection';
|
|
10
|
-
import Template from './template';
|
|
9
|
+
import ViewCollection from './viewcollection.js';
|
|
10
|
+
import Template from './template.js';
|
|
11
11
|
import { CKEditorError, Collection, DomEmitterMixin, ObservableMixin, isIterable } from '@ckeditor/ckeditor5-utils';
|
|
12
12
|
import '../theme/globals/globals.css';
|
|
13
13
|
/**
|
package/src/viewcollection.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module ui/viewcollection
|
|
7
7
|
*/
|
|
8
8
|
import { Collection, type EmitterMixinDelegateChain } from '@ckeditor/ckeditor5-utils';
|
|
9
|
-
import type View from './view';
|
|
9
|
+
import type View from './view.js';
|
|
10
10
|
/**
|
|
11
11
|
* Collects {@link module:ui/view~View} instances.
|
|
12
12
|
*
|
package/src/viewcollection.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
& > .ck-search__results {
|
|
10
10
|
position: absolute;
|
|
11
|
-
z-index: var(--ck-z-
|
|
11
|
+
z-index: var(--ck-z-panel);
|
|
12
12
|
|
|
13
13
|
&.ck-search__results_n {
|
|
14
14
|
bottom: 100%;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* 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
|
+
.ck.ck-dialog-overlay {
|
|
7
|
+
user-select: none;
|
|
8
|
+
overscroll-behavior: none;
|
|
9
|
+
|
|
10
|
+
position: fixed;
|
|
11
|
+
bottom: 0;
|
|
12
|
+
left: 0;
|
|
13
|
+
right: 0;
|
|
14
|
+
top: 0;
|
|
15
|
+
|
|
16
|
+
&.ck-dialog-overlay__transparent {
|
|
17
|
+
pointer-events: none;
|
|
18
|
+
animation: none;
|
|
19
|
+
background: none;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.ck.ck-dialog {
|
|
24
|
+
overscroll-behavior: none;
|
|
25
|
+
width: fit-content;
|
|
26
|
+
position: absolute;
|
|
27
|
+
|
|
28
|
+
& .ck.ck-form__header {
|
|
29
|
+
flex-shrink: 0;
|
|
30
|
+
|
|
31
|
+
& .ck-form__header__label {
|
|
32
|
+
cursor: grab;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
@nest .ck.ck-dialog-overlay.ck-dialog-overlay__transparent & {
|
|
37
|
+
pointer-events: all;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* 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
|
+
.ck.ck-dialog {
|
|
7
|
+
& .ck.ck-dialog__actions {
|
|
8
|
+
display: flex;
|
|
9
|
+
justify-content: flex-end;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
|
|
24
24
|
& .ck-dropdown__panel {
|
|
25
25
|
display: none;
|
|
26
|
-
z-index: var(--ck-z-
|
|
26
|
+
z-index: var(--ck-z-panel);
|
|
27
27
|
max-width: var(--ck-dropdown-max-width);
|
|
28
28
|
|
|
29
29
|
position: absolute;
|
|
@@ -91,5 +91,5 @@
|
|
|
91
91
|
* See https://github.com/ckeditor/ckeditor5/issues/7874
|
|
92
92
|
*/
|
|
93
93
|
.ck.ck-toolbar .ck-dropdown__panel {
|
|
94
|
-
z-index: calc( var(--ck-z-
|
|
94
|
+
z-index: calc( var(--ck-z-panel) + 1 );
|
|
95
95
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
display: none;
|
|
13
13
|
position: absolute;
|
|
14
14
|
|
|
15
|
-
z-index: var(--ck-z-
|
|
15
|
+
z-index: var(--ck-z-panel);
|
|
16
16
|
|
|
17
17
|
&.ck-balloon-panel_with-arrow {
|
|
18
18
|
&::before,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
position: absolute;
|
|
8
8
|
|
|
9
9
|
/* Fake panels should be placed under main balloon content. */
|
|
10
|
-
z-index: calc(var(--ck-z-
|
|
10
|
+
z-index: calc(var(--ck-z-panel) - 1);
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
.ck .ck-fake-panel div {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
.ck.ck-sticky-panel {
|
|
7
7
|
& .ck-sticky-panel__content_sticky {
|
|
8
|
-
z-index: var(--ck-z-
|
|
8
|
+
z-index: var(--ck-z-panel); /* #315 */
|
|
9
9
|
position: fixed;
|
|
10
10
|
top: 0;
|
|
11
11
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -7,5 +7,5 @@
|
|
|
7
7
|
/* Keep tooltips transparent for any interactions. */
|
|
8
8
|
pointer-events: none;
|
|
9
9
|
|
|
10
|
-
z-index: calc( var(--ck-z-
|
|
10
|
+
z-index: calc( var(--ck-z-dialog) + 100 );
|
|
11
11
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
box-shadow: none;
|
|
20
20
|
background: var(--ck-powered-by-background);
|
|
21
21
|
min-height: unset;
|
|
22
|
-
z-index: calc( var(--ck-z-
|
|
22
|
+
z-index: calc( var(--ck-z-panel) - 1 );
|
|
23
23
|
|
|
24
24
|
& .ck.ck-powered-by {
|
|
25
25
|
line-height: var(--ck-powered-by-line-height);
|
package/theme/globals/_reset.css
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
:root {
|
|
7
7
|
--ck-z-default: 1;
|
|
8
|
-
--ck-z-
|
|
8
|
+
--ck-z-panel: calc( var(--ck-z-default) + 999 );
|
|
9
|
+
--ck-z-dialog: 9999;
|
|
9
10
|
}
|
package/theme/mixins/_dir.css
CHANGED
package/theme/mixins/_rwd.css
CHANGED