mario-education 2.4.464-release → 2.4.465-release

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,3 +1,3 @@
1
1
  import { ILastAnswerTable } from "../configs/types";
2
- declare const LastAnswerTable: ({ items, onOder }: ILastAnswerTable) => JSX.Element;
2
+ declare const LastAnswerTable: ({ items, onOder, lineClamp, filter, goToSession, subClassName }: ILastAnswerTable) => JSX.Element;
3
3
  export default LastAnswerTable;
@@ -99,6 +99,7 @@ export declare type DashboardFilter = {
99
99
  optionDate?: string;
100
100
  favoriteSurvey?: number[];
101
101
  academicYearId?: any;
102
+ searchString?: string;
102
103
  };
103
104
  export interface ICircleChartItem {
104
105
  id: number;
@@ -383,4 +384,51 @@ export interface IModelSkillStudent {
383
384
  name?: string;
384
385
  responseStudent?: IResponseStudentQuestion[];
385
386
  }
387
+ export interface ISummarizeQuestion {
388
+ totalItems: number;
389
+ pageSize: number;
390
+ currentPage: number;
391
+ items: ISummarizeAnswer[];
392
+ }
393
+ export interface ISummarizeAnswer {
394
+ studentProfileImage: string;
395
+ studentName: string;
396
+ grade: string;
397
+ checkInDate: string;
398
+ isCreatedByTeacher: boolean;
399
+ answer: string;
400
+ sessionId: number;
401
+ sessionResultId: number;
402
+ }
403
+ export interface ILastAnswerTable {
404
+ items: ISummarizeAnswer[];
405
+ onOder: Function;
406
+ filter: any;
407
+ lineClamp?: number;
408
+ goToSession: Function;
409
+ subClassName?: string;
410
+ }
411
+ export interface IQuestionFilter {
412
+ startDate?: number;
413
+ endDate?: number;
414
+ studentIds: number[];
415
+ gender?: number[];
416
+ grade: string[];
417
+ teacherId?: number;
418
+ mtss?: MtssType;
419
+ studentId?: number;
420
+ calendar?: string;
421
+ currentGrade?: string;
422
+ teacherUserId?: string;
423
+ studentUserId?: string;
424
+ bandScore: string;
425
+ optionDate?: string;
426
+ favoriteSurvey?: number[];
427
+ academicYearId?: any;
428
+ pageSize: number;
429
+ currentPage: number;
430
+ sortBy: string;
431
+ sortOrder: string;
432
+ searchString: string;
433
+ }
386
434
  export {};
@@ -47,5 +47,15 @@ declare const useChartDatas: () => {
47
47
  schoolName: any;
48
48
  studentSkillQuestion: import("../../MyStudent/components/NewOverview/Chat/types/types").IStudentSkillQuestion;
49
49
  classFontSize: string;
50
+ summarizeQuestions: import("../configs/types").ISummarizeQuestion | undefined;
51
+ handleRedirectAllAnswer: () => void;
52
+ handleChangeQuestionFilter: (key: string) => void;
53
+ questionFilters: {
54
+ pageSize: number;
55
+ currentPage: number;
56
+ sortBy: string;
57
+ sortOrder: string;
58
+ };
59
+ goToSession: (sessionId: number, sessionResultId: number) => void;
50
60
  };
51
61
  export default useChartDatas;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { DashboardFilter, IActivityCircle, IlearningStrategies, IReadinessToLearning, IStudentByGrade, IStudentBySpecialNeed, IsyntheticFriendCircle, BAND_SCORE, IStudentByAge, IStudentByGender, IDashboardToTalStudent, IQuestionResponseLastMonth, IStudentPressure, IOverallReadinessToLearn, ILabelBox, ISeries } from "../configs/types";
2
+ import { DashboardFilter, IActivityCircle, IlearningStrategies, IReadinessToLearning, IStudentByGrade, IStudentBySpecialNeed, IsyntheticFriendCircle, BAND_SCORE, IStudentByAge, IStudentByGender, IDashboardToTalStudent, IQuestionResponseLastMonth, IStudentPressure, IOverallReadinessToLearn, ILabelBox, ISeries, ISummarizeQuestion } from "../configs/types";
3
3
  import { IFilter, Student } from "../../../utils/type";
4
4
  import { IStudentSkillQuestion } from "../../MyStudent/components/NewOverview/Chat/types/types";
5
5
  declare const useDashboard: () => {
@@ -48,5 +48,15 @@ declare const useDashboard: () => {
48
48
  labelBox: ILabelBox;
49
49
  setLabelBox: import("react").Dispatch<import("react").SetStateAction<ILabelBox>>;
50
50
  studentSkillQuestion: IStudentSkillQuestion;
51
+ summarizeQuestions: ISummarizeQuestion | undefined;
52
+ handleRedirectAllAnswer: () => void;
53
+ handleChangeQuestionFilter: (key: string) => void;
54
+ questionFilters: {
55
+ pageSize: number;
56
+ currentPage: number;
57
+ sortBy: string;
58
+ sortOrder: string;
59
+ };
60
+ goToSession: (sessionId: number, sessionResultId: number) => void;
51
61
  };
52
62
  export default useDashboard;
@@ -16,5 +16,8 @@ declare const useSummarizeQuestion: () => {
16
16
  handleFilterStudent: (option: any) => void;
17
17
  studentDefault: Student | undefined;
18
18
  handleSort: (key: string) => void;
19
+ goToSession: (sessionId: number, sessionResultId: number) => void;
20
+ changeFilters: (updateFilters: any) => void;
21
+ updateSearchString: (value: string) => void;
19
22
  };
20
23
  export default useSummarizeQuestion;
package/dist/index.css CHANGED
@@ -155,6 +155,31 @@ tbody._b-AXV tr {
155
155
  }
156
156
  }
157
157
 
158
+ ._26Dpb {
159
+ margin-left: 10px;
160
+ }
161
+
162
+ ._1cx7c {
163
+ background: #fff;
164
+ border: 1px solid rgba(51, 51, 51, 0.1);
165
+ border-radius: 6px;
166
+ padding: 5px 17px;
167
+ margin-bottom: 10px;
168
+ height: 41.5px;
169
+ max-width: 218px;
170
+ }
171
+
172
+ ._1cx7c > input {
173
+ border: none;
174
+ outline: none;
175
+ box-shadow: none;
176
+ }
177
+
178
+ ._1cx7c > input:focus {
179
+ outline: none;
180
+ box-shadow: none;
181
+ }
182
+
158
183
  ._1XSIo {
159
184
  position: absolute;
160
185
  width: 100%;
@@ -2435,6 +2460,224 @@ h6._3zOGW {
2435
2460
  margin: 20px 40px;
2436
2461
  font-size: 12px;
2437
2462
  color: #c1c1c1;
2463
+ }
2464
+
2465
+ ._1ym2M {
2466
+ padding: 20px;
2467
+ border-radius: 8px;
2468
+ background-color: #ffffff;
2469
+ }
2470
+
2471
+ ._3h9Lc {
2472
+ height: calc(-200px + 100vh);
2473
+ /* overflow: hidden; */
2474
+ display: flex;
2475
+ flex-direction: column;
2476
+ }
2477
+
2478
+ ._1ym2M > ._21miX {
2479
+ font-size: 24px;
2480
+ font-weight: 600;
2481
+ line-height: 32px;
2482
+ }
2483
+
2484
+ ._1ym2M > ._38wLO {
2485
+ font-size: 32px;
2486
+ font-weight: 600;
2487
+ line-height: 40px;
2488
+ margin-bottom: 8px;
2489
+ }
2490
+
2491
+ ._1ym2M > ._3giEV {
2492
+ font-size: 14px;
2493
+ font-weight: 400;
2494
+ line-height: 20px;
2495
+ color: #242424;
2496
+ opacity: 56%;
2497
+ margin: 4px 0 24px;
2498
+ }
2499
+
2500
+ ._3uLFq {
2501
+ font-size: 14px !important;
2502
+ font-weight: 400 !important;
2503
+ line-height: 22px !important;
2504
+ color: #242424;
2505
+ opacity: 56%;
2506
+ margin-right: 4px !important;
2507
+ }
2508
+
2509
+ ._2qDE6 {
2510
+ font-size: 14px !important;
2511
+ font-weight: 600 !important;
2512
+ line-height: 22px !important;
2513
+ margin-right: 16px !important;
2514
+ }
2515
+
2516
+ ._1tIKM {
2517
+ color: #316CD9;
2518
+ cursor: pointer;
2519
+ }
2520
+
2521
+ ._1tIKM:hover {
2522
+ color: #2B54A8;
2523
+ }
2524
+
2525
+ ._2D8wS {
2526
+ font-size: 14px !important;
2527
+ font-weight: 600 !important;
2528
+ line-height: 22px !important;
2529
+ margin-right: 8px !important;
2530
+ }
2531
+
2532
+ ._3KJDS {
2533
+ display: flex;
2534
+ flex-direction: column;
2535
+ height: 100%;
2536
+ flex-grow: 1;
2537
+ overflow: hidden;
2538
+ }
2539
+
2540
+ ._3KJDS > ._QR625 {
2541
+ flex-shrink: 0;
2542
+ }
2543
+
2544
+ ._3KJDS > ._xCCue {
2545
+ flex-grow: 1;
2546
+ overflow-y: auto;
2547
+ display: block;
2548
+ padding-right: 10px;
2549
+ /* width: calc(100% + 10px); */
2550
+ }
2551
+
2552
+ ._3KJDS > ._xCCue::-webkit-scrollbar {
2553
+ width: 10px;
2554
+ }
2555
+
2556
+ ._3KJDS > ._xCCue::-webkit-scrollbar-track {
2557
+ background: #F6F6F6;
2558
+ border-radius: 8px;
2559
+ box-shadow: none;
2560
+ }
2561
+
2562
+ ._3KJDS > ._xCCue::-webkit-scrollbar-thumb {
2563
+ background: #316CD9;
2564
+ border: 2px solid #e1e1e1;
2565
+ }
2566
+
2567
+ ._3KJDS > ._xCCue::-webkit-scrollbar-thumb:hover {
2568
+ background: #2a5ebe;
2569
+ }
2570
+
2571
+ ._3KJDS > ._xCCue > table {
2572
+ table-layout: fixed;
2573
+ width: 100%;
2574
+ }
2575
+
2576
+ ._3zJ60 {
2577
+ display: table !important;
2578
+ width: 100%;
2579
+ table-layout: fixed;
2580
+ width: calc(100% - 20px);
2581
+ }
2582
+
2583
+ ._3iePe {
2584
+ cursor: pointer;
2585
+ }
2586
+
2587
+ ._3iePe:last-child {
2588
+ cursor: default;
2589
+ }
2590
+
2591
+ ._3iePe > div {
2592
+ font-size: 14px !important;
2593
+ font-weight: 400 !important;
2594
+ line-height: 20px !important;
2595
+ opacity: 56%;
2596
+ }
2597
+
2598
+ ._3iePe > div > svg {
2599
+ width: 16px;
2600
+ height: 16px;
2601
+ margin-left: 8px;
2602
+ }
2603
+
2604
+ ._jt5M3 > ._2cEqW,
2605
+ ._jt5M3 > ._2cEqW > div,
2606
+ ._jt5M3 > ._2cEqW > div > div,
2607
+ ._jt5M3 > ._2cEqW > div > span,
2608
+ ._jt5M3 > ._2cEqW > div > span > span {
2609
+ font-size: 14px;
2610
+ font-weight: 400;
2611
+ line-height: 20px;
2612
+ border-bottom: none;
2613
+ }
2614
+
2615
+ ._2cEqW > div > ._qGHNb {
2616
+ display: -webkit-box;
2617
+ -webkit-box-orient: vertical;
2618
+ overflow: hidden;
2619
+ text-overflow: ellipsis;
2620
+ font-size: 14px;
2621
+ font-weight: 400;
2622
+ line-height: 20px;
2623
+ }
2624
+
2625
+ ._1FNac {
2626
+ display: block !important;
2627
+ /* max-height: 400px;
2628
+ overflow-y: scroll; */
2629
+ }
2630
+
2631
+ ._e1eW1 > ._ZaJN5 {
2632
+ display: table;
2633
+ width: 100%;
2634
+ table-layout: fixed;
2635
+ }
2636
+
2637
+ ._e1eW1 > ._ZaJN5 > ._18pQP:nth-child(1) {
2638
+ width: 18%;
2639
+ }
2640
+
2641
+ ._e1eW1 > ._ZaJN5 > ._18pQP:nth-child(2) {
2642
+ width: 10%;
2643
+ }
2644
+
2645
+ ._e1eW1 > ._ZaJN5 > ._18pQP:nth-child(3) {
2646
+ width: 15%;
2647
+ }
2648
+
2649
+ ._e1eW1 > ._ZaJN5 > ._18pQP:nth-child(4) {
2650
+ width: 12%;
2651
+ }
2652
+
2653
+ ._e1eW1 > ._ZaJN5 > ._18pQP:nth-child(5) {
2654
+ width: 30%;
2655
+ }
2656
+
2657
+ ._e1eW1 > ._ZaJN5 > ._18pQP:nth-child(6) {
2658
+ width: 15%;
2659
+ }
2660
+
2661
+ ._e1eW1 > ._jt5M3:nth-child(odd) {
2662
+ background-color: #F6F6F6;
2663
+ }
2664
+
2665
+ ._3t-xa {
2666
+ width: 24px;
2667
+ height: 24px;
2668
+ margin-right: 8px;
2669
+ }
2670
+
2671
+ ._2nFrb {
2672
+ margin: 24px 0;
2673
+ }
2674
+
2675
+ ._1e_HY {
2676
+ height: calc(-200px + 100vh)
2677
+ }
2678
+
2679
+ ._2emfn > div > div > nav > ul {
2680
+ margin: 16px 0 0;
2438
2681
  }
2439
2682
  @font-face {
2440
2683
  font-family: "Lato-Regular";
@@ -12616,9 +12859,10 @@ p._1YLGi {
12616
12859
 
12617
12860
  ._mQufI {
12618
12861
  display: flex;
12619
- min-height: 100vh;
12620
12862
  justify-content: space-between;
12621
- flex-direction: column; }
12863
+ flex-direction: column;
12864
+ flex: 1;
12865
+ width: 100vw; }
12622
12866
 
12623
12867
  ._12ysw {
12624
12868
  /* width */
@@ -12753,7 +12997,8 @@ p._1YLGi {
12753
12997
 
12754
12998
  @media (max-width: 1023px) {
12755
12999
  ._2dEzh {
12756
- flex-direction: column; }
13000
+ flex-direction: column;
13001
+ width: 100%; }
12757
13002
  ._2lSk2 {
12758
13003
  margin-bottom: 8px; } }
12759
13004
 
package/dist/index.d.ts CHANGED
@@ -51,4 +51,5 @@ import SettingWeeklyQuest from "./containers/QuestionBank/views/SettingWeeklyQue
51
51
  import HomePage from "./containers/Homepage/views/HomePage";
52
52
  import MainLayoutAdmin from "./layouts/MainLayoutAdmin";
53
53
  import SyncData from "./containers/SyncData/views/SyncData";
54
- 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 };
54
+ import SummarizeQuestion from "./containers/Dashboard/views/SummarizeQuestion";
55
+ 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 };