@idmui/spot 0.7.0 → 0.7.2
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.
|
@@ -36,16 +36,8 @@ declare namespace _sfc_main {
|
|
|
36
36
|
pickedDate: undefined;
|
|
37
37
|
pickedWeek: string;
|
|
38
38
|
meteogramData: undefined;
|
|
39
|
-
daysTableData: never[];
|
|
40
39
|
hourlyTableData: never[];
|
|
41
|
-
|
|
42
|
-
seasonalData: undefined;
|
|
43
|
-
monthsOptions: never[];
|
|
44
|
-
dateRange: never[];
|
|
45
|
-
dateRangeZ: never[];
|
|
46
|
-
datePickerOptions: {};
|
|
47
|
-
selectDate: undefined;
|
|
48
|
-
gateway: string;
|
|
40
|
+
forecastDays: number;
|
|
49
41
|
};
|
|
50
42
|
namespace computed {
|
|
51
43
|
function computeHourLT(): (time: any) => string;
|
|
@@ -13873,7 +13873,7 @@ function(t) {
|
|
|
13873
13873
|
*/
|
|
13874
13874
|
function(t) {
|
|
13875
13875
|
function A() {
|
|
13876
|
-
return (he.canvg ? Promise.resolve(he.canvg) : import("./index.es-
|
|
13876
|
+
return (he.canvg ? Promise.resolve(he.canvg) : import("./index.es-9bb3e150.js")).catch(function(e) {
|
|
13877
13877
|
return Promise.reject(new Error("Could not load canvg: " + e));
|
|
13878
13878
|
}).then(function(e) {
|
|
13879
13879
|
return e.default ? e.default : e;
|
|
@@ -15542,7 +15542,7 @@ const sm = {
|
|
|
15542
15542
|
const jA = await this.convertSvgUrlToBase64(($ = vA.weather) == null ? void 0 : $.url);
|
|
15543
15543
|
(rA = this.meteogramData) == null || rA.weatherIcons.push({ symbol: "image://" + jA, symbolSize: 30 });
|
|
15544
15544
|
} else
|
|
15545
|
-
this.
|
|
15545
|
+
this.meteogramData.weatherIcons.push({ symbol: "image://", symbolSize: 0 });
|
|
15546
15546
|
(mA = this.meteogramData) == null || mA.weatherNames.push((oA = vA.weather) == null ? void 0 : oA.name);
|
|
15547
15547
|
} else
|
|
15548
15548
|
(Q = this.meteogramData) == null || Q.weatherIcons.push({ symbol: "image://", symbolSize: 0 }), (N = this.meteogramData) == null || N.weatherNames.push("");
|
|
@@ -15612,7 +15612,7 @@ const sm = {
|
|
|
15612
15612
|
const te = await this.convertSvgUrlToBase64((Q = bA.weather) == null ? void 0 : Q.url);
|
|
15613
15613
|
(N = this.meteogramData) == null || N.weatherIcons.push({ symbol: "image://" + te, symbolSize: 30 });
|
|
15614
15614
|
} else
|
|
15615
|
-
this.
|
|
15615
|
+
this.meteogramData.weatherIcons.push({ symbol: "image://", symbolSize: 0 });
|
|
15616
15616
|
(M = this.meteogramData) == null || M.weatherNames.push((P = bA.weather) == null ? void 0 : P.name);
|
|
15617
15617
|
} else
|
|
15618
15618
|
(Y = this.meteogramData) == null || Y.weatherIcons.push({ symbol: "image://", symbolSize: 0 }), (W = this.meteogramData) == null || W.weatherNames.push("");
|
|
@@ -18656,7 +18656,7 @@ function Xv(t, A, e, r, n, i) {
|
|
|
18656
18656
|
}, 8, ["modelValue", "title"])
|
|
18657
18657
|
]);
|
|
18658
18658
|
}
|
|
18659
|
-
const Vv = /* @__PURE__ */ nh(sm, [["render", Xv], ["__scopeId", "data-v-
|
|
18659
|
+
const Vv = /* @__PURE__ */ nh(sm, [["render", Xv], ["__scopeId", "data-v-4cce15bc"]]), YC = {
|
|
18660
18660
|
install(t) {
|
|
18661
18661
|
t.component("SpotWeather", Vv);
|
|
18662
18662
|
}
|
|
@@ -18698,16 +18698,8 @@ const Wv = {
|
|
|
18698
18698
|
pickedDate: void 0,
|
|
18699
18699
|
pickedWeek: "Today",
|
|
18700
18700
|
meteogramData: void 0,
|
|
18701
|
-
daysTableData: [],
|
|
18702
18701
|
hourlyTableData: [],
|
|
18703
|
-
|
|
18704
|
-
seasonalData: void 0,
|
|
18705
|
-
monthsOptions: [],
|
|
18706
|
-
dateRange: [],
|
|
18707
|
-
dateRangeZ: [],
|
|
18708
|
-
datePickerOptions: {},
|
|
18709
|
-
selectDate: void 0,
|
|
18710
|
-
gateway: "https://cbe.idmwx.com"
|
|
18702
|
+
forecastDays: 7
|
|
18711
18703
|
};
|
|
18712
18704
|
},
|
|
18713
18705
|
computed: {
|
|
@@ -18798,14 +18790,14 @@ const Wv = {
|
|
|
18798
18790
|
},
|
|
18799
18791
|
reportData: {
|
|
18800
18792
|
handler() {
|
|
18801
|
-
var t, A, e, r, n, i, a;
|
|
18802
|
-
this.meteoData = this.reportData, this.etime = (t = this.reportData) == null ? void 0 : t.etime, this.positionGmt = (r = (e = (A = this.reportData) == null ? void 0 : A.weather) == null ? void 0 : e[0]) == null ? void 0 : r.timezone, this.positionOffset = (a = (i = (n = this.reportData) == null ? void 0 : n.weather) == null ? void 0 : i[0]) == null ? void 0 : a.offset, this.issuedDate = ee(this.etime).utc().format("MMM-DD/HHmm[Z], YYYY"), this.handleRender();
|
|
18793
|
+
var t, A, e, r, n, i, a, o;
|
|
18794
|
+
this.reportData && (this.meteoData = this.reportData, this.etime = (t = this.reportData) == null ? void 0 : t.etime, this.positionGmt = (r = (e = (A = this.reportData) == null ? void 0 : A.weather) == null ? void 0 : e[0]) == null ? void 0 : r.timezone, this.positionOffset = (a = (i = (n = this.reportData) == null ? void 0 : n.weather) == null ? void 0 : i[0]) == null ? void 0 : a.offset, this.issuedDate = ee(this.etime).utc().format("MMM-DD/HHmm[Z], YYYY"), this.forecastDays = ((o = this.reportData) == null ? void 0 : o.forecastDays) || 7, this.handleRender());
|
|
18803
18795
|
}
|
|
18804
18796
|
}
|
|
18805
18797
|
},
|
|
18806
18798
|
methods: {
|
|
18807
18799
|
handleRender() {
|
|
18808
|
-
this.disposeEcharts(), this.initInfo(), this.handleMeteogramData14(this.meteoData), this.initHourlyTableData(this.meteoData,
|
|
18800
|
+
this.disposeEcharts(), this.initInfo(), this.handleMeteogramData14(this.meteoData, this.forecastDays, this.meteoData.datetime), this.initHourlyTableData(this.meteoData, this.forecastDays, this.meteoData.datetime);
|
|
18809
18801
|
},
|
|
18810
18802
|
initInfo() {
|
|
18811
18803
|
this.activeIndex = oe(this.etime).tz(this.positionGmt).hour(), this.pickedDate = oe(this.etime).tz(this.positionGmt).set({ hour: 0, minute: 0, second: 0, millisecond: 0 }).format();
|
|
@@ -18852,7 +18844,7 @@ const Wv = {
|
|
|
18852
18844
|
const jA = await this.convertSvgUrlToBase64(($ = vA.weather) == null ? void 0 : $.url);
|
|
18853
18845
|
(rA = this.meteogramData) == null || rA.weatherIcons.push({ symbol: "image://" + jA, symbolSize: 30 });
|
|
18854
18846
|
} else
|
|
18855
|
-
this.
|
|
18847
|
+
this.meteogramData.weatherIcons.push({ symbol: "image://", symbolSize: 0 });
|
|
18856
18848
|
(mA = this.meteogramData) == null || mA.weatherNames.push((oA = vA.weather) == null ? void 0 : oA.name);
|
|
18857
18849
|
} else
|
|
18858
18850
|
(Q = this.meteogramData) == null || Q.weatherIcons.push({ symbol: "image://", symbolSize: 0 }), (N = this.meteogramData) == null || N.weatherNames.push("");
|
|
@@ -18922,7 +18914,7 @@ const Wv = {
|
|
|
18922
18914
|
const te = await this.convertSvgUrlToBase64((Q = bA.weather) == null ? void 0 : Q.url);
|
|
18923
18915
|
(N = this.meteogramData) == null || N.weatherIcons.push({ symbol: "image://" + te, symbolSize: 30 });
|
|
18924
18916
|
} else
|
|
18925
|
-
this.
|
|
18917
|
+
this.meteogramData.weatherIcons.push({ symbol: "image://", symbolSize: 0 });
|
|
18926
18918
|
(M = this.meteogramData) == null || M.weatherNames.push((P = bA.weather) == null ? void 0 : P.name);
|
|
18927
18919
|
} else
|
|
18928
18920
|
(Y = this.meteogramData) == null || Y.weatherIcons.push({ symbol: "image://", symbolSize: 0 }), (W = this.meteogramData) == null || W.weatherNames.push("");
|
|
@@ -19971,7 +19963,7 @@ function kC(t, A, e, r, n, i) {
|
|
|
19971
19963
|
]),
|
|
19972
19964
|
S("div", rC, [
|
|
19973
19965
|
(u = n.position) != null && u.name && !((d = n.loading) != null && d.meteogramEchart) ? (QA(), xA("div", nC, A[0] || (A[0] = [
|
|
19974
|
-
bd('<div class="title flex-start" data-v-
|
|
19966
|
+
bd('<div class="title flex-start" data-v-83671fd1><div style="margin-right:20px;" data-v-83671fd1>Meteogram</div></div><div id="weather-icons" data-v-83671fd1></div><div id="weather-condition" data-v-83671fd1></div><div id="wave-swell" data-v-83671fd1></div>', 4)
|
|
19975
19967
|
]))) : (B = n.loading) != null && B.meteogramEchart ? (QA(), xA("div", iC, A[1] || (A[1] = [
|
|
19976
19968
|
S("img", {
|
|
19977
19969
|
style: { height: "200px" },
|
|
@@ -20194,7 +20186,7 @@ function kC(t, A, e, r, n, i) {
|
|
|
20194
20186
|
])
|
|
20195
20187
|
]);
|
|
20196
20188
|
}
|
|
20197
|
-
const OC = /* @__PURE__ */ nh(Wv, [["render", kC], ["__scopeId", "data-v-
|
|
20189
|
+
const OC = /* @__PURE__ */ nh(Wv, [["render", kC], ["__scopeId", "data-v-83671fd1"]]), qC = {
|
|
20198
20190
|
install(t) {
|
|
20199
20191
|
t.component("SpotReport", OC);
|
|
20200
20192
|
}
|
package/dist/index.js
CHANGED