ngx-dial-input 2.0.3 → 2.0.5

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.
@@ -7,6 +7,15 @@ import * as i1 from '@angular/common';
7
7
  import { CommonModule } from '@angular/common';
8
8
 
9
9
  const countries = [
10
+ {
11
+ name: 'Panama',
12
+ native: 'Panamá',
13
+ iso2: 'pa',
14
+ dialCode: '+507',
15
+ format: '+507 ##-###-####',
16
+ flag: 'https://flagcdn.com/w40/pa.png',
17
+ phoneLength: 8
18
+ },
10
19
  {
11
20
  name: 'Pakistan',
12
21
  native: 'پاکستان',
@@ -1214,20 +1223,657 @@ const countries = [
1214
1223
  phoneLength: 10 // NANP standard (e.g., +1 416 123 4567)
1215
1224
  },
1216
1225
  {
1217
- name: 'Panama',
1218
- native: 'Panamá',
1219
- iso2: 'pa',
1220
- dialCode: '+507',
1221
- format: '+507 ##-###-####',
1222
- flag: 'https://flagcdn.com/w40/pa.png',
1223
- phoneLength: 8 // Mobile: 8 digits (e.g., +507 6123 4567)
1224
- }
1226
+ name: 'Costa Rica',
1227
+ native: 'Costa Rica',
1228
+ iso2: 'cr',
1229
+ dialCode: '+506',
1230
+ format: '+506 ###-####',
1231
+ flag: 'https://flagcdn.com/w40/cr.png',
1232
+ phoneLength: 8 // Mobile: 8 digits (e.g., +506 6123 4567)
1233
+ },
1234
+ {
1235
+ name: 'El Salvador',
1236
+ native: 'El Salvador',
1237
+ iso2: 'sv',
1238
+ dialCode: '+503',
1239
+ format: '+503 ##-###-####',
1240
+ flag: 'https://flagcdn.com/w40/sv.png',
1241
+ phoneLength: 8 // Mobile: 8 digits (e.g., +503 6123 4567)
1242
+ },
1243
+ {
1244
+ name: 'Guatemala',
1245
+ native: 'Guatemala',
1246
+ iso2: 'gt',
1247
+ dialCode: '+502',
1248
+ format: '+502 ##-###-####',
1249
+ flag: 'https://flagcdn.com/w40/gt.png',
1250
+ phoneLength: 8 // Mobile: 8 digits (e.g., +502 6123 4567)
1251
+ },
1252
+ {
1253
+ name: 'Honduras',
1254
+ native: 'Honduras',
1255
+ iso2: 'hn',
1256
+ dialCode: '+504',
1257
+ format: '+504 ##-###-####',
1258
+ flag: 'https://flagcdn.com/w40/hn.png',
1259
+ phoneLength: 8 // Mobile: 8 digits (e.g., +504 6123 4567)
1260
+ },
1261
+ {
1262
+ name: 'Nicaragua',
1263
+ native: 'Nicaragua',
1264
+ iso2: 'ni',
1265
+ dialCode: '+505',
1266
+ format: '+505 ##-###-####',
1267
+ flag: 'https://flagcdn.com/w40/ni.png',
1268
+ phoneLength: 8 // Mobile: 8 digits (e.g., +505 6123 4567)
1269
+ },
1270
+ {
1271
+ name: 'Belize',
1272
+ native: 'Belize',
1273
+ iso2: 'bz',
1274
+ dialCode: '+501',
1275
+ format: '+501 ###-####',
1276
+ flag: 'https://flagcdn.com/w40/bz.png',
1277
+ phoneLength: 7 // Mobile: 7 digits (e.g., +501 6123 456)
1278
+ },
1279
+ {
1280
+ name: 'Curaçao',
1281
+ native: 'Curaçao',
1282
+ iso2: 'cw',
1283
+ dialCode: '+599',
1284
+ format: '+599 9 ### ####',
1285
+ flag: 'https://flagcdn.com/w40/cw.png',
1286
+ phoneLength: 7 // Mobile: 7 digits (e.g., +599 9 123 4567)
1287
+ },
1288
+ {
1289
+ name: 'Sint Maarten (Dutch part)',
1290
+ native: 'Sint Maarten',
1291
+ iso2: 'sx',
1292
+ dialCode: '+1 721',
1293
+ format: '+1 721 ### ####',
1294
+ flag: 'https://flagcdn.com/w40/sx.png',
1295
+ phoneLength: 10 // Mobile: 10 digits (e.g., +1 721 123 4567)
1296
+ },
1297
+ {
1298
+ name: 'Aruba',
1299
+ native: 'Aruba',
1300
+ iso2: 'aw',
1301
+ dialCode: '+297',
1302
+ format: '+297 ### ####',
1303
+ flag: 'https://flagcdn.com/w40/aw.png',
1304
+ phoneLength: 7 // Mobile: 7 digits (e.g., +297 6123 456)
1305
+ },
1306
+ {
1307
+ name: 'Bonaire, Sint Eustatius and Saba',
1308
+ native: 'Bonaire, Sint Eustatius en Saba',
1309
+ iso2: 'bq',
1310
+ dialCode: '+599 7',
1311
+ format: '+599 7 ### ####',
1312
+ flag: 'https://flagcdn.com/w40/bq.png',
1313
+ phoneLength: 7 // Mobile: 7 digits (e.g., +599 7 123 4567)
1314
+ },
1315
+ {
1316
+ name: 'Sint Eustatius',
1317
+ native: 'Sint Eustatius',
1318
+ iso2: 'bq',
1319
+ dialCode: '+599 3',
1320
+ format: '+599 3 ### ####',
1321
+ flag: 'https://flagcdn.com/w40/bq.png',
1322
+ phoneLength: 7 // Mobile: 7 digits (e.g., +599 3 123 4567)
1323
+ },
1324
+ {
1325
+ name: 'Saba',
1326
+ native: 'Saba',
1327
+ iso2: 'bq',
1328
+ dialCode: '+599 4',
1329
+ format: '+599 4 ### ####',
1330
+ flag: 'https://flagcdn.com/w40/bq.png',
1331
+ phoneLength: 7 // Mobile: 7 digits (e.g., +599 4 123 4567)
1332
+ },
1333
+ {
1334
+ name: 'Greece',
1335
+ native: 'Ελλάδα',
1336
+ iso2: 'gr',
1337
+ dialCode: '+30',
1338
+ flag: 'https://flagcdn.com/w40/gr.png',
1339
+ format: '+30 ### ### ####',
1340
+ phoneLength: 10
1341
+ },
1342
+ {
1343
+ name: 'Cyprus',
1344
+ native: 'Κύπρος',
1345
+ iso2: 'cy',
1346
+ dialCode: '+357',
1347
+ format: '+357 ## ### ####',
1348
+ flag: 'https://flagcdn.com/w40/cy.png',
1349
+ phoneLength: 8
1350
+ },
1351
+ {
1352
+ name: 'Malta',
1353
+ native: 'Malta',
1354
+ iso2: 'mt',
1355
+ dialCode: '+356',
1356
+ format: '+356 #### ####',
1357
+ flag: 'https://flagcdn.com/w40/mt.png',
1358
+ phoneLength: 8
1359
+ },
1360
+ {
1361
+ name: 'Iceland',
1362
+ native: 'Ísland',
1363
+ iso2: 'is',
1364
+ dialCode: '+354',
1365
+ format: '+354 ### ####',
1366
+ flag: 'https://flagcdn.com/w40/is.png',
1367
+ phoneLength: 7
1368
+ },
1369
+ {
1370
+ name: 'Luxembourg',
1371
+ native: 'Lëtzebuerg',
1372
+ iso2: 'lu',
1373
+ dialCode: '+352',
1374
+ format: '+352 #### #####',
1375
+ flag: 'https://flagcdn.com/w40/lu.png',
1376
+ phoneLength: 8
1377
+ }, {
1378
+ name: 'Monaco',
1379
+ native: 'Monaco',
1380
+ iso2: 'mc',
1381
+ dialCode: '+377',
1382
+ format: '+377 ## ## ## ##',
1383
+ flag: 'https://flagcdn.com/w40/mc.png',
1384
+ phoneLength: 8
1385
+ },
1386
+ {
1387
+ name: 'Liechtenstein',
1388
+ native: 'Liechtenstein',
1389
+ iso2: 'li',
1390
+ dialCode: '+423',
1391
+ format: '+423 ### ####',
1392
+ flag: 'https://flagcdn.com/w40/li.png',
1393
+ phoneLength: 7
1394
+ },
1395
+ {
1396
+ name: 'San Marino',
1397
+ native: 'San Marino',
1398
+ iso2: 'sm',
1399
+ dialCode: '+378',
1400
+ format: '+378 ### #####',
1401
+ flag: 'https://flagcdn.com/w40/sm.png',
1402
+ phoneLength: 8
1403
+ },
1404
+ {
1405
+ name: 'Vatican City',
1406
+ native: 'Città del Vaticano',
1407
+ iso2: 'va',
1408
+ dialCode: '+379',
1409
+ format: '+379 ### #####',
1410
+ flag: 'https://flagcdn.com/w40/va.png',
1411
+ phoneLength: 8
1412
+ },
1413
+ {
1414
+ name: 'Andorra',
1415
+ native: 'Andorra',
1416
+ iso2: 'ad',
1417
+ dialCode: '+376',
1418
+ format: '+376 ### ###',
1419
+ flag: 'https://flagcdn.com/w40/ad.png',
1420
+ phoneLength: 6
1421
+ },
1422
+ {
1423
+ name: 'Maldives',
1424
+ native: 'Maldives',
1425
+ iso2: 'mv',
1426
+ dialCode: '+960',
1427
+ format: '+960 ## ###',
1428
+ flag: 'https://flagcdn.com/w40/mv.png',
1429
+ phoneLength: 7
1430
+ },
1431
+ {
1432
+ name: 'Sri Lanka',
1433
+ native: 'ශ්‍රී ලංකාව',
1434
+ iso2: 'lk',
1435
+ dialCode: '+94',
1436
+ format: '+94 ## ### ####',
1437
+ flag: 'https://flagcdn.com/w40/lk.png',
1438
+ phoneLength: 9
1439
+ },
1440
+ {
1441
+ name: 'Nepal',
1442
+ native: 'नेपाल',
1443
+ iso2: 'np',
1444
+ dialCode: '+977',
1445
+ format: '+977 ## ### ####',
1446
+ flag: 'https://flagcdn.com/w40/np.png',
1447
+ phoneLength: 10
1448
+ },
1449
+ {
1450
+ name: 'Bhutan',
1451
+ native: 'འབྲུག',
1452
+ iso2: 'bt',
1453
+ dialCode: '+975',
1454
+ format: '+975 ## ### ###',
1455
+ flag: 'https://flagcdn.com/w40/bt.png',
1456
+ phoneLength: 8
1457
+ },
1458
+ {
1459
+ name: 'Malawi',
1460
+ native: 'Malawi',
1461
+ iso2: 'mw',
1462
+ dialCode: '+265',
1463
+ format: '+265 ## ### ###',
1464
+ flag: 'https://flagcdn.com/w40/mw.png',
1465
+ phoneLength: 9
1466
+ },
1467
+ {
1468
+ name: 'Zambia',
1469
+ native: 'Zambia',
1470
+ iso2: 'zm',
1471
+ dialCode: '+260',
1472
+ format: '+260 ## ### ####',
1473
+ flag: 'https://flagcdn.com/w40/zm.png',
1474
+ phoneLength: 9
1475
+ },
1476
+ {
1477
+ name: 'Botswana',
1478
+ native: 'Botswana',
1479
+ iso2: 'bw',
1480
+ dialCode: '+267',
1481
+ format: '+267 ## ### ###',
1482
+ flag: 'https://flagcdn.com/w40/bw.png',
1483
+ phoneLength: 8
1484
+ },
1485
+ {
1486
+ name: 'Namibia',
1487
+ native: 'Namibia',
1488
+ iso2: 'na',
1489
+ dialCode: '+264',
1490
+ format: '+264 ## ### ###',
1491
+ flag: 'https://flagcdn.com/w40/na.png',
1492
+ phoneLength: 9
1493
+ },
1494
+ {
1495
+ name: 'Lesotho',
1496
+ native: 'Lesotho',
1497
+ iso2: 'ls',
1498
+ dialCode: '+266',
1499
+ format: '+266 ## ### ###',
1500
+ flag: 'https://flagcdn.com/w40/ls.png',
1501
+ phoneLength: 8
1502
+ },
1503
+ {
1504
+ name: 'Eswatini',
1505
+ native: 'Eswatini',
1506
+ iso2: 'sz',
1507
+ dialCode: '+268',
1508
+ format: '+268 ## ### ###',
1509
+ flag: 'https://flagcdn.com/w40/sz.png',
1510
+ phoneLength: 8
1511
+ },
1512
+ {
1513
+ name: 'Mozambique',
1514
+ native: 'Moçambique',
1515
+ iso2: 'mz',
1516
+ dialCode: '+258',
1517
+ format: '+258 ## ### ####',
1518
+ flag: 'https://flagcdn.com/w40/mz.png',
1519
+ phoneLength: 9
1520
+ },
1521
+ {
1522
+ name: 'Madagascar',
1523
+ native: 'Madagasikara',
1524
+ iso2: 'mg',
1525
+ dialCode: '+261',
1526
+ format: '+261 ## ## ### ##',
1527
+ flag: 'https://flagcdn.com/w40/mg.png',
1528
+ phoneLength: 9
1529
+ }, {
1530
+ name: 'Comoros',
1531
+ native: 'Komori',
1532
+ iso2: 'km',
1533
+ dialCode: '+269',
1534
+ format: '+269 ## ## ##',
1535
+ flag: 'https://flagcdn.com/w40/km.png',
1536
+ phoneLength: 6
1537
+ },
1538
+ {
1539
+ name: 'Tique',
1540
+ native: 'Tique',
1541
+ iso2: 'yt',
1542
+ dialCode: '+262',
1543
+ format: '+262 ## ## ## ##',
1544
+ flag: 'https://flagcdn.com/w40/yt.png',
1545
+ phoneLength: 9 // Same as Réunion (e.g., +262 639 12 34 56)
1546
+ },
1547
+ {
1548
+ name: 'Seychelles',
1549
+ native: 'Seychelles',
1550
+ iso2: 'sc',
1551
+ dialCode: '+248',
1552
+ format: '+248 ## ###',
1553
+ flag: 'https://flagcdn.com/w40/sc.png',
1554
+ phoneLength: 7
1555
+ },
1556
+ {
1557
+ name: 'Mauritius',
1558
+ native: 'Maurice',
1559
+ iso2: 'mu',
1560
+ dialCode: '+230',
1561
+ format: '+230 ## ### ###',
1562
+ flag: 'https://flagcdn.com/w40/mu.png',
1563
+ phoneLength: 8
1564
+ },
1565
+ {
1566
+ name: 'Rwanda',
1567
+ native: 'Rwanda',
1568
+ iso2: 'rw',
1569
+ dialCode: '+250',
1570
+ format: '+250 ## ### ###',
1571
+ flag: 'https://flagcdn.com/w40/rw.png',
1572
+ phoneLength: 9
1573
+ },
1574
+ {
1575
+ name: 'Burundi',
1576
+ native: 'Burundi',
1577
+ iso2: 'bi',
1578
+ dialCode: '+257',
1579
+ format: '+257 ## ### ###',
1580
+ flag: 'https://flagcdn.com/w40/bi.png',
1581
+ phoneLength: 8
1582
+ },
1583
+ {
1584
+ name: 'Cape Verde',
1585
+ native: 'Cabo Verde',
1586
+ iso2: 'cv',
1587
+ dialCode: '+238',
1588
+ format: '+238 ### ####',
1589
+ flag: 'https://flagcdn.com/w40/cv.png',
1590
+ phoneLength: 7
1591
+ },
1592
+ {
1593
+ name: 'São Tomé and Príncipe',
1594
+ native: 'São Tomé e Príncipe',
1595
+ iso2: 'st',
1596
+ dialCode: '+239',
1597
+ format: '+239 ## #####',
1598
+ flag: 'https://flagcdn.com/w40/st.png',
1599
+ phoneLength: 7
1600
+ },
1601
+ {
1602
+ name: 'Liberia',
1603
+ native: 'Liberia',
1604
+ iso2: 'lr',
1605
+ dialCode: '+231',
1606
+ format: '+231 ## ### ###',
1607
+ flag: 'https://flagcdn.com/w40/lr.png',
1608
+ phoneLength: 8
1609
+ },
1610
+ {
1611
+ name: 'Sierra Leone',
1612
+ native: 'Sierra Leone',
1613
+ iso2: 'sl',
1614
+ dialCode: '+232',
1615
+ format: '+232 ## ######',
1616
+ flag: 'https://flagcdn.com/w40/sl.png',
1617
+ phoneLength: 8
1618
+ },
1619
+ {
1620
+ name: 'Guinea',
1621
+ native: 'Guinée',
1622
+ iso2: 'gn',
1623
+ dialCode: '+224',
1624
+ format: '+224 ### ######',
1625
+ flag: 'https://flagcdn.com/w40/gn.png',
1626
+ phoneLength: 9
1627
+ },
1628
+ {
1629
+ name: 'Guinea-Bissau',
1630
+ native: 'Guiné-Bissau',
1631
+ iso2: 'gw',
1632
+ dialCode: '+245',
1633
+ format: '+245 ### ####',
1634
+ flag: 'https://flagcdn.com/w40/gw.png',
1635
+ phoneLength: 7
1636
+ },
1637
+ {
1638
+ name: 'Equatorial Guinea',
1639
+ native: 'Guinea Ecuatorial',
1640
+ iso2: 'gq',
1641
+ dialCode: '+240',
1642
+ format: '+240 ## ### ####',
1643
+ flag: 'https://flagcdn.com/w40/gq.png',
1644
+ phoneLength: 9
1645
+ },
1646
+ {
1647
+ name: 'Gabon',
1648
+ native: 'Gabon',
1649
+ iso2: 'ga',
1650
+ dialCode: '+241',
1651
+ format: '+241 # ## ## ##',
1652
+ flag: 'https://flagcdn.com/w40/ga.png',
1653
+ phoneLength: 7
1654
+ },
1655
+ {
1656
+ name: 'Central African Republic',
1657
+ native: 'République centrafricaine',
1658
+ iso2: 'cf',
1659
+ dialCode: '+236',
1660
+ format: '+236 ## ## ####',
1661
+ flag: 'https://flagcdn.com/w40/cf.png',
1662
+ phoneLength: 8
1663
+ },
1664
+ {
1665
+ name: 'Republic of the Congo',
1666
+ native: 'Congo-Brazzaville',
1667
+ iso2: 'cg',
1668
+ dialCode: '+242',
1669
+ format: '+242 ## ### ###',
1670
+ flag: 'https://flagcdn.com/w40/cg.png',
1671
+ phoneLength: 9
1672
+ },
1673
+ {
1674
+ name: 'Democratic Republic of the Congo',
1675
+ native: 'Congo-Kinshasa',
1676
+ iso2: 'cd',
1677
+ dialCode: '+243',
1678
+ format: '+243 ## ### ####',
1679
+ flag: 'https://flagcdn.com/w40/cd.png',
1680
+ phoneLength: 9
1681
+ },
1682
+ {
1683
+ name: 'Cameroon',
1684
+ native: 'Cameroun',
1685
+ iso2: 'cm',
1686
+ dialCode: '+237',
1687
+ format: '+237 #### ####',
1688
+ flag: 'https://flagcdn.com/w40/cm.png',
1689
+ phoneLength: 8
1690
+ },
1691
+ {
1692
+ name: 'Chad',
1693
+ native: 'Tchad',
1694
+ iso2: 'td',
1695
+ dialCode: '+235',
1696
+ format: '+235 ## ## ## ##',
1697
+ flag: 'https://flagcdn.com/w40/td.png',
1698
+ phoneLength: 8
1699
+ },
1700
+ {
1701
+ name: 'Niger',
1702
+ native: 'Niger',
1703
+ iso2: 'ne',
1704
+ dialCode: '+227',
1705
+ format: '+227 ## ## ####',
1706
+ flag: 'https://flagcdn.com/w40/ne.png',
1707
+ phoneLength: 8
1708
+ },
1709
+ {
1710
+ name: 'Mali',
1711
+ native: 'Mali',
1712
+ iso2: 'ml',
1713
+ dialCode: '+223',
1714
+ format: '+223 ## ## ####',
1715
+ flag: 'https://flagcdn.com/w40/ml.png',
1716
+ phoneLength: 8
1717
+ },
1718
+ {
1719
+ name: 'Burkina Faso',
1720
+ native: 'Burkina Faso',
1721
+ iso2: 'bf',
1722
+ dialCode: '+226',
1723
+ format: '+226 ## ## ####',
1724
+ flag: 'https://flagcdn.com/w40/bf.png',
1725
+ phoneLength: 8
1726
+ },
1727
+ {
1728
+ name: 'Togo',
1729
+ native: 'Togo',
1730
+ iso2: 'tg',
1731
+ dialCode: '+228',
1732
+ format: '+228 ## ### ###',
1733
+ flag: 'https://flagcdn.com/w40/tg.png',
1734
+ phoneLength: 8
1735
+ },
1736
+ {
1737
+ name: 'Benin',
1738
+ native: 'Bénin',
1739
+ iso2: 'bj',
1740
+ dialCode: '+229',
1741
+ format: '+229 ## ## ####',
1742
+ flag: 'https://flagcdn.com/w40/bj.png',
1743
+ phoneLength: 8
1744
+ },
1745
+ {
1746
+ name: 'Ivory Coast',
1747
+ native: "Côte d'Ivoire",
1748
+ iso2: 'ci',
1749
+ dialCode: '+225',
1750
+ format: '+225 ## ### ###',
1751
+ flag: 'https://flagcdn.com/w40/ci.png',
1752
+ phoneLength: 8
1753
+ },
1754
+ {
1755
+ name: 'Gambia',
1756
+ native: 'Gambia',
1757
+ iso2: 'gm',
1758
+ dialCode: '+220',
1759
+ format: '+220 ### ####',
1760
+ flag: 'https://flagcdn.com/w40/gm.png',
1761
+ phoneLength: 7
1762
+ },
1763
+ {
1764
+ name: 'Mauritania',
1765
+ native: 'Mauritanie',
1766
+ iso2: 'mr',
1767
+ dialCode: '+222',
1768
+ format: '+222 ## ## ## ##',
1769
+ flag: 'https://flagcdn.com/w40/mr.png',
1770
+ phoneLength: 8
1771
+ },
1772
+ {
1773
+ name: 'East Timor',
1774
+ native: 'Timor-Leste',
1775
+ iso2: 'tl',
1776
+ dialCode: '+670',
1777
+ format: '+670 ### ####',
1778
+ flag: 'https://flagcdn.com/w40/tl.png',
1779
+ phoneLength: 7
1780
+ },
1781
+ {
1782
+ name: 'Palestine',
1783
+ native: 'فلسطين',
1784
+ iso2: 'ps',
1785
+ dialCode: '+970',
1786
+ format: '+970 ## ### ####',
1787
+ flag: 'https://flagcdn.com/w40/ps.png',
1788
+ phoneLength: 9
1789
+ },
1790
+ {
1791
+ name: 'Lebanon',
1792
+ native: 'لبنان',
1793
+ iso2: 'lb',
1794
+ dialCode: '+961',
1795
+ format: '+961 ## ### ###',
1796
+ flag: 'https://flagcdn.com/w40/lb.png',
1797
+ phoneLength: 8
1798
+ },
1799
+ {
1800
+ name: 'Syria',
1801
+ native: 'سوريا',
1802
+ iso2: 'sy',
1803
+ dialCode: '+963',
1804
+ format: '+963 ## ######',
1805
+ flag: 'https://flagcdn.com/w40/sy.png',
1806
+ phoneLength: 8
1807
+ },
1808
+ {
1809
+ name: 'Jordan',
1810
+ native: 'الأردن',
1811
+ iso2: 'jo',
1812
+ dialCode: '+962',
1813
+ format: '+962 # #### ####',
1814
+ flag: 'https://flagcdn.com/w40/jo.png',
1815
+ phoneLength: 9
1816
+ },
1817
+ {
1818
+ name: 'Yemen',
1819
+ native: 'اليمن',
1820
+ iso2: 'ye',
1821
+ dialCode: '+967',
1822
+ format: '+967 ### ### ###',
1823
+ flag: 'https://flagcdn.com/w40/ye.png',
1824
+ phoneLength: 9
1825
+ },
1826
+ {
1827
+ name: 'Oman',
1828
+ native: 'عُمان',
1829
+ iso2: 'om',
1830
+ dialCode: '+968',
1831
+ format: '+968 ## ### ###',
1832
+ flag: 'https://flagcdn.com/w40/om.png',
1833
+ phoneLength: 8
1834
+ },
1835
+ {
1836
+ name: 'Qatar',
1837
+ native: 'قطر',
1838
+ iso2: 'qa',
1839
+ dialCode: '+974',
1840
+ format: '+974 #### ####',
1841
+ flag: 'https://flagcdn.com/w40/qa.png',
1842
+ phoneLength: 8
1843
+ },
1844
+ {
1845
+ name: 'Kuwait',
1846
+ native: 'الكويت',
1847
+ iso2: 'kw',
1848
+ dialCode: '+965',
1849
+ format: '+965 #### ####',
1850
+ flag: 'https://flagcdn.com/w40/kw.png',
1851
+ phoneLength: 8
1852
+ },
1853
+ {
1854
+ name: 'Bahrain',
1855
+ native: 'البحرين',
1856
+ iso2: 'bh',
1857
+ dialCode: '+973',
1858
+ format: '+973 #### ####',
1859
+ flag: 'https://flagcdn.com/w40/bh.png',
1860
+ phoneLength: 8
1861
+ },
1862
+ {
1863
+ name: 'Israel',
1864
+ native: 'ישראל',
1865
+ iso2: 'il',
1866
+ dialCode: '+972',
1867
+ format: '+972 ## ### ####',
1868
+ flag: 'https://flagcdn.com/w40/il.png',
1869
+ phoneLength: 9
1870
+ },
1225
1871
  ];
1226
1872
 
1227
1873
  class PhoneInputComponent {
1228
1874
  constructor(eRef) {
1229
1875
  this.eRef = eRef;
1230
- this.countriesList = countries;
1876
+ this.countriesList = [...countries].sort((a, b) => a.name.localeCompare(b.name));
1231
1877
  this.searchTerm = '';
1232
1878
  this.defaultCountry = '';
1233
1879
  this.placeholder = '';
@@ -1271,11 +1917,13 @@ class PhoneInputComponent {
1271
1917
  }
1272
1918
  onSearchChange() {
1273
1919
  const term = this.searchTerm.toLowerCase();
1274
- this.countriesList = countries.filter(c => {
1920
+ this.countriesList = countries
1921
+ .filter(c => {
1275
1922
  var _a;
1276
1923
  return c.name.toLowerCase().includes(term) ||
1277
1924
  ((_a = c.native) === null || _a === void 0 ? void 0 : _a.toLowerCase().includes(term));
1278
- });
1925
+ })
1926
+ .sort((a, b) => a.name.localeCompare(b.name));
1279
1927
  }
1280
1928
  selectCountry(country) {
1281
1929
  this.selectedCountry = country;