@main-class/componentes 3.2.7 → 3.2.9
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/main-class-componentes-arquivo.mjs +1 -1
- package/fesm2022/main-class-componentes-arquivo.mjs.map +1 -1
- package/fesm2022/main-class-componentes-crud.mjs +1 -1
- package/fesm2022/main-class-componentes-crud.mjs.map +1 -1
- package/fesm2022/main-class-componentes-input.mjs +46 -29
- package/fesm2022/main-class-componentes-input.mjs.map +1 -1
- package/input/src/abstract-mat-form-field-control.d.ts +3 -3
- package/input/src/input-mask/input-mask.component.d.ts +7 -3
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ControlValueAccessor, FormGroupDirective, NgControl } from '@angular/forms';
|
|
2
2
|
import { Subject } from 'rxjs';
|
|
3
|
-
import { ElementRef, OnDestroy
|
|
3
|
+
import { ElementRef, OnDestroy } from '@angular/core';
|
|
4
4
|
import { ErrorStateMatcher } from '@angular/material/core';
|
|
5
5
|
import { MatFormFieldControl } from '@angular/material/form-field';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
|
-
export declare abstract class AbstractMatFormFieldControl<T> implements
|
|
7
|
+
export declare abstract class AbstractMatFormFieldControl<T> implements ControlValueAccessor, MatFormFieldControl<T | undefined>, OnDestroy {
|
|
8
8
|
readonly errorStateMatcher: ErrorStateMatcher;
|
|
9
9
|
readonly ngControl: NgControl | null;
|
|
10
10
|
readonly parentFormGroup: FormGroupDirective | null;
|
|
@@ -14,6 +14,7 @@ export declare abstract class AbstractMatFormFieldControl<T> implements OnInit,
|
|
|
14
14
|
private $disabled;
|
|
15
15
|
private $required;
|
|
16
16
|
focused: boolean;
|
|
17
|
+
constructor();
|
|
17
18
|
private _input?;
|
|
18
19
|
get input(): ElementRef | undefined;
|
|
19
20
|
set input(value: ElementRef | undefined);
|
|
@@ -29,7 +30,6 @@ export declare abstract class AbstractMatFormFieldControl<T> implements OnInit,
|
|
|
29
30
|
get userAriaDescribedBy(): undefined;
|
|
30
31
|
get disableAutomaticLabeling(): undefined;
|
|
31
32
|
onContainerClick(event: MouseEvent): void;
|
|
32
|
-
ngOnInit(): void;
|
|
33
33
|
get shouldLabelFloat(): any;
|
|
34
34
|
get placeholder(): string;
|
|
35
35
|
set placeholder(plh: string);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AfterViewInit } from '@angular/core';
|
|
1
|
+
import { AfterViewInit, EventEmitter } from '@angular/core';
|
|
2
2
|
import { AbstractMatFormFieldControl } from '../abstract-mat-form-field-control';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class InputMaskComponent extends AbstractMatFormFieldControl<string> implements AfterViewInit {
|
|
@@ -6,8 +6,10 @@ export declare class InputMaskComponent extends AbstractMatFormFieldControl<stri
|
|
|
6
6
|
* Example ###.###
|
|
7
7
|
* @private
|
|
8
8
|
*/
|
|
9
|
-
|
|
9
|
+
protected $mask?: string;
|
|
10
10
|
keepMask?: boolean;
|
|
11
|
+
onFocusin: EventEmitter<any>;
|
|
12
|
+
onFocusout: EventEmitter<any>;
|
|
11
13
|
get value(): string | undefined;
|
|
12
14
|
set value(value: string | undefined);
|
|
13
15
|
set mask(mask: string);
|
|
@@ -15,6 +17,8 @@ export declare class InputMaskComponent extends AbstractMatFormFieldControl<stri
|
|
|
15
17
|
protected applyMask(value: string | undefined): string;
|
|
16
18
|
protected removeMask<T extends string | undefined>(value: T): T;
|
|
17
19
|
writeValue(value: any): void;
|
|
20
|
+
focusin(): void;
|
|
21
|
+
focusout(): void;
|
|
18
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<InputMaskComponent, never>;
|
|
19
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<InputMaskComponent, "mcl-input[mask]", never, { "keepMask": { "alias": "keepMask"; "required": false; }; "mask": { "alias": "mask"; "required": false; }; }, {}, never, never, true, never>;
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InputMaskComponent, "mcl-input[mask]", never, { "keepMask": { "alias": "keepMask"; "required": false; }; "mask": { "alias": "mask"; "required": false; }; }, { "onFocusin": "focusin"; "onFocusout": "focusout"; }, never, never, true, never>;
|
|
20
24
|
}
|