@ckeditor/ckeditor5-ui 45.2.1 → 46.0.0-alpha.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/dist/index-editor.css +19 -19
- package/dist/index.css +34 -34
- package/dist/index.css.map +1 -1
- package/dist/index.js +4994 -4957
- package/dist/index.js.map +1 -1
- package/package.json +9 -9
- package/src/arialiveannouncer.d.ts +6 -7
- package/src/arialiveannouncer.js +2 -2
- package/src/autocomplete/autocompleteview.d.ts +4 -4
- package/src/autocomplete/autocompleteview.js +2 -2
- package/src/badge/badge.d.ts +2 -2
- package/src/badge/badge.js +2 -2
- 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 +5 -4
- package/src/bindings/csstransitiondisablermixin.js +11 -8
- package/src/bindings/draggableviewmixin.d.ts +3 -3
- package/src/bindings/draggableviewmixin.js +2 -2
- package/src/bindings/preventdefault.d.ts +4 -3
- package/src/bindings/preventdefault.js +3 -2
- package/src/bindings/submithandler.d.ts +3 -3
- package/src/bindings/submithandler.js +2 -2
- package/src/button/button.d.ts +1 -1
- package/src/button/buttonlabel.d.ts +2 -2
- 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/filedialogbuttonview.d.ts +17 -12
- package/src/button/filedialogbuttonview.js +5 -13
- package/src/button/listitembuttonview.d.ts +8 -5
- package/src/button/listitembuttonview.js +8 -5
- package/src/button/switchbuttonview.d.ts +3 -3
- package/src/button/switchbuttonview.js +3 -3
- package/src/collapsible/collapsibleview.d.ts +4 -4
- 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/colorpicker/colorpickerview.d.ts +8 -8
- package/src/colorpicker/colorpickerview.js +6 -5
- package/src/colorpicker/utils.d.ts +3 -0
- package/src/colorpicker/utils.js +4 -4
- package/src/colorselector/colorgridsfragmentview.d.ts +6 -6
- package/src/colorselector/colorgridsfragmentview.js +7 -7
- package/src/colorselector/colorpickerfragmentview.d.ts +5 -5
- package/src/colorselector/colorpickerfragmentview.js +4 -4
- package/src/colorselector/colorselectorview.d.ts +6 -6
- package/src/colorselector/colorselectorview.js +6 -6
- package/src/colorselector/documentcolorcollection.d.ts +1 -1
- 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 +3 -3
- package/src/dialog/dialog.js +2 -2
- package/src/dialog/dialogactionsview.d.ts +6 -6
- package/src/dialog/dialogactionsview.js +5 -5
- package/src/dialog/dialogcontentview.d.ts +3 -3
- package/src/dialog/dialogcontentview.js +2 -2
- package/src/dialog/dialogview.d.ts +8 -8
- package/src/dialog/dialogview.js +9 -9
- package/src/dropdown/button/dropdownbutton.d.ts +3 -3
- package/src/dropdown/button/dropdownbuttonview.d.ts +4 -4
- package/src/dropdown/button/dropdownbuttonview.js +3 -3
- package/src/dropdown/button/splitbuttonview.d.ts +6 -6
- package/src/dropdown/button/splitbuttonview.js +3 -3
- package/src/dropdown/dropdownpanelfocusable.d.ts +1 -1
- package/src/dropdown/dropdownpanelview.d.ts +4 -4
- package/src/dropdown/dropdownpanelview.js +2 -2
- package/src/dropdown/dropdownview.d.ts +7 -7
- package/src/dropdown/dropdownview.js +2 -2
- package/src/dropdown/menu/dropdownmenubehaviors.d.ts +8 -2
- package/src/dropdown/menu/dropdownmenubehaviors.js +7 -1
- package/src/dropdown/menu/dropdownmenubuttonview.d.ts +3 -3
- package/src/dropdown/menu/dropdownmenubuttonview.js +3 -3
- package/src/dropdown/menu/dropdownmenulistitembuttonview.d.ts +2 -2
- package/src/dropdown/menu/dropdownmenulistitembuttonview.js +2 -2
- package/src/dropdown/menu/dropdownmenulistitemview.d.ts +4 -4
- package/src/dropdown/menu/dropdownmenulistitemview.js +3 -3
- package/src/dropdown/menu/dropdownmenulistview.d.ts +2 -2
- package/src/dropdown/menu/dropdownmenulistview.js +2 -2
- package/src/dropdown/menu/dropdownmenunestedmenupanelview.d.ts +2 -2
- package/src/dropdown/menu/dropdownmenunestedmenupanelview.js +2 -2
- package/src/dropdown/menu/dropdownmenunestedmenuview.d.ts +6 -6
- package/src/dropdown/menu/dropdownmenunestedmenuview.js +5 -5
- package/src/dropdown/menu/dropdownmenurootlistview.d.ts +5 -5
- package/src/dropdown/menu/dropdownmenurootlistview.js +5 -5
- package/src/dropdown/utils.d.ts +7 -7
- package/src/dropdown/utils.js +14 -14
- package/src/editableui/editableuiview.d.ts +2 -2
- package/src/editableui/editableuiview.js +2 -2
- package/src/editableui/inline/inlineeditableuiview.d.ts +3 -4
- package/src/editableui/inline/inlineeditableuiview.js +2 -2
- package/src/editorui/accessibilityhelp/accessibilityhelp.d.ts +3 -3
- package/src/editorui/accessibilityhelp/accessibilityhelp.js +5 -5
- package/src/editorui/accessibilityhelp/accessibilityhelpcontentview.d.ts +2 -2
- package/src/editorui/accessibilityhelp/accessibilityhelpcontentview.js +3 -3
- 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 +10 -16
- package/src/editorui/editorui.js +6 -25
- package/src/editorui/editoruiview.d.ts +6 -6
- package/src/editorui/editoruiview.js +3 -3
- package/src/editorui/evaluationbadge.d.ts +3 -3
- package/src/editorui/evaluationbadge.js +3 -3
- package/src/editorui/poweredby.d.ts +4 -6
- package/src/editorui/poweredby.js +4 -4
- package/src/focuscycler.d.ts +3 -3
- package/src/focuscycler.js +1 -1
- package/src/formheader/formheaderview.d.ts +4 -4
- package/src/formheader/formheaderview.js +3 -3
- package/src/formrow/formrowview.d.ts +4 -4
- package/src/formrow/formrowview.js +2 -2
- package/src/highlightedtext/buttonlabelwithhighlightview.d.ts +3 -3
- package/src/highlightedtext/buttonlabelwithhighlightview.js +2 -2
- package/src/highlightedtext/highlightedtextview.d.ts +2 -2
- package/src/highlightedtext/highlightedtextview.js +2 -2
- package/src/highlightedtext/labelwithhighlightview.d.ts +3 -3
- package/src/highlightedtext/labelwithhighlightview.js +2 -2
- package/src/icon/iconview.d.ts +2 -2
- package/src/icon/iconview.js +2 -2
- package/src/iframe/iframeview.d.ts +2 -2
- package/src/iframe/iframeview.js +2 -2
- package/src/index.d.ts +128 -85
- package/src/index.js +122 -82
- 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 +4 -4
- package/src/labeledfield/labeledfieldview.js +3 -3
- package/src/labeledfield/utils.d.ts +4 -4
- package/src/labeledfield/utils.js +3 -3
- package/src/labeledinput/labeledinputview.d.ts +4 -4
- package/src/labeledinput/labeledinputview.js +3 -3
- package/src/legacyerrors.d.ts +5 -0
- package/src/legacyerrors.js +20 -0
- package/src/list/listitemgroupview.d.ts +5 -5
- package/src/list/listitemgroupview.js +5 -5
- package/src/list/listitemview.d.ts +3 -3
- 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 +7 -7
- package/src/list/listview.js +6 -6
- package/src/menubar/menubarmenubuttonview.d.ts +3 -3
- package/src/menubar/menubarmenubuttonview.js +3 -3
- package/src/menubar/menubarmenulistitembuttonview.d.ts +2 -2
- package/src/menubar/menubarmenulistitembuttonview.js +2 -2
- package/src/menubar/menubarmenulistitemfiledialogbuttonview.d.ts +1 -1
- package/src/menubar/menubarmenulistitemfiledialogbuttonview.js +1 -1
- package/src/menubar/menubarmenulistitemview.d.ts +3 -3
- package/src/menubar/menubarmenulistitemview.js +2 -2
- package/src/menubar/menubarmenulistview.d.ts +2 -2
- package/src/menubar/menubarmenulistview.js +5 -5
- package/src/menubar/menubarmenupanelview.d.ts +3 -3
- package/src/menubar/menubarmenupanelview.js +2 -2
- package/src/menubar/menubarmenuview.d.ts +4 -4
- package/src/menubar/menubarmenuview.js +4 -4
- package/src/menubar/menubarview.d.ts +6 -7
- package/src/menubar/menubarview.js +9 -9
- package/src/menubar/utils.d.ts +10 -3
- package/src/menubar/utils.js +10 -2
- package/src/model.d.ts +2 -2
- 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 +13 -13
- package/src/panel/balloon/balloonpanelview.js +9 -9
- package/src/panel/balloon/contextualballoon.d.ts +14 -13
- package/src/panel/balloon/contextualballoon.js +8 -7
- package/src/panel/sticky/stickypanelview.d.ts +3 -3
- package/src/panel/sticky/stickypanelview.js +3 -3
- package/src/search/filteredview.d.ts +1 -1
- package/src/search/filtergroupanditemnames.d.ts +5 -5
- package/src/search/filtergroupanditemnames.js +1 -1
- package/src/search/searchinfoview.d.ts +2 -2
- package/src/search/searchinfoview.js +2 -2
- package/src/search/searchresultsview.d.ts +4 -4
- package/src/search/searchresultsview.js +3 -3
- package/src/search/text/searchtextqueryview.d.ts +5 -5
- package/src/search/text/searchtextqueryview.js +4 -4
- package/src/search/text/searchtextview.d.ts +9 -9
- 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 +6 -5
- package/src/template.js +4 -4
- package/src/textarea/textareaview.d.ts +2 -2
- package/src/textarea/textareaview.js +2 -2
- 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 +6 -6
- package/src/toolbar/block/blocktoolbar.js +8 -8
- 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 +10 -7
- package/src/toolbar/toolbarview.js +11 -8
- package/src/tooltipmanager.d.ts +3 -3
- package/src/tooltipmanager.js +3 -3
- 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/src/bindings/injectcsstransitiondisabler.d.ts +0 -59
- package/src/bindings/injectcsstransitiondisabler.js +0 -71
@@ -5,11 +5,11 @@
|
|
5
5
|
/**
|
6
6
|
* @module ui/list/listseparatorview
|
7
7
|
*/
|
8
|
-
import View from '../view.js';
|
8
|
+
import { View } from '../view.js';
|
9
9
|
/**
|
10
10
|
* The list separator view class.
|
11
11
|
*/
|
12
|
-
export
|
12
|
+
export class ListSeparatorView extends View {
|
13
13
|
/**
|
14
14
|
* @inheritDoc
|
15
15
|
*/
|
package/src/list/listview.d.ts
CHANGED
@@ -5,19 +5,19 @@
|
|
5
5
|
/**
|
6
6
|
* @module ui/list/listview
|
7
7
|
*/
|
8
|
-
import View from '../view.js';
|
8
|
+
import { View } from '../view.js';
|
9
9
|
import { type FocusableView } from '../focuscycler.js';
|
10
|
-
import ListItemView from './listitemview.js';
|
11
|
-
import ListItemGroupView from './listitemgroupview.js';
|
12
|
-
import type ListSeparatorView from './listseparatorview.js';
|
13
|
-
import type DropdownPanelFocusable from '../dropdown/dropdownpanelfocusable.js';
|
14
|
-
import ViewCollection from '../viewcollection.js';
|
10
|
+
import { ListItemView } from './listitemview.js';
|
11
|
+
import { ListItemGroupView } from './listitemgroupview.js';
|
12
|
+
import { type ListSeparatorView } from './listseparatorview.js';
|
13
|
+
import { type DropdownPanelFocusable } from '../dropdown/dropdownpanelfocusable.js';
|
14
|
+
import { ViewCollection } from '../viewcollection.js';
|
15
15
|
import { FocusTracker, KeystrokeHandler, type Locale } from '@ckeditor/ckeditor5-utils';
|
16
16
|
import '../../theme/components/list/list.css';
|
17
17
|
/**
|
18
18
|
* The list view class.
|
19
19
|
*/
|
20
|
-
export
|
20
|
+
export declare class ListView extends View<HTMLUListElement> implements DropdownPanelFocusable {
|
21
21
|
/**
|
22
22
|
* The collection of focusable views in the list. It is used to determine accessible navigation
|
23
23
|
* between the {@link module:ui/list/listitemview~ListItemView list items} and
|
package/src/list/listview.js
CHANGED
@@ -5,17 +5,17 @@
|
|
5
5
|
/**
|
6
6
|
* @module ui/list/listview
|
7
7
|
*/
|
8
|
-
import View from '../view.js';
|
9
|
-
import FocusCycler from '../focuscycler.js';
|
10
|
-
import ListItemView from './listitemview.js';
|
11
|
-
import ListItemGroupView from './listitemgroupview.js';
|
12
|
-
import ViewCollection from '../viewcollection.js';
|
8
|
+
import { View } from '../view.js';
|
9
|
+
import { FocusCycler } from '../focuscycler.js';
|
10
|
+
import { ListItemView } from './listitemview.js';
|
11
|
+
import { ListItemGroupView } from './listitemgroupview.js';
|
12
|
+
import { ViewCollection } from '../viewcollection.js';
|
13
13
|
import { FocusTracker, KeystrokeHandler } from '@ckeditor/ckeditor5-utils';
|
14
14
|
import '../../theme/components/list/list.css';
|
15
15
|
/**
|
16
16
|
* The list view class.
|
17
17
|
*/
|
18
|
-
export
|
18
|
+
export class ListView extends View {
|
19
19
|
/**
|
20
20
|
* The collection of focusable views in the list. It is used to determine accessible navigation
|
21
21
|
* between the {@link module:ui/list/listitemview~ListItemView list items} and
|
@@ -2,15 +2,15 @@
|
|
2
2
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
4
4
|
*/
|
5
|
-
import IconView from '../icon/iconview.js';
|
6
|
-
import ListItemButtonView from '../button/listitembuttonview.js';
|
5
|
+
import { IconView } from '../icon/iconview.js';
|
6
|
+
import { ListItemButtonView } from '../button/listitembuttonview.js';
|
7
7
|
import type { Locale } from '@ckeditor/ckeditor5-utils';
|
8
8
|
import '../../theme/components/menubar/menubarmenubutton.css';
|
9
9
|
/**
|
10
10
|
* A menu {@link module:ui/menubar/menubarmenuview~MenuBarMenuView#buttonView} class. Buttons like this one
|
11
11
|
* open both top-level bar menus as well as sub-menus.
|
12
12
|
*/
|
13
|
-
export
|
13
|
+
export declare class MenuBarMenuButtonView extends ListItemButtonView {
|
14
14
|
/**
|
15
15
|
* An icon that displays an arrow to indicate a direction of the menu.
|
16
16
|
*/
|
@@ -6,14 +6,14 @@
|
|
6
6
|
* @module ui/menubar/menubarmenubuttonview
|
7
7
|
*/
|
8
8
|
import { IconDropdownArrow } from '@ckeditor/ckeditor5-icons';
|
9
|
-
import IconView from '../icon/iconview.js';
|
10
|
-
import ListItemButtonView from '../button/listitembuttonview.js';
|
9
|
+
import { IconView } from '../icon/iconview.js';
|
10
|
+
import { ListItemButtonView } from '../button/listitembuttonview.js';
|
11
11
|
import '../../theme/components/menubar/menubarmenubutton.css';
|
12
12
|
/**
|
13
13
|
* A menu {@link module:ui/menubar/menubarmenuview~MenuBarMenuView#buttonView} class. Buttons like this one
|
14
14
|
* open both top-level bar menus as well as sub-menus.
|
15
15
|
*/
|
16
|
-
export
|
16
|
+
export class MenuBarMenuButtonView extends ListItemButtonView {
|
17
17
|
/**
|
18
18
|
* An icon that displays an arrow to indicate a direction of the menu.
|
19
19
|
*/
|
@@ -6,12 +6,12 @@
|
|
6
6
|
* @module ui/menubar/menubarmenulistitembuttonview
|
7
7
|
*/
|
8
8
|
import type { Locale } from '@ckeditor/ckeditor5-utils';
|
9
|
-
import ListItemButtonView from '../button/listitembuttonview.js';
|
9
|
+
import { ListItemButtonView } from '../button/listitembuttonview.js';
|
10
10
|
import '../../theme/components/menubar/menubarmenulistitembutton.css';
|
11
11
|
/**
|
12
12
|
* A menu bar list button view. Buttons like this one execute user actions.
|
13
13
|
*/
|
14
|
-
export
|
14
|
+
export declare class MenuBarMenuListItemButtonView extends ListItemButtonView {
|
15
15
|
/**
|
16
16
|
* Creates an instance of the menu bar list button view.
|
17
17
|
*
|
@@ -2,12 +2,12 @@
|
|
2
2
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
4
4
|
*/
|
5
|
-
import ListItemButtonView from '../button/listitembuttonview.js';
|
5
|
+
import { ListItemButtonView } from '../button/listitembuttonview.js';
|
6
6
|
import '../../theme/components/menubar/menubarmenulistitembutton.css';
|
7
7
|
/**
|
8
8
|
* A menu bar list button view. Buttons like this one execute user actions.
|
9
9
|
*/
|
10
|
-
export
|
10
|
+
export class MenuBarMenuListItemButtonView extends ListItemButtonView {
|
11
11
|
/**
|
12
12
|
* Creates an instance of the menu bar list button view.
|
13
13
|
*
|
@@ -13,7 +13,7 @@ import '../../theme/components/menubar/menubarmenulistitembutton.css';
|
|
13
13
|
*
|
14
14
|
* This component provides a button that opens the native file selection dialog.
|
15
15
|
*/
|
16
|
-
export
|
16
|
+
export declare class MenuBarMenuListItemFileDialogButtonView extends FileDialogListItemButtonView {
|
17
17
|
/**
|
18
18
|
* Creates an instance of the menu bar list button view.
|
19
19
|
*
|
@@ -9,7 +9,7 @@ import '../../theme/components/menubar/menubarmenulistitembutton.css';
|
|
9
9
|
*
|
10
10
|
* This component provides a button that opens the native file selection dialog.
|
11
11
|
*/
|
12
|
-
export
|
12
|
+
export class MenuBarMenuListItemFileDialogButtonView extends FileDialogListItemButtonView {
|
13
13
|
/**
|
14
14
|
* Creates an instance of the menu bar list button view.
|
15
15
|
*
|
@@ -6,8 +6,8 @@
|
|
6
6
|
* @module ui/menubar/menubarmenulistitemview
|
7
7
|
*/
|
8
8
|
import type { Locale } from '@ckeditor/ckeditor5-utils';
|
9
|
-
import ListItemView from '../list/listitemview.js';
|
10
|
-
import type MenuBarMenuView from './menubarmenuview.js';
|
9
|
+
import { ListItemView } from '../list/listitemview.js';
|
10
|
+
import { type MenuBarMenuView } from './menubarmenuview.js';
|
11
11
|
import '../../theme/components/menubar/menubarmenulistitem.css';
|
12
12
|
/**
|
13
13
|
* A menu bar list item view, a child of {@link module:ui/menubar/menubarmenulistview~MenuBarMenuListView}.
|
@@ -15,7 +15,7 @@ import '../../theme/components/menubar/menubarmenulistitem.css';
|
|
15
15
|
* Populate this item with a {@link module:ui/menubar/menubarmenulistitembuttonview~MenuBarMenuListItemButtonView} instance
|
16
16
|
* or a {@link module:ui/menubar/menubarmenuview~MenuBarMenuView} instance to create a sub-menu.
|
17
17
|
*/
|
18
|
-
export
|
18
|
+
export declare class MenuBarMenuListItemView extends ListItemView {
|
19
19
|
/**
|
20
20
|
* Creates an instance of the list item view.
|
21
21
|
*
|
@@ -2,7 +2,7 @@
|
|
2
2
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
4
4
|
*/
|
5
|
-
import ListItemView from '../list/listitemview.js';
|
5
|
+
import { ListItemView } from '../list/listitemview.js';
|
6
6
|
import '../../theme/components/menubar/menubarmenulistitem.css';
|
7
7
|
/**
|
8
8
|
* A menu bar list item view, a child of {@link module:ui/menubar/menubarmenulistview~MenuBarMenuListView}.
|
@@ -10,7 +10,7 @@ import '../../theme/components/menubar/menubarmenulistitem.css';
|
|
10
10
|
* Populate this item with a {@link module:ui/menubar/menubarmenulistitembuttonview~MenuBarMenuListItemButtonView} instance
|
11
11
|
* or a {@link module:ui/menubar/menubarmenuview~MenuBarMenuView} instance to create a sub-menu.
|
12
12
|
*/
|
13
|
-
export
|
13
|
+
export class MenuBarMenuListItemView extends ListItemView {
|
14
14
|
/**
|
15
15
|
* Creates an instance of the list item view.
|
16
16
|
*
|
@@ -6,7 +6,7 @@
|
|
6
6
|
* @module ui/menubar/menubarmenulistview
|
7
7
|
*/
|
8
8
|
import type { Locale } from '@ckeditor/ckeditor5-utils';
|
9
|
-
import ListView from '../list/listview.js';
|
9
|
+
import { ListView } from '../list/listview.js';
|
10
10
|
/**
|
11
11
|
* A list of menu bar items, a child of {@link module:ui/menubar/menubarmenuview~MenuBarMenuView#panelView}.
|
12
12
|
*
|
@@ -14,7 +14,7 @@ import ListView from '../list/listview.js';
|
|
14
14
|
*
|
15
15
|
* To populate this list, use {@link module:ui/menubar/menubarmenulistitemview~MenuBarMenuListItemView} instances.
|
16
16
|
*/
|
17
|
-
export
|
17
|
+
export declare class MenuBarMenuListView extends ListView {
|
18
18
|
/**
|
19
19
|
* Creates an instance of the list view.
|
20
20
|
*
|
@@ -2,10 +2,10 @@
|
|
2
2
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
4
4
|
*/
|
5
|
-
import ListItemView from '../list/listitemview.js';
|
6
|
-
import ListView from '../list/listview.js';
|
7
|
-
import ListItemButtonView from '../button/listitembuttonview.js';
|
8
|
-
import ButtonView from '../button/buttonview.js';
|
5
|
+
import { ListItemView } from '../list/listitemview.js';
|
6
|
+
import { ListView } from '../list/listview.js';
|
7
|
+
import { ListItemButtonView } from '../button/listitembuttonview.js';
|
8
|
+
import { ButtonView } from '../button/buttonview.js';
|
9
9
|
/**
|
10
10
|
* A list of menu bar items, a child of {@link module:ui/menubar/menubarmenuview~MenuBarMenuView#panelView}.
|
11
11
|
*
|
@@ -13,7 +13,7 @@ import ButtonView from '../button/buttonview.js';
|
|
13
13
|
*
|
14
14
|
* To populate this list, use {@link module:ui/menubar/menubarmenulistitemview~MenuBarMenuListItemView} instances.
|
15
15
|
*/
|
16
|
-
export
|
16
|
+
export class MenuBarMenuListView extends ListView {
|
17
17
|
/**
|
18
18
|
* Creates an instance of the list view.
|
19
19
|
*
|
@@ -7,13 +7,13 @@
|
|
7
7
|
*/
|
8
8
|
import { type Locale } from '@ckeditor/ckeditor5-utils';
|
9
9
|
import type { FocusableView } from '../focuscycler.js';
|
10
|
-
import type ViewCollection from '../viewcollection.js';
|
11
|
-
import View from '../view.js';
|
10
|
+
import { type ViewCollection } from '../viewcollection.js';
|
11
|
+
import { View } from '../view.js';
|
12
12
|
import '../../theme/components/menubar/menubarmenupanel.css';
|
13
13
|
/**
|
14
14
|
* A view representing a {@link module:ui/menubar/menubarmenuview~MenuBarMenuView#panelView} of a menu.
|
15
15
|
*/
|
16
|
-
export
|
16
|
+
export declare class MenuBarMenuPanelView extends View implements FocusableView {
|
17
17
|
/**
|
18
18
|
* Collection of the child views in this panel.
|
19
19
|
*/
|
@@ -2,12 +2,12 @@
|
|
2
2
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
4
4
|
*/
|
5
|
-
import View from '../view.js';
|
5
|
+
import { View } from '../view.js';
|
6
6
|
import '../../theme/components/menubar/menubarmenupanel.css';
|
7
7
|
/**
|
8
8
|
* A view representing a {@link module:ui/menubar/menubarmenuview~MenuBarMenuView#panelView} of a menu.
|
9
9
|
*/
|
10
|
-
export
|
10
|
+
export class MenuBarMenuPanelView extends View {
|
11
11
|
/**
|
12
12
|
* Collection of the child views in this panel.
|
13
13
|
*/
|
@@ -6,16 +6,16 @@
|
|
6
6
|
* @module ui/menubar/menubarmenuview
|
7
7
|
*/
|
8
8
|
import { FocusTracker, KeystrokeHandler, type Locale, type PositioningFunction } from '@ckeditor/ckeditor5-utils';
|
9
|
-
import MenuBarMenuButtonView from './menubarmenubuttonview.js';
|
9
|
+
import { MenuBarMenuButtonView } from './menubarmenubuttonview.js';
|
10
10
|
import type { FocusableView } from '../focuscycler.js';
|
11
|
-
import View from '../view.js';
|
12
|
-
import {
|
11
|
+
import { View } from '../view.js';
|
12
|
+
import { MenuBarMenuPanelView, type MenuBarMenuPanelPosition } from './menubarmenupanelview.js';
|
13
13
|
import '../../theme/components/menubar/menubarmenu.css';
|
14
14
|
/**
|
15
15
|
* A menu view for the {@link module:ui/menubar/menubarview~MenuBarView}. Menus are building blocks of the menu bar,
|
16
16
|
* they host other sub-menus and menu items (buttons) that users can interact with.
|
17
17
|
*/
|
18
|
-
export
|
18
|
+
export declare class MenuBarMenuView extends View implements FocusableView {
|
19
19
|
/**
|
20
20
|
* Button of the menu view.
|
21
21
|
*/
|
@@ -6,10 +6,10 @@
|
|
6
6
|
* @module ui/menubar/menubarmenuview
|
7
7
|
*/
|
8
8
|
import { FocusTracker, KeystrokeHandler, getOptimalPosition } from '@ckeditor/ckeditor5-utils';
|
9
|
-
import MenuBarMenuButtonView from './menubarmenubuttonview.js';
|
9
|
+
import { MenuBarMenuButtonView } from './menubarmenubuttonview.js';
|
10
10
|
import { MenuBarMenuBehaviors, MenuBarMenuViewPanelPositioningFunctions } from './utils.js';
|
11
|
-
import View from '../view.js';
|
12
|
-
import {
|
11
|
+
import { View } from '../view.js';
|
12
|
+
import { MenuBarMenuPanelView } from './menubarmenupanelview.js';
|
13
13
|
import '../../theme/components/menubar/menubarmenu.css';
|
14
14
|
/**
|
15
15
|
* A menu view for the {@link module:ui/menubar/menubarview~MenuBarView}. Menus are building blocks of the menu bar,
|
@@ -196,4 +196,4 @@ class MenuBarMenuView extends View {
|
|
196
196
|
*/
|
197
197
|
static _getOptimalPosition = getOptimalPosition;
|
198
198
|
}
|
199
|
-
export
|
199
|
+
export { MenuBarMenuView };
|
@@ -7,16 +7,16 @@
|
|
7
7
|
*/
|
8
8
|
import { type BaseEvent, type Locale } from '@ckeditor/ckeditor5-utils';
|
9
9
|
import { type FocusableView } from '../focuscycler.js';
|
10
|
-
import View from '../view.js';
|
11
|
-
import type ViewCollection from '../viewcollection.js';
|
12
|
-
import type ComponentFactory from '../componentfactory.js';
|
13
|
-
import MenuBarMenuView from './menubarmenuview.js';
|
10
|
+
import { View } from '../view.js';
|
11
|
+
import { type ViewCollection } from '../viewcollection.js';
|
12
|
+
import { type ComponentFactory } from '../componentfactory.js';
|
13
|
+
import { MenuBarMenuView } from './menubarmenuview.js';
|
14
14
|
import '../../theme/components/menubar/menubar.css';
|
15
15
|
/**
|
16
16
|
* The application menu bar component. It brings a set of top-level menus (and sub-menus) that can be used
|
17
17
|
* to organize and access a large number of buttons.
|
18
18
|
*/
|
19
|
-
export
|
19
|
+
export declare class MenuBarView extends View implements FocusableView {
|
20
20
|
/**
|
21
21
|
* Collection of the child views inside the {@link #element}.
|
22
22
|
*/
|
@@ -146,7 +146,7 @@ export type MenuBarConfigAddedMenu = {
|
|
146
146
|
* Any namespaced event fired by menu a {@link module:ui/menubar/menubarview~MenuBarView#menus menu view instance} of the
|
147
147
|
* {@link module:ui/menubar/menubarview~MenuBarView menu bar}.
|
148
148
|
*/
|
149
|
-
interface MenuBarMenuEvent extends BaseEvent {
|
149
|
+
export interface MenuBarMenuEvent extends BaseEvent {
|
150
150
|
name: `menu:${string}` | `menu:change:${string}`;
|
151
151
|
}
|
152
152
|
/**
|
@@ -178,4 +178,3 @@ export interface MenuBarMenuChangeIsOpenEvent extends MenuBarMenuEvent {
|
|
178
178
|
name: 'menu:change:isOpen';
|
179
179
|
args: [name: string, value: boolean, oldValue: boolean];
|
180
180
|
}
|
181
|
-
export {};
|
@@ -6,15 +6,15 @@
|
|
6
6
|
* @module ui/menubar/menubarview
|
7
7
|
*/
|
8
8
|
import { logWarning } from '@ckeditor/ckeditor5-utils';
|
9
|
-
import View from '../view.js';
|
9
|
+
import { View } from '../view.js';
|
10
10
|
import { isObject } from 'es-toolkit/compat';
|
11
|
-
import ListItemView from '../list/listitemview.js';
|
12
|
-
import ListSeparatorView from '../list/listseparatorview.js';
|
13
|
-
import MenuBarMenuView from './menubarmenuview.js';
|
14
|
-
import MenuBarMenuListView from './menubarmenulistview.js';
|
15
|
-
import MenuBarMenuListItemView from './menubarmenulistitemview.js';
|
16
|
-
import MenuBarMenuListItemButtonView from './menubarmenulistitembuttonview.js';
|
17
|
-
import MenuBarMenuListItemFileDialogButtonView from './menubarmenulistitemfiledialogbuttonview.js';
|
11
|
+
import { ListItemView } from '../list/listitemview.js';
|
12
|
+
import { ListSeparatorView } from '../list/listseparatorview.js';
|
13
|
+
import { MenuBarMenuView } from './menubarmenuview.js';
|
14
|
+
import { MenuBarMenuListView } from './menubarmenulistview.js';
|
15
|
+
import { MenuBarMenuListItemView } from './menubarmenulistitemview.js';
|
16
|
+
import { MenuBarMenuListItemButtonView } from './menubarmenulistitembuttonview.js';
|
17
|
+
import { MenuBarMenuListItemFileDialogButtonView } from './menubarmenulistitemfiledialogbuttonview.js';
|
18
18
|
import { MenuBarBehaviors, processMenuBarConfig } from './utils.js';
|
19
19
|
const EVENT_NAME_DELEGATES = ['mouseenter', 'arrowleft', 'arrowright', 'change:isOpen'];
|
20
20
|
import '../../theme/components/menubar/menubar.css';
|
@@ -22,7 +22,7 @@ import '../../theme/components/menubar/menubar.css';
|
|
22
22
|
* The application menu bar component. It brings a set of top-level menus (and sub-menus) that can be used
|
23
23
|
* to organize and access a large number of buttons.
|
24
24
|
*/
|
25
|
-
export
|
25
|
+
export class MenuBarView extends View {
|
26
26
|
/**
|
27
27
|
* Collection of the child views inside the {@link #element}.
|
28
28
|
*/
|
package/src/menubar/utils.d.ts
CHANGED
@@ -2,12 +2,13 @@
|
|
2
2
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
4
4
|
*/
|
5
|
-
import type MenuBarMenuView from './menubarmenuview.js';
|
6
|
-
import type {
|
7
|
-
import type ComponentFactory from '../componentfactory.js';
|
5
|
+
import { type MenuBarMenuView } from './menubarmenuview.js';
|
6
|
+
import type { MenuBarView, MenuBarConfig, MenuBarConfigObject, MenuBarConfigAddedGroup, MenuBarConfigAddedMenu, NormalizedMenuBarConfigObject, MenuBarConfigAddedItem } from './menubarview.js';
|
7
|
+
import { type ComponentFactory } from '../componentfactory.js';
|
8
8
|
import { type Locale, type PositioningFunction } from '@ckeditor/ckeditor5-utils';
|
9
9
|
/**
|
10
10
|
* Behaviors of the {@link module:ui/menubar/menubarview~MenuBarView} component.
|
11
|
+
* @internal
|
11
12
|
*/
|
12
13
|
export declare const MenuBarBehaviors: {
|
13
14
|
/**
|
@@ -48,6 +49,7 @@ export declare const MenuBarBehaviors: {
|
|
48
49
|
};
|
49
50
|
/**
|
50
51
|
* Behaviors of the {@link module:ui/menubar/menubarmenuview~MenuBarMenuView} component.
|
52
|
+
* @internal
|
51
53
|
*/
|
52
54
|
export declare const MenuBarMenuBehaviors: {
|
53
55
|
/**
|
@@ -157,6 +159,9 @@ export declare const MenuBarMenuBehaviors: {
|
|
157
159
|
* │ │ │
|
158
160
|
* └───────────────┴──────┘
|
159
161
|
*/
|
162
|
+
/**
|
163
|
+
* @internal
|
164
|
+
*/
|
160
165
|
export declare const MenuBarMenuViewPanelPositioningFunctions: Record<string, PositioningFunction>;
|
161
166
|
/**
|
162
167
|
* The default items {@link module:core/editor/editorconfig~EditorConfig#menuBar configuration} of the
|
@@ -385,6 +390,7 @@ export declare const MenuBarMenuViewPanelPositioningFunctions: Record<string, Po
|
|
385
390
|
* groupId: 'indent',
|
386
391
|
* items: [
|
387
392
|
* 'menuBar:alignment',
|
393
|
+
* 'menuBar:lineHeight',
|
388
394
|
* 'menuBar:indent',
|
389
395
|
* 'menuBar:outdent'
|
390
396
|
* ]
|
@@ -452,6 +458,7 @@ export declare function normalizeMenuBarConfig(config: Readonly<MenuBarConfig>):
|
|
452
458
|
* * Removed obsolete separators,
|
453
459
|
* * Purged empty menus,
|
454
460
|
* * Localized top-level menu labels.
|
461
|
+
* @internal
|
455
462
|
*/
|
456
463
|
export declare function processMenuBarConfig({ normalizedConfig, locale, componentFactory, extraItems }: {
|
457
464
|
normalizedConfig: NormalizedMenuBarConfigObject;
|
package/src/menubar/utils.js
CHANGED
@@ -5,13 +5,14 @@
|
|
5
5
|
/**
|
6
6
|
* @module ui/menubar/utils
|
7
7
|
*/
|
8
|
-
import MenuBarMenuListItemView from './menubarmenulistitemview.js';
|
9
|
-
import clickOutsideHandler from '../bindings/clickoutsidehandler.js';
|
8
|
+
import { MenuBarMenuListItemView } from './menubarmenulistitemview.js';
|
9
|
+
import { clickOutsideHandler } from '../bindings/clickoutsidehandler.js';
|
10
10
|
import { logWarning } from '@ckeditor/ckeditor5-utils';
|
11
11
|
import { cloneDeep } from 'es-toolkit/compat';
|
12
12
|
const NESTED_PANEL_HORIZONTAL_OFFSET = 5;
|
13
13
|
/**
|
14
14
|
* Behaviors of the {@link module:ui/menubar/menubarview~MenuBarView} component.
|
15
|
+
* @internal
|
15
16
|
*/
|
16
17
|
export const MenuBarBehaviors = {
|
17
18
|
/**
|
@@ -150,6 +151,7 @@ export const MenuBarBehaviors = {
|
|
150
151
|
};
|
151
152
|
/**
|
152
153
|
* Behaviors of the {@link module:ui/menubar/menubarmenuview~MenuBarMenuView} component.
|
154
|
+
* @internal
|
153
155
|
*/
|
154
156
|
export const MenuBarMenuBehaviors = {
|
155
157
|
/**
|
@@ -328,6 +330,9 @@ export const MenuBarMenuBehaviors = {
|
|
328
330
|
* │ │ │
|
329
331
|
* └───────────────┴──────┘
|
330
332
|
*/
|
333
|
+
/**
|
334
|
+
* @internal
|
335
|
+
*/
|
331
336
|
export const MenuBarMenuViewPanelPositioningFunctions = {
|
332
337
|
southEast: buttonRect => {
|
333
338
|
return {
|
@@ -613,6 +618,7 @@ export const MenuBarMenuViewPanelPositioningFunctions = {
|
|
613
618
|
* groupId: 'indent',
|
614
619
|
* items: [
|
615
620
|
* 'menuBar:alignment',
|
621
|
+
* 'menuBar:lineHeight',
|
616
622
|
* 'menuBar:indent',
|
617
623
|
* 'menuBar:outdent'
|
618
624
|
* ]
|
@@ -886,6 +892,7 @@ export const DefaultMenuBarItems = [
|
|
886
892
|
groupId: 'indent',
|
887
893
|
items: [
|
888
894
|
'menuBar:alignment',
|
895
|
+
'menuBar:lineHeight',
|
889
896
|
'menuBar:indent',
|
890
897
|
'menuBar:outdent'
|
891
898
|
]
|
@@ -974,6 +981,7 @@ export function normalizeMenuBarConfig(config) {
|
|
974
981
|
* * Removed obsolete separators,
|
975
982
|
* * Purged empty menus,
|
976
983
|
* * Localized top-level menu labels.
|
984
|
+
* @internal
|
977
985
|
*/
|
978
986
|
export function processMenuBarConfig({ normalizedConfig, locale, componentFactory, extraItems }) {
|
979
987
|
const configClone = cloneDeep(normalizedConfig);
|
package/src/model.d.ts
CHANGED
@@ -2,14 +2,14 @@
|
|
2
2
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
4
4
|
*/
|
5
|
-
declare const
|
5
|
+
declare const UIModel_base: {
|
6
6
|
new (): import("@ckeditor/ckeditor5-utils").Observable;
|
7
7
|
prototype: import("@ckeditor/ckeditor5-utils").Observable;
|
8
8
|
};
|
9
9
|
/**
|
10
10
|
* The base MVC model class.
|
11
11
|
*/
|
12
|
-
export
|
12
|
+
export declare class UIModel extends /* #__PURE__ */ UIModel_base {
|
13
13
|
[x: string]: unknown;
|
14
14
|
/**
|
15
15
|
* Creates a new Model instance.
|
package/src/model.js
CHANGED
@@ -10,7 +10,7 @@ import { extend } from 'es-toolkit/compat';
|
|
10
10
|
/**
|
11
11
|
* The base MVC model class.
|
12
12
|
*/
|
13
|
-
export
|
13
|
+
export class UIModel extends /* #__PURE__ */ ObservableMixin() {
|
14
14
|
/**
|
15
15
|
* Creates a new Model instance.
|
16
16
|
*
|
@@ -16,7 +16,7 @@ import { ContextPlugin } from '@ckeditor/ckeditor5-core';
|
|
16
16
|
* Note that every unhandled and not stopped `warning` notification will be displayed as a system alert.
|
17
17
|
* See {@link module:ui/notification/notification~Notification#showWarning}.
|
18
18
|
*/
|
19
|
-
export
|
19
|
+
export declare class Notification extends ContextPlugin {
|
20
20
|
/**
|
21
21
|
* @inheritDoc
|
22
22
|
*/
|
@@ -16,7 +16,7 @@ import { ContextPlugin } from '@ckeditor/ckeditor5-core';
|
|
16
16
|
* Note that every unhandled and not stopped `warning` notification will be displayed as a system alert.
|
17
17
|
* See {@link module:ui/notification/notification~Notification#showWarning}.
|
18
18
|
*/
|
19
|
-
export
|
19
|
+
export class Notification extends ContextPlugin {
|
20
20
|
/**
|
21
21
|
* @inheritDoc
|
22
22
|
*/
|
@@ -5,16 +5,16 @@
|
|
5
5
|
/**
|
6
6
|
* @module ui/panel/balloon/balloonpanelview
|
7
7
|
*/
|
8
|
-
import View from '../../view.js';
|
9
|
-
import type ViewCollection from '../../viewcollection.js';
|
10
|
-
import { type Locale, type
|
8
|
+
import { View } from '../../view.js';
|
9
|
+
import { type ViewCollection } from '../../viewcollection.js';
|
10
|
+
import { type Locale, type DomOptimalPositionOptions, type PositioningFunction } from '@ckeditor/ckeditor5-utils';
|
11
11
|
import '../../../theme/components/panel/balloonpanel.css';
|
12
12
|
/**
|
13
13
|
* The balloon panel view class.
|
14
14
|
*
|
15
15
|
* A floating container which can
|
16
16
|
* {@link module:ui/panel/balloon/balloonpanelview~BalloonPanelView#pin pin} to any
|
17
|
-
* {@link module:utils/dom/position~
|
17
|
+
* {@link module:utils/dom/position~DomOptimalPositionOptions#target target} in the DOM and remain in that position
|
18
18
|
* e.g. when the web page is scrolled.
|
19
19
|
*
|
20
20
|
* The balloon panel can be used to display contextual, non-blocking UI like forms, toolbars and
|
@@ -25,7 +25,7 @@ import '../../../theme/components/panel/balloonpanel.css';
|
|
25
25
|
* that the balloon can use, automatically switching from one to another when the viewport space becomes
|
26
26
|
* scarce to keep the balloon visible to the user as long as it is possible. The balloon will also
|
27
27
|
* accept any custom position set provided by the user compatible with the
|
28
|
-
* {@link module:utils/dom/position~
|
28
|
+
* {@link module:utils/dom/position~DomOptimalPositionOptions options}.
|
29
29
|
*
|
30
30
|
* ```ts
|
31
31
|
* const panel = new BalloonPanelView( locale );
|
@@ -48,7 +48,7 @@ import '../../../theme/components/panel/balloonpanel.css';
|
|
48
48
|
* } );
|
49
49
|
* ```
|
50
50
|
*/
|
51
|
-
export
|
51
|
+
export declare class BalloonPanelView extends View {
|
52
52
|
/**
|
53
53
|
* A collection of the child views that creates the balloon panel contents.
|
54
54
|
*/
|
@@ -135,11 +135,11 @@ export default class BalloonPanelView extends View {
|
|
135
135
|
*/
|
136
136
|
hide(): void;
|
137
137
|
/**
|
138
|
-
* Attaches the panel to a specified {@link module:utils/dom/position~
|
138
|
+
* Attaches the panel to a specified {@link module:utils/dom/position~DomOptimalPositionOptions#target} with a
|
139
139
|
* smart positioning heuristics that chooses from available positions to make sure the panel
|
140
140
|
* is visible to the user i.e. within the limits of the viewport.
|
141
141
|
*
|
142
|
-
* This method accepts configuration {@link module:utils/dom/position~
|
142
|
+
* This method accepts configuration {@link module:utils/dom/position~DomOptimalPositionOptions options}
|
143
143
|
* to set the `target`, optional `limiter` and `positions` the balloon should choose from.
|
144
144
|
*
|
145
145
|
* ```ts
|
@@ -168,16 +168,16 @@ export default class BalloonPanelView extends View {
|
|
168
168
|
* @returns Whether the balloon was shown and successfully attached or not. Attaching can fail if the target
|
169
169
|
* provided in the options is invisible (e.g. element detached from DOM).
|
170
170
|
*/
|
171
|
-
attachTo(options: Partial<
|
171
|
+
attachTo(options: Partial<DomOptimalPositionOptions>): boolean;
|
172
172
|
/**
|
173
173
|
* Works the same way as the {@link #attachTo} method except that the position of the panel is
|
174
174
|
* continuously updated when:
|
175
175
|
*
|
176
|
-
* * any ancestor of the {@link module:utils/dom/position~
|
177
|
-
* or {@link module:utils/dom/position~
|
176
|
+
* * any ancestor of the {@link module:utils/dom/position~DomOptimalPositionOptions#target}
|
177
|
+
* or {@link module:utils/dom/position~DomOptimalPositionOptions#limiter} is scrolled,
|
178
178
|
* * the browser window gets resized or scrolled.
|
179
179
|
*
|
180
|
-
* Thanks to that, the panel always sticks to the {@link module:utils/dom/position~
|
180
|
+
* Thanks to that, the panel always sticks to the {@link module:utils/dom/position~DomOptimalPositionOptions#target}
|
181
181
|
* and is immune to the changing environment.
|
182
182
|
*
|
183
183
|
* ```ts
|
@@ -203,7 +203,7 @@ export default class BalloonPanelView extends View {
|
|
203
203
|
* @param options Positioning options compatible with {@link module:utils/dom/position~getOptimalPosition}.
|
204
204
|
* Default `positions` array is {@link module:ui/panel/balloon/balloonpanelview~BalloonPanelView.defaultPositions}.
|
205
205
|
*/
|
206
|
-
pin(options: Partial<
|
206
|
+
pin(options: Partial<DomOptimalPositionOptions>): void;
|
207
207
|
/**
|
208
208
|
* Stops pinning the panel, as set up by {@link #pin}.
|
209
209
|
*/
|