@campxdev/shared 1.10.59 → 1.10.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
|
@@ -18,6 +18,7 @@ interface Props extends FormGroupProps {
|
|
|
18
18
|
required?: boolean
|
|
19
19
|
row?: boolean
|
|
20
20
|
containerProps?: BoxProps
|
|
21
|
+
disableSelected?: boolean
|
|
21
22
|
}
|
|
22
23
|
|
|
23
24
|
export default function FormMultiCheckbox({
|
|
@@ -27,6 +28,7 @@ export default function FormMultiCheckbox({
|
|
|
27
28
|
options = [],
|
|
28
29
|
required = false,
|
|
29
30
|
row = true,
|
|
31
|
+
disableSelected = false,
|
|
30
32
|
containerProps,
|
|
31
33
|
...rest
|
|
32
34
|
}: Props) {
|
|
@@ -42,6 +44,12 @@ export default function FormMultiCheckbox({
|
|
|
42
44
|
<SingleCheckbox
|
|
43
45
|
key={index}
|
|
44
46
|
name={name}
|
|
47
|
+
disabled={
|
|
48
|
+
disableSelected &&
|
|
49
|
+
field?.value
|
|
50
|
+
?.map((item: any) => item?.value)
|
|
51
|
+
?.includes(item?.value)
|
|
52
|
+
}
|
|
45
53
|
checked={field?.value
|
|
46
54
|
?.map((item: any) => item?.value)
|
|
47
55
|
?.includes(item?.value)}
|
package/src/hooks/useFilters.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { useEffect, useState } from 'react'
|
|
2
2
|
|
|
3
3
|
export default function useFilters(initialState, key?: any) {
|
|
4
4
|
const [filters, setFilters] = useState(initialState)
|
|
@@ -47,6 +47,7 @@ export default function useFilters(initialState, key?: any) {
|
|
|
47
47
|
case !!filterData[item] &&
|
|
48
48
|
item !== 'limit' &&
|
|
49
49
|
item !== 'offset' &&
|
|
50
|
+
item !== 'search' &&
|
|
50
51
|
item !== 'page':
|
|
51
52
|
return true
|
|
52
53
|
default:
|
|
@@ -1104,6 +1104,16 @@ export enum Permission {
|
|
|
1104
1104
|
CAN_INTERNAL_EXAMINATIONS_DELETE = 'can_internal_examinations_delete',
|
|
1105
1105
|
CAN_INTERNAL_EXAMINATIONS_MANAGE_EXAM_FEE = 'can_internal_examinations_manage_exam_fee',
|
|
1106
1106
|
|
|
1107
|
+
CAN_INTERNAL_EXAM_PAPER_CONFIGURATION_VIEW = 'can_internal_exam_paper_configuration_view',
|
|
1108
|
+
CAN_INTERNAL_EXAM_PAPER_CONFIGURATION_ADD = 'can_internal_exam_paper_configuration_add',
|
|
1109
|
+
CAN_INTERNAL_EXAM_PAPER_CONFIGURATION_EDIT = 'can_internal_exam_paper_configuration_edit',
|
|
1110
|
+
CAN_INTERNAL_EXAM_PAPER_CONFIGURATION_DELETE = 'can_internal_exam_paper_configuration_delete',
|
|
1111
|
+
|
|
1112
|
+
CAN_INTERNAL_EXAM_TIMETABLE_VIEW = 'can_internal_exam_timetable_view',
|
|
1113
|
+
CAN_INTERNAL_EXAM_TIMETABLE_ADD = 'can_internal_exam_timetable_add',
|
|
1114
|
+
CAN_INTERNAL_EXAM_TIMETABLE_EDIT = 'can_internal_exam_timetable_edit',
|
|
1115
|
+
CAN_INTERNAL_EXAM_TIMETABLE_DELETE = 'can_internal_exam_timetable_delete',
|
|
1116
|
+
|
|
1107
1117
|
// Seating Plan
|
|
1108
1118
|
SEATING_PLAN = 'can_examinations_seating_plan',
|
|
1109
1119
|
CAN_SEATING_PLAN_VIEW = 'can_seating_plan_view',
|