@justifi/webcomponents 0.0.14 → 0.2.0
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/CHANGELOG.md +40 -0
- package/changelog-template.hbs +41 -0
- package/dist/cjs/{index-e1b45289.js → index-3947d225.js} +65 -1
- package/dist/cjs/justifi-bank-account-form.cjs.entry.js +59 -0
- package/dist/cjs/justifi-billing-form.cjs.entry.js +2150 -0
- package/dist/cjs/justifi-card-form.cjs.entry.js +59 -0
- package/dist/cjs/justifi-payment-method-form.cjs.entry.js +109 -0
- package/dist/cjs/{justifi-bank-account-form_4.cjs.entry.js → justifi-payments-list.cjs.entry.js} +1 -206
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/select-input_2.cjs.entry.js +59 -0
- package/dist/cjs/webcomponents.cjs.js +3 -3
- package/dist/collection/collection-manifest.json +5 -2
- package/dist/collection/components/bank-account-form/bank-account-form.js +5 -3
- package/dist/collection/components/billing-form/billing-form-schema.js +14 -0
- package/dist/collection/components/billing-form/billing-form.css +11 -0
- package/dist/collection/components/billing-form/billing-form.js +92 -0
- package/dist/collection/components/billing-form/state-options.js +243 -0
- package/dist/collection/components/card-form/card-form.js +5 -3
- package/dist/collection/components/payment-method-form/payment-method-form.js +4 -4
- package/dist/collection/components/select-input/select-input.css +7 -0
- package/dist/collection/components/select-input/select-input.js +144 -0
- package/dist/collection/components/text-input/text-input.css +7 -0
- package/dist/collection/components/text-input/text-input.js +126 -0
- package/dist/components/index.d.ts +3 -0
- package/dist/components/index.js +3 -0
- package/dist/components/justifi-bank-account-form.js +4 -2
- package/dist/components/justifi-billing-form.d.ts +11 -0
- package/dist/components/justifi-billing-form.js +2180 -0
- package/dist/components/justifi-card-form.js +4 -2
- package/dist/components/payment-method-form.js +2 -2
- package/dist/components/select-input.d.ts +11 -0
- package/dist/components/select-input.js +6 -0
- package/dist/components/select-input2.js +52 -0
- package/dist/components/text-input.d.ts +11 -0
- package/dist/components/text-input.js +6 -0
- package/dist/components/text-input2.js +48 -0
- package/dist/esm/{index-c1f569bd.js → index-0bcf33c4.js} +65 -1
- package/dist/esm/justifi-bank-account-form.entry.js +55 -0
- package/dist/esm/justifi-billing-form.entry.js +2146 -0
- package/dist/esm/justifi-card-form.entry.js +55 -0
- package/dist/esm/justifi-payment-method-form.entry.js +105 -0
- package/dist/esm/{justifi-bank-account-form_4.entry.js → justifi-payments-list.entry.js} +2 -204
- package/dist/esm/loader.js +4 -4
- package/dist/esm/select-input_2.entry.js +54 -0
- package/dist/esm/webcomponents.js +4 -4
- package/dist/types/components/billing-form/billing-form-schema.d.ts +15 -0
- package/dist/types/components/billing-form/billing-form.d.ts +17 -0
- package/dist/types/components/billing-form/state-options.d.ts +5 -0
- package/dist/types/components/payment-method-form/payment-method-form.d.ts +2 -2
- package/dist/types/components/payment-method-form/theme.d.ts +3 -1
- package/dist/types/components/select-input/select-input.d.ts +18 -0
- package/dist/types/components/text-input/text-input.d.ts +14 -0
- package/dist/types/components.d.ts +74 -5
- package/dist/webcomponents/p-0cddfd4f.entry.js +1 -0
- package/dist/webcomponents/p-17badb93.entry.js +1 -0
- package/dist/webcomponents/p-7fd07095.entry.js +1 -0
- package/dist/webcomponents/p-864e32fd.entry.js +1 -0
- package/dist/webcomponents/p-cecf0fe8.entry.js +1 -0
- package/dist/webcomponents/p-d3dc4e0a.entry.js +1 -0
- package/dist/webcomponents/p-e82c9746.js +2 -0
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +8 -3
- package/readme.md +11 -72
- package/LICENSE +0 -21
- package/dist/webcomponents/p-1de39730.js +0 -2
- package/dist/webcomponents/p-d6caba00.entry.js +0 -1
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
const StateOptions = [
|
|
2
|
+
{
|
|
3
|
+
label: 'Choose state',
|
|
4
|
+
value: ''
|
|
5
|
+
},
|
|
6
|
+
{
|
|
7
|
+
label: 'Alabama',
|
|
8
|
+
value: 'AL'
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
label: 'Alaska',
|
|
12
|
+
value: 'AK'
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
label: 'American Samoa',
|
|
16
|
+
value: 'AS'
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
label: 'Arizona',
|
|
20
|
+
value: 'AZ'
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
label: 'Arkansas',
|
|
24
|
+
value: 'AR'
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
label: 'California',
|
|
28
|
+
value: 'CA'
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
label: 'Colorado',
|
|
32
|
+
value: 'CO'
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
label: 'Connecticut',
|
|
36
|
+
value: 'CT'
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
label: 'Delaware',
|
|
40
|
+
value: 'DE'
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
label: 'District Of Columbia',
|
|
44
|
+
value: 'DC'
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
label: 'Federated States Of Micronesia',
|
|
48
|
+
value: 'FM'
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
label: 'Florida',
|
|
52
|
+
value: 'FL'
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
label: 'Georgia',
|
|
56
|
+
value: 'GA'
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
label: 'Guam',
|
|
60
|
+
value: 'GU'
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
label: 'Hawaii',
|
|
64
|
+
value: 'HI'
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
label: 'Idaho',
|
|
68
|
+
value: 'ID'
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
label: 'Illinois',
|
|
72
|
+
value: 'IL'
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
label: 'Indiana',
|
|
76
|
+
value: 'IN'
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
label: 'Iowa',
|
|
80
|
+
value: 'IA'
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
label: 'Kansas',
|
|
84
|
+
value: 'KS'
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
label: 'Kentucky',
|
|
88
|
+
value: 'KY'
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
label: 'Louisiana',
|
|
92
|
+
value: 'LA'
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
label: 'Maine',
|
|
96
|
+
value: 'ME'
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
label: 'Marshall Islands',
|
|
100
|
+
value: 'MH'
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
label: 'Maryland',
|
|
104
|
+
value: 'MD'
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
label: 'Massachusetts',
|
|
108
|
+
value: 'MA'
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
label: 'Michigan',
|
|
112
|
+
value: 'MI'
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
label: 'Minnesota',
|
|
116
|
+
value: 'MN'
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
label: 'Mississippi',
|
|
120
|
+
value: 'MS'
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
label: 'Missouri',
|
|
124
|
+
value: 'MO'
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
label: 'Montana',
|
|
128
|
+
value: 'MT'
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
label: 'Nebraska',
|
|
132
|
+
value: 'NE'
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
label: 'Nevada',
|
|
136
|
+
value: 'NV'
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
label: 'New Hampshire',
|
|
140
|
+
value: 'NH'
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
label: 'New Jersey',
|
|
144
|
+
value: 'NJ'
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
label: 'New Mexico',
|
|
148
|
+
value: 'NM'
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
label: 'New York',
|
|
152
|
+
value: 'NY'
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
label: 'North Carolina',
|
|
156
|
+
value: 'NC'
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
label: 'North Dakota',
|
|
160
|
+
value: 'ND'
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
label: 'Northern Mariana Islands',
|
|
164
|
+
value: 'MP'
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
label: 'Ohio',
|
|
168
|
+
value: 'OH'
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
label: 'Oklahoma',
|
|
172
|
+
value: 'OK'
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
label: 'Oregon',
|
|
176
|
+
value: 'OR'
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
label: 'Palau',
|
|
180
|
+
value: 'PW'
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
label: 'Pennsylvania',
|
|
184
|
+
value: 'PA'
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
label: 'Puerto Rico',
|
|
188
|
+
value: 'PR'
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
label: 'Rhode Island',
|
|
192
|
+
value: 'RI'
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
label: 'South Carolina',
|
|
196
|
+
value: 'SC'
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
label: 'South Dakota',
|
|
200
|
+
value: 'SD'
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
label: 'Tennessee',
|
|
204
|
+
value: 'TN'
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
label: 'Texas',
|
|
208
|
+
value: 'TX'
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
label: 'Utah',
|
|
212
|
+
value: 'UT'
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
label: 'Vermont',
|
|
216
|
+
value: 'VT'
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
label: 'Virgin Islands',
|
|
220
|
+
value: 'VI'
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
label: 'Virginia',
|
|
224
|
+
value: 'VA'
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
label: 'Washington',
|
|
228
|
+
value: 'WA'
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
label: 'West Virginia',
|
|
232
|
+
value: 'WV'
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
label: 'Wisconsin',
|
|
236
|
+
value: 'WI'
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
label: 'Wyoming',
|
|
240
|
+
value: 'WY'
|
|
241
|
+
}
|
|
242
|
+
];
|
|
243
|
+
export default StateOptions;
|
|
@@ -18,8 +18,10 @@ export class CardForm {
|
|
|
18
18
|
this.parseStyleOverrides();
|
|
19
19
|
}
|
|
20
20
|
parseStyleOverrides() {
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
if (this.styleOverrides) {
|
|
22
|
+
const parsedStyleOverrides = JSON.parse(this.styleOverrides);
|
|
23
|
+
this.internalStyleOverrides = parsedStyleOverrides;
|
|
24
|
+
}
|
|
23
25
|
}
|
|
24
26
|
async tokenize(...args) {
|
|
25
27
|
if (!this.childRef) {
|
|
@@ -136,7 +138,7 @@ export class CardForm {
|
|
|
136
138
|
return {
|
|
137
139
|
"tokenize": {
|
|
138
140
|
"complexType": {
|
|
139
|
-
"signature": "(
|
|
141
|
+
"signature": "(clientId: string, paymentMethodMetadata: any, account?: string) => Promise<any>",
|
|
140
142
|
"parameters": [{
|
|
141
143
|
"tags": [],
|
|
142
144
|
"text": ""
|
|
@@ -50,10 +50,10 @@ export class PaymentMethodForm {
|
|
|
50
50
|
this.postMessage(eventType, payload);
|
|
51
51
|
});
|
|
52
52
|
}
|
|
53
|
-
async tokenize(
|
|
53
|
+
async tokenize(clientId, paymentMethodMetadata, account) {
|
|
54
54
|
const eventType = MessageEventType[this.paymentMethodFormType].tokenize;
|
|
55
55
|
const payload = {
|
|
56
|
-
|
|
56
|
+
clientId: clientId,
|
|
57
57
|
paymentMethodMetadata: paymentMethodMetadata,
|
|
58
58
|
account: account
|
|
59
59
|
};
|
|
@@ -125,7 +125,7 @@ export class PaymentMethodForm {
|
|
|
125
125
|
"type": "unknown",
|
|
126
126
|
"mutable": false,
|
|
127
127
|
"complexType": {
|
|
128
|
-
"original": "Theme",
|
|
128
|
+
"original": "Theme | undefined",
|
|
129
129
|
"resolved": "Theme",
|
|
130
130
|
"references": {
|
|
131
131
|
"Theme": {
|
|
@@ -185,7 +185,7 @@ export class PaymentMethodForm {
|
|
|
185
185
|
return {
|
|
186
186
|
"tokenize": {
|
|
187
187
|
"complexType": {
|
|
188
|
-
"signature": "(
|
|
188
|
+
"signature": "(clientId: string, paymentMethodMetadata: any, account?: string) => Promise<any>",
|
|
189
189
|
"parameters": [{
|
|
190
190
|
"tags": [],
|
|
191
191
|
"text": ""
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import { Host, h } from '@stencil/core';
|
|
2
|
+
export class SelectInput {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.name = undefined;
|
|
5
|
+
this.label = undefined;
|
|
6
|
+
this.defaultValue = undefined;
|
|
7
|
+
this.error = undefined;
|
|
8
|
+
this.options = undefined;
|
|
9
|
+
this.internalValue = '';
|
|
10
|
+
}
|
|
11
|
+
onInput(event) {
|
|
12
|
+
const target = event.target;
|
|
13
|
+
const name = target.getAttribute('name');
|
|
14
|
+
this.fieldReceivedInput.emit({ name: name, value: target.value });
|
|
15
|
+
}
|
|
16
|
+
;
|
|
17
|
+
render() {
|
|
18
|
+
return (h(Host, null, h("label", null, this.label), h("select", { name: this.name, onInput: (event) => this.onInput(event) }, this.options.map((option) => {
|
|
19
|
+
return (h("option", { value: option.value }, option.label));
|
|
20
|
+
})), this.error && h("div", { style: { color: 'red' } }, this.error)));
|
|
21
|
+
}
|
|
22
|
+
static get is() { return "select-input"; }
|
|
23
|
+
static get encapsulation() { return "shadow"; }
|
|
24
|
+
static get originalStyleUrls() {
|
|
25
|
+
return {
|
|
26
|
+
"$": ["select-input.css"]
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
static get styleUrls() {
|
|
30
|
+
return {
|
|
31
|
+
"$": ["select-input.css"]
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
static get properties() {
|
|
35
|
+
return {
|
|
36
|
+
"name": {
|
|
37
|
+
"type": "string",
|
|
38
|
+
"mutable": false,
|
|
39
|
+
"complexType": {
|
|
40
|
+
"original": "string",
|
|
41
|
+
"resolved": "string",
|
|
42
|
+
"references": {}
|
|
43
|
+
},
|
|
44
|
+
"required": false,
|
|
45
|
+
"optional": false,
|
|
46
|
+
"docs": {
|
|
47
|
+
"tags": [],
|
|
48
|
+
"text": ""
|
|
49
|
+
},
|
|
50
|
+
"attribute": "name",
|
|
51
|
+
"reflect": false
|
|
52
|
+
},
|
|
53
|
+
"label": {
|
|
54
|
+
"type": "string",
|
|
55
|
+
"mutable": false,
|
|
56
|
+
"complexType": {
|
|
57
|
+
"original": "string",
|
|
58
|
+
"resolved": "string",
|
|
59
|
+
"references": {}
|
|
60
|
+
},
|
|
61
|
+
"required": false,
|
|
62
|
+
"optional": false,
|
|
63
|
+
"docs": {
|
|
64
|
+
"tags": [],
|
|
65
|
+
"text": ""
|
|
66
|
+
},
|
|
67
|
+
"attribute": "label",
|
|
68
|
+
"reflect": false
|
|
69
|
+
},
|
|
70
|
+
"defaultValue": {
|
|
71
|
+
"type": "string",
|
|
72
|
+
"mutable": false,
|
|
73
|
+
"complexType": {
|
|
74
|
+
"original": "string",
|
|
75
|
+
"resolved": "string",
|
|
76
|
+
"references": {}
|
|
77
|
+
},
|
|
78
|
+
"required": false,
|
|
79
|
+
"optional": false,
|
|
80
|
+
"docs": {
|
|
81
|
+
"tags": [],
|
|
82
|
+
"text": ""
|
|
83
|
+
},
|
|
84
|
+
"attribute": "default-value",
|
|
85
|
+
"reflect": false
|
|
86
|
+
},
|
|
87
|
+
"error": {
|
|
88
|
+
"type": "string",
|
|
89
|
+
"mutable": false,
|
|
90
|
+
"complexType": {
|
|
91
|
+
"original": "string",
|
|
92
|
+
"resolved": "string",
|
|
93
|
+
"references": {}
|
|
94
|
+
},
|
|
95
|
+
"required": false,
|
|
96
|
+
"optional": false,
|
|
97
|
+
"docs": {
|
|
98
|
+
"tags": [],
|
|
99
|
+
"text": ""
|
|
100
|
+
},
|
|
101
|
+
"attribute": "error",
|
|
102
|
+
"reflect": false
|
|
103
|
+
},
|
|
104
|
+
"options": {
|
|
105
|
+
"type": "unknown",
|
|
106
|
+
"mutable": false,
|
|
107
|
+
"complexType": {
|
|
108
|
+
"original": "{ label: string, value: string }[]",
|
|
109
|
+
"resolved": "{ label: string; value: string; }[]",
|
|
110
|
+
"references": {}
|
|
111
|
+
},
|
|
112
|
+
"required": false,
|
|
113
|
+
"optional": false,
|
|
114
|
+
"docs": {
|
|
115
|
+
"tags": [],
|
|
116
|
+
"text": ""
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
static get states() {
|
|
122
|
+
return {
|
|
123
|
+
"internalValue": {}
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
static get events() {
|
|
127
|
+
return [{
|
|
128
|
+
"method": "fieldReceivedInput",
|
|
129
|
+
"name": "fieldReceivedInput",
|
|
130
|
+
"bubbles": true,
|
|
131
|
+
"cancelable": true,
|
|
132
|
+
"composed": true,
|
|
133
|
+
"docs": {
|
|
134
|
+
"tags": [],
|
|
135
|
+
"text": ""
|
|
136
|
+
},
|
|
137
|
+
"complexType": {
|
|
138
|
+
"original": "{ name: string, value: string }",
|
|
139
|
+
"resolved": "{ name: string; value: string; }",
|
|
140
|
+
"references": {}
|
|
141
|
+
}
|
|
142
|
+
}];
|
|
143
|
+
}
|
|
144
|
+
}
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import { Host, h } from '@stencil/core';
|
|
2
|
+
export class TextInput {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.name = undefined;
|
|
5
|
+
this.label = undefined;
|
|
6
|
+
this.defaultValue = undefined;
|
|
7
|
+
this.error = undefined;
|
|
8
|
+
this.internalValue = '';
|
|
9
|
+
}
|
|
10
|
+
onInput(event) {
|
|
11
|
+
const target = event.target;
|
|
12
|
+
const name = target.getAttribute('name');
|
|
13
|
+
this.fieldReceivedInput.emit({ name: name, value: target.value });
|
|
14
|
+
}
|
|
15
|
+
;
|
|
16
|
+
render() {
|
|
17
|
+
return (h(Host, null, h("label", null, this.label), h("input", { name: this.name, type: "text", onInput: (event) => this.onInput(event), value: this.internalValue || this.defaultValue }), this.error && h("div", { style: { color: 'red' } }, this.error)));
|
|
18
|
+
}
|
|
19
|
+
static get is() { return "text-input"; }
|
|
20
|
+
static get encapsulation() { return "shadow"; }
|
|
21
|
+
static get originalStyleUrls() {
|
|
22
|
+
return {
|
|
23
|
+
"$": ["text-input.css"]
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
static get styleUrls() {
|
|
27
|
+
return {
|
|
28
|
+
"$": ["text-input.css"]
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
static get properties() {
|
|
32
|
+
return {
|
|
33
|
+
"name": {
|
|
34
|
+
"type": "string",
|
|
35
|
+
"mutable": false,
|
|
36
|
+
"complexType": {
|
|
37
|
+
"original": "string",
|
|
38
|
+
"resolved": "string",
|
|
39
|
+
"references": {}
|
|
40
|
+
},
|
|
41
|
+
"required": false,
|
|
42
|
+
"optional": false,
|
|
43
|
+
"docs": {
|
|
44
|
+
"tags": [],
|
|
45
|
+
"text": ""
|
|
46
|
+
},
|
|
47
|
+
"attribute": "name",
|
|
48
|
+
"reflect": false
|
|
49
|
+
},
|
|
50
|
+
"label": {
|
|
51
|
+
"type": "string",
|
|
52
|
+
"mutable": false,
|
|
53
|
+
"complexType": {
|
|
54
|
+
"original": "string",
|
|
55
|
+
"resolved": "string",
|
|
56
|
+
"references": {}
|
|
57
|
+
},
|
|
58
|
+
"required": false,
|
|
59
|
+
"optional": false,
|
|
60
|
+
"docs": {
|
|
61
|
+
"tags": [],
|
|
62
|
+
"text": ""
|
|
63
|
+
},
|
|
64
|
+
"attribute": "label",
|
|
65
|
+
"reflect": false
|
|
66
|
+
},
|
|
67
|
+
"defaultValue": {
|
|
68
|
+
"type": "string",
|
|
69
|
+
"mutable": false,
|
|
70
|
+
"complexType": {
|
|
71
|
+
"original": "string",
|
|
72
|
+
"resolved": "string",
|
|
73
|
+
"references": {}
|
|
74
|
+
},
|
|
75
|
+
"required": false,
|
|
76
|
+
"optional": false,
|
|
77
|
+
"docs": {
|
|
78
|
+
"tags": [],
|
|
79
|
+
"text": ""
|
|
80
|
+
},
|
|
81
|
+
"attribute": "default-value",
|
|
82
|
+
"reflect": false
|
|
83
|
+
},
|
|
84
|
+
"error": {
|
|
85
|
+
"type": "string",
|
|
86
|
+
"mutable": false,
|
|
87
|
+
"complexType": {
|
|
88
|
+
"original": "string",
|
|
89
|
+
"resolved": "string",
|
|
90
|
+
"references": {}
|
|
91
|
+
},
|
|
92
|
+
"required": false,
|
|
93
|
+
"optional": false,
|
|
94
|
+
"docs": {
|
|
95
|
+
"tags": [],
|
|
96
|
+
"text": ""
|
|
97
|
+
},
|
|
98
|
+
"attribute": "error",
|
|
99
|
+
"reflect": false
|
|
100
|
+
}
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
static get states() {
|
|
104
|
+
return {
|
|
105
|
+
"internalValue": {}
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
static get events() {
|
|
109
|
+
return [{
|
|
110
|
+
"method": "fieldReceivedInput",
|
|
111
|
+
"name": "fieldReceivedInput",
|
|
112
|
+
"bubbles": true,
|
|
113
|
+
"cancelable": true,
|
|
114
|
+
"composed": true,
|
|
115
|
+
"docs": {
|
|
116
|
+
"tags": [],
|
|
117
|
+
"text": ""
|
|
118
|
+
},
|
|
119
|
+
"complexType": {
|
|
120
|
+
"original": "{ name: string, value: string }",
|
|
121
|
+
"resolved": "{ name: string; value: string; }",
|
|
122
|
+
"references": {}
|
|
123
|
+
}
|
|
124
|
+
}];
|
|
125
|
+
}
|
|
126
|
+
}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
/* webcomponents custom elements */
|
|
2
2
|
export { BankAccountForm as JustifiBankAccountForm } from '../types/components/bank-account-form/bank-account-form';
|
|
3
|
+
export { BillingForm as JustifiBillingForm } from '../types/components/billing-form/billing-form';
|
|
3
4
|
export { CardForm as JustifiCardForm } from '../types/components/card-form/card-form';
|
|
4
5
|
export { PaymentMethodForm as JustifiPaymentMethodForm } from '../types/components/payment-method-form/payment-method-form';
|
|
5
6
|
export { PaymentsList as JustifiPaymentsList } from '../types/components/payments-list/payments-list';
|
|
7
|
+
export { SelectInput as SelectInput } from '../types/components/select-input/select-input';
|
|
8
|
+
export { TextInput as TextInput } from '../types/components/text-input/text-input';
|
|
6
9
|
|
|
7
10
|
/**
|
|
8
11
|
* Used to manually set the base path where assets can be found.
|
package/dist/components/index.js
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
export { setAssetPath, setNonce, setPlatformOptions } from '@stencil/core/internal/client';
|
|
2
2
|
export { JustifiBankAccountForm, defineCustomElement as defineCustomElementJustifiBankAccountForm } from './justifi-bank-account-form.js';
|
|
3
|
+
export { JustifiBillingForm, defineCustomElement as defineCustomElementJustifiBillingForm } from './justifi-billing-form.js';
|
|
3
4
|
export { JustifiCardForm, defineCustomElement as defineCustomElementJustifiCardForm } from './justifi-card-form.js';
|
|
4
5
|
export { JustifiPaymentMethodForm, defineCustomElement as defineCustomElementJustifiPaymentMethodForm } from './justifi-payment-method-form.js';
|
|
5
6
|
export { JustifiPaymentsList, defineCustomElement as defineCustomElementJustifiPaymentsList } from './justifi-payments-list.js';
|
|
7
|
+
export { SelectInput, defineCustomElement as defineCustomElementSelectInput } from './select-input.js';
|
|
8
|
+
export { TextInput, defineCustomElement as defineCustomElementTextInput } from './text-input.js';
|
|
@@ -25,8 +25,10 @@ const BankAccountForm = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
|
25
25
|
this.parseStyleOverrides();
|
|
26
26
|
}
|
|
27
27
|
parseStyleOverrides() {
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
if (this.styleOverrides) {
|
|
29
|
+
const parsedStyleOverrides = JSON.parse(this.styleOverrides);
|
|
30
|
+
this.internalStyleOverrides = parsedStyleOverrides;
|
|
31
|
+
}
|
|
30
32
|
}
|
|
31
33
|
async tokenize(...args) {
|
|
32
34
|
if (!this.childRef) {
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface JustifiBillingForm extends Components.JustifiBillingForm, HTMLElement {}
|
|
4
|
+
export const JustifiBillingForm: {
|
|
5
|
+
prototype: JustifiBillingForm;
|
|
6
|
+
new (): JustifiBillingForm;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|