keevo-components 1.8.121 → 1.8.123

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 (50) hide show
  1. package/esm2022/lib/api/base-components/base-component-button.mjs +39 -0
  2. package/esm2022/lib/api/base-components/base-component-chart.mjs +92 -0
  3. package/esm2022/lib/api/base-components/base-component-crud-form.mjs +298 -0
  4. package/esm2022/lib/api/base-components/base-component-crud-list.mjs +78 -0
  5. package/esm2022/lib/api/base-components/base-component-crud.mjs +65 -0
  6. package/esm2022/lib/api/base-components/base-component.mjs +51 -0
  7. package/esm2022/lib/api/components/chart/chart.config.mjs +2 -0
  8. package/esm2022/lib/api/components/chart/chart.model.mjs +2 -0
  9. package/esm2022/lib/api/components/table/action-item.mjs +2 -0
  10. package/esm2022/lib/api/components/table/kv-menuitem.mjs +46 -0
  11. package/esm2022/lib/api/components/table/table-dropdown-control.mjs +2 -0
  12. package/esm2022/lib/api/components/table/table.config.column.mjs +2 -0
  13. package/esm2022/lib/api/components/table/table.config.mjs +2 -0
  14. package/esm2022/lib/api/components/table/table.paginate.mjs +9 -0
  15. package/esm2022/lib/api/components/tree-table/tree-table.config.mjs +3 -0
  16. package/esm2022/lib/api/services/component.service.mjs +27 -0
  17. package/esm2022/lib/api/services/form.service.mjs +85 -0
  18. package/esm2022/lib/api/services/notification.service.mjs +67 -0
  19. package/esm2022/lib/api/services/object.service.mjs +39 -0
  20. package/esm2022/lib/api/types/severity.mjs +2 -0
  21. package/esm2022/lib/components/kv-chart/kv-chart.component.mjs +145 -0
  22. package/esm2022/lib/components/kv-error/kv-error.component.mjs +26 -0
  23. package/esm2022/lib/components/kv-loader/kv-loader.service.mjs +29 -0
  24. package/esm2022/lib/components/kv-report/kv-report.component.mjs +6 -4
  25. package/fesm2022/keevo-components.mjs +5 -3
  26. package/fesm2022/keevo-components.mjs.map +1 -1
  27. package/lib/api/base-components/base-component-button.d.ts +15 -0
  28. package/lib/api/base-components/base-component-chart.d.ts +40 -0
  29. package/lib/api/base-components/base-component-crud-form.d.ts +145 -0
  30. package/lib/api/base-components/base-component-crud-list.d.ts +64 -0
  31. package/lib/api/base-components/base-component-crud.d.ts +36 -0
  32. package/lib/api/base-components/base-component.d.ts +22 -0
  33. package/lib/api/components/chart/chart.config.d.ts +11 -0
  34. package/lib/api/components/chart/chart.model.d.ts +9 -0
  35. package/lib/api/components/table/action-item.d.ts +11 -0
  36. package/lib/api/components/table/kv-menuitem.d.ts +152 -0
  37. package/lib/api/components/table/table-dropdown-control.d.ts +6 -0
  38. package/lib/api/components/table/table.config.column.d.ts +25 -0
  39. package/lib/api/components/table/table.config.d.ts +31 -0
  40. package/lib/api/components/table/table.paginate.d.ts +6 -0
  41. package/lib/api/components/tree-table/tree-table.config.d.ts +28 -0
  42. package/lib/api/services/component.service.d.ts +11 -0
  43. package/lib/api/services/form.service.d.ts +28 -0
  44. package/lib/api/services/notification.service.d.ts +25 -0
  45. package/lib/api/services/object.service.d.ts +9 -0
  46. package/lib/api/types/severity.d.ts +2 -0
  47. package/lib/components/kv-chart/kv-chart.component.d.ts +56 -0
  48. package/lib/components/kv-error/kv-error.component.d.ts +12 -0
  49. package/lib/components/kv-loader/kv-loader.service.d.ts +10 -0
  50. package/package.json +1 -1
