keevo-components 1.5.141 → 1.5.143

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 (33) hide show
  1. package/esm2020/lib/api/services/base.api.service.mjs +74 -0
  2. package/esm2020/lib/buttons/button-popup/button-popup.component.mjs +30 -0
  3. package/esm2020/lib/buttons/kvbutton.module.mjs +10 -5
  4. package/esm2020/lib/inputs/check/check.component.mjs +2 -2
  5. package/esm2020/lib/inputs/dropdown/dropdown.component.mjs +4 -3
  6. package/esm2020/lib/inputs/input-calendar/input-calendar.component.mjs +4 -3
  7. package/esm2020/lib/inputs/input-mask/input-mask.component.mjs +4 -3
  8. package/esm2020/lib/inputs/input-number/input-number.component.mjs +4 -3
  9. package/esm2020/lib/inputs/input-password/input-password.component.mjs +4 -3
  10. package/esm2020/lib/inputs/input-text/input-text.component.mjs +4 -3
  11. package/esm2020/lib/inputs/input-text-checkbox/input-text-checkbox.component.mjs +4 -3
  12. package/esm2020/lib/inputs/input-textarea/input-textarea.component.mjs +4 -3
  13. package/esm2020/lib/inputs/input-time/input-time.component.mjs +4 -3
  14. package/esm2020/lib/inputs/kvinputs.module.mjs +7 -3
  15. package/esm2020/lib/inputs/multi-select/multi-select.component.mjs +4 -3
  16. package/esm2020/lib/label/label.component.mjs +15 -0
  17. package/esm2020/lib/label/label.module.mjs +24 -0
  18. package/esm2020/lib/login/login.component.mjs +3 -3
  19. package/esm2020/lib/menu/menu.component.mjs +21 -13
  20. package/esm2020/public-api.mjs +102 -48
  21. package/fesm2015/keevo-components.mjs +2720 -2575
  22. package/fesm2015/keevo-components.mjs.map +1 -1
  23. package/fesm2020/keevo-components.mjs +2706 -2561
  24. package/fesm2020/keevo-components.mjs.map +1 -1
  25. package/lib/api/services/base.api.service.d.ts +25 -0
  26. package/lib/buttons/button-popup/button-popup.component.d.ts +13 -0
  27. package/lib/buttons/kvbutton.module.d.ts +3 -2
  28. package/lib/inputs/kvinputs.module.d.ts +2 -1
  29. package/lib/label/label.component.d.ts +7 -0
  30. package/lib/label/label.module.d.ts +8 -0
  31. package/lib/menu/menu.component.d.ts +4 -1
  32. package/package.json +1 -1
  33. package/public-api.d.ts +101 -47
@@ -0,0 +1,25 @@
1
+ import { HttpClient, HttpHeaders, HttpParams } from '@angular/common/http';
2
+ import { Observable } from 'rxjs';
3
+ import * as i0 from "@angular/core";
4
+ export declare class BaseApiService {
5
+ private http;
6
+ constructor(http: HttpClient);
7
+ delete(baseUrl: string, rota: string): Observable<Object>;
8
+ deleteAllBody<T>(baseUrl: string, rota: string, body: T): Observable<T[]>;
9
+ deleteAllHeaders<T>(baseUrl: string, rota: string, headers: HttpHeaders): Observable<T>;
10
+ get<T>(baseUrl: string, rota: string): Observable<T>;
11
+ getHeaders<T>(baseUrl: string, rota: string, headers: HttpHeaders): Observable<T>;
12
+ getAll<T>(baseUrl: string, rota: string): Observable<T[]>;
13
+ getAllHeaders<T>(baseUrl: string, rota: string, headers: HttpHeaders): Observable<T[]>;
14
+ getAllParams<T>(baseUrl: string, rota: string, params?: HttpParams): Observable<T[]>;
15
+ getArquivo(baseUrl: string, rota: string, id?: string, paramCabecalho?: {
16
+ headers: HttpHeaders;
17
+ }): Observable<any>;
18
+ getArquivos(baseUrl: string, rota: string, paramCabecalho?: {
19
+ headers: HttpHeaders;
20
+ }): Observable<any>;
21
+ post<T>(baseUrl: string, rota: string, data?: T): Observable<T>;
22
+ put<T>(baseUrl: string, rota: string, data: T): Observable<T>;
23
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaseApiService, never>;
24
+ static ɵprov: i0.ɵɵInjectableDeclaration<BaseApiService>;
25
+ }
@@ -0,0 +1,13 @@
1
+ import { BaseComponentButton } from '../../api/base-components/base-component-button';
2
+ import { MenuItem } from 'primeng/api';
3
+ import * as i0 from "@angular/core";
4
+ export declare class ButtonPopupComponent extends BaseComponentButton {
5
+ items: MenuItem[];
6
+ icon: string;
7
+ constructor();
8
+ handleShow(): void;
9
+ handleHide(): void;
10
+ rotate(): void;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<ButtonPopupComponent, never>;
12
+ static ɵcmp: i0.ɵɵComponentDeclaration<ButtonPopupComponent, "kv-button-popup", never, { "items": "items"; }, {}, never, never, false, never>;
13
+ }
@@ -2,9 +2,10 @@ import * as i0 from "@angular/core";
2
2
  import * as i1 from "./button-secondary/button-secondary.component";
