comand-component-library 4.1.81 → 4.1.83

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": "4.1.81",
3
+ "version": "4.1.83",
4
4
  "license": "GPL-3.0-only",
5
5
  "author": "CoManD-UI",
6
6
  "private": false,
@@ -9,10 +9,10 @@
9
9
  "name": "address",
10
10
  "iconClass": "icon-home",
11
11
  "labelText": "Address",
12
- "streetNo": "Your Street/No",
13
- "zip": "Your zip",
14
- "city": "Your city",
15
- "state": "Your state",
12
+ "streetNo": "1355 Market Street",
13
+ "zip": "94103",
14
+ "city": "San Francisco",
15
+ "state": "CA",
16
16
  "pobox": "Your PO Box",
17
17
  "miscInfo": "Misc. info",
18
18
  "country": "Your country",
@@ -10,7 +10,12 @@
10
10
  <!-- end CmdSystemMessage -->
11
11
 
12
12
  <!-- begin iframe with google-map -->
13
- <iframe v-else :src="locateAddress"></iframe>
13
+ <iframe
14
+ v-else
15
+ :src="locateAddress"
16
+ loading="lazy"
17
+ referrerpolicy="no-referrer-when-downgrade">
18
+ </iframe>
14
19
  <!-- end iframe with google-map -->
15
20
  </div>
16
21
  </template>
@@ -63,7 +68,7 @@ export default {
63
68
  url += this.address.streetNo + this.address.zip + "," + this.address.city + this.address.country
64
69
  /* url.searchParams.set("hl", "de")
65
70
  url.searchParams.set("q", [this.address.streetNo, this.address.zip, this.address.city, this.address.country, this.address.latitude, this.address.longitude, this.address.location].join(" ").trim())*/
66
- return url.href
71
+ return url
67
72
  }
68
73
  return "https://maps.google.de/maps?ie=UTF8&t=&z=17&iwloc=B&output=embed"
69
74
  }
package/src/index.js CHANGED
@@ -69,7 +69,8 @@ export { getFileExtension } from '@/utils/getFileExtension'
69
69
  export { capitalize } from '@/utils/string'
70
70
  export { useScrollspy } from '@/composables/scrollspy'
71
71
  export { setCookieDisclaimerCookie, getCookieDisclaimerCookie } from '@/utils/cookie'
72
- export { formatDate } from "@/utils/date"
72
+ export { currentDate, formatDate } from "@/utils/date"
73
+ export { fullName } from "@/utils/name"
73
74
 
74
75
  // export composables
75
76
  export { useSequence } from '@/composables/sequence'
@@ -0,0 +1,13 @@
1
+ function fullName(firstName, middleName = null, lastName) {
2
+ let fullName = ""
3
+ fullName += firstName + " "
4
+
5
+ if(middleName) {
6
+ fullName += middleName + " "
7
+ }
8
+
9
+ fullName += lastName
10
+ return fullName
11
+ }
12
+
13
+ export {fullName}