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