3
3
  import * as i2 from "./button-success/button-success.component";
4
4
  import * as i3 from "./button-personalize/button-personalize.component";
5
- import * as i4 from "../api/modules/primeng.module";
5
+ import * as i4 from "./button-popup/button-popup.component";
6
+ import * as i5 from "../api/modules/primeng.module";
6
7
  export declare class KvButtonsModule {
7
8
  static ɵfac: i0.ɵɵFactoryDeclaration<KvButtonsModule, never>;
8
- static ɵmod: i0.ɵɵNgModuleDeclaration<KvButtonsModule, [typeof i1.ButtonSecondaryComponent, typeof i2.ButtonSuccessComponent, typeof i3.ButtonPersonalizeComponent], [typeof i4.PrimeNgModule], [typeof i1.ButtonSecondaryComponent, typeof i2.ButtonSuccessComponent, typeof i3.ButtonPersonalizeComponent]>;
9
+ static ɵmod: i0.ɵɵNgModuleDeclaration<KvButtonsModule, [typeof i1.ButtonSecondaryComponent, typeof i2.ButtonSuccessComponent, typeof i3.ButtonPersonalizeComponent, typeof i4.ButtonPopupComponent], [typeof i5.PrimeNgModule], [typeof i1.ButtonSecondaryComponent, typeof i2.ButtonSuccessComponent, typeof i3.ButtonPersonalizeComponent, typeof i4.ButtonPopupComponent]>;
9
10
  static ɵinj: i0.ɵɵInjectorDeclaration<KvButtonsModule>;
10
11
  }
@@ -16,8 +16,9 @@ import * as i14 from "@angular/common";
16
16
  import * as i15 from "@angular/forms";
17
17
  import * as i16 from "../api/components/error/kverror.module";
18
18
  import * as i17 from "../api/modules/primeng.module";
19
+ import * as i18 from "../label/label.module";
19
20
  export declare class KvInputsModule {
20
21
  static ɵfac: i0.ɵɵFactoryDeclaration<KvInputsModule, never>;
21
- static ɵmod: i0.ɵɵNgModuleDeclaration<KvInputsModule, [typeof i1.CheckComponent, typeof i2.DropdownComponent, typeof i3.InputCalendarComponent, typeof i4.InputMaskComponent, typeof i5.InputNumberComponent, typeof i6.InputPasswordComponent, typeof i7.InputTextComponent, typeof i8.InputTextareaComponent, typeof i9.InputTimeComponent, typeof i10.MultiSelectComponent, typeof i11.SwitchComponent, typeof i12.RadioGroupComponent, typeof i13.InputTextCheckboxComponent], [typeof i14.CommonModule, typeof i15.FormsModule, typeof i16.kvErrorModule, typeof i17.PrimeNgModule, typeof i15.ReactiveFormsModule], [typeof i1.CheckComponent, typeof i2.DropdownComponent, typeof i3.InputCalendarComponent, typeof i4.InputMaskComponent, typeof i5.InputNumberComponent, typeof i6.InputPasswordComponent, typeof i7.InputTextComponent, typeof i8.InputTextareaComponent, typeof i9.InputTimeComponent, typeof i10.MultiSelectComponent, typeof i11.SwitchComponent, typeof i12.RadioGroupComponent, typeof i13.InputTextCheckboxComponent]>;
22
+ static ɵmod: i0.ɵɵNgModuleDeclaration<KvInputsModule, [typeof i1.CheckComponent, typeof i2.DropdownComponent, typeof i3.InputCalendarComponent, typeof i4.InputMaskComponent, typeof i5.InputNumberComponent, typeof i6.InputPasswordComponent, typeof i7.InputTextComponent, typeof i8.InputTextareaComponent, typeof i9.InputTimeComponent, typeof i10.MultiSelectComponent, typeof i11.SwitchComponent, typeof i12.RadioGroupComponent, typeof i13.InputTextCheckboxComponent], [typeof i14.CommonModule, typeof i15.FormsModule, typeof i16.kvErrorModule, typeof i17.PrimeNgModule, typeof i15.ReactiveFormsModule, typeof i18.LabelModule], [typeof i1.CheckComponent, typeof i2.DropdownComponent, typeof i3.InputCalendarComponent, typeof i4.InputMaskComponent, typeof i5.InputNumberComponent, typeof i6.InputPasswordComponent, typeof i7.InputTextComponent, typeof i8.InputTextareaComponent, typeof i9.InputTimeComponent, typeof i10.MultiSelectComponent, typeof i11.SwitchComponent, typeof i12.RadioGroupComponent, typeof i13.InputTextCheckboxComponent]>;
22
23
  static ɵinj: i0.ɵɵInjectorDeclaration<KvInputsModule>;
23
24
  }
