ordering-ui-admin-external 1.3.1 → 1.3.3

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.
Files changed (79) hide show
  1. package/_bundles/{ordering-ui-admin.0bfe9a0aef33a990bc0a.js → ordering-ui-admin.7b1ded1d480e937548f3.js} +2 -2
  2. package/_bundles/{ordering-ui-admin.0bfe9a0aef33a990bc0a.js.LICENSE.txt → ordering-ui-admin.7b1ded1d480e937548f3.js.LICENSE.txt} +0 -0
  3. package/_modules/components/BusinessIntelligence/Reports/index.js +3 -27
  4. package/_modules/components/BusinessIntelligence/Reports/styles.js +2 -9
  5. package/_modules/components/Loyalty/RewardsPrograms/index.js +12 -38
  6. package/_modules/components/Loyalty/RewardsPrograms/styles.js +6 -13
  7. package/_modules/components/Marketing/CampaignHeader/index.js +2 -5
  8. package/_modules/components/Marketing/CampaignHeader/styles.js +4 -7
  9. package/_modules/components/Marketing/CampaignList/index.js +4 -8
  10. package/_modules/components/Marketing/CampaignList/styles.js +22 -30
  11. package/_modules/components/Marketing/CampaignListing/index.js +3 -29
  12. package/_modules/components/OrderingProducts/OrderingProductDetails/index.js +4 -2
  13. package/_modules/components/Orders/CurrencyFilter/index.js +24 -47
  14. package/_modules/components/Orders/OrderBill/index.js +40 -11
  15. package/_modules/components/Orders/OrderDetails/index.js +2 -1
  16. package/_modules/components/Orders/OrdersTable/index.js +5 -2
  17. package/_modules/components/Orders/ProductItemAccordion/index.js +10 -5
  18. package/_modules/components/Settings/PluginList/index.js +31 -1
  19. package/_modules/components/Settings/SettingsDetail/index.js +3 -40
  20. package/_modules/components/Settings/SettingsDetail/styles.js +13 -26
  21. package/_modules/components/Settings/SettingsList/index.js +6 -43
  22. package/_modules/components/SidebarMenu/index.js +17 -20
  23. package/_modules/components/Stores/BusinessMenu/index.js +5 -36
  24. package/_modules/components/Stores/BusinessMenu/styles.js +19 -27
  25. package/_modules/components/Stores/BusinessPaymentMethods/index.js +16 -53
  26. package/_modules/components/Stores/BusinessProductAddForm/index.js +4 -2
  27. package/_modules/components/Stores/BusinessesListingHeader/index.js +7 -1
  28. package/_modules/components/Stores/ImportersList/index.js +2 -5
  29. package/_modules/components/Stores/ImportersList/styles.js +15 -18
  30. package/_modules/components/Stores/ImportersListing/index.js +4 -31
  31. package/_modules/components/Stores/PaymentOption/index.js +7 -12
  32. package/_modules/components/Stores/PaymentOptionMethods/index.js +4 -9
  33. package/_modules/components/Stores/PaymentOptionPaypal/index.js +4 -9
  34. package/_modules/components/Stores/PaymentOptionSquare/index.js +4 -9
  35. package/_modules/components/Stores/PaymentOptionStripeDirect/index.js +5 -10
  36. package/_modules/components/Stores/PaymentOptionStripeDirect/styles.js +5 -10
  37. package/_modules/components/Stores/PaymethodOptionPaypalExpress/index.js +4 -9
  38. package/_modules/components/Stores/PaymethodOptionStripeConnect/index.js +4 -9
  39. package/_modules/components/Stores/PaymethodOptionStripeRedirect/index.js +4 -9
  40. package/_modules/config/constants.js +412 -2
  41. package/package.json +1 -1
  42. package/src/components/BusinessIntelligence/Reports/index.js +4 -18
  43. package/src/components/BusinessIntelligence/Reports/styles.js +0 -11
  44. package/src/components/Loyalty/RewardsPrograms/index.js +5 -18
  45. package/src/components/Loyalty/RewardsPrograms/styles.js +0 -10
  46. package/src/components/Marketing/CampaignHeader/index.js +2 -3
  47. package/src/components/Marketing/CampaignHeader/styles.js +0 -8
  48. package/src/components/Marketing/CampaignList/index.js +3 -5
  49. package/src/components/Marketing/CampaignList/styles.js +0 -16
  50. package/src/components/Marketing/CampaignListing/index.js +2 -18
  51. package/src/components/OrderingProducts/OrderingProductDetails/index.js +1 -1
  52. package/src/components/Orders/CurrencyFilter/index.js +22 -41
  53. package/src/components/Orders/OrderBill/index.js +15 -15
  54. package/src/components/Orders/OrderDetails/index.js +1 -0
  55. package/src/components/Orders/OrdersTable/index.js +2 -2
  56. package/src/components/Orders/ProductItemAccordion/index.js +4 -3
  57. package/src/components/Settings/PluginList/index.js +2 -2
  58. package/src/components/Settings/SettingsDetail/index.js +2 -23
  59. package/src/components/Settings/SettingsDetail/styles.js +13 -8
  60. package/src/components/Settings/SettingsList/index.js +1 -24
  61. package/src/components/SidebarMenu/index.js +17 -17
  62. package/src/components/Stores/BusinessMenu/index.js +3 -21
  63. package/src/components/Stores/BusinessMenu/styles.js +0 -15
  64. package/src/components/Stores/BusinessPaymentMethods/index.js +32 -62
  65. package/src/components/Stores/BusinessProductAddForm/index.js +1 -1
  66. package/src/components/Stores/BusinessesListingHeader/index.js +2 -2
  67. package/src/components/Stores/ImportersList/index.js +2 -3
  68. package/src/components/Stores/ImportersList/styles.js +1 -9
  69. package/src/components/Stores/ImportersListing/index.js +0 -19
  70. package/src/components/Stores/PaymentOption/index.js +4 -9
  71. package/src/components/Stores/PaymentOptionMethods/index.js +3 -8
  72. package/src/components/Stores/PaymentOptionPaypal/index.js +3 -8
  73. package/src/components/Stores/PaymentOptionSquare/index.js +3 -8
  74. package/src/components/Stores/PaymentOptionStripeDirect/index.js +3 -8
  75. package/src/components/Stores/PaymentOptionStripeDirect/styles.js +0 -8
  76. package/src/components/Stores/PaymethodOptionPaypalExpress/index.js +3 -8
  77. package/src/components/Stores/PaymethodOptionStripeConnect/index.js +3 -8
  78. package/src/components/Stores/PaymethodOptionStripeRedirect/index.js +3 -8
  79. 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,6 +1,6 @@
