comand-component-library 4.1.57 → 4.1.58

Sign up to get free protection for your applications and to get access to all the features.
@@ -3655,6 +3655,17 @@ const qa = /* @__PURE__ */ P(ya, [["render", Ha]]), Ra = {
3655
3655
  type: Boolean,
3656
3656
  default: !0
3657
3657
  },
3658
+ /**
3659
+ * activate if links should be styled as buttons
3660
+ *
3661
+ * showIconsOnly-property must be activated
3662
+ *
3663
+ * @affectsStyling
3664
+ */
3665
+ styleLinksAsButtons: {
3666
+ type: Boolean,
3667
+ default: !0
3668
+ },
3658
3669
  /**
3659
3670
  * all address-data (incl. labels) that will be shown
3660
3671
  */
@@ -3796,6 +3807,7 @@ function mr(e, n, t, s, i, o) {
3796
3807
  }, [
3797
3808
  f.href ? (l(), r("a", {
3798
3809
  key: 0,
3810
+ class: _({ button: t.styleLinksAsButtons }),
3799
3811
  href: o.getHref(f),
3800
3812
  target: f.name === "url" ? "_blank" : null,
3801
3813
  title: f.tooltip
@@ -3809,7 +3821,7 @@ function mr(e, n, t, s, i, o) {
3809
3821
  ], 64)) : (l(), r(S, { key: 1 }, [
3810
3822
  E(y(f.href), 1)
3811
3823
  ], 64))
3812
- ], 8, Ka)) : t.showIconsOnly ? m("", !0) : (l(), r("span", {
3824
+ ], 10, Ka)) : t.showIconsOnly ? m("", !0) : (l(), r("span", {
3813
3825
  key: 1,
3814
3826
  innerHTML: f.data
3815
3827
  }, null, 8, Ja)),
@@ -18522,7 +18534,7 @@ function c1(e, n, t, s, i, o) {
18522
18534
  })
18523
18535
  ], 64);
18524
18536
  }
18525
- const bo = /* @__PURE__ */ P(e1, [["render", c1]]), u1 = "comand-component-library", m1 = "4.1.57", h1 = "GPL-3.0-only", p1 = "CoManD-UI", f1 = "module", g1 = {
18537
+ const bo = /* @__PURE__ */ P(e1, [["render", c1]]), u1 = "comand-component-library", m1 = "4.1.58", h1 = "GPL-3.0-only", p1 = "CoManD-UI", f1 = "module", g1 = {
18526
18538
  prepublishOnly: "npm run build-lib",
18527
18539
  dev: "vite",
18528
18540
  build: "vite build",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "comand-component-library",
3
- "version": "4.1.57",
3
+ "version": "4.1.58",
4
4
  "license": "GPL-3.0-only",
5
5
  "author": "CoManD-UI",
6
6
  "private": false,
@@ -67,7 +67,12 @@
67
67
  <li v-if="entry.href || (entry.name === 'address' && entry.linkGoogleMaps) || !showIconsOnly"
68
68
  :class="{'no-flex' : showIconsOnly}">
69
69
  <!-- begin all entries except address (which has no href) -->
70
- <a v-if="entry.href" :href="getHref(entry)" :target="entry.name === 'url' ? '_blank' : null" :title="entry.tooltip">
70
+ <a v-if="entry.href"
71
+ :class="{'button' : styleLinksAsButtons}"
72
+ :href="getHref(entry)"
73
+ :target="entry.name === 'url' ? '_blank' : null"
74
+ :title="entry.tooltip"
75
+ >
71
76
  <template v-if="showIconsOnly">
72
77
  <!-- begin CmdIcon -->
73
78
  <CmdIcon v-if="entry.iconClass" :iconClass="entry.iconClass" :type="entry.iconType"/>
@@ -211,6 +216,17 @@ export default {
211
216
  type: Boolean,
212
217
  default: true
213
218
  },
219
+ /**
220
+ * activate if links should be styled as buttons
221
+ *
222
+ * showIconsOnly-property must be activated
223
+ *
224
+ * @affectsStyling
225
+ */
226
+ styleLinksAsButtons: {
227
+ type: Boolean,
228
+ default: true
229
+ },
214
230
  /**
215
231
  * all address-data (incl. labels) that will be shown
216
232
  */