1 | import { EventEmitter, InjectionToken } from '@angular/core';
|
2 | export type InputTransformFn = (value: unknown) => string | number;
|
3 | export type OutputTransformFn = (value: string | number | undefined | null) => unknown;
|
4 | export interface IConfig {
|
5 | suffix: string;
|
6 | prefix: string;
|
7 | thousandSeparator: string;
|
8 | decimalMarker: '.' | ',' | ['.', ','];
|
9 | clearIfNotMatch: boolean;
|
10 | showTemplate: boolean;
|
11 | showMaskTyped: boolean;
|
12 | placeHolderCharacter: string;
|
13 | shownMaskExpression: string;
|
14 | specialCharacters: string[] | readonly string[];
|
15 | dropSpecialCharacters: boolean | string[] | readonly string[];
|
16 | hiddenInput: boolean | undefined;
|
17 | validation: boolean;
|
18 | separatorLimit: string;
|
19 | apm: boolean;
|
20 | allowNegativeNumbers: boolean;
|
21 | leadZeroDateTime: boolean;
|
22 | leadZero: boolean;
|
23 | triggerOnMaskChange: boolean;
|
24 | keepCharacterPositions: boolean;
|
25 | inputTransformFn: InputTransformFn;
|
26 | outputTransformFn: OutputTransformFn;
|
27 | maskFilled: EventEmitter<void>;
|
28 | patterns: Record<string, {
|
29 | pattern: RegExp;
|
30 | optional?: boolean;
|
31 | symbol?: string;
|
32 | }>;
|
33 | }
|
34 | export type optionsConfig = Partial<IConfig>;
|
35 | export declare const NGX_MASK_CONFIG: InjectionToken<IConfig>;
|
36 | export declare const NEW_CONFIG: InjectionToken<IConfig>;
|
37 | export declare const INITIAL_CONFIG: InjectionToken<IConfig>;
|
38 | export declare const initialConfig: IConfig;
|
39 | export declare const timeMasks: string[];
|
40 | export declare const withoutValidation: string[];
|