keevo-components 1.8.33 → 1.8.35
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/action-item.mjs +1 -1
- package/esm2022/lib/api/components/table/tabledit.config.mjs +1 -1
- package/esm2022/lib/api/helpers/keevo-validators.mjs +2 -2
- package/esm2022/lib/modal/kv-modal.module.mjs +1 -1
- package/esm2022/lib/modal/modal.component.mjs +10 -3
- package/esm2022/lib/table-edit/table-edit.component.mjs +79 -17
- package/esm2022/lib/table-edit/table-edit.module.mjs +1 -1
- package/esm2022/public-api.mjs +2 -2
- package/fesm2022/keevo-components.mjs +82 -13
- package/fesm2022/keevo-components.mjs.map +1 -1
- package/lib/api/components/table/action-item.d.ts +1 -0
- package/lib/api/components/table/tabledit.config.d.ts +2 -0
- package/lib/modal/modal.component.d.ts +1 -0
- package/lib/table-edit/table-edit.component.d.ts +10 -3
- package/package.json +1 -1
- package/public-api.d.ts +1 -1
|
@@ -2,5 +2,7 @@ import { TableConfig } from "./table.config";
|
|
|
2
2
|
import { TableEditConfigColumn } from "./tableedit.config.column";
|
|
3
3
|
export default interface TableEditConfig extends TableConfig {
|
|
4
4
|
columns: TableEditConfigColumn[];
|
|
5
|
+
dataKey: string;
|
|
6
|
+
reorderableColumns?: boolean;
|
|
5
7
|
disableEditRowFunction?: (rowData: any, rowNode?: any) => boolean;
|
|
6
8
|
}
|
|
@@ -14,6 +14,7 @@ export declare class ModalComponent {
|
|
|
14
14
|
justify_content: string;
|
|
15
15
|
defPositionButtons(): void;
|
|
16
16
|
setMarginBottom(): void;
|
|
17
|
+
clickExecute(action: ActionItem): void;
|
|
17
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<ModalComponent, never>;
|
|
18
19
|
static ɵcmp: i0.ɵɵComponentDeclaration<ModalComponent, "kv-modal", never, { "actions": { "alias": "actions"; "required": false; }; "actionsPosition": { "alias": "actionsPosition"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
19
20
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EventEmitter, OnChanges, OnInit, SimpleChanges, TemplateRef } from '@angular/core';
|
|
2
|
-
import { MenuItemCommandEvent, SelectItem } from 'primeng/api';
|
|
3
|
-
import { CodigoFipePipe, CpfCnpjPipe, KvMenuItem, NotificationService,
|
|
2
|
+
import { MenuItem, MenuItemCommandEvent, SelectItem } from 'primeng/api';
|
|
3
|
+
import { CodigoFipePipe, CpfCnpjPipe, KvMenuItem, NotificationService, TableConfigColumn, TelefonePipe } from '../../public-api';
|
|
4
4
|
import { DatePipe, DecimalPipe } from '@angular/common';
|
|
5
5
|
import { Table } from 'primeng/table';
|
|
6
6
|
import TableEditConfig from '../api/components/table/tabledit.config';
|
|
@@ -16,10 +16,11 @@ export declare class TableEditComponent implements OnInit, OnChanges {
|
|
|
16
16
|
config: TableEditConfig;
|
|
17
17
|
globalFilterFields: string[];
|
|
18
18
|
collapsed: boolean;
|
|
19
|
-
set setConfig(value:
|
|
19
|
+
set setConfig(value: TableEditConfig);
|
|
20
20
|
dataSource: any[];
|
|
21
21
|
editMode: 'row' | 'cell';
|
|
22
22
|
selectedItems: any[];
|
|
23
|
+
selectedItem: any;
|
|
23
24
|
totalRecords: number;
|
|
24
25
|
paginator: boolean;
|
|
25
26
|
rowsPerPageOptions: number[];
|
|
@@ -62,7 +63,12 @@ export declare class TableEditComponent implements OnInit, OnChanges {
|
|
|
62
63
|
filterField: EventEmitter<any>;
|
|
63
64
|
onSwitchTableChange: EventEmitter<any>;
|
|
64
65
|
constructor(datePipe: DatePipe, decimalPipe: DecimalPipe, codigoFipePipe: CodigoFipePipe, cpfCnpjPipe: CpfCnpjPipe, telefonePipe: TelefonePipe, notificationService: NotificationService);
|
|
66
|
+
selectedProduct: any;
|
|
67
|
+
items: MenuItem[];
|
|
65
68
|
ngOnInit(): void;
|
|
69
|
+
ngDoCheck(): void;
|
|
70
|
+
dbClickEdit(): void;
|
|
71
|
+
activateEdit(): void;
|
|
66
72
|
isRowSelectable(event: any): boolean;
|
|
67
73
|
ngOnChanges(changes: SimpleChanges): void;
|
|
68
74
|
onRowEditInit(rowData: any): void;
|
|
@@ -104,6 +110,7 @@ export declare class TableEditComponent implements OnInit, OnChanges {
|
|
|
104
110
|
onSwitchChange(estado: any, rowData: boolean, col: any): void;
|
|
105
111
|
isButtonDisable(action: any, rowData: any, commandEvent: any): any;
|
|
106
112
|
isDisableEditRowFunction(rowData: any): boolean | null;
|
|
113
|
+
isEditableTable(): boolean | null;
|
|
107
114
|
static ɵfac: i0.ɵɵFactoryDeclaration<TableEditComponent, never>;
|
|
108
115
|
static ɵcmp: i0.ɵɵComponentDeclaration<TableEditComponent, "kv-table-edit", never, { "setConfig": { "alias": "config"; "required": false; }; "dataSource": { "alias": "dataSource"; "required": false; }; "editMode": { "alias": "editMode"; "required": false; }; "selectedItems": { "alias": "selectedItems"; "required": false; }; "totalRecords": { "alias": "totalRecords"; "required": false; }; "paginator": { "alias": "paginator"; "required": false; }; "rowsPerPageOptions": { "alias": "rowsPerPageOptions"; "required": false; }; "rows": { "alias": "rows"; "required": false; }; "pageLinksOptions": { "alias": "pageLinksOptions"; "required": false; }; "showFirstLastIcon": { "alias": "showFirstLastIcon"; "required": false; }; "tableSize": { "alias": "tableSize"; "required": false; }; "applyStyle": { "alias": "applyStyle"; "required": false; }; "acoesLinhaTabela": { "alias": "acoesLinhaTabela"; "required": false; }; "filterColumnsBtn": { "alias": "filterColumnsBtn"; "required": false; }; "filtrosAvancados": { "alias": "filtrosAvancados"; "required": false; }; "scrollHeight": { "alias": "scrollHeight"; "required": false; }; "isTableScrollable": { "alias": "isTableScrollable"; "required": false; }; "rowTrackBy": { "alias": "rowTrackBy"; "required": false; }; "responsiveLayout": { "alias": "responsiveLayout"; "required": false; }; "espacamentoPai": { "alias": "espacamentoPai"; "required": false; }; "espacamentoLateral": { "alias": "espacamentoLateral"; "required": false; }; "tamanhoTotalTabela": { "alias": "tamanhoTotalTabela"; "required": false; }; "rightCollapse": { "alias": "rightCollapse"; "required": false; }; "_templates": { "alias": "templates"; "required": false; }; }, { "onFilter": "onFilter"; "onRowSave": "onRowSave"; "onActiveItem": "onActiveItem"; "onActiveItemLote": "onActiveItemLote"; "onPaginate": "onPaginate"; "onSelectionChange": "onSelectionChange"; "doubleClickEvent": "doubleClickEvent"; "filterField": "filterField"; "onSwitchTableChange": "onSwitchTableChange"; }, never, ["*"], false, never>;
|
|
109
116
|
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -155,7 +155,7 @@ export * from './lib/carousel/kv-carousel.module';
|
|
|
155
155
|
export * from './lib/progress-bar/progress-bar.component';
|
|
156
156
|
export * from './lib/progress-bar/kv-progress-bar.module';
|
|
157
157
|
/**
|
|
158
|
-
*
|
|
158
|
+
* Modal
|
|
159
159
|
*/
|
|
160
160
|
export * from './lib/modal/modal.component';
|
|
161
161
|
export * from './lib/modal/kv-modal.module';
|