@qikdev/vue-ui 0.2.70 → 0.2.72

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 ki, ref as Wt, toRefs as la, onMounted as oa, onBeforeUnmount as wo, watch as xi, computed as ai, openBlock as o, createElementBlock as d, renderSlot as G, createCommentVNode as _, useSlots as So, reactive as kr, provide as Fr, resolveComponent as y, normalizeClass as P, Fragment as S, unref as jn, createBlock as k, withCtx as h, createVNode as m, renderList as N, toDisplayString as b, withModifiers as W, createTextVNode as O, createElementVNode as w, h as li, resolveDynamicComponent as It, mergeProps as wi, toHandlers as ua, withDirectives as X, vModelSelect as kt, pushScopeId as it, popScopeId as st, normalizeStyle as xt, Teleport as Oo, vModelText as ge, withKeys as ve, TransitionGroup as To, nextTick as da, vModelDynamic as Rn, vShow as qi } from "vue";
3
3
  import { EventDispatcher as Eo } from "@qikdev/sdk";
4
- const Co = "0.2.70", lr = {
4
+ const Co = "0.2.72", lr = {
5
5
  STRIPE_NOT_LOADED: "Stripe v3 library is not loaded",
6
6
  INSTANCE_NOT_DEFINED: "Instance object is not defined. Make sure you initialized Stripe before creating elements",
7
7
  ELEMENTS_NOT_DEFINED: "Elements object is not defined. You can't create stripe element without it",
@@ -7444,7 +7444,7 @@ function __(e, t, n, i, s, r) {
7444
7444
  _: 3
7445
7445
  }, 8, ["active", "loading", "to", "href", "target", "style", "class", "disabled"]);
7446
7446
  }
7447
- const g_ = /* @__PURE__ */ E(p_, [["render", __], ["__scopeId", "data-v-2048752e"]]);
7447
+ const g_ = /* @__PURE__ */ E(p_, [["render", __], ["__scopeId", "data-v-66b9c2a8"]]);
7448
7448
  const v_ = {
7449
7449
  props: {
7450
7450
  value: {
@@ -7883,6 +7883,11 @@ const N_ = {
7883
7883
  model: this.item
7884
7884
  };
7885
7885
  },
7886
+ watch: {
7887
+ item(e) {
7888
+ this.model = e;
7889
+ }
7890
+ },
7886
7891
  computed: {
7887
7892
  altText() {
7888
7893
  var e;
@@ -7973,7 +7978,7 @@ function U_(e, t, n, i, s, r) {
7973
7978
  }, null, 12, P_))
7974
7979
  ], 6);
7975
7980
  }
7976
- const j_ = /* @__PURE__ */ E(N_, [["render", U_], ["__scopeId", "data-v-089b6795"]]);
7981
+ const j_ = /* @__PURE__ */ E(N_, [["render", U_], ["__scopeId", "data-v-03c1a2af"]]);
7977
7982
  const R_ = {
7978
7983
  props: {
7979
7984
  item: {
@@ -9058,10 +9063,20 @@ const Pg = {
9058
9063
  required: !0
9059
9064
  }
9060
9065
  },
9066
+ data() {
9067
+ return {
9068
+ model: this.item
9069
+ };
9070
+ },
9071
+ watch: {
9072
+ item(e) {
9073
+ this.model = e;
9074
+ }
9075
+ },
9061
9076
  computed: {
9062
9077
  basicType() {
9063
9078
  var e, t;
9064
- return (t = (e = this.item) == null ? void 0 : e.meta) == null ? void 0 : t.type;
9079
+ return (t = (e = this.model) == null ? void 0 : e.meta) == null ? void 0 : t.type;
9065
9080
  },
9066
9081
  hasImage() {
9067
9082
  switch (this.basicType) {
@@ -9072,12 +9087,12 @@ const Pg = {
9072
9087
  }
9073
9088
  },
9074
9089
  title() {
9075
- return this.item.title || this.item.name || this.item.label || (this.item.firstName ? `${this.item.firstName} ${this.item.lastName}` : "(Title unknown)");
9090
+ return this.model.title || this.model.name || this.model.label || (this.model.firstName ? `${this.model.firstName} ${this.model.lastName}` : "(Title unknown)");
9076
9091
  }
9077
9092
  },
9078
9093
  methods: {
9079
9094
  clicked() {
9080
- this.$sdk.dispatch("item:view", this.item);
9095
+ this.$sdk.dispatch("item:view", this.model);
9081
9096
  }
9082
9097
  }
9083
9098
  };
@@ -9101,7 +9116,7 @@ function Ug(e, t, n, i, s, r) {
9101
9116
  class: P(["image-wrapper", r.basicType])
9102
9117
  }, [
9103
9118
  m(a, {
9104
- item: n.item,
9119
+ item: s.model,
9105
9120
  width: 100,
9106
9121
  height: 100
9107
9122
  }, null, 8, ["item"])
@@ -9130,7 +9145,7 @@ function Ug(e, t, n, i, s, r) {
9130
9145
  })
9131
9146
  ]);
