@arsedizioni/ars-utils 18.2.3 → 18.2.5

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.
@@ -727,7 +727,7 @@ class SelectDialogComponent {
727
727
  /**
728
728
  * Mark for check
729
729
  */
730
- markForCheck() {
730
+ notifyChanges() {
731
731
  this.changeDetector.markForCheck();
732
732
  }
733
733
  /**
@@ -857,13 +857,13 @@ class SelectDialogComponent {
857
857
  }
858
858
  if (this.dialogData.canLookup) {
859
859
  if (!e || e.keyCode === 13) {
860
- this.lookup.emit({ items: this.dialogData.items, filter: this.filterText });
860
+ this.lookup.emit({ items: this.dialogData.items, filter: this.filterText, owner: this });
861
861
  }
862
862
  }
863
863
  }
864
864
  /**
865
865
  * Apply filter using filter options
866
- * @param filterOPtion : the current filter
866
+ * @param filterOption : the current filter option
867
867
  */
868
868
  doFilterByOptions(filterOption) {
869
869
  if (this.dialogData.canLookup && this.dialogData.canFilter) {
@@ -884,7 +884,6 @@ class SelectDialogComponent {
884
884
  this.lookupParams = params;
885
885
  this.lookupParams.first = 0;
886
886
  this.lookup.emit({ items: this.dialogData.items, params: this.lookupParams, owner: this });
887
- this.changeDetector.markForCheck();
888
887
  }
889
888
  }
890
889
  /**
@@ -908,32 +907,28 @@ class SelectDialogComponent {
908
907
  this.clearSelection();
909
908
  this.lookupParams.first = e.pageIndex * (this.dialogData.pageSize ?? 0);
910
909
  this.lookup.emit({ items: this.dialogData.items, params: this.lookupParams, owner: this });
911
- this.changeDetector.markForCheck();
912
910
  }
913
911
  }
914
912
  /**
915
913
  * Append
916
914
  */
917
915
  doAppend() {
918
- this.append.emit({ items: this.dialogData.items });
919
- this.changeDetector.markForCheck();
916
+ this.append.emit({ items: this.dialogData.items, owner: this });
920
917
  }
921
918
  /**
922
919
  * Edit
923
920
  */
924
921
  doEdit() {
925
- if (this.selection.selectedOptions.selected) {
922
+ if (this.selection.selectedOptions.selected?.length > 0) {
926
923
  this.edit.emit(this.selection.selectedOptions.selected[0].value);
927
- this.changeDetector.markForCheck();
928
924
  }
929
925
  }
930
926
  /**
931
927
  * View
932
928
  */
933
929
  doView() {
934
- if (this.selection.selectedOptions.selected) {
930
+ if (this.selection.selectedOptions.selected?.length > 0) {
935
931
  this.view.emit(this.selection.selectedOptions.selected[0].value);
936
- this.changeDetector.markForCheck();
937
932
  }
938
933
  }
939
934
  /**