@campxdev/shared 1.11.0 → 1.11.2
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/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Box, SxProps, Typography } from '@mui/material'
|
|
1
|
+
import { Box, Divider, SxProps, Typography } from '@mui/material'
|
|
2
2
|
import { Variant } from '@mui/material/styles/createTypography'
|
|
3
3
|
import _ from 'lodash'
|
|
4
4
|
import { PermissionsStore } from '../shared-state'
|
|
@@ -44,12 +44,14 @@ export interface ReportHeaderProps {
|
|
|
44
44
|
headerType?: ReportHeaderType
|
|
45
45
|
reportHeaderImageUrl?: string
|
|
46
46
|
reportHeaderImageCSS?: any
|
|
47
|
-
typographyList?: ReportHeaderTypographyProps[]
|
|
48
47
|
logoImageUrl?: string
|
|
49
48
|
logoImageCSS?: any
|
|
50
|
-
address?: ReportHeaderOptionalTypographyProps
|
|
51
49
|
recognitionDetails?: ReportHeaderOptionalTypographyProps
|
|
50
|
+
address?: ReportHeaderOptionalTypographyProps
|
|
52
51
|
phone?: ReportHeaderOptionalTypographyProps
|
|
52
|
+
showDivider?: boolean
|
|
53
|
+
dividerSx?: SxProps
|
|
54
|
+
typographyList?: ReportHeaderTypographyProps[]
|
|
53
55
|
}
|
|
54
56
|
|
|
55
57
|
export default function ReportHeader({
|
|
@@ -57,7 +59,6 @@ export default function ReportHeader({
|
|
|
57
59
|
headerType,
|
|
58
60
|
reportHeaderImageUrl,
|
|
59
61
|
reportHeaderImageCSS,
|
|
60
|
-
typographyList,
|
|
61
62
|
logoImageUrl,
|
|
62
63
|
logoImageCSS,
|
|
63
64
|
address: {
|
|
@@ -78,6 +79,9 @@ export default function ReportHeader({
|
|
|
78
79
|
text: phoneText,
|
|
79
80
|
sx: phoneSx,
|
|
80
81
|
},
|
|
82
|
+
showDivider = false,
|
|
83
|
+
dividerSx,
|
|
84
|
+
typographyList,
|
|
81
85
|
}: ReportHeaderProps) {
|
|
82
86
|
const { masterInstitutionUniqueId, institutionType } =
|
|
83
87
|
PermissionsStore.useState((s) => ({
|
|
@@ -98,6 +102,7 @@ export default function ReportHeader({
|
|
|
98
102
|
flexDirection: 'column',
|
|
99
103
|
alignItems: 'center',
|
|
100
104
|
gap: '5px',
|
|
105
|
+
marginBottom: '15px',
|
|
101
106
|
...containerSx,
|
|
102
107
|
}}
|
|
103
108
|
>
|
|
@@ -107,7 +112,7 @@ export default function ReportHeader({
|
|
|
107
112
|
style={{
|
|
108
113
|
objectFit: 'contain',
|
|
109
114
|
width: '100%',
|
|
110
|
-
height: '
|
|
115
|
+
height: '100px',
|
|
111
116
|
...reportHeaderImageCSS,
|
|
112
117
|
}}
|
|
113
118
|
src={
|
|
@@ -154,6 +159,14 @@ export default function ReportHeader({
|
|
|
154
159
|
)}
|
|
155
160
|
</>
|
|
156
161
|
)}
|
|
162
|
+
|
|
163
|
+
{showDivider && (
|
|
164
|
+
<Divider
|
|
165
|
+
flexItem
|
|
166
|
+
variant="middle"
|
|
167
|
+
sx={{ m: '15px', borderColor: '#000000', ...dividerSx }}
|
|
168
|
+
/>
|
|
169
|
+
)}
|
|
157
170
|
{typographyList &&
|
|
158
171
|
typographyList.map((s) => (
|
|
159
172
|
<Typography variant={s.variant || 'body1'} sx={s.sx}>
|
package/src/config/axios.ts
CHANGED
|
@@ -9,8 +9,8 @@ export enum PaymentsPermission {
|
|
|
9
9
|
CAN_MANAGE_PAYMENTS_PROFILE_PERMISSIONS_DELETE = 'can_manage_payments_profile_permissions_delete',
|
|
10
10
|
|
|
11
11
|
//Payments imports
|
|
12
|
-
CAN_IMPORT_RECEIPTS='
|
|
13
|
-
CAN_IMPORT_CREDITS='
|
|
12
|
+
CAN_IMPORT_RECEIPTS='can_import_receipts_view',
|
|
13
|
+
CAN_IMPORT_CREDITS='can_import_credits_view',
|
|
14
14
|
|
|
15
15
|
// Fee Counter
|
|
16
16
|
CAN_FEE_COUNTER_ACADEMIC_FEE = 'can_fee_counter_academic_fee',
|
|
@@ -564,8 +564,8 @@ export enum Permission {
|
|
|
564
564
|
CAN_FEE_COUNTER_EXAM_FEE = 'can_fee_counter_exam_fee',
|
|
565
565
|
|
|
566
566
|
//Payments imports
|
|
567
|
-
|
|
568
|
-
|
|
567
|
+
CAN_IMPORT_RECEIPTS='can_import_receipts_view',
|
|
568
|
+
CAN_IMPORT_CREDITS='can_import_credits_view',
|
|
569
569
|
|
|
570
570
|
// Fee Groups
|
|
571
571
|
CAN_FEE_GROUP_VIEW = 'can_fee_groups_view',
|