- |
+ {{fieldIdsMap[id].name}}
+
|
-
|
@@ -85,12 +85,12 @@
value="false">No
|
-
+ name="selectOp_{{i}}" [disableOptionCentering]="true" class="matSelection uk-input" panelClass="matSelectionPanel">
+ {{op.id}}
+
Add rule
@@ -134,7 +134,8 @@
+ (selectionChange)=" simpleEntityChanged($event)"
+ [onChangeNavigate]="true">
diff --git a/searchPages/searchUtils/advancedSearchForm.module.ts b/searchPages/searchUtils/advancedSearchForm.module.ts
index e8e3b25b..87ec3891 100644
--- a/searchPages/searchUtils/advancedSearchForm.module.ts
+++ b/searchPages/searchUtils/advancedSearchForm.module.ts
@@ -10,11 +10,12 @@ import {DateFilterModule} from './dateFilter.module';
import {SearchFormModule} from './searchForm.module';
import {QuickSelectionsModule} from "./quick-selections.module";
import {EntitiesSelectionModule} from "./entitiesSelection.module";
+import {MatSelectModule} from "@angular/material";
@NgModule({
imports: [
- CommonModule, FormsModule, RouterModule, EntitiesAutocompleteModule, StaticAutocompleteModule, DateFilterModule, SearchFormModule, QuickSelectionsModule, EntitiesSelectionModule
+ CommonModule, FormsModule, RouterModule, EntitiesAutocompleteModule, StaticAutocompleteModule, DateFilterModule, SearchFormModule, QuickSelectionsModule, EntitiesSelectionModule, MatSelectModule
],
declarations: [
AdvancedSearchFormComponent,
diff --git a/searchPages/searchUtils/dateFilter.component.ts b/searchPages/searchUtils/dateFilter.component.ts
index 66528d91..21215bbb 100644
--- a/searchPages/searchUtils/dateFilter.component.ts
+++ b/searchPages/searchUtils/dateFilter.component.ts
@@ -11,17 +11,17 @@ import {MatDatepickerInputEvent} from "@angular/material";
@Component({
selector: 'date-filter',
template: `
-
-
+
diff --git a/searchPages/searchUtils/dateFilter.module.ts b/searchPages/searchUtils/dateFilter.module.ts
index 86c1c25b..f1c4fd19 100644
--- a/searchPages/searchUtils/dateFilter.module.ts
+++ b/searchPages/searchUtils/dateFilter.module.ts
@@ -3,14 +3,14 @@ import { CommonModule } from '@angular/common';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { MyDatePickerModule } from '../../utils/my-date-picker/my-date-picker.module';
import {DateFilterComponent} from './dateFilter.component';
-import {MatNativeDateModule} from '@angular/material';
+import {MatNativeDateModule, MatSelectModule} from '@angular/material';
import {MatDatepickerModule} from '@angular/material/datepicker';
import {MatFormFieldModule} from '@angular/material';
import {MatInputModule} from '@angular/material';
@NgModule({
imports: [
CommonModule, FormsModule, ReactiveFormsModule, MyDatePickerModule,
- MatNativeDateModule, MatDatepickerModule, MatFormFieldModule, MatInputModule
+ MatNativeDateModule, MatDatepickerModule, MatFormFieldModule, MatInputModule, MatSelectModule
],
declarations: [
DateFilterComponent
diff --git a/searchPages/searchUtils/entitiesSelection.component.ts b/searchPages/searchUtils/entitiesSelection.component.ts
index 302a3cd2..c3ab479a 100644
--- a/searchPages/searchUtils/entitiesSelection.component.ts
+++ b/searchPages/searchUtils/entitiesSelection.component.ts
@@ -9,25 +9,9 @@ import {Router} from "@angular/router";
@Component({
selector: 'entities-selection',
template: `
-
-
-
-
-
+
+ (valueChange)="entityChanged()" [disableOptionCentering]="true" panelClass="matSelectionPanel">
1 "
value="all">All content
@@ -108,8 +92,8 @@ export class EntitiesSelectionComponent {
entityChanged() {
- if (!this.simpleView) {
- this.router.navigate([this.getUrl(false)]);
+ if (!this.simpleView || this.onChangeNavigate) {
+ this.router.navigate([this.getUrl(this.simpleView)]);
} else {
this.selectionChange.emit({
entity: this.selectedEntity,
diff --git a/searchPages/searchUtils/searchHelperClasses.class.ts b/searchPages/searchUtils/searchHelperClasses.class.ts
index c53b643a..e8927af7 100644
--- a/searchPages/searchUtils/searchHelperClasses.class.ts
+++ b/searchPages/searchUtils/searchHelperClasses.class.ts
@@ -41,8 +41,8 @@ export class AdvancedField{
}
}
export class DateValue{
- public types = ["any","range","1mon","2mon","3mon","6mon","12mon","2year","5year","10year"];
- public typesTitle = ["any","in the specified date range","in the last month","in the last 2 months","in the last 3 months","in the last 6 months","in the last year","in the last 2 years","in the last 5 years","in the last 10 years"];
+ public types = ["1mon","2mon","3mon","6mon","12mon","2year","5year","10year","range"];
+ public typesTitle = ["Last month","Last 2 months","Last 3 months","Last 6 months","Last year","Last 2 years","Last 5 years","Last 10 years", "Specify date range..."];
public type: string ;
public from:Date = new Date();
public to:Date = new Date();
|