ordering-ui-admin-external 1.29.3 → 1.30.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.
Files changed (53) hide show
  1. package/_bundles/{ordering-ui-admin.e0348521ef103574aa53.js → ordering-ui-admin.081514a6ad5ea7c07ff7.js} +2 -2
  2. package/_modules/components/Delivery/DriversGroupAutoassign/index.js +11 -2
  3. package/_modules/components/Delivery/DriversGroupAutoassign/styles.js +28 -25
  4. package/_modules/components/Delivery/DriversMarkAsBusy/index.js +24 -4
  5. package/_modules/components/Delivery/DriversMarkAsBusy/styles.js +1 -1
  6. package/_modules/components/Home/HomePage/index.js +4 -1
  7. package/_modules/components/Marketing/BannerDetails/AddBanner.js +15 -1
  8. package/_modules/components/Marketing/BannerDetails/Businesses/index.js +118 -0
  9. package/_modules/components/Marketing/BannerDetails/Businesses/styles.js +47 -0
  10. package/_modules/components/Marketing/BannerDetails/index.js +47 -14
  11. package/_modules/components/Marketing/BannerDetails/styles.js +5 -3
  12. package/_modules/components/MyProducts/OrderingWebsite/index.js +1 -1
  13. package/_modules/components/Orders/CreateCustomOrder/SelectCustomer/index.js +4 -0
  14. package/_modules/components/Orders/CreateCustomOrder/SelectProducts/index.js +68 -64
  15. package/_modules/components/Orders/CreateCustomOrder/SelectProducts/styles.js +22 -29
  16. package/_modules/components/Orders/OrdersContentHeader/index.js +1 -1
  17. package/_modules/components/Orders/OrdersFilterGroup/index.js +42 -2
  18. package/_modules/components/Orders/OrdersFilterGroup/styles.js +13 -3
  19. package/_modules/components/Shared/Schedule/index.js +2 -2
  20. package/_modules/components/SidebarMenu/index.js +6 -2
  21. package/_modules/components/Stores/BusinessProductsListing/index.js +17 -17
  22. package/_modules/components/Stores/BusinessQRCodeOption/index.js +2 -2
  23. package/_modules/components/Stores/BusinessSummary/index.js +8 -8
  24. package/_modules/components/Users/UsersList/index.js +7 -3
  25. package/_modules/components/Users/UsersList/styles.js +1 -1
  26. package/index-template.js +1 -1
  27. package/package.json +2 -2
  28. package/src/components/Delivery/DriversGroupAutoassign/index.js +7 -0
  29. package/src/components/Delivery/DriversGroupAutoassign/styles.js +4 -0
  30. package/src/components/Delivery/DriversMarkAsBusy/index.js +22 -1
  31. package/src/components/Delivery/DriversMarkAsBusy/styles.js +2 -0
  32. package/src/components/Home/HomePage/index.js +4 -2
  33. package/src/components/Marketing/BannerDetails/AddBanner.js +23 -2
  34. package/src/components/Marketing/BannerDetails/Businesses/index.js +117 -0
  35. package/src/components/Marketing/BannerDetails/Businesses/styles.js +96 -0
  36. package/src/components/Marketing/BannerDetails/index.js +42 -6
  37. package/src/components/Marketing/BannerDetails/styles.js +7 -0
  38. package/src/components/MyProducts/OrderingWebsite/index.js +2 -1
  39. package/src/components/Orders/CreateCustomOrder/SelectCustomer/index.js +6 -1
  40. package/src/components/Orders/CreateCustomOrder/SelectProducts/index.js +54 -73
  41. package/src/components/Orders/CreateCustomOrder/SelectProducts/styles.js +54 -53
  42. package/src/components/Orders/OrdersContentHeader/index.js +1 -1
  43. package/src/components/Orders/OrdersFilterGroup/index.js +24 -2
  44. package/src/components/Orders/OrdersFilterGroup/styles.js +41 -0
  45. package/src/components/Settings/SettingsList/index.js +89 -89
  46. package/src/components/Shared/Schedule/index.js +1 -1
  47. package/src/components/SidebarMenu/index.js +8 -2
  48. package/src/components/Stores/BusinessProductsListing/index.js +5 -3
  49. package/src/components/Stores/BusinessQRCodeOption/index.js +5 -3
  50. package/src/components/Stores/BusinessSummary/index.js +5 -3
  51. package/src/components/Users/UsersList/index.js +16 -1
  52. package/src/components/Users/UsersList/styles.js +6 -3
  53. /package/_bundles/{ordering-ui-admin.e0348521ef103574aa53.js.LICENSE.txt → ordering-ui-admin.081514a6ad5ea7c07ff7.js.LICENSE.txt} +0 -0
@@ -222,9 +222,11 @@ const BusinessProductsListingUI = (props) => {
222
222
  }
223
223
 
