@eturnity/eturnity_reusable_components 7.4.4-EPDM-7260.27 → 7.4.4-EPDM-7260.29
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
@@ -83,11 +83,7 @@
|
|
83
83
|
>
|
84
84
|
<slot name="selector" :selectedValue="selectedValue"></slot>
|
85
85
|
</selector>
|
86
|
-
<<<<<<< HEAD
|
87
|
-
<Caret @click.stop="toggleCaretDropdown" v-if="dropDownArrowVisible">
|
88
|
-
=======
|
89
86
|
<Caret @click.stop="toggleCaretDropdown" class="caret_dropdown">
|
90
|
-
>>>>>>> 815539e19f2883b2a6c7d813c6c2799ce3cb0993
|
91
87
|
<icon
|
92
88
|
v-if="isDropdownOpen"
|
93
89
|
name="arrow_up"
|
@@ -228,12 +224,7 @@ const optionalLabel = styled.span`
|
|
228
224
|
const inputProps = {
|
229
225
|
selectWidth: String,
|
230
226
|
optionWidth: String,
|
231
|
-
<<<<<<< HEAD
|
232
|
-
minWidth: String,
|
233
|
-
maxWidth: String
|
234
|
-
=======
|
235
227
|
noRelative: Boolean
|
236
|
-
>>>>>>> 815539e19f2883b2a6c7d813c6c2799ce3cb0993
|
237
228
|
}
|
238
229
|
const Container = styled('div', inputProps)`
|
239
230
|
width: ${(props) => props.selectWidth};
|
@@ -272,12 +263,7 @@ const selectButtonAttrs = {
|
|
272
263
|
showDisabledBackground: Boolean
|
273
264
|
}
|
274
265
|
const selectButton = styled('div', selectButtonAttrs)`
|
275
|
-
<<<<<<< HEAD
|
276
|
-
font-size: ${(props) => (props.fontSize ? props.fontSize : '13px')};
|
277
|
-
position: relative;
|
278
|
-
=======
|
279
266
|
position: ${(props) => (props.noRelative ? 'static' : 'relative')};
|
280
|
-
>>>>>>> 815539e19f2883b2a6c7d813c6c2799ce3cb0993
|
281
267
|
box-sizing: border-box;
|
282
268
|
border-radius: 4px;
|
283
269
|
max-width: ${(props) => (props.selectWidth ? props.selectWidth : '100%')};
|
@@ -385,15 +371,11 @@ const DropdownAttrs = { noRelative: Boolean }
|
|
385
371
|
const DropdownWrapper = styled('div', DropdownAttrs)`
|
386
372
|
position: ${(props) => (props.noRelative ? 'static' : 'relative')};
|
387
373
|
`
|
388
|
-
<<<<<<< HEAD
|
389
|
-
const inputAttrs = { alignItems: String, hasLabel: Boolean, minWidth: String }
|
390
|
-
=======
|
391
374
|
const inputAttrs = {
|
392
375
|
alignItems: String,
|
393
376
|
hasLabel: Boolean,
|
394
377
|
noRelative: Boolean
|
395
378
|
}
|
396
|
-
>>>>>>> 815539e19f2883b2a6c7d813c6c2799ce3cb0993
|
397
379
|
const InputWrapper = styled('div', inputAttrs)`
|
398
380
|
position: ${(props) => (props.noRelative ? 'static' : 'relative')};
|
399
381
|
display: grid;
|
@@ -468,9 +450,6 @@ export default {
|
|
468
450
|
required: false,
|
469
451
|
default: '36px'
|
470
452
|
},
|
471
|
-
minWidth: {
|
472
|
-
required: false
|
473
|
-
},
|
474
453
|
optionWidth: {
|
475
454
|
required: false,
|
476
455
|
default: null
|
@@ -550,18 +529,16 @@ export default {
|
|
550
529
|
type: Boolean,
|
551
530
|
default: false
|
552
531
|
},
|
553
|
-
<<<<<<< HEAD
|
554
532
|
leftPadding: {
|
555
533
|
type: String,
|
556
534
|
default: '15px'
|
557
|
-
|
535
|
+
},
|
558
536
|
tablePaddingLeft: {
|
559
537
|
required: false
|
560
538
|
},
|
561
539
|
showDisabledBackground: {
|
562
540
|
required: false,
|
563
541
|
default: true
|
564
|
-
>>>>>>> 815539e19f2883b2a6c7d813c6c2799ce3cb0993
|
565
542
|
},
|
566
543
|
minOptionLength: {
|
567
544
|
type: Number,
|
@@ -36,29 +36,19 @@
|
|
36
36
|
:stepCount="stepCount"
|
37
37
|
:subStepCount="subStepCount"
|
38
38
|
@dragStop="
|
39
|
-
onChange(
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
...$event
|
46
|
-
},
|
47
|
-
label.id,
|
48
|
-
label.selectedTariffs
|
49
|
-
)
|
39
|
+
onChange('drag', {
|
40
|
+
itemId: bar.id,
|
41
|
+
parentId: bar.parentId,
|
42
|
+
entityId: label.id,
|
43
|
+
...$event
|
44
|
+
})
|
50
45
|
"
|
51
46
|
@resizeStop="
|
52
|
-
onChange(
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
...$event
|
58
|
-
},
|
59
|
-
label.id,
|
60
|
-
label.selectedTariffs
|
61
|
-
)
|
47
|
+
onChange('resize', {
|
48
|
+
itemId: bar.id,
|
49
|
+
entityId: label.id,
|
50
|
+
...$event
|
51
|
+
})
|
62
52
|
"
|
63
53
|
@click.native.stop="
|
64
54
|
onBarTariffClick({ item: bar, type: 'delete', label })
|
@@ -372,21 +362,8 @@ export default {
|
|
372
362
|
}
|
373
363
|
},
|
374
364
|
methods: {
|
375
|
-
onChange(type, value
|
365
|
+
onChange(type, value) {
|
376
366
|
this.$emit(type, value)
|
377
|
-
|
378
|
-
this.hasOverlap = this.checkOverlap(value, tariffs)
|
379
|
-
|
380
|
-
if (this.hasOverlap) {
|
381
|
-
const existing = this.OverlapId.find((id) => id === entityId)
|
382
|
-
|
383
|
-
if (!existing) this.OverlapId.push(entityId)
|
384
|
-
} else
|
385
|
-
this.OverlapId = this.OverlapId
|
386
|
-
? this.OverlapId.filter((id) => id !== entityId)
|
387
|
-
: []
|
388
|
-
|
389
|
-
this.$emit('has-overlap', this.hasOverlap)
|
390
367
|
},
|
391
368
|
checkOverlap(value, tariffs) {
|
392
369
|
// Check if the tariffs overlap
|
@@ -446,10 +423,6 @@ export default {
|
|
446
423
|
|
447
424
|
this.activeLabel = label
|
448
425
|
this.barOptionsType = type
|
449
|
-
this.hasOverlap = this.checkOverlap(
|
450
|
-
item,
|
451
|
-
this.activeLabel.selectedTariffs
|
452
|
-
)
|
453
426
|
this.showBarOptions = false
|
454
427
|
},
|
455
428
|
setBarOptions(bar) {
|
@@ -522,23 +495,21 @@ export default {
|
|
522
495
|
label.selectedTariffs
|
523
496
|
)
|
524
497
|
|
525
|
-
overlapContainer.push(
|
526
|
-
|
527
|
-
if (hasOverlap) {
|
528
|
-
const existing = this.OverlapId.find((id) => id === label.id)
|
529
|
-
|
530
|
-
if (!existing) this.OverlapId.push(label.id)
|
531
|
-
}
|
498
|
+
if (hasOverlap) overlapContainer.push(label.id)
|
532
499
|
})
|
533
500
|
})
|
534
501
|
}
|
535
502
|
|
536
|
-
|
503
|
+
const hasOverlap = overlapContainer.length > 0
|
504
|
+
|
505
|
+
if (!hasOverlap) {
|
537
506
|
this.OverlapId = []
|
507
|
+
} else {
|
508
|
+
this.OverlapId = [...new Set(overlapContainer)]
|
538
509
|
}
|
539
510
|
|
540
|
-
this.hasOverlap =
|
541
|
-
this.$emit('has-overlap',
|
511
|
+
this.hasOverlap = hasOverlap
|
512
|
+
this.$emit('has-overlap', hasOverlap)
|
542
513
|
}
|
543
514
|
}
|
544
515
|
}
|