uikit 3.16.6 → 3.16.7-dev.5c86c1ae7
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.
- package/CHANGELOG.md +9 -0
- package/README.md +2 -0
- package/dist/css/uikit-core-rtl.css +1 -1
- package/dist/css/uikit-core-rtl.min.css +1 -1
- package/dist/css/uikit-core.css +1 -1
- package/dist/css/uikit-core.min.css +1 -1
- package/dist/css/uikit-rtl.css +2 -2
- package/dist/css/uikit-rtl.min.css +1 -1
- package/dist/css/uikit.css +2 -2
- package/dist/css/uikit.min.css +1 -1
- package/dist/js/components/countdown.js +1 -1
- package/dist/js/components/countdown.min.js +1 -1
- package/dist/js/components/filter.js +5 -414
- package/dist/js/components/filter.min.js +1 -1
- package/dist/js/components/lightbox-panel.js +193 -2021
- package/dist/js/components/lightbox-panel.min.js +1 -1
- package/dist/js/components/lightbox.js +204 -2018
- package/dist/js/components/lightbox.min.js +1 -1
- package/dist/js/components/notification.js +1 -1
- package/dist/js/components/notification.min.js +1 -1
- package/dist/js/components/parallax.js +3 -248
- package/dist/js/components/parallax.min.js +1 -1
- package/dist/js/components/slider-parallax.js +1 -1
- package/dist/js/components/slider-parallax.min.js +1 -1
- package/dist/js/components/slider.js +141 -2453
- package/dist/js/components/slider.min.js +1 -1
- package/dist/js/components/slideshow-parallax.js +1 -1
- package/dist/js/components/slideshow-parallax.min.js +1 -1
- package/dist/js/components/slideshow.js +95 -2407
- package/dist/js/components/slideshow.min.js +1 -1
- package/dist/js/components/sortable.js +3 -408
- package/dist/js/components/sortable.min.js +1 -1
- package/dist/js/components/tooltip.js +81 -2367
- package/dist/js/components/tooltip.min.js +1 -1
- package/dist/js/components/upload.js +1 -1
- package/dist/js/components/upload.min.js +1 -1
- package/dist/js/uikit-core.js +89 -79
- package/dist/js/uikit-core.min.js +1 -1
- package/dist/js/uikit-icons.js +1 -1
- package/dist/js/uikit-icons.min.js +1 -1
- package/dist/js/uikit.js +95 -111
- package/dist/js/uikit.min.js +1 -1
- package/package.json +9 -8
- package/src/js/api/app.js +1 -1
- package/src/js/api/boot.js +1 -1
- package/src/js/api/component.js +1 -1
- package/src/js/api/computed.js +1 -1
- package/src/js/api/events.js +1 -1
- package/src/js/api/global.js +43 -43
- package/src/js/api/index.js +5 -5
- package/src/js/api/instance.js +42 -41
- package/src/js/api/observables.js +1 -1
- package/src/js/api/observer.js +9 -1
- package/src/js/api/options.js +1 -1
- package/src/js/api/props.js +1 -1
- package/src/js/api/state.js +1 -1
- package/src/js/api/update.js +1 -1
- package/src/js/api/watch.js +1 -1
- package/src/js/core/accordion.js +4 -0
- package/src/js/mixin/slider-autoplay.js +13 -42
- package/src/js/util/scroll.js +2 -1
- package/src/less/components/dropdown.less +1 -1
- package/src/less/theme/dropdown.less +2 -0
- package/src/scss/components/dropdown.scss +1 -1
- package/src/scss/theme/dropdown.scss +2 -0
- package/src/scss/variables-theme.scss +2 -2
- package/src/scss/variables.scss +1 -1
package/dist/js/uikit.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.16.
|
|
1
|
+
/*! UIkit 3.16.7-dev.5c86c1ae7 | 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.
|
|
2143
|
+
App.version = "3.16.7-dev.5c86c1ae7";
|
|
2144
2144
|
|
|
2145
2145
|
const PREFIX = "uk-";
|
|
2146
2146
|
const DATA = "__uikit__";
|
|
@@ -2200,34 +2200,46 @@
|
|
|
2200
2200
|
}
|
|
2201
2201
|
}
|
|
2202
2202
|
|
|
2203
|
-
App
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
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
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
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
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
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
|
-
|
|
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);
|
|
@@ -7226,7 +7236,7 @@
|
|
|
7226
7236
|
pauseOnHover: true
|
|
7227
7237
|
},
|
|
7228
7238
|
connected() {
|
|
7229
|
-
attr(this.list, "aria-live", "polite");
|
|
7239
|
+
attr(this.list, "aria-live", this.autoplay ? "off" : "polite");
|
|
7230
7240
|
this.autoplay && this.startAutoplay();
|
|
7231
7241
|
},
|
|
7232
7242
|
disconnected() {
|
|
@@ -7251,45 +7261,19 @@
|
|
|
7251
7261
|
this.startAutoplay();
|
|
7252
7262
|
}
|
|
7253
7263
|
}
|
|
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
7264
|
}
|
|
7277
7265
|
],
|
|
7278
7266
|
methods: {
|
|
7279
7267
|
startAutoplay() {
|
|
7280
|
-
if (this.draggable && matches(this.$el, ":focus-within") || this.pauseOnHover && matches(this.$el, ":hover")) {
|
|
7281
|
-
return;
|
|
7282
|
-
}
|
|
7283
7268
|
this.stopAutoplay();
|
|
7284
|
-
this.interval = setInterval(
|
|
7285
|
-
(
|
|
7286
|
-
|
|
7287
|
-
|
|
7288
|
-
|
|
7269
|
+
this.interval = setInterval(() => {
|
|
7270
|
+
if (!(this.stack.length || this.draggable && matches(this.$el, ":focus-within") || this.pauseOnHover && matches(this.$el, ":hover"))) {
|
|
7271
|
+
this.show("next");
|
|
7272
|
+
}
|
|
7273
|
+
}, this.autoplayInterval);
|
|
7289
7274
|
},
|
|
7290
7275
|
stopAutoplay() {
|
|
7291
7276
|
clearInterval(this.interval);
|
|
7292
|
-
attr(this.list, "aria-live", "polite");
|
|
7293
7277
|
}
|
|
7294
7278
|
}
|
|
7295
7279
|
};
|