@qikdev/vue-ui 0.3.16 → 0.3.18

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/lib.es.js CHANGED
@@ -4,7 +4,7 @@ var Uh = (e, t, n) => t in e ? Rh(e, t, { enumerable: !0, configurable: !0, writ
4
4
  var ie = (e, t, n) => Uh(e, typeof t != "symbol" ? t + "" : t, n);
5
5
  import { reactive as Gt, defineComponent as Fl, ref as vt, toRefs as of, onMounted as Al, onBeforeUnmount as jh, watch as cr, computed as Fn, createElementBlock as h, openBlock as o, createCommentVNode as _, renderSlot as z, normalizeClass as $, useSlots as qh, provide as Mr, resolveComponent as y, createVNode as c, Fragment as D, createBlock as k, unref as gt, withCtx as f, renderList as A, toDisplayString as b, createTextVNode as O, withDirectives as Z, vShow as ci, withModifiers as B, createElementVNode as T, h as dl, mergeProps as mt, toHandlers as kt, normalizeStyle as Ge, resolveDirective as uf, resolveDynamicComponent as Vt, vModelSelect as Dt, pushScopeId as je, popScopeId as qe, getCurrentScope as Bh, onScopeDispose as zh, getCurrentInstance as Wh, Teleport as df, Transition as Hh, withKeys as we, vModelText as be, TransitionGroup as Gh, nextTick as cf, vModelDynamic as Sn, normalizeProps as ff, guardReactiveProps as Yh } from "vue";
6
6
  import { EventDispatcher as mf } from "@qikdev/sdk";
7
- const Jh = "0.3.16";
7
+ const Jh = "0.3.17";
8
8
  class yn extends Error {
9
9
  }
10
10
  class Kh extends yn {
@@ -34633,8 +34633,9 @@ const Y$ = /* @__PURE__ */ M(U$, [["render", G$], ["__scopeId", "data-v-b0fd455a
34633
34633
  return {};
34634
34634
  },
34635
34635
  methods: {
34636
- blanketClick() {
34637
- this.dismiss();
34636
+ async blanketClick() {
34637
+ const e = this.$refs.content;
34638
+ e != null && e.beforeDismiss && !await e.beforeDismiss() || this.dismiss();
34638
34639
  },
34639
34640
  dismiss(e) {
34640
34641
  this.$sdk.closeModal(this.modal.id), this.modal.reject(e);
@@ -34664,6 +34665,7 @@ function Z$(e, t, n, r, s, i) {
34664
34665
  style: Ge(i.style)
34665
34666
  }, [
34666
34667
  (o(), k(Vt(n.modal.component), mt({
34668
+ ref: "content",
34667
34669
  options: n.modal.options
34668
34670
  }, i.componentProps, {
34669
34671
  onClose: i.close,
@@ -34672,7 +34674,7 @@ function Z$(e, t, n, r, s, i) {
34672
34674
  ], 4)
34673
34675
  ]);
34674
34676
  }
34675
- const X$ = /* @__PURE__ */ M(J$, [["render", Z$], ["__scopeId", "data-v-90c28992"]]), Q$ = {
34677
+ const X$ = /* @__PURE__ */ M(J$, [["render", Z$], ["__scopeId", "data-v-587df690"]]), Q$ = {
34676
34678
  mixins: [wn],
34677
34679
  computed: {
34678
34680
  confirmText() {