@idmwx/idmui-gl4 1.3.8 → 1.4.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
@@ -3,9 +3,9 @@ var $a = (t, e, o) => e in t ? Xa(t, e, { enumerable: !0, configurable: !0, writ
3
3
  var de = (t, e, o) => ($a(t, typeof e != "symbol" ? e + "" : e, o), o);
4
4
  import Se from "axios";
5
5
  import { useTheme as ze } from "vuetify";
6
- import { openBlock as b, createElementBlock as S, resolveComponent as x, createBlock as R, withCtx as u, createVNode as h, withModifiers as Ee, createElementVNode as l, createCommentVNode as M, normalizeClass as Ge, toDisplayString as m, createTextVNode as j, Fragment as be, renderList as we, withDirectives as Ue, vShow as We, mergeProps as B, normalizeStyle as ie } from "vue";
6
+ import { openBlock as b, createElementBlock as S, resolveComponent as x, createBlock as R, withCtx as u, createVNode as h, withModifiers as Ee, createElementVNode as l, createCommentVNode as M, normalizeClass as He, toDisplayString as m, createTextVNode as j, Fragment as be, renderList as we, withDirectives as We, vShow as Ge, mergeProps as B, normalizeStyle as ie } from "vue";
7
7
  import ve from "mapbox-gl";
8
- import { LngLatHelper as X, TropicalHelper as Va, LaneHelper as He } from "@idm-plugin/geo";
8
+ import { LngLatHelper as X, TropicalHelper as Va, LaneHelper as Ue } from "@idm-plugin/geo";
9
9
  import D from "moment";
10
10
  import { Meteo2Assist as ao, TidesAssist as qa } from "@idm-plugin/meteo";
11
11
  import * as ro from "echarts";
@@ -1682,7 +1682,7 @@ function yr(t, e, o, i, a, r) {
1682
1682
  l("div", gi, [
1683
1683
  l("div", fi, [
1684
1684
  l("div", {
1685
- class: Ge(["fi mr-2 rounded elevation-4", `fi-${(y = o.port) != null && y.cntLoCode ? (T = (k = o.port) == null ? void 0 : k.cntLoCode) == null ? void 0 : T.toLowerCase() : "xx"}`]),
1685
+ class: He(["fi mr-2 rounded elevation-4", `fi-${(y = o.port) != null && y.cntLoCode ? (T = (k = o.port) == null ? void 0 : k.cntLoCode) == null ? void 0 : T.toLowerCase() : "xx"}`]),
1686
1686
  style: { width: "36px", height: "24px" }
1687
1687
  }, null, 2),
1688
1688
  l("div", null, m((O = o.port) == null ? void 0 : O.name), 1)
@@ -2035,7 +2035,7 @@ const br = {
2035
2035
  function _r(t, e, o, i, a, r) {
2036
2036
  const s = x("VCardText"), c = x("VCard"), n = x("PortDetail");
2037
2037
  return b(), S("div", null, [
2038
- Ue(h(c, {
2038
+ We(h(c, {
2039
2039
  id: "idmPortInfo",
2040
2040
  ref: "idmPortInfo"
2041
2041
  }, {
@@ -2058,7 +2058,7 @@ function _r(t, e, o, i, a, r) {
2058
2058
  ]),
2059
2059
  _: 1
2060
2060
  }, 512), [
2061
- [We, a.showInfo]
2061
+ [Ge, a.showInfo]
2062
2062
  ]),
2063
2063
  a.showDetail ? (b(), R(n, B({
2064
2064
  key: 0,
@@ -3143,7 +3143,7 @@ const Il = {
3143
3143
  function Ol(t, e, o, i, a, r) {
3144
3144
  const s = x("v-card-text"), c = x("v-card"), n = x("TideDetail");
3145
3145
  return b(), S("div", null, [
3146
- Ue(h(c, { id: "idmTidalInfo" }, {
3146
+ We(h(c, { id: "idmTidalInfo" }, {
3147
3147
  default: u(() => [
3148
3148
  h(s, { class: "pr-8 text-body-1" }, {
3149
3149
  default: u(() => {
@@ -3162,7 +3162,7 @@ function Ol(t, e, o, i, a, r) {
3162
3162
  ]),
3163
3163
  _: 1
3164
3164
  }, 512), [
3165
- [We, a.showInfo]
3165
+ [Ge, a.showInfo]
3166
3166
  ]),
3167
3167
  a.showDetail ? (b(), R(n, B({
3168
3168
  key: 0,
@@ -4303,7 +4303,7 @@ const Ul = {
4303
4303
  function Zl(t, e, o, i, a, r) {
4304
4304
  const s = x("v-card-text"), c = x("v-card"), n = x("PortDetail");
4305
4305
  return b(), S("div", null, [
4306
- Ue(h(c, {
4306
+ We(h(c, {
4307
4307
  id: "idmFollowPortInfo",
4308
4308
  ref: "idmFollowPortInfo"
4309
4309
  }, {
@@ -4326,7 +4326,7 @@ function Zl(t, e, o, i, a, r) {
4326
4326
  ]),
4327
4327
  _: 1
4328
4328
  }, 512), [
4329
- [We, a.showInfo]
4329
+ [Ge, a.showInfo]
4330
4330
  ]),
4331
4331
  a.showDetail ? (b(), R(n, B({
4332
4332
  key: 0,
@@ -5258,7 +5258,7 @@ const Yl = {
5258
5258
  };
5259
5259
  function Jl(t, e, o, i, a, r) {
5260
5260
  const s = x("v-card-text"), c = x("v-card");
5261
- return Ue((b(), R(c, {
5261
+ return We((b(), R(c, {
5262
5262
  id: "idmFollowPositionInfo",
5263
5263
  ref: "idmFollowPositionInfo"
5264
5264
  }, {
@@ -5280,7 +5280,7 @@ function Jl(t, e, o, i, a, r) {
5280
5280
  ]),
5281
5281
  _: 1
5282
5282
  }, 512)), [
5283
- [We, a.showInfo]
5283
+ [Ge, a.showInfo]
5284
5284
  ]);
5285
5285
  }
5286
5286
  const Ql = /* @__PURE__ */ K(Yl, [["render", Jl], ["__scopeId", "data-v-b44b191e"]]);
@@ -5523,7 +5523,7 @@ function hs(t, e, o, i, a, r) {
5523
5523
  }, 8, ["text"])
5524
5524
  ], 4),
5525
5525
  l("div", {
5526
- class: Ge(["available-layers transition", a.toggle ? "right-bar" : ""]),
5526
+ class: He(["available-layers transition", a.toggle ? "right-bar" : ""]),
5527
5527
  style: ie({ top: o.top + "px", right: a.toggle ? "0px" : "-280px" })
5528
5528
  }, [
5529
5529
  l("div", os, [
@@ -5571,7 +5571,7 @@ function hs(t, e, o, i, a, r) {
5571
5571
  onClick: (me) => r.handleToggleMapFeather(F)
5572
5572
  }, [
5573
5573
  l("div", {
5574
- class: Ge([a.mapFeather === F.value ? "active" : "", "img-box"])
5574
+ class: He([a.mapFeather === F.value ? "active" : "", "img-box"])
5575
5575
  }, [
5576
5576
  F.value === "dark" ? (b(), S("img", ss)) : F.value === "nautical" ? (b(), S("img", ns)) : F.value === "satellite" ? (b(), S("img", cs)) : (b(), S("img", ms))
5577
5577
  ], 2),
@@ -9127,7 +9127,7 @@ function Qn(t, e, o, i, a, r) {
9127
9127
  default: u(() => [
9128
9128
  l("div", _n, [
9129
9129
  l("i", {
9130
- class: Ge(["iconfont", r.barbsIconName[te]]),
9130
+ class: He(["iconfont", r.barbsIconName[te]]),
9131
9131
  style: ie({ color: o.theme === "dark" ? "#fff" : "#000" })
9132
9132
  }, null, 6),
9133
9133
  l("span", kn, m(Number(W) < 10 ? `00${W}kts` : Number(W) < 100 ? `0${W}kts` : `${W}kts`), 1)
@@ -9213,7 +9213,7 @@ function Qn(t, e, o, i, a, r) {
9213
9213
  }, 8, ["style"])) : M("", !0)
9214
9214
  ])) : M("", !0),
9215
9215
  l("div", {
9216
- class: Ge(["available-layers transition flex-center", a.toggle ? "right-bar" : ""]),
9216
+ class: He(["available-layers transition flex-center", a.toggle ? "right-bar" : ""]),
9217
9217
  style: ie({ top: o.top + "px", right: a.toggle ? "0px" : "-280px" })
9218
9218
  }, [
9219
9219
  l("div", In, [
@@ -9243,7 +9243,7 @@ function Qn(t, e, o, i, a, r) {
9243
9243
  }, 8, ["onClick"])
9244
9244
  ]),
9245
9245
  l("div", {
9246
- class: Ge(["list-box scroll pl-4 pr-2 overflow-y-auto", a.autoActive ? "" : "cursor-not-allowed"])
9246
+ class: He(["list-box scroll pl-4 pr-2 overflow-y-auto", a.autoActive ? "" : "cursor-not-allowed"])
9247
9247
  }, [
9248
9248
  h(w, {
9249
9249
  class: "menu-card mx-auto mb-3",
@@ -11334,7 +11334,7 @@ function Yc(t, e, o, i, a, r) {
11334
11334
  variant: v.disabled ? "outlined" : "flat",
11335
11335
  color: v.disabled ? "" : "primary",
11336
11336
  "min-width": 30,
11337
- class: Ge(["model text-none text-body-1 px-1", v.disabled ? "" : "btn-border-2"]),
11337
+ class: He(["model text-none text-body-1 px-1", v.disabled ? "" : "btn-border-2"]),
11338
11338
  onClick: Ee((U) => r.handleForecastToggle(v), ["stop"])
11339
11339
  }, {
11340
11340
  default: u(() => [
@@ -11400,11 +11400,11 @@ function Yc(t, e, o, i, a, r) {
11400
11400
  _: 1
11401
11401
  }),
11402
11402
  l("div", kc, [
11403
- Ue(h(f, { elevation: "16" }, {
11403
+ We(h(f, { elevation: "16" }, {
11404
11404
  default: u(() => [
11405
11405
  h(n, null, {
11406
11406
  default: u(() => [
11407
- Ue(l("div", zc, e[6] || (e[6] = [
11407
+ We(l("div", zc, e[6] || (e[6] = [
11408
11408
  l("div", { class: "legend d-flex justify-start align-center" }, [
11409
11409
  l("div", { class: "icon td" }),
11410
11410
  l("div", { class: "label" }, "TD")
@@ -11430,9 +11430,9 @@ function Yc(t, e, o, i, a, r) {
11430
11430
  l("div", { class: "label" }, "Super TY")
11431
11431
  ], -1)
11432
11432
  ]), 512), [
11433
- [We, a.showLegend]
11433
+ [Ge, a.showLegend]
11434
11434
  ]),
11435
- Ue(l("div", Lc, e[7] || (e[7] = [
11435
+ We(l("div", Lc, e[7] || (e[7] = [
11436
11436
  l("div", { class: "legend d-flex justify-start align-center" }, [
11437
11437
  l("div", { class: "icon history" }),
11438
11438
  l("div", { class: "label" }, "History")
@@ -11450,7 +11450,7 @@ function Yc(t, e, o, i, a, r) {
11450
11450
  l("div", { class: "label" }, "50kts Radii")
11451
11451
  ], -1)
11452
11452
  ]), 512), [
11453
- [We, a.showLegend]
11453
+ [Ge, a.showLegend]
11454
11454
  ])
11455
11455
  ]),
11456
11456
  _: 1
@@ -11458,11 +11458,11 @@ function Yc(t, e, o, i, a, r) {
11458
11458
  ]),
11459
11459
  _: 1
11460
11460
  }, 512), [
11461
- [We, a.showLegend]
11461
+ [Ge, a.showLegend]
11462
11462
  ])
11463
11463
  ])
11464
11464
  ])) : M("", !0),
11465
- Ue(h(f, {
11465
+ We(h(f, {
11466
11466
  id: "tropicalHoverMarkerInfo",
11467
11467
  elevation: "16",
11468
11468
  "max-width": "280"
@@ -11530,7 +11530,7 @@ function Yc(t, e, o, i, a, r) {
11530
11530
  ]),
11531
11531
  _: 1
11532
11532
  }, 512), [
11533
- [We, a.showHoverPoint]
11533
+ [Ge, a.showHoverPoint]
11534
11534
  ])
11535
11535
  ]);
11536
11536
  }
@@ -11540,12 +11540,16 @@ const Kc = {
11540
11540
  props: {
11541
11541
  width: {
11542
11542
  type: Number,
11543
- default: 220
11543
+ default: 230
11544
11544
  },
11545
11545
  height: {
11546
11546
  type: Number,
11547
11547
  default: 30
11548
11548
  },
11549
+ position: {
11550
+ type: String,
11551
+ default: "right"
11552
+ },
11549
11553
  locale: {
11550
11554
  type: String,
11551
11555
  default: "en"
@@ -11711,7 +11715,7 @@ function em(t, e, o, i, a, r) {
11711
11715
  }, 8, ["height", "width", "onClick"]),
11712
11716
  a.showDatePicker ? (b(), R(y, {
11713
11717
  key: 0,
11714
- class: "card-box d-flex flex-column"
11718
+ class: He(["card-box d-flex flex-column", o.position])
11715
11719
  }, {
11716
11720
  default: u(() => [
11717
11721
  h(w, { class: "w-100 flex-1-1-0 d-flex pa-0" }, {
@@ -11804,7 +11808,7 @@ function em(t, e, o, i, a, r) {
11804
11808
  })
11805
11809
  ]),
11806
11810
  _: 1
11807
- })) : M("", !0)
11811
+ }, 8, ["class"])) : M("", !0)
11808
11812
  ]);
11809
11813
  }
11810
11814
  const no = /* @__PURE__ */ K(Kc, [["render", em]]);
@@ -12389,7 +12393,7 @@ function _m(t, e, o, i, a, r) {
12389
12393
  density: "compact",
12390
12394
  height: "30",
12391
12395
  value: "GFS",
12392
- class: Ge(["text-none flex-1-1-0", a.form.forecastModel === "GFS" ? "" : "btn-border-1 btn-bg-1"]),
12396
+ class: He(["text-none flex-1-1-0", a.form.forecastModel === "GFS" ? "" : "btn-border-1 btn-bg-1"]),
12393
12397
  color: a.form.forecastModel === "GFS" ? "primary" : "",
12394
12398
  "base-color": ""
12395
12399
  }, {
@@ -12402,7 +12406,7 @@ function _m(t, e, o, i, a, r) {
12402
12406
  h(s, {
12403
12407
  density: "compact",
12404
12408
  height: "30",
12405
- class: Ge(["text-none flex-1-1-0", a.form.forecastModel === "ECMWF" ? "" : "btn-border-1 btn-bg-1"]),
12409
+ class: He(["text-none flex-1-1-0", a.form.forecastModel === "ECMWF" ? "" : "btn-border-1 btn-bg-1"]),
12406
12410
  color: a.form.forecastModel === "ECMWF" ? "primary" : "",
12407
12411
  "base-color": "",
12408
12412
  value: "ECMWF"
@@ -12733,14 +12737,14 @@ function _m(t, e, o, i, a, r) {
12733
12737
  ]),
12734
12738
  _: 1
12735
12739
  })) : M("", !0),
12736
- Ue(l("div", wm, [
12740
+ We(l("div", wm, [
12737
12741
  (b(), S("svg", xm, [
12738
12742
  l("use", {
12739
12743
  "xlink:href": `#icon-spot-${o.theme}`
12740
12744
  }, null, 8, vm)
12741
12745
  ]))
12742
12746
  ], 512), [
12743
- [We, a.showMeteo]
12747
+ [Ge, a.showMeteo]
12744
12748
  ])
12745
12749
  ]);
12746
12750
  }
@@ -12917,10 +12921,10 @@ const zm = {
12917
12921
  let o = 0;
12918
12922
  const i = [];
12919
12923
  for (let a = 1; a < e.length; a++) {
12920
- const r = e[a - 1], s = e[a], c = r.properties, n = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] }, g = { lng: s.geometry.coordinates[0], lat: s.geometry.coordinates[1] }, p = He.calculateDistance(n, g, c.mode === "RL", 4), f = He.calculateBearing(n, g, c.mode === "RL", 2);
12924
+ const r = e[a - 1], s = e[a], c = r.properties, n = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] }, g = { lng: s.geometry.coordinates[0], lat: s.geometry.coordinates[1] }, p = Ue.calculateDistance(n, g, c.mode === "RL", 4), f = Ue.calculateBearing(n, g, c.mode === "RL", 2);
12921
12925
  o = X.roundPrecision(o + p, 4);
12922
12926
  let w;
12923
- c.mode === "RL" ? w = X.convertToMonotonicLng([n, g]) : w = X.convertToMonotonicLng(He.interpolateCoordinates(n, g, 200));
12927
+ c.mode === "RL" ? w = X.convertToMonotonicLng([n, g]) : w = X.convertToMonotonicLng(Ue.interpolateCoordinates(n, g, 200));
12924
12928
  const L = H.lineString(w.map((k) => [k.lng, k.lat]));
12925
12929
  L.properties.dist = p, L.properties.bearing = f, L.properties.total = o, L.properties.name = "Line " + this.currentLineIndex, i.push(L);
12926
12930
  const y = e[a];
@@ -12935,17 +12939,17 @@ const zm = {
12935
12939
  let r, s;
12936
12940
  if (e) {
12937
12941
  const n = e.properties, g = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, p = { lng: o.lng, lat: o.lat };
12938
- r = He.calculateDistance(g, p, n.mode === "RL", 4), s = He.calculateBearing(g, p, n.mode === "RL", 2);
12942
+ r = Ue.calculateDistance(g, p, n.mode === "RL", 4), s = Ue.calculateBearing(g, p, n.mode === "RL", 2);
12939
12943
  let f;
12940
- n.mode === "RL" ? f = X.convertToMonotonicLng([g, p]) : f = X.convertToMonotonicLng(He.interpolateCoordinates(g, p, 200));
12944
+ n.mode === "RL" ? f = X.convertToMonotonicLng([g, p]) : f = X.convertToMonotonicLng(Ue.interpolateCoordinates(g, p, 200));
12941
12945
  const w = H.lineString(f.map((L) => [L.lng, L.lat]));
12942
12946
  w.properties.dist = r, w.properties.bearing = s, a.features.push(w);
12943
12947
  }
12944
12948
  if (i) {
12945
12949
  const n = o.properties, g = o, p = { lng: i.geometry.coordinates[0], lat: i.geometry.coordinates[1] };
12946
- r = He.calculateDistance(g, p, n.mode === "RL", 4), s = He.calculateBearing(g, p, n.mode === "RL", 2);
12950
+ r = Ue.calculateDistance(g, p, n.mode === "RL", 4), s = Ue.calculateBearing(g, p, n.mode === "RL", 2);
12947
12951
  let f;
12948
- n.mode === "RL" ? f = X.convertToMonotonicLng([g, p]) : f = X.convertToMonotonicLng(He.interpolateCoordinates(g, p, 200));
12952
+ n.mode === "RL" ? f = X.convertToMonotonicLng([g, p]) : f = X.convertToMonotonicLng(Ue.interpolateCoordinates(g, p, 200));
12949
12953
  const w = H.lineString(f.map((L) => [L.lng, L.lat]));
12950
12954
  w.properties.dist = r, w.properties.bearing = s, a.features.push(w);
12951
12955
  }