@idmwx/idmui-gl4 2.7.2 → 2.7.4

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-0f589a18.js";
1
+ import { l as b } from "./index-6f25fd78.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-9f3048f1.js";
1
+ import { W as a } from "./chunk-3VYIPD3A-fd4140d8.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-9f3048f1.js";
1
+ import { W as m } from "./chunk-3VYIPD3A-fd4140d8.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-1b814834.js";
2
- import { W as f } from "./chunk-3VYIPD3A-9f3048f1.js";
3
- import "./index-0f589a18.js";
1
+ import { m as d } from "./chunk-T4JIPPZO-bdf714d9.js";
2
+ import { W as f } from "./chunk-3VYIPD3A-fd4140d8.js";
3
+ import "./index-6f25fd78.js";
4
4
  import "axios";
5
5
  import "vuetify";
6
6
  import "vue";
@@ -11985,27 +11985,24 @@ const mh = {
11985
11985
  if (this.position === "top")
11986
11986
  return {
11987
11987
  bottom: "40px",
11988
- left: `-${(350 - e) / 2}px`
11988
+ left: `-${(400 - e) / 2}px`
11989
11989
  };
11990
11990
  if (this.position === "bottom")
11991
11991
  return {
11992
11992
  top: "40px",
11993
- left: `-${(350 - e) / 2}px`
11993
+ left: `-${(400 - e) / 2}px`
11994
11994
  };
11995
11995
  if (this.position === "left")
11996
11996
  return {
11997
11997
  bottom: "-140px",
11998
- left: "-358px"
11998
+ left: "-408px"
11999
11999
  };
12000
12000
  if (this.position === "right")
12001
12001
  return {
12002
12002
  bottom: "-140px",
12003
- right: "-358px"
12003
+ right: "-408px"
12004
12004
  };
12005
12005
  },
12006
- currentYear() {
12007
- return T(this.currentTimestamp).format("YYYY");
12008
- },
12009
12006
  hourOptions() {
12010
12007
  const e = [];
12011
12008
  for (let t = 0; t < 24; t++)
@@ -12077,7 +12074,7 @@ const mh = {
12077
12074
  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);
12078
12075
  },
12079
12076
  handleOpenDatePicker() {
12080
- this.disabled || (this.showDatePicker = !this.showDatePicker, this.handleUpdateMonth());
12077
+ this.disabled || (this.showDatePicker = !this.showDatePicker);
12081
12078
  },
12082
12079
  handleUpdateMonth(e) {
12083
12080
  const t = e || T.tz(this.currentTimestamp, this.timeZoneName).clone().month(), a = this.locale === "en" ? T.tz(this.currentTimestamp, this.timeZoneName).set({ month: t }).clone().format("MMM") : T.tz(this.currentTimestamp, this.timeZoneName).set({ month: t }).clone().format("M月");
@@ -12105,7 +12102,7 @@ const mh = {
12105
12102
  ref: "idmGl4Timepicker"
12106
12103
  }, hh = {
12107
12104
  class: "pa-0",
12108
- style: { width: "250px" }
12105
+ style: { width: "300px" }
12109
12106
  }, uh = {
12110
12107
  class: "h-100 pa-0 d-flex flex-column justify-start align-center",
12111
12108
  style: { width: "100px" }
@@ -12135,14 +12132,12 @@ function gh(e, t, a, i, o, r) {
12135
12132
  "onUpdate:modelValue": t[1] || (t[1] = (d) => o.currentDate = d),
12136
12133
  min: o.minDate,
12137
12134
  max: o.maxDate,
12138
- "mode-icon": () => r.currentYear,
12139
12135
  "weekday-format": "short",
12140
12136
  color: "primary",
12141
12137
  density: "compact",
12142
12138
  class: "w-100",
12143
- "hide-header": "",
12144
- "onUpdate:month": r.handleUpdateMonth
12145
- }, null, 8, ["modelValue", "min", "max", "mode-icon", "onUpdate:month"])
12139
+ "hide-header": ""
12140
+ }, null, 8, ["modelValue", "min", "max"])
12146
12141
  ]),
