@qikdev/vue-ui 0.2.154 → 0.2.156

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 ci, openBlock as o, createElementBlock as d, renderSlot as z, createCommentVNode as _, normalizeClass as L, useSlots as Ho, reactive as Or, provide as Nr, resolveComponent as y, Fragment as S, unref as Bn, createBlock as k, withCtx as h, createVNode as m, renderList as $, toDisplayString as v, withDirectives as W, vShow as ur, createElementVNode as x, withModifiers as B, createTextVNode as O, 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.154";
4
+ const Ko = "0.2.156";
5
5
  class Lt extends Error {
6
6
  }
7
7
  class Yo extends Lt {
@@ -8431,7 +8431,7 @@ function fg(e, t, n, i, s, r) {
8431
8431
  }, null, 12, cg))
8432
8432
  ], 6);
8433
8433
  }
8434
- const mg = /* @__PURE__ */ V(ug, [["render", fg], ["__scopeId", "data-v-1ee2da0f"]]);
8434
+ const mg = /* @__PURE__ */ V(ug, [["render", fg], ["__scopeId", "data-v-f5b08ece"]]);
8435
8435
  const hg = {
8436
8436
  props: {
8437
8437
  item: {
@@ -15119,56 +15119,56 @@ const Fk = {
15119
15119
  }) ? (console.log("has custom none option"), !1) : !0 : !1;
15120
15120
  },
15121
15121
  fields() {
15122
- const e = this;
15123
- if (!e.definition)
15122
+ const e = this, t = e.definition, n = e.field.contextDefinition;
15123
+ if (!t)
15124
15124
  return [];
15125
- const t = e.definition.definesType === "submission";
15126
- var n = [...e.definition.fields], i = e.definition.definedFields || [];
15127
- if (i.length)
15128
- if (t) {
15129
- var s = {
15125
+ const i = t.definesType === "submission";
15126
+ var s = [...t.fields], r = n ? n.fields : t.definedFields || [];
15127
+ if (r.length)
15128
+ if (i) {
15129
+ var a = {
15130
15130
  title: "Form Data",
15131
15131
  minimum: 1,
15132
15132
  maximum: 1,
15133
15133
  key: "formData",
15134
15134
  asObject: !0,
15135
15135
  type: "group",
15136
- fields: i
15136
+ fields: r
15137
15137
  };
15138
- n.push(s);
15139
- var r = {
15138
+ s.push(a);
15139
+ var l = {
15140
15140
  title: "Data",
15141
15141
  minimum: 1,
15142
15142
  maximum: 1,
15143
15143
  key: "data",
15144
15144
  asObject: !0,
15145
15145
  type: "group",
15146
- fields: i.map(function(u) {
15147
- return u.type === "reference" && (u = JSON.parse(JSON.stringify(u)), delete u.fields), u;
15146
+ fields: r.map(function(c) {
15147
+ return c.type === "reference" && (c = JSON.parse(JSON.stringify(c)), delete c.fields), c;
15148
15148
  })
15149
15149
  };
15150
- n.push(r);
15150
+ s.push(l);
15151
15151
  } else {
15152
- var r = {
15153
- title: `${e.definition.title}`,
15152
+ var l = {
15153
+ title: `${t.title}`,
15154
15154
  minimum: 1,
15155
15155
  maximum: 1,
15156
15156
  key: "data",
15157
15157
  asObject: !0,
15158
15158
  type: "group",
15159
- fields: i
15159
+ fields: r
15160
15160
  };
15161
- n.push(r);
15161
+ s.push(l);
15162
15162
  }
15163
- var a = e.$sdk.utils.mapFields(n).filter(function(l) {
15164
- var u = l.type == "group" && l.asObject && l.minimum == 1 && l.maximum == 1;
15165
- return !u;
15166
- }).map(function(l) {
15167
- return l.title = l.titles.join(" › "), l;
15168
- }).sort(function(l, u) {
15169
- return l.title < u.title ? -1 : 1;
15163
+ var u = e.$sdk.utils.mapFields(s).filter(function(f) {
15164
+ var c = f.type == "group" && f.asObject && f.minimum == 1 && f.maximum == 1;
15165
+ return !c;
15166
+ }).map(function(f) {
15167
+ return f.title = f.titles.join(" › "), f;
15168
+ }).sort(function(f, c) {
15169
+ return f.title < c.title ? -1 : 1;
15170
15170
  });
15171
- return a;
15171
+ return u;
15172
15172
  },
15173
15173
  fieldOptions() {
15174
15174
  return this.fields.map(function(t) {
@@ -15253,7 +15253,7 @@ function Bk(e, t, n, i, s, r) {
15253
15253
  ])
15254
15254
  ], 2);
15255
15255
  }
15256
- const ra = /* @__PURE__ */ V(Fk, [["render", Bk], ["__scopeId", "data-v-2ba63156"]]);
15256
+ const ra = /* @__PURE__ */ V(Fk, [["render", Bk], ["__scopeId", "data-v-c6a64d3a"]]);
15257
15257
  function zk(e, t, n) {
15258
15258
  return e + (t - e) * (n / 100);
15259
15259
  }