@bagelink/vue 0.0.138 → 0.0.140
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/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/index.cjs +56 -44
- package/dist/index.mjs +56 -44
- package/dist/style.css +35 -35
- package/package.json +1 -1
- package/src/components/formkit/AddressArray.vue +25 -22
- package/src/components/formkit/BankDetailsArray.vue +29 -24
- package/src/components/formkit/ContactArrayFormKit.vue +22 -16
|
@@ -1,17 +1,21 @@
|
|
|
1
1
|
export interface AddressArrContext {
|
|
2
2
|
label?: string;
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
3
|
+
id?: string;
|
|
4
|
+
value: any[];
|
|
5
|
+
node: Record<string, any>;
|
|
6
|
+
attrs: {
|
|
7
|
+
formPlaceholders?: {
|
|
8
|
+
add?: string;
|
|
9
|
+
cancel?: string;
|
|
10
|
+
city?: string;
|
|
11
|
+
country?: string;
|
|
12
|
+
delete?: string;
|
|
13
|
+
label?: string;
|
|
14
|
+
sure?: string;
|
|
15
|
+
zip?: string;
|
|
16
|
+
street?: string;
|
|
17
|
+
};
|
|
13
18
|
};
|
|
14
|
-
[key: string]: any;
|
|
15
19
|
}
|
|
16
20
|
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
17
21
|
context: AddressArrContext;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AddressArray.vue.d.ts","sourceRoot":"","sources":["../../../src/components/formkit/AddressArray.vue"],"names":[],"mappings":"AAqFA;AAQA,MAAM,WAAW,iBAAiB;
|
|
1
|
+
{"version":3,"file":"AddressArray.vue.d.ts","sourceRoot":"","sources":["../../../src/components/formkit/AddressArray.vue"],"names":[],"mappings":"AAqFA;AAQA,MAAM,WAAW,iBAAiB;IACjC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,GAAG,EAAE,CAAC;IACb,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC1B,KAAK,EAAE;QACN,gBAAgB,CAAC,EAAE;YAClB,GAAG,CAAC,EAAE,MAAM,CAAC;YACb,MAAM,CAAC,EAAE,MAAM,CAAC;YAChB,IAAI,CAAC,EAAE,MAAM,CAAC;YACd,OAAO,CAAC,EAAE,MAAM,CAAC;YACjB,MAAM,CAAC,EAAE,MAAM,CAAC;YAChB,KAAK,CAAC,EAAE,MAAM,CAAC;YACf,IAAI,CAAC,EAAE,MAAM,CAAC;YACd,GAAG,CAAC,EAAE,MAAM,CAAC;YACb,MAAM,CAAC,EAAE,MAAM,CAAC;SAChB,CAAC;KACF,CAAC;CACF;;aA8US,iBAAiB;;aAAjB,iBAAiB;;AAF3B,wBAQG;AAGH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC"}
|
|
@@ -1,19 +1,23 @@
|
|
|
1
1
|
export interface BankDetailsContext {
|
|
2
2
|
label?: string;
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
3
|
+
id?: string;
|
|
4
|
+
value: any[];
|
|
5
|
+
node: Record<string, any>;
|
|
6
|
+
attrs: {
|
|
7
|
+
formPlaceholders?: {
|
|
8
|
+
sure?: string;
|
|
9
|
+
delete?: string;
|
|
10
|
+
cancel?: string;
|
|
11
|
+
label?: string;
|
|
12
|
+
bankName?: string;
|
|
13
|
+
bankBranch?: string;
|
|
14
|
+
bankAccount?: string;
|
|
15
|
+
bankAccountHolder?: string;
|
|
16
|
+
bankAccountHolderID?: string;
|
|
17
|
+
bankAddress?: string;
|
|
18
|
+
add?: string;
|
|
19
|
+
};
|
|
15
20
|
};
|
|
16
|
-
[key: string]: any;
|
|
17
21
|
}
|
|
18
22
|
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
19
23
|
context: BankDetailsContext;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BankDetailsArray.vue.d.ts","sourceRoot":"","sources":["../../../src/components/formkit/BankDetailsArray.vue"],"names":[],"mappings":"AA8GA;AAQA,MAAM,WAAW,kBAAkB;IAClC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gBAAgB,CAAC,EAAE;
|
|
1
|
+
{"version":3,"file":"BankDetailsArray.vue.d.ts","sourceRoot":"","sources":["../../../src/components/formkit/BankDetailsArray.vue"],"names":[],"mappings":"AA8GA;AAQA,MAAM,WAAW,kBAAkB;IAClC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,GAAG,EAAE,CAAC;IACb,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC1B,KAAK,EAAE;QACN,gBAAgB,CAAC,EAAE;YAClB,IAAI,CAAC,EAAE,MAAM,CAAC;YACd,MAAM,CAAC,EAAE,MAAM,CAAC;YAChB,MAAM,CAAC,EAAE,MAAM,CAAC;YAChB,KAAK,CAAC,EAAE,MAAM,CAAC;YACf,QAAQ,CAAC,EAAE,MAAM,CAAC;YAClB,UAAU,CAAC,EAAE,MAAM,CAAC;YACpB,WAAW,CAAC,EAAE,MAAM,CAAC;YACrB,iBAAiB,CAAC,EAAE,MAAM,CAAC;YAC3B,mBAAmB,CAAC,EAAE,MAAM,CAAC;YAC7B,WAAW,CAAC,EAAE,MAAM,CAAC;YACrB,GAAG,CAAC,EAAE,MAAM,CAAC;SACb,CAAC;KACF,CAAC;CACF;;aA0XS,kBAAkB;;aAAlB,kBAAkB;;AAF5B,wBAQG;AAGH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC"}
|
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
export interface ContactArrContext {
|
|
2
2
|
label?: string;
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
3
|
+
id?: string;
|
|
4
|
+
value: any[];
|
|
5
|
+
node: Record<string, any>;
|
|
6
|
+
attrs: {
|
|
7
|
+
formPlaceholders?: {
|
|
8
|
+
sure?: string;
|
|
9
|
+
delete?: string;
|
|
10
|
+
cancel?: string;
|
|
11
|
+
label?: string;
|
|
12
|
+
email?: string;
|
|
13
|
+
phone?: string;
|
|
14
|
+
add?: string;
|
|
15
|
+
};
|
|
11
16
|
};
|
|
12
|
-
[key: string]: any;
|
|
13
17
|
}
|
|
14
18
|
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
15
19
|
context: ContactArrContext;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContactArrayFormKit.vue.d.ts","sourceRoot":"","sources":["../../../src/components/formkit/ContactArrayFormKit.vue"],"names":[],"mappings":"AA2EA;AAQA,MAAM,WAAW,iBAAiB;IACjC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gBAAgB,CAAC,EAAE;
|
|
1
|
+
{"version":3,"file":"ContactArrayFormKit.vue.d.ts","sourceRoot":"","sources":["../../../src/components/formkit/ContactArrayFormKit.vue"],"names":[],"mappings":"AA2EA;AAQA,MAAM,WAAW,iBAAiB;IACjC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,GAAG,EAAE,CAAC;IACb,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC1B,KAAK,EAAE;QACN,gBAAgB,CAAC,EAAE;YAClB,IAAI,CAAC,EAAE,MAAM,CAAA;YACb,MAAM,CAAC,EAAE,MAAM,CAAA;YACf,MAAM,CAAC,EAAE,MAAM,CAAA;YACf,KAAK,CAAC,EAAE,MAAM,CAAA;YACd,KAAK,CAAC,EAAE,MAAM,CAAA;YACd,KAAK,CAAC,EAAE,MAAM,CAAA;YACd,GAAG,CAAC,EAAE,MAAM,CAAA;SACZ,CAAC;KACF,CAAC;CACF;;aA6SS,iBAAiB;;aAAjB,iBAAiB;;AAF3B,wBAQG;AAGH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC"}
|
package/dist/index.cjs
CHANGED
|
@@ -17050,6 +17050,10 @@ const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
|
|
|
17050
17050
|
setup(__props) {
|
|
17051
17051
|
const bagel = useBagel();
|
|
17052
17052
|
const props2 = __props;
|
|
17053
|
+
const formPlaceholders = vue.computed(() => {
|
|
17054
|
+
var _a, _b;
|
|
17055
|
+
return (_b = (_a = props2.context) == null ? void 0 : _a.attrs) == null ? void 0 : _b.formPlaceholders;
|
|
17056
|
+
});
|
|
17053
17057
|
let val = vue.ref([]);
|
|
17054
17058
|
let deleteCandidate = vue.ref(-1);
|
|
17055
17059
|
const del2 = (i2) => {
|
|
@@ -17092,22 +17096,22 @@ const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
|
|
|
17092
17096
|
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$C, [
|
|
17093
17097
|
vue.createElementVNode("div", _hoisted_2$x, [
|
|
17094
17098
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(val), (contact, i2) => {
|
|
17095
|
-
var _a, _b, _c, _d, _e, _f
|
|
17099
|
+
var _a, _b, _c, _d, _e, _f;
|
|
17096
17100
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
17097
17101
|
class: "bglform-contact mb-2",
|
|
17098
17102
|
key: i2
|
|
17099
17103
|
}, [
|
|
17100
17104
|
vue.unref(deleteCandidate) === i2 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$u, [
|
|
17101
|
-
vue.createElementVNode("p", _hoisted_4$g, vue.toDisplayString((
|
|
17105
|
+
vue.createElementVNode("p", _hoisted_4$g, vue.toDisplayString((_a = formPlaceholders.value) == null ? void 0 : _a.sure), 1),
|
|
17102
17106
|
vue.createVNode(vue.unref(Btn), {
|
|
17103
17107
|
thin: "",
|
|
17104
17108
|
color: "red",
|
|
17105
17109
|
onClick: ($event) => deleteContact(contact.id)
|
|
17106
17110
|
}, {
|
|
17107
17111
|
default: vue.withCtx(() => {
|
|
17108
|
-
var _a2
|
|
17112
|
+
var _a2;
|
|
17109
17113
|
return [
|
|
17110
|
-
vue.createTextVNode(vue.toDisplayString((
|
|
17114
|
+
vue.createTextVNode(vue.toDisplayString((_a2 = formPlaceholders.value) == null ? void 0 : _a2.delete), 1)
|
|
17111
17115
|
];
|
|
17112
17116
|
}),
|
|
17113
17117
|
_: 2
|
|
@@ -17117,9 +17121,9 @@ const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
|
|
|
17117
17121
|
onClick: _cache[0] || (_cache[0] = ($event) => vue.isRef(deleteCandidate) ? deleteCandidate.value = -1 : deleteCandidate = -1)
|
|
17118
17122
|
}, {
|
|
17119
17123
|
default: vue.withCtx(() => {
|
|
17120
|
-
var _a2
|
|
17124
|
+
var _a2;
|
|
17121
17125
|
return [
|
|
17122
|
-
vue.createTextVNode(vue.toDisplayString((
|
|
17126
|
+
vue.createTextVNode(vue.toDisplayString((_a2 = formPlaceholders.value) == null ? void 0 : _a2.cancel), 1)
|
|
17123
17127
|
];
|
|
17124
17128
|
}),
|
|
17125
17129
|
_: 1
|
|
@@ -17133,22 +17137,22 @@ const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
|
|
|
17133
17137
|
class: "bglform-contact-label",
|
|
17134
17138
|
"onUpdate:modelValue": ($event) => contact.label = $event,
|
|
17135
17139
|
type: "text",
|
|
17136
|
-
placeholder: (
|
|
17140
|
+
placeholder: (_b = formPlaceholders.value) == null ? void 0 : _b.label
|
|
17137
17141
|
}, null, 8, _hoisted_5$e), [
|
|
17138
17142
|
[vue.vModelText, contact.label]
|
|
17139
17143
|
]),
|
|
17140
|
-
((
|
|
17144
|
+
((_c = _ctx.context) == null ? void 0 : _c.id) === "email" ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("input", {
|
|
17141
17145
|
key: 1,
|
|
17142
17146
|
"onUpdate:modelValue": ($event) => contact.email = $event,
|
|
17143
|
-
placeholder: (
|
|
17147
|
+
placeholder: (_d = formPlaceholders.value) == null ? void 0 : _d.email,
|
|
17144
17148
|
type: "email"
|
|
17145
17149
|
}, null, 8, _hoisted_6$b)), [
|
|
17146
17150
|
[vue.vModelText, contact.email]
|
|
17147
17151
|
]) : vue.createCommentVNode("", true),
|
|
17148
|
-
((
|
|
17152
|
+
((_e = _ctx.context) == null ? void 0 : _e.id) === "phone" ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("input", {
|
|
17149
17153
|
key: 2,
|
|
17150
17154
|
"onUpdate:modelValue": ($event) => contact.phone = $event,
|
|
17151
|
-
placeholder: (
|
|
17155
|
+
placeholder: (_f = formPlaceholders.value) == null ? void 0 : _f.phone,
|
|
17152
17156
|
type: "tel"
|
|
17153
17157
|
}, null, 8, _hoisted_7$7)), [
|
|
17154
17158
|
[vue.vModelText, contact.phone]
|
|
@@ -17170,9 +17174,9 @@ const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
|
|
|
17170
17174
|
onClick: _cache[1] || (_cache[1] = ($event) => vue.unref(val).push({}))
|
|
17171
17175
|
}, {
|
|
17172
17176
|
default: vue.withCtx(() => {
|
|
17173
|
-
var _a, _b
|
|
17177
|
+
var _a, _b;
|
|
17174
17178
|
return [
|
|
17175
|
-
vue.createTextVNode(vue.toDisplayString((
|
|
17179
|
+
vue.createTextVNode(vue.toDisplayString((_a = formPlaceholders.value) == null ? void 0 : _a.add) + " " + vue.toDisplayString((_b = _ctx.context) == null ? void 0 : _b.label), 1)
|
|
17176
17180
|
];
|
|
17177
17181
|
}),
|
|
17178
17182
|
_: 1
|
|
@@ -17182,7 +17186,7 @@ const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
|
|
|
17182
17186
|
};
|
|
17183
17187
|
}
|
|
17184
17188
|
});
|
|
17185
|
-
const ContactArrayFormKit = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-
|
|
17189
|
+
const ContactArrayFormKit = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-0533667e"]]);
|
|
17186
17190
|
const _hoisted_1$B = { class: "bagel-input" };
|
|
17187
17191
|
const _hoisted_2$w = { class: "mt-1" };
|
|
17188
17192
|
const _hoisted_3$t = {
|
|
@@ -17206,6 +17210,10 @@ const _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
|
|
|
17206
17210
|
setup(__props) {
|
|
17207
17211
|
const bagel = useBagel();
|
|
17208
17212
|
const props2 = __props;
|
|
17213
|
+
const formPlaceholders = vue.computed(() => {
|
|
17214
|
+
var _a, _b;
|
|
17215
|
+
return (_b = (_a = props2.context) == null ? void 0 : _a.attrs) == null ? void 0 : _b.formPlaceholders;
|
|
17216
|
+
});
|
|
17209
17217
|
let val = vue.ref([]);
|
|
17210
17218
|
const addNew = () => {
|
|
17211
17219
|
if (!val.value)
|
|
@@ -17254,22 +17262,22 @@ const _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
|
|
|
17254
17262
|
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$B, [
|
|
17255
17263
|
vue.createElementVNode("div", _hoisted_2$w, [
|
|
17256
17264
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(val), (address, i2) => {
|
|
17257
|
-
var _a, _b, _c, _d, _e, _f
|
|
17265
|
+
var _a, _b, _c, _d, _e, _f;
|
|
17258
17266
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
17259
17267
|
class: "bglform-contact mb-3",
|
|
17260
17268
|
key: i2
|
|
17261
17269
|
}, [
|
|
17262
17270
|
vue.unref(deleteCandidate) === i2 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$t, [
|
|
17263
|
-
vue.createElementVNode("p", _hoisted_4$f, vue.toDisplayString((
|
|
17271
|
+
vue.createElementVNode("p", _hoisted_4$f, vue.toDisplayString((_a = formPlaceholders.value) == null ? void 0 : _a.sure), 1),
|
|
17264
17272
|
vue.createVNode(vue.unref(Btn), {
|
|
17265
17273
|
thin: "",
|
|
17266
17274
|
color: "red",
|
|
17267
17275
|
onClick: ($event) => deleteContact(address.id)
|
|
17268
17276
|
}, {
|
|
17269
17277
|
default: vue.withCtx(() => {
|
|
17270
|
-
var _a2
|
|
17278
|
+
var _a2;
|
|
17271
17279
|
return [
|
|
17272
|
-
vue.createTextVNode(vue.toDisplayString((
|
|
17280
|
+
vue.createTextVNode(vue.toDisplayString((_a2 = formPlaceholders.value) == null ? void 0 : _a2.delete), 1)
|
|
17273
17281
|
];
|
|
17274
17282
|
}),
|
|
17275
17283
|
_: 2
|
|
@@ -17279,9 +17287,9 @@ const _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
|
|
|
17279
17287
|
onClick: _cache[0] || (_cache[0] = ($event) => vue.isRef(deleteCandidate) ? deleteCandidate.value = -1 : deleteCandidate = -1)
|
|
17280
17288
|
}, {
|
|
17281
17289
|
default: vue.withCtx(() => {
|
|
17282
|
-
var _a2
|
|
17290
|
+
var _a2;
|
|
17283
17291
|
return [
|
|
17284
|
-
vue.createTextVNode(vue.toDisplayString((
|
|
17292
|
+
vue.createTextVNode(vue.toDisplayString((_a2 = formPlaceholders.value) == null ? void 0 : _a2.cancel), 1)
|
|
17285
17293
|
];
|
|
17286
17294
|
}),
|
|
17287
17295
|
_: 1
|
|
@@ -17295,14 +17303,14 @@ const _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
|
|
|
17295
17303
|
class: "bglform-contact-label",
|
|
17296
17304
|
"onUpdate:modelValue": ($event) => address.label = $event,
|
|
17297
17305
|
type: "text",
|
|
17298
|
-
placeholder: (
|
|
17306
|
+
placeholder: (_b = formPlaceholders.value) == null ? void 0 : _b.label
|
|
17299
17307
|
}, null, 8, _hoisted_5$d), [
|
|
17300
17308
|
[vue.vModelText, address.label]
|
|
17301
17309
|
]),
|
|
17302
17310
|
vue.createElementVNode("div", _hoisted_6$a, [
|
|
17303
17311
|
vue.withDirectives(vue.createElementVNode("input", {
|
|
17304
17312
|
"onUpdate:modelValue": ($event) => address.street = $event,
|
|
17305
|
-
placeholder: (
|
|
17313
|
+
placeholder: (_c = formPlaceholders.value) == null ? void 0 : _c.street,
|
|
17306
17314
|
type: "text"
|
|
17307
17315
|
}, null, 8, _hoisted_7$6), [
|
|
17308
17316
|
[vue.vModelText, address.street]
|
|
@@ -17310,14 +17318,14 @@ const _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
|
|
|
17310
17318
|
vue.createElementVNode("div", _hoisted_8$3, [
|
|
17311
17319
|
vue.withDirectives(vue.createElementVNode("input", {
|
|
17312
17320
|
"onUpdate:modelValue": ($event) => address.city = $event,
|
|
17313
|
-
placeholder: (
|
|
17321
|
+
placeholder: (_d = formPlaceholders.value) == null ? void 0 : _d.city,
|
|
17314
17322
|
type: "text"
|
|
17315
17323
|
}, null, 8, _hoisted_9$3), [
|
|
17316
17324
|
[vue.vModelText, address.city]
|
|
17317
17325
|
]),
|
|
17318
17326
|
vue.withDirectives(vue.createElementVNode("input", {
|
|
17319
17327
|
"onUpdate:modelValue": ($event) => address.postal_code = $event,
|
|
17320
|
-
placeholder: (
|
|
17328
|
+
placeholder: (_e = formPlaceholders.value) == null ? void 0 : _e.zip,
|
|
17321
17329
|
type: "text"
|
|
17322
17330
|
}, null, 8, _hoisted_10$2), [
|
|
17323
17331
|
[vue.vModelText, address.postal_code]
|
|
@@ -17325,7 +17333,7 @@ const _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
|
|
|
17325
17333
|
]),
|
|
17326
17334
|
vue.withDirectives(vue.createElementVNode("input", {
|
|
17327
17335
|
"onUpdate:modelValue": ($event) => address.country = $event,
|
|
17328
|
-
placeholder: (
|
|
17336
|
+
placeholder: (_f = formPlaceholders.value) == null ? void 0 : _f.country,
|
|
17329
17337
|
type: "text"
|
|
17330
17338
|
}, null, 8, _hoisted_11$1), [
|
|
17331
17339
|
[vue.vModelText, address.country]
|
|
@@ -17349,9 +17357,9 @@ const _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
|
|
|
17349
17357
|
onClick: addNew
|
|
17350
17358
|
}, {
|
|
17351
17359
|
default: vue.withCtx(() => {
|
|
17352
|
-
var _a, _b
|
|
17360
|
+
var _a, _b;
|
|
17353
17361
|
return [
|
|
17354
|
-
vue.createTextVNode(vue.toDisplayString((
|
|
17362
|
+
vue.createTextVNode(vue.toDisplayString((_a = formPlaceholders.value) == null ? void 0 : _a.add) + " " + vue.toDisplayString((_b = _ctx.context) == null ? void 0 : _b.label), 1)
|
|
17355
17363
|
];
|
|
17356
17364
|
}),
|
|
17357
17365
|
_: 1
|
|
@@ -17361,7 +17369,7 @@ const _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
|
|
|
17361
17369
|
};
|
|
17362
17370
|
}
|
|
17363
17371
|
});
|
|
17364
|
-
const AddressArray = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-
|
|
17372
|
+
const AddressArray = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-98a4f943"]]);
|
|
17365
17373
|
const _hoisted_1$A = { class: "bagel-input" };
|
|
17366
17374
|
const _hoisted_2$v = { class: "mt-1" };
|
|
17367
17375
|
const _hoisted_3$s = {
|
|
@@ -17390,6 +17398,10 @@ const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
|
|
|
17390
17398
|
setup(__props) {
|
|
17391
17399
|
const bagel = useBagel();
|
|
17392
17400
|
const props2 = __props;
|
|
17401
|
+
const formPlaceholders = vue.computed(() => {
|
|
17402
|
+
var _a, _b;
|
|
17403
|
+
return (_b = (_a = props2.context) == null ? void 0 : _a.attrs) == null ? void 0 : _b.formPlaceholders;
|
|
17404
|
+
});
|
|
17393
17405
|
let val = vue.ref([]);
|
|
17394
17406
|
let deleteCandidate = vue.ref(-1);
|
|
17395
17407
|
const del2 = (i2) => {
|
|
@@ -17432,22 +17444,22 @@ const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
|
|
|
17432
17444
|
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$A, [
|
|
17433
17445
|
vue.createElementVNode("div", _hoisted_2$v, [
|
|
17434
17446
|
(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
|
|
17447
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
17436
17448
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
17437
17449
|
class: "bglform-contact mb-3",
|
|
17438
17450
|
key: i2
|
|
17439
17451
|
}, [
|
|
17440
17452
|
vue.unref(deleteCandidate) === i2 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$s, [
|
|
17441
|
-
vue.createElementVNode("p", _hoisted_4$e, vue.toDisplayString((
|
|
17453
|
+
vue.createElementVNode("p", _hoisted_4$e, vue.toDisplayString((_a = formPlaceholders.value) == null ? void 0 : _a.sure), 1),
|
|
17442
17454
|
vue.createVNode(vue.unref(Btn), {
|
|
17443
17455
|
thin: "",
|
|
17444
17456
|
color: "red",
|
|
17445
17457
|
onClick: ($event) => deleteContact(bank_account.id)
|
|
17446
17458
|
}, {
|
|
17447
17459
|
default: vue.withCtx(() => {
|
|
17448
|
-
var _a2
|
|
17460
|
+
var _a2;
|
|
17449
17461
|
return [
|
|
17450
|
-
vue.createTextVNode(vue.toDisplayString((
|
|
17462
|
+
vue.createTextVNode(vue.toDisplayString((_a2 = formPlaceholders.value) == null ? void 0 : _a2.delete), 1)
|
|
17451
17463
|
];
|
|
17452
17464
|
}),
|
|
17453
17465
|
_: 2
|
|
@@ -17457,9 +17469,9 @@ const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
|
|
|
17457
17469
|
onClick: _cache[0] || (_cache[0] = ($event) => vue.isRef(deleteCandidate) ? deleteCandidate.value = -1 : deleteCandidate = -1)
|
|
17458
17470
|
}, {
|
|
17459
17471
|
default: vue.withCtx(() => {
|
|
17460
|
-
var _a2
|
|
17472
|
+
var _a2;
|
|
17461
17473
|
return [
|
|
17462
|
-
vue.createTextVNode(vue.toDisplayString((
|
|
17474
|
+
vue.createTextVNode(vue.toDisplayString((_a2 = formPlaceholders.value) == null ? void 0 : _a2.cancel), 1)
|
|
17463
17475
|
];
|
|
17464
17476
|
}),
|
|
17465
17477
|
_: 1
|
|
@@ -17473,14 +17485,14 @@ const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
|
|
|
17473
17485
|
class: "bglform-contact-label",
|
|
17474
17486
|
"onUpdate:modelValue": ($event) => bank_account.label = $event,
|
|
17475
17487
|
type: "text",
|
|
17476
|
-
placeholder: (
|
|
17488
|
+
placeholder: (_b = formPlaceholders.value) == null ? void 0 : _b.label
|
|
17477
17489
|
}, null, 8, _hoisted_5$c), [
|
|
17478
17490
|
[vue.vModelText, bank_account.label]
|
|
17479
17491
|
]),
|
|
17480
17492
|
vue.createElementVNode("div", _hoisted_6$9, [
|
|
17481
17493
|
vue.withDirectives(vue.createElementVNode("input", {
|
|
17482
17494
|
"onUpdate:modelValue": ($event) => bank_account.bank_name = $event,
|
|
17483
|
-
placeholder: (
|
|
17495
|
+
placeholder: (_c = formPlaceholders.value) == null ? void 0 : _c.bankName,
|
|
17484
17496
|
type: "text",
|
|
17485
17497
|
required: ""
|
|
17486
17498
|
}, null, 8, _hoisted_7$5), [
|
|
@@ -17489,7 +17501,7 @@ const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
|
|
|
17489
17501
|
vue.createElementVNode("div", _hoisted_8$2, [
|
|
17490
17502
|
vue.withDirectives(vue.createElementVNode("input", {
|
|
17491
17503
|
"onUpdate:modelValue": ($event) => bank_account.branch = $event,
|
|
17492
|
-
placeholder: (
|
|
17504
|
+
placeholder: (_d = formPlaceholders.value) == null ? void 0 : _d.bankBranch,
|
|
17493
17505
|
type: "text",
|
|
17494
17506
|
required: ""
|
|
17495
17507
|
}, null, 8, _hoisted_9$2), [
|
|
@@ -17497,7 +17509,7 @@ const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
|
|
|
17497
17509
|
]),
|
|
17498
17510
|
vue.withDirectives(vue.createElementVNode("input", {
|
|
17499
17511
|
"onUpdate:modelValue": ($event) => bank_account.account_number = $event,
|
|
17500
|
-
placeholder: (
|
|
17512
|
+
placeholder: (_e = formPlaceholders.value) == null ? void 0 : _e.bankAccount,
|
|
17501
17513
|
type: "text",
|
|
17502
17514
|
required: ""
|
|
17503
17515
|
}, null, 8, _hoisted_10$1), [
|
|
@@ -17507,7 +17519,7 @@ const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
|
|
|
17507
17519
|
vue.createElementVNode("div", _hoisted_11, [
|
|
17508
17520
|
vue.withDirectives(vue.createElementVNode("input", {
|
|
17509
17521
|
"onUpdate:modelValue": ($event) => bank_account.bank_account_holder = $event,
|
|
17510
|
-
placeholder: (
|
|
17522
|
+
placeholder: (_f = formPlaceholders.value) == null ? void 0 : _f.bankAccountHolder,
|
|
17511
17523
|
type: "text",
|
|
17512
17524
|
required: ""
|
|
17513
17525
|
}, null, 8, _hoisted_12), [
|
|
@@ -17515,7 +17527,7 @@ const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
|
|
|
17515
17527
|
]),
|
|
17516
17528
|
vue.withDirectives(vue.createElementVNode("input", {
|
|
17517
17529
|
"onUpdate:modelValue": ($event) => bank_account.bank_account_holder_id = $event,
|
|
17518
|
-
placeholder: (
|
|
17530
|
+
placeholder: (_g = formPlaceholders.value) == null ? void 0 : _g.bankAccountHolderID,
|
|
17519
17531
|
type: "text"
|
|
17520
17532
|
}, null, 8, _hoisted_13), [
|
|
17521
17533
|
[vue.vModelText, bank_account.bank_account_holder_id]
|
|
@@ -17536,7 +17548,7 @@ const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
|
|
|
17536
17548
|
]),
|
|
17537
17549
|
vue.withDirectives(vue.createElementVNode("input", {
|
|
17538
17550
|
"onUpdate:modelValue": ($event) => bank_account.bank_address = $event,
|
|
17539
|
-
placeholder: (
|
|
17551
|
+
placeholder: (_h = formPlaceholders.value) == null ? void 0 : _h.bankAddress,
|
|
17540
17552
|
type: "text"
|
|
17541
17553
|
}, null, 8, _hoisted_16), [
|
|
17542
17554
|
[vue.vModelText, bank_account.bank_address]
|
|
@@ -17561,9 +17573,9 @@ const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
|
|
|
17561
17573
|
onClick: _cache[1] || (_cache[1] = ($event) => vue.unref(val).push({}))
|
|
17562
17574
|
}, {
|
|
17563
17575
|
default: vue.withCtx(() => {
|
|
17564
|
-
var _a, _b
|
|
17576
|
+
var _a, _b;
|
|
17565
17577
|
return [
|
|
17566
|
-
vue.createTextVNode(vue.toDisplayString((
|
|
17578
|
+
vue.createTextVNode(vue.toDisplayString((_a = formPlaceholders.value) == null ? void 0 : _a.add) + " " + vue.toDisplayString((_b = _ctx.context) == null ? void 0 : _b.label), 1)
|
|
17567
17579
|
];
|
|
17568
17580
|
}),
|
|
17569
17581
|
_: 1
|
|
@@ -17573,7 +17585,7 @@ const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
|
|
|
17573
17585
|
};
|
|
17574
17586
|
}
|
|
17575
17587
|
});
|
|
17576
|
-
const BankDetailsArray = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-
|
|
17588
|
+
const BankDetailsArray = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-0928eb22"]]);
|
|
17577
17589
|
const _hoisted_1$z = { class: "misc-wrap" };
|
|
17578
17590
|
const _sfc_main$q = /* @__PURE__ */ vue.defineComponent({
|
|
17579
17591
|
__name: "MiscFields",
|