keevo-components 1.8.135 → 1.8.137
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/components/table/table.config.mjs +1 -1
- package/esm2022/lib/components/keevo-components.module.mjs +14 -7
- package/esm2022/lib/components/kv-table/kv-table.component.mjs +3 -3
- package/esm2022/lib/components/kv-table-edit/kv-table-edit.component.mjs +3 -3
- package/esm2022/lib/components/kv-table-expandable/kv-table-expandable.component.mjs +483 -0
- package/esm2022/lib/components/kv-table-expandable/kv-table-expandable.module.mjs +36 -0
- package/esm2022/lib/components/kv-tree-table/kv-tree-table.component.mjs +3 -3
- package/esm2022/public-api.mjs +6 -1
- package/fesm2022/keevo-components.mjs +527 -29
- package/fesm2022/keevo-components.mjs.map +1 -1
- package/lib/api/components/table/table.config.d.ts +1 -0
- package/lib/components/keevo-components.module.d.ts +3 -2
- package/lib/components/kv-table/kv-table.component.d.ts +1 -1
- package/lib/components/kv-table-expandable/kv-table-expandable.component.d.ts +110 -0
- package/lib/components/kv-table-expandable/kv-table-expandable.module.d.ts +12 -0
- package/package.json +1 -1
- package/public-api.d.ts +5 -0
|
@@ -16,6 +16,7 @@ export interface TableConfig {
|
|
|
16
16
|
enableSelect?: boolean;
|
|
17
17
|
enableToggleNodes?: boolean;
|
|
18
18
|
disableControlCheckboxFunction?: (rowData: any, rowNode?: any) => boolean;
|
|
19
|
+
fieldGroupColorFunction?: (data: any) => string;
|
|
19
20
|
}
|
|
20
21
|
export interface ActionsLoteItem {
|
|
21
22
|
/**
|
|
@@ -18,9 +18,10 @@ import * as i16 from "./kv-tree-view/kv-tree-view.module";
|
|
|
18
18
|
import * as i17 from "./kv-workspace/kv-workspace.module";
|
|
19
19
|
import * as i18 from "./kv-stepper/kv-stepper.module";
|
|
20
20
|
import * as i19 from "./kv-image-upload/kv-image-upload.module";
|
|
21
|
-
import * as i20 from "./kv-table-
|
|
21
|
+
import * as i20 from "./kv-table-expandable/kv-table-expandable.module";
|
|
22
|
+
import * as i21 from "./kv-table-edit/kv-table-edit.module";
|
|
22
23
|
export declare class KeevoComponentsModule {
|
|
23
24
|
static ɵfac: i0.ɵɵFactoryDeclaration<KeevoComponentsModule, never>;
|
|
24
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<KeevoComponentsModule, never, [typeof i1.KvAvatarModule, typeof i2.KvButtonsModule, typeof i3.KvCarouselModule, typeof i4.KvChartModule, typeof i5.KvInputsModule, typeof i6.KvLoaderModule, typeof i7.KvLoginModule, typeof i8.KvMenuModule, typeof i9.KvModalModule, typeof i10.KvOrgchartModule, typeof i11.KvPageFormModule, typeof i12.KvPickListModule, typeof i13.KvProgressBarModule, typeof i14.KvTableModule, typeof i15.KvTreetableModule, typeof i16.KvtreeViewModule, typeof i17.KvWorkspaceModule, typeof i18.KvStepperModule, typeof i19.KvImageUploadModule], [typeof i1.KvAvatarModule, typeof i2.KvButtonsModule, typeof i3.KvCarouselModule, typeof i4.KvChartModule, typeof i5.KvInputsModule, typeof i6.KvLoaderModule, typeof i7.KvLoginModule, typeof i8.KvMenuModule, typeof i9.KvModalModule, typeof i10.KvOrgchartModule, typeof i11.KvPageFormModule, typeof i12.KvPickListModule, typeof i13.KvProgressBarModule, typeof
|
|
25
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<KeevoComponentsModule, never, [typeof i1.KvAvatarModule, typeof i2.KvButtonsModule, typeof i3.KvCarouselModule, typeof i4.KvChartModule, typeof i5.KvInputsModule, typeof i6.KvLoaderModule, typeof i7.KvLoginModule, typeof i8.KvMenuModule, typeof i9.KvModalModule, typeof i10.KvOrgchartModule, typeof i11.KvPageFormModule, typeof i12.KvPickListModule, typeof i13.KvProgressBarModule, typeof i14.KvTableModule, typeof i15.KvTreetableModule, typeof i16.KvtreeViewModule, typeof i17.KvWorkspaceModule, typeof i18.KvStepperModule, typeof i19.KvImageUploadModule, typeof i20.KvTableExpandableModule], [typeof i1.KvAvatarModule, typeof i2.KvButtonsModule, typeof i3.KvCarouselModule, typeof i4.KvChartModule, typeof i5.KvInputsModule, typeof i6.KvLoaderModule, typeof i7.KvLoginModule, typeof i8.KvMenuModule, typeof i9.KvModalModule, typeof i10.KvOrgchartModule, typeof i11.KvPageFormModule, typeof i12.KvPickListModule, typeof i13.KvProgressBarModule, typeof i21.KvTableEditModule, typeof i14.KvTableModule, typeof i15.KvTreetableModule, typeof i16.KvtreeViewModule, typeof i17.KvWorkspaceModule, typeof i18.KvStepperModule, typeof i19.KvImageUploadModule, typeof i20.KvTableExpandableModule]>;
|
|
25
26
|
static ɵinj: i0.ɵɵInjectorDeclaration<KeevoComponentsModule>;
|
|
26
27
|
}
|
|
@@ -99,7 +99,7 @@ export declare class KvTableComponent implements OnInit, DoCheck {
|
|
|
99
99
|
addColumn(field: string): void;
|
|
100
100
|
dinamicColumnSet(e: any, col: any): void;
|
|
101
101
|
checkMenuFiltro(col: any): void;
|
|
102
|
-
sortByPosition(): (elem1: any, elem2: any) => 1 |
|
|
102
|
+
sortByPosition(): (elem1: any, elem2: any) => 1 | -1 | 0;
|
|
103
103
|
dinamicDisableColumn(col: TableConfigColumn): boolean;
|
|
104
104
|
checkHideColumns(): void;
|
|
105
105
|
getCustomTemplate(templatename: string): TemplateRef<any>;
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { DoCheck, EventEmitter, OnInit, TemplateRef } from '@angular/core';
|
|
2
|
+
import { TableConfig } from '../../api/components/table/table.config';
|
|
3
|
+
import { Table } from 'primeng/table';
|
|
4
|
+
import { TableConfigColumn } from '../../api/components/table/table.config.column';
|
|
5
|
+
import { ValueOrFn } from '../../api/components/table/kv-menuitem';
|
|
6
|
+
import { DatePipe, DecimalPipe } from '@angular/common';
|
|
7
|
+
import { CpfCnpjPipe } from '../../api/pipes/cpfcnpj.pipe';
|
|
8
|
+
import { TelefonePipe } from '../../api/pipes/telefone.pipe';
|
|
9
|
+
import { MenuItem } from 'primeng/api';
|
|
10
|
+
import { TablePaginate } from '../../api/components/table/table.paginate';
|
|
11
|
+
import * as i0 from "@angular/core";
|
|
12
|
+
export declare class KvTableExpandableComponent implements OnInit, DoCheck {
|
|
13
|
+
private readonly datePipe;
|
|
14
|
+
private readonly decimalPipe;
|
|
15
|
+
private readonly cpfCnpjPipe;
|
|
16
|
+
private readonly telefonePipe;
|
|
17
|
+
expandedRows: any;
|
|
18
|
+
config: TableConfig;
|
|
19
|
+
globalFilterFields: string[];
|
|
20
|
+
tamanhoTela: number;
|
|
21
|
+
columns: TableConfigColumn[];
|
|
22
|
+
deletedColuns: TableConfigColumn[];
|
|
23
|
+
dataIndex: {
|
|
24
|
+
[key: string]: any;
|
|
25
|
+
};
|
|
26
|
+
menuItems: MenuItem[];
|
|
27
|
+
collapsed: boolean;
|
|
28
|
+
tableData: {
|
|
29
|
+
data: any;
|
|
30
|
+
actions?: MenuItem[];
|
|
31
|
+
}[];
|
|
32
|
+
currDataSource: any[];
|
|
33
|
+
_templates: any;
|
|
34
|
+
set setConfig(value: TableConfig);
|
|
35
|
+
filtrosAvancados: boolean;
|
|
36
|
+
dataSource: any[];
|
|
37
|
+
selectedItems: any[];
|
|
38
|
+
tableCaptalized: boolean;
|
|
39
|
+
applyStyle: Function;
|
|
40
|
+
tableSize: number;
|
|
41
|
+
paginator: boolean;
|
|
42
|
+
rows: number;
|
|
43
|
+
rowsPerPageOptions: number[];
|
|
44
|
+
totalRecords: number;
|
|
45
|
+
pageLinksOptions: number;
|
|
46
|
+
responsiveLayout: boolean;
|
|
47
|
+
isTableScrollable: boolean;
|
|
48
|
+
scrollHeight: string;
|
|
49
|
+
rowTrackBy: Function;
|
|
50
|
+
showFirstLastIcon: boolean;
|
|
51
|
+
filterField: EventEmitter<any>;
|
|
52
|
+
onActiveItem: EventEmitter<any>;
|
|
53
|
+
onActiveItemLote: EventEmitter<any>;
|
|
54
|
+
doubleClickEvent: EventEmitter<any>;
|
|
55
|
+
onSwitchTableChange: EventEmitter<any>;
|
|
56
|
+
onPaginate: EventEmitter<TablePaginate>;
|
|
57
|
+
onSelectionChange: EventEmitter<any>;
|
|
58
|
+
constructor(datePipe: DatePipe, decimalPipe: DecimalPipe, cpfCnpjPipe: CpfCnpjPipe, telefonePipe: TelefonePipe);
|
|
59
|
+
ngOnInit(): void;
|
|
60
|
+
ngDoCheck(): void;
|
|
61
|
+
onGlobalFilter(table: Table, event: Event): void;
|
|
62
|
+
adicionaAcoesTabela(): void;
|
|
63
|
+
checkMenuFiltro(col: any): void;
|
|
64
|
+
sortByPosition(): (elem1: any, elem2: any) => 1 | -1 | 0;
|
|
65
|
+
dinamicDisableColumn(col: TableConfigColumn): boolean;
|
|
66
|
+
dinamicColumnSet(e: any, col: any): void;
|
|
67
|
+
addColumn(field: string): void;
|
|
68
|
+
deleteColumn(field: string): void;
|
|
69
|
+
doubleClick(e: any, rowData: any): void;
|
|
70
|
+
centralizarColunas(col: any): string;
|
|
71
|
+
alignColunas(col: any): string;
|
|
72
|
+
alignColunasHeader(col: any): string;
|
|
73
|
+
retornarRow(rowData: any, col: any, field: string): string;
|
|
74
|
+
returnTooltipRow(rowData: any, col: any): any;
|
|
75
|
+
getOrExecute<T>(action: ValueOrFn<T>, data: any): T;
|
|
76
|
+
isBooleanField(rowData: any, col: TableConfigColumn): boolean;
|
|
77
|
+
isChipField(col: TableConfigColumn): boolean;
|
|
78
|
+
isImageField(col: TableConfigColumn): boolean;
|
|
79
|
+
isSwitchField(col: TableConfigColumn): boolean;
|
|
80
|
+
isRowSelectable(event: any): boolean;
|
|
81
|
+
activeItemLote(selectedItems: any): void;
|
|
82
|
+
selectItem(event: any, group: any): void;
|
|
83
|
+
isSelected(item: any): boolean;
|
|
84
|
+
activeItem(rowData: any): void;
|
|
85
|
+
selectGroup(event: any, grouped: any, valor: any): void;
|
|
86
|
+
isAllGroupSelected(grouped: any, valor: any): boolean;
|
|
87
|
+
isGroupIndeterminate(grouped: any, valor: any): boolean;
|
|
88
|
+
selectAll(event: any): void;
|
|
89
|
+
isAllIndeterminate(): boolean;
|
|
90
|
+
isAllSelected(): boolean;
|
|
91
|
+
transformValue(rowData: any, col: TableConfigColumn): any;
|
|
92
|
+
getCustomTemplate(templatename: string): TemplateRef<any>;
|
|
93
|
+
formatarValor(valor: number): string;
|
|
94
|
+
returnRowClass(rowData: any, col: TableConfigColumn): string;
|
|
95
|
+
returnClassChip(rowData: any, col: any): string;
|
|
96
|
+
returnClassIcon(rowData: any, col: any): string;
|
|
97
|
+
returnTooltipIcon(rowData: any, col: any): string;
|
|
98
|
+
isDisabledCheckbox(rowData: any): boolean;
|
|
99
|
+
loadImage(rowData: any, col: TableConfigColumn): string;
|
|
100
|
+
onSwitchChange(estado: any, rowData: boolean, col: any): void;
|
|
101
|
+
paginate(event: any): void;
|
|
102
|
+
selectionChange(value: any): void;
|
|
103
|
+
expandAll(): void;
|
|
104
|
+
collapseAll(): void;
|
|
105
|
+
createDataIndex(): void;
|
|
106
|
+
returnRowDataActions(rowData: any): void;
|
|
107
|
+
onSort(e: any): void;
|
|
108
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KvTableExpandableComponent, never>;
|
|
109
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KvTableExpandableComponent, "kv-table-expandable", never, { "_templates": { "alias": "templates"; "required": false; }; "setConfig": { "alias": "config"; "required": false; }; "filtrosAvancados": { "alias": "filtrosAvancados"; "required": false; }; "dataSource": { "alias": "dataSource"; "required": false; }; "selectedItems": { "alias": "selectedItems"; "required": false; }; "tableCaptalized": { "alias": "tableCaptalized"; "required": false; }; "applyStyle": { "alias": "applyStyle"; "required": false; }; "tableSize": { "alias": "tableSize"; "required": false; }; "paginator": { "alias": "paginator"; "required": false; }; "rows": { "alias": "rows"; "required": false; }; "rowsPerPageOptions": { "alias": "rowsPerPageOptions"; "required": false; }; "totalRecords": { "alias": "totalRecords"; "required": false; }; "pageLinksOptions": { "alias": "pageLinksOptions"; "required": false; }; "responsiveLayout": { "alias": "responsiveLayout"; "required": false; }; "isTableScrollable": { "alias": "isTableScrollable"; "required": false; }; "scrollHeight": { "alias": "scrollHeight"; "required": false; }; "rowTrackBy": { "alias": "rowTrackBy"; "required": false; }; "showFirstLastIcon": { "alias": "showFirstLastIcon"; "required": false; }; }, { "filterField": "filterField"; "onActiveItem": "onActiveItem"; "onActiveItemLote": "onActiveItemLote"; "doubleClickEvent": "doubleClickEvent"; "onSwitchTableChange": "onSwitchTableChange"; "onPaginate": "onPaginate"; "onSelectionChange": "onSelectionChange"; }, never, ["*"], false, never>;
|
|
110
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./kv-table-expandable.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "../../api/modules/primeng.module";
|
|
5
|
+
import * as i4 from "@angular/forms";
|
|
6
|
+
import * as i5 from "../kv-inputs/kv-inputs.module";
|
|
7
|
+
import * as i6 from "../kv-buttons/kv-button.module";
|
|
8
|
+
export declare class KvTableExpandableModule {
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KvTableExpandableModule, never>;
|
|
10
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<KvTableExpandableModule, [typeof i1.KvTableExpandableComponent], [typeof i2.CommonModule, typeof i3.PrimeNgModule, typeof i4.FormsModule, typeof i5.KvInputsModule, typeof i6.KvButtonsModule], [typeof i1.KvTableExpandableComponent]>;
|
|
11
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<KvTableExpandableModule>;
|
|
12
|
+
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -111,6 +111,11 @@ export * from './lib/components/kv-table/kv-table.module';
|
|
|
111
111
|
*/
|
|
112
112
|
export * from './lib/components/kv-tree-table/kv-tree-table.component';
|
|
113
113
|
export * from './lib/components/kv-tree-table/kv-tree-table.module';
|
|
114
|
+
/**
|
|
115
|
+
* Table Expandable
|
|
116
|
+
*/
|
|
117
|
+
export * from './lib/components/kv-table-expandable/kv-table-expandable.component';
|
|
118
|
+
export * from './lib/components/kv-table-expandable/kv-table-expandable.module';
|
|
114
119
|
/**
|
|
115
120
|
* Treeview
|
|
116
121
|
*/
|