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.
@@ -4,5 +4,6 @@ export interface ActionItem {
4
4
  color?: string;
5
5
  disabled?: boolean;
6
6
  visible?: boolean;
7
+ closeAfterClick?: boolean;
7
8
  command?: (event?: any) => void;
8
9
  }
@@ -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, TableConfig, TableConfigColumn, TelefonePipe } from '../../public-api';
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: TableConfig);
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "keevo-components",
3
- "version": "1.8.33",
3
+ "version": "1.8.35",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^16.2.12",
6
6
  "@angular/core": "^16.2.12",
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
- * Dialog
158
+ * Modal
159
159
  */
160
160
  export * from './lib/modal/modal.component';
161
161
  export * from './lib/modal/kv-modal.module';