@main-class/componentes 3.11.1 → 4.0.0-next.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.
Files changed (136) hide show
  1. package/README.md +17 -0
  2. package/fesm2022/main-class-componentes-arquivo.mjs +851 -369
  3. package/fesm2022/main-class-componentes-arquivo.mjs.map +1 -1
  4. package/fesm2022/main-class-componentes-core.mjs +288 -240
  5. package/fesm2022/main-class-componentes-core.mjs.map +1 -1
  6. package/fesm2022/main-class-componentes-crud.mjs +1004 -546
  7. package/fesm2022/main-class-componentes-crud.mjs.map +1 -1
  8. package/fesm2022/main-class-componentes-dialog.mjs +758 -385
  9. package/fesm2022/main-class-componentes-dialog.mjs.map +1 -1
  10. package/fesm2022/main-class-componentes-form.mjs +299 -196
  11. package/fesm2022/main-class-componentes-form.mjs.map +1 -1
  12. package/fesm2022/main-class-componentes-input.mjs +4143 -2141
  13. package/fesm2022/main-class-componentes-input.mjs.map +1 -1
  14. package/fesm2022/main-class-componentes-loader.mjs +262 -212
  15. package/fesm2022/main-class-componentes-loader.mjs.map +1 -1
  16. package/fesm2022/main-class-componentes-misc.mjs +508 -354
  17. package/fesm2022/main-class-componentes-misc.mjs.map +1 -1
  18. package/fesm2022/main-class-componentes-pipe.mjs +39 -26
  19. package/fesm2022/main-class-componentes-pipe.mjs.map +1 -1
  20. package/fesm2022/main-class-componentes-table.mjs +1331 -624
  21. package/fesm2022/main-class-componentes-table.mjs.map +1 -1
  22. package/fesm2022/main-class-componentes.mjs +3 -11
  23. package/fesm2022/main-class-componentes.mjs.map +1 -1
  24. package/package.json +32 -16
  25. package/types/main-class-componentes-arquivo.d.ts +190 -0
  26. package/types/main-class-componentes-core.d.ts +99 -0
  27. package/types/main-class-componentes-crud.d.ts +172 -0
  28. package/types/main-class-componentes-dialog.d.ts +125 -0
  29. package/types/main-class-componentes-form.d.ts +70 -0
  30. package/types/main-class-componentes-input.d.ts +687 -0
  31. package/types/main-class-componentes-loader.d.ts +69 -0
  32. package/types/main-class-componentes-misc.d.ts +87 -0
  33. package/types/main-class-componentes-pipe.d.ts +10 -0
  34. package/types/main-class-componentes-table.d.ts +265 -0
  35. package/types/main-class-componentes.d.ts +4 -0
  36. package/arquivo/index.d.ts +0 -5
  37. package/arquivo/src/arquivo-manager.service.d.ts +0 -13
  38. package/arquivo/src/download-arquivo.directive.d.ts +0 -12
  39. package/arquivo/src/imagem.directive.d.ts +0 -21
  40. package/arquivo/src/preview-arquivo/dialog-preview-arquivo/dialog-preview-arquivo.component.d.ts +0 -23
  41. package/arquivo/src/preview-arquivo/preview-arquivo.component.d.ts +0 -27
  42. package/core/index.d.ts +0 -4
  43. package/core/src/criptografia/criptografia.service.d.ts +0 -6
  44. package/core/src/mensageria/mensageria.service.d.ts +0 -17
  45. package/core/src/mobile/mobile.service.d.ts +0 -15
  46. package/core/src/validator/valida-modulo11.service.d.ts +0 -55
  47. package/crud/index.d.ts +0 -7
  48. package/crud/src/abstract-consulta-paginada-component.d.ts +0 -24
  49. package/crud/src/abstract-edicao-component.d.ts +0 -19
  50. package/crud/src/abstract-edicao-modal-component.d.ts +0 -19
  51. package/crud/src/query/query-field/query-field.component.d.ts +0 -40
  52. package/crud/src/query/query-form-field/query-form-field.component.d.ts +0 -12
  53. package/crud/src/query/query-form.component.d.ts +0 -28
  54. package/crud/src/query/query-modal-form/query-modal-form.component.d.ts +0 -13
  55. package/dialog/index.d.ts +0 -10
  56. package/dialog/src/dialog-confirmacao/dialog-confirmacao.component.d.ts +0 -23
  57. package/dialog/src/dialog-iframe/dialog-iframe.component.d.ts +0 -21
  58. package/dialog/src/dialog-sidebar/modal-template/modal-body.directive.d.ts +0 -9
  59. package/dialog/src/dialog-sidebar/modal-template/modal-close.directive.d.ts +0 -9
  60. package/dialog/src/dialog-sidebar/modal-template/modal-footer.directive.d.ts +0 -6
  61. package/dialog/src/dialog-sidebar/modal-template/modal-header.directive.d.ts +0 -6
  62. package/dialog/src/dialog-sidebar/modal-template/modal-template.component.d.ts +0 -12
  63. package/dialog/src/dialog-sidebar/modal.component.d.ts +0 -8
  64. package/dialog/src/dialog-sidebar/sidebar-modal-ref.d.ts +0 -21
  65. package/dialog/src/dialog.service.d.ts +0 -26
  66. package/form/index.d.ts +0 -3
  67. package/form/src/form.component.d.ts +0 -24
  68. package/form/src/mensagens-erro/mensagens-erro.component.d.ts +0 -17
  69. package/form/src/single-click.directive.d.ts +0 -13
  70. package/index.d.ts +0 -5
  71. package/input/index.d.ts +0 -26
  72. package/input/src/abstract-control-value-accessor.d.ts +0 -18
  73. package/input/src/abstract-mat-form-field-control.d.ts +0 -42
  74. package/input/src/abstract-mat-form-field-select-control.d.ts +0 -31
  75. package/input/src/input-currency/input-currency.component.d.ts +0 -9
  76. package/input/src/input-datetime/input-datetime.component.d.ts +0 -32
  77. package/input/src/input-fileupload/input-fileupload-validator.directive.d.ts +0 -8
  78. package/input/src/input-fileupload/input-fileupload.component.d.ts +0 -70
  79. package/input/src/input-mask/documento-validators.d.ts +0 -7
  80. package/input/src/input-mask/input-cep.component.d.ts +0 -7
  81. package/input/src/input-mask/input-cnpj.component.d.ts +0 -7
  82. package/input/src/input-mask/input-cpf-cnpj.component.d.ts +0 -7
  83. package/input/src/input-mask/input-cpf.component.d.ts +0 -7
  84. package/input/src/input-mask/input-mask-validator.directive.d.ts +0 -16
  85. package/input/src/input-mask/input-mask.component.d.ts +0 -24
  86. package/input/src/input-mask/input-phone.component.d.ts +0 -7
  87. package/input/src/input-mask/mask-functions.d.ts +0 -2
  88. package/input/src/input-telefone-internacional/input-telefone-internacional-validator.directive.d.ts +0 -8
  89. package/input/src/input-telefone-internacional/input-telefone-internacional.component.d.ts +0 -19
  90. package/input/src/option-checkbox/all-option-checkbox.component.d.ts +0 -18
  91. package/input/src/option-checkbox/node-pool.d.ts +0 -23
  92. package/input/src/option-checkbox/option-checkbox-group.component.d.ts +0 -25
  93. package/input/src/option-checkbox/option-checkbox.component.d.ts +0 -23
  94. package/input/src/option-checkbox/option-checkbox.service.d.ts +0 -16
  95. package/input/src/option-checkbox/option-node.d.ts +0 -13
  96. package/input/src/select-autocomplete/select-autocomplete.component.d.ts +0 -15
  97. package/input/src/select-chips/select-chips.component.d.ts +0 -12
  98. package/input/src/select-many-checkbox/select-many-checkbox.component.d.ts +0 -12
  99. package/input/src/select-option/delegate-option-provider.directive.d.ts +0 -13
  100. package/input/src/select-option/select-option-provider.d.ts +0 -10
  101. package/input/src/select-option/select-option.component.d.ts +0 -10
  102. package/input/src/select-option/select-option.d.ts +0 -4
  103. package/input/src/select-radio/select-radio.component.d.ts +0 -9
  104. package/loader/index.d.ts +0 -2
  105. package/loader/src/loader.component.d.ts +0 -25
  106. package/loader/src/loader.service.d.ts +0 -20
  107. package/misc/index.d.ts +0 -12
  108. package/misc/src/cnpj/cnpj.directive.d.ts +0 -12
  109. package/misc/src/cnpj/cnpjs.pipe.d.ts +0 -7
  110. package/misc/src/cpf/cpf.directive.d.ts +0 -12
  111. package/misc/src/cpf/cpf.pipe.d.ts +0 -7
  112. package/misc/src/cpf-cnpj/cpf-cnpj.directive.d.ts +0 -12
  113. package/misc/src/cpf-cnpj/cpf-cnpj.pipe.d.ts +0 -7
  114. package/misc/src/mask/mask.pipe.d.ts +0 -8
  115. package/misc/src/monetario/monetario-mask.d.ts +0 -1
  116. package/misc/src/monetario/monetario.pipe.d.ts +0 -7
  117. package/misc/src/porcentagem/porcentagem-mask.d.ts +0 -1
  118. package/misc/src/porcentagem/porcentagem.pipe.d.ts +0 -7
  119. package/misc/src/telefone/telefone.pipe.d.ts +0 -7
  120. package/misc/src/unsafe-inner-html/unsafe-inner-html.directive.d.ts +0 -10
  121. package/pipe/index.d.ts +0 -1
  122. package/pipe/src/nome-resumido.pipe.d.ts +0 -7
  123. package/public-api.d.ts +0 -2
  124. package/table/index.d.ts +0 -10
  125. package/table/src/column/column-cell.directive.d.ts +0 -8
  126. package/table/src/column/column-footer.directive.d.ts +0 -8
  127. package/table/src/column/column-header.directive.d.ts +0 -8
  128. package/table/src/column/column.directive.d.ts +0 -16
  129. package/table/src/numeric-paginator/numeric-paginator.component.d.ts +0 -26
  130. package/table/src/paginated-table/paginated-table.component.d.ts +0 -58
  131. package/table/src/paginator-i18n.d.ts +0 -8
  132. package/table/src/table/table.component.d.ts +0 -41
  133. package/table/src/td/td.component.d.ts +0 -8
  134. package/table/src/th/th.component.d.ts +0 -8
  135. package/table/src/undefined-paginator/undefined-paginator.component.d.ts +0 -25
  136. package/table/src/virtual-paginated-table/virtual-paginated-table.component.d.ts +0 -28
