@idmwx/idmui-gl3 3.5.9 → 3.6.1

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
@@ -1,8 +1,8 @@
1
1
  var rt = Object.defineProperty;
2
2
  var ot = (t, e, a) => e in t ? rt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: a }) : t[e] = a;
3
3
  var E = (t, e, a) => (ot(t, typeof e != "symbol" ? e + "" : e, a), a);
4
- import { LayerHelper as Fe, CompanyHelper as Ve, LngLatHelper as K, convertToMonotonicLng2 as st, calculateDistance as We, calculateBearing as Oe, convertToMonotonicLng as pe, interpolateCoordinates as je, convertToStandardLng as Re } from "@idmwx/idmwx-base";
5
- import { resolveComponent as z, openBlock as L, createElementBlock as x, createElementVNode as l, normalizeStyle as j, normalizeClass as M, Fragment as Ae, renderList as De, toDisplayString as S, createVNode as P, withCtx as nt, createTextVNode as Ke, createCommentVNode as N, pushScopeId as U, popScopeId as G, withDirectives as Me, vShow as $e, createStaticVNode as lt, mergeProps as I } from "vue";
4
+ import { LayerHelper as Ve, CompanyHelper as Me, LngLatHelper as K, convertToMonotonicLng2 as st, calculateDistance as Oe, calculateBearing as je, convertToMonotonicLng as pe, interpolateCoordinates as Fe, convertToStandardLng as Re } from "@idmwx/idmwx-base";
5
+ import { resolveComponent as z, openBlock as L, createElementBlock as x, createElementVNode as l, normalizeStyle as j, normalizeClass as M, Fragment as Ae, renderList as De, toDisplayString as S, createVNode as P, withCtx as nt, createTextVNode as Ke, createCommentVNode as N, pushScopeId as U, popScopeId as G, withDirectives as $e, vShow as Be, createStaticVNode as lt, mergeProps as I } from "vue";
6
6
  import * as C from "@turf/turf";
7
7
  import ct from "@mapbox/sphericalmercator";
8
8
  import Q from "moment";
@@ -46,8 +46,8 @@ const T = (t, e) => {
46
46
  autoActive: !0,
47
47
  otherLayers: [],
48
48
  layers: {
49
- weather: [...Fe.WEATHER_LAYERS],
50
- other: [...Fe.OTHER_LAYERS]
49
+ weather: [...Ve.WEATHER_LAYERS],
50
+ other: [...Ve.OTHER_LAYERS]
51
51
  },
52
52
  weatherLayersCache: "weatherLayersCache",
53
53
  autoActiveCache: "autoActiveCache",
@@ -58,7 +58,7 @@ const T = (t, e) => {
58
58
  showPoint: !1,
59
59
  show3d: !1,
60
60
  version: {
61
- v: "0.0.5",
61
+ v: "0.0.6",
62
62
  k: "glCacheVersion"
63
63
  },
64
64
  right: 10
@@ -141,7 +141,7 @@ const T = (t, e) => {
141
141
  this.source = t, this.handleConfirm();
142
142
  }
143
143
  }
144
- }, Z = (t) => (U("data-v-bcc04bb5"), t = t(), G(), t), dt = { class: "idm-gl-layer" }, pt = { class: "bar-item layer-bars" }, mt = /* @__PURE__ */ Z(() => /* @__PURE__ */ l("span", { class: "iconfont" }, "", -1)), ut = [
144
+ }, Z = (t) => (U("data-v-6938e629"), t = t(), G(), t), dt = { class: "idm-gl-layer" }, pt = { class: "bar-item layer-bars" }, mt = /* @__PURE__ */ Z(() => /* @__PURE__ */ l("span", { class: "iconfont" }, "", -1)), ut = [
145
145
  mt
146
146
  ], yt = { class: "bar-item tool-bars" }, ft = /* @__PURE__ */ Z(() => /* @__PURE__ */ l("span", { class: "iconfont" }, "", -1)), gt = [
147
147
  ft
@@ -276,7 +276,7 @@ function Ft(t, e, a, r, i, o) {
276
276
  ], 4)
