sep-yui 0.0.79 → 0.0.80

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.
@@ -9593,7 +9593,7 @@ const sE = /* @__PURE__ */ oe({
9593
9593
  Be(t.$slots, "default", {}, void 0, !0)
9594
9594
  ]));
9595
9595
  }
9596
- }), Wh = /* @__PURE__ */ be(uE, [["__scopeId", "data-v-449d7352"]]), cE = { class: "dnd-yui-kit__span" }, dE = ["multiple"], fE = /* @__PURE__ */ oe({
9596
+ }), Wh = /* @__PURE__ */ be(uE, [["__scopeId", "data-v-df8ffe69"]]), cE = { class: "dnd-yui-kit__span" }, dE = ["multiple"], fE = /* @__PURE__ */ oe({
9597
9597
  __name: "DragAndDrop",
9598
9598
  props: {
9599
9599
  singleFileMode: { type: Boolean, default: !1 },
@@ -15124,29 +15124,31 @@ const NH = /* @__PURE__ */ oe({
15124
15124
  const r = e, i = ie(null), a = W0(), l = ie(!1), u = T(() => ({
15125
15125
  width: r.width,
15126
15126
  height: r.height
15127
- })), c = t, f = () => {
15128
- var C;
15129
- r.open ? (C = i.value) == null || C.showModal() : h();
15130
- }, h = () => {
15131
- var C;
15132
- (C = i.value) == null || C.close(), c("close"), document.documentElement.focus();
15133
- }, p = (C) => {
15134
- C.key === "Escape" && h();
15135
- }, m = () => window.innerWidth - document.documentElement.clientWidth;
15136
- return Pa(i, "mousedown", (C) => {
15137
- C.target === i.value && h();
15127
+ })), c = t;
15128
+ let f = 0;
15129
+ const h = () => {
15130
+ var g;
15131
+ f = Date.now(), r.open ? (g = i.value) == null || g.showModal() : p();
15132
+ }, p = () => {
15133
+ var b;
15134
+ Date.now() - f < 300 || ((b = i.value) == null || b.close(), c("close"), document.documentElement.focus());
15135
+ }, m = (g) => {
15136
+ g.key === "Escape" && p();
15137
+ }, C = () => window.innerWidth - document.documentElement.clientWidth;
15138
+ return Pa(i, "mousedown", (g) => {
15139
+ g.target === i.value && p();
15138
15140
  }), ze(() => {
15139
15141
  It(() => {
15140
- r.open !== l.value && (f(), l.value = r.open);
15142
+ r.open !== l.value && (h(), l.value = r.open);
15141
15143
  });
15142
- const C = m();
15144
+ const g = C();
15143
15145
  is(
15144
15146
  {
15145
15147
  overflow: "hidden",
15146
- "padding-right": `${C}px`
15148
+ "padding-right": `${g}px`
15147
15149
  },
15148
15150
  document.body
15149
- ), document.addEventListener("keydown", p);
15151
+ ), document.addEventListener("keydown", m);
15150
15152
  }), ai(() => {
15151
15153
  is(
15152
15154
  {
@@ -15154,8 +15156,8 @@ const NH = /* @__PURE__ */ oe({
15154
15156
  "padding-right": ""
15155
15157
  },
15156
15158
  document.body
15157
- ), document.removeEventListener("keydown", p);
15158
- }), (C, g) => ($(), P("dialog", kr({
15159
+ ), document.removeEventListener("keydown", m);
15160
+ }), (g, b) => ($(), P("dialog", kr({
15159
15161
  ref_key: "dialog",
15160
15162
  ref: i
15161
15163
  }, L(a), { class: "modal-yui-kit" }), [
@@ -15163,11 +15165,11 @@ const NH = /* @__PURE__ */ oe({
15163
15165
  class: "modal-yui-kit__modal-content",
15164
15166
  style: Pt(u.value)
15165
15167
  }, [
15166
- Be(C.$slots, "default", {}, void 0, !0)
15168
+ Be(g.$slots, "default", {}, void 0, !0)
15167
15169
  ], 4)
15168
15170
  ], 16));
15169
15171
  }
15170
- }), jH = /* @__PURE__ */ be(NH, [["__scopeId", "data-v-31ed5bc3"]]), UH = /* @__PURE__ */ oe({
15172
+ }), jH = /* @__PURE__ */ be(NH, [["__scopeId", "data-v-dd32bee0"]]), UH = /* @__PURE__ */ oe({
15171
15173
  __name: "ModalAnimated",
15172
15174
  props: {
15173
15175
  open: { type: Boolean },