@@ -1,24 +0,0 @@
1
- import { AfterViewInit } from '@angular/core';
2
- import { Router } from '@angular/router';
3
- import { DialogService } from '@main-class/componentes/dialog';
4
- import { LoaderService } from '@main-class/componentes/loader';
5
- import { NumericPaginationEvent, Page, PaginatedTableComponent, UndefinedPaginationEvent } from '@main-class/componentes/table';
6
- import * as i0 from "@angular/core";
7
- export declare abstract class AbstractConsultaPaginadaComponent<T> implements AfterViewInit {
8
- protected readonly router: Router;
9
- protected readonly dialogService: DialogService;
10
- protected readonly loaderService: LoaderService;
11
- private timeoutConsulta;
12
- filtro: any;
13
- page?: Page<T>;
14
- table: PaginatedTableComponent<T>;
15
- ngAfterViewInit(): void;
16
- reset(filtro?: any): Promise<void>;
17
- protected abstract consultaEntidades(pagina: number, tamanhoPagina: number): Promise<Page<T>>;
18
- protected abstract deleteEntidade(entidade: T): Promise<any>;
19
- get tamanhoPagina(): any;
20
- busca(event?: NumericPaginationEvent | UndefinedPaginationEvent): Promise<void>;
21
- remove(entidade: T): Promise<void>;
22
- static ɵfac: i0.ɵɵFactoryDeclaration<AbstractConsultaPaginadaComponent<any>, never>;
23
- static ɵcmp: i0.ɵɵComponentDeclaration<AbstractConsultaPaginadaComponent<any>, "ng-component", never, {}, {}, never, never, true, never>;
24
- }
@@ -1,19 +0,0 @@
1
- import { OnInit } from '@angular/core';
2
- import { NgForm } from '@angular/forms';
3
- import { ActivatedRoute, Router } from '@angular/router';
4
- import { MensageriaService } from '@main-class/componentes/core';
5
- import { LoaderService } from '@main-class/componentes/loader';
6
- import * as i0 from "@angular/core";
7
- export declare abstract class AbstractEdicaoComponent<T> implements OnInit {
8
- entidade: T;
9
- protected readonly router: Router;
10
- protected readonly activatedRoute: ActivatedRoute;
11
- protected readonly mensageriaService: MensageriaService;
12
- protected readonly loaderService: LoaderService;
13
- protected abstract detalhaEntidade?(id: any): Promise<T>;
14
- protected abstract salvaEntidade(): Promise<any>;
15
- ngOnInit(): void;
16
- salva(form: NgForm): Promise<void>;
17
- static ɵfac: i0.ɵɵFactoryDeclaration<AbstractEdicaoComponent<any>, never>;
18
- static ɵcmp: i0.ɵɵComponentDeclaration<AbstractEdicaoComponent<any>, "ng-component", never, {}, {}, never, never, true, never>;
19
- }
@@ -1,19 +0,0 @@
1
- import { NgForm } from '@angular/forms';
2
- import { MensageriaService } from '@main-class/componentes/core';
3
- import { MatDialogRef } from '@angular/material/dialog';
4
- import { LoaderService } from '@main-class/componentes/loader';
5
- import { DialogService } from '@main-class/componentes/dialog';
6
- import { ActivatedRoute, Router } from '@angular/router';
7
- export declare abstract class AbstractEdicaoModalComponent<T> {
8
- abstract get entidade(): T;
9
- protected readonly router: Router;
10
- protected readonly activatedRoute: ActivatedRoute;
11
- protected readonly dialogService: DialogService;
12
- protected readonly loaderService: LoaderService;
13
- protected readonly mensageriaService: MensageriaService;
14
- protected readonly dialogRef: MatDialogRef<T>;
15
- protected abstract salvaEntidade(): Promise<T>;
16
- protected abstract deleteEntidade?(entidade: T): Promise<any>;
17
- salva(form: NgForm): Promise<void>;
18
- remove(entidade: T): Promise<void>;
19
- }
@@ -1,40 +0,0 @@
1
- import { QueryList } from '@angular/core';
2
- import { AbstractControl } from '@angular/forms';
3
- import { Observable } from 'rxjs';
4
- import { SelectOption, SelectOptionComponent, SelectOptionProvider } from '@main-class/componentes/input';
5
- import * as i0 from "@angular/core";
6
- type FieldType = 'group' | 'input' | 'cpf' | 'cnpj' | 'cpf_cnpj' | 'date' | 'option' | 'currency' | 'mask';
7
- export declare class QueryFieldComponent implements SelectOptionProvider {
8
- optionProvider?: SelectOptionProvider | undefined;
9
- private cpfCnpjPipe;
10
- private datePipe;
11
- private currencyPipe;
12
- private maskPipe;
13
- private $fieldType?;
14
- formControl: AbstractControl;
15
- labelText?: string;
16
- description?: string;
17
- mask?: string;
18
- name?: string;
19
- private $fixed?;
20
- options?: QueryList<SelectOptionComponent>;
21
- fields?: QueryList<QueryFieldComponent>;
22
- constructor(optionProvider?: SelectOptionProvider | undefined);
23
- set fixed(fixed: any);
24
- get fixed(): any;
25
- get required(): boolean;
26
- get fieldType(): FieldType | undefined;
27
- set fieldType(fieldType: FieldType | undefined);
28
- get empty(): boolean;
29
- get value(): string | undefined | null;
30
- type(): "number" | "object" | "string" | "date";
31
- provide(search: string | null): Observable<SelectOption<any>[]>;
32
- label(value: any): string;
33
- trackBy(value: any): any;
34
- clear(): void;
35
- serialized(): string | undefined;
36
- desserialize(value: string | undefined): any;
37
- static ɵfac: i0.ɵɵFactoryDeclaration<QueryFieldComponent, [{ optional: true; self: true; }]>;
38
- static ɵcmp: i0.ɵɵComponentDeclaration<QueryFieldComponent, "mcl-query-field", never, { "labelText": { "alias": "label"; "required": false; }; "description": { "alias": "description"; "required": false; }; "mask": { "alias": "mask"; "required": false; }; "name": { "alias": "name"; "required": false; }; "fixed": { "alias": "fixed"; "required": false; }; "fieldType": { "alias": "type"; "required": false; }; }, {}, ["options", "fields"], never, true, never>;
39
- }
40
- export {};
@@ -1,12 +0,0 @@
1
- import { AbstractControl, FormControl, FormGroup } from '@angular/forms';
2
- import { QueryFieldComponent } from '../query-field/query-field.component';
3
- import * as i0 from "@angular/core";
4
- export declare class QueryFormFieldComponent {
5
- field?: QueryFieldComponent;
6
- control?: AbstractControl;
7
- get formControl(): FormControl;
8
- get formGroup(): FormGroup;
9
- clear(): void;
10
- static ɵfac: i0.ɵɵFactoryDeclaration<QueryFormFieldComponent, never>;
11
- static ɵcmp: i0.ɵɵComponentDeclaration<QueryFormFieldComponent, "mcl-query-form-field", never, { "field": { "alias": "field"; "required": false; }; "control": { "alias": "control"; "required": false; }; }, {}, never, never, true, never>;
12
- }
@@ -1,28 +0,0 @@
1
- import { AfterViewInit, EventEmitter, OnDestroy, QueryList, TemplateRef } from '@angular/core';
2
- import { QueryFieldComponent } from './query-field/query-field.component';
3
- import { Validators } from '@angular/forms';
4
- import { DialogService } from '@main-class/componentes/dialog';
5
- import { ActivatedRoute, Router } from '@angular/router';
6
- import * as i0 from "@angular/core";
7
- export declare class QueryFormComponent implements AfterViewInit, OnDestroy {
8
- private router;
9
- private dialogService;
10
- private activatedRoute;
11
- fields?: QueryList<QueryFieldComponent>;
12
- modalTemplate?: TemplateRef<any>;
13
- query: EventEmitter<any>;
14
- private _subscriptions;
15
- constructor(router: Router, dialogService: DialogService, activatedRoute: ActivatedRoute);
16
- ngAfterViewInit(): void;
17
- ngOnDestroy(): void;
18
- get filterCount(): number;
19
- openFilter($event: MouseEvent): void;
20
- clearAll(): void;
21
- clear(item: QueryFieldComponent): void;
22
- protected readonly Validators: typeof Validators;
23
- private serialized;
24
- private desserialize;
25
- private configFieldsSubscriptions;
26
- static ɵfac: i0.ɵɵFactoryDeclaration<QueryFormComponent, never>;
27
- static ɵcmp: i0.ɵɵComponentDeclaration<QueryFormComponent, "mcl-query-form", never, {}, { "query": "query"; }, ["fields"], never, true, never>;
28
- }
@@ -1,13 +0,0 @@
1
- import { QueryFieldComponent } from '../query-field/query-field.component';
2
- import { FormBuilder, FormGroup } from '@angular/forms';
3
- import { SidebarModalRef } from '@main-class/componentes/dialog';
4
- import * as i0 from "@angular/core";
5
- export declare class QueryModalFormComponent {
6
- private modalRef;
7
- fields: Array<QueryFieldComponent>;
8
- form: FormGroup;
9
- constructor(fb: FormBuilder, modalRef: SidebarModalRef<any>, fields: Array<QueryFieldComponent>);
10
- apply(): void;
11
- static ɵfac: i0.ɵɵFactoryDeclaration<QueryModalFormComponent, never>;
12
- static ɵcmp: i0.ɵɵComponentDeclaration<QueryModalFormComponent, "mcl-query-form", never, {}, {}, never, never, true, never>;
13
- }
package/dialog/index.d.ts DELETED
@@ -1,10 +0,0 @@
1
- export * from './src/dialog.service';
2
- export * from './src/dialog-confirmacao/dialog-confirmacao.component';
3
- export * from './src/dialog-iframe/dialog-iframe.component';
4
- export * from './src/dialog-sidebar/sidebar-modal-ref';
5
- export * from './src/dialog-sidebar/modal.component';
6
- export * from './src/dialog-sidebar/modal-template/modal-close.directive';
7
- export * from './src/dialog-sidebar/modal-template/modal-footer.directive';
8
- export * from './src/dialog-sidebar/modal-template/modal-header.directive';
9
- export * from './src/dialog-sidebar/modal-template/modal-body.directive';
10
- export * from './src/dialog-sidebar/modal-template/modal-template.component';
@@ -1,23 +0,0 @@
1
- import { OnInit } from '@angular/core';
2
- import { MatDialogRef } from '@angular/material/dialog';
3
- import { NgForm } from '@angular/forms';
4
- import * as i0 from "@angular/core";
5
- export interface DialogConfirmacaoData {
6
- titulo: string;
7
- mensagem: string;
8
- okLabel: string;
9
- cancelLabel?: string;
10
- }
11
- export declare class DialogConfirmacaoComponent implements OnInit {
12
- private data;
13
- private dialogRef;
14
- constructor(data: DialogConfirmacaoData, dialogRef: MatDialogRef<any>);
15
- get titulo(): string;
16
- get mensagem(): string;
17
- get okLabel(): string;
18
- get cancelLabel(): string | undefined;
19
- ngOnInit(): void;
20
- confirma(form: NgForm): void;
21
- static ɵfac: i0.ɵɵFactoryDeclaration<DialogConfirmacaoComponent, never>;
22
- static ɵcmp: i0.ɵɵComponentDeclaration<DialogConfirmacaoComponent, "mcl-dialog-confirmacao", never, {}, {}, never, never, true, never>;
23
- }
@@ -1,21 +0,0 @@
1
- import { AfterViewInit, ElementRef } from '@angular/core';
2
- import { MatDialogRef } from '@angular/material/dialog';
3
- import { DomSanitizer, SafeResourceUrl } from '@angular/platform-browser';
4
- import * as i0 from "@angular/core";
5
- export interface DialogIframData {
6
- url: string;
7
- titulo: string;
8
- }
9
- export declare class DialogIframeComponent implements AfterViewInit {
10
- private dialogRef;
11
- titulo: string;
12
- url: SafeResourceUrl;
13
- iframe: ElementRef;
14
- constructor(dados: DialogIframData, dialogRef: MatDialogRef<any>, sanitizer: DomSanitizer);
15
- ngAfterViewInit(): void;
16
- private returnValue;
17
- close(): void;
18
- static ɵfac: i0.ɵɵFactoryDeclaration<DialogIframeComponent, never>;
19
- static ɵcmp: i0.ɵɵComponentDeclaration<DialogIframeComponent, "mcl-dialog-iframe", never, {}, {}, never, never, true, never>;
20
- }
21
- export declare function closeDialogIframe(returnValue?: any): void;
@@ -1,9 +0,0 @@
1
- import { SidebarModalOptions } from '../sidebar-modal-ref';
2
- import * as i0 from "@angular/core";
3
- export declare class ModalBodyDirective {
4
- private config;
5
- constructor(config: SidebarModalOptions);
6
- get size(): "small" | "medium" | "large" | "auto" | undefined;
7
- static ɵfac: i0.ɵɵFactoryDeclaration<ModalBodyDirective, never>;
8
- static ɵdir: i0.ɵɵDirectiveDeclaration<ModalBodyDirective, "[mclSidebarModalBody]", never, {}, {}, never, never, true, never>;
9
- }
@@ -1,9 +0,0 @@
1
- import { SidebarModalRef } from '../sidebar-modal-ref';
2
- import * as i0 from "@angular/core";
3
- export declare class ModalCloseDirective {
4
- private modalRef;
5
- constructor(modalRef: SidebarModalRef<any>);
6
- onClick(): void;
7
- static ɵfac: i0.ɵɵFactoryDeclaration<ModalCloseDirective, never>;
8
- static ɵdir: i0.ɵɵDirectiveDeclaration<ModalCloseDirective, "[mclSidebarModalClose]", never, {}, {}, never, never, true, never>;
9
- }
@@ -1,6 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class ModalFooterDirective {
3
- constructor();
4
- static ɵfac: i0.ɵɵFactoryDeclaration<ModalFooterDirective, never>;
5
- static ɵdir: i0.ɵɵDirectiveDeclaration<ModalFooterDirective, "[mclSidebarModalFooter]", never, {}, {}, never, never, true, never>;
6
- }
@@ -1,6 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class ModalHeaderDirective {
3
- constructor();
4
- static ɵfac: i0.ɵɵFactoryDeclaration<ModalHeaderDirective, never>;
5
- static ɵdir: i0.ɵɵDirectiveDeclaration<ModalHeaderDirective, "[mclSidebarModalHeader]", never, {}, {}, never, never, true, never>;
6
- }
@@ -1,12 +0,0 @@
1
- import { SidebarModalOptions, SidebarModalRef } from '../sidebar-modal-ref';
2
- import * as i0 from "@angular/core";
3
- export declare class ModalTemplateComponent {
4
- modalRef: SidebarModalRef<any>;
5
- private config;
6
- constructor(modalRef: SidebarModalRef<any>, config: SidebarModalOptions);
7
- get fixed(): boolean;
8
- get size(): "small" | "medium" | "large" | "auto" | undefined;
9
- close(): void;
10
- static ɵfac: i0.ɵɵFactoryDeclaration<ModalTemplateComponent, never>;
11
- static ɵcmp: i0.ɵɵComponentDeclaration<ModalTemplateComponent, "mcl-sidebar-modal-template", never, {}, {}, never, ["br-modal-content"], true, never>;
12
- }
@@ -1,8 +0,0 @@
1
- import { TemplateRef } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class ModalComponent {
4
- template: TemplateRef<any>;
5
- constructor(template: TemplateRef<any>);
6
- static ɵfac: i0.ɵɵFactoryDeclaration<ModalComponent, never>;
7
- static ɵcmp: i0.ɵɵComponentDeclaration<ModalComponent, "mcl-modal", never, {}, {}, never, never, true, never>;
8
- }
@@ -1,21 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- import { InjectionToken } from '@angular/core';
3
- export declare const SIDEBAR_MODAL_DATA: InjectionToken<any>;
4
- export declare const SIDEBAR_MODAL_OPTIONS: InjectionToken<SidebarModalOptions>;
5
- export interface SidebarModalOptions {
6
- size?: 'small' | 'medium' | 'large' | 'auto';
7
- closeable?: boolean;
8
- data?: any;
9
- container?: HTMLElement;
10
- }
11
- export declare class SidebarModalRef<T> {
12
- private $closeSubject;
13
- /** duração da animação de saída (deve casar com o CSS do template) */
14
- private static readonly EXIT_DURATION;
15
- /** true enquanto a animação de saída roda; usado pelo template para aplicar a classe de saída */
16
- closing: boolean;
17
- readonly size: 'small' | 'medium' | 'large' | 'auto';
18
- constructor(options?: SidebarModalOptions);
19
- afterClosed(): Observable<T | undefined>;
20
- close(result?: T): void;
21
- }
@@ -1,26 +0,0 @@
1
- import { ApplicationRef, Injector } from '@angular/core';
2
- import { Observable } from 'rxjs';
3
- import { MatDialog } from '@angular/material/dialog';
4
- import { SidebarModalOptions, SidebarModalRef } from './dialog-sidebar/sidebar-modal-ref';
5
- import * as i0 from "@angular/core";
6
- export declare class DialogService {
7
- private appRef;
8
- private injector;
9
- private dialog;
10
- constructor(appRef: ApplicationRef, injector: Injector, dialog: MatDialog);
11
- openSidebar<T = any>(component: any, options?: SidebarModalOptions): SidebarModalRef<T>;
12
- confirma(mensagem: string, config?: {
13
- icon?: string;
14
- titulo?: string;
15
- okLabel?: string;
16
- cancelLabel?: string;
17
- }): Observable<boolean>;
18
- informa(mensagem: string, config?: {
19
- icon?: string;
20
- titulo?: string;
21
- okLabel?: string;
22
- }): Observable<boolean>;
23
- iframe(url: string, titulo: string): Observable<any>;
24
- static ɵfac: i0.ɵɵFactoryDeclaration<DialogService, never>;
25
- static ɵprov: i0.ɵɵInjectableDeclaration<DialogService>;
26
- }
package/form/index.d.ts DELETED
@@ -1,3 +0,0 @@
1
- export * from './src/form.component';
2
- export * from './src/single-click.directive';
3
- export * from './src/mensagens-erro/mensagens-erro.component';
@@ -1,24 +0,0 @@
1
- import { AfterViewInit, EventEmitter, OnDestroy, OnInit, QueryList } from '@angular/core';
2
- import { NgForm, NgModel } from '@angular/forms';
3
- import { Observable } from 'rxjs';
4
- import * as i0 from "@angular/core";
5
- export declare class FormComponent implements OnInit, OnDestroy, AfterViewInit {
6
- submitted: EventEmitter<NgForm>;
7
- throttleMillis: number;
8
- private eventSubject;
9
- private subscription?;
10
- models: QueryList<NgModel>;
11
- form: NgForm;
12
- private currentModels;
13
- constructor();
14
- ngOnInit(): void;
15
- ngOnDestroy(): void;
16
- ngAfterViewInit(): void;
17
- private atualizaModels;
18
- touched(): void;
19
- untouched(): void;
20
- reset(): Observable<any>;
21
- submit(form: NgForm): void;
22
- static ɵfac: i0.ɵɵFactoryDeclaration<FormComponent, never>;
23
- static ɵcmp: i0.ɵɵComponentDeclaration<FormComponent, "mcl-form", never, { "throttleMillis": { "alias": "throttleMillis"; "required": false; }; }, { "submitted": "submitted"; }, ["models"], ["*"], true, never>;
24
- }
@@ -1,17 +0,0 @@
1
- import { OnInit } from '@angular/core';
2
- import { FormComponent } from '../form.component';
3
- import { ControlContainer, FormControl } from '@angular/forms';
4
- import { MatFormField } from '@angular/material/input';
5
- import * as i0 from "@angular/core";
6
- export declare class MensagensErroComponent implements OnInit {
7
- for?: string | FormControl;
8
- matFormField: MatFormField | null;
9
- mcForm: FormComponent | null;
10
- container: ControlContainer | null;
11
- get group(): import("@angular/forms").NgForm | import("@angular/forms").AbstractControl<any, any> | undefined;
12
- ngOnInit(): void;
13
- get control(): import("@angular/forms").AbstractControl<any, any> | null | undefined;
14
- get errors(): string[] | undefined;
15
- static ɵfac: i0.ɵɵFactoryDeclaration<MensagensErroComponent, never>;
16
- static ɵcmp: i0.ɵɵComponentDeclaration<MensagensErroComponent, "[mclErrorFor],[mclError]", never, { "for": { "alias": "mclErrorFor"; "required": false; }; }, {}, never, never, true, never>;
17
- }
@@ -1,13 +0,0 @@
1
- import { ElementRef, EventEmitter, OnDestroy, OnInit } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class SingleClickDirective implements OnInit, OnDestroy {
4
- private elementRef;
5
- private subscription?;
6
- throttleMillis: number;
7
- singleClick: EventEmitter<any>;
8
- constructor(elementRef: ElementRef);
9
- ngOnInit(): void;
10
- ngOnDestroy(): void;
11
- static ɵfac: i0.ɵɵFactoryDeclaration<SingleClickDirective, never>;
12
- static ɵdir: i0.ɵɵDirectiveDeclaration<SingleClickDirective, "[mclSingleClick],[singleClick]", never, { "throttleMillis": { "alias": "throttleMillis"; "required": false; }; }, { "singleClick": "singleClick"; }, never, never, true, never>;
13
- }
package/index.d.ts DELETED
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@main-class/componentes" />
5
- export * from './public-api';
package/input/index.d.ts DELETED
@@ -1,26 +0,0 @@
1
- export * from './src/abstract-mat-form-field-control';
2
- export * from './src/abstract-mat-form-field-select-control';
3
- export * from './src/input-currency/input-currency.component';
4
- export * from './src/input-datetime/input-datetime.component';
5
- export * from './src/input-fileupload/input-fileupload.component';
6
- export * from './src/input-fileupload/input-fileupload-validator.directive';
7
- export * from './src/input-mask/documento-validators';
8
- export * from './src/input-mask/input-cnpj.component';
9
- export * from './src/input-mask/input-cep.component';
10
- export * from './src/input-mask/input-cpf-cnpj.component';
11
- export * from './src/input-mask/input-cpf.component';
12
- export * from './src/input-mask/input-mask.component';
13
- export * from './src/input-mask/input-phone.component';
14
- export * from './src/option-checkbox/all-option-checkbox.component';
15
- export * from './src/option-checkbox/option-checkbox.component';
16
- export * from './src/option-checkbox/option-checkbox-group.component';
17
- export * from './src/select-chips/select-chips.component';
18
- export * from './src/select-autocomplete/select-autocomplete.component';
19
- export * from './src/select-option/select-option';
20
- export * from './src/select-option/select-option-provider';
21
- export * from './src/select-option/select-option.component';
22
- export * from './src/select-option/delegate-option-provider.directive';
23
- export * from './src/select-many-checkbox/select-many-checkbox.component';
24
- export * from './src/select-radio/select-radio.component';
25
- export * from './src/input-telefone-internacional/input-telefone-internacional.component';
26
- export * from './src/input-telefone-internacional/input-telefone-internacional-validator.directive';
@@ -1,18 +0,0 @@
1
- import { ControlValueAccessor, FormControl } from '@angular/forms';
2
- import { OnDestroy, OnInit } from '@angular/core';
3
- import * as i0 from "@angular/core";
4
- export declare abstract class AbstractControlValueAccessor<T> implements ControlValueAccessor, OnInit, OnDestroy {
5
- private valueSubscription?;
6
- control: FormControl<any>;
7
- onChange: (value: T | undefined) => void;
8
- onTouched: () => void;
9
- protected onControlValueChange(value: T | undefined): void;
10
- ngOnInit(): void;
11
- ngOnDestroy(): void;
12
- writeValue(obj: any): void;
13
- registerOnChange(fn: any): void;
14
- registerOnTouched(fn: any): void;
15
- setDisabledState?(isDisabled: boolean): void;
16
- static ɵfac: i0.ɵɵFactoryDeclaration<AbstractControlValueAccessor<any>, never>;
17
- static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractControlValueAccessor<any>, never, never, {}, {}, never, never, true, never>;
18
- }
@@ -1,42 +0,0 @@
1
- import { FormGroupDirective, NgControl } from '@angular/forms';
2
- import { Subject } from 'rxjs';
3
- import { ErrorStateMatcher } from '@angular/material/core';
4
- import { MatFormFieldControl } from '@angular/material/form-field';
5
- import { AbstractControlValueAccessor } from './abstract-control-value-accessor';
6
- import * as i0 from "@angular/core";
7
- export declare abstract class AbstractMatFormFieldControl<T> extends AbstractControlValueAccessor<T> implements MatFormFieldControl<T | undefined> {
8
- readonly errorStateMatcher: ErrorStateMatcher;
9
- readonly ngControl: NgControl | null;
10
- readonly parentFormGroup: FormGroupDirective | null;
11
- static nextId: number;
12
- private $placeholder;
13
- private destroyed$;
14
- focused: boolean;
15
- constructor();
16
- stateChanges: Subject<void>;
17
- id: string;
18
- describedBy: string;
19
- get value(): T | undefined;
20
- set value(value: T | undefined);
21
- protected onControlValueChange(value: T | undefined): void;
22
- get empty(): boolean;
23
- get autofilled(): boolean;
24
- get userAriaDescribedBy(): undefined;
25
- get disableAutomaticLabeling(): undefined;
26
- onContainerClick(event: MouseEvent): void;
27
- get shouldLabelFloat(): boolean;
28
- get placeholder(): string;
29
- set placeholder(plh: string);
30
- get required(): any;
31
- set required(value: any);
32
- get disabled(): boolean;
33
- set disabled(value: boolean);
34
- get errorState(): boolean;
35
- get controlType(): string;
36
- setDescribedByIds(ids: string[]): void;
37
- ngOnInit(): void;
38
- ngOnDestroy(): void;
39
- writeValue(obj: any): void;
40
- static ɵfac: i0.ɵɵFactoryDeclaration<AbstractMatFormFieldControl<any>, never>;
41
- static ɵcmp: i0.ɵɵComponentDeclaration<AbstractMatFormFieldControl<any>, "ng-component", never, { "placeholder": { "alias": "placeholder"; "required": false; }; "required": { "alias": "required"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, never, true, never>;
42
- }
@@ -1,31 +0,0 @@
1
- import { AfterContentInit } from '@angular/core';
2
- import { Observable, Subscription } from 'rxjs';
3
- import { FormControl } from '@angular/forms';
4
- import { MatAutocompleteSelectedEvent } from '@angular/material/autocomplete';
5
- import { AbstractMatFormFieldControl } from './abstract-mat-form-field-control';
6
- import { SelectOption } from './select-option/select-option';
7
- import { SelectOptionProvider } from './select-option/select-option-provider';
8
- import * as i0 from "@angular/core";
9
- export declare abstract class AbstractMatFormFieldSelectControl<T> extends AbstractMatFormFieldControl<T> implements AfterContentInit {
10
- protected readonly optionProvider: SelectOptionProvider<any> | null;
11
- protected optionsSubscription?: Subscription;
12
- private $args;
13
- private wvt;
14
- filteredOptions?: Observable<SelectOption[]>;
15
- inputControl: FormControl<string | null>;
16
- trackBy: (val: any) => any;
17
- private options;
18
- private defaultOptionProvider;
19
- get empty(): boolean;
20
- get shouldFilter(): boolean;
21
- doTrackBy(val: any): any;
22
- set args(args: any);
23
- ngAfterContentInit(): void;
24
- ngOnDestroy(): void;
25
- seleciona(event: MatAutocompleteSelectedEvent): void;
26
- doSeleciona(value: any | undefined): void;
27
- writeValue(value: any): void;
28
- resolveLabel(item: any): string;
29
- static ɵfac: i0.ɵɵFactoryDeclaration<AbstractMatFormFieldSelectControl<any>, never>;
30
- static ɵcmp: i0.ɵɵComponentDeclaration<AbstractMatFormFieldSelectControl<any>, "ng-component", never, { "trackBy": { "alias": "trackBy"; "required": false; }; "args": { "alias": "args"; "required": false; }; }, {}, ["options"], never, true, never>;
31
- }
@@ -1,9 +0,0 @@
1
- import { InputMaskComponent } from '../input-mask/input-mask.component';
2
- import * as i0 from "@angular/core";
3
- export declare class InputCurrencyComponent extends InputMaskComponent {
4
- protected applyMask(value: string | undefined): string | undefined;
5
- protected removeMask(value: string | undefined): string | undefined;
6
- writeValue(value: any): void;
7
- static ɵfac: i0.ɵɵFactoryDeclaration<InputCurrencyComponent, never>;
8
- static ɵcmp: i0.ɵɵComponentDeclaration<InputCurrencyComponent, "mcl-input[currency]", never, {}, {}, never, never, true, never>;
9
- }
@@ -1,32 +0,0 @@
1
- import { AbstractControl, FormControl, ValidationErrors } from '@angular/forms';
2
- import { MatDatetimepickerComponent } from '@mat-datetimepicker/core';
3
- import moment, { Moment } from 'moment';
4
- import 'moment/locale/pt-br.js';
5
- import { InputMaskComponent } from '../input-mask/input-mask.component';
6
- import { AbstractMatFormFieldControl } from '../abstract-mat-form-field-control';
7
- import * as i0 from "@angular/core";
8
- export declare function validateDateTime(control: AbstractControl): ValidationErrors | null;
9
- export declare class InputDatetimeComponent extends AbstractMatFormFieldControl<Date | undefined> {
10
- private readonly locale;
11
- private readonly formats;
12
- private readonly adapter;
13
- private maskedValueSubscription?;
14
- private datepickerValueSubscription?;
15
- type: 'datetime' | 'date' | 'time';
16
- readonly: any;
17
- name?: string;
18
- picker?: MatDatetimepickerComponent<Moment>;
19
- inputMask?: InputMaskComponent;
20
- inputControl: FormControl<any>;
21
- datepickerControl: FormControl<any>;
22
- constructor();
23
- get empty(): boolean;
24
- get mask(): "##/##/####" | "##:##" | "##/##/#### ##:##";
25
- get format(): any;
26
- onMaskedValueChange(maskedValue: string): void;
27
- protected onDatepickerChange(value: moment.Moment | undefined): void;
28
- writeValue(value: Date | undefined): void;
29
- ngOnDestroy(): void;
30
- static ɵfac: i0.ɵɵFactoryDeclaration<InputDatetimeComponent, never>;
31
- 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>;
32
- }
@@ -1,8 +0,0 @@
1
- import { AbstractControl, ValidationErrors, Validator } from '@angular/forms';
2
- import * as i0 from "@angular/core";
3
- export declare class InputFileUploadValidatorDirective implements Validator {
4
- multiple: boolean;
5
- validate(control: AbstractControl): ValidationErrors | null;
6
- static ɵfac: i0.ɵɵFactoryDeclaration<InputFileUploadValidatorDirective, never>;
7
- static ɵdir: i0.ɵɵDirectiveDeclaration<InputFileUploadValidatorDirective, "mcl-input-fileupload,[mclFileupload]", never, { "multiple": { "alias": "multiple"; "required": false; }; }, {}, never, never, true, never>;
8
- }