@qikdev/vue-ui 0.1.67 → 0.1.68
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 +19 -10
- 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, createBlock, withCtx, createVNode, Fragment, renderList, normalizeClass, toDisplayString, withDirectives, resolveDynamicComponent, vShow, withModifiers, createTextVNode, createCommentVNode, createElementVNode, mergeProps, toHandlers, pushScopeId, popScopeId, normalizeStyle, Teleport, vModelSelect, withKeys, vModelText, TransitionGroup, defineComponent, h, nextTick, vModelDynamic, vModelCheckbox, reactive, watch } from "vue";
|
|
34
34
|
import { EventDispatcher } from "@qikdev/sdk";
|
|
35
|
-
const version$1 = "0.1.
|
|
35
|
+
const version$1 = "0.1.68";
|
|
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;
|
|
@@ -6182,6 +6182,7 @@ var InputMixin = {
|
|
|
6182
6182
|
mounted() {
|
|
6183
6183
|
this.checkAutofocus();
|
|
6184
6184
|
},
|
|
6185
|
+
inject: ["form"],
|
|
6185
6186
|
computed: {
|
|
6186
6187
|
optionLookup() {
|
|
6187
6188
|
var self2 = this;
|
|
@@ -12835,10 +12836,10 @@ const _sfc_main$p = {
|
|
|
12835
12836
|
fileItem.state = "processing";
|
|
12836
12837
|
var body = new FormData();
|
|
12837
12838
|
var jsonData = {};
|
|
12838
|
-
|
|
12839
|
-
jsonData.
|
|
12840
|
-
|
|
12841
|
-
|
|
12839
|
+
self2.user ? Object.keys(self2.user.permissions) : [];
|
|
12840
|
+
jsonData.attachment = true;
|
|
12841
|
+
jsonData.field = self2.field.key;
|
|
12842
|
+
console.log("FORM FILE UPLOAD", self2.field, self2.form, jsonData);
|
|
12842
12843
|
body.append("json", JSON.stringify(jsonData));
|
|
12843
12844
|
body.append("file", fileItem.file, fileItem.name);
|
|
12844
12845
|
var config = {
|
|
@@ -12867,7 +12868,6 @@ const _sfc_main$p = {
|
|
|
12867
12868
|
config.headers = {
|
|
12868
12869
|
"Content-Type": void 0
|
|
12869
12870
|
};
|
|
12870
|
-
console.log("FORM FILE UPLOAD", self2.field);
|
|
12871
12871
|
let uploadURL = `/file/upload`;
|
|
12872
12872
|
if (self2.$sdk.fileAPI) {
|
|
12873
12873
|
uploadURL = `${self2.$sdk.fileAPI}${uploadURL}`;
|
|
@@ -13036,7 +13036,7 @@ function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
13036
13036
|
}, 8, ["onFiles"]))
|
|
13037
13037
|
], 64);
|
|
13038
13038
|
}
|
|
13039
|
-
var Upload = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_render$p], ["__scopeId", "data-v-
|
|
13039
|
+
var Upload = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_render$p], ["__scopeId", "data-v-214d11c6"]]);
|
|
13040
13040
|
var group_vue_vue_type_style_index_0_scoped_true_lang$1 = "";
|
|
13041
13041
|
const _sfc_main$o = {
|
|
13042
13042
|
mixins: [InputMixin],
|
|
@@ -16300,6 +16300,9 @@ const _sfc_main$c = {
|
|
|
16300
16300
|
parentModel: {
|
|
16301
16301
|
type: Object
|
|
16302
16302
|
},
|
|
16303
|
+
parentForm: {
|
|
16304
|
+
type: Object
|
|
16305
|
+
},
|
|
16303
16306
|
fields: {
|
|
16304
16307
|
type: Array,
|
|
16305
16308
|
default() {
|
|
@@ -16321,6 +16324,7 @@ const _sfc_main$c = {
|
|
|
16321
16324
|
default: false
|
|
16322
16325
|
}
|
|
16323
16326
|
},
|
|
16327
|
+
inject: ["form"],
|
|
16324
16328
|
watch: {
|
|
16325
16329
|
modelValue(val, old) {
|
|
16326
16330
|
this.model = val;
|
|
@@ -16535,7 +16539,7 @@ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
16535
16539
|
], true)
|
|
16536
16540
|
], 2);
|
|
16537
16541
|
}
|
|
16538
|
-
var UXForm = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_render$c], ["__scopeId", "data-v-
|
|
16542
|
+
var UXForm = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_render$c], ["__scopeId", "data-v-24ce6bd4"]]);
|
|
16539
16543
|
var submissionform_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
16540
16544
|
const STATE_READY = "form.ready";
|
|
16541
16545
|
const STATE_PROCESSING = "form.processing";
|
|
@@ -16602,6 +16606,11 @@ const _sfc_main$b = {
|
|
|
16602
16606
|
components: {
|
|
16603
16607
|
UxForm: UXForm
|
|
16604
16608
|
},
|
|
16609
|
+
provide() {
|
|
16610
|
+
return {
|
|
16611
|
+
form: this.form
|
|
16612
|
+
};
|
|
16613
|
+
},
|
|
16605
16614
|
props: {
|
|
16606
16615
|
modelValue: {
|
|
16607
16616
|
type: Object,
|
|
@@ -16654,7 +16663,7 @@ const _sfc_main$b = {
|
|
|
16654
16663
|
}
|
|
16655
16664
|
}
|
|
16656
16665
|
};
|
|
16657
|
-
const _withScopeId$1 = (n2) => (pushScopeId("data-v-
|
|
16666
|
+
const _withScopeId$1 = (n2) => (pushScopeId("data-v-428ba5ea"), n2 = n2(), popScopeId(), n2);
|
|
16658
16667
|
const _hoisted_1$9 = { class: "ux-submission-form" };
|
|
16659
16668
|
const _hoisted_2$7 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("h3", null, "An error occurred", -1));
|
|
16660
16669
|
const _hoisted_3$5 = { key: 0 };
|
|
@@ -16727,7 +16736,7 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
16727
16736
|
], 64))
|
|
16728
16737
|
]);
|
|
16729
16738
|
}
|
|
16730
|
-
var UXSubmissionForm = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render$b], ["__scopeId", "data-v-
|
|
16739
|
+
var UXSubmissionForm = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render$b], ["__scopeId", "data-v-428ba5ea"]]);
|
|
16731
16740
|
var search_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
16732
16741
|
const _sfc_main$a = {
|
|
16733
16742
|
props: {
|