@snabcentr/vue-ui-lib 6.0.3 → 6.0.4

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.
@@ -2273,7 +2273,10 @@ var ma = it({
2273
2273
  i("closing", e, () => {
2274
2274
  n = !0;
2275
2275
  }), n || (a.value = !1, i("update:show", a.value));
2276
- }, f = () => {
2276
+ }, f = R(null), p = (e) => {
2277
+ let t = f.value?.containerRef, n = e.composedPath()[0] ?? e.target;
2278
+ t && n instanceof Node && !t.contains(n) || d("mask");
2279
+ }, m = () => {
2277
2280
  i("accept", (e) => {
2278
2281
  o.value = e;
2279
2282
  });
@@ -2285,10 +2288,12 @@ var ma = it({
2285
2288
  }), t({
2286
2289
  open: u,
2287
2290
  close: d,
2288
- acceptHandler: f
2291
+ acceptHandler: m
2289
2292
  }), (t, n) => {
2290
2293
  let r = nn, i = Cn;
2291
2294
  return L(), k(i, {
2295
+ ref_key: "modalReference",
2296
+ ref: f,
2292
2297
  loading: o.value,
2293
2298
  show: a.value,
2294
2299
  "show-icon": !1,
@@ -2300,7 +2305,7 @@ var ma = it({
2300
2305
  preset: "dialog",
2301
2306
  onClose: n[1] ||= (e) => d("header"),
2302
2307
  onEsc: n[2] ||= (e) => d("esc"),
2303
- onMaskClick: n[3] ||= (e) => d("mask")
2308
+ onMaskClick: p
2304
2309
  }, $e({
2305
2310
  default: U(() => [z(t.$slots, "default")]),
2306
2311
  _: 2
@@ -2318,7 +2323,7 @@ var ma = it({
2318
2323
  loading: o.value,
2319
2324
  size: V(s),
2320
2325
  type: "primary",
2321
- onClick: f
2326
+ onClick: m
2322
2327
  }, {
2323
2328
  default: U(() => [N(B(e.acceptButton.text ?? "ОК"), 1)]),
2324
2329
  _: 1