@awes-io/ui 2.145.6 → 2.145.7
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
CHANGED
|
@@ -3,6 +3,18 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [2.145.7](https://github.com/awes-io/client/compare/@awes-io/ui@2.145.6...@awes-io/ui@2.145.7) (2026-11-17)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **ui:** dock ignores a touch that ends outside the page and cleans up on destroy ([dd2861e](https://github.com/awes-io/client/commit/dd2861e9dec06ac4305b69441dde23691dbcec4a))
|
|
12
|
+
* **ui:** key search in dropdowns and the viewport check survive special keys and wrapped timers ([8a22170](https://github.com/awes-io/client/commit/8a22170d6f11104cb8bda2005137d9f40f82009f))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
6
18
|
## [2.145.6](https://github.com/awes-io/client/compare/@awes-io/ui@2.145.5...@awes-io/ui@2.145.6) (2026-10-12)
|
|
7
19
|
|
|
8
20
|
|
|
@@ -80,9 +80,13 @@ export default {
|
|
|
80
80
|
},
|
|
81
81
|
|
|
82
82
|
beforeDestroy() {
|
|
83
|
+
if (this._stopDrag) {
|
|
84
|
+
this._stopDrag()
|
|
85
|
+
}
|
|
86
|
+
|
|
83
87
|
anime.remove(this)
|
|
84
88
|
|
|
85
|
-
enableBodyScroll(this.$
|
|
89
|
+
enableBodyScroll(this.$refs.content)
|
|
86
90
|
},
|
|
87
91
|
|
|
88
92
|
methods: {
|
|
@@ -100,6 +104,7 @@ export default {
|
|
|
100
104
|
|
|
101
105
|
const isTouch = $event.type === 'touchstart'
|
|
102
106
|
const ratio = window.innerHeight * 0.67
|
|
107
|
+
const startProgress = this.progress
|
|
103
108
|
|
|
104
109
|
let currentY = isTouch ? $event.touches[0].clientY : $event.clientY
|
|
105
110
|
|
|
@@ -121,12 +126,30 @@ export default {
|
|
|
121
126
|
|
|
122
127
|
let events
|
|
123
128
|
|
|
124
|
-
const
|
|
125
|
-
this.toggle()
|
|
129
|
+
const stopDrag = () => {
|
|
126
130
|
this.active = false
|
|
131
|
+
this._stopDrag = null
|
|
127
132
|
toggleEvents(window, events, false)
|
|
128
133
|
}
|
|
129
134
|
|
|
135
|
+
const onEnd = () => {
|
|
136
|
+
stopDrag()
|
|
137
|
+
this.toggle()
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
const onLostTouch = ($event) => {
|
|
141
|
+
if ($event.touches.length > 1) {
|
|
142
|
+
return
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
stopDrag()
|
|
146
|
+
this.direction = null
|
|
147
|
+
this._animate(
|
|
148
|
+
[this.progress, startProgress],
|
|
149
|
+
Math.abs(this.progress - startProgress) * this.duration
|
|
150
|
+
)
|
|
151
|
+
}
|
|
152
|
+
|
|
130
153
|
events = [
|
|
131
154
|
[
|
|
132
155
|
isTouch ? 'touchmove' : 'mousemove',
|
|
@@ -137,6 +160,12 @@ export default {
|
|
|
137
160
|
[isTouch ? 'touchend' : 'mouseup', onEnd]
|
|
138
161
|
]
|
|
139
162
|
|
|
163
|
+
if (isTouch) {
|
|
164
|
+
events.push(['touchstart', onLostTouch, true])
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
this._stopDrag = stopDrag
|
|
168
|
+
|
|
140
169
|
toggleEvents(window, events, true)
|
|
141
170
|
},
|
|
142
171
|
|
package/mixins/arrow-focus.js
CHANGED
|
@@ -51,7 +51,10 @@ export default {
|
|
|
51
51
|
} else if (IS_SEARCH_KEY_RE.test(key)) {
|
|
52
52
|
const buttons = this._getFocusItems()
|
|
53
53
|
const active = document.activeElement
|
|
54
|
-
const re = new RegExp(
|
|
54
|
+
const re = new RegExp(
|
|
55
|
+
'^(\\s+)?' + key.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'),
|
|
56
|
+
'i'
|
|
57
|
+
)
|
|
55
58
|
let button
|
|
56
59
|
|
|
57
60
|
if (buttons.includes(active) && re.test(active.textContent)) {
|
|
@@ -65,7 +65,14 @@ if (typeof window !== 'undefined' && 'visualViewport' in window) {
|
|
|
65
65
|
if (event.isCheck) return
|
|
66
66
|
|
|
67
67
|
// double check!
|
|
68
|
-
setTimeout(
|
|
68
|
+
setTimeout(
|
|
69
|
+
() =>
|
|
70
|
+
viewportHandler({
|
|
71
|
+
target: window.visualViewport,
|
|
72
|
+
isCheck: true
|
|
73
|
+
}),
|
|
74
|
+
60
|
|
75
|
+
)
|
|
69
76
|
})
|
|
70
77
|
}
|
|
71
78
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@awes-io/ui",
|
|
3
|
-
"version": "2.145.
|
|
3
|
+
"version": "2.145.7",
|
|
4
4
|
"description": "User Interface (UI) components",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ui",
|
|
@@ -116,5 +116,5 @@
|
|
|
116
116
|
"peerDependencies": {
|
|
117
117
|
"nuxt": "^2.18.1"
|
|
118
118
|
},
|
|
119
|
-
"gitHead": "
|
|
119
|
+
"gitHead": "ca9b29f152232eea62fbdd511191ce78de8c69ea"
|
|
120
120
|
}
|