@appcorp/fusion-storybook 0.2.12 → 0.2.14
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/base-modules/admission/context/use-admission-module.d.ts +88 -0
- package/base-modules/admission/context/use-admission-module.js +771 -0
- package/base-modules/admission/context.d.ts +1 -87
- package/base-modules/admission/context.js +3 -769
- package/base-modules/admission/filter.d.ts +1 -1
- package/base-modules/admission/form.d.ts +1 -1
- package/base-modules/admission/more-actions.d.ts +1 -1
- package/base-modules/admission/page.d.ts +8 -1
- package/base-modules/admission/page.js +25 -4
- package/base-modules/admission/view.d.ts +1 -1
- package/base-modules/attendance/form.d.ts +1 -1
- package/base-modules/attendance/page.d.ts +8 -1
- package/base-modules/attendance/page.js +25 -4
- package/base-modules/attendance/view.d.ts +1 -1
- package/base-modules/campus/filter.d.ts +1 -1
- package/base-modules/campus/form.d.ts +1 -1
- package/base-modules/campus/more-actions.d.ts +1 -1
- package/base-modules/campus/more-actions.js +0 -1
- package/base-modules/campus/page.d.ts +8 -1
- package/base-modules/campus/page.js +25 -4
- package/base-modules/campus/view.d.ts +1 -1
- package/base-modules/class/filter.d.ts +1 -1
- package/base-modules/class/form.d.ts +1 -1
- package/base-modules/class/more-actions.d.ts +1 -1
- package/base-modules/class/more-actions.js +1 -6
- package/base-modules/class/page.d.ts +8 -1
- package/base-modules/class/page.js +25 -4
- package/base-modules/class/view.d.ts +1 -1
- package/base-modules/course/filter.d.ts +1 -1
- package/base-modules/course/form.d.ts +1 -1
- package/base-modules/course/more-actions.d.ts +1 -1
- package/base-modules/course/page.d.ts +8 -1
- package/base-modules/course/page.js +25 -4
- package/base-modules/course/view.d.ts +1 -1
- package/base-modules/discount-code/filter.d.ts +2 -1
- package/base-modules/discount-code/form.d.ts +1 -1
- package/base-modules/discount-code/page.d.ts +8 -1
- package/base-modules/discount-code/page.js +25 -4
- package/base-modules/discount-code/view.d.ts +1 -1
- package/base-modules/enrollment/filter.d.ts +1 -1
- package/base-modules/enrollment/form.d.ts +1 -1
- package/base-modules/enrollment/more-actions.d.ts +1 -1
- package/base-modules/enrollment/page.d.ts +8 -1
- package/base-modules/enrollment/page.js +25 -4
- package/base-modules/enrollment/view.d.ts +1 -1
- package/base-modules/expense/filter.d.ts +1 -1
- package/base-modules/expense/form.d.ts +1 -1
- package/base-modules/expense/more-actions.d.ts +1 -1
- package/base-modules/expense/more-actions.js +1 -6
- package/base-modules/expense/page.d.ts +8 -1
- package/base-modules/expense/page.js +25 -4
- package/base-modules/expense/view.d.ts +1 -1
- package/base-modules/family/filter.d.ts +1 -1
- package/base-modules/family/form.d.ts +1 -1
- package/base-modules/family/more-actions.d.ts +1 -1
- package/base-modules/family/page.d.ts +8 -1
- package/base-modules/family/page.js +25 -4
- package/base-modules/family/view.d.ts +1 -1
- package/base-modules/family-member/filter.d.ts +1 -1
- package/base-modules/family-member/form.d.ts +1 -1
- package/base-modules/family-member/more-actions.d.ts +1 -1
- package/base-modules/family-member/page.d.ts +8 -1
- package/base-modules/family-member/page.js +25 -4
- package/base-modules/family-member/view.d.ts +1 -1
- package/base-modules/fee-structure/filter.d.ts +1 -1
- package/base-modules/fee-structure/form.d.ts +1 -1
- package/base-modules/fee-structure/more-actions.d.ts +1 -1
- package/base-modules/fee-structure/more-actions.js +1 -6
- package/base-modules/fee-structure/page.d.ts +8 -1
- package/base-modules/fee-structure/page.js +25 -4
- package/base-modules/fee-structure/view.d.ts +1 -1
- package/base-modules/rbac/assign-permissions.d.ts +1 -1
- package/base-modules/rbac/filter.d.ts +1 -1
- package/base-modules/rbac/form.d.ts +1 -1
- package/base-modules/rbac/more-actions.d.ts +1 -1
- package/base-modules/rbac/page.d.ts +8 -1
- package/base-modules/rbac/page.js +25 -4
- package/base-modules/rbac/view.d.ts +7 -1
- package/base-modules/school/drawer.d.ts +1 -1
- package/base-modules/school/filter.d.ts +1 -1
- package/base-modules/school/form.d.ts +1 -1
- package/base-modules/school/more-actions.d.ts +1 -1
- package/base-modules/school/view.d.ts +1 -1
- package/base-modules/section/filter.d.ts +1 -1
- package/base-modules/section/form.d.ts +1 -1
- package/base-modules/section/more-actions.d.ts +1 -1
- package/base-modules/section/page.d.ts +8 -1
- package/base-modules/section/page.js +25 -4
- package/base-modules/section/view.d.ts +1 -1
- package/base-modules/student-fee/context/shared.d.ts +178 -0
- package/base-modules/student-fee/context/shared.js +59 -0
- package/base-modules/student-fee/context/use-student-fee-module.d.ts +64 -0
- package/base-modules/student-fee/context/use-student-fee-module.js +610 -0
- package/base-modules/student-fee/context.d.ts +21 -235
- package/base-modules/student-fee/context.js +2 -674
- package/base-modules/student-fee/filter.d.ts +1 -1
- package/base-modules/student-fee/form.d.ts +1 -1
- package/base-modules/student-fee/more-actions.d.ts +1 -1
- package/base-modules/student-fee/more-actions.js +1 -6
- package/base-modules/student-fee/page.d.ts +8 -1
- package/base-modules/student-fee/page.js +25 -4
- package/base-modules/student-fee/view.d.ts +1 -1
- package/base-modules/student-profile/context/module-base.d.ts +187 -0
- package/base-modules/student-profile/context/module-base.js +50 -0
- package/base-modules/student-profile/context/use-student-profile-module.d.ts +70 -0
- package/base-modules/student-profile/context/use-student-profile-module.js +506 -0
- package/base-modules/student-profile/context.d.ts +20 -256
- package/base-modules/student-profile/context.js +2 -601
- package/base-modules/student-profile/filter.d.ts +1 -1
- package/base-modules/student-profile/form.d.ts +1 -1
- package/base-modules/student-profile/more-actions.d.ts +1 -1
- package/base-modules/student-profile/page.d.ts +8 -1
- package/base-modules/student-profile/page.js +25 -4
- package/base-modules/student-profile/view.d.ts +1 -1
- package/base-modules/subject/filter.d.ts +1 -1
- package/base-modules/subject/form.d.ts +1 -1
- package/base-modules/subject/more-actions.d.ts +1 -1
- package/base-modules/subject/page.d.ts +8 -1
- package/base-modules/subject/page.js +25 -4
- package/base-modules/subject/view.d.ts +1 -1
- package/base-modules/teacher/avatar-upload.js +1 -4
- package/base-modules/teacher/filter.d.ts +1 -1
- package/base-modules/teacher/form.d.ts +1 -1
- package/base-modules/teacher/more-actions.d.ts +1 -1
- package/base-modules/teacher/more-actions.js +1 -6
- package/base-modules/teacher/page.d.ts +8 -1
- package/base-modules/teacher/page.js +25 -4
- package/base-modules/teacher/view.d.ts +1 -1
- package/base-modules/user/context/use-user-module.d.ts +53 -0
- package/base-modules/user/context/use-user-module.js +546 -0
- package/base-modules/user/context.d.ts +1 -52
- package/base-modules/user/context.js +5 -547
- package/base-modules/user/drawer.d.ts +1 -1
- package/base-modules/user/filter.d.ts +1 -1
- package/base-modules/user/form.d.ts +1 -1
- package/base-modules/user/more-actions.d.ts +1 -1
- package/base-modules/user/page.d.ts +8 -1
- package/base-modules/user/page.js +25 -4
- package/base-modules/user/view.d.ts +1 -1
- package/base-modules/workspace/context.d.ts +1 -1
- package/base-modules/workspace/drawer.d.ts +1 -1
- package/base-modules/workspace/filter.d.ts +1 -1
- package/base-modules/workspace/form.d.ts +1 -1
- package/base-modules/workspace/more-actions.d.ts +1 -1
- package/base-modules/workspace/view.d.ts +1 -1
- package/base-modules/workspace-user/filter.d.ts +1 -1
- package/base-modules/workspace-user/form.d.ts +1 -1
- package/base-modules/workspace-user/more-actions.d.ts +1 -1
- package/base-modules/workspace-user/more-actions.js +1 -6
- package/base-modules/workspace-user/page.d.ts +8 -1
- package/base-modules/workspace-user/page.js +25 -4
- package/base-modules/workspace-user/view.d.ts +1 -1
- package/components/module-error.d.ts +9 -0
- package/components/module-error.js +3 -0
- package/components/timeline.d.ts +1 -1
- package/package.json +6 -5
- package/tsconfig.build.tsbuildinfo +1 -1
- package/type.d.ts +3 -1242
- package/type.js +3 -445
- package/types/academics.d.ts +264 -0
- package/types/academics.js +8 -0
- package/types/admission.d.ts +85 -0
- package/types/admission.js +6 -0
- package/types/communication.d.ts +165 -0
- package/types/communication.js +7 -0
- package/types/enums.d.ts +411 -0
- package/types/enums.js +442 -0
- package/types/finance.d.ts +126 -0
- package/types/finance.js +7 -0
- package/types/index.d.ts +12 -0
- package/types/index.js +12 -0
- package/types/user-management.d.ts +236 -0
- package/types/user-management.js +7 -0
|
@@ -48,7 +48,7 @@ const createComponentInstances = () => ({
|
|
|
48
48
|
moreActions: _jsx(StudentProfileMoreActions, {}),
|
|
49
49
|
view: _jsx(StudentProfileView, {}),
|
|
50
50
|
});
|
|
51
|
-
const createStudentProfileConfig = ({ cancelLabel, dispatch,
|
|
51
|
+
const createStudentProfileConfig = ({ cancelLabel, dispatch, drawerFilterDescription, drawerFilterTitle, drawerFormDescription, drawerFormTitle, drawerMoreActionsDescription, drawerMoreActionsTitle, drawerViewDescription, drawerViewTitle, labelActions, labelEnabled, labelFirstName, labelId, labelLastName, labelStatus, labelStudentCode, saveLabel, searchPlaceholder, tableDescription, tableTitle, }) => {
|
|
52
52
|
const components = createComponentInstances();
|
|
53
53
|
return {
|
|
54
54
|
moduleName: "studentProfile",
|
|
@@ -62,7 +62,14 @@ const createStudentProfileConfig = ({ cancelLabel, dispatch, drawerTitle, labelA
|
|
|
62
62
|
{ label: labelActions, width: "5%" },
|
|
63
63
|
],
|
|
64
64
|
cancelLabel,
|
|
65
|
-
|
|
65
|
+
drawerFilterDescription,
|
|
66
|
+
drawerFilterTitle,
|
|
67
|
+
drawerFormDescription,
|
|
68
|
+
drawerFormTitle,
|
|
69
|
+
drawerMoreActionsDescription,
|
|
70
|
+
drawerMoreActionsTitle,
|
|
71
|
+
drawerViewDescription,
|
|
72
|
+
drawerViewTitle,
|
|
66
73
|
filterContent: components.filter,
|
|
67
74
|
formContent: components.form,
|
|
68
75
|
moreActionsContent: components.moreActions,
|
|
@@ -85,7 +92,14 @@ const StudentProfilePageInner = (props) => {
|
|
|
85
92
|
const studentProfileConfig = useMemo(() => createStudentProfileConfig({
|
|
86
93
|
dispatch: context.dispatch,
|
|
87
94
|
cancelLabel: props.cancelLabel,
|
|
88
|
-
|
|
95
|
+
drawerFormTitle: props.drawerFormTitle,
|
|
96
|
+
drawerFormDescription: props.drawerFormDescription,
|
|
97
|
+
drawerViewTitle: props.drawerViewTitle,
|
|
98
|
+
drawerViewDescription: props.drawerViewDescription,
|
|
99
|
+
drawerFilterTitle: props.drawerFilterTitle,
|
|
100
|
+
drawerFilterDescription: props.drawerFilterDescription,
|
|
101
|
+
drawerMoreActionsTitle: props.drawerMoreActionsTitle,
|
|
102
|
+
drawerMoreActionsDescription: props.drawerMoreActionsDescription,
|
|
89
103
|
labelActions: props.labelActions,
|
|
90
104
|
labelEnabled: props.labelEnabled,
|
|
91
105
|
labelFirstName: props.labelFirstName,
|
|
@@ -100,7 +114,14 @@ const StudentProfilePageInner = (props) => {
|
|
|
100
114
|
}), [
|
|
101
115
|
context.dispatch,
|
|
102
116
|
props.cancelLabel,
|
|
103
|
-
props.
|
|
117
|
+
props.drawerFormTitle,
|
|
118
|
+
props.drawerFormDescription,
|
|
119
|
+
props.drawerViewTitle,
|
|
120
|
+
props.drawerViewDescription,
|
|
121
|
+
props.drawerFilterTitle,
|
|
122
|
+
props.drawerFilterDescription,
|
|
123
|
+
props.drawerMoreActionsTitle,
|
|
124
|
+
props.drawerMoreActionsDescription,
|
|
104
125
|
props.labelActions,
|
|
105
126
|
props.labelEnabled,
|
|
106
127
|
props.labelFirstName,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const StudentProfileView: () => import("react
|
|
1
|
+
export declare const StudentProfileView: () => import("react").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SubjectFilter: () => import("react
|
|
1
|
+
export declare const SubjectFilter: () => import("react").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SubjectForm: () => import("react
|
|
1
|
+
export declare const SubjectForm: () => import("react").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SubjectMoreActions: () => import("react
|
|
1
|
+
export declare const SubjectMoreActions: () => import("react").JSX.Element;
|
|
@@ -19,7 +19,14 @@ import { FC } from "react";
|
|
|
19
19
|
import { USER_ROLE } from "../../type";
|
|
20
20
|
interface Props {
|
|
21
21
|
cancelLabel: string;
|
|
22
|
-
|
|
22
|
+
drawerFilterDescription: string;
|
|
23
|
+
drawerFilterTitle: string;
|
|
24
|
+
drawerFormDescription: string;
|
|
25
|
+
drawerFormTitle: string;
|
|
26
|
+
drawerMoreActionsDescription: string;
|
|
27
|
+
drawerMoreActionsTitle: string;
|
|
28
|
+
drawerViewDescription: string;
|
|
29
|
+
drawerViewTitle: string;
|
|
23
30
|
labelActions: string;
|
|
24
31
|
labelCode: string;
|
|
25
32
|
labelDescription: string;
|
|
@@ -47,7 +47,7 @@ const createComponentInstances = () => ({
|
|
|
47
47
|
moreActions: _jsx(SubjectMoreActions, {}),
|
|
48
48
|
view: _jsx(SubjectView, {}),
|
|
49
49
|
});
|
|
50
|
-
const createSubjectConfig = ({ cancelLabel, dispatch,
|
|
50
|
+
const createSubjectConfig = ({ cancelLabel, dispatch, drawerFilterDescription, drawerFilterTitle, drawerFormDescription, drawerFormTitle, drawerMoreActionsDescription, drawerMoreActionsTitle, drawerViewDescription, drawerViewTitle, labelActions, labelCode, labelDescription, labelEnabled, labelId, labelName, saveLabel, searchPlaceholder, tableDescription, tableTitle, }) => {
|
|
51
51
|
const components = createComponentInstances();
|
|
52
52
|
return {
|
|
53
53
|
moduleName: "subject",
|
|
@@ -60,7 +60,14 @@ const createSubjectConfig = ({ cancelLabel, dispatch, drawerTitle, labelActions,
|
|
|
60
60
|
{ label: labelActions, width: "5%" },
|
|
61
61
|
],
|
|
62
62
|
cancelLabel,
|
|
63
|
-
|
|
63
|
+
drawerFilterDescription,
|
|
64
|
+
drawerFilterTitle,
|
|
65
|
+
drawerFormDescription,
|
|
66
|
+
drawerFormTitle,
|
|
67
|
+
drawerMoreActionsDescription,
|
|
68
|
+
drawerMoreActionsTitle,
|
|
69
|
+
drawerViewDescription,
|
|
70
|
+
drawerViewTitle,
|
|
64
71
|
filterContent: components.filter,
|
|
65
72
|
formContent: components.form,
|
|
66
73
|
moreActionsContent: components.moreActions,
|
|
@@ -83,7 +90,14 @@ const SubjectPageInner = (props) => {
|
|
|
83
90
|
const subjectConfig = useMemo(() => createSubjectConfig({
|
|
84
91
|
dispatch: context.dispatch,
|
|
85
92
|
cancelLabel: props.cancelLabel,
|
|
86
|
-
|
|
93
|
+
drawerFormTitle: props.drawerFormTitle,
|
|
94
|
+
drawerFormDescription: props.drawerFormDescription,
|
|
95
|
+
drawerViewTitle: props.drawerViewTitle,
|
|
96
|
+
drawerViewDescription: props.drawerViewDescription,
|
|
97
|
+
drawerFilterTitle: props.drawerFilterTitle,
|
|
98
|
+
drawerFilterDescription: props.drawerFilterDescription,
|
|
99
|
+
drawerMoreActionsTitle: props.drawerMoreActionsTitle,
|
|
100
|
+
drawerMoreActionsDescription: props.drawerMoreActionsDescription,
|
|
87
101
|
labelActions: props.labelActions,
|
|
88
102
|
labelCode: props.labelCode,
|
|
89
103
|
labelDescription: props.labelDescription,
|
|
@@ -97,7 +111,14 @@ const SubjectPageInner = (props) => {
|
|
|
97
111
|
}), [
|
|
98
112
|
context.dispatch,
|
|
99
113
|
props.cancelLabel,
|
|
100
|
-
props.
|
|
114
|
+
props.drawerFormTitle,
|
|
115
|
+
props.drawerFormDescription,
|
|
116
|
+
props.drawerViewTitle,
|
|
117
|
+
props.drawerViewDescription,
|
|
118
|
+
props.drawerFilterTitle,
|
|
119
|
+
props.drawerFilterDescription,
|
|
120
|
+
props.drawerMoreActionsTitle,
|
|
121
|
+
props.drawerMoreActionsDescription,
|
|
101
122
|
props.labelActions,
|
|
102
123
|
props.labelCode,
|
|
103
124
|
props.labelDescription,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SubjectView: () => import("react
|
|
1
|
+
export declare const SubjectView: () => import("react").JSX.Element;
|
|
@@ -43,7 +43,7 @@ export async function convertToWebPFormat(file) {
|
|
|
43
43
|
return webpBlob;
|
|
44
44
|
}
|
|
45
45
|
catch (error) {
|
|
46
|
-
console.
|
|
46
|
+
console.error("webp conversion error", error);
|
|
47
47
|
const errorMessage = error instanceof Error
|
|
48
48
|
? error.message
|
|
49
49
|
: "Unknown error during WebP conversion";
|
|
@@ -80,9 +80,6 @@ export async function processAvatarFile(file) {
|
|
|
80
80
|
}
|
|
81
81
|
// Convert to WebP
|
|
82
82
|
const conversionResult = await convertToWebPFormat(file);
|
|
83
|
-
console.log("type" in conversionResult
|
|
84
|
-
? `type: ${conversionResult.type}`
|
|
85
|
-
: "no type field in result");
|
|
86
83
|
// if ("type" in conversionResult) {
|
|
87
84
|
// // It's an error
|
|
88
85
|
// return conversionResult as AvatarUploadError;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const TeacherFilter: () => import("react
|
|
1
|
+
export declare const TeacherFilter: () => import("react").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const TeacherForm: () => import("react
|
|
1
|
+
export declare const TeacherForm: () => import("react").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const TeacherMoreActions: () => import("react
|
|
1
|
+
export declare const TeacherMoreActions: () => import("react").JSX.Element;
|
|
@@ -27,7 +27,6 @@ export const TeacherMoreActions = () => {
|
|
|
27
27
|
{
|
|
28
28
|
id: "3",
|
|
29
29
|
title: t("moreActionsUploadTheCompletedCsvToTheSystem"),
|
|
30
|
-
handleOnClick: () => console.log("clicked"),
|
|
31
30
|
},
|
|
32
31
|
];
|
|
33
32
|
const update = [
|
|
@@ -40,11 +39,7 @@ export const TeacherMoreActions = () => {
|
|
|
40
39
|
},
|
|
41
40
|
},
|
|
42
41
|
{ id: "2", title: t("moreActionsUpdateYourDataToTheCsv") },
|
|
43
|
-
{
|
|
44
|
-
id: "3",
|
|
45
|
-
title: t("moreActionsUploadTheCompletedCsvToTheSystem"),
|
|
46
|
-
handleOnClick: () => console.log("clicked"),
|
|
47
|
-
},
|
|
42
|
+
{ id: "3", title: t("moreActionsUploadTheCompletedCsvToTheSystem") },
|
|
48
43
|
];
|
|
49
44
|
return (_jsxs("div", { className: "space-y-4", children: [_jsx(Timeline, { events: create, heading: t("moreActionsBulkCreate") }), _jsx(Timeline, { events: update, heading: t("moreActionsBulkUpdate") })] }));
|
|
50
45
|
};
|
|
@@ -19,7 +19,14 @@ import { FC } from "react";
|
|
|
19
19
|
import { USER_ROLE } from "../../type";
|
|
20
20
|
interface Props {
|
|
21
21
|
cancelLabel: string;
|
|
22
|
-
|
|
22
|
+
drawerFilterDescription: string;
|
|
23
|
+
drawerFilterTitle: string;
|
|
24
|
+
drawerFormDescription: string;
|
|
25
|
+
drawerFormTitle: string;
|
|
26
|
+
drawerMoreActionsDescription: string;
|
|
27
|
+
drawerMoreActionsTitle: string;
|
|
28
|
+
drawerViewDescription: string;
|
|
29
|
+
drawerViewTitle: string;
|
|
23
30
|
labelActions: string;
|
|
24
31
|
labelEnabled: string;
|
|
25
32
|
labelId: string;
|
|
@@ -55,7 +55,7 @@ const createComponentInstances = () => ({
|
|
|
55
55
|
moreActions: _jsx(TeacherMoreActions, {}),
|
|
56
56
|
view: _jsx(TeacherView, {}),
|
|
57
57
|
});
|
|
58
|
-
const createTeacherConfig = ({ cancelLabel, dispatch,
|
|
58
|
+
const createTeacherConfig = ({ cancelLabel, dispatch, drawerFilterDescription, drawerFilterTitle, drawerFormDescription, drawerFormTitle, drawerMoreActionsDescription, drawerMoreActionsTitle, drawerViewDescription, drawerViewTitle, labelActions, labelEnabled, labelId, labelName, labelPhone, labelSpecialization, labelTeacherCode, saveLabel, searchPlaceholder, tableDescription, tableTitle, }) => {
|
|
59
59
|
const components = createComponentInstances();
|
|
60
60
|
return {
|
|
61
61
|
moduleName: "teacher",
|
|
@@ -69,7 +69,14 @@ const createTeacherConfig = ({ cancelLabel, dispatch, drawerTitle, labelActions,
|
|
|
69
69
|
{ label: labelActions, width: "5%" },
|
|
70
70
|
],
|
|
71
71
|
cancelLabel,
|
|
72
|
-
|
|
72
|
+
drawerFilterDescription,
|
|
73
|
+
drawerFilterTitle,
|
|
74
|
+
drawerFormDescription,
|
|
75
|
+
drawerFormTitle,
|
|
76
|
+
drawerMoreActionsDescription,
|
|
77
|
+
drawerMoreActionsTitle,
|
|
78
|
+
drawerViewDescription,
|
|
79
|
+
drawerViewTitle,
|
|
73
80
|
filterContent: components.filter,
|
|
74
81
|
formContent: components.form,
|
|
75
82
|
moreActionsContent: components.moreActions,
|
|
@@ -92,7 +99,14 @@ const TeacherPageInner = (props) => {
|
|
|
92
99
|
const teacherConfig = useMemo(() => createTeacherConfig({
|
|
93
100
|
dispatch: context.dispatch,
|
|
94
101
|
cancelLabel: props.cancelLabel,
|
|
95
|
-
|
|
102
|
+
drawerFormTitle: props.drawerFormTitle,
|
|
103
|
+
drawerFormDescription: props.drawerFormDescription,
|
|
104
|
+
drawerViewTitle: props.drawerViewTitle,
|
|
105
|
+
drawerViewDescription: props.drawerViewDescription,
|
|
106
|
+
drawerFilterTitle: props.drawerFilterTitle,
|
|
107
|
+
drawerFilterDescription: props.drawerFilterDescription,
|
|
108
|
+
drawerMoreActionsTitle: props.drawerMoreActionsTitle,
|
|
109
|
+
drawerMoreActionsDescription: props.drawerMoreActionsDescription,
|
|
96
110
|
labelActions: props.labelActions,
|
|
97
111
|
labelEnabled: props.labelEnabled,
|
|
98
112
|
labelId: props.labelId,
|
|
@@ -107,7 +121,14 @@ const TeacherPageInner = (props) => {
|
|
|
107
121
|
}), [
|
|
108
122
|
context.dispatch,
|
|
109
123
|
props.cancelLabel,
|
|
110
|
-
props.
|
|
124
|
+
props.drawerFormTitle,
|
|
125
|
+
props.drawerFormDescription,
|
|
126
|
+
props.drawerViewTitle,
|
|
127
|
+
props.drawerViewDescription,
|
|
128
|
+
props.drawerFilterTitle,
|
|
129
|
+
props.drawerFilterDescription,
|
|
130
|
+
props.drawerMoreActionsTitle,
|
|
131
|
+
props.drawerMoreActionsDescription,
|
|
111
132
|
props.labelActions,
|
|
112
133
|
props.labelEnabled,
|
|
113
134
|
props.labelId,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const TeacherView: () => import("react
|
|
1
|
+
export declare const TeacherView: () => import("react").JSX.Element;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { UserBE, USER_ROLE } from "../../../type";
|
|
2
|
+
import { type RowAction, type TableRow } from "@appcorp/shadcn/components/enhanced-table";
|
|
3
|
+
export declare const useUserModule: () => {
|
|
4
|
+
applyFilters: () => void;
|
|
5
|
+
byIdLoading: boolean;
|
|
6
|
+
clearFilters: () => void;
|
|
7
|
+
clearSearch: () => void;
|
|
8
|
+
closeDrawer: () => void;
|
|
9
|
+
deleteLoading: boolean;
|
|
10
|
+
handleAvatar: (files: File[]) => void;
|
|
11
|
+
handleChange: (field: string, value: string | number | boolean | undefined | null) => void;
|
|
12
|
+
handleCreate: () => void;
|
|
13
|
+
handleDelete: (row?: TableRow) => void;
|
|
14
|
+
handleEdit: (row?: TableRow) => void;
|
|
15
|
+
handleFilters: () => void;
|
|
16
|
+
handleMoreActions: () => void;
|
|
17
|
+
handlePageChange: (page: number | unknown) => void;
|
|
18
|
+
handlePageLimitChange: (k: string, value: object) => void;
|
|
19
|
+
handleSearch: (query: string) => void;
|
|
20
|
+
handleSubmit: () => Promise<void>;
|
|
21
|
+
handleView: (row?: TableRow) => void;
|
|
22
|
+
headerActions: {
|
|
23
|
+
enabled: boolean;
|
|
24
|
+
handleOnClick: () => void;
|
|
25
|
+
label: string;
|
|
26
|
+
order: number;
|
|
27
|
+
}[];
|
|
28
|
+
listFetchNow: (url?: string, config?: import("@react-pakistan/util-functions/hooks/use-fetch").FetchConfig) => void;
|
|
29
|
+
listLoading: boolean;
|
|
30
|
+
rowActions: RowAction[];
|
|
31
|
+
toggleStatus: (row?: TableRow) => void;
|
|
32
|
+
updateLoading: boolean;
|
|
33
|
+
state: {
|
|
34
|
+
items: UserBE[];
|
|
35
|
+
count: number;
|
|
36
|
+
currentPage: number;
|
|
37
|
+
pageLimit: number;
|
|
38
|
+
searchQuery: string;
|
|
39
|
+
disableSaveButton: boolean;
|
|
40
|
+
drawer: string | null;
|
|
41
|
+
errors: Record<string, string>;
|
|
42
|
+
id: string;
|
|
43
|
+
name: string;
|
|
44
|
+
email: string;
|
|
45
|
+
phone: string;
|
|
46
|
+
avatar: string;
|
|
47
|
+
password: string;
|
|
48
|
+
enabled: boolean;
|
|
49
|
+
userRole: USER_ROLE | null;
|
|
50
|
+
filterEnabled: boolean | undefined;
|
|
51
|
+
};
|
|
52
|
+
dispatch: React.Dispatch<any>;
|
|
53
|
+
};
|