ordering-ui-admin-external 1.3.1 → 1.3.3

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 (79) hide show
  1. package/_bundles/{ordering-ui-admin.0bfe9a0aef33a990bc0a.js → ordering-ui-admin.7b1ded1d480e937548f3.js} +2 -2
  2. package/_bundles/{ordering-ui-admin.0bfe9a0aef33a990bc0a.js.LICENSE.txt → ordering-ui-admin.7b1ded1d480e937548f3.js.LICENSE.txt} +0 -0
  3. package/_modules/components/BusinessIntelligence/Reports/index.js +3 -27
  4. package/_modules/components/BusinessIntelligence/Reports/styles.js +2 -9
  5. package/_modules/components/Loyalty/RewardsPrograms/index.js +12 -38
  6. package/_modules/components/Loyalty/RewardsPrograms/styles.js +6 -13
  7. package/_modules/components/Marketing/CampaignHeader/index.js +2 -5
  8. package/_modules/components/Marketing/CampaignHeader/styles.js +4 -7
  9. package/_modules/components/Marketing/CampaignList/index.js +4 -8
  10. package/_modules/components/Marketing/CampaignList/styles.js +22 -30
  11. package/_modules/components/Marketing/CampaignListing/index.js +3 -29
  12. package/_modules/components/OrderingProducts/OrderingProductDetails/index.js +4 -2
  13. package/_modules/components/Orders/CurrencyFilter/index.js +24 -47
  14. package/_modules/components/Orders/OrderBill/index.js +40 -11
  15. package/_modules/components/Orders/OrderDetails/index.js +2 -1
  16. package/_modules/components/Orders/OrdersTable/index.js +5 -2
  17. package/_modules/components/Orders/ProductItemAccordion/index.js +10 -5
  18. package/_modules/components/Settings/PluginList/index.js +31 -1
  19. package/_modules/components/Settings/SettingsDetail/index.js +3 -40
  20. package/_modules/components/Settings/SettingsDetail/styles.js +13 -26
  21. package/_modules/components/Settings/SettingsList/index.js +6 -43
  22. package/_modules/components/SidebarMenu/index.js +17 -20
  23. package/_modules/components/Stores/BusinessMenu/index.js +5 -36
  24. package/_modules/components/Stores/BusinessMenu/styles.js +19 -27
  25. package/_modules/components/Stores/BusinessPaymentMethods/index.js +16 -53
  26. package/_modules/components/Stores/BusinessProductAddForm/index.js +4 -2
  27. package/_modules/components/Stores/BusinessesListingHeader/index.js +7 -1
  28. package/_modules/components/Stores/ImportersList/index.js +2 -5
  29. package/_modules/components/Stores/ImportersList/styles.js +15 -18
  30. package/_modules/components/Stores/ImportersListing/index.js +4 -31
  31. package/_modules/components/Stores/PaymentOption/index.js +7 -12
  32. package/_modules/components/Stores/PaymentOptionMethods/index.js +4 -9
  33. package/_modules/components/Stores/PaymentOptionPaypal/index.js +4 -9
  34. package/_modules/components/Stores/PaymentOptionSquare/index.js +4 -9
  35. package/_modules/components/Stores/PaymentOptionStripeDirect/index.js +5 -10
  36. package/_modules/components/Stores/PaymentOptionStripeDirect/styles.js +5 -10
  37. package/_modules/components/Stores/PaymethodOptionPaypalExpress/index.js +4 -9
  38. package/_modules/components/Stores/PaymethodOptionStripeConnect/index.js +4 -9
  39. package/_modules/components/Stores/PaymethodOptionStripeRedirect/index.js +4 -9
  40. package/_modules/config/constants.js +412 -2
  41. package/package.json +1 -1
  42. package/src/components/BusinessIntelligence/Reports/index.js +4 -18
  43. package/src/components/BusinessIntelligence/Reports/styles.js +0 -11
  44. package/src/components/Loyalty/RewardsPrograms/index.js +5 -18
  45. package/src/components/Loyalty/RewardsPrograms/styles.js +0 -10
  46. package/src/components/Marketing/CampaignHeader/index.js +2 -3
  47. package/src/components/Marketing/CampaignHeader/styles.js +0 -8
  48. package/src/components/Marketing/CampaignList/index.js +3 -5
  49. package/src/components/Marketing/CampaignList/styles.js +0 -16
  50. package/src/components/Marketing/CampaignListing/index.js +2 -18
  51. package/src/components/OrderingProducts/OrderingProductDetails/index.js +1 -1
  52. package/src/components/Orders/CurrencyFilter/index.js +22 -41
  53. package/src/components/Orders/OrderBill/index.js +15 -15
  54. package/src/components/Orders/OrderDetails/index.js +1 -0
  55. package/src/components/Orders/OrdersTable/index.js +2 -2
  56. package/src/components/Orders/ProductItemAccordion/index.js +4 -3
  57. package/src/components/Settings/PluginList/index.js +2 -2
  58. package/src/components/Settings/SettingsDetail/index.js +2 -23
  59. package/src/components/Settings/SettingsDetail/styles.js +13 -8
  60. package/src/components/Settings/SettingsList/index.js +1 -24
  61. package/src/components/SidebarMenu/index.js +17 -17
  62. package/src/components/Stores/BusinessMenu/index.js +3 -21
  63. package/src/components/Stores/BusinessMenu/styles.js +0 -15
  64. package/src/components/Stores/BusinessPaymentMethods/index.js +32 -62
  65. package/src/components/Stores/BusinessProductAddForm/index.js +1 -1
  66. package/src/components/Stores/BusinessesListingHeader/index.js +2 -2
  67. package/src/components/Stores/ImportersList/index.js +2 -3
  68. package/src/components/Stores/ImportersList/styles.js +1 -9
  69. package/src/components/Stores/ImportersListing/index.js +0 -19
  70. package/src/components/Stores/PaymentOption/index.js +4 -9
  71. package/src/components/Stores/PaymentOptionMethods/index.js +3 -8
  72. package/src/components/Stores/PaymentOptionPaypal/index.js +3 -8
  73. package/src/components/Stores/PaymentOptionSquare/index.js +3 -8
  74. package/src/components/Stores/PaymentOptionStripeDirect/index.js +3 -8
  75. package/src/components/Stores/PaymentOptionStripeDirect/styles.js +0 -8
  76. package/src/components/Stores/PaymethodOptionPaypalExpress/index.js +3 -8
  77. package/src/components/Stores/PaymethodOptionStripeConnect/index.js +3 -8
  78. package/src/components/Stores/PaymethodOptionStripeRedirect/index.js +3 -8
  79. package/src/config/constants.js +547 -0
