keevo-components 1.8.212 → 1.8.213

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.
Files changed (30) hide show
  1. package/esm2022/lib/api/components/table/table.config.mjs +1 -1
  2. package/esm2022/lib/api/services/notification.service.mjs +2 -1
  3. package/esm2022/lib/components/kv-avatar/kv-avatar.component.mjs +4 -4
  4. package/esm2022/lib/components/kv-button/kv-button.component.mjs +2 -2
  5. package/esm2022/lib/components/kv-buttons/kv-button-popup/kv-button-popup.component.mjs +2 -2
  6. package/esm2022/lib/components/kv-chart/kv-chart.component.mjs +2 -2
  7. package/esm2022/lib/components/kv-inputs/kv-check/kv-check.component.mjs +2 -2
  8. package/esm2022/lib/components/kv-inputs/kv-dropdown/kv-dropdown.component.mjs +2 -2
  9. package/esm2022/lib/components/kv-inputs/kv-editor/kv-editor.component.mjs +5 -7
  10. package/esm2022/lib/components/kv-inputs/kv-input-calendar/kv-input-calendar.component.mjs +2 -2
  11. package/esm2022/lib/components/kv-inputs/kv-input-mask/kv-input-mask.component.mjs +2 -2
  12. package/esm2022/lib/components/kv-inputs/kv-input-number/kv-input-number.component.mjs +2 -2
  13. package/esm2022/lib/components/kv-inputs/kv-input-password/kv-input-password.component.mjs +2 -2
  14. package/esm2022/lib/components/kv-inputs/kv-input-text/kv-input-text.component.mjs +2 -2
  15. package/esm2022/lib/components/kv-inputs/kv-input-textarea/kv-input-textarea.component.mjs +2 -2
  16. package/esm2022/lib/components/kv-inputs/kv-input-time/kv-input-time.component.mjs +2 -2
  17. package/esm2022/lib/components/kv-inputs/kv-multi-select/kv-multi-select.component.mjs +2 -2
  18. package/esm2022/lib/components/kv-inputs/kv-radio-group/kv-radio-group.component.mjs +2 -2
  19. package/esm2022/lib/components/kv-inputs/kv-switch/kv-switch.component.mjs +2 -2
  20. package/esm2022/lib/components/kv-modal/kv-modal.component.mjs +2 -2
  21. package/esm2022/lib/components/kv-page-form/kv-page-form.component.mjs +2 -2
  22. package/esm2022/lib/components/kv-pick-list/kv-pick-list.component.mjs +2 -2
  23. package/esm2022/lib/components/kv-table/kv-table.component.mjs +40 -3
  24. package/esm2022/lib/components/kv-table-edit/kv-table-edit.component.mjs +30 -3
  25. package/fesm2022/keevo-components.mjs +111 -50
  26. package/fesm2022/keevo-components.mjs.map +1 -1
  27. package/lib/api/components/table/table.config.d.ts +1 -0
  28. package/lib/components/kv-table/kv-table.component.d.ts +7 -2
  29. package/lib/components/kv-table-edit/kv-table-edit.component.d.ts +2 -1
  30. package/package.json +1 -1
@@ -16,6 +16,7 @@ export interface TableConfig {
16
16
  enableToggleNodes?: boolean;
17
17
  disableControlCheckboxFunction?: (rowData: any, rowNode?: any) => boolean;
18
18
  fieldGroupColorFunction?: (data: any) => string;
19
+ disableRow?: (rowData: any) => boolean;
19
20
  }
20
21
  export interface ActionsLoteItem {
21
22
  /**
@@ -1,5 +1,5 @@
1
1
  import { DatePipe, DecimalPipe } from '@angular/common';
2
- import { DoCheck, ElementRef, EventEmitter, OnInit, QueryList, Renderer2, TemplateRef } from '@angular/core';
2
+ import { AfterViewInit, 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';
@@ -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 {
12
+ export declare class KvTableComponent implements OnInit, DoCheck, AfterViewInit {
13
13
  private readonly datePipe;
14
14
  private readonly decimalPipe;
15
15
  private readonly cpfCnpjPipe;
@@ -39,6 +39,7 @@ export declare class KvTableComponent implements OnInit, DoCheck {
39
39
  _templates: any;
40
40
  table: Table;
41
41
  deletedColumnsIndex: any[];
42
+ ptable: Table;
42
43
  set setConfig(value: TableConfig);
43
44
  defaultSortField: string;
44
45
  dataSource: any[];
@@ -83,6 +84,8 @@ export declare class KvTableComponent implements OnInit, DoCheck {
83
84
  constructor(datePipe: DatePipe, decimalPipe: DecimalPipe, cpfCnpjPipe: CpfCnpjPipe, telefonePipe: TelefonePipe, renderer: Renderer2, elementRef: ElementRef);
84
85
  ngDoCheck(): void;
85
86
  ngOnInit(): void;
87
+ ngAfterViewInit(): void;
88
+ resetTable(): void;
86
89
  onWindowResize(): void;
87
90
  activeItem(rowData: any): void;
88
91
  getOrExecute<T>(action: ValueOrFn<T>, data: any): T;
@@ -92,6 +95,8 @@ export declare class KvTableComponent implements OnInit, DoCheck {
92
95
  isSwitchField(col: TableConfigColumn): boolean;
93
96
  isRowSelectable(event: any): boolean;
94
97
  isDisabledCheckbox(rowData: any): boolean;
98
+ isDisabledRow(rowData: any): boolean;
99
+ verificaCursor(): void;
95
100
  loadImage(rowData: any, col: TableConfigColumn): string;
96
101
  onGlobalFilter(table: Table, event: Event): void;
97
102
  paginate(event: any): void;
@@ -1,7 +1,7 @@
1
1
  import { EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
2
2
  import { DatePipe, DecimalPipe } from '@angular/common';
3
3
  import { MenuItem } from 'primeng/api';
4
- import { CpfCnpjPipe, NotificationService, TelefonePipe, ValueOrFn } from '../../../public-api';
4
+ import { CpfCnpjPipe, NotificationService, TableConfigColumn, TelefonePipe, ValueOrFn } from '../../../public-api';
5
5
  import { TableEditConfigColumn } from '../../api/components/table/tableedit.config.column';
6
6
  import TableEditConfig from '../../api/components/table/tabledit.config';
7
7
  import { Subject, Subscription } from 'rxjs';
@@ -54,6 +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
58
  static ɵfac: i0.ɵɵFactoryDeclaration<KvTableEditComponent, never>;
58
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>;
59
60
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "keevo-components",
3
- "version": "1.8.212",
3
+ "version": "1.8.213",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.3.8",
6
6
  "@angular/core": "^17.3.8",