277
277
  ]);
278
278
  }
279
- const Vt = /* @__PURE__ */ T(ht, [["render", Ft], ["__scopeId", "data-v-bcc04bb5"]]);
279
+ const Vt = /* @__PURE__ */ T(ht, [["render", Ft], ["__scopeId", "data-v-6938e629"]]);
280
280
  const Ut = {
281
281
  name: "IdmWindBarb",
282
282
  props: {
@@ -3592,6 +3592,7 @@ const Ua = {
3592
3592
  emits: ["tropical", "tropicalProbability"],
3593
3593
  data() {
3594
3594
  return {
3595
+ helper: Me,
3595
3596
  source: "tropicals-source",
3596
3597
  clusterSource: "tropicals-cluster-source",
3597
3598
  historyLayer: "tropicals-history-layer",
@@ -3746,7 +3747,7 @@ const Ua = {
3746
3747
  "ecmwf",
3747
3748
  "#f582f2",
3748
3749
  "ukm",
3749
- "#4783f5",
3750
+ "#f5bb47",
3750
3751
  "noaa-at",
3751
3752
  "#9758fb",
3752
3753
  "noaa-ep",
@@ -3797,7 +3798,7 @@ const Ua = {
3797
3798
  "ecmwf",
3798
3799
  "#f582f2",
3799
3800
  "ukm",
3800
- "#4783f5",
3801
+ "#f5bb47",
3801
3802
  "noaa-at",
3802
3803
  "#9758fb",
3803
3804
  "noaa-ep",
@@ -4078,7 +4079,7 @@ const Ua = {
4078
4079
  return C.lineToPolygon(i, { properties: a });
4079
4080
  }
4080
4081
  }
4081
- }, Ge = (t) => (U("data-v-6528818e"), t = t(), G(), t), Ga = {
4082
+ }, Ge = (t) => (U("data-v-822f127c"), t = t(), G(), t), Ga = {
4082
4083
  id: "active-tropical",
4083
4084
  class: "active-tropical"
4084
4085
  }, Ha = { class: "header-box" }, Za = { class: "main" }, Xa = { key: 0 }, Ja = { class: "sub" }, qa = {
@@ -4093,10 +4094,10 @@ const Ua = {
4093
4094
  }, ai = /* @__PURE__ */ Ge(() => /* @__PURE__ */ l("label", null, "Pressure : ", -1)), ii = { class: "row" }, ri = {
4094
4095
  class: "col col-24",
4095
4096
  style: { "justify-content": "flex-start" }
4096
- }, oi = /* @__PURE__ */ Ge(() => /* @__PURE__ */ l("label", { style: { width: "max-content" } }, "Forecast Models : ", -1)), si = { class: "forecast-models" }, ni = ["onClick"], li = /* @__PURE__ */ lt('<div class="row" style="padding:0;height:1px;margin:10px 0;background:var(--idm-black-1);" data-v-6528818e></div><div class="row" style="padding:2px 10px;" data-v-6528818e><div class="legend" data-v-6528818e><div class="icon td" data-v-6528818e></div><div class="label" data-v-6528818e>TD</div></div><div class="legend" data-v-6528818e><div class="icon ts" data-v-6528818e></div><div class="label" data-v-6528818e>TS</div></div><div class="legend" data-v-6528818e><div class="icon sts" data-v-6528818e></div><div class="label" data-v-6528818e>STS</div></div><div class="legend" data-v-6528818e><div class="icon ty" data-v-6528818e></div><div class="label" data-v-6528818e>TY</div></div><div class="legend" data-v-6528818e><div class="icon sty" data-v-6528818e></div><div class="label" data-v-6528818e>STY</div></div><div class="legend" data-v-6528818e><div class="icon supper-ty" data-v-6528818e></div><div class="label" data-v-6528818e>Super TY</div></div></div><div class="row" style="padding:2px 10px;" data-v-6528818e><div class="legend" data-v-6528818e><div class="icon history" data-v-6528818e></div><div class="label" data-v-6528818e>History</div></div><div class="legend" data-v-6528818e><div class="icon r7" data-v-6528818e></div><div class="label" data-v-6528818e>35kts Radii</div></div><div class="legend" data-v-6528818e><div class="icon r10" data-v-6528818e></div><div class="label" data-v-6528818e>50kts Radii</div></div></div>', 3), ci = { class: "more" };
4097
+ }, oi = /* @__PURE__ */ Ge(() => /* @__PURE__ */ l("label", { style: { width: "max-content" } }, "Forecast Models : ", -1)), si = { class: "forecast-models" }, ni = ["onClick"], li = /* @__PURE__ */ lt('<div class="row" style="padding:0;height:1px;margin:10px 0;background:var(--idm-black-1);" data-v-822f127c></div><div class="row" style="padding:2px 10px;" data-v-822f127c><div class="legend" data-v-822f127c><div class="icon td" data-v-822f127c></div><div class="label" data-v-822f127c>TD</div></div><div class="legend" data-v-822f127c><div class="icon ts" data-v-822f127c></div><div class="label" data-v-822f127c>TS</div></div><div class="legend" data-v-822f127c><div class="icon sts" data-v-822f127c></div><div class="label" data-v-822f127c>STS</div></div><div class="legend" data-v-822f127c><div class="icon ty" data-v-822f127c></div><div class="label" data-v-822f127c>TY</div></div><div class="legend" data-v-822f127c><div class="icon sty" data-v-822f127c></div><div class="label" data-v-822f127c>STY</div></div><div class="legend" data-v-822f127c><div class="icon supper-ty" data-v-822f127c></div><div class="label" data-v-822f127c>Super TY</div></div></div><div class="row" style="padding:2px 10px;" data-v-822f127c><div class="legend" data-v-822f127c><div class="icon history" data-v-822f127c></div><div class="label" data-v-822f127c>History</div></div><div class="legend" data-v-822f127c><div class="icon r7" data-v-822f127c></div><div class="label" data-v-822f127c>35kts Radii</div></div><div class="legend" data-v-822f127c><div class="icon r10" data-v-822f127c></div><div class="label" data-v-822f127c>50kts Radii</div></div></div>', 3), ci = { class: "more" };
4097
4098
  function hi(t, e, a, r, i, o) {
4098
4099
  var n, s, c, h, p, d, y, u, g, f, m, v, b, w, k;
4099
- return Me((L(), x("div", Ga, [
4100
+ return $e((L(), x("div", Ga, [
4100
4101
  l("div", Ha, [
4101
4102
  l("div", {
4102
4103
  class: "iconfont close-btn",
@@ -4153,10 +4154,10 @@ function hi(t, e, a, r, i, o) {
4153
4154
  ])
4154
4155
  ])
4155
4156
  ], 512)), [
4156
- [$e, i.showTropicals]
4157
+ [Be, i.showTropicals && !t.$attrs.showTropicalsLegend]
4157
4158
  ]);
4158
4159
  }
4159
- const tt = /* @__PURE__ */ T(Ua, [["render", hi], ["__scopeId", "data-v-6528818e"]]);
4160
+ const tt = /* @__PURE__ */ T(Ua, [["render", hi], ["__scopeId", "data-v-822f127c"]]);
4160
4161
  const di = {
4161
4162
  name: "IdmPrecip3h",
4162
4163
  props: {
@@ -4767,7 +4768,7 @@ const fr = {
4767
4768
  return {
4768
4769
  showMeteo: !1,
4769
4770
  meteoMarker: void 0,
4770
- helper: Ve
4771
+ helper: Me
4771
4772
  };
4772
4773
  },
4773
4774
  watch: {
@@ -4840,12 +4841,12 @@ const fr = {
4840
4841
  ];
4841
4842
  function Ur(t, e, a, r, i, o) {
4842
4843
  var n, s, c, h, p, d, y, u, g, f, m, v, b, w, k, _, A, D, $, W, O, H, X, ee, he, te, R, V, de, q, ne, fe, ge, be, ve, _e, we, Le, xe, Ce, Se, ke, ze, Pe, Te, Ie, Ee;
4843
- return Me((L(), x("div", gr, [
4844
+ return $e((L(), x("div", gr, [
4844
4845
  l("div", br, [
4845
4846
  l("div", vr, [
4846
4847
  l("div", {
4847
4848
  class: "iconfont close",
4848
- onClick: e[0] || (e[0] = (Ne) => i.showMeteo = !1)
4849
+ onClick: e[0] || (e[0] = (We) => i.showMeteo = !1)
4849
4850
  }, ""),
4850
4851
  l("div", _r, S(o.computeLat((n = a.meteo) == null ? void 0 : n.lat)) + "," + S(o.computeLng((s = a.meteo) == null ? void 0 : s.lng)), 1),
4851
4852
  l("div", wr, S(o.computeTime((c = a.meteo) == null ? void 0 : c.utc)), 1)
@@ -4891,7 +4892,7 @@ function Ur(t, e, a, r, i, o) {
4891
4892
  t.$attrs.permission & i.helper.LEVEL.Prime ? (L(), x("div", jr, Vr)) : N("", !0)
4892
4893
  ])
4893
4894
  ], 512)), [
4894
- [$e, i.showMeteo]
4895
+ [Be, i.showMeteo]
4895
4896
  ]);
4896
4897
  }
4897
4898
  const Gr = /* @__PURE__ */ T(fr, [["render", Ur], ["__scopeId", "data-v-fb5b12d6"]]), Hr = {
@@ -5331,7 +5332,7 @@ const to = {
5331
5332
  }, ao = { id: "zone-info" }, io = ["innerHTML"];
5332
5333
  function ro(t, e, a, r, i, o) {
5333
5334
  var n;
5334
- return Me((L(), x("div", ao, [
5335
+ return $e((L(), x("div", ao, [
5335
5336
  l("div", {
5336
5337
  class: "iconfont close",
5337
5338
  onClick: e[0] || (e[0] = (s) => i.showZone = !1)
@@ -5341,7 +5342,7 @@ function ro(t, e, a, r, i, o) {
5341
5342
  innerHTML: (n = i.form) == null ? void 0 : n.name
5342
5343
  }, null, 8, io)
5343
5344
  ], 512)), [
5344
- [$e, i.showZone]
5345
+ [Be, i.showZone]
5345
5346
  ]);
5346
5347
  }
5347
5348
  const oo = /* @__PURE__ */ T(to, [["render", ro], ["__scopeId", "data-v-c0864afc"]]);
@@ -5437,12 +5438,12 @@ const so = {
5437
5438
  this.showPort = !1, this.map.getLayer(this.layer) && this.map.removeLayer(this.layer), this.map.getSource(this.source) && this.map.removeSource(this.source);
5438
5439
  }
5439
5440
  }
5440
- }, Be = (t) => (U("data-v-30e545a2"), t = t(), G(), t), no = { id: "port-info" }, lo = { class: "port-box" }, co = { class: "flex-start" }, ho = /* @__PURE__ */ Be(() => /* @__PURE__ */ l("label", null, "Name : ", -1)), po = { class: "flex-start" }, mo = /* @__PURE__ */ Be(() => /* @__PURE__ */ l("label", null, "Position : ", -1)), uo = { class: "flex-start" }, yo = /* @__PURE__ */ Be(() => /* @__PURE__ */ l("label", null, "LoCode : ", -1)), fo = {
5441
+ }, Ne = (t) => (U("data-v-30e545a2"), t = t(), G(), t), no = { id: "port-info" }, lo = { class: "port-box" }, co = { class: "flex-start" }, ho = /* @__PURE__ */ Ne(() => /* @__PURE__ */ l("label", null, "Name : ", -1)), po = { class: "flex-start" }, mo = /* @__PURE__ */ Ne(() => /* @__PURE__ */ l("label", null, "Position : ", -1)), uo = { class: "flex-start" }, yo = /* @__PURE__ */ Ne(() => /* @__PURE__ */ l("label", null, "LoCode : ", -1)), fo = {
5441
5442
  class: "flex-start",
5442
5443
  style: { "align-items": "flex-start" }
5443
- }, go = /* @__PURE__ */ Be(() => /* @__PURE__ */ l("label", null, "Region : ", -1));
5444
+ }, go = /* @__PURE__ */ Ne(() => /* @__PURE__ */ l("label", null, "Region : ", -1));
5444
5445
  function bo(t, e, a, r, i, o) {
5445
- return Me((L(), x("div", no, [
5446
+ return $e((L(), x("div", no, [
5446
5447
  l("div", {
5447
5448
  class: "close iconfont",
5448
5449
  onClick: e[0] || (e[0] = (n) => i.showPort = !1)
@@ -5468,7 +5469,7 @@ function bo(t, e, a, r, i, o) {
5468
5469
  ])
5469
5470
  ])
5470
5471
  ], 512)), [
5471
- [$e, i.showPort]
5472
+ [Be, i.showPort]
5472
5473
  ]);
5473
5474
  }
5474
5475
  const vo = /* @__PURE__ */ T(so, [["render", bo], ["__scopeId", "data-v-30e545a2"]]), _o = {
@@ -6256,10 +6257,10 @@ const at = /* @__PURE__ */ T(Mo, [["render", No], ["__scopeId", "data-v-51cc4052
6256
6257
  let a = 0;
6257
6258
  const r = [];
6258
6259
  for (let i = 1; i < e.length; i++) {
6259
- const o = e[i - 1], n = e[i], s = o.properties, c = { lng: o.geometry.coordinates[0], lat: o.geometry.coordinates[1] }, h = { lng: n.geometry.coordinates[0], lat: n.geometry.coordinates[1] }, p = We(c, h, s.mode === "RL", 2), d = Oe(c, h, s.mode === "RL", 2);
6260
+ const o = e[i - 1], n = e[i], s = o.properties, c = { lng: o.geometry.coordinates[0], lat: o.geometry.coordinates[1] }, h = { lng: n.geometry.coordinates[0], lat: n.geometry.coordinates[1] }, p = Oe(c, h, s.mode === "RL", 2), d = je(c, h, s.mode === "RL", 2);
6260
6261
  a = K.roundPrecision(a + p, 2);
6261
6262
  let y;
6262
- s.mode === "RL" ? y = pe([c, h]) : y = pe(je(c, h, 200));
6263
+ s.mode === "RL" ? y = pe([c, h]) : y = pe(Fe(c, h, 200));
6263
6264
  const u = C.lineString(y.map((g) => [g.lng, g.lat]));
6264
6265
  u.properties.dist = p, u.properties.bearing = d, u.properties.total = a, r.push(u);
6265
6266
  }
@@ -6272,17 +6273,17 @@ const at = /* @__PURE__ */ T(Mo, [["render", No], ["__scopeId", "data-v-51cc4052
6272
6273
  let o, n;
6273
6274
  if (e) {
6274
6275
  const c = e.properties, h = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, p = { lng: a.lng, lat: a.lat };
6275
- o = We(h, p, c.mode === "RL", 2), n = Oe(h, p, c.mode === "RL", 2);
6276
+ o = Oe(h, p, c.mode === "RL", 2), n = je(h, p, c.mode === "RL", 2);
6276
6277
  let d;
6277
- c.mode === "RL" ? d = pe([h, p]) : d = pe(je(h, p, 200));
6278
+ c.mode === "RL" ? d = pe([h, p]) : d = pe(Fe(h, p, 200));
6278
6279
  const y = C.lineString(d.map((u) => [u.lng, u.lat]));
6279
6280
  y.properties.dist = o, y.properties.bearing = n, i.features.push(y);
6280
6281
  }
6281
6282
  if (r) {
6282
6283
  const c = a.properties, h = a, p = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] };
6283
- o = We(h, p, c.mode === "RL", 2), n = Oe(h, p, c.mode === "RL", 2);
6284
+ o = Oe(h, p, c.mode === "RL", 2), n = je(h, p, c.mode === "RL", 2);
6284
6285
  let d;
6285
- c.mode === "RL" ? d = pe([h, p]) : d = pe(je(h, p, 200));
6286
+ c.mode === "RL" ? d = pe([h, p]) : d = pe(Fe(h, p, 200));
6286
6287
  const y = C.lineString(d.map((u) => [u.lng, u.lat]));
6287
6288
  y.properties.dist = o, y.properties.bearing = n, i.features.push(y);
6288
6289
  }
@@ -6439,8 +6440,8 @@ const Fo = {
6439
6440
  emits: ["enc"],
6440
6441
  data() {
6441
6442
  return {
6442
- helper: Ve,
6443
- vendor: this.$attrs.permission & Ve.LEVEL.Supper ? "hi" : "i4",
6443
+ helper: Me,
6444
+ vendor: this.$attrs.permission & Me.LEVEL.Supper ? "hi" : "i4",
6444
6445
  right: 10
6445
6446
  };
6446
6447
  },
@@ -6642,7 +6643,7 @@ const Yo = {
6642
6643
  if (this.map) {
6643
6644
  const y = ((i = this.map) == null ? void 0 : i.getZoom()) + 1, u = (o = this.map) == null ? void 0 : o.getBounds(), g = `${u._sw.lng},${u._sw.lat},${u._ne.lng},${u._ne.lat}`;
6644
6645
  if (this.handleRampColorState(), this.particleFactor) {
6645
- const f = Fe.WEATHER_LAYERS.find((m) => {
6646
+ const f = Ve.WEATHER_LAYERS.find((m) => {
6646
6647
  var v;
6647
6648
  return ((v = m.peer) == null ? void 0 : v.weight) === this.particleFactor.weight;
6648
6649
  });
@@ -7090,7 +7091,7 @@ const Yo = {
7090
7091
  className: "map-gl-home"
7091
7092
  };
7092
7093
  function Ko(t, e, a, r, i, o) {
7093
- var q, ne, fe, ge, be, ve, _e, we, Le, xe, Ce, Se, ke, ze, Pe, Te, Ie, Ee, Ne, He, Ze, Xe, Je, qe, Ye, Qe;
7094
+ var q, ne, fe, ge, be, ve, _e, we, Le, xe, Ce, Se, ke, ze, Pe, Te, Ie, Ee, We, He, Ze, Xe, Je, qe, Ye, Qe;
7094
7095
  const n = z("IdmGlLayer"), s = z("IdmENC"), c = z("IdmSigWave"), h = z("IdmSwell"), p = z("IdmPrmsl"), d = z("IdmIceberg"), y = z("IdmTropicals"), u = z("IdmCurrents"), g = z("IdmCurrentParticle"), f = z("IdmWindBarb"), m = z("IdmWindParticle"), v = z("IdmPrecip3h"), b = z("IdmVisibility"), w = z("IdmWaterTemp"), k = z("IdmTemp"), _ = z("IdmArctic"), A = z("IdmWarZone"), D = z("IdmGmdssArea"), $ = z("IdmEcaZone"), W = z("IdmAlertZone"), O = z("IdmPort"), H = z("IdmLoadLine"), X = z("IdmTimezone"), ee = z("IdmVRA"), he = z("IdmSpecialArea"), te = z("IdmTerminator"), R = z("IdmLatLng"), V = z("IdmMeasure"), de = z("IdmPoint");
7095
7096
  return a.map ? (L(), x("div", Qo, [
7096
7097
  P(n, I({
@@ -7217,7 +7218,7 @@ function Ko(t, e, a, r, i, o) {
7217
7218
  }, t.$attrs), null, 16, ["map", "area", "before-layer"]),
7218
7219
  P($, I({
7219
7220
  map: a.map,
7220
- zone: (Ne = i.otherLayers) == null ? void 0 : Ne["eca-zones"],
7221
+ zone: (We = i.otherLayers) == null ? void 0 : We["eca-zones"],
7221
7222
  "before-layer": a.beforeLayer
7222
7223
  }, t.$attrs), null, 16, ["map", "zone", "before-layer"]),
7223
7224
  P(W, I({