@eturnity/eturnity_reusable_components 9.19.10 → 9.19.12
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
|
@@ -155,6 +155,7 @@
|
|
|
155
155
|
<DropdownCheckboxContainer
|
|
156
156
|
v-for="(filterOption, optionIdx) in filter.choices"
|
|
157
157
|
:key="optionIdx + 'optionIdx'"
|
|
158
|
+
:data-value="selectOptionDomDataValue(filterOption.choice)"
|
|
158
159
|
@click.stop
|
|
159
160
|
>
|
|
160
161
|
<Checkbox
|
|
@@ -773,6 +774,13 @@
|
|
|
773
774
|
isDateSelector(type) {
|
|
774
775
|
return type === 'datetime' || type === 'date_range'
|
|
775
776
|
},
|
|
777
|
+
/** Align with RC Select Option `domDataValue` so dropdown search can find rows via `[data-value]`. */
|
|
778
|
+
selectOptionDomDataValue(choice) {
|
|
779
|
+
if (choice === null || choice === undefined) {
|
|
780
|
+
return '__rc_select_null__'
|
|
781
|
+
}
|
|
782
|
+
return String(choice)
|
|
783
|
+
},
|
|
776
784
|
},
|
|
777
785
|
}
|
|
778
786
|
</script>
|
|
@@ -199,6 +199,7 @@
|
|
|
199
199
|
const LabelWrapper = styled('div', LabelWrapperAttrs)`
|
|
200
200
|
font-size: ${(props) => props.size};
|
|
201
201
|
color: ${(props) => props.color};
|
|
202
|
+
white-space: pre-line;
|
|
202
203
|
`
|
|
203
204
|
|
|
204
205
|
export default {
|
|
@@ -364,6 +365,7 @@
|
|
|
364
365
|
? theme.colors.black
|
|
365
366
|
: theme.colors.white,
|
|
366
367
|
textAlign: props.image ? 'right' : 'left',
|
|
368
|
+
whiteSpace: 'pre-line',
|
|
367
369
|
}))
|
|
368
370
|
|
|
369
371
|
const calculatePosition = (width) => {
|