mario-education 2.4.485-feedback → 2.4.490-prod

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.
@@ -59,5 +59,6 @@ declare const useDashboard: () => {
59
59
  };
60
60
  goToSession: (sessionId: number, sessionResultId: number) => void;
61
61
  isExistQuestion: boolean;
62
+ setIsExistQuestion: import("react").Dispatch<import("react").SetStateAction<boolean>>;
62
63
  };
63
64
  export default useDashboard;
@@ -2,7 +2,7 @@
2
2
  import { FILTER_SURVEY, SURVEY_RESPONSE, TOTAL_TYPE } from "../configs/types";
3
3
  import { TYPE_SURVEY_OPTION } from "../configs/constants";
4
4
  import { MaterialUiPickersDate } from "@material-ui/pickers/typings/date";
5
- declare const useListSurvey: () => {
5
+ declare const useListSurvey: (pageSize?: number | undefined) => {
6
6
  itemSelectedId: number;
7
7
  itemSelectedStudentId: number;
8
8
  changeFilters: (updatedFilters: any) => void;
@@ -44,5 +44,8 @@ declare const useListSurvey: () => {
44
44
  handleCloseModelLink: () => void;
45
45
  handleCopyToClipboard: (text: string) => void;
46
46
  linkAnonymousSurvey: string;
47
+ goToTemplateSurvey: () => void;
48
+ goToDashboardSurvey: () => void;
49
+ goToSurveyList: () => void;
47
50
  };
48
51
  export default useListSurvey;
@@ -1,6 +1,8 @@
1
1
  /// <reference types="react" />
2
2
  declare type questionCateDetail = {
3
3
  name: string;
4
+ description?: string;
5
+ isFavorite?: boolean;
4
6
  questionIds?: number[];
5
7
  };
6
8
  declare type TemplateQuestion = {
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- declare const useTemplateCateList: () => {
2
+ declare const useTemplateCateList: (isFavorite?: boolean | undefined) => {
3
3
  questionCateList: any;
4
4
  totalItems: any;
5
5
  filters: import("mario-core").Filter;
package/dist/index.css CHANGED
@@ -13458,7 +13458,7 @@ p._1YLGi {
13458
13458
  justify-content: space-between;
13459
13459
  flex-direction: column;
13460
13460
  flex: 1;
13461
- width: 100vw; }
13461
+ width: 100%; }
13462
13462
 
13463
13463
  ._12ysw {
13464
13464
  /* width */
@@ -13604,3 +13604,476 @@ p._1YLGi {
13604
13604
  @media (min-width: 1023px) {
13605
13605
  ._1XXX_ {
13606
13606
  margin-left: 280px; } }
13607
+
13608
+ ._32YVh {
13609
+ height: calc(-200px + 100vh);
13610
+ display: flex;
13611
+ flex-direction: column;
13612
+ }
13613
+
13614
+ ._2pqkt {
13615
+ color: #316cd9;
13616
+ }
13617
+
13618
+ ._10mFg {
13619
+ background: #fff;
13620
+ border-radius: 16px;
13621
+ flex-grow: 1;
13622
+ }
13623
+
13624
+ ._ol6v1 {
13625
+ height: calc(-200px + 100vh);
13626
+ position: relative;
13627
+ display: flex;
13628
+ flex-direction: column;
13629
+ }
13630
+
13631
+ ._1nGwv {
13632
+ padding: 24px;
13633
+ border-radius: 16px;
13634
+ position: relative;
13635
+ }
13636
+
13637
+ ._3ZVx1 {
13638
+ display: flex;
13639
+ flex-direction: column;
13640
+ justify-content: center;
13641
+ padding: 0 24px 0 16px;
13642
+ width: 100%;
13643
+ max-width: 45%;
13644
+ }
13645
+
13646
+ ._3ZVx1 > ._3zJ6N {
13647
+ font-weight: 600;
13648
+ font-size: 24px;
13649
+ line-height: 32px;
13650
+ margin-bottom: 8px;
13651
+ }
13652
+
13653
+ ._3ZVx1 > ._aNEzP {
13654
+ font-weight: 400;
13655
+ font-size: 16px;
13656
+ line-height: 24px;
13657
+ opacity: 0.56;
13658
+ }
13659
+
13660
+ ._T2QhN {
13661
+ display: flex;
13662
+ /* margin-top: 20px; */
13663
+ max-width: 55%;
13664
+ overflow-x: auto;
13665
+ -ms-overflow-style: none;
13666
+ scrollbar-width: none;
13667
+ scroll-behavior: smooth;
13668
+ }
13669
+
13670
+ ._1nGwv::after {
13671
+ content: "";
13672
+ position: absolute;
13673
+ top: 0;
13674
+ right: 0;
13675
+ bottom: 0;
13676
+ width: 60px;
13677
+ background: white;
13678
+ filter: blur(15px);
13679
+ pointer-events: none;
13680
+ transition: opacity 0.3s ease;
13681
+ opacity: 0;
13682
+ }
13683
+
13684
+ ._1nGwv._2k8eW > ._3LX77,
13685
+ ._1nGwv._2k8eW::after {
13686
+ opacity: 1;
13687
+ }
13688
+
13689
+ ._1nGwv._2k8eW > ._T2QhN {
13690
+ width: 100%;
13691
+ }
13692
+
13693
+ ._T2QhN::-webkit-scrollbar {
13694
+ display: none;
13695
+ }
13696
+
13697
+ ._3LX77 {
13698
+ position: absolute;
13699
+ top: 0;
13700
+ right: 16px;
13701
+ bottom: 0;
13702
+ z-index: 1;
13703
+ height: 32px;
13704
+ width: 32px;
13705
+ margin: auto;
13706
+ cursor: pointer;
13707
+ transition: opacity 0.3s ease;
13708
+ opacity: 0;
13709
+ }
13710
+
13711
+ ._rV_wf {
13712
+ width: 100%;
13713
+ background: #f6f6f6;
13714
+ border-radius: 8px;
13715
+ padding: 16px 24px;
13716
+ margin-right: 16px;
13717
+ max-width: 248px;
13718
+ min-width: 228px;
13719
+ width: 100%;
13720
+ display: flex;
13721
+ flex-direction: column;
13722
+ justify-content: space-between;
13723
+ }
13724
+
13725
+ ._rV_wf:last-child {
13726
+ margin-right: 0;
13727
+ }
13728
+
13729
+ ._rV_wf:hover {
13730
+ background: #eff3fc;
13731
+ }
13732
+
13733
+ ._1dkjY {
13734
+ font-size: 18px !important;
13735
+ font-weight: 600 !important;
13736
+ line-height: 24px !important;
13737
+ margin-bottom: 4px !important;
13738
+ display: -webkit-box;
13739
+ -webkit-box-orient: vertical;
13740
+ overflow: hidden;
13741
+ text-overflow: ellipsis;
13742
+ -webkit-line-clamp: 2;
13743
+ }
13744
+
13745
+ ._2N0Jl {
13746
+ font-size: 12px !important;
13747
+ font-weight: 400 !important;
13748
+ line-height: 18px !important;
13749
+ opacity: 0.56 !important;
13750
+ display: -webkit-box;
13751
+ -webkit-box-orient: vertical;
13752
+ overflow: hidden;
13753
+ text-overflow: ellipsis;
13754
+ -webkit-line-clamp: 3;
13755
+ }
13756
+
13757
+ ._FoRnw {
13758
+ padding: 0 !important;
13759
+ margin-top: 30px;
13760
+
13761
+ }
13762
+
13763
+ ._FoRnw,
13764
+ ._FoRnw:focus,
13765
+ ._FoRnw:hover,
13766
+ ._FoRnw:active {
13767
+ color: #316cd9 !important;
13768
+ background: none !important;
13769
+ border: none !important;
13770
+ display: flex !important;
13771
+ align-items: center !important;
13772
+ box-shadow: none !important;
13773
+ }
13774
+
13775
+ ._rV_wf button > svg {
13776
+ width: 16px;
13777
+ height: 16px;
13778
+ }
13779
+
13780
+ ._rV_wf button > p {
13781
+ font-size: 16px;
13782
+ font-weight: 600;
13783
+ line-height: 24px;
13784
+ margin-right: 8px;
13785
+ }
13786
+
13787
+ ._rV_wf button:hover {
13788
+ background: #eff3fc;
13789
+ color: #316cd9;
13790
+ }
13791
+
13792
+ ._y4RMj {
13793
+ margin-top: 32px;
13794
+ padding: 40px 40px 40px 20px;
13795
+ border-radius: 16px;
13796
+ flex-grow: 1;
13797
+ display: flex;
13798
+ flex-direction: column;
13799
+ overflow: hidden;
13800
+ min-height: 480px;
13801
+ }
13802
+
13803
+ ._2vCyM {
13804
+ display: flex;
13805
+ justify-content: space-between;
13806
+ align-items: center;
13807
+ margin-bottom: 28px;
13808
+ margin-left: 20px;
13809
+ }
13810
+
13811
+ ._1RtaL {
13812
+ font-size: 36px !important;
13813
+ font-weight: 700 !important;
13814
+ line-height: 44px !important;
13815
+ }
13816
+
13817
+ ._1VeM- {
13818
+ display: flex;
13819
+ align-items: center;
13820
+ justify-content: center;
13821
+ color: #316cd9;
13822
+ border: 2px solid #316cd9;
13823
+ border-radius: 50px;
13824
+ background: #ffffff;
13825
+ margin-right: 24px;
13826
+ padding: 13.5px 24px;
13827
+ }
13828
+
13829
+ ._2FW07 p,
13830
+ ._1VeM- p {
13831
+ font-size: 14px;
13832
+ font-weight: 700;
13833
+ line-height: 21px;
13834
+ }
13835
+
13836
+ ._2FW07 svg,
13837
+ ._1VeM- svg {
13838
+ width: 24px;
13839
+ height: 24px;
13840
+ margin-right: 8px;
13841
+ }
13842
+
13843
+ ._2FW07 {
13844
+ display: flex;
13845
+ align-items: center;
13846
+ justify-content: center;
13847
+ color: #ffffff;
13848
+ border-radius: 50px;
13849
+ background: #316cd9;
13850
+ border: none;
13851
+ padding: 13.5px 24px;
13852
+ }
13853
+
13854
+ ._1-7Lk {
13855
+ flex-grow: 1;
13856
+ overflow: hidden;
13857
+ padding-left: 20px;
13858
+ }
13859
+
13860
+ ._7ASwE {
13861
+ width: 100%;
13862
+ max-width: 320px;
13863
+ margin-right: 56px;
13864
+ max-height: -webkit-fit-content;
13865
+ max-height: -moz-fit-content;
13866
+ max-height: fit-content;
13867
+ }
13868
+
13869
+ ._5wgo2 {
13870
+ flex-grow: 1;
13871
+ overflow-y: auto;
13872
+ -ms-overflow-style: none;
13873
+ scrollbar-width: none;
13874
+ }
13875
+
13876
+ ._5wgo2::-webkit-scrollbar {
13877
+ display: none;
13878
+ }
13879
+
13880
+ ._1bOyN::after {
13881
+ content: '';
13882
+ position: absolute;
13883
+ left: -20px;
13884
+ right: 0;
13885
+ bottom: -15px;
13886
+ height: 80px;
13887
+ background: white;
13888
+ filter: blur(15px);
13889
+ width: calc(100% + 40px);
13890
+ pointer-events: none;
13891
+ }
13892
+
13893
+ ._1bOyN {
13894
+ width: 100%;
13895
+ flex-grow: 1;
13896
+ display: flex;
13897
+ flex-direction: column;
13898
+ position: relative;
13899
+ }
13900
+
13901
+ ._2N-Ie {
13902
+ width: 100%;
13903
+ border-radius: 16px;
13904
+ padding: 24px;
13905
+ }
13906
+
13907
+ ._n24sR {
13908
+ font-size: 18px !important;
13909
+ font-weight: 600 !important;
13910
+ line-height: 24px !important;
13911
+ margin-right: 16px !important;
13912
+ }
13913
+
13914
+ ._1f6ee {
13915
+ cursor: pointer;
13916
+ }
13917
+
13918
+ ._3dWko {
13919
+ margin-bottom: 24px;
13920
+ }
13921
+
13922
+ ._1f6ee p {
13923
+ font-size: 16px;
13924
+ font-weight: 600;
13925
+ line-height: 24px;
13926
+ margin-right: 8px;
13927
+ color: #316cd9;
13928
+ }
13929
+
13930
+ ._1f6ee svg {
13931
+ color: #316cd9;
13932
+ width: 16px;
13933
+ height: 16px;
13934
+ }
13935
+
13936
+ ._bKT0k {
13937
+ background: #d9eee4;
13938
+ margin-bottom: 16px;
13939
+ }
13940
+
13941
+ ._1O-jW {
13942
+ font-size: 48px !important;
13943
+ font-weight: 700 !important;
13944
+ line-height: 56px !important;
13945
+ font-family: "Montserrat-Bold" !important;
13946
+ }
13947
+
13948
+ ._GLrEM {
13949
+ font-size: 12px !important;
13950
+ font-weight: 400 !important;
13951
+ line-height: 18px !important;
13952
+ opacity: 0.56 !important;
13953
+ }
13954
+
13955
+ ._1LDJ_ {
13956
+ box-shadow: 0 0 24px 0 rgba(96, 141, 224, 0.23921568627450981);
13957
+ }
13958
+
13959
+ ._W9PK3 {
13960
+ padding: 16px 24px;
13961
+ width: 100%;
13962
+ background: #fff;
13963
+ }
13964
+
13965
+ ._W9PK3:nth-child(odd) {
13966
+ background: #f6f6f6;
13967
+ }
13968
+
13969
+ ._W9PK3:last-child {
13970
+ margin-bottom: 20px;
13971
+ }
13972
+
13973
+ ._W9PK3 > ._3c4hi {
13974
+ font-size: 14px;
13975
+ font-weight: 600;
13976
+ line-height: 20px;
13977
+ /* max-width: 50%; */
13978
+ width: 100%;
13979
+ display: -webkit-box;
13980
+ -webkit-box-orient: vertical;
13981
+ overflow: hidden;
13982
+ text-overflow: ellipsis;
13983
+ -webkit-line-clamp: 1;
13984
+ }
13985
+
13986
+ ._W9PK3 > ._2EvrJ {
13987
+ max-width: 200px;
13988
+ width: 100%;
13989
+ white-space: nowrap;
13990
+ overflow: hidden;
13991
+ text-overflow: ellipsis;
13992
+ }
13993
+
13994
+ ._W9PK3 > ._2EvrJ > span {
13995
+ font-size: 12px;
13996
+ font-weight: 400;
13997
+ line-height: 18px;
13998
+ }
13999
+
14000
+ ._W9PK3 > ._29PJt,
14001
+ ._W9PK3 > ._GAmd7 {
14002
+ max-width: 15%;
14003
+ width: 100%;
14004
+ display: flex;
14005
+ justify-content: center;
14006
+ }
14007
+
14008
+ ._W9PK3 > ._GAmd7 > p {
14009
+ padding: 5px 10px;
14010
+ border-radius: 50px;
14011
+ font-size: 14px;
14012
+ color: #242424;
14013
+ background: #ffb0a6;
14014
+ text-transform: capitalize;
14015
+ width: -webkit-fit-content;
14016
+ width: -moz-fit-content;
14017
+ width: fit-content;
14018
+ }
14019
+
14020
+ ._W9PK3 > ._29PJt > p {
14021
+ padding: 5px 10px;
14022
+ border-radius: 50px;
14023
+ color: #fff;
14024
+ font-size: 14px;
14025
+ background: var(--green-dark);
14026
+ text-transform: capitalize;
14027
+ width: -webkit-fit-content;
14028
+ width: -moz-fit-content;
14029
+ width: fit-content;
14030
+ }
14031
+
14032
+ ._1Gz67 > button,
14033
+ ._1Gz67 > button:focus,
14034
+ ._1Gz67 > button:hover,
14035
+ ._1Gz67 > button:active {
14036
+ background: transparent !important;
14037
+ border: none !important;
14038
+ color: #242424 !important;
14039
+ outline: none !important;
14040
+ box-shadow: none !important;
14041
+ padding-right: 0;
14042
+ }
14043
+
14044
+ ._1Gz67 {
14045
+ display: flex;
14046
+ justify-content: flex-end;
14047
+ width: 20px;
14048
+ }
14049
+
14050
+
14051
+ ._15kTE {
14052
+ padding-left: 0;
14053
+ padding-top: 8px;
14054
+ padding-bottom: 8px;
14055
+ margin-bottom: 0;
14056
+
14057
+ }
14058
+
14059
+ ._15kTE ._3LaNO {
14060
+ padding: 16px 24px;
14061
+ font-size: 16px;
14062
+ font-weight: 400;
14063
+ list-style: none;
14064
+ font-family: "Poppins-Regular";
14065
+ border-bottom: 1px solid transparent;
14066
+ border-top: 1px solid transparent;
14067
+ cursor: pointer;
14068
+ }
14069
+
14070
+ ._15kTE ._3LaNO:hover {
14071
+ color: #316CD9;
14072
+ background: #EFF3FC;
14073
+ border-color: #D3D3D3;
14074
+ }
14075
+
14076
+ ._nXa-q {
14077
+ width: 24px;
14078
+ height: 24px;
14079
+ }
package/dist/index.d.ts CHANGED
@@ -53,4 +53,5 @@ import MainLayoutAdmin from "./layouts/MainLayoutAdmin";
53
53
  import SyncData from "./containers/SyncData/views/SyncData";
54
54
  import SummarizeQuestion from "./containers/Dashboard/views/SummarizeQuestion";
55
55
  import SurveyQuestion from "./containers/QuestionBank/views/SurveyQuestion";
56
- export { ClassList, ConferenceRubricList, ConferenceRubricDetail, SuggestionList, LearningStrategyList, SetupContainer, QuestionBankList, ReflectionFormList, ReflectionContainer, QuestionDetail, SubjectList, LearningSupportCategoryList, BadgeList, GoalExampleList, TutorialScreenContainer, FeedbackList, AssessmentList, QuestionBankContainer, SurveyQuestionContainer, QuestionCategoryList, AssignmentList, AssessmentAssignmentContainer, SessionTemplateContainer, SessionTemplateDetail, SessionTemplateGeneralClassDetail, CustomAlertList, CertificateContainer, CompareTeacher, AssetLog, SessionTemplateList, SessionTemplateGeneralClassList, Dashboard, AdminTraining, TemplateContainer, OneRosterContainer, SandboxContainer, TemplateBuilderPage, TemplateStartBuild, SurveyDashboardContainer, RevertUser, FixDataStudent, CustomQuestionAlert, SurveyDetailAdmin, SurveyStudentFlagListAdmin, SurveyResultAdmin, SurveyIndexAdmin, CreateSurveyAdmin, PreviewSurveyAdmin, WeeklyQuest, SettingWeeklyQuest, HomePage, MainLayoutAdmin, SyncData, SummarizeQuestion, SurveyQuestion };
56
+ import SurveyPortal from "./containers/SurveyDashboard/views/SurveyPortal";
57
+ export { ClassList, ConferenceRubricList, ConferenceRubricDetail, SuggestionList, LearningStrategyList, SetupContainer, QuestionBankList, ReflectionFormList, ReflectionContainer, QuestionDetail, SubjectList, LearningSupportCategoryList, BadgeList, GoalExampleList, TutorialScreenContainer, FeedbackList, AssessmentList, QuestionBankContainer, SurveyQuestionContainer, QuestionCategoryList, AssignmentList, AssessmentAssignmentContainer, SessionTemplateContainer, SessionTemplateDetail, SessionTemplateGeneralClassDetail, CustomAlertList, CertificateContainer, CompareTeacher, AssetLog, SessionTemplateList, SessionTemplateGeneralClassList, Dashboard, AdminTraining, TemplateContainer, OneRosterContainer, SandboxContainer, TemplateBuilderPage, TemplateStartBuild, SurveyDashboardContainer, RevertUser, FixDataStudent, CustomQuestionAlert, SurveyDetailAdmin, SurveyStudentFlagListAdmin, SurveyResultAdmin, SurveyIndexAdmin, CreateSurveyAdmin, PreviewSurveyAdmin, WeeklyQuest, SettingWeeklyQuest, HomePage, MainLayoutAdmin, SyncData, SummarizeQuestion, SurveyQuestion, SurveyPortal };