uikit 3.14.1-dev.b7e81c46b → 3.14.1-dev.c39bbab1a
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 +3 -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 +59 -59
- package/dist/js/components/parallax.min.js +1 -1
- package/dist/js/components/slider-parallax.js +59 -59
- 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 +59 -59
- 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 +6 -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 +65 -65
- package/dist/js/uikit.min.js +1 -1
- package/package.json +1 -1
- package/src/js/api/hooks.js +1 -1
- package/src/js/components/filter.js +1 -1
- package/src/js/core/margin.js +1 -1
- package/src/js/core/scrollspy.js +2 -1
- package/src/js/mixin/parallax.js +58 -58
- 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.c39bbab1a | 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() :
|
|
@@ -2474,7 +2474,7 @@
|
|
|
2474
2474
|
const {
|
|
2475
2475
|
$options: { computed } } =
|
|
2476
2476
|
this;
|
|
2477
|
-
const values = { ...
|
|
2477
|
+
const values = { ...this._computed };
|
|
2478
2478
|
this._computed = {};
|
|
2479
2479
|
|
|
2480
2480
|
for (const key in computed) {
|
|
@@ -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.c39bbab1a';
|
|
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
|
},
|
|
@@ -6448,7 +6448,7 @@
|
|
|
6448
6448
|
css(filter$1(elements, ":not(." + this.inViewClass + ")"), 'visibility', 'hidden');
|
|
6449
6449
|
}
|
|
6450
6450
|
|
|
6451
|
-
if (prev) {
|
|
6451
|
+
if (!isEqual(elements, prev)) {
|
|
6452
6452
|
this.$reset();
|
|
6453
6453
|
}
|
|
6454
6454
|
},
|
|
@@ -8053,7 +8053,7 @@
|
|
|
8053
8053
|
}
|
|
8054
8054
|
|
|
8055
8055
|
function isEqualList(listA, listB) {
|
|
8056
|
-
return listA.length === listB.length && listA.every((el) =>
|
|
8056
|
+
return listA.length === listB.length && listA.every((el) => listB.includes(el));
|
|
8057
8057
|
}
|
|
8058
8058
|
|
|
8059
8059
|
function getSelector(_ref4) {let { filter } = _ref4;
|
|
@@ -9378,39 +9378,39 @@
|
|
|
9378
9378
|
|
|
9379
9379
|
|
|
9380
9380
|
|
|
9381
|
-
function transformFn(prop, el,
|
|
9382
|
-
let unit = getUnit(
|
|
9381
|
+
function transformFn(prop, el, stops) {
|
|
9382
|
+
let unit = getUnit(stops) || { x: 'px', y: 'px', rotate: 'deg' }[prop] || '';
|
|
9383
9383
|
let transformFn;
|
|
9384
9384
|
|
|
9385
9385
|
if (prop === 'x' || prop === 'y') {
|
|
9386
9386
|
prop = "translate" + ucfirst(prop);
|
|
9387
|
-
transformFn = (
|
|
9387
|
+
transformFn = (stop) => toFloat(toFloat(stop).toFixed(unit === 'px' ? 0 : 6));
|
|
9388
9388
|
} else if (prop === 'scale') {
|
|
9389
9389
|
unit = '';
|
|
9390
|
-
transformFn = (
|
|
9391
|
-
getUnit([
|
|
9390
|
+
transformFn = (stop) =>
|
|
9391
|
+
getUnit([stop]) ? toPx(stop, 'width', el, true) / el.offsetWidth : stop;
|
|
9392
9392
|
}
|
|
9393
9393
|
|
|
9394
|
-
if (
|
|
9395
|
-
|
|
9394
|
+
if (stops.length === 1) {
|
|
9395
|
+
stops.unshift(prop === 'scale' ? 1 : 0);
|
|
9396
9396
|
}
|
|
9397
9397
|
|
|
9398
|
-
|
|
9398
|
+
stops = parseStops(stops, transformFn);
|
|
9399
9399
|
|
|
9400
9400
|
return (css, percent) => {
|
|
9401
|
-
css.transform += " " + prop + "(" + getValue(
|
|
9401
|
+
css.transform += " " + prop + "(" + getValue(stops, percent) + unit + ")";
|
|
9402
9402
|
};
|
|
9403
9403
|
}
|
|
9404
9404
|
|
|
9405
|
-
function colorFn(prop, el,
|
|
9406
|
-
if (
|
|
9407
|
-
|
|
9405
|
+
function colorFn(prop, el, stops) {
|
|
9406
|
+
if (stops.length === 1) {
|
|
9407
|
+
stops.unshift(getCssValue(el, prop, ''));
|
|
9408
9408
|
}
|
|
9409
9409
|
|
|
9410
|
-
|
|
9410
|
+
stops = parseStops(stops, (stop) => parseColor(el, stop));
|
|
9411
9411
|
|
|
9412
9412
|
return (css, percent) => {
|
|
9413
|
-
const [start, end, p] =
|
|
9413
|
+
const [start, end, p] = getStop(stops, percent);
|
|
9414
9414
|
const value = start.
|
|
9415
9415
|
map((value, i) => {
|
|
9416
9416
|
value += p * (end[i] - value);
|
|
@@ -9430,80 +9430,80 @@
|
|
|
9430
9430
|
map(toFloat);
|
|
9431
9431
|
}
|
|
9432
9432
|
|
|
9433
|
-
function filterFn(prop, el,
|
|
9434
|
-
if (
|
|
9435
|
-
|
|
9433
|
+
function filterFn(prop, el, stops) {
|
|
9434
|
+
if (stops.length === 1) {
|
|
9435
|
+
stops.unshift(0);
|
|
9436
9436
|
}
|
|
9437
9437
|
|
|
9438
|
-
const unit = getUnit(
|
|
9438
|
+
const unit = getUnit(stops) || { blur: 'px', hue: 'deg' }[prop] || '%';
|
|
9439
9439
|
prop = { fopacity: 'opacity', hue: 'hue-rotate' }[prop] || prop;
|
|
9440
|
-
|
|
9440
|
+
stops = parseStops(stops);
|
|
9441
9441
|
|
|
9442
9442
|
return (css, percent) => {
|
|
9443
|
-
const value = getValue(
|
|
9443
|
+
const value = getValue(stops, percent);
|
|
9444
9444
|
css.filter += " " + prop + "(" + (value + unit) + ")";
|
|
9445
9445
|
};
|
|
9446
9446
|
}
|
|
9447
9447
|
|
|
9448
|
-
function cssPropFn(prop, el,
|
|
9449
|
-
if (
|
|
9450
|
-
|
|
9448
|
+
function cssPropFn(prop, el, stops) {
|
|
9449
|
+
if (stops.length === 1) {
|
|
9450
|
+
stops.unshift(getCssValue(el, prop, ''));
|
|
9451
9451
|
}
|
|
9452
9452
|
|
|
9453
|
-
|
|
9453
|
+
stops = parseStops(stops);
|
|
9454
9454
|
|
|
9455
9455
|
return (css, percent) => {
|
|
9456
|
-
css[prop] = getValue(
|
|
9456
|
+
css[prop] = getValue(stops, percent);
|
|
9457
9457
|
};
|
|
9458
9458
|
}
|
|
9459
9459
|
|
|
9460
|
-
function strokeFn(prop, el,
|
|
9461
|
-
if (
|
|
9462
|
-
|
|
9460
|
+
function strokeFn(prop, el, stops) {
|
|
9461
|
+
if (stops.length === 1) {
|
|
9462
|
+
stops.unshift(0);
|
|
9463
9463
|
}
|
|
9464
9464
|
|
|
9465
|
-
const unit = getUnit(
|
|
9465
|
+
const unit = getUnit(stops);
|
|
9466
9466
|
const length = getMaxPathLength(el);
|
|
9467
|
-
|
|
9468
|
-
|
|
9469
|
-
return unit === '%' ?
|
|
9467
|
+
stops = parseStops(stops.reverse(), (stop) => {
|
|
9468
|
+
stop = toFloat(stop);
|
|
9469
|
+
return unit === '%' ? stop * length / 100 : stop;
|
|
9470
9470
|
});
|
|
9471
9471
|
|
|
9472
|
-
if (!
|
|
9472
|
+
if (!stops.some((_ref) => {let [value] = _ref;return value;})) {
|
|
9473
9473
|
return noop;
|
|
9474
9474
|
}
|
|
9475
9475
|
|
|
9476
9476
|
css(el, 'strokeDasharray', length);
|
|
9477
9477
|
|
|
9478
9478
|
return (css, percent) => {
|
|
9479
|
-
css.strokeDashoffset = getValue(
|
|
9479
|
+
css.strokeDashoffset = getValue(stops, percent);
|
|
9480
9480
|
};
|
|
9481
9481
|
}
|
|
9482
9482
|
|
|
9483
|
-
function backgroundFn(prop, el,
|
|
9484
|
-
if (
|
|
9485
|
-
|
|
9483
|
+
function backgroundFn(prop, el, stops) {
|
|
9484
|
+
if (stops.length === 1) {
|
|
9485
|
+
stops.unshift(0);
|
|
9486
9486
|
}
|
|
9487
9487
|
|
|
9488
9488
|
prop = prop.substr(-1);
|
|
9489
9489
|
const attr = prop === 'y' ? 'height' : 'width';
|
|
9490
|
-
|
|
9490
|
+
stops = parseStops(stops, (stop) => toPx(stop, attr, el));
|
|
9491
9491
|
|
|
9492
9492
|
const bgPos = getCssValue(el, "background-position-" + prop, '');
|
|
9493
9493
|
|
|
9494
9494
|
return getCssValue(el, 'backgroundSize', '') === 'cover' ?
|
|
9495
|
-
backgroundCoverFn(prop, el,
|
|
9496
|
-
setBackgroundPosFn(prop,
|
|
9495
|
+
backgroundCoverFn(prop, el, stops, bgPos, attr) :
|
|
9496
|
+
setBackgroundPosFn(prop, stops, bgPos);
|
|
9497
9497
|
}
|
|
9498
9498
|
|
|
9499
|
-
function backgroundCoverFn(prop, el,
|
|
9499
|
+
function backgroundCoverFn(prop, el, stops, bgPos, attr) {
|
|
9500
9500
|
const dimImage = getBackgroundImageDimensions(el);
|
|
9501
9501
|
|
|
9502
9502
|
if (!dimImage.width) {
|
|
9503
9503
|
return noop;
|
|
9504
9504
|
}
|
|
9505
9505
|
|
|
9506
|
-
const values =
|
|
9506
|
+
const values = stops.map((_ref2) => {let [value] = _ref2;return value;});
|
|
9507
9507
|
const min = Math.min(...values);
|
|
9508
9508
|
const max = Math.max(...values);
|
|
9509
9509
|
const down = values.indexOf(min) < values.indexOf(max);
|
|
@@ -9531,7 +9531,7 @@
|
|
|
9531
9531
|
|
|
9532
9532
|
const dim = Dimensions.cover(dimImage, dimEl);
|
|
9533
9533
|
|
|
9534
|
-
const fn = setBackgroundPosFn(prop,
|
|
9534
|
+
const fn = setBackgroundPosFn(prop, stops, pos + "px");
|
|
9535
9535
|
return (css, percent) => {
|
|
9536
9536
|
fn(css, percent);
|
|
9537
9537
|
css.backgroundSize = dim.width + "px " + dim.height + "px";
|
|
@@ -9539,9 +9539,9 @@
|
|
|
9539
9539
|
};
|
|
9540
9540
|
}
|
|
9541
9541
|
|
|
9542
|
-
function setBackgroundPosFn(prop,
|
|
9542
|
+
function setBackgroundPosFn(prop, stops, pos) {
|
|
9543
9543
|
return function (css, percent) {
|
|
9544
|
-
css["background-position-" + prop] = "calc(" + pos + " + " + getValue(
|
|
9544
|
+
css["background-position-" + prop] = "calc(" + pos + " + " + getValue(stops, percent) + "px)";
|
|
9545
9545
|
};
|
|
9546
9546
|
}
|
|
9547
9547
|
|
|
@@ -9576,12 +9576,12 @@
|
|
|
9576
9576
|
|
|
9577
9577
|
}
|
|
9578
9578
|
|
|
9579
|
-
function
|
|
9579
|
+
function parseStops(stops, fn) {if (fn === void 0) {fn = toFloat;}
|
|
9580
9580
|
const result = [];
|
|
9581
|
-
const { length } =
|
|
9581
|
+
const { length } = stops;
|
|
9582
9582
|
let nullIndex = 0;
|
|
9583
9583
|
for (let i = 0; i < length; i++) {
|
|
9584
|
-
let [value, percent] = isString(
|
|
9584
|
+
let [value, percent] = isString(stops[i]) ? stops[i].trim().split(' ') : [stops[i]];
|
|
9585
9585
|
value = fn(value);
|
|
9586
9586
|
percent = percent ? toFloat(percent) / 100 : null;
|
|
9587
9587
|
|
|
@@ -9618,24 +9618,24 @@
|
|
|
9618
9618
|
return result;
|
|
9619
9619
|
}
|
|
9620
9620
|
|
|
9621
|
-
function
|
|
9622
|
-
const index = findIndex(
|
|
9621
|
+
function getStop(stops, percent) {
|
|
9622
|
+
const index = findIndex(stops.slice(1), (_ref3) => {let [, targetPercent] = _ref3;return percent <= targetPercent;}) + 1;
|
|
9623
9623
|
return [
|
|
9624
|
-
|
|
9625
|
-
|
|
9626
|
-
(percent -
|
|
9624
|
+
stops[index - 1][0],
|
|
9625
|
+
stops[index][0],
|
|
9626
|
+
(percent - stops[index - 1][1]) / (stops[index][1] - stops[index - 1][1])];
|
|
9627
9627
|
|
|
9628
9628
|
}
|
|
9629
9629
|
|
|
9630
|
-
function getValue(
|
|
9631
|
-
const [start, end, p] =
|
|
9630
|
+
function getValue(stops, percent) {
|
|
9631
|
+
const [start, end, p] = getStop(stops, percent);
|
|
9632
9632
|
return isNumber(start) ? start + Math.abs(start - end) * p * (start < end ? 1 : -1) : +end;
|
|
9633
9633
|
}
|
|
9634
9634
|
|
|
9635
9635
|
const unitRe = /^-?\d+(\S*)/;
|
|
9636
|
-
function getUnit(
|
|
9637
|
-
for (const
|
|
9638
|
-
const match =
|
|
9636
|
+
function getUnit(stops, defaultUnit) {
|
|
9637
|
+
for (const stop of stops) {
|
|
9638
|
+
const match = stop.match == null ? void 0 : stop.match(unitRe);
|
|
9639
9639
|
if (match) {
|
|
9640
9640
|
return match[1];
|
|
9641
9641
|
}
|