@qikdev/vue-ui 0.1.43 → 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 +452 -261
- 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: {
|
|
@@ -240,8 +240,8 @@ const _sfc_main$Y = {
|
|
|
240
240
|
}
|
|
241
241
|
}
|
|
242
242
|
};
|
|
243
|
-
const _withScopeId$
|
|
244
|
-
const _hoisted_1$M = /* @__PURE__ */ _withScopeId$
|
|
243
|
+
const _withScopeId$5 = (n2) => (pushScopeId("data-v-27f20370"), n2 = n2(), popScopeId(), n2);
|
|
244
|
+
const _hoisted_1$M = /* @__PURE__ */ _withScopeId$5(() => /* @__PURE__ */ createElementVNode("i", { class: "fa fa-spin fa-spinner" }, null, -1));
|
|
245
245
|
const _hoisted_2$B = [
|
|
246
246
|
_hoisted_1$M
|
|
247
247
|
];
|
|
@@ -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,9 +909,9 @@ const _sfc_main$Q = {
|
|
|
909
909
|
}
|
|
910
910
|
}
|
|
911
911
|
};
|
|
912
|
-
const _withScopeId$
|
|
912
|
+
const _withScopeId$4 = (n2) => (pushScopeId("data-v-317a7690"), n2 = n2(), popScopeId(), n2);
|
|
913
913
|
const _hoisted_1$J = { class: "ux-progress" };
|
|
914
|
-
const _hoisted_2$A = /* @__PURE__ */ _withScopeId$
|
|
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) {
|
|
916
916
|
return openBlock(), createElementBlock("div", _hoisted_1$J, [
|
|
917
917
|
_hoisted_2$A,
|
|
@@ -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;
|
|
@@ -1448,11 +1451,11 @@ const _hoisted_4$r = {
|
|
|
1448
1451
|
class: "ui-select-button"
|
|
1449
1452
|
};
|
|
1450
1453
|
const _hoisted_5$k = ["multiple"];
|
|
1451
|
-
const _hoisted_6$
|
|
1454
|
+
const _hoisted_6$h = {
|
|
1452
1455
|
key: 0,
|
|
1453
1456
|
value: ""
|
|
1454
1457
|
};
|
|
1455
|
-
const _hoisted_7$
|
|
1458
|
+
const _hoisted_7$f = ["value"];
|
|
1456
1459
|
function _sfc_render$N(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1457
1460
|
const _component_ux_button = resolveComponent("ux-button");
|
|
1458
1461
|
return openBlock(), createElementBlock("div", {
|
|
@@ -1478,18 +1481,18 @@ function _sfc_render$N(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1478
1481
|
multiple: _ctx.multiValue,
|
|
1479
1482
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => _ctx.model = $event)
|
|
1480
1483
|
}, [
|
|
1481
|
-
_ctx.singleValue && !_ctx.minimum ? (openBlock(), createElementBlock("option", _hoisted_6$
|
|
1484
|
+
_ctx.singleValue && !_ctx.minimum ? (openBlock(), createElementBlock("option", _hoisted_6$h, "None")) : createCommentVNode("", true),
|
|
1482
1485
|
(openBlock(true), createElementBlock(Fragment, null, renderList($options.selectableOptions, (option2) => {
|
|
1483
1486
|
return openBlock(), createElementBlock("option", {
|
|
1484
1487
|
value: option2.value
|
|
1485
|
-
}, toDisplayString(option2.title), 9, _hoisted_7$
|
|
1488
|
+
}, toDisplayString(option2.title), 9, _hoisted_7$f);
|
|
1486
1489
|
}), 256))
|
|
1487
1490
|
], 40, _hoisted_5$k), [
|
|
1488
1491
|
[vModelSelect, _ctx.model]
|
|
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$
|
|
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"
|
|
@@ -1577,11 +1580,11 @@ const _hoisted_3$u = {
|
|
|
1577
1580
|
};
|
|
1578
1581
|
const _hoisted_4$q = { key: 2 };
|
|
1579
1582
|
const _hoisted_5$j = /* @__PURE__ */ createTextVNode(" Country Code ");
|
|
1580
|
-
const _hoisted_6$
|
|
1581
|
-
const _hoisted_7$
|
|
1582
|
-
const _hoisted_8$
|
|
1583
|
-
const _hoisted_9$
|
|
1584
|
-
const _hoisted_10$
|
|
1583
|
+
const _hoisted_6$g = { key: 0 };
|
|
1584
|
+
const _hoisted_7$e = { key: 1 };
|
|
1585
|
+
const _hoisted_8$8 = { class: "ux-text-wrap" };
|
|
1586
|
+
const _hoisted_9$6 = ["placeholder", "onUpdate:modelValue"];
|
|
1587
|
+
const _hoisted_10$5 = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("option", { value: "" }, "None", -1));
|
|
1585
1588
|
const _hoisted_11$4 = ["value"];
|
|
1586
1589
|
const _hoisted_12$4 = { class: "ux-text-wrap" };
|
|
1587
1590
|
const _hoisted_13$3 = ["placeholder"];
|
|
@@ -1616,7 +1619,7 @@ function _sfc_render$M(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1616
1619
|
!entry.countryCode ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
1617
1620
|
_hoisted_5$j
|
|
1618
1621
|
], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
1619
|
-
$data.lookup[entry.countryCode] ? (openBlock(), createElementBlock("div", _hoisted_6$
|
|
1622
|
+
$data.lookup[entry.countryCode] ? (openBlock(), createElementBlock("div", _hoisted_6$g, toDisplayString($data.lookup[entry.countryCode].emoji) + " - " + toDisplayString($data.lookup[entry.countryCode].alpha2), 1)) : (openBlock(), createElementBlock("div", _hoisted_7$e, "Loading"))
|
|
1620
1623
|
], 64))
|
|
1621
1624
|
]),
|
|
1622
1625
|
_: 2
|
|
@@ -1626,7 +1629,7 @@ function _sfc_render$M(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1626
1629
|
}, 1024),
|
|
1627
1630
|
createVNode(_component_flex_cell, null, {
|
|
1628
1631
|
default: withCtx(() => [
|
|
1629
|
-
createElementVNode("div", _hoisted_8$
|
|
1632
|
+
createElementVNode("div", _hoisted_8$8, [
|
|
1630
1633
|
withDirectives(createElementVNode("input", {
|
|
1631
1634
|
class: "ux-field-focus ux-text-input-multiple",
|
|
1632
1635
|
placeholder: $options.actualPlaceholder,
|
|
@@ -1635,7 +1638,7 @@ function _sfc_render$M(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1635
1638
|
ref: "input",
|
|
1636
1639
|
onKeydown: _cache[1] || (_cache[1] = withKeys(withModifiers(($event) => _ctx.add(), ["stop", "prevent"]), ["enter"])),
|
|
1637
1640
|
"onUpdate:modelValue": ($event) => entry.number = $event
|
|
1638
|
-
}, null, 40, _hoisted_9$
|
|
1641
|
+
}, null, 40, _hoisted_9$6), [
|
|
1639
1642
|
[vModelText, entry.number]
|
|
1640
1643
|
])
|
|
1641
1644
|
])
|
|
@@ -1690,7 +1693,7 @@ function _sfc_render$M(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1690
1693
|
class: "ux-country-code-select",
|
|
1691
1694
|
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => _ctx.model.countryCode = $event)
|
|
1692
1695
|
}, [
|
|
1693
|
-
_hoisted_10$
|
|
1696
|
+
_hoisted_10$5,
|
|
1694
1697
|
(openBlock(true), createElementBlock(Fragment, null, renderList($data.countryCodes, (country) => {
|
|
1695
1698
|
return openBlock(), createElementBlock("option", {
|
|
1696
1699
|
value: country.value
|
|
@@ -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";
|
|
@@ -2271,11 +2274,11 @@ const _hoisted_4$p = {
|
|
|
2271
2274
|
class: "ui-select-button"
|
|
2272
2275
|
};
|
|
2273
2276
|
const _hoisted_5$i = ["multiple"];
|
|
2274
|
-
const _hoisted_6$
|
|
2277
|
+
const _hoisted_6$f = {
|
|
2275
2278
|
key: 0,
|
|
2276
2279
|
value: ""
|
|
2277
2280
|
};
|
|
2278
|
-
const _hoisted_7$
|
|
2281
|
+
const _hoisted_7$d = ["value"];
|
|
2279
2282
|
function _sfc_render$L(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2280
2283
|
const _component_ux_button = resolveComponent("ux-button");
|
|
2281
2284
|
return openBlock(), createElementBlock("div", {
|
|
@@ -2301,18 +2304,18 @@ function _sfc_render$L(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2301
2304
|
multiple: _ctx.multiValue,
|
|
2302
2305
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => _ctx.model = $event)
|
|
2303
2306
|
}, [
|
|
2304
|
-
_ctx.singleValue && !_ctx.minimum ? (openBlock(), createElementBlock("option", _hoisted_6$
|
|
2307
|
+
_ctx.singleValue && !_ctx.minimum ? (openBlock(), createElementBlock("option", _hoisted_6$f, "None")) : createCommentVNode("", true),
|
|
2305
2308
|
(openBlock(true), createElementBlock(Fragment, null, renderList($options.selectableOptions, (option2) => {
|
|
2306
2309
|
return openBlock(), createElementBlock("option", {
|
|
2307
2310
|
value: option2.value
|
|
2308
|
-
}, toDisplayString(option2.title), 9, _hoisted_7$
|
|
2311
|
+
}, toDisplayString(option2.title), 9, _hoisted_7$d);
|
|
2309
2312
|
}), 256))
|
|
2310
2313
|
], 40, _hoisted_5$i), [
|
|
2311
2314
|
[vModelSelect, _ctx.model]
|
|
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";
|
|
@@ -5363,11 +5365,11 @@ const _hoisted_4$n = {
|
|
|
5363
5365
|
class: "ui-select-button"
|
|
5364
5366
|
};
|
|
5365
5367
|
const _hoisted_5$h = ["multiple"];
|
|
5366
|
-
const _hoisted_6$
|
|
5368
|
+
const _hoisted_6$e = {
|
|
5367
5369
|
key: 0,
|
|
5368
5370
|
value: ""
|
|
5369
5371
|
};
|
|
5370
|
-
const _hoisted_7$
|
|
5372
|
+
const _hoisted_7$c = ["value"];
|
|
5371
5373
|
function _sfc_render$I(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5372
5374
|
const _component_ux_button = resolveComponent("ux-button");
|
|
5373
5375
|
return openBlock(), createElementBlock("div", {
|
|
@@ -5393,18 +5395,18 @@ function _sfc_render$I(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5393
5395
|
multiple: _ctx.multiValue,
|
|
5394
5396
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => _ctx.model = $event)
|
|
5395
5397
|
}, [
|
|
5396
|
-
_ctx.singleValue && !_ctx.minimum ? (openBlock(), createElementBlock("option", _hoisted_6$
|
|
5398
|
+
_ctx.singleValue && !_ctx.minimum ? (openBlock(), createElementBlock("option", _hoisted_6$e, "None")) : createCommentVNode("", true),
|
|
5397
5399
|
(openBlock(true), createElementBlock(Fragment, null, renderList($options.selectableOptions, (option2) => {
|
|
5398
5400
|
return openBlock(), createElementBlock("option", {
|
|
5399
5401
|
value: option2.value
|
|
5400
|
-
}, toDisplayString(option2.title), 9, _hoisted_7$
|
|
5402
|
+
}, toDisplayString(option2.title), 9, _hoisted_7$c);
|
|
5401
5403
|
}), 256))
|
|
5402
5404
|
], 40, _hoisted_5$h), [
|
|
5403
5405
|
[vModelSelect, _ctx.model]
|
|
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
|
}
|
|
@@ -5501,16 +5502,16 @@ const _hoisted_5$g = {
|
|
|
5501
5502
|
key: 0,
|
|
5502
5503
|
class: "ux-text-prefix"
|
|
5503
5504
|
};
|
|
5504
|
-
const _hoisted_6$
|
|
5505
|
-
const _hoisted_7$
|
|
5505
|
+
const _hoisted_6$d = ["onBlur", "onUpdate:modelValue"];
|
|
5506
|
+
const _hoisted_7$b = {
|
|
5506
5507
|
key: 1,
|
|
5507
5508
|
class: "ux-text-suffix"
|
|
5508
5509
|
};
|
|
5509
|
-
const _hoisted_8$
|
|
5510
|
+
const _hoisted_8$7 = {
|
|
5510
5511
|
key: 0,
|
|
5511
5512
|
class: "ux-text-prefix"
|
|
5512
5513
|
};
|
|
5513
|
-
const _hoisted_9$
|
|
5514
|
+
const _hoisted_9$5 = {
|
|
5514
5515
|
key: 1,
|
|
5515
5516
|
class: "ux-text-suffix"
|
|
5516
5517
|
};
|
|
@@ -5548,7 +5549,7 @@ function _sfc_render$H(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5548
5549
|
onBlur: ($event) => $options.update($event, index2),
|
|
5549
5550
|
"onUpdate:modelValue": ($event) => $options.proxy[index2] = $event,
|
|
5550
5551
|
onFocus: _cache[1] || (_cache[1] = (...args) => _ctx.touch && _ctx.touch(...args))
|
|
5551
|
-
}, null, 40, _hoisted_6$
|
|
5552
|
+
}, null, 40, _hoisted_6$d)), [
|
|
5552
5553
|
[
|
|
5553
5554
|
vModelText,
|
|
5554
5555
|
$options.proxy[index2],
|
|
@@ -5556,7 +5557,7 @@ function _sfc_render$H(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5556
5557
|
{ lazy: true }
|
|
5557
5558
|
]
|
|
5558
5559
|
]),
|
|
5559
|
-
$options.suffix ? (openBlock(), createElementBlock("span", _hoisted_7$
|
|
5560
|
+
$options.suffix ? (openBlock(), createElementBlock("span", _hoisted_7$b, toDisplayString($options.suffix), 1)) : createCommentVNode("", true)
|
|
5560
5561
|
], 2)
|
|
5561
5562
|
]),
|
|
5562
5563
|
_: 2
|
|
@@ -5601,7 +5602,7 @@ function _sfc_render$H(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5601
5602
|
key: 3,
|
|
5602
5603
|
class: normalizeClass(["ux-text-wrap", { prefixed: $options.prefix, suffixed: $options.suffix }])
|
|
5603
5604
|
}, [
|
|
5604
|
-
$options.prefix ? (openBlock(), createElementBlock("span", _hoisted_8$
|
|
5605
|
+
$options.prefix ? (openBlock(), createElementBlock("span", _hoisted_8$7, toDisplayString($options.prefix), 1)) : createCommentVNode("", true),
|
|
5605
5606
|
withDirectives((openBlock(), createElementBlock("input", {
|
|
5606
5607
|
class: "ux-field-focus ux-text-input-single",
|
|
5607
5608
|
ref: "input",
|
|
@@ -5618,11 +5619,11 @@ function _sfc_render$H(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5618
5619
|
{ lazy: true }
|
|
5619
5620
|
]
|
|
5620
5621
|
]),
|
|
5621
|
-
$options.suffix ? (openBlock(), createElementBlock("span", _hoisted_9$
|
|
5622
|
+
$options.suffix ? (openBlock(), createElementBlock("span", _hoisted_9$5, toDisplayString($options.suffix), 1)) : createCommentVNode("", true)
|
|
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: {
|
|
@@ -5701,17 +5702,17 @@ const _hoisted_3$p = {
|
|
|
5701
5702
|
};
|
|
5702
5703
|
const _hoisted_4$l = { key: 2 };
|
|
5703
5704
|
const _hoisted_5$f = { class: "ux-text-wrap" };
|
|
5704
|
-
const _hoisted_6$
|
|
5705
|
+
const _hoisted_6$c = {
|
|
5705
5706
|
key: 0,
|
|
5706
5707
|
class: "ux-text-prefix"
|
|
5707
5708
|
};
|
|
5708
|
-
const _hoisted_7$
|
|
5709
|
-
const _hoisted_8$
|
|
5710
|
-
const _hoisted_9$
|
|
5709
|
+
const _hoisted_7$a = ["type", "placeholder", "onUpdate:modelValue"];
|
|
5710
|
+
const _hoisted_8$6 = ["type", "placeholder", "onUpdate:modelValue"];
|
|
5711
|
+
const _hoisted_9$4 = {
|
|
5711
5712
|
key: 3,
|
|
5712
5713
|
class: "ux-text-suffix"
|
|
5713
5714
|
};
|
|
5714
|
-
const _hoisted_10$
|
|
5715
|
+
const _hoisted_10$4 = {
|
|
5715
5716
|
key: 3,
|
|
5716
5717
|
class: "ux-text-wrap"
|
|
5717
5718
|
};
|
|
@@ -5746,7 +5747,7 @@ function _sfc_render$G(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5746
5747
|
createVNode(_component_flex_cell, null, {
|
|
5747
5748
|
default: withCtx(() => [
|
|
5748
5749
|
createElementVNode("div", _hoisted_5$f, [
|
|
5749
|
-
_ctx.prefix ? (openBlock(), createElementBlock("span", _hoisted_6$
|
|
5750
|
+
_ctx.prefix ? (openBlock(), createElementBlock("span", _hoisted_6$c, toDisplayString(_ctx.prefix), 1)) : createCommentVNode("", true),
|
|
5750
5751
|
$options.lazy ? withDirectives((openBlock(), createElementBlock("input", {
|
|
5751
5752
|
key: 1,
|
|
5752
5753
|
type: $options.inputType,
|
|
@@ -5757,7 +5758,7 @@ function _sfc_render$G(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5757
5758
|
ref: "input",
|
|
5758
5759
|
onKeydown: _cache[1] || (_cache[1] = withKeys(withModifiers(($event) => _ctx.add(), ["stop", "prevent"]), ["enter"])),
|
|
5759
5760
|
"onUpdate:modelValue": ($event) => _ctx.model[index2] = $event
|
|
5760
|
-
}, null, 40, _hoisted_7$
|
|
5761
|
+
}, null, 40, _hoisted_7$a)), [
|
|
5761
5762
|
[
|
|
5762
5763
|
vModelDynamic,
|
|
5763
5764
|
_ctx.model[index2],
|
|
@@ -5775,10 +5776,10 @@ function _sfc_render$G(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5775
5776
|
ref: "input",
|
|
5776
5777
|
onKeydown: _cache[3] || (_cache[3] = withKeys(withModifiers(($event) => _ctx.add(), ["stop", "prevent"]), ["enter"])),
|
|
5777
5778
|
"onUpdate:modelValue": ($event) => _ctx.model[index2] = $event
|
|
5778
|
-
}, null, 40, _hoisted_8$
|
|
5779
|
+
}, null, 40, _hoisted_8$6)), [
|
|
5779
5780
|
[vModelDynamic, _ctx.model[index2]]
|
|
5780
5781
|
]) : createCommentVNode("", true),
|
|
5781
|
-
_ctx.suffix ? (openBlock(), createElementBlock("span", _hoisted_9$
|
|
5782
|
+
_ctx.suffix ? (openBlock(), createElementBlock("span", _hoisted_9$4, toDisplayString(_ctx.suffix), 1)) : createCommentVNode("", true)
|
|
5782
5783
|
])
|
|
5783
5784
|
]),
|
|
5784
5785
|
_: 2
|
|
@@ -5819,7 +5820,7 @@ function _sfc_render$G(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5819
5820
|
]),
|
|
5820
5821
|
_: 1
|
|
5821
5822
|
})) : createCommentVNode("", true)
|
|
5822
|
-
])) : (openBlock(), createElementBlock("div", _hoisted_10$
|
|
5823
|
+
])) : (openBlock(), createElementBlock("div", _hoisted_10$4, [
|
|
5823
5824
|
_ctx.prefix ? (openBlock(), createElementBlock("span", _hoisted_11$3, toDisplayString(_ctx.prefix), 1)) : createCommentVNode("", true),
|
|
5824
5825
|
$options.lazy ? withDirectives((openBlock(), createElementBlock("input", {
|
|
5825
5826
|
key: 1,
|
|
@@ -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: {
|
|
@@ -6543,11 +6544,11 @@ const _hoisted_2$o = { key: 0 };
|
|
|
6543
6544
|
const _hoisted_3$k = { key: 1 };
|
|
6544
6545
|
const _hoisted_4$i = /* @__PURE__ */ createTextVNode(" And ");
|
|
6545
6546
|
const _hoisted_5$c = { key: 2 };
|
|
6546
|
-
const _hoisted_6$
|
|
6547
|
-
const _hoisted_7$
|
|
6548
|
-
const _hoisted_8$
|
|
6549
|
-
const _hoisted_9$
|
|
6550
|
-
const _hoisted_10$
|
|
6547
|
+
const _hoisted_6$b = { key: 3 };
|
|
6548
|
+
const _hoisted_7$9 = /* @__PURE__ */ createTextVNode(" And ");
|
|
6549
|
+
const _hoisted_8$5 = { key: 4 };
|
|
6550
|
+
const _hoisted_9$3 = { key: 5 };
|
|
6551
|
+
const _hoisted_10$3 = { key: 6 };
|
|
6551
6552
|
const _hoisted_11$2 = { key: 7 };
|
|
6552
6553
|
const _hoisted_12$2 = { key: 8 };
|
|
6553
6554
|
const _hoisted_13$1 = { key: 9 };
|
|
@@ -6571,8 +6572,7 @@ function _sfc_render$B(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6571
6572
|
modelValue: $data.model.key,
|
|
6572
6573
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $data.model.key = $event),
|
|
6573
6574
|
field: $options.keyField
|
|
6574
|
-
}, null, 8, ["modelValue", "field"])
|
|
6575
|
-
createElementVNode("pre", null, toDisplayString($options.keyOptions), 1)
|
|
6575
|
+
}, null, 8, ["modelValue", "field"])
|
|
6576
6576
|
]),
|
|
6577
6577
|
_: 1
|
|
6578
6578
|
}),
|
|
@@ -6642,34 +6642,34 @@ function _sfc_render$B(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6642
6642
|
_: 1
|
|
6643
6643
|
})
|
|
6644
6644
|
])) : createCommentVNode("", true),
|
|
6645
|
-
$options.inputType == "daterange" ? (openBlock(), createElementBlock("div", _hoisted_6$
|
|
6645
|
+
$options.inputType == "daterange" ? (openBlock(), createElementBlock("div", _hoisted_6$b, [
|
|
6646
6646
|
createVNode(_component_date_field, {
|
|
6647
6647
|
field: $options.dateField,
|
|
6648
6648
|
modelValue: $data.model.value,
|
|
6649
6649
|
"onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => $data.model.value = $event)
|
|
6650
6650
|
}, null, 8, ["field", "modelValue"]),
|
|
6651
|
-
_hoisted_7$
|
|
6651
|
+
_hoisted_7$9,
|
|
6652
6652
|
createVNode(_component_date_field, {
|
|
6653
6653
|
field: $options.dateField,
|
|
6654
6654
|
modelValue: $data.model.value2,
|
|
6655
6655
|
"onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => $data.model.value2 = $event)
|
|
6656
6656
|
}, null, 8, ["field", "modelValue"])
|
|
6657
6657
|
])) : createCommentVNode("", true),
|
|
6658
|
-
$options.inputType == "date" ? (openBlock(), createElementBlock("div", _hoisted_8$
|
|
6658
|
+
$options.inputType == "date" ? (openBlock(), createElementBlock("div", _hoisted_8$5, [
|
|
6659
6659
|
createVNode(_component_date_field, {
|
|
6660
6660
|
field: $options.dateField,
|
|
6661
6661
|
modelValue: $data.model.value,
|
|
6662
6662
|
"onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => $data.model.value = $event)
|
|
6663
6663
|
}, null, 8, ["field", "modelValue"])
|
|
6664
6664
|
])) : createCommentVNode("", true),
|
|
6665
|
-
$options.inputType == "reference" ? (openBlock(), createElementBlock("div", _hoisted_9$
|
|
6665
|
+
$options.inputType == "reference" ? (openBlock(), createElementBlock("div", _hoisted_9$3, [
|
|
6666
6666
|
createVNode(_component_content_select, {
|
|
6667
6667
|
field: $options.singleReferenceField,
|
|
6668
6668
|
modelValue: $data.model.value,
|
|
6669
6669
|
"onUpdate:modelValue": _cache[11] || (_cache[11] = ($event) => $data.model.value = $event)
|
|
6670
6670
|
}, null, 8, ["field", "modelValue"])
|
|
6671
6671
|
])) : createCommentVNode("", true),
|
|
6672
|
-
$options.inputType == "multireference" ? (openBlock(), createElementBlock("div", _hoisted_10$
|
|
6672
|
+
$options.inputType == "multireference" ? (openBlock(), createElementBlock("div", _hoisted_10$3, [
|
|
6673
6673
|
createVNode(_component_content_select, {
|
|
6674
6674
|
field: $options.multiReferenceField,
|
|
6675
6675
|
modelValue: $data.model.values,
|
|
@@ -6952,7 +6952,6 @@ const _sfc_main$A = {
|
|
|
6952
6952
|
this.model.filters.push({});
|
|
6953
6953
|
},
|
|
6954
6954
|
removeCondition(index2) {
|
|
6955
|
-
console.log("remove index", index2);
|
|
6956
6955
|
this.model.filters.splice(index2, 1);
|
|
6957
6956
|
}
|
|
6958
6957
|
},
|
|
@@ -7072,9 +7071,9 @@ const _hoisted_2$n = { class: "top" };
|
|
|
7072
7071
|
const _hoisted_3$j = { class: "summary" };
|
|
7073
7072
|
const _hoisted_4$h = /* @__PURE__ */ createTextVNode(" Match ");
|
|
7074
7073
|
const _hoisted_5$b = /* @__PURE__ */ createTextVNode(" of the following conditions ");
|
|
7075
|
-
const _hoisted_6$
|
|
7076
|
-
const _hoisted_7$
|
|
7077
|
-
const _hoisted_8$
|
|
7074
|
+
const _hoisted_6$a = /* @__PURE__ */ createElementVNode("span", { class: "line" }, null, -1);
|
|
7075
|
+
const _hoisted_7$8 = { class: "operator" };
|
|
7076
|
+
const _hoisted_8$4 = /* @__PURE__ */ createTextVNode("Add Condition");
|
|
7078
7077
|
function _sfc_render$A(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7079
7078
|
const _component_native_select = resolveComponent("native-select");
|
|
7080
7079
|
const _component_flex_cell = resolveComponent("flex-cell");
|
|
@@ -7139,8 +7138,8 @@ function _sfc_render$A(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7139
7138
|
shrink: ""
|
|
7140
7139
|
}, {
|
|
7141
7140
|
default: withCtx(() => [
|
|
7142
|
-
_hoisted_6$
|
|
7143
|
-
createElementVNode("div", _hoisted_7$
|
|
7141
|
+
_hoisted_6$a,
|
|
7142
|
+
createElementVNode("div", _hoisted_7$8, toDisplayString($data.model.operator), 1)
|
|
7144
7143
|
]),
|
|
7145
7144
|
_: 2
|
|
7146
7145
|
}, 1032, ["class"])) : createCommentVNode("", true),
|
|
@@ -7162,7 +7161,7 @@ function _sfc_render$A(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7162
7161
|
}), 128)),
|
|
7163
7162
|
createVNode(_component_ux_button, { onClick: $options.addCondition }, {
|
|
7164
7163
|
default: withCtx(() => [
|
|
7165
|
-
_hoisted_8$
|
|
7164
|
+
_hoisted_8$4
|
|
7166
7165
|
]),
|
|
7167
7166
|
_: 1
|
|
7168
7167
|
}, 8, ["onClick"])
|
|
@@ -7279,7 +7278,7 @@ const _hoisted_2$m = {
|
|
|
7279
7278
|
const _hoisted_3$i = { class: "summary" };
|
|
7280
7279
|
const _hoisted_4$g = /* @__PURE__ */ createTextVNode(" Match ");
|
|
7281
7280
|
const _hoisted_5$a = /* @__PURE__ */ createTextVNode(" of the following rules ");
|
|
7282
|
-
const _hoisted_6$
|
|
7281
|
+
const _hoisted_6$9 = /* @__PURE__ */ createTextVNode("Add Filter Rule");
|
|
7283
7282
|
function _sfc_render$z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7284
7283
|
const _component_native_select = resolveComponent("native-select");
|
|
7285
7284
|
const _component_filter_rule = resolveComponent("filter-rule");
|
|
@@ -7322,7 +7321,7 @@ function _sfc_render$z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7322
7321
|
onClick: _cache[1] || (_cache[1] = ($event) => $options.addRule())
|
|
7323
7322
|
}, {
|
|
7324
7323
|
default: withCtx(() => [
|
|
7325
|
-
_hoisted_6$
|
|
7324
|
+
_hoisted_6$9
|
|
7326
7325
|
]),
|
|
7327
7326
|
_: 1
|
|
7328
7327
|
})
|
|
@@ -7334,7 +7333,7 @@ function _sfc_render$z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7334
7333
|
_: 1
|
|
7335
7334
|
});
|
|
7336
7335
|
}
|
|
7337
|
-
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"]]);
|
|
7338
7337
|
var filter_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
7339
7338
|
const _sfc_main$y = {
|
|
7340
7339
|
mixins: [InputMixin],
|
|
@@ -7370,7 +7369,6 @@ const _sfc_main$y = {
|
|
|
7370
7369
|
},
|
|
7371
7370
|
methods: {
|
|
7372
7371
|
getNewDefaultEntry() {
|
|
7373
|
-
console.log("GET DEFAULT ENTRY");
|
|
7374
7372
|
return {
|
|
7375
7373
|
operator: "and",
|
|
7376
7374
|
filters: []
|
|
@@ -7460,7 +7458,7 @@ function _sfc_render$y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7460
7458
|
}, null, 8, ["definition", "modelValue"]))
|
|
7461
7459
|
], 64);
|
|
7462
7460
|
}
|
|
7463
|
-
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"]]);
|
|
7464
7462
|
var switch_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
7465
7463
|
const _sfc_main$x = {
|
|
7466
7464
|
mixins: [InputMixin],
|
|
@@ -7550,7 +7548,7 @@ function _sfc_render$x(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7550
7548
|
_: 1
|
|
7551
7549
|
});
|
|
7552
7550
|
}
|
|
7553
|
-
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"]]);
|
|
7554
7552
|
var filedrop_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
7555
7553
|
const _sfc_main$w = {
|
|
7556
7554
|
props: {
|
|
@@ -7766,8 +7764,8 @@ const _hoisted_4$e = {
|
|
|
7766
7764
|
class: "files"
|
|
7767
7765
|
};
|
|
7768
7766
|
const _hoisted_5$9 = { class: "size" };
|
|
7769
|
-
const _hoisted_6$
|
|
7770
|
-
const _hoisted_7$
|
|
7767
|
+
const _hoisted_6$8 = /* @__PURE__ */ createTextVNode("Select Files");
|
|
7768
|
+
const _hoisted_7$7 = /* @__PURE__ */ createTextVNode("Select File");
|
|
7771
7769
|
function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7772
7770
|
const _component_progress_bar = resolveComponent("progress-bar");
|
|
7773
7771
|
const _component_flex_cell = resolveComponent("flex-cell");
|
|
@@ -7828,7 +7826,7 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7828
7826
|
default: withCtx(() => [
|
|
7829
7827
|
createVNode(_component_ux_button, null, {
|
|
7830
7828
|
default: withCtx(() => [
|
|
7831
|
-
_hoisted_6$
|
|
7829
|
+
_hoisted_6$8
|
|
7832
7830
|
]),
|
|
7833
7831
|
_: 1
|
|
7834
7832
|
})
|
|
@@ -7842,7 +7840,7 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7842
7840
|
default: withCtx(() => [
|
|
7843
7841
|
createVNode(_component_ux_button, null, {
|
|
7844
7842
|
default: withCtx(() => [
|
|
7845
|
-
_hoisted_7$
|
|
7843
|
+
_hoisted_7$7
|
|
7846
7844
|
]),
|
|
7847
7845
|
_: 1
|
|
7848
7846
|
})
|
|
@@ -7857,6 +7855,10 @@ const _sfc_main$u = {
|
|
|
7857
7855
|
mixins: [InputMixin],
|
|
7858
7856
|
components: { draggable: draggableComponent },
|
|
7859
7857
|
props: {
|
|
7858
|
+
submission: {
|
|
7859
|
+
type: Boolean,
|
|
7860
|
+
default: false
|
|
7861
|
+
},
|
|
7860
7862
|
modelValue: {
|
|
7861
7863
|
type: [Object, Array]
|
|
7862
7864
|
}
|
|
@@ -7883,6 +7885,9 @@ const _sfc_main$u = {
|
|
|
7883
7885
|
}
|
|
7884
7886
|
},
|
|
7885
7887
|
methods: {
|
|
7888
|
+
createSingleObject() {
|
|
7889
|
+
this.model = {};
|
|
7890
|
+
},
|
|
7886
7891
|
stateChange(details) {
|
|
7887
7892
|
this.$emit("form:state", details);
|
|
7888
7893
|
},
|
|
@@ -8027,13 +8032,14 @@ function _sfc_render$u(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8027
8032
|
default: withCtx(() => [
|
|
8028
8033
|
createVNode(_component_ux_form, {
|
|
8029
8034
|
ref: "form",
|
|
8035
|
+
submission: $props.submission,
|
|
8030
8036
|
"onForm:state": $options.stateChange,
|
|
8031
8037
|
parentModel: _ctx.parentModel,
|
|
8032
8038
|
modelValue: _ctx.model[index2],
|
|
8033
8039
|
"onUpdate:modelValue": ($event) => _ctx.model[index2] = $event,
|
|
8034
8040
|
flex: $options.sameLine,
|
|
8035
8041
|
fields: _ctx.field.fields
|
|
8036
|
-
}, null, 8, ["onForm:state", "parentModel", "modelValue", "onUpdate:modelValue", "flex", "fields"])
|
|
8042
|
+
}, null, 8, ["submission", "onForm:state", "parentModel", "modelValue", "onUpdate:modelValue", "flex", "fields"])
|
|
8037
8043
|
]),
|
|
8038
8044
|
_: 2
|
|
8039
8045
|
}, 1536), [
|
|
@@ -8128,13 +8134,14 @@ function _sfc_render$u(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8128
8134
|
createVNode(_component_ux_form, {
|
|
8129
8135
|
ref_for: true,
|
|
8130
8136
|
ref: "form",
|
|
8137
|
+
submission: $props.submission,
|
|
8131
8138
|
"onForm:state": $options.stateChange,
|
|
8132
8139
|
parentModel: _ctx.parentModel,
|
|
8133
8140
|
modelValue: _ctx.model[index2],
|
|
8134
8141
|
"onUpdate:modelValue": ($event) => _ctx.model[index2] = $event,
|
|
8135
8142
|
flex: $options.sameLine,
|
|
8136
8143
|
fields: _ctx.field.fields
|
|
8137
|
-
}, null, 8, ["onForm:state", "parentModel", "modelValue", "onUpdate:modelValue", "flex", "fields"])
|
|
8144
|
+
}, null, 8, ["submission", "onForm:state", "parentModel", "modelValue", "onUpdate:modelValue", "flex", "fields"])
|
|
8138
8145
|
]),
|
|
8139
8146
|
_: 2
|
|
8140
8147
|
}, 1536), [
|
|
@@ -8157,18 +8164,105 @@ function _sfc_render$u(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8157
8164
|
]),
|
|
8158
8165
|
_: 1
|
|
8159
8166
|
})) : createCommentVNode("", true)
|
|
8160
|
-
])) : (openBlock(),
|
|
8161
|
-
key:
|
|
8162
|
-
|
|
8163
|
-
|
|
8164
|
-
|
|
8165
|
-
|
|
8166
|
-
|
|
8167
|
-
|
|
8168
|
-
|
|
8169
|
-
|
|
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));
|
|
8170
8264
|
}
|
|
8171
|
-
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"]]);
|
|
8172
8266
|
const _sfc_main$t = {
|
|
8173
8267
|
props: {
|
|
8174
8268
|
option: {
|
|
@@ -8359,7 +8453,7 @@ function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8359
8453
|
])
|
|
8360
8454
|
], 64);
|
|
8361
8455
|
}
|
|
8362
|
-
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"]]);
|
|
8363
8457
|
var objectField_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
8364
8458
|
const _sfc_main$r = {
|
|
8365
8459
|
props: {
|
|
@@ -8548,7 +8642,7 @@ const _sfc_main$q = {
|
|
|
8548
8642
|
}
|
|
8549
8643
|
}
|
|
8550
8644
|
};
|
|
8551
|
-
const _withScopeId$
|
|
8645
|
+
const _withScopeId$2 = (n2) => (pushScopeId("data-v-076c3da8"), n2 = n2(), popScopeId(), n2);
|
|
8552
8646
|
const _hoisted_1$l = {
|
|
8553
8647
|
key: 0,
|
|
8554
8648
|
class: "ux-field-title"
|
|
@@ -8563,17 +8657,17 @@ const _hoisted_3$c = {
|
|
|
8563
8657
|
};
|
|
8564
8658
|
const _hoisted_4$b = { key: 2 };
|
|
8565
8659
|
const _hoisted_5$7 = { class: "ux-text-wrap prefixed" };
|
|
8566
|
-
const _hoisted_6$
|
|
8567
|
-
const _hoisted_7$
|
|
8568
|
-
const _hoisted_8$
|
|
8569
|
-
const _hoisted_9$
|
|
8570
|
-
const _hoisted_10$
|
|
8660
|
+
const _hoisted_6$7 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("span", { class: "ux-text-prefix" }, "Label", -1));
|
|
8661
|
+
const _hoisted_7$6 = ["onBlur", "onUpdate:modelValue"];
|
|
8662
|
+
const _hoisted_8$3 = ["onBlur", "onUpdate:modelValue"];
|
|
8663
|
+
const _hoisted_9$2 = { class: "ux-text-wrap prefixed" };
|
|
8664
|
+
const _hoisted_10$2 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("span", { class: "ux-text-prefix" }, "Value", -1));
|
|
8571
8665
|
const _hoisted_11$1 = ["onFocus", "onUpdate:modelValue"];
|
|
8572
8666
|
const _hoisted_12$1 = ["onFocus", "onUpdate:modelValue"];
|
|
8573
8667
|
const _hoisted_13 = { class: "ux-text-wrap prefixed" };
|
|
8574
|
-
const _hoisted_14 = /* @__PURE__ */ _withScopeId$
|
|
8668
|
+
const _hoisted_14 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("span", { class: "ux-text-prefix" }, "Label", -1));
|
|
8575
8669
|
const _hoisted_15 = { class: "ux-text-wrap prefixed" };
|
|
8576
|
-
const _hoisted_16 = /* @__PURE__ */ _withScopeId$
|
|
8670
|
+
const _hoisted_16 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("span", { class: "ux-text-prefix" }, "Value", -1));
|
|
8577
8671
|
function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
8578
8672
|
const _component_flex_cell = resolveComponent("flex-cell");
|
|
8579
8673
|
const _component_ux_icon = resolveComponent("ux-icon");
|
|
@@ -8595,7 +8689,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8595
8689
|
createVNode(_component_flex_cell, null, {
|
|
8596
8690
|
default: withCtx(() => [
|
|
8597
8691
|
createElementVNode("div", _hoisted_5$7, [
|
|
8598
|
-
_hoisted_6$
|
|
8692
|
+
_hoisted_6$7,
|
|
8599
8693
|
$options.lazy ? withDirectives((openBlock(), createElementBlock("input", {
|
|
8600
8694
|
key: 0,
|
|
8601
8695
|
class: "ux-field-focus ux-text-input-multiple",
|
|
@@ -8606,7 +8700,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8606
8700
|
onKeydown: _cache[1] || (_cache[1] = withKeys(withModifiers(($event) => _ctx.add(), ["stop", "prevent"]), ["enter"])),
|
|
8607
8701
|
onBlur: ($event) => $options.titleBlurred(index2),
|
|
8608
8702
|
"onUpdate:modelValue": [($event) => $options.entryTitleChanged(index2), ($event) => _ctx.model[index2].title = $event]
|
|
8609
|
-
}, null, 40, _hoisted_7$
|
|
8703
|
+
}, null, 40, _hoisted_7$6)), [
|
|
8610
8704
|
[
|
|
8611
8705
|
vModelText,
|
|
8612
8706
|
_ctx.model[index2].title,
|
|
@@ -8624,7 +8718,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8624
8718
|
onKeydown: _cache[3] || (_cache[3] = withKeys(withModifiers(($event) => _ctx.add(), ["stop", "prevent"]), ["enter"])),
|
|
8625
8719
|
onBlur: ($event) => $options.titleBlurred(index2),
|
|
8626
8720
|
"onUpdate:modelValue": [($event) => $options.entryTitleChanged(index2), ($event) => _ctx.model[index2].title = $event]
|
|
8627
|
-
}, null, 40, _hoisted_8$
|
|
8721
|
+
}, null, 40, _hoisted_8$3)), [
|
|
8628
8722
|
[vModelText, _ctx.model[index2].title]
|
|
8629
8723
|
]) : createCommentVNode("", true)
|
|
8630
8724
|
])
|
|
@@ -8633,8 +8727,8 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8633
8727
|
}, 1024),
|
|
8634
8728
|
createVNode(_component_flex_cell, null, {
|
|
8635
8729
|
default: withCtx(() => [
|
|
8636
|
-
createElementVNode("div", _hoisted_9$
|
|
8637
|
-
_hoisted_10$
|
|
8730
|
+
createElementVNode("div", _hoisted_9$2, [
|
|
8731
|
+
_hoisted_10$2,
|
|
8638
8732
|
$options.lazy ? withDirectives((openBlock(), createElementBlock("input", {
|
|
8639
8733
|
key: 0,
|
|
8640
8734
|
class: "ux-field-focus ux-text-input-multiple",
|
|
@@ -8792,7 +8886,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8792
8886
|
}))
|
|
8793
8887
|
], 64);
|
|
8794
8888
|
}
|
|
8795
|
-
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"]]);
|
|
8796
8890
|
var codeEditor_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
8797
8891
|
const _sfc_main$p = {
|
|
8798
8892
|
components: {},
|
|
@@ -8885,7 +8979,7 @@ const _hoisted_3$b = {
|
|
|
8885
8979
|
};
|
|
8886
8980
|
const _hoisted_4$a = { key: 2 };
|
|
8887
8981
|
const _hoisted_5$6 = { class: "code-editor-field-wrap" };
|
|
8888
|
-
const _hoisted_6$
|
|
8982
|
+
const _hoisted_6$6 = {
|
|
8889
8983
|
key: 3,
|
|
8890
8984
|
class: "code-editor-field-wrap"
|
|
8891
8985
|
};
|
|
@@ -8956,7 +9050,7 @@ function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8956
9050
|
]),
|
|
8957
9051
|
_: 1
|
|
8958
9052
|
})) : createCommentVNode("", true)
|
|
8959
|
-
])) : (openBlock(), createElementBlock("div", _hoisted_6$
|
|
9053
|
+
])) : (openBlock(), createElementBlock("div", _hoisted_6$6, [
|
|
8960
9054
|
createVNode(_component_code_editor, {
|
|
8961
9055
|
lang: $options.syntax,
|
|
8962
9056
|
class: "ux-code-editor ux-field-focus ux-text-area-single",
|
|
@@ -9108,11 +9202,11 @@ const _hoisted_4$9 = {
|
|
|
9108
9202
|
class: "ui-select-button"
|
|
9109
9203
|
};
|
|
9110
9204
|
const _hoisted_5$5 = ["multiple"];
|
|
9111
|
-
const _hoisted_6$
|
|
9205
|
+
const _hoisted_6$5 = {
|
|
9112
9206
|
key: 0,
|
|
9113
9207
|
value: ""
|
|
9114
9208
|
};
|
|
9115
|
-
const _hoisted_7$
|
|
9209
|
+
const _hoisted_7$5 = ["value"];
|
|
9116
9210
|
function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
|
|
9117
9211
|
const _component_ux_button = resolveComponent("ux-button");
|
|
9118
9212
|
return openBlock(), createElementBlock("div", {
|
|
@@ -9138,18 +9232,18 @@ function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9138
9232
|
multiple: _ctx.multiValue,
|
|
9139
9233
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => _ctx.model = $event)
|
|
9140
9234
|
}, [
|
|
9141
|
-
_ctx.singleValue && !_ctx.minimum ? (openBlock(), createElementBlock("option", _hoisted_6$
|
|
9235
|
+
_ctx.singleValue && !_ctx.minimum ? (openBlock(), createElementBlock("option", _hoisted_6$5, "None")) : createCommentVNode("", true),
|
|
9142
9236
|
(openBlock(true), createElementBlock(Fragment, null, renderList($options.selectableOptions, (option2) => {
|
|
9143
9237
|
return openBlock(), createElementBlock("option", {
|
|
9144
9238
|
value: option2.value
|
|
9145
|
-
}, toDisplayString(option2.title), 9, _hoisted_7$
|
|
9239
|
+
}, toDisplayString(option2.title), 9, _hoisted_7$5);
|
|
9146
9240
|
}), 256))
|
|
9147
9241
|
], 40, _hoisted_5$5), [
|
|
9148
9242
|
[vModelSelect, _ctx.model]
|
|
9149
9243
|
])
|
|
9150
9244
|
], 2);
|
|
9151
9245
|
}
|
|
9152
|
-
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"]]);
|
|
9153
9247
|
var InternalMenuSelect_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
9154
9248
|
function isUndefined$1(entry) {
|
|
9155
9249
|
return entry === void 0 || typeof entry === "undefined" || entry === null || String(entry) === "null" || String(entry) === "undefined";
|
|
@@ -9274,11 +9368,11 @@ const _hoisted_4$8 = {
|
|
|
9274
9368
|
class: "ui-select-button"
|
|
9275
9369
|
};
|
|
9276
9370
|
const _hoisted_5$4 = ["multiple"];
|
|
9277
|
-
const _hoisted_6$
|
|
9371
|
+
const _hoisted_6$4 = {
|
|
9278
9372
|
key: 0,
|
|
9279
9373
|
value: ""
|
|
9280
9374
|
};
|
|
9281
|
-
const _hoisted_7$
|
|
9375
|
+
const _hoisted_7$4 = ["value"];
|
|
9282
9376
|
function _sfc_render$m(_ctx, _cache, $props, $setup, $data, $options) {
|
|
9283
9377
|
const _component_ux_button = resolveComponent("ux-button");
|
|
9284
9378
|
return openBlock(), createElementBlock("div", {
|
|
@@ -9304,18 +9398,18 @@ function _sfc_render$m(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9304
9398
|
multiple: _ctx.multiValue,
|
|
9305
9399
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => _ctx.model = $event)
|
|
9306
9400
|
}, [
|
|
9307
|
-
_ctx.singleValue && !_ctx.minimum ? (openBlock(), createElementBlock("option", _hoisted_6$
|
|
9401
|
+
_ctx.singleValue && !_ctx.minimum ? (openBlock(), createElementBlock("option", _hoisted_6$4, "None")) : createCommentVNode("", true),
|
|
9308
9402
|
(openBlock(true), createElementBlock(Fragment, null, renderList($options.selectableOptions, (option2) => {
|
|
9309
9403
|
return openBlock(), createElementBlock("option", {
|
|
9310
9404
|
value: option2.value
|
|
9311
|
-
}, toDisplayString(option2.title), 9, _hoisted_7$
|
|
9405
|
+
}, toDisplayString(option2.title), 9, _hoisted_7$4);
|
|
9312
9406
|
}), 256))
|
|
9313
9407
|
], 40, _hoisted_5$4), [
|
|
9314
9408
|
[vModelSelect, _ctx.model]
|
|
9315
9409
|
])
|
|
9316
9410
|
], 2);
|
|
9317
9411
|
}
|
|
9318
|
-
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"]]);
|
|
9319
9413
|
var jsep = { exports: {} };
|
|
9320
9414
|
(function(module, exports) {
|
|
9321
9415
|
(function(root2) {
|
|
@@ -9930,9 +10024,6 @@ function ensureMinimum(field, array, min, ask, max, func) {
|
|
|
9930
10024
|
var length = array.length;
|
|
9931
10025
|
var meetsMinimum = length >= min;
|
|
9932
10026
|
if (!meetsMinimum) {
|
|
9933
|
-
if (field.key == "multiNumber") {
|
|
9934
|
-
console.log(field.key, min);
|
|
9935
|
-
}
|
|
9936
10027
|
var difference = min - length;
|
|
9937
10028
|
var extras = Array(difference).fill().map(func);
|
|
9938
10029
|
return [...array, ...extras];
|
|
@@ -9951,7 +10042,14 @@ function getDefaultValue(fieldData, currentValue) {
|
|
|
9951
10042
|
var ask = parseInt(fieldData.ask || 0);
|
|
9952
10043
|
ask = Math.max(ask, minimum);
|
|
9953
10044
|
ask = maximum ? Math.min(ask, maximum) : ask;
|
|
9954
|
-
var singleValue = maximum
|
|
10045
|
+
var singleValue = maximum === 1;
|
|
10046
|
+
if (fieldData.asObject && fieldData.type === "group") {
|
|
10047
|
+
if (maximum === 1 && minimum === 1) {
|
|
10048
|
+
singleValue = true;
|
|
10049
|
+
} else {
|
|
10050
|
+
singleValue = false;
|
|
10051
|
+
}
|
|
10052
|
+
}
|
|
9955
10053
|
var multiValue = !singleValue;
|
|
9956
10054
|
var defaultValues = (fieldData.type === "reference" ? fieldData.defaultReferences : fieldData.defaultValues) || [];
|
|
9957
10055
|
var firstDefaultValue = defaultValues[0];
|
|
@@ -10069,7 +10167,11 @@ function getDefaultValue(fieldData, currentValue) {
|
|
|
10069
10167
|
output = [];
|
|
10070
10168
|
}
|
|
10071
10169
|
} else {
|
|
10072
|
-
|
|
10170
|
+
if (!minimum) {
|
|
10171
|
+
output = void 0;
|
|
10172
|
+
} else {
|
|
10173
|
+
output = isUndefined2(firstDefaultValue) ? {} : firstDefaultValue;
|
|
10174
|
+
}
|
|
10073
10175
|
}
|
|
10074
10176
|
} else {
|
|
10075
10177
|
if (multiValue) {
|
|
@@ -10180,6 +10282,7 @@ const _sfc_main$l = {
|
|
|
10180
10282
|
},
|
|
10181
10283
|
data() {
|
|
10182
10284
|
return {
|
|
10285
|
+
watching: true,
|
|
10183
10286
|
defaultValue: null,
|
|
10184
10287
|
model: this.modelValue,
|
|
10185
10288
|
touched: false,
|
|
@@ -10191,20 +10294,36 @@ const _sfc_main$l = {
|
|
|
10191
10294
|
isDirtyBeforeInput: false
|
|
10192
10295
|
};
|
|
10193
10296
|
},
|
|
10297
|
+
inject: ["parentFormElement"],
|
|
10194
10298
|
created() {
|
|
10195
10299
|
this.checkDirtyState();
|
|
10196
10300
|
},
|
|
10197
10301
|
mounted() {
|
|
10198
|
-
|
|
10302
|
+
const self2 = this;
|
|
10303
|
+
self2.mounted = true;
|
|
10304
|
+
if (self2.parentFormElement && self2.parentFormElement.childFormElements) {
|
|
10305
|
+
self2.parentFormElement.childFormElements.push(self2);
|
|
10306
|
+
}
|
|
10199
10307
|
},
|
|
10200
10308
|
beforeUnmount() {
|
|
10201
|
-
|
|
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
|
+
}
|
|
10202
10315
|
},
|
|
10203
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
|
+
},
|
|
10204
10323
|
checkDirtyState() {
|
|
10205
10324
|
var existingData = this.fieldModel;
|
|
10206
10325
|
var hasExistingData = existingData || existingData === false || existingData === 0;
|
|
10207
|
-
var proposedDefaultValue = this.fieldDefaultValue;
|
|
10326
|
+
var proposedDefaultValue = this.fieldDefaultValue();
|
|
10208
10327
|
var existingString = JSON.stringify(this.cleanOutput(existingData));
|
|
10209
10328
|
var proposedString = JSON.stringify(this.cleanOutput(proposedDefaultValue));
|
|
10210
10329
|
if (hasExistingData && existingString != proposedString) {
|
|
@@ -10229,12 +10348,24 @@ const _sfc_main$l = {
|
|
|
10229
10348
|
this.fieldModel = this.getExpressionValue;
|
|
10230
10349
|
}
|
|
10231
10350
|
},
|
|
10232
|
-
reset() {
|
|
10233
|
-
this.touched = false;
|
|
10234
|
-
},
|
|
10235
10351
|
touch() {
|
|
10236
10352
|
this.touched = true;
|
|
10237
10353
|
},
|
|
10354
|
+
untouch() {
|
|
10355
|
+
this.touched = false;
|
|
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
|
+
},
|
|
10238
10369
|
cleanInput(val) {
|
|
10239
10370
|
return this.fieldCleanInput(val);
|
|
10240
10371
|
},
|
|
@@ -10277,7 +10408,7 @@ const _sfc_main$l = {
|
|
|
10277
10408
|
this.fieldModel = void 0;
|
|
10278
10409
|
}
|
|
10279
10410
|
} else {
|
|
10280
|
-
this.
|
|
10411
|
+
this.untouch();
|
|
10281
10412
|
}
|
|
10282
10413
|
},
|
|
10283
10414
|
focussed(val) {
|
|
@@ -10306,9 +10437,11 @@ const _sfc_main$l = {
|
|
|
10306
10437
|
this.validateResults = this.$qik.content.validateField(this.fieldModel, this.actualField);
|
|
10307
10438
|
},
|
|
10308
10439
|
modelValue(val, old) {
|
|
10309
|
-
this.
|
|
10310
|
-
|
|
10311
|
-
|
|
10440
|
+
if (this.watching) {
|
|
10441
|
+
this.model = val;
|
|
10442
|
+
this.touched = false;
|
|
10443
|
+
this.checkDirtyState();
|
|
10444
|
+
}
|
|
10312
10445
|
},
|
|
10313
10446
|
getExpressionHide(result) {
|
|
10314
10447
|
},
|
|
@@ -10324,9 +10457,6 @@ const _sfc_main$l = {
|
|
|
10324
10457
|
}
|
|
10325
10458
|
},
|
|
10326
10459
|
computed: {
|
|
10327
|
-
fieldDefaultValue() {
|
|
10328
|
-
return this.cleanInput(this.expressions && this.expressions.defaultValue ? this.getExpressionDefaultValue : getDefaultValue(this.actualField));
|
|
10329
|
-
},
|
|
10330
10460
|
title() {
|
|
10331
10461
|
return this.field.title;
|
|
10332
10462
|
},
|
|
@@ -10348,6 +10478,9 @@ const _sfc_main$l = {
|
|
|
10348
10478
|
if (this.getExpressionSyntax) {
|
|
10349
10479
|
actual = Object.assign({}, actual, { syntax: this.getExpressionSyntax });
|
|
10350
10480
|
}
|
|
10481
|
+
if (this.getExpressionCurrency) {
|
|
10482
|
+
actual = Object.assign({}, actual, { currency: this.getExpressionCurrency });
|
|
10483
|
+
}
|
|
10351
10484
|
return actual;
|
|
10352
10485
|
},
|
|
10353
10486
|
changeString() {
|
|
@@ -10372,20 +10505,6 @@ const _sfc_main$l = {
|
|
|
10372
10505
|
dirty() {
|
|
10373
10506
|
return this.isDirty;
|
|
10374
10507
|
},
|
|
10375
|
-
hasData() {
|
|
10376
|
-
if (typeof this.fieldModel === "undefined") {
|
|
10377
|
-
return false;
|
|
10378
|
-
}
|
|
10379
|
-
if (this.multiValue) {
|
|
10380
|
-
if (!this.fieldModel || !this.fieldModel.length) {
|
|
10381
|
-
return false;
|
|
10382
|
-
}
|
|
10383
|
-
}
|
|
10384
|
-
if (this.fieldModel == "") {
|
|
10385
|
-
return false;
|
|
10386
|
-
}
|
|
10387
|
-
return true;
|
|
10388
|
-
},
|
|
10389
10508
|
getExpressionHide() {
|
|
10390
10509
|
if (!this.expressions) {
|
|
10391
10510
|
return;
|
|
@@ -10406,6 +10525,7 @@ const _sfc_main$l = {
|
|
|
10406
10525
|
getExpressionWidgetType: computedExpression("widget"),
|
|
10407
10526
|
getExpressionOptions: computedExpression("options"),
|
|
10408
10527
|
getExpressionSyntax: computedExpression("syntax"),
|
|
10528
|
+
getExpressionCurrency: computedExpression("currency"),
|
|
10409
10529
|
hasExpressionDefaultValue: hasExpression("defaultValue"),
|
|
10410
10530
|
expressions() {
|
|
10411
10531
|
return this.field.expressions;
|
|
@@ -10773,7 +10893,7 @@ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10773
10893
|
$options.error && $data.validateResults.message ? (openBlock(), createElementBlock("div", _hoisted_1$h, toDisplayString($data.validateResults.message), 1)) : createCommentVNode("", true)
|
|
10774
10894
|
], 34)) : createCommentVNode("", true);
|
|
10775
10895
|
}
|
|
10776
|
-
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"]]);
|
|
10777
10897
|
var form_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
10778
10898
|
const _sfc_main$k = {
|
|
10779
10899
|
props: {
|
|
@@ -10814,17 +10934,44 @@ const _sfc_main$k = {
|
|
|
10814
10934
|
invalid: false,
|
|
10815
10935
|
error: false,
|
|
10816
10936
|
dirty: false,
|
|
10817
|
-
focussed: false
|
|
10937
|
+
focussed: false,
|
|
10938
|
+
childFormElements: []
|
|
10939
|
+
};
|
|
10940
|
+
},
|
|
10941
|
+
provide() {
|
|
10942
|
+
const parentFormElement = this.parentFormElement || this;
|
|
10943
|
+
return {
|
|
10944
|
+
parentFormElement
|
|
10818
10945
|
};
|
|
10819
10946
|
},
|
|
10947
|
+
inject: ["parentFormElement"],
|
|
10820
10948
|
mounted() {
|
|
10821
|
-
|
|
10949
|
+
const self2 = this;
|
|
10950
|
+
self2.mounted = true;
|
|
10822
10951
|
},
|
|
10823
10952
|
beforeUnmount() {
|
|
10824
|
-
|
|
10953
|
+
const self2 = this;
|
|
10954
|
+
self2.mounted = false;
|
|
10825
10955
|
},
|
|
10826
10956
|
methods: {
|
|
10957
|
+
touch() {
|
|
10958
|
+
(this.childFormElements || []).forEach(function(field) {
|
|
10959
|
+
field.touch();
|
|
10960
|
+
});
|
|
10961
|
+
this.touched = true;
|
|
10962
|
+
},
|
|
10963
|
+
untouch() {
|
|
10964
|
+
(this.childFormElements || []).forEach(function(field) {
|
|
10965
|
+
field.untouch();
|
|
10966
|
+
});
|
|
10967
|
+
this.touched = false;
|
|
10968
|
+
},
|
|
10827
10969
|
reset() {
|
|
10970
|
+
this.untouch();
|
|
10971
|
+
(this.childFormElements || []).forEach(function(field) {
|
|
10972
|
+
field.reset();
|
|
10973
|
+
});
|
|
10974
|
+
this.model = {};
|
|
10828
10975
|
},
|
|
10829
10976
|
fieldUnmounted(field) {
|
|
10830
10977
|
this.fieldStateChange(field, "unmount");
|
|
@@ -10871,7 +11018,7 @@ const _sfc_main$k = {
|
|
|
10871
11018
|
var touched = false;
|
|
10872
11019
|
var focussed = false;
|
|
10873
11020
|
var invalidFields = [];
|
|
10874
|
-
self2.
|
|
11021
|
+
self2.childFormElements.forEach(function(field) {
|
|
10875
11022
|
if (field.dirty) {
|
|
10876
11023
|
dirty = true;
|
|
10877
11024
|
}
|
|
@@ -10879,7 +11026,8 @@ const _sfc_main$k = {
|
|
|
10879
11026
|
invalid = true;
|
|
10880
11027
|
invalidFields.push({
|
|
10881
11028
|
title: field.field.title,
|
|
10882
|
-
key: field.field.key
|
|
11029
|
+
key: field.field.key,
|
|
11030
|
+
message: field.invalidMessage
|
|
10883
11031
|
});
|
|
10884
11032
|
}
|
|
10885
11033
|
if (field.error) {
|
|
@@ -10925,41 +11073,6 @@ const _sfc_main$k = {
|
|
|
10925
11073
|
valid() {
|
|
10926
11074
|
return !this.invalid;
|
|
10927
11075
|
},
|
|
10928
|
-
childFields() {
|
|
10929
|
-
var self2 = this;
|
|
10930
|
-
var directRefs = [];
|
|
10931
|
-
if (!self2.mounted) {
|
|
10932
|
-
return [];
|
|
10933
|
-
}
|
|
10934
|
-
findRecursive(this.$refs, directRefs);
|
|
10935
|
-
function findRecursive($refs, collection) {
|
|
10936
|
-
var fields = $refs.field ? $refs.field : [];
|
|
10937
|
-
var groups = $refs.group ? $refs.group : [];
|
|
10938
|
-
var forms = $refs.form ? $refs.form : [];
|
|
10939
|
-
if (fields && !Array.isArray(fields)) {
|
|
10940
|
-
fields = [fields];
|
|
10941
|
-
}
|
|
10942
|
-
if (groups && !Array.isArray(groups)) {
|
|
10943
|
-
groups = [groups];
|
|
10944
|
-
}
|
|
10945
|
-
if (forms && !Array.isArray(forms)) {
|
|
10946
|
-
forms = [forms];
|
|
10947
|
-
}
|
|
10948
|
-
fields.forEach(function(field) {
|
|
10949
|
-
if (field.visible) {
|
|
10950
|
-
collection.push(field);
|
|
10951
|
-
findRecursive(field.$refs, collection);
|
|
10952
|
-
}
|
|
10953
|
-
});
|
|
10954
|
-
groups.forEach(function(group) {
|
|
10955
|
-
findRecursive(group.$refs, collection);
|
|
10956
|
-
});
|
|
10957
|
-
forms.forEach(function(form) {
|
|
10958
|
-
findRecursive(form.$refs, collection);
|
|
10959
|
-
});
|
|
10960
|
-
}
|
|
10961
|
-
return directRefs;
|
|
10962
|
-
},
|
|
10963
11076
|
formClass() {
|
|
10964
11077
|
var array = [];
|
|
10965
11078
|
if (this.flex) {
|
|
@@ -11022,37 +11135,64 @@ function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11022
11135
|
], true)
|
|
11023
11136
|
], 2);
|
|
11024
11137
|
}
|
|
11025
|
-
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"]]);
|
|
11139
|
+
var submissionform_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
11026
11140
|
const STATE_READY = "form.ready";
|
|
11027
11141
|
const STATE_PROCESSING = "form.processing";
|
|
11028
11142
|
const STATE_COMPLETE = "form.complete";
|
|
11029
11143
|
const STATE_ERROR = "form.error";
|
|
11030
11144
|
const _sfc_main$j = {
|
|
11031
11145
|
methods: {
|
|
11146
|
+
formStateUpdated(state) {
|
|
11147
|
+
this.formState = state;
|
|
11148
|
+
},
|
|
11032
11149
|
softReset() {
|
|
11033
11150
|
this.state = STATE_READY;
|
|
11034
11151
|
},
|
|
11152
|
+
touch() {
|
|
11153
|
+
if (this.$refs.form) {
|
|
11154
|
+
this.$refs.form.touch();
|
|
11155
|
+
}
|
|
11156
|
+
},
|
|
11157
|
+
untouch() {
|
|
11158
|
+
if (this.$refs.form) {
|
|
11159
|
+
this.$refs.form.untouch();
|
|
11160
|
+
}
|
|
11161
|
+
},
|
|
11035
11162
|
reset() {
|
|
11036
11163
|
this.model = {};
|
|
11164
|
+
if (this.$refs.form) {
|
|
11165
|
+
this.$refs.form.reset();
|
|
11166
|
+
}
|
|
11037
11167
|
this.state = STATE_READY;
|
|
11038
11168
|
this.error = null;
|
|
11169
|
+
this.submitAttempted = false;
|
|
11039
11170
|
},
|
|
11040
11171
|
async submit() {
|
|
11041
11172
|
const self2 = this;
|
|
11173
|
+
self2.touch();
|
|
11174
|
+
if (!self2.submitAttempted) {
|
|
11175
|
+
self2.submitAttempted = true;
|
|
11176
|
+
self2.touch();
|
|
11177
|
+
}
|
|
11178
|
+
if (self2.buttonDisabled) {
|
|
11179
|
+
console.log("Form is invalid", this.formState);
|
|
11180
|
+
return;
|
|
11181
|
+
}
|
|
11042
11182
|
self2.state = STATE_PROCESSING;
|
|
11043
11183
|
await self2.preSubmit();
|
|
11044
11184
|
const submission = JSON.parse(JSON.stringify(self2.model));
|
|
11045
|
-
|
|
11046
|
-
|
|
11047
|
-
|
|
11048
|
-
|
|
11049
|
-
|
|
11050
|
-
|
|
11051
|
-
|
|
11052
|
-
|
|
11053
|
-
|
|
11054
|
-
|
|
11055
|
-
|
|
11185
|
+
self2.$qik.api.post(`/form/${self2.formID}`, submission).then(submissionComplete, submissionFailed);
|
|
11186
|
+
async function submissionComplete(res) {
|
|
11187
|
+
await self2.postSubmit();
|
|
11188
|
+
self2.state = STATE_COMPLETE;
|
|
11189
|
+
}
|
|
11190
|
+
async function submissionFailed(err) {
|
|
11191
|
+
var _a;
|
|
11192
|
+
err = ((_a = err.response) == null ? void 0 : _a.data) || err;
|
|
11193
|
+
self2.error = err;
|
|
11194
|
+
self2.state = STATE_ERROR;
|
|
11195
|
+
}
|
|
11056
11196
|
},
|
|
11057
11197
|
async preSubmit() {
|
|
11058
11198
|
},
|
|
@@ -11081,6 +11221,8 @@ const _sfc_main$j = {
|
|
|
11081
11221
|
},
|
|
11082
11222
|
data() {
|
|
11083
11223
|
return {
|
|
11224
|
+
submitAttempted: false,
|
|
11225
|
+
formState: null,
|
|
11084
11226
|
state: STATE_READY,
|
|
11085
11227
|
mounted: false,
|
|
11086
11228
|
model: this.modelValue,
|
|
@@ -11094,6 +11236,16 @@ const _sfc_main$j = {
|
|
|
11094
11236
|
this.mounted = false;
|
|
11095
11237
|
},
|
|
11096
11238
|
computed: {
|
|
11239
|
+
tooltip() {
|
|
11240
|
+
return this.buttonDisabled ? "Please check the errors in your form" : void 0;
|
|
11241
|
+
},
|
|
11242
|
+
buttonDisabled() {
|
|
11243
|
+
return this.submitAttempted && this.invalid;
|
|
11244
|
+
},
|
|
11245
|
+
invalid() {
|
|
11246
|
+
var _a;
|
|
11247
|
+
return (_a = this.formState) == null ? void 0 : _a.invalid;
|
|
11248
|
+
},
|
|
11097
11249
|
formID() {
|
|
11098
11250
|
return this.$qik.utils.id(this.form);
|
|
11099
11251
|
},
|
|
@@ -11102,52 +11254,80 @@ const _sfc_main$j = {
|
|
|
11102
11254
|
}
|
|
11103
11255
|
}
|
|
11104
11256
|
};
|
|
11257
|
+
const _withScopeId$1 = (n2) => (pushScopeId("data-v-165f973d"), n2 = n2(), popScopeId(), n2);
|
|
11105
11258
|
const _hoisted_1$g = { class: "ux-submission-form" };
|
|
11106
|
-
const _hoisted_2$b = /* @__PURE__ */
|
|
11107
|
-
const _hoisted_3$8 =
|
|
11108
|
-
const _hoisted_4$7 =
|
|
11109
|
-
const _hoisted_5$3 =
|
|
11259
|
+
const _hoisted_2$b = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("h3", null, "An error occurred", -1));
|
|
11260
|
+
const _hoisted_3$8 = { key: 0 };
|
|
11261
|
+
const _hoisted_4$7 = { key: 1 };
|
|
11262
|
+
const _hoisted_5$3 = { key: 2 };
|
|
11263
|
+
const _hoisted_6$3 = /* @__PURE__ */ createTextVNode(" Try again ");
|
|
11264
|
+
const _hoisted_7$3 = /* @__PURE__ */ createTextVNode(" Complete! ");
|
|
11265
|
+
const _hoisted_8$2 = /* @__PURE__ */ createTextVNode(" Back to form ");
|
|
11266
|
+
const _hoisted_9$1 = ["tooltip"];
|
|
11267
|
+
const _hoisted_10$1 = /* @__PURE__ */ createTextVNode(" Submit ");
|
|
11110
11268
|
function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
11269
|
+
var _a;
|
|
11270
|
+
const _component_ux_icon = resolveComponent("ux-icon");
|
|
11111
11271
|
const _component_ux_button = resolveComponent("ux-button");
|
|
11112
11272
|
const _component_ux_form = resolveComponent("ux-form");
|
|
11113
11273
|
return openBlock(), createElementBlock("div", _hoisted_1$g, [
|
|
11114
11274
|
$data.state === "form.error" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
11115
|
-
|
|
11116
|
-
|
|
11275
|
+
_hoisted_2$b,
|
|
11276
|
+
$data.error.message ? (openBlock(), createElementBlock("pre", _hoisted_3$8, toDisplayString($data.error.message), 1)) : createCommentVNode("", true),
|
|
11277
|
+
((_a = $data.error.data) == null ? void 0 : _a.errors) ? (openBlock(), createElementBlock("div", _hoisted_4$7, [
|
|
11278
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList($data.error.data.errors, (field) => {
|
|
11279
|
+
return openBlock(), createElementBlock("pre", {
|
|
11280
|
+
key: field.path
|
|
11281
|
+
}, toDisplayString(field.message), 1);
|
|
11282
|
+
}), 128))
|
|
11283
|
+
])) : (openBlock(), createElementBlock("pre", _hoisted_5$3, toDisplayString($data.error), 1)),
|
|
11284
|
+
createVNode(_component_ux_button, {
|
|
11285
|
+
color: "primary",
|
|
11286
|
+
onClick: $options.softReset
|
|
11287
|
+
}, {
|
|
11117
11288
|
default: withCtx(() => [
|
|
11118
|
-
|
|
11289
|
+
_hoisted_6$3,
|
|
11290
|
+
createVNode(_component_ux_icon, {
|
|
11291
|
+
right: "",
|
|
11292
|
+
icon: "fa-undo"
|
|
11293
|
+
})
|
|
11119
11294
|
]),
|
|
11120
11295
|
_: 1
|
|
11121
11296
|
}, 8, ["onClick"])
|
|
11122
11297
|
], 64)) : $data.state === "form.complete" ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
11123
|
-
|
|
11298
|
+
_hoisted_7$3,
|
|
11124
11299
|
createVNode(_component_ux_button, { onClick: $options.reset }, {
|
|
11125
11300
|
default: withCtx(() => [
|
|
11126
|
-
|
|
11301
|
+
_hoisted_8$2
|
|
11127
11302
|
]),
|
|
11128
11303
|
_: 1
|
|
11129
11304
|
}, 8, ["onClick"])
|
|
11130
11305
|
], 64)) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
11131
11306
|
createVNode(_component_ux_form, {
|
|
11132
11307
|
submission: "",
|
|
11308
|
+
ref: "form",
|
|
11133
11309
|
modelValue: $data.model,
|
|
11134
11310
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $data.model = $event),
|
|
11311
|
+
"onForm:state": $options.formStateUpdated,
|
|
11135
11312
|
fields: $options.fields
|
|
11136
|
-
}, null, 8, ["modelValue", "fields"]),
|
|
11137
|
-
|
|
11138
|
-
|
|
11139
|
-
|
|
11140
|
-
|
|
11141
|
-
|
|
11142
|
-
|
|
11143
|
-
|
|
11144
|
-
|
|
11145
|
-
|
|
11146
|
-
|
|
11313
|
+
}, null, 8, ["modelValue", "onForm:state", "fields"]),
|
|
11314
|
+
createElementVNode("span", { tooltip: $options.tooltip }, [
|
|
11315
|
+
createVNode(_component_ux_button, {
|
|
11316
|
+
disabled: $options.buttonDisabled,
|
|
11317
|
+
color: "primary",
|
|
11318
|
+
onClick: $options.submit,
|
|
11319
|
+
loading: $data.state === "form.processing"
|
|
11320
|
+
}, {
|
|
11321
|
+
default: withCtx(() => [
|
|
11322
|
+
_hoisted_10$1
|
|
11323
|
+
]),
|
|
11324
|
+
_: 1
|
|
11325
|
+
}, 8, ["disabled", "onClick", "loading"])
|
|
11326
|
+
], 8, _hoisted_9$1)
|
|
11147
11327
|
], 64))
|
|
11148
11328
|
]);
|
|
11149
11329
|
}
|
|
11150
|
-
var UXSubmissionForm = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render$j]]);
|
|
11330
|
+
var UXSubmissionForm = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render$j], ["__scopeId", "data-v-165f973d"]]);
|
|
11151
11331
|
var search_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
11152
11332
|
const _sfc_main$i = {
|
|
11153
11333
|
props: {
|
|
@@ -11233,7 +11413,7 @@ function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11233
11413
|
])
|
|
11234
11414
|
]);
|
|
11235
11415
|
}
|
|
11236
|
-
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"]]);
|
|
11237
11417
|
var RenderMixin = {
|
|
11238
11418
|
props: {
|
|
11239
11419
|
field: {
|
|
@@ -16344,9 +16524,6 @@ const _sfc_main$9 = {
|
|
|
16344
16524
|
},
|
|
16345
16525
|
value() {
|
|
16346
16526
|
var v = extract(this.row, this.column.key);
|
|
16347
|
-
if (!v) {
|
|
16348
|
-
console.log(this.row, this.column.key);
|
|
16349
|
-
}
|
|
16350
16527
|
return v;
|
|
16351
16528
|
}
|
|
16352
16529
|
}
|
|
@@ -16392,7 +16569,7 @@ function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
16392
16569
|
}, null, 8, ["type", "value"]))
|
|
16393
16570
|
]));
|
|
16394
16571
|
}
|
|
16395
|
-
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"]]);
|
|
16396
16573
|
const _sfc_main$8 = {
|
|
16397
16574
|
components: {
|
|
16398
16575
|
TableCell
|
|
@@ -16428,11 +16605,9 @@ const _sfc_main$8 = {
|
|
|
16428
16605
|
this.$emit("click:row", this.row);
|
|
16429
16606
|
},
|
|
16430
16607
|
clickActions(row) {
|
|
16431
|
-
console.log("click actions");
|
|
16432
16608
|
this.$emit("click:actions", row);
|
|
16433
16609
|
},
|
|
16434
16610
|
clickSelect(row) {
|
|
16435
|
-
console.log("click select");
|
|
16436
16611
|
this.$emit("click:select", row);
|
|
16437
16612
|
}
|
|
16438
16613
|
},
|
|
@@ -17443,7 +17618,18 @@ const _sfc_main$5 = {
|
|
|
17443
17618
|
return this.manager.items.slice();
|
|
17444
17619
|
},
|
|
17445
17620
|
activeFilters() {
|
|
17446
|
-
var activeFilters = this.$qik.filter.activeFilters(this.filter)
|
|
17621
|
+
var activeFilters = this.$qik.filter.activeFilters(this.filter).reduce(function(set, filter) {
|
|
17622
|
+
if (!filter.key) {
|
|
17623
|
+
return set;
|
|
17624
|
+
}
|
|
17625
|
+
filter = __spreadValues({}, filter);
|
|
17626
|
+
filter.title = `Filter ${set.length + 1}`;
|
|
17627
|
+
filter.key = filter.key.split("[]").join("");
|
|
17628
|
+
filter.class = "active-filter";
|
|
17629
|
+
filter.shrink = true;
|
|
17630
|
+
set.push(filter);
|
|
17631
|
+
return set;
|
|
17632
|
+
}, []);
|
|
17447
17633
|
return activeFilters;
|
|
17448
17634
|
},
|
|
17449
17635
|
searching() {
|
|
@@ -17459,7 +17645,9 @@ const _sfc_main$5 = {
|
|
|
17459
17645
|
const self2 = this;
|
|
17460
17646
|
var fields = self2.columns.map(function(column) {
|
|
17461
17647
|
return column.path || column.key;
|
|
17462
|
-
}).flat()
|
|
17648
|
+
}).flat().filter(Boolean).map(function(string) {
|
|
17649
|
+
return string.split("[]").join("");
|
|
17650
|
+
});
|
|
17463
17651
|
if (self2.options.select) {
|
|
17464
17652
|
fields = [...fields, ...self2.options.select];
|
|
17465
17653
|
}
|
|
@@ -17543,7 +17731,6 @@ const _sfc_main$5 = {
|
|
|
17543
17731
|
var index2 = this.additionalFields.findIndex(function(f) {
|
|
17544
17732
|
return f.path === key || f.key === key;
|
|
17545
17733
|
});
|
|
17546
|
-
console.log("index", index2, key);
|
|
17547
17734
|
if (index2 === -1) {
|
|
17548
17735
|
this.additionalFields.push(field);
|
|
17549
17736
|
} else {
|
|
@@ -17554,8 +17741,12 @@ const _sfc_main$5 = {
|
|
|
17554
17741
|
if (!row.meta) {
|
|
17555
17742
|
row.meta = {};
|
|
17556
17743
|
}
|
|
17557
|
-
row.meta.type
|
|
17558
|
-
|
|
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
|
+
}
|
|
17559
17750
|
if (this.trash) {
|
|
17560
17751
|
row.meta.deleted = true;
|
|
17561
17752
|
}
|
|
@@ -17654,7 +17845,7 @@ const _sfc_main$5 = {
|
|
|
17654
17845
|
};
|
|
17655
17846
|
}
|
|
17656
17847
|
};
|
|
17657
|
-
const _withScopeId = (n2) => (pushScopeId("data-v-
|
|
17848
|
+
const _withScopeId = (n2) => (pushScopeId("data-v-3e12c643"), n2 = n2(), popScopeId(), n2);
|
|
17658
17849
|
const _hoisted_1$5 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("p", null, null, -1));
|
|
17659
17850
|
const _hoisted_2$4 = { class: "footer" };
|
|
17660
17851
|
function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
@@ -17768,9 +17959,13 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
17768
17959
|
})
|
|
17769
17960
|
]),
|
|
17770
17961
|
_: 1
|
|
17771
|
-
})) :
|
|
17772
|
-
$props.showFilters ? (openBlock(), createBlock(_component_flex_column, {
|
|
17962
|
+
})) : (openBlock(), createBlock(_component_flex_column, {
|
|
17773
17963
|
key: 2,
|
|
17964
|
+
class: "empty",
|
|
17965
|
+
center: ""
|
|
17966
|
+
})),
|
|
17967
|
+
$props.showFilters ? (openBlock(), createBlock(_component_flex_column, {
|
|
17968
|
+
key: 3,
|
|
17774
17969
|
class: "filter-column"
|
|
17775
17970
|
}, {
|
|
17776
17971
|
default: withCtx(() => [
|
|
@@ -17824,7 +18019,7 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
17824
18019
|
_: 3
|
|
17825
18020
|
})) : createCommentVNode("", true);
|
|
17826
18021
|
}
|
|
17827
|
-
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"]]);
|
|
17828
18023
|
var ModalMixin = {
|
|
17829
18024
|
props: {
|
|
17830
18025
|
options: {
|
|
@@ -18066,7 +18261,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
18066
18261
|
_: 1
|
|
18067
18262
|
});
|
|
18068
18263
|
}
|
|
18069
|
-
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"]]);
|
|
18070
18265
|
var PromptModal_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
18071
18266
|
const _sfc_main$1 = {
|
|
18072
18267
|
mixins: [ModalMixin],
|
|
@@ -18075,11 +18270,7 @@ const _sfc_main$1 = {
|
|
|
18075
18270
|
model: {}
|
|
18076
18271
|
};
|
|
18077
18272
|
},
|
|
18078
|
-
methods: {
|
|
18079
|
-
submit() {
|
|
18080
|
-
console.log("SUBMIT");
|
|
18081
|
-
}
|
|
18082
|
-
},
|
|
18273
|
+
methods: {},
|
|
18083
18274
|
computed: {
|
|
18084
18275
|
fields() {
|
|
18085
18276
|
return this.options.fields || [];
|
|
@@ -18106,7 +18297,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
18106
18297
|
const _component_flex_column = resolveComponent("flex-column");
|
|
18107
18298
|
return openBlock(), createElementBlock("form", {
|
|
18108
18299
|
class: "wrapper",
|
|
18109
|
-
onSubmit: _cache[2] || (_cache[2] = withModifiers((...args) =>
|
|
18300
|
+
onSubmit: _cache[2] || (_cache[2] = withModifiers((...args) => _ctx.submit && _ctx.submit(...args), ["prevent", "stop"]))
|
|
18110
18301
|
}, [
|
|
18111
18302
|
createVNode(_component_flex_column, null, {
|
|
18112
18303
|
default: withCtx(() => [
|
|
@@ -18171,7 +18362,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
18171
18362
|
})
|
|
18172
18363
|
], 32);
|
|
18173
18364
|
}
|
|
18174
|
-
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"]]);
|
|
18175
18366
|
var ContentModal_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
18176
18367
|
const _sfc_main = {
|
|
18177
18368
|
components: {
|