commons-assessment 12.1.2-dev.1 → 12.1.2
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 +9 -2
- package/bundles/commons-assessment.umd.js +174 -25
- package/bundles/commons-assessment.umd.js.map +1 -1
- package/esm2015/lib/modules/assessment-maker/assessment-maker.component.js +15 -3
- 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 +66 -2
- package/esm2015/lib/modules/assessment-maker/components/question-bank-picker/question-bank-picker.component.js +2 -2
- package/esm2015/lib/modules/assessment-maker/components/question-details/question-details.component.js +2 -2
- package/esm2015/lib/modules/assessment-maker/services/assessment-maker.service.js +18 -3
- package/esm2015/lib/modules/assessment-taker/assessment-taker.component.js +14 -2
- 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 +2 -2
- 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 +2 -2
- 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 +14 -2
- 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/modules/question-bank/question-bank.component.js +2 -2
- package/esm2015/lib/shared/components/confirmation-dialog/confirmation-dialog.component.js +1 -1
- package/esm2015/lib/shared/components/skill-allocation/skill-allocation.component.js +1 -1
- package/esm2015/lib/shared/controllers.js +2 -2
- package/esm2015/lib/shared/pipes/order-by.pipe.js +4 -3
- package/fesm2015/commons-assessment.js +165 -27
- package/fesm2015/commons-assessment.js.map +1 -1
- package/lib/modules/assessment-maker/assessment-maker.component.d.ts +1 -0
- package/lib/modules/assessment-maker/components/assessment-builder/assessment-builder.component.d.ts +9 -0
- package/lib/modules/assessment-maker/services/assessment-maker.service.d.ts +3 -1
- package/lib/modules/assessment-taker/assessment-taker.component.d.ts +3 -0
- package/lib/modules/assessment-taker/components/question-type-short/question-type-short.component.d.ts +3 -0
- package/lib/modules/assessment-taker/services/assessment-taker.service.d.ts +18 -16
- package/package.json +1 -1
- package/src/lib/assets/images/info.svg +2 -2
- package/src/lib/assets/images/lock.svg +3 -0
- package/src/lib/assets/json/imageConfig.json +2 -1
- package/src/lib/assets/json/labelConfig.json +10 -2
- package/src/lib/assets/theme/_theme.global.scss +1 -0
- package/src/lib/assets/theme/styles.global.scss +12 -0
- package/src/lib/assets/theme/styles.scss +5 -0
package/README.md
CHANGED
|
@@ -24,6 +24,7 @@ Import the following modules in your application:
|
|
|
24
24
|
- `CommonsAssessmentModule`
|
|
25
25
|
- `AssessmentMakerModule` (If creating assessments)
|
|
26
26
|
- `AssessmentTakerModule` (If rendering assessments)
|
|
27
|
+
- `QuestionBankModule` (If managing standalone questions or using Question Bank)
|
|
27
28
|
|
|
28
29
|
**Proctoring (optional):** the library does **not** import `@proctorlink/sdk` directly, so apps that don't use proctoring need not install it and build cleanly. If you use proctoring, install it (`npm install @proctorlink/sdk`) and pass a loader to the taker via `[proctorLinkLoader]="() => import('@proctorlink/sdk')"` — the SDK is then fetched on demand only when a proctored session starts, and the module reference stays in your app's bundle. Also allow the proctoring enclave in your app's `Content-Security-Policy`: `frame-src https://app-dev.proctorlink.com;`.
|
|
29
30
|
|
|
@@ -34,13 +35,14 @@ Import the following modules in your application:
|
|
|
34
35
|
Import the `CommonsAssessmentModule.forRoot()` in your root `app.module.ts` once to register the singleton service providers. Other modules can then import the specific feature modules as needed:
|
|
35
36
|
|
|
36
37
|
```typescript
|
|
37
|
-
import { CommonsAssessmentModule, AssessmentMakerModule, AssessmentTakerModule } from 'commons-assessment';
|
|
38
|
+
import { CommonsAssessmentModule, AssessmentMakerModule, AssessmentTakerModule, QuestionBankModule } from 'commons-assessment';
|
|
38
39
|
|
|
39
40
|
@NgModule({
|
|
40
41
|
imports: [
|
|
41
42
|
CommonsAssessmentModule.forRoot(), // Import once in root app.module
|
|
42
43
|
AssessmentMakerModule,
|
|
43
|
-
AssessmentTakerModule
|
|
44
|
+
AssessmentTakerModule,
|
|
45
|
+
QuestionBankModule
|
|
44
46
|
]
|
|
45
47
|
})
|
|
46
48
|
```
|
|
@@ -174,6 +176,9 @@ export class Component {
|
|
|
174
176
|
| `[checkForResponses]` | `@Input` | `boolean` | If true, show a warning on deletion of sections and questions if any responses are linked to them. Default is false. |
|
|
175
177
|
| `[showProctoringToggle]` | `@Input` | `boolean` | (Optional) If true, shows a toggle to enable/disable proctoring. Default is false. Works only when partial response submission is allowed. |
|
|
176
178
|
| `[showTimeInput]` | `@Input` | `boolean` | (Optional) If true, shows an optional duration (minutes) input. The value is saved (in seconds) to the assessment instance's `duration` — bundled into the patch API when the instance exists, or set on the created instance otherwise. Leave it empty for an untimed assessment. Default is false. |
|
|
179
|
+
| `[enableSkillsToQuestionMapping]` | `@Input` | `boolean` | (Optional) Enables ability to map skills to questions. Default is false. |
|
|
180
|
+
| `[enableImportFromQuestionBank]` | `@Input` | `boolean` | (Optional) Enables the Question Bank import feature via the unified + Add button menu. Default is false. |
|
|
181
|
+
| `[questionBankConfig]` | `@Input` | `QuestionBankConfig` | (Optional) Contextual configuration object `{ domain: string, tenant: number }` for the Question Bank picker. |
|
|
177
182
|
| `(assessmentIdChange)` | `@Output` | `EventEmitter<number>` | Emits the new `assessmentId` when an assessment is successfully created. |
|
|
178
183
|
| `(assessmentInstanceIdChange)` | `@Output` | `EventEmitter<number>` | Emits the new instance ID integer when an assessment is published. |
|
|
179
184
|
| `(snackbarMessage)` | `@Output` | `EventEmitter<{ message: string, type: 'success' \| 'error' \| 'info' }>` | Emits message status updates representing errors and workflow successes from the service. |
|
|
@@ -241,6 +246,8 @@ For a more comprehensive guide on features, detailed input/output variables, int
|
|
|
241
246
|
|
|
242
247
|
- **Assessment Maker Component**: [assessment-maker.md](../../documentation/assessment-maker.md)
|
|
243
248
|
- **Assessment Taker Component**: [assessment-taker.md](../../documentation/assessment-taker.md)
|
|
249
|
+
- **Question Bank & Picker Component**: [question-bank.md](../../documentation/question-bank.md)
|
|
250
|
+
- **MFE Integration Guide**: [mfe-integration-guide.md](../../documentation/mfe-integration-guide.md)
|
|
244
251
|
- **Theming & Styles Guide**: [theme.md](../../documentation/theme.md)
|
|
245
252
|
|
|
246
253
|
## Development Commands
|