@eturnity/eturnity_reusable_components 7.4.4-EPDM-7260.14 → 7.4.4-EPDM-7260.15

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eturnity/eturnity_reusable_components",
3
- "version": "7.4.4-EPDM-7260.14",
3
+ "version": "7.4.4-EPDM-7260.15",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
@@ -178,7 +178,10 @@ const selectorProps = {
178
178
  showBorder: Boolean
179
179
  }
180
180
  const Selector = styled('div', selectorProps)`
181
- ${(props) => props.selectWidth === '100%' ? 'width: 100%;' : `width: calc(${props.selectWidth} -
181
+ ${(props) =>
182
+ props.selectWidth === '100%'
183
+ ? 'width: 100%;'
184
+ : `width: calc(${props.selectWidth} -
182
185
  (
183
186
  ${CARET_WIDTH} +
184
187
  ${props.paddingLeft}
@@ -187,8 +190,7 @@ const Selector = styled('div', selectorProps)`
187
190
  );
188
191
  white-space: nowrap;
189
192
  text-overflow: ellipsis;
190
- overflow: hidden;`
191
- }
193
+ overflow: hidden;`}
192
194
  `
193
195
 
194
196
  const labelAttrs = { fontSize: String, fontColor: String }
@@ -1,5 +1,6 @@
1
1
  <template>
2
2
  <div
3
+ :data-id="dataId"
3
4
  :style="style"
4
5
  :class="className"
5
6
  @mousedown="elementMouseDown"
@@ -59,6 +60,10 @@ export default {
59
60
  replace: true,
60
61
  name: 'slider',
61
62
  props: {
63
+ dataId: {
64
+ type: String,
65
+ default: ''
66
+ },
62
67
  className: {
63
68
  type: String,
64
69
  default: 'vdr'
@@ -14,10 +14,12 @@
14
14
  @click.native.stop="
15
15
  onBarRightClick({ event: $event, label, type: 'add' })
16
16
  "
17
+ :data-id="`slider_bar_${dataLocation}_${label.id}`"
17
18
  >
18
19
  <SliderWrapper>
19
20
  <Slider
20
21
  v-for="(bar, index) in label.selectedTariffs"
22
+ :dataId="`slider_bar_item_${dataLocation}_${label.id}_${bar.name}`"
21
23
  :key="bar.id"
22
24
  :draggable="!disabled"
23
25
  :resizable="!disabled"
@@ -279,6 +281,7 @@ const BarItemText = styled.div`
279
281
  export default {
280
282
  name: 'RangeSlider',
281
283
  props: {
284
+ dataLocation: { type: String, default: '' },
282
285
  tariffItems: { type: Array, default: () => [] },
283
286
  labels: { type: Array, default: () => [] },
284
287
  rangeMargin: { type: Number, default: 1 },
@@ -403,6 +406,7 @@ export default {
403
406
  return `${this.$gettext('Remove')} ${value}`
404
407
  },
405
408
  onActivateBar({ item }) {
409
+ this.$emit('activate')
406
410
  this.activeItem = item
407
411
  document.addEventListener('keydown', this.onKeyDownDelete)
408
412
  },