@arsedizioni/ars-utils 21.2.291 → 21.2.292
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.
|
@@ -2114,9 +2114,8 @@ class ClipperSearchResultItemComponent {
|
|
|
2114
2114
|
const model = this.isReadableModel() ?? this.item().model ?? 0;
|
|
2115
2115
|
return this.isReadable() && model > 0 && ClipperUtils.isClipperModelReadable(model) && this.item().isRead !== true;
|
|
2116
2116
|
}, ...(ngDevMode ? [{ debugName: "canBeRead" }] : /* istanbul ignore next */ []));
|
|
2117
|
-
//
|
|
2118
|
-
|
|
2119
|
-
// Prepare taxonomy path for display.
|
|
2117
|
+
// Recompute taxonomy path whenever item() changes.
|
|
2118
|
+
effect(() => {
|
|
2120
2119
|
const taxonomy = [];
|
|
2121
2120
|
this.item().taxonomyPath?.split('\r\n').forEach(p => {
|
|
2122
2121
|
const pathValues = p.split('>');
|
|
@@ -2128,7 +2127,9 @@ class ClipperSearchResultItemComponent {
|
|
|
2128
2127
|
}
|
|
2129
2128
|
});
|
|
2130
2129
|
this.taxonomy.set(taxonomy);
|
|
2131
|
-
|
|
2130
|
+
});
|
|
2131
|
+
// Subscribe to selection changes once the parent input signal is available.
|
|
2132
|
+
effect(() => {
|
|
2132
2133
|
this.parent()?.selection?.changed
|
|
2133
2134
|
.pipe(takeUntilDestroyed(this.destroyRef))
|
|
2134
2135
|
.subscribe(() => {
|