@awes-io/ui 2.40.0 → 2.40.1

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,17 @@
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.40.1](https://github.com/awes-io/client/compare/@awes-io/ui@2.40.0...@awes-io/ui@2.40.1) (2022-01-21)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **aw-mobile-menu:** use correct heading for submenu ([62a3210](https://github.com/awes-io/client/commit/62a321084a295620802e7bc0fbb92e948400f19a))
12
+
13
+
14
+
15
+
16
+
6
17
  # [2.40.0](https://github.com/awes-io/client/compare/@awes-io/ui@2.39.1...@awes-io/ui@2.40.0) (2022-01-21)
7
18
 
8
19
 
@@ -15,7 +15,7 @@
15
15
  <AwButton
16
16
  theme="ghost"
17
17
  color="default"
18
- class="aw-mobile-menu__back w-10 h-10"
18
+ class="aw-mobile-menu__back w-10 h-10 flex-shrink-0"
19
19
  content-class="p-2"
20
20
  @click="submenuOpened = false"
21
21
  >
@@ -30,7 +30,7 @@
30
30
  <!-- subtitle -->
31
31
  <AwHeadline
32
32
  v-if="submenuTitle"
33
- class="aw-mobile-menu__submenu-title"
33
+ class="aw-mobile-menu__submenu-title truncate pr-2"
34
34
  >
35
35
  {{ submenuTitle }}
36
36
  </AwHeadline>
@@ -52,7 +52,7 @@
52
52
  <AwButton
53
53
  theme="ghost"
54
54
  color="default"
55
- class="aw-mobile-menu__close w-10 h-10"
55
+ class="aw-mobile-menu__close w-10 h-10 flex-shrink-0"
56
56
  content-class="p-2"
57
57
  @click="show = false"
58
58
  >
@@ -177,6 +177,7 @@ export default {
177
177
  return {
178
178
  scrolled: false,
179
179
  submenuOpened: false,
180
+ submenuTitle: '',
180
181
  submenu: []
181
182
  }
182
183
  },
@@ -189,10 +190,6 @@ export default {
189
190
  'beforeMobileMenuComponent'
190
191
  ]),
191
192
 
192
- submenuTitle() {
193
- return this.submenuOpened ? pathOr('', '0.text', this.submenu) : ''
194
- },
195
-
196
193
  profileUrl() {
197
194
  return pathOr(null, 'awesIo.profileUrl', this.$store.state)
198
195
  },
@@ -254,6 +251,7 @@ export default {
254
251
  enableBodyScroll(this.$el)
255
252
  // reset submenu
256
253
  this.submenuOpened = false
254
+ this.submenuTitle = ''
257
255
  this.submenu = []
258
256
  }
259
257
  this._triggerScrollListener(isVisible)
@@ -290,6 +288,7 @@ export default {
290
288
  ? [{ text, children: submenu }].concat(submenuDeep)
291
289
  : submenuDeep
292
290
 
291
+ this.submenuTitle = text
293
292
  this.submenuOpened = !!this.submenu.length
294
293
  },
295
294
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awes-io/ui",
3
- "version": "2.40.0",
3
+ "version": "2.40.1",
4
4
  "description": "User Interface (UI) components",
5
5
  "keywords": [
6
6
  "ui",
@@ -124,5 +124,5 @@
124
124
  "vue-template-compiler": "^2.6.10",
125
125
  "webfonts-generator": "^0.4.0"
126
126
  },
127
- "gitHead": "f8c3b297de47dc18bafddbee71ae48e27a121d53"
127
+ "gitHead": "0a0675bf896822cd1b4bac564cb0b28b79a96c55"
128
128
  }