@qikdev/vue-ui 0.2.392 → 0.2.393

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 Lh = (e, t, n) => t in e ? $h(e, t, { enumerable: !0, configurable: !0, writ
4
4
  var re = (e, t, n) => Lh(e, typeof t != "symbol" ? t + "" : t, n);
5
5
  import { defineComponent as Fo, ref as bt, toRefs as of, onMounted as Ao, onBeforeUnmount as Ph, watch as ci, computed as In, createElementBlock as h, openBlock as u, createCommentVNode as _, renderSlot as H, normalizeClass as L, useSlots as Rh, reactive as fn, provide as Ci, resolveComponent as y, createVNode as c, Fragment as D, createBlock as k, unref as _t, withCtx as f, renderList as N, toDisplayString as b, createTextVNode as O, withDirectives as X, vShow as dr, withModifiers as z, createElementVNode as w, h as uo, mergeProps as mt, toHandlers as wt, normalizeStyle as Ge, resolveDirective as lf, resolveDynamicComponent as Vt, vModelSelect as Et, pushScopeId as je, popScopeId as qe, getCurrentScope as Uh, onScopeDispose as jh, getCurrentInstance as qh, Teleport as uf, Transition as Bh, withKeys as Ee, vModelText as be, TransitionGroup as zh, nextTick as df, vModelDynamic as Tr, normalizeProps as Wh } from "vue";
6
6
  import { EventDispatcher as cf } from "@qikdev/sdk";
7
- const Hh = "0.2.392";
7
+ const Hh = "0.2.393";
8
8
  class pn extends Error {
9
9
  }
10
10
  class Gh extends pn {
@@ -12465,7 +12465,7 @@ const zw = {
12465
12465
  beforeUnmount() {
12466
12466
  this.parseTimeout && clearTimeout(this.parseTimeout);
12467
12467
  }
12468
- }, Nm = (e) => (je("data-v-82a7dff8"), e = e(), qe(), e), Ww = {
12468
+ }, Nm = (e) => (je("data-v-ad7cf865"), e = e(), qe(), e), Ww = {
12469
12469
  class: "ux-datepicker",
12470
12470
  ref: "container"
12471
12471
  }, Hw = { class: "ux-datepicker-input-wrap" }, Gw = ["placeholder"], Yw = /* @__PURE__ */ Nm(() => /* @__PURE__ */ w("span", null, null, -1)), Jw = { class: "ux-datepicker-calendar" }, Kw = { class: "ux-datepicker-header" }, Zw = { class: "ux-datepicker-month-year" }, Xw = { class: "ux-datepicker-weekdays" }, Qw = { class: "ux-datepicker-days" }, ex = ["disabled", "onClick"], tx = {
@@ -12630,7 +12630,7 @@ function ax(e, t, n, i, s, r) {
12630
12630
  }, 8, ["modelValue"])
12631
12631
  ], 512);
12632
12632
  }
