catchup-library-web 1.13.2 → 1.14.1
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 +13 -33
- package/dist/index.d.ts +13 -33
- package/dist/index.js +94 -191
- package/dist/index.mjs +93 -188
- package/package.json +1 -1
- package/src/components/activities/ActivityPreviewByAnswerData.tsx +10 -41
- package/src/components/activities/ActivityPreviewByData.tsx +8 -32
- package/src/properties/ActivityProperties.ts +2 -2
- package/src/utilization/CatchtivityUtilization.ts +78 -150
- package/src/utilization/IndividualModelUtilization.ts +8 -14
package/dist/index.js
CHANGED
|
@@ -200,6 +200,7 @@ __export(index_exports, {
|
|
|
200
200
|
retrieveCurrentDefaultDataMap: () => retrieveCurrentDefaultDataMap,
|
|
201
201
|
retrieveDateIntervalOptionList: () => retrieveDateIntervalOptionList,
|
|
202
202
|
retrieveDefaultUserRoleOptionList: () => retrieveDefaultUserRoleOptionList,
|
|
203
|
+
retrieveDifficultyByActivityTypeFromData: () => retrieveDifficultyByActivityTypeFromData,
|
|
203
204
|
retrieveDistintCoterieTypeFromCatchtivityApplicationDTO: () => retrieveDistintCoterieTypeFromCatchtivityApplicationDTO,
|
|
204
205
|
retrieveDocumentTypeFromAcceptedFormat: () => retrieveDocumentTypeFromAcceptedFormat,
|
|
205
206
|
retrieveDocumentTypeFromExtension: () => retrieveDocumentTypeFromExtension,
|
|
@@ -230,9 +231,6 @@ __export(index_exports, {
|
|
|
230
231
|
retrieveStandardExamTypeIcon: () => retrieveStandardExamTypeIcon,
|
|
231
232
|
retrieveStandardExamTypeOptionList: () => retrieveStandardExamTypeOptionList,
|
|
232
233
|
retrieveStatusOptionList: () => retrieveStatusOptionList,
|
|
233
|
-
retrieveTaxonomyGroupName: () => retrieveTaxonomyGroupName,
|
|
234
|
-
retrieveTaxonomyName: () => retrieveTaxonomyName,
|
|
235
|
-
retrieveTaxonomyType: () => retrieveTaxonomyType,
|
|
236
234
|
retrieveTeachingMethodologyOptionList: () => retrieveTeachingMethodologyOptionList,
|
|
237
235
|
retrieveTimeFilterOptionList: () => retrieveTimeFilterOptionList,
|
|
238
236
|
retrieveTimeFilterWithLastNOptionList: () => retrieveTimeFilterWithLastNOptionList,
|
|
@@ -1314,63 +1312,6 @@ var retrieveDurationInSecondsOptionList = () => {
|
|
|
1314
1312
|
{ value: 45, text: `45 ${i18n_default.t("seconds")}` }
|
|
1315
1313
|
];
|
|
1316
1314
|
};
|
|
1317
|
-
var retrieveTaxonomyType = () => {
|
|
1318
|
-
return [
|
|
1319
|
-
{
|
|
1320
|
-
value: "BLOOM",
|
|
1321
|
-
text: i18n_default.t("BLOOM")
|
|
1322
|
-
}
|
|
1323
|
-
];
|
|
1324
|
-
};
|
|
1325
|
-
var retrieveTaxonomyGroupName = () => {
|
|
1326
|
-
return [
|
|
1327
|
-
{
|
|
1328
|
-
type: "BLOOM",
|
|
1329
|
-
value: "BLOOM",
|
|
1330
|
-
text: i18n_default.t("BLOOM")
|
|
1331
|
-
}
|
|
1332
|
-
];
|
|
1333
|
-
};
|
|
1334
|
-
var retrieveTaxonomyName = () => {
|
|
1335
|
-
return [
|
|
1336
|
-
{
|
|
1337
|
-
stage: 1,
|
|
1338
|
-
groupName: "BLOOM",
|
|
1339
|
-
value: "REMEMBER",
|
|
1340
|
-
text: i18n_default.t("REMEMBER")
|
|
1341
|
-
},
|
|
1342
|
-
{
|
|
1343
|
-
stage: 2,
|
|
1344
|
-
groupName: "BLOOM",
|
|
1345
|
-
value: "UNDERSTAND",
|
|
1346
|
-
text: i18n_default.t("UNDERSTAND")
|
|
1347
|
-
},
|
|
1348
|
-
{
|
|
1349
|
-
stage: 3,
|
|
1350
|
-
groupName: "BLOOM",
|
|
1351
|
-
value: "APPLY",
|
|
1352
|
-
text: i18n_default.t("APPLY")
|
|
1353
|
-
},
|
|
1354
|
-
{
|
|
1355
|
-
stage: 4,
|
|
1356
|
-
groupName: "BLOOM",
|
|
1357
|
-
value: "ANALYZE",
|
|
1358
|
-
text: i18n_default.t("ANALYZE")
|
|
1359
|
-
},
|
|
1360
|
-
{
|
|
1361
|
-
stage: 5,
|
|
1362
|
-
groupName: "BLOOM",
|
|
1363
|
-
value: "EVALUATE",
|
|
1364
|
-
text: i18n_default.t("EVALUATE")
|
|
1365
|
-
},
|
|
1366
|
-
{
|
|
1367
|
-
stage: 6,
|
|
1368
|
-
groupName: "BLOOM",
|
|
1369
|
-
value: "CREATE",
|
|
1370
|
-
text: i18n_default.t("CREATE")
|
|
1371
|
-
}
|
|
1372
|
-
];
|
|
1373
|
-
};
|
|
1374
1315
|
var constructInputWithSpecialExpressionList = (inputText) => {
|
|
1375
1316
|
const inputPartList = [];
|
|
1376
1317
|
if (!inputText) return [];
|
|
@@ -2464,45 +2405,45 @@ var findBestFitActivity = (activity, individualModelList, outcomeModelList) => {
|
|
|
2464
2405
|
const { activityTemplateDTOList, data, coterieType, categoryIdList } = activity;
|
|
2465
2406
|
const parsedData = JSON.parse(data);
|
|
2466
2407
|
const {
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
|
|
2408
|
+
orderingDifficulty,
|
|
2409
|
+
dropdownDifficulty,
|
|
2410
|
+
MCSADifficulty,
|
|
2411
|
+
MCMADifficulty,
|
|
2412
|
+
matchingDifficulty,
|
|
2413
|
+
groupingDifficulty,
|
|
2414
|
+
fillInTheBlanksDifficulty,
|
|
2415
|
+
openEndedDifficulty,
|
|
2416
|
+
trueFalseDifficulty
|
|
2476
2417
|
} = parsedData;
|
|
2477
|
-
const
|
|
2478
|
-
if (
|
|
2479
|
-
|
|
2418
|
+
const difficultyMap = {};
|
|
2419
|
+
if (orderingDifficulty) {
|
|
2420
|
+
difficultyMap["orderingDifficulty"] = JSON.parse(orderingDifficulty);
|
|
2480
2421
|
}
|
|
2481
|
-
if (
|
|
2482
|
-
|
|
2422
|
+
if (dropdownDifficulty) {
|
|
2423
|
+
difficultyMap["dropdownDifficulty"] = JSON.parse(dropdownDifficulty);
|
|
2483
2424
|
}
|
|
2484
|
-
if (
|
|
2485
|
-
|
|
2425
|
+
if (MCSADifficulty) {
|
|
2426
|
+
difficultyMap["MCSADifficulty"] = JSON.parse(MCSADifficulty);
|
|
2486
2427
|
}
|
|
2487
|
-
if (
|
|
2488
|
-
|
|
2428
|
+
if (MCMADifficulty) {
|
|
2429
|
+
difficultyMap["MCMADifficulty"] = JSON.parse(MCMADifficulty);
|
|
2489
2430
|
}
|
|
2490
|
-
if (
|
|
2491
|
-
|
|
2431
|
+
if (matchingDifficulty) {
|
|
2432
|
+
difficultyMap["matchingDifficulty"] = JSON.parse(matchingDifficulty);
|
|
2492
2433
|
}
|
|
2493
|
-
if (
|
|
2494
|
-
|
|
2434
|
+
if (groupingDifficulty) {
|
|
2435
|
+
difficultyMap["groupingDifficulty"] = JSON.parse(groupingDifficulty);
|
|
2495
2436
|
}
|
|
2496
|
-
if (
|
|
2497
|
-
|
|
2498
|
-
|
|
2437
|
+
if (fillInTheBlanksDifficulty) {
|
|
2438
|
+
difficultyMap["fillInTheBlanksDifficulty"] = JSON.parse(
|
|
2439
|
+
fillInTheBlanksDifficulty
|
|
2499
2440
|
);
|
|
2500
2441
|
}
|
|
2501
|
-
if (
|
|
2502
|
-
|
|
2442
|
+
if (trueFalseDifficulty) {
|
|
2443
|
+
difficultyMap["trueFalseDifficulty"] = JSON.parse(trueFalseDifficulty);
|
|
2503
2444
|
}
|
|
2504
|
-
if (
|
|
2505
|
-
|
|
2445
|
+
if (openEndedDifficulty) {
|
|
2446
|
+
difficultyMap["openEndedDifficulty"] = JSON.parse(openEndedDifficulty);
|
|
2506
2447
|
}
|
|
2507
2448
|
let coterieField = "VERBAL";
|
|
2508
2449
|
if (coterieType === "MATHEMATICS" || coterieType === "BIOLOGY" || coterieType === "PHYSICS" || coterieType === "CHEMISTRY" || coterieType === "SCIENCE") {
|
|
@@ -2530,33 +2471,27 @@ var findBestFitActivity = (activity, individualModelList, outcomeModelList) => {
|
|
|
2530
2471
|
const activityTemplateValueMap = {};
|
|
2531
2472
|
for (const activityTemplateDTO of activityTemplateDTOList) {
|
|
2532
2473
|
const { type } = activityTemplateDTO;
|
|
2533
|
-
let
|
|
2474
|
+
let currentDifficulty = "";
|
|
2534
2475
|
if (type === "ORDERING") {
|
|
2535
|
-
|
|
2476
|
+
currentDifficulty = difficultyMap["orderingDifficulty"];
|
|
2536
2477
|
} else if (type === "DROPDOWN") {
|
|
2537
|
-
|
|
2478
|
+
currentDifficulty = difficultyMap["dropdownDifficulty"];
|
|
2538
2479
|
} else if (type === "MCSA") {
|
|
2539
|
-
|
|
2480
|
+
currentDifficulty = difficultyMap["MCSADifficulty"];
|
|
2540
2481
|
} else if (type === "MCMA") {
|
|
2541
|
-
|
|
2482
|
+
currentDifficulty = difficultyMap["MCMADifficulty"];
|
|
2542
2483
|
} else if (type === "MATCHING") {
|
|
2543
|
-
|
|
2484
|
+
currentDifficulty = difficultyMap["matchingDifficulty"];
|
|
2544
2485
|
} else if (type === "GROUPING") {
|
|
2545
|
-
|
|
2486
|
+
currentDifficulty = difficultyMap["groupingDifficulty"];
|
|
2546
2487
|
} else if (type === "FILL_IN_THE_BLANKS") {
|
|
2547
|
-
|
|
2488
|
+
currentDifficulty = difficultyMap["fillInTheBlanksDifficulty"];
|
|
2548
2489
|
} else if (type === "OPEN_ENDED") {
|
|
2549
|
-
|
|
2490
|
+
currentDifficulty = difficultyMap["openEndedDifficulty"];
|
|
2550
2491
|
} else if (type === "TRUE_FALSE") {
|
|
2551
|
-
|
|
2492
|
+
currentDifficulty = difficultyMap["trueFalseDifficulty"];
|
|
2552
2493
|
}
|
|
2553
|
-
const
|
|
2554
|
-
type: taxonomyType,
|
|
2555
|
-
groupName: taxonomyGroupName,
|
|
2556
|
-
name: taxonomyName
|
|
2557
|
-
} = currentTaxonomyMap;
|
|
2558
|
-
const taxonomyString = taxonomyType.toLowerCase() + taxonomyGroupName.toLowerCase().charAt(0).toUpperCase() + taxonomyGroupName.toLowerCase().substring(1) + taxonomyName.toLowerCase().charAt(0).toUpperCase() + taxonomyName.toLowerCase().substring(1);
|
|
2559
|
-
const currentTaxonomyScore = foundModel[taxonomyString];
|
|
2494
|
+
const currentDifficultyScore = foundModel[currentDifficulty];
|
|
2560
2495
|
const splittedTypeList = type.split("_");
|
|
2561
2496
|
let activityTemplateString = "";
|
|
2562
2497
|
for (let i = 0; i < splittedTypeList.length; i++) {
|
|
@@ -2568,7 +2503,7 @@ var findBestFitActivity = (activity, individualModelList, outcomeModelList) => {
|
|
|
2568
2503
|
}
|
|
2569
2504
|
}
|
|
2570
2505
|
const currentActivityTemplateScore = foundModel[activityTemplateString];
|
|
2571
|
-
const currentScore =
|
|
2506
|
+
const currentScore = currentDifficultyScore * currentActivityTemplateScore;
|
|
2572
2507
|
activityTemplateValueMap[type] = currentScore;
|
|
2573
2508
|
if (currentScore < bestScore) {
|
|
2574
2509
|
bestScore = currentScore;
|
|
@@ -2853,7 +2788,7 @@ var convertToEvaluationRubricMapString = (type, evaluationRubricMap) => {
|
|
|
2853
2788
|
}
|
|
2854
2789
|
return convertedEvaluationRubricMap;
|
|
2855
2790
|
};
|
|
2856
|
-
var constructActivityData = (activityTemplateType, contentMap, bodyMap, materialMap, solutionMap,
|
|
2791
|
+
var constructActivityData = (activityTemplateType, contentMap, bodyMap, materialMap, solutionMap, difficulty, evaluationRubricMap) => {
|
|
2857
2792
|
const constructedData = {};
|
|
2858
2793
|
constructedData["contentMap"] = JSON.stringify(contentMap);
|
|
2859
2794
|
if (activityTemplateType === "ORDERING") {
|
|
@@ -2864,7 +2799,7 @@ var constructActivityData = (activityTemplateType, contentMap, bodyMap, material
|
|
|
2864
2799
|
convertToSolutionMapString("ORDERING", solutionMap)
|
|
2865
2800
|
);
|
|
2866
2801
|
constructedData["orderingMaterialMap"] = JSON.stringify(materialMap);
|
|
2867
|
-
constructedData["
|
|
2802
|
+
constructedData["orderingDifficulty"] = difficulty;
|
|
2868
2803
|
} else if (activityTemplateType === "DROPDOWN") {
|
|
2869
2804
|
constructedData["dropdownBodyMap"] = JSON.stringify(
|
|
2870
2805
|
convertToBodyMapString("DROPDOWN", bodyMap)
|
|
@@ -2883,7 +2818,7 @@ var constructActivityData = (activityTemplateType, contentMap, bodyMap, material
|
|
|
2883
2818
|
constructedData["dropdownMaterialMap"] = JSON.stringify(
|
|
2884
2819
|
convertedDropdownMaterialMap
|
|
2885
2820
|
);
|
|
2886
|
-
constructedData["
|
|
2821
|
+
constructedData["dropdownDifficulty"] = difficulty;
|
|
2887
2822
|
} else if (activityTemplateType === "MCSA") {
|
|
2888
2823
|
constructedData["MCSABodyMap"] = JSON.stringify(
|
|
2889
2824
|
convertToBodyMapString("MCSA", bodyMap)
|
|
@@ -2898,7 +2833,7 @@ var constructActivityData = (activityTemplateType, contentMap, bodyMap, material
|
|
|
2898
2833
|
constructedData["MCSAMaterialMap"] = JSON.stringify(
|
|
2899
2834
|
convertedMCSAMaterialMap
|
|
2900
2835
|
);
|
|
2901
|
-
constructedData["
|
|
2836
|
+
constructedData["MCSADifficulty"] = difficulty;
|
|
2902
2837
|
} else if (activityTemplateType === "MCMA") {
|
|
2903
2838
|
constructedData["MCMABodyMap"] = JSON.stringify(
|
|
2904
2839
|
convertToBodyMapString("MCMA", bodyMap)
|
|
@@ -2916,7 +2851,7 @@ var constructActivityData = (activityTemplateType, contentMap, bodyMap, material
|
|
|
2916
2851
|
constructedData["MCMAMaterialMap"] = JSON.stringify(
|
|
2917
2852
|
convertedMCMAMaterialMap
|
|
2918
2853
|
);
|
|
2919
|
-
constructedData["
|
|
2854
|
+
constructedData["MCMADifficulty"] = difficulty;
|
|
2920
2855
|
} else if (activityTemplateType === "MATCHING") {
|
|
2921
2856
|
constructedData["matchingBodyMap"] = JSON.stringify(
|
|
2922
2857
|
convertToBodyMapString("MATCHING", bodyMap)
|
|
@@ -2933,7 +2868,7 @@ var constructActivityData = (activityTemplateType, contentMap, bodyMap, material
|
|
|
2933
2868
|
constructedData["matchingMaterialMap"] = JSON.stringify(
|
|
2934
2869
|
convertedMatchingMaterialMap
|
|
2935
2870
|
);
|
|
2936
|
-
constructedData["
|
|
2871
|
+
constructedData["matchingDifficulty"] = difficulty;
|
|
2937
2872
|
} else if (activityTemplateType === "GROUPING") {
|
|
2938
2873
|
constructedData["groupingBodyMap"] = JSON.stringify(
|
|
2939
2874
|
convertToBodyMapString("GROUPING", bodyMap)
|
|
@@ -2950,7 +2885,7 @@ var constructActivityData = (activityTemplateType, contentMap, bodyMap, material
|
|
|
2950
2885
|
constructedData["groupingMaterialMap"] = JSON.stringify(
|
|
2951
2886
|
convertedGroupingMaterialMap
|
|
2952
2887
|
);
|
|
2953
|
-
constructedData["
|
|
2888
|
+
constructedData["groupingDifficulty"] = difficulty;
|
|
2954
2889
|
} else if (activityTemplateType === "FILL_IN_THE_BLANKS") {
|
|
2955
2890
|
constructedData["fillInTheBlanksBodyMap"] = JSON.stringify(
|
|
2956
2891
|
convertToBodyMapString("FILL_IN_THE_BLANKS", bodyMap)
|
|
@@ -2967,7 +2902,7 @@ var constructActivityData = (activityTemplateType, contentMap, bodyMap, material
|
|
|
2967
2902
|
constructedData["fillInTheBlanksMaterialMap"] = JSON.stringify(
|
|
2968
2903
|
convertedFillInTheBlanksMaterialMap
|
|
2969
2904
|
);
|
|
2970
|
-
constructedData["
|
|
2905
|
+
constructedData["fillInTheBlanksDifficulty"] = difficulty;
|
|
2971
2906
|
} else if (activityTemplateType === "OPEN_ENDED") {
|
|
2972
2907
|
constructedData["openEndedBodyMap"] = JSON.stringify(
|
|
2973
2908
|
convertToBodyMapString("OPEN_ENDED", bodyMap)
|
|
@@ -2979,7 +2914,7 @@ var constructActivityData = (activityTemplateType, contentMap, bodyMap, material
|
|
|
2979
2914
|
convertToEvaluationRubricMapString("OPEN_ENDED", evaluationRubricMap)
|
|
2980
2915
|
);
|
|
2981
2916
|
constructedData["openEndedMaterialMap"] = JSON.stringify(materialMap);
|
|
2982
|
-
constructedData["
|
|
2917
|
+
constructedData["openEndedDifficulty"] = difficulty;
|
|
2983
2918
|
} else if (activityTemplateType === "TRUE_FALSE") {
|
|
2984
2919
|
constructedData["trueFalseBodyMap"] = JSON.stringify(
|
|
2985
2920
|
convertToBodyMapString("TRUE_FALSE", bodyMap)
|
|
@@ -2994,7 +2929,7 @@ var constructActivityData = (activityTemplateType, contentMap, bodyMap, material
|
|
|
2994
2929
|
constructedData["trueFalseMaterialMap"] = JSON.stringify(
|
|
2995
2930
|
convertTrueFalseMaterialMap
|
|
2996
2931
|
);
|
|
2997
|
-
constructedData["
|
|
2932
|
+
constructedData["trueFalseDifficulty"] = difficulty;
|
|
2998
2933
|
}
|
|
2999
2934
|
return constructedData;
|
|
3000
2935
|
};
|
|
@@ -3273,6 +3208,29 @@ var constructActivityItemListSolutionOnly = (solutionMap) => {
|
|
|
3273
3208
|
});
|
|
3274
3209
|
return itemList;
|
|
3275
3210
|
};
|
|
3211
|
+
var retrieveDifficultyByActivityTypeFromData = (type, data) => {
|
|
3212
|
+
let difficulty = "";
|
|
3213
|
+
if (type === "ORDERING") {
|
|
3214
|
+
difficulty = data["orderingDifficulty"];
|
|
3215
|
+
} else if (type === "DROPDOWN") {
|
|
3216
|
+
difficulty = data["dropdownDifficulty"];
|
|
3217
|
+
} else if (type === "MCSA") {
|
|
3218
|
+
difficulty = data["MCSADifficulty"];
|
|
3219
|
+
} else if (type === "MCMA") {
|
|
3220
|
+
difficulty = data["MCMADifficulty"];
|
|
3221
|
+
} else if (type === "MATCHING") {
|
|
3222
|
+
difficulty = data["matchingDifficulty"];
|
|
3223
|
+
} else if (type === "GROUPING") {
|
|
3224
|
+
difficulty = data["groupingDifficulty"];
|
|
3225
|
+
} else if (type === "FILL_IN_THE_BLANKS") {
|
|
3226
|
+
difficulty = data["fillInTheBlanksDifficulty"];
|
|
3227
|
+
} else if (type === "OPEN_ENDED") {
|
|
3228
|
+
difficulty = data["openEndedDifficulty"];
|
|
3229
|
+
} else if (type === "TRUE_FALSE") {
|
|
3230
|
+
difficulty = data["trueFalseDifficulty"];
|
|
3231
|
+
}
|
|
3232
|
+
return difficulty;
|
|
3233
|
+
};
|
|
3276
3234
|
|
|
3277
3235
|
// src/components/activities/body-content/ShowBodyMediaByContentType.tsx
|
|
3278
3236
|
var import_react_katex = require("react-katex");
|
|
@@ -6843,7 +6801,7 @@ var ActivityPreviewByData = ({
|
|
|
6843
6801
|
typeOptionList,
|
|
6844
6802
|
showSolution,
|
|
6845
6803
|
showEvaluationRubric,
|
|
6846
|
-
|
|
6804
|
+
showDifficulty,
|
|
6847
6805
|
isFullScreen
|
|
6848
6806
|
}) => {
|
|
6849
6807
|
const [key, setKey] = (0, import_react27.useState)((/* @__PURE__ */ new Date()).getTime());
|
|
@@ -6869,31 +6827,6 @@ var ActivityPreviewByData = ({
|
|
|
6869
6827
|
}
|
|
6870
6828
|
}, [typeOptionList, lockedType]);
|
|
6871
6829
|
(0, import_react27.useEffect)(() => {
|
|
6872
|
-
const retrieveTaxonomyNameByActivityTypeFromData = (type) => {
|
|
6873
|
-
let taxonomyMap = {
|
|
6874
|
-
name: ""
|
|
6875
|
-
};
|
|
6876
|
-
if (type === "ORDERING") {
|
|
6877
|
-
taxonomyMap = JSON.parse(data["orderingTaxonomyMap"]);
|
|
6878
|
-
} else if (type === "DROPDOWN") {
|
|
6879
|
-
taxonomyMap = JSON.parse(data["dropdownTaxonomyMap"]);
|
|
6880
|
-
} else if (type === "MCSA") {
|
|
6881
|
-
taxonomyMap = JSON.parse(data["MCSATaxonomyMap"]);
|
|
6882
|
-
} else if (type === "MCMA") {
|
|
6883
|
-
taxonomyMap = JSON.parse(data["MCMATaxonomyMap"]);
|
|
6884
|
-
} else if (type === "MATCHING") {
|
|
6885
|
-
taxonomyMap = JSON.parse(data["matchingTaxonomyMap"]);
|
|
6886
|
-
} else if (type === "GROUPING") {
|
|
6887
|
-
taxonomyMap = JSON.parse(data["groupingTaxonomyMap"]);
|
|
6888
|
-
} else if (type === "FILL_IN_THE_BLANKS") {
|
|
6889
|
-
taxonomyMap = JSON.parse(data["fillInTheBlanksTaxonomyMap"]);
|
|
6890
|
-
} else if (type === "OPEN_ENDED") {
|
|
6891
|
-
taxonomyMap = JSON.parse(data["openEndedTaxonomyMap"]);
|
|
6892
|
-
} else if (type === "TRUE_FALSE") {
|
|
6893
|
-
taxonomyMap = JSON.parse(data["trueFalseTaxonomyMap"]);
|
|
6894
|
-
}
|
|
6895
|
-
return taxonomyMap.name;
|
|
6896
|
-
};
|
|
6897
6830
|
if (!data) return;
|
|
6898
6831
|
if (!typeOptionList) return;
|
|
6899
6832
|
if (typeOptionList.length === 0) return;
|
|
@@ -6903,18 +6836,18 @@ var ActivityPreviewByData = ({
|
|
|
6903
6836
|
(typeOption) => typeOption.id === lockedType
|
|
6904
6837
|
);
|
|
6905
6838
|
}
|
|
6906
|
-
if (
|
|
6839
|
+
if (showDifficulty) {
|
|
6907
6840
|
setOptionList(
|
|
6908
6841
|
currentTypeOptionList.map((typeOption) => __spreadProps(__spreadValues({}, typeOption), {
|
|
6909
6842
|
subText: i18n_default.t(
|
|
6910
|
-
|
|
6843
|
+
retrieveDifficultyByActivityTypeFromData(typeOption.id, data)
|
|
6911
6844
|
)
|
|
6912
6845
|
}))
|
|
6913
6846
|
);
|
|
6914
6847
|
} else {
|
|
6915
6848
|
setOptionList(currentTypeOptionList);
|
|
6916
6849
|
}
|
|
6917
|
-
}, [data, lockedType, typeOptionList,
|
|
6850
|
+
}, [data, lockedType, typeOptionList, showDifficulty]);
|
|
6918
6851
|
if (!data) return;
|
|
6919
6852
|
const answer = constructAnswerBasedOnData(data);
|
|
6920
6853
|
return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { children: [
|
|
@@ -7083,7 +7016,7 @@ var ActivityPreviewByAnswerData = ({
|
|
|
7083
7016
|
typeOptionList = [],
|
|
7084
7017
|
showSolution = false,
|
|
7085
7018
|
showEvaluationRubric = false,
|
|
7086
|
-
|
|
7019
|
+
showDifficulty = true,
|
|
7087
7020
|
isFullScreen = false,
|
|
7088
7021
|
showCorrectAnswer = false
|
|
7089
7022
|
}) => {
|
|
@@ -7105,30 +7038,6 @@ var ActivityPreviewByAnswerData = ({
|
|
|
7105
7038
|
}
|
|
7106
7039
|
return null;
|
|
7107
7040
|
};
|
|
7108
|
-
const retrieveTaxonomyNameFromActivityType = (type) => {
|
|
7109
|
-
if (!data) return "";
|
|
7110
|
-
let taxonomyMap = { name: "" };
|
|
7111
|
-
const taxonomyMapNames = {
|
|
7112
|
-
ORDERING: "orderingTaxonomyMap",
|
|
7113
|
-
DROPDOWN: "dropdownTaxonomyMap",
|
|
7114
|
-
MCSA: "MCSATaxonomyMap",
|
|
7115
|
-
MCMA: "MCMATaxonomyMap",
|
|
7116
|
-
MATCHING: "matchingTaxonomyMap",
|
|
7117
|
-
GROUPING: "groupingTaxonomyMap",
|
|
7118
|
-
FILL_IN_THE_BLANKS: "fillInTheBlanksTaxonomyMap",
|
|
7119
|
-
OPEN_ENDED: "openEndedTaxonomyMap",
|
|
7120
|
-
TRUE_FALSE: "trueFalseTaxonomyMap"
|
|
7121
|
-
};
|
|
7122
|
-
const mapName = taxonomyMapNames[type];
|
|
7123
|
-
if (mapName && data[mapName]) {
|
|
7124
|
-
try {
|
|
7125
|
-
taxonomyMap = JSON.parse(data[mapName]);
|
|
7126
|
-
} catch (error) {
|
|
7127
|
-
console.error(`Error parsing taxonomy map for ${type}:`, error);
|
|
7128
|
-
}
|
|
7129
|
-
}
|
|
7130
|
-
return taxonomyMap.name || "";
|
|
7131
|
-
};
|
|
7132
7041
|
(0, import_react28.useEffect)(() => {
|
|
7133
7042
|
if (!data) return;
|
|
7134
7043
|
const constructAnswerBasedOnData2 = () => {
|
|
@@ -7179,16 +7088,18 @@ var ActivityPreviewByAnswerData = ({
|
|
|
7179
7088
|
(typeOption) => typeOption.id === lockedType
|
|
7180
7089
|
);
|
|
7181
7090
|
}
|
|
7182
|
-
if (
|
|
7091
|
+
if (showDifficulty) {
|
|
7183
7092
|
setOptionList(
|
|
7184
7093
|
currentTypeOptionList.map((typeOption) => __spreadProps(__spreadValues({}, typeOption), {
|
|
7185
|
-
subText: i18n_default.t(
|
|
7094
|
+
subText: i18n_default.t(
|
|
7095
|
+
retrieveDifficultyByActivityTypeFromData(typeOption.id, data)
|
|
7096
|
+
)
|
|
7186
7097
|
}))
|
|
7187
7098
|
);
|
|
7188
7099
|
} else {
|
|
7189
7100
|
setOptionList(currentTypeOptionList);
|
|
7190
7101
|
}
|
|
7191
|
-
}, [data, answer.data, lockedType, typeOptionList,
|
|
7102
|
+
}, [data, answer.data, lockedType, typeOptionList, showDifficulty]);
|
|
7192
7103
|
const RenderSelectedActivityContent = () => {
|
|
7193
7104
|
const commonProps = {
|
|
7194
7105
|
answer,
|
|
@@ -9722,17 +9633,14 @@ var retrieveBadgeRuleTextByParams = (coterieType, sourceType, badgeType, level)
|
|
|
9722
9633
|
|
|
9723
9634
|
// src/utilization/IndividualModelUtilization.ts
|
|
9724
9635
|
var NUMBER_OF_ACTIVITY_TEMPLATE = 9;
|
|
9725
|
-
var
|
|
9726
|
-
var
|
|
9636
|
+
var NUMBER_OF_DIFFICULTY = 3;
|
|
9637
|
+
var INITIAL_DIFFICULTY_VALUE = 1 / NUMBER_OF_DIFFICULTY;
|
|
9727
9638
|
var INITIAL_TEMPLATE_VALUE = 1 / NUMBER_OF_ACTIVITY_TEMPLATE;
|
|
9728
9639
|
var constructBaseVerbalIndvidualModel = (userId) => {
|
|
9729
9640
|
return {
|
|
9730
|
-
|
|
9731
|
-
|
|
9732
|
-
|
|
9733
|
-
bloomBloomEvaluate: INITIAL_TAXONOMY_VALUE,
|
|
9734
|
-
bloomBloomRemember: INITIAL_TAXONOMY_VALUE,
|
|
9735
|
-
bloomBloomUnderstand: INITIAL_TAXONOMY_VALUE,
|
|
9641
|
+
easy: INITIAL_DIFFICULTY_VALUE,
|
|
9642
|
+
medium: INITIAL_DIFFICULTY_VALUE,
|
|
9643
|
+
hard: INITIAL_DIFFICULTY_VALUE,
|
|
9736
9644
|
dropdown: INITIAL_TEMPLATE_VALUE,
|
|
9737
9645
|
coterieField: "VERBAL",
|
|
9738
9646
|
fillInTheBlanks: INITIAL_TEMPLATE_VALUE,
|
|
@@ -9748,12 +9656,9 @@ var constructBaseVerbalIndvidualModel = (userId) => {
|
|
|
9748
9656
|
};
|
|
9749
9657
|
var constructBaseNumericIndividualModel = (userId) => {
|
|
9750
9658
|
return {
|
|
9751
|
-
|
|
9752
|
-
|
|
9753
|
-
|
|
9754
|
-
bloomBloomEvaluate: INITIAL_TAXONOMY_VALUE,
|
|
9755
|
-
bloomBloomRemember: INITIAL_TAXONOMY_VALUE,
|
|
9756
|
-
bloomBloomUnderstand: INITIAL_TAXONOMY_VALUE,
|
|
9659
|
+
easy: INITIAL_DIFFICULTY_VALUE,
|
|
9660
|
+
medium: INITIAL_DIFFICULTY_VALUE,
|
|
9661
|
+
hard: INITIAL_DIFFICULTY_VALUE,
|
|
9757
9662
|
dropdown: INITIAL_TEMPLATE_VALUE,
|
|
9758
9663
|
coterieField: "NUMERIC",
|
|
9759
9664
|
fillInTheBlanks: INITIAL_TEMPLATE_VALUE,
|
|
@@ -10356,6 +10261,7 @@ var retrieveActivityMethodologyOptionList = () => {
|
|
|
10356
10261
|
retrieveCurrentDefaultDataMap,
|
|
10357
10262
|
retrieveDateIntervalOptionList,
|
|
10358
10263
|
retrieveDefaultUserRoleOptionList,
|
|
10264
|
+
retrieveDifficultyByActivityTypeFromData,
|
|
10359
10265
|
retrieveDistintCoterieTypeFromCatchtivityApplicationDTO,
|
|
10360
10266
|
retrieveDocumentTypeFromAcceptedFormat,
|
|
10361
10267
|
retrieveDocumentTypeFromExtension,
|
|
@@ -10386,9 +10292,6 @@ var retrieveActivityMethodologyOptionList = () => {
|
|
|
10386
10292
|
retrieveStandardExamTypeIcon,
|
|
10387
10293
|
retrieveStandardExamTypeOptionList,
|
|
10388
10294
|
retrieveStatusOptionList,
|
|
10389
|
-
retrieveTaxonomyGroupName,
|
|
10390
|
-
retrieveTaxonomyName,
|
|
10391
|
-
retrieveTaxonomyType,
|
|
10392
10295
|
retrieveTeachingMethodologyOptionList,
|
|
10393
10296
|
retrieveTimeFilterOptionList,
|
|
10394
10297
|
retrieveTimeFilterWithLastNOptionList,
|