@campxdev/shared 1.10.85 → 1.10.87
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
|
@@ -22,9 +22,6 @@ import SearchBar from '../FilterComponents/SearchBar'
|
|
|
22
22
|
import { DialogButton, DrawerButton } from '../ModalButtons'
|
|
23
23
|
import Table from '../Tables/BasicTable/Table'
|
|
24
24
|
import DepartmentFilter from './DepartmentFilter'
|
|
25
|
-
// import Arrow, { DIRECTION } from 'react-arrows'
|
|
26
|
-
import '../CustomJoyRideStyles.css'
|
|
27
|
-
|
|
28
25
|
interface ApplicationProfileProps {
|
|
29
26
|
application:
|
|
30
27
|
| 'exams'
|
|
@@ -5,6 +5,7 @@ import ReactJoyride, { Step } from 'react-joyride'
|
|
|
5
5
|
import { useQuery } from 'react-query'
|
|
6
6
|
import axios from '../config/axios'
|
|
7
7
|
import './CustomJoyRideStyles.css'
|
|
8
|
+
import Spinner from './Spinner'
|
|
8
9
|
|
|
9
10
|
function ReactJoyRide({
|
|
10
11
|
steps,
|
|
@@ -26,11 +27,7 @@ function ReactJoyRide({
|
|
|
26
27
|
fetchTours,
|
|
27
28
|
)
|
|
28
29
|
|
|
29
|
-
useEffect(() => {
|
|
30
|
-
if (toursData && !toursData.includes(tourName)) {
|
|
31
|
-
setRun(true)
|
|
32
|
-
}
|
|
33
|
-
}, [toursLoading])
|
|
30
|
+
useEffect(() => {}, [run])
|
|
34
31
|
|
|
35
32
|
const completeTour = async () => {
|
|
36
33
|
try {
|
|
@@ -43,15 +40,21 @@ function ReactJoyRide({
|
|
|
43
40
|
const handleJoyRideCallback = (data) => {
|
|
44
41
|
const { action, status } = data
|
|
45
42
|
|
|
46
|
-
if (action === '
|
|
47
|
-
completeTour()
|
|
48
|
-
}
|
|
49
|
-
if (status === 'finished' || status === 'skip' || status === 'closed') {
|
|
43
|
+
if (action === 'reset') {
|
|
50
44
|
setRun(false)
|
|
51
45
|
completeTour()
|
|
52
46
|
}
|
|
47
|
+
}
|
|
53
48
|
|
|
54
|
-
|
|
49
|
+
const customSteps = steps.map((step) => ({
|
|
50
|
+
...step,
|
|
51
|
+
content: (
|
|
52
|
+
<div style={{ fontFamily: 'Roboto, sans-serif' }}>{step.content}</div>
|
|
53
|
+
),
|
|
54
|
+
}))
|
|
55
|
+
|
|
56
|
+
if (toursLoading) {
|
|
57
|
+
return <Spinner />
|
|
55
58
|
}
|
|
56
59
|
|
|
57
60
|
return (
|
|
@@ -60,25 +63,28 @@ function ReactJoyRide({
|
|
|
60
63
|
<ReactJoyride
|
|
61
64
|
callback={handleJoyRideCallback}
|
|
62
65
|
run={run}
|
|
63
|
-
steps={
|
|
66
|
+
steps={customSteps}
|
|
64
67
|
styles={{
|
|
65
68
|
buttonNext: {
|
|
66
|
-
backgroundColor: '
|
|
67
|
-
color: '
|
|
69
|
+
backgroundColor: '#D27D2D',
|
|
70
|
+
color: 'white',
|
|
68
71
|
height: '28px',
|
|
69
72
|
width: '100px',
|
|
70
73
|
padding: '0px',
|
|
74
|
+
fontFamily: 'Roboto, sans-serif',
|
|
71
75
|
},
|
|
72
76
|
|
|
73
77
|
buttonBack: {
|
|
74
|
-
backgroundColor: '
|
|
78
|
+
backgroundColor: 'transparent',
|
|
75
79
|
color: 'black',
|
|
76
80
|
borderRadius: '4px',
|
|
77
|
-
height: '
|
|
81
|
+
height: '28px',
|
|
78
82
|
width: '100px',
|
|
79
83
|
gap: '10px',
|
|
80
84
|
marginLeft: '5px',
|
|
81
85
|
padding: '0px',
|
|
86
|
+
border: '1px solid black',
|
|
87
|
+
fontFamily: 'Roboto, sans-serif',
|
|
82
88
|
},
|
|
83
89
|
|
|
84
90
|
buttonSkip: {
|
|
@@ -92,6 +98,7 @@ function ReactJoyRide({
|
|
|
92
98
|
top: '0px',
|
|
93
99
|
position: 'absolute',
|
|
94
100
|
lineHeight: 1,
|
|
101
|
+
fontFamily: 'Roboto, sans-serif',
|
|
95
102
|
},
|
|
96
103
|
}}
|
|
97
104
|
continuous
|
|
@@ -101,6 +108,12 @@ function ReactJoyRide({
|
|
|
101
108
|
disableOverlayClose
|
|
102
109
|
disableScrolling
|
|
103
110
|
hideCloseButton
|
|
111
|
+
locale={{
|
|
112
|
+
last: 'Finish',
|
|
113
|
+
next: 'Next',
|
|
114
|
+
skip: 'Skip',
|
|
115
|
+
back: 'Previous',
|
|
116
|
+
}}
|
|
104
117
|
/>
|
|
105
118
|
|
|
106
119
|
{children}
|
|
@@ -208,6 +208,7 @@ export enum SquarePermissions {
|
|
|
208
208
|
CLASSROOM_DELETE = 'can_classroom_delete',
|
|
209
209
|
CLASSROOM_ADD = 'can_classroom_add',
|
|
210
210
|
CLASSROOM_REPORTS = 'can_classroom_reports',
|
|
211
|
+
CAN_VIEW_FEE_DUE_REPORT = 'can_view_fee_due_report',
|
|
211
212
|
CLASSROOM_REASSIGN_FACULTY = 'can_classroom_re_assign_faculty',
|
|
212
213
|
CAN_REVOKE_MARKS = 'can_classroom_revoke_marks',
|
|
213
214
|
CAN_CLASSROOM_SUBJECTS_VIEW = 'can_classroom_subjects_view',
|
|
@@ -356,6 +357,7 @@ export enum EnrollPermissions {
|
|
|
356
357
|
ADMISSIONS_EDIT = 'can_admissions_edit',
|
|
357
358
|
ADMISSIONS_DELETE = 'can_admissions_delete',
|
|
358
359
|
ADMISSIONS_CHANGE_STATUS = 'can_admissions_change_status',
|
|
360
|
+
ADMISSIONS_CHANGE_QUOTA = 'can_admissions_change_quota',
|
|
359
361
|
ADMISSIONS_IMPORT = 'can_admissions_import',
|
|
360
362
|
ADMISSIONS_EXPORT = 'can_admissions_export',
|
|
361
363
|
ADMISSIONS_CONFIRM = 'can_admissions_confirm',
|