@idmwx/idmui-gl4 2.8.9 → 2.9.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.
@@ -1,4 +1,4 @@
1
- import { l as b } from "./index-44a5187f.js";
1
+ import { l as b } from "./index-e501d918.js";
2
2
  function M(e) {
3
3
  return typeof e == "string" && /^data:image\/svg\+xml/i.test(e);
4
4
  }
@@ -1,4 +1,4 @@
1
- import { W as a } from "./chunk-3VYIPD3A-73e25db9.js";
1
+ import { W as a } from "./chunk-3VYIPD3A-e66f094c.js";
2
2
  async function o(r, t) {
3
3
  let i = await a(r, t), e = new Image();
4
4
  return e.src = i.toDataURL(`image/${t.format}`, t.quality), await e.decode(), e.style.width = `${i.width / t.dpr}px`, e.style.height = `${i.height / t.dpr}px`, e;
@@ -1,4 +1,4 @@
1
- import { W as m } from "./chunk-3VYIPD3A-73e25db9.js";
1
+ import { W as m } from "./chunk-3VYIPD3A-e66f094c.js";
2
2
  async function a(n, e) {
3
3
  let o = e.type;
4
4
  if (o === "svg") {
@@ -1,6 +1,6 @@
1
- import { m as d } from "./chunk-T4JIPPZO-dc555c11.js";
2
- import { W as f } from "./chunk-3VYIPD3A-73e25db9.js";
3
- import "./index-44a5187f.js";
1
+ import { m as d } from "./chunk-T4JIPPZO-3355e75e.js";
2
+ import { W as f } from "./chunk-3VYIPD3A-e66f094c.js";
3
+ import "./index-e501d918.js";
4
4
  import "axios";
5
5
  import "vuetify";
6
6
  import "vue";
@@ -8703,12 +8703,6 @@ const Oc = {
8703
8703
  };
8704
8704
  },
8705
8705
  computed: {
8706
- // menuStyle() {
8707
- // if (this.simple) {
8708
- // return { top: this.top + this.paddingTop + 46 + 'px', right: 10 + 'px' }
8709
- // }
8710
- // return { top: this.top + this.paddingTop + 46 + 'px', right: this.right + 'px' }
8711
- // },
8712
8706
  listStyle() {
8713
8707
  return this.simple ? { top: this.top + "px", left: this.toggle ? "0px" : "-280px" } : { top: this.top + "px", right: this.toggle ? "0px" : "-280px" };
8714
8708
  },
@@ -8782,7 +8776,11 @@ const Oc = {
8782
8776
  },
8783
8777
  renderKey: {
8784
8778
  handler(e, t) {
8785
- e && e !== t ? e === "wave-group" ? this.checkList = ["wave-group", this.waveToggleValue || "sig-wave"] : e === "ice-forecast" ? this.checkList = ["ice-forecast", this.iceToggleValue || "ice-cover"] : this.checkList = [e] : !e && t && (this.checkList = this.checkList.filter((o) => o !== t));
8779
+ if (e && e !== t) {
8780
+ const o = this.checkList.filter((i) => !this.rendersKeys.some((a) => a === i));
8781
+ e === "wave-group" ? (this.waveToggleValue = this.waveToggleValue || "sig-wave", this.checkList = [...o, "wave-group", this.waveToggleValue]) : e === "ice-forecast" ? (this.iceToggleValue = this.iceToggleValue || "ice-cover", this.checkList = [...o, "ice-forecast", this.iceToggleValue || "ice-cover"]) : this.checkList = [...o, e];
8782
+ } else
8783
+ !e && t && (this.checkList = this.checkList.filter((o) => o !== t));
8786
8784
  }
8787
8785
  },
8788
8786
  checkList: {
@@ -8799,12 +8797,18 @@ const Oc = {
8799
8797
  },
8800
8798
  iceToggleValue: {
8801
8799
  handler(e) {
8802
- e && (this.checkList = ["ice-forecast", this.iceToggleValue]);
8800
+ if (e) {
8801
+ const t = this.checkList.filter((o) => !this.rendersKeys.some((i) => i === o));
8802
+ this.checkList = [...t, "ice-forecast", this.iceToggleValue];
8803
+ }
8803
8804
  }
8804
8805
  },
8805
8806
  waveToggleValue: {
8806
8807
  handler(e) {
8807
- e && (this.checkList = ["wave-group", this.waveToggleValue]);
8808
+ if (e) {
8809
+ const t = this.checkList.filter((o) => !this.rendersKeys.some((i) => i === o));
8810
+ this.checkList = [...t, "wave-group", this.waveToggleValue];
8811
+ }
8808
8812
  }
8809
8813
  },
8810
8814
  showWindParticle: {
@@ -8855,8 +8859,8 @@ const Oc = {
8855
8859
  handleCheckListChange(e, t) {
8856
8860
  if (this.arraysEqual(e, t))
8857
8861
  return !1;
8858
- const o = [...new Set(e)], i = o == null ? void 0 : o.filter((r) => !(t != null && t.includes(r)))[0], a = t == null ? void 0 : t.filter((r) => !(o != null && o.includes(r)))[0];
8859
- i && (i === "ice-cover" || i === "ice-thickness" || i === "ice-forecast" ? (this.checkList = ["ice-forecast", this.iceToggleValue || "ice-cover"], this.iceToggleValue = this.iceToggleValue || "ice-cover") : i === "sig-wave" || i === "swell" || i === "wave-group" ? (this.checkList = ["wave-group", this.waveToggleValue || "sig-wave"], this.waveToggleValue = this.waveToggleValue || "sig-wave") : this.rendersKeys.includes(i) ? this.checkList = [i] : (this.checkList = o.filter((r) => !this.rendersKeys.includes(r)), this.renderKey = void 0)), a && (a === "ice-forecast" ? (this.checkList = o.filter((r) => !["ice-cover", "ice-thickness", "ice-forecast"].includes(r)), this.iceToggleValue = void 0) : a === "wave-group" ? (this.checkList = o.filter((r) => !["wave-group", "sig-wave", "swell"].includes(r)), this.waveToggleValue = void 0) : this.checkList = o), this.checkList.includes("wind-particle") && (this.showWindParticle = !0), this.checkList.includes("current-particle") && (this.showCurrentParticle = !0), localStorage.setItem(this.cache.checkListKey, JSON.stringify(o)), this.activeWeatherLayers = this.autoActive ? this.allLayers.filter((r) => o.includes(r.key)) : [], this.handleWeatherLayerChange();
8862
+ const o = [...new Set(e)], i = o == null ? void 0 : o.filter((l) => !(t != null && t.includes(l)))[0], a = t == null ? void 0 : t.filter((l) => !(o != null && o.includes(l)))[0], r = this.checkList.filter((l) => !this.rendersKeys.some((c) => c === l));
8863
+ i && (i === "ice-cover" || i === "ice-thickness" || i === "ice-forecast" ? (this.checkList = [...r, "ice-forecast", this.iceToggleValue || "ice-cover"], this.iceToggleValue = this.iceToggleValue || "ice-cover") : i === "sig-wave" || i === "swell" || i === "wave-group" ? (this.checkList = [...r, "wave-group", this.waveToggleValue || "sig-wave"], this.waveToggleValue = this.waveToggleValue || "sig-wave") : this.rendersKeys.includes(i) && (this.checkList = [...r, i])), a && (a === "ice-forecast" ? (this.checkList = o.filter((l) => !["ice-cover", "ice-thickness", "ice-forecast"].includes(l)), this.iceToggleValue = void 0) : a === "wave-group" ? (this.checkList = o.filter((l) => !["wave-group", "sig-wave", "swell"].includes(l)), this.waveToggleValue = void 0) : this.checkList = o), this.checkList.includes("wind-particle") && (this.showWindParticle = !0), this.checkList.includes("current-particle") && (this.showCurrentParticle = !0), localStorage.setItem(this.cache.checkListKey, JSON.stringify(o)), this.activeWeatherLayers = this.autoActive ? this.allLayers.filter((l) => o.includes(l.key)) : [], this.handleWeatherLayerChange();
8860
8864
  },
8861
8865
  async fetchModels() {
8862
8866
  this.models = {};
@@ -13462,7 +13466,7 @@ function vu(e, t, o, i, a, r) {
13462
13466
  "xlink:href": `#icon-lng-${o.theme}`
13463
13467
  }, null, 8, kh)
13464
13468
  ])),
13465
- n("div", null, b(e.$t("spot.lng")), 1)
13469
+ n("div", null, b(e.$t("spot.lat")), 1)
13466
13470
  ]),
13467
13471
  L(p, { class: "ma-0" }, {
13468
13472
  default: C(() => [
@@ -13472,14 +13476,17 @@ function vu(e, t, o, i, a, r) {
13472
13476
  }, {
13473
13477
  default: C(() => [
13474
13478
  L(m, {
13475
- modelValue: a.form.lngDegree,
13476
- "onUpdate:modelValue": t[0] || (t[0] = (w) => a.form.lngDegree = w),
13477
- rules: a.formRules.lngDegree,
13479
+ modelValue: a.form.latDegree,
13480
+ "onUpdate:modelValue": t[0] || (t[0] = (w) => a.form.latDegree = w),
13481
+ rules: a.formRules.latDegree,
13482
+ label: "",
13478
13483
  density: "compact",
13479
13484
  variant: "outlined",
13480
- class: "text-body-1 input-btn-bg-1",
13485
+ height: "32px",
13486
+ "min-height": "32px",
13481
13487
  required: "",
13482
- dense: ""
13488
+ dense: "",
13489
+ class: "text-body-1 input-btn-bg-1"
13483
13490
  }, null, 8, ["modelValue", "rules"]),
13484
13491
  t[10] || (t[10] = n("span", { class: "px-1" }, "°", -1))
13485
13492
  ]),
@@ -13492,9 +13499,9 @@ function vu(e, t, o, i, a, r) {
13492
13499
  }, {
13493
13500
  default: C(() => [
13494
13501
  L(m, {
13495
- modelValue: a.form.lngMinute,
13496
- "onUpdate:modelValue": t[1] || (t[1] = (w) => a.form.lngMinute = w),
13497
- rules: a.formRules.lngMinute,
13502
+ modelValue: a.form.latMinute,
13503
+ "onUpdate:modelValue": t[1] || (t[1] = (w) => a.form.latMinute = w),
13504
+ rules: a.formRules.latMinute,
13498
13505
  label: "",
13499
13506
  density: "compact",
13500
13507
  variant: "outlined",
@@ -13520,10 +13527,10 @@ function vu(e, t, o, i, a, r) {
13520
13527
  height: "32",
13521
13528
  class: "text-body-1 btn-bg-1",
13522
13529
  style: { border: "1px solid rgba(var(--v-theme-on-surface), 0.38)" },
13523
- onClick: t[2] || (t[2] = (w) => a.form.lngDirection = a.form.lngDirection === "E" ? "W" : "E")
13530
+ onClick: t[2] || (t[2] = (w) => a.form.latDirection = a.form.latDirection === "N" ? "S" : "N")
13524
13531
  }, {
13525
13532
  default: C(() => [
13526
- me(b(a.form.lngDirection), 1)
13533
+ me(b(a.form.latDirection), 1)
13527
13534
  ]),
13528
13535
  _: 1
13529
13536
  })
@@ -13539,7 +13546,7 @@ function vu(e, t, o, i, a, r) {
13539
13546
  "xlink:href": `#icon-lng-${o.theme}`
13540
13547
  }, null, 8, Lh)
13541
13548
  ])),
13542
- n("div", null, b(e.$t("spot.lat")), 1)
13549
+ n("div", null, b(e.$t("spot.lng")), 1)
13543
13550
  ]),
13544
13551
  L(p, { class: "ma-0" }, {
13545
13552
  default: C(() => [
@@ -13549,17 +13556,14 @@ function vu(e, t, o, i, a, r) {
13549
13556
  }, {
13550
13557
  default: C(() => [
13551
13558
  L(m, {
13552
- modelValue: a.form.latDegree,
13553
- "onUpdate:modelValue": t[3] || (t[3] = (w) => a.form.latDegree = w),
13554
- rules: a.formRules.latDegree,
13555
- label: "",
13559
+ modelValue: a.form.lngDegree,
13560
+ "onUpdate:modelValue": t[3] || (t[3] = (w) => a.form.lngDegree = w),
13561
+ rules: a.formRules.lngDegree,
13556
13562
  density: "compact",
13557
13563
  variant: "outlined",
13558
- height: "32px",
13559
- "min-height": "32px",
13564
+ class: "text-body-1 input-btn-bg-1",
13560
13565
  required: "",
13561
- dense: "",
13562
- class: "text-body-1 input-btn-bg-1"
13566
+ dense: ""
13563
13567
  }, null, 8, ["modelValue", "rules"]),
13564
13568
  t[12] || (t[12] = n("span", { class: "px-1" }, "°", -1))
13565
13569
  ]),
@@ -13572,9 +13576,9 @@ function vu(e, t, o, i, a, r) {
13572
13576
  }, {
13573
13577
  default: C(() => [
13574
13578
  L(m, {
13575
- modelValue: a.form.latMinute,
13576
- "onUpdate:modelValue": t[4] || (t[4] = (w) => a.form.latMinute = w),
13577
- rules: a.formRules.latMinute,
13579
+ modelValue: a.form.lngMinute,
13580
+ "onUpdate:modelValue": t[4] || (t[4] = (w) => a.form.lngMinute = w),
13581
+ rules: a.formRules.lngMinute,
13578
13582
  label: "",
13579
13583
  density: "compact",
13580
13584
  variant: "outlined",
@@ -13600,10 +13604,10 @@ function vu(e, t, o, i, a, r) {
13600
13604
  height: "32",
13601
13605
  class: "text-body-1 btn-bg-1",
13602
13606
  style: { border: "1px solid rgba(var(--v-theme-on-surface), 0.38)" },
13603
- onClick: t[5] || (t[5] = (w) => a.form.latDirection = a.form.latDirection === "N" ? "S" : "N")
13607
+ onClick: t[5] || (t[5] = (w) => a.form.lngDirection = a.form.lngDirection === "E" ? "W" : "E")
13604
13608
  }, {
13605
13609
  default: C(() => [
13606
- me(b(a.form.latDirection), 1)
13610
+ me(b(a.form.lngDirection), 1)
13607
13611
  ]),
13608
13612
  _: 1
13609
13613
  })
@@ -17280,52 +17284,52 @@ Ce.capture = async (e, t, o) => {
17280
17284
  if (o !== wr)
17281
17285
  throw new Error("[snapdom.capture] is internal. Use snapdom(...) instead.");
17282
17286
  let i = await br(e, t), a = { img: async (f, d) => {
17283
- let { toImg: u } = await import("./toImg-8919c669.js");
17287
+ let { toImg: u } = await import("./toImg-d58f1541.js");
17284
17288
  return u(i, { ...f, ...d || {} });
17285
17289
  }, svg: async (f, d) => {
17286
- let { toSvg: u } = await import("./toImg-8919c669.js");
17290
+ let { toSvg: u } = await import("./toImg-d58f1541.js");
17287
17291
  return u(i, { ...f, ...d || {} });
17288
17292
  }, canvas: async (f, d) => {
17289
- let { toCanvas: u } = await import("./toCanvas-99d0338b.js");
17293
+ let { toCanvas: u } = await import("./toCanvas-fafec511.js");
17290
17294
  return u(i, { ...f, ...d || {} });
17291
17295
  }, blob: async (f, d) => {
17292
- let { toBlob: u } = await import("./toBlob-e903c0f4.js");
17296
+ let { toBlob: u } = await import("./toBlob-e0b9b772.js");
17293
17297
  return u(i, { ...f, ...d || {} });
17294
17298
  }, png: async (f, d) => {
17295
- let { rasterize: u } = await import("./rasterize-JS5G2XHH-a62dc60f.js");
17299
+ let { rasterize: u } = await import("./rasterize-JS5G2XHH-be7cf7f1.js");
17296
17300
  return u(i, { ...f, ...d || {}, format: "png" });
17297
17301
  }, jpeg: async (f, d) => {
17298
- let { rasterize: u } = await import("./rasterize-JS5G2XHH-a62dc60f.js");
17302
+ let { rasterize: u } = await import("./rasterize-JS5G2XHH-be7cf7f1.js");
17299
17303
  return u(i, { ...f, ...d || {}, format: "jpeg" });
17300
17304
  }, webp: async (f, d) => {
17301
- let { rasterize: u } = await import("./rasterize-JS5G2XHH-a62dc60f.js");
17305
+ let { rasterize: u } = await import("./rasterize-JS5G2XHH-be7cf7f1.js");
17302
17306
  return u(i, { ...f, ...d || {}, format: "webp" });
17303
17307
  }, download: async (f, d) => {
17304
- let { download: u } = await import("./download-31a0c019.js");
17308
+ let { download: u } = await import("./download-cbce7afa.js");
17305
17309
  return u(i, { ...f, ...d || {} });
17306
17310
  } }, r = { ...t, export: { url: i }, exports: { svg: async (f) => {
17307
- let { toSvg: d } = await import("./toImg-8919c669.js");
17311
+ let { toSvg: d } = await import("./toImg-d58f1541.js");
17308
17312
  return d(i, { ...t, ...f || {}, [$e]: !0 });
17309
17313
  }, canvas: async (f) => {
17310
- let { toCanvas: d } = await import("./toCanvas-99d0338b.js");
17314
+ let { toCanvas: d } = await import("./toCanvas-fafec511.js");
17311
17315
  return d(i, { ...t, ...f || {}, [$e]: !0 });
17312
17316
  }, png: async (f) => {
17313
- let { rasterize: d } = await import("./rasterize-JS5G2XHH-a62dc60f.js");
17317
+ let { rasterize: d } = await import("./rasterize-JS5G2XHH-be7cf7f1.js");
17314
17318
  return d(i, { ...t, ...f || {}, format: "png", [$e]: !0 });
17315
17319
  }, jpeg: async (f) => {
17316
- let { rasterize: d } = await import("./rasterize-JS5G2XHH-a62dc60f.js");
17320
+ let { rasterize: d } = await import("./rasterize-JS5G2XHH-be7cf7f1.js");
17317
17321
  return d(i, { ...t, ...f || {}, format: "jpeg", [$e]: !0 });
17318
17322
  }, jpg: async (f) => {
17319
- let { rasterize: d } = await import("./rasterize-JS5G2XHH-a62dc60f.js");
17323
+ let { rasterize: d } = await import("./rasterize-JS5G2XHH-be7cf7f1.js");
17320
17324
  return d(i, { ...t, ...f || {}, format: "jpeg", [$e]: !0 });
17321
17325
  }, webp: async (f) => {
17322
- let { rasterize: d } = await import("./rasterize-JS5G2XHH-a62dc60f.js");
17326
+ let { rasterize: d } = await import("./rasterize-JS5G2XHH-be7cf7f1.js");
17323
17327
  return d(i, { ...t, ...f || {}, format: "webp", [$e]: !0 });
17324
17328
  }, blob: async (f) => {
17325
- let { toBlob: d } = await import("./toBlob-e903c0f4.js");
17329
+ let { toBlob: d } = await import("./toBlob-e0b9b772.js");
17326
17330
  return d(i, { ...t, ...f || {}, [$e]: !0 });
17327
17331
  }, img: async (f) => {
17328
- let { toImg: d } = await import("./toImg-8919c669.js");
17332
+ let { toImg: d } = await import("./toImg-d58f1541.js");
17329
17333
  return d(i, { ...t, ...f || {}, [$e]: !0 });
17330
17334
  } } }, l = await yp("defineExports", r), c = Object.assign({}, ...l.filter((f) => f && typeof f == "object")), s = { ...a, ...c };
17331
17335
  s.jpeg && !s.jpg && (s.jpg = (f, d) => s.jpeg(f, d));
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { c as M, D as g, L as n, a as x, b as D, M as T, g as S, f as W, P as f, d as h, T as k, V as y, W as V, e as d } from "./index-44a5187f.js";
1
+ import { c as M, D as g, L as n, a as x, b as D, M as T, g as S, f as W, P as f, d as h, T as k, V as y, W as V, e as d } from "./index-e501d918.js";
2
2
  import "axios";
3
3
  import "vuetify";
4
4
  import "vue";