@qikdev/vue-ui 0.2.289 → 0.2.291

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.umd.js CHANGED
@@ -7,7 +7,7 @@
7
7
  t((V["@qikdev/vue-ui"] = {}), V.Vue, V.sdk));
8
8
  })(this, function (V, t, $r) {
9
9
  "use strict";
10
- const sc = "0.2.289";
10
+ const sc = "0.2.291";
11
11
  class ct extends Error {}
12
12
  class cc extends ct {
13
13
  constructor(n) {
@@ -7191,6 +7191,9 @@
7191
7191
  return e.$sdk.api.generateEndpointURL(`/smartlist/${n}/select`);
7192
7192
  }
7193
7193
  },
7194
+ hasAuthenticationToken() {
7195
+ return this.$sdk.auth.getCurrentToken();
7196
+ },
7194
7197
  hasAsyncOptions() {
7195
7198
  var e;
7196
7199
  if (this.asyncOptionsURL) return !0;
@@ -7199,7 +7202,7 @@
7199
7202
  return !1;
7200
7203
  switch (this.field.widget) {
7201
7204
  case "select":
7202
- if (this.user) return !0;
7205
+ if (this.hasAuthenticationToken) return !0;
7203
7206
  break;
7204
7207
  default:
7205
7208
  return !1;
@@ -7410,16 +7413,16 @@
7410
7413
  r = e.$sdk.utils.id((o == null ? void 0 : o._id) || o);
7411
7414
  return { title: l, value: i, _id: r };
7412
7415
  });
7413
- } else if (e.$sdk.auth.getCurrentToken()) {
7414
- const o = e.field.referenceType,
7415
- l = {
7416
+ } else if (e.hasAuthenticationToken) {
7417
+ const n = e.field.referenceType,
7418
+ o = {
7416
7419
  filter: e.field.lockFilter,
7417
7420
  sort: { key: "title", direction: "asc", type: "string" },
7418
7421
  page: { size: 1e3 },
7419
7422
  },
7420
- { items: i } = await e.$sdk.content.list(o, l);
7421
- e.dynamicOptions = i.map(function ({ _id: r, title: a }) {
7422
- return { value: r, title: a, _id: r };
7423
+ { items: l } = await e.$sdk.content.list(n, o);
7424
+ e.dynamicOptions = l.map(function ({ _id: i, title: r }) {
7425
+ return { value: i, title: r, _id: i };
7423
7426
  });
7424
7427
  }
7425
7428
  e.asyncOptionsAreLoading = !1;
@@ -18907,16 +18910,13 @@
18907
18910
  var l;
18908
18911
  const e = this,
18909
18912
  n = e.extraCriteria;
18910
- console.log("GOT THE EXTRA", n);
18911
18913
  let o = [];
18912
18914
  if (n) {
18913
18915
  e.glossary = await e.$sdk.content.glossary({ hash: !0 });
18914
18916
  const i = e.glossary,
18915
- r = (l = e.field) == null ? void 0 : l.referenceType;
18916
- console.log("REFERENCE TYPE", r);
18917
- const a = i[r];
18917
+ r = (l = e.field) == null ? void 0 : l.referenceType,
18918
+ a = i[r];
18918
18919
  if (a) {
18919
- console.log("MATCHED REFERENCE", a);
18920
18920
  let s = a.fields || [],
18921
18921
  c = [];
18922
18922
  switch (r) {
@@ -19264,7 +19264,7 @@
19264
19264
  },
19265
19265
  },
19266
19266
  qw = (e) => (
19267
- t.pushScopeId("data-v-9d835b9a"), (e = e()), t.popScopeId(), e
19267
+ t.pushScopeId("data-v-8b387cdb"), (e = e()), t.popScopeId(), e
19268
19268
  ),
19269
19269
  Hw = { key: 0, class: "filter-condition" },
19270
19270
  Ww = { key: 0 },
@@ -19976,7 +19976,7 @@
19976
19976
  }
19977
19977
  const rC = g(zw, [
19978
19978
  ["render", oC],
19979
- ["__scopeId", "data-v-9d835b9a"],
19979
+ ["__scopeId", "data-v-8b387cdb"],
19980
19980
  ]),
19981
19981
  DM = "",
19982
19982
  lC = {
@@ -20746,6 +20746,7 @@
20746
20746
  n = e.definition,
20747
20747
  o = (u = e.field) == null ? void 0 : u.contextDefinition;
20748
20748
  if (!n) return [];
20749
+ if (e.$sdk.utils.getAllFields) return e.$sdk.utils.getAllFields(n);
20749
20750
  const l = n.definesType === "submission";
20750
20751
  var i = [...n.fields],
20751
20752
  r = o ? o.fields : n.definedFields || [];
@@ -20965,7 +20966,7 @@
20965
20966
  }
20966
20967
  const ds = g(EC, [
20967
20968
  ["render", IC],
20968
- ["__scopeId", "data-v-e4654800"],
20969
+ ["__scopeId", "data-v-2ba39d6e"],
20969
20970
  ]),
20970
20971
  IM = "";
20971
20972
  function $C(e, n, o) {