@qikdev/vue-ui 0.2.27 → 0.2.28
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 +42 -14
- 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
|
@@ -32,7 +32,7 @@ var __objRest = (source, exclude) => {
|
|
|
32
32
|
};
|
|
33
33
|
import { openBlock, createElementBlock, renderSlot, resolveComponent, normalizeClass, Fragment, createVNode, withCtx, renderList, toDisplayString, withDirectives, createBlock, resolveDynamicComponent, vShow, withModifiers, createTextVNode, createCommentVNode, createElementVNode, mergeProps, toHandlers, vModelSelect, pushScopeId, popScopeId, normalizeStyle, Teleport, vModelText, withKeys, TransitionGroup, defineComponent, h, nextTick, vModelDynamic, reactive, watch } from "vue";
|
|
34
34
|
import { EventDispatcher } from "@qikdev/sdk";
|
|
35
|
-
const version$1 = "0.2.
|
|
35
|
+
const version$1 = "0.2.28";
|
|
36
36
|
var flexColumn_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
37
37
|
var _export_sfc = (sfc, props2) => {
|
|
38
38
|
const target = sfc.__vccOpts || sfc;
|
|
@@ -14248,6 +14248,10 @@ const _sfc_main$s = {
|
|
|
14248
14248
|
type: Boolean,
|
|
14249
14249
|
default: false
|
|
14250
14250
|
},
|
|
14251
|
+
includeOfficeOnly: {
|
|
14252
|
+
type: Boolean,
|
|
14253
|
+
default: false
|
|
14254
|
+
},
|
|
14251
14255
|
modelValue: {
|
|
14252
14256
|
type: [Object, Array]
|
|
14253
14257
|
},
|
|
@@ -14471,6 +14475,7 @@ function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
14471
14475
|
createVNode(_component_ux_form, {
|
|
14472
14476
|
trail: $props.trail,
|
|
14473
14477
|
ref: "form",
|
|
14478
|
+
includeOfficeOnly: $props.includeOfficeOnly,
|
|
14474
14479
|
submission: $props.submission,
|
|
14475
14480
|
"onForm:state": $options.stateChange,
|
|
14476
14481
|
parentModel: _ctx.parentModel,
|
|
@@ -14478,7 +14483,7 @@ function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
14478
14483
|
"onUpdate:modelValue": ($event) => _ctx.model[index2] = $event,
|
|
14479
14484
|
flex: $options.sameLine,
|
|
14480
14485
|
fields: _ctx.field.fields
|
|
14481
|
-
}, null, 8, ["trail", "submission", "onForm:state", "parentModel", "modelValue", "onUpdate:modelValue", "flex", "fields"])
|
|
14486
|
+
}, null, 8, ["trail", "includeOfficeOnly", "submission", "onForm:state", "parentModel", "modelValue", "onUpdate:modelValue", "flex", "fields"])
|
|
14482
14487
|
]),
|
|
14483
14488
|
_: 2
|
|
14484
14489
|
}, 1536), [
|
|
@@ -14574,6 +14579,7 @@ function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
14574
14579
|
ref_for: true,
|
|
14575
14580
|
ref: "form",
|
|
14576
14581
|
trail: $props.trail,
|
|
14582
|
+
includeOfficeOnly: $props.includeOfficeOnly,
|
|
14577
14583
|
submission: $props.submission,
|
|
14578
14584
|
"onForm:state": $options.stateChange,
|
|
14579
14585
|
parentModel: _ctx.parentModel,
|
|
@@ -14581,7 +14587,7 @@ function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
14581
14587
|
"onUpdate:modelValue": ($event) => _ctx.model[index2] = $event,
|
|
14582
14588
|
flex: $options.sameLine,
|
|
14583
14589
|
fields: _ctx.field.fields
|
|
14584
|
-
}, null, 8, ["trail", "submission", "onForm:state", "parentModel", "modelValue", "onUpdate:modelValue", "flex", "fields"])
|
|
14590
|
+
}, null, 8, ["trail", "includeOfficeOnly", "submission", "onForm:state", "parentModel", "modelValue", "onUpdate:modelValue", "flex", "fields"])
|
|
14585
14591
|
]),
|
|
14586
14592
|
_: 2
|
|
14587
14593
|
}, 1536), [
|
|
@@ -14653,6 +14659,7 @@ function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
14653
14659
|
createVNode(_component_ux_form, {
|
|
14654
14660
|
ref: "form",
|
|
14655
14661
|
trail: $props.trail,
|
|
14662
|
+
includeOfficeOnly: $props.includeOfficeOnly,
|
|
14656
14663
|
submission: $props.submission,
|
|
14657
14664
|
"onForm:state": $options.stateChange,
|
|
14658
14665
|
parentModel: _ctx.parentModel,
|
|
@@ -14660,7 +14667,7 @@ function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
14660
14667
|
"onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => _ctx.model = $event),
|
|
14661
14668
|
flex: $options.sameLine,
|
|
14662
14669
|
fields: _ctx.field.fields
|
|
14663
|
-
}, null, 8, ["trail", "submission", "onForm:state", "parentModel", "modelValue", "flex", "fields"])
|
|
14670
|
+
}, null, 8, ["trail", "includeOfficeOnly", "submission", "onForm:state", "parentModel", "modelValue", "flex", "fields"])
|
|
14664
14671
|
]),
|
|
14665
14672
|
_: 1
|
|
14666
14673
|
})
|
|
@@ -14670,6 +14677,7 @@ function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
14670
14677
|
key: 1,
|
|
14671
14678
|
ref: "form",
|
|
14672
14679
|
trail: $props.trail,
|
|
14680
|
+
includeOfficeOnly: $props.includeOfficeOnly,
|
|
14673
14681
|
submission: $props.submission,
|
|
14674
14682
|
"onForm:state": $options.stateChange,
|
|
14675
14683
|
parentModel: _ctx.parentModel,
|
|
@@ -14677,7 +14685,7 @@ function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
14677
14685
|
"onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => _ctx.model = $event),
|
|
14678
14686
|
flex: $options.sameLine,
|
|
14679
14687
|
fields: _ctx.field.fields
|
|
14680
|
-
}, null, 8, ["trail", "submission", "onForm:state", "parentModel", "modelValue", "flex", "fields"]))
|
|
14688
|
+
}, null, 8, ["trail", "includeOfficeOnly", "submission", "onForm:state", "parentModel", "modelValue", "flex", "fields"]))
|
|
14681
14689
|
], 64)) : (openBlock(), createBlock(_component_ux_button, {
|
|
14682
14690
|
key: 1,
|
|
14683
14691
|
onClick: _cache[9] || (_cache[9] = ($event) => $options.createSingleObject())
|
|
@@ -14704,6 +14712,7 @@ function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
14704
14712
|
createVNode(_component_ux_form, {
|
|
14705
14713
|
ref: "form",
|
|
14706
14714
|
trail: $props.trail,
|
|
14715
|
+
includeOfficeOnly: $props.includeOfficeOnly,
|
|
14707
14716
|
submission: $props.submission,
|
|
14708
14717
|
"onForm:state": $options.stateChange,
|
|
14709
14718
|
parentModel: _ctx.parentModel,
|
|
@@ -14711,7 +14720,7 @@ function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
14711
14720
|
"onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => _ctx.model = $event),
|
|
14712
14721
|
flex: $options.sameLine,
|
|
14713
14722
|
fields: _ctx.field.fields
|
|
14714
|
-
}, null, 8, ["trail", "submission", "onForm:state", "parentModel", "modelValue", "flex", "fields"])
|
|
14723
|
+
}, null, 8, ["trail", "includeOfficeOnly", "submission", "onForm:state", "parentModel", "modelValue", "flex", "fields"])
|
|
14715
14724
|
]),
|
|
14716
14725
|
_: 1
|
|
14717
14726
|
})
|
|
@@ -14722,6 +14731,7 @@ function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
14722
14731
|
key: 1,
|
|
14723
14732
|
ref: "form",
|
|
14724
14733
|
trail: $props.trail,
|
|
14734
|
+
includeOfficeOnly: $props.includeOfficeOnly,
|
|
14725
14735
|
submission: $props.submission,
|
|
14726
14736
|
"onForm:state": $options.stateChange,
|
|
14727
14737
|
parentModel: _ctx.parentModel,
|
|
@@ -14729,11 +14739,11 @@ function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
14729
14739
|
"onUpdate:modelValue": _cache[11] || (_cache[11] = ($event) => _ctx.model = $event),
|
|
14730
14740
|
flex: $options.sameLine,
|
|
14731
14741
|
fields: _ctx.field.fields
|
|
14732
|
-
}, null, 8, ["trail", "submission", "onForm:state", "parentModel", "modelValue", "flex", "fields"]))
|
|
14742
|
+
}, null, 8, ["trail", "includeOfficeOnly", "submission", "onForm:state", "parentModel", "modelValue", "flex", "fields"]))
|
|
14733
14743
|
], 64))
|
|
14734
14744
|
], 64));
|
|
14735
14745
|
}
|
|
14736
|
-
var FieldGroup$1 = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_render$s], ["__scopeId", "data-v-
|
|
14746
|
+
var FieldGroup$1 = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_render$s], ["__scopeId", "data-v-66c6137b"]]);
|
|
14737
14747
|
const _sfc_main$r = {
|
|
14738
14748
|
props: {
|
|
14739
14749
|
option: {
|
|
@@ -17256,6 +17266,10 @@ const _sfc_main$h = {
|
|
|
17256
17266
|
modelValue: {
|
|
17257
17267
|
type: Object,
|
|
17258
17268
|
required: true
|
|
17269
|
+
},
|
|
17270
|
+
includeOfficeOnly: {
|
|
17271
|
+
type: Boolean,
|
|
17272
|
+
default: false
|
|
17259
17273
|
}
|
|
17260
17274
|
},
|
|
17261
17275
|
data() {
|
|
@@ -17539,7 +17553,13 @@ const _sfc_main$h = {
|
|
|
17539
17553
|
};
|
|
17540
17554
|
return context;
|
|
17541
17555
|
},
|
|
17556
|
+
officeOnly() {
|
|
17557
|
+
return this.submission && this.field.officeOnly;
|
|
17558
|
+
},
|
|
17542
17559
|
hidden() {
|
|
17560
|
+
if (this.officeOnly && !this.includeOfficeOnly) {
|
|
17561
|
+
return true;
|
|
17562
|
+
}
|
|
17543
17563
|
if (this.actualField.readOnly) {
|
|
17544
17564
|
return true;
|
|
17545
17565
|
}
|
|
@@ -17768,6 +17788,7 @@ function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
17768
17788
|
$options.asObject ? (openBlock(), createBlock(_component_field_group, {
|
|
17769
17789
|
key: 0,
|
|
17770
17790
|
trail: $options.currentTrail,
|
|
17791
|
+
includeOfficeOnly: $props.includeOfficeOnly,
|
|
17771
17792
|
submission: $props.submission,
|
|
17772
17793
|
"onForm:state": $options.groupStateAltered,
|
|
17773
17794
|
ref: "group",
|
|
@@ -17776,9 +17797,10 @@ function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
17776
17797
|
parentModel: $props.parentModel,
|
|
17777
17798
|
modelValue: $options.fieldModel,
|
|
17778
17799
|
"onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => $options.fieldModel = $event)
|
|
17779
|
-
}, null, 8, ["trail", "submission", "onForm:state", "onTouched", "field", "parentModel", "modelValue"])) : (openBlock(), createBlock(_component_field_group, {
|
|
17800
|
+
}, null, 8, ["trail", "includeOfficeOnly", "submission", "onForm:state", "onTouched", "field", "parentModel", "modelValue"])) : (openBlock(), createBlock(_component_field_group, {
|
|
17780
17801
|
key: 1,
|
|
17781
17802
|
trail: $props.trail,
|
|
17803
|
+
includeOfficeOnly: $props.includeOfficeOnly,
|
|
17782
17804
|
submission: $props.submission,
|
|
17783
17805
|
"onForm:state": $options.groupStateAltered,
|
|
17784
17806
|
ref: "group",
|
|
@@ -17787,11 +17809,12 @@ function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
17787
17809
|
parentModel: $props.parentModel,
|
|
17788
17810
|
modelValue: $options.sourceModel,
|
|
17789
17811
|
"onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => $options.sourceModel = $event)
|
|
17790
|
-
}, null, 8, ["trail", "submission", "onForm:state", "onTouched", "field", "parentModel", "modelValue"]))
|
|
17812
|
+
}, null, 8, ["trail", "includeOfficeOnly", "submission", "onForm:state", "onTouched", "field", "parentModel", "modelValue"]))
|
|
17791
17813
|
], 64)) : createCommentVNode("", true),
|
|
17792
17814
|
$options.widget == "form" ? (openBlock(), createBlock(_component_field_group, {
|
|
17793
17815
|
key: 9,
|
|
17794
17816
|
trail: $options.currentTrail,
|
|
17817
|
+
includeOfficeOnly: $props.includeOfficeOnly,
|
|
17795
17818
|
submission: $props.submission,
|
|
17796
17819
|
"onForm:state": $options.groupStateAltered,
|
|
17797
17820
|
ref: "group",
|
|
@@ -17800,7 +17823,7 @@ function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
17800
17823
|
parentModel: $props.parentModel,
|
|
17801
17824
|
modelValue: $options.fieldModel,
|
|
17802
17825
|
"onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => $options.fieldModel = $event)
|
|
17803
|
-
}, null, 8, ["trail", "submission", "onForm:state", "onTouched", "field", "parentModel", "modelValue"])) : createCommentVNode("", true),
|
|
17826
|
+
}, null, 8, ["trail", "includeOfficeOnly", "submission", "onForm:state", "onTouched", "field", "parentModel", "modelValue"])) : createCommentVNode("", true),
|
|
17804
17827
|
$options.widget == "field-select" ? (openBlock(), createBlock(_component_field_select, {
|
|
17805
17828
|
key: 10,
|
|
17806
17829
|
onTouched: $options.touch,
|
|
@@ -17924,7 +17947,7 @@ function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
17924
17947
|
$options.error && $data.validateResults.message ? (openBlock(), createElementBlock("div", _hoisted_1$c, toDisplayString($data.validateResults.message), 1)) : createCommentVNode("", true)
|
|
17925
17948
|
], 34)) : createCommentVNode("", true);
|
|
17926
17949
|
}
|
|
17927
|
-
var UXFormField = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$h], ["__scopeId", "data-v-
|
|
17950
|
+
var UXFormField = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$h], ["__scopeId", "data-v-d3451c6c"]]);
|
|
17928
17951
|
function arrayReduce$1(array, iteratee, accumulator, initAccum) {
|
|
17929
17952
|
var index2 = -1, length = array == null ? 0 : array.length;
|
|
17930
17953
|
if (initAccum && length) {
|
|
@@ -18232,6 +18255,10 @@ const _sfc_main$g = {
|
|
|
18232
18255
|
submission: {
|
|
18233
18256
|
type: Boolean,
|
|
18234
18257
|
default: false
|
|
18258
|
+
},
|
|
18259
|
+
includeOfficeOnly: {
|
|
18260
|
+
type: Boolean,
|
|
18261
|
+
default: false
|
|
18235
18262
|
}
|
|
18236
18263
|
},
|
|
18237
18264
|
inject: ["form", "parentFormElement"],
|
|
@@ -18449,6 +18476,7 @@ function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
18449
18476
|
ref: "field",
|
|
18450
18477
|
trail: $options.currentTrail,
|
|
18451
18478
|
submission: $props.submission,
|
|
18479
|
+
includeOfficeOnly: $props.includeOfficeOnly,
|
|
18452
18480
|
"onField:mount": $options.fieldMounted,
|
|
18453
18481
|
"onField:unmount": $options.fieldUnmounted,
|
|
18454
18482
|
"onField:dirty": $options.fieldDirty,
|
|
@@ -18464,12 +18492,12 @@ function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
18464
18492
|
parentModel: $props.parentModel || $options.formModel,
|
|
18465
18493
|
class: normalizeClass($options.fieldClass),
|
|
18466
18494
|
key: `ux-form-field-${$options.getFieldKey(field)}-${index2}`
|
|
18467
|
-
}, null, 8, ["trail", "submission", "onField:mount", "onField:unmount", "onField:dirty", "onField:invalid", "onField:valid", "onField:error", "onField:focus", "onField:blur", "onField:touched", "field", "modelValue", "parentModel", "class"]);
|
|
18495
|
+
}, null, 8, ["trail", "submission", "includeOfficeOnly", "onField:mount", "onField:unmount", "onField:dirty", "onField:invalid", "onField:valid", "onField:error", "onField:focus", "onField:blur", "onField:touched", "field", "modelValue", "parentModel", "class"]);
|
|
18468
18496
|
}), 128))
|
|
18469
18497
|
], true)
|
|
18470
18498
|
], 2);
|
|
18471
18499
|
}
|
|
18472
|
-
var UXForm = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc_render$g], ["__scopeId", "data-v-
|
|
18500
|
+
var UXForm = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc_render$g], ["__scopeId", "data-v-09c6d713"]]);
|
|
18473
18501
|
var submissionform_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
18474
18502
|
const STATE_READY = "form.ready";
|
|
18475
18503
|
const STATE_PROCESSING = "form.processing";
|