@idmui/spot 1.1.9 → 1.2.0
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.
|
@@ -62,12 +62,12 @@ declare namespace _sfc_main {
|
|
|
62
62
|
messageInstance: undefined;
|
|
63
63
|
};
|
|
64
64
|
namespace computed {
|
|
65
|
-
function computeHourLT(): (time: any) =>
|
|
65
|
+
function computeHourLT(): (time: any) => any;
|
|
66
66
|
function computeHourZ(): (time: any) => string;
|
|
67
|
-
function computeWeekLT(): (time: any) =>
|
|
68
|
-
function computeMMMDDLT(): (time: any) =>
|
|
69
|
-
function computeMMMDDHHmmLT(): (time: any) =>
|
|
70
|
-
function computeMMMDDyyyyLT(): (time: any) =>
|
|
67
|
+
function computeWeekLT(): (time: any) => any;
|
|
68
|
+
function computeMMMDDLT(): (time: any) => any;
|
|
69
|
+
function computeMMMDDHHmmLT(): (time: any) => any;
|
|
70
|
+
function computeMMMDDyyyyLT(): (time: any) => any;
|
|
71
71
|
function computeLat(): (lat: any, precision?: number) => any;
|
|
72
72
|
function computeLng(): (lng: any, precision?: number) => any;
|
|
73
73
|
function roundPrecision(): (num: any, precision?: number) => any;
|
|
@@ -16609,7 +16609,7 @@ function(A) {
|
|
|
16609
16609
|
var i = n.getContext("2d");
|
|
16610
16610
|
i.fillStyle = "#fff", i.fillRect(0, 0, n.width, n.height);
|
|
16611
16611
|
var a = { ignoreMouse: !0, ignoreAnimation: !0, ignoreDimensions: !0 }, l = this;
|
|
16612
|
-
return (l1.canvg ? Promise.resolve(l1.canvg) : import("./index.es-
|
|
16612
|
+
return (l1.canvg ? Promise.resolve(l1.canvg) : import("./index.es-69356913.js")).catch(function(f) {
|
|
16613
16613
|
return Promise.reject(new Error("Could not load canvg: " + f));
|
|
16614
16614
|
}).then(function(f) {
|
|
16615
16615
|
return f.default ? f.default : f;
|
|
@@ -17561,7 +17561,7 @@ const zg = {
|
|
|
17561
17561
|
},
|
|
17562
17562
|
computed: {
|
|
17563
17563
|
computeHourLT() {
|
|
17564
|
-
return
|
|
17564
|
+
return (A) => {
|
|
17565
17565
|
if (A) {
|
|
17566
17566
|
console.log(994, this.positionGmt);
|
|
17567
17567
|
const e = O1(A).tz(this.positionGmt);
|
|
@@ -17571,7 +17571,7 @@ const zg = {
|
|
|
17571
17571
|
};
|
|
17572
17572
|
},
|
|
17573
17573
|
computeHourZ() {
|
|
17574
|
-
return
|
|
17574
|
+
return (A) => {
|
|
17575
17575
|
if (A) {
|
|
17576
17576
|
const e = b1(A).utc();
|
|
17577
17577
|
return `${e == null ? void 0 : e.format("HH")}Z`;
|
|
@@ -17580,7 +17580,7 @@ const zg = {
|
|
|
17580
17580
|
};
|
|
17581
17581
|
},
|
|
17582
17582
|
computeWeekLT() {
|
|
17583
|
-
return
|
|
17583
|
+
return (A) => {
|
|
17584
17584
|
if (A) {
|
|
17585
17585
|
const e = O1(A).tz(this.positionGmt);
|
|
17586
17586
|
return `${e == null ? void 0 : e.format("dddd")}`;
|
|
@@ -17589,7 +17589,7 @@ const zg = {
|
|
|
17589
17589
|
};
|
|
17590
17590
|
},
|
|
17591
17591
|
computeMMMDDLT() {
|
|
17592
|
-
return
|
|
17592
|
+
return (A) => {
|
|
17593
17593
|
if (A) {
|
|
17594
17594
|
console.log(995, this.positionGmt);
|
|
17595
17595
|
const e = O1(A).tz(this.positionGmt);
|
|
@@ -17599,7 +17599,7 @@ const zg = {
|
|
|
17599
17599
|
};
|
|
17600
17600
|
},
|
|
17601
17601
|
computeMMMDDHHmmLT() {
|
|
17602
|
-
return
|
|
17602
|
+
return (A) => {
|
|
17603
17603
|
if (A) {
|
|
17604
17604
|
const e = O1(A).tz(this.positionGmt);
|
|
17605
17605
|
return `${e == null ? void 0 : e.format("MMM-DD/HHmm")}`;
|
|
@@ -17608,7 +17608,7 @@ const zg = {
|
|
|
17608
17608
|
};
|
|
17609
17609
|
},
|
|
17610
17610
|
computeMMMDDyyyyLT() {
|
|
17611
|
-
return
|
|
17611
|
+
return (A) => {
|
|
17612
17612
|
if (A) {
|
|
17613
17613
|
const e = O1(A).tz(this.positionGmt);
|
|
17614
17614
|
return `${e == null ? void 0 : e.format("MMM-DD, yyyy")}`;
|
|
@@ -17617,19 +17617,13 @@ const zg = {
|
|
|
17617
17617
|
};
|
|
17618
17618
|
},
|
|
17619
17619
|
computeLat() {
|
|
17620
|
-
return
|
|
17621
|
-
return xo.lat2pretty(A, e).pretty;
|
|
17622
|
-
};
|
|
17620
|
+
return (A, e = 4) => xo.lat2pretty(A, e).pretty;
|
|
17623
17621
|
},
|
|
17624
17622
|
computeLng() {
|
|
17625
|
-
return
|
|
17626
|
-
return xo.lng2pretty(A, e).pretty;
|
|
17627
|
-
};
|
|
17623
|
+
return (A, e = 4) => xo.lng2pretty(A, e).pretty;
|
|
17628
17624
|
},
|
|
17629
17625
|
roundPrecision() {
|
|
17630
|
-
return
|
|
17631
|
-
return isNaN(A) ? "-" : xo.roundPrecision(A, e);
|
|
17632
|
-
};
|
|
17626
|
+
return (A, e = 4) => isNaN(A) ? "-" : xo.roundPrecision(A, e);
|
|
17633
17627
|
}
|
|
17634
17628
|
},
|
|
17635
17629
|
watch: {
|
|
@@ -17792,7 +17786,7 @@ const zg = {
|
|
|
17792
17786
|
});
|
|
17793
17787
|
(M == null ? void 0 : M.data.code) === 0 && (this.meteoData = {
|
|
17794
17788
|
...M == null ? void 0 : M.data.data
|
|
17795
|
-
}, this.etime = (b = M == null ? void 0 : M.data) == null ? void 0 : b.etime, this.positionGmt = (n = (p = (z = this.meteoData) == null ? void 0 : z.weather) == null ? void 0 : p[0]) == null ? void 0 : n.timezone, console.log(
|
|
17789
|
+
}, this.etime = (b = M == null ? void 0 : M.data) == null ? void 0 : b.etime, this.positionGmt = (n = (p = (z = this.meteoData) == null ? void 0 : z.weather) == null ? void 0 : p[0]) == null ? void 0 : n.timezone, console.log(998, this.positionGmt), this.positionOffset = (l = (a = (i = this.meteoData) == null ? void 0 : i.weather) == null ? void 0 : a[0]) == null ? void 0 : l.offset, this.issuedDate = b1(this.etime).utc().format("MMM-DD/HHmm[Z], YYYY"));
|
|
17796
17790
|
},
|
|
17797
17791
|
async fetchHistoryMeteo(A) {
|
|
17798
17792
|
var z, p, n, i, a, l, f;
|
|
@@ -17811,7 +17805,7 @@ const zg = {
|
|
|
17811
17805
|
Authorization: this.token
|
|
17812
17806
|
}
|
|
17813
17807
|
});
|
|
17814
|
-
(b == null ? void 0 : b.data.code) === 0 && (this.meteoData = b == null ? void 0 : b.data.data, this.meteoData.showDateSelect = !1, this.etime = (z = b == null ? void 0 : b.data) == null ? void 0 : z.etime, this.positionGmt = (i = (n = (p = this.meteoData) == null ? void 0 : p.weather) == null ? void 0 : n[0]) == null ? void 0 : i.timezone, console.log(
|
|
17808
|
+
(b == null ? void 0 : b.data.code) === 0 && (this.meteoData = b == null ? void 0 : b.data.data, this.meteoData.showDateSelect = !1, this.etime = (z = b == null ? void 0 : b.data) == null ? void 0 : z.etime, this.positionGmt = (i = (n = (p = this.meteoData) == null ? void 0 : p.weather) == null ? void 0 : n[0]) == null ? void 0 : i.timezone, console.log(997, this.positionGmt), this.positionOffset = (f = (l = (a = this.meteoData) == null ? void 0 : a.weather) == null ? void 0 : l[0]) == null ? void 0 : f.offset, this.issuedDate = b1(this.etime).utc().format("MMM-DD/HHmm[Z], YYYY"));
|
|
17815
17809
|
},
|
|
17816
17810
|
async handleRender() {
|
|
17817
17811
|
if (this.disposeEcharts(), this.menuIndex === 1) {
|
|
@@ -21545,7 +21539,7 @@ function A8(A, e, t, o, M, b) {
|
|
|
21545
21539
|
}, 8, ["modelValue", "title"])
|
|
21546
21540
|
]);
|
|
21547
21541
|
}
|
|
21548
|
-
const e8 = /* @__PURE__ */ Nn(zg, [["render", A8], ["__scopeId", "data-v-
|
|
21542
|
+
const e8 = /* @__PURE__ */ Nn(zg, [["render", A8], ["__scopeId", "data-v-8de98ac9"]]), aL = {
|
|
21549
21543
|
install(A) {
|
|
21550
21544
|
A.component("SpotWeather", e8);
|
|
21551
21545
|
}
|
package/dist/index.js
CHANGED