comand-component-library 4.1.16 → 4.1.17

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": "4.1.16",
3
+ "version": "4.1.17",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "license": "GPL-3.0-only",
@@ -1,21 +1,21 @@
1
1
  [
2
2
  {
3
3
  "iconClass": "icon-user-profile",
4
- "type": "href",
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
- "type": "href",
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
- "type": "href",
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": "FAQ",
13
+ "text": "Router",
14
14
  "path": {
15
- "path": "faq",
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-cms.com",
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
- v-bind="link"
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="!editModeContext">
21
+ <ul v-if="link?.children?.length">
12
22
  <CmdListOfLinksItem
13
23
  v-for="(child, index) in link?.children"
14
24
  :key="index"
@@ -97,6 +97,13 @@ export default {
97
97
  type: String,
98
98
  required: true
99
99
  },
100
+ /**
101
+ * specify class for inner content
102
+ */
103
+ innerClass: {
104
+ type: String,
105
+ required: false
106
+ },
100
107
  /**
101
108
  * text-alignment for paragraph/continuous text
102
109
  *
@@ -1,6 +1,11 @@
1
1
  import { createRouter, createWebHistory } from "vue-router"
2
2
 
3
- const routes = []
3
+ const routes = [
4
+ {
5
+ path: "/:pathMatch(.*)*",
6
+ component: {}
7
+ }
8
+ ]
4
9
 
5
10
  const router = createRouter({
6
11
  history: createWebHistory(),
@@ -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
- ]