@@ -0,0 +1,7 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class LabelComponent {
3
+ componentId: string;
4
+ label: string;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<LabelComponent, never>;
6
+ static ɵcmp: i0.ɵɵComponentDeclaration<LabelComponent, "kv-label", never, { "componentId": "componentId"; "label": "label"; }, {}, never, never, false, never>;
7
+ }
@@ -0,0 +1,8 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./label.component";
3
+ import * as i2 from "@angular/common";
4
+ export declare class LabelModule {
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<LabelModule, never>;
6
+ static ɵmod: i0.ɵɵNgModuleDeclaration<LabelModule, [typeof i1.LabelComponent], [typeof i2.CommonModule], [typeof i1.LabelComponent]>;
7
+ static ɵinj: i0.ɵɵInjectorDeclaration<LabelModule>;
8
+ }
@@ -5,6 +5,7 @@ import { menuModel } from '../api/models/menu/menu.model';
5
5
  import { masterModel } from '../api/models/menu/master.model';
6
6
  import { ActivatedRoute, Router } from '@angular/router';
7
7
  import { OverlayPanel } from 'primeng/overlaypanel';
8
+ import { SimpleChanges } from '@angular/core';
8
9
  import * as i0 from "@angular/core";
9
10
  export declare class MenuComponent implements OnInit {
10
11
  private cdr;
@@ -16,6 +17,7 @@ export declare class MenuComponent implements OnInit {
16
17
  logoImage: any;
17
18
  nomeUsuario: string;
18
19
  breadCrumbs: boolean;
20
+ rotaAtual: any;
19
21
  licencaChange: EventEmitter<any>;
20
22
  gerenciarKeePassEvent: EventEmitter<any>;
21
23
  sairEvent: EventEmitter<any>;
@@ -47,6 +49,7 @@ export declare class MenuComponent implements OnInit {
47
49
  constructor(cdr: ChangeDetectorRef, router: Router, route: ActivatedRoute);
48
50
  ngOnInit(): void;
49
51
  configurarLicencas(): void;
52
+ ngOnChanges(changes: SimpleChanges): void;
50
53
  configurarBreadCrumbs(): void;
51
54
  private getBreadcrumbs;
52
55
  closeCallback(e: Event): void;
@@ -63,5 +66,5 @@ export declare class MenuComponent implements OnInit {
63
66
  ajustarHeigthCard(): number;
64
67
  verificarPaginaSelecionada(link: any): string;
65
68
  static ɵfac: i0.ɵɵFactoryDeclaration<MenuComponent, never>;
66
- static ɵcmp: i0.ɵɵComponentDeclaration<MenuComponent, "kv-menu", never, { "menuCompleto": "menuCompleto"; "licencas": "licencas"; "licencaSelecionada": "licencaSelecionada"; "logoImage": "logoImage"; "nomeUsuario": "nomeUsuario"; "breadCrumbs": "breadCrumbs"; }, { "licencaChange": "licencaChange"; "gerenciarKeePassEvent": "gerenciarKeePassEvent"; "sairEvent": "sairEvent"; "expandMenuEmit": "expandMenuEmit"; }, never, ["*"], false, never>;
69
+ static ɵcmp: i0.ɵɵComponentDeclaration<MenuComponent, "kv-menu", never, { "menuCompleto": "menuCompleto"; "licencas": "licencas"; "licencaSelecionada": "licencaSelecionada"; "logoImage": "logoImage"; "nomeUsuario": "nomeUsuario"; "breadCrumbs": "breadCrumbs"; "rotaAtual": "rotaAtual"; }, { "licencaChange": "licencaChange"; "gerenciarKeePassEvent": "gerenciarKeePassEvent"; "sairEvent": "sairEvent"; "expandMenuEmit": "expandMenuEmit"; }, never, ["*"], false, never>;
67
70
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "keevo-components",
3
- "version": "1.5.141",
3
+ "version": "1.5.143",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^15.2.0",
6
6
  "@angular/core": "^15.2.0",
package/public-api.d.ts CHANGED
@@ -1,66 +1,120 @@
1
+ /**
2
+ * Classes base de componentes
3
+ */
4
+ export * from './lib/api/base-components/base-component';
5
+ export * from './lib/api/base-components/base-component-button';
6
+ export * from './lib/api/base-components/base-component-chart';
7
+ export * from './lib/api/base-components/base-component-crud';
8
+ export * from './lib/api/base-components/base-component-crud-form';
9
+ export * from './lib/api/base-components/base-component-crud-list';
10
+ export * from './lib/api/base-components/base-component-dropdown';
11
+ export * from './lib/api/base-components/base-component-input';
12
+ export * from './lib/api/base-components/base-component-multi-select';
13
+ /**
14
+ * Helpers
15
+ */
16
+ export * from './lib/api/helpers/component-providers';
17
+ export * from './lib/api/helpers/translate-primeng';
18
+ /**
19
+ * Pipes
20
+ */
21
+ export * from './lib/pipes/codigofile.pipe';
22
+ export * from './lib/pipes/cpfcnpj.pipe';
23
+ export * from './lib/pipes/telefone.pipe';
24
+ export * from './lib/pipes/pipes.module';
25
+ /**
26
+ * Services
27
+ */
28
+ export * from './lib/api/services/base.api.service';
29
+ export * from './lib/api/services/component.service';
30
+ export * from './lib/api/services/form.service';
31
+ export * from './lib/api/services/notification.service';
32
+ export * from './lib/api/services/object.service';
33
+ /**
34
+ * PrimeNG
35
+ */
36
+ export * from './lib/api/modules/primeng.module';
37
+ export * from './lib/keevo-components.module';
38
+ /**
39
+ * Charts
40
+ */
41
+ export * from './lib/api/components/chart/chart.config';
42
+ export * from './lib/api/components/chart/chart.model';
43
+ export * from './lib/chart/chart.component';
44
+ export * from './lib/chart/kvchart.module';
45
+ /**
46
+ * Error
47
+ */
48
+ export * from './lib/api/components/error/error.component';
49
+ export * from './lib/api/components/error/kverror.module';
50
+ /**
51
+ * Buttons
52
+ */
53
+ export * from './lib/buttons/button-personalize/button-personalize.component';
54
+ export * from './lib/buttons/button-secondary/button-secondary.component';
55
+ export * from './lib/buttons/button-success/button-success.component';
56
+ export * from './lib/buttons//button-popup/button-popup.component';
57
+ export * from './lib/buttons/kvbutton.module';
58
+ /**
59
+ * Inputs
60
+ */
1
61
  export * from './lib/inputs/check/check.component';
2
62
  export * from './lib/inputs/dropdown/dropdown.component';
3
63
  export * from './lib/inputs/input-calendar/input-calendar.component';
4
64
  export * from './lib/inputs/input-mask/input-mask.component';
5
65
  export * from './lib/inputs/input-number/input-number.component';
6
66
  export * from './lib/inputs/input-password/input-password.component';
67
+ export * from './lib/inputs/input-text-checkbox/input-text-checkbox.component';
7
68
  export * from './lib/inputs/input-text/input-text.component';
8
69
  export * from './lib/inputs/input-textarea/input-textarea.component';
9
70
  export * from './lib/inputs/input-time/input-time.component';
71
+ export * from './lib/inputs/kvinputs.module';
10
72
  export * from './lib/inputs/multi-select/multi-select.component';
11
73
  export * from './lib/inputs/radio-group/radio-group.component';
12
- export * from './lib/inputs/input-text-checkbox/input-text-checkbox.component';
13
74
  export * from './lib/inputs/switch/switch.component';
14
- export * from './lib/buttons/button-secondary/button-secondary.component';
15
- export * from './lib/buttons/button-success/button-success.component';
16
- export * from './lib/buttons/button-personalize/button-personalize.component';
17
- export * from './lib/api/components/error/error.component';
18
- export * from './lib/api/base-components/base-component';
19
- export * from './lib/api/base-components/base-component-button';
20
- export * from './lib/api/base-components/base-component-dropdown';
21
- export * from './lib/api/base-components/base-component-input';
22
- export * from './lib/api/base-components/base-component-chart';
23
- export * from './lib/api/base-components/base-component-multi-select';
24
- export * from './lib/api/base-components/base-component-crud';
25
- export * from './lib/api/base-components/base-component-crud-form';
26
- export * from './lib/api/base-components/base-component-crud-list';
27
- export * from './lib/table/table.component';
28
- export * from './lib/tree-view/tree-view.component';
29
- export * from './lib/chart/chart.component';
75
+ export * from './lib/api/components/dropdown/filtro.combo';
76
+ /**
77
+ * Orgchart
78
+ */
79
+ export * from './lib/orgchart/orgchart.component';
80
+ export * from './lib/orgchart/orgchart.module';
81
+ /**
82
+ * Picklist
83
+ */
84
+ export * from './lib/picklist/kvpicklist.module';
30
85
  export * from './lib/picklist/picklist.component';
31
- export * from './lib/workspace/workspace.component';
32
- export * from './lib/login/login.component';
33
- export * from './lib/keevo-components.module';
34
- export * from './lib/buttons/kvbutton.module';
35
- export * from './lib/inputs/kvinputs.module';
36
- export * from './lib/api/components/error/kverror.module';
86
+ /**
87
+ * Table
88
+ */
37
89
  export * from './lib/table/kvtable.module';
38
- export * from './lib/tree-view/kvtree-view.module';
39
- export * from './lib/pipes/pipes.module';
40
- export * from './lib/api/modules/primeng.module';
41
- export * from './lib/chart/kvchart.module';
42
- export * from './lib/menu/kvmenu.module';
43
- export * from './lib/picklist/kvpicklist.module';
44
- export * from './lib/workspace/kvworkspace.module';
45
- export * from './lib/login/kvlogin.module';
46
- export * from './lib/pipes/codigofile.pipe';
47
- export * from './lib/pipes/cpfcnpj.pipe';
48
- export * from './lib/pipes/telefone.pipe';
49
- export * from './lib/api/helpers/component-providers';
50
- export * from './lib/api/helpers/translate-primeng';
51
- export * from './lib/api/services/component.service';
52
- export * from './lib/api/services/object.service';
53
- export * from './lib/api/services/notification.service';
54
- export * from './lib/api/components/table/table.paginate';
90
+ export * from './lib/table/table.component';
55
91
  export * from './lib/api/components/table/action-item';
92
+ export * from './lib/api/components/table/kv-menuitem';
56
93
  export * from './lib/api/components/table/table.config';
57
94
  export * from './lib/api/components/table/table.config.column';
58
- export * from './lib/api/components/table/kv-menuitem';
59
- export * from './lib/api/components/dropdown/filtro.combo';
60
- export * from './lib/api/components/chart/chart.config';
61
- export * from './lib/api/components/chart/chart.model';
62
- export * from './lib/menu/menu.component';
95
+ export * from './lib/api/components/table/table.paginate';
96
+ /**
97
+ * TreeTable
98
+ */
63
99
  export * from './lib/tree-table/kv-treetable.component';
64
100
  export * from './lib/tree-table/kv-treetable.module';
65
- export * from './lib/orgchart/orgchart.component';
66
- export * from './lib/orgchart/orgchart.module';
101
+ /**
102
+ * Treeview
103
+ */
104
+ export * from './lib/tree-view/kvtree-view.module';
105
+ export * from './lib/tree-view/tree-view.component';
106
+ /**
107
+ * Componente de menu + layout
108
+ */
109
+ export * from './lib/menu/kvmenu.module';
110
+ export * from './lib/menu/menu.component';
111
+ /**
112
+ * Componente de login
113
+ */
114
+ export * from './lib/login/kvlogin.module';
115
+ export * from './lib/login/login.component';
116
+ /**
117
+ * Componente de workspaces
118
+ */
119
+ export * from './lib/workspace/kvworkspace.module';
120
+ export * from './lib/workspace/workspace.component';