uikit 3.19.5-dev.57ec46163 → 3.19.5-dev.66a60877b
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 +8 -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 +55 -55
- package/dist/js/components/lightbox-panel.min.js +1 -1
- package/dist/js/components/lightbox.js +55 -55
- 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 +64 -45
- package/dist/js/components/parallax.min.js +1 -1
- package/dist/js/components/slider-parallax.js +65 -46
- package/dist/js/components/slider-parallax.min.js +1 -1
- package/dist/js/components/slider.js +66 -48
- package/dist/js/components/slider.min.js +1 -1
- package/dist/js/components/slideshow-parallax.js +65 -46
- package/dist/js/components/slideshow-parallax.min.js +1 -1
- package/dist/js/components/slideshow.js +65 -46
- 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 +120 -81
- 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 +123 -84
- package/dist/js/uikit.min.js +1 -1
- package/package.json +1 -1
- package/src/js/api/boot.js +6 -7
- package/src/js/api/component.js +4 -4
- package/src/js/api/observer.js +17 -5
- package/src/js/components/slider-parallax.js +2 -2
- package/src/js/components/slider.js +1 -1
- package/src/js/core/drop.js +1 -2
- package/src/js/core/height-viewport.js +1 -1
- package/src/js/core/icon.js +2 -3
- package/src/js/core/img.js +1 -1
- package/src/js/core/inverse.js +22 -5
- package/src/js/mixin/slider.js +0 -3
- package/src/js/mixin/slideshow.js +3 -0
- package/src/js/util/filter.js +1 -11
- package/src/js/util/lang.js +1 -1
- package/src/js/util/selector.js +66 -38
- package/src/js/util/svg.js +1 -12
- package/tests/modal.html +2 -2
package/dist/js/uikit.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.19.5-dev.
|
|
1
|
+
/*! UIkit 3.19.5-dev.66a60877b | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */
|
|
2
2
|
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
return parseFloat(value) || 0;
|
|
89
89
|
}
|
|
90
90
|
function toNode(element) {
|
|
91
|
-
return toNodes(element)[0];
|
|
91
|
+
return element && toNodes(element)[0];
|
|
92
92
|
}
|
|
93
93
|
function toNodes(element) {
|
|
94
94
|
return isNode(element) ? [element] : Array.from(element || []).filter(isNode);
|
|
@@ -319,13 +319,6 @@
|
|
|
319
319
|
function matches(element, selector) {
|
|
320
320
|
return toNodes(element).some((element2) => element2.matches(selector));
|
|
321
321
|
}
|
|
322
|
-
function closest(element, selector) {
|
|
323
|
-
var _a;
|
|
324
|
-
return (_a = toNode(element)) == null ? void 0 : _a.closest(startsWith(selector, ">") ? selector.slice(1) : selector);
|
|
325
|
-
}
|
|
326
|
-
function within(element, selector) {
|
|
327
|
-
return isString(selector) ? !!closest(element, selector) : toNode(selector).contains(toNode(element));
|
|
328
|
-
}
|
|
329
322
|
function parents(element, selector) {
|
|
330
323
|
const elements = [];
|
|
331
324
|
while (element = parent(element)) {
|
|
@@ -367,55 +360,82 @@
|
|
|
367
360
|
function findAll(selector, context) {
|
|
368
361
|
return toNodes(_query(selector, toNode(context), "querySelectorAll"));
|
|
369
362
|
}
|
|
370
|
-
const contextSelectorRe = /(^|[^\\],)\s*[!>+~-]/;
|
|
371
|
-
const isContextSelector = memoize((selector) => selector.match(contextSelectorRe));
|
|
372
363
|
function getContext(selector, context = document) {
|
|
373
|
-
return isString(selector) &&
|
|
364
|
+
return isString(selector) && parseSelector(selector).isContextSelector || isDocument(context) ? context : context.ownerDocument;
|
|
374
365
|
}
|
|
375
|
-
const
|
|
376
|
-
const
|
|
366
|
+
const addStarRe = /([!>+~-])(?=\s+[!>+~-]|\s*$)/g;
|
|
367
|
+
const splitSelectorRe = /.*?[^\\](?![^(]*\))(?:,|$)/g;
|
|
368
|
+
const trailingCommaRe = /\s*,$/;
|
|
369
|
+
const parseSelector = memoize((selector) => {
|
|
370
|
+
var _a;
|
|
371
|
+
selector = selector.replace(addStarRe, "$1 *");
|
|
372
|
+
let isContextSelector = false;
|
|
373
|
+
const selectors = [];
|
|
374
|
+
for (let sel of (_a = selector.match(splitSelectorRe)) != null ? _a : []) {
|
|
375
|
+
sel = sel.replace(trailingCommaRe, "").trim();
|
|
376
|
+
if (sel[0] === ">") {
|
|
377
|
+
sel = `:scope ${sel}`;
|
|
378
|
+
}
|
|
379
|
+
isContextSelector || (isContextSelector = ["!", "+", "~", "-"].includes(sel[0]));
|
|
380
|
+
selectors.push(sel);
|
|
381
|
+
}
|
|
382
|
+
return {
|
|
383
|
+
selector: selectors.join(","),
|
|
384
|
+
selectors,
|
|
385
|
+
isContextSelector
|
|
386
|
+
};
|
|
387
|
+
});
|
|
377
388
|
function _query(selector, context = document, queryFn) {
|
|
378
389
|
if (!selector || !isString(selector)) {
|
|
379
390
|
return selector;
|
|
380
391
|
}
|
|
381
|
-
|
|
382
|
-
if (isContextSelector
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
392
|
+
const parsed = parseSelector(selector);
|
|
393
|
+
if (!parsed.isContextSelector) {
|
|
394
|
+
return _doQuery(context, queryFn, parsed.selector);
|
|
395
|
+
}
|
|
396
|
+
selector = "";
|
|
397
|
+
const isSingle = parsed.selectors.length === 1;
|
|
398
|
+
for (let sel of parsed.selectors) {
|
|
399
|
+
let ctx = context;
|
|
400
|
+
if (sel[0] === "!") {
|
|
401
|
+
const selectors = sel.substr(1).trim().split(" ");
|
|
402
|
+
ctx = context.parentElement.closest(selectors[0]);
|
|
403
|
+
sel = selectors.slice(1).join(" ").trim();
|
|
404
|
+
if (!sel.length && isSingle) {
|
|
405
|
+
return ctx;
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
if (sel[0] === "-") {
|
|
409
|
+
const selectors = sel.substr(1).trim().split(" ");
|
|
410
|
+
const prev = (ctx || context).previousElementSibling;
|
|
411
|
+
ctx = matches(prev, sel.substr(1)) ? prev : null;
|
|
412
|
+
sel = selectors.slice(1).join(" ");
|
|
413
|
+
if (!sel.length && isSingle) {
|
|
414
|
+
return ctx;
|
|
415
|
+
}
|
|
416
|
+
} else if (sel[0] === "~" || sel[0] === "+" && isSingle) {
|
|
417
|
+
return _doQuery(
|
|
418
|
+
ctx.parentElement,
|
|
419
|
+
queryFn,
|
|
420
|
+
`:scope :nth-child(${index(ctx) + 1}) ${sel}`
|
|
421
|
+
);
|
|
404
422
|
}
|
|
405
|
-
if (
|
|
406
|
-
|
|
423
|
+
if (ctx) {
|
|
424
|
+
selector += `${selector ? "," : ""}${domPath(ctx)} ${sel}`;
|
|
407
425
|
}
|
|
408
426
|
}
|
|
427
|
+
if (!isDocument(context)) {
|
|
428
|
+
context = context.ownerDocument;
|
|
429
|
+
}
|
|
430
|
+
return _doQuery(context, queryFn, selector);
|
|
431
|
+
}
|
|
432
|
+
function _doQuery(context, queryFn, selector) {
|
|
409
433
|
try {
|
|
410
434
|
return context[queryFn](selector);
|
|
411
435
|
} catch (e) {
|
|
412
436
|
return null;
|
|
413
437
|
}
|
|
414
438
|
}
|
|
415
|
-
const selectorRe = /.*?[^\\](?![^(]*\))(?:,|$)/g;
|
|
416
|
-
const splitSelector = memoize(
|
|
417
|
-
(selector) => selector.match(selectorRe).map((selector2) => selector2.replace(/,$/, "").trim())
|
|
418
|
-
);
|
|
419
439
|
function domPath(element) {
|
|
420
440
|
const names = [];
|
|
421
441
|
while (element.parentNode) {
|
|
@@ -1540,7 +1560,6 @@
|
|
|
1540
1560
|
camelize: camelize,
|
|
1541
1561
|
children: children,
|
|
1542
1562
|
clamp: clamp,
|
|
1543
|
-
closest: closest,
|
|
1544
1563
|
createEvent: createEvent,
|
|
1545
1564
|
css: css,
|
|
1546
1565
|
data: data,
|
|
@@ -1661,7 +1680,6 @@
|
|
|
1661
1680
|
uniqueBy: uniqueBy,
|
|
1662
1681
|
unwrap: unwrap,
|
|
1663
1682
|
width: width,
|
|
1664
|
-
within: within,
|
|
1665
1683
|
wrapAll: wrapAll,
|
|
1666
1684
|
wrapInner: wrapInner
|
|
1667
1685
|
});
|
|
@@ -3362,18 +3380,30 @@
|
|
|
3362
3380
|
}
|
|
3363
3381
|
const targets = hasOwn(instance, key) ? instance[key] : target;
|
|
3364
3382
|
const observer = observe(targets, handler, options, args);
|
|
3365
|
-
if (isFunction(target) && isArray(instance[key])
|
|
3366
|
-
registerWatch(
|
|
3383
|
+
if (isFunction(target) && isArray(instance[key])) {
|
|
3384
|
+
registerWatch(
|
|
3385
|
+
instance,
|
|
3386
|
+
{ handler: updateTargets(observer, options), immediate: false },
|
|
3387
|
+
key
|
|
3388
|
+
);
|
|
3367
3389
|
}
|
|
3368
3390
|
registerObserver(instance, observer);
|
|
3369
3391
|
}
|
|
3370
|
-
function updateTargets(observer) {
|
|
3392
|
+
function updateTargets(observer, options) {
|
|
3371
3393
|
return (targets, prev) => {
|
|
3372
3394
|
for (const target of prev) {
|
|
3373
|
-
!includes(targets, target)
|
|
3395
|
+
if (!includes(targets, target)) {
|
|
3396
|
+
if (observer.unobserve) {
|
|
3397
|
+
observer.unobserve(target);
|
|
3398
|
+
} else if (observer.observe) {
|
|
3399
|
+
observer.disconnect();
|
|
3400
|
+
}
|
|
3401
|
+
}
|
|
3374
3402
|
}
|
|
3375
3403
|
for (const target of targets) {
|
|
3376
|
-
!includes(prev, target)
|
|
3404
|
+
if (!includes(prev, target) || !observer.unobserve) {
|
|
3405
|
+
observer.observe(target, options);
|
|
3406
|
+
}
|
|
3377
3407
|
}
|
|
3378
3408
|
};
|
|
3379
3409
|
}
|
|
@@ -3533,26 +3563,26 @@
|
|
|
3533
3563
|
};
|
|
3534
3564
|
App.util = util;
|
|
3535
3565
|
App.options = {};
|
|
3536
|
-
App.version = "3.19.5-dev.
|
|
3566
|
+
App.version = "3.19.5-dev.66a60877b";
|
|
3537
3567
|
|
|
3538
3568
|
const PREFIX = "uk-";
|
|
3539
3569
|
const DATA = "__uikit__";
|
|
3540
3570
|
const components$2 = {};
|
|
3541
3571
|
function component(name, options) {
|
|
3542
|
-
var _a;
|
|
3572
|
+
var _a, _b;
|
|
3543
3573
|
const id = PREFIX + hyphenate(name);
|
|
3544
3574
|
if (!options) {
|
|
3545
|
-
if (
|
|
3575
|
+
if (!components$2[id].options) {
|
|
3546
3576
|
components$2[id] = App.extend(components$2[id]);
|
|
3547
3577
|
}
|
|
3548
3578
|
return components$2[id];
|
|
3549
3579
|
}
|
|
3550
3580
|
name = camelize(name);
|
|
3551
3581
|
App[name] = (element, data) => createComponent(name, element, data);
|
|
3552
|
-
const opt =
|
|
3582
|
+
const opt = (_a = options.options) != null ? _a : { ...options };
|
|
3553
3583
|
opt.id = id;
|
|
3554
3584
|
opt.name = name;
|
|
3555
|
-
(
|
|
3585
|
+
(_b = opt.install) == null ? void 0 : _b.call(opt, App, opt, name);
|
|
3556
3586
|
if (App._initialized && !opt.functional) {
|
|
3557
3587
|
requestAnimationFrame(() => createComponent(name, `[${id}],[data-${id}]`));
|
|
3558
3588
|
}
|
|
@@ -3560,7 +3590,7 @@
|
|
|
3560
3590
|
}
|
|
3561
3591
|
function createComponent(name, element, data, ...args) {
|
|
3562
3592
|
const Component = component(name);
|
|
3563
|
-
return Component.options.functional ? new Component({ data: isPlainObject(element) ? element : [element, data, ...args] }) : element ?
|
|
3593
|
+
return Component.options.functional ? new Component({ data: isPlainObject(element) ? element : [element, data, ...args] }) : element ? findAll(element).map(init)[0] : init();
|
|
3564
3594
|
function init(element2) {
|
|
3565
3595
|
const instance = getComponent(element2, name);
|
|
3566
3596
|
if (instance) {
|
|
@@ -3922,7 +3952,6 @@
|
|
|
3922
3952
|
}
|
|
3923
3953
|
}
|
|
3924
3954
|
},
|
|
3925
|
-
observe: resize(),
|
|
3926
3955
|
events: {
|
|
3927
3956
|
itemshow({ target }) {
|
|
3928
3957
|
addClass(target, this.clsEnter, this.clsSlideActive);
|
|
@@ -4051,6 +4080,7 @@
|
|
|
4051
4080
|
return { animation: this.animation };
|
|
4052
4081
|
}
|
|
4053
4082
|
},
|
|
4083
|
+
observe: resize(),
|
|
4054
4084
|
events: {
|
|
4055
4085
|
beforeitemshow({ target }) {
|
|
4056
4086
|
addClass(target, this.clsActive);
|
|
@@ -4533,18 +4563,10 @@
|
|
|
4533
4563
|
}
|
|
4534
4564
|
|
|
4535
4565
|
function getMaxPathLength(el) {
|
|
4536
|
-
return Math.ceil(
|
|
4537
|
-
|
|
4538
|
-
|
|
4539
|
-
|
|
4540
|
-
try {
|
|
4541
|
-
return stroke.getTotalLength();
|
|
4542
|
-
} catch (e) {
|
|
4543
|
-
return 0;
|
|
4544
|
-
}
|
|
4545
|
-
})
|
|
4546
|
-
)
|
|
4547
|
-
);
|
|
4566
|
+
return Math.ceil(Math.max(0, ...$$("[stroke]", el).map((stroke) => {
|
|
4567
|
+
var _a;
|
|
4568
|
+
return (_a = stroke.getTotalLength) == null ? void 0 : _a.call(stroke);
|
|
4569
|
+
})));
|
|
4548
4570
|
}
|
|
4549
4571
|
|
|
4550
4572
|
const props = {
|
|
@@ -5251,7 +5273,7 @@
|
|
|
5251
5273
|
toggleClass(this.$el, this.clsContainer, !$(`.${this.clsContainer}`, this.$el));
|
|
5252
5274
|
},
|
|
5253
5275
|
observe: resize({
|
|
5254
|
-
target: ({ slides }) => slides
|
|
5276
|
+
target: ({ slides, $el }) => [$el, ...slides]
|
|
5255
5277
|
}),
|
|
5256
5278
|
update: {
|
|
5257
5279
|
write() {
|
|
@@ -5439,7 +5461,7 @@
|
|
|
5439
5461
|
var sliderParallax = {
|
|
5440
5462
|
mixins: [Parallax],
|
|
5441
5463
|
beforeConnect() {
|
|
5442
|
-
this.item =
|
|
5464
|
+
this.item = this.$el.closest(`.${this.$options.id.replace("parallax", "items")} > *`);
|
|
5443
5465
|
},
|
|
5444
5466
|
disconnected() {
|
|
5445
5467
|
this.item = null;
|
|
@@ -6376,14 +6398,14 @@
|
|
|
6376
6398
|
if (name) {
|
|
6377
6399
|
if (hasAttr(target, attributeName)) {
|
|
6378
6400
|
createComponent(name, target);
|
|
6379
|
-
|
|
6401
|
+
} else {
|
|
6402
|
+
(_a = getComponent(target, name)) == null ? void 0 : _a.$destroy();
|
|
6380
6403
|
}
|
|
6381
|
-
(_a = getComponent(target, name)) == null ? void 0 : _a.$destroy();
|
|
6382
6404
|
}
|
|
6383
6405
|
}
|
|
6384
6406
|
function connect(node) {
|
|
6385
6407
|
const components2 = getComponents(node);
|
|
6386
|
-
for (const name in
|
|
6408
|
+
for (const name in components2) {
|
|
6387
6409
|
callConnected(components2[name]);
|
|
6388
6410
|
}
|
|
6389
6411
|
for (const attributeName of node.getAttributeNames()) {
|
|
@@ -6393,7 +6415,7 @@
|
|
|
6393
6415
|
}
|
|
6394
6416
|
function disconnect(node) {
|
|
6395
6417
|
const components2 = getComponents(node);
|
|
6396
|
-
for (const name in
|
|
6418
|
+
for (const name in components2) {
|
|
6397
6419
|
callDisconnected(components2[name]);
|
|
6398
6420
|
}
|
|
6399
6421
|
}
|
|
@@ -6402,7 +6424,7 @@
|
|
|
6402
6424
|
attribute = attribute.slice(5);
|
|
6403
6425
|
}
|
|
6404
6426
|
const cmp = components$2[attribute];
|
|
6405
|
-
return cmp && (
|
|
6427
|
+
return cmp && (cmp.options || cmp).name;
|
|
6406
6428
|
}
|
|
6407
6429
|
|
|
6408
6430
|
globalApi(App);
|
|
@@ -7145,7 +7167,8 @@
|
|
|
7145
7167
|
document,
|
|
7146
7168
|
`${pointerUp$1} ${pointerCancel} scroll`,
|
|
7147
7169
|
({ defaultPrevented, type, target: newTarget }) => {
|
|
7148
|
-
|
|
7170
|
+
var _a;
|
|
7171
|
+
if (!defaultPrevented && type === pointerUp$1 && target === newTarget && !((_a = drop.targetEl) == null ? void 0 : _a.contains(target))) {
|
|
7149
7172
|
drop.hide(false);
|
|
7150
7173
|
}
|
|
7151
7174
|
},
|
|
@@ -7817,7 +7840,7 @@
|
|
|
7817
7840
|
const top = offsetPosition(offsetTopEl)[0] - offsetPosition(scrollElement)[0];
|
|
7818
7841
|
minHeight += top > 0 && top < viewportHeight / 2 ? ` - ${top}px` : "";
|
|
7819
7842
|
} else {
|
|
7820
|
-
minHeight += ` - ${css(scrollElement, "
|
|
7843
|
+
minHeight += ` - ${boxModelAdjust(scrollElement, "height", css(scrollElement, "boxSizing"))}px`;
|
|
7821
7844
|
}
|
|
7822
7845
|
}
|
|
7823
7846
|
if (this.offsetBottom === true) {
|
|
@@ -8011,7 +8034,7 @@
|
|
|
8011
8034
|
i18n: { toggle: "Open Search", submit: "Submit Search" },
|
|
8012
8035
|
beforeConnect() {
|
|
8013
8036
|
const isToggle = hasClass(this.$el, "uk-search-toggle") || hasClass(this.$el, "uk-navbar-toggle");
|
|
8014
|
-
this.icon = isToggle ? "search-toggle-icon" : hasClass(this.$el, "uk-search-icon") &&
|
|
8037
|
+
this.icon = isToggle ? "search-toggle-icon" : hasClass(this.$el, "uk-search-icon") && this.$el.closest(".uk-search-large") ? "search-large" : this.$el.closest(".uk-search-navbar") ? "search-navbar" : this.$props.icon;
|
|
8015
8038
|
if (hasAttr(this.$el, "aria-label")) {
|
|
8016
8039
|
return;
|
|
8017
8040
|
}
|
|
@@ -8155,13 +8178,13 @@
|
|
|
8155
8178
|
delete this.img;
|
|
8156
8179
|
},
|
|
8157
8180
|
observe: intersection({
|
|
8158
|
-
target: ({ $el, $props }) => [$el, ...queryAll($props.target, $el)],
|
|
8159
8181
|
handler(entries, observer) {
|
|
8160
8182
|
this.load();
|
|
8161
8183
|
observer.disconnect();
|
|
8162
8184
|
},
|
|
8163
8185
|
options: ({ margin }) => ({ rootMargin: margin }),
|
|
8164
|
-
filter: ({ loading }) => loading === "lazy"
|
|
8186
|
+
filter: ({ loading }) => loading === "lazy",
|
|
8187
|
+
target: ({ $el, $props }) => $props.target ? [$el, ...queryAll($props.target, $el)] : $el
|
|
8165
8188
|
}),
|
|
8166
8189
|
methods: {
|
|
8167
8190
|
load() {
|
|
@@ -8251,9 +8274,17 @@
|
|
|
8251
8274
|
selActive: false
|
|
8252
8275
|
},
|
|
8253
8276
|
computed: {
|
|
8254
|
-
target: ({ target }, $el) => target ? $$(target, $el) :
|
|
8277
|
+
target: ({ target }, $el) => target ? $$(target, $el) : $el
|
|
8255
8278
|
},
|
|
8256
8279
|
observe: [
|
|
8280
|
+
intersection({
|
|
8281
|
+
handler(entries) {
|
|
8282
|
+
this.isIntersecting = entries.some(({ isIntersecting }) => isIntersecting);
|
|
8283
|
+
this.$emit();
|
|
8284
|
+
},
|
|
8285
|
+
target: ({ target }) => target,
|
|
8286
|
+
args: { intersecting: false }
|
|
8287
|
+
}),
|
|
8257
8288
|
mutation({
|
|
8258
8289
|
target: ({ target }) => target,
|
|
8259
8290
|
options: { attributes: true, attributeFilter: ["class"], attributeOldValue: true }
|
|
@@ -8261,7 +8292,10 @@
|
|
|
8261
8292
|
{
|
|
8262
8293
|
target: ({ target }) => target,
|
|
8263
8294
|
observe: (target, handler) => {
|
|
8264
|
-
const observer = observeResize(
|
|
8295
|
+
const observer = observeResize(
|
|
8296
|
+
[...toNodes(target), document.documentElement],
|
|
8297
|
+
handler
|
|
8298
|
+
);
|
|
8265
8299
|
const listener = [
|
|
8266
8300
|
on(document, "scroll itemshown itemhidden", handler, {
|
|
8267
8301
|
passive: true,
|
|
@@ -8277,6 +8311,8 @@
|
|
|
8277
8311
|
})
|
|
8278
8312
|
];
|
|
8279
8313
|
return {
|
|
8314
|
+
observe: observer.observe.bind(observer),
|
|
8315
|
+
unobserve: observer.unobserve.bind(observer),
|
|
8280
8316
|
disconnect() {
|
|
8281
8317
|
observer.disconnect();
|
|
8282
8318
|
listener.map((off) => off());
|
|
@@ -8290,7 +8326,10 @@
|
|
|
8290
8326
|
],
|
|
8291
8327
|
update: {
|
|
8292
8328
|
read() {
|
|
8293
|
-
|
|
8329
|
+
if (!this.isIntersecting) {
|
|
8330
|
+
return false;
|
|
8331
|
+
}
|
|
8332
|
+
for (const target of toNodes(this.target)) {
|
|
8294
8333
|
replaceClass(
|
|
8295
8334
|
target,
|
|
8296
8335
|
"uk-light,uk-dark",
|