uikit 3.14.1-dev.dadc910c0 → 3.14.1-dev.e15dd286c
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 +2 -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 +2 -2
- 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 +1 -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 +60 -60
- package/dist/js/components/parallax.min.js +1 -1
- package/dist/js/components/slider-parallax.js +60 -60
- 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 +60 -60
- 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 +2 -2
- 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 +12 -9
- 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 +72 -69
- package/dist/js/uikit.min.js +1 -1
- package/package.json +1 -1
- package/src/js/components/filter.js +1 -1
- package/src/js/core/margin.js +1 -1
- package/src/js/core/scrollspy.js +9 -6
- package/src/js/mixin/parallax.js +59 -59
- package/src/js/mixin/position.js +1 -1
- package/tests/notification.html +1 -1
- package/tests/parallax.html +7 -7
package/dist/js/uikit.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.14.1-dev.
|
|
1
|
+
/*! UIkit 3.14.1-dev.e15dd286c | 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() :
|
|
@@ -2954,7 +2954,7 @@
|
|
|
2954
2954
|
UIkit.data = '__uikit__';
|
|
2955
2955
|
UIkit.prefix = 'uk-';
|
|
2956
2956
|
UIkit.options = {};
|
|
2957
|
-
UIkit.version = '3.14.1-dev.
|
|
2957
|
+
UIkit.version = '3.14.1-dev.e15dd286c';
|
|
2958
2958
|
|
|
2959
2959
|
globalAPI(UIkit);
|
|
2960
2960
|
hooksAPI(UIkit);
|
|
@@ -3622,7 +3622,7 @@
|
|
|
3622
3622
|
attach,
|
|
3623
3623
|
offset: offset$1,
|
|
3624
3624
|
boundary,
|
|
3625
|
-
viewportPadding: this.viewportPadding,
|
|
3625
|
+
viewportPadding: this.boundaryAlign ? 0 : this.viewportPadding,
|
|
3626
3626
|
flip: this.flip });
|
|
3627
3627
|
|
|
3628
3628
|
} } };
|
|
@@ -4120,7 +4120,7 @@
|
|
|
4120
4120
|
for (const row of rows) {
|
|
4121
4121
|
for (const column of row) {
|
|
4122
4122
|
toggleClass(column, this.margin, rows[0] !== row);
|
|
4123
|
-
toggleClass(column, this.firstColumn,
|
|
4123
|
+
toggleClass(column, this.firstColumn, columns[0].includes(column));
|
|
4124
4124
|
}
|
|
4125
4125
|
}
|
|
4126
4126
|
},
|
|
@@ -6443,13 +6443,13 @@
|
|
|
6443
6443
|
return target ? $$(target, $el) : [$el];
|
|
6444
6444
|
},
|
|
6445
6445
|
|
|
6446
|
-
watch(elements
|
|
6446
|
+
watch(elements) {
|
|
6447
6447
|
if (this.hidden) {
|
|
6448
6448
|
css(filter$1(elements, ":not(." + this.inViewClass + ")"), 'visibility', 'hidden');
|
|
6449
6449
|
}
|
|
6450
6450
|
|
|
6451
|
-
|
|
6452
|
-
this
|
|
6451
|
+
for (const element of elements) {
|
|
6452
|
+
this._observer.observe(element);
|
|
6453
6453
|
}
|
|
6454
6454
|
},
|
|
6455
6455
|
|
|
@@ -6459,9 +6459,10 @@
|
|
|
6459
6459
|
|
|
6460
6460
|
connected() {
|
|
6461
6461
|
this._data.elements = new Map();
|
|
6462
|
+
|
|
6462
6463
|
this.registerObserver(
|
|
6463
|
-
observeIntersection(
|
|
6464
|
-
|
|
6464
|
+
this._observer = observeIntersection(
|
|
6465
|
+
[],
|
|
6465
6466
|
(records) => {
|
|
6466
6467
|
const elements = this._data.elements;
|
|
6467
6468
|
for (const { target: el, isIntersecting } of records) {
|
|
@@ -6495,6 +6496,8 @@
|
|
|
6495
6496
|
for (const [el, state] of this._data.elements.entries()) {
|
|
6496
6497
|
removeClass(el, this.inViewClass, (state == null ? void 0 : state.cls) || '');
|
|
6497
6498
|
}
|
|
6499
|
+
|
|
6500
|
+
this._observer = null;
|
|
6498
6501
|
},
|
|
6499
6502
|
|
|
6500
6503
|
update: [
|
|
@@ -8053,7 +8056,7 @@
|
|
|
8053
8056
|
}
|
|
8054
8057
|
|
|
8055
8058
|
function isEqualList(listA, listB) {
|
|
8056
|
-
return listA.length === listB.length && listA.every((el) =>
|
|
8059
|
+
return listA.length === listB.length && listA.every((el) => listB.includes(el));
|
|
8057
8060
|
}
|
|
8058
8061
|
|
|
8059
8062
|
function getSelector(_ref4) {let { filter } = _ref4;
|
|
@@ -9378,39 +9381,39 @@
|
|
|
9378
9381
|
|
|
9379
9382
|
|
|
9380
9383
|
|
|
9381
|
-
function transformFn(prop, el,
|
|
9382
|
-
let unit = getUnit(
|
|
9384
|
+
function transformFn(prop, el, stops) {
|
|
9385
|
+
let unit = getUnit(stops) || { x: 'px', y: 'px', rotate: 'deg' }[prop] || '';
|
|
9383
9386
|
let transformFn;
|
|
9384
9387
|
|
|
9385
9388
|
if (prop === 'x' || prop === 'y') {
|
|
9386
9389
|
prop = "translate" + ucfirst(prop);
|
|
9387
|
-
transformFn = (
|
|
9390
|
+
transformFn = (stop) => toFloat(toFloat(stop).toFixed(unit === 'px' ? 0 : 6));
|
|
9388
9391
|
} else if (prop === 'scale') {
|
|
9389
9392
|
unit = '';
|
|
9390
|
-
transformFn = (
|
|
9391
|
-
getUnit([
|
|
9393
|
+
transformFn = (stop) =>
|
|
9394
|
+
getUnit([stop]) ? toPx(stop, 'width', el, true) / el.offsetWidth : stop;
|
|
9392
9395
|
}
|
|
9393
9396
|
|
|
9394
|
-
if (
|
|
9395
|
-
|
|
9397
|
+
if (stops.length === 1) {
|
|
9398
|
+
stops.unshift(prop === 'scale' ? 1 : 0);
|
|
9396
9399
|
}
|
|
9397
9400
|
|
|
9398
|
-
|
|
9401
|
+
stops = parseStops(stops, transformFn);
|
|
9399
9402
|
|
|
9400
9403
|
return (css, percent) => {
|
|
9401
|
-
css.transform += " " + prop + "(" + getValue(
|
|
9404
|
+
css.transform += " " + prop + "(" + getValue(stops, percent) + unit + ")";
|
|
9402
9405
|
};
|
|
9403
9406
|
}
|
|
9404
9407
|
|
|
9405
|
-
function colorFn(prop, el,
|
|
9406
|
-
if (
|
|
9407
|
-
|
|
9408
|
+
function colorFn(prop, el, stops) {
|
|
9409
|
+
if (stops.length === 1) {
|
|
9410
|
+
stops.unshift(getCssValue(el, prop, ''));
|
|
9408
9411
|
}
|
|
9409
9412
|
|
|
9410
|
-
|
|
9413
|
+
stops = parseStops(stops, (stop) => parseColor(el, stop));
|
|
9411
9414
|
|
|
9412
9415
|
return (css, percent) => {
|
|
9413
|
-
const [start, end, p] =
|
|
9416
|
+
const [start, end, p] = getStop(stops, percent);
|
|
9414
9417
|
const value = start.
|
|
9415
9418
|
map((value, i) => {
|
|
9416
9419
|
value += p * (end[i] - value);
|
|
@@ -9430,80 +9433,80 @@
|
|
|
9430
9433
|
map(toFloat);
|
|
9431
9434
|
}
|
|
9432
9435
|
|
|
9433
|
-
function filterFn(prop, el,
|
|
9434
|
-
if (
|
|
9435
|
-
|
|
9436
|
+
function filterFn(prop, el, stops) {
|
|
9437
|
+
if (stops.length === 1) {
|
|
9438
|
+
stops.unshift(0);
|
|
9436
9439
|
}
|
|
9437
9440
|
|
|
9438
|
-
const unit = getUnit(
|
|
9441
|
+
const unit = getUnit(stops) || { blur: 'px', hue: 'deg' }[prop] || '%';
|
|
9439
9442
|
prop = { fopacity: 'opacity', hue: 'hue-rotate' }[prop] || prop;
|
|
9440
|
-
|
|
9443
|
+
stops = parseStops(stops);
|
|
9441
9444
|
|
|
9442
9445
|
return (css, percent) => {
|
|
9443
|
-
const value = getValue(
|
|
9446
|
+
const value = getValue(stops, percent);
|
|
9444
9447
|
css.filter += " " + prop + "(" + (value + unit) + ")";
|
|
9445
9448
|
};
|
|
9446
9449
|
}
|
|
9447
9450
|
|
|
9448
|
-
function cssPropFn(prop, el,
|
|
9449
|
-
if (
|
|
9450
|
-
|
|
9451
|
+
function cssPropFn(prop, el, stops) {
|
|
9452
|
+
if (stops.length === 1) {
|
|
9453
|
+
stops.unshift(getCssValue(el, prop, ''));
|
|
9451
9454
|
}
|
|
9452
9455
|
|
|
9453
|
-
|
|
9456
|
+
stops = parseStops(stops);
|
|
9454
9457
|
|
|
9455
9458
|
return (css, percent) => {
|
|
9456
|
-
css[prop] = getValue(
|
|
9459
|
+
css[prop] = getValue(stops, percent);
|
|
9457
9460
|
};
|
|
9458
9461
|
}
|
|
9459
9462
|
|
|
9460
|
-
function strokeFn(prop, el,
|
|
9461
|
-
if (
|
|
9462
|
-
|
|
9463
|
+
function strokeFn(prop, el, stops) {
|
|
9464
|
+
if (stops.length === 1) {
|
|
9465
|
+
stops.unshift(0);
|
|
9463
9466
|
}
|
|
9464
9467
|
|
|
9465
|
-
const unit = getUnit(
|
|
9468
|
+
const unit = getUnit(stops);
|
|
9466
9469
|
const length = getMaxPathLength(el);
|
|
9467
|
-
|
|
9468
|
-
|
|
9469
|
-
return unit === '%' ?
|
|
9470
|
+
stops = parseStops(stops.reverse(), (stop) => {
|
|
9471
|
+
stop = toFloat(stop);
|
|
9472
|
+
return unit === '%' ? stop * length / 100 : stop;
|
|
9470
9473
|
});
|
|
9471
9474
|
|
|
9472
|
-
if (!
|
|
9475
|
+
if (!stops.some((_ref) => {let [value] = _ref;return value;})) {
|
|
9473
9476
|
return noop;
|
|
9474
9477
|
}
|
|
9475
9478
|
|
|
9476
9479
|
css(el, 'strokeDasharray', length);
|
|
9477
9480
|
|
|
9478
9481
|
return (css, percent) => {
|
|
9479
|
-
css.strokeDashoffset = getValue(
|
|
9482
|
+
css.strokeDashoffset = getValue(stops, percent);
|
|
9480
9483
|
};
|
|
9481
9484
|
}
|
|
9482
9485
|
|
|
9483
|
-
function backgroundFn(prop, el,
|
|
9484
|
-
if (
|
|
9485
|
-
|
|
9486
|
+
function backgroundFn(prop, el, stops) {
|
|
9487
|
+
if (stops.length === 1) {
|
|
9488
|
+
stops.unshift(0);
|
|
9486
9489
|
}
|
|
9487
9490
|
|
|
9488
9491
|
prop = prop.substr(-1);
|
|
9489
9492
|
const attr = prop === 'y' ? 'height' : 'width';
|
|
9490
|
-
|
|
9493
|
+
stops = parseStops(stops, (stop) => toPx(stop, attr, el));
|
|
9491
9494
|
|
|
9492
9495
|
const bgPos = getCssValue(el, "background-position-" + prop, '');
|
|
9493
9496
|
|
|
9494
9497
|
return getCssValue(el, 'backgroundSize', '') === 'cover' ?
|
|
9495
|
-
backgroundCoverFn(prop, el,
|
|
9496
|
-
setBackgroundPosFn(prop,
|
|
9498
|
+
backgroundCoverFn(prop, el, stops, bgPos, attr) :
|
|
9499
|
+
setBackgroundPosFn(prop, stops, bgPos);
|
|
9497
9500
|
}
|
|
9498
9501
|
|
|
9499
|
-
function backgroundCoverFn(prop, el,
|
|
9502
|
+
function backgroundCoverFn(prop, el, stops, bgPos, attr) {
|
|
9500
9503
|
const dimImage = getBackgroundImageDimensions(el);
|
|
9501
9504
|
|
|
9502
9505
|
if (!dimImage.width) {
|
|
9503
9506
|
return noop;
|
|
9504
9507
|
}
|
|
9505
9508
|
|
|
9506
|
-
const values =
|
|
9509
|
+
const values = stops.map((_ref2) => {let [value] = _ref2;return value;});
|
|
9507
9510
|
const min = Math.min(...values);
|
|
9508
9511
|
const max = Math.max(...values);
|
|
9509
9512
|
const down = values.indexOf(min) < values.indexOf(max);
|
|
@@ -9531,7 +9534,7 @@
|
|
|
9531
9534
|
|
|
9532
9535
|
const dim = Dimensions.cover(dimImage, dimEl);
|
|
9533
9536
|
|
|
9534
|
-
const fn = setBackgroundPosFn(prop,
|
|
9537
|
+
const fn = setBackgroundPosFn(prop, stops, pos + "px");
|
|
9535
9538
|
return (css, percent) => {
|
|
9536
9539
|
fn(css, percent);
|
|
9537
9540
|
css.backgroundSize = dim.width + "px " + dim.height + "px";
|
|
@@ -9539,9 +9542,9 @@
|
|
|
9539
9542
|
};
|
|
9540
9543
|
}
|
|
9541
9544
|
|
|
9542
|
-
function setBackgroundPosFn(prop,
|
|
9545
|
+
function setBackgroundPosFn(prop, stops, pos) {
|
|
9543
9546
|
return function (css, percent) {
|
|
9544
|
-
css["background-position-" + prop] = "calc(" + pos + " + " + getValue(
|
|
9547
|
+
css["background-position-" + prop] = "calc(" + pos + " + " + getValue(stops, percent) + "px)";
|
|
9545
9548
|
};
|
|
9546
9549
|
}
|
|
9547
9550
|
|
|
@@ -9576,12 +9579,12 @@
|
|
|
9576
9579
|
|
|
9577
9580
|
}
|
|
9578
9581
|
|
|
9579
|
-
function
|
|
9582
|
+
function parseStops(stops, fn) {if (fn === void 0) {fn = toFloat;}
|
|
9580
9583
|
const result = [];
|
|
9581
|
-
const { length } =
|
|
9584
|
+
const { length } = stops;
|
|
9582
9585
|
let nullIndex = 0;
|
|
9583
9586
|
for (let i = 0; i < length; i++) {
|
|
9584
|
-
let [value, percent] = isString(
|
|
9587
|
+
let [value, percent] = isString(stops[i]) ? stops[i].trim().split(' ') : [stops[i]];
|
|
9585
9588
|
value = fn(value);
|
|
9586
9589
|
percent = percent ? toFloat(percent) / 100 : null;
|
|
9587
9590
|
|
|
@@ -9618,24 +9621,24 @@
|
|
|
9618
9621
|
return result;
|
|
9619
9622
|
}
|
|
9620
9623
|
|
|
9621
|
-
function
|
|
9622
|
-
const index = findIndex(
|
|
9624
|
+
function getStop(stops, percent) {
|
|
9625
|
+
const index = findIndex(stops.slice(1), (_ref3) => {let [, targetPercent] = _ref3;return percent <= targetPercent;}) + 1;
|
|
9623
9626
|
return [
|
|
9624
|
-
|
|
9625
|
-
|
|
9626
|
-
(percent -
|
|
9627
|
+
stops[index - 1][0],
|
|
9628
|
+
stops[index][0],
|
|
9629
|
+
(percent - stops[index - 1][1]) / (stops[index][1] - stops[index - 1][1])];
|
|
9627
9630
|
|
|
9628
9631
|
}
|
|
9629
9632
|
|
|
9630
|
-
function getValue(
|
|
9631
|
-
const [start, end, p] =
|
|
9633
|
+
function getValue(stops, percent) {
|
|
9634
|
+
const [start, end, p] = getStop(stops, percent);
|
|
9632
9635
|
return isNumber(start) ? start + Math.abs(start - end) * p * (start < end ? 1 : -1) : +end;
|
|
9633
9636
|
}
|
|
9634
9637
|
|
|
9635
|
-
const unitRe = /^-?\d+(
|
|
9636
|
-
function getUnit(
|
|
9637
|
-
for (const
|
|
9638
|
-
const match =
|
|
9638
|
+
const unitRe = /^-?\d+(\S*)/;
|
|
9639
|
+
function getUnit(stops, defaultUnit) {
|
|
9640
|
+
for (const stop of stops) {
|
|
9641
|
+
const match = stop.match == null ? void 0 : stop.match(unitRe);
|
|
9639
9642
|
if (match) {
|
|
9640
9643
|
return match[1];
|
|
9641
9644
|
}
|