@qikdev/vue-ui 0.3.25 → 0.3.26
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 +22 -14
- package/dist/lib.es.js.map +1 -1
- package/dist/lib.umd.js +6 -6
- 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.26";
|
|
8
8
|
class yn extends Error {
|
|
9
9
|
}
|
|
10
10
|
class Kh extends yn {
|
|
@@ -5179,7 +5179,7 @@ function qg(e, t, n, r, s, i) {
|
|
|
5179
5179
|
z(e.$slots, "default", {}, void 0, !0)
|
|
5180
5180
|
]);
|
|
5181
5181
|
}
|
|
5182
|
-
const Bg = /* @__PURE__ */ M(Ug, [["render", qg], ["__scopeId", "data-v-
|
|
5182
|
+
const Bg = /* @__PURE__ */ M(Ug, [["render", qg], ["__scopeId", "data-v-315be8cb"]]), zg = {}, Wg = { class: "panel-footer" };
|
|
5183
5183
|
function Hg(e, t, n, r, s, i) {
|
|
5184
5184
|
return o(), h("div", Wg, [
|
|
5185
5185
|
z(e.$slots, "default", {}, void 0, !0)
|
|
@@ -8587,6 +8587,14 @@ const ub = {
|
|
|
8587
8587
|
this.model = this.model;
|
|
8588
8588
|
},
|
|
8589
8589
|
methods: {
|
|
8590
|
+
maybeAutoSelectSingleOption() {
|
|
8591
|
+
if (this.loadingAsyncOptions || !this.singleValue || !this.minimum || this.model || this.model === !1 || this.model === 0)
|
|
8592
|
+
return;
|
|
8593
|
+
const e = this.selectableOptions.filter(function(t) {
|
|
8594
|
+
return !t.none;
|
|
8595
|
+
});
|
|
8596
|
+
e.length === 1 && (this.model = e[0]);
|
|
8597
|
+
},
|
|
8590
8598
|
displayLabelFromValue(e) {
|
|
8591
8599
|
if (!e)
|
|
8592
8600
|
return;
|
|
@@ -8638,6 +8646,15 @@ const ub = {
|
|
|
8638
8646
|
watch: {
|
|
8639
8647
|
candidate(e) {
|
|
8640
8648
|
e && (this.addValue(e), this.candidate = null);
|
|
8649
|
+
},
|
|
8650
|
+
selectableOptions: {
|
|
8651
|
+
immediate: !0,
|
|
8652
|
+
handler() {
|
|
8653
|
+
this.maybeAutoSelectSingleOption();
|
|
8654
|
+
}
|
|
8655
|
+
},
|
|
8656
|
+
loadingAsyncOptions() {
|
|
8657
|
+
this.maybeAutoSelectSingleOption();
|
|
8641
8658
|
}
|
|
8642
8659
|
},
|
|
8643
8660
|
computed: {
|
|
@@ -8704,7 +8721,7 @@ const ub = {
|
|
|
8704
8721
|
}));
|
|
8705
8722
|
}
|
|
8706
8723
|
}
|
|
8707
|
-
}, db = (e) => (je("data-v-
|
|
8724
|
+
}, db = (e) => (je("data-v-bf1479ae"), e = e(), qe(), e), cb = {
|
|
8708
8725
|
key: 0,
|
|
8709
8726
|
class: "ux-field-title"
|
|
8710
8727
|
}, fb = {
|
|
@@ -8846,7 +8863,7 @@ function Eb(e, t, n, r, s, i) {
|
|
|
8846
8863
|
]))
|
|
8847
8864
|
], 2);
|
|
8848
8865
|
}
|
|
8849
|
-
const It = /* @__PURE__ */ M(ub, [["render", Eb], ["__scopeId", "data-v-
|
|
8866
|
+
const It = /* @__PURE__ */ M(ub, [["render", Eb], ["__scopeId", "data-v-bf1479ae"]]), Mb = {
|
|
8850
8867
|
props: {
|
|
8851
8868
|
total: {
|
|
8852
8869
|
type: Number,
|
|
@@ -29831,16 +29848,7 @@ function Zn(e, t, n, r, s, i) {
|
|
|
29831
29848
|
t = t || [], n = Math.max(n, r);
|
|
29832
29849
|
var a = t.length, l = a >= n;
|
|
29833
29850
|
if (!l) {
|
|
29834
|
-
var u = n - a;
|
|
29835
|
-
console.log("ARRAY", {
|
|
29836
|
-
meetsMinimum: l,
|
|
29837
|
-
array: t,
|
|
29838
|
-
extras: d,
|
|
29839
|
-
difference: u,
|
|
29840
|
-
min: n,
|
|
29841
|
-
max: s
|
|
29842
|
-
});
|
|
29843
|
-
var d = Array(u).fill().map(i);
|
|
29851
|
+
var u = n - a, d = Array(u).fill().map(i);
|
|
29844
29852
|
return [...t || [], ...d || []];
|
|
29845
29853
|
}
|
|
29846
29854
|
return t;
|