@qikdev/vue-ui 0.2.141 → 0.2.143

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 Vi, ref as Zt, toRefs as ba, onMounted as ka, onBeforeUnmount as zo, watch as Ci, computed as di, openBlock as o, createElementBlock as d, renderSlot as z, createCommentVNode as _, normalizeClass as L, useSlots as Ho, reactive as Sr, provide as $r, resolveComponent as y, Fragment as w, unref as Bn, createBlock as k, withCtx as h, createVNode as m, renderList as $, toDisplayString as v, withDirectives as K, vShow as ci, createElementVNode as x, withModifiers as B, createTextVNode as S, h as fi, resolveDynamicComponent as Ot, mergeProps as Ei, toHandlers as xa, vModelSelect as Tt, pushScopeId as tt, popScopeId as nt, normalizeStyle as ut, Teleport as qo, vModelText as se, withKeys as ge, TransitionGroup as Go, nextTick as wa, vModelDynamic as zn } from "vue";
3
3
  import { EventDispatcher as Wo } from "@qikdev/sdk";
4
- const Ko = "0.2.141";
4
+ const Ko = "0.2.143";
5
5
  class Lt extends Error {
6
6
  }
7
7
  class Yo extends Lt {
@@ -4742,7 +4742,7 @@ function pn(e) {
4742
4742
  }
4743
4743
  const He = {};
4744
4744
  He.format = function(e, t) {
4745
- return P.fromJSDate(new Date(e)).toFormat(t);
4745
+ return e = e ? new Date(e) : new Date(), P.fromJSDate(e).toFormat(t);
4746
4746
  };
4747
4747
  He.readableDateRange = function(e, t) {
4748
4748
  if (!e)
@@ -5850,28 +5850,32 @@ const _y = {
5850
5850
  }
5851
5851
  },
5852
5852
  computed: {
5853
+ actualValue() {
5854
+ return String(this.value || "").trim();
5855
+ },
5853
5856
  href() {
5854
- return `http://${this.value}`;
5857
+ return `http://${this.actualValue}`;
5855
5858
  }
5856
5859
  }
5857
5860
  }, gy = { class: "table-url-cell" }, vy = ["href"];
5858
5861
  function by(e, t, n, i, s, r) {
5859
5862
  const a = y("ux-icon");
5860
5863
  return o(), d("td", gy, [
5861
- x("a", {
5864
+ r.actualValue ? (o(), d("a", {
5865
+ key: 0,
5862
5866
  href: r.href,
5863
5867
  onClick: t[0] || (t[0] = B((...l) => r.open && r.open(...l), ["stop", "prevent"])),
5864
5868
  target: "_blank"
5865
5869
  }, [
5866
- S(v(e.value) + " ", 1),
5870
+ S(v(r.actualValue) + " ", 1),
5867
5871
  m(a, {
5868
5872
  right: "",
5869
5873
  icon: "fa-external-link"
5870
5874
  })
5871
- ], 8, vy)
5875
+ ], 8, vy)) : _("", !0)
5872
5876
  ]);
5873
5877
  }