12147
12142
  C(c, {
12148
12143
  class: "h-100",
@@ -17283,52 +17278,52 @@ Ce.capture = async (e, t, a) => {
17283
17278
  if (a !== wr)
17284
17279
  throw new Error("[snapdom.capture] is internal. Use snapdom(...) instead.");
17285
17280
  let i = await br(e, t), o = { img: async (f, d) => {
17286
- let { toImg: u } = await import("./toImg-605102af.js");
17281
+ let { toImg: u } = await import("./toImg-15f705a4.js");
17287
17282
  return u(i, { ...f, ...d || {} });
17288
17283
  }, svg: async (f, d) => {
17289
- let { toSvg: u } = await import("./toImg-605102af.js");
17284
+ let { toSvg: u } = await import("./toImg-15f705a4.js");
17290
17285
  return u(i, { ...f, ...d || {} });
17291
17286
  }, canvas: async (f, d) => {
17292
- let { toCanvas: u } = await import("./toCanvas-3ab44a4b.js");
17287
+ let { toCanvas: u } = await import("./toCanvas-3301fdba.js");
17293
17288
  return u(i, { ...f, ...d || {} });
17294
17289
  }, blob: async (f, d) => {
17295
- let { toBlob: u } = await import("./toBlob-256d732a.js");
17290
+ let { toBlob: u } = await import("./toBlob-aa115503.js");
17296
17291
  return u(i, { ...f, ...d || {} });
17297
17292
  }, png: async (f, d) => {
17298
- let { rasterize: u } = await import("./rasterize-JS5G2XHH-4cd6280e.js");
17293
+ let { rasterize: u } = await import("./rasterize-JS5G2XHH-d609a892.js");
17299
17294
  return u(i, { ...f, ...d || {}, format: "png" });
17300
17295
  }, jpeg: async (f, d) => {
17301
- let { rasterize: u } = await import("./rasterize-JS5G2XHH-4cd6280e.js");
17296
+ let { rasterize: u } = await import("./rasterize-JS5G2XHH-d609a892.js");
17302
17297
  return u(i, { ...f, ...d || {}, format: "jpeg" });
17303
17298
  }, webp: async (f, d) => {
17304
- let { rasterize: u } = await import("./rasterize-JS5G2XHH-4cd6280e.js");
17299
+ let { rasterize: u } = await import("./rasterize-JS5G2XHH-d609a892.js");
17305
17300
  return u(i, { ...f, ...d || {}, format: "webp" });
17306
17301
  }, download: async (f, d) => {
17307
- let { download: u } = await import("./download-3972120d.js");
17302
+ let { download: u } = await import("./download-a6494726.js");
17308
17303
  return u(i, { ...f, ...d || {} });
17309
17304
  } }, r = { ...t, export: { url: i }, exports: { svg: async (f) => {
17310
- let { toSvg: d } = await import("./toImg-605102af.js");
17305
+ let { toSvg: d } = await import("./toImg-15f705a4.js");
17311
17306
  return d(i, { ...t, ...f || {}, [$e]: !0 });
17312
17307
  }, canvas: async (f) => {
17313
- let { toCanvas: d } = await import("./toCanvas-3ab44a4b.js");
17308
+ let { toCanvas: d } = await import("./toCanvas-3301fdba.js");
17314
17309
  return d(i, { ...t, ...f || {}, [$e]: !0 });
17315
17310
  }, png: async (f) => {
17316
- let { rasterize: d } = await import("./rasterize-JS5G2XHH-4cd6280e.js");
17311
+ let { rasterize: d } = await import("./rasterize-JS5G2XHH-d609a892.js");
17317
17312
  return d(i, { ...t, ...f || {}, format: "png", [$e]: !0 });
17318
17313
  }, jpeg: async (f) => {
17319
- let { rasterize: d } = await import("./rasterize-JS5G2XHH-4cd6280e.js");
17314
+ let { rasterize: d } = await import("./rasterize-JS5G2XHH-d609a892.js");
17320
17315
  return d(i, { ...t, ...f || {}, format: "jpeg", [$e]: !0 });
17321
17316
  }, jpg: async (f) => {
17322
- let { rasterize: d } = await import("./rasterize-JS5G2XHH-4cd6280e.js");
17317
+ let { rasterize: d } = await import("./rasterize-JS5G2XHH-d609a892.js");
17323
17318
  return d(i, { ...t, ...f || {}, format: "jpeg", [$e]: !0 });
17324
17319
  }, webp: async (f) => {
17325
- let { rasterize: d } = await import("./rasterize-JS5G2XHH-4cd6280e.js");
17320
+ let { rasterize: d } = await import("./rasterize-JS5G2XHH-d609a892.js");
17326
17321
  return d(i, { ...t, ...f || {}, format: "webp", [$e]: !0 });
17327
17322
  }, blob: async (f) => {
17328
- let { toBlob: d } = await import("./toBlob-256d732a.js");
17323
+ let { toBlob: d } = await import("./toBlob-aa115503.js");
17329
17324
  return d(i, { ...t, ...f || {}, [$e]: !0 });
17330
17325
  }, img: async (f) => {
17331
- let { toImg: d } = await import("./toImg-605102af.js");
17326
+ let { toImg: d } = await import("./toImg-15f705a4.js");
17332
17327
  return d(i, { ...t, ...f || {}, [$e]: !0 });
17333
17328
  } } }, l = await yp("defineExports", r), c = Object.assign({}, ...l.filter((f) => f && typeof f == "object")), s = { ...o, ...c };
17334
17329
  s.jpeg && !s.jpg && (s.jpg = (f, d) => s.jpeg(f, d));
@@ -38189,19 +38184,13 @@ const N0 = {
38189
38184
  },
38190
38185
  handleResetDateRange() {
38191
38186
  var e;
38192
- if (((e = this.defaultRange) == null ? void 0 : e.length) === 2)
38193
- this.dateRange = this.defaultRange;
38194
- else {
38195
- const t = T.tz(T().format(), this.timeZoneName).clone();
38196
- this.dateRange = [t.clone().format(), t.clone().add(7, "days").format()];
38197
- }
38198
- this.dateRangeStr = `${T.tz(this.dateRange[0], this.timeZoneName).format("yyyy-MM-DD")} ~ ${T.tz(this.dateRange[1], this.timeZoneName).format("yyyy-MM-DD")}`, this.$emit(
38187
+ ((e = this.defaultRange) == null ? void 0 : e.length) === 2 && (this.dateRange = this.defaultRange, this.dateRangeStr = `${T.tz(this.dateRange[0], this.timeZoneName).format("yyyy-MM-DD")} ~ ${T.tz(this.dateRange[1], this.timeZoneName).format("yyyy-MM-DD")}`, this.$emit(
38199
38188
  "dateRange",
38200
38189
  [
38201
38190
  T.tz(this.dateRange[0], this.timeZoneName).set({ hour: 0, minute: 0, second: 0, millisecond: 0 }).format(),
38202
38191
  T.tz(this.dateRange[1], this.timeZoneName).set({ hour: 23, minute: 59, second: 59, millisecond: 59 }).format()
38203
38192
  ]
38204
- );
38193
+ ));
38205
38194
  },
38206
38195
  handleResetMinMax() {
38207
38196
  const e = T.tz(T().format(), this.timeZoneName).clone(), { h: t, f: a } = this.dayAbout;
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-0f589a18.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-6f25fd78.js";
2
2
  import "axios";
3
3
  import "vuetify";
4
4
  import "vue";