ng-firebase-table-kxp 1.2.7 → 1.2.9
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/esm2020/lib/components/table/table.component.mjs +185 -178
- package/esm2020/lib/services/filter.service.mjs +7 -4
- package/esm2020/lib/services/table.service.mjs +2 -2
- package/esm2020/lib/types/Table.mjs +1 -1
- package/fesm2015/ng-firebase-table-kxp.mjs +191 -180
- package/fesm2015/ng-firebase-table-kxp.mjs.map +1 -1
- package/fesm2020/ng-firebase-table-kxp.mjs +189 -179
- package/fesm2020/ng-firebase-table-kxp.mjs.map +1 -1
- package/lib/components/table/table.component.d.ts +2 -2
- package/lib/services/filter.service.d.ts +2 -2
- package/lib/types/Table.d.ts +1 -0
- package/package.json +1 -1
|
@@ -12,7 +12,7 @@ import { PaginationService } from '../../services/pagination.service';
|
|
|
12
12
|
import { BehaviorSubject } from 'rxjs';
|
|
13
13
|
import firebase from 'firebase/compat';
|
|
14
14
|
import WhereFilterOp = firebase.firestore.WhereFilterOp;
|
|
15
|
-
import { FormControl, FormArray, FormGroup } from '@angular/forms';
|
|
15
|
+
import { AbstractControl, FormControl, FormArray, FormGroup } from '@angular/forms';
|
|
16
16
|
import * as i0 from "@angular/core";
|
|
17
17
|
export declare class TableComponent<T = any> implements OnInit, AfterViewInit, OnChanges, OnDestroy {
|
|
18
18
|
private router;
|
|
@@ -70,7 +70,7 @@ export declare class TableComponent<T = any> implements OnInit, AfterViewInit, O
|
|
|
70
70
|
finalDate?: string;
|
|
71
71
|
}): void;
|
|
72
72
|
hasActiveDateFilter(): boolean;
|
|
73
|
-
getAvailableFilterOptions(): DropdownItem[];
|
|
73
|
+
getAvailableFilterOptions(currentGroup?: AbstractControl): DropdownItem[];
|
|
74
74
|
onSelectFilterChange(): void;
|
|
75
75
|
removeFilter(index: number): void;
|
|
76
76
|
removeAllFilters(): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FormArray, FormGroup } from '@angular/forms';
|
|
1
|
+
import { AbstractControl, FormArray, FormGroup } from '@angular/forms';
|
|
2
2
|
import { Arrange, Column } from '../types/Table';
|
|
3
3
|
import { TableService } from './table.service';
|
|
4
4
|
import { OrderByDirection } from 'firebase/firestore';
|
|
@@ -39,7 +39,7 @@ export declare class FilterService {
|
|
|
39
39
|
/**
|
|
40
40
|
* Retorna as opções de filtro disponíveis
|
|
41
41
|
*/
|
|
42
|
-
getAvailableFilterOptions(dropdownItems: any[], isPaginated: boolean, filtersForm: FormArray): any[];
|
|
42
|
+
getAvailableFilterOptions(dropdownItems: any[], isPaginated: boolean, filtersForm: FormArray, currentGroup?: AbstractControl): any[];
|
|
43
43
|
/**
|
|
44
44
|
* Remove um filtro do FormArray
|
|
45
45
|
*/
|
package/lib/types/Table.d.ts
CHANGED