@if (loading()) {
}
@if (query()) { }
{{item[nameProp]}} @if (date) { {{date | customDate}} }
@if (type !== DataType.SavedView && type !== DataType.Workflow && type !== DataType.CustomField && type !== DataType.Group && type !== DataType.User && type !== DataType.MailAccount && type !== DataType.MailRule) { }
@if (searchResults()?.total === 0) { } @else { @if (searchResults()?.documents.length) { @for (document of searchResults().documents; track document.id) { } } @if (searchResults()?.saved_views.length) { @for (saved_view of searchResults().saved_views; track saved_view.id) { } } @if (searchResults()?.tags.length) { @for (tag of searchResults().tags; track tag.id) { } } @if (searchResults()?.correspondents.length) { @for (correspondent of searchResults().correspondents; track correspondent.id) { } } @if (searchResults()?.document_types.length) { @for (documentType of searchResults().document_types; track documentType.id) { } } @if (searchResults()?.storage_paths.length) { @for (storagePath of searchResults().storage_paths; track storagePath.id) { } } @if (searchResults()?.users.length) { @for (user of searchResults().users; track user.id) { } } @if (searchResults()?.groups.length) { @for (group of searchResults().groups; track group.id) { } } @if (searchResults()?.custom_fields.length) { @for (customField of searchResults().custom_fields; track customField.id) { } } @if (searchResults()?.mail_accounts.length) { @for (mailAccount of searchResults().mail_accounts; track mailAccount.id) { } } @if (searchResults()?.mail_rules.length) { @for (mailRule of searchResults().mail_rules; track mailRule.id) { } } @if (searchResults()?.workflows.length) { @for (workflow of searchResults().workflows; track workflow.id) { } } }