comand-component-library 3.1.54 → 3.1.55

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "comand-component-library",
3
- "version": "3.1.54",
3
+ "version": "3.1.55",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -61,7 +61,7 @@
61
61
  </div>
62
62
  <div class="box-body">
63
63
  <p v-if="product.articleNumber">{{ getMessage("cmdbox.productbox.article_no") }} {{ product.articleNumber }}</p>
64
- <p v-if="product.price" class="price">{{ product.price }}</p>
64
+ <p v-if="product.price" class="price"><span>{{ product.price }}</span><span :title="globalCurrency.name">{{ globalCurrency.symbol }}</span></p>
65
65
  <p v-if="product.description">{{ product.description }}</p>
66
66
  </div>
67
67
  </a>
@@ -94,6 +94,7 @@
94
94
  // import mixins
95
95
  import I18n from "../mixins/I18n"
96
96
  import DefaultMessageProperties from "../mixins/CmdBox/DefaultMessageProperties"
97
+ import GlobalCurrency from "../mixins/GlobalCurrency"
97
98
 
98
99
  // import components
99
100
  import CmdCustomHeadline from "./CmdCustomHeadline"
@@ -106,7 +107,9 @@ export default {
106
107
  CmdListOfLinks,
107
108
  },
108
109
  mixins: [
109
- I18n, DefaultMessageProperties
110
+ I18n,
111
+ DefaultMessageProperties,
112
+ GlobalCurrency
110
113
  ],
111
114
  data() {
112
115
  return {
@@ -114,7 +117,7 @@ export default {
114
117
  active: true
115
118
  }
116
119
  },
117
- emits: ['click'],
120
+ emits: ["click"],
118
121
  props: {
119
122
  collapsingBoxesOpen: {
120
123
  type: Boolean,
@@ -857,6 +857,11 @@ export default {
857
857
  <style lang="scss">
858
858
  /* begin cmd-upload-form -------------------------------------------------------------------------------------------- */
859
859
  .cmd-upload-form {
860
+
861
+ .cmd-custom-headline {
862
+ margin: 0;
863
+ }
864
+
860
865
  .box {
861
866
  background: var(--pure-white-reduced-opacity);
862
867
 
@@ -0,0 +1,16 @@
1
+ export default {
2
+ props: {
3
+ /**
4
+ * globalCurrency used in multiple components
5
+ */
6
+ globalCurrency: {
7
+ type: Object,
8
+ default() {
9
+ return {
10
+ symbol: "€",
11
+ name: "Euro"
12
+ }
13
+ }
14
+ }
15
+ }
16
+ }