@qikdev/vue-ui 0.2.124 → 0.2.125
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 +21 -14
- 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 _a, onMounted as ga, onBeforeUnmount as Uo, watch as Ci, computed as di, openBlock as o, createElementBlock as d, renderSlot as B, createCommentVNode as _, useSlots as jo, reactive as Sr, provide as $r, resolveComponent as y, normalizeClass as U, Fragment as w, unref as Bn, createBlock as k, withCtx as h, createVNode as m, renderList as $, toDisplayString as v, withDirectives as W, vShow as ci, createElementVNode as x, withModifiers as K, createTextVNode as S, h as fi, resolveDynamicComponent as Ot, mergeProps as Ei, toHandlers as va, vModelSelect as Tt, pushScopeId as tt, popScopeId as nt, normalizeStyle as ut, Teleport as Ro, vModelText as se, withKeys as ge, TransitionGroup as Bo, nextTick as ba, vModelDynamic as zn } from "vue";
|
|
3
3
|
import { EventDispatcher as zo } from "@qikdev/sdk";
|
|
4
|
-
const Ho = "0.2.
|
|
4
|
+
const Ho = "0.2.125";
|
|
5
5
|
class Lt extends Error {
|
|
6
6
|
}
|
|
7
7
|
class qo extends Lt {
|
|
@@ -8192,6 +8192,9 @@ const ug = {
|
|
|
8192
8192
|
crop: {
|
|
8193
8193
|
type: Boolean
|
|
8194
8194
|
},
|
|
8195
|
+
cover: {
|
|
8196
|
+
type: Boolean
|
|
8197
|
+
},
|
|
8195
8198
|
format: {
|
|
8196
8199
|
type: String
|
|
8197
8200
|
},
|
|
@@ -8290,7 +8293,7 @@ const ug = {
|
|
|
8290
8293
|
},
|
|
8291
8294
|
imageStyle() {
|
|
8292
8295
|
var e = {};
|
|
8293
|
-
return this.crop
|
|
8296
|
+
return !this.crop && !this.cover && (e["object-fit"] = "contain"), this.inline ? e.maxWidth = "100%" : (e.width = "100%", e.height = "100%", e.top = "0", e.left = "0", e.position = "absolute"), e;
|
|
8294
8297
|
},
|
|
8295
8298
|
dimensionWidth() {
|
|
8296
8299
|
return this.imageWidth && this.imageHeight ? this.imageWidth : this.modelWidth;
|
|
@@ -8326,7 +8329,7 @@ function fg(e, t, n, i, s, r) {
|
|
|
8326
8329
|
}, null, 12, cg))
|
|
8327
8330
|
], 6);
|
|
8328
8331
|
}
|
|
8329
|
-
const mg = /* @__PURE__ */ V(ug, [["render", fg], ["__scopeId", "data-v-
|
|
8332
|
+
const mg = /* @__PURE__ */ V(ug, [["render", fg], ["__scopeId", "data-v-0b582a12"]]);
|
|
8330
8333
|
const hg = {
|
|
8331
8334
|
props: {
|
|
8332
8335
|
item: {
|
|
@@ -18794,7 +18797,8 @@ const iT = {
|
|
|
18794
18797
|
mounted: !1,
|
|
18795
18798
|
subFormState: {},
|
|
18796
18799
|
isDirty: !1,
|
|
18797
|
-
isDirtyBeforeInput: !1
|
|
18800
|
+
isDirtyBeforeInput: !1,
|
|
18801
|
+
appeared: !1
|
|
18798
18802
|
};
|
|
18799
18803
|
},
|
|
18800
18804
|
inject: ["parentFormElement", "directParentModel", "directFormElement", "additionalContext"],
|
|
@@ -18832,9 +18836,7 @@ const iT = {
|
|
|
18832
18836
|
},
|
|
18833
18837
|
checkDirtyState() {
|
|
18834
18838
|
const e = this;
|
|
18835
|
-
var t = e.fieldModel, n = e.ignoreDefaults || t || t === !1 || t === 0, i = e.fieldDefaultValue();
|
|
18836
|
-
console.log("DEFAULT DATA", e.field.title, i);
|
|
18837
|
-
var s = JSON.stringify(e.cleanOutput(t)), r = JSON.stringify(e.cleanOutput(i));
|
|
18839
|
+
var t = e.fieldModel, n = e.ignoreDefaults || t || t === !1 || t === 0, i = e.fieldDefaultValue(), s = JSON.stringify(e.cleanOutput(t)), r = JSON.stringify(e.cleanOutput(i));
|
|
18838
18840
|
n && s != r ? (e.isDirty = !0, e.isDirtyBeforeInput = !0, e.fieldModel = t) : (e.isDirty = !1, e.isDirtyBeforeInput = !1, e.fieldModel = i), e.validateResults = e.$sdk.content.validateField(e.fieldModel, e.actualField);
|
|
18839
18841
|
},
|
|
18840
18842
|
groupStateAltered(e) {
|
|
@@ -18880,8 +18882,9 @@ const iT = {
|
|
|
18880
18882
|
mounted(e) {
|
|
18881
18883
|
e ? this.$emit("field:mount", this) : this.$emit("field:unmount", this);
|
|
18882
18884
|
},
|
|
18883
|
-
visible(e) {
|
|
18884
|
-
|
|
18885
|
+
visible(e, t) {
|
|
18886
|
+
const n = this;
|
|
18887
|
+
e ? n.untouch() : (n.touched = !1, n.expressions && n.expressions.value ? n.fieldModel = n.getExpressionValue : n.ignoreDefaults || (n.fieldModel = void 0));
|
|
18885
18888
|
},
|
|
18886
18889
|
focussed(e) {
|
|
18887
18890
|
e ? this.$emit("field:focus", this) : this.$emit("field:blur", this);
|
|
@@ -18907,7 +18910,8 @@ const iT = {
|
|
|
18907
18910
|
modelValue(e, t) {
|
|
18908
18911
|
this.watching && (this.model = e, this.touched = !1, this.checkDirtyState());
|
|
18909
18912
|
},
|
|
18910
|
-
getExpressionHide(e) {
|
|
18913
|
+
async getExpressionHide(e, t) {
|
|
18914
|
+
!e && t && (this.appeared = !0, await this.$nextTick(), this.appeared = !1);
|
|
18911
18915
|
},
|
|
18912
18916
|
getExpressionDefaultValue(e) {
|
|
18913
18917
|
this.isDirtyBeforeInput || this.touched && this.dirty || (this.fieldModel = e);
|
|
@@ -18917,6 +18921,9 @@ const iT = {
|
|
|
18917
18921
|
}
|
|
18918
18922
|
},
|
|
18919
18923
|
computed: {
|
|
18924
|
+
shouldIgnoreDefaults() {
|
|
18925
|
+
return this.ignoreDefaults && !this.appeared;
|
|
18926
|
+
},
|
|
18920
18927
|
fieldPath() {
|
|
18921
18928
|
return this.currentTrail.join(".");
|
|
18922
18929
|
},
|
|
@@ -19208,7 +19215,7 @@ function aT(e, t, n, i, s, r) {
|
|
|
19208
19215
|
paymentConfiguration: n.paymentConfiguration,
|
|
19209
19216
|
includeOfficeOnly: n.includeOfficeOnly,
|
|
19210
19217
|
submission: n.submission,
|
|
19211
|
-
ignoreDefaults:
|
|
19218
|
+
ignoreDefaults: r.shouldIgnoreDefaults,
|
|
19212
19219
|
sandbox: n.sandbox,
|
|
19213
19220
|
"onForm:state": r.groupStateAltered,
|
|
19214
19221
|
ref: "group",
|
|
@@ -19223,7 +19230,7 @@ function aT(e, t, n, i, s, r) {
|
|
|
19223
19230
|
paymentConfiguration: n.paymentConfiguration,
|
|
19224
19231
|
includeOfficeOnly: n.includeOfficeOnly,
|
|
19225
19232
|
submission: n.submission,
|
|
19226
|
-
ignoreDefaults:
|
|
19233
|
+
ignoreDefaults: r.shouldIgnoreDefaults,
|
|
19227
19234
|
sandbox: n.sandbox,
|
|
19228
19235
|
"onForm:state": r.groupStateAltered,
|
|
19229
19236
|
ref: "group",
|
|
@@ -19240,7 +19247,7 @@ function aT(e, t, n, i, s, r) {
|
|
|
19240
19247
|
paymentConfiguration: n.paymentConfiguration,
|
|
19241
19248
|
includeOfficeOnly: n.includeOfficeOnly,
|
|
19242
19249
|
submission: n.submission,
|
|
19243
|
-
ignoreDefaults:
|
|
19250
|
+
ignoreDefaults: r.shouldIgnoreDefaults,
|
|
19244
19251
|
sandbox: n.sandbox,
|
|
19245
19252
|
"onForm:state": r.groupStateAltered,
|
|
19246
19253
|
ref: "group",
|
|
@@ -19405,7 +19412,7 @@ function aT(e, t, n, i, s, r) {
|
|
|
19405
19412
|
r.error && s.validateResults.message ? (o(), d("div", sT, v(s.validateResults.message), 1)) : _("", !0)
|
|
19406
19413
|
], 34)) : _("", !0);
|
|
19407
19414
|
}
|
|
19408
|
-
const Gi = /* @__PURE__ */ V(iT, [["render", aT], ["__scopeId", "data-v-
|
|
19415
|
+
const Gi = /* @__PURE__ */ V(iT, [["render", aT], ["__scopeId", "data-v-59397424"]]);
|
|
19409
19416
|
function lT(e, t, n, i) {
|
|
19410
19417
|
var s = -1, r = e == null ? 0 : e.length;
|
|
19411
19418
|
for (i && r && (n = e[++s]); ++s < r; )
|