uikit 3.15.9 → 3.15.10-dev.12413a134

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 (47) hide show
  1. package/CHANGELOG.md +7 -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 +7 -20
  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 +5 -21
  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 +5 -10
  37. package/dist/js/uikit-core.min.js +2 -2
  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 +13 -31
  41. package/dist/js/uikit.min.js +2 -2
  42. package/package.json +5 -5
  43. package/src/js/api/component.js +2 -2
  44. package/src/js/components/filter.js +4 -1
  45. package/src/js/components/sortable.js +2 -2
  46. package/src/js/core/margin.js +0 -5
  47. package/src/js/mixin/internal/animate-slide.js +2 -19
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.9",
5
+ "version": "3.15.10-dev.12413a134",
6
6
  "main": "dist/js/uikit.js",
7
7
  "style": "dist/css/uikit.css",
8
8
  "sideEffects": [
@@ -34,8 +34,8 @@
34
34
  },
35
35
  "homepage": "https://getuikit.com",
36
36
  "devDependencies": {
37
- "@babel/core": "^7.19.0",
38
- "@babel/preset-env": "^7.19.0",
37
+ "@babel/core": "^7.19.1",
38
+ "@babel/preset-env": "^7.19.1",
39
39
  "@rollup/plugin-alias": "^3.1.9",
40
40
  "@rollup/plugin-babel": "^5.3.1",
41
41
  "@rollup/plugin-replace": "^4.0.0",
@@ -43,12 +43,12 @@
43
43
  "camelcase": "^7.0.0",
44
44
  "clean-css": "^5.3.1",
45
45
  "dateformat": "^5.0.3",
46
- "esbuild": "^0.15.7",
46
+ "esbuild": "^0.15.8",
47
47
  "eslint": "^8.23.1",
48
48
  "eslint-config-prettier": "^8.5.0",
49
49
  "fs-extra": "^10.1.0",
50
50
  "glob": "^8.0.3",
51
- "inquirer": "^9.1.1",
51
+ "inquirer": "^9.1.2",
52
52
  "less": "^4.1.3",
53
53
  "minimist": "^1.2.6",
54
54
  "number-precision": "^1.5.2",
@@ -66,8 +66,8 @@ export default function (UIkit) {
66
66
  }
67
67
  }
68
68
 
69
- for (const attribute of node.attributes) {
70
- const name = getComponentName(attribute.name);
69
+ for (const attribute of node.getAttributeNames()) {
70
+ const name = getComponentName(attribute);
71
71
  name && UIkit[name](node);
72
72
  }
73
73
  };
@@ -114,7 +114,10 @@ export default {
114
114
 
115
115
  await Promise.all(
116
116
  $$(this.target, this.$el).map((target) => {
117
- const filterFn = () => applyState(state, target, getChildren(target));
117
+ const filterFn = () => {
118
+ applyState(state, target, getChildren(target));
119
+ this.$update(this.$el);
120
+ };
118
121
  return animate ? this.animate(filterFn, target) : filterFn();
119
122
  })
120
123
  );
@@ -352,8 +352,8 @@ function appendDrag(container, element) {
352
352
  if (['li', 'tr'].some((tag) => isTag(element, tag))) {
353
353
  clone = $('<div>');
354
354
  append(clone, element.cloneNode(true).children);
355
- for (const { nodeName, nodeValue } of element.attributes) {
356
- attr(clone, nodeName, nodeValue);
355
+ for (const attribute of element.getAttributeNames()) {
356
+ attr(clone, attribute, element.getAttribute(attribute));
357
357
  }
358
358
  } else {
359
359
  clone = element.cloneNode(true);
@@ -29,11 +29,6 @@ export default {
29
29
  this.registerObserver(
30
30
  observeMutation(this.$el, () => this.$reset(), {
31
31
  childList: true,
32
- }),
33
- observeMutation(this.$el, () => this.$emit(), {
34
- childList: true,
35
- attributes: true,
36
- attributeFilter: ['style'],
37
32
  })
38
33
  );
39
34
  },
@@ -6,7 +6,6 @@ import {
6
6
  includes,
7
7
  index,
8
8
  isVisible,
9
- observeMutation,
10
9
  offset,
11
10
  parent,
12
11
  position,
@@ -32,7 +31,7 @@ export default async function (action, target, duration) {
32
31
  nodes = nodes.concat(children(target).filter((el) => !includes(nodes, el)));
33
32
 
34
33
  // Wait for update to propagate
35
- await awaitMutation();
34
+ await Promise.resolve();
36
35
 
37
36
  // Force update
38
37
  fastdom.flush();
@@ -67,7 +66,7 @@ export default async function (action, target, duration) {
67
66
  });
68
67
  attr(target, 'style', targetStyle);
69
68
  } catch (e) {
70
- nodes.forEach((el, i) => attr(el, 'style', ''));
69
+ attr(nodes, 'style', '');
71
70
  resetProps(target, targetProps);
72
71
  }
73
72
  }
@@ -144,19 +143,3 @@ function getPositionWithMargin(el) {
144
143
  function awaitFrame() {
145
144
  return new Promise((resolve) => requestAnimationFrame(resolve));
146
145
  }
147
-
148
- function awaitMutation() {
149
- const text = document.createTextNode('');
150
- const promise = new Promise((resolve) =>
151
- observeMutation(
152
- text,
153
- (_, observer) => {
154
- resolve();
155
- observer.disconnect();
156
- },
157
- { characterData: true }
158
- )
159
- );
160
- text.data = 1;
161
- return promise;
162
- }