commons-assessment 12.0.33 → 12.0.35
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 +7 -0
- package/bundles/commons-assessment.umd.js +751 -92
- package/bundles/commons-assessment.umd.js.map +1 -1
- package/esm2015/lib/modules/assessment-maker/assessment-maker.component.js +42 -8
- 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-builder.service.js +3 -3
- package/esm2015/lib/modules/assessment-taker/assessment-taker.component.js +196 -34
- package/esm2015/lib/modules/assessment-taker/assessment-taker.module.js +9 -3
- package/esm2015/lib/modules/assessment-taker/components/proctoring-consent/proctoring-consent.component.js +119 -0
- package/esm2015/lib/modules/assessment-taker/components/proctoring-result/proctoring-result.component.js +177 -0
- 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 -3
- package/esm2015/lib/modules/assessment-taker/services/proctoring.service.js +109 -0
- package/esm2015/lib/shared/components/confirmation-dialog/confirmation-dialog.component.js +27 -4
- package/esm2015/lib/shared/components/skill-allocation/skill-allocation.component.js +1 -1
- package/esm2015/lib/shared/controllers.js +8 -3
- package/esm2015/lib/shared/interfaces/assessment.interface.js +1 -1
- package/esm2015/lib/shared/interfaces/proctoring.interface.js +2 -0
- package/fesm2015/commons-assessment.js +683 -57
- package/fesm2015/commons-assessment.js.map +1 -1
- package/lib/modules/assessment-maker/assessment-maker.component.d.ts +11 -1
- package/lib/modules/assessment-maker/services/assessment-builder.service.d.ts +2 -2
- package/lib/modules/assessment-taker/assessment-taker.component.d.ts +35 -2
- package/lib/modules/assessment-taker/assessment-taker.module.d.ts +7 -5
- package/lib/modules/assessment-taker/components/proctoring-consent/proctoring-consent.component.d.ts +48 -0
- package/lib/modules/assessment-taker/components/proctoring-result/proctoring-result.component.d.ts +82 -0
- package/lib/modules/assessment-taker/services/assessment-taker.service.d.ts +4 -0
- package/lib/modules/assessment-taker/services/proctoring.service.d.ts +34 -0
- package/lib/shared/components/confirmation-dialog/confirmation-dialog.component.d.ts +14 -0
- package/lib/shared/controllers.d.ts +6 -1
- package/lib/shared/interfaces/assessment.interface.d.ts +2 -0
- package/lib/shared/interfaces/proctoring.interface.d.ts +92 -0
- package/package.json +8 -2
- package/src/lib/assets/images/proctoring.svg +3 -0
- package/src/lib/assets/images/user.svg +3 -0
- package/src/lib/assets/json/imageConfig.json +3 -1
- package/src/lib/assets/json/labelConfig.json +58 -0
- package/src/lib/assets/theme/_theme.global.scss +6 -0
- package/src/lib/assets/theme/_theme.scss +238 -226
- package/src/lib/assets/theme/styles.scss +13 -0
package/README.md
CHANGED
|
@@ -15,6 +15,8 @@ The library uses Bootstrap styles and requires the following modules to be impor
|
|
|
15
15
|
- `AssessmentMakerModule` (If creating assessments)
|
|
16
16
|
- `AssessmentTakerModule` (If rendering assessments)
|
|
17
17
|
|
|
18
|
+
**Proctoring (optional):** if you use the proctoring feature, install the `@proctorlink/sdk` peer dependency (`npm install @proctorlink/sdk`) — it is loaded on demand only when a proctored session starts. Also allow the proctoring enclave in your app's `Content-Security-Policy`: `frame-src https://app-dev.proctorlink.com;`.
|
|
19
|
+
|
|
18
20
|
## Installation & Configuration
|
|
19
21
|
|
|
20
22
|
### 1. Import Modules
|
|
@@ -160,10 +162,13 @@ export class Component {
|
|
|
160
162
|
| `[minimumRequiredSections]` | `@Input` | `number` | Minimum number of sections needed before assessment can be published. Default is 0. |
|
|
161
163
|
| `[assessmentContext]` | `@Input` | `AssessmentContext` | (Optional) Pre-loaded assessment context data to bypass the initial data load API call. |
|
|
162
164
|
| `[checkForResponses]` | `@Input` | `boolean` | If true, show a warning on deletion of sections and questions if any responses are linked to them. Default is false. |
|
|
165
|
+
| `[showProctoringToggle]` | `@Input` | `boolean` | (Optional) If true, shows a toggle to enable/disable proctoring. Default is false. Works only when partial response submission is allowed. |
|
|
163
166
|
| `(assessmentIdChange)` | `@Output` | `EventEmitter<number>` | Emits the new `assessmentId` when an assessment is successfully created. |
|
|
164
167
|
| `(assessmentInstanceIdChange)` | `@Output` | `EventEmitter<number>` | Emits the new instance ID integer when an assessment is published. |
|
|
165
168
|
| `(snackbarMessage)` | `@Output` | `EventEmitter<{ message: string, type: 'success' \| 'error' \| 'info' }>` | Emits message status updates representing errors and workflow successes from the service. |
|
|
166
169
|
|
|
170
|
+
> **Assessment configuration (e.g. allowing partial responses):** behavioral flags such as allowing partial responses are set via `assessmentConfigs` on the assessment DTO. See [Assessment Configuration](../../documentation/assessment-maker.md#assessment-configuration-assessmentconfigs) in the maker documentation for the available config keys and examples.
|
|
171
|
+
|
|
167
172
|
### Assessment Taker
|
|
168
173
|
|
|
169
174
|
To render the assessment taker interface, use the `<lib-assessment-taker>` component in your template.
|
|
@@ -212,6 +217,8 @@ To render the assessment taker interface, use the `<lib-assessment-taker>` compo
|
|
|
212
217
|
| `[showCorrectAnswers]` | `@Input` | `boolean` | (Optional) Shows correct and incorrect answers for objective and multiselect type questions. Default is false. |
|
|
213
218
|
| `[enableSkillsToQuestionMapping]` | `@Input` | `boolean` | (Optional) Enables ability to map skills to questions. Default is false. |
|
|
214
219
|
| `(stepChanged)` | `@Output` | `EventEmitter<{ currentStepIndex: number, totalSteps: number, isLastStep: boolean }>` | Emits initially and on every step change. Provides the current step index, total steps, and indicating boolean. |
|
|
220
|
+
| `(proctoringConsent)` | `@Output` | `EventEmitter<boolean>` | When the assessment is proctored, a mandatory, non-dismissable consent dialog is shown before the session starts. On consent the button shows a loader while the proctoring session is created/refreshed and the dialog stays open until the API responds. Emits `true` once the candidate consents and the session begins. |
|
|
221
|
+
| `(proctoringSession)` | `@Output` | `EventEmitter<ProctoringSession>` | Emits the proctoring session issued on consent. |
|
|
215
222
|
| `(submitAssessment)` | `@Output` | `EventEmitter<{ assesseeId: number, completed: boolean }>` | Emits when the assessment is submitted, containing the `assesseeId` and a `completed` flag indicating if the taker finished the entire assessment. |
|
|
216
223
|
| `(snackbarMessage)` | `@Output` | `EventEmitter<{ message: string, type: 'success' \| 'error' \| 'info' }>` | Emits message status updates representing errors and workflow successes from the service. |
|
|
217
224
|
|