@qikdev/vue-ui 0.3.24 → 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 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.24";
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-3b352542"]]), zg = {}, Wg = { class: "panel-footer" };
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-9fabb548"), e = e(), qe(), e), cb = {
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-9fabb548"]]), Mb = {
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;
@@ -34448,6 +34456,8 @@ const B$ = {
34448
34456
  case "map":
34449
34457
  case "tree":
34450
34458
  case "scopecolumns":
34459
+ case "kanban":
34460
+ case "flowchart":
34451
34461
  r = 2e3;
34452
34462
  break;
34453
34463
  }
@@ -34475,7 +34485,7 @@ const B$ = {
34475
34485
  actualOptions: this.options
34476
34486
  };
34477
34487
  }
34478
- }, oo = (e) => (je("data-v-8809e600"), e = e(), qe(), e), z$ = /* @__PURE__ */ oo(() => /* @__PURE__ */ T("strong", null, "Select Columns", -1)), W$ = {
34488
+ }, oo = (e) => (je("data-v-a2f7d18b"), e = e(), qe(), e), z$ = /* @__PURE__ */ oo(() => /* @__PURE__ */ T("strong", null, "Select Columns", -1)), W$ = {
34479
34489
  key: 0,
34480
34490
  class: "font-sm"
34481
34491
  }, H$ = { class: "footer" }, G$ = /* @__PURE__ */ oo(() => /* @__PURE__ */ T("p", null, null, -1)), Y$ = { key: 0 }, J$ = /* @__PURE__ */ oo(() => /* @__PURE__ */ T("p", null, null, -1));
@@ -34725,7 +34735,7 @@ function K$(e, t, n, r, s, i) {
34725
34735
  _: 3
34726
34736
  })) : _("", !0);
34727
34737
  }
34728
- const Z$ = /* @__PURE__ */ M(B$, [["render", K$], ["__scopeId", "data-v-8809e600"]]), X$ = {
34738
+ const Z$ = /* @__PURE__ */ M(B$, [["render", K$], ["__scopeId", "data-v-a2f7d18b"]]), X$ = {
34729
34739
  props: {
34730
34740
  modal: {
34731
34741
  type: Object,