ordering-ui-admin-external 1.13.3 → 1.14.0
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.a97f0d1801ec4a89a98e.js → ordering-ui-admin.1a09d41a4e6cd3d1e1cf.js} +2 -2
- package/_modules/components/BusinessIntelligence/BusinessReviewList/index.js +2 -1
- package/_modules/components/BusinessIntelligence/InvoiceBusinessManager/styles.js +1 -1
- package/_modules/components/BusinessIntelligence/InvoiceDriverManager/styles.js +1 -1
- package/_modules/components/BusinessIntelligence/InvoiceManager/index.js +2 -1
- package/_modules/components/BusinessIntelligence/UsersReviewList/index.js +6 -3
- package/_modules/components/CartRecovery/OpenCartsDetail/index.js +15 -1
- package/_modules/components/CartRecovery/OpenCartsDetail/styles.js +1 -1
- package/_modules/components/CartRecovery/RecoveryActionDetail/index.js +18 -1
- package/_modules/components/CartRecovery/RecoveryActionDetail/styles.js +4 -4
- package/_modules/components/CartRecovery/RecoveryActionList/styles.js +1 -3
- package/_modules/components/Delivery/DeliveryUsersListing/index.js +2 -1
- package/_modules/components/Delivery/DriversCompaniesList/styles.js +1 -1
- package/_modules/components/Delivery/DriversCompanyDetailsForm/index.js +21 -2
- package/_modules/components/Delivery/DriversCompanyDetailsForm/styles.js +8 -6
- package/_modules/components/Delivery/DriversGroupDetails/index.js +20 -2
- package/_modules/components/Delivery/DriversGroupDetails/styles.js +6 -4
- package/_modules/components/Delivery/DriversGroupsList/index.js +5 -5
- package/_modules/components/Delivery/DriversGroupsList/styles.js +1 -1
- package/_modules/components/Delivery/UserAddForm/index.js +1 -1
- package/_modules/components/Delivery/UserDetails/index.js +20 -2
- package/_modules/components/Delivery/UserDetails/styles.js +6 -4
- package/_modules/components/Delivery/UserDetailsLateralBar/styles.js +1 -1
- package/_modules/components/Delivery/UserProfileForm/index.js +1 -1
- package/_modules/components/Delivery/UsersList/styles.js +1 -1
- package/_modules/components/Login/LoginForm/index.js +49 -7
- package/_modules/components/Login/LoginForm/styles.js +18 -14
- package/_modules/components/Loyalty/GiftCardDetail/index.js +285 -0
- package/_modules/components/Loyalty/LoyaltyLevelDetail/index.js +1 -1
- package/_modules/components/Loyalty/PointsWalletBusinessList/index.js +1 -1
- package/_modules/components/Loyalty/PointsWalletBusinessList/styles.js +3 -3
- package/_modules/components/Loyalty/PointsWalletLevels/styles.js +1 -3
- package/_modules/components/Loyalty/RewardsPrograms/index.js +45 -28
- package/_modules/components/Loyalty/RewardsPrograms/styles.js +18 -3
- package/_modules/components/Loyalty/Wallet/index.js +109 -0
- package/_modules/components/Loyalty/{PointsWallet → Wallet}/styles.js +15 -9
- package/_modules/components/Loyalty/index.js +7 -7
- package/_modules/components/Marketing/BannerDetails/styles.js +1 -1
- package/_modules/components/Marketing/BannerImageDetails/index.js +1 -1
- package/_modules/components/Marketing/CampaignDetail/index.js +20 -1
- package/_modules/components/Marketing/CampaignDetail/styles.js +4 -4
- package/_modules/components/Marketing/CampaignList/styles.js +1 -3
- package/_modules/components/Marketing/EnterprisePromotionDetails/index.js +17 -2
- package/_modules/components/Marketing/EnterprisePromotionDetails/styles.js +7 -5
- package/_modules/components/Marketing/EnterprisePromotionGeneralDetails/index.js +1 -1
- package/_modules/components/Marketing/EnterprisePromotionList/styles.js +1 -3
- package/_modules/components/Marketing/EnterprisePromotionRules/index.js +1 -0
- package/_modules/components/Marketing/PageBanner/index.js +21 -7
- package/_modules/components/Marketing/PageBanner/styles.js +26 -24
- package/_modules/components/MyProducts/AdvancedSettings/ImageBox.js +151 -0
- package/_modules/components/MyProducts/OrderingWebsite/index.js +1 -1
- package/_modules/components/OrderingProducts/OrderingProductDetails/index.js +20 -2
- package/_modules/components/OrderingProducts/OrderingProductDetails/styles.js +15 -13
- package/_modules/components/OrderingProducts/OrderingProductsListing/styles.js +1 -3
- package/_modules/components/OrderingProducts/SiteTheme/ThemeImage.js +1 -1
- package/_modules/components/Orders/Messages/index.js +10 -2
- package/_modules/components/Orders/Messages/styles.js +64 -62
- package/_modules/components/Orders/OrderDashboardSLASetting/index.js +0 -1
- package/_modules/components/Orders/OrderDetailsHeader/index.js +30 -3
- package/_modules/components/Orders/OrdersFilterGroup/index.js +6 -10
- package/_modules/components/Orders/OrdersLateralBar/index.js +22 -5
- package/_modules/components/Orders/OrdersLateralBar/styles.js +2 -2
- package/_modules/components/Settings/ApiKeysList/styles.js +10 -7
- package/_modules/components/Settings/Cms/styles.js +1 -1
- package/_modules/components/Settings/CountriesList/index.js +5 -4
- package/_modules/components/Settings/CountriesList/styles.js +1 -1
- package/_modules/components/Settings/Deliverect/index.js +15 -1
- package/_modules/components/Settings/DoordashConnect/index.js +15 -1
- package/_modules/components/Settings/DropdownOptionList/index.js +2 -1
- package/_modules/components/Settings/DropdownOptionList/styles.js +1 -1
- package/_modules/components/Settings/IntegrationListing/index.js +6 -3
- package/_modules/components/Settings/ItsaCheckmate/index.js +15 -1
- package/_modules/components/Settings/LalamoveConnect/index.js +15 -1
- package/_modules/components/Settings/LanguageTransTable/styles.js +1 -1
- package/_modules/components/Settings/PickerExpress/index.js +15 -1
- package/_modules/components/Settings/PlaceListing/index.js +2 -1
- package/_modules/components/Settings/PlaceListing/styles.js +1 -1
- package/_modules/components/Settings/PluginList/styles.js +20 -17
- package/_modules/components/Settings/Settings/index.js +2 -1
- package/_modules/components/Settings/SettingsDetail/index.js +15 -1
- package/_modules/components/Settings/SettingsDetail/styles.js +13 -11
- package/_modules/components/Settings/SettingsImage/index.js +1 -1
- package/_modules/components/Settings/SitesAuthSettings/index.js +20 -1
- package/_modules/components/Settings/SitesAuthSettings/styles.js +10 -6
- package/_modules/components/Settings/WebhookList/styles.js +14 -11
- package/_modules/components/Shared/Modal/index.js +5 -3
- package/_modules/components/Shared/ProtectedRoute/index.js +6 -1
- package/_modules/components/Shared/SideBar/index.js +22 -3
- package/_modules/components/Shared/SideBar/styles.js +10 -8
- package/_modules/components/SidebarMenu/index.js +16 -18
- package/_modules/components/Stores/AddBusinessForm/index.js +1 -1
- package/_modules/components/Stores/BusinessAdd/Images/index.js +1 -1
- package/_modules/components/Stores/BusinessAdd/Photos/index.js +1 -1
- package/_modules/components/Stores/BusinessAddStore/index.js +1 -2
- package/_modules/components/Stores/BusinessBrandGENDetail/index.js +8 -3
- package/_modules/components/Stores/BusinessBrandListing/index.js +17 -2
- package/_modules/components/Stores/BusinessBrandListing/styles.js +35 -33
- package/_modules/components/Stores/BusinessDeliveryZoneInformation/index.js +1 -1
- package/_modules/components/Stores/BusinessDetails/index.js +6 -1
- package/_modules/components/Stores/BusinessFilterGroup/index.js +110 -0
- package/_modules/components/Stores/BusinessFilterGroup/styles.js +37 -0
- package/_modules/components/Stores/BusinessInformation/index.js +1 -1
- package/_modules/components/Stores/BusinessOrderingChannels/index.js +1 -1
- package/_modules/components/Stores/BusinessProductAddForm/index.js +5 -5
- package/_modules/components/Stores/BusinessProductList/index.js +2 -1
- package/_modules/components/Stores/BusinessProductList/styles.js +1 -3
- package/_modules/components/Stores/BusinessProductsCategories/styles.js +2 -4
- package/_modules/components/Stores/BusinessProductsCategoyDetails/index.js +22 -4
- package/_modules/components/Stores/BusinessProductsCategoyDetails/styles.js +1 -1
- package/_modules/components/Stores/BusinessProductsCategoyInfo/index.js +11 -23
- package/_modules/components/Stores/BusinessProductsListing/index.js +3 -2
- package/_modules/components/Stores/BusinessPromotionList/styles.js +1 -1
- package/_modules/components/Stores/BusinessSalesChannel/index.js +142 -0
- package/_modules/components/Stores/BusinessSalesChannel/styles.js +26 -0
- package/_modules/components/Stores/BusinessSalesFacebook/FacebookPost.js +31 -0
- package/_modules/components/Stores/BusinessSalesFacebook/FacebookProfile.js +45 -0
- package/_modules/components/Stores/BusinessSalesFacebook/index.js +77 -0
- package/_modules/components/Stores/BusinessSalesFacebook/styles.js +58 -0
- package/_modules/components/Stores/BusinessSalesGoogle/index.js +85 -0
- package/_modules/components/Stores/BusinessSalesGoogle/styles.js +44 -0
- package/_modules/components/Stores/BusinessSalesInstagram/AdvancedInstagram.js +58 -0
- package/_modules/components/Stores/BusinessSalesInstagram/GeneralInstagram.js +51 -0
- package/_modules/components/{Loyalty/PointsWallet → Stores/BusinessSalesInstagram}/index.js +62 -44
- package/_modules/components/Stores/BusinessSalesInstagram/styles.js +63 -0
- package/_modules/components/Stores/BusinessSalesTiktok/index.js +100 -0
- package/_modules/components/Stores/BusinessSalesTiktok/styles.js +37 -0
- package/_modules/components/Stores/BusinessServiceProfessionals/index.js +1 -0
- package/_modules/components/Stores/BusinessSummary/index.js +33 -6
- package/_modules/components/Stores/BusinessTypeDetail/index.js +1 -1
- package/_modules/components/Stores/BusinessesList/styles.js +1 -1
- package/_modules/components/Stores/BusinessesListing/index.js +12 -6
- package/_modules/components/Stores/BusinessesListingHeader/index.js +33 -3
- package/_modules/components/Stores/BusinessesListingHeader/styles.js +5 -2
- package/_modules/components/Stores/ImportersButton/index.js +2 -1
- package/_modules/components/Stores/PaymentOption/index.js +4 -10
- package/_modules/components/Stores/PaymentOptionMethods/index.js +47 -24
- package/_modules/components/Stores/PaymentOptionPaypal/index.js +47 -24
- package/_modules/components/Stores/PaymentOptionStripeDirect/index.js +47 -24
- package/_modules/components/Stores/PaymethodOptionStripeConnect/index.js +50 -25
- package/_modules/components/Stores/PaymethodOptionStripeRedirect/index.js +47 -24
- package/_modules/components/Stores/ProductDetails/index.js +2 -1
- package/_modules/components/Stores/ProductDetailsAdvanced/index.js +30 -11
- package/_modules/components/Stores/ProductDetailsAdvanced/styles.js +10 -7
- package/_modules/components/Stores/ProductDetatilsInformation/index.js +10 -34
- package/_modules/components/Stores/ProductExtraOptionDetails/index.js +1 -1
- package/_modules/components/Stores/ProductExtraOptions/index.js +1 -1
- package/_modules/components/Stores/ProductExtraSuboption/index.js +1 -1
- package/_modules/components/Stores/ProductGallery/index.js +1 -1
- package/_modules/components/Stores/ProductSummary/index.js +23 -2
- package/_modules/components/Stores/ProductTagDetails/index.js +1 -1
- package/_modules/components/Stores/SeoOptions/index.js +14 -16
- package/_modules/components/Stores/SeoOptions/styles.js +3 -3
- package/_modules/components/Stores/ServiceDetail/index.js +1 -1
- package/_modules/components/Stores/WizardBusiness/index.js +2 -1
- package/_modules/components/Stores/index.js +7 -0
- package/_modules/components/Users/CustomerDetails/index.js +24 -2
- package/_modules/components/Users/CustomerDetails/styles.js +16 -19
- package/_modules/components/Users/CustomersListing/index.js +39 -4
- package/_modules/components/Users/CustomersListing/styles.js +1 -1
- package/_modules/components/Users/OccupationSelector/index.js +1 -1
- package/_modules/components/Users/ProfessionalDetail/index.js +19 -3
- package/_modules/components/Users/ProfessionalDetail/styles.js +11 -9
- package/_modules/components/Users/ProfessionalList/styles.js +1 -1
- package/_modules/components/Users/ProfessionalListing/index.js +8 -3
- package/_modules/components/Users/UserAddForm/index.js +1 -1
- package/_modules/components/Users/UserDetails/index.js +27 -10
- package/_modules/components/Users/UserDetails/styles.js +20 -13
- package/_modules/components/Users/UserDetailsLateralBar/styles.js +1 -1
- package/_modules/components/Users/UserFilterGroup/index.js +307 -0
- package/_modules/components/Users/UserFilterGroup/styles.js +37 -0
- package/_modules/components/Users/UserProfileForm/index.js +1 -1
- package/_modules/components/Users/UsersExportCSV/index.js +33 -1
- package/_modules/components/Users/UsersList/index.js +5 -2
- package/_modules/components/Users/UsersList/styles.js +20 -5
- package/_modules/components/Users/UsersListing/index.js +9 -3
- package/_modules/components/Users/UsersListingHeader/index.js +39 -4
- package/_modules/components/Users/UsersListingHeader/styles.js +1 -1
- package/_modules/components/Users/index.js +7 -0
- package/_modules/config/constants.js +281 -41
- package/_modules/index.js +6 -6
- package/index-template.js +72 -0
- package/package.json +2 -2
- package/src/components/BusinessIntelligence/BusinessReviewList/index.js +1 -0
- package/src/components/BusinessIntelligence/InvoiceBusinessManager/styles.js +2 -2
- package/src/components/BusinessIntelligence/InvoiceDriverManager/styles.js +2 -2
- package/src/components/BusinessIntelligence/InvoiceManager/index.js +1 -0
- package/src/components/BusinessIntelligence/UsersReviewList/index.js +5 -2
- package/src/components/CartRecovery/OpenCartsDetail/index.js +17 -1
- package/src/components/CartRecovery/OpenCartsDetail/styles.js +3 -1
- package/src/components/CartRecovery/RecoveryActionDetail/index.js +24 -6
- package/src/components/CartRecovery/RecoveryActionDetail/styles.js +2 -3
- package/src/components/CartRecovery/RecoveryActionList/styles.js +1 -5
- package/src/components/Delivery/DeliveryUsersListing/index.js +1 -0
- package/src/components/Delivery/DriversCompaniesList/styles.js +1 -1
- package/src/components/Delivery/DriversCompanyDetailsForm/index.js +38 -15
- package/src/components/Delivery/DriversCompanyDetailsForm/styles.js +9 -5
- package/src/components/Delivery/DriversGroupDetails/index.js +48 -18
- package/src/components/Delivery/DriversGroupDetails/styles.js +5 -1
- package/src/components/Delivery/DriversGroupsList/index.js +8 -6
- package/src/components/Delivery/DriversGroupsList/styles.js +1 -1
- package/src/components/Delivery/UserAddForm/index.js +1 -1
- package/src/components/Delivery/UserDetails/index.js +43 -21
- package/src/components/Delivery/UserDetails/styles.js +8 -2
- package/src/components/Delivery/UserDetailsLateralBar/styles.js +0 -1
- package/src/components/Delivery/UserProfileForm/index.js +1 -1
- package/src/components/Delivery/UsersList/styles.js +1 -1
- package/src/components/Login/LoginForm/index.js +92 -32
- package/src/components/Login/LoginForm/styles.js +16 -0
- package/src/components/Loyalty/GiftCardDetail/index.js +287 -0
- package/src/components/Loyalty/LoyaltyLevelDetail/index.js +1 -1
- package/src/components/Loyalty/PointsWalletBusinessList/index.js +1 -1
- package/src/components/Loyalty/PointsWalletBusinessList/styles.js +9 -1
- package/src/components/Loyalty/PointsWalletLevels/styles.js +1 -6
- package/src/components/Loyalty/RewardsPrograms/index.js +63 -36
- package/src/components/Loyalty/RewardsPrograms/styles.js +57 -0
- package/src/components/Loyalty/Wallet/index.js +115 -0
- package/src/components/Loyalty/{PointsWallet → Wallet}/styles.js +17 -0
- package/src/components/Loyalty/index.js +2 -2
- package/src/components/Marketing/BannerDetails/styles.js +1 -0
- package/src/components/Marketing/BannerImageDetails/index.js +1 -1
- package/src/components/Marketing/CampaignDetail/index.js +25 -5
- package/src/components/Marketing/CampaignDetail/styles.js +2 -4
- package/src/components/Marketing/CampaignList/styles.js +1 -5
- package/src/components/Marketing/EnterprisePromotionDetails/index.js +35 -17
- package/src/components/Marketing/EnterprisePromotionDetails/styles.js +7 -3
- package/src/components/Marketing/EnterprisePromotionGeneralDetails/index.js +1 -1
- package/src/components/Marketing/EnterprisePromotionList/styles.js +1 -4
- package/src/components/Marketing/EnterprisePromotionRules/index.js +1 -0
- package/src/components/Marketing/PageBanner/index.js +28 -10
- package/src/components/Marketing/PageBanner/styles.js +15 -8
- package/src/components/MyProducts/AdvancedSettings/ImageBox.js +112 -0
- package/src/components/MyProducts/OrderingWebsite/index.js +1 -1
- package/src/components/OrderingProducts/OrderingProductDetails/index.js +34 -12
- package/src/components/OrderingProducts/OrderingProductDetails/styles.js +8 -3
- package/src/components/OrderingProducts/OrderingProductsListing/styles.js +1 -5
- package/src/components/OrderingProducts/SiteTheme/ThemeImage.js +1 -1
- package/src/components/Orders/Messages/index.js +104 -84
- package/src/components/Orders/Messages/styles.js +20 -0
- package/src/components/Orders/OrderDashboardSLASetting/index.js +0 -1
- package/src/components/Orders/OrderDetailsHeader/index.js +30 -3
- package/src/components/Orders/OrdersFilterGroup/index.js +6 -6
- package/src/components/Orders/OrdersLateralBar/index.js +20 -2
- package/src/components/Orders/OrdersLateralBar/styles.js +3 -1
- package/src/components/Settings/ApiKeysList/styles.js +8 -0
- package/src/components/Settings/Cms/styles.js +1 -1
- package/src/components/Settings/CountriesList/index.js +4 -3
- package/src/components/Settings/CountriesList/styles.js +1 -1
- package/src/components/Settings/Deliverect/index.js +17 -1
- package/src/components/Settings/DoordashConnect/index.js +17 -1
- package/src/components/Settings/DropdownOptionList/index.js +1 -0
- package/src/components/Settings/DropdownOptionList/styles.js +1 -1
- package/src/components/Settings/IntegrationListing/index.js +3 -0
- package/src/components/Settings/ItsaCheckmate/index.js +17 -1
- package/src/components/Settings/LalamoveConnect/index.js +17 -1
- package/src/components/Settings/LanguageTransTable/styles.js +1 -1
- package/src/components/Settings/PickerExpress/index.js +17 -1
- package/src/components/Settings/PlaceListing/index.js +1 -0
- package/src/components/Settings/PlaceListing/styles.js +1 -1
- package/src/components/Settings/PluginList/styles.js +8 -0
- package/src/components/Settings/Settings/index.js +1 -0
- package/src/components/Settings/SettingsDetail/index.js +18 -1
- package/src/components/Settings/SettingsDetail/styles.js +9 -0
- package/src/components/Settings/SettingsImage/index.js +1 -1
- package/src/components/Settings/SitesAuthSettings/index.js +26 -2
- package/src/components/Settings/SitesAuthSettings/styles.js +14 -1
- package/src/components/Settings/WebhookList/styles.js +8 -0
- package/src/components/Shared/Modal/index.js +8 -3
- package/src/components/Shared/ProtectedRoute/index.js +7 -1
- package/src/components/Shared/SideBar/index.js +30 -10
- package/src/components/Shared/SideBar/styles.js +13 -14
- package/src/components/SidebarMenu/index.js +3 -6
- package/src/components/Stores/AddBusinessForm/index.js +1 -1
- package/src/components/Stores/BusinessAdd/Images/index.js +1 -1
- package/src/components/Stores/BusinessAdd/Photos/index.js +1 -1
- package/src/components/Stores/BusinessAddStore/index.js +0 -1
- package/src/components/Stores/BusinessBrandGENDetail/index.js +19 -18
- package/src/components/Stores/BusinessBrandListing/index.js +29 -11
- package/src/components/Stores/BusinessBrandListing/styles.js +7 -3
- package/src/components/Stores/BusinessDeliveryZoneInformation/index.js +1 -1
- package/src/components/Stores/BusinessDetails/index.js +8 -0
- package/src/components/Stores/BusinessFilterGroup/index.js +168 -0
- package/src/components/Stores/BusinessFilterGroup/styles.js +116 -0
- package/src/components/Stores/BusinessInformation/index.js +1 -1
- package/src/components/Stores/BusinessOrderingChannels/index.js +4 -2
- package/src/components/Stores/BusinessProductAddForm/index.js +2 -2
- package/src/components/Stores/BusinessProductList/index.js +1 -0
- package/src/components/Stores/BusinessProductList/styles.js +1 -4
- package/src/components/Stores/BusinessProductsCategories/styles.js +1 -5
- package/src/components/Stores/BusinessProductsCategoyDetails/index.js +23 -3
- package/src/components/Stores/BusinessProductsCategoyDetails/styles.js +2 -2
- package/src/components/Stores/BusinessProductsCategoyInfo/index.js +18 -47
- package/src/components/Stores/BusinessProductsListing/index.js +13 -10
- package/src/components/Stores/BusinessPromotionList/styles.js +1 -1
- package/src/components/Stores/BusinessSalesChannel/index.js +165 -0
- package/src/components/Stores/BusinessSalesChannel/styles.js +75 -0
- package/src/components/Stores/BusinessSalesFacebook/FacebookPost.js +29 -0
- package/src/components/Stores/BusinessSalesFacebook/FacebookProfile.js +51 -0
- package/src/components/Stores/BusinessSalesFacebook/index.js +81 -0
- package/src/components/Stores/BusinessSalesFacebook/styles.js +135 -0
- package/src/components/Stores/BusinessSalesGoogle/index.js +88 -0
- package/src/components/Stores/BusinessSalesGoogle/styles.js +119 -0
- package/src/components/Stores/BusinessSalesInstagram/AdvancedInstagram.js +54 -0
- package/src/components/Stores/BusinessSalesInstagram/GeneralInstagram.js +53 -0
- package/src/components/Stores/BusinessSalesInstagram/index.js +81 -0
- package/src/components/Stores/BusinessSalesInstagram/styles.js +157 -0
- package/src/components/Stores/BusinessSalesTiktok/index.js +116 -0
- package/src/components/Stores/BusinessSalesTiktok/styles.js +100 -0
- package/src/components/Stores/BusinessServiceProfessionals/index.js +1 -0
- package/src/components/Stores/BusinessSummary/index.js +32 -3
- package/src/components/Stores/BusinessTypeDetail/index.js +1 -1
- package/src/components/Stores/BusinessesList/styles.js +1 -1
- package/src/components/Stores/BusinessesListing/index.js +24 -11
- package/src/components/Stores/BusinessesListingHeader/index.js +25 -4
- package/src/components/Stores/BusinessesListingHeader/styles.js +13 -1
- package/src/components/Stores/ImportersButton/index.js +1 -0
- package/src/components/Stores/PaymentOption/index.js +4 -6
- package/src/components/Stores/PaymentOptionMethods/index.js +42 -21
- package/src/components/Stores/PaymentOptionPaypal/index.js +42 -21
- package/src/components/Stores/PaymentOptionStripeDirect/index.js +42 -21
- package/src/components/Stores/PaymethodOptionStripeConnect/index.js +45 -22
- package/src/components/Stores/PaymethodOptionStripeRedirect/index.js +42 -21
- package/src/components/Stores/ProductDetails/index.js +1 -0
- package/src/components/Stores/ProductDetailsAdvanced/index.js +18 -0
- package/src/components/Stores/ProductDetailsAdvanced/styles.js +5 -0
- package/src/components/Stores/ProductDetatilsInformation/index.js +2 -48
- package/src/components/Stores/ProductExtraOptionDetails/index.js +1 -1
- package/src/components/Stores/ProductExtraOptions/index.js +1 -1
- package/src/components/Stores/ProductExtraSuboption/index.js +1 -1
- package/src/components/Stores/ProductGallery/index.js +1 -1
- package/src/components/Stores/ProductSummary/index.js +24 -3
- package/src/components/Stores/ProductTagDetails/index.js +1 -1
- package/src/components/Stores/SeoOptions/index.js +18 -12
- package/src/components/Stores/SeoOptions/styles.js +5 -14
- package/src/components/Stores/ServiceDetail/index.js +1 -1
- package/src/components/Stores/WizardBusiness/index.js +1 -0
- package/src/components/Stores/index.js +2 -0
- package/src/components/Users/CustomerDetails/index.js +39 -14
- package/src/components/Users/CustomerDetails/styles.js +2 -5
- package/src/components/Users/CustomersListing/index.js +32 -15
- package/src/components/Users/CustomersListing/styles.js +1 -1
- package/src/components/Users/OccupationSelector/index.js +1 -1
- package/src/components/Users/ProfessionalDetail/index.js +43 -23
- package/src/components/Users/ProfessionalDetail/styles.js +5 -0
- package/src/components/Users/ProfessionalList/styles.js +1 -1
- package/src/components/Users/ProfessionalListing/index.js +6 -1
- package/src/components/Users/UserAddForm/index.js +1 -1
- package/src/components/Users/UserDetails/index.js +34 -17
- package/src/components/Users/UserDetails/styles.js +17 -2
- package/src/components/Users/UserDetailsLateralBar/styles.js +0 -1
- package/src/components/Users/UserFilterGroup/index.js +306 -0
- package/src/components/Users/UserFilterGroup/styles.js +116 -0
- package/src/components/Users/UserProfileForm/index.js +1 -1
- package/src/components/Users/UsersExportCSV/index.js +19 -1
- package/src/components/Users/UsersList/index.js +9 -2
- package/src/components/Users/UsersList/styles.js +28 -1
- package/src/components/Users/UsersListing/index.js +7 -1
- package/src/components/Users/UsersListingHeader/index.js +66 -33
- package/src/components/Users/UsersListingHeader/styles.js +4 -0
- package/src/components/Users/index.js +2 -0
- package/src/config/constants.js +1215 -244
- package/src/index.js +2 -2
- package/template/assets/images/icons/business-google.svg +26 -0
- package/template/assets/images/icons/facebook.svg +11 -0
- package/template/assets/images/icons/instagram.svg +19 -0
- package/template/assets/images/icons/tiktok.svg +11 -0
- package/template/assets/images/salesChannels/facebook-post-step1.png +0 -0
- package/template/assets/images/salesChannels/facebook-post-step2.png +0 -0
- package/template/assets/images/salesChannels/facebook-profile-step2.png +0 -0
- package/template/assets/images/salesChannels/facebook-profile-step3-1.png +0 -0
- package/template/assets/images/salesChannels/facebook-profile-step3-2.png +0 -0
- package/template/assets/images/salesChannels/facebook-profile-step4.png +0 -0
- package/template/assets/images/salesChannels/facebook-profile-step5.png +0 -0
- package/template/assets/images/salesChannels/google-step1.png +0 -0
- package/template/assets/images/salesChannels/google-step2.png +0 -0
- package/template/assets/images/salesChannels/google-step3.png +0 -0
- package/template/assets/images/salesChannels/instagram-advanced-step31.png +0 -0
- package/template/assets/images/salesChannels/instagram-advanced-step32.png +0 -0
- package/template/assets/images/salesChannels/instagram-advanced-step41.png +0 -0
- package/template/assets/images/salesChannels/instagram-advanced-step42.png +0 -0
- package/template/assets/images/salesChannels/instagram-general-step2.png +0 -0
- package/template/assets/images/salesChannels/instagram-general-step3.png +0 -0
- package/template/assets/images/salesChannels/instagram-general-step4.png +0 -0
- package/template/assets/images/salesChannels/instagram-general-step5.png +0 -0
- package/template/assets/images/salesChannels/instagram-general-step6.png +0 -0
- package/template/assets/images/salesChannels/tiktok-step1.png +0 -0
- package/template/assets/images/salesChannels/tiktok-step10.png +0 -0
- package/template/assets/images/salesChannels/tiktok-step2.png +0 -0
- package/template/assets/images/salesChannels/tiktok-step3.png +0 -0
- package/template/assets/images/salesChannels/tiktok-step4.png +0 -0
- package/template/assets/images/salesChannels/tiktok-step5.png +0 -0
- package/template/assets/images/salesChannels/tiktok-step6.png +0 -0
- package/template/assets/images/salesChannels/tiktok-step7.png +0 -0
- package/template/assets/images/salesChannels/tiktok-step8.png +0 -0
- package/template/assets/images/salesChannels/tiktok-step9.png +0 -0
- package/template/pages/CustomersList/index.js +1 -1
- package/template/pages/Login/index.js +7 -1
- package/src/components/Loyalty/PointsWallet/index.js +0 -71
- /package/_bundles/{ordering-ui-admin.a97f0d1801ec4a89a98e.js.LICENSE.txt → ordering-ui-admin.1a09d41a4e6cd3d1e1cf.js.LICENSE.txt} +0 -0
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
} from 'ordering-components-admin-external'
|
|
8
8
|
import Skeleton from 'react-loading-skeleton'
|
|
9
9
|
import { Alert, Modal, ImageCrop, ColorPicker } from '../../Shared'
|
|
10
|
-
import { bytesConverter, shape, ribbonValues } from '../../../utils'
|
|
10
|
+
import { bytesConverter, shape, ribbonValues, stringToSlug } from '../../../utils'
|
|
11
11
|
import FiCamera from '@meronex/icons/fi/FiCamera'
|
|
12
12
|
import BsCardImage from '@meronex/icons/bs/BsCardImage'
|
|
13
13
|
import { Button, Switch } from '../../../styles'
|
|
@@ -34,7 +34,6 @@ const BusinessBrandGENDetailUI = (props) => {
|
|
|
34
34
|
const {
|
|
35
35
|
brandFormState,
|
|
36
36
|
brand,
|
|
37
|
-
// handlechangeImage,
|
|
38
37
|
handleChangeInput,
|
|
39
38
|
handleUpdateClick,
|
|
40
39
|
handleChangeItem,
|
|
@@ -181,25 +180,27 @@ const BusinessBrandGENDetailUI = (props) => {
|
|
|
181
180
|
name='name'
|
|
182
181
|
placeholder={t('WRITE_A_NAME', 'Write a name')}
|
|
183
182
|
value={brandFormState?.changes?.name ?? brand?.name ?? ''}
|
|
184
|
-
onChange={
|
|
183
|
+
onChange={(e) => handleChangeItem({ name: e.target.value, slug: stringToSlug(e.target.value) })}
|
|
185
184
|
disabled={brandFormState.loading}
|
|
186
185
|
autoComplete='off'
|
|
187
186
|
/>
|
|
188
187
|
</FormControl>
|
|
189
|
-
|
|
190
|
-
<
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
188
|
+
{brand && (
|
|
189
|
+
<FormControl>
|
|
190
|
+
<Label>{t('SLUG', 'Slug')}</Label>
|
|
191
|
+
<input
|
|
192
|
+
name='slug'
|
|
193
|
+
placeholder={t('WRITE_A_SLUG', 'Write a slug')}
|
|
194
|
+
value={brandFormState?.changes?.slug ?? brand?.slug ?? ''}
|
|
195
|
+
onChange={handleChangeInput}
|
|
196
|
+
disabled={brandFormState.loading}
|
|
197
|
+
autoComplete='off'
|
|
198
|
+
onKeyPress={e => {
|
|
199
|
+
if (e.which === 32) { e.preventDefault() }
|
|
200
|
+
}}
|
|
201
|
+
/>
|
|
202
|
+
</FormControl>
|
|
203
|
+
)}
|
|
203
204
|
<SwitchWrapper>
|
|
204
205
|
<span>{t('RIBBON', 'Ribbon')}</span>
|
|
205
206
|
<Switch
|
|
@@ -283,7 +284,7 @@ const BusinessBrandGENDetailUI = (props) => {
|
|
|
283
284
|
padding='30px'
|
|
284
285
|
title={t('IMAGE_CROP', 'Image crop')}
|
|
285
286
|
open={cropState?.open}
|
|
286
|
-
|
|
287
|
+
onRemove={() => setCropState({ ...cropState, open: false })}
|
|
287
288
|
>
|
|
288
289
|
<ImageCrop
|
|
289
290
|
photo={cropState?.data}
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from 'ordering-components-admin-external'
|
|
7
7
|
import Skeleton from 'react-loading-skeleton'
|
|
8
8
|
import { useInfoShare } from '../../../contexts/InfoShareContext'
|
|
9
|
-
import { ThreeDots, List as MenuIcon } from 'react-bootstrap-icons'
|
|
9
|
+
import { ThreeDots, List as MenuIcon, ArrowsAngleContract, ArrowsAngleExpand } from 'react-bootstrap-icons'
|
|
10
10
|
import { Button, IconButton, Switch, DefaultSelect } from '../../../styles'
|
|
11
11
|
import { useTheme } from 'styled-components'
|
|
12
12
|
import { Alert, SearchBar, SideBar } from '../../Shared'
|
|
@@ -31,7 +31,8 @@ import {
|
|
|
31
31
|
BrandDetailContainer,
|
|
32
32
|
DetailHeder,
|
|
33
33
|
TabContainer,
|
|
34
|
-
Tab
|
|
34
|
+
Tab,
|
|
35
|
+
RightHeader
|
|
35
36
|
} from './styles'
|
|
36
37
|
|
|
37
38
|
const BusinessBrandListingUI = (props) => {
|
|
@@ -54,6 +55,7 @@ const BusinessBrandListingUI = (props) => {
|
|
|
54
55
|
const [alertState, setAlertState] = useState({ open: false, content: [] })
|
|
55
56
|
const [selectedType, setSelectedType] = useState('general')
|
|
56
57
|
const [selectedBrand, setSelectedBrand] = useState(null)
|
|
58
|
+
const [isExpand, setIsExpand] = useState(false)
|
|
57
59
|
|
|
58
60
|
const moreOptions = [
|
|
59
61
|
{ value: 0, content: t('DELETE', 'Delete') }
|
|
@@ -88,6 +90,14 @@ const BusinessBrandListingUI = (props) => {
|
|
|
88
90
|
handleOpenSideBar(brandId)
|
|
89
91
|
}
|
|
90
92
|
|
|
93
|
+
const expandSideBar = () => {
|
|
94
|
+
const element = document.getElementById('brand-details')
|
|
95
|
+
if (!element) return
|
|
96
|
+
if (isExpand) element.style.width = '500px'
|
|
97
|
+
else element.style.width = '100vw'
|
|
98
|
+
setIsExpand(prev => !prev)
|
|
99
|
+
}
|
|
100
|
+
|
|
91
101
|
useEffect(() => {
|
|
92
102
|
if (brandListState?.brands?.length > 0) {
|
|
93
103
|
let brands = []
|
|
@@ -242,15 +252,23 @@ const BusinessBrandListingUI = (props) => {
|
|
|
242
252
|
/>
|
|
243
253
|
)}
|
|
244
254
|
</div>
|
|
245
|
-
|
|
246
|
-
<
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
255
|
+
<RightHeader>
|
|
256
|
+
<IconButton
|
|
257
|
+
color='black'
|
|
258
|
+
onClick={expandSideBar}
|
|
259
|
+
>
|
|
260
|
+
{isExpand ? <ArrowsAngleContract /> : <ArrowsAngleExpand />}
|
|
261
|
+
</IconButton>
|
|
262
|
+
{selectedBrand && (
|
|
263
|
+
<ActionSelectorWrapper>
|
|
264
|
+
<DefaultSelect
|
|
265
|
+
placeholder={<ThreeDots />}
|
|
266
|
+
options={moreOptions}
|
|
267
|
+
onChange={() => handleDeleteBrand(selectedBrand.id)}
|
|
268
|
+
/>
|
|
269
|
+
</ActionSelectorWrapper>
|
|
270
|
+
)}
|
|
271
|
+
</RightHeader>
|
|
254
272
|
</DetailHeder>
|
|
255
273
|
<TabContainer>
|
|
256
274
|
<Tab
|
|
@@ -32,6 +32,11 @@ export const HeaderContainer = styled.div`
|
|
|
32
32
|
}
|
|
33
33
|
`
|
|
34
34
|
|
|
35
|
+
export const RightHeader = styled.div`
|
|
36
|
+
display: flex;
|
|
37
|
+
align-items: center;
|
|
38
|
+
`
|
|
39
|
+
|
|
35
40
|
export const HeaderTitleContainer = styled.div`
|
|
36
41
|
flex: 1;
|
|
37
42
|
display: flex;
|
|
@@ -239,8 +244,8 @@ export const BrandListBottomContainer = styled.div`
|
|
|
239
244
|
span {
|
|
240
245
|
cursor: pointer;
|
|
241
246
|
user-select: none;
|
|
242
|
-
font-size:
|
|
243
|
-
color: ${props => props.theme.colors?.
|
|
247
|
+
font-size: 14px;
|
|
248
|
+
color: ${props => props.theme.colors?.primary};
|
|
244
249
|
}
|
|
245
250
|
`
|
|
246
251
|
|
|
@@ -253,7 +258,6 @@ export const DetailHeder = styled.div`
|
|
|
253
258
|
display: flex;
|
|
254
259
|
align-items: center;
|
|
255
260
|
justify-content: space-between;
|
|
256
|
-
margin-top: 3px;
|
|
257
261
|
margin-bottom: 25px;
|
|
258
262
|
${props => props.theme?.rtl ? css`
|
|
259
263
|
margin-left: 40px;
|
|
@@ -268,7 +268,7 @@ export const BusinessDeliveryZoneInformation = (props) => {
|
|
|
268
268
|
<ErrorText>{t('REQUIRED_GOOGLE_MAP_API_KEY', 'Google Maps api key is required')}</ErrorText>
|
|
269
269
|
)
|
|
270
270
|
)}
|
|
271
|
-
{(!zone && zoneType !== 5) && (
|
|
271
|
+
{(!zone && zoneType !== 5 && zoneType !== 4) && (
|
|
272
272
|
<KmlButtonWrapper>
|
|
273
273
|
<Button
|
|
274
274
|
color='primary'
|
|
@@ -23,6 +23,7 @@ import { MoreSidebarLayout, Personalization, Alert } from '../../Shared'
|
|
|
23
23
|
import {
|
|
24
24
|
BarContainer
|
|
25
25
|
} from './styles'
|
|
26
|
+
import { BusinessSalesChannel } from '../BusinessSalesChannel'
|
|
26
27
|
|
|
27
28
|
export const BusinessDetailsUI = (props) => {
|
|
28
29
|
const {
|
|
@@ -151,6 +152,7 @@ export const BusinessDetailsUI = (props) => {
|
|
|
151
152
|
handleSucessUpdateBusiness={handleSucessUpdateBusiness}
|
|
152
153
|
handleDuplicateBusiness={handleDuplicateBusiness}
|
|
153
154
|
handleDeleteBusiness={handleDeleteBusiness}
|
|
155
|
+
extraOpen={extraOpen}
|
|
154
156
|
/>
|
|
155
157
|
)}
|
|
156
158
|
{extraOpen && (
|
|
@@ -272,6 +274,12 @@ export const BusinessDetailsUI = (props) => {
|
|
|
272
274
|
setIsExtendExtraOpen={setIsExtendExtraOpen}
|
|
273
275
|
/>
|
|
274
276
|
)} */}
|
|
277
|
+
{selectedItem === 'sales_channels' && (
|
|
278
|
+
<BusinessSalesChannel
|
|
279
|
+
business={businessState?.business}
|
|
280
|
+
setIsExtendExtraOpen={setIsExtendExtraOpen}
|
|
281
|
+
/>
|
|
282
|
+
)}
|
|
275
283
|
{selectedItem === 'layout' && (
|
|
276
284
|
<BusinessFrontLayout
|
|
277
285
|
business={businessState?.business}
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import { useLanguage, BusinessFilter } from 'ordering-components-admin-external'
|
|
3
|
+
import { Input, DefaultSelect, Button } from '../../../styles'
|
|
4
|
+
import { CitySelector, Modal } from '../../Shared'
|
|
5
|
+
import {
|
|
6
|
+
Container,
|
|
7
|
+
FormControl,
|
|
8
|
+
FormGroup,
|
|
9
|
+
// RangeSelectWrapper,
|
|
10
|
+
Option,
|
|
11
|
+
ButtonGroup
|
|
12
|
+
} from './styles'
|
|
13
|
+
|
|
14
|
+
const BusinessFilterGroupUI = (props) => {
|
|
15
|
+
const {
|
|
16
|
+
filterValues,
|
|
17
|
+
handleChangeValue,
|
|
18
|
+
handleChangeCity,
|
|
19
|
+
handleChangeFilterValues,
|
|
20
|
+
handleResetFilterValues,
|
|
21
|
+
isFilterModal,
|
|
22
|
+
onClose
|
|
23
|
+
} = props
|
|
24
|
+
|
|
25
|
+
const [, t] = useLanguage()
|
|
26
|
+
|
|
27
|
+
// const conditions = [
|
|
28
|
+
// { value: '>', content: <Option>{'>'}</Option> },
|
|
29
|
+
// { value: '=', content: <Option>=</Option> },
|
|
30
|
+
// { value: '<', content: <Option>{'<'}</Option> },
|
|
31
|
+
// { value: '>=', content: <Option>{'>='}</Option> },
|
|
32
|
+
// { value: '<=', content: <Option>{'<='}</Option> }
|
|
33
|
+
// ]
|
|
34
|
+
|
|
35
|
+
const enableOptions = [
|
|
36
|
+
{ value: true, content: <Option>{t('YES', 'Yes')}</Option> },
|
|
37
|
+
{ value: false, content: <Option>{t('NO', 'No')}</Option> }
|
|
38
|
+
]
|
|
39
|
+
|
|
40
|
+
const handleAcceptFilter = () => {
|
|
41
|
+
handleChangeFilterValues({ ...filterValues })
|
|
42
|
+
onClose()
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
const handleClearFilter = () => {
|
|
46
|
+
handleResetFilterValues()
|
|
47
|
+
handleChangeFilterValues({})
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
return (
|
|
51
|
+
<Modal
|
|
52
|
+
title={t('FILTER', 'Filter')}
|
|
53
|
+
width='80%'
|
|
54
|
+
padding='30px'
|
|
55
|
+
open={isFilterModal}
|
|
56
|
+
onClose={onClose}
|
|
57
|
+
>
|
|
58
|
+
<Container>
|
|
59
|
+
<FormGroup>
|
|
60
|
+
<FormControl>
|
|
61
|
+
<label>{t('NAME', 'Name')}</label>
|
|
62
|
+
<Input
|
|
63
|
+
type='text'
|
|
64
|
+
placeholder={t('NAME', 'Name')}
|
|
65
|
+
autoComplete='off'
|
|
66
|
+
value={filterValues?.name || ''}
|
|
67
|
+
onChange={(e) => handleChangeValue({ name: e.target.value })}
|
|
68
|
+
/>
|
|
69
|
+
</FormControl>
|
|
70
|
+
</FormGroup>
|
|
71
|
+
<FormGroup>
|
|
72
|
+
<FormControl>
|
|
73
|
+
<label>{t('FEATURED', 'FEATURED')}</label>
|
|
74
|
+
<DefaultSelect
|
|
75
|
+
placeholder={t('SELECT_OPTION', 'Select a option')}
|
|
76
|
+
defaultValue={filterValues?.featured}
|
|
77
|
+
options={enableOptions}
|
|
78
|
+
onChange={val => handleChangeValue({ featured: val })}
|
|
79
|
+
optionInnerMaxHeight='300px'
|
|
80
|
+
className='full-select'
|
|
81
|
+
/>
|
|
82
|
+
</FormControl>
|
|
83
|
+
<FormControl>
|
|
84
|
+
<label>{t('CITY', 'City')}</label>
|
|
85
|
+
<CitySelector
|
|
86
|
+
filterValues={filterValues}
|
|
87
|
+
handleChangeCity={handleChangeCity}
|
|
88
|
+
/>
|
|
89
|
+
</FormControl>
|
|
90
|
+
</FormGroup>
|
|
91
|
+
{/* <FormGroup>
|
|
92
|
+
<FormControl>
|
|
93
|
+
<label>{t('AVAILABLE_MENUS', 'Available menus')}</label>
|
|
94
|
+
<RangeSelectWrapper className='range'>
|
|
95
|
+
<DefaultSelect
|
|
96
|
+
placeholder={t('SELECT_CONDITION', 'Select a condition')}
|
|
97
|
+
defaultValue={filterValues?.availableMenus?.condition}
|
|
98
|
+
options={conditions}
|
|
99
|
+
onChange={condition => handleChangeValue({ availableMenus: { ...filterValues?.availableMenus, condition } })}
|
|
100
|
+
optionInnerMaxHeight='300px'
|
|
101
|
+
/>
|
|
102
|
+
<Input
|
|
103
|
+
type='text'
|
|
104
|
+
placeholder={t('NUMBER', 'Number')}
|
|
105
|
+
autoComplete='off'
|
|
106
|
+
onKeyPress={(e) => {
|
|
107
|
+
if (!/^[0-9]$/.test(e.key)) {
|
|
108
|
+
e.preventDefault()
|
|
109
|
+
}
|
|
110
|
+
}}
|
|
111
|
+
value={filterValues?.availableMenus?.value || ''}
|
|
112
|
+
onChange={(e) => handleChangeValue({ availableMenus: { ...filterValues?.availableMenus, value: e.target.value } })}
|
|
113
|
+
/>
|
|
114
|
+
</RangeSelectWrapper>
|
|
115
|
+
</FormControl>
|
|
116
|
+
<FormControl>
|
|
117
|
+
<label>{t('TOTAL_MENUS', 'Total menus')}</label>
|
|
118
|
+
<RangeSelectWrapper className='range'>
|
|
119
|
+
<DefaultSelect
|
|
120
|
+
placeholder={t('SELECT_CONDITION', 'Select a condition')}
|
|
121
|
+
defaultValue={filterValues?.menus?.condition}
|
|
122
|
+
options={conditions}
|
|
123
|
+
onChange={condition => handleChangeValue({ menus: { ...filterValues?.menus, condition } })}
|
|
124
|
+
optionInnerMaxHeight='300px'
|
|
125
|
+
/>
|
|
126
|
+
<Input
|
|
127
|
+
type='text'
|
|
128
|
+
placeholder={t('NUMBER', 'Number')}
|
|
129
|
+
autoComplete='off'
|
|
130
|
+
onKeyPress={(e) => {
|
|
131
|
+
if (!/^[0-9]$/.test(e.key)) {
|
|
132
|
+
e.preventDefault()
|
|
133
|
+
}
|
|
134
|
+
}}
|
|
135
|
+
value={filterValues?.menus?.value || ''}
|
|
136
|
+
onChange={(e) => handleChangeValue({ menus: { ...filterValues?.menus, value: e.target.value } })}
|
|
137
|
+
/>
|
|
138
|
+
</RangeSelectWrapper>
|
|
139
|
+
</FormControl>
|
|
140
|
+
</FormGroup> */}
|
|
141
|
+
<ButtonGroup>
|
|
142
|
+
<Button
|
|
143
|
+
color='primary'
|
|
144
|
+
borderRadius='8px'
|
|
145
|
+
onClick={() => handleAcceptFilter()}
|
|
146
|
+
>
|
|
147
|
+
{t('ACCEPT', 'Accept')}
|
|
148
|
+
</Button>
|
|
149
|
+
<Button
|
|
150
|
+
color='secundaryDark'
|
|
151
|
+
borderRadius='8px'
|
|
152
|
+
onClick={() => handleClearFilter()}
|
|
153
|
+
>
|
|
154
|
+
{t('CLEAR', 'Clear')}
|
|
155
|
+
</Button>
|
|
156
|
+
</ButtonGroup>
|
|
157
|
+
</Container>
|
|
158
|
+
</Modal>
|
|
159
|
+
)
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
export const BusinessFilterGroup = (props) => {
|
|
163
|
+
const businessFilterGroupProps = {
|
|
164
|
+
...props,
|
|
165
|
+
UIComponent: BusinessFilterGroupUI
|
|
166
|
+
}
|
|
167
|
+
return <BusinessFilter {...businessFilterGroupProps} />
|
|
168
|
+
}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import styled, { css } from 'styled-components'
|
|
2
|
+
|
|
3
|
+
export const Container = styled.div``
|
|
4
|
+
|
|
5
|
+
export const FormGroup = styled.div`
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
justify-content: space-between;
|
|
9
|
+
> div {
|
|
10
|
+
width: 100%;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
@media (min-width: 576px) {
|
|
14
|
+
flex-direction: row;
|
|
15
|
+
> div {
|
|
16
|
+
width: 48%;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
`
|
|
20
|
+
|
|
21
|
+
export const FormControl = styled.div`
|
|
22
|
+
margin-bottom: 15px;
|
|
23
|
+
> label {
|
|
24
|
+
font-size: 14px;
|
|
25
|
+
margin-bottom: 10px;
|
|
26
|
+
}
|
|
27
|
+
> input {
|
|
28
|
+
width: 100%;
|
|
29
|
+
height: 54px;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
& > div:not(.range) {
|
|
33
|
+
width: 100%;
|
|
34
|
+
height: 54px;
|
|
35
|
+
background-color: ${props => props.theme.colors.secundary};
|
|
36
|
+
border: none;
|
|
37
|
+
font-size: 14px;
|
|
38
|
+
border-radius: 8px;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.full-select {
|
|
42
|
+
> div:first-child {
|
|
43
|
+
height: 100%;
|
|
44
|
+
border-radius: 8px;
|
|
45
|
+
}
|
|
46
|
+
.list {
|
|
47
|
+
left: 0px;
|
|
48
|
+
right: auto;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
`
|
|
52
|
+
|
|
53
|
+
export const RangeSelectWrapper = styled.div`
|
|
54
|
+
display: flex;
|
|
55
|
+
height: 54px;
|
|
56
|
+
.select {
|
|
57
|
+
height: 100%;
|
|
58
|
+
> div:first-child {
|
|
59
|
+
width: 75px;
|
|
60
|
+
height: 100%;
|
|
61
|
+
padding-top: 4px;
|
|
62
|
+
padding-bottom: 4px;
|
|
63
|
+
background-color: ${props => props.theme.colors.secundary};
|
|
64
|
+
font-size: 14px;
|
|
65
|
+
border-radius: 8px;
|
|
66
|
+
}
|
|
67
|
+
.list {
|
|
68
|
+
left: 0px;
|
|
69
|
+
right: auto;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
input {
|
|
73
|
+
width: calc(100% - 65px);
|
|
74
|
+
margin-left: 15px;
|
|
75
|
+
${props => props.theme.rtl && css`
|
|
76
|
+
margin-left: 0;
|
|
77
|
+
margin-right: 15px;
|
|
78
|
+
`}
|
|
79
|
+
}
|
|
80
|
+
`
|
|
81
|
+
|
|
82
|
+
export const Option = styled.div`
|
|
83
|
+
color: ${props => props.theme.colors.secundaryContrast};
|
|
84
|
+
font-size: 14px;
|
|
85
|
+
white-space: nowrap;
|
|
86
|
+
`
|
|
87
|
+
|
|
88
|
+
export const SwitchWrapper = styled.div`
|
|
89
|
+
display: flex;
|
|
90
|
+
align-items: center;
|
|
91
|
+
justify-content: space-between;
|
|
92
|
+
width: 100%;
|
|
93
|
+
label {
|
|
94
|
+
margin-bottom: 0px;
|
|
95
|
+
font-size: 14px;
|
|
96
|
+
}
|
|
97
|
+
`
|
|
98
|
+
|
|
99
|
+
export const ButtonGroup = styled.div`
|
|
100
|
+
display: flex;
|
|
101
|
+
align-items: center;
|
|
102
|
+
margin-top: 40px;
|
|
103
|
+
|
|
104
|
+
button {
|
|
105
|
+
padding-top: 5px;
|
|
106
|
+
padding-bottom: 5px;
|
|
107
|
+
|
|
108
|
+
&:last-child {
|
|
109
|
+
${props => props.theme?.rtl ? css`
|
|
110
|
+
margin-right: 20px;
|
|
111
|
+
` : css`
|
|
112
|
+
margin-left: 20px;
|
|
113
|
+
`}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
`
|
|
@@ -515,7 +515,7 @@ const BusinessInformationUI = (props) => {
|
|
|
515
515
|
padding='30px'
|
|
516
516
|
title={t('IMAGE_CROP', 'Image crop')}
|
|
517
517
|
open={cropState?.open}
|
|
518
|
-
|
|
518
|
+
onRemove={() => setCropState({ ...cropState, open: false })}
|
|
519
519
|
>
|
|
520
520
|
<ImageCrop
|
|
521
521
|
photo={cropState?.data}
|
|
@@ -92,8 +92,10 @@ export const BusinessOrderingChannels = (props) => {
|
|
|
92
92
|
value={slug}
|
|
93
93
|
placeholder={t('SLUG', 'Slug')}
|
|
94
94
|
onChange={(e) => setSlug(e.target.value)}
|
|
95
|
-
onKeyPress={e => {
|
|
96
|
-
if (e.
|
|
95
|
+
onKeyPress={(e) => {
|
|
96
|
+
if (!/^[0-9a-zA-Z]$/.test(e.key)) {
|
|
97
|
+
e.preventDefault()
|
|
98
|
+
}
|
|
97
99
|
}}
|
|
98
100
|
/>
|
|
99
101
|
</FormControl>
|
|
@@ -147,12 +147,12 @@ const BusinessProductAddFormUI = (props) => {
|
|
|
147
147
|
}
|
|
148
148
|
|
|
149
149
|
const handleChangeSelect = (value) => {
|
|
150
|
+
setCurPreorderTime({ hour: '0', minute: '0' })
|
|
150
151
|
if (value === 'custom') {
|
|
151
152
|
setIsCustom(true)
|
|
152
153
|
handleChangeItem({ duration: null })
|
|
153
154
|
return
|
|
154
155
|
}
|
|
155
|
-
setCurPreorderTime({ hour: '0', minute: '0' })
|
|
156
156
|
setIsCustom(false)
|
|
157
157
|
handleChangeItem({ duration: value })
|
|
158
158
|
}
|
|
@@ -340,7 +340,7 @@ const BusinessProductAddFormUI = (props) => {
|
|
|
340
340
|
padding='30px'
|
|
341
341
|
title={t('IMAGE_CROP', 'Image crop')}
|
|
342
342
|
open={cropState?.open}
|
|
343
|
-
|
|
343
|
+
onRemove={() => setCropState({ ...cropState, open: false })}
|
|
344
344
|
>
|
|
345
345
|
<ImageCrop
|
|
346
346
|
photo={cropState?.data}
|
|
@@ -113,14 +113,11 @@ export const WrapperNotFound = styled.div`
|
|
|
113
113
|
export const AddProductBtn = styled.div`
|
|
114
114
|
user-select: none;
|
|
115
115
|
font-size: 14px;
|
|
116
|
-
color: ${props => props.theme.colors.
|
|
116
|
+
color: ${props => props.theme.colors.primary};
|
|
117
117
|
margin-top: 12px;
|
|
118
118
|
cursor: pointer;
|
|
119
119
|
margin-bottom: 15px;
|
|
120
120
|
display: inline-block;
|
|
121
|
-
&:hover {
|
|
122
|
-
color: ${props => props.theme.colors.primary};
|
|
123
|
-
}
|
|
124
121
|
`
|
|
125
122
|
|
|
126
123
|
export const ProductListBottom = styled.div`
|
|
@@ -36,13 +36,9 @@ export const AddCategory = styled.div`
|
|
|
36
36
|
display: inline;
|
|
37
37
|
user-select: none;
|
|
38
38
|
font-size: 14px;
|
|
39
|
-
color: ${props => props.theme.colors?.
|
|
39
|
+
color: ${props => props.theme.colors?.primary};
|
|
40
40
|
cursor: pointer;
|
|
41
41
|
margin: 15px 10px;
|
|
42
|
-
|
|
43
|
-
&:hover {
|
|
44
|
-
color: ${props => props.theme.colors.primary};
|
|
45
|
-
}
|
|
46
42
|
`
|
|
47
43
|
|
|
48
44
|
export const CategoryTab = styled.div`
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import React, { useState, useEffect } from 'react'
|
|
2
2
|
import Skeleton from 'react-loading-skeleton'
|
|
3
3
|
import { useLanguage, BusinessProductsCategoyDetails as BusinessProductsCategoyDetailsController } from 'ordering-components-admin-external'
|
|
4
|
-
import { ThreeDots } from 'react-bootstrap-icons'
|
|
4
|
+
import { ArrowsAngleContract, ArrowsAngleExpand, ThreeDots } from 'react-bootstrap-icons'
|
|
5
5
|
import { DropdownButton, Dropdown } from 'react-bootstrap'
|
|
6
6
|
import { useTheme } from 'styled-components'
|
|
7
7
|
import { Alert, Confirm } from '../../Shared'
|
|
8
|
-
import { Switch } from '../../../styles'
|
|
8
|
+
import { IconButton, Switch } from '../../../styles'
|
|
9
9
|
import { SeoOptions } from '../SeoOptions'
|
|
10
|
+
import { useWindowSize } from '../../../hooks/useWindowSize'
|
|
10
11
|
|
|
11
12
|
import { BusinessCategoryInfoSettingList } from '../BusinessCategoryInfoSettingList'
|
|
12
13
|
import { BusinessProductsCategoyInfo } from '../BusinessProductsCategoyInfo'
|
|
@@ -44,10 +45,12 @@ const BusinessProductsCategoyDetailsUI = (props) => {
|
|
|
44
45
|
|
|
45
46
|
const theme = useTheme()
|
|
46
47
|
const [, t] = useLanguage()
|
|
48
|
+
const { width } = useWindowSize()
|
|
47
49
|
|
|
48
50
|
const [alertState, setAlertState] = useState({ open: false, content: [] })
|
|
49
51
|
const [confirm, setConfirm] = useState({ open: false, content: null, handleOnAccept: null })
|
|
50
52
|
const [selectedInfoItem, setSelctedInfoItem] = useState('information')
|
|
53
|
+
const [isExpand, setIsExpand] = useState(false)
|
|
51
54
|
|
|
52
55
|
const closeAlert = () => {
|
|
53
56
|
setAlertState({
|
|
@@ -67,6 +70,15 @@ const BusinessProductsCategoyDetailsUI = (props) => {
|
|
|
67
70
|
})
|
|
68
71
|
}
|
|
69
72
|
|
|
73
|
+
const expandSideBar = () => {
|
|
74
|
+
const element = document.getElementById('editCategory')
|
|
75
|
+
if (!element) return
|
|
76
|
+
|
|
77
|
+
if (isExpand) element.style.width = '500px'
|
|
78
|
+
else element.style.width = '100vw'
|
|
79
|
+
setIsExpand(prev => !prev)
|
|
80
|
+
}
|
|
81
|
+
|
|
70
82
|
useEffect(() => {
|
|
71
83
|
if (formState?.result?.error) {
|
|
72
84
|
setAlertState({
|
|
@@ -78,7 +90,7 @@ const BusinessProductsCategoyDetailsUI = (props) => {
|
|
|
78
90
|
|
|
79
91
|
return (
|
|
80
92
|
<>
|
|
81
|
-
<Container
|
|
93
|
+
<Container>
|
|
82
94
|
<EditCategoryContent>
|
|
83
95
|
{
|
|
84
96
|
businessState.loading ? (
|
|
@@ -122,6 +134,14 @@ const BusinessProductsCategoyDetailsUI = (props) => {
|
|
|
122
134
|
)}
|
|
123
135
|
</BusinessEnableWrapper>
|
|
124
136
|
<RightHeader>
|
|
137
|
+
{width > 576 && (
|
|
138
|
+
<IconButton
|
|
139
|
+
color='black'
|
|
140
|
+
onClick={() => expandSideBar()}
|
|
141
|
+
>
|
|
142
|
+
{isExpand ? <ArrowsAngleContract /> : <ArrowsAngleExpand />}
|
|
143
|
+
</IconButton>
|
|
144
|
+
)}
|
|
125
145
|
{!isAddMode && (
|
|
126
146
|
<ActionSelectorWrapper>
|
|
127
147
|
<DropdownButton
|