@eturnity/eturnity_reusable_components 1.2.85-EPDM-3013.2 → 1.2.85-EPDM-3013.3
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
@@ -113,14 +113,14 @@
|
|
113
113
|
</template>
|
114
114
|
</select-component>
|
115
115
|
<section-container v-else-if="isRangeSelector(filter.filter_type)">
|
116
|
-
<row-label>{{
|
117
|
-
filter.unit
|
118
|
-
? filter.label + ' (' + filter.unit + ')'
|
119
|
-
: filter.label
|
120
|
-
}}</row-label>
|
116
|
+
<row-label>{{ filter.label }}</row-label>
|
121
117
|
<grid-container>
|
122
118
|
<input-number
|
123
|
-
:placeholder="
|
119
|
+
:placeholder="
|
120
|
+
filter.unit
|
121
|
+
? $gettext('min_amount') + ' (' + filter.unit + ')'
|
122
|
+
: $gettext('min_amount')
|
123
|
+
"
|
124
124
|
:numberPrecision="0"
|
125
125
|
:value="filter.range.start"
|
126
126
|
@input-change="
|
@@ -136,7 +136,11 @@
|
|
136
136
|
:unitName="filter.unit"
|
137
137
|
/>
|
138
138
|
<input-number
|
139
|
-
:placeholder="
|
139
|
+
:placeholder="
|
140
|
+
filter.unit
|
141
|
+
? $gettext('max_amount') + ' (' + filter.unit + ')'
|
142
|
+
: $gettext('max_amount')
|
143
|
+
"
|
140
144
|
:numberPrecision="0"
|
141
145
|
:value="filter.range.end"
|
142
146
|
@input-change="
|
@@ -153,7 +157,10 @@
|
|
153
157
|
/>
|
154
158
|
</grid-container>
|
155
159
|
</section-container>
|
156
|
-
<section-container
|
160
|
+
<section-container
|
161
|
+
v-else-if="isDateSelector(filter.filter_type)"
|
162
|
+
@click.stop
|
163
|
+
>
|
157
164
|
<row-label>{{ filter.label }}</row-label>
|
158
165
|
<grid-container>
|
159
166
|
<date-picker-input
|
@@ -326,7 +333,7 @@ const DragContainer = styled.div`
|
|
326
333
|
|
327
334
|
const RowContainer = styled('div', TitleAttrs)`
|
328
335
|
padding: 10px 14px;
|
329
|
-
width:
|
336
|
+
width: 300px;
|
330
337
|
|
331
338
|
${({ showBorder, theme }) =>
|
332
339
|
showBorder &&
|
@@ -431,7 +438,7 @@ const ViewContainer = styled('div', ViewContainerAttrs)`
|
|
431
438
|
padding: 10px 14px;
|
432
439
|
|
433
440
|
max-width: ${(props) =>
|
434
|
-
props.maxWidth && props.maxWidth >
|
441
|
+
props.maxWidth && props.maxWidth > 300 ? props.maxWidth + 'ch' : '300px'};
|
435
442
|
`
|
436
443
|
|
437
444
|
export default {
|
@@ -95,7 +95,11 @@ export default {
|
|
95
95
|
}, 100)
|
96
96
|
},
|
97
97
|
onFilterChange(data) {
|
98
|
+
// this.preventOutsideClick = true is needed for when the user clicks on the calendar icon on the date range
|
99
|
+
// because clicking the calendar does not trigger the @focus
|
100
|
+
this.preventOutsideClick = true
|
98
101
|
this.$emit('on-filter-settings-change', data)
|
102
|
+
this.onPreventClose(false)
|
99
103
|
},
|
100
104
|
onCancelSettings() {
|
101
105
|
this.onToggleDropdown()
|