1
1
  {
2
2
  "name": "ordering-ui-admin-external",
3
- "version": "1.3.1",
3
+ "version": "1.3.3",
4
4
  "description": "Ordering UI Admin Components",
5
5
  "main": "./_modules/index.js",
6
6
  "exports": {
@@ -1,4 +1,4 @@
1
- import React, { useState, useEffect } from 'react'
1
+ import React, { useState } from 'react'
2
2
  import { useInfoShare } from '../../../contexts/InfoShareContext'
3
3
  import { IconButton } from '../../../styles'
4
4
  import { useWindowSize } from '../../../hooks/useWindowSize'
@@ -25,7 +25,7 @@ import {
25
25
  Bag,
26
26
  Tag
27
27
  } from 'react-bootstrap-icons'
28
- import { useLanguage, useConfig, useSession } from 'ordering-components-admin-external'
28
+ import { useLanguage } from 'ordering-components-admin-external'
29
29
  import { SideBar } from '../../Shared'
30
30
  import { SettingItemUI } from '../SettingItemUI'
31
31
  import { ReportsBusinessDistance } from '../ReportsBusinessDistance'
@@ -48,7 +48,6 @@ import { ReportsPaymethodSales } from '../ReportsPaymethodSales'
48
48
  import { ReportsSaleAndCategory } from '../ReportsSaleAndCategory'
49
49
  import { ReportsAverageSales } from '../ReportsAverageSales'
50
50
  import { ReportsGeneralSales } from '../ReportsGeneralSales'
51
- import { DisabledFeatureAlert } from '../../DisabledFeatureAlert'
52
51
 
53
52
  import {
54
53
  ReportsContainer,
@@ -58,14 +57,10 @@ import {
58
57
 
59
58
  export const Reports = (props) => {
60
59
  const [, t] = useLanguage()
61
- const [{ configs }] = useConfig()
62
- const [{ user }] = useSession()
63
60
  const [{ isCollapse }, { handleMenuCollapse }] = useInfoShare()
64
61
  const [isOpen, setIsOpen] = useState(false)
65
62
  const [selectedReport, setSelectedReport] = useState(0)
66
- const [isDisabledFeature, setIsDisabledFeature] = useState(false)
67
63
  const { width } = useWindowSize()
68
- const featureName = 'advanced_reports'
69
64
  const sidebarWidth = 240
70
65
 
71
66
  const advancedReportsList = [
@@ -101,14 +96,6 @@ export const Reports = (props) => {
101
96
  setIsOpen(true)
102
97
  }
103
98
 
104
- useEffect(() => {
105
- if (configs && Object.keys(configs).length > 0 && user) {
106
- if (!Object.keys(configs).includes(featureName) && user?.level === 0) {
107
- setIsDisabledFeature(true)
108
- }
109
- }
110
- }, [configs])
111
-
112
99
  return (
113
100
  <ReportsContainer>
114
101
  <HeaderTitleContainer>
@@ -122,12 +109,12 @@ export const Reports = (props) => {
122
109
  )}
123
110
  <h1>{t('ADVANCED_REPORTS', 'Advanced Reports')}</h1>
124
111
  </HeaderTitleContainer>
125
- <ReportsList className='row' isDisabledFeature={isDisabledFeature}>
112
+ <ReportsList className='row'>
126
113
  {advancedReportsList && advancedReportsList.map((report, i) => (
127
114
  <div
128
115
  key={i}
129
116
  className='col-md-6 col-lg-4'
130
- onClick={() => !isDisabledFeature && handleOpenSlider(report.id)}
117
+ onClick={() => handleOpenSlider(report.id)}
131
118
  >
132
119
  <SettingItemUI
133
120
  title={report.name}
@@ -139,7 +126,6 @@ export const Reports = (props) => {
139
126
  </div>
140
127
  ))}
141
128
  </ReportsList>
142
- {isDisabledFeature && (<DisabledFeatureAlert />)}
143
129
  {isOpen && (
144
130
  <SideBar
145
131
  sidebarId='brand-details'
@@ -40,15 +40,4 @@ export const HeaderTitleContainer = styled.div`
40
40
 
41
41
  export const ReportsList = styled.div`
42
42
  margin-top: 10px;
43
- ${({ isDisabledFeature }) => isDisabledFeature && css`
44
- > div {
45
- > div {
46
- cursor: not-allowed;
47
- background-color: ${props => props.theme.colors.disabled};
48
- &:hover {
49
- background-color: ${props => props.theme.colors.disabled};
50
- }
51
- }
52
- }
53
- `}
54
43
  `
@@ -1,6 +1,6 @@
1
- import React, { useState, useEffect } from 'react'
1
+ import React, { useState } from 'react'
2
2
  import { List as MenuIcon, Wallet, BarChartSteps } from 'react-bootstrap-icons'
3
- import { useLanguage, useConfig, useSession, RewardsPrograms as RewardsProgramsController } from 'ordering-components-admin-external'
3
+ import { useLanguage, RewardsPrograms as RewardsProgramsController } from 'ordering-components-admin-external'
4
4
  import { useInfoShare } from '../../../contexts/InfoShareContext'
5
5
  import { IconButton } from '../../../styles'
6
6
  import { SideBar } from '../../Shared'
@@ -15,15 +15,10 @@ import {
15
15
  } from './styles'
16
16
  import { PointsWallet } from '../PointsWallet'
17
17
  import { PointsWalletLevels } from '../PointsWalletLevels'
18
- import { DisabledFeatureAlert } from '../../DisabledFeatureAlert'
19
18
 
20
19
  const RewardsProgramsUI = (props) => {
21
20
  const [, t] = useLanguage()
22
- const [{ configs }] = useConfig()
23
- const [{ user }] = useSession()
24
21
  const [{ isCollapse }, { handleMenuCollapse }] = useInfoShare()
25
- const [isDisabledFeature, setIsDisabledFeature] = useState(false)
26
- const featureName = 'loyalty_levels_points'
27
22
 
28
23
  const [showOption, setShowOption] = useState(null)
29
24
  const [moveDistance, setMoveDistance] = useState(0)
@@ -39,13 +34,6 @@ const RewardsProgramsUI = (props) => {
39
34
  setShowOption(null)
40
35
  }
41
36
 
42
- useEffect(() => {
43
- if (configs && Object.keys(configs).length > 0 && user) {
44
- if (!Object.keys(configs).includes(featureName) && user?.level === 0) {
45
- setIsDisabledFeature(true)
46
- }
47
- }
48
- }, [configs])
49
37
  return (
50
38
  <>
51
39
  <Container>
@@ -61,8 +49,8 @@ const RewardsProgramsUI = (props) => {
61
49
  <h1>{t('LOYALTY', 'Loyalty')}</h1>
62
50
  </HeaderTitleContainer>
63
51
 
64
- <LoyaltyListContainer isDisabledFeature={isDisabledFeature}>
65
- <LoyaltyItemWrapper onClick={() => !isDisabledFeature && setShowOption('points_wallet')}>
52
+ <LoyaltyListContainer>
53
+ <LoyaltyItemWrapper onClick={() => setShowOption('points_wallet')}>
66
54
  <IconWrapper>
67
55
  <Wallet />
68
56
  </IconWrapper>
@@ -71,7 +59,7 @@ const RewardsProgramsUI = (props) => {
71
59
  <p>{t('POINTS_WALLET_DESCRIPTION', 'Points wallet general and per business setup.')}</p>
72
60
  </LoyaltyItemContent>
73
61
  </LoyaltyItemWrapper>
74
- <LoyaltyItemWrapper onClick={() => !isDisabledFeature && setShowOption('levels')}>
62
+ <LoyaltyItemWrapper onClick={() => setShowOption('levels')}>
75
63
  <IconWrapper>
76
64
  <BarChartSteps />
77
65
  </IconWrapper>
@@ -82,7 +70,6 @@ const RewardsProgramsUI = (props) => {
82
70
  </LoyaltyItemWrapper>
83
71
  </LoyaltyListContainer>
84
72
  </Container>
85
- {isDisabledFeature && (<DisabledFeatureAlert />)}
86
73
  {showOption === 'points_wallet' && (
87
74
  <SideBar
88
75
  sidebarId='loyaltyWallet'
@@ -41,16 +41,6 @@ export const HeaderTitleContainer = styled.div`
41
41
  export const LoyaltyListContainer = styled.div`
42
42
  display: flex;
43
43
  flex-wrap: wrap;
44
-
45
- > div {
46
- ${({ isDisabledFeature }) => isDisabledFeature && css`
47
- cursor: not-allowed;
48
- background-color: ${props => props.theme.colors.disabled};
49
- &:hover {
50
- background-color: ${props => props.theme.colors.disabled};
51
- }
52
- `}
53
- }
54
44
  `
55
45
 
56
46
  export const LoyaltyItemWrapper = styled.div`
@@ -17,8 +17,7 @@ export const CampaignHeader = (props) => {
17
17
  const {
18
18
  searchValue,
19
19
  handleChangeSearch,
20
- handleOpenDetail,
21
- isDisabledFeature
20
+ handleOpenDetail
22
21
  } = props
23
22
 
24
23
  const [, t] = useLanguage()
@@ -37,7 +36,7 @@ export const CampaignHeader = (props) => {
37
36
  )}
38
37
  <HeaderTitle>{t('CAMPAIGN', 'Campaign')}</HeaderTitle>
39
38
  </HeaderSection>
40
- <TopRightSection isDisabledFeature={isDisabledFeature}>
39
+ <TopRightSection>
41
40
  <WrapperSearch>
42
41
  <Button
43
42
  borderRadius='8px'
@@ -44,14 +44,6 @@ export const TopRightSection = styled.div`
44
44
  flex-direction: row;
45
45
  align-items: center;
46
46
  }
47
-
48
- ${({ isDisabledFeature }) => isDisabledFeature && css`
49
- cursor: not-allowed;
50
- > div {
51
- pointer-events: none;
52
- opacity: 0.5;
53
- }
54
- `}
55
47
  `
56
48
 
57
49
  export const WrapperSearch = styled.div`
@@ -23,8 +23,7 @@ export const CampaignList = (props) => {
23
23
  setPaginationProps,
24
24
  handleOpenDetail,
25
25
  selectedCampaign,
26
- handleUpdateCampaign,
27
- isDisabledFeature
26
+ handleUpdateCampaign
28
27
  } = props
29
28
 
30
29
  const [, t] = useLanguage()
@@ -108,7 +107,7 @@ export const CampaignList = (props) => {
108
107
 
109
108
  return (
110
109
  <>
111
- <Container isDisabledFeature={isDisabledFeature}>
110
+ <Container>
112
111
  <Table isRelative={campaignList?.campaigns?.length > 5}>
113
112
  <thead>
114
113
  <tr>
@@ -246,8 +245,7 @@ export const CampaignList = (props) => {
246
245
  {!campaignList.loading && (
247
246
  <PagesBottomContainer>
248
247
  <AddNewPageButton
249
- onClick={() => !isDisabledFeature && handleOpenDetail({})}
250
- isDisabledFeature={isDisabledFeature}
248
+ onClick={() => handleOpenDetail({})}
251
249
  >
252
250
  {t('ADD_NEW_CAMPAIGN', 'Add new campaign')}
253
251
  </AddNewPageButton>