mario-core 2.9.212-release → 2.9.212-sso

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.
@@ -1,4 +1,3 @@
1
- import { LogLevel } from "@azure/msal-browser";
2
1
  /**
3
2
  * Configuration object to be passed to MSAL instance on creation.
4
3
  * For a full list of MSAL.js configuration parameters, visit:
@@ -16,7 +15,7 @@ export declare const msalConfig: {
16
15
  };
17
16
  system: {
18
17
  loggerOptions: {
19
- loggerCallback: (level: LogLevel, message: string, containsPii: any) => void;
18
+ loggerCallback: (level: any, message: string, containsPii: any) => void;
20
19
  };
21
20
  };
22
21
  };
@@ -5,3 +5,22 @@ export interface ICreatePassword {
5
5
  userId: string;
6
6
  token: string;
7
7
  }
8
+ export declare enum TypeLogin {
9
+ Google = 0,
10
+ ClassLink = 1,
11
+ MicrosoftSSO = 2
12
+ }
13
+ export interface IInformationUser {
14
+ firstName: string;
15
+ lastName: string;
16
+ fullName: string;
17
+ imageUrl: string | null;
18
+ email: string;
19
+ accessToken: string;
20
+ googleId: string;
21
+ }
22
+ export declare enum LoginType {
23
+ Default = 0,
24
+ Google = 1,
25
+ Impersonate = 2
26
+ }
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ import { TypeLogin } from "../constant/types";
2
3
  declare type LoginInfo = {
3
4
  email: string;
4
5
  password: string;
@@ -12,13 +13,15 @@ declare const useLogin: () => {
12
13
  toggle: () => void;
13
14
  isShowPassword: boolean;
14
15
  setIsShowPassword: import("react").Dispatch<import("react").SetStateAction<boolean>>;
15
- fnIsCheckLogin: (data: any, token: string, clickHandler: any) => Promise<void>;
16
- isLoginGoogle: boolean;
16
+ fnIsCheckLogin: (type: TypeLogin, data: any, token: string, clickHandler?: any) => Promise<void>;
17
+ isLoginGoogle: any;
17
18
  infoUser: any;
18
- setInfoUser: import("react").Dispatch<any>;
19
19
  submitLogin: (teacherId: number, clickHandler: any) => Promise<void>;
20
- setIsLoginGoogle: import("react").Dispatch<import("react").SetStateAction<boolean>>;
21
20
  googleClientId: string;
22
21
  googleRecaptchaId: string;
22
+ handleCancelModelAssign: () => void;
23
+ openModelAssign: boolean;
24
+ fnLoginSSO: (clickHandler?: any) => Promise<void>;
25
+ handleLoginWidthClever: () => void;
23
26
  };
24
27
  export default useLogin;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ interface Props {
3
+ open: boolean;
4
+ onClose: Function;
5
+ onConfirm: Function;
6
+ }
7
+ declare const BlockAssignTeacherByCode: ({ open, onClose, onConfirm }: Props) => JSX.Element;
8
+ export default BlockAssignTeacherByCode;
@@ -2,6 +2,8 @@ import { FC } from "react";
2
2
  interface Props {
3
3
  defaultInfo?: any;
4
4
  userLogin?: any;
5
+ onCancelModelAssign: Function;
6
+ openModelAssign: boolean;
5
7
  }
6
8
  declare const BlockLogin: FC<Props>;
7
9
  export default BlockLogin;
@@ -6,7 +6,6 @@ interface Props {
6
6
  onSubmit: any;
7
7
  token: string;
8
8
  email: string;
9
- setOpenModal: any;
10
9
  }
11
10
  declare const _default: React.ForwardRefExoticComponent<Props & React.RefAttributes<unknown>>;
12
11
  export default _default;
@@ -7,5 +7,8 @@ declare const useAssignStudent: (teacherSelected?: object | undefined, assistant
7
7
  handleChangeStaffBulk: (name: string, id: string) => void;
8
8
  staffBulkAssign: IStaffAssign;
9
9
  handleAssignStaffToStudents: (listUserIds: string[]) => void;
10
+ handleToggleInactiveModal: (listUserIds?: string[] | undefined) => void;
11
+ openInactiveModal: boolean;
12
+ handleInactiveStudents: (listStudentIds: string[], callback: () => void) => Promise<void>;
10
13
  };
11
14
  export default useAssignStudent;
package/dist/index.css CHANGED
@@ -712,6 +712,54 @@
712
712
  font-size: 20px;
713
713
  padding: 10px 20px; }
714
714
 
715
+ ._DrSlA {
716
+ text-align: center;
717
+ background: #e5e5e5;
718
+ font-size: 15px;
719
+ color: #ad9292;
720
+ border-radius: 8px;
721
+ cursor: pointer; }
722
+ ._DrSlA img {
723
+ width: 65px;
724
+ height: auto; }
725
+ ._DrSlA ._20YJX {
726
+ width: 32px !important; }
727
+
728
+ ._3Vgah {
729
+ padding-top: 108px;
730
+ padding-right: 16px; }
731
+ ._3Vgah > div {
732
+ display: flex;
733
+ align-items: center;
734
+ justify-content: center;
735
+ font-weight: 600;
736
+ font-size: 16px;
737
+ line-height: 24px;
738
+ color: #242424;
739
+ padding: 12px 20px;
740
+ border: none;
741
+ border-radius: 8px; }
742
+ ._1jraB > div {
743
+ background-color: #d9eee4; }
744
+
745
+ @media (max-width: 599.95px) {
746
+ ._3Vgah {
747
+ padding-right: 8px;
748
+ padding-top: 72px;
749
+ max-width: 250px;
750
+ width: -webkit-fit-content;
751
+ width: -moz-fit-content;
752
+ width: fit-content; }
753
+ ._3Vgah > div {
754
+ align-items: self-start;
755
+ font-size: 14px;
756
+ line-height: 20px; } }
757
+
758
+ @media (min-width: 599.95px) and (max-width: 1279.95px) {
759
+ ._3Vgah {
760
+ padding-right: 8px;
761
+ padding-top: 88px; } }
762
+
715
763
  ._297lu {
716
764
  width: 100%;
717
765
  height: 100%; }
package/dist/index.d.ts CHANGED
@@ -111,5 +111,6 @@ import { setStudentIdSelectedByTeacher } from "./redux/navMobile/action";
111
111
  import { setEnableIEP, setEnableSurvey, setConversationOneToOne, setLanguage, setSandboxMode } from "./redux/commons/action";
112
112
  import useFilters from "./hooks/useFilters";
113
113
  import amplitude from "amplitude-js";
114
+ import { setWeeklyQuestList, setOpenModelCongratulation } from "./redux/weeklyQuests/action";
114
115
  declare const amplitudeClient: amplitude.AmplitudeClient;
115
- export { Login, Dashboard, TheLayout, TheContent, NotFound, EmailTemplateList, EmailTemplateDetail, FaqList, SkillList, UserList, UserContainer, UserDetail, Loading, NotificationModal, CommonHeader, CommonModal, NotificationLogoutModal, AddButton, DeleteButtonIcon, EditButtonIcon, LinkEditButton, ToggleButton, EmptyDataAlert, SandboxAlert, CreatableSelector, CustomPagination, SearchBox, FileInput, QuitPrompt, QuestionTypeSelector, QuestionCategorySelector, SuggestionCategorySelector, CategorySelector, ErrorHandler, DetailActionButtons, RequiredLabel, StarRatingSelector, ReactNotification, NotificationList, CustomSelector, UploadFileButton, SearchBoxContainer, CustomTab, CommonAlert, GalleryList, MediaList, useGalleryList, AcademicClassSelector, SchoolList, store, showMenuBar, showFontSize, setLoading, setModal, setAlert, setClassList, setConferenceRubricList, setSuggestionList, setStrategyList, setSubjectList, setLearningSupportCategoryList, setQuestionList, setUserList, setStudentList, setBadgeList, setGoalExampleList, setSemesterList, setFeedbackList, setAssessmentList, setQuestionByCategory, setSelectQuestion, setMoveItemQuestion, setReflectionList, setReflectionResultList, setEditItemQuesion, setResetQuestionList, setMailCategory, setUser, setAssignmentList, setAssistantList, setSessionTemplateList, setTutorialScreenList, setSessionTemplateGeneralClassList, setCustomAlertList, setCertificateList, closeTab, addTab, editTab, clearTab, changeNote, changeTags, answerQuestion, setSessionPlayer, setStartTime, setTurnOffPassWhenChangeMode, reset, setImproveMyClass, setSchoolBlankDayList, setEnableIEP, setEnableSurvey, setConversationOneToOne, setLanguage, setSandboxMode, i18n, useTranslation, I18nextProvider, api, apiUpload, uploadFile, systemStudentBadge, systemCertificateUpload, BASE_URL, DEFAULT_FILTER, LICENSE_AGGRID, TINY_MCE_API_KEY, QUESTION_TYPES, QUESTION_TYPES_OPTIONS, ANSWER_EDITOR_HEIGHT, CHAT_CHANNEL, NOTIFICATION_CHANNEL, DATE_RESULT, DATE_FORMAT, FULL_DATE_RESULT, ACCESS_TOKEN, NOTIFICATION_ALERT_KEY, GOOGLE_RECAPTCHA_KEY, DEFAULT_LANGUAGE_CODE, LANGUAGES, SUPPORTED_LANGUAGES_CODE, EMOTIONS, TAB_COLORS, SANDBOX_NOTIFICATION, Filter, Conversation, Message, ConversationMember, NavbarTab, editorConfig, generateRandomString, isInViewport, debounce, firstCheckToken, canAccessRoute, getFileUrl, getTextFromHTML, utcToLocalTime, getInfo, Images, setQuestionCateList, setMyStudent, setDataPlayer, answerQuestionDataPlayer, setCurrentStudentUserId, setCurrentStudentId, setCurrentStudentName, setFilterWidget, setBandScoreList, setStudentIdSelectedByTeacher, useFilters, ScrollToTop, initAmplitude, amplitudeClient, INIT_AMPLITUDE_KEY_STAGE, INIT_AMPLITUDE_KEY_PROD, isLocalhost, getStaticFileUrl };
116
+ export { Login, Dashboard, TheLayout, TheContent, NotFound, EmailTemplateList, EmailTemplateDetail, FaqList, SkillList, UserList, UserContainer, UserDetail, Loading, NotificationModal, CommonHeader, CommonModal, NotificationLogoutModal, AddButton, DeleteButtonIcon, EditButtonIcon, LinkEditButton, ToggleButton, EmptyDataAlert, SandboxAlert, CreatableSelector, CustomPagination, SearchBox, FileInput, QuitPrompt, QuestionTypeSelector, QuestionCategorySelector, SuggestionCategorySelector, CategorySelector, ErrorHandler, DetailActionButtons, RequiredLabel, StarRatingSelector, ReactNotification, NotificationList, CustomSelector, UploadFileButton, SearchBoxContainer, CustomTab, CommonAlert, GalleryList, MediaList, useGalleryList, AcademicClassSelector, SchoolList, store, showMenuBar, showFontSize, setLoading, setModal, setAlert, setClassList, setConferenceRubricList, setSuggestionList, setStrategyList, setSubjectList, setLearningSupportCategoryList, setQuestionList, setUserList, setStudentList, setBadgeList, setGoalExampleList, setSemesterList, setFeedbackList, setAssessmentList, setQuestionByCategory, setSelectQuestion, setMoveItemQuestion, setReflectionList, setReflectionResultList, setEditItemQuesion, setResetQuestionList, setMailCategory, setUser, setAssignmentList, setAssistantList, setSessionTemplateList, setTutorialScreenList, setSessionTemplateGeneralClassList, setCustomAlertList, setCertificateList, closeTab, addTab, editTab, clearTab, changeNote, changeTags, answerQuestion, setSessionPlayer, setStartTime, setTurnOffPassWhenChangeMode, reset, setImproveMyClass, setSchoolBlankDayList, setEnableIEP, setEnableSurvey, setConversationOneToOne, setLanguage, setWeeklyQuestList, setOpenModelCongratulation, setSandboxMode, i18n, useTranslation, I18nextProvider, api, apiUpload, uploadFile, systemStudentBadge, systemCertificateUpload, BASE_URL, DEFAULT_FILTER, LICENSE_AGGRID, TINY_MCE_API_KEY, QUESTION_TYPES, QUESTION_TYPES_OPTIONS, ANSWER_EDITOR_HEIGHT, CHAT_CHANNEL, NOTIFICATION_CHANNEL, DATE_RESULT, DATE_FORMAT, FULL_DATE_RESULT, ACCESS_TOKEN, NOTIFICATION_ALERT_KEY, GOOGLE_RECAPTCHA_KEY, DEFAULT_LANGUAGE_CODE, LANGUAGES, SUPPORTED_LANGUAGES_CODE, EMOTIONS, TAB_COLORS, SANDBOX_NOTIFICATION, Filter, Conversation, Message, ConversationMember, NavbarTab, editorConfig, generateRandomString, isInViewport, debounce, firstCheckToken, canAccessRoute, getFileUrl, getTextFromHTML, utcToLocalTime, getInfo, Images, setQuestionCateList, setMyStudent, setDataPlayer, answerQuestionDataPlayer, setCurrentStudentUserId, setCurrentStudentId, setCurrentStudentName, setFilterWidget, setBandScoreList, setStudentIdSelectedByTeacher, useFilters, ScrollToTop, initAmplitude, amplitudeClient, INIT_AMPLITUDE_KEY_STAGE, INIT_AMPLITUDE_KEY_PROD, isLocalhost, getStaticFileUrl };