survery-lib 0.1.9 → 0.1.11
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/assets/style.css +325 -0
- package/assets/style.css.map +1 -1
- package/ng-package.json +11 -0
- package/package.json +15 -27
- package/scss/style.scss +88 -0
- package/src/lib/components/question-boolean-template/question-boolean-template.component.html +13 -0
- package/src/lib/components/question-boolean-template/question-boolean-template.component.scss +0 -0
- package/src/lib/components/question-boolean-template/question-boolean-template.component.spec.ts +21 -0
- package/src/lib/components/question-boolean-template/question-boolean-template.component.ts +109 -0
- package/src/lib/components/question-check-box-template/question-check-box-template.component.html +13 -0
- package/src/lib/components/question-check-box-template/question-check-box-template.component.scss +0 -0
- package/src/lib/components/question-check-box-template/question-check-box-template.component.spec.ts +21 -0
- package/src/lib/components/question-check-box-template/question-check-box-template.component.ts +124 -0
- package/src/lib/components/question-dropdown-multi-template/question-dropdown-multi-template.component.html +10 -0
- package/src/lib/components/question-dropdown-multi-template/question-dropdown-multi-template.component.scss +3 -0
- package/src/lib/components/question-dropdown-multi-template/question-dropdown-multi-template.component.spec.ts +21 -0
- package/src/lib/components/question-dropdown-multi-template/question-dropdown-multi-template.component.ts +100 -0
- package/src/lib/components/question-dropdown-template/question-dropdown-template.component.html +10 -0
- package/src/lib/components/question-dropdown-template/question-dropdown-template.component.scss +0 -0
- package/src/lib/components/question-dropdown-template/question-dropdown-template.component.spec.ts +21 -0
- package/src/lib/components/question-dropdown-template/question-dropdown-template.component.ts +87 -0
- package/src/lib/components/question-matrix-template/question-matrix-template.component.html +36 -0
- package/src/lib/components/question-matrix-template/question-matrix-template.component.scss +0 -0
- package/src/lib/components/question-matrix-template/question-matrix-template.component.spec.ts +21 -0
- package/src/lib/components/question-matrix-template/question-matrix-template.component.ts +110 -0
- package/src/lib/components/question-radio-button-template/question-radio-button-template.component.html +13 -0
- package/src/lib/components/question-radio-button-template/question-radio-button-template.component.scss +0 -0
- package/src/lib/components/question-radio-button-template/question-radio-button-template.component.spec.ts +21 -0
- package/src/lib/components/question-radio-button-template/question-radio-button-template.component.ts +111 -0
- package/src/lib/components/question-text-template/question-text-template.component.html +13 -0
- package/src/lib/components/question-text-template/question-text-template.component.scss +0 -0
- package/src/lib/components/question-text-template/question-text-template.component.spec.ts +21 -0
- package/src/lib/components/question-text-template/question-text-template.component.ts +105 -0
- package/src/lib/pipes/default-question-answer.pipe.spec.ts +8 -0
- package/src/lib/pipes/default-question-answer.pipe.ts +18 -0
- package/src/lib/pipes/default-question-answers.pipe.spec.ts +8 -0
- package/src/lib/pipes/default-question-answers.pipe.ts +17 -0
- package/src/lib/pipes/filter-question.pipe.spec.ts +8 -0
- package/src/lib/pipes/filter-question.pipe.ts +14 -0
- package/src/lib/services/survey-lib.service.spec.ts +16 -0
- package/src/lib/services/survey-lib.service.ts +31 -0
- package/src/lib/survery-lib.component.spec.ts +21 -0
- package/src/lib/survery-lib.component.ts +308 -0
- package/src/lib/survery-lib.module.ts +47 -0
- package/src/lib/survey-lib.component.html +67 -0
- package/src/lib/survey-lib.component.scss +4 -0
- package/{lib/usecases/base/use-case.d.ts → src/lib/usecases/base/use-case.ts} +9 -7
- package/src/lib/usecases/check-rule-exps.usecase.ts +188 -0
- package/{public-api.d.ts → src/public-api.ts} +5 -1
- package/src/shared/dtos/default-question-answers.dto.ts +10 -0
- package/{shared/dtos/rule-exp-answer.dto.d.ts → src/shared/dtos/rule-exp-answer.dto.ts} +5 -5
- package/{shared/dtos/rule-exp.dto.d.ts → src/shared/dtos/rule-exp.dto.ts} +14 -13
- package/{shared/dtos/rule-result-question.dto.d.ts → src/shared/dtos/rule-result-question.dto.ts} +5 -4
- package/{shared/dtos/survey-answer.dto.d.ts → src/shared/dtos/survey-answer.dto.ts} +16 -16
- package/{shared/dtos/survey-answers-subject.dto.d.ts → src/shared/dtos/survey-answers-subject.dto.ts} +6 -5
- package/{shared/dtos/survey-page.dto.d.ts → src/shared/dtos/survey-page.dto.ts} +10 -9
- package/{shared/dtos/survey-question-group.dto.d.ts → src/shared/dtos/survey-question-group.dto.ts} +9 -8
- package/{shared/dtos/survey-question.dto.d.ts → src/shared/dtos/survey-question.dto.ts} +19 -18
- package/{shared/dtos/survey-rule.dto.d.ts → src/shared/dtos/survey-rule.dto.ts} +11 -10
- package/{shared/dtos/survey-sub-question.dto.d.ts → src/shared/dtos/survey-sub-question.dto.ts} +9 -9
- package/{shared/dtos/survey.dto.d.ts → src/shared/dtos/survey.dto.ts} +17 -16
- package/{shared/enums/logic-action.enum.d.ts → src/shared/enums/logic-action.enum.ts} +7 -7
- package/src/shared/enums/logic-property.enum.ts +12 -0
- package/src/shared/enums/operator.enum.ts +4 -0
- package/{shared/enums/question-type.enum.d.ts → src/shared/enums/question-type.enum.ts} +9 -8
- package/src/shared/form-interfaces/question-boolean-template.form-interface.ts +17 -0
- package/src/shared/form-interfaces/question-check-box-template.form-interface.ts +18 -0
- package/src/shared/form-interfaces/question-dropdown-multi-template.form-interface.ts +17 -0
- package/src/shared/form-interfaces/question-dropdown-template.form-interface.ts +10 -0
- package/{shared/form-interfaces/question-matrix-template.form-interface.d.ts → src/shared/form-interfaces/question-matrix-template.form-interface.ts} +13 -11
- package/src/shared/form-interfaces/question-radio-button-template.form-interface.ts +17 -0
- package/src/shared/form-interfaces/question-text-template.form-interface.ts +11 -0
- package/src/shared/form-interfaces/survery-lib.form-interface.ts +27 -0
- package/src/shared/models/question-answer.model.ts +6 -0
- package/src/shared/models/survery-question-result.model.ts +8 -0
- package/tsconfig.lib.json +14 -0
- package/tsconfig.lib.prod.json +10 -0
- package/tsconfig.spec.json +14 -0
- package/esm2022/lib/components/question-boolean-template/question-boolean-template.component.mjs +0 -97
- package/esm2022/lib/components/question-check-box-template/question-check-box-template.component.mjs +0 -108
- package/esm2022/lib/components/question-dropdown-template/question-dropdown-template.component.mjs +0 -83
- package/esm2022/lib/components/question-matrix-template/question-matrix-template.component.mjs +0 -101
- package/esm2022/lib/components/question-radio-button-template/question-radio-button-template.component.mjs +0 -97
- package/esm2022/lib/components/question-text-template/question-text-template.component.mjs +0 -99
- package/esm2022/lib/pipes/default-question-answer.pipe.mjs +0 -19
- package/esm2022/lib/pipes/default-question-answers.pipe.mjs +0 -19
- package/esm2022/lib/pipes/filter-question.pipe.mjs +0 -16
- package/esm2022/lib/services/survey-lib.service.mjs +0 -30
- package/esm2022/lib/survery-lib.component.mjs +0 -270
- package/esm2022/lib/survery-lib.module.mjs +0 -59
- package/esm2022/lib/usecases/base/use-case.mjs +0 -2
- package/esm2022/lib/usecases/check-rule-exps.usecase.mjs +0 -154
- package/esm2022/public-api.mjs +0 -8
- package/esm2022/shared/dtos/default-question-answers.dto.mjs +0 -3
- package/esm2022/shared/dtos/rule-exp-answer.dto.mjs +0 -2
- package/esm2022/shared/dtos/rule-exp.dto.mjs +0 -2
- package/esm2022/shared/dtos/rule-result-question.dto.mjs +0 -2
- package/esm2022/shared/dtos/survey-answer.dto.mjs +0 -2
- package/esm2022/shared/dtos/survey-answers-subject.dto.mjs +0 -3
- package/esm2022/shared/dtos/survey-page.dto.mjs +0 -2
- package/esm2022/shared/dtos/survey-question-group.dto.mjs +0 -2
- package/esm2022/shared/dtos/survey-question.dto.mjs +0 -2
- package/esm2022/shared/dtos/survey-rule.dto.mjs +0 -2
- package/esm2022/shared/dtos/survey-sub-question.dto.mjs +0 -2
- package/esm2022/shared/dtos/survey.dto.mjs +0 -2
- package/esm2022/shared/enums/Logic-Property.enum.mjs +0 -14
- package/esm2022/shared/enums/logic-action.enum.mjs +0 -9
- package/esm2022/shared/enums/operator.enum.mjs +0 -6
- package/esm2022/shared/enums/question-type.enum.mjs +0 -10
- package/esm2022/shared/form-interfaces/question-boolean-template.form-interface.mjs +0 -2
- package/esm2022/shared/form-interfaces/question-check-box-template.form-interface.mjs +0 -3
- package/esm2022/shared/form-interfaces/question-dropdown-template.form-interface.mjs +0 -3
- package/esm2022/shared/form-interfaces/question-matrix-template.form-interface.mjs +0 -2
- package/esm2022/shared/form-interfaces/question-radio-button-template.form-interface.mjs +0 -3
- package/esm2022/shared/form-interfaces/question-text-template.form-interface.mjs +0 -2
- package/esm2022/shared/form-interfaces/survery-lib.form-interface.mjs +0 -2
- package/esm2022/shared/models/question-answer.model.mjs +0 -3
- package/esm2022/shared/models/survery-question-result.model.mjs +0 -3
- package/esm2022/survery-lib.mjs +0 -5
- package/fesm2022/survery-lib.mjs +0 -1114
- package/fesm2022/survery-lib.mjs.map +0 -1
- package/index.d.ts +0 -5
- package/lib/components/question-boolean-template/question-boolean-template.component.d.ts +0 -36
- package/lib/components/question-check-box-template/question-check-box-template.component.d.ts +0 -37
- package/lib/components/question-dropdown-template/question-dropdown-template.component.d.ts +0 -33
- package/lib/components/question-matrix-template/question-matrix-template.component.d.ts +0 -33
- package/lib/components/question-radio-button-template/question-radio-button-template.component.d.ts +0 -36
- package/lib/components/question-text-template/question-text-template.component.d.ts +0 -35
- package/lib/pipes/default-question-answer.pipe.d.ts +0 -8
- package/lib/pipes/default-question-answers.pipe.d.ts +0 -8
- package/lib/pipes/filter-question.pipe.d.ts +0 -9
- package/lib/services/survey-lib.service.d.ts +0 -14
- package/lib/survery-lib.component.d.ts +0 -45
- package/lib/survery-lib.module.d.ts +0 -22
- package/lib/usecases/check-rule-exps.usecase.d.ts +0 -21
- package/shared/dtos/default-question-answers.dto.d.ts +0 -9
- package/shared/enums/Logic-Property.enum.d.ts +0 -12
- package/shared/enums/operator.enum.d.ts +0 -4
- package/shared/form-interfaces/question-boolean-template.form-interface.d.ts +0 -15
- package/shared/form-interfaces/question-check-box-template.form-interface.d.ts +0 -15
- package/shared/form-interfaces/question-dropdown-template.form-interface.d.ts +0 -9
- package/shared/form-interfaces/question-radio-button-template.form-interface.d.ts +0 -15
- package/shared/form-interfaces/question-text-template.form-interface.d.ts +0 -10
- package/shared/form-interfaces/survery-lib.form-interface.d.ts +0 -24
- package/shared/models/question-answer.model.d.ts +0 -6
- package/shared/models/survery-question-result.model.d.ts +0 -8
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { ModuleWithProviders } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
import * as i1 from "./survery-lib.component";
|
|
4
|
-
import * as i2 from "./components/question-text-template/question-text-template.component";
|
|
5
|
-
import * as i3 from "./components/question-radio-button-template/question-radio-button-template.component";
|
|
6
|
-
import * as i4 from "./components/question-check-box-template/question-check-box-template.component";
|
|
7
|
-
import * as i5 from "./components/question-dropdown-template/question-dropdown-template.component";
|
|
8
|
-
import * as i6 from "./components/question-matrix-template/question-matrix-template.component";
|
|
9
|
-
import * as i7 from "./components/question-boolean-template/question-boolean-template.component";
|
|
10
|
-
import * as i8 from "./pipes/filter-question.pipe";
|
|
11
|
-
import * as i9 from "./pipes/default-question-answer.pipe";
|
|
12
|
-
import * as i10 from "./pipes/default-question-answers.pipe";
|
|
13
|
-
import * as i11 from "@angular/common";
|
|
14
|
-
import * as i12 from "@angular/common/http";
|
|
15
|
-
import * as i13 from "@angular/forms";
|
|
16
|
-
import * as i14 from "@ng-stack/forms";
|
|
17
|
-
export declare class SurveryLibModule {
|
|
18
|
-
static forRoot(): ModuleWithProviders<SurveryLibModule>;
|
|
19
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SurveryLibModule, never>;
|
|
20
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SurveryLibModule, [typeof i1.SurveryLibComponent, typeof i2.QuestionTextTemplateComponent, typeof i3.QuestionRadioButtonTemplateComponent, typeof i4.QuestionCheckBoxTemplateComponent, typeof i5.QuestionDropdownTemplateComponent, typeof i6.QuestionMatrixTemplateComponent, typeof i7.QuestionBooleanTemplateComponent, typeof i8.FilterQuestionPipe, typeof i9.DefaultQuestionAnswerPipe, typeof i10.DefaultQuestionAnswersPipe], [typeof i11.CommonModule, typeof i12.HttpClientModule, typeof i13.ReactiveFormsModule, typeof i13.FormsModule, typeof i14.NgsFormsModule], [typeof i1.SurveryLibComponent]>;
|
|
21
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<SurveryLibModule>;
|
|
22
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { Observable } from "rxjs";
|
|
2
|
-
import { UseCase } from "./base/use-case";
|
|
3
|
-
import { QuestionChildOfSurveryLibFormInterface } from "../../shared/form-interfaces/survery-lib.form-interface";
|
|
4
|
-
import { RuleExpDto } from "../../shared/dtos/rule-exp.dto";
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class CheckRuleExpsUsecase implements UseCase<CheckRulesUsecaseModel, CheckRulesUsecaseResult> {
|
|
7
|
-
constructor();
|
|
8
|
-
execute(params: CheckRulesUsecaseModel): Observable<CheckRulesUsecaseResult>;
|
|
9
|
-
private checkRuleExpForAnswerId;
|
|
10
|
-
private checkRuleExpForAnswerIdArr;
|
|
11
|
-
private checkRuleExpForAnswerText;
|
|
12
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CheckRuleExpsUsecase, never>;
|
|
13
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<CheckRuleExpsUsecase>;
|
|
14
|
-
}
|
|
15
|
-
export declare class CheckRulesUsecaseModel {
|
|
16
|
-
ruleExps: RuleExpDto[];
|
|
17
|
-
questions: QuestionChildOfSurveryLibFormInterface[];
|
|
18
|
-
}
|
|
19
|
-
export declare class CheckRulesUsecaseResult {
|
|
20
|
-
exprestionResultArr: boolean[];
|
|
21
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
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
|
-
answerArray: AnswerChildOfQuestionBooleanTemplateFormInterface[];
|
|
10
|
-
}
|
|
11
|
-
export interface AnswerChildOfQuestionBooleanTemplateFormInterface {
|
|
12
|
-
id: any;
|
|
13
|
-
title: any;
|
|
14
|
-
isSelected: any;
|
|
15
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
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
|
-
answerArray: AnswerChildOfQuestionCheckBoxTemplateFormInterface[];
|
|
10
|
-
}
|
|
11
|
-
export interface AnswerChildOfQuestionCheckBoxTemplateFormInterface {
|
|
12
|
-
id: any;
|
|
13
|
-
title: any;
|
|
14
|
-
isSelected: any;
|
|
15
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
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
|
-
answerArray: AnswerChildOfQuestionRadioButtonTemplateFormInterface[];
|
|
10
|
-
}
|
|
11
|
-
export interface AnswerChildOfQuestionRadioButtonTemplateFormInterface {
|
|
12
|
-
id: any;
|
|
13
|
-
title: any;
|
|
14
|
-
isSelected: any;
|
|
15
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { QuestionTypeEnum } from "../enums/question-type.enum";
|
|
2
|
-
export interface SurveryLibFormInterface {
|
|
3
|
-
currentPageIndex: number;
|
|
4
|
-
questionArray: QuestionChildOfSurveryLibFormInterface[];
|
|
5
|
-
ruleQuestionArray: RuleQuestionChildOfSurveryLibFormInterface[];
|
|
6
|
-
}
|
|
7
|
-
export interface QuestionChildOfSurveryLibFormInterface {
|
|
8
|
-
surveyPageIndex: number;
|
|
9
|
-
questionId: any;
|
|
10
|
-
questionType: QuestionTypeEnum;
|
|
11
|
-
isMatrixGroup: boolean;
|
|
12
|
-
answerId: any;
|
|
13
|
-
answerIdArr: any;
|
|
14
|
-
answerText: any;
|
|
15
|
-
isRequired: boolean;
|
|
16
|
-
isValid: boolean;
|
|
17
|
-
isDisabled: boolean;
|
|
18
|
-
isShow: boolean;
|
|
19
|
-
isDisabled_default: boolean;
|
|
20
|
-
isShow_default: boolean;
|
|
21
|
-
}
|
|
22
|
-
export interface RuleQuestionChildOfSurveryLibFormInterface {
|
|
23
|
-
questionId: any;
|
|
24
|
-
}
|