mario-education 2.4.601-feedback → 2.4.602-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.
- package/dist/components/Loading/LoadLanguage.d.ts +3 -0
- package/dist/containers/FrequencyAndSetup/components/FrequencyModeDetail.d.ts +1 -1
- package/dist/containers/FrequencyAndSetup/components/SortableItem.d.ts +2 -1
- package/dist/containers/FrequencyAndSetup/components/ViewQuestionsModal.d.ts +9 -0
- package/dist/containers/FrequencyAndSetup/configs/constants.d.ts +2 -1
- package/dist/containers/FrequencyAndSetup/configs/type.d.ts +7 -0
- package/dist/containers/FrequencyAndSetup/hooks/useFrequencyAndSetup.d.ts +4 -0
- package/dist/index.css +15041 -15041
- package/dist/index.js +255 -654
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +256 -655
- package/dist/index.modern.js.map +1 -1
- package/package.json +110 -110
|
@@ -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;
|