comand-component-library 3.3.16 → 3.3.18

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.16",
3
+ "version": "3.3.18",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "scripts": {
@@ -1,15 +1,18 @@
1
1
  <template>
2
2
  <div class="cmd-company-logo">
3
- <router-link v-if="link.type === 'router'" :to="link.path" :title="link.tooltip">
3
+ <router-link v-if="link?.type === 'router'" :to="link?.path" :title="link?.tooltip">
4
4
  <!-- begin CmdImage -->
5
5
  <CmdImage :image="image" />
6
6
  <!-- end CmdImage -->
7
7
  </router-link>
8
- <a v-else :href="link.path" :title="link.tooltip">
8
+ <a v-else-if="link?.type === 'href'" :href="link?.path" :title="link?.tooltip">
9
9
  <!-- begin CmdImage -->
10
10
  <CmdImage :image="image" />
11
11
  <!-- end CmdImage -->
12
12
  </a>
13
+ <!-- begin CmdImage -->
14
+ <CmdImage v-else :image="image" />
15
+ <!-- end CmdImage -->
13
16
  </div>
14
17
  </template>
15
18
 
@@ -58,17 +58,17 @@
58
58
  </span>
59
59
  <!-- end label-text (+ required asterisk) -->
60
60
 
61
- <span class="flex-container"><!-- container required to place inner icons correctly -->
61
+ <span v-if="$attrs.type !== 'checkbox' && $attrs.type !== 'radio'" class="flex-container"><!-- container required to place inner icons correctly -->
62
62
  <!-- begin CmdIcon (for icon inside field) -->
63
63
  <CmdIcon
64
- v-if="$attrs.type !== 'checkbox' && $attrs.type !== 'radio' && fieldIconClass"
64
+ v-if="fieldIconClass"
65
65
  class="place-inside"
66
66
  :iconClass="fieldIconClass"
67
67
  />
68
68
  <!-- end CmdIcon (for icon inside field) -->
69
69
 
70
70
  <!-- begin inputfield -->
71
- <template v-if="element === 'input' && $attrs.type !== 'checkbox' && $attrs.type !== 'radio' && $attrs.type !== 'search'">
71
+ <template v-if="element === 'input' && $attrs.type !== 'search'">
72
72
  <input
73
73
  v-bind="elementAttributes"
74
74
  :id="htmlId"