@campxdev/shared 1.11.42 → 1.11.44

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@campxdev/shared",
3
- "version": "1.11.42",
3
+ "version": "1.11.44",
4
4
  "main": "./exports.ts",
5
5
  "scripts": {
6
6
  "start": "react-scripts start",
@@ -7,6 +7,7 @@ import { IOption } from '../Input/types'
7
7
  interface MultiSelectProps {
8
8
  control: any
9
9
  label: ReactNode
10
+ size: string
10
11
  name: string
11
12
  options: IOption[]
12
13
  placeholder?: string
@@ -90,6 +90,7 @@ interface MultiSelectProps {
90
90
  limitTags?: number
91
91
  onOpen?: (e: any) => void
92
92
  noOptionsText?: string
93
+ size: any
93
94
  }
94
95
  export default function MultiSelect({
95
96
  name,
@@ -6,6 +6,7 @@ interface DashboardProps {
6
6
  dashboardId: string
7
7
  charts: any
8
8
  chartFilters: any
9
+ sx?: any
9
10
  }
10
11
 
11
12
  const MongoDashboard: React.FC<DashboardProps> = ({
@@ -13,6 +14,7 @@ const MongoDashboard: React.FC<DashboardProps> = ({
13
14
  dashboardId,
14
15
  charts,
15
16
  chartFilters,
17
+ sx = {},
16
18
  }) => {
17
19
  const [rendered, setRendered] = useState<Boolean>(false)
18
20
  const [dashboard, setDashboard] = useState<any>(null)
@@ -135,6 +137,7 @@ const MongoDashboard: React.FC<DashboardProps> = ({
135
137
  backgroundColor: '#EEEE',
136
138
  padding: '15px 0px',
137
139
  borderRadius: '10px',
140
+ ...sx,
138
141
  }}
139
142
  />
140
143
  )
@@ -1,12 +1,17 @@
1
1
  import React from 'react'
2
- import { Permission, PermissionsStore, SquarePermissions } from '../shared-state/PermissionsStore'
2
+ import {
3
+ EnrollPermissions,
4
+ Permission,
5
+ PermissionsStore,
6
+ SquarePermissions,
7
+ } from '../shared-state/PermissionsStore'
3
8
 
4
9
  export default function ValidateAccess({
5
10
  accessKey,
6
11
  children,
7
12
  checkForMasterSlave = false,
8
13
  }: {
9
- accessKey: Permission | SquarePermissions
14
+ accessKey: Permission | SquarePermissions | EnrollPermissions
10
15
  children: React.ReactNode
11
16
  checkForMasterSlave?: boolean
12
17
  }) {
@@ -653,8 +653,8 @@ export enum Permission {
653
653
  CAN_DETAINED_STUDENT_VIEW = 'can_detained_student_view',
654
654
  CAN_DISCONTINUED_STUDENT_VIEW = 'can_discontinued_student_view',
655
655
  CAN_CONCESSION_REPORT_VIEW = 'can_concession_report_view',
656
- CAN_FEE_TYPE_SUMMARY_VIEW = 'can_fee_type_summary_report_view',
657
- CAN_PROGRAM_WISE_FEE_TYPE_REPORT_VIEW = 'can_program_wise-fee_type_report_view',
656
+ CAN_FEE_TYPE_SUMMARY_REPORT_VIEW = 'can_fee_type_summary_report_view',
657
+ CAN_PROGRAM_WISE_FEE_TYPE_REPORT_VIEW = 'can_program_wise_fee_type_report_view',
658
658
  CAN_EXAMINATION_REPORT_VIEW = 'can_examination_report_view',
659
659
  CAN_EXAMINATION_NOT_PAID_REPORT_VIEW = 'can_examination_not_paid_report_view',
660
660
  CAN_EXAMINATION_BLOCKED_STUDENTS_VIEW = 'can_examination_blocked_students_view',