@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.
- package/core/services/screen.service.d.ts +1 -0
- package/esm2022/core/services/screen.service.mjs +5 -2
- package/esm2022/ui.application/ui/dialogs/select/select-dialog.component.mjs +8 -6
- package/fesm2022/arsedizioni-ars-utils-core.mjs +4 -1
- package/fesm2022/arsedizioni-ars-utils-core.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.application.mjs +7 -5
- package/fesm2022/arsedizioni-ars-utils-ui.application.mjs.map +1 -1
- package/package.json +7 -7
- package/ui.application/ui/dialogs/select/select-dialog.component.d.ts +6 -2
|
@@ -739,27 +739,29 @@ class SelectDialogComponent {
|
|
|
739
739
|
}
|
|
740
740
|
/**
|
|
741
741
|
* Master selection toggle
|
|
742
|
+
* @param e: the event
|
|
742
743
|
*/
|
|
743
|
-
masterSelectionToggle(
|
|
744
|
-
if (
|
|
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
|
|
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 {
|