ordering-ui-admin-external 1.25.1 → 1.26.1
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/main.css +1829 -1829
- package/_bundles/{ordering-ui-admin.bb3d2f1a6bc2f5d19b6c.js → ordering-ui-admin.45097ebbca4f4a7d30b7.js} +2 -2
- package/_modules/components/BusinessIntelligence/AnalyticsCalendar/index.js +8 -1
- package/_modules/components/Delivery/DriversCompanyAddForm/styles.js +1 -1
- package/_modules/components/Delivery/DriversGroupAddForm/AdvancedLogisticsForm/index.js +68 -0
- package/_modules/components/Delivery/DriversGroupAddForm/AdvancedLogisticsForm/styles.js +42 -0
- package/_modules/components/Delivery/DriversGroupAddForm/BusinessesForm/index.js +89 -0
- package/_modules/components/Delivery/DriversGroupAddForm/BusinessesForm/styles.js +47 -0
- package/_modules/components/Delivery/DriversGroupAddForm/GeneralForm/index.js +106 -0
- package/_modules/components/Delivery/DriversGroupAddForm/GeneralForm/styles.js +16 -0
- package/_modules/components/Delivery/DriversGroupAddForm/PaymethodsForm/index.js +87 -0
- package/_modules/components/Delivery/DriversGroupAddForm/PaymethodsForm/styles.js +33 -0
- package/_modules/components/Delivery/DriversGroupAddForm/index.js +132 -0
- package/_modules/components/Delivery/DriversGroupAddForm/styles.js +18 -0
- package/_modules/components/Delivery/DriversGroupCompanies/styles.js +1 -1
- package/_modules/components/Delivery/DriversGroupDrivers/styles.js +1 -1
- package/_modules/components/Delivery/DriversGroupOrders/index.js +5 -5
- package/_modules/components/Delivery/DriversGroupsList/styles.js +1 -1
- package/_modules/components/Delivery/DriversGroupsListing/index.js +28 -7
- package/_modules/components/Delivery/DriversGroupsListing/styles.js +2 -2
- package/_modules/components/Delivery/UserAddForm/index.js +39 -6
- package/_modules/components/Delivery/UserAddForm/styles.js +28 -21
- package/_modules/components/Delivery/UserDetails/index.js +2 -2
- package/_modules/components/Home/HomePage/index.js +71 -3
- package/_modules/components/Home/HomePage/styles.js +27 -5
- package/_modules/components/Login/LoginForm/index.js +0 -5
- package/_modules/components/MyProducts/AdvancedLayouts/LayoutStyleGroup.js +46 -0
- package/_modules/components/MyProducts/AdvancedLayouts/index.js +213 -0
- package/_modules/components/MyProducts/AdvancedLayouts/styles.js +146 -0
- package/_modules/components/MyProducts/AdvancedSettings/index.js +12 -0
- package/_modules/components/MyProducts/CustomDomain/index.js +6 -4
- package/_modules/components/MyProducts/CustomDomain/styles.js +27 -9
- package/_modules/components/MyProducts/OrderingWebsite/index.js +94 -17
- package/_modules/components/MyProducts/OrderingWebsite/styles.js +20 -11
- package/_modules/components/Orders/AllInOne/DriversManager/index.js +128 -0
- package/_modules/components/Orders/AllInOne/DriversManager/styles.js +27 -0
- package/_modules/components/Orders/AllInOne/index.js +337 -0
- package/_modules/components/Orders/AllInOne/styles.js +67 -0
- package/_modules/components/Orders/CompanySelector/index.js +259 -0
- package/_modules/components/Orders/CompanySelector/styles.js +86 -0
- package/_modules/components/Orders/DriversBusyStatusFilter/styles.js +6 -3
- package/_modules/components/Orders/DriversList/index.js +3 -2
- package/_modules/components/Orders/DriversList/styles.js +2 -2
- package/_modules/components/Orders/DriversManager/index.js +2 -1
- package/_modules/components/Orders/DriversOnlineOfflineFilter/styles.js +5 -2
- package/_modules/components/Orders/OrderBill/RefundToWallet.js +1 -1
- package/_modules/components/Orders/OrderBill/index.js +17 -18
- package/_modules/components/Orders/OrderContactInformation/index.js +14 -3
- package/_modules/components/Orders/OrderDetails/index.js +1 -1
- package/_modules/components/Orders/OrderStatusSubFilter/styles.js +1 -1
- package/_modules/components/Orders/OrderToPrint/index.js +2 -1
- package/_modules/components/Orders/OrderToPrintTicket/index.js +4 -2
- package/_modules/components/Orders/OrdersContentHeader/index.js +2 -1
- package/_modules/components/Orders/OrdersListing/index.js +3 -1
- package/_modules/components/Orders/OrdersManager/index.js +5 -1
- package/_modules/components/Orders/OrdersTable/index.js +11 -10
- package/_modules/components/Orders/ProductItemAccordion/index.js +5 -9
- package/_modules/components/Orders/WebsocketStatus/index.js +119 -0
- package/_modules/components/Orders/WebsocketStatus/styles.js +65 -0
- package/_modules/components/Orders/index.js +7 -0
- package/_modules/components/Settings/IntegrationListing/Analytics.js +130 -0
- package/_modules/components/Settings/IntegrationListing/PaymentGateway.js +130 -0
- package/_modules/components/Settings/IntegrationListing/index.js +174 -31
- package/_modules/components/Settings/IntegrationListing/styles.js +42 -11
- package/_modules/components/Settings/NotificationSetting/index.js +25 -4
- package/_modules/components/Settings/NotificationSetting/styles.js +5 -3
- package/_modules/components/Settings/SettingsSelectUI/index.js +3 -2
- package/_modules/components/Shared/RangeCalendar/index.js +9 -1
- package/_modules/components/Shared/SearchBar/index.js +11 -6
- package/_modules/components/Shared/SearchBar/styles.js +9 -15
- package/_modules/components/SidebarMenu/index.js +19 -10
- package/_modules/components/Users/UserDetails/index.js +2 -2
- package/_modules/config/currency.js +1017 -0
- package/_modules/index.js +6 -0
- package/_modules/utils/index.js +26 -3
- package/index-template.js +10 -0
- package/package.json +3 -2
- package/src/components/BusinessIntelligence/AnalyticsCalendar/index.js +7 -1
- package/src/components/Delivery/DriversCompanyAddForm/styles.js +0 -1
- package/src/components/Delivery/DriversGroupAddForm/AdvancedLogisticsForm/index.js +113 -0
- package/src/components/Delivery/DriversGroupAddForm/AdvancedLogisticsForm/styles.js +72 -0
- package/src/components/Delivery/DriversGroupAddForm/BusinessesForm/index.js +87 -0
- package/src/components/Delivery/DriversGroupAddForm/BusinessesForm/styles.js +87 -0
- package/src/components/Delivery/DriversGroupAddForm/GeneralForm/index.js +104 -0
- package/src/components/Delivery/DriversGroupAddForm/GeneralForm/styles.js +31 -0
- package/src/components/Delivery/DriversGroupAddForm/PaymethodsForm/index.js +82 -0
- package/src/components/Delivery/DriversGroupAddForm/PaymethodsForm/styles.js +46 -0
- package/src/components/Delivery/DriversGroupAddForm/index.js +130 -0
- package/src/components/Delivery/DriversGroupAddForm/styles.js +38 -0
- package/src/components/Delivery/DriversGroupCompanies/styles.js +1 -0
- package/src/components/Delivery/DriversGroupDrivers/styles.js +1 -0
- package/src/components/Delivery/DriversGroupOrders/index.js +2 -2
- package/src/components/Delivery/DriversGroupsList/styles.js +1 -1
- package/src/components/Delivery/DriversGroupsListing/index.js +35 -13
- package/src/components/Delivery/DriversGroupsListing/styles.js +1 -1
- package/src/components/Delivery/UserAddForm/index.js +34 -2
- package/src/components/Delivery/UserAddForm/styles.js +25 -0
- package/src/components/Delivery/UserDetails/index.js +1 -1
- package/src/components/Home/HomePage/index.js +215 -142
- package/src/components/Home/HomePage/styles.js +105 -1
- package/src/components/Login/LoginForm/index.js +0 -7
- package/src/components/MyProducts/AdvancedLayouts/LayoutStyleGroup.js +37 -0
- package/src/components/MyProducts/AdvancedLayouts/index.js +240 -0
- package/src/components/MyProducts/AdvancedLayouts/styles.js +388 -0
- package/src/components/MyProducts/AdvancedSettings/index.js +5 -2
- package/src/components/MyProducts/CustomDomain/index.js +35 -16
- package/src/components/MyProducts/CustomDomain/styles.js +73 -1
- package/src/components/MyProducts/OrderingWebsite/index.js +147 -79
- package/src/components/MyProducts/OrderingWebsite/styles.js +38 -0
- package/src/components/Orders/AllInOne/DriversManager/index.js +137 -0
- package/src/components/Orders/AllInOne/DriversManager/styles.js +51 -0
- package/src/components/Orders/AllInOne/index.js +339 -0
- package/src/components/Orders/AllInOne/styles.js +144 -0
- package/src/components/Orders/CompanySelector/index.js +250 -0
- package/src/components/Orders/CompanySelector/styles.js +142 -0
- package/src/components/Orders/DriversBusyStatusFilter/styles.js +7 -1
- package/src/components/Orders/DriversList/index.js +7 -4
- package/src/components/Orders/DriversList/styles.js +2 -1
- package/src/components/Orders/DriversManager/index.js +2 -0
- package/src/components/Orders/DriversOnlineOfflineFilter/styles.js +8 -1
- package/src/components/Orders/OrderBill/RefundToWallet.js +12 -10
- package/src/components/Orders/OrderBill/index.js +18 -18
- package/src/components/Orders/OrderContactInformation/index.js +20 -1
- package/src/components/Orders/OrderDetails/index.js +8 -8
- package/src/components/Orders/OrderStatusSubFilter/styles.js +1 -1
- package/src/components/Orders/OrderToPrint/index.js +2 -1
- package/src/components/Orders/OrderToPrintTicket/index.js +160 -173
- package/src/components/Orders/OrdersContentHeader/index.js +2 -0
- package/src/components/Orders/OrdersListing/index.js +2 -0
- package/src/components/Orders/OrdersManager/index.js +2 -2
- package/src/components/Orders/OrdersTable/index.js +39 -25
- package/src/components/Orders/ProductItemAccordion/index.js +3 -3
- package/src/components/Orders/WebsocketStatus/index.js +138 -0
- package/src/components/Orders/WebsocketStatus/styles.js +171 -0
- package/src/components/Orders/index.js +2 -0
- package/src/components/Settings/IntegrationListing/Analytics.js +127 -0
- package/src/components/Settings/IntegrationListing/PaymentGateway.js +126 -0
- package/src/components/Settings/IntegrationListing/index.js +189 -96
- package/src/components/Settings/IntegrationListing/styles.js +90 -1
- package/src/components/Settings/NotificationSetting/index.js +73 -10
- package/src/components/Settings/NotificationSetting/styles.js +19 -0
- package/src/components/Settings/SettingsSelectUI/index.js +12 -9
- package/src/components/Shared/RangeCalendar/index.js +7 -1
- package/src/components/Shared/SearchBar/index.js +14 -5
- package/src/components/Shared/SearchBar/styles.js +19 -32
- package/src/components/SidebarMenu/index.js +15 -8
- package/src/components/Users/UserDetails/index.js +1 -1
- package/src/config/currency.js +1010 -0
- package/src/index.js +2 -0
- package/src/utils/index.js +21 -0
- package/template/app.js +4 -0
- package/template/assets/images/preview/franchise.png +0 -0
- package/template/assets/images/preview/marketplace.png +0 -0
- package/template/assets/images/preview/single-store.png +0 -0
- package/template/components/AutologinParams/index.js +1 -3
- package/template/components/ListenPageChanges/index.js +1 -0
- package/template/helmetdata.json +7 -0
- package/template/pages/AllInOne/index.js +23 -0
- /package/_bundles/{ordering-ui-admin.bb3d2f1a6bc2f5d19b6c.js.LICENSE.txt → ordering-ui-admin.45097ebbca4f4a7d30b7.js.LICENSE.txt} +0 -0
|
@@ -1,10 +1,17 @@
|
|
|
1
1
|
import React, { useState, useEffect, useContext } from 'react'
|
|
2
2
|
import { useLanguage, SettingsList as SettingsListController } from 'ordering-components-admin-external'
|
|
3
3
|
import { SettingsSelectUI } from '../SettingsSelectUI'
|
|
4
|
-
import { Accordion, AccordionContext, useAccordionToggle } from 'react-bootstrap'
|
|
5
|
-
import { Button } from '../../../styles'
|
|
4
|
+
import { Accordion, AccordionContext, useAccordionToggle, OverlayTrigger, Tooltip } from 'react-bootstrap'
|
|
5
|
+
import { Button, IconButton } from '../../../styles'
|
|
6
6
|
import { Alert } from '../../Shared'
|
|
7
|
-
import {
|
|
7
|
+
import { InfoCircle } from 'react-bootstrap-icons'
|
|
8
|
+
import {
|
|
9
|
+
NotificationSettingContainer,
|
|
10
|
+
AccordionTitle,
|
|
11
|
+
GeneralWrapper,
|
|
12
|
+
ToggleItemWrapper,
|
|
13
|
+
TitleWrapper
|
|
14
|
+
} from './styles'
|
|
8
15
|
import {
|
|
9
16
|
FormGroupText,
|
|
10
17
|
CheckBoxWrapper,
|
|
@@ -36,9 +43,22 @@ const NotificationSettingUI = (props) => {
|
|
|
36
43
|
'onesignal_orderingweb_id',
|
|
37
44
|
'onesignal_dashboardweb_id',
|
|
38
45
|
'driver_close_distance',
|
|
39
|
-
'notification_toast'
|
|
46
|
+
'notification_toast',
|
|
47
|
+
'notification_times_repeat',
|
|
48
|
+
'notification_each_time_repeat',
|
|
49
|
+
'notification_superadmin_repeat',
|
|
50
|
+
'notification_business_repeat',
|
|
51
|
+
'notification_driver_repeat'
|
|
40
52
|
]
|
|
41
53
|
|
|
54
|
+
const tooltips = {
|
|
55
|
+
notification_times_repeat: t('MAX_TIMES_TO_REPEAT_15', 'Max times to repeat = 15'),
|
|
56
|
+
notification_each_time_repeat: t('EACH_TIME_SETTING_SET_IN_SECONDS', 'Each time setting set in seconds'),
|
|
57
|
+
notification_superadmin_repeat: t('NOTIFICATION_REPEAT_WORKS_WITH_PENDING_READY', 'Notification repeat works only with Pending (0) and Order Ready (4) status'),
|
|
58
|
+
notification_business_repeat: t('PENDING_STATUS_WORKS_FOR_ADMIN_DRIVER_BUSINESS_USER', 'Pending status works for admin, driver, business user'),
|
|
59
|
+
notification_driver_repeat: t('ORDER_READY_WORKS_WITH_DRIVER_USER', 'Order Ready works only with driver user')
|
|
60
|
+
}
|
|
61
|
+
|
|
42
62
|
const [general, setGeneral] = useState(null)
|
|
43
63
|
const [superAdmin, setSuperAdmin] = useState(null)
|
|
44
64
|
const [business, setBusiness] = useState(null)
|
|
@@ -93,7 +113,26 @@ const NotificationSettingUI = (props) => {
|
|
|
93
113
|
{
|
|
94
114
|
config.type === 1 && (
|
|
95
115
|
<FormGroupText className='form-group'>
|
|
96
|
-
<
|
|
116
|
+
<TitleWrapper>
|
|
117
|
+
<label>{config?.name}</label>
|
|
118
|
+
{tooltips?.[config?.key] && (
|
|
119
|
+
<OverlayTrigger
|
|
120
|
+
placement='bottom'
|
|
121
|
+
overlay={
|
|
122
|
+
<Tooltip>
|
|
123
|
+
{tooltips?.[config?.key]}
|
|
124
|
+
</Tooltip>
|
|
125
|
+
}
|
|
126
|
+
>
|
|
127
|
+
<IconButton
|
|
128
|
+
color='primary'
|
|
129
|
+
className='tour_btn'
|
|
130
|
+
>
|
|
131
|
+
<InfoCircle />
|
|
132
|
+
</IconButton>
|
|
133
|
+
</OverlayTrigger>
|
|
134
|
+
)}
|
|
135
|
+
</TitleWrapper>
|
|
97
136
|
{config?.description && <Description>{config?.description}</Description>}
|
|
98
137
|
<input
|
|
99
138
|
type='text'
|
|
@@ -107,11 +146,35 @@ const NotificationSettingUI = (props) => {
|
|
|
107
146
|
}
|
|
108
147
|
{
|
|
109
148
|
config.type === 2 && (
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
149
|
+
<>
|
|
150
|
+
<TitleWrapper>
|
|
151
|
+
<label>{config?.name}</label>
|
|
152
|
+
{tooltips?.[config?.key] && (
|
|
153
|
+
<OverlayTrigger
|
|
154
|
+
placement='bottom'
|
|
155
|
+
overlay={
|
|
156
|
+
<Tooltip>
|
|
157
|
+
{tooltips?.[config?.key]}
|
|
158
|
+
</Tooltip>
|
|
159
|
+
}
|
|
160
|
+
>
|
|
161
|
+
<IconButton
|
|
162
|
+
color='primary'
|
|
163
|
+
className='tour_btn'
|
|
164
|
+
>
|
|
165
|
+
<InfoCircle />
|
|
166
|
+
</IconButton>
|
|
167
|
+
</OverlayTrigger>
|
|
168
|
+
)}
|
|
169
|
+
</TitleWrapper>
|
|
170
|
+
{config?.description && <Description>{config?.description}</Description>}
|
|
171
|
+
<SettingsSelectUI
|
|
172
|
+
noHeader
|
|
173
|
+
config={config}
|
|
174
|
+
defaultValue={config?.value}
|
|
175
|
+
handleSelectChange={(value) => handleInputChange(value, config?.id)}
|
|
176
|
+
/>
|
|
177
|
+
</>
|
|
115
178
|
)
|
|
116
179
|
}
|
|
117
180
|
</div>
|
|
@@ -22,3 +22,22 @@ export const ToggleItemWrapper = styled.div`
|
|
|
22
22
|
background: ${props => props.theme?.colors.borderColor};
|
|
23
23
|
`}
|
|
24
24
|
`
|
|
25
|
+
|
|
26
|
+
export const TitleWrapper = styled.div`
|
|
27
|
+
display: flex;
|
|
28
|
+
align-items: center;
|
|
29
|
+
margin-bottom: 10px;
|
|
30
|
+
label {
|
|
31
|
+
margin-bottom: 0 !important;
|
|
32
|
+
margin-bottom: 10px;
|
|
33
|
+
font-size: 14px;
|
|
34
|
+
font-weight: 600;
|
|
35
|
+
}
|
|
36
|
+
button {
|
|
37
|
+
height: 25px;
|
|
38
|
+
svg {
|
|
39
|
+
width: 16px;
|
|
40
|
+
height: 16px;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
`
|
|
@@ -15,7 +15,8 @@ import {
|
|
|
15
15
|
export const SettingsSelectUI = (props) => {
|
|
16
16
|
const {
|
|
17
17
|
config,
|
|
18
|
-
handleSelectChange
|
|
18
|
+
handleSelectChange,
|
|
19
|
+
noHeader
|
|
19
20
|
} = props
|
|
20
21
|
|
|
21
22
|
const [, t] = useLanguage()
|
|
@@ -55,14 +56,16 @@ export const SettingsSelectUI = (props) => {
|
|
|
55
56
|
|
|
56
57
|
return (
|
|
57
58
|
<SettingsSelectContainer>
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
59
|
+
{!noHeader && (
|
|
60
|
+
<SelectHeader>
|
|
61
|
+
{
|
|
62
|
+
config?.name && (
|
|
63
|
+
<label>{config?.name}</label>
|
|
64
|
+
)
|
|
65
|
+
}
|
|
66
|
+
{config?.description && <p>{config?.description}</p>}
|
|
67
|
+
</SelectHeader>
|
|
68
|
+
)}
|
|
66
69
|
{
|
|
67
70
|
options ? (
|
|
68
71
|
<SelectContent>
|
|
@@ -7,6 +7,8 @@ import 'react-date-range/dist/theme/default.css'
|
|
|
7
7
|
import { Calendar4 } from 'react-bootstrap-icons'
|
|
8
8
|
import { Button } from '../../../styles'
|
|
9
9
|
import { Container, CalendarWrapper } from './styles'
|
|
10
|
+
import * as locales from 'react-date-range/dist/locale'
|
|
11
|
+
import { getLocale } from '../../../utils'
|
|
10
12
|
|
|
11
13
|
export const RangeCalendar = (props) => {
|
|
12
14
|
const {
|
|
@@ -18,7 +20,7 @@ export const RangeCalendar = (props) => {
|
|
|
18
20
|
minDate
|
|
19
21
|
} = props
|
|
20
22
|
|
|
21
|
-
const [, t] = useLanguage()
|
|
23
|
+
const [state, t] = useLanguage()
|
|
22
24
|
const [dateRange, setDateRange] = useState([
|
|
23
25
|
{
|
|
24
26
|
startDate: null,
|
|
@@ -111,6 +113,7 @@ export const RangeCalendar = (props) => {
|
|
|
111
113
|
<CalendarWrapper ref={calendarRef} isLeft={isLeft}>
|
|
112
114
|
{isSingleDate ? (
|
|
113
115
|
<Calendar
|
|
116
|
+
locale={getLocale(state?.language?.code, locales)}
|
|
114
117
|
date={date}
|
|
115
118
|
onChange={(date) => handleChangeSingleDate(date)}
|
|
116
119
|
minDate={minDate || new Date('1922-01-01')}
|
|
@@ -118,10 +121,13 @@ export const RangeCalendar = (props) => {
|
|
|
118
121
|
) : (
|
|
119
122
|
<DateRange
|
|
120
123
|
editableDateInputs
|
|
124
|
+
locale={getLocale(state?.language?.code, locales)}
|
|
121
125
|
onChange={item => handleChangeDates(item)}
|
|
122
126
|
moveRangeOnFirstSelection={false}
|
|
123
127
|
ranges={dateRange}
|
|
124
128
|
minDate={minDate || new Date('1922-01-01')}
|
|
129
|
+
startDatePlaceholder={t('EARLY', 'Early')}
|
|
130
|
+
endDatePlaceholder={t('CONTINUOUS', 'Continuous')}
|
|
125
131
|
/>
|
|
126
132
|
)}
|
|
127
133
|
</CalendarWrapper>
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
import React, { useRef, useEffect } from 'react'
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
2
|
+
import { Search, XCircle } from 'react-bootstrap-icons'
|
|
3
|
+
import {
|
|
4
|
+
SearchContainer
|
|
5
|
+
} from './styles'
|
|
4
6
|
|
|
5
7
|
export const SearchBar = (props) => {
|
|
6
8
|
const {
|
|
7
9
|
onSearch,
|
|
8
10
|
search,
|
|
9
11
|
placeholder,
|
|
10
|
-
isCustomLayout,
|
|
11
12
|
lazyLoad,
|
|
12
13
|
customClass
|
|
13
14
|
} = props
|
|
15
|
+
|
|
14
16
|
let timeout = null
|
|
15
17
|
let previousSearch
|
|
16
18
|
const el = useRef()
|
|
@@ -35,6 +37,11 @@ export const SearchBar = (props) => {
|
|
|
35
37
|
previousSearch = e.target.value
|
|
36
38
|
}
|
|
37
39
|
|
|
40
|
+
const handleClear = () => {
|
|
41
|
+
onSearch('')
|
|
42
|
+
el.current.value = ''
|
|
43
|
+
}
|
|
44
|
+
|
|
38
45
|
useEffect(() => {
|
|
39
46
|
el.current.onkeyup = onChangeSearch
|
|
40
47
|
}, [])
|
|
@@ -46,9 +53,11 @@ export const SearchBar = (props) => {
|
|
|
46
53
|
}, [search])
|
|
47
54
|
|
|
48
55
|
return (
|
|
49
|
-
<SearchContainer
|
|
50
|
-
<IosSearch />
|
|
56
|
+
<SearchContainer className={customClass || ''}>
|
|
51
57
|
<input type='text' ref={el} name='search' placeholder={placeholder} autoComplete='off' />
|
|
58
|
+
{el.current?.value
|
|
59
|
+
? <XCircle className='close' onClick={handleClear} />
|
|
60
|
+
: <Search />}
|
|
52
61
|
</SearchContainer>
|
|
53
62
|
)
|
|
54
63
|
}
|
|
@@ -2,30 +2,20 @@ import styled, { css } from 'styled-components'
|
|
|
2
2
|
|
|
3
3
|
export const SearchContainer = styled.div`
|
|
4
4
|
position: relative;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
position: absolute;
|
|
8
|
-
top: 10px;
|
|
9
|
-
${props => props.theme?.rtl ? css`
|
|
10
|
-
right: 15px;
|
|
11
|
-
` : css`
|
|
12
|
-
left: 15px;
|
|
13
|
-
`}
|
|
14
|
-
font-size: 20px;
|
|
15
|
-
color: ${props => props.theme.colors.lightGray};
|
|
16
|
-
}
|
|
5
|
+
display: flex;
|
|
6
|
+
align-items: center;
|
|
17
7
|
|
|
18
8
|
> input {
|
|
19
|
-
width:
|
|
9
|
+
width: 100%;
|
|
20
10
|
border: 1px solid ${props => props.theme.colors.borderColor} !important;
|
|
21
11
|
background: ${props => props.theme.colors?.backgroundPage || '#FFF'};
|
|
22
|
-
border-radius: 22px;
|
|
23
12
|
outline: none;
|
|
24
|
-
padding: 10px
|
|
13
|
+
padding: 10px 15px;
|
|
14
|
+
border-radius: 8px;
|
|
25
15
|
${props => props.theme?.rtl ? css`
|
|
26
|
-
padding-right: 40px;
|
|
27
|
-
` : css`
|
|
28
16
|
padding-left: 40px;
|
|
17
|
+
` : css`
|
|
18
|
+
padding-right: 40px;
|
|
29
19
|
`}
|
|
30
20
|
font-size: 14px;
|
|
31
21
|
color: ${props => props.theme.colors.headingColor};
|
|
@@ -35,23 +25,20 @@ export const SearchContainer = styled.div`
|
|
|
35
25
|
}
|
|
36
26
|
}
|
|
37
27
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
28
|
+
svg {
|
|
29
|
+
position: absolute;
|
|
30
|
+
${props => props.theme?.rtl ? css`
|
|
31
|
+
left: 15px;
|
|
32
|
+
` : css`
|
|
33
|
+
right: 15px;
|
|
34
|
+
`}
|
|
35
|
+
font-size: 16px;
|
|
36
|
+
color: ${props => props.theme.colors.lightGray};
|
|
44
37
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
right: initial;
|
|
48
|
-
left: 10px;
|
|
49
|
-
` : css`
|
|
50
|
-
left: initial;
|
|
51
|
-
right: 10px;
|
|
52
|
-
`}
|
|
38
|
+
&.close {
|
|
39
|
+
cursor: pointer;
|
|
53
40
|
}
|
|
54
|
-
|
|
41
|
+
}
|
|
55
42
|
|
|
56
43
|
@media (max-width: 1200px) {
|
|
57
44
|
flex: 1;
|
|
@@ -81,14 +81,20 @@ const SidebarMenuUI = (props) => {
|
|
|
81
81
|
pageName: 'drivers',
|
|
82
82
|
url: '/drivers'
|
|
83
83
|
},
|
|
84
|
+
// {
|
|
85
|
+
// id: 4,
|
|
86
|
+
// title: t('ALL_IN_ONE', 'All in one'),
|
|
87
|
+
// pageName: 'all_in_one',
|
|
88
|
+
// url: '/all-in-one'
|
|
89
|
+
// },
|
|
84
90
|
{
|
|
85
|
-
id:
|
|
91
|
+
id: 5,
|
|
86
92
|
title: t('APPOINTMENTS', 'Appointments'),
|
|
87
93
|
pageName: 'appointments',
|
|
88
94
|
url: '/appointments'
|
|
89
95
|
},
|
|
90
96
|
{
|
|
91
|
-
id:
|
|
97
|
+
id: 6,
|
|
92
98
|
title: t('GIFT_CARD_MANAGER', 'Gift card manager'),
|
|
93
99
|
pageName: 'giftCards',
|
|
94
100
|
url: '/gift-cards'
|
|
@@ -156,12 +162,12 @@ const SidebarMenuUI = (props) => {
|
|
|
156
162
|
pageName: 'driver_app',
|
|
157
163
|
url: '/my-products/driver-app'
|
|
158
164
|
},
|
|
159
|
-
{
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
},
|
|
165
|
+
// {
|
|
166
|
+
// id: 5,
|
|
167
|
+
// title: t('POS_APP', 'POS'),
|
|
168
|
+
// pageName: 'pos_app',
|
|
169
|
+
// url: '/my-products/pos-app'
|
|
170
|
+
// },
|
|
165
171
|
{
|
|
166
172
|
id: 6,
|
|
167
173
|
title: t('CALL_CENTER_APP', 'Call center'),
|
|
@@ -493,6 +499,7 @@ const SidebarMenuUI = (props) => {
|
|
|
493
499
|
location.pathname === '/orders' ||
|
|
494
500
|
location.pathname === '/deliveries' ||
|
|
495
501
|
location.pathname === '/drivers' ||
|
|
502
|
+
location.pathname === '/all-in-one' ||
|
|
496
503
|
location.pathname === '/appointments' ||
|
|
497
504
|
location.pathname === '/gift-cards'
|
|
498
505
|
}
|
|
@@ -5,7 +5,7 @@ import { UserDetails as UserDetailsController, useLanguage, useSession } from 'o
|
|
|
5
5
|
import { UserDetailsMenu } from '../UserDetailsMenu'
|
|
6
6
|
import { UserProfileForm } from '../UserProfileForm'
|
|
7
7
|
import { AddressList } from '../../Delivery'
|
|
8
|
-
import { OrdersManager } from '../../Orders'
|
|
8
|
+
import { OrdersManager } from '../../Orders/OrdersManager'
|
|
9
9
|
import { BusinessManagerBusinesses } from '../BusinessManagerBusinesses'
|
|
10
10
|
import { ArrowsAngleContract, ArrowsAngleExpand, Envelope, Phone, ThreeDots } from 'react-bootstrap-icons'
|
|
11
11
|
import { Dropdown, DropdownButton } from 'react-bootstrap'
|