@touchpoll/tp-survey 0.0.54 → 0.0.56
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/fesm2022/touchpoll-tp-survey.mjs +233 -260
- package/fesm2022/touchpoll-tp-survey.mjs.map +1 -1
- package/package.json +3 -3
- package/styles/platform/component/survey.checkbox.scss +1 -1
- package/styles/platform/survey.mixins.tablet.scss +1 -1
- package/styles/theme/theme-colors.touchpoll.scss +137 -137
- package/types/touchpoll-tp-survey.d.ts +506 -0
- package/index.d.ts +0 -5
- package/lib/component/answer/answer.additional/answer.additional.component.d.ts +0 -17
- package/lib/component/answer/answer.additional/directive/additional.answer.caption.position/additional.answer.caption.position.directive.d.ts +0 -16
- package/lib/component/answer/answer.end/answer.end.component.d.ts +0 -6
- package/lib/component/answer/answer.info/answer.info.component.d.ts +0 -6
- package/lib/component/answer/answer.lang/answer.lang.component.d.ts +0 -9
- package/lib/component/answer/answer.master/answer.master.component.d.ts +0 -24
- package/lib/component/answer/answer.ms/answer.ms.component.d.ts +0 -21
- package/lib/component/answer/answer.od/answer.od.component.d.ts +0 -8
- package/lib/component/answer/answer.ol/answer.ol.component.d.ts +0 -8
- package/lib/component/answer/answer.sl/answer.sl.component.d.ts +0 -22
- package/lib/component/answer/answer.sl/pipe/as.form.array/as.form.array.pipe.d.ts +0 -8
- package/lib/component/answer/answer.sl/pipe/as.form.control/as.form.control.pipe.d.ts +0 -8
- package/lib/component/answer/answer.ss/answer.ss.component.d.ts +0 -10
- package/lib/component/answer/container.answer/container.answer.component.d.ts +0 -38
- package/lib/component/answer/container.answer/container.answer.validator.d.ts +0 -10
- package/lib/component/navigation.button/navigation.button.component.d.ts +0 -9
- package/lib/component/question.caption/question.caption.component.d.ts +0 -8
- package/lib/component/survey.play/survey.play.component.d.ts +0 -38
- package/lib/component/survey.question.preview/survey.question.preview.component.d.ts +0 -19
- package/lib/core/tp.servey.quota/tp.survey.quota.d.ts +0 -12
- package/lib/core/tp.survey.answer/tp.survey.answer.d.ts +0 -16
- package/lib/core/tp.survey.core/tp.survey.core.service.d.ts +0 -30
- package/lib/core/tp.survey.interview/tp.survey.interview.service.d.ts +0 -14
- package/lib/core/tp.survey.logic/tp.survey.logic.service.d.ts +0 -12
- package/lib/directive/alternatives.container/alternatives.container.directive.d.ts +0 -17
- package/lib/directive/focus.and.select/focus.and.select.directive.d.ts +0 -9
- package/lib/directive/image.position/image.position.directive.d.ts +0 -8
- package/lib/directive/image.site/image.size.directive.d.ts +0 -9
- package/lib/directive/insert.question.css/insert.question.css.directive.d.ts +0 -8
- package/lib/directive/survey.theme/survey.theme.directive.d.ts +0 -14
- package/lib/directive/update.font.size/update.font.size.directive.d.ts +0 -10
- package/lib/icons/default.icons/default.icons.d.ts +0 -5
- package/lib/icons/default.icons/default.icons.module.d.ts +0 -12
- package/lib/pipe/generate.default.answer/generate.default.answer.pipe.d.ts +0 -8
- package/lib/pipe/get.active.language/get.active.language.pipe.d.ts +0 -8
- package/lib/pipe/get.additional.value.by.value/get.additional.value.by.value.pipe.d.ts +0 -8
- package/lib/pipe/get.question.image.background.size/get.question.image.background.css.size.pipe.d.ts +0 -12
- package/lib/pipe/is.video/is.video.pipe.d.ts +0 -7
- package/lib/pipe/key.values/key.values.pipe.d.ts +0 -14
- package/lib/pipe/multi.lang.object.to.html/multi.lang.object.to.html.pipe.d.ts +0 -14
- package/lib/tp.survey.config.d.ts +0 -11
- package/lib/tp.survey.const.d.ts +0 -5
- package/lib/tp.survey.enum.d.ts +0 -43
- package/lib/tp.survey.interface.d.ts +0 -346
- package/lib/tp.survey.method.d.ts +0 -1
- package/lib/tp.survey.module.d.ts +0 -10
- package/lib/tp.survey.type.d.ts +0 -17
- package/public-api.d.ts +0 -10
|
@@ -1,8 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { FormControl, FormGroup } from '@angular/forms';
|
|
3
|
-
import { AdditionalAnswer, AnswerT, TFindVariableVoid } 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
|
-
findVariable: import("@angular/core").InputSignal<TFindVariableVoid>;
|
|
16
|
-
question: import("@angular/core").InputSignal<IdbQuestion>;
|
|
17
|
-
language: import("@angular/core").InputSignal<number>;
|
|
18
|
-
viewModel: import("@angular/core").InputSignal<ViewModel>;
|
|
19
|
-
answers: import("@angular/core").InputSignal<ICurrentQuestionAnswer | undefined>;
|
|
20
|
-
developerMode: import("@angular/core").InputSignal<boolean>;
|
|
21
|
-
languageList: import("@angular/core").InputSignal<IdbBaseParamsLanguage[]>;
|
|
22
|
-
repositoryPath: import("@angular/core").InputSignal<string>;
|
|
23
|
-
visibleAlternativeList: import("@angular/core").WritableSignal<IdbAlternative[]>;
|
|
24
|
-
visibleSectionList: import("@angular/core").WritableSignal<IdbSection[]>;
|
|
25
|
-
visibleAdditionalAnswerList: import("@angular/core").WritableSignal<IdbAdditionalAnswer[]>;
|
|
26
|
-
logicChanged: import("@angular/core").OutputEmitterRef<Record<string, any>>;
|
|
27
|
-
answerChanged: import("@angular/core").OutputEmitterRef<AnswerChange>;
|
|
28
|
-
onLanguageChange: import("@angular/core").OutputEmitterRef<number>;
|
|
29
|
-
questionsType: typeof QuestionsType;
|
|
30
|
-
answerForm: FormGroup<IAnswerForm>;
|
|
31
|
-
readonly AdditionalAnswerType: typeof AdditionalAnswerType;
|
|
32
|
-
constructor();
|
|
33
|
-
ngOnInit(): void;
|
|
34
|
-
onAlternativeClick(value: number): void;
|
|
35
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ContainerAnswerComponent, never>;
|
|
36
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ContainerAnswerComponent, "tp-survey-container-answer", never, { "findVariable": { "alias": "findVariable"; "required": true; "isSignal": true; }; "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; }; "repositoryPath": { "alias": "repositoryPath"; "required": false; "isSignal": true; }; }, { "logicChanged": "logicChanged"; "answerChanged": "answerChanged"; "onLanguageChange": "onLanguageChange"; }, never, never, true, never>;
|
|
37
|
-
}
|
|
38
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ValidatorFn } from '@angular/forms';
|
|
2
|
-
import { IdbAlternative, 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: (isPhoneNumber: boolean, canSkip: boolean) => ValidatorFn;
|
|
6
|
-
export declare const answerSSValidator: () => ValidatorFn;
|
|
7
|
-
export declare const answerMSValidator: (visibleAlternativeList: Array<IdbAlternative>, 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;
|
|
@@ -1,9 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { OnInit, Signal, TemplateRef } from '@angular/core';
|
|
2
|
-
import { AnswerChange, ICurrentQuestionAnswer, IdbImage, IdbQuestion, IdbQuestionary, IInterviewAutoSaveData, IInterviewData, IInterviewProgressEvent } from '../../tp.survey.interface';
|
|
3
|
-
import { NavigationButtonDirection, TpSurveyTheme } from '../../tp.survey.type';
|
|
4
|
-
import { ViewModel } from '../../tp.survey.enum';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
interface ICurrentQuestionViewData {
|
|
7
|
-
question: IdbQuestion | null;
|
|
8
|
-
answers?: ICurrentQuestionAnswer;
|
|
9
|
-
}
|
|
10
|
-
export declare class SurveyPlayComponent implements OnInit {
|
|
11
|
-
#private;
|
|
12
|
-
questionary: import("@angular/core").InputSignal<IdbQuestionary>;
|
|
13
|
-
viewModel: import("@angular/core").InputSignal<ViewModel>;
|
|
14
|
-
interviewAutoSaveData: import("@angular/core").InputSignal<IInterviewAutoSaveData | undefined>;
|
|
15
|
-
theme: import("@angular/core").InputSignal<TpSurveyTheme>;
|
|
16
|
-
language: import("@angular/core").InputSignal<number>;
|
|
17
|
-
templateNavigationRef: import("@angular/core").InputSignal<TemplateRef<any> | null | undefined>;
|
|
18
|
-
interviewStarted: import("@angular/core").OutputEmitterRef<void>;
|
|
19
|
-
interviewFinished: import("@angular/core").OutputEmitterRef<IInterviewData>;
|
|
20
|
-
interviewProgress: import("@angular/core").OutputEmitterRef<IInterviewProgressEvent>;
|
|
21
|
-
readonly currentQuestionViewData: Signal<ICurrentQuestionViewData>;
|
|
22
|
-
readonly question: Signal<IdbQuestion | null>;
|
|
23
|
-
readonly activeLanguage: import("@angular/core").WritableSignal<number>;
|
|
24
|
-
readonly visibleImageList: Signal<Array<IdbImage>>;
|
|
25
|
-
readonly viewModelE: typeof ViewModel;
|
|
26
|
-
readonly backButtonAvailable: Signal<boolean | undefined>;
|
|
27
|
-
readonly nextButtonAvailable: Signal<boolean | undefined>;
|
|
28
|
-
constructor();
|
|
29
|
-
ngOnInit(): void;
|
|
30
|
-
onNavigationButtonClick(direction: NavigationButtonDirection): void;
|
|
31
|
-
onAnswerChanged(eventData: AnswerChange): void;
|
|
32
|
-
onLogicChanged(logicVars: Record<string, any>): void;
|
|
33
|
-
onLanguageChange(language: number): void;
|
|
34
|
-
findVariable(sysName: string): string;
|
|
35
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SurveyPlayComponent, never>;
|
|
36
|
-
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>;
|
|
37
|
-
}
|
|
38
|
-
export {};
|
|
@@ -1,19 +0,0 @@
|
|
|
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
|
-
repositoryPath: import("@angular/core").InputSignal<string>;
|
|
13
|
-
templateNavigationRef: import("@angular/core").InputSignal<TemplateRef<any> | null | undefined>;
|
|
14
|
-
ViewModel: typeof ViewModel;
|
|
15
|
-
findVariable(sysName: string): string;
|
|
16
|
-
protected readonly viewModelE: typeof ViewModel;
|
|
17
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SurveyQuestionPreviewComponent, never>;
|
|
18
|
-
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; }; "repositoryPath": { "alias": "repositoryPath"; "required": false; "isSignal": true; }; "templateNavigationRef": { "alias": "templateNavigationRef"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
19
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { IQuestionAnswer } from '../../tp.survey.interface';
|
|
2
|
-
import { AdditionalAnswer } from '../../tp.survey.type';
|
|
3
|
-
export declare class Answer implements IQuestionAnswer {
|
|
4
|
-
readonly QuestionGUID: number;
|
|
5
|
-
readonly QuestionVersion: number;
|
|
6
|
-
readonly AnswerAdditional: Record<string, 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
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
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
|
-
constructor(platformId: object, _logic: TpSurveyLogicService, _interview: TpSurveyInterviewService);
|
|
14
|
-
setupSurvey(questionaryRawData: IdbQuestionary, logicVars?: Array<IInterviewLogicVar>, answerList?: Array<IQuestionAnswer>, questionGuid?: number): void;
|
|
15
|
-
on(...key: Array<string>): Observable<any>;
|
|
16
|
-
goToNextQuestion(): void;
|
|
17
|
-
goToBackQuestion(): void;
|
|
18
|
-
questionIsComplete(guid: number): boolean;
|
|
19
|
-
guidToTextAnswer(guid: number, languageId: number): string;
|
|
20
|
-
currentQuestion$(): Observable<IdbQuestion | null>;
|
|
21
|
-
findAnswerByGuid(guid: number): Answer | undefined;
|
|
22
|
-
setLogicValue(varName: string, value: any): void;
|
|
23
|
-
getLogicVars(): LogicObject;
|
|
24
|
-
executeLogic(expression?: string): boolean;
|
|
25
|
-
getAnswerList(): Array<Answer>;
|
|
26
|
-
updateAnswer(eventData: AnswerChange): void;
|
|
27
|
-
updateLogic(logicVars: Record<string, any>): void;
|
|
28
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TpSurveyCoreService, never>;
|
|
29
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<TpSurveyCoreService>;
|
|
30
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { ElementRef, 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
|
-
private set alternativesTemplates(value);
|
|
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; }; }, {}, ["alternativesTemplates"], never, true, never>;
|
|
17
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { IdbTpBackGround } from '../../tp.survey.interface';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class ImagePositionDirective {
|
|
4
|
-
imageBackground: import("@angular/core").InputSignal<IdbTpBackGround>;
|
|
5
|
-
constructor();
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ImagePositionDirective, never>;
|
|
7
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ImagePositionDirective, "[tpImagePosition]", never, { "imageBackground": { "alias": "tpImagePosition"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
8
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { IdbTpBackGround } from '../../tp.survey.interface';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class ImageSizeDirective {
|
|
4
|
-
#private;
|
|
5
|
-
imageBackground: import("@angular/core").InputSignal<IdbTpBackGround>;
|
|
6
|
-
constructor();
|
|
7
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ImageSizeDirective, never>;
|
|
8
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ImageSizeDirective, "[tpImageSize]", never, { "imageBackground": { "alias": "tpImageSize"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
9
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { IdbQuestion } from '../../tp.survey.interface';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class InsertQuestionCssDirective {
|
|
4
|
-
question: import("@angular/core").InputSignal<IdbQuestion | null>;
|
|
5
|
-
constructor();
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<InsertQuestionCssDirective, never>;
|
|
7
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<InsertQuestionCssDirective, "[tpSurveyInsertQuestionCss]", never, { "question": { "alias": "tpSurveyInsertQuestionCss"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
8
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
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 classTouchpollLight(): boolean;
|
|
6
|
-
get classCyanOrangeLight(): boolean;
|
|
7
|
-
get classCyanOrangeDark(): boolean;
|
|
8
|
-
get classRoseRedLight(): boolean;
|
|
9
|
-
get classRoseRedDark(): boolean;
|
|
10
|
-
get classAzureBlueLight(): boolean;
|
|
11
|
-
get classAzureBlueDark(): boolean;
|
|
12
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SurveyThemeDirective, never>;
|
|
13
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<SurveyThemeDirective, "[tpSurveyTheme]", never, { "theme": { "alias": "tpSurveyTheme"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
14
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import { Answer } from '../../core/tp.survey.answer/tp.survey.answer';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class GenerateDefaultAnswerPipe implements PipeTransform {
|
|
5
|
-
transform(guid: number): Answer;
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<GenerateDefaultAnswerPipe, never>;
|
|
7
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<GenerateDefaultAnswerPipe, "generateDefaultAnswer", true>;
|
|
8
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
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
|
-
}
|
package/lib/pipe/get.question.image.background.size/get.question.image.background.css.size.pipe.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import { IdbQuestion } from '../../tp.survey.interface';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class GetQuestionImageBackgroundCssSizePipe implements PipeTransform {
|
|
5
|
-
#private;
|
|
6
|
-
transform(question: IdbQuestion): {
|
|
7
|
-
height: string | null;
|
|
8
|
-
width: string | null;
|
|
9
|
-
};
|
|
10
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<GetQuestionImageBackgroundCssSizePipe, never>;
|
|
11
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<GetQuestionImageBackgroundCssSizePipe, "getQuestionImageBackgroundCssSize", true>;
|
|
12
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class IsVideoPipe implements PipeTransform {
|
|
4
|
-
transform(fileName: string): boolean;
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<IsVideoPipe, never>;
|
|
6
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<IsVideoPipe, "isVideo", true>;
|
|
7
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
|
|
3
|
-
import { IdbLogicCaptionObject, IdbMultilangObject } from '../../tp.survey.interface';
|
|
4
|
-
import { TpSurveyLogicService } from '../../core/tp.survey.logic/tp.survey.logic.service';
|
|
5
|
-
import { TFindVariableVoid } from '../../tp.survey.type';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class MultiLangObjectToHtmlPipe implements PipeTransform {
|
|
8
|
-
private readonly _sanitizer;
|
|
9
|
-
private readonly _logic;
|
|
10
|
-
constructor(_sanitizer: DomSanitizer, _logic: TpSurveyLogicService);
|
|
11
|
-
transform(caption: Array<IdbMultilangObject>, language: number, logicCaptions?: Array<IdbLogicCaptionObject>, findVariable?: TFindVariableVoid): SafeHtml;
|
|
12
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MultiLangObjectToHtmlPipe, never>;
|
|
13
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<MultiLangObjectToHtmlPipe, "multiLangObjectToHtml", true>;
|
|
14
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
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>;
|
package/lib/tp.survey.const.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export declare const MISSING_VALUE = -97;
|
|
2
|
-
export declare const VIDEO_EXTENSION_LIST: string[];
|
|
3
|
-
export declare const BASE_WIDTH = 1280;
|
|
4
|
-
export declare const BASE_HEIGHT = 800;
|
|
5
|
-
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];\"); ";
|
package/lib/tp.survey.enum.d.ts
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
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
|
-
}
|