@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
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
import { global } from '@ckeditor/ckeditor5-utils';
|
|
6
|
+
/**
|
|
7
|
+
* A mixin that brings the possibility to observe dragging of the view element.
|
|
8
|
+
* The view has to implement the {@link ~DraggableView} interface to use it:
|
|
9
|
+
*
|
|
10
|
+
* ```js
|
|
11
|
+
* export default class MyDraggableView extends DraggableViewMixin( View ) implements DraggableView {
|
|
12
|
+
* // ...
|
|
13
|
+
* }
|
|
14
|
+
* ```
|
|
15
|
+
*
|
|
16
|
+
* Creating a class extending it attaches a set of mouse and touch listeners allowing to observe dragging of the view element:
|
|
17
|
+
* * `mousedown` and `touchstart` on the view element - starting the dragging,
|
|
18
|
+
* * `mousemove` and `touchmove` on the document - updating the view coordinates,
|
|
19
|
+
* * `mouseup` and `touchend` on the document - stopping the dragging.
|
|
20
|
+
*
|
|
21
|
+
* The mixin itself doesn't provide a visual feedback (i.e. the dragged element doesn't change its position) -
|
|
22
|
+
* it's up to the developer to implement it.
|
|
23
|
+
*/
|
|
24
|
+
export default function DraggableViewMixin(view) {
|
|
25
|
+
class DraggableMixin extends view {
|
|
26
|
+
/**
|
|
27
|
+
* @inheritdoc
|
|
28
|
+
*/
|
|
29
|
+
constructor(...args) {
|
|
30
|
+
super(...args);
|
|
31
|
+
/**
|
|
32
|
+
* A bound version of {@link #_onDrag}.
|
|
33
|
+
*/
|
|
34
|
+
this._onDragBound = this._onDrag.bind(this);
|
|
35
|
+
/**
|
|
36
|
+
* A bound version of {@link #_onDragEnd}.
|
|
37
|
+
*/
|
|
38
|
+
this._onDragEndBound = this._onDragEnd.bind(this);
|
|
39
|
+
/**
|
|
40
|
+
* The last coordinates of the view. It's updated on every mouse move.
|
|
41
|
+
*/
|
|
42
|
+
this._lastDraggingCoordinates = { x: 0, y: 0 };
|
|
43
|
+
this.on('render', () => {
|
|
44
|
+
this._attachListeners();
|
|
45
|
+
});
|
|
46
|
+
this.set('isDragging', false);
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Attaches the listeners for the drag start.
|
|
50
|
+
*/
|
|
51
|
+
_attachListeners() {
|
|
52
|
+
this.listenTo(this.element, 'mousedown', this._onDragStart.bind(this));
|
|
53
|
+
this.listenTo(this.element, 'touchstart', this._onDragStart.bind(this));
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Attaches the listeners for the dragging and drag end.
|
|
57
|
+
*/
|
|
58
|
+
_attachDragListeners() {
|
|
59
|
+
this.listenTo(global.document, 'mouseup', this._onDragEndBound);
|
|
60
|
+
this.listenTo(global.document, 'touchend', this._onDragEndBound);
|
|
61
|
+
this.listenTo(global.document, 'mousemove', this._onDragBound);
|
|
62
|
+
this.listenTo(global.document, 'touchmove', this._onDragBound);
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Detaches the listeners after the drag end.
|
|
66
|
+
*/
|
|
67
|
+
_detachDragListeners() {
|
|
68
|
+
this.stopListening(global.document, 'mouseup', this._onDragEndBound);
|
|
69
|
+
this.stopListening(global.document, 'touchend', this._onDragEndBound);
|
|
70
|
+
this.stopListening(global.document, 'mousemove', this._onDragBound);
|
|
71
|
+
this.stopListening(global.document, 'touchmove', this._onDragBound);
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Starts the dragging listeners and sets the initial view coordinates.
|
|
75
|
+
*/
|
|
76
|
+
_onDragStart(evt, domEvt) {
|
|
77
|
+
if (!this._isHandleElementPressed(domEvt)) {
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
80
|
+
this._attachDragListeners();
|
|
81
|
+
let x = 0;
|
|
82
|
+
let y = 0;
|
|
83
|
+
// If dragging is performed with a mouse, there is only one set of coordinates available.
|
|
84
|
+
// But when using a touch device, there may be many of them, so use the coordinates from the first touch.
|
|
85
|
+
if (domEvt instanceof MouseEvent) {
|
|
86
|
+
x = domEvt.clientX;
|
|
87
|
+
y = domEvt.clientY;
|
|
88
|
+
}
|
|
89
|
+
else {
|
|
90
|
+
x = domEvt.touches[0].clientX;
|
|
91
|
+
y = domEvt.touches[0].clientY;
|
|
92
|
+
}
|
|
93
|
+
this._lastDraggingCoordinates = { x, y };
|
|
94
|
+
this.isDragging = true;
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Updates the view coordinates and fires the `drag` event.
|
|
98
|
+
*/
|
|
99
|
+
_onDrag(evt, domEvt) {
|
|
100
|
+
// If dragging was stopped by some external intervention, stop listening.
|
|
101
|
+
if (!this.isDragging) {
|
|
102
|
+
this._detachDragListeners();
|
|
103
|
+
return;
|
|
104
|
+
}
|
|
105
|
+
let newX = 0;
|
|
106
|
+
let newY = 0;
|
|
107
|
+
// If dragging is performed with a mouse, there is only one set of coordinates available.
|
|
108
|
+
// But when using a touch device, there may be many of them, so use the coordinates from the first touch.
|
|
109
|
+
if (domEvt instanceof MouseEvent) {
|
|
110
|
+
newX = domEvt.clientX;
|
|
111
|
+
newY = domEvt.clientY;
|
|
112
|
+
}
|
|
113
|
+
else {
|
|
114
|
+
newX = domEvt.touches[0].clientX;
|
|
115
|
+
newY = domEvt.touches[0].clientY;
|
|
116
|
+
}
|
|
117
|
+
// Prevents selection of text while dragging on Safari.
|
|
118
|
+
domEvt.preventDefault();
|
|
119
|
+
this.fire('drag', {
|
|
120
|
+
deltaX: Math.round(newX - this._lastDraggingCoordinates.x),
|
|
121
|
+
deltaY: Math.round(newY - this._lastDraggingCoordinates.y)
|
|
122
|
+
});
|
|
123
|
+
this._lastDraggingCoordinates = { x: newX, y: newY };
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* Stops the dragging and detaches the listeners.
|
|
127
|
+
*/
|
|
128
|
+
_onDragEnd() {
|
|
129
|
+
this._detachDragListeners();
|
|
130
|
+
this.isDragging = false;
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* Checks if the drag handle element was pressed.
|
|
134
|
+
*/
|
|
135
|
+
_isHandleElementPressed(domEvt) {
|
|
136
|
+
if (!this.dragHandleElement) {
|
|
137
|
+
return false;
|
|
138
|
+
}
|
|
139
|
+
return this.dragHandleElement === domEvt.target ||
|
|
140
|
+
(domEvt.target instanceof HTMLElement && this.dragHandleElement.contains(domEvt.target));
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
return DraggableMixin;
|
|
144
|
+
}
|
|
@@ -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/bindings/injectcsstransitiondisabler
|
|
7
7
|
*/
|
|
8
|
-
import type View from '../view';
|
|
8
|
+
import type View from '../view.js';
|
|
9
9
|
/**
|
|
10
10
|
* A decorator that brings the possibility to temporarily disable CSS transitions using
|
|
11
11
|
* {@link module:ui/view~View} methods. It is helpful when, for instance, the transitions should not happen
|
|
@@ -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,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/bindings/preventdefault
|
|
7
7
|
*/
|
|
8
|
-
import type { ListenerBinding } from '../template';
|
|
9
|
-
import type View from '../view';
|
|
8
|
+
import type { ListenerBinding } from '../template.js';
|
|
9
|
+
import type View from '../view.js';
|
|
10
10
|
/**
|
|
11
11
|
* A helper which executes a native `Event.preventDefault()` if the target of an event equals the
|
|
12
12
|
* {@link module:ui/view~View#element element of the view}. It shortens the definition of a
|
|
@@ -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,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/bindings/submithandler
|
|
7
7
|
*/
|
|
8
|
-
import type View from '../view';
|
|
8
|
+
import type View from '../view.js';
|
|
9
9
|
/**
|
|
10
10
|
* A handler useful for {@link module:ui/view~View views} working as HTML forms. It intercepts a native DOM
|
|
11
11
|
* `submit` event, prevents the default web browser behavior (navigation and page reload) and
|
|
@@ -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
|
/**
|
package/src/button/button.d.ts
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
|
/**
|
package/src/button/button.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
|
export {};
|
|
@@ -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/button/buttonlabel
|
|
7
7
|
*/
|
|
8
|
-
import type View from '../view';
|
|
8
|
+
import type View from '../view.js';
|
|
9
9
|
/**
|
|
10
10
|
* The button label interface. Implemented by the {@link module:ui/button/buttonlabelview~ButtonLabelView}
|
|
11
11
|
* and any label view that can be used with the {@link module:ui/button/buttonview~ButtonView}.
|
|
@@ -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/button/buttonlabelview
|
|
7
7
|
*/
|
|
8
|
-
import View from '../view';
|
|
9
|
-
import type ButtonLabel from './buttonlabel';
|
|
8
|
+
import View from '../view.js';
|
|
9
|
+
import type ButtonLabel from './buttonlabel.js';
|
|
10
10
|
/**
|
|
11
11
|
* A default implementation of the button view's label. It comes with a dynamic text support
|
|
12
12
|
* via {@link module:ui/button/buttonlabelview~ButtonLabelView#text} property.
|
|
@@ -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/button/buttonlabelview
|
|
7
7
|
*/
|
|
8
|
-
import View from '../view';
|
|
8
|
+
import View from '../view.js';
|
|
9
9
|
/**
|
|
10
10
|
* A default implementation of the button view's label. It comes with a dynamic text support
|
|
11
11
|
* via {@link module:ui/button/buttonlabelview~ButtonLabelView#text} property.
|
|
@@ -1,15 +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/button/buttonview
|
|
7
7
|
*/
|
|
8
|
-
import View from '../view';
|
|
9
|
-
import IconView from '../icon/iconview';
|
|
10
|
-
import type ViewCollection from '../viewcollection';
|
|
11
|
-
import type { default as Button } from './button';
|
|
12
|
-
import type ButtonLabel from './buttonlabel';
|
|
8
|
+
import View from '../view.js';
|
|
9
|
+
import IconView from '../icon/iconview.js';
|
|
10
|
+
import type ViewCollection from '../viewcollection.js';
|
|
11
|
+
import type { default as Button } from './button.js';
|
|
12
|
+
import type ButtonLabel from './buttonlabel.js';
|
|
13
13
|
import { type Locale } from '@ckeditor/ckeditor5-utils';
|
|
14
14
|
import '../../theme/components/button/button.css';
|
|
15
15
|
/**
|
package/src/button/buttonview.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/button/buttonview
|
|
7
7
|
*/
|
|
8
|
-
import View from '../view';
|
|
9
|
-
import IconView from '../icon/iconview';
|
|
10
|
-
import ButtonLabelView from './buttonlabelview';
|
|
8
|
+
import View from '../view.js';
|
|
9
|
+
import IconView from '../icon/iconview.js';
|
|
10
|
+
import ButtonLabelView from './buttonlabelview.js';
|
|
11
11
|
import { env, getEnvKeystrokeText, uid, delay } from '@ckeditor/ckeditor5-utils';
|
|
12
12
|
import '../../theme/components/button/button.css';
|
|
13
13
|
/**
|
|
@@ -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/button/switchbuttonview
|
|
7
7
|
*/
|
|
8
|
-
import View from '../view';
|
|
9
|
-
import ButtonView from './buttonview';
|
|
8
|
+
import View from '../view.js';
|
|
9
|
+
import ButtonView from './buttonview.js';
|
|
10
10
|
import type { Locale } from '@ckeditor/ckeditor5-utils';
|
|
11
11
|
import '../../theme/components/button/switchbutton.css';
|
|
12
12
|
/**
|
|
@@ -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/button/switchbuttonview
|
|
7
7
|
*/
|
|
8
|
-
import View from '../view';
|
|
9
|
-
import ButtonView from './buttonview';
|
|
8
|
+
import View from '../view.js';
|
|
9
|
+
import ButtonView from './buttonview.js';
|
|
10
10
|
import '../../theme/components/button/switchbutton.css';
|
|
11
11
|
/**
|
|
12
12
|
* The switch button view class.
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module ui/collapsible/collapsibleview
|
|
7
|
+
*/
|
|
8
|
+
import type { Locale } from '@ckeditor/ckeditor5-utils';
|
|
9
|
+
import View from '../view.js';
|
|
10
|
+
import ButtonView from '../button/buttonview.js';
|
|
11
|
+
import type ViewCollection from '../viewcollection.js';
|
|
12
|
+
import type { FocusableView } from '../focuscycler.js';
|
|
13
|
+
import '../../theme/components/collapsible/collapsible.css';
|
|
14
|
+
/**
|
|
15
|
+
* A collapsible UI component. Consists of a labeled button and a container which can be collapsed
|
|
16
|
+
* by clicking the button. The collapsible container can be a host to other UI views.
|
|
17
|
+
*
|
|
18
|
+
* @internal
|
|
19
|
+
*/
|
|
20
|
+
export default class CollapsibleView extends View {
|
|
21
|
+
/**
|
|
22
|
+
* `true` when the container with {@link #children} is collapsed. `false` otherwise.
|
|
23
|
+
*
|
|
24
|
+
* @observable
|
|
25
|
+
*/
|
|
26
|
+
isCollapsed: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* The text label of the {@link #buttonView}.
|
|
29
|
+
*
|
|
30
|
+
* @observable
|
|
31
|
+
* @default 'Show more'
|
|
32
|
+
*/
|
|
33
|
+
label: string;
|
|
34
|
+
/**
|
|
35
|
+
* The ID of the label inside the {@link #buttonView} that describes the collapsible
|
|
36
|
+
* container for assistive technologies. Set after the button was {@link #render rendered}.
|
|
37
|
+
*
|
|
38
|
+
* @internal
|
|
39
|
+
* @readonly
|
|
40
|
+
* @observable
|
|
41
|
+
*/
|
|
42
|
+
_collapsibleAriaLabelUid: string | undefined;
|
|
43
|
+
/**
|
|
44
|
+
* The main button that, when clicked, collapses or expands the container with {@link #children}.
|
|
45
|
+
*/
|
|
46
|
+
readonly buttonView: ButtonView;
|
|
47
|
+
/**
|
|
48
|
+
* A collection of the child views that can be collapsed by clicking the {@link #buttonView}.
|
|
49
|
+
*/
|
|
50
|
+
readonly children: ViewCollection<FocusableView>;
|
|
51
|
+
/**
|
|
52
|
+
* Creates an instance of the collapsible view.
|
|
53
|
+
*
|
|
54
|
+
* @param locale The {@link module:core/editor/editor~Editor#locale} instance.
|
|
55
|
+
* @param childViews An optional array of initial child views to be inserted into the collapsible.
|
|
56
|
+
*/
|
|
57
|
+
constructor(locale: Locale, childViews?: Array<FocusableView>);
|
|
58
|
+
/**
|
|
59
|
+
* @inheritDoc
|
|
60
|
+
*/
|
|
61
|
+
render(): void;
|
|
62
|
+
/**
|
|
63
|
+
* Focuses the first focusable.
|
|
64
|
+
*/
|
|
65
|
+
focus(): void;
|
|
66
|
+
/**
|
|
67
|
+
* Creates the main {@link #buttonView} of the collapsible.
|
|
68
|
+
*/
|
|
69
|
+
private _createButtonView;
|
|
70
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
import View from '../view.js';
|
|
6
|
+
import ButtonView from '../button/buttonview.js';
|
|
7
|
+
import dropdownArrowIcon from '../../theme/icons/dropdown-arrow.svg';
|
|
8
|
+
import '../../theme/components/collapsible/collapsible.css';
|
|
9
|
+
/**
|
|
10
|
+
* A collapsible UI component. Consists of a labeled button and a container which can be collapsed
|
|
11
|
+
* by clicking the button. The collapsible container can be a host to other UI views.
|
|
12
|
+
*
|
|
13
|
+
* @internal
|
|
14
|
+
*/
|
|
15
|
+
export default class CollapsibleView extends View {
|
|
16
|
+
/**
|
|
17
|
+
* Creates an instance of the collapsible view.
|
|
18
|
+
*
|
|
19
|
+
* @param locale The {@link module:core/editor/editor~Editor#locale} instance.
|
|
20
|
+
* @param childViews An optional array of initial child views to be inserted into the collapsible.
|
|
21
|
+
*/
|
|
22
|
+
constructor(locale, childViews) {
|
|
23
|
+
super(locale);
|
|
24
|
+
const bind = this.bindTemplate;
|
|
25
|
+
this.set('isCollapsed', false);
|
|
26
|
+
this.set('label', '');
|
|
27
|
+
this.buttonView = this._createButtonView();
|
|
28
|
+
this.children = this.createCollection();
|
|
29
|
+
this.set('_collapsibleAriaLabelUid', undefined);
|
|
30
|
+
if (childViews) {
|
|
31
|
+
this.children.addMany(childViews);
|
|
32
|
+
}
|
|
33
|
+
this.setTemplate({
|
|
34
|
+
tag: 'div',
|
|
35
|
+
attributes: {
|
|
36
|
+
class: [
|
|
37
|
+
'ck',
|
|
38
|
+
'ck-collapsible',
|
|
39
|
+
bind.if('isCollapsed', 'ck-collapsible_collapsed')
|
|
40
|
+
]
|
|
41
|
+
},
|
|
42
|
+
children: [
|
|
43
|
+
this.buttonView,
|
|
44
|
+
{
|
|
45
|
+
tag: 'div',
|
|
46
|
+
attributes: {
|
|
47
|
+
class: [
|
|
48
|
+
'ck',
|
|
49
|
+
'ck-collapsible__children'
|
|
50
|
+
],
|
|
51
|
+
role: 'region',
|
|
52
|
+
hidden: bind.if('isCollapsed', 'hidden'),
|
|
53
|
+
'aria-labelledby': bind.to('_collapsibleAriaLabelUid')
|
|
54
|
+
},
|
|
55
|
+
children: this.children
|
|
56
|
+
}
|
|
57
|
+
]
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* @inheritDoc
|
|
62
|
+
*/
|
|
63
|
+
render() {
|
|
64
|
+
super.render();
|
|
65
|
+
this._collapsibleAriaLabelUid = this.buttonView.labelView.element.id;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Focuses the first focusable.
|
|
69
|
+
*/
|
|
70
|
+
focus() {
|
|
71
|
+
this.buttonView.focus();
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Creates the main {@link #buttonView} of the collapsible.
|
|
75
|
+
*/
|
|
76
|
+
_createButtonView() {
|
|
77
|
+
const buttonView = new ButtonView(this.locale);
|
|
78
|
+
const bind = buttonView.bindTemplate;
|
|
79
|
+
buttonView.set({
|
|
80
|
+
withText: true,
|
|
81
|
+
icon: dropdownArrowIcon
|
|
82
|
+
});
|
|
83
|
+
buttonView.extendTemplate({
|
|
84
|
+
attributes: {
|
|
85
|
+
'aria-expanded': bind.to('isOn', value => String(value))
|
|
86
|
+
}
|
|
87
|
+
});
|
|
88
|
+
buttonView.bind('label').to(this);
|
|
89
|
+
buttonView.bind('isOn').to(this, 'isCollapsed', isCollapsed => !isCollapsed);
|
|
90
|
+
buttonView.on('execute', () => {
|
|
91
|
+
this.isCollapsed = !this.isCollapsed;
|
|
92
|
+
});
|
|
93
|
+
return buttonView;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
@@ -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/colorgrid/colorgridview
|
|
7
7
|
*/
|
|
8
|
-
import View from '../view';
|
|
9
|
-
import ColorTileView from './colortileview';
|
|
10
|
-
import type DropdownPanelFocusable from '../dropdown/dropdownpanelfocusable';
|
|
11
|
-
import type ViewCollection from '../viewcollection';
|
|
8
|
+
import View from '../view.js';
|
|
9
|
+
import ColorTileView from './colortileview.js';
|
|
10
|
+
import type DropdownPanelFocusable from '../dropdown/dropdownpanelfocusable.js';
|
|
11
|
+
import type ViewCollection from '../viewcollection.js';
|
|
12
12
|
import { FocusTracker, KeystrokeHandler, type Locale } from '@ckeditor/ckeditor5-utils';
|
|
13
13
|
import '../../theme/components/colorgrid/colorgrid.css';
|
|
14
14
|
/**
|
|
@@ -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/colorgrid/colorgridview
|
|
7
7
|
*/
|
|
8
|
-
import View from '../view';
|
|
9
|
-
import ColorTileView from './colortileview';
|
|
10
|
-
import addKeyboardHandlingForGrid from '../bindings/addkeyboardhandlingforgrid';
|
|
8
|
+
import View from '../view.js';
|
|
9
|
+
import ColorTileView from './colortileview.js';
|
|
10
|
+
import addKeyboardHandlingForGrid from '../bindings/addkeyboardhandlingforgrid.js';
|
|
11
11
|
import { FocusTracker, KeystrokeHandler } from '@ckeditor/ckeditor5-utils';
|
|
12
12
|
import '../../theme/components/colorgrid/colorgrid.css';
|
|
13
13
|
/**
|
|
@@ -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/colorgrid/colortileview
|
|
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
|
/**
|
|
11
11
|
* This class represents a single color tile in the {@link module:ui/colorgrid/colorgridview~ColorGridView}.
|
|
@@ -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/colorgrid/colortileview
|
|
7
7
|
*/
|
|
8
|
-
import ButtonView from '../button/buttonview';
|
|
8
|
+
import ButtonView from '../button/buttonview.js';
|
|
9
9
|
import checkIcon from '../../theme/icons/color-tile-check.svg';
|
|
10
10
|
/**
|
|
11
11
|
* This class represents a single color tile in the {@link module:ui/colorgrid/colorgridview~ColorGridView}.
|
package/src/colorgrid/utils.d.ts
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
|
/**
|
package/src/colorgrid/utils.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,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/colorpicker/colorpickerview
|
|
7
7
|
*/
|
|
8
|
-
import { type ColorPickerViewConfig } from './utils';
|
|
8
|
+
import { type ColorPickerViewConfig } from './utils.js';
|
|
9
9
|
import { type Locale } from '@ckeditor/ckeditor5-utils';
|
|
10
|
-
import View from '../view';
|
|
11
|
-
import type ViewCollection from '../viewcollection';
|
|
10
|
+
import View from '../view.js';
|
|
11
|
+
import type ViewCollection from '../viewcollection.js';
|
|
12
12
|
import 'vanilla-colorful/hex-color-picker.js';
|
|
13
13
|
import '../../theme/components/colorpicker/colorpicker.css';
|
|
14
14
|
/**
|