@pksep/yui 0.1.220 → 0.1.221
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/sep-yui.es.ts +23 -17
- package/dist/sep-yui.umd.ts +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/sep-yui.es.ts
CHANGED
|
@@ -75373,16 +75373,16 @@ const $Pg = () => {
|
|
|
75373
75373
|
}, m = () => {
|
|
75374
75374
|
Date.now() - r < 300 || (i(), a("close"));
|
|
75375
75375
|
}, b = () => {
|
|
75376
|
-
var
|
|
75377
|
-
(
|
|
75378
|
-
}, G = (
|
|
75379
|
-
|
|
75376
|
+
var y;
|
|
75377
|
+
(y = n.value) == null || y.close(), document.documentElement.focus(), window.removeEventListener("mouseup", B), W();
|
|
75378
|
+
}, G = (y) => {
|
|
75379
|
+
y.key === "Escape" && e.value === n.value && m();
|
|
75380
75380
|
}, Z = () => {
|
|
75381
75381
|
if (document.querySelectorAll(".modal-yui-kit").length === 1)
|
|
75382
75382
|
return window.innerWidth - document.documentElement.clientWidth;
|
|
75383
75383
|
{
|
|
75384
|
-
const
|
|
75385
|
-
return Number(
|
|
75384
|
+
const M = document.body.style.paddingRight;
|
|
75385
|
+
return Number(M.replace(/\D/g, "")) || 0;
|
|
75386
75386
|
}
|
|
75387
75387
|
}, W = () => {
|
|
75388
75388
|
document.querySelectorAll(".modal-yui-kit").length === 0 && qI(
|
|
@@ -75392,45 +75392,51 @@ const $Pg = () => {
|
|
|
75392
75392
|
},
|
|
75393
75393
|
document.body
|
|
75394
75394
|
);
|
|
75395
|
-
}, B = (
|
|
75396
|
-
|
|
75395
|
+
}, B = (y) => {
|
|
75396
|
+
if (y.target === n.value) {
|
|
75397
|
+
if (A.disableCloseOnOutsideClick) return;
|
|
75398
|
+
m();
|
|
75399
|
+
}
|
|
75400
|
+
window.removeEventListener("mouseup", B);
|
|
75401
|
+
}, p = () => {
|
|
75402
|
+
window.removeEventListener("mouseup", B), window.addEventListener("mouseup", B);
|
|
75397
75403
|
};
|
|
75398
75404
|
return g({
|
|
75399
75405
|
closeDialog: b
|
|
75400
75406
|
}), lI(() => {
|
|
75401
75407
|
Ze(() => {
|
|
75402
75408
|
A.open !== l.value && (u(), l.value = A.open, n.value && n.value.focus());
|
|
75403
|
-
}), n.value && n.value.addEventListener("cancel", (
|
|
75404
|
-
|
|
75409
|
+
}), n.value && n.value.addEventListener("cancel", (M) => {
|
|
75410
|
+
M.preventDefault();
|
|
75405
75411
|
});
|
|
75406
|
-
const
|
|
75412
|
+
const y = Z();
|
|
75407
75413
|
qI(
|
|
75408
75414
|
{
|
|
75409
75415
|
overflow: "hidden",
|
|
75410
|
-
"padding-right": `${
|
|
75416
|
+
"padding-right": `${y}px`
|
|
75411
75417
|
},
|
|
75412
75418
|
document.body
|
|
75413
75419
|
), document.addEventListener("keydown", G);
|
|
75414
75420
|
}), EA(() => {
|
|
75415
|
-
W(), document.removeEventListener("keydown", G), a("unmounted");
|
|
75416
|
-
}), (
|
|
75421
|
+
W(), window.removeEventListener("mouseup", B), document.removeEventListener("keydown", G), a("unmounted");
|
|
75422
|
+
}), (y, M) => (x(), U("dialog", a2({
|
|
75417
75423
|
ref_key: "dialog",
|
|
75418
75424
|
ref: n
|
|
75419
75425
|
}, _(s), {
|
|
75420
75426
|
class: ["modal-yui-kit", `modal-yui-kit_${A.position}`],
|
|
75421
75427
|
"data-testid": A.dataTestid,
|
|
75422
|
-
|
|
75428
|
+
onMousedown: eI(p, ["self", "left"])
|
|
75423
75429
|
}), [
|
|
75424
75430
|
$("div", {
|
|
75425
75431
|
class: "modal-yui-kit__modal-content",
|
|
75426
75432
|
style: ue(o.value),
|
|
75427
75433
|
"data-testid": `${A.dataTestid}-ModalContent`
|
|
75428
75434
|
}, [
|
|
75429
|
-
Qg(
|
|
75435
|
+
Qg(y.$slots, "default", {}, void 0, !0)
|
|
75430
75436
|
], 12, I6g)
|
|
75431
75437
|
], 16, g6g));
|
|
75432
75438
|
}
|
|
75433
|
-
}), gv = /* @__PURE__ */ Lg(C6g, [["__scopeId", "data-v-
|
|
75439
|
+
}), gv = /* @__PURE__ */ Lg(C6g, [["__scopeId", "data-v-c8dd59d1"]]), e6g = /* @__PURE__ */ sg({
|
|
75434
75440
|
__name: "ModalAnimated",
|
|
75435
75441
|
props: {
|
|
75436
75442
|
animateType: {},
|