commons-assessment 12.0.39-dev.2 → 12.0.39-dev.4
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/README.md +1 -0
- package/bundles/commons-assessment.umd.js +66 -24
- package/bundles/commons-assessment.umd.js.map +1 -1
- package/esm2015/lib/modules/assessment-maker/assessment-maker.component.js +1 -1
- package/esm2015/lib/modules/assessment-maker/components/add-edit-section-introduction/add-edit-section-introduction.component.js +1 -1
- package/esm2015/lib/modules/assessment-maker/components/assessment-builder/assessment-builder.component.js +1 -1
- package/esm2015/lib/modules/assessment-maker/components/question-details/question-details.component.js +1 -1
- package/esm2015/lib/modules/assessment-maker/services/assessment-maker.service.js +15 -2
- package/esm2015/lib/modules/assessment-taker/assessment-taker.component.js +12 -6
- package/esm2015/lib/modules/assessment-taker/components/proctoring-consent/proctoring-consent.component.js +14 -2
- package/esm2015/lib/modules/assessment-taker/components/proctoring-result/proctoring-result.component.js +1 -1
- package/esm2015/lib/modules/assessment-taker/components/question-type-date-picker/question-type-date-picker.component.js +1 -1
- package/esm2015/lib/modules/assessment-taker/components/question-type-editor/question-type-editor.component.js +1 -1
- package/esm2015/lib/modules/assessment-taker/components/question-type-file-upload/question-type-file-upload.component.js +1 -1
- package/esm2015/lib/modules/assessment-taker/components/question-type-long/question-type-long.component.js +1 -1
- package/esm2015/lib/modules/assessment-taker/components/question-type-multiselect/question-type-multiselect.component.js +1 -1
- package/esm2015/lib/modules/assessment-taker/components/question-type-objective/question-type-objective.component.js +1 -1
- package/esm2015/lib/modules/assessment-taker/components/question-type-preference/question-type-preference.component.js +1 -1
- package/esm2015/lib/modules/assessment-taker/components/question-type-short/question-type-short.component.js +1 -1
- package/esm2015/lib/modules/assessment-taker/components/section-instructions/section-instructions.component.js +1 -1
- package/esm2015/lib/modules/assessment-taker/services/assessment-taker.service.js +15 -2
- package/esm2015/lib/shared/components/confirmation-dialog/confirmation-dialog.component.js +2 -2
- package/esm2015/lib/shared/components/skill-allocation/skill-allocation.component.js +1 -1
- package/fesm2015/commons-assessment.js +66 -26
- package/fesm2015/commons-assessment.js.map +1 -1
- package/lib/modules/assessment-maker/services/assessment-maker.service.d.ts +14 -12
- package/lib/modules/assessment-taker/assessment-taker.component.d.ts +2 -1
- package/lib/modules/assessment-taker/services/assessment-taker.service.d.ts +18 -16
- package/package.json +1 -1
- package/src/lib/assets/json/labelConfig.json +2 -0
- package/src/lib/assets/theme/_theme.global.scss +1 -0
- package/src/lib/assets/theme/styles.global.scss +18 -0
|
@@ -1,25 +1,27 @@
|
|
|
1
1
|
import { HttpClient, HttpParams } from '@angular/common/http';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class AssessmentMakerService {
|
|
4
5
|
private http;
|
|
5
6
|
private readonly assetsBaseUrl;
|
|
7
|
+
private configCache;
|
|
6
8
|
constructor(http: HttpClient);
|
|
7
9
|
private getHeaders;
|
|
8
10
|
createParams(params: any): HttpParams;
|
|
9
|
-
getConfigJSON(fileName: string):
|
|
10
|
-
getResponseCount(assessmentInstanceId: number):
|
|
11
|
-
createAssessmentAndQuestionPaper(payload: any):
|
|
12
|
-
patchAssessmentAndQuestionPaper(payload: any):
|
|
13
|
-
createQuestion(payload: any):
|
|
14
|
-
patchQuestion(payload: any):
|
|
11
|
+
getConfigJSON(fileName: string): Observable<any>;
|
|
12
|
+
getResponseCount(assessmentInstanceId: number): Observable<Object>;
|
|
13
|
+
createAssessmentAndQuestionPaper(payload: any): Observable<Object>;
|
|
14
|
+
patchAssessmentAndQuestionPaper(payload: any): Observable<Object>;
|
|
15
|
+
createQuestion(payload: any): Observable<Object>;
|
|
16
|
+
patchQuestion(payload: any): Observable<Object>;
|
|
15
17
|
getQuestionsByIds(params: {
|
|
16
18
|
questionIds: number[];
|
|
17
|
-
}):
|
|
18
|
-
getAssessmentContext(params: any):
|
|
19
|
-
duplicateSection(questionPaperId: number, sectionId: number):
|
|
20
|
-
duplicateQuestion(sectionId: number, sectionQuestionId: number):
|
|
21
|
-
createAssessmentInstance(payload: any):
|
|
22
|
-
getRefDataByCode(code: string, params: any):
|
|
19
|
+
}): Observable<Object>;
|
|
20
|
+
getAssessmentContext(params: any): Observable<Object>;
|
|
21
|
+
duplicateSection(questionPaperId: number, sectionId: number): Observable<Object>;
|
|
22
|
+
duplicateQuestion(sectionId: number, sectionQuestionId: number): Observable<Object>;
|
|
23
|
+
createAssessmentInstance(payload: any): Observable<Object>;
|
|
24
|
+
getRefDataByCode(code: string, params: any): Observable<Object>;
|
|
23
25
|
static ɵfac: i0.ɵɵFactoryDeclaration<AssessmentMakerService, never>;
|
|
24
26
|
static ɵprov: i0.ɵɵInjectableDeclaration<AssessmentMakerService>;
|
|
25
27
|
}
|
|
@@ -43,6 +43,7 @@ export declare class AssessmentTakerComponent implements OnInit, OnDestroy {
|
|
|
43
43
|
showOverallRemarks: boolean;
|
|
44
44
|
showCorrectAnswers: boolean;
|
|
45
45
|
resumeTimerAcrossVisits: boolean;
|
|
46
|
+
warnOnLeaveDuringProctoring: boolean;
|
|
46
47
|
proctorLinkLoader?: () => Promise<any>;
|
|
47
48
|
snackbarMessage: EventEmitter<{
|
|
48
49
|
message: string;
|
|
@@ -186,5 +187,5 @@ export declare class AssessmentTakerComponent implements OnInit, OnDestroy {
|
|
|
186
187
|
trackByOptionId(index: number, option: any): string;
|
|
187
188
|
trackByChildId(index: number, id: any): string;
|
|
188
189
|
static ɵfac: i0.ɵɵFactoryDeclaration<AssessmentTakerComponent, never>;
|
|
189
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AssessmentTakerComponent, "lib-assessment-taker", never, { "labelConfig": "labelConfig"; "imageConfig": "imageConfig"; "showFooter": "showFooter"; "assessmentId": "assessmentId"; "assessmentInstanceId": "assessmentInstanceId"; "assesseeData": "assesseeData"; "assessorData": "assessorData"; "disabled": "disabled"; "previewMode": "previewMode"; "verticalView": "verticalView"; "enableMarks": "enableMarks"; "hideSectionTabs": "hideSectionTabs"; "assessmentContext": "assessmentContext"; "assesseeResponse": "assesseeResponse"; "markAsCompleted": "markAsCompleted"; "sectionWiseScore": "sectionWiseScore"; "showOverallRemarks": "showOverallRemarks"; "showCorrectAnswers": "showCorrectAnswers"; "resumeTimerAcrossVisits": "resumeTimerAcrossVisits"; "proctorLinkLoader": "proctorLinkLoader"; }, { "snackbarMessage": "snackbarMessage"; "submitAssessment": "submitAssessment"; "stepChanged": "stepChanged"; "consentToProceed": "consentToProceed"; }, never, never>;
|
|
190
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AssessmentTakerComponent, "lib-assessment-taker", never, { "labelConfig": "labelConfig"; "imageConfig": "imageConfig"; "showFooter": "showFooter"; "assessmentId": "assessmentId"; "assessmentInstanceId": "assessmentInstanceId"; "assesseeData": "assesseeData"; "assessorData": "assessorData"; "disabled": "disabled"; "previewMode": "previewMode"; "verticalView": "verticalView"; "enableMarks": "enableMarks"; "hideSectionTabs": "hideSectionTabs"; "assessmentContext": "assessmentContext"; "assesseeResponse": "assesseeResponse"; "markAsCompleted": "markAsCompleted"; "sectionWiseScore": "sectionWiseScore"; "showOverallRemarks": "showOverallRemarks"; "showCorrectAnswers": "showCorrectAnswers"; "resumeTimerAcrossVisits": "resumeTimerAcrossVisits"; "warnOnLeaveDuringProctoring": "warnOnLeaveDuringProctoring"; "proctorLinkLoader": "proctorLinkLoader"; }, { "snackbarMessage": "snackbarMessage"; "submitAssessment": "submitAssessment"; "stepChanged": "stepChanged"; "consentToProceed": "consentToProceed"; }, never, never>;
|
|
190
191
|
}
|
|
@@ -1,27 +1,29 @@
|
|
|
1
1
|
import { HttpClient, HttpParams } from '@angular/common/http';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class AssessmentTakerService {
|
|
4
5
|
private http;
|
|
5
6
|
private readonly assetsBaseUrl;
|
|
7
|
+
private configCache;
|
|
6
8
|
constructor(http: HttpClient);
|
|
7
9
|
private getHeaders;
|
|
8
10
|
createParams(params: any): HttpParams;
|
|
9
|
-
getConfigJSON(fileName: string):
|
|
10
|
-
getAssessmentContextById(params: any):
|
|
11
|
-
getAssessmentQuestionPaper(instanceId: number):
|
|
12
|
-
getAssessmentQuestions(instanceId: any, questionIds: any):
|
|
13
|
-
getChildQuestionsWithIdList(instanceId: any, questionIds: any):
|
|
14
|
-
uploadAttachment(fileUploadPayload: FormData, params: any):
|
|
15
|
-
getAttachments(params: any):
|
|
16
|
-
submitAssessment(payload: any):
|
|
17
|
-
patchAssessment(payload: any):
|
|
18
|
-
getAnswersByAiaId(aiaId: any):
|
|
19
|
-
updateMarks(payload: any):
|
|
20
|
-
refreshProctoringToken(assesseeId: number):
|
|
21
|
-
endProctoringSession(assesseeId: number):
|
|
22
|
-
getProctoringSessions(assesseeId: number, params: any):
|
|
23
|
-
getProctoringReportBySession(sessionId: number):
|
|
24
|
-
checkGoogleDriveLinkPublic(googleDriveLink: string):
|
|
11
|
+
getConfigJSON(fileName: string): Observable<any>;
|
|
12
|
+
getAssessmentContextById(params: any): Observable<Object>;
|
|
13
|
+
getAssessmentQuestionPaper(instanceId: number): Observable<Object>;
|
|
14
|
+
getAssessmentQuestions(instanceId: any, questionIds: any): Observable<Object>;
|
|
15
|
+
getChildQuestionsWithIdList(instanceId: any, questionIds: any): Observable<Object>;
|
|
16
|
+
uploadAttachment(fileUploadPayload: FormData, params: any): Observable<Object>;
|
|
17
|
+
getAttachments(params: any): Observable<Object>;
|
|
18
|
+
submitAssessment(payload: any): Observable<Object>;
|
|
19
|
+
patchAssessment(payload: any): Observable<Object>;
|
|
20
|
+
getAnswersByAiaId(aiaId: any): Observable<Object>;
|
|
21
|
+
updateMarks(payload: any): Observable<Object>;
|
|
22
|
+
refreshProctoringToken(assesseeId: number): Observable<Object>;
|
|
23
|
+
endProctoringSession(assesseeId: number): Observable<Object>;
|
|
24
|
+
getProctoringSessions(assesseeId: number, params: any): Observable<Object>;
|
|
25
|
+
getProctoringReportBySession(sessionId: number): Observable<Object>;
|
|
26
|
+
checkGoogleDriveLinkPublic(googleDriveLink: string): Observable<Object>;
|
|
25
27
|
static ɵfac: i0.ɵɵFactoryDeclaration<AssessmentTakerService, never>;
|
|
26
28
|
static ɵprov: i0.ɵɵInjectableDeclaration<AssessmentTakerService>;
|
|
27
29
|
}
|
package/package.json
CHANGED
|
@@ -109,6 +109,7 @@
|
|
|
109
109
|
"COMMONS_ASSESSMENT.PROCTORING.WARN_NO_REFRESH": "Do not refresh or close the page during the assessment.",
|
|
110
110
|
"COMMONS_ASSESSMENT.PROCTORING.WARN_QUIET_ROOM": "Stay in a well-lit, quiet room and keep your face clearly visible.",
|
|
111
111
|
"COMMONS_ASSESSMENT.PROCTORING.CAMERA_DENIED": "Camera access is required for proctoring. Please allow camera access in your browser and try again.",
|
|
112
|
+
"COMMONS_ASSESSMENT.PROCTORING.REFERENCE_IMAGE_REJECTED": "We couldn't verify your photo — no clear face was detected. Please retake a clear, unobstructed photo of your face in good lighting.",
|
|
112
113
|
"COMMONS_ASSESSMENT.PROCTORING.SESSION_ERROR": "Could not start the proctoring session. Please try again.",
|
|
113
114
|
"COMMONS_ASSESSMENT.PROCTORING.RESULT_TITLE": "Proctoring report",
|
|
114
115
|
"COMMONS_ASSESSMENT.PROCTORING.VIEW_REPORT": "Proctoring report",
|
|
@@ -148,6 +149,7 @@
|
|
|
148
149
|
"COMMONS_ASSESSMENT.PROCTORING.EVENT.no_face.detected": "No face detected",
|
|
149
150
|
"COMMONS_ASSESSMENT.PROCTORING.EVENT.multi_face.detected": "Multiple faces detected",
|
|
150
151
|
"COMMONS_ASSESSMENT.PROCTORING.REASON.browser_activity": "Browser activity",
|
|
152
|
+
"COMMONS_ASSESSMENT.PROCTORING.REASON.liveness_gap": "Liveness gap",
|
|
151
153
|
"COMMONS_ASSESSMENT.PROCTORING.REASON.no_face": "No face detected",
|
|
152
154
|
"COMMONS_ASSESSMENT.PROCTORING.REASON.multi_face": "Multiple faces detected",
|
|
153
155
|
"COMMONS_ASSESSMENT.PROCTORING.REASON.impersonation": "Possible impersonation",
|
|
@@ -78,6 +78,12 @@ GLOBAL stylesheet for commons-assessment library
|
|
|
78
78
|
border-radius: var(--assessment-border-radius-two);
|
|
79
79
|
border: var(--assessment-input-border-one);
|
|
80
80
|
overflow: hidden;
|
|
81
|
+
transition: border-color 0.15s ease, box-shadow 0.15s ease;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.angular-editor:focus-within {
|
|
85
|
+
border-color: var(--assessment-primary-one) !important;
|
|
86
|
+
box-shadow: var(--assessment-input-focus-box-shadow);
|
|
81
87
|
}
|
|
82
88
|
|
|
83
89
|
.angular-editor-textarea {
|
|
@@ -198,4 +204,16 @@ GLOBAL stylesheet for commons-assessment library
|
|
|
198
204
|
.mat-mdc-tab-header {
|
|
199
205
|
display: none !important;
|
|
200
206
|
}
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
input.assessment-input-border-one,
|
|
210
|
+
textarea.assessment-input-border-one {
|
|
211
|
+
transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
|
|
212
|
+
|
|
213
|
+
&:focus {
|
|
214
|
+
background-color: var(--assessment-white) !important;
|
|
215
|
+
border: var(--assessment-input-border-one) !important;
|
|
216
|
+
border-color: var(--assessment-primary-one) !important;
|
|
217
|
+
box-shadow: var(--assessment-input-focus-box-shadow);
|
|
218
|
+
}
|
|
201
219
|
}
|