@idmwx/idmui-gl3 6.1.5 → 6.1.7
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/dist/index.js
CHANGED
|
@@ -4703,6 +4703,7 @@ class ht {
|
|
|
4703
4703
|
*/
|
|
4704
4704
|
static autoPickMeteoModel(e = "best_match") {
|
|
4705
4705
|
var t, r;
|
|
4706
|
+
e = e == null ? void 0 : e.toLowerCase(), e = e === "ec" ? "ecmwf" : e;
|
|
4706
4707
|
const i = e.toLowerCase().split(","), s = [], n = [];
|
|
4707
4708
|
for (const l of i) {
|
|
4708
4709
|
let c = Xe.find((h) => {
|
|
@@ -5330,9 +5331,12 @@ const Oa = {
|
|
|
5330
5331
|
timeZone: {
|
|
5331
5332
|
type: Number,
|
|
5332
5333
|
default: 0
|
|
5334
|
+
},
|
|
5335
|
+
permission: {
|
|
5336
|
+
type: Number
|
|
5333
5337
|
}
|
|
5334
5338
|
},
|
|
5335
|
-
emits: ["tropical", "tropicalProbability"],
|
|
5339
|
+
emits: ["tropical", "tropicalProbability", "tropicalNotification"],
|
|
5336
5340
|
data() {
|
|
5337
5341
|
return {
|
|
5338
5342
|
helper: Ze,
|
|
@@ -5763,6 +5767,9 @@ const Oa = {
|
|
|
5763
5767
|
handleStrikeProbability(a) {
|
|
5764
5768
|
this.$emit("tropicalProbability", a);
|
|
5765
5769
|
},
|
|
5770
|
+
handleNotification(a) {
|
|
5771
|
+
this.$emit("tropicalNotification", a);
|
|
5772
|
+
},
|
|
5766
5773
|
handleToggleCircles(a) {
|
|
5767
5774
|
var e, t;
|
|
5768
5775
|
a.showCircle = !a.showCircle, (t = (e = this.tropicals.data) == null ? void 0 : e.features) == null || t.forEach((r) => {
|
|
@@ -5873,28 +5880,28 @@ function si(a, e, t, r, i, s) {
|
|
|
5873
5880
|
o("div", Ka, [
|
|
5874
5881
|
o("div", Xa, [
|
|
5875
5882
|
o("div", Ja, [
|
|
5876
|
-
e[
|
|
5883
|
+
e[3] || (e[3] = o("label", null, "Wind speed : ", -1)),
|
|
5877
5884
|
o("span", null, I(((_ = (k = i.activeTropicals) == null ? void 0 : k.history) == null ? void 0 : _.kts) || "-") + " [kts]", 1),
|
|
5878
5885
|
o("span", null, ", BF " + I(s.computeBF(((b = (f = i.activeTropicals) == null ? void 0 : f.history) == null ? void 0 : b.kts) || 0)), 1)
|
|
5879
5886
|
]),
|
|
5880
5887
|
o("div", qa, [
|
|
5881
|
-
e[
|
|
5888
|
+
e[4] || (e[4] = o("label", null, "Pressure : ", -1)),
|
|
5882
5889
|
o("span", null, I(((C = (g = i.activeTropicals) == null ? void 0 : g.history) == null ? void 0 : C.pressure) || "-") + " [hPa]", 1)
|
|
5883
5890
|
])
|
|
5884
5891
|
]),
|
|
5885
5892
|
o("div", Va, [
|
|
5886
5893
|
o("div", Za, [
|
|
5887
|
-
e[
|
|
5894
|
+
e[5] || (e[5] = o("label", null, "Move Speed: ", -1)),
|
|
5888
5895
|
o("span", null, I((y = s.computeMovement(i.activeTropicals)) == null ? void 0 : y.kts) + " [kts]", 1)
|
|
5889
5896
|
]),
|
|
5890
5897
|
o("div", $a, [
|
|
5891
|
-
e[
|
|
5898
|
+
e[6] || (e[6] = o("label", null, "Move Dir: ", -1)),
|
|
5892
5899
|
o("span", null, I((L = s.computeMovement(i.activeTropicals)) == null ? void 0 : L.deg) + " [°]", 1)
|
|
5893
5900
|
])
|
|
5894
5901
|
]),
|
|
5895
5902
|
o("div", ei, [
|
|
5896
5903
|
o("div", ti, [
|
|
5897
|
-
e[
|
|
5904
|
+
e[7] || (e[7] = o("label", { style: { width: "max-content" } }, "Forecast Models : ", -1)),
|
|
5898
5905
|
o("div", ai, [
|
|
5899
5906
|
(m(!0), u(V, null, $((T = i.activeTropicals) == null ? void 0 : T.forecasts, (D, F) => {
|
|
5900
5907
|
var N, j, G, W;
|
|
@@ -5915,12 +5922,18 @@ function si(a, e, t, r, i, s) {
|
|
|
5915
5922
|
])
|
|
5916
5923
|
])
|
|
5917
5924
|
]),
|
|
5918
|
-
e[
|
|
5925
|
+
e[8] || (e[8] = yt('<div class="row" style="padding:0;height:1px;margin:10px 0;background:var(--idm-black-1);"></div><div class="row" style="padding:2px 10px;"><div class="legend"><div class="icon td"></div><div class="label">TD</div></div><div class="legend"><div class="icon ts"></div><div class="label">TS</div></div><div class="legend"><div class="icon sts"></div><div class="label">STS</div></div><div class="legend"><div class="icon ty"></div><div class="label">TY</div></div><div class="legend"><div class="icon sty"></div><div class="label">STY</div></div><div class="legend"><div class="icon supper-ty"></div><div class="label">Super TY</div></div></div><div class="row" style="padding:2px 10px;"><div class="legend"><div class="icon history"></div><div class="label">History</div></div><div class="legend"><div class="icon r7"></div><div class="label">35kts Radii</div></div><div class="legend"><div class="icon r10"></div><div class="label">50kts Radii</div></div></div>', 3))
|
|
5919
5926
|
]),
|
|
5920
5927
|
o("div", ri, [
|
|
5928
|
+
t.permission & i.helper.LEVEL.Supper ? (m(), u("div", {
|
|
5929
|
+
key: 0,
|
|
5930
|
+
class: "button",
|
|
5931
|
+
style: { "margin-right": "10px" },
|
|
5932
|
+
onClick: e[1] || (e[1] = (D) => s.handleNotification(i.activeTropicals))
|
|
5933
|
+
}, "Notify")) : J("", !0),
|
|
5921
5934
|
o("div", {
|
|
5922
5935
|
class: "button",
|
|
5923
|
-
onClick: e[
|
|
5936
|
+
onClick: e[2] || (e[2] = (D) => s.handleStrikeProbability(i.activeTropicals))
|
|
5924
5937
|
}, "Strike Probability >>")
|
|
5925
5938
|
])
|
|
5926
5939
|
])
|
|
@@ -5928,7 +5941,7 @@ function si(a, e, t, r, i, s) {
|
|
|
5928
5941
|
[Oe, i.showTropicals && !a.$attrs.hideTropicalsLegend]
|
|
5929
5942
|
]);
|
|
5930
5943
|
}
|
|
5931
|
-
const dt = /* @__PURE__ */ U(Oa, [["render", si]
|
|
5944
|
+
const dt = /* @__PURE__ */ U(Oa, [["render", si]]);
|
|
5932
5945
|
const oi = {
|
|
5933
5946
|
name: "IdmPrecip3h",
|
|
5934
5947
|
props: {
|