comand-component-library 4.0.64 → 4.0.66

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.0.64",
3
+ "version": "4.0.66",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "license": "GPL-3.0-only",
@@ -1509,6 +1509,14 @@
1509
1509
  v-bind="cmdLinkSettingsData"
1510
1510
  :icon="{iconClass: 'icon-chevron-one-stripe-right', position: 'right', tooltip: 'Tooltip for hyperlink'}"
1511
1511
  />
1512
+ <CmdLink
1513
+ linkType="href"
1514
+ ref="CmdLink"
1515
+ v-bind="cmdLinkSettingsData"
1516
+ text="Link with fancybox"
1517
+ :fancybox="true"
1518
+ :icon="{iconClass: 'icon-chevron-one-stripe-right', position: 'right', tooltip: 'Tooltip for hyperlink'}"
1519
+ />
1512
1520
  </CmdWidthLimitationWrapper>
1513
1521
  <!-- end link ------------------------------------------------------------------------------------------------------------------------------------------------------->
1514
1522
 
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <!-- begin CmdLink -->
3
3
  <!-- begin href -->
4
- <a v-if="linkType === 'href'" :href="path" :target="target" :class="['cmd-link', {'button': styleAsButton, 'primary': primaryButton}]" @click="emitClick($event, 'href')">
4
+ <a v-if="linkType === 'href'" :href="path" :target="target" :class="['cmd-link', {'button': styleAsButton, 'primary': primaryButton, 'fancybox': fancybox}]" @click="emitClick($event, 'href')">
5
5
  <CmdInnerLink :text="text" :icon="icon">
6
6
  <slot></slot>
7
7
  </CmdInnerLink>
@@ -9,7 +9,7 @@
9
9
  <!-- end href -->
10
10
 
11
11
  <!-- begin router -->
12
- <router-link v-else-if="linkType === 'router'" :to="path" :class="['cmd-link', {'button': styleAsButton, 'primary': primaryButton}]" @click="emitClick($event, 'router')">
12
+ <router-link v-else-if="linkType === 'router'" :to="path" :class="['cmd-link', {'button': styleAsButton, 'primary': primaryButton, 'fancybox': fancybox}]" @click="emitClick($event, 'router')">
13
13
  <CmdInnerLink :text="text" :icon="icon">
14
14
  <slot></slot>
15
15
  </CmdInnerLink>
@@ -17,7 +17,7 @@
17
17
  <!-- end router -->
18
18
 
19
19
  <!-- begin button -->
20
- <button v-else-if="linkType === 'button'" :class="['cmd-link button', {'primary': primaryButton}]" type="submit" @click="emitClick($event, 'button')">
20
+ <button v-else-if="linkType === 'button'" :class="['cmd-link button', {'primary': primaryButton, 'fancybox': fancybox}]" type="submit" @click="emitClick($event, 'button')">
21
21
  <CmdInnerLink :text="text" :icon="icon">
22
22
  <slot></slot>
23
23
  </CmdInnerLink>
@@ -94,6 +94,13 @@ export default {
94
94
  primaryButton: {
95
95
  type: Boolean,
96
96
  default: false
97
+ },
98
+ /**
99
+ * set if path should be opened in fancybox
100
+ */
101
+ fancybox: {
102
+ type: Boolean,
103
+ default: false
97
104
  }
98
105
  },
99
106
  methods: {
@@ -1,5 +1,5 @@
1
1
  // import utils
2
- import {createHtmlId} from "@/utils/common";
2
+ import {createHtmlId} from "../utils/common"
3
3
 
4
4
  export default {
5
5
  props: {