{{ (editMode ? 'search.configuration.filter-expression-modal.edit-filter' : 'search.configuration.filter-expression-modal.add-filter' ) | translate }}
@if (!editMode) { {{ 'search.configuration.filter-expression-modal.filter-operators' | translate }} {{ 'search.configuration.filter-expression-modal.filter-type.and' | translate }} {{ 'search.configuration.filter-expression-modal.filter-type.or' | translate }} {{ 'search.configuration.filter-expression-modal.filter-type.not' | translate }} {{ 'search.configuration.filter-expression-modal.filters' | translate }} @if ((target | async) === 'field') { @for (filter of fieldFilters; track filter) { {{ 'search.configuration.filter-expression-modal.filter-type.' + filter | translate }} } } @else { @for (filter of paragraphFilters; track filter) { {{ 'search.configuration.filter-expression-modal.filter-type.' + filter | translate }} } } } @if (forms[prop.value]) { @switch (prop.value) { @case ('label') { @if (useKbData) { @for (labelset of labelsets | async | keyvalue; track labelset.key) { {{ labelset.value.title }} } @if (selectedLabelset) { @for (label of ((labelsets | async) || {})?.[selectedLabelset]?.labels || []; track label.title) { {{ label.title }} } } } @else { {{ 'search.configuration.filter-expression-modal.label-filter.labelset-id' | translate }} {{ 'search.configuration.filter-expression-modal.label-filter.label' | translate }} } } @case ('entity') { @if (useKbData) { @if (selectedNerFamily) { } } @else { {{ 'search.configuration.filter-expression-modal.entity-filter.family' | translate }} NER } } @case ('language') { {{ 'search.configuration.filter-expression-modal.language-filter.language' | translate }} {{ 'search.configuration.filter-expression-modal.language-filter.only-primary' | translate }} } @case ('field') { @for (type of fieldTypes; track type) { {{ 'resource.field-' + type | translate }} } {{ 'search.configuration.filter-expression-modal.field-filter.id' | translate }} } @case ('resource') { @if (!dataAugmentation) { {{ 'generic.uid' | translate }} {{ 'generic.slug' | translate }} } @if (resourceSelection === 'id' || dataAugmentation) { {{ 'generic.uid' | translate }} } @else { {{ 'generic.slug' | translate }} } } @case ('keyword') { {{ 'search.configuration.filter-expression-modal.filter-type.keyword' | translate }} } @case (prop.value === 'resource_mimetype' || prop.value === 'field_mimetype' ? prop.value : '') {
@for (type of mimeTypes; track type) { {{ type }} } / {{ 'search.configuration.filter-expression-modal.mime-filter.subtype' | translate }}
} @case (prop.value === 'created' || prop.value === 'modified' ? prop.value : '') { } @case ('generated') { {{ 'search.configuration.filter-expression-modal.generated-filter.data-augmentation' | translate }} @if (!dataAugmentation) { {{ 'search.configuration.filter-expression-modal.generated-filter.field-prefix' | translate }} } } @case ('kind') { @for (kind of paragraphKinds; track kind) { {{ kind }} } } @case ('origin_tag') { Tag } @case ('origin_path') { {{ 'search.configuration.filter-expression-modal.origin-filter.prefix' | translate }} } @case ('origin_source') { Id } @case ('origin_collaborator') { {{ 'search.configuration.filter-expression-modal.origin-filter.collaborator' | translate }} } @case ('origin_metadata') { {{ 'search.configuration.filter-expression-modal.origin-filter.field' | translate }} {{ 'search.configuration.filter-expression-modal.origin-filter.value' | translate }} } }
}
{{ 'generic.cancel' | translate }} {{ (editMode ? 'generic.edit' : 'generic.add') | translate }}