@ckeditor/ckeditor5-ui 40.1.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 +34 -34
- 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 +12 -4
- 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 +14 -6
- 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 +70 -0
- package/src/collapsible/collapsibleview.js +95 -0
- 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 +8 -7
- package/src/dropdown/button/splitbuttonview.js +10 -8
- 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 +11 -11
- package/src/dropdown/utils.js +18 -18
- 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 -67
- package/src/index.js +63 -64
- 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 +6 -6
- package/src/list/listitemgroupview.js +11 -7
- 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 +10 -8
- package/src/list/listview.js +7 -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 +10 -0
- 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,15 @@
|
|
|
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/panel/balloon/contextualballoon
|
|
7
7
|
*/
|
|
8
|
-
import BalloonPanelView from './balloonpanelview';
|
|
9
|
-
import View from '../../view';
|
|
10
|
-
import ButtonView from '../../button/buttonview';
|
|
11
|
-
import { Plugin } from '@ckeditor/ckeditor5-core';
|
|
8
|
+
import BalloonPanelView from './balloonpanelview.js';
|
|
9
|
+
import View from '../../view.js';
|
|
10
|
+
import ButtonView from '../../button/buttonview.js';
|
|
11
|
+
import { Plugin, icons } from '@ckeditor/ckeditor5-core';
|
|
12
12
|
import { CKEditorError, FocusTracker, Rect, toUnit } from '@ckeditor/ckeditor5-utils';
|
|
13
|
-
import prevIcon from '../../../theme/icons/previous-arrow.svg';
|
|
14
|
-
import nextIcon from '../../../theme/icons/next-arrow.svg';
|
|
15
13
|
import '../../../theme/components/panel/balloonrotator.css';
|
|
16
14
|
import '../../../theme/components/panel/fakepanel.css';
|
|
17
15
|
const toPx = toUnit('px');
|
|
@@ -406,8 +404,8 @@ export class RotatorView extends View {
|
|
|
406
404
|
const bind = this.bindTemplate;
|
|
407
405
|
this.set('isNavigationVisible', true);
|
|
408
406
|
this.focusTracker = new FocusTracker();
|
|
409
|
-
this.buttonPrevView = this._createButtonView(t('Previous'),
|
|
410
|
-
this.buttonNextView = this._createButtonView(t('Next'),
|
|
407
|
+
this.buttonPrevView = this._createButtonView(t('Previous'), icons.previousArrow);
|
|
408
|
+
this.buttonNextView = this._createButtonView(t('Next'), icons.nextArrow);
|
|
411
409
|
this.content = this.createCollection();
|
|
412
410
|
this.setTemplate({
|
|
413
411
|
tag: 'div',
|
|
@@ -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/panel/sticky/stickypanelview
|
|
7
7
|
*/
|
|
8
|
-
import View from '../../view';
|
|
9
|
-
import type ViewCollection from '../../viewcollection';
|
|
8
|
+
import View from '../../view.js';
|
|
9
|
+
import type ViewCollection from '../../viewcollection.js';
|
|
10
10
|
import { type Locale } from '@ckeditor/ckeditor5-utils';
|
|
11
11
|
import '../../../theme/components/panel/stickypanel.css';
|
|
12
12
|
/**
|
|
@@ -70,6 +70,11 @@ export default class StickyPanelView extends View {
|
|
|
70
70
|
* @default 0
|
|
71
71
|
*/
|
|
72
72
|
viewportTopOffset: number;
|
|
73
|
+
/**
|
|
74
|
+
* The panel which accepts children into {@link #content} collection.
|
|
75
|
+
* Also an element which is positioned when {@link #isSticky}.
|
|
76
|
+
*/
|
|
77
|
+
contentPanelElement: HTMLElement;
|
|
73
78
|
/**
|
|
74
79
|
* Controls the `margin-left` CSS style of the panel.
|
|
75
80
|
*
|
|
@@ -109,11 +114,6 @@ export default class StickyPanelView extends View {
|
|
|
109
114
|
* actual panel is sticky. It prevents flickering of the UI.
|
|
110
115
|
*/
|
|
111
116
|
private _contentPanelPlaceholder;
|
|
112
|
-
/**
|
|
113
|
-
* The panel which accepts children into {@link #content} collection.
|
|
114
|
-
* Also an element which is positioned when {@link #isSticky}.
|
|
115
|
-
*/
|
|
116
|
-
private _contentPanel;
|
|
117
117
|
/**
|
|
118
118
|
* @inheritDoc
|
|
119
119
|
*/
|
|
@@ -148,7 +148,7 @@ export default class StickyPanelView extends View {
|
|
|
148
148
|
*/
|
|
149
149
|
private _unstick;
|
|
150
150
|
/**
|
|
151
|
-
* Returns the bounding rect of the {@link #
|
|
151
|
+
* Returns the bounding rect of the {@link #contentPanelElement}.
|
|
152
152
|
*
|
|
153
153
|
* @private
|
|
154
154
|
*/
|
|
@@ -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/panel/sticky/stickypanelview
|
|
7
7
|
*/
|
|
8
|
-
import View from '../../view';
|
|
9
|
-
import Template from '../../template';
|
|
8
|
+
import View from '../../view.js';
|
|
9
|
+
import Template from '../../template.js';
|
|
10
10
|
import { global, toUnit, Rect } from '@ckeditor/ckeditor5-utils';
|
|
11
11
|
// @if CK_DEBUG_STICKYPANEL // const {
|
|
12
12
|
// @if CK_DEBUG_STICKYPANEL // default: RectDrawer,
|
|
@@ -49,7 +49,7 @@ export default class StickyPanelView extends View {
|
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
}).render();
|
|
52
|
-
this.
|
|
52
|
+
this.contentPanelElement = new Template({
|
|
53
53
|
tag: 'div',
|
|
54
54
|
attributes: {
|
|
55
55
|
class: [
|
|
@@ -80,7 +80,7 @@ export default class StickyPanelView extends View {
|
|
|
80
80
|
},
|
|
81
81
|
children: [
|
|
82
82
|
this._contentPanelPlaceholder,
|
|
83
|
-
this.
|
|
83
|
+
this.contentPanelElement
|
|
84
84
|
]
|
|
85
85
|
});
|
|
86
86
|
}
|
|
@@ -224,11 +224,11 @@ export default class StickyPanelView extends View {
|
|
|
224
224
|
this._marginLeft = null;
|
|
225
225
|
}
|
|
226
226
|
/**
|
|
227
|
-
* Returns the bounding rect of the {@link #
|
|
227
|
+
* Returns the bounding rect of the {@link #contentPanelElement}.
|
|
228
228
|
*
|
|
229
229
|
* @private
|
|
230
230
|
*/
|
|
231
231
|
get _contentPanelRect() {
|
|
232
|
-
return new Rect(this.
|
|
232
|
+
return new Rect(this.contentPanelElement);
|
|
233
233
|
}
|
|
234
234
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
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
|
-
import type { FocusableView } from '../focuscycler';
|
|
5
|
+
import type { FocusableView } from '../focuscycler.js';
|
|
6
6
|
/**
|
|
7
7
|
* @module ui/search/filteredview
|
|
8
8
|
*/
|
|
@@ -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
|
export {};
|
|
@@ -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/search/searchinfoview
|
|
7
7
|
*/
|
|
8
|
-
import type { FocusableView } from '../focuscycler';
|
|
9
|
-
import View from '../view';
|
|
8
|
+
import type { FocusableView } from '../focuscycler.js';
|
|
9
|
+
import View from '../view.js';
|
|
10
10
|
/**
|
|
11
11
|
* A view displaying an information text related to different states of {@link module:ui/search/text/searchtextview~SearchTextView}.
|
|
12
12
|
*
|
|
@@ -1,8 +1,8 @@
|
|
|
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
|
-
import View from '../view';
|
|
5
|
+
import View from '../view.js';
|
|
6
6
|
/**
|
|
7
7
|
* A view displaying an information text related to different states of {@link module:ui/search/text/searchtextview~SearchTextView}.
|
|
8
8
|
*
|
|
@@ -1,14 +1,14 @@
|
|
|
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/search/searchresultsview
|
|
7
7
|
*/
|
|
8
|
-
import View from '../view';
|
|
9
|
-
import type ViewCollection from '../viewcollection';
|
|
8
|
+
import View from '../view.js';
|
|
9
|
+
import type ViewCollection from '../viewcollection.js';
|
|
10
10
|
import { FocusTracker, type Locale } from '@ckeditor/ckeditor5-utils';
|
|
11
|
-
import { default as FocusCycler, type FocusableView } from '../focuscycler';
|
|
11
|
+
import { default as FocusCycler, type FocusableView } from '../focuscycler.js';
|
|
12
12
|
/**
|
|
13
13
|
* A sub-component of {@link module:ui/search/text/searchtextview~SearchTextView}. It hosts the filtered and the information views.
|
|
14
14
|
*/
|
|
@@ -24,7 +24,7 @@ export default class SearchResultsView extends View implements FocusableView {
|
|
|
24
24
|
*
|
|
25
25
|
* @readonly
|
|
26
26
|
*/
|
|
27
|
-
children: ViewCollection
|
|
27
|
+
children: ViewCollection<FocusableView>;
|
|
28
28
|
/**
|
|
29
29
|
* Provides the focus management (keyboard navigation) in the view.
|
|
30
30
|
*
|
|
@@ -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
|
/**
|
|
6
6
|
* @module ui/search/searchresultsview
|
|
7
7
|
*/
|
|
8
|
-
import View from '../view';
|
|
8
|
+
import View from '../view.js';
|
|
9
9
|
import { FocusTracker } from '@ckeditor/ckeditor5-utils';
|
|
10
|
-
import { default as FocusCycler } from '../focuscycler';
|
|
10
|
+
import { default as FocusCycler } from '../focuscycler.js';
|
|
11
11
|
/**
|
|
12
12
|
* A sub-component of {@link module:ui/search/text/searchtextview~SearchTextView}. It hosts the filtered and the information views.
|
|
13
13
|
*/
|
|
@@ -1,14 +1,14 @@
|
|
|
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/search/text/searchtextqueryview
|
|
7
7
|
*/
|
|
8
|
-
import ButtonView from '../../button/buttonview';
|
|
9
|
-
import IconView from '../../icon/iconview';
|
|
10
|
-
import LabeledFieldView, { type LabeledFieldViewCreator } from '../../labeledfield/labeledfieldview';
|
|
11
|
-
import type InputBase from '../../input/inputbase';
|
|
8
|
+
import ButtonView from '../../button/buttonview.js';
|
|
9
|
+
import IconView from '../../icon/iconview.js';
|
|
10
|
+
import LabeledFieldView, { type LabeledFieldViewCreator } from '../../labeledfield/labeledfieldview.js';
|
|
11
|
+
import type InputBase from '../../input/inputbase.js';
|
|
12
12
|
import type { Locale } from '@ckeditor/ckeditor5-utils';
|
|
13
13
|
/**
|
|
14
14
|
* A search input field for the {@link module:ui/search/text/searchtextview~SearchTextView} component.
|
|
@@ -1,14 +1,14 @@
|
|
|
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/search/text/searchtextqueryview
|
|
7
7
|
*/
|
|
8
|
-
import ButtonView from '../../button/buttonview';
|
|
9
|
-
import IconView from '../../icon/iconview';
|
|
10
|
-
import LabeledFieldView from '../../labeledfield/labeledfieldview';
|
|
11
|
-
import { createLabeledInputText } from '../../labeledfield/utils';
|
|
8
|
+
import ButtonView from '../../button/buttonview.js';
|
|
9
|
+
import IconView from '../../icon/iconview.js';
|
|
10
|
+
import LabeledFieldView from '../../labeledfield/labeledfieldview.js';
|
|
11
|
+
import { createLabeledInputText } from '../../labeledfield/utils.js';
|
|
12
12
|
import { icons } from '@ckeditor/ckeditor5-core';
|
|
13
13
|
/**
|
|
14
14
|
* A search input field for the {@link module:ui/search/text/searchtextview~SearchTextView} component.
|
|
@@ -1,19 +1,19 @@
|
|
|
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/search/text/searchtextview
|
|
7
7
|
*/
|
|
8
8
|
import { FocusTracker, KeystrokeHandler, type Locale } from '@ckeditor/ckeditor5-utils';
|
|
9
|
-
import View from '../../view';
|
|
10
|
-
import { default as SearchTextQueryView, type SearchTextQueryViewConfig } from './searchtextqueryview';
|
|
11
|
-
import SearchResultsView from '../searchresultsview';
|
|
12
|
-
import FocusCycler from '../../focuscycler';
|
|
13
|
-
import type FilteredView from '../filteredview';
|
|
14
|
-
import type ViewCollection from '../../viewcollection';
|
|
15
|
-
import type InputBase from '../../input/inputbase';
|
|
16
|
-
import type InputTextView from '../../inputtext/inputtextview';
|
|
9
|
+
import View from '../../view.js';
|
|
10
|
+
import { default as SearchTextQueryView, type SearchTextQueryViewConfig } from './searchtextqueryview.js';
|
|
11
|
+
import SearchResultsView from '../searchresultsview.js';
|
|
12
|
+
import FocusCycler, { type FocusableView } from '../../focuscycler.js';
|
|
13
|
+
import type FilteredView from '../filteredview.js';
|
|
14
|
+
import type ViewCollection from '../../viewcollection.js';
|
|
15
|
+
import type InputBase from '../../input/inputbase.js';
|
|
16
|
+
import type InputTextView from '../../inputtext/inputtextview.js';
|
|
17
17
|
import '../../../theme/components/search/search.css';
|
|
18
18
|
/**
|
|
19
19
|
* A search component that allows filtering of an arbitrary view based on a search query
|
|
@@ -57,7 +57,7 @@ export default class SearchTextView<TQueryFieldView extends InputBase<HTMLInputE
|
|
|
57
57
|
/**
|
|
58
58
|
* The view that displays the information about the search results.
|
|
59
59
|
*/
|
|
60
|
-
infoView:
|
|
60
|
+
infoView: FocusableView | undefined;
|
|
61
61
|
/**
|
|
62
62
|
* The view that allows the user to enter the search query.
|
|
63
63
|
*/
|
|
@@ -94,7 +94,7 @@ export default class SearchTextView<TQueryFieldView extends InputBase<HTMLInputE
|
|
|
94
94
|
*
|
|
95
95
|
* @readonly
|
|
96
96
|
*/
|
|
97
|
-
readonly focusableChildren: ViewCollection
|
|
97
|
+
readonly focusableChildren: ViewCollection<FocusableView>;
|
|
98
98
|
locale: Locale;
|
|
99
99
|
/**
|
|
100
100
|
* Provides the focus management (keyboard navigation) between {@link #queryView} and {@link #filteredView}.
|
|
@@ -164,7 +164,7 @@ export interface SearchTextViewConfig<TConfigSearchField extends InputBase<HTMLI
|
|
|
164
164
|
* The view that displays the information about the search results. If not specified,
|
|
165
165
|
* {@link module:ui/search/searchinfoview~SearchInfoView} is used.
|
|
166
166
|
*/
|
|
167
|
-
instance?:
|
|
167
|
+
instance?: FocusableView;
|
|
168
168
|
/**
|
|
169
169
|
* The configuration of text labels displayed in the {@link #infoView} in different states
|
|
170
170
|
* of the search component.
|
|
@@ -1,16 +1,16 @@
|
|
|
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/search/text/searchtextview
|
|
7
7
|
*/
|
|
8
8
|
import { FocusTracker, KeystrokeHandler } from '@ckeditor/ckeditor5-utils';
|
|
9
|
-
import View from '../../view';
|
|
10
|
-
import { default as SearchTextQueryView } from './searchtextqueryview';
|
|
11
|
-
import SearchInfoView from '../searchinfoview';
|
|
12
|
-
import SearchResultsView from '../searchresultsview';
|
|
13
|
-
import FocusCycler from '../../focuscycler';
|
|
9
|
+
import View from '../../view.js';
|
|
10
|
+
import { default as SearchTextQueryView } from './searchtextqueryview.js';
|
|
11
|
+
import SearchInfoView from '../searchinfoview.js';
|
|
12
|
+
import SearchResultsView from '../searchresultsview.js';
|
|
13
|
+
import FocusCycler from '../../focuscycler.js';
|
|
14
14
|
import { escapeRegExp } from 'lodash-es';
|
|
15
15
|
import '../../../theme/components/search/search.css';
|
|
16
16
|
/**
|
|
@@ -1,11 +1,11 @@
|
|
|
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/spinner/spinnerview
|
|
7
7
|
*/
|
|
8
|
-
import View from '../view';
|
|
8
|
+
import View from '../view.js';
|
|
9
9
|
import '../../theme/components/spinner/spinner.css';
|
|
10
10
|
/**
|
|
11
11
|
* The spinner view class.
|
|
@@ -1,11 +1,11 @@
|
|
|
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/spinner/spinnerview
|
|
7
7
|
*/
|
|
8
|
-
import View from '../view';
|
|
8
|
+
import View from '../view.js';
|
|
9
9
|
import '../../theme/components/spinner/spinner.css';
|
|
10
10
|
/**
|
|
11
11
|
* The spinner view class.
|
package/src/template.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/template
|
|
7
7
|
*/
|
|
8
|
-
import View from './view';
|
|
9
|
-
import ViewCollection from './viewcollection';
|
|
8
|
+
import View from './view.js';
|
|
9
|
+
import ViewCollection from './viewcollection.js';
|
|
10
10
|
import { type ArrayOrItem, type Emitter, type Observable } from '@ckeditor/ckeditor5-utils';
|
|
11
11
|
declare const Template_base: {
|
|
12
12
|
new (): Emitter;
|
package/src/template.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
|
/**
|
|
6
6
|
* @module ui/template
|
|
7
7
|
*/
|
|
8
8
|
/* global document */
|
|
9
|
-
import View from './view';
|
|
10
|
-
import ViewCollection from './viewcollection';
|
|
9
|
+
import View from './view.js';
|
|
10
|
+
import ViewCollection from './viewcollection.js';
|
|
11
11
|
import { CKEditorError, EmitterMixin, isNode, toArray } from '@ckeditor/ckeditor5-utils';
|
|
12
12
|
import { isObject, cloneDeepWith } from 'lodash-es';
|
|
13
13
|
const xhtmlNs = 'http://www.w3.org/1999/xhtml';
|
|
@@ -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/textarea/textareaview
|
|
7
7
|
*/
|
|
8
8
|
import { type Locale } from '@ckeditor/ckeditor5-utils';
|
|
9
|
-
import InputBase from '../input/inputbase';
|
|
9
|
+
import InputBase from '../input/inputbase.js';
|
|
10
10
|
import '../../theme/components/input/input.css';
|
|
11
11
|
import '../../theme/components/textarea/textarea.css';
|
|
12
12
|
/**
|
|
@@ -53,6 +53,18 @@ export default class TextareaView extends InputBase<HTMLTextAreaElement> {
|
|
|
53
53
|
* @internal
|
|
54
54
|
*/
|
|
55
55
|
_height: number | null;
|
|
56
|
+
/**
|
|
57
|
+
* An instance of the resize observer used to detect when the view is visible or not and update
|
|
58
|
+
* its height if any changes that affect it were made while it was invisible.
|
|
59
|
+
*
|
|
60
|
+
* **Note:** Created in {@link #render}.
|
|
61
|
+
*/
|
|
62
|
+
private _resizeObserver;
|
|
63
|
+
/**
|
|
64
|
+
* A flag that indicates whether the {@link #_updateAutoGrowHeight} method should be called when the view becomes
|
|
65
|
+
* visible again. See {@link #_resizeObserver}.
|
|
66
|
+
*/
|
|
67
|
+
private _isUpdateAutoGrowHeightPending;
|
|
56
68
|
/**
|
|
57
69
|
* @inheritDoc
|
|
58
70
|
*/
|
|
@@ -61,6 +73,10 @@ export default class TextareaView extends InputBase<HTMLTextAreaElement> {
|
|
|
61
73
|
* @inheritDoc
|
|
62
74
|
*/
|
|
63
75
|
render(): void;
|
|
76
|
+
/**
|
|
77
|
+
* @inheritDoc
|
|
78
|
+
*/
|
|
79
|
+
destroy(): void;
|
|
64
80
|
/**
|
|
65
81
|
* @inheritDoc
|
|
66
82
|
*/
|
|
@@ -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/textarea/textareaview
|
|
7
7
|
*/
|
|
8
|
-
import { Rect, toUnit, getBorderWidths, global, CKEditorError, isVisible } from '@ckeditor/ckeditor5-utils';
|
|
9
|
-
import InputBase from '../input/inputbase';
|
|
8
|
+
import { Rect, toUnit, getBorderWidths, global, CKEditorError, isVisible, ResizeObserver } from '@ckeditor/ckeditor5-utils';
|
|
9
|
+
import InputBase from '../input/inputbase.js';
|
|
10
10
|
import '../../theme/components/input/input.css';
|
|
11
11
|
import '../../theme/components/textarea/textarea.css';
|
|
12
12
|
/**
|
|
@@ -29,11 +29,17 @@ export default class TextareaView extends InputBase {
|
|
|
29
29
|
*/
|
|
30
30
|
constructor(locale) {
|
|
31
31
|
super(locale);
|
|
32
|
+
/**
|
|
33
|
+
* A flag that indicates whether the {@link #_updateAutoGrowHeight} method should be called when the view becomes
|
|
34
|
+
* visible again. See {@link #_resizeObserver}.
|
|
35
|
+
*/
|
|
36
|
+
this._isUpdateAutoGrowHeightPending = false;
|
|
32
37
|
const toPx = toUnit('px');
|
|
33
38
|
this.set('minRows', 2);
|
|
34
39
|
this.set('maxRows', 5);
|
|
35
40
|
this.set('_height', null);
|
|
36
41
|
this.set('resize', 'none');
|
|
42
|
+
this._resizeObserver = null;
|
|
37
43
|
this.on('change:minRows', this._validateMinMaxRows.bind(this));
|
|
38
44
|
this.on('change:maxRows', this._validateMinMaxRows.bind(this));
|
|
39
45
|
const bind = this.bindTemplate;
|
|
@@ -54,6 +60,7 @@ export default class TextareaView extends InputBase {
|
|
|
54
60
|
*/
|
|
55
61
|
render() {
|
|
56
62
|
super.render();
|
|
63
|
+
let wasVisible = false;
|
|
57
64
|
this.on('input', () => {
|
|
58
65
|
this._updateAutoGrowHeight(true);
|
|
59
66
|
this.fire('update');
|
|
@@ -61,12 +68,40 @@ export default class TextareaView extends InputBase {
|
|
|
61
68
|
this.on('change:value', () => {
|
|
62
69
|
// The content needs to be updated by the browser after the value is changed. It takes a few ms.
|
|
63
70
|
global.window.requestAnimationFrame(() => {
|
|
64
|
-
if (isVisible(this.element)) {
|
|
65
|
-
this.
|
|
66
|
-
|
|
71
|
+
if (!isVisible(this.element)) {
|
|
72
|
+
this._isUpdateAutoGrowHeightPending = true;
|
|
73
|
+
return;
|
|
67
74
|
}
|
|
75
|
+
this._updateAutoGrowHeight();
|
|
76
|
+
this.fire('update');
|
|
68
77
|
});
|
|
69
78
|
});
|
|
79
|
+
// It may occur that the Textarea size needs to be updated (e.g. because it's content was changed)
|
|
80
|
+
// when it is not visible or detached from DOM.
|
|
81
|
+
// In such case, we need to detect the moment when it becomes visible again and update its height then.
|
|
82
|
+
// We're using ResizeObserver for that as it is the most reliable way to detect when the element becomes visible.
|
|
83
|
+
// IntersectionObserver didn't work well with the absolute positioned containers.
|
|
84
|
+
this._resizeObserver = new ResizeObserver(this.element, evt => {
|
|
85
|
+
const isVisible = !!evt.contentRect.width && !!evt.contentRect.height;
|
|
86
|
+
if (!wasVisible && isVisible && this._isUpdateAutoGrowHeightPending) {
|
|
87
|
+
// We're wrapping the auto-grow logic in RAF because otherwise there is an error thrown
|
|
88
|
+
// by the browser about recursive calls to the ResizeObserver. It used to happen in unit
|
|
89
|
+
// tests only, though. Since there is no risk of infinite loop here, it can stay here.
|
|
90
|
+
global.window.requestAnimationFrame(() => {
|
|
91
|
+
this._updateAutoGrowHeight();
|
|
92
|
+
this.fire('update');
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
wasVisible = isVisible;
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* @inheritDoc
|
|
100
|
+
*/
|
|
101
|
+
destroy() {
|
|
102
|
+
if (this._resizeObserver) {
|
|
103
|
+
this._resizeObserver.destroy();
|
|
104
|
+
}
|
|
70
105
|
}
|
|
71
106
|
/**
|
|
72
107
|
* @inheritDoc
|
|
@@ -83,6 +118,11 @@ export default class TextareaView extends InputBase {
|
|
|
83
118
|
*/
|
|
84
119
|
_updateAutoGrowHeight(shouldScroll) {
|
|
85
120
|
const viewElement = this.element;
|
|
121
|
+
if (!viewElement.offsetParent) {
|
|
122
|
+
this._isUpdateAutoGrowHeightPending = true;
|
|
123
|
+
return;
|
|
124
|
+
}
|
|
125
|
+
this._isUpdateAutoGrowHeightPending = false;
|
|
86
126
|
const singleLineContentClone = getTextareaElementClone(viewElement, '1');
|
|
87
127
|
const fullTextValueClone = getTextareaElementClone(viewElement, viewElement.value);
|
|
88
128
|
const singleLineContentStyles = singleLineContentClone.ownerDocument.defaultView.getComputedStyle(singleLineContentClone);
|
|
@@ -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/toolbar/balloon/balloontoolbar
|
|
7
7
|
*/
|
|
8
|
-
import ContextualBalloon from '../../panel/balloon/contextualballoon';
|
|
9
|
-
import ToolbarView from '../toolbarview';
|
|
8
|
+
import ContextualBalloon from '../../panel/balloon/contextualballoon.js';
|
|
9
|
+
import ToolbarView from '../toolbarview.js';
|
|
10
10
|
import { Plugin, type Editor } from '@ckeditor/ckeditor5-core';
|
|
11
11
|
import { FocusTracker } from '@ckeditor/ckeditor5-utils';
|
|
12
12
|
/**
|
|
@@ -1,14 +1,14 @@
|
|
|
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/balloon/balloontoolbar
|
|
7
7
|
*/
|
|
8
|
-
import ContextualBalloon from '../../panel/balloon/contextualballoon';
|
|
9
|
-
import ToolbarView from '../toolbarview';
|
|
10
|
-
import BalloonPanelView, { generatePositions } from '../../panel/balloon/balloonpanelview';
|
|
11
|
-
import normalizeToolbarConfig from '../normalizetoolbarconfig';
|
|
8
|
+
import ContextualBalloon from '../../panel/balloon/contextualballoon.js';
|
|
9
|
+
import ToolbarView from '../toolbarview.js';
|
|
10
|
+
import BalloonPanelView, { generatePositions } from '../../panel/balloon/balloonpanelview.js';
|
|
11
|
+
import normalizeToolbarConfig from '../normalizetoolbarconfig.js';
|
|
12
12
|
import { Plugin } from '@ckeditor/ckeditor5-core';
|
|
13
13
|
import { FocusTracker, Rect, ResizeObserver, env, global, toUnit } from '@ckeditor/ckeditor5-utils';
|
|
14
14
|
import { debounce } from 'lodash-es';
|
|
@@ -1,11 +1,11 @@
|
|
|
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/block/blockbuttonview
|
|
7
7
|
*/
|
|
8
|
-
import ButtonView from '../../button/buttonview';
|
|
8
|
+
import ButtonView from '../../button/buttonview.js';
|
|
9
9
|
import { type Locale } from '@ckeditor/ckeditor5-utils';
|
|
10
10
|
import '../../../theme/components/toolbar/blocktoolbar.css';
|
|
11
11
|
/**
|
|
@@ -1,11 +1,11 @@
|
|
|
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/block/blockbuttonview
|
|
7
7
|
*/
|
|
8
|
-
import ButtonView from '../../button/buttonview';
|
|
8
|
+
import ButtonView from '../../button/buttonview.js';
|
|
9
9
|
import { toUnit } from '@ckeditor/ckeditor5-utils';
|
|
10
10
|
import '../../../theme/components/toolbar/blocktoolbar.css';
|
|
11
11
|
const toPx = toUnit('px');
|
|
@@ -1,14 +1,14 @@
|
|
|
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/block/blocktoolbar
|
|
7
7
|
*/
|
|
8
8
|
import { Plugin, type Editor } from '@ckeditor/ckeditor5-core';
|
|
9
|
-
import BlockButtonView from './blockbuttonview';
|
|
10
|
-
import BalloonPanelView from '../../panel/balloon/balloonpanelview';
|
|
11
|
-
import ToolbarView from '../toolbarview';
|
|
9
|
+
import BlockButtonView from './blockbuttonview.js';
|
|
10
|
+
import BalloonPanelView from '../../panel/balloon/balloonpanelview.js';
|
|
11
|
+
import ToolbarView from '../toolbarview.js';
|
|
12
12
|
/**
|
|
13
13
|
* The block toolbar plugin.
|
|
14
14
|
*
|