keevo-components 1.8.359 → 1.8.360

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 (28) hide show
  1. package/esm2022/lib/api/base-components/base-component-crud-list.mjs +1 -1
  2. package/esm2022/lib/api/base-components/base-component-table.mjs +1 -1
  3. package/esm2022/lib/api/components/table/table.config.column.mjs +1 -1
  4. package/esm2022/lib/api/components/table/table.config.mjs +1 -1
  5. package/esm2022/lib/api/components/table/tabledit.config.mjs +1 -1
  6. package/esm2022/lib/api/components/table/tableedit.config.column.mjs +1 -1
  7. package/esm2022/lib/api/components/tree-table/tree-table.config.mjs +1 -1
  8. package/esm2022/lib/components/kv-table/kv-table.component.mjs +1 -1
  9. package/esm2022/lib/components/kv-table-edit/kv-table-edit.component.mjs +1 -1
  10. package/esm2022/lib/components/kv-table-expandable/kv-table-expandable.component.mjs +1 -1
  11. package/esm2022/lib/components/kv-tree-table/kv-tree-table.component.mjs +1 -1
  12. package/esm2022/lib/components/kv-workspace/empresa/kv-workspace-empresa.component.mjs +1 -1
  13. package/esm2022/lib/components/kv-workspace/master/kv-workspace-master.component.mjs +1 -1
  14. package/fesm2022/keevo-components.mjs.map +1 -1
  15. package/lib/api/base-components/base-component-crud-list.d.ts +2 -2
  16. package/lib/api/base-components/base-component-table.d.ts +8 -8
  17. package/lib/api/components/table/table.config.column.d.ts +3 -3
  18. package/lib/api/components/table/table.config.d.ts +4 -4
  19. package/lib/api/components/table/tabledit.config.d.ts +1 -1
  20. package/lib/api/components/table/tableedit.config.column.d.ts +1 -1
  21. package/lib/api/components/tree-table/tree-table.config.d.ts +1 -1
  22. package/lib/components/kv-table/kv-table.component.d.ts +35 -35
  23. package/lib/components/kv-table-edit/kv-table-edit.component.d.ts +1 -1
  24. package/lib/components/kv-table-expandable/kv-table-expandable.component.d.ts +18 -18
  25. package/lib/components/kv-tree-table/kv-tree-table.component.d.ts +1 -1
  26. package/lib/components/kv-workspace/empresa/kv-workspace-empresa.component.d.ts +1 -1
  27. package/lib/components/kv-workspace/master/kv-workspace-master.component.d.ts +1 -1
  28. package/package.json +1 -1
@@ -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<any> | TreeTableConfig;
18
+ tableConfig: TableConfig | TreeTableConfig;
19
19
  totalRecords: number;
20
20
  actionsPageList: ActionItem[];
21
- table: KvTableComponent<any>;
21
+ table: KvTableComponent;
22
22
  treetable: KvTreetableComponent;
23
23
  constructor(dialogService: DialogService, notificationService: NotificationService, router: Router);
24
24
  ngOnInit(): void;
@@ -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<any> | TableEditConfig | TreeTableConfig;
23
+ config: TableConfig | 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<any>): string;
59
+ returnRowClass(rowData: any, col: TableConfigColumn): 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<any>): string;
64
+ loadImage(rowData: any, col: TableConfigColumn): 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>): any;
69
+ transformValue(rowData: any, col: TableConfigColumn): 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<any>): boolean;
73
+ isSwitchField(col: TableConfigColumn): 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<any>): boolean;
80
- isChipField(col: TableConfigColumn<any>): boolean;
81
- isBooleanField(rowData: any, col: TableConfigColumn<any>): boolean;
79
+ isImageField(col: TableConfigColumn): boolean;
80
+ isChipField(col: TableConfigColumn): boolean;
81
+ isBooleanField(rowData: any, col: TableConfigColumn): boolean;
82
82
  paginate($event: any): void;
83
83
  adjustTableSize(): void;
84
84
  onWindowResize(): void;
