ng-firebase-table-kxp 1.0.14 → 1.1.0
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/README.md +1 -1
- package/esm2020/lib/components/table/table.component.mjs +74 -17
- package/esm2020/lib/ng-firebase-table-kxp.module.mjs +6 -10
- package/esm2020/lib/services/table.service.mjs +3 -6
- package/esm2020/lib/types/Table.mjs +1 -1
- package/fesm2015/ng-firebase-table-kxp.mjs +80 -28
- package/fesm2015/ng-firebase-table-kxp.mjs.map +1 -1
- package/fesm2020/ng-firebase-table-kxp.mjs +77 -28
- package/fesm2020/ng-firebase-table-kxp.mjs.map +1 -1
- package/lib/components/table/table.component.d.ts +8 -4
- package/lib/ng-firebase-table-kxp.module.d.ts +1 -2
- package/lib/types/Table.d.ts +3 -3
- package/package.json +2 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Arrange, Condition, TableData } from '../../types/Table';
|
|
2
|
-
import { OnInit } from '@angular/core';
|
|
2
|
+
import { OnInit, AfterViewInit, OnChanges, SimpleChanges, ElementRef } from '@angular/core';
|
|
3
3
|
import { AngularFirestore } from '@angular/fire/compat/firestore';
|
|
4
4
|
import { MatPaginator, PageEvent } from '@angular/material/paginator';
|
|
5
5
|
import { MatSort } from '@angular/material/sort';
|
|
@@ -10,10 +10,11 @@ import firebase from 'firebase/compat';
|
|
|
10
10
|
import WhereFilterOp = firebase.firestore.WhereFilterOp;
|
|
11
11
|
import { FormControl, FormArray, FormGroup } from '@angular/forms';
|
|
12
12
|
import * as i0 from "@angular/core";
|
|
13
|
-
export declare class TableComponent implements OnInit {
|
|
13
|
+
export declare class TableComponent implements OnInit, AfterViewInit, OnChanges {
|
|
14
14
|
private router;
|
|
15
15
|
private tableService;
|
|
16
16
|
private firestore;
|
|
17
|
+
private el;
|
|
17
18
|
data: TableData;
|
|
18
19
|
downloadTable?: (arrange: Arrange, conditions: Condition[]) => void;
|
|
19
20
|
arrange: Arrange | null;
|
|
@@ -56,8 +57,7 @@ export declare class TableComponent implements OnInit {
|
|
|
56
57
|
x: number;
|
|
57
58
|
y: number;
|
|
58
59
|
};
|
|
59
|
-
|
|
60
|
-
constructor(router: Router, tableService: TableService, firestore: AngularFirestore);
|
|
60
|
+
constructor(router: Router, tableService: TableService, firestore: AngularFirestore, el: ElementRef);
|
|
61
61
|
createFilterGroup(): FormGroup;
|
|
62
62
|
addFilter(filterData?: {
|
|
63
63
|
selectFilter: any;
|
|
@@ -71,6 +71,9 @@ export declare class TableComponent implements OnInit {
|
|
|
71
71
|
onSelectFilterChange(): void;
|
|
72
72
|
removeFilter(index: number): void;
|
|
73
73
|
removeAllFilters(): void;
|
|
74
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
75
|
+
ngAfterViewInit(): void;
|
|
76
|
+
private applyCustomColors;
|
|
74
77
|
ngOnInit(): Promise<void>;
|
|
75
78
|
getDisplayValue(col: any, row: any, withinLimit?: boolean): string;
|
|
76
79
|
getNestedValue(obj: any, path: string): any;
|
|
@@ -78,6 +81,7 @@ export declare class TableComponent implements OnInit {
|
|
|
78
81
|
private loadItems;
|
|
79
82
|
private applyClientSideFilters;
|
|
80
83
|
onDateFilterChange(): void;
|
|
84
|
+
onDateInput(event: any, controlName: 'initialDate' | 'finalDate', filterIndex: number): void;
|
|
81
85
|
private applyFiltersToDataSource;
|
|
82
86
|
private loadItemsPaginated;
|
|
83
87
|
onPageChange(event?: PageEvent): Promise<void>;
|
|
@@ -14,9 +14,8 @@ import * as i12 from "@angular/material/tooltip";
|
|
|
14
14
|
import * as i13 from "@angular/material/progress-spinner";
|
|
15
15
|
import * as i14 from "@angular/material/icon";
|
|
16
16
|
import * as i15 from "@angular/material/dialog";
|
|
17
|
-
import * as i16 from "ngx-mask";
|
|
18
17
|
export declare class NgFirebaseTableKxpModule {
|
|
19
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgFirebaseTableKxpModule, never>;
|
|
20
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<NgFirebaseTableKxpModule, [typeof i1.NgFirebaseTableKxpComponent, typeof i2.TableComponent], [typeof i3.CommonModule, typeof i4.ReactiveFormsModule, typeof i4.FormsModule, typeof i5.RouterModule, typeof i6.MatTableModule, typeof i7.MatPaginatorModule, typeof i8.MatSortModule, typeof i9.MatFormFieldModule, typeof i10.MatInputModule, typeof i11.MatSelectModule, typeof i12.MatTooltipModule, typeof i13.MatProgressSpinnerModule, typeof i14.MatIconModule, typeof i15.MatDialogModule
|
|
19
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NgFirebaseTableKxpModule, [typeof i1.NgFirebaseTableKxpComponent, typeof i2.TableComponent], [typeof i3.CommonModule, typeof i4.ReactiveFormsModule, typeof i4.FormsModule, typeof i5.RouterModule, typeof i6.MatTableModule, typeof i7.MatPaginatorModule, typeof i8.MatSortModule, typeof i9.MatFormFieldModule, typeof i10.MatInputModule, typeof i11.MatSelectModule, typeof i12.MatTooltipModule, typeof i13.MatProgressSpinnerModule, typeof i14.MatIconModule, typeof i15.MatDialogModule], [typeof i1.NgFirebaseTableKxpComponent, typeof i2.TableComponent]>;
|
|
21
20
|
static ɵinj: i0.ɵɵInjectorDeclaration<NgFirebaseTableKxpModule>;
|
|
22
21
|
}
|
package/lib/types/Table.d.ts
CHANGED
|
@@ -67,9 +67,9 @@ export interface Column {
|
|
|
67
67
|
hasLink?: boolean | string;
|
|
68
68
|
hasDownload?: boolean | string;
|
|
69
69
|
relation?: {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
70
|
+
targetedCollection: string;
|
|
71
|
+
sourceProperty: string;
|
|
72
|
+
targetedProperty: string;
|
|
73
73
|
};
|
|
74
74
|
queryLength?: {
|
|
75
75
|
collection: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ng-firebase-table-kxp",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "Uma biblioteca Angular poderosa para criar tabelas dinâmicas com integração completa ao Firebase Firestore",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"angular",
|
|
@@ -27,8 +27,7 @@
|
|
|
27
27
|
"@angular/fire": "^7.0.0",
|
|
28
28
|
"firebase": "^9.0.0",
|
|
29
29
|
"ngx-toastr": "^16.0.0",
|
|
30
|
-
"moment": "^2.29.0"
|
|
31
|
-
"ngx-mask": "^15.0.0"
|
|
30
|
+
"moment": "^2.29.0"
|
|
32
31
|
},
|
|
33
32
|
"dependencies": {
|
|
34
33
|
"tslib": "^2.3.0"
|