9132
9147
  }
9133
- const wl = /* @__PURE__ */ E(Pg, [["render", Ug], ["__scopeId", "data-v-923011b3"]]);
9148
+ const wl = /* @__PURE__ */ E(Pg, [["render", Ug], ["__scopeId", "data-v-805b5945"]]);
9134
9149
  /**!
9135
9150
  * Sortable 1.14.0
9136
9151
  * @author RubaXa <trash@rubaxa.org>
@@ -10958,13 +10973,8 @@ const Dv = {
10958
10973
  summary() {
10959
10974
  if (this.multiValue)
10960
10975
  if (this.model && this.model.length) {
10961
- var e = this.model.length;
10962
- if (!this.showList)
10963
- return e === 1 ? this.model[0].title || this.model[0].name || this.model[0].firstName : `${e} selected`;
10964
- var t = Math.max(e - 3, 0), n, i = this.model.slice(0, 3);
10965
- return n = i.map(function(s) {
10966
- return s.firstName || s.name || s.title;
10967
- }).join(", "), t && (n = `${n}... +${t} more...`), n || "Click to select";
10976
+ var e = "Click to select", t = this.model.length;
10977
+ return this.showList ? (t && (e = `Adjust selection (${t})`), e) : t === 1 ? this.model[0].title || this.model[0].name || this.model[0].firstName : `${t} selected`;
10968
10978
  } else
10969
10979
  return "Click to select";
10970
10980
  else
@@ -11121,7 +11131,7 @@ function Uv(e, t, n, i, s, r) {
11121
11131
  })) : _("", !0)
11122
11132
  ], 64);
11123
11133
  }
11124
- const ql = /* @__PURE__ */ E(Dv, [["render", Uv], ["__scopeId", "data-v-aaba4058"]]);
11134
+ const ql = /* @__PURE__ */ E(Dv, [["render", Uv], ["__scopeId", "data-v-5f830d28"]]);
11125
11135
  function jv(e) {
11126
11136
  return e === void 0 || typeof e > "u" || e === null || String(e) === "null" || String(e) === "undefined";
11127
11137
  }
@@ -18605,7 +18615,7 @@ function WO(e, t, n, i, s, r) {
18605
18615
  ])
18606
18616
  ]);
18607
18617
  }
18608
- const ho = /* @__PURE__ */ E(HO, [["render", WO], ["__scopeId", "data-v-d88923bc"]]), KO = {
18618
+ const ho = /* @__PURE__ */ E(HO, [["render", WO], ["__scopeId", "data-v-9cf5026c"]]), KO = {
18609
18619
  props: {
18610
18620
  field: {
18611
18621
  type: Object,
@@ -20749,18 +20759,19 @@ function oE(e, t, n, i, s, r) {
20749
20759
  ]),
20750
20760
  _: 1
20751
20761
  })) : _("", !0),
20752
- s.showFilters ? _("", !0) : (o(), k(l, { key: 1 }, {
20762
+ m(l, null, {
20753
20763
  default: h(() => [
20754
- m(u, {
20764
+ s.showFilters ? _("", !0) : (o(), k(u, {
20765
+ key: 0,
20755
20766
  modelValue: s.search,
20756
20767
  "onUpdate:modelValue": t[0] || (t[0] = (x) => s.search = x),
20757
20768
  loading: s.searching,
20758
20769
  debounce: 500,
20759
20770
  placeholder: "Keyword Search"
20760
- }, null, 8, ["modelValue", "loading"])
20771
+ }, null, 8, ["modelValue", "loading"]))
20761
20772
  ]),
20762
20773
  _: 1
20763
- })),
20774
+ }),
20764
20775
  m(l, { shrink: "" }, {
20765
20776
  default: h(() => [
20766
20777
  m(f, {
@@ -20853,7 +20864,7 @@ function oE(e, t, n, i, s, r) {
20853
20864
  _: 1
20854
20865
  });
20855
20866
  }
20856
- const uE = /* @__PURE__ */ E(iE, [["render", oE], ["__scopeId", "data-v-09ee3a9e"]]);
20867
+ const uE = /* @__PURE__ */ E(iE, [["render", oE], ["__scopeId", "data-v-7eedb824"]]);
20857
20868
  const dE = {
20858
20869
  components: {
20859
20870
  ScopeSelect: ib