@bagelink/vue 0.0.198 → 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 +822 -583
- package/dist/index.mjs +822 -583
- 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 +22 -11
- 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.mjs
CHANGED
|
@@ -2298,7 +2298,7 @@ const ModalPlugin = {
|
|
|
2298
2298
|
},
|
|
2299
2299
|
render() {
|
|
2300
2300
|
return modalStack.value.map((modal, index2) => {
|
|
2301
|
-
const renderComponent = modal.isModalForm ? ModalForm : _sfc_main$
|
|
2301
|
+
const renderComponent = modal.isModalForm ? ModalForm : _sfc_main$T;
|
|
2302
2302
|
return h(
|
|
2303
2303
|
renderComponent,
|
|
2304
2304
|
{
|
|
@@ -2339,26 +2339,6 @@ const debounce = (fn2, delay = 500) => {
|
|
|
2339
2339
|
timeout = setTimeout(fn2, delay);
|
|
2340
2340
|
};
|
|
2341
2341
|
const keyToLabel = (key) => key.split("_").map((k2) => k2.charAt(0).toUpperCase() + k2.slice(1)).join(" ");
|
|
2342
|
-
function computeFields(modelValue) {
|
|
2343
|
-
const fields = [];
|
|
2344
|
-
for (const key of Object.keys(modelValue)) {
|
|
2345
|
-
const field = {
|
|
2346
|
-
label: keyToLabel(key),
|
|
2347
|
-
id: key,
|
|
2348
|
-
inputType: "PlainText"
|
|
2349
|
-
};
|
|
2350
|
-
if (typeof modelValue[key] === "string")
|
|
2351
|
-
field.inputType = "PlainText";
|
|
2352
|
-
if (typeof modelValue[key] === "number")
|
|
2353
|
-
field.inputType = "NumberInput";
|
|
2354
|
-
if (modelValue[key] === true || modelValue[key] === false)
|
|
2355
|
-
field.inputType = "CheckInput";
|
|
2356
|
-
if (modelValue[key] instanceof Date || !Number.isNaN(Date.parse(modelValue[key])))
|
|
2357
|
-
field.inputType = "DateInput";
|
|
2358
|
-
fields.push(field);
|
|
2359
|
-
}
|
|
2360
|
-
return fields;
|
|
2361
|
-
}
|
|
2362
2342
|
const copyText = async (text2, cb) => {
|
|
2363
2343
|
await navigator.clipboard.writeText(text2);
|
|
2364
2344
|
if (cb)
|
|
@@ -2374,8 +2354,16 @@ function useEscape(event, closeModel) {
|
|
|
2374
2354
|
closeModel();
|
|
2375
2355
|
}
|
|
2376
2356
|
}
|
|
2377
|
-
|
|
2378
|
-
const
|
|
2357
|
+
function bindAttrs(attrs, fieldVal, row) {
|
|
2358
|
+
const arr = Object.entries(attrs).map(([key, value]) => [
|
|
2359
|
+
key,
|
|
2360
|
+
typeof value === "function" ? value(fieldVal, row) : value
|
|
2361
|
+
]);
|
|
2362
|
+
const resolvedAttrs = Object.fromEntries(arr);
|
|
2363
|
+
return resolvedAttrs;
|
|
2364
|
+
}
|
|
2365
|
+
const _hoisted_1$11 = { ref: "el" };
|
|
2366
|
+
const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
2379
2367
|
__name: "LangText",
|
|
2380
2368
|
props: {
|
|
2381
2369
|
input: {}
|
|
@@ -2383,7 +2371,7 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
2383
2371
|
setup(__props) {
|
|
2384
2372
|
return (_ctx, _cache) => {
|
|
2385
2373
|
return openBlock(), createElementBlock(Fragment$1, null, [
|
|
2386
|
-
createElementVNode("span", _hoisted_1
|
|
2374
|
+
createElementVNode("span", _hoisted_1$11, null, 512),
|
|
2387
2375
|
createTextVNode(" " + toDisplayString(_ctx.input), 1)
|
|
2388
2376
|
], 64);
|
|
2389
2377
|
};
|
|
@@ -14496,8 +14484,8 @@ const marks = {
|
|
|
14496
14484
|
}
|
|
14497
14485
|
};
|
|
14498
14486
|
const schema = new Schema({ nodes, marks });
|
|
14499
|
-
const _hoisted_1$
|
|
14500
|
-
const _sfc_main$
|
|
14487
|
+
const _hoisted_1$10 = ["id"];
|
|
14488
|
+
const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
14501
14489
|
__name: "RTXEditor",
|
|
14502
14490
|
props: {
|
|
14503
14491
|
elementId: { default: Math.random().toString(36).substr(2, 9) },
|
|
@@ -14574,11 +14562,11 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
14574
14562
|
onClick: focusEditor,
|
|
14575
14563
|
id: `canvas-${_ctx.elementId}`,
|
|
14576
14564
|
onKeydown: _cache[0] || (_cache[0] = withKeys(withModifiers(($event) => _ctx.$emit("keydown.meta.enter"), ["meta"]), ["enter"]))
|
|
14577
|
-
}, null, 40, _hoisted_1$
|
|
14565
|
+
}, null, 40, _hoisted_1$10);
|
|
14578
14566
|
};
|
|
14579
14567
|
}
|
|
14580
14568
|
});
|
|
14581
|
-
const _sfc_main$
|
|
14569
|
+
const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
14582
14570
|
__name: "MaterialIcon",
|
|
14583
14571
|
props: {
|
|
14584
14572
|
icon: {},
|
|
@@ -14593,17 +14581,17 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
14593
14581
|
};
|
|
14594
14582
|
}
|
|
14595
14583
|
});
|
|
14596
|
-
const _hoisted_1
|
|
14597
|
-
const _hoisted_2$
|
|
14598
|
-
_hoisted_1
|
|
14584
|
+
const _hoisted_1$$ = /* @__PURE__ */ createElementVNode("div", { class: "icon-font top-arrow" }, "chevron_right", -1);
|
|
14585
|
+
const _hoisted_2$S = [
|
|
14586
|
+
_hoisted_1$$
|
|
14599
14587
|
];
|
|
14600
|
-
const _hoisted_3$
|
|
14601
|
-
const _hoisted_4$
|
|
14602
|
-
const _hoisted_5$
|
|
14603
|
-
const _hoisted_6$
|
|
14588
|
+
const _hoisted_3$K = { class: "full-nav" };
|
|
14589
|
+
const _hoisted_4$t = { class: "nav-scroll" };
|
|
14590
|
+
const _hoisted_5$n = { class: "nav-links-wrapper" };
|
|
14591
|
+
const _hoisted_6$i = { class: "icon-font" };
|
|
14604
14592
|
const _hoisted_7$d = { class: "tooltip" };
|
|
14605
14593
|
const _hoisted_8$7 = { class: "bot-buttons-wrapper" };
|
|
14606
|
-
const _sfc_main$
|
|
14594
|
+
const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
14607
14595
|
__name: "NavBar",
|
|
14608
14596
|
props: {
|
|
14609
14597
|
links: {},
|
|
@@ -14627,10 +14615,10 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
14627
14615
|
role: "button",
|
|
14628
14616
|
"aria-label": "Toggle Navigation",
|
|
14629
14617
|
tabindex: "0"
|
|
14630
|
-
}, _hoisted_2$
|
|
14631
|
-
createElementVNode("div", _hoisted_3$
|
|
14632
|
-
createElementVNode("div", _hoisted_4$
|
|
14633
|
-
createElementVNode("div", _hoisted_5$
|
|
14618
|
+
}, _hoisted_2$S, 32),
|
|
14619
|
+
createElementVNode("div", _hoisted_3$K, [
|
|
14620
|
+
createElementVNode("div", _hoisted_4$t, [
|
|
14621
|
+
createElementVNode("div", _hoisted_5$n, [
|
|
14634
14622
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList((_a2 = _ctx.links) == null ? void 0 : _a2.call(_ctx), (link) => {
|
|
14635
14623
|
return openBlock(), createBlock(_component_RouterLink, {
|
|
14636
14624
|
class: "nav-button",
|
|
@@ -14638,7 +14626,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
14638
14626
|
key: link.label
|
|
14639
14627
|
}, {
|
|
14640
14628
|
default: withCtx(() => [
|
|
14641
|
-
createElementVNode("div", _hoisted_6$
|
|
14629
|
+
createElementVNode("div", _hoisted_6$i, toDisplayString(link.materialIcon), 1),
|
|
14642
14630
|
createElementVNode("div", _hoisted_7$d, toDisplayString(link.localized ? link.localized : link.label), 1)
|
|
14643
14631
|
]),
|
|
14644
14632
|
_: 2
|
|
@@ -14654,15 +14642,15 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
14654
14642
|
};
|
|
14655
14643
|
}
|
|
14656
14644
|
});
|
|
14657
|
-
const _hoisted_1$
|
|
14645
|
+
const _hoisted_1$_ = {
|
|
14658
14646
|
key: 0,
|
|
14659
14647
|
class: "loading"
|
|
14660
14648
|
};
|
|
14661
|
-
const _hoisted_2$
|
|
14649
|
+
const _hoisted_2$R = {
|
|
14662
14650
|
key: 1,
|
|
14663
14651
|
class: "btn-flex"
|
|
14664
14652
|
};
|
|
14665
|
-
const _sfc_main$
|
|
14653
|
+
const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
14666
14654
|
__name: "Btn",
|
|
14667
14655
|
props: {
|
|
14668
14656
|
disabled: { type: Boolean, default: false },
|
|
@@ -14683,8 +14671,8 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
14683
14671
|
},
|
|
14684
14672
|
setup(__props) {
|
|
14685
14673
|
useCssVars((_ctx) => ({
|
|
14686
|
-
"
|
|
14687
|
-
"
|
|
14674
|
+
"0bd3bef7": computedBackgroundColor.value,
|
|
14675
|
+
"1b1b6b12": cumputedTextColor.value
|
|
14688
14676
|
}));
|
|
14689
14677
|
const slots = useSlots();
|
|
14690
14678
|
const props2 = __props;
|
|
@@ -14697,13 +14685,22 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
14697
14685
|
color: props2.flat ? "var(--bgl-black)" : "var(--bgl-white)"
|
|
14698
14686
|
})
|
|
14699
14687
|
);
|
|
14688
|
+
function getThemeColors(theme) {
|
|
14689
|
+
return {
|
|
14690
|
+
...computedDefaultColors.value,
|
|
14691
|
+
...theme,
|
|
14692
|
+
color: props2.flat ? theme.backgroundColor : theme.color
|
|
14693
|
+
};
|
|
14694
|
+
}
|
|
14700
14695
|
const themes = {
|
|
14701
|
-
red: {
|
|
14702
|
-
black: {
|
|
14703
|
-
green: {
|
|
14704
|
-
|
|
14705
|
-
|
|
14706
|
-
|
|
14696
|
+
red: getThemeColors({ backgroundColor: "var(--bgl-red)" }),
|
|
14697
|
+
black: getThemeColors({ backgroundColor: "var(--bgl-black)" }),
|
|
14698
|
+
green: getThemeColors({ backgroundColor: "var(--bgl-green)", color: "var(--bgl-white)" }),
|
|
14699
|
+
primary: getThemeColors({ backgroundColor: "var(--bgl-primary)", color: "var(--bgl-white)" }),
|
|
14700
|
+
gray: getThemeColors({ backgroundColor: "var(--bgl-gray-light)", color: "var(--bgl-black)" }),
|
|
14701
|
+
light: getThemeColors({ backgroundColor: "var(--bgl-primary-light)", color: "var(--bgl-primary)" }),
|
|
14702
|
+
"gray-light": getThemeColors({ backgroundColor: "var(--bgl-gray-light)", color: "var(--bgl-gray)" }),
|
|
14703
|
+
blue: getThemeColors({})
|
|
14707
14704
|
};
|
|
14708
14705
|
const cumputedTextColor = computed(
|
|
14709
14706
|
() => {
|
|
@@ -14733,8 +14730,8 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
14733
14730
|
})
|
|
14734
14731
|
}, {
|
|
14735
14732
|
default: withCtx(() => [
|
|
14736
|
-
_ctx.loading ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
14737
|
-
_ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$
|
|
14733
|
+
_ctx.loading ? (openBlock(), createElementBlock("div", _hoisted_1$_)) : (openBlock(), createElementBlock("div", _hoisted_2$R, [
|
|
14734
|
+
_ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$W), {
|
|
14738
14735
|
key: 0,
|
|
14739
14736
|
icon: _ctx.icon
|
|
14740
14737
|
}, null, 8, ["icon"])) : createCommentVNode("", true),
|
|
@@ -14742,7 +14739,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
14742
14739
|
!unref(slots)["default"] && _ctx.value ? (openBlock(), createElementBlock(Fragment$1, { key: 1 }, [
|
|
14743
14740
|
createTextVNode(toDisplayString(_ctx.value), 1)
|
|
14744
14741
|
], 64)) : createCommentVNode("", true),
|
|
14745
|
-
props2["icon.end"] ? (openBlock(), createBlock(unref(_sfc_main$
|
|
14742
|
+
props2["icon.end"] ? (openBlock(), createBlock(unref(_sfc_main$W), {
|
|
14746
14743
|
key: 2,
|
|
14747
14744
|
icon: props2["icon.end"]
|
|
14748
14745
|
}, null, 8, ["icon"])) : createCommentVNode("", true)
|
|
@@ -14760,11 +14757,11 @@ const _export_sfc = (sfc, props2) => {
|
|
|
14760
14757
|
}
|
|
14761
14758
|
return target;
|
|
14762
14759
|
};
|
|
14763
|
-
const Btn = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
14764
|
-
const _hoisted_1$
|
|
14765
|
-
const _hoisted_2$
|
|
14766
|
-
const _hoisted_3$
|
|
14767
|
-
const _sfc_main$
|
|
14760
|
+
const Btn = /* @__PURE__ */ _export_sfc(_sfc_main$U, [["__scopeId", "data-v-845b751e"]]);
|
|
14761
|
+
const _hoisted_1$Z = { class: "tool-bar" };
|
|
14762
|
+
const _hoisted_2$Q = { class: "modal-title" };
|
|
14763
|
+
const _hoisted_3$J = { class: "modal-footer mt-3" };
|
|
14764
|
+
const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
14768
14765
|
__name: "Modal",
|
|
14769
14766
|
props: {
|
|
14770
14767
|
side: { type: Boolean },
|
|
@@ -14810,7 +14807,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
14810
14807
|
onClick: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
14811
14808
|
}, ["stop"]))
|
|
14812
14809
|
}, [
|
|
14813
|
-
createElementVNode("header", _hoisted_1$
|
|
14810
|
+
createElementVNode("header", _hoisted_1$Z, [
|
|
14814
14811
|
renderSlot(_ctx.$slots, "toolbar"),
|
|
14815
14812
|
createVNode(unref(Btn), {
|
|
14816
14813
|
style: normalizeStyle({ float: _ctx.side ? "left" : "right" }),
|
|
@@ -14818,10 +14815,10 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
14818
14815
|
icon: "close",
|
|
14819
14816
|
onClick: closeModal
|
|
14820
14817
|
}, null, 8, ["style"]),
|
|
14821
|
-
createElementVNode("h3", _hoisted_2$
|
|
14818
|
+
createElementVNode("h3", _hoisted_2$Q, toDisplayString(_ctx.title), 1)
|
|
14822
14819
|
]),
|
|
14823
14820
|
renderSlot(_ctx.$slots, "default"),
|
|
14824
|
-
createElementVNode("footer", _hoisted_3$
|
|
14821
|
+
createElementVNode("footer", _hoisted_3$J, [
|
|
14825
14822
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList(_ctx.actions, (action, i3) => {
|
|
14826
14823
|
return openBlock(), createBlock(unref(Btn), mergeProps({
|
|
14827
14824
|
key: i3,
|
|
@@ -14836,10 +14833,10 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
14836
14833
|
};
|
|
14837
14834
|
}
|
|
14838
14835
|
});
|
|
14839
|
-
const _hoisted_1$
|
|
14840
|
-
const _hoisted_2$
|
|
14841
|
-
const _hoisted_3$
|
|
14842
|
-
const _sfc_main$
|
|
14836
|
+
const _hoisted_1$Y = { class: "dropdown-title" };
|
|
14837
|
+
const _hoisted_2$P = { class: "dropdown-body" };
|
|
14838
|
+
const _hoisted_3$I = ["onClick"];
|
|
14839
|
+
const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
14843
14840
|
__name: "DropDown",
|
|
14844
14841
|
props: {
|
|
14845
14842
|
modelValue: String,
|
|
@@ -14865,31 +14862,31 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
14865
14862
|
class: normalizeClass(["dropdown", { opendrop: unref(isOpen) }]),
|
|
14866
14863
|
onClick: toggleDropdown
|
|
14867
14864
|
}, [
|
|
14868
|
-
createElementVNode("div", _hoisted_1$
|
|
14865
|
+
createElementVNode("div", _hoisted_1$Y, [
|
|
14869
14866
|
createTextVNode(toDisplayString(unref(selectedOption) || __props.placeholder) + " ", 1),
|
|
14870
|
-
createVNode(unref(_sfc_main$
|
|
14867
|
+
createVNode(unref(_sfc_main$W), { icon: "keyboard_arrow_down" })
|
|
14871
14868
|
]),
|
|
14872
|
-
createElementVNode("div", _hoisted_2$
|
|
14869
|
+
createElementVNode("div", _hoisted_2$P, [
|
|
14873
14870
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList(__props.options, (option2, index2) => {
|
|
14874
14871
|
return openBlock(), createElementBlock("p", {
|
|
14875
14872
|
key: index2,
|
|
14876
14873
|
onClick: withModifiers(($event) => selectOption(option2, index2), ["stop"])
|
|
14877
|
-
}, toDisplayString(option2), 9, _hoisted_3$
|
|
14874
|
+
}, toDisplayString(option2), 9, _hoisted_3$I);
|
|
14878
14875
|
}), 128))
|
|
14879
14876
|
])
|
|
14880
14877
|
], 2);
|
|
14881
14878
|
};
|
|
14882
14879
|
}
|
|
14883
14880
|
});
|
|
14884
|
-
const _hoisted_1$
|
|
14885
|
-
const _hoisted_2$
|
|
14886
|
-
const _hoisted_3$
|
|
14881
|
+
const _hoisted_1$X = { class: "card list-view grid thin" };
|
|
14882
|
+
const _hoisted_2$O = { class: "list-header flex gap-3 align-items-top" };
|
|
14883
|
+
const _hoisted_3$H = {
|
|
14887
14884
|
key: 0,
|
|
14888
14885
|
class: "bagel-input search-wrap"
|
|
14889
14886
|
};
|
|
14890
|
-
const _hoisted_4$
|
|
14891
|
-
const _hoisted_5$
|
|
14892
|
-
const _sfc_main$
|
|
14887
|
+
const _hoisted_4$s = ["placeholder"];
|
|
14888
|
+
const _hoisted_5$m = { class: "list-content grid auto-flow-rows align-items-start" };
|
|
14889
|
+
const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
14893
14890
|
__name: "ListView",
|
|
14894
14891
|
props: {
|
|
14895
14892
|
enableAdd: { type: Boolean },
|
|
@@ -14905,17 +14902,17 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
14905
14902
|
debounce(() => emit2("debounce", searchTerm.value));
|
|
14906
14903
|
};
|
|
14907
14904
|
return (_ctx, _cache) => {
|
|
14908
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
14909
|
-
createElementVNode("div", _hoisted_2$
|
|
14910
|
-
_ctx.enableSearch ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
14905
|
+
return openBlock(), createElementBlock("div", _hoisted_1$X, [
|
|
14906
|
+
createElementVNode("div", _hoisted_2$O, [
|
|
14907
|
+
_ctx.enableSearch ? (openBlock(), createElementBlock("div", _hoisted_3$H, [
|
|
14911
14908
|
withDirectives(createElementVNode("input", {
|
|
14912
14909
|
placeholder: _ctx.searchPlaceholder,
|
|
14913
14910
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => searchTerm.value = $event),
|
|
14914
14911
|
onInput: _cache[1] || (_cache[1] = ($event) => search())
|
|
14915
|
-
}, null, 40, _hoisted_4$
|
|
14912
|
+
}, null, 40, _hoisted_4$s), [
|
|
14916
14913
|
[vModelText, searchTerm.value]
|
|
14917
14914
|
]),
|
|
14918
|
-
createVNode(unref(_sfc_main$
|
|
14915
|
+
createVNode(unref(_sfc_main$W), {
|
|
14919
14916
|
class: "txtgray",
|
|
14920
14917
|
icon: "search"
|
|
14921
14918
|
})
|
|
@@ -14926,16 +14923,16 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
14926
14923
|
onClick: _cache[2] || (_cache[2] = ($event) => emit2("add"))
|
|
14927
14924
|
})) : createCommentVNode("", true)
|
|
14928
14925
|
]),
|
|
14929
|
-
createElementVNode("div", _hoisted_5$
|
|
14926
|
+
createElementVNode("div", _hoisted_5$m, [
|
|
14930
14927
|
renderSlot(_ctx.$slots, "default")
|
|
14931
14928
|
])
|
|
14932
14929
|
]);
|
|
14933
14930
|
};
|
|
14934
14931
|
}
|
|
14935
14932
|
});
|
|
14936
|
-
const _hoisted_1$
|
|
14937
|
-
const _hoisted_2$
|
|
14938
|
-
const _sfc_main$
|
|
14933
|
+
const _hoisted_1$W = { class: "txt16 no-margin" };
|
|
14934
|
+
const _hoisted_2$N = { class: "txt14 no-margin txtgray" };
|
|
14935
|
+
const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
14939
14936
|
__name: "ListItem",
|
|
14940
14937
|
props: {
|
|
14941
14938
|
to: {}
|
|
@@ -14947,10 +14944,10 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
14947
14944
|
class: "list-item ellipsis"
|
|
14948
14945
|
}, {
|
|
14949
14946
|
default: withCtx(() => [
|
|
14950
|
-
createElementVNode("p", _hoisted_1$
|
|
14947
|
+
createElementVNode("p", _hoisted_1$W, [
|
|
14951
14948
|
renderSlot(_ctx.$slots, "default")
|
|
14952
14949
|
]),
|
|
14953
|
-
createElementVNode("p", _hoisted_2$
|
|
14950
|
+
createElementVNode("p", _hoisted_2$N, [
|
|
14954
14951
|
renderSlot(_ctx.$slots, "subtitle")
|
|
14955
14952
|
])
|
|
14956
14953
|
]),
|
|
@@ -14959,11 +14956,11 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
14959
14956
|
};
|
|
14960
14957
|
}
|
|
14961
14958
|
});
|
|
14962
|
-
const _hoisted_1$
|
|
14963
|
-
const _hoisted_2$
|
|
14964
|
-
const _hoisted_3$
|
|
14965
|
-
const _hoisted_4$
|
|
14966
|
-
const _sfc_main$
|
|
14959
|
+
const _hoisted_1$V = { class: "h-100 grid list-view gap-3" };
|
|
14960
|
+
const _hoisted_2$M = { class: "card tabs-top" };
|
|
14961
|
+
const _hoisted_3$G = { class: "tabs grid auto-flow-columns fit-content" };
|
|
14962
|
+
const _hoisted_4$r = ["onClick"];
|
|
14963
|
+
const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
14967
14964
|
__name: "TabbedLayout",
|
|
14968
14965
|
props: {
|
|
14969
14966
|
title: {},
|
|
@@ -14991,10 +14988,10 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
14991
14988
|
activeTab.value = firstTab;
|
|
14992
14989
|
});
|
|
14993
14990
|
return (_ctx, _cache) => {
|
|
14994
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
14995
|
-
createElementVNode("div", _hoisted_2$
|
|
14991
|
+
return openBlock(), createElementBlock("div", _hoisted_1$V, [
|
|
14992
|
+
createElementVNode("div", _hoisted_2$M, [
|
|
14996
14993
|
renderSlot(_ctx.$slots, "top-section", {}, void 0, true),
|
|
14997
|
-
createElementVNode("div", _hoisted_3$
|
|
14994
|
+
createElementVNode("div", _hoisted_3$G, [
|
|
14998
14995
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList(_ctx.tabs, (tab) => {
|
|
14999
14996
|
return openBlock(), createElementBlock("div", {
|
|
15000
14997
|
class: normalizeClass([{
|
|
@@ -15002,7 +14999,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
15002
14999
|
}, "tab"]),
|
|
15003
15000
|
key: tab,
|
|
15004
15001
|
onClick: ($event) => changeTab(tab)
|
|
15005
|
-
}, toDisplayString(tab), 11, _hoisted_4$
|
|
15002
|
+
}, toDisplayString(tab), 11, _hoisted_4$r);
|
|
15006
15003
|
}), 128))
|
|
15007
15004
|
])
|
|
15008
15005
|
]),
|
|
@@ -15018,16 +15015,16 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
15018
15015
|
};
|
|
15019
15016
|
}
|
|
15020
15017
|
});
|
|
15021
|
-
const TabbedLayout = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
15022
|
-
const _hoisted_1$
|
|
15023
|
-
const _hoisted_2$
|
|
15024
|
-
const _hoisted_3$
|
|
15025
|
-
const _hoisted_4$
|
|
15026
|
-
const _hoisted_5$
|
|
15027
|
-
const _hoisted_6$
|
|
15018
|
+
const TabbedLayout = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["__scopeId", "data-v-3941cced"]]);
|
|
15019
|
+
const _hoisted_1$U = { class: "comments-wrap" };
|
|
15020
|
+
const _hoisted_2$L = { class: "comment-list" };
|
|
15021
|
+
const _hoisted_3$F = { class: "comment-top" };
|
|
15022
|
+
const _hoisted_4$q = { class: "comment-owner" };
|
|
15023
|
+
const _hoisted_5$l = { class: "comment-time" };
|
|
15024
|
+
const _hoisted_6$h = { class: "comment-actions" };
|
|
15028
15025
|
const _hoisted_7$c = ["innerHTML"];
|
|
15029
15026
|
const _hoisted_8$6 = { class: "new-comment" };
|
|
15030
|
-
const _sfc_main$
|
|
15027
|
+
const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
15031
15028
|
__name: "Comments",
|
|
15032
15029
|
props: {
|
|
15033
15030
|
ref_table: {},
|
|
@@ -15070,8 +15067,8 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
15070
15067
|
void fetchData();
|
|
15071
15068
|
};
|
|
15072
15069
|
return (_ctx, _cache) => {
|
|
15073
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
15074
|
-
createElementVNode("div", _hoisted_2$
|
|
15070
|
+
return openBlock(), createElementBlock("div", _hoisted_1$U, [
|
|
15071
|
+
createElementVNode("div", _hoisted_2$L, [
|
|
15075
15072
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList(unref(comments), (comment) => {
|
|
15076
15073
|
var _a2, _b, _c;
|
|
15077
15074
|
return openBlock(), createElementBlock("div", {
|
|
@@ -15081,23 +15078,23 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
15081
15078
|
}, "comment"]),
|
|
15082
15079
|
key: comment.id
|
|
15083
15080
|
}, [
|
|
15084
|
-
createElementVNode("div", _hoisted_3$
|
|
15085
|
-
createElementVNode("div", _hoisted_4$
|
|
15086
|
-
createElementVNode("div", _hoisted_5$
|
|
15087
|
-
createElementVNode("div", _hoisted_6$
|
|
15088
|
-
createVNode(unref(_sfc_main$
|
|
15081
|
+
createElementVNode("div", _hoisted_3$F, [
|
|
15082
|
+
createElementVNode("div", _hoisted_4$q, toDisplayString(comment.sender.first_name) + " " + toDisplayString(comment.sender.last_name), 1),
|
|
15083
|
+
createElementVNode("div", _hoisted_5$l, toDisplayString(comment.updated_at.split("T")[0]), 1),
|
|
15084
|
+
createElementVNode("div", _hoisted_6$h, [
|
|
15085
|
+
createVNode(unref(_sfc_main$W), {
|
|
15089
15086
|
size: 1,
|
|
15090
15087
|
class: "edit",
|
|
15091
15088
|
icon: "edit",
|
|
15092
15089
|
onClick: ($event) => isRef(editComment) ? editComment.value = comment : editComment = comment
|
|
15093
15090
|
}, null, 8, ["onClick"]),
|
|
15094
|
-
createVNode(unref(_sfc_main$
|
|
15091
|
+
createVNode(unref(_sfc_main$W), {
|
|
15095
15092
|
size: 1.2,
|
|
15096
15093
|
class: "delete",
|
|
15097
15094
|
icon: "delete",
|
|
15098
15095
|
onClick: ($event) => deleteComment(comment.id)
|
|
15099
15096
|
}, null, 8, ["onClick"]),
|
|
15100
|
-
createVNode(unref(_sfc_main$
|
|
15097
|
+
createVNode(unref(_sfc_main$W), {
|
|
15101
15098
|
size: 1.2,
|
|
15102
15099
|
class: "save",
|
|
15103
15100
|
icon: "save",
|
|
@@ -15105,7 +15102,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
15105
15102
|
})
|
|
15106
15103
|
])
|
|
15107
15104
|
]),
|
|
15108
|
-
unref(editComment) !== null && ((_c = unref(editComment)) == null ? void 0 : _c.id) === comment.id ? (openBlock(), createBlock(unref(_sfc_main$
|
|
15105
|
+
unref(editComment) !== null && ((_c = unref(editComment)) == null ? void 0 : _c.id) === comment.id ? (openBlock(), createBlock(unref(_sfc_main$X), {
|
|
15109
15106
|
key: 0,
|
|
15110
15107
|
modelValue: unref(editComment).body_html,
|
|
15111
15108
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(editComment).body_html = $event),
|
|
@@ -15119,7 +15116,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
15119
15116
|
}), 128))
|
|
15120
15117
|
]),
|
|
15121
15118
|
createElementVNode("div", _hoisted_8$6, [
|
|
15122
|
-
createVNode(unref(_sfc_main$
|
|
15119
|
+
createVNode(unref(_sfc_main$X), {
|
|
15123
15120
|
class: "comment-input",
|
|
15124
15121
|
modelValue: unref(bodyHtml),
|
|
15125
15122
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(bodyHtml) ? bodyHtml.value = $event : bodyHtml = $event),
|
|
@@ -15139,10 +15136,10 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
15139
15136
|
};
|
|
15140
15137
|
}
|
|
15141
15138
|
});
|
|
15142
|
-
const Comments = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
15143
|
-
const _hoisted_1$
|
|
15144
|
-
const _hoisted_2$
|
|
15145
|
-
const _sfc_main$
|
|
15139
|
+
const Comments = /* @__PURE__ */ _export_sfc(_sfc_main$O, [["__scopeId", "data-v-2eead7c8"]]);
|
|
15140
|
+
const _hoisted_1$T = { class: "page-top" };
|
|
15141
|
+
const _hoisted_2$K = { class: "top-title" };
|
|
15142
|
+
const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
15146
15143
|
__name: "PageTitle",
|
|
15147
15144
|
props: {
|
|
15148
15145
|
value: {
|
|
@@ -15152,8 +15149,8 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
15152
15149
|
},
|
|
15153
15150
|
setup(__props) {
|
|
15154
15151
|
return (_ctx, _cache) => {
|
|
15155
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
15156
|
-
createElementVNode("h1", _hoisted_2$
|
|
15152
|
+
return openBlock(), createElementBlock("div", _hoisted_1$T, [
|
|
15153
|
+
createElementVNode("h1", _hoisted_2$K, [
|
|
15157
15154
|
renderSlot(_ctx.$slots, "default"),
|
|
15158
15155
|
createTextVNode(" " + toDisplayString(__props.value), 1)
|
|
15159
15156
|
])
|
|
@@ -15161,9 +15158,9 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
15161
15158
|
};
|
|
15162
15159
|
}
|
|
15163
15160
|
});
|
|
15164
|
-
const _hoisted_1$
|
|
15165
|
-
const _hoisted_2$
|
|
15166
|
-
const _sfc_main$
|
|
15161
|
+
const _hoisted_1$S = { class: "tool-bar" };
|
|
15162
|
+
const _hoisted_2$J = { class: "modal-title" };
|
|
15163
|
+
const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
15167
15164
|
__name: "ModalForm",
|
|
15168
15165
|
props: {
|
|
15169
15166
|
side: { type: Boolean },
|
|
@@ -15236,7 +15233,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
15236
15233
|
onClick: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
15237
15234
|
}, ["stop"]))
|
|
15238
15235
|
}, [
|
|
15239
|
-
createElementVNode("header", _hoisted_1$
|
|
15236
|
+
createElementVNode("header", _hoisted_1$S, [
|
|
15240
15237
|
renderSlot(_ctx.$slots, "toolbar", {}, void 0, true),
|
|
15241
15238
|
createVNode(unref(Btn), {
|
|
15242
15239
|
style: normalizeStyle({ float: _ctx.side ? "left" : "right" }),
|
|
@@ -15244,9 +15241,9 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
15244
15241
|
icon: "close",
|
|
15245
15242
|
onClick: closeModal
|
|
15246
15243
|
}, null, 8, ["style"]),
|
|
15247
|
-
createElementVNode("h3", _hoisted_2$
|
|
15244
|
+
createElementVNode("h3", _hoisted_2$J, toDisplayString(_ctx.title), 1)
|
|
15248
15245
|
]),
|
|
15249
|
-
createVNode(unref(_sfc_main$
|
|
15246
|
+
createVNode(unref(_sfc_main$L), {
|
|
15250
15247
|
onDelete: _ctx.onDelete ? runDelete : void 0,
|
|
15251
15248
|
modelValue: _ctx.modelValue,
|
|
15252
15249
|
"onUpdate:modelValue": handleEmit,
|
|
@@ -15258,8 +15255,8 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
15258
15255
|
};
|
|
15259
15256
|
}
|
|
15260
15257
|
});
|
|
15261
|
-
const ModalForm = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
15262
|
-
const _sfc_main$
|
|
15258
|
+
const ModalForm = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["__scopeId", "data-v-1799b7d0"]]);
|
|
15259
|
+
const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
15263
15260
|
__name: "FormSchema",
|
|
15264
15261
|
props: {
|
|
15265
15262
|
modelValue: {},
|
|
@@ -15332,14 +15329,14 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
15332
15329
|
};
|
|
15333
15330
|
}
|
|
15334
15331
|
});
|
|
15335
|
-
const _hoisted_1$
|
|
15336
|
-
const _hoisted_2$
|
|
15337
|
-
const _hoisted_3$
|
|
15338
|
-
const _hoisted_4$
|
|
15339
|
-
const _hoisted_5$
|
|
15340
|
-
const _hoisted_6$
|
|
15332
|
+
const _hoisted_1$R = { class: "table-list-wrap h-100" };
|
|
15333
|
+
const _hoisted_2$I = { class: "infinite-wrapper" };
|
|
15334
|
+
const _hoisted_3$E = { class: "row first-row" };
|
|
15335
|
+
const _hoisted_4$p = ["onClick"];
|
|
15336
|
+
const _hoisted_5$k = { class: "flex" };
|
|
15337
|
+
const _hoisted_6$g = ["onClick"];
|
|
15341
15338
|
const _hoisted_7$b = { key: 1 };
|
|
15342
|
-
const _sfc_main$
|
|
15339
|
+
const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
15343
15340
|
__name: "TableSchema",
|
|
15344
15341
|
props: {
|
|
15345
15342
|
data: {},
|
|
@@ -15354,7 +15351,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
15354
15351
|
const selectElement = (data2) => {
|
|
15355
15352
|
emit2("select", data2);
|
|
15356
15353
|
};
|
|
15357
|
-
const
|
|
15354
|
+
const bindAttrs2 = (attrs, field, row) => {
|
|
15358
15355
|
const arr = Object.entries(attrs || {}).map(([key, value]) => [
|
|
15359
15356
|
key,
|
|
15360
15357
|
typeof value === "function" ? value(field, row) : value
|
|
@@ -15385,27 +15382,27 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
15385
15382
|
}
|
|
15386
15383
|
);
|
|
15387
15384
|
return (_ctx, _cache) => {
|
|
15388
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
15389
|
-
createElementVNode("table", _hoisted_2$
|
|
15390
|
-
createElementVNode("thead", _hoisted_3$
|
|
15385
|
+
return openBlock(), createElementBlock("div", _hoisted_1$R, [
|
|
15386
|
+
createElementVNode("table", _hoisted_2$I, [
|
|
15387
|
+
createElementVNode("thead", _hoisted_3$E, [
|
|
15391
15388
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList(columns.value, (field) => {
|
|
15392
15389
|
return openBlock(), createElementBlock("th", {
|
|
15393
15390
|
class: "col",
|
|
15394
15391
|
key: field.id,
|
|
15395
15392
|
onClick: ($event) => sort2(field.id)
|
|
15396
15393
|
}, [
|
|
15397
|
-
createElementVNode("div", _hoisted_5$
|
|
15394
|
+
createElementVNode("div", _hoisted_5$k, [
|
|
15398
15395
|
createTextVNode(toDisplayString((field == null ? void 0 : field.label) || (field == null ? void 0 : field.id)) + " ", 1),
|
|
15399
15396
|
createElementVNode("div", {
|
|
15400
15397
|
class: normalizeClass(["list-arrows", { sorted: unref(sortField) === field.id }])
|
|
15401
15398
|
}, [
|
|
15402
|
-
createVNode(unref(_sfc_main$
|
|
15399
|
+
createVNode(unref(_sfc_main$W), {
|
|
15403
15400
|
class: normalizeClass({ desc: unref(sortDirection) === "DESC" }),
|
|
15404
15401
|
icon: "keyboard_arrow_up"
|
|
15405
15402
|
}, null, 8, ["class"])
|
|
15406
15403
|
], 2)
|
|
15407
15404
|
])
|
|
15408
|
-
], 8, _hoisted_4$
|
|
15405
|
+
], 8, _hoisted_4$p);
|
|
15409
15406
|
}), 128))
|
|
15410
15407
|
]),
|
|
15411
15408
|
createElementVNode("tbody", {
|
|
@@ -15429,7 +15426,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
15429
15426
|
row,
|
|
15430
15427
|
field
|
|
15431
15428
|
}, void 0, true) : (openBlock(), createElementBlock("div", _hoisted_7$b, [
|
|
15432
|
-
(field["v-if"] ? field["v-if"](row[field.id], row) : true) ? (openBlock(), createBlock(resolveDynamicComponent(field.$el || field.$cmp || "div"), mergeProps({ key: 0 },
|
|
15429
|
+
(field["v-if"] ? field["v-if"](row[field.id], row) : true) ? (openBlock(), createBlock(resolveDynamicComponent(field.$el || field.$cmp || "div"), mergeProps({ key: 0 }, bindAttrs2(field.attrs, row[field.id], row), {
|
|
15433
15430
|
src: field.$el === "img" ? (_a2 = row[field.id]) == null ? void 0 : _a2.url : "",
|
|
15434
15431
|
"onUpdate:modelValue": ($event) => {
|
|
15435
15432
|
var _a3;
|
|
@@ -15448,7 +15445,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
15448
15445
|
]))
|
|
15449
15446
|
]);
|
|
15450
15447
|
}), 128))
|
|
15451
|
-
], 8, _hoisted_6$
|
|
15448
|
+
], 8, _hoisted_6$g);
|
|
15452
15449
|
}), 128))
|
|
15453
15450
|
], 2)
|
|
15454
15451
|
])
|
|
@@ -15456,16 +15453,16 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
15456
15453
|
};
|
|
15457
15454
|
}
|
|
15458
15455
|
});
|
|
15459
|
-
const TableSchema = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
15460
|
-
const _sfc_main$
|
|
15461
|
-
const _hoisted_1$
|
|
15456
|
+
const TableSchema = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["__scopeId", "data-v-f3a410c2"]]);
|
|
15457
|
+
const _sfc_main$J = {};
|
|
15458
|
+
const _hoisted_1$Q = { class: "flex space-between" };
|
|
15462
15459
|
function _sfc_render$1(_ctx, _cache) {
|
|
15463
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
15460
|
+
return openBlock(), createElementBlock("div", _hoisted_1$Q, [
|
|
15464
15461
|
renderSlot(_ctx.$slots, "default")
|
|
15465
15462
|
]);
|
|
15466
15463
|
}
|
|
15467
|
-
const TopBar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
15468
|
-
const _sfc_main$
|
|
15464
|
+
const TopBar = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["render", _sfc_render$1]]);
|
|
15465
|
+
const _sfc_main$I = {};
|
|
15469
15466
|
function _sfc_render(_ctx, _cache) {
|
|
15470
15467
|
const _component_router_view = resolveComponent("router-view");
|
|
15471
15468
|
return openBlock(), createBlock(_component_router_view, null, {
|
|
@@ -15487,9 +15484,9 @@ function _sfc_render(_ctx, _cache) {
|
|
|
15487
15484
|
_: 1
|
|
15488
15485
|
});
|
|
15489
15486
|
}
|
|
15490
|
-
const RouterWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
15491
|
-
const _hoisted_1$
|
|
15492
|
-
const _sfc_main$
|
|
15487
|
+
const RouterWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["render", _sfc_render]]);
|
|
15488
|
+
const _hoisted_1$P = { class: "card h-100 thin" };
|
|
15489
|
+
const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
15493
15490
|
__name: "ContactSubmissions",
|
|
15494
15491
|
props: {
|
|
15495
15492
|
person_id: {
|
|
@@ -15519,7 +15516,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
15519
15516
|
void getData();
|
|
15520
15517
|
});
|
|
15521
15518
|
return (_ctx, _cache) => {
|
|
15522
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
15519
|
+
return openBlock(), createElementBlock("div", _hoisted_1$P, [
|
|
15523
15520
|
createVNode(unref(TableSchema), {
|
|
15524
15521
|
schema: schema2,
|
|
15525
15522
|
data: unref(data2)
|
|
@@ -15528,15 +15525,15 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
15528
15525
|
};
|
|
15529
15526
|
}
|
|
15530
15527
|
});
|
|
15531
|
-
const _hoisted_1$
|
|
15528
|
+
const _hoisted_1$O = {
|
|
15532
15529
|
key: 0,
|
|
15533
15530
|
class: "person-card-edit flex gap-2"
|
|
15534
15531
|
};
|
|
15535
|
-
const _hoisted_2$
|
|
15536
|
-
const _hoisted_3$
|
|
15537
|
-
const _hoisted_4$
|
|
15538
|
-
const _hoisted_5$
|
|
15539
|
-
const _hoisted_6$
|
|
15532
|
+
const _hoisted_2$H = { class: "person-card-icon-wrap" };
|
|
15533
|
+
const _hoisted_3$D = { class: "person-card-icon" };
|
|
15534
|
+
const _hoisted_4$o = { class: "person-card-name txt20" };
|
|
15535
|
+
const _hoisted_5$j = { class: "person-card-details-wrap" };
|
|
15536
|
+
const _hoisted_6$f = {
|
|
15540
15537
|
key: 0,
|
|
15541
15538
|
class: "person-card-details"
|
|
15542
15539
|
};
|
|
@@ -15550,7 +15547,7 @@ const _hoisted_8$5 = {
|
|
|
15550
15547
|
};
|
|
15551
15548
|
const _hoisted_9$3 = { key: 0 };
|
|
15552
15549
|
const _hoisted_10$3 = { key: 1 };
|
|
15553
|
-
const _sfc_main$
|
|
15550
|
+
const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
15554
15551
|
__name: "PersonPreview",
|
|
15555
15552
|
props: {
|
|
15556
15553
|
person: {},
|
|
@@ -15580,7 +15577,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
15580
15577
|
(...args) => _ctx.onClick && _ctx.onClick(...args)),
|
|
15581
15578
|
class: "person-card"
|
|
15582
15579
|
}, [
|
|
15583
|
-
!_ctx.onClick ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
15580
|
+
!_ctx.onClick ? (openBlock(), createElementBlock("div", _hoisted_1$O, [
|
|
15584
15581
|
!_ctx.$route.path.match("/search") ? (openBlock(), createBlock(unref(Btn), {
|
|
15585
15582
|
key: 0,
|
|
15586
15583
|
round: "",
|
|
@@ -15597,13 +15594,13 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
15597
15594
|
icon: "edit"
|
|
15598
15595
|
})
|
|
15599
15596
|
])) : createCommentVNode("", true),
|
|
15600
|
-
createElementVNode("div", _hoisted_2$
|
|
15601
|
-
createElementVNode("p", _hoisted_3$
|
|
15602
|
-
createElementVNode("p", _hoisted_4$
|
|
15597
|
+
createElementVNode("div", _hoisted_2$H, [
|
|
15598
|
+
createElementVNode("p", _hoisted_3$D, toDisplayString(unref(initials)(_ctx.person.first_name, _ctx.person.last_name)), 1),
|
|
15599
|
+
createElementVNode("p", _hoisted_4$o, toDisplayString(_ctx.person.first_name) + " " + toDisplayString(_ctx.person.last_name), 1)
|
|
15603
15600
|
]),
|
|
15604
|
-
createElementVNode("div", _hoisted_5$
|
|
15605
|
-
((_a2 = _ctx.person.phone) == null ? void 0 : _a2.length) ? (openBlock(), createElementBlock("div", _hoisted_6$
|
|
15606
|
-
createVNode(unref(_sfc_main$
|
|
15601
|
+
createElementVNode("div", _hoisted_5$j, [
|
|
15602
|
+
((_a2 = _ctx.person.phone) == null ? void 0 : _a2.length) ? (openBlock(), createElementBlock("div", _hoisted_6$f, [
|
|
15603
|
+
createVNode(unref(_sfc_main$W), { icon: "phone" }),
|
|
15607
15604
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList(_ctx.person.phone, (phone) => {
|
|
15608
15605
|
return openBlock(), createElementBlock("p", {
|
|
15609
15606
|
key: phone.id
|
|
@@ -15611,7 +15608,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
15611
15608
|
}), 128))
|
|
15612
15609
|
])) : createCommentVNode("", true),
|
|
15613
15610
|
((_b = _ctx.person.email) == null ? void 0 : _b.length) ? (openBlock(), createElementBlock("div", _hoisted_7$a, [
|
|
15614
|
-
createVNode(unref(_sfc_main$
|
|
15611
|
+
createVNode(unref(_sfc_main$W), { icon: "email" }),
|
|
15615
15612
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList(_ctx.person.email, (email) => {
|
|
15616
15613
|
return openBlock(), createElementBlock("p", {
|
|
15617
15614
|
key: email.id
|
|
@@ -15619,7 +15616,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
15619
15616
|
}), 128))
|
|
15620
15617
|
])) : createCommentVNode("", true),
|
|
15621
15618
|
_ctx.person.date_of_birth || _ctx.person.gender ? (openBlock(), createElementBlock("div", _hoisted_8$5, [
|
|
15622
|
-
createVNode(unref(_sfc_main$
|
|
15619
|
+
createVNode(unref(_sfc_main$W), { icon: "badge" }),
|
|
15623
15620
|
_ctx.person.date_of_birth ? (openBlock(), createElementBlock("p", _hoisted_9$3, toDisplayString(_ctx.person.date_of_birth), 1)) : createCommentVNode("", true),
|
|
15624
15621
|
_ctx.person.gender ? (openBlock(), createElementBlock("p", _hoisted_10$3, toDisplayString(_ctx.person.gender), 1)) : createCommentVNode("", true)
|
|
15625
15622
|
])) : createCommentVNode("", true)
|
|
@@ -15628,23 +15625,23 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
15628
15625
|
};
|
|
15629
15626
|
}
|
|
15630
15627
|
});
|
|
15631
|
-
const _hoisted_1$
|
|
15628
|
+
const _hoisted_1$N = {
|
|
15632
15629
|
key: 0,
|
|
15633
15630
|
class: "data"
|
|
15634
15631
|
};
|
|
15635
|
-
const _hoisted_2$
|
|
15632
|
+
const _hoisted_2$G = {
|
|
15636
15633
|
key: 0,
|
|
15637
15634
|
class: "mb-3 mt-0"
|
|
15638
15635
|
};
|
|
15639
|
-
const _hoisted_3$
|
|
15636
|
+
const _hoisted_3$C = {
|
|
15640
15637
|
key: 0,
|
|
15641
15638
|
class: "data-row"
|
|
15642
15639
|
};
|
|
15643
|
-
const _hoisted_4$
|
|
15644
|
-
const _hoisted_5$
|
|
15645
|
-
const _hoisted_6$
|
|
15640
|
+
const _hoisted_4$n = { class: "key" };
|
|
15641
|
+
const _hoisted_5$i = { key: 1 };
|
|
15642
|
+
const _hoisted_6$e = { class: "key" };
|
|
15646
15643
|
const _hoisted_7$9 = { class: "vlue" };
|
|
15647
|
-
const _sfc_main$
|
|
15644
|
+
const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
15648
15645
|
__name: "DataPreview",
|
|
15649
15646
|
props: {
|
|
15650
15647
|
data: {},
|
|
@@ -15656,7 +15653,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
15656
15653
|
const keysToIgnore = ["id", "person_id", "person", "created_at", "updated_at"];
|
|
15657
15654
|
const props2 = __props;
|
|
15658
15655
|
const itemData = ref(props2.data);
|
|
15659
|
-
const
|
|
15656
|
+
const bindAttrs2 = (attrs, field, row) => {
|
|
15660
15657
|
const arr = Object.entries(attrs || {}).map(([key, value]) => [
|
|
15661
15658
|
key,
|
|
15662
15659
|
typeof value === "function" ? value(field, row) : value
|
|
@@ -15666,14 +15663,14 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
15666
15663
|
};
|
|
15667
15664
|
return (_ctx, _cache) => {
|
|
15668
15665
|
var _a2;
|
|
15669
|
-
return _ctx.data ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
15670
|
-
_ctx.title ? (openBlock(), createElementBlock("h3", _hoisted_2$
|
|
15666
|
+
return _ctx.data ? (openBlock(), createElementBlock("div", _hoisted_1$N, [
|
|
15667
|
+
_ctx.title ? (openBlock(), createElementBlock("h3", _hoisted_2$G, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true),
|
|
15671
15668
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList(_ctx.schema || [], (field) => {
|
|
15672
15669
|
return openBlock(), createElementBlock(Fragment$1, {
|
|
15673
15670
|
key: field.id
|
|
15674
15671
|
}, [
|
|
15675
|
-
(field["v-if"] ? field["v-if"](itemData.value[field.id], itemData.value) : true) ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
15676
|
-
createElementVNode("div", _hoisted_4$
|
|
15672
|
+
(field["v-if"] ? field["v-if"](itemData.value[field.id], itemData.value) : true) ? (openBlock(), createElementBlock("div", _hoisted_3$C, [
|
|
15673
|
+
createElementVNode("div", _hoisted_4$n, toDisplayString((field == null ? void 0 : field.label) || unref(keyToLabel)(field.id)), 1),
|
|
15677
15674
|
(openBlock(), createBlock(resolveDynamicComponent(field.$el || "div"), mergeProps({
|
|
15678
15675
|
class: "vlue",
|
|
15679
15676
|
modelValue: itemData.value[field.id],
|
|
@@ -15681,7 +15678,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
15681
15678
|
var _a3;
|
|
15682
15679
|
return (_a3 = field == null ? void 0 : field.onUpdate) == null ? void 0 : _a3.call(field, $event, _ctx.data[field.id], itemData.value);
|
|
15683
15680
|
}]
|
|
15684
|
-
},
|
|
15681
|
+
}, bindAttrs2(field.attrs, itemData.value[field.id], itemData.value)), {
|
|
15685
15682
|
default: withCtx(() => {
|
|
15686
15683
|
var _a3;
|
|
15687
15684
|
return [
|
|
@@ -15693,7 +15690,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
15693
15690
|
])) : createCommentVNode("", true)
|
|
15694
15691
|
], 64);
|
|
15695
15692
|
}), 128)),
|
|
15696
|
-
!((_a2 = _ctx.schema) == null ? void 0 : _a2.length) ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
15693
|
+
!((_a2 = _ctx.schema) == null ? void 0 : _a2.length) ? (openBlock(), createElementBlock("div", _hoisted_5$i, [
|
|
15697
15694
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList(Object.entries(itemData.value).filter(
|
|
15698
15695
|
([key]) => !keysToIgnore.includes(key)
|
|
15699
15696
|
), ([key, value]) => {
|
|
@@ -15701,7 +15698,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
15701
15698
|
class: "data-row",
|
|
15702
15699
|
key
|
|
15703
15700
|
}, [
|
|
15704
|
-
createElementVNode("div", _hoisted_6$
|
|
15701
|
+
createElementVNode("div", _hoisted_6$e, toDisplayString(unref(i18nT)(unref(keyToLabel)(key))), 1),
|
|
15705
15702
|
createElementVNode("div", _hoisted_7$9, toDisplayString(value), 1)
|
|
15706
15703
|
]);
|
|
15707
15704
|
}), 128))
|
|
@@ -15711,23 +15708,23 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
15711
15708
|
};
|
|
15712
15709
|
}
|
|
15713
15710
|
});
|
|
15714
|
-
const DataPreview = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
15711
|
+
const DataPreview = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-dc2757c4"]]);
|
|
15715
15712
|
const _withScopeId$2 = (n) => (pushScopeId("data-v-fe5af582"), n = n(), popScopeId(), n);
|
|
15716
|
-
const _hoisted_1$
|
|
15717
|
-
const _hoisted_2$
|
|
15713
|
+
const _hoisted_1$M = { class: "bar-chart" };
|
|
15714
|
+
const _hoisted_2$F = {
|
|
15718
15715
|
key: 0,
|
|
15719
15716
|
class: "group-wrap"
|
|
15720
15717
|
};
|
|
15721
|
-
const _hoisted_3$
|
|
15722
|
-
const _hoisted_4$
|
|
15718
|
+
const _hoisted_3$B = { class: "group-title" };
|
|
15719
|
+
const _hoisted_4$m = {
|
|
15723
15720
|
key: 1,
|
|
15724
15721
|
class: "bar-wrap"
|
|
15725
15722
|
};
|
|
15726
|
-
const _hoisted_5$
|
|
15727
|
-
const _hoisted_6$
|
|
15723
|
+
const _hoisted_5$h = { class: "bar-txt" };
|
|
15724
|
+
const _hoisted_6$d = { class: "factor" };
|
|
15728
15725
|
const _hoisted_7$8 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("div", { class: "red-bar" }, null, -1));
|
|
15729
15726
|
const _hoisted_8$4 = { class: "bar-lines" };
|
|
15730
|
-
const _sfc_main$
|
|
15727
|
+
const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
15731
15728
|
__name: "BarChart",
|
|
15732
15729
|
props: {
|
|
15733
15730
|
title: {},
|
|
@@ -15779,14 +15776,14 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
15779
15776
|
const percent = (val) => val / maxValue.value * 100;
|
|
15780
15777
|
const floodPercent = computed(() => `${props2.flood}%`);
|
|
15781
15778
|
return (_ctx, _cache) => {
|
|
15782
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
15779
|
+
return openBlock(), createElementBlock("div", _hoisted_1$M, [
|
|
15783
15780
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList(dataArray.value, (item, i3) => {
|
|
15784
15781
|
return openBlock(), createElementBlock("div", {
|
|
15785
15782
|
class: "graph-wrap",
|
|
15786
15783
|
key: i3
|
|
15787
15784
|
}, [
|
|
15788
|
-
item.group ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
15789
|
-
createElementVNode("p", _hoisted_3$
|
|
15785
|
+
item.group ? (openBlock(), createElementBlock("div", _hoisted_2$F, [
|
|
15786
|
+
createElementVNode("p", _hoisted_3$B, toDisplayString(item.group), 1),
|
|
15790
15787
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList((item == null ? void 0 : item.data) || [], (nested, i22) => {
|
|
15791
15788
|
return openBlock(), createElementBlock("div", {
|
|
15792
15789
|
key: i22,
|
|
@@ -15805,7 +15802,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
15805
15802
|
}, null, 4)) : createCommentVNode("", true)
|
|
15806
15803
|
]);
|
|
15807
15804
|
}), 128))
|
|
15808
|
-
])) : (openBlock(), createElementBlock("div", _hoisted_4$
|
|
15805
|
+
])) : (openBlock(), createElementBlock("div", _hoisted_4$m, [
|
|
15809
15806
|
createElementVNode("div", {
|
|
15810
15807
|
class: "bar",
|
|
15811
15808
|
style: normalizeStyle({ height: loaded.value ? `${percent(item.value)}%` : "0" })
|
|
@@ -15815,11 +15812,11 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
15815
15812
|
class: "bar compare",
|
|
15816
15813
|
style: normalizeStyle({ height: loaded.value ? `${percent(item.compareValue)}%` : "0" })
|
|
15817
15814
|
}, null, 4)) : createCommentVNode("", true),
|
|
15818
|
-
createElementVNode("p", _hoisted_5$
|
|
15815
|
+
createElementVNode("p", _hoisted_5$h, toDisplayString(item.title), 1)
|
|
15819
15816
|
]))
|
|
15820
15817
|
]);
|
|
15821
15818
|
}), 128)),
|
|
15822
|
-
createElementVNode("p", _hoisted_6$
|
|
15819
|
+
createElementVNode("p", _hoisted_6$d, toDisplayString(_ctx.title), 1),
|
|
15823
15820
|
_hoisted_7$8,
|
|
15824
15821
|
createElementVNode("div", _hoisted_8$4, [
|
|
15825
15822
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList(marks2.value, (mark) => {
|
|
@@ -15830,7 +15827,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
15830
15827
|
};
|
|
15831
15828
|
}
|
|
15832
15829
|
});
|
|
15833
|
-
const BarChart = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
15830
|
+
const BarChart = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__scopeId", "data-v-fe5af582"]]);
|
|
15834
15831
|
const explicitKeys = [
|
|
15835
15832
|
"__key",
|
|
15836
15833
|
"__init",
|
|
@@ -17086,8 +17083,8 @@ function createInput(schemaOrComponent, definitionOptions = {}) {
|
|
|
17086
17083
|
}
|
|
17087
17084
|
return definition;
|
|
17088
17085
|
}
|
|
17089
|
-
const _hoisted_1$
|
|
17090
|
-
const _sfc_main$
|
|
17086
|
+
const _hoisted_1$L = { class: "primary-checkbox" };
|
|
17087
|
+
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
17091
17088
|
__name: "Checkbox",
|
|
17092
17089
|
props: {
|
|
17093
17090
|
modelValue: Boolean
|
|
@@ -17115,7 +17112,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
17115
17112
|
}
|
|
17116
17113
|
);
|
|
17117
17114
|
return (_ctx, _cache) => {
|
|
17118
|
-
return openBlock(), createElementBlock("label", _hoisted_1$
|
|
17115
|
+
return openBlock(), createElementBlock("label", _hoisted_1$L, [
|
|
17119
17116
|
withDirectives(createElementVNode("input", {
|
|
17120
17117
|
type: "checkbox",
|
|
17121
17118
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(val) ? val.value = $event : val = $event)
|
|
@@ -17123,24 +17120,24 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
17123
17120
|
[vModelCheckbox, unref(val)]
|
|
17124
17121
|
]),
|
|
17125
17122
|
createElementVNode("span", null, [
|
|
17126
|
-
createVNode(unref(_sfc_main$
|
|
17123
|
+
createVNode(unref(_sfc_main$W), { icon: "check" })
|
|
17127
17124
|
])
|
|
17128
17125
|
]);
|
|
17129
17126
|
};
|
|
17130
17127
|
}
|
|
17131
17128
|
});
|
|
17132
|
-
const Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
17133
|
-
const _hoisted_1$
|
|
17134
|
-
const _hoisted_2$
|
|
17135
|
-
const _hoisted_3$
|
|
17129
|
+
const Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-6b168ea9"]]);
|
|
17130
|
+
const _hoisted_1$K = { class: "bagel-input" };
|
|
17131
|
+
const _hoisted_2$E = { class: "mt-1" };
|
|
17132
|
+
const _hoisted_3$A = {
|
|
17136
17133
|
key: 0,
|
|
17137
17134
|
class: "bglform-contact-confirm"
|
|
17138
17135
|
};
|
|
17139
|
-
const _hoisted_4$
|
|
17140
|
-
const _hoisted_5$
|
|
17141
|
-
const _hoisted_6$
|
|
17136
|
+
const _hoisted_4$l = { class: "txt14" };
|
|
17137
|
+
const _hoisted_5$g = ["onUpdate:modelValue", "placeholder"];
|
|
17138
|
+
const _hoisted_6$c = ["onUpdate:modelValue", "placeholder"];
|
|
17142
17139
|
const _hoisted_7$7 = ["onUpdate:modelValue", "placeholder"];
|
|
17143
|
-
const _sfc_main$
|
|
17140
|
+
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
17144
17141
|
__name: "ContactArrayFormKit",
|
|
17145
17142
|
props: {
|
|
17146
17143
|
context: {}
|
|
@@ -17193,16 +17190,16 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
17193
17190
|
}
|
|
17194
17191
|
);
|
|
17195
17192
|
return (_ctx, _cache) => {
|
|
17196
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
17197
|
-
createElementVNode("div", _hoisted_2$
|
|
17193
|
+
return openBlock(), createElementBlock("div", _hoisted_1$K, [
|
|
17194
|
+
createElementVNode("div", _hoisted_2$E, [
|
|
17198
17195
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList(unref(val), (contact, i3) => {
|
|
17199
17196
|
var _a2, _b, _c, _d, _e2, _f;
|
|
17200
17197
|
return openBlock(), createElementBlock("div", {
|
|
17201
17198
|
class: "bglform-contact mb-2",
|
|
17202
17199
|
key: i3
|
|
17203
17200
|
}, [
|
|
17204
|
-
unref(deleteCandidate) === i3 ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
17205
|
-
createElementVNode("p", _hoisted_4$
|
|
17201
|
+
unref(deleteCandidate) === i3 ? (openBlock(), createElementBlock("div", _hoisted_3$A, [
|
|
17202
|
+
createElementVNode("p", _hoisted_4$l, toDisplayString((_a2 = formPlaceholders.value) == null ? void 0 : _a2.sure), 1),
|
|
17206
17203
|
createVNode(unref(Btn), {
|
|
17207
17204
|
thin: "",
|
|
17208
17205
|
color: "red",
|
|
@@ -17238,7 +17235,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
17238
17235
|
"onUpdate:modelValue": ($event) => contact.label = $event,
|
|
17239
17236
|
type: "text",
|
|
17240
17237
|
placeholder: (_b = formPlaceholders.value) == null ? void 0 : _b.label
|
|
17241
|
-
}, null, 8, _hoisted_5$
|
|
17238
|
+
}, null, 8, _hoisted_5$g), [
|
|
17242
17239
|
[vModelText, contact.label]
|
|
17243
17240
|
]),
|
|
17244
17241
|
((_c = _ctx.context) == null ? void 0 : _c.id) === "email" ? withDirectives((openBlock(), createElementBlock("input", {
|
|
@@ -17246,7 +17243,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
17246
17243
|
"onUpdate:modelValue": ($event) => contact.email = $event,
|
|
17247
17244
|
placeholder: (_d = formPlaceholders.value) == null ? void 0 : _d.email,
|
|
17248
17245
|
type: "email"
|
|
17249
|
-
}, null, 8, _hoisted_6$
|
|
17246
|
+
}, null, 8, _hoisted_6$c)), [
|
|
17250
17247
|
[vModelText, contact.email]
|
|
17251
17248
|
]) : createCommentVNode("", true),
|
|
17252
17249
|
((_e2 = _ctx.context) == null ? void 0 : _e2.id) === "phone" ? withDirectives((openBlock(), createElementBlock("input", {
|
|
@@ -17285,23 +17282,23 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
17285
17282
|
};
|
|
17286
17283
|
}
|
|
17287
17284
|
});
|
|
17288
|
-
const ContactArrayFormKit = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
17289
|
-
const _hoisted_1$
|
|
17290
|
-
const _hoisted_2$
|
|
17291
|
-
const _hoisted_3$
|
|
17285
|
+
const ContactArrayFormKit = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-f93bb259"]]);
|
|
17286
|
+
const _hoisted_1$J = { class: "bagel-input" };
|
|
17287
|
+
const _hoisted_2$D = { class: "mt-1" };
|
|
17288
|
+
const _hoisted_3$z = {
|
|
17292
17289
|
key: 0,
|
|
17293
17290
|
class: "bglform-contact-confirm"
|
|
17294
17291
|
};
|
|
17295
|
-
const _hoisted_4$
|
|
17296
|
-
const _hoisted_5$
|
|
17297
|
-
const _hoisted_6$
|
|
17292
|
+
const _hoisted_4$k = { class: "txt14" };
|
|
17293
|
+
const _hoisted_5$f = ["onUpdate:modelValue", "placeholder"];
|
|
17294
|
+
const _hoisted_6$b = { class: "bglform-contact-address" };
|
|
17298
17295
|
const _hoisted_7$6 = ["onUpdate:modelValue", "placeholder"];
|
|
17299
17296
|
const _hoisted_8$3 = { class: "bglform-contact-address-flex" };
|
|
17300
17297
|
const _hoisted_9$2 = ["onUpdate:modelValue", "placeholder"];
|
|
17301
17298
|
const _hoisted_10$2 = ["onUpdate:modelValue", "placeholder"];
|
|
17302
17299
|
const _hoisted_11$1 = ["onUpdate:modelValue", "placeholder"];
|
|
17303
17300
|
const _hoisted_12$1 = { class: "bglform-address-del" };
|
|
17304
|
-
const _sfc_main$
|
|
17301
|
+
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
17305
17302
|
__name: "AddressArray",
|
|
17306
17303
|
props: {
|
|
17307
17304
|
context: {}
|
|
@@ -17360,16 +17357,16 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
17360
17357
|
}
|
|
17361
17358
|
);
|
|
17362
17359
|
return (_ctx, _cache) => {
|
|
17363
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
17364
|
-
createElementVNode("div", _hoisted_2$
|
|
17360
|
+
return openBlock(), createElementBlock("div", _hoisted_1$J, [
|
|
17361
|
+
createElementVNode("div", _hoisted_2$D, [
|
|
17365
17362
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList(unref(val), (address, i3) => {
|
|
17366
17363
|
var _a2, _b, _c, _d, _e2, _f;
|
|
17367
17364
|
return openBlock(), createElementBlock("div", {
|
|
17368
17365
|
class: "bglform-contact mb-3",
|
|
17369
17366
|
key: i3
|
|
17370
17367
|
}, [
|
|
17371
|
-
unref(deleteCandidate) === i3 ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
17372
|
-
createElementVNode("p", _hoisted_4$
|
|
17368
|
+
unref(deleteCandidate) === i3 ? (openBlock(), createElementBlock("div", _hoisted_3$z, [
|
|
17369
|
+
createElementVNode("p", _hoisted_4$k, toDisplayString((_a2 = formPlaceholders.value) == null ? void 0 : _a2.sure), 1),
|
|
17373
17370
|
createVNode(unref(Btn), {
|
|
17374
17371
|
thin: "",
|
|
17375
17372
|
color: "red",
|
|
@@ -17405,10 +17402,10 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
17405
17402
|
"onUpdate:modelValue": ($event) => address.label = $event,
|
|
17406
17403
|
type: "text",
|
|
17407
17404
|
placeholder: (_b = formPlaceholders.value) == null ? void 0 : _b.label
|
|
17408
|
-
}, null, 8, _hoisted_5$
|
|
17405
|
+
}, null, 8, _hoisted_5$f), [
|
|
17409
17406
|
[vModelText, address.label]
|
|
17410
17407
|
]),
|
|
17411
|
-
createElementVNode("div", _hoisted_6$
|
|
17408
|
+
createElementVNode("div", _hoisted_6$b, [
|
|
17412
17409
|
withDirectives(createElementVNode("input", {
|
|
17413
17410
|
"onUpdate:modelValue": ($event) => address.street = $event,
|
|
17414
17411
|
placeholder: (_c = formPlaceholders.value) == null ? void 0 : _c.street,
|
|
@@ -17469,16 +17466,16 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
17469
17466
|
};
|
|
17470
17467
|
}
|
|
17471
17468
|
});
|
|
17472
|
-
const AddressArray = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
17473
|
-
const _hoisted_1$
|
|
17474
|
-
const _hoisted_2$
|
|
17475
|
-
const _hoisted_3$
|
|
17469
|
+
const AddressArray = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-77d03b04"]]);
|
|
17470
|
+
const _hoisted_1$I = { class: "bagel-input" };
|
|
17471
|
+
const _hoisted_2$C = { class: "mt-1" };
|
|
17472
|
+
const _hoisted_3$y = {
|
|
17476
17473
|
key: 0,
|
|
17477
17474
|
class: "bglform-contact-confirm"
|
|
17478
17475
|
};
|
|
17479
|
-
const _hoisted_4$
|
|
17480
|
-
const _hoisted_5$
|
|
17481
|
-
const _hoisted_6$
|
|
17476
|
+
const _hoisted_4$j = { class: "txt14" };
|
|
17477
|
+
const _hoisted_5$e = ["onUpdate:modelValue", "placeholder"];
|
|
17478
|
+
const _hoisted_6$a = { class: "bglform-contact-address" };
|
|
17482
17479
|
const _hoisted_7$5 = ["onUpdate:modelValue", "placeholder"];
|
|
17483
17480
|
const _hoisted_8$2 = { class: "bglform-contact-address-flex" };
|
|
17484
17481
|
const _hoisted_9$1 = ["onUpdate:modelValue", "placeholder"];
|
|
@@ -17490,7 +17487,7 @@ const _hoisted_14 = ["onUpdate:modelValue"];
|
|
|
17490
17487
|
const _hoisted_15 = ["onUpdate:modelValue"];
|
|
17491
17488
|
const _hoisted_16 = ["onUpdate:modelValue", "placeholder"];
|
|
17492
17489
|
const _hoisted_17 = { class: "bglform-address-del" };
|
|
17493
|
-
const _sfc_main$
|
|
17490
|
+
const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
17494
17491
|
__name: "BankDetailsArray",
|
|
17495
17492
|
props: {
|
|
17496
17493
|
context: {}
|
|
@@ -17543,16 +17540,16 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
17543
17540
|
}
|
|
17544
17541
|
);
|
|
17545
17542
|
return (_ctx, _cache) => {
|
|
17546
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
17547
|
-
createElementVNode("div", _hoisted_2$
|
|
17543
|
+
return openBlock(), createElementBlock("div", _hoisted_1$I, [
|
|
17544
|
+
createElementVNode("div", _hoisted_2$C, [
|
|
17548
17545
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList(unref(val), (bank_account, i3) => {
|
|
17549
17546
|
var _a2, _b, _c, _d, _e2, _f, _g, _h;
|
|
17550
17547
|
return openBlock(), createElementBlock("div", {
|
|
17551
17548
|
class: "bglform-contact mb-3",
|
|
17552
17549
|
key: i3
|
|
17553
17550
|
}, [
|
|
17554
|
-
unref(deleteCandidate) === i3 ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
17555
|
-
createElementVNode("p", _hoisted_4$
|
|
17551
|
+
unref(deleteCandidate) === i3 ? (openBlock(), createElementBlock("div", _hoisted_3$y, [
|
|
17552
|
+
createElementVNode("p", _hoisted_4$j, toDisplayString((_a2 = formPlaceholders.value) == null ? void 0 : _a2.sure), 1),
|
|
17556
17553
|
createVNode(unref(Btn), {
|
|
17557
17554
|
thin: "",
|
|
17558
17555
|
color: "red",
|
|
@@ -17588,10 +17585,10 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
17588
17585
|
"onUpdate:modelValue": ($event) => bank_account.label = $event,
|
|
17589
17586
|
type: "text",
|
|
17590
17587
|
placeholder: (_b = formPlaceholders.value) == null ? void 0 : _b.label
|
|
17591
|
-
}, null, 8, _hoisted_5$
|
|
17588
|
+
}, null, 8, _hoisted_5$e), [
|
|
17592
17589
|
[vModelText, bank_account.label]
|
|
17593
17590
|
]),
|
|
17594
|
-
createElementVNode("div", _hoisted_6$
|
|
17591
|
+
createElementVNode("div", _hoisted_6$a, [
|
|
17595
17592
|
withDirectives(createElementVNode("input", {
|
|
17596
17593
|
"onUpdate:modelValue": ($event) => bank_account.bank_name = $event,
|
|
17597
17594
|
placeholder: (_c = formPlaceholders.value) == null ? void 0 : _c.bankName,
|
|
@@ -17686,9 +17683,9 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
17686
17683
|
};
|
|
17687
17684
|
}
|
|
17688
17685
|
});
|
|
17689
|
-
const BankDetailsArray = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
17690
|
-
const _hoisted_1$
|
|
17691
|
-
const _sfc_main$
|
|
17686
|
+
const BankDetailsArray = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-a0d366d4"]]);
|
|
17687
|
+
const _hoisted_1$H = { class: "misc-wrap" };
|
|
17688
|
+
const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
17692
17689
|
__name: "MiscFields",
|
|
17693
17690
|
props: {
|
|
17694
17691
|
context: {},
|
|
@@ -17705,7 +17702,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
17705
17702
|
console.log(fields.value);
|
|
17706
17703
|
};
|
|
17707
17704
|
return (_ctx, _cache) => {
|
|
17708
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
17705
|
+
return openBlock(), createElementBlock("div", _hoisted_1$H, [
|
|
17709
17706
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList(fields.value.filter(
|
|
17710
17707
|
(field) => {
|
|
17711
17708
|
var _a2;
|
|
@@ -17733,13 +17730,13 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
17733
17730
|
};
|
|
17734
17731
|
}
|
|
17735
17732
|
});
|
|
17736
|
-
const MiscFieldsBtns = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
17733
|
+
const MiscFieldsBtns = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-a096417d"]]);
|
|
17737
17734
|
const _withScopeId$1 = (n) => (pushScopeId("data-v-d0543d4b"), n = n(), popScopeId(), n);
|
|
17738
|
-
const _hoisted_1$
|
|
17739
|
-
const _hoisted_2$
|
|
17740
|
-
const _hoisted_3$
|
|
17741
|
-
const _hoisted_4$
|
|
17742
|
-
const _sfc_main$
|
|
17735
|
+
const _hoisted_1$G = ["title"];
|
|
17736
|
+
const _hoisted_2$B = { class: "switch" };
|
|
17737
|
+
const _hoisted_3$x = ["id"];
|
|
17738
|
+
const _hoisted_4$i = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("span", { class: "slider round" }, null, -1));
|
|
17739
|
+
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
17743
17740
|
__name: "Toggle",
|
|
17744
17741
|
props: {
|
|
17745
17742
|
context: Object
|
|
@@ -17763,7 +17760,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
17763
17760
|
class: normalizeClass(["bagel-input checkbox", { check: (_a2 = __props.context) == null ? void 0 : _a2.attrs.isCheckbox }]),
|
|
17764
17761
|
title: (_b = __props.context) == null ? void 0 : _b.help
|
|
17765
17762
|
}, [
|
|
17766
|
-
createElementVNode("label", _hoisted_2$
|
|
17763
|
+
createElementVNode("label", _hoisted_2$B, [
|
|
17767
17764
|
withDirectives(createElementVNode("input", {
|
|
17768
17765
|
onChange: _cache[0] || (_cache[0] = () => {
|
|
17769
17766
|
var _a3;
|
|
@@ -17772,31 +17769,31 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
17772
17769
|
type: "checkbox",
|
|
17773
17770
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(inputVal) ? inputVal.value = $event : inputVal = $event),
|
|
17774
17771
|
id: (_c = __props.context) == null ? void 0 : _c.id
|
|
17775
|
-
}, null, 40, _hoisted_3$
|
|
17772
|
+
}, null, 40, _hoisted_3$x), [
|
|
17776
17773
|
[vModelCheckbox, unref(inputVal)]
|
|
17777
17774
|
]),
|
|
17778
|
-
_hoisted_4$
|
|
17775
|
+
_hoisted_4$i
|
|
17779
17776
|
])
|
|
17780
|
-
], 10, _hoisted_1$
|
|
17777
|
+
], 10, _hoisted_1$G);
|
|
17781
17778
|
};
|
|
17782
17779
|
}
|
|
17783
17780
|
});
|
|
17784
|
-
const Toggle = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
17785
|
-
const _hoisted_1$
|
|
17786
|
-
const _hoisted_2$
|
|
17781
|
+
const Toggle = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-d0543d4b"]]);
|
|
17782
|
+
const _hoisted_1$F = { class: "files-wrapper flex" };
|
|
17783
|
+
const _hoisted_2$A = {
|
|
17787
17784
|
key: 0,
|
|
17788
17785
|
class: "img-label"
|
|
17789
17786
|
};
|
|
17790
|
-
const _hoisted_3$
|
|
17791
|
-
const _hoisted_4$
|
|
17792
|
-
const _hoisted_5$
|
|
17793
|
-
const _hoisted_6$
|
|
17787
|
+
const _hoisted_3$w = { class: "uploading-wrap" };
|
|
17788
|
+
const _hoisted_4$h = { class: "load-file-bar" };
|
|
17789
|
+
const _hoisted_5$d = ["src", "alt"];
|
|
17790
|
+
const _hoisted_6$9 = { class: "flex" };
|
|
17794
17791
|
const _hoisted_7$4 = {
|
|
17795
17792
|
key: 0,
|
|
17796
17793
|
class: "progress"
|
|
17797
17794
|
};
|
|
17798
17795
|
const _hoisted_8$1 = ["multiple"];
|
|
17799
|
-
const _sfc_main$
|
|
17796
|
+
const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
17800
17797
|
__name: "FileUploader",
|
|
17801
17798
|
props: {
|
|
17802
17799
|
context: {},
|
|
@@ -17934,7 +17931,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
17934
17931
|
void addFiles(filesToAdd);
|
|
17935
17932
|
}
|
|
17936
17933
|
return (_ctx, _cache) => {
|
|
17937
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
17934
|
+
return openBlock(), createElementBlock("div", _hoisted_1$F, [
|
|
17938
17935
|
createElementVNode("div", {
|
|
17939
17936
|
ref_key: "dropZoneEl",
|
|
17940
17937
|
ref: dropZoneEl,
|
|
@@ -17954,34 +17951,34 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
17954
17951
|
]),
|
|
17955
17952
|
_: 1
|
|
17956
17953
|
}),
|
|
17957
|
-
allowUpload.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
17954
|
+
allowUpload.value ? (openBlock(), createElementBlock("div", _hoisted_2$A, [
|
|
17958
17955
|
createElementVNode("p", null, [
|
|
17959
17956
|
createTextVNode(toDisplayString(computedDragDropLabel.value) + " ", 1),
|
|
17960
17957
|
createElementVNode("span", null, toDisplayString(computedDrowseLabel.value), 1)
|
|
17961
17958
|
])
|
|
17962
17959
|
])) : createCommentVNode("", true),
|
|
17963
|
-
createElementVNode("div", _hoisted_3$
|
|
17960
|
+
createElementVNode("div", _hoisted_3$w, [
|
|
17964
17961
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList(files.value, (item, index2) => {
|
|
17965
17962
|
return openBlock(), createElementBlock("div", {
|
|
17966
17963
|
class: normalizeClass({ uploading: item.uploading }),
|
|
17967
17964
|
key: index2
|
|
17968
17965
|
}, [
|
|
17969
|
-
createElementVNode("div", _hoisted_4$
|
|
17966
|
+
createElementVNode("div", _hoisted_4$h, [
|
|
17970
17967
|
isImg(item) ? (openBlock(), createElementBlock("img", {
|
|
17971
17968
|
key: 0,
|
|
17972
17969
|
width: "40",
|
|
17973
17970
|
src: item.dataUrl,
|
|
17974
17971
|
alt: item.name,
|
|
17975
17972
|
style: { "margin-inline-end": "10px" }
|
|
17976
|
-
}, null, 8, _hoisted_5$
|
|
17973
|
+
}, null, 8, _hoisted_5$d)) : createCommentVNode("", true),
|
|
17977
17974
|
createElementVNode("p", null, toDisplayString(item.name), 1),
|
|
17978
|
-
createElementVNode("div", _hoisted_6$
|
|
17975
|
+
createElementVNode("div", _hoisted_6$9, [
|
|
17979
17976
|
createElementVNode("div", {
|
|
17980
17977
|
class: normalizeClass(["pie", { complete: item.progress === 100 }]),
|
|
17981
17978
|
style: normalizeStyle([`--p:${item.progress}`, { "--b": "2px" }])
|
|
17982
17979
|
}, [
|
|
17983
17980
|
item.progress < 100 ? (openBlock(), createElementBlock("span", _hoisted_7$4, toDisplayString(`${item.progress.toFixed(0)}`), 1)) : createCommentVNode("", true),
|
|
17984
|
-
createVNode(unref(_sfc_main$
|
|
17981
|
+
createVNode(unref(_sfc_main$W), {
|
|
17985
17982
|
class: "success",
|
|
17986
17983
|
icon: "check"
|
|
17987
17984
|
})
|
|
@@ -18011,15 +18008,15 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
18011
18008
|
};
|
|
18012
18009
|
}
|
|
18013
18010
|
});
|
|
18014
|
-
const _hoisted_1$
|
|
18011
|
+
const _hoisted_1$E = {
|
|
18015
18012
|
key: 0,
|
|
18016
18013
|
class: "person-card-edit flex gap-2"
|
|
18017
18014
|
};
|
|
18018
|
-
const _hoisted_2$
|
|
18019
|
-
const _hoisted_3$
|
|
18020
|
-
const _hoisted_4$
|
|
18021
|
-
const _hoisted_5$
|
|
18022
|
-
const _hoisted_6$
|
|
18015
|
+
const _hoisted_2$z = { class: "person-card-icon-wrap" };
|
|
18016
|
+
const _hoisted_3$v = { class: "person-card-icon" };
|
|
18017
|
+
const _hoisted_4$g = { class: "person-card-name txt20" };
|
|
18018
|
+
const _hoisted_5$c = { class: "person-card-details-wrap" };
|
|
18019
|
+
const _hoisted_6$8 = {
|
|
18023
18020
|
key: 0,
|
|
18024
18021
|
class: "person-card-details"
|
|
18025
18022
|
};
|
|
@@ -18033,7 +18030,7 @@ const _hoisted_8 = {
|
|
|
18033
18030
|
};
|
|
18034
18031
|
const _hoisted_9 = { key: 0 };
|
|
18035
18032
|
const _hoisted_10 = { key: 1 };
|
|
18036
|
-
const _sfc_main$
|
|
18033
|
+
const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
18037
18034
|
__name: "PersonPreviewFormkit",
|
|
18038
18035
|
props: {
|
|
18039
18036
|
context: {},
|
|
@@ -18064,7 +18061,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
18064
18061
|
(...args) => _ctx.onClick && _ctx.onClick(...args)),
|
|
18065
18062
|
class: "person-card"
|
|
18066
18063
|
}, [
|
|
18067
|
-
!_ctx.onClick ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
18064
|
+
!_ctx.onClick ? (openBlock(), createElementBlock("div", _hoisted_1$E, [
|
|
18068
18065
|
!_ctx.$route.path.match("/search") ? (openBlock(), createBlock(unref(Btn), {
|
|
18069
18066
|
key: 0,
|
|
18070
18067
|
onClick: unref(hideModal),
|
|
@@ -18082,13 +18079,13 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
18082
18079
|
icon: "edit"
|
|
18083
18080
|
})
|
|
18084
18081
|
])) : createCommentVNode("", true),
|
|
18085
|
-
createElementVNode("div", _hoisted_2$
|
|
18086
|
-
createElementVNode("p", _hoisted_3$
|
|
18087
|
-
createElementVNode("p", _hoisted_4$
|
|
18082
|
+
createElementVNode("div", _hoisted_2$z, [
|
|
18083
|
+
createElementVNode("p", _hoisted_3$v, toDisplayString(unref(initials)(person.value.first_name, person.value.last_name)), 1),
|
|
18084
|
+
createElementVNode("p", _hoisted_4$g, toDisplayString(person.value.first_name) + " " + toDisplayString(person.value.last_name), 1)
|
|
18088
18085
|
]),
|
|
18089
|
-
createElementVNode("div", _hoisted_5$
|
|
18090
|
-
((_a2 = person.value.phone) == null ? void 0 : _a2.length) ? (openBlock(), createElementBlock("div", _hoisted_6$
|
|
18091
|
-
createVNode(unref(_sfc_main$
|
|
18086
|
+
createElementVNode("div", _hoisted_5$c, [
|
|
18087
|
+
((_a2 = person.value.phone) == null ? void 0 : _a2.length) ? (openBlock(), createElementBlock("div", _hoisted_6$8, [
|
|
18088
|
+
createVNode(unref(_sfc_main$W), { icon: "phone" }),
|
|
18092
18089
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList(person.value.phone, (phone) => {
|
|
18093
18090
|
return openBlock(), createElementBlock("p", {
|
|
18094
18091
|
key: phone.id
|
|
@@ -18096,7 +18093,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
18096
18093
|
}), 128))
|
|
18097
18094
|
])) : createCommentVNode("", true),
|
|
18098
18095
|
((_b = person.value.email) == null ? void 0 : _b.length) ? (openBlock(), createElementBlock("div", _hoisted_7$3, [
|
|
18099
|
-
createVNode(unref(_sfc_main$
|
|
18096
|
+
createVNode(unref(_sfc_main$W), { icon: "email" }),
|
|
18100
18097
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList(person.value.email, (email) => {
|
|
18101
18098
|
return openBlock(), createElementBlock("p", {
|
|
18102
18099
|
key: email.id
|
|
@@ -18104,7 +18101,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
18104
18101
|
}), 128))
|
|
18105
18102
|
])) : createCommentVNode("", true),
|
|
18106
18103
|
person.value.date_of_birth || person.value.gender ? (openBlock(), createElementBlock("div", _hoisted_8, [
|
|
18107
|
-
createVNode(unref(_sfc_main$
|
|
18104
|
+
createVNode(unref(_sfc_main$W), { icon: "badge" }),
|
|
18108
18105
|
person.value.date_of_birth ? (openBlock(), createElementBlock("p", _hoisted_9, toDisplayString(person.value.date_of_birth), 1)) : createCommentVNode("", true),
|
|
18109
18106
|
person.value.gender ? (openBlock(), createElementBlock("p", _hoisted_10, toDisplayString(person.value.gender), 1)) : createCommentVNode("", true)
|
|
18110
18107
|
])) : createCommentVNode("", true)
|
|
@@ -18113,7 +18110,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
18113
18110
|
};
|
|
18114
18111
|
}
|
|
18115
18112
|
});
|
|
18116
|
-
const _sfc_main$
|
|
18113
|
+
const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
18117
18114
|
__name: "TextVariableExamples",
|
|
18118
18115
|
props: {
|
|
18119
18116
|
context: Object
|
|
@@ -18205,14 +18202,14 @@ const AddressInput = createInput(AddressArray);
|
|
|
18205
18202
|
const BankDetailsInput = createInput(BankDetailsArray);
|
|
18206
18203
|
const MiscFieldsInput = createInput(MiscFieldsBtns);
|
|
18207
18204
|
const ToggleSwitchInput = createInput(Toggle);
|
|
18208
|
-
const FileUploadInput = createInput(_sfc_main$
|
|
18209
|
-
const TextVariablesInput = createInput(_sfc_main$
|
|
18210
|
-
const PersonPreviewInput = createInput(_sfc_main$
|
|
18211
|
-
const _hoisted_1$
|
|
18205
|
+
const FileUploadInput = createInput(_sfc_main$x);
|
|
18206
|
+
const TextVariablesInput = createInput(_sfc_main$v);
|
|
18207
|
+
const PersonPreviewInput = createInput(_sfc_main$w);
|
|
18208
|
+
const _hoisted_1$D = {
|
|
18212
18209
|
key: 1,
|
|
18213
18210
|
class: "pill"
|
|
18214
18211
|
};
|
|
18215
|
-
const _sfc_main$
|
|
18212
|
+
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
18216
18213
|
__name: "ItemRef",
|
|
18217
18214
|
props: {
|
|
18218
18215
|
modelValue: {},
|
|
@@ -18246,15 +18243,15 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
18246
18243
|
}, {
|
|
18247
18244
|
default: withCtx(() => [
|
|
18248
18245
|
createTextVNode(toDisplayString(content.value) + " ", 1),
|
|
18249
|
-
createVNode(unref(_sfc_main$
|
|
18246
|
+
createVNode(unref(_sfc_main$W), { icon: "arrow_forward" })
|
|
18250
18247
|
]),
|
|
18251
18248
|
_: 1
|
|
18252
|
-
})) : (openBlock(), createElementBlock("span", _hoisted_1$
|
|
18249
|
+
})) : (openBlock(), createElementBlock("span", _hoisted_1$D, toDisplayString(content.value), 1))
|
|
18253
18250
|
]);
|
|
18254
18251
|
};
|
|
18255
18252
|
}
|
|
18256
18253
|
});
|
|
18257
|
-
const _sfc_main$
|
|
18254
|
+
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
18258
18255
|
__name: "MaterialIcon",
|
|
18259
18256
|
props: {
|
|
18260
18257
|
icon: {},
|
|
@@ -18269,13 +18266,13 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
18269
18266
|
};
|
|
18270
18267
|
}
|
|
18271
18268
|
});
|
|
18272
|
-
const _hoisted_1$
|
|
18273
|
-
const _hoisted_2$
|
|
18274
|
-
const _hoisted_3$
|
|
18275
|
-
const _hoisted_4$
|
|
18276
|
-
const _hoisted_5$
|
|
18277
|
-
const _hoisted_6$
|
|
18278
|
-
const _sfc_main$
|
|
18269
|
+
const _hoisted_1$C = { class: "bagel-input" };
|
|
18270
|
+
const _hoisted_2$y = ["for"];
|
|
18271
|
+
const _hoisted_3$u = ["checked"];
|
|
18272
|
+
const _hoisted_4$f = ["name", "type", "value"];
|
|
18273
|
+
const _hoisted_5$b = ["name", "type", "value"];
|
|
18274
|
+
const _hoisted_6$7 = ["name", "type", "value"];
|
|
18275
|
+
const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
18279
18276
|
__name: "PlainInputField",
|
|
18280
18277
|
props: {
|
|
18281
18278
|
type: {},
|
|
@@ -18305,14 +18302,14 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
18305
18302
|
}
|
|
18306
18303
|
});
|
|
18307
18304
|
return (_ctx, _cache) => {
|
|
18308
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
18305
|
+
return openBlock(), createElementBlock("div", _hoisted_1$C, [
|
|
18309
18306
|
createElementVNode("label", {
|
|
18310
18307
|
for: unref(formatString)(_ctx.name, "pascal")
|
|
18311
18308
|
}, [
|
|
18312
|
-
createVNode(_sfc_main$
|
|
18309
|
+
createVNode(_sfc_main$Y, {
|
|
18313
18310
|
input: unref(formatString)(_ctx.name, "titleCase")
|
|
18314
18311
|
}, null, 8, ["input"])
|
|
18315
|
-
], 8, _hoisted_2$
|
|
18312
|
+
], 8, _hoisted_2$y),
|
|
18316
18313
|
_ctx.type === "checkbox" ? (openBlock(), createElementBlock("input", {
|
|
18317
18314
|
key: 0,
|
|
18318
18315
|
ref_key: "el",
|
|
@@ -18321,7 +18318,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
18321
18318
|
class: "ctl",
|
|
18322
18319
|
type: "checkbox",
|
|
18323
18320
|
onChange: handleCheck
|
|
18324
|
-
}, null, 40, _hoisted_3$
|
|
18321
|
+
}, null, 40, _hoisted_3$u)) : _ctx.type === "number" ? (openBlock(), createElementBlock("input", {
|
|
18325
18322
|
key: 1,
|
|
18326
18323
|
ref_key: "el",
|
|
18327
18324
|
ref: el2,
|
|
@@ -18330,7 +18327,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
18330
18327
|
value: _ctx.modelValue,
|
|
18331
18328
|
class: "ctl",
|
|
18332
18329
|
onInput: handleInput
|
|
18333
|
-
}, null, 40, _hoisted_4$
|
|
18330
|
+
}, null, 40, _hoisted_4$f)) : _ctx.type === "text" ? (openBlock(), createElementBlock("input", {
|
|
18334
18331
|
key: 2,
|
|
18335
18332
|
ref_key: "el",
|
|
18336
18333
|
ref: el2,
|
|
@@ -18339,7 +18336,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
18339
18336
|
value: _ctx.modelValue,
|
|
18340
18337
|
class: "ctl",
|
|
18341
18338
|
onInput: handleInput
|
|
18342
|
-
}, null, 40, _hoisted_5$
|
|
18339
|
+
}, null, 40, _hoisted_5$b)) : _ctx.type === "textarea" ? (openBlock(), createElementBlock("textarea", {
|
|
18343
18340
|
key: 3,
|
|
18344
18341
|
ref_key: "el",
|
|
18345
18342
|
ref: el2,
|
|
@@ -18348,21 +18345,141 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
18348
18345
|
value: _ctx.modelValue,
|
|
18349
18346
|
class: "ctl",
|
|
18350
18347
|
onInput: handleInput
|
|
18351
|
-
}, null, 40, _hoisted_6$
|
|
18348
|
+
}, null, 40, _hoisted_6$7)) : createCommentVNode("", true),
|
|
18352
18349
|
createElementVNode("div", null, [
|
|
18353
|
-
createVNode(_sfc_main$
|
|
18350
|
+
createVNode(_sfc_main$Y, { input: _ctx.errorMessage }, null, 8, ["input"])
|
|
18354
18351
|
])
|
|
18355
18352
|
]);
|
|
18356
18353
|
};
|
|
18357
18354
|
}
|
|
18358
18355
|
});
|
|
18356
|
+
const _hoisted_1$B = { key: 2 };
|
|
18357
|
+
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
18358
|
+
__name: "BglForm",
|
|
18359
|
+
props: {
|
|
18360
|
+
modelValue: {},
|
|
18361
|
+
schema: {},
|
|
18362
|
+
onDelete: { type: Function },
|
|
18363
|
+
onSubmit: { type: Function }
|
|
18364
|
+
},
|
|
18365
|
+
emits: ["update:modelValue", "submit"],
|
|
18366
|
+
setup(__props, { emit: __emit }) {
|
|
18367
|
+
const { showModal } = useModal();
|
|
18368
|
+
const props2 = __props;
|
|
18369
|
+
const emits = __emit;
|
|
18370
|
+
const handleEmit = (val) => emits("update:modelValue", val);
|
|
18371
|
+
let data2 = ref({
|
|
18372
|
+
...props2.modelValue
|
|
18373
|
+
});
|
|
18374
|
+
const runSubmit = () => {
|
|
18375
|
+
emits("submit", data2.value);
|
|
18376
|
+
clearForm();
|
|
18377
|
+
};
|
|
18378
|
+
const clearForm = () => data2.value = {};
|
|
18379
|
+
const i18nT = (val) => val;
|
|
18380
|
+
watch(
|
|
18381
|
+
() => data2.value,
|
|
18382
|
+
() => handleEmit,
|
|
18383
|
+
{ immediate: true }
|
|
18384
|
+
);
|
|
18385
|
+
const runDelete = () => {
|
|
18386
|
+
showModal(
|
|
18387
|
+
{
|
|
18388
|
+
class: "small-modal",
|
|
18389
|
+
title: i18nT("Are you sure?"),
|
|
18390
|
+
actions: [
|
|
18391
|
+
{
|
|
18392
|
+
value: "Confirm",
|
|
18393
|
+
color: "red",
|
|
18394
|
+
onClick: () => {
|
|
18395
|
+
var _a2;
|
|
18396
|
+
return (_a2 = props2.onDelete) == null ? void 0 : _a2.call(props2, data2.value.id);
|
|
18397
|
+
}
|
|
18398
|
+
},
|
|
18399
|
+
{ value: "Cancel", color: "gray" }
|
|
18400
|
+
]
|
|
18401
|
+
},
|
|
18402
|
+
{ default: i18nT("form.deleteMessage") }
|
|
18403
|
+
);
|
|
18404
|
+
};
|
|
18405
|
+
return (_ctx, _cache) => {
|
|
18406
|
+
var _a2;
|
|
18407
|
+
return openBlock(), createElementBlock("form", {
|
|
18408
|
+
onSubmit: withModifiers(runSubmit, ["prevent"])
|
|
18409
|
+
}, [
|
|
18410
|
+
(openBlock(true), createElementBlock(Fragment$1, null, renderList(_ctx.schema, (field, i3) => {
|
|
18411
|
+
return openBlock(), createBlock(unref(_sfc_main$q), {
|
|
18412
|
+
key: field.id || `${i3}p`,
|
|
18413
|
+
field,
|
|
18414
|
+
modelValue: unref(data2),
|
|
18415
|
+
"onUpdate:modelValue": ($event) => field.id ? unref(data2)[field.id] = $event : ""
|
|
18416
|
+
}, null, 8, ["field", "modelValue", "onUpdate:modelValue"]);
|
|
18417
|
+
}), 128)),
|
|
18418
|
+
((_a2 = _ctx.modelValue) == null ? void 0 : _a2.id) && _ctx.onDelete ? (openBlock(), createBlock(unref(Btn), {
|
|
18419
|
+
key: 0,
|
|
18420
|
+
class: "del-top",
|
|
18421
|
+
onClick: runDelete,
|
|
18422
|
+
value: "Delete",
|
|
18423
|
+
flat: "",
|
|
18424
|
+
icon: "delete",
|
|
18425
|
+
color: "red",
|
|
18426
|
+
thin: ""
|
|
18427
|
+
})) : createCommentVNode("", true),
|
|
18428
|
+
!_ctx.$slots.submit && _ctx.onSubmit ? (openBlock(), createBlock(unref(Btn), {
|
|
18429
|
+
key: 1,
|
|
18430
|
+
value: "Submit",
|
|
18431
|
+
type: "submit",
|
|
18432
|
+
thin: ""
|
|
18433
|
+
})) : (openBlock(), createElementBlock("div", _hoisted_1$B, [
|
|
18434
|
+
renderSlot(_ctx.$slots, "submit")
|
|
18435
|
+
]))
|
|
18436
|
+
], 32);
|
|
18437
|
+
};
|
|
18438
|
+
}
|
|
18439
|
+
});
|
|
18440
|
+
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
18441
|
+
__name: "BglField",
|
|
18442
|
+
props: {
|
|
18443
|
+
modelValue: {},
|
|
18444
|
+
field: {}
|
|
18445
|
+
},
|
|
18446
|
+
emits: ["update:modelValue"],
|
|
18447
|
+
setup(__props, { emit: __emit }) {
|
|
18448
|
+
const props2 = __props;
|
|
18449
|
+
const emits = __emit;
|
|
18450
|
+
return (_ctx, _cache) => {
|
|
18451
|
+
var _a2;
|
|
18452
|
+
const _component_BglField = resolveComponent("BglField", true);
|
|
18453
|
+
return openBlock(), createBlock(resolveDynamicComponent(_ctx.field.$el || "div"), mergeProps({
|
|
18454
|
+
required: _ctx.field.required
|
|
18455
|
+
}, unref(bindAttrs)(((_a2 = _ctx.field) == null ? void 0 : _a2.attrs) || {}, props2.modelValue[_ctx.field.id || ""], props2.modelValue), {
|
|
18456
|
+
label: _ctx.field.label,
|
|
18457
|
+
placeholder: _ctx.field.placeholder || _ctx.field.label,
|
|
18458
|
+
modelValue: props2.modelValue[_ctx.field.id || ""],
|
|
18459
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => emits("update:modelValue", $event))
|
|
18460
|
+
}), {
|
|
18461
|
+
default: withCtx(() => [
|
|
18462
|
+
(openBlock(true), createElementBlock(Fragment$1, null, renderList(_ctx.field.children, (child, ii) => {
|
|
18463
|
+
return openBlock(), createBlock(_component_BglField, {
|
|
18464
|
+
modelValue: _ctx.modelValue,
|
|
18465
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emits("update:modelValue", $event)),
|
|
18466
|
+
key: child.id || ii,
|
|
18467
|
+
field: child
|
|
18468
|
+
}, null, 8, ["modelValue", "field"]);
|
|
18469
|
+
}), 128))
|
|
18470
|
+
]),
|
|
18471
|
+
_: 1
|
|
18472
|
+
}, 16, ["required", "label", "placeholder", "modelValue"]);
|
|
18473
|
+
};
|
|
18474
|
+
}
|
|
18475
|
+
});
|
|
18359
18476
|
const _withScopeId = (n) => (pushScopeId("data-v-0dacba34"), n = n(), popScopeId(), n);
|
|
18360
|
-
const _hoisted_1$
|
|
18361
|
-
const _hoisted_2$
|
|
18362
|
-
const _hoisted_3$
|
|
18363
|
-
const _hoisted_4$
|
|
18364
|
-
const _hoisted_5$
|
|
18365
|
-
const _sfc_main$
|
|
18477
|
+
const _hoisted_1$A = ["title"];
|
|
18478
|
+
const _hoisted_2$x = ["for"];
|
|
18479
|
+
const _hoisted_3$t = { class: "switch" };
|
|
18480
|
+
const _hoisted_4$e = ["id"];
|
|
18481
|
+
const _hoisted_5$a = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", { class: "slider round" }, null, -1));
|
|
18482
|
+
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
18366
18483
|
__name: "CheckInput",
|
|
18367
18484
|
props: {
|
|
18368
18485
|
field: {},
|
|
@@ -18395,29 +18512,29 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
18395
18512
|
}, [
|
|
18396
18513
|
createElementVNode("label", {
|
|
18397
18514
|
for: _ctx.field.id
|
|
18398
|
-
}, toDisplayString(_ctx.field.label), 9, _hoisted_2$
|
|
18399
|
-
createElementVNode("label", _hoisted_3$
|
|
18515
|
+
}, toDisplayString(_ctx.field.label), 9, _hoisted_2$x),
|
|
18516
|
+
createElementVNode("label", _hoisted_3$t, [
|
|
18400
18517
|
withDirectives(createElementVNode("input", {
|
|
18401
18518
|
id: _ctx.field.id,
|
|
18402
18519
|
type: "checkbox",
|
|
18403
18520
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputVal.value = $event),
|
|
18404
18521
|
class: normalizeClass({ "no-edit": !_ctx.editMode })
|
|
18405
|
-
}, null, 10, _hoisted_4$
|
|
18522
|
+
}, null, 10, _hoisted_4$e), [
|
|
18406
18523
|
[vModelCheckbox, inputVal.value]
|
|
18407
18524
|
]),
|
|
18408
|
-
_hoisted_5$
|
|
18525
|
+
_hoisted_5$a
|
|
18409
18526
|
])
|
|
18410
|
-
], 10, _hoisted_1$
|
|
18527
|
+
], 10, _hoisted_1$A);
|
|
18411
18528
|
};
|
|
18412
18529
|
}
|
|
18413
18530
|
});
|
|
18414
|
-
const CheckInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
18415
|
-
const _hoisted_1$
|
|
18416
|
-
const _hoisted_2$
|
|
18417
|
-
const _hoisted_3$
|
|
18418
|
-
const _hoisted_4$
|
|
18419
|
-
const _hoisted_5$
|
|
18420
|
-
const _sfc_main$
|
|
18531
|
+
const CheckInput = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-0dacba34"]]);
|
|
18532
|
+
const _hoisted_1$z = ["title"];
|
|
18533
|
+
const _hoisted_2$w = { key: 0 };
|
|
18534
|
+
const _hoisted_3$s = { class: "flex gap-3" };
|
|
18535
|
+
const _hoisted_4$d = ["value", "placeholder"];
|
|
18536
|
+
const _hoisted_5$9 = { class: "currency" };
|
|
18537
|
+
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
18421
18538
|
__name: "CurrencyInput",
|
|
18422
18539
|
props: {
|
|
18423
18540
|
field: {},
|
|
@@ -18518,26 +18635,26 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
18518
18635
|
class: normalizeClass(["bagel-input", { small: _ctx.small }]),
|
|
18519
18636
|
title: _ctx.field.description
|
|
18520
18637
|
}, [
|
|
18521
|
-
_ctx.field.label ? (openBlock(), createElementBlock("label", _hoisted_2$
|
|
18522
|
-
createElementVNode("div", _hoisted_3$
|
|
18638
|
+
_ctx.field.label ? (openBlock(), createElementBlock("label", _hoisted_2$w, toDisplayString(_ctx.field.label), 1)) : createCommentVNode("", true),
|
|
18639
|
+
createElementVNode("div", _hoisted_3$s, [
|
|
18523
18640
|
createElementVNode("input", {
|
|
18524
18641
|
value: _ctx.modelValue,
|
|
18525
18642
|
type: "number",
|
|
18526
18643
|
onInput: handleInput,
|
|
18527
18644
|
placeholder: _ctx.placeholder,
|
|
18528
18645
|
class: normalizeClass({ "no-edit": !_ctx.editMode })
|
|
18529
|
-
}, null, 42, _hoisted_4$
|
|
18530
|
-
createElementVNode("p", _hoisted_5$
|
|
18646
|
+
}, null, 42, _hoisted_4$d),
|
|
18647
|
+
createElementVNode("p", _hoisted_5$9, toDisplayString(((_a2 = currencies.find((c2) => c2.symbol === _ctx.field.currency)) == null ? void 0 : _a2.character) || _ctx.field.currency), 1)
|
|
18531
18648
|
])
|
|
18532
|
-
], 10, _hoisted_1$
|
|
18649
|
+
], 10, _hoisted_1$z);
|
|
18533
18650
|
};
|
|
18534
18651
|
}
|
|
18535
18652
|
});
|
|
18536
|
-
const CurrencyInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
18537
|
-
const _hoisted_1$
|
|
18538
|
-
const _hoisted_2$
|
|
18539
|
-
const _hoisted_3$
|
|
18540
|
-
const _sfc_main$
|
|
18653
|
+
const CurrencyInput = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-17a56a3f"]]);
|
|
18654
|
+
const _hoisted_1$y = ["title"];
|
|
18655
|
+
const _hoisted_2$v = { key: 0 };
|
|
18656
|
+
const _hoisted_3$r = ["placeholder", "disabled"];
|
|
18657
|
+
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
18541
18658
|
__name: "DateInput",
|
|
18542
18659
|
props: {
|
|
18543
18660
|
field: {},
|
|
@@ -18558,7 +18675,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
18558
18675
|
class: normalizeClass(["bagel-input", { small: _ctx.small }]),
|
|
18559
18676
|
title: _ctx.field.description
|
|
18560
18677
|
}, [
|
|
18561
|
-
_ctx.field.label ? (openBlock(), createElementBlock("label", _hoisted_2$
|
|
18678
|
+
_ctx.field.label ? (openBlock(), createElementBlock("label", _hoisted_2$v, toDisplayString(_ctx.field.label), 1)) : createCommentVNode("", true),
|
|
18562
18679
|
withDirectives(createElementVNode("input", {
|
|
18563
18680
|
type: "date",
|
|
18564
18681
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => date2.value = $event),
|
|
@@ -18568,18 +18685,18 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
18568
18685
|
disabled: !_ctx.editMode,
|
|
18569
18686
|
enableTimePicker: false,
|
|
18570
18687
|
textInputOptions: { format: "yyyy-MM-dd" }
|
|
18571
|
-
}, null, 40, _hoisted_3$
|
|
18688
|
+
}, null, 40, _hoisted_3$r), [
|
|
18572
18689
|
[vModelText, date2.value]
|
|
18573
18690
|
])
|
|
18574
|
-
], 10, _hoisted_1$
|
|
18691
|
+
], 10, _hoisted_1$y);
|
|
18575
18692
|
};
|
|
18576
18693
|
}
|
|
18577
18694
|
});
|
|
18578
|
-
const DateInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
18579
|
-
const _hoisted_1$
|
|
18580
|
-
const _hoisted_2$
|
|
18581
|
-
const _hoisted_3$
|
|
18582
|
-
const _sfc_main$
|
|
18695
|
+
const DateInput = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-782aee7f"]]);
|
|
18696
|
+
const _hoisted_1$x = ["title"];
|
|
18697
|
+
const _hoisted_2$u = { key: 0 };
|
|
18698
|
+
const _hoisted_3$q = ["value", "placeholder"];
|
|
18699
|
+
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
18583
18700
|
__name: "DatetimeInput",
|
|
18584
18701
|
props: {
|
|
18585
18702
|
description: { default: "" },
|
|
@@ -18605,7 +18722,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
18605
18722
|
class: normalizeClass(["bagel-input", { small: _ctx.small }]),
|
|
18606
18723
|
title: _ctx.description
|
|
18607
18724
|
}, [
|
|
18608
|
-
_ctx.label ? (openBlock(), createElementBlock("label", _hoisted_2$
|
|
18725
|
+
_ctx.label ? (openBlock(), createElementBlock("label", _hoisted_2$u, [
|
|
18609
18726
|
createVNode(_component_LangText, { input: _ctx.label }, null, 8, ["input"])
|
|
18610
18727
|
])) : createCommentVNode("", true),
|
|
18611
18728
|
createElementVNode("input", {
|
|
@@ -18614,15 +18731,15 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
18614
18731
|
onInput: handleInput,
|
|
18615
18732
|
placeholder: _ctx.placeholder,
|
|
18616
18733
|
class: normalizeClass({ "no-edit": !_ctx.editMode })
|
|
18617
|
-
}, null, 42, _hoisted_3$
|
|
18618
|
-
], 10, _hoisted_1$
|
|
18734
|
+
}, null, 42, _hoisted_3$q)
|
|
18735
|
+
], 10, _hoisted_1$x);
|
|
18619
18736
|
};
|
|
18620
18737
|
}
|
|
18621
18738
|
});
|
|
18622
|
-
const _hoisted_1$
|
|
18623
|
-
const _hoisted_2$
|
|
18624
|
-
const _hoisted_3$
|
|
18625
|
-
const _sfc_main$
|
|
18739
|
+
const _hoisted_1$w = ["title"];
|
|
18740
|
+
const _hoisted_2$t = { key: 0 };
|
|
18741
|
+
const _hoisted_3$p = ["value", "placeholder"];
|
|
18742
|
+
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
18626
18743
|
__name: "EmailInput",
|
|
18627
18744
|
props: {
|
|
18628
18745
|
description: { default: "" },
|
|
@@ -18645,7 +18762,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
18645
18762
|
class: normalizeClass(["bagel-input", { small: _ctx.small }]),
|
|
18646
18763
|
title: _ctx.description
|
|
18647
18764
|
}, [
|
|
18648
|
-
_ctx.label ? (openBlock(), createElementBlock("label", _hoisted_2$
|
|
18765
|
+
_ctx.label ? (openBlock(), createElementBlock("label", _hoisted_2$t, [
|
|
18649
18766
|
createVNode(_component_LangText, { input: _ctx.label }, null, 8, ["input"])
|
|
18650
18767
|
])) : createCommentVNode("", true),
|
|
18651
18768
|
createElementVNode("input", {
|
|
@@ -18655,16 +18772,16 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
18655
18772
|
onInput: handleInput,
|
|
18656
18773
|
class: normalizeClass({ "no-edit": !_ctx.editMode }),
|
|
18657
18774
|
placeholder: _ctx.placeholder
|
|
18658
|
-
}, null, 42, _hoisted_3$
|
|
18659
|
-
], 10, _hoisted_1$
|
|
18775
|
+
}, null, 42, _hoisted_3$p)
|
|
18776
|
+
], 10, _hoisted_1$w);
|
|
18660
18777
|
};
|
|
18661
18778
|
}
|
|
18662
18779
|
});
|
|
18663
|
-
const EmailInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
18664
|
-
const _hoisted_1$
|
|
18665
|
-
const _hoisted_2$
|
|
18666
|
-
const _hoisted_3$
|
|
18667
|
-
const _sfc_main$
|
|
18780
|
+
const EmailInput = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-ed81a514"]]);
|
|
18781
|
+
const _hoisted_1$v = ["title"];
|
|
18782
|
+
const _hoisted_2$s = { key: 0 };
|
|
18783
|
+
const _hoisted_3$o = ["value", "placeholder"];
|
|
18784
|
+
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
18668
18785
|
__name: "FloatInput",
|
|
18669
18786
|
props: {
|
|
18670
18787
|
description: { default: "" },
|
|
@@ -18691,7 +18808,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
18691
18808
|
class: normalizeClass(["bagel-input", { small: _ctx.small }]),
|
|
18692
18809
|
title: _ctx.description
|
|
18693
18810
|
}, [
|
|
18694
|
-
_ctx.label ? (openBlock(), createElementBlock("label", _hoisted_2$
|
|
18811
|
+
_ctx.label ? (openBlock(), createElementBlock("label", _hoisted_2$s, [
|
|
18695
18812
|
createVNode(_component_LangText, { input: _ctx.label }, null, 8, ["input"])
|
|
18696
18813
|
])) : createCommentVNode("", true),
|
|
18697
18814
|
createElementVNode("input", {
|
|
@@ -18700,15 +18817,15 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
18700
18817
|
onInput: handleInput,
|
|
18701
18818
|
class: normalizeClass({ "no-edit": !_ctx.editMode }),
|
|
18702
18819
|
placeholder: _ctx.placeholder
|
|
18703
|
-
}, null, 42, _hoisted_3$
|
|
18704
|
-
], 10, _hoisted_1$
|
|
18820
|
+
}, null, 42, _hoisted_3$o)
|
|
18821
|
+
], 10, _hoisted_1$v);
|
|
18705
18822
|
};
|
|
18706
18823
|
}
|
|
18707
18824
|
});
|
|
18708
|
-
const _hoisted_1$
|
|
18709
|
-
const _hoisted_2$
|
|
18710
|
-
const _hoisted_3$
|
|
18711
|
-
const _sfc_main$
|
|
18825
|
+
const _hoisted_1$u = ["title"];
|
|
18826
|
+
const _hoisted_2$r = { key: 0 };
|
|
18827
|
+
const _hoisted_3$n = ["value", "placeholder"];
|
|
18828
|
+
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
18712
18829
|
__name: "IntInput",
|
|
18713
18830
|
props: {
|
|
18714
18831
|
description: { default: "" },
|
|
@@ -18735,7 +18852,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
18735
18852
|
class: normalizeClass(["bagel-input", { small: _ctx.small }]),
|
|
18736
18853
|
title: _ctx.description
|
|
18737
18854
|
}, [
|
|
18738
|
-
_ctx.label ? (openBlock(), createElementBlock("label", _hoisted_2$
|
|
18855
|
+
_ctx.label ? (openBlock(), createElementBlock("label", _hoisted_2$r, [
|
|
18739
18856
|
createVNode(_component_LangText, { input: _ctx.label }, null, 8, ["input"])
|
|
18740
18857
|
])) : createCommentVNode("", true),
|
|
18741
18858
|
createElementVNode("input", {
|
|
@@ -18744,15 +18861,15 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
18744
18861
|
onInput: handleInput,
|
|
18745
18862
|
class: normalizeClass({ "no-edit": !_ctx.editMode }),
|
|
18746
18863
|
placeholder: _ctx.placeholder
|
|
18747
|
-
}, null, 42, _hoisted_3$
|
|
18748
|
-
], 10, _hoisted_1$
|
|
18864
|
+
}, null, 42, _hoisted_3$n)
|
|
18865
|
+
], 10, _hoisted_1$u);
|
|
18749
18866
|
};
|
|
18750
18867
|
}
|
|
18751
18868
|
});
|
|
18752
|
-
const _hoisted_1$
|
|
18753
|
-
const _hoisted_2$
|
|
18754
|
-
const _hoisted_3$
|
|
18755
|
-
const _sfc_main$
|
|
18869
|
+
const _hoisted_1$t = ["title"];
|
|
18870
|
+
const _hoisted_2$q = { key: 0 };
|
|
18871
|
+
const _hoisted_3$m = ["value", "placeholder"];
|
|
18872
|
+
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
18756
18873
|
__name: "JSONInput",
|
|
18757
18874
|
props: {
|
|
18758
18875
|
description: { default: "" },
|
|
@@ -18775,7 +18892,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
18775
18892
|
class: normalizeClass(["bagel-input", { small: _ctx.small }]),
|
|
18776
18893
|
title: _ctx.description
|
|
18777
18894
|
}, [
|
|
18778
|
-
_ctx.label ? (openBlock(), createElementBlock("label", _hoisted_2$
|
|
18895
|
+
_ctx.label ? (openBlock(), createElementBlock("label", _hoisted_2$q, [
|
|
18779
18896
|
createVNode(_component_LangText, { input: _ctx.label }, null, 8, ["input"])
|
|
18780
18897
|
])) : createCommentVNode("", true),
|
|
18781
18898
|
createElementVNode("textarea", {
|
|
@@ -18783,26 +18900,26 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
18783
18900
|
onInput: handleInput,
|
|
18784
18901
|
class: normalizeClass({ "no-edit": !_ctx.editMode }),
|
|
18785
18902
|
placeholder: _ctx.placeholder
|
|
18786
|
-
}, null, 42, _hoisted_3$
|
|
18787
|
-
], 10, _hoisted_1$
|
|
18903
|
+
}, null, 42, _hoisted_3$m)
|
|
18904
|
+
], 10, _hoisted_1$t);
|
|
18788
18905
|
};
|
|
18789
18906
|
}
|
|
18790
18907
|
});
|
|
18791
|
-
const JSONInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
18792
|
-
const _hoisted_1$
|
|
18793
|
-
const _hoisted_2$
|
|
18794
|
-
const _hoisted_3$
|
|
18795
|
-
const _hoisted_4$
|
|
18796
|
-
const _hoisted_5$
|
|
18908
|
+
const JSONInput = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-1fc4f739"]]);
|
|
18909
|
+
const _hoisted_1$s = ["title"];
|
|
18910
|
+
const _hoisted_2$p = { key: 0 };
|
|
18911
|
+
const _hoisted_3$l = ["disabled"];
|
|
18912
|
+
const _hoisted_4$c = ["onClick"];
|
|
18913
|
+
const _hoisted_5$8 = {
|
|
18797
18914
|
key: 0,
|
|
18798
18915
|
class: "option-label"
|
|
18799
18916
|
};
|
|
18800
|
-
const _hoisted_6$
|
|
18917
|
+
const _hoisted_6$6 = {
|
|
18801
18918
|
key: 1,
|
|
18802
18919
|
class: "option-label"
|
|
18803
18920
|
};
|
|
18804
18921
|
const _hoisted_7$2 = { class: "option-description" };
|
|
18805
|
-
const _sfc_main$
|
|
18922
|
+
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
18806
18923
|
__name: "LinkField",
|
|
18807
18924
|
props: {
|
|
18808
18925
|
description: { default: "" },
|
|
@@ -18926,7 +19043,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
18926
19043
|
class: normalizeClass(["bagel-input", { small: _ctx.small }]),
|
|
18927
19044
|
title: _ctx.description
|
|
18928
19045
|
}, [
|
|
18929
|
-
_ctx.label ? (openBlock(), createElementBlock("label", _hoisted_2$
|
|
19046
|
+
_ctx.label ? (openBlock(), createElementBlock("label", _hoisted_2$p, [
|
|
18930
19047
|
createVNode(_component_LangText, { input: _ctx.label }, null, 8, ["input"])
|
|
18931
19048
|
])) : createCommentVNode("", true),
|
|
18932
19049
|
withDirectives(createElementVNode("input", {
|
|
@@ -18938,7 +19055,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
18938
19055
|
onFocus: initList,
|
|
18939
19056
|
onInput: handleInput,
|
|
18940
19057
|
disabled: !_ctx.editMode
|
|
18941
|
-
}, null, 40, _hoisted_3$
|
|
19058
|
+
}, null, 40, _hoisted_3$l), [
|
|
18942
19059
|
[vModelText, selectedItem.value]
|
|
18943
19060
|
]),
|
|
18944
19061
|
createElementVNode("div", {
|
|
@@ -18958,26 +19075,26 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
18958
19075
|
key: unref(formatString)(option2.value, "pascal"),
|
|
18959
19076
|
onClick: withModifiers(($event) => handleSelect(option2), ["stop"])
|
|
18960
19077
|
}, [
|
|
18961
|
-
option2.label ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
19078
|
+
option2.label ? (openBlock(), createElementBlock("div", _hoisted_5$8, [
|
|
18962
19079
|
createTextVNode(toDisplayString(option2.label), 1),
|
|
18963
19080
|
createElementVNode("span", null, "ID: " + toDisplayString(option2.value), 1)
|
|
18964
|
-
])) : (openBlock(), createElementBlock("div", _hoisted_6$
|
|
19081
|
+
])) : (openBlock(), createElementBlock("div", _hoisted_6$6, " ID: " + toDisplayString(option2.value), 1)),
|
|
18965
19082
|
createElementVNode("div", _hoisted_7$2, toDisplayString(option2.description), 1)
|
|
18966
|
-
], 8, _hoisted_4$
|
|
19083
|
+
], 8, _hoisted_4$c);
|
|
18967
19084
|
}), 128))
|
|
18968
19085
|
], 2)
|
|
18969
19086
|
]))
|
|
18970
19087
|
], 2)
|
|
18971
|
-
], 10, _hoisted_1$
|
|
19088
|
+
], 10, _hoisted_1$s);
|
|
18972
19089
|
};
|
|
18973
19090
|
}
|
|
18974
19091
|
});
|
|
18975
|
-
const LinkField = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
18976
|
-
const _hoisted_1$
|
|
18977
|
-
const _hoisted_2$
|
|
18978
|
-
const _hoisted_3$
|
|
18979
|
-
const _hoisted_4$
|
|
18980
|
-
const _sfc_main$
|
|
19092
|
+
const LinkField = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-947beb38"]]);
|
|
19093
|
+
const _hoisted_1$r = ["title"];
|
|
19094
|
+
const _hoisted_2$o = { key: 0 };
|
|
19095
|
+
const _hoisted_3$k = { class: "password-input-wrap" };
|
|
19096
|
+
const _hoisted_4$b = ["value", "type", "placeholder"];
|
|
19097
|
+
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
18981
19098
|
__name: "PasswordInput",
|
|
18982
19099
|
props: {
|
|
18983
19100
|
description: { default: "" },
|
|
@@ -19011,31 +19128,31 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
19011
19128
|
class: normalizeClass(["bagel-input", { small: _ctx.small }]),
|
|
19012
19129
|
title: _ctx.description
|
|
19013
19130
|
}, [
|
|
19014
|
-
_ctx.label ? (openBlock(), createElementBlock("label", _hoisted_2$
|
|
19131
|
+
_ctx.label ? (openBlock(), createElementBlock("label", _hoisted_2$o, [
|
|
19015
19132
|
createVNode(_component_LangText, { input: _ctx.label }, null, 8, ["input"])
|
|
19016
19133
|
])) : createCommentVNode("", true),
|
|
19017
|
-
createElementVNode("div", _hoisted_3$
|
|
19134
|
+
createElementVNode("div", _hoisted_3$k, [
|
|
19018
19135
|
createElementVNode("input", {
|
|
19019
19136
|
value: _ctx.modelValue,
|
|
19020
19137
|
type: unref(inputType),
|
|
19021
19138
|
onInput: handleInput,
|
|
19022
19139
|
placeholder: _ctx.placeholder,
|
|
19023
19140
|
class: normalizeClass({ "no-edit": !_ctx.editMode })
|
|
19024
|
-
}, null, 42, _hoisted_4$
|
|
19141
|
+
}, null, 42, _hoisted_4$b),
|
|
19025
19142
|
createElementVNode("div", {
|
|
19026
19143
|
class: "icon-font password-icon",
|
|
19027
19144
|
onMousedown: toggleInputType
|
|
19028
19145
|
}, " visibility ", 32)
|
|
19029
19146
|
])
|
|
19030
|
-
], 10, _hoisted_1$
|
|
19147
|
+
], 10, _hoisted_1$r);
|
|
19031
19148
|
};
|
|
19032
19149
|
}
|
|
19033
19150
|
});
|
|
19034
|
-
const PasswordInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
19035
|
-
const _hoisted_1$
|
|
19036
|
-
const _hoisted_2$
|
|
19037
|
-
const _hoisted_3$
|
|
19038
|
-
const _sfc_main$
|
|
19151
|
+
const PasswordInput = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-525f5e2e"]]);
|
|
19152
|
+
const _hoisted_1$q = ["title"];
|
|
19153
|
+
const _hoisted_2$n = ["for"];
|
|
19154
|
+
const _hoisted_3$j = ["id", "type", "placeholder", "required", "pattern"];
|
|
19155
|
+
const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
19039
19156
|
__name: "Password",
|
|
19040
19157
|
props: {
|
|
19041
19158
|
field: {},
|
|
@@ -19075,22 +19192,22 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
19075
19192
|
class: { "no-edit": !_ctx.editMode },
|
|
19076
19193
|
required: _ctx.required,
|
|
19077
19194
|
pattern: _ctx.pattern
|
|
19078
|
-
}, _ctx.nativeInputAttrs), null, 16, _hoisted_3$
|
|
19195
|
+
}, _ctx.nativeInputAttrs), null, 16, _hoisted_3$j), [
|
|
19079
19196
|
[vModelDynamic, inputVal.value]
|
|
19080
19197
|
])
|
|
19081
|
-
], 8, _hoisted_2$
|
|
19082
|
-
createVNode(unref(_sfc_main$
|
|
19198
|
+
], 8, _hoisted_2$n),
|
|
19199
|
+
createVNode(unref(_sfc_main$W), {
|
|
19083
19200
|
onClick: showPassword,
|
|
19084
19201
|
icon: unref(seePassword) ? "visibility" : "visibility_off"
|
|
19085
19202
|
}, null, 8, ["icon"])
|
|
19086
|
-
], 10, _hoisted_1$
|
|
19203
|
+
], 10, _hoisted_1$q)) : createCommentVNode("", true);
|
|
19087
19204
|
};
|
|
19088
19205
|
}
|
|
19089
19206
|
});
|
|
19090
|
-
const Password = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
19091
|
-
const _hoisted_1$
|
|
19092
|
-
const _hoisted_2$
|
|
19093
|
-
const _sfc_main$
|
|
19207
|
+
const Password = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-800f4000"]]);
|
|
19208
|
+
const _hoisted_1$p = ["title"];
|
|
19209
|
+
const _hoisted_2$m = { key: 0 };
|
|
19210
|
+
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
19094
19211
|
__name: "ReadOnlyInput",
|
|
19095
19212
|
props: {
|
|
19096
19213
|
field: {},
|
|
@@ -19103,49 +19220,33 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
19103
19220
|
class: normalizeClass(["bagel-input", { small: _ctx.small }]),
|
|
19104
19221
|
title: _ctx.field.description
|
|
19105
19222
|
}, [
|
|
19106
|
-
_ctx.field.label ? (openBlock(), createElementBlock("label", _hoisted_2$
|
|
19223
|
+
_ctx.field.label ? (openBlock(), createElementBlock("label", _hoisted_2$m, toDisplayString(_ctx.field.label), 1)) : createCommentVNode("", true),
|
|
19107
19224
|
createTextVNode(" " + toDisplayString(_ctx.modelValue), 1)
|
|
19108
|
-
], 10, _hoisted_1$
|
|
19225
|
+
], 10, _hoisted_1$p);
|
|
19109
19226
|
};
|
|
19110
19227
|
}
|
|
19111
19228
|
});
|
|
19112
|
-
const ReadOnlyInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
19113
|
-
const _hoisted_1$
|
|
19114
|
-
const _hoisted_2$
|
|
19115
|
-
const _sfc_main$
|
|
19229
|
+
const ReadOnlyInput = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-b3b5a368"]]);
|
|
19230
|
+
const _hoisted_1$o = ["title"];
|
|
19231
|
+
const _hoisted_2$l = ["onClick"];
|
|
19232
|
+
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
19116
19233
|
__name: "SelectField",
|
|
19117
19234
|
props: {
|
|
19118
19235
|
inputType: {},
|
|
19119
19236
|
options: {},
|
|
19120
|
-
id: {},
|
|
19121
|
-
label: { default: "" },
|
|
19122
|
-
placeholder: { default: "" },
|
|
19123
|
-
required: { type: Boolean },
|
|
19124
|
-
is_array: { type: Boolean },
|
|
19125
|
-
can_add: { type: Boolean },
|
|
19126
|
-
can_delete: { type: [Boolean, Function] },
|
|
19127
|
-
allow_array_add: { type: Boolean },
|
|
19128
19237
|
editMode: { type: Boolean, default: true },
|
|
19129
|
-
description: { default: "" },
|
|
19130
|
-
helpText: {},
|
|
19131
|
-
currency: {},
|
|
19132
|
-
refCollection: {},
|
|
19133
|
-
refFields: {},
|
|
19134
|
-
file_key: {},
|
|
19135
|
-
fields: {},
|
|
19136
|
-
pattern: {},
|
|
19137
|
-
fieldClass: {},
|
|
19138
|
-
link: {},
|
|
19139
19238
|
field: {},
|
|
19140
19239
|
modelValue: {},
|
|
19141
|
-
small: { type: Boolean }
|
|
19240
|
+
small: { type: Boolean },
|
|
19241
|
+
label: { default: "" },
|
|
19242
|
+
description: { default: "" }
|
|
19142
19243
|
},
|
|
19143
19244
|
emits: ["update:modelValue", "selected"],
|
|
19144
19245
|
setup(__props, { emit: __emit }) {
|
|
19145
19246
|
useCssVars((_ctx) => ({
|
|
19146
|
-
"
|
|
19147
|
-
"
|
|
19148
|
-
"
|
|
19247
|
+
"530a7ef0": left2.value,
|
|
19248
|
+
"7d0177a2": `${top2.value}px`,
|
|
19249
|
+
"0ee22bfd": width.value
|
|
19149
19250
|
}));
|
|
19150
19251
|
const selectEl = ref();
|
|
19151
19252
|
const dropdown = ref();
|
|
@@ -19244,7 +19345,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
19244
19345
|
for: "label",
|
|
19245
19346
|
class: normalizeClass({ active: showList.value })
|
|
19246
19347
|
}, [
|
|
19247
|
-
createVNode(unref(_sfc_main$
|
|
19348
|
+
createVNode(unref(_sfc_main$Y), { input: _ctx.label }, null, 8, ["input"])
|
|
19248
19349
|
], 2)) : createCommentVNode("", true),
|
|
19249
19350
|
createElementVNode("div", {
|
|
19250
19351
|
class: normalizeClass(["custom-select", { "open-select": showList.value && _ctx.editMode }]),
|
|
@@ -19256,7 +19357,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
19256
19357
|
class: normalizeClass(["input", { active: showList.value }]),
|
|
19257
19358
|
name: "select-input"
|
|
19258
19359
|
}, [
|
|
19259
|
-
createVNode(unref(_sfc_main$
|
|
19360
|
+
createVNode(unref(_sfc_main$Y), { input: displayValue.value }, null, 8, ["input"])
|
|
19260
19361
|
], 2),
|
|
19261
19362
|
(openBlock(), createBlock(Teleport, { to: "#app" }, [
|
|
19262
19363
|
createElementVNode("div", {
|
|
@@ -19269,23 +19370,23 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
19269
19370
|
key: option2.value,
|
|
19270
19371
|
onClick: ($event) => handleSelect(option2)
|
|
19271
19372
|
}, [
|
|
19272
|
-
createVNode(unref(_sfc_main$
|
|
19373
|
+
createVNode(unref(_sfc_main$Y), {
|
|
19273
19374
|
input: option2.label
|
|
19274
19375
|
}, null, 8, ["input"])
|
|
19275
|
-
], 8, _hoisted_2$
|
|
19376
|
+
], 8, _hoisted_2$l);
|
|
19276
19377
|
}), 128))
|
|
19277
19378
|
], 2)
|
|
19278
19379
|
]))
|
|
19279
19380
|
], 2)
|
|
19280
|
-
], 10, _hoisted_1$
|
|
19381
|
+
], 10, _hoisted_1$o);
|
|
19281
19382
|
};
|
|
19282
19383
|
}
|
|
19283
19384
|
});
|
|
19284
|
-
const SelectField = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
19285
|
-
const _hoisted_1$
|
|
19286
|
-
const _hoisted_2$
|
|
19287
|
-
const _hoisted_3$
|
|
19288
|
-
const _sfc_main$
|
|
19385
|
+
const SelectField = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-f2c5b9ca"]]);
|
|
19386
|
+
const _hoisted_1$n = ["title"];
|
|
19387
|
+
const _hoisted_2$k = { key: 0 };
|
|
19388
|
+
const _hoisted_3$i = ["value", "placeholder"];
|
|
19389
|
+
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
19289
19390
|
__name: "RichTextEditor",
|
|
19290
19391
|
props: {
|
|
19291
19392
|
description: { default: "" },
|
|
@@ -19308,7 +19409,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
19308
19409
|
class: normalizeClass(["bagel-input", { small: _ctx.small }]),
|
|
19309
19410
|
title: _ctx.description
|
|
19310
19411
|
}, [
|
|
19311
|
-
_ctx.label ? (openBlock(), createElementBlock("label", _hoisted_2$
|
|
19412
|
+
_ctx.label ? (openBlock(), createElementBlock("label", _hoisted_2$k, [
|
|
19312
19413
|
createVNode(_component_LangText, { input: _ctx.label }, null, 8, ["input"])
|
|
19313
19414
|
])) : createCommentVNode("", true),
|
|
19314
19415
|
createElementVNode("textarea", {
|
|
@@ -19316,12 +19417,12 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
19316
19417
|
onInput: handleInput,
|
|
19317
19418
|
placeholder: _ctx.placeholder,
|
|
19318
19419
|
class: normalizeClass({ "no-edit": !_ctx.editMode })
|
|
19319
|
-
}, null, 42, _hoisted_3$
|
|
19320
|
-
], 10, _hoisted_1$
|
|
19420
|
+
}, null, 42, _hoisted_3$i)
|
|
19421
|
+
], 10, _hoisted_1$n);
|
|
19321
19422
|
};
|
|
19322
19423
|
}
|
|
19323
19424
|
});
|
|
19324
|
-
const RichTextEditor = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
19425
|
+
const RichTextEditor = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-69a60381"]]);
|
|
19325
19426
|
/*!
|
|
19326
19427
|
* vue-draggable-next v2.2.0
|
|
19327
19428
|
* (c) 2023 Anish George
|
|
@@ -21844,13 +21945,13 @@ const VueDraggableNext = defineComponent({
|
|
|
21844
21945
|
}
|
|
21845
21946
|
}
|
|
21846
21947
|
});
|
|
21847
|
-
const _hoisted_1$
|
|
21848
|
-
const _hoisted_2$
|
|
21849
|
-
const _hoisted_3$
|
|
21850
|
-
const _hoisted_4$
|
|
21851
|
-
const _hoisted_5$
|
|
21852
|
-
const _hoisted_6$
|
|
21853
|
-
const _sfc_main$
|
|
21948
|
+
const _hoisted_1$m = ["title"];
|
|
21949
|
+
const _hoisted_2$j = { class: "bagel-input" };
|
|
21950
|
+
const _hoisted_3$h = { class: "table-side-scroll" };
|
|
21951
|
+
const _hoisted_4$a = { class: "table-header" };
|
|
21952
|
+
const _hoisted_5$7 = { class: "table-reorder" };
|
|
21953
|
+
const _hoisted_6$5 = { class: "table-action" };
|
|
21954
|
+
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
21854
21955
|
__name: "TableField",
|
|
21855
21956
|
props: {
|
|
21856
21957
|
description: { default: "" },
|
|
@@ -21915,11 +22016,11 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
21915
22016
|
class: "table-field-wrap",
|
|
21916
22017
|
title: _ctx.description
|
|
21917
22018
|
}, [
|
|
21918
|
-
createElementVNode("div", _hoisted_2$
|
|
22019
|
+
createElementVNode("div", _hoisted_2$j, [
|
|
21919
22020
|
createElementVNode("label", null, toDisplayString((_a2 = unref(fieldMeta)) == null ? void 0 : _a2.label), 1)
|
|
21920
22021
|
]),
|
|
21921
|
-
createElementVNode("div", _hoisted_3$
|
|
21922
|
-
createElementVNode("div", _hoisted_4$
|
|
22022
|
+
createElementVNode("div", _hoisted_3$h, [
|
|
22023
|
+
createElementVNode("div", _hoisted_4$a, [
|
|
21923
22024
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList((_b = unref(entityMeta)) == null ? void 0 : _b.fields, (field) => {
|
|
21924
22025
|
return openBlock(), createElementBlock("div", {
|
|
21925
22026
|
class: normalizeClass(["header-col", unref(formatString)(field.fieldtype, "pascal")]),
|
|
@@ -21946,8 +22047,8 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
21946
22047
|
class: "flex table-row",
|
|
21947
22048
|
key: row.id
|
|
21948
22049
|
}, [
|
|
21949
|
-
createElementVNode("div", _hoisted_5$
|
|
21950
|
-
createVNode(_sfc_main$
|
|
22050
|
+
createElementVNode("div", _hoisted_5$7, [
|
|
22051
|
+
createVNode(_sfc_main$t, { icon: "more_vert" })
|
|
21951
22052
|
]),
|
|
21952
22053
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList((_a3 = unref(entityMeta)) == null ? void 0 : _a3.fields, (field) => {
|
|
21953
22054
|
return openBlock(), createElementBlock("div", {
|
|
@@ -21963,8 +22064,8 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
21963
22064
|
}, null, 8, ["field-meta", "bagel-app", "onUpdate:modelValue", "model-value"])
|
|
21964
22065
|
], 2);
|
|
21965
22066
|
}), 128)),
|
|
21966
|
-
createElementVNode("div", _hoisted_6$
|
|
21967
|
-
createVNode(_sfc_main$
|
|
22067
|
+
createElementVNode("div", _hoisted_6$5, [
|
|
22068
|
+
createVNode(_sfc_main$t, {
|
|
21968
22069
|
icon: "delete",
|
|
21969
22070
|
onClick: ($event) => removeRow(index2)
|
|
21970
22071
|
}, null, 8, ["onClick"])
|
|
@@ -21990,15 +22091,15 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
21990
22091
|
]),
|
|
21991
22092
|
_: 1
|
|
21992
22093
|
})
|
|
21993
|
-
], 8, _hoisted_1$
|
|
22094
|
+
], 8, _hoisted_1$m);
|
|
21994
22095
|
};
|
|
21995
22096
|
}
|
|
21996
22097
|
});
|
|
21997
|
-
const TableField = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
21998
|
-
const _hoisted_1$
|
|
21999
|
-
const _hoisted_2$
|
|
22000
|
-
const _hoisted_3$
|
|
22001
|
-
const _sfc_main$
|
|
22098
|
+
const TableField = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-1d1376d2"]]);
|
|
22099
|
+
const _hoisted_1$l = ["title"];
|
|
22100
|
+
const _hoisted_2$i = { key: 0 };
|
|
22101
|
+
const _hoisted_3$g = ["value", "title", "placeholder"];
|
|
22102
|
+
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
22002
22103
|
__name: "DurationInput",
|
|
22003
22104
|
props: {
|
|
22004
22105
|
description: { default: "" },
|
|
@@ -22025,7 +22126,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
22025
22126
|
class: normalizeClass(["bagel-input", { small: _ctx.small }]),
|
|
22026
22127
|
title: _ctx.description
|
|
22027
22128
|
}, [
|
|
22028
|
-
_ctx.label ? (openBlock(), createElementBlock("label", _hoisted_2$
|
|
22129
|
+
_ctx.label ? (openBlock(), createElementBlock("label", _hoisted_2$i, [
|
|
22029
22130
|
createVNode(_component_LangText, { input: _ctx.label }, null, 8, ["input"])
|
|
22030
22131
|
])) : createCommentVNode("", true),
|
|
22031
22132
|
createElementVNode("input", {
|
|
@@ -22035,15 +22136,16 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
22035
22136
|
onInput: handleInput,
|
|
22036
22137
|
placeholder: _ctx.placeholder,
|
|
22037
22138
|
class: normalizeClass({ "no-edit": !_ctx.editMode })
|
|
22038
|
-
}, null, 42, _hoisted_3$
|
|
22039
|
-
], 10, _hoisted_1$
|
|
22139
|
+
}, null, 42, _hoisted_3$g)
|
|
22140
|
+
], 10, _hoisted_1$l);
|
|
22040
22141
|
};
|
|
22041
22142
|
}
|
|
22042
22143
|
});
|
|
22043
|
-
const _hoisted_1$
|
|
22044
|
-
const _hoisted_2$
|
|
22045
|
-
const _hoisted_3$
|
|
22046
|
-
const
|
|
22144
|
+
const _hoisted_1$k = ["title"];
|
|
22145
|
+
const _hoisted_2$h = ["for"];
|
|
22146
|
+
const _hoisted_3$f = ["autocomplete", "id", "type", "placeholder", "disabled", "required", "pattern"];
|
|
22147
|
+
const _hoisted_4$9 = ["id", "type", "rows", "placeholder", "disabled", "required", "pattern"];
|
|
22148
|
+
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
22047
22149
|
__name: "TextInput",
|
|
22048
22150
|
props: {
|
|
22049
22151
|
id: {},
|
|
@@ -22059,7 +22161,12 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
22059
22161
|
type: { default: "text" },
|
|
22060
22162
|
nativeInputAttrs: {},
|
|
22061
22163
|
icon: {},
|
|
22062
|
-
iconStart: {}
|
|
22164
|
+
iconStart: {},
|
|
22165
|
+
multiline: { type: Boolean },
|
|
22166
|
+
autoheight: { type: Boolean },
|
|
22167
|
+
code: { type: Boolean },
|
|
22168
|
+
lines: {},
|
|
22169
|
+
autocomplete: { default: "off" }
|
|
22063
22170
|
},
|
|
22064
22171
|
emits: ["update:modelValue", "debounce"],
|
|
22065
22172
|
setup(__props, { emit: __emit }) {
|
|
@@ -22081,6 +22188,16 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
22081
22188
|
}, 10);
|
|
22082
22189
|
}
|
|
22083
22190
|
};
|
|
22191
|
+
const rows = computed(() => {
|
|
22192
|
+
var _a2;
|
|
22193
|
+
if (props2.lines)
|
|
22194
|
+
return props2.lines;
|
|
22195
|
+
if (props2.autoheight)
|
|
22196
|
+
return ((_a2 = `${inputVal.value}`) == null ? void 0 : _a2.split("\n").length) || 1;
|
|
22197
|
+
if (props2.multiline || props2.code)
|
|
22198
|
+
return 4;
|
|
22199
|
+
return 1;
|
|
22200
|
+
});
|
|
22084
22201
|
watch(
|
|
22085
22202
|
() => inputVal.value,
|
|
22086
22203
|
(newVal) => {
|
|
@@ -22102,34 +22219,48 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
22102
22219
|
);
|
|
22103
22220
|
return (_ctx, _cache) => {
|
|
22104
22221
|
return openBlock(), createElementBlock("div", {
|
|
22105
|
-
class: normalizeClass(["bagel-input", { small: _ctx.small, shrink: _ctx.shrink, toggleEdit: _ctx.toggleEdit, editMode: unref(editMode), textInputIconWrap: _ctx.icon, txtInputIconStart: _ctx.iconStart }]),
|
|
22222
|
+
class: normalizeClass(["bagel-input text-input", { small: _ctx.small, shrink: _ctx.shrink, toggleEdit: _ctx.toggleEdit, editMode: unref(editMode), textInputIconWrap: _ctx.icon, txtInputIconStart: _ctx.iconStart, code: _ctx.code }]),
|
|
22106
22223
|
title: _ctx.title
|
|
22107
22224
|
}, [
|
|
22108
22225
|
createElementVNode("label", { for: _ctx.id }, [
|
|
22109
22226
|
createTextVNode(toDisplayString(_ctx.label) + " ", 1),
|
|
22110
|
-
withDirectives(
|
|
22227
|
+
!_ctx.multiline && !_ctx.autoheight && !_ctx.code ? withDirectives((openBlock(), createElementBlock("input", mergeProps({
|
|
22228
|
+
key: 0,
|
|
22229
|
+
autocomplete: _ctx.autocomplete,
|
|
22111
22230
|
id: _ctx.id,
|
|
22112
22231
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(inputVal) ? inputVal.value = $event : inputVal = $event),
|
|
22113
22232
|
type: _ctx.type,
|
|
22233
|
+
rows: 1,
|
|
22114
22234
|
ref_key: "input",
|
|
22115
22235
|
ref: input2,
|
|
22116
22236
|
placeholder: _ctx.placeholder || _ctx.label,
|
|
22117
22237
|
disabled: !unref(editMode),
|
|
22118
22238
|
required: _ctx.required,
|
|
22119
22239
|
pattern: _ctx.pattern
|
|
22120
|
-
}, _ctx.nativeInputAttrs, {
|
|
22121
|
-
onDblclick: toggleEditAction,
|
|
22122
|
-
onKeydown: withKeys(toggleEditAction, ["enter"])
|
|
22123
|
-
}), null, 16, _hoisted_3$e), [
|
|
22240
|
+
}, _ctx.nativeInputAttrs, { onDblclick: toggleEditAction }), null, 16, _hoisted_3$f)), [
|
|
22124
22241
|
[vModelDynamic, unref(inputVal)]
|
|
22242
|
+
]) : withDirectives((openBlock(), createElementBlock("textarea", mergeProps({
|
|
22243
|
+
key: 1,
|
|
22244
|
+
id: _ctx.id,
|
|
22245
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(inputVal) ? inputVal.value = $event : inputVal = $event),
|
|
22246
|
+
type: _ctx.type,
|
|
22247
|
+
rows: rows.value,
|
|
22248
|
+
ref_key: "input",
|
|
22249
|
+
ref: input2,
|
|
22250
|
+
placeholder: _ctx.placeholder || _ctx.label,
|
|
22251
|
+
disabled: !unref(editMode),
|
|
22252
|
+
required: _ctx.required,
|
|
22253
|
+
pattern: _ctx.pattern
|
|
22254
|
+
}, _ctx.nativeInputAttrs, { onDblclick: toggleEditAction }), null, 16, _hoisted_4$9)), [
|
|
22255
|
+
[vModelText, unref(inputVal)]
|
|
22125
22256
|
])
|
|
22126
|
-
], 8, _hoisted_2$
|
|
22127
|
-
_ctx.iconStart ? (openBlock(), createBlock(unref(_sfc_main$
|
|
22257
|
+
], 8, _hoisted_2$h),
|
|
22258
|
+
_ctx.iconStart ? (openBlock(), createBlock(unref(_sfc_main$W), {
|
|
22128
22259
|
key: 0,
|
|
22129
22260
|
class: "iconStart",
|
|
22130
22261
|
icon: _ctx.iconStart
|
|
22131
22262
|
}, null, 8, ["icon"])) : createCommentVNode("", true),
|
|
22132
|
-
_ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$
|
|
22263
|
+
_ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$W), {
|
|
22133
22264
|
key: 1,
|
|
22134
22265
|
icon: _ctx.icon
|
|
22135
22266
|
}, null, 8, ["icon"])) : createCommentVNode("", true),
|
|
@@ -22141,19 +22272,19 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
22141
22272
|
icon: unref(editMode) ? "check" : "edit",
|
|
22142
22273
|
flat: ""
|
|
22143
22274
|
}, null, 8, ["icon"])) : createCommentVNode("", true)
|
|
22144
|
-
], 10, _hoisted_1$
|
|
22275
|
+
], 10, _hoisted_1$k);
|
|
22145
22276
|
};
|
|
22146
22277
|
}
|
|
22147
22278
|
});
|
|
22148
|
-
const TextInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
22149
|
-
const _hoisted_1$
|
|
22150
|
-
const _hoisted_2$
|
|
22151
|
-
const _hoisted_3$
|
|
22279
|
+
const TextInput = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-9f24ba22"]]);
|
|
22280
|
+
const _hoisted_1$j = ["title"];
|
|
22281
|
+
const _hoisted_2$g = { key: 0 };
|
|
22282
|
+
const _hoisted_3$e = {
|
|
22152
22283
|
key: 1,
|
|
22153
22284
|
class: "character-limit"
|
|
22154
22285
|
};
|
|
22155
|
-
const _hoisted_4$
|
|
22156
|
-
const _sfc_main$
|
|
22286
|
+
const _hoisted_4$8 = ["value"];
|
|
22287
|
+
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
22157
22288
|
__name: "TextArea",
|
|
22158
22289
|
props: {
|
|
22159
22290
|
description: { default: "" },
|
|
@@ -22178,24 +22309,24 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
22178
22309
|
class: normalizeClass(["bagel-input", { small: _ctx.small }]),
|
|
22179
22310
|
title: _ctx.description
|
|
22180
22311
|
}, [
|
|
22181
|
-
_ctx.label ? (openBlock(), createElementBlock("label", _hoisted_2$
|
|
22182
|
-
createVNode(unref(_sfc_main$
|
|
22312
|
+
_ctx.label ? (openBlock(), createElementBlock("label", _hoisted_2$g, [
|
|
22313
|
+
createVNode(unref(_sfc_main$Y), { input: _ctx.label }, null, 8, ["input"])
|
|
22183
22314
|
])) : createCommentVNode("", true),
|
|
22184
|
-
_ctx.showCharacterLimit ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
22315
|
+
_ctx.showCharacterLimit ? (openBlock(), createElementBlock("span", _hoisted_3$e, toDisplayString((_a2 = _ctx.modelValue) == null ? void 0 : _a2.length) + " " + toDisplayString(((_b = _ctx.nativeInputAttrs) == null ? void 0 : _b.maxlength) ? `/${_ctx.nativeInputAttrs.maxlength}` : ""), 1)) : createCommentVNode("", true),
|
|
22185
22316
|
createElementVNode("textarea", mergeProps({
|
|
22186
22317
|
value: _ctx.modelValue,
|
|
22187
22318
|
onInput: handleInput,
|
|
22188
22319
|
class: { "no-edit": !_ctx.editMode }
|
|
22189
|
-
}, _ctx.nativeInputAttrs), null, 16, _hoisted_4$
|
|
22190
|
-
], 10, _hoisted_1$
|
|
22320
|
+
}, _ctx.nativeInputAttrs), null, 16, _hoisted_4$8)
|
|
22321
|
+
], 10, _hoisted_1$j);
|
|
22191
22322
|
};
|
|
22192
22323
|
}
|
|
22193
22324
|
});
|
|
22194
|
-
const TextArea = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
22195
|
-
const _hoisted_1$
|
|
22196
|
-
const _hoisted_2$
|
|
22197
|
-
const _hoisted_3$
|
|
22198
|
-
const _sfc_main$
|
|
22325
|
+
const TextArea = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-a5b28c58"]]);
|
|
22326
|
+
const _hoisted_1$i = ["title"];
|
|
22327
|
+
const _hoisted_2$f = ["for"];
|
|
22328
|
+
const _hoisted_3$d = ["id", "placeholder", "required"];
|
|
22329
|
+
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
22199
22330
|
__name: "ColorPicker",
|
|
22200
22331
|
props: {
|
|
22201
22332
|
field: {},
|
|
@@ -22232,19 +22363,19 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
22232
22363
|
placeholder: ((_a2 = _ctx.field) == null ? void 0 : _a2.placeholder) || _ctx.field.label,
|
|
22233
22364
|
class: { "no-edit": !_ctx.editMode },
|
|
22234
22365
|
required: _ctx.required
|
|
22235
|
-
}, _ctx.nativeInputAttrs), null, 16, _hoisted_3$
|
|
22366
|
+
}, _ctx.nativeInputAttrs), null, 16, _hoisted_3$d), [
|
|
22236
22367
|
[vModelText, inputVal.value]
|
|
22237
22368
|
])
|
|
22238
|
-
], 8, _hoisted_2$
|
|
22239
|
-
], 10, _hoisted_1$
|
|
22369
|
+
], 8, _hoisted_2$f)
|
|
22370
|
+
], 10, _hoisted_1$i)) : createCommentVNode("", true);
|
|
22240
22371
|
};
|
|
22241
22372
|
}
|
|
22242
22373
|
});
|
|
22243
|
-
const _hoisted_1$
|
|
22244
|
-
const _hoisted_2$
|
|
22245
|
-
const _hoisted_3$
|
|
22246
|
-
const _hoisted_4$
|
|
22247
|
-
const _sfc_main$
|
|
22374
|
+
const _hoisted_1$h = { key: 0 };
|
|
22375
|
+
const _hoisted_2$e = ["disabled"];
|
|
22376
|
+
const _hoisted_3$c = { class: "custom-select-drop" };
|
|
22377
|
+
const _hoisted_4$7 = ["onClick"];
|
|
22378
|
+
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
22248
22379
|
__name: "DynamicLinkField",
|
|
22249
22380
|
props: {
|
|
22250
22381
|
label: { default: "" },
|
|
@@ -22320,7 +22451,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
22320
22451
|
return openBlock(), createElementBlock("div", {
|
|
22321
22452
|
class: normalizeClass(["bagel-input", { small: _ctx.small }])
|
|
22322
22453
|
}, [
|
|
22323
|
-
_ctx.label ? (openBlock(), createElementBlock("label", _hoisted_1$
|
|
22454
|
+
_ctx.label ? (openBlock(), createElementBlock("label", _hoisted_1$h, [
|
|
22324
22455
|
createVNode(_component_LangText, { input: _ctx.label }, null, 8, ["input"])
|
|
22325
22456
|
])) : createCommentVNode("", true),
|
|
22326
22457
|
withDirectives(createElementVNode("input", {
|
|
@@ -22332,19 +22463,19 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
22332
22463
|
onFocus: initList,
|
|
22333
22464
|
onInput: handleInput,
|
|
22334
22465
|
disabled: !_ctx.editMode
|
|
22335
|
-
}, null, 40, _hoisted_2$
|
|
22466
|
+
}, null, 40, _hoisted_2$e), [
|
|
22336
22467
|
[vModelText, selectedItem.value]
|
|
22337
22468
|
]),
|
|
22338
22469
|
createElementVNode("div", {
|
|
22339
22470
|
class: normalizeClass(["custom-select", { "open-select": showList.value && linkOptions.value.length > 0 }]),
|
|
22340
22471
|
name: "link-input"
|
|
22341
22472
|
}, [
|
|
22342
|
-
createElementVNode("div", _hoisted_3$
|
|
22473
|
+
createElementVNode("div", _hoisted_3$c, [
|
|
22343
22474
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList(linkOptions.value, (item2) => {
|
|
22344
22475
|
return openBlock(), createElementBlock("div", {
|
|
22345
22476
|
key: unref(formatString)(item2.value, "pascal"),
|
|
22346
22477
|
onClick: withModifiers(($event) => handleSelect(item2), ["stop"])
|
|
22347
|
-
}, toDisplayString(_ctx.useId || _ctx.entity === "Entity" ? item2.value : item2.label || item2.description || item2.value), 9, _hoisted_4$
|
|
22478
|
+
}, toDisplayString(_ctx.useId || _ctx.entity === "Entity" ? item2.value : item2.label || item2.description || item2.value), 9, _hoisted_4$7);
|
|
22348
22479
|
}), 128))
|
|
22349
22480
|
])
|
|
22350
22481
|
], 2)
|
|
@@ -22352,10 +22483,10 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
22352
22483
|
};
|
|
22353
22484
|
}
|
|
22354
22485
|
});
|
|
22355
|
-
const _hoisted_1$
|
|
22356
|
-
const _hoisted_2$
|
|
22357
|
-
const _hoisted_3$
|
|
22358
|
-
const _sfc_main$
|
|
22486
|
+
const _hoisted_1$g = ["title"];
|
|
22487
|
+
const _hoisted_2$d = ["for"];
|
|
22488
|
+
const _hoisted_3$b = ["id", "placeholder", "required", "pattern"];
|
|
22489
|
+
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
22359
22490
|
__name: "PlainText",
|
|
22360
22491
|
props: {
|
|
22361
22492
|
field: {},
|
|
@@ -22401,15 +22532,15 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
22401
22532
|
class: { "no-edit": !_ctx.editMode },
|
|
22402
22533
|
required: _ctx.required,
|
|
22403
22534
|
pattern: _ctx.pattern
|
|
22404
|
-
}, _ctx.nativeInputAttrs), null, 16, _hoisted_3$
|
|
22535
|
+
}, _ctx.nativeInputAttrs), null, 16, _hoisted_3$b), [
|
|
22405
22536
|
[vModelText, unref(inputVal)]
|
|
22406
22537
|
])
|
|
22407
|
-
], 8, _hoisted_2$
|
|
22408
|
-
], 10, _hoisted_1$
|
|
22538
|
+
], 8, _hoisted_2$d)
|
|
22539
|
+
], 10, _hoisted_1$g)) : createCommentVNode("", true);
|
|
22409
22540
|
};
|
|
22410
22541
|
}
|
|
22411
22542
|
});
|
|
22412
|
-
const PlainText = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
22543
|
+
const PlainText = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-188270a2"]]);
|
|
22413
22544
|
function _typeof(o) {
|
|
22414
22545
|
"@babel/helpers - typeof";
|
|
22415
22546
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
|
|
@@ -31786,15 +31917,15 @@ const vl = ({
|
|
|
31786
31917
|
Object.entries(Ro).forEach(([e3, t4]) => {
|
|
31787
31918
|
e3 !== "default" && (ja[e3] = t4);
|
|
31788
31919
|
});
|
|
31789
|
-
const _hoisted_1$
|
|
31790
|
-
const _hoisted_2$
|
|
31791
|
-
const _hoisted_3$
|
|
31920
|
+
const _hoisted_1$f = { class: "datetime-wrap" };
|
|
31921
|
+
const _hoisted_2$c = { class: "date-wrap" };
|
|
31922
|
+
const _hoisted_3$a = {
|
|
31792
31923
|
key: 0,
|
|
31793
31924
|
class: "time-wrap"
|
|
31794
31925
|
};
|
|
31795
|
-
const _hoisted_4$
|
|
31796
|
-
const _hoisted_5$
|
|
31797
|
-
const _sfc_main$
|
|
31926
|
+
const _hoisted_4$6 = ["id", "name", "value"];
|
|
31927
|
+
const _hoisted_5$6 = ["for"];
|
|
31928
|
+
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
31798
31929
|
__name: "DatePicker",
|
|
31799
31930
|
props: {
|
|
31800
31931
|
name: {},
|
|
@@ -31810,8 +31941,8 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
31810
31941
|
return `${hour}:${minute}`;
|
|
31811
31942
|
});
|
|
31812
31943
|
return (_ctx, _cache) => {
|
|
31813
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
31814
|
-
createElementVNode("div", _hoisted_2$
|
|
31944
|
+
return openBlock(), createElementBlock("div", _hoisted_1$f, [
|
|
31945
|
+
createElementVNode("div", _hoisted_2$c, [
|
|
31815
31946
|
createVNode(unref(ja), mergeProps({
|
|
31816
31947
|
inline: "",
|
|
31817
31948
|
"week-start": "0",
|
|
@@ -31826,7 +31957,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
31826
31957
|
_: 1
|
|
31827
31958
|
}, 16, ["modelValue"])
|
|
31828
31959
|
]),
|
|
31829
|
-
_ctx.showTimeWrap ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
31960
|
+
_ctx.showTimeWrap ? (openBlock(), createElementBlock("div", _hoisted_3$a, [
|
|
31830
31961
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList(unref(hours), (hr2) => {
|
|
31831
31962
|
return openBlock(), createElementBlock(Fragment$1, { key: hr2 }, [
|
|
31832
31963
|
withDirectives(createElementVNode("input", {
|
|
@@ -31835,12 +31966,12 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
31835
31966
|
name: _ctx.name,
|
|
31836
31967
|
value: hr2,
|
|
31837
31968
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => selectedHour.value = $event)
|
|
31838
|
-
}, null, 8, _hoisted_4$
|
|
31969
|
+
}, null, 8, _hoisted_4$6), [
|
|
31839
31970
|
[vModelRadio, selectedHour.value]
|
|
31840
31971
|
]),
|
|
31841
31972
|
createElementVNode("label", {
|
|
31842
31973
|
for: `${hr2}_${_ctx.name}`
|
|
31843
|
-
}, toDisplayString(hr2), 9, _hoisted_5$
|
|
31974
|
+
}, toDisplayString(hr2), 9, _hoisted_5$6)
|
|
31844
31975
|
], 64);
|
|
31845
31976
|
}), 128))
|
|
31846
31977
|
])) : createCommentVNode("", true)
|
|
@@ -31848,10 +31979,10 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
31848
31979
|
};
|
|
31849
31980
|
}
|
|
31850
31981
|
});
|
|
31851
|
-
const _hoisted_1$
|
|
31852
|
-
const _hoisted_2$
|
|
31853
|
-
const _hoisted_3$
|
|
31854
|
-
const _sfc_main$
|
|
31982
|
+
const _hoisted_1$e = { class: "flex gap-2 flex-wrap" };
|
|
31983
|
+
const _hoisted_2$b = ["id", "name", "value", "checked"];
|
|
31984
|
+
const _hoisted_3$9 = ["for"];
|
|
31985
|
+
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
31855
31986
|
__name: "RadioPillsInput",
|
|
31856
31987
|
props: {
|
|
31857
31988
|
options: {},
|
|
@@ -31889,7 +32020,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
31889
32020
|
selectedValue.value = props2.modelValue;
|
|
31890
32021
|
});
|
|
31891
32022
|
return (_ctx, _cache) => {
|
|
31892
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
32023
|
+
return openBlock(), createElementBlock("div", _hoisted_1$e, [
|
|
31893
32024
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList(cumputedOptions.value, ({ id, label: label2, value }, index2) => {
|
|
31894
32025
|
return openBlock(), createElementBlock("div", {
|
|
31895
32026
|
class: "radio-pill",
|
|
@@ -31902,15 +32033,120 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
31902
32033
|
value,
|
|
31903
32034
|
checked: unref(selectedValue) === value,
|
|
31904
32035
|
onChange: handleSelect
|
|
31905
|
-
}, null, 40, _hoisted_2$
|
|
31906
|
-
createElementVNode("label", { for: id }, toDisplayString(label2), 9, _hoisted_3$
|
|
32036
|
+
}, null, 40, _hoisted_2$b),
|
|
32037
|
+
createElementVNode("label", { for: id }, toDisplayString(label2), 9, _hoisted_3$9)
|
|
31907
32038
|
]);
|
|
31908
32039
|
}), 128))
|
|
31909
32040
|
]);
|
|
31910
32041
|
};
|
|
31911
32042
|
}
|
|
31912
32043
|
});
|
|
31913
|
-
const RadioPillsInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
32044
|
+
const RadioPillsInput = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-97e3ba8c"]]);
|
|
32045
|
+
const _hoisted_1$d = { class: "bagel-input" };
|
|
32046
|
+
const _hoisted_2$a = { key: 0 };
|
|
32047
|
+
const _hoisted_3$8 = { class: "imagePreviewWrap" };
|
|
32048
|
+
const _hoisted_4$5 = ["src"];
|
|
32049
|
+
const _hoisted_5$5 = { class: "previewName" };
|
|
32050
|
+
const _hoisted_6$4 = { class: "no-margin" };
|
|
32051
|
+
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
32052
|
+
__name: "FileUpload",
|
|
32053
|
+
props: {
|
|
32054
|
+
label: {},
|
|
32055
|
+
multiple: { type: Boolean }
|
|
32056
|
+
},
|
|
32057
|
+
setup(__props) {
|
|
32058
|
+
const props2 = __props;
|
|
32059
|
+
const files = ref([]);
|
|
32060
|
+
const fileQueue = ref([]);
|
|
32061
|
+
let isDragOver = ref(false);
|
|
32062
|
+
const preventDefault = (e3) => {
|
|
32063
|
+
e3.preventDefault();
|
|
32064
|
+
e3.stopPropagation();
|
|
32065
|
+
};
|
|
32066
|
+
const fileToUrl = (file) => URL.createObjectURL(file);
|
|
32067
|
+
const removeFile = (file) => {
|
|
32068
|
+
const index2 = files.value.indexOf(file);
|
|
32069
|
+
files.value.splice(index2, 1);
|
|
32070
|
+
};
|
|
32071
|
+
const flushQueue = () => {
|
|
32072
|
+
fileQueue.value.forEach((file, i3) => {
|
|
32073
|
+
if (props2.multiple) {
|
|
32074
|
+
if (!files.value.includes(file))
|
|
32075
|
+
files.value.push(file);
|
|
32076
|
+
} else
|
|
32077
|
+
files.value.splice(0, 1, file);
|
|
32078
|
+
console.log(files.value);
|
|
32079
|
+
fileQueue.value.splice(i3, 1);
|
|
32080
|
+
});
|
|
32081
|
+
};
|
|
32082
|
+
const browse = () => {
|
|
32083
|
+
const input2 = document.createElement("input");
|
|
32084
|
+
input2.type = "file";
|
|
32085
|
+
input2.multiple = props2.multiple;
|
|
32086
|
+
input2.onchange = (e3) => {
|
|
32087
|
+
const target = e3 == null ? void 0 : e3.target;
|
|
32088
|
+
if (target == null ? void 0 : target.files)
|
|
32089
|
+
fileQueue.value.push(...Array.from(target.files));
|
|
32090
|
+
flushQueue();
|
|
32091
|
+
};
|
|
32092
|
+
input2.click();
|
|
32093
|
+
};
|
|
32094
|
+
const dragleave = (e3) => {
|
|
32095
|
+
preventDefault(e3);
|
|
32096
|
+
if (e3.dataTransfer)
|
|
32097
|
+
isDragOver.value = false;
|
|
32098
|
+
else
|
|
32099
|
+
isDragOver.value = false;
|
|
32100
|
+
};
|
|
32101
|
+
const dragenter = (e3) => {
|
|
32102
|
+
preventDefault(e3);
|
|
32103
|
+
if (e3.dataTransfer)
|
|
32104
|
+
isDragOver.value = true;
|
|
32105
|
+
else
|
|
32106
|
+
isDragOver.value = false;
|
|
32107
|
+
};
|
|
32108
|
+
const drop3 = (e3) => {
|
|
32109
|
+
preventDefault(e3);
|
|
32110
|
+
if (e3.dataTransfer)
|
|
32111
|
+
fileQueue.value.push(...Array.from(e3.dataTransfer.files));
|
|
32112
|
+
isDragOver.value = false;
|
|
32113
|
+
flushQueue();
|
|
32114
|
+
};
|
|
32115
|
+
return (_ctx, _cache) => {
|
|
32116
|
+
return openBlock(), createElementBlock("div", _hoisted_1$d, [
|
|
32117
|
+
createElementVNode("label", null, toDisplayString(_ctx.label), 1),
|
|
32118
|
+
createElementVNode("div", {
|
|
32119
|
+
onClick: browse,
|
|
32120
|
+
onDragover: dragenter,
|
|
32121
|
+
onDrop: drop3,
|
|
32122
|
+
onDragleave: dragleave,
|
|
32123
|
+
class: normalizeClass(["fileUploadWrap", { fileDropZone: !files.value.length, dragover: unref(isDragOver) }])
|
|
32124
|
+
}, [
|
|
32125
|
+
files.value.length && !_ctx.multiple ? (openBlock(), createElementBlock("div", _hoisted_2$a, [
|
|
32126
|
+
createElementVNode("div", _hoisted_3$8, [
|
|
32127
|
+
createElementVNode("img", {
|
|
32128
|
+
class: "preview",
|
|
32129
|
+
src: fileToUrl(files.value[0]),
|
|
32130
|
+
alt: ""
|
|
32131
|
+
}, null, 8, _hoisted_4$5)
|
|
32132
|
+
]),
|
|
32133
|
+
createElementVNode("div", _hoisted_5$5, [
|
|
32134
|
+
createElementVNode("p", _hoisted_6$4, toDisplayString(files.value[0].name), 1),
|
|
32135
|
+
createVNode(unref(Btn), {
|
|
32136
|
+
thin: "",
|
|
32137
|
+
onClick: _cache[0] || (_cache[0] = withModifiers(($event) => removeFile(files.value[0]), ["stop"])),
|
|
32138
|
+
flat: "",
|
|
32139
|
+
icon: "delete",
|
|
32140
|
+
color: "red"
|
|
32141
|
+
})
|
|
32142
|
+
])
|
|
32143
|
+
])) : createCommentVNode("", true)
|
|
32144
|
+
], 34)
|
|
32145
|
+
]);
|
|
32146
|
+
};
|
|
32147
|
+
}
|
|
32148
|
+
});
|
|
32149
|
+
const FileUpload = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-352399c0"]]);
|
|
31914
32150
|
function _isPlaceholder(a3) {
|
|
31915
32151
|
return a3 != null && typeof a3 === "object" && a3["@@functional/placeholder"] === true;
|
|
31916
32152
|
}
|
|
@@ -38368,7 +38604,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
38368
38604
|
return (_ctx, _cache) => {
|
|
38369
38605
|
var _a2, _b, _c, _d, _e2, _f;
|
|
38370
38606
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
38371
|
-
createVNode(unref(_sfc_main$
|
|
38607
|
+
createVNode(unref(_sfc_main$N), null, {
|
|
38372
38608
|
default: withCtx(() => [
|
|
38373
38609
|
createTextVNode("Whatsapp Template")
|
|
38374
38610
|
]),
|
|
@@ -38377,7 +38613,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
38377
38613
|
createElementVNode("div", _hoisted_2, [
|
|
38378
38614
|
createElementVNode("div", _hoisted_3, [
|
|
38379
38615
|
createElementVNode("div", _hoisted_4, [
|
|
38380
|
-
createVNode(unref(_sfc_main$
|
|
38616
|
+
createVNode(unref(_sfc_main$L), {
|
|
38381
38617
|
schema: _ctx.whatsappTemplateSchema(),
|
|
38382
38618
|
modelValue: unref(localWhatsappData),
|
|
38383
38619
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(localWhatsappData) ? localWhatsappData.value = $event : localWhatsappData = $event),
|
|
@@ -38406,49 +38642,52 @@ export {
|
|
|
38406
38642
|
BagelVue,
|
|
38407
38643
|
BankDetailsInput,
|
|
38408
38644
|
BarChart,
|
|
38645
|
+
_sfc_main$q as BglField,
|
|
38646
|
+
_sfc_main$r as BglForm,
|
|
38409
38647
|
Btn,
|
|
38410
38648
|
CheckInput,
|
|
38411
38649
|
Checkbox,
|
|
38412
|
-
_sfc_main$
|
|
38650
|
+
_sfc_main$7 as ColorPicker,
|
|
38413
38651
|
Comments,
|
|
38414
38652
|
ContactArrayInput,
|
|
38415
|
-
_sfc_main$
|
|
38653
|
+
_sfc_main$H as ContactSubmissions,
|
|
38416
38654
|
CurrencyInput,
|
|
38417
38655
|
DataPreview,
|
|
38418
38656
|
DateInput,
|
|
38419
|
-
_sfc_main$
|
|
38420
|
-
_sfc_main$
|
|
38421
|
-
_sfc_main$
|
|
38422
|
-
_sfc_main$
|
|
38423
|
-
_sfc_main$
|
|
38657
|
+
_sfc_main$4 as DatePicker,
|
|
38658
|
+
_sfc_main$m as DatetimeInput,
|
|
38659
|
+
_sfc_main$S as DropDown,
|
|
38660
|
+
_sfc_main$a as DurationInput,
|
|
38661
|
+
_sfc_main$6 as DynamicLinkField,
|
|
38424
38662
|
EmailInput,
|
|
38663
|
+
FileUpload,
|
|
38425
38664
|
FileUploadInput,
|
|
38426
|
-
_sfc_main$
|
|
38427
|
-
_sfc_main$
|
|
38428
|
-
_sfc_main$
|
|
38429
|
-
_sfc_main$
|
|
38430
|
-
_sfc_main$
|
|
38665
|
+
_sfc_main$x as FileUploader,
|
|
38666
|
+
_sfc_main$k as FloatInput,
|
|
38667
|
+
_sfc_main$L as FormSchema,
|
|
38668
|
+
_sfc_main$j as IntInput,
|
|
38669
|
+
_sfc_main$u as ItemRef,
|
|
38431
38670
|
JSONInput,
|
|
38432
|
-
_sfc_main$
|
|
38671
|
+
_sfc_main$Y as LangText,
|
|
38433
38672
|
_sfc_main$1 as Lineart,
|
|
38434
38673
|
LinkField,
|
|
38435
|
-
_sfc_main$
|
|
38436
|
-
_sfc_main$
|
|
38437
|
-
_sfc_main$
|
|
38674
|
+
_sfc_main$Q as ListItem,
|
|
38675
|
+
_sfc_main$R as ListView,
|
|
38676
|
+
_sfc_main$W as MaterialIcon,
|
|
38438
38677
|
MiscFieldsInput,
|
|
38439
|
-
_sfc_main$
|
|
38678
|
+
_sfc_main$T as Modal,
|
|
38440
38679
|
ModalForm,
|
|
38441
38680
|
ModalPlugin,
|
|
38442
38681
|
MsgTemplate,
|
|
38443
|
-
_sfc_main$
|
|
38444
|
-
_sfc_main$
|
|
38682
|
+
_sfc_main$V as NavBar,
|
|
38683
|
+
_sfc_main$N as PageTitle,
|
|
38445
38684
|
Password,
|
|
38446
38685
|
PasswordInput,
|
|
38447
|
-
_sfc_main$
|
|
38686
|
+
_sfc_main$G as PersonPreview,
|
|
38448
38687
|
PersonPreviewInput,
|
|
38449
|
-
_sfc_main$
|
|
38688
|
+
_sfc_main$s as PlainInputField,
|
|
38450
38689
|
PlainText,
|
|
38451
|
-
_sfc_main$
|
|
38690
|
+
_sfc_main$X as RTXEditor,
|
|
38452
38691
|
RadioPillsInput,
|
|
38453
38692
|
ReadOnlyInput,
|
|
38454
38693
|
RichTextEditor,
|
|
@@ -38459,12 +38698,12 @@ export {
|
|
|
38459
38698
|
TableSchema,
|
|
38460
38699
|
TextArea,
|
|
38461
38700
|
TextInput,
|
|
38462
|
-
_sfc_main$
|
|
38701
|
+
_sfc_main$v as TextVariableExamples,
|
|
38463
38702
|
TextVariablesInput,
|
|
38464
38703
|
ToggleSwitchInput,
|
|
38465
38704
|
TopBar,
|
|
38466
38705
|
bagelInjectionKey,
|
|
38467
|
-
|
|
38706
|
+
bindAttrs,
|
|
38468
38707
|
copyText,
|
|
38469
38708
|
debounce,
|
|
38470
38709
|
formatString,
|