uikit 3.16.6-dev.7e4b0cb00 → 3.16.7-dev.248cd00b6

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 (68) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/README.md +2 -0
  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 +2 -2
  8. package/dist/css/uikit-rtl.min.css +1 -1
  9. package/dist/css/uikit.css +2 -2
  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 +5 -414
  14. package/dist/js/components/filter.min.js +1 -1
  15. package/dist/js/components/lightbox-panel.js +196 -2021
  16. package/dist/js/components/lightbox-panel.min.js +1 -1
  17. package/dist/js/components/lightbox.js +207 -2018
  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 -248
  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 +144 -2453
  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 +98 -2407
  30. package/dist/js/components/slideshow.min.js +1 -1
  31. package/dist/js/components/sortable.js +3 -408
  32. package/dist/js/components/sortable.min.js +1 -1
  33. package/dist/js/components/tooltip.js +81 -2367
  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 +90 -80
  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 +100 -113
  42. package/dist/js/uikit.min.js +1 -1
  43. package/package.json +9 -8
  44. package/src/js/api/app.js +1 -1
  45. package/src/js/api/boot.js +1 -1
  46. package/src/js/api/component.js +2 -2
  47. package/src/js/api/computed.js +1 -1
  48. package/src/js/api/events.js +1 -1
  49. package/src/js/api/global.js +43 -43
  50. package/src/js/api/index.js +5 -5
  51. package/src/js/api/instance.js +42 -41
  52. package/src/js/api/observables.js +1 -1
  53. package/src/js/api/observer.js +9 -1
  54. package/src/js/api/options.js +1 -1
  55. package/src/js/api/props.js +1 -1
  56. package/src/js/api/state.js +1 -1
  57. package/src/js/api/update.js +1 -1
  58. package/src/js/api/watch.js +1 -1
  59. package/src/js/core/accordion.js +4 -0
  60. package/src/js/mixin/slider-autoplay.js +13 -42
  61. package/src/js/mixin/slider-nav.js +4 -1
  62. package/src/js/util/scroll.js +2 -1
  63. package/src/less/components/dropdown.less +1 -1
  64. package/src/less/theme/dropdown.less +2 -0
  65. package/src/scss/components/dropdown.scss +1 -1
  66. package/src/scss/theme/dropdown.scss +2 -0
  67. package/src/scss/variables-theme.scss +2 -2
  68. package/src/scss/variables.scss +1 -1
package/dist/js/uikit.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! UIkit 3.16.6-dev.7e4b0cb00 | https://www.getuikit.com | (c) 2014 - 2023 YOOtheme | MIT License */
1
+ /*! UIkit 3.16.7-dev.248cd00b6 | https://www.getuikit.com | (c) 2014 - 2023 YOOtheme | MIT License */
2
2
 
3
3
  (function (global, factory) {
4
4
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
@@ -2140,7 +2140,7 @@
2140
2140
  };
2141
2141
  App.util = util;
2142
2142
  App.options = {};
2143
- App.version = "3.16.6-dev.7e4b0cb00";
2143
+ App.version = "3.16.7-dev.248cd00b6";
2144
2144
 
2145
2145
  const PREFIX = "uk-";
2146
2146
  const DATA = "__uikit__";
@@ -2181,7 +2181,7 @@
2181
2181
  }
2182
2182
  }
2183
2183
  function getComponents(element) {
2184
- return element[DATA] || {};
2184
+ return (element == null ? void 0 : element[DATA]) || {};
2185
2185
  }
2186
2186
  function getComponent(element, name) {
2187
2187
  return getComponents(element)[name];
@@ -2200,34 +2200,46 @@
2200
2200
  }
2201
2201
  }
2202
2202
 
