@eturnity/eturnity_reusable_components 7.4.4-EPDM-7260.23 → 7.4.4-EPDM-7260.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
@@ -92,6 +92,7 @@
|
|
92
92
|
fontSize="13px"
|
93
93
|
:label="filter.label"
|
94
94
|
:labelDataId="filter.dataId"
|
95
|
+
:isSearchable="filter.choices.length > 7"
|
95
96
|
alignItems="vertical"
|
96
97
|
:disabled="!filter.choices.length"
|
97
98
|
:minOptionLength="1"
|
@@ -100,10 +101,12 @@
|
|
100
101
|
<option-title> {{ filter.selectedText }} </option-title>
|
101
102
|
</template>
|
102
103
|
<template #dropdown>
|
103
|
-
<dropdown-checkbox-container
|
104
|
+
<dropdown-checkbox-container
|
105
|
+
v-for="(filterOption, optionIdx) in filter.choices"
|
106
|
+
:key="optionIdx + 'optionIdx'"
|
107
|
+
@click.stop
|
108
|
+
>
|
104
109
|
<checkbox
|
105
|
-
v-for="(filterOption, optionIdx) in filter.choices"
|
106
|
-
:key="optionIdx + 'optionIdx'"
|
107
110
|
:label="filterOption.text"
|
108
111
|
:isChecked="filterOption.selected"
|
109
112
|
@on-event-handler="
|
@@ -223,6 +226,7 @@
|
|
223
226
|
fontSize="13px"
|
224
227
|
:label="filter.label"
|
225
228
|
alignItems="vertical"
|
229
|
+
:isSearchable="filter.choices.length > 7"
|
226
230
|
:disabled="!filter.choices.length"
|
227
231
|
>
|
228
232
|
<template #selector="{ selectedValue }">
|
@@ -392,7 +396,7 @@ const DropdownCheckboxContainer = styled.div`
|
|
392
396
|
display: grid;
|
393
397
|
gap: 6px;
|
394
398
|
width: 100%;
|
395
|
-
padding:
|
399
|
+
padding: 7px 10px;
|
396
400
|
background: ${(props) => props.theme.colors.grey5};
|
397
401
|
`
|
398
402
|
|
@@ -528,15 +528,15 @@ export default {
|
|
528
528
|
const existing = this.OverlapId.find((id) => id === label.id)
|
529
529
|
|
530
530
|
if (!existing) this.OverlapId.push(label.id)
|
531
|
-
|
532
|
-
} else
|
533
|
-
this.OverlapId = this.OverlapId
|
534
|
-
? this.OverlapId.filter((id) => id !== label.id)
|
535
|
-
: []
|
531
|
+
}
|
536
532
|
})
|
537
533
|
})
|
538
534
|
}
|
539
535
|
|
536
|
+
if (!overlapContainer.includes(true)) {
|
537
|
+
this.OverlapId = []
|
538
|
+
}
|
539
|
+
|
540
540
|
this.hasOverlap = overlapContainer.includes(true)
|
541
541
|
this.$emit('has-overlap', overlapContainer.includes(true))
|
542
542
|
}
|