Skip to content

Commit

Permalink
wc: migrate select component in disease-panel-filter #TASK-5070
Browse files Browse the repository at this point in the history
  • Loading branch information
Rodielm committed Nov 7, 2023
1 parent 4f5f25c commit cf2f32c
Showing 1 changed file with 24 additions and 16 deletions.
40 changes: 24 additions & 16 deletions src/webcomponents/commons/filters/disease-panel-filter.js
Original file line number Diff line number Diff line change
Expand Up @@ -255,52 +255,60 @@ export default class DiseasePanelFilter extends LitElement {
<label class="form-label">
Filter by Feature Type
</label>
<select-field-filter
<select-field-filter2
.data="${this.panelFeatureTypes}"
.value=${this.panelFeatureType}
.multiple="${true}"
.disabled="${this.genes?.length === 0 || this.disabled}"
.config=${{
tags: false,
disabled: this.genes.length === 0 || this.disabled
}}
@filterChange="${e => this.filterChange(e, "panelFeatureType")}">
</select-field-filter>
</select-field-filter2>
</div>
<div class="mb-2">
<label class="form-label">
Filter Genes by Mode of Inheritance
</label>
<select-field-filter
<select-field-filter2
.data="${MODE_OF_INHERITANCE}"
.value=${this.panelModeOfInheritance}
.multiple="${true}"
.disabled="${this.genes?.length === 0 || this.disabled}"
.config=${{
tags: false,
disabled: this.genes?.length === 0 || this.disabled
}}
@filterChange="${e => this.filterChange(e, "panelModeOfInheritance")}">
</select-field-filter>
</select-field-filter2>
</div>
<div class="mb-2">
<label class="form-label">
Filter Genes by Confidence
</label>
<select-field-filter
<select-field-filter2
.data="${DISEASE_PANEL_CONFIDENCE}"
.value=${this.panelConfidence}
.multiple="${true}"
.disabled="${this.genes?.length === 0 || this.disabled}"
.config=${{
tags: false,
disabled: this.genes?.length === 0 || this.disabled
}}
@filterChange="${e => this.filterChange(e, "panelConfidence")}">
</select-field-filter>
</select-field-filter2>
</div>
<div class="mb-2">
<label class="form-label">
Filter Genes by Role in Cancer
</label>
<select-field-filter
<select-field-filter2
.data="${ROLE_IN_CANCER}"
.value=${this.panelRoleInCancer}
.multiple="${true}"
.disabled="${this.genes?.length === 0 || this.disabled}"
.config=${{
tags: false,
disabled: this.genes?.length === 0 || this.disabled
}}
@filterChange="${e => this.filterChange(e, "panelRoleInCancer")}">
</select-field-filter>
</select-field-filter2>
</div>
` : nothing}
</div>
Expand Down

0 comments on commit cf2f32c

Please sign in to comment.