@qikdev/vue-ui 0.3.5 → 0.3.7

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.5";
7
+ const Gh = "0.3.6";
8
8
  class yn extends Error {
9
9
  }
10
10
  class Yh extends yn {
@@ -14878,7 +14878,7 @@ function CT(e, t, n, r, s, i) {
14878
14878
  })) : _("", !0)
14879
14879
  ], 34);
14880
14880
  }
14881
- const zm = /* @__PURE__ */ M(xT, [["render", CT], ["__scopeId", "data-v-0eb75c21"]]), ET = {
14881
+ const zm = /* @__PURE__ */ M(xT, [["render", CT], ["__scopeId", "data-v-6a3ae8ed"]]), ET = {
14882
14882
  components: {
14883
14883
  Search: Qt,
14884
14884
  ContentSearch: zm
@@ -22262,16 +22262,17 @@ const SC = {
22262
22262
  },
22263
22263
  checkCriteriaType: {
22264
22264
  immediate: !0,
22265
- handler() {
22265
+ async handler() {
22266
22266
  var r;
22267
22267
  const e = this, t = e.extraCriteria;
22268
22268
  let n = [];
22269
22269
  if (t) {
22270
- const s = e.glossary, i = (r = e.field) == null ? void 0 : r.referenceType;
22271
- let a = s[i];
22270
+ const s = (r = e.field) == null ? void 0 : r.referenceType;
22271
+ s && await e.$glossary.ensure(s);
22272
+ let a = e.glossary[s];
22272
22273
  if (a) {
22273
22274
  let l = a.fields || [], u = [];
22274
- switch (i) {
22275
+ switch (s) {
22275
22276
  case "assignment":
22276
22277
  u = wh(e);
22277
22278
  break;
@@ -22304,7 +22305,7 @@ const SC = {
22304
22305
  }
22305
22306
  switch (n = e.$sdk.utils.mapFields(n, {
22306
22307
  includeArrayDelimeter: !0
22307
- }), i) {
22308
+ }), console.log("RECREATED CRITERIA FIELDS", n), s) {
22308
22309
  case "stat":
22309
22310
  n = [
22310
22311
  {
@@ -22389,7 +22390,9 @@ const SC = {
22389
22390
  return this.$glossary.hash;
22390
22391
  },
22391
22392
  checkCriteriaType() {
22392
- return [this.extraCriteria, this.referenceType];
22393
+ var n;
22394
+ const e = this.referenceType, t = e ? (n = this.glossary[e]) == null ? void 0 : n.definedFields : void 0;
22395
+ return [this.extraCriteria, e, t];
22393
22396
  },
22394
22397
  modelKey() {
22395
22398
  return this.model.key;
@@ -22731,7 +22734,7 @@ const SC = {
22731
22734
  CountrySelect: Ql,
22732
22735
  TimezoneSelect: Wm
22733
22736
  }
22734
- }, OC = (e) => (je("data-v-d82ed29d"), e = e(), qe(), e), DC = {
22737
+ }, OC = (e) => (je("data-v-6625b57f"), e = e(), qe(), e), DC = {
22735
22738
  key: 0,
22736
22739
  class: "filter-condition"
22737
22740
  }, 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 +23041,7 @@ function UC(e, t, n, r, s, i) {
23038
23041
  ], 64)) : _("", !0)
23039
23042
  ])) : _("", !0);
23040
23043
  }
23041
- const jC = /* @__PURE__ */ M(SC, [["render", UC], ["__scopeId", "data-v-d82ed29d"]]);
23044
+ const jC = /* @__PURE__ */ M(SC, [["render", UC], ["__scopeId", "data-v-6625b57f"]]);
23042
23045
  function qC(e, t) {
23043
23046
  let n = [];
23044
23047
  if (t.length) {
@@ -32834,7 +32837,7 @@ const RN = /* @__PURE__ */ M($N, [["render", PN], ["__scopeId", "data-v-cb997d0e
32834
32837
  class: "display-grid"
32835
32838
  }, r$ = { class: "display-cell" }, s$ = { key: 1 }, a$ = { class: "display-cell" }, l$ = ["innerHTML"], o$ = ["innerHTML"], u$ = { key: 1 }, d$ = { key: 1 }, c$ = ["href"], f$ = { key: 1 }, m$ = ["href"], h$ = ["href"], p$ = { key: 1 }, y$ = ["href"], g$ = { key: 1 };
32836
32839
  function _$(e, t, n, r, s, i) {
32837
- const a = y("field-group"), l = y("v-ace-editor"), u = y("flex-cell"), d = y("ux-icon"), h = y("ux-button"), p = y("flex-row"), g = y("ux-image"), v = y("ux-video"), x = y("item"), w = y("error-boundary");
32840
+ const a = y("field-group"), l = y("qik-code-editor"), u = y("flex-cell"), d = y("ux-icon"), h = y("ux-button"), p = y("flex-row"), g = y("ux-image"), v = y("ux-video"), x = y("item"), w = y("error-boundary");
32838
32841
  return i.visible ? (o(), m("div", {
32839
32842
  key: 0,
32840
32843
  class: L(["ux-field-render", i.classes])
@@ -32885,22 +32888,18 @@ function _$(e, t, n, r, s, i) {
32885
32888
  c(l, {
32886
32889
  readonly: !0,
32887
32890
  class: "editor-wrap",
32888
- value: S,
32889
- options: { useWorker: !0 },
32890
- lang: n.field.syntax,
32891
- theme: "tomorrow_night_eighties",
32891
+ modelValue: S,
32892
+ syntax: n.field.syntax,
32892
32893
  style: { "min-height": "300px" }
32893
- }, null, 8, ["value", "lang"])
32894
+ }, null, 8, ["modelValue", "syntax"])
32894
32895
  ]))), 256)) : (o(), m("div", JN, [
32895
32896
  c(l, {
32896
32897
  readonly: !0,
32897
32898
  class: "editor-wrap",
32898
- value: i.fieldModel,
32899
- options: { useWorker: !0 },
32900
- lang: n.field.syntax,
32901
- theme: "tomorrow_night_eighties",
32899
+ modelValue: i.fieldModel,
32900
+ syntax: n.field.syntax,
32902
32901
  style: { "min-height": "300px" }
32903
- }, null, 8, ["value", "lang"])
32902
+ }, null, 8, ["modelValue", "syntax"])
32904
32903
  ]))
32905
32904
  ], 64)) : i.widget === "password" ? (o(), m("div", KN, [
32906
32905
  i.multiValue ? (o(!0), m(D, { key: 0 }, A(i.fieldModel, (S, C) => (o(), k(p, {
@@ -33124,7 +33123,7 @@ function _$(e, t, n, r, s, i) {
33124
33123
  ], 64))
33125
33124
  ], 2)) : _("", !0);
33126
33125
  }
33127
- const Eh = /* @__PURE__ */ M(UN, [["render", _$], ["__scopeId", "data-v-fd572525"]]), v$ = {
33126
+ const Eh = /* @__PURE__ */ M(UN, [["render", _$], ["__scopeId", "data-v-3047313a"]]), v$ = {
33128
33127
  props: {
33129
33128
  parentModel: {
33130
33129
  type: Object