@qikdev/vue-ui 0.3.30 → 0.3.31
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 +12 -7
- package/dist/lib.es.js.map +1 -1
- package/dist/lib.umd.js +2 -2
- package/dist/lib.umd.js.map +1 -1
- package/dist/vue-ui.css +1 -1
- package/package.json +1 -1
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.
|
|
7
|
+
const Jh = "0.3.31";
|
|
8
8
|
class yn extends Error {
|
|
9
9
|
}
|
|
10
10
|
class Kh extends yn {
|
|
@@ -31814,8 +31814,8 @@ const Ch = /* @__PURE__ */ M(BA, [["render", zA], ["__scopeId", "data-v-e6afec75
|
|
|
31814
31814
|
computed: {
|
|
31815
31815
|
selectedGateway() {
|
|
31816
31816
|
var t, n, r, s;
|
|
31817
|
-
if ((n = (t = this.
|
|
31818
|
-
return (s = (r = this.
|
|
31817
|
+
if ((n = (t = this.model) == null ? void 0 : t._payment) != null && n.gateway)
|
|
31818
|
+
return (s = (r = this.model) == null ? void 0 : r._payment) == null ? void 0 : s.gateway;
|
|
31819
31819
|
const e = this.gateways.filter(Boolean);
|
|
31820
31820
|
if (e.length === 1)
|
|
31821
31821
|
return e[0];
|
|
@@ -31937,12 +31937,17 @@ const Ch = /* @__PURE__ */ M(BA, [["render", zA], ["__scopeId", "data-v-e6afec75
|
|
|
31937
31937
|
return this.buttonDisabled ? "Please check the errors in your form" : void 0;
|
|
31938
31938
|
},
|
|
31939
31939
|
buttonDisabled() {
|
|
31940
|
-
return this.preview ? !0 : this.noGatewaySelectedButPaymentIsRequired ? (console.
|
|
31940
|
+
return this.preview ? !0 : this.noGatewaySelectedButPaymentIsRequired ? (console.log(
|
|
31941
|
+
"NO GATEWAY SELECTED",
|
|
31942
|
+
this.total,
|
|
31943
|
+
this.gateways,
|
|
31944
|
+
this.selectedGateway
|
|
31945
|
+
), console.error(
|
|
31941
31946
|
"Error: There is no payment gateway selected but payment is required"
|
|
31942
31947
|
), !0) : this.submitAttempted && this.invalid;
|
|
31943
31948
|
},
|
|
31944
31949
|
noGatewaySelectedButPaymentIsRequired() {
|
|
31945
|
-
return this.total
|
|
31950
|
+
return !(!this.total || this.selectedGateway);
|
|
31946
31951
|
},
|
|
31947
31952
|
invalid() {
|
|
31948
31953
|
var t;
|
|
@@ -31961,7 +31966,7 @@ const Ch = /* @__PURE__ */ M(BA, [["render", zA], ["__scopeId", "data-v-e6afec75
|
|
|
31961
31966
|
return ((e = this.form) == null ? void 0 : e.fields) || [];
|
|
31962
31967
|
}
|
|
31963
31968
|
}
|
|
31964
|
-
}, Eh = (e) => (je("data-v-
|
|
31969
|
+
}, Eh = (e) => (je("data-v-2d75efd5"), e = e(), qe(), e), YA = /* @__PURE__ */ Eh(() => /* @__PURE__ */ T("h3", null, "An error occurred", -1)), JA = { key: 0 }, KA = { key: 1 }, ZA = { key: 2 }, XA = { class: "intent-submit" }, QA = {
|
|
31965
31970
|
key: 0,
|
|
31966
31971
|
class: "multistep-form"
|
|
31967
31972
|
}, eN = { class: "multistep-form-sections" }, tN = { class: "multistep-fields" }, nN = { class: "multistep-controls" }, iN = ["tooltip"], rN = ["tooltip"], sN = { class: "multistep-progress" }, aN = {
|
|
@@ -32191,7 +32196,7 @@ function uN(e, t, n, r, s, i) {
|
|
|
32191
32196
|
], 64))
|
|
32192
32197
|
], 2);
|
|
32193
32198
|
}
|
|
32194
|
-
const dN = /* @__PURE__ */ M(GA, [["render", uN], ["__scopeId", "data-v-
|
|
32199
|
+
const dN = /* @__PURE__ */ M(GA, [["render", uN], ["__scopeId", "data-v-2d75efd5"]]), cN = "init", zc = "ready", fN = "processing", mN = "success", hN = "error", pN = {
|
|
32195
32200
|
name: "PaymentMethodForm",
|
|
32196
32201
|
components: {
|
|
32197
32202
|
StripeElements: mm,
|