comand-component-library 3.3.53 → 3.3.54
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
@@ -32,7 +32,7 @@
|
|
32
32
|
v-telephone="entry.href">
|
33
33
|
{{ entry.href }}
|
34
34
|
</a>
|
35
|
-
<
|
35
|
+
<span v-else v-html="entry.data"></span>
|
36
36
|
</dd>
|
37
37
|
<!-- end data (except for address) -->
|
38
38
|
|
@@ -40,7 +40,7 @@
|
|
40
40
|
<dd v-else>
|
41
41
|
<!-- begin linked address -->
|
42
42
|
<a v-if="linkGoogleMaps"
|
43
|
-
:href="locateAddress"
|
43
|
+
:href="locateAddress(entry)"
|
44
44
|
target="google-maps"
|
45
45
|
:title="getMessage('cmdaddressdata.title.open_address_on_google_maps')">
|
46
46
|
<!-- begin street/number -->
|
@@ -103,11 +103,10 @@
|
|
103
103
|
|
104
104
|
<!-- begin list without labels -->
|
105
105
|
<ul v-else :class="['flex-container', {'vertical': !showIconsOnly}]">
|
106
|
-
|
107
106
|
<template v-for="(entry, index) in addressData" :key="index">
|
108
|
-
|
109
|
-
|
110
|
-
|
107
|
+
<template v-if="entry.href || entry.name === 'address' || !showIconsOnly">
|
108
|
+
<li :class="{'no-flex' : showIconsOnly}">
|
109
|
+
<!-- begin all entries except address (which has no href) -->
|
111
110
|
<a v-if="entry.href" :href="getHref(entry)"
|
112
111
|
:target="{'_blank' : entry.name === 'website'}"
|
113
112
|
:title="entry.tooltip">
|
@@ -122,68 +121,80 @@
|
|
122
121
|
</template>
|
123
122
|
<template v-else>{{ entry.href }}</template>
|
124
123
|
</a>
|
125
|
-
<
|
126
|
-
|
127
|
-
</template>
|
128
|
-
<!-- end all entries except address -->
|
124
|
+
<span v-else-if="!showIconsOnly" v-html="entry.data"></span>
|
125
|
+
<!-- end all entries except address -->
|
129
126
|
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
127
|
+
<!-- begin address -->
|
128
|
+
<template v-if="entry.name === 'address'">
|
129
|
+
<!-- begin linked address -->
|
130
|
+
<a v-if="linkGoogleMaps" :href="locateAddress(entry)" target="google-maps" :title="entry.tooltip">
|
131
|
+
<template v-if="showIconsOnly">
|
132
|
+
<!-- begin CmdIcon -->
|
133
|
+
<CmdIcon
|
134
|
+
v-if="entry.iconClass"
|
135
|
+
:iconClass="entry.iconClass"
|
136
|
+
:type="entry.iconType"
|
137
|
+
/>
|
138
|
+
<!-- end CmdIcon -->
|
139
|
+
</template>
|
140
|
+
<template v-else>
|
141
|
+
<!-- begin street/number -->
|
142
|
+
<template v-if="entry.streetNo">
|
143
|
+
<span class="street-address">{{ entry.streetNo }}</span><br/>
|
144
|
+
</template>
|
145
|
+
<!-- end street/number -->
|
139
146
|
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
147
|
+
<!-- begin zip/city -->
|
148
|
+
<template v-if="entry.zip || entry.city">
|
149
|
+
<span class="postal-code">{{ entry.zip }} </span>
|
150
|
+
<span class="locality">{{ entry.city }}</span><br/>
|
151
|
+
</template>
|
152
|
+
<!-- end zip/city -->
|
146
153
|
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
154
|
+
<!-- begin miscInfo -->
|
155
|
+
<template v-if="entry.miscInfo">
|
156
|
+
<span>{{ entry.miscInfo }}</span><br/>
|
157
|
+
</template>
|
158
|
+
<!-- end miscInfo -->
|
152
159
|
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
160
|
+
<!-- begin country -->
|
161
|
+
<span v-if="entry.country" class="country-name">{{ entry.country }}</span>
|
162
|
+
<!-- end country -->
|
163
|
+
</template>
|
164
|
+
</a>
|
165
|
+
<!-- end linked address -->
|
158
166
|
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
167
|
+
<!-- begin unlinked address -->
|
168
|
+
<template v-if="!linkGoogleMaps && !showIconsOnly">
|
169
|
+
<!-- begin street/number -->
|
170
|
+
<template v-if="entry.streetNo">
|
171
|
+
<span class="street-address">{{ entry.streetNo }}</span><br/>
|
172
|
+
</template>
|
173
|
+
<!-- end street/number -->
|
166
174
|
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
175
|
+
<!-- begin zip/city -->
|
176
|
+
<template v-if="entry.zip || entry.city">
|
177
|
+
<span class="postal-code">{{ entry.zip }} </span>
|
178
|
+
<span class="locality">{{ entry.city }}</span><br/>
|
179
|
+
</template>
|
180
|
+
<!-- end zip/city -->
|
173
181
|
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
182
|
+
<!-- begin miscInfo -->
|
183
|
+
<template v-if="entry.miscInfo">
|
184
|
+
<span>{{ entry.miscInfo }}</span><br/>
|
185
|
+
</template>
|
186
|
+
<!-- end miscInfo -->
|
179
187
|
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
188
|
+
<!-- begin country -->
|
189
|
+
<span v-if="entry.country" class="country-name">{{ entry.country }}</span>
|
190
|
+
<!-- end country -->
|
191
|
+
</template>
|
192
|
+
<!-- end unlinked address -->
|
193
|
+
</template>
|
194
|
+
<!-- end address -->
|
195
|
+
</li>
|
196
|
+
</template>
|
197
|
+
<!-- end all entries except address -->
|
187
198
|
</template>
|
188
199
|
<!-- end v-for -->
|
189
200
|
</ul>
|
@@ -253,14 +264,14 @@ export default {
|
|
253
264
|
}
|
254
265
|
},
|
255
266
|
computed: {
|
256
|
-
locateAddress() {
|
257
|
-
return "https://www.google.com/maps/place/" + this.addressData.address.streetNo + ", " + this.addressData.address.zip + " " + this.addressData.address.city
|
258
|
-
},
|
259
267
|
websiteUrlText() {
|
260
268
|
return this.addressData.website?.text.replace("https://", "")
|
261
269
|
}
|
262
270
|
},
|
263
271
|
methods: {
|
272
|
+
locateAddress(entry) {
|
273
|
+
return "https://www.google.com/maps/place/" + entry.streetNo + ", " + entry.zip + " " + entry.city
|
274
|
+
},
|
264
275
|
vCardClass(entry) {
|
265
276
|
if (entry.name === 'company') {
|
266
277
|
return "org"
|