@webtypen/webframez-core 0.2.21 → 0.2.23
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.
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Request } from "../Router/Request";
|
|
2
|
-
export type DatatableAutoApplyType = "begin" | "end" | null;
|
|
3
2
|
export declare class Datatable {
|
|
4
3
|
collection: string | Function;
|
|
5
4
|
aggregation: {
|
|
@@ -19,8 +18,8 @@ export declare class Datatable {
|
|
|
19
18
|
perPage: number;
|
|
20
19
|
onRow?: Function;
|
|
21
20
|
onAttributes?: Function;
|
|
22
|
-
autoApplyFilter:
|
|
23
|
-
autoApplySearch:
|
|
21
|
+
autoApplyFilter: "begin" | "end" | null;
|
|
22
|
+
autoApplySearch: "begin" | "end" | null;
|
|
24
23
|
logAggregation: boolean;
|
|
25
24
|
defaultUnwind?: string | null;
|
|
26
25
|
getInit(req: Request): Promise<any>;
|
package/package.json
CHANGED
|
@@ -2,8 +2,6 @@ import { DBConnection } from "../Database/DBConnection";
|
|
|
2
2
|
import { NumericFunctions } from "../Functions/NumericFunctions";
|
|
3
3
|
import { Request } from "../Router/Request";
|
|
4
4
|
|
|
5
|
-
export type DatatableAutoApplyType = "begin" | "end" | null;
|
|
6
|
-
|
|
7
5
|
export class Datatable {
|
|
8
6
|
collection: string | Function = "";
|
|
9
7
|
aggregation: { [key: string]: any } | Function | null = null;
|
|
@@ -15,8 +13,8 @@ export class Datatable {
|
|
|
15
13
|
perPage: number = 25;
|
|
16
14
|
onRow?: Function;
|
|
17
15
|
onAttributes?: Function;
|
|
18
|
-
autoApplyFilter:
|
|
19
|
-
autoApplySearch:
|
|
16
|
+
autoApplyFilter: "begin" | "end" | null = "begin";
|
|
17
|
+
autoApplySearch: "begin" | "end" | null = null;
|
|
20
18
|
logAggregation = false;
|
|
21
19
|
defaultUnwind?: string | null = null;
|
|
22
20
|
|
|
@@ -87,7 +85,7 @@ export class Datatable {
|
|
|
87
85
|
}
|
|
88
86
|
|
|
89
87
|
if (prefix && prefix.length > 0) {
|
|
90
|
-
return [...prefix, aggr];
|
|
88
|
+
return [...prefix, ...aggr];
|
|
91
89
|
}
|
|
92
90
|
return aggr;
|
|
93
91
|
}
|