uikit 3.21.12-dev.fa1221b2e → 3.21.13-dev.a32f3f510
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 +10 -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 +6 -3
- 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 +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 +20 -10
- 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 +25 -12
- package/dist/js/uikit.min.js +1 -1
- package/package.json +1 -1
- package/src/js/components/filter.js +7 -3
- package/src/js/core/sticky.js +11 -6
- package/src/js/core/video.js +4 -2
- package/src/js/util/viewport.js +6 -0
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.
|
|
5
|
+
"version": "3.21.13-dev.a32f3f510",
|
|
6
6
|
"main": "dist/js/uikit.js",
|
|
7
7
|
"style": "dist/css/uikit.css",
|
|
8
8
|
"sideEffects": [
|
|
@@ -138,10 +138,14 @@ function isEqualState(stateA, stateB) {
|
|
|
138
138
|
}
|
|
139
139
|
|
|
140
140
|
function applyState(state, target, children) {
|
|
141
|
-
const selector = Object.values(state.filter).join('');
|
|
142
|
-
|
|
143
141
|
for (const el of children) {
|
|
144
|
-
css(
|
|
142
|
+
css(
|
|
143
|
+
el,
|
|
144
|
+
'display',
|
|
145
|
+
Object.values(state.filter).every((selector) => !selector || matches(el, selector))
|
|
146
|
+
? ''
|
|
147
|
+
: 'none',
|
|
148
|
+
);
|
|
145
149
|
}
|
|
146
150
|
|
|
147
151
|
const [sort, order] = state.sort;
|
package/src/js/core/sticky.js
CHANGED
|
@@ -154,6 +154,17 @@ export default {
|
|
|
154
154
|
return;
|
|
155
155
|
}
|
|
156
156
|
|
|
157
|
+
const dynamicViewport = getHeight(window);
|
|
158
|
+
const maxScrollHeight = Math.max(
|
|
159
|
+
0,
|
|
160
|
+
document.scrollingElement.scrollHeight - dynamicViewport,
|
|
161
|
+
);
|
|
162
|
+
|
|
163
|
+
if (!maxScrollHeight) {
|
|
164
|
+
this.inactive = true;
|
|
165
|
+
return;
|
|
166
|
+
}
|
|
167
|
+
|
|
157
168
|
const hide = this.isFixed && types.has('update');
|
|
158
169
|
if (hide) {
|
|
159
170
|
preventTransition(this.target);
|
|
@@ -170,11 +181,6 @@ export default {
|
|
|
170
181
|
}
|
|
171
182
|
|
|
172
183
|
const viewport = toPx('100vh', 'height');
|
|
173
|
-
const dynamicViewport = getHeight(window);
|
|
174
|
-
const maxScrollHeight = Math.max(
|
|
175
|
-
0,
|
|
176
|
-
document.scrollingElement.scrollHeight - viewport,
|
|
177
|
-
);
|
|
178
184
|
|
|
179
185
|
let position = this.position;
|
|
180
186
|
if (this.overflowFlip && height > viewport) {
|
|
@@ -210,7 +216,6 @@ export default {
|
|
|
210
216
|
);
|
|
211
217
|
|
|
212
218
|
sticky =
|
|
213
|
-
maxScrollHeight &&
|
|
214
219
|
!this.showOnUp &&
|
|
215
220
|
start + offset === topOffset &&
|
|
216
221
|
end ===
|
package/src/js/core/video.js
CHANGED
|
@@ -78,11 +78,13 @@ export default {
|
|
|
78
78
|
|
|
79
79
|
observe: [
|
|
80
80
|
intersection({
|
|
81
|
-
filter: ({ $el, autoplay }) => autoplay
|
|
81
|
+
filter: ({ $el, autoplay }) => autoplay !== 'hover' && isVideo($el),
|
|
82
82
|
handler([{ isIntersecting }]) {
|
|
83
83
|
if (!document.fullscreenElement) {
|
|
84
84
|
if (isIntersecting) {
|
|
85
|
-
|
|
85
|
+
if (this.autoplay) {
|
|
86
|
+
play(this.$el);
|
|
87
|
+
}
|
|
86
88
|
} else {
|
|
87
89
|
pause(this.$el);
|
|
88
90
|
}
|
package/src/js/util/viewport.js
CHANGED
|
@@ -88,8 +88,14 @@ export function scrollIntoView(element, { offset: offsetBy = 0 } = {}) {
|
|
|
88
88
|
dimensions(getCoveringElement(targetEl)).height;
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
+
if (css(element, 'scrollBehavior') !== 'auto') {
|
|
92
|
+
css(element, 'scrollBehavior', 'auto');
|
|
93
|
+
}
|
|
94
|
+
|
|
91
95
|
element.scrollTop = scroll + (top + diff) * percent;
|
|
92
96
|
|
|
97
|
+
css(element, 'scrollBehavior', '');
|
|
98
|
+
|
|
93
99
|
// scroll more if we have not reached our destination
|
|
94
100
|
// if element changes position during scroll try another step
|
|
95
101
|
if (percent === 1 && (prev === diff || !frames--)) {
|