uikit 3.19.4 → 3.19.5-dev.57ec46163

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 (49) hide show
  1. package/CHANGELOG.md +6 -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 -8
  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 +3 -3
  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 +10 -10
  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 +14 -15
  41. package/dist/js/uikit.min.js +1 -1
  42. package/eslint.config.js +8 -5
  43. package/package.json +3 -4
  44. package/src/js/components/filter.js +4 -5
  45. package/src/js/core/drop.js +0 -6
  46. package/src/js/core/margin.js +1 -1
  47. package/src/js/core/switcher.js +6 -1
  48. package/src/js/core/toggle.js +1 -1
  49. package/build/package.json +0 -4
package/eslint.config.js CHANGED
@@ -1,16 +1,19 @@
1
- const eslintJs = require('@eslint/js');
2
- const eslintConfigPrettier = require('eslint-config-prettier');
3
- const globals = require('globals');
1
+ import eslintJs from '@eslint/js';
2
+ import eslintConfigPrettier from 'eslint-config-prettier';
3
+ import globals from 'globals';
4
4
 
5
- module.exports = [
5
+ export default [
6
6
  eslintJs.configs.recommended,
7
7
  eslintConfigPrettier,
8
+ {
9
+ ignores: ['*', '!src/', '!src/*', '!src/js', '!build/', 'build/*', '!build/*.js'],
10
+ },
8
11
  {
9
12
  rules: {
10
13
  'no-unused-vars': ['error', { caughtErrors: 'none' }],
11
14
  },
12
15
  languageOptions: {
13
- ecmaVersion: 2022,
16
+ ecmaVersion: 'latest',
14
17
  sourceType: 'module',
15
18
  globals: {
16
19
  ...globals.browser,
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.19.4",
5
+ "version": "3.19.5-dev.57ec46163",
6
6
  "main": "dist/js/uikit.js",
7
7
  "style": "dist/css/uikit.css",
8
8
  "sideEffects": [
@@ -10,6 +10,7 @@
10
10
  "./src/js/*.js",
11
11
  "./dist/**/*.js"
12
12
  ],
13
+ "type": "module",
13
14
  "repository": {
14
15
  "type": "git",
15
16
  "url": "git+https://github.com/uikit/uikit.git"
@@ -60,8 +61,6 @@
60
61
  "prefix": "node build/prefix",
61
62
  "scope": "node build/scope",
62
63
  "release": "node build/release",
63
- "watch": "chokidar \"**/*.less\" --initial -i \"node_modules\" -c \"node build/less\"",
64
- "eslint": "eslint src/js build/*.js",
65
- "eslint-fix": "eslint --fix src/js build/*.js"
64
+ "watch": "chokidar \"**/*.less\" --initial -i \"node_modules\" -c \"node build/less\""
66
65
  }
67
66
  }
@@ -118,10 +118,7 @@ export default {
118
118
 
119
119
  await Promise.all(
120
120
  $$(this.target, this.$el).map((target) => {
121
- const filterFn = () => {
122
- applyState(state, target, getChildren(target));
123
- this.$update(this.$el);
124
- };
121
+ const filterFn = () => applyState(state, target, getChildren(target));
125
122
  return animate ? this.animate(filterFn, target) : filterFn();
126
123
  }),
127
124
  );
@@ -146,7 +143,9 @@ function isEqualState(stateA, stateB) {
146
143
  function applyState(state, target, children) {
147
144
  const selector = getSelector(state);
148
145
 
149
- children.forEach((el) => css(el, 'display', selector && !matches(el, selector) ? 'none' : ''));
146
+ for (const el of children) {
147
+ css(el, 'display', selector && !matches(el, selector) ? 'none' : '');
148
+ }
150
149
 
151
150
  const [sort, order] = state.sort;
152
151
 
@@ -29,7 +29,6 @@ import {
29
29
  removeClass,
30
30
  within,
31
31
  } from 'uikit-util';
32
- import { lazyload } from '../api/observables';
33
32
  import Container from '../mixin/container';
34
33
  import Position from '../mixin/position';
35
34
  import Togglable from '../mixin/togglable';
@@ -129,11 +128,6 @@ export default {
129
128
  css(this.$el, this._style);
130
129
  },
131
130
 
132
- observe: lazyload({
133
- target: ({ toggle, $el }) => query(toggle, $el),
134
- targets: ({ $el }) => $el,
135
- }),
136
-
137
131
  events: [
138
132
  {
139
133
  name: 'click',
@@ -15,10 +15,10 @@ export default {
15
15
  observe: [
16
16
  mutation({
17
17
  options: {
18
- childList: true,
19
18
  attributes: true,
20
19
  attributeFilter: ['style'],
21
20
  },
21
+ target: ({ $el }) => [$el, ...children($el)],
22
22
  }),
23
23
  resize({
24
24
  target: ({ $el }) => [$el, ...children($el)],
@@ -10,6 +10,7 @@ import {
10
10
  hasClass,
11
11
  includes,
12
12
  isNode,
13
+ isTag,
13
14
  matches,
14
15
  queryAll,
15
16
  toArray,
@@ -188,7 +189,11 @@ export default {
188
189
  ],
189
190
 
190
191
  update() {
191
- attr(this.connects, 'role', 'presentation');
192
+ for (const el of this.connects) {
193
+ if (isTag(el, 'ul')) {
194
+ attr(el, 'role', 'presentation');
195
+ }
196
+ }
192
197
  attr(children(this.$el), 'role', 'presentation');
193
198
 
194
199
  for (const index in this.toggles) {
@@ -58,7 +58,7 @@ export default {
58
58
  }
59
59
  },
60
60
 
61
- observe: lazyload({ target: ({ target }) => target }),
61
+ observe: lazyload({ targets: ({ target }) => target }),
62
62
 
63
63
  events: [
64
64
  {
@@ -1,4 +0,0 @@
1
- {
2
- "private": true,
3
- "type": "module"
4
- }