keevo-components 1.8.196 → 1.8.197
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/api/components/tree-table/tree-table.config.mjs +1 -1
- package/esm2022/lib/components/kv-table/kv-table.component.mjs +80 -63
- package/esm2022/lib/components/kv-table/kv-table.module.mjs +8 -4
- package/esm2022/lib/components/kv-tree-table/kv-tree-table.component.mjs +8 -8
- package/esm2022/lib/components/kv-tree-table/kv-tree-table.module.mjs +7 -3
- package/fesm2022/keevo-components.mjs +147 -127
- package/fesm2022/keevo-components.mjs.map +1 -1
- package/lib/api/components/table/table.config.d.ts +1 -2
- package/lib/api/components/tree-table/tree-table.config.d.ts +1 -2
- package/lib/components/kv-table/kv-table.component.d.ts +10 -3
- package/lib/components/kv-table/kv-table.module.d.ts +2 -1
- package/lib/components/kv-table-expandable/kv-table-expandable.component.d.ts +1 -1
- package/lib/components/kv-tree-table/kv-tree-table.module.d.ts +2 -1
- package/package.json +1 -1
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { TableConfigColumn } from './table.config.column';
|
|
2
2
|
import { KvMenuItem, ValueOrFn } from './kv-menuitem';
|
|
3
|
-
import Severity from '../../types/severity';
|
|
4
3
|
export interface TableConfig {
|
|
5
4
|
actions?: KvMenuItem[];
|
|
6
5
|
actionsLote?: ActionsLoteItem[];
|
|
@@ -22,7 +21,7 @@ export interface ActionsLoteItem {
|
|
|
22
21
|
/**
|
|
23
22
|
* Ignorado por enquanto
|
|
24
23
|
*/
|
|
25
|
-
severity?:
|
|
24
|
+
severity?: 'primary' | 'secondary' | 'tertiary';
|
|
26
25
|
icon: string;
|
|
27
26
|
showAcoesLote?: boolean;
|
|
28
27
|
tooltip?: ValueOrFn<string | undefined>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { TableConfigColumn } from '../table/table.config.column';
|
|
2
2
|
import { KvMenuItem, ValueOrFn } from '../table/kv-menuitem';
|
|
3
|
-
import Severity from '../../types/severity';
|
|
4
3
|
import { ActionsLoteItem } from '../table/table.config';
|
|
5
4
|
export interface TreeTableConfig {
|
|
6
5
|
actions?: KvMenuItem[];
|
|
@@ -20,7 +19,7 @@ export interface TreeTableConfig {
|
|
|
20
19
|
disableControlCheckboxFunction?: (rowData: any, rowNode?: any) => boolean;
|
|
21
20
|
}
|
|
22
21
|
interface ActionsPaiItem {
|
|
23
|
-
severity?:
|
|
22
|
+
severity?: 'primary' | 'secondary' | 'tertiary';
|
|
24
23
|
visible?: ValueOrFn<boolean | undefined>;
|
|
25
24
|
command: (event: MouseEvent) => void;
|
|
26
25
|
icon: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DatePipe, DecimalPipe } from '@angular/common';
|
|
2
|
-
import { DoCheck, ElementRef, EventEmitter, OnInit, QueryList, TemplateRef } from '@angular/core';
|
|
2
|
+
import { DoCheck, ElementRef, EventEmitter, OnInit, QueryList, Renderer2, TemplateRef } from '@angular/core';
|
|
3
3
|
import { MenuItem } from 'primeng/api';
|
|
4
4
|
import { Table } from 'primeng/table';
|
|
5
5
|
import { CpfCnpjPipe } from '../../api/pipes/cpfcnpj.pipe';
|
|
@@ -14,6 +14,8 @@ export declare class KvTableComponent implements OnInit, DoCheck {
|
|
|
14
14
|
private readonly decimalPipe;
|
|
15
15
|
private readonly cpfCnpjPipe;
|
|
16
16
|
private readonly telefonePipe;
|
|
17
|
+
private renderer;
|
|
18
|
+
private elementRef;
|
|
17
19
|
config: TableConfig;
|
|
18
20
|
globalFilterFields: string[];
|
|
19
21
|
selectedSize: string;
|
|
@@ -75,7 +77,7 @@ export declare class KvTableComponent implements OnInit, DoCheck {
|
|
|
75
77
|
onSwitchTableChange: EventEmitter<any>;
|
|
76
78
|
menuFiltroDiv: ElementRef;
|
|
77
79
|
botaoFiltro: ElementRef;
|
|
78
|
-
constructor(datePipe: DatePipe, decimalPipe: DecimalPipe, cpfCnpjPipe: CpfCnpjPipe, telefonePipe: TelefonePipe);
|
|
80
|
+
constructor(datePipe: DatePipe, decimalPipe: DecimalPipe, cpfCnpjPipe: CpfCnpjPipe, telefonePipe: TelefonePipe, renderer: Renderer2, elementRef: ElementRef);
|
|
79
81
|
ngDoCheck(): void;
|
|
80
82
|
ngOnInit(): void;
|
|
81
83
|
onWindowResize(): void;
|
|
@@ -108,8 +110,13 @@ export declare class KvTableComponent implements OnInit, DoCheck {
|
|
|
108
110
|
deleteColumn(field: string): void;
|
|
109
111
|
addColumn(field: string): void;
|
|
110
112
|
dinamicColumnSet(e: any, col: any): void;
|
|
113
|
+
abrirMenuFiltro(e: any): void;
|
|
114
|
+
fecharMenuFiltro(): void;
|
|
115
|
+
onEscapeKey(event: KeyboardEvent): void;
|
|
116
|
+
onClickEvent(event: any): void;
|
|
117
|
+
styleSetter(style: string, data: string): void;
|
|
111
118
|
checkMenuFiltro(col: any): void;
|
|
112
|
-
sortByPosition(): (elem1: any, elem2: any) =>
|
|
119
|
+
sortByPosition(): (elem1: any, elem2: any) => 1 | -1 | 0;
|
|
113
120
|
dinamicDisableColumn(col: TableConfigColumn): boolean;
|
|
114
121
|
checkHideColumns(): void;
|
|
115
122
|
getCustomTemplate(templatename: string): TemplateRef<any>;
|
|
@@ -4,8 +4,9 @@ import * as i2 from "@angular/common";
|
|
|
4
4
|
import * as i3 from "../../api/modules/primeng.module";
|
|
5
5
|
import * as i4 from "@angular/forms";
|
|
6
6
|
import * as i5 from "../kv-inputs/kv-inputs.module";
|
|
7
|
+
import * as i6 from "../kv-button/kv-button.module";
|
|
7
8
|
export declare class KvTableModule {
|
|
8
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<KvTableModule, never>;
|
|
9
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<KvTableModule, [typeof i1.KvTableComponent], [typeof i2.CommonModule, typeof i3.PrimeNgModule, typeof i4.FormsModule, typeof i5.KvInputsModule], [typeof i1.KvTableComponent]>;
|
|
10
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<KvTableModule, [typeof i1.KvTableComponent], [typeof i2.CommonModule, typeof i3.PrimeNgModule, typeof i4.FormsModule, typeof i5.KvInputsModule, typeof i6.KvButtonModule], [typeof i1.KvTableComponent]>;
|
|
10
11
|
static ɵinj: i0.ɵɵInjectorDeclaration<KvTableModule>;
|
|
11
12
|
}
|
|
@@ -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 | -1 | 0;
|
|
65
65
|
dinamicDisableColumn(col: TableConfigColumn): boolean;
|
|
66
66
|
dinamicColumnSet(e: any, col: any): void;
|
|
67
67
|
addColumn(field: string): void;
|
|
@@ -2,8 +2,9 @@ import * as i0 from "@angular/core";
|
|
|
2
2
|
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
|
+
import * as i4 from "../kv-button/kv-button.module";
|
|
5
6
|
export declare class KvTreetableModule {
|
|
6
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<KvTreetableModule, never>;
|
|
7
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<KvTreetableModule, [typeof i1.KvTreetableComponent], [typeof i2.CommonModule, typeof i3.PrimeNgModule], [typeof i1.KvTreetableComponent]>;
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<KvTreetableModule, [typeof i1.KvTreetableComponent], [typeof i2.CommonModule, typeof i3.PrimeNgModule, typeof i4.KvButtonModule], [typeof i1.KvTreetableComponent]>;
|
|
8
9
|
static ɵinj: i0.ɵɵInjectorDeclaration<KvTreetableModule>;
|
|
9
10
|
}
|