ordering-ui-admin-external 1.3.0 → 1.3.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/_bundles/{ordering-ui-admin.977451ddd1e3c8d3a2d7.js → ordering-ui-admin.6adfe91f3f26eaebf7f8.js} +2 -2
- package/_bundles/{ordering-ui-admin.977451ddd1e3c8d3a2d7.js.LICENSE.txt → ordering-ui-admin.6adfe91f3f26eaebf7f8.js.LICENSE.txt} +0 -0
- package/_modules/components/OrderingProducts/OrderingProductDetails/index.js +2 -4
- package/_modules/components/Orders/CurrencyFilter/index.js +24 -47
- package/_modules/components/Orders/OrderBill/index.js +40 -11
- package/_modules/components/Orders/OrderDetails/index.js +2 -1
- package/_modules/components/Orders/OrdersTable/index.js +5 -2
- package/_modules/components/Orders/ProductItemAccordion/index.js +10 -5
- package/_modules/config/constants.js +412 -2
- package/package.json +1 -1
- package/src/components/OrderingProducts/OrderingProductDetails/index.js +1 -1
- package/src/components/Orders/CurrencyFilter/index.js +22 -41
- package/src/components/Orders/OrderBill/index.js +15 -15
- package/src/components/Orders/OrderDetails/index.js +1 -0
- package/src/components/Orders/OrdersTable/index.js +2 -2
- package/src/components/Orders/ProductItemAccordion/index.js +4 -3
- package/src/config/constants.js +547 -0
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.timezones = exports.countryList = void 0;
|
|
6
|
+
exports.timezones = exports.currencyList = exports.countryList = void 0;
|
|
7
7
|
var timezones = ['UTC', 'Africa/Abidjan', 'Africa/Accra', 'Africa/Addis_Ababa', 'Africa/Algiers', 'Africa/Asmara', 'Africa/Bamako', 'Africa/Bangui', 'Africa/Banjul', 'Africa/Bissau', 'Africa/Blantyre', 'Africa/Brazzaville', 'Africa/Bujumbura', 'Africa/Cairo', 'Africa/Casablanca', 'Africa/Ceuta', 'Africa/Conakry', 'Africa/Dakar', 'Africa/Dar_es_Salaam', 'Africa/Djibouti', 'Africa/Douala', 'Africa/El_Aaiun', 'Africa/Freetown', 'Africa/Gaborone', 'Africa/Harare', 'Africa/Johannesburg', 'Africa/Juba', 'Africa/Kampala', 'Africa/Khartoum', 'Africa/Kigali', 'Africa/Kinshasa', 'Africa/Lagos', 'Africa/Libreville', 'Africa/Lome', 'Africa/Luanda', 'Africa/Lubumbashi', 'Africa/Lusaka', 'Africa/Malabo', 'Africa/Maputo', 'Africa/Maseru', 'Africa/Mbabane', 'Africa/Mogadishu', 'Africa/Monrovia', 'Africa/Nairobi', 'Africa/Ndjamena', 'Africa/Niamey', 'Africa/Nouakchott', 'Africa/Ouagadougou', 'Africa/Porto-Novo', 'Africa/Sao_Tome', 'Africa/Tripoli', 'Africa/Tunis', 'Africa/Windhoek', 'America/Adak', 'America/Anchorage', 'America/Anguilla', 'America/Antigua', 'America/Araguaina', 'America/Argentina/Buenos_Aires', 'America/Argentina/Catamarca', 'America/Argentina/Cordoba', 'America/Argentina/Jujuy', 'America/Argentina/La_Rioja', 'America/Argentina/Mendoza', 'America/Argentina/Rio_Gallegos', 'America/Argentina/Salta', 'America/Argentina/San_Juan', 'America/Argentina/San_Luis', 'America/Argentina/Tucuman', 'America/Argentina/Ushuaia', 'America/Aruba', 'America/Asuncion', 'America/Atikokan', 'America/Bahia', 'America/Bahia_Banderas', 'America/Barbados', 'America/Belem', 'America/Belize', 'America/Blanc-Sablon', 'America/Boa_Vista', 'America/Bogota', 'America/Boise', 'America/Cambridge_Bay', 'America/Campo_Grande', 'America/Cancun', 'America/Caracas', 'America/Cayenne', 'America/Cayman', 'America/Chicago', 'America/Chihuahua', 'America/Costa_Rica', 'America/Creston', 'America/Cuiaba', 'America/Curacao', 'America/Danmarkshavn', 'America/Dawson', 'America/Dawson_Creek', 'America/Denver', 'America/Detroit', 'America/Dominica', 'America/Edmonton', 'America/Eirunepe', 'America/El_Salvador', 'America/Fort_Nelson', 'America/Fortaleza', 'America/Glace_Bay', 'America/Godthab', 'America/Goose_Bay', 'America/Grand_Turk', 'America/Grenada', 'America/Guadeloupe', 'America/Guatemala', 'America/Guayaquil', 'America/Guyana', 'America/Halifax', 'America/Havana', 'America/Hermosillo', 'America/Indiana/Indianapolis', 'America/Indiana/Knox', 'America/Indiana/Marengo', 'America/Indiana/Petersburg', 'America/Indiana/Tell_City', 'America/Indiana/Vevay', 'America/Indiana/Vincennes', 'America/Indiana/Winamac', 'America/Inuvik', 'America/Iqaluit', 'America/Jamaica', 'America/Juneau', 'America/Kentucky/Louisville', 'America/Kentucky/Monticello', 'America/Kralendijk', 'America/La_Paz', 'America/Lima', 'America/Los_Angeles', 'America/Lower_Princes', 'America/Maceio', 'America/Managua', 'America/Manaus', 'America/Marigot', 'America/Martinique', 'America/Matamoros', 'America/Mazatlan', 'America/Menominee', 'America/Merida', 'America/Metlakatla', 'America/Mexico_City', 'America/Miquelon', 'America/Moncton', 'America/Monterrey', 'America/Montevideo', 'America/Montserrat', 'America/Nassau', 'America/New_York', 'America/Nipigon', 'America/Nome', 'America/Noronha', 'America/North_Dakota/Beulah', 'America/North_Dakota/Center', 'America/North_Dakota/New_Salem', 'America/Ojinaga', 'America/Panama', 'America/Pangnirtung', 'America/Paramaribo', 'America/Phoenix', 'America/Port-au-Prince', 'America/Port_of_Spain', 'America/Porto_Velho', 'America/Puerto_Rico', 'America/Punta_Arenas', 'America/Rainy_River', 'America/Rankin_Inlet', 'America/Recife', 'America/Regina', 'America/Resolute', 'America/Rio_Branco', 'America/Santarem', 'America/Santiago', 'America/Santo_Domingo', 'America/Sao_Paulo', 'America/Scoresbysund', 'America/Sitka', 'America/St_Barthelemy', 'America/St_Johns', 'America/St_Kitts', 'America/St_Lucia', 'America/St_Thomas', 'America/St_Vincent', 'America/Swift_Current', 'America/Tegucigalpa', 'America/Thule', 'America/Thunder_Bay', 'America/Tijuana', 'America/Toronto', 'America/Tortola', 'America/Vancouver', 'America/Whitehorse', 'America/Winnipeg', 'America/Yakutat', 'America/Yellowknife', 'Antarctica/Casey', 'Antarctica/Davis', 'Antarctica/DumontDUrville', 'Antarctica/Macquarie', 'Antarctica/Mawson', 'Antarctica/McMurdo', 'Antarctica/Palmer', 'Antarctica/Rothera', 'Antarctica/Syowa', 'Antarctica/Troll', 'Antarctica/Vostok', 'Arctic/Longyearbyen', 'Asia/Aden', 'Asia/Almaty', 'Asia/Amman', 'Asia/Anadyr', 'Asia/Aqtau', 'Asia/Aqtobe', 'Asia/Ashgabat', 'Asia/Atyrau', 'Asia/Baghdad', 'Asia/Bahrain', 'Asia/Baku', 'Asia/Bangkok', 'Asia/Barnaul', 'Asia/Beirut', 'Asia/Bishkek', 'Asia/Brunei', 'Asia/Chita', 'Asia/Choibalsan', 'Asia/Colombo', 'Asia/Damascus', 'Asia/Dhaka', 'Asia/Dili', 'Asia/Dubai', 'Asia/Dushanbe', 'Asia/Famagusta', 'Asia/Gaza', 'Asia/Hebron', 'Asia/Ho_Chi_Minh', 'Asia/Hong_Kong', 'Asia/Hovd', 'Asia/Irkutsk', 'Asia/Jakarta', 'Asia/Jayapura', 'Asia/Jerusalem', 'Asia/Kabul', 'Asia/Kamchatka', 'Asia/Karachi', 'Asia/Kathmandu', 'Asia/Khandyga', 'Asia/Kolkata', 'Asia/Krasnoyarsk', 'Asia/Kuala_Lumpur', 'Asia/Kuching', 'Asia/Kuwait', 'Asia/Macau', 'Asia/Magadan', 'Asia/Makassar', 'Asia/Manila', 'Asia/Muscat', 'Asia/Nicosia', 'Asia/Novokuznetsk', 'Asia/Novosibirsk', 'Asia/Omsk', 'Asia/Oral', 'Asia/Phnom_Penh', 'Asia/Pontianak', 'Asia/Pyongyang', 'Asia/Qatar', 'Asia/Qyzylorda', 'Asia/Riyadh', 'Asia/Sakhalin', 'Asia/Samarkand', 'Asia/Seoul', 'Asia/Shanghai', 'Asia/Singapore', 'Asia/Srednekolymsk', 'Asia/Taipei', 'Asia/Tashkent', 'Asia/Tbilisi', 'Asia/Tehran', 'Asia/Thimphu', 'Asia/Tokyo', 'Asia/Tomsk', 'Asia/Ulaanbaatar', 'Asia/Urumqi', 'Asia/Ust-Nera', 'Asia/Vientiane', 'Asia/Vladivostok', 'Asia/Yakutsk', 'Asia/Yangon', 'Asia/Yekaterinburg', 'Asia/Yerevan', 'Atlantic/Azores', 'Atlantic/Bermuda', 'Atlantic/Canary', 'Atlantic/Cape_Verde', 'Atlantic/Faroe', 'Atlantic/Madeira', 'Atlantic/Reykjavik', 'Atlantic/South_Georgia', 'Atlantic/St_Helena', 'Atlantic/Stanley', 'Australia/Adelaide', 'Australia/Brisbane', 'Australia/Broken_Hill', 'Australia/Currie', 'Australia/Darwin', 'Australia/Eucla', 'Australia/Hobart', 'Australia/Lindeman', 'Australia/Lord_Howe', 'Australia/Melbourne', 'Australia/Perth', 'Australia/Sydney', 'Europe/Amsterdam', 'Europe/Andorra', 'Europe/Astrakhan', 'Europe/Athens', 'Europe/Belgrade', 'Europe/Berlin', 'Europe/Bratislava', 'Europe/Brussels', 'Europe/Bucharest', 'Europe/Budapest', 'Europe/Busingen', 'Europe/Chisinau', 'Europe/Copenhagen', 'Europe/Dublin', 'Europe/Gibraltar', 'Europe/Guernsey', 'Europe/Helsinki', 'Europe/Isle_of_Man', 'Europe/Istanbul', 'Europe/Jersey', 'Europe/Kaliningrad', 'Europe/Kiev', 'Europe/Kirov', 'Europe/Lisbon', 'Europe/Ljubljana', 'Europe/London', 'Europe/Luxembourg', 'Europe/Madrid', 'Europe/Malta', 'Europe/Mariehamn', 'Europe/Minsk', 'Europe/Monaco', 'Europe/Moscow', 'Europe/Oslo', 'Europe/Paris', 'Europe/Podgorica', 'Europe/Prague', 'Europe/Riga', 'Europe/Rome', 'Europe/Samara', 'Europe/San_Marino', 'Europe/Sarajevo', 'Europe/Saratov', 'Europe/Simferopol', 'Europe/Skopje', 'Europe/Sofia', 'Europe/Stockholm', 'Europe/Tallinn', 'Europe/Tirane', 'Europe/Ulyanovsk', 'Europe/Uzhgorod', 'Europe/Vaduz', 'Europe/Vatican', 'Europe/Vienna', 'Europe/Vilnius', 'Europe/Volgograd', 'Europe/Warsaw', 'Europe/Zagreb', 'Europe/Zaporozhye', 'Europe/Zurich', 'Indian/Antananarivo', 'Indian/Chagos', 'Indian/Christmas', 'Indian/Cocos', 'Indian/Comoro', 'Indian/Kerguelen', 'Indian/Mahe', 'Indian/Maldives', 'Indian/Mauritius', 'Indian/Mayotte', 'Indian/Reunion', 'Pacific/Apia', 'Pacific/Auckland', 'Pacific/Bougainville', 'Pacific/Chatham', 'Pacific/Chuuk', 'Pacific/Easter', 'Pacific/Efate', 'Pacific/Enderbury', 'Pacific/Fakaofo', 'Pacific/Fiji', 'Pacific/Funafuti', 'Pacific/Galapagos', 'Pacific/Gambier', 'Pacific/Guadalcanal', 'Pacific/Guam', 'Pacific/Honolulu', 'Pacific/Kiritimati', 'Pacific/Kosrae', 'Pacific/Kwajalein', 'Pacific/Majuro', 'Pacific/Marquesas', 'Pacific/Midway', 'Pacific/Nauru', 'Pacific/Niue', 'Pacific/Norfolk', 'Pacific/Noumea', 'Pacific/Pago_Pago', 'Pacific/Palau', 'Pacific/Pitcairn', 'Pacific/Pohnpei', 'Pacific/Port_Moresby', 'Pacific/Rarotonga', 'Pacific/Saipan', 'Pacific/Tahiti', 'Pacific/Tarawa', 'Pacific/Tongatapu', 'Pacific/Wake', 'Pacific/Wallis'];
|
|
8
8
|
exports.timezones = timezones;
|
|
9
9
|
var countryList = [{
|
|
@@ -739,4 +739,414 @@ var countryList = [{
|
|
|
739
739
|
name: 'Zimbabwe',
|
|
740
740
|
code: 'ZW'
|
|
741
741
|
}];
|
|
742
|
-
exports.countryList = countryList;
|
|
742
|
+
exports.countryList = countryList;
|
|
743
|
+
var currencyList = [{
|
|
744
|
+
text: 'USD',
|
|
745
|
+
value: 'USD'
|
|
746
|
+
}, {
|
|
747
|
+
text: 'AED',
|
|
748
|
+
value: 'AED'
|
|
749
|
+
}, {
|
|
750
|
+
text: 'AFN',
|
|
751
|
+
value: 'AFN'
|
|
752
|
+
}, {
|
|
753
|
+
text: 'ALL',
|
|
754
|
+
value: 'ALL'
|
|
755
|
+
}, {
|
|
756
|
+
text: 'AMD',
|
|
757
|
+
value: 'AMD'
|
|
758
|
+
}, {
|
|
759
|
+
text: 'ANG',
|
|
760
|
+
value: 'ANG'
|
|
761
|
+
}, {
|
|
762
|
+
text: 'AOA',
|
|
763
|
+
value: 'AOA'
|
|
764
|
+
}, {
|
|
765
|
+
text: 'ARS',
|
|
766
|
+
value: 'ARS'
|
|
767
|
+
}, {
|
|
768
|
+
text: 'AUD',
|
|
769
|
+
value: 'AUD'
|
|
770
|
+
}, {
|
|
771
|
+
text: 'AWG',
|
|
772
|
+
value: 'AWG'
|
|
773
|
+
}, {
|
|
774
|
+
text: 'AZN',
|
|
775
|
+
value: 'AZN'
|
|
776
|
+
}, {
|
|
777
|
+
text: 'BAM',
|
|
778
|
+
value: 'BAM'
|
|
779
|
+
}, {
|
|
780
|
+
text: 'BBD',
|
|
781
|
+
value: 'BBD'
|
|
782
|
+
}, {
|
|
783
|
+
text: 'BDT',
|
|
784
|
+
value: 'BDT'
|
|
785
|
+
}, {
|
|
786
|
+
text: 'BGN',
|
|
787
|
+
value: 'BGN'
|
|
788
|
+
}, {
|
|
789
|
+
text: 'BIF',
|
|
790
|
+
value: 'BIF'
|
|
791
|
+
}, {
|
|
792
|
+
text: 'BMD',
|
|
793
|
+
value: 'BMD'
|
|
794
|
+
}, {
|
|
795
|
+
text: 'BND',
|
|
796
|
+
value: 'BND'
|
|
797
|
+
}, {
|
|
798
|
+
text: 'BOB',
|
|
799
|
+
value: 'BOB'
|
|
800
|
+
}, {
|
|
801
|
+
text: 'BRL',
|
|
802
|
+
value: 'BRL'
|
|
803
|
+
}, {
|
|
804
|
+
text: 'BSD',
|
|
805
|
+
value: 'BSD'
|
|
806
|
+
}, {
|
|
807
|
+
text: 'BWP',
|
|
808
|
+
value: 'BWP'
|
|
809
|
+
}, {
|
|
810
|
+
text: 'BYN',
|
|
811
|
+
value: 'BYN'
|
|
812
|
+
}, {
|
|
813
|
+
text: 'BZD',
|
|
814
|
+
value: 'BZD'
|
|
815
|
+
}, {
|
|
816
|
+
text: 'CAD',
|
|
817
|
+
value: 'CAD'
|
|
818
|
+
}, {
|
|
819
|
+
text: 'CDF',
|
|
820
|
+
value: 'CDF'
|
|
821
|
+
}, {
|
|
822
|
+
text: 'CHF',
|
|
823
|
+
value: 'CHF'
|
|
824
|
+
}, {
|
|
825
|
+
text: 'CLP',
|
|
826
|
+
value: 'CLP'
|
|
827
|
+
}, {
|
|
828
|
+
text: 'CNY',
|
|
829
|
+
value: 'CNY'
|
|
830
|
+
}, {
|
|
831
|
+
text: 'COP',
|
|
832
|
+
value: 'COP'
|
|
833
|
+
}, {
|
|
834
|
+
text: 'CRC',
|
|
835
|
+
value: 'CRC'
|
|
836
|
+
}, {
|
|
837
|
+
text: 'CVE',
|
|
838
|
+
value: 'CVE'
|
|
839
|
+
}, {
|
|
840
|
+
text: 'CZK',
|
|
841
|
+
value: 'CZK'
|
|
842
|
+
}, {
|
|
843
|
+
text: 'DJF',
|
|
844
|
+
value: 'DJF'
|
|
845
|
+
}, {
|
|
846
|
+
text: 'DKK',
|
|
847
|
+
value: 'DKK'
|
|
848
|
+
}, {
|
|
849
|
+
text: 'DOP',
|
|
850
|
+
value: 'DOP'
|
|
851
|
+
}, {
|
|
852
|
+
text: 'DZD',
|
|
853
|
+
value: 'DZD'
|
|
854
|
+
}, {
|
|
855
|
+
text: 'EGP',
|
|
856
|
+
value: 'EGP'
|
|
857
|
+
}, {
|
|
858
|
+
text: 'ETB',
|
|
859
|
+
value: 'ETB'
|
|
860
|
+
}, {
|
|
861
|
+
text: 'EUR',
|
|
862
|
+
value: 'EUR'
|
|
863
|
+
}, {
|
|
864
|
+
text: 'FJD',
|
|
865
|
+
value: 'FJD'
|
|
866
|
+
}, {
|
|
867
|
+
text: 'FKP',
|
|
868
|
+
value: 'FKP'
|
|
869
|
+
}, {
|
|
870
|
+
text: 'GBP',
|
|
871
|
+
value: 'GBP'
|
|
872
|
+
}, {
|
|
873
|
+
text: 'GEL',
|
|
874
|
+
value: 'GEL'
|
|
875
|
+
}, {
|
|
876
|
+
text: 'GIP',
|
|
877
|
+
value: 'GIP'
|
|
878
|
+
}, {
|
|
879
|
+
text: 'GMD',
|
|
880
|
+
value: 'GMD'
|
|
881
|
+
}, {
|
|
882
|
+
text: 'GNF',
|
|
883
|
+
value: 'GNF'
|
|
884
|
+
}, {
|
|
885
|
+
text: 'GTQ',
|
|
886
|
+
value: 'GTQ'
|
|
887
|
+
}, {
|
|
888
|
+
text: 'GYD',
|
|
889
|
+
value: 'GYD'
|
|
890
|
+
}, {
|
|
891
|
+
text: 'HKD',
|
|
892
|
+
value: 'HKD'
|
|
893
|
+
}, {
|
|
894
|
+
text: 'HNL',
|
|
895
|
+
value: 'HNL'
|
|
896
|
+
}, {
|
|
897
|
+
text: 'HRK',
|
|
898
|
+
value: 'HRK'
|
|
899
|
+
}, {
|
|
900
|
+
text: 'HTG',
|
|
901
|
+
value: 'HTG'
|
|
902
|
+
}, {
|
|
903
|
+
text: 'HUF',
|
|
904
|
+
value: 'HUF'
|
|
905
|
+
}, {
|
|
906
|
+
text: 'IDR',
|
|
907
|
+
value: 'IDR'
|
|
908
|
+
}, {
|
|
909
|
+
text: 'ILS',
|
|
910
|
+
value: 'ILS'
|
|
911
|
+
}, {
|
|
912
|
+
text: 'INR',
|
|
913
|
+
value: 'INR'
|
|
914
|
+
}, {
|
|
915
|
+
text: 'ISK',
|
|
916
|
+
value: 'ISK'
|
|
917
|
+
}, {
|
|
918
|
+
text: 'JMD',
|
|
919
|
+
value: 'JMD'
|
|
920
|
+
}, {
|
|
921
|
+
text: 'JPY',
|
|
922
|
+
value: 'JPY'
|
|
923
|
+
}, {
|
|
924
|
+
text: 'KES',
|
|
925
|
+
value: 'KES'
|
|
926
|
+
}, {
|
|
927
|
+
text: 'KGS',
|
|
928
|
+
value: 'KGS'
|
|
929
|
+
}, {
|
|
930
|
+
text: 'KHR',
|
|
931
|
+
value: 'KHR'
|
|
932
|
+
}, {
|
|
933
|
+
text: 'KMF',
|
|
934
|
+
value: 'KMF'
|
|
935
|
+
}, {
|
|
936
|
+
text: 'KRW',
|
|
937
|
+
value: 'KRW'
|
|
938
|
+
}, {
|
|
939
|
+
text: 'KYD',
|
|
940
|
+
value: 'KYD'
|
|
941
|
+
}, {
|
|
942
|
+
text: 'KZT',
|
|
943
|
+
value: 'KZT'
|
|
944
|
+
}, {
|
|
945
|
+
text: 'LAK',
|
|
946
|
+
value: 'LAK'
|
|
947
|
+
}, {
|
|
948
|
+
text: 'LBP',
|
|
949
|
+
value: 'LBP'
|
|
950
|
+
}, {
|
|
951
|
+
text: 'LKR',
|
|
952
|
+
value: 'LKR'
|
|
953
|
+
}, {
|
|
954
|
+
text: 'LRD',
|
|
955
|
+
value: 'LRD'
|
|
956
|
+
}, {
|
|
957
|
+
text: 'LSL',
|
|
958
|
+
value: 'LSL'
|
|
959
|
+
}, {
|
|
960
|
+
text: 'MAD',
|
|
961
|
+
value: 'MAD'
|
|
962
|
+
}, {
|
|
963
|
+
text: 'MDL',
|
|
964
|
+
value: 'MDL'
|
|
965
|
+
}, {
|
|
966
|
+
text: 'MGA',
|
|
967
|
+
value: 'MGA'
|
|
968
|
+
}, {
|
|
969
|
+
text: 'MKD',
|
|
970
|
+
value: 'MKD'
|
|
971
|
+
}, {
|
|
972
|
+
text: 'MMK',
|
|
973
|
+
value: 'MMK'
|
|
974
|
+
}, {
|
|
975
|
+
text: 'MNT',
|
|
976
|
+
value: 'MNT'
|
|
977
|
+
}, {
|
|
978
|
+
text: 'MOP',
|
|
979
|
+
value: 'MOP'
|
|
980
|
+
}, {
|
|
981
|
+
text: 'MRO',
|
|
982
|
+
value: 'MRO'
|
|
983
|
+
}, {
|
|
984
|
+
text: 'MUR',
|
|
985
|
+
value: 'MUR'
|
|
986
|
+
}, {
|
|
987
|
+
text: 'MVR',
|
|
988
|
+
value: 'MVR'
|
|
989
|
+
}, {
|
|
990
|
+
text: 'MWK',
|
|
991
|
+
value: 'MWK'
|
|
992
|
+
}, {
|
|
993
|
+
text: 'MXN',
|
|
994
|
+
value: 'MXN'
|
|
995
|
+
}, {
|
|
996
|
+
text: 'MYR',
|
|
997
|
+
value: 'MYR'
|
|
998
|
+
}, {
|
|
999
|
+
text: 'MZN',
|
|
1000
|
+
value: 'MZN'
|
|
1001
|
+
}, {
|
|
1002
|
+
text: 'NAD',
|
|
1003
|
+
value: 'NAD'
|
|
1004
|
+
}, {
|
|
1005
|
+
text: 'NGN',
|
|
1006
|
+
value: 'NGN'
|
|
1007
|
+
}, {
|
|
1008
|
+
text: 'NIO',
|
|
1009
|
+
value: 'NIO'
|
|
1010
|
+
}, {
|
|
1011
|
+
text: 'NOK',
|
|
1012
|
+
value: 'NOK'
|
|
1013
|
+
}, {
|
|
1014
|
+
text: 'NPR',
|
|
1015
|
+
value: 'NPR'
|
|
1016
|
+
}, {
|
|
1017
|
+
text: 'NZD',
|
|
1018
|
+
value: 'NZD'
|
|
1019
|
+
}, {
|
|
1020
|
+
text: 'PAB',
|
|
1021
|
+
value: 'PAB'
|
|
1022
|
+
}, {
|
|
1023
|
+
text: 'PEN',
|
|
1024
|
+
value: 'PEN'
|
|
1025
|
+
}, {
|
|
1026
|
+
text: 'PGK',
|
|
1027
|
+
value: 'PGK'
|
|
1028
|
+
}, {
|
|
1029
|
+
text: 'PHP',
|
|
1030
|
+
value: 'PHP'
|
|
1031
|
+
}, {
|
|
1032
|
+
text: 'PKR',
|
|
1033
|
+
value: 'PKR'
|
|
1034
|
+
}, {
|
|
1035
|
+
text: 'PLN',
|
|
1036
|
+
value: 'PLN'
|
|
1037
|
+
}, {
|
|
1038
|
+
text: 'PYG',
|
|
1039
|
+
value: 'PYG'
|
|
1040
|
+
}, {
|
|
1041
|
+
text: 'QAR',
|
|
1042
|
+
value: 'QAR'
|
|
1043
|
+
}, {
|
|
1044
|
+
text: 'RON',
|
|
1045
|
+
value: 'RON'
|
|
1046
|
+
}, {
|
|
1047
|
+
text: 'RSD',
|
|
1048
|
+
value: 'RSD'
|
|
1049
|
+
}, {
|
|
1050
|
+
text: 'RUB',
|
|
1051
|
+
value: 'RUB'
|
|
1052
|
+
}, {
|
|
1053
|
+
text: 'RWF',
|
|
1054
|
+
value: 'RWF'
|
|
1055
|
+
}, {
|
|
1056
|
+
text: 'SAR',
|
|
1057
|
+
value: 'SAR'
|
|
1058
|
+
}, {
|
|
1059
|
+
text: 'SBD',
|
|
1060
|
+
value: 'SBD'
|
|
1061
|
+
}, {
|
|
1062
|
+
text: 'SCR',
|
|
1063
|
+
value: 'SCR'
|
|
1064
|
+
}, {
|
|
1065
|
+
text: 'SEK',
|
|
1066
|
+
value: 'SEK'
|
|
1067
|
+
}, {
|
|
1068
|
+
text: 'SGD',
|
|
1069
|
+
value: 'SGD'
|
|
1070
|
+
}, {
|
|
1071
|
+
text: 'SHP',
|
|
1072
|
+
value: 'SHP'
|
|
1073
|
+
}, {
|
|
1074
|
+
text: 'SLL',
|
|
1075
|
+
value: 'SLL'
|
|
1076
|
+
}, {
|
|
1077
|
+
text: 'SOS',
|
|
1078
|
+
value: 'SOS'
|
|
1079
|
+
}, {
|
|
1080
|
+
text: 'SRD',
|
|
1081
|
+
value: 'SRD'
|
|
1082
|
+
}, {
|
|
1083
|
+
text: 'STD',
|
|
1084
|
+
value: 'STD'
|
|
1085
|
+
}, {
|
|
1086
|
+
text: 'SZL',
|
|
1087
|
+
value: 'SZL'
|
|
1088
|
+
}, {
|
|
1089
|
+
text: 'THB',
|
|
1090
|
+
value: 'THB'
|
|
1091
|
+
}, {
|
|
1092
|
+
text: 'TJS',
|
|
1093
|
+
value: 'TJS'
|
|
1094
|
+
}, {
|
|
1095
|
+
text: 'TOP',
|
|
1096
|
+
value: 'TOP'
|
|
1097
|
+
}, {
|
|
1098
|
+
text: 'TRY',
|
|
1099
|
+
value: 'TRY'
|
|
1100
|
+
}, {
|
|
1101
|
+
text: 'TTD',
|
|
1102
|
+
value: 'TTD'
|
|
1103
|
+
}, {
|
|
1104
|
+
text: 'TWD',
|
|
1105
|
+
value: 'TWD'
|
|
1106
|
+
}, {
|
|
1107
|
+
text: 'TZS',
|
|
1108
|
+
value: 'TZS'
|
|
1109
|
+
}, {
|
|
1110
|
+
text: 'UAH',
|
|
1111
|
+
value: 'UAH'
|
|
1112
|
+
}, {
|
|
1113
|
+
text: 'UGX',
|
|
1114
|
+
value: 'UGX'
|
|
1115
|
+
}, {
|
|
1116
|
+
text: 'UYU',
|
|
1117
|
+
value: 'UYU'
|
|
1118
|
+
}, {
|
|
1119
|
+
text: 'UZS',
|
|
1120
|
+
value: 'UZS'
|
|
1121
|
+
}, {
|
|
1122
|
+
text: 'VND',
|
|
1123
|
+
value: 'VND'
|
|
1124
|
+
}, {
|
|
1125
|
+
text: 'VUV',
|
|
1126
|
+
value: 'VUV'
|
|
1127
|
+
}, {
|
|
1128
|
+
text: 'WST',
|
|
1129
|
+
value: 'WST'
|
|
1130
|
+
}, {
|
|
1131
|
+
text: 'XAF',
|
|
1132
|
+
value: 'XAF'
|
|
1133
|
+
}, {
|
|
1134
|
+
text: 'XCD',
|
|
1135
|
+
value: 'XCD'
|
|
1136
|
+
}, {
|
|
1137
|
+
text: 'XOF',
|
|
1138
|
+
value: 'XOF'
|
|
1139
|
+
}, {
|
|
1140
|
+
text: 'XPF',
|
|
1141
|
+
value: 'XPF'
|
|
1142
|
+
}, {
|
|
1143
|
+
text: 'YER',
|
|
1144
|
+
value: 'YER'
|
|
1145
|
+
}, {
|
|
1146
|
+
text: 'ZAR',
|
|
1147
|
+
value: 'ZAR'
|
|
1148
|
+
}, {
|
|
1149
|
+
text: 'ZMW',
|
|
1150
|
+
value: 'ZMW'
|
|
1151
|
+
}];
|
|
1152
|
+
exports.currencyList = currencyList;
|
package/package.json
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import React, { useEffect, useState } from 'react'
|
|
2
|
-
import { useLanguage
|
|
2
|
+
import { useLanguage } from 'ordering-components-admin-external'
|
|
3
3
|
import { MultiSelect } from '../../../styles/MultiSelect'
|
|
4
|
-
import { PlaceholderTitle, Option
|
|
5
|
-
import
|
|
4
|
+
import { PlaceholderTitle, Option } from './styles'
|
|
5
|
+
import { currencyList } from '../../../config/constants'
|
|
6
6
|
|
|
7
|
-
const
|
|
7
|
+
export const CurrencyFilter = (props) => {
|
|
8
8
|
const {
|
|
9
|
-
countriesState,
|
|
10
9
|
filterValues,
|
|
11
10
|
handleChangeCurrency
|
|
12
11
|
} = props
|
|
@@ -23,46 +22,28 @@ const CurrencyFilterUI = (props) => {
|
|
|
23
22
|
|
|
24
23
|
useEffect(() => {
|
|
25
24
|
const _countryList = []
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
)
|
|
33
|
-
}
|
|
34
|
-
})
|
|
35
|
-
|
|
36
|
-
for (const option of _groupsOption) {
|
|
37
|
-
_countryList.push(option)
|
|
25
|
+
const _groupsOption = currencyList.map((country) => {
|
|
26
|
+
return {
|
|
27
|
+
value: country.value,
|
|
28
|
+
content: (
|
|
29
|
+
<Option>{country.text}</Option>
|
|
30
|
+
)
|
|
38
31
|
}
|
|
32
|
+
})
|
|
33
|
+
|
|
34
|
+
for (const option of _groupsOption) {
|
|
35
|
+
_countryList.push(option)
|
|
39
36
|
}
|
|
40
37
|
setCountryTypes(_countryList)
|
|
41
|
-
}, [
|
|
38
|
+
}, [currencyList])
|
|
42
39
|
|
|
43
40
|
return (
|
|
44
|
-
|
|
45
|
-
{
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
optionInnerMaxHeight='200px'
|
|
52
|
-
/>
|
|
53
|
-
) : (
|
|
54
|
-
<SkeletonWrapper>
|
|
55
|
-
<Skeleton style={{ height: '57px' }} />
|
|
56
|
-
</SkeletonWrapper>
|
|
57
|
-
)}
|
|
58
|
-
</>
|
|
41
|
+
<MultiSelect
|
|
42
|
+
placeholder={placeholder}
|
|
43
|
+
defaultValue={filterValues.currency}
|
|
44
|
+
options={countryTypes}
|
|
45
|
+
onChange={(code) => handleChangeCurrency(code)}
|
|
46
|
+
optionInnerMaxHeight='200px'
|
|
47
|
+
/>
|
|
59
48
|
)
|
|
60
49
|
}
|
|
61
|
-
|
|
62
|
-
export const CurrencyFilter = (props) => {
|
|
63
|
-
const countryFilterProps = {
|
|
64
|
-
...props,
|
|
65
|
-
UIComponent: CurrencyFilterUI
|
|
66
|
-
}
|
|
67
|
-
return <CountryListControler {...countryFilterProps} />
|
|
68
|
-
}
|
|
@@ -86,7 +86,7 @@ export const OrderBill = (props) => {
|
|
|
86
86
|
<tr>
|
|
87
87
|
<td>{t('SUBTOTAL', 'Subtotal')}</td>
|
|
88
88
|
<td>
|
|
89
|
-
{parsePrice(((order?.summary?.subtotal ?? order?.subtotal) + getIncludedTaxes()))}
|
|
89
|
+
{parsePrice(((order?.summary?.subtotal ?? order?.subtotal) + getIncludedTaxes()), { currency: order?.currency })}
|
|
90
90
|
</td>
|
|
91
91
|
</tr>
|
|
92
92
|
{(order?.summary?.discount > 0 ?? order?.discount > 0) && order?.offers?.length === 0 && (
|
|
@@ -99,7 +99,7 @@ export const OrderBill = (props) => {
|
|
|
99
99
|
) : (
|
|
100
100
|
<td>{t('DISCOUNT', 'Discount')}</td>
|
|
101
101
|
)}
|
|
102
|
-
<td>- {parsePrice(order?.summary?.discount ?? order?.discount)}</td>
|
|
102
|
+
<td>- {parsePrice(order?.summary?.discount ?? order?.discount, { currency: order?.currency })}</td>
|
|
103
103
|
</tr>
|
|
104
104
|
)}
|
|
105
105
|
{
|
|
@@ -112,7 +112,7 @@ export const OrderBill = (props) => {
|
|
|
112
112
|
)}
|
|
113
113
|
</td>
|
|
114
114
|
<td>
|
|
115
|
-
- {parsePrice(offer?.summary?.discount)}
|
|
115
|
+
- {parsePrice(offer?.summary?.discount, { currency: order?.currency })}
|
|
116
116
|
</td>
|
|
117
117
|
</tr>
|
|
118
118
|
))
|
|
@@ -121,9 +121,9 @@ export const OrderBill = (props) => {
|
|
|
121
121
|
<tr>
|
|
122
122
|
<td>{t('SUBTOTAL_WITH_DISCOUNT', 'Subtotal with discount')}</td>
|
|
123
123
|
{order?.tax_type === 1 ? (
|
|
124
|
-
<td>{parsePrice((order?.summary?.subtotal_with_discount + getIncludedTaxesDiscounts() ?? 0))}</td>
|
|
124
|
+
<td>{parsePrice((order?.summary?.subtotal_with_discount + getIncludedTaxesDiscounts() ?? 0), { currency: order?.currency })}</td>
|
|
125
125
|
) : (
|
|
126
|
-
<td>{parsePrice(order?.summary?.subtotal_with_discount ?? 0)}</td>
|
|
126
|
+
<td>{parsePrice(order?.summary?.subtotal_with_discount ?? 0, { currency: order?.currency })}</td>
|
|
127
127
|
)}
|
|
128
128
|
</tr>
|
|
129
129
|
)}
|
|
@@ -134,7 +134,7 @@ export const OrderBill = (props) => {
|
|
|
134
134
|
{t('TAX', 'Tax')}
|
|
135
135
|
<span>{`(${verifyDecimals(order?.tax, parseNumber)}%)`}</span>
|
|
136
136
|
</td>
|
|
137
|
-
<td>{parsePrice(order?.summary?.tax ?? 0)}</td>
|
|
137
|
+
<td>{parsePrice(order?.summary?.tax ?? 0, { currency: order?.currency })}</td>
|
|
138
138
|
</tr>
|
|
139
139
|
)
|
|
140
140
|
}
|
|
@@ -145,7 +145,7 @@ export const OrderBill = (props) => {
|
|
|
145
145
|
{t('SERVICE_FEE', 'Service fee')}
|
|
146
146
|
<span>{`(${verifyDecimals(order?.service_fee, parseNumber)}%)`}</span>
|
|
147
147
|
</td>
|
|
148
|
-
<td>{parsePrice(order?.summary?.service_fee ?? 0)}</td>
|
|
148
|
+
<td>{parsePrice(order?.summary?.service_fee ?? 0, { currency: order?.currency })}</td>
|
|
149
149
|
</tr>
|
|
150
150
|
)
|
|
151
151
|
}
|
|
@@ -156,7 +156,7 @@ export const OrderBill = (props) => {
|
|
|
156
156
|
{tax?.name || t('INHERIT_FROM_BUSINESS', 'Inherit from business')}
|
|
157
157
|
<span>{`(${verifyDecimals(tax?.rate, parseNumber)}%)`}</span>
|
|
158
158
|
</td>
|
|
159
|
-
<td>{parsePrice(tax?.summary?.tax_after_discount ?? tax?.summary?.tax ?? 0)}</td>
|
|
159
|
+
<td>{parsePrice(tax?.summary?.tax_after_discount ?? tax?.summary?.tax ?? 0, { currency: order?.currency })}</td>
|
|
160
160
|
</tr>
|
|
161
161
|
))
|
|
162
162
|
}
|
|
@@ -167,7 +167,7 @@ export const OrderBill = (props) => {
|
|
|
167
167
|
{fee?.name || t('INHERIT_FROM_BUSINESS', 'Inherit from business')}
|
|
168
168
|
({fee?.fixed > 0 && `${parsePrice(fee?.fixed)} + `}{fee.percentage}%)
|
|
169
169
|
</td>
|
|
170
|
-
<td>{parsePrice(fee?.summary?.fixed + (fee?.summary?.percentage_after_discount ?? fee?.summary?.percentage) ?? 0)}</td>
|
|
170
|
+
<td>{parsePrice(fee?.summary?.fixed + (fee?.summary?.percentage_after_discount ?? fee?.summary?.percentage) ?? 0, { currency: order?.currency })}</td>
|
|
171
171
|
</tr>
|
|
172
172
|
))
|
|
173
173
|
}
|
|
@@ -181,7 +181,7 @@ export const OrderBill = (props) => {
|
|
|
181
181
|
)}
|
|
182
182
|
</td>
|
|
183
183
|
<td>
|
|
184
|
-
- {parsePrice(offer?.summary?.discount)}
|
|
184
|
+
- {parsePrice(offer?.summary?.discount, { currency: order?.currency })}
|
|
185
185
|
</td>
|
|
186
186
|
</tr>
|
|
187
187
|
))
|
|
@@ -189,7 +189,7 @@ export const OrderBill = (props) => {
|
|
|
189
189
|
{order?.summary?.delivery_price > 0 && (
|
|
190
190
|
<tr>
|
|
191
191
|
<td>{t('DELIVERY_FEE', 'Delivery Fee')}</td>
|
|
192
|
-
<td>{parsePrice(order?.summary?.delivery_price)}</td>
|
|
192
|
+
<td>{parsePrice(order?.summary?.delivery_price, { currency: order?.currency })}</td>
|
|
193
193
|
</tr>
|
|
194
194
|
)}
|
|
195
195
|
{
|
|
@@ -202,7 +202,7 @@ export const OrderBill = (props) => {
|
|
|
202
202
|
)}
|
|
203
203
|
</td>
|
|
204
204
|
<td>
|
|
205
|
-
- {parsePrice(offer?.summary?.discount)}
|
|
205
|
+
- {parsePrice(offer?.summary?.discount, { currency: order?.currency })}
|
|
206
206
|
</td>
|
|
207
207
|
</tr>
|
|
208
208
|
))
|
|
@@ -218,7 +218,7 @@ export const OrderBill = (props) => {
|
|
|
218
218
|
<span>{`(${verifyDecimals(order?.driver_tip, parseNumber)}%)`}</span>
|
|
219
219
|
)}
|
|
220
220
|
</td>
|
|
221
|
-
<td>{parsePrice(order?.summary?.driver_tip ?? order?.totalDriverTip)}</td>
|
|
221
|
+
<td>{parsePrice(order?.summary?.driver_tip ?? order?.totalDriverTip, { currency: order?.currency })}</td>
|
|
222
222
|
</tr>
|
|
223
223
|
)}
|
|
224
224
|
</tbody>
|
|
@@ -227,7 +227,7 @@ export const OrderBill = (props) => {
|
|
|
227
227
|
<tbody>
|
|
228
228
|
<tr>
|
|
229
229
|
<td>{t('TOTAL', 'Total')}</td>
|
|
230
|
-
<td>{parsePrice(order?.summary?.total || order?.total, { currencyPosition: 'left' })}</td>
|
|
230
|
+
<td>{parsePrice(order?.summary?.total || order?.total, { currencyPosition: 'left', currency: order?.currency })}</td>
|
|
231
231
|
</tr>
|
|
232
232
|
</tbody>
|
|
233
233
|
</table>
|
|
@@ -246,7 +246,7 @@ export const OrderBill = (props) => {
|
|
|
246
246
|
? walletName[event?.wallet_event?.wallet?.type]?.name
|
|
247
247
|
: event?.paymethod?.name}
|
|
248
248
|
</td>
|
|
249
|
-
<td>-{parsePrice(event?.amount)}</td>
|
|
249
|
+
<td>-{parsePrice(event?.amount, { currency: order?.currency })}</td>
|
|
250
250
|
</tr>
|
|
251
251
|
))}
|
|
252
252
|
</tbody>
|