224
224
  const handleOpenSite = () => {
225
- const storeUrl = configs?.site_url?.value
226
- ? `${checkSiteUrl(configs?.site_url?.value)}store/${businessState?.business?.slug}`
227
- : `https://${ordering.project}.tryordering.com/store/${businessState?.business?.slug}`
225
+ const storeUrl = siteState?.site?.domain && siteState?.site?.ssl_process_status === 'ended'
226
+ ? `https://${siteState?.site?.domain}/store/${businessState?.business?.slug}`
227
+ : configs?.site_url?.value
228
+ ? `${checkSiteUrl(configs?.site_url?.value)}store/${businessState?.business?.slug}`
229
+ : `https://${ordering.project}.tryordering.com/store/${businessState?.business?.slug}`
228
230
  window.open(storeUrl, '_blank')
229
231
  }
230
232
 
@@ -60,9 +60,11 @@ export const BusinessQRCodeOption = (props) => {
60
60
  })
61
61
  return
62
62
  }
63
- const storeUrl = configs?.site_url?.value
64
- ? `${checkSiteUrl(configs?.site_url?.value)}store/${business?.slug}`
65
- : `https://${ordering.project}.tryordering.com/store/${business?.slug}`
63
+ const storeUrl = siteState?.site?.domain && siteState?.site?.ssl_process_status === 'ended'
64
+ ? `https://${siteState?.site?.domain}/store/${business?.slug}`
65
+ : configs?.site_url?.value
66
+ ? `${checkSiteUrl(configs?.site_url?.value)}store/${business?.slug}`
67
+ : `https://${ordering.project}.tryordering.com/store/${business?.slug}`
66
68
  const tsNumber = item?.key !== 'pick_up'
67
69
  ? (item?.key === 'eat_in'
68
70
  ? `&table_number=${numberRef?.current?.value}`
@@ -60,9 +60,11 @@ export const BusinessSummary = (props) => {
60
60
  }
61
61
 
62
62
  const handleOpenSite = () => {
63
- const storeUrl = configs?.site_url?.value
64
- ? `${checkSiteUrl(configs?.site_url?.value)}store/${businessState?.business?.slug}`
65
- : `https://${ordering.project}.tryordering.com/store/${businessState?.business?.slug}`
63
+ const storeUrl = siteState?.site?.domain && siteState?.site?.ssl_process_status === 'ended'
64
+ ? `https://${siteState?.site?.domain}/store/${businessState?.business?.slug}`
65
+ : configs?.site_url?.value
66
+ ? `${checkSiteUrl(configs?.site_url?.value)}store/${businessState?.business?.slug}`
67
+ : `https://${ordering.project}.tryordering.com/store/${businessState?.business?.slug}`
66
68
  window.open(storeUrl, '_blank')
67
69
  }
68
70
 
@@ -138,9 +138,10 @@ export const UsersList = (props) => {
138
138
  <Square />
139
139
  )}
140
140
  </CheckBoxWrapper>
141
- {t('USER', 'User')}
141
+ {t('ID', 'Id')}
142
142
  </AllCheckWrapper>
143
143
  </th>
144
+ <th>{t('USER', 'User')}</th>
144
145
  <th>{t('PHONE', 'Phone')}</th>
145
146
  <th>{t('TYPE', 'Type')}</th>
146
147
  <th className='amout-orders '>{t('AMOUNT_OF_ORDERS', 'Amount of orders')}</th>
@@ -156,6 +157,13 @@ export const UsersList = (props) => {
156
157
  <CheckBoxWrapper>
157
158
  <Skeleton width={20} height={20} />
158
159
  </CheckBoxWrapper>
160
+ <InfoBlock>
161
+ <p><Skeleton width={70} /></p>
162
+ </InfoBlock>
163
+ </UserMainInfo>
164
+ </td>
165
+ <td>
166
+ <UserMainInfo>
159
167
  <WrapperImage isSkeleton>
160
168
  <Skeleton width={45} height={45} />
161
169
  </WrapperImage>
@@ -201,6 +209,13 @@ export const UsersList = (props) => {
201
209
  <Square />
202
210
  )}
203
211
  </CheckBoxWrapper>
212
+ <InfoBlock>
213
+ <p className='bold'>{user?.id}</p>
214
+ </InfoBlock>
215
+ </UserMainInfo>
216
+ </td>
217
+ <td>
218
+ <UserMainInfo>
204
219
  <WrapperImage>
205
220
  {user?.photo ? (
206
221
  <Image bgimage={optimizeImage(user?.photo, 'h_50,c_limit')} />
@@ -18,15 +18,18 @@ export const UsersTable = styled.table`
18
18
  padding: 10px 0;
19
19
  font-size: 14px;
20
20
  &:first-child {
21
- width: 40%;
21
+ width: 10%;
22
22
  }
23
23
  &:nth-child(2) {
24
+ width: 35%;
25
+ }
26
+ &:nth-child(3) {
24
27
  width: 20%;
25
28
  }
26
29
 
27
- &:nth-child(4),
30
+ &:nth-child(5),
28
31
 
29
- &:nth-child(5) {
32
+ &:nth-child(6) {
30
33
  width: 10%;
31
34
  }
32
35
  }