@bagelink/vue 0.0.132 → 0.0.136
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 +17 -24
- package/dist/components/formkit/AddressArray.vue.d.ts.map +1 -1
- package/dist/components/formkit/BankDetailsArray.vue.d.ts +19 -28
- package/dist/components/formkit/BankDetailsArray.vue.d.ts.map +1 -1
- package/dist/components/formkit/ContactArrayFormKit.vue.d.ts +15 -20
- package/dist/components/formkit/ContactArrayFormKit.vue.d.ts.map +1 -1
- package/dist/components/formkit/index.d.ts +3 -0
- package/dist/components/formkit/index.d.ts.map +1 -1
- package/dist/index.cjs +73 -55
- package/dist/index.mjs +73 -55
- package/dist/style.css +35 -35
- package/package.json +1 -1
- package/src/components/FileUploader.vue +5 -5
- package/src/components/FormKitTable.vue +1 -1
- package/src/components/form/ItemRef.vue +1 -1
- package/src/components/form/inputs/ColorPicker.vue +1 -1
- package/src/components/formkit/AddressArray.vue +27 -21
- package/src/components/formkit/BankDetailsArray.vue +29 -25
- package/src/components/formkit/ContactArrayFormKit.vue +21 -17
- package/src/components/formkit/index.ts +4 -0
|
@@ -11,20 +11,20 @@
|
|
|
11
11
|
v-if="deleteCandidate === i"
|
|
12
12
|
>
|
|
13
13
|
<p class="txt14">
|
|
14
|
-
{{
|
|
14
|
+
{{ context?.formPlaceholders?.sure }}
|
|
15
15
|
</p>
|
|
16
16
|
<Btn
|
|
17
17
|
thin
|
|
18
18
|
color="red"
|
|
19
19
|
@click="deleteContact(address.id)"
|
|
20
20
|
>
|
|
21
|
-
{{
|
|
21
|
+
{{ context?.formPlaceholders?.delete }}
|
|
22
22
|
</Btn>
|
|
23
23
|
<Btn
|
|
24
24
|
thin
|
|
25
25
|
@click="deleteCandidate = -1"
|
|
26
26
|
>
|
|
27
|
-
{{
|
|
27
|
+
{{ context?.formPlaceholders?.cancel }}
|
|
28
28
|
</Btn>
|
|
29
29
|
</div>
|
|
30
30
|
<Checkbox
|
|
@@ -35,29 +35,29 @@
|
|
|
35
35
|
class="bglform-contact-label"
|
|
36
36
|
v-model="address.label"
|
|
37
37
|
type="text"
|
|
38
|
-
:placeholder="
|
|
38
|
+
:placeholder="context?.formPlaceholders?.label"
|
|
39
39
|
>
|
|
40
40
|
<div class="bglform-contact-address">
|
|
41
41
|
<input
|
|
42
42
|
v-model="address.street"
|
|
43
|
-
:placeholder="
|
|
43
|
+
:placeholder="context?.formPlaceholders?.street"
|
|
44
44
|
type="text"
|
|
45
45
|
>
|
|
46
46
|
<div class="bglform-contact-address-flex">
|
|
47
47
|
<input
|
|
48
48
|
v-model="address.city"
|
|
49
|
-
:placeholder="
|
|
49
|
+
:placeholder="context?.formPlaceholders?.city"
|
|
50
50
|
type="text"
|
|
51
51
|
>
|
|
52
52
|
<input
|
|
53
53
|
v-model="address.postal_code"
|
|
54
|
-
:placeholder="
|
|
54
|
+
:placeholder="context?.formPlaceholders?.zip"
|
|
55
55
|
type="text"
|
|
56
56
|
>
|
|
57
57
|
</div>
|
|
58
58
|
<input
|
|
59
59
|
v-model="address.country"
|
|
60
|
-
:placeholder="
|
|
60
|
+
:placeholder="context?.formPlaceholders?.country"
|
|
61
61
|
type="text"
|
|
62
62
|
>
|
|
63
63
|
</div>
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
thin
|
|
78
78
|
@click="addNew"
|
|
79
79
|
>
|
|
80
|
-
{{
|
|
80
|
+
{{ context?.formPlaceholders?.add }}
|
|
81
81
|
{{ context?.label }}
|
|
82
82
|
</Btn>
|
|
83
83
|
</div>
|
|
@@ -91,20 +91,26 @@ import { watch } from 'vue';
|
|
|
91
91
|
import { Btn, useBagel } from '@bagelink/vue';
|
|
92
92
|
import Checkbox from '../form/inputs/Checkbox.vue';
|
|
93
93
|
|
|
94
|
+
export interface AddressArrContext {
|
|
95
|
+
|
|
96
|
+
label?: string;
|
|
97
|
+
formPlaceholders?: {
|
|
98
|
+
add?: string;
|
|
99
|
+
cancel?: string;
|
|
100
|
+
city?: string;
|
|
101
|
+
country?: string;
|
|
102
|
+
delete?: string;
|
|
103
|
+
label?: string;
|
|
104
|
+
sure?: string;
|
|
105
|
+
zip?: string;
|
|
106
|
+
street?: string;
|
|
107
|
+
};
|
|
108
|
+
[key: string]: any;
|
|
109
|
+
|
|
110
|
+
}
|
|
94
111
|
const bagel = useBagel();
|
|
95
112
|
const props = defineProps<{
|
|
96
|
-
context:
|
|
97
|
-
form: {
|
|
98
|
-
add: string;
|
|
99
|
-
cancel: string;
|
|
100
|
-
city: string;
|
|
101
|
-
country: string;
|
|
102
|
-
delete: string;
|
|
103
|
-
label: string;
|
|
104
|
-
sure: string;
|
|
105
|
-
zip: string;
|
|
106
|
-
street: string;
|
|
107
|
-
};
|
|
113
|
+
context: AddressArrContext
|
|
108
114
|
}>();
|
|
109
115
|
|
|
110
116
|
let val = $ref<any[]>([]);
|
|
@@ -11,20 +11,20 @@
|
|
|
11
11
|
v-if="deleteCandidate === i"
|
|
12
12
|
>
|
|
13
13
|
<p class="txt14">
|
|
14
|
-
{{
|
|
14
|
+
{{ context?.formPlaceholders?.sure }}
|
|
15
15
|
</p>
|
|
16
16
|
<Btn
|
|
17
17
|
thin
|
|
18
18
|
color="red"
|
|
19
19
|
@click="deleteContact(bank_account.id)"
|
|
20
20
|
>
|
|
21
|
-
{{
|
|
21
|
+
{{ context?.formPlaceholders?.delete }}
|
|
22
22
|
</Btn>
|
|
23
23
|
<Btn
|
|
24
24
|
thin
|
|
25
25
|
@click="deleteCandidate = -1"
|
|
26
26
|
>
|
|
27
|
-
{{
|
|
27
|
+
{{ context?.formPlaceholders?.cancel }}
|
|
28
28
|
</Btn>
|
|
29
29
|
</div>
|
|
30
30
|
<Checkbox
|
|
@@ -35,25 +35,25 @@
|
|
|
35
35
|
class="bglform-contact-label"
|
|
36
36
|
v-model="bank_account.label"
|
|
37
37
|
type="text"
|
|
38
|
-
:placeholder="
|
|
38
|
+
:placeholder="context?.formPlaceholders?.label"
|
|
39
39
|
>
|
|
40
40
|
<div class="bglform-contact-address">
|
|
41
41
|
<input
|
|
42
42
|
v-model="bank_account.bank_name"
|
|
43
|
-
:placeholder="
|
|
43
|
+
:placeholder="context?.formPlaceholders?.bankName"
|
|
44
44
|
type="text"
|
|
45
45
|
required
|
|
46
46
|
>
|
|
47
47
|
<div class="bglform-contact-address-flex">
|
|
48
48
|
<input
|
|
49
49
|
v-model="bank_account.branch"
|
|
50
|
-
:placeholder="
|
|
50
|
+
:placeholder="context?.formPlaceholders?.bankBranch"
|
|
51
51
|
type="text"
|
|
52
52
|
required
|
|
53
53
|
>
|
|
54
54
|
<input
|
|
55
55
|
v-model="bank_account.account_number"
|
|
56
|
-
:placeholder="
|
|
56
|
+
:placeholder="context?.formPlaceholders?.bankAccount"
|
|
57
57
|
type="text"
|
|
58
58
|
required
|
|
59
59
|
>
|
|
@@ -61,13 +61,13 @@
|
|
|
61
61
|
<div class="grid gap-2">
|
|
62
62
|
<input
|
|
63
63
|
v-model="bank_account.bank_account_holder"
|
|
64
|
-
:placeholder="
|
|
64
|
+
:placeholder="context?.formPlaceholders?.bankAccountHolder"
|
|
65
65
|
type="text"
|
|
66
66
|
required
|
|
67
67
|
>
|
|
68
68
|
<input
|
|
69
69
|
v-model="bank_account.bank_account_holder_id"
|
|
70
|
-
:placeholder="
|
|
70
|
+
:placeholder="context?.formPlaceholders?.bankAccountHolderID"
|
|
71
71
|
type="text"
|
|
72
72
|
>
|
|
73
73
|
<input
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
>
|
|
83
83
|
<input
|
|
84
84
|
v-model="bank_account.bank_address"
|
|
85
|
-
:placeholder="
|
|
85
|
+
:placeholder="context?.formPlaceholders?.bankAddress"
|
|
86
86
|
type="text"
|
|
87
87
|
>
|
|
88
88
|
</div>
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
thin
|
|
104
104
|
@click="val.push({})"
|
|
105
105
|
>
|
|
106
|
-
{{
|
|
106
|
+
{{ context?.formPlaceholders?.add }} {{ context?.label }}
|
|
107
107
|
</Btn>
|
|
108
108
|
</div>
|
|
109
109
|
</div>
|
|
@@ -116,23 +116,27 @@ import { watch } from 'vue';
|
|
|
116
116
|
import { Btn, useBagel } from '@bagelink/vue';
|
|
117
117
|
import Checkbox from '../form/inputs/Checkbox.vue';
|
|
118
118
|
|
|
119
|
+
export interface BankDetailsContext {
|
|
120
|
+
label?: string;
|
|
121
|
+
formPlaceholders?: {
|
|
122
|
+
sure?: string;
|
|
123
|
+
delete?: string;
|
|
124
|
+
cancel?: string;
|
|
125
|
+
label?: string;
|
|
126
|
+
bankName?: string;
|
|
127
|
+
bankBranch?: string;
|
|
128
|
+
bankAccount?: string;
|
|
129
|
+
bankAccountHolder?: string;
|
|
130
|
+
bankAccountHolderID?: string;
|
|
131
|
+
bankAddress?: string;
|
|
132
|
+
add?: string;
|
|
133
|
+
};
|
|
134
|
+
[key: string]: any;
|
|
135
|
+
}
|
|
119
136
|
const bagel = useBagel();
|
|
120
137
|
|
|
121
138
|
const props = defineProps<{
|
|
122
|
-
context:
|
|
123
|
-
form: {
|
|
124
|
-
sure: string
|
|
125
|
-
delete: string
|
|
126
|
-
cancel: string
|
|
127
|
-
label: string
|
|
128
|
-
bankName: string
|
|
129
|
-
bankBranch: string
|
|
130
|
-
bankAccount: string
|
|
131
|
-
bankAccountHolder: string
|
|
132
|
-
bankAccountHolderID: string
|
|
133
|
-
bankAddress: string
|
|
134
|
-
add: string
|
|
135
|
-
}
|
|
139
|
+
context: BankDetailsContext;
|
|
136
140
|
}>();
|
|
137
141
|
|
|
138
142
|
let val = $ref<any[]>([]);
|
|
@@ -11,20 +11,20 @@
|
|
|
11
11
|
v-if="deleteCandidate === i"
|
|
12
12
|
>
|
|
13
13
|
<p class="txt14">
|
|
14
|
-
{{
|
|
14
|
+
{{ context?.formPlaceholders?.sure }}
|
|
15
15
|
</p>
|
|
16
16
|
<Btn
|
|
17
17
|
thin
|
|
18
18
|
color="red"
|
|
19
19
|
@click="deleteContact(contact.id)"
|
|
20
20
|
>
|
|
21
|
-
{{
|
|
21
|
+
{{ context?.formPlaceholders?.delete }}
|
|
22
22
|
</Btn>
|
|
23
23
|
<Btn
|
|
24
24
|
thin
|
|
25
25
|
@click="deleteCandidate = -1"
|
|
26
26
|
>
|
|
27
|
-
{{
|
|
27
|
+
{{ context?.formPlaceholders?.cancel }}
|
|
28
28
|
</Btn>
|
|
29
29
|
</div>
|
|
30
30
|
<Checkbox
|
|
@@ -35,18 +35,18 @@
|
|
|
35
35
|
class="bglform-contact-label"
|
|
36
36
|
v-model="contact.label"
|
|
37
37
|
type="text"
|
|
38
|
-
:placeholder="
|
|
38
|
+
:placeholder="context?.formPlaceholders?.label"
|
|
39
39
|
>
|
|
40
40
|
|
|
41
41
|
<input
|
|
42
42
|
v-model="contact.email"
|
|
43
|
-
:placeholder="
|
|
43
|
+
:placeholder="context?.formPlaceholders?.email"
|
|
44
44
|
v-if="context?.id === 'email'"
|
|
45
45
|
type="email"
|
|
46
46
|
>
|
|
47
47
|
<input
|
|
48
48
|
v-model="contact.phone"
|
|
49
|
-
:placeholder="
|
|
49
|
+
:placeholder="context?.formPlaceholders?.phone"
|
|
50
50
|
v-if="context?.id === 'phone'"
|
|
51
51
|
type="tel"
|
|
52
52
|
>
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
thin
|
|
69
69
|
@click="val.push({})"
|
|
70
70
|
>
|
|
71
|
-
{{
|
|
71
|
+
{{ context?.formPlaceholders?.add }} {{ context?.label }}
|
|
72
72
|
</Btn>
|
|
73
73
|
</div>
|
|
74
74
|
</div>
|
|
@@ -81,19 +81,23 @@ import { watch } from 'vue';
|
|
|
81
81
|
import { Btn, useBagel } from '@bagelink/vue';
|
|
82
82
|
import Checkbox from '../form/inputs/Checkbox.vue';
|
|
83
83
|
|
|
84
|
+
export interface ContactArrContext {
|
|
85
|
+
label?: string;
|
|
86
|
+
formPlaceholders?: {
|
|
87
|
+
sure?: string
|
|
88
|
+
delete?: string
|
|
89
|
+
cancel?: string
|
|
90
|
+
label?: string
|
|
91
|
+
email?: string
|
|
92
|
+
phone?: string
|
|
93
|
+
add?: string
|
|
94
|
+
};
|
|
95
|
+
[key: string]: any;
|
|
96
|
+
}
|
|
84
97
|
const bagel = useBagel();
|
|
85
98
|
|
|
86
99
|
const props = defineProps<{
|
|
87
|
-
context:
|
|
88
|
-
form: {
|
|
89
|
-
sure: string
|
|
90
|
-
delete: string
|
|
91
|
-
cancel: string
|
|
92
|
-
label: string
|
|
93
|
-
email: string
|
|
94
|
-
phone: string
|
|
95
|
-
add: string
|
|
96
|
-
}
|
|
100
|
+
context: ContactArrContext
|
|
97
101
|
}>();
|
|
98
102
|
|
|
99
103
|
let val = $ref<any[]>([]);
|