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.
Files changed (93) hide show
  1. package/README.md +24 -0
  2. package/assessment-taker.d.ts +5 -0
  3. package/esm2020/assessment-taker.mjs +5 -0
  4. package/esm2020/lib/assessment-taker.component.mjs +24 -0
  5. package/esm2020/lib/assessment-taker.module.mjs +44 -0
  6. package/esm2020/lib/assessment-taker.routing.module.mjs +23 -0
  7. package/esm2020/lib/assessment-taker.service.mjs +46 -0
  8. package/esm2020/lib/components/feature/feature-routing.module.mjs +29 -0
  9. package/esm2020/lib/components/feature/feature.module.mjs +57 -0
  10. package/esm2020/lib/components/feature/quest-success/quest-success/quest-success.component.mjs +26 -0
  11. package/esm2020/lib/components/feature/quest-wizard/quest-wizard.component.mjs +437 -0
  12. package/esm2020/lib/configuration.mjs +4 -0
  13. package/esm2020/lib/shared/interceptor/lib-interceptor.interceptor.mjs +26 -0
  14. package/esm2020/lib/shared/pipe/order-by.pipe.mjs +22 -0
  15. package/esm2020/lib/shared/services/assessment-id.service.mjs +21 -0
  16. package/esm2020/lib/shared/shared-components/question-type-add-dialog/question-type-add-dialog.component.mjs +97 -0
  17. package/esm2020/lib/shared/shared-components/question-type-date/question-type-date.component.mjs +42 -0
  18. package/esm2020/lib/shared/shared-components/question-type-editor/question-type-editor.component.mjs +48 -0
  19. package/esm2020/lib/shared/shared-components/question-type-long/question-type-long.component.mjs +47 -0
  20. package/esm2020/lib/shared/shared-components/question-type-multiselect/question-type-multiselect.component.mjs +55 -0
  21. package/esm2020/lib/shared/shared-components/question-type-multiselect-sub/question-type-multiselect-sub.component.mjs +58 -0
  22. package/esm2020/lib/shared/shared-components/question-type-number/question-type-number.component.mjs +43 -0
  23. package/esm2020/lib/shared/shared-components/question-type-objective/question-type-objective.component.mjs +59 -0
  24. package/esm2020/lib/shared/shared-components/question-type-objective-sub/question-type-objective-sub.component.mjs +60 -0
  25. package/esm2020/lib/shared/shared-components/question-type-rating/question-type-rating.component.mjs +49 -0
  26. package/esm2020/lib/shared/shared-components/question-type-searchable-tag/question-type-searchable-tag.component.mjs +103 -0
  27. package/esm2020/lib/shared/shared-components/question-type-short/question-type-short.component.mjs +43 -0
  28. package/esm2020/lib/shared/shared-components/question-type-upload-file/question-type-upload-file.component.mjs +48 -0
  29. package/esm2020/lib/shared/shared-components/shared-components.module.mjs +143 -0
  30. package/esm2020/pcf-assessment-taker.mjs +5 -0
  31. package/esm2020/public-api.mjs +25 -0
  32. package/fesm2015/assessment-taker.mjs +1481 -0
  33. package/fesm2015/assessment-taker.mjs.map +1 -0
  34. package/fesm2015/pcf-assessment-taker.mjs +1481 -0
  35. package/fesm2015/pcf-assessment-taker.mjs.map +1 -0
  36. package/fesm2020/assessment-taker.mjs +1468 -0
  37. package/fesm2020/assessment-taker.mjs.map +1 -0
  38. package/fesm2020/pcf-assessment-taker.mjs +1468 -0
  39. package/fesm2020/pcf-assessment-taker.mjs.map +1 -0
  40. package/lib/assessment-taker.component.d.ts +13 -0
  41. package/lib/assessment-taker.module.d.ts +11 -0
  42. package/lib/assessment-taker.routing.module.d.ts +7 -0
  43. package/lib/assessment-taker.service.d.ts +18 -0
  44. package/lib/components/feature/feature-routing.module.d.ts +7 -0
  45. package/lib/components/feature/feature.module.d.ts +15 -0
  46. package/lib/components/feature/quest-success/quest-success/quest-success.component.d.ts +12 -0
  47. package/lib/components/feature/quest-wizard/quest-wizard.component.d.ts +51 -0
  48. package/lib/configuration.d.ts +6 -0
  49. package/lib/shared/interceptor/lib-interceptor.interceptor.d.ts +11 -0
  50. package/lib/shared/pipe/order-by.pipe.d.ts +7 -0
  51. package/lib/shared/services/assessment-id.service.d.ts +9 -0
  52. package/lib/shared/shared-components/question-type-add-dialog/question-type-add-dialog.component.d.ts +35 -0
  53. package/lib/shared/shared-components/question-type-date/question-type-date.component.d.ts +12 -0
  54. package/lib/shared/shared-components/question-type-editor/question-type-editor.component.d.ts +16 -0
  55. package/lib/shared/shared-components/question-type-long/question-type-long.component.d.ts +15 -0
  56. package/lib/shared/shared-components/question-type-multiselect/question-type-multiselect.component.d.ts +15 -0
  57. package/lib/shared/shared-components/question-type-multiselect-sub/question-type-multiselect-sub.component.d.ts +15 -0
  58. package/lib/shared/shared-components/question-type-number/question-type-number.component.d.ts +13 -0
  59. package/lib/shared/shared-components/question-type-objective/question-type-objective.component.d.ts +17 -0
  60. package/lib/shared/shared-components/question-type-objective-sub/question-type-objective-sub.component.d.ts +16 -0
  61. package/lib/shared/shared-components/question-type-rating/question-type-rating.component.d.ts +14 -0
  62. package/lib/shared/shared-components/question-type-searchable-tag/question-type-searchable-tag.component.d.ts +35 -0
  63. package/lib/shared/shared-components/question-type-short/question-type-short.component.d.ts +13 -0
  64. package/lib/shared/shared-components/question-type-upload-file/question-type-upload-file.component.d.ts +14 -0
  65. package/lib/shared/shared-components/shared-components.module.d.ts +34 -0
  66. package/package.json +32 -0
  67. package/pcf-assessment-taker.d.ts +5 -0
  68. package/public-api.d.ts +20 -0
  69. package/src/lib/assets/images/assessment-placeholder-2.png +0 -0
  70. package/src/lib/assets/images/new_tooltip.jpg +0 -0
  71. package/src/lib/assets/images/tooltip.png +0 -0
  72. package/src/lib/assets/images/tooltipimg.jpg +0 -0
  73. package/src/lib/assets/theme/_theme.scss +1077 -0
  74. package/src/lib/assets/theme/font.css +36 -0
  75. package/src/lib/assets/theme/fonts/halant/Halant-Bold.ttf +0 -0
  76. package/src/lib/assets/theme/fonts/halant/Halant-Light.ttf +0 -0
  77. package/src/lib/assets/theme/fonts/halant/Halant-Medium.ttf +0 -0
  78. package/src/lib/assets/theme/fonts/halant/Halant-Regular.ttf +0 -0
  79. package/src/lib/assets/theme/fonts/halant/Halant-SemiBold.ttf +0 -0
  80. package/src/lib/assets/theme/fonts/poppins/Poppins-Bold.ttf +0 -0
  81. package/src/lib/assets/theme/fonts/poppins/Poppins-ExtraBold.ttf +0 -0
  82. package/src/lib/assets/theme/fonts/poppins/Poppins-ExtraLight.ttf +0 -0
  83. package/src/lib/assets/theme/fonts/poppins/Poppins-Light.ttf +0 -0
  84. package/src/lib/assets/theme/fonts/poppins/Poppins-Medium.ttf +0 -0
  85. package/src/lib/assets/theme/fonts/poppins/Poppins-Regular.ttf +0 -0
  86. package/src/lib/assets/theme/fonts/poppins/Poppins-SemiBold.ttf +0 -0
  87. package/src/lib/assets/theme/fonts/poppins/Poppins-Thin.ttf +0 -0
  88. package/src/lib/assets/theme/fonts/roboto/Roboto-Bold.ttf +0 -0
  89. package/src/lib/assets/theme/fonts/roboto/Roboto-Light.ttf +0 -0
  90. package/src/lib/assets/theme/fonts/roboto/Roboto-Medium.ttf +0 -0
  91. package/src/lib/assets/theme/fonts/roboto/Roboto-Regular.ttf +0 -0
  92. package/src/lib/assets/theme/fonts/roboto/Roboto-Thin.ttf +0 -0
  93. package/src/lib/assets/theme/variables.css +392 -0
