uikit 3.12.1 → 3.12.3-dev.6377276f3
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 +25 -2
- package/build/scss.js +9 -17
- package/dist/css/uikit-core-rtl.css +15 -81
- package/dist/css/uikit-core-rtl.min.css +1 -1
- package/dist/css/uikit-core.css +15 -81
- package/dist/css/uikit-core.min.css +1 -1
- package/dist/css/uikit-rtl.css +15 -81
- package/dist/css/uikit-rtl.min.css +1 -1
- package/dist/css/uikit.css +15 -81
- package/dist/css/uikit.min.css +1 -1
- package/dist/js/components/countdown.js +2 -2
- 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 -1
- package/dist/js/components/lightbox-panel.min.js +1 -1
- package/dist/js/components/lightbox.js +3 -3
- 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 +22 -7
- package/dist/js/components/parallax.min.js +1 -1
- package/dist/js/components/slider-parallax.js +22 -7
- package/dist/js/components/slider-parallax.min.js +1 -1
- package/dist/js/components/slider.js +2 -2
- package/dist/js/components/slider.min.js +1 -1
- package/dist/js/components/slideshow-parallax.js +22 -7
- 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 +72 -55
- 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 +76 -59
- package/dist/js/uikit.min.js +1 -1
- package/package.json +1 -1
- package/src/js/components/countdown.js +1 -1
- package/src/js/components/lightbox.js +1 -1
- package/src/js/components/slider.js +1 -1
- package/src/js/core/form-custom.js +6 -7
- package/src/js/core/scroll.js +6 -2
- package/src/js/core/scrollspy-nav.js +16 -16
- package/src/js/core/scrollspy.js +9 -15
- package/src/js/core/sticky.js +1 -2
- package/src/js/core/toggle.js +16 -13
- package/src/js/mixin/media.js +29 -5
- package/src/js/util/mouse.js +1 -1
- package/src/js/util/style.js +1 -1
- package/src/less/components/base.less +0 -19
- package/src/less/components/form.less +1 -9
- package/src/less/components/icon.less +6 -0
- package/src/less/components/list.less +1 -0
- package/src/less/components/search.less +0 -3
- package/src/less/components/slider.less +3 -0
- package/src/less/components/slideshow.less +3 -0
- package/src/less/components/utility.less +0 -9
- package/src/scss/components/base.scss +0 -19
- package/src/scss/components/form.scss +1 -7
- package/src/scss/components/icon.scss +6 -0
- package/src/scss/components/list.scss +1 -0
- package/src/scss/components/search.scss +0 -1
- package/src/scss/components/slider.scss +3 -0
- package/src/scss/components/slideshow.scss +3 -0
- package/src/scss/components/utility.scss +0 -9
- package/src/scss/mixins-theme.scss +0 -4
- package/src/scss/mixins.scss +0 -4
package/dist/js/uikit-core.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.12.
|
|
1
|
+
/*! UIkit 3.12.3-dev.6377276f3 | 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() :
|
|
@@ -809,7 +809,7 @@
|
|
|
809
809
|
// https://drafts.csswg.org/cssom/#dom-cssstyledeclaration-setproperty
|
|
810
810
|
const propName = memoize((name) => vendorPropName(name));
|
|
811
811
|
|
|
812
|
-
const cssPrefixes = ['webkit', 'moz'
|
|
812
|
+
const cssPrefixes = ['webkit', 'moz'];
|
|
813
813
|
|
|
814
814
|
function vendorPropName(name) {
|
|
815
815
|
name = hyphenate(name);
|
|
@@ -1409,8 +1409,8 @@
|
|
|
1409
1409
|
}, 50);
|
|
1410
1410
|
},
|
|
1411
1411
|
|
|
1412
|
-
cancel() {
|
|
1413
|
-
this.unbind
|
|
1412
|
+
cancel() {var _this$unbind;
|
|
1413
|
+
(_this$unbind = this.unbind) == null ? void 0 : _this$unbind.call(this);
|
|
1414
1414
|
this.interval && clearInterval(this.interval);
|
|
1415
1415
|
},
|
|
1416
1416
|
|
|
@@ -2887,7 +2887,7 @@
|
|
|
2887
2887
|
UIkit.data = '__uikit__';
|
|
2888
2888
|
UIkit.prefix = 'uk-';
|
|
2889
2889
|
UIkit.options = {};
|
|
2890
|
-
UIkit.version = '3.12.
|
|
2890
|
+
UIkit.version = '3.12.3-dev.6377276f3';
|
|
2891
2891
|
|
|
2892
2892
|
globalAPI(UIkit);
|
|
2893
2893
|
hooksAPI(UIkit);
|
|
@@ -3964,7 +3964,7 @@
|
|
|
3964
3964
|
} },
|
|
3965
3965
|
|
|
3966
3966
|
|
|
3967
|
-
update() {
|
|
3967
|
+
update() {var _input$files;
|
|
3968
3968
|
const { target, input } = this;
|
|
3969
3969
|
|
|
3970
3970
|
if (!target) {
|
|
@@ -3974,8 +3974,7 @@
|
|
|
3974
3974
|
let option;
|
|
3975
3975
|
const prop = isInput(target) ? 'value' : 'textContent';
|
|
3976
3976
|
const prev = target[prop];
|
|
3977
|
-
const value =
|
|
3978
|
-
input.files && input.files[0] ?
|
|
3977
|
+
const value = (_input$files = input.files) != null && _input$files[0] ?
|
|
3979
3978
|
input.files[0].name :
|
|
3980
3979
|
matches(input, 'select') && (
|
|
3981
3980
|
option = $$('option', input).filter((el) => el.selected)[0]) // eslint-disable-line prefer-destructuring
|
|
@@ -5065,16 +5064,31 @@
|
|
|
5065
5064
|
|
|
5066
5065
|
|
|
5067
5066
|
computed: {
|
|
5068
|
-
matchMedia() {
|
|
5069
|
-
|
|
5070
|
-
|
|
5071
|
-
|
|
5067
|
+
matchMedia() {var _this$mediaObj;
|
|
5068
|
+
return (_this$mediaObj = this.mediaObj) == null ? void 0 : _this$mediaObj.matches;
|
|
5069
|
+
} },
|
|
5070
|
+
|
|
5071
|
+
|
|
5072
|
+
connected() {
|
|
5073
|
+
const media = toMedia(this.media);
|
|
5074
|
+
this.mediaObj = window.matchMedia(media);
|
|
5075
|
+
const handler = () =>
|
|
5076
|
+
trigger(this.$el, createEvent('mediachange', false, true, [this.mediaObj]));
|
|
5077
|
+
this.offMediaObj = on(this.mediaObj, 'change', () => {
|
|
5078
|
+
handler();
|
|
5079
|
+
this.$emit('resize');
|
|
5080
|
+
});
|
|
5081
|
+
handler();
|
|
5082
|
+
},
|
|
5072
5083
|
|
|
5084
|
+
disconnected() {var _this$offMediaObj;
|
|
5085
|
+
(_this$offMediaObj = this.offMediaObj) == null ? void 0 : _this$offMediaObj.call(this);
|
|
5086
|
+
} };
|
|
5073
5087
|
|
|
5074
5088
|
|
|
5075
5089
|
function toMedia(value) {
|
|
5076
5090
|
if (isString(value)) {
|
|
5077
|
-
if (value
|
|
5091
|
+
if (startsWith(value, '@')) {
|
|
5078
5092
|
const name = "breakpoint-" + value.substr(1);
|
|
5079
5093
|
value = toFloat(getCssVar(name));
|
|
5080
5094
|
} else if (isNaN(value)) {
|
|
@@ -5082,7 +5096,7 @@
|
|
|
5082
5096
|
}
|
|
5083
5097
|
}
|
|
5084
5098
|
|
|
5085
|
-
return value &&
|
|
5099
|
+
return value && isNumeric(value) ? "(min-width: " + value + "px)" : '';
|
|
5086
5100
|
}
|
|
5087
5101
|
|
|
5088
5102
|
var leader = {
|
|
@@ -6346,9 +6360,15 @@
|
|
|
6346
6360
|
}
|
|
6347
6361
|
|
|
6348
6362
|
e.preventDefault();
|
|
6349
|
-
this.scrollTo(
|
|
6363
|
+
this.scrollTo(getTargetElement(this.$el));
|
|
6350
6364
|
} } };
|
|
6351
6365
|
|
|
6366
|
+
|
|
6367
|
+
|
|
6368
|
+
function getTargetElement(el) {
|
|
6369
|
+
return document.getElementById(decodeURIComponent(el.hash).substring(1));
|
|
6370
|
+
}
|
|
6371
|
+
|
|
6352
6372
|
const stateKey = '_ukScrollspy';
|
|
6353
6373
|
var scrollspy = {
|
|
6354
6374
|
args: 'cls',
|
|
@@ -6391,24 +6411,15 @@
|
|
|
6391
6411
|
|
|
6392
6412
|
|
|
6393
6413
|
disconnected() {
|
|
6394
|
-
for (const el of this.elements) {
|
|
6395
|
-
removeClass(el, this.inViewClass, el[stateKey] ?
|
|
6414
|
+
for (const el of this.elements) {var _el$stateKey;
|
|
6415
|
+
removeClass(el, this.inViewClass, ((_el$stateKey = el[stateKey]) == null ? void 0 : _el$stateKey.cls) || '');
|
|
6396
6416
|
delete el[stateKey];
|
|
6397
6417
|
}
|
|
6398
6418
|
},
|
|
6399
6419
|
|
|
6400
6420
|
update: [
|
|
6401
6421
|
{
|
|
6402
|
-
read(
|
|
6403
|
-
// Let child components be applied at least once first
|
|
6404
|
-
if (!data$1.update) {
|
|
6405
|
-
Promise.resolve().then(() => {
|
|
6406
|
-
this.$emit();
|
|
6407
|
-
data$1.update = true;
|
|
6408
|
-
});
|
|
6409
|
-
return false;
|
|
6410
|
-
}
|
|
6411
|
-
|
|
6422
|
+
read() {
|
|
6412
6423
|
for (const el of this.elements) {
|
|
6413
6424
|
if (!el[stateKey]) {
|
|
6414
6425
|
el[stateKey] = { cls: data(el, 'uk-scrollspy-class') || this.cls };
|
|
@@ -6448,7 +6459,7 @@
|
|
|
6448
6459
|
toggle(el, inview) {
|
|
6449
6460
|
const state = el[stateKey];
|
|
6450
6461
|
|
|
6451
|
-
state.off
|
|
6462
|
+
state.off == null ? void 0 : state.off();
|
|
6452
6463
|
|
|
6453
6464
|
css(el, 'visibility', !inview && this.hidden ? 'hidden' : '');
|
|
6454
6465
|
|
|
@@ -6456,9 +6467,12 @@
|
|
|
6456
6467
|
toggleClass(el, state.cls);
|
|
6457
6468
|
|
|
6458
6469
|
if (/\buk-animation-/.test(state.cls)) {
|
|
6459
|
-
|
|
6460
|
-
|
|
6461
|
-
|
|
6470
|
+
const removeAnimationClasses = () => removeClasses(el, 'uk-animation-[\\w-]+');
|
|
6471
|
+
if (inview) {
|
|
6472
|
+
state.off = once(el, 'animationcancel animationend', removeAnimationClasses);
|
|
6473
|
+
} else {
|
|
6474
|
+
removeAnimationClasses();
|
|
6475
|
+
}
|
|
6462
6476
|
}
|
|
6463
6477
|
|
|
6464
6478
|
trigger(el, inview ? 'inview' : 'outview');
|
|
@@ -6500,10 +6514,6 @@
|
|
|
6500
6514
|
immediate: true },
|
|
6501
6515
|
|
|
6502
6516
|
|
|
6503
|
-
targets() {
|
|
6504
|
-
return $$(this.links.map((el) => escape(el.hash).substr(1)).join(','));
|
|
6505
|
-
},
|
|
6506
|
-
|
|
6507
6517
|
elements(_ref) {let { closest: selector } = _ref;
|
|
6508
6518
|
return closest(this.links, selector || '*');
|
|
6509
6519
|
} },
|
|
@@ -6512,13 +6522,15 @@
|
|
|
6512
6522
|
update: [
|
|
6513
6523
|
{
|
|
6514
6524
|
read() {
|
|
6515
|
-
const
|
|
6525
|
+
const targets = this.links.map(getTargetElement).filter(Boolean);
|
|
6526
|
+
|
|
6527
|
+
const { length } = targets;
|
|
6516
6528
|
|
|
6517
6529
|
if (!length || !isVisible(this.$el)) {
|
|
6518
6530
|
return false;
|
|
6519
6531
|
}
|
|
6520
6532
|
|
|
6521
|
-
const [scrollElement] = scrollParents(
|
|
6533
|
+
const [scrollElement] = scrollParents(targets, /auto|scroll/, true);
|
|
6522
6534
|
const { scrollTop, scrollHeight } = scrollElement;
|
|
6523
6535
|
const max = scrollHeight - getViewportClientHeight(scrollElement);
|
|
6524
6536
|
let active = false;
|
|
@@ -6526,15 +6538,17 @@
|
|
|
6526
6538
|
if (scrollTop === max) {
|
|
6527
6539
|
active = length - 1;
|
|
6528
6540
|
} else {
|
|
6529
|
-
|
|
6541
|
+
for (const i in targets) {
|
|
6530
6542
|
if (
|
|
6531
|
-
offset(
|
|
6543
|
+
offset(targets[i]).top -
|
|
6544
|
+
offset(getViewport$1(scrollElement)).top -
|
|
6545
|
+
this.offset >
|
|
6532
6546
|
0)
|
|
6533
6547
|
{
|
|
6534
|
-
|
|
6535
|
-
return true;
|
|
6548
|
+
break;
|
|
6536
6549
|
}
|
|
6537
|
-
|
|
6550
|
+
active = +i;
|
|
6551
|
+
}
|
|
6538
6552
|
|
|
6539
6553
|
if (active === false && this.overflow) {
|
|
6540
6554
|
active = 0;
|
|
@@ -6548,8 +6562,9 @@
|
|
|
6548
6562
|
const changed = active !== false && !hasClass(this.elements[active], this.cls);
|
|
6549
6563
|
|
|
6550
6564
|
this.links.forEach((el) => el.blur());
|
|
6551
|
-
|
|
6552
|
-
|
|
6565
|
+
for (const i in this.elements) {
|
|
6566
|
+
toggleClass(this.elements[i], this.cls, +i === active);
|
|
6567
|
+
}
|
|
6553
6568
|
|
|
6554
6569
|
if (changed) {
|
|
6555
6570
|
trigger(this.$el, 'active', [active, this.elements[active]]);
|
|
@@ -6713,7 +6728,6 @@
|
|
|
6713
6728
|
|
|
6714
6729
|
const overflow = Math.max(0, height$1 + offset$1 - windowHeight);
|
|
6715
6730
|
const topOffset = offset(referenceElement).top;
|
|
6716
|
-
const offsetParentTop = offset(referenceElement.offsetParent).top;
|
|
6717
6731
|
|
|
6718
6732
|
const top = parseProp(this.top, this.$el, topOffset);
|
|
6719
6733
|
const bottom = parseProp(this.bottom, this.$el, topOffset + height$1, true);
|
|
@@ -6729,7 +6743,6 @@
|
|
|
6729
6743
|
offset: offset$1,
|
|
6730
6744
|
overflow,
|
|
6731
6745
|
topOffset,
|
|
6732
|
-
offsetParentTop,
|
|
6733
6746
|
height: height$1,
|
|
6734
6747
|
margin,
|
|
6735
6748
|
width: dimensions(isVisible(this.widthElement) ? this.widthElement : this.$el).
|
|
@@ -6771,6 +6784,7 @@
|
|
|
6771
6784
|
prevDir,
|
|
6772
6785
|
scroll,
|
|
6773
6786
|
prevScroll,
|
|
6787
|
+
offsetParentTop: offset(this.$el.offsetParent).top,
|
|
6774
6788
|
overflowScroll: clamp(
|
|
6775
6789
|
overflowScroll + clamp(scroll, start, end) - clamp(prevScroll, start, end),
|
|
6776
6790
|
0,
|
|
@@ -7269,23 +7283,26 @@
|
|
|
7269
7283
|
if (e.target === this.target[0]) {
|
|
7270
7284
|
this.updateAria(toggled);
|
|
7271
7285
|
}
|
|
7272
|
-
} }
|
|
7286
|
+
} },
|
|
7287
|
+
|
|
7273
7288
|
|
|
7289
|
+
{
|
|
7290
|
+
name: 'mediachange',
|
|
7274
7291
|
|
|
7292
|
+
filter() {
|
|
7293
|
+
return includes(this.mode, 'media');
|
|
7294
|
+
},
|
|
7275
7295
|
|
|
7276
|
-
|
|
7277
|
-
|
|
7278
|
-
return includes(this.mode, 'media') && this.media ? { match: this.matchMedia } : false;
|
|
7296
|
+
el() {
|
|
7297
|
+
return this.target;
|
|
7279
7298
|
},
|
|
7280
7299
|
|
|
7281
|
-
|
|
7282
|
-
|
|
7283
|
-
if (match ? !toggled : toggled) {
|
|
7300
|
+
handler(e, mediaObj) {
|
|
7301
|
+
if (mediaObj.matches ^ this.isToggled(this.target)) {
|
|
7284
7302
|
this.toggle();
|
|
7285
7303
|
}
|
|
7286
|
-
},
|
|
7304
|
+
} }],
|
|
7287
7305
|
|
|
7288
|
-
events: ['resize'] },
|
|
7289
7306
|
|
|
7290
7307
|
|
|
7291
7308
|
methods: {
|