@bagelink/vue 0.0.206 → 0.0.214
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/ModalBglForm.vue.d.ts +44 -0
- package/dist/components/ModalBglForm.vue.d.ts.map +1 -0
- package/dist/components/NavBar.vue.d.ts.map +1 -1
- package/dist/components/form/BglForm.vue.d.ts.map +1 -1
- package/dist/components/form/index.d.ts +1 -0
- package/dist/components/form/index.d.ts.map +1 -1
- package/dist/components/form/inputs/CheckInput.vue.d.ts +11 -4
- package/dist/components/form/inputs/CheckInput.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/FileUpload.vue.d.ts.map +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/index.cjs +252 -139
- package/dist/index.mjs +253 -140
- package/dist/plugins/modal.d.ts +3 -1
- package/dist/plugins/modal.d.ts.map +1 -1
- package/dist/style.css +153 -172
- package/dist/types/BagelForm.d.ts +2 -0
- package/dist/types/BagelForm.d.ts.map +1 -1
- package/dist/types/BtnOptions.d.ts +1 -0
- package/dist/types/BtnOptions.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/ModalBglForm.vue +120 -0
- package/src/components/NavBar.vue +47 -45
- package/src/components/form/BglForm.vue +14 -12
- package/src/components/form/index.ts +1 -0
- package/src/components/form/inputs/CheckInput.vue +84 -110
- package/src/components/form/inputs/FileUpload.vue +52 -45
- package/src/components/form/inputs/ToggleInput.vue +127 -0
- package/src/components/formkit/Toggle.vue +22 -22
- package/src/components/index.ts +1 -0
- package/src/plugins/modal.ts +16 -8
- package/src/styles/theme.css +0 -8
- package/src/types/BagelForm.ts +2 -0
- package/src/types/BtnOptions.ts +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { inject, ref, defineComponent, h, openBlock, createElementBlock, Fragment as Fragment$1, createElementVNode, createTextVNode, toDisplayString, watch, onMounted, withKeys, withModifiers, normalizeStyle, resolveComponent, normalizeClass, renderSlot, renderList, createBlock, withCtx, useCssVars, useSlots, computed, resolveDynamicComponent, unref, createCommentVNode, onUnmounted, createVNode, mergeProps, withDirectives, vModelText, isRef, reactive, Transition,
|
|
1
|
+
import { inject, ref, defineComponent, h, openBlock, createElementBlock, Fragment as Fragment$1, createElementVNode, createTextVNode, toDisplayString, watch, onMounted, withKeys, withModifiers, normalizeStyle, resolveComponent, normalizeClass, renderSlot, renderList, createBlock, withCtx, pushScopeId, popScopeId, useCssVars, useSlots, computed, resolveDynamicComponent, unref, createCommentVNode, onUnmounted, createVNode, mergeProps, withDirectives, vModelText, isRef, reactive, Transition, markRaw, vModelCheckbox, Teleport, vModelDynamic, TransitionGroup, toRef, nextTick, createSlots, normalizeProps, guardReactiveProps, render as render$e, onBeforeUpdate, vShow, getCurrentScope, onScopeDispose, vModelRadio, provide } from "vue";
|
|
2
2
|
function bind$2(fn2, thisArg) {
|
|
3
3
|
return function wrap2() {
|
|
4
4
|
return fn2.apply(thisArg, arguments);
|
|
@@ -2277,16 +2277,17 @@ const ModalPlugin = {
|
|
|
2277
2277
|
const hideModal = (index2) => {
|
|
2278
2278
|
modalStack.value.splice(index2, 1);
|
|
2279
2279
|
};
|
|
2280
|
-
const showModal = (
|
|
2280
|
+
const showModal = (modalType, options, slots = {}) => {
|
|
2281
2281
|
modalStack.value.push({
|
|
2282
2282
|
modalOptions: options,
|
|
2283
|
-
|
|
2283
|
+
modalType,
|
|
2284
2284
|
componentSlots: slots
|
|
2285
2285
|
});
|
|
2286
2286
|
};
|
|
2287
2287
|
app.provide(ModalSymbol, {
|
|
2288
|
-
modalForm: (options, slots) => showModal(
|
|
2289
|
-
showModal: (options, slots) => showModal(
|
|
2288
|
+
modalForm: (options, slots) => showModal(1, options, slots),
|
|
2289
|
+
showModal: (options, slots) => showModal(0, options, slots),
|
|
2290
|
+
showModalForm: (options, slots) => showModal(2, options, slots),
|
|
2290
2291
|
hideModal: (index2 = modalStack.value.length - 1) => hideModal(index2)
|
|
2291
2292
|
// modalOptions,
|
|
2292
2293
|
});
|
|
@@ -2298,7 +2299,13 @@ const ModalPlugin = {
|
|
|
2298
2299
|
},
|
|
2299
2300
|
render() {
|
|
2300
2301
|
return modalStack.value.map((modal, index2) => {
|
|
2301
|
-
|
|
2302
|
+
let renderComponent;
|
|
2303
|
+
if (modal.modalType === 1)
|
|
2304
|
+
renderComponent = ModalForm;
|
|
2305
|
+
else if (modal.modalType === 2)
|
|
2306
|
+
renderComponent = ModalBglForm;
|
|
2307
|
+
else
|
|
2308
|
+
renderComponent = _sfc_main$U;
|
|
2302
2309
|
return h(
|
|
2303
2310
|
renderComponent,
|
|
2304
2311
|
{
|
|
@@ -2362,8 +2369,8 @@ function bindAttrs(attrs, fieldVal, row) {
|
|
|
2362
2369
|
const resolvedAttrs = Object.fromEntries(arr);
|
|
2363
2370
|
return resolvedAttrs;
|
|
2364
2371
|
}
|
|
2365
|
-
const _hoisted_1$
|
|
2366
|
-
const _sfc_main$
|
|
2372
|
+
const _hoisted_1$12 = { ref: "el" };
|
|
2373
|
+
const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
2367
2374
|
__name: "LangText",
|
|
2368
2375
|
props: {
|
|
2369
2376
|
input: {}
|
|
@@ -2371,7 +2378,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
2371
2378
|
setup(__props) {
|
|
2372
2379
|
return (_ctx, _cache) => {
|
|
2373
2380
|
return openBlock(), createElementBlock(Fragment$1, null, [
|
|
2374
|
-
createElementVNode("span", _hoisted_1$
|
|
2381
|
+
createElementVNode("span", _hoisted_1$12, null, 512),
|
|
2375
2382
|
createTextVNode(" " + toDisplayString(_ctx.input), 1)
|
|
2376
2383
|
], 64);
|
|
2377
2384
|
};
|
|
@@ -14484,8 +14491,8 @@ const marks = {
|
|
|
14484
14491
|
}
|
|
14485
14492
|
};
|
|
14486
14493
|
const schema = new Schema({ nodes, marks });
|
|
14487
|
-
const _hoisted_1$
|
|
14488
|
-
const _sfc_main$
|
|
14494
|
+
const _hoisted_1$11 = ["id"];
|
|
14495
|
+
const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
14489
14496
|
__name: "RTXEditor",
|
|
14490
14497
|
props: {
|
|
14491
14498
|
elementId: { default: Math.random().toString(36).substr(2, 9) },
|
|
@@ -14562,11 +14569,11 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
|
14562
14569
|
onClick: focusEditor,
|
|
14563
14570
|
id: `canvas-${_ctx.elementId}`,
|
|
14564
14571
|
onKeydown: _cache[0] || (_cache[0] = withKeys(withModifiers(($event) => _ctx.$emit("keydown.meta.enter"), ["meta"]), ["enter"]))
|
|
14565
|
-
}, null, 40, _hoisted_1$
|
|
14572
|
+
}, null, 40, _hoisted_1$11);
|
|
14566
14573
|
};
|
|
14567
14574
|
}
|
|
14568
14575
|
});
|
|
14569
|
-
const _sfc_main$
|
|
14576
|
+
const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
14570
14577
|
__name: "MaterialIcon",
|
|
14571
14578
|
props: {
|
|
14572
14579
|
icon: {},
|
|
@@ -14581,17 +14588,18 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
|
14581
14588
|
};
|
|
14582
14589
|
}
|
|
14583
14590
|
});
|
|
14584
|
-
const
|
|
14585
|
-
const
|
|
14586
|
-
|
|
14591
|
+
const _withScopeId$3 = (n) => (pushScopeId("data-v-fddb4764"), n = n(), popScopeId(), n);
|
|
14592
|
+
const _hoisted_1$10 = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("div", { class: "icon-font top-arrow" }, " chevron_right ", -1));
|
|
14593
|
+
const _hoisted_2$T = [
|
|
14594
|
+
_hoisted_1$10
|
|
14587
14595
|
];
|
|
14588
14596
|
const _hoisted_3$K = { class: "full-nav" };
|
|
14589
14597
|
const _hoisted_4$t = { class: "nav-scroll" };
|
|
14590
|
-
const _hoisted_5$
|
|
14598
|
+
const _hoisted_5$n = { class: "nav-links-wrapper" };
|
|
14591
14599
|
const _hoisted_6$i = { class: "icon-font" };
|
|
14592
14600
|
const _hoisted_7$d = { class: "tooltip" };
|
|
14593
14601
|
const _hoisted_8$7 = { class: "bot-buttons-wrapper" };
|
|
14594
|
-
const _sfc_main$
|
|
14602
|
+
const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
14595
14603
|
__name: "NavBar",
|
|
14596
14604
|
props: {
|
|
14597
14605
|
links: {},
|
|
@@ -14607,7 +14615,7 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
14607
14615
|
return openBlock(), createElementBlock("div", {
|
|
14608
14616
|
class: normalizeClass({ open: isOpen.value, closed: !isOpen.value })
|
|
14609
14617
|
}, [
|
|
14610
|
-
renderSlot(_ctx.$slots, "top"),
|
|
14618
|
+
renderSlot(_ctx.$slots, "top", {}, void 0, true),
|
|
14611
14619
|
createElementVNode("div", {
|
|
14612
14620
|
class: "nav-expend",
|
|
14613
14621
|
onClick: _cache[0] || (_cache[0] = ($event) => isOpen.value = !isOpen.value),
|
|
@@ -14615,10 +14623,10 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
14615
14623
|
role: "button",
|
|
14616
14624
|
"aria-label": "Toggle Navigation",
|
|
14617
14625
|
tabindex: "0"
|
|
14618
|
-
}, _hoisted_2$
|
|
14626
|
+
}, _hoisted_2$T, 32),
|
|
14619
14627
|
createElementVNode("div", _hoisted_3$K, [
|
|
14620
14628
|
createElementVNode("div", _hoisted_4$t, [
|
|
14621
|
-
createElementVNode("div", _hoisted_5$
|
|
14629
|
+
createElementVNode("div", _hoisted_5$n, [
|
|
14622
14630
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList((_a2 = _ctx.links) == null ? void 0 : _a2.call(_ctx), (link) => {
|
|
14623
14631
|
return openBlock(), createBlock(_component_RouterLink, {
|
|
14624
14632
|
class: "nav-button",
|
|
@@ -14635,22 +14643,30 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
14635
14643
|
])
|
|
14636
14644
|
]),
|
|
14637
14645
|
createElementVNode("div", _hoisted_8$7, [
|
|
14638
|
-
renderSlot(_ctx.$slots, "floor")
|
|
14646
|
+
renderSlot(_ctx.$slots, "floor", {}, void 0, true)
|
|
14639
14647
|
])
|
|
14640
14648
|
])
|
|
14641
14649
|
], 2);
|
|
14642
14650
|
};
|
|
14643
14651
|
}
|
|
14644
14652
|
});
|
|
14645
|
-
const
|
|
14653
|
+
const _export_sfc = (sfc, props2) => {
|
|
14654
|
+
const target = sfc.__vccOpts || sfc;
|
|
14655
|
+
for (const [key, val] of props2) {
|
|
14656
|
+
target[key] = val;
|
|
14657
|
+
}
|
|
14658
|
+
return target;
|
|
14659
|
+
};
|
|
14660
|
+
const NavBar = /* @__PURE__ */ _export_sfc(_sfc_main$W, [["__scopeId", "data-v-fddb4764"]]);
|
|
14661
|
+
const _hoisted_1$$ = {
|
|
14646
14662
|
key: 0,
|
|
14647
14663
|
class: "loading"
|
|
14648
14664
|
};
|
|
14649
|
-
const _hoisted_2$
|
|
14665
|
+
const _hoisted_2$S = {
|
|
14650
14666
|
key: 1,
|
|
14651
14667
|
class: "btn-flex"
|
|
14652
14668
|
};
|
|
14653
|
-
const _sfc_main$
|
|
14669
|
+
const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
14654
14670
|
__name: "Btn",
|
|
14655
14671
|
props: {
|
|
14656
14672
|
disabled: { type: Boolean, default: false },
|
|
@@ -14730,8 +14746,8 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
14730
14746
|
})
|
|
14731
14747
|
}, {
|
|
14732
14748
|
default: withCtx(() => [
|
|
14733
|
-
_ctx.loading ? (openBlock(), createElementBlock("div", _hoisted_1
|
|
14734
|
-
_ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$
|
|
14749
|
+
_ctx.loading ? (openBlock(), createElementBlock("div", _hoisted_1$$)) : (openBlock(), createElementBlock("div", _hoisted_2$S, [
|
|
14750
|
+
_ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$X), {
|
|
14735
14751
|
key: 0,
|
|
14736
14752
|
icon: _ctx.icon
|
|
14737
14753
|
}, null, 8, ["icon"])) : createCommentVNode("", true),
|
|
@@ -14739,7 +14755,7 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
14739
14755
|
!unref(slots)["default"] && _ctx.value ? (openBlock(), createElementBlock(Fragment$1, { key: 1 }, [
|
|
14740
14756
|
createTextVNode(toDisplayString(_ctx.value), 1)
|
|
14741
14757
|
], 64)) : createCommentVNode("", true),
|
|
14742
|
-
props2["icon.end"] ? (openBlock(), createBlock(unref(_sfc_main$
|
|
14758
|
+
props2["icon.end"] ? (openBlock(), createBlock(unref(_sfc_main$X), {
|
|
14743
14759
|
key: 2,
|
|
14744
14760
|
icon: props2["icon.end"]
|
|
14745
14761
|
}, null, 8, ["icon"])) : createCommentVNode("", true)
|
|
@@ -14750,18 +14766,11 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
14750
14766
|
};
|
|
14751
14767
|
}
|
|
14752
14768
|
});
|
|
14753
|
-
const
|
|
14754
|
-
|
|
14755
|
-
|
|
14756
|
-
target[key] = val;
|
|
14757
|
-
}
|
|
14758
|
-
return target;
|
|
14759
|
-
};
|
|
14760
|
-
const Btn = /* @__PURE__ */ _export_sfc(_sfc_main$U, [["__scopeId", "data-v-0ca0d3de"]]);
|
|
14761
|
-
const _hoisted_1$Z = { class: "tool-bar" };
|
|
14762
|
-
const _hoisted_2$Q = { class: "modal-title" };
|
|
14769
|
+
const Btn = /* @__PURE__ */ _export_sfc(_sfc_main$V, [["__scopeId", "data-v-0ca0d3de"]]);
|
|
14770
|
+
const _hoisted_1$_ = { class: "tool-bar" };
|
|
14771
|
+
const _hoisted_2$R = { class: "modal-title" };
|
|
14763
14772
|
const _hoisted_3$J = { class: "modal-footer mt-3" };
|
|
14764
|
-
const _sfc_main$
|
|
14773
|
+
const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
14765
14774
|
__name: "Modal",
|
|
14766
14775
|
props: {
|
|
14767
14776
|
side: { type: Boolean },
|
|
@@ -14807,7 +14816,7 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
14807
14816
|
onClick: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
14808
14817
|
}, ["stop"]))
|
|
14809
14818
|
}, [
|
|
14810
|
-
createElementVNode("header", _hoisted_1$
|
|
14819
|
+
createElementVNode("header", _hoisted_1$_, [
|
|
14811
14820
|
renderSlot(_ctx.$slots, "toolbar"),
|
|
14812
14821
|
createVNode(unref(Btn), {
|
|
14813
14822
|
style: normalizeStyle({ float: _ctx.side ? "left" : "right" }),
|
|
@@ -14815,7 +14824,7 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
14815
14824
|
icon: "close",
|
|
14816
14825
|
onClick: closeModal
|
|
14817
14826
|
}, null, 8, ["style"]),
|
|
14818
|
-
createElementVNode("h3", _hoisted_2$
|
|
14827
|
+
createElementVNode("h3", _hoisted_2$R, toDisplayString(_ctx.title), 1)
|
|
14819
14828
|
]),
|
|
14820
14829
|
renderSlot(_ctx.$slots, "default"),
|
|
14821
14830
|
createElementVNode("footer", _hoisted_3$J, [
|
|
@@ -14833,6 +14842,104 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
14833
14842
|
};
|
|
14834
14843
|
}
|
|
14835
14844
|
});
|
|
14845
|
+
const _hoisted_1$Z = { class: "tool-bar" };
|
|
14846
|
+
const _hoisted_2$Q = { class: "modal-title" };
|
|
14847
|
+
const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
14848
|
+
__name: "ModalBglForm",
|
|
14849
|
+
props: {
|
|
14850
|
+
side: { type: Boolean },
|
|
14851
|
+
title: {},
|
|
14852
|
+
dismissable: { type: Boolean },
|
|
14853
|
+
actions: {},
|
|
14854
|
+
schema: { type: Function },
|
|
14855
|
+
modelValue: {},
|
|
14856
|
+
onSubmit: { type: Function },
|
|
14857
|
+
onDelete: { type: Function }
|
|
14858
|
+
},
|
|
14859
|
+
emits: ["update:isModalVisible", "update:modelValue"],
|
|
14860
|
+
setup(__props, { emit: __emit }) {
|
|
14861
|
+
const props2 = __props;
|
|
14862
|
+
const computedFormSchema = computed(() => {
|
|
14863
|
+
if (typeof props2.schema === "function") {
|
|
14864
|
+
return props2.schema();
|
|
14865
|
+
}
|
|
14866
|
+
return props2.schema;
|
|
14867
|
+
});
|
|
14868
|
+
let isActive = ref(false);
|
|
14869
|
+
const emit2 = __emit;
|
|
14870
|
+
const handleEmit = (value) => {
|
|
14871
|
+
emit2("update:modelValue", value);
|
|
14872
|
+
};
|
|
14873
|
+
const closeModal = () => {
|
|
14874
|
+
isActive.value = false;
|
|
14875
|
+
setTimeout(() => {
|
|
14876
|
+
emit2("update:isModalVisible", false);
|
|
14877
|
+
}, 200);
|
|
14878
|
+
};
|
|
14879
|
+
const runSubmit = async (formData) => {
|
|
14880
|
+
var _a2;
|
|
14881
|
+
try {
|
|
14882
|
+
await ((_a2 = props2.onSubmit) == null ? void 0 : _a2.call(props2, formData));
|
|
14883
|
+
closeModal();
|
|
14884
|
+
} catch (err) {
|
|
14885
|
+
console.error(err);
|
|
14886
|
+
}
|
|
14887
|
+
};
|
|
14888
|
+
const runDelete = () => {
|
|
14889
|
+
var _a2, _b;
|
|
14890
|
+
(_b = props2.onDelete) == null ? void 0 : _b.call(props2, (_a2 = props2.modelValue) == null ? void 0 : _a2.id);
|
|
14891
|
+
closeModal();
|
|
14892
|
+
};
|
|
14893
|
+
const escapeKeyClose = (e3) => (props2 == null ? void 0 : props2.dismissable) && useEscape(e3, () => closeModal());
|
|
14894
|
+
onMounted(() => {
|
|
14895
|
+
setTimeout(() => {
|
|
14896
|
+
isActive.value = true;
|
|
14897
|
+
}, 1);
|
|
14898
|
+
document.addEventListener(
|
|
14899
|
+
"keydown",
|
|
14900
|
+
escapeKeyClose
|
|
14901
|
+
);
|
|
14902
|
+
});
|
|
14903
|
+
onUnmounted(() => {
|
|
14904
|
+
document.removeEventListener(
|
|
14905
|
+
"keydown",
|
|
14906
|
+
escapeKeyClose
|
|
14907
|
+
);
|
|
14908
|
+
});
|
|
14909
|
+
return (_ctx, _cache) => {
|
|
14910
|
+
return openBlock(), createElementBlock("div", {
|
|
14911
|
+
class: normalizeClass(["bg-dark", { "is-side": _ctx.side, "is-active": unref(isActive) }]),
|
|
14912
|
+
onClick: _cache[1] || (_cache[1] = () => _ctx.dismissable ? closeModal() : ""),
|
|
14913
|
+
onKeydown: withKeys(closeModal, ["esc"])
|
|
14914
|
+
}, [
|
|
14915
|
+
createElementVNode("div", {
|
|
14916
|
+
class: "card modal",
|
|
14917
|
+
onClick: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
14918
|
+
}, ["stop"]))
|
|
14919
|
+
}, [
|
|
14920
|
+
createElementVNode("header", _hoisted_1$Z, [
|
|
14921
|
+
renderSlot(_ctx.$slots, "toolbar", {}, void 0, true),
|
|
14922
|
+
createVNode(unref(Btn), {
|
|
14923
|
+
style: normalizeStyle({ float: _ctx.side ? "left" : "right" }),
|
|
14924
|
+
flat: "",
|
|
14925
|
+
icon: "close",
|
|
14926
|
+
onClick: closeModal
|
|
14927
|
+
}, null, 8, ["style"]),
|
|
14928
|
+
createElementVNode("h3", _hoisted_2$Q, toDisplayString(_ctx.title), 1)
|
|
14929
|
+
]),
|
|
14930
|
+
createVNode(unref(_sfc_main$r), {
|
|
14931
|
+
onDelete: _ctx.onDelete ? runDelete : void 0,
|
|
14932
|
+
modelValue: _ctx.modelValue,
|
|
14933
|
+
"onUpdate:modelValue": handleEmit,
|
|
14934
|
+
onSubmit: runSubmit,
|
|
14935
|
+
schema: computedFormSchema.value
|
|
14936
|
+
}, null, 8, ["onDelete", "modelValue", "schema"])
|
|
14937
|
+
])
|
|
14938
|
+
], 34);
|
|
14939
|
+
};
|
|
14940
|
+
}
|
|
14941
|
+
});
|
|
14942
|
+
const ModalBglForm = /* @__PURE__ */ _export_sfc(_sfc_main$T, [["__scopeId", "data-v-bd719890"]]);
|
|
14836
14943
|
const _hoisted_1$Y = { class: "dropdown-title" };
|
|
14837
14944
|
const _hoisted_2$P = { class: "dropdown-body" };
|
|
14838
14945
|
const _hoisted_3$I = ["onClick"];
|
|
@@ -14864,7 +14971,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
14864
14971
|
}, [
|
|
14865
14972
|
createElementVNode("div", _hoisted_1$Y, [
|
|
14866
14973
|
createTextVNode(toDisplayString(unref(selectedOption) || __props.placeholder) + " ", 1),
|
|
14867
|
-
createVNode(unref(_sfc_main$
|
|
14974
|
+
createVNode(unref(_sfc_main$X), { icon: "keyboard_arrow_down" })
|
|
14868
14975
|
]),
|
|
14869
14976
|
createElementVNode("div", _hoisted_2$P, [
|
|
14870
14977
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList(__props.options, (option2, index2) => {
|
|
@@ -14885,7 +14992,7 @@ const _hoisted_3$H = {
|
|
|
14885
14992
|
class: "bagel-input search-wrap"
|
|
14886
14993
|
};
|
|
14887
14994
|
const _hoisted_4$s = ["placeholder"];
|
|
14888
|
-
const _hoisted_5$
|
|
14995
|
+
const _hoisted_5$m = { class: "list-content grid auto-flow-rows align-items-start" };
|
|
14889
14996
|
const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
14890
14997
|
__name: "ListView",
|
|
14891
14998
|
props: {
|
|
@@ -14912,7 +15019,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
14912
15019
|
}, null, 40, _hoisted_4$s), [
|
|
14913
15020
|
[vModelText, searchTerm.value]
|
|
14914
15021
|
]),
|
|
14915
|
-
createVNode(unref(_sfc_main$
|
|
15022
|
+
createVNode(unref(_sfc_main$X), {
|
|
14916
15023
|
class: "txtgray",
|
|
14917
15024
|
icon: "search"
|
|
14918
15025
|
})
|
|
@@ -14923,7 +15030,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
14923
15030
|
onClick: _cache[2] || (_cache[2] = ($event) => emit2("add"))
|
|
14924
15031
|
})) : createCommentVNode("", true)
|
|
14925
15032
|
]),
|
|
14926
|
-
createElementVNode("div", _hoisted_5$
|
|
15033
|
+
createElementVNode("div", _hoisted_5$m, [
|
|
14927
15034
|
renderSlot(_ctx.$slots, "default")
|
|
14928
15035
|
])
|
|
14929
15036
|
]);
|
|
@@ -15026,7 +15133,7 @@ const _hoisted_1$U = { class: "comments-wrap" };
|
|
|
15026
15133
|
const _hoisted_2$L = { class: "comment-list" };
|
|
15027
15134
|
const _hoisted_3$F = { class: "comment-top" };
|
|
15028
15135
|
const _hoisted_4$r = { class: "comment-owner" };
|
|
15029
|
-
const _hoisted_5$
|
|
15136
|
+
const _hoisted_5$l = { class: "comment-time" };
|
|
15030
15137
|
const _hoisted_6$h = { class: "comment-actions" };
|
|
15031
15138
|
const _hoisted_7$c = ["innerHTML"];
|
|
15032
15139
|
const _hoisted_8$6 = { class: "new-comment" };
|
|
@@ -15086,21 +15193,21 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
15086
15193
|
}, [
|
|
15087
15194
|
createElementVNode("div", _hoisted_3$F, [
|
|
15088
15195
|
createElementVNode("div", _hoisted_4$r, toDisplayString(comment.sender.first_name) + " " + toDisplayString(comment.sender.last_name), 1),
|
|
15089
|
-
createElementVNode("div", _hoisted_5$
|
|
15196
|
+
createElementVNode("div", _hoisted_5$l, toDisplayString(comment.updated_at.split("T")[0]), 1),
|
|
15090
15197
|
createElementVNode("div", _hoisted_6$h, [
|
|
15091
|
-
createVNode(unref(_sfc_main$
|
|
15198
|
+
createVNode(unref(_sfc_main$X), {
|
|
15092
15199
|
size: 1,
|
|
15093
15200
|
class: "edit",
|
|
15094
15201
|
icon: "edit",
|
|
15095
15202
|
onClick: ($event) => isRef(editComment) ? editComment.value = comment : editComment = comment
|
|
15096
15203
|
}, null, 8, ["onClick"]),
|
|
15097
|
-
createVNode(unref(_sfc_main$
|
|
15204
|
+
createVNode(unref(_sfc_main$X), {
|
|
15098
15205
|
size: 1.2,
|
|
15099
15206
|
class: "delete",
|
|
15100
15207
|
icon: "delete",
|
|
15101
15208
|
onClick: ($event) => deleteComment(comment.id)
|
|
15102
15209
|
}, null, 8, ["onClick"]),
|
|
15103
|
-
createVNode(unref(_sfc_main$
|
|
15210
|
+
createVNode(unref(_sfc_main$X), {
|
|
15104
15211
|
size: 1.2,
|
|
15105
15212
|
class: "save",
|
|
15106
15213
|
icon: "save",
|
|
@@ -15108,7 +15215,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
15108
15215
|
})
|
|
15109
15216
|
])
|
|
15110
15217
|
]),
|
|
15111
|
-
unref(editComment) !== null && ((_c = unref(editComment)) == null ? void 0 : _c.id) === comment.id ? (openBlock(), createBlock(unref(_sfc_main$
|
|
15218
|
+
unref(editComment) !== null && ((_c = unref(editComment)) == null ? void 0 : _c.id) === comment.id ? (openBlock(), createBlock(unref(_sfc_main$Y), {
|
|
15112
15219
|
key: 0,
|
|
15113
15220
|
modelValue: unref(editComment).body_html,
|
|
15114
15221
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(editComment).body_html = $event),
|
|
@@ -15122,7 +15229,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
15122
15229
|
}), 128))
|
|
15123
15230
|
]),
|
|
15124
15231
|
createElementVNode("div", _hoisted_8$6, [
|
|
15125
|
-
createVNode(unref(_sfc_main$
|
|
15232
|
+
createVNode(unref(_sfc_main$Y), {
|
|
15126
15233
|
class: "comment-input",
|
|
15127
15234
|
modelValue: unref(bodyHtml),
|
|
15128
15235
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(bodyHtml) ? bodyHtml.value = $event : bodyHtml = $event),
|
|
@@ -15339,7 +15446,7 @@ const _hoisted_1$R = { class: "table-list-wrap h-100" };
|
|
|
15339
15446
|
const _hoisted_2$I = { class: "infinite-wrapper" };
|
|
15340
15447
|
const _hoisted_3$E = { class: "row first-row" };
|
|
15341
15448
|
const _hoisted_4$q = ["onClick"];
|
|
15342
|
-
const _hoisted_5$
|
|
15449
|
+
const _hoisted_5$k = { class: "flex" };
|
|
15343
15450
|
const _hoisted_6$g = ["onClick"];
|
|
15344
15451
|
const _hoisted_7$b = { key: 1 };
|
|
15345
15452
|
const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
@@ -15397,12 +15504,12 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
15397
15504
|
key: field.id,
|
|
15398
15505
|
onClick: ($event) => sort2(field.id)
|
|
15399
15506
|
}, [
|
|
15400
|
-
createElementVNode("div", _hoisted_5$
|
|
15507
|
+
createElementVNode("div", _hoisted_5$k, [
|
|
15401
15508
|
createTextVNode(toDisplayString((field == null ? void 0 : field.label) || (field == null ? void 0 : field.id)) + " ", 1),
|
|
15402
15509
|
createElementVNode("div", {
|
|
15403
15510
|
class: normalizeClass(["list-arrows", { sorted: unref(sortField) === field.id }])
|
|
15404
15511
|
}, [
|
|
15405
|
-
createVNode(unref(_sfc_main$
|
|
15512
|
+
createVNode(unref(_sfc_main$X), {
|
|
15406
15513
|
class: normalizeClass({ desc: unref(sortDirection) === "DESC" }),
|
|
15407
15514
|
icon: "keyboard_arrow_up"
|
|
15408
15515
|
}, null, 8, ["class"])
|
|
@@ -15538,7 +15645,7 @@ const _hoisted_1$O = {
|
|
|
15538
15645
|
const _hoisted_2$H = { class: "person-card-icon-wrap" };
|
|
15539
15646
|
const _hoisted_3$D = { class: "person-card-icon" };
|
|
15540
15647
|
const _hoisted_4$p = { class: "person-card-name txt20" };
|
|
15541
|
-
const _hoisted_5$
|
|
15648
|
+
const _hoisted_5$j = { class: "person-card-details-wrap" };
|
|
15542
15649
|
const _hoisted_6$f = {
|
|
15543
15650
|
key: 0,
|
|
15544
15651
|
class: "person-card-details"
|
|
@@ -15604,9 +15711,9 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
15604
15711
|
createElementVNode("p", _hoisted_3$D, toDisplayString(unref(initials)(_ctx.person.first_name, _ctx.person.last_name)), 1),
|
|
15605
15712
|
createElementVNode("p", _hoisted_4$p, toDisplayString(_ctx.person.first_name) + " " + toDisplayString(_ctx.person.last_name), 1)
|
|
15606
15713
|
]),
|
|
15607
|
-
createElementVNode("div", _hoisted_5$
|
|
15714
|
+
createElementVNode("div", _hoisted_5$j, [
|
|
15608
15715
|
((_a2 = _ctx.person.phone) == null ? void 0 : _a2.length) ? (openBlock(), createElementBlock("div", _hoisted_6$f, [
|
|
15609
|
-
createVNode(unref(_sfc_main$
|
|
15716
|
+
createVNode(unref(_sfc_main$X), { icon: "phone" }),
|
|
15610
15717
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList(_ctx.person.phone, (phone) => {
|
|
15611
15718
|
return openBlock(), createElementBlock("p", {
|
|
15612
15719
|
key: phone.id
|
|
@@ -15614,7 +15721,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
15614
15721
|
}), 128))
|
|
15615
15722
|
])) : createCommentVNode("", true),
|
|
15616
15723
|
((_b = _ctx.person.email) == null ? void 0 : _b.length) ? (openBlock(), createElementBlock("div", _hoisted_7$a, [
|
|
15617
|
-
createVNode(unref(_sfc_main$
|
|
15724
|
+
createVNode(unref(_sfc_main$X), { icon: "email" }),
|
|
15618
15725
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList(_ctx.person.email, (email) => {
|
|
15619
15726
|
return openBlock(), createElementBlock("p", {
|
|
15620
15727
|
key: email.id
|
|
@@ -15622,7 +15729,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
15622
15729
|
}), 128))
|
|
15623
15730
|
])) : createCommentVNode("", true),
|
|
15624
15731
|
_ctx.person.date_of_birth || _ctx.person.gender ? (openBlock(), createElementBlock("div", _hoisted_8$5, [
|
|
15625
|
-
createVNode(unref(_sfc_main$
|
|
15732
|
+
createVNode(unref(_sfc_main$X), { icon: "badge" }),
|
|
15626
15733
|
_ctx.person.date_of_birth ? (openBlock(), createElementBlock("p", _hoisted_9$3, toDisplayString(_ctx.person.date_of_birth), 1)) : createCommentVNode("", true),
|
|
15627
15734
|
_ctx.person.gender ? (openBlock(), createElementBlock("p", _hoisted_10$3, toDisplayString(_ctx.person.gender), 1)) : createCommentVNode("", true)
|
|
15628
15735
|
])) : createCommentVNode("", true)
|
|
@@ -15644,7 +15751,7 @@ const _hoisted_3$C = {
|
|
|
15644
15751
|
class: "data-row"
|
|
15645
15752
|
};
|
|
15646
15753
|
const _hoisted_4$o = { class: "key" };
|
|
15647
|
-
const _hoisted_5$
|
|
15754
|
+
const _hoisted_5$i = { key: 1 };
|
|
15648
15755
|
const _hoisted_6$e = { class: "key" };
|
|
15649
15756
|
const _hoisted_7$9 = { class: "vlue" };
|
|
15650
15757
|
const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
@@ -15696,7 +15803,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
15696
15803
|
])) : createCommentVNode("", true)
|
|
15697
15804
|
], 64);
|
|
15698
15805
|
}), 128)),
|
|
15699
|
-
!((_a2 = _ctx.schema) == null ? void 0 : _a2.length) ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
15806
|
+
!((_a2 = _ctx.schema) == null ? void 0 : _a2.length) ? (openBlock(), createElementBlock("div", _hoisted_5$i, [
|
|
15700
15807
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList(Object.entries(itemData.value).filter(
|
|
15701
15808
|
([key]) => !keysToIgnore.includes(key)
|
|
15702
15809
|
), ([key, value]) => {
|
|
@@ -15726,7 +15833,7 @@ const _hoisted_4$n = {
|
|
|
15726
15833
|
key: 1,
|
|
15727
15834
|
class: "bar-wrap"
|
|
15728
15835
|
};
|
|
15729
|
-
const _hoisted_5$
|
|
15836
|
+
const _hoisted_5$h = { class: "bar-txt" };
|
|
15730
15837
|
const _hoisted_6$d = { class: "factor" };
|
|
15731
15838
|
const _hoisted_7$8 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("div", { class: "red-bar" }, null, -1));
|
|
15732
15839
|
const _hoisted_8$4 = { class: "bar-lines" };
|
|
@@ -15818,7 +15925,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
15818
15925
|
class: "bar compare",
|
|
15819
15926
|
style: normalizeStyle({ height: loaded.value ? `${percent(item.compareValue)}%` : "0" })
|
|
15820
15927
|
}, null, 4)) : createCommentVNode("", true),
|
|
15821
|
-
createElementVNode("p", _hoisted_5$
|
|
15928
|
+
createElementVNode("p", _hoisted_5$h, toDisplayString(item.title), 1)
|
|
15822
15929
|
]))
|
|
15823
15930
|
]);
|
|
15824
15931
|
}), 128)),
|
|
@@ -17126,7 +17233,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
17126
17233
|
[vModelCheckbox, unref(val)]
|
|
17127
17234
|
]),
|
|
17128
17235
|
createElementVNode("span", null, [
|
|
17129
|
-
createVNode(unref(_sfc_main$
|
|
17236
|
+
createVNode(unref(_sfc_main$X), { icon: "check" })
|
|
17130
17237
|
])
|
|
17131
17238
|
]);
|
|
17132
17239
|
};
|
|
@@ -17140,7 +17247,7 @@ const _hoisted_3$A = {
|
|
|
17140
17247
|
class: "bglform-contact-confirm"
|
|
17141
17248
|
};
|
|
17142
17249
|
const _hoisted_4$m = { class: "txt14" };
|
|
17143
|
-
const _hoisted_5$
|
|
17250
|
+
const _hoisted_5$g = ["onUpdate:modelValue", "placeholder"];
|
|
17144
17251
|
const _hoisted_6$c = ["onUpdate:modelValue", "placeholder"];
|
|
17145
17252
|
const _hoisted_7$7 = ["onUpdate:modelValue", "placeholder"];
|
|
17146
17253
|
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
@@ -17241,7 +17348,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
17241
17348
|
"onUpdate:modelValue": ($event) => contact.label = $event,
|
|
17242
17349
|
type: "text",
|
|
17243
17350
|
placeholder: (_b = formPlaceholders.value) == null ? void 0 : _b.label
|
|
17244
|
-
}, null, 8, _hoisted_5$
|
|
17351
|
+
}, null, 8, _hoisted_5$g), [
|
|
17245
17352
|
[vModelText, contact.label]
|
|
17246
17353
|
]),
|
|
17247
17354
|
((_c = _ctx.context) == null ? void 0 : _c.id) === "email" ? withDirectives((openBlock(), createElementBlock("input", {
|
|
@@ -17296,7 +17403,7 @@ const _hoisted_3$z = {
|
|
|
17296
17403
|
class: "bglform-contact-confirm"
|
|
17297
17404
|
};
|
|
17298
17405
|
const _hoisted_4$l = { class: "txt14" };
|
|
17299
|
-
const _hoisted_5$
|
|
17406
|
+
const _hoisted_5$f = ["onUpdate:modelValue", "placeholder"];
|
|
17300
17407
|
const _hoisted_6$b = { class: "bglform-contact-address" };
|
|
17301
17408
|
const _hoisted_7$6 = ["onUpdate:modelValue", "placeholder"];
|
|
17302
17409
|
const _hoisted_8$3 = { class: "bglform-contact-address-flex" };
|
|
@@ -17408,7 +17515,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
17408
17515
|
"onUpdate:modelValue": ($event) => address.label = $event,
|
|
17409
17516
|
type: "text",
|
|
17410
17517
|
placeholder: (_b = formPlaceholders.value) == null ? void 0 : _b.label
|
|
17411
|
-
}, null, 8, _hoisted_5$
|
|
17518
|
+
}, null, 8, _hoisted_5$f), [
|
|
17412
17519
|
[vModelText, address.label]
|
|
17413
17520
|
]),
|
|
17414
17521
|
createElementVNode("div", _hoisted_6$b, [
|
|
@@ -17480,7 +17587,7 @@ const _hoisted_3$y = {
|
|
|
17480
17587
|
class: "bglform-contact-confirm"
|
|
17481
17588
|
};
|
|
17482
17589
|
const _hoisted_4$k = { class: "txt14" };
|
|
17483
|
-
const _hoisted_5$
|
|
17590
|
+
const _hoisted_5$e = ["onUpdate:modelValue", "placeholder"];
|
|
17484
17591
|
const _hoisted_6$a = { class: "bglform-contact-address" };
|
|
17485
17592
|
const _hoisted_7$5 = ["onUpdate:modelValue", "placeholder"];
|
|
17486
17593
|
const _hoisted_8$2 = { class: "bglform-contact-address-flex" };
|
|
@@ -17591,7 +17698,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
17591
17698
|
"onUpdate:modelValue": ($event) => bank_account.label = $event,
|
|
17592
17699
|
type: "text",
|
|
17593
17700
|
placeholder: (_b = formPlaceholders.value) == null ? void 0 : _b.label
|
|
17594
|
-
}, null, 8, _hoisted_5$
|
|
17701
|
+
}, null, 8, _hoisted_5$e), [
|
|
17595
17702
|
[vModelText, bank_account.label]
|
|
17596
17703
|
]),
|
|
17597
17704
|
createElementVNode("div", _hoisted_6$a, [
|
|
@@ -17737,7 +17844,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
17737
17844
|
}
|
|
17738
17845
|
});
|
|
17739
17846
|
const MiscFieldsBtns = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-a096417d"]]);
|
|
17740
|
-
const _withScopeId$1 = (n) => (pushScopeId("data-v-
|
|
17847
|
+
const _withScopeId$1 = (n) => (pushScopeId("data-v-dee6bdf5"), n = n(), popScopeId(), n);
|
|
17741
17848
|
const _hoisted_1$G = ["title"];
|
|
17742
17849
|
const _hoisted_2$B = { class: "switch" };
|
|
17743
17850
|
const _hoisted_3$x = ["id"];
|
|
@@ -17784,7 +17891,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
17784
17891
|
};
|
|
17785
17892
|
}
|
|
17786
17893
|
});
|
|
17787
|
-
const Toggle = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-
|
|
17894
|
+
const Toggle = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-dee6bdf5"]]);
|
|
17788
17895
|
const _hoisted_1$F = { class: "files-wrapper flex" };
|
|
17789
17896
|
const _hoisted_2$A = {
|
|
17790
17897
|
key: 0,
|
|
@@ -17792,7 +17899,7 @@ const _hoisted_2$A = {
|
|
|
17792
17899
|
};
|
|
17793
17900
|
const _hoisted_3$w = { class: "uploading-wrap" };
|
|
17794
17901
|
const _hoisted_4$i = { class: "load-file-bar" };
|
|
17795
|
-
const _hoisted_5$
|
|
17902
|
+
const _hoisted_5$d = ["src", "alt"];
|
|
17796
17903
|
const _hoisted_6$9 = { class: "flex" };
|
|
17797
17904
|
const _hoisted_7$4 = {
|
|
17798
17905
|
key: 0,
|
|
@@ -17976,7 +18083,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
17976
18083
|
src: item.dataUrl,
|
|
17977
18084
|
alt: item.name,
|
|
17978
18085
|
style: { "margin-inline-end": "10px" }
|
|
17979
|
-
}, null, 8, _hoisted_5$
|
|
18086
|
+
}, null, 8, _hoisted_5$d)) : createCommentVNode("", true),
|
|
17980
18087
|
createElementVNode("p", null, toDisplayString(item.name), 1),
|
|
17981
18088
|
createElementVNode("div", _hoisted_6$9, [
|
|
17982
18089
|
createElementVNode("div", {
|
|
@@ -17984,7 +18091,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
17984
18091
|
style: normalizeStyle([`--p:${item.progress}`, { "--b": "2px" }])
|
|
17985
18092
|
}, [
|
|
17986
18093
|
item.progress < 100 ? (openBlock(), createElementBlock("span", _hoisted_7$4, toDisplayString(`${item.progress.toFixed(0)}`), 1)) : createCommentVNode("", true),
|
|
17987
|
-
createVNode(unref(_sfc_main$
|
|
18094
|
+
createVNode(unref(_sfc_main$X), {
|
|
17988
18095
|
class: "success",
|
|
17989
18096
|
icon: "check"
|
|
17990
18097
|
})
|
|
@@ -18021,7 +18128,7 @@ const _hoisted_1$E = {
|
|
|
18021
18128
|
const _hoisted_2$z = { class: "person-card-icon-wrap" };
|
|
18022
18129
|
const _hoisted_3$v = { class: "person-card-icon" };
|
|
18023
18130
|
const _hoisted_4$h = { class: "person-card-name txt20" };
|
|
18024
|
-
const _hoisted_5$
|
|
18131
|
+
const _hoisted_5$c = { class: "person-card-details-wrap" };
|
|
18025
18132
|
const _hoisted_6$8 = {
|
|
18026
18133
|
key: 0,
|
|
18027
18134
|
class: "person-card-details"
|
|
@@ -18089,9 +18196,9 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
18089
18196
|
createElementVNode("p", _hoisted_3$v, toDisplayString(unref(initials)(person.value.first_name, person.value.last_name)), 1),
|
|
18090
18197
|
createElementVNode("p", _hoisted_4$h, toDisplayString(person.value.first_name) + " " + toDisplayString(person.value.last_name), 1)
|
|
18091
18198
|
]),
|
|
18092
|
-
createElementVNode("div", _hoisted_5$
|
|
18199
|
+
createElementVNode("div", _hoisted_5$c, [
|
|
18093
18200
|
((_a2 = person.value.phone) == null ? void 0 : _a2.length) ? (openBlock(), createElementBlock("div", _hoisted_6$8, [
|
|
18094
|
-
createVNode(unref(_sfc_main$
|
|
18201
|
+
createVNode(unref(_sfc_main$X), { icon: "phone" }),
|
|
18095
18202
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList(person.value.phone, (phone) => {
|
|
18096
18203
|
return openBlock(), createElementBlock("p", {
|
|
18097
18204
|
key: phone.id
|
|
@@ -18099,7 +18206,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
18099
18206
|
}), 128))
|
|
18100
18207
|
])) : createCommentVNode("", true),
|
|
18101
18208
|
((_b = person.value.email) == null ? void 0 : _b.length) ? (openBlock(), createElementBlock("div", _hoisted_7$3, [
|
|
18102
|
-
createVNode(unref(_sfc_main$
|
|
18209
|
+
createVNode(unref(_sfc_main$X), { icon: "email" }),
|
|
18103
18210
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList(person.value.email, (email) => {
|
|
18104
18211
|
return openBlock(), createElementBlock("p", {
|
|
18105
18212
|
key: email.id
|
|
@@ -18107,7 +18214,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
18107
18214
|
}), 128))
|
|
18108
18215
|
])) : createCommentVNode("", true),
|
|
18109
18216
|
person.value.date_of_birth || person.value.gender ? (openBlock(), createElementBlock("div", _hoisted_8, [
|
|
18110
|
-
createVNode(unref(_sfc_main$
|
|
18217
|
+
createVNode(unref(_sfc_main$X), { icon: "badge" }),
|
|
18111
18218
|
person.value.date_of_birth ? (openBlock(), createElementBlock("p", _hoisted_9, toDisplayString(person.value.date_of_birth), 1)) : createCommentVNode("", true),
|
|
18112
18219
|
person.value.gender ? (openBlock(), createElementBlock("p", _hoisted_10, toDisplayString(person.value.gender), 1)) : createCommentVNode("", true)
|
|
18113
18220
|
])) : createCommentVNode("", true)
|
|
@@ -18249,7 +18356,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
18249
18356
|
}, {
|
|
18250
18357
|
default: withCtx(() => [
|
|
18251
18358
|
createTextVNode(toDisplayString(content.value) + " ", 1),
|
|
18252
|
-
createVNode(unref(_sfc_main$
|
|
18359
|
+
createVNode(unref(_sfc_main$X), { icon: "arrow_forward" })
|
|
18253
18360
|
]),
|
|
18254
18361
|
_: 1
|
|
18255
18362
|
})) : (openBlock(), createElementBlock("span", _hoisted_1$D, toDisplayString(content.value), 1))
|
|
@@ -18276,7 +18383,7 @@ const _hoisted_1$C = { class: "bagel-input" };
|
|
|
18276
18383
|
const _hoisted_2$y = ["for"];
|
|
18277
18384
|
const _hoisted_3$u = ["checked"];
|
|
18278
18385
|
const _hoisted_4$g = ["name", "type", "value"];
|
|
18279
|
-
const _hoisted_5$
|
|
18386
|
+
const _hoisted_5$b = ["name", "type", "value"];
|
|
18280
18387
|
const _hoisted_6$7 = ["name", "type", "value"];
|
|
18281
18388
|
const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
18282
18389
|
__name: "PlainInputField",
|
|
@@ -18312,7 +18419,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
18312
18419
|
createElementVNode("label", {
|
|
18313
18420
|
for: unref(formatString)(_ctx.name, "pascal")
|
|
18314
18421
|
}, [
|
|
18315
|
-
createVNode(_sfc_main$
|
|
18422
|
+
createVNode(_sfc_main$Z, {
|
|
18316
18423
|
input: unref(formatString)(_ctx.name, "titleCase")
|
|
18317
18424
|
}, null, 8, ["input"])
|
|
18318
18425
|
], 8, _hoisted_2$y),
|
|
@@ -18342,7 +18449,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
18342
18449
|
value: _ctx.modelValue,
|
|
18343
18450
|
class: "ctl",
|
|
18344
18451
|
onInput: handleInput
|
|
18345
|
-
}, null, 40, _hoisted_5$
|
|
18452
|
+
}, null, 40, _hoisted_5$b)) : _ctx.type === "textarea" ? (openBlock(), createElementBlock("textarea", {
|
|
18346
18453
|
key: 3,
|
|
18347
18454
|
ref_key: "el",
|
|
18348
18455
|
ref: el2,
|
|
@@ -18353,7 +18460,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
18353
18460
|
onInput: handleInput
|
|
18354
18461
|
}, null, 40, _hoisted_6$7)) : createCommentVNode("", true),
|
|
18355
18462
|
createElementVNode("div", null, [
|
|
18356
|
-
createVNode(_sfc_main$
|
|
18463
|
+
createVNode(_sfc_main$Z, { input: _ctx.errorMessage }, null, 8, ["input"])
|
|
18357
18464
|
])
|
|
18358
18465
|
]);
|
|
18359
18466
|
};
|
|
@@ -18372,22 +18479,23 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
18372
18479
|
setup(__props, { emit: __emit }) {
|
|
18373
18480
|
const { showModal } = useModal();
|
|
18374
18481
|
const props2 = __props;
|
|
18482
|
+
let data2 = ref({});
|
|
18483
|
+
watch(() => props2.modelValue, (val) => {
|
|
18484
|
+
data2.value = val;
|
|
18485
|
+
}, { immediate: true, deep: true });
|
|
18486
|
+
const updateModelValue = (val, fieldID) => {
|
|
18487
|
+
if (!fieldID)
|
|
18488
|
+
return;
|
|
18489
|
+
data2.value[fieldID] = val;
|
|
18490
|
+
emits("update:modelValue", data2.value);
|
|
18491
|
+
};
|
|
18375
18492
|
const emits = __emit;
|
|
18376
|
-
const handleEmit = (val) => emits("update:modelValue", val);
|
|
18377
|
-
let data2 = ref({
|
|
18378
|
-
...props2.modelValue
|
|
18379
|
-
});
|
|
18380
18493
|
const runSubmit = () => {
|
|
18381
18494
|
emits("submit", data2.value);
|
|
18382
18495
|
clearForm();
|
|
18383
18496
|
};
|
|
18384
18497
|
const clearForm = () => data2.value = {};
|
|
18385
18498
|
const i18nT = (val) => val;
|
|
18386
|
-
watch(
|
|
18387
|
-
() => data2.value,
|
|
18388
|
-
() => handleEmit,
|
|
18389
|
-
{ immediate: true }
|
|
18390
|
-
);
|
|
18391
18499
|
const runDelete = () => {
|
|
18392
18500
|
showModal(
|
|
18393
18501
|
{
|
|
@@ -18418,7 +18526,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
18418
18526
|
key: field.id || `${i3}p`,
|
|
18419
18527
|
field,
|
|
18420
18528
|
modelValue: unref(data2),
|
|
18421
|
-
"onUpdate:modelValue": ($event) => field
|
|
18529
|
+
"onUpdate:modelValue": ($event) => updateModelValue($event, (field == null ? void 0 : field.id) || "")
|
|
18422
18530
|
}, null, 8, ["field", "modelValue", "onUpdate:modelValue"]);
|
|
18423
18531
|
}), 128)),
|
|
18424
18532
|
((_a2 = _ctx.modelValue) == null ? void 0 : _a2.id) && _ctx.onDelete ? (openBlock(), createBlock(unref(Btn), {
|
|
@@ -18480,17 +18588,25 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
18480
18588
|
};
|
|
18481
18589
|
}
|
|
18482
18590
|
});
|
|
18483
|
-
const _withScopeId = (n) => (pushScopeId("data-v-
|
|
18591
|
+
const _withScopeId = (n) => (pushScopeId("data-v-4594626f"), n = n(), popScopeId(), n);
|
|
18484
18592
|
const _hoisted_1$A = ["title"];
|
|
18485
|
-
const _hoisted_2$x = ["
|
|
18486
|
-
const _hoisted_3$t =
|
|
18487
|
-
|
|
18488
|
-
|
|
18593
|
+
const _hoisted_2$x = ["id"];
|
|
18594
|
+
const _hoisted_3$t = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("svg", {
|
|
18595
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
18596
|
+
height: "24",
|
|
18597
|
+
viewBox: "0 -960 960 960",
|
|
18598
|
+
width: "24"
|
|
18599
|
+
}, [
|
|
18600
|
+
/* @__PURE__ */ createElementVNode("path", { d: "M382-240 154-468l57-57 171 171 367-367 57 57-424 424Z" })
|
|
18601
|
+
], -1));
|
|
18602
|
+
const _hoisted_4$f = ["for"];
|
|
18489
18603
|
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
18490
18604
|
__name: "CheckInput",
|
|
18491
18605
|
props: {
|
|
18492
|
-
|
|
18493
|
-
|
|
18606
|
+
label: {},
|
|
18607
|
+
id: { default: Math.random().toString(36).substring(7) },
|
|
18608
|
+
title: {},
|
|
18609
|
+
modelValue: { type: Boolean },
|
|
18494
18610
|
editMode: { type: Boolean, default: true },
|
|
18495
18611
|
small: { type: Boolean }
|
|
18496
18612
|
},
|
|
@@ -18498,8 +18614,8 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
18498
18614
|
setup(__props, { emit: __emit }) {
|
|
18499
18615
|
const emits = __emit;
|
|
18500
18616
|
const props2 = __props;
|
|
18501
|
-
|
|
18502
|
-
watch(inputVal, (newVal) => {
|
|
18617
|
+
let inputVal = ref(false);
|
|
18618
|
+
watch(inputVal.value, (newVal) => {
|
|
18503
18619
|
if (newVal === void 0)
|
|
18504
18620
|
return;
|
|
18505
18621
|
emits("update:modelValue", newVal);
|
|
@@ -18509,33 +18625,29 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
18509
18625
|
(newVal) => {
|
|
18510
18626
|
if (inputVal.value !== newVal)
|
|
18511
18627
|
inputVal.value = newVal;
|
|
18512
|
-
}
|
|
18628
|
+
},
|
|
18629
|
+
{ immediate: true }
|
|
18513
18630
|
);
|
|
18514
|
-
onMounted(() => inputVal.value = !!props2.modelValue);
|
|
18515
18631
|
return (_ctx, _cache) => {
|
|
18516
18632
|
return openBlock(), createElementBlock("div", {
|
|
18517
|
-
class: normalizeClass(["bagel-input checkbox", { small: _ctx.small, "no-edit": !_ctx.editMode }]),
|
|
18518
|
-
title: _ctx.
|
|
18633
|
+
class: normalizeClass(["bagel-input bgl-checkbox", { small: _ctx.small, "no-edit": !_ctx.editMode }]),
|
|
18634
|
+
title: _ctx.title
|
|
18519
18635
|
}, [
|
|
18520
|
-
createElementVNode("
|
|
18521
|
-
|
|
18522
|
-
|
|
18523
|
-
|
|
18524
|
-
|
|
18525
|
-
|
|
18526
|
-
|
|
18527
|
-
|
|
18528
|
-
|
|
18529
|
-
|
|
18530
|
-
[vModelCheckbox, inputVal.value]
|
|
18531
|
-
]),
|
|
18532
|
-
_hoisted_5$b
|
|
18533
|
-
])
|
|
18636
|
+
withDirectives(createElementVNode("input", {
|
|
18637
|
+
id: _ctx.id,
|
|
18638
|
+
type: "checkbox",
|
|
18639
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(inputVal) ? inputVal.value = $event : inputVal = $event),
|
|
18640
|
+
class: normalizeClass({ "no-edit": !_ctx.editMode })
|
|
18641
|
+
}, null, 10, _hoisted_2$x), [
|
|
18642
|
+
[vModelCheckbox, unref(inputVal)]
|
|
18643
|
+
]),
|
|
18644
|
+
_hoisted_3$t,
|
|
18645
|
+
createElementVNode("label", { for: _ctx.id }, toDisplayString(_ctx.label), 9, _hoisted_4$f)
|
|
18534
18646
|
], 10, _hoisted_1$A);
|
|
18535
18647
|
};
|
|
18536
18648
|
}
|
|
18537
18649
|
});
|
|
18538
|
-
const CheckInput = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-
|
|
18650
|
+
const CheckInput = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-4594626f"]]);
|
|
18539
18651
|
const _hoisted_1$z = ["title"];
|
|
18540
18652
|
const _hoisted_2$w = { key: 0 };
|
|
18541
18653
|
const _hoisted_3$s = { class: "flex gap-3" };
|
|
@@ -19203,7 +19315,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
19203
19315
|
[vModelDynamic, inputVal.value]
|
|
19204
19316
|
])
|
|
19205
19317
|
], 8, _hoisted_2$n),
|
|
19206
|
-
createVNode(unref(_sfc_main$
|
|
19318
|
+
createVNode(unref(_sfc_main$X), {
|
|
19207
19319
|
onClick: showPassword,
|
|
19208
19320
|
icon: unref(seePassword) ? "visibility" : "visibility_off"
|
|
19209
19321
|
}, null, 8, ["icon"])
|
|
@@ -19352,7 +19464,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
19352
19464
|
for: "label",
|
|
19353
19465
|
class: normalizeClass({ active: showList.value })
|
|
19354
19466
|
}, [
|
|
19355
|
-
createVNode(unref(_sfc_main$
|
|
19467
|
+
createVNode(unref(_sfc_main$Z), { input: _ctx.label }, null, 8, ["input"])
|
|
19356
19468
|
], 2)) : createCommentVNode("", true),
|
|
19357
19469
|
createElementVNode("div", {
|
|
19358
19470
|
class: normalizeClass(["custom-select", { "open-select": showList.value && _ctx.editMode }]),
|
|
@@ -19364,7 +19476,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
19364
19476
|
class: normalizeClass(["input", { active: showList.value }]),
|
|
19365
19477
|
name: "select-input"
|
|
19366
19478
|
}, [
|
|
19367
|
-
createVNode(unref(_sfc_main$
|
|
19479
|
+
createVNode(unref(_sfc_main$Z), { input: displayValue.value }, null, 8, ["input"])
|
|
19368
19480
|
], 2),
|
|
19369
19481
|
(openBlock(), createBlock(Teleport, { to: "#app" }, [
|
|
19370
19482
|
createElementVNode("div", {
|
|
@@ -19377,7 +19489,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
19377
19489
|
key: option2.value,
|
|
19378
19490
|
onClick: ($event) => handleSelect(option2)
|
|
19379
19491
|
}, [
|
|
19380
|
-
createVNode(unref(_sfc_main$
|
|
19492
|
+
createVNode(unref(_sfc_main$Z), {
|
|
19381
19493
|
input: option2.label
|
|
19382
19494
|
}, null, 8, ["input"])
|
|
19383
19495
|
], 8, _hoisted_2$l);
|
|
@@ -22262,12 +22374,12 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
22262
22374
|
[vModelText, unref(inputVal)]
|
|
22263
22375
|
])
|
|
22264
22376
|
], 8, _hoisted_2$h),
|
|
22265
|
-
_ctx.iconStart ? (openBlock(), createBlock(unref(_sfc_main$
|
|
22377
|
+
_ctx.iconStart ? (openBlock(), createBlock(unref(_sfc_main$X), {
|
|
22266
22378
|
key: 0,
|
|
22267
22379
|
class: "iconStart",
|
|
22268
22380
|
icon: _ctx.iconStart
|
|
22269
22381
|
}, null, 8, ["icon"])) : createCommentVNode("", true),
|
|
22270
|
-
_ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$
|
|
22382
|
+
_ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$X), {
|
|
22271
22383
|
key: 1,
|
|
22272
22384
|
icon: _ctx.icon
|
|
22273
22385
|
}, null, 8, ["icon"])) : createCommentVNode("", true),
|
|
@@ -22317,7 +22429,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
22317
22429
|
title: _ctx.description
|
|
22318
22430
|
}, [
|
|
22319
22431
|
_ctx.label ? (openBlock(), createElementBlock("label", _hoisted_2$g, [
|
|
22320
|
-
createVNode(unref(_sfc_main$
|
|
22432
|
+
createVNode(unref(_sfc_main$Z), { input: _ctx.label }, null, 8, ["input"])
|
|
22321
22433
|
])) : createCommentVNode("", true),
|
|
22322
22434
|
_ctx.showCharacterLimit ? (openBlock(), createElementBlock("span", _hoisted_3$e, toDisplayString((_a2 = _ctx.modelValue) == null ? void 0 : _a2.length) + " " + toDisplayString(((_b = _ctx.nativeInputAttrs) == null ? void 0 : _b.maxlength) ? `/${_ctx.nativeInputAttrs.maxlength}` : ""), 1)) : createCommentVNode("", true),
|
|
22323
22435
|
createElementVNode("textarea", mergeProps({
|
|
@@ -32088,7 +32200,6 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
32088
32200
|
files.value.push(file);
|
|
32089
32201
|
} else
|
|
32090
32202
|
files.value.splice(0, 1, file);
|
|
32091
|
-
console.log(files.value);
|
|
32092
32203
|
fileQueue.value.splice(i3, 1);
|
|
32093
32204
|
});
|
|
32094
32205
|
};
|
|
@@ -32111,7 +32222,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
32111
32222
|
else
|
|
32112
32223
|
isDragOver.value = false;
|
|
32113
32224
|
};
|
|
32114
|
-
const
|
|
32225
|
+
const dragover = (e3) => {
|
|
32115
32226
|
preventDefault(e3);
|
|
32116
32227
|
if (e3.dataTransfer)
|
|
32117
32228
|
isDragOver.value = true;
|
|
@@ -32130,7 +32241,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
32130
32241
|
createElementVNode("label", null, toDisplayString(_ctx.label), 1),
|
|
32131
32242
|
createElementVNode("div", {
|
|
32132
32243
|
onClick: browse,
|
|
32133
|
-
onDragover:
|
|
32244
|
+
onDragover: dragover,
|
|
32134
32245
|
onDrop: drop3,
|
|
32135
32246
|
onDragleave: dragleave,
|
|
32136
32247
|
class: normalizeClass(["fileUploadWrap", { fileDropZone: !files.value.length, dragover: unref(isDragOver) }])
|
|
@@ -32159,7 +32270,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
32159
32270
|
};
|
|
32160
32271
|
}
|
|
32161
32272
|
});
|
|
32162
|
-
const FileUpload = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-
|
|
32273
|
+
const FileUpload = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-c44f8c0d"]]);
|
|
32163
32274
|
function _isPlaceholder(a3) {
|
|
32164
32275
|
return a3 != null && typeof a3 === "object" && a3["@@functional/placeholder"] === true;
|
|
32165
32276
|
}
|
|
@@ -38652,6 +38763,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
38652
38763
|
const MsgTemplate = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-7031e613"]]);
|
|
38653
38764
|
export {
|
|
38654
38765
|
AddressInput,
|
|
38766
|
+
_sfc_main$r as BagelForm,
|
|
38655
38767
|
BagelVue,
|
|
38656
38768
|
BankDetailsInput,
|
|
38657
38769
|
BarChart,
|
|
@@ -38681,18 +38793,19 @@ export {
|
|
|
38681
38793
|
_sfc_main$j as IntInput,
|
|
38682
38794
|
_sfc_main$u as ItemRef,
|
|
38683
38795
|
JSONInput,
|
|
38684
|
-
_sfc_main$
|
|
38796
|
+
_sfc_main$Z as LangText,
|
|
38685
38797
|
_sfc_main$1 as Lineart,
|
|
38686
38798
|
LinkField,
|
|
38687
38799
|
_sfc_main$Q as ListItem,
|
|
38688
38800
|
_sfc_main$R as ListView,
|
|
38689
|
-
_sfc_main$
|
|
38801
|
+
_sfc_main$X as MaterialIcon,
|
|
38690
38802
|
MiscFieldsInput,
|
|
38691
|
-
_sfc_main$
|
|
38803
|
+
_sfc_main$U as Modal,
|
|
38804
|
+
ModalBglForm,
|
|
38692
38805
|
ModalForm,
|
|
38693
38806
|
ModalPlugin,
|
|
38694
38807
|
MsgTemplate,
|
|
38695
|
-
|
|
38808
|
+
NavBar,
|
|
38696
38809
|
_sfc_main$N as PageTitle,
|
|
38697
38810
|
Password,
|
|
38698
38811
|
PasswordInput,
|
|
@@ -38700,7 +38813,7 @@ export {
|
|
|
38700
38813
|
PersonPreviewInput,
|
|
38701
38814
|
_sfc_main$s as PlainInputField,
|
|
38702
38815
|
PlainText,
|
|
38703
|
-
_sfc_main$
|
|
38816
|
+
_sfc_main$Y as RTXEditor,
|
|
38704
38817
|
RadioPillsInput,
|
|
38705
38818
|
ReadOnlyInput,
|
|
38706
38819
|
RichTextEditor,
|