@qikdev/vue-ui 0.3.13 → 0.3.14
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 +25 -21
- 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.14";
|
|
8
8
|
class yn extends Error {
|
|
9
9
|
}
|
|
10
10
|
class Kh extends yn {
|
|
@@ -24845,7 +24845,7 @@ const iM = {
|
|
|
24845
24845
|
if (e.$sdk.utils.getAllFields)
|
|
24846
24846
|
return e.$sdk.utils.getAllFields(t);
|
|
24847
24847
|
const r = t.definesType === "submission";
|
|
24848
|
-
var s = [...t.fields], i = n ? n.fields : t.definedFields || [];
|
|
24848
|
+
var s = [...t.fields || []], i = n ? n.fields : t.definedFields || [];
|
|
24849
24849
|
if (i.length)
|
|
24850
24850
|
if (r) {
|
|
24851
24851
|
var a = {
|
|
@@ -25025,7 +25025,7 @@ function dM(e, t, n, r, s, i) {
|
|
|
25025
25025
|
}, null, 8, ["onTouched", "field", "modelValue"]))
|
|
25026
25026
|
], 2);
|
|
25027
25027
|
}
|
|
25028
|
-
const Ec = /* @__PURE__ */ M(iM, [["render", dM], ["__scopeId", "data-v-
|
|
25028
|
+
const Ec = /* @__PURE__ */ M(iM, [["render", dM], ["__scopeId", "data-v-3c1cc501"]]);
|
|
25029
25029
|
function cM(e, t, n) {
|
|
25030
25030
|
return e + (t - e) * (n / 100);
|
|
25031
25031
|
}
|
|
@@ -26614,10 +26614,14 @@ const MV = /* @__PURE__ */ M(xV, [["render", EV], ["__scopeId", "data-v-aae5394a
|
|
|
26614
26614
|
}), e;
|
|
26615
26615
|
},
|
|
26616
26616
|
fields() {
|
|
26617
|
-
|
|
26617
|
+
var l;
|
|
26618
|
+
const e = this;
|
|
26619
|
+
if (!((l = e.definition) != null && l.fields))
|
|
26620
|
+
return [];
|
|
26621
|
+
const t = e.definition.definesType === "submission";
|
|
26618
26622
|
var n = [...e.definition.fields], r = (e.definition.definedFields || []).map(
|
|
26619
|
-
function(
|
|
26620
|
-
return
|
|
26623
|
+
function(u) {
|
|
26624
|
+
return u = { ...u }, u.batchEditable = !0, u;
|
|
26621
26625
|
}
|
|
26622
26626
|
);
|
|
26623
26627
|
if (r.length)
|
|
@@ -26639,8 +26643,8 @@ const MV = /* @__PURE__ */ M(xV, [["render", EV], ["__scopeId", "data-v-aae5394a
|
|
|
26639
26643
|
key: "data",
|
|
26640
26644
|
asObject: !0,
|
|
26641
26645
|
type: "group",
|
|
26642
|
-
fields: r.map(function(
|
|
26643
|
-
return
|
|
26646
|
+
fields: r.map(function(d) {
|
|
26647
|
+
return d.type === "reference" && (d = JSON.parse(JSON.stringify(d)), delete d.fields), d;
|
|
26644
26648
|
})
|
|
26645
26649
|
};
|
|
26646
26650
|
n.push(i);
|
|
@@ -26656,16 +26660,16 @@ const MV = /* @__PURE__ */ M(xV, [["render", EV], ["__scopeId", "data-v-aae5394a
|
|
|
26656
26660
|
};
|
|
26657
26661
|
n.push(i);
|
|
26658
26662
|
}
|
|
26659
|
-
var a = e.$sdk.utils.mapFields(n).filter(function(
|
|
26660
|
-
var
|
|
26661
|
-
return !
|
|
26662
|
-
}).filter(function(
|
|
26663
|
-
return
|
|
26664
|
-
}).map(function(
|
|
26665
|
-
return
|
|
26666
|
-
}).sort(function(
|
|
26667
|
-
const
|
|
26668
|
-
return
|
|
26663
|
+
var a = e.$sdk.utils.mapFields(n).filter(function(u) {
|
|
26664
|
+
var d = u.type == "group" && u.asObject && u.minimum == 1 && u.maximum == 1;
|
|
26665
|
+
return !d;
|
|
26666
|
+
}).filter(function(u) {
|
|
26667
|
+
return u.trail[0] === "fields" || u.readOnly ? !1 : u.batchEditable != !1;
|
|
26668
|
+
}).map(function(u) {
|
|
26669
|
+
return u.title = u.titles.filter(Boolean).join(" › "), u.key = "value", u;
|
|
26670
|
+
}).sort(function(u, d) {
|
|
26671
|
+
const m = u.filterTitle || u.title, p = d.filterTitle || d.title;
|
|
26672
|
+
return m < p ? -1 : 1;
|
|
26669
26673
|
});
|
|
26670
26674
|
return a;
|
|
26671
26675
|
}
|
|
@@ -26757,7 +26761,7 @@ function LV(e, t, n, r, s, i) {
|
|
|
26757
26761
|
], 2))), 256))
|
|
26758
26762
|
])) : _("", !0);
|
|
26759
26763
|
}
|
|
26760
|
-
const RV = /* @__PURE__ */ M(VV, [["render", LV], ["__scopeId", "data-v-
|
|
26764
|
+
const RV = /* @__PURE__ */ M(VV, [["render", LV], ["__scopeId", "data-v-9e2045bf"]]), UV = {
|
|
26761
26765
|
props: {
|
|
26762
26766
|
modelValue: {
|
|
26763
26767
|
type: [String, Array]
|
|
@@ -29383,7 +29387,7 @@ const dA = /* @__PURE__ */ M(tA, [["render", uA], ["__scopeId", "data-v-8801d1a0
|
|
|
29383
29387
|
const e = this;
|
|
29384
29388
|
if (!e.definition)
|
|
29385
29389
|
return [];
|
|
29386
|
-
let t = e.definition.fields.filter(function(n) {
|
|
29390
|
+
let t = (e.definition.fields || []).filter(function(n) {
|
|
29387
29391
|
return !n.readOnly;
|
|
29388
29392
|
}).map(function(n) {
|
|
29389
29393
|
switch (n.key) {
|
|
@@ -29588,7 +29592,7 @@ function yA(e, t, n, r, s, i) {
|
|
|
29588
29592
|
})
|
|
29589
29593
|
]);
|
|
29590
29594
|
}
|
|
29591
|
-
const gA = /* @__PURE__ */ M(cA, [["render", yA], ["__scopeId", "data-v-
|
|
29595
|
+
const gA = /* @__PURE__ */ M(cA, [["render", yA], ["__scopeId", "data-v-192c1fbd"]]), _A = {
|
|
29592
29596
|
props: {
|
|
29593
29597
|
modelValue: {
|
|
29594
29598
|
type: Object
|