keevo-components 1.8.358 → 1.8.359
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 +1 -1
- package/esm2022/lib/api/base-components/base-component-table.mjs +1 -1
- package/esm2022/lib/api/components/table/table.config.column.mjs +1 -1
- package/esm2022/lib/api/components/table/table.config.mjs +1 -1
- package/esm2022/lib/api/components/table/tabledit.config.mjs +1 -1
- package/esm2022/lib/api/components/table/tableedit.config.column.mjs +1 -1
- package/esm2022/lib/api/components/tree-table/tree-table.config.mjs +1 -1
- package/esm2022/lib/api/services/image.cutter.service.mjs +2 -2
- package/esm2022/lib/api/services/notification.service.mjs +3 -3
- package/esm2022/lib/components/kv-avatar/kv-avatar.component.mjs +2 -2
- package/esm2022/lib/components/kv-button/kv-button.component.mjs +19 -28
- package/esm2022/lib/components/kv-buttons/kv-button-popup/kv-button-popup.component.mjs +2 -2
- package/esm2022/lib/components/kv-carousel/kv-carousel.component.mjs +6 -3
- package/esm2022/lib/components/kv-chart/kv-chart.component.mjs +2 -2
- package/esm2022/lib/components/kv-error/kv-error.component.mjs +2 -2
- package/esm2022/lib/components/kv-filter-fieldset/kv-filter-fieldset.component.mjs +3 -3
- package/esm2022/lib/components/kv-home-card/kv-home-card.component.mjs +1 -1
- package/esm2022/lib/components/kv-inputs/kv-check/kv-check.component.mjs +3 -3
- package/esm2022/lib/components/kv-inputs/kv-dropdown/kv-dropdown.component.mjs +3 -3
- package/esm2022/lib/components/kv-inputs/kv-input-calendar/kv-input-calendar.component.mjs +2 -2
- package/esm2022/lib/components/kv-inputs/kv-input-mask/kv-input-mask.component.mjs +2 -2
- package/esm2022/lib/components/kv-inputs/kv-input-number/kv-input-number.component.mjs +2 -2
- package/esm2022/lib/components/kv-inputs/kv-input-password/kv-input-password.component.mjs +2 -2
- package/esm2022/lib/components/kv-inputs/kv-input-text/kv-input-text.component.mjs +2 -2
- package/esm2022/lib/components/kv-inputs/kv-input-text-checkbox/kv-input-text-checkbox.component.mjs +3 -3
- package/esm2022/lib/components/kv-inputs/kv-input-textarea/kv-input-textarea.component.mjs +2 -2
- package/esm2022/lib/components/kv-inputs/kv-input-time/kv-input-time.component.mjs +2 -2
- package/esm2022/lib/components/kv-inputs/kv-multi-select/kv-multi-select.component.mjs +3 -3
- package/esm2022/lib/components/kv-inputs/kv-radio-group/kv-radio-group.component.mjs +2 -2
- package/esm2022/lib/components/kv-inputs/kv-select-buttons/kv-select-buttons.component.mjs +3 -3
- package/esm2022/lib/components/kv-inputs/kv-switch/kv-switch.component.mjs +3 -3
- package/esm2022/lib/components/kv-label/kv-label.component.mjs +2 -2
- package/esm2022/lib/components/kv-layout/layout/kv-layout.component.mjs +3 -3
- package/esm2022/lib/components/kv-modal/kv-modal.component.mjs +2 -2
- package/esm2022/lib/components/kv-orgchart/kv-orgchart.component.mjs +3 -3
- package/esm2022/lib/components/kv-page-form/kv-page-form.component.mjs +1 -1
- package/esm2022/lib/components/kv-pick-list/kv-pick-list.component.mjs +2 -2
- package/esm2022/lib/components/kv-progress-bar/kv-progress-bar.component.mjs +2 -2
- package/esm2022/lib/components/kv-table/kv-table.component.mjs +32 -30
- package/esm2022/lib/components/kv-table-edit/kv-table-edit.component.mjs +2 -2
- package/esm2022/lib/components/kv-table-expandable/kv-table-expandable.component.mjs +9 -9
- package/esm2022/lib/components/kv-table-expandable/kv-table-expandable.module.mjs +1 -1
- package/esm2022/lib/components/kv-tree-table/kv-tree-table.component.mjs +2 -2
- package/esm2022/lib/components/kv-workspace/empresa/kv-workspace-empresa.component.mjs +1 -1
- package/esm2022/lib/components/kv-workspace/master/kv-workspace-master.component.mjs +1 -1
- package/fesm2022/keevo-components.mjs +115 -118
- package/fesm2022/keevo-components.mjs.map +1 -1
- package/lib/api/base-components/base-component-crud-list.d.ts +2 -2
- package/lib/api/base-components/base-component-dropdown.d.ts +1 -1
- package/lib/api/base-components/base-component-table.d.ts +8 -8
- package/lib/api/components/table/table.config.column.d.ts +3 -3
- package/lib/api/components/table/table.config.d.ts +4 -4
- package/lib/api/components/table/tabledit.config.d.ts +1 -1
- package/lib/api/components/table/tableedit.config.column.d.ts +1 -1
- package/lib/api/components/tree-table/tree-table.config.d.ts +1 -1
- package/lib/components/kv-button/kv-button.component.d.ts +10 -10
- package/lib/components/kv-carousel/kv-carousel.component.d.ts +2 -1
- package/lib/components/kv-table/kv-table.component.d.ts +38 -43
- package/lib/components/kv-table-edit/kv-table-edit.component.d.ts +1 -1
- package/lib/components/kv-table-expandable/kv-table-expandable.component.d.ts +18 -18
- package/lib/components/kv-tree-table/kv-tree-table.component.d.ts +1 -1
- package/lib/components/kv-workspace/empresa/kv-workspace-empresa.component.d.ts +1 -1
- package/lib/components/kv-workspace/master/kv-workspace-master.component.d.ts +1 -1
- package/package.json +2 -2
- package/esm2022/lib/api/types/severity.mjs +0 -2
- package/lib/api/types/severity.d.ts +0 -2
|
@@ -15,10 +15,10 @@ export declare abstract class BaseComponentCrudList extends BaseComponentCrud im
|
|
|
15
15
|
router: Router;
|
|
16
16
|
dataSource: any;
|
|
17
17
|
selectedItem: any;
|
|
18
|
-
tableConfig: TableConfig | TreeTableConfig;
|
|
18
|
+
tableConfig: TableConfig<any> | TreeTableConfig;
|
|
19
19
|
totalRecords: number;
|
|
20
20
|
actionsPageList: ActionItem[];
|
|
21
|
-
table: KvTableComponent
|
|
21
|
+
table: KvTableComponent<any>;
|
|
22
22
|
treetable: KvTreetableComponent;
|
|
23
23
|
constructor(dialogService: DialogService, notificationService: NotificationService, router: Router);
|
|
24
24
|
ngOnInit(): void;
|
|
@@ -34,7 +34,7 @@ export declare abstract class BaseComponentDropDown extends BaseComponentInput<a
|
|
|
34
34
|
protected addClick(event: Event): void;
|
|
35
35
|
carregarCombo(filtro?: filtroCombo): void;
|
|
36
36
|
protected carregarComboObs(obs: Observable<any>): void;
|
|
37
|
-
emptyMessage(): "
|
|
37
|
+
emptyMessage(): "Digite para pesquisar" | "Nenhum resultado encontrado";
|
|
38
38
|
filterOptions(field: string, value: any): void;
|
|
39
39
|
protected listar(): any;
|
|
40
40
|
protected listarCombo(value: any): any;
|
|
@@ -20,7 +20,7 @@ export declare abstract class BasecomponentTable implements OnInit {
|
|
|
20
20
|
*/
|
|
21
21
|
constructor(datePipe: DatePipe, decimalPipe: DecimalPipe, cpfCnpjPipe: CpfCnpjPipe, telefonePipe: TelefonePipe, notificationService: NotificationService);
|
|
22
22
|
imgDefault: string;
|
|
23
|
-
config: TableConfig | TableEditConfig | TreeTableConfig;
|
|
23
|
+
config: TableConfig<any> | TableEditConfig | TreeTableConfig;
|
|
24
24
|
selectedItem: any;
|
|
25
25
|
selectedSize: any;
|
|
26
26
|
tamanhoTela: number;
|
|
@@ -56,29 +56,29 @@ export declare abstract class BasecomponentTable implements OnInit {
|
|
|
56
56
|
doubleClick(e: any, rowData: any): void;
|
|
57
57
|
returnTooltipRow(rowData: any, col: any): any;
|
|
58
58
|
retornarRow(rowData: any, col: any, field: string): string;
|
|
59
|
-
returnRowClass(rowData: any, col: TableConfigColumn): string;
|
|
59
|
+
returnRowClass(rowData: any, col: TableConfigColumn<any>): string;
|
|
60
60
|
getCustomTemplate(templatename: string): TemplateRef<any>;
|
|
61
61
|
returnClassIcon(rowData: any, col: any): string;
|
|
62
62
|
returnClassChip(rowData: any, col: any): string;
|
|
63
63
|
returnTooltipIcon(rowData: any, col: any): string;
|
|
64
|
-
loadImage(rowData: any, col: TableConfigColumn): string;
|
|
64
|
+
loadImage(rowData: any, col: TableConfigColumn<any>): string;
|
|
65
65
|
alignColunas(col: any): string;
|
|
66
66
|
centralizarColunas(col: any): string;
|
|
67
67
|
alignColunasHeader(col: any): string;
|
|
68
68
|
formatarValor(valor: number): string;
|
|
69
|
-
transformValue(rowData: any, col: TableConfigColumn): any;
|
|
69
|
+
transformValue(rowData: any, col: TableConfigColumn<any>): any;
|
|
70
70
|
transformCapitalize(value: string): string;
|
|
71
71
|
onGlobalFilter(table: Table, event: Event): void;
|
|
72
72
|
onSwitchChange(estado: any, rowData: boolean, col: any): void;
|
|
73
|
-
isSwitchField(col: TableConfigColumn): boolean;
|
|
73
|
+
isSwitchField(col: TableConfigColumn<any>): boolean;
|
|
74
74
|
isDisabledCheckbox(rowData: any): boolean;
|
|
75
75
|
activeItemLote(selectedItems: any): void;
|
|
76
76
|
activeItem(rowData: any): void;
|
|
77
77
|
exibirCampo(field: any, rowData: any): any;
|
|
78
78
|
selectionChange(value?: never[]): void;
|
|
79
|
-
isImageField(col: TableConfigColumn): boolean;
|
|
80
|
-
isChipField(col: TableConfigColumn): boolean;
|
|
81
|
-
isBooleanField(rowData: any, col: TableConfigColumn): boolean;
|
|
79
|
+
isImageField(col: TableConfigColumn<any>): boolean;
|
|
80
|
+
isChipField(col: TableConfigColumn<any>): boolean;
|
|
81
|
+
isBooleanField(rowData: any, col: TableConfigColumn<any>): boolean;
|
|
82
82
|
paginate($event: any): void;
|
|
83
83
|
adjustTableSize(): void;
|
|
84
84
|
onWindowResize(): void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export type TableConfigColumn = {
|
|
1
|
+
export type TableConfigColumn<TData> = {
|
|
2
2
|
position?: number;
|
|
3
|
-
field: string;
|
|
3
|
+
field: string & keyof TData;
|
|
4
4
|
header: string;
|
|
5
5
|
headerTooltip?: string;
|
|
6
6
|
fieldType?: string;
|
|
@@ -29,7 +29,7 @@ export type TableConfigColumn = {
|
|
|
29
29
|
pipe: "date" | "datetime" | "dateMonthYear" | "decimal" | "cpfcnpj" | "telefone" | "codigofipe" | "money" | "percentage" | "capitalize";
|
|
30
30
|
transform?: never;
|
|
31
31
|
} | {
|
|
32
|
-
transform: (value:
|
|
32
|
+
transform: (value: TData) => any;
|
|
33
33
|
pipe?: never;
|
|
34
34
|
} | {
|
|
35
35
|
transform?: never;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { TableConfigColumn } from './table.config.column';
|
|
2
2
|
import { KvMenuItem, ValueOrFn } from './kv-menuitem';
|
|
3
|
-
export interface TableConfig {
|
|
3
|
+
export interface TableConfig<TData> {
|
|
4
4
|
actions?: KvMenuItem[];
|
|
5
5
|
actionsLote?: ActionsLoteItem[];
|
|
6
|
-
columns: TableConfigColumn[];
|
|
6
|
+
columns: TableConfigColumn<TData>[];
|
|
7
7
|
dataKey?: string;
|
|
8
8
|
rows?: any;
|
|
9
9
|
title?: string;
|
|
@@ -14,9 +14,9 @@ export interface TableConfig {
|
|
|
14
14
|
enableFilter?: boolean;
|
|
15
15
|
enableSelect?: boolean;
|
|
16
16
|
enableToggleNodes?: boolean;
|
|
17
|
-
disableControlCheckboxFunction?: (rowData:
|
|
17
|
+
disableControlCheckboxFunction?: (rowData: TData, rowNode?: any) => boolean;
|
|
18
18
|
fieldGroupColorFunction?: (data: any) => string;
|
|
19
|
-
disableRow?: (rowData:
|
|
19
|
+
disableRow?: (rowData: TData) => boolean;
|
|
20
20
|
}
|
|
21
21
|
export interface ActionsLoteItem {
|
|
22
22
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TableConfig } from "./table.config";
|
|
2
2
|
import { TableEditConfigColumn } from "./tableedit.config.column";
|
|
3
|
-
export default interface TableEditConfig extends TableConfig {
|
|
3
|
+
export default interface TableEditConfig extends TableConfig<any> {
|
|
4
4
|
columns: TableEditConfigColumn[];
|
|
5
5
|
dataKey: string;
|
|
6
6
|
reorderableColumns?: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import FieldDropDownControl from "./table-dropdown-control";
|
|
2
2
|
import { TableConfigColumn } from "./table.config.column";
|
|
3
|
-
export type TableEditConfigColumn = TableConfigColumn & {
|
|
3
|
+
export type TableEditConfigColumn = TableConfigColumn<any> & {
|
|
4
4
|
required?: boolean;
|
|
5
5
|
validator?: any;
|
|
6
6
|
mask?: string;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { EventEmitter } from '@angular/core';
|
|
2
1
|
import * as i0 from "@angular/core";
|
|
3
2
|
export declare class KvButtonComponent {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
loading: boolean
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
3
|
+
fullWidth: import("@angular/core").InputSignal<boolean>;
|
|
4
|
+
type: import("@angular/core").InputSignal<"text" | "outline" | undefined>;
|
|
5
|
+
loading: import("@angular/core").InputSignal<boolean>;
|
|
6
|
+
severity: import("@angular/core").InputSignal<"primary" | "secondary" | "tertiary">;
|
|
7
|
+
size: import("@angular/core").InputSignal<"small" | "normal" | "large">;
|
|
8
|
+
icon: import("@angular/core").InputSignal<string>;
|
|
9
|
+
label: import("@angular/core").InputSignal<string>;
|
|
10
|
+
disabled: import("@angular/core").InputSignal<boolean>;
|
|
11
|
+
onClick: import("@angular/core").OutputEmitterRef<any>;
|
|
12
12
|
constructor();
|
|
13
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<KvButtonComponent, never>;
|
|
14
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KvButtonComponent, "kv-button", never, { "
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KvButtonComponent, "kv-button", never, { "fullWidth": { "alias": "fullWidth"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "severity": { "alias": "severity"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "onClick": "onClick"; }, never, never, false, never>;
|
|
15
15
|
}
|
|
@@ -7,10 +7,11 @@ export declare class KvCarouselComponent {
|
|
|
7
7
|
heightCarousel: import("@angular/core").InputSignal<number | undefined>;
|
|
8
8
|
heightComputed: import("@angular/core").Signal<any>;
|
|
9
9
|
carouselData: any[];
|
|
10
|
+
autoplayInterval: number;
|
|
10
11
|
widthCarousel: number;
|
|
11
12
|
isCollapsed: boolean;
|
|
12
13
|
constructor(cd: ChangeDetectorRef);
|
|
13
14
|
navigateToLink(link: string): void;
|
|
14
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<KvCarouselComponent, never>;
|
|
15
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KvCarouselComponent, "kv-carousel", never, { "heightCarousel": { "alias": "heightCarousel"; "required": false; "isSignal": true; }; "carouselData": { "alias": "carouselData"; "required": false; }; }, {}, never, never, false, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KvCarouselComponent, "kv-carousel", never, { "heightCarousel": { "alias": "heightCarousel"; "required": false; "isSignal": true; }; "carouselData": { "alias": "carouselData"; "required": false; }; "autoplayInterval": { "alias": "autoplayInterval"; "required": false; }; }, {}, never, never, false, never>;
|
|
16
17
|
}
|
|
@@ -9,7 +9,7 @@ import { TableConfigColumn } from '../../api/components/table/table.config.colum
|
|
|
9
9
|
import { TablePaginate } from '../../api/components/table/table.paginate';
|
|
10
10
|
import { TelefonePipe } from '../../api/pipes/telefone.pipe';
|
|
11
11
|
import * as i0 from "@angular/core";
|
|
12
|
-
export declare class KvTableComponent implements OnInit, DoCheck, AfterViewInit {
|
|
12
|
+
export declare class KvTableComponent<TData> implements OnInit, DoCheck, AfterViewInit {
|
|
13
13
|
private readonly datePipe;
|
|
14
14
|
private readonly decimalPipe;
|
|
15
15
|
private readonly cpfCnpjPipe;
|
|
@@ -21,30 +21,25 @@ export declare class KvTableComponent implements OnInit, DoCheck, AfterViewInit
|
|
|
21
21
|
selectedSize: string;
|
|
22
22
|
tamanhoTela: number;
|
|
23
23
|
checked: boolean;
|
|
24
|
-
columns: TableConfigColumn[];
|
|
25
|
-
deletedColuns: TableConfigColumn[];
|
|
24
|
+
columns: TableConfigColumn<TData>[];
|
|
25
|
+
deletedColuns: TableConfigColumn<TData>[];
|
|
26
26
|
prepositions: string[];
|
|
27
27
|
menuFiltro: boolean;
|
|
28
28
|
checkboxClicked: boolean;
|
|
29
|
-
showFiltrosAvancados: boolean;
|
|
30
29
|
collapsed: boolean;
|
|
31
30
|
tableActions: MenuItem[][];
|
|
32
|
-
currDataSource:
|
|
33
|
-
dataIndex: {
|
|
34
|
-
[key: string]: any;
|
|
35
|
-
};
|
|
31
|
+
currDataSource: TData[];
|
|
36
32
|
menuItems: MenuItem[];
|
|
37
33
|
actionsOffset: number;
|
|
38
34
|
templates: QueryList<any>;
|
|
39
35
|
_templates: any;
|
|
40
36
|
table: Table;
|
|
41
|
-
deletedColumnsIndex: any[];
|
|
42
37
|
ptable: Table;
|
|
43
|
-
set setConfig(value: TableConfig);
|
|
38
|
+
set setConfig(value: TableConfig<TData>);
|
|
44
39
|
first: import("@angular/core").ModelSignal<number>;
|
|
45
40
|
rows: import("@angular/core").ModelSignal<number>;
|
|
46
|
-
defaultSortField:
|
|
47
|
-
dataSource:
|
|
41
|
+
defaultSortField: keyof TData | undefined;
|
|
42
|
+
dataSource: TData[];
|
|
48
43
|
selectedItems: any[];
|
|
49
44
|
totalRecords: number;
|
|
50
45
|
paginator: boolean;
|
|
@@ -59,7 +54,7 @@ export declare class KvTableComponent implements OnInit, DoCheck, AfterViewInit
|
|
|
59
54
|
scrollHeight: string;
|
|
60
55
|
isTableScrollable: boolean;
|
|
61
56
|
tableCaptalized: boolean;
|
|
62
|
-
rowTrackBy:
|
|
57
|
+
rowTrackBy: (index: number, item: TData) => any;
|
|
63
58
|
responsiveLayout: boolean;
|
|
64
59
|
disabledHeaderCheckbox: boolean;
|
|
65
60
|
/**
|
|
@@ -74,7 +69,7 @@ export declare class KvTableComponent implements OnInit, DoCheck, AfterViewInit
|
|
|
74
69
|
* @deprecated A quantidade de paginitorPageIcons é atribuído de acordo com o tamanho da tela, essa propriedade não está sendo utilizada
|
|
75
70
|
*/
|
|
76
71
|
showFirstLastIcon: boolean;
|
|
77
|
-
onActiveItem: EventEmitter<
|
|
72
|
+
onActiveItem: EventEmitter<TData>;
|
|
78
73
|
onActiveItemLote: EventEmitter<any>;
|
|
79
74
|
onPaginate: EventEmitter<TablePaginate>;
|
|
80
75
|
onSelectionChange: EventEmitter<any>;
|
|
@@ -89,58 +84,58 @@ export declare class KvTableComponent implements OnInit, DoCheck, AfterViewInit
|
|
|
89
84
|
ngDoCheck(): void;
|
|
90
85
|
ngOnInit(): void;
|
|
91
86
|
ngAfterViewInit(): void;
|
|
92
|
-
definirColunasConfiguraveis(config: TableConfig): void;
|
|
93
|
-
definirFiltrosGlobais(config: TableConfig): void;
|
|
87
|
+
definirColunasConfiguraveis(config: TableConfig<TData>): void;
|
|
88
|
+
definirFiltrosGlobais(config: TableConfig<TData>): void;
|
|
94
89
|
resetTable(): void;
|
|
95
90
|
onWindowResize(): void;
|
|
96
|
-
activeItem(rowData:
|
|
91
|
+
activeItem(rowData: TData): void;
|
|
97
92
|
getOrExecute<T>(action: ValueOrFn<T>, data: any): T;
|
|
98
|
-
isBooleanField(rowData:
|
|
99
|
-
isChipField(col: TableConfigColumn): boolean;
|
|
93
|
+
isBooleanField(rowData: TData, col: TableConfigColumn<TData>): boolean;
|
|
94
|
+
isChipField(col: TableConfigColumn<TData>): boolean;
|
|
100
95
|
protected onPage(event: TablePageEvent): void;
|
|
101
|
-
isImageField(col: TableConfigColumn): boolean;
|
|
102
|
-
isSwitchField(col: TableConfigColumn): boolean;
|
|
96
|
+
isImageField(col: TableConfigColumn<TData>): boolean;
|
|
97
|
+
isSwitchField(col: TableConfigColumn<TData>): boolean;
|
|
103
98
|
isRowSelectable(event: any): boolean;
|
|
104
|
-
isDisabledCheckbox(rowData:
|
|
105
|
-
isDisabledRow(rowData:
|
|
106
|
-
getStyleClass
|
|
99
|
+
isDisabledCheckbox(rowData: TData): boolean;
|
|
100
|
+
isDisabledRow(rowData: TData): boolean;
|
|
101
|
+
private getStyleClass;
|
|
107
102
|
verificaCursor(): void;
|
|
108
|
-
loadImage(rowData: any, col: TableConfigColumn): string;
|
|
103
|
+
loadImage(rowData: any, col: TableConfigColumn<TData>): string;
|
|
109
104
|
onGlobalFilter(table: Table, event: Event): void;
|
|
110
105
|
paginate(event: any): void;
|
|
111
106
|
selectionChange(value: any): void;
|
|
112
107
|
activeItemLote(selectedItems: any): void;
|
|
113
|
-
returnRowClass(rowData: any, col: TableConfigColumn): string;
|
|
114
|
-
expiredFile
|
|
115
|
-
transformValue(rowData: any, col: TableConfigColumn): any;
|
|
108
|
+
returnRowClass(rowData: any, col: TableConfigColumn<TData>): string;
|
|
109
|
+
private expiredFile;
|
|
110
|
+
transformValue(rowData: any, col: TableConfigColumn<TData>): any;
|
|
116
111
|
transformCapitalize(value: string): string;
|
|
117
112
|
formatarValor(valor: number): string;
|
|
118
113
|
adjustTableSize(): void;
|
|
119
114
|
doubleClick(e: any, rowData: any): void;
|
|
120
|
-
retornarRow(rowData:
|
|
121
|
-
exibirCampo
|
|
122
|
-
returnClassChip(rowData:
|
|
123
|
-
returnClassIcon(rowData:
|
|
124
|
-
returnTooltipIcon(rowData:
|
|
125
|
-
returnTooltipRow(rowData:
|
|
115
|
+
retornarRow(rowData: TData, col: TableConfigColumn<TData>, field: string): string;
|
|
116
|
+
private exibirCampo;
|
|
117
|
+
returnClassChip(rowData: TData, col: TableConfigColumn<TData>): string;
|
|
118
|
+
returnClassIcon(rowData: TData, col: TableConfigColumn<TData>): string;
|
|
119
|
+
returnTooltipIcon(rowData: TData, col: TableConfigColumn<TData>): string;
|
|
120
|
+
returnTooltipRow(rowData: TData, col: TableConfigColumn<TData>): any;
|
|
126
121
|
deleteColumn(field: string): void;
|
|
127
122
|
addColumn(field: string): void;
|
|
128
|
-
dinamicColumnSet(e: any, col:
|
|
123
|
+
dinamicColumnSet(e: any, col: TableConfigColumn<TData>): void;
|
|
129
124
|
abrirMenuFiltro(e: any): void;
|
|
130
125
|
fecharMenuFiltro(): void;
|
|
131
126
|
onEscapeKey(event: KeyboardEvent): void;
|
|
132
127
|
onClickEvent(event: any): void;
|
|
133
128
|
styleSetter(style: string, data: string): void;
|
|
134
|
-
checkMenuFiltro(col:
|
|
135
|
-
sortByPosition(): (elem1: any, elem2: any) =>
|
|
136
|
-
dinamicDisableColumn(col: TableConfigColumn): boolean;
|
|
129
|
+
checkMenuFiltro(col: TableConfigColumn<TData>): void;
|
|
130
|
+
sortByPosition(): (elem1: any, elem2: any) => 0 | 1 | -1;
|
|
131
|
+
dinamicDisableColumn(col: TableConfigColumn<TData>): boolean;
|
|
137
132
|
checkHideColumns(): void;
|
|
138
133
|
getCustomTemplate(templatename: string): TemplateRef<any>;
|
|
139
|
-
onSwitchChange(estado: any, rowData:
|
|
134
|
+
onSwitchChange(estado: any, rowData: TData, col: TableConfigColumn<TData>): void;
|
|
140
135
|
createTableActions(): void;
|
|
141
136
|
onSort(e: any): void;
|
|
142
|
-
get config(): TableConfig
|
|
143
|
-
columnsFilter: import("@angular/core").Signal<TableConfigColumn[]>;
|
|
144
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<KvTableComponent
|
|
145
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KvTableComponent
|
|
137
|
+
get config(): TableConfig<TData>;
|
|
138
|
+
columnsFilter: import("@angular/core").Signal<TableConfigColumn<TData>[]>;
|
|
139
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KvTableComponent<any>, never>;
|
|
140
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KvTableComponent<any>, "kv-table", never, { "_templates": { "alias": "templates"; "required": false; }; "setConfig": { "alias": "config"; "required": false; }; "first": { "alias": "first"; "required": false; "isSignal": true; }; "rows": { "alias": "rows"; "required": false; "isSignal": true; }; "defaultSortField": { "alias": "defaultSortField"; "required": false; }; "dataSource": { "alias": "dataSource"; "required": false; }; "selectedItems": { "alias": "selectedItems"; "required": false; }; "totalRecords": { "alias": "totalRecords"; "required": false; }; "paginator": { "alias": "paginator"; "required": false; }; "rowsPerPageOptions": { "alias": "rowsPerPageOptions"; "required": false; }; "tableSize": { "alias": "tableSize"; "required": false; }; "filterColumnsBtn": { "alias": "filterColumnsBtn"; "required": false; }; "replaceEmptyValues": { "alias": "replaceEmptyValues"; "required": false; }; "filtrosAvancados": { "alias": "filtrosAvancados"; "required": false; }; "scrollHeight": { "alias": "scrollHeight"; "required": false; }; "isTableScrollable": { "alias": "isTableScrollable"; "required": false; }; "tableCaptalized": { "alias": "tableCaptalized"; "required": false; }; "rowTrackBy": { "alias": "rowTrackBy"; "required": false; }; "responsiveLayout": { "alias": "responsiveLayout"; "required": false; }; "disabledHeaderCheckbox": { "alias": "disabledHeaderCheckbox"; "required": false; }; "applyStyle": { "alias": "applyStyle"; "required": false; }; "pageLinksOptions": { "alias": "pageLinksOptions"; "required": false; }; "showFirstLastIcon": { "alias": "showFirstLastIcon"; "required": false; }; }, { "first": "firstChange"; "rows": "rowsChange"; "onActiveItem": "onActiveItem"; "onActiveItemLote": "onActiveItemLote"; "onPaginate": "onPaginate"; "onSelectionChange": "onSelectionChange"; "doubleClickEvent": "doubleClickEvent"; "filterField": "filterField"; "onSwitchTableChange": "onSwitchTableChange"; }, ["templates"], never, false, never>;
|
|
146
141
|
}
|
|
@@ -54,7 +54,7 @@ export declare class KvTableEditComponent extends BasecomponentTable implements
|
|
|
54
54
|
isDisableEditRowFunction(rowData: any): boolean;
|
|
55
55
|
isDisableEditRowCellFunction(rowData: any, col: any): boolean;
|
|
56
56
|
isEditableTable(): boolean | null;
|
|
57
|
-
transformValueDrop(value: any, col: TableConfigColumn): any;
|
|
57
|
+
transformValueDrop(value: any, col: TableConfigColumn<any>): any;
|
|
58
58
|
static ɵfac: i0.ɵɵFactoryDeclaration<KvTableEditComponent, never>;
|
|
59
59
|
static ɵcmp: i0.ɵɵComponentDeclaration<KvTableEditComponent, "kv-table-edit", never, { "enableSizes": { "alias": "enableSizes"; "required": false; }; "editMode": { "alias": "editMode"; "required": false; }; }, { "onSave": "onSave"; "filterField": "filterField"; }, never, ["*"], false, never>;
|
|
60
60
|
}
|
|
@@ -9,17 +9,17 @@ import { TelefonePipe } from '../../api/pipes/telefone.pipe';
|
|
|
9
9
|
import { MenuItem } from 'primeng/api';
|
|
10
10
|
import { TablePaginate } from '../../api/components/table/table.paginate';
|
|
11
11
|
import * as i0 from "@angular/core";
|
|
12
|
-
export declare class KvTableExpandableComponent implements OnInit, DoCheck {
|
|
12
|
+
export declare class KvTableExpandableComponent<TData> implements OnInit, DoCheck {
|
|
13
13
|
private readonly datePipe;
|
|
14
14
|
private readonly decimalPipe;
|
|
15
15
|
private readonly cpfCnpjPipe;
|
|
16
16
|
private readonly telefonePipe;
|
|
17
17
|
expandedRows: any;
|
|
18
|
-
config: TableConfig
|
|
18
|
+
config: TableConfig<TData>;
|
|
19
19
|
globalFilterFields: string[];
|
|
20
20
|
tamanhoTela: number;
|
|
21
|
-
columns: TableConfigColumn[];
|
|
22
|
-
deletedColuns: TableConfigColumn[];
|
|
21
|
+
columns: TableConfigColumn<TData>[];
|
|
22
|
+
deletedColuns: TableConfigColumn<TData>[];
|
|
23
23
|
dataIndex: {
|
|
24
24
|
[key: string]: any;
|
|
25
25
|
};
|
|
@@ -30,11 +30,11 @@ export declare class KvTableExpandableComponent implements OnInit, DoCheck {
|
|
|
30
30
|
data: any;
|
|
31
31
|
actions?: MenuItem[];
|
|
32
32
|
}[];
|
|
33
|
-
currDataSource:
|
|
33
|
+
currDataSource: TData[];
|
|
34
34
|
_templates: any;
|
|
35
|
-
set setConfig(value: TableConfig);
|
|
35
|
+
set setConfig(value: TableConfig<TData>);
|
|
36
36
|
filtrosAvancados: boolean;
|
|
37
|
-
dataSource:
|
|
37
|
+
dataSource: TData[];
|
|
38
38
|
selectedItems: any[];
|
|
39
39
|
tableCaptalized: boolean;
|
|
40
40
|
applyStyle: Function;
|
|
@@ -64,8 +64,8 @@ export declare class KvTableExpandableComponent implements OnInit, DoCheck {
|
|
|
64
64
|
onGlobalFilter(table: Table, event: Event): void;
|
|
65
65
|
executeCollapsed(): void;
|
|
66
66
|
checkMenuFiltro(col: any): void;
|
|
67
|
-
sortByPosition(): (elem1: any, elem2: any) =>
|
|
68
|
-
dinamicDisableColumn(col: TableConfigColumn): boolean;
|
|
67
|
+
sortByPosition(): (elem1: any, elem2: any) => 0 | 1 | -1;
|
|
68
|
+
dinamicDisableColumn(col: TableConfigColumn<TData>): boolean;
|
|
69
69
|
dinamicColumnSet(e: any, col: any): void;
|
|
70
70
|
addColumn(field: string): void;
|
|
71
71
|
deleteColumn(field: string): void;
|
|
@@ -76,10 +76,10 @@ export declare class KvTableExpandableComponent implements OnInit, DoCheck {
|
|
|
76
76
|
retornarRow(rowData: any, col: any, field: string): string;
|
|
77
77
|
returnTooltipRow(rowData: any, col: any): any;
|
|
78
78
|
getOrExecute<T>(action: ValueOrFn<T>, data: any): T;
|
|
79
|
-
isBooleanField(rowData: any, col: TableConfigColumn): boolean;
|
|
80
|
-
isChipField(col: TableConfigColumn): boolean;
|
|
81
|
-
isImageField(col: TableConfigColumn): boolean;
|
|
82
|
-
isSwitchField(col: TableConfigColumn): boolean;
|
|
79
|
+
isBooleanField(rowData: any, col: TableConfigColumn<TData>): boolean;
|
|
80
|
+
isChipField(col: TableConfigColumn<TData>): boolean;
|
|
81
|
+
isImageField(col: TableConfigColumn<TData>): boolean;
|
|
82
|
+
isSwitchField(col: TableConfigColumn<TData>): boolean;
|
|
83
83
|
isRowSelectable(event: any): boolean;
|
|
84
84
|
activeItemLote(selectedItems: any): void;
|
|
85
85
|
selectItem(event: any, group: any): void;
|
|
@@ -91,15 +91,15 @@ export declare class KvTableExpandableComponent implements OnInit, DoCheck {
|
|
|
91
91
|
selectAll(event: any): void;
|
|
92
92
|
isAllIndeterminate(): boolean;
|
|
93
93
|
isAllSelected(): boolean;
|
|
94
|
-
transformValue(rowData: any, col: TableConfigColumn): any;
|
|
94
|
+
transformValue(rowData: any, col: TableConfigColumn<TData>): any;
|
|
95
95
|
getCustomTemplate(templatename: string): TemplateRef<any>;
|
|
96
96
|
formatarValor(valor: number): string;
|
|
97
|
-
returnRowClass(rowData: any, col: TableConfigColumn): string;
|
|
97
|
+
returnRowClass(rowData: any, col: TableConfigColumn<TData>): string;
|
|
98
98
|
returnClassChip(rowData: any, col: any): string;
|
|
99
99
|
returnClassIcon(rowData: any, col: any): string;
|
|
100
100
|
returnTooltipIcon(rowData: any, col: any): string;
|
|
101
101
|
isDisabledCheckbox(rowData: any): boolean;
|
|
102
|
-
loadImage(rowData: any, col: TableConfigColumn): string;
|
|
102
|
+
loadImage(rowData: any, col: TableConfigColumn<TData>): string;
|
|
103
103
|
onSwitchChange(estado: any, rowData: boolean, col: any): void;
|
|
104
104
|
paginate(event: any): void;
|
|
105
105
|
selectionChange(value: any): void;
|
|
@@ -108,6 +108,6 @@ export declare class KvTableExpandableComponent implements OnInit, DoCheck {
|
|
|
108
108
|
createDataIndex(): void;
|
|
109
109
|
returnRowDataActions(rowData: any): void;
|
|
110
110
|
onSort(e: any): void;
|
|
111
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<KvTableExpandableComponent
|
|
112
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KvTableExpandableComponent
|
|
111
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KvTableExpandableComponent<any>, never>;
|
|
112
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KvTableExpandableComponent<any>, "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; }; "showTopHeader": { "alias": "showTopHeader"; "required": false; }; "showButtonCollapsed": { "alias": "showButtonCollapsed"; "required": false; }; }, { "filterField": "filterField"; "onActiveItem": "onActiveItem"; "onActiveItemLote": "onActiveItemLote"; "doubleClickEvent": "doubleClickEvent"; "onSwitchTableChange": "onSwitchTableChange"; "onPaginate": "onPaginate"; "onSelectionChange": "onSelectionChange"; }, never, ["*"], false, never>;
|
|
113
113
|
}
|
|
@@ -72,7 +72,7 @@ export declare class KvTreetableComponent {
|
|
|
72
72
|
getCustomTemplate(templatename: string): TemplateRef<any>;
|
|
73
73
|
validateShowTemplate(rowNode: any, col: any): boolean;
|
|
74
74
|
getIcon(icon: string): string;
|
|
75
|
-
align(col: TableConfigColumn): string;
|
|
75
|
+
align(col: TableConfigColumn<any>): string;
|
|
76
76
|
resetTreeTable(): void;
|
|
77
77
|
static ɵfac: i0.ɵɵFactoryDeclaration<KvTreetableComponent, never>;
|
|
78
78
|
static ɵcmp: i0.ɵɵComponentDeclaration<KvTreetableComponent, "kv-tree-table", never, { "disableRowNodeSticky": { "alias": "disableRowNodeSticky"; "required": false; }; "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; }; "showHeader": { "alias": "showHeader"; "required": false; }; "scrollHeight": { "alias": "scrollHeight"; "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>;
|
|
@@ -2,7 +2,7 @@ import { EventEmitter, OnInit } from '@angular/core';
|
|
|
2
2
|
import { TableConfig } from '../../../api/components/table/table.config';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class WorkspaceEmpresaComponent implements OnInit {
|
|
5
|
-
tableConfig: TableConfig
|
|
5
|
+
tableConfig: TableConfig<any>;
|
|
6
6
|
empresas: any[];
|
|
7
7
|
empresaSelecionada: any;
|
|
8
8
|
totalEmpresas: number;
|
|
@@ -3,7 +3,7 @@ import { TableConfig } from '../../../api/components/table/table.config';
|
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class WorkspaceMasterComponent implements OnInit {
|
|
5
5
|
dataSource: any;
|
|
6
|
-
tableConfig: TableConfig
|
|
6
|
+
tableConfig: TableConfig<any>;
|
|
7
7
|
masters: any[];
|
|
8
8
|
masterSelecionada: any;
|
|
9
9
|
onMasterSelecionada: EventEmitter<any>;
|
package/package.json
CHANGED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export {};
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2V2ZXJpdHkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9rZWV2by1jb21wb25lbnRzL3NyYy9saWIvYXBpL3R5cGVzL3NldmVyaXR5LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJ0eXBlIFNldmVyaXR5ID0gXCJwcmltYXJ5XCIgfCBcInNlY29uZGFyeVwiIHwgXCJzdWNjZXNzXCIgfCBcImluZm9cIiB8IFwid2FybmluZ1wiIHwgXCJoZWxwXCIgfCBcImRhbmdlclwiO1xyXG5cclxuZXhwb3J0IGRlZmF1bHQgU2V2ZXJpdHk7XHJcbiJdfQ==
|