@qikdev/vue-ui 0.2.155 → 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 +27 -27
- package/dist/lib.es.js.map +1 -1
- package/dist/lib.umd.js +2 -2
- package/dist/lib.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
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.
|
|
4
|
+
const Ko = "0.2.156";
|
|
5
5
|
class Lt extends Error {
|
|
6
6
|
}
|
|
7
7
|
class Yo extends Lt {
|
|
@@ -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 (!
|
|
15122
|
+
const e = this, t = e.definition, n = e.field.contextDefinition;
|
|
15123
|
+
if (!t)
|
|
15124
15124
|
return [];
|
|
15125
|
-
const
|
|
15126
|
-
var
|
|
15127
|
-
if (
|
|
15128
|
-
if (
|
|
15129
|
-
var
|
|
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:
|
|
15136
|
+
fields: r
|
|
15137
15137
|
};
|
|
15138
|
-
|
|
15139
|
-
var
|
|
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:
|
|
15147
|
-
return
|
|
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
|
-
|
|
15150
|
+
s.push(l);
|
|
15151
15151
|
} else {
|
|
15152
|
-
var
|
|
15153
|
-
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:
|
|
15159
|
+
fields: r
|
|
15160
15160
|
};
|
|
15161
|
-
|
|
15161
|
+
s.push(l);
|
|
15162
15162
|
}
|
|
15163
|
-
var
|
|
15164
|
-
var
|
|
15165
|
-
return !
|
|
15166
|
-
}).map(function(
|
|
15167
|
-
return
|
|
15168
|
-
}).sort(function(
|
|
15169
|
-
return
|
|
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
|
|
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-
|
|
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
|
}
|