import { TConfigMask, TInputMode } from '@douglas-serena/utils'; import { InputAlign } from '../../types/interfaces/input-align.type'; import { IMatTheme } from '../../types/interfaces/mat-theme.interface'; export interface INgInputMaterialConfig { icons?: IIcons; theme: IMatTheme; fields: { [type: string]: IField; }; } export interface IField { type?: string; icons?: IIcons; align?: InputAlign; labelEmpty?: string; inputmode?: TInputMode; mask?: string | Partial; keyMapBox?: string; [attr: string]: any; } export interface IIcons { suffix?: IIcon; prefix?: IIcon; } export interface IIcon { icon?: string; image?: string; color?: string; class?: string; hidden?: boolean; disabled?: boolean; type?: 'button' | 'submit'; onClick?: (ref: IIcon, element?: any, event?: Event) => void; }