@idmwx/idmui-gl4 1.5.8 → 1.6.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.
package/dist/index.js CHANGED
@@ -31953,7 +31953,7 @@ const Qm = {
31953
31953
  props: {
31954
31954
  width: {
31955
31955
  type: Number,
31956
- default: 230
31956
+ default: 226
31957
31957
  },
31958
31958
  height: {
31959
31959
  type: Number,
@@ -32021,7 +32021,7 @@ const Qm = {
32021
32021
  watch: {
32022
32022
  timeZone: {
32023
32023
  handler(t, e) {
32024
- t !== e && (this.handleResetDateRange(this.dateTime), this.handleResetMinMax());
32024
+ t !== e && (this.handleResetDateRange(), this.handleResetMinMax());
32025
32025
  }
32026
32026
  },
32027
32027
  dateRange: {
@@ -32040,22 +32040,27 @@ const Qm = {
32040
32040
  this.handleResetDateRange(), this.handleResetMinMax();
32041
32041
  },
32042
32042
  handleResetDateRange() {
32043
- var s, c, n, g;
32043
+ var a, r, s;
32044
32044
  let t, e;
32045
- (s = this.defaultRange) != null && s.length ? (t = this.defaultRange[0], e = (c = this.defaultRange) == null ? void 0 : c.length) : e = this.defaultDays;
32046
- const o = M(t).utc().date(), i = ((n = M(t)) == null ? void 0 : n.utc().set({ date: o, hour: 0, minute: 0, second: 0, millisecond: 0 }).unix()) * 1e3, a = M.tz(i, this.timeZoneName).clone(), r = [];
32045
+ (a = this.defaultRange) != null && a.length ? (t = this.defaultRange[0], e = (r = this.defaultRange) == null ? void 0 : r.length) : e = this.defaultDays;
32046
+ const o = M.tz(t, this.timeZoneName).clone(), i = [];
32047
32047
  if (e < 0)
32048
- for (let p = e + 1; p <= 0; p++)
32049
- r.push(a.clone().add(p, "days").format());
32048
+ for (let c = e + 1; c <= 0; c++)
32049
+ i.push(o.clone().add(c, "days").format());
32050
32050
  else
32051
- for (let p = 0; p < e; p++)
32052
- r.push(a.clone().add(p, "days").format());
32053
- this.dateRange = r, this.dateRangeStr = `${this.computeTimeLT(this.dateRange[0])} ~ ${this.computeTimeLT(this.dateRange[((g = this.dateRange) == null ? void 0 : g.length) - 1])}`, this.$emit("dateRange", [this.dateRange[0], this.dateRange[this.dateRange.length - 1]]);
32051
+ for (let c = 0; c < e; c++)
32052
+ i.push(o.clone().add(c, "days").format());
32053
+ this.dateRange = i, this.dateRangeStr = `${this.computeTimeLT(this.dateRange[0])} ~ ${this.computeTimeLT(this.dateRange[((s = this.dateRange) == null ? void 0 : s.length) - 1])}`, this.$emit(
32054
+ "dateRange",
32055
+ [
32056
+ M(this.dateRange[0]).set({ hour: 0, minute: 0, second: 0, millisecond: 0 }).format(),
32057
+ M(this.dateRange[this.dateRange.length - 1]).set({ hour: 23, minute: 59, second: 59, millisecond: 59 }).format()
32058
+ ]
32059
+ );
32054
32060
  },
32055
32061
  handleResetMinMax() {
32056
- var r;
32057
- const t = M().utc().date(), e = ((r = M()) == null ? void 0 : r.utc().set({ date: t, hour: 0, minute: 0, second: 0, millisecond: 0 }).unix()) * 1e3, o = M.tz(e, this.timeZoneName).clone(), { h: i, f: a } = this.dayAbout;
32058
- i != null && typeof Number(i) == "number" && !isNaN(i) && (this.minDate = o.clone().add(i, "day").format("yyyy-MM-DD")), a != null && typeof Number(a) == "number" && !isNaN(a) && (this.maxDate = o.clone().add(a, "day").format("yyyy-MM-DD"));
32062
+ const t = M.tz(M().format(), this.timeZoneName).clone(), { h: e, f: o } = this.dayAbout;
32063
+ e != null && typeof Number(e) == "number" && !isNaN(e) && (this.minDate = t.clone().add(e, "day").format("yyyy-MM-DD")), o != null && typeof Number(o) == "number" && !isNaN(o) && (this.maxDate = t.clone().add(o, "day").format("yyyy-MM-DD"));
32059
32064
  },
32060
32065
  handleOpenDatePicker() {
32061
32066
  this.showDatePicker = !this.showDatePicker, this.handleUpdateMonth();
@@ -32069,7 +32074,13 @@ const Qm = {
32069
32074
  },
32070
32075
  handleConfirmDate() {
32071
32076
  var t;
32072
- this.dateRangeStr = `${this.computeTimeLT(this.dateRange[0])} ~ ${this.computeTimeLT(this.dateRange[((t = this.dateRange) == null ? void 0 : t.length) - 1])}`, this.$emit("dateRange", [this.dateRange[0], this.dateRange[this.dateRange.length - 1]]), this.showDatePicker = !1;
32077
+ this.dateRangeStr = `${this.computeTimeLT(this.dateRange[0])} ~ ${this.computeTimeLT(this.dateRange[((t = this.dateRange) == null ? void 0 : t.length) - 1])}`, this.$emit(
32078
+ "dateRange",
32079
+ [
32080
+ M(this.dateRange[0]).set({ hour: 0, minute: 0, second: 0, millisecond: 0 }).format(),
32081
+ M(this.dateRange[this.dateRange.length - 1]).set({ hour: 23, minute: 59, second: 59, millisecond: 59 }).format()
32082
+ ]
32083
+ ), this.showDatePicker = !1;
32073
32084
  },
32074
32085
  handleCancelDate() {
32075
32086
  this.showDatePicker = !1;
@@ -32090,7 +32101,7 @@ function td(t, e, o, i, a, r) {
32090
32101
  text: "",
32091
32102
  height: o.height,
32092
32103
  width: o.width,
32093
- class: "elevation-0 text-body-1 px-2 btn-border-1 btn-bg-1",
32104
+ class: "elevation-0 text-body-1 btn-border-1 btn-bg-1",
32094
32105
  onClick: r.handleOpenDatePicker
32095
32106
  }, {
32096
32107
  default: u(() => [