@qikdev/vue-ui 0.2.88 → 0.2.91
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 +32 -14
- package/dist/lib.es.js.map +1 -1
- package/dist/lib.umd.js +3 -3
- package/dist/lib.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/lib.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import './style.css';
|
|
2
2
|
import { defineComponent as ki, ref as Kt, toRefs as oa, onMounted as ua, onBeforeUnmount as So, watch as xi, computed as ai, openBlock as o, createElementBlock as d, renderSlot as q, createCommentVNode as _, useSlots as Oo, reactive as kr, provide as Fr, resolveComponent as y, normalizeClass as P, Fragment as S, unref as jn, createBlock as k, withCtx as h, createVNode as m, renderList as $, toDisplayString as b, withModifiers as W, createTextVNode as O, createElementVNode as w, h as li, resolveDynamicComponent as xt, mergeProps as wi, toHandlers as da, withDirectives as K, vModelSelect as wt, pushScopeId as st, popScopeId as at, normalizeStyle as St, Teleport as To, vModelText as pe, withKeys as ge, TransitionGroup as Eo, nextTick as ca, vModelDynamic as Rn, vShow as qi } from "vue";
|
|
3
3
|
import { EventDispatcher as Co } from "@qikdev/sdk";
|
|
4
|
-
const Vo = "0.2.
|
|
4
|
+
const Vo = "0.2.91", lr = {
|
|
5
5
|
STRIPE_NOT_LOADED: "Stripe v3 library is not loaded",
|
|
6
6
|
INSTANCE_NOT_DEFINED: "Instance object is not defined. Make sure you initialized Stripe before creating elements",
|
|
7
7
|
ELEMENTS_NOT_DEFINED: "Elements object is not defined. You can't create stripe element without it",
|
|
@@ -11595,7 +11595,8 @@ function ab(e, t, n, i, s, r) {
|
|
|
11595
11595
|
const lb = /* @__PURE__ */ E(sb, [["render", ab], ["__scopeId", "data-v-5472184b"]]);
|
|
11596
11596
|
const ob = {
|
|
11597
11597
|
async created() {
|
|
11598
|
-
|
|
11598
|
+
const e = await this.$sdk.content.scopeGlossary({ hash: !0 });
|
|
11599
|
+
this.scopeGlossary = e, this.loadingScopeGlossary = !1;
|
|
11599
11600
|
},
|
|
11600
11601
|
props: {
|
|
11601
11602
|
action: {
|
|
@@ -11614,7 +11615,8 @@ const ob = {
|
|
|
11614
11615
|
data() {
|
|
11615
11616
|
return {
|
|
11616
11617
|
scopeGlossary: {},
|
|
11617
|
-
|
|
11618
|
+
loadingScopeGlossary: !0,
|
|
11619
|
+
loadingContentGlossary: !0,
|
|
11618
11620
|
model: this.modelValue,
|
|
11619
11621
|
definition: null
|
|
11620
11622
|
};
|
|
@@ -11630,6 +11632,9 @@ const ob = {
|
|
|
11630
11632
|
}
|
|
11631
11633
|
},
|
|
11632
11634
|
computed: {
|
|
11635
|
+
loading() {
|
|
11636
|
+
return this.loadingScopeGlossary || this.loadingContentGlossary;
|
|
11637
|
+
},
|
|
11633
11638
|
cacheKey() {
|
|
11634
11639
|
return this.user.cacheKey;
|
|
11635
11640
|
},
|
|
@@ -11644,8 +11649,12 @@ const ob = {
|
|
|
11644
11649
|
}).join(", ") : "Select Scopes";
|
|
11645
11650
|
},
|
|
11646
11651
|
definitionDefaultScopes() {
|
|
11647
|
-
var
|
|
11648
|
-
|
|
11652
|
+
var i;
|
|
11653
|
+
const e = this, t = (i = e.definition) == null ? void 0 : i.defaultScopes;
|
|
11654
|
+
if (t && t.length)
|
|
11655
|
+
return [...t];
|
|
11656
|
+
const n = Object.keys(e.scopeGlossary);
|
|
11657
|
+
return n.length === 1 ? [...n] : [];
|
|
11649
11658
|
},
|
|
11650
11659
|
definitionRestrictScopes() {
|
|
11651
11660
|
var e;
|
|
@@ -11673,7 +11682,7 @@ const ob = {
|
|
|
11673
11682
|
watch: {
|
|
11674
11683
|
availableDefaultScopes: {
|
|
11675
11684
|
handler(e) {
|
|
11676
|
-
|
|
11685
|
+
this.model.length || e.length && (this.model = [...e]);
|
|
11677
11686
|
},
|
|
11678
11687
|
immediate: !0
|
|
11679
11688
|
},
|
|
@@ -11685,27 +11694,36 @@ const ob = {
|
|
|
11685
11694
|
},
|
|
11686
11695
|
type: {
|
|
11687
11696
|
async handler(e) {
|
|
11688
|
-
const t = this
|
|
11689
|
-
t.
|
|
11697
|
+
const t = this;
|
|
11698
|
+
t.loadingContentGlossary = !0;
|
|
11699
|
+
const n = await this.$sdk.content.glossary({ hash: !0 });
|
|
11700
|
+
t.definition = n[e], t.loadingContentGlossary = !1;
|
|
11690
11701
|
},
|
|
11691
11702
|
immediate: !0
|
|
11692
11703
|
}
|
|
11693
11704
|
}
|
|
11694
11705
|
};
|
|
11695
11706
|
function ub(e, t, n, i, s, r) {
|
|
11696
|
-
const a = y("ux-button");
|
|
11707
|
+
const a = y("ux-icon"), l = y("ux-button");
|
|
11697
11708
|
return o(), d("div", null, [
|
|
11698
|
-
m(
|
|
11709
|
+
m(l, { onClick: r.openSelection }, {
|
|
11699
11710
|
default: h(() => [
|
|
11700
11711
|
w("span", {
|
|
11701
11712
|
class: P({ "empty-text": r.empty })
|
|
11702
|
-
}, b(r.summary), 3)
|
|
11713
|
+
}, b(r.summary), 3),
|
|
11714
|
+
O(),
|
|
11715
|
+
r.loading ? (o(), k(a, {
|
|
11716
|
+
key: 0,
|
|
11717
|
+
right: "",
|
|
11718
|
+
icon: "fa-spinner",
|
|
11719
|
+
spin: ""
|
|
11720
|
+
})) : _("", !0)
|
|
11703
11721
|
]),
|
|
11704
11722
|
_: 1
|
|
11705
11723
|
}, 8, ["onClick"])
|
|
11706
11724
|
]);
|
|
11707
11725
|
}
|
|
11708
|
-
const db = /* @__PURE__ */ E(ob, [["render", ub], ["__scopeId", "data-v-
|
|
11726
|
+
const db = /* @__PURE__ */ E(ob, [["render", ub], ["__scopeId", "data-v-f83c09f7"]]);
|
|
11709
11727
|
function cb(e) {
|
|
11710
11728
|
return e === void 0 || typeof e > "u" || e === null || String(e) === "null" || String(e) === "undefined";
|
|
11711
11729
|
}
|
|
@@ -18803,7 +18821,7 @@ const tT = {
|
|
|
18803
18821
|
},
|
|
18804
18822
|
watch: {
|
|
18805
18823
|
modelValue(e, t) {
|
|
18806
|
-
this.value = e;
|
|
18824
|
+
console.log("Model value changed", e, t), this.value = e;
|
|
18807
18825
|
}
|
|
18808
18826
|
},
|
|
18809
18827
|
computed: {
|
|
@@ -18846,7 +18864,7 @@ function iT(e, t, n, i, s, r) {
|
|
|
18846
18864
|
])
|
|
18847
18865
|
]);
|
|
18848
18866
|
}
|
|
18849
|
-
const po = /* @__PURE__ */ E(tT, [["render", iT], ["__scopeId", "data-v-
|
|
18867
|
+
const po = /* @__PURE__ */ E(tT, [["render", iT], ["__scopeId", "data-v-41858ddc"]]), sT = {
|
|
18850
18868
|
props: {
|
|
18851
18869
|
field: {
|
|
18852
18870
|
type: Object,
|