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.
Files changed (68) hide show
  1. package/README.md +24 -0
  2. package/assets/style.css +58 -0
  3. package/assets/style.css.map +1 -0
  4. package/esm2022/lib/components/question-boolean-template/question-boolean-template.component.mjs +80 -0
  5. package/esm2022/lib/components/question-check-box-template/question-check-box-template.component.mjs +88 -0
  6. package/esm2022/lib/components/question-dropdown-template/question-dropdown-template.component.mjs +76 -0
  7. package/esm2022/lib/components/question-matrix-template/question-matrix-template.component.mjs +69 -0
  8. package/esm2022/lib/components/question-radio-button-template/question-radio-button-template.component.mjs +80 -0
  9. package/esm2022/lib/components/question-text-template/question-text-template.component.mjs +77 -0
  10. package/esm2022/lib/services/shared-data.service.mjs +23 -0
  11. package/esm2022/lib/services/survey-lib.service.mjs +23 -0
  12. package/esm2022/lib/survery-lib.component.mjs +124 -0
  13. package/esm2022/lib/survery-lib.module.mjs +50 -0
  14. package/esm2022/public-api.mjs +7 -0
  15. package/esm2022/shared/dtos/rule-exp-answer.dto.mjs +2 -0
  16. package/esm2022/shared/dtos/rule-exp.dto.mjs +2 -0
  17. package/esm2022/shared/dtos/rule-result-question.dto.mjs +2 -0
  18. package/esm2022/shared/dtos/survey-answer.dto.mjs +2 -0
  19. package/esm2022/shared/dtos/survey-page.dto.mjs +2 -0
  20. package/esm2022/shared/dtos/survey-question-group.dto.mjs +2 -0
  21. package/esm2022/shared/dtos/survey-question.dto.mjs +2 -0
  22. package/esm2022/shared/dtos/survey-rule.dto.mjs +2 -0
  23. package/esm2022/shared/dtos/survey-sub-question.dto.mjs +2 -0
  24. package/esm2022/shared/dtos/survey.dto.mjs +2 -0
  25. package/esm2022/shared/enums/question-type.enum.mjs +10 -0
  26. package/esm2022/shared/form-interfaces/question-boolean-template.form-interface.mjs +2 -0
  27. package/esm2022/shared/form-interfaces/question-check-box-template.form-interface.mjs +3 -0
  28. package/esm2022/shared/form-interfaces/question-dropdown-template.form-interface.mjs +3 -0
  29. package/esm2022/shared/form-interfaces/question-matrix-template.form-interface.mjs +2 -0
  30. package/esm2022/shared/form-interfaces/question-radio-button-template.form-interface.mjs +3 -0
  31. package/esm2022/shared/form-interfaces/question-text-template.form-interface.mjs +2 -0
  32. package/esm2022/shared/form-interfaces/survery-lib.form-interface.mjs +2 -0
  33. package/esm2022/shared/models/question-answer.model.mjs +3 -0
  34. package/esm2022/survery-lib.mjs +5 -0
  35. package/fesm2022/survery-lib.mjs +638 -0
  36. package/fesm2022/survery-lib.mjs.map +1 -0
  37. package/index.d.ts +5 -0
  38. package/lib/components/question-boolean-template/question-boolean-template.component.d.ts +34 -0
  39. package/lib/components/question-check-box-template/question-check-box-template.component.d.ts +34 -0
  40. package/lib/components/question-dropdown-template/question-dropdown-template.component.d.ts +31 -0
  41. package/lib/components/question-matrix-template/question-matrix-template.component.d.ts +28 -0
  42. package/lib/components/question-radio-button-template/question-radio-button-template.component.d.ts +34 -0
  43. package/lib/components/question-text-template/question-text-template.component.d.ts +31 -0
  44. package/lib/services/shared-data.service.d.ts +9 -0
  45. package/lib/services/survey-lib.service.d.ts +10 -0
  46. package/lib/survery-lib.component.d.ts +34 -0
  47. package/lib/survery-lib.module.d.ts +19 -0
  48. package/package.json +27 -0
  49. package/public-api.d.ts +3 -0
  50. package/shared/dtos/rule-exp-answer.dto.d.ts +5 -0
  51. package/shared/dtos/rule-exp.dto.d.ts +11 -0
  52. package/shared/dtos/rule-result-question.dto.d.ts +4 -0
  53. package/shared/dtos/survey-answer.dto.d.ts +16 -0
  54. package/shared/dtos/survey-page.dto.d.ts +9 -0
  55. package/shared/dtos/survey-question-group.dto.d.ts +8 -0
  56. package/shared/dtos/survey-question.dto.d.ts +18 -0
  57. package/shared/dtos/survey-rule.dto.d.ts +10 -0
  58. package/shared/dtos/survey-sub-question.dto.d.ts +9 -0
  59. package/shared/dtos/survey.dto.d.ts +16 -0
  60. package/shared/enums/question-type.enum.d.ts +8 -0
  61. package/shared/form-interfaces/question-boolean-template.form-interface.d.ts +9 -0
  62. package/shared/form-interfaces/question-check-box-template.form-interface.d.ts +9 -0
  63. package/shared/form-interfaces/question-dropdown-template.form-interface.d.ts +9 -0
  64. package/shared/form-interfaces/question-matrix-template.form-interface.d.ts +11 -0
  65. package/shared/form-interfaces/question-radio-button-template.form-interface.d.ts +9 -0
  66. package/shared/form-interfaces/question-text-template.form-interface.d.ts +9 -0
  67. package/shared/form-interfaces/survery-lib.form-interface.d.ts +11 -0
  68. 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,8 @@
