@idmwx/idmui-gl4 1.2.2 → 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 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.point.lng && ((T = v == null ? void 0 : v.coordinate) == null ? void 0 : T.lat) === a.point.lat;
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(() => e[19] || (e[19] = [
12624
- N("Forecast", -1)
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/bz666gsj7u5oat4j8k2l1dwes",
13756
+ sprite: "mapbox://sprites/neatchenheng/cmd894dwn036m01rf7anc0k0d/bh2zye99da20r0eylk9p33gbn",
13757
13757
  glyphs: "mapbox://fonts/mapbox/{fontstack}/{range}.pbf",
13758
13758
  projection: {
13759
13759
  name: "equirectangular"
@@ -15165,7 +15165,11 @@ class vm {
15165
15165
  "LLRed"
15166
15166
  ],
15167
15167
  "rgba(217, 150, 151, 0.6)",
15168
- "rgb(255, 255, 255)"
15168
+ [
15169
+ "LLSUMMER"
15170
+ ],
15171
+ "rgba(111, 110, 212, 0.6)",
15172
+ "rgba(255, 255, 255, 0.6)"
15169
15173
  ],
15170
15174
  "fill-outline-color": "rgba(255, 255, 255, 0.3)"
15171
15175
  },
@@ -15293,7 +15297,7 @@ class vm {
15293
15297
  type: "vector"
15294
15298
  }
15295
15299
  },
15296
- sprite: "mapbox://sprites/neatchenheng/cmdqwez32005b01re2w0k3zk4/043aysza9g0kol1p98tvlqaia",
15300
+ sprite: "mapbox://sprites/neatchenheng/cmdqwez32005b01re2w0k3zk4/3w0qcixxrxxonxutm2qkollqi",
15297
15301
  glyphs: "mapbox://fonts/mapbox/{fontstack}/{range}.pbf",
15298
15302
  projection: {
15299
15303
  name: "equirectangular"
@@ -16692,7 +16696,11 @@ class vm {
16692
16696
  "LLRed"
16693
16697
  ],
16694
16698
  "rgba(217, 150, 151, 0.6)",
16695
- "rgb(255, 255, 255)"
16699
+ [
16700
+ "LLSUMMER"
16701
+ ],
16702
+ "rgba(111, 110, 212, 0.6)",
16703
+ "rgba(255, 255, 255, 0.6)"
16696
16704
  ],
16697
16705
  "fill-outline-color": "rgba(255, 255, 255, 0.3)"
16698
16706
  },
@@ -20569,7 +20577,7 @@ class vm {
20569
20577
  type: "vector"
20570
20578
  }
20571
20579
  },
20572
- sprite: "mapbox://sprites/neatchenheng/cmdiadnej03n101r485bs2m6a/0tw385oibzjf7i8y5jsvcglnd",
20580
+ sprite: "mapbox://sprites/neatchenheng/cmdiadnej03n101r485bs2m6a/4brh50212qdflq3f6dwu3yjln",
20573
20581
  glyphs: "mapbox://fonts/mapbox/{fontstack}/{range}.pbf",
20574
20582
  projection: {
20575
20583
  name: "equirectangular"
@@ -21331,7 +21339,11 @@ class vm {
21331
21339
  "LLRed"
21332
21340
  ],
21333
21341
  "rgba(217, 150, 151, 0.6)",
21334
- "rgb(255, 255, 255)"
21342
+ [
21343
+ "LLSUMMER"
21344
+ ],
21345
+ "rgba(111, 110, 212, 0.6)",
21346
+ "rgba(255, 255, 255, 0.6)"
21335
21347
  ],
21336
21348
  "fill-outline-color": "rgba(255, 255, 255, 0.3)"
21337
21349
  },
@@ -31844,7 +31856,7 @@ class vm {
31844
31856
  i4: this.i4.source
31845
31857
  // "hi": this.hi.source
31846
31858
  },
31847
- sprite: "mapbox://sprites/neatchenheng/cmddwkooj003i01ptch7p9gvz/0jzn5u6i3ep6hqkci88flctvp",
31859
+ sprite: "mapbox://sprites/neatchenheng/cmddwkooj003i01ptch7p9gvz/8ej8fh7bqw5mhdjot66571v26",
31848
31860
  glyphs: "mapbox://fonts/mapbox/{fontstack}/{range}.pbf",
31849
31861
  projection: {
31850
31862
  name: "equirectangular"
@@ -32138,7 +32150,11 @@ class vm {
32138
32150
  "LLRed"
32139
32151
  ],
32140
32152
  "rgba(217, 150, 151, 0.6)",
32141
- "rgb(255, 255, 255)"
32153
+ [
32154
+ "LLSUMMER"
32155
+ ],
32156
+ "rgba(111, 110, 212, 0.6)",
32157
+ "rgba(255, 255, 255, 0.6)"
32142
32158
  ],
32143
32159
  "fill-outline-color": "rgba(255, 255, 255, 0.3)"
32144
32160
  },