@v1nt1248/3nclient-lib 0.1.29 → 0.1.30
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/ui3n-components.js
CHANGED
|
@@ -13210,9 +13210,13 @@ const qf = /* @__PURE__ */ Cg({
|
|
|
13210
13210
|
const { ev: U, withAction: k = !0 } = S || {};
|
|
13211
13211
|
U && (U.stopImmediatePropagation(), U.preventDefault()), i.value = !1, (m = I.dialogProps) != null && m.onClose && I.dialogProps.onClose(), k && C("close");
|
|
13212
13212
|
}
|
|
13213
|
-
function r(S) {
|
|
13214
|
-
var
|
|
13215
|
-
S === "click-overlay"
|
|
13213
|
+
function r(S, U) {
|
|
13214
|
+
var k, m;
|
|
13215
|
+
if (S === "click-overlay") {
|
|
13216
|
+
C(S), a.value.closeOnClickOverlay && h({ ev: U });
|
|
13217
|
+
return;
|
|
13218
|
+
}
|
|
13219
|
+
S === "confirm" && ((k = I.dialogProps) != null && k.onConfirm && I.dialogProps.onConfirm(e.value), h()), S === "cancel" && ((m = I.dialogProps) != null && m.onCancel && I.dialogProps.onCancel(e.value), h()), e.value ? C(S, e.value) : C(S);
|
|
13216
13220
|
}
|
|
13217
13221
|
function M(S, U) {
|
|
13218
13222
|
S.stopImmediatePropagation(), S.preventDefault(), r(U);
|
|
@@ -13220,7 +13224,7 @@ const qf = /* @__PURE__ */ Cg({
|
|
|
13220
13224
|
return (S, U) => i.value ? (iA(), DA("div", {
|
|
13221
13225
|
key: 0,
|
|
13222
13226
|
class: QA(S.$style.overlay),
|
|
13223
|
-
onClick: U[11] || (U[11] = (k) =>
|
|
13227
|
+
onClick: U[11] || (U[11] = (k) => r("click-overlay", k))
|
|
13224
13228
|
}, [
|
|
13225
13229
|
RA("div", {
|
|
13226
13230
|
ref_key: "dialogElement",
|