commons-assessment 12.0.30 → 12.0.31
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 -1
- package/bundles/commons-assessment.umd.js +3 -2
- package/bundles/commons-assessment.umd.js.map +1 -1
- package/esm2015/lib/modules/assessment-taker/components/question-type-file-upload/question-type-file-upload.component.js +3 -2
- package/esm2015/lib/shared/controllers.js +2 -2
- package/fesm2015/commons-assessment.js +3 -2
- package/fesm2015/commons-assessment.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -61,7 +61,6 @@ Include the library's global styles and third-party dependencies in the `styles`
|
|
|
61
61
|
```json
|
|
62
62
|
"styles": [
|
|
63
63
|
"src/styles.scss",
|
|
64
|
-
"node_modules/commons-assessment/src/lib/assets/theme/styles.global.scss",
|
|
65
64
|
"node_modules/@kolkov/angular-editor/themes/default.scss"
|
|
66
65
|
]
|
|
67
66
|
```
|
|
@@ -73,6 +72,7 @@ The library provides a mixin to easily customize the theme, including fonts and
|
|
|
73
72
|
```scss
|
|
74
73
|
// Import the library's theme mixin
|
|
75
74
|
@use "/node_modules/commons-assessment/src/lib/assets/theme/theme.global" as theme;
|
|
75
|
+
@import "commons-assessment/src/lib/assets/theme/styles.global";
|
|
76
76
|
// Import Bootstrap and Material core styles
|
|
77
77
|
@import "~bootstrap/dist/css/bootstrap.min.css";
|
|
78
78
|
@import "@angular/material/prebuilt-themes/indigo-pink.css";
|
|
@@ -197,6 +197,14 @@ To render the assessment taker interface, use the `<lib-assessment-taker>` compo
|
|
|
197
197
|
| `(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. |
|
|
198
198
|
| `(snackbarMessage)` | `@Output` | `EventEmitter<{ message: string, type: 'success' \| 'error' \| 'info' }>` | Emits message status updates representing errors and workflow successes from the service. |
|
|
199
199
|
|
|
200
|
+
## Detailed Documentation
|
|
201
|
+
|
|
202
|
+
For a more comprehensive guide on features, detailed input/output variables, interfaces, custom events, and styling variables, please refer to the following documentation files:
|
|
203
|
+
|
|
204
|
+
- **Assessment Maker Component**: [assessment-maker.md](../../documentation/assessment-maker.md)
|
|
205
|
+
- **Assessment Taker Component**: [assessment-taker.md](../../documentation/assessment-taker.md)
|
|
206
|
+
- **Theming & Styles Guide**: [theme.md](../../documentation/theme.md)
|
|
207
|
+
|
|
200
208
|
## Development Commands
|
|
201
209
|
|
|
202
210
|
- Run `npm run build` or `ng build commons-assessment` to build the library project. The build artifacts will be stored in the `dist/` directory.
|
|
@@ -692,7 +692,7 @@
|
|
|
692
692
|
getAssessmentQuestionPaper: COMMONS_ASSESSMENT_SERVICE + '/api/v2/assessmentQuestionPapers?',
|
|
693
693
|
getAssessmentQuestions: COMMONS_ASSESSMENT_SERVICE + '/api/v3/questions/questions/instance?',
|
|
694
694
|
getChildQuestionsWithIdList: COMMONS_ASSESSMENT_SERVICE + '/api/v3/questions/childquestion/instance?',
|
|
695
|
-
uploadAttachment: COMMONS_ASSESSMENT_SERVICE + '/api/v1/attachments?',
|
|
695
|
+
uploadAttachment: COMMONS_ASSESSMENT_SERVICE + '/api/v1/consent/attachments?',
|
|
696
696
|
getAttachments: COMMONS_ASSESSMENT_SERVICE + '/api/v1/attachments/ids?',
|
|
697
697
|
submitAssessment: COMMONS_ASSESSMENT_SERVICE + '/api/v2/assessmentInstanceAssesses',
|
|
698
698
|
getAnswersByAiaId: COMMONS_ASSESSMENT_SERVICE + '/api/v2/assessmentInstanceAssesses/',
|
|
@@ -1884,9 +1884,10 @@
|
|
|
1884
1884
|
};
|
|
1885
1885
|
QuestionTypeFileUploadComponent.prototype.uploadFile = function (file) {
|
|
1886
1886
|
var _this = this;
|
|
1887
|
+
var _a;
|
|
1887
1888
|
var formData = new FormData();
|
|
1888
1889
|
formData.append('file', file);
|
|
1889
|
-
this.assessmentService.uploadAttachment(formData, { entityType: 'ENTITY_TYPE.ASSESSMENT_QUESTION', isPublic: true }).subscribe({
|
|
1890
|
+
this.assessmentService.uploadAttachment(formData, { entityType: 'ENTITY_TYPE.ASSESSMENT_QUESTION', isPublic: true, tenantId: (_a = this.question) === null || _a === void 0 ? void 0 : _a.tenantId }).subscribe({
|
|
1890
1891
|
next: function (data) {
|
|
1891
1892
|
if (_this.allowMultiple) {
|
|
1892
1893
|
_this.files = __spreadArray(__spreadArray([], __read(_this.files)), [data]);
|