uikit 3.16.15-dev.8ea213467 → 3.16.15-dev.b0c8c0a4b

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 (45) hide show
  1. package/CHANGELOG.md +1 -0
  2. package/build/util.js +47 -36
  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 +1 -1
  22. package/dist/js/components/parallax.min.js +1 -1
  23. package/dist/js/components/slider-parallax.js +1 -1
  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 +1 -1
  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 +25 -22
  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 +25 -22
  42. package/dist/js/uikit.min.js +1 -1
  43. package/package.json +1 -2
  44. package/src/js/core/sticky.js +19 -13
  45. package/src/js/core/svg.js +1 -1
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.16.15-dev.8ea213467",
5
+ "version": "3.16.15-dev.b0c8c0a4b",
6
6
  "main": "dist/js/uikit.js",
7
7
  "style": "dist/css/uikit.css",
8
8
  "sideEffects": [
@@ -40,7 +40,6 @@
40
40
  "prettier": "^2.8.7",
41
41
  "rollup": "^3.20.2",
42
42
  "rollup-plugin-esbuild": "^5.0.0",
43
- "rollup-plugin-html": "^0.2.1",
44
43
  "rollup-plugin-modify": "^3.0.0",
45
44
  "rtlcss": "^4.0.0",
46
45
  "semver": "^7.3.8",
@@ -17,6 +17,7 @@ import {
17
17
  isVisible,
18
18
  noop,
19
19
  offsetPosition,
20
+ once,
20
21
  parent,
21
22
  query,
22
23
  remove,
@@ -96,15 +97,7 @@ export default {
96
97
  this.placeholder = null;
97
98
  },
98
99
 
99
- observe: [
100
- resize({
101
- handler() {
102
- !this.isFixed && this.$emit('resize');
103
- },
104
- }),
105
- resize({ target: () => [document.documentElement] }),
106
- scroll(),
107
- ],
100
+ observe: [resize({ target: ({ $el }) => [$el, document.documentElement] }), scroll()],
108
101
 
109
102
  events: [
110
103
  {
@@ -115,7 +108,7 @@ export default {
115
108
  },
116
109
 
117
110
  handler() {
118
- this.$emit('resizeViewport');
111
+ this.$emit('resize');
119
112
  },
120
113
  },
121
114
  {
@@ -150,18 +143,31 @@ export default {
150
143
  });
151
144
  },
152
145
  },
146
+ {
147
+ name: 'transitionstart',
148
+
149
+ capture: true,
150
+
151
+ handler() {
152
+ this.transitionInProgress = once(
153
+ this.$el,
154
+ 'transitionend transitioncancel',
155
+ () => (this.transitionInProgress = null)
156
+ );
157
+ },
158
+ },
153
159
  ],
154
160
 
155
161
  update: [
156
162
  {
157
- read({ height, width, margin, sticky }, types) {
163
+ read({ height, width, margin, sticky }) {
158
164
  this.inactive = !this.matchMedia || !isVisible(this.$el);
159
165
 
160
166
  if (this.inactive) {
161
167
  return;
162
168
  }
163
169
 
164
- const hide = this.isFixed && types.has('resize') && !sticky;
170
+ const hide = this.isFixed && !this.transitionInProgress;
165
171
  if (hide) {
166
172
  preventTransition(this.selTarget);
167
173
  this.hide();
@@ -260,7 +266,7 @@ export default {
260
266
  (sticky ? before : after)(this.$el, placeholder);
261
267
  },
262
268
 
263
- events: ['resize', 'resizeViewport'],
269
+ events: ['resize'],
264
270
  },
265
271
 
266
272
  {
@@ -122,7 +122,7 @@ const parseSymbols = memoize(function (svg) {
122
122
 
123
123
  let match;
124
124
  while ((match = symbolRe.exec(svg))) {
125
- symbols[match[3]] = `<svg xmlns="http://www.w3.org/2000/svg"${match[1]}svg>`;
125
+ symbols[match[3]] = `<svg ${match[1]}svg>`;
126
126
  }
127
127
 
128
128
  return symbols;