12633
- const $m = /* @__PURE__ */ M(zw, [["render", ax], ["__scopeId", "data-v-82a7dff8"]]);
12633
+ const $m = /* @__PURE__ */ M(zw, [["render", ax], ["__scopeId", "data-v-ad7cf865"]]);
12634
12634
  function Nr(e) {
12635
12635
  var t = new Date(e);
12636
12636
  if (t instanceof Date && !isNaN(t.getTime()))
@@ -28571,12 +28571,50 @@ const qF = /* @__PURE__ */ M(FF, [["render", jF], ["__scopeId", "data-v-8801d1a0
28571
28571
  }
28572
28572
  return n;
28573
28573
  });
28574
- return t = e.$sdk.utils.mapFields(t, { includeLayout: !0, original: !0 }), t = t.map(function(n) {
28575
- if (!n.path.startsWith("meta")) {
28574
+ return t = e.$sdk.utils.mapFields(t, {
28575
+ includeLayout: !0,
28576
+ original: !0
28577
+ }), t = t.map(function(n) {
28578
+ if (!n.path.startsWith("meta") && !(n.type === "group" && !n.asObject)) {
28576
28579
  switch (n.selectTitle = n.titles.filter(Boolean).join(" › "), n.path) {
28577
28580
  case "dob":
28578
- n.selectTitle = "Date of birth › Day+Month+Year";
28579
- break;
28581
+ return [
28582
+ {
28583
+ ...n,
28584
+ selectTitle: "Date of birth › Date Picker",
28585
+ title: "Date of Birth",
28586
+ key: "dob",
28587
+ path: "dob:date",
28588
+ type: "date",
28589
+ widget: "datepicker",
28590
+ dateOnly: !0,
28591
+ style: {
28592
+ marginLeft: `${(n.trail.length * 1 - 1) * 2}em`
28593
+ }
28594
+ },
28595
+ {
28596
+ ...n,
28597
+ selectTitle: "Date of birth › Date Fields",
28598
+ title: "Date of Birth",
28599
+ key: "dob",
28600
+ path: "dob:object",
28601
+ type: "object",
28602
+ widget: "dateobject",
28603
+ dateOnly: !0,
28604
+ style: {
28605
+ marginLeft: `${(n.trail.length * 1 - 1) * 2}em`
28606
+ }
28607
+ },
28608
+ {
28609
+ ...n,
28610
+ selectTitle: "Date of birth › Day+Month+Year",
28611
+ key: "dob",
28612
+ path: "dob:fields",
28613
+ style: {
28614
+ marginLeft: `${(n.trail.length * 1 - 1) * 2}em`
28615
+ }
28616
+ }
28617
+ ];
28580
28618
  case "dobDay":
28581
28619
  n.selectTitle = "Date of birth › Day";
28582
28620
  break;
@@ -28594,10 +28632,11 @@ const qF = /* @__PURE__ */ M(FF, [["render", jF], ["__scopeId", "data-v-8801d1a0
28594
28632
  marginLeft: `${(n.trail.length * 1 - 1) * 2}em`
28595
28633
  }, n;
28596
28634
  }
28597
- }).filter(Boolean).sort(function(n, i) {
28635
+ }).flat().filter(Boolean).sort(function(n, i) {
28598
28636
  return n.selectTitle < i.selectTitle ? -1 : n.selectTitle > i.selectTitle ? 1 : 0;
28599
28637
  }).sort(function(n, i) {
28600
- return n.path < i.path ? -1 : n.path > i.path ? 1 : 0;
28638
+ const s = n.path === "data" || n.path.startsWith("data."), r = i.path === "data" || i.path.startsWith("data.");
28639
+ return s && !r ? 1 : r && !s || n.path < i.path ? -1 : n.path > i.path ? 1 : 0;
28601
28640
  }), t;
28602
28641
  }
28603
28642
  },
@@ -28648,6 +28687,17 @@ function YF(e, t, n, i, s, r) {
28648
28687
  ]),
28649
28688
  _: 1
28650
28689
  }),
28690
+ c(a, { shrink: "" }, {
28691
+ default: f(() => [
28692
+ c(o, { onClick: e.dismiss }, {
28693
+ default: f(() => [
28694
+ O("Cancel")
28695
+ ]),
28696
+ _: 1
28697
+ }, 8, ["onClick"])
28698
+ ]),
28699
+ _: 1
28700
+ }),
28651
28701
  c(a, { shrink: "" }, {
28652
28702
  default: f(() => [
28653
28703
  c(o, {
@@ -28672,7 +28722,10 @@ function YF(e, t, n, i, s, r) {
28672
28722
  c(p, { class: "body-area" }, {
28673
28723
  default: f(() => [
28674
28724
  (u(!0), h(D, null, N(r.fields, (v) => (u(), h("a", {
28675
- class: L(["field-item", { selected: r.isSelected(v), parented: r.isParentSelected(v) }]),
28725
+ class: L(["field-item", {
28726
+ selected: r.isSelected(v),
28727
+ parented: r.isParentSelected(v)
28728
+ }]),
28676
28729
  style: Ge(v.style),
28677
28730
  onClick: (x) => r.toggle(v)
28678
28731
  }, [
@@ -28691,7 +28744,15 @@ function YF(e, t, n, i, s, r) {
28691
28744
  }, 1024),
28692
28745
  c(a, null, {
28693
28746
  default: f(() => [
28694
- w("strong", null, b(v.selectTitle), 1),
28747
+ w("strong", null, b(v.selectTitle), 1)
28748
+ ]),
28749
+ _: 2
28750
+ }, 1024),
28751
+ c(a, {
28752
+ shrink: "",
28753
+ class: "font-muted"
28754
+ }, {
28755
+ default: f(() => [
28695
28756
  w("div", GF, b(v.path), 1)
28696
28757
  ]),
28697
28758
  _: 2
@@ -28708,7 +28769,7 @@ function YF(e, t, n, i, s, r) {
28708
28769
  })
28709
28770
  ]);
28710
28771
  }
28711
- const JF = /* @__PURE__ */ M(BF, [["render", YF], ["__scopeId", "data-v-415b9a32"]]), KF = {
28772
+ const JF = /* @__PURE__ */ M(BF, [["render", YF], ["__scopeId", "data-v-b0547e33"]]), KF = {
28712
28773
  props: {
28713
28774
  modelValue: {
28714
28775
  type: Object