@bagelink/vue 0.0.138 → 0.0.142
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/FormSchema.vue.d.ts +2 -2
- package/dist/components/FormSchema.vue.d.ts.map +1 -1
- package/dist/components/Modal.vue.d.ts.map +1 -1
- package/dist/components/ModalForm.vue.d.ts.map +1 -1
- package/dist/components/formkit/AddressArray.vue.d.ts +15 -11
- package/dist/components/formkit/AddressArray.vue.d.ts.map +1 -1
- package/dist/components/formkit/BankDetailsArray.vue.d.ts +17 -13
- package/dist/components/formkit/BankDetailsArray.vue.d.ts.map +1 -1
- package/dist/components/formkit/ContactArrayFormKit.vue.d.ts +13 -9
- package/dist/components/formkit/ContactArrayFormKit.vue.d.ts.map +1 -1
- package/dist/components/formkit/FileUploader.vue.d.ts +4 -4
- package/dist/components/formkit/FileUploader.vue.d.ts.map +1 -1
- package/dist/index.cjs +99 -59
- package/dist/index.mjs +100 -60
- package/dist/plugins/modal.d.ts.map +1 -1
- package/dist/style.css +37 -37
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/components/FormSchema.vue +1 -1
- package/src/components/Modal.vue +21 -8
- package/src/components/ModalForm.vue +23 -8
- package/src/components/formkit/AddressArray.vue +25 -22
- package/src/components/formkit/BankDetailsArray.vue +29 -24
- package/src/components/formkit/ContactArrayFormKit.vue +22 -16
- package/src/components/formkit/FileUploader.vue +2 -2
- package/src/plugins/modal.ts +12 -10
- package/src/utils/index.ts +6 -0
package/dist/index.cjs
CHANGED
|
@@ -2269,6 +2269,9 @@ const useModal = () => {
|
|
|
2269
2269
|
const ModalPlugin = {
|
|
2270
2270
|
install: (app) => {
|
|
2271
2271
|
const modalStack = vue.ref([]);
|
|
2272
|
+
const hideModal = (index2) => {
|
|
2273
|
+
modalStack.value.splice(index2, 1);
|
|
2274
|
+
};
|
|
2272
2275
|
const showModal = (isForm, options, slots = {}) => {
|
|
2273
2276
|
modalStack.value.push({
|
|
2274
2277
|
modalOptions: options,
|
|
@@ -2276,9 +2279,6 @@ const ModalPlugin = {
|
|
|
2276
2279
|
componentSlots: slots
|
|
2277
2280
|
});
|
|
2278
2281
|
};
|
|
2279
|
-
const hideModal = (index2) => {
|
|
2280
|
-
modalStack.value.splice(index2, 1);
|
|
2281
|
-
};
|
|
2282
2282
|
app.provide(ModalSymbol, {
|
|
2283
2283
|
modalForm: (options, slots) => showModal(true, options, slots),
|
|
2284
2284
|
showModal: (options, slots) => showModal(false, options, slots),
|
|
@@ -2288,7 +2288,7 @@ const ModalPlugin = {
|
|
|
2288
2288
|
const ModalComponent = vue.defineComponent({
|
|
2289
2289
|
data() {
|
|
2290
2290
|
return {
|
|
2291
|
-
modalStack
|
|
2291
|
+
modalStack: modalStack.value
|
|
2292
2292
|
};
|
|
2293
2293
|
},
|
|
2294
2294
|
render() {
|
|
@@ -2364,6 +2364,11 @@ const useFormkit = () => {
|
|
|
2364
2364
|
return formkit;
|
|
2365
2365
|
};
|
|
2366
2366
|
const initials = (...strArr) => strArr.map((str) => str == null ? void 0 : str.charAt(0)).join("");
|
|
2367
|
+
function useEscape(event, closeModel) {
|
|
2368
|
+
if (event.key === "Escape") {
|
|
2369
|
+
closeModel();
|
|
2370
|
+
}
|
|
2371
|
+
}
|
|
2367
2372
|
const _hoisted_1$V = { ref: "el" };
|
|
2368
2373
|
const _sfc_main$P = /* @__PURE__ */ vue.defineComponent({
|
|
2369
2374
|
__name: "LangText",
|
|
@@ -14734,11 +14739,6 @@ const _sfc_main$K = /* @__PURE__ */ vue.defineComponent({
|
|
|
14734
14739
|
emits: ["update:isModalVisible"],
|
|
14735
14740
|
setup(__props, { emit: __emit }) {
|
|
14736
14741
|
let isActive = vue.ref(false);
|
|
14737
|
-
vue.onMounted(() => {
|
|
14738
|
-
setTimeout(() => {
|
|
14739
|
-
isActive.value = true;
|
|
14740
|
-
}, 1);
|
|
14741
|
-
});
|
|
14742
14742
|
const emit2 = __emit;
|
|
14743
14743
|
const closeModal = () => {
|
|
14744
14744
|
isActive.value = false;
|
|
@@ -14746,6 +14746,22 @@ const _sfc_main$K = /* @__PURE__ */ vue.defineComponent({
|
|
|
14746
14746
|
emit2("update:isModalVisible", false);
|
|
14747
14747
|
}, 200);
|
|
14748
14748
|
};
|
|
14749
|
+
const escapeKeyClose = (e) => useEscape(e, () => closeModal());
|
|
14750
|
+
vue.onMounted(() => {
|
|
14751
|
+
setTimeout(() => {
|
|
14752
|
+
isActive.value = true;
|
|
14753
|
+
}, 1);
|
|
14754
|
+
document.addEventListener(
|
|
14755
|
+
"keydown",
|
|
14756
|
+
escapeKeyClose
|
|
14757
|
+
);
|
|
14758
|
+
});
|
|
14759
|
+
vue.onUnmounted(() => {
|
|
14760
|
+
document.removeEventListener(
|
|
14761
|
+
"keydown",
|
|
14762
|
+
escapeKeyClose
|
|
14763
|
+
);
|
|
14764
|
+
});
|
|
14749
14765
|
return (_ctx, _cache) => {
|
|
14750
14766
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
14751
14767
|
class: vue.normalizeClass(["bg-dark", { "is-side": _ctx.side, "is-active": vue.unref(isActive) }]),
|
|
@@ -15130,11 +15146,6 @@ const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
|
|
|
15130
15146
|
return props2.schema;
|
|
15131
15147
|
});
|
|
15132
15148
|
let isActive = vue.ref(false);
|
|
15133
|
-
vue.onMounted(() => {
|
|
15134
|
-
setTimeout(() => {
|
|
15135
|
-
isActive.value = true;
|
|
15136
|
-
}, 1);
|
|
15137
|
-
});
|
|
15138
15149
|
const emit2 = __emit;
|
|
15139
15150
|
const handleEmit = (value) => {
|
|
15140
15151
|
emit2("update:modelValue", value);
|
|
@@ -15159,6 +15170,22 @@ const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
|
|
|
15159
15170
|
(_b = props2.onDelete) == null ? void 0 : _b.call(props2, (_a = props2.modelValue) == null ? void 0 : _a.id);
|
|
15160
15171
|
closeModal();
|
|
15161
15172
|
};
|
|
15173
|
+
const escapeKeyClose = (e) => useEscape(e, () => closeModal());
|
|
15174
|
+
vue.onMounted(() => {
|
|
15175
|
+
setTimeout(() => {
|
|
15176
|
+
isActive.value = true;
|
|
15177
|
+
}, 1);
|
|
15178
|
+
document.addEventListener(
|
|
15179
|
+
"keydown",
|
|
15180
|
+
escapeKeyClose
|
|
15181
|
+
);
|
|
15182
|
+
});
|
|
15183
|
+
vue.onUnmounted(() => {
|
|
15184
|
+
document.removeEventListener(
|
|
15185
|
+
"keydown",
|
|
15186
|
+
escapeKeyClose
|
|
15187
|
+
);
|
|
15188
|
+
});
|
|
15162
15189
|
return (_ctx, _cache) => {
|
|
15163
15190
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
15164
15191
|
class: vue.normalizeClass(["bg-dark", { "is-side": _ctx.side, "is-active": vue.unref(isActive) }]),
|
|
@@ -15192,7 +15219,7 @@ const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
|
|
|
15192
15219
|
};
|
|
15193
15220
|
}
|
|
15194
15221
|
});
|
|
15195
|
-
const ModalForm = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-
|
|
15222
|
+
const ModalForm = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-ca1b8501"]]);
|
|
15196
15223
|
const _hoisted_1$J = {
|
|
15197
15224
|
key: 0,
|
|
15198
15225
|
class: "data"
|
|
@@ -17050,6 +17077,10 @@ const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
|
|
|
17050
17077
|
setup(__props) {
|
|
17051
17078
|
const bagel = useBagel();
|
|
17052
17079
|
const props2 = __props;
|
|
17080
|
+
const formPlaceholders = vue.computed(() => {
|
|
17081
|
+
var _a, _b;
|
|
17082
|
+
return (_b = (_a = props2.context) == null ? void 0 : _a.attrs) == null ? void 0 : _b.formPlaceholders;
|
|
17083
|
+
});
|
|
17053
17084
|
let val = vue.ref([]);
|
|
17054
17085
|
let deleteCandidate = vue.ref(-1);
|
|
17055
17086
|
const del2 = (i2) => {
|
|
@@ -17092,22 +17123,22 @@ const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
|
|
|
17092
17123
|
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$C, [
|
|
17093
17124
|
vue.createElementVNode("div", _hoisted_2$x, [
|
|
17094
17125
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(val), (contact, i2) => {
|
|
17095
|
-
var _a, _b, _c, _d, _e, _f
|
|
17126
|
+
var _a, _b, _c, _d, _e, _f;
|
|
17096
17127
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
17097
17128
|
class: "bglform-contact mb-2",
|
|
17098
17129
|
key: i2
|
|
17099
17130
|
}, [
|
|
17100
17131
|
vue.unref(deleteCandidate) === i2 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$u, [
|
|
17101
|
-
vue.createElementVNode("p", _hoisted_4$g, vue.toDisplayString((
|
|
17132
|
+
vue.createElementVNode("p", _hoisted_4$g, vue.toDisplayString((_a = formPlaceholders.value) == null ? void 0 : _a.sure), 1),
|
|
17102
17133
|
vue.createVNode(vue.unref(Btn), {
|
|
17103
17134
|
thin: "",
|
|
17104
17135
|
color: "red",
|
|
17105
17136
|
onClick: ($event) => deleteContact(contact.id)
|
|
17106
17137
|
}, {
|
|
17107
17138
|
default: vue.withCtx(() => {
|
|
17108
|
-
var _a2
|
|
17139
|
+
var _a2;
|
|
17109
17140
|
return [
|
|
17110
|
-
vue.createTextVNode(vue.toDisplayString((
|
|
17141
|
+
vue.createTextVNode(vue.toDisplayString((_a2 = formPlaceholders.value) == null ? void 0 : _a2.delete), 1)
|
|
17111
17142
|
];
|
|
17112
17143
|
}),
|
|
17113
17144
|
_: 2
|
|
@@ -17117,9 +17148,9 @@ const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
|
|
|
17117
17148
|
onClick: _cache[0] || (_cache[0] = ($event) => vue.isRef(deleteCandidate) ? deleteCandidate.value = -1 : deleteCandidate = -1)
|
|
17118
17149
|
}, {
|
|
17119
17150
|
default: vue.withCtx(() => {
|
|
17120
|
-
var _a2
|
|
17151
|
+
var _a2;
|
|
17121
17152
|
return [
|
|
17122
|
-
vue.createTextVNode(vue.toDisplayString((
|
|
17153
|
+
vue.createTextVNode(vue.toDisplayString((_a2 = formPlaceholders.value) == null ? void 0 : _a2.cancel), 1)
|
|
17123
17154
|
];
|
|
17124
17155
|
}),
|
|
17125
17156
|
_: 1
|
|
@@ -17133,22 +17164,22 @@ const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
|
|
|
17133
17164
|
class: "bglform-contact-label",
|
|
17134
17165
|
"onUpdate:modelValue": ($event) => contact.label = $event,
|
|
17135
17166
|
type: "text",
|
|
17136
|
-
placeholder: (
|
|
17167
|
+
placeholder: (_b = formPlaceholders.value) == null ? void 0 : _b.label
|
|
17137
17168
|
}, null, 8, _hoisted_5$e), [
|
|
17138
17169
|
[vue.vModelText, contact.label]
|
|
17139
17170
|
]),
|
|
17140
|
-
((
|
|
17171
|
+
((_c = _ctx.context) == null ? void 0 : _c.id) === "email" ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("input", {
|
|
17141
17172
|
key: 1,
|
|
17142
17173
|
"onUpdate:modelValue": ($event) => contact.email = $event,
|
|
17143
|
-
placeholder: (
|
|
17174
|
+
placeholder: (_d = formPlaceholders.value) == null ? void 0 : _d.email,
|
|
17144
17175
|
type: "email"
|
|
17145
17176
|
}, null, 8, _hoisted_6$b)), [
|
|
17146
17177
|
[vue.vModelText, contact.email]
|
|
17147
17178
|
]) : vue.createCommentVNode("", true),
|
|
17148
|
-
((
|
|
17179
|
+
((_e = _ctx.context) == null ? void 0 : _e.id) === "phone" ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("input", {
|
|
17149
17180
|
key: 2,
|
|
17150
17181
|
"onUpdate:modelValue": ($event) => contact.phone = $event,
|
|
17151
|
-
placeholder: (
|
|
17182
|
+
placeholder: (_f = formPlaceholders.value) == null ? void 0 : _f.phone,
|
|
17152
17183
|
type: "tel"
|
|
17153
17184
|
}, null, 8, _hoisted_7$7)), [
|
|
17154
17185
|
[vue.vModelText, contact.phone]
|
|
@@ -17170,9 +17201,9 @@ const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
|
|
|
17170
17201
|
onClick: _cache[1] || (_cache[1] = ($event) => vue.unref(val).push({}))
|
|
17171
17202
|
}, {
|
|
17172
17203
|
default: vue.withCtx(() => {
|
|
17173
|
-
var _a, _b
|
|
17204
|
+
var _a, _b;
|
|
17174
17205
|
return [
|
|
17175
|
-
vue.createTextVNode(vue.toDisplayString((
|
|
17206
|
+
vue.createTextVNode(vue.toDisplayString((_a = formPlaceholders.value) == null ? void 0 : _a.add) + " " + vue.toDisplayString((_b = _ctx.context) == null ? void 0 : _b.label), 1)
|
|
17176
17207
|
];
|
|
17177
17208
|
}),
|
|
17178
17209
|
_: 1
|
|
@@ -17182,7 +17213,7 @@ const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
|
|
|
17182
17213
|
};
|
|
17183
17214
|
}
|
|
17184
17215
|
});
|
|
17185
|
-
const ContactArrayFormKit = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-
|
|
17216
|
+
const ContactArrayFormKit = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-0533667e"]]);
|
|
17186
17217
|
const _hoisted_1$B = { class: "bagel-input" };
|
|
17187
17218
|
const _hoisted_2$w = { class: "mt-1" };
|
|
17188
17219
|
const _hoisted_3$t = {
|
|
@@ -17206,6 +17237,10 @@ const _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
|
|
|
17206
17237
|
setup(__props) {
|
|
17207
17238
|
const bagel = useBagel();
|
|
17208
17239
|
const props2 = __props;
|
|
17240
|
+
const formPlaceholders = vue.computed(() => {
|
|
17241
|
+
var _a, _b;
|
|
17242
|
+
return (_b = (_a = props2.context) == null ? void 0 : _a.attrs) == null ? void 0 : _b.formPlaceholders;
|
|
17243
|
+
});
|
|
17209
17244
|
let val = vue.ref([]);
|
|
17210
17245
|
const addNew = () => {
|
|
17211
17246
|
if (!val.value)
|
|
@@ -17254,22 +17289,22 @@ const _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
|
|
|
17254
17289
|
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$B, [
|
|
17255
17290
|
vue.createElementVNode("div", _hoisted_2$w, [
|
|
17256
17291
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(val), (address, i2) => {
|
|
17257
|
-
var _a, _b, _c, _d, _e, _f
|
|
17292
|
+
var _a, _b, _c, _d, _e, _f;
|
|
17258
17293
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
17259
17294
|
class: "bglform-contact mb-3",
|
|
17260
17295
|
key: i2
|
|
17261
17296
|
}, [
|
|
17262
17297
|
vue.unref(deleteCandidate) === i2 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$t, [
|
|
17263
|
-
vue.createElementVNode("p", _hoisted_4$f, vue.toDisplayString((
|
|
17298
|
+
vue.createElementVNode("p", _hoisted_4$f, vue.toDisplayString((_a = formPlaceholders.value) == null ? void 0 : _a.sure), 1),
|
|
17264
17299
|
vue.createVNode(vue.unref(Btn), {
|
|
17265
17300
|
thin: "",
|
|
17266
17301
|
color: "red",
|
|
17267
17302
|
onClick: ($event) => deleteContact(address.id)
|
|
17268
17303
|
}, {
|
|
17269
17304
|
default: vue.withCtx(() => {
|
|
17270
|
-
var _a2
|
|
17305
|
+
var _a2;
|
|
17271
17306
|
return [
|
|
17272
|
-
vue.createTextVNode(vue.toDisplayString((
|
|
17307
|
+
vue.createTextVNode(vue.toDisplayString((_a2 = formPlaceholders.value) == null ? void 0 : _a2.delete), 1)
|
|
17273
17308
|
];
|
|
17274
17309
|
}),
|
|
17275
17310
|
_: 2
|
|
@@ -17279,9 +17314,9 @@ const _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
|
|
|
17279
17314
|
onClick: _cache[0] || (_cache[0] = ($event) => vue.isRef(deleteCandidate) ? deleteCandidate.value = -1 : deleteCandidate = -1)
|
|
17280
17315
|
}, {
|
|
17281
17316
|
default: vue.withCtx(() => {
|
|
17282
|
-
var _a2
|
|
17317
|
+
var _a2;
|
|
17283
17318
|
return [
|
|
17284
|
-
vue.createTextVNode(vue.toDisplayString((
|
|
17319
|
+
vue.createTextVNode(vue.toDisplayString((_a2 = formPlaceholders.value) == null ? void 0 : _a2.cancel), 1)
|
|
17285
17320
|
];
|
|
17286
17321
|
}),
|
|
17287
17322
|
_: 1
|
|
@@ -17295,14 +17330,14 @@ const _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
|
|
|
17295
17330
|
class: "bglform-contact-label",
|
|
17296
17331
|
"onUpdate:modelValue": ($event) => address.label = $event,
|
|
17297
17332
|
type: "text",
|
|
17298
|
-
placeholder: (
|
|
17333
|
+
placeholder: (_b = formPlaceholders.value) == null ? void 0 : _b.label
|
|
17299
17334
|
}, null, 8, _hoisted_5$d), [
|
|
17300
17335
|
[vue.vModelText, address.label]
|
|
17301
17336
|
]),
|
|
17302
17337
|
vue.createElementVNode("div", _hoisted_6$a, [
|
|
17303
17338
|
vue.withDirectives(vue.createElementVNode("input", {
|
|
17304
17339
|
"onUpdate:modelValue": ($event) => address.street = $event,
|
|
17305
|
-
placeholder: (
|
|
17340
|
+
placeholder: (_c = formPlaceholders.value) == null ? void 0 : _c.street,
|
|
17306
17341
|
type: "text"
|
|
17307
17342
|
}, null, 8, _hoisted_7$6), [
|
|
17308
17343
|
[vue.vModelText, address.street]
|
|
@@ -17310,14 +17345,14 @@ const _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
|
|
|
17310
17345
|
vue.createElementVNode("div", _hoisted_8$3, [
|
|
17311
17346
|
vue.withDirectives(vue.createElementVNode("input", {
|
|
17312
17347
|
"onUpdate:modelValue": ($event) => address.city = $event,
|
|
17313
|
-
placeholder: (
|
|
17348
|
+
placeholder: (_d = formPlaceholders.value) == null ? void 0 : _d.city,
|
|
17314
17349
|
type: "text"
|
|
17315
17350
|
}, null, 8, _hoisted_9$3), [
|
|
17316
17351
|
[vue.vModelText, address.city]
|
|
17317
17352
|
]),
|
|
17318
17353
|
vue.withDirectives(vue.createElementVNode("input", {
|
|
17319
17354
|
"onUpdate:modelValue": ($event) => address.postal_code = $event,
|
|
17320
|
-
placeholder: (
|
|
17355
|
+
placeholder: (_e = formPlaceholders.value) == null ? void 0 : _e.zip,
|
|
17321
17356
|
type: "text"
|
|
17322
17357
|
}, null, 8, _hoisted_10$2), [
|
|
17323
17358
|
[vue.vModelText, address.postal_code]
|
|
@@ -17325,7 +17360,7 @@ const _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
|
|
|
17325
17360
|
]),
|
|
17326
17361
|
vue.withDirectives(vue.createElementVNode("input", {
|
|
17327
17362
|
"onUpdate:modelValue": ($event) => address.country = $event,
|
|
17328
|
-
placeholder: (
|
|
17363
|
+
placeholder: (_f = formPlaceholders.value) == null ? void 0 : _f.country,
|
|
17329
17364
|
type: "text"
|
|
17330
17365
|
}, null, 8, _hoisted_11$1), [
|
|
17331
17366
|
[vue.vModelText, address.country]
|
|
@@ -17349,9 +17384,9 @@ const _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
|
|
|
17349
17384
|
onClick: addNew
|
|
17350
17385
|
}, {
|
|
17351
17386
|
default: vue.withCtx(() => {
|
|
17352
|
-
var _a, _b
|
|
17387
|
+
var _a, _b;
|
|
17353
17388
|
return [
|
|
17354
|
-
vue.createTextVNode(vue.toDisplayString((
|
|
17389
|
+
vue.createTextVNode(vue.toDisplayString((_a = formPlaceholders.value) == null ? void 0 : _a.add) + " " + vue.toDisplayString((_b = _ctx.context) == null ? void 0 : _b.label), 1)
|
|
17355
17390
|
];
|
|
17356
17391
|
}),
|
|
17357
17392
|
_: 1
|
|
@@ -17361,7 +17396,7 @@ const _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
|
|
|
17361
17396
|
};
|
|
17362
17397
|
}
|
|
17363
17398
|
});
|
|
17364
|
-
const AddressArray = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-
|
|
17399
|
+
const AddressArray = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-98a4f943"]]);
|
|
17365
17400
|
const _hoisted_1$A = { class: "bagel-input" };
|
|
17366
17401
|
const _hoisted_2$v = { class: "mt-1" };
|
|
17367
17402
|
const _hoisted_3$s = {
|
|
@@ -17390,6 +17425,10 @@ const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
|
|
|
17390
17425
|
setup(__props) {
|
|
17391
17426
|
const bagel = useBagel();
|
|
17392
17427
|
const props2 = __props;
|
|
17428
|
+
const formPlaceholders = vue.computed(() => {
|
|
17429
|
+
var _a, _b;
|
|
17430
|
+
return (_b = (_a = props2.context) == null ? void 0 : _a.attrs) == null ? void 0 : _b.formPlaceholders;
|
|
17431
|
+
});
|
|
17393
17432
|
let val = vue.ref([]);
|
|
17394
17433
|
let deleteCandidate = vue.ref(-1);
|
|
17395
17434
|
const del2 = (i2) => {
|
|
@@ -17432,22 +17471,22 @@ const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
|
|
|
17432
17471
|
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$A, [
|
|
17433
17472
|
vue.createElementVNode("div", _hoisted_2$v, [
|
|
17434
17473
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(val), (bank_account, i2) => {
|
|
17435
|
-
var _a, _b, _c, _d, _e, _f, _g, _h
|
|
17474
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
17436
17475
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
17437
17476
|
class: "bglform-contact mb-3",
|
|
17438
17477
|
key: i2
|
|
17439
17478
|
}, [
|
|
17440
17479
|
vue.unref(deleteCandidate) === i2 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$s, [
|
|
17441
|
-
vue.createElementVNode("p", _hoisted_4$e, vue.toDisplayString((
|
|
17480
|
+
vue.createElementVNode("p", _hoisted_4$e, vue.toDisplayString((_a = formPlaceholders.value) == null ? void 0 : _a.sure), 1),
|
|
17442
17481
|
vue.createVNode(vue.unref(Btn), {
|
|
17443
17482
|
thin: "",
|
|
17444
17483
|
color: "red",
|
|
17445
17484
|
onClick: ($event) => deleteContact(bank_account.id)
|
|
17446
17485
|
}, {
|
|
17447
17486
|
default: vue.withCtx(() => {
|
|
17448
|
-
var _a2
|
|
17487
|
+
var _a2;
|
|
17449
17488
|
return [
|
|
17450
|
-
vue.createTextVNode(vue.toDisplayString((
|
|
17489
|
+
vue.createTextVNode(vue.toDisplayString((_a2 = formPlaceholders.value) == null ? void 0 : _a2.delete), 1)
|
|
17451
17490
|
];
|
|
17452
17491
|
}),
|
|
17453
17492
|
_: 2
|
|
@@ -17457,9 +17496,9 @@ const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
|
|
|
17457
17496
|
onClick: _cache[0] || (_cache[0] = ($event) => vue.isRef(deleteCandidate) ? deleteCandidate.value = -1 : deleteCandidate = -1)
|
|
17458
17497
|
}, {
|
|
17459
17498
|
default: vue.withCtx(() => {
|
|
17460
|
-
var _a2
|
|
17499
|
+
var _a2;
|
|
17461
17500
|
return [
|
|
17462
|
-
vue.createTextVNode(vue.toDisplayString((
|
|
17501
|
+
vue.createTextVNode(vue.toDisplayString((_a2 = formPlaceholders.value) == null ? void 0 : _a2.cancel), 1)
|
|
17463
17502
|
];
|
|
17464
17503
|
}),
|
|
17465
17504
|
_: 1
|
|
@@ -17473,14 +17512,14 @@ const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
|
|
|
17473
17512
|
class: "bglform-contact-label",
|
|
17474
17513
|
"onUpdate:modelValue": ($event) => bank_account.label = $event,
|
|
17475
17514
|
type: "text",
|
|
17476
|
-
placeholder: (
|
|
17515
|
+
placeholder: (_b = formPlaceholders.value) == null ? void 0 : _b.label
|
|
17477
17516
|
}, null, 8, _hoisted_5$c), [
|
|
17478
17517
|
[vue.vModelText, bank_account.label]
|
|
17479
17518
|
]),
|
|
17480
17519
|
vue.createElementVNode("div", _hoisted_6$9, [
|
|
17481
17520
|
vue.withDirectives(vue.createElementVNode("input", {
|
|
17482
17521
|
"onUpdate:modelValue": ($event) => bank_account.bank_name = $event,
|
|
17483
|
-
placeholder: (
|
|
17522
|
+
placeholder: (_c = formPlaceholders.value) == null ? void 0 : _c.bankName,
|
|
17484
17523
|
type: "text",
|
|
17485
17524
|
required: ""
|
|
17486
17525
|
}, null, 8, _hoisted_7$5), [
|
|
@@ -17489,7 +17528,7 @@ const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
|
|
|
17489
17528
|
vue.createElementVNode("div", _hoisted_8$2, [
|
|
17490
17529
|
vue.withDirectives(vue.createElementVNode("input", {
|
|
17491
17530
|
"onUpdate:modelValue": ($event) => bank_account.branch = $event,
|
|
17492
|
-
placeholder: (
|
|
17531
|
+
placeholder: (_d = formPlaceholders.value) == null ? void 0 : _d.bankBranch,
|
|
17493
17532
|
type: "text",
|
|
17494
17533
|
required: ""
|
|
17495
17534
|
}, null, 8, _hoisted_9$2), [
|
|
@@ -17497,7 +17536,7 @@ const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
|
|
|
17497
17536
|
]),
|
|
17498
17537
|
vue.withDirectives(vue.createElementVNode("input", {
|
|
17499
17538
|
"onUpdate:modelValue": ($event) => bank_account.account_number = $event,
|
|
17500
|
-
placeholder: (
|
|
17539
|
+
placeholder: (_e = formPlaceholders.value) == null ? void 0 : _e.bankAccount,
|
|
17501
17540
|
type: "text",
|
|
17502
17541
|
required: ""
|
|
17503
17542
|
}, null, 8, _hoisted_10$1), [
|
|
@@ -17507,7 +17546,7 @@ const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
|
|
|
17507
17546
|
vue.createElementVNode("div", _hoisted_11, [
|
|
17508
17547
|
vue.withDirectives(vue.createElementVNode("input", {
|
|
17509
17548
|
"onUpdate:modelValue": ($event) => bank_account.bank_account_holder = $event,
|
|
17510
|
-
placeholder: (
|
|
17549
|
+
placeholder: (_f = formPlaceholders.value) == null ? void 0 : _f.bankAccountHolder,
|
|
17511
17550
|
type: "text",
|
|
17512
17551
|
required: ""
|
|
17513
17552
|
}, null, 8, _hoisted_12), [
|
|
@@ -17515,7 +17554,7 @@ const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
|
|
|
17515
17554
|
]),
|
|
17516
17555
|
vue.withDirectives(vue.createElementVNode("input", {
|
|
17517
17556
|
"onUpdate:modelValue": ($event) => bank_account.bank_account_holder_id = $event,
|
|
17518
|
-
placeholder: (
|
|
17557
|
+
placeholder: (_g = formPlaceholders.value) == null ? void 0 : _g.bankAccountHolderID,
|
|
17519
17558
|
type: "text"
|
|
17520
17559
|
}, null, 8, _hoisted_13), [
|
|
17521
17560
|
[vue.vModelText, bank_account.bank_account_holder_id]
|
|
@@ -17536,7 +17575,7 @@ const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
|
|
|
17536
17575
|
]),
|
|
17537
17576
|
vue.withDirectives(vue.createElementVNode("input", {
|
|
17538
17577
|
"onUpdate:modelValue": ($event) => bank_account.bank_address = $event,
|
|
17539
|
-
placeholder: (
|
|
17578
|
+
placeholder: (_h = formPlaceholders.value) == null ? void 0 : _h.bankAddress,
|
|
17540
17579
|
type: "text"
|
|
17541
17580
|
}, null, 8, _hoisted_16), [
|
|
17542
17581
|
[vue.vModelText, bank_account.bank_address]
|
|
@@ -17561,9 +17600,9 @@ const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
|
|
|
17561
17600
|
onClick: _cache[1] || (_cache[1] = ($event) => vue.unref(val).push({}))
|
|
17562
17601
|
}, {
|
|
17563
17602
|
default: vue.withCtx(() => {
|
|
17564
|
-
var _a, _b
|
|
17603
|
+
var _a, _b;
|
|
17565
17604
|
return [
|
|
17566
|
-
vue.createTextVNode(vue.toDisplayString((
|
|
17605
|
+
vue.createTextVNode(vue.toDisplayString((_a = formPlaceholders.value) == null ? void 0 : _a.add) + " " + vue.toDisplayString((_b = _ctx.context) == null ? void 0 : _b.label), 1)
|
|
17567
17606
|
];
|
|
17568
17607
|
}),
|
|
17569
17608
|
_: 1
|
|
@@ -17573,7 +17612,7 @@ const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
|
|
|
17573
17612
|
};
|
|
17574
17613
|
}
|
|
17575
17614
|
});
|
|
17576
|
-
const BankDetailsArray = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-
|
|
17615
|
+
const BankDetailsArray = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-0928eb22"]]);
|
|
17577
17616
|
const _hoisted_1$z = { class: "misc-wrap" };
|
|
17578
17617
|
const _sfc_main$q = /* @__PURE__ */ vue.defineComponent({
|
|
17579
17618
|
__name: "MiscFields",
|
|
@@ -28514,5 +28553,6 @@ exports.formatString = formatString;
|
|
|
28514
28553
|
exports.initials = initials;
|
|
28515
28554
|
exports.keyToLabel = keyToLabel;
|
|
28516
28555
|
exports.useBagel = useBagel;
|
|
28556
|
+
exports.useEscape = useEscape;
|
|
28517
28557
|
exports.useFormkit = useFormkit;
|
|
28518
28558
|
exports.useModal = useModal;
|