@qikdev/vue-ui 0.2.192 → 0.2.196
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 +15 -11
- package/dist/lib.es.js.map +1 -1
- package/dist/lib.umd.js +1 -1
- 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 Vr, ref as Jt, toRefs as xa, onMounted as wa, onBeforeUnmount as qo, watch as Er, computed as fr, openBlock as o, createElementBlock as d, renderSlot as q, createCommentVNode as _, normalizeClass as L, useSlots as Wo, reactive as Ti, provide as Li, resolveComponent as y, Fragment as S, unref as zn, createBlock as k, withCtx as h, createVNode as m, renderList as F, toDisplayString as v, withDirectives as Y, vShow as di, createElementVNode as x, withModifiers as z, createTextVNode as T, h as mr, mergeProps as Oi, toHandlers as Ar, normalizeStyle as He, resolveDynamicComponent as ft, vModelSelect as Tt, pushScopeId as qe, popScopeId as We, Teleport as Go, vModelText as ae, withKeys as ge, TransitionGroup as Ko, nextTick as Sa, vModelDynamic as Hn } from "vue";
|
|
3
3
|
import { EventDispatcher as Yo } from "@qikdev/sdk";
|
|
4
|
-
const Zo = "0.2.
|
|
4
|
+
const Zo = "0.2.196";
|
|
5
5
|
class Pt extends Error {
|
|
6
6
|
}
|
|
7
7
|
class Jo extends Pt {
|
|
@@ -7084,6 +7084,8 @@ const ie = {
|
|
|
7084
7084
|
if (this.field.asyncOptionsURL)
|
|
7085
7085
|
return !0;
|
|
7086
7086
|
if (this.field.type === "reference") {
|
|
7087
|
+
if (this.field.allowedReferences.length)
|
|
7088
|
+
return !1;
|
|
7087
7089
|
switch (this.field.widget) {
|
|
7088
7090
|
case "select":
|
|
7089
7091
|
break;
|
|
@@ -7125,20 +7127,19 @@ const ie = {
|
|
|
7125
7127
|
},
|
|
7126
7128
|
options() {
|
|
7127
7129
|
var e = this;
|
|
7128
|
-
if (e.hasAsyncOptions)
|
|
7129
|
-
return e.dynamicOptions;
|
|
7130
7130
|
if (e.field.type === "reference") {
|
|
7131
7131
|
const t = (e.field.allowedReferences || []).filter(Boolean);
|
|
7132
7132
|
if (t.length)
|
|
7133
|
-
return t.map(function(
|
|
7134
|
-
|
|
7135
|
-
|
|
7136
|
-
|
|
7137
|
-
|
|
7133
|
+
return t.map(function(n) {
|
|
7134
|
+
let { _id: r, title: s } = n;
|
|
7135
|
+
return s = s || [n.firstName, n.lastName].filter(Boolean).join(" "), {
|
|
7136
|
+
title: s,
|
|
7137
|
+
value: r,
|
|
7138
|
+
_id: r
|
|
7138
7139
|
};
|
|
7139
7140
|
});
|
|
7140
7141
|
}
|
|
7141
|
-
return (e.field.options || []).reduce(function(t, n) {
|
|
7142
|
+
return e.hasAsyncOptions ? e.dynamicOptions : (e.field.options || []).reduce(function(t, n) {
|
|
7142
7143
|
if (!n)
|
|
7143
7144
|
return t;
|
|
7144
7145
|
const r = e.getValue(n);
|
|
@@ -7264,6 +7265,9 @@ const ie = {
|
|
|
7264
7265
|
key: "title",
|
|
7265
7266
|
direction: "asc",
|
|
7266
7267
|
type: "string"
|
|
7268
|
+
},
|
|
7269
|
+
page: {
|
|
7270
|
+
size: 1e3
|
|
7267
7271
|
}
|
|
7268
7272
|
}, { items: r } = await e.$sdk.content.list(t, n);
|
|
7269
7273
|
e.dynamicOptions = r.map(function({ _id: s, title: i }) {
|
|
@@ -7500,7 +7504,7 @@ const A_ = {
|
|
|
7500
7504
|
}));
|
|
7501
7505
|
}
|
|
7502
7506
|
}
|
|
7503
|
-
}, M_ = (e) => (qe("data-v-
|
|
7507
|
+
}, M_ = (e) => (qe("data-v-eb136b2f"), e = e(), We(), e), D_ = {
|
|
7504
7508
|
key: 0,
|
|
7505
7509
|
class: "ux-field-title"
|
|
7506
7510
|
}, I_ = {
|
|
@@ -7639,7 +7643,7 @@ function Z_(e, t, n, r, s, i) {
|
|
|
7639
7643
|
]))
|
|
7640
7644
|
], 2);
|
|
7641
7645
|
}
|
|
7642
|
-
const Ct = /* @__PURE__ */ C(A_, [["render", Z_], ["__scopeId", "data-v-
|
|
7646
|
+
const Ct = /* @__PURE__ */ C(A_, [["render", Z_], ["__scopeId", "data-v-eb136b2f"]]);
|
|
7643
7647
|
const J_ = {
|
|
7644
7648
|
props: {
|
|
7645
7649
|
total: {
|