keevo-components 1.8.254 → 1.8.257
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-crud-list.mjs +10 -3
- package/esm2022/lib/api/components/tree-table/tree-table.config.mjs +1 -1
- package/esm2022/lib/components/kv-table/kv-table.component.mjs +1 -1
- package/esm2022/lib/components/kv-tree-table/kv-tree-table.component.mjs +26 -7
- package/esm2022/lib/components/kv-tree-table/kv-tree-table.module.mjs +8 -1
- package/fesm2022/keevo-components.mjs +425 -395
- package/fesm2022/keevo-components.mjs.map +1 -1
- package/lib/api/base-components/base-component-crud-list.d.ts +3 -0
- package/lib/api/components/tree-table/tree-table.config.d.ts +1 -0
- package/lib/components/kv-table/kv-table.component.d.ts +1 -1
- package/lib/components/kv-table-expandable/kv-table-expandable.component.d.ts +1 -1
- package/lib/components/kv-tree-table/kv-tree-table.component.d.ts +7 -1
- package/lib/components/kv-tree-table/kv-tree-table.module.d.ts +2 -1
- package/package.json +1 -1
|
@@ -9,6 +9,7 @@ import { NotificationService } from "../services/notification.service";
|
|
|
9
9
|
import { Observable } from "rxjs";
|
|
10
10
|
import { TreeTableConfig } from "../components/tree-table/tree-table.config";
|
|
11
11
|
import { KvTableComponent } from "../../components/kv-table/kv-table.component";
|
|
12
|
+
import { KvTreetableComponent } from "../../components/kv-tree-table/kv-tree-table.component";
|
|
12
13
|
import * as i0 from "@angular/core";
|
|
13
14
|
export declare abstract class BaseComponentCrudList extends BaseComponentCrud implements OnInit {
|
|
14
15
|
router: Router;
|
|
@@ -18,6 +19,7 @@ export declare abstract class BaseComponentCrudList extends BaseComponentCrud im
|
|
|
18
19
|
totalRecords: number;
|
|
19
20
|
actionsPageList: ActionItem[];
|
|
20
21
|
table: KvTableComponent;
|
|
22
|
+
treetable: KvTreetableComponent;
|
|
21
23
|
constructor(dialogService: DialogService, notificationService: NotificationService, router: Router);
|
|
22
24
|
ngOnInit(): void;
|
|
23
25
|
/**
|
|
@@ -62,6 +64,7 @@ export declare abstract class BaseComponentCrudList extends BaseComponentCrud im
|
|
|
62
64
|
*/
|
|
63
65
|
protected refresh(): void;
|
|
64
66
|
protected resetTable(): void;
|
|
67
|
+
protected resetTreeTable(): void;
|
|
65
68
|
static ɵfac: i0.ɵɵFactoryDeclaration<BaseComponentCrudList, never>;
|
|
66
69
|
static ɵcmp: i0.ɵɵComponentDeclaration<BaseComponentCrudList, "ng-component", never, {}, {}, never, never, false, never>;
|
|
67
70
|
}
|
|
@@ -17,6 +17,7 @@ export interface TreeTableConfig {
|
|
|
17
17
|
enableSelect?: boolean;
|
|
18
18
|
enableToggleNodes?: boolean;
|
|
19
19
|
disableControlCheckboxFunction?: (rowData: any, rowNode?: any) => boolean;
|
|
20
|
+
disableControlEnableFunction?: (rowData: any, rowNode?: any) => boolean;
|
|
20
21
|
}
|
|
21
22
|
interface ActionsPaiItem {
|
|
22
23
|
severity?: 'primary' | 'secondary' | 'tertiary';
|
|
@@ -126,7 +126,7 @@ export declare class KvTableComponent implements OnInit, DoCheck, AfterViewInit
|
|
|
126
126
|
onClickEvent(event: any): void;
|
|
127
127
|
styleSetter(style: string, data: string): void;
|
|
128
128
|
checkMenuFiltro(col: any): void;
|
|
129
|
-
sortByPosition(): (elem1: any, elem2: any) =>
|
|
129
|
+
sortByPosition(): (elem1: any, elem2: any) => 1 | 0 | -1;
|
|
130
130
|
dinamicDisableColumn(col: TableConfigColumn): boolean;
|
|
131
131
|
checkHideColumns(): void;
|
|
132
132
|
getCustomTemplate(templatename: string): TemplateRef<any>;
|
|
@@ -61,7 +61,7 @@ export declare class KvTableExpandableComponent implements OnInit, DoCheck {
|
|
|
61
61
|
onGlobalFilter(table: Table, event: Event): void;
|
|
62
62
|
adicionaAcoesTabela(): void;
|
|
63
63
|
checkMenuFiltro(col: any): void;
|
|
64
|
-
sortByPosition(): (elem1: any, elem2: any) =>
|
|
64
|
+
sortByPosition(): (elem1: any, elem2: any) => 1 | 0 | -1;
|
|
65
65
|
dinamicDisableColumn(col: TableConfigColumn): boolean;
|
|
66
66
|
dinamicColumnSet(e: any, col: any): void;
|
|
67
67
|
addColumn(field: string): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EventEmitter, QueryList, TemplateRef } from '@angular/core';
|
|
1
|
+
import { ElementRef, EventEmitter, QueryList, TemplateRef } from '@angular/core';
|
|
2
2
|
import { MenuItem, TreeNode } from 'primeng/api';
|
|
3
3
|
import { TreeTable } from 'primeng/treetable';
|
|
4
4
|
import { ValueOrFn } from '../../api/components/table/kv-menuitem';
|
|
@@ -7,6 +7,7 @@ import { CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
|
7
7
|
import { TableConfigColumn } from '../../api/components/table/table.config.column';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
export declare class KvTreetableComponent {
|
|
10
|
+
private elementRef;
|
|
10
11
|
menuItems: MenuItem[];
|
|
11
12
|
tamanhoTela: number;
|
|
12
13
|
config: TreeTableConfig;
|
|
@@ -22,6 +23,7 @@ export declare class KvTreetableComponent {
|
|
|
22
23
|
totalRecords: number;
|
|
23
24
|
textoEmptyMessage: string;
|
|
24
25
|
childrenRecoil: boolean;
|
|
26
|
+
constructor(elementRef: ElementRef);
|
|
25
27
|
/**
|
|
26
28
|
* @deprecated O valor de pageLinks é atribuído de acordo com o tamanho da tela, essa propriedade não está sendo utilizada
|
|
27
29
|
*/
|
|
@@ -45,6 +47,8 @@ export declare class KvTreetableComponent {
|
|
|
45
47
|
ngOnInit(): void;
|
|
46
48
|
templates: QueryList<any>;
|
|
47
49
|
_templates: any;
|
|
50
|
+
pTreeTable: TreeTable;
|
|
51
|
+
inputBusca: ElementRef;
|
|
48
52
|
onWindowResize(): void;
|
|
49
53
|
activeItem(rowData: any): void;
|
|
50
54
|
activeItemLote(rowData: any): void;
|
|
@@ -59,12 +63,14 @@ export declare class KvTreetableComponent {
|
|
|
59
63
|
validateActionPosition(rowNode: any): boolean;
|
|
60
64
|
doubleClick(e: any, rowData: any): void;
|
|
61
65
|
isDisabledCheckbox(rowData: any, rowNode: any): boolean;
|
|
66
|
+
isSelectEnabled(rowData: any, rowNode: any): boolean;
|
|
62
67
|
onNodeSelected(event: any): void;
|
|
63
68
|
onNodeUnselected(event: any): void;
|
|
64
69
|
getCustomTemplate(templatename: string): TemplateRef<any>;
|
|
65
70
|
validateShowTemplate(rowNode: any, col: any): boolean;
|
|
66
71
|
getIcon(icon: string): string;
|
|
67
72
|
align(col: TableConfigColumn): string;
|
|
73
|
+
resetTreeTable(): void;
|
|
68
74
|
static ɵfac: i0.ɵɵFactoryDeclaration<KvTreetableComponent, never>;
|
|
69
75
|
static ɵcmp: i0.ɵɵComponentDeclaration<KvTreetableComponent, "kv-tree-table", never, { "config": { "alias": "config"; "required": false; }; "dataSource": { "alias": "dataSource"; "required": false; }; "gridLines": { "alias": "gridLines"; "required": false; }; "tableCaptalized": { "alias": "tableCaptalized"; "required": false; }; "selectedItems": { "alias": "selectedItems"; "required": false; }; "paginator": { "alias": "paginator"; "required": false; }; "rows": { "alias": "rows"; "required": false; }; "treeTableDraggable": { "alias": "treeTableDraggable"; "required": false; }; "transferArrayItem": { "alias": "transferArrayItem"; "required": false; }; "ordenacao": { "alias": "ordenacao"; "required": false; }; "totalRecords": { "alias": "totalRecords"; "required": false; }; "textoEmptyMessage": { "alias": "textoEmptyMessage"; "required": false; }; "childrenRecoil": { "alias": "childrenRecoil"; "required": false; }; "pageLinksOptions": { "alias": "pageLinksOptions"; "required": false; }; "pageLinks": { "alias": "pageLinks"; "required": false; }; "showFirstLastIcon": { "alias": "showFirstLastIcon"; "required": false; }; "_templates": { "alias": "templates"; "required": false; }; }, { "onFilter": "onFilter"; "onPaginate": "onPaginate"; "onActiveItem": "onActiveItem"; "onActiveItemLote": "onActiveItemLote"; "doubleClickEvent": "doubleClickEvent"; "onNodeSelect": "onNodeSelect"; "onNodeUnselect": "onNodeUnselect"; "onDropItem": "onDropItem"; }, ["templates"], never, false, never>;
|
|
70
76
|
}
|
|
@@ -3,8 +3,9 @@ import * as i1 from "./kv-tree-table.component";
|
|
|
3
3
|
import * as i2 from "@angular/common";
|
|
4
4
|
import * as i3 from "../../api/modules/primeng.module";
|
|
5
5
|
import * as i4 from "../kv-button/kv-button.module";
|
|
6
|
+
import * as i5 from "../kv-inputs/kv-inputs.module";
|
|
6
7
|
export declare class KvTreetableModule {
|
|
7
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<KvTreetableModule, never>;
|
|
8
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<KvTreetableModule, [typeof i1.KvTreetableComponent], [typeof i2.CommonModule, typeof i3.PrimeNgModule, typeof i4.KvButtonModule], [typeof i1.KvTreetableComponent]>;
|
|
9
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<KvTreetableModule, [typeof i1.KvTreetableComponent], [typeof i2.CommonModule, typeof i3.PrimeNgModule, typeof i4.KvButtonModule, typeof i5.KvInputsModule, typeof i4.KvButtonModule], [typeof i1.KvTreetableComponent]>;
|
|
9
10
|
static ɵinj: i0.ɵɵInjectorDeclaration<KvTreetableModule>;
|
|
10
11
|
}
|