survery-lib 2.1.46 → 2.1.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/lib/components/question-file-template/question-file-template.component.mjs +66 -56
- package/esm2022/lib/core/states/entites/question.entity.mjs +1 -1
- package/esm2022/lib/core/states/survey-store/survey.action.mjs +1 -1
- package/esm2022/lib/core/states/survey-store/survey.reducer.mjs +7 -7
- package/esm2022/lib/survery-lib.component.mjs +1 -1
- package/esm2022/shared/dtos/default-question-answers.dto.mjs +1 -1
- package/esm2022/shared/dtos/survey-answer.dto.mjs +1 -1
- package/esm2022/shared/form-interfaces/question-file-template.form-interface.mjs +1 -1
- package/esm2022/shared/models/survery-question-result.model.mjs +1 -1
- package/fesm2022/survery-lib.mjs +72 -62
- package/fesm2022/survery-lib.mjs.map +1 -1
- package/lib/components/question-file-template/question-file-template.component.d.ts +9 -5
- package/lib/core/states/entites/question.entity.d.ts +4 -1
- package/lib/core/states/survey-store/survey.action.d.ts +8 -4
- package/package.json +1 -1
- package/shared/dtos/default-question-answers.dto.d.ts +4 -0
- package/shared/dtos/survey-answer.dto.d.ts +2 -0
- package/shared/form-interfaces/question-file-template.form-interface.d.ts +8 -2
- package/shared/models/survery-question-result.model.d.ts +4 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
1
|
+
import { ElementRef, OnInit } from '@angular/core';
|
|
2
2
|
import { FormBuilder, FormControl, FormGroup } from '@angular/forms';
|
|
3
3
|
import { SurveyQuestionDto } from '../../../shared/dtos/survey-question.dto';
|
|
4
4
|
import { QuestionTypeEnum } from '../../../shared/enums/question-type.enum';
|
|
@@ -11,6 +11,7 @@ export declare class QuestionFileTemplateComponent implements OnInit {
|
|
|
11
11
|
private _formBuilder;
|
|
12
12
|
private _surveyLibService;
|
|
13
13
|
private _Store;
|
|
14
|
+
readonly MAX_FILE_SIZE: number;
|
|
14
15
|
surveyQuestion: SurveyQuestionDto;
|
|
15
16
|
rForm: FormGroup<QuestionFileTemplateFormInterface>;
|
|
16
17
|
questionArr: import("@angular/core").Signal<QuestionNgrxModel[]>;
|
|
@@ -18,13 +19,16 @@ export declare class QuestionFileTemplateComponent implements OnInit {
|
|
|
18
19
|
get questionTypeEnum(): typeof QuestionTypeEnum;
|
|
19
20
|
isArabicLang: boolean;
|
|
20
21
|
set setQuestion(value: QuestionNgrxModel);
|
|
21
|
-
|
|
22
|
+
fileInputRef: ElementRef<HTMLInputElement>;
|
|
22
23
|
constructor(_formBuilder: FormBuilder, _surveyLibService: SurveyLibService, _Store: Store);
|
|
23
24
|
ngOnInit(): void;
|
|
24
25
|
convertToFormControl(element: any): FormControl<any>;
|
|
25
|
-
readonly MAX_FILE_SIZE: number;
|
|
26
26
|
onFileSelect(event: Event): void;
|
|
27
|
-
|
|
27
|
+
openFileInNewTab(item: {
|
|
28
|
+
file: string;
|
|
29
|
+
name: string;
|
|
30
|
+
}): void;
|
|
31
|
+
onDeleteFile(index: number): void;
|
|
28
32
|
static ɵfac: i0.ɵɵFactoryDeclaration<QuestionFileTemplateComponent, never>;
|
|
29
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<QuestionFileTemplateComponent, "lib-question-file-template", never, { "isArabicLang": { "alias": "isArabicLang"; "required": false; }; "setQuestion": { "alias": "setQuestion"; "required": false; };
|
|
33
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<QuestionFileTemplateComponent, "lib-question-file-template", never, { "isArabicLang": { "alias": "isArabicLang"; "required": false; }; "setQuestion": { "alias": "setQuestion"; "required": false; }; }, {}, never, never, false, never>;
|
|
30
34
|
}
|
|
@@ -30,13 +30,17 @@ export declare const surveyActions: {
|
|
|
30
30
|
} & import("@ngrx/store/src/models").TypedAction<"[Survey library] Update Question Answer">>;
|
|
31
31
|
updateQuestionFileAnswer: import("@ngrx/store").ActionCreator<"[Survey library] Update Question Answer", (props: {
|
|
32
32
|
questionId: any;
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
fileArr: {
|
|
34
|
+
file: string;
|
|
35
|
+
name: string;
|
|
36
|
+
}[];
|
|
35
37
|
isValid: boolean;
|
|
36
38
|
}) => {
|
|
37
39
|
questionId: any;
|
|
38
|
-
|
|
39
|
-
|
|
40
|
+
fileArr: {
|
|
41
|
+
file: string;
|
|
42
|
+
name: string;
|
|
43
|
+
}[];
|
|
40
44
|
isValid: boolean;
|
|
41
45
|
} & import("@ngrx/store/src/models").TypedAction<"[Survey library] Update Question Answer">>;
|
|
42
46
|
updateInstitutionQuestionAnswer: import("@ngrx/store").ActionCreator<"[Survey library] Update Institution Question Answer", (props: {
|
package/package.json
CHANGED
|
@@ -6,9 +6,15 @@ export interface QuestionFileTemplateFormInterface {
|
|
|
6
6
|
name: FormControl<string>;
|
|
7
7
|
title: FormControl<string>;
|
|
8
8
|
description: FormControl<string>;
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
fileArr: FormControl<{
|
|
10
|
+
file: string;
|
|
11
|
+
name: string;
|
|
12
|
+
byteArr: string;
|
|
13
|
+
fileRaw?: File | null;
|
|
14
|
+
}[] | null>;
|
|
11
15
|
surveyAnswerId: FormControl<number>;
|
|
12
16
|
isShow: FormControl<boolean>;
|
|
13
17
|
isDisabled: FormControl<boolean>;
|
|
18
|
+
isMultiple: FormControl<boolean>;
|
|
19
|
+
acceptedTypes: FormControl<string>;
|
|
14
20
|
}
|