uikit 3.15.15-dev.5eb24ed21 → 3.15.15-dev.74919806a

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 (46) hide show
  1. package/CHANGELOG.md +2 -1
  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 +1 -1
  15. package/dist/js/components/lightbox-panel.min.js +1 -1
  16. package/dist/js/components/lightbox.js +1 -1
  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 +1 -1
  21. package/dist/js/components/parallax.min.js +1 -1
  22. package/dist/js/components/slider-parallax.js +1 -1
  23. package/dist/js/components/slider-parallax.min.js +1 -1
  24. package/dist/js/components/slider.js +1 -1
  25. package/dist/js/components/slider.min.js +1 -1
  26. package/dist/js/components/slideshow-parallax.js +1 -1
  27. package/dist/js/components/slideshow-parallax.min.js +1 -1
  28. package/dist/js/components/slideshow.js +1 -1
  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 +1 -1
  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 +6 -12
  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 +6 -12
  41. package/dist/js/uikit.min.js +1 -1
  42. package/package.json +1 -1
  43. package/src/js/core/img.js +1 -1
  44. package/src/js/core/scrollspy.js +3 -10
  45. package/tests/image.html +1 -1
  46. package/tests/scrollspy.html +4 -10
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.15.15-dev.5eb24ed21",
5
+ "version": "3.15.15-dev.74919806a",
6
6
  "main": "dist/js/uikit.js",
7
7
  "style": "dist/css/uikit.css",
8
8
  "sideEffects": [
@@ -38,7 +38,7 @@ export default {
38
38
  data: {
39
39
  dataSrc: '',
40
40
  sources: false,
41
- margin: '50% 50%',
41
+ margin: '50%',
42
42
  target: false,
43
43
  loading: 'lazy',
44
44
  },
@@ -10,7 +10,6 @@ import {
10
10
  removeClass,
11
11
  removeClasses,
12
12
  toggleClass,
13
- toPx,
14
13
  trigger,
15
14
  } from 'uikit-util';
16
15
 
@@ -23,8 +22,7 @@ export default {
23
22
  cls: String,
24
23
  target: String,
25
24
  hidden: Boolean,
26
- offsetTop: Number,
27
- offsetLeft: Number,
25
+ margin: String,
28
26
  repeat: Boolean,
29
27
  delay: Number,
30
28
  },
@@ -33,8 +31,7 @@ export default {
33
31
  cls: '',
34
32
  target: false,
35
33
  hidden: true,
36
- offsetTop: 0,
37
- offsetLeft: 0,
34
+ margin: '-1px',
38
35
  repeat: false,
39
36
  delay: 0,
40
37
  inViewClass: 'uk-scrollspy-inview',
@@ -85,11 +82,7 @@ export default {
85
82
 
86
83
  this.$emit();
87
84
  },
88
- {
89
- rootMargin: `${toPx(this.offsetTop, 'height') - 1}px ${
90
- toPx(this.offsetLeft, 'width') - 1
91
- }px`,
92
- },
85
+ { rootMargin: this.margin },
93
86
  false
94
87
  )
95
88
  );
package/tests/image.html CHANGED
@@ -623,7 +623,7 @@
623
623
  <tr>
624
624
  <td><code>margin</code></td>
625
625
  <td>String</td>
626
- <td>'50% 50%'</td>
626
+ <td>'50%'</td>
627
627
  <td>The margin increases the viewport's bounding box, before computing an intersection with the image. (Must be px or % units)</td>
628
628
  </tr>
629
629
  <tr>
@@ -513,16 +513,10 @@
513
513
  <td>Hides the element while out of view.</td>
514
514
  </tr>
515
515
  <tr>
516
- <td><code>offset-top</code></td>
517
- <td>Number</td>
518
- <td>0</td>
519
- <td>Top offset before triggering in view.</td>
520
- </tr>
521
- <tr>
522
- <td><code>offset-left</code></td>
523
- <td>Number</td>
524
- <td>0</td>
525
- <td>Left offset before triggering in view.</td>
516
+ <td><code>margin</code></td>
517
+ <td>String</td>
518
+ <td>'-1px'</td>
519
+ <td>The margin is added to the viewport's bounding box, before computing an intersection with the element. (Must be px or % units)</td>
526
520
  </tr>
527
521
  <tr>
528
522
  <td><code>repeat</code></td>