commons-assessment 12.0.6 → 12.0.8
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 +2 -0
- package/bundles/commons-assessment.umd.js +62 -35
- package/bundles/commons-assessment.umd.js.map +1 -1
- package/esm2015/lib/modules/assessment-maker/components/assessment-builder/assessment-builder.component.js +5 -3
- package/esm2015/lib/modules/assessment-maker/services/assessment-builder.service.js +13 -7
- package/esm2015/lib/modules/assessment-taker/assessment-taker.component.js +22 -14
- package/esm2015/lib/modules/assessment-taker/components/question-type-file-upload/question-type-file-upload.component.js +4 -4
- package/esm2015/lib/modules/assessment-taker/components/question-type-multiselect/question-type-multiselect.component.js +2 -2
- package/esm2015/lib/modules/assessment-taker/components/question-type-objective/question-type-objective.component.js +2 -2
- package/esm2015/lib/modules/assessment-taker/components/question-type-preference/question-type-preference.component.js +2 -2
- package/esm2015/lib/modules/assessment-taker/components/question-type-short/question-type-short.component.js +20 -6
- package/esm2015/lib/shared/interfaces/assessment.interface.js +1 -1
- package/esm2015/lib/shared/interfaces/question-paper.interface.js +1 -1
- package/esm2015/lib/shared/interfaces/question.interface.js +1 -1
- package/fesm2015/commons-assessment.js +62 -32
- package/fesm2015/commons-assessment.js.map +1 -1
- package/lib/modules/assessment-maker/services/assessment-builder.service.d.ts +2 -0
- package/lib/modules/assessment-taker/assessment-taker.component.d.ts +9 -5
- package/lib/modules/assessment-taker/components/question-type-short/question-type-short.component.d.ts +1 -0
- package/lib/shared/interfaces/assessment.interface.d.ts +9 -0
- package/lib/shared/interfaces/question-paper.interface.d.ts +0 -1
- package/lib/shared/interfaces/question.interface.d.ts +1 -0
- package/package.json +1 -1
- package/src/lib/assets/json/labelConfig.json +6 -1
- package/src/lib/assets/json/question-builder-rules.json +23 -13
- package/src/lib/assets/json/questionTypes.json +0 -4
package/README.md
CHANGED
|
@@ -186,6 +186,8 @@ To render the assessment taker interface, use the `<lib-assessment-taker>` compo
|
|
|
186
186
|
| `[assessmentContext]` | `@Input` | `AssessmentContextDTO` | (Optional) Pre-loaded assessment context data to bypass the initial data load API call. |
|
|
187
187
|
| `[assesseeResponse]` | `@Input` | `AssessmentInstanceAssesseDTO` | (Optional) Pre-loaded assessee response data to bypass the initial data load API call. |
|
|
188
188
|
| `[hideSectionTabs]` | `@Input` | `boolean` | (Optional) Hides the section tabs. |
|
|
189
|
+
| `[markAsCompleted]` | `@Input` | `boolean` | (Optional) Marks the assessment as completed when the last section is submitted. Default is true. |
|
|
190
|
+
| `[sectionWiseScore]` | `@Input` | `{ [sectionId: number]: SectionScore }` | (Optional) Shows section wise score. Default is null. |
|
|
189
191
|
| `(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. |
|
|
190
192
|
| `(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. |
|
|
191
193
|
| `(snackbarMessage)` | `@Output` | `EventEmitter<{ message: string, type: 'success' \| 'error' \| 'info' }>` | Emits message status updates representing errors and workflow successes from the service. |
|