@fto-consult/expo-ui 2.18.0 → 2.18.2
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/package.json +1 -1
- package/src/components/Chart/index.js +1 -0
- package/src/components/Countries/resources/countries-normalized.json +1987 -1987
- package/src/components/Countries/resources/countries-with-not-extra.json +1211 -1211
- package/src/components/Countries/resources/countries.sql +243 -243
- package/src/components/Datagrid/Accordion/index.js +2 -2
- package/src/components/Datagrid/Common/Common.js +50 -18
- package/src/components/Datagrid/Footer/index.js +7 -5
- package/src/components/Datagrid/SWRDatagrid.js +18 -10
- package/src/components/Datagrid/Table/index.js +8 -7
- package/src/components/Table/index.js +2 -1
|
@@ -1,244 +1,244 @@
|
|
|
1
|
-
INSERT INTO countries(code,name,dialCode)
|
|
2
|
-
VALUES
|
|
3
|
-
('AF','Afghanistan (افغانستان)','93'),
|
|
4
|
-
('AL','Albania (Shqipëri)','355'),
|
|
5
|
-
('DZ','Algeria (الجزائر)','213'),
|
|
6
|
-
('AS','American Samoa','1684'),
|
|
7
|
-
('AD','Andorra','376'),
|
|
8
|
-
('AO','Angola','244'),
|
|
9
|
-
('AI','Anguilla','1264'),
|
|
10
|
-
('AG','Antigua and Barbuda','1268'),
|
|
11
|
-
('AR','Argentina','54'),
|
|
12
|
-
('AM','Armenia (Հայաստան)','374'),
|
|
13
|
-
('AW','Aruba','297'),
|
|
14
|
-
('AU','Australia','61'),
|
|
15
|
-
('AT','Austria (Österreich)','43'),
|
|
16
|
-
('AZ','Azerbaijan (Azərbaycan)','994'),
|
|
17
|
-
('BS','Bahamas','1242'),
|
|
18
|
-
('BH','Bahrain (البحرين)','973'),
|
|
19
|
-
('BD','Bangladesh (বাংলাদেশ)','880'),
|
|
20
|
-
('BB','Barbados','1246'),
|
|
21
|
-
('BY','Belarus (Беларусь)','375'),
|
|
22
|
-
('BE','Belgium (België)','32'),
|
|
23
|
-
('BZ','Belize','501'),
|
|
24
|
-
('BJ','Benin (Bénin)','229'),
|
|
25
|
-
('BM','Bermuda','1441'),
|
|
26
|
-
('BT','Bhutan (འབྲུག)','975'),
|
|
27
|
-
('BO','Bolivia','591'),
|
|
28
|
-
('BA','Bosnia and Herzegovina (Босна и Херцеговина)','387'),
|
|
29
|
-
('BW','Botswana','267'),
|
|
30
|
-
('BR','Brazil (Brasil)','55'),
|
|
31
|
-
('IO','British Indian Ocean Territory','246'),
|
|
32
|
-
('VG','British Virgin Islands','1284'),
|
|
33
|
-
('BN','Brunei','673'),
|
|
34
|
-
('BG','Bulgaria (България)','359'),
|
|
35
|
-
('BF','Burkina Faso','226'),
|
|
36
|
-
('BI','Burundi (Uburundi)','257'),
|
|
37
|
-
('KH','Cambodia (កម្ពុជា)','855'),
|
|
38
|
-
('CM','Cameroon (Cameroun)','237'),
|
|
39
|
-
('CA','Canada','1'),
|
|
40
|
-
('CV','Cape Verde (Kabu Verdi)','238'),
|
|
41
|
-
('BQ','Caribbean Netherlands','599'),
|
|
42
|
-
('KY','Cayman Islands','1345'),
|
|
43
|
-
('CF','Central African Republic (République centrafricaine)','236'),
|
|
44
|
-
('TD','Chad (Tchad)','235'),
|
|
45
|
-
('CL','Chile','56'),
|
|
46
|
-
('CN','China (中国)','86'),
|
|
47
|
-
('CX','Christmas Island','61'),
|
|
48
|
-
('CC','Cocos (Keeling) Islands','61'),
|
|
49
|
-
('CO','Colombia','57'),
|
|
50
|
-
('KM','Comoros (جزر القمر)','269'),
|
|
51
|
-
('CD','Congo (DRC) (Jamhuri ya Kidemokrasia ya Kongo)','243'),
|
|
52
|
-
('CG','Congo (Republic) (Congo-Brazzaville)','242'),
|
|
53
|
-
('CK','Cook Islands','682'),
|
|
54
|
-
('CR','Costa Rica','506'),
|
|
55
|
-
('CI','Côte d’Ivoire','225'),
|
|
56
|
-
('HR','Croatia (Hrvatska)','385'),
|
|
57
|
-
('CU','Cuba','53'),
|
|
58
|
-
('CW','Curaçao','599'),
|
|
59
|
-
('CY','Cyprus (Κύπρος)','357'),
|
|
60
|
-
('CZ','Czech Republic (Česká republika)','420'),
|
|
61
|
-
('DK','Denmark (Danmark)','45'),
|
|
62
|
-
('DJ','Djibouti','253'),
|
|
63
|
-
('DM','Dominica','1767'),
|
|
64
|
-
('DO','Dominican Republic (República Dominicana)','1'),
|
|
65
|
-
('EC','Ecuador','593'),
|
|
66
|
-
('EG','Egypt (مصر)','20'),
|
|
67
|
-
('SV','El Salvador','503'),
|
|
68
|
-
('GQ','Equatorial Guinea (Guinea Ecuatorial)','240'),
|
|
69
|
-
('ER','Eritrea','291'),
|
|
70
|
-
('EE','Estonia (Eesti)','372'),
|
|
71
|
-
('ET','Ethiopia','251'),
|
|
72
|
-
('FK','Falkland Islands (Islas Malvinas)','500'),
|
|
73
|
-
('FO','Faroe Islands (Føroyar)','298'),
|
|
74
|
-
('FJ','Fiji','679'),
|
|
75
|
-
('FI','Finland (Suomi)','358'),
|
|
76
|
-
('FR','France','33'),
|
|
77
|
-
('GF','French Guiana (Guyane française)','594'),
|
|
78
|
-
('PF','French Polynesia (Polynésie française)','689'),
|
|
79
|
-
('GA','Gabon','241'),
|
|
80
|
-
('GM','Gambia','220'),
|
|
81
|
-
('GE','Georgia (საქართველო)','995'),
|
|
82
|
-
('DE','Germany (Deutschland)','49'),
|
|
83
|
-
('GH','Ghana (Gaana)','233'),
|
|
84
|
-
('GI','Gibraltar','350'),
|
|
85
|
-
('GR','Greece (Ελλάδα)','30'),
|
|
86
|
-
('GL','Greenland (Kalaallit Nunaat)','299'),
|
|
87
|
-
('GD','Grenada','1473'),
|
|
88
|
-
('GP','Guadeloupe','590'),
|
|
89
|
-
('GU','Guam','1671'),
|
|
90
|
-
('GT','Guatemala','502'),
|
|
91
|
-
('GG','Guernsey','44'),
|
|
92
|
-
('GN','Guinea (Guinée)','224'),
|
|
93
|
-
('GW','Guinea-Bissau (Guiné Bissau)','245'),
|
|
94
|
-
('GY','Guyana','592'),
|
|
95
|
-
('HT','Haiti','509'),
|
|
96
|
-
('HN','Honduras','504'),
|
|
97
|
-
('HK','Hong Kong (香港)','852'),
|
|
98
|
-
('HU','Hungary (Magyarország)','36'),
|
|
99
|
-
('IS','Iceland (Ísland)','354'),
|
|
100
|
-
('IN','India (भारत)','91'),
|
|
101
|
-
('ID','Indonesia','62'),
|
|
102
|
-
('IR','Iran (ایران)','98'),
|
|
103
|
-
('IQ','Iraq (العراق)','964'),
|
|
104
|
-
('IE','Ireland','353'),
|
|
105
|
-
('IM','Isle of Man','44'),
|
|
106
|
-
('IL','Israel (ישראל)','972'),
|
|
107
|
-
('IT','Italy (Italia)','39'),
|
|
108
|
-
('JM','Jamaica','1876'),
|
|
109
|
-
('JP','Japan (日本)','81'),
|
|
110
|
-
('JE','Jersey','44'),
|
|
111
|
-
('JO','Jordan (الأردن)','962'),
|
|
112
|
-
('KZ','Kazakhstan (Казахстан)','77'),
|
|
113
|
-
('KE','Kenya','254'),
|
|
114
|
-
('KI','Kiribati','686'),
|
|
115
|
-
('KW','Kuwait (الكويت)','965'),
|
|
116
|
-
('KG','Kyrgyzstan (Кыргызстан)','996'),
|
|
117
|
-
('LA','Laos (ລາວ)','856'),
|
|
118
|
-
('LV','Latvia (Latvija)','371'),
|
|
119
|
-
('LB','Lebanon (لبنان)','961'),
|
|
120
|
-
('LS','Lesotho','266'),
|
|
121
|
-
('LR','Liberia','231'),
|
|
122
|
-
('LY','Libya (ليبيا)','218'),
|
|
123
|
-
('LI','Liechtenstein','423'),
|
|
124
|
-
('LT','Lithuania (Lietuva)','370'),
|
|
125
|
-
('LU','Luxembourg','352'),
|
|
126
|
-
('MO','Macau (澳門)','853'),
|
|
127
|
-
('MK','Macedonia (FYROM) (Македонија)','389'),
|
|
128
|
-
('MG','Madagascar (Madagasikara)','261'),
|
|
129
|
-
('MW','Malawi','265'),
|
|
130
|
-
('MY','Malaysia','60'),
|
|
131
|
-
('MV','Maldives','960'),
|
|
132
|
-
('ML','Mali','223'),
|
|
133
|
-
('MT','Malta','356'),
|
|
134
|
-
('MH','Marshall Islands','692'),
|
|
135
|
-
('MQ','Martinique','596'),
|
|
136
|
-
('MR','Mauritania (موريتانيا)','222'),
|
|
137
|
-
('MU','Mauritius (Moris)','230'),
|
|
138
|
-
('YT','Mayotte','262'),
|
|
139
|
-
('MX','Mexico (México)','52'),
|
|
140
|
-
('FM','Micronesia','691'),
|
|
141
|
-
('MD','Moldova (Republica Moldova)','373'),
|
|
142
|
-
('MC','Monaco','377'),
|
|
143
|
-
('MN','Mongolia (Монгол)','976'),
|
|
144
|
-
('ME','Montenegro (Crna Gora)','382'),
|
|
145
|
-
('MS','Montserrat','1664'),
|
|
146
|
-
('MA','Morocco (المغرب)','212'),
|
|
147
|
-
('MZ','Mozambique (Moçambique)','258'),
|
|
148
|
-
('MM','Myanmar (Burma)','95'),
|
|
149
|
-
('NA','Namibia (Namibië)','264'),
|
|
150
|
-
('NR','Nauru','674'),
|
|
151
|
-
('NP','Nepal (नेपाल)','977'),
|
|
152
|
-
('NL','Netherlands (Nederland)','31'),
|
|
153
|
-
('NC','New Caledonia (Nouvelle-Calédonie)','687'),
|
|
154
|
-
('NZ','New Zealand','64'),
|
|
155
|
-
('NI','Nicaragua','505'),
|
|
156
|
-
('NE','Niger (Nijar)','227'),
|
|
157
|
-
('NG','Nigeria','234'),
|
|
158
|
-
('NU','Niue','683'),
|
|
159
|
-
('NF','Norfolk Island','672'),
|
|
160
|
-
('KP','North Korea (조선 민주주의 인민 공화국)','850'),
|
|
161
|
-
('MP','Northern Mariana Islands','1670'),
|
|
162
|
-
('NO','Norway (Norge)','47'),
|
|
163
|
-
('OM','Oman (عُمان)','968'),
|
|
164
|
-
('PK','Pakistan (پاکستان)','92'),
|
|
165
|
-
('PW','Palau','680'),
|
|
166
|
-
('PS','Palestine (فلسطين)','970'),
|
|
167
|
-
('PA','Panama (Panamá)','507'),
|
|
168
|
-
('PG','Papua New Guinea','675'),
|
|
169
|
-
('PY','Paraguay','595'),
|
|
170
|
-
('PE','Peru (Perú)','51'),
|
|
171
|
-
('PH','Philippines','63'),
|
|
172
|
-
('PL','Poland (Polska)','48'),
|
|
173
|
-
('PT','Portugal','351'),
|
|
174
|
-
('PR','Puerto Rico','1'),
|
|
175
|
-
('QA','Qatar (قطر)','974'),
|
|
176
|
-
('RE','Réunion (La Réunion)','262'),
|
|
177
|
-
('RO','Romania (România)','40'),
|
|
178
|
-
('RU','Russia (Россия)','7'),
|
|
179
|
-
('RW','Rwanda','250'),
|
|
180
|
-
('BL','Saint Barthélemy (Saint-Barthélemy)','590'),
|
|
181
|
-
('SH','Saint Helena','290'),
|
|
182
|
-
('KN','Saint Kitts and Nevis','1869'),
|
|
183
|
-
('LC','Saint Lucia','1758'),
|
|
184
|
-
('MF','Saint Martin (Saint-Martin (partie française))','590'),
|
|
185
|
-
('PM','Saint Pierre and Miquelon (Saint-Pierre-et-Miquelon)','508'),
|
|
186
|
-
('VC','Saint Vincent and the Grenadines','1784'),
|
|
187
|
-
('WS','Samoa','685'),
|
|
188
|
-
('SM','San Marino','378'),
|
|
189
|
-
('ST','São Tomé and Príncipe (São Tomé e Príncipe)','239'),
|
|
190
|
-
('SA','Saudi Arabia (المملكة العربية السعودية)','966'),
|
|
191
|
-
('SN','Senegal (Sénégal)','221'),
|
|
192
|
-
('RS','Serbia (Србија)','381'),
|
|
193
|
-
('SC','Seychelles','248'),
|
|
194
|
-
('SL','Sierra Leone','232'),
|
|
195
|
-
('SG','Singapore','65'),
|
|
196
|
-
('SX','Sint Maarten','1721'),
|
|
197
|
-
('SK','Slovakia (Slovensko)','421'),
|
|
198
|
-
('SI','Slovenia (Slovenija)','386'),
|
|
199
|
-
('SB','Solomon Islands','677'),
|
|
200
|
-
('SO','Somalia (Soomaaliya)','252'),
|
|
201
|
-
('ZA','South Africa','27'),
|
|
202
|
-
('KR','South Korea (대한민국)','82'),
|
|
203
|
-
('SS','South Sudan (جنوب السودان)','211'),
|
|
204
|
-
('ES','Spain (España)','34'),
|
|
205
|
-
('LK','Sri Lanka (ශ්රී ලංකාව)','94'),
|
|
206
|
-
('SD','Sudan (السودان)','249'),
|
|
207
|
-
('SR','Suriname','597'),
|
|
208
|
-
('SJ','Svalbard and Jan Mayen','47'),
|
|
209
|
-
('SZ','Swaziland','268'),
|
|
210
|
-
('SE','Sweden (Sverige)','46'),
|
|
211
|
-
('CH','Switzerland (Schweiz)','41'),
|
|
212
|
-
('SY','Syria (سوريا)','963'),
|
|
213
|
-
('TW','Taiwan (台灣)','886'),
|
|
214
|
-
('TJ','Tajikistan','992'),
|
|
215
|
-
('TZ','Tanzania','255'),
|
|
216
|
-
('TH','Thailand (ไทย)','66'),
|
|
217
|
-
('TL','Timor-Leste','670'),
|
|
218
|
-
('TG','Togo','228'),
|
|
219
|
-
('TK','Tokelau','690'),
|
|
220
|
-
('TO','Tonga','676'),
|
|
221
|
-
('TT','Trinidad and Tobago','1868'),
|
|
222
|
-
('TN','Tunisia (تونس)','216'),
|
|
223
|
-
('TR','Turkey (Türkiye)','90'),
|
|
224
|
-
('TM','Turkmenistan','993'),
|
|
225
|
-
('TC','Turks and Caicos Islands','1649'),
|
|
226
|
-
('TV','Tuvalu','688'),
|
|
227
|
-
('VI','U.S. Virgin Islands','1340'),
|
|
228
|
-
('UG','Uganda','256'),
|
|
229
|
-
('UA','Ukraine (Україна)','380'),
|
|
230
|
-
('AE','United Arab Emirates (الإمارات العربية المتحدة)','971'),
|
|
231
|
-
('GB','United Kingdom','44'),
|
|
232
|
-
('US','United States','1'),
|
|
233
|
-
('UY','Uruguay','598'),
|
|
234
|
-
('UZ','Uzbekistan (Oʻzbekiston)','998'),
|
|
235
|
-
('VU','Vanuatu','678'),
|
|
236
|
-
('VA','Vatican City (Città del Vaticano)','39'),
|
|
237
|
-
('VE','Venezuela','58'),
|
|
238
|
-
('VN','Vietnam (Việt Nam)','84'),
|
|
239
|
-
('WF','Wallis and Futuna','681'),
|
|
240
|
-
('EH','Western Sahara (الصحراء الغربية)','212'),
|
|
241
|
-
('YE','Yemen (اليمن)','967'),
|
|
242
|
-
('ZM','Zambia','260'),
|
|
243
|
-
('ZW','Zimbabwe','263'),
|
|
1
|
+
INSERT INTO countries(code,name,dialCode)
|
|
2
|
+
VALUES
|
|
3
|
+
('AF','Afghanistan (افغانستان)','93'),
|
|
4
|
+
('AL','Albania (Shqipëri)','355'),
|
|
5
|
+
('DZ','Algeria (الجزائر)','213'),
|
|
6
|
+
('AS','American Samoa','1684'),
|
|
7
|
+
('AD','Andorra','376'),
|
|
8
|
+
('AO','Angola','244'),
|
|
9
|
+
('AI','Anguilla','1264'),
|
|
10
|
+
('AG','Antigua and Barbuda','1268'),
|
|
11
|
+
('AR','Argentina','54'),
|
|
12
|
+
('AM','Armenia (Հայաստան)','374'),
|
|
13
|
+
('AW','Aruba','297'),
|
|
14
|
+
('AU','Australia','61'),
|
|
15
|
+
('AT','Austria (Österreich)','43'),
|
|
16
|
+
('AZ','Azerbaijan (Azərbaycan)','994'),
|
|
17
|
+
('BS','Bahamas','1242'),
|
|
18
|
+
('BH','Bahrain (البحرين)','973'),
|
|
19
|
+
('BD','Bangladesh (বাংলাদেশ)','880'),
|
|
20
|
+
('BB','Barbados','1246'),
|
|
21
|
+
('BY','Belarus (Беларусь)','375'),
|
|
22
|
+
('BE','Belgium (België)','32'),
|
|
23
|
+
('BZ','Belize','501'),
|
|
24
|
+
('BJ','Benin (Bénin)','229'),
|
|
25
|
+
('BM','Bermuda','1441'),
|
|
26
|
+
('BT','Bhutan (འབྲུག)','975'),
|
|
27
|
+
('BO','Bolivia','591'),
|
|
28
|
+
('BA','Bosnia and Herzegovina (Босна и Херцеговина)','387'),
|
|
29
|
+
('BW','Botswana','267'),
|
|
30
|
+
('BR','Brazil (Brasil)','55'),
|
|
31
|
+
('IO','British Indian Ocean Territory','246'),
|
|
32
|
+
('VG','British Virgin Islands','1284'),
|
|
33
|
+
('BN','Brunei','673'),
|
|
34
|
+
('BG','Bulgaria (България)','359'),
|
|
35
|
+
('BF','Burkina Faso','226'),
|
|
36
|
+
('BI','Burundi (Uburundi)','257'),
|
|
37
|
+
('KH','Cambodia (កម្ពុជា)','855'),
|
|
38
|
+
('CM','Cameroon (Cameroun)','237'),
|
|
39
|
+
('CA','Canada','1'),
|
|
40
|
+
('CV','Cape Verde (Kabu Verdi)','238'),
|
|
41
|
+
('BQ','Caribbean Netherlands','599'),
|
|
42
|
+
('KY','Cayman Islands','1345'),
|
|
43
|
+
('CF','Central African Republic (République centrafricaine)','236'),
|
|
44
|
+
('TD','Chad (Tchad)','235'),
|
|
45
|
+
('CL','Chile','56'),
|
|
46
|
+
('CN','China (中国)','86'),
|
|
47
|
+
('CX','Christmas Island','61'),
|
|
48
|
+
('CC','Cocos (Keeling) Islands','61'),
|
|
49
|
+
('CO','Colombia','57'),
|
|
50
|
+
('KM','Comoros (جزر القمر)','269'),
|
|
51
|
+
('CD','Congo (DRC) (Jamhuri ya Kidemokrasia ya Kongo)','243'),
|
|
52
|
+
('CG','Congo (Republic) (Congo-Brazzaville)','242'),
|
|
53
|
+
('CK','Cook Islands','682'),
|
|
54
|
+
('CR','Costa Rica','506'),
|
|
55
|
+
('CI','Côte d’Ivoire','225'),
|
|
56
|
+
('HR','Croatia (Hrvatska)','385'),
|
|
57
|
+
('CU','Cuba','53'),
|
|
58
|
+
('CW','Curaçao','599'),
|
|
59
|
+
('CY','Cyprus (Κύπρος)','357'),
|
|
60
|
+
('CZ','Czech Republic (Česká republika)','420'),
|
|
61
|
+
('DK','Denmark (Danmark)','45'),
|
|
62
|
+
('DJ','Djibouti','253'),
|
|
63
|
+
('DM','Dominica','1767'),
|
|
64
|
+
('DO','Dominican Republic (República Dominicana)','1'),
|
|
65
|
+
('EC','Ecuador','593'),
|
|
66
|
+
('EG','Egypt (مصر)','20'),
|
|
67
|
+
('SV','El Salvador','503'),
|
|
68
|
+
('GQ','Equatorial Guinea (Guinea Ecuatorial)','240'),
|
|
69
|
+
('ER','Eritrea','291'),
|
|
70
|
+
('EE','Estonia (Eesti)','372'),
|
|
71
|
+
('ET','Ethiopia','251'),
|
|
72
|
+
('FK','Falkland Islands (Islas Malvinas)','500'),
|
|
73
|
+
('FO','Faroe Islands (Føroyar)','298'),
|
|
74
|
+
('FJ','Fiji','679'),
|
|
75
|
+
('FI','Finland (Suomi)','358'),
|
|
76
|
+
('FR','France','33'),
|
|
77
|
+
('GF','French Guiana (Guyane française)','594'),
|
|
78
|
+
('PF','French Polynesia (Polynésie française)','689'),
|
|
79
|
+
('GA','Gabon','241'),
|
|
80
|
+
('GM','Gambia','220'),
|
|
81
|
+
('GE','Georgia (საქართველო)','995'),
|
|
82
|
+
('DE','Germany (Deutschland)','49'),
|
|
83
|
+
('GH','Ghana (Gaana)','233'),
|
|
84
|
+
('GI','Gibraltar','350'),
|
|
85
|
+
('GR','Greece (Ελλάδα)','30'),
|
|
86
|
+
('GL','Greenland (Kalaallit Nunaat)','299'),
|
|
87
|
+
('GD','Grenada','1473'),
|
|
88
|
+
('GP','Guadeloupe','590'),
|
|
89
|
+
('GU','Guam','1671'),
|
|
90
|
+
('GT','Guatemala','502'),
|
|
91
|
+
('GG','Guernsey','44'),
|
|
92
|
+
('GN','Guinea (Guinée)','224'),
|
|
93
|
+
('GW','Guinea-Bissau (Guiné Bissau)','245'),
|
|
94
|
+
('GY','Guyana','592'),
|
|
95
|
+
('HT','Haiti','509'),
|
|
96
|
+
('HN','Honduras','504'),
|
|
97
|
+
('HK','Hong Kong (香港)','852'),
|
|
98
|
+
('HU','Hungary (Magyarország)','36'),
|
|
99
|
+
('IS','Iceland (Ísland)','354'),
|
|
100
|
+
('IN','India (भारत)','91'),
|
|
101
|
+
('ID','Indonesia','62'),
|
|
102
|
+
('IR','Iran (ایران)','98'),
|
|
103
|
+
('IQ','Iraq (العراق)','964'),
|
|
104
|
+
('IE','Ireland','353'),
|
|
105
|
+
('IM','Isle of Man','44'),
|
|
106
|
+
('IL','Israel (ישראל)','972'),
|
|
107
|
+
('IT','Italy (Italia)','39'),
|
|
108
|
+
('JM','Jamaica','1876'),
|
|
109
|
+
('JP','Japan (日本)','81'),
|
|
110
|
+
('JE','Jersey','44'),
|
|
111
|
+
('JO','Jordan (الأردن)','962'),
|
|
112
|
+
('KZ','Kazakhstan (Казахстан)','77'),
|
|
113
|
+
('KE','Kenya','254'),
|
|
114
|
+
('KI','Kiribati','686'),
|
|
115
|
+
('KW','Kuwait (الكويت)','965'),
|
|
116
|
+
('KG','Kyrgyzstan (Кыргызстан)','996'),
|
|
117
|
+
('LA','Laos (ລາວ)','856'),
|
|
118
|
+
('LV','Latvia (Latvija)','371'),
|
|
119
|
+
('LB','Lebanon (لبنان)','961'),
|
|
120
|
+
('LS','Lesotho','266'),
|
|
121
|
+
('LR','Liberia','231'),
|
|
122
|
+
('LY','Libya (ليبيا)','218'),
|
|
123
|
+
('LI','Liechtenstein','423'),
|
|
124
|
+
('LT','Lithuania (Lietuva)','370'),
|
|
125
|
+
('LU','Luxembourg','352'),
|
|
126
|
+
('MO','Macau (澳門)','853'),
|
|
127
|
+
('MK','Macedonia (FYROM) (Македонија)','389'),
|
|
128
|
+
('MG','Madagascar (Madagasikara)','261'),
|
|
129
|
+
('MW','Malawi','265'),
|
|
130
|
+
('MY','Malaysia','60'),
|
|
131
|
+
('MV','Maldives','960'),
|
|
132
|
+
('ML','Mali','223'),
|
|
133
|
+
('MT','Malta','356'),
|
|
134
|
+
('MH','Marshall Islands','692'),
|
|
135
|
+
('MQ','Martinique','596'),
|
|
136
|
+
('MR','Mauritania (موريتانيا)','222'),
|
|
137
|
+
('MU','Mauritius (Moris)','230'),
|
|
138
|
+
('YT','Mayotte','262'),
|
|
139
|
+
('MX','Mexico (México)','52'),
|
|
140
|
+
('FM','Micronesia','691'),
|
|
141
|
+
('MD','Moldova (Republica Moldova)','373'),
|
|
142
|
+
('MC','Monaco','377'),
|
|
143
|
+
('MN','Mongolia (Монгол)','976'),
|
|
144
|
+
('ME','Montenegro (Crna Gora)','382'),
|
|
145
|
+
('MS','Montserrat','1664'),
|
|
146
|
+
('MA','Morocco (المغرب)','212'),
|
|
147
|
+
('MZ','Mozambique (Moçambique)','258'),
|
|
148
|
+
('MM','Myanmar (Burma)','95'),
|
|
149
|
+
('NA','Namibia (Namibië)','264'),
|
|
150
|
+
('NR','Nauru','674'),
|
|
151
|
+
('NP','Nepal (नेपाल)','977'),
|
|
152
|
+
('NL','Netherlands (Nederland)','31'),
|
|
153
|
+
('NC','New Caledonia (Nouvelle-Calédonie)','687'),
|
|
154
|
+
('NZ','New Zealand','64'),
|
|
155
|
+
('NI','Nicaragua','505'),
|
|
156
|
+
('NE','Niger (Nijar)','227'),
|
|
157
|
+
('NG','Nigeria','234'),
|
|
158
|
+
('NU','Niue','683'),
|
|
159
|
+
('NF','Norfolk Island','672'),
|
|
160
|
+
('KP','North Korea (조선 민주주의 인민 공화국)','850'),
|
|
161
|
+
('MP','Northern Mariana Islands','1670'),
|
|
162
|
+
('NO','Norway (Norge)','47'),
|
|
163
|
+
('OM','Oman (عُمان)','968'),
|
|
164
|
+
('PK','Pakistan (پاکستان)','92'),
|
|
165
|
+
('PW','Palau','680'),
|
|
166
|
+
('PS','Palestine (فلسطين)','970'),
|
|
167
|
+
('PA','Panama (Panamá)','507'),
|
|
168
|
+
('PG','Papua New Guinea','675'),
|
|
169
|
+
('PY','Paraguay','595'),
|
|
170
|
+
('PE','Peru (Perú)','51'),
|
|
171
|
+
('PH','Philippines','63'),
|
|
172
|
+
('PL','Poland (Polska)','48'),
|
|
173
|
+
('PT','Portugal','351'),
|
|
174
|
+
('PR','Puerto Rico','1'),
|
|
175
|
+
('QA','Qatar (قطر)','974'),
|
|
176
|
+
('RE','Réunion (La Réunion)','262'),
|
|
177
|
+
('RO','Romania (România)','40'),
|
|
178
|
+
('RU','Russia (Россия)','7'),
|
|
179
|
+
('RW','Rwanda','250'),
|
|
180
|
+
('BL','Saint Barthélemy (Saint-Barthélemy)','590'),
|
|
181
|
+
('SH','Saint Helena','290'),
|
|
182
|
+
('KN','Saint Kitts and Nevis','1869'),
|
|
183
|
+
('LC','Saint Lucia','1758'),
|
|
184
|
+
('MF','Saint Martin (Saint-Martin (partie française))','590'),
|
|
185
|
+
('PM','Saint Pierre and Miquelon (Saint-Pierre-et-Miquelon)','508'),
|
|
186
|
+
('VC','Saint Vincent and the Grenadines','1784'),
|
|
187
|
+
('WS','Samoa','685'),
|
|
188
|
+
('SM','San Marino','378'),
|
|
189
|
+
('ST','São Tomé and Príncipe (São Tomé e Príncipe)','239'),
|
|
190
|
+
('SA','Saudi Arabia (المملكة العربية السعودية)','966'),
|
|
191
|
+
('SN','Senegal (Sénégal)','221'),
|
|
192
|
+
('RS','Serbia (Србија)','381'),
|
|
193
|
+
('SC','Seychelles','248'),
|
|
194
|
+
('SL','Sierra Leone','232'),
|
|
195
|
+
('SG','Singapore','65'),
|
|
196
|
+
('SX','Sint Maarten','1721'),
|
|
197
|
+
('SK','Slovakia (Slovensko)','421'),
|
|
198
|
+
('SI','Slovenia (Slovenija)','386'),
|
|
199
|
+
('SB','Solomon Islands','677'),
|
|
200
|
+
('SO','Somalia (Soomaaliya)','252'),
|
|
201
|
+
('ZA','South Africa','27'),
|
|
202
|
+
('KR','South Korea (대한민국)','82'),
|
|
203
|
+
('SS','South Sudan (جنوب السودان)','211'),
|
|
204
|
+
('ES','Spain (España)','34'),
|
|
205
|
+
('LK','Sri Lanka (ශ්රී ලංකාව)','94'),
|
|
206
|
+
('SD','Sudan (السودان)','249'),
|
|
207
|
+
('SR','Suriname','597'),
|
|
208
|
+
('SJ','Svalbard and Jan Mayen','47'),
|
|
209
|
+
('SZ','Swaziland','268'),
|
|
210
|
+
('SE','Sweden (Sverige)','46'),
|
|
211
|
+
('CH','Switzerland (Schweiz)','41'),
|
|
212
|
+
('SY','Syria (سوريا)','963'),
|
|
213
|
+
('TW','Taiwan (台灣)','886'),
|
|
214
|
+
('TJ','Tajikistan','992'),
|
|
215
|
+
('TZ','Tanzania','255'),
|
|
216
|
+
('TH','Thailand (ไทย)','66'),
|
|
217
|
+
('TL','Timor-Leste','670'),
|
|
218
|
+
('TG','Togo','228'),
|
|
219
|
+
('TK','Tokelau','690'),
|
|
220
|
+
('TO','Tonga','676'),
|
|
221
|
+
('TT','Trinidad and Tobago','1868'),
|
|
222
|
+
('TN','Tunisia (تونس)','216'),
|
|
223
|
+
('TR','Turkey (Türkiye)','90'),
|
|
224
|
+
('TM','Turkmenistan','993'),
|
|
225
|
+
('TC','Turks and Caicos Islands','1649'),
|
|
226
|
+
('TV','Tuvalu','688'),
|
|
227
|
+
('VI','U.S. Virgin Islands','1340'),
|
|
228
|
+
('UG','Uganda','256'),
|
|
229
|
+
('UA','Ukraine (Україна)','380'),
|
|
230
|
+
('AE','United Arab Emirates (الإمارات العربية المتحدة)','971'),
|
|
231
|
+
('GB','United Kingdom','44'),
|
|
232
|
+
('US','United States','1'),
|
|
233
|
+
('UY','Uruguay','598'),
|
|
234
|
+
('UZ','Uzbekistan (Oʻzbekiston)','998'),
|
|
235
|
+
('VU','Vanuatu','678'),
|
|
236
|
+
('VA','Vatican City (Città del Vaticano)','39'),
|
|
237
|
+
('VE','Venezuela','58'),
|
|
238
|
+
('VN','Vietnam (Việt Nam)','84'),
|
|
239
|
+
('WF','Wallis and Futuna','681'),
|
|
240
|
+
('EH','Western Sahara (الصحراء الغربية)','212'),
|
|
241
|
+
('YE','Yemen (اليمن)','967'),
|
|
242
|
+
('ZM','Zambia','260'),
|
|
243
|
+
('ZW','Zimbabwe','263'),
|
|
244
244
|
('AX','Åland Islands','358')
|
|
@@ -564,7 +564,7 @@ const DatagridFactory = (Factory)=>{
|
|
|
564
564
|
return <View testID={testID+"_Container"} pointerEvents={pointerEvents} style={[styles.container]} collapsable={false}>
|
|
565
565
|
{ <View testID={testID+"_ContentContainer"} style={[this.bindResizeEvents()?{height:this.renderedListHeight}:undefined]}>
|
|
566
566
|
<View testID={testID+"_AccordionHeader"} style={[styles.accordionHeader]} ref={this.layoutRef} onLayout={this.updateLayout.bind(this)}>
|
|
567
|
-
<DatagridActions
|
|
567
|
+
{this.props.showActions !== false ? <DatagridActions
|
|
568
568
|
testID={testID+"_Actions"}
|
|
569
569
|
pointerEvents = {pointerEvents}
|
|
570
570
|
title = {title}
|
|
@@ -572,7 +572,7 @@ const DatagridFactory = (Factory)=>{
|
|
|
572
572
|
selectedRows = {Object.assign({},this.selectedRows)}
|
|
573
573
|
selectedRowsActions = {this.renderSelectedRowsActions.bind(this)}
|
|
574
574
|
actions = {actions}
|
|
575
|
-
/>
|
|
575
|
+
/> : null}
|
|
576
576
|
{datagridHeader}
|
|
577
577
|
{_progressBar}
|
|
578
578
|
{showFooters ? (
|
|
@@ -24,7 +24,7 @@ import { StyleSheet,Dimensions,useWindowDimensions} from "react-native";
|
|
|
24
24
|
import Preloader from "$ecomponents/Preloader";
|
|
25
25
|
import Checkbox from "../Checkbox";
|
|
26
26
|
import { TouchableRipple } from "react-native-paper";
|
|
27
|
-
import { evalSingleValue } from "../Footer";
|
|
27
|
+
import { evalSingleValue,Footer } from "../Footer";
|
|
28
28
|
import i18n from "$i18n";
|
|
29
29
|
import { makePhoneCall,canMakePhoneCall as canMakeCall} from "$makePhoneCall";
|
|
30
30
|
import copyToClipboard from "$capp/clipboard";
|
|
@@ -36,6 +36,7 @@ import DatagridProgressBar from "./ProgressBar";
|
|
|
36
36
|
import {Flag} from "$ecomponents/Countries"
|
|
37
37
|
import View from "$ecomponents/View";
|
|
38
38
|
import {Menu} from "$ecomponents/BottomSheet";
|
|
39
|
+
import {styles as tableStyles} from "$ecomponents/Table";
|
|
39
40
|
|
|
40
41
|
export const arrayValueSeparator = ", ";
|
|
41
42
|
|
|
@@ -807,7 +808,7 @@ export default class CommonDatagridComponent extends AppComponent {
|
|
|
807
808
|
const customMenu = []
|
|
808
809
|
Object.map(this.props.customMenu,(menu,i)=>{
|
|
809
810
|
if(isObj(menu)){
|
|
810
|
-
const {onPress,
|
|
811
|
+
const {onPress,label,text,children,...rest} = menu;
|
|
811
812
|
const args = {context:this,refresh:this.refresh.bind(this)};
|
|
812
813
|
const lCB = defaultVal(children,label,text);
|
|
813
814
|
const labelText = typeof lCB ==='function'? lCB(args) : lCB;
|
|
@@ -992,23 +993,19 @@ export default class CommonDatagridComponent extends AppComponent {
|
|
|
992
993
|
sectionListColumns[columnName] = {};
|
|
993
994
|
}
|
|
994
995
|
const {sectionListColumns:pSListColumns} = this.prepareColumns({sectionListColumns});
|
|
995
|
-
this.
|
|
996
|
-
this.
|
|
997
|
-
this.
|
|
998
|
-
this.setIsLoading(false);
|
|
999
|
-
});
|
|
996
|
+
this.prepareData({data:this.INITIAL_STATE.data,sectionListColumns:pSListColumns},(state)=>{
|
|
997
|
+
this.setState({...state,sectionListColumns:pSListColumns},()=>{
|
|
998
|
+
this.setIsLoading(false);
|
|
1000
999
|
});
|
|
1001
|
-
})
|
|
1000
|
+
});
|
|
1002
1001
|
}
|
|
1003
1002
|
removeAllColumnsInSectionList(){
|
|
1004
1003
|
const {sectionListColumns} = this.prepareColumns({sectionListColumns:{}});
|
|
1005
|
-
this.
|
|
1006
|
-
this.
|
|
1007
|
-
this.
|
|
1008
|
-
this.setIsLoading(false);
|
|
1009
|
-
});
|
|
1004
|
+
this.prepareData({data:this.INITIAL_STATE.data,sectionListColumns},(state)=>{
|
|
1005
|
+
this.setState({...state,sectionListColumns},()=>{
|
|
1006
|
+
this.setIsLoading(false);
|
|
1010
1007
|
});
|
|
1011
|
-
})
|
|
1008
|
+
});
|
|
1012
1009
|
}
|
|
1013
1010
|
/*** permet d'effectuer le rendu des colonnes groupable dans le menu item */
|
|
1014
1011
|
renderSectionListMenu(){
|
|
@@ -1440,11 +1437,42 @@ export default class CommonDatagridComponent extends AppComponent {
|
|
|
1440
1437
|
rowStyle.push(style);
|
|
1441
1438
|
}
|
|
1442
1439
|
}
|
|
1443
|
-
|
|
1444
|
-
|
|
1440
|
+
let cells = null;
|
|
1441
|
+
if(this.state.showFooters && isObj(this.sectionListHeaderFooters[key])){
|
|
1442
|
+
const {visibleColumnsNames,widths} = defaultObj(this.preparedColumns);
|
|
1443
|
+
if(isObj(visibleColumnsNames) &&isObj(widths)){
|
|
1444
|
+
cells = [];
|
|
1445
|
+
const footers = this.sectionListHeaderFooters[key];
|
|
1446
|
+
Object.map(visibleColumnsNames,(v,column)=>{
|
|
1447
|
+
if(typeof widths[column] !== 'number') return null;
|
|
1448
|
+
const width = widths[column];
|
|
1449
|
+
if(!column) return null;
|
|
1450
|
+
const key = key+column;
|
|
1451
|
+
if(!column || !this.state.columns[column] || !footers[column]) {
|
|
1452
|
+
if(this.isAccordion()) return null;
|
|
1453
|
+
cells.push(<View key={key} testID={testID+"_FooterCellContainer"+key} style={[tableStyles.headerItemOrCell,{width}]}>
|
|
1454
|
+
|
|
1455
|
+
</View>)
|
|
1456
|
+
} else {
|
|
1457
|
+
const footer = footers[column];
|
|
1458
|
+
cells.push(<View key={key} testID={testID+"_FooterCellContainer"+key} style={[tableStyles.headerItemOrCell,{width,alignItems:'flex-start',justifyContent:'flex-start'}]}>
|
|
1459
|
+
<Footer
|
|
1460
|
+
key = {key}
|
|
1461
|
+
testID={testID+"_FooterItem_"+key}
|
|
1462
|
+
{...footer}
|
|
1463
|
+
displayLabel = {false}
|
|
1464
|
+
//anchorProps = {{style:[theme.styles.ph1,theme.styles.mh05]}}
|
|
1465
|
+
/>
|
|
1466
|
+
</View>)
|
|
1467
|
+
}
|
|
1468
|
+
|
|
1469
|
+
});
|
|
1470
|
+
}
|
|
1445
1471
|
}
|
|
1446
|
-
return <View testID={testID+"_ContentContainer"} style={[theme.styles.w100,theme.styles,theme.styles.justifyContentCenter,theme.styles.pt1,theme.styles.pb1,theme.styles.alignItemsCenter
|
|
1472
|
+
return <View testID={testID+"_ContentContainer"} style={[theme.styles.w100,theme.styles,theme.styles.justifyContentCenter,theme.styles.pt1,theme.styles.pb1,theme.styles.alignItemsCenter,!cells && theme.styles.ml1,theme.styles.mr1,cStyle]}>
|
|
1447
1473
|
<Label testID={testID+"_Label"} splitText numberOfLines={3} textBold style={[theme.styles.w100,lStyle]}>{label}</Label>
|
|
1474
|
+
{cells ? <View style = {[theme.styles.w100,theme.styles.row,theme.styles.alignItemsFlexStart]}
|
|
1475
|
+
>{cells}</View> : null}
|
|
1448
1476
|
</View>
|
|
1449
1477
|
}
|
|
1450
1478
|
isRowSelected(rowKey,rowIndex){
|
|
@@ -1853,8 +1881,11 @@ export default class CommonDatagridComponent extends AppComponent {
|
|
|
1853
1881
|
canAutoSort(){
|
|
1854
1882
|
return this.isSortable() && this.props.autoSort !==false ? true : false;
|
|
1855
1883
|
}
|
|
1884
|
+
isSelectable(){
|
|
1885
|
+
return this.props.selectable !== false ? true : false;
|
|
1886
|
+
}
|
|
1856
1887
|
isSelectableMultiple(){
|
|
1857
|
-
return defaultBool(this.props.selectableMultiple,true)
|
|
1888
|
+
return this.isSelectable() && defaultBool(this.props.selectableMultiple,true)
|
|
1858
1889
|
}
|
|
1859
1890
|
getSort(){
|
|
1860
1891
|
return defaultObj(this.sortRef.current);
|
|
@@ -2174,6 +2205,7 @@ CommonDatagridComponent.propTypes = {
|
|
|
2174
2205
|
PropTypes.bool,
|
|
2175
2206
|
PropTypes.object,
|
|
2176
2207
|
]),
|
|
2208
|
+
showActions : PropTypes.bool,//si on affichera les actions du datagrid
|
|
2177
2209
|
/*** affiche ou masque les filtres */
|
|
2178
2210
|
showFilters : PropTypes.bool,
|
|
2179
2211
|
/*** si le pied de page sera affiché */
|