"...git@scm.cms.hu-berlin.de:iqb/verona-modules-aspect.git" did not exist on "81de7c0f37a520afa3dd4d40e8e92a591b480553"
Newer
Older
import {
Component, EventEmitter, Input, Output
} from '@angular/core';
import { ElementComponent } from 'common/directives/element-component.directive';
import { RemoteControlElement } from 'common/models/elements/text/remote-control';
import { SharedModule } from 'common/shared.module';
import { RemoteMarkingData } from 'common/models/marking-data';
@Component({
selector: 'aspect-remote-control',
standalone: true,
imports: [
SharedModule
],
template: `
<aspect-text-marking-bar [elementModel]="elementModel"
[selectedColor]="selectedColor || 'none'"
[hasDeleteButton]="hasDeleteButton"
(markingDataChanged)="remoteMarkingDataChanged.emit(
{ id: elementModel.id, markingData: $event }
)">
</aspect-text-marking-bar>
`,
styles: []
})
export class RemoteControlComponent extends ElementComponent {
@Input() elementModel!: RemoteControlElement;
@Input() selectedColor!: string | undefined;
@Input() hasDeleteButton!: boolean;
@Output() remoteMarkingDataChanged: EventEmitter<RemoteMarkingData> = new EventEmitter<RemoteMarkingData>();
protected readonly setTimeout = setTimeout;
}