@qikdev/vue-ui 0.2.112 → 0.2.113
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 +37 -15
- package/dist/lib.es.js.map +1 -1
- package/dist/lib.umd.js +3 -3
- 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 Si, ref as Yt, toRefs as ma, onMounted as ha, onBeforeUnmount as Ao, watch as Oi, computed as ui, openBlock as o, createElementBlock as d, renderSlot as G, createCommentVNode as _, useSlots as Mo, reactive as wr, provide as $r, resolveComponent as y, normalizeClass as P, Fragment as S, unref as Rn, createBlock as k, withCtx as m, createVNode as h, renderList as $, toDisplayString as b, createElementVNode as x, withModifiers as q, createTextVNode as O, h as di, resolveDynamicComponent as St, mergeProps as Ti, toHandlers as pa, withDirectives as K, vModelSelect as Ot, pushScopeId as ot, popScopeId as ut, normalizeStyle as at, Teleport as Io, vModelText as se, withKeys as ge, TransitionGroup as Do, nextTick as ya, vModelDynamic as Bn, vShow as Zi } from "vue";
|
|
3
3
|
import { EventDispatcher as Fo } from "@qikdev/sdk";
|
|
4
|
-
const $o = "0.2.
|
|
4
|
+
const $o = "0.2.113";
|
|
5
5
|
class $t extends Error {
|
|
6
6
|
}
|
|
7
7
|
class No extends $t {
|
|
@@ -15141,6 +15141,10 @@ const Mk = {
|
|
|
15141
15141
|
type: Boolean,
|
|
15142
15142
|
default: !1
|
|
15143
15143
|
},
|
|
15144
|
+
ignoreDefaults: {
|
|
15145
|
+
type: Boolean,
|
|
15146
|
+
default: !1
|
|
15147
|
+
},
|
|
15144
15148
|
includeOfficeOnly: {
|
|
15145
15149
|
type: Boolean,
|
|
15146
15150
|
default: !1
|
|
@@ -15336,13 +15340,14 @@ function Rk(e, t, n, i, s, r) {
|
|
|
15336
15340
|
ref: "form",
|
|
15337
15341
|
includeOfficeOnly: n.includeOfficeOnly,
|
|
15338
15342
|
submission: n.submission,
|
|
15343
|
+
ignoreDefaults: n.ignoreDefaults,
|
|
15339
15344
|
"onForm:state": r.stateChange,
|
|
15340
15345
|
parentModel: e.parentModel,
|
|
15341
15346
|
modelValue: e.model[A],
|
|
15342
15347
|
"onUpdate:modelValue": (W) => e.model[A] = W,
|
|
15343
15348
|
flex: r.sameLine,
|
|
15344
15349
|
fields: e.field.fields
|
|
15345
|
-
}, null, 8, ["trail", "includeOfficeOnly", "submission", "onForm:state", "parentModel", "modelValue", "onUpdate:modelValue", "flex", "fields"])
|
|
15350
|
+
}, null, 8, ["trail", "includeOfficeOnly", "submission", "ignoreDefaults", "onForm:state", "parentModel", "modelValue", "onUpdate:modelValue", "flex", "fields"])
|
|
15346
15351
|
]),
|
|
15347
15352
|
_: 2
|
|
15348
15353
|
}, 1536), [
|
|
@@ -15439,13 +15444,14 @@ function Rk(e, t, n, i, s, r) {
|
|
|
15439
15444
|
trail: n.trail,
|
|
15440
15445
|
includeOfficeOnly: n.includeOfficeOnly,
|
|
15441
15446
|
submission: n.submission,
|
|
15447
|
+
ignoreDefaults: n.ignoreDefaults,
|
|
15442
15448
|
"onForm:state": r.stateChange,
|
|
15443
15449
|
parentModel: e.parentModel,
|
|
15444
15450
|
modelValue: e.model[A],
|
|
15445
15451
|
"onUpdate:modelValue": (W) => e.model[A] = W,
|
|
15446
15452
|
flex: r.sameLine,
|
|
15447
15453
|
fields: e.field.fields
|
|
15448
|
-
}, null, 8, ["trail", "includeOfficeOnly", "submission", "onForm:state", "parentModel", "modelValue", "onUpdate:modelValue", "flex", "fields"])
|
|
15454
|
+
}, null, 8, ["trail", "includeOfficeOnly", "submission", "ignoreDefaults", "onForm:state", "parentModel", "modelValue", "onUpdate:modelValue", "flex", "fields"])
|
|
15449
15455
|
]),
|
|
15450
15456
|
_: 2
|
|
15451
15457
|
}, 1536), [
|
|
@@ -15518,13 +15524,14 @@ function Rk(e, t, n, i, s, r) {
|
|
|
15518
15524
|
trail: n.trail,
|
|
15519
15525
|
includeOfficeOnly: n.includeOfficeOnly,
|
|
15520
15526
|
submission: n.submission,
|
|
15527
|
+
ignoreDefaults: n.ignoreDefaults,
|
|
15521
15528
|
"onForm:state": r.stateChange,
|
|
15522
15529
|
parentModel: e.parentModel,
|
|
15523
15530
|
modelValue: e.model,
|
|
15524
15531
|
"onUpdate:modelValue": t[7] || (t[7] = (T) => e.model = T),
|
|
15525
15532
|
flex: r.sameLine,
|
|
15526
15533
|
fields: e.field.fields
|
|
15527
|
-
}, null, 8, ["trail", "includeOfficeOnly", "submission", "onForm:state", "parentModel", "modelValue", "flex", "fields"])
|
|
15534
|
+
}, null, 8, ["trail", "includeOfficeOnly", "submission", "ignoreDefaults", "onForm:state", "parentModel", "modelValue", "flex", "fields"])
|
|
15528
15535
|
]),
|
|
15529
15536
|
_: 1
|
|
15530
15537
|
})
|
|
@@ -15536,13 +15543,14 @@ function Rk(e, t, n, i, s, r) {
|
|
|
15536
15543
|
trail: n.trail,
|
|
15537
15544
|
includeOfficeOnly: n.includeOfficeOnly,
|
|
15538
15545
|
submission: n.submission,
|
|
15546
|
+
ignoreDefaults: n.ignoreDefaults,
|
|
15539
15547
|
"onForm:state": r.stateChange,
|
|
15540
15548
|
parentModel: e.parentModel,
|
|
15541
15549
|
modelValue: e.model,
|
|
15542
15550
|
"onUpdate:modelValue": t[8] || (t[8] = (T) => e.model = T),
|
|
15543
15551
|
flex: r.sameLine,
|
|
15544
15552
|
fields: e.field.fields
|
|
15545
|
-
}, null, 8, ["trail", "includeOfficeOnly", "submission", "onForm:state", "parentModel", "modelValue", "flex", "fields"]))
|
|
15553
|
+
}, null, 8, ["trail", "includeOfficeOnly", "submission", "ignoreDefaults", "onForm:state", "parentModel", "modelValue", "flex", "fields"]))
|
|
15546
15554
|
], 64)) : (o(), k(u, {
|
|
15547
15555
|
key: 1,
|
|
15548
15556
|
onClick: t[9] || (t[9] = (T) => r.createSingleObject())
|
|
@@ -15571,13 +15579,14 @@ function Rk(e, t, n, i, s, r) {
|
|
|
15571
15579
|
trail: n.trail,
|
|
15572
15580
|
includeOfficeOnly: n.includeOfficeOnly,
|
|
15573
15581
|
submission: n.submission,
|
|
15582
|
+
ignoreDefaults: n.ignoreDefaults,
|
|
15574
15583
|
"onForm:state": r.stateChange,
|
|
15575
15584
|
parentModel: e.parentModel,
|
|
15576
15585
|
modelValue: e.model,
|
|
15577
15586
|
"onUpdate:modelValue": t[10] || (t[10] = (T) => e.model = T),
|
|
15578
15587
|
flex: r.sameLine,
|
|
15579
15588
|
fields: e.field.fields
|
|
15580
|
-
}, null, 8, ["trail", "includeOfficeOnly", "submission", "onForm:state", "parentModel", "modelValue", "flex", "fields"])
|
|
15589
|
+
}, null, 8, ["trail", "includeOfficeOnly", "submission", "ignoreDefaults", "onForm:state", "parentModel", "modelValue", "flex", "fields"])
|
|
15581
15590
|
]),
|
|
15582
15591
|
_: 1
|
|
15583
15592
|
})
|
|
@@ -15590,17 +15599,18 @@ function Rk(e, t, n, i, s, r) {
|
|
|
15590
15599
|
trail: n.trail,
|
|
15591
15600
|
includeOfficeOnly: n.includeOfficeOnly,
|
|
15592
15601
|
submission: n.submission,
|
|
15602
|
+
ignoreDefaults: n.ignoreDefaults,
|
|
15593
15603
|
"onForm:state": r.stateChange,
|
|
15594
15604
|
parentModel: e.parentModel,
|
|
15595
15605
|
modelValue: e.model,
|
|
15596
15606
|
"onUpdate:modelValue": t[11] || (t[11] = (T) => e.model = T),
|
|
15597
15607
|
flex: r.sameLine,
|
|
15598
15608
|
fields: e.field.fields
|
|
15599
|
-
}, null, 8, ["trail", "includeOfficeOnly", "submission", "onForm:state", "parentModel", "modelValue", "flex", "fields"]))
|
|
15609
|
+
}, null, 8, ["trail", "includeOfficeOnly", "submission", "ignoreDefaults", "onForm:state", "parentModel", "modelValue", "flex", "fields"]))
|
|
15600
15610
|
], 64))
|
|
15601
15611
|
], 64));
|
|
15602
15612
|
}
|
|
15603
|
-
const Bk = /* @__PURE__ */ C(Mk, [["render", Rk], ["__scopeId", "data-v-
|
|
15613
|
+
const Bk = /* @__PURE__ */ C(Mk, [["render", Rk], ["__scopeId", "data-v-717041ca"]]), zk = {
|
|
15604
15614
|
props: {
|
|
15605
15615
|
option: {
|
|
15606
15616
|
required: !0
|
|
@@ -18051,6 +18061,10 @@ const pO = {
|
|
|
18051
18061
|
type: Boolean,
|
|
18052
18062
|
default: !1
|
|
18053
18063
|
},
|
|
18064
|
+
ignoreDefaults: {
|
|
18065
|
+
type: Boolean,
|
|
18066
|
+
default: !1
|
|
18067
|
+
},
|
|
18054
18068
|
sandbox: {
|
|
18055
18069
|
type: Boolean,
|
|
18056
18070
|
default: !1
|
|
@@ -18123,7 +18137,7 @@ const pO = {
|
|
|
18123
18137
|
},
|
|
18124
18138
|
checkDirtyState() {
|
|
18125
18139
|
const e = this;
|
|
18126
|
-
var t = e.fieldModel, n = t || t === !1 || t === 0, i = e.fieldDefaultValue(), s = JSON.stringify(e.cleanOutput(t)), r = JSON.stringify(e.cleanOutput(i));
|
|
18140
|
+
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));
|
|
18127
18141
|
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);
|
|
18128
18142
|
},
|
|
18129
18143
|
groupStateAltered(e) {
|
|
@@ -18489,6 +18503,7 @@ function _O(e, t, n, i, s, r) {
|
|
|
18489
18503
|
paymentConfiguration: n.paymentConfiguration,
|
|
18490
18504
|
includeOfficeOnly: n.includeOfficeOnly,
|
|
18491
18505
|
submission: n.submission,
|
|
18506
|
+
ignoreDefaults: n.ignoreDefaults,
|
|
18492
18507
|
sandbox: n.sandbox,
|
|
18493
18508
|
"onForm:state": r.groupStateAltered,
|
|
18494
18509
|
ref: "group",
|
|
@@ -18497,12 +18512,13 @@ function _O(e, t, n, i, s, r) {
|
|
|
18497
18512
|
parentModel: n.parentModel,
|
|
18498
18513
|
modelValue: r.fieldModel,
|
|
18499
18514
|
"onUpdate:modelValue": t[9] || (t[9] = (I) => r.fieldModel = I)
|
|
18500
|
-
}, null, 8, ["trail", "paymentConfiguration", "includeOfficeOnly", "submission", "sandbox", "onForm:state", "onTouched", "field", "parentModel", "modelValue"])) : (o(), k(T, {
|
|
18515
|
+
}, null, 8, ["trail", "paymentConfiguration", "includeOfficeOnly", "submission", "ignoreDefaults", "sandbox", "onForm:state", "onTouched", "field", "parentModel", "modelValue"])) : (o(), k(T, {
|
|
18501
18516
|
key: 1,
|
|
18502
18517
|
trail: n.trail,
|
|
18503
18518
|
paymentConfiguration: n.paymentConfiguration,
|
|
18504
18519
|
includeOfficeOnly: n.includeOfficeOnly,
|
|
18505
18520
|
submission: n.submission,
|
|
18521
|
+
ignoreDefaults: n.ignoreDefaults,
|
|
18506
18522
|
sandbox: n.sandbox,
|
|
18507
18523
|
"onForm:state": r.groupStateAltered,
|
|
18508
18524
|
ref: "group",
|
|
@@ -18511,7 +18527,7 @@ function _O(e, t, n, i, s, r) {
|
|
|
18511
18527
|
parentModel: n.parentModel,
|
|
18512
18528
|
modelValue: r.sourceModel,
|
|
18513
18529
|
"onUpdate:modelValue": t[10] || (t[10] = (I) => r.sourceModel = I)
|
|
18514
|
-
}, null, 8, ["trail", "paymentConfiguration", "includeOfficeOnly", "submission", "sandbox", "onForm:state", "onTouched", "field", "parentModel", "modelValue"]))
|
|
18530
|
+
}, null, 8, ["trail", "paymentConfiguration", "includeOfficeOnly", "submission", "ignoreDefaults", "sandbox", "onForm:state", "onTouched", "field", "parentModel", "modelValue"]))
|
|
18515
18531
|
], 64)) : _("", !0),
|
|
18516
18532
|
r.widget == "form" ? (o(), k(T, {
|
|
18517
18533
|
key: 11,
|
|
@@ -18519,6 +18535,7 @@ function _O(e, t, n, i, s, r) {
|
|
|
18519
18535
|
paymentConfiguration: n.paymentConfiguration,
|
|
18520
18536
|
includeOfficeOnly: n.includeOfficeOnly,
|
|
18521
18537
|
submission: n.submission,
|
|
18538
|
+
ignoreDefaults: n.ignoreDefaults,
|
|
18522
18539
|
sandbox: n.sandbox,
|
|
18523
18540
|
"onForm:state": r.groupStateAltered,
|
|
18524
18541
|
ref: "group",
|
|
@@ -18527,7 +18544,7 @@ function _O(e, t, n, i, s, r) {
|
|
|
18527
18544
|
parentModel: n.parentModel,
|
|
18528
18545
|
modelValue: r.fieldModel,
|
|
18529
18546
|
"onUpdate:modelValue": t[11] || (t[11] = (I) => r.fieldModel = I)
|
|
18530
|
-
}, null, 8, ["trail", "paymentConfiguration", "includeOfficeOnly", "submission", "sandbox", "onForm:state", "onTouched", "field", "parentModel", "modelValue"])) : _("", !0),
|
|
18547
|
+
}, null, 8, ["trail", "paymentConfiguration", "includeOfficeOnly", "submission", "ignoreDefaults", "sandbox", "onForm:state", "onTouched", "field", "parentModel", "modelValue"])) : _("", !0),
|
|
18531
18548
|
r.widget == "field-select" ? (o(), k(A, {
|
|
18532
18549
|
key: 12,
|
|
18533
18550
|
onTouched: r.touch,
|
|
@@ -18683,7 +18700,7 @@ function _O(e, t, n, i, s, r) {
|
|
|
18683
18700
|
r.error && s.validateResults.message ? (o(), d("div", yO, b(s.validateResults.message), 1)) : _("", !0)
|
|
18684
18701
|
], 34)) : _("", !0);
|
|
18685
18702
|
}
|
|
18686
|
-
const zi = /* @__PURE__ */ C(pO, [["render", _O], ["__scopeId", "data-v-
|
|
18703
|
+
const zi = /* @__PURE__ */ C(pO, [["render", _O], ["__scopeId", "data-v-bf77f68b"]]);
|
|
18687
18704
|
function gO(e, t, n, i) {
|
|
18688
18705
|
var s = -1, r = e == null ? 0 : e.length;
|
|
18689
18706
|
for (i && r && (n = e[++s]); ++s < r; )
|
|
@@ -18961,6 +18978,10 @@ const ET = {
|
|
|
18961
18978
|
type: Boolean,
|
|
18962
18979
|
default: !1
|
|
18963
18980
|
},
|
|
18981
|
+
ignoreDefaults: {
|
|
18982
|
+
type: Boolean,
|
|
18983
|
+
default: !1
|
|
18984
|
+
},
|
|
18964
18985
|
sandbox: {
|
|
18965
18986
|
type: Boolean,
|
|
18966
18987
|
default: !1
|
|
@@ -19130,6 +19151,7 @@ function AT(e, t, n, i, s, r) {
|
|
|
19130
19151
|
trail: r.currentTrail,
|
|
19131
19152
|
sandbox: n.sandbox,
|
|
19132
19153
|
submission: n.submission,
|
|
19154
|
+
ignoreDefaults: n.ignoreDefaults,
|
|
19133
19155
|
paymentConfiguration: n.paymentConfiguration,
|
|
19134
19156
|
includeOfficeOnly: n.includeOfficeOnly,
|
|
19135
19157
|
"onField:mount": r.fieldMounted,
|
|
@@ -19147,11 +19169,11 @@ function AT(e, t, n, i, s, r) {
|
|
|
19147
19169
|
parentModel: n.parentModel || r.formModel,
|
|
19148
19170
|
class: P([r.fieldClass, { "ux-field-clear": l.clear }]),
|
|
19149
19171
|
key: `ux-form-field-${r.getFieldKey(l)}-${u}`
|
|
19150
|
-
}, null, 8, ["trail", "sandbox", "submission", "paymentConfiguration", "includeOfficeOnly", "onField:mount", "onField:unmount", "onField:dirty", "onField:invalid", "onField:valid", "onField:error", "onField:focus", "onField:blur", "onField:touched", "field", "modelValue", "parentModel", "class"]))), 128))
|
|
19172
|
+
}, null, 8, ["trail", "sandbox", "submission", "ignoreDefaults", "paymentConfiguration", "includeOfficeOnly", "onField:mount", "onField:unmount", "onField:dirty", "onField:invalid", "onField:valid", "onField:error", "onField:focus", "onField:blur", "onField:touched", "field", "modelValue", "parentModel", "class"]))), 128))
|
|
19151
19173
|
], !0)
|
|
19152
19174
|
], 2);
|
|
19153
19175
|
}
|
|
19154
|
-
const bo = /* @__PURE__ */ C(ET, [["render", AT], ["__scopeId", "data-v-
|
|
19176
|
+
const bo = /* @__PURE__ */ C(ET, [["render", AT], ["__scopeId", "data-v-5a0fe930"]]);
|
|
19155
19177
|
const si = "form.ready", MT = "form.processing", oa = "form.complete", ua = "form.error", IT = "form.intent", DT = {
|
|
19156
19178
|
methods: {
|
|
19157
19179
|
formStateUpdated(e) {
|