mui-toolpad-extended-tuni 3.0.0 → 3.0.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/README.md +13 -11
- package/dist/index.cjs +116 -138
- package/dist/index.es.js +32991 -55282
- package/dist/src/App.d.ts +1 -1
- package/dist/src/LMSToolpad/{LMSProvider.d.ts → ToolpadProvider.d.ts} +7 -6
- package/dist/src/index.d.ts +4 -3
- package/package.json +5 -4
- package/dist/src/LMSToolpad/components/Calendar/Calendar.d.ts +0 -3
- package/dist/src/LMSToolpad/components/Calendar/CalendarBody.d.ts +0 -16
- package/dist/src/LMSToolpad/components/Calendar/CalendarEventAggregator.d.ts +0 -9
- package/dist/src/LMSToolpad/components/Calendar/CalendarEventItem.d.ts +0 -10
- package/dist/src/LMSToolpad/components/Calendar/CalendarHeader.d.ts +0 -12
- package/dist/src/LMSToolpad/components/Calendar/CalendarManager.d.ts +0 -3
- package/dist/src/LMSToolpad/components/Calendar/CalendarMicroservice.d.ts +0 -32
- package/dist/src/LMSToolpad/components/Calendar/DatePickerPopover.d.ts +0 -8
- package/dist/src/LMSToolpad/components/Calendar/components/EventDetails.d.ts +0 -3
- package/dist/src/LMSToolpad/components/Calendar/components/EventMenu.d.ts +0 -3
- package/dist/src/LMSToolpad/components/Calendar/components/EventViews.d.ts +0 -3
- package/dist/src/LMSToolpad/components/Calendar/components/index.d.ts +0 -3
- package/dist/src/LMSToolpad/components/Calendar/index.d.ts +0 -5
- package/dist/src/LMSToolpad/components/Calendar/store/useCalendarStore.d.ts +0 -44
- package/dist/src/LMSToolpad/components/Calendar/types.d.ts +0 -49
- package/dist/src/LMSToolpad/components/Courses/CourseCodeLoader.d.ts +0 -15
- package/dist/src/LMSToolpad/components/Courses/CourseEventPublisher.d.ts +0 -8
- package/dist/src/LMSToolpad/components/Courses/CourseInstanceLoader.d.ts +0 -16
- package/dist/src/LMSToolpad/components/Courses/CourseInstanceSelector.d.ts +0 -15
- package/dist/src/LMSToolpad/components/Courses/CourseItem/CourseActions.d.ts +0 -6
- package/dist/src/LMSToolpad/components/Courses/CourseItem/CourseHeader.d.ts +0 -6
- package/dist/src/LMSToolpad/components/Courses/CourseItem/CourseHeaderActions.d.ts +0 -12
- package/dist/src/LMSToolpad/components/Courses/CourseItem/CourseIcon.d.ts +0 -8
- package/dist/src/LMSToolpad/components/Courses/CourseItem/CourseInfo.d.ts +0 -8
- package/dist/src/LMSToolpad/components/Courses/CourseItem/CourseItem.d.ts +0 -9
- package/dist/src/LMSToolpad/components/Courses/CourseList.d.ts +0 -6
- package/dist/src/LMSToolpad/components/Courses/CourseManager.d.ts +0 -2
- package/dist/src/LMSToolpad/components/Courses/CourseMicroservice.d.ts +0 -42
- package/dist/src/LMSToolpad/components/Courses/CourseRoutesProvider.d.ts +0 -12
- package/dist/src/LMSToolpad/components/Courses/CourseTools.d.ts +0 -21
- package/dist/src/LMSToolpad/components/Courses/Forms/CourseSettings/CourseSettings.d.ts +0 -23
- package/dist/src/LMSToolpad/components/Courses/Forms/CourseSettings/CourseSettingsTabs.d.ts +0 -9
- package/dist/src/LMSToolpad/components/Courses/Forms/CourseSettings/tabs/BasicInfoTab.d.ts +0 -7
- package/dist/src/LMSToolpad/components/Courses/Forms/CourseSettings/tabs/DataProcessingTab.d.ts +0 -24
- package/dist/src/LMSToolpad/components/Courses/Forms/CourseSettings/tabs/EnrollmentTab.d.ts +0 -28
- package/dist/src/LMSToolpad/components/Courses/Forms/CourseSettings/tabs/RelationshipsTab.d.ts +0 -25
- package/dist/src/LMSToolpad/components/Courses/Forms/CourseSettings/tabs/StaffTab.d.ts +0 -26
- package/dist/src/LMSToolpad/components/Courses/Forms/CourseSettings/tabs/VisibilityTab.d.ts +0 -24
- package/dist/src/LMSToolpad/components/Courses/LtiLoginUrlForm.d.ts +0 -3
- package/dist/src/LMSToolpad/components/Courses/Navigation/CourseNavigationbuilder.d.ts +0 -2
- package/dist/src/LMSToolpad/components/Courses/components/ToolDisplayer/ToolCard.d.ts +0 -8
- package/dist/src/LMSToolpad/components/Courses/components/ToolDisplayer/ToolDisplayer.d.ts +0 -11
- package/dist/src/LMSToolpad/components/Courses/config/subjectConfig.d.ts +0 -10
- package/dist/src/LMSToolpad/components/Courses/context/CourseMicroserviceContext.d.ts +0 -26
- package/dist/src/LMSToolpad/components/Courses/hooks/useCourseRoutes.d.ts +0 -6
- package/dist/src/LMSToolpad/components/Courses/mocks/commented.d.ts +0 -0
- package/dist/src/LMSToolpad/components/Courses/mocks/constants.d.ts +0 -9
- package/dist/src/LMSToolpad/components/Courses/mocks/endpoints.d.ts +0 -8
- package/dist/src/LMSToolpad/components/Courses/mocks/generators.d.ts +0 -13
- package/dist/src/LMSToolpad/components/Courses/mocks/types.d.ts +0 -109
- package/dist/src/LMSToolpad/components/Courses/network/courses.d.ts +0 -37
- package/dist/src/LMSToolpad/components/Courses/store/useCourseStore.d.ts +0 -146
- package/dist/src/LMSToolpad/components/Courses/utils/courseFilters.d.ts +0 -21
- package/dist/src/LMSToolpad/components/DevTools/DevelopmentTools.d.ts +0 -3
- package/dist/src/LMSToolpad/components/DevTools/UserSwitcher.d.ts +0 -3
- package/dist/src/LMSToolpad/components/Users/Forms/UserSettings/UserSettings.d.ts +0 -22
- package/dist/src/LMSToolpad/components/Users/UserEventPublisher.d.ts +0 -8
- package/dist/src/LMSToolpad/components/Users/UserManager.d.ts +0 -2
- package/dist/src/LMSToolpad/components/Users/UserMicroservice.d.ts +0 -34
- package/dist/src/LMSToolpad/components/Users/index.d.ts +0 -6
- package/dist/src/LMSToolpad/components/Users/mocks/constants.d.ts +0 -59
- package/dist/src/LMSToolpad/components/Users/mocks/endpoints.d.ts +0 -3
- package/dist/src/LMSToolpad/components/Users/mocks/generators.d.ts +0 -6
- package/dist/src/LMSToolpad/components/Users/mocks/types.d.ts +0 -52
- package/dist/src/LMSToolpad/components/Users/network/users.d.ts +0 -7
- package/dist/src/LMSToolpad/components/Users/store/useUserStore.d.ts +0 -63
- package/dist/src/LMSToolpad/hooks/useVisitedCourses.d.ts +0 -18
- package/dist/src/LMSToolpad/mocks/browser.d.ts +0 -2
- package/dist/src/LMSToolpad/mocks/handlers.d.ts +0 -2
- package/dist/src/LMSToolpad/mocks/store.d.ts +0 -24
- package/dist/src/LMSToolpad/utils/__tests__/courseFilters.test.d.ts +0 -2
- package/dist/src/test/Contact.d.ts +0 -8
- package/dist/src/test/EduTest.d.ts +0 -10
- package/dist/src/test/EduTest2.d.ts +0 -10
- package/dist/src/test/Help.d.ts +0 -8
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { navigationTypes } from '../store/useUserStore';
|
|
2
|
-
export declare const departmentVariants: string[];
|
|
3
|
-
export declare const preferencesVariants: navigationTypes[];
|
|
4
|
-
export declare const randomPerson: {
|
|
5
|
-
gender: string;
|
|
6
|
-
name: {
|
|
7
|
-
title: string;
|
|
8
|
-
first: string;
|
|
9
|
-
last: string;
|
|
10
|
-
};
|
|
11
|
-
location: {
|
|
12
|
-
street: {
|
|
13
|
-
number: number;
|
|
14
|
-
name: string;
|
|
15
|
-
};
|
|
16
|
-
city: string;
|
|
17
|
-
state: string;
|
|
18
|
-
country: string;
|
|
19
|
-
postcode: number;
|
|
20
|
-
coordinates: {
|
|
21
|
-
latitude: string;
|
|
22
|
-
longitude: string;
|
|
23
|
-
};
|
|
24
|
-
timezone: {
|
|
25
|
-
offset: string;
|
|
26
|
-
description: string;
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
email: string;
|
|
30
|
-
login: {
|
|
31
|
-
uuid: string;
|
|
32
|
-
username: string;
|
|
33
|
-
password: string;
|
|
34
|
-
salt: string;
|
|
35
|
-
md5: string;
|
|
36
|
-
sha1: string;
|
|
37
|
-
sha256: string;
|
|
38
|
-
};
|
|
39
|
-
dob: {
|
|
40
|
-
date: string;
|
|
41
|
-
age: number;
|
|
42
|
-
};
|
|
43
|
-
registered: {
|
|
44
|
-
date: string;
|
|
45
|
-
age: number;
|
|
46
|
-
};
|
|
47
|
-
phone: string;
|
|
48
|
-
cell: string;
|
|
49
|
-
id: {
|
|
50
|
-
name: string;
|
|
51
|
-
value: string;
|
|
52
|
-
};
|
|
53
|
-
picture: {
|
|
54
|
-
large: string;
|
|
55
|
-
medium: string;
|
|
56
|
-
thumbnail: string;
|
|
57
|
-
};
|
|
58
|
-
nat: string;
|
|
59
|
-
};
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { PlatformRole } from '../../../store/usePlatformStore';
|
|
2
|
-
import { navigationTypes } from '../store/useUserStore';
|
|
3
|
-
import { randomPerson } from './constants';
|
|
4
|
-
export interface UserRawBackendData {
|
|
5
|
-
name: string;
|
|
6
|
-
email: string;
|
|
7
|
-
image?: {
|
|
8
|
-
large: string;
|
|
9
|
-
medium: string;
|
|
10
|
-
thumbnail: string;
|
|
11
|
-
};
|
|
12
|
-
department?: string;
|
|
13
|
-
platform_roles: PlatformRole[];
|
|
14
|
-
privacy_settings: {
|
|
15
|
-
allow_analytics: boolean;
|
|
16
|
-
allow_personalization: boolean;
|
|
17
|
-
allow_communications: boolean;
|
|
18
|
-
allow_third_party_sharing: boolean;
|
|
19
|
-
};
|
|
20
|
-
gdpr_consent: {
|
|
21
|
-
accepted: boolean;
|
|
22
|
-
accepted_date?: string;
|
|
23
|
-
last_updated: string;
|
|
24
|
-
};
|
|
25
|
-
data_retention: {
|
|
26
|
-
delete_account_after_inactivity?: number;
|
|
27
|
-
delete_data_after_account_deletion?: number;
|
|
28
|
-
};
|
|
29
|
-
preferences: {
|
|
30
|
-
navigation_type: navigationTypes;
|
|
31
|
-
visible_course_lists: {
|
|
32
|
-
is_student: boolean;
|
|
33
|
-
is_student_old: boolean;
|
|
34
|
-
is_teacher: boolean;
|
|
35
|
-
is_teacher_old: boolean;
|
|
36
|
-
available: boolean;
|
|
37
|
-
};
|
|
38
|
-
visible_navigation: string[];
|
|
39
|
-
last_visited_courses: string[];
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
export interface UserBackendData extends UserRawBackendData {
|
|
43
|
-
id: string;
|
|
44
|
-
created_at: string;
|
|
45
|
-
updated_at: string;
|
|
46
|
-
}
|
|
47
|
-
export type UserCourseConnection = {
|
|
48
|
-
userId: string;
|
|
49
|
-
courseId: string;
|
|
50
|
-
role: "teacher" | "student";
|
|
51
|
-
};
|
|
52
|
-
export type randomPersonFromApi = typeof randomPerson;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { UserData } from '../store/useUserStore';
|
|
2
|
-
export declare const getCurrentUser: () => Promise<UserData>;
|
|
3
|
-
export declare const getUsers: (courseId?: string) => Promise<UserData[]>;
|
|
4
|
-
export declare const createUser: (userData: Partial<UserData>) => Promise<UserData>;
|
|
5
|
-
export declare const updateUser: (userData: UserData) => Promise<UserData>;
|
|
6
|
-
export declare const deleteUser: (userId: string) => Promise<void>;
|
|
7
|
-
export declare const logoutUser: () => Promise<void>;
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { fetchState } from '../../../interfaces';
|
|
2
|
-
import { PlatformRole } from '../../../store/usePlatformStore';
|
|
3
|
-
export type userId = string;
|
|
4
|
-
export type navigationTypes = "direct" | "instances";
|
|
5
|
-
export type gender = "male" | "female" | "other";
|
|
6
|
-
export interface UserData {
|
|
7
|
-
id: userId;
|
|
8
|
-
name: string;
|
|
9
|
-
email: string;
|
|
10
|
-
gender?: gender;
|
|
11
|
-
image?: {
|
|
12
|
-
large: string;
|
|
13
|
-
medium: string;
|
|
14
|
-
thumbnail: string;
|
|
15
|
-
};
|
|
16
|
-
department?: string;
|
|
17
|
-
platformRoles: PlatformRole[];
|
|
18
|
-
privacySettings: {
|
|
19
|
-
allowAnalytics: boolean;
|
|
20
|
-
allowPersonalization: boolean;
|
|
21
|
-
allowCommunications: boolean;
|
|
22
|
-
allowThirdPartySharing: boolean;
|
|
23
|
-
};
|
|
24
|
-
gdprConsent: {
|
|
25
|
-
accepted: boolean;
|
|
26
|
-
acceptedDate?: string;
|
|
27
|
-
lastUpdated: string;
|
|
28
|
-
};
|
|
29
|
-
dataRetention: {
|
|
30
|
-
deleteAccountAfterInactivity?: number;
|
|
31
|
-
deleteDataAfterAccountDeletion?: number;
|
|
32
|
-
};
|
|
33
|
-
preferences: {
|
|
34
|
-
navigationType: navigationTypes;
|
|
35
|
-
visibleCourseLists: {
|
|
36
|
-
isStudent: boolean;
|
|
37
|
-
isStudentOld: boolean;
|
|
38
|
-
isTeacher: boolean;
|
|
39
|
-
isTeacherOld: boolean;
|
|
40
|
-
available: boolean;
|
|
41
|
-
};
|
|
42
|
-
lastVisitedCourses: string[];
|
|
43
|
-
visibleNavigation: string[];
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
export interface UserState {
|
|
47
|
-
fetchState: fetchState;
|
|
48
|
-
user: UserData | null;
|
|
49
|
-
userToUpdate: UserData | null;
|
|
50
|
-
testUsers: UserData[];
|
|
51
|
-
users: UserData[];
|
|
52
|
-
courseUsers?: UserData[];
|
|
53
|
-
setUserToUpdate: (user: UserData | null) => void;
|
|
54
|
-
setUser: (user: UserData) => void;
|
|
55
|
-
setTestUsers: (users: UserData[]) => void;
|
|
56
|
-
getUser: () => void;
|
|
57
|
-
clearUser: () => void;
|
|
58
|
-
getUsers: () => void;
|
|
59
|
-
fetchCourseUsers: (courseId: string) => Promise<void>;
|
|
60
|
-
logout: () => Promise<void>;
|
|
61
|
-
updateUser: (userData: UserData) => Promise<UserData>;
|
|
62
|
-
}
|
|
63
|
-
export declare const useUserStore: import('zustand/traditional').UseBoundStoreWithEqualityFn<import('zustand').StoreApi<UserState>>;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { Course } from '../components/Courses/store/useCourseStore';
|
|
2
|
-
/**
|
|
3
|
-
* Adds a course to the visited courses list and updates user preferences
|
|
4
|
-
* @param {Course} course - The course to add to visited courses
|
|
5
|
-
* @returns {Promise<void>}
|
|
6
|
-
*/
|
|
7
|
-
export declare const addVisitedCourse: (course: Course) => Promise<void>;
|
|
8
|
-
/**
|
|
9
|
-
* Gets the current list of visited course IDs from user preferences
|
|
10
|
-
* @returns {string[]} Array of course IDs in "code:instance" format
|
|
11
|
-
*/
|
|
12
|
-
export declare const getVisitedCourses: () => string[];
|
|
13
|
-
/**
|
|
14
|
-
* Subscribes to visited courses updates
|
|
15
|
-
* @param {Function} callback - Function to call when visited courses list changes
|
|
16
|
-
* @returns {Function} Unsubscribe function
|
|
17
|
-
*/
|
|
18
|
-
export declare const onVisitedCoursesUpdate: (callback: (courseIds: string[]) => void) => () => void;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { CourseBackendData, CourseEnrollmentBackendData } from '../components/Courses/mocks/types';
|
|
2
|
-
import { UserBackendData } from '../components/Users/mocks/types';
|
|
3
|
-
interface DataStore {
|
|
4
|
-
users: UserBackendData[];
|
|
5
|
-
courses: CourseBackendData[];
|
|
6
|
-
enrollmentsByCourse: {
|
|
7
|
-
[key: string]: CourseEnrollmentBackendData[];
|
|
8
|
-
};
|
|
9
|
-
lastCourseId: number;
|
|
10
|
-
lastUserId: number;
|
|
11
|
-
}
|
|
12
|
-
interface MockDataConfig {
|
|
13
|
-
teacherCount: number;
|
|
14
|
-
studentCount: number;
|
|
15
|
-
adminCount: number;
|
|
16
|
-
coursesPerYear: number;
|
|
17
|
-
startYear: number;
|
|
18
|
-
numberOfYears: number;
|
|
19
|
-
}
|
|
20
|
-
export declare let dataStore: DataStore;
|
|
21
|
-
export declare const savedDataStore: string | null;
|
|
22
|
-
export declare function saveDataStore(dataStore: DataStore): void;
|
|
23
|
-
export declare function resetDataStore(config?: MockDataConfig): Promise<void>;
|
|
24
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Contact App-Level Microservice
|
|
3
|
-
*
|
|
4
|
-
* This is an app-level microservice that provides contact information.
|
|
5
|
-
* Registers itself with the NavigationRegistry for routing and navigation.
|
|
6
|
-
*/
|
|
7
|
-
declare const Contact: () => import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export default Contact;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* EduTest Course Microservice
|
|
3
|
-
*
|
|
4
|
-
* This is an example course microservice that demonstrates how to create
|
|
5
|
-
* a self-contained tool that integrates with the Course system.
|
|
6
|
-
*
|
|
7
|
-
* Registers through CourseMicroservice context (must be a child of CourseMicroservice).
|
|
8
|
-
*/
|
|
9
|
-
declare const EduTest: () => import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
export default EduTest;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/** @format */
|
|
2
|
-
/**
|
|
3
|
-
* EduTest2 Course Microservice
|
|
4
|
-
*
|
|
5
|
-
* This is another example course microservice demonstrating the registration pattern.
|
|
6
|
-
*
|
|
7
|
-
* Registers through CourseMicroservice context (must be a child of CourseMicroservice).
|
|
8
|
-
*/
|
|
9
|
-
declare const EduTest2: () => import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
export default EduTest2;
|
package/dist/src/test/Help.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Help App-Level Microservice
|
|
3
|
-
*
|
|
4
|
-
* This is an app-level microservice that provides help and documentation.
|
|
5
|
-
* Registers itself with the NavigationRegistry for routing and navigation.
|
|
6
|
-
*/
|
|
7
|
-
declare const Help: () => import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export default Help;
|