@idmui/spot 0.7.8 → 0.8.0

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.
@@ -13873,7 +13873,7 @@ function(t) {
13873
13873
  */
13874
13874
  function(t) {
13875
13875
  function A() {
13876
- return (he.canvg ? Promise.resolve(he.canvg) : import("./index.es-6740c0a0.js")).catch(function(e) {
13876
+ return (he.canvg ? Promise.resolve(he.canvg) : import("./index.es-765d3120.js")).catch(function(e) {
13877
13877
  return Promise.reject(new Error("Could not load canvg: " + e));
13878
13878
  }).then(function(e) {
13879
13879
  return e.default ? e.default : e;
@@ -17210,14 +17210,13 @@ const sm = {
17210
17210
  async handleDownloadPDF() {
17211
17211
  var t, A;
17212
17212
  if (this.loading.downloading === !0)
17213
- return this.$message.warning("the pdf is downloading..."), !1;
17213
+ return this.$message.warning("PDF is downloading, please wait a moment..."), !1;
17214
17214
  try {
17215
17215
  this.loading.downloading = !0, await this.$nextTick();
17216
17216
  const e = document.getElementById("pdfContent");
17217
- if (this.menuIndex === 4 && (e.style.height = "1500px"), !e) {
17218
- console.error("未找到要打印的元素");
17219
- return;
17220
- }
17217
+ if (this.menuIndex === 4 && (e.style.height = "1500px"), !e)
17218
+ return this.$message.warning("未找到要打印的元素"), !1;
17219
+ this.$message.warning("PDF is downloading, please wait a moment...");
17221
17220
  let r = [];
17222
17221
  if (document.getElementById("weather-chart")) {
17223
17222
  const w = He.getInstanceByDom(document.getElementById("weather-chart"));
@@ -17303,9 +17302,9 @@ const sm = {
17303
17302
  let B = "";
17304
17303
  this.menuIndex === 1 ? B = `WeatherForecast_History_${d}_${ee().format("YYYYMMDD")}` : this.menuIndex === 2 ? B = `WeatherForecast_7Day_${d}_${ee().format("YYYYMMDD")}` : this.menuIndex === 3 ? B = `WeatherForecast_14Day_${d}_${ee().format("YYYYMMDD")}` : this.menuIndex === 4 && (B = `WeatherForecast_Seasonal_${d}_${ee().format("YYYYMMDD")}`), u.save(`${B}.pdf`), this.menuIndex === 4 && (e.style.height = "unset"), this.loading.downloading = !1, r.forEach((w) => {
17305
17304
  w.setOption({ renderer: "canvas" }), w.resize();
17306
- }), this.$message.success("Download succuss!");
17305
+ }), this.$message.success("PDF download succuss!");
17307
17306
  } catch (e) {
17308
- console.error("PDF generation failed:", e), this.menuIndex === 4 && (element.style.height = "unset"), this.loading.downloading = !1, this.$message.error("Download failed ! ");
17307
+ console.error("PDF generation failed:", e), this.menuIndex === 4 && (element.style.height = "unset"), this.loading.downloading = !1, this.$message.error("PDF download failed ! ");
17309
17308
  }
17310
17309
  }
17311
17310
  }
@@ -18657,7 +18656,7 @@ function Xv(t, A, e, r, n, i) {
18657
18656
  }, 8, ["modelValue", "title"])
18658
18657
  ]);
18659
18658
  }
18660
- const Vv = /* @__PURE__ */ nh(sm, [["render", Xv], ["__scopeId", "data-v-67f7a61b"]]), JC = {
18659
+ const Vv = /* @__PURE__ */ nh(sm, [["render", Xv], ["__scopeId", "data-v-1c19753e"]]), JC = {
18661
18660
  install(t) {
18662
18661
  t.component("SpotWeather", Vv);
18663
18662
  }
@@ -19984,7 +19983,7 @@ function _C(t, A, e, r, n, i) {
19984
19983
  H("div", null, "UTC " + OA(n.positionOffset), 1)
19985
19984
  ]),
19986
19985
  H("div", sC, [
19987
- A[3] || (A[3] = H("label", { class: "label" }, "ForecastModel:", -1)),
19986
+ A[3] || (A[3] = H("label", { class: "label" }, "Forecast Model:", -1)),
19988
19987
  H("div", null, [
19989
19988
  H("span", aC, OA(n.forecastModel), 1)
19990
19989
  ])
@@ -19993,7 +19992,7 @@ function _C(t, A, e, r, n, i) {
19993
19992
  ]),
19994
19993
  H("div", oC, [
19995
19994
  (c = n.position) != null && c.name && !((u = n.loading) != null && u.meteogramEchart) ? (FA(), EA("div", lC, A[4] || (A[4] = [
19996
- bd('<div class="title flex-start" data-v-4031340c><div style="margin-right:20px;" data-v-4031340c>Meteogram</div></div><div id="weather-icons" data-v-4031340c></div><div id="weather-condition" data-v-4031340c></div><div id="wave-swell" data-v-4031340c></div>', 4)
19995
+ bd('<div class="title flex-start" data-v-c1649896><div style="margin-right:20px;" data-v-c1649896>Meteogram</div></div><div id="weather-icons" data-v-c1649896></div><div id="weather-condition" data-v-c1649896></div><div id="wave-swell" data-v-c1649896></div>', 4)
19997
19996
  ]))) : (d = n.loading) != null && d.meteogramEchart ? (FA(), EA("div", cC, A[5] || (A[5] = [
19998
19997
  H("img", {
19999
19998
  style: { height: "200px" },
@@ -20216,7 +20215,7 @@ function _C(t, A, e, r, n, i) {
20216
20215
  ])
20217
20216
  ]);
20218
20217
  }
20219
- const jC = /* @__PURE__ */ nh(Wv, [["render", _C], ["__scopeId", "data-v-4031340c"]]), ZC = {
20218
+ const jC = /* @__PURE__ */ nh(Wv, [["render", _C], ["__scopeId", "data-v-c1649896"]]), ZC = {
20220
20219
  install(t) {
20221
20220
  t.component("SpotReport", jC);
20222
20221
  }
@@ -1,4 +1,4 @@
1
- import { _ as za } from "./index-5842242e.js";
1
+ import { _ as za } from "./index-8cf5fc83.js";
2
2
  import "moment";
3
3
  import "moment-timezone";
4
4
  import "@element-plus/icons-vue";
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { c as s, b as g, a as h, S as l } from "./index-5842242e.js";
1
+ import { c as s, b as g, a as h, S as l } from "./index-8cf5fc83.js";
2
2
  import "moment";
3
3
  import "moment-timezone";
4
4
  import "@element-plus/icons-vue";