@idmwx/idmui-gl4 2.9.0 → 2.9.3

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-1e2659ec.js";
1
+ import { l as b } from "./index-e858b9a1.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-de747d6d.js";
1
+ import { W as a } from "./chunk-3VYIPD3A-770ff530.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-de747d6d.js";
1
+ import { W as m } from "./chunk-3VYIPD3A-770ff530.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-0e79060d.js";
2
- import { W as f } from "./chunk-3VYIPD3A-de747d6d.js";
3
- import "./index-1e2659ec.js";
1
+ import { m as d } from "./chunk-T4JIPPZO-d43edafa.js";
2
+ import { W as f } from "./chunk-3VYIPD3A-770ff530.js";
3
+ import "./index-e858b9a1.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 = {};
@@ -12061,7 +12065,7 @@ const mh = {
12061
12065
  },
12062
12066
  handleResetDateTime(e) {
12063
12067
  var a;
12064
- const t = T(e).utc().date(), o = Math.ceil(T(e).utc().hour() / 3) * 3;
12068
+ const t = T(e).utc().date(), o = Math.ceil(T(e).utc().hour() / this.intervalHour) * this.intervalHour;
12065
12069
  this.currentTimestamp = ((a = T(e)) == null ? void 0 : a.utc().set({ date: t, hour: o, minute: 0, second: 0, millisecond: 0 }).unix()) * 1e3;
12066
12070
  const i = T.tz(this.currentTimestamp, this.timeZoneName).clone();
12067
12071
  this.currentDate = i.clone().format("YYYY-MM-DD"), this.currentTime = i.clone().format("HH:00"), this.currentDateTime = `${T.tz(this.currentTimestamp, this.timeZoneName).clone().format("yyyy-MM-DD : HH:00")}`, this.currentRealTime = `${T.tz(T().unix() * 1e3, this.timeZoneName).clone().format("HH:mm")}`;
@@ -12070,7 +12074,7 @@ const mh = {
12070
12074
  var a, r, l, c, s;
12071
12075
  if (!this.dayAbout.h || !this.dayAbout.f)
12072
12076
  return;
12073
- const e = T().utc().date(), t = Math.ceil(T().utc().hour() / 3) * 3, o = ((a = T()) == null ? void 0 : a.utc().set({ date: e, hour: t, minute: 0, second: 0, millisecond: 0 }).unix()) * 1e3, i = T.tz(o, this.timeZoneName).clone();
12077
+ const e = T().utc().date(), t = Math.ceil(T().utc().hour() / this.intervalHour) * this.intervalHour, o = ((a = T()) == null ? void 0 : a.utc().set({ date: e, hour: t, minute: 0, second: 0, millisecond: 0 }).unix()) * 1e3, i = T.tz(o, this.timeZoneName).clone();
12074
12078
  this.minDate = i.clone().add(this.dayAbout.h, "day").format("yyyy-MM-DD"), this.maxDate = i.clone().add(this.dayAbout.f, "day").format("yyyy-MM-DD"), this.minTimestamp = ((l = (r = T()) == null ? void 0 : r.utc()) == null ? void 0 : l.set({ date: e + this.dayAbout.h, hour: 0, minute: 0, second: 0, millisecond: 0 }).unix()) * 1e3, this.maxTimestamp = ((s = (c = T()) == null ? void 0 : c.utc()) == null ? void 0 : s.set({ date: e + this.dayAbout.f, hour: 0, minute: 0, second: 0, millisecond: 0 }).unix()) * 1e3, this.$emit("minTimestamp", this.minTimestamp), this.$emit("maxTimestamp", this.maxTimestamp);
12075
12079
  },
12076
12080
  handleOpenDatePicker() {
@@ -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-418ff752.js");
17287
+ let { toImg: u } = await import("./toImg-f7d27c39.js");
17284
17288
  return u(i, { ...f, ...d || {} });
17285
17289
  }, svg: async (f, d) => {
17286
- let { toSvg: u } = await import("./toImg-418ff752.js");
17290
+ let { toSvg: u } = await import("./toImg-f7d27c39.js");
17287
17291
  return u(i, { ...f, ...d || {} });
17288
17292
  }, canvas: async (f, d) => {
17289
- let { toCanvas: u } = await import("./toCanvas-6ad4bbd7.js");
17293
+ let { toCanvas: u } = await import("./toCanvas-7baa5dff.js");
17290
17294
  return u(i, { ...f, ...d || {} });
17291
17295
  }, blob: async (f, d) => {
17292
- let { toBlob: u } = await import("./toBlob-0e8242d8.js");
17296
+ let { toBlob: u } = await import("./toBlob-0844a01a.js");
17293
17297
  return u(i, { ...f, ...d || {} });
17294
17298
  }, png: async (f, d) => {
17295
- let { rasterize: u } = await import("./rasterize-JS5G2XHH-9f640430.js");
17299
+ let { rasterize: u } = await import("./rasterize-JS5G2XHH-d9c7209b.js");
17296
17300
  return u(i, { ...f, ...d || {}, format: "png" });
17297
17301
  }, jpeg: async (f, d) => {
17298
- let { rasterize: u } = await import("./rasterize-JS5G2XHH-9f640430.js");
17302
+ let { rasterize: u } = await import("./rasterize-JS5G2XHH-d9c7209b.js");
17299
17303
  return u(i, { ...f, ...d || {}, format: "jpeg" });
17300
17304
  }, webp: async (f, d) => {
17301
- let { rasterize: u } = await import("./rasterize-JS5G2XHH-9f640430.js");
17305
+ let { rasterize: u } = await import("./rasterize-JS5G2XHH-d9c7209b.js");
17302
17306
  return u(i, { ...f, ...d || {}, format: "webp" });
17303
17307
  }, download: async (f, d) => {
17304
- let { download: u } = await import("./download-3de535de.js");
17308
+ let { download: u } = await import("./download-ae61fa72.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-418ff752.js");
17311
+ let { toSvg: d } = await import("./toImg-f7d27c39.js");
17308
17312
  return d(i, { ...t, ...f || {}, [$e]: !0 });
17309
17313
  }, canvas: async (f) => {
17310
- let { toCanvas: d } = await import("./toCanvas-6ad4bbd7.js");
17314
+ let { toCanvas: d } = await import("./toCanvas-7baa5dff.js");
17311
17315
  return d(i, { ...t, ...f || {}, [$e]: !0 });
17312
17316
  }, png: async (f) => {
17313
- let { rasterize: d } = await import("./rasterize-JS5G2XHH-9f640430.js");
17317
+ let { rasterize: d } = await import("./rasterize-JS5G2XHH-d9c7209b.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-9f640430.js");
17320
+ let { rasterize: d } = await import("./rasterize-JS5G2XHH-d9c7209b.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-9f640430.js");
17323
+ let { rasterize: d } = await import("./rasterize-JS5G2XHH-d9c7209b.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-9f640430.js");
17326
+ let { rasterize: d } = await import("./rasterize-JS5G2XHH-d9c7209b.js");
17323
17327
  return d(i, { ...t, ...f || {}, format: "webp", [$e]: !0 });
17324
17328
  }, blob: async (f) => {
17325
- let { toBlob: d } = await import("./toBlob-0e8242d8.js");
17329
+ let { toBlob: d } = await import("./toBlob-0844a01a.js");
17326
17330
  return d(i, { ...t, ...f || {}, [$e]: !0 });
17327
17331
  }, img: async (f) => {
17328
- let { toImg: d } = await import("./toImg-418ff752.js");
17332
+ let { toImg: d } = await import("./toImg-f7d27c39.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-1e2659ec.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-e858b9a1.js";
2
2
  import "axios";
3
3
  import "vuetify";
4
4
  import "vue";