import { TemplateRef } from "@angular/core"; import { PassThrough, PassThroughOption } from "primeng/api"; /** * Defines the mode of the progress bar. * @group Types */ export type ProgressBarMode = 'determinate' | 'indeterminate'; /** * Custom pass-through(pt) options. * @template I Type of instance. * * @see {@link ProgressBar.pt} * @group Interface */ export interface ProgressBarPassThroughOptions { /** * Used to pass attributes to the host's DOM element. */ host?: PassThroughOption; /** * Used to pass attributes to the root's DOM element. */ root?: PassThroughOption; /** * Used to pass attributes to the value's DOM element. */ value?: PassThroughOption; /** * Used to pass attributes to the label's DOM element. */ label?: PassThroughOption; } /** * Defines valid pass-through options in ProgressBar. * @see {@link ProgressBarPassThroughOptions} * * @template I Type of instance. */ export type ProgressBarPassThrough = PassThrough>; /** * Custom content template context. * @group Interface */ export interface ProgressBarContentTemplateContext { /** * Value of the progressbar. */ $implicit: number | undefined; } /** * Defines valid templates in ProgressBar. * @group Templates */ export interface ProgressBarTemplates { /** * Custom template of content. * @param {ProgressBarContentTemplateContext} context - content context. */ content(context: ProgressBarContentTemplateContext): TemplateRef; }