@bagelink/vue 0.0.200 → 0.0.206
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 +3 -0
- package/dist/components/Btn.vue.d.ts.map +1 -1
- package/dist/components/TabbedLayout.vue.d.ts +5 -3
- package/dist/components/TabbedLayout.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/RadioPillsInput.vue.d.ts +5 -3
- package/dist/components/form/inputs/RadioPillsInput.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 +849 -605
- package/dist/index.mjs +849 -605
- package/dist/style.css +146 -74
- 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/types/materialIcons.d.ts +1 -1
- package/dist/types/materialIcons.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 +8 -7
- package/src/components/TabbedLayout.vue +58 -45
- package/src/components/form/BglField.vue +30 -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/RadioPillsInput.vue +20 -14
- 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/types/materialIcons.ts +1 -0
- 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$o = { 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$o, [
|
|
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 },
|
|
@@ -14671,7 +14659,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
14671
14659
|
color: {},
|
|
14672
14660
|
theme: {},
|
|
14673
14661
|
flat: { type: Boolean },
|
|
14674
|
-
border: { type: Boolean },
|
|
14662
|
+
border: { type: Boolean, default: false },
|
|
14675
14663
|
thin: { type: Boolean },
|
|
14676
14664
|
type: { default: "button" },
|
|
14677
14665
|
loading: { 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
|
+
"0b5510c0": computedBackgroundColor.value,
|
|
14675
|
+
"18db167b": cumputedTextColor.value
|
|
14688
14676
|
}));
|
|
14689
14677
|
const slots = useSlots();
|
|
14690
14678
|
const props2 = __props;
|
|
@@ -14708,10 +14696,11 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
14708
14696
|
red: getThemeColors({ backgroundColor: "var(--bgl-red)" }),
|
|
14709
14697
|
black: getThemeColors({ backgroundColor: "var(--bgl-black)" }),
|
|
14710
14698
|
green: getThemeColors({ backgroundColor: "var(--bgl-green)", color: "var(--bgl-white)" }),
|
|
14711
|
-
|
|
14699
|
+
primary: getThemeColors({ backgroundColor: "var(--bgl-primary)", color: "var(--bgl-white)" }),
|
|
14712
14700
|
gray: getThemeColors({ backgroundColor: "var(--bgl-gray-light)", color: "var(--bgl-black)" }),
|
|
14713
14701
|
light: getThemeColors({ backgroundColor: "var(--bgl-primary-light)", color: "var(--bgl-primary)" }),
|
|
14714
|
-
"gray-light": getThemeColors({ backgroundColor: "var(--bgl-gray-light)", color: "var(--bgl-gray)" })
|
|
14702
|
+
"gray-light": getThemeColors({ backgroundColor: "var(--bgl-gray-light)", color: "var(--bgl-gray)" }),
|
|
14703
|
+
blue: getThemeColors({})
|
|
14715
14704
|
};
|
|
14716
14705
|
const cumputedTextColor = computed(
|
|
14717
14706
|
() => {
|
|
@@ -14741,8 +14730,8 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
14741
14730
|
})
|
|
14742
14731
|
}, {
|
|
14743
14732
|
default: withCtx(() => [
|
|
14744
|
-
_ctx.loading ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
14745
|
-
_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), {
|
|
14746
14735
|
key: 0,
|
|
14747
14736
|
icon: _ctx.icon
|
|
14748
14737
|
}, null, 8, ["icon"])) : createCommentVNode("", true),
|
|
@@ -14750,7 +14739,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
14750
14739
|
!unref(slots)["default"] && _ctx.value ? (openBlock(), createElementBlock(Fragment$1, { key: 1 }, [
|
|
14751
14740
|
createTextVNode(toDisplayString(_ctx.value), 1)
|
|
14752
14741
|
], 64)) : createCommentVNode("", true),
|
|
14753
|
-
props2["icon.end"] ? (openBlock(), createBlock(unref(_sfc_main$
|
|
14742
|
+
props2["icon.end"] ? (openBlock(), createBlock(unref(_sfc_main$W), {
|
|
14754
14743
|
key: 2,
|
|
14755
14744
|
icon: props2["icon.end"]
|
|
14756
14745
|
}, null, 8, ["icon"])) : createCommentVNode("", true)
|
|
@@ -14768,11 +14757,11 @@ const _export_sfc = (sfc, props2) => {
|
|
|
14768
14757
|
}
|
|
14769
14758
|
return target;
|
|
14770
14759
|
};
|
|
14771
|
-
const Btn = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
14772
|
-
const _hoisted_1$
|
|
14773
|
-
const _hoisted_2$
|
|
14774
|
-
const _hoisted_3$
|
|
14775
|
-
const _sfc_main$
|
|
14760
|
+
const Btn = /* @__PURE__ */ _export_sfc(_sfc_main$U, [["__scopeId", "data-v-0ca0d3de"]]);
|
|
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({
|
|
14776
14765
|
__name: "Modal",
|
|
14777
14766
|
props: {
|
|
14778
14767
|
side: { type: Boolean },
|
|
@@ -14818,7 +14807,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
14818
14807
|
onClick: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
14819
14808
|
}, ["stop"]))
|
|
14820
14809
|
}, [
|
|
14821
|
-
createElementVNode("header", _hoisted_1$
|
|
14810
|
+
createElementVNode("header", _hoisted_1$Z, [
|
|
14822
14811
|
renderSlot(_ctx.$slots, "toolbar"),
|
|
14823
14812
|
createVNode(unref(Btn), {
|
|
14824
14813
|
style: normalizeStyle({ float: _ctx.side ? "left" : "right" }),
|
|
@@ -14826,10 +14815,10 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
14826
14815
|
icon: "close",
|
|
14827
14816
|
onClick: closeModal
|
|
14828
14817
|
}, null, 8, ["style"]),
|
|
14829
|
-
createElementVNode("h3", _hoisted_2$
|
|
14818
|
+
createElementVNode("h3", _hoisted_2$Q, toDisplayString(_ctx.title), 1)
|
|
14830
14819
|
]),
|
|
14831
14820
|
renderSlot(_ctx.$slots, "default"),
|
|
14832
|
-
createElementVNode("footer", _hoisted_3$
|
|
14821
|
+
createElementVNode("footer", _hoisted_3$J, [
|
|
14833
14822
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList(_ctx.actions, (action, i3) => {
|
|
14834
14823
|
return openBlock(), createBlock(unref(Btn), mergeProps({
|
|
14835
14824
|
key: i3,
|
|
@@ -14844,10 +14833,10 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
14844
14833
|
};
|
|
14845
14834
|
}
|
|
14846
14835
|
});
|
|
14847
|
-
const _hoisted_1$
|
|
14848
|
-
const _hoisted_2$
|
|
14849
|
-
const _hoisted_3$
|
|
14850
|
-
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({
|
|
14851
14840
|
__name: "DropDown",
|
|
14852
14841
|
props: {
|
|
14853
14842
|
modelValue: String,
|
|
@@ -14873,31 +14862,31 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
14873
14862
|
class: normalizeClass(["dropdown", { opendrop: unref(isOpen) }]),
|
|
14874
14863
|
onClick: toggleDropdown
|
|
14875
14864
|
}, [
|
|
14876
|
-
createElementVNode("div", _hoisted_1$
|
|
14865
|
+
createElementVNode("div", _hoisted_1$Y, [
|
|
14877
14866
|
createTextVNode(toDisplayString(unref(selectedOption) || __props.placeholder) + " ", 1),
|
|
14878
|
-
createVNode(unref(_sfc_main$
|
|
14867
|
+
createVNode(unref(_sfc_main$W), { icon: "keyboard_arrow_down" })
|
|
14879
14868
|
]),
|
|
14880
|
-
createElementVNode("div", _hoisted_2$
|
|
14869
|
+
createElementVNode("div", _hoisted_2$P, [
|
|
14881
14870
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList(__props.options, (option2, index2) => {
|
|
14882
14871
|
return openBlock(), createElementBlock("p", {
|
|
14883
14872
|
key: index2,
|
|
14884
14873
|
onClick: withModifiers(($event) => selectOption(option2, index2), ["stop"])
|
|
14885
|
-
}, toDisplayString(option2), 9, _hoisted_3$
|
|
14874
|
+
}, toDisplayString(option2), 9, _hoisted_3$I);
|
|
14886
14875
|
}), 128))
|
|
14887
14876
|
])
|
|
14888
14877
|
], 2);
|
|
14889
14878
|
};
|
|
14890
14879
|
}
|
|
14891
14880
|
});
|
|
14892
|
-
const _hoisted_1$
|
|
14893
|
-
const _hoisted_2$
|
|
14894
|
-
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 = {
|
|
14895
14884
|
key: 0,
|
|
14896
14885
|
class: "bagel-input search-wrap"
|
|
14897
14886
|
};
|
|
14898
|
-
const _hoisted_4$
|
|
14899
|
-
const _hoisted_5$
|
|
14900
|
-
const _sfc_main$
|
|
14887
|
+
const _hoisted_4$s = ["placeholder"];
|
|
14888
|
+
const _hoisted_5$n = { class: "list-content grid auto-flow-rows align-items-start" };
|
|
14889
|
+
const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
14901
14890
|
__name: "ListView",
|
|
14902
14891
|
props: {
|
|
14903
14892
|
enableAdd: { type: Boolean },
|
|
@@ -14913,17 +14902,17 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
14913
14902
|
debounce(() => emit2("debounce", searchTerm.value));
|
|
14914
14903
|
};
|
|
14915
14904
|
return (_ctx, _cache) => {
|
|
14916
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
14917
|
-
createElementVNode("div", _hoisted_2$
|
|
14918
|
-
_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, [
|
|
14919
14908
|
withDirectives(createElementVNode("input", {
|
|
14920
14909
|
placeholder: _ctx.searchPlaceholder,
|
|
14921
14910
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => searchTerm.value = $event),
|
|
14922
14911
|
onInput: _cache[1] || (_cache[1] = ($event) => search())
|
|
14923
|
-
}, null, 40, _hoisted_4$
|
|
14912
|
+
}, null, 40, _hoisted_4$s), [
|
|
14924
14913
|
[vModelText, searchTerm.value]
|
|
14925
14914
|
]),
|
|
14926
|
-
createVNode(unref(_sfc_main$
|
|
14915
|
+
createVNode(unref(_sfc_main$W), {
|
|
14927
14916
|
class: "txtgray",
|
|
14928
14917
|
icon: "search"
|
|
14929
14918
|
})
|
|
@@ -14934,16 +14923,16 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
14934
14923
|
onClick: _cache[2] || (_cache[2] = ($event) => emit2("add"))
|
|
14935
14924
|
})) : createCommentVNode("", true)
|
|
14936
14925
|
]),
|
|
14937
|
-
createElementVNode("div", _hoisted_5$
|
|
14926
|
+
createElementVNode("div", _hoisted_5$n, [
|
|
14938
14927
|
renderSlot(_ctx.$slots, "default")
|
|
14939
14928
|
])
|
|
14940
14929
|
]);
|
|
14941
14930
|
};
|
|
14942
14931
|
}
|
|
14943
14932
|
});
|
|
14944
|
-
const _hoisted_1$
|
|
14945
|
-
const _hoisted_2$
|
|
14946
|
-
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({
|
|
14947
14936
|
__name: "ListItem",
|
|
14948
14937
|
props: {
|
|
14949
14938
|
to: {}
|
|
@@ -14955,10 +14944,10 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
14955
14944
|
class: "list-item ellipsis"
|
|
14956
14945
|
}, {
|
|
14957
14946
|
default: withCtx(() => [
|
|
14958
|
-
createElementVNode("p", _hoisted_1$
|
|
14947
|
+
createElementVNode("p", _hoisted_1$W, [
|
|
14959
14948
|
renderSlot(_ctx.$slots, "default")
|
|
14960
14949
|
]),
|
|
14961
|
-
createElementVNode("p", _hoisted_2$
|
|
14950
|
+
createElementVNode("p", _hoisted_2$N, [
|
|
14962
14951
|
renderSlot(_ctx.$slots, "subtitle")
|
|
14963
14952
|
])
|
|
14964
14953
|
]),
|
|
@@ -14967,17 +14956,17 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
14967
14956
|
};
|
|
14968
14957
|
}
|
|
14969
14958
|
});
|
|
14970
|
-
const _hoisted_1$
|
|
14971
|
-
const _hoisted_2$
|
|
14972
|
-
const _hoisted_3$
|
|
14973
|
-
const
|
|
14974
|
-
const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
14959
|
+
const _hoisted_1$V = { class: "card tabs-top" };
|
|
14960
|
+
const _hoisted_2$M = { class: "tabs grid auto-flow-columns fit-content" };
|
|
14961
|
+
const _hoisted_3$G = ["onClick"];
|
|
14962
|
+
const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
14975
14963
|
__name: "TabbedLayout",
|
|
14976
14964
|
props: {
|
|
14977
14965
|
title: {},
|
|
14978
14966
|
tabs: {},
|
|
14979
14967
|
modelValue: {},
|
|
14980
|
-
router: {}
|
|
14968
|
+
router: {},
|
|
14969
|
+
sideTabs: { type: Boolean }
|
|
14981
14970
|
},
|
|
14982
14971
|
emits: ["update:modelValue"],
|
|
14983
14972
|
setup(__props, { emit: __emit }) {
|
|
@@ -14985,32 +14974,38 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
14985
14974
|
let activeTab = ref();
|
|
14986
14975
|
const props2 = __props;
|
|
14987
14976
|
function changeTab(tab) {
|
|
14988
|
-
|
|
14977
|
+
var _a2;
|
|
14989
14978
|
activeTab.value = tab;
|
|
14990
|
-
void router.push({
|
|
14991
|
-
path: router.currentRoute.value.path,
|
|
14992
|
-
query: { ...router.currentRoute.value.query, t: tab },
|
|
14993
|
-
hash: router.currentRoute.value.hash
|
|
14994
|
-
});
|
|
14995
14979
|
emit2("update:modelValue", activeTab.value);
|
|
14980
|
+
if (!props2.router)
|
|
14981
|
+
return;
|
|
14982
|
+
void ((_a2 = props2.router) == null ? void 0 : _a2.push({
|
|
14983
|
+
path: props2.router.currentRoute.value.path,
|
|
14984
|
+
query: { ...props2.router.currentRoute.value.query, t: tab },
|
|
14985
|
+
hash: props2.router.currentRoute.value.hash
|
|
14986
|
+
}));
|
|
14996
14987
|
}
|
|
14997
14988
|
onMounted(() => {
|
|
14998
|
-
|
|
14989
|
+
var _a2;
|
|
14990
|
+
const firstTab = props2.modelValue || ((_a2 = props2.router) == null ? void 0 : _a2.currentRoute.value.query.t) || props2.tabs[0];
|
|
14999
14991
|
activeTab.value = firstTab;
|
|
15000
14992
|
});
|
|
15001
14993
|
return (_ctx, _cache) => {
|
|
15002
|
-
return openBlock(), createElementBlock("div",
|
|
15003
|
-
|
|
14994
|
+
return openBlock(), createElementBlock("div", {
|
|
14995
|
+
class: normalizeClass(["h-100 grid list-view gap-3", { "side-tabs": _ctx.sideTabs }])
|
|
14996
|
+
}, [
|
|
14997
|
+
createElementVNode("div", _hoisted_1$V, [
|
|
15004
14998
|
renderSlot(_ctx.$slots, "top-section", {}, void 0, true),
|
|
15005
|
-
createElementVNode("div",
|
|
14999
|
+
createElementVNode("div", _hoisted_2$M, [
|
|
15006
15000
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList(_ctx.tabs, (tab) => {
|
|
15001
|
+
var _a2;
|
|
15007
15002
|
return openBlock(), createElementBlock("div", {
|
|
15008
15003
|
class: normalizeClass([{
|
|
15009
|
-
active: tab === unref(activeTab) || tab === _ctx.router.currentRoute.value.path.split("/").slice(-1)[0]
|
|
15004
|
+
active: tab === unref(activeTab) || tab === ((_a2 = _ctx.router) == null ? void 0 : _a2.currentRoute.value.path.split("/").slice(-1)[0])
|
|
15010
15005
|
}, "tab"]),
|
|
15011
15006
|
key: tab,
|
|
15012
15007
|
onClick: ($event) => changeTab(tab)
|
|
15013
|
-
}, toDisplayString(tab), 11,
|
|
15008
|
+
}, toDisplayString(tab), 11, _hoisted_3$G);
|
|
15014
15009
|
}), 128))
|
|
15015
15010
|
])
|
|
15016
15011
|
]),
|
|
@@ -15022,20 +15017,20 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
15022
15017
|
renderSlot(_ctx.$slots, tab, { key: tab }, void 0, true)
|
|
15023
15018
|
]);
|
|
15024
15019
|
}), 128))
|
|
15025
|
-
]);
|
|
15020
|
+
], 2);
|
|
15026
15021
|
};
|
|
15027
15022
|
}
|
|
15028
15023
|
});
|
|
15029
|
-
const TabbedLayout = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
15030
|
-
const _hoisted_1$
|
|
15031
|
-
const _hoisted_2$
|
|
15032
|
-
const _hoisted_3$
|
|
15033
|
-
const _hoisted_4$
|
|
15034
|
-
const _hoisted_5$
|
|
15035
|
-
const _hoisted_6$
|
|
15024
|
+
const TabbedLayout = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["__scopeId", "data-v-09fce741"]]);
|
|
15025
|
+
const _hoisted_1$U = { class: "comments-wrap" };
|
|
15026
|
+
const _hoisted_2$L = { class: "comment-list" };
|
|
15027
|
+
const _hoisted_3$F = { class: "comment-top" };
|
|
15028
|
+
const _hoisted_4$r = { class: "comment-owner" };
|
|
15029
|
+
const _hoisted_5$m = { class: "comment-time" };
|
|
15030
|
+
const _hoisted_6$h = { class: "comment-actions" };
|
|
15036
15031
|
const _hoisted_7$c = ["innerHTML"];
|
|
15037
15032
|
const _hoisted_8$6 = { class: "new-comment" };
|
|
15038
|
-
const _sfc_main$
|
|
15033
|
+
const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
15039
15034
|
__name: "Comments",
|
|
15040
15035
|
props: {
|
|
15041
15036
|
ref_table: {},
|
|
@@ -15078,8 +15073,8 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
15078
15073
|
void fetchData();
|
|
15079
15074
|
};
|
|
15080
15075
|
return (_ctx, _cache) => {
|
|
15081
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
15082
|
-
createElementVNode("div", _hoisted_2$
|
|
15076
|
+
return openBlock(), createElementBlock("div", _hoisted_1$U, [
|
|
15077
|
+
createElementVNode("div", _hoisted_2$L, [
|
|
15083
15078
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList(unref(comments), (comment) => {
|
|
15084
15079
|
var _a2, _b, _c;
|
|
15085
15080
|
return openBlock(), createElementBlock("div", {
|
|
@@ -15089,23 +15084,23 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
15089
15084
|
}, "comment"]),
|
|
15090
15085
|
key: comment.id
|
|
15091
15086
|
}, [
|
|
15092
|
-
createElementVNode("div", _hoisted_3$
|
|
15093
|
-
createElementVNode("div", _hoisted_4$
|
|
15094
|
-
createElementVNode("div", _hoisted_5$
|
|
15095
|
-
createElementVNode("div", _hoisted_6$
|
|
15096
|
-
createVNode(unref(_sfc_main$
|
|
15087
|
+
createElementVNode("div", _hoisted_3$F, [
|
|
15088
|
+
createElementVNode("div", _hoisted_4$r, toDisplayString(comment.sender.first_name) + " " + toDisplayString(comment.sender.last_name), 1),
|
|
15089
|
+
createElementVNode("div", _hoisted_5$m, toDisplayString(comment.updated_at.split("T")[0]), 1),
|
|
15090
|
+
createElementVNode("div", _hoisted_6$h, [
|
|
15091
|
+
createVNode(unref(_sfc_main$W), {
|
|
15097
15092
|
size: 1,
|
|
15098
15093
|
class: "edit",
|
|
15099
15094
|
icon: "edit",
|
|
15100
15095
|
onClick: ($event) => isRef(editComment) ? editComment.value = comment : editComment = comment
|
|
15101
15096
|
}, null, 8, ["onClick"]),
|
|
15102
|
-
createVNode(unref(_sfc_main$
|
|
15097
|
+
createVNode(unref(_sfc_main$W), {
|
|
15103
15098
|
size: 1.2,
|
|
15104
15099
|
class: "delete",
|
|
15105
15100
|
icon: "delete",
|
|
15106
15101
|
onClick: ($event) => deleteComment(comment.id)
|
|
15107
15102
|
}, null, 8, ["onClick"]),
|
|
15108
|
-
createVNode(unref(_sfc_main$
|
|
15103
|
+
createVNode(unref(_sfc_main$W), {
|
|
15109
15104
|
size: 1.2,
|
|
15110
15105
|
class: "save",
|
|
15111
15106
|
icon: "save",
|
|
@@ -15113,7 +15108,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
15113
15108
|
})
|
|
15114
15109
|
])
|
|
15115
15110
|
]),
|
|
15116
|
-
unref(editComment) !== null && ((_c = unref(editComment)) == null ? void 0 : _c.id) === comment.id ? (openBlock(), createBlock(unref(_sfc_main$
|
|
15111
|
+
unref(editComment) !== null && ((_c = unref(editComment)) == null ? void 0 : _c.id) === comment.id ? (openBlock(), createBlock(unref(_sfc_main$X), {
|
|
15117
15112
|
key: 0,
|
|
15118
15113
|
modelValue: unref(editComment).body_html,
|
|
15119
15114
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(editComment).body_html = $event),
|
|
@@ -15127,7 +15122,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
15127
15122
|
}), 128))
|
|
15128
15123
|
]),
|
|
15129
15124
|
createElementVNode("div", _hoisted_8$6, [
|
|
15130
|
-
createVNode(unref(_sfc_main$
|
|
15125
|
+
createVNode(unref(_sfc_main$X), {
|
|
15131
15126
|
class: "comment-input",
|
|
15132
15127
|
modelValue: unref(bodyHtml),
|
|
15133
15128
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(bodyHtml) ? bodyHtml.value = $event : bodyHtml = $event),
|
|
@@ -15147,10 +15142,10 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
15147
15142
|
};
|
|
15148
15143
|
}
|
|
15149
15144
|
});
|
|
15150
|
-
const Comments = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
15151
|
-
const _hoisted_1$
|
|
15152
|
-
const _hoisted_2$
|
|
15153
|
-
const _sfc_main$
|
|
15145
|
+
const Comments = /* @__PURE__ */ _export_sfc(_sfc_main$O, [["__scopeId", "data-v-2eead7c8"]]);
|
|
15146
|
+
const _hoisted_1$T = { class: "page-top" };
|
|
15147
|
+
const _hoisted_2$K = { class: "top-title" };
|
|
15148
|
+
const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
15154
15149
|
__name: "PageTitle",
|
|
15155
15150
|
props: {
|
|
15156
15151
|
value: {
|
|
@@ -15160,8 +15155,8 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
15160
15155
|
},
|
|
15161
15156
|
setup(__props) {
|
|
15162
15157
|
return (_ctx, _cache) => {
|
|
15163
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
15164
|
-
createElementVNode("h1", _hoisted_2$
|
|
15158
|
+
return openBlock(), createElementBlock("div", _hoisted_1$T, [
|
|
15159
|
+
createElementVNode("h1", _hoisted_2$K, [
|
|
15165
15160
|
renderSlot(_ctx.$slots, "default"),
|
|
15166
15161
|
createTextVNode(" " + toDisplayString(__props.value), 1)
|
|
15167
15162
|
])
|
|
@@ -15169,9 +15164,9 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
15169
15164
|
};
|
|
15170
15165
|
}
|
|
15171
15166
|
});
|
|
15172
|
-
const _hoisted_1$
|
|
15173
|
-
const _hoisted_2$
|
|
15174
|
-
const _sfc_main$
|
|
15167
|
+
const _hoisted_1$S = { class: "tool-bar" };
|
|
15168
|
+
const _hoisted_2$J = { class: "modal-title" };
|
|
15169
|
+
const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
15175
15170
|
__name: "ModalForm",
|
|
15176
15171
|
props: {
|
|
15177
15172
|
side: { type: Boolean },
|
|
@@ -15244,7 +15239,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
15244
15239
|
onClick: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
15245
15240
|
}, ["stop"]))
|
|
15246
15241
|
}, [
|
|
15247
|
-
createElementVNode("header", _hoisted_1$
|
|
15242
|
+
createElementVNode("header", _hoisted_1$S, [
|
|
15248
15243
|
renderSlot(_ctx.$slots, "toolbar", {}, void 0, true),
|
|
15249
15244
|
createVNode(unref(Btn), {
|
|
15250
15245
|
style: normalizeStyle({ float: _ctx.side ? "left" : "right" }),
|
|
@@ -15252,9 +15247,9 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
15252
15247
|
icon: "close",
|
|
15253
15248
|
onClick: closeModal
|
|
15254
15249
|
}, null, 8, ["style"]),
|
|
15255
|
-
createElementVNode("h3", _hoisted_2$
|
|
15250
|
+
createElementVNode("h3", _hoisted_2$J, toDisplayString(_ctx.title), 1)
|
|
15256
15251
|
]),
|
|
15257
|
-
createVNode(unref(_sfc_main$
|
|
15252
|
+
createVNode(unref(_sfc_main$L), {
|
|
15258
15253
|
onDelete: _ctx.onDelete ? runDelete : void 0,
|
|
15259
15254
|
modelValue: _ctx.modelValue,
|
|
15260
15255
|
"onUpdate:modelValue": handleEmit,
|
|
@@ -15266,8 +15261,8 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
15266
15261
|
};
|
|
15267
15262
|
}
|
|
15268
15263
|
});
|
|
15269
|
-
const ModalForm = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
15270
|
-
const _sfc_main$
|
|
15264
|
+
const ModalForm = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["__scopeId", "data-v-1799b7d0"]]);
|
|
15265
|
+
const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
15271
15266
|
__name: "FormSchema",
|
|
15272
15267
|
props: {
|
|
15273
15268
|
modelValue: {},
|
|
@@ -15340,14 +15335,14 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
15340
15335
|
};
|
|
15341
15336
|
}
|
|
15342
15337
|
});
|
|
15343
|
-
const _hoisted_1$
|
|
15344
|
-
const _hoisted_2$
|
|
15345
|
-
const _hoisted_3$
|
|
15346
|
-
const _hoisted_4$
|
|
15347
|
-
const _hoisted_5$
|
|
15348
|
-
const _hoisted_6$
|
|
15338
|
+
const _hoisted_1$R = { class: "table-list-wrap h-100" };
|
|
15339
|
+
const _hoisted_2$I = { class: "infinite-wrapper" };
|
|
15340
|
+
const _hoisted_3$E = { class: "row first-row" };
|
|
15341
|
+
const _hoisted_4$q = ["onClick"];
|
|
15342
|
+
const _hoisted_5$l = { class: "flex" };
|
|
15343
|
+
const _hoisted_6$g = ["onClick"];
|
|
15349
15344
|
const _hoisted_7$b = { key: 1 };
|
|
15350
|
-
const _sfc_main$
|
|
15345
|
+
const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
15351
15346
|
__name: "TableSchema",
|
|
15352
15347
|
props: {
|
|
15353
15348
|
data: {},
|
|
@@ -15362,7 +15357,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
15362
15357
|
const selectElement = (data2) => {
|
|
15363
15358
|
emit2("select", data2);
|
|
15364
15359
|
};
|
|
15365
|
-
const
|
|
15360
|
+
const bindAttrs2 = (attrs, field, row) => {
|
|
15366
15361
|
const arr = Object.entries(attrs || {}).map(([key, value]) => [
|
|
15367
15362
|
key,
|
|
15368
15363
|
typeof value === "function" ? value(field, row) : value
|
|
@@ -15393,27 +15388,27 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
15393
15388
|
}
|
|
15394
15389
|
);
|
|
15395
15390
|
return (_ctx, _cache) => {
|
|
15396
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
15397
|
-
createElementVNode("table", _hoisted_2$
|
|
15398
|
-
createElementVNode("thead", _hoisted_3$
|
|
15391
|
+
return openBlock(), createElementBlock("div", _hoisted_1$R, [
|
|
15392
|
+
createElementVNode("table", _hoisted_2$I, [
|
|
15393
|
+
createElementVNode("thead", _hoisted_3$E, [
|
|
15399
15394
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList(columns.value, (field) => {
|
|
15400
15395
|
return openBlock(), createElementBlock("th", {
|
|
15401
15396
|
class: "col",
|
|
15402
15397
|
key: field.id,
|
|
15403
15398
|
onClick: ($event) => sort2(field.id)
|
|
15404
15399
|
}, [
|
|
15405
|
-
createElementVNode("div", _hoisted_5$
|
|
15400
|
+
createElementVNode("div", _hoisted_5$l, [
|
|
15406
15401
|
createTextVNode(toDisplayString((field == null ? void 0 : field.label) || (field == null ? void 0 : field.id)) + " ", 1),
|
|
15407
15402
|
createElementVNode("div", {
|
|
15408
15403
|
class: normalizeClass(["list-arrows", { sorted: unref(sortField) === field.id }])
|
|
15409
15404
|
}, [
|
|
15410
|
-
createVNode(unref(_sfc_main$
|
|
15405
|
+
createVNode(unref(_sfc_main$W), {
|
|
15411
15406
|
class: normalizeClass({ desc: unref(sortDirection) === "DESC" }),
|
|
15412
15407
|
icon: "keyboard_arrow_up"
|
|
15413
15408
|
}, null, 8, ["class"])
|
|
15414
15409
|
], 2)
|
|
15415
15410
|
])
|
|
15416
|
-
], 8, _hoisted_4$
|
|
15411
|
+
], 8, _hoisted_4$q);
|
|
15417
15412
|
}), 128))
|
|
15418
15413
|
]),
|
|
15419
15414
|
createElementVNode("tbody", {
|
|
@@ -15437,7 +15432,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
15437
15432
|
row,
|
|
15438
15433
|
field
|
|
15439
15434
|
}, void 0, true) : (openBlock(), createElementBlock("div", _hoisted_7$b, [
|
|
15440
|
-
(field["v-if"] ? field["v-if"](row[field.id], row) : true) ? (openBlock(), createBlock(resolveDynamicComponent(field.$el || field.$cmp || "div"), mergeProps({ key: 0 },
|
|
15435
|
+
(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), {
|
|
15441
15436
|
src: field.$el === "img" ? (_a2 = row[field.id]) == null ? void 0 : _a2.url : "",
|
|
15442
15437
|
"onUpdate:modelValue": ($event) => {
|
|
15443
15438
|
var _a3;
|
|
@@ -15456,7 +15451,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
15456
15451
|
]))
|
|
15457
15452
|
]);
|
|
15458
15453
|
}), 128))
|
|
15459
|
-
], 8, _hoisted_6$
|
|
15454
|
+
], 8, _hoisted_6$g);
|
|
15460
15455
|
}), 128))
|
|
15461
15456
|
], 2)
|
|
15462
15457
|
])
|
|
@@ -15464,16 +15459,16 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
15464
15459
|
};
|
|
15465
15460
|
}
|
|
15466
15461
|
});
|
|
15467
|
-
const TableSchema = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
15468
|
-
const _sfc_main$
|
|
15469
|
-
const _hoisted_1$
|
|
15462
|
+
const TableSchema = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["__scopeId", "data-v-f3a410c2"]]);
|
|
15463
|
+
const _sfc_main$J = {};
|
|
15464
|
+
const _hoisted_1$Q = { class: "flex space-between" };
|
|
15470
15465
|
function _sfc_render$1(_ctx, _cache) {
|
|
15471
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
15466
|
+
return openBlock(), createElementBlock("div", _hoisted_1$Q, [
|
|
15472
15467
|
renderSlot(_ctx.$slots, "default")
|
|
15473
15468
|
]);
|
|
15474
15469
|
}
|
|
15475
|
-
const TopBar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
15476
|
-
const _sfc_main$
|
|
15470
|
+
const TopBar = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["render", _sfc_render$1]]);
|
|
15471
|
+
const _sfc_main$I = {};
|
|
15477
15472
|
function _sfc_render(_ctx, _cache) {
|
|
15478
15473
|
const _component_router_view = resolveComponent("router-view");
|
|
15479
15474
|
return openBlock(), createBlock(_component_router_view, null, {
|
|
@@ -15495,9 +15490,9 @@ function _sfc_render(_ctx, _cache) {
|
|
|
15495
15490
|
_: 1
|
|
15496
15491
|
});
|
|
15497
15492
|
}
|
|
15498
|
-
const RouterWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
15499
|
-
const _hoisted_1$
|
|
15500
|
-
const _sfc_main$
|
|
15493
|
+
const RouterWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["render", _sfc_render]]);
|
|
15494
|
+
const _hoisted_1$P = { class: "card h-100 thin" };
|
|
15495
|
+
const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
15501
15496
|
__name: "ContactSubmissions",
|
|
15502
15497
|
props: {
|
|
15503
15498
|
person_id: {
|
|
@@ -15527,7 +15522,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
15527
15522
|
void getData();
|
|
15528
15523
|
});
|
|
15529
15524
|
return (_ctx, _cache) => {
|
|
15530
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
15525
|
+
return openBlock(), createElementBlock("div", _hoisted_1$P, [
|
|
15531
15526
|
createVNode(unref(TableSchema), {
|
|
15532
15527
|
schema: schema2,
|
|
15533
15528
|
data: unref(data2)
|
|
@@ -15536,15 +15531,15 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
15536
15531
|
};
|
|
15537
15532
|
}
|
|
15538
15533
|
});
|
|
15539
|
-
const _hoisted_1$
|
|
15534
|
+
const _hoisted_1$O = {
|
|
15540
15535
|
key: 0,
|
|
15541
15536
|
class: "person-card-edit flex gap-2"
|
|
15542
15537
|
};
|
|
15543
|
-
const _hoisted_2$
|
|
15544
|
-
const _hoisted_3$
|
|
15545
|
-
const _hoisted_4$
|
|
15546
|
-
const _hoisted_5$
|
|
15547
|
-
const _hoisted_6$
|
|
15538
|
+
const _hoisted_2$H = { class: "person-card-icon-wrap" };
|
|
15539
|
+
const _hoisted_3$D = { class: "person-card-icon" };
|
|
15540
|
+
const _hoisted_4$p = { class: "person-card-name txt20" };
|
|
15541
|
+
const _hoisted_5$k = { class: "person-card-details-wrap" };
|
|
15542
|
+
const _hoisted_6$f = {
|
|
15548
15543
|
key: 0,
|
|
15549
15544
|
class: "person-card-details"
|
|
15550
15545
|
};
|
|
@@ -15558,7 +15553,7 @@ const _hoisted_8$5 = {
|
|
|
15558
15553
|
};
|
|
15559
15554
|
const _hoisted_9$3 = { key: 0 };
|
|
15560
15555
|
const _hoisted_10$3 = { key: 1 };
|
|
15561
|
-
const _sfc_main$
|
|
15556
|
+
const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
15562
15557
|
__name: "PersonPreview",
|
|
15563
15558
|
props: {
|
|
15564
15559
|
person: {},
|
|
@@ -15588,7 +15583,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
15588
15583
|
(...args) => _ctx.onClick && _ctx.onClick(...args)),
|
|
15589
15584
|
class: "person-card"
|
|
15590
15585
|
}, [
|
|
15591
|
-
!_ctx.onClick ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
15586
|
+
!_ctx.onClick ? (openBlock(), createElementBlock("div", _hoisted_1$O, [
|
|
15592
15587
|
!_ctx.$route.path.match("/search") ? (openBlock(), createBlock(unref(Btn), {
|
|
15593
15588
|
key: 0,
|
|
15594
15589
|
round: "",
|
|
@@ -15605,13 +15600,13 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
15605
15600
|
icon: "edit"
|
|
15606
15601
|
})
|
|
15607
15602
|
])) : createCommentVNode("", true),
|
|
15608
|
-
createElementVNode("div", _hoisted_2$
|
|
15609
|
-
createElementVNode("p", _hoisted_3$
|
|
15610
|
-
createElementVNode("p", _hoisted_4$
|
|
15603
|
+
createElementVNode("div", _hoisted_2$H, [
|
|
15604
|
+
createElementVNode("p", _hoisted_3$D, toDisplayString(unref(initials)(_ctx.person.first_name, _ctx.person.last_name)), 1),
|
|
15605
|
+
createElementVNode("p", _hoisted_4$p, toDisplayString(_ctx.person.first_name) + " " + toDisplayString(_ctx.person.last_name), 1)
|
|
15611
15606
|
]),
|
|
15612
|
-
createElementVNode("div", _hoisted_5$
|
|
15613
|
-
((_a2 = _ctx.person.phone) == null ? void 0 : _a2.length) ? (openBlock(), createElementBlock("div", _hoisted_6$
|
|
15614
|
-
createVNode(unref(_sfc_main$
|
|
15607
|
+
createElementVNode("div", _hoisted_5$k, [
|
|
15608
|
+
((_a2 = _ctx.person.phone) == null ? void 0 : _a2.length) ? (openBlock(), createElementBlock("div", _hoisted_6$f, [
|
|
15609
|
+
createVNode(unref(_sfc_main$W), { icon: "phone" }),
|
|
15615
15610
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList(_ctx.person.phone, (phone) => {
|
|
15616
15611
|
return openBlock(), createElementBlock("p", {
|
|
15617
15612
|
key: phone.id
|
|
@@ -15619,7 +15614,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
15619
15614
|
}), 128))
|
|
15620
15615
|
])) : createCommentVNode("", true),
|
|
15621
15616
|
((_b = _ctx.person.email) == null ? void 0 : _b.length) ? (openBlock(), createElementBlock("div", _hoisted_7$a, [
|
|
15622
|
-
createVNode(unref(_sfc_main$
|
|
15617
|
+
createVNode(unref(_sfc_main$W), { icon: "email" }),
|
|
15623
15618
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList(_ctx.person.email, (email) => {
|
|
15624
15619
|
return openBlock(), createElementBlock("p", {
|
|
15625
15620
|
key: email.id
|
|
@@ -15627,7 +15622,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
15627
15622
|
}), 128))
|
|
15628
15623
|
])) : createCommentVNode("", true),
|
|
15629
15624
|
_ctx.person.date_of_birth || _ctx.person.gender ? (openBlock(), createElementBlock("div", _hoisted_8$5, [
|
|
15630
|
-
createVNode(unref(_sfc_main$
|
|
15625
|
+
createVNode(unref(_sfc_main$W), { icon: "badge" }),
|
|
15631
15626
|
_ctx.person.date_of_birth ? (openBlock(), createElementBlock("p", _hoisted_9$3, toDisplayString(_ctx.person.date_of_birth), 1)) : createCommentVNode("", true),
|
|
15632
15627
|
_ctx.person.gender ? (openBlock(), createElementBlock("p", _hoisted_10$3, toDisplayString(_ctx.person.gender), 1)) : createCommentVNode("", true)
|
|
15633
15628
|
])) : createCommentVNode("", true)
|
|
@@ -15636,23 +15631,23 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
15636
15631
|
};
|
|
15637
15632
|
}
|
|
15638
15633
|
});
|
|
15639
|
-
const _hoisted_1$
|
|
15634
|
+
const _hoisted_1$N = {
|
|
15640
15635
|
key: 0,
|
|
15641
15636
|
class: "data"
|
|
15642
15637
|
};
|
|
15643
|
-
const _hoisted_2$
|
|
15638
|
+
const _hoisted_2$G = {
|
|
15644
15639
|
key: 0,
|
|
15645
15640
|
class: "mb-3 mt-0"
|
|
15646
15641
|
};
|
|
15647
|
-
const _hoisted_3$
|
|
15642
|
+
const _hoisted_3$C = {
|
|
15648
15643
|
key: 0,
|
|
15649
15644
|
class: "data-row"
|
|
15650
15645
|
};
|
|
15651
|
-
const _hoisted_4$
|
|
15652
|
-
const _hoisted_5$
|
|
15653
|
-
const _hoisted_6$
|
|
15646
|
+
const _hoisted_4$o = { class: "key" };
|
|
15647
|
+
const _hoisted_5$j = { key: 1 };
|
|
15648
|
+
const _hoisted_6$e = { class: "key" };
|
|
15654
15649
|
const _hoisted_7$9 = { class: "vlue" };
|
|
15655
|
-
const _sfc_main$
|
|
15650
|
+
const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
15656
15651
|
__name: "DataPreview",
|
|
15657
15652
|
props: {
|
|
15658
15653
|
data: {},
|
|
@@ -15664,7 +15659,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
15664
15659
|
const keysToIgnore = ["id", "person_id", "person", "created_at", "updated_at"];
|
|
15665
15660
|
const props2 = __props;
|
|
15666
15661
|
const itemData = ref(props2.data);
|
|
15667
|
-
const
|
|
15662
|
+
const bindAttrs2 = (attrs, field, row) => {
|
|
15668
15663
|
const arr = Object.entries(attrs || {}).map(([key, value]) => [
|
|
15669
15664
|
key,
|
|
15670
15665
|
typeof value === "function" ? value(field, row) : value
|
|
@@ -15674,14 +15669,14 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
15674
15669
|
};
|
|
15675
15670
|
return (_ctx, _cache) => {
|
|
15676
15671
|
var _a2;
|
|
15677
|
-
return _ctx.data ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
15678
|
-
_ctx.title ? (openBlock(), createElementBlock("h3", _hoisted_2$
|
|
15672
|
+
return _ctx.data ? (openBlock(), createElementBlock("div", _hoisted_1$N, [
|
|
15673
|
+
_ctx.title ? (openBlock(), createElementBlock("h3", _hoisted_2$G, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true),
|
|
15679
15674
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList(_ctx.schema || [], (field) => {
|
|
15680
15675
|
return openBlock(), createElementBlock(Fragment$1, {
|
|
15681
15676
|
key: field.id
|
|
15682
15677
|
}, [
|
|
15683
|
-
(field["v-if"] ? field["v-if"](itemData.value[field.id], itemData.value) : true) ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
15684
|
-
createElementVNode("div", _hoisted_4$
|
|
15678
|
+
(field["v-if"] ? field["v-if"](itemData.value[field.id], itemData.value) : true) ? (openBlock(), createElementBlock("div", _hoisted_3$C, [
|
|
15679
|
+
createElementVNode("div", _hoisted_4$o, toDisplayString((field == null ? void 0 : field.label) || unref(keyToLabel)(field.id)), 1),
|
|
15685
15680
|
(openBlock(), createBlock(resolveDynamicComponent(field.$el || "div"), mergeProps({
|
|
15686
15681
|
class: "vlue",
|
|
15687
15682
|
modelValue: itemData.value[field.id],
|
|
@@ -15689,7 +15684,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
15689
15684
|
var _a3;
|
|
15690
15685
|
return (_a3 = field == null ? void 0 : field.onUpdate) == null ? void 0 : _a3.call(field, $event, _ctx.data[field.id], itemData.value);
|
|
15691
15686
|
}]
|
|
15692
|
-
},
|
|
15687
|
+
}, bindAttrs2(field.attrs, itemData.value[field.id], itemData.value)), {
|
|
15693
15688
|
default: withCtx(() => {
|
|
15694
15689
|
var _a3;
|
|
15695
15690
|
return [
|
|
@@ -15701,7 +15696,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
15701
15696
|
])) : createCommentVNode("", true)
|
|
15702
15697
|
], 64);
|
|
15703
15698
|
}), 128)),
|
|
15704
|
-
!((_a2 = _ctx.schema) == null ? void 0 : _a2.length) ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
15699
|
+
!((_a2 = _ctx.schema) == null ? void 0 : _a2.length) ? (openBlock(), createElementBlock("div", _hoisted_5$j, [
|
|
15705
15700
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList(Object.entries(itemData.value).filter(
|
|
15706
15701
|
([key]) => !keysToIgnore.includes(key)
|
|
15707
15702
|
), ([key, value]) => {
|
|
@@ -15709,7 +15704,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
15709
15704
|
class: "data-row",
|
|
15710
15705
|
key
|
|
15711
15706
|
}, [
|
|
15712
|
-
createElementVNode("div", _hoisted_6$
|
|
15707
|
+
createElementVNode("div", _hoisted_6$e, toDisplayString(unref(i18nT)(unref(keyToLabel)(key))), 1),
|
|
15713
15708
|
createElementVNode("div", _hoisted_7$9, toDisplayString(value), 1)
|
|
15714
15709
|
]);
|
|
15715
15710
|
}), 128))
|
|
@@ -15719,23 +15714,23 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
15719
15714
|
};
|
|
15720
15715
|
}
|
|
15721
15716
|
});
|
|
15722
|
-
const DataPreview = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
15717
|
+
const DataPreview = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-dc2757c4"]]);
|
|
15723
15718
|
const _withScopeId$2 = (n) => (pushScopeId("data-v-fe5af582"), n = n(), popScopeId(), n);
|
|
15724
|
-
const _hoisted_1$
|
|
15725
|
-
const _hoisted_2$
|
|
15719
|
+
const _hoisted_1$M = { class: "bar-chart" };
|
|
15720
|
+
const _hoisted_2$F = {
|
|
15726
15721
|
key: 0,
|
|
15727
15722
|
class: "group-wrap"
|
|
15728
15723
|
};
|
|
15729
|
-
const _hoisted_3$
|
|
15730
|
-
const _hoisted_4$
|
|
15724
|
+
const _hoisted_3$B = { class: "group-title" };
|
|
15725
|
+
const _hoisted_4$n = {
|
|
15731
15726
|
key: 1,
|
|
15732
15727
|
class: "bar-wrap"
|
|
15733
15728
|
};
|
|
15734
|
-
const _hoisted_5$
|
|
15735
|
-
const _hoisted_6$
|
|
15729
|
+
const _hoisted_5$i = { class: "bar-txt" };
|
|
15730
|
+
const _hoisted_6$d = { class: "factor" };
|
|
15736
15731
|
const _hoisted_7$8 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("div", { class: "red-bar" }, null, -1));
|
|
15737
15732
|
const _hoisted_8$4 = { class: "bar-lines" };
|
|
15738
|
-
const _sfc_main$
|
|
15733
|
+
const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
15739
15734
|
__name: "BarChart",
|
|
15740
15735
|
props: {
|
|
15741
15736
|
title: {},
|
|
@@ -15787,14 +15782,14 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
15787
15782
|
const percent = (val) => val / maxValue.value * 100;
|
|
15788
15783
|
const floodPercent = computed(() => `${props2.flood}%`);
|
|
15789
15784
|
return (_ctx, _cache) => {
|
|
15790
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
15785
|
+
return openBlock(), createElementBlock("div", _hoisted_1$M, [
|
|
15791
15786
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList(dataArray.value, (item, i3) => {
|
|
15792
15787
|
return openBlock(), createElementBlock("div", {
|
|
15793
15788
|
class: "graph-wrap",
|
|
15794
15789
|
key: i3
|
|
15795
15790
|
}, [
|
|
15796
|
-
item.group ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
15797
|
-
createElementVNode("p", _hoisted_3$
|
|
15791
|
+
item.group ? (openBlock(), createElementBlock("div", _hoisted_2$F, [
|
|
15792
|
+
createElementVNode("p", _hoisted_3$B, toDisplayString(item.group), 1),
|
|
15798
15793
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList((item == null ? void 0 : item.data) || [], (nested, i22) => {
|
|
15799
15794
|
return openBlock(), createElementBlock("div", {
|
|
15800
15795
|
key: i22,
|
|
@@ -15813,7 +15808,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
15813
15808
|
}, null, 4)) : createCommentVNode("", true)
|
|
15814
15809
|
]);
|
|
15815
15810
|
}), 128))
|
|
15816
|
-
])) : (openBlock(), createElementBlock("div", _hoisted_4$
|
|
15811
|
+
])) : (openBlock(), createElementBlock("div", _hoisted_4$n, [
|
|
15817
15812
|
createElementVNode("div", {
|
|
15818
15813
|
class: "bar",
|
|
15819
15814
|
style: normalizeStyle({ height: loaded.value ? `${percent(item.value)}%` : "0" })
|
|
@@ -15823,11 +15818,11 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
15823
15818
|
class: "bar compare",
|
|
15824
15819
|
style: normalizeStyle({ height: loaded.value ? `${percent(item.compareValue)}%` : "0" })
|
|
15825
15820
|
}, null, 4)) : createCommentVNode("", true),
|
|
15826
|
-
createElementVNode("p", _hoisted_5$
|
|
15821
|
+
createElementVNode("p", _hoisted_5$i, toDisplayString(item.title), 1)
|
|
15827
15822
|
]))
|
|
15828
15823
|
]);
|
|
15829
15824
|
}), 128)),
|
|
15830
|
-
createElementVNode("p", _hoisted_6$
|
|
15825
|
+
createElementVNode("p", _hoisted_6$d, toDisplayString(_ctx.title), 1),
|
|
15831
15826
|
_hoisted_7$8,
|
|
15832
15827
|
createElementVNode("div", _hoisted_8$4, [
|
|
15833
15828
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList(marks2.value, (mark) => {
|
|
@@ -15838,7 +15833,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
15838
15833
|
};
|
|
15839
15834
|
}
|
|
15840
15835
|
});
|
|
15841
|
-
const BarChart = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
15836
|
+
const BarChart = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__scopeId", "data-v-fe5af582"]]);
|
|
15842
15837
|
const explicitKeys = [
|
|
15843
15838
|
"__key",
|
|
15844
15839
|
"__init",
|
|
@@ -17094,8 +17089,8 @@ function createInput(schemaOrComponent, definitionOptions = {}) {
|
|
|
17094
17089
|
}
|
|
17095
17090
|
return definition;
|
|
17096
17091
|
}
|
|
17097
|
-
const _hoisted_1$
|
|
17098
|
-
const _sfc_main$
|
|
17092
|
+
const _hoisted_1$L = { class: "primary-checkbox" };
|
|
17093
|
+
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
17099
17094
|
__name: "Checkbox",
|
|
17100
17095
|
props: {
|
|
17101
17096
|
modelValue: Boolean
|
|
@@ -17123,7 +17118,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
17123
17118
|
}
|
|
17124
17119
|
);
|
|
17125
17120
|
return (_ctx, _cache) => {
|
|
17126
|
-
return openBlock(), createElementBlock("label", _hoisted_1$
|
|
17121
|
+
return openBlock(), createElementBlock("label", _hoisted_1$L, [
|
|
17127
17122
|
withDirectives(createElementVNode("input", {
|
|
17128
17123
|
type: "checkbox",
|
|
17129
17124
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(val) ? val.value = $event : val = $event)
|
|
@@ -17131,24 +17126,24 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
17131
17126
|
[vModelCheckbox, unref(val)]
|
|
17132
17127
|
]),
|
|
17133
17128
|
createElementVNode("span", null, [
|
|
17134
|
-
createVNode(unref(_sfc_main$
|
|
17129
|
+
createVNode(unref(_sfc_main$W), { icon: "check" })
|
|
17135
17130
|
])
|
|
17136
17131
|
]);
|
|
17137
17132
|
};
|
|
17138
17133
|
}
|
|
17139
17134
|
});
|
|
17140
|
-
const Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
17141
|
-
const _hoisted_1$
|
|
17142
|
-
const _hoisted_2$
|
|
17143
|
-
const _hoisted_3$
|
|
17135
|
+
const Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-6b168ea9"]]);
|
|
17136
|
+
const _hoisted_1$K = { class: "bagel-input" };
|
|
17137
|
+
const _hoisted_2$E = { class: "mt-1" };
|
|
17138
|
+
const _hoisted_3$A = {
|
|
17144
17139
|
key: 0,
|
|
17145
17140
|
class: "bglform-contact-confirm"
|
|
17146
17141
|
};
|
|
17147
|
-
const _hoisted_4$
|
|
17148
|
-
const _hoisted_5$
|
|
17149
|
-
const _hoisted_6$
|
|
17142
|
+
const _hoisted_4$m = { class: "txt14" };
|
|
17143
|
+
const _hoisted_5$h = ["onUpdate:modelValue", "placeholder"];
|
|
17144
|
+
const _hoisted_6$c = ["onUpdate:modelValue", "placeholder"];
|
|
17150
17145
|
const _hoisted_7$7 = ["onUpdate:modelValue", "placeholder"];
|
|
17151
|
-
const _sfc_main$
|
|
17146
|
+
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
17152
17147
|
__name: "ContactArrayFormKit",
|
|
17153
17148
|
props: {
|
|
17154
17149
|
context: {}
|
|
@@ -17201,16 +17196,16 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
17201
17196
|
}
|
|
17202
17197
|
);
|
|
17203
17198
|
return (_ctx, _cache) => {
|
|
17204
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
17205
|
-
createElementVNode("div", _hoisted_2$
|
|
17199
|
+
return openBlock(), createElementBlock("div", _hoisted_1$K, [
|
|
17200
|
+
createElementVNode("div", _hoisted_2$E, [
|
|
17206
17201
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList(unref(val), (contact, i3) => {
|
|
17207
17202
|
var _a2, _b, _c, _d, _e2, _f;
|
|
17208
17203
|
return openBlock(), createElementBlock("div", {
|
|
17209
17204
|
class: "bglform-contact mb-2",
|
|
17210
17205
|
key: i3
|
|
17211
17206
|
}, [
|
|
17212
|
-
unref(deleteCandidate) === i3 ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
17213
|
-
createElementVNode("p", _hoisted_4$
|
|
17207
|
+
unref(deleteCandidate) === i3 ? (openBlock(), createElementBlock("div", _hoisted_3$A, [
|
|
17208
|
+
createElementVNode("p", _hoisted_4$m, toDisplayString((_a2 = formPlaceholders.value) == null ? void 0 : _a2.sure), 1),
|
|
17214
17209
|
createVNode(unref(Btn), {
|
|
17215
17210
|
thin: "",
|
|
17216
17211
|
color: "red",
|
|
@@ -17246,7 +17241,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
17246
17241
|
"onUpdate:modelValue": ($event) => contact.label = $event,
|
|
17247
17242
|
type: "text",
|
|
17248
17243
|
placeholder: (_b = formPlaceholders.value) == null ? void 0 : _b.label
|
|
17249
|
-
}, null, 8, _hoisted_5$
|
|
17244
|
+
}, null, 8, _hoisted_5$h), [
|
|
17250
17245
|
[vModelText, contact.label]
|
|
17251
17246
|
]),
|
|
17252
17247
|
((_c = _ctx.context) == null ? void 0 : _c.id) === "email" ? withDirectives((openBlock(), createElementBlock("input", {
|
|
@@ -17254,7 +17249,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
17254
17249
|
"onUpdate:modelValue": ($event) => contact.email = $event,
|
|
17255
17250
|
placeholder: (_d = formPlaceholders.value) == null ? void 0 : _d.email,
|
|
17256
17251
|
type: "email"
|
|
17257
|
-
}, null, 8, _hoisted_6$
|
|
17252
|
+
}, null, 8, _hoisted_6$c)), [
|
|
17258
17253
|
[vModelText, contact.email]
|
|
17259
17254
|
]) : createCommentVNode("", true),
|
|
17260
17255
|
((_e2 = _ctx.context) == null ? void 0 : _e2.id) === "phone" ? withDirectives((openBlock(), createElementBlock("input", {
|
|
@@ -17293,23 +17288,23 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
17293
17288
|
};
|
|
17294
17289
|
}
|
|
17295
17290
|
});
|
|
17296
|
-
const ContactArrayFormKit = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
17297
|
-
const _hoisted_1$
|
|
17298
|
-
const _hoisted_2$
|
|
17299
|
-
const _hoisted_3$
|
|
17291
|
+
const ContactArrayFormKit = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-f93bb259"]]);
|
|
17292
|
+
const _hoisted_1$J = { class: "bagel-input" };
|
|
17293
|
+
const _hoisted_2$D = { class: "mt-1" };
|
|
17294
|
+
const _hoisted_3$z = {
|
|
17300
17295
|
key: 0,
|
|
17301
17296
|
class: "bglform-contact-confirm"
|
|
17302
17297
|
};
|
|
17303
|
-
const _hoisted_4$
|
|
17304
|
-
const _hoisted_5$
|
|
17305
|
-
const _hoisted_6$
|
|
17298
|
+
const _hoisted_4$l = { class: "txt14" };
|
|
17299
|
+
const _hoisted_5$g = ["onUpdate:modelValue", "placeholder"];
|
|
17300
|
+
const _hoisted_6$b = { class: "bglform-contact-address" };
|
|
17306
17301
|
const _hoisted_7$6 = ["onUpdate:modelValue", "placeholder"];
|
|
17307
17302
|
const _hoisted_8$3 = { class: "bglform-contact-address-flex" };
|
|
17308
17303
|
const _hoisted_9$2 = ["onUpdate:modelValue", "placeholder"];
|
|
17309
17304
|
const _hoisted_10$2 = ["onUpdate:modelValue", "placeholder"];
|
|
17310
17305
|
const _hoisted_11$1 = ["onUpdate:modelValue", "placeholder"];
|
|
17311
17306
|
const _hoisted_12$1 = { class: "bglform-address-del" };
|
|
17312
|
-
const _sfc_main$
|
|
17307
|
+
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
17313
17308
|
__name: "AddressArray",
|
|
17314
17309
|
props: {
|
|
17315
17310
|
context: {}
|
|
@@ -17368,16 +17363,16 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
17368
17363
|
}
|
|
17369
17364
|
);
|
|
17370
17365
|
return (_ctx, _cache) => {
|
|
17371
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
17372
|
-
createElementVNode("div", _hoisted_2$
|
|
17366
|
+
return openBlock(), createElementBlock("div", _hoisted_1$J, [
|
|
17367
|
+
createElementVNode("div", _hoisted_2$D, [
|
|
17373
17368
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList(unref(val), (address, i3) => {
|
|
17374
17369
|
var _a2, _b, _c, _d, _e2, _f;
|
|
17375
17370
|
return openBlock(), createElementBlock("div", {
|
|
17376
17371
|
class: "bglform-contact mb-3",
|
|
17377
17372
|
key: i3
|
|
17378
17373
|
}, [
|
|
17379
|
-
unref(deleteCandidate) === i3 ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
17380
|
-
createElementVNode("p", _hoisted_4$
|
|
17374
|
+
unref(deleteCandidate) === i3 ? (openBlock(), createElementBlock("div", _hoisted_3$z, [
|
|
17375
|
+
createElementVNode("p", _hoisted_4$l, toDisplayString((_a2 = formPlaceholders.value) == null ? void 0 : _a2.sure), 1),
|
|
17381
17376
|
createVNode(unref(Btn), {
|
|
17382
17377
|
thin: "",
|
|
17383
17378
|
color: "red",
|
|
@@ -17413,10 +17408,10 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
17413
17408
|
"onUpdate:modelValue": ($event) => address.label = $event,
|
|
17414
17409
|
type: "text",
|
|
17415
17410
|
placeholder: (_b = formPlaceholders.value) == null ? void 0 : _b.label
|
|
17416
|
-
}, null, 8, _hoisted_5$
|
|
17411
|
+
}, null, 8, _hoisted_5$g), [
|
|
17417
17412
|
[vModelText, address.label]
|
|
17418
17413
|
]),
|
|
17419
|
-
createElementVNode("div", _hoisted_6$
|
|
17414
|
+
createElementVNode("div", _hoisted_6$b, [
|
|
17420
17415
|
withDirectives(createElementVNode("input", {
|
|
17421
17416
|
"onUpdate:modelValue": ($event) => address.street = $event,
|
|
17422
17417
|
placeholder: (_c = formPlaceholders.value) == null ? void 0 : _c.street,
|
|
@@ -17477,16 +17472,16 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
17477
17472
|
};
|
|
17478
17473
|
}
|
|
17479
17474
|
});
|
|
17480
|
-
const AddressArray = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
17481
|
-
const _hoisted_1$
|
|
17482
|
-
const _hoisted_2$
|
|
17483
|
-
const _hoisted_3$
|
|
17475
|
+
const AddressArray = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-77d03b04"]]);
|
|
17476
|
+
const _hoisted_1$I = { class: "bagel-input" };
|
|
17477
|
+
const _hoisted_2$C = { class: "mt-1" };
|
|
17478
|
+
const _hoisted_3$y = {
|
|
17484
17479
|
key: 0,
|
|
17485
17480
|
class: "bglform-contact-confirm"
|
|
17486
17481
|
};
|
|
17487
|
-
const _hoisted_4$
|
|
17488
|
-
const _hoisted_5$
|
|
17489
|
-
const _hoisted_6$
|
|
17482
|
+
const _hoisted_4$k = { class: "txt14" };
|
|
17483
|
+
const _hoisted_5$f = ["onUpdate:modelValue", "placeholder"];
|
|
17484
|
+
const _hoisted_6$a = { class: "bglform-contact-address" };
|
|
17490
17485
|
const _hoisted_7$5 = ["onUpdate:modelValue", "placeholder"];
|
|
17491
17486
|
const _hoisted_8$2 = { class: "bglform-contact-address-flex" };
|
|
17492
17487
|
const _hoisted_9$1 = ["onUpdate:modelValue", "placeholder"];
|
|
@@ -17498,7 +17493,7 @@ const _hoisted_14 = ["onUpdate:modelValue"];
|
|
|
17498
17493
|
const _hoisted_15 = ["onUpdate:modelValue"];
|
|
17499
17494
|
const _hoisted_16 = ["onUpdate:modelValue", "placeholder"];
|
|
17500
17495
|
const _hoisted_17 = { class: "bglform-address-del" };
|
|
17501
|
-
const _sfc_main$
|
|
17496
|
+
const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
17502
17497
|
__name: "BankDetailsArray",
|
|
17503
17498
|
props: {
|
|
17504
17499
|
context: {}
|
|
@@ -17551,16 +17546,16 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
17551
17546
|
}
|
|
17552
17547
|
);
|
|
17553
17548
|
return (_ctx, _cache) => {
|
|
17554
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
17555
|
-
createElementVNode("div", _hoisted_2$
|
|
17549
|
+
return openBlock(), createElementBlock("div", _hoisted_1$I, [
|
|
17550
|
+
createElementVNode("div", _hoisted_2$C, [
|
|
17556
17551
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList(unref(val), (bank_account, i3) => {
|
|
17557
17552
|
var _a2, _b, _c, _d, _e2, _f, _g, _h;
|
|
17558
17553
|
return openBlock(), createElementBlock("div", {
|
|
17559
17554
|
class: "bglform-contact mb-3",
|
|
17560
17555
|
key: i3
|
|
17561
17556
|
}, [
|
|
17562
|
-
unref(deleteCandidate) === i3 ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
17563
|
-
createElementVNode("p", _hoisted_4$
|
|
17557
|
+
unref(deleteCandidate) === i3 ? (openBlock(), createElementBlock("div", _hoisted_3$y, [
|
|
17558
|
+
createElementVNode("p", _hoisted_4$k, toDisplayString((_a2 = formPlaceholders.value) == null ? void 0 : _a2.sure), 1),
|
|
17564
17559
|
createVNode(unref(Btn), {
|
|
17565
17560
|
thin: "",
|
|
17566
17561
|
color: "red",
|
|
@@ -17596,10 +17591,10 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
17596
17591
|
"onUpdate:modelValue": ($event) => bank_account.label = $event,
|
|
17597
17592
|
type: "text",
|
|
17598
17593
|
placeholder: (_b = formPlaceholders.value) == null ? void 0 : _b.label
|
|
17599
|
-
}, null, 8, _hoisted_5$
|
|
17594
|
+
}, null, 8, _hoisted_5$f), [
|
|
17600
17595
|
[vModelText, bank_account.label]
|
|
17601
17596
|
]),
|
|
17602
|
-
createElementVNode("div", _hoisted_6$
|
|
17597
|
+
createElementVNode("div", _hoisted_6$a, [
|
|
17603
17598
|
withDirectives(createElementVNode("input", {
|
|
17604
17599
|
"onUpdate:modelValue": ($event) => bank_account.bank_name = $event,
|
|
17605
17600
|
placeholder: (_c = formPlaceholders.value) == null ? void 0 : _c.bankName,
|
|
@@ -17694,9 +17689,9 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
17694
17689
|
};
|
|
17695
17690
|
}
|
|
17696
17691
|
});
|
|
17697
|
-
const BankDetailsArray = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
17698
|
-
const _hoisted_1$
|
|
17699
|
-
const _sfc_main$
|
|
17692
|
+
const BankDetailsArray = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-a0d366d4"]]);
|
|
17693
|
+
const _hoisted_1$H = { class: "misc-wrap" };
|
|
17694
|
+
const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
17700
17695
|
__name: "MiscFields",
|
|
17701
17696
|
props: {
|
|
17702
17697
|
context: {},
|
|
@@ -17713,7 +17708,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
17713
17708
|
console.log(fields.value);
|
|
17714
17709
|
};
|
|
17715
17710
|
return (_ctx, _cache) => {
|
|
17716
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
17711
|
+
return openBlock(), createElementBlock("div", _hoisted_1$H, [
|
|
17717
17712
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList(fields.value.filter(
|
|
17718
17713
|
(field) => {
|
|
17719
17714
|
var _a2;
|
|
@@ -17741,13 +17736,13 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
17741
17736
|
};
|
|
17742
17737
|
}
|
|
17743
17738
|
});
|
|
17744
|
-
const MiscFieldsBtns = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
17739
|
+
const MiscFieldsBtns = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-a096417d"]]);
|
|
17745
17740
|
const _withScopeId$1 = (n) => (pushScopeId("data-v-d0543d4b"), n = n(), popScopeId(), n);
|
|
17746
|
-
const _hoisted_1$
|
|
17747
|
-
const _hoisted_2$
|
|
17748
|
-
const _hoisted_3$
|
|
17749
|
-
const _hoisted_4$
|
|
17750
|
-
const _sfc_main$
|
|
17741
|
+
const _hoisted_1$G = ["title"];
|
|
17742
|
+
const _hoisted_2$B = { class: "switch" };
|
|
17743
|
+
const _hoisted_3$x = ["id"];
|
|
17744
|
+
const _hoisted_4$j = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("span", { class: "slider round" }, null, -1));
|
|
17745
|
+
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
17751
17746
|
__name: "Toggle",
|
|
17752
17747
|
props: {
|
|
17753
17748
|
context: Object
|
|
@@ -17771,7 +17766,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
17771
17766
|
class: normalizeClass(["bagel-input checkbox", { check: (_a2 = __props.context) == null ? void 0 : _a2.attrs.isCheckbox }]),
|
|
17772
17767
|
title: (_b = __props.context) == null ? void 0 : _b.help
|
|
17773
17768
|
}, [
|
|
17774
|
-
createElementVNode("label", _hoisted_2$
|
|
17769
|
+
createElementVNode("label", _hoisted_2$B, [
|
|
17775
17770
|
withDirectives(createElementVNode("input", {
|
|
17776
17771
|
onChange: _cache[0] || (_cache[0] = () => {
|
|
17777
17772
|
var _a3;
|
|
@@ -17780,31 +17775,31 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
17780
17775
|
type: "checkbox",
|
|
17781
17776
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(inputVal) ? inputVal.value = $event : inputVal = $event),
|
|
17782
17777
|
id: (_c = __props.context) == null ? void 0 : _c.id
|
|
17783
|
-
}, null, 40, _hoisted_3$
|
|
17778
|
+
}, null, 40, _hoisted_3$x), [
|
|
17784
17779
|
[vModelCheckbox, unref(inputVal)]
|
|
17785
17780
|
]),
|
|
17786
|
-
_hoisted_4$
|
|
17781
|
+
_hoisted_4$j
|
|
17787
17782
|
])
|
|
17788
|
-
], 10, _hoisted_1$
|
|
17783
|
+
], 10, _hoisted_1$G);
|
|
17789
17784
|
};
|
|
17790
17785
|
}
|
|
17791
17786
|
});
|
|
17792
|
-
const Toggle = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
17793
|
-
const _hoisted_1$
|
|
17794
|
-
const _hoisted_2$
|
|
17787
|
+
const Toggle = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-d0543d4b"]]);
|
|
17788
|
+
const _hoisted_1$F = { class: "files-wrapper flex" };
|
|
17789
|
+
const _hoisted_2$A = {
|
|
17795
17790
|
key: 0,
|
|
17796
17791
|
class: "img-label"
|
|
17797
17792
|
};
|
|
17798
|
-
const _hoisted_3$
|
|
17799
|
-
const _hoisted_4$
|
|
17800
|
-
const _hoisted_5$
|
|
17801
|
-
const _hoisted_6$
|
|
17793
|
+
const _hoisted_3$w = { class: "uploading-wrap" };
|
|
17794
|
+
const _hoisted_4$i = { class: "load-file-bar" };
|
|
17795
|
+
const _hoisted_5$e = ["src", "alt"];
|
|
17796
|
+
const _hoisted_6$9 = { class: "flex" };
|
|
17802
17797
|
const _hoisted_7$4 = {
|
|
17803
17798
|
key: 0,
|
|
17804
17799
|
class: "progress"
|
|
17805
17800
|
};
|
|
17806
17801
|
const _hoisted_8$1 = ["multiple"];
|
|
17807
|
-
const _sfc_main$
|
|
17802
|
+
const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
17808
17803
|
__name: "FileUploader",
|
|
17809
17804
|
props: {
|
|
17810
17805
|
context: {},
|
|
@@ -17942,7 +17937,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
17942
17937
|
void addFiles(filesToAdd);
|
|
17943
17938
|
}
|
|
17944
17939
|
return (_ctx, _cache) => {
|
|
17945
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
17940
|
+
return openBlock(), createElementBlock("div", _hoisted_1$F, [
|
|
17946
17941
|
createElementVNode("div", {
|
|
17947
17942
|
ref_key: "dropZoneEl",
|
|
17948
17943
|
ref: dropZoneEl,
|
|
@@ -17962,34 +17957,34 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
17962
17957
|
]),
|
|
17963
17958
|
_: 1
|
|
17964
17959
|
}),
|
|
17965
|
-
allowUpload.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
17960
|
+
allowUpload.value ? (openBlock(), createElementBlock("div", _hoisted_2$A, [
|
|
17966
17961
|
createElementVNode("p", null, [
|
|
17967
17962
|
createTextVNode(toDisplayString(computedDragDropLabel.value) + " ", 1),
|
|
17968
17963
|
createElementVNode("span", null, toDisplayString(computedDrowseLabel.value), 1)
|
|
17969
17964
|
])
|
|
17970
17965
|
])) : createCommentVNode("", true),
|
|
17971
|
-
createElementVNode("div", _hoisted_3$
|
|
17966
|
+
createElementVNode("div", _hoisted_3$w, [
|
|
17972
17967
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList(files.value, (item, index2) => {
|
|
17973
17968
|
return openBlock(), createElementBlock("div", {
|
|
17974
17969
|
class: normalizeClass({ uploading: item.uploading }),
|
|
17975
17970
|
key: index2
|
|
17976
17971
|
}, [
|
|
17977
|
-
createElementVNode("div", _hoisted_4$
|
|
17972
|
+
createElementVNode("div", _hoisted_4$i, [
|
|
17978
17973
|
isImg(item) ? (openBlock(), createElementBlock("img", {
|
|
17979
17974
|
key: 0,
|
|
17980
17975
|
width: "40",
|
|
17981
17976
|
src: item.dataUrl,
|
|
17982
17977
|
alt: item.name,
|
|
17983
17978
|
style: { "margin-inline-end": "10px" }
|
|
17984
|
-
}, null, 8, _hoisted_5$
|
|
17979
|
+
}, null, 8, _hoisted_5$e)) : createCommentVNode("", true),
|
|
17985
17980
|
createElementVNode("p", null, toDisplayString(item.name), 1),
|
|
17986
|
-
createElementVNode("div", _hoisted_6$
|
|
17981
|
+
createElementVNode("div", _hoisted_6$9, [
|
|
17987
17982
|
createElementVNode("div", {
|
|
17988
17983
|
class: normalizeClass(["pie", { complete: item.progress === 100 }]),
|
|
17989
17984
|
style: normalizeStyle([`--p:${item.progress}`, { "--b": "2px" }])
|
|
17990
17985
|
}, [
|
|
17991
17986
|
item.progress < 100 ? (openBlock(), createElementBlock("span", _hoisted_7$4, toDisplayString(`${item.progress.toFixed(0)}`), 1)) : createCommentVNode("", true),
|
|
17992
|
-
createVNode(unref(_sfc_main$
|
|
17987
|
+
createVNode(unref(_sfc_main$W), {
|
|
17993
17988
|
class: "success",
|
|
17994
17989
|
icon: "check"
|
|
17995
17990
|
})
|
|
@@ -18019,15 +18014,15 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
18019
18014
|
};
|
|
18020
18015
|
}
|
|
18021
18016
|
});
|
|
18022
|
-
const _hoisted_1$
|
|
18017
|
+
const _hoisted_1$E = {
|
|
18023
18018
|
key: 0,
|
|
18024
18019
|
class: "person-card-edit flex gap-2"
|
|
18025
18020
|
};
|
|
18026
|
-
const _hoisted_2$
|
|
18027
|
-
const _hoisted_3$
|
|
18028
|
-
const _hoisted_4$
|
|
18029
|
-
const _hoisted_5$
|
|
18030
|
-
const _hoisted_6$
|
|
18021
|
+
const _hoisted_2$z = { class: "person-card-icon-wrap" };
|
|
18022
|
+
const _hoisted_3$v = { class: "person-card-icon" };
|
|
18023
|
+
const _hoisted_4$h = { class: "person-card-name txt20" };
|
|
18024
|
+
const _hoisted_5$d = { class: "person-card-details-wrap" };
|
|
18025
|
+
const _hoisted_6$8 = {
|
|
18031
18026
|
key: 0,
|
|
18032
18027
|
class: "person-card-details"
|
|
18033
18028
|
};
|
|
@@ -18041,7 +18036,7 @@ const _hoisted_8 = {
|
|
|
18041
18036
|
};
|
|
18042
18037
|
const _hoisted_9 = { key: 0 };
|
|
18043
18038
|
const _hoisted_10 = { key: 1 };
|
|
18044
|
-
const _sfc_main$
|
|
18039
|
+
const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
18045
18040
|
__name: "PersonPreviewFormkit",
|
|
18046
18041
|
props: {
|
|
18047
18042
|
context: {},
|
|
@@ -18072,7 +18067,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
18072
18067
|
(...args) => _ctx.onClick && _ctx.onClick(...args)),
|
|
18073
18068
|
class: "person-card"
|
|
18074
18069
|
}, [
|
|
18075
|
-
!_ctx.onClick ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
18070
|
+
!_ctx.onClick ? (openBlock(), createElementBlock("div", _hoisted_1$E, [
|
|
18076
18071
|
!_ctx.$route.path.match("/search") ? (openBlock(), createBlock(unref(Btn), {
|
|
18077
18072
|
key: 0,
|
|
18078
18073
|
onClick: unref(hideModal),
|
|
@@ -18090,13 +18085,13 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
18090
18085
|
icon: "edit"
|
|
18091
18086
|
})
|
|
18092
18087
|
])) : createCommentVNode("", true),
|
|
18093
|
-
createElementVNode("div", _hoisted_2$
|
|
18094
|
-
createElementVNode("p", _hoisted_3$
|
|
18095
|
-
createElementVNode("p", _hoisted_4$
|
|
18088
|
+
createElementVNode("div", _hoisted_2$z, [
|
|
18089
|
+
createElementVNode("p", _hoisted_3$v, toDisplayString(unref(initials)(person.value.first_name, person.value.last_name)), 1),
|
|
18090
|
+
createElementVNode("p", _hoisted_4$h, toDisplayString(person.value.first_name) + " " + toDisplayString(person.value.last_name), 1)
|
|
18096
18091
|
]),
|
|
18097
|
-
createElementVNode("div", _hoisted_5$
|
|
18098
|
-
((_a2 = person.value.phone) == null ? void 0 : _a2.length) ? (openBlock(), createElementBlock("div", _hoisted_6$
|
|
18099
|
-
createVNode(unref(_sfc_main$
|
|
18092
|
+
createElementVNode("div", _hoisted_5$d, [
|
|
18093
|
+
((_a2 = person.value.phone) == null ? void 0 : _a2.length) ? (openBlock(), createElementBlock("div", _hoisted_6$8, [
|
|
18094
|
+
createVNode(unref(_sfc_main$W), { icon: "phone" }),
|
|
18100
18095
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList(person.value.phone, (phone) => {
|
|
18101
18096
|
return openBlock(), createElementBlock("p", {
|
|
18102
18097
|
key: phone.id
|
|
@@ -18104,7 +18099,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
18104
18099
|
}), 128))
|
|
18105
18100
|
])) : createCommentVNode("", true),
|
|
18106
18101
|
((_b = person.value.email) == null ? void 0 : _b.length) ? (openBlock(), createElementBlock("div", _hoisted_7$3, [
|
|
18107
|
-
createVNode(unref(_sfc_main$
|
|
18102
|
+
createVNode(unref(_sfc_main$W), { icon: "email" }),
|
|
18108
18103
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList(person.value.email, (email) => {
|
|
18109
18104
|
return openBlock(), createElementBlock("p", {
|
|
18110
18105
|
key: email.id
|
|
@@ -18112,7 +18107,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
18112
18107
|
}), 128))
|
|
18113
18108
|
])) : createCommentVNode("", true),
|
|
18114
18109
|
person.value.date_of_birth || person.value.gender ? (openBlock(), createElementBlock("div", _hoisted_8, [
|
|
18115
|
-
createVNode(unref(_sfc_main$
|
|
18110
|
+
createVNode(unref(_sfc_main$W), { icon: "badge" }),
|
|
18116
18111
|
person.value.date_of_birth ? (openBlock(), createElementBlock("p", _hoisted_9, toDisplayString(person.value.date_of_birth), 1)) : createCommentVNode("", true),
|
|
18117
18112
|
person.value.gender ? (openBlock(), createElementBlock("p", _hoisted_10, toDisplayString(person.value.gender), 1)) : createCommentVNode("", true)
|
|
18118
18113
|
])) : createCommentVNode("", true)
|
|
@@ -18121,7 +18116,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
18121
18116
|
};
|
|
18122
18117
|
}
|
|
18123
18118
|
});
|
|
18124
|
-
const _sfc_main$
|
|
18119
|
+
const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
18125
18120
|
__name: "TextVariableExamples",
|
|
18126
18121
|
props: {
|
|
18127
18122
|
context: Object
|
|
@@ -18213,14 +18208,14 @@ const AddressInput = createInput(AddressArray);
|
|
|
18213
18208
|
const BankDetailsInput = createInput(BankDetailsArray);
|
|
18214
18209
|
const MiscFieldsInput = createInput(MiscFieldsBtns);
|
|
18215
18210
|
const ToggleSwitchInput = createInput(Toggle);
|
|
18216
|
-
const FileUploadInput = createInput(_sfc_main$
|
|
18217
|
-
const TextVariablesInput = createInput(_sfc_main$
|
|
18218
|
-
const PersonPreviewInput = createInput(_sfc_main$
|
|
18219
|
-
const _hoisted_1$
|
|
18211
|
+
const FileUploadInput = createInput(_sfc_main$x);
|
|
18212
|
+
const TextVariablesInput = createInput(_sfc_main$v);
|
|
18213
|
+
const PersonPreviewInput = createInput(_sfc_main$w);
|
|
18214
|
+
const _hoisted_1$D = {
|
|
18220
18215
|
key: 1,
|
|
18221
18216
|
class: "pill"
|
|
18222
18217
|
};
|
|
18223
|
-
const _sfc_main$
|
|
18218
|
+
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
18224
18219
|
__name: "ItemRef",
|
|
18225
18220
|
props: {
|
|
18226
18221
|
modelValue: {},
|
|
@@ -18254,15 +18249,15 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
18254
18249
|
}, {
|
|
18255
18250
|
default: withCtx(() => [
|
|
18256
18251
|
createTextVNode(toDisplayString(content.value) + " ", 1),
|
|
18257
|
-
createVNode(unref(_sfc_main$
|
|
18252
|
+
createVNode(unref(_sfc_main$W), { icon: "arrow_forward" })
|
|
18258
18253
|
]),
|
|
18259
18254
|
_: 1
|
|
18260
|
-
})) : (openBlock(), createElementBlock("span", _hoisted_1$
|
|
18255
|
+
})) : (openBlock(), createElementBlock("span", _hoisted_1$D, toDisplayString(content.value), 1))
|
|
18261
18256
|
]);
|
|
18262
18257
|
};
|
|
18263
18258
|
}
|
|
18264
18259
|
});
|
|
18265
|
-
const _sfc_main$
|
|
18260
|
+
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
18266
18261
|
__name: "MaterialIcon",
|
|
18267
18262
|
props: {
|
|
18268
18263
|
icon: {},
|
|
@@ -18277,13 +18272,13 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
18277
18272
|
};
|
|
18278
18273
|
}
|
|
18279
18274
|
});
|
|
18280
|
-
const _hoisted_1$
|
|
18281
|
-
const _hoisted_2$
|
|
18282
|
-
const _hoisted_3$
|
|
18283
|
-
const _hoisted_4$
|
|
18284
|
-
const _hoisted_5$
|
|
18285
|
-
const _hoisted_6$
|
|
18286
|
-
const _sfc_main$
|
|
18275
|
+
const _hoisted_1$C = { class: "bagel-input" };
|
|
18276
|
+
const _hoisted_2$y = ["for"];
|
|
18277
|
+
const _hoisted_3$u = ["checked"];
|
|
18278
|
+
const _hoisted_4$g = ["name", "type", "value"];
|
|
18279
|
+
const _hoisted_5$c = ["name", "type", "value"];
|
|
18280
|
+
const _hoisted_6$7 = ["name", "type", "value"];
|
|
18281
|
+
const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
18287
18282
|
__name: "PlainInputField",
|
|
18288
18283
|
props: {
|
|
18289
18284
|
type: {},
|
|
@@ -18313,14 +18308,14 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
18313
18308
|
}
|
|
18314
18309
|
});
|
|
18315
18310
|
return (_ctx, _cache) => {
|
|
18316
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
18311
|
+
return openBlock(), createElementBlock("div", _hoisted_1$C, [
|
|
18317
18312
|
createElementVNode("label", {
|
|
18318
18313
|
for: unref(formatString)(_ctx.name, "pascal")
|
|
18319
18314
|
}, [
|
|
18320
|
-
createVNode(_sfc_main$
|
|
18315
|
+
createVNode(_sfc_main$Y, {
|
|
18321
18316
|
input: unref(formatString)(_ctx.name, "titleCase")
|
|
18322
18317
|
}, null, 8, ["input"])
|
|
18323
|
-
], 8, _hoisted_2$
|
|
18318
|
+
], 8, _hoisted_2$y),
|
|
18324
18319
|
_ctx.type === "checkbox" ? (openBlock(), createElementBlock("input", {
|
|
18325
18320
|
key: 0,
|
|
18326
18321
|
ref_key: "el",
|
|
@@ -18329,7 +18324,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
18329
18324
|
class: "ctl",
|
|
18330
18325
|
type: "checkbox",
|
|
18331
18326
|
onChange: handleCheck
|
|
18332
|
-
}, null, 40, _hoisted_3$
|
|
18327
|
+
}, null, 40, _hoisted_3$u)) : _ctx.type === "number" ? (openBlock(), createElementBlock("input", {
|
|
18333
18328
|
key: 1,
|
|
18334
18329
|
ref_key: "el",
|
|
18335
18330
|
ref: el2,
|
|
@@ -18338,7 +18333,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
18338
18333
|
value: _ctx.modelValue,
|
|
18339
18334
|
class: "ctl",
|
|
18340
18335
|
onInput: handleInput
|
|
18341
|
-
}, null, 40, _hoisted_4$
|
|
18336
|
+
}, null, 40, _hoisted_4$g)) : _ctx.type === "text" ? (openBlock(), createElementBlock("input", {
|
|
18342
18337
|
key: 2,
|
|
18343
18338
|
ref_key: "el",
|
|
18344
18339
|
ref: el2,
|
|
@@ -18347,7 +18342,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
18347
18342
|
value: _ctx.modelValue,
|
|
18348
18343
|
class: "ctl",
|
|
18349
18344
|
onInput: handleInput
|
|
18350
|
-
}, null, 40, _hoisted_5$
|
|
18345
|
+
}, null, 40, _hoisted_5$c)) : _ctx.type === "textarea" ? (openBlock(), createElementBlock("textarea", {
|
|
18351
18346
|
key: 3,
|
|
18352
18347
|
ref_key: "el",
|
|
18353
18348
|
ref: el2,
|
|
@@ -18356,21 +18351,142 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
18356
18351
|
value: _ctx.modelValue,
|
|
18357
18352
|
class: "ctl",
|
|
18358
18353
|
onInput: handleInput
|
|
18359
|
-
}, null, 40, _hoisted_6$
|
|
18354
|
+
}, null, 40, _hoisted_6$7)) : createCommentVNode("", true),
|
|
18360
18355
|
createElementVNode("div", null, [
|
|
18361
|
-
createVNode(_sfc_main$
|
|
18356
|
+
createVNode(_sfc_main$Y, { input: _ctx.errorMessage }, null, 8, ["input"])
|
|
18362
18357
|
])
|
|
18363
18358
|
]);
|
|
18364
18359
|
};
|
|
18365
18360
|
}
|
|
18366
18361
|
});
|
|
18362
|
+
const _hoisted_1$B = { key: 2 };
|
|
18363
|
+
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
18364
|
+
__name: "BglForm",
|
|
18365
|
+
props: {
|
|
18366
|
+
modelValue: {},
|
|
18367
|
+
schema: {},
|
|
18368
|
+
onDelete: { type: Function },
|
|
18369
|
+
onSubmit: { type: Function }
|
|
18370
|
+
},
|
|
18371
|
+
emits: ["update:modelValue", "submit"],
|
|
18372
|
+
setup(__props, { emit: __emit }) {
|
|
18373
|
+
const { showModal } = useModal();
|
|
18374
|
+
const props2 = __props;
|
|
18375
|
+
const emits = __emit;
|
|
18376
|
+
const handleEmit = (val) => emits("update:modelValue", val);
|
|
18377
|
+
let data2 = ref({
|
|
18378
|
+
...props2.modelValue
|
|
18379
|
+
});
|
|
18380
|
+
const runSubmit = () => {
|
|
18381
|
+
emits("submit", data2.value);
|
|
18382
|
+
clearForm();
|
|
18383
|
+
};
|
|
18384
|
+
const clearForm = () => data2.value = {};
|
|
18385
|
+
const i18nT = (val) => val;
|
|
18386
|
+
watch(
|
|
18387
|
+
() => data2.value,
|
|
18388
|
+
() => handleEmit,
|
|
18389
|
+
{ immediate: true }
|
|
18390
|
+
);
|
|
18391
|
+
const runDelete = () => {
|
|
18392
|
+
showModal(
|
|
18393
|
+
{
|
|
18394
|
+
class: "small-modal",
|
|
18395
|
+
title: i18nT("Are you sure?"),
|
|
18396
|
+
actions: [
|
|
18397
|
+
{
|
|
18398
|
+
value: "Confirm",
|
|
18399
|
+
color: "red",
|
|
18400
|
+
onClick: () => {
|
|
18401
|
+
var _a2;
|
|
18402
|
+
return (_a2 = props2.onDelete) == null ? void 0 : _a2.call(props2, data2.value.id);
|
|
18403
|
+
}
|
|
18404
|
+
},
|
|
18405
|
+
{ value: "Cancel", color: "gray" }
|
|
18406
|
+
]
|
|
18407
|
+
},
|
|
18408
|
+
{ default: i18nT("form.deleteMessage") }
|
|
18409
|
+
);
|
|
18410
|
+
};
|
|
18411
|
+
return (_ctx, _cache) => {
|
|
18412
|
+
var _a2;
|
|
18413
|
+
return openBlock(), createElementBlock("form", {
|
|
18414
|
+
onSubmit: withModifiers(runSubmit, ["prevent"])
|
|
18415
|
+
}, [
|
|
18416
|
+
(openBlock(true), createElementBlock(Fragment$1, null, renderList(_ctx.schema, (field, i3) => {
|
|
18417
|
+
return openBlock(), createBlock(unref(_sfc_main$q), {
|
|
18418
|
+
key: field.id || `${i3}p`,
|
|
18419
|
+
field,
|
|
18420
|
+
modelValue: unref(data2),
|
|
18421
|
+
"onUpdate:modelValue": ($event) => field.id ? unref(data2)[field.id] = $event : ""
|
|
18422
|
+
}, null, 8, ["field", "modelValue", "onUpdate:modelValue"]);
|
|
18423
|
+
}), 128)),
|
|
18424
|
+
((_a2 = _ctx.modelValue) == null ? void 0 : _a2.id) && _ctx.onDelete ? (openBlock(), createBlock(unref(Btn), {
|
|
18425
|
+
key: 0,
|
|
18426
|
+
class: "del-top",
|
|
18427
|
+
onClick: runDelete,
|
|
18428
|
+
value: "Delete",
|
|
18429
|
+
flat: "",
|
|
18430
|
+
icon: "delete",
|
|
18431
|
+
color: "red",
|
|
18432
|
+
thin: ""
|
|
18433
|
+
})) : createCommentVNode("", true),
|
|
18434
|
+
!_ctx.$slots.submit && _ctx.onSubmit ? (openBlock(), createBlock(unref(Btn), {
|
|
18435
|
+
key: 1,
|
|
18436
|
+
value: "Submit",
|
|
18437
|
+
type: "submit",
|
|
18438
|
+
thin: ""
|
|
18439
|
+
})) : (openBlock(), createElementBlock("div", _hoisted_1$B, [
|
|
18440
|
+
renderSlot(_ctx.$slots, "submit")
|
|
18441
|
+
]))
|
|
18442
|
+
], 32);
|
|
18443
|
+
};
|
|
18444
|
+
}
|
|
18445
|
+
});
|
|
18446
|
+
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
18447
|
+
__name: "BglField",
|
|
18448
|
+
props: {
|
|
18449
|
+
modelValue: {},
|
|
18450
|
+
field: {}
|
|
18451
|
+
},
|
|
18452
|
+
emits: ["update:modelValue"],
|
|
18453
|
+
setup(__props, { emit: __emit }) {
|
|
18454
|
+
const props2 = __props;
|
|
18455
|
+
const emits = __emit;
|
|
18456
|
+
return (_ctx, _cache) => {
|
|
18457
|
+
var _a2;
|
|
18458
|
+
const _component_BglField = resolveComponent("BglField", true);
|
|
18459
|
+
return openBlock(), createBlock(resolveDynamicComponent(_ctx.field.$el || "div"), mergeProps({
|
|
18460
|
+
required: _ctx.field.required
|
|
18461
|
+
}, unref(bindAttrs)(((_a2 = _ctx.field) == null ? void 0 : _a2.attrs) || {}, props2.modelValue[_ctx.field.id || ""], props2.modelValue), {
|
|
18462
|
+
label: _ctx.field.label,
|
|
18463
|
+
id: _ctx.field.id,
|
|
18464
|
+
placeholder: _ctx.field.placeholder || _ctx.field.label,
|
|
18465
|
+
modelValue: props2.modelValue[_ctx.field.id || ""],
|
|
18466
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => emits("update:modelValue", $event))
|
|
18467
|
+
}), {
|
|
18468
|
+
default: withCtx(() => [
|
|
18469
|
+
(openBlock(true), createElementBlock(Fragment$1, null, renderList(_ctx.field.children, (child, ii) => {
|
|
18470
|
+
return openBlock(), createBlock(_component_BglField, {
|
|
18471
|
+
modelValue: _ctx.modelValue,
|
|
18472
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emits("update:modelValue", $event)),
|
|
18473
|
+
key: child.id || ii,
|
|
18474
|
+
field: child
|
|
18475
|
+
}, null, 8, ["modelValue", "field"]);
|
|
18476
|
+
}), 128))
|
|
18477
|
+
]),
|
|
18478
|
+
_: 1
|
|
18479
|
+
}, 16, ["required", "label", "id", "placeholder", "modelValue"]);
|
|
18480
|
+
};
|
|
18481
|
+
}
|
|
18482
|
+
});
|
|
18367
18483
|
const _withScopeId = (n) => (pushScopeId("data-v-0dacba34"), n = n(), popScopeId(), n);
|
|
18368
|
-
const _hoisted_1$
|
|
18369
|
-
const _hoisted_2$
|
|
18370
|
-
const _hoisted_3$
|
|
18371
|
-
const _hoisted_4$
|
|
18372
|
-
const _hoisted_5$
|
|
18373
|
-
const _sfc_main$
|
|
18484
|
+
const _hoisted_1$A = ["title"];
|
|
18485
|
+
const _hoisted_2$x = ["for"];
|
|
18486
|
+
const _hoisted_3$t = { class: "switch" };
|
|
18487
|
+
const _hoisted_4$f = ["id"];
|
|
18488
|
+
const _hoisted_5$b = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", { class: "slider round" }, null, -1));
|
|
18489
|
+
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
18374
18490
|
__name: "CheckInput",
|
|
18375
18491
|
props: {
|
|
18376
18492
|
field: {},
|
|
@@ -18403,29 +18519,29 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
18403
18519
|
}, [
|
|
18404
18520
|
createElementVNode("label", {
|
|
18405
18521
|
for: _ctx.field.id
|
|
18406
|
-
}, toDisplayString(_ctx.field.label), 9, _hoisted_2$
|
|
18407
|
-
createElementVNode("label", _hoisted_3$
|
|
18522
|
+
}, toDisplayString(_ctx.field.label), 9, _hoisted_2$x),
|
|
18523
|
+
createElementVNode("label", _hoisted_3$t, [
|
|
18408
18524
|
withDirectives(createElementVNode("input", {
|
|
18409
18525
|
id: _ctx.field.id,
|
|
18410
18526
|
type: "checkbox",
|
|
18411
18527
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputVal.value = $event),
|
|
18412
18528
|
class: normalizeClass({ "no-edit": !_ctx.editMode })
|
|
18413
|
-
}, null, 10, _hoisted_4$
|
|
18529
|
+
}, null, 10, _hoisted_4$f), [
|
|
18414
18530
|
[vModelCheckbox, inputVal.value]
|
|
18415
18531
|
]),
|
|
18416
|
-
_hoisted_5$
|
|
18532
|
+
_hoisted_5$b
|
|
18417
18533
|
])
|
|
18418
|
-
], 10, _hoisted_1$
|
|
18534
|
+
], 10, _hoisted_1$A);
|
|
18419
18535
|
};
|
|
18420
18536
|
}
|
|
18421
18537
|
});
|
|
18422
|
-
const CheckInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
18423
|
-
const _hoisted_1$
|
|
18424
|
-
const _hoisted_2$
|
|
18425
|
-
const _hoisted_3$
|
|
18426
|
-
const _hoisted_4$
|
|
18427
|
-
const _hoisted_5$
|
|
18428
|
-
const _sfc_main$
|
|
18538
|
+
const CheckInput = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-0dacba34"]]);
|
|
18539
|
+
const _hoisted_1$z = ["title"];
|
|
18540
|
+
const _hoisted_2$w = { key: 0 };
|
|
18541
|
+
const _hoisted_3$s = { class: "flex gap-3" };
|
|
18542
|
+
const _hoisted_4$e = ["value", "placeholder"];
|
|
18543
|
+
const _hoisted_5$a = { class: "currency" };
|
|
18544
|
+
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
18429
18545
|
__name: "CurrencyInput",
|
|
18430
18546
|
props: {
|
|
18431
18547
|
field: {},
|
|
@@ -18526,26 +18642,26 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
18526
18642
|
class: normalizeClass(["bagel-input", { small: _ctx.small }]),
|
|
18527
18643
|
title: _ctx.field.description
|
|
18528
18644
|
}, [
|
|
18529
|
-
_ctx.field.label ? (openBlock(), createElementBlock("label", _hoisted_2$
|
|
18530
|
-
createElementVNode("div", _hoisted_3$
|
|
18645
|
+
_ctx.field.label ? (openBlock(), createElementBlock("label", _hoisted_2$w, toDisplayString(_ctx.field.label), 1)) : createCommentVNode("", true),
|
|
18646
|
+
createElementVNode("div", _hoisted_3$s, [
|
|
18531
18647
|
createElementVNode("input", {
|
|
18532
18648
|
value: _ctx.modelValue,
|
|
18533
18649
|
type: "number",
|
|
18534
18650
|
onInput: handleInput,
|
|
18535
18651
|
placeholder: _ctx.placeholder,
|
|
18536
18652
|
class: normalizeClass({ "no-edit": !_ctx.editMode })
|
|
18537
|
-
}, null, 42, _hoisted_4$
|
|
18538
|
-
createElementVNode("p", _hoisted_5$
|
|
18653
|
+
}, null, 42, _hoisted_4$e),
|
|
18654
|
+
createElementVNode("p", _hoisted_5$a, toDisplayString(((_a2 = currencies.find((c2) => c2.symbol === _ctx.field.currency)) == null ? void 0 : _a2.character) || _ctx.field.currency), 1)
|
|
18539
18655
|
])
|
|
18540
|
-
], 10, _hoisted_1$
|
|
18656
|
+
], 10, _hoisted_1$z);
|
|
18541
18657
|
};
|
|
18542
18658
|
}
|
|
18543
18659
|
});
|
|
18544
|
-
const CurrencyInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
18545
|
-
const _hoisted_1$
|
|
18546
|
-
const _hoisted_2$
|
|
18547
|
-
const _hoisted_3$
|
|
18548
|
-
const _sfc_main$
|
|
18660
|
+
const CurrencyInput = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-17a56a3f"]]);
|
|
18661
|
+
const _hoisted_1$y = ["title"];
|
|
18662
|
+
const _hoisted_2$v = { key: 0 };
|
|
18663
|
+
const _hoisted_3$r = ["placeholder", "disabled"];
|
|
18664
|
+
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
18549
18665
|
__name: "DateInput",
|
|
18550
18666
|
props: {
|
|
18551
18667
|
field: {},
|
|
@@ -18566,7 +18682,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
18566
18682
|
class: normalizeClass(["bagel-input", { small: _ctx.small }]),
|
|
18567
18683
|
title: _ctx.field.description
|
|
18568
18684
|
}, [
|
|
18569
|
-
_ctx.field.label ? (openBlock(), createElementBlock("label", _hoisted_2$
|
|
18685
|
+
_ctx.field.label ? (openBlock(), createElementBlock("label", _hoisted_2$v, toDisplayString(_ctx.field.label), 1)) : createCommentVNode("", true),
|
|
18570
18686
|
withDirectives(createElementVNode("input", {
|
|
18571
18687
|
type: "date",
|
|
18572
18688
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => date2.value = $event),
|
|
@@ -18576,18 +18692,18 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
18576
18692
|
disabled: !_ctx.editMode,
|
|
18577
18693
|
enableTimePicker: false,
|
|
18578
18694
|
textInputOptions: { format: "yyyy-MM-dd" }
|
|
18579
|
-
}, null, 40, _hoisted_3$
|
|
18695
|
+
}, null, 40, _hoisted_3$r), [
|
|
18580
18696
|
[vModelText, date2.value]
|
|
18581
18697
|
])
|
|
18582
|
-
], 10, _hoisted_1$
|
|
18698
|
+
], 10, _hoisted_1$y);
|
|
18583
18699
|
};
|
|
18584
18700
|
}
|
|
18585
18701
|
});
|
|
18586
|
-
const DateInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
18587
|
-
const _hoisted_1$
|
|
18588
|
-
const _hoisted_2$
|
|
18589
|
-
const _hoisted_3$
|
|
18590
|
-
const _sfc_main$
|
|
18702
|
+
const DateInput = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-782aee7f"]]);
|
|
18703
|
+
const _hoisted_1$x = ["title"];
|
|
18704
|
+
const _hoisted_2$u = { key: 0 };
|
|
18705
|
+
const _hoisted_3$q = ["value", "placeholder"];
|
|
18706
|
+
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
18591
18707
|
__name: "DatetimeInput",
|
|
18592
18708
|
props: {
|
|
18593
18709
|
description: { default: "" },
|
|
@@ -18613,7 +18729,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
18613
18729
|
class: normalizeClass(["bagel-input", { small: _ctx.small }]),
|
|
18614
18730
|
title: _ctx.description
|
|
18615
18731
|
}, [
|
|
18616
|
-
_ctx.label ? (openBlock(), createElementBlock("label", _hoisted_2$
|
|
18732
|
+
_ctx.label ? (openBlock(), createElementBlock("label", _hoisted_2$u, [
|
|
18617
18733
|
createVNode(_component_LangText, { input: _ctx.label }, null, 8, ["input"])
|
|
18618
18734
|
])) : createCommentVNode("", true),
|
|
18619
18735
|
createElementVNode("input", {
|
|
@@ -18622,15 +18738,15 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
18622
18738
|
onInput: handleInput,
|
|
18623
18739
|
placeholder: _ctx.placeholder,
|
|
18624
18740
|
class: normalizeClass({ "no-edit": !_ctx.editMode })
|
|
18625
|
-
}, null, 42, _hoisted_3$
|
|
18626
|
-
], 10, _hoisted_1$
|
|
18741
|
+
}, null, 42, _hoisted_3$q)
|
|
18742
|
+
], 10, _hoisted_1$x);
|
|
18627
18743
|
};
|
|
18628
18744
|
}
|
|
18629
18745
|
});
|
|
18630
|
-
const _hoisted_1$
|
|
18631
|
-
const _hoisted_2$
|
|
18632
|
-
const _hoisted_3$
|
|
18633
|
-
const _sfc_main$
|
|
18746
|
+
const _hoisted_1$w = ["title"];
|
|
18747
|
+
const _hoisted_2$t = { key: 0 };
|
|
18748
|
+
const _hoisted_3$p = ["value", "placeholder"];
|
|
18749
|
+
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
18634
18750
|
__name: "EmailInput",
|
|
18635
18751
|
props: {
|
|
18636
18752
|
description: { default: "" },
|
|
@@ -18653,7 +18769,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
18653
18769
|
class: normalizeClass(["bagel-input", { small: _ctx.small }]),
|
|
18654
18770
|
title: _ctx.description
|
|
18655
18771
|
}, [
|
|
18656
|
-
_ctx.label ? (openBlock(), createElementBlock("label", _hoisted_2$
|
|
18772
|
+
_ctx.label ? (openBlock(), createElementBlock("label", _hoisted_2$t, [
|
|
18657
18773
|
createVNode(_component_LangText, { input: _ctx.label }, null, 8, ["input"])
|
|
18658
18774
|
])) : createCommentVNode("", true),
|
|
18659
18775
|
createElementVNode("input", {
|
|
@@ -18663,16 +18779,16 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
18663
18779
|
onInput: handleInput,
|
|
18664
18780
|
class: normalizeClass({ "no-edit": !_ctx.editMode }),
|
|
18665
18781
|
placeholder: _ctx.placeholder
|
|
18666
|
-
}, null, 42, _hoisted_3$
|
|
18667
|
-
], 10, _hoisted_1$
|
|
18782
|
+
}, null, 42, _hoisted_3$p)
|
|
18783
|
+
], 10, _hoisted_1$w);
|
|
18668
18784
|
};
|
|
18669
18785
|
}
|
|
18670
18786
|
});
|
|
18671
|
-
const EmailInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
18672
|
-
const _hoisted_1$
|
|
18673
|
-
const _hoisted_2$
|
|
18674
|
-
const _hoisted_3$
|
|
18675
|
-
const _sfc_main$
|
|
18787
|
+
const EmailInput = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-ed81a514"]]);
|
|
18788
|
+
const _hoisted_1$v = ["title"];
|
|
18789
|
+
const _hoisted_2$s = { key: 0 };
|
|
18790
|
+
const _hoisted_3$o = ["value", "placeholder"];
|
|
18791
|
+
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
18676
18792
|
__name: "FloatInput",
|
|
18677
18793
|
props: {
|
|
18678
18794
|
description: { default: "" },
|
|
@@ -18699,7 +18815,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
18699
18815
|
class: normalizeClass(["bagel-input", { small: _ctx.small }]),
|
|
18700
18816
|
title: _ctx.description
|
|
18701
18817
|
}, [
|
|
18702
|
-
_ctx.label ? (openBlock(), createElementBlock("label", _hoisted_2$
|
|
18818
|
+
_ctx.label ? (openBlock(), createElementBlock("label", _hoisted_2$s, [
|
|
18703
18819
|
createVNode(_component_LangText, { input: _ctx.label }, null, 8, ["input"])
|
|
18704
18820
|
])) : createCommentVNode("", true),
|
|
18705
18821
|
createElementVNode("input", {
|
|
@@ -18708,15 +18824,15 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
18708
18824
|
onInput: handleInput,
|
|
18709
18825
|
class: normalizeClass({ "no-edit": !_ctx.editMode }),
|
|
18710
18826
|
placeholder: _ctx.placeholder
|
|
18711
|
-
}, null, 42, _hoisted_3$
|
|
18712
|
-
], 10, _hoisted_1$
|
|
18827
|
+
}, null, 42, _hoisted_3$o)
|
|
18828
|
+
], 10, _hoisted_1$v);
|
|
18713
18829
|
};
|
|
18714
18830
|
}
|
|
18715
18831
|
});
|
|
18716
|
-
const _hoisted_1$
|
|
18717
|
-
const _hoisted_2$
|
|
18718
|
-
const _hoisted_3$
|
|
18719
|
-
const _sfc_main$
|
|
18832
|
+
const _hoisted_1$u = ["title"];
|
|
18833
|
+
const _hoisted_2$r = { key: 0 };
|
|
18834
|
+
const _hoisted_3$n = ["value", "placeholder"];
|
|
18835
|
+
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
18720
18836
|
__name: "IntInput",
|
|
18721
18837
|
props: {
|
|
18722
18838
|
description: { default: "" },
|
|
@@ -18743,7 +18859,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
18743
18859
|
class: normalizeClass(["bagel-input", { small: _ctx.small }]),
|
|
18744
18860
|
title: _ctx.description
|
|
18745
18861
|
}, [
|
|
18746
|
-
_ctx.label ? (openBlock(), createElementBlock("label", _hoisted_2$
|
|
18862
|
+
_ctx.label ? (openBlock(), createElementBlock("label", _hoisted_2$r, [
|
|
18747
18863
|
createVNode(_component_LangText, { input: _ctx.label }, null, 8, ["input"])
|
|
18748
18864
|
])) : createCommentVNode("", true),
|
|
18749
18865
|
createElementVNode("input", {
|
|
@@ -18752,15 +18868,15 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
18752
18868
|
onInput: handleInput,
|
|
18753
18869
|
class: normalizeClass({ "no-edit": !_ctx.editMode }),
|
|
18754
18870
|
placeholder: _ctx.placeholder
|
|
18755
|
-
}, null, 42, _hoisted_3$
|
|
18756
|
-
], 10, _hoisted_1$
|
|
18871
|
+
}, null, 42, _hoisted_3$n)
|
|
18872
|
+
], 10, _hoisted_1$u);
|
|
18757
18873
|
};
|
|
18758
18874
|
}
|
|
18759
18875
|
});
|
|
18760
|
-
const _hoisted_1$
|
|
18761
|
-
const _hoisted_2$
|
|
18762
|
-
const _hoisted_3$
|
|
18763
|
-
const _sfc_main$
|
|
18876
|
+
const _hoisted_1$t = ["title"];
|
|
18877
|
+
const _hoisted_2$q = { key: 0 };
|
|
18878
|
+
const _hoisted_3$m = ["value", "placeholder"];
|
|
18879
|
+
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
18764
18880
|
__name: "JSONInput",
|
|
18765
18881
|
props: {
|
|
18766
18882
|
description: { default: "" },
|
|
@@ -18783,7 +18899,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
18783
18899
|
class: normalizeClass(["bagel-input", { small: _ctx.small }]),
|
|
18784
18900
|
title: _ctx.description
|
|
18785
18901
|
}, [
|
|
18786
|
-
_ctx.label ? (openBlock(), createElementBlock("label", _hoisted_2$
|
|
18902
|
+
_ctx.label ? (openBlock(), createElementBlock("label", _hoisted_2$q, [
|
|
18787
18903
|
createVNode(_component_LangText, { input: _ctx.label }, null, 8, ["input"])
|
|
18788
18904
|
])) : createCommentVNode("", true),
|
|
18789
18905
|
createElementVNode("textarea", {
|
|
@@ -18791,26 +18907,26 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
18791
18907
|
onInput: handleInput,
|
|
18792
18908
|
class: normalizeClass({ "no-edit": !_ctx.editMode }),
|
|
18793
18909
|
placeholder: _ctx.placeholder
|
|
18794
|
-
}, null, 42, _hoisted_3$
|
|
18795
|
-
], 10, _hoisted_1$
|
|
18910
|
+
}, null, 42, _hoisted_3$m)
|
|
18911
|
+
], 10, _hoisted_1$t);
|
|
18796
18912
|
};
|
|
18797
18913
|
}
|
|
18798
18914
|
});
|
|
18799
|
-
const JSONInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
18800
|
-
const _hoisted_1$
|
|
18801
|
-
const _hoisted_2$
|
|
18802
|
-
const _hoisted_3$
|
|
18803
|
-
const _hoisted_4$
|
|
18804
|
-
const _hoisted_5$
|
|
18915
|
+
const JSONInput = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-1fc4f739"]]);
|
|
18916
|
+
const _hoisted_1$s = ["title"];
|
|
18917
|
+
const _hoisted_2$p = { key: 0 };
|
|
18918
|
+
const _hoisted_3$l = ["disabled"];
|
|
18919
|
+
const _hoisted_4$d = ["onClick"];
|
|
18920
|
+
const _hoisted_5$9 = {
|
|
18805
18921
|
key: 0,
|
|
18806
18922
|
class: "option-label"
|
|
18807
18923
|
};
|
|
18808
|
-
const _hoisted_6$
|
|
18924
|
+
const _hoisted_6$6 = {
|
|
18809
18925
|
key: 1,
|
|
18810
18926
|
class: "option-label"
|
|
18811
18927
|
};
|
|
18812
18928
|
const _hoisted_7$2 = { class: "option-description" };
|
|
18813
|
-
const _sfc_main$
|
|
18929
|
+
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
18814
18930
|
__name: "LinkField",
|
|
18815
18931
|
props: {
|
|
18816
18932
|
description: { default: "" },
|
|
@@ -18934,7 +19050,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
18934
19050
|
class: normalizeClass(["bagel-input", { small: _ctx.small }]),
|
|
18935
19051
|
title: _ctx.description
|
|
18936
19052
|
}, [
|
|
18937
|
-
_ctx.label ? (openBlock(), createElementBlock("label", _hoisted_2$
|
|
19053
|
+
_ctx.label ? (openBlock(), createElementBlock("label", _hoisted_2$p, [
|
|
18938
19054
|
createVNode(_component_LangText, { input: _ctx.label }, null, 8, ["input"])
|
|
18939
19055
|
])) : createCommentVNode("", true),
|
|
18940
19056
|
withDirectives(createElementVNode("input", {
|
|
@@ -18946,7 +19062,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
18946
19062
|
onFocus: initList,
|
|
18947
19063
|
onInput: handleInput,
|
|
18948
19064
|
disabled: !_ctx.editMode
|
|
18949
|
-
}, null, 40, _hoisted_3$
|
|
19065
|
+
}, null, 40, _hoisted_3$l), [
|
|
18950
19066
|
[vModelText, selectedItem.value]
|
|
18951
19067
|
]),
|
|
18952
19068
|
createElementVNode("div", {
|
|
@@ -18966,26 +19082,26 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
18966
19082
|
key: unref(formatString)(option2.value, "pascal"),
|
|
18967
19083
|
onClick: withModifiers(($event) => handleSelect(option2), ["stop"])
|
|
18968
19084
|
}, [
|
|
18969
|
-
option2.label ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
19085
|
+
option2.label ? (openBlock(), createElementBlock("div", _hoisted_5$9, [
|
|
18970
19086
|
createTextVNode(toDisplayString(option2.label), 1),
|
|
18971
19087
|
createElementVNode("span", null, "ID: " + toDisplayString(option2.value), 1)
|
|
18972
|
-
])) : (openBlock(), createElementBlock("div", _hoisted_6$
|
|
19088
|
+
])) : (openBlock(), createElementBlock("div", _hoisted_6$6, " ID: " + toDisplayString(option2.value), 1)),
|
|
18973
19089
|
createElementVNode("div", _hoisted_7$2, toDisplayString(option2.description), 1)
|
|
18974
|
-
], 8, _hoisted_4$
|
|
19090
|
+
], 8, _hoisted_4$d);
|
|
18975
19091
|
}), 128))
|
|
18976
19092
|
], 2)
|
|
18977
19093
|
]))
|
|
18978
19094
|
], 2)
|
|
18979
|
-
], 10, _hoisted_1$
|
|
19095
|
+
], 10, _hoisted_1$s);
|
|
18980
19096
|
};
|
|
18981
19097
|
}
|
|
18982
19098
|
});
|
|
18983
|
-
const LinkField = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
18984
|
-
const _hoisted_1$
|
|
18985
|
-
const _hoisted_2$
|
|
18986
|
-
const _hoisted_3$
|
|
18987
|
-
const _hoisted_4$
|
|
18988
|
-
const _sfc_main$
|
|
19099
|
+
const LinkField = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-947beb38"]]);
|
|
19100
|
+
const _hoisted_1$r = ["title"];
|
|
19101
|
+
const _hoisted_2$o = { key: 0 };
|
|
19102
|
+
const _hoisted_3$k = { class: "password-input-wrap" };
|
|
19103
|
+
const _hoisted_4$c = ["value", "type", "placeholder"];
|
|
19104
|
+
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
18989
19105
|
__name: "PasswordInput",
|
|
18990
19106
|
props: {
|
|
18991
19107
|
description: { default: "" },
|
|
@@ -19019,31 +19135,31 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
19019
19135
|
class: normalizeClass(["bagel-input", { small: _ctx.small }]),
|
|
19020
19136
|
title: _ctx.description
|
|
19021
19137
|
}, [
|
|
19022
|
-
_ctx.label ? (openBlock(), createElementBlock("label", _hoisted_2$
|
|
19138
|
+
_ctx.label ? (openBlock(), createElementBlock("label", _hoisted_2$o, [
|
|
19023
19139
|
createVNode(_component_LangText, { input: _ctx.label }, null, 8, ["input"])
|
|
19024
19140
|
])) : createCommentVNode("", true),
|
|
19025
|
-
createElementVNode("div", _hoisted_3$
|
|
19141
|
+
createElementVNode("div", _hoisted_3$k, [
|
|
19026
19142
|
createElementVNode("input", {
|
|
19027
19143
|
value: _ctx.modelValue,
|
|
19028
19144
|
type: unref(inputType),
|
|
19029
19145
|
onInput: handleInput,
|
|
19030
19146
|
placeholder: _ctx.placeholder,
|
|
19031
19147
|
class: normalizeClass({ "no-edit": !_ctx.editMode })
|
|
19032
|
-
}, null, 42, _hoisted_4$
|
|
19148
|
+
}, null, 42, _hoisted_4$c),
|
|
19033
19149
|
createElementVNode("div", {
|
|
19034
19150
|
class: "icon-font password-icon",
|
|
19035
19151
|
onMousedown: toggleInputType
|
|
19036
19152
|
}, " visibility ", 32)
|
|
19037
19153
|
])
|
|
19038
|
-
], 10, _hoisted_1$
|
|
19154
|
+
], 10, _hoisted_1$r);
|
|
19039
19155
|
};
|
|
19040
19156
|
}
|
|
19041
19157
|
});
|
|
19042
|
-
const PasswordInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
19043
|
-
const _hoisted_1$
|
|
19044
|
-
const _hoisted_2$
|
|
19045
|
-
const _hoisted_3$
|
|
19046
|
-
const _sfc_main$
|
|
19158
|
+
const PasswordInput = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-525f5e2e"]]);
|
|
19159
|
+
const _hoisted_1$q = ["title"];
|
|
19160
|
+
const _hoisted_2$n = ["for"];
|
|
19161
|
+
const _hoisted_3$j = ["id", "type", "placeholder", "required", "pattern"];
|
|
19162
|
+
const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
19047
19163
|
__name: "Password",
|
|
19048
19164
|
props: {
|
|
19049
19165
|
field: {},
|
|
@@ -19083,22 +19199,22 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
19083
19199
|
class: { "no-edit": !_ctx.editMode },
|
|
19084
19200
|
required: _ctx.required,
|
|
19085
19201
|
pattern: _ctx.pattern
|
|
19086
|
-
}, _ctx.nativeInputAttrs), null, 16, _hoisted_3$
|
|
19202
|
+
}, _ctx.nativeInputAttrs), null, 16, _hoisted_3$j), [
|
|
19087
19203
|
[vModelDynamic, inputVal.value]
|
|
19088
19204
|
])
|
|
19089
|
-
], 8, _hoisted_2$
|
|
19090
|
-
createVNode(unref(_sfc_main$
|
|
19205
|
+
], 8, _hoisted_2$n),
|
|
19206
|
+
createVNode(unref(_sfc_main$W), {
|
|
19091
19207
|
onClick: showPassword,
|
|
19092
19208
|
icon: unref(seePassword) ? "visibility" : "visibility_off"
|
|
19093
19209
|
}, null, 8, ["icon"])
|
|
19094
|
-
], 10, _hoisted_1$
|
|
19210
|
+
], 10, _hoisted_1$q)) : createCommentVNode("", true);
|
|
19095
19211
|
};
|
|
19096
19212
|
}
|
|
19097
19213
|
});
|
|
19098
|
-
const Password = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
19099
|
-
const _hoisted_1$
|
|
19100
|
-
const _hoisted_2$
|
|
19101
|
-
const _sfc_main$
|
|
19214
|
+
const Password = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-800f4000"]]);
|
|
19215
|
+
const _hoisted_1$p = ["title"];
|
|
19216
|
+
const _hoisted_2$m = { key: 0 };
|
|
19217
|
+
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
19102
19218
|
__name: "ReadOnlyInput",
|
|
19103
19219
|
props: {
|
|
19104
19220
|
field: {},
|
|
@@ -19111,49 +19227,33 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
19111
19227
|
class: normalizeClass(["bagel-input", { small: _ctx.small }]),
|
|
19112
19228
|
title: _ctx.field.description
|
|
19113
19229
|
}, [
|
|
19114
|
-
_ctx.field.label ? (openBlock(), createElementBlock("label", _hoisted_2$
|
|
19230
|
+
_ctx.field.label ? (openBlock(), createElementBlock("label", _hoisted_2$m, toDisplayString(_ctx.field.label), 1)) : createCommentVNode("", true),
|
|
19115
19231
|
createTextVNode(" " + toDisplayString(_ctx.modelValue), 1)
|
|
19116
|
-
], 10, _hoisted_1$
|
|
19232
|
+
], 10, _hoisted_1$p);
|
|
19117
19233
|
};
|
|
19118
19234
|
}
|
|
19119
19235
|
});
|
|
19120
|
-
const ReadOnlyInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
19121
|
-
const _hoisted_1$
|
|
19122
|
-
const _hoisted_2$
|
|
19123
|
-
const _sfc_main$
|
|
19236
|
+
const ReadOnlyInput = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-b3b5a368"]]);
|
|
19237
|
+
const _hoisted_1$o = ["title"];
|
|
19238
|
+
const _hoisted_2$l = ["onClick"];
|
|
19239
|
+
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
19124
19240
|
__name: "SelectField",
|
|
19125
19241
|
props: {
|
|
19126
19242
|
inputType: {},
|
|
19127
19243
|
options: {},
|
|
19128
|
-
id: {},
|
|
19129
|
-
label: { default: "" },
|
|
19130
|
-
placeholder: { default: "" },
|
|
19131
|
-
required: { type: Boolean },
|
|
19132
|
-
is_array: { type: Boolean },
|
|
19133
|
-
can_add: { type: Boolean },
|
|
19134
|
-
can_delete: { type: [Boolean, Function] },
|
|
19135
|
-
allow_array_add: { type: Boolean },
|
|
19136
19244
|
editMode: { type: Boolean, default: true },
|
|
19137
|
-
description: { default: "" },
|
|
19138
|
-
helpText: {},
|
|
19139
|
-
currency: {},
|
|
19140
|
-
refCollection: {},
|
|
19141
|
-
refFields: {},
|
|
19142
|
-
file_key: {},
|
|
19143
|
-
fields: {},
|
|
19144
|
-
pattern: {},
|
|
19145
|
-
fieldClass: {},
|
|
19146
|
-
link: {},
|
|
19147
19245
|
field: {},
|
|
19148
19246
|
modelValue: {},
|
|
19149
|
-
small: { type: Boolean }
|
|
19247
|
+
small: { type: Boolean },
|
|
19248
|
+
label: { default: "" },
|
|
19249
|
+
description: { default: "" }
|
|
19150
19250
|
},
|
|
19151
19251
|
emits: ["update:modelValue", "selected"],
|
|
19152
19252
|
setup(__props, { emit: __emit }) {
|
|
19153
19253
|
useCssVars((_ctx) => ({
|
|
19154
|
-
"
|
|
19155
|
-
"
|
|
19156
|
-
"
|
|
19254
|
+
"530a7ef0": left2.value,
|
|
19255
|
+
"7d0177a2": `${top2.value}px`,
|
|
19256
|
+
"0ee22bfd": width.value
|
|
19157
19257
|
}));
|
|
19158
19258
|
const selectEl = ref();
|
|
19159
19259
|
const dropdown = ref();
|
|
@@ -19252,7 +19352,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
19252
19352
|
for: "label",
|
|
19253
19353
|
class: normalizeClass({ active: showList.value })
|
|
19254
19354
|
}, [
|
|
19255
|
-
createVNode(unref(_sfc_main$
|
|
19355
|
+
createVNode(unref(_sfc_main$Y), { input: _ctx.label }, null, 8, ["input"])
|
|
19256
19356
|
], 2)) : createCommentVNode("", true),
|
|
19257
19357
|
createElementVNode("div", {
|
|
19258
19358
|
class: normalizeClass(["custom-select", { "open-select": showList.value && _ctx.editMode }]),
|
|
@@ -19264,7 +19364,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
19264
19364
|
class: normalizeClass(["input", { active: showList.value }]),
|
|
19265
19365
|
name: "select-input"
|
|
19266
19366
|
}, [
|
|
19267
|
-
createVNode(unref(_sfc_main$
|
|
19367
|
+
createVNode(unref(_sfc_main$Y), { input: displayValue.value }, null, 8, ["input"])
|
|
19268
19368
|
], 2),
|
|
19269
19369
|
(openBlock(), createBlock(Teleport, { to: "#app" }, [
|
|
19270
19370
|
createElementVNode("div", {
|
|
@@ -19277,23 +19377,23 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
19277
19377
|
key: option2.value,
|
|
19278
19378
|
onClick: ($event) => handleSelect(option2)
|
|
19279
19379
|
}, [
|
|
19280
|
-
createVNode(unref(_sfc_main$
|
|
19380
|
+
createVNode(unref(_sfc_main$Y), {
|
|
19281
19381
|
input: option2.label
|
|
19282
19382
|
}, null, 8, ["input"])
|
|
19283
|
-
], 8, _hoisted_2$
|
|
19383
|
+
], 8, _hoisted_2$l);
|
|
19284
19384
|
}), 128))
|
|
19285
19385
|
], 2)
|
|
19286
19386
|
]))
|
|
19287
19387
|
], 2)
|
|
19288
|
-
], 10, _hoisted_1$
|
|
19388
|
+
], 10, _hoisted_1$o);
|
|
19289
19389
|
};
|
|
19290
19390
|
}
|
|
19291
19391
|
});
|
|
19292
|
-
const SelectField = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
19293
|
-
const _hoisted_1$
|
|
19294
|
-
const _hoisted_2$
|
|
19295
|
-
const _hoisted_3$
|
|
19296
|
-
const _sfc_main$
|
|
19392
|
+
const SelectField = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-f2c5b9ca"]]);
|
|
19393
|
+
const _hoisted_1$n = ["title"];
|
|
19394
|
+
const _hoisted_2$k = { key: 0 };
|
|
19395
|
+
const _hoisted_3$i = ["value", "placeholder"];
|
|
19396
|
+
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
19297
19397
|
__name: "RichTextEditor",
|
|
19298
19398
|
props: {
|
|
19299
19399
|
description: { default: "" },
|
|
@@ -19316,7 +19416,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
19316
19416
|
class: normalizeClass(["bagel-input", { small: _ctx.small }]),
|
|
19317
19417
|
title: _ctx.description
|
|
19318
19418
|
}, [
|
|
19319
|
-
_ctx.label ? (openBlock(), createElementBlock("label", _hoisted_2$
|
|
19419
|
+
_ctx.label ? (openBlock(), createElementBlock("label", _hoisted_2$k, [
|
|
19320
19420
|
createVNode(_component_LangText, { input: _ctx.label }, null, 8, ["input"])
|
|
19321
19421
|
])) : createCommentVNode("", true),
|
|
19322
19422
|
createElementVNode("textarea", {
|
|
@@ -19324,12 +19424,12 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
19324
19424
|
onInput: handleInput,
|
|
19325
19425
|
placeholder: _ctx.placeholder,
|
|
19326
19426
|
class: normalizeClass({ "no-edit": !_ctx.editMode })
|
|
19327
|
-
}, null, 42, _hoisted_3$
|
|
19328
|
-
], 10, _hoisted_1$
|
|
19427
|
+
}, null, 42, _hoisted_3$i)
|
|
19428
|
+
], 10, _hoisted_1$n);
|
|
19329
19429
|
};
|
|
19330
19430
|
}
|
|
19331
19431
|
});
|
|
19332
|
-
const RichTextEditor = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
19432
|
+
const RichTextEditor = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-69a60381"]]);
|
|
19333
19433
|
/*!
|
|
19334
19434
|
* vue-draggable-next v2.2.0
|
|
19335
19435
|
* (c) 2023 Anish George
|
|
@@ -21852,13 +21952,13 @@ const VueDraggableNext = defineComponent({
|
|
|
21852
21952
|
}
|
|
21853
21953
|
}
|
|
21854
21954
|
});
|
|
21855
|
-
const _hoisted_1$
|
|
21856
|
-
const _hoisted_2$
|
|
21857
|
-
const _hoisted_3$
|
|
21858
|
-
const _hoisted_4$
|
|
21859
|
-
const _hoisted_5$
|
|
21860
|
-
const _hoisted_6$
|
|
21861
|
-
const _sfc_main$
|
|
21955
|
+
const _hoisted_1$m = ["title"];
|
|
21956
|
+
const _hoisted_2$j = { class: "bagel-input" };
|
|
21957
|
+
const _hoisted_3$h = { class: "table-side-scroll" };
|
|
21958
|
+
const _hoisted_4$b = { class: "table-header" };
|
|
21959
|
+
const _hoisted_5$8 = { class: "table-reorder" };
|
|
21960
|
+
const _hoisted_6$5 = { class: "table-action" };
|
|
21961
|
+
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
21862
21962
|
__name: "TableField",
|
|
21863
21963
|
props: {
|
|
21864
21964
|
description: { default: "" },
|
|
@@ -21923,11 +22023,11 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
21923
22023
|
class: "table-field-wrap",
|
|
21924
22024
|
title: _ctx.description
|
|
21925
22025
|
}, [
|
|
21926
|
-
createElementVNode("div", _hoisted_2$
|
|
22026
|
+
createElementVNode("div", _hoisted_2$j, [
|
|
21927
22027
|
createElementVNode("label", null, toDisplayString((_a2 = unref(fieldMeta)) == null ? void 0 : _a2.label), 1)
|
|
21928
22028
|
]),
|
|
21929
|
-
createElementVNode("div", _hoisted_3$
|
|
21930
|
-
createElementVNode("div", _hoisted_4$
|
|
22029
|
+
createElementVNode("div", _hoisted_3$h, [
|
|
22030
|
+
createElementVNode("div", _hoisted_4$b, [
|
|
21931
22031
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList((_b = unref(entityMeta)) == null ? void 0 : _b.fields, (field) => {
|
|
21932
22032
|
return openBlock(), createElementBlock("div", {
|
|
21933
22033
|
class: normalizeClass(["header-col", unref(formatString)(field.fieldtype, "pascal")]),
|
|
@@ -21954,8 +22054,8 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
21954
22054
|
class: "flex table-row",
|
|
21955
22055
|
key: row.id
|
|
21956
22056
|
}, [
|
|
21957
|
-
createElementVNode("div", _hoisted_5$
|
|
21958
|
-
createVNode(_sfc_main$
|
|
22057
|
+
createElementVNode("div", _hoisted_5$8, [
|
|
22058
|
+
createVNode(_sfc_main$t, { icon: "more_vert" })
|
|
21959
22059
|
]),
|
|
21960
22060
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList((_a3 = unref(entityMeta)) == null ? void 0 : _a3.fields, (field) => {
|
|
21961
22061
|
return openBlock(), createElementBlock("div", {
|
|
@@ -21971,8 +22071,8 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
21971
22071
|
}, null, 8, ["field-meta", "bagel-app", "onUpdate:modelValue", "model-value"])
|
|
21972
22072
|
], 2);
|
|
21973
22073
|
}), 128)),
|
|
21974
|
-
createElementVNode("div", _hoisted_6$
|
|
21975
|
-
createVNode(_sfc_main$
|
|
22074
|
+
createElementVNode("div", _hoisted_6$5, [
|
|
22075
|
+
createVNode(_sfc_main$t, {
|
|
21976
22076
|
icon: "delete",
|
|
21977
22077
|
onClick: ($event) => removeRow(index2)
|
|
21978
22078
|
}, null, 8, ["onClick"])
|
|
@@ -21998,15 +22098,15 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
21998
22098
|
]),
|
|
21999
22099
|
_: 1
|
|
22000
22100
|
})
|
|
22001
|
-
], 8, _hoisted_1$
|
|
22101
|
+
], 8, _hoisted_1$m);
|
|
22002
22102
|
};
|
|
22003
22103
|
}
|
|
22004
22104
|
});
|
|
22005
|
-
const TableField = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
22006
|
-
const _hoisted_1$
|
|
22007
|
-
const _hoisted_2$
|
|
22008
|
-
const _hoisted_3$
|
|
22009
|
-
const _sfc_main$
|
|
22105
|
+
const TableField = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-1d1376d2"]]);
|
|
22106
|
+
const _hoisted_1$l = ["title"];
|
|
22107
|
+
const _hoisted_2$i = { key: 0 };
|
|
22108
|
+
const _hoisted_3$g = ["value", "title", "placeholder"];
|
|
22109
|
+
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
22010
22110
|
__name: "DurationInput",
|
|
22011
22111
|
props: {
|
|
22012
22112
|
description: { default: "" },
|
|
@@ -22033,7 +22133,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
22033
22133
|
class: normalizeClass(["bagel-input", { small: _ctx.small }]),
|
|
22034
22134
|
title: _ctx.description
|
|
22035
22135
|
}, [
|
|
22036
|
-
_ctx.label ? (openBlock(), createElementBlock("label", _hoisted_2$
|
|
22136
|
+
_ctx.label ? (openBlock(), createElementBlock("label", _hoisted_2$i, [
|
|
22037
22137
|
createVNode(_component_LangText, { input: _ctx.label }, null, 8, ["input"])
|
|
22038
22138
|
])) : createCommentVNode("", true),
|
|
22039
22139
|
createElementVNode("input", {
|
|
@@ -22043,15 +22143,16 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
22043
22143
|
onInput: handleInput,
|
|
22044
22144
|
placeholder: _ctx.placeholder,
|
|
22045
22145
|
class: normalizeClass({ "no-edit": !_ctx.editMode })
|
|
22046
|
-
}, null, 42, _hoisted_3$
|
|
22047
|
-
], 10, _hoisted_1$
|
|
22146
|
+
}, null, 42, _hoisted_3$g)
|
|
22147
|
+
], 10, _hoisted_1$l);
|
|
22048
22148
|
};
|
|
22049
22149
|
}
|
|
22050
22150
|
});
|
|
22051
|
-
const _hoisted_1$
|
|
22052
|
-
const _hoisted_2$
|
|
22053
|
-
const _hoisted_3$
|
|
22054
|
-
const
|
|
22151
|
+
const _hoisted_1$k = ["title"];
|
|
22152
|
+
const _hoisted_2$h = ["for"];
|
|
22153
|
+
const _hoisted_3$f = ["autocomplete", "id", "type", "placeholder", "disabled", "required", "pattern"];
|
|
22154
|
+
const _hoisted_4$a = ["id", "type", "rows", "placeholder", "disabled", "required", "pattern"];
|
|
22155
|
+
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
22055
22156
|
__name: "TextInput",
|
|
22056
22157
|
props: {
|
|
22057
22158
|
id: {},
|
|
@@ -22067,7 +22168,12 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
22067
22168
|
type: { default: "text" },
|
|
22068
22169
|
nativeInputAttrs: {},
|
|
22069
22170
|
icon: {},
|
|
22070
|
-
iconStart: {}
|
|
22171
|
+
iconStart: {},
|
|
22172
|
+
multiline: { type: Boolean },
|
|
22173
|
+
autoheight: { type: Boolean },
|
|
22174
|
+
code: { type: Boolean },
|
|
22175
|
+
lines: {},
|
|
22176
|
+
autocomplete: { default: "off" }
|
|
22071
22177
|
},
|
|
22072
22178
|
emits: ["update:modelValue", "debounce"],
|
|
22073
22179
|
setup(__props, { emit: __emit }) {
|
|
@@ -22089,6 +22195,16 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
22089
22195
|
}, 10);
|
|
22090
22196
|
}
|
|
22091
22197
|
};
|
|
22198
|
+
const rows = computed(() => {
|
|
22199
|
+
var _a2;
|
|
22200
|
+
if (props2.lines)
|
|
22201
|
+
return props2.lines;
|
|
22202
|
+
if (props2.autoheight)
|
|
22203
|
+
return ((_a2 = `${inputVal.value}`) == null ? void 0 : _a2.split("\n").length) || 1;
|
|
22204
|
+
if (props2.multiline || props2.code)
|
|
22205
|
+
return 4;
|
|
22206
|
+
return 1;
|
|
22207
|
+
});
|
|
22092
22208
|
watch(
|
|
22093
22209
|
() => inputVal.value,
|
|
22094
22210
|
(newVal) => {
|
|
@@ -22110,34 +22226,48 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
22110
22226
|
);
|
|
22111
22227
|
return (_ctx, _cache) => {
|
|
22112
22228
|
return openBlock(), createElementBlock("div", {
|
|
22113
|
-
class: normalizeClass(["bagel-input", { small: _ctx.small, shrink: _ctx.shrink, toggleEdit: _ctx.toggleEdit, editMode: unref(editMode), textInputIconWrap: _ctx.icon, txtInputIconStart: _ctx.iconStart }]),
|
|
22229
|
+
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 }]),
|
|
22114
22230
|
title: _ctx.title
|
|
22115
22231
|
}, [
|
|
22116
22232
|
createElementVNode("label", { for: _ctx.id }, [
|
|
22117
22233
|
createTextVNode(toDisplayString(_ctx.label) + " ", 1),
|
|
22118
|
-
withDirectives(
|
|
22234
|
+
!_ctx.multiline && !_ctx.autoheight && !_ctx.code ? withDirectives((openBlock(), createElementBlock("input", mergeProps({
|
|
22235
|
+
key: 0,
|
|
22236
|
+
autocomplete: _ctx.autocomplete,
|
|
22119
22237
|
id: _ctx.id,
|
|
22120
22238
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(inputVal) ? inputVal.value = $event : inputVal = $event),
|
|
22121
22239
|
type: _ctx.type,
|
|
22240
|
+
rows: 1,
|
|
22122
22241
|
ref_key: "input",
|
|
22123
22242
|
ref: input2,
|
|
22124
22243
|
placeholder: _ctx.placeholder || _ctx.label,
|
|
22125
22244
|
disabled: !unref(editMode),
|
|
22126
22245
|
required: _ctx.required,
|
|
22127
22246
|
pattern: _ctx.pattern
|
|
22128
|
-
}, _ctx.nativeInputAttrs, {
|
|
22129
|
-
onDblclick: toggleEditAction,
|
|
22130
|
-
onKeydown: withKeys(toggleEditAction, ["enter"])
|
|
22131
|
-
}), null, 16, _hoisted_3$e), [
|
|
22247
|
+
}, _ctx.nativeInputAttrs, { onDblclick: toggleEditAction }), null, 16, _hoisted_3$f)), [
|
|
22132
22248
|
[vModelDynamic, unref(inputVal)]
|
|
22249
|
+
]) : withDirectives((openBlock(), createElementBlock("textarea", mergeProps({
|
|
22250
|
+
key: 1,
|
|
22251
|
+
id: _ctx.id,
|
|
22252
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(inputVal) ? inputVal.value = $event : inputVal = $event),
|
|
22253
|
+
type: _ctx.type,
|
|
22254
|
+
rows: rows.value,
|
|
22255
|
+
ref_key: "input",
|
|
22256
|
+
ref: input2,
|
|
22257
|
+
placeholder: _ctx.placeholder || _ctx.label,
|
|
22258
|
+
disabled: !unref(editMode),
|
|
22259
|
+
required: _ctx.required,
|
|
22260
|
+
pattern: _ctx.pattern
|
|
22261
|
+
}, _ctx.nativeInputAttrs, { onDblclick: toggleEditAction }), null, 16, _hoisted_4$a)), [
|
|
22262
|
+
[vModelText, unref(inputVal)]
|
|
22133
22263
|
])
|
|
22134
|
-
], 8, _hoisted_2$
|
|
22135
|
-
_ctx.iconStart ? (openBlock(), createBlock(unref(_sfc_main$
|
|
22264
|
+
], 8, _hoisted_2$h),
|
|
22265
|
+
_ctx.iconStart ? (openBlock(), createBlock(unref(_sfc_main$W), {
|
|
22136
22266
|
key: 0,
|
|
22137
22267
|
class: "iconStart",
|
|
22138
22268
|
icon: _ctx.iconStart
|
|
22139
22269
|
}, null, 8, ["icon"])) : createCommentVNode("", true),
|
|
22140
|
-
_ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$
|
|
22270
|
+
_ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$W), {
|
|
22141
22271
|
key: 1,
|
|
22142
22272
|
icon: _ctx.icon
|
|
22143
22273
|
}, null, 8, ["icon"])) : createCommentVNode("", true),
|
|
@@ -22149,19 +22279,19 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
22149
22279
|
icon: unref(editMode) ? "check" : "edit",
|
|
22150
22280
|
flat: ""
|
|
22151
22281
|
}, null, 8, ["icon"])) : createCommentVNode("", true)
|
|
22152
|
-
], 10, _hoisted_1$
|
|
22282
|
+
], 10, _hoisted_1$k);
|
|
22153
22283
|
};
|
|
22154
22284
|
}
|
|
22155
22285
|
});
|
|
22156
|
-
const TextInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
22157
|
-
const _hoisted_1$
|
|
22158
|
-
const _hoisted_2$
|
|
22159
|
-
const _hoisted_3$
|
|
22286
|
+
const TextInput = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-9f24ba22"]]);
|
|
22287
|
+
const _hoisted_1$j = ["title"];
|
|
22288
|
+
const _hoisted_2$g = { key: 0 };
|
|
22289
|
+
const _hoisted_3$e = {
|
|
22160
22290
|
key: 1,
|
|
22161
22291
|
class: "character-limit"
|
|
22162
22292
|
};
|
|
22163
|
-
const _hoisted_4$
|
|
22164
|
-
const _sfc_main$
|
|
22293
|
+
const _hoisted_4$9 = ["value"];
|
|
22294
|
+
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
22165
22295
|
__name: "TextArea",
|
|
22166
22296
|
props: {
|
|
22167
22297
|
description: { default: "" },
|
|
@@ -22186,24 +22316,24 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
22186
22316
|
class: normalizeClass(["bagel-input", { small: _ctx.small }]),
|
|
22187
22317
|
title: _ctx.description
|
|
22188
22318
|
}, [
|
|
22189
|
-
_ctx.label ? (openBlock(), createElementBlock("label", _hoisted_2$
|
|
22190
|
-
createVNode(unref(_sfc_main$
|
|
22319
|
+
_ctx.label ? (openBlock(), createElementBlock("label", _hoisted_2$g, [
|
|
22320
|
+
createVNode(unref(_sfc_main$Y), { input: _ctx.label }, null, 8, ["input"])
|
|
22191
22321
|
])) : createCommentVNode("", true),
|
|
22192
|
-
_ctx.showCharacterLimit ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
22322
|
+
_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),
|
|
22193
22323
|
createElementVNode("textarea", mergeProps({
|
|
22194
22324
|
value: _ctx.modelValue,
|
|
22195
22325
|
onInput: handleInput,
|
|
22196
22326
|
class: { "no-edit": !_ctx.editMode }
|
|
22197
|
-
}, _ctx.nativeInputAttrs), null, 16, _hoisted_4$
|
|
22198
|
-
], 10, _hoisted_1$
|
|
22327
|
+
}, _ctx.nativeInputAttrs), null, 16, _hoisted_4$9)
|
|
22328
|
+
], 10, _hoisted_1$j);
|
|
22199
22329
|
};
|
|
22200
22330
|
}
|
|
22201
22331
|
});
|
|
22202
|
-
const TextArea = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
22203
|
-
const _hoisted_1$
|
|
22204
|
-
const _hoisted_2$
|
|
22205
|
-
const _hoisted_3$
|
|
22206
|
-
const _sfc_main$
|
|
22332
|
+
const TextArea = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-a5b28c58"]]);
|
|
22333
|
+
const _hoisted_1$i = ["title"];
|
|
22334
|
+
const _hoisted_2$f = ["for"];
|
|
22335
|
+
const _hoisted_3$d = ["id", "placeholder", "required"];
|
|
22336
|
+
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
22207
22337
|
__name: "ColorPicker",
|
|
22208
22338
|
props: {
|
|
22209
22339
|
field: {},
|
|
@@ -22240,19 +22370,19 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
22240
22370
|
placeholder: ((_a2 = _ctx.field) == null ? void 0 : _a2.placeholder) || _ctx.field.label,
|
|
22241
22371
|
class: { "no-edit": !_ctx.editMode },
|
|
22242
22372
|
required: _ctx.required
|
|
22243
|
-
}, _ctx.nativeInputAttrs), null, 16, _hoisted_3$
|
|
22373
|
+
}, _ctx.nativeInputAttrs), null, 16, _hoisted_3$d), [
|
|
22244
22374
|
[vModelText, inputVal.value]
|
|
22245
22375
|
])
|
|
22246
|
-
], 8, _hoisted_2$
|
|
22247
|
-
], 10, _hoisted_1$
|
|
22376
|
+
], 8, _hoisted_2$f)
|
|
22377
|
+
], 10, _hoisted_1$i)) : createCommentVNode("", true);
|
|
22248
22378
|
};
|
|
22249
22379
|
}
|
|
22250
22380
|
});
|
|
22251
|
-
const _hoisted_1$
|
|
22252
|
-
const _hoisted_2$
|
|
22253
|
-
const _hoisted_3$
|
|
22254
|
-
const _hoisted_4$
|
|
22255
|
-
const _sfc_main$
|
|
22381
|
+
const _hoisted_1$h = { key: 0 };
|
|
22382
|
+
const _hoisted_2$e = ["disabled"];
|
|
22383
|
+
const _hoisted_3$c = { class: "custom-select-drop" };
|
|
22384
|
+
const _hoisted_4$8 = ["onClick"];
|
|
22385
|
+
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
22256
22386
|
__name: "DynamicLinkField",
|
|
22257
22387
|
props: {
|
|
22258
22388
|
label: { default: "" },
|
|
@@ -22328,7 +22458,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
22328
22458
|
return openBlock(), createElementBlock("div", {
|
|
22329
22459
|
class: normalizeClass(["bagel-input", { small: _ctx.small }])
|
|
22330
22460
|
}, [
|
|
22331
|
-
_ctx.label ? (openBlock(), createElementBlock("label", _hoisted_1$
|
|
22461
|
+
_ctx.label ? (openBlock(), createElementBlock("label", _hoisted_1$h, [
|
|
22332
22462
|
createVNode(_component_LangText, { input: _ctx.label }, null, 8, ["input"])
|
|
22333
22463
|
])) : createCommentVNode("", true),
|
|
22334
22464
|
withDirectives(createElementVNode("input", {
|
|
@@ -22340,19 +22470,19 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
22340
22470
|
onFocus: initList,
|
|
22341
22471
|
onInput: handleInput,
|
|
22342
22472
|
disabled: !_ctx.editMode
|
|
22343
|
-
}, null, 40, _hoisted_2$
|
|
22473
|
+
}, null, 40, _hoisted_2$e), [
|
|
22344
22474
|
[vModelText, selectedItem.value]
|
|
22345
22475
|
]),
|
|
22346
22476
|
createElementVNode("div", {
|
|
22347
22477
|
class: normalizeClass(["custom-select", { "open-select": showList.value && linkOptions.value.length > 0 }]),
|
|
22348
22478
|
name: "link-input"
|
|
22349
22479
|
}, [
|
|
22350
|
-
createElementVNode("div", _hoisted_3$
|
|
22480
|
+
createElementVNode("div", _hoisted_3$c, [
|
|
22351
22481
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList(linkOptions.value, (item2) => {
|
|
22352
22482
|
return openBlock(), createElementBlock("div", {
|
|
22353
22483
|
key: unref(formatString)(item2.value, "pascal"),
|
|
22354
22484
|
onClick: withModifiers(($event) => handleSelect(item2), ["stop"])
|
|
22355
|
-
}, toDisplayString(_ctx.useId || _ctx.entity === "Entity" ? item2.value : item2.label || item2.description || item2.value), 9, _hoisted_4$
|
|
22485
|
+
}, toDisplayString(_ctx.useId || _ctx.entity === "Entity" ? item2.value : item2.label || item2.description || item2.value), 9, _hoisted_4$8);
|
|
22356
22486
|
}), 128))
|
|
22357
22487
|
])
|
|
22358
22488
|
], 2)
|
|
@@ -22360,10 +22490,10 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
22360
22490
|
};
|
|
22361
22491
|
}
|
|
22362
22492
|
});
|
|
22363
|
-
const _hoisted_1$
|
|
22364
|
-
const _hoisted_2$
|
|
22365
|
-
const _hoisted_3$
|
|
22366
|
-
const _sfc_main$
|
|
22493
|
+
const _hoisted_1$g = ["title"];
|
|
22494
|
+
const _hoisted_2$d = ["for"];
|
|
22495
|
+
const _hoisted_3$b = ["id", "placeholder", "required", "pattern"];
|
|
22496
|
+
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
22367
22497
|
__name: "PlainText",
|
|
22368
22498
|
props: {
|
|
22369
22499
|
field: {},
|
|
@@ -22409,15 +22539,15 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
22409
22539
|
class: { "no-edit": !_ctx.editMode },
|
|
22410
22540
|
required: _ctx.required,
|
|
22411
22541
|
pattern: _ctx.pattern
|
|
22412
|
-
}, _ctx.nativeInputAttrs), null, 16, _hoisted_3$
|
|
22542
|
+
}, _ctx.nativeInputAttrs), null, 16, _hoisted_3$b), [
|
|
22413
22543
|
[vModelText, unref(inputVal)]
|
|
22414
22544
|
])
|
|
22415
|
-
], 8, _hoisted_2$
|
|
22416
|
-
], 10, _hoisted_1$
|
|
22545
|
+
], 8, _hoisted_2$d)
|
|
22546
|
+
], 10, _hoisted_1$g)) : createCommentVNode("", true);
|
|
22417
22547
|
};
|
|
22418
22548
|
}
|
|
22419
22549
|
});
|
|
22420
|
-
const PlainText = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
22550
|
+
const PlainText = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-188270a2"]]);
|
|
22421
22551
|
function _typeof(o) {
|
|
22422
22552
|
"@babel/helpers - typeof";
|
|
22423
22553
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
|
|
@@ -31794,15 +31924,15 @@ const vl = ({
|
|
|
31794
31924
|
Object.entries(Ro).forEach(([e3, t4]) => {
|
|
31795
31925
|
e3 !== "default" && (ja[e3] = t4);
|
|
31796
31926
|
});
|
|
31797
|
-
const _hoisted_1$
|
|
31798
|
-
const _hoisted_2$
|
|
31799
|
-
const _hoisted_3$
|
|
31927
|
+
const _hoisted_1$f = { class: "datetime-wrap" };
|
|
31928
|
+
const _hoisted_2$c = { class: "date-wrap" };
|
|
31929
|
+
const _hoisted_3$a = {
|
|
31800
31930
|
key: 0,
|
|
31801
31931
|
class: "time-wrap"
|
|
31802
31932
|
};
|
|
31803
|
-
const _hoisted_4$
|
|
31804
|
-
const _hoisted_5$
|
|
31805
|
-
const _sfc_main$
|
|
31933
|
+
const _hoisted_4$7 = ["id", "name", "value"];
|
|
31934
|
+
const _hoisted_5$7 = ["for"];
|
|
31935
|
+
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
31806
31936
|
__name: "DatePicker",
|
|
31807
31937
|
props: {
|
|
31808
31938
|
name: {},
|
|
@@ -31818,8 +31948,8 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
31818
31948
|
return `${hour}:${minute}`;
|
|
31819
31949
|
});
|
|
31820
31950
|
return (_ctx, _cache) => {
|
|
31821
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
31822
|
-
createElementVNode("div", _hoisted_2$
|
|
31951
|
+
return openBlock(), createElementBlock("div", _hoisted_1$f, [
|
|
31952
|
+
createElementVNode("div", _hoisted_2$c, [
|
|
31823
31953
|
createVNode(unref(ja), mergeProps({
|
|
31824
31954
|
inline: "",
|
|
31825
31955
|
"week-start": "0",
|
|
@@ -31834,7 +31964,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
31834
31964
|
_: 1
|
|
31835
31965
|
}, 16, ["modelValue"])
|
|
31836
31966
|
]),
|
|
31837
|
-
_ctx.showTimeWrap ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
31967
|
+
_ctx.showTimeWrap ? (openBlock(), createElementBlock("div", _hoisted_3$a, [
|
|
31838
31968
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList(unref(hours), (hr2) => {
|
|
31839
31969
|
return openBlock(), createElementBlock(Fragment$1, { key: hr2 }, [
|
|
31840
31970
|
withDirectives(createElementVNode("input", {
|
|
@@ -31843,12 +31973,12 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
31843
31973
|
name: _ctx.name,
|
|
31844
31974
|
value: hr2,
|
|
31845
31975
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => selectedHour.value = $event)
|
|
31846
|
-
}, null, 8, _hoisted_4$
|
|
31976
|
+
}, null, 8, _hoisted_4$7), [
|
|
31847
31977
|
[vModelRadio, selectedHour.value]
|
|
31848
31978
|
]),
|
|
31849
31979
|
createElementVNode("label", {
|
|
31850
31980
|
for: `${hr2}_${_ctx.name}`
|
|
31851
|
-
}, toDisplayString(hr2), 9, _hoisted_5$
|
|
31981
|
+
}, toDisplayString(hr2), 9, _hoisted_5$7)
|
|
31852
31982
|
], 64);
|
|
31853
31983
|
}), 128))
|
|
31854
31984
|
])) : createCommentVNode("", true)
|
|
@@ -31856,23 +31986,26 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
31856
31986
|
};
|
|
31857
31987
|
}
|
|
31858
31988
|
});
|
|
31859
|
-
const _hoisted_1$
|
|
31860
|
-
const _hoisted_2$
|
|
31861
|
-
const _hoisted_3$
|
|
31862
|
-
const
|
|
31989
|
+
const _hoisted_1$e = { class: "bagel-input" };
|
|
31990
|
+
const _hoisted_2$b = { class: "pb-025" };
|
|
31991
|
+
const _hoisted_3$9 = { class: "flex gap-2 flex-wrap" };
|
|
31992
|
+
const _hoisted_4$6 = ["id", "name", "value", "checked"];
|
|
31993
|
+
const _hoisted_5$6 = ["for"];
|
|
31994
|
+
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
31863
31995
|
__name: "RadioPillsInput",
|
|
31864
31996
|
props: {
|
|
31865
31997
|
options: {},
|
|
31866
31998
|
stringOptions: {},
|
|
31867
31999
|
modelValue: {},
|
|
31868
|
-
|
|
32000
|
+
id: {},
|
|
32001
|
+
label: {}
|
|
31869
32002
|
},
|
|
31870
32003
|
emits: ["update:modelValue"],
|
|
31871
32004
|
setup(__props, { emit: __emit }) {
|
|
31872
32005
|
const emits = __emit;
|
|
31873
32006
|
const props2 = __props;
|
|
31874
32007
|
const cumputedOptions = computed(() => props2.options || props2.stringOptions.map((v) => ({
|
|
31875
|
-
|
|
32008
|
+
optioId: v,
|
|
31876
32009
|
label: v,
|
|
31877
32010
|
value: v
|
|
31878
32011
|
})));
|
|
@@ -31896,29 +32029,137 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
31896
32029
|
onMounted(() => {
|
|
31897
32030
|
selectedValue.value = props2.modelValue;
|
|
31898
32031
|
});
|
|
32032
|
+
return (_ctx, _cache) => {
|
|
32033
|
+
return openBlock(), createElementBlock("div", _hoisted_1$e, [
|
|
32034
|
+
createElementVNode("label", _hoisted_2$b, toDisplayString(_ctx.label), 1),
|
|
32035
|
+
createElementVNode("div", _hoisted_3$9, [
|
|
32036
|
+
(openBlock(true), createElementBlock(Fragment$1, null, renderList(cumputedOptions.value, ({ optioId, label: label2, value }, index2) => {
|
|
32037
|
+
return openBlock(), createElementBlock("div", {
|
|
32038
|
+
class: "radio-pill",
|
|
32039
|
+
key: index2
|
|
32040
|
+
}, [
|
|
32041
|
+
createElementVNode("input", {
|
|
32042
|
+
type: "radio",
|
|
32043
|
+
id: optioId,
|
|
32044
|
+
name: _ctx.id,
|
|
32045
|
+
value,
|
|
32046
|
+
checked: unref(selectedValue) === value,
|
|
32047
|
+
onChange: handleSelect
|
|
32048
|
+
}, null, 40, _hoisted_4$6),
|
|
32049
|
+
createElementVNode("label", { for: optioId }, toDisplayString(label2), 9, _hoisted_5$6)
|
|
32050
|
+
]);
|
|
32051
|
+
}), 128))
|
|
32052
|
+
])
|
|
32053
|
+
]);
|
|
32054
|
+
};
|
|
32055
|
+
}
|
|
32056
|
+
});
|
|
32057
|
+
const RadioPillsInput = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-15351d79"]]);
|
|
32058
|
+
const _hoisted_1$d = { class: "bagel-input" };
|
|
32059
|
+
const _hoisted_2$a = { key: 0 };
|
|
32060
|
+
const _hoisted_3$8 = { class: "imagePreviewWrap" };
|
|
32061
|
+
const _hoisted_4$5 = ["src"];
|
|
32062
|
+
const _hoisted_5$5 = { class: "previewName" };
|
|
32063
|
+
const _hoisted_6$4 = { class: "no-margin" };
|
|
32064
|
+
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
32065
|
+
__name: "FileUpload",
|
|
32066
|
+
props: {
|
|
32067
|
+
label: {},
|
|
32068
|
+
multiple: { type: Boolean }
|
|
32069
|
+
},
|
|
32070
|
+
setup(__props) {
|
|
32071
|
+
const props2 = __props;
|
|
32072
|
+
const files = ref([]);
|
|
32073
|
+
const fileQueue = ref([]);
|
|
32074
|
+
let isDragOver = ref(false);
|
|
32075
|
+
const preventDefault = (e3) => {
|
|
32076
|
+
e3.preventDefault();
|
|
32077
|
+
e3.stopPropagation();
|
|
32078
|
+
};
|
|
32079
|
+
const fileToUrl = (file) => URL.createObjectURL(file);
|
|
32080
|
+
const removeFile = (file) => {
|
|
32081
|
+
const index2 = files.value.indexOf(file);
|
|
32082
|
+
files.value.splice(index2, 1);
|
|
32083
|
+
};
|
|
32084
|
+
const flushQueue = () => {
|
|
32085
|
+
fileQueue.value.forEach((file, i3) => {
|
|
32086
|
+
if (props2.multiple) {
|
|
32087
|
+
if (!files.value.includes(file))
|
|
32088
|
+
files.value.push(file);
|
|
32089
|
+
} else
|
|
32090
|
+
files.value.splice(0, 1, file);
|
|
32091
|
+
console.log(files.value);
|
|
32092
|
+
fileQueue.value.splice(i3, 1);
|
|
32093
|
+
});
|
|
32094
|
+
};
|
|
32095
|
+
const browse = () => {
|
|
32096
|
+
const input2 = document.createElement("input");
|
|
32097
|
+
input2.type = "file";
|
|
32098
|
+
input2.multiple = props2.multiple;
|
|
32099
|
+
input2.onchange = (e3) => {
|
|
32100
|
+
const target = e3 == null ? void 0 : e3.target;
|
|
32101
|
+
if (target == null ? void 0 : target.files)
|
|
32102
|
+
fileQueue.value.push(...Array.from(target.files));
|
|
32103
|
+
flushQueue();
|
|
32104
|
+
};
|
|
32105
|
+
input2.click();
|
|
32106
|
+
};
|
|
32107
|
+
const dragleave = (e3) => {
|
|
32108
|
+
preventDefault(e3);
|
|
32109
|
+
if (e3.dataTransfer)
|
|
32110
|
+
isDragOver.value = false;
|
|
32111
|
+
else
|
|
32112
|
+
isDragOver.value = false;
|
|
32113
|
+
};
|
|
32114
|
+
const dragenter = (e3) => {
|
|
32115
|
+
preventDefault(e3);
|
|
32116
|
+
if (e3.dataTransfer)
|
|
32117
|
+
isDragOver.value = true;
|
|
32118
|
+
else
|
|
32119
|
+
isDragOver.value = false;
|
|
32120
|
+
};
|
|
32121
|
+
const drop3 = (e3) => {
|
|
32122
|
+
preventDefault(e3);
|
|
32123
|
+
if (e3.dataTransfer)
|
|
32124
|
+
fileQueue.value.push(...Array.from(e3.dataTransfer.files));
|
|
32125
|
+
isDragOver.value = false;
|
|
32126
|
+
flushQueue();
|
|
32127
|
+
};
|
|
31899
32128
|
return (_ctx, _cache) => {
|
|
31900
32129
|
return openBlock(), createElementBlock("div", _hoisted_1$d, [
|
|
31901
|
-
(
|
|
31902
|
-
|
|
31903
|
-
|
|
31904
|
-
|
|
31905
|
-
|
|
31906
|
-
|
|
31907
|
-
|
|
31908
|
-
|
|
31909
|
-
|
|
31910
|
-
|
|
31911
|
-
|
|
31912
|
-
|
|
31913
|
-
|
|
31914
|
-
|
|
31915
|
-
|
|
31916
|
-
|
|
32130
|
+
createElementVNode("label", null, toDisplayString(_ctx.label), 1),
|
|
32131
|
+
createElementVNode("div", {
|
|
32132
|
+
onClick: browse,
|
|
32133
|
+
onDragover: dragenter,
|
|
32134
|
+
onDrop: drop3,
|
|
32135
|
+
onDragleave: dragleave,
|
|
32136
|
+
class: normalizeClass(["fileUploadWrap", { fileDropZone: !files.value.length, dragover: unref(isDragOver) }])
|
|
32137
|
+
}, [
|
|
32138
|
+
files.value.length && !_ctx.multiple ? (openBlock(), createElementBlock("div", _hoisted_2$a, [
|
|
32139
|
+
createElementVNode("div", _hoisted_3$8, [
|
|
32140
|
+
createElementVNode("img", {
|
|
32141
|
+
class: "preview",
|
|
32142
|
+
src: fileToUrl(files.value[0]),
|
|
32143
|
+
alt: ""
|
|
32144
|
+
}, null, 8, _hoisted_4$5)
|
|
32145
|
+
]),
|
|
32146
|
+
createElementVNode("div", _hoisted_5$5, [
|
|
32147
|
+
createElementVNode("p", _hoisted_6$4, toDisplayString(files.value[0].name), 1),
|
|
32148
|
+
createVNode(unref(Btn), {
|
|
32149
|
+
thin: "",
|
|
32150
|
+
onClick: _cache[0] || (_cache[0] = withModifiers(($event) => removeFile(files.value[0]), ["stop"])),
|
|
32151
|
+
flat: "",
|
|
32152
|
+
icon: "delete",
|
|
32153
|
+
color: "red"
|
|
32154
|
+
})
|
|
32155
|
+
])
|
|
32156
|
+
])) : createCommentVNode("", true)
|
|
32157
|
+
], 34)
|
|
31917
32158
|
]);
|
|
31918
32159
|
};
|
|
31919
32160
|
}
|
|
31920
32161
|
});
|
|
31921
|
-
const
|
|
32162
|
+
const FileUpload = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-352399c0"]]);
|
|
31922
32163
|
function _isPlaceholder(a3) {
|
|
31923
32164
|
return a3 != null && typeof a3 === "object" && a3["@@functional/placeholder"] === true;
|
|
31924
32165
|
}
|
|
@@ -38376,7 +38617,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
38376
38617
|
return (_ctx, _cache) => {
|
|
38377
38618
|
var _a2, _b, _c, _d, _e2, _f;
|
|
38378
38619
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
38379
|
-
createVNode(unref(_sfc_main$
|
|
38620
|
+
createVNode(unref(_sfc_main$N), null, {
|
|
38380
38621
|
default: withCtx(() => [
|
|
38381
38622
|
createTextVNode("Whatsapp Template")
|
|
38382
38623
|
]),
|
|
@@ -38385,7 +38626,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
38385
38626
|
createElementVNode("div", _hoisted_2, [
|
|
38386
38627
|
createElementVNode("div", _hoisted_3, [
|
|
38387
38628
|
createElementVNode("div", _hoisted_4, [
|
|
38388
|
-
createVNode(unref(_sfc_main$
|
|
38629
|
+
createVNode(unref(_sfc_main$L), {
|
|
38389
38630
|
schema: _ctx.whatsappTemplateSchema(),
|
|
38390
38631
|
modelValue: unref(localWhatsappData),
|
|
38391
38632
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(localWhatsappData) ? localWhatsappData.value = $event : localWhatsappData = $event),
|
|
@@ -38414,49 +38655,52 @@ export {
|
|
|
38414
38655
|
BagelVue,
|
|
38415
38656
|
BankDetailsInput,
|
|
38416
38657
|
BarChart,
|
|
38658
|
+
_sfc_main$q as BglField,
|
|
38659
|
+
_sfc_main$r as BglForm,
|
|
38417
38660
|
Btn,
|
|
38418
38661
|
CheckInput,
|
|
38419
38662
|
Checkbox,
|
|
38420
|
-
_sfc_main$
|
|
38663
|
+
_sfc_main$7 as ColorPicker,
|
|
38421
38664
|
Comments,
|
|
38422
38665
|
ContactArrayInput,
|
|
38423
|
-
_sfc_main$
|
|
38666
|
+
_sfc_main$H as ContactSubmissions,
|
|
38424
38667
|
CurrencyInput,
|
|
38425
38668
|
DataPreview,
|
|
38426
38669
|
DateInput,
|
|
38427
|
-
_sfc_main$
|
|
38428
|
-
_sfc_main$
|
|
38429
|
-
_sfc_main$
|
|
38430
|
-
_sfc_main$
|
|
38431
|
-
_sfc_main$
|
|
38670
|
+
_sfc_main$4 as DatePicker,
|
|
38671
|
+
_sfc_main$m as DatetimeInput,
|
|
38672
|
+
_sfc_main$S as DropDown,
|
|
38673
|
+
_sfc_main$a as DurationInput,
|
|
38674
|
+
_sfc_main$6 as DynamicLinkField,
|
|
38432
38675
|
EmailInput,
|
|
38676
|
+
FileUpload,
|
|
38433
38677
|
FileUploadInput,
|
|
38434
|
-
_sfc_main$
|
|
38435
|
-
_sfc_main$
|
|
38436
|
-
_sfc_main$
|
|
38437
|
-
_sfc_main$
|
|
38438
|
-
_sfc_main$
|
|
38678
|
+
_sfc_main$x as FileUploader,
|
|
38679
|
+
_sfc_main$k as FloatInput,
|
|
38680
|
+
_sfc_main$L as FormSchema,
|
|
38681
|
+
_sfc_main$j as IntInput,
|
|
38682
|
+
_sfc_main$u as ItemRef,
|
|
38439
38683
|
JSONInput,
|
|
38440
|
-
_sfc_main$
|
|
38684
|
+
_sfc_main$Y as LangText,
|
|
38441
38685
|
_sfc_main$1 as Lineart,
|
|
38442
38686
|
LinkField,
|
|
38443
|
-
_sfc_main$
|
|
38444
|
-
_sfc_main$
|
|
38445
|
-
_sfc_main$
|
|
38687
|
+
_sfc_main$Q as ListItem,
|
|
38688
|
+
_sfc_main$R as ListView,
|
|
38689
|
+
_sfc_main$W as MaterialIcon,
|
|
38446
38690
|
MiscFieldsInput,
|
|
38447
|
-
_sfc_main$
|
|
38691
|
+
_sfc_main$T as Modal,
|
|
38448
38692
|
ModalForm,
|
|
38449
38693
|
ModalPlugin,
|
|
38450
38694
|
MsgTemplate,
|
|
38451
|
-
_sfc_main$
|
|
38452
|
-
_sfc_main$
|
|
38695
|
+
_sfc_main$V as NavBar,
|
|
38696
|
+
_sfc_main$N as PageTitle,
|
|
38453
38697
|
Password,
|
|
38454
38698
|
PasswordInput,
|
|
38455
|
-
_sfc_main$
|
|
38699
|
+
_sfc_main$G as PersonPreview,
|
|
38456
38700
|
PersonPreviewInput,
|
|
38457
|
-
_sfc_main$
|
|
38701
|
+
_sfc_main$s as PlainInputField,
|
|
38458
38702
|
PlainText,
|
|
38459
|
-
_sfc_main$
|
|
38703
|
+
_sfc_main$X as RTXEditor,
|
|
38460
38704
|
RadioPillsInput,
|
|
38461
38705
|
ReadOnlyInput,
|
|
38462
38706
|
RichTextEditor,
|
|
@@ -38467,12 +38711,12 @@ export {
|
|
|
38467
38711
|
TableSchema,
|
|
38468
38712
|
TextArea,
|
|
38469
38713
|
TextInput,
|
|
38470
|
-
_sfc_main$
|
|
38714
|
+
_sfc_main$v as TextVariableExamples,
|
|
38471
38715
|
TextVariablesInput,
|
|
38472
38716
|
ToggleSwitchInput,
|
|
38473
38717
|
TopBar,
|
|
38474
38718
|
bagelInjectionKey,
|
|
38475
|
-
|
|
38719
|
+
bindAttrs,
|
|
38476
38720
|
copyText,
|
|
38477
38721
|
debounce,
|
|
38478
38722
|
formatString,
|