survery-lib 0.1.60 → 0.2.2

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 (49) hide show
  1. package/esm2022/lib/components/question-boolean-template/question-boolean-template.component.mjs +57 -55
  2. package/esm2022/lib/components/question-cascade-template/question-cascade-template.component.mjs +46 -20
  3. package/esm2022/lib/components/question-check-box-template/question-check-box-template.component.mjs +63 -56
  4. package/esm2022/lib/components/question-dropdown-multi-template/question-dropdown-multi-template.component.mjs +60 -53
  5. package/esm2022/lib/components/question-dropdown-template/question-dropdown-template.component.mjs +53 -38
  6. package/esm2022/lib/components/question-matrix-template/question-matrix-template.component.mjs +66 -54
  7. package/esm2022/lib/components/question-radio-button-template/question-radio-button-template.component.mjs +60 -52
  8. package/esm2022/lib/components/question-text-template/question-text-template.component.mjs +75 -70
  9. package/esm2022/lib/core/states/entites/question-group.entity.mjs +8 -0
  10. package/esm2022/lib/core/states/entites/question.entity.mjs +8 -0
  11. package/esm2022/lib/core/states/entites/rule.entity.mjs +8 -0
  12. package/esm2022/lib/core/states/survey-store/question-group.selector.mjs +9 -0
  13. package/esm2022/lib/core/states/survey-store/question.selector.mjs +22 -0
  14. package/esm2022/lib/core/states/survey-store/survey.action.mjs +18 -0
  15. package/esm2022/lib/core/states/survey-store/survey.reducer.mjs +102 -0
  16. package/esm2022/lib/core/states/survey-store/survey.selector.mjs +33 -0
  17. package/esm2022/lib/pipes/filter-question.pipe.mjs +3 -3
  18. package/esm2022/lib/pipes/find-question.pipe.mjs +19 -0
  19. package/esm2022/lib/services/survey-lib.service.mjs +99 -41
  20. package/esm2022/lib/survery-lib.component.mjs +84 -285
  21. package/esm2022/lib/survery-lib.module.mjs +21 -7
  22. package/esm2022/lib/usecases/check-rule-exps.usecase.mjs +1 -1
  23. package/esm2022/shared/form-interfaces/survery-lib.form-interface.mjs +1 -1
  24. package/fesm2022/survery-lib.mjs +823 -706
  25. package/fesm2022/survery-lib.mjs.map +1 -1
  26. package/lib/components/question-boolean-template/question-boolean-template.component.d.ts +7 -6
  27. package/lib/components/question-cascade-template/question-cascade-template.component.d.ts +9 -6
  28. package/lib/components/question-check-box-template/question-check-box-template.component.d.ts +7 -6
  29. package/lib/components/question-dropdown-multi-template/question-dropdown-multi-template.component.d.ts +6 -6
  30. package/lib/components/question-dropdown-template/question-dropdown-template.component.d.ts +5 -2
  31. package/lib/components/question-matrix-template/question-matrix-template.component.d.ts +7 -6
  32. package/lib/components/question-radio-button-template/question-radio-button-template.component.d.ts +7 -6
  33. package/lib/components/question-text-template/question-text-template.component.d.ts +8 -7
  34. package/lib/core/states/entites/question-group.entity.d.ts +11 -0
  35. package/lib/core/states/entites/question.entity.d.ts +27 -0
  36. package/lib/core/states/entites/rule.entity.d.ts +8 -0
  37. package/lib/core/states/survey-store/question-group.selector.d.ts +4 -0
  38. package/lib/core/states/survey-store/question.selector.d.ts +7 -0
  39. package/lib/core/states/survey-store/survey.action.d.ts +54 -0
  40. package/lib/core/states/survey-store/survey.reducer.d.ts +12 -0
  41. package/lib/core/states/survey-store/survey.selector.d.ts +9 -0
  42. package/lib/pipes/filter-question.pipe.d.ts +2 -3
  43. package/lib/pipes/find-question.pipe.d.ts +8 -0
  44. package/lib/services/survey-lib.service.d.ts +4 -29
  45. package/lib/survery-lib.component.d.ts +16 -23
  46. package/lib/survery-lib.module.d.ts +9 -6
  47. package/lib/usecases/check-rule-exps.usecase.d.ts +2 -3
  48. package/package.json +1 -1
  49. package/shared/form-interfaces/survery-lib.form-interface.d.ts +3 -3
@@ -1,7 +1,7 @@
1
1
  import { Observable } from "rxjs";
2
2
  import { UseCase } from "./base/use-case";
3
- import { QuestionChildOfSurveryLibFormInterface } from "../../shared/form-interfaces/survery-lib.form-interface";
4
3
  import { RuleExpDto } from "../../shared/dtos/rule-exp.dto";
4
+ import { QuestionNgrxModel } from "../core/states/entites/question.entity";
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class CheckRuleExpsUsecase implements UseCase<CheckRulesUsecaseModel, CheckRulesUsecaseResult> {
7
7
  constructor();
@@ -14,8 +14,7 @@ export declare class CheckRuleExpsUsecase implements UseCase<CheckRulesUsecaseMo
14
14
  }
15
15
  export declare class CheckRulesUsecaseModel {
16
16
  ruleExps: RuleExpDto[];
17
- questions: QuestionChildOfSurveryLibFormInterface[];
18
- currentPageIndex: number;
17
+ questions: QuestionNgrxModel[];
19
18
  }
20
19
  export declare class CheckRulesUsecaseResult {
21
20
  exprestionResultArr: boolean[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "survery-lib",
3
- "version": "0.1.60",
3
+ "version": "0.2.02",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^16.1.0",
6
6
  "@angular/core": "^16.1.0"
@@ -1,9 +1,9 @@
1
+ import { FormControl } from "@angular/forms";
1
2
  import { InputTypeEnum } from "../enums/input-type.enum";
2
3
  import { QuestionTypeEnum } from "../enums/question-type.enum";
3
4
  export interface SurveryLibFormInterface {
4
- currentPageIndex: number;
5
- questionArray: QuestionChildOfSurveryLibFormInterface[];
6
- ruleQuestionArray: RuleQuestionChildOfSurveryLibFormInterface[];
5
+ currentPageId: FormControl<number>;
6
+ showedSurveyPages: FormControl<number[]>;
7
7
  }
8
8
  export interface QuestionChildOfSurveryLibFormInterface {
9
9
  surveyPageIndex: number;