uikit 3.23.8-dev.65e3f4fda → 3.23.8-dev.c5680eb20
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/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 +20 -6
- 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 +20 -6
- package/dist/js/uikit.min.js +1 -1
- package/package.json +1 -1
- package/src/js/core/icon.js +5 -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.c5680eb20 | 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.c5680eb20";
|
|
2162
2162
|
|
|
2163
2163
|
const PREFIX = "uk-";
|
|
2164
2164
|
const DATA = "__uikit__";
|
|
@@ -4585,7 +4585,10 @@
|
|
|
4585
4585
|
};
|
|
4586
4586
|
const NavbarToggleIcon = {
|
|
4587
4587
|
extends: ButtonComponent,
|
|
4588
|
-
i18n: { label: "Open menu" }
|
|
4588
|
+
i18n: { label: "Open menu" },
|
|
4589
|
+
beforeConnect() {
|
|
4590
|
+
this.$el.ariaExpanded = false;
|
|
4591
|
+
}
|
|
4589
4592
|
};
|
|
4590
4593
|
const Close = {
|
|
4591
4594
|
extends: ButtonComponent,
|
|
@@ -5068,6 +5071,7 @@
|
|
|
5068
5071
|
{ self: true }
|
|
5069
5072
|
);
|
|
5070
5073
|
addClass(document.documentElement, this.clsPage);
|
|
5074
|
+
setAriaExpanded(this.target, true);
|
|
5071
5075
|
}
|
|
5072
5076
|
},
|
|
5073
5077
|
{
|
|
@@ -5096,6 +5100,7 @@
|
|
|
5096
5100
|
if (isFocusable(this.target)) {
|
|
5097
5101
|
this.target.focus();
|
|
5098
5102
|
}
|
|
5103
|
+
setAriaExpanded(this.target, false);
|
|
5099
5104
|
this.target = null;
|
|
5100
5105
|
}
|
|
5101
5106
|
}
|
|
@@ -5180,6 +5185,11 @@
|
|
|
5180
5185
|
}
|
|
5181
5186
|
});
|
|
5182
5187
|
}
|
|
5188
|
+
function setAriaExpanded(el, toggled) {
|
|
5189
|
+
if (el == null ? void 0 : el.ariaExpanded) {
|
|
5190
|
+
el.ariaExpanded = toggled;
|
|
5191
|
+
}
|
|
5192
|
+
}
|
|
5183
5193
|
|
|
5184
5194
|
var modal = {
|
|
5185
5195
|
install,
|
|
@@ -6505,11 +6515,15 @@
|
|
|
6505
6515
|
name: "click",
|
|
6506
6516
|
filter: ({ mode }) => ["click", "hover"].some((m) => includes(mode, m)),
|
|
6507
6517
|
handler(e) {
|
|
6508
|
-
|
|
6509
|
-
|
|
6518
|
+
if (e.defaultPrevented) {
|
|
6519
|
+
return;
|
|
6520
|
+
}
|
|
6521
|
+
const link = e.target.closest("a");
|
|
6522
|
+
const isButtonLike = isSameSiteAnchor(link) && (!link.hash || matches(this.target, link.hash));
|
|
6523
|
+
if (this._preventClick || isButtonLike || link && !this.isToggled(this.target)) {
|
|
6510
6524
|
e.preventDefault();
|
|
6511
6525
|
}
|
|
6512
|
-
if (!this._preventClick && includes(this.mode, "click")) {
|
|
6526
|
+
if (!this._preventClick && includes(this.mode, "click") && (!link || isButtonLike || e.defaultPrevented)) {
|
|
6513
6527
|
this.toggle();
|
|
6514
6528
|
}
|
|
6515
6529
|
}
|