@@ -0,0 +1,1468 @@
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
+ const url = this.config?.environment?.baseURL + 'gateway/commons-assessment-service/api/v2/assessmentInstanceAssesses';
57
+ return this.http.post(url, JSON.stringify(assessmentPayload), this.httpOptions);
58
+ }
59
+ uploadAssessment(fileUploadPayload) {
60
+ const url = this.config?.environment?.baseURL + 'gateway/commons-assessment-service/api/v1/assessments/upload-assessment';
61
+ return this.http.post(url, fileUploadPayload, this.httpOptions);
62
+ }
63
+ getAssessmentQuestionPapers(instanceId) {
64
+ return this.http.get(this.config?.environment?.baseURL + 'gateway/commons-assessment-service/api/v2/assessmentQuestionPapers?instanceId=' + instanceId);
65
+ }
66
+ getAssessmentQuestions(instanceId, questionIds) {
67
+ return this.http.get(this.config?.environment?.baseURL + 'gateway/commons-assessment-service/api/v3/questions/questions/instance?instanceId=' + instanceId + '&questionIds=' + questionIds);
68
+ }
69
+ getChildQuestionsWithIdList(instanceId, questionIds) {
70
+ return this.http.get(this.config?.environment?.baseURL + 'gateway/commons-assessment-service/api/v3/questions/childquestion/instance?instanceId=' + instanceId + '&questionIds=' + questionIds);
71
+ }
72
+ }
73
+ 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 });
74
+ AssessmentTakerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AssessmentTakerService, providedIn: 'root' });
75
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AssessmentTakerService, decorators: [{
76
+ type: Injectable,
77
+ args: [{
78
+ providedIn: 'root'
79
+ }]
80
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
81
+ type: Inject,
82
+ args: [LIBRARY_CONFIG]
83
+ }] }, { type: i1.HttpClient }]; } });
84
+
85
+ class AssessmentIdService {
86
+ constructor() {
87
+ this.assessmentIdSource = new BehaviorSubject(null);
88
+ this.currentAssessmentId = this.assessmentIdSource.asObservable();
89
+ }
90
+ changeAssessmentId(id) {
91
+ this.assessmentIdSource.next(id);
92
+ }
93
+ }
94
+ AssessmentIdService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AssessmentIdService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
95
+ AssessmentIdService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AssessmentIdService, providedIn: 'root' });
96
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AssessmentIdService, decorators: [{
97
+ type: Injectable,
98
+ args: [{
99
+ providedIn: 'root'
100
+ }]
101
+ }], ctorParameters: function () { return []; } });
102
+
103
+ class AssessmentTakerComponent {
104
+ constructor(service, assessmentIdService) {
105
+ this.service = service;
106
+ this.assessmentIdService = assessmentIdService;
107
+ }
108
+ ngOnInit() {
109
+ const config = this.service.getConfig();
110
+ this.assessmentIdService.changeAssessmentId(this.assessmentId);
111
+ console.log('Library Environment:', config, this.assessmentId);
112
+ }
113
+ }
114
+ 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 });
115
+ 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"] });
116
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AssessmentTakerComponent, decorators: [{
117
+ type: Component,
118
+ 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"] }]
119
+ }], ctorParameters: function () { return [{ type: AssessmentTakerService }, { type: AssessmentIdService }]; }, propDecorators: { assessmentId: [{
120
+ type: Input
121
+ }] } });
122
+
123
+ class LibInterceptor {
124
+ constructor(config) {
125
+ this.config = config;
126
+ }
127
+ intercept(req, next) {
128
+ if (req?.url?.includes('dev.platformcommons.org/gateway/commons-assessment-service')) {
129
+ let headers = req.headers;
130
+ headers = headers.set('X-SESSIONID', this.config?.token);
131
+ const modifiedReq = req.clone({ headers });
132
+ return next.handle(modifiedReq);
133
+ }
134
+ return next.handle(req);
135
+ }
136
+ }
137
+ LibInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: LibInterceptor, deps: [{ token: LIBRARY_CONFIG }], target: i0.ɵɵFactoryTarget.Injectable });
138
+ LibInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: LibInterceptor });
139
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: LibInterceptor, decorators: [{
140
+ type: Injectable
141
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
142
+ type: Inject,
143
+ args: [LIBRARY_CONFIG]
144
+ }] }]; } });
145
+
146
+ class AssessmentTakerModule {
147
+ static forRoot(config) {
148
+ return {
149
+ ngModule: AssessmentTakerModule,
150
+ providers: [
151
+ {
152
+ provide: LIBRARY_CONFIG,
153
+ useValue: config,
154
+ },
155
+ { provide: HTTP_INTERCEPTORS, useClass: LibInterceptor, multi: true }
156
+ ],
157
+ };
158
+ }
159
+ }
160
+ AssessmentTakerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AssessmentTakerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
161
+ AssessmentTakerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AssessmentTakerModule, declarations: [AssessmentTakerComponent], imports: [HttpClientModule], exports: [AssessmentTakerComponent] });
162
+ AssessmentTakerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AssessmentTakerModule, providers: [AssessmentTakerService], imports: [[
163
+ HttpClientModule,
164
+ // AssessmentTakerRoutingModule
165
+ ]] });
166
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AssessmentTakerModule, decorators: [{
167
+ type: NgModule,
168
+ args: [{
169
+ declarations: [
170
+ AssessmentTakerComponent
171
+ ],
172
+ imports: [
173
+ HttpClientModule,
174
+ // AssessmentTakerRoutingModule
175
+ ],
176
+ exports: [
177
+ AssessmentTakerComponent
178
+ ],
179
+ providers: [AssessmentTakerService],
180
+ }]
181
+ }] });
182
+
183
+ class QuestSuccessComponent {
184
+ constructor(data, dialogRef) {
185
+ this.data = data;
186
+ this.dialogRef = dialogRef;
187
+ }
188
+ ngOnInit() {
189
+ }
190
+ onClose() {
191
+ this.dialogRef.close({ event: 'close' });
192
+ }
193
+ }
194
+ 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 });
195
+ 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]" }] });
196
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: QuestSuccessComponent, decorators: [{
197
+ type: Component,
198
+ 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: [""] }]
199
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
200
+ type: Inject,
201
+ args: [MAT_DIALOG_DATA]
202
+ }] }, { type: i1$1.MatDialogRef }]; } });
203
+
204
+ class OrderByPipe {
205
+ transform(value, order = "asc") {
206
+ console.log(value);
207
+ return value.sort((a, b) => {
208
+ if (order === "desc") {
209
+ return b.orderNo - a.orderNo;
210
+ }
211
+ return a.orderNo - b.orderNo;
212
+ });
213
+ }
214
+ }
215
+ OrderByPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: OrderByPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
216
+ OrderByPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: OrderByPipe, name: "orderBy" });
217
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: OrderByPipe, decorators: [{
218
+ type: Pipe,
219
+ args: [{
220
+ name: 'orderBy'
221
+ }]
222
+ }] });
223
+
224
+ class QuestionTypeObjectiveComponent {
225
+ constructor() {
226
+ this.viewChild = new EventEmitter();
227
+ this.formControl = new FormControl();
228
+ }
229
+ writeValue(value) {
230
+ this.formControl.setValue(value);
231
+ }
232
+ registerOnChange(fn) {
233
+ this.formControl.valueChanges.subscribe((val) => fn(val));
234
+ }
235
+ registerOnTouched(fn) {
236
+ this.formControl.valueChanges.subscribe((val) => fn(val));
237
+ }
238
+ onChildDataChanged(data) {
239
+ this.viewChild.emit(data);
240
+ }
241
+ optionDetection(obj) {
242
+ console.log("the object is " + JSON.stringify(obj));
243
+ let data = {
244
+ question: this.optionsList,
245
+ list: obj['childQuestionList']
246
+ };
247
+ console.log("the childList is " + JSON.stringify(data));
248
+ obj['childQuestionList']?.length ? this.viewChild.emit(data) : null;
249
+ }
250
+ }
251
+ QuestionTypeObjectiveComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: QuestionTypeObjectiveComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
252
+ 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: [
253
+ {
254
+ provide: NG_VALUE_ACCESSOR,
255
+ useExisting: forwardRef(() => QuestionTypeObjectiveComponent),
256
+ multi: true,
257
+ },
258
+ ], 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}}.&nbsp;{{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 } });
259
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: QuestionTypeObjectiveComponent, decorators: [{
260
+ type: Component,
261
+ args: [{ selector: 'lib-question-type-objective', providers: [
262
+ {
263
+ provide: NG_VALUE_ACCESSOR,
264
+ useExisting: forwardRef(() => QuestionTypeObjectiveComponent),
265
+ multi: true,
266
+ },
267
+ ], 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}}.&nbsp;{{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: [""] }]
268
+ }], ctorParameters: function () { return []; }, propDecorators: { required: [{
269
+ type: Input
270
+ }], optionsList: [{
271
+ type: Input
272
+ }], viewChild: [{
273
+ type: Output
274
+ }] } });
275
+
276
+ class QuestionTypeShortComponent {
277
+ constructor() {
278
+ this.formControl = new FormControl();
279
+ }
280
+ writeValue(value) {
281
+ this.formControl.setValue(value);
282
+ }
283
+ registerOnChange(fn) {
284
+ this.formControl.valueChanges.subscribe((val) => fn(val));
285
+ }
286
+ registerOnTouched(fn) {
287
+ this.formControl.valueChanges.subscribe((val) => fn(val));
288
+ }
289
+ }
290
+ QuestionTypeShortComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: QuestionTypeShortComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
291
+ 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: [
292
+ {
293
+ provide: NG_VALUE_ACCESSOR,
294
+ useExisting: forwardRef(() => QuestionTypeShortComponent),
295
+ multi: true,
296
+ },
297
+ ], 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 }] });
298
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: QuestionTypeShortComponent, decorators: [{
299
+ type: Component,
300
+ args: [{ selector: 'lib-question-type-short', viewProviders: [{ provide: ControlContainer, useExisting: NgForm }], providers: [
301
+ {
302
+ provide: NG_VALUE_ACCESSOR,
303
+ useExisting: forwardRef(() => QuestionTypeShortComponent),
304
+ multi: true,
305
+ },
306
+ ], 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"] }]
307
+ }], ctorParameters: function () { return []; }, propDecorators: { optionsList: [{
308
+ type: Input
309
+ }], required: [{
310
+ type: Input
311
+ }] } });
312
+
313
+ class QuestionTypeLongComponent {
314
+ constructor() {
315
+ this.formControl = new FormControl();
316
+ }
317
+ writeValue(value) {
318
+ this.formControl.setValue(value);
319
+ }
320
+ registerOnChange(fn) {
321
+ this.formControl.valueChanges.subscribe((val) => fn(val));
322
+ }
323
+ registerOnTouched(fn) {
324
+ this.formControl.valueChanges.subscribe((val) => fn(val));
325
+ }
326
+ }
327
+ QuestionTypeLongComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: QuestionTypeLongComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
328
+ 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: [
329
+ {
330
+ provide: NG_VALUE_ACCESSOR,
331
+ useExisting: forwardRef(() => QuestionTypeLongComponent),
332
+ multi: true,
333
+ },
334
+ ], 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"] }] });
335
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: QuestionTypeLongComponent, decorators: [{
336
+ type: Component,
337
+ args: [{ selector: 'lib-question-type-long', providers: [
338
+ {
339
+ provide: NG_VALUE_ACCESSOR,
340
+ useExisting: forwardRef(() => QuestionTypeLongComponent),
341
+ multi: true,
342
+ },
343
+ ], 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: [""] }]
344
+ }], ctorParameters: function () { return []; }, propDecorators: { required: [{
345
+ type: Input
346
+ }], optionsList: [{
347
+ type: Input
348
+ }], fieldAttributes: [{
349
+ type: Input
350
+ }], config: [{
351
+ type: Input
352
+ }] } });
353
+
354
+ class QuestionTypeDateComponent {
355
+ constructor() {
356
+ this.formControl = new FormControl();
357
+ }
358
+ writeValue(value) {
359
+ this.formControl.setValue(value);
360
+ }
361
+ registerOnChange(fn) {
362
+ this.formControl.valueChanges.subscribe((val) => fn(val));
363
+ }
364
+ registerOnTouched(fn) {
365
+ this.formControl.valueChanges.subscribe((val) => fn(val));
366
+ }
367
+ }
368
+ QuestionTypeDateComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: QuestionTypeDateComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
369
+ QuestionTypeDateComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: QuestionTypeDateComponent, selector: "lib-question-type-date", inputs: { required: "required" }, providers: [
370
+ {
371
+ provide: NG_VALUE_ACCESSOR,
372
+ useExisting: forwardRef(() => QuestionTypeDateComponent),
373
+ multi: true,
374
+ },
375
+ ], 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"] }] });
376
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: QuestionTypeDateComponent, decorators: [{
377
+ type: Component,
378
+ args: [{ selector: 'lib-question-type-date', providers: [
379
+ {
380
+ provide: NG_VALUE_ACCESSOR,
381
+ useExisting: forwardRef(() => QuestionTypeDateComponent),
382
+ multi: true,
383
+ },
384
+ ], 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: [""] }]
385
+ }], ctorParameters: function () { return []; }, propDecorators: { required: [{
386
+ type: Input
387
+ }] } });
388
+
389
+ class QuestionTypeNumberComponent {
390
+ constructor() {
391
+ this.formControl = new FormControl();
392
+ }
393
+ writeValue(value) {
394
+ this.formControl.setValue(value);
395
+ }
396
+ registerOnChange(fn) {
397
+ this.formControl.valueChanges.subscribe((val) => fn(val));
398
+ }
399
+ registerOnTouched(fn) {
400
+ this.formControl.valueChanges.subscribe((val) => fn(val));
401
+ }
402
+ }
403
+ QuestionTypeNumberComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: QuestionTypeNumberComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
404
+ 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: [
405
+ {
406
+ provide: NG_VALUE_ACCESSOR,
407
+ useExisting: forwardRef(() => QuestionTypeNumberComponent),
408
+ multi: true,
409
+ },
410
+ ], 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"] }] });
411
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: QuestionTypeNumberComponent, decorators: [{
412
+ type: Component,
413
+ args: [{ selector: 'lib-question-type-number', providers: [
414
+ {
415
+ provide: NG_VALUE_ACCESSOR,
416
+ useExisting: forwardRef(() => QuestionTypeNumberComponent),
417
+ multi: true,
418
+ },
419
+ ], 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: [""] }]
420
+ }], ctorParameters: function () { return []; }, propDecorators: { required: [{
421
+ type: Input
422
+ }], optionsList: [{
423
+ type: Input
424
+ }] } });
425
+
426
+ class QuestionTypeUploadFileComponent {
427
+ constructor() {
428
+ this.fileToUpload = null;
429
+ this.formControl = new FormControl();
430
+ }
431
+ writeValue(value) {
432
+ this.formControl.setValue(value);
433
+ }
434
+ registerOnChange(fn) {
435
+ this.formControl.valueChanges.subscribe((val) => fn(val));
436
+ }
437
+ registerOnTouched(fn) {
438
+ this.formControl.valueChanges.subscribe((val) => fn(val));
439
+ }
440
+ handleFileInput(event) {
441
+ const files = event.dataTransfer ? event.dataTransfer.files : event.target.files;
442
+ if (files.length > 0) {
443
+ const file = files[0];
444
+ this.formControl.patchValue({
445
+ fileSource: file
446
+ });
447
+ }
448
+ }
449
+ }
450
+ QuestionTypeUploadFileComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: QuestionTypeUploadFileComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
451
+ QuestionTypeUploadFileComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: QuestionTypeUploadFileComponent, selector: "lib-question-type-upload-file", inputs: { required: "required" }, providers: [
452
+ {
453
+ provide: NG_VALUE_ACCESSOR,
454
+ useExisting: forwardRef(() => QuestionTypeUploadFileComponent),
455
+ multi: true,
456
+ },
457
+ ], 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: [""] });
458
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: QuestionTypeUploadFileComponent, decorators: [{
459
+ type: Component,
460
+ args: [{ selector: 'lib-question-type-upload-file', providers: [
461
+ {
462
+ provide: NG_VALUE_ACCESSOR,
463
+ useExisting: forwardRef(() => QuestionTypeUploadFileComponent),
464
+ multi: true,
465
+ },
466
+ ], 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: [""] }]
467
+ }], ctorParameters: function () { return []; }, propDecorators: { required: [{
468
+ type: Input
469
+ }] } });
470
+
471
+ class QuestionTypeMultiselectComponent {
472
+ constructor() {
473
+ this.selectData = [];
474
+ this.formControl = new FormControl();
475
+ }
476
+ toggleSelection(event, data) {
477
+ if (event.checked) {
478
+ this.selectData.push(data);
479
+ }
480
+ else {
481
+ const i = this.selectData.findIndex(value => value.id == data.id);
482
+ this.selectData.splice(i, 1);
483
+ }
484
+ this.formControl.patchValue(this.selectData);
485
+ }
486
+ ;
487
+ writeValue(value) {
488
+ this.formControl.setValue(value);
489
+ }
490
+ registerOnChange(fn) {
491
+ this.formControl.valueChanges.subscribe((val) => fn(val));
492
+ }
493
+ registerOnTouched(fn) {
494
+ this.formControl.valueChanges.subscribe((val) => fn(val));
495
+ }
496
+ }
497
+ QuestionTypeMultiselectComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: QuestionTypeMultiselectComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
498
+ 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: [
499
+ {
500
+ provide: NG_VALUE_ACCESSOR,
501
+ useExisting: forwardRef(() => QuestionTypeMultiselectComponent),
502
+ multi: true,
503
+ },
504
+ ], 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 } });
505
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: QuestionTypeMultiselectComponent, decorators: [{
506
+ type: Component,
507
+ args: [{ selector: 'lib-question-type-multiselect', providers: [
508
+ {
509
+ provide: NG_VALUE_ACCESSOR,
510
+ useExisting: forwardRef(() => QuestionTypeMultiselectComponent),
511
+ multi: true,
512
+ },
513
+ ], 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: [""] }]
514
+ }], ctorParameters: function () { return []; }, propDecorators: { required: [{
515
+ type: Input
516
+ }], optionsList: [{
517
+ type: Input
518
+ }] } });
519
+
520
+ class QuestionTypeRatingComponent {
521
+ constructor() {
522
+ this.formControl = new FormControl();
523
+ }
524
+ toggleSelection(data) {
525
+ //data.selected = !data.selected;
526
+ console.log(data);
527
+ this.formControl.patchValue(data);
528
+ }
529
+ ;
530
+ writeValue(value) {
531
+ this.formControl.setValue(value);
532
+ }
533
+ registerOnChange(fn) {
534
+ this.formControl.valueChanges.subscribe((val) => fn(val));
535
+ }
536
+ registerOnTouched(fn) {
537
+ this.formControl.valueChanges.subscribe((val) => fn(val));
538
+ }
539
+ }
540
+ QuestionTypeRatingComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: QuestionTypeRatingComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
541
+ 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: [
542
+ {
543
+ provide: NG_VALUE_ACCESSOR,
544
+ useExisting: forwardRef(() => QuestionTypeRatingComponent),
545
+ multi: true,
546
+ },
547
+ ], 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 } });
548
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: QuestionTypeRatingComponent, decorators: [{
549
+ type: Component,
550
+ args: [{ selector: 'lib-question-type-rating', providers: [
551
+ {
552
+ provide: NG_VALUE_ACCESSOR,
553
+ useExisting: forwardRef(() => QuestionTypeRatingComponent),
554
+ multi: true,
555
+ },
556
+ ], 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: [""] }]
557
+ }], ctorParameters: function () { return []; }, propDecorators: { required: [{
558
+ type: Input
559
+ }], optionsList: [{
560
+ type: Input
561
+ }] } });
562
+
563
+ const ANGULAR_EDITOR_LOGO_URL = 'http://localhost:4200/assets/images/new_tooltip.jpg?raw=true';
564
+ class QuestionTypeEditorComponent {
565
+ constructor() {
566
+ this.angularEditorLogo = `<img alt="angular editor logo" src="${ANGULAR_EDITOR_LOGO_URL}">`;
567
+ this.formControl = new FormControl();
568
+ }
569
+ writeValue(value) {
570
+ this.formControl.setValue(value);
571
+ }
572
+ registerOnChange(fn) {
573
+ this.formControl.valueChanges.subscribe((val) => fn(val));
574
+ }
575
+ registerOnTouched(fn) {
576
+ this.formControl.valueChanges.subscribe((val) => fn(val));
577
+ }
578
+ }
579
+ QuestionTypeEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: QuestionTypeEditorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
580
+ 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: [
581
+ {
582
+ provide: NG_VALUE_ACCESSOR,
583
+ useExisting: forwardRef(() => QuestionTypeEditorComponent),
584
+ multi: true,
585
+ },
586
+ ], 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"] }] });
587
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: QuestionTypeEditorComponent, decorators: [{
588
+ type: Component,
589
+ args: [{ selector: 'lib-question-type-editor', providers: [
590
+ {
591
+ provide: NG_VALUE_ACCESSOR,
592
+ useExisting: forwardRef(() => QuestionTypeEditorComponent),
593
+ multi: true,
594
+ },
595
+ ], 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: [""] }]
596
+ }], ctorParameters: function () { return []; }, propDecorators: { required: [{
597
+ type: Input
598
+ }], optionsList: [{
599
+ type: Input
600
+ }], fieldAttributes: [{
601
+ type: Input
602
+ }], config: [{
603
+ type: Input
604
+ }] } });
605
+
606
+ class QuestionTypeSearchableTagComponent {
607
+ constructor(dialog) {
608
+ this.dialog = dialog;
609
+ this.visible = true;
610
+ this.selectable = true;
611
+ this.removable = true;
612
+ this.separatorKeysCodes = [ENTER, COMMA, SEMICOLON, 188];
613
+ this.formControl = new FormControl();
614
+ this.options = [];
615
+ this.allOptions = ["Lemon", "Lime", "Orange", "Strawberry"];
616
+ this.filteredOptions = this.formControl.valueChanges.pipe(startWith(null), map((option) => option ? this._filter(option) : this.allOptions.slice()));
617
+ }
618
+ writeValue(value) {
619
+ this.formControl.setValue(value);
620
+ }
621
+ registerOnChange(fn) {
622
+ this.formControl.valueChanges.subscribe((val) => fn(val));
623
+ }
624
+ registerOnTouched(fn) {
625
+ this.formControl.valueChanges.subscribe((val) => fn(val));
626
+ }
627
+ add(event) {
628
+ const input = event.input;
629
+ const value = event.value;
630
+ // Add our option
631
+ if ((value || "").trim()) {
632
+ this.options.push(value.trim());
633
+ }
634
+ // Reset the input value
635
+ if (input) {
636
+ input.value = "";
637
+ }
638
+ this.formControl.setValue(null);
639
+ this.updateControlValue();
640
+ }
641
+ remove(option) {
642
+ const index = this.options.indexOf(option);
643
+ if (index >= 0) {
644
+ this.options.splice(index, 1);
645
+ }
646
+ this.updateControlValue();
647
+ }
648
+ selected(event) {
649
+ this.options.push(event.option.viewValue);
650
+ this.optionInput.nativeElement.value = "";
651
+ this.formControl.setValue(null);
652
+ this.updateControlValue();
653
+ }
654
+ updateControlValue() {
655
+ this.formControl.patchValue(this.options);
656
+ }
657
+ openDialog(templateRef) {
658
+ this.dialog.open(templateRef);
659
+ }
660
+ _filter(value) {
661
+ const filterValue = value.toLowerCase();
662
+ return this.allOptions.filter(option => option.toLowerCase().indexOf(filterValue) === 0);
663
+ }
664
+ }
665
+ 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 });
666
+ 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: [
667
+ {
668
+ provide: NG_VALUE_ACCESSOR,
669
+ useExisting: forwardRef(() => QuestionTypeSearchableTagComponent),
670
+ multi: true,
671
+ },
672
+ ], 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 } });
673
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: QuestionTypeSearchableTagComponent, decorators: [{
674
+ type: Component,
675
+ args: [{ selector: 'lib-question-type-searchable-tag', providers: [
676
+ {
677
+ provide: NG_VALUE_ACCESSOR,
678
+ useExisting: forwardRef(() => QuestionTypeSearchableTagComponent),
679
+ multi: true,
680
+ },
681
+ ], 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: [""] }]
682
+ }], ctorParameters: function () { return [{ type: i1$1.MatDialog }]; }, propDecorators: { required: [{
683
+ type: Input
684
+ }], optionsList: [{
685
+ type: Input
686
+ }], fieldAttributes: [{
687
+ type: Input
688
+ }], optionInput: [{
689
+ type: ViewChild,
690
+ args: ["optionInput"]
691
+ }], matAutocomplete: [{
692
+ type: ViewChild,
693
+ args: ["auto"]
694
+ }] } });
695
+
696
+ class QuestWizardComponent {
697
+ constructor(assessmentService, assessmentIdService, fb, dialog, cdr) {
698
+ this.assessmentService = assessmentService;
699
+ this.assessmentIdService = assessmentIdService;
700
+ this.fb = fb;
701
+ this.dialog = dialog;
702
+ this.cdr = cdr;
703
+ this.childQuestionBook = [];
704
+ this.editorName = "editorName";
705
+ this.tooltipText = '';
706
+ this.submitted = false;
707
+ // assessmentId: any
708
+ this.assessmentQuestionPapersList = new Array();
709
+ this.questionIds = {};
710
+ this.startDate = new Date();
711
+ this.group = {};
712
+ this.assessmentHeaderImage = 'https://dev.platformcommons.org/forms/assets/images/domain/assessment-placeholder-2.png';
713
+ this.sectionQuestions = {};
714
+ this.requestPayload = {};
715
+ this.config = {
716
+ editable: true,
717
+ spellcheck: true,
718
+ height: '15rem',
719
+ minHeight: '5rem',
720
+ placeholder: 'Enter text here...',
721
+ translate: 'no',
722
+ defaultParagraphSeparator: 'p',
723
+ defaultFontName: 'Arial',
724
+ toolbarHiddenButtons: [
725
+ ['bold']
726
+ ],
727
+ customClasses: [
728
+ {
729
+ name: "quote",
730
+ class: "quote",
731
+ },
732
+ {
733
+ name: 'redText',
734
+ class: 'redText'
735
+ },
736
+ {
737
+ name: "titleText",
738
+ class: "titleText",
739
+ tag: "h1",
740
+ },
741
+ ]
742
+ };
743
+ this.formGroup = this.fb.group({});
744
+ }
745
+ ngOnChanges(changes) {
746
+ if (changes['assessmentId'] && !changes['assessmentId'].isFirstChange()) {
747
+ this.assessmentId = changes['assessmentId'].currentValue;
748
+ this.ngOnInit();
749
+ }
750
+ }
751
+ ngOnInit() {
752
+ // this.assessmentIdService.currentAssessmentId.subscribe(id => {
753
+ // this.assessmentId = id
754
+ // console.log(this.assessmentId)
755
+ // })
756
+ console.log(this.assessmentId);
757
+ if (this.assessmentId) {
758
+ this.getAssessmentDetails();
759
+ }
760
+ console.log(this.sectionQuestions);
761
+ // this.fb.group({
762
+ /* shortAns: ["", Validators.required],
763
+ longAns1: ["", Validators.required],
764
+ selDate: ["", Validators.required],
765
+ numberAns: ["", Validators.required],
766
+ multiSelectAns: ["", Validators.required],
767
+ multiSubAns: ["", Validators.required],
768
+ objSubAns: ["", Validators.required] */
769
+ // });
770
+ }
771
+ get f() {
772
+ return this.formGroup.controls;
773
+ }
774
+ submitTask() {
775
+ this.formGroup.markAllAsTouched();
776
+ if (this.formGroup.valid) {
777
+ console.log(this.formGroup.value);
778
+ this.requestPayload = {
779
+ "aiadefaultResponseList": [],
780
+ "assessmentInstance": {
781
+ /* assessment: this.assessmentQuestionPapersList.assessment,
782
+ asmtInstDesc: this.assessmentQuestionPapersList.aqpDesc,
783
+ asmtInstName: this.assessmentQuestionPapersList.aqpName, */
784
+ /* scheduleStatus: {
785
+ "code": "ASSESSMENT.PUBLISH",
786
+ "description": "",
787
+ "labels": [
788
+ {
789
+ "text": "Draft",
790
+ "language": {
791
+ "code": "ENG"
792
+ }
793
+ }
794
+ ],
795
+ "refClass": {
796
+ "code": "SCHEDULE_STATUS"
797
+ }
798
+ }, */ //assesmentSchema.scheduleStatus,
799
+ /* confirmationDate: new Date(),// assesmentSchema.confirmationDate,
800
+ endDate: new Date(),//assesmentSchema.endDate,
801
+ startDate: this.startDate, */
802
+ id: 145,
803
+ /* tenant: this.assessmentQuestionPapersList.tenant,
804
+ imageURL: "",//this.assessmentQuestionPapersList.imageURL,
805
+ isPublic: true,//this.assessmentQuestionPapersList.isPublic,
806
+ specificVisibility: false,//assesmentSchema.specificVisibility,
807
+ editable: false,//assesmentSchema.editable,
808
+ author: "Aashish Zenform",//assesmentSchema.author,
809
+ tenantId: this.assessmentQuestionPapersList.tenantId,
810
+ isActive: true,//assesmentSchema.isActive,
811
+ createdAt: this.assessmentQuestionPapersList.createdAt,
812
+ createdBy: this.assessmentQuestionPapersList.createdBy,
813
+ uuid: this.assessmentQuestionPapersList.uuid */
814
+ },
815
+ assessor: {
816
+ actorId: "0",
817
+ actorType: "ACTOR_TYPE.BRIDGE_USER",
818
+ id: 0,
819
+ isActive: true,
820
+ tenant: "0"
821
+ },
822
+ "id": 0,
823
+ "isActive": true,
824
+ "tenant": "0",
825
+ "assessedForEntityId": "303906",
826
+ "assessedForEntityType": "ACTOR_TYPE.BRIDGE_USER",
827
+ "assessee": {
828
+ actorId: "303906",
829
+ actorType: "ACTOR_TYPE.BRIDGE_USER",
830
+ id: 0,
831
+ isActive: true,
832
+ tenant: "0"
833
+ }
834
+ };
835
+ this.assessmentQuestionPapersList?.questionPaperSectionList.forEach((section, index) => {
836
+ section.sectionQuestionsList.sort((a, b) => a.orderNo - b.orderNo).forEach((ques, qindex) => {
837
+ var questionResponseObj = {};
838
+ const questionDetails = this.sectionQuestions[0].find(i => i.id === ques.questionId);
839
+ if (questionDetails?.questionType.code === "QUESTION_TYPE.OBJECTIVE" || questionDetails?.questionType.code === "QUESTION_TYPE.SCALE_RATING") {
840
+ const defaultOptions = questionDetails.defaultOptionsList;
841
+ questionResponseObj = { optionId: defaultOptions?.find(i => i.options.id === this.formGroup.value[ques.questionId].id)?.options };
842
+ }
843
+ else if (questionDetails?.questionType.code === "QUESTION_TYPE.MULTISELECT") {
844
+ const defaultOptions = questionDetails.defaultOptionsList;
845
+ const drobjectiveresponseList = [];
846
+ this.formGroup.value[ques.questionId]?.forEach((opt) => {
847
+ const selectedOptions = defaultOptions.find(i => i.options.id === opt.id);
848
+ drobjectiveresponseList.push({
849
+ id: 0,
850
+ defaultOption: selectedOptions
851
+ });
852
+ });
853
+ questionResponseObj = {
854
+ drobjectiveresponseList
855
+ };
856
+ }
857
+ else if (questionDetails?.questionType.code === "QUESTION_TYPE.MULTISELECT_SUBJECTIVE") {
858
+ const defaultOptions = questionDetails.defaultOptionsList;
859
+ const drobjectiveresponseList = [];
860
+ this.formGroup.value[`${ques.questionId}_objective`]?.forEach((opt) => {
861
+ const selectedOptions = defaultOptions.find(i => i.options.id === opt.id);
862
+ drobjectiveresponseList.push({
863
+ id: 0,
864
+ defaultOption: selectedOptions
865
+ });
866
+ });
867
+ questionResponseObj = {
868
+ drobjectiveresponseList,
869
+ drsubjectiveresponseList: [
870
+ {
871
+ id: 0,
872
+ responseText: this.formGroup.value[`${ques.questionId}_subjective`]
873
+ }
874
+ ]
875
+ };
876
+ }
877
+ else if (questionDetails?.questionType.code === "QUESTION_TYPE.OBJECTIVE_SUBJECTIVE") {
878
+ const defaultOptions = questionDetails.defaultOptionsList;
879
+ questionResponseObj = {
880
+ optionId: defaultOptions?.find(i => i.options.id === this.formGroup.value[`${ques.questionId}_objective`].id)?.options,
881
+ drsubjectiveresponseList: [
882
+ {
883
+ id: 0,
884
+ responseText: this.formGroup.value[`${ques.questionId}_subjective`]
885
+ }
886
+ ]
887
+ };
888
+ }
889
+ else if (questionDetails?.questionType.code === "QUESTION_TYPE.FILE_UPLOAD") {
890
+ let formData = new FormData();
891
+ /* let maxDepth=123;
892
+ const fileData = this.formGroup.value[ques.questionId];
893
+ let file: File = fileData.fileSourc;
894
+ formData.append('file', file);
895
+
896
+ this.assessmentService.uploadAssessment(formData).subscribe(response => {
897
+ console.log(response);
898
+ // if (response != '') {}
899
+ }); */
900
+ questionResponseObj = {
901
+ drsubjectiveresponseList: [
902
+ {
903
+ id: 0,
904
+ responseText: ''
905
+ }
906
+ ]
907
+ };
908
+ }
909
+ else {
910
+ questionResponseObj = {
911
+ drsubjectiveresponseList: [
912
+ {
913
+ id: 0,
914
+ responseText: this.formGroup.value[ques.questionId]
915
+ // responseText: "test"
916
+ }
917
+ ]
918
+ };
919
+ }
920
+ // if (questionDetails?.questionSubtype.code === "QUESTION_SUB_TYPE.SUBJECTIVE") {
921
+ this.requestPayload.aiadefaultResponseList.push({
922
+ ...questionResponseObj,
923
+ "id": 0,
924
+ "isActive": true,
925
+ "sectionQuestion": {
926
+ id: ques.id,
927
+ isActive: ques.isActive,
928
+ orderNo: ques.orderNo,
929
+ questionId: ques.questionId,
930
+ questionNumber: ques.questionNumber,
931
+ tenant: ques.tenant,
932
+ secQuestDesc: ques.secQuestDesc
933
+ },
934
+ "tenant": "0"
935
+ });
936
+ // }
937
+ });
938
+ });
939
+ this.assessmentService.submitAssessmentQuestionPapers(this.requestPayload).subscribe(response => {
940
+ console.log(response);
941
+ if (response != '') {
942
+ const dialogRef = this.dialog.open(QuestSuccessComponent, {
943
+ data: {
944
+ assesmentInstId: 'data'
945
+ },
946
+ disableClose: true
947
+ });
948
+ dialogRef.afterClosed().subscribe((result) => {
949
+ if (result?.event == 'close') {
950
+ window.location.reload();
951
+ }
952
+ });
953
+ }
954
+ });
955
+ console.log(this.requestPayload);
956
+ }
957
+ else {
958
+ console.log("invalid form values");
959
+ }
960
+ }
961
+ getAssessmentDetails() {
962
+ this.assessmentService.getAssessmentQuestionPapers(this.assessmentId).subscribe({
963
+ next: (data) => {
964
+ this.assessmentQuestionPapersList = data?.[0];
965
+ this.assessmentQuestionPapersList?.questionPaperSectionList.forEach((qps, index) => {
966
+ let questionIds = qps?.sectionQuestionsList.map((sectionQuestion) => sectionQuestion?.questionId);
967
+ this.questionIds[index] = questionIds;
968
+ this.getQuestions(this.assessmentId, questionIds, index);
969
+ });
970
+ }
971
+ });
972
+ console.log(this.sectionQuestions);
973
+ }
974
+ getSectionQuestionIds(section) {
975
+ return section?.sectionQuestionsList?.map((question) => question.questionId) || [];
976
+ }
977
+ showTooltip(data) {
978
+ if (data === null || data.match(/^ *$/) !== null) {
979
+ return false;
980
+ }
981
+ else {
982
+ return true;
983
+ }
984
+ }
985
+ getTooltipText(data) {
986
+ return data.replace(/<[^>]*>/g, '');
987
+ }
988
+ isQuestionPresentInBank(id) {
989
+ return this.childQuestionBook.findIndex((prev) => prev.questionId == id);
990
+ }
991
+ getchildQuesfrmBook(id) {
992
+ return this.childQuestionBook.find((child) => child.questionId == id);
993
+ }
994
+ getQuestions(assessmentId, questionIdList, index) {
995
+ this.assessmentService.getAssessmentQuestions(assessmentId, questionIdList).subscribe({
996
+ next: (questionsList) => {
997
+ let childQuesList = []; //objective type questions
998
+ this.finalQuestionList = questionsList;
999
+ this.sectionQuestions[index] = this.finalQuestionList;
1000
+ console.log('Updated sectionQuestions:', this.sectionQuestions);
1001
+ if (this.sectionQuestions && this.sectionQuestions[index]) {
1002
+ for (var ques of this.sectionQuestions[index]) {
1003
+ if (ques?.questionType.code === "QUESTION_TYPE.OBJECTIVE_SUBJECTIVE" || ques?.questionType.code === "QUESTION_TYPE.MULTISELECT_SUBJECTIVE") {
1004
+ this.group[`${ques.id}_objective`] = new FormControl(null, [Validators.required]);
1005
+ this.group[`${ques.id}_subjective`] = new FormControl(null, [Validators.required]);
1006
+ }
1007
+ else if (ques?.questionType.code === "QUESTION_TYPE.OBJECTIVE" ||
1008
+ ques?.questionType.code === "QUESTION_TYPE.SUBJECTIVE_SHORT" ||
1009
+ ques?.questionType.code === "QUESTION_TYPE.SUBJECTIVE_LONG" ||
1010
+ ques?.questionType.code === "QUESTION_TYPE.DATE" ||
1011
+ ques?.questionType.code === "QUESTION_TYPE.NUMBER" ||
1012
+ ques?.questionType.code === "QUESTION_TYPE.FILE_UPLOAD" ||
1013
+ ques?.questionType.code === "QUESTION_TYPE.MULTISELECT" ||
1014
+ ques?.questionType.code === "QUESTION_TYPE.SCALE_RATING" ||
1015
+ ques?.questionType.code === "QUESTION_TYPE.SUBJECTIVE_RICH_TEXT" ||
1016
+ ques?.questionType.code === "QUESTION_TYPE.SEARCHABLE_INPUT_MDM") {
1017
+ this.group[ques.id] = new FormControl(null, [Validators.required]);
1018
+ }
1019
+ else {
1020
+ }
1021
+ }
1022
+ // this.group[this.editorName] = new FormControl(null, [Validators.required])
1023
+ // this.group[this.formGroupName] = new FormGroup(this.group1)
1024
+ }
1025
+ this.formGroup = new FormGroup(this.group);
1026
+ this.startDate = new Date();
1027
+ //objective type questions
1028
+ questionsList.forEach((item) => {
1029
+ if (item.questionType.code === "QUESTION_TYPE.OBJECTIVE") {
1030
+ item.defaultOptionsList.forEach((option) => {
1031
+ option.childQuestionList?.forEach((id) => {
1032
+ if (this.isQuestionPresentInBank(id) == -1 && !childQuesList.includes(id)) {
1033
+ childQuesList.push(id);
1034
+ }
1035
+ });
1036
+ });
1037
+ }
1038
+ });
1039
+ if (childQuesList.length) {
1040
+ this.fetchChildQues(childQuesList);
1041
+ }
1042
+ }
1043
+ });
1044
+ }
1045
+ configureChild(event) {
1046
+ let childList = event.list;
1047
+ let root_question = event.question;
1048
+ let child;
1049
+ if (childList.length > 0) {
1050
+ childList.forEach((id) => {
1051
+ child = this.getchildQuesfrmBook(id);
1052
+ //add control here
1053
+ this.group[child.question.id] = new FormControl(null, [Validators.required]);
1054
+ this.formGroup = new FormGroup(this.group);
1055
+ });
1056
+ }
1057
+ this.finalQuestionList.forEach((question) => {
1058
+ if (question.id === root_question.id) {
1059
+ if (!this.finalQuestionList.includes(child.question)) {
1060
+ this.finalQuestionList.splice(this.finalQuestionList.indexOf(question) + 1, 0, child.question);
1061
+ }
1062
+ }
1063
+ });
1064
+ this.cdr.detectChanges();
1065
+ console.log('finalquestionlist' + JSON.stringify(this.finalQuestionList));
1066
+ }
1067
+ fetchChildQues(childQuesList) {
1068
+ this.assessmentService.getChildQuestionsWithIdList(this.assessmentId, childQuesList).subscribe((response) => {
1069
+ let questionList = response;
1070
+ childQuesList = [];
1071
+ questionList.forEach((item) => {
1072
+ item['userResponse'] = '';
1073
+ item['multiSelectResponse'] = '';
1074
+ this.childQuestionBook.push({
1075
+ question: item,
1076
+ questionId: item.id,
1077
+ isMandatory: true
1078
+ });
1079
+ if (item.questionType.code === "QUESTION_TYPE.OBJECTIVE") {
1080
+ item.defaultOptionsList.forEach((option) => {
1081
+ option.childQuestionList?.forEach((id) => {
1082
+ if (this.isQuestionPresentInBank(id) == -1 && !childQuesList.includes(id)) {
1083
+ childQuesList.push(id);
1084
+ }
1085
+ });
1086
+ });
1087
+ }
1088
+ });
1089
+ if (childQuesList.length) {
1090
+ this.fetchChildQues(childQuesList);
1091
+ }
1092
+ }, (error) => {
1093
+ console.error('Error fetching child questions:', error);
1094
+ throw error;
1095
+ });
1096
+ }
1097
+ scrollToSection(index) {
1098
+ const section = document.getElementById(`section-${index}`);
1099
+ section?.scrollIntoView({ behavior: 'smooth', block: 'start' });
1100
+ }
1101
+ }
1102
+ 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 });
1103
+ 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}}.&nbsp;{{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"] }] });
1104
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: QuestWizardComponent, decorators: [{
1105
+ type: Component,
1106
+ 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}}.&nbsp;{{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"] }]
1107
+ }], ctorParameters: function () { return [{ type: AssessmentTakerService }, { type: AssessmentIdService }, { type: i3.FormBuilder }, { type: i1$1.MatDialog }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { assessmentId: [{
1108
+ type: Input
1109
+ }] } });
1110
+
1111
+ class QuestionTypeObjectiveSubComponent {
1112
+ constructor() {
1113
+ this.formControl = new FormControl();
1114
+ }
1115
+ writeValue(value) {
1116
+ this.formControl.setValue(value);
1117
+ }
1118
+ registerOnChange(fn) {
1119
+ this.formControl.valueChanges.subscribe((val) => fn(val));
1120
+ }
1121
+ registerOnTouched(fn) {
1122
+ this.formControl.valueChanges.subscribe((val) => fn(val));
1123
+ }
1124
+ SubjectiveInputOnChange(event) {
1125
+ const val = this.formControl.value || {};
1126
+ val.subjective = event.target.value;
1127
+ this.formControl.patchValue(val);
1128
+ }
1129
+ ;
1130
+ ObjectiveOnChange(event, data) {
1131
+ const val = this.formControl.value || {};
1132
+ val.objective = data.id;
1133
+ this.formControl.patchValue(val);
1134
+ }
1135
+ ;
1136
+ }
1137
+ QuestionTypeObjectiveSubComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: QuestionTypeObjectiveSubComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1138
+ 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: [
1139
+ {
1140
+ provide: NG_VALUE_ACCESSOR,
1141
+ useExisting: forwardRef(() => QuestionTypeObjectiveSubComponent),
1142
+ multi: true,
1143
+ },
1144
+ ], 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 } });
1145
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: QuestionTypeObjectiveSubComponent, decorators: [{
1146
+ type: Component,
1147
+ args: [{ selector: 'lib-question-type-objective-sub', providers: [
1148
+ {
1149
+ provide: NG_VALUE_ACCESSOR,
1150
+ useExisting: forwardRef(() => QuestionTypeObjectiveSubComponent),
1151
+ multi: true,
1152
+ },
1153
+ ], 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: [""] }]
1154
+ }], ctorParameters: function () { return []; }, propDecorators: { required: [{
1155
+ type: Input
1156
+ }], optionsList: [{
1157
+ type: Input
1158
+ }], fieldAttributes: [{
1159
+ type: Input
1160
+ }] } });
1161
+
1162
+ class QuestionTypeMultiselectSubComponent {
1163
+ constructor() {
1164
+ this.selectData = [];
1165
+ this.formControl = new FormControl();
1166
+ }
1167
+ toggleSelection(event, data) {
1168
+ if (event.checked) {
1169
+ this.selectData.push(data);
1170
+ }
1171
+ else {
1172
+ const i = this.selectData.findIndex(value => value.id == data.id);
1173
+ this.selectData.splice(i, 1);
1174
+ }
1175
+ this.formControl.patchValue(this.selectData);
1176
+ }
1177
+ ;
1178
+ writeValue(value) {
1179
+ this.formControl.setValue(value);
1180
+ }
1181
+ registerOnChange(fn) {
1182
+ this.formControl.valueChanges.subscribe((val) => fn(val));
1183
+ }
1184
+ registerOnTouched(fn) {
1185
+ this.formControl.valueChanges.subscribe((val) => fn(val));
1186
+ }
1187
+ }
1188
+ QuestionTypeMultiselectSubComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: QuestionTypeMultiselectSubComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1189
+ 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: [
1190
+ {
1191
+ provide: NG_VALUE_ACCESSOR,
1192
+ useExisting: forwardRef(() => QuestionTypeMultiselectSubComponent),
1193
+ multi: true,
1194
+ },
1195
+ ], 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 } });
1196
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: QuestionTypeMultiselectSubComponent, decorators: [{
1197
+ type: Component,
1198
+ args: [{ selector: 'lib-question-type-multiselect-sub', providers: [
1199
+ {
1200
+ provide: NG_VALUE_ACCESSOR,
1201
+ useExisting: forwardRef(() => QuestionTypeMultiselectSubComponent),
1202
+ multi: true,
1203
+ },
1204
+ ], 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: [""] }]
1205
+ }], ctorParameters: function () { return []; }, propDecorators: { required: [{
1206
+ type: Input
1207
+ }], optionsList: [{
1208
+ type: Input
1209
+ }] } });
1210
+
1211
+ class QuestionTypeAddDialogComponent {
1212
+ constructor(dialog) {
1213
+ this.dialog = dialog;
1214
+ this.visible = true;
1215
+ this.selectable = true;
1216
+ this.removable = true;
1217
+ this.separatorKeysCodes = [ENTER, 188];
1218
+ this.formControl = new FormControl();
1219
+ this.options = [];
1220
+ this.allOptions = ["Lemon", "Lime", "Orange", "Strawberry"];
1221
+ this.filteredOptions = this.formControl.valueChanges.pipe(startWith$1(null), map$1((option) => option ? this._filter(option) : this.allOptions.slice()));
1222
+ }
1223
+ writeValue(value) {
1224
+ this.formControl.setValue(value);
1225
+ }
1226
+ registerOnChange(fn) {
1227
+ this.formControl.valueChanges.subscribe((val) => fn(val));
1228
+ }
1229
+ registerOnTouched(fn) {
1230
+ this.formControl.valueChanges.subscribe((val) => fn(val));
1231
+ }
1232
+ add(event) {
1233
+ const input = event.input;
1234
+ const value = event.value;
1235
+ // Add our option
1236
+ if ((value || "").trim()) {
1237
+ this.options.push(value.trim());
1238
+ }
1239
+ // Reset the input value
1240
+ if (input) {
1241
+ input.value = "";
1242
+ }
1243
+ this.formControl.setValue(null);
1244
+ this.updateControlValue();
1245
+ }
1246
+ remove(option) {
1247
+ const index = this.options.indexOf(option);
1248
+ if (index >= 0) {
1249
+ this.options.splice(index, 1);
1250
+ }
1251
+ this.updateControlValue();
1252
+ }
1253
+ selected(event) {
1254
+ this.options.push(event.option.viewValue);
1255
+ this.optionInput.nativeElement.value = "";
1256
+ this.formControl.setValue(null);
1257
+ this.updateControlValue();
1258
+ }
1259
+ updateControlValue() {
1260
+ this.formControl.patchValue(this.options);
1261
+ }
1262
+ openDialog(templateRef) {
1263
+ this.dialog.open(templateRef);
1264
+ }
1265
+ _filter(value) {
1266
+ const filterValue = value.toLowerCase();
1267
+ return this.allOptions.filter(option => option.toLowerCase().indexOf(filterValue) === 0);
1268
+ }
1269
+ }
1270
+ 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 });
1271
+ 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: [
1272
+ {
1273
+ provide: NG_VALUE_ACCESSOR,
1274
+ useExisting: forwardRef(() => QuestionTypeAddDialogComponent),
1275
+ multi: true,
1276
+ },
1277
+ ], 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"] }] });
1278
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: QuestionTypeAddDialogComponent, decorators: [{
1279
+ type: Component,
1280
+ args: [{ selector: 'lib-question-type-add-dialog', providers: [
1281
+ {
1282
+ provide: NG_VALUE_ACCESSOR,
1283
+ useExisting: forwardRef(() => QuestionTypeAddDialogComponent),
1284
+ multi: true,
1285
+ },
1286
+ ], 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: [""] }]
1287
+ }], ctorParameters: function () { return [{ type: i1$1.MatDialog }]; }, propDecorators: { required: [{
1288
+ type: Input
1289
+ }], optionsList: [{
1290
+ type: Input
1291
+ }], fieldAttributes: [{
1292
+ type: Input
1293
+ }], optionInput: [{
1294
+ type: ViewChild,
1295
+ args: ["optionInput"]
1296
+ }], matAutocomplete: [{
1297
+ type: ViewChild,
1298
+ args: ["auto"]
1299
+ }] } });
1300
+
1301
+ class SharedComponentsModule {
1302
+ }
1303
+ SharedComponentsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: SharedComponentsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1304
+ SharedComponentsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: SharedComponentsModule, declarations: [OrderByPipe,
1305
+ QuestionTypeObjectiveComponent,
1306
+ QuestionTypeShortComponent,
1307
+ QuestionTypeDateComponent,
1308
+ QuestionTypeLongComponent,
1309
+ QuestionTypeNumberComponent,
1310
+ QuestionTypeUploadFileComponent,
1311
+ QuestionTypeMultiselectComponent,
1312
+ QuestionTypeObjectiveSubComponent,
1313
+ QuestionTypeMultiselectSubComponent,
1314
+ QuestionTypeRatingComponent,
1315
+ QuestionTypeEditorComponent,
1316
+ QuestionTypeSearchableTagComponent,
1317
+ QuestionTypeAddDialogComponent], imports: [MatChipsModule,
1318
+ MatAutocompleteModule,
1319
+ AngularEditorModule,
1320
+ FormsModule,
1321
+ MatIconModule,
1322
+ CommonModule,
1323
+ ReactiveFormsModule,
1324
+ MatFormFieldModule,
1325
+ MatInputModule,
1326
+ MatDatepickerModule,
1327
+ MatNativeDateModule,
1328
+ MatButtonToggleModule,
1329
+ MatTooltipModule,
1330
+ MatCheckboxModule,
1331
+ MatRadioModule], exports: [QuestionTypeObjectiveComponent,
1332
+ QuestionTypeShortComponent,
1333
+ QuestionTypeDateComponent,
1334
+ QuestionTypeLongComponent,
1335
+ QuestionTypeNumberComponent,
1336
+ QuestionTypeUploadFileComponent,
1337
+ QuestionTypeMultiselectComponent,
1338
+ QuestionTypeObjectiveSubComponent,
1339
+ QuestionTypeMultiselectSubComponent,
1340
+ QuestionTypeRatingComponent,
1341
+ QuestionTypeEditorComponent,
1342
+ QuestionTypeSearchableTagComponent,
1343
+ QuestionTypeAddDialogComponent] });
1344
+ SharedComponentsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: SharedComponentsModule, imports: [[
1345
+ MatChipsModule,
1346
+ MatAutocompleteModule,
1347
+ AngularEditorModule,
1348
+ FormsModule,
1349
+ MatIconModule,
1350
+ CommonModule,
1351
+ ReactiveFormsModule,
1352
+ MatFormFieldModule,
1353
+ MatInputModule,
1354
+ MatDatepickerModule,
1355
+ MatNativeDateModule,
1356
+ MatButtonToggleModule,
1357
+ MatTooltipModule,
1358
+ MatCheckboxModule,
1359
+ MatRadioModule
1360
+ ]] });
1361
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: SharedComponentsModule, decorators: [{
1362
+ type: NgModule,
1363
+ args: [{
1364
+ declarations: [
1365
+ OrderByPipe,
1366
+ QuestionTypeObjectiveComponent,
1367
+ QuestionTypeShortComponent,
1368
+ QuestionTypeDateComponent,
1369
+ QuestionTypeLongComponent,
1370
+ QuestionTypeNumberComponent,
1371
+ QuestionTypeUploadFileComponent,
1372
+ QuestionTypeMultiselectComponent,
1373
+ QuestionTypeObjectiveSubComponent,
1374
+ QuestionTypeMultiselectSubComponent,
1375
+ QuestionTypeRatingComponent,
1376
+ QuestionTypeEditorComponent,
1377
+ QuestionTypeSearchableTagComponent,
1378
+ QuestionTypeAddDialogComponent
1379
+ ],
1380
+ imports: [
1381
+ MatChipsModule,
1382
+ MatAutocompleteModule,
1383
+ AngularEditorModule,
1384
+ FormsModule,
1385
+ MatIconModule,
1386
+ CommonModule,
1387
+ ReactiveFormsModule,
1388
+ MatFormFieldModule,
1389
+ MatInputModule,
1390
+ MatDatepickerModule,
1391
+ MatNativeDateModule,
1392
+ MatButtonToggleModule,
1393
+ MatTooltipModule,
1394
+ MatCheckboxModule,
1395
+ MatRadioModule
1396
+ ],
1397
+ exports: [QuestionTypeObjectiveComponent,
1398
+ QuestionTypeShortComponent,
1399
+ QuestionTypeDateComponent,
1400
+ QuestionTypeLongComponent,
1401
+ QuestionTypeNumberComponent,
1402
+ QuestionTypeUploadFileComponent,
1403
+ QuestionTypeMultiselectComponent,
1404
+ QuestionTypeObjectiveSubComponent,
1405
+ QuestionTypeMultiselectSubComponent,
1406
+ QuestionTypeRatingComponent,
1407
+ QuestionTypeEditorComponent,
1408
+ QuestionTypeSearchableTagComponent,
1409
+ QuestionTypeAddDialogComponent]
1410
+ }]
1411
+ }] });
1412
+
1413
+ class FeatureModule {
1414
+ }
1415
+ FeatureModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: FeatureModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1416
+ FeatureModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: FeatureModule, declarations: [QuestWizardComponent,
1417
+ QuestSuccessComponent], imports: [MatDialogModule,
1418
+ MatButtonModule,
1419
+ MatTooltipModule,
1420
+ CommonModule,
1421
+ // FeatureRoutingModule,
1422
+ SharedComponentsModule,
1423
+ ReactiveFormsModule,
1424
+ FormsModule,
1425
+ MatChipsModule], exports: [QuestWizardComponent] });
1426
+ FeatureModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: FeatureModule, imports: [[
1427
+ MatDialogModule,
1428
+ MatButtonModule,
1429
+ MatTooltipModule,
1430
+ CommonModule,
1431
+ // FeatureRoutingModule,
1432
+ SharedComponentsModule,
1433
+ ReactiveFormsModule,
1434
+ FormsModule,
1435
+ MatChipsModule
1436
+ ]] });
1437
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: FeatureModule, decorators: [{
1438
+ type: NgModule,
1439
+ args: [{
1440
+ declarations: [
1441
+ QuestWizardComponent,
1442
+ QuestSuccessComponent
1443
+ ],
1444
+ imports: [
1445
+ MatDialogModule,
1446
+ MatButtonModule,
1447
+ MatTooltipModule,
1448
+ CommonModule,
1449
+ // FeatureRoutingModule,
1450
+ SharedComponentsModule,
1451
+ ReactiveFormsModule,
1452
+ FormsModule,
1453
+ MatChipsModule
1454
+ ],
1455
+ exports: [QuestWizardComponent]
1456
+ }]
1457
+ }] });
1458
+
1459
+ /*
1460
+ * Public API Surface of assessment-taker
1461
+ */
1462
+
1463
+ /**
1464
+ * Generated bundle index. Do not edit.
1465
+ */
1466
+
1467
+ export { AssessmentIdService, AssessmentTakerComponent, AssessmentTakerModule, AssessmentTakerService, FeatureModule, QuestWizardComponent, QuestionTypeAddDialogComponent, QuestionTypeDateComponent, QuestionTypeEditorComponent, QuestionTypeLongComponent, QuestionTypeMultiselectComponent, QuestionTypeMultiselectSubComponent, QuestionTypeNumberComponent, QuestionTypeObjectiveComponent, QuestionTypeObjectiveSubComponent, QuestionTypeRatingComponent, QuestionTypeSearchableTagComponent, QuestionTypeShortComponent, QuestionTypeUploadFileComponent, SharedComponentsModule };
1468
+ //# sourceMappingURL=pcf-assessment-taker.mjs.map