5874
- const Ls = /* @__PURE__ */ V(_y, [["render", by], ["__scopeId", "data-v-7dbf1e30"]]);
5878
+ const Ls = /* @__PURE__ */ V(_y, [["render", by], ["__scopeId", "data-v-7c4c4b63"]]);
5875
5879
  var Ps = function(e, t, n) {
5876
5880
  if (!t.hasOwnProperty(n)) {
5877
5881
  var i = Object.getOwnPropertyDescriptor(e, n);
@@ -9530,6 +9534,9 @@ function uv(e, t, n, i, s, r) {
9530
9534
  const dv = /* @__PURE__ */ V(tv, [["render", uv], ["__scopeId", "data-v-9c322e6d"]]);
9531
9535
  const cv = {
9532
9536
  props: {
9537
+ manual: {
9538
+ type: Boolean
9539
+ },
9533
9540
  item: {
9534
9541
  type: Object,
9535
9542
  required: !0
@@ -9564,7 +9571,7 @@ const cv = {
9564
9571
  },
9565
9572
  methods: {
9566
9573
  clicked() {
9567
- this.$sdk.dispatch("item:view", this.model);
9574
+ this.manual ? this.$emit("clicked", this.model) : this.$sdk.dispatch("item:view", this.model);
9568
9575
  }
9569
9576
  }
9570
9577
  };
@@ -9620,7 +9627,7 @@ function fv(e, t, n, i, s, r) {
9620
9627
  })
9621
9628
  ]);
9622
9629
  }
9623
- const Ul = /* @__PURE__ */ V(cv, [["render", fv], ["__scopeId", "data-v-094c46db"]]);
9630
+ const Ul = /* @__PURE__ */ V(cv, [["render", fv], ["__scopeId", "data-v-9d1d65d7"]]);
9624
9631
  /**!
9625
9632
  * Sortable 1.14.0
9626
9633
  * @author RubaXa <trash@rubaxa.org>
@@ -19118,7 +19125,8 @@ const rT = {
19118
19125
  getExpressionVisualHide: Me("visualHide"),
19119
19126
  // hasExpressionDefaultValue: hasExpression('defaultValue'), // Not sure what this is for
19120
19127
  expressions() {
19121
- return this.field.expressions;
19128
+ var e;
19129
+ return (e = this.field) == null ? void 0 : e.expressions;
19122
19130
  },
19123
19131
  expressionsContext() {
19124
19132
  var s;
@@ -19140,16 +19148,19 @@ const rT = {
19140
19148
  return this.submission && this.field.officeOnly;
19141
19149
  },
19142
19150
  hidden() {
19143
- return this.officeOnly && !this.includeOfficeOnly || this.actualField.readOnly ? !0 : this.getExpressionHide;
19151
+ var e;
19152
+ return this.officeOnly && !this.includeOfficeOnly || (e = this.actualField) != null && e.readOnly ? !0 : this.getExpressionHide;
19144
19153
  },
19145
19154
  visible() {
19146
- return this.mounted && !this.hidden;
19155
+ return this.field && this.mounted && !this.hidden;
19147
19156
  },
19148
19157
  type() {
19149
- return this.actualField.type || "string";
19158
+ var e;
19159
+ return ((e = this.actualField) == null ? void 0 : e.type) || "string";
19150
19160
  },
19151
19161
  key() {
19152
- return this.actualField.key;
19162
+ var e;
19163
+ return (e = this.actualField) == null ? void 0 : e.key;
19153
19164
  },
19154
19165
  isGroup() {
19155
19166
  return this.type === "group";
@@ -19158,7 +19169,8 @@ const rT = {
19158
19169
  return this.widget === "form" || this.isGroup && this.actualField.asObject;
19159
19170
  },
19160
19171
  visualHide() {
19161
- return this.actualField.visualHide;
19172
+ var e;
19173
+ return (e = this.actualField) == null ? void 0 : e.visualHide;
19162
19174
  },
19163
19175
  layoutGroup() {
19164
19176
  return this.isGroup && !this.actualField.asObject;
@@ -19544,7 +19556,7 @@ function sT(e, t, n, i, s, r) {
19544
19556
  r.error && s.validateResults.message ? (o(), d("div", iT, v(s.validateResults.message), 1)) : _("", !0)
19545
19557
  ], 34)) : _("", !0);
19546
19558
  }
19547
- const Gi = /* @__PURE__ */ V(rT, [["render", sT], ["__scopeId", "data-v-b6cb8f4a"]]);
19559
+ const Gi = /* @__PURE__ */ V(rT, [["render", sT], ["__scopeId", "data-v-037db580"]]);
19548
19560
  function aT(e, t, n, i) {
19549
19561
  var s = -1, r = e == null ? 0 : e.length;
19550
19562
  for (i && r && (n = e[++s]); ++s < r; )