uikit 3.21.6-dev.ae91accad → 3.21.6-dev.de7455236
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 +7 -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 +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 +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 +5 -2
- package/dist/js/components/parallax.min.js +1 -1
- package/dist/js/components/slider-parallax.js +5 -2
- 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 +5 -2
- 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 +18 -8
- 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 +18 -8
- package/dist/js/uikit.min.js +1 -1
- package/package.json +1 -1
- package/src/js/core/scrollspy-nav.js +1 -1
- package/src/js/core/sticky.js +13 -4
- package/src/js/util/svg.js +1 -1
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "uikit",
|
|
3
3
|
"title": "UIkit",
|
|
4
4
|
"description": "UIkit is a lightweight and modular front-end framework for developing fast and powerful web interfaces.",
|
|
5
|
-
"version": "3.21.6-dev.
|
|
5
|
+
"version": "3.21.6-dev.de7455236",
|
|
6
6
|
"main": "dist/js/uikit.js",
|
|
7
7
|
"style": "dist/css/uikit.css",
|
|
8
8
|
"sideEffects": [
|
package/src/js/core/sticky.js
CHANGED
|
@@ -100,10 +100,11 @@ export default {
|
|
|
100
100
|
viewport(),
|
|
101
101
|
scroll({ target: () => document.scrollingElement }),
|
|
102
102
|
resize({
|
|
103
|
-
target: ({ $el }) => [$el,
|
|
103
|
+
target: ({ $el }) => [$el, getVisibleParent($el), document.scrollingElement],
|
|
104
104
|
handler(entries) {
|
|
105
105
|
this.$emit(
|
|
106
|
-
this._data.resized &&
|
|
106
|
+
this._data.resized &&
|
|
107
|
+
entries.some(({ target }) => target === getVisibleParent(this.$el))
|
|
107
108
|
? 'update'
|
|
108
109
|
: 'resize',
|
|
109
110
|
);
|
|
@@ -214,7 +215,7 @@ export default {
|
|
|
214
215
|
maxScrollHeight,
|
|
215
216
|
parseProp(true, this.$el, 0, true) - elHeight - offset + overflow,
|
|
216
217
|
) &&
|
|
217
|
-
css(
|
|
218
|
+
css(getVisibleParent(this.$el), 'overflowY') === 'visible';
|
|
218
219
|
|
|
219
220
|
return {
|
|
220
221
|
start,
|
|
@@ -456,7 +457,7 @@ function parseProp(value, el, propOffset, padding) {
|
|
|
456
457
|
if (isNumeric(value) || (isString(value) && value.match(/^-?\d/))) {
|
|
457
458
|
return propOffset + toPx(value, 'height', el, true);
|
|
458
459
|
} else {
|
|
459
|
-
const refElement = value === true ?
|
|
460
|
+
const refElement = value === true ? getVisibleParent(el) : query(value, el);
|
|
460
461
|
return (
|
|
461
462
|
getOffset(refElement).bottom -
|
|
462
463
|
(padding && refElement?.contains(el) ? toFloat(css(refElement, 'paddingBottom')) : 0)
|
|
@@ -484,3 +485,11 @@ function preventTransition(element) {
|
|
|
484
485
|
requestAnimationFrame(() => removeClass(element, clsTransitionDisable));
|
|
485
486
|
}
|
|
486
487
|
}
|
|
488
|
+
|
|
489
|
+
function getVisibleParent(element) {
|
|
490
|
+
while ((element = parent(element))) {
|
|
491
|
+
if (isVisible(element)) {
|
|
492
|
+
return element;
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
}
|
package/src/js/util/svg.js
CHANGED
|
@@ -4,7 +4,7 @@ import { isVisible } from './filter.js';
|
|
|
4
4
|
export function getMaxPathLength(el) {
|
|
5
5
|
return isVisible(el)
|
|
6
6
|
? Math.ceil(
|
|
7
|
-
Math.max(0, ...$$('[stroke]', el).map((stroke) => stroke?.
|
|
7
|
+
Math.max(0, ...$$('[stroke]', el).map((stroke) => stroke.getTotalLength?.() || 0)),
|
|
8
8
|
)
|
|
9
9
|
: 0;
|
|
10
10
|
}
|