@arsedizioni/ars-utils 21.2.137 → 21.2.138
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.
|
@@ -1037,7 +1037,6 @@ class SelectDialogComponent {
|
|
|
1037
1037
|
*/
|
|
1038
1038
|
notifyChanges(newTotal) {
|
|
1039
1039
|
this.dialogData.total = newTotal ?? 0;
|
|
1040
|
-
this.clearSelection();
|
|
1041
1040
|
this.changeDetector.markForCheck();
|
|
1042
1041
|
}
|
|
1043
1042
|
/**
|
|
@@ -1212,10 +1211,11 @@ class SelectDialogComponent {
|
|
|
1212
1211
|
*/
|
|
1213
1212
|
doLookup(params) {
|
|
1214
1213
|
if (this.dialogData.canLookup) {
|
|
1215
|
-
this.clearSelection();
|
|
1216
1214
|
this.lookupParams = params;
|
|
1217
1215
|
this.lookupParams.first = 0;
|
|
1218
1216
|
this.lookup.emit({ items: this.dialogData.items, params: this.lookupParams, owner: this });
|
|
1217
|
+
this.clearSelection();
|
|
1218
|
+
this.changeDetector.markForCheck();
|
|
1219
1219
|
}
|
|
1220
1220
|
}
|
|
1221
1221
|
/**
|
|
@@ -1237,12 +1237,13 @@ class SelectDialogComponent {
|
|
|
1237
1237
|
*/
|
|
1238
1238
|
doLookupPage(e) {
|
|
1239
1239
|
if (this.canPaginate() && this.dialogData.canLookup) {
|
|
1240
|
-
this.clearSelection();
|
|
1241
1240
|
if (!this.lookupParams) {
|
|
1242
1241
|
this.lookupParams = { first: 0, count: this.dialogData.pageSize ?? 0 };
|
|
1243
1242
|
}
|
|
1244
1243
|
this.lookupParams.first = e.pageIndex * (this.dialogData.pageSize ?? 0);
|
|
1245
1244
|
this.lookup.emit({ items: this.dialogData.items, params: this.lookupParams, owner: this });
|
|
1245
|
+
this.clearSelection();
|
|
1246
|
+
this.changeDetector.markForCheck();
|
|
1246
1247
|
}
|
|
1247
1248
|
}
|
|
1248
1249
|
/**
|