catchup-library-web 1.0.0 → 1.0.2
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/index.d.mts +239 -2
- package/dist/index.d.ts +239 -2
- package/dist/index.js +4686 -2
- package/dist/index.mjs +4621 -1
- package/package.json +10 -2
- package/src/components/activities/DropdownActivityContent.tsx +73 -0
- package/src/components/activities/FillInTheBlanksActivityContent.tsx +102 -0
- package/src/components/activities/GroupingActivityContent.tsx +62 -0
- package/src/components/activities/MCMAActivityContent.tsx +65 -0
- package/src/components/activities/MCSAActivityContent.tsx +58 -0
- package/src/components/activities/MatchingActivityContent.tsx +57 -0
- package/src/components/activities/OpenEndedActivityContent.tsx +92 -0
- package/src/components/activities/OrderingActivityContent.tsx +59 -0
- package/src/components/activities/TrueFalseActivityContent.tsx +98 -0
- package/src/components/activities/body-content/ActivityBodyContent.tsx +108 -0
- package/src/components/activities/body-content/ShowBodyMediaByContentType.tsx +404 -0
- package/src/components/activities/empty-content/ActivityEmptyContent.tsx +15 -0
- package/src/components/activities/material-content/DropdownActivityMaterialContent.tsx +227 -0
- package/src/components/activities/material-content/FillInTheBlanksActivityMaterialContent.tsx +270 -0
- package/src/components/activities/material-content/GroupingActivityMaterialContent.tsx +359 -0
- package/src/components/activities/material-content/MCMAActivityMaterialContent.tsx +166 -0
- package/src/components/activities/material-content/MCSAActivityMaterialContent.tsx +165 -0
- package/src/components/activities/material-content/MatchingActivityMaterialContent.tsx +332 -0
- package/src/components/activities/material-content/OpenEndedActivityMaterialContent.tsx +818 -0
- package/src/components/activities/material-content/OrderingActivityMaterialContent.tsx +216 -0
- package/src/components/activities/material-content/ShowMaterialMediaByContentType.tsx +172 -0
- package/src/components/activities/material-content/TrueFalseActivityMaterialContent.tsx +217 -0
- package/src/components/activities/solution-content/ActivitySolutionContent.tsx +86 -0
- package/src/components/dividers/BlueVerticalDividerLine.tsx +13 -0
- package/src/components/dividers/DividerLine.tsx +5 -0
- package/src/components/dividers/VerticalDividerLine.tsx +5 -0
- package/src/components/dnds/DraggableDroppableItem.tsx +62 -0
- package/src/components/dnds/DraggableItem.tsx +41 -0
- package/src/components/dnds/DroppableItem.tsx +38 -0
- package/src/components/dropdowns/MediaDropdown.tsx +51 -0
- package/src/components/groups/InputGroup.tsx +330 -0
- package/src/hooks/useScreenSize.ts +40 -0
- package/src/index.ts +24 -0
- package/src/language/i18n.ts +10 -0
- package/src/properties/ActivityProperties.ts +204 -0
- package/src/properties/ButtonProperties.ts +1 -1
- package/src/properties/CommonProperties.ts +1 -1
- package/src/properties/DividerLineProperties.ts +3 -0
- package/src/properties/DnDProperties.ts +28 -0
- package/src/properties/DropdownProperties.ts +5 -0
- package/src/properties/EnumProperties.ts +11 -0
- package/src/properties/GroupProperties.ts +19 -0
- package/src/utilization/AppUtilization.ts +56 -0
- package/src/utilization/CatchtivityUtilization.ts +1566 -0
- package/src/utilization/StorageUtilization.ts +35 -0
- package/tsconfig.json +2 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
export { default as i18n } from 'i18next';
|
|
2
3
|
|
|
3
4
|
interface IButtonProps {
|
|
4
5
|
title: string;
|
|
5
6
|
size: string;
|
|
6
|
-
onClick: () =>
|
|
7
|
+
onClick: () => void;
|
|
7
8
|
disabled: boolean;
|
|
8
9
|
iconPosition: string;
|
|
9
10
|
textOnly: boolean;
|
|
@@ -52,4 +53,240 @@ interface IBaseLoadingProps {
|
|
|
52
53
|
|
|
53
54
|
declare const BaseLoading: ({ height, width, size, primaryColor, secondaryColor, }: IBaseLoadingProps) => react_jsx_runtime.JSX.Element;
|
|
54
55
|
|
|
55
|
-
|
|
56
|
+
interface IOrderingActivityProps {
|
|
57
|
+
answer: any;
|
|
58
|
+
data: any;
|
|
59
|
+
canAnswerQuestion: () => boolean;
|
|
60
|
+
changeAnswer: (e: any) => void;
|
|
61
|
+
isPreview: boolean;
|
|
62
|
+
showCorrectAnswer: boolean;
|
|
63
|
+
}
|
|
64
|
+
interface IDropdownActivityProps {
|
|
65
|
+
answer: any;
|
|
66
|
+
data: any;
|
|
67
|
+
canAnswerQuestion: () => boolean;
|
|
68
|
+
changeAnswer: (e: any) => void;
|
|
69
|
+
isPreview: boolean;
|
|
70
|
+
showCorrectAnswer: boolean;
|
|
71
|
+
}
|
|
72
|
+
interface IMCSAActivityProps {
|
|
73
|
+
answer: any;
|
|
74
|
+
data: any;
|
|
75
|
+
canAnswerQuestion: () => boolean;
|
|
76
|
+
changeAnswer: (e: any) => void;
|
|
77
|
+
isPreview: boolean;
|
|
78
|
+
showCorrectAnswer: boolean;
|
|
79
|
+
}
|
|
80
|
+
interface IMCMAActivityProps {
|
|
81
|
+
answer: any;
|
|
82
|
+
data: any;
|
|
83
|
+
canAnswerQuestion: () => boolean;
|
|
84
|
+
changeAnswer: (e: any) => void;
|
|
85
|
+
isPreview: boolean;
|
|
86
|
+
showCorrectAnswer: boolean;
|
|
87
|
+
}
|
|
88
|
+
interface IGroupingActivityProps {
|
|
89
|
+
answer: any;
|
|
90
|
+
data: any;
|
|
91
|
+
canAnswerQuestion: () => boolean;
|
|
92
|
+
changeAnswer: (e: any) => void;
|
|
93
|
+
isPreview: boolean;
|
|
94
|
+
showCorrectAnswer: boolean;
|
|
95
|
+
}
|
|
96
|
+
interface IMatchingActivityProps {
|
|
97
|
+
answer: any;
|
|
98
|
+
data: any;
|
|
99
|
+
canAnswerQuestion: () => boolean;
|
|
100
|
+
changeAnswer: (e: any) => void;
|
|
101
|
+
isPreview: boolean;
|
|
102
|
+
showCorrectAnswer: boolean;
|
|
103
|
+
}
|
|
104
|
+
interface IFillInTheBlanksActivityProps {
|
|
105
|
+
answer: any;
|
|
106
|
+
data: any;
|
|
107
|
+
canAnswerQuestion: () => boolean;
|
|
108
|
+
changeAnswer: (e: any) => void;
|
|
109
|
+
isPreview: boolean;
|
|
110
|
+
showCorrectAnswer: boolean;
|
|
111
|
+
}
|
|
112
|
+
interface IOpenEndedActivityProps {
|
|
113
|
+
answer: any;
|
|
114
|
+
data: any;
|
|
115
|
+
changeAnswer: (e: any) => void;
|
|
116
|
+
showMaterialContent: boolean;
|
|
117
|
+
}
|
|
118
|
+
interface ITrueFalseActivityProps {
|
|
119
|
+
answer: any;
|
|
120
|
+
data: any;
|
|
121
|
+
canAnswerQuestion: () => boolean;
|
|
122
|
+
changeAnswer: (e: any) => void;
|
|
123
|
+
isPreview: boolean;
|
|
124
|
+
showCorrectAnswer: boolean;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
declare const DropdownActivityContent: ({ answer, data, canAnswerQuestion, changeAnswer, isPreview, showCorrectAnswer, }: IDropdownActivityProps) => react_jsx_runtime.JSX.Element;
|
|
128
|
+
|
|
129
|
+
declare const FillInTheBlanksActivityContent: ({ answer, data, canAnswerQuestion, changeAnswer, isPreview, showCorrectAnswer, }: IFillInTheBlanksActivityProps) => react_jsx_runtime.JSX.Element;
|
|
130
|
+
|
|
131
|
+
declare const GroupingActivityContent: ({ answer, data, canAnswerQuestion, changeAnswer, isPreview, showCorrectAnswer, }: IGroupingActivityProps) => react_jsx_runtime.JSX.Element;
|
|
132
|
+
|
|
133
|
+
declare const MatchingActivityContent: ({ answer, data, canAnswerQuestion, changeAnswer, isPreview, showCorrectAnswer, }: IMatchingActivityProps) => react_jsx_runtime.JSX.Element;
|
|
134
|
+
|
|
135
|
+
declare const MCMAActivityContent: ({ answer, data, canAnswerQuestion, changeAnswer, isPreview, }: IMCMAActivityProps) => react_jsx_runtime.JSX.Element;
|
|
136
|
+
|
|
137
|
+
declare const MCSAActivityContent: ({ answer, data, canAnswerQuestion, changeAnswer, isPreview, }: IMCSAActivityProps) => react_jsx_runtime.JSX.Element;
|
|
138
|
+
|
|
139
|
+
declare const OpenEndedActivityContent: ({ answer, data, changeAnswer, showMaterialContent, }: IOpenEndedActivityProps) => react_jsx_runtime.JSX.Element;
|
|
140
|
+
|
|
141
|
+
declare const OrderingActivityContent: ({ answer, data, canAnswerQuestion, changeAnswer, isPreview, showCorrectAnswer, }: IOrderingActivityProps) => react_jsx_runtime.JSX.Element;
|
|
142
|
+
|
|
143
|
+
declare const TrueFalseActivityContent: ({ answer, data, canAnswerQuestion, changeAnswer, isPreview, showCorrectAnswer, }: ITrueFalseActivityProps) => react_jsx_runtime.JSX.Element;
|
|
144
|
+
|
|
145
|
+
interface IDividerLineProps {
|
|
146
|
+
opacity: string;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
declare const BlueVerticalDividerLine: ({ opacity }: IDividerLineProps) => react_jsx_runtime.JSX.Element;
|
|
150
|
+
|
|
151
|
+
declare const DividerLine: () => react_jsx_runtime.JSX.Element;
|
|
152
|
+
|
|
153
|
+
declare const VerticalDividerLine: () => react_jsx_runtime.JSX.Element;
|
|
154
|
+
|
|
155
|
+
interface IInputGroupProps {
|
|
156
|
+
type: string;
|
|
157
|
+
title?: string;
|
|
158
|
+
defaultValue?: string;
|
|
159
|
+
placeholder?: string;
|
|
160
|
+
value: string;
|
|
161
|
+
onFocus?: (e: any) => void;
|
|
162
|
+
onChange?: (e: any) => void;
|
|
163
|
+
onClick?: (e: any) => void;
|
|
164
|
+
onKeyDown?: (e: any) => void;
|
|
165
|
+
optionList?: any;
|
|
166
|
+
errorText?: string;
|
|
167
|
+
multiple?: boolean;
|
|
168
|
+
accept?: string;
|
|
169
|
+
theme?: string;
|
|
170
|
+
useMinHeight: boolean;
|
|
171
|
+
disabled?: boolean;
|
|
172
|
+
limit?: number;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
declare const InputGroup: ({ type, title, defaultValue, placeholder, value, onFocus, onChange, onClick, onKeyDown, optionList, errorText, multiple, accept, theme, useMinHeight, disabled, limit, }: IInputGroupProps) => react_jsx_runtime.JSX.Element | undefined;
|
|
176
|
+
|
|
177
|
+
declare const useScreenSize: () => {
|
|
178
|
+
screenSize: {
|
|
179
|
+
width: number;
|
|
180
|
+
height: number;
|
|
181
|
+
};
|
|
182
|
+
containerSize: {
|
|
183
|
+
width: number;
|
|
184
|
+
height: number;
|
|
185
|
+
};
|
|
186
|
+
};
|
|
187
|
+
|
|
188
|
+
declare const shuffleArray: (array: any) => any;
|
|
189
|
+
declare const getColorByIndex: (index: number) => string;
|
|
190
|
+
|
|
191
|
+
declare const retrieveColorByScore: (score: number) => "#F96666" | "#f98d66" | "#cbd357" | "#ABD357";
|
|
192
|
+
declare const retrieveContentTypeOptionList: (textOnly: boolean) => {
|
|
193
|
+
id: string;
|
|
194
|
+
value: string;
|
|
195
|
+
text: string;
|
|
196
|
+
icon: string;
|
|
197
|
+
}[];
|
|
198
|
+
declare const retrieveStatusOptionList: () => {
|
|
199
|
+
value: string;
|
|
200
|
+
text: string;
|
|
201
|
+
}[];
|
|
202
|
+
declare const retrieveDurationTypeOptionList: () => {
|
|
203
|
+
value: string;
|
|
204
|
+
text: string;
|
|
205
|
+
}[];
|
|
206
|
+
declare const retrieveDurationInMinutesOptionList: (durationType: string) => {
|
|
207
|
+
value: number;
|
|
208
|
+
text: number;
|
|
209
|
+
}[];
|
|
210
|
+
declare const retrieveDurationInSecondsOptionList: () => {
|
|
211
|
+
value: number;
|
|
212
|
+
text: string;
|
|
213
|
+
}[];
|
|
214
|
+
declare const retrieveTaxonomyType: () => {
|
|
215
|
+
value: string;
|
|
216
|
+
text: string;
|
|
217
|
+
}[];
|
|
218
|
+
declare const retrieveTaxonomyGroupName: () => {
|
|
219
|
+
type: string;
|
|
220
|
+
value: string;
|
|
221
|
+
text: string;
|
|
222
|
+
}[];
|
|
223
|
+
declare const retrieveTaxonomyName: () => {
|
|
224
|
+
stage: number;
|
|
225
|
+
groupName: string;
|
|
226
|
+
value: string;
|
|
227
|
+
text: string;
|
|
228
|
+
}[];
|
|
229
|
+
declare const constructInputWithSpecialExpressionList: (inputText: string) => {
|
|
230
|
+
value: string;
|
|
231
|
+
isEquation: boolean;
|
|
232
|
+
isUnderline: boolean;
|
|
233
|
+
isBold: boolean;
|
|
234
|
+
}[];
|
|
235
|
+
declare const retrieveStandardExamTypeOptionList: () => {
|
|
236
|
+
value: string;
|
|
237
|
+
text: string;
|
|
238
|
+
}[];
|
|
239
|
+
declare const retrieveStandardExamTypeIcon: (baseReportType: string) => "/icons/tyt.png" | "/icons/ayt.png" | "/icons/lgs.png" | undefined;
|
|
240
|
+
declare const retrieveCoterieTypeFromStandardExamCoterieType: (standardExamType: string, standardExamCoterieType: string) => "TURKISH" | "SCIENCE" | "PHYSICS" | "SOCIAL_STUDIES" | "CHEMISTRY" | "BIOLOGY" | "HISTORY" | "GEOGRAPHY" | "MATHEMATICS" | "PHILOSOPHY" | "CULTURE_AND_RELIGION_KNOWLEDGE" | "ENGLISH" | "LITERATURE" | undefined;
|
|
241
|
+
declare const retrieveStandardExamCoterieTypeOptionListByStandardExamType: (standardExamType: string) => {
|
|
242
|
+
value: string;
|
|
243
|
+
text: string;
|
|
244
|
+
}[];
|
|
245
|
+
declare const retrieveValidationRequirementList: (selectedStandardExamType: string) => {
|
|
246
|
+
value: string;
|
|
247
|
+
count: number;
|
|
248
|
+
}[];
|
|
249
|
+
declare const constructActivityItemListWithSolutionForAI: (bodyMap: any, materialMap: any, type: string, imageContentList: any) => {
|
|
250
|
+
type: string;
|
|
251
|
+
text: string;
|
|
252
|
+
}[];
|
|
253
|
+
declare const constructActivityItemListWithAnswersForAI: (bodyMap: any, materialMap: any, type: string) => {
|
|
254
|
+
type: string;
|
|
255
|
+
text: string;
|
|
256
|
+
}[];
|
|
257
|
+
declare const retrieveActivityTemplateDTOOptionList: (activityTemplateSet: any) => any;
|
|
258
|
+
declare const retrieveCurrentDefaultDataMap: (activityTemplate: any, activityData: any) => any;
|
|
259
|
+
declare const constructActivityAnswerMap: (activityTemplate: any, activityData: any) => any;
|
|
260
|
+
declare const ignoreMathematicalExpression: (inputText: string) => string;
|
|
261
|
+
declare const checkIfAnswerIsEmpty: (answer: any) => boolean;
|
|
262
|
+
declare const constructActivityAnswerStateList: (answerList: any, activityList: any) => any;
|
|
263
|
+
declare const retrieveActivityAnswerFromAnswerList: (answerList: any, activity: any) => any;
|
|
264
|
+
declare const checkActivityAnswerState: (answerList: any, activity: any) => "NOT_EXISTS" | "ANSWERED" | "EMPTY";
|
|
265
|
+
declare const findBestFitActivity: (activity: any, individualModelList: any, outcomeModelList: any) => {
|
|
266
|
+
bestScore: number;
|
|
267
|
+
bestActivityTemplate: any;
|
|
268
|
+
bestActivityTemplateList: any[];
|
|
269
|
+
activityTemplateValueMap: any;
|
|
270
|
+
};
|
|
271
|
+
declare const retrieveContestTypeOptionList: () => {
|
|
272
|
+
value: string;
|
|
273
|
+
text: string;
|
|
274
|
+
}[];
|
|
275
|
+
declare const retrieveFrequencyTypeOptionList: () => {
|
|
276
|
+
value: string;
|
|
277
|
+
text: string;
|
|
278
|
+
}[];
|
|
279
|
+
declare const retrieveDistintCoterieTypeFromCatchtivityApplicationDTO: (catchtivityApplicationDTOList: any) => any[];
|
|
280
|
+
declare const retrieveClockTimeLeft: (type: string, value: number, durationType: string, durationInMinutes: number, activityProgressDTOSet: any, activity: any) => number;
|
|
281
|
+
declare const retrieveEachTimeSpentInSeconds: (activityProgressList: any, activity: any) => number;
|
|
282
|
+
declare const retrieveTotalTimeSpentInSeconds: (activityProgressList: any) => number;
|
|
283
|
+
declare const retrieveTotalTimeSpentInMinutes: (activityProgressList: any) => number;
|
|
284
|
+
declare const parseContentMapFromData: (data: any) => any;
|
|
285
|
+
declare const parseBodyMapFromData: (data: any, type: string) => any;
|
|
286
|
+
declare const parseMaterialMapFromData: (data: any, type: string) => any;
|
|
287
|
+
|
|
288
|
+
declare const convertDataURLtoFile: (dataurl: string, filename: string) => File;
|
|
289
|
+
declare const retrieveDocumentTypeFromAcceptedFormat: (format: string) => "IMAGE" | "AUDIO" | "PDF" | undefined;
|
|
290
|
+
declare const retrieveDocumentTypeFromExtension: (format: string) => "IMAGE" | "AUDIO" | "PDF" | undefined;
|
|
291
|
+
|
|
292
|
+
export { ApproveButton, BaseImage, BaseLoading, BlueVerticalDividerLine, CancelButton, CreateButton, DeleteButton, DividerLine, DropdownActivityContent, FillInTheBlanksActivityContent, GroupingActivityContent, InputGroup, MCMAActivityContent, MCSAActivityContent, MatchingActivityContent, OpenEndedActivityContent, OrderingActivityContent, PrimaryButton, SecondaryButton, TrueFalseActivityContent, VerticalDividerLine, checkActivityAnswerState, checkIfAnswerIsEmpty, constructActivityAnswerMap, constructActivityAnswerStateList, constructActivityItemListWithAnswersForAI, constructActivityItemListWithSolutionForAI, constructInputWithSpecialExpressionList, convertDataURLtoFile, findBestFitActivity, getColorByIndex, ignoreMathematicalExpression, parseBodyMapFromData, parseContentMapFromData, parseMaterialMapFromData, retrieveActivityAnswerFromAnswerList, retrieveActivityTemplateDTOOptionList, retrieveClockTimeLeft, retrieveColorByScore, retrieveContentTypeOptionList, retrieveContestTypeOptionList, retrieveCoterieTypeFromStandardExamCoterieType, retrieveCurrentDefaultDataMap, retrieveDistintCoterieTypeFromCatchtivityApplicationDTO, retrieveDocumentTypeFromAcceptedFormat, retrieveDocumentTypeFromExtension, retrieveDurationInMinutesOptionList, retrieveDurationInSecondsOptionList, retrieveDurationTypeOptionList, retrieveEachTimeSpentInSeconds, retrieveFrequencyTypeOptionList, retrieveStandardExamCoterieTypeOptionListByStandardExamType, retrieveStandardExamTypeIcon, retrieveStandardExamTypeOptionList, retrieveStatusOptionList, retrieveTaxonomyGroupName, retrieveTaxonomyName, retrieveTaxonomyType, retrieveTotalTimeSpentInMinutes, retrieveTotalTimeSpentInSeconds, retrieveValidationRequirementList, shuffleArray, useScreenSize };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
export { default as i18n } from 'i18next';
|
|
2
3
|
|
|
3
4
|
interface IButtonProps {
|
|
4
5
|
title: string;
|
|
5
6
|
size: string;
|
|
6
|
-
onClick: () =>
|
|
7
|
+
onClick: () => void;
|
|
7
8
|
disabled: boolean;
|
|
8
9
|
iconPosition: string;
|
|
9
10
|
textOnly: boolean;
|
|
@@ -52,4 +53,240 @@ interface IBaseLoadingProps {
|
|
|
52
53
|
|
|
53
54
|
declare const BaseLoading: ({ height, width, size, primaryColor, secondaryColor, }: IBaseLoadingProps) => react_jsx_runtime.JSX.Element;
|
|
54
55
|
|
|
55
|
-
|
|
56
|
+
interface IOrderingActivityProps {
|
|
57
|
+
answer: any;
|
|
58
|
+
data: any;
|
|
59
|
+
canAnswerQuestion: () => boolean;
|
|
60
|
+
changeAnswer: (e: any) => void;
|
|
61
|
+
isPreview: boolean;
|
|
62
|
+
showCorrectAnswer: boolean;
|
|
63
|
+
}
|
|
64
|
+
interface IDropdownActivityProps {
|
|
65
|
+
answer: any;
|
|
66
|
+
data: any;
|
|
67
|
+
canAnswerQuestion: () => boolean;
|
|
68
|
+
changeAnswer: (e: any) => void;
|
|
69
|
+
isPreview: boolean;
|
|
70
|
+
showCorrectAnswer: boolean;
|
|
71
|
+
}
|
|
72
|
+
interface IMCSAActivityProps {
|
|
73
|
+
answer: any;
|
|
74
|
+
data: any;
|
|
75
|
+
canAnswerQuestion: () => boolean;
|
|
76
|
+
changeAnswer: (e: any) => void;
|
|
77
|
+
isPreview: boolean;
|
|
78
|
+
showCorrectAnswer: boolean;
|
|
79
|
+
}
|
|
80
|
+
interface IMCMAActivityProps {
|
|
81
|
+
answer: any;
|
|
82
|
+
data: any;
|
|
83
|
+
canAnswerQuestion: () => boolean;
|
|
84
|
+
changeAnswer: (e: any) => void;
|
|
85
|
+
isPreview: boolean;
|
|
86
|
+
showCorrectAnswer: boolean;
|
|
87
|
+
}
|
|
88
|
+
interface IGroupingActivityProps {
|
|
89
|
+
answer: any;
|
|
90
|
+
data: any;
|
|
91
|
+
canAnswerQuestion: () => boolean;
|
|
92
|
+
changeAnswer: (e: any) => void;
|
|
93
|
+
isPreview: boolean;
|
|
94
|
+
showCorrectAnswer: boolean;
|
|
95
|
+
}
|
|
96
|
+
interface IMatchingActivityProps {
|
|
97
|
+
answer: any;
|
|
98
|
+
data: any;
|
|
99
|
+
canAnswerQuestion: () => boolean;
|
|
100
|
+
changeAnswer: (e: any) => void;
|
|
101
|
+
isPreview: boolean;
|
|
102
|
+
showCorrectAnswer: boolean;
|
|
103
|
+
}
|
|
104
|
+
interface IFillInTheBlanksActivityProps {
|
|
105
|
+
answer: any;
|
|
106
|
+
data: any;
|
|
107
|
+
canAnswerQuestion: () => boolean;
|
|
108
|
+
changeAnswer: (e: any) => void;
|
|
109
|
+
isPreview: boolean;
|
|
110
|
+
showCorrectAnswer: boolean;
|
|
111
|
+
}
|
|
112
|
+
interface IOpenEndedActivityProps {
|
|
113
|
+
answer: any;
|
|
114
|
+
data: any;
|
|
115
|
+
changeAnswer: (e: any) => void;
|
|
116
|
+
showMaterialContent: boolean;
|
|
117
|
+
}
|
|
118
|
+
interface ITrueFalseActivityProps {
|
|
119
|
+
answer: any;
|
|
120
|
+
data: any;
|
|
121
|
+
canAnswerQuestion: () => boolean;
|
|
122
|
+
changeAnswer: (e: any) => void;
|
|
123
|
+
isPreview: boolean;
|
|
124
|
+
showCorrectAnswer: boolean;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
declare const DropdownActivityContent: ({ answer, data, canAnswerQuestion, changeAnswer, isPreview, showCorrectAnswer, }: IDropdownActivityProps) => react_jsx_runtime.JSX.Element;
|
|
128
|
+
|
|
129
|
+
declare const FillInTheBlanksActivityContent: ({ answer, data, canAnswerQuestion, changeAnswer, isPreview, showCorrectAnswer, }: IFillInTheBlanksActivityProps) => react_jsx_runtime.JSX.Element;
|
|
130
|
+
|
|
131
|
+
declare const GroupingActivityContent: ({ answer, data, canAnswerQuestion, changeAnswer, isPreview, showCorrectAnswer, }: IGroupingActivityProps) => react_jsx_runtime.JSX.Element;
|
|
132
|
+
|
|
133
|
+
declare const MatchingActivityContent: ({ answer, data, canAnswerQuestion, changeAnswer, isPreview, showCorrectAnswer, }: IMatchingActivityProps) => react_jsx_runtime.JSX.Element;
|
|
134
|
+
|
|
135
|
+
declare const MCMAActivityContent: ({ answer, data, canAnswerQuestion, changeAnswer, isPreview, }: IMCMAActivityProps) => react_jsx_runtime.JSX.Element;
|
|
136
|
+
|
|
137
|
+
declare const MCSAActivityContent: ({ answer, data, canAnswerQuestion, changeAnswer, isPreview, }: IMCSAActivityProps) => react_jsx_runtime.JSX.Element;
|
|
138
|
+
|
|
139
|
+
declare const OpenEndedActivityContent: ({ answer, data, changeAnswer, showMaterialContent, }: IOpenEndedActivityProps) => react_jsx_runtime.JSX.Element;
|
|
140
|
+
|
|
141
|
+
declare const OrderingActivityContent: ({ answer, data, canAnswerQuestion, changeAnswer, isPreview, showCorrectAnswer, }: IOrderingActivityProps) => react_jsx_runtime.JSX.Element;
|
|
142
|
+
|
|
143
|
+
declare const TrueFalseActivityContent: ({ answer, data, canAnswerQuestion, changeAnswer, isPreview, showCorrectAnswer, }: ITrueFalseActivityProps) => react_jsx_runtime.JSX.Element;
|
|
144
|
+
|
|
145
|
+
interface IDividerLineProps {
|
|
146
|
+
opacity: string;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
declare const BlueVerticalDividerLine: ({ opacity }: IDividerLineProps) => react_jsx_runtime.JSX.Element;
|
|
150
|
+
|
|
151
|
+
declare const DividerLine: () => react_jsx_runtime.JSX.Element;
|
|
152
|
+
|
|
153
|
+
declare const VerticalDividerLine: () => react_jsx_runtime.JSX.Element;
|
|
154
|
+
|
|
155
|
+
interface IInputGroupProps {
|
|
156
|
+
type: string;
|
|
157
|
+
title?: string;
|
|
158
|
+
defaultValue?: string;
|
|
159
|
+
placeholder?: string;
|
|
160
|
+
value: string;
|
|
161
|
+
onFocus?: (e: any) => void;
|
|
162
|
+
onChange?: (e: any) => void;
|
|
163
|
+
onClick?: (e: any) => void;
|
|
164
|
+
onKeyDown?: (e: any) => void;
|
|
165
|
+
optionList?: any;
|
|
166
|
+
errorText?: string;
|
|
167
|
+
multiple?: boolean;
|
|
168
|
+
accept?: string;
|
|
169
|
+
theme?: string;
|
|
170
|
+
useMinHeight: boolean;
|
|
171
|
+
disabled?: boolean;
|
|
172
|
+
limit?: number;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
declare const InputGroup: ({ type, title, defaultValue, placeholder, value, onFocus, onChange, onClick, onKeyDown, optionList, errorText, multiple, accept, theme, useMinHeight, disabled, limit, }: IInputGroupProps) => react_jsx_runtime.JSX.Element | undefined;
|
|
176
|
+
|
|
177
|
+
declare const useScreenSize: () => {
|
|
178
|
+
screenSize: {
|
|
179
|
+
width: number;
|
|
180
|
+
height: number;
|
|
181
|
+
};
|
|
182
|
+
containerSize: {
|
|
183
|
+
width: number;
|
|
184
|
+
height: number;
|
|
185
|
+
};
|
|
186
|
+
};
|
|
187
|
+
|
|
188
|
+
declare const shuffleArray: (array: any) => any;
|
|
189
|
+
declare const getColorByIndex: (index: number) => string;
|
|
190
|
+
|
|
191
|
+
declare const retrieveColorByScore: (score: number) => "#F96666" | "#f98d66" | "#cbd357" | "#ABD357";
|
|
192
|
+
declare const retrieveContentTypeOptionList: (textOnly: boolean) => {
|
|
193
|
+
id: string;
|
|
194
|
+
value: string;
|
|
195
|
+
text: string;
|
|
196
|
+
icon: string;
|
|
197
|
+
}[];
|
|
198
|
+
declare const retrieveStatusOptionList: () => {
|
|
199
|
+
value: string;
|
|
200
|
+
text: string;
|
|
201
|
+
}[];
|
|
202
|
+
declare const retrieveDurationTypeOptionList: () => {
|
|
203
|
+
value: string;
|
|
204
|
+
text: string;
|
|
205
|
+
}[];
|
|
206
|
+
declare const retrieveDurationInMinutesOptionList: (durationType: string) => {
|
|
207
|
+
value: number;
|
|
208
|
+
text: number;
|
|
209
|
+
}[];
|
|
210
|
+
declare const retrieveDurationInSecondsOptionList: () => {
|
|
211
|
+
value: number;
|
|
212
|
+
text: string;
|
|
213
|
+
}[];
|
|
214
|
+
declare const retrieveTaxonomyType: () => {
|
|
215
|
+
value: string;
|
|
216
|
+
text: string;
|
|
217
|
+
}[];
|
|
218
|
+
declare const retrieveTaxonomyGroupName: () => {
|
|
219
|
+
type: string;
|
|
220
|
+
value: string;
|
|
221
|
+
text: string;
|
|
222
|
+
}[];
|
|
223
|
+
declare const retrieveTaxonomyName: () => {
|
|
224
|
+
stage: number;
|
|
225
|
+
groupName: string;
|
|
226
|
+
value: string;
|
|
227
|
+
text: string;
|
|
228
|
+
}[];
|
|
229
|
+
declare const constructInputWithSpecialExpressionList: (inputText: string) => {
|
|
230
|
+
value: string;
|
|
231
|
+
isEquation: boolean;
|
|
232
|
+
isUnderline: boolean;
|
|
233
|
+
isBold: boolean;
|
|
234
|
+
}[];
|
|
235
|
+
declare const retrieveStandardExamTypeOptionList: () => {
|
|
236
|
+
value: string;
|
|
237
|
+
text: string;
|
|
238
|
+
}[];
|
|
239
|
+
declare const retrieveStandardExamTypeIcon: (baseReportType: string) => "/icons/tyt.png" | "/icons/ayt.png" | "/icons/lgs.png" | undefined;
|
|
240
|
+
declare const retrieveCoterieTypeFromStandardExamCoterieType: (standardExamType: string, standardExamCoterieType: string) => "TURKISH" | "SCIENCE" | "PHYSICS" | "SOCIAL_STUDIES" | "CHEMISTRY" | "BIOLOGY" | "HISTORY" | "GEOGRAPHY" | "MATHEMATICS" | "PHILOSOPHY" | "CULTURE_AND_RELIGION_KNOWLEDGE" | "ENGLISH" | "LITERATURE" | undefined;
|
|
241
|
+
declare const retrieveStandardExamCoterieTypeOptionListByStandardExamType: (standardExamType: string) => {
|
|
242
|
+
value: string;
|
|
243
|
+
text: string;
|
|
244
|
+
}[];
|
|
245
|
+
declare const retrieveValidationRequirementList: (selectedStandardExamType: string) => {
|
|
246
|
+
value: string;
|
|
247
|
+
count: number;
|
|
248
|
+
}[];
|
|
249
|
+
declare const constructActivityItemListWithSolutionForAI: (bodyMap: any, materialMap: any, type: string, imageContentList: any) => {
|
|
250
|
+
type: string;
|
|
251
|
+
text: string;
|
|
252
|
+
}[];
|
|
253
|
+
declare const constructActivityItemListWithAnswersForAI: (bodyMap: any, materialMap: any, type: string) => {
|
|
254
|
+
type: string;
|
|
255
|
+
text: string;
|
|
256
|
+
}[];
|
|
257
|
+
declare const retrieveActivityTemplateDTOOptionList: (activityTemplateSet: any) => any;
|
|
258
|
+
declare const retrieveCurrentDefaultDataMap: (activityTemplate: any, activityData: any) => any;
|
|
259
|
+
declare const constructActivityAnswerMap: (activityTemplate: any, activityData: any) => any;
|
|
260
|
+
declare const ignoreMathematicalExpression: (inputText: string) => string;
|
|
261
|
+
declare const checkIfAnswerIsEmpty: (answer: any) => boolean;
|
|
262
|
+
declare const constructActivityAnswerStateList: (answerList: any, activityList: any) => any;
|
|
263
|
+
declare const retrieveActivityAnswerFromAnswerList: (answerList: any, activity: any) => any;
|
|
264
|
+
declare const checkActivityAnswerState: (answerList: any, activity: any) => "NOT_EXISTS" | "ANSWERED" | "EMPTY";
|
|
265
|
+
declare const findBestFitActivity: (activity: any, individualModelList: any, outcomeModelList: any) => {
|
|
266
|
+
bestScore: number;
|
|
267
|
+
bestActivityTemplate: any;
|
|
268
|
+
bestActivityTemplateList: any[];
|
|
269
|
+
activityTemplateValueMap: any;
|
|
270
|
+
};
|
|
271
|
+
declare const retrieveContestTypeOptionList: () => {
|
|
272
|
+
value: string;
|
|
273
|
+
text: string;
|
|
274
|
+
}[];
|
|
275
|
+
declare const retrieveFrequencyTypeOptionList: () => {
|
|
276
|
+
value: string;
|
|
277
|
+
text: string;
|
|
278
|
+
}[];
|
|
279
|
+
declare const retrieveDistintCoterieTypeFromCatchtivityApplicationDTO: (catchtivityApplicationDTOList: any) => any[];
|
|
280
|
+
declare const retrieveClockTimeLeft: (type: string, value: number, durationType: string, durationInMinutes: number, activityProgressDTOSet: any, activity: any) => number;
|
|
281
|
+
declare const retrieveEachTimeSpentInSeconds: (activityProgressList: any, activity: any) => number;
|
|
282
|
+
declare const retrieveTotalTimeSpentInSeconds: (activityProgressList: any) => number;
|
|
283
|
+
declare const retrieveTotalTimeSpentInMinutes: (activityProgressList: any) => number;
|
|
284
|
+
declare const parseContentMapFromData: (data: any) => any;
|
|
285
|
+
declare const parseBodyMapFromData: (data: any, type: string) => any;
|
|
286
|
+
declare const parseMaterialMapFromData: (data: any, type: string) => any;
|
|
287
|
+
|
|
288
|
+
declare const convertDataURLtoFile: (dataurl: string, filename: string) => File;
|
|
289
|
+
declare const retrieveDocumentTypeFromAcceptedFormat: (format: string) => "IMAGE" | "AUDIO" | "PDF" | undefined;
|
|
290
|
+
declare const retrieveDocumentTypeFromExtension: (format: string) => "IMAGE" | "AUDIO" | "PDF" | undefined;
|
|
291
|
+
|
|
292
|
+
export { ApproveButton, BaseImage, BaseLoading, BlueVerticalDividerLine, CancelButton, CreateButton, DeleteButton, DividerLine, DropdownActivityContent, FillInTheBlanksActivityContent, GroupingActivityContent, InputGroup, MCMAActivityContent, MCSAActivityContent, MatchingActivityContent, OpenEndedActivityContent, OrderingActivityContent, PrimaryButton, SecondaryButton, TrueFalseActivityContent, VerticalDividerLine, checkActivityAnswerState, checkIfAnswerIsEmpty, constructActivityAnswerMap, constructActivityAnswerStateList, constructActivityItemListWithAnswersForAI, constructActivityItemListWithSolutionForAI, constructInputWithSpecialExpressionList, convertDataURLtoFile, findBestFitActivity, getColorByIndex, ignoreMathematicalExpression, parseBodyMapFromData, parseContentMapFromData, parseMaterialMapFromData, retrieveActivityAnswerFromAnswerList, retrieveActivityTemplateDTOOptionList, retrieveClockTimeLeft, retrieveColorByScore, retrieveContentTypeOptionList, retrieveContestTypeOptionList, retrieveCoterieTypeFromStandardExamCoterieType, retrieveCurrentDefaultDataMap, retrieveDistintCoterieTypeFromCatchtivityApplicationDTO, retrieveDocumentTypeFromAcceptedFormat, retrieveDocumentTypeFromExtension, retrieveDurationInMinutesOptionList, retrieveDurationInSecondsOptionList, retrieveDurationTypeOptionList, retrieveEachTimeSpentInSeconds, retrieveFrequencyTypeOptionList, retrieveStandardExamCoterieTypeOptionListByStandardExamType, retrieveStandardExamTypeIcon, retrieveStandardExamTypeOptionList, retrieveStatusOptionList, retrieveTaxonomyGroupName, retrieveTaxonomyName, retrieveTaxonomyType, retrieveTotalTimeSpentInMinutes, retrieveTotalTimeSpentInSeconds, retrieveValidationRequirementList, shuffleArray, useScreenSize };
|