adapted shared topic chip to accept already fetched topics instead of making another seperate call (+ error handling for possible null and undifined types as specified in the openapi generated model). Hopefully found all instances of regular material tooltip and changed to use new chip
LocationBasedServices/smartguide/pipeline/head This commit looks good

This commit is contained in:
Kazgatari
2026-08-10 21:18:58 +02:00
parent f4b4fb0562
commit 9ce6d5f26e
16 changed files with 104 additions and 46 deletions
@@ -1,29 +1,27 @@
<button
type="button"
class="topic-chip__button"
[class.topic-chip__button--without-count]="!hasCount"
[disabled]="disabled"
[attr.aria-pressed]="active ? 'true' : null"
[matTooltip]="buttonTooltip"
[matTooltipDisabled]="!buttonTooltip"
matTooltipClass="topic-chip-tooltip"
[class.topic-chip__button--without-count]="!hasCount()"
[disabled]="disabled()"
[attr.aria-pressed]="active() ? 'true' : null"
[appComponentTooltip]="AppTopicTooltipComponent"
[tooltipInputs]="tooltipInputs()"
[tooltipMaxWidth]="'500px'"
(click)="handleClick()">
<span
class="topic-chip__label"
[matTooltip]="labelTooltip"
[matTooltipDisabled]="!labelTooltip"
matTooltipClass="topic-chip-tooltip">
{{ label }}
<span class="topic-chip__label">
{{ label() }}
</span>
@if (hasCount) {
@if (hasCount()) {
<span
class="topic-chip__count"
[matTooltip]="normalizedCountTooltip"
[matTooltipDisabled]="!normalizedCountTooltip">
{{ count }}
@if (countIconName) {
<mat-icon class="topic-chip__count-icon">{{ countIconName }}</mat-icon>
[matTooltip]="normalizedCountTooltip()"
[matTooltipDisabled]="!normalizedCountTooltip()">
{{ count() }}
@if (countIconName()) {
<mat-icon class="topic-chip__count-icon">{{
countIconName()
}}</mat-icon>
}
</span>
}