@arsedizioni/ars-utils 18.2.218 → 18.2.220

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.
@@ -739,27 +739,29 @@ class SelectDialogComponent {
739
739
  }
740
740
  /**
741
741
  * Master selection toggle
742
+ * @param e: the event
742
743
  */
743
- masterSelectionToggle(args) {
744
- if (args.checked)
744
+ masterSelectionToggle(e) {
745
+ if (e.checked)
745
746
  // Deselect if not allselected so that toggle makes the right choice
746
747
  this.selection.selectAll();
747
748
  else
748
749
  this.selection.deselectAll();
749
750
  this.selectionMasterIndeterminate.set(false);
750
- this.selectionMasterChecked = args.checked;
751
+ this.selectionMasterChecked.set(e.checked);
751
752
  this.okDisabled.set(this.dialogData.mustSelect &&
752
753
  (!this.selection || this.selection.selectedOptions.selected.length === 0));
753
754
  this.updateSelectionInfo();
754
755
  }
755
756
  /**
756
757
  * Handle selection/deselection of an item
758
+ * @param e: the event
757
759
  */
758
760
  select(e) {
759
761
  if (!this.dialogData.multi) {
760
762
  this.selection.deselectAll();
761
- if (e.options?.length > 0)
762
- e.options[0].selected = true;
763
+ if (e.value.options?.length > 0)
764
+ e.value.options[0].selected = true;
763
765
  this.okDisabled.set(false);
764
766
  }
765
767
  else {