uikit 3.23.7-dev.1d206253d → 3.23.7-dev.ea33b1a06

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 (54) hide show
  1. package/CHANGELOG.md +1 -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 +2 -2
  11. package/dist/js/components/countdown.min.js +1 -1
  12. package/dist/js/components/filter.js +8 -8
  13. package/dist/js/components/filter.min.js +1 -1
  14. package/dist/js/components/lightbox-panel.js +12 -17
  15. package/dist/js/components/lightbox-panel.min.js +1 -1
  16. package/dist/js/components/lightbox.js +13 -18
  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 +11 -17
  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 +8 -14
  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 +2 -2
  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 +18 -19
  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 +38 -45
  41. package/dist/js/uikit.min.js +1 -1
  42. package/package.json +1 -1
  43. package/src/js/components/countdown.js +2 -2
  44. package/src/js/components/filter.js +1 -2
  45. package/src/js/components/lightbox.js +1 -2
  46. package/src/js/components/slider.js +3 -4
  47. package/src/js/components/tooltip.js +1 -1
  48. package/src/js/core/icon.js +3 -5
  49. package/src/js/core/img.js +1 -1
  50. package/src/js/core/switcher.js +4 -4
  51. package/src/js/core/toggle.js +3 -4
  52. package/src/js/core/video.js +1 -1
  53. package/src/js/mixin/modal.js +4 -4
  54. package/src/js/mixin/slider-nav.js +7 -13
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.23.7-dev.1d206253d",
5
+ "version": "3.23.7-dev.ea33b1a06",
6
6
  "main": "dist/js/uikit.js",
7
7
  "style": "dist/css/uikit.css",
