UNPKG

ngx-voicely-cx

Version:

A feedback collection widget for Angular applications

48 lines (47 loc) 1.69 kB
import { EventEmitter, OnInit } from '@angular/core'; import { FormBuilder, FormControl, FormGroup } from '@angular/forms'; import * as i0 from "@angular/core"; export interface FeedbackFormLabels { easeOfUse: string; performance: string; design: string; missingFeatures: string; missingFeaturesPlaceholder: string; thoughts: string; thoughtsPlaceholder: string; submitButton: string; ratingDescription?: { 1: string; 2: string; 3: string; 4: string; 5: string; }; } export interface FeedbackFormData { easeOfUse: any; performance: any; design: any; missingFeatures: string[]; userFeedback: string; } export declare class FeedbackFormComponent implements OnInit { private fb; title: string; subtitle?: string; labels: FeedbackFormLabels; formSubmit: EventEmitter<FeedbackFormData>; feedbackForm: FormGroup; featureInput: FormControl<string | null>; features: string[]; constructor(fb: FormBuilder); ngOnInit(): void; onRatingChange(controlName: string, value: number): void; addFeature(): void; removeFeature(index: number): void; onSubmit(): void; hasAtLeastOneValue(): boolean; getRatingDescription(value: any): string; static ɵfac: i0.ɵɵFactoryDeclaration<FeedbackFormComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<FeedbackFormComponent, "lib-feedback-form", never, { "title": { "alias": "title"; "required": false; }; "subtitle": { "alias": "subtitle"; "required": false; }; "labels": { "alias": "labels"; "required": false; }; }, { "formSubmit": "formSubmit"; }, never, never, true, never>; }