@bagelink/vue 0.0.200 → 0.0.204
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/components/Btn.vue.d.ts.map +1 -1
- package/dist/components/form/BglField.vue.d.ts +23 -0
- package/dist/components/form/BglField.vue.d.ts.map +1 -0
- package/dist/components/form/BglForm.vue.d.ts +36 -0
- package/dist/components/form/BglForm.vue.d.ts.map +1 -0
- package/dist/components/form/ItemRef.vue.d.ts +0 -1
- package/dist/components/form/ItemRef.vue.d.ts.map +1 -1
- package/dist/components/form/index.d.ts +2 -0
- package/dist/components/form/index.d.ts.map +1 -1
- package/dist/components/form/inputs/CheckInput.vue.d.ts +0 -1
- package/dist/components/form/inputs/CheckInput.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/ColorPicker.vue.d.ts +0 -1
- package/dist/components/form/inputs/ColorPicker.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/CurrencyInput.vue.d.ts +0 -1
- package/dist/components/form/inputs/CurrencyInput.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/DateInput.vue.d.ts +0 -1
- package/dist/components/form/inputs/DateInput.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/FileUpload.vue.d.ts +18 -0
- package/dist/components/form/inputs/FileUpload.vue.d.ts.map +1 -0
- package/dist/components/form/inputs/Password.vue.d.ts +0 -1
- package/dist/components/form/inputs/Password.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/PlainText.vue.d.ts +0 -1
- package/dist/components/form/inputs/PlainText.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/ReadOnlyInput.vue.d.ts +0 -1
- package/dist/components/form/inputs/ReadOnlyInput.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/SelectField.vue.d.ts +4 -1
- package/dist/components/form/inputs/SelectField.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/TextInput.vue.d.ts +13 -0
- package/dist/components/form/inputs/TextInput.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/index.d.ts +1 -0
- package/dist/components/form/inputs/index.d.ts.map +1 -1
- package/dist/index.cjs +810 -579
- package/dist/index.mjs +810 -579
- package/dist/style.css +127 -67
- package/dist/types/BagelField.d.ts +1 -8
- package/dist/types/BagelField.d.ts.map +1 -1
- package/dist/types/BagelForm.d.ts +23 -0
- package/dist/types/BagelForm.d.ts.map +1 -0
- package/dist/types/index.d.ts +2 -2
- package/dist/types/index.d.ts.map +1 -1
- package/dist/utils/index.d.ts +2 -2
- package/dist/utils/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/Btn.vue +7 -7
- package/src/components/form/BglField.vue +29 -0
- package/src/components/form/BglForm.vue +75 -0
- package/src/components/form/index.ts +2 -0
- package/src/components/form/inputs/FileUpload.vue +130 -0
- package/src/components/form/inputs/SelectField.vue +2 -0
- package/src/components/form/inputs/TextInput.vue +44 -8
- package/src/components/form/inputs/index.ts +1 -0
- package/src/types/BagelField.ts +1 -6
- package/src/types/BagelForm.ts +24 -0
- package/src/types/index.ts +11 -2
- package/src/utils/index.ts +10 -23
- package/dist/components/FileUploader.vue.d.ts +0 -60
- package/dist/components/FileUploader.vue.d.ts.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -2300,7 +2300,7 @@ const ModalPlugin = {
|
|
|
2300
2300
|
},
|
|
2301
2301
|
render() {
|
|
2302
2302
|
return modalStack.value.map((modal, index2) => {
|
|
2303
|
-
const renderComponent = modal.isModalForm ? ModalForm : _sfc_main$
|
|
2303
|
+
const renderComponent = modal.isModalForm ? ModalForm : _sfc_main$T;
|
|
2304
2304
|
return vue.h(
|
|
2305
2305
|
renderComponent,
|
|
2306
2306
|
{
|
|
@@ -2341,26 +2341,6 @@ const debounce = (fn2, delay = 500) => {
|
|
|
2341
2341
|
timeout = setTimeout(fn2, delay);
|
|
2342
2342
|
};
|
|
2343
2343
|
const keyToLabel = (key) => key.split("_").map((k2) => k2.charAt(0).toUpperCase() + k2.slice(1)).join(" ");
|
|
2344
|
-
function computeFields(modelValue) {
|
|
2345
|
-
const fields = [];
|
|
2346
|
-
for (const key of Object.keys(modelValue)) {
|
|
2347
|
-
const field = {
|
|
2348
|
-
label: keyToLabel(key),
|
|
2349
|
-
id: key,
|
|
2350
|
-
inputType: "PlainText"
|
|
2351
|
-
};
|
|
2352
|
-
if (typeof modelValue[key] === "string")
|
|
2353
|
-
field.inputType = "PlainText";
|
|
2354
|
-
if (typeof modelValue[key] === "number")
|
|
2355
|
-
field.inputType = "NumberInput";
|
|
2356
|
-
if (modelValue[key] === true || modelValue[key] === false)
|
|
2357
|
-
field.inputType = "CheckInput";
|
|
2358
|
-
if (modelValue[key] instanceof Date || !Number.isNaN(Date.parse(modelValue[key])))
|
|
2359
|
-
field.inputType = "DateInput";
|
|
2360
|
-
fields.push(field);
|
|
2361
|
-
}
|
|
2362
|
-
return fields;
|
|
2363
|
-
}
|
|
2364
2344
|
const copyText = async (text2, cb) => {
|
|
2365
2345
|
await navigator.clipboard.writeText(text2);
|
|
2366
2346
|
if (cb)
|
|
@@ -2376,8 +2356,16 @@ function useEscape(event, closeModel) {
|
|
|
2376
2356
|
closeModel();
|
|
2377
2357
|
}
|
|
2378
2358
|
}
|
|
2379
|
-
|
|
2380
|
-
const
|
|
2359
|
+
function bindAttrs(attrs, fieldVal, row) {
|
|
2360
|
+
const arr = Object.entries(attrs).map(([key, value]) => [
|
|
2361
|
+
key,
|
|
2362
|
+
typeof value === "function" ? value(fieldVal, row) : value
|
|
2363
|
+
]);
|
|
2364
|
+
const resolvedAttrs = Object.fromEntries(arr);
|
|
2365
|
+
return resolvedAttrs;
|
|
2366
|
+
}
|
|
2367
|
+
const _hoisted_1$11 = { ref: "el" };
|
|
2368
|
+
const _sfc_main$Y = /* @__PURE__ */ vue.defineComponent({
|
|
2381
2369
|
__name: "LangText",
|
|
2382
2370
|
props: {
|
|
2383
2371
|
input: {}
|
|
@@ -2385,7 +2373,7 @@ const _sfc_main$V = /* @__PURE__ */ vue.defineComponent({
|
|
|
2385
2373
|
setup(__props) {
|
|
2386
2374
|
return (_ctx, _cache) => {
|
|
2387
2375
|
return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
|
|
2388
|
-
vue.createElementVNode("span", _hoisted_1
|
|
2376
|
+
vue.createElementVNode("span", _hoisted_1$11, null, 512),
|
|
2389
2377
|
vue.createTextVNode(" " + vue.toDisplayString(_ctx.input), 1)
|
|
2390
2378
|
], 64);
|
|
2391
2379
|
};
|
|
@@ -14498,8 +14486,8 @@ const marks = {
|
|
|
14498
14486
|
}
|
|
14499
14487
|
};
|
|
14500
14488
|
const schema = new Schema({ nodes, marks });
|
|
14501
|
-
const _hoisted_1$
|
|
14502
|
-
const _sfc_main$
|
|
14489
|
+
const _hoisted_1$10 = ["id"];
|
|
14490
|
+
const _sfc_main$X = /* @__PURE__ */ vue.defineComponent({
|
|
14503
14491
|
__name: "RTXEditor",
|
|
14504
14492
|
props: {
|
|
14505
14493
|
elementId: { default: Math.random().toString(36).substr(2, 9) },
|
|
@@ -14576,11 +14564,11 @@ const _sfc_main$U = /* @__PURE__ */ vue.defineComponent({
|
|
|
14576
14564
|
onClick: focusEditor,
|
|
14577
14565
|
id: `canvas-${_ctx.elementId}`,
|
|
14578
14566
|
onKeydown: _cache[0] || (_cache[0] = vue.withKeys(vue.withModifiers(($event) => _ctx.$emit("keydown.meta.enter"), ["meta"]), ["enter"]))
|
|
14579
|
-
}, null, 40, _hoisted_1$
|
|
14567
|
+
}, null, 40, _hoisted_1$10);
|
|
14580
14568
|
};
|
|
14581
14569
|
}
|
|
14582
14570
|
});
|
|
14583
|
-
const _sfc_main$
|
|
14571
|
+
const _sfc_main$W = /* @__PURE__ */ vue.defineComponent({
|
|
14584
14572
|
__name: "MaterialIcon",
|
|
14585
14573
|
props: {
|
|
14586
14574
|
icon: {},
|
|
@@ -14595,17 +14583,17 @@ const _sfc_main$T = /* @__PURE__ */ vue.defineComponent({
|
|
|
14595
14583
|
};
|
|
14596
14584
|
}
|
|
14597
14585
|
});
|
|
14598
|
-
const _hoisted_1
|
|
14599
|
-
const _hoisted_2$
|
|
14600
|
-
_hoisted_1
|
|
14586
|
+
const _hoisted_1$$ = /* @__PURE__ */ vue.createElementVNode("div", { class: "icon-font top-arrow" }, "chevron_right", -1);
|
|
14587
|
+
const _hoisted_2$S = [
|
|
14588
|
+
_hoisted_1$$
|
|
14601
14589
|
];
|
|
14602
|
-
const _hoisted_3$
|
|
14603
|
-
const _hoisted_4$
|
|
14604
|
-
const _hoisted_5$
|
|
14605
|
-
const _hoisted_6$
|
|
14590
|
+
const _hoisted_3$K = { class: "full-nav" };
|
|
14591
|
+
const _hoisted_4$t = { class: "nav-scroll" };
|
|
14592
|
+
const _hoisted_5$n = { class: "nav-links-wrapper" };
|
|
14593
|
+
const _hoisted_6$i = { class: "icon-font" };
|
|
14606
14594
|
const _hoisted_7$d = { class: "tooltip" };
|
|
14607
14595
|
const _hoisted_8$7 = { class: "bot-buttons-wrapper" };
|
|
14608
|
-
const _sfc_main$
|
|
14596
|
+
const _sfc_main$V = /* @__PURE__ */ vue.defineComponent({
|
|
14609
14597
|
__name: "NavBar",
|
|
14610
14598
|
props: {
|
|
14611
14599
|
links: {},
|
|
@@ -14629,10 +14617,10 @@ const _sfc_main$S = /* @__PURE__ */ vue.defineComponent({
|
|
|
14629
14617
|
role: "button",
|
|
14630
14618
|
"aria-label": "Toggle Navigation",
|
|
14631
14619
|
tabindex: "0"
|
|
14632
|
-
}, _hoisted_2$
|
|
14633
|
-
vue.createElementVNode("div", _hoisted_3$
|
|
14634
|
-
vue.createElementVNode("div", _hoisted_4$
|
|
14635
|
-
vue.createElementVNode("div", _hoisted_5$
|
|
14620
|
+
}, _hoisted_2$S, 32),
|
|
14621
|
+
vue.createElementVNode("div", _hoisted_3$K, [
|
|
14622
|
+
vue.createElementVNode("div", _hoisted_4$t, [
|
|
14623
|
+
vue.createElementVNode("div", _hoisted_5$n, [
|
|
14636
14624
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList((_a2 = _ctx.links) == null ? void 0 : _a2.call(_ctx), (link) => {
|
|
14637
14625
|
return vue.openBlock(), vue.createBlock(_component_RouterLink, {
|
|
14638
14626
|
class: "nav-button",
|
|
@@ -14640,7 +14628,7 @@ const _sfc_main$S = /* @__PURE__ */ vue.defineComponent({
|
|
|
14640
14628
|
key: link.label
|
|
14641
14629
|
}, {
|
|
14642
14630
|
default: vue.withCtx(() => [
|
|
14643
|
-
vue.createElementVNode("div", _hoisted_6$
|
|
14631
|
+
vue.createElementVNode("div", _hoisted_6$i, vue.toDisplayString(link.materialIcon), 1),
|
|
14644
14632
|
vue.createElementVNode("div", _hoisted_7$d, vue.toDisplayString(link.localized ? link.localized : link.label), 1)
|
|
14645
14633
|
]),
|
|
14646
14634
|
_: 2
|
|
@@ -14656,15 +14644,15 @@ const _sfc_main$S = /* @__PURE__ */ vue.defineComponent({
|
|
|
14656
14644
|
};
|
|
14657
14645
|
}
|
|
14658
14646
|
});
|
|
14659
|
-
const _hoisted_1$
|
|
14647
|
+
const _hoisted_1$_ = {
|
|
14660
14648
|
key: 0,
|
|
14661
14649
|
class: "loading"
|
|
14662
14650
|
};
|
|
14663
|
-
const _hoisted_2$
|
|
14651
|
+
const _hoisted_2$R = {
|
|
14664
14652
|
key: 1,
|
|
14665
14653
|
class: "btn-flex"
|
|
14666
14654
|
};
|
|
14667
|
-
const _sfc_main$
|
|
14655
|
+
const _sfc_main$U = /* @__PURE__ */ vue.defineComponent({
|
|
14668
14656
|
__name: "Btn",
|
|
14669
14657
|
props: {
|
|
14670
14658
|
disabled: { type: Boolean, default: false },
|
|
@@ -14685,8 +14673,8 @@ const _sfc_main$R = /* @__PURE__ */ vue.defineComponent({
|
|
|
14685
14673
|
},
|
|
14686
14674
|
setup(__props) {
|
|
14687
14675
|
vue.useCssVars((_ctx) => ({
|
|
14688
|
-
"
|
|
14689
|
-
"
|
|
14676
|
+
"0bd3bef7": computedBackgroundColor.value,
|
|
14677
|
+
"1b1b6b12": cumputedTextColor.value
|
|
14690
14678
|
}));
|
|
14691
14679
|
const slots = vue.useSlots();
|
|
14692
14680
|
const props2 = __props;
|
|
@@ -14710,10 +14698,11 @@ const _sfc_main$R = /* @__PURE__ */ vue.defineComponent({
|
|
|
14710
14698
|
red: getThemeColors({ backgroundColor: "var(--bgl-red)" }),
|
|
14711
14699
|
black: getThemeColors({ backgroundColor: "var(--bgl-black)" }),
|
|
14712
14700
|
green: getThemeColors({ backgroundColor: "var(--bgl-green)", color: "var(--bgl-white)" }),
|
|
14713
|
-
|
|
14701
|
+
primary: getThemeColors({ backgroundColor: "var(--bgl-primary)", color: "var(--bgl-white)" }),
|
|
14714
14702
|
gray: getThemeColors({ backgroundColor: "var(--bgl-gray-light)", color: "var(--bgl-black)" }),
|
|
14715
14703
|
light: getThemeColors({ backgroundColor: "var(--bgl-primary-light)", color: "var(--bgl-primary)" }),
|
|
14716
|
-
"gray-light": getThemeColors({ backgroundColor: "var(--bgl-gray-light)", color: "var(--bgl-gray)" })
|
|
14704
|
+
"gray-light": getThemeColors({ backgroundColor: "var(--bgl-gray-light)", color: "var(--bgl-gray)" }),
|
|
14705
|
+
blue: getThemeColors({})
|
|
14717
14706
|
};
|
|
14718
14707
|
const cumputedTextColor = vue.computed(
|
|
14719
14708
|
() => {
|
|
@@ -14743,8 +14732,8 @@ const _sfc_main$R = /* @__PURE__ */ vue.defineComponent({
|
|
|
14743
14732
|
})
|
|
14744
14733
|
}, {
|
|
14745
14734
|
default: vue.withCtx(() => [
|
|
14746
|
-
_ctx.loading ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
14747
|
-
_ctx.icon ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$
|
|
14735
|
+
_ctx.loading ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$_)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$R, [
|
|
14736
|
+
_ctx.icon ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$W), {
|
|
14748
14737
|
key: 0,
|
|
14749
14738
|
icon: _ctx.icon
|
|
14750
14739
|
}, null, 8, ["icon"])) : vue.createCommentVNode("", true),
|
|
@@ -14752,7 +14741,7 @@ const _sfc_main$R = /* @__PURE__ */ vue.defineComponent({
|
|
|
14752
14741
|
!vue.unref(slots)["default"] && _ctx.value ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
|
|
14753
14742
|
vue.createTextVNode(vue.toDisplayString(_ctx.value), 1)
|
|
14754
14743
|
], 64)) : vue.createCommentVNode("", true),
|
|
14755
|
-
props2["icon.end"] ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$
|
|
14744
|
+
props2["icon.end"] ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$W), {
|
|
14756
14745
|
key: 2,
|
|
14757
14746
|
icon: props2["icon.end"]
|
|
14758
14747
|
}, null, 8, ["icon"])) : vue.createCommentVNode("", true)
|
|
@@ -14770,11 +14759,11 @@ const _export_sfc = (sfc, props2) => {
|
|
|
14770
14759
|
}
|
|
14771
14760
|
return target;
|
|
14772
14761
|
};
|
|
14773
|
-
const Btn = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
14774
|
-
const _hoisted_1$
|
|
14775
|
-
const _hoisted_2$
|
|
14776
|
-
const _hoisted_3$
|
|
14777
|
-
const _sfc_main$
|
|
14762
|
+
const Btn = /* @__PURE__ */ _export_sfc(_sfc_main$U, [["__scopeId", "data-v-845b751e"]]);
|
|
14763
|
+
const _hoisted_1$Z = { class: "tool-bar" };
|
|
14764
|
+
const _hoisted_2$Q = { class: "modal-title" };
|
|
14765
|
+
const _hoisted_3$J = { class: "modal-footer mt-3" };
|
|
14766
|
+
const _sfc_main$T = /* @__PURE__ */ vue.defineComponent({
|
|
14778
14767
|
__name: "Modal",
|
|
14779
14768
|
props: {
|
|
14780
14769
|
side: { type: Boolean },
|
|
@@ -14820,7 +14809,7 @@ const _sfc_main$Q = /* @__PURE__ */ vue.defineComponent({
|
|
|
14820
14809
|
onClick: _cache[0] || (_cache[0] = vue.withModifiers(() => {
|
|
14821
14810
|
}, ["stop"]))
|
|
14822
14811
|
}, [
|
|
14823
|
-
vue.createElementVNode("header", _hoisted_1$
|
|
14812
|
+
vue.createElementVNode("header", _hoisted_1$Z, [
|
|
14824
14813
|
vue.renderSlot(_ctx.$slots, "toolbar"),
|
|
14825
14814
|
vue.createVNode(vue.unref(Btn), {
|
|
14826
14815
|
style: vue.normalizeStyle({ float: _ctx.side ? "left" : "right" }),
|
|
@@ -14828,10 +14817,10 @@ const _sfc_main$Q = /* @__PURE__ */ vue.defineComponent({
|
|
|
14828
14817
|
icon: "close",
|
|
14829
14818
|
onClick: closeModal
|
|
14830
14819
|
}, null, 8, ["style"]),
|
|
14831
|
-
vue.createElementVNode("h3", _hoisted_2$
|
|
14820
|
+
vue.createElementVNode("h3", _hoisted_2$Q, vue.toDisplayString(_ctx.title), 1)
|
|
14832
14821
|
]),
|
|
14833
14822
|
vue.renderSlot(_ctx.$slots, "default"),
|
|
14834
|
-
vue.createElementVNode("footer", _hoisted_3$
|
|
14823
|
+
vue.createElementVNode("footer", _hoisted_3$J, [
|
|
14835
14824
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.actions, (action, i3) => {
|
|
14836
14825
|
return vue.openBlock(), vue.createBlock(vue.unref(Btn), vue.mergeProps({
|
|
14837
14826
|
key: i3,
|
|
@@ -14846,10 +14835,10 @@ const _sfc_main$Q = /* @__PURE__ */ vue.defineComponent({
|
|
|
14846
14835
|
};
|
|
14847
14836
|
}
|
|
14848
14837
|
});
|
|
14849
|
-
const _hoisted_1$
|
|
14850
|
-
const _hoisted_2$
|
|
14851
|
-
const _hoisted_3$
|
|
14852
|
-
const _sfc_main$
|
|
14838
|
+
const _hoisted_1$Y = { class: "dropdown-title" };
|
|
14839
|
+
const _hoisted_2$P = { class: "dropdown-body" };
|
|
14840
|
+
const _hoisted_3$I = ["onClick"];
|
|
14841
|
+
const _sfc_main$S = /* @__PURE__ */ vue.defineComponent({
|
|
14853
14842
|
__name: "DropDown",
|
|
14854
14843
|
props: {
|
|
14855
14844
|
modelValue: String,
|
|
@@ -14875,31 +14864,31 @@ const _sfc_main$P = /* @__PURE__ */ vue.defineComponent({
|
|
|
14875
14864
|
class: vue.normalizeClass(["dropdown", { opendrop: vue.unref(isOpen) }]),
|
|
14876
14865
|
onClick: toggleDropdown
|
|
14877
14866
|
}, [
|
|
14878
|
-
vue.createElementVNode("div", _hoisted_1$
|
|
14867
|
+
vue.createElementVNode("div", _hoisted_1$Y, [
|
|
14879
14868
|
vue.createTextVNode(vue.toDisplayString(vue.unref(selectedOption) || __props.placeholder) + " ", 1),
|
|
14880
|
-
vue.createVNode(vue.unref(_sfc_main$
|
|
14869
|
+
vue.createVNode(vue.unref(_sfc_main$W), { icon: "keyboard_arrow_down" })
|
|
14881
14870
|
]),
|
|
14882
|
-
vue.createElementVNode("div", _hoisted_2$
|
|
14871
|
+
vue.createElementVNode("div", _hoisted_2$P, [
|
|
14883
14872
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.options, (option2, index2) => {
|
|
14884
14873
|
return vue.openBlock(), vue.createElementBlock("p", {
|
|
14885
14874
|
key: index2,
|
|
14886
14875
|
onClick: vue.withModifiers(($event) => selectOption(option2, index2), ["stop"])
|
|
14887
|
-
}, vue.toDisplayString(option2), 9, _hoisted_3$
|
|
14876
|
+
}, vue.toDisplayString(option2), 9, _hoisted_3$I);
|
|
14888
14877
|
}), 128))
|
|
14889
14878
|
])
|
|
14890
14879
|
], 2);
|
|
14891
14880
|
};
|
|
14892
14881
|
}
|
|
14893
14882
|
});
|
|
14894
|
-
const _hoisted_1$
|
|
14895
|
-
const _hoisted_2$
|
|
14896
|
-
const _hoisted_3$
|
|
14883
|
+
const _hoisted_1$X = { class: "card list-view grid thin" };
|
|
14884
|
+
const _hoisted_2$O = { class: "list-header flex gap-3 align-items-top" };
|
|
14885
|
+
const _hoisted_3$H = {
|
|
14897
14886
|
key: 0,
|
|
14898
14887
|
class: "bagel-input search-wrap"
|
|
14899
14888
|
};
|
|
14900
|
-
const _hoisted_4$
|
|
14901
|
-
const _hoisted_5$
|
|
14902
|
-
const _sfc_main$
|
|
14889
|
+
const _hoisted_4$s = ["placeholder"];
|
|
14890
|
+
const _hoisted_5$m = { class: "list-content grid auto-flow-rows align-items-start" };
|
|
14891
|
+
const _sfc_main$R = /* @__PURE__ */ vue.defineComponent({
|
|
14903
14892
|
__name: "ListView",
|
|
14904
14893
|
props: {
|
|
14905
14894
|
enableAdd: { type: Boolean },
|
|
@@ -14915,17 +14904,17 @@ const _sfc_main$O = /* @__PURE__ */ vue.defineComponent({
|
|
|
14915
14904
|
debounce(() => emit2("debounce", searchTerm.value));
|
|
14916
14905
|
};
|
|
14917
14906
|
return (_ctx, _cache) => {
|
|
14918
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
14919
|
-
vue.createElementVNode("div", _hoisted_2$
|
|
14920
|
-
_ctx.enableSearch ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$
|
|
14907
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$X, [
|
|
14908
|
+
vue.createElementVNode("div", _hoisted_2$O, [
|
|
14909
|
+
_ctx.enableSearch ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$H, [
|
|
14921
14910
|
vue.withDirectives(vue.createElementVNode("input", {
|
|
14922
14911
|
placeholder: _ctx.searchPlaceholder,
|
|
14923
14912
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => searchTerm.value = $event),
|
|
14924
14913
|
onInput: _cache[1] || (_cache[1] = ($event) => search())
|
|
14925
|
-
}, null, 40, _hoisted_4$
|
|
14914
|
+
}, null, 40, _hoisted_4$s), [
|
|
14926
14915
|
[vue.vModelText, searchTerm.value]
|
|
14927
14916
|
]),
|
|
14928
|
-
vue.createVNode(vue.unref(_sfc_main$
|
|
14917
|
+
vue.createVNode(vue.unref(_sfc_main$W), {
|
|
14929
14918
|
class: "txtgray",
|
|
14930
14919
|
icon: "search"
|
|
14931
14920
|
})
|
|
@@ -14936,16 +14925,16 @@ const _sfc_main$O = /* @__PURE__ */ vue.defineComponent({
|
|
|
14936
14925
|
onClick: _cache[2] || (_cache[2] = ($event) => emit2("add"))
|
|
14937
14926
|
})) : vue.createCommentVNode("", true)
|
|
14938
14927
|
]),
|
|
14939
|
-
vue.createElementVNode("div", _hoisted_5$
|
|
14928
|
+
vue.createElementVNode("div", _hoisted_5$m, [
|
|
14940
14929
|
vue.renderSlot(_ctx.$slots, "default")
|
|
14941
14930
|
])
|
|
14942
14931
|
]);
|
|
14943
14932
|
};
|
|
14944
14933
|
}
|
|
14945
14934
|
});
|
|
14946
|
-
const _hoisted_1$
|
|
14947
|
-
const _hoisted_2$
|
|
14948
|
-
const _sfc_main$
|
|
14935
|
+
const _hoisted_1$W = { class: "txt16 no-margin" };
|
|
14936
|
+
const _hoisted_2$N = { class: "txt14 no-margin txtgray" };
|
|
14937
|
+
const _sfc_main$Q = /* @__PURE__ */ vue.defineComponent({
|
|
14949
14938
|
__name: "ListItem",
|
|
14950
14939
|
props: {
|
|
14951
14940
|
to: {}
|
|
@@ -14957,10 +14946,10 @@ const _sfc_main$N = /* @__PURE__ */ vue.defineComponent({
|
|
|
14957
14946
|
class: "list-item ellipsis"
|
|
14958
14947
|
}, {
|
|
14959
14948
|
default: vue.withCtx(() => [
|
|
14960
|
-
vue.createElementVNode("p", _hoisted_1$
|
|
14949
|
+
vue.createElementVNode("p", _hoisted_1$W, [
|
|
14961
14950
|
vue.renderSlot(_ctx.$slots, "default")
|
|
14962
14951
|
]),
|
|
14963
|
-
vue.createElementVNode("p", _hoisted_2$
|
|
14952
|
+
vue.createElementVNode("p", _hoisted_2$N, [
|
|
14964
14953
|
vue.renderSlot(_ctx.$slots, "subtitle")
|
|
14965
14954
|
])
|
|
14966
14955
|
]),
|
|
@@ -14969,11 +14958,11 @@ const _sfc_main$N = /* @__PURE__ */ vue.defineComponent({
|
|
|
14969
14958
|
};
|
|
14970
14959
|
}
|
|
14971
14960
|
});
|
|
14972
|
-
const _hoisted_1$
|
|
14973
|
-
const _hoisted_2$
|
|
14974
|
-
const _hoisted_3$
|
|
14975
|
-
const _hoisted_4$
|
|
14976
|
-
const _sfc_main$
|
|
14961
|
+
const _hoisted_1$V = { class: "h-100 grid list-view gap-3" };
|
|
14962
|
+
const _hoisted_2$M = { class: "card tabs-top" };
|
|
14963
|
+
const _hoisted_3$G = { class: "tabs grid auto-flow-columns fit-content" };
|
|
14964
|
+
const _hoisted_4$r = ["onClick"];
|
|
14965
|
+
const _sfc_main$P = /* @__PURE__ */ vue.defineComponent({
|
|
14977
14966
|
__name: "TabbedLayout",
|
|
14978
14967
|
props: {
|
|
14979
14968
|
title: {},
|
|
@@ -15001,10 +14990,10 @@ const _sfc_main$M = /* @__PURE__ */ vue.defineComponent({
|
|
|
15001
14990
|
activeTab.value = firstTab;
|
|
15002
14991
|
});
|
|
15003
14992
|
return (_ctx, _cache) => {
|
|
15004
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
15005
|
-
vue.createElementVNode("div", _hoisted_2$
|
|
14993
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$V, [
|
|
14994
|
+
vue.createElementVNode("div", _hoisted_2$M, [
|
|
15006
14995
|
vue.renderSlot(_ctx.$slots, "top-section", {}, void 0, true),
|
|
15007
|
-
vue.createElementVNode("div", _hoisted_3$
|
|
14996
|
+
vue.createElementVNode("div", _hoisted_3$G, [
|
|
15008
14997
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.tabs, (tab) => {
|
|
15009
14998
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
15010
14999
|
class: vue.normalizeClass([{
|
|
@@ -15012,7 +15001,7 @@ const _sfc_main$M = /* @__PURE__ */ vue.defineComponent({
|
|
|
15012
15001
|
}, "tab"]),
|
|
15013
15002
|
key: tab,
|
|
15014
15003
|
onClick: ($event) => changeTab(tab)
|
|
15015
|
-
}, vue.toDisplayString(tab), 11, _hoisted_4$
|
|
15004
|
+
}, vue.toDisplayString(tab), 11, _hoisted_4$r);
|
|
15016
15005
|
}), 128))
|
|
15017
15006
|
])
|
|
15018
15007
|
]),
|
|
@@ -15028,16 +15017,16 @@ const _sfc_main$M = /* @__PURE__ */ vue.defineComponent({
|
|
|
15028
15017
|
};
|
|
15029
15018
|
}
|
|
15030
15019
|
});
|
|
15031
|
-
const TabbedLayout = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
15032
|
-
const _hoisted_1$
|
|
15033
|
-
const _hoisted_2$
|
|
15034
|
-
const _hoisted_3$
|
|
15035
|
-
const _hoisted_4$
|
|
15036
|
-
const _hoisted_5$
|
|
15037
|
-
const _hoisted_6$
|
|
15020
|
+
const TabbedLayout = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["__scopeId", "data-v-3941cced"]]);
|
|
15021
|
+
const _hoisted_1$U = { class: "comments-wrap" };
|
|
15022
|
+
const _hoisted_2$L = { class: "comment-list" };
|
|
15023
|
+
const _hoisted_3$F = { class: "comment-top" };
|
|
15024
|
+
const _hoisted_4$q = { class: "comment-owner" };
|
|
15025
|
+
const _hoisted_5$l = { class: "comment-time" };
|
|
15026
|
+
const _hoisted_6$h = { class: "comment-actions" };
|
|
15038
15027
|
const _hoisted_7$c = ["innerHTML"];
|
|
15039
15028
|
const _hoisted_8$6 = { class: "new-comment" };
|
|
15040
|
-
const _sfc_main$
|
|
15029
|
+
const _sfc_main$O = /* @__PURE__ */ vue.defineComponent({
|
|
15041
15030
|
__name: "Comments",
|
|
15042
15031
|
props: {
|
|
15043
15032
|
ref_table: {},
|
|
@@ -15080,8 +15069,8 @@ const _sfc_main$L = /* @__PURE__ */ vue.defineComponent({
|
|
|
15080
15069
|
void fetchData();
|
|
15081
15070
|
};
|
|
15082
15071
|
return (_ctx, _cache) => {
|
|
15083
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
15084
|
-
vue.createElementVNode("div", _hoisted_2$
|
|
15072
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$U, [
|
|
15073
|
+
vue.createElementVNode("div", _hoisted_2$L, [
|
|
15085
15074
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(comments), (comment) => {
|
|
15086
15075
|
var _a2, _b, _c;
|
|
15087
15076
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
@@ -15091,23 +15080,23 @@ const _sfc_main$L = /* @__PURE__ */ vue.defineComponent({
|
|
|
15091
15080
|
}, "comment"]),
|
|
15092
15081
|
key: comment.id
|
|
15093
15082
|
}, [
|
|
15094
|
-
vue.createElementVNode("div", _hoisted_3$
|
|
15095
|
-
vue.createElementVNode("div", _hoisted_4$
|
|
15096
|
-
vue.createElementVNode("div", _hoisted_5$
|
|
15097
|
-
vue.createElementVNode("div", _hoisted_6$
|
|
15098
|
-
vue.createVNode(vue.unref(_sfc_main$
|
|
15083
|
+
vue.createElementVNode("div", _hoisted_3$F, [
|
|
15084
|
+
vue.createElementVNode("div", _hoisted_4$q, vue.toDisplayString(comment.sender.first_name) + " " + vue.toDisplayString(comment.sender.last_name), 1),
|
|
15085
|
+
vue.createElementVNode("div", _hoisted_5$l, vue.toDisplayString(comment.updated_at.split("T")[0]), 1),
|
|
15086
|
+
vue.createElementVNode("div", _hoisted_6$h, [
|
|
15087
|
+
vue.createVNode(vue.unref(_sfc_main$W), {
|
|
15099
15088
|
size: 1,
|
|
15100
15089
|
class: "edit",
|
|
15101
15090
|
icon: "edit",
|
|
15102
15091
|
onClick: ($event) => vue.isRef(editComment) ? editComment.value = comment : editComment = comment
|
|
15103
15092
|
}, null, 8, ["onClick"]),
|
|
15104
|
-
vue.createVNode(vue.unref(_sfc_main$
|
|
15093
|
+
vue.createVNode(vue.unref(_sfc_main$W), {
|
|
15105
15094
|
size: 1.2,
|
|
15106
15095
|
class: "delete",
|
|
15107
15096
|
icon: "delete",
|
|
15108
15097
|
onClick: ($event) => deleteComment(comment.id)
|
|
15109
15098
|
}, null, 8, ["onClick"]),
|
|
15110
|
-
vue.createVNode(vue.unref(_sfc_main$
|
|
15099
|
+
vue.createVNode(vue.unref(_sfc_main$W), {
|
|
15111
15100
|
size: 1.2,
|
|
15112
15101
|
class: "save",
|
|
15113
15102
|
icon: "save",
|
|
@@ -15115,7 +15104,7 @@ const _sfc_main$L = /* @__PURE__ */ vue.defineComponent({
|
|
|
15115
15104
|
})
|
|
15116
15105
|
])
|
|
15117
15106
|
]),
|
|
15118
|
-
vue.unref(editComment) !== null && ((_c = vue.unref(editComment)) == null ? void 0 : _c.id) === comment.id ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$
|
|
15107
|
+
vue.unref(editComment) !== null && ((_c = vue.unref(editComment)) == null ? void 0 : _c.id) === comment.id ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$X), {
|
|
15119
15108
|
key: 0,
|
|
15120
15109
|
modelValue: vue.unref(editComment).body_html,
|
|
15121
15110
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.unref(editComment).body_html = $event),
|
|
@@ -15129,7 +15118,7 @@ const _sfc_main$L = /* @__PURE__ */ vue.defineComponent({
|
|
|
15129
15118
|
}), 128))
|
|
15130
15119
|
]),
|
|
15131
15120
|
vue.createElementVNode("div", _hoisted_8$6, [
|
|
15132
|
-
vue.createVNode(vue.unref(_sfc_main$
|
|
15121
|
+
vue.createVNode(vue.unref(_sfc_main$X), {
|
|
15133
15122
|
class: "comment-input",
|
|
15134
15123
|
modelValue: vue.unref(bodyHtml),
|
|
15135
15124
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => vue.isRef(bodyHtml) ? bodyHtml.value = $event : bodyHtml = $event),
|
|
@@ -15149,10 +15138,10 @@ const _sfc_main$L = /* @__PURE__ */ vue.defineComponent({
|
|
|
15149
15138
|
};
|
|
15150
15139
|
}
|
|
15151
15140
|
});
|
|
15152
|
-
const Comments = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
15153
|
-
const _hoisted_1$
|
|
15154
|
-
const _hoisted_2$
|
|
15155
|
-
const _sfc_main$
|
|
15141
|
+
const Comments = /* @__PURE__ */ _export_sfc(_sfc_main$O, [["__scopeId", "data-v-2eead7c8"]]);
|
|
15142
|
+
const _hoisted_1$T = { class: "page-top" };
|
|
15143
|
+
const _hoisted_2$K = { class: "top-title" };
|
|
15144
|
+
const _sfc_main$N = /* @__PURE__ */ vue.defineComponent({
|
|
15156
15145
|
__name: "PageTitle",
|
|
15157
15146
|
props: {
|
|
15158
15147
|
value: {
|
|
@@ -15162,8 +15151,8 @@ const _sfc_main$K = /* @__PURE__ */ vue.defineComponent({
|
|
|
15162
15151
|
},
|
|
15163
15152
|
setup(__props) {
|
|
15164
15153
|
return (_ctx, _cache) => {
|
|
15165
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
15166
|
-
vue.createElementVNode("h1", _hoisted_2$
|
|
15154
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$T, [
|
|
15155
|
+
vue.createElementVNode("h1", _hoisted_2$K, [
|
|
15167
15156
|
vue.renderSlot(_ctx.$slots, "default"),
|
|
15168
15157
|
vue.createTextVNode(" " + vue.toDisplayString(__props.value), 1)
|
|
15169
15158
|
])
|
|
@@ -15171,9 +15160,9 @@ const _sfc_main$K = /* @__PURE__ */ vue.defineComponent({
|
|
|
15171
15160
|
};
|
|
15172
15161
|
}
|
|
15173
15162
|
});
|
|
15174
|
-
const _hoisted_1$
|
|
15175
|
-
const _hoisted_2$
|
|
15176
|
-
const _sfc_main$
|
|
15163
|
+
const _hoisted_1$S = { class: "tool-bar" };
|
|
15164
|
+
const _hoisted_2$J = { class: "modal-title" };
|
|
15165
|
+
const _sfc_main$M = /* @__PURE__ */ vue.defineComponent({
|
|
15177
15166
|
__name: "ModalForm",
|
|
15178
15167
|
props: {
|
|
15179
15168
|
side: { type: Boolean },
|
|
@@ -15246,7 +15235,7 @@ const _sfc_main$J = /* @__PURE__ */ vue.defineComponent({
|
|
|
15246
15235
|
onClick: _cache[0] || (_cache[0] = vue.withModifiers(() => {
|
|
15247
15236
|
}, ["stop"]))
|
|
15248
15237
|
}, [
|
|
15249
|
-
vue.createElementVNode("header", _hoisted_1$
|
|
15238
|
+
vue.createElementVNode("header", _hoisted_1$S, [
|
|
15250
15239
|
vue.renderSlot(_ctx.$slots, "toolbar", {}, void 0, true),
|
|
15251
15240
|
vue.createVNode(vue.unref(Btn), {
|
|
15252
15241
|
style: vue.normalizeStyle({ float: _ctx.side ? "left" : "right" }),
|
|
@@ -15254,9 +15243,9 @@ const _sfc_main$J = /* @__PURE__ */ vue.defineComponent({
|
|
|
15254
15243
|
icon: "close",
|
|
15255
15244
|
onClick: closeModal
|
|
15256
15245
|
}, null, 8, ["style"]),
|
|
15257
|
-
vue.createElementVNode("h3", _hoisted_2$
|
|
15246
|
+
vue.createElementVNode("h3", _hoisted_2$J, vue.toDisplayString(_ctx.title), 1)
|
|
15258
15247
|
]),
|
|
15259
|
-
vue.createVNode(vue.unref(_sfc_main$
|
|
15248
|
+
vue.createVNode(vue.unref(_sfc_main$L), {
|
|
15260
15249
|
onDelete: _ctx.onDelete ? runDelete : void 0,
|
|
15261
15250
|
modelValue: _ctx.modelValue,
|
|
15262
15251
|
"onUpdate:modelValue": handleEmit,
|
|
@@ -15268,8 +15257,8 @@ const _sfc_main$J = /* @__PURE__ */ vue.defineComponent({
|
|
|
15268
15257
|
};
|
|
15269
15258
|
}
|
|
15270
15259
|
});
|
|
15271
|
-
const ModalForm = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
15272
|
-
const _sfc_main$
|
|
15260
|
+
const ModalForm = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["__scopeId", "data-v-1799b7d0"]]);
|
|
15261
|
+
const _sfc_main$L = /* @__PURE__ */ vue.defineComponent({
|
|
15273
15262
|
__name: "FormSchema",
|
|
15274
15263
|
props: {
|
|
15275
15264
|
modelValue: {},
|
|
@@ -15342,14 +15331,14 @@ const _sfc_main$I = /* @__PURE__ */ vue.defineComponent({
|
|
|
15342
15331
|
};
|
|
15343
15332
|
}
|
|
15344
15333
|
});
|
|
15345
|
-
const _hoisted_1$
|
|
15346
|
-
const _hoisted_2$
|
|
15347
|
-
const _hoisted_3$
|
|
15348
|
-
const _hoisted_4$
|
|
15349
|
-
const _hoisted_5$
|
|
15350
|
-
const _hoisted_6$
|
|
15334
|
+
const _hoisted_1$R = { class: "table-list-wrap h-100" };
|
|
15335
|
+
const _hoisted_2$I = { class: "infinite-wrapper" };
|
|
15336
|
+
const _hoisted_3$E = { class: "row first-row" };
|
|
15337
|
+
const _hoisted_4$p = ["onClick"];
|
|
15338
|
+
const _hoisted_5$k = { class: "flex" };
|
|
15339
|
+
const _hoisted_6$g = ["onClick"];
|
|
15351
15340
|
const _hoisted_7$b = { key: 1 };
|
|
15352
|
-
const _sfc_main$
|
|
15341
|
+
const _sfc_main$K = /* @__PURE__ */ vue.defineComponent({
|
|
15353
15342
|
__name: "TableSchema",
|
|
15354
15343
|
props: {
|
|
15355
15344
|
data: {},
|
|
@@ -15364,7 +15353,7 @@ const _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
|
|
|
15364
15353
|
const selectElement = (data2) => {
|
|
15365
15354
|
emit2("select", data2);
|
|
15366
15355
|
};
|
|
15367
|
-
const
|
|
15356
|
+
const bindAttrs2 = (attrs, field, row) => {
|
|
15368
15357
|
const arr = Object.entries(attrs || {}).map(([key, value]) => [
|
|
15369
15358
|
key,
|
|
15370
15359
|
typeof value === "function" ? value(field, row) : value
|
|
@@ -15395,27 +15384,27 @@ const _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
|
|
|
15395
15384
|
}
|
|
15396
15385
|
);
|
|
15397
15386
|
return (_ctx, _cache) => {
|
|
15398
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
15399
|
-
vue.createElementVNode("table", _hoisted_2$
|
|
15400
|
-
vue.createElementVNode("thead", _hoisted_3$
|
|
15387
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$R, [
|
|
15388
|
+
vue.createElementVNode("table", _hoisted_2$I, [
|
|
15389
|
+
vue.createElementVNode("thead", _hoisted_3$E, [
|
|
15401
15390
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(columns.value, (field) => {
|
|
15402
15391
|
return vue.openBlock(), vue.createElementBlock("th", {
|
|
15403
15392
|
class: "col",
|
|
15404
15393
|
key: field.id,
|
|
15405
15394
|
onClick: ($event) => sort2(field.id)
|
|
15406
15395
|
}, [
|
|
15407
|
-
vue.createElementVNode("div", _hoisted_5$
|
|
15396
|
+
vue.createElementVNode("div", _hoisted_5$k, [
|
|
15408
15397
|
vue.createTextVNode(vue.toDisplayString((field == null ? void 0 : field.label) || (field == null ? void 0 : field.id)) + " ", 1),
|
|
15409
15398
|
vue.createElementVNode("div", {
|
|
15410
15399
|
class: vue.normalizeClass(["list-arrows", { sorted: vue.unref(sortField) === field.id }])
|
|
15411
15400
|
}, [
|
|
15412
|
-
vue.createVNode(vue.unref(_sfc_main$
|
|
15401
|
+
vue.createVNode(vue.unref(_sfc_main$W), {
|
|
15413
15402
|
class: vue.normalizeClass({ desc: vue.unref(sortDirection) === "DESC" }),
|
|
15414
15403
|
icon: "keyboard_arrow_up"
|
|
15415
15404
|
}, null, 8, ["class"])
|
|
15416
15405
|
], 2)
|
|
15417
15406
|
])
|
|
15418
|
-
], 8, _hoisted_4$
|
|
15407
|
+
], 8, _hoisted_4$p);
|
|
15419
15408
|
}), 128))
|
|
15420
15409
|
]),
|
|
15421
15410
|
vue.createElementVNode("tbody", {
|
|
@@ -15439,7 +15428,7 @@ const _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
|
|
|
15439
15428
|
row,
|
|
15440
15429
|
field
|
|
15441
15430
|
}, void 0, true) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_7$b, [
|
|
15442
|
-
(field["v-if"] ? field["v-if"](row[field.id], row) : true) ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(field.$el || field.$cmp || "div"), vue.mergeProps({ key: 0 },
|
|
15431
|
+
(field["v-if"] ? field["v-if"](row[field.id], row) : true) ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(field.$el || field.$cmp || "div"), vue.mergeProps({ key: 0 }, bindAttrs2(field.attrs, row[field.id], row), {
|
|
15443
15432
|
src: field.$el === "img" ? (_a2 = row[field.id]) == null ? void 0 : _a2.url : "",
|
|
15444
15433
|
"onUpdate:modelValue": ($event) => {
|
|
15445
15434
|
var _a3;
|
|
@@ -15458,7 +15447,7 @@ const _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
|
|
|
15458
15447
|
]))
|
|
15459
15448
|
]);
|
|
15460
15449
|
}), 128))
|
|
15461
|
-
], 8, _hoisted_6$
|
|
15450
|
+
], 8, _hoisted_6$g);
|
|
15462
15451
|
}), 128))
|
|
15463
15452
|
], 2)
|
|
15464
15453
|
])
|
|
@@ -15466,16 +15455,16 @@ const _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
|
|
|
15466
15455
|
};
|
|
15467
15456
|
}
|
|
15468
15457
|
});
|
|
15469
|
-
const TableSchema = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
15470
|
-
const _sfc_main$
|
|
15471
|
-
const _hoisted_1$
|
|
15458
|
+
const TableSchema = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["__scopeId", "data-v-f3a410c2"]]);
|
|
15459
|
+
const _sfc_main$J = {};
|
|
15460
|
+
const _hoisted_1$Q = { class: "flex space-between" };
|
|
15472
15461
|
function _sfc_render$1(_ctx, _cache) {
|
|
15473
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
15462
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$Q, [
|
|
15474
15463
|
vue.renderSlot(_ctx.$slots, "default")
|
|
15475
15464
|
]);
|
|
15476
15465
|
}
|
|
15477
|
-
const TopBar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
15478
|
-
const _sfc_main$
|
|
15466
|
+
const TopBar = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["render", _sfc_render$1]]);
|
|
15467
|
+
const _sfc_main$I = {};
|
|
15479
15468
|
function _sfc_render(_ctx, _cache) {
|
|
15480
15469
|
const _component_router_view = vue.resolveComponent("router-view");
|
|
15481
15470
|
return vue.openBlock(), vue.createBlock(_component_router_view, null, {
|
|
@@ -15497,9 +15486,9 @@ function _sfc_render(_ctx, _cache) {
|
|
|
15497
15486
|
_: 1
|
|
15498
15487
|
});
|
|
15499
15488
|
}
|
|
15500
|
-
const RouterWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
15501
|
-
const _hoisted_1$
|
|
15502
|
-
const _sfc_main$
|
|
15489
|
+
const RouterWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["render", _sfc_render]]);
|
|
15490
|
+
const _hoisted_1$P = { class: "card h-100 thin" };
|
|
15491
|
+
const _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
|
|
15503
15492
|
__name: "ContactSubmissions",
|
|
15504
15493
|
props: {
|
|
15505
15494
|
person_id: {
|
|
@@ -15529,7 +15518,7 @@ const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
|
|
|
15529
15518
|
void getData();
|
|
15530
15519
|
});
|
|
15531
15520
|
return (_ctx, _cache) => {
|
|
15532
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
15521
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$P, [
|
|
15533
15522
|
vue.createVNode(vue.unref(TableSchema), {
|
|
15534
15523
|
schema: schema2,
|
|
15535
15524
|
data: vue.unref(data2)
|
|
@@ -15538,15 +15527,15 @@ const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
|
|
|
15538
15527
|
};
|
|
15539
15528
|
}
|
|
15540
15529
|
});
|
|
15541
|
-
const _hoisted_1$
|
|
15530
|
+
const _hoisted_1$O = {
|
|
15542
15531
|
key: 0,
|
|
15543
15532
|
class: "person-card-edit flex gap-2"
|
|
15544
15533
|
};
|
|
15545
|
-
const _hoisted_2$
|
|
15546
|
-
const _hoisted_3$
|
|
15547
|
-
const _hoisted_4$
|
|
15548
|
-
const _hoisted_5$
|
|
15549
|
-
const _hoisted_6$
|
|
15534
|
+
const _hoisted_2$H = { class: "person-card-icon-wrap" };
|
|
15535
|
+
const _hoisted_3$D = { class: "person-card-icon" };
|
|
15536
|
+
const _hoisted_4$o = { class: "person-card-name txt20" };
|
|
15537
|
+
const _hoisted_5$j = { class: "person-card-details-wrap" };
|
|
15538
|
+
const _hoisted_6$f = {
|
|
15550
15539
|
key: 0,
|
|
15551
15540
|
class: "person-card-details"
|
|
15552
15541
|
};
|
|
@@ -15560,7 +15549,7 @@ const _hoisted_8$5 = {
|
|
|
15560
15549
|
};
|
|
15561
15550
|
const _hoisted_9$3 = { key: 0 };
|
|
15562
15551
|
const _hoisted_10$3 = { key: 1 };
|
|
15563
|
-
const _sfc_main$
|
|
15552
|
+
const _sfc_main$G = /* @__PURE__ */ vue.defineComponent({
|
|
15564
15553
|
__name: "PersonPreview",
|
|
15565
15554
|
props: {
|
|
15566
15555
|
person: {},
|
|
@@ -15590,7 +15579,7 @@ const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
|
|
|
15590
15579
|
(...args) => _ctx.onClick && _ctx.onClick(...args)),
|
|
15591
15580
|
class: "person-card"
|
|
15592
15581
|
}, [
|
|
15593
|
-
!_ctx.onClick ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
15582
|
+
!_ctx.onClick ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$O, [
|
|
15594
15583
|
!_ctx.$route.path.match("/search") ? (vue.openBlock(), vue.createBlock(vue.unref(Btn), {
|
|
15595
15584
|
key: 0,
|
|
15596
15585
|
round: "",
|
|
@@ -15607,13 +15596,13 @@ const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
|
|
|
15607
15596
|
icon: "edit"
|
|
15608
15597
|
})
|
|
15609
15598
|
])) : vue.createCommentVNode("", true),
|
|
15610
|
-
vue.createElementVNode("div", _hoisted_2$
|
|
15611
|
-
vue.createElementVNode("p", _hoisted_3$
|
|
15612
|
-
vue.createElementVNode("p", _hoisted_4$
|
|
15599
|
+
vue.createElementVNode("div", _hoisted_2$H, [
|
|
15600
|
+
vue.createElementVNode("p", _hoisted_3$D, vue.toDisplayString(vue.unref(initials)(_ctx.person.first_name, _ctx.person.last_name)), 1),
|
|
15601
|
+
vue.createElementVNode("p", _hoisted_4$o, vue.toDisplayString(_ctx.person.first_name) + " " + vue.toDisplayString(_ctx.person.last_name), 1)
|
|
15613
15602
|
]),
|
|
15614
|
-
vue.createElementVNode("div", _hoisted_5$
|
|
15615
|
-
((_a2 = _ctx.person.phone) == null ? void 0 : _a2.length) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6$
|
|
15616
|
-
vue.createVNode(vue.unref(_sfc_main$
|
|
15603
|
+
vue.createElementVNode("div", _hoisted_5$j, [
|
|
15604
|
+
((_a2 = _ctx.person.phone) == null ? void 0 : _a2.length) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6$f, [
|
|
15605
|
+
vue.createVNode(vue.unref(_sfc_main$W), { icon: "phone" }),
|
|
15617
15606
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.person.phone, (phone) => {
|
|
15618
15607
|
return vue.openBlock(), vue.createElementBlock("p", {
|
|
15619
15608
|
key: phone.id
|
|
@@ -15621,7 +15610,7 @@ const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
|
|
|
15621
15610
|
}), 128))
|
|
15622
15611
|
])) : vue.createCommentVNode("", true),
|
|
15623
15612
|
((_b = _ctx.person.email) == null ? void 0 : _b.length) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_7$a, [
|
|
15624
|
-
vue.createVNode(vue.unref(_sfc_main$
|
|
15613
|
+
vue.createVNode(vue.unref(_sfc_main$W), { icon: "email" }),
|
|
15625
15614
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.person.email, (email) => {
|
|
15626
15615
|
return vue.openBlock(), vue.createElementBlock("p", {
|
|
15627
15616
|
key: email.id
|
|
@@ -15629,7 +15618,7 @@ const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
|
|
|
15629
15618
|
}), 128))
|
|
15630
15619
|
])) : vue.createCommentVNode("", true),
|
|
15631
15620
|
_ctx.person.date_of_birth || _ctx.person.gender ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_8$5, [
|
|
15632
|
-
vue.createVNode(vue.unref(_sfc_main$
|
|
15621
|
+
vue.createVNode(vue.unref(_sfc_main$W), { icon: "badge" }),
|
|
15633
15622
|
_ctx.person.date_of_birth ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_9$3, vue.toDisplayString(_ctx.person.date_of_birth), 1)) : vue.createCommentVNode("", true),
|
|
15634
15623
|
_ctx.person.gender ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_10$3, vue.toDisplayString(_ctx.person.gender), 1)) : vue.createCommentVNode("", true)
|
|
15635
15624
|
])) : vue.createCommentVNode("", true)
|
|
@@ -15638,23 +15627,23 @@ const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
|
|
|
15638
15627
|
};
|
|
15639
15628
|
}
|
|
15640
15629
|
});
|
|
15641
|
-
const _hoisted_1$
|
|
15630
|
+
const _hoisted_1$N = {
|
|
15642
15631
|
key: 0,
|
|
15643
15632
|
class: "data"
|
|
15644
15633
|
};
|
|
15645
|
-
const _hoisted_2$
|
|
15634
|
+
const _hoisted_2$G = {
|
|
15646
15635
|
key: 0,
|
|
15647
15636
|
class: "mb-3 mt-0"
|
|
15648
15637
|
};
|
|
15649
|
-
const _hoisted_3$
|
|
15638
|
+
const _hoisted_3$C = {
|
|
15650
15639
|
key: 0,
|
|
15651
15640
|
class: "data-row"
|
|
15652
15641
|
};
|
|
15653
|
-
const _hoisted_4$
|
|
15654
|
-
const _hoisted_5$
|
|
15655
|
-
const _hoisted_6$
|
|
15642
|
+
const _hoisted_4$n = { class: "key" };
|
|
15643
|
+
const _hoisted_5$i = { key: 1 };
|
|
15644
|
+
const _hoisted_6$e = { class: "key" };
|
|
15656
15645
|
const _hoisted_7$9 = { class: "vlue" };
|
|
15657
|
-
const _sfc_main$
|
|
15646
|
+
const _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
|
|
15658
15647
|
__name: "DataPreview",
|
|
15659
15648
|
props: {
|
|
15660
15649
|
data: {},
|
|
@@ -15666,7 +15655,7 @@ const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
|
|
|
15666
15655
|
const keysToIgnore = ["id", "person_id", "person", "created_at", "updated_at"];
|
|
15667
15656
|
const props2 = __props;
|
|
15668
15657
|
const itemData = vue.ref(props2.data);
|
|
15669
|
-
const
|
|
15658
|
+
const bindAttrs2 = (attrs, field, row) => {
|
|
15670
15659
|
const arr = Object.entries(attrs || {}).map(([key, value]) => [
|
|
15671
15660
|
key,
|
|
15672
15661
|
typeof value === "function" ? value(field, row) : value
|
|
@@ -15676,14 +15665,14 @@ const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
|
|
|
15676
15665
|
};
|
|
15677
15666
|
return (_ctx, _cache) => {
|
|
15678
15667
|
var _a2;
|
|
15679
|
-
return _ctx.data ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
15680
|
-
_ctx.title ? (vue.openBlock(), vue.createElementBlock("h3", _hoisted_2$
|
|
15668
|
+
return _ctx.data ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$N, [
|
|
15669
|
+
_ctx.title ? (vue.openBlock(), vue.createElementBlock("h3", _hoisted_2$G, vue.toDisplayString(_ctx.title), 1)) : vue.createCommentVNode("", true),
|
|
15681
15670
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.schema || [], (field) => {
|
|
15682
15671
|
return vue.openBlock(), vue.createElementBlock(vue.Fragment, {
|
|
15683
15672
|
key: field.id
|
|
15684
15673
|
}, [
|
|
15685
|
-
(field["v-if"] ? field["v-if"](itemData.value[field.id], itemData.value) : true) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$
|
|
15686
|
-
vue.createElementVNode("div", _hoisted_4$
|
|
15674
|
+
(field["v-if"] ? field["v-if"](itemData.value[field.id], itemData.value) : true) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$C, [
|
|
15675
|
+
vue.createElementVNode("div", _hoisted_4$n, vue.toDisplayString((field == null ? void 0 : field.label) || vue.unref(keyToLabel)(field.id)), 1),
|
|
15687
15676
|
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(field.$el || "div"), vue.mergeProps({
|
|
15688
15677
|
class: "vlue",
|
|
15689
15678
|
modelValue: itemData.value[field.id],
|
|
@@ -15691,7 +15680,7 @@ const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
|
|
|
15691
15680
|
var _a3;
|
|
15692
15681
|
return (_a3 = field == null ? void 0 : field.onUpdate) == null ? void 0 : _a3.call(field, $event, _ctx.data[field.id], itemData.value);
|
|
15693
15682
|
}]
|
|
15694
|
-
},
|
|
15683
|
+
}, bindAttrs2(field.attrs, itemData.value[field.id], itemData.value)), {
|
|
15695
15684
|
default: vue.withCtx(() => {
|
|
15696
15685
|
var _a3;
|
|
15697
15686
|
return [
|
|
@@ -15703,7 +15692,7 @@ const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
|
|
|
15703
15692
|
])) : vue.createCommentVNode("", true)
|
|
15704
15693
|
], 64);
|
|
15705
15694
|
}), 128)),
|
|
15706
|
-
!((_a2 = _ctx.schema) == null ? void 0 : _a2.length) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$
|
|
15695
|
+
!((_a2 = _ctx.schema) == null ? void 0 : _a2.length) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$i, [
|
|
15707
15696
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(Object.entries(itemData.value).filter(
|
|
15708
15697
|
([key]) => !keysToIgnore.includes(key)
|
|
15709
15698
|
), ([key, value]) => {
|
|
@@ -15711,7 +15700,7 @@ const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
|
|
|
15711
15700
|
class: "data-row",
|
|
15712
15701
|
key
|
|
15713
15702
|
}, [
|
|
15714
|
-
vue.createElementVNode("div", _hoisted_6$
|
|
15703
|
+
vue.createElementVNode("div", _hoisted_6$e, vue.toDisplayString(vue.unref(i18nT)(vue.unref(keyToLabel)(key))), 1),
|
|
15715
15704
|
vue.createElementVNode("div", _hoisted_7$9, vue.toDisplayString(value), 1)
|
|
15716
15705
|
]);
|
|
15717
15706
|
}), 128))
|
|
@@ -15721,23 +15710,23 @@ const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
|
|
|
15721
15710
|
};
|
|
15722
15711
|
}
|
|
15723
15712
|
});
|
|
15724
|
-
const DataPreview = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
15713
|
+
const DataPreview = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-dc2757c4"]]);
|
|
15725
15714
|
const _withScopeId$2 = (n) => (vue.pushScopeId("data-v-fe5af582"), n = n(), vue.popScopeId(), n);
|
|
15726
|
-
const _hoisted_1$
|
|
15727
|
-
const _hoisted_2$
|
|
15715
|
+
const _hoisted_1$M = { class: "bar-chart" };
|
|
15716
|
+
const _hoisted_2$F = {
|
|
15728
15717
|
key: 0,
|
|
15729
15718
|
class: "group-wrap"
|
|
15730
15719
|
};
|
|
15731
|
-
const _hoisted_3$
|
|
15732
|
-
const _hoisted_4$
|
|
15720
|
+
const _hoisted_3$B = { class: "group-title" };
|
|
15721
|
+
const _hoisted_4$m = {
|
|
15733
15722
|
key: 1,
|
|
15734
15723
|
class: "bar-wrap"
|
|
15735
15724
|
};
|
|
15736
|
-
const _hoisted_5$
|
|
15737
|
-
const _hoisted_6$
|
|
15725
|
+
const _hoisted_5$h = { class: "bar-txt" };
|
|
15726
|
+
const _hoisted_6$d = { class: "factor" };
|
|
15738
15727
|
const _hoisted_7$8 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ vue.createElementVNode("div", { class: "red-bar" }, null, -1));
|
|
15739
15728
|
const _hoisted_8$4 = { class: "bar-lines" };
|
|
15740
|
-
const _sfc_main$
|
|
15729
|
+
const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
|
|
15741
15730
|
__name: "BarChart",
|
|
15742
15731
|
props: {
|
|
15743
15732
|
title: {},
|
|
@@ -15789,14 +15778,14 @@ const _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
|
|
|
15789
15778
|
const percent = (val) => val / maxValue.value * 100;
|
|
15790
15779
|
const floodPercent = vue.computed(() => `${props2.flood}%`);
|
|
15791
15780
|
return (_ctx, _cache) => {
|
|
15792
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
15781
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$M, [
|
|
15793
15782
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(dataArray.value, (item, i3) => {
|
|
15794
15783
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
15795
15784
|
class: "graph-wrap",
|
|
15796
15785
|
key: i3
|
|
15797
15786
|
}, [
|
|
15798
|
-
item.group ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$
|
|
15799
|
-
vue.createElementVNode("p", _hoisted_3$
|
|
15787
|
+
item.group ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$F, [
|
|
15788
|
+
vue.createElementVNode("p", _hoisted_3$B, vue.toDisplayString(item.group), 1),
|
|
15800
15789
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList((item == null ? void 0 : item.data) || [], (nested, i22) => {
|
|
15801
15790
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
15802
15791
|
key: i22,
|
|
@@ -15815,7 +15804,7 @@ const _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
|
|
|
15815
15804
|
}, null, 4)) : vue.createCommentVNode("", true)
|
|
15816
15805
|
]);
|
|
15817
15806
|
}), 128))
|
|
15818
|
-
])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$
|
|
15807
|
+
])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$m, [
|
|
15819
15808
|
vue.createElementVNode("div", {
|
|
15820
15809
|
class: "bar",
|
|
15821
15810
|
style: vue.normalizeStyle({ height: loaded.value ? `${percent(item.value)}%` : "0" })
|
|
@@ -15825,11 +15814,11 @@ const _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
|
|
|
15825
15814
|
class: "bar compare",
|
|
15826
15815
|
style: vue.normalizeStyle({ height: loaded.value ? `${percent(item.compareValue)}%` : "0" })
|
|
15827
15816
|
}, null, 4)) : vue.createCommentVNode("", true),
|
|
15828
|
-
vue.createElementVNode("p", _hoisted_5$
|
|
15817
|
+
vue.createElementVNode("p", _hoisted_5$h, vue.toDisplayString(item.title), 1)
|
|
15829
15818
|
]))
|
|
15830
15819
|
]);
|
|
15831
15820
|
}), 128)),
|
|
15832
|
-
vue.createElementVNode("p", _hoisted_6$
|
|
15821
|
+
vue.createElementVNode("p", _hoisted_6$d, vue.toDisplayString(_ctx.title), 1),
|
|
15833
15822
|
_hoisted_7$8,
|
|
15834
15823
|
vue.createElementVNode("div", _hoisted_8$4, [
|
|
15835
15824
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(marks2.value, (mark) => {
|
|
@@ -15840,7 +15829,7 @@ const _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
|
|
|
15840
15829
|
};
|
|
15841
15830
|
}
|
|
15842
15831
|
});
|
|
15843
|
-
const BarChart = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
15832
|
+
const BarChart = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__scopeId", "data-v-fe5af582"]]);
|
|
15844
15833
|
const explicitKeys = [
|
|
15845
15834
|
"__key",
|
|
15846
15835
|
"__init",
|
|
@@ -17096,8 +17085,8 @@ function createInput(schemaOrComponent, definitionOptions = {}) {
|
|
|
17096
17085
|
}
|
|
17097
17086
|
return definition;
|
|
17098
17087
|
}
|
|
17099
|
-
const _hoisted_1$
|
|
17100
|
-
const _sfc_main$
|
|
17088
|
+
const _hoisted_1$L = { class: "primary-checkbox" };
|
|
17089
|
+
const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
|
|
17101
17090
|
__name: "Checkbox",
|
|
17102
17091
|
props: {
|
|
17103
17092
|
modelValue: Boolean
|
|
@@ -17125,7 +17114,7 @@ const _sfc_main$A = /* @__PURE__ */ vue.defineComponent({
|
|
|
17125
17114
|
}
|
|
17126
17115
|
);
|
|
17127
17116
|
return (_ctx, _cache) => {
|
|
17128
|
-
return vue.openBlock(), vue.createElementBlock("label", _hoisted_1$
|
|
17117
|
+
return vue.openBlock(), vue.createElementBlock("label", _hoisted_1$L, [
|
|
17129
17118
|
vue.withDirectives(vue.createElementVNode("input", {
|
|
17130
17119
|
type: "checkbox",
|
|
17131
17120
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(val) ? val.value = $event : val = $event)
|
|
@@ -17133,24 +17122,24 @@ const _sfc_main$A = /* @__PURE__ */ vue.defineComponent({
|
|
|
17133
17122
|
[vue.vModelCheckbox, vue.unref(val)]
|
|
17134
17123
|
]),
|
|
17135
17124
|
vue.createElementVNode("span", null, [
|
|
17136
|
-
vue.createVNode(vue.unref(_sfc_main$
|
|
17125
|
+
vue.createVNode(vue.unref(_sfc_main$W), { icon: "check" })
|
|
17137
17126
|
])
|
|
17138
17127
|
]);
|
|
17139
17128
|
};
|
|
17140
17129
|
}
|
|
17141
17130
|
});
|
|
17142
|
-
const Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
17143
|
-
const _hoisted_1$
|
|
17144
|
-
const _hoisted_2$
|
|
17145
|
-
const _hoisted_3$
|
|
17131
|
+
const Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-6b168ea9"]]);
|
|
17132
|
+
const _hoisted_1$K = { class: "bagel-input" };
|
|
17133
|
+
const _hoisted_2$E = { class: "mt-1" };
|
|
17134
|
+
const _hoisted_3$A = {
|
|
17146
17135
|
key: 0,
|
|
17147
17136
|
class: "bglform-contact-confirm"
|
|
17148
17137
|
};
|
|
17149
|
-
const _hoisted_4$
|
|
17150
|
-
const _hoisted_5$
|
|
17151
|
-
const _hoisted_6$
|
|
17138
|
+
const _hoisted_4$l = { class: "txt14" };
|
|
17139
|
+
const _hoisted_5$g = ["onUpdate:modelValue", "placeholder"];
|
|
17140
|
+
const _hoisted_6$c = ["onUpdate:modelValue", "placeholder"];
|
|
17152
17141
|
const _hoisted_7$7 = ["onUpdate:modelValue", "placeholder"];
|
|
17153
|
-
const _sfc_main$
|
|
17142
|
+
const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
|
|
17154
17143
|
__name: "ContactArrayFormKit",
|
|
17155
17144
|
props: {
|
|
17156
17145
|
context: {}
|
|
@@ -17203,16 +17192,16 @@ const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
|
|
|
17203
17192
|
}
|
|
17204
17193
|
);
|
|
17205
17194
|
return (_ctx, _cache) => {
|
|
17206
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
17207
|
-
vue.createElementVNode("div", _hoisted_2$
|
|
17195
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$K, [
|
|
17196
|
+
vue.createElementVNode("div", _hoisted_2$E, [
|
|
17208
17197
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(val), (contact, i3) => {
|
|
17209
17198
|
var _a2, _b, _c, _d, _e2, _f;
|
|
17210
17199
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
17211
17200
|
class: "bglform-contact mb-2",
|
|
17212
17201
|
key: i3
|
|
17213
17202
|
}, [
|
|
17214
|
-
vue.unref(deleteCandidate) === i3 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$
|
|
17215
|
-
vue.createElementVNode("p", _hoisted_4$
|
|
17203
|
+
vue.unref(deleteCandidate) === i3 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$A, [
|
|
17204
|
+
vue.createElementVNode("p", _hoisted_4$l, vue.toDisplayString((_a2 = formPlaceholders.value) == null ? void 0 : _a2.sure), 1),
|
|
17216
17205
|
vue.createVNode(vue.unref(Btn), {
|
|
17217
17206
|
thin: "",
|
|
17218
17207
|
color: "red",
|
|
@@ -17248,7 +17237,7 @@ const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
|
|
|
17248
17237
|
"onUpdate:modelValue": ($event) => contact.label = $event,
|
|
17249
17238
|
type: "text",
|
|
17250
17239
|
placeholder: (_b = formPlaceholders.value) == null ? void 0 : _b.label
|
|
17251
|
-
}, null, 8, _hoisted_5$
|
|
17240
|
+
}, null, 8, _hoisted_5$g), [
|
|
17252
17241
|
[vue.vModelText, contact.label]
|
|
17253
17242
|
]),
|
|
17254
17243
|
((_c = _ctx.context) == null ? void 0 : _c.id) === "email" ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("input", {
|
|
@@ -17256,7 +17245,7 @@ const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
|
|
|
17256
17245
|
"onUpdate:modelValue": ($event) => contact.email = $event,
|
|
17257
17246
|
placeholder: (_d = formPlaceholders.value) == null ? void 0 : _d.email,
|
|
17258
17247
|
type: "email"
|
|
17259
|
-
}, null, 8, _hoisted_6$
|
|
17248
|
+
}, null, 8, _hoisted_6$c)), [
|
|
17260
17249
|
[vue.vModelText, contact.email]
|
|
17261
17250
|
]) : vue.createCommentVNode("", true),
|
|
17262
17251
|
((_e2 = _ctx.context) == null ? void 0 : _e2.id) === "phone" ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("input", {
|
|
@@ -17295,23 +17284,23 @@ const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
|
|
|
17295
17284
|
};
|
|
17296
17285
|
}
|
|
17297
17286
|
});
|
|
17298
|
-
const ContactArrayFormKit = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
17299
|
-
const _hoisted_1$
|
|
17300
|
-
const _hoisted_2$
|
|
17301
|
-
const _hoisted_3$
|
|
17287
|
+
const ContactArrayFormKit = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-f93bb259"]]);
|
|
17288
|
+
const _hoisted_1$J = { class: "bagel-input" };
|
|
17289
|
+
const _hoisted_2$D = { class: "mt-1" };
|
|
17290
|
+
const _hoisted_3$z = {
|
|
17302
17291
|
key: 0,
|
|
17303
17292
|
class: "bglform-contact-confirm"
|
|
17304
17293
|
};
|
|
17305
|
-
const _hoisted_4$
|
|
17306
|
-
const _hoisted_5$
|
|
17307
|
-
const _hoisted_6$
|
|
17294
|
+
const _hoisted_4$k = { class: "txt14" };
|
|
17295
|
+
const _hoisted_5$f = ["onUpdate:modelValue", "placeholder"];
|
|
17296
|
+
const _hoisted_6$b = { class: "bglform-contact-address" };
|
|
17308
17297
|
const _hoisted_7$6 = ["onUpdate:modelValue", "placeholder"];
|
|
17309
17298
|
const _hoisted_8$3 = { class: "bglform-contact-address-flex" };
|
|
17310
17299
|
const _hoisted_9$2 = ["onUpdate:modelValue", "placeholder"];
|
|
17311
17300
|
const _hoisted_10$2 = ["onUpdate:modelValue", "placeholder"];
|
|
17312
17301
|
const _hoisted_11$1 = ["onUpdate:modelValue", "placeholder"];
|
|
17313
17302
|
const _hoisted_12$1 = { class: "bglform-address-del" };
|
|
17314
|
-
const _sfc_main$
|
|
17303
|
+
const _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
|
|
17315
17304
|
__name: "AddressArray",
|
|
17316
17305
|
props: {
|
|
17317
17306
|
context: {}
|
|
@@ -17370,16 +17359,16 @@ const _sfc_main$y = /* @__PURE__ */ vue.defineComponent({
|
|
|
17370
17359
|
}
|
|
17371
17360
|
);
|
|
17372
17361
|
return (_ctx, _cache) => {
|
|
17373
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
17374
|
-
vue.createElementVNode("div", _hoisted_2$
|
|
17362
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$J, [
|
|
17363
|
+
vue.createElementVNode("div", _hoisted_2$D, [
|
|
17375
17364
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(val), (address, i3) => {
|
|
17376
17365
|
var _a2, _b, _c, _d, _e2, _f;
|
|
17377
17366
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
17378
17367
|
class: "bglform-contact mb-3",
|
|
17379
17368
|
key: i3
|
|
17380
17369
|
}, [
|
|
17381
|
-
vue.unref(deleteCandidate) === i3 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$
|
|
17382
|
-
vue.createElementVNode("p", _hoisted_4$
|
|
17370
|
+
vue.unref(deleteCandidate) === i3 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$z, [
|
|
17371
|
+
vue.createElementVNode("p", _hoisted_4$k, vue.toDisplayString((_a2 = formPlaceholders.value) == null ? void 0 : _a2.sure), 1),
|
|
17383
17372
|
vue.createVNode(vue.unref(Btn), {
|
|
17384
17373
|
thin: "",
|
|
17385
17374
|
color: "red",
|
|
@@ -17415,10 +17404,10 @@ const _sfc_main$y = /* @__PURE__ */ vue.defineComponent({
|
|
|
17415
17404
|
"onUpdate:modelValue": ($event) => address.label = $event,
|
|
17416
17405
|
type: "text",
|
|
17417
17406
|
placeholder: (_b = formPlaceholders.value) == null ? void 0 : _b.label
|
|
17418
|
-
}, null, 8, _hoisted_5$
|
|
17407
|
+
}, null, 8, _hoisted_5$f), [
|
|
17419
17408
|
[vue.vModelText, address.label]
|
|
17420
17409
|
]),
|
|
17421
|
-
vue.createElementVNode("div", _hoisted_6$
|
|
17410
|
+
vue.createElementVNode("div", _hoisted_6$b, [
|
|
17422
17411
|
vue.withDirectives(vue.createElementVNode("input", {
|
|
17423
17412
|
"onUpdate:modelValue": ($event) => address.street = $event,
|
|
17424
17413
|
placeholder: (_c = formPlaceholders.value) == null ? void 0 : _c.street,
|
|
@@ -17479,16 +17468,16 @@ const _sfc_main$y = /* @__PURE__ */ vue.defineComponent({
|
|
|
17479
17468
|
};
|
|
17480
17469
|
}
|
|
17481
17470
|
});
|
|
17482
|
-
const AddressArray = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
17483
|
-
const _hoisted_1$
|
|
17484
|
-
const _hoisted_2$
|
|
17485
|
-
const _hoisted_3$
|
|
17471
|
+
const AddressArray = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-77d03b04"]]);
|
|
17472
|
+
const _hoisted_1$I = { class: "bagel-input" };
|
|
17473
|
+
const _hoisted_2$C = { class: "mt-1" };
|
|
17474
|
+
const _hoisted_3$y = {
|
|
17486
17475
|
key: 0,
|
|
17487
17476
|
class: "bglform-contact-confirm"
|
|
17488
17477
|
};
|
|
17489
|
-
const _hoisted_4$
|
|
17490
|
-
const _hoisted_5$
|
|
17491
|
-
const _hoisted_6$
|
|
17478
|
+
const _hoisted_4$j = { class: "txt14" };
|
|
17479
|
+
const _hoisted_5$e = ["onUpdate:modelValue", "placeholder"];
|
|
17480
|
+
const _hoisted_6$a = { class: "bglform-contact-address" };
|
|
17492
17481
|
const _hoisted_7$5 = ["onUpdate:modelValue", "placeholder"];
|
|
17493
17482
|
const _hoisted_8$2 = { class: "bglform-contact-address-flex" };
|
|
17494
17483
|
const _hoisted_9$1 = ["onUpdate:modelValue", "placeholder"];
|
|
@@ -17500,7 +17489,7 @@ const _hoisted_14 = ["onUpdate:modelValue"];
|
|
|
17500
17489
|
const _hoisted_15 = ["onUpdate:modelValue"];
|
|
17501
17490
|
const _hoisted_16 = ["onUpdate:modelValue", "placeholder"];
|
|
17502
17491
|
const _hoisted_17 = { class: "bglform-address-del" };
|
|
17503
|
-
const _sfc_main$
|
|
17492
|
+
const _sfc_main$A = /* @__PURE__ */ vue.defineComponent({
|
|
17504
17493
|
__name: "BankDetailsArray",
|
|
17505
17494
|
props: {
|
|
17506
17495
|
context: {}
|
|
@@ -17553,16 +17542,16 @@ const _sfc_main$x = /* @__PURE__ */ vue.defineComponent({
|
|
|
17553
17542
|
}
|
|
17554
17543
|
);
|
|
17555
17544
|
return (_ctx, _cache) => {
|
|
17556
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
17557
|
-
vue.createElementVNode("div", _hoisted_2$
|
|
17545
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$I, [
|
|
17546
|
+
vue.createElementVNode("div", _hoisted_2$C, [
|
|
17558
17547
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(val), (bank_account, i3) => {
|
|
17559
17548
|
var _a2, _b, _c, _d, _e2, _f, _g, _h;
|
|
17560
17549
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
17561
17550
|
class: "bglform-contact mb-3",
|
|
17562
17551
|
key: i3
|
|
17563
17552
|
}, [
|
|
17564
|
-
vue.unref(deleteCandidate) === i3 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$
|
|
17565
|
-
vue.createElementVNode("p", _hoisted_4$
|
|
17553
|
+
vue.unref(deleteCandidate) === i3 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$y, [
|
|
17554
|
+
vue.createElementVNode("p", _hoisted_4$j, vue.toDisplayString((_a2 = formPlaceholders.value) == null ? void 0 : _a2.sure), 1),
|
|
17566
17555
|
vue.createVNode(vue.unref(Btn), {
|
|
17567
17556
|
thin: "",
|
|
17568
17557
|
color: "red",
|
|
@@ -17598,10 +17587,10 @@ const _sfc_main$x = /* @__PURE__ */ vue.defineComponent({
|
|
|
17598
17587
|
"onUpdate:modelValue": ($event) => bank_account.label = $event,
|
|
17599
17588
|
type: "text",
|
|
17600
17589
|
placeholder: (_b = formPlaceholders.value) == null ? void 0 : _b.label
|
|
17601
|
-
}, null, 8, _hoisted_5$
|
|
17590
|
+
}, null, 8, _hoisted_5$e), [
|
|
17602
17591
|
[vue.vModelText, bank_account.label]
|
|
17603
17592
|
]),
|
|
17604
|
-
vue.createElementVNode("div", _hoisted_6$
|
|
17593
|
+
vue.createElementVNode("div", _hoisted_6$a, [
|
|
17605
17594
|
vue.withDirectives(vue.createElementVNode("input", {
|
|
17606
17595
|
"onUpdate:modelValue": ($event) => bank_account.bank_name = $event,
|
|
17607
17596
|
placeholder: (_c = formPlaceholders.value) == null ? void 0 : _c.bankName,
|
|
@@ -17696,9 +17685,9 @@ const _sfc_main$x = /* @__PURE__ */ vue.defineComponent({
|
|
|
17696
17685
|
};
|
|
17697
17686
|
}
|
|
17698
17687
|
});
|
|
17699
|
-
const BankDetailsArray = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
17700
|
-
const _hoisted_1$
|
|
17701
|
-
const _sfc_main$
|
|
17688
|
+
const BankDetailsArray = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-a0d366d4"]]);
|
|
17689
|
+
const _hoisted_1$H = { class: "misc-wrap" };
|
|
17690
|
+
const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
|
|
17702
17691
|
__name: "MiscFields",
|
|
17703
17692
|
props: {
|
|
17704
17693
|
context: {},
|
|
@@ -17715,7 +17704,7 @@ const _sfc_main$w = /* @__PURE__ */ vue.defineComponent({
|
|
|
17715
17704
|
console.log(fields.value);
|
|
17716
17705
|
};
|
|
17717
17706
|
return (_ctx, _cache) => {
|
|
17718
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
17707
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$H, [
|
|
17719
17708
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(fields.value.filter(
|
|
17720
17709
|
(field) => {
|
|
17721
17710
|
var _a2;
|
|
@@ -17743,13 +17732,13 @@ const _sfc_main$w = /* @__PURE__ */ vue.defineComponent({
|
|
|
17743
17732
|
};
|
|
17744
17733
|
}
|
|
17745
17734
|
});
|
|
17746
|
-
const MiscFieldsBtns = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
17735
|
+
const MiscFieldsBtns = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-a096417d"]]);
|
|
17747
17736
|
const _withScopeId$1 = (n) => (vue.pushScopeId("data-v-d0543d4b"), n = n(), vue.popScopeId(), n);
|
|
17748
|
-
const _hoisted_1$
|
|
17749
|
-
const _hoisted_2$
|
|
17750
|
-
const _hoisted_3$
|
|
17751
|
-
const _hoisted_4$
|
|
17752
|
-
const _sfc_main$
|
|
17737
|
+
const _hoisted_1$G = ["title"];
|
|
17738
|
+
const _hoisted_2$B = { class: "switch" };
|
|
17739
|
+
const _hoisted_3$x = ["id"];
|
|
17740
|
+
const _hoisted_4$i = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ vue.createElementVNode("span", { class: "slider round" }, null, -1));
|
|
17741
|
+
const _sfc_main$y = /* @__PURE__ */ vue.defineComponent({
|
|
17753
17742
|
__name: "Toggle",
|
|
17754
17743
|
props: {
|
|
17755
17744
|
context: Object
|
|
@@ -17773,7 +17762,7 @@ const _sfc_main$v = /* @__PURE__ */ vue.defineComponent({
|
|
|
17773
17762
|
class: vue.normalizeClass(["bagel-input checkbox", { check: (_a2 = __props.context) == null ? void 0 : _a2.attrs.isCheckbox }]),
|
|
17774
17763
|
title: (_b = __props.context) == null ? void 0 : _b.help
|
|
17775
17764
|
}, [
|
|
17776
|
-
vue.createElementVNode("label", _hoisted_2$
|
|
17765
|
+
vue.createElementVNode("label", _hoisted_2$B, [
|
|
17777
17766
|
vue.withDirectives(vue.createElementVNode("input", {
|
|
17778
17767
|
onChange: _cache[0] || (_cache[0] = () => {
|
|
17779
17768
|
var _a3;
|
|
@@ -17782,31 +17771,31 @@ const _sfc_main$v = /* @__PURE__ */ vue.defineComponent({
|
|
|
17782
17771
|
type: "checkbox",
|
|
17783
17772
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => vue.isRef(inputVal) ? inputVal.value = $event : inputVal = $event),
|
|
17784
17773
|
id: (_c = __props.context) == null ? void 0 : _c.id
|
|
17785
|
-
}, null, 40, _hoisted_3$
|
|
17774
|
+
}, null, 40, _hoisted_3$x), [
|
|
17786
17775
|
[vue.vModelCheckbox, vue.unref(inputVal)]
|
|
17787
17776
|
]),
|
|
17788
|
-
_hoisted_4$
|
|
17777
|
+
_hoisted_4$i
|
|
17789
17778
|
])
|
|
17790
|
-
], 10, _hoisted_1$
|
|
17779
|
+
], 10, _hoisted_1$G);
|
|
17791
17780
|
};
|
|
17792
17781
|
}
|
|
17793
17782
|
});
|
|
17794
|
-
const Toggle = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
17795
|
-
const _hoisted_1$
|
|
17796
|
-
const _hoisted_2$
|
|
17783
|
+
const Toggle = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-d0543d4b"]]);
|
|
17784
|
+
const _hoisted_1$F = { class: "files-wrapper flex" };
|
|
17785
|
+
const _hoisted_2$A = {
|
|
17797
17786
|
key: 0,
|
|
17798
17787
|
class: "img-label"
|
|
17799
17788
|
};
|
|
17800
|
-
const _hoisted_3$
|
|
17801
|
-
const _hoisted_4$
|
|
17802
|
-
const _hoisted_5$
|
|
17803
|
-
const _hoisted_6$
|
|
17789
|
+
const _hoisted_3$w = { class: "uploading-wrap" };
|
|
17790
|
+
const _hoisted_4$h = { class: "load-file-bar" };
|
|
17791
|
+
const _hoisted_5$d = ["src", "alt"];
|
|
17792
|
+
const _hoisted_6$9 = { class: "flex" };
|
|
17804
17793
|
const _hoisted_7$4 = {
|
|
17805
17794
|
key: 0,
|
|
17806
17795
|
class: "progress"
|
|
17807
17796
|
};
|
|
17808
17797
|
const _hoisted_8$1 = ["multiple"];
|
|
17809
|
-
const _sfc_main$
|
|
17798
|
+
const _sfc_main$x = /* @__PURE__ */ vue.defineComponent({
|
|
17810
17799
|
__name: "FileUploader",
|
|
17811
17800
|
props: {
|
|
17812
17801
|
context: {},
|
|
@@ -17944,7 +17933,7 @@ const _sfc_main$u = /* @__PURE__ */ vue.defineComponent({
|
|
|
17944
17933
|
void addFiles(filesToAdd);
|
|
17945
17934
|
}
|
|
17946
17935
|
return (_ctx, _cache) => {
|
|
17947
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
17936
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$F, [
|
|
17948
17937
|
vue.createElementVNode("div", {
|
|
17949
17938
|
ref_key: "dropZoneEl",
|
|
17950
17939
|
ref: dropZoneEl,
|
|
@@ -17964,34 +17953,34 @@ const _sfc_main$u = /* @__PURE__ */ vue.defineComponent({
|
|
|
17964
17953
|
]),
|
|
17965
17954
|
_: 1
|
|
17966
17955
|
}),
|
|
17967
|
-
allowUpload.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$
|
|
17956
|
+
allowUpload.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$A, [
|
|
17968
17957
|
vue.createElementVNode("p", null, [
|
|
17969
17958
|
vue.createTextVNode(vue.toDisplayString(computedDragDropLabel.value) + " ", 1),
|
|
17970
17959
|
vue.createElementVNode("span", null, vue.toDisplayString(computedDrowseLabel.value), 1)
|
|
17971
17960
|
])
|
|
17972
17961
|
])) : vue.createCommentVNode("", true),
|
|
17973
|
-
vue.createElementVNode("div", _hoisted_3$
|
|
17962
|
+
vue.createElementVNode("div", _hoisted_3$w, [
|
|
17974
17963
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(files.value, (item, index2) => {
|
|
17975
17964
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
17976
17965
|
class: vue.normalizeClass({ uploading: item.uploading }),
|
|
17977
17966
|
key: index2
|
|
17978
17967
|
}, [
|
|
17979
|
-
vue.createElementVNode("div", _hoisted_4$
|
|
17968
|
+
vue.createElementVNode("div", _hoisted_4$h, [
|
|
17980
17969
|
isImg(item) ? (vue.openBlock(), vue.createElementBlock("img", {
|
|
17981
17970
|
key: 0,
|
|
17982
17971
|
width: "40",
|
|
17983
17972
|
src: item.dataUrl,
|
|
17984
17973
|
alt: item.name,
|
|
17985
17974
|
style: { "margin-inline-end": "10px" }
|
|
17986
|
-
}, null, 8, _hoisted_5$
|
|
17975
|
+
}, null, 8, _hoisted_5$d)) : vue.createCommentVNode("", true),
|
|
17987
17976
|
vue.createElementVNode("p", null, vue.toDisplayString(item.name), 1),
|
|
17988
|
-
vue.createElementVNode("div", _hoisted_6$
|
|
17977
|
+
vue.createElementVNode("div", _hoisted_6$9, [
|
|
17989
17978
|
vue.createElementVNode("div", {
|
|
17990
17979
|
class: vue.normalizeClass(["pie", { complete: item.progress === 100 }]),
|
|
17991
17980
|
style: vue.normalizeStyle([`--p:${item.progress}`, { "--b": "2px" }])
|
|
17992
17981
|
}, [
|
|
17993
17982
|
item.progress < 100 ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_7$4, vue.toDisplayString(`${item.progress.toFixed(0)}`), 1)) : vue.createCommentVNode("", true),
|
|
17994
|
-
vue.createVNode(vue.unref(_sfc_main$
|
|
17983
|
+
vue.createVNode(vue.unref(_sfc_main$W), {
|
|
17995
17984
|
class: "success",
|
|
17996
17985
|
icon: "check"
|
|
17997
17986
|
})
|
|
@@ -18021,15 +18010,15 @@ const _sfc_main$u = /* @__PURE__ */ vue.defineComponent({
|
|
|
18021
18010
|
};
|
|
18022
18011
|
}
|
|
18023
18012
|
});
|
|
18024
|
-
const _hoisted_1$
|
|
18013
|
+
const _hoisted_1$E = {
|
|
18025
18014
|
key: 0,
|
|
18026
18015
|
class: "person-card-edit flex gap-2"
|
|
18027
18016
|
};
|
|
18028
|
-
const _hoisted_2$
|
|
18029
|
-
const _hoisted_3$
|
|
18030
|
-
const _hoisted_4$
|
|
18031
|
-
const _hoisted_5$
|
|
18032
|
-
const _hoisted_6$
|
|
18017
|
+
const _hoisted_2$z = { class: "person-card-icon-wrap" };
|
|
18018
|
+
const _hoisted_3$v = { class: "person-card-icon" };
|
|
18019
|
+
const _hoisted_4$g = { class: "person-card-name txt20" };
|
|
18020
|
+
const _hoisted_5$c = { class: "person-card-details-wrap" };
|
|
18021
|
+
const _hoisted_6$8 = {
|
|
18033
18022
|
key: 0,
|
|
18034
18023
|
class: "person-card-details"
|
|
18035
18024
|
};
|
|
@@ -18043,7 +18032,7 @@ const _hoisted_8 = {
|
|
|
18043
18032
|
};
|
|
18044
18033
|
const _hoisted_9 = { key: 0 };
|
|
18045
18034
|
const _hoisted_10 = { key: 1 };
|
|
18046
|
-
const _sfc_main$
|
|
18035
|
+
const _sfc_main$w = /* @__PURE__ */ vue.defineComponent({
|
|
18047
18036
|
__name: "PersonPreviewFormkit",
|
|
18048
18037
|
props: {
|
|
18049
18038
|
context: {},
|
|
@@ -18074,7 +18063,7 @@ const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
|
|
|
18074
18063
|
(...args) => _ctx.onClick && _ctx.onClick(...args)),
|
|
18075
18064
|
class: "person-card"
|
|
18076
18065
|
}, [
|
|
18077
|
-
!_ctx.onClick ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
18066
|
+
!_ctx.onClick ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$E, [
|
|
18078
18067
|
!_ctx.$route.path.match("/search") ? (vue.openBlock(), vue.createBlock(vue.unref(Btn), {
|
|
18079
18068
|
key: 0,
|
|
18080
18069
|
onClick: vue.unref(hideModal),
|
|
@@ -18092,13 +18081,13 @@ const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
|
|
|
18092
18081
|
icon: "edit"
|
|
18093
18082
|
})
|
|
18094
18083
|
])) : vue.createCommentVNode("", true),
|
|
18095
|
-
vue.createElementVNode("div", _hoisted_2$
|
|
18096
|
-
vue.createElementVNode("p", _hoisted_3$
|
|
18097
|
-
vue.createElementVNode("p", _hoisted_4$
|
|
18084
|
+
vue.createElementVNode("div", _hoisted_2$z, [
|
|
18085
|
+
vue.createElementVNode("p", _hoisted_3$v, vue.toDisplayString(vue.unref(initials)(person.value.first_name, person.value.last_name)), 1),
|
|
18086
|
+
vue.createElementVNode("p", _hoisted_4$g, vue.toDisplayString(person.value.first_name) + " " + vue.toDisplayString(person.value.last_name), 1)
|
|
18098
18087
|
]),
|
|
18099
|
-
vue.createElementVNode("div", _hoisted_5$
|
|
18100
|
-
((_a2 = person.value.phone) == null ? void 0 : _a2.length) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6$
|
|
18101
|
-
vue.createVNode(vue.unref(_sfc_main$
|
|
18088
|
+
vue.createElementVNode("div", _hoisted_5$c, [
|
|
18089
|
+
((_a2 = person.value.phone) == null ? void 0 : _a2.length) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6$8, [
|
|
18090
|
+
vue.createVNode(vue.unref(_sfc_main$W), { icon: "phone" }),
|
|
18102
18091
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(person.value.phone, (phone) => {
|
|
18103
18092
|
return vue.openBlock(), vue.createElementBlock("p", {
|
|
18104
18093
|
key: phone.id
|
|
@@ -18106,7 +18095,7 @@ const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
|
|
|
18106
18095
|
}), 128))
|
|
18107
18096
|
])) : vue.createCommentVNode("", true),
|
|
18108
18097
|
((_b = person.value.email) == null ? void 0 : _b.length) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_7$3, [
|
|
18109
|
-
vue.createVNode(vue.unref(_sfc_main$
|
|
18098
|
+
vue.createVNode(vue.unref(_sfc_main$W), { icon: "email" }),
|
|
18110
18099
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(person.value.email, (email) => {
|
|
18111
18100
|
return vue.openBlock(), vue.createElementBlock("p", {
|
|
18112
18101
|
key: email.id
|
|
@@ -18114,7 +18103,7 @@ const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
|
|
|
18114
18103
|
}), 128))
|
|
18115
18104
|
])) : vue.createCommentVNode("", true),
|
|
18116
18105
|
person.value.date_of_birth || person.value.gender ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_8, [
|
|
18117
|
-
vue.createVNode(vue.unref(_sfc_main$
|
|
18106
|
+
vue.createVNode(vue.unref(_sfc_main$W), { icon: "badge" }),
|
|
18118
18107
|
person.value.date_of_birth ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_9, vue.toDisplayString(person.value.date_of_birth), 1)) : vue.createCommentVNode("", true),
|
|
18119
18108
|
person.value.gender ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_10, vue.toDisplayString(person.value.gender), 1)) : vue.createCommentVNode("", true)
|
|
18120
18109
|
])) : vue.createCommentVNode("", true)
|
|
@@ -18123,7 +18112,7 @@ const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
|
|
|
18123
18112
|
};
|
|
18124
18113
|
}
|
|
18125
18114
|
});
|
|
18126
|
-
const _sfc_main$
|
|
18115
|
+
const _sfc_main$v = /* @__PURE__ */ vue.defineComponent({
|
|
18127
18116
|
__name: "TextVariableExamples",
|
|
18128
18117
|
props: {
|
|
18129
18118
|
context: Object
|
|
@@ -18215,14 +18204,14 @@ const AddressInput = createInput(AddressArray);
|
|
|
18215
18204
|
const BankDetailsInput = createInput(BankDetailsArray);
|
|
18216
18205
|
const MiscFieldsInput = createInput(MiscFieldsBtns);
|
|
18217
18206
|
const ToggleSwitchInput = createInput(Toggle);
|
|
18218
|
-
const FileUploadInput = createInput(_sfc_main$
|
|
18219
|
-
const TextVariablesInput = createInput(_sfc_main$
|
|
18220
|
-
const PersonPreviewInput = createInput(_sfc_main$
|
|
18221
|
-
const _hoisted_1$
|
|
18207
|
+
const FileUploadInput = createInput(_sfc_main$x);
|
|
18208
|
+
const TextVariablesInput = createInput(_sfc_main$v);
|
|
18209
|
+
const PersonPreviewInput = createInput(_sfc_main$w);
|
|
18210
|
+
const _hoisted_1$D = {
|
|
18222
18211
|
key: 1,
|
|
18223
18212
|
class: "pill"
|
|
18224
18213
|
};
|
|
18225
|
-
const _sfc_main$
|
|
18214
|
+
const _sfc_main$u = /* @__PURE__ */ vue.defineComponent({
|
|
18226
18215
|
__name: "ItemRef",
|
|
18227
18216
|
props: {
|
|
18228
18217
|
modelValue: {},
|
|
@@ -18256,15 +18245,15 @@ const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
|
|
|
18256
18245
|
}, {
|
|
18257
18246
|
default: vue.withCtx(() => [
|
|
18258
18247
|
vue.createTextVNode(vue.toDisplayString(content.value) + " ", 1),
|
|
18259
|
-
vue.createVNode(vue.unref(_sfc_main$
|
|
18248
|
+
vue.createVNode(vue.unref(_sfc_main$W), { icon: "arrow_forward" })
|
|
18260
18249
|
]),
|
|
18261
18250
|
_: 1
|
|
18262
|
-
})) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_1$
|
|
18251
|
+
})) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_1$D, vue.toDisplayString(content.value), 1))
|
|
18263
18252
|
]);
|
|
18264
18253
|
};
|
|
18265
18254
|
}
|
|
18266
18255
|
});
|
|
18267
|
-
const _sfc_main$
|
|
18256
|
+
const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
|
|
18268
18257
|
__name: "MaterialIcon",
|
|
18269
18258
|
props: {
|
|
18270
18259
|
icon: {},
|
|
@@ -18279,13 +18268,13 @@ const _sfc_main$q = /* @__PURE__ */ vue.defineComponent({
|
|
|
18279
18268
|
};
|
|
18280
18269
|
}
|
|
18281
18270
|
});
|
|
18282
|
-
const _hoisted_1$
|
|
18283
|
-
const _hoisted_2$
|
|
18284
|
-
const _hoisted_3$
|
|
18285
|
-
const _hoisted_4$
|
|
18286
|
-
const _hoisted_5$
|
|
18287
|
-
const _hoisted_6$
|
|
18288
|
-
const _sfc_main$
|
|
18271
|
+
const _hoisted_1$C = { class: "bagel-input" };
|
|
18272
|
+
const _hoisted_2$y = ["for"];
|
|
18273
|
+
const _hoisted_3$u = ["checked"];
|
|
18274
|
+
const _hoisted_4$f = ["name", "type", "value"];
|
|
18275
|
+
const _hoisted_5$b = ["name", "type", "value"];
|
|
18276
|
+
const _hoisted_6$7 = ["name", "type", "value"];
|
|
18277
|
+
const _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
|
|
18289
18278
|
__name: "PlainInputField",
|
|
18290
18279
|
props: {
|
|
18291
18280
|
type: {},
|
|
@@ -18315,14 +18304,14 @@ const _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
|
|
|
18315
18304
|
}
|
|
18316
18305
|
});
|
|
18317
18306
|
return (_ctx, _cache) => {
|
|
18318
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
18307
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$C, [
|
|
18319
18308
|
vue.createElementVNode("label", {
|
|
18320
18309
|
for: vue.unref(formatString)(_ctx.name, "pascal")
|
|
18321
18310
|
}, [
|
|
18322
|
-
vue.createVNode(_sfc_main$
|
|
18311
|
+
vue.createVNode(_sfc_main$Y, {
|
|
18323
18312
|
input: vue.unref(formatString)(_ctx.name, "titleCase")
|
|
18324
18313
|
}, null, 8, ["input"])
|
|
18325
|
-
], 8, _hoisted_2$
|
|
18314
|
+
], 8, _hoisted_2$y),
|
|
18326
18315
|
_ctx.type === "checkbox" ? (vue.openBlock(), vue.createElementBlock("input", {
|
|
18327
18316
|
key: 0,
|
|
18328
18317
|
ref_key: "el",
|
|
@@ -18331,7 +18320,7 @@ const _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
|
|
|
18331
18320
|
class: "ctl",
|
|
18332
18321
|
type: "checkbox",
|
|
18333
18322
|
onChange: handleCheck
|
|
18334
|
-
}, null, 40, _hoisted_3$
|
|
18323
|
+
}, null, 40, _hoisted_3$u)) : _ctx.type === "number" ? (vue.openBlock(), vue.createElementBlock("input", {
|
|
18335
18324
|
key: 1,
|
|
18336
18325
|
ref_key: "el",
|
|
18337
18326
|
ref: el2,
|
|
@@ -18340,7 +18329,7 @@ const _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
|
|
|
18340
18329
|
value: _ctx.modelValue,
|
|
18341
18330
|
class: "ctl",
|
|
18342
18331
|
onInput: handleInput
|
|
18343
|
-
}, null, 40, _hoisted_4$
|
|
18332
|
+
}, null, 40, _hoisted_4$f)) : _ctx.type === "text" ? (vue.openBlock(), vue.createElementBlock("input", {
|
|
18344
18333
|
key: 2,
|
|
18345
18334
|
ref_key: "el",
|
|
18346
18335
|
ref: el2,
|
|
@@ -18349,7 +18338,7 @@ const _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
|
|
|
18349
18338
|
value: _ctx.modelValue,
|
|
18350
18339
|
class: "ctl",
|
|
18351
18340
|
onInput: handleInput
|
|
18352
|
-
}, null, 40, _hoisted_5$
|
|
18341
|
+
}, null, 40, _hoisted_5$b)) : _ctx.type === "textarea" ? (vue.openBlock(), vue.createElementBlock("textarea", {
|
|
18353
18342
|
key: 3,
|
|
18354
18343
|
ref_key: "el",
|
|
18355
18344
|
ref: el2,
|
|
@@ -18358,21 +18347,141 @@ const _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
|
|
|
18358
18347
|
value: _ctx.modelValue,
|
|
18359
18348
|
class: "ctl",
|
|
18360
18349
|
onInput: handleInput
|
|
18361
|
-
}, null, 40, _hoisted_6$
|
|
18350
|
+
}, null, 40, _hoisted_6$7)) : vue.createCommentVNode("", true),
|
|
18362
18351
|
vue.createElementVNode("div", null, [
|
|
18363
|
-
vue.createVNode(_sfc_main$
|
|
18352
|
+
vue.createVNode(_sfc_main$Y, { input: _ctx.errorMessage }, null, 8, ["input"])
|
|
18364
18353
|
])
|
|
18365
18354
|
]);
|
|
18366
18355
|
};
|
|
18367
18356
|
}
|
|
18368
18357
|
});
|
|
18358
|
+
const _hoisted_1$B = { key: 2 };
|
|
18359
|
+
const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
|
|
18360
|
+
__name: "BglForm",
|
|
18361
|
+
props: {
|
|
18362
|
+
modelValue: {},
|
|
18363
|
+
schema: {},
|
|
18364
|
+
onDelete: { type: Function },
|
|
18365
|
+
onSubmit: { type: Function }
|
|
18366
|
+
},
|
|
18367
|
+
emits: ["update:modelValue", "submit"],
|
|
18368
|
+
setup(__props, { emit: __emit }) {
|
|
18369
|
+
const { showModal } = useModal();
|
|
18370
|
+
const props2 = __props;
|
|
18371
|
+
const emits = __emit;
|
|
18372
|
+
const handleEmit = (val) => emits("update:modelValue", val);
|
|
18373
|
+
let data2 = vue.ref({
|
|
18374
|
+
...props2.modelValue
|
|
18375
|
+
});
|
|
18376
|
+
const runSubmit = () => {
|
|
18377
|
+
emits("submit", data2.value);
|
|
18378
|
+
clearForm();
|
|
18379
|
+
};
|
|
18380
|
+
const clearForm = () => data2.value = {};
|
|
18381
|
+
const i18nT = (val) => val;
|
|
18382
|
+
vue.watch(
|
|
18383
|
+
() => data2.value,
|
|
18384
|
+
() => handleEmit,
|
|
18385
|
+
{ immediate: true }
|
|
18386
|
+
);
|
|
18387
|
+
const runDelete = () => {
|
|
18388
|
+
showModal(
|
|
18389
|
+
{
|
|
18390
|
+
class: "small-modal",
|
|
18391
|
+
title: i18nT("Are you sure?"),
|
|
18392
|
+
actions: [
|
|
18393
|
+
{
|
|
18394
|
+
value: "Confirm",
|
|
18395
|
+
color: "red",
|
|
18396
|
+
onClick: () => {
|
|
18397
|
+
var _a2;
|
|
18398
|
+
return (_a2 = props2.onDelete) == null ? void 0 : _a2.call(props2, data2.value.id);
|
|
18399
|
+
}
|
|
18400
|
+
},
|
|
18401
|
+
{ value: "Cancel", color: "gray" }
|
|
18402
|
+
]
|
|
18403
|
+
},
|
|
18404
|
+
{ default: i18nT("form.deleteMessage") }
|
|
18405
|
+
);
|
|
18406
|
+
};
|
|
18407
|
+
return (_ctx, _cache) => {
|
|
18408
|
+
var _a2;
|
|
18409
|
+
return vue.openBlock(), vue.createElementBlock("form", {
|
|
18410
|
+
onSubmit: vue.withModifiers(runSubmit, ["prevent"])
|
|
18411
|
+
}, [
|
|
18412
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.schema, (field, i3) => {
|
|
18413
|
+
return vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$q), {
|
|
18414
|
+
key: field.id || `${i3}p`,
|
|
18415
|
+
field,
|
|
18416
|
+
modelValue: vue.unref(data2),
|
|
18417
|
+
"onUpdate:modelValue": ($event) => field.id ? vue.unref(data2)[field.id] = $event : ""
|
|
18418
|
+
}, null, 8, ["field", "modelValue", "onUpdate:modelValue"]);
|
|
18419
|
+
}), 128)),
|
|
18420
|
+
((_a2 = _ctx.modelValue) == null ? void 0 : _a2.id) && _ctx.onDelete ? (vue.openBlock(), vue.createBlock(vue.unref(Btn), {
|
|
18421
|
+
key: 0,
|
|
18422
|
+
class: "del-top",
|
|
18423
|
+
onClick: runDelete,
|
|
18424
|
+
value: "Delete",
|
|
18425
|
+
flat: "",
|
|
18426
|
+
icon: "delete",
|
|
18427
|
+
color: "red",
|
|
18428
|
+
thin: ""
|
|
18429
|
+
})) : vue.createCommentVNode("", true),
|
|
18430
|
+
!_ctx.$slots.submit && _ctx.onSubmit ? (vue.openBlock(), vue.createBlock(vue.unref(Btn), {
|
|
18431
|
+
key: 1,
|
|
18432
|
+
value: "Submit",
|
|
18433
|
+
type: "submit",
|
|
18434
|
+
thin: ""
|
|
18435
|
+
})) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$B, [
|
|
18436
|
+
vue.renderSlot(_ctx.$slots, "submit")
|
|
18437
|
+
]))
|
|
18438
|
+
], 32);
|
|
18439
|
+
};
|
|
18440
|
+
}
|
|
18441
|
+
});
|
|
18442
|
+
const _sfc_main$q = /* @__PURE__ */ vue.defineComponent({
|
|
18443
|
+
__name: "BglField",
|
|
18444
|
+
props: {
|
|
18445
|
+
modelValue: {},
|
|
18446
|
+
field: {}
|
|
18447
|
+
},
|
|
18448
|
+
emits: ["update:modelValue"],
|
|
18449
|
+
setup(__props, { emit: __emit }) {
|
|
18450
|
+
const props2 = __props;
|
|
18451
|
+
const emits = __emit;
|
|
18452
|
+
return (_ctx, _cache) => {
|
|
18453
|
+
var _a2;
|
|
18454
|
+
const _component_BglField = vue.resolveComponent("BglField", true);
|
|
18455
|
+
return vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.field.$el || "div"), vue.mergeProps({
|
|
18456
|
+
required: _ctx.field.required
|
|
18457
|
+
}, vue.unref(bindAttrs)(((_a2 = _ctx.field) == null ? void 0 : _a2.attrs) || {}, props2.modelValue[_ctx.field.id || ""], props2.modelValue), {
|
|
18458
|
+
label: _ctx.field.label,
|
|
18459
|
+
placeholder: _ctx.field.placeholder || _ctx.field.label,
|
|
18460
|
+
modelValue: props2.modelValue[_ctx.field.id || ""],
|
|
18461
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => emits("update:modelValue", $event))
|
|
18462
|
+
}), {
|
|
18463
|
+
default: vue.withCtx(() => [
|
|
18464
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.field.children, (child, ii) => {
|
|
18465
|
+
return vue.openBlock(), vue.createBlock(_component_BglField, {
|
|
18466
|
+
modelValue: _ctx.modelValue,
|
|
18467
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emits("update:modelValue", $event)),
|
|
18468
|
+
key: child.id || ii,
|
|
18469
|
+
field: child
|
|
18470
|
+
}, null, 8, ["modelValue", "field"]);
|
|
18471
|
+
}), 128))
|
|
18472
|
+
]),
|
|
18473
|
+
_: 1
|
|
18474
|
+
}, 16, ["required", "label", "placeholder", "modelValue"]);
|
|
18475
|
+
};
|
|
18476
|
+
}
|
|
18477
|
+
});
|
|
18369
18478
|
const _withScopeId = (n) => (vue.pushScopeId("data-v-0dacba34"), n = n(), vue.popScopeId(), n);
|
|
18370
|
-
const _hoisted_1$
|
|
18371
|
-
const _hoisted_2$
|
|
18372
|
-
const _hoisted_3$
|
|
18373
|
-
const _hoisted_4$
|
|
18374
|
-
const _hoisted_5$
|
|
18375
|
-
const _sfc_main$
|
|
18479
|
+
const _hoisted_1$A = ["title"];
|
|
18480
|
+
const _hoisted_2$x = ["for"];
|
|
18481
|
+
const _hoisted_3$t = { class: "switch" };
|
|
18482
|
+
const _hoisted_4$e = ["id"];
|
|
18483
|
+
const _hoisted_5$a = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ vue.createElementVNode("span", { class: "slider round" }, null, -1));
|
|
18484
|
+
const _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
|
|
18376
18485
|
__name: "CheckInput",
|
|
18377
18486
|
props: {
|
|
18378
18487
|
field: {},
|
|
@@ -18405,29 +18514,29 @@ const _sfc_main$o = /* @__PURE__ */ vue.defineComponent({
|
|
|
18405
18514
|
}, [
|
|
18406
18515
|
vue.createElementVNode("label", {
|
|
18407
18516
|
for: _ctx.field.id
|
|
18408
|
-
}, vue.toDisplayString(_ctx.field.label), 9, _hoisted_2$
|
|
18409
|
-
vue.createElementVNode("label", _hoisted_3$
|
|
18517
|
+
}, vue.toDisplayString(_ctx.field.label), 9, _hoisted_2$x),
|
|
18518
|
+
vue.createElementVNode("label", _hoisted_3$t, [
|
|
18410
18519
|
vue.withDirectives(vue.createElementVNode("input", {
|
|
18411
18520
|
id: _ctx.field.id,
|
|
18412
18521
|
type: "checkbox",
|
|
18413
18522
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputVal.value = $event),
|
|
18414
18523
|
class: vue.normalizeClass({ "no-edit": !_ctx.editMode })
|
|
18415
|
-
}, null, 10, _hoisted_4$
|
|
18524
|
+
}, null, 10, _hoisted_4$e), [
|
|
18416
18525
|
[vue.vModelCheckbox, inputVal.value]
|
|
18417
18526
|
]),
|
|
18418
|
-
_hoisted_5$
|
|
18527
|
+
_hoisted_5$a
|
|
18419
18528
|
])
|
|
18420
|
-
], 10, _hoisted_1$
|
|
18529
|
+
], 10, _hoisted_1$A);
|
|
18421
18530
|
};
|
|
18422
18531
|
}
|
|
18423
18532
|
});
|
|
18424
|
-
const CheckInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
18425
|
-
const _hoisted_1$
|
|
18426
|
-
const _hoisted_2$
|
|
18427
|
-
const _hoisted_3$
|
|
18428
|
-
const _hoisted_4$
|
|
18429
|
-
const _hoisted_5$
|
|
18430
|
-
const _sfc_main$
|
|
18533
|
+
const CheckInput = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-0dacba34"]]);
|
|
18534
|
+
const _hoisted_1$z = ["title"];
|
|
18535
|
+
const _hoisted_2$w = { key: 0 };
|
|
18536
|
+
const _hoisted_3$s = { class: "flex gap-3" };
|
|
18537
|
+
const _hoisted_4$d = ["value", "placeholder"];
|
|
18538
|
+
const _hoisted_5$9 = { class: "currency" };
|
|
18539
|
+
const _sfc_main$o = /* @__PURE__ */ vue.defineComponent({
|
|
18431
18540
|
__name: "CurrencyInput",
|
|
18432
18541
|
props: {
|
|
18433
18542
|
field: {},
|
|
@@ -18528,26 +18637,26 @@ const _sfc_main$n = /* @__PURE__ */ vue.defineComponent({
|
|
|
18528
18637
|
class: vue.normalizeClass(["bagel-input", { small: _ctx.small }]),
|
|
18529
18638
|
title: _ctx.field.description
|
|
18530
18639
|
}, [
|
|
18531
|
-
_ctx.field.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_2$
|
|
18532
|
-
vue.createElementVNode("div", _hoisted_3$
|
|
18640
|
+
_ctx.field.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_2$w, vue.toDisplayString(_ctx.field.label), 1)) : vue.createCommentVNode("", true),
|
|
18641
|
+
vue.createElementVNode("div", _hoisted_3$s, [
|
|
18533
18642
|
vue.createElementVNode("input", {
|
|
18534
18643
|
value: _ctx.modelValue,
|
|
18535
18644
|
type: "number",
|
|
18536
18645
|
onInput: handleInput,
|
|
18537
18646
|
placeholder: _ctx.placeholder,
|
|
18538
18647
|
class: vue.normalizeClass({ "no-edit": !_ctx.editMode })
|
|
18539
|
-
}, null, 42, _hoisted_4$
|
|
18540
|
-
vue.createElementVNode("p", _hoisted_5$
|
|
18648
|
+
}, null, 42, _hoisted_4$d),
|
|
18649
|
+
vue.createElementVNode("p", _hoisted_5$9, vue.toDisplayString(((_a2 = currencies.find((c2) => c2.symbol === _ctx.field.currency)) == null ? void 0 : _a2.character) || _ctx.field.currency), 1)
|
|
18541
18650
|
])
|
|
18542
|
-
], 10, _hoisted_1$
|
|
18651
|
+
], 10, _hoisted_1$z);
|
|
18543
18652
|
};
|
|
18544
18653
|
}
|
|
18545
18654
|
});
|
|
18546
|
-
const CurrencyInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
18547
|
-
const _hoisted_1$
|
|
18548
|
-
const _hoisted_2$
|
|
18549
|
-
const _hoisted_3$
|
|
18550
|
-
const _sfc_main$
|
|
18655
|
+
const CurrencyInput = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-17a56a3f"]]);
|
|
18656
|
+
const _hoisted_1$y = ["title"];
|
|
18657
|
+
const _hoisted_2$v = { key: 0 };
|
|
18658
|
+
const _hoisted_3$r = ["placeholder", "disabled"];
|
|
18659
|
+
const _sfc_main$n = /* @__PURE__ */ vue.defineComponent({
|
|
18551
18660
|
__name: "DateInput",
|
|
18552
18661
|
props: {
|
|
18553
18662
|
field: {},
|
|
@@ -18568,7 +18677,7 @@ const _sfc_main$m = /* @__PURE__ */ vue.defineComponent({
|
|
|
18568
18677
|
class: vue.normalizeClass(["bagel-input", { small: _ctx.small }]),
|
|
18569
18678
|
title: _ctx.field.description
|
|
18570
18679
|
}, [
|
|
18571
|
-
_ctx.field.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_2$
|
|
18680
|
+
_ctx.field.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_2$v, vue.toDisplayString(_ctx.field.label), 1)) : vue.createCommentVNode("", true),
|
|
18572
18681
|
vue.withDirectives(vue.createElementVNode("input", {
|
|
18573
18682
|
type: "date",
|
|
18574
18683
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => date2.value = $event),
|
|
@@ -18578,18 +18687,18 @@ const _sfc_main$m = /* @__PURE__ */ vue.defineComponent({
|
|
|
18578
18687
|
disabled: !_ctx.editMode,
|
|
18579
18688
|
enableTimePicker: false,
|
|
18580
18689
|
textInputOptions: { format: "yyyy-MM-dd" }
|
|
18581
|
-
}, null, 40, _hoisted_3$
|
|
18690
|
+
}, null, 40, _hoisted_3$r), [
|
|
18582
18691
|
[vue.vModelText, date2.value]
|
|
18583
18692
|
])
|
|
18584
|
-
], 10, _hoisted_1$
|
|
18693
|
+
], 10, _hoisted_1$y);
|
|
18585
18694
|
};
|
|
18586
18695
|
}
|
|
18587
18696
|
});
|
|
18588
|
-
const DateInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
18589
|
-
const _hoisted_1$
|
|
18590
|
-
const _hoisted_2$
|
|
18591
|
-
const _hoisted_3$
|
|
18592
|
-
const _sfc_main$
|
|
18697
|
+
const DateInput = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-782aee7f"]]);
|
|
18698
|
+
const _hoisted_1$x = ["title"];
|
|
18699
|
+
const _hoisted_2$u = { key: 0 };
|
|
18700
|
+
const _hoisted_3$q = ["value", "placeholder"];
|
|
18701
|
+
const _sfc_main$m = /* @__PURE__ */ vue.defineComponent({
|
|
18593
18702
|
__name: "DatetimeInput",
|
|
18594
18703
|
props: {
|
|
18595
18704
|
description: { default: "" },
|
|
@@ -18615,7 +18724,7 @@ const _sfc_main$l = /* @__PURE__ */ vue.defineComponent({
|
|
|
18615
18724
|
class: vue.normalizeClass(["bagel-input", { small: _ctx.small }]),
|
|
18616
18725
|
title: _ctx.description
|
|
18617
18726
|
}, [
|
|
18618
|
-
_ctx.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_2$
|
|
18727
|
+
_ctx.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_2$u, [
|
|
18619
18728
|
vue.createVNode(_component_LangText, { input: _ctx.label }, null, 8, ["input"])
|
|
18620
18729
|
])) : vue.createCommentVNode("", true),
|
|
18621
18730
|
vue.createElementVNode("input", {
|
|
@@ -18624,15 +18733,15 @@ const _sfc_main$l = /* @__PURE__ */ vue.defineComponent({
|
|
|
18624
18733
|
onInput: handleInput,
|
|
18625
18734
|
placeholder: _ctx.placeholder,
|
|
18626
18735
|
class: vue.normalizeClass({ "no-edit": !_ctx.editMode })
|
|
18627
|
-
}, null, 42, _hoisted_3$
|
|
18628
|
-
], 10, _hoisted_1$
|
|
18736
|
+
}, null, 42, _hoisted_3$q)
|
|
18737
|
+
], 10, _hoisted_1$x);
|
|
18629
18738
|
};
|
|
18630
18739
|
}
|
|
18631
18740
|
});
|
|
18632
|
-
const _hoisted_1$
|
|
18633
|
-
const _hoisted_2$
|
|
18634
|
-
const _hoisted_3$
|
|
18635
|
-
const _sfc_main$
|
|
18741
|
+
const _hoisted_1$w = ["title"];
|
|
18742
|
+
const _hoisted_2$t = { key: 0 };
|
|
18743
|
+
const _hoisted_3$p = ["value", "placeholder"];
|
|
18744
|
+
const _sfc_main$l = /* @__PURE__ */ vue.defineComponent({
|
|
18636
18745
|
__name: "EmailInput",
|
|
18637
18746
|
props: {
|
|
18638
18747
|
description: { default: "" },
|
|
@@ -18655,7 +18764,7 @@ const _sfc_main$k = /* @__PURE__ */ vue.defineComponent({
|
|
|
18655
18764
|
class: vue.normalizeClass(["bagel-input", { small: _ctx.small }]),
|
|
18656
18765
|
title: _ctx.description
|
|
18657
18766
|
}, [
|
|
18658
|
-
_ctx.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_2$
|
|
18767
|
+
_ctx.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_2$t, [
|
|
18659
18768
|
vue.createVNode(_component_LangText, { input: _ctx.label }, null, 8, ["input"])
|
|
18660
18769
|
])) : vue.createCommentVNode("", true),
|
|
18661
18770
|
vue.createElementVNode("input", {
|
|
@@ -18665,16 +18774,16 @@ const _sfc_main$k = /* @__PURE__ */ vue.defineComponent({
|
|
|
18665
18774
|
onInput: handleInput,
|
|
18666
18775
|
class: vue.normalizeClass({ "no-edit": !_ctx.editMode }),
|
|
18667
18776
|
placeholder: _ctx.placeholder
|
|
18668
|
-
}, null, 42, _hoisted_3$
|
|
18669
|
-
], 10, _hoisted_1$
|
|
18777
|
+
}, null, 42, _hoisted_3$p)
|
|
18778
|
+
], 10, _hoisted_1$w);
|
|
18670
18779
|
};
|
|
18671
18780
|
}
|
|
18672
18781
|
});
|
|
18673
|
-
const EmailInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
18674
|
-
const _hoisted_1$
|
|
18675
|
-
const _hoisted_2$
|
|
18676
|
-
const _hoisted_3$
|
|
18677
|
-
const _sfc_main$
|
|
18782
|
+
const EmailInput = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-ed81a514"]]);
|
|
18783
|
+
const _hoisted_1$v = ["title"];
|
|
18784
|
+
const _hoisted_2$s = { key: 0 };
|
|
18785
|
+
const _hoisted_3$o = ["value", "placeholder"];
|
|
18786
|
+
const _sfc_main$k = /* @__PURE__ */ vue.defineComponent({
|
|
18678
18787
|
__name: "FloatInput",
|
|
18679
18788
|
props: {
|
|
18680
18789
|
description: { default: "" },
|
|
@@ -18701,7 +18810,7 @@ const _sfc_main$j = /* @__PURE__ */ vue.defineComponent({
|
|
|
18701
18810
|
class: vue.normalizeClass(["bagel-input", { small: _ctx.small }]),
|
|
18702
18811
|
title: _ctx.description
|
|
18703
18812
|
}, [
|
|
18704
|
-
_ctx.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_2$
|
|
18813
|
+
_ctx.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_2$s, [
|
|
18705
18814
|
vue.createVNode(_component_LangText, { input: _ctx.label }, null, 8, ["input"])
|
|
18706
18815
|
])) : vue.createCommentVNode("", true),
|
|
18707
18816
|
vue.createElementVNode("input", {
|
|
@@ -18710,15 +18819,15 @@ const _sfc_main$j = /* @__PURE__ */ vue.defineComponent({
|
|
|
18710
18819
|
onInput: handleInput,
|
|
18711
18820
|
class: vue.normalizeClass({ "no-edit": !_ctx.editMode }),
|
|
18712
18821
|
placeholder: _ctx.placeholder
|
|
18713
|
-
}, null, 42, _hoisted_3$
|
|
18714
|
-
], 10, _hoisted_1$
|
|
18822
|
+
}, null, 42, _hoisted_3$o)
|
|
18823
|
+
], 10, _hoisted_1$v);
|
|
18715
18824
|
};
|
|
18716
18825
|
}
|
|
18717
18826
|
});
|
|
18718
|
-
const _hoisted_1$
|
|
18719
|
-
const _hoisted_2$
|
|
18720
|
-
const _hoisted_3$
|
|
18721
|
-
const _sfc_main$
|
|
18827
|
+
const _hoisted_1$u = ["title"];
|
|
18828
|
+
const _hoisted_2$r = { key: 0 };
|
|
18829
|
+
const _hoisted_3$n = ["value", "placeholder"];
|
|
18830
|
+
const _sfc_main$j = /* @__PURE__ */ vue.defineComponent({
|
|
18722
18831
|
__name: "IntInput",
|
|
18723
18832
|
props: {
|
|
18724
18833
|
description: { default: "" },
|
|
@@ -18745,7 +18854,7 @@ const _sfc_main$i = /* @__PURE__ */ vue.defineComponent({
|
|
|
18745
18854
|
class: vue.normalizeClass(["bagel-input", { small: _ctx.small }]),
|
|
18746
18855
|
title: _ctx.description
|
|
18747
18856
|
}, [
|
|
18748
|
-
_ctx.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_2$
|
|
18857
|
+
_ctx.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_2$r, [
|
|
18749
18858
|
vue.createVNode(_component_LangText, { input: _ctx.label }, null, 8, ["input"])
|
|
18750
18859
|
])) : vue.createCommentVNode("", true),
|
|
18751
18860
|
vue.createElementVNode("input", {
|
|
@@ -18754,15 +18863,15 @@ const _sfc_main$i = /* @__PURE__ */ vue.defineComponent({
|
|
|
18754
18863
|
onInput: handleInput,
|
|
18755
18864
|
class: vue.normalizeClass({ "no-edit": !_ctx.editMode }),
|
|
18756
18865
|
placeholder: _ctx.placeholder
|
|
18757
|
-
}, null, 42, _hoisted_3$
|
|
18758
|
-
], 10, _hoisted_1$
|
|
18866
|
+
}, null, 42, _hoisted_3$n)
|
|
18867
|
+
], 10, _hoisted_1$u);
|
|
18759
18868
|
};
|
|
18760
18869
|
}
|
|
18761
18870
|
});
|
|
18762
|
-
const _hoisted_1$
|
|
18763
|
-
const _hoisted_2$
|
|
18764
|
-
const _hoisted_3$
|
|
18765
|
-
const _sfc_main$
|
|
18871
|
+
const _hoisted_1$t = ["title"];
|
|
18872
|
+
const _hoisted_2$q = { key: 0 };
|
|
18873
|
+
const _hoisted_3$m = ["value", "placeholder"];
|
|
18874
|
+
const _sfc_main$i = /* @__PURE__ */ vue.defineComponent({
|
|
18766
18875
|
__name: "JSONInput",
|
|
18767
18876
|
props: {
|
|
18768
18877
|
description: { default: "" },
|
|
@@ -18785,7 +18894,7 @@ const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
|
|
|
18785
18894
|
class: vue.normalizeClass(["bagel-input", { small: _ctx.small }]),
|
|
18786
18895
|
title: _ctx.description
|
|
18787
18896
|
}, [
|
|
18788
|
-
_ctx.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_2$
|
|
18897
|
+
_ctx.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_2$q, [
|
|
18789
18898
|
vue.createVNode(_component_LangText, { input: _ctx.label }, null, 8, ["input"])
|
|
18790
18899
|
])) : vue.createCommentVNode("", true),
|
|
18791
18900
|
vue.createElementVNode("textarea", {
|
|
@@ -18793,26 +18902,26 @@ const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
|
|
|
18793
18902
|
onInput: handleInput,
|
|
18794
18903
|
class: vue.normalizeClass({ "no-edit": !_ctx.editMode }),
|
|
18795
18904
|
placeholder: _ctx.placeholder
|
|
18796
|
-
}, null, 42, _hoisted_3$
|
|
18797
|
-
], 10, _hoisted_1$
|
|
18905
|
+
}, null, 42, _hoisted_3$m)
|
|
18906
|
+
], 10, _hoisted_1$t);
|
|
18798
18907
|
};
|
|
18799
18908
|
}
|
|
18800
18909
|
});
|
|
18801
|
-
const JSONInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
18802
|
-
const _hoisted_1$
|
|
18803
|
-
const _hoisted_2$
|
|
18804
|
-
const _hoisted_3$
|
|
18805
|
-
const _hoisted_4$
|
|
18806
|
-
const _hoisted_5$
|
|
18910
|
+
const JSONInput = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-1fc4f739"]]);
|
|
18911
|
+
const _hoisted_1$s = ["title"];
|
|
18912
|
+
const _hoisted_2$p = { key: 0 };
|
|
18913
|
+
const _hoisted_3$l = ["disabled"];
|
|
18914
|
+
const _hoisted_4$c = ["onClick"];
|
|
18915
|
+
const _hoisted_5$8 = {
|
|
18807
18916
|
key: 0,
|
|
18808
18917
|
class: "option-label"
|
|
18809
18918
|
};
|
|
18810
|
-
const _hoisted_6$
|
|
18919
|
+
const _hoisted_6$6 = {
|
|
18811
18920
|
key: 1,
|
|
18812
18921
|
class: "option-label"
|
|
18813
18922
|
};
|
|
18814
18923
|
const _hoisted_7$2 = { class: "option-description" };
|
|
18815
|
-
const _sfc_main$
|
|
18924
|
+
const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
|
|
18816
18925
|
__name: "LinkField",
|
|
18817
18926
|
props: {
|
|
18818
18927
|
description: { default: "" },
|
|
@@ -18936,7 +19045,7 @@ const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
|
|
|
18936
19045
|
class: vue.normalizeClass(["bagel-input", { small: _ctx.small }]),
|
|
18937
19046
|
title: _ctx.description
|
|
18938
19047
|
}, [
|
|
18939
|
-
_ctx.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_2$
|
|
19048
|
+
_ctx.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_2$p, [
|
|
18940
19049
|
vue.createVNode(_component_LangText, { input: _ctx.label }, null, 8, ["input"])
|
|
18941
19050
|
])) : vue.createCommentVNode("", true),
|
|
18942
19051
|
vue.withDirectives(vue.createElementVNode("input", {
|
|
@@ -18948,7 +19057,7 @@ const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
|
|
|
18948
19057
|
onFocus: initList,
|
|
18949
19058
|
onInput: handleInput,
|
|
18950
19059
|
disabled: !_ctx.editMode
|
|
18951
|
-
}, null, 40, _hoisted_3$
|
|
19060
|
+
}, null, 40, _hoisted_3$l), [
|
|
18952
19061
|
[vue.vModelText, selectedItem.value]
|
|
18953
19062
|
]),
|
|
18954
19063
|
vue.createElementVNode("div", {
|
|
@@ -18968,26 +19077,26 @@ const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
|
|
|
18968
19077
|
key: vue.unref(formatString)(option2.value, "pascal"),
|
|
18969
19078
|
onClick: vue.withModifiers(($event) => handleSelect(option2), ["stop"])
|
|
18970
19079
|
}, [
|
|
18971
|
-
option2.label ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$
|
|
19080
|
+
option2.label ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$8, [
|
|
18972
19081
|
vue.createTextVNode(vue.toDisplayString(option2.label), 1),
|
|
18973
19082
|
vue.createElementVNode("span", null, "ID: " + vue.toDisplayString(option2.value), 1)
|
|
18974
|
-
])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_6$
|
|
19083
|
+
])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_6$6, " ID: " + vue.toDisplayString(option2.value), 1)),
|
|
18975
19084
|
vue.createElementVNode("div", _hoisted_7$2, vue.toDisplayString(option2.description), 1)
|
|
18976
|
-
], 8, _hoisted_4$
|
|
19085
|
+
], 8, _hoisted_4$c);
|
|
18977
19086
|
}), 128))
|
|
18978
19087
|
], 2)
|
|
18979
19088
|
]))
|
|
18980
19089
|
], 2)
|
|
18981
|
-
], 10, _hoisted_1$
|
|
19090
|
+
], 10, _hoisted_1$s);
|
|
18982
19091
|
};
|
|
18983
19092
|
}
|
|
18984
19093
|
});
|
|
18985
|
-
const LinkField = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
18986
|
-
const _hoisted_1$
|
|
18987
|
-
const _hoisted_2$
|
|
18988
|
-
const _hoisted_3$
|
|
18989
|
-
const _hoisted_4$
|
|
18990
|
-
const _sfc_main$
|
|
19094
|
+
const LinkField = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-947beb38"]]);
|
|
19095
|
+
const _hoisted_1$r = ["title"];
|
|
19096
|
+
const _hoisted_2$o = { key: 0 };
|
|
19097
|
+
const _hoisted_3$k = { class: "password-input-wrap" };
|
|
19098
|
+
const _hoisted_4$b = ["value", "type", "placeholder"];
|
|
19099
|
+
const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
|
|
18991
19100
|
__name: "PasswordInput",
|
|
18992
19101
|
props: {
|
|
18993
19102
|
description: { default: "" },
|
|
@@ -19021,31 +19130,31 @@ const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
|
|
|
19021
19130
|
class: vue.normalizeClass(["bagel-input", { small: _ctx.small }]),
|
|
19022
19131
|
title: _ctx.description
|
|
19023
19132
|
}, [
|
|
19024
|
-
_ctx.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_2$
|
|
19133
|
+
_ctx.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_2$o, [
|
|
19025
19134
|
vue.createVNode(_component_LangText, { input: _ctx.label }, null, 8, ["input"])
|
|
19026
19135
|
])) : vue.createCommentVNode("", true),
|
|
19027
|
-
vue.createElementVNode("div", _hoisted_3$
|
|
19136
|
+
vue.createElementVNode("div", _hoisted_3$k, [
|
|
19028
19137
|
vue.createElementVNode("input", {
|
|
19029
19138
|
value: _ctx.modelValue,
|
|
19030
19139
|
type: vue.unref(inputType),
|
|
19031
19140
|
onInput: handleInput,
|
|
19032
19141
|
placeholder: _ctx.placeholder,
|
|
19033
19142
|
class: vue.normalizeClass({ "no-edit": !_ctx.editMode })
|
|
19034
|
-
}, null, 42, _hoisted_4$
|
|
19143
|
+
}, null, 42, _hoisted_4$b),
|
|
19035
19144
|
vue.createElementVNode("div", {
|
|
19036
19145
|
class: "icon-font password-icon",
|
|
19037
19146
|
onMousedown: toggleInputType
|
|
19038
19147
|
}, " visibility ", 32)
|
|
19039
19148
|
])
|
|
19040
|
-
], 10, _hoisted_1$
|
|
19149
|
+
], 10, _hoisted_1$r);
|
|
19041
19150
|
};
|
|
19042
19151
|
}
|
|
19043
19152
|
});
|
|
19044
|
-
const PasswordInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
19045
|
-
const _hoisted_1$
|
|
19046
|
-
const _hoisted_2$
|
|
19047
|
-
const _hoisted_3$
|
|
19048
|
-
const _sfc_main$
|
|
19153
|
+
const PasswordInput = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-525f5e2e"]]);
|
|
19154
|
+
const _hoisted_1$q = ["title"];
|
|
19155
|
+
const _hoisted_2$n = ["for"];
|
|
19156
|
+
const _hoisted_3$j = ["id", "type", "placeholder", "required", "pattern"];
|
|
19157
|
+
const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
|
|
19049
19158
|
__name: "Password",
|
|
19050
19159
|
props: {
|
|
19051
19160
|
field: {},
|
|
@@ -19085,22 +19194,22 @@ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
|
|
|
19085
19194
|
class: { "no-edit": !_ctx.editMode },
|
|
19086
19195
|
required: _ctx.required,
|
|
19087
19196
|
pattern: _ctx.pattern
|
|
19088
|
-
}, _ctx.nativeInputAttrs), null, 16, _hoisted_3$
|
|
19197
|
+
}, _ctx.nativeInputAttrs), null, 16, _hoisted_3$j), [
|
|
19089
19198
|
[vue.vModelDynamic, inputVal.value]
|
|
19090
19199
|
])
|
|
19091
|
-
], 8, _hoisted_2$
|
|
19092
|
-
vue.createVNode(vue.unref(_sfc_main$
|
|
19200
|
+
], 8, _hoisted_2$n),
|
|
19201
|
+
vue.createVNode(vue.unref(_sfc_main$W), {
|
|
19093
19202
|
onClick: showPassword,
|
|
19094
19203
|
icon: vue.unref(seePassword) ? "visibility" : "visibility_off"
|
|
19095
19204
|
}, null, 8, ["icon"])
|
|
19096
|
-
], 10, _hoisted_1$
|
|
19205
|
+
], 10, _hoisted_1$q)) : vue.createCommentVNode("", true);
|
|
19097
19206
|
};
|
|
19098
19207
|
}
|
|
19099
19208
|
});
|
|
19100
|
-
const Password = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
19101
|
-
const _hoisted_1$
|
|
19102
|
-
const _hoisted_2$
|
|
19103
|
-
const _sfc_main$
|
|
19209
|
+
const Password = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-800f4000"]]);
|
|
19210
|
+
const _hoisted_1$p = ["title"];
|
|
19211
|
+
const _hoisted_2$m = { key: 0 };
|
|
19212
|
+
const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
|
|
19104
19213
|
__name: "ReadOnlyInput",
|
|
19105
19214
|
props: {
|
|
19106
19215
|
field: {},
|
|
@@ -19113,49 +19222,33 @@ const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
|
|
|
19113
19222
|
class: vue.normalizeClass(["bagel-input", { small: _ctx.small }]),
|
|
19114
19223
|
title: _ctx.field.description
|
|
19115
19224
|
}, [
|
|
19116
|
-
_ctx.field.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_2$
|
|
19225
|
+
_ctx.field.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_2$m, vue.toDisplayString(_ctx.field.label), 1)) : vue.createCommentVNode("", true),
|
|
19117
19226
|
vue.createTextVNode(" " + vue.toDisplayString(_ctx.modelValue), 1)
|
|
19118
|
-
], 10, _hoisted_1$
|
|
19227
|
+
], 10, _hoisted_1$p);
|
|
19119
19228
|
};
|
|
19120
19229
|
}
|
|
19121
19230
|
});
|
|
19122
|
-
const ReadOnlyInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
19123
|
-
const _hoisted_1$
|
|
19124
|
-
const _hoisted_2$
|
|
19125
|
-
const _sfc_main$
|
|
19231
|
+
const ReadOnlyInput = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-b3b5a368"]]);
|
|
19232
|
+
const _hoisted_1$o = ["title"];
|
|
19233
|
+
const _hoisted_2$l = ["onClick"];
|
|
19234
|
+
const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
|
|
19126
19235
|
__name: "SelectField",
|
|
19127
19236
|
props: {
|
|
19128
19237
|
inputType: {},
|
|
19129
19238
|
options: {},
|
|
19130
|
-
id: {},
|
|
19131
|
-
label: { default: "" },
|
|
19132
|
-
placeholder: { default: "" },
|
|
19133
|
-
required: { type: Boolean },
|
|
19134
|
-
is_array: { type: Boolean },
|
|
19135
|
-
can_add: { type: Boolean },
|
|
19136
|
-
can_delete: { type: [Boolean, Function] },
|
|
19137
|
-
allow_array_add: { type: Boolean },
|
|
19138
19239
|
editMode: { type: Boolean, default: true },
|
|
19139
|
-
description: { default: "" },
|
|
19140
|
-
helpText: {},
|
|
19141
|
-
currency: {},
|
|
19142
|
-
refCollection: {},
|
|
19143
|
-
refFields: {},
|
|
19144
|
-
file_key: {},
|
|
19145
|
-
fields: {},
|
|
19146
|
-
pattern: {},
|
|
19147
|
-
fieldClass: {},
|
|
19148
|
-
link: {},
|
|
19149
19240
|
field: {},
|
|
19150
19241
|
modelValue: {},
|
|
19151
|
-
small: { type: Boolean }
|
|
19242
|
+
small: { type: Boolean },
|
|
19243
|
+
label: { default: "" },
|
|
19244
|
+
description: { default: "" }
|
|
19152
19245
|
},
|
|
19153
19246
|
emits: ["update:modelValue", "selected"],
|
|
19154
19247
|
setup(__props, { emit: __emit }) {
|
|
19155
19248
|
vue.useCssVars((_ctx) => ({
|
|
19156
|
-
"
|
|
19157
|
-
"
|
|
19158
|
-
"
|
|
19249
|
+
"530a7ef0": left2.value,
|
|
19250
|
+
"7d0177a2": `${top2.value}px`,
|
|
19251
|
+
"0ee22bfd": width.value
|
|
19159
19252
|
}));
|
|
19160
19253
|
const selectEl = vue.ref();
|
|
19161
19254
|
const dropdown = vue.ref();
|
|
@@ -19254,7 +19347,7 @@ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
|
|
|
19254
19347
|
for: "label",
|
|
19255
19348
|
class: vue.normalizeClass({ active: showList.value })
|
|
19256
19349
|
}, [
|
|
19257
|
-
vue.createVNode(vue.unref(_sfc_main$
|
|
19350
|
+
vue.createVNode(vue.unref(_sfc_main$Y), { input: _ctx.label }, null, 8, ["input"])
|
|
19258
19351
|
], 2)) : vue.createCommentVNode("", true),
|
|
19259
19352
|
vue.createElementVNode("div", {
|
|
19260
19353
|
class: vue.normalizeClass(["custom-select", { "open-select": showList.value && _ctx.editMode }]),
|
|
@@ -19266,7 +19359,7 @@ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
|
|
|
19266
19359
|
class: vue.normalizeClass(["input", { active: showList.value }]),
|
|
19267
19360
|
name: "select-input"
|
|
19268
19361
|
}, [
|
|
19269
|
-
vue.createVNode(vue.unref(_sfc_main$
|
|
19362
|
+
vue.createVNode(vue.unref(_sfc_main$Y), { input: displayValue.value }, null, 8, ["input"])
|
|
19270
19363
|
], 2),
|
|
19271
19364
|
(vue.openBlock(), vue.createBlock(vue.Teleport, { to: "#app" }, [
|
|
19272
19365
|
vue.createElementVNode("div", {
|
|
@@ -19279,23 +19372,23 @@ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
|
|
|
19279
19372
|
key: option2.value,
|
|
19280
19373
|
onClick: ($event) => handleSelect(option2)
|
|
19281
19374
|
}, [
|
|
19282
|
-
vue.createVNode(vue.unref(_sfc_main$
|
|
19375
|
+
vue.createVNode(vue.unref(_sfc_main$Y), {
|
|
19283
19376
|
input: option2.label
|
|
19284
19377
|
}, null, 8, ["input"])
|
|
19285
|
-
], 8, _hoisted_2$
|
|
19378
|
+
], 8, _hoisted_2$l);
|
|
19286
19379
|
}), 128))
|
|
19287
19380
|
], 2)
|
|
19288
19381
|
]))
|
|
19289
19382
|
], 2)
|
|
19290
|
-
], 10, _hoisted_1$
|
|
19383
|
+
], 10, _hoisted_1$o);
|
|
19291
19384
|
};
|
|
19292
19385
|
}
|
|
19293
19386
|
});
|
|
19294
|
-
const SelectField = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
19295
|
-
const _hoisted_1$
|
|
19296
|
-
const _hoisted_2$
|
|
19297
|
-
const _hoisted_3$
|
|
19298
|
-
const _sfc_main$
|
|
19387
|
+
const SelectField = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-f2c5b9ca"]]);
|
|
19388
|
+
const _hoisted_1$n = ["title"];
|
|
19389
|
+
const _hoisted_2$k = { key: 0 };
|
|
19390
|
+
const _hoisted_3$i = ["value", "placeholder"];
|
|
19391
|
+
const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
|
|
19299
19392
|
__name: "RichTextEditor",
|
|
19300
19393
|
props: {
|
|
19301
19394
|
description: { default: "" },
|
|
@@ -19318,7 +19411,7 @@ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
|
|
|
19318
19411
|
class: vue.normalizeClass(["bagel-input", { small: _ctx.small }]),
|
|
19319
19412
|
title: _ctx.description
|
|
19320
19413
|
}, [
|
|
19321
|
-
_ctx.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_2$
|
|
19414
|
+
_ctx.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_2$k, [
|
|
19322
19415
|
vue.createVNode(_component_LangText, { input: _ctx.label }, null, 8, ["input"])
|
|
19323
19416
|
])) : vue.createCommentVNode("", true),
|
|
19324
19417
|
vue.createElementVNode("textarea", {
|
|
@@ -19326,12 +19419,12 @@ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
|
|
|
19326
19419
|
onInput: handleInput,
|
|
19327
19420
|
placeholder: _ctx.placeholder,
|
|
19328
19421
|
class: vue.normalizeClass({ "no-edit": !_ctx.editMode })
|
|
19329
|
-
}, null, 42, _hoisted_3$
|
|
19330
|
-
], 10, _hoisted_1$
|
|
19422
|
+
}, null, 42, _hoisted_3$i)
|
|
19423
|
+
], 10, _hoisted_1$n);
|
|
19331
19424
|
};
|
|
19332
19425
|
}
|
|
19333
19426
|
});
|
|
19334
|
-
const RichTextEditor = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
19427
|
+
const RichTextEditor = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-69a60381"]]);
|
|
19335
19428
|
/*!
|
|
19336
19429
|
* vue-draggable-next v2.2.0
|
|
19337
19430
|
* (c) 2023 Anish George
|
|
@@ -21854,13 +21947,13 @@ const VueDraggableNext = vue.defineComponent({
|
|
|
21854
21947
|
}
|
|
21855
21948
|
}
|
|
21856
21949
|
});
|
|
21857
|
-
const _hoisted_1$
|
|
21858
|
-
const _hoisted_2$
|
|
21859
|
-
const _hoisted_3$
|
|
21860
|
-
const _hoisted_4$
|
|
21861
|
-
const _hoisted_5$
|
|
21862
|
-
const _hoisted_6$
|
|
21863
|
-
const _sfc_main$
|
|
21950
|
+
const _hoisted_1$m = ["title"];
|
|
21951
|
+
const _hoisted_2$j = { class: "bagel-input" };
|
|
21952
|
+
const _hoisted_3$h = { class: "table-side-scroll" };
|
|
21953
|
+
const _hoisted_4$a = { class: "table-header" };
|
|
21954
|
+
const _hoisted_5$7 = { class: "table-reorder" };
|
|
21955
|
+
const _hoisted_6$5 = { class: "table-action" };
|
|
21956
|
+
const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
|
|
21864
21957
|
__name: "TableField",
|
|
21865
21958
|
props: {
|
|
21866
21959
|
description: { default: "" },
|
|
@@ -21925,11 +22018,11 @@ const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
|
|
|
21925
22018
|
class: "table-field-wrap",
|
|
21926
22019
|
title: _ctx.description
|
|
21927
22020
|
}, [
|
|
21928
|
-
vue.createElementVNode("div", _hoisted_2$
|
|
22021
|
+
vue.createElementVNode("div", _hoisted_2$j, [
|
|
21929
22022
|
vue.createElementVNode("label", null, vue.toDisplayString((_a2 = vue.unref(fieldMeta)) == null ? void 0 : _a2.label), 1)
|
|
21930
22023
|
]),
|
|
21931
|
-
vue.createElementVNode("div", _hoisted_3$
|
|
21932
|
-
vue.createElementVNode("div", _hoisted_4$
|
|
22024
|
+
vue.createElementVNode("div", _hoisted_3$h, [
|
|
22025
|
+
vue.createElementVNode("div", _hoisted_4$a, [
|
|
21933
22026
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList((_b = vue.unref(entityMeta)) == null ? void 0 : _b.fields, (field) => {
|
|
21934
22027
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
21935
22028
|
class: vue.normalizeClass(["header-col", vue.unref(formatString)(field.fieldtype, "pascal")]),
|
|
@@ -21956,8 +22049,8 @@ const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
|
|
|
21956
22049
|
class: "flex table-row",
|
|
21957
22050
|
key: row.id
|
|
21958
22051
|
}, [
|
|
21959
|
-
vue.createElementVNode("div", _hoisted_5$
|
|
21960
|
-
vue.createVNode(_sfc_main$
|
|
22052
|
+
vue.createElementVNode("div", _hoisted_5$7, [
|
|
22053
|
+
vue.createVNode(_sfc_main$t, { icon: "more_vert" })
|
|
21961
22054
|
]),
|
|
21962
22055
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList((_a3 = vue.unref(entityMeta)) == null ? void 0 : _a3.fields, (field) => {
|
|
21963
22056
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
@@ -21973,8 +22066,8 @@ const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
|
|
|
21973
22066
|
}, null, 8, ["field-meta", "bagel-app", "onUpdate:modelValue", "model-value"])
|
|
21974
22067
|
], 2);
|
|
21975
22068
|
}), 128)),
|
|
21976
|
-
vue.createElementVNode("div", _hoisted_6$
|
|
21977
|
-
vue.createVNode(_sfc_main$
|
|
22069
|
+
vue.createElementVNode("div", _hoisted_6$5, [
|
|
22070
|
+
vue.createVNode(_sfc_main$t, {
|
|
21978
22071
|
icon: "delete",
|
|
21979
22072
|
onClick: ($event) => removeRow(index2)
|
|
21980
22073
|
}, null, 8, ["onClick"])
|
|
@@ -22000,15 +22093,15 @@ const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
|
|
|
22000
22093
|
]),
|
|
22001
22094
|
_: 1
|
|
22002
22095
|
})
|
|
22003
|
-
], 8, _hoisted_1$
|
|
22096
|
+
], 8, _hoisted_1$m);
|
|
22004
22097
|
};
|
|
22005
22098
|
}
|
|
22006
22099
|
});
|
|
22007
|
-
const TableField = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
22008
|
-
const _hoisted_1$
|
|
22009
|
-
const _hoisted_2$
|
|
22010
|
-
const _hoisted_3$
|
|
22011
|
-
const _sfc_main$
|
|
22100
|
+
const TableField = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-1d1376d2"]]);
|
|
22101
|
+
const _hoisted_1$l = ["title"];
|
|
22102
|
+
const _hoisted_2$i = { key: 0 };
|
|
22103
|
+
const _hoisted_3$g = ["value", "title", "placeholder"];
|
|
22104
|
+
const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
|
|
22012
22105
|
__name: "DurationInput",
|
|
22013
22106
|
props: {
|
|
22014
22107
|
description: { default: "" },
|
|
@@ -22035,7 +22128,7 @@ const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
|
|
|
22035
22128
|
class: vue.normalizeClass(["bagel-input", { small: _ctx.small }]),
|
|
22036
22129
|
title: _ctx.description
|
|
22037
22130
|
}, [
|
|
22038
|
-
_ctx.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_2$
|
|
22131
|
+
_ctx.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_2$i, [
|
|
22039
22132
|
vue.createVNode(_component_LangText, { input: _ctx.label }, null, 8, ["input"])
|
|
22040
22133
|
])) : vue.createCommentVNode("", true),
|
|
22041
22134
|
vue.createElementVNode("input", {
|
|
@@ -22045,15 +22138,16 @@ const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
|
|
|
22045
22138
|
onInput: handleInput,
|
|
22046
22139
|
placeholder: _ctx.placeholder,
|
|
22047
22140
|
class: vue.normalizeClass({ "no-edit": !_ctx.editMode })
|
|
22048
|
-
}, null, 42, _hoisted_3$
|
|
22049
|
-
], 10, _hoisted_1$
|
|
22141
|
+
}, null, 42, _hoisted_3$g)
|
|
22142
|
+
], 10, _hoisted_1$l);
|
|
22050
22143
|
};
|
|
22051
22144
|
}
|
|
22052
22145
|
});
|
|
22053
|
-
const _hoisted_1$
|
|
22054
|
-
const _hoisted_2$
|
|
22055
|
-
const _hoisted_3$
|
|
22056
|
-
const
|
|
22146
|
+
const _hoisted_1$k = ["title"];
|
|
22147
|
+
const _hoisted_2$h = ["for"];
|
|
22148
|
+
const _hoisted_3$f = ["autocomplete", "id", "type", "placeholder", "disabled", "required", "pattern"];
|
|
22149
|
+
const _hoisted_4$9 = ["id", "type", "rows", "placeholder", "disabled", "required", "pattern"];
|
|
22150
|
+
const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
|
|
22057
22151
|
__name: "TextInput",
|
|
22058
22152
|
props: {
|
|
22059
22153
|
id: {},
|
|
@@ -22069,7 +22163,12 @@ const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
|
|
|
22069
22163
|
type: { default: "text" },
|
|
22070
22164
|
nativeInputAttrs: {},
|
|
22071
22165
|
icon: {},
|
|
22072
|
-
iconStart: {}
|
|
22166
|
+
iconStart: {},
|
|
22167
|
+
multiline: { type: Boolean },
|
|
22168
|
+
autoheight: { type: Boolean },
|
|
22169
|
+
code: { type: Boolean },
|
|
22170
|
+
lines: {},
|
|
22171
|
+
autocomplete: { default: "off" }
|
|
22073
22172
|
},
|
|
22074
22173
|
emits: ["update:modelValue", "debounce"],
|
|
22075
22174
|
setup(__props, { emit: __emit }) {
|
|
@@ -22091,6 +22190,16 @@ const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
|
|
|
22091
22190
|
}, 10);
|
|
22092
22191
|
}
|
|
22093
22192
|
};
|
|
22193
|
+
const rows = vue.computed(() => {
|
|
22194
|
+
var _a2;
|
|
22195
|
+
if (props2.lines)
|
|
22196
|
+
return props2.lines;
|
|
22197
|
+
if (props2.autoheight)
|
|
22198
|
+
return ((_a2 = `${inputVal.value}`) == null ? void 0 : _a2.split("\n").length) || 1;
|
|
22199
|
+
if (props2.multiline || props2.code)
|
|
22200
|
+
return 4;
|
|
22201
|
+
return 1;
|
|
22202
|
+
});
|
|
22094
22203
|
vue.watch(
|
|
22095
22204
|
() => inputVal.value,
|
|
22096
22205
|
(newVal) => {
|
|
@@ -22112,34 +22221,48 @@ const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
|
|
|
22112
22221
|
);
|
|
22113
22222
|
return (_ctx, _cache) => {
|
|
22114
22223
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
22115
|
-
class: vue.normalizeClass(["bagel-input", { small: _ctx.small, shrink: _ctx.shrink, toggleEdit: _ctx.toggleEdit, editMode: vue.unref(editMode), textInputIconWrap: _ctx.icon, txtInputIconStart: _ctx.iconStart }]),
|
|
22224
|
+
class: vue.normalizeClass(["bagel-input text-input", { small: _ctx.small, shrink: _ctx.shrink, toggleEdit: _ctx.toggleEdit, editMode: vue.unref(editMode), textInputIconWrap: _ctx.icon, txtInputIconStart: _ctx.iconStart, code: _ctx.code }]),
|
|
22116
22225
|
title: _ctx.title
|
|
22117
22226
|
}, [
|
|
22118
22227
|
vue.createElementVNode("label", { for: _ctx.id }, [
|
|
22119
22228
|
vue.createTextVNode(vue.toDisplayString(_ctx.label) + " ", 1),
|
|
22120
|
-
vue.withDirectives(vue.
|
|
22229
|
+
!_ctx.multiline && !_ctx.autoheight && !_ctx.code ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("input", vue.mergeProps({
|
|
22230
|
+
key: 0,
|
|
22231
|
+
autocomplete: _ctx.autocomplete,
|
|
22121
22232
|
id: _ctx.id,
|
|
22122
22233
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(inputVal) ? inputVal.value = $event : inputVal = $event),
|
|
22123
22234
|
type: _ctx.type,
|
|
22235
|
+
rows: 1,
|
|
22124
22236
|
ref_key: "input",
|
|
22125
22237
|
ref: input2,
|
|
22126
22238
|
placeholder: _ctx.placeholder || _ctx.label,
|
|
22127
22239
|
disabled: !vue.unref(editMode),
|
|
22128
22240
|
required: _ctx.required,
|
|
22129
22241
|
pattern: _ctx.pattern
|
|
22130
|
-
}, _ctx.nativeInputAttrs, {
|
|
22131
|
-
onDblclick: toggleEditAction,
|
|
22132
|
-
onKeydown: vue.withKeys(toggleEditAction, ["enter"])
|
|
22133
|
-
}), null, 16, _hoisted_3$e), [
|
|
22242
|
+
}, _ctx.nativeInputAttrs, { onDblclick: toggleEditAction }), null, 16, _hoisted_3$f)), [
|
|
22134
22243
|
[vue.vModelDynamic, vue.unref(inputVal)]
|
|
22244
|
+
]) : vue.withDirectives((vue.openBlock(), vue.createElementBlock("textarea", vue.mergeProps({
|
|
22245
|
+
key: 1,
|
|
22246
|
+
id: _ctx.id,
|
|
22247
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => vue.isRef(inputVal) ? inputVal.value = $event : inputVal = $event),
|
|
22248
|
+
type: _ctx.type,
|
|
22249
|
+
rows: rows.value,
|
|
22250
|
+
ref_key: "input",
|
|
22251
|
+
ref: input2,
|
|
22252
|
+
placeholder: _ctx.placeholder || _ctx.label,
|
|
22253
|
+
disabled: !vue.unref(editMode),
|
|
22254
|
+
required: _ctx.required,
|
|
22255
|
+
pattern: _ctx.pattern
|
|
22256
|
+
}, _ctx.nativeInputAttrs, { onDblclick: toggleEditAction }), null, 16, _hoisted_4$9)), [
|
|
22257
|
+
[vue.vModelText, vue.unref(inputVal)]
|
|
22135
22258
|
])
|
|
22136
|
-
], 8, _hoisted_2$
|
|
22137
|
-
_ctx.iconStart ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$
|
|
22259
|
+
], 8, _hoisted_2$h),
|
|
22260
|
+
_ctx.iconStart ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$W), {
|
|
22138
22261
|
key: 0,
|
|
22139
22262
|
class: "iconStart",
|
|
22140
22263
|
icon: _ctx.iconStart
|
|
22141
22264
|
}, null, 8, ["icon"])) : vue.createCommentVNode("", true),
|
|
22142
|
-
_ctx.icon ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$
|
|
22265
|
+
_ctx.icon ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$W), {
|
|
22143
22266
|
key: 1,
|
|
22144
22267
|
icon: _ctx.icon
|
|
22145
22268
|
}, null, 8, ["icon"])) : vue.createCommentVNode("", true),
|
|
@@ -22151,19 +22274,19 @@ const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
|
|
|
22151
22274
|
icon: vue.unref(editMode) ? "check" : "edit",
|
|
22152
22275
|
flat: ""
|
|
22153
22276
|
}, null, 8, ["icon"])) : vue.createCommentVNode("", true)
|
|
22154
|
-
], 10, _hoisted_1$
|
|
22277
|
+
], 10, _hoisted_1$k);
|
|
22155
22278
|
};
|
|
22156
22279
|
}
|
|
22157
22280
|
});
|
|
22158
|
-
const TextInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
22159
|
-
const _hoisted_1$
|
|
22160
|
-
const _hoisted_2$
|
|
22161
|
-
const _hoisted_3$
|
|
22281
|
+
const TextInput = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-9f24ba22"]]);
|
|
22282
|
+
const _hoisted_1$j = ["title"];
|
|
22283
|
+
const _hoisted_2$g = { key: 0 };
|
|
22284
|
+
const _hoisted_3$e = {
|
|
22162
22285
|
key: 1,
|
|
22163
22286
|
class: "character-limit"
|
|
22164
22287
|
};
|
|
22165
|
-
const _hoisted_4$
|
|
22166
|
-
const _sfc_main$
|
|
22288
|
+
const _hoisted_4$8 = ["value"];
|
|
22289
|
+
const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
|
|
22167
22290
|
__name: "TextArea",
|
|
22168
22291
|
props: {
|
|
22169
22292
|
description: { default: "" },
|
|
@@ -22188,24 +22311,24 @@ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
|
|
|
22188
22311
|
class: vue.normalizeClass(["bagel-input", { small: _ctx.small }]),
|
|
22189
22312
|
title: _ctx.description
|
|
22190
22313
|
}, [
|
|
22191
|
-
_ctx.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_2$
|
|
22192
|
-
vue.createVNode(vue.unref(_sfc_main$
|
|
22314
|
+
_ctx.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_2$g, [
|
|
22315
|
+
vue.createVNode(vue.unref(_sfc_main$Y), { input: _ctx.label }, null, 8, ["input"])
|
|
22193
22316
|
])) : vue.createCommentVNode("", true),
|
|
22194
|
-
_ctx.showCharacterLimit ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$
|
|
22317
|
+
_ctx.showCharacterLimit ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$e, vue.toDisplayString((_a2 = _ctx.modelValue) == null ? void 0 : _a2.length) + " " + vue.toDisplayString(((_b = _ctx.nativeInputAttrs) == null ? void 0 : _b.maxlength) ? `/${_ctx.nativeInputAttrs.maxlength}` : ""), 1)) : vue.createCommentVNode("", true),
|
|
22195
22318
|
vue.createElementVNode("textarea", vue.mergeProps({
|
|
22196
22319
|
value: _ctx.modelValue,
|
|
22197
22320
|
onInput: handleInput,
|
|
22198
22321
|
class: { "no-edit": !_ctx.editMode }
|
|
22199
|
-
}, _ctx.nativeInputAttrs), null, 16, _hoisted_4$
|
|
22200
|
-
], 10, _hoisted_1$
|
|
22322
|
+
}, _ctx.nativeInputAttrs), null, 16, _hoisted_4$8)
|
|
22323
|
+
], 10, _hoisted_1$j);
|
|
22201
22324
|
};
|
|
22202
22325
|
}
|
|
22203
22326
|
});
|
|
22204
|
-
const TextArea = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
22205
|
-
const _hoisted_1$
|
|
22206
|
-
const _hoisted_2$
|
|
22207
|
-
const _hoisted_3$
|
|
22208
|
-
const _sfc_main$
|
|
22327
|
+
const TextArea = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-a5b28c58"]]);
|
|
22328
|
+
const _hoisted_1$i = ["title"];
|
|
22329
|
+
const _hoisted_2$f = ["for"];
|
|
22330
|
+
const _hoisted_3$d = ["id", "placeholder", "required"];
|
|
22331
|
+
const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
|
|
22209
22332
|
__name: "ColorPicker",
|
|
22210
22333
|
props: {
|
|
22211
22334
|
field: {},
|
|
@@ -22242,19 +22365,19 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
|
|
|
22242
22365
|
placeholder: ((_a2 = _ctx.field) == null ? void 0 : _a2.placeholder) || _ctx.field.label,
|
|
22243
22366
|
class: { "no-edit": !_ctx.editMode },
|
|
22244
22367
|
required: _ctx.required
|
|
22245
|
-
}, _ctx.nativeInputAttrs), null, 16, _hoisted_3$
|
|
22368
|
+
}, _ctx.nativeInputAttrs), null, 16, _hoisted_3$d), [
|
|
22246
22369
|
[vue.vModelText, inputVal.value]
|
|
22247
22370
|
])
|
|
22248
|
-
], 8, _hoisted_2$
|
|
22249
|
-
], 10, _hoisted_1$
|
|
22371
|
+
], 8, _hoisted_2$f)
|
|
22372
|
+
], 10, _hoisted_1$i)) : vue.createCommentVNode("", true);
|
|
22250
22373
|
};
|
|
22251
22374
|
}
|
|
22252
22375
|
});
|
|
22253
|
-
const _hoisted_1$
|
|
22254
|
-
const _hoisted_2$
|
|
22255
|
-
const _hoisted_3$
|
|
22256
|
-
const _hoisted_4$
|
|
22257
|
-
const _sfc_main$
|
|
22376
|
+
const _hoisted_1$h = { key: 0 };
|
|
22377
|
+
const _hoisted_2$e = ["disabled"];
|
|
22378
|
+
const _hoisted_3$c = { class: "custom-select-drop" };
|
|
22379
|
+
const _hoisted_4$7 = ["onClick"];
|
|
22380
|
+
const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
|
|
22258
22381
|
__name: "DynamicLinkField",
|
|
22259
22382
|
props: {
|
|
22260
22383
|
label: { default: "" },
|
|
@@ -22330,7 +22453,7 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
|
22330
22453
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
22331
22454
|
class: vue.normalizeClass(["bagel-input", { small: _ctx.small }])
|
|
22332
22455
|
}, [
|
|
22333
|
-
_ctx.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_1$
|
|
22456
|
+
_ctx.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_1$h, [
|
|
22334
22457
|
vue.createVNode(_component_LangText, { input: _ctx.label }, null, 8, ["input"])
|
|
22335
22458
|
])) : vue.createCommentVNode("", true),
|
|
22336
22459
|
vue.withDirectives(vue.createElementVNode("input", {
|
|
@@ -22342,19 +22465,19 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
|
22342
22465
|
onFocus: initList,
|
|
22343
22466
|
onInput: handleInput,
|
|
22344
22467
|
disabled: !_ctx.editMode
|
|
22345
|
-
}, null, 40, _hoisted_2$
|
|
22468
|
+
}, null, 40, _hoisted_2$e), [
|
|
22346
22469
|
[vue.vModelText, selectedItem.value]
|
|
22347
22470
|
]),
|
|
22348
22471
|
vue.createElementVNode("div", {
|
|
22349
22472
|
class: vue.normalizeClass(["custom-select", { "open-select": showList.value && linkOptions.value.length > 0 }]),
|
|
22350
22473
|
name: "link-input"
|
|
22351
22474
|
}, [
|
|
22352
|
-
vue.createElementVNode("div", _hoisted_3$
|
|
22475
|
+
vue.createElementVNode("div", _hoisted_3$c, [
|
|
22353
22476
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(linkOptions.value, (item2) => {
|
|
22354
22477
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
22355
22478
|
key: vue.unref(formatString)(item2.value, "pascal"),
|
|
22356
22479
|
onClick: vue.withModifiers(($event) => handleSelect(item2), ["stop"])
|
|
22357
|
-
}, vue.toDisplayString(_ctx.useId || _ctx.entity === "Entity" ? item2.value : item2.label || item2.description || item2.value), 9, _hoisted_4$
|
|
22480
|
+
}, vue.toDisplayString(_ctx.useId || _ctx.entity === "Entity" ? item2.value : item2.label || item2.description || item2.value), 9, _hoisted_4$7);
|
|
22358
22481
|
}), 128))
|
|
22359
22482
|
])
|
|
22360
22483
|
], 2)
|
|
@@ -22362,10 +22485,10 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
|
22362
22485
|
};
|
|
22363
22486
|
}
|
|
22364
22487
|
});
|
|
22365
|
-
const _hoisted_1$
|
|
22366
|
-
const _hoisted_2$
|
|
22367
|
-
const _hoisted_3$
|
|
22368
|
-
const _sfc_main$
|
|
22488
|
+
const _hoisted_1$g = ["title"];
|
|
22489
|
+
const _hoisted_2$d = ["for"];
|
|
22490
|
+
const _hoisted_3$b = ["id", "placeholder", "required", "pattern"];
|
|
22491
|
+
const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
22369
22492
|
__name: "PlainText",
|
|
22370
22493
|
props: {
|
|
22371
22494
|
field: {},
|
|
@@ -22411,15 +22534,15 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
|
|
|
22411
22534
|
class: { "no-edit": !_ctx.editMode },
|
|
22412
22535
|
required: _ctx.required,
|
|
22413
22536
|
pattern: _ctx.pattern
|
|
22414
|
-
}, _ctx.nativeInputAttrs), null, 16, _hoisted_3$
|
|
22537
|
+
}, _ctx.nativeInputAttrs), null, 16, _hoisted_3$b), [
|
|
22415
22538
|
[vue.vModelText, vue.unref(inputVal)]
|
|
22416
22539
|
])
|
|
22417
|
-
], 8, _hoisted_2$
|
|
22418
|
-
], 10, _hoisted_1$
|
|
22540
|
+
], 8, _hoisted_2$d)
|
|
22541
|
+
], 10, _hoisted_1$g)) : vue.createCommentVNode("", true);
|
|
22419
22542
|
};
|
|
22420
22543
|
}
|
|
22421
22544
|
});
|
|
22422
|
-
const PlainText = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
22545
|
+
const PlainText = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-188270a2"]]);
|
|
22423
22546
|
function _typeof(o) {
|
|
22424
22547
|
"@babel/helpers - typeof";
|
|
22425
22548
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
|
|
@@ -31796,15 +31919,15 @@ const vl = ({
|
|
|
31796
31919
|
Object.entries(Ro).forEach(([e3, t4]) => {
|
|
31797
31920
|
e3 !== "default" && (ja[e3] = t4);
|
|
31798
31921
|
});
|
|
31799
|
-
const _hoisted_1$
|
|
31800
|
-
const _hoisted_2$
|
|
31801
|
-
const _hoisted_3$
|
|
31922
|
+
const _hoisted_1$f = { class: "datetime-wrap" };
|
|
31923
|
+
const _hoisted_2$c = { class: "date-wrap" };
|
|
31924
|
+
const _hoisted_3$a = {
|
|
31802
31925
|
key: 0,
|
|
31803
31926
|
class: "time-wrap"
|
|
31804
31927
|
};
|
|
31805
|
-
const _hoisted_4$
|
|
31806
|
-
const _hoisted_5$
|
|
31807
|
-
const _sfc_main$
|
|
31928
|
+
const _hoisted_4$6 = ["id", "name", "value"];
|
|
31929
|
+
const _hoisted_5$6 = ["for"];
|
|
31930
|
+
const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
|
|
31808
31931
|
__name: "DatePicker",
|
|
31809
31932
|
props: {
|
|
31810
31933
|
name: {},
|
|
@@ -31820,8 +31943,8 @@ const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
|
|
|
31820
31943
|
return `${hour}:${minute}`;
|
|
31821
31944
|
});
|
|
31822
31945
|
return (_ctx, _cache) => {
|
|
31823
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
31824
|
-
vue.createElementVNode("div", _hoisted_2$
|
|
31946
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$f, [
|
|
31947
|
+
vue.createElementVNode("div", _hoisted_2$c, [
|
|
31825
31948
|
vue.createVNode(vue.unref(ja), vue.mergeProps({
|
|
31826
31949
|
inline: "",
|
|
31827
31950
|
"week-start": "0",
|
|
@@ -31836,7 +31959,7 @@ const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
|
|
|
31836
31959
|
_: 1
|
|
31837
31960
|
}, 16, ["modelValue"])
|
|
31838
31961
|
]),
|
|
31839
|
-
_ctx.showTimeWrap ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$
|
|
31962
|
+
_ctx.showTimeWrap ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$a, [
|
|
31840
31963
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(hours), (hr2) => {
|
|
31841
31964
|
return vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: hr2 }, [
|
|
31842
31965
|
vue.withDirectives(vue.createElementVNode("input", {
|
|
@@ -31845,12 +31968,12 @@ const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
|
|
|
31845
31968
|
name: _ctx.name,
|
|
31846
31969
|
value: hr2,
|
|
31847
31970
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => selectedHour.value = $event)
|
|
31848
|
-
}, null, 8, _hoisted_4$
|
|
31971
|
+
}, null, 8, _hoisted_4$6), [
|
|
31849
31972
|
[vue.vModelRadio, selectedHour.value]
|
|
31850
31973
|
]),
|
|
31851
31974
|
vue.createElementVNode("label", {
|
|
31852
31975
|
for: `${hr2}_${_ctx.name}`
|
|
31853
|
-
}, vue.toDisplayString(hr2), 9, _hoisted_5$
|
|
31976
|
+
}, vue.toDisplayString(hr2), 9, _hoisted_5$6)
|
|
31854
31977
|
], 64);
|
|
31855
31978
|
}), 128))
|
|
31856
31979
|
])) : vue.createCommentVNode("", true)
|
|
@@ -31858,10 +31981,10 @@ const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
|
|
|
31858
31981
|
};
|
|
31859
31982
|
}
|
|
31860
31983
|
});
|
|
31861
|
-
const _hoisted_1$
|
|
31862
|
-
const _hoisted_2$
|
|
31863
|
-
const _hoisted_3$
|
|
31864
|
-
const _sfc_main$
|
|
31984
|
+
const _hoisted_1$e = { class: "flex gap-2 flex-wrap" };
|
|
31985
|
+
const _hoisted_2$b = ["id", "name", "value", "checked"];
|
|
31986
|
+
const _hoisted_3$9 = ["for"];
|
|
31987
|
+
const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
|
|
31865
31988
|
__name: "RadioPillsInput",
|
|
31866
31989
|
props: {
|
|
31867
31990
|
options: {},
|
|
@@ -31899,7 +32022,7 @@ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
|
|
|
31899
32022
|
selectedValue.value = props2.modelValue;
|
|
31900
32023
|
});
|
|
31901
32024
|
return (_ctx, _cache) => {
|
|
31902
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
32025
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$e, [
|
|
31903
32026
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(cumputedOptions.value, ({ id, label: label2, value }, index2) => {
|
|
31904
32027
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
31905
32028
|
class: "radio-pill",
|
|
@@ -31912,15 +32035,120 @@ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
|
|
|
31912
32035
|
value,
|
|
31913
32036
|
checked: vue.unref(selectedValue) === value,
|
|
31914
32037
|
onChange: handleSelect
|
|
31915
|
-
}, null, 40, _hoisted_2$
|
|
31916
|
-
vue.createElementVNode("label", { for: id }, vue.toDisplayString(label2), 9, _hoisted_3$
|
|
32038
|
+
}, null, 40, _hoisted_2$b),
|
|
32039
|
+
vue.createElementVNode("label", { for: id }, vue.toDisplayString(label2), 9, _hoisted_3$9)
|
|
31917
32040
|
]);
|
|
31918
32041
|
}), 128))
|
|
31919
32042
|
]);
|
|
31920
32043
|
};
|
|
31921
32044
|
}
|
|
31922
32045
|
});
|
|
31923
|
-
const RadioPillsInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
32046
|
+
const RadioPillsInput = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-97e3ba8c"]]);
|
|
32047
|
+
const _hoisted_1$d = { class: "bagel-input" };
|
|
32048
|
+
const _hoisted_2$a = { key: 0 };
|
|
32049
|
+
const _hoisted_3$8 = { class: "imagePreviewWrap" };
|
|
32050
|
+
const _hoisted_4$5 = ["src"];
|
|
32051
|
+
const _hoisted_5$5 = { class: "previewName" };
|
|
32052
|
+
const _hoisted_6$4 = { class: "no-margin" };
|
|
32053
|
+
const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
|
|
32054
|
+
__name: "FileUpload",
|
|
32055
|
+
props: {
|
|
32056
|
+
label: {},
|
|
32057
|
+
multiple: { type: Boolean }
|
|
32058
|
+
},
|
|
32059
|
+
setup(__props) {
|
|
32060
|
+
const props2 = __props;
|
|
32061
|
+
const files = vue.ref([]);
|
|
32062
|
+
const fileQueue = vue.ref([]);
|
|
32063
|
+
let isDragOver = vue.ref(false);
|
|
32064
|
+
const preventDefault = (e3) => {
|
|
32065
|
+
e3.preventDefault();
|
|
32066
|
+
e3.stopPropagation();
|
|
32067
|
+
};
|
|
32068
|
+
const fileToUrl = (file) => URL.createObjectURL(file);
|
|
32069
|
+
const removeFile = (file) => {
|
|
32070
|
+
const index2 = files.value.indexOf(file);
|
|
32071
|
+
files.value.splice(index2, 1);
|
|
32072
|
+
};
|
|
32073
|
+
const flushQueue = () => {
|
|
32074
|
+
fileQueue.value.forEach((file, i3) => {
|
|
32075
|
+
if (props2.multiple) {
|
|
32076
|
+
if (!files.value.includes(file))
|
|
32077
|
+
files.value.push(file);
|
|
32078
|
+
} else
|
|
32079
|
+
files.value.splice(0, 1, file);
|
|
32080
|
+
console.log(files.value);
|
|
32081
|
+
fileQueue.value.splice(i3, 1);
|
|
32082
|
+
});
|
|
32083
|
+
};
|
|
32084
|
+
const browse = () => {
|
|
32085
|
+
const input2 = document.createElement("input");
|
|
32086
|
+
input2.type = "file";
|
|
32087
|
+
input2.multiple = props2.multiple;
|
|
32088
|
+
input2.onchange = (e3) => {
|
|
32089
|
+
const target = e3 == null ? void 0 : e3.target;
|
|
32090
|
+
if (target == null ? void 0 : target.files)
|
|
32091
|
+
fileQueue.value.push(...Array.from(target.files));
|
|
32092
|
+
flushQueue();
|
|
32093
|
+
};
|
|
32094
|
+
input2.click();
|
|
32095
|
+
};
|
|
32096
|
+
const dragleave = (e3) => {
|
|
32097
|
+
preventDefault(e3);
|
|
32098
|
+
if (e3.dataTransfer)
|
|
32099
|
+
isDragOver.value = false;
|
|
32100
|
+
else
|
|
32101
|
+
isDragOver.value = false;
|
|
32102
|
+
};
|
|
32103
|
+
const dragenter = (e3) => {
|
|
32104
|
+
preventDefault(e3);
|
|
32105
|
+
if (e3.dataTransfer)
|
|
32106
|
+
isDragOver.value = true;
|
|
32107
|
+
else
|
|
32108
|
+
isDragOver.value = false;
|
|
32109
|
+
};
|
|
32110
|
+
const drop3 = (e3) => {
|
|
32111
|
+
preventDefault(e3);
|
|
32112
|
+
if (e3.dataTransfer)
|
|
32113
|
+
fileQueue.value.push(...Array.from(e3.dataTransfer.files));
|
|
32114
|
+
isDragOver.value = false;
|
|
32115
|
+
flushQueue();
|
|
32116
|
+
};
|
|
32117
|
+
return (_ctx, _cache) => {
|
|
32118
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$d, [
|
|
32119
|
+
vue.createElementVNode("label", null, vue.toDisplayString(_ctx.label), 1),
|
|
32120
|
+
vue.createElementVNode("div", {
|
|
32121
|
+
onClick: browse,
|
|
32122
|
+
onDragover: dragenter,
|
|
32123
|
+
onDrop: drop3,
|
|
32124
|
+
onDragleave: dragleave,
|
|
32125
|
+
class: vue.normalizeClass(["fileUploadWrap", { fileDropZone: !files.value.length, dragover: vue.unref(isDragOver) }])
|
|
32126
|
+
}, [
|
|
32127
|
+
files.value.length && !_ctx.multiple ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$a, [
|
|
32128
|
+
vue.createElementVNode("div", _hoisted_3$8, [
|
|
32129
|
+
vue.createElementVNode("img", {
|
|
32130
|
+
class: "preview",
|
|
32131
|
+
src: fileToUrl(files.value[0]),
|
|
32132
|
+
alt: ""
|
|
32133
|
+
}, null, 8, _hoisted_4$5)
|
|
32134
|
+
]),
|
|
32135
|
+
vue.createElementVNode("div", _hoisted_5$5, [
|
|
32136
|
+
vue.createElementVNode("p", _hoisted_6$4, vue.toDisplayString(files.value[0].name), 1),
|
|
32137
|
+
vue.createVNode(vue.unref(Btn), {
|
|
32138
|
+
thin: "",
|
|
32139
|
+
onClick: _cache[0] || (_cache[0] = vue.withModifiers(($event) => removeFile(files.value[0]), ["stop"])),
|
|
32140
|
+
flat: "",
|
|
32141
|
+
icon: "delete",
|
|
32142
|
+
color: "red"
|
|
32143
|
+
})
|
|
32144
|
+
])
|
|
32145
|
+
])) : vue.createCommentVNode("", true)
|
|
32146
|
+
], 34)
|
|
32147
|
+
]);
|
|
32148
|
+
};
|
|
32149
|
+
}
|
|
32150
|
+
});
|
|
32151
|
+
const FileUpload = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-352399c0"]]);
|
|
31924
32152
|
function _isPlaceholder(a3) {
|
|
31925
32153
|
return a3 != null && typeof a3 === "object" && a3["@@functional/placeholder"] === true;
|
|
31926
32154
|
}
|
|
@@ -38378,7 +38606,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
38378
38606
|
return (_ctx, _cache) => {
|
|
38379
38607
|
var _a2, _b, _c, _d, _e2, _f;
|
|
38380
38608
|
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
|
38381
|
-
vue.createVNode(vue.unref(_sfc_main$
|
|
38609
|
+
vue.createVNode(vue.unref(_sfc_main$N), null, {
|
|
38382
38610
|
default: vue.withCtx(() => [
|
|
38383
38611
|
vue.createTextVNode("Whatsapp Template")
|
|
38384
38612
|
]),
|
|
@@ -38387,7 +38615,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
38387
38615
|
vue.createElementVNode("div", _hoisted_2, [
|
|
38388
38616
|
vue.createElementVNode("div", _hoisted_3, [
|
|
38389
38617
|
vue.createElementVNode("div", _hoisted_4, [
|
|
38390
|
-
vue.createVNode(vue.unref(_sfc_main$
|
|
38618
|
+
vue.createVNode(vue.unref(_sfc_main$L), {
|
|
38391
38619
|
schema: _ctx.whatsappTemplateSchema(),
|
|
38392
38620
|
modelValue: vue.unref(localWhatsappData),
|
|
38393
38621
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(localWhatsappData) ? localWhatsappData.value = $event : localWhatsappData = $event),
|
|
@@ -38415,49 +38643,52 @@ exports.AddressInput = AddressInput;
|
|
|
38415
38643
|
exports.BagelVue = BagelVue;
|
|
38416
38644
|
exports.BankDetailsInput = BankDetailsInput;
|
|
38417
38645
|
exports.BarChart = BarChart;
|
|
38646
|
+
exports.BglField = _sfc_main$q;
|
|
38647
|
+
exports.BglForm = _sfc_main$r;
|
|
38418
38648
|
exports.Btn = Btn;
|
|
38419
38649
|
exports.CheckInput = CheckInput;
|
|
38420
38650
|
exports.Checkbox = Checkbox;
|
|
38421
|
-
exports.ColorPicker = _sfc_main$
|
|
38651
|
+
exports.ColorPicker = _sfc_main$7;
|
|
38422
38652
|
exports.Comments = Comments;
|
|
38423
38653
|
exports.ContactArrayInput = ContactArrayInput;
|
|
38424
|
-
exports.ContactSubmissions = _sfc_main$
|
|
38654
|
+
exports.ContactSubmissions = _sfc_main$H;
|
|
38425
38655
|
exports.CurrencyInput = CurrencyInput;
|
|
38426
38656
|
exports.DataPreview = DataPreview;
|
|
38427
38657
|
exports.DateInput = DateInput;
|
|
38428
|
-
exports.DatePicker = _sfc_main$
|
|
38429
|
-
exports.DatetimeInput = _sfc_main$
|
|
38430
|
-
exports.DropDown = _sfc_main$
|
|
38431
|
-
exports.DurationInput = _sfc_main$
|
|
38432
|
-
exports.DynamicLinkField = _sfc_main$
|
|
38658
|
+
exports.DatePicker = _sfc_main$4;
|
|
38659
|
+
exports.DatetimeInput = _sfc_main$m;
|
|
38660
|
+
exports.DropDown = _sfc_main$S;
|
|
38661
|
+
exports.DurationInput = _sfc_main$a;
|
|
38662
|
+
exports.DynamicLinkField = _sfc_main$6;
|
|
38433
38663
|
exports.EmailInput = EmailInput;
|
|
38664
|
+
exports.FileUpload = FileUpload;
|
|
38434
38665
|
exports.FileUploadInput = FileUploadInput;
|
|
38435
|
-
exports.FileUploader = _sfc_main$
|
|
38436
|
-
exports.FloatInput = _sfc_main$
|
|
38437
|
-
exports.FormSchema = _sfc_main$
|
|
38438
|
-
exports.IntInput = _sfc_main$
|
|
38439
|
-
exports.ItemRef = _sfc_main$
|
|
38666
|
+
exports.FileUploader = _sfc_main$x;
|
|
38667
|
+
exports.FloatInput = _sfc_main$k;
|
|
38668
|
+
exports.FormSchema = _sfc_main$L;
|
|
38669
|
+
exports.IntInput = _sfc_main$j;
|
|
38670
|
+
exports.ItemRef = _sfc_main$u;
|
|
38440
38671
|
exports.JSONInput = JSONInput;
|
|
38441
|
-
exports.LangText = _sfc_main$
|
|
38672
|
+
exports.LangText = _sfc_main$Y;
|
|
38442
38673
|
exports.Lineart = _sfc_main$1;
|
|
38443
38674
|
exports.LinkField = LinkField;
|
|
38444
|
-
exports.ListItem = _sfc_main$
|
|
38445
|
-
exports.ListView = _sfc_main$
|
|
38446
|
-
exports.MaterialIcon = _sfc_main$
|
|
38675
|
+
exports.ListItem = _sfc_main$Q;
|
|
38676
|
+
exports.ListView = _sfc_main$R;
|
|
38677
|
+
exports.MaterialIcon = _sfc_main$W;
|
|
38447
38678
|
exports.MiscFieldsInput = MiscFieldsInput;
|
|
38448
|
-
exports.Modal = _sfc_main$
|
|
38679
|
+
exports.Modal = _sfc_main$T;
|
|
38449
38680
|
exports.ModalForm = ModalForm;
|
|
38450
38681
|
exports.ModalPlugin = ModalPlugin;
|
|
38451
38682
|
exports.MsgTemplate = MsgTemplate;
|
|
38452
|
-
exports.NavBar = _sfc_main$
|
|
38453
|
-
exports.PageTitle = _sfc_main$
|
|
38683
|
+
exports.NavBar = _sfc_main$V;
|
|
38684
|
+
exports.PageTitle = _sfc_main$N;
|
|
38454
38685
|
exports.Password = Password;
|
|
38455
38686
|
exports.PasswordInput = PasswordInput;
|
|
38456
|
-
exports.PersonPreview = _sfc_main$
|
|
38687
|
+
exports.PersonPreview = _sfc_main$G;
|
|
38457
38688
|
exports.PersonPreviewInput = PersonPreviewInput;
|
|
38458
|
-
exports.PlainInputField = _sfc_main$
|
|
38689
|
+
exports.PlainInputField = _sfc_main$s;
|
|
38459
38690
|
exports.PlainText = PlainText;
|
|
38460
|
-
exports.RTXEditor = _sfc_main$
|
|
38691
|
+
exports.RTXEditor = _sfc_main$X;
|
|
38461
38692
|
exports.RadioPillsInput = RadioPillsInput;
|
|
38462
38693
|
exports.ReadOnlyInput = ReadOnlyInput;
|
|
38463
38694
|
exports.RichTextEditor = RichTextEditor;
|
|
@@ -38468,12 +38699,12 @@ exports.TableField = TableField;
|
|
|
38468
38699
|
exports.TableSchema = TableSchema;
|
|
38469
38700
|
exports.TextArea = TextArea;
|
|
38470
38701
|
exports.TextInput = TextInput;
|
|
38471
|
-
exports.TextVariableExamples = _sfc_main$
|
|
38702
|
+
exports.TextVariableExamples = _sfc_main$v;
|
|
38472
38703
|
exports.TextVariablesInput = TextVariablesInput;
|
|
38473
38704
|
exports.ToggleSwitchInput = ToggleSwitchInput;
|
|
38474
38705
|
exports.TopBar = TopBar;
|
|
38475
38706
|
exports.bagelInjectionKey = bagelInjectionKey;
|
|
38476
|
-
exports.
|
|
38707
|
+
exports.bindAttrs = bindAttrs;
|
|
38477
38708
|
exports.copyText = copyText;
|
|
38478
38709
|
exports.debounce = debounce;
|
|
38479
38710
|
exports.formatString = formatString;
|