@arsedizioni/ars-utils 19.1.31 → 19.1.33
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.
|
@@ -13,7 +13,7 @@ export declare class ClipperDocumentMenuComponent implements OnInit, OnDestroy {
|
|
|
13
13
|
private changeDetector;
|
|
14
14
|
private clipperService;
|
|
15
15
|
readonly useSelections: import("@angular/core").InputSignal<boolean>;
|
|
16
|
-
readonly selectionSource: import("@angular/core").InputSignal<"
|
|
16
|
+
readonly selectionSource: import("@angular/core").InputSignal<"selection" | "bag" | "none">;
|
|
17
17
|
protected selection: () => ClipperDocumentInfo[];
|
|
18
18
|
readonly parent: import("@angular/core").InputSignal<ClipperSearchResultManager>;
|
|
19
19
|
readonly item: import("@angular/core").InputSignal<ClipperDocumentInfo>;
|
|
@@ -1445,14 +1445,13 @@ class ClipperDocumentComponent extends ClipperDocumentManager {
|
|
|
1445
1445
|
* Checks if documents can be selected and returned as message
|
|
1446
1446
|
*/
|
|
1447
1447
|
canSelect() {
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
const canSelect =
|
|
1451
|
-
|
|
1452
|
-
(
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
console.log(canSelect);
|
|
1448
|
+
const a = this.dialogData.selectionMode ?? 0;
|
|
1449
|
+
const b = this.dialogData.selectableModules?.length ?? 0;
|
|
1450
|
+
const canSelect = this.lastDocument &&
|
|
1451
|
+
a > 0 &&
|
|
1452
|
+
(b === 0
|
|
1453
|
+
? (this.lastDocument?.model === ClipperModel.NormativaVigente || this.lastDocument?.model === ClipperModel.AggiornamentoNormativo)
|
|
1454
|
+
: (this.dialogData.selectableModules?.findIndex(x => x === ClipperUtils.getClipperModuleFromModel(this.lastDocument)) !== -1));
|
|
1456
1455
|
return canSelect;
|
|
1457
1456
|
}
|
|
1458
1457
|
/**
|