@ckeditor/ckeditor5-ui 40.2.0 → 41.1.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 +4 -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 +12 -7
- package/src/colorpicker/colorpickerview.js +12 -9
- package/src/colorpicker/utils.d.ts +6 -1
- package/src/colorpicker/utils.js +10 -1
- package/src/colorselector/colorgridsfragmentview.d.ts +9 -8
- package/src/colorselector/colorgridsfragmentview.js +10 -11
- 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 +29 -10
- package/src/focuscycler.js +46 -17
- 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 +5 -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 +7 -7
- 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,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.
|
|
@@ -1,14 +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/collapsible/collapsibleview
|
|
7
7
|
*/
|
|
8
8
|
import type { Locale } from '@ckeditor/ckeditor5-utils';
|
|
9
|
-
import View from '../view';
|
|
10
|
-
import ButtonView from '../button/buttonview';
|
|
11
|
-
import type ViewCollection from '../viewcollection';
|
|
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';
|
|
12
13
|
import '../../theme/components/collapsible/collapsible.css';
|
|
13
14
|
/**
|
|
14
15
|
* A collapsible UI component. Consists of a labeled button and a container which can be collapsed
|
|
@@ -46,14 +47,14 @@ export default class CollapsibleView extends View {
|
|
|
46
47
|
/**
|
|
47
48
|
* A collection of the child views that can be collapsed by clicking the {@link #buttonView}.
|
|
48
49
|
*/
|
|
49
|
-
readonly children: ViewCollection
|
|
50
|
+
readonly children: ViewCollection<FocusableView>;
|
|
50
51
|
/**
|
|
51
52
|
* Creates an instance of the collapsible view.
|
|
52
53
|
*
|
|
53
54
|
* @param locale The {@link module:core/editor/editor~Editor#locale} instance.
|
|
54
55
|
* @param childViews An optional array of initial child views to be inserted into the collapsible.
|
|
55
56
|
*/
|
|
56
|
-
constructor(locale: Locale, childViews?: Array<
|
|
57
|
+
constructor(locale: Locale, childViews?: Array<FocusableView>);
|
|
57
58
|
/**
|
|
58
59
|
* @inheritDoc
|
|
59
60
|
*/
|
|
@@ -1,9 +1,9 @@
|
|
|
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';
|
|
6
|
-
import ButtonView from '../button/buttonview';
|
|
5
|
+
import View from '../view.js';
|
|
6
|
+
import ButtonView from '../button/buttonview.js';
|
|
7
7
|
import dropdownArrowIcon from '../../theme/icons/dropdown-arrow.svg';
|
|
8
8
|
import '../../theme/components/collapsible/collapsible.css';
|
|
9
9
|
/**
|
|
@@ -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,16 +1,21 @@
|
|
|
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';
|
|
12
|
-
import 'vanilla-colorful/hex
|
|
10
|
+
import View from '../view.js';
|
|
11
|
+
import type ViewCollection from '../viewcollection.js';
|
|
12
|
+
import { HexBase } from 'vanilla-colorful/lib/entrypoints/hex';
|
|
13
13
|
import '../../theme/components/colorpicker/colorpicker.css';
|
|
14
|
+
declare global {
|
|
15
|
+
interface HTMLElementTagNameMap {
|
|
16
|
+
'hex-color-picker': HexBase;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
14
19
|
/**
|
|
15
20
|
* A class which represents a color picker with an input field for defining custom colors.
|
|
16
21
|
*/
|
|
@@ -18,7 +23,7 @@ export default class ColorPickerView extends View {
|
|
|
18
23
|
/**
|
|
19
24
|
* Element with saturation and hue sliders.
|
|
20
25
|
*/
|
|
21
|
-
picker:
|
|
26
|
+
picker: HexBase;
|
|
22
27
|
/**
|
|
23
28
|
* Container for a `#` sign prefix and an input for displaying and defining custom colors
|
|
24
29
|
* in HEX format.
|
|
@@ -96,7 +101,7 @@ export default class ColorPickerView extends View {
|
|
|
96
101
|
}
|
|
97
102
|
declare class SliderView extends View {
|
|
98
103
|
/**
|
|
99
|
-
* @param element HTML
|
|
104
|
+
* @param element HTML element of slider in color picker.
|
|
100
105
|
*/
|
|
101
106
|
constructor(element: HTMLElement);
|
|
102
107
|
/**
|
|
@@ -1,17 +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/colorpicker/colorpickerview
|
|
7
7
|
*/
|
|
8
|
-
import { convertColor, convertToHex } from './utils';
|
|
8
|
+
import { convertColor, convertToHex, registerCustomElement } from './utils.js';
|
|
9
9
|
import { global, env } from '@ckeditor/ckeditor5-utils';
|
|
10
10
|
import { debounce } from 'lodash-es';
|
|
11
|
-
import View from '../view';
|
|
12
|
-
import LabeledFieldView from '../labeledfield/labeledfieldview';
|
|
13
|
-
import { createLabeledInputText } from '../labeledfield/utils';
|
|
14
|
-
|
|
11
|
+
import View from '../view.js';
|
|
12
|
+
import LabeledFieldView from '../labeledfield/labeledfieldview.js';
|
|
13
|
+
import { createLabeledInputText } from '../labeledfield/utils.js';
|
|
14
|
+
// Custom export due to https://github.com/ckeditor/ckeditor5/issues/15698.
|
|
15
|
+
// eslint-disable-next-line ckeditor5-rules/require-file-extensions-in-imports
|
|
16
|
+
import { HexBase } from 'vanilla-colorful/lib/entrypoints/hex';
|
|
15
17
|
import '../../theme/components/colorpicker/colorpicker.css';
|
|
16
18
|
const waitingTime = 150;
|
|
17
19
|
/**
|
|
@@ -79,6 +81,8 @@ export default class ColorPickerView extends View {
|
|
|
79
81
|
*/
|
|
80
82
|
render() {
|
|
81
83
|
super.render();
|
|
84
|
+
// Extracted to the helper to make it testable.
|
|
85
|
+
registerCustomElement('hex-color-picker', HexBase);
|
|
82
86
|
this.picker = global.document.createElement('hex-color-picker');
|
|
83
87
|
this.picker.setAttribute('class', 'hex-color-picker');
|
|
84
88
|
this.picker.setAttribute('tabindex', '-1');
|
|
@@ -100,8 +104,7 @@ export default class ColorPickerView extends View {
|
|
|
100
104
|
this.picker.shadowRoot.appendChild(styleSheetForFocusedColorPicker);
|
|
101
105
|
}
|
|
102
106
|
this.picker.addEventListener('color-changed', event => {
|
|
103
|
-
const
|
|
104
|
-
const color = customEvent.detail.value;
|
|
107
|
+
const color = event.detail.value;
|
|
105
108
|
this._debounceColorPickerEvent(color);
|
|
106
109
|
});
|
|
107
110
|
}
|
|
@@ -213,7 +216,7 @@ function convertColorToCommonHexFormat(inputColor) {
|
|
|
213
216
|
// View abstraction over pointer in color picker.
|
|
214
217
|
class SliderView extends View {
|
|
215
218
|
/**
|
|
216
|
-
* @param element HTML
|
|
219
|
+
* @param element HTML element of slider in color picker.
|
|
217
220
|
*/
|
|
218
221
|
constructor(element) {
|
|
219
222
|
super();
|
|
@@ -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
|
/**
|
|
@@ -41,3 +41,8 @@ export declare function convertColor(color: string, outputFormat: ColorPickerOut
|
|
|
41
41
|
* @returns A color string.
|
|
42
42
|
*/
|
|
43
43
|
export declare function convertToHex(color: string): string;
|
|
44
|
+
/**
|
|
45
|
+
* Registers the custom element in the
|
|
46
|
+
* [CustomElementsRegistry](https://developer.mozilla.org/en-US/docs/Web/API/CustomElementRegistry).
|
|
47
|
+
*/
|
|
48
|
+
export declare function registerCustomElement(elementName: string, constructor: CustomElementConstructor): void;
|
package/src/colorpicker/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
|
/**
|
|
@@ -58,6 +58,15 @@ export function convertToHex(color) {
|
|
|
58
58
|
}
|
|
59
59
|
return convertColor(color, 'hex');
|
|
60
60
|
}
|
|
61
|
+
/**
|
|
62
|
+
* Registers the custom element in the
|
|
63
|
+
* [CustomElementsRegistry](https://developer.mozilla.org/en-US/docs/Web/API/CustomElementRegistry).
|
|
64
|
+
*/
|
|
65
|
+
export function registerCustomElement(elementName, constructor) {
|
|
66
|
+
if (customElements.get(elementName) === undefined) {
|
|
67
|
+
customElements.define(elementName, constructor);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
61
70
|
/**
|
|
62
71
|
* Formats the passed color channels according to the requested format.
|
|
63
72
|
*
|
|
@@ -1,17 +1,18 @@
|
|
|
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/colorselector/colorgridsfragmentview
|
|
7
7
|
*/
|
|
8
|
-
import View from '../view';
|
|
9
|
-
import ButtonView from '../button/buttonview';
|
|
10
|
-
import ColorGridView, { type ColorDefinition } from '../colorgrid/colorgridview';
|
|
11
|
-
import DocumentColorCollection from './documentcolorcollection';
|
|
8
|
+
import View from '../view.js';
|
|
9
|
+
import ButtonView from '../button/buttonview.js';
|
|
10
|
+
import ColorGridView, { type ColorDefinition } from '../colorgrid/colorgridview.js';
|
|
11
|
+
import DocumentColorCollection from './documentcolorcollection.js';
|
|
12
12
|
import type { Model } from '@ckeditor/ckeditor5-engine';
|
|
13
13
|
import type { FocusTracker, Locale } from '@ckeditor/ckeditor5-utils';
|
|
14
|
-
import type ViewCollection from '../viewcollection';
|
|
14
|
+
import type ViewCollection from '../viewcollection.js';
|
|
15
|
+
import type { FocusableView } from '../focuscycler.js';
|
|
15
16
|
/**
|
|
16
17
|
* One of the fragments of {@link module:ui/colorselector/colorselectorview~ColorSelectorView}.
|
|
17
18
|
*
|
|
@@ -94,7 +95,7 @@ export default class ColorGridsFragmentView extends View {
|
|
|
94
95
|
*
|
|
95
96
|
* @readonly
|
|
96
97
|
*/
|
|
97
|
-
protected _focusables: ViewCollection
|
|
98
|
+
protected _focusables: ViewCollection<FocusableView>;
|
|
98
99
|
/**
|
|
99
100
|
* Document color section's label.
|
|
100
101
|
*
|
|
@@ -130,7 +131,7 @@ export default class ColorGridsFragmentView extends View {
|
|
|
130
131
|
documentColorsLabel?: string;
|
|
131
132
|
documentColorsCount?: number;
|
|
132
133
|
focusTracker: FocusTracker;
|
|
133
|
-
focusables: ViewCollection
|
|
134
|
+
focusables: ViewCollection<FocusableView>;
|
|
134
135
|
});
|
|
135
136
|
/**
|
|
136
137
|
* Scans through the editor model and searches for text node attributes with the given attribute name.
|
|
@@ -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/colorselector/colorgridsfragmentview
|
|
7
7
|
*/
|
|
8
|
-
import View from '../view';
|
|
9
|
-
import ButtonView from '../button/buttonview';
|
|
10
|
-
import ColorGridView from '../colorgrid/colorgridview';
|
|
11
|
-
import ColorTileView from '../colorgrid/colortileview';
|
|
12
|
-
import LabelView from '../label/labelview';
|
|
13
|
-
import Template from '../template';
|
|
14
|
-
import DocumentColorCollection from './documentcolorcollection';
|
|
15
|
-
import
|
|
16
|
-
|
|
8
|
+
import View from '../view.js';
|
|
9
|
+
import ButtonView from '../button/buttonview.js';
|
|
10
|
+
import ColorGridView from '../colorgrid/colorgridview.js';
|
|
11
|
+
import ColorTileView from '../colorgrid/colortileview.js';
|
|
12
|
+
import LabelView from '../label/labelview.js';
|
|
13
|
+
import Template from '../template.js';
|
|
14
|
+
import DocumentColorCollection from './documentcolorcollection.js';
|
|
15
|
+
import { icons } from '@ckeditor/ckeditor5-core';
|
|
16
|
+
const { eraser: removeButtonIcon, colorPalette: colorPaletteIcon } = icons;
|
|
17
17
|
/**
|
|
18
18
|
* One of the fragments of {@link module:ui/colorselector/colorselectorview~ColorSelectorView}.
|
|
19
19
|
*
|
|
@@ -133,7 +133,6 @@ export default class ColorGridsFragmentView extends View {
|
|
|
133
133
|
}
|
|
134
134
|
this._createColorPickerButton();
|
|
135
135
|
this._addColorSelectorElementsToFocusTracker();
|
|
136
|
-
this.focus();
|
|
137
136
|
}
|
|
138
137
|
/**
|
|
139
138
|
* Focuses the component.
|
|
@@ -1,16 +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/colorselector/colorpickerfragmentview
|
|
7
7
|
*/
|
|
8
|
-
import View from '../view';
|
|
9
|
-
import ButtonView from '../button/buttonview';
|
|
10
|
-
import type ViewCollection from '../viewcollection';
|
|
11
|
-
import {
|
|
8
|
+
import View from '../view.js';
|
|
9
|
+
import ButtonView from '../button/buttonview.js';
|
|
10
|
+
import type ViewCollection from '../viewcollection.js';
|
|
11
|
+
import type { FocusableView } from '../focuscycler.js';
|
|
12
|
+
import { default as ColorPickerView } from '../colorpicker/colorpickerview.js';
|
|
12
13
|
import type { FocusTracker, KeystrokeHandler, Locale } from '@ckeditor/ckeditor5-utils';
|
|
13
|
-
import type { ColorPickerViewConfig } from '../colorpicker/utils';
|
|
14
|
+
import type { ColorPickerViewConfig } from '../colorpicker/utils.js';
|
|
14
15
|
/**
|
|
15
16
|
* One of the fragments of {@link module:ui/colorselector/colorselectorview~ColorSelectorView}.
|
|
16
17
|
*
|
|
@@ -64,7 +65,7 @@ export default class ColorPickerFragmentView extends View {
|
|
|
64
65
|
*
|
|
65
66
|
* @readonly
|
|
66
67
|
*/
|
|
67
|
-
protected _focusables: ViewCollection
|
|
68
|
+
protected _focusables: ViewCollection<FocusableView>;
|
|
68
69
|
/**
|
|
69
70
|
* A reference to the configuration of {@link #colorPickerView}. `false` when the view was
|
|
70
71
|
* configured without a color picker.
|
|
@@ -84,7 +85,7 @@ export default class ColorPickerFragmentView extends View {
|
|
|
84
85
|
*/
|
|
85
86
|
constructor(locale: Locale, { focusTracker, focusables, keystrokes, colorPickerViewConfig }: {
|
|
86
87
|
focusTracker: FocusTracker;
|
|
87
|
-
focusables: ViewCollection
|
|
88
|
+
focusables: ViewCollection<FocusableView>;
|
|
88
89
|
keystrokes: KeystrokeHandler;
|
|
89
90
|
colorPickerViewConfig: ColorPickerViewConfig | false;
|
|
90
91
|
});
|
|
@@ -1,15 +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/colorselector/colorpickerfragmentview
|
|
7
7
|
*/
|
|
8
|
-
import View from '../view';
|
|
9
|
-
import ButtonView from '../button/buttonview';
|
|
10
|
-
import { default as ColorPickerView } from '../colorpicker/colorpickerview';
|
|
11
|
-
import
|
|
12
|
-
import cancelButtonIcon from '@ckeditor/ckeditor5-core/theme/icons/cancel.svg';
|
|
8
|
+
import View from '../view.js';
|
|
9
|
+
import ButtonView from '../button/buttonview.js';
|
|
10
|
+
import { default as ColorPickerView } from '../colorpicker/colorpickerview.js';
|
|
11
|
+
import { icons } from '@ckeditor/ckeditor5-core';
|
|
13
12
|
/**
|
|
14
13
|
* One of the fragments of {@link module:ui/colorselector/colorselectorview~ColorSelectorView}.
|
|
15
14
|
*
|
|
@@ -163,14 +162,14 @@ export default class ColorPickerFragmentView extends View {
|
|
|
163
162
|
const saveButtonView = new ButtonView(locale);
|
|
164
163
|
const cancelButtonView = new ButtonView(locale);
|
|
165
164
|
saveButtonView.set({
|
|
166
|
-
icon:
|
|
165
|
+
icon: icons.check,
|
|
167
166
|
class: 'ck-button-save',
|
|
168
167
|
type: 'button',
|
|
169
168
|
withText: false,
|
|
170
169
|
label: t('Accept')
|
|
171
170
|
});
|
|
172
171
|
cancelButtonView.set({
|
|
173
|
-
icon:
|
|
172
|
+
icon: icons.cancel,
|
|
174
173
|
class: 'ck-button-cancel',
|
|
175
174
|
type: 'button',
|
|
176
175
|
withText: false,
|
|
@@ -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/colorselector/colorselectorview
|
|
7
7
|
*/
|
|
8
|
-
import FocusCycler from '../focuscycler';
|
|
9
|
-
import View from '../view';
|
|
10
|
-
import ViewCollection from '../viewcollection';
|
|
8
|
+
import FocusCycler, { type FocusableView } from '../focuscycler.js';
|
|
9
|
+
import View from '../view.js';
|
|
10
|
+
import ViewCollection from '../viewcollection.js';
|
|
11
11
|
import { FocusTracker, KeystrokeHandler, type Locale } from '@ckeditor/ckeditor5-utils';
|
|
12
|
-
import type { ColorPickerViewConfig } from '../colorpicker/utils';
|
|
13
|
-
import type { ColorDefinition } from '../colorgrid/colorgridview';
|
|
12
|
+
import type { ColorPickerViewConfig } from '../colorpicker/utils.js';
|
|
13
|
+
import type { ColorDefinition } from '../colorgrid/colorgridview.js';
|
|
14
14
|
import type { Model } from '@ckeditor/ckeditor5-engine';
|
|
15
|
-
import ColorGridsFragmentView from './colorgridsfragmentview';
|
|
16
|
-
import ColorPickerFragmentView from './colorpickerfragmentview';
|
|
15
|
+
import ColorGridsFragmentView from './colorgridsfragmentview.js';
|
|
16
|
+
import ColorPickerFragmentView from './colorpickerfragmentview.js';
|
|
17
17
|
import '../../theme/components/colorselector/colorselector.css';
|
|
18
18
|
/**
|
|
19
19
|
* The configurable color selector view class. It allows users to select colors from a predefined set of colors as well as from
|
|
@@ -111,7 +111,7 @@ export default class ColorSelectorView extends View {
|
|
|
111
111
|
*
|
|
112
112
|
* @readonly
|
|
113
113
|
*/
|
|
114
|
-
protected _focusables: ViewCollection
|
|
114
|
+
protected _focusables: ViewCollection<FocusableView>;
|
|
115
115
|
/**
|
|
116
116
|
* The configuration of color picker sub-component.
|
|
117
117
|
*/
|
|
@@ -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/colorselector/colorselectorview
|
|
7
7
|
*/
|
|
8
|
-
import FocusCycler from '../focuscycler';
|
|
9
|
-
import View from '../view';
|
|
10
|
-
import ViewCollection from '../viewcollection';
|
|
8
|
+
import FocusCycler from '../focuscycler.js';
|
|
9
|
+
import View from '../view.js';
|
|
10
|
+
import ViewCollection from '../viewcollection.js';
|
|
11
11
|
import { FocusTracker, KeystrokeHandler } from '@ckeditor/ckeditor5-utils';
|
|
12
|
-
import ColorGridsFragmentView from './colorgridsfragmentview';
|
|
13
|
-
import ColorPickerFragmentView from './colorpickerfragmentview';
|
|
12
|
+
import ColorGridsFragmentView from './colorgridsfragmentview.js';
|
|
13
|
+
import ColorPickerFragmentView from './colorpickerfragmentview.js';
|
|
14
14
|
import '../../theme/components/colorselector/colorselector.css';
|
|
15
15
|
/**
|
|
16
16
|
* The configurable color selector view class. It allows users to select colors from a predefined set of colors as well as from
|
|
@@ -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/colorselector/documentcolorcollection
|
|
7
7
|
*/
|
|
8
|
-
import type { ColorDefinition } from '../colorgrid/colorgridview';
|
|
8
|
+
import type { ColorDefinition } from '../colorgrid/colorgridview.js';
|
|
9
9
|
import { Collection, type CollectionAddEvent, type CollectionRemoveEvent, type CollectionChangeEvent } from '@ckeditor/ckeditor5-utils';
|
|
10
10
|
declare const DocumentColorCollection_base: import("@ckeditor/ckeditor5-utils").Mixed<{
|
|
11
11
|
new (options?: {
|
|
@@ -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
|
import { Collection, ObservableMixin } from '@ckeditor/ckeditor5-utils';
|
|
@@ -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
|
/**
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import { type Locale } from '@ckeditor/ckeditor5-utils';
|
|
9
9
|
import type { Editor } from '@ckeditor/ckeditor5-core';
|
|
10
|
-
import type View from './view';
|
|
10
|
+
import type View from './view.js';
|
|
11
11
|
/**
|
|
12
12
|
* A helper class implementing the UI component ({@link module:ui/view~View view}) factory.
|
|
13
13
|
*
|
package/src/componentfactory.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
|
/**
|