@idmwx/idmui-gl4 3.9.1 → 3.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.
@@ -1,4 +1,4 @@
1
- import { l as b } from "./index-47213921.js";
1
+ import { l as b } from "./index-69f72d37.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-85968457.js";
1
+ import { W as a } from "./chunk-3VYIPD3A-2838a2d3.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-85968457.js";
1
+ import { W as m } from "./chunk-3VYIPD3A-2838a2d3.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-35a55388.js";
2
- import { W as f } from "./chunk-3VYIPD3A-85968457.js";
3
- import "./index-47213921.js";
1
+ import { m as d } from "./chunk-T4JIPPZO-0a2e3740.js";
2
+ import { W as f } from "./chunk-3VYIPD3A-2838a2d3.js";
3
+ import "./index-69f72d37.js";
4
4
  import "axios";
5
5
  import "vuetify";
6
6
  import "vue";
@@ -17824,52 +17824,52 @@ Te.capture = async (t, e, a) => {
17824
17824
  if (a !== tl)
17825
17825
  throw new Error("[snapdom.capture] is internal. Use snapdom(...) instead.");
17826
17826
  let i = await el(t, e), o = { img: async (u, h) => {
17827
- let { toImg: p } = await import("./toImg-02d1c4f8.js");
17827
+ let { toImg: p } = await import("./toImg-9b6cf62f.js");
17828
17828
  return p(i, { ...u, ...h || {} });
17829
17829
  }, svg: async (u, h) => {
17830
- let { toSvg: p } = await import("./toImg-02d1c4f8.js");
17830
+ let { toSvg: p } = await import("./toImg-9b6cf62f.js");
17831
17831
  return p(i, { ...u, ...h || {} });
17832
17832
  }, canvas: async (u, h) => {
17833
- let { toCanvas: p } = await import("./toCanvas-ba02c4c8.js");
17833
+ let { toCanvas: p } = await import("./toCanvas-fb19e5ee.js");
17834
17834
  return p(i, { ...u, ...h || {} });
17835
17835
  }, blob: async (u, h) => {
17836
- let { toBlob: p } = await import("./toBlob-1b16f6eb.js");
17836
+ let { toBlob: p } = await import("./toBlob-41b0b95c.js");
17837
17837
  return p(i, { ...u, ...h || {} });
17838
17838
  }, png: async (u, h) => {
17839
- let { rasterize: p } = await import("./rasterize-JS5G2XHH-1c3a3e41.js");
17839
+ let { rasterize: p } = await import("./rasterize-JS5G2XHH-1c41b4cb.js");
17840
17840
  return p(i, { ...u, ...h || {}, format: "png" });
17841
17841
  }, jpeg: async (u, h) => {
17842
- let { rasterize: p } = await import("./rasterize-JS5G2XHH-1c3a3e41.js");
17842
+ let { rasterize: p } = await import("./rasterize-JS5G2XHH-1c41b4cb.js");
17843
17843
  return p(i, { ...u, ...h || {}, format: "jpeg" });
17844
17844
  }, webp: async (u, h) => {
17845
- let { rasterize: p } = await import("./rasterize-JS5G2XHH-1c3a3e41.js");
17845
+ let { rasterize: p } = await import("./rasterize-JS5G2XHH-1c41b4cb.js");
17846
17846
  return p(i, { ...u, ...h || {}, format: "webp" });
17847
17847
  }, download: async (u, h) => {
17848
- let { download: p } = await import("./download-467a76d8.js");
17848
+ let { download: p } = await import("./download-cf8bf490.js");
17849
17849
  return p(i, { ...u, ...h || {} });
17850
17850
  } }, r = { ...e, export: { url: i }, exports: { svg: async (u) => {
17851
- let { toSvg: h } = await import("./toImg-02d1c4f8.js");
17851
+ let { toSvg: h } = await import("./toImg-9b6cf62f.js");
17852
17852
  return h(i, { ...e, ...u || {}, [da]: !0 });
17853
17853
  }, canvas: async (u) => {
17854
- let { toCanvas: h } = await import("./toCanvas-ba02c4c8.js");
17854
+ let { toCanvas: h } = await import("./toCanvas-fb19e5ee.js");
17855
17855
  return h(i, { ...e, ...u || {}, [da]: !0 });
17856
17856
  }, png: async (u) => {
17857
- let { rasterize: h } = await import("./rasterize-JS5G2XHH-1c3a3e41.js");
17857
+ let { rasterize: h } = await import("./rasterize-JS5G2XHH-1c41b4cb.js");
17858
17858
  return h(i, { ...e, ...u || {}, format: "png", [da]: !0 });
17859
17859
  }, jpeg: async (u) => {
17860
- let { rasterize: h } = await import("./rasterize-JS5G2XHH-1c3a3e41.js");
17860
+ let { rasterize: h } = await import("./rasterize-JS5G2XHH-1c41b4cb.js");
17861
17861
  return h(i, { ...e, ...u || {}, format: "jpeg", [da]: !0 });
17862
17862
  }, jpg: async (u) => {
17863
- let { rasterize: h } = await import("./rasterize-JS5G2XHH-1c3a3e41.js");
17863
+ let { rasterize: h } = await import("./rasterize-JS5G2XHH-1c41b4cb.js");
17864
17864
  return h(i, { ...e, ...u || {}, format: "jpeg", [da]: !0 });
17865
17865
  }, webp: async (u) => {
17866
- let { rasterize: h } = await import("./rasterize-JS5G2XHH-1c3a3e41.js");
17866
+ let { rasterize: h } = await import("./rasterize-JS5G2XHH-1c41b4cb.js");
17867
17867
  return h(i, { ...e, ...u || {}, format: "webp", [da]: !0 });
17868
17868
  }, blob: async (u) => {
17869
- let { toBlob: h } = await import("./toBlob-1b16f6eb.js");
17869
+ let { toBlob: h } = await import("./toBlob-41b0b95c.js");
17870
17870
  return h(i, { ...e, ...u || {}, [da]: !0 });
17871
17871
  }, img: async (u) => {
17872
- let { toImg: h } = await import("./toImg-02d1c4f8.js");
17872
+ let { toImg: h } = await import("./toImg-9b6cf62f.js");
17873
17873
  return h(i, { ...e, ...u || {}, [da]: !0 });
17874
17874
  } } }, l = await r0("defineExports", r), c = Object.assign({}, ...l.filter((u) => u && typeof u == "object")), s = { ...o, ...c };
17875
17875
  s.jpeg && !s.jpg && (s.jpg = (u, h) => s.jpeg(u, h));
@@ -18458,12 +18458,12 @@ const Fy = {
18458
18458
  try {
18459
18459
  this.exportFormats.includes("gif") && this.gifBlob && ((e = this.recorder) == null || e.downloadGif(this.gifBlob, `ORM-Record-${t}.gif`)), this.exportFormats.includes("mp4") && this.mp4Blob && ((a = this.recorder) == null || a.downloadMp4(this.mp4Blob, `ORM-Record-${t}.mp4`));
18460
18460
  } finally {
18461
- this.exporting = !1, this.clear(), this.showFormatDialog = !1;
18461
+ this.handleCloseDialog();
18462
18462
  }
18463
18463
  },
18464
18464
  // 弹框关闭时清空录制数据并退出(不触发 preview);actionStatus=0 表示已清理,避免重复
18465
- handleFormatDialogToggle(t) {
18466
- !t && !this.exporting && this.actionStatus !== 0 && this.clear();
18465
+ handleCloseDialog(t) {
18466
+ this.exporting = !1, this.clear(), this.showFormatDialog = !1;
18467
18467
  },
18468
18468
  handleDownloadGif() {
18469
18469
  const e = `ORM-Record-${T().format("yyyyMMDD-HHmm")}.gif`;
@@ -18492,7 +18492,7 @@ function Uy(t, e, a, i, o, r) {
18492
18492
  const l = M("VBtn"), c = M("VCardTitle"), s = M("VDivider"), m = M("VCheckbox"), d = M("VCardText"), g = M("VCardActions"), f = M("VCard"), y = M("VDialog");
18493
18493
  return v(), D("div", {
18494
18494
  class: "capture-container",
18495
- onContextmenu: e[12] || (e[12] = _e((...u) => r.handleExitRecord && r.handleExitRecord(...u), ["prevent"]))
18495
+ onContextmenu: e[10] || (e[10] = _e((...u) => r.handleExitRecord && r.handleExitRecord(...u), ["prevent"]))
18496
18496
  }, [
18497
18497
  o.exportErrors.length ? (v(), D("div", Gy, [
18498
18498
  (v(!0), D(Me, null, Se(o.exportErrors, (u) => (v(), D("div", { key: u }, b(u), 1))), 128))
@@ -18552,23 +18552,20 @@ function Uy(t, e, a, i, o, r) {
18552
18552
  }, ["stop"]))
18553
18553
  }, [
18554
18554
  o.actionStatus === 4 ? (v(), D("div", Zy, [
18555
- e[13] || (e[13] = n("div", { class: "dot bg-danger" }, null, -1)),
18555
+ e[11] || (e[11] = n("div", { class: "dot bg-danger" }, null, -1)),
18556
18556
  n("div", Vy, b(t.$t("tips.recordingText")), 1)
18557
18557
  ])) : I("", !0),
18558
18558
  o.actionStatus === 5 || o.actionStatus === 6 ? (v(), D("div", Xy, [
18559
- e[14] || (e[14] = n("div", { class: "dot bg-success" }, null, -1)),
18559
+ e[12] || (e[12] = n("div", { class: "dot bg-success" }, null, -1)),
18560
18560
  n("div", Oy, b(t.$t("tips.savingText")), 1)
18561
18561
  ])) : I("", !0)
18562
18562
  ], 32)
18563
18563
  ], 6)) : I("", !0),
18564
18564
  w(y, {
18565
18565
  modelValue: o.showFormatDialog,
18566
- "onUpdate:modelValue": [
18567
- e[11] || (e[11] = (u) => o.showFormatDialog = u),
18568
- r.handleFormatDialogToggle
18569
- ],
18566
+ "onUpdate:modelValue": e[9] || (e[9] = (u) => o.showFormatDialog = u),
18570
18567
  "max-width": "360",
18571
- persistent: o.exporting
18568
+ persistent: ""
18572
18569
  }, {
18573
18570
  default: x(() => [
18574
18571
  w(f, { class: "" }, {
@@ -18581,14 +18578,14 @@ function Uy(t, e, a, i, o, r) {
18581
18578
  density: "compact",
18582
18579
  icon: "",
18583
18580
  variant: "plain",
18584
- onClick: e[7] || (e[7] = (u) => o.showFormatDialog = !1)
18581
+ onClick: r.handleCloseDialog
18585
18582
  }, {
18586
- default: x(() => e[15] || (e[15] = [
18583
+ default: x(() => e[13] || (e[13] = [
18587
18584
  n("i", { class: "iconfont icon-close text-h4" }, null, -1)
18588
18585
  ])),
18589
18586
  _: 1,
18590
- __: [15]
18591
- })
18587
+ __: [13]
18588
+ }, 8, ["onClick"])
18592
18589
  ]),
18593
18590
  _: 1
18594
18591
  }),
@@ -18599,7 +18596,7 @@ function Uy(t, e, a, i, o, r) {
18599
18596
  n("div", Yy, [
18600
18597
  w(m, {
18601
18598
  modelValue: o.exportFormats,
18602
- "onUpdate:modelValue": e[8] || (e[8] = (u) => o.exportFormats = u),
18599
+ "onUpdate:modelValue": e[7] || (e[7] = (u) => o.exportFormats = u),
18603
18600
  label: "MP4",
18604
18601
  value: "mp4",
18605
18602
  color: "primary",
@@ -18610,7 +18607,7 @@ function Uy(t, e, a, i, o, r) {
18610
18607
  }, null, 8, ["modelValue", "disabled"]),
18611
18608
  w(m, {
18612
18609
  modelValue: o.exportFormats,
18613
- "onUpdate:modelValue": e[9] || (e[9] = (u) => o.exportFormats = u),
18610
+ "onUpdate:modelValue": e[8] || (e[8] = (u) => o.exportFormats = u),
18614
18611
  label: "GIF",
18615
18612
  value: "gif",
18616
18613
  color: "primary",
@@ -18629,13 +18626,13 @@ function Uy(t, e, a, i, o, r) {
18629
18626
  class: "text-none text-body-1",
18630
18627
  height: "32",
18631
18628
  variant: "tonal",
18632
- onClick: e[10] || (e[10] = (u) => o.showFormatDialog = !1)
18629
+ onClick: r.handleCloseDialog
18633
18630
  }, {
18634
18631
  default: x(() => [
18635
18632
  N(b(t.$t("actions.cancel")), 1)
18636
18633
  ]),
18637
18634
  _: 1
18638
- }),
18635
+ }, 8, ["onClick"]),
18639
18636
  w(l, {
18640
18637
  color: "primary",
18641
18638
  variant: "flat",
@@ -18658,10 +18655,10 @@ function Uy(t, e, a, i, o, r) {
18658
18655
  })
18659
18656
  ]),
18660
18657
  _: 1
18661
- }, 8, ["modelValue", "persistent", "onUpdate:modelValue"])
18658
+ }, 8, ["modelValue"])
18662
18659
  ], 32);
18663
18660
  }
18664
- const Jy = /* @__PURE__ */ ne(Fy, [["render", Uy], ["__scopeId", "data-v-5c27dc35"]]);
18661
+ const Jy = /* @__PURE__ */ ne(Fy, [["render", Uy], ["__scopeId", "data-v-516595c5"]]);
18665
18662
  const Ky = {
18666
18663
  name: "IdmBottomBar",
18667
18664
  components: { DateTimePicker: ao, IdmCapture: Jy },
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { B as g, c as n, D as x, L as D, a as T, b as W, M as h, f, e as k, P as y, S as B, T as V, V as d, W as u, d as v } from "./index-47213921.js";
1
+ import { B as g, c as n, D as x, L as D, a as T, b as W, M as h, f, e as k, P as y, S as B, T as V, V as d, W as u, d as v } from "./index-69f72d37.js";
2
2
  import "axios";
3
3
  import "vuetify";
4
4
  import "vue";