@campxdev/shared 1.11.59 → 1.11.61
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
|
@@ -138,6 +138,19 @@ const columns = [
|
|
|
138
138
|
title: 'Message',
|
|
139
139
|
dataIndex: 'message',
|
|
140
140
|
key: 'message',
|
|
141
|
+
render: (message) => (
|
|
142
|
+
<Typography sx={{ fontSize: '16px' }} variant="subtitle1">
|
|
143
|
+
{message?.split("'").map((text: string, index: number) =>
|
|
144
|
+
index % 2 === 0 ? (
|
|
145
|
+
<span key={index}>{text}</span>
|
|
146
|
+
) : (
|
|
147
|
+
<Typography key={index} sx={{ display: 'inline', fontWeight: 900 }}>
|
|
148
|
+
{text}
|
|
149
|
+
</Typography>
|
|
150
|
+
),
|
|
151
|
+
)}
|
|
152
|
+
</Typography>
|
|
153
|
+
),
|
|
141
154
|
},
|
|
142
155
|
]
|
|
143
156
|
|
|
@@ -213,10 +226,10 @@ export const TimeLineComponent = ({
|
|
|
213
226
|
}}
|
|
214
227
|
>
|
|
215
228
|
<StyledAvatar>
|
|
216
|
-
{item?.
|
|
229
|
+
{item?.fullName.charAt(0).toUpperCase()}
|
|
217
230
|
</StyledAvatar>
|
|
218
231
|
<Typography sx={{ fontSize: '13px', fontWeight: 900 }}>
|
|
219
|
-
{item?.
|
|
232
|
+
{item?.fullName}
|
|
220
233
|
</Typography>
|
|
221
234
|
</Typography>
|
|
222
235
|
</Box>
|
|
@@ -29,7 +29,7 @@ export default function LayoutWrapper({
|
|
|
29
29
|
}
|
|
30
30
|
return (
|
|
31
31
|
<ErrorBoundary>
|
|
32
|
-
{!permissions.isHomePageEnabled && (
|
|
32
|
+
{window.innerWidth > 1024 && !permissions.isHomePageEnabled && (
|
|
33
33
|
<StyledLeftNavContainer>
|
|
34
34
|
<SideNav menuItems={menu as any[]} header={sideMenuHeader} />
|
|
35
35
|
</StyledLeftNavContainer>
|
|
@@ -49,22 +49,18 @@ export default function LayoutWrapper({
|
|
|
49
49
|
: 'calc(100vh - 64px)',
|
|
50
50
|
}}
|
|
51
51
|
>
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
mr: 0.5
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
>
|
|
65
|
-
<MenuIcon />
|
|
66
|
-
</IconButton>
|
|
67
|
-
{/* <Button
|
|
52
|
+
{window.innerWidth < 1024 && (
|
|
53
|
+
<>
|
|
54
|
+
<IconButton
|
|
55
|
+
color="inherit"
|
|
56
|
+
aria-label="open drawer"
|
|
57
|
+
onClick={handleDrawer}
|
|
58
|
+
edge="start"
|
|
59
|
+
sx={{ mr: 0.5 }}
|
|
60
|
+
>
|
|
61
|
+
<MenuIcon />
|
|
62
|
+
</IconButton>
|
|
63
|
+
{/* <Button
|
|
68
64
|
onClick={() => {
|
|
69
65
|
console.log('hi')
|
|
70
66
|
}}
|
|
@@ -73,16 +69,16 @@ export default function LayoutWrapper({
|
|
|
73
69
|
>
|
|
74
70
|
<MenuIcon />
|
|
75
71
|
</Button> */}
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
72
|
+
<StyledDrawer
|
|
73
|
+
variant={'temporary'}
|
|
74
|
+
anchor="left"
|
|
75
|
+
open={open}
|
|
76
|
+
onClose={handleDrawer}
|
|
77
|
+
>
|
|
78
|
+
<SideNav menuItems={menu as any[]} header={sideMenuHeader} />
|
|
79
|
+
</StyledDrawer>
|
|
80
|
+
</>
|
|
81
|
+
)}
|
|
86
82
|
<ErrorBoundary>{children}</ErrorBoundary>
|
|
87
83
|
</StyledMainContentContainer>
|
|
88
84
|
</ErrorBoundary>
|
|
@@ -48,18 +48,19 @@ export const StyledLeftNavContainer = muiStyled('aside')(({ theme }) => ({
|
|
|
48
48
|
},
|
|
49
49
|
|
|
50
50
|
zIndex: 100,
|
|
51
|
-
|
|
52
|
-
['@media (max-width: 760px)']: {
|
|
53
|
-
display: 'none',
|
|
54
|
-
},
|
|
55
51
|
}))
|
|
56
52
|
|
|
57
53
|
export const StyledMainContentContainer = muiStyled('main')(() => ({
|
|
58
|
-
width:
|
|
54
|
+
width:
|
|
55
|
+
window.innerWidth > 1024
|
|
56
|
+
? `calc(100% - ${sideNavWidth})`
|
|
57
|
+
: '100% !important',
|
|
59
58
|
height: `calc(100vh - ${headerHeight})`,
|
|
60
59
|
position: 'fixed',
|
|
61
60
|
top: headerHeight,
|
|
62
|
-
left: sideNavWidth,
|
|
61
|
+
left: window.innerWidth > 1024 ? sideNavWidth : 0,
|
|
62
|
+
right: window.innerWidth > 1024 ? 'unset' : 0,
|
|
63
|
+
bottom: window.innerWidth > 1024 ? 'unset' : 0,
|
|
63
64
|
overflowY: 'auto',
|
|
64
65
|
|
|
65
66
|
'&::-webkit-scrollbar': {
|
|
@@ -75,13 +76,6 @@ export const StyledMainContentContainer = muiStyled('main')(() => ({
|
|
|
75
76
|
},
|
|
76
77
|
},
|
|
77
78
|
|
|
78
|
-
['@media (max-width: 760px)']: {
|
|
79
|
-
left: 0,
|
|
80
|
-
right: 0,
|
|
81
|
-
bottom: 0,
|
|
82
|
-
width: '100% !important',
|
|
83
|
-
},
|
|
84
|
-
|
|
85
79
|
// '&::-webkit-scrollbar': {
|
|
86
80
|
// width: '0.6em',
|
|
87
81
|
// height: '0.6em',
|
|
@@ -1186,6 +1186,11 @@ export enum Permission {
|
|
|
1186
1186
|
CAN_D_FORM_ADD = 'can_d_forms_add',
|
|
1187
1187
|
CAN_D_FORM_DOWNLOAD = 'can_d_forms_download',
|
|
1188
1188
|
|
|
1189
|
+
// D Form Internal Exam
|
|
1190
|
+
CAN_INTERNAL_EXAM_D_FORM_VIEW = 'can_internal_exam_d_forms_view',
|
|
1191
|
+
CAN_INTERNAL_EXAM_D_FORM_ADD = 'can_internal_exam_d_forms_add',
|
|
1192
|
+
CAN_INTERNAL_EXAM_D_FORM_DOWNLOAD = 'can_internal_exam_d_forms_download',
|
|
1193
|
+
|
|
1189
1194
|
// Bundling
|
|
1190
1195
|
CAN_VIEW_ANSWER_SHEET_REPORT = 'can_view_answer_sheet_report',
|
|
1191
1196
|
CAN_BUNDLING_VIEW = 'can_bundling_view',
|
|
@@ -1398,6 +1403,13 @@ export enum Permission {
|
|
|
1398
1403
|
CAN_CONFIGURE_FEEDBACK_FORM = 'can_configure_feedback_form',
|
|
1399
1404
|
CAN_CHANGE_FEEDBACK_STATUS = 'can_change_feedback_status',
|
|
1400
1405
|
|
|
1406
|
+
// FACILITY Feedback
|
|
1407
|
+
VIEW_FACILITY_FEEDBACKS = 'can_view_facility_feedbacks',
|
|
1408
|
+
CREATE_FACILITY_FEEDBACK = 'can_create_facility_feedback',
|
|
1409
|
+
MANAGE_TARGET_AUDIENCE_FACILITY = 'can_manage_target_audience_facility',
|
|
1410
|
+
CONFIGURE_FEEDBACK_FORM_FACILITY = 'can_configure_feedback_form_facility',
|
|
1411
|
+
CHANGE_FEEDBACK_STATUS_FACILITY = 'can_change_feedback_status_facility',
|
|
1412
|
+
|
|
1401
1413
|
//Feedback Questions
|
|
1402
1414
|
CAN_VIEW_FEEDBACK_QUESTIONS = 'can_view_feedback_questions',
|
|
1403
1415
|
CAN_CREATE_FEEDBACK_QUESTION = 'can_create_feedback_question',
|
|
@@ -1856,6 +1868,9 @@ export interface IPermissions {
|
|
|
1856
1868
|
can_d_forms_view: boolean
|
|
1857
1869
|
can_d_forms_add: boolean
|
|
1858
1870
|
can_d_forms_download: boolean
|
|
1871
|
+
can_internal_d_forms_view: boolean
|
|
1872
|
+
can_internal_d_forms_add: boolean
|
|
1873
|
+
can_internal_d_forms_download: boolean
|
|
1859
1874
|
can_view_answer_sheet_report: boolean
|
|
1860
1875
|
can_bundling_view: boolean
|
|
1861
1876
|
can_bundling_add: boolean
|