@ckeditor/ckeditor5-ui 38.2.0-alpha.0 → 38.2.0-alpha.1
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/lang/contexts.json +2 -1
- package/package.json +3 -3
- package/src/augmentation.d.ts +1 -1
- package/src/bindings/addkeyboardhandlingforgrid.d.ts +1 -1
- package/src/bindings/csstransitiondisablermixin.d.ts +1 -1
- 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/buttonview.d.ts +4 -4
- package/src/button/buttonview.js +2 -2
- package/src/button/switchbuttonview.d.ts +2 -2
- package/src/button/switchbuttonview.js +2 -2
- package/src/colorgrid/colorgridview.d.ts +4 -4
- package/src/colorgrid/colorgridview.js +3 -3
- package/src/colorgrid/colortileview.d.ts +1 -1
- package/src/colorgrid/colortileview.js +2 -2
- package/src/colorpicker/colorpickerview.d.ts +37 -10
- package/src/colorpicker/colorpickerview.js +33 -16
- package/src/colorpicker/utils.d.ts +8 -0
- package/src/colorselector/colorgridsfragmentview.d.ts +194 -0
- package/src/colorselector/colorgridsfragmentview.js +290 -0
- package/src/colorselector/colorpickerfragmentview.d.ts +128 -0
- package/src/colorselector/colorpickerfragmentview.js +205 -0
- package/src/colorselector/colorselectorview.d.ts +242 -0
- package/src/colorselector/colorselectorview.js +256 -0
- package/src/colorselector/documentcolorcollection.d.ts +70 -0
- package/src/colorselector/documentcolorcollection.js +42 -0
- package/src/componentfactory.d.ts +1 -1
- package/src/dropdown/button/dropdownbutton.d.ts +2 -2
- package/src/dropdown/button/dropdownbuttonview.d.ts +3 -3
- package/src/dropdown/button/dropdownbuttonview.js +2 -2
- package/src/dropdown/button/splitbuttonview.d.ts +5 -5
- package/src/dropdown/button/splitbuttonview.js +2 -2
- package/src/dropdown/dropdownpanelview.d.ts +3 -3
- package/src/dropdown/dropdownpanelview.js +1 -1
- package/src/dropdown/dropdownview.d.ts +6 -6
- package/src/dropdown/dropdownview.js +1 -1
- package/src/dropdown/utils.d.ts +7 -7
- package/src/dropdown/utils.js +16 -13
- package/src/editableui/editableuiview.d.ts +1 -1
- package/src/editableui/editableuiview.js +1 -1
- package/src/editableui/inline/inlineeditableuiview.d.ts +1 -1
- package/src/editableui/inline/inlineeditableuiview.js +1 -1
- package/src/editorui/bodycollection.d.ts +2 -2
- package/src/editorui/bodycollection.js +2 -2
- package/src/editorui/boxed/boxededitoruiview.d.ts +2 -2
- package/src/editorui/boxed/boxededitoruiview.js +2 -2
- package/src/editorui/editorui.d.ts +5 -5
- package/src/editorui/editorui.js +3 -3
- package/src/editorui/editoruiview.d.ts +3 -3
- package/src/editorui/editoruiview.js +2 -2
- package/src/editorui/poweredby.js +3 -3
- package/src/focuscycler.d.ts +2 -2
- package/src/formheader/formheaderview.d.ts +2 -2
- package/src/formheader/formheaderview.js +1 -1
- package/src/icon/iconview.d.ts +1 -1
- package/src/icon/iconview.js +1 -1
- package/src/iframe/iframeview.d.ts +1 -1
- package/src/iframe/iframeview.js +1 -1
- package/src/index.d.ts +53 -52
- package/src/index.js +51 -50
- package/src/input/inputview.d.ts +1 -1
- package/src/input/inputview.js +1 -1
- package/src/inputnumber/inputnumberview.d.ts +1 -1
- package/src/inputnumber/inputnumberview.js +1 -1
- package/src/inputtext/inputtextview.d.ts +1 -1
- package/src/inputtext/inputtextview.js +1 -1
- package/src/label/labelview.d.ts +1 -1
- package/src/label/labelview.js +1 -1
- package/src/labeledfield/labeledfieldview.d.ts +4 -4
- package/src/labeledfield/labeledfieldview.js +2 -2
- package/src/labeledfield/utils.d.ts +4 -4
- package/src/labeledfield/utils.js +3 -3
- package/src/labeledinput/labeledinputview.d.ts +3 -3
- package/src/labeledinput/labeledinputview.js +2 -2
- package/src/list/listitemview.d.ts +2 -2
- package/src/list/listitemview.js +1 -1
- package/src/list/listseparatorview.d.ts +1 -1
- package/src/list/listseparatorview.js +1 -1
- package/src/list/listview.d.ts +3 -3
- package/src/list/listview.js +2 -2
- package/src/panel/balloon/balloonpanelview.d.ts +2 -2
- package/src/panel/balloon/balloonpanelview.js +1 -1
- package/src/panel/balloon/contextualballoon.d.ts +4 -4
- package/src/panel/balloon/contextualballoon.js +3 -3
- package/src/panel/sticky/stickypanelview.d.ts +41 -17
- package/src/panel/sticky/stickypanelview.js +179 -46
- package/src/template.d.ts +2 -2
- package/src/template.js +2 -2
- package/src/toolbar/balloon/balloontoolbar.d.ts +2 -2
- package/src/toolbar/balloon/balloontoolbar.js +4 -4
- package/src/toolbar/block/blockbuttonview.d.ts +1 -1
- package/src/toolbar/block/blockbuttonview.js +1 -1
- package/src/toolbar/block/blocktoolbar.d.ts +3 -3
- package/src/toolbar/block/blocktoolbar.js +5 -5
- package/src/toolbar/toolbarlinebreakview.d.ts +1 -1
- package/src/toolbar/toolbarlinebreakview.js +1 -1
- package/src/toolbar/toolbarseparatorview.d.ts +1 -1
- package/src/toolbar/toolbarseparatorview.js +1 -1
- package/src/toolbar/toolbarview.d.ts +4 -4
- package/src/toolbar/toolbarview.js +7 -7
- package/src/tooltipmanager.d.ts +2 -2
- package/src/tooltipmanager.js +2 -2
- package/src/view.d.ts +2 -2
- package/src/view.js +2 -2
- package/src/viewcollection.d.ts +1 -1
- package/theme/components/colorpicker/colorpicker.css +10 -0
- package/theme/components/colorselector/colorselector.css +35 -0
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, 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/colorselector/documentcolorcollection
|
|
7
|
+
*/
|
|
8
|
+
import type { ColorDefinition } from '../colorgrid/colorgridview.js';
|
|
9
|
+
import { Collection, type CollectionAddEvent, type CollectionRemoveEvent, type CollectionChangeEvent } from '@ckeditor/ckeditor5-utils';
|
|
10
|
+
declare const DocumentColorCollection_base: import("@ckeditor/ckeditor5-utils").Mixed<{
|
|
11
|
+
new (options?: {
|
|
12
|
+
readonly idProperty?: string | undefined;
|
|
13
|
+
} | undefined): Collection<ColorDefinition>;
|
|
14
|
+
new (initialItems: Iterable<ColorDefinition>, options?: {
|
|
15
|
+
readonly idProperty?: string | undefined;
|
|
16
|
+
} | undefined): Collection<ColorDefinition>;
|
|
17
|
+
}, import("@ckeditor/ckeditor5-utils").Observable>;
|
|
18
|
+
/**
|
|
19
|
+
* A collection to store document colors. It enforces colors to be unique.
|
|
20
|
+
*/
|
|
21
|
+
export default class DocumentColorCollection extends DocumentColorCollection_base {
|
|
22
|
+
/**
|
|
23
|
+
* Indicates whether the document color collection is empty.
|
|
24
|
+
*
|
|
25
|
+
* @observable
|
|
26
|
+
*/
|
|
27
|
+
readonly isEmpty: boolean;
|
|
28
|
+
constructor(options?: any);
|
|
29
|
+
/**
|
|
30
|
+
* Adds a color to the document color collection.
|
|
31
|
+
*
|
|
32
|
+
* This method ensures that no color duplicates are inserted (compared using
|
|
33
|
+
* the color value of the {@link module:ui/colorgrid/colorgridview~ColorDefinition}).
|
|
34
|
+
*
|
|
35
|
+
* If the item does not have an ID, it will be automatically generated and set on the item.
|
|
36
|
+
*
|
|
37
|
+
* @param index The position of the item in the collection. The item is pushed to the collection when `index` is not specified.
|
|
38
|
+
* @fires add
|
|
39
|
+
* @fires change
|
|
40
|
+
*/
|
|
41
|
+
add(item: ColorDefinition, index?: number): this;
|
|
42
|
+
/**
|
|
43
|
+
* Checks if an object with given colors is present in the document color collection.
|
|
44
|
+
*/
|
|
45
|
+
hasColor(color: string): boolean;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Fired when the collection was changed due to adding or removing items.
|
|
49
|
+
*
|
|
50
|
+
* @eventName ~DocumentColorCollection#change
|
|
51
|
+
* @param data Changed items.
|
|
52
|
+
*/
|
|
53
|
+
export type DocumentColorCollectionChangeEvent = CollectionChangeEvent;
|
|
54
|
+
/**
|
|
55
|
+
* Fired when an item is added to the collection.
|
|
56
|
+
*
|
|
57
|
+
* @eventName ~DocumentColorCollection#add
|
|
58
|
+
* @param item The added item.
|
|
59
|
+
* @param index An index where the addition occurred.
|
|
60
|
+
*/
|
|
61
|
+
export type DocumentColorCollectionAddEvent = CollectionAddEvent;
|
|
62
|
+
/**
|
|
63
|
+
* Fired when an item is removed from the collection.
|
|
64
|
+
*
|
|
65
|
+
* @eventName ~DocumentColorCollection#remove
|
|
66
|
+
* @param item The removed item.
|
|
67
|
+
* @param index Index from which item was removed.
|
|
68
|
+
*/
|
|
69
|
+
export type DocumentColorCollectionRemoveEvent = CollectionRemoveEvent;
|
|
70
|
+
export {};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, 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 { Collection, ObservableMixin } from '@ckeditor/ckeditor5-utils';
|
|
6
|
+
/**
|
|
7
|
+
* A collection to store document colors. It enforces colors to be unique.
|
|
8
|
+
*/
|
|
9
|
+
export default class DocumentColorCollection extends ObservableMixin((Collection)) {
|
|
10
|
+
constructor(options) {
|
|
11
|
+
super(options);
|
|
12
|
+
this.set('isEmpty', true);
|
|
13
|
+
this.on('change', () => {
|
|
14
|
+
this.set('isEmpty', this.length === 0);
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Adds a color to the document color collection.
|
|
19
|
+
*
|
|
20
|
+
* This method ensures that no color duplicates are inserted (compared using
|
|
21
|
+
* the color value of the {@link module:ui/colorgrid/colorgridview~ColorDefinition}).
|
|
22
|
+
*
|
|
23
|
+
* If the item does not have an ID, it will be automatically generated and set on the item.
|
|
24
|
+
*
|
|
25
|
+
* @param index The position of the item in the collection. The item is pushed to the collection when `index` is not specified.
|
|
26
|
+
* @fires add
|
|
27
|
+
* @fires change
|
|
28
|
+
*/
|
|
29
|
+
add(item, index) {
|
|
30
|
+
if (this.find(element => element.color === item.color)) {
|
|
31
|
+
// No duplicates are allowed.
|
|
32
|
+
return this;
|
|
33
|
+
}
|
|
34
|
+
return super.add(item, index);
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Checks if an object with given colors is present in the document color collection.
|
|
38
|
+
*/
|
|
39
|
+
hasColor(color) {
|
|
40
|
+
return !!this.find(item => item.color === color);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -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
|
*
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module ui/dropdown/button/dropdownbutton
|
|
7
7
|
*/
|
|
8
|
-
import type Button from '../../button/button';
|
|
9
|
-
import type ViewCollection from '../../viewcollection';
|
|
8
|
+
import type Button from '../../button/button.js';
|
|
9
|
+
import type ViewCollection from '../../viewcollection.js';
|
|
10
10
|
/**
|
|
11
11
|
* The dropdown button interface.
|
|
12
12
|
*/
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module ui/dropdown/button/dropdownbuttonview
|
|
7
7
|
*/
|
|
8
|
-
import ButtonView from '../../button/buttonview';
|
|
9
|
-
import type DropdownButton from './dropdownbutton';
|
|
10
|
-
import IconView from '../../icon/iconview';
|
|
8
|
+
import ButtonView from '../../button/buttonview.js';
|
|
9
|
+
import type DropdownButton from './dropdownbutton.js';
|
|
10
|
+
import IconView from '../../icon/iconview.js';
|
|
11
11
|
import type { Locale } from '@ckeditor/ckeditor5-utils';
|
|
12
12
|
/**
|
|
13
13
|
* The default dropdown button view class.
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module ui/dropdown/button/dropdownbuttonview
|
|
7
7
|
*/
|
|
8
|
-
import ButtonView from '../../button/buttonview';
|
|
9
|
-
import IconView from '../../icon/iconview';
|
|
8
|
+
import ButtonView from '../../button/buttonview.js';
|
|
9
|
+
import IconView from '../../icon/iconview.js';
|
|
10
10
|
import dropdownArrowIcon from '../../../theme/icons/dropdown-arrow.svg';
|
|
11
11
|
/**
|
|
12
12
|
* The default dropdown button view class.
|
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module ui/dropdown/button/splitbuttonview
|
|
7
7
|
*/
|
|
8
|
-
import View from '../../view';
|
|
9
|
-
import ButtonView from '../../button/buttonview';
|
|
10
|
-
import type ViewCollection from '../../viewcollection';
|
|
11
|
-
import type Button from '../../button/button';
|
|
12
|
-
import type DropdownButton from './dropdownbutton';
|
|
8
|
+
import View from '../../view.js';
|
|
9
|
+
import ButtonView from '../../button/buttonview.js';
|
|
10
|
+
import type ViewCollection from '../../viewcollection.js';
|
|
11
|
+
import type Button from '../../button/button.js';
|
|
12
|
+
import type DropdownButton from './dropdownbutton.js';
|
|
13
13
|
import { KeystrokeHandler, FocusTracker, type Locale } from '@ckeditor/ckeditor5-utils';
|
|
14
14
|
import '../../../theme/components/dropdown/splitbutton.css';
|
|
15
15
|
/**
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module ui/dropdown/button/splitbuttonview
|
|
7
7
|
*/
|
|
8
|
-
import View from '../../view';
|
|
9
|
-
import ButtonView from '../../button/buttonview';
|
|
8
|
+
import View from '../../view.js';
|
|
9
|
+
import ButtonView from '../../button/buttonview.js';
|
|
10
10
|
import { KeystrokeHandler, FocusTracker } from '@ckeditor/ckeditor5-utils';
|
|
11
11
|
import dropdownArrowIcon from '../../../theme/icons/dropdown-arrow.svg';
|
|
12
12
|
import '../../../theme/components/dropdown/splitbutton.css';
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module ui/dropdown/dropdownpanelview
|
|
7
7
|
*/
|
|
8
|
-
import View from '../view';
|
|
9
|
-
import type ViewCollection from '../viewcollection';
|
|
10
|
-
import type DropdownPanelFocusable from './dropdownpanelfocusable';
|
|
8
|
+
import View from '../view.js';
|
|
9
|
+
import type ViewCollection from '../viewcollection.js';
|
|
10
|
+
import type DropdownPanelFocusable from './dropdownpanelfocusable.js';
|
|
11
11
|
import { type Locale } from '@ckeditor/ckeditor5-utils';
|
|
12
12
|
/**
|
|
13
13
|
* The dropdown panel view class.
|
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module ui/dropdown/dropdownview
|
|
7
7
|
*/
|
|
8
|
-
import View from '../view';
|
|
9
|
-
import type { default as DropdownButton } from './button/dropdownbutton';
|
|
10
|
-
import type { default as DropdownPanelView, PanelPosition } from './dropdownpanelview';
|
|
11
|
-
import type { FocusableView } from '../focuscycler';
|
|
12
|
-
import type ListView from '../list/listview';
|
|
13
|
-
import type ToolbarView from '../toolbar/toolbarview';
|
|
8
|
+
import View from '../view.js';
|
|
9
|
+
import type { default as DropdownButton } from './button/dropdownbutton.js';
|
|
10
|
+
import type { default as DropdownPanelView, PanelPosition } from './dropdownpanelview.js';
|
|
11
|
+
import type { FocusableView } from '../focuscycler.js';
|
|
12
|
+
import type ListView from '../list/listview.js';
|
|
13
|
+
import type ToolbarView from '../toolbar/toolbarview.js';
|
|
14
14
|
import { KeystrokeHandler, FocusTracker, type Locale, type PositioningFunction } from '@ckeditor/ckeditor5-utils';
|
|
15
15
|
import '../../theme/components/dropdown/dropdown.css';
|
|
16
16
|
/**
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module ui/dropdown/dropdownview
|
|
7
7
|
*/
|
|
8
|
-
import View from '../view';
|
|
8
|
+
import View from '../view.js';
|
|
9
9
|
import { KeystrokeHandler, FocusTracker, getOptimalPosition } from '@ckeditor/ckeditor5-utils';
|
|
10
10
|
import '../../theme/components/dropdown/dropdown.css';
|
|
11
11
|
/**
|
package/src/dropdown/utils.d.ts
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
* @license Copyright (c) 2003-2023, 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 DropdownView from './dropdownview';
|
|
6
|
-
import ViewCollection from '../viewcollection';
|
|
7
|
-
import type { default as View } from '../view';
|
|
8
|
-
import type Model from '../model';
|
|
9
|
-
import type DropdownButton from './button/dropdownbutton';
|
|
10
|
-
import type { FocusableView } from '../focuscycler';
|
|
11
|
-
import type { FalsyValue } from '../template';
|
|
5
|
+
import DropdownView from './dropdownview.js';
|
|
6
|
+
import ViewCollection from '../viewcollection.js';
|
|
7
|
+
import type { default as View } from '../view.js';
|
|
8
|
+
import type Model from '../model.js';
|
|
9
|
+
import type DropdownButton from './button/dropdownbutton.js';
|
|
10
|
+
import type { FocusableView } from '../focuscycler.js';
|
|
11
|
+
import type { FalsyValue } from '../template.js';
|
|
12
12
|
import { type Collection, type Locale } from '@ckeditor/ckeditor5-utils';
|
|
13
13
|
import '../../theme/components/dropdown/toolbardropdown.css';
|
|
14
14
|
import '../../theme/components/dropdown/listdropdown.css';
|
package/src/dropdown/utils.js
CHANGED
|
@@ -5,18 +5,18 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module ui/dropdown/utils
|
|
7
7
|
*/
|
|
8
|
-
import DropdownPanelView from './dropdownpanelview';
|
|
9
|
-
import DropdownView from './dropdownview';
|
|
10
|
-
import DropdownButtonView from './button/dropdownbuttonview';
|
|
11
|
-
import ToolbarView from '../toolbar/toolbarview';
|
|
12
|
-
import ListView from '../list/listview';
|
|
13
|
-
import ListItemView from '../list/listitemview';
|
|
14
|
-
import ListSeparatorView from '../list/listseparatorview';
|
|
15
|
-
import ButtonView from '../button/buttonview';
|
|
16
|
-
import SplitButtonView from './button/splitbuttonview';
|
|
17
|
-
import SwitchButtonView from '../button/switchbuttonview';
|
|
18
|
-
import ViewCollection from '../viewcollection';
|
|
19
|
-
import clickOutsideHandler from '../bindings/clickoutsidehandler';
|
|
8
|
+
import DropdownPanelView from './dropdownpanelview.js';
|
|
9
|
+
import DropdownView from './dropdownview.js';
|
|
10
|
+
import DropdownButtonView from './button/dropdownbuttonview.js';
|
|
11
|
+
import ToolbarView from '../toolbar/toolbarview.js';
|
|
12
|
+
import ListView from '../list/listview.js';
|
|
13
|
+
import ListItemView from '../list/listitemview.js';
|
|
14
|
+
import ListSeparatorView from '../list/listseparatorview.js';
|
|
15
|
+
import ButtonView from '../button/buttonview.js';
|
|
16
|
+
import SplitButtonView from './button/splitbuttonview.js';
|
|
17
|
+
import SwitchButtonView from '../button/switchbuttonview.js';
|
|
18
|
+
import ViewCollection from '../viewcollection.js';
|
|
19
|
+
import clickOutsideHandler from '../bindings/clickoutsidehandler.js';
|
|
20
20
|
import { global, priorities, logWarning } from '@ckeditor/ckeditor5-utils';
|
|
21
21
|
import '../../theme/components/dropdown/toolbardropdown.css';
|
|
22
22
|
import '../../theme/components/dropdown/listdropdown.css';
|
|
@@ -353,7 +353,10 @@ function closeDropdownOnClickOutside(dropdownView) {
|
|
|
353
353
|
callback: () => {
|
|
354
354
|
dropdownView.isOpen = false;
|
|
355
355
|
},
|
|
356
|
-
contextElements: [
|
|
356
|
+
contextElements: () => [
|
|
357
|
+
dropdownView.element,
|
|
358
|
+
...dropdownView.focusTracker._elements
|
|
359
|
+
]
|
|
357
360
|
});
|
|
358
361
|
});
|
|
359
362
|
}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module ui/editableui/inline/inlineeditableuiview
|
|
7
7
|
*/
|
|
8
|
-
import EditableUIView from '../editableuiview';
|
|
8
|
+
import EditableUIView from '../editableuiview.js';
|
|
9
9
|
import type { View } from '@ckeditor/ckeditor5-engine';
|
|
10
10
|
import type { Locale } from '@ckeditor/ckeditor5-utils';
|
|
11
11
|
/**
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module ui/editableui/inline/inlineeditableuiview
|
|
7
7
|
*/
|
|
8
|
-
import EditableUIView from '../editableuiview';
|
|
8
|
+
import EditableUIView from '../editableuiview.js';
|
|
9
9
|
/**
|
|
10
10
|
* The inline editable UI class implementing an inline {@link module:ui/editableui/editableuiview~EditableUIView}.
|
|
11
11
|
*/
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* @license Copyright (c) 2003-2023, 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 ViewCollection from '../viewcollection';
|
|
6
|
-
import type View from '../view';
|
|
5
|
+
import ViewCollection from '../viewcollection.js';
|
|
6
|
+
import type View from '../view.js';
|
|
7
7
|
import { type Locale } from '@ckeditor/ckeditor5-utils';
|
|
8
8
|
/**
|
|
9
9
|
* This is a special {@link module:ui/viewcollection~ViewCollection} dedicated to elements that are detached
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
* @module ui/editorui/bodycollection
|
|
7
7
|
*/
|
|
8
8
|
/* globals document */
|
|
9
|
-
import Template from '../template';
|
|
10
|
-
import ViewCollection from '../viewcollection';
|
|
9
|
+
import Template from '../template.js';
|
|
10
|
+
import ViewCollection from '../viewcollection.js';
|
|
11
11
|
import { createElement } from '@ckeditor/ckeditor5-utils';
|
|
12
12
|
/**
|
|
13
13
|
* This is a special {@link module:ui/viewcollection~ViewCollection} dedicated to elements that are detached
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module ui/editorui/boxed/boxededitoruiview
|
|
7
7
|
*/
|
|
8
|
-
import EditorUIView from '../editoruiview';
|
|
9
|
-
import type ViewCollection from '../../viewcollection';
|
|
8
|
+
import EditorUIView from '../editoruiview.js';
|
|
9
|
+
import type ViewCollection from '../../viewcollection.js';
|
|
10
10
|
import type { Locale } from '@ckeditor/ckeditor5-utils';
|
|
11
11
|
/**
|
|
12
12
|
* The boxed editor UI view class. This class represents an editor interface
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module ui/editorui/boxed/boxededitoruiview
|
|
7
7
|
*/
|
|
8
|
-
import EditorUIView from '../editoruiview';
|
|
9
|
-
import LabelView from '../../label/labelview';
|
|
8
|
+
import EditorUIView from '../editoruiview.js';
|
|
9
|
+
import LabelView from '../../label/labelview.js';
|
|
10
10
|
/**
|
|
11
11
|
* The boxed editor UI view class. This class represents an editor interface
|
|
12
12
|
* consisting of a toolbar and an editable area, enclosed within a box.
|
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module ui/editorui/editorui
|
|
7
7
|
*/
|
|
8
|
-
import ComponentFactory from '../componentfactory';
|
|
9
|
-
import TooltipManager from '../tooltipmanager';
|
|
10
|
-
import PoweredBy from './poweredby';
|
|
11
|
-
import type EditorUIView from './editoruiview';
|
|
12
|
-
import type ToolbarView from '../toolbar/toolbarview';
|
|
8
|
+
import ComponentFactory from '../componentfactory.js';
|
|
9
|
+
import TooltipManager from '../tooltipmanager.js';
|
|
10
|
+
import PoweredBy from './poweredby.js';
|
|
11
|
+
import type EditorUIView from './editoruiview.js';
|
|
12
|
+
import type ToolbarView from '../toolbar/toolbarview.js';
|
|
13
13
|
import { FocusTracker } from '@ckeditor/ckeditor5-utils';
|
|
14
14
|
import type { Editor } from '@ckeditor/ckeditor5-core';
|
|
15
15
|
declare const EditorUI_base: {
|
package/src/editorui/editorui.js
CHANGED
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
* @module ui/editorui/editorui
|
|
7
7
|
*/
|
|
8
8
|
/* globals console */
|
|
9
|
-
import ComponentFactory from '../componentfactory';
|
|
10
|
-
import TooltipManager from '../tooltipmanager';
|
|
11
|
-
import PoweredBy from './poweredby';
|
|
9
|
+
import ComponentFactory from '../componentfactory.js';
|
|
10
|
+
import TooltipManager from '../tooltipmanager.js';
|
|
11
|
+
import PoweredBy from './poweredby.js';
|
|
12
12
|
import { ObservableMixin, isVisible, FocusTracker } from '@ckeditor/ckeditor5-utils';
|
|
13
13
|
/**
|
|
14
14
|
* A class providing the minimal interface that is required to successfully bootstrap any editor UI.
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module ui/editorui/editoruiview
|
|
7
7
|
*/
|
|
8
|
-
import View from '../view';
|
|
9
|
-
import BodyCollection from './bodycollection';
|
|
10
|
-
import type EditableUIView from '../editableui/editableuiview';
|
|
8
|
+
import View from '../view.js';
|
|
9
|
+
import BodyCollection from './bodycollection.js';
|
|
10
|
+
import type EditableUIView from '../editableui/editableuiview.js';
|
|
11
11
|
import type { Locale, LocaleTranslate } from '@ckeditor/ckeditor5-utils';
|
|
12
12
|
import '../../theme/components/editorui/editorui.css';
|
|
13
13
|
/**
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module ui/editorui/editoruiview
|
|
7
7
|
*/
|
|
8
|
-
import View from '../view';
|
|
9
|
-
import BodyCollection from './bodycollection';
|
|
8
|
+
import View from '../view.js';
|
|
9
|
+
import BodyCollection from './bodycollection.js';
|
|
10
10
|
import '../../theme/components/editorui/editorui.css';
|
|
11
11
|
/**
|
|
12
12
|
* The editor UI view class. Base class for the editor main views.
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
import { Rect, DomEmitterMixin, findClosestScrollableAncestor, verifyLicense } from '@ckeditor/ckeditor5-utils';
|
|
6
|
-
import BalloonPanelView from '../panel/balloon/balloonpanelview';
|
|
7
|
-
import IconView from '../icon/iconview';
|
|
8
|
-
import View from '../view';
|
|
6
|
+
import BalloonPanelView from '../panel/balloon/balloonpanelview.js';
|
|
7
|
+
import IconView from '../icon/iconview.js';
|
|
8
|
+
import View from '../view.js';
|
|
9
9
|
import { throttle } from 'lodash-es';
|
|
10
10
|
import poweredByIcon from '../../theme/icons/project-logo.svg';
|
|
11
11
|
const ICON_WIDTH = 53;
|
package/src/focuscycler.d.ts
CHANGED
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
* @module ui/focuscycler
|
|
7
7
|
*/
|
|
8
8
|
import { type ArrayOrItem, type FocusTracker, type KeystrokeHandler } from '@ckeditor/ckeditor5-utils';
|
|
9
|
-
import type View from './view';
|
|
10
|
-
import type ViewCollection from './viewcollection';
|
|
9
|
+
import type View from './view.js';
|
|
10
|
+
import type ViewCollection from './viewcollection.js';
|
|
11
11
|
/**
|
|
12
12
|
* A utility class that helps cycling over focusable {@link module:ui/view~View views} in a
|
|
13
13
|
* {@link module:ui/viewcollection~ViewCollection} when the focus is tracked by the
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module ui/formheader/formheaderview
|
|
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/formheader/formheader.css';
|
|
12
12
|
/**
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module ui/formheader/formheaderview
|
|
7
7
|
*/
|
|
8
|
-
import View from '../view';
|
|
8
|
+
import View from '../view.js';
|
|
9
9
|
import '../../theme/components/formheader/formheader.css';
|
|
10
10
|
/**
|
|
11
11
|
* The class component representing a form header view. It should be used in more advanced forms to
|
package/src/icon/iconview.d.ts
CHANGED
package/src/icon/iconview.js
CHANGED