@touchpoll/tp-survey 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/esm2022/lib/component/answer/answer.additional/answer.additional.component.mjs +49 -0
- package/esm2022/lib/component/answer/answer.additional/directive/additional.answer.caption.position/additional.answer.caption.position.directive.mjs +61 -0
- package/esm2022/lib/component/answer/answer.end/answer.end.component.mjs +30 -0
- package/esm2022/lib/component/answer/answer.info/answer.info.component.mjs +30 -0
- package/esm2022/lib/component/answer/answer.lang/answer.lang.component.mjs +22 -0
- package/esm2022/lib/component/answer/answer.master/answer.master.component.mjs +55 -0
- package/esm2022/lib/component/answer/answer.ms/answer.ms.component.mjs +106 -0
- package/esm2022/lib/component/answer/answer.od/answer.od.component.mjs +39 -0
- package/esm2022/lib/component/answer/answer.ol/answer.ol.component.mjs +39 -0
- package/esm2022/lib/component/answer/answer.sl/answer.sl.component.mjs +131 -0
- package/esm2022/lib/component/answer/answer.sl/pipe/as.form.array/as.form.array.pipe.mjs +17 -0
- package/esm2022/lib/component/answer/answer.sl/pipe/as.form.control/as.form.control.pipe.mjs +17 -0
- package/esm2022/lib/component/answer/answer.ss/answer.ss.component.mjs +51 -0
- package/esm2022/lib/component/answer/container.answer/container.answer.component.mjs +317 -0
- package/esm2022/lib/component/answer/container.answer/container.answer.validator.mjs +124 -0
- package/esm2022/lib/component/navigation.button/navigation.button.component.mjs +21 -0
- package/esm2022/lib/component/question.caption/question.caption.component.mjs +15 -0
- package/esm2022/lib/component/survey.play/survey.play.component.mjs +131 -0
- package/esm2022/lib/component/survey.question.preview/survey.question.preview.component.mjs +44 -0
- package/esm2022/lib/core/tp.servey.quota/tp.survey.quota.mjs +82 -0
- package/esm2022/lib/core/tp.survey.answer/tp.survey.answer.mjs +30 -0
- package/esm2022/lib/core/tp.survey.core/tp.survey.core.service.mjs +370 -0
- package/esm2022/lib/core/tp.survey.interview/tp.survey.interview.service.mjs +70 -0
- package/esm2022/lib/core/tp.survey.logic/tp.survey.logic.service.mjs +43 -0
- package/esm2022/lib/directive/alternatives.container/alternatives.container.directive.mjs +130 -0
- package/esm2022/lib/directive/focus.and.select/focus.and.select.directive.mjs +27 -0
- package/esm2022/lib/directive/survey.theme/survey.theme.directive.mjs +53 -0
- package/esm2022/lib/directive/update.font.size/update.font.size.directive.mjs +28 -0
- package/esm2022/lib/icons/default.icons/default.icons.mjs +15 -0
- package/esm2022/lib/icons/default.icons/default.icons.module.mjs +31 -0
- package/esm2022/lib/pipe/get.active.language/get.active.language.pipe.mjs +17 -0
- package/esm2022/lib/pipe/get.additional.value.by.value/get.additional.value.by.value.pipe.mjs +18 -0
- package/esm2022/lib/pipe/key.values/key.values.pipe.mjs +20 -0
- package/esm2022/lib/pipe/multi.lang.object.to.html/multi.lang.object.to.html.pipe.mjs +26 -0
- package/esm2022/lib/tp.survey.config.mjs +8 -0
- package/esm2022/lib/tp.survey.const.mjs +28 -0
- package/esm2022/lib/tp.survey.enum.mjs +59 -0
- package/esm2022/lib/tp.survey.interface.mjs +2 -0
- package/esm2022/lib/tp.survey.method.mjs +5 -0
- package/esm2022/lib/tp.survey.module.mjs +27 -0
- package/esm2022/lib/tp.survey.type.mjs +2 -0
- package/esm2022/public-api.mjs +14 -0
- package/esm2022/touchpoll-tp-survey.mjs +5 -0
- package/fesm2022/touchpoll-tp-survey.mjs +2210 -0
- package/fesm2022/touchpoll-tp-survey.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/component/answer/answer.additional/answer.additional.component.d.ts +17 -0
- package/lib/component/answer/answer.additional/directive/additional.answer.caption.position/additional.answer.caption.position.directive.d.ts +16 -0
- package/lib/component/answer/answer.end/answer.end.component.d.ts +6 -0
- package/lib/component/answer/answer.info/answer.info.component.d.ts +6 -0
- package/lib/component/answer/answer.lang/answer.lang.component.d.ts +9 -0
- package/lib/component/answer/answer.master/answer.master.component.d.ts +21 -0
- package/lib/component/answer/answer.ms/answer.ms.component.d.ts +21 -0
- package/lib/component/answer/answer.od/answer.od.component.d.ts +8 -0
- package/lib/component/answer/answer.ol/answer.ol.component.d.ts +7 -0
- package/lib/component/answer/answer.sl/answer.sl.component.d.ts +21 -0
- package/lib/component/answer/answer.sl/pipe/as.form.array/as.form.array.pipe.d.ts +8 -0
- package/lib/component/answer/answer.sl/pipe/as.form.control/as.form.control.pipe.d.ts +8 -0
- package/lib/component/answer/answer.ss/answer.ss.component.d.ts +10 -0
- package/lib/component/answer/container.answer/container.answer.component.d.ts +36 -0
- package/lib/component/answer/container.answer/container.answer.validator.d.ts +10 -0
- package/lib/component/navigation.button/navigation.button.component.d.ts +9 -0
- package/lib/component/question.caption/question.caption.component.d.ts +8 -0
- package/lib/component/survey.play/survey.play.component.d.ts +36 -0
- package/lib/component/survey.question.preview/survey.question.preview.component.d.ts +16 -0
- package/lib/core/tp.servey.quota/tp.survey.quota.d.ts +12 -0
- package/lib/core/tp.survey.answer/tp.survey.answer.d.ts +17 -0
- package/lib/core/tp.survey.core/tp.survey.core.service.d.ts +29 -0
- package/lib/core/tp.survey.interview/tp.survey.interview.service.d.ts +14 -0
- package/lib/core/tp.survey.logic/tp.survey.logic.service.d.ts +12 -0
- package/lib/directive/alternatives.container/alternatives.container.directive.d.ts +17 -0
- package/lib/directive/focus.and.select/focus.and.select.directive.d.ts +9 -0
- package/lib/directive/survey.theme/survey.theme.directive.d.ts +13 -0
- package/lib/directive/update.font.size/update.font.size.directive.d.ts +10 -0
- package/lib/icons/default.icons/default.icons.d.ts +5 -0
- package/lib/icons/default.icons/default.icons.module.d.ts +12 -0
- package/lib/pipe/get.active.language/get.active.language.pipe.d.ts +8 -0
- package/lib/pipe/get.additional.value.by.value/get.additional.value.by.value.pipe.d.ts +8 -0
- package/lib/pipe/key.values/key.values.pipe.d.ts +14 -0
- package/lib/pipe/multi.lang.object.to.html/multi.lang.object.to.html.pipe.d.ts +11 -0
- package/lib/tp.survey.config.d.ts +11 -0
- package/lib/tp.survey.const.d.ts +4 -0
- package/lib/tp.survey.enum.d.ts +51 -0
- package/lib/tp.survey.interface.d.ts +320 -0
- package/lib/tp.survey.method.d.ts +1 -0
- package/lib/tp.survey.module.d.ts +10 -0
- package/lib/tp.survey.type.d.ts +13 -0
- package/package.json +25 -0
- package/public-api.d.ts +9 -0
- package/styles/platform/component/survey.checkbox.scss +102 -0
- package/styles/platform/component/survey.radio.button.scss +34 -0
- package/styles/platform/survey.mixins.desktop.scss +146 -0
- package/styles/platform/survey.mixins.tablet.scss +132 -0
- package/styles/survey.mixins.scss +76 -0
- package/styles/survey.themes.scss +56 -0
- package/styles/theme/azure.blue.scss +54 -0
- package/styles/theme/cyan.orange.scss +54 -0
- package/styles/theme/rose.red.scss +54 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { FormControl } from '@angular/forms';
|
|
2
|
+
import { SafeHtml } from '@angular/platform-browser';
|
|
3
|
+
import { AdditionalAnswer, AdditionalAnswerCaptionPosition } from '../../../tp.survey.type';
|
|
4
|
+
import { AdditionalAnswerType } from '../../../tp.survey.enum';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class AnswerAdditionalComponent {
|
|
7
|
+
control: import("@angular/core").InputSignal<FormControl<AdditionalAnswer>>;
|
|
8
|
+
answerType: import("@angular/core").InputSignal<AdditionalAnswerType>;
|
|
9
|
+
caption: import("@angular/core").InputSignal<SafeHtml>;
|
|
10
|
+
numberMinValue: import("@angular/core").InputSignal<number | null>;
|
|
11
|
+
numberMaxValue: import("@angular/core").InputSignal<number | null>;
|
|
12
|
+
textMultiline: import("@angular/core").InputSignal<boolean>;
|
|
13
|
+
captionPosition: import("@angular/core").InputSignal<AdditionalAnswerCaptionPosition>;
|
|
14
|
+
additionalAnswerType: typeof AdditionalAnswerType;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AnswerAdditionalComponent, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AnswerAdditionalComponent, "tp-survey-answer-additional", never, { "control": { "alias": "control"; "required": true; "isSignal": true; }; "answerType": { "alias": "answerType"; "required": true; "isSignal": true; }; "caption": { "alias": "caption"; "required": false; "isSignal": true; }; "numberMinValue": { "alias": "numberMinValue"; "required": false; "isSignal": true; }; "numberMaxValue": { "alias": "numberMaxValue"; "required": false; "isSignal": true; }; "textMultiline": { "alias": "textMultiline"; "required": false; "isSignal": true; }; "captionPosition": { "alias": "captionPosition"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { AdditionalAnswerCaptionPosition } from '../../../../../tp.survey.type';
|
|
2
|
+
import { AdditionalAnswerType } from '../../../../../tp.survey.enum';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class AdditionalAnswerCaptionPositionDirective {
|
|
5
|
+
tpSurveyAdditionalAnswerCaptionPosition: import("@angular/core").InputSignal<AdditionalAnswerCaptionPosition | undefined>;
|
|
6
|
+
tpSurveyAdditionalAnswerType: import("@angular/core").InputSignal<AdditionalAnswerType | undefined>;
|
|
7
|
+
get classBottom(): boolean;
|
|
8
|
+
get classTop(): boolean;
|
|
9
|
+
get classLeft(): boolean;
|
|
10
|
+
get classRight(): boolean;
|
|
11
|
+
get classTypeNumber(): boolean;
|
|
12
|
+
get classTypeText(): boolean;
|
|
13
|
+
get classTypeBoolean(): boolean;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AdditionalAnswerCaptionPositionDirective, never>;
|
|
15
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AdditionalAnswerCaptionPositionDirective, "[tpSurveyAdditionalAnswerCaptionPosition]", never, { "tpSurveyAdditionalAnswerCaptionPosition": { "alias": "tpSurveyAdditionalAnswerCaptionPosition"; "required": false; "isSignal": true; }; "tpSurveyAdditionalAnswerType": { "alias": "tpSurveyAdditionalAnswerType"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { AnswerMasterComponent } from '../answer.master/answer.master.component';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class AnswerEndComponent extends AnswerMasterComponent<number> {
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AnswerEndComponent, never>;
|
|
5
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AnswerEndComponent, "tp-survey-answer-end", never, {}, {}, never, never, true, never>;
|
|
6
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { AnswerMasterComponent } from '../answer.master/answer.master.component';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class AnswerInfoComponent extends AnswerMasterComponent<number> {
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AnswerInfoComponent, never>;
|
|
5
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AnswerInfoComponent, "tp-survey-answer-info", never, {}, {}, never, never, true, never>;
|
|
6
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AnswerMasterComponent } from '../answer.master/answer.master.component';
|
|
2
|
+
import { IdbBaseParamsLanguage } from '../../../tp.survey.interface';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class AnswerLangComponent extends AnswerMasterComponent<number> {
|
|
5
|
+
languageList: import("@angular/core").InputSignal<IdbBaseParamsLanguage[]>;
|
|
6
|
+
onLanguageChange: import("@angular/core").OutputEmitterRef<number>;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AnswerLangComponent, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AnswerLangComponent, "tp-survey-answer-lang", never, { "languageList": { "alias": "languageList"; "required": true; "isSignal": true; }; }, { "onLanguageChange": "onLanguageChange"; }, never, never, true, never>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { DestroyRef } from '@angular/core';
|
|
2
|
+
import { ControlValueAccessor, FormControl } from '@angular/forms';
|
|
3
|
+
import { AnswerT } from '../../../tp.survey.type';
|
|
4
|
+
import { ViewModel } from '../../../tp.survey.enum';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare abstract class AnswerMasterComponent<T extends AnswerT> implements ControlValueAccessor {
|
|
7
|
+
language: import("@angular/core").InputSignal<number>;
|
|
8
|
+
viewModel: import("@angular/core").InputSignal<ViewModel>;
|
|
9
|
+
viewModelE: typeof ViewModel;
|
|
10
|
+
control: FormControl<T | null>;
|
|
11
|
+
protected onModelChange: (data: T) => void;
|
|
12
|
+
protected onModelTouched: () => void;
|
|
13
|
+
protected readonly destroyRef: DestroyRef;
|
|
14
|
+
constructor();
|
|
15
|
+
registerOnChange(fn: (data: T) => void): void;
|
|
16
|
+
registerOnTouched(fn: any): void;
|
|
17
|
+
setDisabledState(isDisabled: boolean): void;
|
|
18
|
+
writeValue(value: T): void;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AnswerMasterComponent<any>, never>;
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AnswerMasterComponent<any>, "app-answer-master", never, { "language": { "alias": "language"; "required": true; "isSignal": true; }; "viewModel": { "alias": "viewModel"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { FormArray, FormControl, FormGroup } from '@angular/forms';
|
|
3
|
+
import { AnswerMasterComponent } from '../answer.master/answer.master.component';
|
|
4
|
+
import { IdbAlternative, IdbQuestion } from '../../../tp.survey.interface';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
interface IAnswerMSForm {
|
|
7
|
+
alternativeList: FormArray<FormControl<boolean>>;
|
|
8
|
+
}
|
|
9
|
+
export declare class AnswerMSComponent extends AnswerMasterComponent<Array<number>> implements OnInit {
|
|
10
|
+
#private;
|
|
11
|
+
question: import("@angular/core").InputSignal<IdbQuestion>;
|
|
12
|
+
alternativeList: import("@angular/core").InputSignal<IdbAlternative[]>;
|
|
13
|
+
alternativeMaxAnswersCount: import("@angular/core").InputSignal<number>;
|
|
14
|
+
onAlternativeClick: import("@angular/core").OutputEmitterRef<number>;
|
|
15
|
+
readonly answerMSForm: FormGroup<IAnswerMSForm>;
|
|
16
|
+
constructor();
|
|
17
|
+
ngOnInit(): void;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AnswerMSComponent, never>;
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AnswerMSComponent, "tp-survey-answer-ms", never, { "question": { "alias": "question"; "required": true; "isSignal": true; }; "alternativeList": { "alias": "alternativeList"; "required": true; "isSignal": true; }; "alternativeMaxAnswersCount": { "alias": "alternativeMaxAnswersCount"; "required": true; "isSignal": true; }; }, { "onAlternativeClick": "onAlternativeClick"; }, never, never, true, never>;
|
|
20
|
+
}
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { AnswerMasterComponent } from '../answer.master/answer.master.component';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class AnswerODComponent extends AnswerMasterComponent<number> {
|
|
4
|
+
minValue: import("@angular/core").InputSignal<number>;
|
|
5
|
+
maxValue: import("@angular/core").InputSignal<number | null>;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AnswerODComponent, never>;
|
|
7
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AnswerODComponent, "tp-survey-answer-od", never, { "minValue": { "alias": "minValue"; "required": false; "isSignal": true; }; "maxValue": { "alias": "maxValue"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { AnswerMasterComponent } from '../answer.master/answer.master.component';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class AnswerOLComponent extends AnswerMasterComponent<number> {
|
|
4
|
+
telephoneInput: import("@angular/core").InputSignal<boolean>;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AnswerOLComponent, never>;
|
|
6
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AnswerOLComponent, "tp-survey-answer-ol", never, { "telephoneInput": { "alias": "telephoneInput"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { FormArray, FormControl, FormGroup } from '@angular/forms';
|
|
3
|
+
import { AnswerMasterComponent } from '../answer.master/answer.master.component';
|
|
4
|
+
import { AnswerSlType } from '../../../tp.survey.type';
|
|
5
|
+
import { IdbAlternative, IdbSection } from '../../../tp.survey.interface';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
interface IAnswerSLForm {
|
|
8
|
+
[key: string]: FormArray<FormControl<boolean>> | FormControl<number> | FormControl<Array<number>>;
|
|
9
|
+
}
|
|
10
|
+
export declare class AnswerSLComponent extends AnswerMasterComponent<AnswerSlType> implements OnInit {
|
|
11
|
+
#private;
|
|
12
|
+
alternativeList: import("@angular/core").InputSignal<IdbAlternative[]>;
|
|
13
|
+
sectionList: import("@angular/core").InputSignal<IdbSection[]>;
|
|
14
|
+
multiSelect: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
15
|
+
maxCount: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
16
|
+
answerSLForm: FormGroup<IAnswerSLForm>;
|
|
17
|
+
ngOnInit(): void;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AnswerSLComponent, never>;
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AnswerSLComponent, "tp-survey-answer-sl", never, { "alternativeList": { "alias": "alternativeList"; "required": true; "isSignal": true; }; "sectionList": { "alias": "sectionList"; "required": true; "isSignal": true; }; "multiSelect": { "alias": "multiSelect"; "required": false; "isSignal": true; }; "maxCount": { "alias": "maxCount"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
20
|
+
}
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { FormArray, FormControl } from '@angular/forms';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class AsFormArrayPipe implements PipeTransform {
|
|
5
|
+
transform(value: any): FormArray<FormControl<boolean>>;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AsFormArrayPipe, never>;
|
|
7
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<AsFormArrayPipe, "asFormArray", true>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { FormControl } from '@angular/forms';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class AsFormControlPipe implements PipeTransform {
|
|
5
|
+
transform(value: any): FormControl<number>;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AsFormControlPipe, never>;
|
|
7
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<AsFormControlPipe, "asFormControl", true>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AnswerMasterComponent } from '../answer.master/answer.master.component';
|
|
2
|
+
import { IdbAlternative, IdbQuestion } from '../../../tp.survey.interface';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class AnswerSSComponent extends AnswerMasterComponent<number> {
|
|
5
|
+
question: import("@angular/core").InputSignal<IdbQuestion>;
|
|
6
|
+
alternativeList: import("@angular/core").InputSignal<IdbAlternative[]>;
|
|
7
|
+
onAlternativeClick: import("@angular/core").OutputEmitterRef<number>;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AnswerSSComponent, never>;
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AnswerSSComponent, "tp-survey-answer-ss", never, { "question": { "alias": "question"; "required": true; "isSignal": true; }; "alternativeList": { "alias": "alternativeList"; "required": true; "isSignal": true; }; }, { "onAlternativeClick": "onAlternativeClick"; }, never, never, true, never>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { FormControl, FormGroup } from '@angular/forms';
|
|
3
|
+
import { AdditionalAnswer, AnswerT } from '../../../tp.survey.type';
|
|
4
|
+
import { AnswerChange, ICurrentQuestionAnswer, IdbAdditionalAnswer, IdbAlternative, IdbBaseParamsLanguage, IdbQuestion, IdbSection } from '../../../tp.survey.interface';
|
|
5
|
+
import { AdditionalAnswerType, QuestionsType, ViewModel } from '../../../tp.survey.enum';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
interface IAnswerForm {
|
|
8
|
+
answer: FormControl<AnswerT>;
|
|
9
|
+
additionalAnswers: FormGroup<{
|
|
10
|
+
[key: string]: FormControl<AdditionalAnswer>;
|
|
11
|
+
}>;
|
|
12
|
+
}
|
|
13
|
+
export declare class ContainerAnswerComponent implements OnInit {
|
|
14
|
+
#private;
|
|
15
|
+
question: import("@angular/core").InputSignal<IdbQuestion>;
|
|
16
|
+
language: import("@angular/core").InputSignal<number>;
|
|
17
|
+
viewModel: import("@angular/core").InputSignal<ViewModel>;
|
|
18
|
+
answers: import("@angular/core").InputSignal<ICurrentQuestionAnswer | undefined>;
|
|
19
|
+
developerMode: import("@angular/core").InputSignal<boolean>;
|
|
20
|
+
languageList: import("@angular/core").InputSignal<IdbBaseParamsLanguage[]>;
|
|
21
|
+
visibleAlternativeList: import("@angular/core").WritableSignal<IdbAlternative[]>;
|
|
22
|
+
visibleSectionList: import("@angular/core").WritableSignal<IdbSection[]>;
|
|
23
|
+
visibleAdditionalAnswerList: import("@angular/core").WritableSignal<IdbAdditionalAnswer[]>;
|
|
24
|
+
logicChanged: import("@angular/core").OutputEmitterRef<Record<string, any>>;
|
|
25
|
+
answerChanged: import("@angular/core").OutputEmitterRef<AnswerChange>;
|
|
26
|
+
onLanguageChange: import("@angular/core").OutputEmitterRef<number>;
|
|
27
|
+
questionsType: typeof QuestionsType;
|
|
28
|
+
answerForm: FormGroup<IAnswerForm>;
|
|
29
|
+
readonly AdditionalAnswerType: typeof AdditionalAnswerType;
|
|
30
|
+
constructor();
|
|
31
|
+
ngOnInit(): void;
|
|
32
|
+
onAlternativeClick(value: number): void;
|
|
33
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ContainerAnswerComponent, never>;
|
|
34
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ContainerAnswerComponent, "tp-survey-container-answer", never, { "question": { "alias": "question"; "required": true; "isSignal": true; }; "language": { "alias": "language"; "required": true; "isSignal": true; }; "viewModel": { "alias": "viewModel"; "required": true; "isSignal": true; }; "answers": { "alias": "answers"; "required": false; "isSignal": true; }; "developerMode": { "alias": "developerMode"; "required": false; "isSignal": true; }; "languageList": { "alias": "languageList"; "required": true; "isSignal": true; }; }, { "logicChanged": "logicChanged"; "answerChanged": "answerChanged"; "onLanguageChange": "onLanguageChange"; }, never, never, true, never>;
|
|
35
|
+
}
|
|
36
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ValidatorFn } from '@angular/forms';
|
|
2
|
+
import { IdbSection } from '../../../tp.survey.interface';
|
|
3
|
+
export declare const answerDefaultValidator: () => ValidatorFn;
|
|
4
|
+
export declare const answerODValidator: (minValue: number | null, maxValue: number | null) => ValidatorFn;
|
|
5
|
+
export declare const answerOLValidator: () => ValidatorFn;
|
|
6
|
+
export declare const answerSSValidator: () => ValidatorFn;
|
|
7
|
+
export declare const answerMSValidator: (visibleAlternativeCount: number, minCount?: number, maxCount?: number) => ValidatorFn;
|
|
8
|
+
export declare const answerSlValidator: (required: boolean, minAnswersCount: number, sectionList: Array<IdbSection>) => ValidatorFn;
|
|
9
|
+
export declare const additionalAnswerDefaultValidator: (required: boolean) => ValidatorFn;
|
|
10
|
+
export declare const additionalAnswerNumberValidator: (required: boolean, minValue: number | null, maxValue: number | null) => ValidatorFn;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { NavigationButtonDirection } from '../../tp.survey.type';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class NavigationButtonComponent {
|
|
4
|
+
direction: import("@angular/core").InputSignal<NavigationButtonDirection>;
|
|
5
|
+
caption: import("@angular/core").InputSignal<string | undefined>;
|
|
6
|
+
onClick: import("@angular/core").OutputEmitterRef<NavigationButtonDirection>;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NavigationButtonComponent, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NavigationButtonComponent, "tp-survey-navigation-button", never, { "direction": { "alias": "direction"; "required": true; "isSignal": true; }; "caption": { "alias": "caption"; "required": false; "isSignal": true; }; }, { "onClick": "onClick"; }, never, never, true, never>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { SafeHtml } from '@angular/platform-browser';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class QuestionCaptionComponent {
|
|
4
|
+
caption: import("@angular/core").InputSignal<SafeHtml | undefined>;
|
|
5
|
+
captionHelp: import("@angular/core").InputSignal<SafeHtml | undefined>;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<QuestionCaptionComponent, never>;
|
|
7
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<QuestionCaptionComponent, "tp-survey-question-caption", never, { "caption": { "alias": "caption"; "required": false; "isSignal": true; }; "captionHelp": { "alias": "captionHelp"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { OnInit, TemplateRef } from '@angular/core';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { AnswerChange, ICurrentQuestionAnswer, IdbQuestion, IdbQuestionary, IInterviewAutoSaveData, IInterviewData, IInterviewProgressEvent, IInterviewStartedEvent } from '../../tp.survey.interface';
|
|
4
|
+
import { NavigationButtonDirection, TpSurveyTheme } from '../../tp.survey.type';
|
|
5
|
+
import { ViewModel } from '../../tp.survey.enum';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
interface ICurrentQuestionViewData {
|
|
8
|
+
question: IdbQuestion | null;
|
|
9
|
+
answers?: ICurrentQuestionAnswer;
|
|
10
|
+
}
|
|
11
|
+
export declare class SurveyPlayComponent implements OnInit {
|
|
12
|
+
#private;
|
|
13
|
+
questionary: import("@angular/core").InputSignal<IdbQuestionary>;
|
|
14
|
+
viewModel: import("@angular/core").InputSignal<ViewModel>;
|
|
15
|
+
interviewAutoSaveData: import("@angular/core").InputSignal<IInterviewAutoSaveData | undefined>;
|
|
16
|
+
theme: import("@angular/core").InputSignal<TpSurveyTheme>;
|
|
17
|
+
language: import("@angular/core").InputSignal<number>;
|
|
18
|
+
templateNavigationRef: import("@angular/core").InputSignal<TemplateRef<any> | null | undefined>;
|
|
19
|
+
interviewStarted: import("@angular/core").OutputEmitterRef<IInterviewStartedEvent>;
|
|
20
|
+
interviewFinished: import("@angular/core").OutputEmitterRef<IInterviewData>;
|
|
21
|
+
interviewProgress: import("@angular/core").OutputEmitterRef<IInterviewProgressEvent>;
|
|
22
|
+
readonly currentQuestionViewData$: Observable<ICurrentQuestionViewData>;
|
|
23
|
+
readonly activeLanguage: import("@angular/core").WritableSignal<number>;
|
|
24
|
+
readonly viewModelE: typeof ViewModel;
|
|
25
|
+
readonly backButtonAvailable: import("@angular/core").Signal<boolean | undefined>;
|
|
26
|
+
readonly nextButtonAvailable: import("@angular/core").Signal<boolean>;
|
|
27
|
+
constructor();
|
|
28
|
+
ngOnInit(): void;
|
|
29
|
+
onNavigationButtonClick(direction: NavigationButtonDirection): void;
|
|
30
|
+
onAnswerChanged(eventData: AnswerChange): void;
|
|
31
|
+
onLogicChanged(logicVars: Record<string, any>): void;
|
|
32
|
+
onLanguageChange(language: number): void;
|
|
33
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SurveyPlayComponent, never>;
|
|
34
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SurveyPlayComponent, "tp-survey-play", never, { "questionary": { "alias": "questionary"; "required": true; "isSignal": true; }; "viewModel": { "alias": "viewModel"; "required": true; "isSignal": true; }; "interviewAutoSaveData": { "alias": "interviewAutoSaveData"; "required": false; "isSignal": true; }; "theme": { "alias": "theme"; "required": false; "isSignal": true; }; "language": { "alias": "language"; "required": false; "isSignal": true; }; "templateNavigationRef": { "alias": "templateNavigationRef"; "required": false; "isSignal": true; }; }, { "interviewStarted": "interviewStarted"; "interviewFinished": "interviewFinished"; "interviewProgress": "interviewProgress"; }, never, never, true, never>;
|
|
35
|
+
}
|
|
36
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { TemplateRef } from '@angular/core';
|
|
2
|
+
import { TpSurveyTheme } from '../../tp.survey.type';
|
|
3
|
+
import { ViewModel } from '../../tp.survey.enum';
|
|
4
|
+
import { IdbBaseParamsLanguage, IdbQuestion } from '../../tp.survey.interface';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class SurveyQuestionPreviewComponent {
|
|
7
|
+
question: import("@angular/core").InputSignal<IdbQuestion | null>;
|
|
8
|
+
language: import("@angular/core").InputSignal<number>;
|
|
9
|
+
viewModel: import("@angular/core").InputSignal<ViewModel>;
|
|
10
|
+
languageList: import("@angular/core").InputSignal<IdbBaseParamsLanguage[]>;
|
|
11
|
+
theme: import("@angular/core").InputSignal<TpSurveyTheme>;
|
|
12
|
+
templateNavigationRef: import("@angular/core").InputSignal<TemplateRef<any> | null | undefined>;
|
|
13
|
+
ViewModel: typeof ViewModel;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SurveyQuestionPreviewComponent, never>;
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SurveyQuestionPreviewComponent, "tp-survey-question-preview", never, { "question": { "alias": "question"; "required": true; "isSignal": true; }; "language": { "alias": "language"; "required": true; "isSignal": true; }; "viewModel": { "alias": "viewModel"; "required": true; "isSignal": true; }; "languageList": { "alias": "languageList"; "required": true; "isSignal": true; }; "theme": { "alias": "theme"; "required": false; "isSignal": true; }; "templateNavigationRef": { "alias": "templateNavigationRef"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IdbQuestionaryQuota, IdbQuestionaryQuota2dObject } from '../../tp.survey.interface';
|
|
2
|
+
import { Answer } from '../tp.survey.answer/tp.survey.answer';
|
|
3
|
+
import { LogicObject } from '../../tp.survey.type';
|
|
4
|
+
export declare class SurveyQuotas {
|
|
5
|
+
#private;
|
|
6
|
+
setQuotas(quotas1d?: Array<IdbQuestionaryQuota>, quotas2d?: Array<IdbQuestionaryQuota2dObject>, quotaLimitDestinationQuestionGuid?: number, destinationQuestionNum?: number): void;
|
|
7
|
+
guidIsDestinationQuestion(guid: number): boolean;
|
|
8
|
+
get quotaIsCompleted(): boolean;
|
|
9
|
+
get destinationQuestionGuid(): number;
|
|
10
|
+
get quotaCount(): number;
|
|
11
|
+
findFilledQuotas(currentQuestionNum: number, vars: LogicObject, interviewAnswers: Array<Answer>): void;
|
|
12
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { IQuestionAnswer } from '../../tp.survey.interface';
|
|
2
|
+
import { AdditionalAnswer, LogicObject } from '../../tp.survey.type';
|
|
3
|
+
export declare class Answer implements IQuestionAnswer {
|
|
4
|
+
readonly QuestionGUID: number;
|
|
5
|
+
readonly QuestionVersion: number;
|
|
6
|
+
readonly AnswerAdditional: Record<number, AdditionalAnswer>;
|
|
7
|
+
readonly ViewedAlternativeValues: Array<number>;
|
|
8
|
+
readonly ViewedSectionGuids: Array<number>;
|
|
9
|
+
readonly AlternativeSequenceClicks: Array<[number, number]>;
|
|
10
|
+
StartedAt: number;
|
|
11
|
+
FinishedAt: number;
|
|
12
|
+
AnswerValue: any;
|
|
13
|
+
answerIsComplete: boolean;
|
|
14
|
+
constructor(guid: number, version?: number);
|
|
15
|
+
clear(): void;
|
|
16
|
+
addAnswer(answerValue: unknown, answerAdditional: LogicObject, asComplete: boolean): void;
|
|
17
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { TpSurveyLogicService } from '../tp.survey.logic/tp.survey.logic.service';
|
|
3
|
+
import { AnswerChange, IdbQuestion, IdbQuestionary, IInterviewLogicVar, IQuestionAnswer } from '../../tp.survey.interface';
|
|
4
|
+
import { TpSurveyInterviewService } from '../tp.survey.interview/tp.survey.interview.service';
|
|
5
|
+
import { Answer } from '../tp.survey.answer/tp.survey.answer';
|
|
6
|
+
import { LogicObject } from '../../tp.survey.type';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class TpSurveyCoreService {
|
|
9
|
+
#private;
|
|
10
|
+
private readonly platformId;
|
|
11
|
+
private readonly _logic;
|
|
12
|
+
private readonly _interview;
|
|
13
|
+
private readonly _eventBus;
|
|
14
|
+
constructor(platformId: object, _logic: TpSurveyLogicService, _interview: TpSurveyInterviewService);
|
|
15
|
+
setupSurvey(questionaryRawData: IdbQuestionary, logicVars?: Array<IInterviewLogicVar>, answerList?: Array<IQuestionAnswer>, questionGuid?: number): void;
|
|
16
|
+
on(...key: Array<string>): Observable<any>;
|
|
17
|
+
goToNextQuestion(): void;
|
|
18
|
+
goToBackQuestion(): void;
|
|
19
|
+
questionIsComplete(guid: number): boolean;
|
|
20
|
+
currentQuestion$(): Observable<IdbQuestion | null>;
|
|
21
|
+
findAnswerByGuid(guid: number): Answer | undefined;
|
|
22
|
+
setLogicValue(varName: string, value: any): void;
|
|
23
|
+
getLogicVars(): LogicObject;
|
|
24
|
+
getAnswerList(): Array<Answer>;
|
|
25
|
+
updateAnswer(eventData: AnswerChange): void;
|
|
26
|
+
updateLogic(logicVars: Record<string, any>): void;
|
|
27
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TpSurveyCoreService, never>;
|
|
28
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<TpSurveyCoreService>;
|
|
29
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Answer } from '../tp.survey.answer/tp.survey.answer';
|
|
2
|
+
import { IQuestionAnswer } from '../../tp.survey.interface';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class TpSurveyInterviewService {
|
|
5
|
+
#private;
|
|
6
|
+
startedAt: number;
|
|
7
|
+
createAnswer(guid: number, version: number): Answer;
|
|
8
|
+
findAnswerByGuid(guid: number): Answer | undefined;
|
|
9
|
+
questionIsComplete(guid: number): boolean;
|
|
10
|
+
getAnswerList(): Array<Answer>;
|
|
11
|
+
overrideAnswers(answers: Array<IQuestionAnswer>): void;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TpSurveyInterviewService, never>;
|
|
13
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<TpSurveyInterviewService>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { LogicObject } from '../../tp.survey.type';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class TpSurveyLogicService {
|
|
4
|
+
#private;
|
|
5
|
+
get vars(): object;
|
|
6
|
+
setLogicValue(varName: string, value: any): void;
|
|
7
|
+
getLogicVars(): LogicObject;
|
|
8
|
+
executeLogic(expression: string): boolean;
|
|
9
|
+
executePostScript(expression: string): void;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TpSurveyLogicService, never>;
|
|
11
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<TpSurveyLogicService>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ElementRef, QueryList, Renderer2 } from '@angular/core';
|
|
2
|
+
import { IdbQuestion } from '../../tp.survey.interface';
|
|
3
|
+
import { ViewModel } from '../../tp.survey.enum';
|
|
4
|
+
import { BreakpointObserver } from '@angular/cdk/layout';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class AlternativesContainerDirective {
|
|
7
|
+
#private;
|
|
8
|
+
private readonly _renderer;
|
|
9
|
+
private readonly elementRef;
|
|
10
|
+
private _breakpointObserver;
|
|
11
|
+
question: import("@angular/core").InputSignal<IdbQuestion>;
|
|
12
|
+
viewModel: import("@angular/core").InputSignal<ViewModel>;
|
|
13
|
+
alternatives: QueryList<ElementRef<HTMLElement>> | undefined;
|
|
14
|
+
constructor(_renderer: Renderer2, elementRef: ElementRef, _breakpointObserver: BreakpointObserver);
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AlternativesContainerDirective, never>;
|
|
16
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AlternativesContainerDirective, "[tpSurveyAlternativesContainer]", never, { "question": { "alias": "tpSurveyAlternativesContainer"; "required": true; "isSignal": true; }; "viewModel": { "alias": "containerViewModel"; "required": true; "isSignal": true; }; }, {}, ["alternatives"], never, true, never>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ElementRef, OnInit } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class FocusAndSelectDirective implements OnInit {
|
|
4
|
+
private el;
|
|
5
|
+
constructor(el: ElementRef);
|
|
6
|
+
ngOnInit(): void;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FocusAndSelectDirective, never>;
|
|
8
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FocusAndSelectDirective, "[tpSurveyFocusAndSelect]", never, {}, {}, never, never, true, never>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { TpSurveyTheme } from '../../tp.survey.type';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class SurveyThemeDirective {
|
|
4
|
+
theme: import("@angular/core").InputSignal<TpSurveyTheme>;
|
|
5
|
+
get classCyanOrangeLight(): boolean;
|
|
6
|
+
get classCyanOrangeDark(): boolean;
|
|
7
|
+
get classRoseRedLight(): boolean;
|
|
8
|
+
get classRoseRedDark(): boolean;
|
|
9
|
+
get classAzureBlueLight(): boolean;
|
|
10
|
+
get classAzureBlueDark(): boolean;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SurveyThemeDirective, never>;
|
|
12
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SurveyThemeDirective, "[tpSurveyTheme]", never, { "theme": { "alias": "tpSurveyTheme"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
2
|
+
import { ViewModel } from '../../tp.survey.enum';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class UpdateFontSizeDirective {
|
|
5
|
+
private readonly _element;
|
|
6
|
+
viewModel: import("@angular/core").InputSignal<ViewModel>;
|
|
7
|
+
constructor(_element: ElementRef);
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UpdateFontSizeDirective, never>;
|
|
9
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<UpdateFontSizeDirective, "[tpSurveyUpdateFontSize]", never, { "viewModel": { "alias": "tpSurveyUpdateFontSize"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { DomSanitizer } from '@angular/platform-browser';
|
|
2
|
+
import { MatIconRegistry } from '@angular/material/icon';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class DefaultIconsModule {
|
|
5
|
+
private domSanitizer;
|
|
6
|
+
private matIconRegistry;
|
|
7
|
+
private platformId;
|
|
8
|
+
constructor(domSanitizer: DomSanitizer, matIconRegistry: MatIconRegistry, platformId: string);
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DefaultIconsModule, never>;
|
|
10
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DefaultIconsModule, never, never, never>;
|
|
11
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<DefaultIconsModule>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { IdbBaseParamsLanguage } from '../../tp.survey.interface';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class GetActiveLanguagePipe implements PipeTransform {
|
|
5
|
+
transform(languageList?: Array<IdbBaseParamsLanguage>, languageId?: number): IdbBaseParamsLanguage | undefined;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GetActiveLanguagePipe, never>;
|
|
7
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<GetActiveLanguagePipe, "getActiveLanguage", true>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { IdbAdditionalAnswer } from '../../tp.survey.interface';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class GetAdditionalValueByValuePipe implements PipeTransform {
|
|
5
|
+
transform(value: number | string, additionalAnswerList: Array<IdbAdditionalAnswer>): IdbAdditionalAnswer | undefined;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GetAdditionalValueByValuePipe, never>;
|
|
7
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<GetAdditionalValueByValuePipe, "getAdditionalValueByValue", true>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { AbstractControl, FormControl, FormGroup } from '@angular/forms';
|
|
3
|
+
import { AdditionalAnswer } from '../../tp.survey.type';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class KeyValuesPipe implements PipeTransform {
|
|
6
|
+
transform(controls: FormGroup<{
|
|
7
|
+
[key: string]: AbstractControl<AdditionalAnswer>;
|
|
8
|
+
}>): Array<{
|
|
9
|
+
name: string;
|
|
10
|
+
control: FormControl<AdditionalAnswer>;
|
|
11
|
+
}>;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KeyValuesPipe, never>;
|
|
13
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<KeyValuesPipe, "keyValues", true>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
|
|
3
|
+
import { IdbMultilangObject } from '../../tp.survey.interface';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class MultiLangObjectToHtmlPipe implements PipeTransform {
|
|
6
|
+
private readonly _sanitizer;
|
|
7
|
+
constructor(_sanitizer: DomSanitizer);
|
|
8
|
+
transform(caption: Array<IdbMultilangObject>, language: number): SafeHtml;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MultiLangObjectToHtmlPipe, never>;
|
|
10
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<MultiLangObjectToHtmlPipe, "multiLangObjectToHtml", true>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
|
2
|
+
import { TpSurveyPlatform } from './tp.survey.type';
|
|
3
|
+
export interface TpSurveyConfig {
|
|
4
|
+
tpPlatform: TpSurveyPlatform;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* A DI token for the survey service.
|
|
8
|
+
*
|
|
9
|
+
* @publicApi
|
|
10
|
+
*/
|
|
11
|
+
export declare const TP_SURVEY_CONFIGURATION: InjectionToken<TpSurveyConfig>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const MISSING_VALUE = -97;
|
|
2
|
+
export declare const BASE_WIDTH = 1280;
|
|
3
|
+
export declare const BASE_HEIGHT = 800;
|
|
4
|
+
export declare const LOGIC_FUNC_TEXT = "\n const self = this;\n var setVar = function(varName, value) {\n self[varName] = value\n };\n var FUNC_IN = function(varName, array) {\n return isNaN(parseInt(varName)) ? false : array.indexOf(varName) > -1\n };\n var FUNC_INTERSECT = function (var1, var2) {\n return Array.isArray(var1) && Array.isArray(var2) ? var1.some(function(el1) {\n return var2.some(function (el2) {\n return el2 === el1;\n });\n }) : false;\n };\n var value = function(varName, defaultValue) {\n const defVal = !defaultValue ? 0 : defaultValue;\n if ( (varName === -97) || (varName === null) || (varName === undefined) ) {\n return defVal\n } else {\n return varName\n }\n }\n for (var p in this) eval(\"var \" + p + \" = this[p];\"); ";
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
export declare enum ViewModel {
|
|
2
|
+
vmDesktop = 1,// desktop view
|
|
3
|
+
vmMobile = 2,// phone view
|
|
4
|
+
vmTablet = 3
|
|
5
|
+
}
|
|
6
|
+
export declare enum SurveyEvents {
|
|
7
|
+
seSurveyStart = "survey.start",// on start survey
|
|
8
|
+
seSurveyViewModelUpdate = "survey.view.model.update",// on viewmodel updated
|
|
9
|
+
seSurveyDeveloperModeUpdate = "survey.developer.mode.update",// on Developermode updated
|
|
10
|
+
seSurveyEnd = "survey.end",// on end survey
|
|
11
|
+
seQuestionShow = "question.show",// before question show
|
|
12
|
+
seQuestionHide = "question.hide",// before question hide
|
|
13
|
+
seQuestionRefresh = "question.refresh",// refresh question (after edit)
|
|
14
|
+
seQuestionAnswersCompleted = "answers.completed",// after all answers complete
|
|
15
|
+
seQuestionAnswersChange = "answers.change",// after answers change
|
|
16
|
+
seSurveyLanguageUpdate = "survey.language.update"
|
|
17
|
+
}
|
|
18
|
+
export declare enum AdditionalAnswerType {
|
|
19
|
+
aatNumber = 1,
|
|
20
|
+
aatText = 2,
|
|
21
|
+
aatBoolean = 3
|
|
22
|
+
}
|
|
23
|
+
export declare enum QuestionsType {
|
|
24
|
+
eqLANG = "LANG",
|
|
25
|
+
eqSS = "SS",
|
|
26
|
+
eqMS = "MS",
|
|
27
|
+
eqINFO = "INFO",
|
|
28
|
+
eqSL = "SL",
|
|
29
|
+
eqOL = "OL",
|
|
30
|
+
eqOD = "OD",
|
|
31
|
+
eqEND = "END"
|
|
32
|
+
}
|
|
33
|
+
export declare enum ResultativeStatus {
|
|
34
|
+
rsUnset = -1,
|
|
35
|
+
rsUnresultative = 0,
|
|
36
|
+
rsResultative = 1
|
|
37
|
+
}
|
|
38
|
+
export declare enum ValidStatus {
|
|
39
|
+
vsUnset = -1,
|
|
40
|
+
vsUnValid = 0,
|
|
41
|
+
vsValid = 1,
|
|
42
|
+
vsDoubtful = 2
|
|
43
|
+
}
|
|
44
|
+
export declare enum EInterviewStatus {
|
|
45
|
+
isUnFinished = -4,// не завершено
|
|
46
|
+
isTested = -3,// тестовое
|
|
47
|
+
isRefinement = -2,// не проверено
|
|
48
|
+
isDefect = -1,// брак
|
|
49
|
+
isNotChecked = 0,// не проверено
|
|
50
|
+
isChecked = 1
|
|
51
|
+
}
|