@touchpoll/tp-survey 0.0.56 → 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;
|
|
@@ -334,6 +340,17 @@ interface IdbQuestion {
|
|
|
334
340
|
RequireAllAnswers: boolean;
|
|
335
341
|
SLSectionMinAnswersCount: number;
|
|
336
342
|
SLSectionMaxAnswersCount: number;
|
|
343
|
+
PenAlfa: number;
|
|
344
|
+
PenColor: string | null;
|
|
345
|
+
TestImage: string | null;
|
|
346
|
+
TestImageX: number;
|
|
347
|
+
TestImageY: number;
|
|
348
|
+
TestImageWidth: number;
|
|
349
|
+
TestImageHeight: number;
|
|
350
|
+
MinimumClickCount: number;
|
|
351
|
+
ShowBtnNoInterest: boolean;
|
|
352
|
+
ShowRegionsOnPlay: boolean;
|
|
353
|
+
ShowBtnClearClicks: boolean;
|
|
337
354
|
}
|
|
338
355
|
interface IdbQuestionaryQuota {
|
|
339
356
|
quota_guid: number;
|
|
@@ -445,6 +462,14 @@ interface IInterviewProgressEvent {
|
|
|
445
462
|
questionGuid: number;
|
|
446
463
|
interviewData: IInterviewProgressEventData;
|
|
447
464
|
}
|
|
465
|
+
interface IPoint {
|
|
466
|
+
x: number;
|
|
467
|
+
y: number;
|
|
468
|
+
}
|
|
469
|
+
interface IRegionSelectedEvent {
|
|
470
|
+
index: number;
|
|
471
|
+
points: Array<IPoint>;
|
|
472
|
+
}
|
|
448
473
|
|
|
449
474
|
interface ICurrentQuestionViewData {
|
|
450
475
|
question: IdbQuestion | null;
|
|
@@ -480,18 +505,20 @@ declare class SurveyPlayComponent implements OnInit {
|
|
|
480
505
|
}
|
|
481
506
|
|
|
482
507
|
declare class SurveyQuestionPreviewComponent {
|
|
483
|
-
question: _angular_core.InputSignal<IdbQuestion | null>;
|
|
484
|
-
language: _angular_core.InputSignal<number>;
|
|
485
|
-
viewModel: _angular_core.InputSignal<ViewModel>;
|
|
486
|
-
languageList: _angular_core.InputSignal<IdbBaseParamsLanguage[]>;
|
|
487
|
-
theme: _angular_core.InputSignal<TpSurveyTheme>;
|
|
488
|
-
repositoryPath: _angular_core.InputSignal<string>;
|
|
489
|
-
templateNavigationRef: _angular_core.InputSignal<TemplateRef<any> | null | undefined>;
|
|
490
|
-
|
|
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;
|
|
491
519
|
findVariable(sysName: string): string;
|
|
492
|
-
protected readonly viewModelE: typeof ViewModel;
|
|
493
520
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SurveyQuestionPreviewComponent, never>;
|
|
494
|
-
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>;
|
|
495
522
|
}
|
|
496
523
|
|
|
497
524
|
declare const MISSING_VALUE = -97;
|
|
@@ -503,4 +530,4 @@ declare const LOGIC_FUNC_TEXT = "\n const self = this;\n var setVar = fun
|
|
|
503
530
|
declare function executeLogicExpression(expression: string, vars: Record<string, unknown>): Function;
|
|
504
531
|
|
|
505
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 };
|
|
506
|
-
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 };
|