ordering-ui-admin-external 1.41.4 → 1.42.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.05647a8e92a1798b3c9a.js → ordering-ui-admin.637ae3a9ddea00b2aa19.js} +2 -2
- package/_modules/components/CartRecovery/OpenCartBill/index.js +1 -1
- package/_modules/components/Delivery/DriversGroupsListing/index.js +9 -1
- package/_modules/components/Delivery/UserAddForm/index.js +0 -1
- package/_modules/components/Orders/CreateCustomOrder/CartBill/index.js +1 -1
- package/_modules/components/Orders/DeliveriesLocation/index.js +8 -4
- package/_modules/components/Orders/DriversLocation/index.js +1 -1
- package/_modules/components/Orders/Messages/index.js +7 -6
- package/_modules/components/Orders/OrderBill/index.js +2 -4
- package/_modules/components/Orders/OrdersFilterGroup/index.js +44 -0
- package/_modules/components/Settings/SettingsList/index.js +1 -1
- package/_modules/components/SidebarMenu/index.js +35 -49
- package/index-template.js +1 -1
- package/package.json +2 -2
- package/src/components/CartRecovery/OpenCartBill/index.js +1 -1
- package/src/components/Delivery/DriversGroupsListing/index.js +10 -1
- package/src/components/Delivery/UserAddForm/index.js +0 -3
- package/src/components/Orders/CreateCustomOrder/CartBill/index.js +1 -1
- package/src/components/Orders/DeliveriesLocation/index.js +7 -3
- package/src/components/Orders/DriversLocation/index.js +1 -1
- package/src/components/Orders/Messages/index.js +6 -5
- package/src/components/Orders/OrderBill/index.js +1 -4
- package/src/components/Orders/OrdersFilterGroup/index.js +33 -1
- package/src/components/Settings/SettingsList/index.js +2 -1
- package/src/components/SidebarMenu/index.js +34 -11
- /package/_bundles/{ordering-ui-admin.05647a8e92a1798b3c9a.js.LICENSE.txt → ordering-ui-admin.637ae3a9ddea00b2aa19.js.LICENSE.txt} +0 -0
|
@@ -100,10 +100,11 @@ export const MessagesUI = (props) => {
|
|
|
100
100
|
const [load, setLoad] = useState(0)
|
|
101
101
|
const [messageList, setMessageList] = useState([])
|
|
102
102
|
const [isChatDisabled, setIsChatDisabled] = useState(false)
|
|
103
|
-
const previousStatus = [1, 2, 5, 6, 10, 11, 12, 16, 17]
|
|
103
|
+
const previousStatus = [1, 2, 5, 6, 10, 11, 12, 15, 16, 17]
|
|
104
104
|
const chatDisabled = previousStatus.includes(order?.status)
|
|
105
105
|
const [{ configs }] = useConfig()
|
|
106
106
|
const showExternalId = configs?.change_order_id?.value === '1'
|
|
107
|
+
const hideLogBookMessages = configs?.order_logbook_enabled?.value === '0'
|
|
107
108
|
|
|
108
109
|
const adminMessageList = [
|
|
109
110
|
{ key: 'message_1', text: t('ADMIN_MESSAGE_1', 'admin_message_1') },
|
|
@@ -471,7 +472,7 @@ export const MessagesUI = (props) => {
|
|
|
471
472
|
<React.Fragment key={message.id}>
|
|
472
473
|
{history && tabActive === 'order_history' && (
|
|
473
474
|
<>
|
|
474
|
-
{message.type === 0 && (
|
|
475
|
+
{message.type === 0 && !hideLogBookMessages && (
|
|
475
476
|
<MessageConsole key={message.id}>
|
|
476
477
|
<BubbleConsole>
|
|
477
478
|
<p
|
|
@@ -491,7 +492,7 @@ export const MessagesUI = (props) => {
|
|
|
491
492
|
</BubbleConsole>
|
|
492
493
|
</MessageConsole>
|
|
493
494
|
)}
|
|
494
|
-
{message.type === 1 && (
|
|
495
|
+
{message.type === 1 && !hideLogBookMessages && (
|
|
495
496
|
<MessageConsole key={message.id} style={{ display: `${tabActive === 'order_history' ? 'inline-flex' : 'none'}` }}>
|
|
496
497
|
{getHistoryComment(message) && (
|
|
497
498
|
<BubbleConsole>
|
|
@@ -514,7 +515,7 @@ export const MessagesUI = (props) => {
|
|
|
514
515
|
)}
|
|
515
516
|
{isChat && (
|
|
516
517
|
<>
|
|
517
|
-
{message.type === 0 && (
|
|
518
|
+
{message.type === 0 && !hideLogBookMessages && (
|
|
518
519
|
<MessageConsole key={message.id}>
|
|
519
520
|
<BubbleConsole>
|
|
520
521
|
<p>
|
|
@@ -533,7 +534,7 @@ export const MessagesUI = (props) => {
|
|
|
533
534
|
</BubbleConsole>
|
|
534
535
|
</MessageConsole>
|
|
535
536
|
)}
|
|
536
|
-
{message.type === 1 && (
|
|
537
|
+
{message.type === 1 && !hideLogBookMessages && (
|
|
537
538
|
<MessageConsole key={message.id} style={{ display: `${tabActive === 'order_history' ? 'inline-flex' : 'none'}` }}>
|
|
538
539
|
{getHistoryComment(message) && (
|
|
539
540
|
<BubbleConsole>
|
|
@@ -242,10 +242,7 @@ export const OrderBill = (props) => {
|
|
|
242
242
|
<td>
|
|
243
243
|
{t(extraValueAdjustment?.key?.toUpperCase(), extraValueAdjustment?.key)}{' '}
|
|
244
244
|
</td>
|
|
245
|
-
<td>{parseFloat(extraValueAdjustment?.value) >
|
|
246
|
-
? parsePrice(parseFloat(extraValueAdjustment?.value), { currency: getCurrenySymbol(order?.currency) })
|
|
247
|
-
: `- ${parsePrice(parseFloat(extraValueAdjustment?.value) * -1, { currency: getCurrenySymbol(order?.currency) })}`}
|
|
248
|
-
</td>
|
|
245
|
+
<td>{parsePrice(parseFloat(extraValueAdjustment?.value), { currency: getCurrenySymbol(order?.currency) })}</td>
|
|
249
246
|
</tr>
|
|
250
247
|
)}
|
|
251
248
|
</tbody>
|
|
@@ -3,7 +3,7 @@ import { PlusCircle, Trash3, Funnel } from 'react-bootstrap-icons'
|
|
|
3
3
|
import MdcFilterOff from '@meronex/icons/mdc/MdcFilterOff'
|
|
4
4
|
import TiWarningOutline from '@meronex/icons/ti/TiWarningOutline'
|
|
5
5
|
import { useLanguage, OrdersFilter as OrdersFilterController } from 'ordering-components-admin-external'
|
|
6
|
-
|
|
6
|
+
import { BusinessesSelector } from '../BusinessesSelector'
|
|
7
7
|
import { DriversGroupTypeSelector } from '../DriversGroupTypeSelector'
|
|
8
8
|
import { DateTypeSelector } from '../DateTypeSelector'
|
|
9
9
|
import { DriverMultiSelector } from '../DriverMultiSelector'
|
|
@@ -183,6 +183,38 @@ const OrdersFilterGroupUI = (props) => {
|
|
|
183
183
|
onChange={handleChangeExternalId}
|
|
184
184
|
/>
|
|
185
185
|
</WrapperRow>
|
|
186
|
+
<WrapperRow>
|
|
187
|
+
<Input
|
|
188
|
+
type='text'
|
|
189
|
+
placeholder={t('CUSTOMER_NAME', 'Customer Name')}
|
|
190
|
+
autoComplete='off'
|
|
191
|
+
value={filterValues?.customerName || ''}
|
|
192
|
+
onChange={(e) => handleChangeChildFilterValue({ customerName: e?.target?.value })}
|
|
193
|
+
/>
|
|
194
|
+
<Input
|
|
195
|
+
type='text'
|
|
196
|
+
placeholder={t('CUSTOMER_LASTNAME', 'Customer Lastname')}
|
|
197
|
+
autoComplete='off'
|
|
198
|
+
value={filterValues?.customerLastname || ''}
|
|
199
|
+
onChange={(e) => handleChangeChildFilterValue({ customerLastname: e?.target?.value })}
|
|
200
|
+
/>
|
|
201
|
+
</WrapperRow>
|
|
202
|
+
<WrapperRow>
|
|
203
|
+
<Input
|
|
204
|
+
type='text'
|
|
205
|
+
placeholder={t('CUSTOMER_EMAIL', 'Customer Email')}
|
|
206
|
+
autoComplete='off'
|
|
207
|
+
value={filterValues?.customerEmail || ''}
|
|
208
|
+
onChange={(e) => handleChangeChildFilterValue({ customerEmail: e?.target?.value })}
|
|
209
|
+
/>
|
|
210
|
+
<Input
|
|
211
|
+
type='text'
|
|
212
|
+
placeholder={t('CUSTOMER_CELLPHONE', 'Customer Cellphone')}
|
|
213
|
+
autoComplete='off'
|
|
214
|
+
value={filterValues?.customerCellphone || ''}
|
|
215
|
+
onChange={(e) => handleChangeChildFilterValue({ customerCellphone: e?.target?.value })}
|
|
216
|
+
/>
|
|
217
|
+
</WrapperRow>
|
|
186
218
|
<WrapperRow>
|
|
187
219
|
<DriversGroupTypeSelector
|
|
188
220
|
driverGroupList={driverGroupList}
|
|
@@ -267,7 +267,8 @@ export const SettingsListUI = (props) => {
|
|
|
267
267
|
<>
|
|
268
268
|
<FormGroupText className='form-group'>
|
|
269
269
|
<label>{config?.name}</label>
|
|
270
|
-
{config?.description && <Description>{config?.description} {[1312, 1315, 1316].includes(config?.id) && `(${t('MINUTES', 'Minutes')})`}</Description>}
|
|
270
|
+
{config?.description && <Description>{config?.description} {[1312, 1315, 1316].includes(config?.id) && `(${t('MINUTES', 'Minutes')})`}</Description>}
|
|
271
|
+
{config?.value?.split('|')?.filter(value => valuesTypeSix.includes(value?.split(',')[0]))?.map((value, i, hash) => (
|
|
271
272
|
<React.Fragment key={`${config?.id} ${value}`}>
|
|
272
273
|
<Description typeSix>{t(value?.split(',')[0], value?.split(',')[0].replace('_', ' '))}</Description>
|
|
273
274
|
<input
|
|
@@ -369,18 +369,36 @@ const SidebarMenuUI = (props) => {
|
|
|
369
369
|
pageName: 'enterprise_promotions',
|
|
370
370
|
url: '/marketing/promotions-enterprise'
|
|
371
371
|
},
|
|
372
|
-
// {
|
|
373
|
-
// id: 2,
|
|
374
|
-
// title: t('CAMPAIGN', 'Campaign'),
|
|
375
|
-
// pageName: 'campaign',
|
|
376
|
-
// url: '/marketing/campaign'
|
|
377
|
-
// },
|
|
378
372
|
{
|
|
379
|
-
id:
|
|
373
|
+
id: 2,
|
|
380
374
|
title: t('AD_BANNERS', 'Ad banners'),
|
|
381
375
|
pageName: 'ad_banners',
|
|
382
376
|
url: '/marketing/ad-banners'
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
id: 3,
|
|
380
|
+
title: t('LOYALTY_AUTOMATION', 'Loyalty automation'),
|
|
381
|
+
pageName: 'rewards_programs',
|
|
382
|
+
url: '/loyalty/rewards-programs'
|
|
383
|
+
},
|
|
384
|
+
{
|
|
385
|
+
id: 4,
|
|
386
|
+
title: t('OPEN_CARTS', 'Open carts'),
|
|
387
|
+
pageName: 'open_carts',
|
|
388
|
+
url: '/cart-recovery/open-carts'
|
|
389
|
+
},
|
|
390
|
+
{
|
|
391
|
+
id: 5,
|
|
392
|
+
title: t('CART_RECOVERY_AUTOMATION', 'Cart recovery automation'),
|
|
393
|
+
pageName: 'recovery_actions',
|
|
394
|
+
url: '/cart-recovery/recovery-actions'
|
|
383
395
|
}
|
|
396
|
+
// {
|
|
397
|
+
// id: 6,
|
|
398
|
+
// title: t('CAMPAIGN', 'Campaign'),
|
|
399
|
+
// pageName: 'campaign',
|
|
400
|
+
// url: '/marketing/campaign'
|
|
401
|
+
// }
|
|
384
402
|
]
|
|
385
403
|
|
|
386
404
|
const handleGoToPage = (data) => {
|
|
@@ -716,11 +734,16 @@ const SidebarMenuUI = (props) => {
|
|
|
716
734
|
active={
|
|
717
735
|
location.pathname === '/marketing/promotions-enterprise' ||
|
|
718
736
|
location.pathname === '/marketing/campaign' ||
|
|
719
|
-
location.pathname === '/marketing/ad-banners'
|
|
737
|
+
location.pathname === '/marketing/ad-banners'||
|
|
738
|
+
location.pathname === '/loyalty/rewards-programs' ||
|
|
739
|
+
location.pathname === '/loyalty/levels' ||
|
|
740
|
+
location.pathname === '/loyalty/reports' ||
|
|
741
|
+
location.pathname === '/cart-recovery/open-carts' ||
|
|
742
|
+
location.pathname === '/cart-recovery/recovery-actions'
|
|
720
743
|
}
|
|
721
744
|
>
|
|
722
745
|
<GraphUp />
|
|
723
|
-
<span>{t('
|
|
746
|
+
<span>{t('MARKETING_LOYALTY', 'Marketing & Loyalty')}</span>
|
|
724
747
|
</ContextAwareToggle>
|
|
725
748
|
<Accordion.Collapse eventKey='8'>
|
|
726
749
|
<MenuContent>
|
|
@@ -738,7 +761,7 @@ const SidebarMenuUI = (props) => {
|
|
|
738
761
|
</MenuContainer>
|
|
739
762
|
)}
|
|
740
763
|
|
|
741
|
-
{sessionState?.user?.level === 0 && (
|
|
764
|
+
{/* {sessionState?.user?.level === 0 && (
|
|
742
765
|
<MenuContainer>
|
|
743
766
|
<ContextAwareToggle
|
|
744
767
|
eventKey='9'
|
|
@@ -793,7 +816,7 @@ const SidebarMenuUI = (props) => {
|
|
|
793
816
|
</MenuContent>
|
|
794
817
|
</Accordion.Collapse>
|
|
795
818
|
</MenuContainer>
|
|
796
|
-
)}
|
|
819
|
+
)} */}
|
|
797
820
|
{sessionState?.user?.level === 0 && (
|
|
798
821
|
<MenuContainer>
|
|
799
822
|
<span>{t('SALES_CHANNELS_AND_PRODUCTS', 'Sales channels and products')}</span>
|