@touchpoll/tp-survey 0.0.57 → 0.0.58
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/package.json
CHANGED
|
@@ -18,6 +18,7 @@ type TTabletKeyboardVisibleStatus = 'show' | 'hide';
|
|
|
18
18
|
type TFindVariableVoid = (sysName: string) => string;
|
|
19
19
|
type TImagePositionHorizontal = 'left' | 'center' | 'right';
|
|
20
20
|
type TImagePositionVertical = 'top' | 'center' | 'bottom';
|
|
21
|
+
type TMode = 'survey' | 'editing';
|
|
21
22
|
|
|
22
23
|
interface TpSurveyConfig {
|
|
23
24
|
tpPlatform: TpSurveyPlatform;
|
|
@@ -73,6 +74,7 @@ declare enum QuestionsType {
|
|
|
73
74
|
eqSL = "SL",
|
|
74
75
|
eqOL = "OL",
|
|
75
76
|
eqOD = "OD",
|
|
77
|
+
eqAC = "AC",
|
|
76
78
|
eqEND = "END"
|
|
77
79
|
}
|
|
78
80
|
declare enum ResultativeStatus {
|
|
@@ -94,6 +96,7 @@ declare class Answer implements IQuestionAnswer {
|
|
|
94
96
|
readonly ViewedAlternativeValues: Array<number>;
|
|
95
97
|
readonly ViewedSectionGuids: Array<number>;
|
|
96
98
|
readonly AlternativeSequenceClicks: Array<[number, number]>;
|
|
99
|
+
readonly StrokePointList: Array<IPoint>;
|
|
97
100
|
StartedAt: number;
|
|
98
101
|
FinishedAt: number;
|
|
99
102
|
AnswerValue: any;
|
|
@@ -111,6 +114,7 @@ interface AnswerChange {
|
|
|
111
114
|
viewedAlternativeValues: Array<number>;
|
|
112
115
|
viewedSectionGuids: Array<number>;
|
|
113
116
|
alternativeSequenceClicks: Array<[number, number]>;
|
|
117
|
+
acStrokePointList?: Array<IPoint>;
|
|
114
118
|
}
|
|
115
119
|
interface IdbBaseParamsLanguage {
|
|
116
120
|
Value: number;
|
|
@@ -202,6 +206,12 @@ interface IdbAlternative {
|
|
|
202
206
|
x: number;
|
|
203
207
|
y: number;
|
|
204
208
|
}
|
|
209
|
+
interface IdbRegion {
|
|
210
|
+
Value: number;
|
|
211
|
+
SysName: string;
|
|
212
|
+
Caption: string;
|
|
213
|
+
Points: Array<IPoint>;
|
|
214
|
+
}
|
|
205
215
|
interface IdbMQSectionItem {
|
|
206
216
|
CaptionPosition: string;
|
|
207
217
|
Alias: string;
|
|
@@ -248,10 +258,6 @@ interface IdbLogic {
|
|
|
248
258
|
LogicText: string;
|
|
249
259
|
LogicTextUser: string;
|
|
250
260
|
}
|
|
251
|
-
interface IdbRegion {
|
|
252
|
-
Value: number;
|
|
253
|
-
Text: string;
|
|
254
|
-
}
|
|
255
261
|
interface IdbImage {
|
|
256
262
|
Image: IdbTpBackGround;
|
|
257
263
|
EnableExpression: string;
|
|
@@ -456,6 +462,14 @@ interface IInterviewProgressEvent {
|
|
|
456
462
|
questionGuid: number;
|
|
457
463
|
interviewData: IInterviewProgressEventData;
|
|
458
464
|
}
|
|
465
|
+
interface IPoint {
|
|
466
|
+
x: number;
|
|
467
|
+
y: number;
|
|
468
|
+
}
|
|
469
|
+
interface IRegionSelectedEvent {
|
|
470
|
+
index: number;
|
|
471
|
+
points: Array<IPoint>;
|
|
472
|
+
}
|
|
459
473
|
|
|
460
474
|
interface ICurrentQuestionViewData {
|
|
461
475
|
question: IdbQuestion | null;
|
|
@@ -491,18 +505,20 @@ declare class SurveyPlayComponent implements OnInit {
|
|
|
491
505
|
}
|
|
492
506
|
|
|
493
507
|
declare class SurveyQuestionPreviewComponent {
|
|
494
|
-
question: _angular_core.InputSignal<IdbQuestion | null>;
|
|
495
|
-
language: _angular_core.InputSignal<number>;
|
|
496
|
-
viewModel: _angular_core.InputSignal<ViewModel>;
|
|
497
|
-
languageList: _angular_core.InputSignal<IdbBaseParamsLanguage[]>;
|
|
498
|
-
theme: _angular_core.InputSignal<TpSurveyTheme>;
|
|
499
|
-
repositoryPath: _angular_core.InputSignal<string>;
|
|
500
|
-
templateNavigationRef: _angular_core.InputSignal<TemplateRef<any> | null | undefined>;
|
|
501
|
-
|
|
508
|
+
readonly question: _angular_core.InputSignal<IdbQuestion | null>;
|
|
509
|
+
readonly language: _angular_core.InputSignal<number>;
|
|
510
|
+
readonly viewModel: _angular_core.InputSignal<ViewModel>;
|
|
511
|
+
readonly languageList: _angular_core.InputSignal<IdbBaseParamsLanguage[]>;
|
|
512
|
+
readonly theme: _angular_core.InputSignal<TpSurveyTheme>;
|
|
513
|
+
readonly repositoryPath: _angular_core.InputSignal<string>;
|
|
514
|
+
readonly templateNavigationRef: _angular_core.InputSignal<TemplateRef<any> | null | undefined>;
|
|
515
|
+
readonly mode: _angular_core.InputSignal<TMode>;
|
|
516
|
+
readonly regionCreated: _angular_core.OutputEmitterRef<IPoint[]>;
|
|
517
|
+
readonly regionSelected: _angular_core.OutputEmitterRef<IRegionSelectedEvent>;
|
|
518
|
+
readonly viewModelE: typeof ViewModel;
|
|
502
519
|
findVariable(sysName: string): string;
|
|
503
|
-
protected readonly viewModelE: typeof ViewModel;
|
|
504
520
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SurveyQuestionPreviewComponent, never>;
|
|
505
|
-
static ɵcmp: _angular_core.ɵɵ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>;
|
|
521
|
+
static ɵcmp: _angular_core.ɵɵ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; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; }, { "regionCreated": "regionCreated"; "regionSelected": "regionSelected"; }, never, never, true, never>;
|
|
506
522
|
}
|
|
507
523
|
|
|
508
524
|
declare const MISSING_VALUE = -97;
|
|
@@ -514,4 +530,4 @@ declare const LOGIC_FUNC_TEXT = "\n const self = this;\n var setVar = fun
|
|
|
514
530
|
declare function executeLogicExpression(expression: string, vars: Record<string, unknown>): Function;
|
|
515
531
|
|
|
516
532
|
export { AdditionalAnswerType, Answer, BASE_HEIGHT, BASE_WIDTH, LOGIC_FUNC_TEXT, MISSING_VALUE, QuestionsType, ResultativeStatus, SurveyEvents, SurveyPlayComponent, SurveyQuestionPreviewComponent, TP_SURVEY_CONFIGURATION, TpSurveyModule, VIDEO_EXTENSION_LIST, ValidStatus, ViewModel, executeLogicExpression };
|
|
517
|
-
export type { AdditionalAnswer, AdditionalAnswerCaptionPosition, AnswerChange, AnswerSlType, AnswerT, ICurrentQuestionAnswer, IInterviewAdditionalInfo, IInterviewAutoSaveData, IInterviewData, IInterviewLogicVar, IInterviewProgressEvent, IInterviewProgressEventData, IQuestionAnswer, IdbAdditionalAnswer, IdbAlternative, IdbBaseParamsLanguage, IdbBaseParamsRepositoryObject, IdbImage, IdbLogic, IdbLogicCaptionObject, IdbMQSectionItem, IdbMultilangObject, IdbQuestion, IdbQuestionary, IdbQuestionaryBaseParams, IdbQuestionaryInfo, IdbQuestionaryQuota, IdbQuestionaryQuota2d, IdbQuestionaryQuota2dObject, IdbRegion, IdbSection, IdbSurveyOptions, IdbTpBackGround, LogicObject, MissingValueT, NavigationButtonDirection, SurveyType, TFindVariableVoid, TImagePositionHorizontal, TImagePositionVertical, TTabletKeyboardVisibleStatus, TpSurveyConfig, TpSurveyPlatform, TpSurveySupportLanguage, TpSurveyTheme };
|
|
533
|
+
export type { AdditionalAnswer, AdditionalAnswerCaptionPosition, AnswerChange, AnswerSlType, AnswerT, ICurrentQuestionAnswer, IInterviewAdditionalInfo, IInterviewAutoSaveData, IInterviewData, IInterviewLogicVar, IInterviewProgressEvent, IInterviewProgressEventData, IPoint, IQuestionAnswer, IRegionSelectedEvent, IdbAdditionalAnswer, IdbAlternative, IdbBaseParamsLanguage, IdbBaseParamsRepositoryObject, IdbImage, IdbLogic, IdbLogicCaptionObject, IdbMQSectionItem, IdbMultilangObject, IdbQuestion, IdbQuestionary, IdbQuestionaryBaseParams, IdbQuestionaryInfo, IdbQuestionaryQuota, IdbQuestionaryQuota2d, IdbQuestionaryQuota2dObject, IdbRegion, IdbSection, IdbSurveyOptions, IdbTpBackGround, LogicObject, MissingValueT, NavigationButtonDirection, SurveyType, TFindVariableVoid, TImagePositionHorizontal, TImagePositionVertical, TMode, TTabletKeyboardVisibleStatus, TpSurveyConfig, TpSurveyPlatform, TpSurveySupportLanguage, TpSurveyTheme };
|