@qikdev/vue-ui 0.2.392 → 0.2.394

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.394";
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,21 +28571,56 @@ 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) {
28574
+ return t = e.$sdk.utils.mapFields(t, {
28575
+ includeLayout: !0,
28576
+ original: !0
28577
+ }), t = t.map(function(n) {
28575
28578
  if (!n.path.startsWith("meta")) {
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
+ // ...field,
28610
+ // selectTitle: "Date of birth › Day+Month+Year",
28611
+ // key: "dob",
28612
+ // path: "dob:fields",
28613
+ // style: {
28614
+ // marginLeft: `${(field.trail.length * 1 - 1) * 2}em`,
28615
+ // },
28616
+ // },
28617
+ ];
28580
28618
  case "dobDay":
28581
- n.selectTitle = "Date of birth › Day";
28582
- break;
28619
+ return;
28583
28620
  case "dobMonth":
28584
- n.selectTitle = "Date of birth › Month";
28585
- break;
28621
+ return;
28586
28622
  case "dobYear":
28587
- n.selectTitle = "Date of birth › Year";
28588
- break;
28623
+ return;
28589
28624
  case "data":
28590
28625
  n.selectTitle = "All Custom Fields";
28591
28626
  break;
@@ -28594,10 +28629,11 @@ const qF = /* @__PURE__ */ M(FF, [["render", jF], ["__scopeId", "data-v-8801d1a0
28594
28629
  marginLeft: `${(n.trail.length * 1 - 1) * 2}em`
28595
28630
  }, n;
28596
28631
  }
28597
- }).filter(Boolean).sort(function(n, i) {
28632
+ }).flat().filter(Boolean).sort(function(n, i) {
28598
28633
  return n.selectTitle < i.selectTitle ? -1 : n.selectTitle > i.selectTitle ? 1 : 0;
28599
28634
  }).sort(function(n, i) {
28600
- return n.path < i.path ? -1 : n.path > i.path ? 1 : 0;
28635
+ const s = n.path === "data" || n.path.startsWith("data."), r = i.path === "data" || i.path.startsWith("data.");
28636
+ return s && !r ? 1 : r && !s || n.path < i.path ? -1 : n.path > i.path ? 1 : 0;
28601
28637
  }), t;
28602
28638
  }
28603
28639
  },
@@ -28648,6 +28684,17 @@ function YF(e, t, n, i, s, r) {
28648
28684
  ]),
28649
28685
  _: 1
28650
28686
  }),
28687
+ c(a, { shrink: "" }, {
28688
+ default: f(() => [
28689
+ c(o, { onClick: e.dismiss }, {
28690
+ default: f(() => [
28691
+ O("Cancel")
28692
+ ]),
28693
+ _: 1
28694
+ }, 8, ["onClick"])
28695
+ ]),
28696
+ _: 1
28697
+ }),
28651
28698
  c(a, { shrink: "" }, {
28652
28699
  default: f(() => [
28653
28700
  c(o, {
@@ -28672,7 +28719,10 @@ function YF(e, t, n, i, s, r) {
28672
28719
  c(p, { class: "body-area" }, {
28673
28720
  default: f(() => [
28674
28721
  (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) }]),
28722
+ class: L(["field-item", {
28723
+ selected: r.isSelected(v),
28724
+ parented: r.isParentSelected(v)
28725
+ }]),
28676
28726
  style: Ge(v.style),
28677
28727
  onClick: (x) => r.toggle(v)
28678
28728
  }, [
@@ -28691,7 +28741,15 @@ function YF(e, t, n, i, s, r) {
28691
28741
  }, 1024),
28692
28742
  c(a, null, {
28693
28743
  default: f(() => [
28694
- w("strong", null, b(v.selectTitle), 1),
28744
+ w("strong", null, b(v.selectTitle), 1)
28745
+ ]),
28746
+ _: 2
28747
+ }, 1024),
28748
+ c(a, {
28749
+ shrink: "",
28750
+ class: "font-muted"
28751
+ }, {
28752
+ default: f(() => [
28695
28753
  w("div", GF, b(v.path), 1)
28696
28754
  ]),
28697
28755
  _: 2
@@ -28708,7 +28766,7 @@ function YF(e, t, n, i, s, r) {
28708
28766
  })
28709
28767
  ]);
28710
28768
  }
28711
- const JF = /* @__PURE__ */ M(BF, [["render", YF], ["__scopeId", "data-v-415b9a32"]]), KF = {
28769
+ const JF = /* @__PURE__ */ M(BF, [["render", YF], ["__scopeId", "data-v-73221a58"]]), KF = {
28712
28770
  props: {
28713
28771
  modelValue: {
28714
28772
  type: Object