mario-education 2.4.597-feedback → 2.4.598-feedback

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.
@@ -0,0 +1,3 @@
1
+ import { FC } from "react";
2
+ declare const LoadLanguage: FC;
3
+ export default LoadLanguage;
@@ -0,0 +1,5 @@
1
+ declare const Loading: ({ size, defaultColor }: {
2
+ size?: number | undefined;
3
+ defaultColor?: boolean | undefined;
4
+ }) => JSX.Element;
5
+ export default Loading;
@@ -1,3 +1,3 @@
1
1
  import { IFrequencyModeDetail } from '../configs/type';
2
- declare const FrequencyModeDetail: ({ sections, onChange }: IFrequencyModeDetail) => JSX.Element;
2
+ declare const FrequencyModeDetail: ({ sections, onChange, onViewQuestions }: IFrequencyModeDetail) => JSX.Element;
3
3
  export default FrequencyModeDetail;
@@ -2,6 +2,7 @@ interface IProps {
2
2
  id: number;
3
3
  data: any;
4
4
  index?: number;
5
+ onViewQuestions?: (data: any) => void;
5
6
  }
6
- declare const SortableItem: ({ id, data, index }: IProps) => JSX.Element;
7
+ declare const SortableItem: ({ id, data, index, onViewQuestions }: IProps) => JSX.Element;
7
8
  export default SortableItem;
@@ -0,0 +1,9 @@
1
+ import { FC } from 'react';
2
+ import { IWellBeingSection } from '../configs/type';
3
+ interface IProps {
4
+ open: boolean;
5
+ onClose: () => void;
6
+ sectionSelected: IWellBeingSection;
7
+ }
8
+ declare const ViewQuestionsModal: FC<IProps>;
9
+ export default ViewQuestionsModal;
@@ -1,4 +1,4 @@
1
- import { IWellBeingFlowContact, Frequency_Mode, Frequency_Setting, IWellBeingSetup } from "./type";
1
+ import { IWellBeingFlowContact, Frequency_Mode, Frequency_Setting, IWellBeingSetup, IWellBeingSection } from "./type";
2
2
  export declare const FrequencyMode: {
3
3
  value: Frequency_Mode;
4
4
  title: string;
@@ -10,3 +10,4 @@ export declare const FrequencySetting: {
10
10
  }[];
11
11
  export declare const InitialContactFlow: IWellBeingFlowContact;
12
12
  export declare const initSetup: IWellBeingSetup;
13
+ export declare const DefaultSection: IWellBeingSection;
@@ -23,6 +23,7 @@ export interface IWellBeingSection {
23
23
  iconUrl: string;
24
24
  order: number;
25
25
  defaultOrder: number;
26
+ questions: string[];
26
27
  }
27
28
  export interface IWellBeingFlowContact {
28
29
  id: number;
@@ -33,4 +34,10 @@ export interface IWellBeingFlowContact {
33
34
  export interface IFrequencyModeDetail {
34
35
  sections: IWellBeingSection[];
35
36
  onChange: Function;
37
+ onViewQuestions: (data: any) => void;
38
+ }
39
+ export interface IQuestionBySection {
40
+ sections: IWellBeingSection[];
41
+ onChange: Function;
42
+ onViewQuestions: (data: any) => void;
36
43
  }
@@ -12,5 +12,9 @@ declare const useFrequencyAndSetup: () => {
12
12
  contacts: IWellBeingFlowContact[];
13
13
  sections: IWellBeingSection[];
14
14
  onChangeSections: (orderSections: IWellBeingSection[]) => void;
15
+ onViewQuestions: (data: IWellBeingSection) => void;
16
+ sectionSelected: IWellBeingSection;
17
+ openViewQuestionModal: boolean;
18
+ onCloseViewQuestions: () => void;
15
19
  };
16
20
  export default useFrequencyAndSetup;
@@ -4,7 +4,7 @@ export interface CARD_ITEM_PROPS {
4
4
  id: number;
5
5
  surveyName: string;
6
6
  students?: number;
7
- status?: SurveyEnum;
7
+ status?: SurveyEnum | string;
8
8
  statusDetail?: string;
9
9
  colorStatusDetail?: string;
10
10
  open?: Function;
@@ -295,7 +295,7 @@ export interface SURVEY_LIST {
295
295
  numberOfRecipients: number;
296
296
  numberOfResponses: number;
297
297
  isFavorite: boolean;
298
- status: SurveyEnum;
298
+ status: SurveyEnum | string;
299
299
  createdBy: string;
300
300
  studentIds?: number[];
301
301
  anonymousKey: string;