uikit 3.23.8-dev.97ee4c1bb → 3.23.8-dev.ab60f6dc7
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 +5 -0
- package/dist/css/uikit-core-rtl.css +1 -1
- package/dist/css/uikit-core-rtl.min.css +1 -1
- package/dist/css/uikit-core.css +1 -1
- package/dist/css/uikit-core.min.css +1 -1
- package/dist/css/uikit-rtl.css +1 -1
- package/dist/css/uikit-rtl.min.css +1 -1
- package/dist/css/uikit.css +1 -1
- package/dist/css/uikit.min.css +1 -1
- package/dist/js/components/countdown.js +1 -1
- package/dist/js/components/countdown.min.js +1 -1
- package/dist/js/components/filter.js +1 -1
- package/dist/js/components/filter.min.js +1 -1
- package/dist/js/components/lightbox-panel.js +8 -1
- package/dist/js/components/lightbox-panel.min.js +1 -1
- package/dist/js/components/lightbox.js +8 -1
- package/dist/js/components/lightbox.min.js +1 -1
- package/dist/js/components/notification.js +1 -1
- package/dist/js/components/notification.min.js +1 -1
- package/dist/js/components/parallax.js +1 -1
- package/dist/js/components/parallax.min.js +1 -1
- package/dist/js/components/slider-parallax.js +1 -1
- package/dist/js/components/slider-parallax.min.js +1 -1
- package/dist/js/components/slider.js +1 -1
- package/dist/js/components/slider.min.js +1 -1
- package/dist/js/components/slideshow-parallax.js +1 -1
- package/dist/js/components/slideshow-parallax.min.js +1 -1
- package/dist/js/components/slideshow.js +1 -1
- package/dist/js/components/slideshow.min.js +1 -1
- package/dist/js/components/sortable.js +1 -1
- package/dist/js/components/sortable.min.js +1 -1
- package/dist/js/components/tooltip.js +1 -1
- package/dist/js/components/tooltip.min.js +1 -1
- package/dist/js/components/upload.js +1 -1
- package/dist/js/components/upload.min.js +1 -1
- package/dist/js/uikit-core.js +34 -8
- package/dist/js/uikit-core.min.js +1 -1
- package/dist/js/uikit-icons.js +1 -1
- package/dist/js/uikit-icons.min.js +1 -1
- package/dist/js/uikit.js +34 -8
- package/dist/js/uikit.min.js +1 -1
- package/package.json +1 -1
- package/src/js/core/drop.js +3 -2
- package/src/js/core/dropnav.js +17 -0
- package/src/js/core/icon.js +5 -0
- package/src/js/core/navbar.js +1 -0
- package/src/js/core/toggle.js +15 -9
- package/src/js/mixin/modal.js +11 -0
package/dist/js/uikit-core.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.23.8-dev.
|
|
1
|
+
/*! UIkit 3.23.8-dev.ab60f6dc7 | https://www.getuikit.com | (c) 2014 - 2025 YOOtheme | MIT License */
|
|
2
2
|
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
@@ -2158,7 +2158,7 @@
|
|
|
2158
2158
|
};
|
|
2159
2159
|
App.util = util;
|
|
2160
2160
|
App.options = {};
|
|
2161
|
-
App.version = "3.23.8-dev.
|
|
2161
|
+
App.version = "3.23.8-dev.ab60f6dc7";
|
|
2162
2162
|
|
|
2163
2163
|
const PREFIX = "uk-";
|
|
2164
2164
|
const DATA = "__uikit__";
|
|
@@ -3250,6 +3250,7 @@
|
|
|
3250
3250
|
if (this.toggle && !this.targetEl) {
|
|
3251
3251
|
this.targetEl = createToggleComponent(this);
|
|
3252
3252
|
}
|
|
3253
|
+
attr(this.targetEl, "aria-expanded", false);
|
|
3253
3254
|
this._style = pick(this.$el.style, ["width", "height"]);
|
|
3254
3255
|
},
|
|
3255
3256
|
disconnected() {
|
|
@@ -3380,7 +3381,7 @@
|
|
|
3380
3381
|
}
|
|
3381
3382
|
active$1 = this.isActive() ? null : active$1;
|
|
3382
3383
|
this.tracker.cancel();
|
|
3383
|
-
attr(this.targetEl, "aria-expanded",
|
|
3384
|
+
attr(this.targetEl, "aria-expanded", false);
|
|
3384
3385
|
}
|
|
3385
3386
|
}
|
|
3386
3387
|
],
|
|
@@ -3504,7 +3505,7 @@
|
|
|
3504
3505
|
target: drop.$el,
|
|
3505
3506
|
mode: drop.mode
|
|
3506
3507
|
});
|
|
3507
|
-
|
|
3508
|
+
$el.ariaHasPopup = true;
|
|
3508
3509
|
return $el;
|
|
3509
3510
|
}
|
|
3510
3511
|
function listenForResize(drop) {
|
|
@@ -3577,6 +3578,7 @@
|
|
|
3577
3578
|
boundary: true,
|
|
3578
3579
|
dropbar: false,
|
|
3579
3580
|
dropbarAnchor: false,
|
|
3581
|
+
delayShow: 160,
|
|
3580
3582
|
duration: 200,
|
|
3581
3583
|
container: false,
|
|
3582
3584
|
selNavItem: "> li > a, > ul > li > a"
|
|
@@ -3626,6 +3628,7 @@
|
|
|
3626
3628
|
},
|
|
3627
3629
|
connected() {
|
|
3628
3630
|
this.initializeDropdowns();
|
|
3631
|
+
preventInitialPointerEnter(this.$el);
|
|
3629
3632
|
},
|
|
3630
3633
|
disconnected() {
|
|
3631
3634
|
remove$1(this._dropbar);
|
|
@@ -3864,6 +3867,14 @@
|
|
|
3864
3867
|
toggles[getIndex(next, toggles, toggles.indexOf(active2.targetEl || current))].focus();
|
|
3865
3868
|
}
|
|
3866
3869
|
}
|
|
3870
|
+
function preventInitialPointerEnter(el) {
|
|
3871
|
+
const off = () => handlers.forEach((handler) => handler());
|
|
3872
|
+
const handlers = [
|
|
3873
|
+
once(el.ownerDocument, pointerMove, (e) => el.contains(e.target) || off()),
|
|
3874
|
+
on(el, `mouseenter ${pointerEnter}`, (e) => e.stopPropagation(), { capture: true }),
|
|
3875
|
+
on(el, `mouseleave ${pointerLeave}`, off, { capture: true })
|
|
3876
|
+
];
|
|
3877
|
+
}
|
|
3867
3878
|
|
|
3868
3879
|
var formCustom = {
|
|
3869
3880
|
mixins: [Class],
|
|
@@ -4584,7 +4595,10 @@
|
|
|
4584
4595
|
};
|
|
4585
4596
|
const NavbarToggleIcon = {
|
|
4586
4597
|
extends: ButtonComponent,
|
|
4587
|
-
i18n: { label: "Open menu" }
|
|
4598
|
+
i18n: { label: "Open menu" },
|
|
4599
|
+
beforeConnect() {
|
|
4600
|
+
this.$el.ariaExpanded = false;
|
|
4601
|
+
}
|
|
4588
4602
|
};
|
|
4589
4603
|
const Close = {
|
|
4590
4604
|
extends: ButtonComponent,
|
|
@@ -5067,6 +5081,7 @@
|
|
|
5067
5081
|
{ self: true }
|
|
5068
5082
|
);
|
|
5069
5083
|
addClass(document.documentElement, this.clsPage);
|
|
5084
|
+
setAriaExpanded(this.target, true);
|
|
5070
5085
|
}
|
|
5071
5086
|
},
|
|
5072
5087
|
{
|
|
@@ -5095,6 +5110,7 @@
|
|
|
5095
5110
|
if (isFocusable(this.target)) {
|
|
5096
5111
|
this.target.focus();
|
|
5097
5112
|
}
|
|
5113
|
+
setAriaExpanded(this.target, false);
|
|
5098
5114
|
this.target = null;
|
|
5099
5115
|
}
|
|
5100
5116
|
}
|
|
@@ -5179,6 +5195,11 @@
|
|
|
5179
5195
|
}
|
|
5180
5196
|
});
|
|
5181
5197
|
}
|
|
5198
|
+
function setAriaExpanded(el, toggled) {
|
|
5199
|
+
if (el == null ? void 0 : el.ariaExpanded) {
|
|
5200
|
+
el.ariaExpanded = toggled;
|
|
5201
|
+
}
|
|
5202
|
+
}
|
|
5182
5203
|
|
|
5183
5204
|
var modal = {
|
|
5184
5205
|
install,
|
|
@@ -5308,6 +5329,7 @@
|
|
|
5308
5329
|
dropbarTransparentMode: Boolean
|
|
5309
5330
|
},
|
|
5310
5331
|
data: {
|
|
5332
|
+
delayShow: 200,
|
|
5311
5333
|
clsDrop: "uk-navbar-dropdown",
|
|
5312
5334
|
selNavItem: ".uk-navbar-nav > li > a,a.uk-navbar-item,button.uk-navbar-item,.uk-navbar-item a,.uk-navbar-item button,.uk-navbar-toggle",
|
|
5313
5335
|
// Simplify with :where() selector once browser target is Safari 14+
|
|
@@ -6504,11 +6526,15 @@
|
|
|
6504
6526
|
name: "click",
|
|
6505
6527
|
filter: ({ mode }) => ["click", "hover"].some((m) => includes(mode, m)),
|
|
6506
6528
|
handler(e) {
|
|
6507
|
-
|
|
6508
|
-
|
|
6529
|
+
if (e.defaultPrevented) {
|
|
6530
|
+
return;
|
|
6531
|
+
}
|
|
6532
|
+
const link = e.target.closest("a");
|
|
6533
|
+
const isButtonLike = isSameSiteAnchor(link) && (!link.hash || matches(this.target, link.hash));
|
|
6534
|
+
if (this._preventClick || isButtonLike || link && !this.isToggled(this.target)) {
|
|
6509
6535
|
e.preventDefault();
|
|
6510
6536
|
}
|
|
6511
|
-
if (!this._preventClick && includes(this.mode, "click")) {
|
|
6537
|
+
if (!this._preventClick && includes(this.mode, "click") && (!link || isButtonLike || e.defaultPrevented)) {
|
|
6512
6538
|
this.toggle();
|
|
6513
6539
|
}
|
|
6514
6540
|
}
|