uikit 3.12.3-dev.6377276f3 → 3.12.3-dev.8ce29ae1a

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.
Files changed (64) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/dist/css/uikit-core-rtl.css +1 -1
  3. package/dist/css/uikit-core-rtl.min.css +1 -1
  4. package/dist/css/uikit-core.css +1 -1
  5. package/dist/css/uikit-core.min.css +1 -1
  6. package/dist/css/uikit-rtl.css +1 -1
  7. package/dist/css/uikit-rtl.min.css +1 -1
  8. package/dist/css/uikit.css +1 -1
  9. package/dist/css/uikit.min.css +1 -1
  10. package/dist/js/components/countdown.js +1 -1
  11. package/dist/js/components/countdown.min.js +1 -1
  12. package/dist/js/components/filter.js +1 -1
  13. package/dist/js/components/filter.min.js +1 -1
  14. package/dist/js/components/lightbox-panel.js +13 -2
  15. package/dist/js/components/lightbox-panel.min.js +1 -1
  16. package/dist/js/components/lightbox.js +13 -2
  17. package/dist/js/components/lightbox.min.js +1 -1
  18. package/dist/js/components/notification.js +1 -1
  19. package/dist/js/components/notification.min.js +1 -1
  20. package/dist/js/components/parallax.js +13 -2
  21. package/dist/js/components/parallax.min.js +1 -1
  22. package/dist/js/components/slider-parallax.js +9 -7
  23. package/dist/js/components/slider-parallax.min.js +1 -1
  24. package/dist/js/components/slider.js +13 -2
  25. package/dist/js/components/slider.min.js +1 -1
  26. package/dist/js/components/slideshow-parallax.js +9 -7
  27. package/dist/js/components/slideshow-parallax.min.js +1 -1
  28. package/dist/js/components/slideshow.js +13 -2
  29. package/dist/js/components/slideshow.min.js +1 -1
  30. package/dist/js/components/sortable.js +1 -1
  31. package/dist/js/components/sortable.min.js +1 -1
  32. package/dist/js/components/tooltip.js +12 -20
  33. package/dist/js/components/tooltip.min.js +1 -1
  34. package/dist/js/components/upload.js +1 -1
  35. package/dist/js/components/upload.min.js +1 -1
  36. package/dist/js/uikit-core.js +178 -146
  37. package/dist/js/uikit-core.min.js +1 -1
  38. package/dist/js/uikit-icons.js +1 -1
  39. package/dist/js/uikit-icons.min.js +1 -1
  40. package/dist/js/uikit.js +188 -154
  41. package/dist/js/uikit.min.js +1 -1
  42. package/package.json +1 -1
  43. package/src/js/api/hooks.js +3 -3
  44. package/src/js/api/state.js +25 -15
  45. package/src/js/components/parallax.js +2 -1
  46. package/src/js/components/slider-parallax.js +6 -4
  47. package/src/js/core/core.js +2 -17
  48. package/src/js/core/cover.js +3 -6
  49. package/src/js/core/drop.js +5 -10
  50. package/src/js/core/gif.js +5 -3
  51. package/src/js/core/height-match.js +21 -1
  52. package/src/js/core/height-viewport.js +1 -6
  53. package/src/js/core/img.js +1 -2
  54. package/src/js/core/leader.js +7 -13
  55. package/src/js/core/margin.js +18 -1
  56. package/src/js/core/overflow-auto.js +8 -7
  57. package/src/js/core/sticky.js +6 -1
  58. package/src/js/core/svg.js +16 -14
  59. package/src/js/core/video.js +2 -8
  60. package/src/js/mixin/position.js +10 -18
  61. package/src/js/mixin/resize.js +13 -0
  62. package/src/js/mixin/slider.js +2 -1
  63. package/src/js/util/class.js +1 -6
  64. package/src/js/util/observer.js +57 -20
