-import { ChangeDetectorRef, Component, forwardRef, Input, OnInit } from '@angular/core'
+import { ChangeDetectorRef, Component, EventEmitter, forwardRef, Input, OnInit, Output } from '@angular/core'
import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms'
-import { secondsToTime, timeToInt } from '../../../assets/player/utils'
+import { secondsToTime, timeToInt } from '@shared/core-utils'
@Component({
selector: 'my-timestamp-input',
@Input() maxTimestamp: number
@Input() timestamp: number
@Input() disabled = false
+ @Input() inputName: string
+ @Input() disableBorder = true
+
+ @Output() inputBlur = new EventEmitter()
timestampString: string
this.propagateChange(this.timestamp)
}
+
+ this.inputBlur.emit()
}
}