comand-component-library 4.1.16 → 4.1.17
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/dist/comand-component-library.js +212 -194
- package/dist/comand-component-library.umd.cjs +12 -12
- package/package.json +1 -1
- package/src/assets/data/list-of-links-section-anchors.json +3 -3
- package/src/assets/data/list-of-links.json +4 -5
- package/src/components/CmdListOfLinksItem.vue +12 -2
- package/src/components/CmdTextImageBlock.vue +7 -0
- package/src/router/index.js +6 -1
- package/src/assets/data/list-of-links-top-header-navigation.json +0 -20
package/package.json
CHANGED
@@ -1,21 +1,21 @@
|
|
1
1
|
[
|
2
2
|
{
|
3
3
|
"iconClass": "icon-user-profile",
|
4
|
-
"
|
4
|
+
"linkType": "href",
|
5
5
|
"text": "Section 1",
|
6
6
|
"path": "#section1",
|
7
7
|
"target": "",
|
8
8
|
"tooltip": "Go to section 1"
|
9
9
|
},
|
10
10
|
{
|
11
|
-
"
|
11
|
+
"linkType": "href",
|
12
12
|
"text": "Section 2",
|
13
13
|
"path": "#section2",
|
14
14
|
"tooltip": "Go to section 2"
|
15
15
|
},
|
16
16
|
{
|
17
17
|
"iconClass": "icon-export",
|
18
|
-
"
|
18
|
+
"linkType": "href",
|
19
19
|
"text": "Section 3",
|
20
20
|
"path": "#section3",
|
21
21
|
"tooltip": "Go to section 3"
|
@@ -10,10 +10,9 @@
|
|
10
10
|
},
|
11
11
|
{
|
12
12
|
"linkType": "router",
|
13
|
-
"text": "
|
13
|
+
"text": "Router",
|
14
14
|
"path": {
|
15
|
-
"path": "
|
16
|
-
"hash": "#section3"
|
15
|
+
"path": "#"
|
17
16
|
}
|
18
17
|
},
|
19
18
|
{
|
@@ -22,7 +21,7 @@
|
|
22
21
|
"tooltip": "Router with object for path"
|
23
22
|
},
|
24
23
|
"linkType": "router",
|
25
|
-
"text": "Router",
|
24
|
+
"text": "Router (+hash)",
|
26
25
|
"path": {
|
27
26
|
"path": "/",
|
28
27
|
"hash": "#anchor-back-to-top"
|
@@ -65,7 +64,7 @@
|
|
65
64
|
},
|
66
65
|
"linkType": "href",
|
67
66
|
"text": "External link",
|
68
|
-
"path": "https://www.comand-
|
67
|
+
"path": "https://www.comand-ui.com",
|
69
68
|
"target": "_blank",
|
70
69
|
"tooltip": "Open CoManD-Website in new tab"
|
71
70
|
}
|
@@ -2,13 +2,23 @@
|
|
2
2
|
<!-- begin default-view -->
|
3
3
|
<li v-if="!editing" class="cmd-list-of-links-item">
|
4
4
|
<!-- begin CmdLink -->
|
5
|
+
<!-- do not use v-bind to avoid unnecessary props to be provided for CmdLink causing warnings -->
|
5
6
|
<CmdLink
|
6
|
-
|
7
|
+
:linkType="link?.linkType"
|
8
|
+
:text="link?.text"
|
9
|
+
:path="link?.path"
|
10
|
+
:target="link?.target"
|
11
|
+
:icon="link?.icon"
|
12
|
+
:fancybox="link?.fancybox"
|
13
|
+
:tooltip="link?.tooltip"
|
14
|
+
:styleAsButton="link?.styleAsButton"
|
15
|
+
:primaryButton="link?.primaryButton"
|
16
|
+
:styleAsBox="link?.styleAsBox"
|
7
17
|
/>
|
8
18
|
<!-- end CmdLink -->
|
9
19
|
|
10
20
|
<!-- begin CmdListOfLinksItem for nested children -->
|
11
|
-
<ul v-if="
|
21
|
+
<ul v-if="link?.children?.length">
|
12
22
|
<CmdListOfLinksItem
|
13
23
|
v-for="(child, index) in link?.children"
|
14
24
|
:key="index"
|
package/src/router/index.js
CHANGED
@@ -1,20 +0,0 @@
|
|
1
|
-
[
|
2
|
-
{
|
3
|
-
"type": "href",
|
4
|
-
"path": "/",
|
5
|
-
"iconClass": "icon-home",
|
6
|
-
"tooltip": "Home"
|
7
|
-
},
|
8
|
-
{
|
9
|
-
"type": "href",
|
10
|
-
"path": "/",
|
11
|
-
"iconClass": "icon-mail",
|
12
|
-
"tooltip": "Contact"
|
13
|
-
},
|
14
|
-
{
|
15
|
-
"type": "href",
|
16
|
-
"path": "/",
|
17
|
-
"iconClass": "icon-user-profile",
|
18
|
-
"tooltip": "Login"
|
19
|
-
}
|
20
|
-
]
|