package/dist/js/uikit.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! UIkit 3.12.3-dev.6377276f3 | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */
1
+ /*! UIkit 3.12.3-dev.8ce29ae1a | 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() :
@@ -850,12 +850,7 @@
850
850
 
851
851
  function hasClass(element, cls) {
852
852
  [cls] = getClasses(cls);
853
- for (const node of toNodes(element)) {
854
- if (cls && node.classList.contains(cls)) {
855
- return true;
856
- }
857
- }
858
- return false;
853
+ return !!cls && toNodes(element).some((node) => node.classList.contains(cls));
859
854
  }
860
855
 
861
856
  function toggleClass(element, cls, force) {
@@ -1467,34 +1462,69 @@
1467
1462
  return { x: x1 + ua * (x2 - x1), y: y1 + ua * (y2 - y1) };
1468
1463
  }
1469
1464
 
1470
- // Old chromium based browsers (UC Browser) did not implement `isIntersecting`
1471
- const hasIntersectionObserver =
1472
- window.IntersectionObserver && 'isIntersecting' in IntersectionObserverEntry.prototype;
1473
1465
  function observeIntersection(targets, cb, options, intersecting) {if (intersecting === void 0) {intersecting = true;}
1474
- if (!hasIntersectionObserver) {
1475
- return;
1476
- }
1477
-
1478
- const observer = new IntersectionObserver((entries, observer) => {
1479
- if (!intersecting || entries.some((entry) => entry.isIntersecting)) {
1466
+ return observe(
1467
+ IntersectionObserver,
1468
+ targets,
1469
+ intersecting ?
1470
+ (entries, observer) => {
1471
+ if (entries.some((entry) => entry.isIntersecting)) {
1480
1472
  cb(entries, observer);
1481
1473
  }
1482
- }, options);
1483
- for (const el of toNodes(targets)) {
1484
- observer.observe(el);
1485
- }
1486
- return observer;
1474
+ } :
1475
+ cb,
1476
+ options);
1477
+
1487
1478
  }
1488
1479
 
1489
1480
  const hasResizeObserver = window.ResizeObserver;
1490
1481
  function observeResize(targets, cb, options) {if (options === void 0) {options = { box: 'border-box' };}
1491
- if (!hasResizeObserver) {
1482
+ if (hasResizeObserver) {
1483
+ return observe(ResizeObserver, targets, cb, options);
1484
+ }
1485
+
1486
+ // Fallback Safari < 13.1
1487
+ initResizeListener();
1488
+ listeners.add(cb);
1489
+
1490
+ return {
1491
+ disconnect() {
1492
+ listeners.delete(cb);
1493
+ } };
1494
+
1495
+ }
1496
+
1497
+ let listeners;
1498
+ function initResizeListener() {
1499
+ if (listeners) {
1492
1500
  return;
1493
1501
  }
1494
1502
 
1495
- const observer = new ResizeObserver((entries, observer) => {
1496
- cb(entries, observer);
1497
- });
1503
+ listeners = new Set();
1504
+
1505
+ // throttle 'resize'
1506
+ let pendingResize;
1507
+ const handleResize = () => {
1508
+ if (pendingResize) {
1509
+ return;
1510
+ }
1511
+ pendingResize = true;
1512
+ fastdom.read(() => pendingResize = false);
1513
+ for (const listener of listeners) {
1514
+ listener();
1515
+ }
1516
+ };
1517
+
1518
+ on(window, 'load resize', handleResize);
1519
+ on(document, 'loadedmetadata load', handleResize, true);
1520
+ }
1521
+
1522
+ function observeMutation(targets, cb, options) {
1523
+ return observe(MutationObserver, targets, cb, options);
1524
+ }
1525
+
1526
+ function observe(Observer, targets, cb, options) {
1527
+ const observer = new Observer(cb);
1498
1528
  for (const el of toNodes(targets)) {
1499
1529
  observer.observe(el, options);
1500
1530
  }
@@ -2179,9 +2209,9 @@
2179
2209
  memoize: memoize,
2180
2210
  Deferred: Deferred,
2181
2211
  MouseTracker: MouseTracker,
2182
- hasIntersectionObserver: hasIntersectionObserver,
2183
2212
  observeIntersection: observeIntersection,
2184
2213
  observeResize: observeResize,
2214
+ observeMutation: observeMutation,
2185
2215
  mergeOptions: mergeOptions,
2186
2216
  parseOptions: parseOptions,
2187
2217
  play: play,
@@ -2289,7 +2319,7 @@
2289
2319
  }
2290
2320
 
2291
2321
  this._data = {};
2292
- this._computeds = {};
2322
+ this._computed = {};
2293
2323
 
2294
2324
  this._initProps();
2295
2325
 
@@ -2383,8 +2413,8 @@
2383
2413
  const {
2384
2414
  $options: { computed } } =
2385
2415
  this;
2386
- const values = { ...this._computeds };
2387
- this._computeds = {};
2416
+ const values = { ...this._computed };
2417
+ this._computed = {};
2388
2418
 
2389
2419
  for (const key in computed) {
2390
2420
  const { watch, immediate } = computed[key];
@@ -2442,7 +2472,7 @@
2442
2472
  UIkit.prototype._initComputeds = function () {
2443
2473
  const { computed } = this.$options;
2444
2474
 
2445
- this._computeds = {};
2475
+ this._computed = {};
2446
2476
 
2447
2477
  if (computed) {
2448
2478
  for (const key in computed) {
@@ -2481,11 +2511,9 @@
2481
2511
  }
2482
2512
  }
2483
2513
  }
2484
- for (const { events = [] } of this.$options.update || []) {
2485
- if (includes(events, 'scroll')) {
2486
- registerScrollListener(this._uid, () => this.$emit('scroll'));
2487
- break;
2488
- }
2514
+
2515
+ if (hasUpdateOfType(this.$options.update, 'scroll')) {
2516
+ registerScrollListener(this._uid, () => this.$emit('scroll'));
2489
2517
  }
2490
2518
  };
2491
2519
 
@@ -2496,7 +2524,11 @@
2496
2524
  };
2497
2525
 
2498
2526
  UIkit.prototype._initObservers = function () {
2499
- this._observers = [initChildListObserver(this), initPropsObserver(this)];
2527
+ this._observers = [initPropsObserver(this)];
2528
+
2529
+ if (this.$options.computed) {
2530
+ this.registerObserver(initChildListObserver(this));
2531
+ }
2500
2532
  };
2501
2533
 
2502
2534
  UIkit.prototype.registerObserver = function (observer) {
@@ -2550,22 +2582,22 @@
2550
2582
  enumerable: true,
2551
2583
 
2552
2584
  get() {
2553
- const { _computeds, $props, $el } = component;
2585
+ const { _computed, $props, $el } = component;
2554
2586
 
2555
- if (!hasOwn(_computeds, key)) {
2556
- _computeds[key] = (cb.get || cb).call(component, $props, $el);
2587
+ if (!hasOwn(_computed, key)) {
2588
+ _computed[key] = (cb.get || cb).call(component, $props, $el);
2557
2589
  }
2558
2590
 
2559
- return _computeds[key];
2591
+ return _computed[key];
2560
2592
  },
2561
2593
 
2562
2594
  set(value) {
2563
- const { _computeds } = component;
2595
+ const { _computed } = component;
2564
2596
 
2565
- _computeds[key] = cb.set ? cb.set.call(component, value) : value;
2597
+ _computed[key] = cb.set ? cb.set.call(component, value) : value;
2566
2598
 
2567
- if (isUndefined(_computeds[key])) {
2568
- delete _computeds[key];
2599
+ if (isUndefined(_computed[key])) {
2600
+ delete _computed[key];
2569
2601
  }
2570
2602
  } });
2571
2603
 
@@ -2693,6 +2725,14 @@
2693
2725
  return observer;
2694
2726
  }
2695
2727
 
2728
+ function hasUpdateOfType(updates, type) {if (updates === void 0) {updates = [];}
2729
+ for (const { events = [] } of updates) {
2730
+ if (includes(events, type)) {
2731
+ return true;
2732
+ }
2733
+ }
2734
+ }
2735
+
2696
2736
  const scrollListeners = new Map();
2697
2737
  let unbindScrollListener;
2698
2738
  function registerScrollListener(id, listener) {
@@ -2887,7 +2927,7 @@
2887
2927
  UIkit.data = '__uikit__';
2888
2928
  UIkit.prefix = 'uk-';
2889
2929
  UIkit.options = {};
2890
- UIkit.version = '3.12.3-dev.6377276f3';
2930
+ UIkit.version = '3.12.3-dev.8ce29ae1a';
2891
2931
 
2892
2932
  globalAPI(UIkit);
2893
2933
  hooksAPI(UIkit);
@@ -2895,26 +2935,11 @@
2895
2935
  componentAPI(UIkit);
2896
2936
  instanceAPI(UIkit);
2897
2937
 
2898
- function Core (UIkit) {
2938
+ function Core () {
2899
2939
  if (!inBrowser) {
2900
2940
  return;
2901
2941
  }
2902
2942
 
2903
- // throttle 'resize'
2904
- let pendingResize;
2905
- const handleResize = () => {
2906
- if (pendingResize) {
2907
- return;
2908
- }
2909
- pendingResize = true;
2910
- fastdom.read(() => pendingResize = false);
2911
- UIkit.update(null, 'resize');
2912
- };
2913
-
2914
- on(window, 'load resize', handleResize);
2915
- on(document, 'loadedmetadata load', handleResize, true);
2916
- observeResize(document.documentElement, handleResize);
2917
-
2918
2943
  let started = 0;
2919
2944
  on(
2920
2945
  document,
@@ -3381,13 +3406,9 @@
3381
3406
  autoplay: true },
3382
3407
 
3383
3408
 
3384
- computed: {
3385
- inView(_ref) {let { autoplay } = _ref;
3386
- return autoplay === 'inview';
3387
- } },
3388
-
3389
-
3390
3409
  connected() {
3410
+ this.inView = this.autoplay === 'inview';
3411
+
3391
3412
  if (this.inView && !hasAttr(this.$el, 'preload')) {
3392
3413
  this.$el.preload = 'none';
3393
3414
  }
@@ -3411,18 +3432,27 @@
3411
3432
 
3412
3433
  },
3413
3434
 
3414
- write(_ref2) {let { visible, inView } = _ref2;
3435
+ write(_ref) {let { visible, inView } = _ref;
3415
3436
  if (!visible || this.inView && !inView) {
3416
3437
  pause(this.$el);
3417
3438
  } else if (this.autoplay === true || this.inView && inView) {
3418
3439
  play(this.$el);
3419
3440
  }
3420
- },
3441
+ } } };
3421
3442
 
3422
- events: ['resize', 'scroll'] } };
3443
+ var Resize = {
3444
+ computed: {
3445
+ resizeTargets() {
3446
+ return this.$el;
3447
+ } },
3448
+
3449
+
3450
+ connected() {
3451
+ this.registerObserver(observeResize(this.resizeTargets, () => this.$emit('resize')));
3452
+ } };
3423
3453
 
3424
3454
  var cover = {
3425
- mixins: [Video],
3455
+ mixins: [Resize, Video],
3426
3456
 
3427
3457
  props: {
3428
3458
  width: Number,
@@ -3433,10 +3463,6 @@
3433
3463
  automute: true },
3434
3464
 
3435
3465
 
3436
- connected() {
3437
- this.registerObserver(observeResize(this.$el, () => this.$emit('resize')));
3438
- },
3439
-
3440
3466
  update: {
3441
3467
  read() {
3442
3468
  const el = this.$el;
@@ -3505,19 +3531,11 @@
3505
3531
  clsPos: '' },
3506
3532
 
3507
3533
 
3508
- computed: {
3509
- pos(_ref) {let { pos } = _ref;
3510
- return pos.split('-').concat('center').slice(0, 2);
3511
- },
3512
-
3513
- dir() {
3514
- return this.pos[0];
3515
- },
3516
-
3517
- align() {
3518
- return this.pos[1];
3519
- } },
3520
-
3534
+ connected() {
3535
+ this.pos = this.pos.split('-').concat('center').slice(0, 2);
3536
+ this.dir = this.pos[0];
3537
+ this.align = this.pos[1];
3538
+ },
3521
3539
 
3522
3540
  methods: {
3523
3541
  positionAt(element, target, boundary) {
@@ -3525,6 +3543,8 @@
3525
3543
 
3526
3544
  let { offset: offset$1 } = this;
3527
3545
  const axis = this.getAxis();
3546
+ const dir = this.pos[0];
3547
+ const align = this.pos[1];
3528
3548
 
3529
3549
  if (!isNumeric(offset$1)) {
3530
3550
  const node = $(offset$1);
@@ -3537,13 +3557,11 @@
3537
3557
  const { x, y } = positionAt(
3538
3558
  element,
3539
3559
  target,
3540
- axis === 'x' ?
3541
- flipPosition(this.dir) + " " + this.align :
3542
- this.align + " " + flipPosition(this.dir),
3543
- axis === 'x' ? this.dir + " " + this.align : this.align + " " + this.dir,
3560
+ axis === 'x' ? flipPosition(dir) + " " + align : align + " " + flipPosition(dir),
3561
+ axis === 'x' ? dir + " " + align : align + " " + dir,
3544
3562
  axis === 'x' ? "" + (
3545
- this.dir === 'left' ? -offset$1 : offset$1) : " " + (
3546
- this.dir === 'top' ? -offset$1 : offset$1),
3563
+ dir === 'left' ? -offset$1 : offset$1) : " " + (
3564
+ dir === 'top' ? -offset$1 : offset$1),
3547
3565
  null,
3548
3566
  this.flip,
3549
3567
  boundary).
@@ -3755,9 +3773,7 @@
3755
3773
 
3756
3774
  this.tracker.init();
3757
3775
 
3758
- once(
3759
- this.$el,
3760
- 'hide',
3776
+ for (const handler of [
3761
3777
  on(
3762
3778
  document,
3763
3779
  pointerDown,
@@ -3779,19 +3795,16 @@
3779
3795
  true));}),
3780
3796
 
3781
3797
 
3782
- { self: true });
3783
-
3784
3798
 
3785
- once(
3786
- this.$el,
3787
- 'hide',
3788
3799
  on(document, 'keydown', (e) => {
3789
3800
  if (e.keyCode === 27) {
3790
3801
  this.hide(false);
3791
3802
  }
3792
3803
  }),
3793
- { self: true });
3794
-
3804
+ on(window, 'resize', () => this.$emit('resize'))])
3805
+ {
3806
+ once(this.$el, 'hide', handler, { self: true });
3807
+ }
3795
3808
  } },
3796
3809
 
3797
3810
 
@@ -4008,6 +4021,10 @@
4008
4021
 
4009
4022
  // Deprecated
4010
4023
  var gif = {
4024
+ connected() {
4025
+ this.registerObserver(observeIntersection(this.$el, () => this.$emit()));
4026
+ },
4027
+
4011
4028
  update: {
4012
4029
  read(data) {
4013
4030
  const inview = isInView(this.$el);
@@ -4021,9 +4038,7 @@
4021
4038
 
4022
4039
  write() {
4023
4040
  this.$el.src = '' + this.$el.src; // force self-assign
4024
- },
4025
-
4026
- events: ['scroll', 'resize'] } };
4041
+ } } };
4027
4042
 
4028
4043
  var Margin = {
4029
4044
  props: {
@@ -4036,6 +4051,16 @@
4036
4051
  firstColumn: 'uk-first-column' },
4037
4052
 
4038
4053
 
4054
+ connected() {
4055
+ this.registerObserver(
4056
+ observeMutation(this.$el, () => this.$reset(), {
4057
+ childList: true }));
4058
+
4059
+
4060
+
4061
+ this.registerObserver(observeResize(this.$el.children, () => this.$emit('resize')));
4062
+ },
4063
+
4039
4064
  update: {
4040
4065
  read() {
4041
4066
  const rows = getRows(this.$el.children);
@@ -4300,9 +4325,21 @@
4300
4325
  computed: {
4301
4326
  elements(_ref, $el) {let { target } = _ref;
4302
4327
  return $$(target, $el);
4328
+ },
4329
+
4330
+ resizeTargets() {
4331
+ this.$el.children;
4303
4332
  } },
4304
4333
 
4305
4334
 
4335
+ connected() {
4336
+ this.registerObserver(
4337
+ observeMutation(this.$el, () => this.$reset(), {
4338
+ childList: true }));
4339
+
4340
+
4341
+ },
4342
+
4306
4343
  update: {
4307
4344
  read() {
4308
4345
  return {
@@ -4416,13 +4453,9 @@
4416
4453
  return { minHeight, prev };
4417
4454
  },
4418
4455
 
4419
- write(_ref2) {let { minHeight, prev } = _ref2;
4456
+ write(_ref2) {let { minHeight } = _ref2;
4420
4457
  css(this.$el, { minHeight });
4421
4458
 
4422
- if (minHeight !== prev) {
4423
- trigger(this.$el, 'resize');
4424
- }
4425
-
4426
4459
  if (this.minHeight && toFloat(css(this.$el, 'minHeight')) < this.minHeight) {
4427
4460
  css(this.$el, 'minHeight', this.minHeight);
4428
4461
  }
@@ -4472,10 +4505,24 @@
4472
4505
  }
4473
4506
 
4474
4507
  this.applyAttributes(svg, el);
4475
- this.$emit();
4508
+
4476
4509
  return this.svgEl = svg;
4477
4510
  }
4478
4511
  }, noop);
4512
+
4513
+ if (this.strokeAnimation) {
4514
+ this.svg.then((el) => {
4515
+ if (this._connected) {
4516
+ applyAnimation(el);
4517
+ this.registerObserver(
4518
+ observeIntersection(el, (records, observer) => {
4519
+ applyAnimation(el);
4520
+ observer.disconnect();
4521
+ }));
4522
+
4523
+ }
4524
+ });
4525
+ }
4479
4526
  },
4480
4527
 
4481
4528
  disconnected() {
@@ -4495,18 +4542,6 @@
4495
4542
  this.svg = null;
4496
4543
  },
4497
4544
 
4498
- update: {
4499
- read() {
4500
- return !!(this.strokeAnimation && this.svgEl && isVisible(this.svgEl));
4501
- },
4502
-
4503
- write() {
4504
- applyAnimation(this.svgEl);
4505
- },
4506
-
4507
- type: ['resize'] },
4508
-
4509
-
4510
4545
  methods: {
4511
4546
  async getSvg() {
4512
4547
  if (isTag(this.$el, 'img') && !this.$el.complete && this.$el.loading === 'lazy') {
@@ -4856,7 +4891,7 @@
4856
4891
 
4857
4892
 
4858
4893
  connected() {
4859
- if (this.loading !== 'lazy' || !hasIntersectionObserver) {
4894
+ if (this.loading !== 'lazy') {
4860
4895
  this.load();
4861
4896
  return;
4862
4897
  }
@@ -5100,7 +5135,7 @@
5100
5135
  }
5101
5136
 
5102
5137
  var leader = {
5103
- mixins: [Class, Media],
5138
+ mixins: [Class, Media, Resize],
5104
5139
 
5105
5140
  props: {
5106
5141
  fill: String },
@@ -5128,26 +5163,19 @@
5128
5163
  },
5129
5164
 
5130
5165
  update: {
5131
- read(_ref2) {let { changed, width } = _ref2;
5132
- const prev = width;
5133
-
5134
- width = Math.floor(this.$el.offsetWidth / 2);
5166
+ read() {
5167
+ const width = Math.trunc(this.$el.offsetWidth / 2);
5135
5168
 
5136
5169
  return {
5137
5170
  width,
5138
5171
  fill: this.fill,
5139
- changed: changed || prev !== width,
5140
5172
  hide: !this.matchMedia };
5141
5173
 
5142
5174
  },
5143
5175
 
5144
- write(data) {
5145
- toggleClass(this.wrapper, this.clsHide, data.hide);
5146
-
5147
- if (data.changed) {
5148
- data.changed = false;
5149
- attr(this.wrapper, this.attrFill, new Array(data.width).join(data.fill));
5150
- }
5176
+ write(_ref2) {let { width, fill, hide } = _ref2;
5177
+ toggleClass(this.wrapper, this.clsHide, hide);
5178
+ attr(this.wrapper, this.attrFill, new Array(width).join(fill));
5151
5179
  },
5152
5180
 
5153
5181
  events: ['resize'] } };
@@ -6252,7 +6280,7 @@
6252
6280
  }
6253
6281
 
6254
6282
  var overflowAuto = {
6255
- mixins: [Class],
6283
+ mixins: [Class, Resize],
6256
6284
 
6257
6285
  props: {
6258
6286
  selContainer: String,
@@ -6273,6 +6301,10 @@
6273
6301
 
6274
6302
  content(_ref2, $el) {let { selContent } = _ref2;
6275
6303
  return closest($el, selContent);
6304
+ },
6305
+
6306
+ resizeTargets() {
6307
+ return [this.container, this.content];
6276
6308
  } },
6277
6309
 
6278
6310
 
@@ -6287,7 +6319,6 @@
6287
6319
  }
6288
6320
 
6289
6321
  return {
6290
- current: toFloat(css(this.$el, 'maxHeight')),
6291
6322
  max: Math.max(
6292
6323
  this.minHeight,
6293
6324
  height(this.container) - (dimensions$1(this.content).height - height(this.$el))) };
@@ -6295,11 +6326,8 @@
6295
6326
 
6296
6327
  },
6297
6328
 
6298
- write(_ref3) {let { current, max } = _ref3;
6329
+ write(_ref3) {let { max } = _ref3;
6299
6330
  css(this.$el, 'maxHeight', max);
6300
- if (Math.round(current) !== Math.round(max)) {
6301
- trigger(this.$el, 'resize');
6302
- }
6303
6331
  },
6304
6332
 
6305
6333
  events: ['resize'] } };
@@ -6574,7 +6602,7 @@
6574
6602
  events: ['scroll', 'resize'] }] };
6575
6603
 
6576
6604
  var sticky = {
6577
- mixins: [Class, Media],
6605
+ mixins: [Class, Media, Resize],
6578
6606
 
6579
6607
  props: {
6580
6608
  position: String,
@@ -6617,6 +6645,10 @@
6617
6645
  return query(widthElement, $el) || this.placeholder;
6618
6646
  },
6619
6647
 
6648
+ resizeTargets() {
6649
+ return document.documentElement;
6650
+ },
6651
+
6620
6652
  isActive: {
6621
6653
  get() {
6622
6654
  return hasClass(this.selTarget, this.clsActive);
@@ -8454,7 +8486,7 @@
8454
8486
  } } };
8455
8487
 
8456
8488
  var Slider = {
8457
- mixins: [SliderAutoplay, SliderDrag, SliderNav],
8489
+ mixins: [SliderAutoplay, SliderDrag, SliderNav, Resize],
8458
8490
 
8459
8491
  props: {
8460
8492
  clsActivated: Boolean,
@@ -9561,7 +9593,7 @@
9561
9593
  }
9562
9594
 
9563
9595
  var parallax = {
9564
- mixins: [Parallax],
9596
+ mixins: [Parallax, Resize],
9565
9597
 
9566
9598
  props: {
9567
9599
  target: String,
@@ -10098,11 +10130,13 @@
10098
10130
  selItem: '!li' },
10099
10131
 
10100
10132
 
10101
- computed: {
10102
- item(_ref, $el) {let { selItem } = _ref;
10103
- return query(selItem, $el);
10104
- } },
10133
+ connected() {
10134
+ this.item = query(this.selItem, this.$el);
10135
+ },
10105
10136
 
10137
+ disconnected() {
10138
+ this.item = null;
10139
+ },
10106
10140
 
10107
10141
  events: [
10108
10142
  {
@@ -10114,7 +10148,7 @@
10114
10148
  return this.item;
10115
10149
  },
10116
10150
 
10117
- handler(_ref2) {let { type, detail: { percent, duration, timing, dir } } = _ref2;
10151
+ handler(_ref) {let { type, detail: { percent, duration, timing, dir } } = _ref;
10118
10152
  fastdom.read(() => {
10119
10153
  const propsFrom = this.getCss(getCurrentPercent(type, dir, percent));
10120
10154
  const propsTo = this.getCss(isIn(type) ? 0.5 : dir > 0 ? 1 : 0);
@@ -10149,7 +10183,7 @@
10149
10183
  return this.item;
10150
10184
  },
10151
10185
 
10152
- handler(_ref3) {let { type, detail: { percent, dir } } = _ref3;
10186
+ handler(_ref2) {let { type, detail: { percent, dir } } = _ref2;
10153
10187
  fastdom.read(() => {
10154
10188
  const props = this.getCss(getCurrentPercent(type, dir, percent));
10155
10189
  fastdom.write(() => css(this.$el, props));