@idmwx/idmui-gl4 1.9.1 → 1.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.
package/dist/index.js CHANGED
@@ -5208,7 +5208,7 @@ const ql = {
5208
5208
  show: {
5209
5209
  handler() {
5210
5210
  var t, e, o;
5211
- this.show ? (this.handleRender(), (t = this.map) == null || t.on("click", [this.layer], this.handleClick), (e = this.map) == null || e.on("mousemove", [this.layer], this.handleHover), (o = this.map) == null || o.on("mouseleave", [this.layer], this.handleLeave)) : this.handleClear();
5211
+ this.show ? (this.handleClear(), this.handleRender(), (t = this.map) == null || t.on("click", [this.layer], this.handleClick), (e = this.map) == null || e.on("mousemove", [this.layer], this.handleHover), (o = this.map) == null || o.on("mouseleave", [this.layer], this.handleLeave)) : this.handleClear();
5212
5212
  },
5213
5213
  immediate: !0
5214
5214
  },
@@ -5263,12 +5263,12 @@ const ql = {
5263
5263
  },
5264
5264
  handleClear() {
5265
5265
  var t, e, o;
5266
- this.map.getLayer(this.layer) && this.map.removeLayer(this.layer), this.map.getSource(this.source) && this.map.removeSource(this.source), (t = this.map) == null || t.on("click", [this.layer], this.handleClick), (e = this.map) == null || e.on("mousemove", [this.layer], this.handleHover), (o = this.map) == null || o.on("mouseleave", [this.layer], this.handleLeave);
5266
+ this.map.getLayer(this.layer) && this.map.removeLayer(this.layer), this.map.getSource(this.source) && this.map.removeSource(this.source), (t = this.map) == null || t.off("click", [this.layer], this.handleClick), (e = this.map) == null || e.off("mousemove", [this.layer], this.handleHover), (o = this.map) == null || o.off("mouseleave", [this.layer], this.handleLeave);
5267
5267
  },
5268
5268
  handleClick(t) {
5269
5269
  var o, i, a, r, s, c, n, u, h;
5270
5270
  const e = t.features[0];
5271
- if (console.log(e), e.properties) {
5271
+ if (e.properties) {
5272
5272
  const b = e.properties;
5273
5273
  b.lng = e.geometry.coordinates[0], b.lat = e.geometry.coordinates[1];
5274
5274
  const w = S(), L = (o = S(this.realTime)) == null ? void 0 : o.diff(w, "d", !0), g = {
@@ -5326,7 +5326,7 @@ function Jl(t, e, o, i, a, r) {
5326
5326
  [Ze, a.showInfo]
5327
5327
  ]);
5328
5328
  }
5329
- const Ql = /* @__PURE__ */ q(ql, [["render", Jl], ["__scopeId", "data-v-01307602"]]);
5329
+ const Ql = /* @__PURE__ */ q(ql, [["render", Jl], ["__scopeId", "data-v-1def8c73"]]);
5330
5330
  const es = {
5331
5331
  name: "IdmOtherLayerr",
5332
5332
  components: {
@@ -32779,8 +32779,8 @@ const Ld = {
32779
32779
  type: Number
32780
32780
  },
32781
32781
  defaultDays: {
32782
- type: Number,
32783
- default: 7
32782
+ type: Number
32783
+ // default: 7,
32784
32784
  },
32785
32785
  defaultRange: {
32786
32786
  type: Array,
@@ -32883,7 +32883,10 @@ const Ld = {
32883
32883
  handleResetDateRange() {
32884
32884
  var r, s, c;
32885
32885
  let t, e;
32886
- (r = this.defaultRange) != null && r.length ? (t = this.defaultRange[0], e = (s = S(S(this.defaultRange[1]).set({ hour: 23, minute: 59, second: 59, millisecond: 59 }))) == null ? void 0 : s.diff(S(this.defaultRange[0]).set({ hour: 0, minute: 0, second: 0, millisecond: 0 }), "d", !0)) : e = this.defaultDays;
32886
+ if ((r = this.defaultRange) != null && r.length ? (t = this.defaultRange[0], e = (s = S(S(this.defaultRange[1]).set({ hour: 23, minute: 59, second: 59, millisecond: 59 }))) == null ? void 0 : s.diff(S(this.defaultRange[0]).set({ hour: 0, minute: 0, second: 0, millisecond: 0 }), "d", !0)) : e = this.defaultDays, !e) {
32887
+ this.$emit("dateRange", []);
32888
+ return;
32889
+ }
32887
32890
  const o = S.tz(t, this.timeZoneName).clone(), i = [];
32888
32891
  if (e < 0)
32889
32892
  for (let n = e + 1; n <= 0; n++)