@idmui/spot 1.5.1 → 1.5.3
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.
|
@@ -14,6 +14,18 @@ declare namespace _sfc_main {
|
|
|
14
14
|
function _default_1(): {};
|
|
15
15
|
export { _default_1 as default };
|
|
16
16
|
}
|
|
17
|
+
namespace locale {
|
|
18
|
+
const type_2: StringConstructor;
|
|
19
|
+
export { type_2 as type };
|
|
20
|
+
const _default_2: string;
|
|
21
|
+
export { _default_2 as default };
|
|
22
|
+
}
|
|
23
|
+
namespace theme {
|
|
24
|
+
const type_3: StringConstructor;
|
|
25
|
+
export { type_3 as type };
|
|
26
|
+
const _default_3: string;
|
|
27
|
+
export { _default_3 as default };
|
|
28
|
+
}
|
|
17
29
|
}
|
|
18
30
|
const emits: string[];
|
|
19
31
|
function data(): {
|
|
@@ -16618,7 +16618,7 @@ function(A) {
|
|
|
16618
16618
|
var i = r.getContext("2d");
|
|
16619
16619
|
i.fillStyle = "#fff", i.fillRect(0, 0, r.width, r.height);
|
|
16620
16620
|
var a = { ignoreMouse: !0, ignoreAnimation: !0, ignoreDimensions: !0 }, l = this;
|
|
16621
|
-
return (u1.canvg ? Promise.resolve(u1.canvg) : import("./index.es-
|
|
16621
|
+
return (u1.canvg ? Promise.resolve(u1.canvg) : import("./index.es-166e03e2.js")).catch(function(f) {
|
|
16622
16622
|
return Promise.reject(new Error("Could not load canvg: " + f));
|
|
16623
16623
|
}).then(function(f) {
|
|
16624
16624
|
return f.default ? f.default : f;
|
|
@@ -17518,6 +17518,14 @@ const zg = {
|
|
|
17518
17518
|
point: {
|
|
17519
17519
|
type: Object,
|
|
17520
17520
|
default: () => ({})
|
|
17521
|
+
},
|
|
17522
|
+
locale: {
|
|
17523
|
+
type: String,
|
|
17524
|
+
default: "en"
|
|
17525
|
+
},
|
|
17526
|
+
theme: {
|
|
17527
|
+
type: String,
|
|
17528
|
+
default: "light"
|
|
17521
17529
|
}
|
|
17522
17530
|
},
|
|
17523
17531
|
emits: ["url"],
|
|
@@ -19951,26 +19959,52 @@ const zg = {
|
|
|
19951
19959
|
message: "PDF is downloading, please wait a moment...",
|
|
19952
19960
|
type: "warning",
|
|
19953
19961
|
duration: 6e3
|
|
19954
|
-
}).then(() => {
|
|
19955
|
-
this.loading.downloading = !1;
|
|
19956
19962
|
}), this.loading.downloading === !0)
|
|
19957
19963
|
return !1;
|
|
19958
19964
|
this.loading.downloading = !0;
|
|
19959
|
-
let A = 7, e, t = 1;
|
|
19960
|
-
this.menuIndex === 1 ? (A = z1(this.dateRangeZ[1]).diff(z1(this.dateRangeZ[0]), "d", !0) + 1, e = l1(this.dateRangeZ[0] || this.etime).tz(this.positionGmt).set({ hour: 0, minute: 0, second: 0 }).format(), t = 3
|
|
19961
|
-
const o = {
|
|
19965
|
+
let A = 7, e, t = 1, o = {};
|
|
19966
|
+
this.menuIndex === 1 ? (A = z1(this.dateRangeZ[1]).diff(z1(this.dateRangeZ[0]), "d", !0) + 1, e = l1(this.dateRangeZ[0] || this.etime).tz(this.positionGmt).set({ hour: 0, minute: 0, second: 0 }).format(), t = 3, o = {
|
|
19962
19967
|
lat: this.position.lat,
|
|
19963
19968
|
lng: this.position.lng,
|
|
19964
19969
|
startTime: e,
|
|
19965
19970
|
length: A,
|
|
19966
19971
|
interval: t,
|
|
19967
19972
|
models: this.forecastModel,
|
|
19968
|
-
autoDownload: !0
|
|
19969
|
-
|
|
19970
|
-
|
|
19973
|
+
autoDownload: !0,
|
|
19974
|
+
showTempChart: !0,
|
|
19975
|
+
locale: this.locale || "en",
|
|
19976
|
+
theme: this.theme || "light",
|
|
19977
|
+
type: "HISTORY"
|
|
19978
|
+
}) : this.menuIndex === 2 ? (A = 7, t = 1, o = {
|
|
19979
|
+
lat: this.position.lat,
|
|
19980
|
+
lng: this.position.lng,
|
|
19981
|
+
startTime: e,
|
|
19982
|
+
length: A,
|
|
19983
|
+
interval: t,
|
|
19984
|
+
models: this.forecastModel,
|
|
19985
|
+
autoDownload: !0,
|
|
19986
|
+
showWeatherChart: !0,
|
|
19987
|
+
locale: this.locale || "en",
|
|
19988
|
+
theme: this.theme || "light",
|
|
19989
|
+
type: "FORECAST"
|
|
19990
|
+
}) : this.menuIndex === 3 && (A = 14, t = 3, o = {
|
|
19991
|
+
lat: this.position.lat,
|
|
19992
|
+
lng: this.position.lng,
|
|
19993
|
+
startTime: e,
|
|
19994
|
+
length: A,
|
|
19995
|
+
interval: t,
|
|
19996
|
+
models: this.forecastModel,
|
|
19997
|
+
autoDownload: !0,
|
|
19998
|
+
showWeatherChart: !0,
|
|
19999
|
+
locale: this.locale || "en",
|
|
20000
|
+
theme: this.theme || "light",
|
|
20001
|
+
type: "FORECAST"
|
|
20002
|
+
}), Ot.post(`${this.gateway}/api/als/spots`, o, {
|
|
19971
20003
|
headers: {
|
|
19972
20004
|
Authorization: this.token
|
|
19973
20005
|
}
|
|
20006
|
+
}).then((b) => {
|
|
20007
|
+
b.data.code === 0 && (this.loading.downloading = !1);
|
|
19974
20008
|
});
|
|
19975
20009
|
},
|
|
19976
20010
|
async handleDownloadPDF2() {
|
|
@@ -21541,7 +21575,7 @@ function A8(A, e, t, o, b, M) {
|
|
|
21541
21575
|
}, 8, ["modelValue", "title"])
|
|
21542
21576
|
]);
|
|
21543
21577
|
}
|
|
21544
|
-
const e8 = /* @__PURE__ */ Nr(zg, [["render", A8], ["__scopeId", "data-v-
|
|
21578
|
+
const e8 = /* @__PURE__ */ Nr(zg, [["render", A8], ["__scopeId", "data-v-8418c45b"]]), aL = {
|
|
21545
21579
|
install(A) {
|
|
21546
21580
|
A.component("SpotWeather", e8);
|
|
21547
21581
|
}
|
package/dist/index.js
CHANGED