@arsedizioni/ars-utils 19.1.31 → 19.1.32
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>;
|
|
@@ -1447,11 +1447,13 @@ class ClipperDocumentComponent extends ClipperDocumentManager {
|
|
|
1447
1447
|
canSelect() {
|
|
1448
1448
|
console.log(this.dialogData.selectionMode);
|
|
1449
1449
|
console.log(this.dialogData.selectableModules?.length ?? 0);
|
|
1450
|
-
const
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1450
|
+
const a = this.dialogData.selectionMode ?? 0;
|
|
1451
|
+
const b = this.dialogData.selectableModules?.length ?? 0;
|
|
1452
|
+
const canSelect = this.lastDocument &&
|
|
1453
|
+
a > 0 &&
|
|
1454
|
+
(b === 0
|
|
1455
|
+
? (this.lastDocument?.model === ClipperModel.NormativaVigente || this.lastDocument?.model === ClipperModel.AggiornamentoNormativo)
|
|
1456
|
+
: (this.dialogData.selectableModules?.findIndex(x => x === ClipperUtils.getClipperModuleFromModel(this.lastDocument)) !== -1));
|
|
1455
1457
|
console.log(canSelect);
|
|
1456
1458
|
return canSelect;
|
|
1457
1459
|
}
|