@qikdev/vue-ui 0.1.64 → 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 +24 -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,11 @@ const _sfc_main$p = {
|
|
|
12867
12868
|
config.headers = {
|
|
12868
12869
|
"Content-Type": void 0
|
|
12869
12870
|
};
|
|
12870
|
-
|
|
12871
|
+
let uploadURL = `/file/upload`;
|
|
12872
|
+
if (self2.$sdk.fileAPI) {
|
|
12873
|
+
uploadURL = `${self2.$sdk.fileAPI}${uploadURL}`;
|
|
12874
|
+
}
|
|
12875
|
+
return self2.$sdk.api.post(uploadURL, body, config).then(function(res) {
|
|
12871
12876
|
fileItem.state = "complete";
|
|
12872
12877
|
fileItem.result = res.data;
|
|
12873
12878
|
fileItem.cancelToken = null;
|
|
@@ -13031,7 +13036,7 @@ function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
13031
13036
|
}, 8, ["onFiles"]))
|
|
13032
13037
|
], 64);
|
|
13033
13038
|
}
|
|
13034
|
-
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"]]);
|
|
13035
13040
|
var group_vue_vue_type_style_index_0_scoped_true_lang$1 = "";
|
|
13036
13041
|
const _sfc_main$o = {
|
|
13037
13042
|
mixins: [InputMixin],
|
|
@@ -16295,6 +16300,9 @@ const _sfc_main$c = {
|
|
|
16295
16300
|
parentModel: {
|
|
16296
16301
|
type: Object
|
|
16297
16302
|
},
|
|
16303
|
+
parentForm: {
|
|
16304
|
+
type: Object
|
|
16305
|
+
},
|
|
16298
16306
|
fields: {
|
|
16299
16307
|
type: Array,
|
|
16300
16308
|
default() {
|
|
@@ -16316,6 +16324,7 @@ const _sfc_main$c = {
|
|
|
16316
16324
|
default: false
|
|
16317
16325
|
}
|
|
16318
16326
|
},
|
|
16327
|
+
inject: ["form"],
|
|
16319
16328
|
watch: {
|
|
16320
16329
|
modelValue(val, old) {
|
|
16321
16330
|
this.model = val;
|
|
@@ -16530,7 +16539,7 @@ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
16530
16539
|
], true)
|
|
16531
16540
|
], 2);
|
|
16532
16541
|
}
|
|
16533
|
-
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"]]);
|
|
16534
16543
|
var submissionform_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
16535
16544
|
const STATE_READY = "form.ready";
|
|
16536
16545
|
const STATE_PROCESSING = "form.processing";
|
|
@@ -16597,6 +16606,11 @@ const _sfc_main$b = {
|
|
|
16597
16606
|
components: {
|
|
16598
16607
|
UxForm: UXForm
|
|
16599
16608
|
},
|
|
16609
|
+
provide() {
|
|
16610
|
+
return {
|
|
16611
|
+
form: this.form
|
|
16612
|
+
};
|
|
16613
|
+
},
|
|
16600
16614
|
props: {
|
|
16601
16615
|
modelValue: {
|
|
16602
16616
|
type: Object,
|
|
@@ -16649,7 +16663,7 @@ const _sfc_main$b = {
|
|
|
16649
16663
|
}
|
|
16650
16664
|
}
|
|
16651
16665
|
};
|
|
16652
|
-
const _withScopeId$1 = (n2) => (pushScopeId("data-v-
|
|
16666
|
+
const _withScopeId$1 = (n2) => (pushScopeId("data-v-428ba5ea"), n2 = n2(), popScopeId(), n2);
|
|
16653
16667
|
const _hoisted_1$9 = { class: "ux-submission-form" };
|
|
16654
16668
|
const _hoisted_2$7 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("h3", null, "An error occurred", -1));
|
|
16655
16669
|
const _hoisted_3$5 = { key: 0 };
|
|
@@ -16722,7 +16736,7 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
16722
16736
|
], 64))
|
|
16723
16737
|
]);
|
|
16724
16738
|
}
|
|
16725
|
-
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"]]);
|
|
16726
16740
|
var search_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
16727
16741
|
const _sfc_main$a = {
|
|
16728
16742
|
props: {
|