uikit 3.16.24-dev.d6158da87 → 3.16.25-dev.12f581d90
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/.eslintrc.json +0 -9
- package/.prettierrc.json +3 -4
- package/CHANGELOG.md +2 -1
- package/build/build.js +2 -2
- package/build/less.js +2 -2
- package/build/prefix.js +3 -3
- package/build/release.js +7 -7
- package/build/scope.js +3 -3
- package/build/scss.js +9 -9
- package/build/util.js +11 -11
- 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 +1 -1
- package/dist/css/uikit-rtl.min.css +1 -1
- package/dist/css/uikit.css +1 -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 +18 -18
- package/dist/js/components/filter.min.js +1 -1
- package/dist/js/components/lightbox-panel.js +351 -350
- package/dist/js/components/lightbox-panel.min.js +1 -1
- package/dist/js/components/lightbox.js +353 -352
- package/dist/js/components/lightbox.min.js +1 -1
- package/dist/js/components/notification.js +6 -6
- package/dist/js/components/notification.min.js +1 -1
- package/dist/js/components/parallax.js +69 -69
- package/dist/js/components/parallax.min.js +1 -1
- package/dist/js/components/slider-parallax.js +37 -37
- package/dist/js/components/slider-parallax.min.js +1 -1
- package/dist/js/components/slider.js +222 -224
- package/dist/js/components/slider.min.js +1 -1
- package/dist/js/components/slideshow-parallax.js +37 -37
- package/dist/js/components/slideshow-parallax.min.js +1 -1
- package/dist/js/components/slideshow.js +300 -302
- 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 +95 -95
- package/dist/js/components/tooltip.min.js +1 -1
- package/dist/js/components/upload.js +2 -2
- package/dist/js/components/upload.min.js +1 -1
- package/dist/js/uikit-core.js +452 -449
- 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 +6837 -6836
- package/dist/js/uikit.min.js +1 -1
- package/package.json +8 -7
- package/src/js/api/app.js +1 -1
- package/src/js/api/boot.js +2 -2
- package/src/js/api/component.js +1 -1
- package/src/js/api/computed.js +2 -2
- package/src/js/api/events.js +2 -2
- package/src/js/api/global.js +3 -3
- package/src/js/api/hooks.js +4 -4
- package/src/js/api/instance.js +3 -3
- package/src/js/api/log.js +1 -1
- package/src/js/api/observables.js +1 -1
- package/src/js/api/observer.js +2 -2
- package/src/js/api/options.js +2 -2
- package/src/js/api/props.js +2 -2
- package/src/js/api/state.js +2 -2
- package/src/js/components/countdown.js +1 -1
- package/src/js/components/filter.js +5 -5
- package/src/js/components/internal/lightbox-animations.js +1 -1
- package/src/js/components/internal/slider-transitioner.js +6 -6
- package/src/js/components/internal/slideshow-animations.js +1 -1
- package/src/js/components/lightbox-panel.js +10 -10
- package/src/js/components/lightbox.js +2 -2
- package/src/js/components/notification.js +4 -4
- package/src/js/components/parallax.js +3 -3
- package/src/js/components/slider-parallax.js +1 -1
- package/src/js/components/slider.js +12 -12
- package/src/js/components/slideshow.js +3 -3
- package/src/js/components/sortable.js +4 -4
- package/src/js/components/tooltip.js +6 -6
- package/src/js/components/upload.js +4 -4
- package/src/js/core/accordion.js +8 -8
- package/src/js/core/alert.js +2 -2
- package/src/js/core/cover.js +1 -1
- package/src/js/core/drop.js +12 -12
- package/src/js/core/dropnav.js +7 -7
- package/src/js/core/form-custom.js +1 -1
- package/src/js/core/grid.js +9 -9
- package/src/js/core/height-match.js +2 -2
- package/src/js/core/height-viewport.js +1 -1
- package/src/js/core/icon.js +23 -23
- package/src/js/core/img.js +2 -2
- package/src/js/core/index.js +16 -14
- package/src/js/core/leader.js +2 -2
- package/src/js/core/modal.js +7 -7
- package/src/js/core/navbar.js +4 -4
- package/src/js/core/offcanvas.js +3 -3
- package/src/js/core/overflow-auto.js +3 -3
- package/src/js/core/responsive.js +3 -3
- package/src/js/core/scrollspy-nav.js +1 -1
- package/src/js/core/scrollspy.js +1 -1
- package/src/js/core/sticky.js +12 -12
- package/src/js/core/svg.js +4 -4
- package/src/js/core/switcher.js +7 -7
- package/src/js/core/tab.js +2 -2
- package/src/js/core/toggle.js +5 -5
- package/src/js/core/video.js +1 -1
- package/src/js/mixin/animate.js +1 -1
- package/src/js/mixin/i18n.js +1 -1
- package/src/js/mixin/internal/animate-fade.js +14 -14
- package/src/js/mixin/internal/animate-slide.js +1 -1
- package/src/js/mixin/internal/scroll.js +1 -1
- package/src/js/mixin/modal.js +15 -12
- package/src/js/mixin/parallax.js +2 -2
- package/src/js/mixin/position.js +2 -2
- package/src/js/mixin/slider-drag.js +1 -1
- package/src/js/mixin/slider-nav.js +8 -9
- package/src/js/mixin/slider.js +9 -9
- package/src/js/mixin/slideshow.js +1 -1
- package/src/js/mixin/togglable.js +4 -4
- package/src/js/uikit-core.js +2 -2
- package/src/js/uikit.js +2 -2
- package/src/js/util/animation.js +8 -8
- package/src/js/util/class.js +1 -1
- package/src/js/util/dimensions.js +5 -5
- package/src/js/util/dom.js +3 -3
- package/src/js/util/event.js +3 -3
- package/src/js/util/filter.js +1 -1
- package/src/js/util/lang.js +4 -4
- package/src/js/util/observer.js +2 -2
- package/src/js/util/player.js +1 -1
- package/src/js/util/position.js +5 -5
- package/src/js/util/selector.js +1 -1
- package/src/js/util/style.js +1 -1
- package/src/js/util/svg.js +2 -2
- package/src/js/util/viewport.js +6 -6
- package/tests/js/index.js +7 -7
package/src/js/core/accordion.js
CHANGED
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
import Class from '../mixin/class';
|
|
2
|
-
import Togglable from '../mixin/togglable';
|
|
3
|
-
import { keyMap } from '../util/keys';
|
|
4
|
-
import { generateId } from '../api/instance';
|
|
5
|
-
import { lazyload } from '../api/observables';
|
|
6
1
|
import {
|
|
7
2
|
$,
|
|
8
3
|
$$,
|
|
@@ -25,6 +20,11 @@ import {
|
|
|
25
20
|
within,
|
|
26
21
|
wrapAll,
|
|
27
22
|
} from 'uikit-util';
|
|
23
|
+
import { generateId } from '../api/instance';
|
|
24
|
+
import { lazyload } from '../api/observables';
|
|
25
|
+
import Class from '../mixin/class';
|
|
26
|
+
import Togglable from '../mixin/togglable';
|
|
27
|
+
import { keyMap } from '../util/keys';
|
|
28
28
|
|
|
29
29
|
export default {
|
|
30
30
|
mixins: [Class, Togglable],
|
|
@@ -89,7 +89,7 @@ export default {
|
|
|
89
89
|
for (const el of items) {
|
|
90
90
|
const isOpen = hasClass(
|
|
91
91
|
this.items.find((item) => within(el, item)),
|
|
92
|
-
this.clsOpen
|
|
92
|
+
this.clsOpen,
|
|
93
93
|
);
|
|
94
94
|
|
|
95
95
|
hide(el, !isOpen);
|
|
@@ -190,8 +190,8 @@ export default {
|
|
|
190
190
|
}
|
|
191
191
|
|
|
192
192
|
return transition(el, show, this);
|
|
193
|
-
})
|
|
194
|
-
)
|
|
193
|
+
}),
|
|
194
|
+
),
|
|
195
195
|
);
|
|
196
196
|
},
|
|
197
197
|
},
|
package/src/js/core/alert.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { css, toFloat, Transition } from 'uikit-util';
|
|
1
2
|
import Class from '../mixin/class';
|
|
2
3
|
import Togglable from '../mixin/togglable';
|
|
3
|
-
import { css, toFloat, Transition } from 'uikit-util';
|
|
4
4
|
|
|
5
5
|
export default {
|
|
6
6
|
mixins: [Class, Togglable],
|
|
@@ -55,6 +55,6 @@ function animate(el, show, { duration, transition, velocity }) {
|
|
|
55
55
|
opacity: 0,
|
|
56
56
|
},
|
|
57
57
|
velocity * height + duration,
|
|
58
|
-
transition
|
|
58
|
+
transition,
|
|
59
59
|
);
|
|
60
60
|
}
|
package/src/js/core/cover.js
CHANGED
package/src/js/core/drop.js
CHANGED
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
import { lazyload } from '../api/observables';
|
|
2
|
-
import Position from '../mixin/position';
|
|
3
|
-
import Container from '../mixin/container';
|
|
4
|
-
import Togglable from '../mixin/togglable';
|
|
5
|
-
import { keyMap } from '../util/keys';
|
|
6
|
-
import { preventBackgroundScroll } from '../mixin/internal/scroll';
|
|
7
1
|
import {
|
|
8
2
|
addClass,
|
|
9
3
|
append,
|
|
@@ -34,6 +28,12 @@ import {
|
|
|
34
28
|
removeClass,
|
|
35
29
|
within,
|
|
36
30
|
} from 'uikit-util';
|
|
31
|
+
import { lazyload } from '../api/observables';
|
|
32
|
+
import Container from '../mixin/container';
|
|
33
|
+
import { preventBackgroundScroll } from '../mixin/internal/scroll';
|
|
34
|
+
import Position from '../mixin/position';
|
|
35
|
+
import Togglable from '../mixin/togglable';
|
|
36
|
+
import { keyMap } from '../util/keys';
|
|
37
37
|
|
|
38
38
|
export let active;
|
|
39
39
|
|
|
@@ -351,7 +351,7 @@ export default {
|
|
|
351
351
|
|
|
352
352
|
this.showTimer = setTimeout(
|
|
353
353
|
() => this.toggleElement(this.$el, true),
|
|
354
|
-
(delay && this.delayShow) || 0
|
|
354
|
+
(delay && this.delayShow) || 0,
|
|
355
355
|
);
|
|
356
356
|
},
|
|
357
357
|
|
|
@@ -361,7 +361,7 @@ export default {
|
|
|
361
361
|
this.clearTimers();
|
|
362
362
|
|
|
363
363
|
this.isDelaying = getPositionedElements(this.$el).some((el) =>
|
|
364
|
-
this.tracker.movesTo(el)
|
|
364
|
+
this.tracker.movesTo(el),
|
|
365
365
|
);
|
|
366
366
|
|
|
367
367
|
if (delay && this.isDelaying) {
|
|
@@ -405,7 +405,7 @@ export default {
|
|
|
405
405
|
css(this.$el, {
|
|
406
406
|
[prop]: Math.min(
|
|
407
407
|
offset(this.boundary[i])[prop],
|
|
408
|
-
viewports[i][prop] - 2 * viewportOffset
|
|
408
|
+
viewports[i][prop] - 2 * viewportOffset,
|
|
409
409
|
),
|
|
410
410
|
[`overflow-${axis}`]: 'auto',
|
|
411
411
|
});
|
|
@@ -438,11 +438,11 @@ export default {
|
|
|
438
438
|
? targetOffset[this.inset ? end : start] -
|
|
439
439
|
Math.max(
|
|
440
440
|
offset(this.boundary[i])[start],
|
|
441
|
-
viewports[i][start] + viewportOffset
|
|
441
|
+
viewports[i][start] + viewportOffset,
|
|
442
442
|
)
|
|
443
443
|
: Math.min(
|
|
444
444
|
offset(this.boundary[i])[end],
|
|
445
|
-
viewports[i][end] - viewportOffset
|
|
445
|
+
viewports[i][end] - viewportOffset,
|
|
446
446
|
) - targetOffset[this.inset ? start : end]) - positionOffset,
|
|
447
447
|
[`overflow-${axis}`]: 'auto',
|
|
448
448
|
});
|
|
@@ -513,7 +513,7 @@ function listenForBackgroundClose(drop) {
|
|
|
513
513
|
drop.hide(false);
|
|
514
514
|
}
|
|
515
515
|
},
|
|
516
|
-
true
|
|
516
|
+
true,
|
|
517
517
|
);
|
|
518
518
|
}
|
|
519
519
|
});
|
package/src/js/core/dropnav.js
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import { active } from './drop';
|
|
2
|
-
import Class from '../mixin/class';
|
|
3
|
-
import Container from '../mixin/container';
|
|
4
1
|
import {
|
|
5
2
|
$,
|
|
6
3
|
$$,
|
|
@@ -25,7 +22,10 @@ import {
|
|
|
25
22
|
Transition,
|
|
26
23
|
within,
|
|
27
24
|
} from 'uikit-util';
|
|
25
|
+
import Class from '../mixin/class';
|
|
26
|
+
import Container from '../mixin/container';
|
|
28
27
|
import { keyMap } from '../util/keys';
|
|
28
|
+
import { active } from './drop';
|
|
29
29
|
|
|
30
30
|
export default {
|
|
31
31
|
mixins: [Class, Container],
|
|
@@ -108,7 +108,7 @@ export default {
|
|
|
108
108
|
'uk-dropbar',
|
|
109
109
|
'uk-dropbar-top',
|
|
110
110
|
this.clsDropbar,
|
|
111
|
-
`uk-${this.$options.name}-dropbar
|
|
111
|
+
`uk-${this.$options.name}-dropbar`,
|
|
112
112
|
);
|
|
113
113
|
},
|
|
114
114
|
|
|
@@ -210,7 +210,7 @@ export default {
|
|
|
210
210
|
getIndex(
|
|
211
211
|
next,
|
|
212
212
|
elements,
|
|
213
|
-
findIndex(elements, (el) => matches(el, ':focus'))
|
|
213
|
+
findIndex(elements, (el) => matches(el, ':focus')),
|
|
214
214
|
)
|
|
215
215
|
].focus();
|
|
216
216
|
}
|
|
@@ -294,7 +294,7 @@ export default {
|
|
|
294
294
|
css(this.dropbar, 'top', this.dropbar.offsetTop - (dropbarOffset.top - minTop));
|
|
295
295
|
this.transitionTo(
|
|
296
296
|
maxBottom - minTop + toFloat(css(target, 'marginBottom')),
|
|
297
|
-
target
|
|
297
|
+
target,
|
|
298
298
|
);
|
|
299
299
|
};
|
|
300
300
|
this._observer = observeResize([drop.$el, ...drop.target], adjustHeight);
|
|
@@ -376,7 +376,7 @@ export default {
|
|
|
376
376
|
{
|
|
377
377
|
clipPath: `polygon(0 0,100% 0,100% ${newHeight}px,0 ${newHeight}px)`,
|
|
378
378
|
},
|
|
379
|
-
this.duration
|
|
379
|
+
this.duration,
|
|
380
380
|
).finally(() => css(el, { clipPath: '' })),
|
|
381
381
|
]).catch(noop);
|
|
382
382
|
},
|
package/src/js/core/grid.js
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import { scroll } from '../api/observables';
|
|
2
|
-
import Margin from './margin';
|
|
3
|
-
import Class from '../mixin/class';
|
|
4
1
|
import {
|
|
5
2
|
addClass,
|
|
6
3
|
children,
|
|
@@ -12,6 +9,9 @@ import {
|
|
|
12
9
|
toFloat,
|
|
13
10
|
toggleClass,
|
|
14
11
|
} from 'uikit-util';
|
|
12
|
+
import { scroll } from '../api/observables';
|
|
13
|
+
import Class from '../mixin/class';
|
|
14
|
+
import Margin from './margin';
|
|
15
15
|
|
|
16
16
|
export default {
|
|
17
17
|
extends: Margin,
|
|
@@ -79,9 +79,9 @@ export default {
|
|
|
79
79
|
(newPadding, hgt, i) =>
|
|
80
80
|
Math.max(
|
|
81
81
|
newPadding,
|
|
82
|
-
hgt + margin + (i % 2 ? padding : padding / 8) - elHeight
|
|
82
|
+
hgt + margin + (i % 2 ? padding : padding / 8) - elHeight,
|
|
83
83
|
),
|
|
84
|
-
0
|
|
84
|
+
0,
|
|
85
85
|
);
|
|
86
86
|
}
|
|
87
87
|
|
|
@@ -124,9 +124,9 @@ export default {
|
|
|
124
124
|
: `translateY(${
|
|
125
125
|
(translates && -translates[i][j]) +
|
|
126
126
|
(scrolled ? (i % 2 ? scrolled : scrolled / 8) : 0)
|
|
127
|
-
}px)
|
|
128
|
-
)
|
|
129
|
-
)
|
|
127
|
+
}px)`,
|
|
128
|
+
),
|
|
129
|
+
),
|
|
130
130
|
);
|
|
131
131
|
},
|
|
132
132
|
|
|
@@ -146,7 +146,7 @@ function getTranslates(rows, columns) {
|
|
|
146
146
|
let prev = 0;
|
|
147
147
|
return elements.map(
|
|
148
148
|
(element, row) =>
|
|
149
|
-
(prev += row ? rowHeights[row - 1] - elements[row - 1].offsetHeight : 0)
|
|
149
|
+
(prev += row ? rowHeights[row - 1] - elements[row - 1].offsetHeight : 0),
|
|
150
150
|
);
|
|
151
151
|
});
|
|
152
152
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { getRows } from './margin';
|
|
2
|
-
import { resize } from '../api/observables';
|
|
3
1
|
import { $$, boxModelAdjust, css, dimensions, isVisible, pick } from 'uikit-util';
|
|
2
|
+
import { resize } from '../api/observables';
|
|
3
|
+
import { getRows } from './margin';
|
|
4
4
|
|
|
5
5
|
export default {
|
|
6
6
|
args: 'target',
|
|
@@ -47,7 +47,7 @@ export default {
|
|
|
47
47
|
const { body, scrollingElement } = document;
|
|
48
48
|
const scrollElement = scrollParent(this.$el);
|
|
49
49
|
const { height: viewportHeight } = offsetViewport(
|
|
50
|
-
scrollElement === body ? scrollingElement : scrollElement
|
|
50
|
+
scrollElement === body ? scrollingElement : scrollElement,
|
|
51
51
|
);
|
|
52
52
|
|
|
53
53
|
if (this.expand) {
|
package/src/js/core/icon.js
CHANGED
|
@@ -1,25 +1,3 @@
|
|
|
1
|
-
import Svg from '../mixin/svg';
|
|
2
|
-
import I18n from '../mixin/i18n';
|
|
3
|
-
import closeIcon from '../../images/components/close-icon.svg';
|
|
4
|
-
import closeLarge from '../../images/components/close-large.svg';
|
|
5
|
-
import dropParentIcon from '../../images/components/drop-parent-icon.svg';
|
|
6
|
-
import marker from '../../images/components/marker.svg';
|
|
7
|
-
import navParentIcon from '../../images/components/nav-parent-icon.svg';
|
|
8
|
-
import navParentIconLarge from '../../images/components/nav-parent-icon-large.svg';
|
|
9
|
-
import navbarParentIcon from '../../images/components/navbar-parent-icon.svg';
|
|
10
|
-
import navbarToggleIcon from '../../images/components/navbar-toggle-icon.svg';
|
|
11
|
-
import overlayIcon from '../../images/components/overlay-icon.svg';
|
|
12
|
-
import paginationNext from '../../images/components/pagination-next.svg';
|
|
13
|
-
import paginationPrevious from '../../images/components/pagination-previous.svg';
|
|
14
|
-
import searchIcon from '../../images/components/search-icon.svg';
|
|
15
|
-
import searchLarge from '../../images/components/search-large.svg';
|
|
16
|
-
import searchNavbar from '../../images/components/search-navbar.svg';
|
|
17
|
-
import slidenavNext from '../../images/components/slidenav-next.svg';
|
|
18
|
-
import slidenavNextLarge from '../../images/components/slidenav-next-large.svg';
|
|
19
|
-
import slidenavPrevious from '../../images/components/slidenav-previous.svg';
|
|
20
|
-
import slidenavPreviousLarge from '../../images/components/slidenav-previous-large.svg';
|
|
21
|
-
import spinner from '../../images/components/spinner.svg';
|
|
22
|
-
import totop from '../../images/components/totop.svg';
|
|
23
1
|
import {
|
|
24
2
|
$,
|
|
25
3
|
addClass,
|
|
@@ -37,6 +15,28 @@ import {
|
|
|
37
15
|
parents,
|
|
38
16
|
swap,
|
|
39
17
|
} from 'uikit-util';
|
|
18
|
+
import closeIcon from '../../images/components/close-icon.svg';
|
|
19
|
+
import closeLarge from '../../images/components/close-large.svg';
|
|
20
|
+
import dropParentIcon from '../../images/components/drop-parent-icon.svg';
|
|
21
|
+
import marker from '../../images/components/marker.svg';
|
|
22
|
+
import navParentIconLarge from '../../images/components/nav-parent-icon-large.svg';
|
|
23
|
+
import navParentIcon from '../../images/components/nav-parent-icon.svg';
|
|
24
|
+
import navbarParentIcon from '../../images/components/navbar-parent-icon.svg';
|
|
25
|
+
import navbarToggleIcon from '../../images/components/navbar-toggle-icon.svg';
|
|
26
|
+
import overlayIcon from '../../images/components/overlay-icon.svg';
|
|
27
|
+
import paginationNext from '../../images/components/pagination-next.svg';
|
|
28
|
+
import paginationPrevious from '../../images/components/pagination-previous.svg';
|
|
29
|
+
import searchIcon from '../../images/components/search-icon.svg';
|
|
30
|
+
import searchLarge from '../../images/components/search-large.svg';
|
|
31
|
+
import searchNavbar from '../../images/components/search-navbar.svg';
|
|
32
|
+
import slidenavNextLarge from '../../images/components/slidenav-next-large.svg';
|
|
33
|
+
import slidenavNext from '../../images/components/slidenav-next.svg';
|
|
34
|
+
import slidenavPreviousLarge from '../../images/components/slidenav-previous-large.svg';
|
|
35
|
+
import slidenavPrevious from '../../images/components/slidenav-previous.svg';
|
|
36
|
+
import spinner from '../../images/components/spinner.svg';
|
|
37
|
+
import totop from '../../images/components/totop.svg';
|
|
38
|
+
import I18n from '../mixin/i18n';
|
|
39
|
+
import Svg from '../mixin/svg';
|
|
40
40
|
|
|
41
41
|
const icons = {
|
|
42
42
|
spinner,
|
|
@@ -243,7 +243,7 @@ function install(UIkit) {
|
|
|
243
243
|
apply(document.body, (el) =>
|
|
244
244
|
each(UIkit.getComponents(el), (cmp) => {
|
|
245
245
|
cmp.$options.isIcon && cmp.icon in added && cmp.$reset();
|
|
246
|
-
})
|
|
246
|
+
}),
|
|
247
247
|
);
|
|
248
248
|
}
|
|
249
249
|
};
|
package/src/js/core/img.js
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { parseOptions } from '../api/options';
|
|
2
|
-
import { intersection } from '../api/observables';
|
|
3
1
|
import {
|
|
4
2
|
append,
|
|
5
3
|
attr,
|
|
@@ -21,6 +19,8 @@ import {
|
|
|
21
19
|
startsWith,
|
|
22
20
|
trigger,
|
|
23
21
|
} from 'uikit-util';
|
|
22
|
+
import { intersection } from '../api/observables';
|
|
23
|
+
import { parseOptions } from '../api/options';
|
|
24
24
|
|
|
25
25
|
const nativeLazyLoad = inBrowser && 'loading' in HTMLImageElement.prototype;
|
|
26
26
|
|
package/src/js/core/index.js
CHANGED
|
@@ -28,17 +28,19 @@ export { default as Toggle } from './toggle';
|
|
|
28
28
|
export { default as Video } from './video';
|
|
29
29
|
|
|
30
30
|
// Icon components
|
|
31
|
-
export {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
31
|
+
export {
|
|
32
|
+
Close,
|
|
33
|
+
IconComponent as DropParentIcon,
|
|
34
|
+
Marker,
|
|
35
|
+
NavParentIcon,
|
|
36
|
+
IconComponent as NavbarParentIcon,
|
|
37
|
+
NavbarToggleIcon,
|
|
38
|
+
IconComponent as OverlayIcon,
|
|
39
|
+
PaginationNext,
|
|
40
|
+
PaginationPrevious,
|
|
41
|
+
Search as SearchIcon,
|
|
42
|
+
Slidenav as SlidenavNext,
|
|
43
|
+
Slidenav as SlidenavPrevious,
|
|
44
|
+
Spinner,
|
|
45
|
+
Totop,
|
|
46
|
+
} from './icon';
|
package/src/js/core/leader.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { attr, css, toggleClass, unwrap, wrapInner } from 'uikit-util';
|
|
2
|
+
import { resize } from '../api/observables';
|
|
1
3
|
import Class from '../mixin/class';
|
|
2
4
|
import Media from '../mixin/media';
|
|
3
|
-
import { resize } from '../api/observables';
|
|
4
|
-
import { attr, css, toggleClass, unwrap, wrapInner } from 'uikit-util';
|
|
5
5
|
|
|
6
6
|
export default {
|
|
7
7
|
mixins: [Class, Media],
|
package/src/js/core/modal.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import Modal from '../mixin/modal';
|
|
2
1
|
import {
|
|
3
2
|
$,
|
|
4
3
|
addClass,
|
|
@@ -12,6 +11,7 @@ import {
|
|
|
12
11
|
on,
|
|
13
12
|
removeClass,
|
|
14
13
|
} from 'uikit-util';
|
|
14
|
+
import Modal from '../mixin/modal';
|
|
15
15
|
|
|
16
16
|
export default {
|
|
17
17
|
install,
|
|
@@ -61,7 +61,7 @@ function install({ modal }) {
|
|
|
61
61
|
`<div class="uk-modal">
|
|
62
62
|
<div class="uk-modal-dialog">${content}</div>
|
|
63
63
|
</div>`,
|
|
64
|
-
{ stack: true, role: 'alertdialog', ...options }
|
|
64
|
+
{ stack: true, role: 'alertdialog', ...options },
|
|
65
65
|
);
|
|
66
66
|
|
|
67
67
|
dialog.show();
|
|
@@ -73,7 +73,7 @@ function install({ modal }) {
|
|
|
73
73
|
await Promise.resolve();
|
|
74
74
|
dialog.$destroy(true);
|
|
75
75
|
},
|
|
76
|
-
{ self: true }
|
|
76
|
+
{ self: true },
|
|
77
77
|
);
|
|
78
78
|
|
|
79
79
|
return dialog;
|
|
@@ -89,7 +89,7 @@ function install({ modal }) {
|
|
|
89
89
|
i18n.ok
|
|
90
90
|
}</button>
|
|
91
91
|
</div>`,
|
|
92
|
-
options
|
|
92
|
+
options,
|
|
93
93
|
);
|
|
94
94
|
};
|
|
95
95
|
|
|
@@ -105,7 +105,7 @@ function install({ modal }) {
|
|
|
105
105
|
</div>
|
|
106
106
|
</form>`,
|
|
107
107
|
options,
|
|
108
|
-
() => Promise.reject()
|
|
108
|
+
() => Promise.reject(),
|
|
109
109
|
);
|
|
110
110
|
};
|
|
111
111
|
|
|
@@ -125,7 +125,7 @@ function install({ modal }) {
|
|
|
125
125
|
</form>`,
|
|
126
126
|
options,
|
|
127
127
|
() => null,
|
|
128
|
-
() => input.value
|
|
128
|
+
() => input.value,
|
|
129
129
|
);
|
|
130
130
|
|
|
131
131
|
const { $el } = promise.dialog;
|
|
@@ -161,7 +161,7 @@ function install({ modal }) {
|
|
|
161
161
|
dialog.hide();
|
|
162
162
|
});
|
|
163
163
|
}),
|
|
164
|
-
{ dialog }
|
|
164
|
+
{ dialog },
|
|
165
165
|
);
|
|
166
166
|
}
|
|
167
167
|
}
|
package/src/js/core/navbar.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import Dropnav from './dropnav';
|
|
2
1
|
import { $$, css, hasClass } from 'uikit-util';
|
|
2
|
+
import Dropnav from './dropnav';
|
|
3
3
|
|
|
4
4
|
export default {
|
|
5
5
|
extends: Dropnav,
|
|
@@ -15,7 +15,7 @@ export default {
|
|
|
15
15
|
const justify = hasClass(this.$el, 'uk-navbar-justify');
|
|
16
16
|
for (const container of $$(
|
|
17
17
|
'.uk-navbar-nav, .uk-navbar-left, .uk-navbar-right',
|
|
18
|
-
this.$el
|
|
18
|
+
this.$el,
|
|
19
19
|
)) {
|
|
20
20
|
css(
|
|
21
21
|
container,
|
|
@@ -23,9 +23,9 @@ export default {
|
|
|
23
23
|
justify
|
|
24
24
|
? $$(
|
|
25
25
|
'.uk-navbar-nav > li > a, .uk-navbar-item, .uk-navbar-toggle',
|
|
26
|
-
container
|
|
26
|
+
container,
|
|
27
27
|
).length
|
|
28
|
-
: ''
|
|
28
|
+
: '',
|
|
29
29
|
);
|
|
30
30
|
}
|
|
31
31
|
},
|
package/src/js/core/offcanvas.js
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import Modal from '../mixin/modal';
|
|
2
|
-
import { swipe } from '../api/observables';
|
|
3
1
|
import {
|
|
4
2
|
$,
|
|
5
3
|
addClass,
|
|
@@ -14,6 +12,8 @@ import {
|
|
|
14
12
|
unwrap,
|
|
15
13
|
wrapAll,
|
|
16
14
|
} from 'uikit-util';
|
|
15
|
+
import { swipe } from '../api/observables';
|
|
16
|
+
import Modal from '../mixin/modal';
|
|
17
17
|
|
|
18
18
|
export default {
|
|
19
19
|
mixins: [Modal],
|
|
@@ -119,7 +119,7 @@ export default {
|
|
|
119
119
|
addClass(
|
|
120
120
|
this.panel,
|
|
121
121
|
this.clsSidebarAnimation,
|
|
122
|
-
this.mode === 'reveal' ? '' : this.clsMode
|
|
122
|
+
this.mode === 'reveal' ? '' : this.clsMode,
|
|
123
123
|
);
|
|
124
124
|
|
|
125
125
|
height(body); // force reflow
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import Class from '../mixin/class';
|
|
2
|
-
import { resize } from '../api/observables';
|
|
3
1
|
import { closest, css, dimensions, height, isVisible } from 'uikit-util';
|
|
2
|
+
import { resize } from '../api/observables';
|
|
3
|
+
import Class from '../mixin/class';
|
|
4
4
|
|
|
5
5
|
export default {
|
|
6
6
|
mixins: [Class],
|
|
@@ -40,7 +40,7 @@ export default {
|
|
|
40
40
|
return {
|
|
41
41
|
max: Math.max(
|
|
42
42
|
this.minHeight,
|
|
43
|
-
height(this.container) - (dimensions(this.content).height - height(this.$el))
|
|
43
|
+
height(this.container) - (dimensions(this.content).height - height(this.$el)),
|
|
44
44
|
),
|
|
45
45
|
};
|
|
46
46
|
},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { resize } from '../api/observables';
|
|
2
1
|
import { addClass, Dimensions, height, isVisible, parent, width } from 'uikit-util';
|
|
2
|
+
import { resize } from '../api/observables';
|
|
3
3
|
|
|
4
4
|
export default {
|
|
5
5
|
props: ['width', 'height'],
|
|
@@ -27,8 +27,8 @@ export default {
|
|
|
27
27
|
height: this.height,
|
|
28
28
|
width: this.width,
|
|
29
29
|
},
|
|
30
|
-
dim
|
|
31
|
-
).height
|
|
30
|
+
dim,
|
|
31
|
+
).height,
|
|
32
32
|
);
|
|
33
33
|
},
|
|
34
34
|
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { intersection, scroll } from '../api/observables';
|
|
2
1
|
import {
|
|
3
2
|
$$,
|
|
4
3
|
closest,
|
|
@@ -12,6 +11,7 @@ import {
|
|
|
12
11
|
toggleClass,
|
|
13
12
|
trigger,
|
|
14
13
|
} from 'uikit-util';
|
|
14
|
+
import { intersection, scroll } from '../api/observables';
|
|
15
15
|
|
|
16
16
|
export default {
|
|
17
17
|
props: {
|
package/src/js/core/scrollspy.js
CHANGED
package/src/js/core/sticky.js
CHANGED
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
import Class from '../mixin/class';
|
|
2
|
-
import Media from '../mixin/media';
|
|
3
|
-
import { resize, scroll, viewport } from '../api/observables';
|
|
4
1
|
import {
|
|
5
2
|
$,
|
|
3
|
+
Animation,
|
|
6
4
|
addClass,
|
|
7
5
|
after,
|
|
8
|
-
Animation,
|
|
9
6
|
before,
|
|
10
7
|
clamp,
|
|
11
8
|
css,
|
|
@@ -24,11 +21,14 @@ import {
|
|
|
24
21
|
removeClass,
|
|
25
22
|
replaceClass,
|
|
26
23
|
toFloat,
|
|
27
|
-
toggleClass,
|
|
28
24
|
toPx,
|
|
25
|
+
toggleClass,
|
|
29
26
|
trigger,
|
|
30
27
|
within,
|
|
31
28
|
} from 'uikit-util';
|
|
29
|
+
import { resize, scroll, viewport } from '../api/observables';
|
|
30
|
+
import Class from '../mixin/class';
|
|
31
|
+
import Media from '../mixin/media';
|
|
32
32
|
|
|
33
33
|
export default {
|
|
34
34
|
mixins: [Class, Media],
|
|
@@ -86,7 +86,7 @@ export default {
|
|
|
86
86
|
this.setActive(false);
|
|
87
87
|
},
|
|
88
88
|
|
|
89
|
-
|
|
89
|
+
beforeDisconnect() {
|
|
90
90
|
if (this.isFixed) {
|
|
91
91
|
this.hide();
|
|
92
92
|
removeClass(this.selTarget, this.clsInactive);
|
|
@@ -145,7 +145,7 @@ export default {
|
|
|
145
145
|
this.transitionInProgress = once(
|
|
146
146
|
this.$el,
|
|
147
147
|
'transitionend transitioncancel',
|
|
148
|
-
() => (this.transitionInProgress = null)
|
|
148
|
+
() => (this.transitionInProgress = null),
|
|
149
149
|
);
|
|
150
150
|
},
|
|
151
151
|
},
|
|
@@ -206,7 +206,7 @@ export default {
|
|
|
206
206
|
parseProp(this.end, this.$el, topOffset + height, true) -
|
|
207
207
|
elHeight -
|
|
208
208
|
offset +
|
|
209
|
-
overflow
|
|
209
|
+
overflow,
|
|
210
210
|
);
|
|
211
211
|
|
|
212
212
|
sticky =
|
|
@@ -216,7 +216,7 @@ export default {
|
|
|
216
216
|
end ===
|
|
217
217
|
Math.min(
|
|
218
218
|
maxScrollHeight,
|
|
219
|
-
parseProp('!*', this.$el, 0, true) - elHeight - offset + overflow
|
|
219
|
+
parseProp('!*', this.$el, 0, true) - elHeight - offset + overflow,
|
|
220
220
|
) &&
|
|
221
221
|
css(parent(this.$el), 'overflowY') === 'visible';
|
|
222
222
|
|
|
@@ -280,12 +280,12 @@ export default {
|
|
|
280
280
|
scroll,
|
|
281
281
|
prevScroll,
|
|
282
282
|
offsetParentTop: getOffset(
|
|
283
|
-
(this.isFixed ? this.placeholder : this.$el).offsetParent
|
|
283
|
+
(this.isFixed ? this.placeholder : this.$el).offsetParent,
|
|
284
284
|
).top,
|
|
285
285
|
overflowScroll: clamp(
|
|
286
286
|
overflowScroll + clamp(scroll, start, end) - clamp(prevScroll, start, end),
|
|
287
287
|
0,
|
|
288
|
-
overflow
|
|
288
|
+
overflow,
|
|
289
289
|
),
|
|
290
290
|
};
|
|
291
291
|
},
|
|
@@ -429,7 +429,7 @@ export default {
|
|
|
429
429
|
toggleClass(
|
|
430
430
|
this.$el,
|
|
431
431
|
this.clsBelow,
|
|
432
|
-
scroll > topOffset + (sticky ? Math.min(height, elHeight) : height)
|
|
432
|
+
scroll > topOffset + (sticky ? Math.min(height, elHeight) : height),
|
|
433
433
|
);
|
|
434
434
|
addClass(this.$el, this.clsFixed);
|
|
435
435
|
},
|