keevo-components 1.8.121 → 1.8.122
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/esm2022/lib/api/base-components/base-component-button.mjs +39 -0
- package/esm2022/lib/api/base-components/base-component-chart.mjs +92 -0
- package/esm2022/lib/api/base-components/base-component-crud-form.mjs +298 -0
- package/esm2022/lib/api/base-components/base-component-crud-list.mjs +78 -0
- package/esm2022/lib/api/base-components/base-component-crud.mjs +65 -0
- package/esm2022/lib/api/base-components/base-component.mjs +51 -0
- package/esm2022/lib/api/components/chart/chart.config.mjs +2 -0
- package/esm2022/lib/api/components/chart/chart.model.mjs +2 -0
- package/esm2022/lib/api/components/table/action-item.mjs +2 -0
- package/esm2022/lib/api/components/table/kv-menuitem.mjs +46 -0
- package/esm2022/lib/api/components/table/table-dropdown-control.mjs +2 -0
- package/esm2022/lib/api/components/table/table.config.column.mjs +2 -0
- package/esm2022/lib/api/components/table/table.config.mjs +2 -0
- package/esm2022/lib/api/components/table/table.paginate.mjs +9 -0
- package/esm2022/lib/api/components/tree-table/tree-table.config.mjs +3 -0
- package/esm2022/lib/api/services/component.service.mjs +27 -0
- package/esm2022/lib/api/services/form.service.mjs +85 -0
- package/esm2022/lib/api/services/notification.service.mjs +67 -0
- package/esm2022/lib/api/services/object.service.mjs +39 -0
- package/esm2022/lib/api/types/severity.mjs +2 -0
- package/esm2022/lib/components/kv-chart/kv-chart.component.mjs +145 -0
- package/esm2022/lib/components/kv-error/kv-error.component.mjs +26 -0
- package/esm2022/lib/components/kv-loader/kv-loader.service.mjs +29 -0
- package/lib/api/base-components/base-component-button.d.ts +15 -0
- package/lib/api/base-components/base-component-chart.d.ts +40 -0
- package/lib/api/base-components/base-component-crud-form.d.ts +145 -0
- package/lib/api/base-components/base-component-crud-list.d.ts +64 -0
- package/lib/api/base-components/base-component-crud.d.ts +36 -0
- package/lib/api/base-components/base-component.d.ts +22 -0
- package/lib/api/components/chart/chart.config.d.ts +11 -0
- package/lib/api/components/chart/chart.model.d.ts +9 -0
- package/lib/api/components/table/action-item.d.ts +11 -0
- package/lib/api/components/table/kv-menuitem.d.ts +152 -0
- package/lib/api/components/table/table-dropdown-control.d.ts +6 -0
- package/lib/api/components/table/table.config.column.d.ts +25 -0
- package/lib/api/components/table/table.config.d.ts +31 -0
- package/lib/api/components/table/table.paginate.d.ts +6 -0
- package/lib/api/components/tree-table/tree-table.config.d.ts +28 -0
- package/lib/api/services/component.service.d.ts +11 -0
- package/lib/api/services/form.service.d.ts +28 -0
- package/lib/api/services/notification.service.d.ts +25 -0
- package/lib/api/services/object.service.d.ts +9 -0
- package/lib/api/types/severity.d.ts +2 -0
- package/lib/components/kv-chart/kv-chart.component.d.ts +56 -0
- package/lib/components/kv-error/kv-error.component.d.ts +12 -0
- package/lib/components/kv-loader/kv-loader.service.d.ts +10 -0
- package/package.json +1 -1
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { TableConfigColumn } from '../table/table.config.column';
|
|
2
|
+
import { KvMenuItem, ValueOrFn } from '../table/kv-menuitem';
|
|
3
|
+
import Severity from '../../types/severity';
|
|
4
|
+
import { ActionsLoteItem } from '../table/table.config';
|
|
5
|
+
export interface TreeTableConfig {
|
|
6
|
+
actions?: KvMenuItem[];
|
|
7
|
+
actionsLote?: ActionsLoteItem[];
|
|
8
|
+
actionsPai?: ActionsPaiItem[];
|
|
9
|
+
columns: TableConfigColumn[];
|
|
10
|
+
dataKey?: string;
|
|
11
|
+
rows?: any;
|
|
12
|
+
title?: string;
|
|
13
|
+
subtitle?: string;
|
|
14
|
+
lazy: boolean;
|
|
15
|
+
fieldGroup?: string;
|
|
16
|
+
enableCation?: boolean;
|
|
17
|
+
enableFilter?: boolean;
|
|
18
|
+
enableSelect?: boolean;
|
|
19
|
+
enableToggleNodes?: boolean;
|
|
20
|
+
disableControlCheckboxFunction?: (rowData: any, rowNode?: any) => boolean;
|
|
21
|
+
}
|
|
22
|
+
interface ActionsPaiItem {
|
|
23
|
+
severity?: Severity;
|
|
24
|
+
visible?: ValueOrFn<boolean | undefined>;
|
|
25
|
+
command: (event: MouseEvent) => void;
|
|
26
|
+
icon: string;
|
|
27
|
+
}
|
|
28
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ChangeDetectorRef, Injector } from '@angular/core';
|
|
2
|
+
import { FormControl } from '@angular/forms';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ComponentService {
|
|
5
|
+
readonly injector: Injector;
|
|
6
|
+
changeDetectorRef: ChangeDetectorRef;
|
|
7
|
+
constructor(injector: Injector, changeDetectorRef: ChangeDetectorRef);
|
|
8
|
+
getFormControl(): FormControl<any> | undefined;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ComponentService, never>;
|
|
10
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ComponentService>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Type } from '@angular/core';
|
|
2
|
+
import { FormGroup, ValidatorFn } from '@angular/forms';
|
|
3
|
+
import { DialogService } from 'primeng/dynamicdialog';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export interface paramsDialog {
|
|
6
|
+
id?: any;
|
|
7
|
+
closable?: boolean;
|
|
8
|
+
maximizable?: boolean;
|
|
9
|
+
popup?: boolean;
|
|
10
|
+
height?: string;
|
|
11
|
+
width?: string;
|
|
12
|
+
styleClass?: string;
|
|
13
|
+
header?: string;
|
|
14
|
+
}
|
|
15
|
+
export declare class FormService {
|
|
16
|
+
static disableControl(formGroup: FormGroup, controName: string): void;
|
|
17
|
+
static disableAndClearControl(formGroup: FormGroup, controName: string, value?: any): void;
|
|
18
|
+
static enableControl(formGroup: FormGroup, controName: string): void;
|
|
19
|
+
static getFormValue<T>(formGroup: FormGroup, controName: string): T;
|
|
20
|
+
static hasControlError(formGroup: FormGroup, control: string, errorCode?: string): boolean;
|
|
21
|
+
static invalidForm(formGroup: FormGroup, notification?: any): void;
|
|
22
|
+
static openDialog(dialogService: DialogService, componentType: Type<any>, callBackFunction: Function, paramsDialog?: paramsDialog): void;
|
|
23
|
+
static setControlValue(formGroup: FormGroup, controName: string, value: any): void;
|
|
24
|
+
static setValidators(formGroup: FormGroup, controName: string, validators: ValidatorFn | ValidatorFn[] | null): void;
|
|
25
|
+
static clearValidators(formGroup: FormGroup, controName: string): void;
|
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormService, never>;
|
|
27
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<FormService>;
|
|
28
|
+
}
|
|
@@ -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,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;
|