uikit 3.16.7-dev.5c86c1ae7 → 3.16.7-dev.e91049985
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 +12 -1
- package/dist/css/uikit-core-rtl.css +24 -6
- package/dist/css/uikit-core-rtl.min.css +1 -1
- package/dist/css/uikit-core.css +24 -6
- package/dist/css/uikit-core.min.css +1 -1
- package/dist/css/uikit-rtl.css +24 -6
- package/dist/css/uikit-rtl.min.css +1 -1
- package/dist/css/uikit.css +24 -6
- 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 +5 -2
- package/dist/js/components/lightbox-panel.min.js +1 -1
- package/dist/js/components/lightbox.js +5 -2
- 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 +5 -2
- 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 +5 -2
- 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 +40 -20
- 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 +44 -21
- package/dist/js/uikit.min.js +1 -1
- package/package.json +1 -1
- package/src/js/api/boot.js +10 -1
- package/src/js/api/watch.js +1 -1
- package/src/js/core/dropnav.js +5 -6
- package/src/js/core/navbar.js +14 -4
- package/src/js/core/sticky.js +7 -2
- package/src/js/mixin/slider-nav.js +4 -1
- package/src/js/util/fastdom.js +2 -2
- package/src/less/components/visibility.less +25 -5
- package/src/scss/components/visibility.scss +25 -5
- package/tests/navbar.html +2 -2
package/dist/js/uikit.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.16.7-dev.
|
|
1
|
+
/*! UIkit 3.16.7-dev.e91049985 | https://www.getuikit.com | (c) 2014 - 2023 YOOtheme | MIT License */
|
|
2
2
|
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
@@ -959,8 +959,8 @@
|
|
|
959
959
|
const fastdom = {
|
|
960
960
|
reads: [],
|
|
961
961
|
writes: [],
|
|
962
|
-
read(task) {
|
|
963
|
-
this.reads
|
|
962
|
+
read(task, prepend) {
|
|
963
|
+
this.reads[prepend ? "unshift" : "push"](task);
|
|
964
964
|
scheduleFlush();
|
|
965
965
|
return task;
|
|
966
966
|
},
|
|
@@ -1738,7 +1738,7 @@
|
|
|
1738
1738
|
runWatches(instance, initial);
|
|
1739
1739
|
}
|
|
1740
1740
|
instance._watch = null;
|
|
1741
|
-
});
|
|
1741
|
+
}, true);
|
|
1742
1742
|
}
|
|
1743
1743
|
function runWatches(instance, initial) {
|
|
1744
1744
|
const values = { ...instance._computed };
|
|
@@ -2140,7 +2140,7 @@
|
|
|
2140
2140
|
};
|
|
2141
2141
|
App.util = util;
|
|
2142
2142
|
App.options = {};
|
|
2143
|
-
App.version = "3.16.7-dev.
|
|
2143
|
+
App.version = "3.16.7-dev.e91049985";
|
|
2144
2144
|
|
|
2145
2145
|
const PREFIX = "uk-";
|
|
2146
2146
|
const DATA = "__uikit__";
|
|
@@ -2312,7 +2312,16 @@
|
|
|
2312
2312
|
|
|
2313
2313
|
function boot(App) {
|
|
2314
2314
|
if (inBrowser && window.MutationObserver) {
|
|
2315
|
-
|
|
2315
|
+
if (document.readyState === "interactive") {
|
|
2316
|
+
requestAnimationFrame(() => init(App));
|
|
2317
|
+
} else {
|
|
2318
|
+
new MutationObserver((records, observer) => {
|
|
2319
|
+
if (document.body) {
|
|
2320
|
+
init(App);
|
|
2321
|
+
observer.disconnect();
|
|
2322
|
+
}
|
|
2323
|
+
}).observe(document.documentElement, { childList: true });
|
|
2324
|
+
}
|
|
2316
2325
|
}
|
|
2317
2326
|
}
|
|
2318
2327
|
function init(App) {
|
|
@@ -3499,7 +3508,6 @@
|
|
|
3499
3508
|
var Dropnav = {
|
|
3500
3509
|
mixins: [Class, Container],
|
|
3501
3510
|
props: {
|
|
3502
|
-
dropdown: String,
|
|
3503
3511
|
align: String,
|
|
3504
3512
|
clsDrop: String,
|
|
3505
3513
|
boundary: Boolean,
|
|
@@ -3518,7 +3526,6 @@
|
|
|
3518
3526
|
animateOut: Boolean
|
|
3519
3527
|
},
|
|
3520
3528
|
data: {
|
|
3521
|
-
dropdown: "> li > a, > ul > li > a",
|
|
3522
3529
|
align: isRtl ? "right" : "left",
|
|
3523
3530
|
clsDrop: "uk-dropdown",
|
|
3524
3531
|
clsDropbar: "uk-dropnav-dropbar",
|
|
@@ -3526,7 +3533,8 @@
|
|
|
3526
3533
|
dropbar: false,
|
|
3527
3534
|
dropbarAnchor: false,
|
|
3528
3535
|
duration: 200,
|
|
3529
|
-
container: false
|
|
3536
|
+
container: false,
|
|
3537
|
+
selNavItem: "> li > a, > ul > li > a"
|
|
3530
3538
|
},
|
|
3531
3539
|
computed: {
|
|
3532
3540
|
dropbarAnchor({ dropbarAnchor }, $el) {
|
|
@@ -3584,8 +3592,8 @@
|
|
|
3584
3592
|
immediate: true
|
|
3585
3593
|
},
|
|
3586
3594
|
items: {
|
|
3587
|
-
get({
|
|
3588
|
-
return $$(
|
|
3595
|
+
get({ selNavItem }, $el) {
|
|
3596
|
+
return $$(selNavItem, $el);
|
|
3589
3597
|
},
|
|
3590
3598
|
watch(items) {
|
|
3591
3599
|
attr(children(this.$el), "role", "presentation");
|
|
@@ -3606,7 +3614,7 @@
|
|
|
3606
3614
|
{
|
|
3607
3615
|
name: "mouseover focusin",
|
|
3608
3616
|
delegate() {
|
|
3609
|
-
return this.
|
|
3617
|
+
return this.selNavItem;
|
|
3610
3618
|
},
|
|
3611
3619
|
handler({ current, type }) {
|
|
3612
3620
|
const active2 = this.getActive();
|
|
@@ -3623,7 +3631,7 @@
|
|
|
3623
3631
|
{
|
|
3624
3632
|
name: "keydown",
|
|
3625
3633
|
delegate() {
|
|
3626
|
-
return this.
|
|
3634
|
+
return this.selNavItem;
|
|
3627
3635
|
},
|
|
3628
3636
|
handler(e) {
|
|
3629
3637
|
const { current, keyCode } = e;
|
|
@@ -5135,13 +5143,14 @@
|
|
|
5135
5143
|
var navbar = {
|
|
5136
5144
|
extends: Dropnav,
|
|
5137
5145
|
data: {
|
|
5138
|
-
|
|
5139
|
-
|
|
5146
|
+
clsDrop: "uk-navbar-dropdown",
|
|
5147
|
+
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"
|
|
5148
|
+
// Simplify with :where() selector once browser target is Safari 14+
|
|
5140
5149
|
},
|
|
5141
5150
|
computed: {
|
|
5142
5151
|
items: {
|
|
5143
|
-
get({
|
|
5144
|
-
return $$(
|
|
5152
|
+
get({ selNavItem }, $el) {
|
|
5153
|
+
return $$(selNavItem, $el);
|
|
5145
5154
|
},
|
|
5146
5155
|
watch(items) {
|
|
5147
5156
|
const justify = hasClass(this.$el, "uk-navbar-justify");
|
|
@@ -5149,7 +5158,14 @@
|
|
|
5149
5158
|
".uk-navbar-nav, .uk-navbar-left, .uk-navbar-right",
|
|
5150
5159
|
this.$el
|
|
5151
5160
|
)) {
|
|
5152
|
-
css(
|
|
5161
|
+
css(
|
|
5162
|
+
container,
|
|
5163
|
+
"flexGrow",
|
|
5164
|
+
justify ? $$(
|
|
5165
|
+
".uk-navbar-nav > li > a, .uk-navbar-item, .uk-navbar-toggle",
|
|
5166
|
+
container
|
|
5167
|
+
).length : ""
|
|
5168
|
+
);
|
|
5153
5169
|
}
|
|
5154
5170
|
attr($$(".uk-navbar-nav", this.$el), "role", "group");
|
|
5155
5171
|
attr($$(".uk-navbar-nav > *", this.$el), "role", "presentation");
|
|
@@ -5704,7 +5720,7 @@
|
|
|
5704
5720
|
}
|
|
5705
5721
|
const hide = this.isFixed && types.has("resize") && !sticky;
|
|
5706
5722
|
if (hide) {
|
|
5707
|
-
|
|
5723
|
+
preventTransition(this.selTarget);
|
|
5708
5724
|
this.hide();
|
|
5709
5725
|
}
|
|
5710
5726
|
if (!this.active) {
|
|
@@ -5713,7 +5729,6 @@
|
|
|
5713
5729
|
}
|
|
5714
5730
|
if (hide) {
|
|
5715
5731
|
this.show();
|
|
5716
|
-
requestAnimationFrame(() => css(this.selTarget, "transition", ""));
|
|
5717
5732
|
}
|
|
5718
5733
|
const viewport = toPx("100vh", "height");
|
|
5719
5734
|
const dynamicViewport = height(window);
|
|
@@ -5844,6 +5859,7 @@
|
|
|
5844
5859
|
this.show();
|
|
5845
5860
|
Animation.in(this.$el, this.animation).catch(noop);
|
|
5846
5861
|
} else {
|
|
5862
|
+
preventTransition(this.selTarget);
|
|
5847
5863
|
this.show();
|
|
5848
5864
|
}
|
|
5849
5865
|
},
|
|
@@ -5945,6 +5961,10 @@
|
|
|
5945
5961
|
function reset(el) {
|
|
5946
5962
|
css(el, { position: "", top: "", marginTop: "", width: "" });
|
|
5947
5963
|
}
|
|
5964
|
+
function preventTransition(el) {
|
|
5965
|
+
css(el, "transition", "0s");
|
|
5966
|
+
requestAnimationFrame(() => css(el, "transition", ""));
|
|
5967
|
+
}
|
|
5948
5968
|
|
|
5949
5969
|
const selDisabled = ".uk-disabled *, .uk-disabled, [disabled]";
|
|
5950
5970
|
var Switcher = {
|
|
@@ -6943,7 +6963,10 @@
|
|
|
6943
6963
|
}
|
|
6944
6964
|
},
|
|
6945
6965
|
connected() {
|
|
6946
|
-
attr(this.$el,
|
|
6966
|
+
attr(this.$el, {
|
|
6967
|
+
role: "region",
|
|
6968
|
+
ariaRoleDescription: "carousel"
|
|
6969
|
+
});
|
|
6947
6970
|
},
|
|
6948
6971
|
update: [
|
|
6949
6972
|
{
|