1
+ export declare enum QuestionTypeEnum {
2
+ RadioButton = 1,
3
+ CheckBox = 2,
4
+ DropDown = 3,
5
+ Boolean = 4,
6
+ TextInput = 5,
7
+ Matrix = 6
8
+ }
@@ -0,0 +1,9 @@
1
+ import { QuestionTypeEnum } from "../enums/question-type.enum";
2
+ export interface QuestionBooleanTemplateFormInterface {
3
+ id: any;
4
+ typeId: QuestionTypeEnum;
5
+ name: any;
6
+ title: any;
7
+ description: any;
8
+ answer: any;
9
+ }
@@ -0,0 +1,9 @@
1
+ import { QuestionTypeEnum } from "../enums/question-type.enum";
2
+ export declare class QuestionCheckBoxTemplateFormInterface {
3
+ id: any;
4
+ typeId: QuestionTypeEnum;
5
+ name: any;
6
+ title: any;
7
+ description: any;
8
+ answer: any;
9
+ }
@@ -0,0 +1,9 @@
1
+ import { QuestionTypeEnum } from "../enums/question-type.enum";
2
+ export declare class QuestionDropdownTemplateFormInterface {
3
+ id: any;
4
+ typeId: QuestionTypeEnum;
5
+ name: any;
6
+ title: any;
7
+ description: any;
8
+ answer: any;
9
+ }
@@ -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,9 @@
1
+ import { QuestionTypeEnum } from "../enums/question-type.enum";
2
+ export declare class QuestionRadioButtonTemplateFormInterface {
3
+ id: any;
4
+ typeId: QuestionTypeEnum;
5
+ name: any;
6
+ title: any;
7
+ description: any;
8
+ answer: any;
9
+ }
@@ -0,0 +1,9 @@
1
+ import { QuestionTypeEnum } from "../enums/question-type.enum";
2
+ export interface QuestionTextTemplateFormInterface {
3
+ id: any;
4
+ typeId: QuestionTypeEnum;
5
+ name: any;
6
+ title: any;
7
+ description: any;
8
+ answer: any;
9
+ }
@@ -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
+ }
@@ -0,0 +1,5 @@
1
+ export declare class QuestionAnswerModel {
2
+ QuestionId: any;
3
+ Answer: any;
4
+ IsValid: any;
5
+ }