uikit 3.10.1 → 3.10.2-dev.3a696ee97

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 +11 -4
  2. package/build/scss.js +4 -4
  3. package/dist/css/uikit-core-rtl.css +1 -1
  4. package/dist/css/uikit-core-rtl.min.css +1 -1
  5. package/dist/css/uikit-core.css +1 -1
  6. package/dist/css/uikit-core.min.css +1 -1
  7. package/dist/css/uikit-rtl.css +1 -1
  8. package/dist/css/uikit-rtl.min.css +1 -1
  9. package/dist/css/uikit.css +1 -1
  10. package/dist/css/uikit.min.css +1 -1
  11. package/dist/js/components/countdown.js +1 -1
  12. package/dist/js/components/countdown.min.js +1 -1
  13. package/dist/js/components/filter.js +1 -1
  14. package/dist/js/components/filter.min.js +1 -1
  15. package/dist/js/components/lightbox-panel.js +1 -1
  16. package/dist/js/components/lightbox-panel.min.js +1 -1
  17. package/dist/js/components/lightbox.js +1 -1
  18. package/dist/js/components/lightbox.min.js +1 -1
  19. package/dist/js/components/notification.js +1 -1
  20. package/dist/js/components/notification.min.js +1 -1
  21. package/dist/js/components/parallax.js +3 -3
  22. package/dist/js/components/parallax.min.js +1 -1
  23. package/dist/js/components/slider-parallax.js +3 -3
  24. package/dist/js/components/slider-parallax.min.js +1 -1
  25. package/dist/js/components/slider.js +1 -1
  26. package/dist/js/components/slider.min.js +1 -1
  27. package/dist/js/components/slideshow-parallax.js +3 -3
  28. package/dist/js/components/slideshow-parallax.min.js +1 -1
  29. package/dist/js/components/slideshow.js +1 -1
  30. package/dist/js/components/slideshow.min.js +1 -1
  31. package/dist/js/components/sortable.js +1 -1
  32. package/dist/js/components/sortable.min.js +1 -1
  33. package/dist/js/components/tooltip.js +1 -1
  34. package/dist/js/components/tooltip.min.js +1 -1
  35. package/dist/js/components/upload.js +1 -1
  36. package/dist/js/components/upload.min.js +1 -1
  37. package/dist/js/uikit-core.js +11 -12
  38. package/dist/js/uikit-core.min.js +1 -1
  39. package/dist/js/uikit-icons.js +1 -1
  40. package/dist/js/uikit-icons.min.js +1 -1
  41. package/dist/js/uikit.js +13 -14
  42. package/dist/js/uikit.min.js +1 -1
  43. package/package.json +1 -1
  44. package/src/js/api/hooks.js +6 -10
  45. package/src/js/mixin/parallax.js +2 -2
  46. package/src/js/util/lang.js +4 -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.10.1",
5
+ "version": "3.10.2-dev.3a696ee97",
6
6
  "main": "dist/js/uikit.js",
7
7
  "style": "dist/css/uikit.css",
8
8
  "sideEffects": [
@@ -123,23 +123,19 @@ export default function (UIkit) {
123
123
 
124
124
  function runWatches(initial) {
125
125
 
126
- const {$options: {computed}, _computeds} = this;
126
+ const {$options: {computed}} = this;
127
+ const values = assign({}, this._computeds);
128
+ this._computeds = {};
127
129
 
128
130
  for (const key in computed) {
129
-
130
- const hasPrev = hasOwn(_computeds, key);
131
- const prev = _computeds[key];
132
-
133
- delete _computeds[key];
134
-
135
131
  const {watch, immediate} = computed[key];
136
132
  if (watch && (
137
133
  initial && immediate
138
- || hasPrev && !isEqual(prev, this[key])
134
+ || hasOwn(values, key) && !isEqual(values[key], this[key])
139
135
  )) {
140
- watch.call(this, this[key], prev);
136
+ watch.call(this, this[key], values[key]);
141
137
  }
142
-
143
138
  }
139
+
144
140
  }
145
141
  }
@@ -57,7 +57,7 @@ export default {
57
57
  } else if (startsWith(prop, 'bg')) {
58
58
 
59
59
  const attr = prop === 'bgy' ? 'height' : 'width';
60
- steps = steps.map(step => toPx(step, attr, this.$el));
60
+ steps = steps.map(step => toPx(step, attr, $el));
61
61
 
62
62
  css($el, `background-position-${prop[2]}`, '');
63
63
  bgPos = css($el, 'backgroundPosition').split(' ')[prop[2] === 'x' ? 0 : 1]; // IE 11 can't read background-position-[x|y]
@@ -91,7 +91,7 @@ export default {
91
91
  return props;
92
92
  }
93
93
 
94
- const length = getMaxPathLength(this.$el);
94
+ const length = getMaxPathLength($el);
95
95
  css($el, 'strokeDasharray', length);
96
96
 
97
97
  if (unit === '%') {
@@ -300,6 +300,10 @@ export function getIndex(i, elements, current = 0, finite = false) {
300
300
 
301
301
  const {length} = elements;
302
302
 
303
+ if (!length) {
304
+ return -1;
305
+ }
306
+
303
307
  i = isNumeric(i)
304
308
  ? toNumber(i)
305
309
  : i === 'next'