@arsedizioni/ars-utils 21.0.47 → 21.0.50
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.
|
@@ -1095,11 +1095,12 @@ class SelectDialogComponent {
|
|
|
1095
1095
|
* @param e : the MatPaginator PageEvent data
|
|
1096
1096
|
*/
|
|
1097
1097
|
doLookupPage(e) {
|
|
1098
|
-
|
|
1099
|
-
if (this.canPaginate() && this.dialogData.canLookup && this.lookupParams) {
|
|
1098
|
+
if (this.canPaginate() && this.dialogData.canLookup) {
|
|
1100
1099
|
this.clearSelection();
|
|
1100
|
+
if (!this.lookupParams) {
|
|
1101
|
+
this.lookupParams = { first: 0, count: this.dialogData.pageSize ?? 0 };
|
|
1102
|
+
}
|
|
1101
1103
|
this.lookupParams.first = e.pageIndex * (this.dialogData.pageSize ?? 0);
|
|
1102
|
-
console.log(this.lookupParams.first + ' - ' + (this.dialogData.pageSize ?? 0));
|
|
1103
1104
|
this.lookup.emit({ items: this.dialogData.items, params: this.lookupParams, owner: this });
|
|
1104
1105
|
}
|
|
1105
1106
|
}
|