ordering-ui-admin-external 1.25.0 → 1.26.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.
Files changed (163) hide show
  1. package/_bundles/main.css +1829 -1829
  2. package/_bundles/{ordering-ui-admin.f2522b983a000252b407.js → ordering-ui-admin.efcc125026af46873802.js} +2 -2
  3. package/_modules/components/BusinessIntelligence/AnalyticsCalendar/index.js +8 -1
  4. package/_modules/components/Delivery/DriversCompanyAddForm/styles.js +1 -1
  5. package/_modules/components/Delivery/DriversGroupAddForm/AdvancedLogisticsForm/index.js +68 -0
  6. package/_modules/components/Delivery/DriversGroupAddForm/AdvancedLogisticsForm/styles.js +42 -0
  7. package/_modules/components/Delivery/DriversGroupAddForm/BusinessesForm/index.js +89 -0
  8. package/_modules/components/Delivery/DriversGroupAddForm/BusinessesForm/styles.js +47 -0
  9. package/_modules/components/Delivery/DriversGroupAddForm/GeneralForm/index.js +106 -0
  10. package/_modules/components/Delivery/DriversGroupAddForm/GeneralForm/styles.js +16 -0
  11. package/_modules/components/Delivery/DriversGroupAddForm/PaymethodsForm/index.js +87 -0
  12. package/_modules/components/Delivery/DriversGroupAddForm/PaymethodsForm/styles.js +33 -0
  13. package/_modules/components/Delivery/DriversGroupAddForm/index.js +132 -0
  14. package/_modules/components/Delivery/DriversGroupAddForm/styles.js +18 -0
  15. package/_modules/components/Delivery/DriversGroupCompanies/styles.js +1 -1
  16. package/_modules/components/Delivery/DriversGroupDrivers/styles.js +1 -1
  17. package/_modules/components/Delivery/DriversGroupOrders/index.js +5 -5
  18. package/_modules/components/Delivery/DriversGroupsList/styles.js +1 -1
  19. package/_modules/components/Delivery/DriversGroupsListing/index.js +28 -7
  20. package/_modules/components/Delivery/DriversGroupsListing/styles.js +2 -2
  21. package/_modules/components/Delivery/UserAddForm/index.js +39 -6
  22. package/_modules/components/Delivery/UserAddForm/styles.js +28 -21
  23. package/_modules/components/Delivery/UserDetails/index.js +2 -2
  24. package/_modules/components/Home/HomePage/index.js +71 -3
  25. package/_modules/components/Home/HomePage/styles.js +27 -5
  26. package/_modules/components/Login/LoginForm/index.js +0 -5
  27. package/_modules/components/MyProducts/AdvancedLayouts/LayoutStyleGroup.js +46 -0
  28. package/_modules/components/MyProducts/AdvancedLayouts/index.js +213 -0
  29. package/_modules/components/MyProducts/AdvancedLayouts/styles.js +146 -0
  30. package/_modules/components/MyProducts/AdvancedSettings/index.js +12 -0
  31. package/_modules/components/MyProducts/CustomDomain/index.js +6 -4
  32. package/_modules/components/MyProducts/CustomDomain/styles.js +27 -9
  33. package/_modules/components/MyProducts/OrderingWebsite/index.js +47 -6
  34. package/_modules/components/MyProducts/OrderingWebsite/styles.js +20 -11
  35. package/_modules/components/Orders/AllInOne/DriversManager/index.js +128 -0
  36. package/_modules/components/Orders/AllInOne/DriversManager/styles.js +27 -0
  37. package/_modules/components/Orders/AllInOne/index.js +337 -0
  38. package/_modules/components/Orders/AllInOne/styles.js +67 -0
  39. package/_modules/components/Orders/CompanySelector/index.js +259 -0
  40. package/_modules/components/Orders/CompanySelector/styles.js +86 -0
  41. package/_modules/components/Orders/DriversBusyStatusFilter/styles.js +6 -3
  42. package/_modules/components/Orders/DriversList/index.js +3 -2
  43. package/_modules/components/Orders/DriversList/styles.js +2 -2
  44. package/_modules/components/Orders/DriversManager/index.js +2 -1
  45. package/_modules/components/Orders/DriversOnlineOfflineFilter/styles.js +5 -2
  46. package/_modules/components/Orders/OrderBill/RefundToWallet.js +1 -1
  47. package/_modules/components/Orders/OrderBill/index.js +17 -18
  48. package/_modules/components/Orders/OrderContactInformation/index.js +14 -3
  49. package/_modules/components/Orders/OrderDetails/index.js +1 -1
  50. package/_modules/components/Orders/OrderStatusSubFilter/styles.js +1 -1
  51. package/_modules/components/Orders/OrderToPrint/index.js +2 -1
  52. package/_modules/components/Orders/OrderToPrintTicket/index.js +4 -2
  53. package/_modules/components/Orders/OrdersContentHeader/index.js +2 -1
  54. package/_modules/components/Orders/OrdersListing/index.js +3 -1
  55. package/_modules/components/Orders/OrdersManager/index.js +5 -1
  56. package/_modules/components/Orders/OrdersTable/index.js +11 -10
  57. package/_modules/components/Orders/ProductItemAccordion/index.js +5 -9
  58. package/_modules/components/Orders/WebsocketStatus/index.js +119 -0
  59. package/_modules/components/Orders/WebsocketStatus/styles.js +65 -0
  60. package/_modules/components/Orders/index.js +7 -0
  61. package/_modules/components/Settings/IntegrationListing/Analytics.js +130 -0
  62. package/_modules/components/Settings/IntegrationListing/PaymentGateway.js +130 -0
  63. package/_modules/components/Settings/IntegrationListing/index.js +174 -31
  64. package/_modules/components/Settings/IntegrationListing/styles.js +42 -11
  65. package/_modules/components/Settings/NotificationSetting/index.js +25 -4
  66. package/_modules/components/Settings/NotificationSetting/styles.js +5 -3
  67. package/_modules/components/Settings/SettingsSelectUI/index.js +3 -2
  68. package/_modules/components/Shared/RangeCalendar/index.js +9 -1
  69. package/_modules/components/Shared/SearchBar/index.js +11 -6
  70. package/_modules/components/Shared/SearchBar/styles.js +9 -15
  71. package/_modules/components/SidebarMenu/index.js +19 -10
  72. package/_modules/components/Stores/ImporterHelpContent/index.js +1 -1
  73. package/_modules/components/Stores/ImportersButton/index.js +2 -2
  74. package/_modules/components/Users/UserDetails/index.js +2 -2
  75. package/_modules/config/currency.js +1017 -0
  76. package/_modules/index.js +6 -0
  77. package/_modules/utils/index.js +26 -3
  78. package/index-template.js +10 -0
  79. package/package.json +3 -2
  80. package/src/components/BusinessIntelligence/AnalyticsCalendar/index.js +7 -1
  81. package/src/components/Delivery/DriversCompanyAddForm/styles.js +0 -1
  82. package/src/components/Delivery/DriversGroupAddForm/AdvancedLogisticsForm/index.js +113 -0
  83. package/src/components/Delivery/DriversGroupAddForm/AdvancedLogisticsForm/styles.js +72 -0
  84. package/src/components/Delivery/DriversGroupAddForm/BusinessesForm/index.js +87 -0
  85. package/src/components/Delivery/DriversGroupAddForm/BusinessesForm/styles.js +87 -0
  86. package/src/components/Delivery/DriversGroupAddForm/GeneralForm/index.js +104 -0
  87. package/src/components/Delivery/DriversGroupAddForm/GeneralForm/styles.js +31 -0
  88. package/src/components/Delivery/DriversGroupAddForm/PaymethodsForm/index.js +82 -0
  89. package/src/components/Delivery/DriversGroupAddForm/PaymethodsForm/styles.js +46 -0
  90. package/src/components/Delivery/DriversGroupAddForm/index.js +130 -0
  91. package/src/components/Delivery/DriversGroupAddForm/styles.js +38 -0
  92. package/src/components/Delivery/DriversGroupCompanies/styles.js +1 -0
  93. package/src/components/Delivery/DriversGroupDrivers/styles.js +1 -0
  94. package/src/components/Delivery/DriversGroupOrders/index.js +2 -2
  95. package/src/components/Delivery/DriversGroupsList/styles.js +1 -1
  96. package/src/components/Delivery/DriversGroupsListing/index.js +35 -13
  97. package/src/components/Delivery/DriversGroupsListing/styles.js +1 -1
  98. package/src/components/Delivery/UserAddForm/index.js +34 -2
  99. package/src/components/Delivery/UserAddForm/styles.js +25 -0
  100. package/src/components/Delivery/UserDetails/index.js +1 -1
  101. package/src/components/Home/HomePage/index.js +215 -142
  102. package/src/components/Home/HomePage/styles.js +105 -1
  103. package/src/components/Login/LoginForm/index.js +0 -7
  104. package/src/components/MyProducts/AdvancedLayouts/LayoutStyleGroup.js +37 -0
  105. package/src/components/MyProducts/AdvancedLayouts/index.js +240 -0
  106. package/src/components/MyProducts/AdvancedLayouts/styles.js +388 -0
  107. package/src/components/MyProducts/AdvancedSettings/index.js +5 -2
  108. package/src/components/MyProducts/CustomDomain/index.js +35 -16
  109. package/src/components/MyProducts/CustomDomain/styles.js +73 -1
  110. package/src/components/MyProducts/OrderingWebsite/index.js +97 -37
  111. package/src/components/MyProducts/OrderingWebsite/styles.js +38 -0
  112. package/src/components/Orders/AllInOne/DriversManager/index.js +137 -0
  113. package/src/components/Orders/AllInOne/DriversManager/styles.js +51 -0
  114. package/src/components/Orders/AllInOne/index.js +339 -0
  115. package/src/components/Orders/AllInOne/styles.js +144 -0
  116. package/src/components/Orders/CompanySelector/index.js +250 -0
  117. package/src/components/Orders/CompanySelector/styles.js +142 -0
  118. package/src/components/Orders/DriversBusyStatusFilter/styles.js +7 -1
  119. package/src/components/Orders/DriversList/index.js +7 -4
  120. package/src/components/Orders/DriversList/styles.js +2 -1
  121. package/src/components/Orders/DriversManager/index.js +2 -0
  122. package/src/components/Orders/DriversOnlineOfflineFilter/styles.js +8 -1
  123. package/src/components/Orders/OrderBill/RefundToWallet.js +12 -10
  124. package/src/components/Orders/OrderBill/index.js +18 -18
  125. package/src/components/Orders/OrderContactInformation/index.js +20 -1
  126. package/src/components/Orders/OrderDetails/index.js +8 -8
  127. package/src/components/Orders/OrderStatusSubFilter/styles.js +1 -1
  128. package/src/components/Orders/OrderToPrint/index.js +2 -1
  129. package/src/components/Orders/OrderToPrintTicket/index.js +160 -173
  130. package/src/components/Orders/OrdersContentHeader/index.js +2 -0
  131. package/src/components/Orders/OrdersListing/index.js +2 -0
  132. package/src/components/Orders/OrdersManager/index.js +2 -2
  133. package/src/components/Orders/OrdersTable/index.js +39 -25
  134. package/src/components/Orders/ProductItemAccordion/index.js +3 -3
  135. package/src/components/Orders/WebsocketStatus/index.js +138 -0
  136. package/src/components/Orders/WebsocketStatus/styles.js +171 -0
  137. package/src/components/Orders/index.js +2 -0
  138. package/src/components/Settings/IntegrationListing/Analytics.js +127 -0
  139. package/src/components/Settings/IntegrationListing/PaymentGateway.js +126 -0
  140. package/src/components/Settings/IntegrationListing/index.js +189 -96
  141. package/src/components/Settings/IntegrationListing/styles.js +90 -1
  142. package/src/components/Settings/NotificationSetting/index.js +73 -10
  143. package/src/components/Settings/NotificationSetting/styles.js +19 -0
  144. package/src/components/Settings/SettingsSelectUI/index.js +12 -9
  145. package/src/components/Shared/RangeCalendar/index.js +7 -1
  146. package/src/components/Shared/SearchBar/index.js +14 -5
  147. package/src/components/Shared/SearchBar/styles.js +19 -32
  148. package/src/components/SidebarMenu/index.js +15 -8
  149. package/src/components/Stores/ImporterHelpContent/index.js +17 -17
  150. package/src/components/Stores/ImportersButton/index.js +2 -2
  151. package/src/components/Users/UserDetails/index.js +1 -1
  152. package/src/config/currency.js +1010 -0
  153. package/src/index.js +2 -0
  154. package/src/utils/index.js +21 -0
  155. package/template/app.js +4 -0
  156. package/template/assets/images/preview/franchise.png +0 -0
  157. package/template/assets/images/preview/marketplace.png +0 -0
  158. package/template/assets/images/preview/single-store.png +0 -0
  159. package/template/components/AutologinParams/index.js +1 -3
  160. package/template/components/ListenPageChanges/index.js +1 -0
  161. package/template/helmetdata.json +7 -0
  162. package/template/pages/AllInOne/index.js +23 -0
  163. /package/_bundles/{ordering-ui-admin.f2522b983a000252b407.js.LICENSE.txt → ordering-ui-admin.efcc125026af46873802.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 { NotificationSettingContainer, AccordionTitle, GeneralWrapper, ToggleItemWrapper } from './styles'
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
- <label>{config?.name}</label>
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
- <SettingsSelectUI
111
- config={config}
112
- defaultValue={config?.value}
113
- handleSelectChange={(value) => handleInputChange(value, config?.id)}
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
- <SelectHeader>
59
- {
60
- config?.name && (
61
- <label>{config?.name}</label>
62
- )
63
- }
64
- {config?.description && <p>{config?.description}</p>}
65
- </SelectHeader>
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 { SearchContainer } from './styles'
3
- import IosSearch from '@meronex/icons/ios/IosSearch'
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 isCustomLayout={isCustomLayout} className={customClass || ''}>
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
- svg {
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: 250px;
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 8px;
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
- ${({ isCustomLayout }) => isCustomLayout && css`
39
- input {
40
- border-radius: 8px;
41
- width: 100%;
42
- padding: 10px 15px;
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
- svg {
46
- ${props => props.theme?.rtl ? css`
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: 4,
91
+ id: 5,
86
92
  title: t('APPOINTMENTS', 'Appointments'),
87
93
  pageName: 'appointments',
88
94
  url: '/appointments'
89
95
  },
90
96
  {
91
- id: 5,
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
- id: 5,
161
- title: t('POS_APP', 'POS'),
162
- pageName: 'pos_app',
163
- url: '/my-products/pos-app'
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
  }
@@ -14,38 +14,38 @@ export const ImporterHelpContent = (props) => {
14
14
  return (
15
15
  <>
16
16
  <SubjectTitle>{t('HOW_TO_USE_IMPORTER', 'How to use the importer?')}</SubjectTitle>
17
- <TitleContent>Follow the next steps to use our Importer system.</TitleContent>
17
+ <TitleContent>{t('HOW_TO_USE_IMPORTER_CONTENT', 'Follow the next steps to use our Importer system.')}</TitleContent>
18
18
  <TitleWrapper>
19
- <TitleHeader><TitleNumber>1.</TitleNumber> Select your importer.</TitleHeader>
20
- <TitleContent>Using our list of default importers, you can select the importer that you require according to your needs.</TitleContent>
19
+ <TitleHeader><TitleNumber>{t('IMPORTER_INSTRUCTIONS_1_NUM', '1.')}</TitleNumber>{t('IMPORTER_INSTRUCTIONS_1', 'Select your importer.')}</TitleHeader>
20
+ <TitleContent>{t('IMPORTER_INSTRUCTIONS_1_CONTENT', 'Using our list of default importers, you can select the importer that you require according to your needs.')}</TitleContent>
21
21
  </TitleWrapper>
22
22
  <TitleWrapper>
23
- <TitleHeader><TitleNumber>2.</TitleNumber> Download the Sample CSV.</TitleHeader>
24
- <TitleContent>Download the CSV that is inside of our default importers list and your importer selection to be able to edit it.</TitleContent>
23
+ <TitleHeader><TitleNumber>{t('IMPORTER_INSTRUCTIONS_2_NUM', '2.')}</TitleNumber>{t('IMPORTER_INSTRUCTIONS_2', 'Download the Sample CSV.')}</TitleHeader>
24
+ <TitleContent>{t('IMPORTER_INSTRUCTIONS_2_CONTENT', 'Download the CSV that is inside of our default importers list and your importer selection to be able to edit it.')}</TitleContent>
25
25
  </TitleWrapper>
26
26
  <TitleWrapper>
27
- <TitleHeader><TitleNumber>3.</TitleNumber> Prepare your importer.</TitleHeader>
28
- <TitleContent>Using our list of default importers, you can have an idea of the required fields to import/update according to your needs. Please consider that all importers start with 0(this is considered the first column) to N number of columns.</TitleContent>
27
+ <TitleHeader><TitleNumber>{t('IMPORTER_INSTRUCTIONS_3_NUM', '3.')}</TitleNumber>{t('IMPORTER_INSTRUCTIONS_3', 'Prepare your importer.')}</TitleHeader>
28
+ <TitleContent>{t('IMPORTER_INSTRUCTIONS_3_CONTENT', 'Using our list of default importers, you can have an idea of the required fields to import/update according to your needs. Please consider that all importers start with 0(this is considered the first column) to N number of columns.')}</TitleContent>
29
29
  </TitleWrapper>
30
30
  <TitleWrapper>
31
- <TitleHeader><TitleNumber>4.</TitleNumber> Prepare your CSV file.</TitleHeader>
32
- <TitleContent>Verify that your CSV file has the same fields of your importer and in the same order, please consider that like the importer, this needs to stars with 0(the first column) to N number of columns.</TitleContent>
31
+ <TitleHeader><TitleNumber>{t('IMPORTER_INSTRUCTIONS_4_NUM', '4.')}</TitleNumber>{t('IMPORTER_INSTRUCTIONS_4', 'Prepare your CSV file.')}</TitleHeader>
32
+ <TitleContent>{t('IMPORTER_INSTRUCTIONS_4_CONTENT', 'Verify that your CSV file has the same fields of your importer and in the same order, please consider that like the importer, this needs to stars with 0(the first column) to N number of columns.')}</TitleContent>
33
33
  </TitleWrapper>
34
34
  <TitleWrapper>
35
- <TitleHeader><TitleNumber>5.</TitleNumber> Import fields.</TitleHeader>
36
- <TitleContent>Open your recently created importer and verify that has the same fields and order of your CSV file.</TitleContent>
35
+ <TitleHeader><TitleNumber>{t('IMPORTER_INSTRUCTIONS_5_NUM', '5.')}</TitleNumber>{t('IMPORTER_INSTRUCTIONS_5', 'Import fields.')}</TitleHeader>
36
+ <TitleContent>{t('IMPORTER_INSTRUCTIONS_5_CONTENT', 'Open your recently created importer and verify that has the same fields and order of your CSV file.')}</TitleContent>
37
37
  </TitleWrapper>
38
38
  <TitleWrapper>
39
- <TitleHeader><TitleNumber>6.</TitleNumber> Update existing importer fields.</TitleHeader>
40
- <TitleContent>Open the importer that you want to use to update fields of your dashboard. You can use the same CSV file to import new fields and update already created fields.</TitleContent>
39
+ <TitleHeader><TitleNumber>{t('IMPORTER_INSTRUCTIONS_6_NUM', '6.')}</TitleNumber>{t('IMPORTER_INSTRUCTIONS_6', 'Update existing importer fields.')}</TitleHeader>
40
+ <TitleContent>{t('IMPORTER_INSTRUCTIONS_6_CONTENT', 'Open the importer that you want to use to update fields of your dashboard. You can use the same CSV file to import new fields and update already created fields.')}</TitleContent>
41
41
  </TitleWrapper>
42
42
  <TitleWrapper>
43
- <TitleHeader><TitleNumber>7.</TitleNumber> Upload your CSV.</TitleHeader>
44
- <TitleContent>Select your recently created importer from the importer list and upload your edited CSV file with the upload button.</TitleContent>
43
+ <TitleHeader><TitleNumber>{t('IMPORTER_INSTRUCTIONS_7_NUM', '7.')}</TitleNumber>{t('IMPORTER_INSTRUCTIONS_7', 'Upload your CSV.')}</TitleHeader>
44
+ <TitleContent>{t('IMPORTER_INSTRUCTIONS_8_CONTENT', 'Select your recently created importer from the importer list and upload your edited CSV file with the upload button.')}</TitleContent>
45
45
  </TitleWrapper>
46
46
  <TitleWrapper>
47
- <TitleHeader><TitleNumber>8.</TitleNumber> Verify the import.</TitleHeader>
48
- <TitleContent>Wait until the import process ends and verify the changes in the section that you select to use your importer.</TitleContent>
47
+ <TitleHeader><TitleNumber>{t('IMPORTER_INSTRUCTIONS_8_NUM', '8.')}</TitleNumber>{t('IMPORTER_INSTRUCTIONS_8', 'Verify the import.')}</TitleHeader>
48
+ <TitleContent>{t('IMPORTER_INSTRUCTIONS_8_CONTENT', 'Wait until the import process ends and verify the changes in the section that you select to use your importer.')}</TitleContent>
49
49
  </TitleWrapper>
50
50
  </>
51
51
  )
@@ -16,7 +16,7 @@ export const ImportersButton = (props) => {
16
16
  const [extraOpen, setExtraOpen] = useState(false)
17
17
 
18
18
  const handleOpenImporters = () => {
19
- setOpenSidebar('importer')
19
+ setOpenSidebar && setOpenSidebar('importer')
20
20
  setOpenImporters(true)
21
21
 
22
22
  history.replace(`${location.pathname}?header=importers`)
@@ -49,7 +49,7 @@ export const ImportersButton = (props) => {
49
49
  {openImporters && (
50
50
  <SideBar
51
51
  defaultSideBarWidth={extraOpen ? 1000 : 500}
52
- moveDistance={extraOpen ? 500 : 0}
52
+ moveDistance={extraOpen ? 500 : 20}
53
53
  open={openImporters}
54
54
  onClose={handleCloseImporters}
55
55
  showExpandIcon
@@ -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'