@@ -1,6 +1,6 @@
1
- export type TableConfigColumn<TData> = {
1
+ export type TableConfigColumn = {
2
2
  position?: number;
3
- field: string & keyof TData;
3
+ field: string;
4
4
  header: string;
5
5
  headerTooltip?: string;
6
6
  fieldType?: string;
@@ -29,7 +29,7 @@ export type TableConfigColumn<TData> = {
29
29
  pipe: "date" | "datetime" | "dateMonthYear" | "decimal" | "cpfcnpj" | "telefone" | "codigofipe" | "money" | "percentage" | "capitalize";
30
30
  transform?: never;
31
31
  } | {
32
- transform: (value: TData) => any;
32
+ transform: (value: any) => 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<TData> {
3
+ export interface TableConfig {
4
4
  actions?: KvMenuItem[];
5
5
  actionsLote?: ActionsLoteItem[];
6
- columns: TableConfigColumn<TData>[];
6
+ columns: TableConfigColumn[];
7
7
  dataKey?: string;
8
8
  rows?: any;
9
9
  title?: string;
@@ -14,9 +14,9 @@ export interface TableConfig<TData> {
14
14
  enableFilter?: boolean;
15
15
  enableSelect?: boolean;
16
16
  enableToggleNodes?: boolean;
17
- disableControlCheckboxFunction?: (rowData: TData, rowNode?: any) => boolean;
17
+ disableControlCheckboxFunction?: (rowData: any, rowNode?: any) => boolean;
18
18
  fieldGroupColorFunction?: (data: any) => string;
19
- disableRow?: (rowData: TData) => boolean;
19
+ disableRow?: (rowData: any) => 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<any> {
3
+ export default interface TableEditConfig extends TableConfig {
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<any> & {
3
+ export type TableEditConfigColumn = TableConfigColumn & {
4
4
  required?: boolean;
5
5
  validator?: any;
6
6
  mask?: string;
@@ -5,7 +5,7 @@ export interface TreeTableConfig {
5
5
  actions?: KvMenuItem[];
6
6
  actionsLote?: ActionsLoteItem[];
7
7
  actionsPai?: ActionsPaiItem[];
8
- columns: TableConfigColumn<any>[];
8
+ columns: TableConfigColumn[];
9
9
  dataKey?: string;
10
10
  rows?: any;
11
11
  title?: string;
@@ -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<TData> implements OnInit, DoCheck, AfterViewInit {
12
+ export declare class KvTableComponent implements OnInit, DoCheck, AfterViewInit {
13
13
  private readonly datePipe;
14
14
  private readonly decimalPipe;
15
15
  private readonly cpfCnpjPipe;
@@ -21,25 +21,25 @@ export declare class KvTableComponent<TData> implements OnInit, DoCheck, AfterVi
21
21
  selectedSize: string;
22
22
  tamanhoTela: number;
23
23
  checked: boolean;
24
- columns: TableConfigColumn<TData>[];
25
- deletedColuns: TableConfigColumn<TData>[];
24
+ columns: TableConfigColumn[];
25
+ deletedColuns: TableConfigColumn[];
26
26
  prepositions: string[];
27
27
  menuFiltro: boolean;
28
28
  checkboxClicked: boolean;
29
29
  collapsed: boolean;
30
30
  tableActions: MenuItem[][];
31
- currDataSource: TData[];
31
+ currDataSource: any[];
32
32
  menuItems: MenuItem[];
33
33
  actionsOffset: number;
34
34
  templates: QueryList<any>;
35
35
  _templates: any;
36
36
  table: Table;
37
37
  ptable: Table;
38
- set setConfig(value: TableConfig<TData>);
38
+ set setConfig(value: TableConfig);
39
39
  first: import("@angular/core").ModelSignal<number>;
40
40
  rows: import("@angular/core").ModelSignal<number>;
41
- defaultSortField: keyof TData | undefined;
42
- dataSource: TData[];
41
+ defaultSortField: string | undefined;
42
+ dataSource: any[];
43
43
  selectedItems: any[];
44
44
  totalRecords: number;
45
45
  paginator: boolean;
@@ -54,7 +54,7 @@ export declare class KvTableComponent<TData> implements OnInit, DoCheck, AfterVi
54
54
  scrollHeight: string;
55
55
  isTableScrollable: boolean;
56
56
  tableCaptalized: boolean;
57
- rowTrackBy: (index: number, item: TData) => any;
57
+ rowTrackBy: (index: number, item: any) => any;
58
58
  responsiveLayout: boolean;
59
59
  disabledHeaderCheckbox: boolean;
60
60
  /**
@@ -69,7 +69,7 @@ export declare class KvTableComponent<TData> implements OnInit, DoCheck, AfterVi
69
69
  * @deprecated A quantidade de paginitorPageIcons é atribuído de acordo com o tamanho da tela, essa propriedade não está sendo utilizada
70
70
  */
71
71
  showFirstLastIcon: boolean;
72
- onActiveItem: EventEmitter<TData>;
72
+ onActiveItem: EventEmitter<any>;
73
73
  onActiveItemLote: EventEmitter<any>;
74
74
  onPaginate: EventEmitter<TablePaginate>;
75
75
  onSelectionChange: EventEmitter<any>;
@@ -84,58 +84,58 @@ export declare class KvTableComponent<TData> implements OnInit, DoCheck, AfterVi
84
84
  ngDoCheck(): void;
85
85
  ngOnInit(): void;
86
86
  ngAfterViewInit(): void;
87
- definirColunasConfiguraveis(config: TableConfig<TData>): void;
88
- definirFiltrosGlobais(config: TableConfig<TData>): void;
87
+ definirColunasConfiguraveis(config: TableConfig): void;
88
+ definirFiltrosGlobais(config: TableConfig): void;
89
89
  resetTable(): void;
90
90
  onWindowResize(): void;
91
- activeItem(rowData: TData): void;
91
+ activeItem(rowData: any): void;
92
92
  getOrExecute<T>(action: ValueOrFn<T>, data: any): T;
93
- isBooleanField(rowData: TData, col: TableConfigColumn<TData>): boolean;
94
- isChipField(col: TableConfigColumn<TData>): boolean;
93
+ isBooleanField(rowData: any, col: TableConfigColumn): boolean;
94
+ isChipField(col: TableConfigColumn): boolean;
95
95
  protected onPage(event: TablePageEvent): void;
96
- isImageField(col: TableConfigColumn<TData>): boolean;
97
- isSwitchField(col: TableConfigColumn<TData>): boolean;
96
+ isImageField(col: TableConfigColumn): boolean;
97
+ isSwitchField(col: TableConfigColumn): boolean;
98
98
  isRowSelectable(event: any): boolean;
99
- isDisabledCheckbox(rowData: TData): boolean;
100
- isDisabledRow(rowData: TData): boolean;
99
+ isDisabledCheckbox(rowData: any): boolean;
100
+ isDisabledRow(rowData: any): boolean;
101
101
  private getStyleClass;
102
102
  verificaCursor(): void;
103
- loadImage(rowData: any, col: TableConfigColumn<TData>): string;
103
+ loadImage(rowData: any, col: TableConfigColumn): string;
104
104
  onGlobalFilter(table: Table, event: Event): void;
105
105
  paginate(event: any): void;
106
106
  selectionChange(value: any): void;
107
107
  activeItemLote(selectedItems: any): void;
108
- returnRowClass(rowData: any, col: TableConfigColumn<TData>): string;
108
+ returnRowClass(rowData: any, col: TableConfigColumn): string;
109
109
  private expiredFile;
110
- transformValue(rowData: any, col: TableConfigColumn<TData>): any;
110
+ transformValue(rowData: any, col: TableConfigColumn): any;
111
111
  transformCapitalize(value: string): string;
112
112
  formatarValor(valor: number): string;
113
113
  adjustTableSize(): void;
114
114
  doubleClick(e: any, rowData: any): void;
115
- retornarRow(rowData: TData, col: TableConfigColumn<TData>, field: string): string;
115
+ retornarRow(rowData: any, col: TableConfigColumn, field: string): string;
116
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;
117
+ returnClassChip(rowData: any, col: TableConfigColumn): string;
118
+ returnClassIcon(rowData: any, col: TableConfigColumn): string;
119
+ returnTooltipIcon(rowData: any, col: TableConfigColumn): string;
120
+ returnTooltipRow(rowData: any, col: TableConfigColumn): any;
121
121
  deleteColumn(field: string): void;
122
122
  addColumn(field: string): void;
123
- dinamicColumnSet(e: any, col: TableConfigColumn<TData>): void;
123
+ dinamicColumnSet(e: any, col: TableConfigColumn): void;
124
124
  abrirMenuFiltro(e: any): void;
125
125
  fecharMenuFiltro(): void;
126
126
  onEscapeKey(event: KeyboardEvent): void;
127
127
  onClickEvent(event: any): void;
128
128
  styleSetter(style: string, data: string): void;
129
- checkMenuFiltro(col: TableConfigColumn<TData>): void;
130
- sortByPosition(): (elem1: any, elem2: any) => 0 | 1 | -1;
131
- dinamicDisableColumn(col: TableConfigColumn<TData>): boolean;
129
+ checkMenuFiltro(col: TableConfigColumn): void;
130
+ sortByPosition(): (elem1: any, elem2: any) => 1 | -1 | 0;
131
+ dinamicDisableColumn(col: TableConfigColumn): boolean;
132
132
  checkHideColumns(): void;
133
133
  getCustomTemplate(templatename: string): TemplateRef<any>;
134
- onSwitchChange(estado: any, rowData: TData, col: TableConfigColumn<TData>): void;
134
+ onSwitchChange(estado: any, rowData: any, col: TableConfigColumn): void;
135
135
  createTableActions(): void;
136
136
  onSort(e: any): void;
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>;
137
+ get config(): TableConfig;
138
+ columnsFilter: import("@angular/core").Signal<TableConfigColumn[]>;
139
+ static ɵfac: i0.ɵɵFactoryDeclaration<KvTableComponent, never>;
140
+ static ɵcmp: i0.ɵɵComponentDeclaration<KvTableComponent, "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>;
141
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>): any;
57
+ transformValueDrop(value: any, col: TableConfigColumn): 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<TData> implements OnInit, DoCheck {
12
+ export declare class KvTableExpandableComponent 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<TData>;
18
+ config: TableConfig;
19
19
  globalFilterFields: string[];
20
20
  tamanhoTela: number;
21
- columns: TableConfigColumn<TData>[];
22
- deletedColuns: TableConfigColumn<TData>[];
21
+ columns: TableConfigColumn[];
22
+ deletedColuns: TableConfigColumn[];
23
23
  dataIndex: {
24
24
  [key: string]: any;
25
25
  };
@@ -30,11 +30,11 @@ export declare class KvTableExpandableComponent<TData> implements OnInit, DoChec
30
30
  data: any;
31
31
  actions?: MenuItem[];
32
32
  }[];
33
- currDataSource: TData[];
33
+ currDataSource: any[];
34
34
  _templates: any;
35
- set setConfig(value: TableConfig<TData>);
35
+ set setConfig(value: TableConfig);
36
36
  filtrosAvancados: boolean;
37
- dataSource: TData[];
37
+ dataSource: any[];
38
38
  selectedItems: any[];
39
39
  tableCaptalized: boolean;
40
40
  applyStyle: Function;
@@ -64,8 +64,8 @@ export declare class KvTableExpandableComponent<TData> implements OnInit, DoChec
64
64
  onGlobalFilter(table: Table, event: Event): void;
65
65
  executeCollapsed(): void;
66
66
  checkMenuFiltro(col: any): void;
67
- sortByPosition(): (elem1: any, elem2: any) => 0 | 1 | -1;
68
- dinamicDisableColumn(col: TableConfigColumn<TData>): boolean;
67
+ sortByPosition(): (elem1: any, elem2: any) => 1 | -1 | 0;
68
+ dinamicDisableColumn(col: TableConfigColumn): 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<TData> implements OnInit, DoChec
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<TData>): boolean;
80
- isChipField(col: TableConfigColumn<TData>): boolean;
81
- isImageField(col: TableConfigColumn<TData>): boolean;
82
- isSwitchField(col: TableConfigColumn<TData>): boolean;
79
+ isBooleanField(rowData: any, col: TableConfigColumn): boolean;
80
+ isChipField(col: TableConfigColumn): boolean;
81
+ isImageField(col: TableConfigColumn): boolean;
82
+ isSwitchField(col: TableConfigColumn): 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<TData> implements OnInit, DoChec
91
91
  selectAll(event: any): void;
92
92
  isAllIndeterminate(): boolean;
93
93
  isAllSelected(): boolean;
94
- transformValue(rowData: any, col: TableConfigColumn<TData>): any;
94
+ transformValue(rowData: any, col: TableConfigColumn): any;
95
95
  getCustomTemplate(templatename: string): TemplateRef<any>;
96
96
  formatarValor(valor: number): string;
97
- returnRowClass(rowData: any, col: TableConfigColumn<TData>): string;
97
+ returnRowClass(rowData: any, col: TableConfigColumn): 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<TData>): string;
102
+ loadImage(rowData: any, col: TableConfigColumn): 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<TData> implements OnInit, DoChec
108
108
  createDataIndex(): void;
109
109
  returnRowDataActions(rowData: any): void;
110
110
  onSort(e: any): void;
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>;
111
+ static ɵfac: i0.ɵɵFactoryDeclaration<KvTableExpandableComponent, never>;
112
+ static ɵcmp: i0.ɵɵComponentDeclaration<KvTableExpandableComponent, "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<any>): string;
75
+ align(col: TableConfigColumn): 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<any>;
5
+ tableConfig: TableConfig;
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<any>;
6
+ tableConfig: TableConfig;
7
7
  masters: any[];
8
8
  masterSelecionada: any;
9
9
  onMasterSelecionada: EventEmitter<any>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "keevo-components",
3
- "version": "1.8.359",
3
+ "version": "1.8.360",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.3.8",
6
6
  "@angular/core": "^17.3.8",