pcf-assessment-taker 0.1.13
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 +24 -0
- package/assessment-taker.d.ts +5 -0
- package/esm2020/assessment-taker.mjs +5 -0
- package/esm2020/lib/assessment-taker.component.mjs +24 -0
- package/esm2020/lib/assessment-taker.module.mjs +44 -0
- package/esm2020/lib/assessment-taker.routing.module.mjs +23 -0
- package/esm2020/lib/assessment-taker.service.mjs +46 -0
- package/esm2020/lib/components/feature/feature-routing.module.mjs +29 -0
- package/esm2020/lib/components/feature/feature.module.mjs +57 -0
- package/esm2020/lib/components/feature/quest-success/quest-success/quest-success.component.mjs +26 -0
- package/esm2020/lib/components/feature/quest-wizard/quest-wizard.component.mjs +437 -0
- package/esm2020/lib/configuration.mjs +4 -0
- package/esm2020/lib/shared/interceptor/lib-interceptor.interceptor.mjs +26 -0
- package/esm2020/lib/shared/pipe/order-by.pipe.mjs +22 -0
- package/esm2020/lib/shared/services/assessment-id.service.mjs +21 -0
- package/esm2020/lib/shared/shared-components/question-type-add-dialog/question-type-add-dialog.component.mjs +97 -0
- package/esm2020/lib/shared/shared-components/question-type-date/question-type-date.component.mjs +42 -0
- package/esm2020/lib/shared/shared-components/question-type-editor/question-type-editor.component.mjs +48 -0
- package/esm2020/lib/shared/shared-components/question-type-long/question-type-long.component.mjs +47 -0
- package/esm2020/lib/shared/shared-components/question-type-multiselect/question-type-multiselect.component.mjs +55 -0
- package/esm2020/lib/shared/shared-components/question-type-multiselect-sub/question-type-multiselect-sub.component.mjs +58 -0
- package/esm2020/lib/shared/shared-components/question-type-number/question-type-number.component.mjs +43 -0
- package/esm2020/lib/shared/shared-components/question-type-objective/question-type-objective.component.mjs +59 -0
- package/esm2020/lib/shared/shared-components/question-type-objective-sub/question-type-objective-sub.component.mjs +60 -0
- package/esm2020/lib/shared/shared-components/question-type-rating/question-type-rating.component.mjs +49 -0
- package/esm2020/lib/shared/shared-components/question-type-searchable-tag/question-type-searchable-tag.component.mjs +103 -0
- package/esm2020/lib/shared/shared-components/question-type-short/question-type-short.component.mjs +43 -0
- package/esm2020/lib/shared/shared-components/question-type-upload-file/question-type-upload-file.component.mjs +48 -0
- package/esm2020/lib/shared/shared-components/shared-components.module.mjs +143 -0
- package/esm2020/pcf-assessment-taker.mjs +5 -0
- package/esm2020/public-api.mjs +25 -0
- package/fesm2015/assessment-taker.mjs +1481 -0
- package/fesm2015/assessment-taker.mjs.map +1 -0
- package/fesm2015/pcf-assessment-taker.mjs +1481 -0
- package/fesm2015/pcf-assessment-taker.mjs.map +1 -0
- package/fesm2020/assessment-taker.mjs +1468 -0
- package/fesm2020/assessment-taker.mjs.map +1 -0
- package/fesm2020/pcf-assessment-taker.mjs +1468 -0
- package/fesm2020/pcf-assessment-taker.mjs.map +1 -0
- package/lib/assessment-taker.component.d.ts +13 -0
- package/lib/assessment-taker.module.d.ts +11 -0
- package/lib/assessment-taker.routing.module.d.ts +7 -0
- package/lib/assessment-taker.service.d.ts +18 -0
- package/lib/components/feature/feature-routing.module.d.ts +7 -0
- package/lib/components/feature/feature.module.d.ts +15 -0
- package/lib/components/feature/quest-success/quest-success/quest-success.component.d.ts +12 -0
- package/lib/components/feature/quest-wizard/quest-wizard.component.d.ts +51 -0
- package/lib/configuration.d.ts +6 -0
- package/lib/shared/interceptor/lib-interceptor.interceptor.d.ts +11 -0
- package/lib/shared/pipe/order-by.pipe.d.ts +7 -0
- package/lib/shared/services/assessment-id.service.d.ts +9 -0
- package/lib/shared/shared-components/question-type-add-dialog/question-type-add-dialog.component.d.ts +35 -0
- package/lib/shared/shared-components/question-type-date/question-type-date.component.d.ts +12 -0
- package/lib/shared/shared-components/question-type-editor/question-type-editor.component.d.ts +16 -0
- package/lib/shared/shared-components/question-type-long/question-type-long.component.d.ts +15 -0
- package/lib/shared/shared-components/question-type-multiselect/question-type-multiselect.component.d.ts +15 -0
- package/lib/shared/shared-components/question-type-multiselect-sub/question-type-multiselect-sub.component.d.ts +15 -0
- package/lib/shared/shared-components/question-type-number/question-type-number.component.d.ts +13 -0
- package/lib/shared/shared-components/question-type-objective/question-type-objective.component.d.ts +17 -0
- package/lib/shared/shared-components/question-type-objective-sub/question-type-objective-sub.component.d.ts +16 -0
- package/lib/shared/shared-components/question-type-rating/question-type-rating.component.d.ts +14 -0
- package/lib/shared/shared-components/question-type-searchable-tag/question-type-searchable-tag.component.d.ts +35 -0
- package/lib/shared/shared-components/question-type-short/question-type-short.component.d.ts +13 -0
- package/lib/shared/shared-components/question-type-upload-file/question-type-upload-file.component.d.ts +14 -0
- package/lib/shared/shared-components/shared-components.module.d.ts +34 -0
- package/package.json +32 -0
- package/pcf-assessment-taker.d.ts +5 -0
- package/public-api.d.ts +20 -0
- package/src/lib/assets/images/assessment-placeholder-2.png +0 -0
- package/src/lib/assets/images/new_tooltip.jpg +0 -0
- package/src/lib/assets/images/tooltip.png +0 -0
- package/src/lib/assets/images/tooltipimg.jpg +0 -0
- package/src/lib/assets/theme/_theme.scss +1077 -0
- package/src/lib/assets/theme/font.css +36 -0
- package/src/lib/assets/theme/fonts/halant/Halant-Bold.ttf +0 -0
- package/src/lib/assets/theme/fonts/halant/Halant-Light.ttf +0 -0
- package/src/lib/assets/theme/fonts/halant/Halant-Medium.ttf +0 -0
- package/src/lib/assets/theme/fonts/halant/Halant-Regular.ttf +0 -0
- package/src/lib/assets/theme/fonts/halant/Halant-SemiBold.ttf +0 -0
- package/src/lib/assets/theme/fonts/poppins/Poppins-Bold.ttf +0 -0
- package/src/lib/assets/theme/fonts/poppins/Poppins-ExtraBold.ttf +0 -0
- package/src/lib/assets/theme/fonts/poppins/Poppins-ExtraLight.ttf +0 -0
- package/src/lib/assets/theme/fonts/poppins/Poppins-Light.ttf +0 -0
- package/src/lib/assets/theme/fonts/poppins/Poppins-Medium.ttf +0 -0
- package/src/lib/assets/theme/fonts/poppins/Poppins-Regular.ttf +0 -0
- package/src/lib/assets/theme/fonts/poppins/Poppins-SemiBold.ttf +0 -0
- package/src/lib/assets/theme/fonts/poppins/Poppins-Thin.ttf +0 -0
- package/src/lib/assets/theme/fonts/roboto/Roboto-Bold.ttf +0 -0
- package/src/lib/assets/theme/fonts/roboto/Roboto-Light.ttf +0 -0
- package/src/lib/assets/theme/fonts/roboto/Roboto-Medium.ttf +0 -0
- package/src/lib/assets/theme/fonts/roboto/Roboto-Regular.ttf +0 -0
- package/src/lib/assets/theme/fonts/roboto/Roboto-Thin.ttf +0 -0
- package/src/lib/assets/theme/variables.css +392 -0
|
@@ -0,0 +1,1481 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { InjectionToken, Injectable, Inject, Component, Input, NgModule, Pipe, EventEmitter, forwardRef, Output, ViewChild } from '@angular/core';
|
|
3
|
+
import * as i1 from '@angular/common/http';
|
|
4
|
+
import { HttpHeaders, HTTP_INTERCEPTORS, HttpClientModule } from '@angular/common/http';
|
|
5
|
+
import { BehaviorSubject, startWith as startWith$1, map as map$1 } from 'rxjs';
|
|
6
|
+
import * as i3 from '@angular/forms';
|
|
7
|
+
import { FormControl, NG_VALUE_ACCESSOR, ControlContainer, NgForm, Validators, FormGroup, FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
8
|
+
import * as i1$1 from '@angular/material/dialog';
|
|
9
|
+
import { MAT_DIALOG_DATA, MatDialogModule } from '@angular/material/dialog';
|
|
10
|
+
import * as i2 from '@angular/material/button';
|
|
11
|
+
import { MatButtonModule } from '@angular/material/button';
|
|
12
|
+
import * as i1$2 from '@angular/material/radio';
|
|
13
|
+
import { MatRadioModule } from '@angular/material/radio';
|
|
14
|
+
import * as i7 from '@angular/common';
|
|
15
|
+
import { CommonModule } from '@angular/common';
|
|
16
|
+
import * as i1$3 from '@angular/material/form-field';
|
|
17
|
+
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
18
|
+
import * as i2$1 from '@angular/material/input';
|
|
19
|
+
import { MatInputModule } from '@angular/material/input';
|
|
20
|
+
import * as i2$2 from '@angular/material/datepicker';
|
|
21
|
+
import { MatDatepickerModule } from '@angular/material/datepicker';
|
|
22
|
+
import * as i1$4 from '@angular/material/checkbox';
|
|
23
|
+
import { MatCheckboxModule } from '@angular/material/checkbox';
|
|
24
|
+
import * as i1$5 from '@angular/material/button-toggle';
|
|
25
|
+
import { MatButtonToggleModule } from '@angular/material/button-toggle';
|
|
26
|
+
import * as i1$6 from '@kolkov/angular-editor';
|
|
27
|
+
import { AngularEditorModule } from '@kolkov/angular-editor';
|
|
28
|
+
import { ENTER, COMMA, SEMICOLON } from '@angular/cdk/keycodes';
|
|
29
|
+
import { startWith, map } from 'rxjs/operators';
|
|
30
|
+
import * as i3$1 from '@angular/material/chips';
|
|
31
|
+
import { MatChipsModule } from '@angular/material/chips';
|
|
32
|
+
import * as i4 from '@angular/material/icon';
|
|
33
|
+
import { MatIconModule } from '@angular/material/icon';
|
|
34
|
+
import * as i5 from '@angular/material/autocomplete';
|
|
35
|
+
import { MatAutocompleteModule } from '@angular/material/autocomplete';
|
|
36
|
+
import * as i6 from '@angular/material/core';
|
|
37
|
+
import { MatNativeDateModule } from '@angular/material/core';
|
|
38
|
+
import * as i18 from '@angular/material/tooltip';
|
|
39
|
+
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
40
|
+
|
|
41
|
+
// configuration.ts
|
|
42
|
+
const LIBRARY_CONFIG = new InjectionToken('LIBRARY_CONFIG');
|
|
43
|
+
|
|
44
|
+
class AssessmentTakerService {
|
|
45
|
+
constructor(config, http) {
|
|
46
|
+
this.config = config;
|
|
47
|
+
this.http = http;
|
|
48
|
+
this.httpOptions = {
|
|
49
|
+
headers: new HttpHeaders({ 'Accept': 'application/json', 'Content-Type': 'application/json' })
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
getConfig() {
|
|
53
|
+
return this.config;
|
|
54
|
+
}
|
|
55
|
+
submitAssessmentQuestionPapers(assessmentPayload) {
|
|
56
|
+
var _a, _b;
|
|
57
|
+
const url = ((_b = (_a = this.config) === null || _a === void 0 ? void 0 : _a.environment) === null || _b === void 0 ? void 0 : _b.baseURL) + 'gateway/commons-assessment-service/api/v2/assessmentInstanceAssesses';
|
|
58
|
+
return this.http.post(url, JSON.stringify(assessmentPayload), this.httpOptions);
|
|
59
|
+
}
|
|
60
|
+
uploadAssessment(fileUploadPayload) {
|
|
61
|
+
var _a, _b;
|
|
62
|
+
const url = ((_b = (_a = this.config) === null || _a === void 0 ? void 0 : _a.environment) === null || _b === void 0 ? void 0 : _b.baseURL) + 'gateway/commons-assessment-service/api/v1/assessments/upload-assessment';
|
|
63
|
+
return this.http.post(url, fileUploadPayload, this.httpOptions);
|
|
64
|
+
}
|
|
65
|
+
getAssessmentQuestionPapers(instanceId) {
|
|
66
|
+
var _a, _b;
|
|
67
|
+
return this.http.get(((_b = (_a = this.config) === null || _a === void 0 ? void 0 : _a.environment) === null || _b === void 0 ? void 0 : _b.baseURL) + 'gateway/commons-assessment-service/api/v2/assessmentQuestionPapers?instanceId=' + instanceId);
|
|
68
|
+
}
|
|
69
|
+
getAssessmentQuestions(instanceId, questionIds) {
|
|
70
|
+
var _a, _b;
|
|
71
|
+
return this.http.get(((_b = (_a = this.config) === null || _a === void 0 ? void 0 : _a.environment) === null || _b === void 0 ? void 0 : _b.baseURL) + 'gateway/commons-assessment-service/api/v3/questions/questions/instance?instanceId=' + instanceId + '&questionIds=' + questionIds);
|
|
72
|
+
}
|
|
73
|
+
getChildQuestionsWithIdList(instanceId, questionIds) {
|
|
74
|
+
var _a, _b;
|
|
75
|
+
return this.http.get(((_b = (_a = this.config) === null || _a === void 0 ? void 0 : _a.environment) === null || _b === void 0 ? void 0 : _b.baseURL) + 'gateway/commons-assessment-service/api/v3/questions/childquestion/instance?instanceId=' + instanceId + '&questionIds=' + questionIds);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
AssessmentTakerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AssessmentTakerService, deps: [{ token: LIBRARY_CONFIG }, { token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
79
|
+
AssessmentTakerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AssessmentTakerService, providedIn: 'root' });
|
|
80
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AssessmentTakerService, decorators: [{
|
|
81
|
+
type: Injectable,
|
|
82
|
+
args: [{
|
|
83
|
+
providedIn: 'root'
|
|
84
|
+
}]
|
|
85
|
+
}], ctorParameters: function () {
|
|
86
|
+
return [{ type: undefined, decorators: [{
|
|
87
|
+
type: Inject,
|
|
88
|
+
args: [LIBRARY_CONFIG]
|
|
89
|
+
}] }, { type: i1.HttpClient }];
|
|
90
|
+
} });
|
|
91
|
+
|
|
92
|
+
class AssessmentIdService {
|
|
93
|
+
constructor() {
|
|
94
|
+
this.assessmentIdSource = new BehaviorSubject(null);
|
|
95
|
+
this.currentAssessmentId = this.assessmentIdSource.asObservable();
|
|
96
|
+
}
|
|
97
|
+
changeAssessmentId(id) {
|
|
98
|
+
this.assessmentIdSource.next(id);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
AssessmentIdService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AssessmentIdService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
102
|
+
AssessmentIdService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AssessmentIdService, providedIn: 'root' });
|
|
103
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AssessmentIdService, decorators: [{
|
|
104
|
+
type: Injectable,
|
|
105
|
+
args: [{
|
|
106
|
+
providedIn: 'root'
|
|
107
|
+
}]
|
|
108
|
+
}], ctorParameters: function () { return []; } });
|
|
109
|
+
|
|
110
|
+
class AssessmentTakerComponent {
|
|
111
|
+
constructor(service, assessmentIdService) {
|
|
112
|
+
this.service = service;
|
|
113
|
+
this.assessmentIdService = assessmentIdService;
|
|
114
|
+
}
|
|
115
|
+
ngOnInit() {
|
|
116
|
+
const config = this.service.getConfig();
|
|
117
|
+
this.assessmentIdService.changeAssessmentId(this.assessmentId);
|
|
118
|
+
console.log('Library Environment:', config, this.assessmentId);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
AssessmentTakerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AssessmentTakerComponent, deps: [{ token: AssessmentTakerService }, { token: AssessmentIdService }], target: i0.ɵɵFactoryTarget.Component });
|
|
122
|
+
AssessmentTakerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: AssessmentTakerComponent, selector: "lib-assessment-taker", inputs: { assessmentId: "assessmentId" }, ngImport: i0, template: "\r\n<!-- <router-outlet></router-outlet> -->", styles: ["@import\"/assets/theme/_theme.scss\";@import\"/assets/theme/font.css\";@import\"/assets/theme/variables.css\";\n"] });
|
|
123
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AssessmentTakerComponent, decorators: [{
|
|
124
|
+
type: Component,
|
|
125
|
+
args: [{ selector: 'lib-assessment-taker', template: "\r\n<!-- <router-outlet></router-outlet> -->", styles: ["@import\"/assets/theme/_theme.scss\";@import\"/assets/theme/font.css\";@import\"/assets/theme/variables.css\";\n"] }]
|
|
126
|
+
}], ctorParameters: function () { return [{ type: AssessmentTakerService }, { type: AssessmentIdService }]; }, propDecorators: { assessmentId: [{
|
|
127
|
+
type: Input
|
|
128
|
+
}] } });
|
|
129
|
+
|
|
130
|
+
class LibInterceptor {
|
|
131
|
+
constructor(config) {
|
|
132
|
+
this.config = config;
|
|
133
|
+
}
|
|
134
|
+
intercept(req, next) {
|
|
135
|
+
var _a, _b;
|
|
136
|
+
if ((_a = req === null || req === void 0 ? void 0 : req.url) === null || _a === void 0 ? void 0 : _a.includes('dev.platformcommons.org/gateway/commons-assessment-service')) {
|
|
137
|
+
let headers = req.headers;
|
|
138
|
+
headers = headers.set('X-SESSIONID', (_b = this.config) === null || _b === void 0 ? void 0 : _b.token);
|
|
139
|
+
const modifiedReq = req.clone({ headers });
|
|
140
|
+
return next.handle(modifiedReq);
|
|
141
|
+
}
|
|
142
|
+
return next.handle(req);
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
LibInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: LibInterceptor, deps: [{ token: LIBRARY_CONFIG }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
146
|
+
LibInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: LibInterceptor });
|
|
147
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: LibInterceptor, decorators: [{
|
|
148
|
+
type: Injectable
|
|
149
|
+
}], ctorParameters: function () {
|
|
150
|
+
return [{ type: undefined, decorators: [{
|
|
151
|
+
type: Inject,
|
|
152
|
+
args: [LIBRARY_CONFIG]
|
|
153
|
+
}] }];
|
|
154
|
+
} });
|
|
155
|
+
|
|
156
|
+
class AssessmentTakerModule {
|
|
157
|
+
static forRoot(config) {
|
|
158
|
+
return {
|
|
159
|
+
ngModule: AssessmentTakerModule,
|
|
160
|
+
providers: [
|
|
161
|
+
{
|
|
162
|
+
provide: LIBRARY_CONFIG,
|
|
163
|
+
useValue: config,
|
|
164
|
+
},
|
|
165
|
+
{ provide: HTTP_INTERCEPTORS, useClass: LibInterceptor, multi: true }
|
|
166
|
+
],
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
AssessmentTakerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AssessmentTakerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
171
|
+
AssessmentTakerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AssessmentTakerModule, declarations: [AssessmentTakerComponent], imports: [HttpClientModule], exports: [AssessmentTakerComponent] });
|
|
172
|
+
AssessmentTakerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AssessmentTakerModule, providers: [AssessmentTakerService], imports: [[
|
|
173
|
+
HttpClientModule,
|
|
174
|
+
// AssessmentTakerRoutingModule
|
|
175
|
+
]] });
|
|
176
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AssessmentTakerModule, decorators: [{
|
|
177
|
+
type: NgModule,
|
|
178
|
+
args: [{
|
|
179
|
+
declarations: [
|
|
180
|
+
AssessmentTakerComponent
|
|
181
|
+
],
|
|
182
|
+
imports: [
|
|
183
|
+
HttpClientModule,
|
|
184
|
+
// AssessmentTakerRoutingModule
|
|
185
|
+
],
|
|
186
|
+
exports: [
|
|
187
|
+
AssessmentTakerComponent
|
|
188
|
+
],
|
|
189
|
+
providers: [AssessmentTakerService],
|
|
190
|
+
}]
|
|
191
|
+
}] });
|
|
192
|
+
|
|
193
|
+
class QuestSuccessComponent {
|
|
194
|
+
constructor(data, dialogRef) {
|
|
195
|
+
this.data = data;
|
|
196
|
+
this.dialogRef = dialogRef;
|
|
197
|
+
}
|
|
198
|
+
ngOnInit() {
|
|
199
|
+
}
|
|
200
|
+
onClose() {
|
|
201
|
+
this.dialogRef.close({ event: 'close' });
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
QuestSuccessComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: QuestSuccessComponent, deps: [{ token: MAT_DIALOG_DATA }, { token: i1$1.MatDialogRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
205
|
+
QuestSuccessComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: QuestSuccessComponent, selector: "lib-quest-success", ngImport: i0, template: "\r\n<h2 mat-dialog-title>Thank You!</h2>\r\n<div mat-dialog-content> Your submission has been received.</div>\r\n<div mat-dialog-actions>\r\n <button mat-button (click)=\"onClose()\">Close</button>\r\n</div>\r\n", styles: [""], components: [{ type: i2.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], directives: [{ type: i1$1.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { type: i1$1.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { type: i1$1.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]" }] });
|
|
206
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: QuestSuccessComponent, decorators: [{
|
|
207
|
+
type: Component,
|
|
208
|
+
args: [{ selector: 'lib-quest-success', template: "\r\n<h2 mat-dialog-title>Thank You!</h2>\r\n<div mat-dialog-content> Your submission has been received.</div>\r\n<div mat-dialog-actions>\r\n <button mat-button (click)=\"onClose()\">Close</button>\r\n</div>\r\n", styles: [""] }]
|
|
209
|
+
}], ctorParameters: function () {
|
|
210
|
+
return [{ type: undefined, decorators: [{
|
|
211
|
+
type: Inject,
|
|
212
|
+
args: [MAT_DIALOG_DATA]
|
|
213
|
+
}] }, { type: i1$1.MatDialogRef }];
|
|
214
|
+
} });
|
|
215
|
+
|
|
216
|
+
class OrderByPipe {
|
|
217
|
+
transform(value, order = "asc") {
|
|
218
|
+
console.log(value);
|
|
219
|
+
return value.sort((a, b) => {
|
|
220
|
+
if (order === "desc") {
|
|
221
|
+
return b.orderNo - a.orderNo;
|
|
222
|
+
}
|
|
223
|
+
return a.orderNo - b.orderNo;
|
|
224
|
+
});
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
OrderByPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: OrderByPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
228
|
+
OrderByPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: OrderByPipe, name: "orderBy" });
|
|
229
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: OrderByPipe, decorators: [{
|
|
230
|
+
type: Pipe,
|
|
231
|
+
args: [{
|
|
232
|
+
name: 'orderBy'
|
|
233
|
+
}]
|
|
234
|
+
}] });
|
|
235
|
+
|
|
236
|
+
class QuestionTypeObjectiveComponent {
|
|
237
|
+
constructor() {
|
|
238
|
+
this.viewChild = new EventEmitter();
|
|
239
|
+
this.formControl = new FormControl();
|
|
240
|
+
}
|
|
241
|
+
writeValue(value) {
|
|
242
|
+
this.formControl.setValue(value);
|
|
243
|
+
}
|
|
244
|
+
registerOnChange(fn) {
|
|
245
|
+
this.formControl.valueChanges.subscribe((val) => fn(val));
|
|
246
|
+
}
|
|
247
|
+
registerOnTouched(fn) {
|
|
248
|
+
this.formControl.valueChanges.subscribe((val) => fn(val));
|
|
249
|
+
}
|
|
250
|
+
onChildDataChanged(data) {
|
|
251
|
+
this.viewChild.emit(data);
|
|
252
|
+
}
|
|
253
|
+
optionDetection(obj) {
|
|
254
|
+
var _a;
|
|
255
|
+
console.log("the object is " + JSON.stringify(obj));
|
|
256
|
+
let data = {
|
|
257
|
+
question: this.optionsList,
|
|
258
|
+
list: obj['childQuestionList']
|
|
259
|
+
};
|
|
260
|
+
console.log("the childList is " + JSON.stringify(data));
|
|
261
|
+
((_a = obj['childQuestionList']) === null || _a === void 0 ? void 0 : _a.length) ? this.viewChild.emit(data) : null;
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
QuestionTypeObjectiveComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: QuestionTypeObjectiveComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
265
|
+
QuestionTypeObjectiveComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: QuestionTypeObjectiveComponent, selector: "lib-question-type-objective", inputs: { required: "required", optionsList: "optionsList" }, outputs: { viewChild: "viewChild" }, providers: [
|
|
266
|
+
{
|
|
267
|
+
provide: NG_VALUE_ACCESSOR,
|
|
268
|
+
useExisting: forwardRef(() => QuestionTypeObjectiveComponent),
|
|
269
|
+
multi: true,
|
|
270
|
+
},
|
|
271
|
+
], ngImport: i0, template: "<!-- <div class=\"question-parent-container\">\r\n <div *ngFor=\"let question of assessmentQuestionsList; let i=index\">\r\n <div class=\"question-num-text me-4\">\r\n <p class=\"assessment-text-grey-nine assessment-text-semibold-18\">\r\n {{i+1}}. {{question.questionText[0]?.text}}\r\n <span class=\"mandatory\" *ngIf=\"question['isMandatory']\">*</span>\r\n </p>\r\n </div> -->\r\n <!-- <span class=\"question-sub-text opacity-7\"\r\n *ngIf=\"question.questionSubText[0].text!==''\" [innerHTML]=\"question.questionSubText[0].text\">\r\n </span> -->\r\n <!-- <div class=\"answer-input\" *ngIf=\"question.questionType.code === 'QUESTION_TYPE.OBJECTIVE'\">\r\n <div class=\"radio-group\">\r\n <label *ngFor=\"let option of question.defaultOptionsList\">\r\n <input\r\n type=\"radio\"\r\n [name]=\"question.id\" \r\n [value]=\"option.options.id\"\r\n />\r\n <span class=\"assessment-text-regular-18 mt-5\">{{ option.options.optionName[0]?.text }}</span>\r\n </label>\r\n </div>\r\n </div>\r\n <div class=\"answer-input\" *ngIf=\"question?.questionType?.code === 'QUESTION_TYPE.SUBJECTIVE_SHORT'\">\r\n <input *ngIf=\"question?.questionType?.code === 'QUESTION_TYPE.SUBJECTIVE_SHORT'\" \r\n [id]=\"'question_' + i\"\r\n rows=\"4\" class=\"input-tag\" placeholder=\"Enter your answer here\"/>\r\n </div>\r\n <div class=\"answer-input\" *ngIf=\"question.questionType.code === 'QUESTION_TYPE.DATE'\">\r\n <div class=\"form-field content dpicker\">\r\n <label for=\"datePickerInput\" class=\"sr-only\">Select Date</label>\r\n <input \r\n type=\"date\" \r\n id=\"datePickerInput\"\r\n class=\"answer-box-border p-3 dpickerInput\"\r\n [placeholder]=\"'DATE-FORMAT'\" \r\n />\r\n </div> \r\n </div>\r\n <div class=\"divider\"></div>\r\n </div>\r\n</div> -->\r\n\r\n<!-- <div class=\"radio-group\">\r\n <label *ngFor=\"let option of optionsList.defaultOptionsList\">\r\n <input\r\n type=\"radio\" \r\n [value]=\"option.options.id\"\r\n [name]=\"optionsList.id\"\r\n />\r\n <span class=\"assessment-text-regular-18 mt-5\">{{ option.options.optionName[0]?.text }}</span>\r\n </label>\r\n</div> -->\r\n<mat-radio-group\r\n aria-labelledby=\"example-radio-group-label\"\r\n [formControl]=\"formControl\" class=\"example-radio-group\">\r\n <ng-container *ngFor=\"let option of optionsList.defaultOptionsList | orderBy\">\r\n <mat-radio-button class=\"example-radio-button\" (change)=\"optionDetection(option)\"\r\n (viewChild)=\"onChildDataChanged($event)\" [value]=\"option.options\" \r\n [required]=\"required\">{{ option.options.optionName[0]?.text }}</mat-radio-button>\r\n </ng-container>\r\n</mat-radio-group>\r\n", styles: [""], components: [{ type: i1$2.MatRadioButton, selector: "mat-radio-button", inputs: ["disableRipple", "tabIndex"], exportAs: ["matRadioButton"] }], directives: [{ type: i1$2.MatRadioGroup, selector: "mat-radio-group", exportAs: ["matRadioGroup"] }, { type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i3.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i7.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "orderBy": OrderByPipe } });
|
|
272
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: QuestionTypeObjectiveComponent, decorators: [{
|
|
273
|
+
type: Component,
|
|
274
|
+
args: [{ selector: 'lib-question-type-objective', providers: [
|
|
275
|
+
{
|
|
276
|
+
provide: NG_VALUE_ACCESSOR,
|
|
277
|
+
useExisting: forwardRef(() => QuestionTypeObjectiveComponent),
|
|
278
|
+
multi: true,
|
|
279
|
+
},
|
|
280
|
+
], template: "<!-- <div class=\"question-parent-container\">\r\n <div *ngFor=\"let question of assessmentQuestionsList; let i=index\">\r\n <div class=\"question-num-text me-4\">\r\n <p class=\"assessment-text-grey-nine assessment-text-semibold-18\">\r\n {{i+1}}. {{question.questionText[0]?.text}}\r\n <span class=\"mandatory\" *ngIf=\"question['isMandatory']\">*</span>\r\n </p>\r\n </div> -->\r\n <!-- <span class=\"question-sub-text opacity-7\"\r\n *ngIf=\"question.questionSubText[0].text!==''\" [innerHTML]=\"question.questionSubText[0].text\">\r\n </span> -->\r\n <!-- <div class=\"answer-input\" *ngIf=\"question.questionType.code === 'QUESTION_TYPE.OBJECTIVE'\">\r\n <div class=\"radio-group\">\r\n <label *ngFor=\"let option of question.defaultOptionsList\">\r\n <input\r\n type=\"radio\"\r\n [name]=\"question.id\" \r\n [value]=\"option.options.id\"\r\n />\r\n <span class=\"assessment-text-regular-18 mt-5\">{{ option.options.optionName[0]?.text }}</span>\r\n </label>\r\n </div>\r\n </div>\r\n <div class=\"answer-input\" *ngIf=\"question?.questionType?.code === 'QUESTION_TYPE.SUBJECTIVE_SHORT'\">\r\n <input *ngIf=\"question?.questionType?.code === 'QUESTION_TYPE.SUBJECTIVE_SHORT'\" \r\n [id]=\"'question_' + i\"\r\n rows=\"4\" class=\"input-tag\" placeholder=\"Enter your answer here\"/>\r\n </div>\r\n <div class=\"answer-input\" *ngIf=\"question.questionType.code === 'QUESTION_TYPE.DATE'\">\r\n <div class=\"form-field content dpicker\">\r\n <label for=\"datePickerInput\" class=\"sr-only\">Select Date</label>\r\n <input \r\n type=\"date\" \r\n id=\"datePickerInput\"\r\n class=\"answer-box-border p-3 dpickerInput\"\r\n [placeholder]=\"'DATE-FORMAT'\" \r\n />\r\n </div> \r\n </div>\r\n <div class=\"divider\"></div>\r\n </div>\r\n</div> -->\r\n\r\n<!-- <div class=\"radio-group\">\r\n <label *ngFor=\"let option of optionsList.defaultOptionsList\">\r\n <input\r\n type=\"radio\" \r\n [value]=\"option.options.id\"\r\n [name]=\"optionsList.id\"\r\n />\r\n <span class=\"assessment-text-regular-18 mt-5\">{{ option.options.optionName[0]?.text }}</span>\r\n </label>\r\n</div> -->\r\n<mat-radio-group\r\n aria-labelledby=\"example-radio-group-label\"\r\n [formControl]=\"formControl\" class=\"example-radio-group\">\r\n <ng-container *ngFor=\"let option of optionsList.defaultOptionsList | orderBy\">\r\n <mat-radio-button class=\"example-radio-button\" (change)=\"optionDetection(option)\"\r\n (viewChild)=\"onChildDataChanged($event)\" [value]=\"option.options\" \r\n [required]=\"required\">{{ option.options.optionName[0]?.text }}</mat-radio-button>\r\n </ng-container>\r\n</mat-radio-group>\r\n", styles: [""] }]
|
|
281
|
+
}], ctorParameters: function () { return []; }, propDecorators: { required: [{
|
|
282
|
+
type: Input
|
|
283
|
+
}], optionsList: [{
|
|
284
|
+
type: Input
|
|
285
|
+
}], viewChild: [{
|
|
286
|
+
type: Output
|
|
287
|
+
}] } });
|
|
288
|
+
|
|
289
|
+
class QuestionTypeShortComponent {
|
|
290
|
+
constructor() {
|
|
291
|
+
this.formControl = new FormControl();
|
|
292
|
+
}
|
|
293
|
+
writeValue(value) {
|
|
294
|
+
this.formControl.setValue(value);
|
|
295
|
+
}
|
|
296
|
+
registerOnChange(fn) {
|
|
297
|
+
this.formControl.valueChanges.subscribe((val) => fn(val));
|
|
298
|
+
}
|
|
299
|
+
registerOnTouched(fn) {
|
|
300
|
+
this.formControl.valueChanges.subscribe((val) => fn(val));
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
QuestionTypeShortComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: QuestionTypeShortComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
304
|
+
QuestionTypeShortComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: QuestionTypeShortComponent, selector: "lib-question-type-short", inputs: { optionsList: "optionsList", required: "required" }, providers: [
|
|
305
|
+
{
|
|
306
|
+
provide: NG_VALUE_ACCESSOR,
|
|
307
|
+
useExisting: forwardRef(() => QuestionTypeShortComponent),
|
|
308
|
+
multi: true,
|
|
309
|
+
},
|
|
310
|
+
], ngImport: i0, template: " <!-- <input \r\n [id]=\"'question_'\"\r\n rows=\"4\" class=\"input-tag\" placeholder=\"Enter your answer here!\" tooltip=\"FDFD FDS D AF \" title=\"Enter your answer here\" matTooltip='Permissions \"Disk\"'/> -->\r\n <mat-form-field class=\"example-full-width\">\r\n <input matInput [id]=\"optionsList.id\" [formControl]=\"formControl\" class=\"form-control\" placeholder=\"Enter your answer here\" [required]=\"required\">\r\n <!-- <p *ngIf=\"f.shortAns.errors && (f.shortAns.touched || f.shortAns.dirty)\" class=\"text-danger\">\r\n {{f.username.errors | json}}\r\n </p> -->\r\n <!-- <mat-hint style=\"color: red;\" *ngIf=\"!parentForm.controls['shortAns'].valid\">\r\n Short answer is required\r\n </mat-hint> -->\r\n <!-- <div *ngIf=\"parentForm.controls['shortAns'].enabled === true && !parentForm.controls['shortAns'].valid\" class=\"validation-message\">\r\n not valid\r\n </div> -->\r\n </mat-form-field>\r\n", styles: [".input-tag{font-family:assessment-Medium;font-size:14px;width:75%;border-left:none;border-right:none;border-top:none;outline:none;padding:.75rem}.input-tag:focus{border-color:#007bff}\n"], components: [{ type: i1$3.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }], directives: [{ type: i2$1.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i3.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i3.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }], viewProviders: [{ provide: ControlContainer, useExisting: NgForm }] });
|
|
311
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: QuestionTypeShortComponent, decorators: [{
|
|
312
|
+
type: Component,
|
|
313
|
+
args: [{ selector: 'lib-question-type-short', viewProviders: [{ provide: ControlContainer, useExisting: NgForm }], providers: [
|
|
314
|
+
{
|
|
315
|
+
provide: NG_VALUE_ACCESSOR,
|
|
316
|
+
useExisting: forwardRef(() => QuestionTypeShortComponent),
|
|
317
|
+
multi: true,
|
|
318
|
+
},
|
|
319
|
+
], template: " <!-- <input \r\n [id]=\"'question_'\"\r\n rows=\"4\" class=\"input-tag\" placeholder=\"Enter your answer here!\" tooltip=\"FDFD FDS D AF \" title=\"Enter your answer here\" matTooltip='Permissions \"Disk\"'/> -->\r\n <mat-form-field class=\"example-full-width\">\r\n <input matInput [id]=\"optionsList.id\" [formControl]=\"formControl\" class=\"form-control\" placeholder=\"Enter your answer here\" [required]=\"required\">\r\n <!-- <p *ngIf=\"f.shortAns.errors && (f.shortAns.touched || f.shortAns.dirty)\" class=\"text-danger\">\r\n {{f.username.errors | json}}\r\n </p> -->\r\n <!-- <mat-hint style=\"color: red;\" *ngIf=\"!parentForm.controls['shortAns'].valid\">\r\n Short answer is required\r\n </mat-hint> -->\r\n <!-- <div *ngIf=\"parentForm.controls['shortAns'].enabled === true && !parentForm.controls['shortAns'].valid\" class=\"validation-message\">\r\n not valid\r\n </div> -->\r\n </mat-form-field>\r\n", styles: [".input-tag{font-family:assessment-Medium;font-size:14px;width:75%;border-left:none;border-right:none;border-top:none;outline:none;padding:.75rem}.input-tag:focus{border-color:#007bff}\n"] }]
|
|
320
|
+
}], ctorParameters: function () { return []; }, propDecorators: { optionsList: [{
|
|
321
|
+
type: Input
|
|
322
|
+
}], required: [{
|
|
323
|
+
type: Input
|
|
324
|
+
}] } });
|
|
325
|
+
|
|
326
|
+
class QuestionTypeLongComponent {
|
|
327
|
+
constructor() {
|
|
328
|
+
this.formControl = new FormControl();
|
|
329
|
+
}
|
|
330
|
+
writeValue(value) {
|
|
331
|
+
this.formControl.setValue(value);
|
|
332
|
+
}
|
|
333
|
+
registerOnChange(fn) {
|
|
334
|
+
this.formControl.valueChanges.subscribe((val) => fn(val));
|
|
335
|
+
}
|
|
336
|
+
registerOnTouched(fn) {
|
|
337
|
+
this.formControl.valueChanges.subscribe((val) => fn(val));
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
QuestionTypeLongComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: QuestionTypeLongComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
341
|
+
QuestionTypeLongComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: QuestionTypeLongComponent, selector: "lib-question-type-long", inputs: { required: "required", optionsList: "optionsList", fieldAttributes: "fieldAttributes", config: "config" }, providers: [
|
|
342
|
+
{
|
|
343
|
+
provide: NG_VALUE_ACCESSOR,
|
|
344
|
+
useExisting: forwardRef(() => QuestionTypeLongComponent),
|
|
345
|
+
multi: true,
|
|
346
|
+
},
|
|
347
|
+
], ngImport: i0, template: "<mat-form-field class=\"example-full-width\">\r\n <textarea matInput [formControl]=\"formControl\" class=\"form-check-input\" [name]=\"fieldAttributes.id\" placeholder=\"Enter your answer here\" [required]=\"required\"></textarea>\r\n </mat-form-field>\r\n\r\n <!-- <angular-editor [config]=\"config\" [formControl]=\"formControl\">\r\n <ng-template #customButtons let-executeCommandFn=\"executeCommandFn\">\r\n <ae-toolbar-set>\r\n <ae-button iconClass=\"fa fa-html5\" title=\"Angular editor logo\" (buttonClick)=\"executeCommandFn('insertHtml', angularEditorLogo)\"></ae-button>\r\n </ae-toolbar-set>\r\n </ng-template>\r\n</angular-editor> -->", styles: [""], components: [{ type: i1$3.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }], directives: [{ type: i2$1.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i3.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i3.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }] });
|
|
348
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: QuestionTypeLongComponent, decorators: [{
|
|
349
|
+
type: Component,
|
|
350
|
+
args: [{ selector: 'lib-question-type-long', providers: [
|
|
351
|
+
{
|
|
352
|
+
provide: NG_VALUE_ACCESSOR,
|
|
353
|
+
useExisting: forwardRef(() => QuestionTypeLongComponent),
|
|
354
|
+
multi: true,
|
|
355
|
+
},
|
|
356
|
+
], template: "<mat-form-field class=\"example-full-width\">\r\n <textarea matInput [formControl]=\"formControl\" class=\"form-check-input\" [name]=\"fieldAttributes.id\" placeholder=\"Enter your answer here\" [required]=\"required\"></textarea>\r\n </mat-form-field>\r\n\r\n <!-- <angular-editor [config]=\"config\" [formControl]=\"formControl\">\r\n <ng-template #customButtons let-executeCommandFn=\"executeCommandFn\">\r\n <ae-toolbar-set>\r\n <ae-button iconClass=\"fa fa-html5\" title=\"Angular editor logo\" (buttonClick)=\"executeCommandFn('insertHtml', angularEditorLogo)\"></ae-button>\r\n </ae-toolbar-set>\r\n </ng-template>\r\n</angular-editor> -->", styles: [""] }]
|
|
357
|
+
}], ctorParameters: function () { return []; }, propDecorators: { required: [{
|
|
358
|
+
type: Input
|
|
359
|
+
}], optionsList: [{
|
|
360
|
+
type: Input
|
|
361
|
+
}], fieldAttributes: [{
|
|
362
|
+
type: Input
|
|
363
|
+
}], config: [{
|
|
364
|
+
type: Input
|
|
365
|
+
}] } });
|
|
366
|
+
|
|
367
|
+
class QuestionTypeDateComponent {
|
|
368
|
+
constructor() {
|
|
369
|
+
this.formControl = new FormControl();
|
|
370
|
+
}
|
|
371
|
+
writeValue(value) {
|
|
372
|
+
this.formControl.setValue(value);
|
|
373
|
+
}
|
|
374
|
+
registerOnChange(fn) {
|
|
375
|
+
this.formControl.valueChanges.subscribe((val) => fn(val));
|
|
376
|
+
}
|
|
377
|
+
registerOnTouched(fn) {
|
|
378
|
+
this.formControl.valueChanges.subscribe((val) => fn(val));
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
QuestionTypeDateComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: QuestionTypeDateComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
382
|
+
QuestionTypeDateComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: QuestionTypeDateComponent, selector: "lib-question-type-date", inputs: { required: "required" }, providers: [
|
|
383
|
+
{
|
|
384
|
+
provide: NG_VALUE_ACCESSOR,
|
|
385
|
+
useExisting: forwardRef(() => QuestionTypeDateComponent),
|
|
386
|
+
multi: true,
|
|
387
|
+
},
|
|
388
|
+
], ngImport: i0, template: "<mat-form-field class=\"datesty\">\r\n <mat-label>Choose a date</mat-label>\r\n <input matInput [formControl]=\"formControl\" class=\"form-check-input\" [matDatepicker]=\"picker\" readonly [required]=\"required\">\r\n <mat-hint>MM/DD/YYYY</mat-hint>\r\n <mat-datepicker-toggle matIconSuffix [for]=\"picker\"></mat-datepicker-toggle>\r\n <mat-datepicker #picker></mat-datepicker>\r\n </mat-form-field>", styles: [""], components: [{ type: i1$3.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }, { type: i2$2.MatDatepickerToggle, selector: "mat-datepicker-toggle", inputs: ["for", "tabIndex", "aria-label", "disabled", "disableRipple"], exportAs: ["matDatepickerToggle"] }, { type: i2$2.MatDatepicker, selector: "mat-datepicker", exportAs: ["matDatepicker"] }], directives: [{ type: i1$3.MatLabel, selector: "mat-label" }, { type: i2$1.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i2$2.MatDatepickerInput, selector: "input[matDatepicker]", inputs: ["matDatepicker", "min", "max", "matDatepickerFilter"], exportAs: ["matDatepickerInput"] }, { type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i3.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i3.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { type: i1$3.MatHint, selector: "mat-hint", inputs: ["align", "id"] }] });
|
|
389
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: QuestionTypeDateComponent, decorators: [{
|
|
390
|
+
type: Component,
|
|
391
|
+
args: [{ selector: 'lib-question-type-date', providers: [
|
|
392
|
+
{
|
|
393
|
+
provide: NG_VALUE_ACCESSOR,
|
|
394
|
+
useExisting: forwardRef(() => QuestionTypeDateComponent),
|
|
395
|
+
multi: true,
|
|
396
|
+
},
|
|
397
|
+
], template: "<mat-form-field class=\"datesty\">\r\n <mat-label>Choose a date</mat-label>\r\n <input matInput [formControl]=\"formControl\" class=\"form-check-input\" [matDatepicker]=\"picker\" readonly [required]=\"required\">\r\n <mat-hint>MM/DD/YYYY</mat-hint>\r\n <mat-datepicker-toggle matIconSuffix [for]=\"picker\"></mat-datepicker-toggle>\r\n <mat-datepicker #picker></mat-datepicker>\r\n </mat-form-field>", styles: [""] }]
|
|
398
|
+
}], ctorParameters: function () { return []; }, propDecorators: { required: [{
|
|
399
|
+
type: Input
|
|
400
|
+
}] } });
|
|
401
|
+
|
|
402
|
+
class QuestionTypeNumberComponent {
|
|
403
|
+
constructor() {
|
|
404
|
+
this.formControl = new FormControl();
|
|
405
|
+
}
|
|
406
|
+
writeValue(value) {
|
|
407
|
+
this.formControl.setValue(value);
|
|
408
|
+
}
|
|
409
|
+
registerOnChange(fn) {
|
|
410
|
+
this.formControl.valueChanges.subscribe((val) => fn(val));
|
|
411
|
+
}
|
|
412
|
+
registerOnTouched(fn) {
|
|
413
|
+
this.formControl.valueChanges.subscribe((val) => fn(val));
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
QuestionTypeNumberComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: QuestionTypeNumberComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
417
|
+
QuestionTypeNumberComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: QuestionTypeNumberComponent, selector: "lib-question-type-number", inputs: { required: "required", optionsList: "optionsList" }, providers: [
|
|
418
|
+
{
|
|
419
|
+
provide: NG_VALUE_ACCESSOR,
|
|
420
|
+
useExisting: forwardRef(() => QuestionTypeNumberComponent),
|
|
421
|
+
multi: true,
|
|
422
|
+
},
|
|
423
|
+
], ngImport: i0, template: "<mat-form-field class=\"example-full-width\">\r\n <input matInput type=\"number\" [formControl]=\"formControl\" class=\"form-check-input\" placeholder=\"Enter number\" value=\"\" min=\"1\" oninput=\"validity.valid||(value='');\" [required]=\"required\">\r\n </mat-form-field>\r\n", styles: [""], components: [{ type: i1$3.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }], directives: [{ type: i2$1.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { type: i3.MinValidator, selector: "input[type=number][min][formControlName],input[type=number][min][formControl],input[type=number][min][ngModel]", inputs: ["min"] }, { type: i3.NumberValueAccessor, selector: "input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]" }, { type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i3.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i3.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }] });
|
|
424
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: QuestionTypeNumberComponent, decorators: [{
|
|
425
|
+
type: Component,
|
|
426
|
+
args: [{ selector: 'lib-question-type-number', providers: [
|
|
427
|
+
{
|
|
428
|
+
provide: NG_VALUE_ACCESSOR,
|
|
429
|
+
useExisting: forwardRef(() => QuestionTypeNumberComponent),
|
|
430
|
+
multi: true,
|
|
431
|
+
},
|
|
432
|
+
], template: "<mat-form-field class=\"example-full-width\">\r\n <input matInput type=\"number\" [formControl]=\"formControl\" class=\"form-check-input\" placeholder=\"Enter number\" value=\"\" min=\"1\" oninput=\"validity.valid||(value='');\" [required]=\"required\">\r\n </mat-form-field>\r\n", styles: [""] }]
|
|
433
|
+
}], ctorParameters: function () { return []; }, propDecorators: { required: [{
|
|
434
|
+
type: Input
|
|
435
|
+
}], optionsList: [{
|
|
436
|
+
type: Input
|
|
437
|
+
}] } });
|
|
438
|
+
|
|
439
|
+
class QuestionTypeUploadFileComponent {
|
|
440
|
+
constructor() {
|
|
441
|
+
this.fileToUpload = null;
|
|
442
|
+
this.formControl = new FormControl();
|
|
443
|
+
}
|
|
444
|
+
writeValue(value) {
|
|
445
|
+
this.formControl.setValue(value);
|
|
446
|
+
}
|
|
447
|
+
registerOnChange(fn) {
|
|
448
|
+
this.formControl.valueChanges.subscribe((val) => fn(val));
|
|
449
|
+
}
|
|
450
|
+
registerOnTouched(fn) {
|
|
451
|
+
this.formControl.valueChanges.subscribe((val) => fn(val));
|
|
452
|
+
}
|
|
453
|
+
handleFileInput(event) {
|
|
454
|
+
const files = event.dataTransfer ? event.dataTransfer.files : event.target.files;
|
|
455
|
+
if (files.length > 0) {
|
|
456
|
+
const file = files[0];
|
|
457
|
+
this.formControl.patchValue({
|
|
458
|
+
fileSource: file
|
|
459
|
+
});
|
|
460
|
+
}
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
QuestionTypeUploadFileComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: QuestionTypeUploadFileComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
464
|
+
QuestionTypeUploadFileComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: QuestionTypeUploadFileComponent, selector: "lib-question-type-upload-file", inputs: { required: "required" }, providers: [
|
|
465
|
+
{
|
|
466
|
+
provide: NG_VALUE_ACCESSOR,
|
|
467
|
+
useExisting: forwardRef(() => QuestionTypeUploadFileComponent),
|
|
468
|
+
multi: true,
|
|
469
|
+
},
|
|
470
|
+
], ngImport: i0, template: "<input \r\n[id]=\"'question_'\" type=\"file\" (change)=\"handleFileInput($event)\" class=\"input-tag\" placeholder=\"Upload File\" [required]=\"required\"/>\r\n<!-- \r\n<label for=\"formFile\" class=\"form-label\">Add file</label>\r\n <input class=\"form-control\" type=\"file\" id=\"formFile\">\r\n <button type=\"button\" class=\"btn btn-primary mt-3\"><mat-icon>file_upload</mat-icon></button> -->", styles: [""] });
|
|
471
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: QuestionTypeUploadFileComponent, decorators: [{
|
|
472
|
+
type: Component,
|
|
473
|
+
args: [{ selector: 'lib-question-type-upload-file', providers: [
|
|
474
|
+
{
|
|
475
|
+
provide: NG_VALUE_ACCESSOR,
|
|
476
|
+
useExisting: forwardRef(() => QuestionTypeUploadFileComponent),
|
|
477
|
+
multi: true,
|
|
478
|
+
},
|
|
479
|
+
], template: "<input \r\n[id]=\"'question_'\" type=\"file\" (change)=\"handleFileInput($event)\" class=\"input-tag\" placeholder=\"Upload File\" [required]=\"required\"/>\r\n<!-- \r\n<label for=\"formFile\" class=\"form-label\">Add file</label>\r\n <input class=\"form-control\" type=\"file\" id=\"formFile\">\r\n <button type=\"button\" class=\"btn btn-primary mt-3\"><mat-icon>file_upload</mat-icon></button> -->", styles: [""] }]
|
|
480
|
+
}], ctorParameters: function () { return []; }, propDecorators: { required: [{
|
|
481
|
+
type: Input
|
|
482
|
+
}] } });
|
|
483
|
+
|
|
484
|
+
class QuestionTypeMultiselectComponent {
|
|
485
|
+
constructor() {
|
|
486
|
+
this.selectData = [];
|
|
487
|
+
this.formControl = new FormControl();
|
|
488
|
+
}
|
|
489
|
+
toggleSelection(event, data) {
|
|
490
|
+
if (event.checked) {
|
|
491
|
+
this.selectData.push(data);
|
|
492
|
+
}
|
|
493
|
+
else {
|
|
494
|
+
const i = this.selectData.findIndex(value => value.id == data.id);
|
|
495
|
+
this.selectData.splice(i, 1);
|
|
496
|
+
}
|
|
497
|
+
this.formControl.patchValue(this.selectData);
|
|
498
|
+
}
|
|
499
|
+
;
|
|
500
|
+
writeValue(value) {
|
|
501
|
+
this.formControl.setValue(value);
|
|
502
|
+
}
|
|
503
|
+
registerOnChange(fn) {
|
|
504
|
+
this.formControl.valueChanges.subscribe((val) => fn(val));
|
|
505
|
+
}
|
|
506
|
+
registerOnTouched(fn) {
|
|
507
|
+
this.formControl.valueChanges.subscribe((val) => fn(val));
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
QuestionTypeMultiselectComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: QuestionTypeMultiselectComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
511
|
+
QuestionTypeMultiselectComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: QuestionTypeMultiselectComponent, selector: "lib-question-type-multiselect", inputs: { required: "required", optionsList: "optionsList" }, providers: [
|
|
512
|
+
{
|
|
513
|
+
provide: NG_VALUE_ACCESSOR,
|
|
514
|
+
useExisting: forwardRef(() => QuestionTypeMultiselectComponent),
|
|
515
|
+
multi: true,
|
|
516
|
+
},
|
|
517
|
+
], ngImport: i0, template: "<!-- <div class=\"checkbox-group\">\r\n <label *ngFor=\"let option of optionsList.defaultOptionsList\">\r\n <input\r\n type=\"checkbox\" \r\n [value]=\"option.options.id\"\r\n [name]=\"optionsList.id\"\r\n />\r\n <span class=\"assessment-text-regular-18 mt-5\">{{ option.options.optionName[0]?.text }}</span>\r\n </label>\r\n</div> -->\r\n<section class=\"example-section\">\r\n <ng-container *ngFor=\"let option of optionsList.defaultOptionsList | orderBy\">\r\n <mat-checkbox class=\"form-check-input example-margin\" \r\n (change)=\"toggleSelection($event,option.options)\"\r\n [value]=\"option.options\" [required]=\"required\">{{ option.options.optionName[0]?.text }}</mat-checkbox>\r\n </ng-container>\r\n</section>\r\n<!-- <ng-container\r\n *ngFor=\"let option of optionsList.defaultOptionsList | orderBy\"\r\n [value]=\"option.options\"\r\n >\r\n <div (click)=\"optionClicked($event, option.options)\">\r\n <mat-checkbox\r\n (change)=\"toggleSelection(option.options)\"\r\n (click)=\"$event.stopPropagation()\"\r\n >\r\n {{ option.options.optionName[0]?.text }}\r\n </mat-checkbox>\r\n </div>\r\n </ng-container> -->", styles: [""], components: [{ type: i1$4.MatCheckbox, selector: "mat-checkbox", inputs: ["disableRipple", "color", "tabIndex", "aria-label", "aria-labelledby", "aria-describedby", "id", "required", "labelPosition", "name", "value", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }], directives: [{ type: i7.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "orderBy": OrderByPipe } });
|
|
518
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: QuestionTypeMultiselectComponent, decorators: [{
|
|
519
|
+
type: Component,
|
|
520
|
+
args: [{ selector: 'lib-question-type-multiselect', providers: [
|
|
521
|
+
{
|
|
522
|
+
provide: NG_VALUE_ACCESSOR,
|
|
523
|
+
useExisting: forwardRef(() => QuestionTypeMultiselectComponent),
|
|
524
|
+
multi: true,
|
|
525
|
+
},
|
|
526
|
+
], template: "<!-- <div class=\"checkbox-group\">\r\n <label *ngFor=\"let option of optionsList.defaultOptionsList\">\r\n <input\r\n type=\"checkbox\" \r\n [value]=\"option.options.id\"\r\n [name]=\"optionsList.id\"\r\n />\r\n <span class=\"assessment-text-regular-18 mt-5\">{{ option.options.optionName[0]?.text }}</span>\r\n </label>\r\n</div> -->\r\n<section class=\"example-section\">\r\n <ng-container *ngFor=\"let option of optionsList.defaultOptionsList | orderBy\">\r\n <mat-checkbox class=\"form-check-input example-margin\" \r\n (change)=\"toggleSelection($event,option.options)\"\r\n [value]=\"option.options\" [required]=\"required\">{{ option.options.optionName[0]?.text }}</mat-checkbox>\r\n </ng-container>\r\n</section>\r\n<!-- <ng-container\r\n *ngFor=\"let option of optionsList.defaultOptionsList | orderBy\"\r\n [value]=\"option.options\"\r\n >\r\n <div (click)=\"optionClicked($event, option.options)\">\r\n <mat-checkbox\r\n (change)=\"toggleSelection(option.options)\"\r\n (click)=\"$event.stopPropagation()\"\r\n >\r\n {{ option.options.optionName[0]?.text }}\r\n </mat-checkbox>\r\n </div>\r\n </ng-container> -->", styles: [""] }]
|
|
527
|
+
}], ctorParameters: function () { return []; }, propDecorators: { required: [{
|
|
528
|
+
type: Input
|
|
529
|
+
}], optionsList: [{
|
|
530
|
+
type: Input
|
|
531
|
+
}] } });
|
|
532
|
+
|
|
533
|
+
class QuestionTypeRatingComponent {
|
|
534
|
+
constructor() {
|
|
535
|
+
this.formControl = new FormControl();
|
|
536
|
+
}
|
|
537
|
+
toggleSelection(data) {
|
|
538
|
+
//data.selected = !data.selected;
|
|
539
|
+
console.log(data);
|
|
540
|
+
this.formControl.patchValue(data);
|
|
541
|
+
}
|
|
542
|
+
;
|
|
543
|
+
writeValue(value) {
|
|
544
|
+
this.formControl.setValue(value);
|
|
545
|
+
}
|
|
546
|
+
registerOnChange(fn) {
|
|
547
|
+
this.formControl.valueChanges.subscribe((val) => fn(val));
|
|
548
|
+
}
|
|
549
|
+
registerOnTouched(fn) {
|
|
550
|
+
this.formControl.valueChanges.subscribe((val) => fn(val));
|
|
551
|
+
}
|
|
552
|
+
}
|
|
553
|
+
QuestionTypeRatingComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: QuestionTypeRatingComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
554
|
+
QuestionTypeRatingComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: QuestionTypeRatingComponent, selector: "lib-question-type-rating", inputs: { required: "required", optionsList: "optionsList" }, providers: [
|
|
555
|
+
{
|
|
556
|
+
provide: NG_VALUE_ACCESSOR,
|
|
557
|
+
useExisting: forwardRef(() => QuestionTypeRatingComponent),
|
|
558
|
+
multi: true,
|
|
559
|
+
},
|
|
560
|
+
], ngImport: i0, template: "<mat-button-toggle-group\r\n appearance=\"legacy\" class=\"custmattog\">\r\n <ng-container *ngFor=\"let option of optionsList.defaultOptionsList | orderBy\">\r\n <mat-button-toggle (change)=\"toggleSelection(option.options)\" value=\"{{option.options.id}}\">\r\n {{ option.options.optionName[0]?.text }}</mat-button-toggle>\r\n </ng-container>\r\n</mat-button-toggle-group>", styles: [""], components: [{ type: i1$5.MatButtonToggle, selector: "mat-button-toggle", inputs: ["disableRipple", "aria-label", "aria-labelledby", "id", "name", "value", "tabIndex", "appearance", "checked", "disabled"], outputs: ["change"], exportAs: ["matButtonToggle"] }], directives: [{ type: i1$5.MatButtonToggleGroup, selector: "mat-button-toggle-group", inputs: ["appearance", "name", "vertical", "value", "multiple", "disabled"], outputs: ["valueChange", "change"], exportAs: ["matButtonToggleGroup"] }, { type: i7.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "orderBy": OrderByPipe } });
|
|
561
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: QuestionTypeRatingComponent, decorators: [{
|
|
562
|
+
type: Component,
|
|
563
|
+
args: [{ selector: 'lib-question-type-rating', providers: [
|
|
564
|
+
{
|
|
565
|
+
provide: NG_VALUE_ACCESSOR,
|
|
566
|
+
useExisting: forwardRef(() => QuestionTypeRatingComponent),
|
|
567
|
+
multi: true,
|
|
568
|
+
},
|
|
569
|
+
], template: "<mat-button-toggle-group\r\n appearance=\"legacy\" class=\"custmattog\">\r\n <ng-container *ngFor=\"let option of optionsList.defaultOptionsList | orderBy\">\r\n <mat-button-toggle (change)=\"toggleSelection(option.options)\" value=\"{{option.options.id}}\">\r\n {{ option.options.optionName[0]?.text }}</mat-button-toggle>\r\n </ng-container>\r\n</mat-button-toggle-group>", styles: [""] }]
|
|
570
|
+
}], ctorParameters: function () { return []; }, propDecorators: { required: [{
|
|
571
|
+
type: Input
|
|
572
|
+
}], optionsList: [{
|
|
573
|
+
type: Input
|
|
574
|
+
}] } });
|
|
575
|
+
|
|
576
|
+
const ANGULAR_EDITOR_LOGO_URL = 'http://localhost:4200/assets/images/new_tooltip.jpg?raw=true';
|
|
577
|
+
class QuestionTypeEditorComponent {
|
|
578
|
+
constructor() {
|
|
579
|
+
this.angularEditorLogo = `<img alt="angular editor logo" src="${ANGULAR_EDITOR_LOGO_URL}">`;
|
|
580
|
+
this.formControl = new FormControl();
|
|
581
|
+
}
|
|
582
|
+
writeValue(value) {
|
|
583
|
+
this.formControl.setValue(value);
|
|
584
|
+
}
|
|
585
|
+
registerOnChange(fn) {
|
|
586
|
+
this.formControl.valueChanges.subscribe((val) => fn(val));
|
|
587
|
+
}
|
|
588
|
+
registerOnTouched(fn) {
|
|
589
|
+
this.formControl.valueChanges.subscribe((val) => fn(val));
|
|
590
|
+
}
|
|
591
|
+
}
|
|
592
|
+
QuestionTypeEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: QuestionTypeEditorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
593
|
+
QuestionTypeEditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: QuestionTypeEditorComponent, selector: "lib-question-type-editor", inputs: { required: "required", optionsList: "optionsList", fieldAttributes: "fieldAttributes", config: "config" }, providers: [
|
|
594
|
+
{
|
|
595
|
+
provide: NG_VALUE_ACCESSOR,
|
|
596
|
+
useExisting: forwardRef(() => QuestionTypeEditorComponent),
|
|
597
|
+
multi: true,
|
|
598
|
+
},
|
|
599
|
+
], ngImport: i0, template: "<angular-editor [config]=\"config\" [formControl]=\"formControl\" [required]=\"required\">\r\n <ng-template #customButtons let-executeCommandFn=\"executeCommandFn\">\r\n <ae-toolbar-set>\r\n <ae-button iconClass=\"fa fa-html5\" title=\"Angular editor logo\" (buttonClick)=\"executeCommandFn('insertHtml', angularEditorLogo)\"></ae-button>\r\n </ae-toolbar-set>\r\n </ng-template>\r\n</angular-editor>\r\n", styles: [""], components: [{ type: i1$6.AngularEditorComponent, selector: "angular-editor", inputs: ["id", "config", "placeholder", "tabIndex"], outputs: ["html", "viewMode", "blur", "focus"] }, { type: i1$6.AeToolbarSetComponent, selector: "ae-toolbar-set" }, { type: i1$6.AeButtonComponent, selector: "ae-button", inputs: ["iconClass", "title"], outputs: ["buttonClick"] }], directives: [{ type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i3.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i3.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }] });
|
|
600
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: QuestionTypeEditorComponent, decorators: [{
|
|
601
|
+
type: Component,
|
|
602
|
+
args: [{ selector: 'lib-question-type-editor', providers: [
|
|
603
|
+
{
|
|
604
|
+
provide: NG_VALUE_ACCESSOR,
|
|
605
|
+
useExisting: forwardRef(() => QuestionTypeEditorComponent),
|
|
606
|
+
multi: true,
|
|
607
|
+
},
|
|
608
|
+
], template: "<angular-editor [config]=\"config\" [formControl]=\"formControl\" [required]=\"required\">\r\n <ng-template #customButtons let-executeCommandFn=\"executeCommandFn\">\r\n <ae-toolbar-set>\r\n <ae-button iconClass=\"fa fa-html5\" title=\"Angular editor logo\" (buttonClick)=\"executeCommandFn('insertHtml', angularEditorLogo)\"></ae-button>\r\n </ae-toolbar-set>\r\n </ng-template>\r\n</angular-editor>\r\n", styles: [""] }]
|
|
609
|
+
}], ctorParameters: function () { return []; }, propDecorators: { required: [{
|
|
610
|
+
type: Input
|
|
611
|
+
}], optionsList: [{
|
|
612
|
+
type: Input
|
|
613
|
+
}], fieldAttributes: [{
|
|
614
|
+
type: Input
|
|
615
|
+
}], config: [{
|
|
616
|
+
type: Input
|
|
617
|
+
}] } });
|
|
618
|
+
|
|
619
|
+
class QuestionTypeSearchableTagComponent {
|
|
620
|
+
constructor(dialog) {
|
|
621
|
+
this.dialog = dialog;
|
|
622
|
+
this.visible = true;
|
|
623
|
+
this.selectable = true;
|
|
624
|
+
this.removable = true;
|
|
625
|
+
this.separatorKeysCodes = [ENTER, COMMA, SEMICOLON, 188];
|
|
626
|
+
this.formControl = new FormControl();
|
|
627
|
+
this.options = [];
|
|
628
|
+
this.allOptions = ["Lemon", "Lime", "Orange", "Strawberry"];
|
|
629
|
+
this.filteredOptions = this.formControl.valueChanges.pipe(startWith(null), map((option) => option ? this._filter(option) : this.allOptions.slice()));
|
|
630
|
+
}
|
|
631
|
+
writeValue(value) {
|
|
632
|
+
this.formControl.setValue(value);
|
|
633
|
+
}
|
|
634
|
+
registerOnChange(fn) {
|
|
635
|
+
this.formControl.valueChanges.subscribe((val) => fn(val));
|
|
636
|
+
}
|
|
637
|
+
registerOnTouched(fn) {
|
|
638
|
+
this.formControl.valueChanges.subscribe((val) => fn(val));
|
|
639
|
+
}
|
|
640
|
+
add(event) {
|
|
641
|
+
const input = event.input;
|
|
642
|
+
const value = event.value;
|
|
643
|
+
// Add our option
|
|
644
|
+
if ((value || "").trim()) {
|
|
645
|
+
this.options.push(value.trim());
|
|
646
|
+
}
|
|
647
|
+
// Reset the input value
|
|
648
|
+
if (input) {
|
|
649
|
+
input.value = "";
|
|
650
|
+
}
|
|
651
|
+
this.formControl.setValue(null);
|
|
652
|
+
this.updateControlValue();
|
|
653
|
+
}
|
|
654
|
+
remove(option) {
|
|
655
|
+
const index = this.options.indexOf(option);
|
|
656
|
+
if (index >= 0) {
|
|
657
|
+
this.options.splice(index, 1);
|
|
658
|
+
}
|
|
659
|
+
this.updateControlValue();
|
|
660
|
+
}
|
|
661
|
+
selected(event) {
|
|
662
|
+
this.options.push(event.option.viewValue);
|
|
663
|
+
this.optionInput.nativeElement.value = "";
|
|
664
|
+
this.formControl.setValue(null);
|
|
665
|
+
this.updateControlValue();
|
|
666
|
+
}
|
|
667
|
+
updateControlValue() {
|
|
668
|
+
this.formControl.patchValue(this.options);
|
|
669
|
+
}
|
|
670
|
+
openDialog(templateRef) {
|
|
671
|
+
this.dialog.open(templateRef);
|
|
672
|
+
}
|
|
673
|
+
_filter(value) {
|
|
674
|
+
const filterValue = value.toLowerCase();
|
|
675
|
+
return this.allOptions.filter(option => option.toLowerCase().indexOf(filterValue) === 0);
|
|
676
|
+
}
|
|
677
|
+
}
|
|
678
|
+
QuestionTypeSearchableTagComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: QuestionTypeSearchableTagComponent, deps: [{ token: i1$1.MatDialog }], target: i0.ɵɵFactoryTarget.Component });
|
|
679
|
+
QuestionTypeSearchableTagComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: QuestionTypeSearchableTagComponent, selector: "lib-question-type-searchable-tag", inputs: { required: "required", optionsList: "optionsList", fieldAttributes: "fieldAttributes" }, providers: [
|
|
680
|
+
{
|
|
681
|
+
provide: NG_VALUE_ACCESSOR,
|
|
682
|
+
useExisting: forwardRef(() => QuestionTypeSearchableTagComponent),
|
|
683
|
+
multi: true,
|
|
684
|
+
},
|
|
685
|
+
], viewQueries: [{ propertyName: "optionInput", first: true, predicate: ["optionInput"], descendants: true }, { propertyName: "matAutocomplete", first: true, predicate: ["auto"], descendants: true }], ngImport: i0, template: "<mat-form-field class=\"example-chip-list\">\r\n <mat-chip-list #chipList>\r\n <mat-chip *ngFor=\"let option of options\" [selectable]=\"selectable\" [removable]=\"removable\"\r\n (removed)=\"remove(option)\">\r\n {{option}}\r\n <mat-icon matChipRemove *ngIf=\"removable\">cancel</mat-icon>\r\n </mat-chip>\r\n <input placeholder=\"\" #optionInput [formControl]=\"formControl\" [required]=\"required\" [matAutocomplete]=\"auto\"\r\n [matChipInputFor]=\"chipList\" [matChipInputSeparatorKeyCodes]=\"separatorKeysCodes\"\r\n (matChipInputTokenEnd)=\"add($event)\">\r\n </mat-chip-list>\r\n <mat-autocomplete #auto=\"matAutocomplete\" (optionSelected)=\"selected($event)\">\r\n <mat-option *ngFor=\"let option of filteredOptions | async\" [value]=\"option\">\r\n {{option}}\r\n </mat-option>\r\n </mat-autocomplete>\r\n</mat-form-field>\r\n\r\n\r\n", styles: [""], components: [{ type: i1$3.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }, { type: i3$1.MatChipList, selector: "mat-chip-list", inputs: ["errorStateMatcher", "multiple", "compareWith", "value", "required", "placeholder", "disabled", "aria-orientation", "selectable", "tabIndex"], outputs: ["change", "valueChange"], exportAs: ["matChipList"] }, { type: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i5.MatAutocomplete, selector: "mat-autocomplete", inputs: ["disableRipple"], exportAs: ["matAutocomplete"] }, { type: i6.MatOption, selector: "mat-option", exportAs: ["matOption"] }], directives: [{ type: i7.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i3$1.MatChip, selector: "mat-basic-chip, [mat-basic-chip], mat-chip, [mat-chip]", inputs: ["color", "disableRipple", "tabIndex", "selected", "value", "selectable", "disabled", "removable"], outputs: ["selectionChange", "destroyed", "removed"], exportAs: ["matChip"] }, { type: i7.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3$1.MatChipRemove, selector: "[matChipRemove]" }, { type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i5.MatAutocompleteTrigger, selector: "input[matAutocomplete], textarea[matAutocomplete]", exportAs: ["matAutocompleteTrigger"] }, { type: i3$1.MatChipInput, selector: "input[matChipInputFor]", inputs: ["matChipInputFor", "matChipInputAddOnBlur", "matChipInputSeparatorKeyCodes", "placeholder", "id", "disabled"], outputs: ["matChipInputTokenEnd"], exportAs: ["matChipInput", "matChipInputFor"] }, { type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i3.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i3.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }], pipes: { "async": i7.AsyncPipe } });
|
|
686
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: QuestionTypeSearchableTagComponent, decorators: [{
|
|
687
|
+
type: Component,
|
|
688
|
+
args: [{ selector: 'lib-question-type-searchable-tag', providers: [
|
|
689
|
+
{
|
|
690
|
+
provide: NG_VALUE_ACCESSOR,
|
|
691
|
+
useExisting: forwardRef(() => QuestionTypeSearchableTagComponent),
|
|
692
|
+
multi: true,
|
|
693
|
+
},
|
|
694
|
+
], template: "<mat-form-field class=\"example-chip-list\">\r\n <mat-chip-list #chipList>\r\n <mat-chip *ngFor=\"let option of options\" [selectable]=\"selectable\" [removable]=\"removable\"\r\n (removed)=\"remove(option)\">\r\n {{option}}\r\n <mat-icon matChipRemove *ngIf=\"removable\">cancel</mat-icon>\r\n </mat-chip>\r\n <input placeholder=\"\" #optionInput [formControl]=\"formControl\" [required]=\"required\" [matAutocomplete]=\"auto\"\r\n [matChipInputFor]=\"chipList\" [matChipInputSeparatorKeyCodes]=\"separatorKeysCodes\"\r\n (matChipInputTokenEnd)=\"add($event)\">\r\n </mat-chip-list>\r\n <mat-autocomplete #auto=\"matAutocomplete\" (optionSelected)=\"selected($event)\">\r\n <mat-option *ngFor=\"let option of filteredOptions | async\" [value]=\"option\">\r\n {{option}}\r\n </mat-option>\r\n </mat-autocomplete>\r\n</mat-form-field>\r\n\r\n\r\n", styles: [""] }]
|
|
695
|
+
}], ctorParameters: function () { return [{ type: i1$1.MatDialog }]; }, propDecorators: { required: [{
|
|
696
|
+
type: Input
|
|
697
|
+
}], optionsList: [{
|
|
698
|
+
type: Input
|
|
699
|
+
}], fieldAttributes: [{
|
|
700
|
+
type: Input
|
|
701
|
+
}], optionInput: [{
|
|
702
|
+
type: ViewChild,
|
|
703
|
+
args: ["optionInput"]
|
|
704
|
+
}], matAutocomplete: [{
|
|
705
|
+
type: ViewChild,
|
|
706
|
+
args: ["auto"]
|
|
707
|
+
}] } });
|
|
708
|
+
|
|
709
|
+
class QuestWizardComponent {
|
|
710
|
+
constructor(assessmentService, assessmentIdService, fb, dialog, cdr) {
|
|
711
|
+
this.assessmentService = assessmentService;
|
|
712
|
+
this.assessmentIdService = assessmentIdService;
|
|
713
|
+
this.fb = fb;
|
|
714
|
+
this.dialog = dialog;
|
|
715
|
+
this.cdr = cdr;
|
|
716
|
+
this.childQuestionBook = [];
|
|
717
|
+
this.editorName = "editorName";
|
|
718
|
+
this.tooltipText = '';
|
|
719
|
+
this.submitted = false;
|
|
720
|
+
// assessmentId: any
|
|
721
|
+
this.assessmentQuestionPapersList = new Array();
|
|
722
|
+
this.questionIds = {};
|
|
723
|
+
this.startDate = new Date();
|
|
724
|
+
this.group = {};
|
|
725
|
+
this.assessmentHeaderImage = 'https://dev.platformcommons.org/forms/assets/images/domain/assessment-placeholder-2.png';
|
|
726
|
+
this.sectionQuestions = {};
|
|
727
|
+
this.requestPayload = {};
|
|
728
|
+
this.config = {
|
|
729
|
+
editable: true,
|
|
730
|
+
spellcheck: true,
|
|
731
|
+
height: '15rem',
|
|
732
|
+
minHeight: '5rem',
|
|
733
|
+
placeholder: 'Enter text here...',
|
|
734
|
+
translate: 'no',
|
|
735
|
+
defaultParagraphSeparator: 'p',
|
|
736
|
+
defaultFontName: 'Arial',
|
|
737
|
+
toolbarHiddenButtons: [
|
|
738
|
+
['bold']
|
|
739
|
+
],
|
|
740
|
+
customClasses: [
|
|
741
|
+
{
|
|
742
|
+
name: "quote",
|
|
743
|
+
class: "quote",
|
|
744
|
+
},
|
|
745
|
+
{
|
|
746
|
+
name: 'redText',
|
|
747
|
+
class: 'redText'
|
|
748
|
+
},
|
|
749
|
+
{
|
|
750
|
+
name: "titleText",
|
|
751
|
+
class: "titleText",
|
|
752
|
+
tag: "h1",
|
|
753
|
+
},
|
|
754
|
+
]
|
|
755
|
+
};
|
|
756
|
+
this.formGroup = this.fb.group({});
|
|
757
|
+
}
|
|
758
|
+
ngOnChanges(changes) {
|
|
759
|
+
if (changes['assessmentId'] && !changes['assessmentId'].isFirstChange()) {
|
|
760
|
+
this.assessmentId = changes['assessmentId'].currentValue;
|
|
761
|
+
this.ngOnInit();
|
|
762
|
+
}
|
|
763
|
+
}
|
|
764
|
+
ngOnInit() {
|
|
765
|
+
// this.assessmentIdService.currentAssessmentId.subscribe(id => {
|
|
766
|
+
// this.assessmentId = id
|
|
767
|
+
// console.log(this.assessmentId)
|
|
768
|
+
// })
|
|
769
|
+
console.log(this.assessmentId);
|
|
770
|
+
if (this.assessmentId) {
|
|
771
|
+
this.getAssessmentDetails();
|
|
772
|
+
}
|
|
773
|
+
console.log(this.sectionQuestions);
|
|
774
|
+
// this.fb.group({
|
|
775
|
+
/* shortAns: ["", Validators.required],
|
|
776
|
+
longAns1: ["", Validators.required],
|
|
777
|
+
selDate: ["", Validators.required],
|
|
778
|
+
numberAns: ["", Validators.required],
|
|
779
|
+
multiSelectAns: ["", Validators.required],
|
|
780
|
+
multiSubAns: ["", Validators.required],
|
|
781
|
+
objSubAns: ["", Validators.required] */
|
|
782
|
+
// });
|
|
783
|
+
}
|
|
784
|
+
get f() {
|
|
785
|
+
return this.formGroup.controls;
|
|
786
|
+
}
|
|
787
|
+
submitTask() {
|
|
788
|
+
var _a;
|
|
789
|
+
this.formGroup.markAllAsTouched();
|
|
790
|
+
if (this.formGroup.valid) {
|
|
791
|
+
console.log(this.formGroup.value);
|
|
792
|
+
this.requestPayload = {
|
|
793
|
+
"aiadefaultResponseList": [],
|
|
794
|
+
"assessmentInstance": {
|
|
795
|
+
/* assessment: this.assessmentQuestionPapersList.assessment,
|
|
796
|
+
asmtInstDesc: this.assessmentQuestionPapersList.aqpDesc,
|
|
797
|
+
asmtInstName: this.assessmentQuestionPapersList.aqpName, */
|
|
798
|
+
/* scheduleStatus: {
|
|
799
|
+
"code": "ASSESSMENT.PUBLISH",
|
|
800
|
+
"description": "",
|
|
801
|
+
"labels": [
|
|
802
|
+
{
|
|
803
|
+
"text": "Draft",
|
|
804
|
+
"language": {
|
|
805
|
+
"code": "ENG"
|
|
806
|
+
}
|
|
807
|
+
}
|
|
808
|
+
],
|
|
809
|
+
"refClass": {
|
|
810
|
+
"code": "SCHEDULE_STATUS"
|
|
811
|
+
}
|
|
812
|
+
}, */ //assesmentSchema.scheduleStatus,
|
|
813
|
+
/* confirmationDate: new Date(),// assesmentSchema.confirmationDate,
|
|
814
|
+
endDate: new Date(),//assesmentSchema.endDate,
|
|
815
|
+
startDate: this.startDate, */
|
|
816
|
+
id: 145,
|
|
817
|
+
/* tenant: this.assessmentQuestionPapersList.tenant,
|
|
818
|
+
imageURL: "",//this.assessmentQuestionPapersList.imageURL,
|
|
819
|
+
isPublic: true,//this.assessmentQuestionPapersList.isPublic,
|
|
820
|
+
specificVisibility: false,//assesmentSchema.specificVisibility,
|
|
821
|
+
editable: false,//assesmentSchema.editable,
|
|
822
|
+
author: "Aashish Zenform",//assesmentSchema.author,
|
|
823
|
+
tenantId: this.assessmentQuestionPapersList.tenantId,
|
|
824
|
+
isActive: true,//assesmentSchema.isActive,
|
|
825
|
+
createdAt: this.assessmentQuestionPapersList.createdAt,
|
|
826
|
+
createdBy: this.assessmentQuestionPapersList.createdBy,
|
|
827
|
+
uuid: this.assessmentQuestionPapersList.uuid */
|
|
828
|
+
},
|
|
829
|
+
assessor: {
|
|
830
|
+
actorId: "0",
|
|
831
|
+
actorType: "ACTOR_TYPE.BRIDGE_USER",
|
|
832
|
+
id: 0,
|
|
833
|
+
isActive: true,
|
|
834
|
+
tenant: "0"
|
|
835
|
+
},
|
|
836
|
+
"id": 0,
|
|
837
|
+
"isActive": true,
|
|
838
|
+
"tenant": "0",
|
|
839
|
+
"assessedForEntityId": "303906",
|
|
840
|
+
"assessedForEntityType": "ACTOR_TYPE.BRIDGE_USER",
|
|
841
|
+
"assessee": {
|
|
842
|
+
actorId: "303906",
|
|
843
|
+
actorType: "ACTOR_TYPE.BRIDGE_USER",
|
|
844
|
+
id: 0,
|
|
845
|
+
isActive: true,
|
|
846
|
+
tenant: "0"
|
|
847
|
+
}
|
|
848
|
+
};
|
|
849
|
+
(_a = this.assessmentQuestionPapersList) === null || _a === void 0 ? void 0 : _a.questionPaperSectionList.forEach((section, index) => {
|
|
850
|
+
section.sectionQuestionsList.sort((a, b) => a.orderNo - b.orderNo).forEach((ques, qindex) => {
|
|
851
|
+
var _a, _b, _c, _d;
|
|
852
|
+
var questionResponseObj = {};
|
|
853
|
+
const questionDetails = this.sectionQuestions[0].find(i => i.id === ques.questionId);
|
|
854
|
+
if ((questionDetails === null || questionDetails === void 0 ? void 0 : questionDetails.questionType.code) === "QUESTION_TYPE.OBJECTIVE" || (questionDetails === null || questionDetails === void 0 ? void 0 : questionDetails.questionType.code) === "QUESTION_TYPE.SCALE_RATING") {
|
|
855
|
+
const defaultOptions = questionDetails.defaultOptionsList;
|
|
856
|
+
questionResponseObj = { optionId: (_a = defaultOptions === null || defaultOptions === void 0 ? void 0 : defaultOptions.find(i => i.options.id === this.formGroup.value[ques.questionId].id)) === null || _a === void 0 ? void 0 : _a.options };
|
|
857
|
+
}
|
|
858
|
+
else if ((questionDetails === null || questionDetails === void 0 ? void 0 : questionDetails.questionType.code) === "QUESTION_TYPE.MULTISELECT") {
|
|
859
|
+
const defaultOptions = questionDetails.defaultOptionsList;
|
|
860
|
+
const drobjectiveresponseList = [];
|
|
861
|
+
(_b = this.formGroup.value[ques.questionId]) === null || _b === void 0 ? void 0 : _b.forEach((opt) => {
|
|
862
|
+
const selectedOptions = defaultOptions.find(i => i.options.id === opt.id);
|
|
863
|
+
drobjectiveresponseList.push({
|
|
864
|
+
id: 0,
|
|
865
|
+
defaultOption: selectedOptions
|
|
866
|
+
});
|
|
867
|
+
});
|
|
868
|
+
questionResponseObj = {
|
|
869
|
+
drobjectiveresponseList
|
|
870
|
+
};
|
|
871
|
+
}
|
|
872
|
+
else if ((questionDetails === null || questionDetails === void 0 ? void 0 : questionDetails.questionType.code) === "QUESTION_TYPE.MULTISELECT_SUBJECTIVE") {
|
|
873
|
+
const defaultOptions = questionDetails.defaultOptionsList;
|
|
874
|
+
const drobjectiveresponseList = [];
|
|
875
|
+
(_c = this.formGroup.value[`${ques.questionId}_objective`]) === null || _c === void 0 ? void 0 : _c.forEach((opt) => {
|
|
876
|
+
const selectedOptions = defaultOptions.find(i => i.options.id === opt.id);
|
|
877
|
+
drobjectiveresponseList.push({
|
|
878
|
+
id: 0,
|
|
879
|
+
defaultOption: selectedOptions
|
|
880
|
+
});
|
|
881
|
+
});
|
|
882
|
+
questionResponseObj = {
|
|
883
|
+
drobjectiveresponseList,
|
|
884
|
+
drsubjectiveresponseList: [
|
|
885
|
+
{
|
|
886
|
+
id: 0,
|
|
887
|
+
responseText: this.formGroup.value[`${ques.questionId}_subjective`]
|
|
888
|
+
}
|
|
889
|
+
]
|
|
890
|
+
};
|
|
891
|
+
}
|
|
892
|
+
else if ((questionDetails === null || questionDetails === void 0 ? void 0 : questionDetails.questionType.code) === "QUESTION_TYPE.OBJECTIVE_SUBJECTIVE") {
|
|
893
|
+
const defaultOptions = questionDetails.defaultOptionsList;
|
|
894
|
+
questionResponseObj = {
|
|
895
|
+
optionId: (_d = defaultOptions === null || defaultOptions === void 0 ? void 0 : defaultOptions.find(i => i.options.id === this.formGroup.value[`${ques.questionId}_objective`].id)) === null || _d === void 0 ? void 0 : _d.options,
|
|
896
|
+
drsubjectiveresponseList: [
|
|
897
|
+
{
|
|
898
|
+
id: 0,
|
|
899
|
+
responseText: this.formGroup.value[`${ques.questionId}_subjective`]
|
|
900
|
+
}
|
|
901
|
+
]
|
|
902
|
+
};
|
|
903
|
+
}
|
|
904
|
+
else if ((questionDetails === null || questionDetails === void 0 ? void 0 : questionDetails.questionType.code) === "QUESTION_TYPE.FILE_UPLOAD") {
|
|
905
|
+
let formData = new FormData();
|
|
906
|
+
/* let maxDepth=123;
|
|
907
|
+
const fileData = this.formGroup.value[ques.questionId];
|
|
908
|
+
let file: File = fileData.fileSourc;
|
|
909
|
+
formData.append('file', file);
|
|
910
|
+
|
|
911
|
+
this.assessmentService.uploadAssessment(formData).subscribe(response => {
|
|
912
|
+
console.log(response);
|
|
913
|
+
// if (response != '') {}
|
|
914
|
+
}); */
|
|
915
|
+
questionResponseObj = {
|
|
916
|
+
drsubjectiveresponseList: [
|
|
917
|
+
{
|
|
918
|
+
id: 0,
|
|
919
|
+
responseText: ''
|
|
920
|
+
}
|
|
921
|
+
]
|
|
922
|
+
};
|
|
923
|
+
}
|
|
924
|
+
else {
|
|
925
|
+
questionResponseObj = {
|
|
926
|
+
drsubjectiveresponseList: [
|
|
927
|
+
{
|
|
928
|
+
id: 0,
|
|
929
|
+
responseText: this.formGroup.value[ques.questionId]
|
|
930
|
+
// responseText: "test"
|
|
931
|
+
}
|
|
932
|
+
]
|
|
933
|
+
};
|
|
934
|
+
}
|
|
935
|
+
// if (questionDetails?.questionSubtype.code === "QUESTION_SUB_TYPE.SUBJECTIVE") {
|
|
936
|
+
this.requestPayload.aiadefaultResponseList.push(Object.assign(Object.assign({}, questionResponseObj), { "id": 0, "isActive": true, "sectionQuestion": {
|
|
937
|
+
id: ques.id,
|
|
938
|
+
isActive: ques.isActive,
|
|
939
|
+
orderNo: ques.orderNo,
|
|
940
|
+
questionId: ques.questionId,
|
|
941
|
+
questionNumber: ques.questionNumber,
|
|
942
|
+
tenant: ques.tenant,
|
|
943
|
+
secQuestDesc: ques.secQuestDesc
|
|
944
|
+
}, "tenant": "0" }));
|
|
945
|
+
// }
|
|
946
|
+
});
|
|
947
|
+
});
|
|
948
|
+
this.assessmentService.submitAssessmentQuestionPapers(this.requestPayload).subscribe(response => {
|
|
949
|
+
console.log(response);
|
|
950
|
+
if (response != '') {
|
|
951
|
+
const dialogRef = this.dialog.open(QuestSuccessComponent, {
|
|
952
|
+
data: {
|
|
953
|
+
assesmentInstId: 'data'
|
|
954
|
+
},
|
|
955
|
+
disableClose: true
|
|
956
|
+
});
|
|
957
|
+
dialogRef.afterClosed().subscribe((result) => {
|
|
958
|
+
if ((result === null || result === void 0 ? void 0 : result.event) == 'close') {
|
|
959
|
+
window.location.reload();
|
|
960
|
+
}
|
|
961
|
+
});
|
|
962
|
+
}
|
|
963
|
+
});
|
|
964
|
+
console.log(this.requestPayload);
|
|
965
|
+
}
|
|
966
|
+
else {
|
|
967
|
+
console.log("invalid form values");
|
|
968
|
+
}
|
|
969
|
+
}
|
|
970
|
+
getAssessmentDetails() {
|
|
971
|
+
this.assessmentService.getAssessmentQuestionPapers(this.assessmentId).subscribe({
|
|
972
|
+
next: (data) => {
|
|
973
|
+
var _a;
|
|
974
|
+
this.assessmentQuestionPapersList = data === null || data === void 0 ? void 0 : data[0];
|
|
975
|
+
(_a = this.assessmentQuestionPapersList) === null || _a === void 0 ? void 0 : _a.questionPaperSectionList.forEach((qps, index) => {
|
|
976
|
+
let questionIds = qps === null || qps === void 0 ? void 0 : qps.sectionQuestionsList.map((sectionQuestion) => sectionQuestion === null || sectionQuestion === void 0 ? void 0 : sectionQuestion.questionId);
|
|
977
|
+
this.questionIds[index] = questionIds;
|
|
978
|
+
this.getQuestions(this.assessmentId, questionIds, index);
|
|
979
|
+
});
|
|
980
|
+
}
|
|
981
|
+
});
|
|
982
|
+
console.log(this.sectionQuestions);
|
|
983
|
+
}
|
|
984
|
+
getSectionQuestionIds(section) {
|
|
985
|
+
var _a;
|
|
986
|
+
return ((_a = section === null || section === void 0 ? void 0 : section.sectionQuestionsList) === null || _a === void 0 ? void 0 : _a.map((question) => question.questionId)) || [];
|
|
987
|
+
}
|
|
988
|
+
showTooltip(data) {
|
|
989
|
+
if (data === null || data.match(/^ *$/) !== null) {
|
|
990
|
+
return false;
|
|
991
|
+
}
|
|
992
|
+
else {
|
|
993
|
+
return true;
|
|
994
|
+
}
|
|
995
|
+
}
|
|
996
|
+
getTooltipText(data) {
|
|
997
|
+
return data.replace(/<[^>]*>/g, '');
|
|
998
|
+
}
|
|
999
|
+
isQuestionPresentInBank(id) {
|
|
1000
|
+
return this.childQuestionBook.findIndex((prev) => prev.questionId == id);
|
|
1001
|
+
}
|
|
1002
|
+
getchildQuesfrmBook(id) {
|
|
1003
|
+
return this.childQuestionBook.find((child) => child.questionId == id);
|
|
1004
|
+
}
|
|
1005
|
+
getQuestions(assessmentId, questionIdList, index) {
|
|
1006
|
+
this.assessmentService.getAssessmentQuestions(assessmentId, questionIdList).subscribe({
|
|
1007
|
+
next: (questionsList) => {
|
|
1008
|
+
let childQuesList = []; //objective type questions
|
|
1009
|
+
this.finalQuestionList = questionsList;
|
|
1010
|
+
this.sectionQuestions[index] = this.finalQuestionList;
|
|
1011
|
+
console.log('Updated sectionQuestions:', this.sectionQuestions);
|
|
1012
|
+
if (this.sectionQuestions && this.sectionQuestions[index]) {
|
|
1013
|
+
for (var ques of this.sectionQuestions[index]) {
|
|
1014
|
+
if ((ques === null || ques === void 0 ? void 0 : ques.questionType.code) === "QUESTION_TYPE.OBJECTIVE_SUBJECTIVE" || (ques === null || ques === void 0 ? void 0 : ques.questionType.code) === "QUESTION_TYPE.MULTISELECT_SUBJECTIVE") {
|
|
1015
|
+
this.group[`${ques.id}_objective`] = new FormControl(null, [Validators.required]);
|
|
1016
|
+
this.group[`${ques.id}_subjective`] = new FormControl(null, [Validators.required]);
|
|
1017
|
+
}
|
|
1018
|
+
else if ((ques === null || ques === void 0 ? void 0 : ques.questionType.code) === "QUESTION_TYPE.OBJECTIVE" ||
|
|
1019
|
+
(ques === null || ques === void 0 ? void 0 : ques.questionType.code) === "QUESTION_TYPE.SUBJECTIVE_SHORT" ||
|
|
1020
|
+
(ques === null || ques === void 0 ? void 0 : ques.questionType.code) === "QUESTION_TYPE.SUBJECTIVE_LONG" ||
|
|
1021
|
+
(ques === null || ques === void 0 ? void 0 : ques.questionType.code) === "QUESTION_TYPE.DATE" ||
|
|
1022
|
+
(ques === null || ques === void 0 ? void 0 : ques.questionType.code) === "QUESTION_TYPE.NUMBER" ||
|
|
1023
|
+
(ques === null || ques === void 0 ? void 0 : ques.questionType.code) === "QUESTION_TYPE.FILE_UPLOAD" ||
|
|
1024
|
+
(ques === null || ques === void 0 ? void 0 : ques.questionType.code) === "QUESTION_TYPE.MULTISELECT" ||
|
|
1025
|
+
(ques === null || ques === void 0 ? void 0 : ques.questionType.code) === "QUESTION_TYPE.SCALE_RATING" ||
|
|
1026
|
+
(ques === null || ques === void 0 ? void 0 : ques.questionType.code) === "QUESTION_TYPE.SUBJECTIVE_RICH_TEXT" ||
|
|
1027
|
+
(ques === null || ques === void 0 ? void 0 : ques.questionType.code) === "QUESTION_TYPE.SEARCHABLE_INPUT_MDM") {
|
|
1028
|
+
this.group[ques.id] = new FormControl(null, [Validators.required]);
|
|
1029
|
+
}
|
|
1030
|
+
else {
|
|
1031
|
+
}
|
|
1032
|
+
}
|
|
1033
|
+
// this.group[this.editorName] = new FormControl(null, [Validators.required])
|
|
1034
|
+
// this.group[this.formGroupName] = new FormGroup(this.group1)
|
|
1035
|
+
}
|
|
1036
|
+
this.formGroup = new FormGroup(this.group);
|
|
1037
|
+
this.startDate = new Date();
|
|
1038
|
+
//objective type questions
|
|
1039
|
+
questionsList.forEach((item) => {
|
|
1040
|
+
if (item.questionType.code === "QUESTION_TYPE.OBJECTIVE") {
|
|
1041
|
+
item.defaultOptionsList.forEach((option) => {
|
|
1042
|
+
var _a;
|
|
1043
|
+
(_a = option.childQuestionList) === null || _a === void 0 ? void 0 : _a.forEach((id) => {
|
|
1044
|
+
if (this.isQuestionPresentInBank(id) == -1 && !childQuesList.includes(id)) {
|
|
1045
|
+
childQuesList.push(id);
|
|
1046
|
+
}
|
|
1047
|
+
});
|
|
1048
|
+
});
|
|
1049
|
+
}
|
|
1050
|
+
});
|
|
1051
|
+
if (childQuesList.length) {
|
|
1052
|
+
this.fetchChildQues(childQuesList);
|
|
1053
|
+
}
|
|
1054
|
+
}
|
|
1055
|
+
});
|
|
1056
|
+
}
|
|
1057
|
+
configureChild(event) {
|
|
1058
|
+
let childList = event.list;
|
|
1059
|
+
let root_question = event.question;
|
|
1060
|
+
let child;
|
|
1061
|
+
if (childList.length > 0) {
|
|
1062
|
+
childList.forEach((id) => {
|
|
1063
|
+
child = this.getchildQuesfrmBook(id);
|
|
1064
|
+
//add control here
|
|
1065
|
+
this.group[child.question.id] = new FormControl(null, [Validators.required]);
|
|
1066
|
+
this.formGroup = new FormGroup(this.group);
|
|
1067
|
+
});
|
|
1068
|
+
}
|
|
1069
|
+
this.finalQuestionList.forEach((question) => {
|
|
1070
|
+
if (question.id === root_question.id) {
|
|
1071
|
+
if (!this.finalQuestionList.includes(child.question)) {
|
|
1072
|
+
this.finalQuestionList.splice(this.finalQuestionList.indexOf(question) + 1, 0, child.question);
|
|
1073
|
+
}
|
|
1074
|
+
}
|
|
1075
|
+
});
|
|
1076
|
+
this.cdr.detectChanges();
|
|
1077
|
+
console.log('finalquestionlist' + JSON.stringify(this.finalQuestionList));
|
|
1078
|
+
}
|
|
1079
|
+
fetchChildQues(childQuesList) {
|
|
1080
|
+
this.assessmentService.getChildQuestionsWithIdList(this.assessmentId, childQuesList).subscribe((response) => {
|
|
1081
|
+
let questionList = response;
|
|
1082
|
+
childQuesList = [];
|
|
1083
|
+
questionList.forEach((item) => {
|
|
1084
|
+
item['userResponse'] = '';
|
|
1085
|
+
item['multiSelectResponse'] = '';
|
|
1086
|
+
this.childQuestionBook.push({
|
|
1087
|
+
question: item,
|
|
1088
|
+
questionId: item.id,
|
|
1089
|
+
isMandatory: true
|
|
1090
|
+
});
|
|
1091
|
+
if (item.questionType.code === "QUESTION_TYPE.OBJECTIVE") {
|
|
1092
|
+
item.defaultOptionsList.forEach((option) => {
|
|
1093
|
+
var _a;
|
|
1094
|
+
(_a = option.childQuestionList) === null || _a === void 0 ? void 0 : _a.forEach((id) => {
|
|
1095
|
+
if (this.isQuestionPresentInBank(id) == -1 && !childQuesList.includes(id)) {
|
|
1096
|
+
childQuesList.push(id);
|
|
1097
|
+
}
|
|
1098
|
+
});
|
|
1099
|
+
});
|
|
1100
|
+
}
|
|
1101
|
+
});
|
|
1102
|
+
if (childQuesList.length) {
|
|
1103
|
+
this.fetchChildQues(childQuesList);
|
|
1104
|
+
}
|
|
1105
|
+
}, (error) => {
|
|
1106
|
+
console.error('Error fetching child questions:', error);
|
|
1107
|
+
throw error;
|
|
1108
|
+
});
|
|
1109
|
+
}
|
|
1110
|
+
scrollToSection(index) {
|
|
1111
|
+
const section = document.getElementById(`section-${index}`);
|
|
1112
|
+
section === null || section === void 0 ? void 0 : section.scrollIntoView({ behavior: 'smooth', block: 'start' });
|
|
1113
|
+
}
|
|
1114
|
+
}
|
|
1115
|
+
QuestWizardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: QuestWizardComponent, deps: [{ token: AssessmentTakerService }, { token: AssessmentIdService }, { token: i3.FormBuilder }, { token: i1$1.MatDialog }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
1116
|
+
QuestWizardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: QuestWizardComponent, selector: "lib-quest-wizard", inputs: { assessmentId: "assessmentId" }, usesOnChanges: true, ngImport: i0, template: "<link id=\"variableThemeLink\" rel=\"stylesheet\" href=\"../../../assets/theme/variables.css\">\r\n<div class=\"questions-container\">\r\n <img src=\"assets/images/assessment-placeholder-2.png\" class=\"cover-image\" />\r\n <div *ngIf=\"assessmentQuestionPapersList\" class=\"questions-body-container\">\r\n <form class=\"form\" [formGroup]=\"formGroup\" (ngSubmit)=\"submitTask()\" novalidate>\r\n <ng-container *ngFor=\"let section of assessmentQuestionPapersList?.questionPaperSectionList; let i=index\" ><mat-chip class=\"chips-padding\" (click)=\"scrollToSection(i)\" >{{section?.qpsName[0]?.text}}</mat-chip></ng-container>\r\n <ng-container *ngFor=\"let section of assessmentQuestionPapersList?.questionPaperSectionList; let i=index\" >\r\n <div [id]=\"'section-' + i\" class=\"section-header\">\r\n <p class=\"section-header-text\">{{section?.qpsName[0]?.text}}</p>\r\n </div>\r\n <div *ngFor=\"let question of sectionQuestions[i]; let j=index\" class=\"answer-cube\">\r\n <p class=\"assessment-text-grey-nine assessment-text-semibold-18\">\r\n {{j+1}}. {{question.questionText[0]?.text}}\r\n <span class=\"mandatory\" *ngIf=\"question['isMandatory']\">*</span>\r\n <span class=\"tooltipspan\" *ngIf=\"showTooltip(question.questionSubText[0]?.text)\">\r\n <img src=\"assets/images/new_tooltip.jpg\" matTooltipClass=\"danger-tooltip\" matTooltipPosition=\"above\" class=\"tooltip-image\"\r\n matTooltip=\"{{question.questionSubText[0]?.text}}\" />\r\n </span>\r\n </p>\r\n <div class=\"answer-input\" *ngIf=\"question.questionType.code === 'QUESTION_TYPE.OBJECTIVE'\">\r\n <lib-question-type-objective [optionsList]=\"question\" (viewChild)=\"configureChild($event)\"\r\n [formControlName]=\"question.id\" [required]=\"true\"></lib-question-type-objective>\r\n </div>\r\n <div class=\"answer-input\" *ngIf=\"question?.questionType?.code === 'QUESTION_TYPE.SUBJECTIVE_SHORT'\">\r\n <lib-question-type-short [optionsList]=\"question\" [formControlName]=\"question.id\" [required]=\"true\"></lib-question-type-short>\r\n </div>\r\n <div class=\"answer-input\" *ngIf=\"question?.questionType?.code === 'QUESTION_TYPE.SUBJECTIVE_LONG'\">\r\n <lib-question-type-long [formControlName]=\"question.id\" [fieldAttributes]=\"question\" [required]=\"true\"></lib-question-type-long>\r\n <!-- <lib-question-type-editor [formControlName]=\"question.id\" [config]=\"config\" fieldAttributes=\"question\" [required]=\"true\"></lib-question-type-editor> -->\r\n </div>\r\n <div class=\"answer-input\" *ngIf=\"question.questionType.code === 'QUESTION_TYPE.DATE'\">\r\n <lib-question-type-date [formControlName]=\"question.id\" [required]=\"true\"></lib-question-type-date>\r\n </div>\r\n <div class=\"answer-input\" *ngIf=\"question.questionType.code === 'QUESTION_TYPE.NUMBER'\">\r\n <lib-question-type-number [optionsList]=\"question\" [formControlName]=\"question.id\" [required]=\"true\"></lib-question-type-number>\r\n </div>\r\n <div class=\"answer-input\" *ngIf=\"question.questionType.code === 'QUESTION_TYPE.FILE_UPLOAD'\">\r\n <lib-question-type-upload-file [formControlName]=\"question.id\" [required]=\"true\"></lib-question-type-upload-file>\r\n </div>\r\n <div class=\"answer-input\" *ngIf=\"question.questionType.code === 'QUESTION_TYPE.MULTISELECT'\">\r\n <lib-question-type-multiselect [optionsList]=\"question\" [formControlName]=\"question.id\" [required]=\"true\"></lib-question-type-multiselect>\r\n </div>\r\n <div class=\"answer-input\" \r\n *ngIf=\"question.questionType.code === 'QUESTION_TYPE.OBJECTIVE_SUBJECTIVE'\">\r\n <!-- <lib-question-type-objective-sub [optionsList]=\"question\" [formControlName]=\"question.id\" [required]=\"true\"></lib-question-type-objective-sub> -->\r\n <!-- <lib-question-type-objective-sub [optionsList]=\"question\" [formGroupName]=\"question.id\" [fieldAttributes]=\"question\" [required]=\"true\"></lib-question-type-objective-sub> -->\r\n <lib-question-type-objective [optionsList]=\"question\" formControlName=\"{{question.id}}_objective\" [required]=\"true\"></lib-question-type-objective>\r\n <lib-question-type-short [optionsList]=\"question\" formControlName=\"{{question.id}}_subjective\" [required]=\"true\"></lib-question-type-short>\r\n </div>\r\n <div class=\"answer-input\"\r\n *ngIf=\"question.questionType.code === 'QUESTION_TYPE.MULTISELECT_SUBJECTIVE'\">\r\n <!-- <lib-question-type-multiselect-sub [optionsList]=\"question\" [formControlName]=\"question.id\" [required]=\"true\"></lib-question-type-multiselect-sub> -->\r\n <lib-question-type-multiselect [optionsList]=\"question\" formControlName=\"{{question.id}}_objective\" [required]=\"true\"></lib-question-type-multiselect>\r\n <lib-question-type-short [optionsList]=\"question\" formControlName=\"{{question.id}}_subjective\" [required]=\"true\"></lib-question-type-short>\r\n </div>\r\n <div class=\"answer-input\" *ngIf=\"question.questionType.code === 'QUESTION_TYPE.SCALE_RATING'\">\r\n <lib-question-type-rating [optionsList]=\"question\" [formControlName]=\"question.id\" [required]=\"true\"></lib-question-type-rating>\r\n </div>\r\n <div class=\"answer-input\" *ngIf=\"question?.questionType?.code === 'QUESTION_TYPE.SUBJECTIVE_RICH_TEXT'\">\r\n <lib-question-type-editor [formControlName]=\"question.id\" [config]=\"config\" fieldAttributes=\"question\" [required]=\"true\"></lib-question-type-editor>\r\n </div>\r\n <div class=\"answer-input\" *ngIf=\"question?.questionType?.code === 'QUESTION_TYPE.SEARCHABLE_INPUT_MDM'\">\r\n <lib-question-type-searchable-tag [optionsList]=\"question\" [formControlName]=\"question.id\" fieldAttributes=\"question\" [required]=\"true\"></lib-question-type-searchable-tag>\r\n </div>\r\n </div>\r\n </ng-container>\r\n <section>\r\n <div class=\"example-button-row\">\r\n <button mat-flat-button type=\"submit\" [disabled]=\"!formGroup.valid\">Submit</button>\r\n </div>\r\n </section>\r\n </form>\r\n </div>\r\n</div>", styles: [".questions-container{width:66.66%;margin:auto;box-shadow:0 3px 6px #00000029}.chips-padding{margin:.125rem .313rem}.cover-image{width:100%;object-fit:cover}.section-header{padding-bottom:1rem;padding-top:2rem}.section-header-text{font-size:700;font-weight:24px}.questions-body-container{padding:2rem}.answer-cube{padding-bottom:2.5rem}.section-header{font-size:32px;font-weight:600}\n", ":root{--assessment-text-color: #1e1e1e;--assessment-text-secondary-color: #2e2e2e;--assessment-white: #ffffff;--assessment-black: #000000;--assessment-grey-nintyone: #00000045;--assessment-grey-ninty: #dadce04d;--assessment-grey-eighteen: #F5F5F5;--assessment-grey-seventeen: #495057;--assessment-grey-sixteen: #707070;--assessment-grey-fifteen: #0000000D;--assessment-grey-fourteen: #FDFDFD;--assessment-grey-thirteen: #505050;--assessment-grey-twelve: #d4d4d4;--assessment-grey-eleven: #eef2f7;--assessment-grey-ten: #202124;--assessment-grey-nine: #3c4043;--assessment-grey-eight: #5f6368;--assessment-grey-seven: #80868b;--assessment-grey-six: #9aa0a6;--assessment-grey-five: #bdc9d3;--assessment-grey-four: #dadce0;--assessment-grey-three: #e8eaed;--assessment-grey-two: #f1f3f4;--assessment-grey-one: #f8f9fa;--assessment-palette-one: #725cc6;--assessment-palette-two: #5941b54d;--assessment-palette-three: #52B6E0;--assessment-palette-four: #FE795B;--assessment-palette-five: #4D89EB33;--assessment-palette-six: #19CEA1;--assessment-palette-seven: #56C2BB;--assessment-palette-eight: #D7A5D1;--assessment-palette-nine: #725cc61a;--assessment-palette-nine: #106AD21A;--assessment-palette-ten: #894FD1;--assessment-palette-eleven: #EFBD3C;--assessment-palette-twelve: #3D77EE1A;--assessment-palette-thirteen: #F1F1F1;--assessment-palette-fourteen: #725CC61A;--assessment-palette-fifteen: #3D77EE;--assessment-palette-sixteen: #725CC667;--assessment-palette-seventeen: #0000000F;--assessment-palette-eighteen: #F8F8F8;--assessment-palette-ninteen: #e2e2e2;--assessment-palette-twenty: #0000001a;--assessment-palette-twentyone: #00000029;--assessment-palette-twentythree: #9266d533;--assessment-palette-twentyfour: #cbcbcb;--assessment-palette-twentyfive: #ced4da;--assessment-palette-twentysix: #687C97;--assessment-palette-twentyseven: #FDFDFD;--assessment-palette-twentyeight: #00000002;--assessment-palette-twentynine: #7070701A;--assessment-palette-thirty: #EEAE1D;--assessment-palette-thirtyone: #bababa;--assessment-palette-thirtytwo: #0e103f;--assessment-palette-thirtythree: #0e103f;--assessment-palette-thirtyfour: #ffae2c;--assessment-palette-thirtyfive: #565264;--assessment-palette-thirtysix: #B5E0FF;--assessment-palette-thirtyseven: #F9FBFD;--assessment-palette-thirtytwo: #70707033;--assessment-palette-thirtythree: #EDF2F6;--assessment-palette-thirtyeight:#FFC400;--assessment-palette-thirtynine:#FF9102;--assessment-palette-fourty:#F6F9FE;--assessment-palette-fourtyone:#ededed;--assessment-palette-fourtytwo:#E7646F;--assessment-palette-fourtythree:#F06E1D;--assessment-palette-fourtyfour:#8A9AED;--assessment-palette-fourtyfive:#F5C571;--assessment-palette-fourtysix:#DD6012;--assessment-palette-fourtyseven:#f5c5711a;--assessment-palette-fourtyeight:#44B179;--assessment-palette-thirtyeight: #FFC400;--assessment-palette-thirtynine: #FF9102;--assessment-palette-forty: #73B6EA;--assessment-palette-fortyone: #73B6EA1a;--assessment-palette-fortytwo:#ED6F66;--assessment-palette-fortythree:#ED6F661a;--assessment-palette-fortyfour:#35B8E0;--assessment-palette-fortyfive:#FF5B5B;--assessment-palette-fortysix:#FF3B30;--assessment-palette-fortyseven:#b0c256;--assessment-palette-fortyeight:#567ec2;--assessment-palette-fortynine:#8C8CFF;--assessment-palette-fifty:#F3F3FF;--assessment-palette-fiftyone:#A1BEFF;--assessment-palette-fiftytwo:#4D89EB10;--assessment-palette-fiftythree:#dcdcdc45;--assessment-palette-fiftyfour:#FCBE35;--assessment-palette-fiftyfive:#78C89F;--assessment-palette-fiftysix:#F5A570;--assessment-palette-fiftyseven:#F47D32;--assessment-palette-fiftyeight:#FDFBFBC4;--assessment-palette-fiftynine:#EBEDEE80;--assessment-palette-sixty:#343a40;--assessment-palette-sixtyone:#e5e7e9;--assessment-palette-sixtytwo:#858383;--assessment-palette-sixtythree:#757575;--assessment-palette-sixtyfour:#C6C6C6;--assessment-palette-sixtyfive:#7476ED;--assessment-palette-sixtysix:#2A50A4;--assessment-palette-sixtyseven:#5C87E4;--assessment-palette-sixtyeight:#FFFFFF1A;--assessment-palette-sixtynine:#FFFFFFA6;--assessment-palette-seventy:#00000080;--assessment-palette-seventyone:#0A0A0A;--assessment-palette-seventytwo:#333333;--assessment-palette-seventythree:#125DFF;--assessment-palette-seventyfour:#999999;--assessment-palette-seventyfive:#147AD6;--assessment-palette-seventysix:#979797;--assessment-palette-seventyseven:#8d8d8d;--assessment-palette-seventyeight: #323A46;--assessment-palette-seventynine: #dad7d7;--assessment-palette-eighty: #E56F8C;--assessment-palette-eightyone: #E85E4A;--assessment-palette-eightytwo: #87D1AD;--assessment-palette-eightythree: #F8C73B;--assessment-palette-eightyfour: #bdc1c6;--assessment-palette-eightyfive: #00000033;--assessment-palette-eightysix: #ffffffb3;--assessment-palette-eightyseven: #7d95c9;--assessment-palette-eightyeight: #7476ed1f;--assessment-palette-eightynine: #fafbff;--assessment-palette-ninety: #64c2db;--assessment-palette-ninetyone: #7476ed33;--assessment-palette-ninetytwo: #cccccc;--assessment-palette-ninetythree: #7476ed66;--assessment-palette-ninetyfour: #52b6e01a;--assessment-palette-ninetyfive: #0056b3;--assessment-palette-ninetysix: #F1F1FD;--assessment-palette-ninetyseven: #cbc6c6;--assessment-palette-ninetyeight: #007A86;--assessment-palette-ninetynine: #7476ED0F;--assessment-palette-hundred: #7476ED80;--assessment-palette-onehundredone: #e0e0e0;--assessment-palette-onehundredtwo: #7fffd4;--assessment-palette-onehundredthree: #d3d3d3;--assessment-palette-onehundredfour: #1E2222;--assessment-palette-onehundredfive: #ffffff4d;--assessment-palette-onehundredsix: #7476ed1a;--assessment-palette-onehundredseven: #b0c4de;--assessment-palette-onehundredeight: #f7f7f7;--assessment-palette-onehundrednine: #D3E2FC;--assessment-palette-onehundredten: #FF3E58;--assessment-palette-onehundredeleven: #000000de;--assessment-palette-onehundredtwelve: #5D5D5D;--assessment-palette-onehundredthirteen: #04aa6d;--assessment-palette-onehundredfourteen: #D6DBDB;--assessment-palette-onehundredfifteen: #FEF5FF;--assessment-palette-onehundredsixteen: #11143D;--assessment-palette-onehundredseventeen: #b5b5b5;--assessment-palette-onehundredeighteen: #62B79A;--assessment-palette-onehundrednighteen:#E73A2C;--assessment-palette-onehundredtwenty:#FFCE7A;--assessment-palette-onehundredtwentyone:#0000001f;--assessment-palette-onehundredtwentytwo:#55AA7E;--assessment-palette-onehundredtwentythree:#7375ed4d;--assessment-red:#ff0000;--assessment-green: #008000;--assessment-blue:#0000ff;--assessment-dark-red: #E83628;--assessment-golden:#E9CC5A;--assessment-success: #34a853;--assessment-success-bg: #34a8531a;--assessment-success-secondary: #8bc34a;--assessment-success-secondary-bg: #8bc34a1a;--assessment-danger-two: #fff1f1;--assessment-danger: #ff5252;--assessment-danger-bg: #ff52521a;--assessment-warning: #ffa600;--assessment-warning-bg: #ffa6001a;--assessment-warm: #6b71e5;--assessment-link-text: #301f56;--assessment-warm-bg: #6b71e51a;--assessment-primary-light: #0091ff;--assessment-primary-light-bg: #0091ff1a;--assessment-secondary-bg: #f8f9fa;--assessment-placeholder-color: #e18a22;--assessment-primary-one: #4d89eb;--assessment-primary-two: #323a46;--assessment-primary-three: #00000014;--assessment-primary-four: #295EB7;--assessment-primary-five: #F2F7FF;--assessment-linear-gradient-one: transparent linear-gradient(180deg, #e2dafd 0%, #d6cbfc 100%) 0% 0% no-repeat padding-box;--assessment-linear-gradient-two: transparent linear-gradient(180deg, #F19B96 0%, #ED6F66 100%) no-repeat padding-box;--assessment-linear-gradient-three: transparent linear-gradient(180deg, #81D2F2 0%, #52B6E0 100%) 0% 0% no-repeat padding-box;--assessment-linear-gradient-four: transparent linear-gradient(180deg, #4D89EB 0%, #295EB7 100%) 0% 0% no-repeat padding-box;--assessment-box-shadow-one: 0px 3px 6px #00000008;--assessment-box-shadow-two: 0px 3px 6px #0000000f;--assessment-box-shadow-three: 0px 6px 12px #00000008;--assessment-box-shadow-four: 0px 6px 12px #0000000f;--assessment-box-shadow-five: 0px 0px 12px #0000000f;--assessment-box-shadow-six: 0px 2px 4px #0000001a;--assessment-box-shadow-seven: 0px 1px 5px #00000029;--assessment-box-shadow-eight: 0px 6px 6px #00000008;--assessment-box-shadow-nine: 0px 6px 12px #00000010;--assessment-box-shadow-ten: 0px 12px 22px #725cc614;--assessment-box-shadow-inset-one: inset 0px 0px 18px #0000001a;--assessment-border-radius-one: 4px;--assessment-border-radius-two: 8px;--assessment-border-radius-three: 10px;--assessment-border-radius-four: 12px;--assessment-border-radius-five: 16px;--assessment-border-radius-six: 20px;--assessment-border-radius-seven: 32px;--assessment-border-radius-rounded: 50%;--assessment-header-height: 5vh;--filter-purple:invert(42%) sepia(74%) saturate(692%) hue-rotate(205deg) brightness(100%) contrast(86%);--app-theme-based-color: #202124;--app-theme-based-one: #3c4043;--app-theme-based-two:#7476ED }.mat-dialog-actions{display:grid!important}.mat-dialog-title,.mat-dialog-content{text-align:center}.mat-dialog-actions button{background-color:var(--assessment-blue)!important;color:var(--assessment-danger-two)!important}::ng-deep .mat-mdc-tooltip{transform:scale(1.5)!important;position:relative!important}.danger-tooltip{background-color:var(--assessment-blue)!important;font-size:13px!important;font-weight:500;--mdc-plain-tooltip-container-color: var(--assessment-blue);--mdc-plain-tooltip-supporting-text-color: var(--assessment-danger-two) !important;--mdc-plain-tooltip-supporting-text-size: 13px;--mdc-plain-tooltip-supporting-text-weight: 500 !important;--mdc-plain-tooltip-supporting-text-tracing: .033333333em}.mat-tooltip{overflow:visible!important}.danger-tooltip:after{content:\"\";position:absolute;top:100%;left:50%;margin-left:-4px;border-width:5px;border-style:solid;border-color:var(--assessment-blue) transparent transparent transparent}.mat-radio-button.mat-accent .mat-radio-inner-circle,.mat-radio-button.mat-accent .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple),.mat-radio-button.mat-accent.mat-radio-checked .mat-radio-persistent-ripple,.mat-radio-button.mat-accent:active .mat-radio-persistent-ripple{background-color:var(--assessment-blue)!important}.mat-checkbox-checked:not(.mat-checkbox-disabled).mat-accent .mat-ripple-element,.mat-checkbox:active:not(.mat-checkbox-disabled).mat-accent .mat-ripple-element{background:var(--assessment-blue)!important}.mat-checkbox-indeterminate.mat-accent .mat-checkbox-background,.mat-checkbox-checked.mat-accent .mat-checkbox-background{background:var(--assessment-blue)!important}.mat-radio-button.mat-accent.mat-radio-checked .mat-radio-outer-circle{border-color:var(--assessment-blue)!important}.example-button-row .mat-flat-button{color:var(--assessment-danger-two, var(--assessment-danger-two));background-color:var(--assessment-blue)}.example-button-row{display:table-cell;max-width:600px}.example-button-row .mat-mdc-button-base{margin:8px 8px 8px 0}.tooltip-image{display:inline-block;vertical-align:middle;width:15px;height:15px}.radimatc{margin-top:20px}.example-radio-button,.example-margin{display:block!important;margin:10px}.example-full-width{width:78%}.mat-button-toggle-checked{background-color:var(--assessment-blue)!important;color:var(--assessment-danger-two)!important}.custmattog{box-shadow:none!important}.mat-button-toggle{padding:5px;white-space:nowrap;position:relative;background-color:var(--assessment-grey-four);border-radius:20px;margin:5px;color:var(--assessment-black)}.textarea-tag{font-family:assessment-Medium;font-size:14px;width:75%;border-left:none;border-right:none;border-top:none;outline:none;padding:.75rem;border-bottom:2px solid rgb(118,118,118)}.textarea-tag:focus{border-color:var(--assessment-blue)}.input-tag{font-family:assessment-Medium;font-size:14px;width:75%;border-left:none;border-right:none;border-top:none;outline:none;padding:.75rem}.input-tag:focus{border-color:var(--assessment-blue)}.divider{display:flex;justify-content:center;align-items:center;width:100%;margin-top:2rem;margin-bottom:2rem}.radio-group,.checkbox-group{display:flex;flex-direction:column;gap:1rem}.datesty{width:78%}.datesty input{width:92%}\n"], components: [{ type: QuestionTypeObjectiveComponent, selector: "lib-question-type-objective", inputs: ["required", "optionsList"], outputs: ["viewChild"] }, { type: QuestionTypeShortComponent, selector: "lib-question-type-short", inputs: ["optionsList", "required"] }, { type: QuestionTypeLongComponent, selector: "lib-question-type-long", inputs: ["required", "optionsList", "fieldAttributes", "config"] }, { type: QuestionTypeDateComponent, selector: "lib-question-type-date", inputs: ["required"] }, { type: QuestionTypeNumberComponent, selector: "lib-question-type-number", inputs: ["required", "optionsList"] }, { type: QuestionTypeUploadFileComponent, selector: "lib-question-type-upload-file", inputs: ["required"] }, { type: QuestionTypeMultiselectComponent, selector: "lib-question-type-multiselect", inputs: ["required", "optionsList"] }, { type: QuestionTypeRatingComponent, selector: "lib-question-type-rating", inputs: ["required", "optionsList"] }, { type: QuestionTypeEditorComponent, selector: "lib-question-type-editor", inputs: ["required", "optionsList", "fieldAttributes", "config"] }, { type: QuestionTypeSearchableTagComponent, selector: "lib-question-type-searchable-tag", inputs: ["required", "optionsList", "fieldAttributes"] }, { type: i2.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], directives: [{ type: i7.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i3.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i7.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i3$1.MatChip, selector: "mat-basic-chip, [mat-basic-chip], mat-chip, [mat-chip]", inputs: ["color", "disableRipple", "tabIndex", "selected", "value", "selectable", "disabled", "removable"], outputs: ["selectionChange", "destroyed", "removed"], exportAs: ["matChip"] }, { type: i18.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i3.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { type: i3.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }] });
|
|
1117
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: QuestWizardComponent, decorators: [{
|
|
1118
|
+
type: Component,
|
|
1119
|
+
args: [{ selector: 'lib-quest-wizard', template: "<link id=\"variableThemeLink\" rel=\"stylesheet\" href=\"../../../assets/theme/variables.css\">\r\n<div class=\"questions-container\">\r\n <img src=\"assets/images/assessment-placeholder-2.png\" class=\"cover-image\" />\r\n <div *ngIf=\"assessmentQuestionPapersList\" class=\"questions-body-container\">\r\n <form class=\"form\" [formGroup]=\"formGroup\" (ngSubmit)=\"submitTask()\" novalidate>\r\n <ng-container *ngFor=\"let section of assessmentQuestionPapersList?.questionPaperSectionList; let i=index\" ><mat-chip class=\"chips-padding\" (click)=\"scrollToSection(i)\" >{{section?.qpsName[0]?.text}}</mat-chip></ng-container>\r\n <ng-container *ngFor=\"let section of assessmentQuestionPapersList?.questionPaperSectionList; let i=index\" >\r\n <div [id]=\"'section-' + i\" class=\"section-header\">\r\n <p class=\"section-header-text\">{{section?.qpsName[0]?.text}}</p>\r\n </div>\r\n <div *ngFor=\"let question of sectionQuestions[i]; let j=index\" class=\"answer-cube\">\r\n <p class=\"assessment-text-grey-nine assessment-text-semibold-18\">\r\n {{j+1}}. {{question.questionText[0]?.text}}\r\n <span class=\"mandatory\" *ngIf=\"question['isMandatory']\">*</span>\r\n <span class=\"tooltipspan\" *ngIf=\"showTooltip(question.questionSubText[0]?.text)\">\r\n <img src=\"assets/images/new_tooltip.jpg\" matTooltipClass=\"danger-tooltip\" matTooltipPosition=\"above\" class=\"tooltip-image\"\r\n matTooltip=\"{{question.questionSubText[0]?.text}}\" />\r\n </span>\r\n </p>\r\n <div class=\"answer-input\" *ngIf=\"question.questionType.code === 'QUESTION_TYPE.OBJECTIVE'\">\r\n <lib-question-type-objective [optionsList]=\"question\" (viewChild)=\"configureChild($event)\"\r\n [formControlName]=\"question.id\" [required]=\"true\"></lib-question-type-objective>\r\n </div>\r\n <div class=\"answer-input\" *ngIf=\"question?.questionType?.code === 'QUESTION_TYPE.SUBJECTIVE_SHORT'\">\r\n <lib-question-type-short [optionsList]=\"question\" [formControlName]=\"question.id\" [required]=\"true\"></lib-question-type-short>\r\n </div>\r\n <div class=\"answer-input\" *ngIf=\"question?.questionType?.code === 'QUESTION_TYPE.SUBJECTIVE_LONG'\">\r\n <lib-question-type-long [formControlName]=\"question.id\" [fieldAttributes]=\"question\" [required]=\"true\"></lib-question-type-long>\r\n <!-- <lib-question-type-editor [formControlName]=\"question.id\" [config]=\"config\" fieldAttributes=\"question\" [required]=\"true\"></lib-question-type-editor> -->\r\n </div>\r\n <div class=\"answer-input\" *ngIf=\"question.questionType.code === 'QUESTION_TYPE.DATE'\">\r\n <lib-question-type-date [formControlName]=\"question.id\" [required]=\"true\"></lib-question-type-date>\r\n </div>\r\n <div class=\"answer-input\" *ngIf=\"question.questionType.code === 'QUESTION_TYPE.NUMBER'\">\r\n <lib-question-type-number [optionsList]=\"question\" [formControlName]=\"question.id\" [required]=\"true\"></lib-question-type-number>\r\n </div>\r\n <div class=\"answer-input\" *ngIf=\"question.questionType.code === 'QUESTION_TYPE.FILE_UPLOAD'\">\r\n <lib-question-type-upload-file [formControlName]=\"question.id\" [required]=\"true\"></lib-question-type-upload-file>\r\n </div>\r\n <div class=\"answer-input\" *ngIf=\"question.questionType.code === 'QUESTION_TYPE.MULTISELECT'\">\r\n <lib-question-type-multiselect [optionsList]=\"question\" [formControlName]=\"question.id\" [required]=\"true\"></lib-question-type-multiselect>\r\n </div>\r\n <div class=\"answer-input\" \r\n *ngIf=\"question.questionType.code === 'QUESTION_TYPE.OBJECTIVE_SUBJECTIVE'\">\r\n <!-- <lib-question-type-objective-sub [optionsList]=\"question\" [formControlName]=\"question.id\" [required]=\"true\"></lib-question-type-objective-sub> -->\r\n <!-- <lib-question-type-objective-sub [optionsList]=\"question\" [formGroupName]=\"question.id\" [fieldAttributes]=\"question\" [required]=\"true\"></lib-question-type-objective-sub> -->\r\n <lib-question-type-objective [optionsList]=\"question\" formControlName=\"{{question.id}}_objective\" [required]=\"true\"></lib-question-type-objective>\r\n <lib-question-type-short [optionsList]=\"question\" formControlName=\"{{question.id}}_subjective\" [required]=\"true\"></lib-question-type-short>\r\n </div>\r\n <div class=\"answer-input\"\r\n *ngIf=\"question.questionType.code === 'QUESTION_TYPE.MULTISELECT_SUBJECTIVE'\">\r\n <!-- <lib-question-type-multiselect-sub [optionsList]=\"question\" [formControlName]=\"question.id\" [required]=\"true\"></lib-question-type-multiselect-sub> -->\r\n <lib-question-type-multiselect [optionsList]=\"question\" formControlName=\"{{question.id}}_objective\" [required]=\"true\"></lib-question-type-multiselect>\r\n <lib-question-type-short [optionsList]=\"question\" formControlName=\"{{question.id}}_subjective\" [required]=\"true\"></lib-question-type-short>\r\n </div>\r\n <div class=\"answer-input\" *ngIf=\"question.questionType.code === 'QUESTION_TYPE.SCALE_RATING'\">\r\n <lib-question-type-rating [optionsList]=\"question\" [formControlName]=\"question.id\" [required]=\"true\"></lib-question-type-rating>\r\n </div>\r\n <div class=\"answer-input\" *ngIf=\"question?.questionType?.code === 'QUESTION_TYPE.SUBJECTIVE_RICH_TEXT'\">\r\n <lib-question-type-editor [formControlName]=\"question.id\" [config]=\"config\" fieldAttributes=\"question\" [required]=\"true\"></lib-question-type-editor>\r\n </div>\r\n <div class=\"answer-input\" *ngIf=\"question?.questionType?.code === 'QUESTION_TYPE.SEARCHABLE_INPUT_MDM'\">\r\n <lib-question-type-searchable-tag [optionsList]=\"question\" [formControlName]=\"question.id\" fieldAttributes=\"question\" [required]=\"true\"></lib-question-type-searchable-tag>\r\n </div>\r\n </div>\r\n </ng-container>\r\n <section>\r\n <div class=\"example-button-row\">\r\n <button mat-flat-button type=\"submit\" [disabled]=\"!formGroup.valid\">Submit</button>\r\n </div>\r\n </section>\r\n </form>\r\n </div>\r\n</div>", styles: [".questions-container{width:66.66%;margin:auto;box-shadow:0 3px 6px #00000029}.chips-padding{margin:.125rem .313rem}.cover-image{width:100%;object-fit:cover}.section-header{padding-bottom:1rem;padding-top:2rem}.section-header-text{font-size:700;font-weight:24px}.questions-body-container{padding:2rem}.answer-cube{padding-bottom:2.5rem}.section-header{font-size:32px;font-weight:600}\n", ":root{--assessment-text-color: #1e1e1e;--assessment-text-secondary-color: #2e2e2e;--assessment-white: #ffffff;--assessment-black: #000000;--assessment-grey-nintyone: #00000045;--assessment-grey-ninty: #dadce04d;--assessment-grey-eighteen: #F5F5F5;--assessment-grey-seventeen: #495057;--assessment-grey-sixteen: #707070;--assessment-grey-fifteen: #0000000D;--assessment-grey-fourteen: #FDFDFD;--assessment-grey-thirteen: #505050;--assessment-grey-twelve: #d4d4d4;--assessment-grey-eleven: #eef2f7;--assessment-grey-ten: #202124;--assessment-grey-nine: #3c4043;--assessment-grey-eight: #5f6368;--assessment-grey-seven: #80868b;--assessment-grey-six: #9aa0a6;--assessment-grey-five: #bdc9d3;--assessment-grey-four: #dadce0;--assessment-grey-three: #e8eaed;--assessment-grey-two: #f1f3f4;--assessment-grey-one: #f8f9fa;--assessment-palette-one: #725cc6;--assessment-palette-two: #5941b54d;--assessment-palette-three: #52B6E0;--assessment-palette-four: #FE795B;--assessment-palette-five: #4D89EB33;--assessment-palette-six: #19CEA1;--assessment-palette-seven: #56C2BB;--assessment-palette-eight: #D7A5D1;--assessment-palette-nine: #725cc61a;--assessment-palette-nine: #106AD21A;--assessment-palette-ten: #894FD1;--assessment-palette-eleven: #EFBD3C;--assessment-palette-twelve: #3D77EE1A;--assessment-palette-thirteen: #F1F1F1;--assessment-palette-fourteen: #725CC61A;--assessment-palette-fifteen: #3D77EE;--assessment-palette-sixteen: #725CC667;--assessment-palette-seventeen: #0000000F;--assessment-palette-eighteen: #F8F8F8;--assessment-palette-ninteen: #e2e2e2;--assessment-palette-twenty: #0000001a;--assessment-palette-twentyone: #00000029;--assessment-palette-twentythree: #9266d533;--assessment-palette-twentyfour: #cbcbcb;--assessment-palette-twentyfive: #ced4da;--assessment-palette-twentysix: #687C97;--assessment-palette-twentyseven: #FDFDFD;--assessment-palette-twentyeight: #00000002;--assessment-palette-twentynine: #7070701A;--assessment-palette-thirty: #EEAE1D;--assessment-palette-thirtyone: #bababa;--assessment-palette-thirtytwo: #0e103f;--assessment-palette-thirtythree: #0e103f;--assessment-palette-thirtyfour: #ffae2c;--assessment-palette-thirtyfive: #565264;--assessment-palette-thirtysix: #B5E0FF;--assessment-palette-thirtyseven: #F9FBFD;--assessment-palette-thirtytwo: #70707033;--assessment-palette-thirtythree: #EDF2F6;--assessment-palette-thirtyeight:#FFC400;--assessment-palette-thirtynine:#FF9102;--assessment-palette-fourty:#F6F9FE;--assessment-palette-fourtyone:#ededed;--assessment-palette-fourtytwo:#E7646F;--assessment-palette-fourtythree:#F06E1D;--assessment-palette-fourtyfour:#8A9AED;--assessment-palette-fourtyfive:#F5C571;--assessment-palette-fourtysix:#DD6012;--assessment-palette-fourtyseven:#f5c5711a;--assessment-palette-fourtyeight:#44B179;--assessment-palette-thirtyeight: #FFC400;--assessment-palette-thirtynine: #FF9102;--assessment-palette-forty: #73B6EA;--assessment-palette-fortyone: #73B6EA1a;--assessment-palette-fortytwo:#ED6F66;--assessment-palette-fortythree:#ED6F661a;--assessment-palette-fortyfour:#35B8E0;--assessment-palette-fortyfive:#FF5B5B;--assessment-palette-fortysix:#FF3B30;--assessment-palette-fortyseven:#b0c256;--assessment-palette-fortyeight:#567ec2;--assessment-palette-fortynine:#8C8CFF;--assessment-palette-fifty:#F3F3FF;--assessment-palette-fiftyone:#A1BEFF;--assessment-palette-fiftytwo:#4D89EB10;--assessment-palette-fiftythree:#dcdcdc45;--assessment-palette-fiftyfour:#FCBE35;--assessment-palette-fiftyfive:#78C89F;--assessment-palette-fiftysix:#F5A570;--assessment-palette-fiftyseven:#F47D32;--assessment-palette-fiftyeight:#FDFBFBC4;--assessment-palette-fiftynine:#EBEDEE80;--assessment-palette-sixty:#343a40;--assessment-palette-sixtyone:#e5e7e9;--assessment-palette-sixtytwo:#858383;--assessment-palette-sixtythree:#757575;--assessment-palette-sixtyfour:#C6C6C6;--assessment-palette-sixtyfive:#7476ED;--assessment-palette-sixtysix:#2A50A4;--assessment-palette-sixtyseven:#5C87E4;--assessment-palette-sixtyeight:#FFFFFF1A;--assessment-palette-sixtynine:#FFFFFFA6;--assessment-palette-seventy:#00000080;--assessment-palette-seventyone:#0A0A0A;--assessment-palette-seventytwo:#333333;--assessment-palette-seventythree:#125DFF;--assessment-palette-seventyfour:#999999;--assessment-palette-seventyfive:#147AD6;--assessment-palette-seventysix:#979797;--assessment-palette-seventyseven:#8d8d8d;--assessment-palette-seventyeight: #323A46;--assessment-palette-seventynine: #dad7d7;--assessment-palette-eighty: #E56F8C;--assessment-palette-eightyone: #E85E4A;--assessment-palette-eightytwo: #87D1AD;--assessment-palette-eightythree: #F8C73B;--assessment-palette-eightyfour: #bdc1c6;--assessment-palette-eightyfive: #00000033;--assessment-palette-eightysix: #ffffffb3;--assessment-palette-eightyseven: #7d95c9;--assessment-palette-eightyeight: #7476ed1f;--assessment-palette-eightynine: #fafbff;--assessment-palette-ninety: #64c2db;--assessment-palette-ninetyone: #7476ed33;--assessment-palette-ninetytwo: #cccccc;--assessment-palette-ninetythree: #7476ed66;--assessment-palette-ninetyfour: #52b6e01a;--assessment-palette-ninetyfive: #0056b3;--assessment-palette-ninetysix: #F1F1FD;--assessment-palette-ninetyseven: #cbc6c6;--assessment-palette-ninetyeight: #007A86;--assessment-palette-ninetynine: #7476ED0F;--assessment-palette-hundred: #7476ED80;--assessment-palette-onehundredone: #e0e0e0;--assessment-palette-onehundredtwo: #7fffd4;--assessment-palette-onehundredthree: #d3d3d3;--assessment-palette-onehundredfour: #1E2222;--assessment-palette-onehundredfive: #ffffff4d;--assessment-palette-onehundredsix: #7476ed1a;--assessment-palette-onehundredseven: #b0c4de;--assessment-palette-onehundredeight: #f7f7f7;--assessment-palette-onehundrednine: #D3E2FC;--assessment-palette-onehundredten: #FF3E58;--assessment-palette-onehundredeleven: #000000de;--assessment-palette-onehundredtwelve: #5D5D5D;--assessment-palette-onehundredthirteen: #04aa6d;--assessment-palette-onehundredfourteen: #D6DBDB;--assessment-palette-onehundredfifteen: #FEF5FF;--assessment-palette-onehundredsixteen: #11143D;--assessment-palette-onehundredseventeen: #b5b5b5;--assessment-palette-onehundredeighteen: #62B79A;--assessment-palette-onehundrednighteen:#E73A2C;--assessment-palette-onehundredtwenty:#FFCE7A;--assessment-palette-onehundredtwentyone:#0000001f;--assessment-palette-onehundredtwentytwo:#55AA7E;--assessment-palette-onehundredtwentythree:#7375ed4d;--assessment-red:#ff0000;--assessment-green: #008000;--assessment-blue:#0000ff;--assessment-dark-red: #E83628;--assessment-golden:#E9CC5A;--assessment-success: #34a853;--assessment-success-bg: #34a8531a;--assessment-success-secondary: #8bc34a;--assessment-success-secondary-bg: #8bc34a1a;--assessment-danger-two: #fff1f1;--assessment-danger: #ff5252;--assessment-danger-bg: #ff52521a;--assessment-warning: #ffa600;--assessment-warning-bg: #ffa6001a;--assessment-warm: #6b71e5;--assessment-link-text: #301f56;--assessment-warm-bg: #6b71e51a;--assessment-primary-light: #0091ff;--assessment-primary-light-bg: #0091ff1a;--assessment-secondary-bg: #f8f9fa;--assessment-placeholder-color: #e18a22;--assessment-primary-one: #4d89eb;--assessment-primary-two: #323a46;--assessment-primary-three: #00000014;--assessment-primary-four: #295EB7;--assessment-primary-five: #F2F7FF;--assessment-linear-gradient-one: transparent linear-gradient(180deg, #e2dafd 0%, #d6cbfc 100%) 0% 0% no-repeat padding-box;--assessment-linear-gradient-two: transparent linear-gradient(180deg, #F19B96 0%, #ED6F66 100%) no-repeat padding-box;--assessment-linear-gradient-three: transparent linear-gradient(180deg, #81D2F2 0%, #52B6E0 100%) 0% 0% no-repeat padding-box;--assessment-linear-gradient-four: transparent linear-gradient(180deg, #4D89EB 0%, #295EB7 100%) 0% 0% no-repeat padding-box;--assessment-box-shadow-one: 0px 3px 6px #00000008;--assessment-box-shadow-two: 0px 3px 6px #0000000f;--assessment-box-shadow-three: 0px 6px 12px #00000008;--assessment-box-shadow-four: 0px 6px 12px #0000000f;--assessment-box-shadow-five: 0px 0px 12px #0000000f;--assessment-box-shadow-six: 0px 2px 4px #0000001a;--assessment-box-shadow-seven: 0px 1px 5px #00000029;--assessment-box-shadow-eight: 0px 6px 6px #00000008;--assessment-box-shadow-nine: 0px 6px 12px #00000010;--assessment-box-shadow-ten: 0px 12px 22px #725cc614;--assessment-box-shadow-inset-one: inset 0px 0px 18px #0000001a;--assessment-border-radius-one: 4px;--assessment-border-radius-two: 8px;--assessment-border-radius-three: 10px;--assessment-border-radius-four: 12px;--assessment-border-radius-five: 16px;--assessment-border-radius-six: 20px;--assessment-border-radius-seven: 32px;--assessment-border-radius-rounded: 50%;--assessment-header-height: 5vh;--filter-purple:invert(42%) sepia(74%) saturate(692%) hue-rotate(205deg) brightness(100%) contrast(86%);--app-theme-based-color: #202124;--app-theme-based-one: #3c4043;--app-theme-based-two:#7476ED }.mat-dialog-actions{display:grid!important}.mat-dialog-title,.mat-dialog-content{text-align:center}.mat-dialog-actions button{background-color:var(--assessment-blue)!important;color:var(--assessment-danger-two)!important}::ng-deep .mat-mdc-tooltip{transform:scale(1.5)!important;position:relative!important}.danger-tooltip{background-color:var(--assessment-blue)!important;font-size:13px!important;font-weight:500;--mdc-plain-tooltip-container-color: var(--assessment-blue);--mdc-plain-tooltip-supporting-text-color: var(--assessment-danger-two) !important;--mdc-plain-tooltip-supporting-text-size: 13px;--mdc-plain-tooltip-supporting-text-weight: 500 !important;--mdc-plain-tooltip-supporting-text-tracing: .033333333em}.mat-tooltip{overflow:visible!important}.danger-tooltip:after{content:\"\";position:absolute;top:100%;left:50%;margin-left:-4px;border-width:5px;border-style:solid;border-color:var(--assessment-blue) transparent transparent transparent}.mat-radio-button.mat-accent .mat-radio-inner-circle,.mat-radio-button.mat-accent .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple),.mat-radio-button.mat-accent.mat-radio-checked .mat-radio-persistent-ripple,.mat-radio-button.mat-accent:active .mat-radio-persistent-ripple{background-color:var(--assessment-blue)!important}.mat-checkbox-checked:not(.mat-checkbox-disabled).mat-accent .mat-ripple-element,.mat-checkbox:active:not(.mat-checkbox-disabled).mat-accent .mat-ripple-element{background:var(--assessment-blue)!important}.mat-checkbox-indeterminate.mat-accent .mat-checkbox-background,.mat-checkbox-checked.mat-accent .mat-checkbox-background{background:var(--assessment-blue)!important}.mat-radio-button.mat-accent.mat-radio-checked .mat-radio-outer-circle{border-color:var(--assessment-blue)!important}.example-button-row .mat-flat-button{color:var(--assessment-danger-two, var(--assessment-danger-two));background-color:var(--assessment-blue)}.example-button-row{display:table-cell;max-width:600px}.example-button-row .mat-mdc-button-base{margin:8px 8px 8px 0}.tooltip-image{display:inline-block;vertical-align:middle;width:15px;height:15px}.radimatc{margin-top:20px}.example-radio-button,.example-margin{display:block!important;margin:10px}.example-full-width{width:78%}.mat-button-toggle-checked{background-color:var(--assessment-blue)!important;color:var(--assessment-danger-two)!important}.custmattog{box-shadow:none!important}.mat-button-toggle{padding:5px;white-space:nowrap;position:relative;background-color:var(--assessment-grey-four);border-radius:20px;margin:5px;color:var(--assessment-black)}.textarea-tag{font-family:assessment-Medium;font-size:14px;width:75%;border-left:none;border-right:none;border-top:none;outline:none;padding:.75rem;border-bottom:2px solid rgb(118,118,118)}.textarea-tag:focus{border-color:var(--assessment-blue)}.input-tag{font-family:assessment-Medium;font-size:14px;width:75%;border-left:none;border-right:none;border-top:none;outline:none;padding:.75rem}.input-tag:focus{border-color:var(--assessment-blue)}.divider{display:flex;justify-content:center;align-items:center;width:100%;margin-top:2rem;margin-bottom:2rem}.radio-group,.checkbox-group{display:flex;flex-direction:column;gap:1rem}.datesty{width:78%}.datesty input{width:92%}\n"] }]
|
|
1120
|
+
}], ctorParameters: function () { return [{ type: AssessmentTakerService }, { type: AssessmentIdService }, { type: i3.FormBuilder }, { type: i1$1.MatDialog }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { assessmentId: [{
|
|
1121
|
+
type: Input
|
|
1122
|
+
}] } });
|
|
1123
|
+
|
|
1124
|
+
class QuestionTypeObjectiveSubComponent {
|
|
1125
|
+
constructor() {
|
|
1126
|
+
this.formControl = new FormControl();
|
|
1127
|
+
}
|
|
1128
|
+
writeValue(value) {
|
|
1129
|
+
this.formControl.setValue(value);
|
|
1130
|
+
}
|
|
1131
|
+
registerOnChange(fn) {
|
|
1132
|
+
this.formControl.valueChanges.subscribe((val) => fn(val));
|
|
1133
|
+
}
|
|
1134
|
+
registerOnTouched(fn) {
|
|
1135
|
+
this.formControl.valueChanges.subscribe((val) => fn(val));
|
|
1136
|
+
}
|
|
1137
|
+
SubjectiveInputOnChange(event) {
|
|
1138
|
+
const val = this.formControl.value || {};
|
|
1139
|
+
val.subjective = event.target.value;
|
|
1140
|
+
this.formControl.patchValue(val);
|
|
1141
|
+
}
|
|
1142
|
+
;
|
|
1143
|
+
ObjectiveOnChange(event, data) {
|
|
1144
|
+
const val = this.formControl.value || {};
|
|
1145
|
+
val.objective = data.id;
|
|
1146
|
+
this.formControl.patchValue(val);
|
|
1147
|
+
}
|
|
1148
|
+
;
|
|
1149
|
+
}
|
|
1150
|
+
QuestionTypeObjectiveSubComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: QuestionTypeObjectiveSubComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1151
|
+
QuestionTypeObjectiveSubComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: QuestionTypeObjectiveSubComponent, selector: "lib-question-type-objective-sub", inputs: { required: "required", optionsList: "optionsList", fieldAttributes: "fieldAttributes" }, providers: [
|
|
1152
|
+
{
|
|
1153
|
+
provide: NG_VALUE_ACCESSOR,
|
|
1154
|
+
useExisting: forwardRef(() => QuestionTypeObjectiveSubComponent),
|
|
1155
|
+
multi: true,
|
|
1156
|
+
},
|
|
1157
|
+
], ngImport: i0, template: "<!-- <mat-radio-group aria-labelledby=\"example-radio-group-label\" class=\"example-radio-group\">\r\n <ng-container *ngFor=\"let option of optionsList.defaultOptionsList | orderBy\">\r\n <mat-radio-button [formControl]=\"formControl\" class=\"example-radio-button\" [value]=\"option.options\">{{ option.options.optionName[0]?.text\r\n }}</mat-radio-button>\r\n </ng-container>\r\n</mat-radio-group> -->\r\n<mat-radio-group\r\n aria-labelledby=\"example-radio-group-label\"\r\n \r\n name=\"{{fieldAttributes.id}}[objective]\"\r\n class=\"example-radio-group\">\r\n <ng-container *ngFor=\"let option of optionsList.defaultOptionsList | orderBy\">\r\n <mat-radio-button formControlName=\"objective\" class=\"example-radio-button\" (change)=\"ObjectiveOnChange($event, option.options)\" [value]=\"option.options\" [required]=\"required\">{{ option.options.optionName[0]?.text }}</mat-radio-button>\r\n </ng-container>\r\n</mat-radio-group>\r\n<mat-form-field class=\"example-full-width radimatc\">\r\n <input matInput formControlName=\"subjective\"\r\n name=\"{{fieldAttributes.id}}[subjective]\" class=\"form-check-input\" placeholder=\"Enter your answer here\" [required]=\"required\" (change)=\"SubjectiveInputOnChange($event)\">\r\n</mat-form-field>\r\n", styles: [""], components: [{ type: i1$2.MatRadioButton, selector: "mat-radio-button", inputs: ["disableRipple", "tabIndex"], exportAs: ["matRadioButton"] }, { type: i1$3.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }], directives: [{ type: i1$2.MatRadioGroup, selector: "mat-radio-group", exportAs: ["matRadioGroup"] }, { type: i7.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i3.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { type: i3.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { type: i2$1.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }], pipes: { "orderBy": OrderByPipe } });
|
|
1158
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: QuestionTypeObjectiveSubComponent, decorators: [{
|
|
1159
|
+
type: Component,
|
|
1160
|
+
args: [{ selector: 'lib-question-type-objective-sub', providers: [
|
|
1161
|
+
{
|
|
1162
|
+
provide: NG_VALUE_ACCESSOR,
|
|
1163
|
+
useExisting: forwardRef(() => QuestionTypeObjectiveSubComponent),
|
|
1164
|
+
multi: true,
|
|
1165
|
+
},
|
|
1166
|
+
], template: "<!-- <mat-radio-group aria-labelledby=\"example-radio-group-label\" class=\"example-radio-group\">\r\n <ng-container *ngFor=\"let option of optionsList.defaultOptionsList | orderBy\">\r\n <mat-radio-button [formControl]=\"formControl\" class=\"example-radio-button\" [value]=\"option.options\">{{ option.options.optionName[0]?.text\r\n }}</mat-radio-button>\r\n </ng-container>\r\n</mat-radio-group> -->\r\n<mat-radio-group\r\n aria-labelledby=\"example-radio-group-label\"\r\n \r\n name=\"{{fieldAttributes.id}}[objective]\"\r\n class=\"example-radio-group\">\r\n <ng-container *ngFor=\"let option of optionsList.defaultOptionsList | orderBy\">\r\n <mat-radio-button formControlName=\"objective\" class=\"example-radio-button\" (change)=\"ObjectiveOnChange($event, option.options)\" [value]=\"option.options\" [required]=\"required\">{{ option.options.optionName[0]?.text }}</mat-radio-button>\r\n </ng-container>\r\n</mat-radio-group>\r\n<mat-form-field class=\"example-full-width radimatc\">\r\n <input matInput formControlName=\"subjective\"\r\n name=\"{{fieldAttributes.id}}[subjective]\" class=\"form-check-input\" placeholder=\"Enter your answer here\" [required]=\"required\" (change)=\"SubjectiveInputOnChange($event)\">\r\n</mat-form-field>\r\n", styles: [""] }]
|
|
1167
|
+
}], ctorParameters: function () { return []; }, propDecorators: { required: [{
|
|
1168
|
+
type: Input
|
|
1169
|
+
}], optionsList: [{
|
|
1170
|
+
type: Input
|
|
1171
|
+
}], fieldAttributes: [{
|
|
1172
|
+
type: Input
|
|
1173
|
+
}] } });
|
|
1174
|
+
|
|
1175
|
+
class QuestionTypeMultiselectSubComponent {
|
|
1176
|
+
constructor() {
|
|
1177
|
+
this.selectData = [];
|
|
1178
|
+
this.formControl = new FormControl();
|
|
1179
|
+
}
|
|
1180
|
+
toggleSelection(event, data) {
|
|
1181
|
+
if (event.checked) {
|
|
1182
|
+
this.selectData.push(data);
|
|
1183
|
+
}
|
|
1184
|
+
else {
|
|
1185
|
+
const i = this.selectData.findIndex(value => value.id == data.id);
|
|
1186
|
+
this.selectData.splice(i, 1);
|
|
1187
|
+
}
|
|
1188
|
+
this.formControl.patchValue(this.selectData);
|
|
1189
|
+
}
|
|
1190
|
+
;
|
|
1191
|
+
writeValue(value) {
|
|
1192
|
+
this.formControl.setValue(value);
|
|
1193
|
+
}
|
|
1194
|
+
registerOnChange(fn) {
|
|
1195
|
+
this.formControl.valueChanges.subscribe((val) => fn(val));
|
|
1196
|
+
}
|
|
1197
|
+
registerOnTouched(fn) {
|
|
1198
|
+
this.formControl.valueChanges.subscribe((val) => fn(val));
|
|
1199
|
+
}
|
|
1200
|
+
}
|
|
1201
|
+
QuestionTypeMultiselectSubComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: QuestionTypeMultiselectSubComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1202
|
+
QuestionTypeMultiselectSubComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: QuestionTypeMultiselectSubComponent, selector: "lib-question-type-multiselect-sub", inputs: { required: "required", optionsList: "optionsList" }, providers: [
|
|
1203
|
+
{
|
|
1204
|
+
provide: NG_VALUE_ACCESSOR,
|
|
1205
|
+
useExisting: forwardRef(() => QuestionTypeMultiselectSubComponent),
|
|
1206
|
+
multi: true,
|
|
1207
|
+
},
|
|
1208
|
+
], ngImport: i0, template: "<section class=\"example-section\">\r\n <ng-container *ngFor=\"let option of optionsList.defaultOptionsList | orderBy\">\r\n <mat-checkbox\r\n (change)=\"toggleSelection($event,option.options)\"\r\n [value]=\"option.options.id\" \r\n [required]=\"required\" \r\n class=\"example-margin\">{{ option.options.optionName[0]?.text }}</mat-checkbox>\r\n </ng-container>\r\n</section>\r\n<mat-form-field class=\"example-full-width\">\r\n <input matInput [formControl]=\"formControl\" name=\"stortc\" class=\"form-check-input\" placeholder=\"Enter your answer here\" [required]=\"required\">\r\n</mat-form-field>", styles: [""], components: [{ type: i1$4.MatCheckbox, selector: "mat-checkbox", inputs: ["disableRipple", "color", "tabIndex", "aria-label", "aria-labelledby", "aria-describedby", "id", "required", "labelPosition", "name", "value", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { type: i1$3.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }], directives: [{ type: i7.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i2$1.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i3.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i3.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }], pipes: { "orderBy": OrderByPipe } });
|
|
1209
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: QuestionTypeMultiselectSubComponent, decorators: [{
|
|
1210
|
+
type: Component,
|
|
1211
|
+
args: [{ selector: 'lib-question-type-multiselect-sub', providers: [
|
|
1212
|
+
{
|
|
1213
|
+
provide: NG_VALUE_ACCESSOR,
|
|
1214
|
+
useExisting: forwardRef(() => QuestionTypeMultiselectSubComponent),
|
|
1215
|
+
multi: true,
|
|
1216
|
+
},
|
|
1217
|
+
], template: "<section class=\"example-section\">\r\n <ng-container *ngFor=\"let option of optionsList.defaultOptionsList | orderBy\">\r\n <mat-checkbox\r\n (change)=\"toggleSelection($event,option.options)\"\r\n [value]=\"option.options.id\" \r\n [required]=\"required\" \r\n class=\"example-margin\">{{ option.options.optionName[0]?.text }}</mat-checkbox>\r\n </ng-container>\r\n</section>\r\n<mat-form-field class=\"example-full-width\">\r\n <input matInput [formControl]=\"formControl\" name=\"stortc\" class=\"form-check-input\" placeholder=\"Enter your answer here\" [required]=\"required\">\r\n</mat-form-field>", styles: [""] }]
|
|
1218
|
+
}], ctorParameters: function () { return []; }, propDecorators: { required: [{
|
|
1219
|
+
type: Input
|
|
1220
|
+
}], optionsList: [{
|
|
1221
|
+
type: Input
|
|
1222
|
+
}] } });
|
|
1223
|
+
|
|
1224
|
+
class QuestionTypeAddDialogComponent {
|
|
1225
|
+
constructor(dialog) {
|
|
1226
|
+
this.dialog = dialog;
|
|
1227
|
+
this.visible = true;
|
|
1228
|
+
this.selectable = true;
|
|
1229
|
+
this.removable = true;
|
|
1230
|
+
this.separatorKeysCodes = [ENTER, 188];
|
|
1231
|
+
this.formControl = new FormControl();
|
|
1232
|
+
this.options = [];
|
|
1233
|
+
this.allOptions = ["Lemon", "Lime", "Orange", "Strawberry"];
|
|
1234
|
+
this.filteredOptions = this.formControl.valueChanges.pipe(startWith$1(null), map$1((option) => option ? this._filter(option) : this.allOptions.slice()));
|
|
1235
|
+
}
|
|
1236
|
+
writeValue(value) {
|
|
1237
|
+
this.formControl.setValue(value);
|
|
1238
|
+
}
|
|
1239
|
+
registerOnChange(fn) {
|
|
1240
|
+
this.formControl.valueChanges.subscribe((val) => fn(val));
|
|
1241
|
+
}
|
|
1242
|
+
registerOnTouched(fn) {
|
|
1243
|
+
this.formControl.valueChanges.subscribe((val) => fn(val));
|
|
1244
|
+
}
|
|
1245
|
+
add(event) {
|
|
1246
|
+
const input = event.input;
|
|
1247
|
+
const value = event.value;
|
|
1248
|
+
// Add our option
|
|
1249
|
+
if ((value || "").trim()) {
|
|
1250
|
+
this.options.push(value.trim());
|
|
1251
|
+
}
|
|
1252
|
+
// Reset the input value
|
|
1253
|
+
if (input) {
|
|
1254
|
+
input.value = "";
|
|
1255
|
+
}
|
|
1256
|
+
this.formControl.setValue(null);
|
|
1257
|
+
this.updateControlValue();
|
|
1258
|
+
}
|
|
1259
|
+
remove(option) {
|
|
1260
|
+
const index = this.options.indexOf(option);
|
|
1261
|
+
if (index >= 0) {
|
|
1262
|
+
this.options.splice(index, 1);
|
|
1263
|
+
}
|
|
1264
|
+
this.updateControlValue();
|
|
1265
|
+
}
|
|
1266
|
+
selected(event) {
|
|
1267
|
+
this.options.push(event.option.viewValue);
|
|
1268
|
+
this.optionInput.nativeElement.value = "";
|
|
1269
|
+
this.formControl.setValue(null);
|
|
1270
|
+
this.updateControlValue();
|
|
1271
|
+
}
|
|
1272
|
+
updateControlValue() {
|
|
1273
|
+
this.formControl.patchValue(this.options);
|
|
1274
|
+
}
|
|
1275
|
+
openDialog(templateRef) {
|
|
1276
|
+
this.dialog.open(templateRef);
|
|
1277
|
+
}
|
|
1278
|
+
_filter(value) {
|
|
1279
|
+
const filterValue = value.toLowerCase();
|
|
1280
|
+
return this.allOptions.filter(option => option.toLowerCase().indexOf(filterValue) === 0);
|
|
1281
|
+
}
|
|
1282
|
+
}
|
|
1283
|
+
QuestionTypeAddDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: QuestionTypeAddDialogComponent, deps: [{ token: i1$1.MatDialog }], target: i0.ɵɵFactoryTarget.Component });
|
|
1284
|
+
QuestionTypeAddDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: QuestionTypeAddDialogComponent, selector: "lib-question-type-add-dialog", inputs: { required: "required", optionsList: "optionsList", fieldAttributes: "fieldAttributes" }, providers: [
|
|
1285
|
+
{
|
|
1286
|
+
provide: NG_VALUE_ACCESSOR,
|
|
1287
|
+
useExisting: forwardRef(() => QuestionTypeAddDialogComponent),
|
|
1288
|
+
multi: true,
|
|
1289
|
+
},
|
|
1290
|
+
], viewQueries: [{ propertyName: "optionInput", first: true, predicate: ["optionInput"], descendants: true }, { propertyName: "matAutocomplete", first: true, predicate: ["auto"], descendants: true }], ngImport: i0, template: "<div class=\"example-button-row\">\r\n <button mat-flat-button (click)=\"openDialog(autoCompleteModal)\" type=\"button\">+ Add</button>\r\n </div>\r\n \r\n <ng-template #autoCompleteModal let-data let-ref=\"dialogRef\" id=\"autoCompleteModal\">\r\n <div class=\"def--modal\">\r\n <div class=\"def--modal-title d-flex align-items-center\">\r\n <h3 class=\"modal-title my-0\">Test\r\n <mat-icon (click)=\"ref.close()\" class=\"float-right close close-icon-color close-icon\">close\r\n </mat-icon>\r\n </h3>\r\n </div>\r\n <div class=\"def--modal-spinner-div\">\r\n fda fdas fa f dfa fda d fa afd\r\n </div>\r\n </div>\r\n </ng-template>", styles: [""], components: [{ type: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }] });
|
|
1291
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: QuestionTypeAddDialogComponent, decorators: [{
|
|
1292
|
+
type: Component,
|
|
1293
|
+
args: [{ selector: 'lib-question-type-add-dialog', providers: [
|
|
1294
|
+
{
|
|
1295
|
+
provide: NG_VALUE_ACCESSOR,
|
|
1296
|
+
useExisting: forwardRef(() => QuestionTypeAddDialogComponent),
|
|
1297
|
+
multi: true,
|
|
1298
|
+
},
|
|
1299
|
+
], template: "<div class=\"example-button-row\">\r\n <button mat-flat-button (click)=\"openDialog(autoCompleteModal)\" type=\"button\">+ Add</button>\r\n </div>\r\n \r\n <ng-template #autoCompleteModal let-data let-ref=\"dialogRef\" id=\"autoCompleteModal\">\r\n <div class=\"def--modal\">\r\n <div class=\"def--modal-title d-flex align-items-center\">\r\n <h3 class=\"modal-title my-0\">Test\r\n <mat-icon (click)=\"ref.close()\" class=\"float-right close close-icon-color close-icon\">close\r\n </mat-icon>\r\n </h3>\r\n </div>\r\n <div class=\"def--modal-spinner-div\">\r\n fda fdas fa f dfa fda d fa afd\r\n </div>\r\n </div>\r\n </ng-template>", styles: [""] }]
|
|
1300
|
+
}], ctorParameters: function () { return [{ type: i1$1.MatDialog }]; }, propDecorators: { required: [{
|
|
1301
|
+
type: Input
|
|
1302
|
+
}], optionsList: [{
|
|
1303
|
+
type: Input
|
|
1304
|
+
}], fieldAttributes: [{
|
|
1305
|
+
type: Input
|
|
1306
|
+
}], optionInput: [{
|
|
1307
|
+
type: ViewChild,
|
|
1308
|
+
args: ["optionInput"]
|
|
1309
|
+
}], matAutocomplete: [{
|
|
1310
|
+
type: ViewChild,
|
|
1311
|
+
args: ["auto"]
|
|
1312
|
+
}] } });
|
|
1313
|
+
|
|
1314
|
+
class SharedComponentsModule {
|
|
1315
|
+
}
|
|
1316
|
+
SharedComponentsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: SharedComponentsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1317
|
+
SharedComponentsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: SharedComponentsModule, declarations: [OrderByPipe,
|
|
1318
|
+
QuestionTypeObjectiveComponent,
|
|
1319
|
+
QuestionTypeShortComponent,
|
|
1320
|
+
QuestionTypeDateComponent,
|
|
1321
|
+
QuestionTypeLongComponent,
|
|
1322
|
+
QuestionTypeNumberComponent,
|
|
1323
|
+
QuestionTypeUploadFileComponent,
|
|
1324
|
+
QuestionTypeMultiselectComponent,
|
|
1325
|
+
QuestionTypeObjectiveSubComponent,
|
|
1326
|
+
QuestionTypeMultiselectSubComponent,
|
|
1327
|
+
QuestionTypeRatingComponent,
|
|
1328
|
+
QuestionTypeEditorComponent,
|
|
1329
|
+
QuestionTypeSearchableTagComponent,
|
|
1330
|
+
QuestionTypeAddDialogComponent], imports: [MatChipsModule,
|
|
1331
|
+
MatAutocompleteModule,
|
|
1332
|
+
AngularEditorModule,
|
|
1333
|
+
FormsModule,
|
|
1334
|
+
MatIconModule,
|
|
1335
|
+
CommonModule,
|
|
1336
|
+
ReactiveFormsModule,
|
|
1337
|
+
MatFormFieldModule,
|
|
1338
|
+
MatInputModule,
|
|
1339
|
+
MatDatepickerModule,
|
|
1340
|
+
MatNativeDateModule,
|
|
1341
|
+
MatButtonToggleModule,
|
|
1342
|
+
MatTooltipModule,
|
|
1343
|
+
MatCheckboxModule,
|
|
1344
|
+
MatRadioModule], exports: [QuestionTypeObjectiveComponent,
|
|
1345
|
+
QuestionTypeShortComponent,
|
|
1346
|
+
QuestionTypeDateComponent,
|
|
1347
|
+
QuestionTypeLongComponent,
|
|
1348
|
+
QuestionTypeNumberComponent,
|
|
1349
|
+
QuestionTypeUploadFileComponent,
|
|
1350
|
+
QuestionTypeMultiselectComponent,
|
|
1351
|
+
QuestionTypeObjectiveSubComponent,
|
|
1352
|
+
QuestionTypeMultiselectSubComponent,
|
|
1353
|
+
QuestionTypeRatingComponent,
|
|
1354
|
+
QuestionTypeEditorComponent,
|
|
1355
|
+
QuestionTypeSearchableTagComponent,
|
|
1356
|
+
QuestionTypeAddDialogComponent] });
|
|
1357
|
+
SharedComponentsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: SharedComponentsModule, imports: [[
|
|
1358
|
+
MatChipsModule,
|
|
1359
|
+
MatAutocompleteModule,
|
|
1360
|
+
AngularEditorModule,
|
|
1361
|
+
FormsModule,
|
|
1362
|
+
MatIconModule,
|
|
1363
|
+
CommonModule,
|
|
1364
|
+
ReactiveFormsModule,
|
|
1365
|
+
MatFormFieldModule,
|
|
1366
|
+
MatInputModule,
|
|
1367
|
+
MatDatepickerModule,
|
|
1368
|
+
MatNativeDateModule,
|
|
1369
|
+
MatButtonToggleModule,
|
|
1370
|
+
MatTooltipModule,
|
|
1371
|
+
MatCheckboxModule,
|
|
1372
|
+
MatRadioModule
|
|
1373
|
+
]] });
|
|
1374
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: SharedComponentsModule, decorators: [{
|
|
1375
|
+
type: NgModule,
|
|
1376
|
+
args: [{
|
|
1377
|
+
declarations: [
|
|
1378
|
+
OrderByPipe,
|
|
1379
|
+
QuestionTypeObjectiveComponent,
|
|
1380
|
+
QuestionTypeShortComponent,
|
|
1381
|
+
QuestionTypeDateComponent,
|
|
1382
|
+
QuestionTypeLongComponent,
|
|
1383
|
+
QuestionTypeNumberComponent,
|
|
1384
|
+
QuestionTypeUploadFileComponent,
|
|
1385
|
+
QuestionTypeMultiselectComponent,
|
|
1386
|
+
QuestionTypeObjectiveSubComponent,
|
|
1387
|
+
QuestionTypeMultiselectSubComponent,
|
|
1388
|
+
QuestionTypeRatingComponent,
|
|
1389
|
+
QuestionTypeEditorComponent,
|
|
1390
|
+
QuestionTypeSearchableTagComponent,
|
|
1391
|
+
QuestionTypeAddDialogComponent
|
|
1392
|
+
],
|
|
1393
|
+
imports: [
|
|
1394
|
+
MatChipsModule,
|
|
1395
|
+
MatAutocompleteModule,
|
|
1396
|
+
AngularEditorModule,
|
|
1397
|
+
FormsModule,
|
|
1398
|
+
MatIconModule,
|
|
1399
|
+
CommonModule,
|
|
1400
|
+
ReactiveFormsModule,
|
|
1401
|
+
MatFormFieldModule,
|
|
1402
|
+
MatInputModule,
|
|
1403
|
+
MatDatepickerModule,
|
|
1404
|
+
MatNativeDateModule,
|
|
1405
|
+
MatButtonToggleModule,
|
|
1406
|
+
MatTooltipModule,
|
|
1407
|
+
MatCheckboxModule,
|
|
1408
|
+
MatRadioModule
|
|
1409
|
+
],
|
|
1410
|
+
exports: [QuestionTypeObjectiveComponent,
|
|
1411
|
+
QuestionTypeShortComponent,
|
|
1412
|
+
QuestionTypeDateComponent,
|
|
1413
|
+
QuestionTypeLongComponent,
|
|
1414
|
+
QuestionTypeNumberComponent,
|
|
1415
|
+
QuestionTypeUploadFileComponent,
|
|
1416
|
+
QuestionTypeMultiselectComponent,
|
|
1417
|
+
QuestionTypeObjectiveSubComponent,
|
|
1418
|
+
QuestionTypeMultiselectSubComponent,
|
|
1419
|
+
QuestionTypeRatingComponent,
|
|
1420
|
+
QuestionTypeEditorComponent,
|
|
1421
|
+
QuestionTypeSearchableTagComponent,
|
|
1422
|
+
QuestionTypeAddDialogComponent]
|
|
1423
|
+
}]
|
|
1424
|
+
}] });
|
|
1425
|
+
|
|
1426
|
+
class FeatureModule {
|
|
1427
|
+
}
|
|
1428
|
+
FeatureModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: FeatureModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1429
|
+
FeatureModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: FeatureModule, declarations: [QuestWizardComponent,
|
|
1430
|
+
QuestSuccessComponent], imports: [MatDialogModule,
|
|
1431
|
+
MatButtonModule,
|
|
1432
|
+
MatTooltipModule,
|
|
1433
|
+
CommonModule,
|
|
1434
|
+
// FeatureRoutingModule,
|
|
1435
|
+
SharedComponentsModule,
|
|
1436
|
+
ReactiveFormsModule,
|
|
1437
|
+
FormsModule,
|
|
1438
|
+
MatChipsModule], exports: [QuestWizardComponent] });
|
|
1439
|
+
FeatureModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: FeatureModule, imports: [[
|
|
1440
|
+
MatDialogModule,
|
|
1441
|
+
MatButtonModule,
|
|
1442
|
+
MatTooltipModule,
|
|
1443
|
+
CommonModule,
|
|
1444
|
+
// FeatureRoutingModule,
|
|
1445
|
+
SharedComponentsModule,
|
|
1446
|
+
ReactiveFormsModule,
|
|
1447
|
+
FormsModule,
|
|
1448
|
+
MatChipsModule
|
|
1449
|
+
]] });
|
|
1450
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: FeatureModule, decorators: [{
|
|
1451
|
+
type: NgModule,
|
|
1452
|
+
args: [{
|
|
1453
|
+
declarations: [
|
|
1454
|
+
QuestWizardComponent,
|
|
1455
|
+
QuestSuccessComponent
|
|
1456
|
+
],
|
|
1457
|
+
imports: [
|
|
1458
|
+
MatDialogModule,
|
|
1459
|
+
MatButtonModule,
|
|
1460
|
+
MatTooltipModule,
|
|
1461
|
+
CommonModule,
|
|
1462
|
+
// FeatureRoutingModule,
|
|
1463
|
+
SharedComponentsModule,
|
|
1464
|
+
ReactiveFormsModule,
|
|
1465
|
+
FormsModule,
|
|
1466
|
+
MatChipsModule
|
|
1467
|
+
],
|
|
1468
|
+
exports: [QuestWizardComponent]
|
|
1469
|
+
}]
|
|
1470
|
+
}] });
|
|
1471
|
+
|
|
1472
|
+
/*
|
|
1473
|
+
* Public API Surface of assessment-taker
|
|
1474
|
+
*/
|
|
1475
|
+
|
|
1476
|
+
/**
|
|
1477
|
+
* Generated bundle index. Do not edit.
|
|
1478
|
+
*/
|
|
1479
|
+
|
|
1480
|
+
export { AssessmentIdService, AssessmentTakerComponent, AssessmentTakerModule, AssessmentTakerService, FeatureModule, QuestWizardComponent, QuestionTypeAddDialogComponent, QuestionTypeDateComponent, QuestionTypeEditorComponent, QuestionTypeLongComponent, QuestionTypeMultiselectComponent, QuestionTypeMultiselectSubComponent, QuestionTypeNumberComponent, QuestionTypeObjectiveComponent, QuestionTypeObjectiveSubComponent, QuestionTypeRatingComponent, QuestionTypeSearchableTagComponent, QuestionTypeShortComponent, QuestionTypeUploadFileComponent, SharedComponentsModule };
|
|
1481
|
+
//# sourceMappingURL=pcf-assessment-taker.mjs.map
|