@controleonline/ui-common 1.2.134 → 1.2.135
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/.release/rc-manifest.json +12 -5
- package/package.json +6 -2
- package/src/react/components/CategoryForm.js +539 -539
- package/src/react/components/DefaultProvider.native.js +2 -2
- package/src/react/components/DefaultProvider.web.js +2 -2
- package/src/react/components/LinkedOrderProductsTab.js +17 -8
- package/src/react/components/LinkedOrderProductsTab.styles.js +15 -0
- package/src/react/components/documentDetails/DocumentDetailsShell.js +147 -0
- package/src/react/components/documentDetails/DocumentDetailsShell.styles.js +163 -0
- package/src/react/components/documentDetails/DocumentSheet.js +87 -0
- package/src/react/components/integrations/IntegrationHero/index.js +1 -1
- package/src/react/components/integrations/IntegrationHero/styles.js +2 -2
- package/src/react/components/integrations/IntegrationTabs/index.js +1 -1
- package/src/react/components/integrations/IntegrationTabs/styles.js +1 -1
- package/src/react/hooks/useLinkedOrderSummary.js +41 -0
- package/src/react/pages/Connections.styles.js +72 -72
- package/src/react/pages/Devices/detail/DeviceDetailHeader.js +1 -1
- package/src/react/pages/Devices/detail/DeviceDetailMovementSections.js +1 -1
- package/src/react/pages/Devices/detail/useDeviceDetailStateA.js +2 -2
- package/src/react/pages/Devices/detail/useDeviceDetailStateB.js +2 -2
- package/src/react/pages/Devices/deviceTypes/DeviceGroupCard.js +1 -1
- package/src/react/pages/Devices/deviceTypes/shared.js +2 -2
- package/src/react/pages/Devices.js +2 -2
- package/src/react/pages/Devices.styles.js +353 -353
- package/src/react/pages/Food99IntegrationPage/components/Food99CatalogTab.js +219 -219
- package/src/react/pages/Food99IntegrationPage/components/Food99OverviewTab.js +134 -134
- package/src/react/pages/Food99IntegrationPage/components/Food99PreviewModal.js +173 -173
- package/src/react/pages/Food99IntegrationPage/components/Food99QuickWalletModal.js +1 -1
- package/src/react/pages/Food99IntegrationPage/components/Food99SettingsTab.js +306 -306
- package/src/react/pages/Food99IntegrationPage/components/Food99StoreTab.js +417 -417
- package/src/react/pages/Food99IntegrationPage/index.js +1530 -1530
- package/src/react/pages/Food99IntegrationPage/styles.js +792 -792
- package/src/react/pages/IFoodIntegrationPage/components/IFoodOperationsTab.js +267 -267
- package/src/react/pages/IFoodIntegrationPage/components/IFoodOverviewTab.js +118 -118
- package/src/react/pages/IFoodIntegrationPage/components/IFoodPreviewModal.js +101 -101
- package/src/react/pages/IFoodIntegrationPage/components/IFoodStoreTab.js +150 -150
- package/src/react/pages/IFoodIntegrationPage/index.js +1298 -1298
- package/src/react/pages/Imports.js +1 -1
- package/src/react/pages/Imports.styles.js +223 -223
- package/src/react/pages/IntegrationConfigPage.js +2 -2
- package/src/react/pages/Integrations.js +2 -15
- package/src/react/pages/Integrations.styles.js +130 -130
- package/src/react/pages/LinkedInIntegrationPage.js +2 -2
- package/src/react/pages/ManagerOrderNotificationsPage.js +642 -642
- package/src/react/pages/MarketplaceIntegrationPage/components/MarketplaceProductCard.js +205 -205
- package/src/react/pages/MercadoLivreIntegrationPage.js +2 -2
- package/src/react/pages/PrinterDeviceDetailPage.js +1915 -1915
- package/src/react/pages/PrinterDeviceFormPage.js +2 -2
- package/src/react/pages/WhatsAppConnectionPage.styles.js +315 -279
- package/src/react/pages/WhatsAppProviderForm.js +1 -1
- package/src/react/pages/whatsAppConnectionHelpers.js +38 -10
- package/src/react/router/__tests__/publicRoutes.test.js +12 -0
- package/src/react/router/publicRoutes.js +3 -0
- package/src/react/utils/clientPortfolioParams.js +42 -0
- package/src/react/utils/commercialDocumentOrders.js +13 -20
- package/src/react/utils/documentFileContent.js +61 -0
- package/src/react/utils/fileUrl.js +1 -1
- package/src/react/utils/linkedOrderPayload.js +43 -0
- package/src/react/utils/orderProductsSummary.js +28 -0
- package/src/react/utils/peopleDisplay.js +8 -13
- package/src/store/connections/customActions.js +16 -14
- package/src/store/connections/index.js +109 -105
- package/src/tests/react/utils/clientPortfolioParams.test.js +30 -0
- package/src/tests/react/utils/documentFileContent.test.js +29 -0
- package/src/tests/react/utils/linkedOrderPayload.test.js +46 -0
- package/src/tests/react/utils/orderProductsSummary.test.js +24 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { StyleSheet } from 'react-native';
|
|
2
|
-
import { colors } from '@controleonline
|
|
3
|
-
import { withOpacity } from '@controleonline
|
|
2
|
+
import { colors } from '@controleonline/ui-layout/src/styles/colors';
|
|
3
|
+
import { withOpacity } from '@controleonline/ui-layout/src/styles/branding';
|
|
4
4
|
|
|
5
5
|
export const createStyles = (palette = colors) =>
|
|
6
6
|
StyleSheet.create({
|
|
@@ -8,17 +8,17 @@ export const createStyles = (palette = colors) =>
|
|
|
8
8
|
flex: 1,
|
|
9
9
|
backgroundColor: palette.background,
|
|
10
10
|
},
|
|
11
|
-
scroll: {
|
|
12
|
-
paddingHorizontal: 16,
|
|
13
|
-
paddingTop: 16,
|
|
14
|
-
paddingBottom: 32,
|
|
15
|
-
},
|
|
16
|
-
centerState: {
|
|
17
|
-
flex: 1,
|
|
18
|
-
justifyContent: 'center',
|
|
19
|
-
alignItems: 'center',
|
|
20
|
-
paddingHorizontal: 28,
|
|
21
|
-
},
|
|
11
|
+
scroll: {
|
|
12
|
+
paddingHorizontal: 16,
|
|
13
|
+
paddingTop: 16,
|
|
14
|
+
paddingBottom: 32,
|
|
15
|
+
},
|
|
16
|
+
centerState: {
|
|
17
|
+
flex: 1,
|
|
18
|
+
justifyContent: 'center',
|
|
19
|
+
alignItems: 'center',
|
|
20
|
+
paddingHorizontal: 28,
|
|
21
|
+
},
|
|
22
22
|
centerStateTitle: {
|
|
23
23
|
marginTop: 16,
|
|
24
24
|
fontSize: 18,
|
|
@@ -26,26 +26,26 @@ export const createStyles = (palette = colors) =>
|
|
|
26
26
|
color: palette.text,
|
|
27
27
|
textAlign: 'center',
|
|
28
28
|
},
|
|
29
|
-
centerStateText: {
|
|
29
|
+
centerStateText: {
|
|
30
30
|
marginTop: 8,
|
|
31
31
|
fontSize: 14,
|
|
32
32
|
lineHeight: 21,
|
|
33
33
|
color: palette.textSecondary,
|
|
34
34
|
textAlign: 'center',
|
|
35
35
|
},
|
|
36
|
-
heroCard: {
|
|
37
|
-
borderRadius: 28,
|
|
38
|
-
paddingHorizontal: 22,
|
|
39
|
-
paddingVertical: 24,
|
|
40
|
-
marginBottom: 18,
|
|
41
|
-
flexDirection: 'row',
|
|
42
|
-
alignItems: 'flex-start',
|
|
43
|
-
justifyContent: 'space-between',
|
|
44
|
-
},
|
|
45
|
-
heroCopy: {
|
|
46
|
-
flex: 1,
|
|
47
|
-
paddingRight: 16,
|
|
48
|
-
},
|
|
36
|
+
heroCard: {
|
|
37
|
+
borderRadius: 28,
|
|
38
|
+
paddingHorizontal: 22,
|
|
39
|
+
paddingVertical: 24,
|
|
40
|
+
marginBottom: 18,
|
|
41
|
+
flexDirection: 'row',
|
|
42
|
+
alignItems: 'flex-start',
|
|
43
|
+
justifyContent: 'space-between',
|
|
44
|
+
},
|
|
45
|
+
heroCopy: {
|
|
46
|
+
flex: 1,
|
|
47
|
+
paddingRight: 16,
|
|
48
|
+
},
|
|
49
49
|
heroEyebrow: {
|
|
50
50
|
fontSize: 13,
|
|
51
51
|
fontWeight: '800',
|
|
@@ -64,7 +64,7 @@ export const createStyles = (palette = colors) =>
|
|
|
64
64
|
lineHeight: 21,
|
|
65
65
|
color: withOpacity(palette.white, 0.88),
|
|
66
66
|
},
|
|
67
|
-
heroBadge: {
|
|
67
|
+
heroBadge: {
|
|
68
68
|
width: 54,
|
|
69
69
|
height: 54,
|
|
70
70
|
borderRadius: 18,
|
|
@@ -72,13 +72,13 @@ export const createStyles = (palette = colors) =>
|
|
|
72
72
|
alignItems: 'center',
|
|
73
73
|
justifyContent: 'center',
|
|
74
74
|
},
|
|
75
|
-
companyRow: {
|
|
76
|
-
flexDirection: 'row',
|
|
77
|
-
alignItems: 'flex-start',
|
|
78
|
-
justifyContent: 'space-between',
|
|
79
|
-
marginBottom: 18,
|
|
80
|
-
gap: 12,
|
|
81
|
-
},
|
|
75
|
+
companyRow: {
|
|
76
|
+
flexDirection: 'row',
|
|
77
|
+
alignItems: 'flex-start',
|
|
78
|
+
justifyContent: 'space-between',
|
|
79
|
+
marginBottom: 18,
|
|
80
|
+
gap: 12,
|
|
81
|
+
},
|
|
82
82
|
sectionTitle: {
|
|
83
83
|
fontSize: 13,
|
|
84
84
|
fontWeight: '700',
|
|
@@ -90,7 +90,7 @@ export const createStyles = (palette = colors) =>
|
|
|
90
90
|
fontWeight: '800',
|
|
91
91
|
color: palette.text,
|
|
92
92
|
},
|
|
93
|
-
companyBadge: {
|
|
93
|
+
companyBadge: {
|
|
94
94
|
borderRadius: 999,
|
|
95
95
|
paddingHorizontal: 12,
|
|
96
96
|
paddingVertical: 8,
|
|
@@ -106,27 +106,27 @@ export const createStyles = (palette = colors) =>
|
|
|
106
106
|
backgroundColor: palette.white,
|
|
107
107
|
padding: 18,
|
|
108
108
|
},
|
|
109
|
-
channelTopRow: {
|
|
110
|
-
flexDirection: 'row',
|
|
111
|
-
alignItems: 'center',
|
|
112
|
-
justifyContent: 'space-between',
|
|
113
|
-
marginBottom: 16,
|
|
114
|
-
gap: 12,
|
|
115
|
-
},
|
|
116
|
-
channelIconWrap: {
|
|
117
|
-
width: 56,
|
|
118
|
-
height: 56,
|
|
119
|
-
borderRadius: 18,
|
|
120
|
-
alignItems: 'center',
|
|
121
|
-
justifyContent: 'center',
|
|
122
|
-
},
|
|
109
|
+
channelTopRow: {
|
|
110
|
+
flexDirection: 'row',
|
|
111
|
+
alignItems: 'center',
|
|
112
|
+
justifyContent: 'space-between',
|
|
113
|
+
marginBottom: 16,
|
|
114
|
+
gap: 12,
|
|
115
|
+
},
|
|
116
|
+
channelIconWrap: {
|
|
117
|
+
width: 56,
|
|
118
|
+
height: 56,
|
|
119
|
+
borderRadius: 18,
|
|
120
|
+
alignItems: 'center',
|
|
121
|
+
justifyContent: 'center',
|
|
122
|
+
},
|
|
123
123
|
channelStatusPill: {
|
|
124
124
|
borderRadius: 999,
|
|
125
125
|
backgroundColor: palette.background,
|
|
126
126
|
paddingHorizontal: 12,
|
|
127
127
|
paddingVertical: 8,
|
|
128
128
|
},
|
|
129
|
-
channelStatusText: {
|
|
129
|
+
channelStatusText: {
|
|
130
130
|
fontSize: 13,
|
|
131
131
|
fontWeight: '700',
|
|
132
132
|
color: palette.textSecondary,
|
|
@@ -137,25 +137,25 @@ export const createStyles = (palette = colors) =>
|
|
|
137
137
|
color: palette.text,
|
|
138
138
|
marginBottom: 8,
|
|
139
139
|
},
|
|
140
|
-
channelDescription: {
|
|
140
|
+
channelDescription: {
|
|
141
141
|
fontSize: 14,
|
|
142
142
|
lineHeight: 21,
|
|
143
143
|
color: palette.textSecondary,
|
|
144
144
|
marginBottom: 18,
|
|
145
145
|
},
|
|
146
|
-
metaRow: {
|
|
147
|
-
flexDirection: 'row',
|
|
148
|
-
gap: 12,
|
|
149
|
-
marginBottom: 16,
|
|
150
|
-
},
|
|
151
|
-
metaItem: {
|
|
146
|
+
metaRow: {
|
|
147
|
+
flexDirection: 'row',
|
|
148
|
+
gap: 12,
|
|
149
|
+
marginBottom: 16,
|
|
150
|
+
},
|
|
151
|
+
metaItem: {
|
|
152
152
|
flex: 1,
|
|
153
153
|
borderRadius: 18,
|
|
154
154
|
backgroundColor: palette.background,
|
|
155
155
|
paddingHorizontal: 14,
|
|
156
156
|
paddingVertical: 14,
|
|
157
157
|
},
|
|
158
|
-
metaLabel: {
|
|
158
|
+
metaLabel: {
|
|
159
159
|
fontSize: 12,
|
|
160
160
|
fontWeight: '700',
|
|
161
161
|
color: palette.textSecondary,
|
|
@@ -166,11 +166,11 @@ export const createStyles = (palette = colors) =>
|
|
|
166
166
|
fontWeight: '800',
|
|
167
167
|
color: palette.text,
|
|
168
168
|
},
|
|
169
|
-
previewList: {
|
|
170
|
-
gap: 12,
|
|
171
|
-
},
|
|
172
|
-
previewRow: {
|
|
173
|
-
flexDirection: 'row',
|
|
169
|
+
previewList: {
|
|
170
|
+
gap: 12,
|
|
171
|
+
},
|
|
172
|
+
previewRow: {
|
|
173
|
+
flexDirection: 'row',
|
|
174
174
|
alignItems: 'center',
|
|
175
175
|
justifyContent: 'space-between',
|
|
176
176
|
borderRadius: 18,
|
|
@@ -179,7 +179,7 @@ export const createStyles = (palette = colors) =>
|
|
|
179
179
|
paddingVertical: 14,
|
|
180
180
|
gap: 12,
|
|
181
181
|
},
|
|
182
|
-
previewName: {
|
|
182
|
+
previewName: {
|
|
183
183
|
fontSize: 15,
|
|
184
184
|
fontWeight: '700',
|
|
185
185
|
color: palette.text,
|
|
@@ -200,17 +200,17 @@ export const createStyles = (palette = colors) =>
|
|
|
200
200
|
paddingHorizontal: 14,
|
|
201
201
|
paddingVertical: 16,
|
|
202
202
|
},
|
|
203
|
-
emptyInlineText: {
|
|
203
|
+
emptyInlineText: {
|
|
204
204
|
fontSize: 14,
|
|
205
205
|
lineHeight: 21,
|
|
206
206
|
color: palette.textSecondary,
|
|
207
207
|
},
|
|
208
|
-
actionRow: {
|
|
209
|
-
marginTop: 18,
|
|
210
|
-
flexDirection: 'row',
|
|
211
|
-
alignItems: 'center',
|
|
212
|
-
justifyContent: 'space-between',
|
|
213
|
-
},
|
|
208
|
+
actionRow: {
|
|
209
|
+
marginTop: 18,
|
|
210
|
+
flexDirection: 'row',
|
|
211
|
+
alignItems: 'center',
|
|
212
|
+
justifyContent: 'space-between',
|
|
213
|
+
},
|
|
214
214
|
actionText: {
|
|
215
215
|
fontSize: 15,
|
|
216
216
|
fontWeight: '800',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Text, TextInput, TouchableOpacity, View } from 'react-native';
|
|
3
3
|
import Icon from 'react-native-vector-icons/Feather';
|
|
4
|
-
import { withOpacity } from '@controleonline
|
|
4
|
+
import { withOpacity } from '@controleonline/ui-layout/src/styles/branding';
|
|
5
5
|
import styles from '../../DeviceDetailPage.styles';
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -5,7 +5,7 @@ import Formatter from '@controleonline/ui-common/src/utils/formatter';
|
|
|
5
5
|
import styles from '../../DeviceDetailPage.styles';
|
|
6
6
|
import { hex } from './deviceDetailConstants';
|
|
7
7
|
import { paymentIcon } from './deviceDetailHelpers';
|
|
8
|
-
import { withOpacity } from '@controleonline
|
|
8
|
+
import { withOpacity } from '@controleonline/ui-layout/src/styles/branding';
|
|
9
9
|
import { inlineStyle_1301_61 } from '../../DeviceDetailPage.styles';
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -2,8 +2,8 @@ import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
|
2
2
|
import { useNavigation, useRoute } from '@react-navigation/native';
|
|
3
3
|
import { useStore } from '@store';
|
|
4
4
|
import { useMessage } from '@controleonline/ui-common/src/react/components/MessageService';
|
|
5
|
-
import { resolveThemePalette } from '@controleonline
|
|
6
|
-
import { colors } from '@controleonline
|
|
5
|
+
import { resolveThemePalette } from '@controleonline/ui-layout/src/styles/branding';
|
|
6
|
+
import { colors } from '@controleonline/ui-layout/src/styles/colors';
|
|
7
7
|
import packageJson from '@package';
|
|
8
8
|
import { canDisplayChangePrinter, DISPLAY_AUTO_PRINT_PRODUCT_CONFIG_KEY, DEVICE_ALERT_SOUND_ENABLED_KEY, DEVICE_ALERT_SOUND_URL_KEY, DEVICE_RUNTIME_DEBUG_INFO_ENABLED_KEY, isPosAutoPrintEnabled, isTruthyValue, parseConfigsObject, POS_PRODUCT_SHOWCASE_CONFIG_KEY, getPosOperationModeOption, isAndroidKioskEnabled, isAndroidLauncherEnabled, isPosDeliveryEnabled, resolvePosCheckOrderManagementMode, resolvePosCheckOrderTypeForShop, resolveDeviceOrderVisibility, resolvePosCashManagementMode, resolvePosOperationMode, resolvePosPrintMode } from '@controleonline/ui-common/src/react/config/deviceConfigBootstrap';
|
|
9
9
|
import { filterDeviceConfigsByCompany, getCompanyPaymentDeviceOptions, getPaymentGatewayFromConfigs, isPaymentCapableDeviceConfig, isPdvPrinterEnabled, normalizeDeviceId, normalizeEntityId, ORDER_PAYMENT_DEVICE_CONFIG_KEY } from '@controleonline/ui-common/src/react/utils/paymentDevices';
|
|
@@ -2,8 +2,8 @@ import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
|
2
2
|
import { useNavigation, useRoute } from '@react-navigation/native';
|
|
3
3
|
import { useStore } from '@store';
|
|
4
4
|
import { useMessage } from '@controleonline/ui-common/src/react/components/MessageService';
|
|
5
|
-
import { resolveThemePalette } from '@controleonline
|
|
6
|
-
import { colors } from '@controleonline
|
|
5
|
+
import { resolveThemePalette } from '@controleonline/ui-layout/src/styles/branding';
|
|
6
|
+
import { colors } from '@controleonline/ui-layout/src/styles/colors';
|
|
7
7
|
import packageJson from '@package';
|
|
8
8
|
import {
|
|
9
9
|
canDisplayChangePrinter, DEVICE_ANDROID_KIOSK_ENABLED_CONFIG_KEY, DEVICE_ANDROID_LAUNCHER_ENABLED_CONFIG_KEY,
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
findDeviceConfigByType,
|
|
7
7
|
isCurrentDeviceGroup,
|
|
8
8
|
} from '../currentDevice';
|
|
9
|
-
import {withOpacity} from '@controleonline
|
|
9
|
+
import {withOpacity} from '@controleonline/ui-layout/src/styles/branding';
|
|
10
10
|
import {
|
|
11
11
|
getDeviceConfigType,
|
|
12
12
|
isManagedNetworkDeviceType,
|
|
@@ -23,8 +23,8 @@ import {
|
|
|
23
23
|
normalizeEntityId,
|
|
24
24
|
} from '@controleonline/ui-common/src/react/utils/paymentDevices';
|
|
25
25
|
import {resolveOperationalDeviceType} from '@controleonline/ui-common/src/react/utils/deviceRuntime';
|
|
26
|
-
import {resolveThemePalette, withOpacity} from '@controleonline
|
|
27
|
-
import {colors} from '@controleonline
|
|
26
|
+
import {resolveThemePalette, withOpacity} from '@controleonline/ui-layout/src/styles/branding';
|
|
27
|
+
import {colors} from '@controleonline/ui-layout/src/styles/colors';
|
|
28
28
|
import Icon from 'react-native-vector-icons/Feather';
|
|
29
29
|
import DefaultTable from '@controleonline/ui-default/src/react/components/table/DefaultTable';
|
|
30
30
|
import {
|
|
@@ -3,8 +3,8 @@ import {Text, TouchableOpacity, View} from 'react-native';
|
|
|
3
3
|
import {SafeAreaView} from 'react-native-safe-area-context';
|
|
4
4
|
import {useNavigation} from '@react-navigation/native';
|
|
5
5
|
import {useStore} from '@store';
|
|
6
|
-
import {resolveThemePalette} from '@controleonline
|
|
7
|
-
import {colors} from '@controleonline
|
|
6
|
+
import {resolveThemePalette} from '@controleonline/ui-layout/src/styles/branding';
|
|
7
|
+
import {colors} from '@controleonline/ui-layout/src/styles/colors';
|
|
8
8
|
import CompactFilterSelector from '@controleonline/ui-default/src/react/components/filters/CompactFilterSelector';
|
|
9
9
|
import {PDV_DEVICE_TYPE} from '@controleonline/ui-common/src/react/utils/printerDevices';
|
|
10
10
|
import Icon from 'react-native-vector-icons/Feather';
|