@@ -8,7 +8,6 @@ import { useTheme } from 'styled-components'
8
8
  import { ThreeDots, XLg } from 'react-bootstrap-icons'
9
9
  import { Dropdown, DropdownButton } from 'react-bootstrap'
10
10
  import { Confirm } from '../../Shared'
11
- import { DisabledFeatureAlert } from '../../DisabledFeatureAlert'
12
11
 
13
12
  import {
14
13
  Container,
@@ -36,8 +35,7 @@ export const PaymentOptionStripeDirect = (props) => {
36
35
  handleChangeInput,
37
36
  handleSaveClick,
38
37
  businessPaymethod,
39
- handleDeletePaymethod,
40
- isDisabledFeature
38
+ handleDeletePaymethod
41
39
  } = props
42
40
 
43
41
  const theme = useTheme()
@@ -223,8 +221,7 @@ export const PaymentOptionStripeDirect = (props) => {
223
221
  sitesState?.sites.map(site => (
224
222
  <TabOption
225
223
  key={site.id}
226
- onClick={() => !isDisabledFeature && setPaymethodInfo({ key: 'sites', value: site.id })}
227
- isDisabledFeature={isDisabledFeature}
224
+ onClick={() => setPaymethodInfo({ key: 'sites', value: site.id })}
228
225
  >
229
226
  {(changesState?.sites ?? businessPaymethod?.sites?.map(s => s.id))?.includes(site.id) ? (
230
227
  <RiCheckboxFill className='fill' />
@@ -240,8 +237,7 @@ export const PaymentOptionStripeDirect = (props) => {
240
237
  orderTypes.map(type => (
241
238
  <TabOption
242
239
  key={type.value}
243
- isDisabledFeature={isDisabledFeature}
244
- onClick={() => !isDisabledFeature && setPaymethodInfo({ key: 'allowed_order_types', value: type.value })}
240
+ onClick={() => setPaymethodInfo({ key: 'allowed_order_types', value: type.value })}
245
241
  >
246
242
  {(changesState?.allowed_order_types ?? businessPaymethod?.allowed_order_types)?.includes(type.value) ? (
247
243
  <RiCheckboxFill className='fill' />
@@ -262,7 +258,6 @@ export const PaymentOptionStripeDirect = (props) => {
262
258
  {actionState.loading ? t('LOADING', 'Loading') : t('SAVE', 'Save')}
263
259
  </Button>
264
260
  </Container>
265
- {(isDisabledFeature && (paymentTabs === 1 || paymentTabs === 2)) && (<DisabledFeatureAlert />)}
266
261
  <Confirm
267
262
  width='700px'
268
263
  title={t('WEB_APPNAME', 'Ordering')}
@@ -89,14 +89,6 @@ export const TabOption = styled.div`
89
89
  color: ${props => props.theme.colors.primary};
90
90
  }
91
91
  }
92
-
93
- ${({ isDisabledFeature }) => isDisabledFeature && css`
94
- cursor: not-allowed;
95
- opacity: 0.4;
96
- &:hover {
97
- background-color: ${props => props.theme.colors.white};
98
- }
99
- `}
100
92
  `
101
93
 
102
94
  export const TabOptionName = styled.span`
@@ -8,7 +8,6 @@ import { useTheme } from 'styled-components'
8
8
  import { ThreeDots, XLg } from 'react-bootstrap-icons'
9
9
  import { Dropdown, DropdownButton } from 'react-bootstrap'
10
10
  import { Confirm } from '../../Shared'
11
- import { DisabledFeatureAlert } from '../../DisabledFeatureAlert'
12
11
 
13
12
  import {
14
13
  Container,
@@ -36,8 +35,7 @@ export const PaymethodOptionPaypalExpress = (props) => {
36
35
  businessPaymethod,
37
36
  orderTypes,
38
37
  handleChangeBusinessPaymentState,
39
- handleDeletePaymethod,
40
- isDisabledFeature
38
+ handleDeletePaymethod
41
39
  } = props
42
40
 
43
41
  const theme = useTheme()
@@ -205,8 +203,7 @@ export const PaymethodOptionPaypalExpress = (props) => {
205
203
  sitesState?.sites.map(site => (
206
204
  <TabOption
207
205
  key={site.id}
208
- isDisabledFeature={isDisabledFeature}
209
- onClick={() => !isDisabledFeature && setPaymethodInfo({ key: 'sites', value: site.id })}
206
+ onClick={() => setPaymethodInfo({ key: 'sites', value: site.id })}
210
207
  >
211
208
  {(changesState?.sites ?? businessPaymethod?.sites?.map(s => s.id))?.includes(site.id) ? (
212
209
  <RiCheckboxFill className='fill' />
@@ -222,8 +219,7 @@ export const PaymethodOptionPaypalExpress = (props) => {
222
219
  orderTypes.map(type => (
223
220
  <TabOption
224
221
  key={type.value}
225
- isDisabledFeature={isDisabledFeature}
226
- onClick={() => !isDisabledFeature && setPaymethodInfo({ key: 'allowed_order_types', value: type.value })}
222
+ onClick={() => setPaymethodInfo({ key: 'allowed_order_types', value: type.value })}
227
223
  >
228
224
  {(changesState?.allowed_order_types ?? businessPaymethod?.allowed_order_types)?.includes(type.value) ? (
229
225
  <RiCheckboxFill className='fill' />
@@ -244,7 +240,6 @@ export const PaymethodOptionPaypalExpress = (props) => {
244
240
  {actionState.loading ? t('LOADING', 'Loading') : t('SAVE', 'Save')}
245
241
  </Button>
246
242
  </Container>
247
- {(isDisabledFeature && (paymentTabs === 1 || paymentTabs === 2)) && (<DisabledFeatureAlert />)}
248
243
  <Confirm
249
244
  width='700px'
250
245
  title={t('WEB_APPNAME', 'Ordering')}
@@ -9,7 +9,6 @@ import { useTheme } from 'styled-components'
9
9
  import { ThreeDots, XLg } from 'react-bootstrap-icons'
10
10
  import { Dropdown, DropdownButton } from 'react-bootstrap'
11
11
  import { Confirm } from '../../Shared'
12
- import { DisabledFeatureAlert } from '../../DisabledFeatureAlert'
13
12
 
14
13
  import {
15
14
  Container,
@@ -39,8 +38,7 @@ export const PaymethodOptionStripeConnect = (props) => {
39
38
  businessPaymethod,
40
39
  orderTypes,
41
40
  handleChangeBusinessPaymentState,
42
- handleDeletePaymethod,
43
- isDisabledFeature
41
+ handleDeletePaymethod
44
42
  } = props
45
43
 
46
44
  const theme = useTheme()
@@ -249,8 +247,7 @@ export const PaymethodOptionStripeConnect = (props) => {
249
247
  sitesState?.sites.map(site => (
250
248
  <TabOption
251
249
  key={site.id}
252
- isDisabledFeature={isDisabledFeature}
253
- onClick={() => !isDisabledFeature && setPaymethodInfo({ key: 'sites', value: site.id })}
250
+ onClick={() => setPaymethodInfo({ key: 'sites', value: site.id })}
254
251
  >
255
252
  {(changesState?.sites ?? businessPaymethod?.sites?.map(s => s.id))?.includes(site.id) ? (
256
253
  <RiCheckboxFill className='fill' />
@@ -266,8 +263,7 @@ export const PaymethodOptionStripeConnect = (props) => {
266
263
  orderTypes.map(type => (
267
264
  <TabOption
268
265
  key={type.value}
269
- isDisabledFeature={isDisabledFeature}
270
- onClick={() => !isDisabledFeature && setPaymethodInfo({ key: 'allowed_order_types', value: type.value })}
266
+ onClick={() => setPaymethodInfo({ key: 'allowed_order_types', value: type.value })}
271
267
  >
272
268
  {(changesState?.allowed_order_types ?? businessPaymethod?.allowed_order_types)?.includes(type.value) ? (
273
269
  <RiCheckboxFill className='fill' />
@@ -288,7 +284,6 @@ export const PaymethodOptionStripeConnect = (props) => {
288
284
  {actionState.loading ? t('LOADING', 'Loading') : t('SAVE', 'Save')}
289
285
  </Button>
290
286
  </Container>
291
- {(isDisabledFeature && (paymentTabs === 1 || paymentTabs === 2)) && (<DisabledFeatureAlert />)}
292
287
  <Confirm
293
288
  width='700px'
294
289
  title={t('WEB_APPNAME', 'Ordering')}
@@ -8,7 +8,6 @@ import { useTheme } from 'styled-components'
8
8
  import { ThreeDots, XLg } from 'react-bootstrap-icons'
9
9
  import { Dropdown, DropdownButton } from 'react-bootstrap'
10
10
  import { Confirm } from '../../Shared'
11
- import { DisabledFeatureAlert } from '../../DisabledFeatureAlert'
12
11
 
13
12
  import {
14
13
  Container,
@@ -36,8 +35,7 @@ export const PaymethodOptionStripeRedirect = (props) => {
36
35
  businessPaymethod,
37
36
  orderTypes,
38
37
  handleChangeBusinessPaymentState,
39
- handleDeletePaymethod,
40
- isDisabledFeature
38
+ handleDeletePaymethod
41
39
  } = props
42
40
 
43
41
  const theme = useTheme()
@@ -223,8 +221,7 @@ export const PaymethodOptionStripeRedirect = (props) => {
223
221
  sitesState?.sites.map(site => (
224
222
  <TabOption
225
223
  key={site.id}
226
- isDisabledFeature={isDisabledFeature}
227
- onClick={() => !isDisabledFeature && setPaymethodInfo({ key: 'sites', value: site.id })}
224
+ onClick={() => setPaymethodInfo({ key: 'sites', value: site.id })}
228
225
  >
229
226
  {(changesState?.sites ?? businessPaymethod?.sites?.map(s => s.id))?.includes(site.id) ? (
230
227
  <RiCheckboxFill className='fill' />
@@ -240,8 +237,7 @@ export const PaymethodOptionStripeRedirect = (props) => {
240
237
  orderTypes.map(type => (
241
238
  <TabOption
242
239
  key={type.value}
243
- isDisabledFeature={isDisabledFeature}
244
- onClick={() => !isDisabledFeature && setPaymethodInfo({ key: 'allowed_order_types', value: type.value })}
240
+ onClick={() => setPaymethodInfo({ key: 'allowed_order_types', value: type.value })}
245
241
  >
246
242
  {(changesState?.allowed_order_types ?? businessPaymethod?.allowed_order_types)?.includes(type.value) ? (
247
243
  <RiCheckboxFill className='fill' />
@@ -262,7 +258,6 @@ export const PaymethodOptionStripeRedirect = (props) => {
262
258
  {actionState.loading ? t('LOADING', 'Loading') : t('SAVE', 'Save')}
263
259
  </Button>
264
260
  </Container>
265
- {(isDisabledFeature && (paymentTabs === 1 || paymentTabs === 2)) && (<DisabledFeatureAlert />)}
266
261
  <Confirm
267
262
  width='700px'
268
263
  title={t('WEB_APPNAME', 'Ordering')}