@bagelink/vue 0.0.439 → 0.0.441
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/AccordionItem.vue.d.ts.map +1 -1
- package/dist/components/DataPreview.vue.d.ts +6 -0
- package/dist/components/DataPreview.vue.d.ts.map +1 -1
- package/dist/components/Flag.vue.d.ts +16 -0
- package/dist/components/Flag.vue.d.ts.map +1 -0
- package/dist/components/Modal.vue.d.ts.map +1 -1
- package/dist/components/TableSchema.vue.d.ts +6 -5
- package/dist/components/TableSchema.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/FileUpload.vue.d.ts +164 -2
- package/dist/components/form/inputs/FileUpload.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/TelInput.vue.d.ts +165 -0
- package/dist/components/form/inputs/TelInput.vue.d.ts.map +1 -0
- package/dist/components/form/inputs/TextInput.vue.d.ts +2 -5
- package/dist/components/form/inputs/TextInput.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/index.d.ts +1 -0
- package/dist/components/form/inputs/index.d.ts.map +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/layout/Tabs.vue.d.ts.map +1 -1
- package/dist/index.cjs +6502 -1540
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +6502 -1540
- package/dist/style.css +1877 -93
- package/dist/utils/BagelFormUtils.d.ts.map +1 -1
- package/dist/utils/allCountries.d.ts +11 -0
- package/dist/utils/allCountries.d.ts.map +1 -0
- package/package.json +3 -4
- package/src/components/AccordionItem.vue +8 -5
- package/src/components/DataPreview.vue +14 -4
- package/src/components/Flag.vue +1349 -0
- package/src/components/Modal.vue +26 -9
- package/src/components/ModalForm.vue +1 -1
- package/src/components/PageTitle.vue +8 -1
- package/src/components/TableSchema.vue +34 -2
- package/src/components/form/inputs/FileUpload.vue +28 -11
- package/src/components/form/inputs/SelectInput.vue +6 -0
- package/src/components/form/inputs/TelInput.vue +401 -0
- package/src/components/form/inputs/TextInput.vue +15 -53
- package/src/components/form/inputs/index.ts +1 -0
- package/src/components/index.ts +1 -0
- package/src/components/layout/Tabs.vue +1 -0
- package/src/index.ts +1 -0
- package/src/styles/appearance.css +610 -0
- package/src/styles/buttons.css +8 -0
- package/src/styles/layout.css +46 -1
- package/src/styles/mobilLayout.css +37 -0
- package/src/styles/modal.css +5 -2
- package/src/styles/text.css +39 -0
- package/src/utils/BagelFormUtils.ts +2 -0
- package/src/utils/allCountries.ts +337 -0
- package/src/components/whatsapp/form/MsgTemplate.vue +0 -224
- package/src/components/whatsapp/form/TextVariableExamples.vue +0 -79
- package/src/components/whatsapp/index.ts +0 -2
- package/src/components/whatsapp/interfaces.ts +0 -58
|
@@ -34,6 +34,10 @@
|
|
|
34
34
|
height: 100vh;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
+
.m_round {
|
|
38
|
+
border-radius: var(--btn-border-radius);
|
|
39
|
+
}
|
|
40
|
+
|
|
37
41
|
.m_justify-items-center {
|
|
38
42
|
justify-items: center;
|
|
39
43
|
}
|
|
@@ -1141,6 +1145,7 @@
|
|
|
1141
1145
|
.m_sticky,
|
|
1142
1146
|
.m_position-sticky {
|
|
1143
1147
|
position: sticky !important;
|
|
1148
|
+
top: 0;
|
|
1144
1149
|
}
|
|
1145
1150
|
|
|
1146
1151
|
.m_flex-stretch {
|
|
@@ -1506,10 +1511,42 @@
|
|
|
1506
1511
|
height: max-content;
|
|
1507
1512
|
}
|
|
1508
1513
|
|
|
1514
|
+
.m_grid-span-1 {
|
|
1515
|
+
grid-column: span 1;
|
|
1516
|
+
}
|
|
1517
|
+
|
|
1518
|
+
.m_grid-span-2 {
|
|
1519
|
+
grid-column: span 2;
|
|
1520
|
+
}
|
|
1521
|
+
|
|
1522
|
+
.m_grid-span-3 {
|
|
1523
|
+
grid-column: span 3;
|
|
1524
|
+
}
|
|
1525
|
+
|
|
1526
|
+
.m_grid-span-4 {
|
|
1527
|
+
grid-column: span 4;
|
|
1528
|
+
}
|
|
1529
|
+
|
|
1530
|
+
.m_grid-span-5 {
|
|
1531
|
+
grid-column: span 5;
|
|
1532
|
+
}
|
|
1533
|
+
|
|
1534
|
+
.m_grid-span-6 {
|
|
1535
|
+
grid-column: span 6;
|
|
1536
|
+
}
|
|
1537
|
+
|
|
1509
1538
|
.m_overflow-hidden {
|
|
1510
1539
|
overflow: hidden;
|
|
1511
1540
|
}
|
|
1512
1541
|
|
|
1542
|
+
.m_overflow {
|
|
1543
|
+
overflow: auto;
|
|
1544
|
+
}
|
|
1545
|
+
|
|
1546
|
+
.m_overflow-unset {
|
|
1547
|
+
overflow: unset;
|
|
1548
|
+
}
|
|
1549
|
+
|
|
1513
1550
|
.m_overflow-x {
|
|
1514
1551
|
overflow-x: auto;
|
|
1515
1552
|
}
|
package/src/styles/modal.css
CHANGED
package/src/styles/text.css
CHANGED
|
@@ -233,6 +233,25 @@
|
|
|
233
233
|
text-decoration: none;
|
|
234
234
|
}
|
|
235
235
|
|
|
236
|
+
.word-break {
|
|
237
|
+
word-break: break-word;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
.uppercase {
|
|
241
|
+
text-transform: uppercase;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
.lowercase {
|
|
245
|
+
text-transform: lowercase;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
.capitalize {
|
|
249
|
+
text-transform: capitalize;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
|
|
236
255
|
.bgl_icon-font {
|
|
237
256
|
font-family: "Material Symbols Outlined", serif !important;
|
|
238
257
|
}
|
|
@@ -249,6 +268,10 @@
|
|
|
249
268
|
text-wrap: pretty;
|
|
250
269
|
}
|
|
251
270
|
|
|
271
|
+
.white-space {
|
|
272
|
+
white-space: nowrap;
|
|
273
|
+
}
|
|
274
|
+
|
|
252
275
|
|
|
253
276
|
@media screen and (max-width: 910px) {
|
|
254
277
|
|
|
@@ -518,4 +541,20 @@
|
|
|
518
541
|
text-wrap: pretty;
|
|
519
542
|
}
|
|
520
543
|
|
|
544
|
+
.m_word-break {
|
|
545
|
+
word-break: break-word;
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
.m_uppercase {
|
|
549
|
+
text-transform: uppercase;
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
.m_lowercase {
|
|
553
|
+
text-transform: lowercase;
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
.m_capitalize {
|
|
557
|
+
text-transform: capitalize;
|
|
558
|
+
}
|
|
559
|
+
|
|
521
560
|
}
|
|
@@ -62,6 +62,7 @@ export function txtField(
|
|
|
62
62
|
id,
|
|
63
63
|
label,
|
|
64
64
|
placeholder: options?.placeholder,
|
|
65
|
+
defaultValue: options?.defaultValue,
|
|
65
66
|
attrs: {
|
|
66
67
|
type: options?.type,
|
|
67
68
|
pattern: options?.pattern,
|
|
@@ -116,6 +117,7 @@ export function numField(
|
|
|
116
117
|
$el: 'text',
|
|
117
118
|
class: options?.class,
|
|
118
119
|
required: options?.required,
|
|
120
|
+
defaultValue: options?.defaultValue,
|
|
119
121
|
id,
|
|
120
122
|
label,
|
|
121
123
|
placeholder: options?.placeholder,
|
|
@@ -0,0 +1,337 @@
|
|
|
1
|
+
/* eslint-disable max-len */
|
|
2
|
+
/* eslint-disable @stylistic/js/max-len */
|
|
3
|
+
import type { CountryCode } from 'libphonenumber-js';
|
|
4
|
+
|
|
5
|
+
type CountryTuple = [string, CountryCode, string, number?, string[]?];
|
|
6
|
+
|
|
7
|
+
const countryArray: CountryTuple[] = [
|
|
8
|
+
['Afghanistan (افغانستان)', 'AF', '93'],
|
|
9
|
+
['Albania (Shqipëri)', 'AL', '355'],
|
|
10
|
+
['Algeria (الجزائر)', 'DZ', '213'],
|
|
11
|
+
['American Samoa', 'AS', '1', 5, ['684']],
|
|
12
|
+
['Andorra', 'AD', '376'],
|
|
13
|
+
['Angola', 'AO', '244'],
|
|
14
|
+
['Anguilla', 'AI', '1', 6, ['264']],
|
|
15
|
+
['Antigua and Barbuda', 'AG', '1', 7, ['268']],
|
|
16
|
+
['Argentina', 'AR', '54'],
|
|
17
|
+
['Armenia (Հայաստան)', 'AM', '374'],
|
|
18
|
+
['Aruba', 'AW', '297'],
|
|
19
|
+
['Ascension Island', 'AC', '247'],
|
|
20
|
+
['Australia', 'AU', '61', 0],
|
|
21
|
+
['Austria (Österreich)', 'AT', '43'],
|
|
22
|
+
['Azerbaijan (Azərbaycan)', 'AZ', '994'],
|
|
23
|
+
['Bahamas', 'BS', '1', 8, ['242']],
|
|
24
|
+
['Bahrain (البحرين)', 'BH', '973'],
|
|
25
|
+
['Bangladesh (বাংলাদেশ)', 'BD', '880'],
|
|
26
|
+
['Barbados', 'BB', '1', 9, ['246']],
|
|
27
|
+
['Belarus (Беларусь)', 'BY', '375'],
|
|
28
|
+
['Belgium (België)', 'BE', '32'],
|
|
29
|
+
['Belize', 'BZ', '501'],
|
|
30
|
+
['Benin (Bénin)', 'BJ', '229'],
|
|
31
|
+
['Bermuda', 'BM', '1', 10, ['441']],
|
|
32
|
+
['Bhutan (འབྲུག)', 'BT', '975'],
|
|
33
|
+
['Bolivia', 'BO', '591'],
|
|
34
|
+
['Bosnia and Herzegovina (Босна и Херцеговина)', 'BA', '387'],
|
|
35
|
+
['Botswana', 'BW', '267'],
|
|
36
|
+
['Brazil (Brasil)', 'BR', '55'],
|
|
37
|
+
['British Indian Ocean Territory', 'IO', '246'],
|
|
38
|
+
['British Virgin Islands', 'VG', '1', 11, ['284']],
|
|
39
|
+
['Brunei', 'BN', '673'],
|
|
40
|
+
['Bulgaria (България)', 'BG', '359'],
|
|
41
|
+
['Burkina Faso', 'BF', '226'],
|
|
42
|
+
['Burundi (Uburundi)', 'BI', '257'],
|
|
43
|
+
['Cambodia (កម្ពុជា)', 'KH', '855'],
|
|
44
|
+
['Cameroon (Cameroun)', 'CM', '237'],
|
|
45
|
+
[
|
|
46
|
+
'Canada',
|
|
47
|
+
'CA',
|
|
48
|
+
'1',
|
|
49
|
+
1,
|
|
50
|
+
[
|
|
51
|
+
'204',
|
|
52
|
+
'226',
|
|
53
|
+
'236',
|
|
54
|
+
'249',
|
|
55
|
+
'250',
|
|
56
|
+
'263',
|
|
57
|
+
'289',
|
|
58
|
+
'306',
|
|
59
|
+
'343',
|
|
60
|
+
'354',
|
|
61
|
+
'365',
|
|
62
|
+
'367',
|
|
63
|
+
'368',
|
|
64
|
+
'382',
|
|
65
|
+
'387',
|
|
66
|
+
'403',
|
|
67
|
+
'416',
|
|
68
|
+
'418',
|
|
69
|
+
'428',
|
|
70
|
+
'431',
|
|
71
|
+
'437',
|
|
72
|
+
'438',
|
|
73
|
+
'450',
|
|
74
|
+
'584',
|
|
75
|
+
'468',
|
|
76
|
+
'474',
|
|
77
|
+
'506',
|
|
78
|
+
'514',
|
|
79
|
+
'519',
|
|
80
|
+
'548',
|
|
81
|
+
'579',
|
|
82
|
+
'581',
|
|
83
|
+
'584',
|
|
84
|
+
'587',
|
|
85
|
+
'604',
|
|
86
|
+
'613',
|
|
87
|
+
'639',
|
|
88
|
+
'647',
|
|
89
|
+
'672',
|
|
90
|
+
'683',
|
|
91
|
+
'705',
|
|
92
|
+
'709',
|
|
93
|
+
'742',
|
|
94
|
+
'753',
|
|
95
|
+
'778',
|
|
96
|
+
'780',
|
|
97
|
+
'782',
|
|
98
|
+
'807',
|
|
99
|
+
'819',
|
|
100
|
+
'825',
|
|
101
|
+
'867',
|
|
102
|
+
'873',
|
|
103
|
+
'902',
|
|
104
|
+
'905',
|
|
105
|
+
],
|
|
106
|
+
],
|
|
107
|
+
['Cape Verde (Kabu Verdi)', 'CV', '238'],
|
|
108
|
+
['Caribbean Netherlands', 'BQ', '599', 1, ['3', '4', '7']],
|
|
109
|
+
['Cayman Islands', 'KY', '1', 12, ['345']],
|
|
110
|
+
['Central African Republic (République centrafricaine)', 'CF', '236'],
|
|
111
|
+
['Chad (Tchad)', 'TD', '235'],
|
|
112
|
+
['Chile', 'CL', '56'],
|
|
113
|
+
['China (中国)', 'CN', '86'],
|
|
114
|
+
['Christmas Island', 'CX', '61', 2, ['89164']],
|
|
115
|
+
['Cocos (Keeling) Islands', 'CC', '61', 1, ['89162']],
|
|
116
|
+
['Colombia', 'CO', '57'],
|
|
117
|
+
['Comoros (جزر القمر)', 'KM', '269'],
|
|
118
|
+
['Congo (DRC) (République démocratique du Congo)', 'CD', '243'],
|
|
119
|
+
['Congo (Republic) (Congo-Brazzaville)', 'CG', '242'],
|
|
120
|
+
['Cook Islands', 'CK', '682'],
|
|
121
|
+
['Costa Rica', 'CR', '506'],
|
|
122
|
+
['Côte d’Ivoire', 'CI', '225'],
|
|
123
|
+
['Croatia (Hrvatska)', 'HR', '385'],
|
|
124
|
+
['Cuba', 'CU', '53'],
|
|
125
|
+
['Curaçao', 'CW', '599', 0],
|
|
126
|
+
['Cyprus (Κύπρος)', 'CY', '357'],
|
|
127
|
+
['Czech Republic (Česká republika)', 'CZ', '420'],
|
|
128
|
+
['Denmark (Danmark)', 'DK', '45'],
|
|
129
|
+
['Djibouti', 'DJ', '253'],
|
|
130
|
+
['Dominica', 'DM', '1', 13, ['767']],
|
|
131
|
+
[
|
|
132
|
+
'Dominican Republic (República Dominicana)',
|
|
133
|
+
'DO',
|
|
134
|
+
'1',
|
|
135
|
+
2,
|
|
136
|
+
['809', '829', '849'],
|
|
137
|
+
],
|
|
138
|
+
['Ecuador', 'EC', '593'],
|
|
139
|
+
['Egypt (مصر)', 'EG', '20'],
|
|
140
|
+
['El Salvador', 'SV', '503'],
|
|
141
|
+
['Equatorial Guinea (Guinea Ecuatorial)', 'GQ', '240'],
|
|
142
|
+
['Eritrea', 'ER', '291'],
|
|
143
|
+
['Estonia (Eesti)', 'EE', '372'],
|
|
144
|
+
['Eswatini', 'SZ', '268'],
|
|
145
|
+
['Ethiopia', 'ET', '251'],
|
|
146
|
+
['Falkland Islands (Islas Malvinas)', 'FK', '500'],
|
|
147
|
+
['Faroe Islands (Føroyar)', 'FO', '298'],
|
|
148
|
+
['Fiji', 'FJ', '679'],
|
|
149
|
+
['Finland (Suomi)', 'FI', '358', 0],
|
|
150
|
+
['France', 'FR', '33'],
|
|
151
|
+
['French Guiana (Guyane française)', 'GF', '594'],
|
|
152
|
+
['French Polynesia (Polynésie française)', 'PF', '689'],
|
|
153
|
+
['Gabon', 'GA', '241'],
|
|
154
|
+
['Gambia', 'GM', '220'],
|
|
155
|
+
['Georgia (საქართველო)', 'GE', '995'],
|
|
156
|
+
['Germany (Deutschland)', 'DE', '49'],
|
|
157
|
+
['Ghana (Gaana)', 'GH', '233'],
|
|
158
|
+
['Gibraltar', 'GI', '350'],
|
|
159
|
+
['Greece (Ελλάδα)', 'GR', '30'],
|
|
160
|
+
['Greenland (Kalaallit Nunaat)', 'GL', '299'],
|
|
161
|
+
['Grenada', 'GD', '1', 14, ['473']],
|
|
162
|
+
['Guadeloupe', 'GP', '590', 0],
|
|
163
|
+
['Guam', 'GU', '1', 15, ['671']],
|
|
164
|
+
['Guatemala', 'GT', '502'],
|
|
165
|
+
['Guernsey', 'GG', '44', 1, ['1481', '7781', '7839', '7911']],
|
|
166
|
+
['Guinea (Guinée)', 'GN', '224'],
|
|
167
|
+
['Guinea-Bissau (Guiné Bissau)', 'GW', '245'],
|
|
168
|
+
['Guyana', 'GY', '592'],
|
|
169
|
+
['Haiti', 'HT', '509'],
|
|
170
|
+
['Honduras', 'HN', '504'],
|
|
171
|
+
['Hong Kong (香港)', 'HK', '852'],
|
|
172
|
+
['Hungary (Magyarország)', 'HU', '36'],
|
|
173
|
+
['Iceland (Ísland)', 'IS', '354'],
|
|
174
|
+
['India (भारत)', 'IN', '91'],
|
|
175
|
+
['Indonesia', 'ID', '62'],
|
|
176
|
+
['Iran (ایران)', 'IR', '98'],
|
|
177
|
+
['Iraq (العراق)', 'IQ', '964'],
|
|
178
|
+
['Ireland', 'IE', '353'],
|
|
179
|
+
['Isle of Man', 'IM', '44', 2, ['1624', '74576', '7524', '7924', '7624']],
|
|
180
|
+
['Israel (ישראל)', 'IL', '972'],
|
|
181
|
+
['Italy (Italia)', 'IT', '39', 0],
|
|
182
|
+
['Jamaica', 'JM', '1', 4, ['876', '658']],
|
|
183
|
+
['Japan (日本)', 'JP', '81'],
|
|
184
|
+
['Jersey', 'JE', '44', 3, ['1534', '7509', '7700', '7797', '7829', '7937']],
|
|
185
|
+
['Jordan (الأردن)', 'JO', '962'],
|
|
186
|
+
['Kazakhstan (Казахстан)', 'KZ', '7', 1, ['33', '7']],
|
|
187
|
+
['Kenya', 'KE', '254'],
|
|
188
|
+
['Kiribati', 'KI', '686'],
|
|
189
|
+
['Kosovo', 'XK', '383'],
|
|
190
|
+
['Kuwait (الكويت)', 'KW', '965'],
|
|
191
|
+
['Kyrgyzstan (Кыргызстан)', 'KG', '996'],
|
|
192
|
+
['Laos (ລາວ)', 'LA', '856'],
|
|
193
|
+
['Latvia (Latvija)', 'LV', '371'],
|
|
194
|
+
['Lebanon (لبنان)', 'LB', '961'],
|
|
195
|
+
['Lesotho', 'LS', '266'],
|
|
196
|
+
['Liberia', 'LR', '231'],
|
|
197
|
+
['Libya (ليبيا)', 'LY', '218'],
|
|
198
|
+
['Liechtenstein', 'LI', '423'],
|
|
199
|
+
['Lithuania (Lietuva)', 'LT', '370'],
|
|
200
|
+
['Luxembourg', 'LU', '352'],
|
|
201
|
+
['Macau (澳門)', 'MO', '853'],
|
|
202
|
+
['Madagascar (Madagasikara)', 'MG', '261'],
|
|
203
|
+
['Malawi', 'MW', '265'],
|
|
204
|
+
['Malaysia', 'MY', '60'],
|
|
205
|
+
['Maldives', 'MV', '960'],
|
|
206
|
+
['Mali', 'ML', '223'],
|
|
207
|
+
['Malta', 'MT', '356'],
|
|
208
|
+
['Marshall Islands', 'MH', '692'],
|
|
209
|
+
['Martinique', 'MQ', '596'],
|
|
210
|
+
['Mauritania (موريتانيا)', 'MR', '222'],
|
|
211
|
+
['Mauritius (Moris)', 'MU', '230'],
|
|
212
|
+
['Mayotte', 'YT', '262', 1, ['269', '639']],
|
|
213
|
+
['Mexico (México)', 'MX', '52'],
|
|
214
|
+
['Micronesia', 'FM', '691'],
|
|
215
|
+
['Moldova (Republica Moldova)', 'MD', '373'],
|
|
216
|
+
['Monaco', 'MC', '377'],
|
|
217
|
+
['Mongolia (Монгол)', 'MN', '976'],
|
|
218
|
+
['Montenegro (Crna Gora)', 'ME', '382'],
|
|
219
|
+
['Montserrat', 'MS', '1', 16, ['664']],
|
|
220
|
+
['Morocco (المغرب)', 'MA', '212', 0],
|
|
221
|
+
['Mozambique (Moçambique)', 'MZ', '258'],
|
|
222
|
+
['Myanmar (Burma) (မြန်မာ)', 'MM', '95'],
|
|
223
|
+
['Namibia (Namibië)', 'NA', '264'],
|
|
224
|
+
['Nauru', 'NR', '674'],
|
|
225
|
+
['Nepal (नेपाल)', 'NP', '977'],
|
|
226
|
+
['Netherlands (Nederland)', 'NL', '31'],
|
|
227
|
+
['New Caledonia (Nouvelle-Calédonie)', 'NC', '687'],
|
|
228
|
+
['New Zealand', 'NZ', '64'],
|
|
229
|
+
['Nicaragua', 'NI', '505'],
|
|
230
|
+
['Niger (Nijar)', 'NE', '227'],
|
|
231
|
+
['Nigeria', 'NG', '234'],
|
|
232
|
+
['Niue', 'NU', '683'],
|
|
233
|
+
['Norfolk Island', 'NF', '672'],
|
|
234
|
+
['North Korea (조선 민주주의 인민 공화국)', 'KP', '850'],
|
|
235
|
+
['North Macedonia (Северна Македонија)', 'MK', '389'],
|
|
236
|
+
['Northern Mariana Islands', 'MP', '1', 17, ['670']],
|
|
237
|
+
['Norway (Norge)', 'NO', '47', 0],
|
|
238
|
+
['Oman (عُمان)', 'OM', '968'],
|
|
239
|
+
['Pakistan (پاکستان)', 'PK', '92'],
|
|
240
|
+
['Palau', 'PW', '680'],
|
|
241
|
+
['Palestine (فلسطين)', 'PS', '970'],
|
|
242
|
+
['Panama (Panamá)', 'PA', '507'],
|
|
243
|
+
['Papua New Guinea', 'PG', '675'],
|
|
244
|
+
['Paraguay', 'PY', '595'],
|
|
245
|
+
['Peru (Perú)', 'PE', '51'],
|
|
246
|
+
['Philippines', 'PH', '63'],
|
|
247
|
+
['Poland (Polska)', 'PL', '48'],
|
|
248
|
+
['Portugal', 'PT', '351'],
|
|
249
|
+
['Puerto Rico', 'PR', '1', 3, ['787', '939']],
|
|
250
|
+
['Qatar (قطر)', 'QA', '974'],
|
|
251
|
+
['Réunion (La Réunion)', 'RE', '262', 0],
|
|
252
|
+
['Romania (România)', 'RO', '40'],
|
|
253
|
+
['Russia (Россия)', 'RU', '7', 0],
|
|
254
|
+
['Rwanda', 'RW', '250'],
|
|
255
|
+
['Saint Barthélemy', 'BL', '590', 1],
|
|
256
|
+
['Saint Helena', 'SH', '290'],
|
|
257
|
+
['Saint Kitts and Nevis', 'KN', '1', 18, ['869']],
|
|
258
|
+
['Saint Lucia', 'LC', '1', 19, ['758']],
|
|
259
|
+
['Saint Martin (Saint-Martin (partie française))', 'MF', '590', 2],
|
|
260
|
+
['Saint Pierre and Miquelon (Saint-Pierre-et-Miquelon)', 'PM', '508'],
|
|
261
|
+
['Saint Vincent and the Grenadines', 'VC', '1', 20, ['784']],
|
|
262
|
+
['Samoa', 'WS', '685'],
|
|
263
|
+
['San Marino', 'SM', '378'],
|
|
264
|
+
['São Tomé and Príncipe (São Tomé e Príncipe)', 'ST', '239'],
|
|
265
|
+
['Saudi Arabia (المملكة العربية السعودية)', 'SA', '966'],
|
|
266
|
+
['Senegal (Sénégal)', 'SN', '221'],
|
|
267
|
+
['Serbia (Србија)', 'RS', '381'],
|
|
268
|
+
['Seychelles', 'SC', '248'],
|
|
269
|
+
['Sierra Leone', 'SL', '232'],
|
|
270
|
+
['Singapore', 'SG', '65'],
|
|
271
|
+
['Sint Maarten', 'SX', '1', 21, ['721']],
|
|
272
|
+
['Slovakia (Slovensko)', 'SK', '421'],
|
|
273
|
+
['Slovenia (Slovenija)', 'SI', '386'],
|
|
274
|
+
['Solomon Islands', 'SB', '677'],
|
|
275
|
+
['Somalia (Soomaaliya)', 'SO', '252'],
|
|
276
|
+
['South Africa', 'ZA', '27'],
|
|
277
|
+
['South Korea (대한민국)', 'KR', '82'],
|
|
278
|
+
['South Sudan (جنوب السودان)', 'SS', '211'],
|
|
279
|
+
['Spain (España)', 'ES', '34'],
|
|
280
|
+
['Sri Lanka (ශ්රී ලංකාව)', 'LK', '94'],
|
|
281
|
+
['Sudan (السودان)', 'SD', '249'],
|
|
282
|
+
['Suriname', 'SR', '597'],
|
|
283
|
+
['Svalbard and Jan Mayen', 'SJ', '47', 1, ['79']],
|
|
284
|
+
['Sweden (Sverige)', 'SE', '46'],
|
|
285
|
+
['Switzerland (Schweiz)', 'CH', '41'],
|
|
286
|
+
['Syria (سوريا)', 'SY', '963'],
|
|
287
|
+
['Taiwan (台灣)', 'TW', '886'],
|
|
288
|
+
['Tajikistan', 'TJ', '992'],
|
|
289
|
+
['Tanzania', 'TZ', '255'],
|
|
290
|
+
['Thailand (ไทย)', 'TH', '66'],
|
|
291
|
+
['Timor-Leste', 'TL', '670'],
|
|
292
|
+
['Togo', 'TG', '228'],
|
|
293
|
+
['Tokelau', 'TK', '690'],
|
|
294
|
+
['Tonga', 'TO', '676'],
|
|
295
|
+
['Trinidad and Tobago', 'TT', '1', 22, ['868']],
|
|
296
|
+
['Tunisia (تونس)', 'TN', '216'],
|
|
297
|
+
['Turkey (Türkiye)', 'TR', '90'],
|
|
298
|
+
['Turkmenistan', 'TM', '993'],
|
|
299
|
+
['Turks and Caicos Islands', 'TC', '1', 23, ['649']],
|
|
300
|
+
['Tuvalu', 'TV', '688'],
|
|
301
|
+
['U.S. Virgin Islands', 'VI', '1', 24, ['340']],
|
|
302
|
+
['Uganda', 'UG', '256'],
|
|
303
|
+
['Ukraine (Україна)', 'UA', '380'],
|
|
304
|
+
['United Arab Emirates (الإمارات العربية المتحدة)', 'AE', '971'],
|
|
305
|
+
['United Kingdom', 'GB', '44', 0],
|
|
306
|
+
['United States', 'US', '1', 0],
|
|
307
|
+
['Uruguay', 'UY', '598'],
|
|
308
|
+
['Uzbekistan (Oʻzbekiston)', 'UZ', '998'],
|
|
309
|
+
['Vanuatu', 'VU', '678'],
|
|
310
|
+
['Vatican City (Città del Vaticano)', 'VA', '39', 1, ['06698']],
|
|
311
|
+
['Venezuela', 'VE', '58'],
|
|
312
|
+
['Vietnam (Việt Nam)', 'VN', '84'],
|
|
313
|
+
['Wallis and Futuna (Wallis-et-Futuna)', 'WF', '681'],
|
|
314
|
+
['Western Sahara (الصحراء الغربية)', 'EH', '212', 1, ['5288', '5289']],
|
|
315
|
+
['Yemen (اليمن)', 'YE', '967'],
|
|
316
|
+
['Zambia', 'ZM', '260'],
|
|
317
|
+
['Zimbabwe', 'ZW', '263'],
|
|
318
|
+
['Åland Islands', 'AX', '358', 1, ['18']],
|
|
319
|
+
];
|
|
320
|
+
|
|
321
|
+
export type Country = {
|
|
322
|
+
name: string;
|
|
323
|
+
iso2: CountryCode;
|
|
324
|
+
dialCode: string;
|
|
325
|
+
priority: number;
|
|
326
|
+
areaCodes?: string[] | null;
|
|
327
|
+
};
|
|
328
|
+
|
|
329
|
+
export const allCountries: Country[] = countryArray.map(
|
|
330
|
+
([name, iso2, dialCode, priority = 0, areaCodes = []]) => ({
|
|
331
|
+
name,
|
|
332
|
+
iso2,
|
|
333
|
+
dialCode,
|
|
334
|
+
priority,
|
|
335
|
+
areaCodes,
|
|
336
|
+
}),
|
|
337
|
+
);
|