uikit 3.15.7-dev.b8781768c → 3.15.8-dev.777d3e60f
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/dist/css/uikit-core-rtl.css +7 -1
- package/dist/css/uikit-core-rtl.min.css +1 -1
- package/dist/css/uikit-core.css +7 -1
- package/dist/css/uikit-core.min.css +1 -1
- package/dist/css/uikit-rtl.css +7 -1
- package/dist/css/uikit-rtl.min.css +1 -1
- package/dist/css/uikit.css +7 -1
- package/dist/css/uikit.min.css +1 -1
- package/dist/js/components/countdown.js +2 -2
- package/dist/js/components/countdown.min.js +1 -1
- package/dist/js/components/filter.js +2 -3
- package/dist/js/components/filter.min.js +1 -1
- package/dist/js/components/lightbox-panel.js +2 -4
- package/dist/js/components/lightbox-panel.min.js +1 -1
- package/dist/js/components/lightbox.js +2 -4
- 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 +1 -1
- 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 +2 -2
- 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 +2 -2
- package/dist/js/components/slideshow.min.js +1 -1
- package/dist/js/components/sortable.js +2 -2
- package/dist/js/components/sortable.min.js +1 -1
- package/dist/js/components/tooltip.js +3 -4
- 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 +45 -55
- package/dist/js/uikit-core.min.js +2 -2
- package/dist/js/uikit-icons.js +1 -1
- package/dist/js/uikit-icons.min.js +1 -1
- package/dist/js/uikit.js +48 -62
- package/dist/js/uikit.min.js +2 -2
- package/package.json +8 -8
- package/src/js/api/boot.js +6 -8
- package/src/js/api/component.js +18 -21
- package/src/js/api/instance.js +6 -11
- package/src/js/api/state.js +11 -11
- package/src/js/components/filter.js +1 -2
- package/src/js/components/lightbox-panel.js +0 -2
- package/src/js/components/tooltip.js +2 -3
- package/src/js/core/icon.js +1 -1
- package/src/js/core/toggle.js +2 -2
- package/src/js/mixin/class.js +2 -2
- package/src/less/components/list.less +6 -0
- package/src/scss/components/list.scss +6 -0
package/dist/js/uikit.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.15.
|
|
1
|
+
/*! UIkit 3.15.8-dev.777d3e60f | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */
|
|
2
2
|
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
@@ -2536,7 +2536,7 @@
|
|
|
2536
2536
|
UIkit.prototype._initProps = function (props) {
|
|
2537
2537
|
let key;
|
|
2538
2538
|
|
|
2539
|
-
props = props || getProps$1(this.$options
|
|
2539
|
+
props = props || getProps$1(this.$options);
|
|
2540
2540
|
|
|
2541
2541
|
for (key in props) {
|
|
2542
2542
|
if (!isUndefined(props[key])) {
|
|
@@ -2587,9 +2587,9 @@
|
|
|
2587
2587
|
};
|
|
2588
2588
|
}
|
|
2589
2589
|
|
|
2590
|
-
function getProps$1(opts
|
|
2590
|
+
function getProps$1(opts) {
|
|
2591
2591
|
const data$1 = {};
|
|
2592
|
-
const { args = [], props = {}, el } = opts;
|
|
2592
|
+
const { args = [], props = {}, el, id } = opts;
|
|
2593
2593
|
|
|
2594
2594
|
if (!props) {
|
|
2595
2595
|
return data$1;
|
|
@@ -2612,7 +2612,7 @@
|
|
|
2612
2612
|
data$1[key] = value;
|
|
2613
2613
|
}
|
|
2614
2614
|
|
|
2615
|
-
const options = parseOptions(data(el,
|
|
2615
|
+
const options = parseOptions(data(el, id), args);
|
|
2616
2616
|
|
|
2617
2617
|
for (const key in options) {
|
|
2618
2618
|
const prop = camelize(key);
|
|
@@ -2740,24 +2740,24 @@
|
|
|
2740
2740
|
}
|
|
2741
2741
|
|
|
2742
2742
|
function initPropsObserver(component) {
|
|
2743
|
-
const { $
|
|
2744
|
-
const { attrs, props, el } = $options;
|
|
2743
|
+
const { $options, $props } = component;
|
|
2744
|
+
const { id, attrs, props, el } = $options;
|
|
2745
2745
|
|
|
2746
2746
|
if (!props || attrs === false) {
|
|
2747
2747
|
return;
|
|
2748
2748
|
}
|
|
2749
2749
|
|
|
2750
2750
|
const attributes = isArray(attrs) ? attrs : Object.keys(props);
|
|
2751
|
-
const filter = attributes.map((key) => hyphenate(key)).concat(
|
|
2751
|
+
const filter = attributes.map((key) => hyphenate(key)).concat(id);
|
|
2752
2752
|
|
|
2753
2753
|
const observer = new MutationObserver((records) => {
|
|
2754
|
-
const data = getProps$1($options
|
|
2754
|
+
const data = getProps$1($options);
|
|
2755
2755
|
if (
|
|
2756
2756
|
records.some((_ref3) => {let { attributeName } = _ref3;
|
|
2757
2757
|
const prop = attributeName.replace('data-', '');
|
|
2758
|
-
return (
|
|
2759
|
-
prop
|
|
2760
|
-
|
|
2758
|
+
return (prop === id ? attributes : [camelize(prop), camelize(attributeName)]).some(
|
|
2759
|
+
(prop) => !isUndefined(data[prop]) && data[prop] !== $props[prop]);
|
|
2760
|
+
|
|
2761
2761
|
}))
|
|
2762
2762
|
{
|
|
2763
2763
|
component.$reset();
|
|
@@ -2838,36 +2838,31 @@
|
|
|
2838
2838
|
|
|
2839
2839
|
UIkit.prototype.$getComponent = UIkit.getComponent;
|
|
2840
2840
|
|
|
2841
|
-
|
|
2842
|
-
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
$name: {
|
|
2846
|
-
get() {
|
|
2847
|
-
return componentName(this.$options.name);
|
|
2848
|
-
} } });
|
|
2849
|
-
|
|
2841
|
+
Object.defineProperty(
|
|
2842
|
+
UIkit.prototype,
|
|
2843
|
+
'$container',
|
|
2844
|
+
Object.getOwnPropertyDescriptor(UIkit, 'container'));
|
|
2850
2845
|
|
|
2851
2846
|
}
|
|
2852
2847
|
|
|
2848
|
+
const components$3 = {};
|
|
2853
2849
|
function componentAPI (UIkit) {
|
|
2854
|
-
const DATA = UIkit
|
|
2855
|
-
|
|
2856
|
-
const components = {};
|
|
2850
|
+
const { data: DATA, prefix: PREFIX } = UIkit;
|
|
2857
2851
|
|
|
2858
2852
|
UIkit.component = function (name, options) {
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
name = camelize(id);
|
|
2853
|
+
name = hyphenate(name);
|
|
2854
|
+
const id = PREFIX + name;
|
|
2862
2855
|
|
|
2863
2856
|
if (!options) {
|
|
2864
|
-
if (isPlainObject(components[
|
|
2865
|
-
components[
|
|
2857
|
+
if (isPlainObject(components$3[id])) {
|
|
2858
|
+
components$3[id] = components$3["data-" + id] = UIkit.extend(components$3[id]);
|
|
2866
2859
|
}
|
|
2867
2860
|
|
|
2868
|
-
return components[
|
|
2861
|
+
return components$3[id];
|
|
2869
2862
|
}
|
|
2870
2863
|
|
|
2864
|
+
name = camelize(name);
|
|
2865
|
+
|
|
2871
2866
|
UIkit[name] = function (element, data) {
|
|
2872
2867
|
const component = UIkit.component(name);
|
|
2873
2868
|
|
|
@@ -2894,15 +2889,16 @@
|
|
|
2894
2889
|
|
|
2895
2890
|
const opt = isPlainObject(options) ? { ...options } : options.options;
|
|
2896
2891
|
|
|
2892
|
+
opt.id = id;
|
|
2897
2893
|
opt.name = name;
|
|
2898
2894
|
|
|
2899
2895
|
opt.install == null ? void 0 : opt.install(UIkit, opt, name);
|
|
2900
2896
|
|
|
2901
2897
|
if (UIkit._initialized && !opt.functional) {
|
|
2902
|
-
requestAnimationFrame(() => UIkit[name]("[
|
|
2898
|
+
requestAnimationFrame(() => UIkit[name]("[" + id + "],[data-" + id + "]"));
|
|
2903
2899
|
}
|
|
2904
2900
|
|
|
2905
|
-
return components[
|
|
2901
|
+
return components$3[id] = components$3["data-" + id] = isPlainObject(options) ? opt : options;
|
|
2906
2902
|
};
|
|
2907
2903
|
|
|
2908
2904
|
UIkit.getComponents = (element) => (element == null ? void 0 : element[DATA]) || {};
|
|
@@ -2917,10 +2913,7 @@
|
|
|
2917
2913
|
|
|
2918
2914
|
for (const attribute of node.attributes) {
|
|
2919
2915
|
const name = getComponentName(attribute.name);
|
|
2920
|
-
|
|
2921
|
-
if (name && name in components) {
|
|
2922
|
-
UIkit[name](node);
|
|
2923
|
-
}
|
|
2916
|
+
name && UIkit[name](node);
|
|
2924
2917
|
}
|
|
2925
2918
|
};
|
|
2926
2919
|
|
|
@@ -2931,11 +2924,10 @@
|
|
|
2931
2924
|
};
|
|
2932
2925
|
}
|
|
2933
2926
|
|
|
2934
|
-
|
|
2935
|
-
|
|
2936
|
-
|
|
2937
|
-
|
|
2938
|
-
});
|
|
2927
|
+
function getComponentName(attribute) {
|
|
2928
|
+
const cmp = components$3[attribute];
|
|
2929
|
+
return cmp && (isPlainObject(cmp) ? cmp : cmp.options).name;
|
|
2930
|
+
}
|
|
2939
2931
|
|
|
2940
2932
|
const UIkit = function (options) {
|
|
2941
2933
|
this._init(options);
|
|
@@ -2945,7 +2937,7 @@
|
|
|
2945
2937
|
UIkit.data = '__uikit__';
|
|
2946
2938
|
UIkit.prefix = 'uk-';
|
|
2947
2939
|
UIkit.options = {};
|
|
2948
|
-
UIkit.version = '3.15.
|
|
2940
|
+
UIkit.version = '3.15.8-dev.777d3e60f';
|
|
2949
2941
|
|
|
2950
2942
|
globalAPI(UIkit);
|
|
2951
2943
|
hooksAPI(UIkit);
|
|
@@ -2994,25 +2986,23 @@
|
|
|
2994
2986
|
}
|
|
2995
2987
|
}
|
|
2996
2988
|
|
|
2997
|
-
function applyAttributeMutation(_ref2) {
|
|
2989
|
+
function applyAttributeMutation(_ref2) {let { target, attributeName } = _ref2;
|
|
2998
2990
|
const name = getComponentName(attributeName);
|
|
2999
2991
|
|
|
3000
|
-
if (
|
|
3001
|
-
|
|
3002
|
-
|
|
2992
|
+
if (name) {var _UIkit$getComponent;
|
|
2993
|
+
if (hasAttr(target, attributeName)) {
|
|
2994
|
+
UIkit[name](target);
|
|
2995
|
+
return;
|
|
2996
|
+
}
|
|
3003
2997
|
|
|
3004
|
-
|
|
3005
|
-
UIkit[name](target);
|
|
3006
|
-
return;
|
|
2998
|
+
(_UIkit$getComponent = UIkit.getComponent(target, name)) == null ? void 0 : _UIkit$getComponent.$destroy();
|
|
3007
2999
|
}
|
|
3008
|
-
|
|
3009
|
-
(_UIkit$getComponent = UIkit.getComponent(target, name)) == null ? void 0 : _UIkit$getComponent.$destroy();
|
|
3010
3000
|
}
|
|
3011
3001
|
}
|
|
3012
3002
|
|
|
3013
3003
|
var Class = {
|
|
3014
3004
|
connected() {
|
|
3015
|
-
|
|
3005
|
+
addClass(this.$el, this.$options.id);
|
|
3016
3006
|
} };
|
|
3017
3007
|
|
|
3018
3008
|
var Lazyload = {
|
|
@@ -5437,7 +5427,7 @@
|
|
|
5437
5427
|
|
|
5438
5428
|
|
|
5439
5429
|
beforeConnect() {
|
|
5440
|
-
addClass(this.$el, this.$
|
|
5430
|
+
addClass(this.$el, this.$options.id);
|
|
5441
5431
|
} };
|
|
5442
5432
|
|
|
5443
5433
|
|
|
@@ -7718,8 +7708,8 @@
|
|
|
7718
7708
|
return this.target;
|
|
7719
7709
|
},
|
|
7720
7710
|
|
|
7721
|
-
handler(_ref2) {let { type } = _ref2;
|
|
7722
|
-
this.updateAria(type === 'show');
|
|
7711
|
+
handler(_ref2) {let { target, type } = _ref2;
|
|
7712
|
+
this.updateAria(target === this.target[0] && type === 'show');
|
|
7723
7713
|
} },
|
|
7724
7714
|
|
|
7725
7715
|
|
|
@@ -8355,8 +8345,7 @@
|
|
|
8355
8345
|
}
|
|
8356
8346
|
|
|
8357
8347
|
function mergeState(el, attr, state) {
|
|
8358
|
-
const
|
|
8359
|
-
const { filter, group, sort, order = 'asc' } = filterBy;
|
|
8348
|
+
const { filter, group, sort, order = 'asc' } = getFilter(el, attr);
|
|
8360
8349
|
|
|
8361
8350
|
if (filter || isUndefined(sort)) {
|
|
8362
8351
|
if (group) {
|
|
@@ -9330,7 +9319,6 @@
|
|
|
9330
9319
|
|
|
9331
9320
|
let matches;
|
|
9332
9321
|
const iframeAttrs = {
|
|
9333
|
-
frameborder: '0',
|
|
9334
9322
|
allowfullscreen: '',
|
|
9335
9323
|
style: 'max-width: 100%; box-sizing: border-box;',
|
|
9336
9324
|
'uk-responsive': '',
|
|
@@ -9372,7 +9360,6 @@
|
|
|
9372
9360
|
item,
|
|
9373
9361
|
createEl('iframe', {
|
|
9374
9362
|
src,
|
|
9375
|
-
frameborder: '0',
|
|
9376
9363
|
allowfullscreen: '',
|
|
9377
9364
|
class: 'uk-lightbox-iframe',
|
|
9378
9365
|
...attrs }));
|
|
@@ -11257,14 +11244,13 @@
|
|
|
11257
11244
|
}
|
|
11258
11245
|
|
|
11259
11246
|
this._unbind = once(
|
|
11260
|
-
document, "
|
|
11247
|
+
document, "keydown " +
|
|
11261
11248
|
pointerDown$1,
|
|
11262
11249
|
this.hide,
|
|
11263
11250
|
false,
|
|
11264
11251
|
(e) =>
|
|
11265
11252
|
e.type === pointerDown$1 && !within(e.target, this.$el) ||
|
|
11266
|
-
e.type === 'keydown' && e.keyCode === 27
|
|
11267
|
-
e.type === 'show' && e.detail[0] !== this && e.detail[0].$name === this.$name);
|
|
11253
|
+
e.type === 'keydown' && e.keyCode === 27);
|
|
11268
11254
|
|
|
11269
11255
|
|
|
11270
11256
|
clearTimeout(this.showTimer);
|