-
+
@if (selectedChoices?.length && availableChoices?.length) {
@@ -44,7 +46,7 @@
>
- {{ sc.label }}
+
}
diff --git a/my-workspace/projects/sae-lib/inputs/multi-selector/multi-selector.scss b/my-workspace/projects/sae-lib/inputs/multi-selector/multi-selector.scss
index 25d1a37..f519afc 100644
--- a/my-workspace/projects/sae-lib/inputs/multi-selector/multi-selector.scss
+++ b/my-workspace/projects/sae-lib/inputs/multi-selector/multi-selector.scss
@@ -141,27 +141,43 @@ line-height: 100%; /* 14px */
.separator{
display: flex;
-width: 186px;
-height: 34px;
-min-height: 34px;
-max-height: 34px;
-padding: var(--Spacing-Spacing-20, 8px) var(--Spacing-Spacing-30, 12px);
-align-items: center;
-gap: var(--Spacing-Spacing-10, 4px);
-border-radius: var(--Radius-list, 0);
-background: #F5F5F5;
+ width: 186px;
+ height: 34px;
+ min-height: 34px;
+ max-height: 34px;
+ padding: var(--Spacing-Spacing-20, 8px) var(--Spacing-Spacing-30, 12px);
+ align-items: center;
+ gap: var(--Spacing-Spacing-10, 4px);
+ border-radius: var(--Radius-list, 0);
+ background: #F5F5F5;
+ margin-top: 6px;
+ margin-bottom: 16px;
-.label{
- overflow: hidden;
-color: var(--color-text-secondary, #525668);
-leading-trim: both;
-text-edge: cap;
-text-overflow: ellipsis;
-font-family: var(--Fonts-Font-text, Barlow);
-font-size: var(--Font-Base, 14px);
-font-style: italic;
-font-weight: 400;
-line-height: 100%; /* 14px */
-}
+ .label{
+ overflow: hidden;
+ color: var(--color-text-secondary, #525668);
+ leading-trim: both;
+ text-edge: cap;
+ text-overflow: ellipsis;
+ font-family: var(--Fonts-Font-text, Barlow);
+ font-size: var(--Font-Base, 14px);
+ font-style: italic;
+ font-weight: 400;
+ line-height: 100%; /* 14px */
+ }
+ }
+
+ .available-items{
+ img{
+ margin-right: 6px;
+ }
+ .dropdown-item{
+ padding: 6px;
+ margin-bottom: 6px;
+ display: flex;
+ align-items: center;
+ justify-content: start;
+
+ }
}
}
diff --git a/my-workspace/projects/sae-lib/inputs/multi-selector/multi-selector.ts b/my-workspace/projects/sae-lib/inputs/multi-selector/multi-selector.ts
index c17dc51..e649130 100644
--- a/my-workspace/projects/sae-lib/inputs/multi-selector/multi-selector.ts
+++ b/my-workspace/projects/sae-lib/inputs/multi-selector/multi-selector.ts
@@ -62,13 +62,6 @@ export class MultiSelector implements OnInit {
console.log('toggle selected choice ', choice, 'in filter ', this.label);
this.selectedChoicesChange.emit(choice);
console.log(choice);
- this.store.dispatch({
- type: this.actionTypes.UPDATE_FILTER,
- payload: {
- filter: this.label,
- selectedChoice: choice
- }
- })
}
availableChoicesChangeToggleItem(choice: any) {
@@ -80,14 +73,7 @@ export class MultiSelector implements OnInit {
const value = typeof c === 'string' ? c : c?.value;
return value !== clickedValue;
});
- this.store.dispatch({
- type: this.actionTypes.UPDATE_FILTER,
- payload: {
- filter: this.label,
- availableChoice: choice
- }
- }
- )
+ console.log('toggle available choices', this.label, choice);
}
onInputClickedOrFocused(event?: any) {
@@ -111,4 +97,9 @@ export class MultiSelector implements OnInit {
this.displayDropdown = true;
console.log('Opened dropdown:', this.displayDropdown);
}
+
+ resetChoicesLists() {
+ this.selectedChoices = [];
+ this.availableChoices = [];
+ }
}