comand-component-library 3.3.2 → 3.3.3

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "comand-component-library",
3
- "version": "3.3.2",
3
+ "version": "3.3.3",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -4,9 +4,13 @@
4
4
  <div v-if="$slots.topheader" class="top-header">
5
5
  <slot name="topheader"></slot>
6
6
  </div>
7
- <!-- end for elements above header -->
7
+ <!-- end slot for elements above header -->
8
8
 
9
- <header :class="[useGrid ? 'grid-container-create-columns': 'flex-container', {'has-navigation': cmdMainNavigation || $slots.navigation, 'one-child-only' : oneChildOnly}]">
9
+ <header :class="[
10
+ useGrid ? 'grid-container-create-columns': 'flex-container',
11
+ {'has-navigation': (cmdMainNavigation?.navigationEntries?.length && navigationInline) || $slots.navigation,
12
+ 'one-child-only' : oneChildOnly}
13
+ ]">
10
14
  <!-- begin slots for logo and other header elements -->
11
15
  <template v-if="$slots.logo || $slots.header || $slots.navigation">
12
16
  <slot name="logo"></slot>
@@ -26,7 +30,7 @@
26
30
 
27
31
  <!-- begin CmdMainNavigation -->
28
32
  <CmdMainNavigation
29
- v-if="cmdMainNavigation?.navigationEntries?.length"
33
+ v-if="cmdMainNavigation?.navigationEntries?.length && navigationInline"
30
34
  :navigationEntries="cmdMainNavigation.navigationEntries"
31
35
  :closeOffcanvas="closeOffcanvas"
32
36
  />
@@ -34,6 +38,14 @@
34
38
  </template>
35
39
  <!-- end content given by data -->
36
40
  </header>
41
+
42
+ <!-- begin CmdMainNavigation -->
43
+ <CmdMainNavigation
44
+ v-if="cmdMainNavigation?.navigationEntries?.length && !navigationInline"
45
+ :navigationEntries="cmdMainNavigation.navigationEntries"
46
+ :closeOffcanvas="closeOffcanvas"
47
+ />
48
+ <!-- end CmdMainNavigation -->
37
49
  </div>
38
50
  </template>
39
51
 
@@ -154,8 +166,6 @@ export default {
154
166
  border-bottom: 0;
155
167
  }
156
168
 
157
-
158
-
159
169
  header {
160
170
  padding-top: calc(var(--default-padding) * 2);
161
171
  padding-bottom: calc(var(--default-padding) * 2);