2018-07-21 12:03:50 +02:00
|
|
|
import {Component, EventEmitter, Input, Output} from '@angular/core';
|
2018-07-19 22:10:32 +02:00
|
|
|
|
|
|
|
import {Decoration} from '../../../models/model-interfaces';
|
|
|
|
import {Fraction} from '../../../utils/fraction.enum';
|
|
|
|
|
|
|
|
|
|
|
|
@Component({
|
|
|
|
selector: 'cc-decoration-panel',
|
|
|
|
templateUrl: './decoration-panel.component.html',
|
2019-02-25 14:32:29 +01:00
|
|
|
styleUrls: ['./decoration-panel.component.scss']
|
2018-07-19 22:10:32 +02:00
|
|
|
})
|
|
|
|
export class DecorationPanelComponent {
|
|
|
|
|
2018-07-21 12:03:50 +02:00
|
|
|
@Input() decoration: Decoration;
|
|
|
|
|
|
|
|
@Output() select = new EventEmitter();
|
2018-07-19 22:10:32 +02:00
|
|
|
|
|
|
|
readonly fraction = Fraction;
|
|
|
|
|
2018-07-21 12:03:50 +02:00
|
|
|
selectDecoration() {
|
|
|
|
this.select.emit(this.decoration);
|
2018-07-19 22:10:32 +02:00
|
|
|
}
|
|
|
|
}
|