@main-class/componentes 3.2.3 → 3.2.5

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.
@@ -1,31 +1,35 @@
1
- import { ControlValueAccessor, FormGroupDirective, NgControl, NgForm } from '@angular/forms';
1
+ import { ControlValueAccessor, FormGroupDirective, NgControl } from '@angular/forms';
2
2
  import { Subject } from 'rxjs';
3
- import { ElementRef, OnDestroy } from '@angular/core';
3
+ import { ElementRef, OnDestroy, OnInit } 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 ControlValueAccessor, MatFormFieldControl<T | undefined>, OnDestroy {
8
- private errorStateMatcher;
9
- ngControl: NgControl;
10
- private parentForm;
11
- private parentFormGroup;
7
+ export declare abstract class AbstractMatFormFieldControl<T> implements OnInit, ControlValueAccessor, MatFormFieldControl<T | undefined>, OnDestroy {
8
+ readonly errorStateMatcher: ErrorStateMatcher;
9
+ readonly ngControl: NgControl | null;
10
+ readonly parentFormGroup: FormGroupDirective | null;
12
11
  static nextId: number;
13
12
  private $value?;
14
13
  private $placeholder;
15
14
  private $disabled;
16
15
  private $required;
17
16
  focused: boolean;
18
- input: ElementRef;
17
+ private _input;
18
+ get input(): ElementRef;
19
+ set input(value: ElementRef);
19
20
  stateChanges: Subject<void>;
20
21
  id: string;
21
22
  describedBy: string;
22
- constructor(errorStateMatcher: ErrorStateMatcher, ngControl: NgControl, parentForm: NgForm, parentFormGroup: FormGroupDirective);
23
23
  protected onChange: (val: any) => void;
24
24
  protected onTouched: () => void;
25
25
  get value(): T | undefined;
26
26
  set value(value: T | undefined);
27
27
  get empty(): boolean;
28
+ get autofilled(): boolean;
29
+ get userAriaDescribedBy(): undefined;
30
+ get disableAutomaticLabeling(): undefined;
28
31
  onContainerClick(event: MouseEvent): void;
32
+ ngOnInit(): void;
29
33
  get shouldLabelFloat(): any;
30
34
  get placeholder(): string;
31
35
  set placeholder(plh: string);
@@ -1,14 +1,13 @@
1
1
  import { AfterContentInit } from '@angular/core';
2
- import { Observable, Subscription } from "rxjs";
3
- import { FormControl, FormGroupDirective, NgControl, NgForm } from "@angular/forms";
4
- import { MatAutocompleteSelectedEvent } from "@angular/material/autocomplete";
5
- import { ErrorStateMatcher } from "@angular/material/core";
2
+ import { Observable, Subscription } from 'rxjs';
3
+ import { FormControl } from '@angular/forms';
4
+ import { MatAutocompleteSelectedEvent } from '@angular/material/autocomplete';
6
5
  import { AbstractMatFormFieldControl } from './abstract-mat-form-field-control';
7
6
  import { SelectOption } from './select-option/select-option';
8
7
  import { SelectOptionProvider } from './select-option/select-option-provider';
9
8
  import * as i0 from "@angular/core";
10
9
  export declare abstract class AbstractMatFormFieldSelectControl<T> extends AbstractMatFormFieldControl<T> implements AfterContentInit {
11
- private optionProvider;
10
+ protected readonly optionProvider: SelectOptionProvider<any> | null;
12
11
  protected optionsSubscription?: Subscription;
13
12
  private $args;
14
13
  private wvt;
@@ -17,7 +16,6 @@ export declare abstract class AbstractMatFormFieldSelectControl<T> extends Abstr
17
16
  trackBy: (val: any) => any;
18
17
  private options;
19
18
  private defaultOptionProvider;
20
- constructor(errorStateMatcher: ErrorStateMatcher, ngControl: NgControl, parentForm: NgForm, parentFormGroup: FormGroupDirective, optionProvider: SelectOptionProvider);
21
19
  doTrackBy(val: any): any;
22
20
  set args(args: any);
23
21
  ngAfterContentInit(): void;
@@ -25,6 +23,6 @@ export declare abstract class AbstractMatFormFieldSelectControl<T> extends Abstr
25
23
  seleciona(event: MatAutocompleteSelectedEvent): void;
26
24
  doSeleciona(value: any | undefined): void;
27
25
  writeValue(value: any): void;
28
- static ɵfac: i0.ɵɵFactoryDeclaration<AbstractMatFormFieldSelectControl<any>, [null, { optional: true; self: true; }, { optional: true; }, { optional: true; }, { optional: true; self: true; }]>;
26
+ static ɵfac: i0.ɵɵFactoryDeclaration<AbstractMatFormFieldSelectControl<any>, never>;
29
27
  static ɵcmp: i0.ɵɵComponentDeclaration<AbstractMatFormFieldSelectControl<any>, "ng-component", never, { "trackBy": { "alias": "trackBy"; "required": false; }; "args": { "alias": "args"; "required": false; }; }, {}, ["options"], never, true, never>;
30
28
  }
@@ -1,19 +1,20 @@
1
- import { ErrorStateMatcher } from '@angular/material/core';
2
- import { FormGroupDirective, NgControl, NgForm } from '@angular/forms';
3
1
  import { AbstractMatFormFieldControl } from '../abstract-mat-form-field-control';
4
- import { DatetimeAdapter, MatDatetimeFormats, MatDatetimepickerComponent } from '@mat-datetimepicker/core';
2
+ import { MatDatetimepickerComponent } from '@mat-datetimepicker/core';
5
3
  import { Moment } from 'moment';
4
+ import { InputMaskComponent } from '../input-mask/input-mask.component';
6
5
  import * as i0 from "@angular/core";
7
6
  export declare class InputDatetimeComponent extends AbstractMatFormFieldControl<Date | Moment | undefined> {
8
- private adapter;
9
- private formats;
7
+ private readonly formats;
8
+ private readonly adapter;
10
9
  type: 'datetime' | 'date' | 'time';
11
10
  readonly: any;
12
11
  name?: string;
13
12
  picker: MatDatetimepickerComponent<Date>;
13
+ inputMask: InputMaskComponent;
14
14
  private innerValue?;
15
15
  private $maskedValue?;
16
- constructor(errorStateMatcher: ErrorStateMatcher, ngControl: NgControl, parentForm: NgForm, parentFormGroup: FormGroupDirective, adapter: DatetimeAdapter<Moment>, formats: MatDatetimeFormats);
16
+ get input(): import("@angular/core").ElementRef<any>;
17
+ set input(input: import("@angular/core").ElementRef<any>);
17
18
  get empty(): boolean;
18
19
  get maskedValue(): string | undefined;
19
20
  set maskedValue(maskedValue: string);
@@ -22,6 +23,6 @@ export declare class InputDatetimeComponent extends AbstractMatFormFieldControl<
22
23
  get value(): Date | Moment | undefined;
23
24
  set value(value: Date | Moment | undefined);
24
25
  writeValue(value: Date | undefined): void;
25
- static ɵfac: i0.ɵɵFactoryDeclaration<InputDatetimeComponent, [null, { optional: true; self: true; }, { optional: true; }, { optional: true; }, null, null]>;
26
+ static ɵfac: i0.ɵɵFactoryDeclaration<InputDatetimeComponent, never>;
26
27
  static ɵcmp: i0.ɵɵComponentDeclaration<InputDatetimeComponent, "mcl-input-datetime", never, { "type": { "alias": "type"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "name": { "alias": "name"; "required": false; }; }, {}, never, never, true, never>;
27
28
  }
@@ -1,11 +1,7 @@
1
1
  import { InputMaskComponent } from './input-mask.component';
2
- import { FormGroupDirective, NgControl, NgForm } from '@angular/forms';
3
- import { ErrorStateMatcher } from '@angular/material/core';
4
- import { SelectOptionProvider } from '../select-option/select-option-provider';
5
2
  import * as i0 from "@angular/core";
6
3
  export declare class InputCepComponent extends InputMaskComponent {
7
- private optionProvider;
8
- constructor(errorStateMatcher: ErrorStateMatcher, ngControl: NgControl, parentForm: NgForm, parentFormGroup: FormGroupDirective, optionProvider: SelectOptionProvider);
9
- static ɵfac: i0.ɵɵFactoryDeclaration<InputCepComponent, [null, { optional: true; self: true; }, { optional: true; }, { optional: true; }, { optional: true; self: true; }]>;
4
+ constructor();
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<InputCepComponent, never>;
10
6
  static ɵcmp: i0.ɵɵComponentDeclaration<InputCepComponent, "mcl-input[cep]", never, {}, {}, never, never, true, never>;
11
7
  }
@@ -1,11 +1,7 @@
1
1
  import { InputMaskComponent } from './input-mask.component';
2
- import { FormGroupDirective, NgControl, NgForm } from '@angular/forms';
3
- import { ErrorStateMatcher } from '@angular/material/core';
4
- import { SelectOptionProvider } from '../select-option/select-option-provider';
5
2
  import * as i0 from "@angular/core";
6
3
  export declare class InputCnpjComponent extends InputMaskComponent {
7
- private optionProvider;
8
- constructor(errorStateMatcher: ErrorStateMatcher, ngControl: NgControl, parentForm: NgForm, parentFormGroup: FormGroupDirective, optionProvider: SelectOptionProvider);
9
- static ɵfac: i0.ɵɵFactoryDeclaration<InputCnpjComponent, [null, { optional: true; self: true; }, { optional: true; }, { optional: true; }, { optional: true; self: true; }]>;
4
+ constructor();
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<InputCnpjComponent, never>;
10
6
  static ɵcmp: i0.ɵɵComponentDeclaration<InputCnpjComponent, "mcl-input[cnpj]", never, {}, {}, never, never, true, never>;
11
7
  }
@@ -1,11 +1,7 @@
1
1
  import { InputMaskComponent } from './input-mask.component';
2
- import { FormGroupDirective, NgControl, NgForm } from '@angular/forms';
3
- import { ErrorStateMatcher } from '@angular/material/core';
4
- import { SelectOptionProvider } from '../select-option/select-option-provider';
5
2
  import * as i0 from "@angular/core";
6
3
  export declare class InputCpfComponent extends InputMaskComponent {
7
- private optionProvider;
8
- constructor(errorStateMatcher: ErrorStateMatcher, ngControl: NgControl, parentForm: NgForm, parentFormGroup: FormGroupDirective, optionProvider: SelectOptionProvider);
9
- static ɵfac: i0.ɵɵFactoryDeclaration<InputCpfComponent, [null, { optional: true; self: true; }, { optional: true; }, { optional: true; }, { optional: true; self: true; }]>;
4
+ constructor();
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<InputCpfComponent, never>;
10
6
  static ɵcmp: i0.ɵɵComponentDeclaration<InputCpfComponent, "mcl-input[cpf]", never, {}, {}, never, never, true, never>;
11
7
  }
@@ -1,6 +1,7 @@
1
+ import { AfterViewInit } from '@angular/core';
1
2
  import { AbstractMatFormFieldControl } from '../abstract-mat-form-field-control';
2
3
  import * as i0 from "@angular/core";
3
- export declare class InputMaskComponent extends AbstractMatFormFieldControl<string> {
4
+ export declare class InputMaskComponent extends AbstractMatFormFieldControl<string> implements AfterViewInit {
4
5
  /**
5
6
  * Example ###.###
6
7
  * @private
@@ -10,6 +11,7 @@ export declare class InputMaskComponent extends AbstractMatFormFieldControl<stri
10
11
  get value(): string | undefined;
11
12
  set value(value: string | undefined);
12
13
  set mask(mask: string);
14
+ ngAfterViewInit(): void;
13
15
  protected applyMask(value: string | undefined): string;
14
16
  protected removeMask<T extends string | undefined>(value: T): T;
15
17
  writeValue(value: any): void;
@@ -1,10 +1,7 @@
1
1
  import { InputMaskComponent } from './input-mask.component';
2
- import { FormGroupDirective, NgControl, NgForm } from '@angular/forms';
3
- import { ErrorStateMatcher } from '@angular/material/core';
4
2
  import * as i0 from "@angular/core";
5
3
  export declare class InputPhoneComponent extends InputMaskComponent {
6
- constructor(errorStateMatcher: ErrorStateMatcher, ngControl: NgControl, parentForm: NgForm, parentFormGroup: FormGroupDirective);
7
4
  protected applyMask(value: string | undefined): string;
8
- static ɵfac: i0.ɵɵFactoryDeclaration<InputPhoneComponent, [null, { optional: true; self: true; }, { optional: true; }, { optional: true; }]>;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<InputPhoneComponent, never>;
9
6
  static ɵcmp: i0.ɵɵComponentDeclaration<InputPhoneComponent, "mcl-input[phone]", never, {}, {}, never, never, true, never>;
10
7
  }
@@ -1,6 +1,4 @@
1
1
  import { EventEmitter } from '@angular/core';
2
- import { FormGroupDirective, NgControl, NgForm } from '@angular/forms';
3
- import { ErrorStateMatcher } from '@angular/material/core';
4
2
  import { AbstractMatFormFieldControl } from '../abstract-mat-form-field-control';
5
3
  import { LacMatTelInputComponent } from 'lac-mat-tel-input';
6
4
  import * as i0 from "@angular/core";
@@ -11,7 +9,6 @@ export declare class InputTelefoneInternacionalComponent extends AbstractMatForm
11
9
  alwaysShowCountry: boolean;
12
10
  telInput?: LacMatTelInputComponent;
13
11
  private $innerValue?;
14
- constructor(errorStateMatcher: ErrorStateMatcher, ngControl: NgControl, parentForm: NgForm, parentFormGroup: FormGroupDirective);
15
12
  get value(): string | undefined;
16
13
  set value(value: string | undefined);
17
14
  get shouldLabelFloat(): any;
@@ -19,6 +16,6 @@ export declare class InputTelefoneInternacionalComponent extends AbstractMatForm
19
16
  onFocus(): void;
20
17
  onBlur(): void;
21
18
  writeValue(value: string): void;
22
- static ɵfac: i0.ɵɵFactoryDeclaration<InputTelefoneInternacionalComponent, [null, { optional: true; self: true; }, { optional: true; }, { optional: true; }]>;
19
+ static ɵfac: i0.ɵɵFactoryDeclaration<InputTelefoneInternacionalComponent, never>;
23
20
  static ɵcmp: i0.ɵɵComponentDeclaration<InputTelefoneInternacionalComponent, "mcl-input-telefone-intl", never, { "preferredContries": { "alias": "preferredContries"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "alwaysShowCountry": { "alias": "alwaysShowCountry"; "required": false; }; }, { "blur": "blur"; }, never, never, true, never>;
24
21
  }
@@ -1,14 +1,10 @@
1
1
  import { AfterContentInit, EventEmitter } from '@angular/core';
2
- import { FormGroupDirective, NgControl, NgForm } from "@angular/forms";
3
- import { ErrorStateMatcher } from "@angular/material/core";
4
- import { SelectOptionProvider } from '../select-option/select-option-provider';
5
2
  import { AbstractMatFormFieldSelectControl } from '../abstract-mat-form-field-select-control';
6
3
  import * as i0 from "@angular/core";
7
4
  export declare class SelectAutocompleteComponent extends AbstractMatFormFieldSelectControl<any> implements AfterContentInit {
8
5
  readonly: any;
9
6
  select: EventEmitter<any>;
10
7
  blur: EventEmitter<any>;
11
- constructor(errorStateMatcher: ErrorStateMatcher, ngControl: NgControl, parentForm: NgForm, parentFormGroup: FormGroupDirective, optionProvider: SelectOptionProvider);
12
8
  get shouldLabelFloat(): any;
13
9
  get empty(): boolean;
14
10
  onFocus(): void;
@@ -16,6 +12,6 @@ export declare class SelectAutocompleteComponent extends AbstractMatFormFieldSel
16
12
  didTouch(): void;
17
13
  ngOnDestroy(): void;
18
14
  setDisabledState(isDisabled: boolean): void;
19
- static ɵfac: i0.ɵɵFactoryDeclaration<SelectAutocompleteComponent, [null, { optional: true; self: true; }, { optional: true; }, { optional: true; }, { optional: true; self: true; }]>;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<SelectAutocompleteComponent, never>;
20
16
  static ɵcmp: i0.ɵɵComponentDeclaration<SelectAutocompleteComponent, "mcl-select-autocomplete", never, { "readonly": { "alias": "readonly"; "required": false; }; }, { "select": "select"; "blur": "blur"; }, never, never, true, never>;
21
17
  }
@@ -1,15 +1,11 @@
1
1
  import { MatAutocompleteSelectedEvent } from '@angular/material/autocomplete';
2
2
  import { AbstractMatFormFieldSelectControl } from '../abstract-mat-form-field-select-control';
3
3
  import { MatChipInputEvent } from '@angular/material/chips';
4
- import { FormGroupDirective, NgControl, NgForm } from '@angular/forms';
5
- import { ErrorStateMatcher } from '@angular/material/core';
6
- import { SelectOptionProvider } from '../select-option/select-option-provider';
7
4
  import * as i0 from "@angular/core";
8
5
  export declare class SelectChipsComponent extends AbstractMatFormFieldSelectControl<any> {
9
- constructor(errorStateMatcher: ErrorStateMatcher, ngControl: NgControl, parentForm: NgForm, parentFormGroup: FormGroupDirective, optionProvider: SelectOptionProvider);
10
6
  add(event: MatChipInputEvent): void;
11
7
  remove(item: string): void;
12
8
  selected(event: MatAutocompleteSelectedEvent): void;
13
- static ɵfac: i0.ɵɵFactoryDeclaration<SelectChipsComponent, [null, { optional: true; self: true; }, { optional: true; }, { optional: true; }, { optional: true; self: true; }]>;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<SelectChipsComponent, never>;
14
10
  static ɵcmp: i0.ɵɵComponentDeclaration<SelectChipsComponent, "mcl-select-chips", never, {}, {}, never, never, true, never>;
15
11
  }
@@ -1,14 +1,11 @@
1
1
  import { AbstractMatFormFieldSelectControl } from '../abstract-mat-form-field-select-control';
2
- import { ErrorStateMatcher } from '@angular/material/core';
3
- import { FormGroupDirective, NgControl, NgForm } from '@angular/forms';
4
- import { SelectOptionProvider } from '../select-option/select-option-provider';
5
2
  import * as i0 from "@angular/core";
6
3
  export declare class SelectManyCheckboxComponent extends AbstractMatFormFieldSelectControl<any> {
7
4
  layout: 'vertical' | 'grid' | 'horizontal';
8
5
  layoutColumns: number;
9
- constructor(errorStateMatcher: ErrorStateMatcher, ngControl: NgControl, parentForm: NgForm, parentFormGroup: FormGroupDirective, optionProvider: SelectOptionProvider);
6
+ get shouldLabelFloat(): any;
10
7
  selected(value: any): boolean;
11
8
  change(value: any, checked: boolean): void;
12
- static ɵfac: i0.ɵɵFactoryDeclaration<SelectManyCheckboxComponent, [null, { optional: true; self: true; }, { optional: true; }, { optional: true; }, { optional: true; self: true; }]>;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<SelectManyCheckboxComponent, never>;
13
10
  static ɵcmp: i0.ɵɵComponentDeclaration<SelectManyCheckboxComponent, "mcl-select-many-checkbox", never, { "layout": { "alias": "layout"; "required": false; }; "layoutColumns": { "alias": "layoutColumns"; "required": false; }; }, {}, never, never, true, never>;
14
11
  }
@@ -1,12 +1,8 @@
1
1
  import { AbstractMatFormFieldSelectControl } from '../abstract-mat-form-field-select-control';
2
- import { FormGroupDirective, NgControl, NgForm } from '@angular/forms';
3
- import { ErrorStateMatcher } from '@angular/material/core';
4
- import { SelectOptionProvider } from '../select-option/select-option-provider';
5
2
  import * as i0 from "@angular/core";
6
3
  export declare class SelectRadioComponent extends AbstractMatFormFieldSelectControl<any> {
7
4
  layout: 'vertical' | 'horizontal';
8
- constructor(errorStateMatcher: ErrorStateMatcher, ngControl: NgControl, parentForm: NgForm, parentFormGroup: FormGroupDirective, optionProvider: SelectOptionProvider);
9
5
  get shouldLabelFloat(): any;
10
- static ɵfac: i0.ɵɵFactoryDeclaration<SelectRadioComponent, [null, { optional: true; self: true; }, { optional: true; }, { optional: true; }, { optional: true; self: true; }]>;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<SelectRadioComponent, never>;
11
7
  static ɵcmp: i0.ɵɵComponentDeclaration<SelectRadioComponent, "mcl-select-radio", never, { "layout": { "alias": "layout"; "required": false; }; }, {}, never, never, true, never>;
12
8
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@main-class/componentes",
3
- "version": "3.2.3",
3
+ "version": "3.2.5",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^19.2.0",
6
6
  "@angular/core": "^19.2.0"
@@ -31,14 +31,14 @@
31
31
  "types": "./crud/index.d.ts",
32
32
  "default": "./fesm2022/main-class-componentes-crud.mjs"
33
33
  },
34
- "./dialog": {
35
- "types": "./dialog/index.d.ts",
36
- "default": "./fesm2022/main-class-componentes-dialog.mjs"
37
- },
38
34
  "./form": {
39
35
  "types": "./form/index.d.ts",
40
36
  "default": "./fesm2022/main-class-componentes-form.mjs"
41
37
  },
38
+ "./dialog": {
39
+ "types": "./dialog/index.d.ts",
40
+ "default": "./fesm2022/main-class-componentes-dialog.mjs"
41
+ },
42
42
  "./input": {
43
43
  "types": "./input/index.d.ts",
44
44
  "default": "./fesm2022/main-class-componentes-input.mjs"