@awes-io/ui 2.144.6 → 2.145.0

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,29 @@
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.0 (2026-08-10)
7
+
8
+
9
+ ### Features
10
+
11
+ * separate avatar profile url in user menu ([14d7ddf](https://github.com/awes-io/client/commit/14d7ddfa026ebc29105559b2900c7bda85ca58a5))
12
+
13
+
14
+
15
+
16
+
17
+ ## [2.144.7](https://github.com/awes-io/client/compare/@awes-io/ui@2.144.6...@awes-io/ui@2.144.7) (2026-04-29)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * **aw-tel:** ensure cursor position set on all devices ([536bda4](https://github.com/awes-io/client/commit/536bda41daf7723fee8cb0f64fae7016aa345389))
23
+ * aw-code fileds out of range fixed ([74ac885](https://github.com/awes-io/client/commit/74ac8855b9afab80c21a5db18a6bae5536213b50))
24
+
25
+
26
+
27
+
28
+
6
29
  ## [2.144.6](https://github.com/awes-io/client/compare/@awes-io/ui@2.144.5...@awes-io/ui@2.144.6) (2026-03-28)
7
30
 
8
31
 
@@ -325,6 +325,10 @@ export default {
325
325
  p++
326
326
  }
327
327
  $event.target.setSelectionRange(p, p)
328
+ // next line ensures proper position and fixes ignored setting position on several devices
329
+ setTimeout(() => {
330
+ $event.target.setSelectionRange(p, p)
331
+ }, 0)
328
332
  })
329
333
  }
330
334
  },
@@ -534,6 +538,10 @@ export default {
534
538
  selectionEnd > firstDashIndex)
535
539
  ) {
536
540
  inputEl.setSelectionRange(firstDashIndex, firstDashIndex)
541
+ // next line ensures proper position and fixes ignored setting position on several devices
542
+ setTimeout(() => {
543
+ inputEl.setSelectionRange(firstDashIndex, firstDashIndex)
544
+ }, 0)
537
545
  }
538
546
  }
539
547
  }
@@ -214,11 +214,13 @@ export default {
214
214
 
215
215
  setTimeout(() => {
216
216
  const field = this.$refs.fields[
217
- clamp(0, this.length, value.length)
217
+ clamp(0, this.length - 1, value.length)
218
218
  ]
219
219
 
220
- field.focus()
221
- field.setSelectionRange(MAX_LENGTH, MAX_LENGTH)
220
+ if (field) {
221
+ field.focus()
222
+ field.setSelectionRange(MAX_LENGTH, MAX_LENGTH)
223
+ }
222
224
  }, 10)
223
225
  }
224
226
  }
@@ -58,10 +58,12 @@
58
58
  }"
59
59
  >
60
60
  <Component
61
- :is="profileUrlAttr.is"
62
- v-bind="profileUrlAttr"
61
+ :is="avatarProfileUrlAttr.is"
62
+ v-bind="avatarProfileUrlAttr"
63
63
  class="aw-user-menu__header"
64
- :class="{ 'aw-user-menu__header--hoverable': profileUrl }"
64
+ :class="{
65
+ 'aw-user-menu__header--hoverable': avatarProfileUrl
66
+ }"
65
67
  >
66
68
  <AwUserpic v-bind="user" big-image />
67
69
  </Component>
@@ -230,41 +232,41 @@ export default {
230
232
  },
231
233
 
232
234
  profileUrl() {
233
- const profileUrl = pathOr(
234
- null,
235
- 'state.awesIo.profileUrl',
236
- this.$store
237
- )
238
-
239
- return isType('Function', profileUrl)
240
- ? profileUrl(this.$store.state, this.$store.getters)
241
- : profileUrl
235
+ return this._resolveUrl('profileUrl')
242
236
  },
243
237
 
244
- isExternalProfileUrl() {
245
- return (
246
- typeof this.profileUrl === 'string' &&
247
- this.profileUrl &&
248
- LINK_REGEX.test(this.profileUrl)
249
- )
238
+ avatarProfileUrl() {
239
+ return this._resolveUrl('avatarProfileUrl') || this.profileUrl
250
240
  },
251
241
 
252
- profileUrlAttr() {
253
- if (this.isExternalProfileUrl) {
242
+ avatarProfileUrlAttr() {
243
+ const url = this.avatarProfileUrl
244
+ const isExternal =
245
+ typeof url === 'string' && url && LINK_REGEX.test(url)
246
+
247
+ if (isExternal) {
254
248
  return {
255
- href: this.profileUrl,
249
+ href: url,
256
250
  is: 'a'
257
251
  }
258
252
  } else {
259
253
  return {
260
- to: this.profileUrl || null,
261
- is: this.profileUrl ? 'NLink' : 'div'
254
+ to: url || null,
255
+ is: url ? 'NLink' : 'div'
262
256
  }
263
257
  }
264
258
  }
265
259
  },
266
260
 
267
261
  methods: {
262
+ _resolveUrl(key) {
263
+ const url = pathOr(null, `state.awesIo.${key}`, this.$store)
264
+
265
+ return isType('Function', url)
266
+ ? url(this.$store.state, this.$store.getters)
267
+ : url
268
+ },
269
+
268
270
  _pickButtonProps(props) {
269
271
  return omit('icon,iconActive,children,listeners,description', props)
270
272
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awes-io/ui",
3
- "version": "2.144.6",
3
+ "version": "2.145.0",
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": "e9815e4edd97f00a5b51557335159a4b797256bb"
119
+ "gitHead": "a1636efce4ca722c009daa3eb5ffeb92e908bf53"
120
120
  }
package/store/awesIo.js CHANGED
@@ -19,6 +19,7 @@ export const state = () => ({
19
19
  screen: {},
20
20
 
21
21
  profileUrl: null,
22
+ avatarProfileUrl: null,
22
23
  afterProfileComponent: null,
23
24
  userName: '',
24
25