comand-component-library 3.1.85 → 3.1.86
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/package.json
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div
|
|
3
|
-
v-if="navigationEntries.length"
|
|
4
3
|
:class="[
|
|
5
4
|
'cmd-main-navigation main-navigation-wrapper',
|
|
6
5
|
{
|
|
@@ -20,7 +19,7 @@
|
|
|
20
19
|
</a>
|
|
21
20
|
</li>
|
|
22
21
|
<li v-for="(navigationEntry, index) in navigationEntries" :key="index"
|
|
23
|
-
:class="{'open' : navigationEntry.open, 'has-subentries': navigationEntry
|
|
22
|
+
:class="{'open' : navigationEntry.open, 'has-subentries': navigationEntry?.subentries?.length}">
|
|
24
23
|
<!-- begin type === href -->
|
|
25
24
|
<a
|
|
26
25
|
v-if="navigationEntry.type === 'href'"
|
|
@@ -31,7 +30,7 @@
|
|
|
31
30
|
>
|
|
32
31
|
<span v-if="navigationEntry.iconClass" :class="navigationEntry.iconClass"></span>
|
|
33
32
|
<span v-if="navigationEntry.text">{{ navigationEntry.text }}</span>
|
|
34
|
-
<span v-if="navigationEntry
|
|
33
|
+
<span v-if="navigationEntry?.subentries?.length"
|
|
35
34
|
:class="subentriesIconClass"
|
|
36
35
|
></span>
|
|
37
36
|
</a>
|
|
@@ -53,7 +52,7 @@
|
|
|
53
52
|
<!-- end type === router -->
|
|
54
53
|
|
|
55
54
|
<!-- begin sub-level 1 -->
|
|
56
|
-
<ul v-if="navigationEntry
|
|
55
|
+
<ul v-if="navigationEntry?.subentries?.length" aria-expanded="true">
|
|
57
56
|
<li v-for="(navigationSubEntry, subindex) in navigationEntry.subentries" :key="subindex"
|
|
58
57
|
:class="{'open' : navigationSubEntry.open}">
|
|
59
58
|
<!-- begin type === href -->
|
|
@@ -32,13 +32,6 @@ export default {
|
|
|
32
32
|
CmdMainNavigation
|
|
33
33
|
},
|
|
34
34
|
props: {
|
|
35
|
-
/**
|
|
36
|
-
* properties for CmdMainNavigation-component
|
|
37
|
-
*/
|
|
38
|
-
cmdMainNavigation: {
|
|
39
|
-
type: Object,
|
|
40
|
-
required: true
|
|
41
|
-
},
|
|
42
35
|
/**
|
|
43
36
|
* use only if default-button of inner navigation-component should not be used
|
|
44
37
|
*/
|
|
@@ -61,6 +54,13 @@ export default {
|
|
|
61
54
|
useGrid: {
|
|
62
55
|
type: Boolean,
|
|
63
56
|
default: true
|
|
57
|
+
},
|
|
58
|
+
/**
|
|
59
|
+
* properties for CmdMainNavigation-component
|
|
60
|
+
*/
|
|
61
|
+
cmdMainNavigation: {
|
|
62
|
+
type: Object,
|
|
63
|
+
required: true
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
}
|
|
@@ -1,9 +1,4 @@
|
|
|
1
1
|
{
|
|
2
|
-
"cmdMainNavigation": {
|
|
3
|
-
"comments": [
|
|
4
|
-
"properties for CmdMainNavigation-component"
|
|
5
|
-
]
|
|
6
|
-
},
|
|
7
2
|
"closeOffcanvas": {
|
|
8
3
|
"comments": [
|
|
9
4
|
"use only if default-button of inner navigation-component should not be used"
|
|
@@ -23,5 +18,10 @@
|
|
|
23
18
|
"true"
|
|
24
19
|
]
|
|
25
20
|
}
|
|
21
|
+
},
|
|
22
|
+
"cmdMainNavigation": {
|
|
23
|
+
"comments": [
|
|
24
|
+
"properties for CmdMainNavigation-component"
|
|
25
|
+
]
|
|
26
26
|
}
|
|
27
27
|
}
|