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/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "uikit",
|
|
3
3
|
"title": "UIkit",
|
|
4
4
|
"description": "UIkit is a lightweight and modular front-end framework for developing fast and powerful web interfaces.",
|
|
5
|
-
"version": "3.16.
|
|
5
|
+
"version": "3.16.25-dev.12f581d90",
|
|
6
6
|
"main": "dist/js/uikit.js",
|
|
7
7
|
"style": "dist/css/uikit.css",
|
|
8
8
|
"sideEffects": [
|
|
@@ -24,27 +24,28 @@
|
|
|
24
24
|
"@rollup/plugin-alias": "^5.0.0",
|
|
25
25
|
"@rollup/plugin-replace": "^5.0.2",
|
|
26
26
|
"archiver": "^5.3.1",
|
|
27
|
-
"camelcase": "^
|
|
27
|
+
"camelcase": "^8.0.0",
|
|
28
28
|
"chokidar-cli": "^3.0.0",
|
|
29
29
|
"clean-css": "^5.3.2",
|
|
30
30
|
"dateformat": "^5.0.3",
|
|
31
|
-
"esbuild": "^0.
|
|
31
|
+
"esbuild": "^0.19.2",
|
|
32
32
|
"eslint": "^8.43.0",
|
|
33
|
-
"eslint-config-prettier": "^
|
|
33
|
+
"eslint-config-prettier": "^9.0.0",
|
|
34
34
|
"execa": "^7.1.1",
|
|
35
35
|
"fs-extra": "^11.1.1",
|
|
36
|
-
"glob": "^10.3.
|
|
36
|
+
"glob": "^10.3.3",
|
|
37
37
|
"inquirer": "^9.2.7",
|
|
38
38
|
"less": "^4.1.3",
|
|
39
39
|
"minimist": "^1.2.8",
|
|
40
40
|
"number-precision": "^1.6.0",
|
|
41
41
|
"p-limit": "^4.0.0",
|
|
42
|
-
"prettier": "^
|
|
42
|
+
"prettier": "^3.0.2",
|
|
43
|
+
"prettier-plugin-organize-imports": "^3.2.2",
|
|
43
44
|
"rollup": "^3.25.1",
|
|
44
45
|
"rollup-plugin-esbuild": "^5.0.0",
|
|
45
46
|
"rollup-plugin-modify": "^3.0.0",
|
|
46
47
|
"rtlcss": "^4.1.0",
|
|
47
|
-
"semver": "^7.5.
|
|
48
|
+
"semver": "^7.5.4",
|
|
48
49
|
"svgo": "^3.0.2"
|
|
49
50
|
},
|
|
50
51
|
"scripts": {
|
package/src/js/api/app.js
CHANGED
package/src/js/api/boot.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { callConnected, callDisconnected } from './hooks';
|
|
2
|
-
import { components, createComponent, getComponent, getComponents } from './component';
|
|
3
1
|
import { apply, hasAttr, inBrowser, isPlainObject, startsWith, trigger } from 'uikit-util';
|
|
2
|
+
import { components, createComponent, getComponent, getComponents } from './component';
|
|
3
|
+
import { callConnected, callDisconnected } from './hooks';
|
|
4
4
|
|
|
5
5
|
export default function (App) {
|
|
6
6
|
if (inBrowser && window.MutationObserver) {
|
package/src/js/api/component.js
CHANGED
package/src/js/api/computed.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { runWatches } from './watch';
|
|
2
|
-
import { callUpdate, prependUpdate } from './update';
|
|
3
1
|
import { hasOwn, isUndefined } from 'uikit-util';
|
|
2
|
+
import { callUpdate, prependUpdate } from './update';
|
|
3
|
+
import { runWatches } from './watch';
|
|
4
4
|
|
|
5
5
|
export function initComputed(instance) {
|
|
6
6
|
const { computed } = instance.$options;
|
package/src/js/api/events.js
CHANGED
|
@@ -39,7 +39,7 @@ export function registerEvent(instance, event, key) {
|
|
|
39
39
|
name,
|
|
40
40
|
delegate ? (isString(delegate) ? delegate : delegate.call(instance, instance)) : null,
|
|
41
41
|
isString(handler) ? instance[handler] : handler.bind(instance),
|
|
42
|
-
{ passive, capture, self }
|
|
43
|
-
)
|
|
42
|
+
{ passive, capture, self },
|
|
43
|
+
),
|
|
44
44
|
);
|
|
45
45
|
}
|
package/src/js/api/global.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { $, apply, isString, parents, toNode } from 'uikit-util';
|
|
2
|
+
import { component, getComponent, getComponents } from './component';
|
|
3
|
+
import { mergeOptions } from './options';
|
|
1
4
|
import { init } from './state';
|
|
2
5
|
import { callUpdate } from './update';
|
|
3
|
-
import { mergeOptions } from './options';
|
|
4
|
-
import { component, getComponent, getComponents } from './component';
|
|
5
|
-
import { $, apply, isString, parents, toNode } from 'uikit-util';
|
|
6
6
|
|
|
7
7
|
export default function (App) {
|
|
8
8
|
App.component = component;
|
package/src/js/api/hooks.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { disconnectComputedUpdates, initComputedUpdates } from './computed';
|
|
2
|
-
import { log } from './log';
|
|
3
|
-
import { initWatches } from './watch';
|
|
4
|
-
import { callUpdate, clearUpdateData, initUpdates } from './update';
|
|
5
2
|
import { initEvents, unbindEvents } from './events';
|
|
6
|
-
import {
|
|
3
|
+
import { log } from './log';
|
|
7
4
|
import { disconnectObservers, initObservers } from './observer';
|
|
5
|
+
import { initProps, initPropsObserver } from './props';
|
|
6
|
+
import { callUpdate, clearUpdateData, initUpdates } from './update';
|
|
7
|
+
import { initWatches } from './watch';
|
|
8
8
|
|
|
9
9
|
export function callHook(instance, hook) {
|
|
10
10
|
LOG && log(instance, hook);
|
package/src/js/api/instance.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { update } from './global';
|
|
2
|
-
import { callUpdate } from './update';
|
|
3
1
|
import { $, remove, within } from 'uikit-util';
|
|
4
|
-
import { callConnected, callDisconnected, callHook } from './hooks';
|
|
5
2
|
import { attachToElement, createComponent, detachFromElement, getComponent } from './component';
|
|
3
|
+
import { update } from './global';
|
|
4
|
+
import { callConnected, callDisconnected, callHook } from './hooks';
|
|
5
|
+
import { callUpdate } from './update';
|
|
6
6
|
|
|
7
7
|
export default function (App) {
|
|
8
8
|
App.prototype.$mount = function (el) {
|
package/src/js/api/log.js
CHANGED
package/src/js/api/observer.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { registerWatch } from './watch';
|
|
2
|
-
import { registerComputed } from './computed';
|
|
3
1
|
import { hasOwn, includes, isArray, isFunction, isString } from 'uikit-util';
|
|
2
|
+
import { registerComputed } from './computed';
|
|
3
|
+
import { registerWatch } from './watch';
|
|
4
4
|
|
|
5
5
|
export function initObservers(instance) {
|
|
6
6
|
instance._observers = [];
|
package/src/js/api/options.js
CHANGED
|
@@ -34,7 +34,7 @@ strats.args = function (parentVal, childVal) {
|
|
|
34
34
|
strats.update = function (parentVal, childVal) {
|
|
35
35
|
return sortBy(
|
|
36
36
|
concatStrat(parentVal, isFunction(childVal) ? { read: childVal } : childVal),
|
|
37
|
-
'order'
|
|
37
|
+
'order',
|
|
38
38
|
);
|
|
39
39
|
};
|
|
40
40
|
|
|
@@ -78,7 +78,7 @@ strats.i18n = strats.data = function (parentVal, childVal, vm) {
|
|
|
78
78
|
function mergeFnData(parentVal, childVal, vm) {
|
|
79
79
|
return strats.computed(
|
|
80
80
|
isFunction(parentVal) ? parentVal.call(vm, vm) : parentVal,
|
|
81
|
-
isFunction(childVal) ? childVal.call(vm, vm) : childVal
|
|
81
|
+
isFunction(childVal) ? childVal.call(vm, vm) : childVal,
|
|
82
82
|
);
|
|
83
83
|
}
|
|
84
84
|
|
package/src/js/api/props.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { camelize, data as getData, hasOwn, hyphenate, isUndefined, startsWith } from 'uikit-util';
|
|
1
2
|
import { registerObserver } from './observer';
|
|
2
3
|
import { coerce, parseOptions } from './options';
|
|
3
|
-
import { camelize, data as getData, hasOwn, hyphenate, isUndefined, startsWith } from 'uikit-util';
|
|
4
4
|
|
|
5
5
|
export function initProps(instance) {
|
|
6
6
|
const props = getProps(instance.$options);
|
|
@@ -77,7 +77,7 @@ export function initPropsObserver(instance) {
|
|
|
77
77
|
records.some(({ attributeName }) => {
|
|
78
78
|
const prop = attributeName.replace('data-', '');
|
|
79
79
|
return (prop === id ? attributes : [camelize(prop), camelize(attributeName)]).some(
|
|
80
|
-
(prop) => !isUndefined(data[prop]) && data[prop] !== $props[prop]
|
|
80
|
+
(prop) => !isUndefined(data[prop]) && data[prop] !== $props[prop],
|
|
81
81
|
);
|
|
82
82
|
})
|
|
83
83
|
) {
|
package/src/js/api/state.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { assign, isArray, isPlainObject, isUndefined } from 'uikit-util';
|
|
2
2
|
import { initComputed } from './computed';
|
|
3
|
+
import { callHook } from './hooks';
|
|
3
4
|
import { coerce, mergeOptions } from './options';
|
|
4
|
-
import { assign, isArray, isPlainObject, isUndefined } from 'uikit-util';
|
|
5
5
|
|
|
6
6
|
let uid = 0;
|
|
7
7
|
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import Animate from '../mixin/animate';
|
|
2
|
-
import { parseOptions } from '../api/options';
|
|
3
1
|
import {
|
|
4
2
|
$,
|
|
5
3
|
$$,
|
|
@@ -21,6 +19,8 @@ import {
|
|
|
21
19
|
toggleClass,
|
|
22
20
|
trigger,
|
|
23
21
|
} from 'uikit-util';
|
|
22
|
+
import { parseOptions } from '../api/options';
|
|
23
|
+
import Animate from '../mixin/animate';
|
|
24
24
|
import { keyMap } from '../util/keys';
|
|
25
25
|
|
|
26
26
|
export default {
|
|
@@ -128,7 +128,7 @@ export default {
|
|
|
128
128
|
this.$update(this.$el);
|
|
129
129
|
};
|
|
130
130
|
return animate ? this.animate(filterFn, target) : filterFn();
|
|
131
|
-
})
|
|
131
|
+
}),
|
|
132
132
|
);
|
|
133
133
|
|
|
134
134
|
trigger(this.$el, 'afterFilter', [this]);
|
|
@@ -193,7 +193,7 @@ function mergeState(el, attr, state) {
|
|
|
193
193
|
function matchFilter(
|
|
194
194
|
el,
|
|
195
195
|
attr,
|
|
196
|
-
{ filter: stateFilter = { '': '' }, sort: [stateSort, stateOrder] }
|
|
196
|
+
{ filter: stateFilter = { '': '' }, sort: [stateSort, stateOrder] },
|
|
197
197
|
) {
|
|
198
198
|
const { filter = '', group = '', sort, order = 'asc' } = getFilter(el, attr);
|
|
199
199
|
|
|
@@ -213,7 +213,7 @@ function sortItems(nodes, sort, order) {
|
|
|
213
213
|
return [...nodes].sort(
|
|
214
214
|
(a, b) =>
|
|
215
215
|
data(a, sort).localeCompare(data(b, sort), undefined, { numeric: true }) *
|
|
216
|
-
(order === 'asc' || -1)
|
|
216
|
+
(order === 'asc' || -1),
|
|
217
217
|
);
|
|
218
218
|
}
|
|
219
219
|
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { translate } from '../../mixin/internal/slideshow-animations';
|
|
2
1
|
import {
|
|
3
2
|
children,
|
|
4
3
|
clamp,
|
|
@@ -14,6 +13,7 @@ import {
|
|
|
14
13
|
Transition,
|
|
15
14
|
trigger,
|
|
16
15
|
} from 'uikit-util';
|
|
16
|
+
import { translate } from '../../mixin/internal/slideshow-animations';
|
|
17
17
|
|
|
18
18
|
export default function (prev, next, dir, { center, easing, list }) {
|
|
19
19
|
const from = prev
|
|
@@ -50,7 +50,7 @@ export default function (prev, next, dir, { center, easing, list }) {
|
|
|
50
50
|
list,
|
|
51
51
|
{ transform: translate(-to * (isRtl ? -1 : 1), 'px') },
|
|
52
52
|
duration,
|
|
53
|
-
timing
|
|
53
|
+
timing,
|
|
54
54
|
).then(resolve, noop);
|
|
55
55
|
});
|
|
56
56
|
},
|
|
@@ -78,10 +78,10 @@ export default function (prev, next, dir, { center, easing, list }) {
|
|
|
78
78
|
clamp(
|
|
79
79
|
-to + (distance - distance * percent),
|
|
80
80
|
-getWidth(list),
|
|
81
|
-
dimensions(list).width
|
|
81
|
+
dimensions(list).width,
|
|
82
82
|
) * (isRtl ? -1 : 1),
|
|
83
|
-
'px'
|
|
84
|
-
)
|
|
83
|
+
'px',
|
|
84
|
+
),
|
|
85
85
|
);
|
|
86
86
|
|
|
87
87
|
const actives = this.getActives();
|
|
@@ -110,7 +110,7 @@ export default function (prev, next, dir, { center, easing, list }) {
|
|
|
110
110
|
|
|
111
111
|
percent() {
|
|
112
112
|
return Math.abs(
|
|
113
|
-
(css(list, 'transform').split(',')[4] * (isRtl ? -1 : 1) + from) / (to - from)
|
|
113
|
+
(css(list, 'transform').split(',')[4] * (isRtl ? -1 : 1) + from) / (to - from),
|
|
114
114
|
);
|
|
115
115
|
},
|
|
116
116
|
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
import Animations from './internal/lightbox-animations';
|
|
2
|
-
import Modal from '../mixin/modal';
|
|
3
|
-
import Slideshow from '../mixin/slideshow';
|
|
4
|
-
import { keyMap } from '../util/keys';
|
|
5
1
|
import {
|
|
6
2
|
$,
|
|
7
3
|
addClass,
|
|
@@ -17,6 +13,10 @@ import {
|
|
|
17
13
|
Transition,
|
|
18
14
|
trigger,
|
|
19
15
|
} from 'uikit-util';
|
|
16
|
+
import Modal from '../mixin/modal';
|
|
17
|
+
import Slideshow from '../mixin/slideshow';
|
|
18
|
+
import { keyMap } from '../util/keys';
|
|
19
|
+
import Animations from './internal/lightbox-animations';
|
|
20
20
|
|
|
21
21
|
export default {
|
|
22
22
|
mixins: [Modal, Slideshow],
|
|
@@ -253,13 +253,13 @@ export default {
|
|
|
253
253
|
allowfullscreen: '',
|
|
254
254
|
class: 'uk-lightbox-iframe',
|
|
255
255
|
...attrs,
|
|
256
|
-
})
|
|
256
|
+
}),
|
|
257
257
|
);
|
|
258
258
|
|
|
259
259
|
// YouTube
|
|
260
260
|
} else if (
|
|
261
261
|
(matches = src.match(
|
|
262
|
-
/\/\/(?:.*?youtube(-nocookie)?\..*?(?:[?&]v=|\/shorts\/)|youtu\.be\/)([\w-]{11})[&?]?(.*)
|
|
262
|
+
/\/\/(?:.*?youtube(-nocookie)?\..*?(?:[?&]v=|\/shorts\/)|youtu\.be\/)([\w-]{11})[&?]?(.*)?/,
|
|
263
263
|
))
|
|
264
264
|
) {
|
|
265
265
|
this.setItem(
|
|
@@ -272,7 +272,7 @@ export default {
|
|
|
272
272
|
height: 1080,
|
|
273
273
|
...iframeAttrs,
|
|
274
274
|
...attrs,
|
|
275
|
-
})
|
|
275
|
+
}),
|
|
276
276
|
);
|
|
277
277
|
|
|
278
278
|
// Vimeo
|
|
@@ -281,9 +281,9 @@ export default {
|
|
|
281
281
|
const { height, width } = await (
|
|
282
282
|
await fetch(
|
|
283
283
|
`https://vimeo.com/api/oembed.json?maxwidth=1920&url=${encodeURI(
|
|
284
|
-
src
|
|
284
|
+
src,
|
|
285
285
|
)}`,
|
|
286
|
-
{ credentials: 'omit' }
|
|
286
|
+
{ credentials: 'omit' },
|
|
287
287
|
)
|
|
288
288
|
).json();
|
|
289
289
|
|
|
@@ -297,7 +297,7 @@ export default {
|
|
|
297
297
|
height,
|
|
298
298
|
...iframeAttrs,
|
|
299
299
|
...attrs,
|
|
300
|
-
})
|
|
300
|
+
}),
|
|
301
301
|
);
|
|
302
302
|
} catch (e) {
|
|
303
303
|
this.setError(item);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import LightboxPanel from './lightbox-panel';
|
|
2
|
-
import { parseOptions } from '../api/options';
|
|
3
1
|
import { $$, assign, attr, data, findIndex, isElement, isTag, on, uniqueBy } from 'uikit-util';
|
|
2
|
+
import { parseOptions } from '../api/options';
|
|
3
|
+
import LightboxPanel from './lightbox-panel';
|
|
4
4
|
|
|
5
5
|
export default {
|
|
6
6
|
install,
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import Container from '../mixin/container';
|
|
2
1
|
import {
|
|
3
2
|
$,
|
|
4
3
|
append,
|
|
@@ -15,6 +14,7 @@ import {
|
|
|
15
14
|
Transition,
|
|
16
15
|
trigger,
|
|
17
16
|
} from 'uikit-util';
|
|
17
|
+
import Container from '../mixin/container';
|
|
18
18
|
|
|
19
19
|
export default {
|
|
20
20
|
mixins: [Container],
|
|
@@ -53,7 +53,7 @@ export default {
|
|
|
53
53
|
if (!container || !isVisible(container)) {
|
|
54
54
|
container = append(
|
|
55
55
|
this.container,
|
|
56
|
-
`<div class="${this.clsContainer} ${posClass}"></div
|
|
56
|
+
`<div class="${this.clsContainer} ${posClass}"></div>`,
|
|
57
57
|
);
|
|
58
58
|
}
|
|
59
59
|
|
|
@@ -65,8 +65,8 @@ export default {
|
|
|
65
65
|
}" role="alert">
|
|
66
66
|
<a href class="${this.clsClose}" data-uk-close></a>
|
|
67
67
|
<div>${this.message}</div>
|
|
68
|
-
</div
|
|
69
|
-
)
|
|
68
|
+
</div>`,
|
|
69
|
+
),
|
|
70
70
|
);
|
|
71
71
|
},
|
|
72
72
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { css, isVisible, parent, query, scrollParent, scrolledOver, toPx } from 'uikit-util';
|
|
2
2
|
import { resize, scroll, viewport } from '../api/observables';
|
|
3
|
-
import
|
|
3
|
+
import Parallax from '../mixin/parallax';
|
|
4
4
|
|
|
5
5
|
export default {
|
|
6
6
|
mixins: [Parallax],
|
|
@@ -35,7 +35,7 @@ export default {
|
|
|
35
35
|
end || ((viewport = (1 - viewport) * 100) && `${viewport}vh+${viewport}%`),
|
|
36
36
|
'height',
|
|
37
37
|
this.target,
|
|
38
|
-
true
|
|
38
|
+
true,
|
|
39
39
|
);
|
|
40
40
|
},
|
|
41
41
|
},
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
import Class from '../mixin/class';
|
|
2
|
-
import { resize } from '../api/observables';
|
|
3
|
-
import Slider, { speedUp } from '../mixin/slider';
|
|
4
|
-
import SliderReactive from '../mixin/slider-reactive';
|
|
5
|
-
import SliderPreload from './internal/slider-preload';
|
|
6
|
-
import Transitioner, { getMax, getWidth } from './internal/slider-transitioner';
|
|
7
1
|
import {
|
|
8
2
|
$,
|
|
9
3
|
$$,
|
|
@@ -22,9 +16,15 @@ import {
|
|
|
22
16
|
selFocusable,
|
|
23
17
|
sumBy,
|
|
24
18
|
toFloat,
|
|
25
|
-
toggleClass,
|
|
26
19
|
toNumber,
|
|
20
|
+
toggleClass,
|
|
27
21
|
} from 'uikit-util';
|
|
22
|
+
import { resize } from '../api/observables';
|
|
23
|
+
import Class from '../mixin/class';
|
|
24
|
+
import Slider, { speedUp } from '../mixin/slider';
|
|
25
|
+
import SliderReactive from '../mixin/slider-reactive';
|
|
26
|
+
import SliderPreload from './internal/slider-preload';
|
|
27
|
+
import Transitioner, { getMax, getWidth } from './internal/slider-transitioner';
|
|
28
28
|
|
|
29
29
|
export default {
|
|
30
30
|
mixins: [Class, Slider, SliderReactive, SliderPreload],
|
|
@@ -171,7 +171,7 @@ export default {
|
|
|
171
171
|
((this.dir > 0 && this.index < this.prevIndex) ||
|
|
172
172
|
(this.dir < 0 && this.index > this.prevIndex)
|
|
173
173
|
? (this.maxIndex + 1) * this.dir
|
|
174
|
-
: 0)
|
|
174
|
+
: 0),
|
|
175
175
|
);
|
|
176
176
|
|
|
177
177
|
if (!this.dragging && diff > 1) {
|
|
@@ -216,8 +216,8 @@ export default {
|
|
|
216
216
|
css(
|
|
217
217
|
slide,
|
|
218
218
|
'order',
|
|
219
|
-
this.dir > 0 && i < index ? 1 : this.dir < 0 && i >= this.index ? -1 : ''
|
|
220
|
-
)
|
|
219
|
+
this.dir > 0 && i < index ? 1 : this.dir < 0 && i >= this.index ? -1 : '',
|
|
220
|
+
),
|
|
221
221
|
);
|
|
222
222
|
|
|
223
223
|
if (!this.center) {
|
|
@@ -336,7 +336,7 @@ function isFinite(list, center) {
|
|
|
336
336
|
diff,
|
|
337
337
|
slideWidth / 2 +
|
|
338
338
|
dimensions(slides[getIndex(+index + i, slides)]).width / 2 -
|
|
339
|
-
(left - listHalf)
|
|
339
|
+
(left - listHalf),
|
|
340
340
|
);
|
|
341
341
|
}
|
|
342
342
|
|
|
@@ -344,7 +344,7 @@ function isFinite(list, center) {
|
|
|
344
344
|
diff >
|
|
345
345
|
sumBy(
|
|
346
346
|
slides.filter((slide) => !slidesInView.has(slide)),
|
|
347
|
-
(slide) => dimensions(slide).width
|
|
347
|
+
(slide) => dimensions(slide).width,
|
|
348
348
|
)
|
|
349
349
|
) {
|
|
350
350
|
return true;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { boxModelAdjust, css } from 'uikit-util';
|
|
1
2
|
import Class from '../mixin/class';
|
|
2
|
-
import Slideshow from '../mixin/slideshow';
|
|
3
|
-
import Animations from './internal/slideshow-animations';
|
|
4
3
|
import SliderReactive from '../mixin/slider-reactive';
|
|
4
|
+
import Slideshow from '../mixin/slideshow';
|
|
5
5
|
import SliderPreload from './internal/slider-preload';
|
|
6
|
-
import
|
|
6
|
+
import Animations from './internal/slideshow-animations';
|
|
7
7
|
|
|
8
8
|
export default {
|
|
9
9
|
mixins: [Class, Slideshow, SliderReactive, SliderPreload],
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import Animate from '../mixin/animate';
|
|
2
|
-
import Class from '../mixin/class';
|
|
3
1
|
import {
|
|
4
2
|
$,
|
|
5
3
|
$$,
|
|
@@ -34,6 +32,8 @@ import {
|
|
|
34
32
|
trigger,
|
|
35
33
|
within,
|
|
36
34
|
} from 'uikit-util';
|
|
35
|
+
import Animate from '../mixin/animate';
|
|
36
|
+
import Class from '../mixin/class';
|
|
37
37
|
|
|
38
38
|
export default {
|
|
39
39
|
mixins: [Class, Animate],
|
|
@@ -154,7 +154,7 @@ export default {
|
|
|
154
154
|
placeholder,
|
|
155
155
|
x,
|
|
156
156
|
y,
|
|
157
|
-
sortable === previous && data.moved !== target
|
|
157
|
+
sortable === previous && data.moved !== target,
|
|
158
158
|
);
|
|
159
159
|
|
|
160
160
|
if (insertTarget === false) {
|
|
@@ -389,7 +389,7 @@ function findInsertTarget(list, target, placeholder, x, y, sameList) {
|
|
|
389
389
|
const placeholderRect = placeholder.getBoundingClientRect();
|
|
390
390
|
const sameRow = linesIntersect(
|
|
391
391
|
[rect.top, rect.bottom],
|
|
392
|
-
[placeholderRect.top, placeholderRect.bottom]
|
|
392
|
+
[placeholderRect.top, placeholderRect.bottom],
|
|
393
393
|
);
|
|
394
394
|
|
|
395
395
|
const [pointerPos, lengthProp, startProp, endProp] = sameRow
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import Container from '../mixin/container';
|
|
2
|
-
import Togglable from '../mixin/togglable';
|
|
3
|
-
import Position from '../mixin/position';
|
|
4
1
|
import {
|
|
5
2
|
append,
|
|
6
3
|
attr,
|
|
@@ -20,8 +17,11 @@ import {
|
|
|
20
17
|
remove,
|
|
21
18
|
within,
|
|
22
19
|
} from 'uikit-util';
|
|
23
|
-
import { keyMap } from '../util/keys';
|
|
24
20
|
import { generateId } from '../api/instance';
|
|
21
|
+
import Container from '../mixin/container';
|
|
22
|
+
import Position from '../mixin/position';
|
|
23
|
+
import Togglable from '../mixin/togglable';
|
|
24
|
+
import { keyMap } from '../util/keys';
|
|
25
25
|
|
|
26
26
|
export default {
|
|
27
27
|
mixins: [Container, Togglable, Position],
|
|
@@ -90,7 +90,7 @@ export default {
|
|
|
90
90
|
this.container,
|
|
91
91
|
`<div id="${this.id}" class="uk-${this.$options.name}" role="tooltip">
|
|
92
92
|
<div class="uk-${this.$options.name}-inner">${this.title}</div>
|
|
93
|
-
</div
|
|
93
|
+
</div>`,
|
|
94
94
|
);
|
|
95
95
|
|
|
96
96
|
on(this.tooltip, 'toggled', (e, toggled) => {
|
|
@@ -116,7 +116,7 @@ export default {
|
|
|
116
116
|
false,
|
|
117
117
|
(e) =>
|
|
118
118
|
(e.type === pointerDown && !within(e.target, this.$el)) ||
|
|
119
|
-
(e.type === 'keydown' && e.keyCode === keyMap.ESC)
|
|
119
|
+
(e.type === 'keydown' && e.keyCode === keyMap.ESC),
|
|
120
120
|
),
|
|
121
121
|
on([document, ...overflowParents(this.$el)], 'scroll', update, {
|
|
122
122
|
passive: true,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import I18n from '../mixin/i18n';
|
|
2
1
|
import { addClass, assign, matches, noop, on, removeClass, toArray, trigger } from 'uikit-util';
|
|
2
|
+
import I18n from '../mixin/i18n';
|
|
3
3
|
|
|
4
4
|
export default {
|
|
5
5
|
mixins: [I18n],
|
|
@@ -177,8 +177,8 @@ function match(pattern, path) {
|
|
|
177
177
|
.replace(/\*\*/g, '(\\/[^\\/]+)*')
|
|
178
178
|
.replace(/\*/g, '[^\\/]+')
|
|
179
179
|
.replace(/((?!\\))\?/g, '$1.')}$`,
|
|
180
|
-
'i'
|
|
181
|
-
)
|
|
180
|
+
'i',
|
|
181
|
+
),
|
|
182
182
|
);
|
|
183
183
|
}
|
|
184
184
|
|
|
@@ -238,7 +238,7 @@ function send(url, env) {
|
|
|
238
238
|
assign(Error(xhr.statusText), {
|
|
239
239
|
xhr,
|
|
240
240
|
status: xhr.status,
|
|
241
|
-
})
|
|
241
|
+
}),
|
|
242
242
|
);
|
|
243
243
|
}
|
|
244
244
|
});
|