@idmui/spot 1.1.8 → 1.2.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.
@@ -62,12 +62,12 @@ declare namespace _sfc_main {
62
62
  messageInstance: undefined;
63
63
  };
64
64
  namespace computed {
65
- function computeHourLT(): (time: any) => string;
65
+ function computeHourLT(): (time: any) => any;
66
66
  function computeHourZ(): (time: any) => string;
67
- function computeWeekLT(): (time: any) => string;
68
- function computeMMMDDLT(): (time: any) => string;
69
- function computeMMMDDHHmmLT(): (time: any) => string;
70
- function computeMMMDDyyyyLT(): (time: any) => string;
67
+ function computeWeekLT(): (time: any) => any;
68
+ function computeMMMDDLT(): (time: any) => any;
69
+ function computeMMMDDHHmmLT(): (time: any) => any;
70
+ function computeMMMDDyyyyLT(): (time: any) => any;
71
71
  function computeLat(): (lat: any, precision?: number) => any;
72
72
  function computeLng(): (lng: any, precision?: number) => any;
73
73
  function roundPrecision(): (num: any, precision?: number) => any;
@@ -16609,7 +16609,7 @@ function(A) {
16609
16609
  var i = n.getContext("2d");
16610
16610
  i.fillStyle = "#fff", i.fillRect(0, 0, n.width, n.height);
16611
16611
  var a = { ignoreMouse: !0, ignoreAnimation: !0, ignoreDimensions: !0 }, l = this;
16612
- return (l1.canvg ? Promise.resolve(l1.canvg) : import("./index.es-9026f5ff.js")).catch(function(f) {
16612
+ return (l1.canvg ? Promise.resolve(l1.canvg) : import("./index.es-69356913.js")).catch(function(f) {
16613
16613
  return Promise.reject(new Error("Could not load canvg: " + f));
16614
16614
  }).then(function(f) {
16615
16615
  return f.default ? f.default : f;
@@ -17561,8 +17561,9 @@ const zg = {
17561
17561
  },
17562
17562
  computed: {
17563
17563
  computeHourLT() {
17564
- return function(A) {
17564
+ return (A) => {
17565
17565
  if (A) {
17566
+ console.log(994, this.positionGmt);
17566
17567
  const e = O1(A).tz(this.positionGmt);
17567
17568
  return `${e == null ? void 0 : e.format("HH")}`;
17568
17569
  }
@@ -17570,7 +17571,7 @@ const zg = {
17570
17571
  };
17571
17572
  },
17572
17573
  computeHourZ() {
17573
- return function(A) {
17574
+ return (A) => {
17574
17575
  if (A) {
17575
17576
  const e = b1(A).utc();
17576
17577
  return `${e == null ? void 0 : e.format("HH")}Z`;
@@ -17579,7 +17580,7 @@ const zg = {
17579
17580
  };
17580
17581
  },
17581
17582
  computeWeekLT() {
17582
- return function(A) {
17583
+ return (A) => {
17583
17584
  if (A) {
17584
17585
  const e = O1(A).tz(this.positionGmt);
17585
17586
  return `${e == null ? void 0 : e.format("dddd")}`;
@@ -17588,8 +17589,9 @@ const zg = {
17588
17589
  };
17589
17590
  },
17590
17591
  computeMMMDDLT() {
17591
- return function(A) {
17592
+ return (A) => {
17592
17593
  if (A) {
17594
+ console.log(995, this.positionGmt);
17593
17595
  const e = O1(A).tz(this.positionGmt);
17594
17596
  return `${e == null ? void 0 : e.format("MMM-DD")}`;
17595
17597
  }
@@ -17597,7 +17599,7 @@ const zg = {
17597
17599
  };
17598
17600
  },
17599
17601
  computeMMMDDHHmmLT() {
17600
- return function(A) {
17602
+ return (A) => {
17601
17603
  if (A) {
17602
17604
  const e = O1(A).tz(this.positionGmt);
17603
17605
  return `${e == null ? void 0 : e.format("MMM-DD/HHmm")}`;
@@ -17606,7 +17608,7 @@ const zg = {
17606
17608
  };
17607
17609
  },
17608
17610
  computeMMMDDyyyyLT() {
17609
- return function(A) {
17611
+ return (A) => {
17610
17612
  if (A) {
17611
17613
  const e = O1(A).tz(this.positionGmt);
17612
17614
  return `${e == null ? void 0 : e.format("MMM-DD, yyyy")}`;
@@ -17615,19 +17617,13 @@ const zg = {
17615
17617
  };
17616
17618
  },
17617
17619
  computeLat() {
17618
- return function(A, e = 4) {
17619
- return xo.lat2pretty(A, e).pretty;
17620
- };
17620
+ return (A, e = 4) => xo.lat2pretty(A, e).pretty;
17621
17621
  },
17622
17622
  computeLng() {
17623
- return function(A, e = 4) {
17624
- return xo.lng2pretty(A, e).pretty;
17625
- };
17623
+ return (A, e = 4) => xo.lng2pretty(A, e).pretty;
17626
17624
  },
17627
17625
  roundPrecision() {
17628
- return function(A, e = 4) {
17629
- return isNaN(A) ? "-" : xo.roundPrecision(A, e);
17630
- };
17626
+ return (A, e = 4) => isNaN(A) ? "-" : xo.roundPrecision(A, e);
17631
17627
  }
17632
17628
  },
17633
17629
  watch: {
@@ -17790,7 +17786,7 @@ const zg = {
17790
17786
  });
17791
17787
  (M == null ? void 0 : M.data.code) === 0 && (this.meteoData = {
17792
17788
  ...M == null ? void 0 : M.data.data
17793
- }, this.etime = (b = M == null ? void 0 : M.data) == null ? void 0 : b.etime, this.positionGmt = (n = (p = (z = this.meteoData) == null ? void 0 : z.weather) == null ? void 0 : p[0]) == null ? void 0 : n.timezone, console.log(888, this.positionGmt), this.positionOffset = (l = (a = (i = this.meteoData) == null ? void 0 : i.weather) == null ? void 0 : a[0]) == null ? void 0 : l.offset, this.issuedDate = b1(this.etime).utc().format("MMM-DD/HHmm[Z], YYYY"));
17789
+ }, this.etime = (b = M == null ? void 0 : M.data) == null ? void 0 : b.etime, this.positionGmt = (n = (p = (z = this.meteoData) == null ? void 0 : z.weather) == null ? void 0 : p[0]) == null ? void 0 : n.timezone, console.log(998, this.positionGmt), this.positionOffset = (l = (a = (i = this.meteoData) == null ? void 0 : i.weather) == null ? void 0 : a[0]) == null ? void 0 : l.offset, this.issuedDate = b1(this.etime).utc().format("MMM-DD/HHmm[Z], YYYY"));
17794
17790
  },
17795
17791
  async fetchHistoryMeteo(A) {
17796
17792
  var z, p, n, i, a, l, f;
@@ -17809,7 +17805,7 @@ const zg = {
17809
17805
  Authorization: this.token
17810
17806
  }
17811
17807
  });
17812
- (b == null ? void 0 : b.data.code) === 0 && (this.meteoData = b == null ? void 0 : b.data.data, this.meteoData.showDateSelect = !1, this.etime = (z = b == null ? void 0 : b.data) == null ? void 0 : z.etime, this.positionGmt = (i = (n = (p = this.meteoData) == null ? void 0 : p.weather) == null ? void 0 : n[0]) == null ? void 0 : i.timezone, console.log(777, this.positionGmt), this.positionOffset = (f = (l = (a = this.meteoData) == null ? void 0 : a.weather) == null ? void 0 : l[0]) == null ? void 0 : f.offset, this.issuedDate = b1(this.etime).utc().format("MMM-DD/HHmm[Z], YYYY"));
17808
+ (b == null ? void 0 : b.data.code) === 0 && (this.meteoData = b == null ? void 0 : b.data.data, this.meteoData.showDateSelect = !1, this.etime = (z = b == null ? void 0 : b.data) == null ? void 0 : z.etime, this.positionGmt = (i = (n = (p = this.meteoData) == null ? void 0 : p.weather) == null ? void 0 : n[0]) == null ? void 0 : i.timezone, console.log(997, this.positionGmt), this.positionOffset = (f = (l = (a = this.meteoData) == null ? void 0 : a.weather) == null ? void 0 : l[0]) == null ? void 0 : f.offset, this.issuedDate = b1(this.etime).utc().format("MMM-DD/HHmm[Z], YYYY"));
17813
17809
  },
17814
17810
  async handleRender() {
17815
17811
  if (this.disposeEcharts(), this.menuIndex === 1) {
@@ -21543,7 +21539,7 @@ function A8(A, e, t, o, M, b) {
21543
21539
  }, 8, ["modelValue", "title"])
21544
21540
  ]);
21545
21541
  }
21546
- const e8 = /* @__PURE__ */ Nn(zg, [["render", A8], ["__scopeId", "data-v-7ed2dfcb"]]), aL = {
21542
+ const e8 = /* @__PURE__ */ Nn(zg, [["render", A8], ["__scopeId", "data-v-8de98ac9"]]), aL = {
21547
21543
  install(A) {
21548
21544
  A.component("SpotWeather", e8);
21549
21545
  }
@@ -1,4 +1,4 @@
1
- import { c as Qe, _ as Ha, g as Lo } from "./index-7dc26219.js";
1
+ import { c as Qe, _ as Ha, g as Lo } from "./index-5c84ab8e.js";
2
2
  import "moment";
3
3
  import "@element-plus/icons-vue";
4
4
  import "@idm-plugin/geo";
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { d as s, b as g, a as h, S as l } from "./index-7dc26219.js";
1
+ import { d as s, b as g, a as h, S as l } from "./index-5c84ab8e.js";
2
2
  import "moment";
3
3
  import "@element-plus/icons-vue";
4
4
  import "@idm-plugin/geo";