matcha-components 20.90.0 → 20.91.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 +347 -65
- package/fesm2022/matcha-components.mjs.map +1 -1
- package/index.d.ts +48 -17
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -611,9 +611,10 @@ declare class MatchaFormFieldComponent implements AfterViewInit {
|
|
|
611
611
|
|
|
612
612
|
declare class MatchaLabelComponent implements AfterViewInit {
|
|
613
613
|
private elementRef;
|
|
614
|
+
private cdr;
|
|
614
615
|
color: 'red' | 'pink' | 'purple' | 'deep-purple' | 'indigo' | 'blue' | 'light-blue' | 'cyan' | 'teal' | 'green' | 'light-green' | 'lime' | 'yellow' | 'amber' | 'orange' | 'deep-orange' | 'primary' | 'accent' | 'warn' | 'brown' | 'grey' | 'blue-grey' | 'primary' | 'accent' | 'warn';
|
|
615
616
|
isRequired: boolean;
|
|
616
|
-
constructor(elementRef: ElementRef);
|
|
617
|
+
constructor(elementRef: ElementRef, cdr: ChangeDetectorRef);
|
|
617
618
|
ngAfterViewInit(): void;
|
|
618
619
|
private checkIfRequired;
|
|
619
620
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatchaLabelComponent, never>;
|
|
@@ -1897,6 +1898,7 @@ type MatchaMaskConfig = {
|
|
|
1897
1898
|
leadZero: boolean;
|
|
1898
1899
|
triggerOnMaskChange: boolean;
|
|
1899
1900
|
keepCharacterPositions: boolean;
|
|
1901
|
+
currencyMode: boolean;
|
|
1900
1902
|
inputTransformFn: InputTransformFn;
|
|
1901
1903
|
outputTransformFn: OutputTransformFn;
|
|
1902
1904
|
maskFilled: EventEmitter<void>;
|
|
@@ -1939,6 +1941,7 @@ declare class MatchaMaskApplierService {
|
|
|
1939
1941
|
keepCharacterPositions: MatchaMaskConfig['keepCharacterPositions'];
|
|
1940
1942
|
instantPrefix: MatchaMaskConfig['instantPrefix'];
|
|
1941
1943
|
triggerOnMaskChange: MatchaMaskConfig['triggerOnMaskChange'];
|
|
1944
|
+
currencyMode: MatchaMaskConfig['currencyMode'];
|
|
1942
1945
|
private _shift;
|
|
1943
1946
|
plusOnePosition: boolean;
|
|
1944
1947
|
maskExpression: string;
|
|
@@ -2000,7 +2003,7 @@ declare class MatchaMaskService extends MatchaMaskApplierService {
|
|
|
2000
2003
|
* @param cb Callback function.
|
|
2001
2004
|
* @returns The masked value.
|
|
2002
2005
|
*/
|
|
2003
|
-
applyMask(inputValue: string, maskExpression: string, position?: number, justPasted?: boolean, backspaced?: boolean, cb?: (...args: any[]) => any): string;
|
|
2006
|
+
applyMask(inputValue: string | object | boolean | null | undefined, maskExpression: string, position?: number, justPasted?: boolean, backspaced?: boolean, cb?: (...args: any[]) => any): string;
|
|
2004
2007
|
private _numberSkipedSymbols;
|
|
2005
2008
|
applyValueChanges(position: number, justPasted: boolean, backspaced: boolean, cb?: (...args: any[]) => any): void;
|
|
2006
2009
|
hideInput(inputValue: string, maskExpression: string): string;
|
|
@@ -2065,23 +2068,51 @@ declare class MatchaMaskCompatibleDirective implements ControlValueAccessor, OnC
|
|
|
2065
2068
|
get suffixAttr(): string | null;
|
|
2066
2069
|
thousandSeparator: MatchaMaskConfig['thousandSeparator'];
|
|
2067
2070
|
decimalMarker: MatchaMaskConfig['decimalMarker'];
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
+
private _dropSpecialCharacters;
|
|
2072
|
+
set dropSpecialCharacters(value: MatchaMaskConfig['dropSpecialCharacters'] | string | null);
|
|
2073
|
+
get dropSpecialCharacters(): MatchaMaskConfig['dropSpecialCharacters'] | null;
|
|
2074
|
+
private convertToBoolean;
|
|
2075
|
+
private _hiddenInput;
|
|
2076
|
+
set hiddenInput(value: boolean | string | null);
|
|
2077
|
+
get hiddenInput(): boolean | null;
|
|
2078
|
+
private _showMaskTyped;
|
|
2079
|
+
set showMaskTyped(value: boolean | string | null);
|
|
2080
|
+
get showMaskTyped(): boolean | null;
|
|
2071
2081
|
placeHolderCharacter: MatchaMaskConfig['placeHolderCharacter'] | null;
|
|
2072
2082
|
shownMaskExpression: MatchaMaskConfig['shownMaskExpression'] | null;
|
|
2073
|
-
|
|
2074
|
-
|
|
2083
|
+
private _clearIfNotMatch;
|
|
2084
|
+
set clearIfNotMatch(value: boolean | string | null);
|
|
2085
|
+
get clearIfNotMatch(): boolean | null;
|
|
2086
|
+
private _validation;
|
|
2087
|
+
set validation(value: boolean | string | null);
|
|
2088
|
+
get validation(): boolean | null;
|
|
2075
2089
|
separatorLimit: MatchaMaskConfig['separatorLimit'] | null;
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2090
|
+
private _allowNegativeNumbers;
|
|
2091
|
+
set allowNegativeNumbers(value: boolean | string | null);
|
|
2092
|
+
get allowNegativeNumbers(): boolean | null;
|
|
2093
|
+
private _leadZeroDateTime;
|
|
2094
|
+
set leadZeroDateTime(value: boolean | string | null);
|
|
2095
|
+
get leadZeroDateTime(): boolean | null;
|
|
2096
|
+
private _leadZero;
|
|
2097
|
+
set leadZero(value: boolean | string | null);
|
|
2098
|
+
get leadZero(): boolean | null;
|
|
2099
|
+
private _triggerOnMaskChange;
|
|
2100
|
+
set triggerOnMaskChange(value: boolean | string | null);
|
|
2101
|
+
get triggerOnMaskChange(): boolean | null;
|
|
2102
|
+
private _apm;
|
|
2103
|
+
set apm(value: boolean | string | null);
|
|
2104
|
+
get apm(): boolean | null;
|
|
2081
2105
|
inputTransformFn: MatchaMaskConfig['inputTransformFn'] | null;
|
|
2082
2106
|
outputTransformFn: MatchaMaskConfig['outputTransformFn'] | null;
|
|
2083
|
-
|
|
2084
|
-
|
|
2107
|
+
private _keepCharacterPositions;
|
|
2108
|
+
set keepCharacterPositions(value: boolean | string | null);
|
|
2109
|
+
get keepCharacterPositions(): boolean | null;
|
|
2110
|
+
private _instantPrefix;
|
|
2111
|
+
set instantPrefix(value: boolean | string | null);
|
|
2112
|
+
get instantPrefix(): boolean | null;
|
|
2113
|
+
private _currencyMode;
|
|
2114
|
+
set currencyMode(value: boolean | string | null);
|
|
2115
|
+
get currencyMode(): boolean | null;
|
|
2085
2116
|
maskFilled: EventEmitter<void>;
|
|
2086
2117
|
private _maskValue;
|
|
2087
2118
|
private _inputValue;
|
|
@@ -2100,20 +2131,20 @@ declare class MatchaMaskCompatibleDirective implements ControlValueAccessor, OnC
|
|
|
2100
2131
|
ngOnChanges(changes: SimpleChanges): void;
|
|
2101
2132
|
onPaste(): void;
|
|
2102
2133
|
onFocus(event: FocusEvent): void;
|
|
2103
|
-
onModelChange(value: string): void;
|
|
2134
|
+
onModelChange(value: string | number): void;
|
|
2104
2135
|
onInput(event: KeyboardEvent): void;
|
|
2105
2136
|
onCompositionStart(event: CompositionEvent): void;
|
|
2106
2137
|
onCompositionEnd(event: CompositionEvent): void;
|
|
2107
2138
|
onBlur(event: FocusEvent): void;
|
|
2108
2139
|
onClick(event: MouseEvent): void;
|
|
2109
2140
|
onKeyDown(event: KeyboardEvent): void;
|
|
2110
|
-
writeValue(value: string): void;
|
|
2141
|
+
writeValue(value: string | number | null | undefined): void;
|
|
2111
2142
|
registerOnChange(fn: (value: string) => void): void;
|
|
2112
2143
|
registerOnTouched(fn: () => void): void;
|
|
2113
2144
|
setDisabledState(isDisabled: boolean): void;
|
|
2114
2145
|
validate(control: FormControl): ValidationErrors | null;
|
|
2115
2146
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatchaMaskCompatibleDirective, never>;
|
|
2116
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MatchaMaskCompatibleDirective, "input[matchaMask], textarea[matchaMask]", ["matchaMask"], { "mask": { "alias": "matchaMask"; "required": false; }; "specialCharacters": { "alias": "specialCharacters"; "required": false; }; "patterns": { "alias": "patterns"; "required": false; }; "prefix": { "alias": "prefix"; "required": false; }; "suffix": { "alias": "suffix"; "required": false; }; "thousandSeparator": { "alias": "thousandSeparator"; "required": false; }; "decimalMarker": { "alias": "decimalMarker"; "required": false; }; "dropSpecialCharacters": { "alias": "dropSpecialCharacters"; "required": false; }; "hiddenInput": { "alias": "hiddenInput"; "required": false; }; "showMaskTyped": { "alias": "showMaskTyped"; "required": false; }; "placeHolderCharacter": { "alias": "placeHolderCharacter"; "required": false; }; "shownMaskExpression": { "alias": "shownMaskExpression"; "required": false; }; "clearIfNotMatch": { "alias": "clearIfNotMatch"; "required": false; }; "validation": { "alias": "validation"; "required": false; }; "separatorLimit": { "alias": "separatorLimit"; "required": false; }; "allowNegativeNumbers": { "alias": "allowNegativeNumbers"; "required": false; }; "leadZeroDateTime": { "alias": "leadZeroDateTime"; "required": false; }; "leadZero": { "alias": "leadZero"; "required": false; }; "triggerOnMaskChange": { "alias": "triggerOnMaskChange"; "required": false; }; "apm": { "alias": "apm"; "required": false; }; "inputTransformFn": { "alias": "inputTransformFn"; "required": false; }; "outputTransformFn": { "alias": "outputTransformFn"; "required": false; }; "keepCharacterPositions": { "alias": "keepCharacterPositions"; "required": false; }; "instantPrefix": { "alias": "instantPrefix"; "required": false; }; }, { "maskFilled": "maskFilled"; }, never, never, false, never>;
|
|
2147
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MatchaMaskCompatibleDirective, "input[matchaMask], textarea[matchaMask]", ["matchaMask"], { "mask": { "alias": "matchaMask"; "required": false; }; "specialCharacters": { "alias": "specialCharacters"; "required": false; }; "patterns": { "alias": "patterns"; "required": false; }; "prefix": { "alias": "prefix"; "required": false; }; "suffix": { "alias": "suffix"; "required": false; }; "thousandSeparator": { "alias": "thousandSeparator"; "required": false; }; "decimalMarker": { "alias": "decimalMarker"; "required": false; }; "dropSpecialCharacters": { "alias": "dropSpecialCharacters"; "required": false; }; "hiddenInput": { "alias": "hiddenInput"; "required": false; }; "showMaskTyped": { "alias": "showMaskTyped"; "required": false; }; "placeHolderCharacter": { "alias": "placeHolderCharacter"; "required": false; }; "shownMaskExpression": { "alias": "shownMaskExpression"; "required": false; }; "clearIfNotMatch": { "alias": "clearIfNotMatch"; "required": false; }; "validation": { "alias": "validation"; "required": false; }; "separatorLimit": { "alias": "separatorLimit"; "required": false; }; "allowNegativeNumbers": { "alias": "allowNegativeNumbers"; "required": false; }; "leadZeroDateTime": { "alias": "leadZeroDateTime"; "required": false; }; "leadZero": { "alias": "leadZero"; "required": false; }; "triggerOnMaskChange": { "alias": "triggerOnMaskChange"; "required": false; }; "apm": { "alias": "apm"; "required": false; }; "inputTransformFn": { "alias": "inputTransformFn"; "required": false; }; "outputTransformFn": { "alias": "outputTransformFn"; "required": false; }; "keepCharacterPositions": { "alias": "keepCharacterPositions"; "required": false; }; "instantPrefix": { "alias": "instantPrefix"; "required": false; }; "currencyMode": { "alias": "currencyMode"; "required": false; }; }, { "maskFilled": "maskFilled"; }, never, never, false, never>;
|
|
2117
2148
|
}
|
|
2118
2149
|
|
|
2119
2150
|
declare const compatibleOptions: MatchaMaskOptions;
|