@bagelink/vue 0.0.211 → 0.0.216
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 +1 -2
- package/dist/components/ModalBglForm.vue.d.ts.map +1 -1
- package/dist/components/NavBar.vue.d.ts.map +1 -1
- package/dist/components/form/BglField.vue.d.ts.map +1 -1
- package/dist/components/form/BglForm.vue.d.ts +28 -23
- package/dist/components/form/BglForm.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/CheckInput.vue.d.ts +42 -36
- 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/index.cjs +121 -109
- package/dist/index.mjs +122 -110
- package/dist/style.css +146 -174
- package/package.json +1 -1
- package/src/components/ModalBglForm.vue +1 -2
- package/src/components/NavBar.vue +47 -45
- package/src/components/form/BglField.vue +9 -0
- package/src/components/form/BglForm.vue +21 -19
- package/src/components/form/inputs/CheckInput.vue +74 -116
- package/src/components/form/inputs/FileUpload.vue +52 -45
- package/src/components/form/inputs/ToggleInput.vue +112 -0
- package/src/components/formkit/Toggle.vue +22 -22
- package/src/styles/theme.css +0 -8
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, mergeModels, useModel, 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);
|
|
@@ -14588,13 +14588,14 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
|
14588
14588
|
};
|
|
14589
14589
|
}
|
|
14590
14590
|
});
|
|
14591
|
-
const
|
|
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));
|
|
14592
14593
|
const _hoisted_2$T = [
|
|
14593
14594
|
_hoisted_1$10
|
|
14594
14595
|
];
|
|
14595
14596
|
const _hoisted_3$K = { class: "full-nav" };
|
|
14596
14597
|
const _hoisted_4$t = { class: "nav-scroll" };
|
|
14597
|
-
const _hoisted_5$
|
|
14598
|
+
const _hoisted_5$n = { class: "nav-links-wrapper" };
|
|
14598
14599
|
const _hoisted_6$i = { class: "icon-font" };
|
|
14599
14600
|
const _hoisted_7$d = { class: "tooltip" };
|
|
14600
14601
|
const _hoisted_8$7 = { class: "bot-buttons-wrapper" };
|
|
@@ -14614,7 +14615,7 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
|
14614
14615
|
return openBlock(), createElementBlock("div", {
|
|
14615
14616
|
class: normalizeClass({ open: isOpen.value, closed: !isOpen.value })
|
|
14616
14617
|
}, [
|
|
14617
|
-
renderSlot(_ctx.$slots, "top"),
|
|
14618
|
+
renderSlot(_ctx.$slots, "top", {}, void 0, true),
|
|
14618
14619
|
createElementVNode("div", {
|
|
14619
14620
|
class: "nav-expend",
|
|
14620
14621
|
onClick: _cache[0] || (_cache[0] = ($event) => isOpen.value = !isOpen.value),
|
|
@@ -14625,7 +14626,7 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
|
14625
14626
|
}, _hoisted_2$T, 32),
|
|
14626
14627
|
createElementVNode("div", _hoisted_3$K, [
|
|
14627
14628
|
createElementVNode("div", _hoisted_4$t, [
|
|
14628
|
-
createElementVNode("div", _hoisted_5$
|
|
14629
|
+
createElementVNode("div", _hoisted_5$n, [
|
|
14629
14630
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList((_a2 = _ctx.links) == null ? void 0 : _a2.call(_ctx), (link) => {
|
|
14630
14631
|
return openBlock(), createBlock(_component_RouterLink, {
|
|
14631
14632
|
class: "nav-button",
|
|
@@ -14642,13 +14643,21 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
|
14642
14643
|
])
|
|
14643
14644
|
]),
|
|
14644
14645
|
createElementVNode("div", _hoisted_8$7, [
|
|
14645
|
-
renderSlot(_ctx.$slots, "floor")
|
|
14646
|
+
renderSlot(_ctx.$slots, "floor", {}, void 0, true)
|
|
14646
14647
|
])
|
|
14647
14648
|
])
|
|
14648
14649
|
], 2);
|
|
14649
14650
|
};
|
|
14650
14651
|
}
|
|
14651
14652
|
});
|
|
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"]]);
|
|
14652
14661
|
const _hoisted_1$$ = {
|
|
14653
14662
|
key: 0,
|
|
14654
14663
|
class: "loading"
|
|
@@ -14757,13 +14766,6 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
14757
14766
|
};
|
|
14758
14767
|
}
|
|
14759
14768
|
});
|
|
14760
|
-
const _export_sfc = (sfc, props2) => {
|
|
14761
|
-
const target = sfc.__vccOpts || sfc;
|
|
14762
|
-
for (const [key, val] of props2) {
|
|
14763
|
-
target[key] = val;
|
|
14764
|
-
}
|
|
14765
|
-
return target;
|
|
14766
|
-
};
|
|
14767
14769
|
const Btn = /* @__PURE__ */ _export_sfc(_sfc_main$V, [["__scopeId", "data-v-0ca0d3de"]]);
|
|
14768
14770
|
const _hoisted_1$_ = { class: "tool-bar" };
|
|
14769
14771
|
const _hoisted_2$R = { class: "modal-title" };
|
|
@@ -14937,7 +14939,7 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
14937
14939
|
};
|
|
14938
14940
|
}
|
|
14939
14941
|
});
|
|
14940
|
-
const ModalBglForm = /* @__PURE__ */ _export_sfc(_sfc_main$T, [["__scopeId", "data-v-
|
|
14942
|
+
const ModalBglForm = /* @__PURE__ */ _export_sfc(_sfc_main$T, [["__scopeId", "data-v-bd719890"]]);
|
|
14941
14943
|
const _hoisted_1$Y = { class: "dropdown-title" };
|
|
14942
14944
|
const _hoisted_2$P = { class: "dropdown-body" };
|
|
14943
14945
|
const _hoisted_3$I = ["onClick"];
|
|
@@ -14990,7 +14992,7 @@ const _hoisted_3$H = {
|
|
|
14990
14992
|
class: "bagel-input search-wrap"
|
|
14991
14993
|
};
|
|
14992
14994
|
const _hoisted_4$s = ["placeholder"];
|
|
14993
|
-
const _hoisted_5$
|
|
14995
|
+
const _hoisted_5$m = { class: "list-content grid auto-flow-rows align-items-start" };
|
|
14994
14996
|
const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
14995
14997
|
__name: "ListView",
|
|
14996
14998
|
props: {
|
|
@@ -15028,7 +15030,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
15028
15030
|
onClick: _cache[2] || (_cache[2] = ($event) => emit2("add"))
|
|
15029
15031
|
})) : createCommentVNode("", true)
|
|
15030
15032
|
]),
|
|
15031
|
-
createElementVNode("div", _hoisted_5$
|
|
15033
|
+
createElementVNode("div", _hoisted_5$m, [
|
|
15032
15034
|
renderSlot(_ctx.$slots, "default")
|
|
15033
15035
|
])
|
|
15034
15036
|
]);
|
|
@@ -15131,7 +15133,7 @@ const _hoisted_1$U = { class: "comments-wrap" };
|
|
|
15131
15133
|
const _hoisted_2$L = { class: "comment-list" };
|
|
15132
15134
|
const _hoisted_3$F = { class: "comment-top" };
|
|
15133
15135
|
const _hoisted_4$r = { class: "comment-owner" };
|
|
15134
|
-
const _hoisted_5$
|
|
15136
|
+
const _hoisted_5$l = { class: "comment-time" };
|
|
15135
15137
|
const _hoisted_6$h = { class: "comment-actions" };
|
|
15136
15138
|
const _hoisted_7$c = ["innerHTML"];
|
|
15137
15139
|
const _hoisted_8$6 = { class: "new-comment" };
|
|
@@ -15191,7 +15193,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
15191
15193
|
}, [
|
|
15192
15194
|
createElementVNode("div", _hoisted_3$F, [
|
|
15193
15195
|
createElementVNode("div", _hoisted_4$r, toDisplayString(comment.sender.first_name) + " " + toDisplayString(comment.sender.last_name), 1),
|
|
15194
|
-
createElementVNode("div", _hoisted_5$
|
|
15196
|
+
createElementVNode("div", _hoisted_5$l, toDisplayString(comment.updated_at.split("T")[0]), 1),
|
|
15195
15197
|
createElementVNode("div", _hoisted_6$h, [
|
|
15196
15198
|
createVNode(unref(_sfc_main$X), {
|
|
15197
15199
|
size: 1,
|
|
@@ -15444,7 +15446,7 @@ const _hoisted_1$R = { class: "table-list-wrap h-100" };
|
|
|
15444
15446
|
const _hoisted_2$I = { class: "infinite-wrapper" };
|
|
15445
15447
|
const _hoisted_3$E = { class: "row first-row" };
|
|
15446
15448
|
const _hoisted_4$q = ["onClick"];
|
|
15447
|
-
const _hoisted_5$
|
|
15449
|
+
const _hoisted_5$k = { class: "flex" };
|
|
15448
15450
|
const _hoisted_6$g = ["onClick"];
|
|
15449
15451
|
const _hoisted_7$b = { key: 1 };
|
|
15450
15452
|
const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
@@ -15502,7 +15504,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
15502
15504
|
key: field.id,
|
|
15503
15505
|
onClick: ($event) => sort2(field.id)
|
|
15504
15506
|
}, [
|
|
15505
|
-
createElementVNode("div", _hoisted_5$
|
|
15507
|
+
createElementVNode("div", _hoisted_5$k, [
|
|
15506
15508
|
createTextVNode(toDisplayString((field == null ? void 0 : field.label) || (field == null ? void 0 : field.id)) + " ", 1),
|
|
15507
15509
|
createElementVNode("div", {
|
|
15508
15510
|
class: normalizeClass(["list-arrows", { sorted: unref(sortField) === field.id }])
|
|
@@ -15643,7 +15645,7 @@ const _hoisted_1$O = {
|
|
|
15643
15645
|
const _hoisted_2$H = { class: "person-card-icon-wrap" };
|
|
15644
15646
|
const _hoisted_3$D = { class: "person-card-icon" };
|
|
15645
15647
|
const _hoisted_4$p = { class: "person-card-name txt20" };
|
|
15646
|
-
const _hoisted_5$
|
|
15648
|
+
const _hoisted_5$j = { class: "person-card-details-wrap" };
|
|
15647
15649
|
const _hoisted_6$f = {
|
|
15648
15650
|
key: 0,
|
|
15649
15651
|
class: "person-card-details"
|
|
@@ -15709,7 +15711,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
15709
15711
|
createElementVNode("p", _hoisted_3$D, toDisplayString(unref(initials)(_ctx.person.first_name, _ctx.person.last_name)), 1),
|
|
15710
15712
|
createElementVNode("p", _hoisted_4$p, toDisplayString(_ctx.person.first_name) + " " + toDisplayString(_ctx.person.last_name), 1)
|
|
15711
15713
|
]),
|
|
15712
|
-
createElementVNode("div", _hoisted_5$
|
|
15714
|
+
createElementVNode("div", _hoisted_5$j, [
|
|
15713
15715
|
((_a2 = _ctx.person.phone) == null ? void 0 : _a2.length) ? (openBlock(), createElementBlock("div", _hoisted_6$f, [
|
|
15714
15716
|
createVNode(unref(_sfc_main$X), { icon: "phone" }),
|
|
15715
15717
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList(_ctx.person.phone, (phone) => {
|
|
@@ -15749,7 +15751,7 @@ const _hoisted_3$C = {
|
|
|
15749
15751
|
class: "data-row"
|
|
15750
15752
|
};
|
|
15751
15753
|
const _hoisted_4$o = { class: "key" };
|
|
15752
|
-
const _hoisted_5$
|
|
15754
|
+
const _hoisted_5$i = { key: 1 };
|
|
15753
15755
|
const _hoisted_6$e = { class: "key" };
|
|
15754
15756
|
const _hoisted_7$9 = { class: "vlue" };
|
|
15755
15757
|
const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
@@ -15801,7 +15803,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
15801
15803
|
])) : createCommentVNode("", true)
|
|
15802
15804
|
], 64);
|
|
15803
15805
|
}), 128)),
|
|
15804
|
-
!((_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, [
|
|
15805
15807
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList(Object.entries(itemData.value).filter(
|
|
15806
15808
|
([key]) => !keysToIgnore.includes(key)
|
|
15807
15809
|
), ([key, value]) => {
|
|
@@ -15831,7 +15833,7 @@ const _hoisted_4$n = {
|
|
|
15831
15833
|
key: 1,
|
|
15832
15834
|
class: "bar-wrap"
|
|
15833
15835
|
};
|
|
15834
|
-
const _hoisted_5$
|
|
15836
|
+
const _hoisted_5$h = { class: "bar-txt" };
|
|
15835
15837
|
const _hoisted_6$d = { class: "factor" };
|
|
15836
15838
|
const _hoisted_7$8 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("div", { class: "red-bar" }, null, -1));
|
|
15837
15839
|
const _hoisted_8$4 = { class: "bar-lines" };
|
|
@@ -15923,7 +15925,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
15923
15925
|
class: "bar compare",
|
|
15924
15926
|
style: normalizeStyle({ height: loaded.value ? `${percent(item.compareValue)}%` : "0" })
|
|
15925
15927
|
}, null, 4)) : createCommentVNode("", true),
|
|
15926
|
-
createElementVNode("p", _hoisted_5$
|
|
15928
|
+
createElementVNode("p", _hoisted_5$h, toDisplayString(item.title), 1)
|
|
15927
15929
|
]))
|
|
15928
15930
|
]);
|
|
15929
15931
|
}), 128)),
|
|
@@ -17245,7 +17247,7 @@ const _hoisted_3$A = {
|
|
|
17245
17247
|
class: "bglform-contact-confirm"
|
|
17246
17248
|
};
|
|
17247
17249
|
const _hoisted_4$m = { class: "txt14" };
|
|
17248
|
-
const _hoisted_5$
|
|
17250
|
+
const _hoisted_5$g = ["onUpdate:modelValue", "placeholder"];
|
|
17249
17251
|
const _hoisted_6$c = ["onUpdate:modelValue", "placeholder"];
|
|
17250
17252
|
const _hoisted_7$7 = ["onUpdate:modelValue", "placeholder"];
|
|
17251
17253
|
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
@@ -17346,7 +17348,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
17346
17348
|
"onUpdate:modelValue": ($event) => contact.label = $event,
|
|
17347
17349
|
type: "text",
|
|
17348
17350
|
placeholder: (_b = formPlaceholders.value) == null ? void 0 : _b.label
|
|
17349
|
-
}, null, 8, _hoisted_5$
|
|
17351
|
+
}, null, 8, _hoisted_5$g), [
|
|
17350
17352
|
[vModelText, contact.label]
|
|
17351
17353
|
]),
|
|
17352
17354
|
((_c = _ctx.context) == null ? void 0 : _c.id) === "email" ? withDirectives((openBlock(), createElementBlock("input", {
|
|
@@ -17401,7 +17403,7 @@ const _hoisted_3$z = {
|
|
|
17401
17403
|
class: "bglform-contact-confirm"
|
|
17402
17404
|
};
|
|
17403
17405
|
const _hoisted_4$l = { class: "txt14" };
|
|
17404
|
-
const _hoisted_5$
|
|
17406
|
+
const _hoisted_5$f = ["onUpdate:modelValue", "placeholder"];
|
|
17405
17407
|
const _hoisted_6$b = { class: "bglform-contact-address" };
|
|
17406
17408
|
const _hoisted_7$6 = ["onUpdate:modelValue", "placeholder"];
|
|
17407
17409
|
const _hoisted_8$3 = { class: "bglform-contact-address-flex" };
|
|
@@ -17513,7 +17515,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
17513
17515
|
"onUpdate:modelValue": ($event) => address.label = $event,
|
|
17514
17516
|
type: "text",
|
|
17515
17517
|
placeholder: (_b = formPlaceholders.value) == null ? void 0 : _b.label
|
|
17516
|
-
}, null, 8, _hoisted_5$
|
|
17518
|
+
}, null, 8, _hoisted_5$f), [
|
|
17517
17519
|
[vModelText, address.label]
|
|
17518
17520
|
]),
|
|
17519
17521
|
createElementVNode("div", _hoisted_6$b, [
|
|
@@ -17585,7 +17587,7 @@ const _hoisted_3$y = {
|
|
|
17585
17587
|
class: "bglform-contact-confirm"
|
|
17586
17588
|
};
|
|
17587
17589
|
const _hoisted_4$k = { class: "txt14" };
|
|
17588
|
-
const _hoisted_5$
|
|
17590
|
+
const _hoisted_5$e = ["onUpdate:modelValue", "placeholder"];
|
|
17589
17591
|
const _hoisted_6$a = { class: "bglform-contact-address" };
|
|
17590
17592
|
const _hoisted_7$5 = ["onUpdate:modelValue", "placeholder"];
|
|
17591
17593
|
const _hoisted_8$2 = { class: "bglform-contact-address-flex" };
|
|
@@ -17696,7 +17698,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
17696
17698
|
"onUpdate:modelValue": ($event) => bank_account.label = $event,
|
|
17697
17699
|
type: "text",
|
|
17698
17700
|
placeholder: (_b = formPlaceholders.value) == null ? void 0 : _b.label
|
|
17699
|
-
}, null, 8, _hoisted_5$
|
|
17701
|
+
}, null, 8, _hoisted_5$e), [
|
|
17700
17702
|
[vModelText, bank_account.label]
|
|
17701
17703
|
]),
|
|
17702
17704
|
createElementVNode("div", _hoisted_6$a, [
|
|
@@ -17842,7 +17844,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
17842
17844
|
}
|
|
17843
17845
|
});
|
|
17844
17846
|
const MiscFieldsBtns = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-a096417d"]]);
|
|
17845
|
-
const _withScopeId$1 = (n) => (pushScopeId("data-v-
|
|
17847
|
+
const _withScopeId$1 = (n) => (pushScopeId("data-v-dee6bdf5"), n = n(), popScopeId(), n);
|
|
17846
17848
|
const _hoisted_1$G = ["title"];
|
|
17847
17849
|
const _hoisted_2$B = { class: "switch" };
|
|
17848
17850
|
const _hoisted_3$x = ["id"];
|
|
@@ -17889,7 +17891,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
17889
17891
|
};
|
|
17890
17892
|
}
|
|
17891
17893
|
});
|
|
17892
|
-
const Toggle = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-
|
|
17894
|
+
const Toggle = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-dee6bdf5"]]);
|
|
17893
17895
|
const _hoisted_1$F = { class: "files-wrapper flex" };
|
|
17894
17896
|
const _hoisted_2$A = {
|
|
17895
17897
|
key: 0,
|
|
@@ -17897,7 +17899,7 @@ const _hoisted_2$A = {
|
|
|
17897
17899
|
};
|
|
17898
17900
|
const _hoisted_3$w = { class: "uploading-wrap" };
|
|
17899
17901
|
const _hoisted_4$i = { class: "load-file-bar" };
|
|
17900
|
-
const _hoisted_5$
|
|
17902
|
+
const _hoisted_5$d = ["src", "alt"];
|
|
17901
17903
|
const _hoisted_6$9 = { class: "flex" };
|
|
17902
17904
|
const _hoisted_7$4 = {
|
|
17903
17905
|
key: 0,
|
|
@@ -18081,7 +18083,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
18081
18083
|
src: item.dataUrl,
|
|
18082
18084
|
alt: item.name,
|
|
18083
18085
|
style: { "margin-inline-end": "10px" }
|
|
18084
|
-
}, null, 8, _hoisted_5$
|
|
18086
|
+
}, null, 8, _hoisted_5$d)) : createCommentVNode("", true),
|
|
18085
18087
|
createElementVNode("p", null, toDisplayString(item.name), 1),
|
|
18086
18088
|
createElementVNode("div", _hoisted_6$9, [
|
|
18087
18089
|
createElementVNode("div", {
|
|
@@ -18126,7 +18128,7 @@ const _hoisted_1$E = {
|
|
|
18126
18128
|
const _hoisted_2$z = { class: "person-card-icon-wrap" };
|
|
18127
18129
|
const _hoisted_3$v = { class: "person-card-icon" };
|
|
18128
18130
|
const _hoisted_4$h = { class: "person-card-name txt20" };
|
|
18129
|
-
const _hoisted_5$
|
|
18131
|
+
const _hoisted_5$c = { class: "person-card-details-wrap" };
|
|
18130
18132
|
const _hoisted_6$8 = {
|
|
18131
18133
|
key: 0,
|
|
18132
18134
|
class: "person-card-details"
|
|
@@ -18194,7 +18196,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
18194
18196
|
createElementVNode("p", _hoisted_3$v, toDisplayString(unref(initials)(person.value.first_name, person.value.last_name)), 1),
|
|
18195
18197
|
createElementVNode("p", _hoisted_4$h, toDisplayString(person.value.first_name) + " " + toDisplayString(person.value.last_name), 1)
|
|
18196
18198
|
]),
|
|
18197
|
-
createElementVNode("div", _hoisted_5$
|
|
18199
|
+
createElementVNode("div", _hoisted_5$c, [
|
|
18198
18200
|
((_a2 = person.value.phone) == null ? void 0 : _a2.length) ? (openBlock(), createElementBlock("div", _hoisted_6$8, [
|
|
18199
18201
|
createVNode(unref(_sfc_main$X), { icon: "phone" }),
|
|
18200
18202
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList(person.value.phone, (phone) => {
|
|
@@ -18381,7 +18383,7 @@ const _hoisted_1$C = { class: "bagel-input" };
|
|
|
18381
18383
|
const _hoisted_2$y = ["for"];
|
|
18382
18384
|
const _hoisted_3$u = ["checked"];
|
|
18383
18385
|
const _hoisted_4$g = ["name", "type", "value"];
|
|
18384
|
-
const _hoisted_5$
|
|
18386
|
+
const _hoisted_5$b = ["name", "type", "value"];
|
|
18385
18387
|
const _hoisted_6$7 = ["name", "type", "value"];
|
|
18386
18388
|
const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
18387
18389
|
__name: "PlainInputField",
|
|
@@ -18447,7 +18449,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
18447
18449
|
value: _ctx.modelValue,
|
|
18448
18450
|
class: "ctl",
|
|
18449
18451
|
onInput: handleInput
|
|
18450
|
-
}, null, 40, _hoisted_5$
|
|
18452
|
+
}, null, 40, _hoisted_5$b)) : _ctx.type === "textarea" ? (openBlock(), createElementBlock("textarea", {
|
|
18451
18453
|
key: 3,
|
|
18452
18454
|
ref_key: "el",
|
|
18453
18455
|
ref: el2,
|
|
@@ -18467,32 +18469,38 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
18467
18469
|
const _hoisted_1$B = { key: 2 };
|
|
18468
18470
|
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
18469
18471
|
__name: "BglForm",
|
|
18470
|
-
props: {
|
|
18471
|
-
modelValue: {},
|
|
18472
|
+
props: /* @__PURE__ */ mergeModels({
|
|
18472
18473
|
schema: {},
|
|
18473
18474
|
onDelete: { type: Function },
|
|
18474
18475
|
onSubmit: { type: Function }
|
|
18475
|
-
},
|
|
18476
|
-
|
|
18477
|
-
|
|
18476
|
+
}, {
|
|
18477
|
+
"modelValue": { default: {} },
|
|
18478
|
+
"modelModifiers": {}
|
|
18479
|
+
}),
|
|
18480
|
+
emits: /* @__PURE__ */ mergeModels(["submit"], ["update:modelValue"]),
|
|
18481
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
18478
18482
|
const { showModal } = useModal();
|
|
18483
|
+
const data2 = useModel(__props, "modelValue");
|
|
18479
18484
|
const props2 = __props;
|
|
18485
|
+
const form = ref();
|
|
18486
|
+
const validateForm = () => {
|
|
18487
|
+
var _a2, _b;
|
|
18488
|
+
return (_b = (_a2 = form.value) == null ? void 0 : _a2.reportValidity) == null ? void 0 : _b.call(_a2);
|
|
18489
|
+
};
|
|
18490
|
+
const updateModelValue = (val, fieldID) => {
|
|
18491
|
+
if (!fieldID || !data2.value)
|
|
18492
|
+
return;
|
|
18493
|
+
data2.value[fieldID] = val;
|
|
18494
|
+
};
|
|
18495
|
+
__expose({ validateForm });
|
|
18496
|
+
const clearForm = () => Object.assign(data2, {});
|
|
18480
18497
|
const emits = __emit;
|
|
18481
|
-
const handleEmit = (val) => emits("update:modelValue", val);
|
|
18482
|
-
let data2 = ref({
|
|
18483
|
-
...props2.modelValue
|
|
18484
|
-
});
|
|
18485
18498
|
const runSubmit = () => {
|
|
18486
|
-
|
|
18499
|
+
validateForm();
|
|
18500
|
+
emits("submit", data2);
|
|
18487
18501
|
clearForm();
|
|
18488
18502
|
};
|
|
18489
|
-
const clearForm = () => data2.value = {};
|
|
18490
18503
|
const i18nT = (val) => val;
|
|
18491
|
-
watch(
|
|
18492
|
-
() => data2.value,
|
|
18493
|
-
() => handleEmit,
|
|
18494
|
-
{ immediate: true }
|
|
18495
|
-
);
|
|
18496
18504
|
const runDelete = () => {
|
|
18497
18505
|
showModal(
|
|
18498
18506
|
{
|
|
@@ -18516,17 +18524,19 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
18516
18524
|
return (_ctx, _cache) => {
|
|
18517
18525
|
var _a2;
|
|
18518
18526
|
return openBlock(), createElementBlock("form", {
|
|
18527
|
+
ref_key: "form",
|
|
18528
|
+
ref: form,
|
|
18519
18529
|
onSubmit: withModifiers(runSubmit, ["prevent"])
|
|
18520
18530
|
}, [
|
|
18521
18531
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList(_ctx.schema, (field, i3) => {
|
|
18522
18532
|
return openBlock(), createBlock(unref(_sfc_main$q), {
|
|
18523
18533
|
key: field.id || `${i3}p`,
|
|
18524
18534
|
field,
|
|
18525
|
-
modelValue:
|
|
18526
|
-
"onUpdate:modelValue": ($event) => field
|
|
18535
|
+
modelValue: data2.value,
|
|
18536
|
+
"onUpdate:modelValue": ($event) => updateModelValue($event, (field == null ? void 0 : field.id) || "")
|
|
18527
18537
|
}, null, 8, ["field", "modelValue", "onUpdate:modelValue"]);
|
|
18528
18538
|
}), 128)),
|
|
18529
|
-
((_a2 =
|
|
18539
|
+
((_a2 = data2.value) == null ? void 0 : _a2.id) && _ctx.onDelete ? (openBlock(), createBlock(unref(Btn), {
|
|
18530
18540
|
key: 0,
|
|
18531
18541
|
class: "del-top",
|
|
18532
18542
|
onClick: runDelete,
|
|
@@ -18544,7 +18554,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
18544
18554
|
})) : (openBlock(), createElementBlock("div", _hoisted_1$B, [
|
|
18545
18555
|
renderSlot(_ctx.$slots, "submit")
|
|
18546
18556
|
]))
|
|
18547
|
-
],
|
|
18557
|
+
], 544);
|
|
18548
18558
|
};
|
|
18549
18559
|
}
|
|
18550
18560
|
});
|
|
@@ -18557,11 +18567,23 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
18557
18567
|
emits: ["update:modelValue"],
|
|
18558
18568
|
setup(__props, { emit: __emit }) {
|
|
18559
18569
|
const props2 = __props;
|
|
18570
|
+
const vIf = computed(() => {
|
|
18571
|
+
if (props2.field["v-if"] === void 0)
|
|
18572
|
+
return true;
|
|
18573
|
+
if (typeof props2.field["v-if"] === "boolean")
|
|
18574
|
+
return props2.field["v-if"];
|
|
18575
|
+
if (typeof props2.field["v-if"] === "string")
|
|
18576
|
+
return !!props2.modelValue[props2.field["v-if"]];
|
|
18577
|
+
if (typeof props2.field["v-if"] === "function")
|
|
18578
|
+
return props2.field["v-if"](props2.modelValue[props2.field.id || ""], props2.modelValue);
|
|
18579
|
+
return true;
|
|
18580
|
+
});
|
|
18560
18581
|
const emits = __emit;
|
|
18561
18582
|
return (_ctx, _cache) => {
|
|
18562
18583
|
var _a2;
|
|
18563
18584
|
const _component_BglField = resolveComponent("BglField", true);
|
|
18564
|
-
return openBlock(), createBlock(resolveDynamicComponent(_ctx.field.$el || "div"), mergeProps({
|
|
18585
|
+
return vIf.value ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.field.$el || "div"), mergeProps({
|
|
18586
|
+
key: 0,
|
|
18565
18587
|
required: _ctx.field.required
|
|
18566
18588
|
}, unref(bindAttrs)(((_a2 = _ctx.field) == null ? void 0 : _a2.attrs) || {}, props2.modelValue[_ctx.field.id || ""], props2.modelValue), {
|
|
18567
18589
|
label: _ctx.field.label,
|
|
@@ -18581,66 +18603,57 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
18581
18603
|
}), 128))
|
|
18582
18604
|
]),
|
|
18583
18605
|
_: 1
|
|
18584
|
-
}, 16, ["required", "label", "id", "placeholder", "modelValue"]);
|
|
18606
|
+
}, 16, ["required", "label", "id", "placeholder", "modelValue"])) : createCommentVNode("", true);
|
|
18585
18607
|
};
|
|
18586
18608
|
}
|
|
18587
18609
|
});
|
|
18588
|
-
const _withScopeId = (n) => (pushScopeId("data-v-
|
|
18610
|
+
const _withScopeId = (n) => (pushScopeId("data-v-0cde7fe3"), n = n(), popScopeId(), n);
|
|
18589
18611
|
const _hoisted_1$A = ["title"];
|
|
18590
|
-
const _hoisted_2$x = ["
|
|
18591
|
-
const _hoisted_3$t =
|
|
18592
|
-
|
|
18593
|
-
|
|
18612
|
+
const _hoisted_2$x = ["id"];
|
|
18613
|
+
const _hoisted_3$t = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("svg", {
|
|
18614
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
18615
|
+
height: "24",
|
|
18616
|
+
viewBox: "0 -960 960 960",
|
|
18617
|
+
width: "24"
|
|
18618
|
+
}, [
|
|
18619
|
+
/* @__PURE__ */ createElementVNode("path", { d: "M382-240 154-468l57-57 171 171 367-367 57 57-424 424Z" })
|
|
18620
|
+
], -1));
|
|
18621
|
+
const _hoisted_4$f = ["for"];
|
|
18594
18622
|
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
18595
18623
|
__name: "CheckInput",
|
|
18596
|
-
props: {
|
|
18597
|
-
|
|
18598
|
-
|
|
18624
|
+
props: /* @__PURE__ */ mergeModels({
|
|
18625
|
+
label: {},
|
|
18626
|
+
id: { default: Math.random().toString(36).substring(7) },
|
|
18627
|
+
title: {},
|
|
18599
18628
|
editMode: { type: Boolean, default: true },
|
|
18600
18629
|
small: { type: Boolean }
|
|
18601
|
-
},
|
|
18630
|
+
}, {
|
|
18631
|
+
"modelValue": { type: Boolean, ...{ default: false } },
|
|
18632
|
+
"modelModifiers": {}
|
|
18633
|
+
}),
|
|
18602
18634
|
emits: ["update:modelValue"],
|
|
18603
|
-
setup(__props
|
|
18604
|
-
const
|
|
18605
|
-
const props2 = __props;
|
|
18606
|
-
const inputVal = ref(false);
|
|
18607
|
-
watch(inputVal, (newVal) => {
|
|
18608
|
-
if (newVal === void 0)
|
|
18609
|
-
return;
|
|
18610
|
-
emits("update:modelValue", newVal);
|
|
18611
|
-
});
|
|
18612
|
-
watch(
|
|
18613
|
-
() => props2.modelValue,
|
|
18614
|
-
(newVal) => {
|
|
18615
|
-
if (inputVal.value !== newVal)
|
|
18616
|
-
inputVal.value = newVal;
|
|
18617
|
-
}
|
|
18618
|
-
);
|
|
18619
|
-
onMounted(() => inputVal.value = !!props2.modelValue);
|
|
18635
|
+
setup(__props) {
|
|
18636
|
+
const inputVal = useModel(__props, "modelValue");
|
|
18620
18637
|
return (_ctx, _cache) => {
|
|
18621
18638
|
return openBlock(), createElementBlock("div", {
|
|
18622
|
-
class: normalizeClass(["bagel-input checkbox", { small: _ctx.small, "no-edit": !_ctx.editMode }]),
|
|
18623
|
-
title: _ctx.
|
|
18639
|
+
class: normalizeClass(["bagel-input bgl-checkbox", { small: _ctx.small, "no-edit": !_ctx.editMode }]),
|
|
18640
|
+
title: _ctx.title
|
|
18624
18641
|
}, [
|
|
18625
|
-
createElementVNode("
|
|
18626
|
-
|
|
18627
|
-
|
|
18628
|
-
|
|
18629
|
-
|
|
18630
|
-
|
|
18631
|
-
|
|
18632
|
-
|
|
18633
|
-
|
|
18634
|
-
|
|
18635
|
-
[vModelCheckbox, inputVal.value]
|
|
18636
|
-
]),
|
|
18637
|
-
_hoisted_5$b
|
|
18638
|
-
])
|
|
18642
|
+
withDirectives(createElementVNode("input", {
|
|
18643
|
+
id: _ctx.id,
|
|
18644
|
+
type: "checkbox",
|
|
18645
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputVal.value = $event),
|
|
18646
|
+
class: normalizeClass({ "no-edit": !_ctx.editMode })
|
|
18647
|
+
}, null, 10, _hoisted_2$x), [
|
|
18648
|
+
[vModelCheckbox, inputVal.value]
|
|
18649
|
+
]),
|
|
18650
|
+
_hoisted_3$t,
|
|
18651
|
+
createElementVNode("label", { for: _ctx.id }, toDisplayString(_ctx.label), 9, _hoisted_4$f)
|
|
18639
18652
|
], 10, _hoisted_1$A);
|
|
18640
18653
|
};
|
|
18641
18654
|
}
|
|
18642
18655
|
});
|
|
18643
|
-
const CheckInput = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-
|
|
18656
|
+
const CheckInput = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-0cde7fe3"]]);
|
|
18644
18657
|
const _hoisted_1$z = ["title"];
|
|
18645
18658
|
const _hoisted_2$w = { key: 0 };
|
|
18646
18659
|
const _hoisted_3$s = { class: "flex gap-3" };
|
|
@@ -32193,7 +32206,6 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
32193
32206
|
files.value.push(file);
|
|
32194
32207
|
} else
|
|
32195
32208
|
files.value.splice(0, 1, file);
|
|
32196
|
-
console.log(files.value);
|
|
32197
32209
|
fileQueue.value.splice(i3, 1);
|
|
32198
32210
|
});
|
|
32199
32211
|
};
|
|
@@ -32216,7 +32228,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
32216
32228
|
else
|
|
32217
32229
|
isDragOver.value = false;
|
|
32218
32230
|
};
|
|
32219
|
-
const
|
|
32231
|
+
const dragover = (e3) => {
|
|
32220
32232
|
preventDefault(e3);
|
|
32221
32233
|
if (e3.dataTransfer)
|
|
32222
32234
|
isDragOver.value = true;
|
|
@@ -32235,7 +32247,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
32235
32247
|
createElementVNode("label", null, toDisplayString(_ctx.label), 1),
|
|
32236
32248
|
createElementVNode("div", {
|
|
32237
32249
|
onClick: browse,
|
|
32238
|
-
onDragover:
|
|
32250
|
+
onDragover: dragover,
|
|
32239
32251
|
onDrop: drop3,
|
|
32240
32252
|
onDragleave: dragleave,
|
|
32241
32253
|
class: normalizeClass(["fileUploadWrap", { fileDropZone: !files.value.length, dragover: unref(isDragOver) }])
|
|
@@ -32264,7 +32276,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
32264
32276
|
};
|
|
32265
32277
|
}
|
|
32266
32278
|
});
|
|
32267
|
-
const FileUpload = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-
|
|
32279
|
+
const FileUpload = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-c44f8c0d"]]);
|
|
32268
32280
|
function _isPlaceholder(a3) {
|
|
32269
32281
|
return a3 != null && typeof a3 === "object" && a3["@@functional/placeholder"] === true;
|
|
32270
32282
|
}
|
|
@@ -38799,7 +38811,7 @@ export {
|
|
|
38799
38811
|
ModalForm,
|
|
38800
38812
|
ModalPlugin,
|
|
38801
38813
|
MsgTemplate,
|
|
38802
|
-
|
|
38814
|
+
NavBar,
|
|
38803
38815
|
_sfc_main$N as PageTitle,
|
|
38804
38816
|
Password,
|
|
38805
38817
|
PasswordInput,
|