uikit 3.11.2-dev.3dfa2c50b → 3.11.2-dev.45194f70c
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 +40 -19
- package/dist/css/uikit-core-rtl.css +86 -185
- package/dist/css/uikit-core-rtl.min.css +1 -1
- package/dist/css/uikit-core.css +86 -185
- package/dist/css/uikit-core.min.css +1 -1
- package/dist/css/uikit-rtl.css +88 -191
- package/dist/css/uikit-rtl.min.css +1 -1
- package/dist/css/uikit.css +88 -191
- package/dist/css/uikit.min.css +1 -1
- package/dist/js/components/countdown.js +3 -3
- package/dist/js/components/countdown.min.js +1 -1
- package/dist/js/components/filter.js +6 -8
- package/dist/js/components/filter.min.js +1 -1
- package/dist/js/components/lightbox-panel.js +29 -68
- package/dist/js/components/lightbox-panel.min.js +1 -1
- package/dist/js/components/lightbox.js +30 -70
- 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 +115 -78
- package/dist/js/components/parallax.min.js +1 -1
- package/dist/js/components/slider-parallax.js +115 -78
- package/dist/js/components/slider-parallax.min.js +1 -1
- package/dist/js/components/slider.js +79 -58
- package/dist/js/components/slider.min.js +1 -1
- package/dist/js/components/slideshow-parallax.js +115 -78
- package/dist/js/components/slideshow-parallax.min.js +1 -1
- package/dist/js/components/slideshow.js +35 -29
- package/dist/js/components/slideshow.min.js +1 -1
- package/dist/js/components/sortable.js +5 -7
- package/dist/js/components/sortable.min.js +1 -1
- package/dist/js/components/tooltip.js +2 -2
- 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 +408 -326
- 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 +646 -528
- package/dist/js/uikit.min.js +1 -1
- package/package.json +1 -1
- package/src/js/api/component.js +2 -11
- package/src/js/api/hooks.js +3 -3
- package/src/js/api/state.js +34 -1
- package/src/js/components/countdown.js +2 -2
- package/src/js/components/filter.js +2 -3
- package/src/js/components/internal/lightbox-animations.js +4 -3
- package/src/js/components/internal/slider-preload.js +18 -0
- package/src/js/components/internal/slideshow-animations.js +4 -3
- package/src/js/components/lightbox-panel.js +34 -58
- package/src/js/components/lightbox.js +1 -2
- package/src/js/components/slider.js +60 -43
- package/src/js/components/slideshow.js +8 -1
- package/src/js/components/sortable.js +1 -1
- package/src/js/core/accordion.js +6 -1
- package/src/js/core/alert.js +1 -2
- package/src/js/core/core.js +2 -21
- package/src/js/core/cover.js +5 -1
- package/src/js/core/drop.js +3 -1
- package/src/js/core/form-custom.js +2 -2
- package/src/js/core/height-viewport.js +3 -0
- package/src/js/core/icon.js +13 -6
- package/src/js/core/img.js +131 -122
- package/src/js/core/modal.js +1 -2
- package/src/js/core/navbar.js +3 -3
- package/src/js/core/sticky.js +51 -57
- package/src/js/core/svg.js +10 -6
- package/src/js/core/switcher.js +6 -1
- package/src/js/core/toggle.js +5 -2
- package/src/js/core/video.js +13 -1
- package/src/js/mixin/internal/animate-slide.js +9 -12
- package/src/js/mixin/lazyload.js +16 -0
- package/src/js/mixin/parallax.js +116 -79
- package/src/js/mixin/slider.js +8 -22
- package/src/js/mixin/slideshow.js +2 -6
- package/src/js/mixin/togglable.js +1 -2
- package/src/js/util/ajax.js +15 -14
- package/src/js/util/animation.js +7 -12
- package/src/js/util/dimensions.js +4 -4
- package/src/js/util/dom.js +37 -31
- package/src/js/util/index.js +1 -0
- package/src/js/util/lang.js +7 -6
- package/src/js/util/observer.js +36 -0
- package/src/js/util/options.js +2 -11
- package/src/js/util/player.js +5 -4
- package/src/js/util/selector.js +12 -18
- package/src/js/util/style.js +4 -4
- package/src/less/components/base.less +10 -33
- package/src/less/components/form-range.less +48 -95
- package/src/less/components/form.less +0 -1
- package/src/less/components/height.less +3 -0
- package/src/less/components/leader.less +0 -1
- package/src/less/components/lightbox.less +0 -1
- package/src/less/components/modal.less +3 -7
- package/src/less/components/progress.less +14 -36
- package/src/less/components/slider.less +0 -3
- package/src/less/components/slideshow.less +0 -3
- package/src/less/components/text.less +16 -32
- package/src/scss/components/base.scss +10 -33
- package/src/scss/components/form-range.scss +48 -95
- package/src/scss/components/form.scss +0 -1
- package/src/scss/components/height.scss +3 -0
- package/src/scss/components/leader.scss +0 -1
- package/src/scss/components/lightbox.scss +0 -1
- package/src/scss/components/modal.scss +3 -7
- package/src/scss/components/progress.scss +14 -36
- package/src/scss/components/slider.scss +0 -3
- package/src/scss/components/slideshow.scss +0 -3
- package/src/scss/components/text.scss +16 -32
- package/src/scss/mixins-theme.scss +1 -1
- package/src/scss/mixins.scss +1 -1
- package/src/scss/variables-theme.scss +3 -3
- package/src/scss/variables.scss +3 -3
- package/tests/align.html +10 -10
- package/tests/animation.html +2 -2
- package/tests/article.html +2 -2
- package/tests/base.html +3 -3
- package/tests/card.html +10 -10
- package/tests/column.html +3 -3
- package/tests/comment.html +9 -9
- package/tests/dotnav.html +3 -3
- package/tests/image.html +296 -64
- package/tests/images/image-type.avif +0 -0
- package/tests/images/image-type.jpeg +0 -0
- package/tests/images/image-type.webp +0 -0
- package/tests/index.html +8 -8
- package/tests/lightbox.html +10 -10
- package/tests/marker.html +2 -2
- package/tests/modal.html +8 -9
- package/tests/navbar.html +2 -2
- package/tests/overlay.html +7 -7
- package/tests/parallax.html +16 -7
- package/tests/position.html +12 -12
- package/tests/slidenav.html +12 -12
- package/tests/slider.html +20 -20
- package/tests/sortable.html +1 -1
- package/tests/sticky-parallax.html +56 -71
- package/tests/svg.html +6 -6
- package/tests/table.html +11 -11
- package/tests/thumbnav.html +12 -12
- package/tests/transition.html +30 -30
- package/tests/utility.html +50 -33
- package/tests/video.html +1 -1
- package/tests/width.html +1 -1
- package/src/js/util/promise.js +0 -0
- package/tests/images/animated.gif +0 -0
package/src/js/core/drop.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import Container from '../mixin/container';
|
|
2
|
+
import Lazyload from '../mixin/lazyload';
|
|
2
3
|
import Position from '../mixin/position';
|
|
3
4
|
import Togglable from '../mixin/togglable';
|
|
4
5
|
import {
|
|
@@ -30,7 +31,7 @@ import {
|
|
|
30
31
|
export let active;
|
|
31
32
|
|
|
32
33
|
export default {
|
|
33
|
-
mixins: [Container, Position, Togglable],
|
|
34
|
+
mixins: [Container, Lazyload, Position, Togglable],
|
|
34
35
|
|
|
35
36
|
args: 'pos',
|
|
36
37
|
|
|
@@ -84,6 +85,7 @@ export default {
|
|
|
84
85
|
mode: this.mode,
|
|
85
86
|
}).$el;
|
|
86
87
|
attr(this.target, 'aria-haspopup', true);
|
|
88
|
+
this.lazyload(this.target);
|
|
87
89
|
}
|
|
88
90
|
},
|
|
89
91
|
|
package/src/js/core/icon.js
CHANGED
|
@@ -68,14 +68,14 @@ const Icon = {
|
|
|
68
68
|
},
|
|
69
69
|
|
|
70
70
|
methods: {
|
|
71
|
-
getSvg() {
|
|
71
|
+
async getSvg() {
|
|
72
72
|
const icon = getIcon(this.icon);
|
|
73
73
|
|
|
74
74
|
if (!icon) {
|
|
75
|
-
|
|
75
|
+
throw 'Icon not found.';
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
-
return
|
|
78
|
+
return icon;
|
|
79
79
|
},
|
|
80
80
|
},
|
|
81
81
|
};
|
|
@@ -137,9 +137,16 @@ export const Close = {
|
|
|
137
137
|
export const Spinner = {
|
|
138
138
|
extends: IconComponent,
|
|
139
139
|
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
140
|
+
methods: {
|
|
141
|
+
async getSvg() {
|
|
142
|
+
const icon = await Icon.methods.getSvg.call(this);
|
|
143
|
+
|
|
144
|
+
if (this.ratio !== 1) {
|
|
145
|
+
css($('circle', icon), 'strokeWidth', 1 / this.ratio);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
return icon;
|
|
149
|
+
},
|
|
143
150
|
},
|
|
144
151
|
};
|
|
145
152
|
|
package/src/js/core/img.js
CHANGED
|
@@ -1,132 +1,116 @@
|
|
|
1
1
|
import {
|
|
2
|
+
append,
|
|
3
|
+
attr,
|
|
4
|
+
children,
|
|
2
5
|
createEvent,
|
|
3
6
|
css,
|
|
4
|
-
|
|
7
|
+
data,
|
|
5
8
|
escape,
|
|
6
|
-
|
|
9
|
+
fragment,
|
|
10
|
+
hasAttr,
|
|
11
|
+
hasIntersectionObserver,
|
|
7
12
|
includes,
|
|
8
|
-
|
|
13
|
+
isArray,
|
|
14
|
+
isEmpty,
|
|
15
|
+
isTag,
|
|
16
|
+
observeIntersection,
|
|
17
|
+
parent,
|
|
18
|
+
parseOptions,
|
|
9
19
|
queryAll,
|
|
20
|
+
removeAttr,
|
|
10
21
|
startsWith,
|
|
11
22
|
toFloat,
|
|
12
23
|
toPx,
|
|
13
24
|
trigger,
|
|
14
25
|
} from 'uikit-util';
|
|
15
26
|
|
|
27
|
+
const nativeLazyLoad = 'loading' in HTMLImageElement.prototype;
|
|
28
|
+
|
|
16
29
|
export default {
|
|
17
30
|
args: 'dataSrc',
|
|
18
31
|
|
|
19
32
|
props: {
|
|
20
33
|
dataSrc: String,
|
|
21
|
-
|
|
22
|
-
sizes: String,
|
|
23
|
-
width: Number,
|
|
24
|
-
height: Number,
|
|
34
|
+
sources: String,
|
|
25
35
|
offsetTop: String,
|
|
26
36
|
offsetLeft: String,
|
|
27
37
|
target: String,
|
|
38
|
+
loading: String,
|
|
28
39
|
},
|
|
29
40
|
|
|
30
41
|
data: {
|
|
31
42
|
dataSrc: '',
|
|
32
|
-
|
|
33
|
-
sizes: false,
|
|
34
|
-
width: false,
|
|
35
|
-
height: false,
|
|
43
|
+
sources: false,
|
|
36
44
|
offsetTop: '50vh',
|
|
37
45
|
offsetLeft: '50vw',
|
|
38
46
|
target: false,
|
|
47
|
+
loading: 'lazy',
|
|
39
48
|
},
|
|
40
49
|
|
|
41
50
|
computed: {
|
|
42
|
-
cacheKey({ dataSrc }) {
|
|
43
|
-
return `${this.$name}.${dataSrc}`;
|
|
44
|
-
},
|
|
45
|
-
|
|
46
|
-
width({ width, dataWidth }) {
|
|
47
|
-
return width || dataWidth;
|
|
48
|
-
},
|
|
49
|
-
|
|
50
|
-
height({ height, dataHeight }) {
|
|
51
|
-
return height || dataHeight;
|
|
52
|
-
},
|
|
53
|
-
|
|
54
|
-
sizes({ sizes, dataSizes }) {
|
|
55
|
-
return sizes || dataSizes;
|
|
56
|
-
},
|
|
57
|
-
|
|
58
|
-
isImg(_, $el) {
|
|
59
|
-
return isImg($el);
|
|
60
|
-
},
|
|
61
|
-
|
|
62
51
|
target: {
|
|
63
52
|
get({ target }) {
|
|
64
53
|
return [this.$el, ...queryAll(target, this.$el)];
|
|
65
54
|
},
|
|
66
55
|
|
|
67
56
|
watch() {
|
|
68
|
-
this
|
|
57
|
+
this.$reset();
|
|
69
58
|
},
|
|
70
59
|
},
|
|
71
|
-
|
|
72
|
-
offsetTop({ offsetTop }) {
|
|
73
|
-
return toPx(offsetTop, 'height');
|
|
74
|
-
},
|
|
75
|
-
|
|
76
|
-
offsetLeft({ offsetLeft }) {
|
|
77
|
-
return toPx(offsetLeft, 'width');
|
|
78
|
-
},
|
|
79
60
|
},
|
|
80
61
|
|
|
81
62
|
connected() {
|
|
82
|
-
if (!
|
|
83
|
-
|
|
63
|
+
if (this.loading !== 'lazy' || !hasIntersectionObserver) {
|
|
64
|
+
this.load();
|
|
84
65
|
return;
|
|
85
66
|
}
|
|
86
67
|
|
|
87
|
-
if (
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
68
|
+
if (nativeLazyLoad && isImg(this.$el)) {
|
|
69
|
+
this.$el.loading = 'lazy';
|
|
70
|
+
setSrcAttrs(this.$el);
|
|
71
|
+
|
|
72
|
+
if (this.target.length === 1) {
|
|
73
|
+
return;
|
|
74
|
+
}
|
|
91
75
|
}
|
|
92
76
|
|
|
93
|
-
|
|
94
|
-
rootMargin: `${this.offsetTop}px ${this.offsetLeft}px`,
|
|
95
|
-
});
|
|
77
|
+
ensureSrcAttribute(this.$el);
|
|
96
78
|
|
|
97
|
-
|
|
79
|
+
this.registerObserver(
|
|
80
|
+
observeIntersection(
|
|
81
|
+
this.target,
|
|
82
|
+
(entries, observer) => {
|
|
83
|
+
this.load();
|
|
84
|
+
observer.disconnect();
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
rootMargin: `${toPx(this.offsetTop, 'height')}px ${toPx(
|
|
88
|
+
this.offsetLeft,
|
|
89
|
+
'width'
|
|
90
|
+
)}px`,
|
|
91
|
+
}
|
|
92
|
+
)
|
|
93
|
+
);
|
|
98
94
|
},
|
|
99
95
|
|
|
100
96
|
disconnected() {
|
|
101
|
-
|
|
97
|
+
if (this._data.image) {
|
|
98
|
+
this._data.image.onload = '';
|
|
99
|
+
}
|
|
102
100
|
},
|
|
103
101
|
|
|
104
102
|
update: {
|
|
105
|
-
|
|
106
|
-
if (!this.observer) {
|
|
103
|
+
write(store) {
|
|
104
|
+
if (!this.observer || isImg(this.$el)) {
|
|
107
105
|
return false;
|
|
108
106
|
}
|
|
109
107
|
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
if (this.isImg) {
|
|
115
|
-
return false;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
image &&
|
|
119
|
-
image.then(
|
|
120
|
-
(img) => img && img.currentSrc !== '' && setSrcAttrs(this.$el, currentSrc(img))
|
|
121
|
-
);
|
|
122
|
-
},
|
|
123
|
-
|
|
124
|
-
write(data) {
|
|
125
|
-
if (this.dataSrcset && window.devicePixelRatio !== 1) {
|
|
108
|
+
const srcset = data(this.$el, 'data-srcset');
|
|
109
|
+
if (srcset && window.devicePixelRatio !== 1) {
|
|
126
110
|
const bgSize = css(this.$el, 'backgroundSize');
|
|
127
|
-
if (bgSize.match(/^(auto\s?)+$/) || toFloat(bgSize) ===
|
|
128
|
-
|
|
129
|
-
css(this.$el, 'backgroundSize', `${
|
|
111
|
+
if (bgSize.match(/^(auto\s?)+$/) || toFloat(bgSize) === store.bgSize) {
|
|
112
|
+
store.bgSize = getSourceSize(srcset, data(this.$el, 'sizes'));
|
|
113
|
+
css(this.$el, 'backgroundSize', `${store.bgSize}px`);
|
|
130
114
|
}
|
|
131
115
|
}
|
|
132
116
|
},
|
|
@@ -135,42 +119,27 @@ export default {
|
|
|
135
119
|
},
|
|
136
120
|
|
|
137
121
|
methods: {
|
|
138
|
-
load(
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
!entries.some((entry) => isUndefined(entry.isIntersecting) || entry.isIntersecting)
|
|
142
|
-
) {
|
|
143
|
-
return;
|
|
122
|
+
load() {
|
|
123
|
+
if (this._data.image) {
|
|
124
|
+
return this._data.image;
|
|
144
125
|
}
|
|
145
126
|
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
storage[this.cacheKey] = currentSrc(img);
|
|
150
|
-
return img;
|
|
151
|
-
},
|
|
152
|
-
(e) => trigger(this.$el, new e.constructor(e.type, e))
|
|
153
|
-
);
|
|
127
|
+
const image = isImg(this.$el)
|
|
128
|
+
? this.$el
|
|
129
|
+
: getImageFromElement(this.$el, this.dataSrc, this.sources);
|
|
154
130
|
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
observe() {
|
|
159
|
-
if (this._connected && !this._data.image) {
|
|
160
|
-
for (const el of this.target) {
|
|
161
|
-
this.observer.observe(el);
|
|
162
|
-
}
|
|
163
|
-
}
|
|
131
|
+
removeAttr(image, 'loading');
|
|
132
|
+
setSrcAttrs(this.$el, image.currentSrc);
|
|
133
|
+
return (this._data.image = image);
|
|
164
134
|
},
|
|
165
135
|
},
|
|
166
136
|
};
|
|
167
137
|
|
|
168
|
-
function setSrcAttrs(el, src
|
|
138
|
+
function setSrcAttrs(el, src) {
|
|
169
139
|
if (isImg(el)) {
|
|
170
|
-
const
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
set('src', src);
|
|
140
|
+
const parentNode = parent(el);
|
|
141
|
+
const elements = isPicture(parentNode) ? children(parentNode) : [el];
|
|
142
|
+
elements.forEach((el) => setSourceProps(el, el));
|
|
174
143
|
} else if (src) {
|
|
175
144
|
const change = !includes(el.style.backgroundImage, src);
|
|
176
145
|
if (change) {
|
|
@@ -180,16 +149,62 @@ function setSrcAttrs(el, src, srcset, sizes) {
|
|
|
180
149
|
}
|
|
181
150
|
}
|
|
182
151
|
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
152
|
+
const srcProps = ['data-src', 'data-srcset', 'sizes'];
|
|
153
|
+
function setSourceProps(sourceEl, targetEl) {
|
|
154
|
+
srcProps.forEach((prop) => {
|
|
155
|
+
const value = data(sourceEl, prop);
|
|
156
|
+
if (value) {
|
|
157
|
+
attr(targetEl, prop.replace(/^(data-)+/, ''), value);
|
|
158
|
+
}
|
|
159
|
+
});
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
function getImageFromElement(el, src, sources) {
|
|
163
|
+
const img = new Image();
|
|
164
|
+
|
|
165
|
+
wrapInPicture(img, sources);
|
|
166
|
+
setSourceProps(el, img);
|
|
167
|
+
img.onload = () => {
|
|
168
|
+
setSrcAttrs(el, img.currentSrc);
|
|
169
|
+
};
|
|
170
|
+
attr(img, 'src', src);
|
|
171
|
+
return img;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
function wrapInPicture(img, sources) {
|
|
175
|
+
sources = parseSources(sources);
|
|
176
|
+
|
|
177
|
+
if (sources.length) {
|
|
178
|
+
const picture = fragment('<picture>');
|
|
179
|
+
for (const attrs of sources) {
|
|
180
|
+
const source = fragment('<source>');
|
|
181
|
+
attr(source, attrs);
|
|
182
|
+
append(picture, source);
|
|
183
|
+
}
|
|
184
|
+
append(picture, img);
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
function parseSources(sources) {
|
|
189
|
+
if (!sources) {
|
|
190
|
+
return [];
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
if (startsWith(sources, '[')) {
|
|
194
|
+
try {
|
|
195
|
+
sources = JSON.parse(sources);
|
|
196
|
+
} catch (e) {
|
|
197
|
+
sources = [];
|
|
198
|
+
}
|
|
199
|
+
} else {
|
|
200
|
+
sources = parseOptions(sources);
|
|
190
201
|
}
|
|
191
202
|
|
|
192
|
-
|
|
203
|
+
if (!isArray(sources)) {
|
|
204
|
+
sources = [sources];
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
return sources.filter((source) => !isEmpty(source));
|
|
193
208
|
}
|
|
194
209
|
|
|
195
210
|
const sizesRe = /\s*(.*?)\s*(\w+|calc\(.*?\))\s*(?:,|$)/g;
|
|
@@ -229,22 +244,16 @@ function getSourceSize(srcset, sizes) {
|
|
|
229
244
|
return descriptors.filter((size) => size >= srcSize)[0] || descriptors.pop() || '';
|
|
230
245
|
}
|
|
231
246
|
|
|
232
|
-
function
|
|
233
|
-
|
|
247
|
+
function ensureSrcAttribute(el) {
|
|
248
|
+
if (isImg(el) && !hasAttr(el, 'src')) {
|
|
249
|
+
attr(el, 'src', 'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg"></svg>');
|
|
250
|
+
}
|
|
234
251
|
}
|
|
235
252
|
|
|
236
|
-
function
|
|
237
|
-
return el
|
|
253
|
+
function isPicture(el) {
|
|
254
|
+
return isTag(el, 'picture');
|
|
238
255
|
}
|
|
239
256
|
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
// workaround for Safari's private browsing mode and accessing sessionStorage in Blink
|
|
244
|
-
try {
|
|
245
|
-
storage = window.sessionStorage || {};
|
|
246
|
-
storage[key] = 1;
|
|
247
|
-
delete storage[key];
|
|
248
|
-
} catch (e) {
|
|
249
|
-
storage = {};
|
|
257
|
+
function isImg(el) {
|
|
258
|
+
return isTag(el, 'img');
|
|
250
259
|
}
|
package/src/js/core/modal.js
CHANGED
|
@@ -2,7 +2,6 @@ import Modal from '../mixin/modal';
|
|
|
2
2
|
import {
|
|
3
3
|
$,
|
|
4
4
|
addClass,
|
|
5
|
-
assign,
|
|
6
5
|
css,
|
|
7
6
|
Deferred,
|
|
8
7
|
hasClass,
|
|
@@ -136,7 +135,7 @@ function install({ modal }) {
|
|
|
136
135
|
};
|
|
137
136
|
|
|
138
137
|
function openDialog(tmpl, options, hideFn, submitFn) {
|
|
139
|
-
options =
|
|
138
|
+
options = { bgClose: false, escClose: true, labels: modal.labels, ...options };
|
|
140
139
|
|
|
141
140
|
const dialog = modal.dialog(tmpl(options), options);
|
|
142
141
|
const deferred = new Deferred();
|
package/src/js/core/navbar.js
CHANGED
|
@@ -6,7 +6,6 @@ import {
|
|
|
6
6
|
$$,
|
|
7
7
|
addClass,
|
|
8
8
|
after,
|
|
9
|
-
assign,
|
|
10
9
|
css,
|
|
11
10
|
findIndex,
|
|
12
11
|
hasAttr,
|
|
@@ -126,11 +125,12 @@ export default {
|
|
|
126
125
|
this.$create(
|
|
127
126
|
'drop',
|
|
128
127
|
dropdowns.filter((el) => !this.getDropdown(el)),
|
|
129
|
-
|
|
128
|
+
{
|
|
129
|
+
...this.$props,
|
|
130
130
|
boundary: this.boundary,
|
|
131
131
|
pos: this.pos,
|
|
132
132
|
offset: this.dropbar || this.offset,
|
|
133
|
-
}
|
|
133
|
+
}
|
|
134
134
|
);
|
|
135
135
|
},
|
|
136
136
|
|