commons-assessment 12.0.37 → 12.0.38
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/bundles/commons-assessment.umd.js +9 -5
- package/bundles/commons-assessment.umd.js.map +1 -1
- package/esm2015/lib/modules/assessment-maker/assessment-maker.component.js +3 -2
- package/esm2015/lib/modules/assessment-taker/assessment-taker.component.js +6 -4
- package/esm2015/lib/modules/assessment-taker/components/proctoring-consent/proctoring-consent.component.js +3 -2
- package/fesm2015/commons-assessment.js +9 -5
- package/fesm2015/commons-assessment.js.map +1 -1
- package/lib/modules/assessment-taker/assessment-taker.component.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1376,7 +1376,8 @@
|
|
|
1376
1376
|
});
|
|
1377
1377
|
Object.defineProperty(ProctoringConsentComponent.prototype, "durationMinutes", {
|
|
1378
1378
|
get: function () {
|
|
1379
|
-
|
|
1379
|
+
// keep fractional minutes (e.g. 30s -> 0.5) so the display matches the saved duration
|
|
1380
|
+
return Math.round((this.durationSeconds / 60) * 100) / 100;
|
|
1380
1381
|
},
|
|
1381
1382
|
enumerable: false,
|
|
1382
1383
|
configurable: true
|
|
@@ -2692,6 +2693,7 @@
|
|
|
2692
2693
|
this.overallNotesCtrl = new i1$2.FormControl('');
|
|
2693
2694
|
this.expandedState = [];
|
|
2694
2695
|
this.youtubeUrlCache = {};
|
|
2696
|
+
this.newAssesseeSession = false;
|
|
2695
2697
|
this._selectedTabIndex = 0;
|
|
2696
2698
|
this.sectionErrors = [];
|
|
2697
2699
|
this.tenantId = 0;
|
|
@@ -2996,6 +2998,7 @@
|
|
|
2996
2998
|
_this.assesseeResponse = Object.assign(Object.assign({}, _this.assesseeResponse), res);
|
|
2997
2999
|
}
|
|
2998
3000
|
if (!assesseeId) {
|
|
3001
|
+
_this.newAssesseeSession = true;
|
|
2999
3002
|
// first attempt just created the assessee — notify the host it's in progress
|
|
3000
3003
|
_this.submitAssessment.emit({
|
|
3001
3004
|
assesseeId: (_b = _this.assesseeResponse) === null || _b === void 0 ? void 0 : _b.id,
|
|
@@ -3052,7 +3055,7 @@
|
|
|
3052
3055
|
this.updateDisplayTime();
|
|
3053
3056
|
return;
|
|
3054
3057
|
}
|
|
3055
|
-
if (this.resumeTimerAcrossVisits) {
|
|
3058
|
+
if (this.resumeTimerAcrossVisits && !this.newAssesseeSession) {
|
|
3056
3059
|
this.beginTrackedTimer(duration);
|
|
3057
3060
|
}
|
|
3058
3061
|
else {
|
|
@@ -3489,7 +3492,7 @@
|
|
|
3489
3492
|
_this.submitAssessment.emit({
|
|
3490
3493
|
assesseeId: ((_c = _this.assesseeResponse) === null || _c === void 0 ? void 0 : _c.id) || res,
|
|
3491
3494
|
assesseeResponse: ((_d = _this.assesseeResponse) === null || _d === void 0 ? void 0 : _d.id) ? _this.assesseeResponse : payload,
|
|
3492
|
-
completed: goNext && (_this.selectedTabIndex == _this.sectionFormGroups.length - 1 || _this.verticalView)
|
|
3495
|
+
completed: goNext && (_this.selectedTabIndex == _this.sectionFormGroups.length - 1 || _this.verticalView || _this.isAutoSubmitting)
|
|
3493
3496
|
});
|
|
3494
3497
|
if (goNext && _this.selectedTabIndex < _this.sectionFormGroups.length - 1 && !_this.isAutoSubmitting) {
|
|
3495
3498
|
_this.selectedTabIndex++;
|
|
@@ -3646,7 +3649,7 @@
|
|
|
3646
3649
|
this.updateDisplayTime();
|
|
3647
3650
|
this.disableForm();
|
|
3648
3651
|
this.isAutoSubmitting = true;
|
|
3649
|
-
this.save(
|
|
3652
|
+
this.save();
|
|
3650
3653
|
};
|
|
3651
3654
|
AssessmentTakerComponent.prototype.disableForm = function () {
|
|
3652
3655
|
var _this = this;
|
|
@@ -5428,7 +5431,8 @@
|
|
|
5428
5431
|
AssessmentMakerComponent.prototype.readDuration = function (instance) {
|
|
5429
5432
|
var _a;
|
|
5430
5433
|
var seconds = (_a = instance === null || instance === void 0 ? void 0 : instance.duration) !== null && _a !== void 0 ? _a : 0;
|
|
5431
|
-
|
|
5434
|
+
// keep fractional minutes (e.g. 30s -> 0.5) rather than rounding to whole minutes
|
|
5435
|
+
this.durationMinutes = seconds > 0 ? Math.round((seconds / 60) * 100) / 100 : null;
|
|
5432
5436
|
};
|
|
5433
5437
|
/** Blocks characters that would enter a negative/exponent value in the duration input. */
|
|
5434
5438
|
AssessmentMakerComponent.prototype.blockNegativeKeys = function (event) {
|