8
8
  "sideEffects": [
@@ -1,4 +1,4 @@
1
- import { $, attr, html, toFloat, trigger } from 'uikit-util';
1
+ import { $, html, toFloat, trigger } from 'uikit-util';
2
2
  import Class from '../mixin/class';
3
3
 
4
4
  const units = ['days', 'hours', 'minutes', 'seconds'];
@@ -21,7 +21,7 @@ export default {
21
21
  },
22
22
 
23
23
  connected() {
24
- attr(this.$el, 'role', this.role);
24
+ this.$el.role = this.role;
25
25
  this.date = toFloat(Date.parse(this.$props.date));
26
26
  this.started = this.end = false;
27
27
  this.start();
@@ -2,7 +2,6 @@ import {
2
2
  $,
3
3
  $$,
4
4
  append,
5
- attr,
6
5
  css,
7
6
  data,
8
7
  fastdom,
@@ -57,7 +56,7 @@ export default {
57
56
  }
58
57
  const button = findButton(toggle);
59
58
  if (isTag(button, 'a')) {
60
- attr(button, 'role', 'button');
59
+ button.role = 'button';
61
60
  }
62
61
  }
63
62
  },
@@ -2,7 +2,6 @@ import {
2
2
  $,
3
3
  $$,
4
4
  assign,
5
- attr,
6
5
  findIndex,
7
6
  isElement,
8
7
  isTag,
@@ -32,7 +31,7 @@ export default {
32
31
  this.hide();
33
32
  for (const toggle of toggles) {
34
33
  if (isTag(toggle, 'a')) {
35
- attr(toggle, 'role', 'button');
34
+ toggle.role = 'button';
36
35
  }
37
36
  }
38
37
  },
@@ -2,7 +2,6 @@ import {
2
2
  $,
3
3
  $$,
4
4
  addClass,
5
- attr,
6
5
  children,
7
6
  css,
8
7
  data,
@@ -255,12 +254,12 @@ export default {
255
254
  for (const slide of this.slides) {
256
255
  const active = includes(actives, slide);
257
256
  toggleClass(slide, activeClasses, active);
258
- attr(slide, 'aria-hidden', !active);
257
+ slide.ariaHidden = !active;
259
258
  for (const focusable of $$(selFocusable, slide)) {
260
259
  if (!hasOwn(focusable, '_tabindex')) {
261
- focusable._tabindex = attr(focusable, 'tabindex');
260
+ focusable._tabindex = focusable.tabIndex;
262
261
  }
263
- attr(focusable, 'tabindex', active ? focusable._tabindex : -1);
262
+ focusable.tabIndex = active ? focusable._tabindex : -1;
264
263
  }
265
264
  }
266
265
  },
@@ -145,7 +145,7 @@ export default {
145
145
 
146
146
  function makeFocusable(el) {
147
147
  if (!isFocusable(el)) {
148
- attr(el, 'tabindex', '0');
148
+ el.tabIndex = 0;
149
149
  }
150
150
  }
151
151
 
@@ -136,13 +136,11 @@ export const Search = {
136
136
  }
137
137
 
138
138
  if (isToggle) {
139
- const label = this.t('toggle');
140
- attr(this.$el, 'aria-label', label);
139
+ this.$el.ariaLabel = this.t('toggle');
141
140
  } else {
142
141
  const button = this.$el.closest('a,button');
143
142
  if (button) {
144
- const label = this.t('submit');
145
- attr(button, 'aria-label', label);
143
+ button.ariaLabel = this.t('submit');
146
144
  }
147
145
  }
148
146
  },
@@ -152,7 +150,7 @@ export const Spinner = {
152
150
  extends: IconComponent,
153
151
 
154
152
  beforeConnect() {
155
- attr(this.$el, 'role', 'status');
153
+ this.$el.role = 'status';
156
154
  },
157
155
 
158
156
  methods: {
@@ -112,7 +112,7 @@ function getImageFromElement(el, src, sources) {
112
112
  wrapInPicture(img, sources);
113
113
  setSourceProps(el, img);
114
114
  img.onload = () => setSrcAttrs(el, img.currentSrc);
115
- attr(img, 'src', src);
115
+ img.src = src;
116
116
  return img;
117
117
  }
118
118
 
@@ -93,7 +93,7 @@ export default {
93
93
  },
94
94
 
95
95
  connected() {
96
- attr(this.$el, 'role', 'tablist');
96
+ this.$el.role = 'tablist';
97
97
  },
98
98
 
99
99
  observe: [
@@ -184,7 +184,7 @@ export default {
184
184
  update() {
185
185
  for (const el of this.connects) {
186
186
  if (isTag(el, 'ul')) {
187
- attr(el, 'role', 'presentation');
187
+ el.role = 'presentation';
188
188
  }
189
189
  }
190
190
  attr(children(this.$el), 'role', 'presentation');
@@ -193,7 +193,7 @@ export default {
193
193
  const toggle = this.toggles[index];
194
194
  const item = this.connects[0]?.children[index];
195
195
 
196
- attr(toggle, 'role', 'tab');
196
+ toggle.role = 'tab';
197
197
 
198
198
  if (!item) {
199
199
  continue;
@@ -202,7 +202,7 @@ export default {
202
202
  toggle.id = generateId(this, toggle);
203
203
  item.id = generateId(this, item);
204
204
 
205
- attr(toggle, 'aria-controls', item.id);
205
+ toggle.ariaControls = item.id;
206
206
  attr(item, { role: 'tabpanel', 'aria-labelledby': toggle.id });
207
207
  }
208
208
  attr(this.$el, 'aria-orientation', matches(this.$el, this.selVertical) ? 'vertical' : null);
@@ -1,5 +1,4 @@
1
1
  import {
2
- attr,
3
2
  hasAttr,
4
3
  hasClass,
5
4
  includes,
@@ -54,10 +53,10 @@ export default {
54
53
  connected() {
55
54
  if (!includes(this.mode, 'media')) {
56
55
  if (!isFocusable(this.$el)) {
57
- attr(this.$el, 'tabindex', '0');
56
+ this.$el.tabIndex = 0;
58
57
  }
59
58
  if (!this.cls && isTag(this.$el, 'a')) {
60
- attr(this.$el, 'role', 'button');
59
+ this.$el.role = 'button';
61
60
  }
62
61
  }
63
62
  },
@@ -193,7 +192,7 @@ export default {
193
192
  }
194
193
 
195
194
  if (hasAttr(this.$el, 'aria-expanded')) {
196
- attr(this.$el, 'aria-expanded', !this.isToggled(this.target));
195
+ this.$el.ariaExpanded = !this.isToggled(this.target);
197
196
  }
198
197
 
199
198
  if (!this.queued) {
@@ -36,7 +36,7 @@ export default {
36
36
 
37
37
  if (this.autoplay === 'hover') {
38
38
  if (isTag(this.$el, 'video')) {
39
- this.$el.tabindex = 0;
39
+ this.$el.tabIndex = 0;
40
40
  } else {
41
41
  this.autoplay = true;
42
42
  }
@@ -2,7 +2,6 @@ import {
2
2
  $,
3
3
  addClass,
4
4
  append,
5
- attr,
6
5
  css,
7
6
  endsWith,
8
7
  includes,
@@ -57,10 +56,11 @@ export default {
57
56
  },
58
57
 
59
58
  connected() {
60
- attr(this.panel || this.$el, 'role', this.role);
59
+ const el = this.panel || this.$el;
60
+ el.role = this.role;
61
61
 
62
62
  if (this.overlay) {
63
- attr(this.panel || this.$el, 'aria-modal', true);
63
+ el.ariaModal = true;
64
64
  }
65
65
  },
66
66
 
@@ -165,7 +165,7 @@ export default {
165
165
 
166
166
  handler() {
167
167
  if (!isFocusable(this.$el)) {
168
- attr(this.$el, 'tabindex', '-1');
168
+ this.$el.tabIndex = -1;
169
169
  }
170
170
 
171
171
  if (!matches(this.$el, ':focus-within')) {
@@ -88,7 +88,7 @@ export default {
88
88
 
89
89
  ariaLabel = this.t('slideX', toFloat(cmd) + 1);
90
90
 
91
- attr(button, 'role', 'tab');
91
+ button.role = 'tab';
92
92
  } else {
93
93
  if (this.list) {
94
94
  if (!this.list.id) {
@@ -101,10 +101,8 @@ export default {
101
101
  ariaLabel = this.t(cmd);
102
102
  }
103
103
 
104
- attr(button, {
105
- 'aria-controls': ariaControls,
106
- 'aria-label': attr(button, 'aria-label') || ariaLabel,
107
- });
104
+ button.ariaControls = ariaControls;
105
+ button.ariaLabel = button.ariaLabel || ariaLabel;
108
106
  }
109
107
  },
110
108
 
@@ -122,10 +120,8 @@ export default {
122
120
  },
123
121
 
124
122
  connected() {
125
- attr(this.$el, {
126
- role: this.role,
127
- 'aria-roledescription': 'carousel',
128
- });
123
+ this.$el.role = this.role;
124
+ this.$el.ariaRoleDescription = 'carousel';
129
125
  },
130
126
 
131
127
  update: [
@@ -214,10 +210,8 @@ export default {
214
210
  toggleClass(el, this.clsActive, active);
215
211
  toggleClass(button, 'uk-disabled', !!this.parallax);
216
212
 
217
- attr(button, {
218
- 'aria-selected': active,
219
- tabindex: active && !this.parallax ? null : -1,
220
- });
213
+ button.ariaSelected = active;
214
+ button.tabIndex = active && !this.parallax ? null : -1;
221
215
 
222
216
  if (active && button && matches(parent(el), ':focus-within')) {
223
217
  button.focus();