From f5aa1741edb30c60ff15cb11b0e054acab127c26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Trottier?= Date: Fri, 26 Jul 2019 09:46:22 -0400 Subject: [PATCH 01/11] style(geo.search.search-selector) useless line --- .../search-selector.component.ts | 42 ------------------- 1 file changed, 42 deletions(-) diff --git a/packages/geo/src/lib/search/search-selector/search-selector.component.ts b/packages/geo/src/lib/search/search-selector/search-selector.component.ts index 7c88a7ad6b..39cee64a30 100644 --- a/packages/geo/src/lib/search/search-selector/search-selector.component.ts +++ b/packages/geo/src/lib/search/search-selector/search-selector.component.ts @@ -86,46 +86,4 @@ export class SearchSelectorComponent implements OnInit { this.change.emit(searchType); } - /** - * Get all search sources - * @internal - */ - getSearchSources(): SearchSource[] { - return this.searchSourceService.getSources(); - } - - /** - * Triggered when a setting is checked (checkbox style) - * @internal - */ - settingsValueCheckedCheckbox( - event: MatCheckboxChange, - source: SearchSource, - setting: SearchSourceSettings, - settingValue: SettingOptions - ) { - settingValue.enabled = event.checked; - source.setParamFromSetting(setting); - } - - /** - * Triggered when a setting is checked (radiobutton style) - * @internal - */ - settingsValueCheckedRadioButton( - event: MatRadioChange, - source: SearchSource, - setting: SearchSourceSettings, - settingValue: SettingOptions - ) { - setting.values.forEach( conf => { - if (conf.value !== settingValue.value) { - conf.enabled = !event.source.checked; - } else { - conf.enabled = event.source.checked; - } - }); - source.setParamFromSetting(setting); - } - } From 13c09826e08e7e64514694c548866081e20a52a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Trottier?= Date: Fri, 26 Jul 2019 09:48:38 -0400 Subject: [PATCH 02/11] feat(geo.search.search-setting) enable/disable search source with checkbox --- .../search-settings.component.html | 26 ++++++++++++++----- .../search-settings.component.scss | 15 +++++++++++ .../search-settings.component.ts | 4 +++ 3 files changed, 38 insertions(+), 7 deletions(-) diff --git a/packages/geo/src/lib/search/search-settings/search-settings.component.html b/packages/geo/src/lib/search/search-settings/search-settings.component.html index 84efd38e34..65ccb0f067 100644 --- a/packages/geo/src/lib/search/search-settings/search-settings.component.html +++ b/packages/geo/src/lib/search/search-settings/search-settings.component.html @@ -14,14 +14,26 @@ #searchSettingsMenu="matMenu" class="no-border-radius"> - + + + + + + + xPosition="after"> + + + + + + + xPosition="after"> - +