@touchpoll/tp-survey 0.0.36 → 0.0.37

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.
@@ -1,5 +1,4 @@
1
- import { OnInit, TemplateRef } from '@angular/core';
2
- import { Observable } from 'rxjs';
1
+ import { OnInit, Signal, TemplateRef } from '@angular/core';
3
2
  import { AnswerChange, ICurrentQuestionAnswer, IdbQuestion, IdbQuestionary, IInterviewAutoSaveData, IInterviewData, IInterviewProgressEvent } from '../../tp.survey.interface';
4
3
  import { NavigationButtonDirection, TpSurveyTheme } from '../../tp.survey.type';
5
4
  import { ViewModel } from '../../tp.survey.enum';
@@ -19,11 +18,12 @@ export declare class SurveyPlayComponent implements OnInit {
19
18
  interviewStarted: import("@angular/core").OutputEmitterRef<void>;
20
19
  interviewFinished: import("@angular/core").OutputEmitterRef<IInterviewData>;
21
20
  interviewProgress: import("@angular/core").OutputEmitterRef<IInterviewProgressEvent>;
22
- readonly currentQuestionViewData$: Observable<ICurrentQuestionViewData>;
21
+ readonly currentQuestionViewData: Signal<ICurrentQuestionViewData>;
22
+ readonly question: Signal<IdbQuestion | null>;
23
23
  readonly activeLanguage: import("@angular/core").WritableSignal<number>;
24
24
  readonly viewModelE: typeof ViewModel;
25
- readonly backButtonAvailable: import("@angular/core").Signal<boolean | undefined>;
26
- readonly nextButtonAvailable: import("@angular/core").Signal<boolean>;
25
+ readonly backButtonAvailable: Signal<boolean | undefined>;
26
+ readonly nextButtonAvailable: Signal<boolean>;
27
27
  constructor();
28
28
  ngOnInit(): void;
29
29
  onNavigationButtonClick(direction: NavigationButtonDirection): void;
@@ -202,6 +202,7 @@ export interface IdbQuestion {
202
202
  TimeDisplay: number;
203
203
  Implicit: boolean;
204
204
  CanSkip: boolean;
205
+ BackgroundColor?: string | null;
205
206
  OLMaxCount: number;
206
207
  OLMinCount: number;
207
208
  OLRegexp: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@touchpoll/tp-survey",
3
- "version": "0.0.36",
3
+ "version": "0.0.37",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=17.0.0",
6
6
  "@angular/core": ">=17.0.0"