@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.
@@ -11,20 +11,20 @@
11
11
  v-if="deleteCandidate === i"
12
12
  >
13
13
  <p class="txt14">
14
- {{ context?.formPlaceholders?.sure }}
14
+ {{ formPlaceholders?.sure }}
15
15
  </p>
16
16
  <Btn
17
17
  thin
18
18
  color="red"
19
19
  @click="deleteContact(address.id)"
20
20
  >
21
- {{ context?.formPlaceholders?.delete }}
21
+ {{ formPlaceholders?.delete }}
22
22
  </Btn>
23
23
  <Btn
24
24
  thin
25
25
  @click="deleteCandidate = -1"
26
26
  >
27
- {{ context?.formPlaceholders?.cancel }}
27
+ {{ 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="context?.formPlaceholders?.label"
38
+ :placeholder="formPlaceholders?.label"
39
39
  >
40
40
  <div class="bglform-contact-address">
41
41
  <input
42
42
  v-model="address.street"
43
- :placeholder="context?.formPlaceholders?.street"
43
+ :placeholder="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="context?.formPlaceholders?.city"
49
+ :placeholder="formPlaceholders?.city"
50
50
  type="text"
51
51
  >
52
52
  <input
53
53
  v-model="address.postal_code"
54
- :placeholder="context?.formPlaceholders?.zip"
54
+ :placeholder="formPlaceholders?.zip"
55
55
  type="text"
56
56
  >
57
57
  </div>
58
58
  <input
59
59
  v-model="address.country"
60
- :placeholder="context?.formPlaceholders?.country"
60
+ :placeholder="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
- {{ context?.formPlaceholders?.add }}
80
+ {{ formPlaceholders?.add }}
81
81
  {{ context?.label }}
82
82
  </Btn>
83
83
  </div>
@@ -92,26 +92,29 @@ import { Btn, useBagel } from '@bagelink/vue';
92
92
  import Checkbox from '../form/inputs/Checkbox.vue';
93
93
 
94
94
  export interface AddressArrContext {
95
-
96
95
  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;
96
+ id?: string;
97
+ value: any[];
98
+ node: Record<string, any>;
99
+ attrs: {
100
+ formPlaceholders?: {
101
+ add?: string;
102
+ cancel?: string;
103
+ city?: string;
104
+ country?: string;
105
+ delete?: string;
106
+ label?: string;
107
+ sure?: string;
108
+ zip?: string;
109
+ street?: string;
110
+ };
107
111
  };
108
- [key: string]: any;
109
-
110
112
  }
111
113
  const bagel = useBagel();
112
114
  const props = defineProps<{
113
115
  context: AddressArrContext
114
116
  }>();
117
+ const formPlaceholders = $computed(() => props.context?.attrs?.formPlaceholders);
115
118
 
116
119
  let val = $ref<any[]>([]);
117
120
  const addNew = () => {
@@ -11,20 +11,20 @@
11
11
  v-if="deleteCandidate === i"
12
12
  >
13
13
  <p class="txt14">
14
- {{ context?.formPlaceholders?.sure }}
14
+ {{ 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
- {{ context?.formPlaceholders?.delete }}
21
+ {{ formPlaceholders?.delete }}
22
22
  </Btn>
23
23
  <Btn
24
24
  thin
25
25
  @click="deleteCandidate = -1"
26
26
  >
27
- {{ context?.formPlaceholders?.cancel }}
27
+ {{ 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="context?.formPlaceholders?.label"
38
+ :placeholder="formPlaceholders?.label"
39
39
  >
40
40
  <div class="bglform-contact-address">
41
41
  <input
42
42
  v-model="bank_account.bank_name"
43
- :placeholder="context?.formPlaceholders?.bankName"
43
+ :placeholder="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="context?.formPlaceholders?.bankBranch"
50
+ :placeholder="formPlaceholders?.bankBranch"
51
51
  type="text"
52
52
  required
53
53
  >
54
54
  <input
55
55
  v-model="bank_account.account_number"
56
- :placeholder="context?.formPlaceholders?.bankAccount"
56
+ :placeholder="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="context?.formPlaceholders?.bankAccountHolder"
64
+ :placeholder="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="context?.formPlaceholders?.bankAccountHolderID"
70
+ :placeholder="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="context?.formPlaceholders?.bankAddress"
85
+ :placeholder="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
- {{ context?.formPlaceholders?.add }} {{ context?.label }}
106
+ {{ formPlaceholders?.add }} {{ context?.label }}
107
107
  </Btn>
108
108
  </div>
109
109
  </div>
@@ -118,26 +118,31 @@ import Checkbox from '../form/inputs/Checkbox.vue';
118
118
 
119
119
  export interface BankDetailsContext {
120
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;
121
+ id?: string;
122
+ value: any[];
123
+ node: Record<string, any>;
124
+ attrs: {
125
+ formPlaceholders?: {
126
+ sure?: string;
127
+ delete?: string;
128
+ cancel?: string;
129
+ label?: string;
130
+ bankName?: string;
131
+ bankBranch?: string;
132
+ bankAccount?: string;
133
+ bankAccountHolder?: string;
134
+ bankAccountHolderID?: string;
135
+ bankAddress?: string;
136
+ add?: string;
137
+ };
133
138
  };
134
- [key: string]: any;
135
139
  }
136
140
  const bagel = useBagel();
137
141
 
138
142
  const props = defineProps<{
139
143
  context: BankDetailsContext;
140
144
  }>();
145
+ const formPlaceholders = $computed(() => props.context?.attrs?.formPlaceholders);
141
146
 
142
147
  let val = $ref<any[]>([]);
143
148
 
@@ -11,20 +11,20 @@
11
11
  v-if="deleteCandidate === i"
12
12
  >
13
13
  <p class="txt14">
14
- {{ context?.formPlaceholders?.sure }}
14
+ {{ formPlaceholders?.sure }}
15
15
  </p>
16
16
  <Btn
17
17
  thin
18
18
  color="red"
19
19
  @click="deleteContact(contact.id)"
20
20
  >
21
- {{ context?.formPlaceholders?.delete }}
21
+ {{ formPlaceholders?.delete }}
22
22
  </Btn>
23
23
  <Btn
24
24
  thin
25
25
  @click="deleteCandidate = -1"
26
26
  >
27
- {{ context?.formPlaceholders?.cancel }}
27
+ {{ 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="context?.formPlaceholders?.label"
38
+ :placeholder="formPlaceholders?.label"
39
39
  >
40
40
 
41
41
  <input
42
42
  v-model="contact.email"
43
- :placeholder="context?.formPlaceholders?.email"
43
+ :placeholder="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="context?.formPlaceholders?.phone"
49
+ :placeholder="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
- {{ context?.formPlaceholders?.add }} {{ context?.label }}
71
+ {{ formPlaceholders?.add }} {{ context?.label }}
72
72
  </Btn>
73
73
  </div>
74
74
  </div>
@@ -83,16 +83,20 @@ import Checkbox from '../form/inputs/Checkbox.vue';
83
83
 
84
84
  export interface ContactArrContext {
85
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
86
+ id?: string;
87
+ value: any[];
88
+ node: Record<string, any>;
89
+ attrs: {
90
+ formPlaceholders?: {
91
+ sure?: string
92
+ delete?: string
93
+ cancel?: string
94
+ label?: string
95
+ email?: string
96
+ phone?: string
97
+ add?: string
98
+ };
94
99
  };
95
- [key: string]: any;
96
100
  }
97
101
  const bagel = useBagel();
98
102
 
@@ -100,6 +104,8 @@ const props = defineProps<{
100
104
  context: ContactArrContext
101
105
  }>();
102
106
 
107
+ const formPlaceholders = $computed(() => props.context?.attrs?.formPlaceholders);
108
+
103
109
  let val = $ref<any[]>([]);
104
110
  let deleteCandidate = $ref<number>(-1);
105
111