File tree 24 files changed +74
-75
lines changed
wml-angular-components-base
24 files changed +74
-75
lines changed Original file line number Diff line number Diff line change 9
9
"peerDependencies" : {
10
10
"@angular/common" : " ^19.2.5" ,
11
11
"@angular/core" : " ^19.2.5" ,
12
- "@windmillcode/angular-wml-components-base" : " ^19.2.5001 " ,
13
- "@windmillcode/wml-components-base" : " ^19.2.5001 "
12
+ "@windmillcode/angular-wml-components-base" : " ^19.2.5100 " ,
13
+ "@windmillcode/wml-components-base" : " ^19.2.5100 "
14
14
},
15
15
"private" : false ,
16
16
"repository" : {
20
20
"scripts" : {
21
21
"build" : " npx ng build"
22
22
},
23
- "version" : " 19.2.5001 "
23
+ "version" : " 19.2.5100 "
24
24
}
Original file line number Diff line number Diff line change 9
9
"peerDependencies" : {
10
10
"@angular/common" : " ^19.2.5" ,
11
11
"@angular/core" : " ^19.2.5" ,
12
- "@windmillcode/wml-components-base" : " ^19.2.5001 "
12
+ "@windmillcode/wml-components-base" : " ^19.2.5100 "
13
13
},
14
14
"private" : false ,
15
15
"repository" : {
19
19
"scripts" : {
20
20
"build" : " npx ng build"
21
21
},
22
- "version" : " 19.2.5001 "
22
+ "version" : " 19.2.5100 "
23
23
}
Original file line number Diff line number Diff line change 9
9
"peerDependencies" : {
10
10
"@angular/common" : " ^19.2.5" ,
11
11
"@angular/core" : " ^19.2.5" ,
12
- "@windmillcode/angular-wml-components-base" : " ^19.2.5001 " ,
13
- "@windmillcode/wml-components-base" : " ^19.2.5001 "
12
+ "@windmillcode/angular-wml-components-base" : " ^19.2.5100 " ,
13
+ "@windmillcode/wml-components-base" : " ^19.2.5100 "
14
14
},
15
15
"private" : false ,
16
16
"repository" : {
20
20
"scripts" : {
21
21
"build" : " npx ng build"
22
22
},
23
- "version" : " 19.2.5001 "
23
+ "version" : " 19.2.5100 "
24
24
}
Original file line number Diff line number Diff line change 9
9
"peerDependencies" : {
10
10
"@angular/common" : " ^19.2.5" ,
11
11
"@angular/core" : " ^19.2.5" ,
12
- "@windmillcode/angular-wml-components-base" : " ^19.2.5001 " ,
13
- "@windmillcode/wml-components-base" : " ^19.2.5001 "
12
+ "@windmillcode/angular-wml-components-base" : " ^19.2.5100 " ,
13
+ "@windmillcode/wml-components-base" : " ^19.2.5100 "
14
14
},
15
15
"private" : false ,
16
16
"repository" : {
20
20
"scripts" : {
21
21
"build" : " npx ng build"
22
22
},
23
- "version" : " 19.2.5001 "
23
+ "version" : " 19.2.5100 "
24
24
}
Original file line number Diff line number Diff line change 11
11
"@angular/cdk" : " ^19.2.5" ,
12
12
"@angular/common" : " ^19.2.5" ,
13
13
"@angular/core" : " ^19.2.5" ,
14
- "@windmillcode/angular-wml-button" : " ^19.2.5001 " ,
15
- "@windmillcode/angular-wml-components-base" : " ^19.2.5001 " ,
16
- "@windmillcode/wml-components-base" : " ^19.2.5001 "
14
+ "@windmillcode/angular-wml-button" : " ^19.2.5100 " ,
15
+ "@windmillcode/angular-wml-components-base" : " ^19.2.5100 " ,
16
+ "@windmillcode/wml-components-base" : " ^19.2.5100 "
17
17
},
18
18
"private" : false ,
19
19
"repository" : {
24
24
"build" : " npx ng build" ,
25
25
"test" : " npx ng test wml-chips --code-coverage"
26
26
},
27
- "version" : " 19.2.5001 "
27
+ "version" : " 19.2.5100 "
28
28
}
Original file line number Diff line number Diff line change 13
13
"scripts" : {
14
14
"build" : " npx ng build"
15
15
},
16
- "version" : " 19.2.5001 "
16
+ "version" : " 19.2.5100 "
17
17
}
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ export class WMLAPIPaginationResponseModel<DT=any> {
58
58
startOrderValue ?:number
59
59
} = { }
60
60
pageNum :number = 0
61
- pageSize :number = 0
61
+ pageSize :number = 5
62
62
totalPages :number = 0
63
63
totalItems :number = 0
64
64
getIndexInfo ( ) {
@@ -67,13 +67,12 @@ export class WMLAPIPaginationResponseModel<DT=any> {
67
67
calculateCurrentState ( totalPages ?: number , totalItems ?: number , pageSize ?: number ) {
68
68
let displayPageNum = this . pageNum + 1 ;
69
69
70
+ this . pageSize = pageSize ?? this . data . length ;
70
71
if ( totalItems ) {
71
- this . pageSize = this . data . length ;
72
72
this . totalItems = totalItems ;
73
- this . totalPages = Math . ceil ( totalItems / ( pageSize || this . pageSize ) ) ;
73
+ this . totalPages = Math . ceil ( totalItems / this . pageSize ) ;
74
74
} else {
75
- totalPages = totalPages || displayPageNum ;
76
- this . pageSize = this . data . length ;
75
+ totalPages = totalPages ?? displayPageNum ;
77
76
this . totalPages = totalPages ;
78
77
this . totalItems = totalPages * this . pageSize ;
79
78
}
Original file line number Diff line number Diff line change 9
9
"peerDependencies" : {
10
10
"@angular/common" : " ^19.2.5" ,
11
11
"@angular/core" : " ^19.2.5" ,
12
- "@windmillcode/angular-wml-components-base" : " ^19.2.5001 " ,
13
- "@windmillcode/wml-components-base" : " ^19.2.5001 "
12
+ "@windmillcode/angular-wml-components-base" : " ^19.2.5100 " ,
13
+ "@windmillcode/wml-components-base" : " ^19.2.5100 "
14
14
},
15
15
"private" : false ,
16
16
"repository" : {
20
20
"scripts" : {
21
21
"build" : " npx ng build"
22
22
},
23
- "version" : " 19.2.5001 "
23
+ "version" : " 19.2.5100 "
24
24
}
Original file line number Diff line number Diff line change 9
9
"peerDependencies" : {
10
10
"@angular/common" : " ^19.2.5" ,
11
11
"@angular/core" : " ^19.2.5" ,
12
- "@windmillcode/angular-wml-components-base" : " ^19.2.5001 " ,
13
- "@windmillcode/wml-components-base" : " ^19.2.5001 "
12
+ "@windmillcode/angular-wml-components-base" : " ^19.2.5100 " ,
13
+ "@windmillcode/wml-components-base" : " ^19.2.5100 "
14
14
},
15
15
"private" : false ,
16
16
"repository" : {
20
20
"scripts" : {
21
21
"build" : " npx ng build"
22
22
},
23
- "version" : " 19.2.5001 "
23
+ "version" : " 19.2.5100 "
24
24
}
Original file line number Diff line number Diff line change 9
9
"peerDependencies" : {
10
10
"@angular/common" : " ^19.2.5" ,
11
11
"@angular/core" : " ^19.2.5" ,
12
- "@windmillcode/angular-wml-components-base" : " ^19.2.5001 " ,
13
- "@windmillcode/wml-components-base" : " ^19.2.5001 "
12
+ "@windmillcode/angular-wml-components-base" : " ^19.2.5100 " ,
13
+ "@windmillcode/wml-components-base" : " ^19.2.5100 "
14
14
},
15
15
"private" : false ,
16
16
"repository" : {
20
20
"scripts" : {
21
21
"build" : " npx ng build"
22
22
},
23
- "version" : " 19.2.5001 "
23
+ "version" : " 19.2.5100 "
24
24
}
Original file line number Diff line number Diff line change 9
9
"peerDependencies" : {
10
10
"@angular/common" : " ^19.2.5" ,
11
11
"@angular/core" : " ^19.2.5" ,
12
- "@windmillcode/angular-wml-components-base" : " ^19.2.5001 " ,
13
- "@windmillcode/wml-components-base" : " ^19.2.5001 "
12
+ "@windmillcode/angular-wml-components-base" : " ^19.2.5100 " ,
13
+ "@windmillcode/wml-components-base" : " ^19.2.5100 "
14
14
},
15
15
"private" : false ,
16
16
"repository" : {
20
20
"scripts" : {
21
21
"build" : " npx ng build"
22
22
},
23
- "version" : " 19.2.5001 "
23
+ "version" : " 19.2.5100 "
24
24
}
Original file line number Diff line number Diff line change 9
9
"peerDependencies" : {
10
10
"@angular/common" : " ^19.2.5" ,
11
11
"@angular/core" : " ^19.2.5" ,
12
- "@windmillcode/angular-wml-components-base" : " ^19.2.5001 " ,
13
- "@windmillcode/wml-components-base" : " ^19.2.5001 "
12
+ "@windmillcode/angular-wml-components-base" : " ^19.2.5100 " ,
13
+ "@windmillcode/wml-components-base" : " ^19.2.5100 "
14
14
},
15
15
"private" : false ,
16
16
"repository" : {
20
20
"scripts" : {
21
21
"build" : " npx ng build"
22
22
},
23
- "version" : " 19.2.5001 "
23
+ "version" : " 19.2.5100 "
24
24
}
Original file line number Diff line number Diff line change 10
10
"@angular/common" : " ^19.2.5" ,
11
11
"@angular/core" : " ^19.2.5" ,
12
12
"@angular/forms" : " ^19.2.5" ,
13
- "@windmillcode/angular-wml-components-base" : " ^19.2.5001 " ,
14
- "@windmillcode/angular-wml-infinite-dropdown" : " ^19.2.5001 " ,
15
- "@windmillcode/wml-components-base" : " ^19.2.5001 "
13
+ "@windmillcode/angular-wml-components-base" : " ^19.2.5100 " ,
14
+ "@windmillcode/angular-wml-infinite-dropdown" : " ^19.2.5100 " ,
15
+ "@windmillcode/wml-components-base" : " ^19.2.5100 "
16
16
},
17
17
"private" : false ,
18
18
"repository" : {
22
22
"scripts" : {
23
23
"build" : " npx ng build"
24
24
},
25
- "version" : " 19.2.5001 "
25
+ "version" : " 19.2.5100 "
26
26
}
Original file line number Diff line number Diff line change 9
9
"peerDependencies" : {
10
10
"@angular/common" : " ^19.2.5" ,
11
11
"@angular/core" : " ^19.2.5" ,
12
- "@windmillcode/angular-wml-components-base" : " ^19.2.5001 " ,
13
- "@windmillcode/wml-components-base" : " ^19.2.5001 "
12
+ "@windmillcode/angular-wml-components-base" : " ^19.2.5100 " ,
13
+ "@windmillcode/wml-components-base" : " ^19.2.5100 "
14
14
},
15
15
"private" : false ,
16
16
"repository" : {
20
20
"scripts" : {
21
21
"build" : " npx ng build"
22
22
},
23
- "version" : " 19.2.5001 "
23
+ "version" : " 19.2.5100 "
24
24
}
Original file line number Diff line number Diff line change 9
9
"peerDependencies" : {
10
10
"@angular/common" : " ^19.2.5" ,
11
11
"@angular/core" : " ^19.2.5" ,
12
- "@windmillcode/angular-wml-button" : " ^19.2.5001 "
12
+ "@windmillcode/angular-wml-button" : " ^19.2.5100 "
13
13
},
14
14
"private" : false ,
15
15
"repository" : {
19
19
"scripts" : {
20
20
"build" : " npx ng build"
21
21
},
22
- "version" : " 19.2.5001 "
22
+ "version" : " 19.2.5100 "
23
23
}
Original file line number Diff line number Diff line change 9
9
"peerDependencies" : {
10
10
"@angular/common" : " ^19.2.5" ,
11
11
"@angular/core" : " ^19.2.5" ,
12
- "@windmillcode/angular-wml-components-base" : " ^19.2.5001 " ,
13
- "@windmillcode/wml-components-base" : " ^19.2.5001 "
12
+ "@windmillcode/angular-wml-components-base" : " ^19.2.5100 " ,
13
+ "@windmillcode/wml-components-base" : " ^19.2.5100 "
14
14
},
15
15
"private" : false ,
16
16
"repository" : {
20
20
"scripts" : {
21
21
"build" : " npx ng build"
22
22
},
23
- "version" : " 19.2.5001 "
23
+ "version" : " 19.2.5100 "
24
24
}
Original file line number Diff line number Diff line change 9
9
"peerDependencies" : {
10
10
"@angular/common" : " ^19.2.5" ,
11
11
"@angular/core" : " ^19.2.5" ,
12
- "@windmillcode/angular-wml-components-base" : " ^19.2.5001 " ,
13
- "@windmillcode/wml-components-base" : " ^19.2.5001 "
12
+ "@windmillcode/angular-wml-components-base" : " ^19.2.5100 " ,
13
+ "@windmillcode/wml-components-base" : " ^19.2.5100 "
14
14
},
15
15
"private" : false ,
16
16
"repository" : {
20
20
"scripts" : {
21
21
"build" : " npx ng build"
22
22
},
23
- "version" : " 19.2.5001 "
23
+ "version" : " 19.2.5100 "
24
24
}
Original file line number Diff line number Diff line change 9
9
"peerDependencies" : {
10
10
"@angular/common" : " ^19.2.5" ,
11
11
"@angular/core" : " ^19.2.5" ,
12
- "@windmillcode/angular-wml-components-base" : " ^19.2.5001 " ,
13
- "@windmillcode/wml-components-base" : " ^19.2.5001 "
12
+ "@windmillcode/angular-wml-components-base" : " ^19.2.5100 " ,
13
+ "@windmillcode/wml-components-base" : " ^19.2.5100 "
14
14
},
15
15
"private" : false ,
16
16
"repository" : {
20
20
"scripts" : {
21
21
"build" : " npx ng build"
22
22
},
23
- "version" : " 19.2.5001 "
23
+ "version" : " 19.2.5100 "
24
24
}
Original file line number Diff line number Diff line change 8
8
"peerDependencies" : {
9
9
"@angular/common" : " ^19.2.5" ,
10
10
"@angular/core" : " ^19.2.5" ,
11
- "@windmillcode/angular-wml-components-base" : " ^19.2.5001 " ,
12
- "@windmillcode/wml-components-base" : " ^19.2.5001 "
11
+ "@windmillcode/angular-wml-components-base" : " ^19.2.5100 " ,
12
+ "@windmillcode/wml-components-base" : " ^19.2.5100 "
13
13
},
14
14
"private" : false ,
15
15
"repository" : {
22
22
"postbuild" : " npx copyfiles schematics/collection.json schematics/*/schema.json schematics/*/files/** ../../dist/wml-schematics/" ,
23
23
"test" : " npx ng test templates --code-coverage"
24
24
},
25
- "version" : " 19.2.5001 "
25
+ "version" : " 19.2.5100 "
26
26
}
Original file line number Diff line number Diff line change 9
9
"peerDependencies" : {
10
10
"@angular/common" : " ^19.2.5" ,
11
11
"@angular/core" : " ^19.2.5" ,
12
- "@windmillcode/angular-wml-components-base" : " ^19.2.5001 " ,
13
- "@windmillcode/angular-wml-field" : " ^19.2.5001 " ,
14
- "@windmillcode/angular-wml-infinite-dropdown" : " ^19.2.5001 " ,
15
- "@windmillcode/wml-components-base" : " ^19.2.5001 "
12
+ "@windmillcode/angular-wml-components-base" : " ^19.2.5100 " ,
13
+ "@windmillcode/angular-wml-field" : " ^19.2.5100 " ,
14
+ "@windmillcode/angular-wml-infinite-dropdown" : " ^19.2.5100 " ,
15
+ "@windmillcode/wml-components-base" : " ^19.2.5100 "
16
16
},
17
17
"private" : false ,
18
18
"repository" : {
22
22
"scripts" : {
23
23
"build" : " npx ng build"
24
24
},
25
- "version" : " 19.2.5001 "
25
+ "version" : " 19.2.5100 "
26
26
}
You can’t perform that action at this time.
0 commit comments