@idmwx/idmui-gl4 1.2.3 → 1.2.4
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 +19 -19
- package/dist/index.umd.cjs +7 -7
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -11805,12 +11805,12 @@ const Ac = {
|
|
|
11805
11805
|
},
|
|
11806
11806
|
computeLat() {
|
|
11807
11807
|
return function(t, e = 4) {
|
|
11808
|
-
return G.lat2pretty(t, e).pretty;
|
|
11808
|
+
return isNaN(t) ? "-" : G.lat2pretty(t, e).pretty;
|
|
11809
11809
|
};
|
|
11810
11810
|
},
|
|
11811
11811
|
computeLng() {
|
|
11812
11812
|
return function(t, e = 4) {
|
|
11813
|
-
return G.lng2pretty(t, e).pretty;
|
|
11813
|
+
return isNaN(t) ? "-" : G.lng2pretty(t, e).pretty;
|
|
11814
11814
|
};
|
|
11815
11815
|
},
|
|
11816
11816
|
roundPrecision() {
|
|
@@ -11940,7 +11940,7 @@ const Ac = {
|
|
|
11940
11940
|
var o, i, a, r, s, c, n, g, p, f, w, P, z, L, b, A, I, C, v, _, T, k, R, V, K, X, Z, J, ee, Q, re, de, pe, se, $, ae, ue, ne, F, ce, xe;
|
|
11941
11941
|
this.currentHourData = {}, this.positionGmt = (i = (o = t == null ? void 0 : t.weather) == null ? void 0 : o[0]) == null ? void 0 : i.timezone, this.positionOffset = (r = (a = t == null ? void 0 : t.weather) == null ? void 0 : a[0]) == null ? void 0 : r.offset;
|
|
11942
11942
|
const e = ((s = oo.pickHourly(t, M(this.form.dateTime))) == null ? void 0 : s[0]) || {};
|
|
11943
|
-
this.currentHourData.utc = e.utc, this.currentHourData.lat = t.lat, this.currentHourData.lng = t.lng, this.currentHourData.temp = this.roundPrecision((c = e == null ? void 0 : e.weather) == null ? void 0 : c.temp, 0) ?? "-", this.currentHourData.precipProbability = this.roundPrecision((g = (n = e == null ? void 0 : e.weather) == null ? void 0 : n.precip) == null ? void 0 : g.probability, 0) ?? "-", this.currentHourData.precip1h = this.roundPrecision((f = (p = e == null ? void 0 : e.weather) == null ? void 0 : p.precip) == null ? void 0 : f.sum, 0) ?? "-", this.currentHourData.visibility = this.roundPrecision((w = e == null ? void 0 : e.weather) == null ? void 0 : w.visibility, 0) ?? "-", this.currentHourData.windSpeed = this.roundPrecision((z = (P = e == null ? void 0 : e.weather) == null ? void 0 : P.wind) == null ? void 0 : z.kts, 1) ?? "-", this.currentHourData.windDir = (b = (L = e == null ? void 0 : e.weather) == null ? void 0 : L.wind) == null ? void 0 : b.direction, this.currentHourData.windLevel = this.roundPrecision((I = (A = e == null ? void 0 : e.weather) == null ? void 0 : A.wind) == null ? void 0 : I.scale, 0) ?? "-", this.currentHourData.windGust = this.roundPrecision((v = (C = e == null ? void 0 : e.weather) == null ? void 0 : C.wind) == null ? void 0 : v.gusts, 1) ?? "-", this.currentHourData.sigwaveHeight = this.roundPrecision((T = (_ = e == null ? void 0 : e.wave) == null ? void 0 : _.sig) == null ? void 0 : T.height, 1) ?? "-", this.currentHourData.sigwaveDir = (R = (k = e == null ? void 0 : e.wave) == null ? void 0 : k.sig) == null ? void 0 : R.direction, this.currentHourData.sigwavePeriod = this.roundPrecision((K = (V = e == null ? void 0 : e.wave) == null ? void 0 : V.sig) == null ? void 0 : K.period, 1) ?? "-", this.currentHourData.windwaveHeight = this.roundPrecision((Z = (X = e == null ? void 0 : e.wave) == null ? void 0 : X.wd) == null ? void 0 : Z.height, 1) ?? "-", this.currentHourData.windwaveDir = (ee = (J = e == null ? void 0 : e.wave) == null ? void 0 : J.wd) == null ? void 0 : ee.direction, this.currentHourData.windwavePeriod = this.roundPrecision((re = (Q = e == null ? void 0 : e.wave) == null ? void 0 : Q.wd) == null ? void 0 : re.period, 1) ?? "-", this.currentHourData.swellHeight = this.roundPrecision((pe = (de = e == null ? void 0 : e.wave) == null ? void 0 : de.swell) == null ? void 0 : pe.height, 1) ?? "-", this.currentHourData.swellDir = ($ = (se = e == null ? void 0 : e.wave) == null ? void 0 : se.swell) == null ? void 0 : $.direction, this.currentHourData.swellPeriod = this.roundPrecision((ue = (ae = e == null ? void 0 : e.wave) == null ? void 0 : ae.swell) == null ? void 0 : ue.period, 1) ?? "-", this.currentHourData.currentSpeed = this.roundPrecision((ne = e == null ? void 0 : e.current) == null ? void 0 : ne.speed, 1) ?? "-", this.currentHourData.currentDir = (F = e == null ? void 0 : e.current) == null ? void 0 : F.direction, this.currentHourData.currentSpeed = this.roundPrecision((ce = e == null ? void 0 : e.current) == null ? void 0 : ce.speed, 1) ?? "-", this.currentHourData.seaLevel = this.roundPrecision(e == null ? void 0 : e.height, 1) ?? "-", this.currentHourData.seaTemp = this.roundPrecision(e == null ? void 0 : e.sst, 0) ?? "-", this.currentHourData.weatherUrls = (xe = e == null ? void 0 : e.weather) == null ? void 0 : xe.url;
|
|
11943
|
+
this.currentHourData.utc = e.utc, this.currentHourData.lat = t.lat, this.currentHourData.lng = t.lng, this.currentHourData.temp = this.roundPrecision((c = e == null ? void 0 : e.weather) == null ? void 0 : c.temp, 0) ?? "-", this.currentHourData.precipProbability = this.roundPrecision((g = (n = e == null ? void 0 : e.weather) == null ? void 0 : n.precip) == null ? void 0 : g.probability, 0) ?? "-", this.currentHourData.precip1h = this.roundPrecision((f = (p = e == null ? void 0 : e.weather) == null ? void 0 : p.precip) == null ? void 0 : f.sum, 0) ?? "-", this.currentHourData.visibility = this.roundPrecision((w = e == null ? void 0 : e.weather) == null ? void 0 : w.visibility, 0) ?? "-", this.currentHourData.windSpeed = this.roundPrecision((z = (P = e == null ? void 0 : e.weather) == null ? void 0 : P.wind) == null ? void 0 : z.kts, 1) ?? "-", this.currentHourData.windDir = ((b = (L = e == null ? void 0 : e.weather) == null ? void 0 : L.wind) == null ? void 0 : b.direction) ?? "-", this.currentHourData.windLevel = this.roundPrecision((I = (A = e == null ? void 0 : e.weather) == null ? void 0 : A.wind) == null ? void 0 : I.scale, 0) ?? "-", this.currentHourData.windGust = this.roundPrecision((v = (C = e == null ? void 0 : e.weather) == null ? void 0 : C.wind) == null ? void 0 : v.gusts, 1) ?? "-", this.currentHourData.sigwaveHeight = this.roundPrecision((T = (_ = e == null ? void 0 : e.wave) == null ? void 0 : _.sig) == null ? void 0 : T.height, 1) ?? "-", this.currentHourData.sigwaveDir = (R = (k = e == null ? void 0 : e.wave) == null ? void 0 : k.sig) == null ? void 0 : R.direction, this.currentHourData.sigwavePeriod = this.roundPrecision((K = (V = e == null ? void 0 : e.wave) == null ? void 0 : V.sig) == null ? void 0 : K.period, 1) ?? "-", this.currentHourData.windwaveHeight = this.roundPrecision((Z = (X = e == null ? void 0 : e.wave) == null ? void 0 : X.wd) == null ? void 0 : Z.height, 1) ?? "-", this.currentHourData.windwaveDir = (ee = (J = e == null ? void 0 : e.wave) == null ? void 0 : J.wd) == null ? void 0 : ee.direction, this.currentHourData.windwavePeriod = this.roundPrecision((re = (Q = e == null ? void 0 : e.wave) == null ? void 0 : Q.wd) == null ? void 0 : re.period, 1) ?? "-", this.currentHourData.swellHeight = this.roundPrecision((pe = (de = e == null ? void 0 : e.wave) == null ? void 0 : de.swell) == null ? void 0 : pe.height, 1) ?? "-", this.currentHourData.swellDir = ($ = (se = e == null ? void 0 : e.wave) == null ? void 0 : se.swell) == null ? void 0 : $.direction, this.currentHourData.swellPeriod = this.roundPrecision((ue = (ae = e == null ? void 0 : e.wave) == null ? void 0 : ae.swell) == null ? void 0 : ue.period, 1) ?? "-", this.currentHourData.currentSpeed = this.roundPrecision((ne = e == null ? void 0 : e.current) == null ? void 0 : ne.speed, 1) ?? "-", this.currentHourData.currentDir = (F = e == null ? void 0 : e.current) == null ? void 0 : F.direction, this.currentHourData.currentSpeed = this.roundPrecision((ce = e == null ? void 0 : e.current) == null ? void 0 : ce.speed, 1) ?? "-", this.currentHourData.seaLevel = this.roundPrecision(e == null ? void 0 : e.height, 1) ?? "-", this.currentHourData.seaTemp = this.roundPrecision(e == null ? void 0 : e.sst, 0) ?? "-", this.currentHourData.weatherUrls = (xe = e == null ? void 0 : e.weather) == null ? void 0 : xe.url;
|
|
11944
11944
|
},
|
|
11945
11945
|
handleBind() {
|
|
11946
11946
|
var t, e;
|
|
@@ -12467,7 +12467,7 @@ function Jc(t, e, o, i, a, r) {
|
|
|
12467
12467
|
class: "pa-2 px-0 text-left"
|
|
12468
12468
|
}, {
|
|
12469
12469
|
default: u(() => [
|
|
12470
|
-
N(h(a.currentHourData.windDir) + " / " + h(a.currentHourData.windSpeed) + "kts / BF" + h(a.currentHourData.windLevel), 1)
|
|
12470
|
+
N(h(a.currentHourData.windDir ?? "-") + " / " + h(a.currentHourData.windSpeed ?? "-") + "kts / BF" + h(a.currentHourData.windLevel ?? "-"), 1)
|
|
12471
12471
|
]),
|
|
12472
12472
|
_: 1
|
|
12473
12473
|
}),
|
|
@@ -12485,7 +12485,7 @@ function Jc(t, e, o, i, a, r) {
|
|
|
12485
12485
|
class: "pa-2 px-0 text-left"
|
|
12486
12486
|
}, {
|
|
12487
12487
|
default: u(() => [
|
|
12488
|
-
N(h(a.currentHourData.sigwaveDir) + " / " + h(a.currentHourData.sigwaveHeight) + "m / " + h(a.currentHourData.sigwavePeriod) + "s", 1)
|
|
12488
|
+
N(h(a.currentHourData.sigwaveDir ?? "-") + " / " + h(a.currentHourData.sigwaveHeight ?? "-") + "m / " + h(a.currentHourData.sigwavePeriod ?? "-") + "s", 1)
|
|
12489
12489
|
]),
|
|
12490
12490
|
_: 1
|
|
12491
12491
|
})
|
|
@@ -12508,7 +12508,7 @@ function Jc(t, e, o, i, a, r) {
|
|
|
12508
12508
|
class: "pa-2 px-0 text-left"
|
|
12509
12509
|
}, {
|
|
12510
12510
|
default: u(() => [
|
|
12511
|
-
N(h(a.currentHourData.windwaveDir) + " / " + h(a.currentHourData.windwaveHeight) + "m / " + h(a.currentHourData.windwavePeriod) + "s", 1)
|
|
12511
|
+
N(h(a.currentHourData.windwaveDir ?? "-") + " / " + h(a.currentHourData.windwaveHeight ?? "-") + "m / " + h(a.currentHourData.windwavePeriod ?? "-") + "s", 1)
|
|
12512
12512
|
]),
|
|
12513
12513
|
_: 1
|
|
12514
12514
|
}),
|
|
@@ -12526,7 +12526,7 @@ function Jc(t, e, o, i, a, r) {
|
|
|
12526
12526
|
class: "pa-2 px-0 text-left"
|
|
12527
12527
|
}, {
|
|
12528
12528
|
default: u(() => [
|
|
12529
|
-
N(h(a.currentHourData.swellDir) + " / " + h(a.currentHourData.swellHeight) + "m / " + h(a.currentHourData.swellPeriod) + "s", 1)
|
|
12529
|
+
N(h(a.currentHourData.swellDir ?? "-") + " / " + h(a.currentHourData.swellHeight ?? "-") + "m / " + h(a.currentHourData.swellPeriod ?? "-") + "s", 1)
|
|
12530
12530
|
]),
|
|
12531
12531
|
_: 1
|
|
12532
12532
|
})
|
|
@@ -12549,7 +12549,7 @@ function Jc(t, e, o, i, a, r) {
|
|
|
12549
12549
|
class: "pa-2 px-0 text-left"
|
|
12550
12550
|
}, {
|
|
12551
12551
|
default: u(() => [
|
|
12552
|
-
N(h(a.currentHourData.currentDir) + " / " + h(a.currentHourData.currentSpeed) + "kts", 1)
|
|
12552
|
+
N(h(a.currentHourData.currentDir ?? "-") + " / " + h(a.currentHourData.currentSpeed ?? "-") + "kts", 1)
|
|
12553
12553
|
]),
|
|
12554
12554
|
_: 1
|
|
12555
12555
|
}),
|
|
@@ -12567,7 +12567,7 @@ function Jc(t, e, o, i, a, r) {
|
|
|
12567
12567
|
class: "pa-2 px-0 text-left"
|
|
12568
12568
|
}, {
|
|
12569
12569
|
default: u(() => [
|
|
12570
|
-
N(h(a.currentHourData.visibility) + " nm", 1)
|
|
12570
|
+
N(h(a.currentHourData.visibility ?? "-") + " nm", 1)
|
|
12571
12571
|
]),
|
|
12572
12572
|
_: 1
|
|
12573
12573
|
})
|
|
@@ -12582,7 +12582,7 @@ function Jc(t, e, o, i, a, r) {
|
|
|
12582
12582
|
default: u(() => [
|
|
12583
12583
|
o.followList.some((v) => {
|
|
12584
12584
|
var _, T;
|
|
12585
|
-
return ((_ = v == null ? void 0 : v.coordinate) == null ? void 0 : _.lng) === a.
|
|
12585
|
+
return ((_ = v == null ? void 0 : v.coordinate) == null ? void 0 : _.lng) === a.form.lng && ((T = v == null ? void 0 : v.coordinate) == null ? void 0 : T.lat) === a.form.lat;
|
|
12586
12586
|
}) ? (y(), D(s, {
|
|
12587
12587
|
key: 0,
|
|
12588
12588
|
class: "text-none text-body-1",
|
|
@@ -12614,17 +12614,17 @@ function Jc(t, e, o, i, a, r) {
|
|
|
12614
12614
|
_: 1
|
|
12615
12615
|
}, 8, ["onClick"])),
|
|
12616
12616
|
d(s, {
|
|
12617
|
+
height: "32",
|
|
12617
12618
|
variant: "text",
|
|
12618
12619
|
density: "compact",
|
|
12619
12620
|
"append-icon": "mdi-chevron-right",
|
|
12620
12621
|
class: "text-none text-body-1",
|
|
12621
12622
|
onClick: r.handleMeteoMore
|
|
12622
12623
|
}, {
|
|
12623
|
-
default: u(() =>
|
|
12624
|
-
N("
|
|
12625
|
-
])
|
|
12626
|
-
_: 1
|
|
12627
|
-
__: [19]
|
|
12624
|
+
default: u(() => [
|
|
12625
|
+
N(h(t.$t("spot.forecast")), 1)
|
|
12626
|
+
]),
|
|
12627
|
+
_: 1
|
|
12628
12628
|
}, 8, ["onClick"])
|
|
12629
12629
|
]),
|
|
12630
12630
|
_: 1
|
|
@@ -13753,7 +13753,7 @@ class vm {
|
|
|
13753
13753
|
type: "vector"
|
|
13754
13754
|
}
|
|
13755
13755
|
},
|
|
13756
|
-
sprite: "mapbox://sprites/neatchenheng/cmd894dwn036m01rf7anc0k0d/
|
|
13756
|
+
sprite: "mapbox://sprites/neatchenheng/cmd894dwn036m01rf7anc0k0d/bh2zye99da20r0eylk9p33gbn",
|
|
13757
13757
|
glyphs: "mapbox://fonts/mapbox/{fontstack}/{range}.pbf",
|
|
13758
13758
|
projection: {
|
|
13759
13759
|
name: "equirectangular"
|
|
@@ -15297,7 +15297,7 @@ class vm {
|
|
|
15297
15297
|
type: "vector"
|
|
15298
15298
|
}
|
|
15299
15299
|
},
|
|
15300
|
-
sprite: "mapbox://sprites/neatchenheng/cmdqwez32005b01re2w0k3zk4/
|
|
15300
|
+
sprite: "mapbox://sprites/neatchenheng/cmdqwez32005b01re2w0k3zk4/3w0qcixxrxxonxutm2qkollqi",
|
|
15301
15301
|
glyphs: "mapbox://fonts/mapbox/{fontstack}/{range}.pbf",
|
|
15302
15302
|
projection: {
|
|
15303
15303
|
name: "equirectangular"
|
|
@@ -20577,7 +20577,7 @@ class vm {
|
|
|
20577
20577
|
type: "vector"
|
|
20578
20578
|
}
|
|
20579
20579
|
},
|
|
20580
|
-
sprite: "mapbox://sprites/neatchenheng/cmdiadnej03n101r485bs2m6a/
|
|
20580
|
+
sprite: "mapbox://sprites/neatchenheng/cmdiadnej03n101r485bs2m6a/4brh50212qdflq3f6dwu3yjln",
|
|
20581
20581
|
glyphs: "mapbox://fonts/mapbox/{fontstack}/{range}.pbf",
|
|
20582
20582
|
projection: {
|
|
20583
20583
|
name: "equirectangular"
|
|
@@ -31856,7 +31856,7 @@ class vm {
|
|
|
31856
31856
|
i4: this.i4.source
|
|
31857
31857
|
// "hi": this.hi.source
|
|
31858
31858
|
},
|
|
31859
|
-
sprite: "mapbox://sprites/neatchenheng/cmddwkooj003i01ptch7p9gvz/
|
|
31859
|
+
sprite: "mapbox://sprites/neatchenheng/cmddwkooj003i01ptch7p9gvz/8ej8fh7bqw5mhdjot66571v26",
|
|
31860
31860
|
glyphs: "mapbox://fonts/mapbox/{fontstack}/{range}.pbf",
|
|
31861
31861
|
projection: {
|
|
31862
31862
|
name: "equirectangular"
|