uikit 3.16.6 → 3.16.7-dev.fcb5a4616
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 +6 -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 +194 -1996
- package/dist/js/components/lightbox-panel.min.js +1 -1
- package/dist/js/components/lightbox.js +205 -1993
- 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 +143 -2429
- 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 +97 -2383
- 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 +85 -78
- 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 +85 -78
- 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/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/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.7-dev.fcb5a4616",
|
|
6
6
|
"main": "dist/js/uikit.js",
|
|
7
7
|
"style": "dist/css/uikit.css",
|
|
8
8
|
"sideEffects": [
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
"url": "https://github.com/uikit/uikit/issues"
|
|
20
20
|
},
|
|
21
21
|
"homepage": "https://getuikit.com",
|
|
22
|
+
"packageManager": "pnpm@7.29.1",
|
|
22
23
|
"devDependencies": {
|
|
23
24
|
"@rollup/plugin-alias": "^4.0.3",
|
|
24
25
|
"@rollup/plugin-replace": "^5.0.2",
|
|
@@ -26,9 +27,9 @@
|
|
|
26
27
|
"camelcase": "^7.0.1",
|
|
27
28
|
"clean-css": "^5.3.2",
|
|
28
29
|
"dateformat": "^5.0.3",
|
|
29
|
-
"esbuild": "^0.17.
|
|
30
|
-
"eslint": "^8.
|
|
31
|
-
"eslint-config-prettier": "^8.
|
|
30
|
+
"esbuild": "^0.17.11",
|
|
31
|
+
"eslint": "^8.36.0",
|
|
32
|
+
"eslint-config-prettier": "^8.7.0",
|
|
32
33
|
"fs-extra": "^11.1.0",
|
|
33
34
|
"glob": "^9.2.1",
|
|
34
35
|
"inquirer": "^9.1.4",
|
|
@@ -37,7 +38,7 @@
|
|
|
37
38
|
"number-precision": "^1.6.0",
|
|
38
39
|
"p-limit": "^4.0.0",
|
|
39
40
|
"prettier": "^2.8.4",
|
|
40
|
-
"rollup": "^3.
|
|
41
|
+
"rollup": "^3.19.1",
|
|
41
42
|
"rollup-plugin-esbuild": "^5.0.0",
|
|
42
43
|
"rollup-plugin-html": "^0.2.1",
|
|
43
44
|
"rollup-plugin-modify": "^3.0.0",
|
|
@@ -48,10 +49,10 @@
|
|
|
48
49
|
},
|
|
49
50
|
"scripts": {
|
|
50
51
|
"build-scss": "node build/scss",
|
|
51
|
-
"compile": "
|
|
52
|
+
"compile": "pnpm compile-less && pnpm compile-js",
|
|
52
53
|
"compile-js": "node build/build",
|
|
53
|
-
"compile-less": "
|
|
54
|
-
"compile-rtl": "
|
|
54
|
+
"compile-less": "pnpm icons && node build/less",
|
|
55
|
+
"compile-rtl": "pnpm compile-less rtl",
|
|
55
56
|
"icons": "node build/icons",
|
|
56
57
|
"prefix": "node build/prefix",
|
|
57
58
|
"scope": "node build/scope",
|
package/src/js/api/app.js
CHANGED
package/src/js/api/boot.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { callConnected, callDisconnected } from './hooks';
|
|
2
2
|
import { components, createComponent, getComponent, getComponents } from './component';
|
|
3
|
-
import { apply, hasAttr, inBrowser, isPlainObject, startsWith, trigger } from '
|
|
3
|
+
import { apply, hasAttr, inBrowser, isPlainObject, startsWith, trigger } from 'uikit-util';
|
|
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
package/src/js/api/events.js
CHANGED
package/src/js/api/global.js
CHANGED
|
@@ -1,47 +1,60 @@
|
|
|
1
|
-
import App from './app';
|
|
2
1
|
import { init } from './state';
|
|
3
2
|
import { callUpdate } from './update';
|
|
4
3
|
import { mergeOptions } from './options';
|
|
5
4
|
import { component, getComponent, getComponents } from './component';
|
|
6
|
-
import { $, apply, isString, parents, toNode } from '
|
|
5
|
+
import { $, apply, isString, parents, toNode } from 'uikit-util';
|
|
7
6
|
|
|
8
|
-
App
|
|
9
|
-
App.
|
|
10
|
-
App.
|
|
7
|
+
export default function (App) {
|
|
8
|
+
App.component = component;
|
|
9
|
+
App.getComponents = getComponents;
|
|
10
|
+
App.getComponent = getComponent;
|
|
11
|
+
App.update = update;
|
|
11
12
|
|
|
12
|
-
App.use = function (plugin) {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
App.use = function (plugin) {
|
|
14
|
+
if (plugin.installed) {
|
|
15
|
+
return;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
plugin.call(null, this);
|
|
19
|
+
plugin.installed = true;
|
|
16
20
|
|
|
17
|
-
|
|
18
|
-
|
|
21
|
+
return this;
|
|
22
|
+
};
|
|
19
23
|
|
|
20
|
-
|
|
21
|
-
|
|
24
|
+
App.mixin = function (mixin, component) {
|
|
25
|
+
component = (isString(component) ? this.component(component) : component) || this;
|
|
26
|
+
component.options = mergeOptions(component.options, mixin);
|
|
27
|
+
};
|
|
22
28
|
|
|
23
|
-
App.
|
|
24
|
-
|
|
25
|
-
component.options = mergeOptions(component.options, mixin);
|
|
26
|
-
};
|
|
29
|
+
App.extend = function (options) {
|
|
30
|
+
options = options || {};
|
|
27
31
|
|
|
28
|
-
|
|
29
|
-
|
|
32
|
+
const Super = this;
|
|
33
|
+
const Sub = function UIkitComponent(options) {
|
|
34
|
+
init(this, options);
|
|
35
|
+
};
|
|
30
36
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
};
|
|
37
|
+
Sub.prototype = Object.create(Super.prototype);
|
|
38
|
+
Sub.prototype.constructor = Sub;
|
|
39
|
+
Sub.options = mergeOptions(Super.options, options);
|
|
35
40
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
Sub.options = mergeOptions(Super.options, options);
|
|
41
|
+
Sub.super = Super;
|
|
42
|
+
Sub.extend = Super.extend;
|
|
39
43
|
|
|
40
|
-
|
|
41
|
-
|
|
44
|
+
return Sub;
|
|
45
|
+
};
|
|
42
46
|
|
|
43
|
-
|
|
44
|
-
|
|
47
|
+
let container;
|
|
48
|
+
Object.defineProperty(App, 'container', {
|
|
49
|
+
get() {
|
|
50
|
+
return container || document.body;
|
|
51
|
+
},
|
|
52
|
+
|
|
53
|
+
set(element) {
|
|
54
|
+
container = $(element);
|
|
55
|
+
},
|
|
56
|
+
});
|
|
57
|
+
}
|
|
45
58
|
|
|
46
59
|
export function update(element, e) {
|
|
47
60
|
element = element ? toNode(element) : document.body;
|
|
@@ -53,22 +66,9 @@ export function update(element, e) {
|
|
|
53
66
|
apply(element, (element) => updateElement(element, e));
|
|
54
67
|
}
|
|
55
68
|
|
|
56
|
-
App.update = update;
|
|
57
|
-
|
|
58
69
|
function updateElement(element, e) {
|
|
59
70
|
const components = getComponents(element);
|
|
60
71
|
for (const name in components) {
|
|
61
72
|
callUpdate(components[name], e);
|
|
62
73
|
}
|
|
63
74
|
}
|
|
64
|
-
|
|
65
|
-
let container;
|
|
66
|
-
Object.defineProperty(App, 'container', {
|
|
67
|
-
get() {
|
|
68
|
-
return container || document.body;
|
|
69
|
-
},
|
|
70
|
-
|
|
71
|
-
set(element) {
|
|
72
|
-
container = $(element);
|
|
73
|
-
},
|
|
74
|
-
});
|
package/src/js/api/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import App from './app';
|
|
2
|
-
import './
|
|
3
|
-
import './
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
import globalApi from './global';
|
|
3
|
+
import instanceApi from './instance';
|
|
4
|
+
|
|
5
|
+
globalApi(App);
|
|
6
|
+
instanceApi(App);
|
|
7
7
|
|
|
8
8
|
export default App;
|
package/src/js/api/instance.js
CHANGED
|
@@ -1,63 +1,64 @@
|
|
|
1
|
-
import App from './app';
|
|
2
1
|
import { update } from './global';
|
|
3
2
|
import { callUpdate } from './update';
|
|
4
|
-
import { $, remove, within } from '
|
|
3
|
+
import { $, remove, within } from 'uikit-util';
|
|
5
4
|
import { callConnected, callDisconnected, callHook } from './hooks';
|
|
6
5
|
import { attachToElement, createComponent, detachFromElement, getComponent } from './component';
|
|
7
6
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
export default function (App) {
|
|
8
|
+
App.prototype.$mount = function (el) {
|
|
9
|
+
const instance = this;
|
|
10
|
+
attachToElement(el, instance);
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
instance.$options.el = el;
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
};
|
|
14
|
+
if (within(el, document)) {
|
|
15
|
+
callConnected(instance);
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
18
|
|
|
19
|
-
App.prototype.$destroy = function (removeEl = false) {
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
App.prototype.$destroy = function (removeEl = false) {
|
|
20
|
+
const instance = this;
|
|
21
|
+
const { el } = instance.$options;
|
|
22
22
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
if (el) {
|
|
24
|
+
callDisconnected(instance);
|
|
25
|
+
}
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
callHook(instance, 'destroy');
|
|
28
28
|
|
|
29
|
-
|
|
29
|
+
detachFromElement(el, instance);
|
|
30
30
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
};
|
|
31
|
+
if (removeEl) {
|
|
32
|
+
remove(instance.$el);
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
35
|
|
|
36
|
-
App.prototype.$create = createComponent;
|
|
37
|
-
App.prototype.$emit = function (e) {
|
|
38
|
-
|
|
39
|
-
};
|
|
36
|
+
App.prototype.$create = createComponent;
|
|
37
|
+
App.prototype.$emit = function (e) {
|
|
38
|
+
callUpdate(this, e);
|
|
39
|
+
};
|
|
40
40
|
|
|
41
|
-
App.prototype.$update = function (element = this.$el, e) {
|
|
42
|
-
|
|
43
|
-
};
|
|
41
|
+
App.prototype.$update = function (element = this.$el, e) {
|
|
42
|
+
update(element, e);
|
|
43
|
+
};
|
|
44
44
|
|
|
45
|
-
App.prototype.$reset = function () {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
};
|
|
45
|
+
App.prototype.$reset = function () {
|
|
46
|
+
callDisconnected(this);
|
|
47
|
+
callConnected(this);
|
|
48
|
+
};
|
|
49
49
|
|
|
50
|
-
App.prototype.$getComponent = getComponent;
|
|
50
|
+
App.prototype.$getComponent = getComponent;
|
|
51
51
|
|
|
52
|
-
Object.defineProperties(App.prototype, {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
52
|
+
Object.defineProperties(App.prototype, {
|
|
53
|
+
$el: {
|
|
54
|
+
get() {
|
|
55
|
+
return this.$options.el;
|
|
56
|
+
},
|
|
56
57
|
},
|
|
57
|
-
},
|
|
58
58
|
|
|
59
|
-
|
|
60
|
-
});
|
|
59
|
+
$container: Object.getOwnPropertyDescriptor(App, 'container'),
|
|
60
|
+
});
|
|
61
|
+
}
|
|
61
62
|
|
|
62
63
|
export function generateId(instance, el = instance.$el, postfix = '') {
|
|
63
64
|
if (el.id) {
|
package/src/js/api/observer.js
CHANGED
|
@@ -1,4 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
hasOwn,
|
|
3
|
+
includes,
|
|
4
|
+
isArray,
|
|
5
|
+
isEqual,
|
|
6
|
+
isFunction,
|
|
7
|
+
isPlainObject,
|
|
8
|
+
isString,
|
|
9
|
+
} from 'uikit-util';
|
|
2
10
|
|
|
3
11
|
export function initObservers(instance) {
|
|
4
12
|
instance._observers = [];
|
package/src/js/api/options.js
CHANGED
package/src/js/api/props.js
CHANGED
package/src/js/api/state.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { callHook } from './hooks';
|
|
2
2
|
import { initComputed } from './computed';
|
|
3
3
|
import { coerce, mergeOptions } from './options';
|
|
4
|
-
import { assign, isArray, isPlainObject, isUndefined } from '
|
|
4
|
+
import { assign, isArray, isPlainObject, isUndefined } from 'uikit-util';
|
|
5
5
|
|
|
6
6
|
let uid = 0;
|
|
7
7
|
|
package/src/js/api/update.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { registerObserver } from './observer';
|
|
2
2
|
import { callWatches } from './watch';
|
|
3
|
-
import { assign, fastdom, isFunction, isPlainObject } from '
|
|
3
|
+
import { assign, fastdom, isFunction, isPlainObject } from 'uikit-util';
|
|
4
4
|
|
|
5
5
|
export function callUpdate(instance, e = 'update') {
|
|
6
6
|
if (!instance._connected) {
|
package/src/js/api/watch.js
CHANGED
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
@dropdown-large-padding: 40px;
|
|
27
27
|
|
|
28
28
|
@dropdown-dropbar-padding-top: @dropdown-padding;
|
|
29
|
-
@dropdown-dropbar-padding-bottom: @dropdown-
|
|
29
|
+
@dropdown-dropbar-padding-bottom: @dropdown-padding;
|
|
30
30
|
@dropdown-dropbar-viewport-margin: 15px;
|
|
31
31
|
@dropdown-dropbar-viewport-margin-s: @global-gutter;
|
|
32
32
|
@dropdown-dropbar-viewport-margin-m: @global-medium-gutter;
|
|
@@ -26,7 +26,7 @@ $dropdown-color-mode: none !default;
|
|
|
26
26
|
$dropdown-large-padding: 40px !default;
|
|
27
27
|
|
|
28
28
|
$dropdown-dropbar-padding-top: $dropdown-padding !default;
|
|
29
|
-
$dropdown-dropbar-padding-bottom: $dropdown-
|
|
29
|
+
$dropdown-dropbar-padding-bottom: $dropdown-padding !default;
|
|
30
30
|
$dropdown-dropbar-viewport-margin: 15px !default;
|
|
31
31
|
$dropdown-dropbar-viewport-margin-s: $global-gutter !default;
|
|
32
32
|
$dropdown-dropbar-viewport-margin-m: $global-medium-gutter !default;
|
|
@@ -389,8 +389,8 @@ $dropdown-background: $global-background !default;
|
|
|
389
389
|
$dropdown-color: $global-color !default;
|
|
390
390
|
$dropdown-color-mode: none !default;
|
|
391
391
|
$dropdown-large-padding: 40px !default;
|
|
392
|
-
$dropdown-dropbar-padding-top:
|
|
393
|
-
$dropdown-dropbar-padding-bottom: $dropdown-
|
|
392
|
+
$dropdown-dropbar-padding-top: 5px !default;
|
|
393
|
+
$dropdown-dropbar-padding-bottom: $dropdown-padding !default;
|
|
394
394
|
$dropdown-dropbar-viewport-margin: 15px !default;
|
|
395
395
|
$dropdown-dropbar-viewport-margin-s: $global-gutter !default;
|
|
396
396
|
$dropdown-dropbar-viewport-margin-m: $global-medium-gutter !default;
|
package/src/scss/variables.scss
CHANGED
|
@@ -389,7 +389,7 @@ $dropdown-color: $global-color !default;
|
|
|
389
389
|
$dropdown-color-mode: none !default;
|
|
390
390
|
$dropdown-large-padding: 40px !default;
|
|
391
391
|
$dropdown-dropbar-padding-top: $dropdown-padding !default;
|
|
392
|
-
$dropdown-dropbar-padding-bottom: $dropdown-
|
|
392
|
+
$dropdown-dropbar-padding-bottom: $dropdown-padding !default;
|
|
393
393
|
$dropdown-dropbar-viewport-margin: 15px !default;
|
|
394
394
|
$dropdown-dropbar-viewport-margin-s: $global-gutter !default;
|
|
395
395
|
$dropdown-dropbar-viewport-margin-m: $global-medium-gutter !default;
|