comand-component-library 4.1.80 → 4.1.81
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.
@@ -8729,8 +8729,8 @@ const wm = {
|
|
8729
8729
|
computed: {
|
8730
8730
|
locateAddress() {
|
8731
8731
|
if (this.address) {
|
8732
|
-
|
8733
|
-
return e
|
8732
|
+
let e = new URL("https://www.google.de/maps/place/");
|
8733
|
+
return e += this.address.streetNo + this.address.zip + "," + this.address.city + this.address.country, e.href;
|
8734
8734
|
}
|
8735
8735
|
return "https://maps.google.de/maps?ie=UTF8&t=&z=17&iwloc=B&output=embed";
|
8736
8736
|
}
|
@@ -18686,7 +18686,7 @@ function y1(e, n, t, s, i, o) {
|
|
18686
18686
|
], 2)
|
18687
18687
|
], 2);
|
18688
18688
|
}
|
18689
|
-
const b1 = /* @__PURE__ */ P(f1, [["render", y1]]), x1 = "comand-component-library", _1 = "4.1.
|
18689
|
+
const b1 = /* @__PURE__ */ P(f1, [["render", y1]]), x1 = "comand-component-library", _1 = "4.1.81", C1 = "GPL-3.0-only", w1 = "CoManD-UI", k1 = "module", v1 = {
|
18690
18690
|
prepublishOnly: "npm run build-lib",
|
18691
18691
|
dev: "vite",
|
18692
18692
|
build: "vite build",
|
package/package.json
CHANGED
@@ -58,9 +58,11 @@ export default {
|
|
58
58
|
computed: {
|
59
59
|
locateAddress() {
|
60
60
|
if(this.address) {
|
61
|
-
|
62
|
-
url.
|
63
|
-
url
|
61
|
+
// const url = new URL("https://maps.google.de/maps?ie=UTF8&t=&z=17&iwloc=B&output=embed")
|
62
|
+
let url = new URL("https://www.google.de/maps/place/")
|
63
|
+
url += this.address.streetNo + this.address.zip + "," + this.address.city + this.address.country
|
64
|
+
/* url.searchParams.set("hl", "de")
|
65
|
+
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())*/
|
64
66
|
return url.href
|
65
67
|
}
|
66
68
|
return "https://maps.google.de/maps?ie=UTF8&t=&z=17&iwloc=B&output=embed"
|
package/src/utils/date.js
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
function currentDate(returnTime = false) {
|
2
|
+
return returnTime ? new Date().toISOString() : new Date().toISOString().split('T')[0];
|
3
|
+
}
|
4
|
+
|
1
5
|
function formatDate(inputDate, format = "dmy", separator=".") {
|
2
6
|
// Ensure the input is a valid date object or string
|
3
7
|
const date = new Date(inputDate);
|
@@ -20,10 +24,9 @@ function formatDate(inputDate, format = "dmy", separator=".") {
|
|
20
24
|
break
|
21
25
|
default:
|
22
26
|
dateFormated = `${year}${separator}${month}${separator}${day}` // YYYY-MM-DD
|
23
|
-
|
24
27
|
}
|
25
28
|
|
26
29
|
return dateFormated
|
27
30
|
}
|
28
31
|
|
29
|
-
export {formatDate}
|
32
|
+
export {currentDate, formatDate}
|