keevo-components 1.5.155 → 1.5.157
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/esm2020/lib/api/services/form.service.mjs +3 -21
- package/esm2020/lib/login/login.component.mjs +14 -3
- package/esm2020/lib/menu/menu.component.mjs +20 -36
- package/esm2020/lib/page-form/page-form.component.mjs +49 -13
- package/fesm2015/keevo-components.mjs +101 -88
- package/fesm2015/keevo-components.mjs.map +1 -1
- package/fesm2020/keevo-components.mjs +101 -88
- package/fesm2020/keevo-components.mjs.map +1 -1
- package/lib/login/login.component.d.ts +16 -0
- package/lib/page-form/page-form.component.d.ts +10 -6
- package/package.json +1 -1
|
@@ -1,16 +1,32 @@
|
|
|
1
1
|
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
2
|
import { FormGroup, FormBuilder } from '@angular/forms';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* Componente de login personalizado.
|
|
6
|
+
* Este componente permite que os usuários façam login no sistema utilizando o estilo padrão dos sistemas Keevo.
|
|
7
|
+
*/
|
|
4
8
|
export declare class LoginComponent implements OnInit {
|
|
5
9
|
private formBuilder;
|
|
10
|
+
/** URL da imagem de fundo do componente. */
|
|
6
11
|
Background: any;
|
|
12
|
+
/** URL do logo do sistema. */
|
|
7
13
|
SystemLogo: any;
|
|
14
|
+
/** Cor primária do sistema. */
|
|
8
15
|
SystemColorPrimary: string;
|
|
16
|
+
/** Cor secundária do sistema. */
|
|
9
17
|
SystemColorSecondary: string;
|
|
18
|
+
/** Evento emitido quando o usuário faz login. */
|
|
10
19
|
onLogin: EventEmitter<any>;
|
|
20
|
+
/** Formulário de login. */
|
|
11
21
|
loginForm: FormGroup;
|
|
22
|
+
/**
|
|
23
|
+
* Cria uma instância do LoginComponent.
|
|
24
|
+
* @param formBuilder O construtor de formulários do Angular.
|
|
25
|
+
*/
|
|
12
26
|
constructor(formBuilder: FormBuilder);
|
|
27
|
+
/** Inicializa o componente. */
|
|
13
28
|
ngOnInit(): void;
|
|
29
|
+
/** Método chamado quando o usuário clica no botão de login. Emite o evento onLogin com os dados do formulário. */
|
|
14
30
|
login(): void;
|
|
15
31
|
static ɵfac: i0.ɵɵFactoryDeclaration<LoginComponent, never>;
|
|
16
32
|
static ɵcmp: i0.ɵɵComponentDeclaration<LoginComponent, "kv-login", never, { "Background": "Background"; "SystemLogo": "SystemLogo"; "SystemColorPrimary": "SystemColorPrimary"; "SystemColorSecondary": "SystemColorSecondary"; }, { "onLogin": "onLogin"; }, never, never, false, never>;
|
|
@@ -12,6 +12,7 @@ export declare class PageFormComponent implements OnInit {
|
|
|
12
12
|
SubTituloForm: string | undefined;
|
|
13
13
|
isSaveLoading: boolean;
|
|
14
14
|
popup: boolean;
|
|
15
|
+
locationUseComponent: 'page' | 'dialog';
|
|
15
16
|
/**
|
|
16
17
|
* Botão cancelar
|
|
17
18
|
*/
|
|
@@ -44,22 +45,25 @@ export declare class PageFormComponent implements OnInit {
|
|
|
44
45
|
*/
|
|
45
46
|
onCancel: EventEmitter<any>;
|
|
46
47
|
constructor(fb: FormBuilder);
|
|
48
|
+
/**
|
|
49
|
+
* Adiciona sub-título à tela
|
|
50
|
+
*/
|
|
51
|
+
addSubTitle(): void;
|
|
47
52
|
ngOnInit(): void;
|
|
48
53
|
/**
|
|
49
54
|
* Dispara o método de cancelamento da tela
|
|
50
55
|
* @param event evento
|
|
51
56
|
*/
|
|
52
57
|
cancel(event: Event): void;
|
|
53
|
-
/**
|
|
54
|
-
* Método para habilitar o sub título da tela
|
|
55
|
-
* @returns True/False
|
|
56
|
-
*/
|
|
57
|
-
enableSubTitle(): boolean;
|
|
58
58
|
/**
|
|
59
59
|
* Dispara o método de salvar da tela
|
|
60
60
|
* @param event evento
|
|
61
61
|
*/
|
|
62
62
|
save(event: Event): void;
|
|
63
|
+
/**
|
|
64
|
+
* Ajusta o tamanho da tela considerando o menu lateral
|
|
65
|
+
*/
|
|
66
|
+
setPageFormContainerAttributes(): void;
|
|
63
67
|
static ɵfac: i0.ɵɵFactoryDeclaration<PageFormComponent, never>;
|
|
64
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PageFormComponent, "kv-page-form", never, { "formGroup": "formGroup"; "TituloForm": "TituloForm"; "SubTituloForm": "SubTituloForm"; "isSaveLoading": "isSaveLoading"; "popup": "popup"; "iconBtnCancel": "iconBtnCancel"; "showBtnCancel": "showBtnCancel"; "txtBtnCancel": "txtBtnCancel"; "iconBtnSave": "iconBtnSave"; "showBtnSave": "showBtnSave"; "txtBtnSave": "txtBtnSave"; "actions": "actions"; "iconBtnSaveToogle": "iconBtnSaveToogle"; "showBtnSaveToogle": "showBtnSaveToogle"; "txtBtnSaveToogle": "txtBtnSaveToogle"; "disableBtnSair": "disableBtnSair"; }, { "onSave": "onSave"; "onCancel": "onCancel"; }, never, ["*"], false, never>;
|
|
68
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PageFormComponent, "kv-page-form", never, { "formGroup": "formGroup"; "TituloForm": "TituloForm"; "SubTituloForm": "SubTituloForm"; "isSaveLoading": "isSaveLoading"; "popup": "popup"; "locationUseComponent": "locationUseComponent"; "iconBtnCancel": "iconBtnCancel"; "showBtnCancel": "showBtnCancel"; "txtBtnCancel": "txtBtnCancel"; "iconBtnSave": "iconBtnSave"; "showBtnSave": "showBtnSave"; "txtBtnSave": "txtBtnSave"; "actions": "actions"; "iconBtnSaveToogle": "iconBtnSaveToogle"; "showBtnSaveToogle": "showBtnSaveToogle"; "txtBtnSaveToogle": "txtBtnSaveToogle"; "disableBtnSair": "disableBtnSair"; }, { "onSave": "onSave"; "onCancel": "onCancel"; }, never, ["*"], false, never>;
|
|
65
69
|
}
|