uikit 3.15.1-dev.a99898921 → 3.15.2-dev.07fe5036e
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 +16 -0
- package/README.md +1 -1
- 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 +1 -2
- package/dist/js/components/lightbox-panel.min.js +1 -1
- package/dist/js/components/lightbox.js +1 -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 +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 +64 -56
- package/dist/js/uikit-core.min.js +2 -2
- package/dist/js/uikit-icons.js +1 -1
- package/dist/js/uikit-icons.min.js +1 -1
- package/dist/js/uikit.js +64 -57
- package/dist/js/uikit.min.js +2 -2
- package/package.json +4 -4
- package/src/js/components/lightbox-panel.js +0 -1
- package/src/js/core/drop.js +21 -8
- package/src/js/core/navbar.js +16 -28
- package/src/js/core/scroll.js +1 -1
- package/src/js/core/video.js +5 -0
- package/src/js/util/position.js +4 -1
- package/tests/drop.html +36 -3
- package/tests/navbar.html +49 -31
- package/tests/position.html +1 -1
package/dist/js/uikit.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.15.
|
|
1
|
+
/*! UIkit 3.15.2-dev.07fe5036e | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */
|
|
2
2
|
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
@@ -2062,7 +2062,10 @@
|
|
|
2062
2062
|
}
|
|
2063
2063
|
|
|
2064
2064
|
if (boundary) {
|
|
2065
|
-
viewport = getIntersectionArea(
|
|
2065
|
+
viewport = getIntersectionArea(
|
|
2066
|
+
viewport,
|
|
2067
|
+
offset(isArray(boundary) ? boundary[i] : boundary));
|
|
2068
|
+
|
|
2066
2069
|
}
|
|
2067
2070
|
|
|
2068
2071
|
return viewport;
|
|
@@ -2942,7 +2945,7 @@
|
|
|
2942
2945
|
UIkit.data = '__uikit__';
|
|
2943
2946
|
UIkit.prefix = 'uk-';
|
|
2944
2947
|
UIkit.options = {};
|
|
2945
|
-
UIkit.version = '3.15.
|
|
2948
|
+
UIkit.version = '3.15.2-dev.07fe5036e';
|
|
2946
2949
|
|
|
2947
2950
|
globalAPI(UIkit);
|
|
2948
2951
|
hooksAPI(UIkit);
|
|
@@ -3499,6 +3502,10 @@
|
|
|
3499
3502
|
this.$el.preload = 'none';
|
|
3500
3503
|
}
|
|
3501
3504
|
|
|
3505
|
+
if (isTag(this.$el, 'iframe') && !hasAttr(this.$el, 'allow')) {
|
|
3506
|
+
this.$el.allow = 'autoplay';
|
|
3507
|
+
}
|
|
3508
|
+
|
|
3502
3509
|
if (this.automute) {
|
|
3503
3510
|
mute(this.$el);
|
|
3504
3511
|
}
|
|
@@ -4067,6 +4074,8 @@
|
|
|
4067
4074
|
mode: 'list',
|
|
4068
4075
|
toggle: Boolean,
|
|
4069
4076
|
boundary: Boolean,
|
|
4077
|
+
boundaryX: Boolean,
|
|
4078
|
+
boundaryY: Boolean,
|
|
4070
4079
|
target: Boolean,
|
|
4071
4080
|
targetX: Boolean,
|
|
4072
4081
|
targetY: Boolean,
|
|
@@ -4083,6 +4092,8 @@
|
|
|
4083
4092
|
mode: ['click', 'hover'],
|
|
4084
4093
|
toggle: '- *',
|
|
4085
4094
|
boundary: false,
|
|
4095
|
+
boundaryX: false,
|
|
4096
|
+
boundaryY: false,
|
|
4086
4097
|
target: false,
|
|
4087
4098
|
targetX: false,
|
|
4088
4099
|
targetY: false,
|
|
@@ -4099,7 +4110,14 @@
|
|
|
4099
4110
|
|
|
4100
4111
|
|
|
4101
4112
|
computed: {
|
|
4102
|
-
|
|
4113
|
+
boundary(_ref, $el) {let { boundary, boundaryX, boundaryY } = _ref;
|
|
4114
|
+
return [
|
|
4115
|
+
query(boundaryX || boundary, $el) || window,
|
|
4116
|
+
query(boundaryY || boundary, $el) || window];
|
|
4117
|
+
|
|
4118
|
+
},
|
|
4119
|
+
|
|
4120
|
+
target(_ref2, $el) {let { target, targetX, targetY } = _ref2;
|
|
4103
4121
|
targetX = targetX || target || this.targetEl;
|
|
4104
4122
|
targetY = targetY || target || this.targetEl;
|
|
4105
4123
|
|
|
@@ -4159,7 +4177,7 @@
|
|
|
4159
4177
|
return 'a[href^="#"]';
|
|
4160
4178
|
},
|
|
4161
4179
|
|
|
4162
|
-
handler(
|
|
4180
|
+
handler(_ref3) {let { defaultPrevented, current: { hash } } = _ref3;
|
|
4163
4181
|
if (!defaultPrevented && hash && !within(hash, this.$el)) {
|
|
4164
4182
|
this.hide(false);
|
|
4165
4183
|
}
|
|
@@ -4272,12 +4290,12 @@
|
|
|
4272
4290
|
on(
|
|
4273
4291
|
document,
|
|
4274
4292
|
pointerDown$1,
|
|
4275
|
-
(
|
|
4293
|
+
(_ref4) => {let { target } = _ref4;return (
|
|
4276
4294
|
!within(target, this.$el) &&
|
|
4277
4295
|
once(
|
|
4278
4296
|
document,
|
|
4279
4297
|
pointerUp$1 + " " + pointerCancel + " scroll",
|
|
4280
|
-
(
|
|
4298
|
+
(_ref5) => {let { defaultPrevented, type, target: newTarget } = _ref5;
|
|
4281
4299
|
if (
|
|
4282
4300
|
!defaultPrevented &&
|
|
4283
4301
|
type === pointerUp$1 &&
|
|
@@ -4308,7 +4326,11 @@
|
|
|
4308
4326
|
})(),
|
|
4309
4327
|
|
|
4310
4328
|
...(this.autoUpdate ?
|
|
4311
|
-
[
|
|
4329
|
+
[
|
|
4330
|
+
on([document, scrollParents(this.$el)], 'scroll', update, {
|
|
4331
|
+
passive: true })] :
|
|
4332
|
+
|
|
4333
|
+
|
|
4312
4334
|
[]),
|
|
4313
4335
|
|
|
4314
4336
|
...(this.bgScroll ?
|
|
@@ -4335,7 +4357,7 @@
|
|
|
4335
4357
|
{
|
|
4336
4358
|
name: 'hide',
|
|
4337
4359
|
|
|
4338
|
-
handler(
|
|
4360
|
+
handler(_ref6) {let { target } = _ref6;
|
|
4339
4361
|
if (this.$el !== target) {
|
|
4340
4362
|
active =
|
|
4341
4363
|
active === null && within(target, this.$el) && this.isToggled() ?
|
|
@@ -4432,8 +4454,6 @@
|
|
|
4432
4454
|
// Ensure none positioned element does not generate scrollbars
|
|
4433
4455
|
this.$el.hidden = true;
|
|
4434
4456
|
|
|
4435
|
-
const boundary = query(this.boundary, this.$el);
|
|
4436
|
-
const boundaryOffset = offset(boundary || window);
|
|
4437
4457
|
const viewports = this.target.map((target) => offsetViewport(scrollParents(target)[0]));
|
|
4438
4458
|
const viewportOffset = this.getViewportOffset(this.$el);
|
|
4439
4459
|
|
|
@@ -4446,7 +4466,7 @@
|
|
|
4446
4466
|
if (this.axis !== axis && includes([axis, true], this.stretch)) {
|
|
4447
4467
|
css(this.$el, {
|
|
4448
4468
|
[prop]: Math.min(
|
|
4449
|
-
|
|
4469
|
+
offset(this.boundary[i])[prop],
|
|
4450
4470
|
viewports[i][prop] - 2 * viewportOffset),
|
|
4451
4471
|
|
|
4452
4472
|
["overflow-" + axis]: 'auto' });
|
|
@@ -4464,7 +4484,7 @@
|
|
|
4464
4484
|
|
|
4465
4485
|
this.$el.hidden = false;
|
|
4466
4486
|
|
|
4467
|
-
this.positionAt(this.$el, this.target, boundary);
|
|
4487
|
+
this.positionAt(this.$el, this.target, this.boundary);
|
|
4468
4488
|
|
|
4469
4489
|
for (const [i, [axis, prop, start, end]] of dirs) {
|
|
4470
4490
|
if (this.axis === axis && includes([axis, true], this.stretch)) {
|
|
@@ -4477,17 +4497,17 @@
|
|
|
4477
4497
|
(targetOffset[start] > elOffset[start] ?
|
|
4478
4498
|
targetOffset[start] -
|
|
4479
4499
|
Math.max(
|
|
4480
|
-
|
|
4500
|
+
offset(this.boundary[i])[start],
|
|
4481
4501
|
viewports[i][start] + viewportOffset) :
|
|
4482
4502
|
|
|
4483
4503
|
Math.min(
|
|
4484
|
-
|
|
4504
|
+
offset(this.boundary[i])[end],
|
|
4485
4505
|
viewports[i][end] - viewportOffset) -
|
|
4486
4506
|
targetOffset[end]) - positionOffset,
|
|
4487
4507
|
["overflow-" + axis]: 'auto' });
|
|
4488
4508
|
|
|
4489
4509
|
|
|
4490
|
-
this.positionAt(this.$el, this.target, boundary);
|
|
4510
|
+
this.positionAt(this.$el, this.target, this.boundary);
|
|
4491
4511
|
}
|
|
4492
4512
|
}
|
|
4493
4513
|
} } };
|
|
@@ -5859,35 +5879,29 @@
|
|
|
5859
5879
|
|
|
5860
5880
|
props: {
|
|
5861
5881
|
dropdown: String,
|
|
5862
|
-
mode: 'list',
|
|
5863
5882
|
align: String,
|
|
5864
|
-
|
|
5883
|
+
clsDrop: String,
|
|
5865
5884
|
boundary: Boolean,
|
|
5885
|
+
dropbar: Boolean,
|
|
5886
|
+
dropbarAnchor: Boolean,
|
|
5887
|
+
duration: Number,
|
|
5888
|
+
mode: Boolean,
|
|
5889
|
+
offset: Boolean,
|
|
5890
|
+
stretch: Boolean,
|
|
5891
|
+
delayShow: Boolean,
|
|
5892
|
+
delayHide: Boolean,
|
|
5866
5893
|
target: Boolean,
|
|
5867
5894
|
targetX: Boolean,
|
|
5868
5895
|
targetY: Boolean,
|
|
5869
|
-
|
|
5870
|
-
|
|
5871
|
-
delayHide: Number,
|
|
5872
|
-
dropbar: Boolean,
|
|
5873
|
-
dropbarAnchor: Boolean,
|
|
5874
|
-
duration: Number },
|
|
5896
|
+
animation: Boolean,
|
|
5897
|
+
animateOut: Boolean },
|
|
5875
5898
|
|
|
5876
5899
|
|
|
5877
5900
|
data: {
|
|
5878
5901
|
dropdown: '.uk-navbar-nav > li > a, .uk-navbar-item, .uk-navbar-toggle',
|
|
5879
5902
|
align: isRtl ? 'right' : 'left',
|
|
5880
5903
|
clsDrop: 'uk-navbar-dropdown',
|
|
5881
|
-
mode: undefined,
|
|
5882
|
-
offset: undefined,
|
|
5883
|
-
delayShow: undefined,
|
|
5884
|
-
delayHide: undefined,
|
|
5885
|
-
flip: false,
|
|
5886
|
-
shift: true,
|
|
5887
5904
|
boundary: true,
|
|
5888
|
-
target: false,
|
|
5889
|
-
targetX: false,
|
|
5890
|
-
targetY: false,
|
|
5891
5905
|
dropbar: false,
|
|
5892
5906
|
dropbarAnchor: false,
|
|
5893
5907
|
duration: 200,
|
|
@@ -5895,20 +5909,12 @@
|
|
|
5895
5909
|
|
|
5896
5910
|
|
|
5897
5911
|
computed: {
|
|
5898
|
-
|
|
5899
|
-
return boundary === true ? $el : boundary;
|
|
5900
|
-
},
|
|
5901
|
-
|
|
5902
|
-
dropbarAnchor(_ref2, $el) {let { dropbarAnchor } = _ref2;
|
|
5912
|
+
dropbarAnchor(_ref, $el) {let { dropbarAnchor } = _ref;
|
|
5903
5913
|
return query(dropbarAnchor, $el) || $el;
|
|
5904
5914
|
},
|
|
5905
5915
|
|
|
5906
|
-
pos(_ref3) {let { align } = _ref3;
|
|
5907
|
-
return "bottom-" + align;
|
|
5908
|
-
},
|
|
5909
|
-
|
|
5910
5916
|
dropbar: {
|
|
5911
|
-
get(
|
|
5917
|
+
get(_ref2) {let { dropbar } = _ref2;
|
|
5912
5918
|
if (!dropbar) {
|
|
5913
5919
|
return null;
|
|
5914
5920
|
}
|
|
@@ -5933,7 +5939,7 @@
|
|
|
5933
5939
|
},
|
|
5934
5940
|
|
|
5935
5941
|
dropdowns: {
|
|
5936
|
-
get(
|
|
5942
|
+
get(_ref3, $el) {let { clsDrop } = _ref3;
|
|
5937
5943
|
const dropdowns = $$("." + clsDrop, $el);
|
|
5938
5944
|
|
|
5939
5945
|
if (this.dropContainer !== $el) {
|
|
@@ -5954,8 +5960,10 @@
|
|
|
5954
5960
|
dropdowns.filter((el) => !this.getDropdown(el)),
|
|
5955
5961
|
{
|
|
5956
5962
|
...this.$props,
|
|
5957
|
-
|
|
5958
|
-
|
|
5963
|
+
flip: false,
|
|
5964
|
+
shift: true,
|
|
5965
|
+
pos: "bottom-" + this.align,
|
|
5966
|
+
boundary: this.boundary === true ? this.$el : this.boundary });
|
|
5959
5967
|
|
|
5960
5968
|
|
|
5961
5969
|
},
|
|
@@ -5964,7 +5972,7 @@
|
|
|
5964
5972
|
|
|
5965
5973
|
|
|
5966
5974
|
toggles: {
|
|
5967
|
-
get(
|
|
5975
|
+
get(_ref4, $el) {let { dropdown } = _ref4;
|
|
5968
5976
|
return $$(dropdown, $el);
|
|
5969
5977
|
},
|
|
5970
5978
|
|
|
@@ -5995,7 +6003,7 @@
|
|
|
5995
6003
|
return this.dropdown;
|
|
5996
6004
|
},
|
|
5997
6005
|
|
|
5998
|
-
handler(
|
|
6006
|
+
handler(_ref5) {let { current } = _ref5;
|
|
5999
6007
|
const active = this.getActive();
|
|
6000
6008
|
if (
|
|
6001
6009
|
active &&
|
|
@@ -6025,7 +6033,7 @@
|
|
|
6025
6033
|
|
|
6026
6034
|
if (!active || active.targetEl !== current) {
|
|
6027
6035
|
current.click();
|
|
6028
|
-
once(this.dropContainer, 'show', (
|
|
6036
|
+
once(this.dropContainer, 'show', (_ref6) => {let { target } = _ref6;return (
|
|
6029
6037
|
focusFirstFocusableElement(target));});
|
|
6030
6038
|
|
|
6031
6039
|
} else {
|
|
@@ -6116,7 +6124,7 @@
|
|
|
6116
6124
|
return this.dropbar;
|
|
6117
6125
|
},
|
|
6118
6126
|
|
|
6119
|
-
handler(
|
|
6127
|
+
handler(_ref7) {let { target } = _ref7;
|
|
6120
6128
|
if (!this.isDropbarDrop(target)) {
|
|
6121
6129
|
return;
|
|
6122
6130
|
}
|
|
@@ -6140,7 +6148,7 @@
|
|
|
6140
6148
|
return this.dropbar;
|
|
6141
6149
|
},
|
|
6142
6150
|
|
|
6143
|
-
handler(
|
|
6151
|
+
handler(_ref8) {let { target } = _ref8;
|
|
6144
6152
|
if (!this.isDropbarDrop(target)) {
|
|
6145
6153
|
return;
|
|
6146
6154
|
}
|
|
@@ -6150,8 +6158,8 @@
|
|
|
6150
6158
|
const targetOffsets = parents(target, "." + this.clsDrop).
|
|
6151
6159
|
concat(target).
|
|
6152
6160
|
map((el) => offset(el));
|
|
6153
|
-
const minTop = Math.min(...targetOffsets.map((
|
|
6154
|
-
const maxBottom = Math.max(...targetOffsets.map((
|
|
6161
|
+
const minTop = Math.min(...targetOffsets.map((_ref9) => {let { top } = _ref9;return top;}));
|
|
6162
|
+
const maxBottom = Math.max(...targetOffsets.map((_ref10) => {let { bottom } = _ref10;return bottom;}));
|
|
6155
6163
|
const dropbarOffset = offset(this.dropbar);
|
|
6156
6164
|
css(this.dropbar, 'top', this.dropbar.offsetTop - (dropbarOffset.top - minTop));
|
|
6157
6165
|
this.transitionTo(
|
|
@@ -6197,12 +6205,12 @@
|
|
|
6197
6205
|
return this.dropbar;
|
|
6198
6206
|
},
|
|
6199
6207
|
|
|
6200
|
-
handler(
|
|
6208
|
+
handler(_ref11) {var _this$_observer;let { target } = _ref11;
|
|
6201
6209
|
if (!this.isDropbarDrop(target)) {
|
|
6202
6210
|
return;
|
|
6203
6211
|
}
|
|
6204
6212
|
|
|
6205
|
-
this._observer.disconnect();
|
|
6213
|
+
(_this$_observer = this._observer) == null ? void 0 : _this$_observer.disconnect();
|
|
6206
6214
|
|
|
6207
6215
|
const active = this.getActive();
|
|
6208
6216
|
|
|
@@ -6659,7 +6667,7 @@
|
|
|
6659
6667
|
function unregisterClick(cmp) {
|
|
6660
6668
|
components$2.delete(cmp);
|
|
6661
6669
|
|
|
6662
|
-
if (!components$2.
|
|
6670
|
+
if (!components$2.size) {
|
|
6663
6671
|
off(document, 'click', clickHandler);
|
|
6664
6672
|
}
|
|
6665
6673
|
}
|
|
@@ -9259,7 +9267,6 @@
|
|
|
9259
9267
|
let matches;
|
|
9260
9268
|
const iframeAttrs = {
|
|
9261
9269
|
frameborder: '0',
|
|
9262
|
-
allow: 'autoplay',
|
|
9263
9270
|
allowfullscreen: '',
|
|
9264
9271
|
style: 'max-width: 100%; box-sizing: border-box;',
|
|
9265
9272
|
'uk-responsive': '',
|