@awes-io/ui 2.140.0 → 2.141.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,22 @@
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.141.0](https://github.com/awes-io/client/compare/@awes-io/ui@2.140.0...@awes-io/ui@2.141.0) (2025-11-06)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **aw-avatar:** placeholder image updated ([305c95c](https://github.com/awes-io/client/commit/305c95cd6ca0ed158d6ca6e071f0876221dd47d9))
12
+
13
+
14
+ ### Features
15
+
16
+ * change style for notification ([b9a92ea](https://github.com/awes-io/client/commit/b9a92eaf0bdc623fb4e4c3f3a99c7c054a73da94))
17
+
18
+
19
+
20
+
21
+
6
22
  # [2.140.0](https://github.com/awes-io/client/compare/@awes-io/ui@2.139.0...@awes-io/ui@2.140.0) (2025-10-27)
7
23
 
8
24
 
@@ -123,7 +123,7 @@
123
123
  &_top {
124
124
  top: auto;
125
125
  bottom: env(safe-area-inset-bottom, 0px);
126
- margin-bottom: 4.5rem !important;
126
+ margin-bottom: 1rem !important;
127
127
  margin-top: 0;
128
128
 
129
129
  .aw-noty-container__item {
@@ -172,18 +172,47 @@
172
172
  }
173
173
  }
174
174
 
175
+ .aw-page-single-noty {
176
+ .aw-noty-container {
177
+ &_top {
178
+ padding-left: 1rem;
179
+ padding-right: 1rem;
180
+ }
181
+ }
182
+ }
183
+
184
+ .aw-page-noty {
185
+ .aw-noty-container_top {
186
+ margin-bottom: max(calc(var(--page-buttons-bottom, 0px) + var(--page-fixed-buttons-height, 0px)), 1rem) !important;
187
+ }
188
+ }
189
+
190
+ .aw-more-noty {
191
+ .aw-noty-container_top {
192
+ margin-bottom: 3.5rem !important;
193
+ }
194
+ }
195
+
175
196
  @screen lg {
176
197
  .aw-page-single-noty {
177
198
  .aw-noty-container {
178
199
  &_top {
179
200
  margin-top: 3.5rem;
201
+ padding-left: 0.5rem;
202
+ padding-right: 0.5rem;
180
203
  }
181
204
  }
182
205
  }
183
206
 
207
+ .aw-page-noty, .aw-more-noty {
208
+ .aw-noty-container_top {
209
+ margin-bottom: 0 !important;
210
+ }
211
+ }
212
+
184
213
  .aw-noty-container {
185
214
  width: auto;
186
- max-width: theme('maxWidth.xs', 20rem);
215
+ max-width: 23rem;
187
216
 
188
217
  &_top {
189
218
  top: env(safe-area-inset-top, 0px);
@@ -49,13 +49,24 @@
49
49
  <svg
50
50
  v-if="(imageError || !src) && type === 'no-img'"
51
51
  xmlns="http://www.w3.org/2000/svg"
52
- viewBox="0 0 496 512"
52
+ xmlns:xlink="http://www.w3.org/1999/xlink"
53
+ width="30"
54
+ height="30"
55
+ viewBox="0 0 30 30"
53
56
  class="aw-avatar__no-img-icon"
54
57
  data-dark="false"
55
58
  >
56
59
  <path
57
60
  :fill="color.background"
58
- d="M248 8a248 248 0 100 496 248 248 0 000-496zm0 96a88 88 0 110 176 88 88 0 010-176zm0 344c-59 0-111-27-146-68 18-36 55-60 98-60l7 1c13 4 27 7 41 7s28-3 41-7l7-1c43 0 80 24 99 60-36 41-88 68-147 68z"
61
+ d="M30 15a15 15 0 1 0-30 0 15 15 0 0 0 30 0"
62
+ />
63
+ <path
64
+ fill="var(--c-surface, #fff)"
65
+ d="M21.23 9.23c0 3.43-2.8 6.23-6.23 6.23a6.25 6.25 0 0 1-6.23-6.23C8.77 5.8 11.57 3 15 3s6.23 2.8 6.23 6.23"
66
+ />
67
+ <path
68
+ fill="var(--c-surface, #fff)"
69
+ d="M25.07 19.3q.37.53.63 1.14.12.27-.09.52-.32.56-.73 1.09a12.6 12.6 0 0 1-9.9 4.95 12.3 12.3 0 0 1-10.64-6.04q-.14-.25-.03-.52c.16-.38.38-.79.62-1.14 1.2-1.8 3.09-2.06 5.2-2.35l.16-.02c.28-.06.58.02.8.19A6.6 6.6 0 0 0 15 18.39c1.42 0 2.78-.43 3.92-1.27.22-.17.52-.22.79-.2l.15.03c2.12.29 3.99.54 5.21 2.35"
59
70
  />
60
71
  </svg>
61
72
  </slot>
@@ -232,6 +232,14 @@ export default {
232
232
  }
233
233
  },
234
234
 
235
+ head() {
236
+ return {
237
+ bodyAttrs: {
238
+ class: 'aw-page-noty'
239
+ }
240
+ }
241
+ },
242
+
235
243
  provide() {
236
244
  return {
237
245
  teleportButtonsTo: '.aw-page'
@@ -299,9 +307,18 @@ export default {
299
307
  }
300
308
  },
301
309
 
310
+ mounted() {
311
+ if (!this._hideBottomBar) {
312
+ document.body.style.setProperty('--page-buttons-bottom', '3.5rem')
313
+ } else {
314
+ document.body.style.removeProperty('--page-buttons-bottom')
315
+ }
316
+ },
317
+
302
318
  beforeDestory() {
303
319
  this.$emit('update:fullscreen', false)
304
320
  this.watchFullscreenState(false)
321
+ document.body.style.removeProperty('--page-buttons-bottom')
305
322
  },
306
323
 
307
324
  methods: {
@@ -39,7 +39,9 @@
39
39
 
40
40
  <!-- fixed button -->
41
41
  <Teleport
42
- v-if="!isExpanded && splitButtons.fixed"
42
+ v-if="
43
+ !isExpanded && splitButtons.fixed && splitButtons.fixed.length
44
+ "
43
45
  :to="teleportButtonsTo"
44
46
  >
45
47
  <div class="aw-page-menu-buttons__fixed-btns">
@@ -174,11 +176,47 @@ export default {
174
176
  }
175
177
  },
176
178
 
179
+ watch: {
180
+ 'splitButtons.fixed': {
181
+ handler() {
182
+ if (!this.isExpanded) {
183
+ this.getFixedButtonsHeight()
184
+ }
185
+ },
186
+ immediate: true
187
+ }
188
+ },
189
+
177
190
  mounted() {
178
191
  this._initScrollListener()
179
192
  },
180
193
 
194
+ beforeDestroy() {
195
+ document.body.style.removeProperty('--page-fixed-buttons-height')
196
+ },
197
+
181
198
  methods: {
199
+ getFixedButtonsHeight() {
200
+ const buttons = document.querySelector(
201
+ '.aw-page-menu-buttons__fixed-btns'
202
+ )
203
+
204
+ let buttonsHeight = 0
205
+
206
+ if (buttons) {
207
+ buttonsHeight = buttons.offsetHeight
208
+ } else {
209
+ const oneButtonHeight = 72
210
+
211
+ buttonsHeight = this.splitButtons.fixed.length * oneButtonHeight
212
+ }
213
+
214
+ document.body.style.setProperty(
215
+ '--page-fixed-buttons-height',
216
+ `${buttonsHeight}px`
217
+ )
218
+ },
219
+
182
220
  _getVisiblity(show) {
183
221
  return isType('Function', show) ? show(this) : defaultTo(true, show)
184
222
  },
@@ -152,6 +152,14 @@ export default {
152
152
 
153
153
  mixins: [pageMixin],
154
154
 
155
+ head() {
156
+ return {
157
+ bodyAttrs: {
158
+ class: 'aw-more-noty'
159
+ }
160
+ }
161
+ },
162
+
155
163
  computed: {
156
164
  ...mapState('awesIo', ['bottomBarAction']),
157
165
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awes-io/ui",
3
- "version": "2.140.0",
3
+ "version": "2.141.0",
4
4
  "description": "User Interface (UI) components",
5
5
  "keywords": [
6
6
  "ui",
@@ -114,5 +114,5 @@
114
114
  "rollup-plugin-visualizer": "^2.6.0",
115
115
  "rollup-plugin-vue": "^5.0.1"
116
116
  },
117
- "gitHead": "e2805427b095c761e932f912d218ee212b08e52e"
117
+ "gitHead": "6a1c98c94322a7515f824f414e09892e79776654"
118
118
  }