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.
- package/_bundles/{ordering-ui-admin.0bfe9a0aef33a990bc0a.js → ordering-ui-admin.7b1ded1d480e937548f3.js} +2 -2
- package/_bundles/{ordering-ui-admin.0bfe9a0aef33a990bc0a.js.LICENSE.txt → ordering-ui-admin.7b1ded1d480e937548f3.js.LICENSE.txt} +0 -0
- package/_modules/components/BusinessIntelligence/Reports/index.js +3 -27
- package/_modules/components/BusinessIntelligence/Reports/styles.js +2 -9
- package/_modules/components/Loyalty/RewardsPrograms/index.js +12 -38
- package/_modules/components/Loyalty/RewardsPrograms/styles.js +6 -13
- package/_modules/components/Marketing/CampaignHeader/index.js +2 -5
- package/_modules/components/Marketing/CampaignHeader/styles.js +4 -7
- package/_modules/components/Marketing/CampaignList/index.js +4 -8
- package/_modules/components/Marketing/CampaignList/styles.js +22 -30
- package/_modules/components/Marketing/CampaignListing/index.js +3 -29
- package/_modules/components/OrderingProducts/OrderingProductDetails/index.js +4 -2
- package/_modules/components/Orders/CurrencyFilter/index.js +24 -47
- package/_modules/components/Orders/OrderBill/index.js +40 -11
- package/_modules/components/Orders/OrderDetails/index.js +2 -1
- package/_modules/components/Orders/OrdersTable/index.js +5 -2
- package/_modules/components/Orders/ProductItemAccordion/index.js +10 -5
- package/_modules/components/Settings/PluginList/index.js +31 -1
- package/_modules/components/Settings/SettingsDetail/index.js +3 -40
- package/_modules/components/Settings/SettingsDetail/styles.js +13 -26
- package/_modules/components/Settings/SettingsList/index.js +6 -43
- package/_modules/components/SidebarMenu/index.js +17 -20
- package/_modules/components/Stores/BusinessMenu/index.js +5 -36
- package/_modules/components/Stores/BusinessMenu/styles.js +19 -27
- package/_modules/components/Stores/BusinessPaymentMethods/index.js +16 -53
- package/_modules/components/Stores/BusinessProductAddForm/index.js +4 -2
- package/_modules/components/Stores/BusinessesListingHeader/index.js +7 -1
- package/_modules/components/Stores/ImportersList/index.js +2 -5
- package/_modules/components/Stores/ImportersList/styles.js +15 -18
- package/_modules/components/Stores/ImportersListing/index.js +4 -31
- package/_modules/components/Stores/PaymentOption/index.js +7 -12
- package/_modules/components/Stores/PaymentOptionMethods/index.js +4 -9
- package/_modules/components/Stores/PaymentOptionPaypal/index.js +4 -9
- package/_modules/components/Stores/PaymentOptionSquare/index.js +4 -9
- package/_modules/components/Stores/PaymentOptionStripeDirect/index.js +5 -10
- package/_modules/components/Stores/PaymentOptionStripeDirect/styles.js +5 -10
- package/_modules/components/Stores/PaymethodOptionPaypalExpress/index.js +4 -9
- package/_modules/components/Stores/PaymethodOptionStripeConnect/index.js +4 -9
- package/_modules/components/Stores/PaymethodOptionStripeRedirect/index.js +4 -9
- package/_modules/config/constants.js +412 -2
- package/package.json +1 -1
- package/src/components/BusinessIntelligence/Reports/index.js +4 -18
- package/src/components/BusinessIntelligence/Reports/styles.js +0 -11
- package/src/components/Loyalty/RewardsPrograms/index.js +5 -18
- package/src/components/Loyalty/RewardsPrograms/styles.js +0 -10
- package/src/components/Marketing/CampaignHeader/index.js +2 -3
- package/src/components/Marketing/CampaignHeader/styles.js +0 -8
- package/src/components/Marketing/CampaignList/index.js +3 -5
- package/src/components/Marketing/CampaignList/styles.js +0 -16
- package/src/components/Marketing/CampaignListing/index.js +2 -18
- package/src/components/OrderingProducts/OrderingProductDetails/index.js +1 -1
- package/src/components/Orders/CurrencyFilter/index.js +22 -41
- package/src/components/Orders/OrderBill/index.js +15 -15
- package/src/components/Orders/OrderDetails/index.js +1 -0
- package/src/components/Orders/OrdersTable/index.js +2 -2
- package/src/components/Orders/ProductItemAccordion/index.js +4 -3
- package/src/components/Settings/PluginList/index.js +2 -2
- package/src/components/Settings/SettingsDetail/index.js +2 -23
- package/src/components/Settings/SettingsDetail/styles.js +13 -8
- package/src/components/Settings/SettingsList/index.js +1 -24
- package/src/components/SidebarMenu/index.js +17 -17
- package/src/components/Stores/BusinessMenu/index.js +3 -21
- package/src/components/Stores/BusinessMenu/styles.js +0 -15
- package/src/components/Stores/BusinessPaymentMethods/index.js +32 -62
- package/src/components/Stores/BusinessProductAddForm/index.js +1 -1
- package/src/components/Stores/BusinessesListingHeader/index.js +2 -2
- package/src/components/Stores/ImportersList/index.js +2 -3
- package/src/components/Stores/ImportersList/styles.js +1 -9
- package/src/components/Stores/ImportersListing/index.js +0 -19
- package/src/components/Stores/PaymentOption/index.js +4 -9
- package/src/components/Stores/PaymentOptionMethods/index.js +3 -8
- package/src/components/Stores/PaymentOptionPaypal/index.js +3 -8
- package/src/components/Stores/PaymentOptionSquare/index.js +3 -8
- package/src/components/Stores/PaymentOptionStripeDirect/index.js +3 -8
- package/src/components/Stores/PaymentOptionStripeDirect/styles.js +0 -8
- package/src/components/Stores/PaymethodOptionPaypalExpress/index.js +3 -8
- package/src/components/Stores/PaymethodOptionStripeConnect/index.js +3 -8
- package/src/components/Stores/PaymethodOptionStripeRedirect/index.js +3 -8
- 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={() =>
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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')}
|