@@ -0,0 +1,25 @@
1
+ import { ConfirmationService, MessageService } from "primeng/api";
2
+ import * as i0 from "@angular/core";
3
+ export interface QuestionConfig {
4
+ type?: 'question' | 'alert';
5
+ message: string;
6
+ accept?: Function;
7
+ reject?: Function;
8
+ }
9
+ export interface DialogConfig {
10
+ type: 'info' | 'alert' | 'error';
11
+ message: string;
12
+ }
13
+ export declare class NotificationService {
14
+ private readonly confirmationService;
15
+ private readonly messageService;
16
+ constructor(confirmationService: ConfirmationService, messageService: MessageService);
17
+ question(config: QuestionConfig): void;
18
+ dialog(config: DialogConfig): void;
19
+ toastSuccess(message: string, time?: number): void;
20
+ toastInfo(message: string, time?: number): void;
21
+ toastWarn(message: string, time?: number): void;
22
+ toastError(message: string, time?: number): void;
23
+ static ɵfac: i0.ɵɵFactoryDeclaration<NotificationService, never>;
24
+ static ɵprov: i0.ɵɵInjectableDeclaration<NotificationService>;
25
+ }
@@ -0,0 +1,9 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class ObjectService {
3
+ static filterObject(array: any, propertyName: string, value: any): any;
4
+ static findObject(array: any, propertyName: string, value: any): any;
5
+ static getProperty<T>(obj: T, propertyName: string): T[keyof T];
6
+ static objCompare(obj1: any, obj2: any): boolean;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<ObjectService, never>;
8
+ static ɵprov: i0.ɵɵInjectableDeclaration<ObjectService>;
9
+ }
@@ -0,0 +1,2 @@
1
+ type Severity = "primary" | "secondary" | "success" | "info" | "warning" | "help" | "danger";
2
+ export default Severity;
@@ -0,0 +1,56 @@
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
+ import { MenuItem } from 'primeng/api';
3
+ import { UIChart } from 'primeng/chart';
4
+ import { ChartConfig } from '../../api/components/chart/chart.config';
5
+ import * as i0 from "@angular/core";
6
+ export declare const PeriodosChart: {
7
+ Ultimos180Dias: number;
8
+ Ultimos120Dias: number;
9
+ Ultimos90Dias: number;
10
+ Ultimos60Dias: number;
11
+ Ultimos45Dias: number;
12
+ Ultimos30Dias: number;
13
+ Ultimos15Dias: number;
14
+ Ultimos7Dias: number;
15
+ DataAtual: number;
16
+ Proximos7Dias: number;
17
+ Proximos15Dias: number;
18
+ Proximos30Dias: number;
19
+ Proximos45Dias: number;
20
+ Proximos60Dias: number;
21
+ Proximos90Dias: number;
22
+ Proximos120Dias: number;
23
+ Proximos180Dias: number;
24
+ };
25
+ export declare class KvChartComponent implements OnInit {
26
+ chartConfig: ChartConfig;
27
+ periodosDisponiveis: {
28
+ label: string;
29
+ value: number;
30
+ }[];
31
+ title: string;
32
+ type: 'doughnut' | 'pie' | 'bar' | 'line';
33
+ indexAxis: 'y' | 'x';
34
+ displayLegend: boolean;
35
+ showDatas: boolean;
36
+ showMenu: boolean;
37
+ selectedData: number;
38
+ enablePeriodos: number[];
39
+ data: any;
40
+ options: any;
41
+ periodos: any[];
42
+ menuItems: MenuItem[];
43
+ onPrintReport: EventEmitter<any>;
44
+ onSelectionValue: EventEmitter<any>;
45
+ chart?: UIChart;
46
+ constructor();
47
+ configureGraphic(): void;
48
+ private configOptions;
49
+ private initDatas;
50
+ ngOnInit(): void;
51
+ printReport(): void;
52
+ reInit(config: any): void;
53
+ protected selectionValue(event: any): void;
54
+ static ɵfac: i0.ɵɵFactoryDeclaration<KvChartComponent, never>;
55
+ static ɵcmp: i0.ɵɵComponentDeclaration<KvChartComponent, "kv-chart", never, { "title": { "alias": "title"; "required": false; }; "type": { "alias": "type"; "required": false; }; "indexAxis": { "alias": "indexAxis"; "required": false; }; "displayLegend": { "alias": "displayLegend"; "required": false; }; "showDatas": { "alias": "showDatas"; "required": false; }; "showMenu": { "alias": "showMenu"; "required": false; }; "selectedData": { "alias": "selectedData"; "required": false; }; "enablePeriodos": { "alias": "enablePeriodos"; "required": false; }; }, { "onPrintReport": "onPrintReport"; "onSelectionValue": "onSelectionValue"; }, never, never, false, never>;
56
+ }
@@ -0,0 +1,12 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import { FormControl } from '@angular/forms';
3
+ import * as i0 from "@angular/core";
4
+ export declare class KvErrorComponent {
5
+ hasError: boolean | undefined;
6
+ formControl: FormControl;
7
+ set setHasError(value: boolean | undefined);
8
+ emitError: EventEmitter<boolean>;
9
+ constructor();
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<KvErrorComponent, never>;
11
+ static ɵcmp: i0.ɵɵComponentDeclaration<KvErrorComponent, "kv-error", never, { "formControl": { "alias": "formControl"; "required": false; }; "setHasError": { "alias": "hasError"; "required": false; }; }, {}, never, ["*"], false, never>;
12
+ }
@@ -0,0 +1,10 @@
1
+ import { Subject } from 'rxjs';
2
+ import * as i0 from "@angular/core";
3
+ export declare class KvLoaderService {
4
+ static isLoading: Subject<boolean>;
5
+ static show(): void;
6
+ static hide(): void;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<KvLoaderService, never>;
8
+ static ɵprov: i0.ɵɵInjectableDeclaration<KvLoaderService>;
9
+ }
10
+ export declare const loading: () => any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "keevo-components",
3
- "version": "1.8.121",
3
+ "version": "1.8.123",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.3.8",
6
6
  "@angular/core": "^17.3.8",