survery-lib 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +24 -0
- package/assets/style.css +58 -0
- package/assets/style.css.map +1 -0
- package/esm2022/lib/components/question-boolean-template/question-boolean-template.component.mjs +80 -0
- package/esm2022/lib/components/question-check-box-template/question-check-box-template.component.mjs +88 -0
- package/esm2022/lib/components/question-dropdown-template/question-dropdown-template.component.mjs +76 -0
- package/esm2022/lib/components/question-matrix-template/question-matrix-template.component.mjs +69 -0
- package/esm2022/lib/components/question-radio-button-template/question-radio-button-template.component.mjs +80 -0
- package/esm2022/lib/components/question-text-template/question-text-template.component.mjs +77 -0
- package/esm2022/lib/services/shared-data.service.mjs +23 -0
- package/esm2022/lib/services/survey-lib.service.mjs +23 -0
- package/esm2022/lib/survery-lib.component.mjs +124 -0
- package/esm2022/lib/survery-lib.module.mjs +50 -0
- package/esm2022/public-api.mjs +7 -0
- package/esm2022/shared/dtos/rule-exp-answer.dto.mjs +2 -0
- package/esm2022/shared/dtos/rule-exp.dto.mjs +2 -0
- package/esm2022/shared/dtos/rule-result-question.dto.mjs +2 -0
- package/esm2022/shared/dtos/survey-answer.dto.mjs +2 -0
- package/esm2022/shared/dtos/survey-page.dto.mjs +2 -0
- package/esm2022/shared/dtos/survey-question-group.dto.mjs +2 -0
- package/esm2022/shared/dtos/survey-question.dto.mjs +2 -0
- package/esm2022/shared/dtos/survey-rule.dto.mjs +2 -0
- package/esm2022/shared/dtos/survey-sub-question.dto.mjs +2 -0
- package/esm2022/shared/dtos/survey.dto.mjs +2 -0
- package/esm2022/shared/enums/question-type.enum.mjs +10 -0
- package/esm2022/shared/form-interfaces/question-boolean-template.form-interface.mjs +2 -0
- package/esm2022/shared/form-interfaces/question-check-box-template.form-interface.mjs +3 -0
- package/esm2022/shared/form-interfaces/question-dropdown-template.form-interface.mjs +3 -0
- package/esm2022/shared/form-interfaces/question-matrix-template.form-interface.mjs +2 -0
- package/esm2022/shared/form-interfaces/question-radio-button-template.form-interface.mjs +3 -0
- package/esm2022/shared/form-interfaces/question-text-template.form-interface.mjs +2 -0
- package/esm2022/shared/form-interfaces/survery-lib.form-interface.mjs +2 -0
- package/esm2022/shared/models/question-answer.model.mjs +3 -0
- package/esm2022/survery-lib.mjs +5 -0
- package/fesm2022/survery-lib.mjs +638 -0
- package/fesm2022/survery-lib.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/components/question-boolean-template/question-boolean-template.component.d.ts +34 -0
- package/lib/components/question-check-box-template/question-check-box-template.component.d.ts +34 -0
- package/lib/components/question-dropdown-template/question-dropdown-template.component.d.ts +31 -0
- package/lib/components/question-matrix-template/question-matrix-template.component.d.ts +28 -0
- package/lib/components/question-radio-button-template/question-radio-button-template.component.d.ts +34 -0
- package/lib/components/question-text-template/question-text-template.component.d.ts +31 -0
- package/lib/services/shared-data.service.d.ts +9 -0
- package/lib/services/survey-lib.service.d.ts +10 -0
- package/lib/survery-lib.component.d.ts +34 -0
- package/lib/survery-lib.module.d.ts +19 -0
- package/package.json +27 -0
- package/public-api.d.ts +3 -0
- package/shared/dtos/rule-exp-answer.dto.d.ts +5 -0
- package/shared/dtos/rule-exp.dto.d.ts +11 -0
- package/shared/dtos/rule-result-question.dto.d.ts +4 -0
- package/shared/dtos/survey-answer.dto.d.ts +16 -0
- package/shared/dtos/survey-page.dto.d.ts +9 -0
- package/shared/dtos/survey-question-group.dto.d.ts +8 -0
- package/shared/dtos/survey-question.dto.d.ts +18 -0
- package/shared/dtos/survey-rule.dto.d.ts +10 -0
- package/shared/dtos/survey-sub-question.dto.d.ts +9 -0
- package/shared/dtos/survey.dto.d.ts +16 -0
- package/shared/enums/question-type.enum.d.ts +8 -0
- package/shared/form-interfaces/question-boolean-template.form-interface.d.ts +9 -0
- package/shared/form-interfaces/question-check-box-template.form-interface.d.ts +9 -0
- package/shared/form-interfaces/question-dropdown-template.form-interface.d.ts +9 -0
- package/shared/form-interfaces/question-matrix-template.form-interface.d.ts +11 -0
- package/shared/form-interfaces/question-radio-button-template.form-interface.d.ts +9 -0
- package/shared/form-interfaces/question-text-template.form-interface.d.ts +9 -0
- package/shared/form-interfaces/survery-lib.form-interface.d.ts +11 -0
- package/shared/models/question-answer.model.d.ts +5 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { SurveyPageDto } from "./survey-page.dto";
|
|
2
|
+
import { SurveyRuleDto } from "./survey-rule.dto";
|
|
3
|
+
export interface SurveyDto {
|
|
4
|
+
surveyId: number;
|
|
5
|
+
surveyTitle: string;
|
|
6
|
+
applicantKey: any;
|
|
7
|
+
applicantKeyTitle?: any;
|
|
8
|
+
surveyPages: SurveyPageDto[];
|
|
9
|
+
surveyRules: SurveyRuleDto[];
|
|
10
|
+
isSuccess: boolean;
|
|
11
|
+
errors: any[];
|
|
12
|
+
code?: any;
|
|
13
|
+
message?: any;
|
|
14
|
+
languageTypeId?: any;
|
|
15
|
+
returnUrl?: any;
|
|
16
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { QuestionTypeEnum } from "../enums/question-type.enum";
|
|
2
|
+
export interface QuestionMatrixTemplateFormInterface {
|
|
3
|
+
id: any;
|
|
4
|
+
typeId: QuestionTypeEnum;
|
|
5
|
+
subQuestionArray: SubQuestionChildOfQuestionMatrixTemplateFormInterface[];
|
|
6
|
+
}
|
|
7
|
+
export interface SubQuestionChildOfQuestionMatrixTemplateFormInterface {
|
|
8
|
+
subQuestionId: any;
|
|
9
|
+
questionTitle: any;
|
|
10
|
+
answer: any;
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface SurveryLibFormInterface {
|
|
2
|
+
currentPageIndex: number;
|
|
3
|
+
questionArray: QuestionChildOfSurveryLibFormInterface[];
|
|
4
|
+
}
|
|
5
|
+
export interface QuestionChildOfSurveryLibFormInterface {
|
|
6
|
+
surveyPageIndex: any;
|
|
7
|
+
questionId: any;
|
|
8
|
+
answer: any;
|
|
9
|
+
isRequired: any;
|
|
10
|
+
isValid: any;
|
|
11
|
+
}
|