@qikdev/vue-ui 0.3.6 → 0.3.8

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 Ph = (e, t, n) => t in e ? Lh(e, t, { enumerable: !0, configurable: !0, writ
4
4
  var ie = (e, t, n) => Ph(e, typeof t != "symbol" ? t + "" : t, n);
5
5
  import { reactive as Ht, defineComponent as Fl, ref as vt, toRefs as of, onMounted as Al, onBeforeUnmount as Rh, watch as cr, computed as Fn, createElementBlock as m, openBlock as o, createCommentVNode as _, renderSlot as H, normalizeClass as L, useSlots as Uh, 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 X, 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 Mt, vModelSelect as Dt, pushScopeId as je, popScopeId as qe, getCurrentScope as jh, onScopeDispose as qh, getCurrentInstance as Bh, Teleport as df, Transition as zh, withKeys as we, vModelText as be, TransitionGroup as Wh, nextTick as cf, vModelDynamic as Sn, normalizeProps as Hh } from "vue";
6
6
  import { EventDispatcher as ff } from "@qikdev/sdk";
7
- const Gh = "0.3.6";
7
+ const Gh = "0.3.8";
8
8
  class yn extends Error {
9
9
  }
10
10
  class Yh extends yn {
@@ -6287,60 +6287,61 @@ const X_ = /* @__PURE__ */ M(J_, [["render", Z_], ["__scopeId", "data-v-677f555b
6287
6287
  imageSource() {
6288
6288
  var n;
6289
6289
  const e = this.source;
6290
- switch ((n = e == null ? void 0 : e.meta) == null ? void 0 : n.type) {
6291
- case "video":
6292
- case "image":
6293
- case "event":
6294
- case "persona":
6295
- case "profile":
6296
- case "audio":
6297
- case "file":
6298
- return this.source;
6299
- default: {
6300
- const r = this.$sdk.utils.id(this.source);
6301
- if (!r)
6302
- return;
6303
- var t = r.slice(8, 10);
6304
- switch (t) {
6305
- case "69":
6306
- return {
6307
- _id: r,
6308
- meta: {
6309
- type: "image"
6310
- }
6311
- };
6312
- case "76":
6313
- return {
6314
- _id: r,
6315
- meta: {
6316
- type: "video"
6317
- }
6318
- };
6319
- case "24":
6320
- return {
6321
- _id: r,
6322
- meta: {
6323
- type: "persona"
6324
- }
6325
- };
6326
- case "70":
6327
- return {
6328
- _id: r,
6329
- meta: {
6330
- type: "profile"
6331
- }
6332
- };
6333
- case "71":
6334
- return {
6335
- _id: r,
6336
- meta: {
6337
- type: "checkin"
6338
- }
6339
- };
6290
+ if (e)
6291
+ switch ((n = e == null ? void 0 : e.meta) == null ? void 0 : n.type) {
6292
+ case "video":
6293
+ case "image":
6294
+ case "event":
6295
+ case "persona":
6296
+ case "profile":
6297
+ case "audio":
6298
+ case "file":
6299
+ return this.source;
6300
+ default: {
6301
+ const r = this.$sdk.utils.id(this.source);
6302
+ if (!r)
6303
+ return;
6304
+ var t = r.slice(8, 10);
6305
+ switch (t) {
6306
+ case "69":
6307
+ return {
6308
+ _id: r,
6309
+ meta: {
6310
+ type: "image"
6311
+ }
6312
+ };
6313
+ case "76":
6314
+ return {
6315
+ _id: r,
6316
+ meta: {
6317
+ type: "video"
6318
+ }
6319
+ };
6320
+ case "24":
6321
+ return {
6322
+ _id: r,
6323
+ meta: {
6324
+ type: "persona"
6325
+ }
6326
+ };
6327
+ case "70":
6328
+ return {
6329
+ _id: r,
6330
+ meta: {
6331
+ type: "profile"
6332
+ }
6333
+ };
6334
+ case "71":
6335
+ return {
6336
+ _id: r,
6337
+ meta: {
6338
+ type: "checkin"
6339
+ }
6340
+ };
6341
+ }
6342
+ return r;
6340
6343
  }
6341
- return r;
6342
6344
  }
6343
- }
6344
6345
  },
6345
6346
  type() {
6346
6347
  var e, t;
@@ -6356,40 +6357,42 @@ const X_ = /* @__PURE__ */ M(J_, [["render", Z_], ["__scopeId", "data-v-677f555b
6356
6357
  function tv(e, t, n, r, s, i) {
6357
6358
  const a = y("ux-image"), l = y("ux-icon");
6358
6359
  return o(), m("td", ev, [
6359
- i.type == "image" || i.type == "video" ? (o(), m("div", {
6360
- key: 0,
6361
- onClick: t[0] || (t[0] = B((u) => i.clicked(e.value), ["stop", "prevent"])),
6362
- class: "image-wrapper"
6363
- }, [
6364
- c(a, {
6365
- lazy: "",
6366
- item: i.imageSource,
6367
- type: i.type,
6368
- width: 100,
6369
- height: 100
6370
- }, null, 8, ["item", "type"])
6371
- ])) : i.type === "audio" ? (o(), k(l, {
6372
- key: 1,
6373
- icon: "fa-music"
6374
- })) : i.type === "file" ? (o(), k(l, {
6375
- key: 2,
6376
- icon: "fa-file"
6377
- })) : (o(), m("div", {
6378
- key: 3,
6379
- onClick: t[1] || (t[1] = B((u) => i.clicked(e.value), ["stop", "prevent"])),
6380
- class: "image-wrapper"
6381
- }, [
6382
- c(a, {
6383
- lazy: "",
6384
- item: i.imageSource,
6385
- type: i.type,
6386
- width: 100,
6387
- height: 100
6388
- }, null, 8, ["item", "type"])
6389
- ]))
6360
+ i.imageSource ? (o(), m(D, { key: 0 }, [
6361
+ i.type == "image" || i.type == "video" ? (o(), m("div", {
6362
+ key: 0,
6363
+ onClick: t[0] || (t[0] = B((u) => i.clicked(e.value), ["stop", "prevent"])),
6364
+ class: "image-wrapper"
6365
+ }, [
6366
+ c(a, {
6367
+ lazy: "",
6368
+ item: i.imageSource,
6369
+ type: i.type,
6370
+ width: 100,
6371
+ height: 100
6372
+ }, null, 8, ["item", "type"])
6373
+ ])) : i.type === "audio" ? (o(), k(l, {
6374
+ key: 1,
6375
+ icon: "fa-music"
6376
+ })) : i.type === "file" ? (o(), k(l, {
6377
+ key: 2,
6378
+ icon: "fa-file"
6379
+ })) : (o(), m("div", {
6380
+ key: 3,
6381
+ onClick: t[1] || (t[1] = B((u) => i.clicked(e.value), ["stop", "prevent"])),
6382
+ class: "image-wrapper"
6383
+ }, [
6384
+ c(a, {
6385
+ lazy: "",
6386
+ item: i.imageSource,
6387
+ type: i.type,
6388
+ width: 100,
6389
+ height: 100
6390
+ }, null, 8, ["item", "type"])
6391
+ ]))
6392
+ ], 64)) : _("", !0)
6390
6393
  ]);
6391
6394
  }
6392
- const nv = /* @__PURE__ */ M(Q_, [["render", tv], ["__scopeId", "data-v-c5af391d"]]), iv = {
6395
+ const nv = /* @__PURE__ */ M(Q_, [["render", tv], ["__scopeId", "data-v-0d557d14"]]), iv = {
6393
6396
  mixins: [Te],
6394
6397
  computed: {
6395
6398
  string() {
@@ -22262,16 +22265,17 @@ const SC = {
22262
22265
  },
22263
22266
  checkCriteriaType: {
22264
22267
  immediate: !0,
22265
- handler() {
22268
+ async handler() {
22266
22269
  var r;
22267
22270
  const e = this, t = e.extraCriteria;
22268
22271
  let n = [];
22269
22272
  if (t) {
22270
- const s = e.glossary, i = (r = e.field) == null ? void 0 : r.referenceType;
22271
- let a = s[i];
22273
+ const s = (r = e.field) == null ? void 0 : r.referenceType;
22274
+ s && await e.$glossary.ensure(s);
22275
+ let a = e.glossary[s];
22272
22276
  if (a) {
22273
22277
  let l = a.fields || [], u = [];
22274
- switch (i) {
22278
+ switch (s) {
22275
22279
  case "assignment":
22276
22280
  u = wh(e);
22277
22281
  break;
@@ -22304,7 +22308,7 @@ const SC = {
22304
22308
  }
22305
22309
  switch (n = e.$sdk.utils.mapFields(n, {
22306
22310
  includeArrayDelimeter: !0
22307
- }), i) {
22311
+ }), console.log("RECREATED CRITERIA FIELDS", n), s) {
22308
22312
  case "stat":
22309
22313
  n = [
22310
22314
  {
@@ -22389,7 +22393,9 @@ const SC = {
22389
22393
  return this.$glossary.hash;
22390
22394
  },
22391
22395
  checkCriteriaType() {
22392
- return [this.extraCriteria, this.referenceType];
22396
+ var n;
22397
+ const e = this.referenceType, t = e ? (n = this.glossary[e]) == null ? void 0 : n.definedFields : void 0;
22398
+ return [this.extraCriteria, e, t];
22393
22399
  },
22394
22400
  modelKey() {
22395
22401
  return this.model.key;
@@ -22731,7 +22737,7 @@ const SC = {
22731
22737
  CountrySelect: Ql,
22732
22738
  TimezoneSelect: Wm
22733
22739
  }
22734
- }, OC = (e) => (je("data-v-d82ed29d"), e = e(), qe(), e), DC = {
22740
+ }, OC = (e) => (je("data-v-6625b57f"), e = e(), qe(), e), DC = {
22735
22741
  key: 0,
22736
22742
  class: "filter-condition"
22737
22743
  }, CC = { key: 0 }, EC = { key: 1 }, MC = { key: 2 }, VC = { key: 3 }, IC = { key: 4 }, FC = { key: 5 }, AC = { key: 6 }, NC = { key: 7 }, $C = { key: 8 }, LC = { key: 9 }, PC = { key: 10 }, RC = /* @__PURE__ */ OC(() => /* @__PURE__ */ T("label", null, "Where:", -1));
@@ -23038,7 +23044,7 @@ function UC(e, t, n, r, s, i) {
23038
23044
  ], 64)) : _("", !0)
23039
23045
  ])) : _("", !0);
23040
23046
  }
23041
- const jC = /* @__PURE__ */ M(SC, [["render", UC], ["__scopeId", "data-v-d82ed29d"]]);
23047
+ const jC = /* @__PURE__ */ M(SC, [["render", UC], ["__scopeId", "data-v-6625b57f"]]);
23042
23048
  function qC(e, t) {
23043
23049
  let n = [];
23044
23050
  if (t.length) {
@@ -31732,7 +31738,7 @@ const Oh = /* @__PURE__ */ M(LA, [["render", PA], ["__scopeId", "data-v-e6afec75
31732
31738
  return ((e = this.form) == null ? void 0 : e.fields) || [];
31733
31739
  }
31734
31740
  }
31735
- }, Dh = (e) => (je("data-v-495d5e95"), e = e(), qe(), e), qA = /* @__PURE__ */ Dh(() => /* @__PURE__ */ T("h3", null, "An error occurred", -1)), BA = { key: 0 }, zA = { key: 1 }, WA = { key: 2 }, HA = { class: "intent-submit" }, GA = {
31741
+ }, Dh = (e) => (je("data-v-cca37188"), e = e(), qe(), e), qA = /* @__PURE__ */ Dh(() => /* @__PURE__ */ T("h3", null, "An error occurred", -1)), BA = { key: 0 }, zA = { key: 1 }, WA = { key: 2 }, HA = { class: "intent-submit" }, GA = {
31736
31742
  key: 0,
31737
31743
  class: "multistep-form"
31738
31744
  }, YA = { class: "multistep-form-sections" }, JA = { class: "multistep-fields" }, KA = { class: "multistep-controls" }, ZA = ["tooltip"], XA = ["tooltip"], QA = { class: "multistep-progress" }, eN = {
@@ -31811,13 +31817,14 @@ function iN(e, t, n, r, s, i) {
31811
31817
  T("div", HA, [
31812
31818
  c(l, {
31813
31819
  color: "primary",
31820
+ loading: s.processing,
31814
31821
  onClick: i.confirmIntention
31815
31822
  }, {
31816
31823
  default: f(() => [
31817
31824
  O(" Confirm Payment ")
31818
31825
  ]),
31819
31826
  _: 1
31820
- }, 8, ["onClick"])
31827
+ }, 8, ["loading", "onClick"])
31821
31828
  ])
31822
31829
  ], 64)) : _("", !0)
31823
31830
  ], 64)) : (o(), m(D, { key: 3 }, [
@@ -31961,7 +31968,7 @@ function iN(e, t, n, r, s, i) {
31961
31968
  ], 64))
31962
31969
  ], 2);
31963
31970
  }
31964
- const rN = /* @__PURE__ */ M(jA, [["render", iN], ["__scopeId", "data-v-495d5e95"]]), sN = "init", zc = "ready", aN = "processing", lN = "success", oN = "error", uN = {
31971
+ const rN = /* @__PURE__ */ M(jA, [["render", iN], ["__scopeId", "data-v-cca37188"]]), sN = "init", zc = "ready", aN = "processing", lN = "success", oN = "error", uN = {
31965
31972
  name: "PaymentMethodForm",
31966
31973
  components: {
31967
31974
  StripeElements: fm,