@qikdev/vue-ui 0.1.46 → 0.1.47
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 +229 -143
- 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, pushScopeId, popScopeId, createElementVNode, normalizeStyle, createCommentVNode, Teleport, createTextVNode, vModelSelect, withKeys, withModifiers, vModelText, TransitionGroup, defineComponent, h, nextTick, vModelDynamic, vModelCheckbox, mergeProps, toHandlers, reactive, watch } from "vue";
|
|
34
34
|
import { EventDispatcher } from "@qikdev/sdk";
|
|
35
|
-
const version$1 = "0.1.
|
|
35
|
+
const version$1 = "0.1.47";
|
|
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;
|
|
@@ -198,7 +198,7 @@ function _sfc_render$_(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
198
198
|
_: 1
|
|
199
199
|
});
|
|
200
200
|
}
|
|
201
|
-
var UXTabset = /* @__PURE__ */ _export_sfc(_sfc_main$_, [["render", _sfc_render$_], ["__scopeId", "data-v-
|
|
201
|
+
var UXTabset = /* @__PURE__ */ _export_sfc(_sfc_main$_, [["render", _sfc_render$_], ["__scopeId", "data-v-1449f192"]]);
|
|
202
202
|
const _sfc_main$Z = {
|
|
203
203
|
props: {
|
|
204
204
|
heading: {
|
|
@@ -373,7 +373,7 @@ function _sfc_render$X(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
373
373
|
_: 3
|
|
374
374
|
}, 8, ["active", "loading", "to", "href", "target", "style", "class", "disabled"]);
|
|
375
375
|
}
|
|
376
|
-
var UXButton = /* @__PURE__ */ _export_sfc(_sfc_main$X, [["render", _sfc_render$X], ["__scopeId", "data-v-
|
|
376
|
+
var UXButton = /* @__PURE__ */ _export_sfc(_sfc_main$X, [["render", _sfc_render$X], ["__scopeId", "data-v-ef0c5e26"]]);
|
|
377
377
|
var checkbox_vue_vue_type_style_index_0_scoped_true_lang$1 = "";
|
|
378
378
|
const _sfc_main$W = {
|
|
379
379
|
props: {
|
|
@@ -407,7 +407,7 @@ function _sfc_render$W(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
407
407
|
})
|
|
408
408
|
], 2);
|
|
409
409
|
}
|
|
410
|
-
var UXCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$W, [["render", _sfc_render$W], ["__scopeId", "data-v-
|
|
410
|
+
var UXCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$W, [["render", _sfc_render$W], ["__scopeId", "data-v-73f2c6b6"]]);
|
|
411
411
|
var switch_vue_vue_type_style_index_0_scoped_true_lang$1 = "";
|
|
412
412
|
const _sfc_main$V = {
|
|
413
413
|
props: {
|
|
@@ -452,7 +452,7 @@ function _sfc_render$V(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
452
452
|
])
|
|
453
453
|
], 2);
|
|
454
454
|
}
|
|
455
|
-
var UXSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$V, [["render", _sfc_render$V], ["__scopeId", "data-v-
|
|
455
|
+
var UXSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$V, [["render", _sfc_render$V], ["__scopeId", "data-v-57a418e1"]]);
|
|
456
456
|
var link_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
457
457
|
const _sfc_main$U = {
|
|
458
458
|
props: {
|
|
@@ -909,7 +909,7 @@ const _sfc_main$Q = {
|
|
|
909
909
|
}
|
|
910
910
|
}
|
|
911
911
|
};
|
|
912
|
-
const _withScopeId$4 = (n2) => (pushScopeId("data-v-
|
|
912
|
+
const _withScopeId$4 = (n2) => (pushScopeId("data-v-317a7690"), n2 = n2(), popScopeId(), n2);
|
|
913
913
|
const _hoisted_1$J = { class: "ux-progress" };
|
|
914
914
|
const _hoisted_2$A = /* @__PURE__ */ _withScopeId$4(() => /* @__PURE__ */ createElementVNode("div", { class: "ux-progress-bg" }, null, -1));
|
|
915
915
|
function _sfc_render$Q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
@@ -921,7 +921,7 @@ function _sfc_render$Q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
921
921
|
}, null, 4)
|
|
922
922
|
]);
|
|
923
923
|
}
|
|
924
|
-
var ProgressBar = /* @__PURE__ */ _export_sfc(_sfc_main$Q, [["render", _sfc_render$Q], ["__scopeId", "data-v-
|
|
924
|
+
var ProgressBar = /* @__PURE__ */ _export_sfc(_sfc_main$Q, [["render", _sfc_render$Q], ["__scopeId", "data-v-317a7690"]]);
|
|
925
925
|
var list_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
926
926
|
const _sfc_main$P = {};
|
|
927
927
|
const _hoisted_1$I = { class: "ux-list" };
|
|
@@ -1102,6 +1102,9 @@ var InputMixin = {
|
|
|
1102
1102
|
canRemoveValue() {
|
|
1103
1103
|
return this.numValues > this.minimum;
|
|
1104
1104
|
},
|
|
1105
|
+
widget() {
|
|
1106
|
+
return this.field.widget;
|
|
1107
|
+
},
|
|
1105
1108
|
singleValue() {
|
|
1106
1109
|
if (this.asObject) {
|
|
1107
1110
|
var isSingle = this.minimum === 1 && this.maximum === 1;
|
|
@@ -1489,7 +1492,7 @@ function _sfc_render$N(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1489
1492
|
])
|
|
1490
1493
|
], 2);
|
|
1491
1494
|
}
|
|
1492
|
-
var NativeSelect = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["render", _sfc_render$N], ["__scopeId", "data-v-
|
|
1495
|
+
var NativeSelect = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["render", _sfc_render$N], ["__scopeId", "data-v-1d53b270"]]);
|
|
1493
1496
|
var phoneNumberInput_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
1494
1497
|
const _sfc_main$M = {
|
|
1495
1498
|
props: {
|
|
@@ -1562,7 +1565,7 @@ const _sfc_main$M = {
|
|
|
1562
1565
|
}
|
|
1563
1566
|
}
|
|
1564
1567
|
};
|
|
1565
|
-
const _withScopeId$3 = (n2) => (pushScopeId("data-v-
|
|
1568
|
+
const _withScopeId$3 = (n2) => (pushScopeId("data-v-6e2a7569"), n2 = n2(), popScopeId(), n2);
|
|
1566
1569
|
const _hoisted_1$F = {
|
|
1567
1570
|
key: 0,
|
|
1568
1571
|
class: "ux-field-title"
|
|
@@ -1724,7 +1727,7 @@ function _sfc_render$M(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1724
1727
|
}))
|
|
1725
1728
|
], 64);
|
|
1726
1729
|
}
|
|
1727
|
-
var PhoneNumberInput = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["render", _sfc_render$M], ["__scopeId", "data-v-
|
|
1730
|
+
var PhoneNumberInput = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["render", _sfc_render$M], ["__scopeId", "data-v-6e2a7569"]]);
|
|
1728
1731
|
var timezone_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
1729
1732
|
function isUndefined$5(entry) {
|
|
1730
1733
|
return entry === void 0 || typeof entry === "undefined" || entry === null || String(entry) === "null" || String(entry) === "undefined";
|
|
@@ -2312,7 +2315,7 @@ function _sfc_render$L(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2312
2315
|
])
|
|
2313
2316
|
], 2);
|
|
2314
2317
|
}
|
|
2315
|
-
var TimezoneSelect = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["render", _sfc_render$L], ["__scopeId", "data-v-
|
|
2318
|
+
var TimezoneSelect = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["render", _sfc_render$L], ["__scopeId", "data-v-a15362c8"]]);
|
|
2316
2319
|
var item_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
2317
2320
|
const _sfc_main$K = {
|
|
2318
2321
|
props: {
|
|
@@ -5076,7 +5079,6 @@ const _sfc_main$J = {
|
|
|
5076
5079
|
lockFilter: self2.field.lockFilter
|
|
5077
5080
|
}
|
|
5078
5081
|
};
|
|
5079
|
-
console.log("Modal options", modalOptions);
|
|
5080
5082
|
self2.$qik.browse(this.field.referenceType, modalOptions).then(function(newSelection) {
|
|
5081
5083
|
self2.model = self2.multiValue ? newSelection : newSelection[0];
|
|
5082
5084
|
}).catch(function(err) {
|
|
@@ -5232,7 +5234,7 @@ function _sfc_render$J(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5232
5234
|
}, 8, ["onClick"])
|
|
5233
5235
|
], 64);
|
|
5234
5236
|
}
|
|
5235
|
-
var ContentSelect = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["render", _sfc_render$J], ["__scopeId", "data-v-
|
|
5237
|
+
var ContentSelect = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["render", _sfc_render$J], ["__scopeId", "data-v-62ba944e"]]);
|
|
5236
5238
|
var typeSelect_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
5237
5239
|
function isUndefined$4(entry) {
|
|
5238
5240
|
return entry === void 0 || typeof entry === "undefined" || entry === null || String(entry) === "null" || String(entry) === "undefined";
|
|
@@ -5404,7 +5406,7 @@ function _sfc_render$I(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5404
5406
|
])
|
|
5405
5407
|
], 2);
|
|
5406
5408
|
}
|
|
5407
|
-
var TypeSelect = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["render", _sfc_render$I], ["__scopeId", "data-v-
|
|
5409
|
+
var TypeSelect = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["render", _sfc_render$I], ["__scopeId", "data-v-bd09dc46"]]);
|
|
5408
5410
|
var currency_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
5409
5411
|
const _sfc_main$H = {
|
|
5410
5412
|
props: {
|
|
@@ -5450,7 +5452,6 @@ const _sfc_main$H = {
|
|
|
5450
5452
|
return this.cleanOutput(this.value);
|
|
5451
5453
|
},
|
|
5452
5454
|
set(val) {
|
|
5453
|
-
console.log("SET MODEL", val);
|
|
5454
5455
|
this.value = this.cleanInput(val);
|
|
5455
5456
|
this.dispatch();
|
|
5456
5457
|
}
|
|
@@ -5622,7 +5623,7 @@ function _sfc_render$H(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5622
5623
|
], 2))
|
|
5623
5624
|
], 64);
|
|
5624
5625
|
}
|
|
5625
|
-
var CurrencyField = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["render", _sfc_render$H], ["__scopeId", "data-v-
|
|
5626
|
+
var CurrencyField = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["render", _sfc_render$H], ["__scopeId", "data-v-0f0203d4"]]);
|
|
5626
5627
|
var textfield_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
5627
5628
|
const _sfc_main$G = {
|
|
5628
5629
|
props: {
|
|
@@ -5852,7 +5853,7 @@ function _sfc_render$G(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5852
5853
|
]))
|
|
5853
5854
|
], 64);
|
|
5854
5855
|
}
|
|
5855
|
-
var TextField = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["render", _sfc_render$G], ["__scopeId", "data-v-
|
|
5856
|
+
var TextField = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["render", _sfc_render$G], ["__scopeId", "data-v-d9e8503e"]]);
|
|
5856
5857
|
var textarea_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
5857
5858
|
const _sfc_main$F = {
|
|
5858
5859
|
props: {
|
|
@@ -5958,7 +5959,7 @@ function _sfc_render$F(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5958
5959
|
])
|
|
5959
5960
|
], 64);
|
|
5960
5961
|
}
|
|
5961
|
-
var TextArea = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["render", _sfc_render$F], ["__scopeId", "data-v-
|
|
5962
|
+
var TextArea = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["render", _sfc_render$F], ["__scopeId", "data-v-777c0703"]]);
|
|
5962
5963
|
var datefield_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
5963
5964
|
function zero(input) {
|
|
5964
5965
|
if (String(input).length < 2) {
|
|
@@ -6106,7 +6107,7 @@ function _sfc_render$E(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6106
6107
|
])
|
|
6107
6108
|
], 64);
|
|
6108
6109
|
}
|
|
6109
|
-
var DateField = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["render", _sfc_render$E], ["__scopeId", "data-v-
|
|
6110
|
+
var DateField = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["render", _sfc_render$E], ["__scopeId", "data-v-1c86b484"]]);
|
|
6110
6111
|
var checkbox_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
6111
6112
|
const _sfc_main$D = {
|
|
6112
6113
|
computed: {
|
|
@@ -6199,7 +6200,7 @@ function _sfc_render$D(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6199
6200
|
_: 1
|
|
6200
6201
|
});
|
|
6201
6202
|
}
|
|
6202
|
-
var Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["render", _sfc_render$D], ["__scopeId", "data-v-
|
|
6203
|
+
var Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["render", _sfc_render$D], ["__scopeId", "data-v-046b9e38"]]);
|
|
6203
6204
|
const _sfc_main$C = {
|
|
6204
6205
|
props: {
|
|
6205
6206
|
modelValue: {
|
|
@@ -6951,7 +6952,6 @@ const _sfc_main$A = {
|
|
|
6951
6952
|
this.model.filters.push({});
|
|
6952
6953
|
},
|
|
6953
6954
|
removeCondition(index2) {
|
|
6954
|
-
console.log("remove index", index2);
|
|
6955
6955
|
this.model.filters.splice(index2, 1);
|
|
6956
6956
|
}
|
|
6957
6957
|
},
|
|
@@ -7333,7 +7333,7 @@ function _sfc_render$z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7333
7333
|
_: 1
|
|
7334
7334
|
});
|
|
7335
7335
|
}
|
|
7336
|
-
var FilterBuilder = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["render", _sfc_render$z], ["__scopeId", "data-v-
|
|
7336
|
+
var FilterBuilder = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["render", _sfc_render$z], ["__scopeId", "data-v-2a26bc0c"]]);
|
|
7337
7337
|
var filter_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
7338
7338
|
const _sfc_main$y = {
|
|
7339
7339
|
mixins: [InputMixin],
|
|
@@ -7369,7 +7369,6 @@ const _sfc_main$y = {
|
|
|
7369
7369
|
},
|
|
7370
7370
|
methods: {
|
|
7371
7371
|
getNewDefaultEntry() {
|
|
7372
|
-
console.log("GET DEFAULT ENTRY");
|
|
7373
7372
|
return {
|
|
7374
7373
|
operator: "and",
|
|
7375
7374
|
filters: []
|
|
@@ -7459,7 +7458,7 @@ function _sfc_render$y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7459
7458
|
}, null, 8, ["definition", "modelValue"]))
|
|
7460
7459
|
], 64);
|
|
7461
7460
|
}
|
|
7462
|
-
var FilterInput = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["render", _sfc_render$y], ["__scopeId", "data-v-
|
|
7461
|
+
var FilterInput = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["render", _sfc_render$y], ["__scopeId", "data-v-514ca0dc"]]);
|
|
7463
7462
|
var switch_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
7464
7463
|
const _sfc_main$x = {
|
|
7465
7464
|
mixins: [InputMixin],
|
|
@@ -7549,7 +7548,7 @@ function _sfc_render$x(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7549
7548
|
_: 1
|
|
7550
7549
|
});
|
|
7551
7550
|
}
|
|
7552
|
-
var Switch = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["render", _sfc_render$x], ["__scopeId", "data-v-
|
|
7551
|
+
var Switch = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["render", _sfc_render$x], ["__scopeId", "data-v-5994d322"]]);
|
|
7553
7552
|
var filedrop_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
7554
7553
|
const _sfc_main$w = {
|
|
7555
7554
|
props: {
|
|
@@ -7886,6 +7885,9 @@ const _sfc_main$u = {
|
|
|
7886
7885
|
}
|
|
7887
7886
|
},
|
|
7888
7887
|
methods: {
|
|
7888
|
+
createSingleObject() {
|
|
7889
|
+
this.model = {};
|
|
7890
|
+
},
|
|
7889
7891
|
stateChange(details) {
|
|
7890
7892
|
this.$emit("form:state", details);
|
|
7891
7893
|
},
|
|
@@ -8162,19 +8164,105 @@ function _sfc_render$u(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8162
8164
|
]),
|
|
8163
8165
|
_: 1
|
|
8164
8166
|
})) : createCommentVNode("", true)
|
|
8165
|
-
])) : (openBlock(),
|
|
8166
|
-
key:
|
|
8167
|
-
|
|
8168
|
-
|
|
8169
|
-
|
|
8170
|
-
|
|
8171
|
-
|
|
8172
|
-
|
|
8173
|
-
|
|
8174
|
-
|
|
8175
|
-
|
|
8167
|
+
])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
8168
|
+
_ctx.widget === "form" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
8169
|
+
_ctx.model ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
8170
|
+
_ctx.minimum === 0 ? (openBlock(), createBlock(_component_ux_panel, { key: 0 }, {
|
|
8171
|
+
default: withCtx(() => [
|
|
8172
|
+
createVNode(_component_ux_panel_header, null, {
|
|
8173
|
+
default: withCtx(() => [
|
|
8174
|
+
createVNode(_component_flex_row, {
|
|
8175
|
+
vcenter: "",
|
|
8176
|
+
gap: ""
|
|
8177
|
+
}, {
|
|
8178
|
+
default: withCtx(() => [
|
|
8179
|
+
createVNode(_component_flex_cell, { vcenter: "" }, {
|
|
8180
|
+
default: withCtx(() => [
|
|
8181
|
+
createElementVNode("div", null, [
|
|
8182
|
+
createElementVNode("strong", null, toDisplayString(_ctx.label), 1)
|
|
8183
|
+
])
|
|
8184
|
+
]),
|
|
8185
|
+
_: 1
|
|
8186
|
+
}),
|
|
8187
|
+
createVNode(_component_flex_cell, {
|
|
8188
|
+
vcenter: "",
|
|
8189
|
+
shrink: ""
|
|
8190
|
+
}, {
|
|
8191
|
+
default: withCtx(() => [
|
|
8192
|
+
createVNode(_component_ux_button, {
|
|
8193
|
+
icon: "",
|
|
8194
|
+
tag: "a",
|
|
8195
|
+
onClick: _cache[6] || (_cache[6] = ($event) => _ctx.model = void 0)
|
|
8196
|
+
}, {
|
|
8197
|
+
default: withCtx(() => [
|
|
8198
|
+
createVNode(_component_ux_icon, { icon: "fa-times" })
|
|
8199
|
+
]),
|
|
8200
|
+
_: 1
|
|
8201
|
+
})
|
|
8202
|
+
]),
|
|
8203
|
+
_: 1
|
|
8204
|
+
})
|
|
8205
|
+
]),
|
|
8206
|
+
_: 1
|
|
8207
|
+
})
|
|
8208
|
+
]),
|
|
8209
|
+
_: 1
|
|
8210
|
+
}),
|
|
8211
|
+
createVNode(_component_ux_panel_body, null, {
|
|
8212
|
+
default: withCtx(() => [
|
|
8213
|
+
createVNode(_component_ux_form, {
|
|
8214
|
+
ref: "form",
|
|
8215
|
+
submission: $props.submission,
|
|
8216
|
+
"onForm:state": $options.stateChange,
|
|
8217
|
+
parentModel: _ctx.parentModel,
|
|
8218
|
+
modelValue: _ctx.model,
|
|
8219
|
+
"onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => _ctx.model = $event),
|
|
8220
|
+
flex: $options.sameLine,
|
|
8221
|
+
fields: _ctx.field.fields
|
|
8222
|
+
}, null, 8, ["submission", "onForm:state", "parentModel", "modelValue", "flex", "fields"])
|
|
8223
|
+
]),
|
|
8224
|
+
_: 1
|
|
8225
|
+
})
|
|
8226
|
+
]),
|
|
8227
|
+
_: 1
|
|
8228
|
+
})) : (openBlock(), createBlock(_component_ux_form, {
|
|
8229
|
+
key: 1,
|
|
8230
|
+
ref: "form",
|
|
8231
|
+
submission: $props.submission,
|
|
8232
|
+
"onForm:state": $options.stateChange,
|
|
8233
|
+
parentModel: _ctx.parentModel,
|
|
8234
|
+
modelValue: _ctx.model,
|
|
8235
|
+
"onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => _ctx.model = $event),
|
|
8236
|
+
flex: $options.sameLine,
|
|
8237
|
+
fields: _ctx.field.fields
|
|
8238
|
+
}, null, 8, ["submission", "onForm:state", "parentModel", "modelValue", "flex", "fields"]))
|
|
8239
|
+
], 64)) : (openBlock(), createBlock(_component_ux_button, {
|
|
8240
|
+
key: 1,
|
|
8241
|
+
onClick: _cache[9] || (_cache[9] = ($event) => $options.createSingleObject())
|
|
8242
|
+
}, {
|
|
8243
|
+
default: withCtx(() => [
|
|
8244
|
+
createTextVNode("Add " + toDisplayString(_ctx.label) + " ", 1),
|
|
8245
|
+
createVNode(_component_ux_icon, {
|
|
8246
|
+
icon: "fa-plus",
|
|
8247
|
+
right: ""
|
|
8248
|
+
})
|
|
8249
|
+
]),
|
|
8250
|
+
_: 1
|
|
8251
|
+
}))
|
|
8252
|
+
], 64)) : (openBlock(), createBlock(_component_ux_form, {
|
|
8253
|
+
key: 1,
|
|
8254
|
+
ref: "form",
|
|
8255
|
+
submission: $props.submission,
|
|
8256
|
+
"onForm:state": $options.stateChange,
|
|
8257
|
+
parentModel: _ctx.parentModel,
|
|
8258
|
+
modelValue: _ctx.model,
|
|
8259
|
+
"onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => _ctx.model = $event),
|
|
8260
|
+
flex: $options.sameLine,
|
|
8261
|
+
fields: _ctx.field.fields
|
|
8262
|
+
}, null, 8, ["submission", "onForm:state", "parentModel", "modelValue", "flex", "fields"]))
|
|
8263
|
+
], 64));
|
|
8176
8264
|
}
|
|
8177
|
-
var FieldGroup$1 = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["render", _sfc_render$u], ["__scopeId", "data-v-
|
|
8265
|
+
var FieldGroup$1 = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["render", _sfc_render$u], ["__scopeId", "data-v-582bfb1a"]]);
|
|
8178
8266
|
const _sfc_main$t = {
|
|
8179
8267
|
props: {
|
|
8180
8268
|
option: {
|
|
@@ -8365,7 +8453,7 @@ function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8365
8453
|
])
|
|
8366
8454
|
], 64);
|
|
8367
8455
|
}
|
|
8368
|
-
var ButtonSelect = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_render$s], ["__scopeId", "data-v-
|
|
8456
|
+
var ButtonSelect = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_render$s], ["__scopeId", "data-v-f0acfde4"]]);
|
|
8369
8457
|
var objectField_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
8370
8458
|
const _sfc_main$r = {
|
|
8371
8459
|
props: {
|
|
@@ -8554,7 +8642,7 @@ const _sfc_main$q = {
|
|
|
8554
8642
|
}
|
|
8555
8643
|
}
|
|
8556
8644
|
};
|
|
8557
|
-
const _withScopeId$2 = (n2) => (pushScopeId("data-v-
|
|
8645
|
+
const _withScopeId$2 = (n2) => (pushScopeId("data-v-076c3da8"), n2 = n2(), popScopeId(), n2);
|
|
8558
8646
|
const _hoisted_1$l = {
|
|
8559
8647
|
key: 0,
|
|
8560
8648
|
class: "ux-field-title"
|
|
@@ -8798,7 +8886,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8798
8886
|
}))
|
|
8799
8887
|
], 64);
|
|
8800
8888
|
}
|
|
8801
|
-
var OptionsManager = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["render", _sfc_render$q], ["__scopeId", "data-v-
|
|
8889
|
+
var OptionsManager = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["render", _sfc_render$q], ["__scopeId", "data-v-076c3da8"]]);
|
|
8802
8890
|
var codeEditor_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
8803
8891
|
const _sfc_main$p = {
|
|
8804
8892
|
components: {},
|
|
@@ -9155,7 +9243,7 @@ function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9155
9243
|
])
|
|
9156
9244
|
], 2);
|
|
9157
9245
|
}
|
|
9158
|
-
var InternalRouteSelect = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$n], ["__scopeId", "data-v-
|
|
9246
|
+
var InternalRouteSelect = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$n], ["__scopeId", "data-v-bfeface6"]]);
|
|
9159
9247
|
var InternalMenuSelect_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
9160
9248
|
function isUndefined$1(entry) {
|
|
9161
9249
|
return entry === void 0 || typeof entry === "undefined" || entry === null || String(entry) === "null" || String(entry) === "undefined";
|
|
@@ -9321,7 +9409,7 @@ function _sfc_render$m(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9321
9409
|
])
|
|
9322
9410
|
], 2);
|
|
9323
9411
|
}
|
|
9324
|
-
var InternalMenuSelect = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["render", _sfc_render$m], ["__scopeId", "data-v-
|
|
9412
|
+
var InternalMenuSelect = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["render", _sfc_render$m], ["__scopeId", "data-v-2002cd50"]]);
|
|
9325
9413
|
var jsep = { exports: {} };
|
|
9326
9414
|
(function(module, exports) {
|
|
9327
9415
|
(function(root2) {
|
|
@@ -9936,9 +10024,6 @@ function ensureMinimum(field, array, min, ask, max, func) {
|
|
|
9936
10024
|
var length = array.length;
|
|
9937
10025
|
var meetsMinimum = length >= min;
|
|
9938
10026
|
if (!meetsMinimum) {
|
|
9939
|
-
if (field.key == "multiNumber") {
|
|
9940
|
-
console.log(field.key, min);
|
|
9941
|
-
}
|
|
9942
10027
|
var difference = min - length;
|
|
9943
10028
|
var extras = Array(difference).fill().map(func);
|
|
9944
10029
|
return [...array, ...extras];
|
|
@@ -9959,7 +10044,11 @@ function getDefaultValue(fieldData, currentValue) {
|
|
|
9959
10044
|
ask = maximum ? Math.min(ask, maximum) : ask;
|
|
9960
10045
|
var singleValue = maximum === 1;
|
|
9961
10046
|
if (fieldData.asObject && fieldData.type === "group") {
|
|
9962
|
-
|
|
10047
|
+
if (maximum === 1 && minimum === 1) {
|
|
10048
|
+
singleValue = true;
|
|
10049
|
+
} else {
|
|
10050
|
+
singleValue = false;
|
|
10051
|
+
}
|
|
9963
10052
|
}
|
|
9964
10053
|
var multiValue = !singleValue;
|
|
9965
10054
|
var defaultValues = (fieldData.type === "reference" ? fieldData.defaultReferences : fieldData.defaultValues) || [];
|
|
@@ -10078,7 +10167,11 @@ function getDefaultValue(fieldData, currentValue) {
|
|
|
10078
10167
|
output = [];
|
|
10079
10168
|
}
|
|
10080
10169
|
} else {
|
|
10081
|
-
|
|
10170
|
+
if (!minimum) {
|
|
10171
|
+
output = void 0;
|
|
10172
|
+
} else {
|
|
10173
|
+
output = isUndefined2(firstDefaultValue) ? {} : firstDefaultValue;
|
|
10174
|
+
}
|
|
10082
10175
|
}
|
|
10083
10176
|
} else {
|
|
10084
10177
|
if (multiValue) {
|
|
@@ -10189,6 +10282,7 @@ const _sfc_main$l = {
|
|
|
10189
10282
|
},
|
|
10190
10283
|
data() {
|
|
10191
10284
|
return {
|
|
10285
|
+
watching: true,
|
|
10192
10286
|
defaultValue: null,
|
|
10193
10287
|
model: this.modelValue,
|
|
10194
10288
|
touched: false,
|
|
@@ -10200,20 +10294,36 @@ const _sfc_main$l = {
|
|
|
10200
10294
|
isDirtyBeforeInput: false
|
|
10201
10295
|
};
|
|
10202
10296
|
},
|
|
10297
|
+
inject: ["parentFormElement"],
|
|
10203
10298
|
created() {
|
|
10204
10299
|
this.checkDirtyState();
|
|
10205
10300
|
},
|
|
10206
10301
|
mounted() {
|
|
10207
|
-
|
|
10302
|
+
const self2 = this;
|
|
10303
|
+
self2.mounted = true;
|
|
10304
|
+
if (self2.parentFormElement && self2.parentFormElement.childFormElements) {
|
|
10305
|
+
self2.parentFormElement.childFormElements.push(self2);
|
|
10306
|
+
}
|
|
10208
10307
|
},
|
|
10209
10308
|
beforeUnmount() {
|
|
10210
|
-
|
|
10309
|
+
const self2 = this;
|
|
10310
|
+
self2.mounted = false;
|
|
10311
|
+
if (self2.parentFormElement) {
|
|
10312
|
+
var index2 = self2.parentFormElement.childFormElements.indexOf(self2);
|
|
10313
|
+
self2.parentFormElement.childFormElements.splice(index2, 1);
|
|
10314
|
+
}
|
|
10211
10315
|
},
|
|
10212
10316
|
methods: {
|
|
10317
|
+
fieldDefaultValue() {
|
|
10318
|
+
var expressionDefaultValue = this.expressions && this.expressions.defaultValue ? this.getExpressionDefaultValue : void 0;
|
|
10319
|
+
var normalDefaultValue = getDefaultValue(this.actualField);
|
|
10320
|
+
var defaultValue = this.cleanInput(expressionDefaultValue || normalDefaultValue);
|
|
10321
|
+
return defaultValue;
|
|
10322
|
+
},
|
|
10213
10323
|
checkDirtyState() {
|
|
10214
10324
|
var existingData = this.fieldModel;
|
|
10215
10325
|
var hasExistingData = existingData || existingData === false || existingData === 0;
|
|
10216
|
-
var proposedDefaultValue = this.fieldDefaultValue;
|
|
10326
|
+
var proposedDefaultValue = this.fieldDefaultValue();
|
|
10217
10327
|
var existingString = JSON.stringify(this.cleanOutput(existingData));
|
|
10218
10328
|
var proposedString = JSON.stringify(this.cleanOutput(proposedDefaultValue));
|
|
10219
10329
|
if (hasExistingData && existingString != proposedString) {
|
|
@@ -10241,9 +10351,21 @@ const _sfc_main$l = {
|
|
|
10241
10351
|
touch() {
|
|
10242
10352
|
this.touched = true;
|
|
10243
10353
|
},
|
|
10244
|
-
|
|
10354
|
+
untouch() {
|
|
10245
10355
|
this.touched = false;
|
|
10246
10356
|
},
|
|
10357
|
+
reset() {
|
|
10358
|
+
this.untouch();
|
|
10359
|
+
this.watching = false;
|
|
10360
|
+
var defaultValue = this.fieldDefaultValue();
|
|
10361
|
+
if (Array.isArray(defaultValue)) {
|
|
10362
|
+
defaultValue = [];
|
|
10363
|
+
}
|
|
10364
|
+
this.model[this.key] = defaultValue;
|
|
10365
|
+
this.$nextTick(function() {
|
|
10366
|
+
this.watching = true;
|
|
10367
|
+
});
|
|
10368
|
+
},
|
|
10247
10369
|
cleanInput(val) {
|
|
10248
10370
|
return this.fieldCleanInput(val);
|
|
10249
10371
|
},
|
|
@@ -10286,7 +10408,7 @@ const _sfc_main$l = {
|
|
|
10286
10408
|
this.fieldModel = void 0;
|
|
10287
10409
|
}
|
|
10288
10410
|
} else {
|
|
10289
|
-
this.
|
|
10411
|
+
this.untouch();
|
|
10290
10412
|
}
|
|
10291
10413
|
},
|
|
10292
10414
|
focussed(val) {
|
|
@@ -10315,9 +10437,11 @@ const _sfc_main$l = {
|
|
|
10315
10437
|
this.validateResults = this.$qik.content.validateField(this.fieldModel, this.actualField);
|
|
10316
10438
|
},
|
|
10317
10439
|
modelValue(val, old) {
|
|
10318
|
-
this.
|
|
10319
|
-
|
|
10320
|
-
|
|
10440
|
+
if (this.watching) {
|
|
10441
|
+
this.model = val;
|
|
10442
|
+
this.touched = false;
|
|
10443
|
+
this.checkDirtyState();
|
|
10444
|
+
}
|
|
10321
10445
|
},
|
|
10322
10446
|
getExpressionHide(result) {
|
|
10323
10447
|
},
|
|
@@ -10333,12 +10457,6 @@ const _sfc_main$l = {
|
|
|
10333
10457
|
}
|
|
10334
10458
|
},
|
|
10335
10459
|
computed: {
|
|
10336
|
-
fieldDefaultValue() {
|
|
10337
|
-
var expressionDefaultValue = this.expressions && this.expressions.defaultValue ? this.getExpressionDefaultValue : void 0;
|
|
10338
|
-
var normalDefaultValue = getDefaultValue(this.actualField);
|
|
10339
|
-
var defaultValue = this.cleanInput(expressionDefaultValue || normalDefaultValue);
|
|
10340
|
-
return defaultValue;
|
|
10341
|
-
},
|
|
10342
10460
|
title() {
|
|
10343
10461
|
return this.field.title;
|
|
10344
10462
|
},
|
|
@@ -10360,6 +10478,9 @@ const _sfc_main$l = {
|
|
|
10360
10478
|
if (this.getExpressionSyntax) {
|
|
10361
10479
|
actual = Object.assign({}, actual, { syntax: this.getExpressionSyntax });
|
|
10362
10480
|
}
|
|
10481
|
+
if (this.getExpressionCurrency) {
|
|
10482
|
+
actual = Object.assign({}, actual, { currency: this.getExpressionCurrency });
|
|
10483
|
+
}
|
|
10363
10484
|
return actual;
|
|
10364
10485
|
},
|
|
10365
10486
|
changeString() {
|
|
@@ -10384,20 +10505,6 @@ const _sfc_main$l = {
|
|
|
10384
10505
|
dirty() {
|
|
10385
10506
|
return this.isDirty;
|
|
10386
10507
|
},
|
|
10387
|
-
hasData() {
|
|
10388
|
-
if (typeof this.fieldModel === "undefined") {
|
|
10389
|
-
return false;
|
|
10390
|
-
}
|
|
10391
|
-
if (this.multiValue) {
|
|
10392
|
-
if (!this.fieldModel || !this.fieldModel.length) {
|
|
10393
|
-
return false;
|
|
10394
|
-
}
|
|
10395
|
-
}
|
|
10396
|
-
if (this.fieldModel == "") {
|
|
10397
|
-
return false;
|
|
10398
|
-
}
|
|
10399
|
-
return true;
|
|
10400
|
-
},
|
|
10401
10508
|
getExpressionHide() {
|
|
10402
10509
|
if (!this.expressions) {
|
|
10403
10510
|
return;
|
|
@@ -10418,6 +10525,7 @@ const _sfc_main$l = {
|
|
|
10418
10525
|
getExpressionWidgetType: computedExpression("widget"),
|
|
10419
10526
|
getExpressionOptions: computedExpression("options"),
|
|
10420
10527
|
getExpressionSyntax: computedExpression("syntax"),
|
|
10528
|
+
getExpressionCurrency: computedExpression("currency"),
|
|
10421
10529
|
hasExpressionDefaultValue: hasExpression("defaultValue"),
|
|
10422
10530
|
expressions() {
|
|
10423
10531
|
return this.field.expressions;
|
|
@@ -10785,7 +10893,7 @@ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10785
10893
|
$options.error && $data.validateResults.message ? (openBlock(), createElementBlock("div", _hoisted_1$h, toDisplayString($data.validateResults.message), 1)) : createCommentVNode("", true)
|
|
10786
10894
|
], 34)) : createCommentVNode("", true);
|
|
10787
10895
|
}
|
|
10788
|
-
var UXFormField = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", _sfc_render$l], ["__scopeId", "data-v-
|
|
10896
|
+
var UXFormField = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", _sfc_render$l], ["__scopeId", "data-v-84a6cd12"]]);
|
|
10789
10897
|
var form_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
10790
10898
|
const _sfc_main$k = {
|
|
10791
10899
|
props: {
|
|
@@ -10826,30 +10934,44 @@ const _sfc_main$k = {
|
|
|
10826
10934
|
invalid: false,
|
|
10827
10935
|
error: false,
|
|
10828
10936
|
dirty: false,
|
|
10829
|
-
focussed: false
|
|
10937
|
+
focussed: false,
|
|
10938
|
+
childFormElements: []
|
|
10830
10939
|
};
|
|
10831
10940
|
},
|
|
10941
|
+
provide() {
|
|
10942
|
+
const parentFormElement = this.parentFormElement || this;
|
|
10943
|
+
return {
|
|
10944
|
+
parentFormElement
|
|
10945
|
+
};
|
|
10946
|
+
},
|
|
10947
|
+
inject: ["parentFormElement"],
|
|
10832
10948
|
mounted() {
|
|
10833
|
-
|
|
10949
|
+
const self2 = this;
|
|
10950
|
+
self2.mounted = true;
|
|
10834
10951
|
},
|
|
10835
10952
|
beforeUnmount() {
|
|
10836
|
-
|
|
10953
|
+
const self2 = this;
|
|
10954
|
+
self2.mounted = false;
|
|
10837
10955
|
},
|
|
10838
10956
|
methods: {
|
|
10839
10957
|
touch() {
|
|
10840
|
-
this.
|
|
10958
|
+
(this.childFormElements || []).forEach(function(field) {
|
|
10841
10959
|
field.touch();
|
|
10842
10960
|
});
|
|
10843
10961
|
this.touched = true;
|
|
10844
10962
|
},
|
|
10845
|
-
|
|
10846
|
-
this.
|
|
10847
|
-
field.
|
|
10963
|
+
untouch() {
|
|
10964
|
+
(this.childFormElements || []).forEach(function(field) {
|
|
10965
|
+
field.untouch();
|
|
10848
10966
|
});
|
|
10849
10967
|
this.touched = false;
|
|
10850
10968
|
},
|
|
10851
|
-
|
|
10852
|
-
|
|
10969
|
+
reset() {
|
|
10970
|
+
this.untouch();
|
|
10971
|
+
(this.childFormElements || []).forEach(function(field) {
|
|
10972
|
+
field.reset();
|
|
10973
|
+
});
|
|
10974
|
+
this.model = {};
|
|
10853
10975
|
},
|
|
10854
10976
|
fieldUnmounted(field) {
|
|
10855
10977
|
this.fieldStateChange(field, "unmount");
|
|
@@ -10896,7 +11018,7 @@ const _sfc_main$k = {
|
|
|
10896
11018
|
var touched = false;
|
|
10897
11019
|
var focussed = false;
|
|
10898
11020
|
var invalidFields = [];
|
|
10899
|
-
self2.
|
|
11021
|
+
self2.childFormElements.forEach(function(field) {
|
|
10900
11022
|
if (field.dirty) {
|
|
10901
11023
|
dirty = true;
|
|
10902
11024
|
}
|
|
@@ -10951,41 +11073,6 @@ const _sfc_main$k = {
|
|
|
10951
11073
|
valid() {
|
|
10952
11074
|
return !this.invalid;
|
|
10953
11075
|
},
|
|
10954
|
-
childFields() {
|
|
10955
|
-
var self2 = this;
|
|
10956
|
-
var directRefs = [];
|
|
10957
|
-
if (!self2.mounted) {
|
|
10958
|
-
return [];
|
|
10959
|
-
}
|
|
10960
|
-
findRecursive(this.$refs, directRefs);
|
|
10961
|
-
function findRecursive($refs, collection) {
|
|
10962
|
-
var fields = $refs.field ? $refs.field : [];
|
|
10963
|
-
var groups = $refs.group ? $refs.group : [];
|
|
10964
|
-
var forms = $refs.form ? $refs.form : [];
|
|
10965
|
-
if (fields && !Array.isArray(fields)) {
|
|
10966
|
-
fields = [fields];
|
|
10967
|
-
}
|
|
10968
|
-
if (groups && !Array.isArray(groups)) {
|
|
10969
|
-
groups = [groups];
|
|
10970
|
-
}
|
|
10971
|
-
if (forms && !Array.isArray(forms)) {
|
|
10972
|
-
forms = [forms];
|
|
10973
|
-
}
|
|
10974
|
-
fields.forEach(function(field) {
|
|
10975
|
-
if (field.visible) {
|
|
10976
|
-
collection.push(field);
|
|
10977
|
-
findRecursive(field.$refs, collection);
|
|
10978
|
-
}
|
|
10979
|
-
});
|
|
10980
|
-
groups.forEach(function(group) {
|
|
10981
|
-
findRecursive(group.$refs, collection);
|
|
10982
|
-
});
|
|
10983
|
-
forms.forEach(function(form) {
|
|
10984
|
-
findRecursive(form.$refs, collection);
|
|
10985
|
-
});
|
|
10986
|
-
}
|
|
10987
|
-
return directRefs;
|
|
10988
|
-
},
|
|
10989
11076
|
formClass() {
|
|
10990
11077
|
var array = [];
|
|
10991
11078
|
if (this.flex) {
|
|
@@ -11048,7 +11135,7 @@ function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11048
11135
|
], true)
|
|
11049
11136
|
], 2);
|
|
11050
11137
|
}
|
|
11051
|
-
var UXForm = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["render", _sfc_render$k], ["__scopeId", "data-v-
|
|
11138
|
+
var UXForm = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["render", _sfc_render$k], ["__scopeId", "data-v-6296f844"]]);
|
|
11052
11139
|
var submissionform_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
11053
11140
|
const STATE_READY = "form.ready";
|
|
11054
11141
|
const STATE_PROCESSING = "form.processing";
|
|
@@ -11069,12 +11156,14 @@ const _sfc_main$j = {
|
|
|
11069
11156
|
},
|
|
11070
11157
|
untouch() {
|
|
11071
11158
|
if (this.$refs.form) {
|
|
11072
|
-
this.$refs.form.
|
|
11159
|
+
this.$refs.form.untouch();
|
|
11073
11160
|
}
|
|
11074
11161
|
},
|
|
11075
11162
|
reset() {
|
|
11076
11163
|
this.model = {};
|
|
11077
|
-
this.
|
|
11164
|
+
if (this.$refs.form) {
|
|
11165
|
+
this.$refs.form.reset();
|
|
11166
|
+
}
|
|
11078
11167
|
this.state = STATE_READY;
|
|
11079
11168
|
this.error = null;
|
|
11080
11169
|
this.submitAttempted = false;
|
|
@@ -11165,7 +11254,7 @@ const _sfc_main$j = {
|
|
|
11165
11254
|
}
|
|
11166
11255
|
}
|
|
11167
11256
|
};
|
|
11168
|
-
const _withScopeId$1 = (n2) => (pushScopeId("data-v-
|
|
11257
|
+
const _withScopeId$1 = (n2) => (pushScopeId("data-v-165f973d"), n2 = n2(), popScopeId(), n2);
|
|
11169
11258
|
const _hoisted_1$g = { class: "ux-submission-form" };
|
|
11170
11259
|
const _hoisted_2$b = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("h3", null, "An error occurred", -1));
|
|
11171
11260
|
const _hoisted_3$8 = { key: 0 };
|
|
@@ -11238,7 +11327,7 @@ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11238
11327
|
], 64))
|
|
11239
11328
|
]);
|
|
11240
11329
|
}
|
|
11241
|
-
var UXSubmissionForm = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render$j], ["__scopeId", "data-v-
|
|
11330
|
+
var UXSubmissionForm = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render$j], ["__scopeId", "data-v-165f973d"]]);
|
|
11242
11331
|
var search_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
11243
11332
|
const _sfc_main$i = {
|
|
11244
11333
|
props: {
|
|
@@ -11324,7 +11413,7 @@ function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11324
11413
|
])
|
|
11325
11414
|
]);
|
|
11326
11415
|
}
|
|
11327
|
-
var Search = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_render$i], ["__scopeId", "data-v-
|
|
11416
|
+
var Search = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_render$i], ["__scopeId", "data-v-53fd0043"]]);
|
|
11328
11417
|
var RenderMixin = {
|
|
11329
11418
|
props: {
|
|
11330
11419
|
field: {
|
|
@@ -16480,7 +16569,7 @@ function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
16480
16569
|
}, null, 8, ["type", "value"]))
|
|
16481
16570
|
]));
|
|
16482
16571
|
}
|
|
16483
|
-
var TableCell = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$9], ["__scopeId", "data-v-
|
|
16572
|
+
var TableCell = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$9], ["__scopeId", "data-v-d2ef28aa"]]);
|
|
16484
16573
|
const _sfc_main$8 = {
|
|
16485
16574
|
components: {
|
|
16486
16575
|
TableCell
|
|
@@ -16516,11 +16605,9 @@ const _sfc_main$8 = {
|
|
|
16516
16605
|
this.$emit("click:row", this.row);
|
|
16517
16606
|
},
|
|
16518
16607
|
clickActions(row) {
|
|
16519
|
-
console.log("click actions");
|
|
16520
16608
|
this.$emit("click:actions", row);
|
|
16521
16609
|
},
|
|
16522
16610
|
clickSelect(row) {
|
|
16523
|
-
console.log("click select");
|
|
16524
16611
|
this.$emit("click:select", row);
|
|
16525
16612
|
}
|
|
16526
16613
|
},
|
|
@@ -17644,7 +17731,6 @@ const _sfc_main$5 = {
|
|
|
17644
17731
|
var index2 = this.additionalFields.findIndex(function(f) {
|
|
17645
17732
|
return f.path === key || f.key === key;
|
|
17646
17733
|
});
|
|
17647
|
-
console.log("index", index2, key);
|
|
17648
17734
|
if (index2 === -1) {
|
|
17649
17735
|
this.additionalFields.push(field);
|
|
17650
17736
|
} else {
|
|
@@ -17655,8 +17741,12 @@ const _sfc_main$5 = {
|
|
|
17655
17741
|
if (!row.meta) {
|
|
17656
17742
|
row.meta = {};
|
|
17657
17743
|
}
|
|
17658
|
-
row.meta.type
|
|
17659
|
-
|
|
17744
|
+
if (!row.meta.type) {
|
|
17745
|
+
row.meta.type = this.basicType;
|
|
17746
|
+
}
|
|
17747
|
+
if (!row.meta.definition) {
|
|
17748
|
+
row.meta.definition = this.definition.key;
|
|
17749
|
+
}
|
|
17660
17750
|
if (this.trash) {
|
|
17661
17751
|
row.meta.deleted = true;
|
|
17662
17752
|
}
|
|
@@ -17755,7 +17845,7 @@ const _sfc_main$5 = {
|
|
|
17755
17845
|
};
|
|
17756
17846
|
}
|
|
17757
17847
|
};
|
|
17758
|
-
const _withScopeId = (n2) => (pushScopeId("data-v-
|
|
17848
|
+
const _withScopeId = (n2) => (pushScopeId("data-v-3e12c643"), n2 = n2(), popScopeId(), n2);
|
|
17759
17849
|
const _hoisted_1$5 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("p", null, null, -1));
|
|
17760
17850
|
const _hoisted_2$4 = { class: "footer" };
|
|
17761
17851
|
function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
@@ -17929,7 +18019,7 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
17929
18019
|
_: 3
|
|
17930
18020
|
})) : createCommentVNode("", true);
|
|
17931
18021
|
}
|
|
17932
|
-
var ContentBrowser = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["render", _sfc_render$5], ["__scopeId", "data-v-
|
|
18022
|
+
var ContentBrowser = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["render", _sfc_render$5], ["__scopeId", "data-v-3e12c643"]]);
|
|
17933
18023
|
var ModalMixin = {
|
|
17934
18024
|
props: {
|
|
17935
18025
|
options: {
|
|
@@ -18171,7 +18261,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
18171
18261
|
_: 1
|
|
18172
18262
|
});
|
|
18173
18263
|
}
|
|
18174
|
-
var QikOptionsModal = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2], ["__scopeId", "data-v-
|
|
18264
|
+
var QikOptionsModal = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2], ["__scopeId", "data-v-09008c8a"]]);
|
|
18175
18265
|
var PromptModal_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
18176
18266
|
const _sfc_main$1 = {
|
|
18177
18267
|
mixins: [ModalMixin],
|
|
@@ -18180,11 +18270,7 @@ const _sfc_main$1 = {
|
|
|
18180
18270
|
model: {}
|
|
18181
18271
|
};
|
|
18182
18272
|
},
|
|
18183
|
-
methods: {
|
|
18184
|
-
submit() {
|
|
18185
|
-
console.log("SUBMIT");
|
|
18186
|
-
}
|
|
18187
|
-
},
|
|
18273
|
+
methods: {},
|
|
18188
18274
|
computed: {
|
|
18189
18275
|
fields() {
|
|
18190
18276
|
return this.options.fields || [];
|
|
@@ -18211,7 +18297,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
18211
18297
|
const _component_flex_column = resolveComponent("flex-column");
|
|
18212
18298
|
return openBlock(), createElementBlock("form", {
|
|
18213
18299
|
class: "wrapper",
|
|
18214
|
-
onSubmit: _cache[2] || (_cache[2] = withModifiers((...args) =>
|
|
18300
|
+
onSubmit: _cache[2] || (_cache[2] = withModifiers((...args) => _ctx.submit && _ctx.submit(...args), ["prevent", "stop"]))
|
|
18215
18301
|
}, [
|
|
18216
18302
|
createVNode(_component_flex_column, null, {
|
|
18217
18303
|
default: withCtx(() => [
|
|
@@ -18276,7 +18362,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
18276
18362
|
})
|
|
18277
18363
|
], 32);
|
|
18278
18364
|
}
|
|
18279
|
-
var QikPromptModal = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-
|
|
18365
|
+
var QikPromptModal = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-4af3c888"]]);
|
|
18280
18366
|
var ContentModal_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
18281
18367
|
const _sfc_main = {
|
|
18282
18368
|
components: {
|