@ckeditor/ckeditor5-ui 48.3.1 → 48.4.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/arialiveannouncer.d.ts +0 -1
- package/dist/autocomplete/autocompleteview.d.ts +0 -1
- package/dist/button/buttonview.d.ts +0 -1
- package/dist/button/listitembuttonview.d.ts +0 -1
- package/dist/button/switchbuttonview.d.ts +0 -1
- package/dist/collapsible/collapsibleview.d.ts +0 -1
- package/dist/colorgrid/colorgridview.d.ts +0 -1
- package/dist/colorpicker/colorpickerview.d.ts +0 -1
- package/dist/colorselector/colorselectorview.d.ts +0 -1
- package/dist/dialog/dialogactionsview.d.ts +0 -1
- package/dist/dialog/dialogview.d.ts +0 -1
- package/dist/dropdown/button/splitbuttonview.d.ts +0 -1
- package/dist/dropdown/dropdownview.d.ts +0 -1
- package/dist/dropdown/menu/dropdownmenubuttonview.d.ts +0 -1
- package/dist/dropdown/menu/dropdownmenulistitembuttonview.d.ts +0 -1
- package/dist/dropdown/menu/dropdownmenulistitemview.d.ts +0 -1
- package/dist/dropdown/menu/dropdownmenunestedmenupanelview.d.ts +0 -1
- package/dist/dropdown/menu/dropdownmenunestedmenuview.d.ts +0 -1
- package/dist/dropdown/utils.d.ts +0 -2
- package/dist/editorui/accessibilityhelp/accessibilityhelp.d.ts +0 -1
- package/dist/editorui/editoruiview.d.ts +0 -1
- package/dist/formheader/formheaderview.d.ts +0 -1
- package/dist/formrow/formrowview.d.ts +0 -1
- package/dist/highlightedtext/highlightedtextview.d.ts +0 -1
- package/dist/icon/iconview.d.ts +0 -1
- package/dist/index-content.css +3 -0
- package/dist/index-content.css.map +1 -0
- package/dist/index-editor.css +1845 -1840
- package/dist/index-editor.css.map +1 -0
- package/dist/index.css +3 -2
- package/dist/index.css.map +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +8 -6
- package/dist/index.js.map +1 -1
- package/dist/input/inputview.d.ts +0 -1
- package/dist/label/labelview.d.ts +0 -1
- package/dist/labeledfield/labeledfieldview.d.ts +0 -1
- package/dist/labeledinput/labeledinputview.d.ts +0 -1
- package/dist/list/listview.d.ts +0 -1
- package/dist/menubar/menubarmenubuttonview.d.ts +0 -1
- package/dist/menubar/menubarmenulistitembuttonview.d.ts +0 -1
- package/dist/menubar/menubarmenulistitemfiledialogbuttonview.d.ts +0 -1
- package/dist/menubar/menubarmenulistitemview.d.ts +0 -1
- package/dist/menubar/menubarmenupanelview.d.ts +0 -1
- package/dist/menubar/menubarmenuview.d.ts +0 -1
- package/dist/menubar/menubarview.d.ts +0 -1
- package/dist/panel/balloon/balloonpanelview.d.ts +0 -1
- package/dist/panel/balloon/contextualballoon.d.ts +0 -2
- package/dist/panel/sticky/stickypanelview.d.ts +0 -1
- package/dist/search/text/searchtextview.d.ts +0 -1
- package/dist/spinner/spinnerview.d.ts +0 -1
- package/dist/textarea/textareaview.d.ts +0 -2
- package/dist/toolbar/block/blockbuttonview.d.ts +0 -1
- package/dist/toolbar/toolbarview.d.ts +0 -1
- package/dist/tooltipmanager.d.ts +0 -1
- package/dist/view.d.ts +0 -1
- package/package.json +7 -6
package/dist/index.d.ts
CHANGED
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module ui
|
|
7
7
|
*/
|
|
8
|
-
export { View, type UIViewRenderEvent } from "./view.js";
|
|
9
8
|
export { AriaLiveAnnouncerPoliteness, AriaLiveAnnouncer, AriaLiveAnnouncerView, AriaLiveAnnouncerRegionView, type AriaLiveAnnouncerPolitenessValue, type AriaLiveAppendContentAttributes, type AriaLiveAnnounceConfig } from "./arialiveannouncer.js";
|
|
10
9
|
export { clickOutsideHandler } from "./bindings/clickoutsidehandler.js";
|
|
11
10
|
export { CssTransitionDisablerMixin, type CssTransitionDisablerMixinConstructor, type ViewWithCssTransitionDisabler } from "./bindings/csstransitiondisablermixin.js";
|
|
@@ -103,6 +102,7 @@ export { normalizeToolbarConfig } from "./toolbar/normalizetoolbarconfig.js";
|
|
|
103
102
|
export { BalloonToolbar, type BalloonToolbarShowEvent } from "./toolbar/balloon/balloontoolbar.js";
|
|
104
103
|
export { BlockToolbar } from "./toolbar/block/blocktoolbar.js";
|
|
105
104
|
export { BlockButtonView } from "./toolbar/block/blockbuttonview.js";
|
|
105
|
+
export { View, type UIViewRenderEvent } from "./view.js";
|
|
106
106
|
export { ViewCollection } from "./viewcollection.js";
|
|
107
107
|
export { MenuBarView, type MenuBarConfig, type MenuBarConfigObject, type NormalizedMenuBarConfigObject, type MenuBarMenuEvent, type MenuBarMenuGroupDefinition, type MenuBarMenuDefinition, type MenuBarConfigAddedPosition, type MenuBarConfigAddedItem, type MenuBarConfigAddedGroup, type MenuBarConfigAddedMenu, type MenuBarMenuMouseEnterEvent, type MenuBarMenuArrowLeftEvent, type MenuBarMenuArrowRightEvent, type MenuBarMenuChangeIsOpenEvent } from "./menubar/menubarview.js";
|
|
108
108
|
export { MenuBarMenuButtonView } from "./menubar/menubarmenubuttonview.js";
|
|
@@ -135,4 +135,6 @@ export { TemplateIfBinding as _TemplateIfBinding } from "./template.js";
|
|
|
135
135
|
export { type RenderData as _TemplateRenderData } from "./template.js";
|
|
136
136
|
export { NESTED_TOOLBAR_ICONS } from "./toolbar/toolbarview.js";
|
|
137
137
|
export { type ToolbarBehavior as _ToolbarBehavior } from "./toolbar/toolbarview.js";
|
|
138
|
+
import "../theme/index-editor.css";
|
|
139
|
+
import "../theme/index-content.css";
|
|
138
140
|
import "./augmentation.js";
|
package/dist/index.js
CHANGED
|
@@ -2018,8 +2018,8 @@ function DraggableViewMixin(view) {
|
|
|
2018
2018
|
_onDragStart(evt, domEvt) {
|
|
2019
2019
|
if (!this._isHandleElementPressed(domEvt)) return;
|
|
2020
2020
|
this._attachDragListeners();
|
|
2021
|
-
let x
|
|
2022
|
-
let y
|
|
2021
|
+
let x;
|
|
2022
|
+
let y;
|
|
2023
2023
|
if (domEvt instanceof MouseEvent) {
|
|
2024
2024
|
x = domEvt.clientX;
|
|
2025
2025
|
y = domEvt.clientY;
|
|
@@ -2041,8 +2041,8 @@ function DraggableViewMixin(view) {
|
|
|
2041
2041
|
this._detachDragListeners();
|
|
2042
2042
|
return;
|
|
2043
2043
|
}
|
|
2044
|
-
let newX
|
|
2045
|
-
let newY
|
|
2044
|
+
let newX;
|
|
2045
|
+
let newY;
|
|
2046
2046
|
if (domEvt instanceof MouseEvent) {
|
|
2047
2047
|
newX = domEvt.clientX;
|
|
2048
2048
|
newY = domEvt.clientY;
|
|
@@ -14358,7 +14358,7 @@ var ContextualBalloon = class extends Plugin {
|
|
|
14358
14358
|
throw new CKEditorError("contextualballoon-add-view-exist", [this, data]);
|
|
14359
14359
|
const stackId = data.stackId || "main";
|
|
14360
14360
|
if (!this._idToStack.has(stackId)) {
|
|
14361
|
-
this._idToStack.set(stackId, new Map([[data.view, data]]));
|
|
14361
|
+
this._idToStack.set(stackId, /* @__PURE__ */ new Map([[data.view, data]]));
|
|
14362
14362
|
this._viewToStack.set(data.view, this._idToStack.get(stackId));
|
|
14363
14363
|
this._numberOfStacks = this._idToStack.size;
|
|
14364
14364
|
if (!this._visibleStack || data.singleViewMode) this.showStack(stackId);
|
|
@@ -14495,7 +14495,8 @@ var ContextualBalloon = class extends Plugin {
|
|
|
14495
14495
|
view.on("change:isNavigationVisible", () => this.updatePosition(), { priority: "low" });
|
|
14496
14496
|
view.bind("counter").to(this, "visibleView", this, "_numberOfStacks", (visibleView, numberOfStacks) => {
|
|
14497
14497
|
if (numberOfStacks < 2) return "";
|
|
14498
|
-
|
|
14498
|
+
const current = Array.from(this._idToStack.values()).indexOf(this._visibleStack) + 1;
|
|
14499
|
+
return t("%0 of %1", [current, numberOfStacks]);
|
|
14499
14500
|
});
|
|
14500
14501
|
view.buttonNextView.on("execute", () => {
|
|
14501
14502
|
if (view.focusTracker.isFocused) this.editor.editing.view.focus();
|
|
@@ -14641,6 +14642,7 @@ var RotatorView = class extends View {
|
|
|
14641
14642
|
icon,
|
|
14642
14643
|
tooltip: true
|
|
14643
14644
|
});
|
|
14645
|
+
view.extendTemplate({ on: { mousedown: view.bindTemplate.to((evt) => evt.preventDefault()) } });
|
|
14644
14646
|
return view;
|
|
14645
14647
|
}
|
|
14646
14648
|
};
|