Cerca lista

@if (showSuggestions()) {
@for (group of suggestionGroups(); track group.label) {
{{ group.label }}
@for (suggestion of group.objectsList; track suggestion.id) {
{{ suggestion.nome }}
} }
}
@for (filtro of activeFilters(); track $index) {
{{ filtroLabel(filtro.gruppo) }}: {{ filtro.nome }} ×
}
@if (loading()) {

Caricamento liste modello…

} @else if (loadError(); as message) { } @else {
{{ resultsLabel() }}
@if (risultati().length === 0) {

Nessuna lista trovata con questi filtri.

} @else {
@for (lista of risultati(); track lista.id) {
{{ lista.nome }}
@if (lista.tipoEventoNome) { {{ lista.tipoEventoNome }} }
    @for (item of lista.vociPreview; track item.tipo === 'materiale' ? item.materialeId : item.id) { @if (item.tipo === 'materiale') {
  • {{ isVoceSpuntata(lista.id, item.materialeId) ? '☑️' : '⬜' }} {{ item.nome }} — {{ item.quantita }} {{ item.unitaMisura }}
  • } @else {
  • {{ isSottoListaSpuntata(lista.id, item) ? '☑️' : '⬜' }} {{ item.nome }}
  • } } @if (lista.vociRestanti > 0) {
  • +{{ lista.vociRestanti }} altr{{ lista.vociRestanti === 1 ? 'a' : 'e' }} voc{{ lista.vociRestanti === 1 ? 'e' : 'i' }}
  • }
@if (!isAuthenticated) {

Accedi per usare questa lista come base.

} @if (creazioneErroreId() === lista.id) { } @if (isAuthenticated) { }
}
} }