2203
- App.component = component;
2204
- App.getComponents = getComponents;
2205
- App.getComponent = getComponent;
2206
- App.use = function(plugin) {
2207
- if (plugin.installed) {
2208
- return;
2209
- }
2210
- plugin.call(null, this);
2211
- plugin.installed = true;
2212
- return this;
2213
- };
2214
- App.mixin = function(mixin, component2) {
2215
- component2 = (isString(component2) ? this.component(component2) : component2) || this;
2216
- component2.options = mergeOptions(component2.options, mixin);
2217
- };
2218
- App.extend = function(options) {
2219
- options = options || {};
2220
- const Super = this;
2221
- const Sub = function UIkitComponent(options2) {
2222
- init$1(this, options2);
2203
+ function globalApi(App) {
2204
+ App.component = component;
2205
+ App.getComponents = getComponents;
2206
+ App.getComponent = getComponent;
2207
+ App.update = update;
2208
+ App.use = function(plugin) {
2209
+ if (plugin.installed) {
2210
+ return;
2211
+ }
2212
+ plugin.call(null, this);
2213
+ plugin.installed = true;
2214
+ return this;
2223
2215
  };
2224
- Sub.prototype = Object.create(Super.prototype);
2225
- Sub.prototype.constructor = Sub;
2226
- Sub.options = mergeOptions(Super.options, options);
2227
- Sub.super = Super;
2228
- Sub.extend = Super.extend;
2229
- return Sub;
2230
- };
2216
+ App.mixin = function(mixin, component2) {
2217
+ component2 = (isString(component2) ? this.component(component2) : component2) || this;
2218
+ component2.options = mergeOptions(component2.options, mixin);
2219
+ };
2220
+ App.extend = function(options) {
2221
+ options = options || {};
2222
+ const Super = this;
2223
+ const Sub = function UIkitComponent(options2) {
2224
+ init$1(this, options2);
2225
+ };
2226
+ Sub.prototype = Object.create(Super.prototype);
2227
+ Sub.prototype.constructor = Sub;
2228
+ Sub.options = mergeOptions(Super.options, options);
2229
+ Sub.super = Super;
2230
+ Sub.extend = Super.extend;
2231
+ return Sub;
2232
+ };
2233
+ let container;
2234
+ Object.defineProperty(App, "container", {
2235
+ get() {
2236
+ return container || document.body;
2237
+ },
2238
+ set(element) {
2239
+ container = $(element);
2240
+ }
2241
+ });
2242
+ }
2231
2243
  function update(element, e) {
2232
2244
  element = element ? toNode(element) : document.body;
2233
2245
  for (const parentEl of parents(element).reverse()) {
@@ -2235,63 +2247,55 @@
2235
2247
  }
2236
2248
  apply(element, (element2) => updateElement(element2, e));
2237
2249
  }
2238
- App.update = update;
2239
2250
  function updateElement(element, e) {
2240
2251
  const components = getComponents(element);
2241
2252
  for (const name in components) {
2242
2253
  callUpdate(components[name], e);
2243
2254
  }
2244
2255
  }
2245
- let container;
2246
- Object.defineProperty(App, "container", {
2247
- get() {
2248
- return container || document.body;
2249
- },
2250
- set(element) {
2251
- container = $(element);
2252
- }
2253
- });
2254
2256
 
2255
- App.prototype.$mount = function(el) {
2256
- const instance = this;
2257
- attachToElement(el, instance);
2258
- instance.$options.el = el;
2259
- if (within(el, document)) {
2260
- callConnected(instance);
2261
- }
2262
- };
2263
- App.prototype.$destroy = function(removeEl = false) {
2264
- const instance = this;
2265
- const { el } = instance.$options;
2266
- if (el) {
2267
- callDisconnected(instance);
2268
- }
2269
- callHook(instance, "destroy");
2270
- detachFromElement(el, instance);
2271
- if (removeEl) {
2272
- remove$1(instance.$el);
2273
- }
2274
- };
2275
- App.prototype.$create = createComponent;
2276
- App.prototype.$emit = function(e) {
2277
- callUpdate(this, e);
2278
- };
2279
- App.prototype.$update = function(element = this.$el, e) {
2280
- update(element, e);
2281
- };
2282
- App.prototype.$reset = function() {
2283
- callDisconnected(this);
2284
- callConnected(this);
2285
- };
2286
- App.prototype.$getComponent = getComponent;
2287
- Object.defineProperties(App.prototype, {
2288
- $el: {
2289
- get() {
2290
- return this.$options.el;
2257
+ function instanceApi(App) {
2258
+ App.prototype.$mount = function(el) {
2259
+ const instance = this;
2260
+ attachToElement(el, instance);
2261
+ instance.$options.el = el;
2262
+ if (within(el, document)) {
2263
+ callConnected(instance);
2291
2264
  }
2292
- },
2293
- $container: Object.getOwnPropertyDescriptor(App, "container")
2294
- });
2265
+ };
2266
+ App.prototype.$destroy = function(removeEl = false) {
2267
+ const instance = this;
2268
+ const { el } = instance.$options;
2269
+ if (el) {
2270
+ callDisconnected(instance);
2271
+ }
2272
+ callHook(instance, "destroy");
2273
+ detachFromElement(el, instance);
2274
+ if (removeEl) {
2275
+ remove$1(instance.$el);
2276
+ }
2277
+ };
2278
+ App.prototype.$create = createComponent;
2279
+ App.prototype.$emit = function(e) {
2280
+ callUpdate(this, e);
2281
+ };
2282
+ App.prototype.$update = function(element = this.$el, e) {
2283
+ update(element, e);
2284
+ };
2285
+ App.prototype.$reset = function() {
2286
+ callDisconnected(this);
2287
+ callConnected(this);
2288
+ };
2289
+ App.prototype.$getComponent = getComponent;
2290
+ Object.defineProperties(App.prototype, {
2291
+ $el: {
2292
+ get() {
2293
+ return this.$options.el;
2294
+ }
2295
+ },
2296
+ $container: Object.getOwnPropertyDescriptor(App, "container")
2297
+ });
2298
+ }
2295
2299
  function generateId(instance, el = instance.$el, postfix = "") {
2296
2300
  if (el.id) {
2297
2301
  return el.id;
@@ -2303,6 +2307,9 @@
2303
2307
  return id;
2304
2308
  }
2305
2309
 
2310
+ globalApi(App);
2311
+ instanceApi(App);
2312
+
2306
2313
  function boot(App) {
2307
2314
  if (inBrowser && window.MutationObserver) {
2308
2315
  requestAnimationFrame(() => init(App));
@@ -2766,6 +2773,9 @@
2766
2773
  "aria-disabled": !this.collapsible && activeItems.length < 2 && active
2767
2774
  });
2768
2775
  attr(content, { role: "region", "aria-labelledby": toggle.id });
2776
+ if (isTag(content, "ul")) {
2777
+ attr(children(content), "role", "presentation");
2778
+ }
2769
2779
  }
2770
2780
  },
2771
2781
  methods: {
@@ -3084,7 +3094,7 @@
3084
3094
  el,
3085
3095
  "touchmove",
3086
3096
  (e) => {
3087
- if (e.targetTouches.length !== 1) {
3097
+ if (e.targetTouches.length !== 1 || matches(e.target, 'input[type="range"')) {
3088
3098
  return;
3089
3099
  }
3090
3100
  let [{ scrollHeight, clientHeight }] = scrollParents(e.target);
@@ -6933,7 +6943,10 @@
6933
6943
  }
6934
6944
  },
6935
6945
  connected() {
6936
- attr(this.$el, "aria-roledescription", "carousel");
6946
+ attr(this.$el, {
6947
+ role: "region",
6948
+ ariaRoleDescription: "carousel"
6949
+ });
6937
6950
  },
6938
6951
  update: [
6939
6952
  {
@@ -7226,7 +7239,7 @@
7226
7239
  pauseOnHover: true
7227
7240
  },
7228
7241
  connected() {
7229
- attr(this.list, "aria-live", "polite");
7242
+ attr(this.list, "aria-live", this.autoplay ? "off" : "polite");
7230
7243
  this.autoplay && this.startAutoplay();
7231
7244
  },
7232
7245
  disconnected() {
@@ -7251,45 +7264,19 @@
7251
7264
  this.startAutoplay();
7252
7265
  }
7253
7266
  }
7254
- },
7255
- {
7256
- name: `${pointerEnter} focusin`,
7257
- filter() {
7258
- return this.autoplay;
7259
- },
7260
- handler(e) {
7261
- if (e.type !== pointerEnter || this.pauseOnHover) {
7262
- this.stopAutoplay();
7263
- }
7264
- }
7265
- },
7266
- {
7267
- name: `${pointerLeave} focusout`,
7268
- filter() {
7269
- return this.autoplay;
7270
- },
7271
- handler(e) {
7272
- if (e.type !== pointerLeave || this.pauseOnHover) {
7273
- this.startAutoplay();
7274
- }
7275
- }
7276
7267
  }
7277
7268
  ],
7278
7269
  methods: {
7279
7270
  startAutoplay() {
7280
- if (this.draggable && matches(this.$el, ":focus-within") || this.pauseOnHover && matches(this.$el, ":hover")) {
7281
- return;
7282
- }
7283
7271
  this.stopAutoplay();
7284
- this.interval = setInterval(
7285
- () => !this.stack.length && this.show("next"),
7286
- this.autoplayInterval
7287
- );
7288
- attr(this.list, "aria-live", "off");
7272
+ this.interval = setInterval(() => {
7273
+ if (!(this.stack.length || this.draggable && matches(this.$el, ":focus-within") || this.pauseOnHover && matches(this.$el, ":hover"))) {
7274
+ this.show("next");
7275
+ }
7276
+ }, this.autoplayInterval);
7289
7277
  },
7290
7278
  stopAutoplay() {
7291
7279
  clearInterval(this.interval);
7292
- attr(this.list, "aria-live", "polite");
7293
7280
  }
7294
7281
  }
7295
7282
  };