@deskhero/dh_ui 2.3.1 → 2.3.2

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/dh_ui.es.js CHANGED
@@ -17764,11 +17764,18 @@ const Y2 = { class: "dh-body-1-medium" }, _2 = /* @__PURE__ */ Nt(" Content "),
17764
17764
  const n = i, e = te(!1), r = te(null), t = te(0);
17765
17765
  Mt(
17766
17766
  () => n.isAdvancedSettingsOpen,
17767
- (a) => {
17768
- e.value = a;
17767
+ (s) => {
17768
+ e.value !== s && o();
17769
17769
  }
17770
17770
  );
17771
17771
  function o() {
17772
+ if (n.type === "regular") {
17773
+ a();
17774
+ return;
17775
+ }
17776
+ e.value = !e.value;
17777
+ }
17778
+ function a() {
17772
17779
  e.value ? (t.value = 0, setTimeout(() => {
17773
17780
  e.value = !1;
17774
17781
  }, 300)) : (e.value = !0, wn(() => {
@@ -17776,8 +17783,8 @@ const Y2 = { class: "dh-body-1-medium" }, _2 = /* @__PURE__ */ Nt(" Content "),
17776
17783
  }));
17777
17784
  }
17778
17785
  return rt(() => {
17779
- e.value = n.isAdvancedSettingsOpen;
17780
- }), (a, s) => (W(), $(be, null, [
17786
+ e.value !== n.isAdvancedSettingsOpen && o();
17787
+ }), (s, u) => (W(), $(be, null, [
17781
17788
  n.type === "mini" ? (W(), $(be, { key: 0 }, [
17782
17789
  V("div", {
17783
17790
  class: le(["advanced-panel-header clickable", {
@@ -17785,7 +17792,7 @@ const Y2 = { class: "dh-body-1-medium" }, _2 = /* @__PURE__ */ Nt(" Content "),
17785
17792
  closed: !e.value
17786
17793
  }]),
17787
17794
  "data-e2e": "expansion-panel-button",
17788
- onClick: s[0] || (s[0] = (u) => o())
17795
+ onClick: u[0] || (u[0] = (l) => o())
17789
17796
  }, [
17790
17797
  V("h4", Y2, ye(i.title), 1),
17791
17798
  Ce(Ue, {
@@ -17794,13 +17801,13 @@ const Y2 = { class: "dh-body-1-medium" }, _2 = /* @__PURE__ */ Nt(" Content "),
17794
17801
  size: 24
17795
17802
  }, null, 8, ["icon-name"])
17796
17803
  ], 2),
17797
- e.value ? de(a.$slots, "content", { key: 0 }, () => [
17804
+ e.value ? de(s.$slots, "content", { key: 0 }, () => [
17798
17805
  _2
17799
17806
  ], !0) : J("", !0)
17800
17807
  ], 64)) : J("", !0),
17801
17808
  n.type === "regular" ? (W(), $("div", U2, [
17802
17809
  V("button", {
17803
- onClick: s[1] || (s[1] = (u) => o()),
17810
+ onClick: u[1] || (u[1] = (l) => o()),
17804
17811
  class: "panel-button"
17805
17812
  }, [
17806
17813
  V("h4", P2, ye(i.title), 1),
@@ -17821,13 +17828,13 @@ const Y2 = { class: "dh-body-1-medium" }, _2 = /* @__PURE__ */ Nt(" Content "),
17821
17828
  height: t.value > 0 ? t.value + "px" : 0
17822
17829
  })
17823
17830
  }, [
17824
- de(a.$slots, "content", {}, void 0, !0)
17831
+ de(s.$slots, "content", {}, void 0, !0)
17825
17832
  ], 4)) : J("", !0)
17826
17833
  ])) : J("", !0)
17827
17834
  ], 64));
17828
17835
  }
17829
17836
  });
17830
- const Ok = /* @__PURE__ */ Lt(R2, [["__scopeId", "data-v-57e246f0"]]);
17837
+ const Ok = /* @__PURE__ */ Lt(R2, [["__scopeId", "data-v-19c94df2"]]);
17831
17838
  const Z2 = /* @__PURE__ */ V("label", { for: "upload_pdf" }, [
17832
17839
  /* @__PURE__ */ Nt(" Drag and drop file or "),
17833
17840
  /* @__PURE__ */ V("span", { id: "upload" }, "browse")