@eturnity/eturnity_reusable_components 7.4.4-EPDM-7260.28 → 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
@@ -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
|
}
|