keevo-components 1.5.151 → 1.5.153

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.
@@ -8,10 +8,9 @@ import { BaseComponentCrud } from "./base-component-crud";
8
8
  import { NotificationService } from "../services/notification.service";
9
9
  import * as i0 from "@angular/core";
10
10
  export interface DadosTela {
11
- nomeCadastro: string;
12
- tituloForm: string;
11
+ subTituloForm: string | undefined;
12
+ tituloForm: string | undefined;
13
13
  rotaListar: string;
14
- masculino: boolean;
15
14
  mensagemValidacao: boolean;
16
15
  }
17
16
  export declare abstract class BaseComponentCrudForm extends BaseComponentCrud implements OnInit, OnDestroy {
@@ -2,8 +2,10 @@ import * as i0 from "@angular/core";
2
2
  import * as i1 from "./page-form.component";
3
3
  import * as i2 from "@angular/common";
4
4
  import * as i3 from "../api/modules/primeng.module";
5
+ import * as i4 from "../buttons/kvbutton.module";
6
+ import * as i5 from "@angular/forms";
5
7
  export declare class KvPageFormModule {
6
8
  static ɵfac: i0.ɵɵFactoryDeclaration<KvPageFormModule, never>;
7
- static ɵmod: i0.ɵɵNgModuleDeclaration<KvPageFormModule, [typeof i1.PageFormComponent], [typeof i2.CommonModule, typeof i3.PrimeNgModule], [typeof i1.PageFormComponent]>;
9
+ static ɵmod: i0.ɵɵNgModuleDeclaration<KvPageFormModule, [typeof i1.PageFormComponent], [typeof i2.CommonModule, typeof i3.PrimeNgModule, typeof i4.KvButtonsModule, typeof i5.ReactiveFormsModule], [typeof i1.PageFormComponent]>;
8
10
  static ɵinj: i0.ɵɵInjectorDeclaration<KvPageFormModule>;
9
11
  }
@@ -1,8 +1,65 @@
1
- import { OnInit } from '@angular/core';
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
+ import { FormBuilder, FormGroup } from '@angular/forms';
3
+ import { ActionItem } from '../api/components/table/action-item';
2
4
  import * as i0 from "@angular/core";
3
5
  export declare class PageFormComponent implements OnInit {
4
- constructor();
6
+ private fb;
7
+ /**
8
+ * Configurações do formulário
9
+ */
10
+ formGroup: FormGroup;
11
+ TituloForm: string | undefined;
12
+ SubTituloForm: string | undefined;
13
+ isSaveLoading: boolean;
14
+ popup: boolean;
15
+ /**
16
+ * Botão cancelar
17
+ */
18
+ iconBtnCancel: string;
19
+ showBtnCancel: boolean;
20
+ txtBtnCancel: string;
21
+ /**
22
+ * Botão salvar
23
+ */
24
+ iconBtnSave: string;
25
+ showBtnSave: boolean;
26
+ txtBtnSave: string;
27
+ /**
28
+ * Botão de opções
29
+ */
30
+ actions: ActionItem[];
31
+ iconBtnSaveToogle: string;
32
+ showBtnSaveToogle: boolean;
33
+ txtBtnSaveToogle: string;
34
+ /**
35
+ * Botão fechar
36
+ */
37
+ disableBtnSair: boolean;
38
+ /**
39
+ * Salvar dados
40
+ */
41
+ onSave: EventEmitter<any>;
42
+ /**
43
+ * Cancelar
44
+ */
45
+ onCancel: EventEmitter<any>;
46
+ constructor(fb: FormBuilder);
5
47
  ngOnInit(): void;
48
+ /**
49
+ * Dispara o método de cancelamento da tela
50
+ * @param event evento
51
+ */
52
+ 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
+ /**
59
+ * Dispara o método de salvar da tela
60
+ * @param event evento
61
+ */
62
+ save(event: Event): void;
6
63
  static ɵfac: i0.ɵɵFactoryDeclaration<PageFormComponent, never>;
7
- static ɵcmp: i0.ɵɵComponentDeclaration<PageFormComponent, "kv-page-form", never, {}, {}, never, never, false, 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>;
8
65
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "keevo-components",
3
- "version": "1.5.151",
3
+ "version": "1.5.153",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^15.2.0",
6
6
  "@angular/core": "^15.2.0",