uikit 3.15.24-dev.9e578fcff → 3.15.24-dev.c250e8e17
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 +1 -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 +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 +1 -1
- package/dist/js/components/countdown.min.js +1 -1
- package/dist/js/components/filter.js +1 -1
- package/dist/js/components/filter.min.js +1 -1
- package/dist/js/components/lightbox-panel.js +1 -1
- package/dist/js/components/lightbox-panel.min.js +1 -1
- package/dist/js/components/lightbox.js +1 -1
- package/dist/js/components/lightbox.min.js +1 -1
- package/dist/js/components/notification.js +1 -1
- package/dist/js/components/notification.min.js +1 -1
- package/dist/js/components/parallax.js +1 -1
- package/dist/js/components/parallax.min.js +1 -1
- package/dist/js/components/slider-parallax.js +1 -1
- package/dist/js/components/slider-parallax.min.js +1 -1
- package/dist/js/components/slider.js +1 -1
- 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 +1 -1
- package/dist/js/components/slideshow.min.js +1 -1
- package/dist/js/components/sortable.js +1 -1
- package/dist/js/components/sortable.min.js +1 -1
- package/dist/js/components/tooltip.js +26 -14
- 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 +2 -2
- 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 +27 -15
- package/dist/js/uikit.min.js +1 -1
- package/package.json +1 -1
- package/src/js/components/tooltip.js +27 -15
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.15.24-dev.
|
|
5
|
+
"version": "3.15.24-dev.c250e8e17",
|
|
6
6
|
"main": "dist/js/uikit.js",
|
|
7
7
|
"style": "dist/css/uikit.css",
|
|
8
8
|
"sideEffects": [
|
|
@@ -13,11 +13,11 @@ import {
|
|
|
13
13
|
offset,
|
|
14
14
|
on,
|
|
15
15
|
once,
|
|
16
|
+
overflowParents,
|
|
16
17
|
pointerDown,
|
|
17
18
|
pointerEnter,
|
|
18
19
|
pointerLeave,
|
|
19
20
|
remove,
|
|
20
|
-
scrollParents,
|
|
21
21
|
within,
|
|
22
22
|
} from 'uikit-util';
|
|
23
23
|
|
|
@@ -64,16 +64,6 @@ export default {
|
|
|
64
64
|
return;
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
this._unbind = once(
|
|
68
|
-
document,
|
|
69
|
-
`keydown ${pointerDown}`,
|
|
70
|
-
this.hide,
|
|
71
|
-
false,
|
|
72
|
-
(e) =>
|
|
73
|
-
(e.type === pointerDown && !within(e.target, this.$el)) ||
|
|
74
|
-
(e.type === 'keydown' && e.keyCode === 27)
|
|
75
|
-
);
|
|
76
|
-
|
|
77
67
|
clearTimeout(this.showTimer);
|
|
78
68
|
this.showTimer = setTimeout(this._show, this.delay);
|
|
79
69
|
},
|
|
@@ -92,13 +82,11 @@ export default {
|
|
|
92
82
|
await this.toggleElement(this.tooltip, false, false);
|
|
93
83
|
remove(this.tooltip);
|
|
94
84
|
this.tooltip = null;
|
|
95
|
-
this._unbind();
|
|
96
85
|
},
|
|
97
86
|
|
|
98
87
|
_show() {
|
|
99
|
-
const [scrollParent] = scrollParents(this.$el);
|
|
100
88
|
this.tooltip = append(
|
|
101
|
-
|
|
89
|
+
this.container,
|
|
102
90
|
`<div id="${this.id}" class="uk-${this.$options.name}" role="tooltip">
|
|
103
91
|
<div class="uk-${this.$options.name}-inner">${this.title}</div>
|
|
104
92
|
</div>`
|
|
@@ -109,7 +97,8 @@ export default {
|
|
|
109
97
|
return;
|
|
110
98
|
}
|
|
111
99
|
|
|
112
|
-
this.positionAt(this.tooltip, this.$el);
|
|
100
|
+
const update = () => this.positionAt(this.tooltip, this.$el);
|
|
101
|
+
update();
|
|
113
102
|
|
|
114
103
|
const [dir, align] = getAlignment(this.tooltip, this.$el, this.pos);
|
|
115
104
|
|
|
@@ -117,6 +106,29 @@ export default {
|
|
|
117
106
|
this.axis === 'y'
|
|
118
107
|
? `${flipPosition(dir)}-${align}`
|
|
119
108
|
: `${align}-${flipPosition(dir)}`;
|
|
109
|
+
|
|
110
|
+
const handlers = [
|
|
111
|
+
once(
|
|
112
|
+
document,
|
|
113
|
+
`keydown ${pointerDown}`,
|
|
114
|
+
this.hide,
|
|
115
|
+
false,
|
|
116
|
+
(e) =>
|
|
117
|
+
(e.type === pointerDown && !within(e.target, this.$el)) ||
|
|
118
|
+
(e.type === 'keydown' && e.keyCode === 27)
|
|
119
|
+
),
|
|
120
|
+
on([document, ...overflowParents(this.$el)], 'scroll', update, {
|
|
121
|
+
passive: true,
|
|
122
|
+
}),
|
|
123
|
+
];
|
|
124
|
+
once(
|
|
125
|
+
this.tooltip,
|
|
126
|
+
'hide',
|
|
127
|
+
() => handlers.forEach((handler) => handler && handler()),
|
|
128
|
+
{
|
|
129
|
+
self: true,
|
|
130
|
+
}
|
|
131
|
+
);
|
|
120
132
|
});
|
|
121
133
|
|
|
122
134
|
this.toggleElement(this.tooltip, true);
|