matcha-components 20.36.0 → 20.40.0
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.
- package/fesm2022/matcha-components.mjs +4664 -464
- package/fesm2022/matcha-components.mjs.map +1 -1
- package/index.d.ts +339 -6
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { OnInit, OnChanges, EventEmitter, SimpleChanges, AfterContentInit, OnDestroy, QueryList, ElementRef, Renderer2, TemplateRef, ChangeDetectorRef, AfterViewInit, NgZone, ApplicationRef, Injector, RendererFactory2, Type, ComponentRef } from '@angular/core';
|
|
2
|
+
import { OnInit, OnChanges, EventEmitter, SimpleChanges, AfterContentInit, OnDestroy, QueryList, ElementRef, Renderer2, TemplateRef, ChangeDetectorRef, AfterViewInit, NgZone, PipeTransform, ApplicationRef, Injector, RendererFactory2, Type, ComponentRef } from '@angular/core';
|
|
3
3
|
import * as rxjs from 'rxjs';
|
|
4
4
|
import { Observable, Subject } from 'rxjs';
|
|
5
5
|
import * as i3 from '@angular/forms';
|
|
6
|
-
import { FormControlName, ControlValueAccessor, NgControl } from '@angular/forms';
|
|
6
|
+
import { FormControlName, ControlValueAccessor, NgControl, Validator, FormControl, ValidationErrors } from '@angular/forms';
|
|
7
7
|
import { HttpClient } from '@angular/common/http';
|
|
8
8
|
import * as i2 from '@angular/common';
|
|
9
9
|
|
|
@@ -938,6 +938,75 @@ declare class MatchaTimeComponent implements AfterContentInit, OnDestroy {
|
|
|
938
938
|
static ɵcmp: i0.ɵɵComponentDeclaration<MatchaTimeComponent, "matcha-time", never, { "startDateControlName": { "alias": "startDateControlName"; "required": false; }; "endDateControlName": { "alias": "endDateControlName"; "required": false; }; "allowCrossDays": { "alias": "allowCrossDays"; "required": false; }; }, {}, ["controls"], ["*"], false, never>;
|
|
939
939
|
}
|
|
940
940
|
|
|
941
|
+
/**
|
|
942
|
+
* Componente MatchaInputPhone
|
|
943
|
+
*
|
|
944
|
+
* Componente Angular para entrada de telefone internacional com seleção de país, máscara dinâmica e exibição de bandeira.
|
|
945
|
+
*
|
|
946
|
+
* Funcionalidades:
|
|
947
|
+
* - Seleção de país com dropdown e bandeira.
|
|
948
|
+
* - Máscara dinâmica de acordo com o país e DDD digitado.
|
|
949
|
+
* - Suporte a diferentes formatos de telefone (fixo/celular) para o Brasil.
|
|
950
|
+
* - Emissão de evento ao alterar o valor do telefone.
|
|
951
|
+
* - Inicialização automática pelo valor informado ou pelo idioma do navegador.
|
|
952
|
+
*
|
|
953
|
+
* Inputs:
|
|
954
|
+
* - fallbackMask: string - Máscara padrão caso não seja encontrada uma específica.
|
|
955
|
+
* - label: string - Rótulo do campo (padrão: 'Telefone').
|
|
956
|
+
* - value: string - Valor inicial do telefone (com ou sem DDI).
|
|
957
|
+
*
|
|
958
|
+
* Outputs:
|
|
959
|
+
* - onChange: EventEmitter<string> - Emite o valor do telefone completo (com DDI) ao alterar.
|
|
960
|
+
*
|
|
961
|
+
* ViewChild:
|
|
962
|
+
* - inputSelector: ElementRef - Referência ao container do input (usado para fechar o dropdown).
|
|
963
|
+
* - phoneRef: ElementRef - Referência ao input do telefone.
|
|
964
|
+
*
|
|
965
|
+
* Métodos principais:
|
|
966
|
+
* - ngOnInit: Inicializa o componente pelo valor ou idioma.
|
|
967
|
+
* - ngOnChanges: Atualiza o valor ao receber novo input externo.
|
|
968
|
+
* - initCountryPhone: Inicializa país e máscara pelo valor do telefone.
|
|
969
|
+
* - selectMaskForDialCode: Seleciona a máscara conforme país e DDD.
|
|
970
|
+
* - selectCountry: Troca o país selecionado e atualiza máscara.
|
|
971
|
+
* - onInput: Atualiza máscara e emite evento ao digitar.
|
|
972
|
+
* - toggleDropdown: Abre/fecha o dropdown de países.
|
|
973
|
+
*/
|
|
974
|
+
|
|
975
|
+
declare class MatchaInputPhoneComponent implements OnInit, OnDestroy, OnChanges {
|
|
976
|
+
private renderer;
|
|
977
|
+
private cdr;
|
|
978
|
+
inputSelector: ElementRef;
|
|
979
|
+
phoneRef: ElementRef;
|
|
980
|
+
fallbackMask: string;
|
|
981
|
+
value?: string;
|
|
982
|
+
onChange: EventEmitter<string>;
|
|
983
|
+
typeMask: string;
|
|
984
|
+
labelHover: string;
|
|
985
|
+
allCountries: any[];
|
|
986
|
+
isOpen: boolean;
|
|
987
|
+
selectedCountry: any;
|
|
988
|
+
inputValueModel: string;
|
|
989
|
+
private clickListener;
|
|
990
|
+
isInitialized: boolean;
|
|
991
|
+
constructor(renderer: Renderer2, cdr: ChangeDetectorRef);
|
|
992
|
+
ngOnInit(): void;
|
|
993
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
994
|
+
initCountryPhone(phone: string): void;
|
|
995
|
+
private setCountryAndInputValue;
|
|
996
|
+
private matchCountryAndSetInputValue;
|
|
997
|
+
private getMatchingCountry;
|
|
998
|
+
private matchAreaCodeAndSetInputValue;
|
|
999
|
+
selectMaskForDialCode(inputDigits: string, targetValuePhone?: string): void;
|
|
1000
|
+
initCountrylanguageNavigator(): void;
|
|
1001
|
+
selectCountry(country: any): void;
|
|
1002
|
+
toggleDropdown(): void;
|
|
1003
|
+
private removeClickListener;
|
|
1004
|
+
onInput(event: any): void;
|
|
1005
|
+
ngOnDestroy(): void;
|
|
1006
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatchaInputPhoneComponent, never>;
|
|
1007
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatchaInputPhoneComponent, "matcha-input-phone", never, { "fallbackMask": { "alias": "fallbackMask"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "onChange": "onChange"; }, never, never, false, never>;
|
|
1008
|
+
}
|
|
1009
|
+
|
|
941
1010
|
declare class StepComponent {
|
|
942
1011
|
step: any;
|
|
943
1012
|
template: TemplateRef<any>;
|
|
@@ -1488,7 +1557,7 @@ interface SliderOptions {
|
|
|
1488
1557
|
customPositionToValue?: (percent: number, minVal: number, maxVal: number) => number;
|
|
1489
1558
|
translate?: (value: number, sliderId: string, label: string) => string;
|
|
1490
1559
|
}
|
|
1491
|
-
declare class MatchaSliderComponent implements ControlValueAccessor, OnInit, OnDestroy
|
|
1560
|
+
declare class MatchaSliderComponent implements ControlValueAccessor, OnInit, OnDestroy {
|
|
1492
1561
|
private cdr;
|
|
1493
1562
|
private elementRef;
|
|
1494
1563
|
value: number;
|
|
@@ -1520,7 +1589,6 @@ declare class MatchaSliderComponent implements ControlValueAccessor, OnInit, OnD
|
|
|
1520
1589
|
get isAtMaxValue(): boolean;
|
|
1521
1590
|
get isDisabled(): boolean;
|
|
1522
1591
|
ngOnInit(): void;
|
|
1523
|
-
ngAfterViewInit(): void;
|
|
1524
1592
|
ngOnDestroy(): void;
|
|
1525
1593
|
private initializeValues;
|
|
1526
1594
|
private valueToPercentage;
|
|
@@ -1811,6 +1879,271 @@ declare class MatchaInputModule {
|
|
|
1811
1879
|
static ɵinj: i0.ɵɵInjectorDeclaration<MatchaInputModule>;
|
|
1812
1880
|
}
|
|
1813
1881
|
|
|
1882
|
+
type InputTransformFn = (value: unknown) => string | number;
|
|
1883
|
+
type OutputTransformFn = (value: string | number | undefined | null) => unknown;
|
|
1884
|
+
type NgxMaskConfig = {
|
|
1885
|
+
suffix: string;
|
|
1886
|
+
prefix: string;
|
|
1887
|
+
thousandSeparator: string;
|
|
1888
|
+
decimalMarker: '.' | ',' | ['.', ','];
|
|
1889
|
+
clearIfNotMatch: boolean;
|
|
1890
|
+
showMaskTyped: boolean;
|
|
1891
|
+
placeHolderCharacter: string;
|
|
1892
|
+
shownMaskExpression: string;
|
|
1893
|
+
specialCharacters: string[] | readonly string[];
|
|
1894
|
+
dropSpecialCharacters: boolean | string[] | readonly string[];
|
|
1895
|
+
hiddenInput: boolean;
|
|
1896
|
+
validation: boolean;
|
|
1897
|
+
instantPrefix: boolean;
|
|
1898
|
+
separatorLimit: string;
|
|
1899
|
+
apm: boolean;
|
|
1900
|
+
allowNegativeNumbers: boolean;
|
|
1901
|
+
leadZeroDateTime: boolean;
|
|
1902
|
+
leadZero: boolean;
|
|
1903
|
+
triggerOnMaskChange: boolean;
|
|
1904
|
+
keepCharacterPositions: boolean;
|
|
1905
|
+
inputTransformFn: InputTransformFn;
|
|
1906
|
+
outputTransformFn: OutputTransformFn;
|
|
1907
|
+
maskFilled: EventEmitter<void>;
|
|
1908
|
+
patterns: Record<string, {
|
|
1909
|
+
pattern: RegExp;
|
|
1910
|
+
optional?: boolean;
|
|
1911
|
+
symbol?: string;
|
|
1912
|
+
}>;
|
|
1913
|
+
};
|
|
1914
|
+
|
|
1915
|
+
type CustomKeyboardEvent = KeyboardEvent;
|
|
1916
|
+
|
|
1917
|
+
declare class NgxMaskApplierService {
|
|
1918
|
+
protected _config: NgxMaskConfig;
|
|
1919
|
+
dropSpecialCharacters: NgxMaskConfig['dropSpecialCharacters'];
|
|
1920
|
+
hiddenInput: NgxMaskConfig['hiddenInput'];
|
|
1921
|
+
clearIfNotMatch: NgxMaskConfig['clearIfNotMatch'];
|
|
1922
|
+
specialCharacters: NgxMaskConfig['specialCharacters'];
|
|
1923
|
+
patterns: NgxMaskConfig['patterns'];
|
|
1924
|
+
prefix: NgxMaskConfig['prefix'];
|
|
1925
|
+
suffix: NgxMaskConfig['suffix'];
|
|
1926
|
+
thousandSeparator: NgxMaskConfig['thousandSeparator'];
|
|
1927
|
+
decimalMarker: NgxMaskConfig['decimalMarker'];
|
|
1928
|
+
customPattern: NgxMaskConfig['patterns'];
|
|
1929
|
+
showMaskTyped: NgxMaskConfig['showMaskTyped'];
|
|
1930
|
+
placeHolderCharacter: NgxMaskConfig['placeHolderCharacter'];
|
|
1931
|
+
validation: NgxMaskConfig['validation'];
|
|
1932
|
+
separatorLimit: NgxMaskConfig['separatorLimit'];
|
|
1933
|
+
allowNegativeNumbers: NgxMaskConfig['allowNegativeNumbers'];
|
|
1934
|
+
leadZeroDateTime: NgxMaskConfig['leadZeroDateTime'];
|
|
1935
|
+
leadZero: NgxMaskConfig['leadZero'];
|
|
1936
|
+
apm: NgxMaskConfig['apm'];
|
|
1937
|
+
inputTransformFn: NgxMaskConfig['inputTransformFn'] | null;
|
|
1938
|
+
outputTransformFn: NgxMaskConfig['outputTransformFn'] | null;
|
|
1939
|
+
keepCharacterPositions: NgxMaskConfig['keepCharacterPositions'];
|
|
1940
|
+
instantPrefix: NgxMaskConfig['instantPrefix'];
|
|
1941
|
+
triggerOnMaskChange: NgxMaskConfig['triggerOnMaskChange'];
|
|
1942
|
+
private _shift;
|
|
1943
|
+
plusOnePosition: boolean;
|
|
1944
|
+
maskExpression: string;
|
|
1945
|
+
actualValue: string;
|
|
1946
|
+
showKeepCharacterExp: string;
|
|
1947
|
+
shownMaskExpression: NgxMaskConfig['shownMaskExpression'];
|
|
1948
|
+
deletedSpecialCharacter: boolean;
|
|
1949
|
+
ipError?: boolean;
|
|
1950
|
+
cpfCnpjError?: boolean;
|
|
1951
|
+
applyMask(inputValue: string | object | boolean | null | undefined, maskExpression: string, position?: number, justPasted?: boolean, backspaced?: boolean, cb?: (...args: any[]) => any): string;
|
|
1952
|
+
_findDropSpecialChar(inputSymbol: string): undefined | string;
|
|
1953
|
+
_findSpecialChar(inputSymbol: string): undefined | string;
|
|
1954
|
+
_checkSymbolMask(inputSymbol: string, maskSymbol: string): boolean;
|
|
1955
|
+
private _formatWithSeparators;
|
|
1956
|
+
private percentage;
|
|
1957
|
+
getPrecision: (maskExpression: string) => number;
|
|
1958
|
+
private checkAndRemoveSuffix;
|
|
1959
|
+
private checkInputPrecision;
|
|
1960
|
+
private _stripToDecimal;
|
|
1961
|
+
private _charToRegExpExpression;
|
|
1962
|
+
private _shiftStep;
|
|
1963
|
+
protected _compareOrIncludes<T>(value: T, comparedValue: T | T[], excludedValue: T): boolean;
|
|
1964
|
+
private _validIP;
|
|
1965
|
+
private _splitPercentZero;
|
|
1966
|
+
private _findFirstNonZeroAndDecimalIndex;
|
|
1967
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgxMaskApplierService, never>;
|
|
1968
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NgxMaskApplierService>;
|
|
1969
|
+
}
|
|
1970
|
+
|
|
1971
|
+
declare class NgxMaskService extends NgxMaskApplierService {
|
|
1972
|
+
isNumberValue: boolean;
|
|
1973
|
+
maskIsShown: string;
|
|
1974
|
+
selStart: number | null;
|
|
1975
|
+
selEnd: number | null;
|
|
1976
|
+
maskChanged: boolean;
|
|
1977
|
+
maskExpressionArray: string[];
|
|
1978
|
+
previousValue: string;
|
|
1979
|
+
currentValue: string;
|
|
1980
|
+
/**
|
|
1981
|
+
* Whether we are currently in writeValue function, in this case when applying the mask we don't want to trigger onChange function,
|
|
1982
|
+
* since writeValue should be a one way only process of writing the DOM value based on the Angular model value.
|
|
1983
|
+
*/
|
|
1984
|
+
writingValue: boolean;
|
|
1985
|
+
private _emitValue;
|
|
1986
|
+
private _start;
|
|
1987
|
+
private _end;
|
|
1988
|
+
onChange: (_: any) => void;
|
|
1989
|
+
readonly _elementRef: ElementRef<any> | null;
|
|
1990
|
+
private readonly document;
|
|
1991
|
+
protected _config: NgxMaskConfig;
|
|
1992
|
+
private readonly _renderer;
|
|
1993
|
+
/**
|
|
1994
|
+
* Applies the mask to the input value.
|
|
1995
|
+
* @param inputValue The input value to be masked.
|
|
1996
|
+
* @param maskExpression The mask expression to apply.
|
|
1997
|
+
* @param position The position in the input value.
|
|
1998
|
+
* @param justPasted Whether the value was just pasted.
|
|
1999
|
+
* @param backspaced Whether the value was backspaced.
|
|
2000
|
+
* @param cb Callback function.
|
|
2001
|
+
* @returns The masked value.
|
|
2002
|
+
*/
|
|
2003
|
+
applyMask(inputValue: string, maskExpression: string, position?: number, justPasted?: boolean, backspaced?: boolean, cb?: (...args: any[]) => any): string;
|
|
2004
|
+
private _numberSkipedSymbols;
|
|
2005
|
+
applyValueChanges(position: number, justPasted: boolean, backspaced: boolean, cb?: (...args: any[]) => any): void;
|
|
2006
|
+
hideInput(inputValue: string, maskExpression: string): string;
|
|
2007
|
+
getActualValue(res: string): string;
|
|
2008
|
+
shiftTypedSymbols(inputValue: string): string;
|
|
2009
|
+
/**
|
|
2010
|
+
* Convert number value to string
|
|
2011
|
+
* 3.1415 -> '3.1415'
|
|
2012
|
+
* 1e-7 -> '0.0000001'
|
|
2013
|
+
*/
|
|
2014
|
+
numberToString(value: number | string): string;
|
|
2015
|
+
showMaskInInput(inputVal?: string): string;
|
|
2016
|
+
clearIfNotMatchFn(): void;
|
|
2017
|
+
set formElementProperty([name, value]: [string, string | boolean]);
|
|
2018
|
+
checkDropSpecialCharAmount(mask: string): number;
|
|
2019
|
+
removeMask(inputValue: string): string;
|
|
2020
|
+
private _checkForIp;
|
|
2021
|
+
private _checkForCpfCnpj;
|
|
2022
|
+
/**
|
|
2023
|
+
* Recursively determine the current active element by navigating the Shadow DOM until the Active Element is found.
|
|
2024
|
+
*/
|
|
2025
|
+
private _getActiveElement;
|
|
2026
|
+
/**
|
|
2027
|
+
* Propogates the input value back to the Angular model by triggering the onChange function. It won't do this if writingValue
|
|
2028
|
+
* is true. If that is true it means we are currently in the writeValue function, which is supposed to only update the actual
|
|
2029
|
+
* DOM element based on the Angular model value. It should be a one way process, i.e. writeValue should not be modifying the Angular
|
|
2030
|
+
* model value too. Therefore, we don't trigger onChange in this scenario.
|
|
2031
|
+
* @param inputValue the current form input value
|
|
2032
|
+
*/
|
|
2033
|
+
private formControlResult;
|
|
2034
|
+
private _toNumber;
|
|
2035
|
+
private _removeMask;
|
|
2036
|
+
private _removePrefix;
|
|
2037
|
+
private _removeSuffix;
|
|
2038
|
+
private _retrieveSeparatorValue;
|
|
2039
|
+
private _regExpForRemove;
|
|
2040
|
+
private _replaceDecimalMarkerToDot;
|
|
2041
|
+
_checkSymbols(result: string): string | number | undefined | null;
|
|
2042
|
+
private _checkPatternForSpace;
|
|
2043
|
+
private _retrieveSeparatorPrecision;
|
|
2044
|
+
_checkPrecision(separatorExpression: string, separatorValue: string): number | string;
|
|
2045
|
+
_repeatPatternSymbols(maskExp: string): string;
|
|
2046
|
+
currentLocaleDecimalMarker(): string;
|
|
2047
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgxMaskService, never>;
|
|
2048
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NgxMaskService>;
|
|
2049
|
+
}
|
|
2050
|
+
|
|
2051
|
+
declare class NgxMaskDirective implements ControlValueAccessor, OnChanges, Validator {
|
|
2052
|
+
mask: i0.InputSignal<string | null | undefined>;
|
|
2053
|
+
specialCharacters: i0.InputSignal<string[] | readonly string[]>;
|
|
2054
|
+
patterns: i0.InputSignal<Record<string, {
|
|
2055
|
+
pattern: RegExp;
|
|
2056
|
+
optional?: boolean;
|
|
2057
|
+
symbol?: string;
|
|
2058
|
+
}>>;
|
|
2059
|
+
prefix: i0.InputSignal<string>;
|
|
2060
|
+
suffix: i0.InputSignal<string>;
|
|
2061
|
+
thousandSeparator: i0.InputSignal<string>;
|
|
2062
|
+
decimalMarker: i0.InputSignal<"," | "." | [".", ","]>;
|
|
2063
|
+
dropSpecialCharacters: i0.InputSignal<boolean | string[] | readonly string[] | null>;
|
|
2064
|
+
hiddenInput: i0.InputSignal<boolean | null>;
|
|
2065
|
+
showMaskTyped: i0.InputSignal<boolean | null>;
|
|
2066
|
+
placeHolderCharacter: i0.InputSignal<string | null>;
|
|
2067
|
+
shownMaskExpression: i0.InputSignal<string | null>;
|
|
2068
|
+
clearIfNotMatch: i0.InputSignal<boolean | null>;
|
|
2069
|
+
validation: i0.InputSignal<boolean | null>;
|
|
2070
|
+
separatorLimit: i0.InputSignal<string | null>;
|
|
2071
|
+
allowNegativeNumbers: i0.InputSignal<boolean | null>;
|
|
2072
|
+
leadZeroDateTime: i0.InputSignal<boolean | null>;
|
|
2073
|
+
leadZero: i0.InputSignal<boolean | null>;
|
|
2074
|
+
triggerOnMaskChange: i0.InputSignal<boolean | null>;
|
|
2075
|
+
apm: i0.InputSignal<boolean | null>;
|
|
2076
|
+
inputTransformFn: i0.InputSignal<InputTransformFn | null>;
|
|
2077
|
+
outputTransformFn: i0.InputSignal<OutputTransformFn | null>;
|
|
2078
|
+
keepCharacterPositions: i0.InputSignal<boolean | null>;
|
|
2079
|
+
instantPrefix: i0.InputSignal<boolean | null>;
|
|
2080
|
+
maskFilled: i0.OutputEmitterRef<void>;
|
|
2081
|
+
private _maskValue;
|
|
2082
|
+
private _inputValue;
|
|
2083
|
+
private _position;
|
|
2084
|
+
private _code;
|
|
2085
|
+
private _maskExpressionArray;
|
|
2086
|
+
private _justPasted;
|
|
2087
|
+
private _isFocused;
|
|
2088
|
+
/**For IME composition event */
|
|
2089
|
+
private _isComposing;
|
|
2090
|
+
_maskService: NgxMaskService;
|
|
2091
|
+
private readonly document;
|
|
2092
|
+
protected _config: NgxMaskConfig;
|
|
2093
|
+
onChange: (_: any) => void;
|
|
2094
|
+
onTouch: () => void;
|
|
2095
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
2096
|
+
validate({ value }: FormControl): ValidationErrors | null;
|
|
2097
|
+
onPaste(): void;
|
|
2098
|
+
onFocus(): void;
|
|
2099
|
+
onModelChange(value: string | undefined | null | number): void;
|
|
2100
|
+
onInput(e: CustomKeyboardEvent): void;
|
|
2101
|
+
onCompositionStart(): void;
|
|
2102
|
+
onCompositionEnd(e: CustomKeyboardEvent): void;
|
|
2103
|
+
onBlur(e: CustomKeyboardEvent): void;
|
|
2104
|
+
onClick(e: MouseEvent | CustomKeyboardEvent): void;
|
|
2105
|
+
onKeyDown(e: CustomKeyboardEvent): void;
|
|
2106
|
+
/** It writes the value in the input */
|
|
2107
|
+
writeValue(controlValue: unknown): Promise<void>;
|
|
2108
|
+
registerOnChange(fn: typeof this.onChange): void;
|
|
2109
|
+
registerOnTouched(fn: typeof this.onTouch): void;
|
|
2110
|
+
private _getActiveElement;
|
|
2111
|
+
checkSelectionOnDeletion(el: HTMLInputElement): void;
|
|
2112
|
+
/** It disables the input element */
|
|
2113
|
+
setDisabledState(isDisabled: boolean): void;
|
|
2114
|
+
private _applyMask;
|
|
2115
|
+
private _validateTime;
|
|
2116
|
+
private _getActualInputLength;
|
|
2117
|
+
private _createValidationError;
|
|
2118
|
+
private _setMask;
|
|
2119
|
+
private _areAllCharactersInEachStringSame;
|
|
2120
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgxMaskDirective, never>;
|
|
2121
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NgxMaskDirective, "input[mask], textarea[mask]", ["mask", "ngxMask"], { "mask": { "alias": "mask"; "required": false; "isSignal": true; }; "specialCharacters": { "alias": "specialCharacters"; "required": false; "isSignal": true; }; "patterns": { "alias": "patterns"; "required": false; "isSignal": true; }; "prefix": { "alias": "prefix"; "required": false; "isSignal": true; }; "suffix": { "alias": "suffix"; "required": false; "isSignal": true; }; "thousandSeparator": { "alias": "thousandSeparator"; "required": false; "isSignal": true; }; "decimalMarker": { "alias": "decimalMarker"; "required": false; "isSignal": true; }; "dropSpecialCharacters": { "alias": "dropSpecialCharacters"; "required": false; "isSignal": true; }; "hiddenInput": { "alias": "hiddenInput"; "required": false; "isSignal": true; }; "showMaskTyped": { "alias": "showMaskTyped"; "required": false; "isSignal": true; }; "placeHolderCharacter": { "alias": "placeHolderCharacter"; "required": false; "isSignal": true; }; "shownMaskExpression": { "alias": "shownMaskExpression"; "required": false; "isSignal": true; }; "clearIfNotMatch": { "alias": "clearIfNotMatch"; "required": false; "isSignal": true; }; "validation": { "alias": "validation"; "required": false; "isSignal": true; }; "separatorLimit": { "alias": "separatorLimit"; "required": false; "isSignal": true; }; "allowNegativeNumbers": { "alias": "allowNegativeNumbers"; "required": false; "isSignal": true; }; "leadZeroDateTime": { "alias": "leadZeroDateTime"; "required": false; "isSignal": true; }; "leadZero": { "alias": "leadZero"; "required": false; "isSignal": true; }; "triggerOnMaskChange": { "alias": "triggerOnMaskChange"; "required": false; "isSignal": true; }; "apm": { "alias": "apm"; "required": false; "isSignal": true; }; "inputTransformFn": { "alias": "inputTransformFn"; "required": false; "isSignal": true; }; "outputTransformFn": { "alias": "outputTransformFn"; "required": false; "isSignal": true; }; "keepCharacterPositions": { "alias": "keepCharacterPositions"; "required": false; "isSignal": true; }; "instantPrefix": { "alias": "instantPrefix"; "required": false; "isSignal": true; }; }, { "maskFilled": "maskFilled"; }, never, never, false, never>;
|
|
2122
|
+
}
|
|
2123
|
+
|
|
2124
|
+
declare class NgxMaskPipe implements PipeTransform {
|
|
2125
|
+
private readonly defaultOptions;
|
|
2126
|
+
private readonly _maskService;
|
|
2127
|
+
private _maskExpressionArray;
|
|
2128
|
+
private mask;
|
|
2129
|
+
transform(value: string | number, mask: string, { patterns, ...config }?: Partial<NgxMaskConfig>): string;
|
|
2130
|
+
private _setMask;
|
|
2131
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgxMaskPipe, never>;
|
|
2132
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<NgxMaskPipe, "mask", false>;
|
|
2133
|
+
}
|
|
2134
|
+
|
|
2135
|
+
declare class NgxMaskModule {
|
|
2136
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgxMaskModule, never>;
|
|
2137
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NgxMaskModule, [typeof NgxMaskDirective, typeof NgxMaskPipe], [typeof i2.CommonModule], [typeof NgxMaskDirective, typeof NgxMaskPipe]>;
|
|
2138
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<NgxMaskModule>;
|
|
2139
|
+
}
|
|
2140
|
+
|
|
2141
|
+
declare class MatchaInputPhoneModule {
|
|
2142
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatchaInputPhoneModule, never>;
|
|
2143
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MatchaInputPhoneModule, [typeof MatchaInputPhoneComponent], [typeof i2.CommonModule, typeof MatchaFormFieldModule, typeof i3.FormsModule, typeof NgxMaskModule], [typeof MatchaInputPhoneComponent]>;
|
|
2144
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<MatchaInputPhoneModule>;
|
|
2145
|
+
}
|
|
2146
|
+
|
|
1814
2147
|
declare class MatchaMenuTriggerForDirective {
|
|
1815
2148
|
private _elementRef;
|
|
1816
2149
|
private _renderer;
|
|
@@ -2011,7 +2344,7 @@ declare class MatchaAvatarModule {
|
|
|
2011
2344
|
|
|
2012
2345
|
declare class MatchaComponentsModule {
|
|
2013
2346
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatchaComponentsModule, never>;
|
|
2014
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<MatchaComponentsModule, [typeof MatchaOverflowDraggableComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i3.ReactiveFormsModule, typeof MatchaAccordionModule, typeof MatchaAutocompleteModule, typeof MatchaOptionModule, typeof MatchaPanelModule, typeof MatchaSelectModule, typeof MatchaBadgeModule, typeof MatchaButtonModule, typeof MatchaButtonToggleModule, typeof MatchaCardModule, typeof MatchaCheckboxModule, typeof MatchaRadioModule, typeof MatchaDividerModule, typeof MatchaElevationModule, typeof MatchaFormFieldModule, typeof MatchaHintTextModule, typeof MatchaIconModule, typeof MatchaInfiniteScrollModule, typeof MatchaLazyloadModule, typeof MatchaInputModule, typeof MatchaMasonryModule, typeof MatchaMenuModule, typeof MatchaModalModule, typeof MatchaPaginatorModule, typeof MatchaProgressBarModule, typeof MatchaRippleModule, typeof MatchaSidenavModule, typeof MatchaSlideToggleModule, typeof MatchaSliderModule, typeof MatchaSnackBarModule, typeof MatchaSortHeaderModule, typeof MatchaSpinModule, typeof MatchaSpinnerModule, typeof MatchaStepperModule, typeof MatchaTableModule, typeof MatchaTabsModule, typeof MatchaTitleModule, typeof MatchaTooltipModule, typeof MatchaDateRangeModule, typeof MatchaTimeModule, typeof MatchaDropListModule, typeof MatchaPageLayoutModule, typeof MatchaDrawerModule, typeof MatchaHighlightModule], [typeof MatchaAccordionModule, typeof MatchaAutocompleteModule, typeof MatchaOptionModule, typeof MatchaPanelModule, typeof MatchaSelectModule, typeof MatchaBadgeModule, typeof MatchaButtonModule, typeof MatchaButtonToggleModule, typeof MatchaCardModule, typeof MatchaCheckboxModule, typeof MatchaRadioModule, typeof MatchaDividerModule, typeof MatchaElevationModule, typeof MatchaFormFieldModule, typeof MatchaHintTextModule, typeof MatchaIconModule, typeof MatchaInfiniteScrollModule, typeof MatchaLazyloadModule, typeof MatchaInputModule, typeof MatchaMasonryModule, typeof MatchaMenuModule, typeof MatchaModalModule, typeof MatchaPaginatorModule, typeof MatchaProgressBarModule, typeof MatchaRippleModule, typeof MatchaSidenavModule, typeof MatchaSlideToggleModule, typeof MatchaSliderModule, typeof MatchaSnackBarModule, typeof MatchaSortHeaderModule, typeof MatchaSpinModule, typeof MatchaSpinnerModule, typeof MatchaStepperModule, typeof MatchaTableModule, typeof MatchaTabsModule, typeof MatchaTitleModule, typeof MatchaTooltipModule, typeof MatchaDateRangeModule, typeof MatchaTimeModule, typeof MatchaDropListModule, typeof MatchaPageLayoutModule, typeof MatchaAvatarModule, typeof MatchaDrawerModule, typeof MatchaHighlightModule]>;
|
|
2347
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MatchaComponentsModule, [typeof MatchaOverflowDraggableComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i3.ReactiveFormsModule, typeof MatchaAccordionModule, typeof MatchaAutocompleteModule, typeof MatchaOptionModule, typeof MatchaPanelModule, typeof MatchaSelectModule, typeof MatchaBadgeModule, typeof MatchaButtonModule, typeof MatchaButtonToggleModule, typeof MatchaCardModule, typeof MatchaCheckboxModule, typeof MatchaRadioModule, typeof MatchaDividerModule, typeof MatchaElevationModule, typeof MatchaFormFieldModule, typeof MatchaHintTextModule, typeof MatchaIconModule, typeof MatchaInfiniteScrollModule, typeof MatchaLazyloadModule, typeof MatchaInputModule, typeof MatchaInputPhoneModule, typeof MatchaMasonryModule, typeof MatchaMenuModule, typeof MatchaModalModule, typeof MatchaPaginatorModule, typeof MatchaProgressBarModule, typeof MatchaRippleModule, typeof MatchaSidenavModule, typeof MatchaSlideToggleModule, typeof MatchaSliderModule, typeof MatchaSnackBarModule, typeof MatchaSortHeaderModule, typeof MatchaSpinModule, typeof MatchaSpinnerModule, typeof MatchaStepperModule, typeof MatchaTableModule, typeof MatchaTabsModule, typeof MatchaTitleModule, typeof MatchaTooltipModule, typeof MatchaDateRangeModule, typeof MatchaTimeModule, typeof MatchaDropListModule, typeof MatchaPageLayoutModule, typeof MatchaDrawerModule, typeof MatchaHighlightModule], [typeof MatchaAccordionModule, typeof MatchaAutocompleteModule, typeof MatchaOptionModule, typeof MatchaPanelModule, typeof MatchaSelectModule, typeof MatchaBadgeModule, typeof MatchaButtonModule, typeof MatchaButtonToggleModule, typeof MatchaCardModule, typeof MatchaCheckboxModule, typeof MatchaRadioModule, typeof MatchaDividerModule, typeof MatchaElevationModule, typeof MatchaFormFieldModule, typeof MatchaHintTextModule, typeof MatchaIconModule, typeof MatchaInfiniteScrollModule, typeof MatchaLazyloadModule, typeof MatchaInputModule, typeof MatchaInputPhoneModule, typeof MatchaMasonryModule, typeof MatchaMenuModule, typeof MatchaModalModule, typeof MatchaPaginatorModule, typeof MatchaProgressBarModule, typeof MatchaRippleModule, typeof MatchaSidenavModule, typeof MatchaSlideToggleModule, typeof MatchaSliderModule, typeof MatchaSnackBarModule, typeof MatchaSortHeaderModule, typeof MatchaSpinModule, typeof MatchaSpinnerModule, typeof MatchaStepperModule, typeof MatchaTableModule, typeof MatchaTabsModule, typeof MatchaTitleModule, typeof MatchaTooltipModule, typeof MatchaDateRangeModule, typeof MatchaTimeModule, typeof MatchaDropListModule, typeof MatchaPageLayoutModule, typeof MatchaAvatarModule, typeof MatchaDrawerModule, typeof MatchaHighlightModule]>;
|
|
2015
2348
|
static ɵinj: i0.ɵɵInjectorDeclaration<MatchaComponentsModule>;
|
|
2016
2349
|
}
|
|
2017
2350
|
|
|
@@ -2143,5 +2476,5 @@ declare class StepContentDirective {
|
|
|
2143
2476
|
static ɵdir: i0.ɵɵDirectiveDeclaration<StepContentDirective, "[step]", never, { "step": { "alias": "step"; "required": false; }; }, {}, never, never, true, never>;
|
|
2144
2477
|
}
|
|
2145
2478
|
|
|
2146
|
-
export { CopyButtonComponent, MATCHA_OPTION_PARENT, MatchaAccordionComponent, MatchaAccordionContentComponent, MatchaAccordionHeaderComponent, MatchaAccordionItemComponent, MatchaAccordionModule, MatchaAutocompleteComponent, MatchaAutocompleteModule, MatchaAutocompleteTriggerDirective, MatchaAvatarComponent, MatchaAvatarModule, MatchaBadgeDirective, MatchaBadgeModule, MatchaBreakpointObservableModule, MatchaBreakpointObserver, MatchaButtonComponent, MatchaButtonModule, MatchaButtonToggleComponent, MatchaButtonToggleModule, MatchaCardComponent, MatchaCardModule, MatchaCheckboxComponent, MatchaCheckboxModule, MatchaComponentsModule, MatchaDateRangeComponent, MatchaDateRangeModule, MatchaDividerComponent, MatchaDividerModule, MatchaDragDirective, MatchaDragHandleDirective, MatchaDrawerComponent, MatchaDrawerContainerComponent, MatchaDrawerContentComponent, MatchaDrawerModule, MatchaDropListComponent, MatchaDropListModule, MatchaElevationDirective, MatchaElevationModule, MatchaErrorComponent, MatchaFormFieldComponent, MatchaFormFieldModule, MatchaGridComponent, MatchaGridModule, MatchaHighlightComponent, MatchaHighlightModule, MatchaHintTextComponent, MatchaHintTextModule, MatchaIconComponent, MatchaIconModule, MatchaInfiniteScrollComponent, MatchaInfiniteScrollDataComponent, MatchaInfiniteScrollModule, MatchaInputDirective, MatchaInputModule, MatchaLabelComponent, MatchaLazyloadComponent, MatchaLazyloadDataComponent, MatchaLazyloadModule, MatchaMasonryComponent, MatchaMasonryModule, MatchaMenuComponent, MatchaMenuModule, MatchaMenuTriggerForDirective, MatchaModalComponent, MatchaModalContentComponent, MatchaModalFooterComponent, MatchaModalHeaderComponent, MatchaModalModule, MatchaModalOptionsComponent, MatchaModalService, MatchaOptionComponent, MatchaOptionModule, MatchaOverlayService, MatchaPageLayoutComponent, MatchaPageLayoutModule, MatchaPaginatorComponent, MatchaPaginatorIntl, MatchaPaginatorModule, MatchaPanelComponent, MatchaPanelModule, MatchaProgressBarDirective, MatchaProgressBarModule, MatchaRadioComponent, MatchaRadioModule, MatchaRippleDirective, MatchaRippleModule, MatchaSelectComponent, MatchaSelectModule, MatchaSelectTriggerDirective, MatchaSidenavDirective, MatchaSidenavModule, MatchaSkeletonComponent, MatchaSkeletonModule, MatchaSlideToggleComponent, MatchaSlideToggleModule, MatchaSliderComponent, MatchaSliderModule, MatchaSnackBarDirective, MatchaSnackBarModule, MatchaSortHeaderDirective, MatchaSortHeaderModule, MatchaSpinComponent, MatchaSpinModule, MatchaSpinnerComponent, MatchaSpinnerModule, MatchaStepperComponent, MatchaStepperContentComponent, MatchaStepperControllerComponent, MatchaStepperModule, MatchaStepperStateService, MatchaTabItemComponent, MatchaTableDirective, MatchaTableModule, MatchaTabsComponent, MatchaTabsModule, MatchaTimeComponent, MatchaTimeModule, MatchaTitleComponent, MatchaTitleModule, MatchaToolbarButtonComponent, MatchaToolbarComponent, MatchaToolbarContentComponent, MatchaToolbarCustomButtonComponent, MatchaToolbarMainButtonComponent, MatchaToolbarModule, MatchaTooltipDirective, MatchaTooltipModule, NextStepDirective, PrevStepDirective, StepComponent, StepContentDirective };
|
|
2479
|
+
export { CopyButtonComponent, MATCHA_OPTION_PARENT, MatchaAccordionComponent, MatchaAccordionContentComponent, MatchaAccordionHeaderComponent, MatchaAccordionItemComponent, MatchaAccordionModule, MatchaAutocompleteComponent, MatchaAutocompleteModule, MatchaAutocompleteTriggerDirective, MatchaAvatarComponent, MatchaAvatarModule, MatchaBadgeDirective, MatchaBadgeModule, MatchaBreakpointObservableModule, MatchaBreakpointObserver, MatchaButtonComponent, MatchaButtonModule, MatchaButtonToggleComponent, MatchaButtonToggleModule, MatchaCardComponent, MatchaCardModule, MatchaCheckboxComponent, MatchaCheckboxModule, MatchaComponentsModule, MatchaDateRangeComponent, MatchaDateRangeModule, MatchaDividerComponent, MatchaDividerModule, MatchaDragDirective, MatchaDragHandleDirective, MatchaDrawerComponent, MatchaDrawerContainerComponent, MatchaDrawerContentComponent, MatchaDrawerModule, MatchaDropListComponent, MatchaDropListModule, MatchaElevationDirective, MatchaElevationModule, MatchaErrorComponent, MatchaFormFieldComponent, MatchaFormFieldModule, MatchaGridComponent, MatchaGridModule, MatchaHighlightComponent, MatchaHighlightModule, MatchaHintTextComponent, MatchaHintTextModule, MatchaIconComponent, MatchaIconModule, MatchaInfiniteScrollComponent, MatchaInfiniteScrollDataComponent, MatchaInfiniteScrollModule, MatchaInputDirective, MatchaInputModule, MatchaInputPhoneComponent, MatchaInputPhoneModule, MatchaLabelComponent, MatchaLazyloadComponent, MatchaLazyloadDataComponent, MatchaLazyloadModule, MatchaMasonryComponent, MatchaMasonryModule, MatchaMenuComponent, MatchaMenuModule, MatchaMenuTriggerForDirective, MatchaModalComponent, MatchaModalContentComponent, MatchaModalFooterComponent, MatchaModalHeaderComponent, MatchaModalModule, MatchaModalOptionsComponent, MatchaModalService, MatchaOptionComponent, MatchaOptionModule, MatchaOverlayService, MatchaPageLayoutComponent, MatchaPageLayoutModule, MatchaPaginatorComponent, MatchaPaginatorIntl, MatchaPaginatorModule, MatchaPanelComponent, MatchaPanelModule, MatchaProgressBarDirective, MatchaProgressBarModule, MatchaRadioComponent, MatchaRadioModule, MatchaRippleDirective, MatchaRippleModule, MatchaSelectComponent, MatchaSelectModule, MatchaSelectTriggerDirective, MatchaSidenavDirective, MatchaSidenavModule, MatchaSkeletonComponent, MatchaSkeletonModule, MatchaSlideToggleComponent, MatchaSlideToggleModule, MatchaSliderComponent, MatchaSliderModule, MatchaSnackBarDirective, MatchaSnackBarModule, MatchaSortHeaderDirective, MatchaSortHeaderModule, MatchaSpinComponent, MatchaSpinModule, MatchaSpinnerComponent, MatchaSpinnerModule, MatchaStepperComponent, MatchaStepperContentComponent, MatchaStepperControllerComponent, MatchaStepperModule, MatchaStepperStateService, MatchaTabItemComponent, MatchaTableDirective, MatchaTableModule, MatchaTabsComponent, MatchaTabsModule, MatchaTimeComponent, MatchaTimeModule, MatchaTitleComponent, MatchaTitleModule, MatchaToolbarButtonComponent, MatchaToolbarComponent, MatchaToolbarContentComponent, MatchaToolbarCustomButtonComponent, MatchaToolbarMainButtonComponent, MatchaToolbarModule, MatchaTooltipDirective, MatchaTooltipModule, NextStepDirective, PrevStepDirective, StepComponent, StepContentDirective };
|
|
2147
2480
|
export type { BreakpointState, DrawerItem, DrawerMode, DrawerPosition, DrawerSection, ILevelClasses, MatchaDropListConnectedToEvent, MatchaDropListDroppedEvent, MatchaOptionParent, ModalComponent, PageEvent, PanelPlacement, PanelPosition, SliderOptions, TabChangeEvent };
|