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