@qikdev/vue-ui 0.2.194 → 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 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.194";
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;
@@ -7128,11 +7130,12 @@ const ie = {
7128
7130
  if (e.field.type === "reference") {
7129
7131
  const t = (e.field.allowedReferences || []).filter(Boolean);
7130
7132
  if (t.length)
7131
- return t.map(function({ _id: n, title: r }) {
7132
- return {
7133
- title: r,
7134
- value: n,
7135
- _id: n
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
7136
7139
  };
7137
7140
  });
7138
7141
  }
@@ -7262,6 +7265,9 @@ const ie = {
7262
7265
  key: "title",
7263
7266
  direction: "asc",
7264
7267
  type: "string"
7268
+ },
7269
+ page: {
7270
+ size: 1e3
7265
7271
  }
7266
7272
  }, { items: r } = await e.$sdk.content.list(t, n);
7267
7273
  e.dynamicOptions = r.map(function({ _id: s, title: i }) {
@@ -7498,7 +7504,7 @@ const A_ = {
7498
7504
  }));
7499
7505
  }
7500
7506
  }
7501
- }, M_ = (e) => (qe("data-v-0525e84f"), e = e(), We(), e), D_ = {
7507
+ }, M_ = (e) => (qe("data-v-eb136b2f"), e = e(), We(), e), D_ = {
7502
7508
  key: 0,
7503
7509
  class: "ux-field-title"
7504
7510
  }, I_ = {
@@ -7637,7 +7643,7 @@ function Z_(e, t, n, r, s, i) {
7637
7643
  ]))
7638
7644
  ], 2);
7639
7645
  }
7640
- const Ct = /* @__PURE__ */ C(A_, [["render", Z_], ["__scopeId", "data-v-0525e84f"]]);
7646
+ const Ct = /* @__PURE__ */ C(A_, [["render", Z_], ["__scopeId", "data-v-eb136b2f"]]);
7641
7647
  const J_ = {
7642
7648
  props: {
7643
7649
  total: {