@arsedizioni/ars-utils 21.2.138 → 21.2.140

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.
@@ -1130,6 +1130,7 @@ class SelectDialogComponent {
1130
1130
  this.selectionMasterChecked.set(false);
1131
1131
  this.selection().deselectAll();
1132
1132
  this.selectionInfo.set(null);
1133
+ this.changeDetector.markForCheck();
1133
1134
  }
1134
1135
  /**
1135
1136
  * Submit selection
@@ -1186,6 +1187,7 @@ class SelectDialogComponent {
1186
1187
  }
1187
1188
  if (this.dialogData.canLookup) {
1188
1189
  if (!e || e.key === 'Enter') {
1190
+ this.clearSelection();
1189
1191
  this.lookup.emit({ items: this.dialogData.items, filter: this.filterText, owner: this });
1190
1192
  }
1191
1193
  }
@@ -1211,11 +1213,10 @@ class SelectDialogComponent {
1211
1213
  */
1212
1214
  doLookup(params) {
1213
1215
  if (this.dialogData.canLookup) {
1216
+ this.clearSelection();
1214
1217
  this.lookupParams = params;
1215
1218
  this.lookupParams.first = 0;
1216
1219
  this.lookup.emit({ items: this.dialogData.items, params: this.lookupParams, owner: this });
1217
- this.clearSelection();
1218
- this.changeDetector.markForCheck();
1219
1220
  }
1220
1221
  }
1221
1222
  /**
@@ -1237,13 +1238,12 @@ class SelectDialogComponent {
1237
1238
  */
1238
1239
  doLookupPage(e) {
1239
1240
  if (this.canPaginate() && this.dialogData.canLookup) {
1241
+ this.clearSelection();
1240
1242
  if (!this.lookupParams) {
1241
1243
  this.lookupParams = { first: 0, count: this.dialogData.pageSize ?? 0 };
1242
1244
  }
1243
1245
  this.lookupParams.first = e.pageIndex * (this.dialogData.pageSize ?? 0);
1244
1246
  this.lookup.emit({ items: this.dialogData.items, params: this.lookupParams, owner: this });
1245
- this.clearSelection();
1246
- this.changeDetector.markForCheck();
1247
1247
  }
1248
1248
  }
1249
1249
  /**