ordering-ui-admin-external 1.30.7 → 1.31.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/{ordering-ui-admin.a29dbc53a1f823ce0ce5.js → ordering-ui-admin.b84e1f62fd043e740aba.js} +2 -2
- package/_modules/components/BusinessIntelligence/AnalyticsDriverOrders/index.js +80 -47
- package/_modules/components/BusinessIntelligence/BusinessAnalytics/index.js +2 -1
- package/_modules/components/BusinessIntelligence/BusinessAnalytics/styles.js +6 -4
- package/_modules/components/BusinessIntelligence/ReportsAverageSales/index.js +3 -2
- package/_modules/components/BusinessIntelligence/ReportsAverageSales/styles.js +13 -3
- package/_modules/components/BusinessIntelligence/ReportsBusinessDistance/index.js +3 -2
- package/_modules/components/BusinessIntelligence/ReportsBusinessDistance/styles.js +13 -3
- package/_modules/components/BusinessIntelligence/ReportsBusinessSpend/index.js +3 -2
- package/_modules/components/BusinessIntelligence/ReportsBusinessSpend/styles.js +13 -3
- package/_modules/components/BusinessIntelligence/ReportsCustomer/index.js +3 -2
- package/_modules/components/BusinessIntelligence/ReportsCustomer/styles.js +13 -3
- package/_modules/components/BusinessIntelligence/ReportsDriverDistance/index.js +4 -3
- package/_modules/components/BusinessIntelligence/ReportsDriverDistance/styles.js +13 -3
- package/_modules/components/BusinessIntelligence/ReportsDriverOrder/index.js +3 -2
- package/_modules/components/BusinessIntelligence/ReportsDriverOrder/styles.js +13 -3
- package/_modules/components/BusinessIntelligence/ReportsDriverOrderTime/index.js +3 -2
- package/_modules/components/BusinessIntelligence/ReportsDriverOrderTime/styles.js +13 -3
- package/_modules/components/BusinessIntelligence/ReportsDriverSchedule/index.js +4 -3
- package/_modules/components/BusinessIntelligence/ReportsDriverSchedule/styles.js +13 -3
- package/_modules/components/BusinessIntelligence/ReportsDriverSpend/index.js +3 -2
- package/_modules/components/BusinessIntelligence/ReportsDriverSpend/styles.js +13 -3
- package/_modules/components/BusinessIntelligence/ReportsGeneralSales/index.js +3 -2
- package/_modules/components/BusinessIntelligence/ReportsGeneralSales/styles.js +13 -3
- package/_modules/components/BusinessIntelligence/ReportsHeatMap/index.js +3 -2
- package/_modules/components/BusinessIntelligence/ReportsHeatMap/styles.js +13 -3
- package/_modules/components/BusinessIntelligence/ReportsOrderDistance/index.js +3 -2
- package/_modules/components/BusinessIntelligence/ReportsOrderDistance/styles.js +13 -3
- package/_modules/components/BusinessIntelligence/ReportsOrderStatus/index.js +4 -3
- package/_modules/components/BusinessIntelligence/ReportsOrderStatus/styles.js +13 -3
- package/_modules/components/BusinessIntelligence/ReportsOrders/index.js +3 -2
- package/_modules/components/BusinessIntelligence/ReportsOrders/styles.js +13 -3
- package/_modules/components/BusinessIntelligence/ReportsPaymethodSales/index.js +3 -2
- package/_modules/components/BusinessIntelligence/ReportsPaymethodSales/styles.js +13 -3
- package/_modules/components/BusinessIntelligence/ReportsSaleAndCategory/index.js +3 -2
- package/_modules/components/BusinessIntelligence/ReportsSaleAndCategory/styles.js +13 -3
- package/_modules/components/BusinessIntelligence/ReportsSales/index.js +3 -2
- package/_modules/components/BusinessIntelligence/ReportsSales/styles.js +13 -3
- package/_modules/components/BusinessIntelligence/ReportsSpentTIme/index.js +3 -2
- package/_modules/components/BusinessIntelligence/ReportsSpentTIme/styles.js +13 -3
- package/_modules/components/BusinessIntelligence/ReportsTopDrivers/index.js +3 -2
- package/_modules/components/BusinessIntelligence/ReportsTopDrivers/styles.js +13 -3
- package/_modules/components/BusinessIntelligence/ReportsUsers/index.js +3 -2
- package/_modules/components/BusinessIntelligence/ReportsUsers/styles.js +13 -3
- package/_modules/components/Delivery/AddressList/index.js +15 -5
- package/_modules/components/Delivery/DriversGroupAutoassign/index.js +14 -7
- package/_modules/components/Delivery/DriversGroupAutoassign/styles.js +5 -3
- package/_modules/components/Home/HomePage/index.js +3 -2
- package/_modules/components/MyProducts/OrderingWebsite/index.js +25 -18
- package/_modules/components/MyProducts/OrderingWebsite/styles.js +1 -1
- package/_modules/components/Orders/AllInOne/index.js +15 -6
- package/_modules/components/Orders/CreateCustomOrder/CustomOrderDetails/index.js +102 -9
- package/_modules/components/Orders/CreateCustomOrder/CustomOrderDetails/styles.js +19 -3
- package/_modules/components/Orders/CreateCustomOrder/OrderTypeSelector/index.js +1 -1
- package/_modules/components/Orders/CreateCustomOrder/SelectCustomer/index.js +21 -9
- package/_modules/components/Orders/CreateCustomOrder/SelectCustomer/styles.js +8 -5
- package/_modules/components/Orders/DeliveriesManager/index.js +11 -2
- package/_modules/components/Orders/DeliveryDashboard/index.js +6 -6
- package/_modules/components/Orders/OrderNotification/index.js +43 -14
- package/_modules/components/Orders/OrderNotification/styles.js +18 -3
- package/_modules/components/Orders/OrderStatusFilterBar/index.js +6 -6
- package/_modules/components/Orders/OrdersContentHeader/index.js +11 -2
- package/_modules/components/Orders/OrdersContentHeader/styles.js +20 -4
- package/_modules/components/Orders/OrdersDashboardList/index.js +34 -5
- package/_modules/components/Orders/OrdersFilterGroup/index.js +18 -1
- package/_modules/components/Orders/OrdersListing/index.js +6 -0
- package/_modules/components/Orders/OrdersManager/index.js +16 -7
- package/_modules/components/Orders/WebsocketStatus/index.js +6 -1
- package/_modules/components/Settings/WebhookListSelector/index.js +6 -0
- package/_modules/components/Shared/InputPhoneNumber/index.js +2 -3
- package/_modules/components/Stores/BusinessAdd/ReceiveOrders/index.js +6 -2
- package/_modules/components/Stores/BusinessDeviceDetail/index.js +1 -1
- package/_modules/components/Stores/BusinessProductsListing/index.js +5 -1
- package/_modules/components/Stores/BusinessSummary/index.js +7 -4
- package/_modules/components/Stores/BusinessWebhooks/index.js +6 -0
- package/_modules/components/Stores/ProductExtraOptionDetails/index.js +6 -1
- package/_modules/components/Stores/ProductExtraOptions/index.js +8 -2
- package/_modules/components/Stores/ProductExtraSuboption/index.js +6 -1
- package/_modules/components/Stores/ProductExtras/index.js +8 -3
- package/_modules/components/Stores/ProductSummary/index.js +4 -1
- package/_modules/components/Users/UserAddForm/index.js +0 -2
- package/package.json +2 -2
- package/src/components/BusinessIntelligence/AnalyticsDriverOrders/index.js +39 -17
- package/src/components/BusinessIntelligence/BusinessAnalytics/index.js +6 -1
- package/src/components/BusinessIntelligence/BusinessAnalytics/styles.js +2 -0
- package/src/components/BusinessIntelligence/ReportsAverageSales/index.js +15 -7
- package/src/components/BusinessIntelligence/ReportsAverageSales/styles.js +34 -0
- package/src/components/BusinessIntelligence/ReportsBusinessDistance/index.js +9 -1
- package/src/components/BusinessIntelligence/ReportsBusinessDistance/styles.js +34 -0
- package/src/components/BusinessIntelligence/ReportsBusinessSpend/index.js +9 -1
- package/src/components/BusinessIntelligence/ReportsBusinessSpend/styles.js +34 -0
- package/src/components/BusinessIntelligence/ReportsCustomer/index.js +15 -7
- package/src/components/BusinessIntelligence/ReportsCustomer/styles.js +34 -0
- package/src/components/BusinessIntelligence/ReportsDriverDistance/index.js +10 -2
- package/src/components/BusinessIntelligence/ReportsDriverDistance/styles.js +34 -0
- package/src/components/BusinessIntelligence/ReportsDriverOrder/index.js +9 -1
- package/src/components/BusinessIntelligence/ReportsDriverOrder/styles.js +34 -0
- package/src/components/BusinessIntelligence/ReportsDriverOrderTime/index.js +9 -1
- package/src/components/BusinessIntelligence/ReportsDriverOrderTime/styles.js +34 -0
- package/src/components/BusinessIntelligence/ReportsDriverSchedule/index.js +16 -8
- package/src/components/BusinessIntelligence/ReportsDriverSchedule/styles.js +34 -0
- package/src/components/BusinessIntelligence/ReportsDriverSpend/index.js +9 -1
- package/src/components/BusinessIntelligence/ReportsDriverSpend/styles.js +34 -0
- package/src/components/BusinessIntelligence/ReportsGeneralSales/index.js +9 -1
- package/src/components/BusinessIntelligence/ReportsGeneralSales/styles.js +34 -0
- package/src/components/BusinessIntelligence/ReportsHeatMap/index.js +9 -1
- package/src/components/BusinessIntelligence/ReportsHeatMap/styles.js +34 -0
- package/src/components/BusinessIntelligence/ReportsOrderDistance/index.js +10 -1
- package/src/components/BusinessIntelligence/ReportsOrderDistance/styles.js +34 -0
- package/src/components/BusinessIntelligence/ReportsOrderStatus/index.js +10 -2
- package/src/components/BusinessIntelligence/ReportsOrderStatus/styles.js +34 -0
- package/src/components/BusinessIntelligence/ReportsOrders/index.js +9 -1
- package/src/components/BusinessIntelligence/ReportsOrders/styles.js +34 -0
- package/src/components/BusinessIntelligence/ReportsPaymethodSales/index.js +9 -1
- package/src/components/BusinessIntelligence/ReportsPaymethodSales/styles.js +34 -0
- package/src/components/BusinessIntelligence/ReportsSaleAndCategory/index.js +9 -1
- package/src/components/BusinessIntelligence/ReportsSaleAndCategory/styles.js +34 -0
- package/src/components/BusinessIntelligence/ReportsSales/index.js +9 -1
- package/src/components/BusinessIntelligence/ReportsSales/styles.js +34 -0
- package/src/components/BusinessIntelligence/ReportsSpentTIme/index.js +15 -7
- package/src/components/BusinessIntelligence/ReportsSpentTIme/styles.js +34 -0
- package/src/components/BusinessIntelligence/ReportsTopDrivers/index.js +9 -2
- package/src/components/BusinessIntelligence/ReportsTopDrivers/styles.js +34 -0
- package/src/components/BusinessIntelligence/ReportsUsers/index.js +15 -7
- package/src/components/BusinessIntelligence/ReportsUsers/styles.js +34 -0
- package/src/components/Delivery/AddressList/index.js +11 -1
- package/src/components/Delivery/DriversGroupAutoassign/index.js +17 -6
- package/src/components/Delivery/DriversGroupAutoassign/styles.js +10 -0
- package/src/components/Home/HomePage/index.js +5 -1
- package/src/components/MyProducts/OrderingWebsite/index.js +25 -12
- package/src/components/MyProducts/OrderingWebsite/styles.js +0 -2
- package/src/components/Orders/AllInOne/index.js +8 -2
- package/src/components/Orders/CreateCustomOrder/CustomOrderDetails/index.js +118 -6
- package/src/components/Orders/CreateCustomOrder/CustomOrderDetails/styles.js +56 -0
- package/src/components/Orders/CreateCustomOrder/OrderTypeSelector/index.js +1 -1
- package/src/components/Orders/CreateCustomOrder/SelectCustomer/index.js +19 -11
- package/src/components/Orders/CreateCustomOrder/SelectCustomer/styles.js +3 -0
- package/src/components/Orders/DeliveriesManager/index.js +8 -2
- package/src/components/Orders/DeliveryDashboard/index.js +4 -4
- package/src/components/Orders/OrderNotification/index.js +31 -5
- package/src/components/Orders/OrderNotification/styles.js +37 -0
- package/src/components/Orders/OrderStatusFilterBar/index.js +10 -9
- package/src/components/Orders/OrdersContentHeader/index.js +17 -3
- package/src/components/Orders/OrdersContentHeader/styles.js +54 -0
- package/src/components/Orders/OrdersDashboardList/index.js +6 -1
- package/src/components/Orders/OrdersFilterGroup/index.js +16 -0
- package/src/components/Orders/OrdersListing/index.js +7 -0
- package/src/components/Orders/OrdersManager/index.js +11 -3
- package/src/components/Orders/WebsocketStatus/index.js +5 -2
- package/src/components/Settings/WebhookListSelector/index.js +3 -1
- package/src/components/Shared/InputPhoneNumber/index.js +2 -3
- package/src/components/Stores/BusinessAdd/ReceiveOrders/index.js +16 -12
- package/src/components/Stores/BusinessDeviceDetail/index.js +1 -1
- package/src/components/Stores/BusinessProductsListing/index.js +4 -0
- package/src/components/Stores/BusinessSummary/index.js +21 -15
- package/src/components/Stores/BusinessWebhooks/index.js +3 -1
- package/src/components/Stores/ProductExtraOptionDetails/index.js +8 -0
- package/src/components/Stores/ProductExtraOptions/index.js +10 -1
- package/src/components/Stores/ProductExtraSuboption/index.js +7 -1
- package/src/components/Stores/ProductExtras/index.js +6 -1
- package/src/components/Stores/ProductSummary/index.js +7 -1
- package/src/components/Users/UserAddForm/index.js +0 -2
- package/template/config.json +1 -1
- /package/_bundles/{ordering-ui-admin.a29dbc53a1f823ce0ce5.js.LICENSE.txt → ordering-ui-admin.b84e1f62fd043e740aba.js.LICENSE.txt} +0 -0
|
@@ -9,6 +9,7 @@ import { AnalyticsBusinessFilter } from '../AnalyticsBusinessFilter'
|
|
|
9
9
|
import { ReportsOrderTypeFilter } from '../ReportsOrderTypeFilter'
|
|
10
10
|
import { ReportsBrandFilter } from '../ReportsBrandFilter'
|
|
11
11
|
import { CountryFilter } from '../CountryFilter'
|
|
12
|
+
import { AnalyticsFilterTimeZone } from '../AnalyticsFilterTimeZone'
|
|
12
13
|
import {
|
|
13
14
|
OrderStatusContainer,
|
|
14
15
|
Title,
|
|
@@ -22,7 +23,9 @@ import {
|
|
|
22
23
|
Tbody,
|
|
23
24
|
Tfoot,
|
|
24
25
|
TableWrapper,
|
|
25
|
-
EmptyContent
|
|
26
|
+
EmptyContent,
|
|
27
|
+
AnalyticsTimeZoneWrapper,
|
|
28
|
+
TimeZoneAndCalendar
|
|
26
29
|
} from './styles'
|
|
27
30
|
|
|
28
31
|
const ReportsOrderStatusUI = (props) => {
|
|
@@ -139,12 +142,17 @@ const ReportsOrderStatusUI = (props) => {
|
|
|
139
142
|
</Button>
|
|
140
143
|
)}
|
|
141
144
|
</BrandBusinessWrapper>
|
|
145
|
+
<TimeZoneAndCalendar>
|
|
146
|
+
<AnalyticsTimeZoneWrapper>
|
|
147
|
+
<AnalyticsFilterTimeZone {...props} />
|
|
148
|
+
</AnalyticsTimeZoneWrapper>
|
|
142
149
|
<CalendarWrapper>
|
|
143
150
|
<AnalyticsCalendar
|
|
144
151
|
handleChangeDate={handleChangeDate}
|
|
145
152
|
defaultValue={filterList}
|
|
146
153
|
/>
|
|
147
154
|
</CalendarWrapper>
|
|
155
|
+
</TimeZoneAndCalendar>
|
|
148
156
|
</ButtonActionList>
|
|
149
157
|
<OrderStatusTableWrapper>
|
|
150
158
|
<DistanceTitleBlock active={reportData?.content?.body?.rows?.length > 0}>
|
|
@@ -307,7 +315,7 @@ const ReportsOrderStatusUI = (props) => {
|
|
|
307
315
|
/>
|
|
308
316
|
</OrderStatusContainer>
|
|
309
317
|
<Alert
|
|
310
|
-
title={t('
|
|
318
|
+
title={t('ORDER_STATUS_TEXT', 'Order status')}
|
|
311
319
|
content={alertState.content}
|
|
312
320
|
acceptText={t('ACCEPT', 'Accept')}
|
|
313
321
|
open={alertState.open}
|
|
@@ -204,3 +204,37 @@ export const EmptyContent = styled.div`
|
|
|
204
204
|
justify-content: center;
|
|
205
205
|
padding: 10px;
|
|
206
206
|
`
|
|
207
|
+
|
|
208
|
+
export const AnalyticsTimeZoneWrapper = styled.div`
|
|
209
|
+
width: 100%;
|
|
210
|
+
button {
|
|
211
|
+
margin-top: 5px;
|
|
212
|
+
background: ${props => props.theme.colors.secundary};
|
|
213
|
+
border-radius: 7.6px;
|
|
214
|
+
padding: 7px 15px;
|
|
215
|
+
font-size: 14px;
|
|
216
|
+
color: ${props => props.theme.colors.secundaryContrast};
|
|
217
|
+
border: none;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
@media (min-width: 600px) {
|
|
221
|
+
width: fit-content;
|
|
222
|
+
margin-left: 10px;
|
|
223
|
+
${props => props.theme.rtl && css`
|
|
224
|
+
margin-right: 10px;
|
|
225
|
+
margin-left: 0;
|
|
226
|
+
`}
|
|
227
|
+
}
|
|
228
|
+
`
|
|
229
|
+
|
|
230
|
+
export const TimeZoneAndCalendar = styled.div`
|
|
231
|
+
display: flex;
|
|
232
|
+
align-items: center;
|
|
233
|
+
flex-direction: column;
|
|
234
|
+
width: 100%;
|
|
235
|
+
|
|
236
|
+
@media (min-width: 600px) {
|
|
237
|
+
flex-direction: row;
|
|
238
|
+
width: fit-content;
|
|
239
|
+
}
|
|
240
|
+
`
|
|
@@ -13,6 +13,7 @@ import { AnalyticsBusinessFilter } from '../AnalyticsBusinessFilter'
|
|
|
13
13
|
import { ReportsBrandFilter } from '../ReportsBrandFilter'
|
|
14
14
|
import { CountryFilter } from '../CountryFilter'
|
|
15
15
|
import { Modal } from '../../Shared'
|
|
16
|
+
import { AnalyticsFilterTimeZone } from '../AnalyticsFilterTimeZone'
|
|
16
17
|
|
|
17
18
|
import {
|
|
18
19
|
ReportsOrdersContainer,
|
|
@@ -24,7 +25,9 @@ import {
|
|
|
24
25
|
ChartTitleBlock,
|
|
25
26
|
ChartWrapper,
|
|
26
27
|
EmptyContent,
|
|
27
|
-
ChartFooterContainer
|
|
28
|
+
ChartFooterContainer,
|
|
29
|
+
AnalyticsTimeZoneWrapper,
|
|
30
|
+
TimeZoneAndCalendar
|
|
28
31
|
} from './styles'
|
|
29
32
|
|
|
30
33
|
const ReportsOrdersUI = (props) => {
|
|
@@ -159,12 +162,17 @@ const ReportsOrdersUI = (props) => {
|
|
|
159
162
|
</Button>
|
|
160
163
|
)}
|
|
161
164
|
</BrandBusinessWrapper>
|
|
165
|
+
<TimeZoneAndCalendar>
|
|
166
|
+
<AnalyticsTimeZoneWrapper>
|
|
167
|
+
<AnalyticsFilterTimeZone {...props} />
|
|
168
|
+
</AnalyticsTimeZoneWrapper>
|
|
162
169
|
<CalendarWrapper>
|
|
163
170
|
<AnalyticsCalendar
|
|
164
171
|
handleChangeDate={handleChangeDate}
|
|
165
172
|
defaultValue={filterList}
|
|
166
173
|
/>
|
|
167
174
|
</CalendarWrapper>
|
|
175
|
+
</TimeZoneAndCalendar>
|
|
168
176
|
</ButtonActionList>
|
|
169
177
|
<ChartBlockWrapper>
|
|
170
178
|
<ChartTitleBlock active={reportData?.content?.dataset?.dataset?.data?.length > 0}>
|
|
@@ -151,3 +151,37 @@ export const ChartFooterContainer = styled.div`
|
|
|
151
151
|
margin: 0;
|
|
152
152
|
}
|
|
153
153
|
`
|
|
154
|
+
|
|
155
|
+
export const AnalyticsTimeZoneWrapper = styled.div`
|
|
156
|
+
width: 100%;
|
|
157
|
+
button {
|
|
158
|
+
margin-top: 5px;
|
|
159
|
+
background: ${props => props.theme.colors.secundary};
|
|
160
|
+
border-radius: 7.6px;
|
|
161
|
+
padding: 7px 15px;
|
|
162
|
+
font-size: 14px;
|
|
163
|
+
color: ${props => props.theme.colors.secundaryContrast};
|
|
164
|
+
border: none;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
@media (min-width: 600px) {
|
|
168
|
+
width: fit-content;
|
|
169
|
+
margin-left: 10px;
|
|
170
|
+
${props => props.theme.rtl && css`
|
|
171
|
+
margin-right: 10px;
|
|
172
|
+
margin-left: 0;
|
|
173
|
+
`}
|
|
174
|
+
}
|
|
175
|
+
`
|
|
176
|
+
|
|
177
|
+
export const TimeZoneAndCalendar = styled.div`
|
|
178
|
+
display: flex;
|
|
179
|
+
align-items: center;
|
|
180
|
+
flex-direction: column;
|
|
181
|
+
width: 100%;
|
|
182
|
+
|
|
183
|
+
@media (min-width: 600px) {
|
|
184
|
+
flex-direction: row;
|
|
185
|
+
width: fit-content;
|
|
186
|
+
}
|
|
187
|
+
`
|
|
@@ -11,6 +11,7 @@ import { Download } from 'react-bootstrap-icons'
|
|
|
11
11
|
import Skeleton from 'react-loading-skeleton'
|
|
12
12
|
import { Button } from '../../../styles'
|
|
13
13
|
import { Modal } from '../../Shared'
|
|
14
|
+
import { AnalyticsFilterTimeZone } from '../AnalyticsFilterTimeZone'
|
|
14
15
|
|
|
15
16
|
import {
|
|
16
17
|
ReportsBusinessSpendContainer,
|
|
@@ -25,7 +26,9 @@ import {
|
|
|
25
26
|
Title,
|
|
26
27
|
Thead,
|
|
27
28
|
Tbody,
|
|
28
|
-
Tfoot
|
|
29
|
+
Tfoot,
|
|
30
|
+
AnalyticsTimeZoneWrapper,
|
|
31
|
+
TimeZoneAndCalendar
|
|
29
32
|
} from './styles'
|
|
30
33
|
|
|
31
34
|
const ReportsPaymethodSalesUI = (props) => {
|
|
@@ -122,12 +125,17 @@ const ReportsPaymethodSalesUI = (props) => {
|
|
|
122
125
|
{t('BRAND', 'Brand')} ({filterList?.franchises_id ? filterList?.franchises_id?.length : t('ALL', 'All')})
|
|
123
126
|
</Button>
|
|
124
127
|
</BrandBusinessWrapper>
|
|
128
|
+
<TimeZoneAndCalendar>
|
|
129
|
+
<AnalyticsTimeZoneWrapper>
|
|
130
|
+
<AnalyticsFilterTimeZone {...props} />
|
|
131
|
+
</AnalyticsTimeZoneWrapper>
|
|
125
132
|
<CalendarWrapper>
|
|
126
133
|
<AnalyticsCalendar
|
|
127
134
|
handleChangeDate={handleChangeDate}
|
|
128
135
|
defaultValue={filterList}
|
|
129
136
|
/>
|
|
130
137
|
</CalendarWrapper>
|
|
138
|
+
</TimeZoneAndCalendar>
|
|
131
139
|
</ButtonActionList>
|
|
132
140
|
<DistancePerBrandWrapper>
|
|
133
141
|
<DistanceTitleBlock active={reportData?.content?.body?.rows?.length > 0}>
|
|
@@ -215,3 +215,37 @@ export const EmptyContent = styled.div`
|
|
|
215
215
|
justify-content: center;
|
|
216
216
|
padding: 10px;
|
|
217
217
|
`
|
|
218
|
+
|
|
219
|
+
export const AnalyticsTimeZoneWrapper = styled.div`
|
|
220
|
+
width: 100%;
|
|
221
|
+
button {
|
|
222
|
+
margin-top: 5px;
|
|
223
|
+
background: ${props => props.theme.colors.secundary};
|
|
224
|
+
border-radius: 7.6px;
|
|
225
|
+
padding: 7px 15px;
|
|
226
|
+
font-size: 14px;
|
|
227
|
+
color: ${props => props.theme.colors.secundaryContrast};
|
|
228
|
+
border: none;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
@media (min-width: 600px) {
|
|
232
|
+
width: fit-content;
|
|
233
|
+
margin-left: 10px;
|
|
234
|
+
${props => props.theme.rtl && css`
|
|
235
|
+
margin-right: 10px;
|
|
236
|
+
margin-left: 0;
|
|
237
|
+
`}
|
|
238
|
+
}
|
|
239
|
+
`
|
|
240
|
+
|
|
241
|
+
export const TimeZoneAndCalendar = styled.div`
|
|
242
|
+
display: flex;
|
|
243
|
+
align-items: center;
|
|
244
|
+
flex-direction: column;
|
|
245
|
+
width: 100%;
|
|
246
|
+
|
|
247
|
+
@media (min-width: 600px) {
|
|
248
|
+
flex-direction: row;
|
|
249
|
+
width: fit-content;
|
|
250
|
+
}
|
|
251
|
+
`
|
|
@@ -12,6 +12,7 @@ import { AnalyticsBusinessFilter } from '../AnalyticsBusinessFilter'
|
|
|
12
12
|
import { AnalyticsCalendar } from '../AnalyticsCalendar'
|
|
13
13
|
import { ReportsBrandFilter } from '../ReportsBrandFilter'
|
|
14
14
|
import { CountryFilter } from '../CountryFilter'
|
|
15
|
+
import { AnalyticsFilterTimeZone } from '../AnalyticsFilterTimeZone'
|
|
15
16
|
|
|
16
17
|
import {
|
|
17
18
|
ReportsContainer,
|
|
@@ -23,7 +24,9 @@ import {
|
|
|
23
24
|
ChartTitleBlock,
|
|
24
25
|
ChartWrapper,
|
|
25
26
|
EmptyContent,
|
|
26
|
-
ChartListWrapper
|
|
27
|
+
ChartListWrapper,
|
|
28
|
+
AnalyticsTimeZoneWrapper,
|
|
29
|
+
TimeZoneAndCalendar
|
|
27
30
|
} from './styles'
|
|
28
31
|
|
|
29
32
|
const ReportsSaleAndCategoryUI = (props) => {
|
|
@@ -182,12 +185,17 @@ const ReportsSaleAndCategoryUI = (props) => {
|
|
|
182
185
|
</Button>
|
|
183
186
|
)}
|
|
184
187
|
</BrandBusinessWrapper>
|
|
188
|
+
<TimeZoneAndCalendar>
|
|
189
|
+
<AnalyticsTimeZoneWrapper>
|
|
190
|
+
<AnalyticsFilterTimeZone {...props} />
|
|
191
|
+
</AnalyticsTimeZoneWrapper>
|
|
185
192
|
<CalendarWrapper>
|
|
186
193
|
<AnalyticsCalendar
|
|
187
194
|
handleChangeDate={handleChangeDate}
|
|
188
195
|
defaultValue={filterList}
|
|
189
196
|
/>
|
|
190
197
|
</CalendarWrapper>
|
|
198
|
+
</TimeZoneAndCalendar>
|
|
191
199
|
</ButtonActionList>
|
|
192
200
|
<ChartListWrapper>
|
|
193
201
|
<ChartBlockWrapper>
|
|
@@ -139,3 +139,37 @@ export const EmptyContent = styled.div`
|
|
|
139
139
|
export const ChartListWrapper = styled.div`
|
|
140
140
|
padding-bottom: 10px;
|
|
141
141
|
`
|
|
142
|
+
|
|
143
|
+
export const AnalyticsTimeZoneWrapper = styled.div`
|
|
144
|
+
width: 100%;
|
|
145
|
+
button {
|
|
146
|
+
margin-top: 5px;
|
|
147
|
+
background: ${props => props.theme.colors.secundary};
|
|
148
|
+
border-radius: 7.6px;
|
|
149
|
+
padding: 7px 15px;
|
|
150
|
+
font-size: 14px;
|
|
151
|
+
color: ${props => props.theme.colors.secundaryContrast};
|
|
152
|
+
border: none;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
@media (min-width: 600px) {
|
|
156
|
+
width: fit-content;
|
|
157
|
+
margin-left: 10px;
|
|
158
|
+
${props => props.theme.rtl && css`
|
|
159
|
+
margin-right: 10px;
|
|
160
|
+
margin-left: 0;
|
|
161
|
+
`}
|
|
162
|
+
}
|
|
163
|
+
`
|
|
164
|
+
|
|
165
|
+
export const TimeZoneAndCalendar = styled.div`
|
|
166
|
+
display: flex;
|
|
167
|
+
align-items: center;
|
|
168
|
+
flex-direction: column;
|
|
169
|
+
width: 100%;
|
|
170
|
+
|
|
171
|
+
@media (min-width: 600px) {
|
|
172
|
+
flex-direction: row;
|
|
173
|
+
width: fit-content;
|
|
174
|
+
}
|
|
175
|
+
`
|
|
@@ -11,6 +11,7 @@ import { Button } from '../../../styles'
|
|
|
11
11
|
import Skeleton from 'react-loading-skeleton'
|
|
12
12
|
import { Download } from 'react-bootstrap-icons'
|
|
13
13
|
import { CountryFilter } from '../CountryFilter'
|
|
14
|
+
import { AnalyticsFilterTimeZone } from '../AnalyticsFilterTimeZone'
|
|
14
15
|
|
|
15
16
|
import {
|
|
16
17
|
ReportsOrdersContainer,
|
|
@@ -22,7 +23,9 @@ import {
|
|
|
22
23
|
ChartTitleBlock,
|
|
23
24
|
ChartWrapper,
|
|
24
25
|
EmptyContent,
|
|
25
|
-
ChartFooterContainer
|
|
26
|
+
ChartFooterContainer,
|
|
27
|
+
AnalyticsTimeZoneWrapper,
|
|
28
|
+
TimeZoneAndCalendar
|
|
26
29
|
} from './styles'
|
|
27
30
|
import { AnalyticsBusinessFilter } from '../AnalyticsBusinessFilter'
|
|
28
31
|
import { ReportsBrandFilter } from '../ReportsBrandFilter'
|
|
@@ -161,12 +164,17 @@ const ReportsSalesUI = (props) => {
|
|
|
161
164
|
</Button>
|
|
162
165
|
)}
|
|
163
166
|
</BrandBusinessWrapper>
|
|
167
|
+
<TimeZoneAndCalendar>
|
|
168
|
+
<AnalyticsTimeZoneWrapper>
|
|
169
|
+
<AnalyticsFilterTimeZone {...props} />
|
|
170
|
+
</AnalyticsTimeZoneWrapper>
|
|
164
171
|
<CalendarWrapper>
|
|
165
172
|
<AnalyticsCalendar
|
|
166
173
|
handleChangeDate={handleChangeDate}
|
|
167
174
|
defaultValue={filterList}
|
|
168
175
|
/>
|
|
169
176
|
</CalendarWrapper>
|
|
177
|
+
</TimeZoneAndCalendar>
|
|
170
178
|
</ButtonActionList>
|
|
171
179
|
<ChartBlockWrapper>
|
|
172
180
|
<ChartTitleBlock active={reportData?.content?.dataset?.dataset?.data?.length > 0}>
|
|
@@ -151,3 +151,37 @@ export const ChartFooterContainer = styled.div`
|
|
|
151
151
|
margin: 0;
|
|
152
152
|
}
|
|
153
153
|
`
|
|
154
|
+
|
|
155
|
+
export const AnalyticsTimeZoneWrapper = styled.div`
|
|
156
|
+
width: 100%;
|
|
157
|
+
button {
|
|
158
|
+
margin-top: 5px;
|
|
159
|
+
background: ${props => props.theme.colors.secundary};
|
|
160
|
+
border-radius: 7.6px;
|
|
161
|
+
padding: 7px 15px;
|
|
162
|
+
font-size: 14px;
|
|
163
|
+
color: ${props => props.theme.colors.secundaryContrast};
|
|
164
|
+
border: none;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
@media (min-width: 600px) {
|
|
168
|
+
width: fit-content;
|
|
169
|
+
margin-left: 10px;
|
|
170
|
+
${props => props.theme.rtl && css`
|
|
171
|
+
margin-right: 10px;
|
|
172
|
+
margin-left: 0;
|
|
173
|
+
`}
|
|
174
|
+
}
|
|
175
|
+
`
|
|
176
|
+
|
|
177
|
+
export const TimeZoneAndCalendar = styled.div`
|
|
178
|
+
display: flex;
|
|
179
|
+
align-items: center;
|
|
180
|
+
flex-direction: column;
|
|
181
|
+
width: 100%;
|
|
182
|
+
|
|
183
|
+
@media (min-width: 600px) {
|
|
184
|
+
flex-direction: row;
|
|
185
|
+
width: fit-content;
|
|
186
|
+
}
|
|
187
|
+
`
|
|
@@ -7,6 +7,7 @@ import { AnalyticsCalendar } from '../AnalyticsCalendar'
|
|
|
7
7
|
import { Modal } from '../../Shared'
|
|
8
8
|
import { ReportsDriverGroupFilter } from '../ReportsDriverGroupFilter'
|
|
9
9
|
import { ReportsDriverFilter } from '../ReportsDriverFilter'
|
|
10
|
+
import { AnalyticsFilterTimeZone } from '../AnalyticsFilterTimeZone'
|
|
10
11
|
import { convertHMS } from '../../../utils'
|
|
11
12
|
import {
|
|
12
13
|
ReportsBusinessSpendContainer,
|
|
@@ -21,7 +22,9 @@ import {
|
|
|
21
22
|
Tbody,
|
|
22
23
|
Tfoot,
|
|
23
24
|
TableWrapper,
|
|
24
|
-
EmptyContent
|
|
25
|
+
EmptyContent,
|
|
26
|
+
AnalyticsTimeZoneWrapper,
|
|
27
|
+
TimeZoneAndCalendar
|
|
25
28
|
} from './styles'
|
|
26
29
|
|
|
27
30
|
const ReportsSpentTimeUI = (props) => {
|
|
@@ -109,12 +112,17 @@ const ReportsSpentTimeUI = (props) => {
|
|
|
109
112
|
{t('DRIVER', 'Driver')} ({filterList?.drivers_ids ? filterList?.drivers_ids.length : t('ALL', 'All')})
|
|
110
113
|
</Button>
|
|
111
114
|
</BrandBusinessWrapper>
|
|
112
|
-
<
|
|
113
|
-
<
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
115
|
+
<TimeZoneAndCalendar>
|
|
116
|
+
<AnalyticsTimeZoneWrapper>
|
|
117
|
+
<AnalyticsFilterTimeZone {...props} />
|
|
118
|
+
</AnalyticsTimeZoneWrapper>
|
|
119
|
+
<CalendarWrapper>
|
|
120
|
+
<AnalyticsCalendar
|
|
121
|
+
handleChangeDate={handleChangeDate}
|
|
122
|
+
defaultValue={filterList}
|
|
123
|
+
/>
|
|
124
|
+
</CalendarWrapper>
|
|
125
|
+
</TimeZoneAndCalendar>
|
|
118
126
|
</ButtonActionList>
|
|
119
127
|
<DistancePerBrandWrapper>
|
|
120
128
|
<DistanceTitleBlock active={reportData?.content?.body?.rows?.length > 0}>
|
|
@@ -213,3 +213,37 @@ export const EmptyContent = styled.div`
|
|
|
213
213
|
justify-content: center;
|
|
214
214
|
padding: 10px;
|
|
215
215
|
`
|
|
216
|
+
|
|
217
|
+
export const AnalyticsTimeZoneWrapper = styled.div`
|
|
218
|
+
width: 100%;
|
|
219
|
+
button {
|
|
220
|
+
margin-top: 5px;
|
|
221
|
+
background: ${props => props.theme.colors.secundary};
|
|
222
|
+
border-radius: 7.6px;
|
|
223
|
+
padding: 7px 15px;
|
|
224
|
+
font-size: 14px;
|
|
225
|
+
color: ${props => props.theme.colors.secundaryContrast};
|
|
226
|
+
border: none;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
@media (min-width: 600px) {
|
|
230
|
+
width: fit-content;
|
|
231
|
+
margin-left: 10px;
|
|
232
|
+
${props => props.theme.rtl && css`
|
|
233
|
+
margin-right: 10px;
|
|
234
|
+
margin-left: 0;
|
|
235
|
+
`}
|
|
236
|
+
}
|
|
237
|
+
`
|
|
238
|
+
|
|
239
|
+
export const TimeZoneAndCalendar = styled.div`
|
|
240
|
+
display: flex;
|
|
241
|
+
align-items: center;
|
|
242
|
+
flex-direction: column;
|
|
243
|
+
width: 100%;
|
|
244
|
+
|
|
245
|
+
@media (min-width: 600px) {
|
|
246
|
+
flex-direction: row;
|
|
247
|
+
width: fit-content;
|
|
248
|
+
}
|
|
249
|
+
`
|
|
@@ -7,7 +7,7 @@ import { Download } from 'react-bootstrap-icons'
|
|
|
7
7
|
import { Bar } from 'react-chartjs-2'
|
|
8
8
|
import Skeleton from 'react-loading-skeleton'
|
|
9
9
|
import { convertHMS } from '../../../utils'
|
|
10
|
-
|
|
10
|
+
import { AnalyticsFilterTimeZone } from '../AnalyticsFilterTimeZone'
|
|
11
11
|
import {
|
|
12
12
|
ReportsTopDriversContainer,
|
|
13
13
|
Title,
|
|
@@ -17,7 +17,9 @@ import {
|
|
|
17
17
|
ChartBlockWrapper,
|
|
18
18
|
ChartTitleBlock,
|
|
19
19
|
ChartWrapper,
|
|
20
|
-
EmptyContent
|
|
20
|
+
EmptyContent,
|
|
21
|
+
AnalyticsTimeZoneWrapper,
|
|
22
|
+
TimeZoneAndCalendar
|
|
21
23
|
} from './styles'
|
|
22
24
|
import { Button } from '../../../styles'
|
|
23
25
|
import { AnalyticsCalendar } from '../AnalyticsCalendar'
|
|
@@ -175,12 +177,17 @@ const ReportsTopDriversUI = (props) => {
|
|
|
175
177
|
{t('DRIVER', 'Driver')} ({filterList?.drivers_ids ? filterList?.drivers_ids.length : t('ALL', 'All')})
|
|
176
178
|
</Button>
|
|
177
179
|
</BrandBusinessWrapper>
|
|
180
|
+
<TimeZoneAndCalendar>
|
|
181
|
+
<AnalyticsTimeZoneWrapper>
|
|
182
|
+
<AnalyticsFilterTimeZone {...props} />
|
|
183
|
+
</AnalyticsTimeZoneWrapper>
|
|
178
184
|
<CalendarWrapper>
|
|
179
185
|
<AnalyticsCalendar
|
|
180
186
|
handleChangeDate={handleChangeDate}
|
|
181
187
|
defaultValue={filterList}
|
|
182
188
|
/>
|
|
183
189
|
</CalendarWrapper>
|
|
190
|
+
</TimeZoneAndCalendar>
|
|
184
191
|
</ButtonActionList>
|
|
185
192
|
<ChartBlockWrapper>
|
|
186
193
|
<ChartTitleBlock active={reportData?.content?.dataset?.dataset?.data?.length > 0}>
|
|
@@ -134,3 +134,37 @@ export const EmptyContent = styled.div`
|
|
|
134
134
|
justify-content: center;
|
|
135
135
|
padding: 10px;
|
|
136
136
|
`
|
|
137
|
+
|
|
138
|
+
export const AnalyticsTimeZoneWrapper = styled.div`
|
|
139
|
+
width: 100%;
|
|
140
|
+
button {
|
|
141
|
+
margin-top: 5px;
|
|
142
|
+
background: ${props => props.theme.colors.secundary};
|
|
143
|
+
border-radius: 7.6px;
|
|
144
|
+
padding: 7px 15px;
|
|
145
|
+
font-size: 14px;
|
|
146
|
+
color: ${props => props.theme.colors.secundaryContrast};
|
|
147
|
+
border: none;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
@media (min-width: 600px) {
|
|
151
|
+
width: fit-content;
|
|
152
|
+
margin-left: 10px;
|
|
153
|
+
${props => props.theme.rtl && css`
|
|
154
|
+
margin-right: 10px;
|
|
155
|
+
margin-left: 0;
|
|
156
|
+
`}
|
|
157
|
+
}
|
|
158
|
+
`
|
|
159
|
+
|
|
160
|
+
export const TimeZoneAndCalendar = styled.div`
|
|
161
|
+
display: flex;
|
|
162
|
+
align-items: center;
|
|
163
|
+
flex-direction: column;
|
|
164
|
+
width: 100%;
|
|
165
|
+
|
|
166
|
+
@media (min-width: 600px) {
|
|
167
|
+
flex-direction: row;
|
|
168
|
+
width: fit-content;
|
|
169
|
+
}
|
|
170
|
+
`
|
|
@@ -8,6 +8,7 @@ import { Line } from 'react-chartjs-2'
|
|
|
8
8
|
import Skeleton from 'react-loading-skeleton'
|
|
9
9
|
import { Download } from 'react-bootstrap-icons'
|
|
10
10
|
import { Modal } from '../../Shared'
|
|
11
|
+
import { AnalyticsFilterTimeZone } from '../AnalyticsFilterTimeZone'
|
|
11
12
|
import {
|
|
12
13
|
ReportsUsersContainer,
|
|
13
14
|
Title,
|
|
@@ -17,7 +18,9 @@ import {
|
|
|
17
18
|
ChartBlockWrapper,
|
|
18
19
|
ChartTitleBlock,
|
|
19
20
|
ChartWrapper,
|
|
20
|
-
EmptyContent
|
|
21
|
+
EmptyContent,
|
|
22
|
+
AnalyticsTimeZoneWrapper,
|
|
23
|
+
TimeZoneAndCalendar
|
|
21
24
|
} from './styles'
|
|
22
25
|
import { Button } from '../../../styles'
|
|
23
26
|
import { AnalyticsCalendar } from '../AnalyticsCalendar'
|
|
@@ -158,12 +161,17 @@ const ReportsUsersUI = (props) => {
|
|
|
158
161
|
{t('APP_ID', 'App id')} ({filterList?.app_ids ? filterList?.app_ids.length : t('ALL', 'All')})
|
|
159
162
|
</Button>
|
|
160
163
|
</BrandBusinessWrapper>
|
|
161
|
-
<
|
|
162
|
-
<
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
164
|
+
<TimeZoneAndCalendar>
|
|
165
|
+
<AnalyticsTimeZoneWrapper>
|
|
166
|
+
<AnalyticsFilterTimeZone {...props} />
|
|
167
|
+
</AnalyticsTimeZoneWrapper>
|
|
168
|
+
<CalendarWrapper>
|
|
169
|
+
<AnalyticsCalendar
|
|
170
|
+
handleChangeDate={handleChangeDate}
|
|
171
|
+
defaultValue={filterList}
|
|
172
|
+
/>
|
|
173
|
+
</CalendarWrapper>
|
|
174
|
+
</TimeZoneAndCalendar>
|
|
167
175
|
</ButtonActionList>
|
|
168
176
|
<ChartBlockWrapper>
|
|
169
177
|
<ChartTitleBlock active={reportData?.content?.dataset?.dataset[0]?.data?.length > 0}>
|
|
@@ -134,3 +134,37 @@ export const EmptyContent = styled.div`
|
|
|
134
134
|
justify-content: center;
|
|
135
135
|
padding: 10px;
|
|
136
136
|
`
|
|
137
|
+
|
|
138
|
+
export const AnalyticsTimeZoneWrapper = styled.div`
|
|
139
|
+
width: 100%;
|
|
140
|
+
button {
|
|
141
|
+
margin-top: 5px;
|
|
142
|
+
background: ${props => props.theme.colors.secundary};
|
|
143
|
+
border-radius: 7.6px;
|
|
144
|
+
padding: 7px 15px;
|
|
145
|
+
font-size: 14px;
|
|
146
|
+
color: ${props => props.theme.colors.secundaryContrast};
|
|
147
|
+
border: none;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
@media (min-width: 600px) {
|
|
151
|
+
width: fit-content;
|
|
152
|
+
margin-left: 10px;
|
|
153
|
+
${props => props.theme.rtl && css`
|
|
154
|
+
margin-right: 10px;
|
|
155
|
+
margin-left: 0;
|
|
156
|
+
`}
|
|
157
|
+
}
|
|
158
|
+
`
|
|
159
|
+
|
|
160
|
+
export const TimeZoneAndCalendar = styled.div`
|
|
161
|
+
display: flex;
|
|
162
|
+
align-items: center;
|
|
163
|
+
flex-direction: column;
|
|
164
|
+
width: 100%;
|
|
165
|
+
|
|
166
|
+
@media (min-width: 600px) {
|
|
167
|
+
flex-direction: row;
|
|
168
|
+
width: fit-content;
|
|
169
|
+
}
|
|
170
|
+
`
|
|
@@ -54,7 +54,8 @@ const AddressListUI = (props) => {
|
|
|
54
54
|
setCustomerModalOpen,
|
|
55
55
|
setExtraOpen,
|
|
56
56
|
userState,
|
|
57
|
-
handleSuccessUpdate
|
|
57
|
+
handleSuccessUpdate,
|
|
58
|
+
isAutoOpenAddNewAddress
|
|
58
59
|
} = props
|
|
59
60
|
|
|
60
61
|
const [, t] = useLanguage()
|
|
@@ -171,6 +172,15 @@ const AddressListUI = (props) => {
|
|
|
171
172
|
setUniqueAddressesList(_uniqueAddressesList)
|
|
172
173
|
}, [addressList])
|
|
173
174
|
|
|
175
|
+
useEffect(() => {
|
|
176
|
+
if (addressList.loading || !isAutoOpenAddNewAddress) return
|
|
177
|
+
if (!addressList.error && addressList?.addresses?.length === 0) {
|
|
178
|
+
setTimeout(() => {
|
|
179
|
+
openAddress({})
|
|
180
|
+
}, 500)
|
|
181
|
+
}
|
|
182
|
+
}, [addressList])
|
|
183
|
+
|
|
174
184
|
return (
|
|
175
185
|
<>
|
|
176
186
|
<AddressListContainer id='address_control' isLoading={actionStatus?.loading || orderState?.loading}>
|