diff --git a/src/app/search/components/output/output-by-category.component.css b/src/app/search/components/output/output-by-category.component.css index b2dae60069485fa3154c17b3f62c76207ca9b099..1ca6523c6414ccc9c9125a13cdda7e6fce5a9142 100644 --- a/src/app/search/components/output/output-by-category.component.css +++ b/src/app/search/components/output/output-by-category.component.css @@ -9,10 +9,14 @@ color: #7AC29A; } -button:hover { +.letter-spacing { + letter-spacing: 2px; +} + +.selectbox button:hover { background-color: #F8F9FA; } -button:focus { +.selectbox button:focus { box-shadow: none; } \ No newline at end of file diff --git a/src/app/search/components/output/output-by-category.component.html b/src/app/search/components/output/output-by-category.component.html index 2a880a834776c469e48f87859838f625a0db9efd..bc25c970921721b1c2cbd3dbe18348b8ca69bdc2 100644 --- a/src/app/search/components/output/output-by-category.component.html +++ b/src/app/search/components/output/output-by-category.component.html @@ -1,11 +1,13 @@

{{ categoryLabel }}

+
+
+ +
+
+ +
+
- -
diff --git a/src/app/search/components/output/output-by-family.component.ts b/src/app/search/components/output/output-by-family.component.ts index 015b2a986081379fa2aa56fbada9487f326db537..c6e66c436c48bb951b1148ccf04475a3a8646c77 100644 --- a/src/app/search/components/output/output-by-family.component.ts +++ b/src/app/search/components/output/output-by-family.component.ts @@ -14,7 +14,6 @@ export class OutputByFamilyComponent { @Input() datasetAttributeList: Attribute[]; @Input() outputList: number[]; @Output() changed: EventEmitter = new EventEmitter(); - isAllSelected = false; getCategoryByFamilySortedByDisplay(idFamily: number): Category[] { return this.categoryList @@ -33,6 +32,12 @@ export class OutputByFamilyComponent { return attributeListId.length === filteredOutputList.length; } + getIsAllUnselected(idCategory: number): boolean { + const attributeListId = this.getAttributeByCategory(idCategory).map(a => a.id) + const filteredOutputList = this.outputList.filter(id => attributeListId.indexOf(id) > -1); + return filteredOutputList.length === 0; + } + change(clonedOutputList: number[]): void { this.changed.emit( this.datasetAttributeList diff --git a/src/app/search/components/output/output-tabs.component.html b/src/app/search/components/output/output-tabs.component.html index bc0c1ff5a565aad9bba09fab52c5a66ef168d784..234581fc02274f83658a6fbe3259be0827717b38 100644 --- a/src/app/search/components/output/output-tabs.component.html +++ b/src/app/search/components/output/output-tabs.component.html @@ -1,7 +1,7 @@
-

{{ outputFamilyList[0].label }}

-
+

{{ outputFamilyList[0].label }}

+