// #region Imports
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
import { Variantable } from '../../../Behaviors/Variantable';
import { Component } from '../../../Decorators/ComponentDecorator';
import { CustomElement } from '../../Abstracts/CustomElement';
import { epgTimelineElementTemplate } from './EpgTimelineElementTemplate';
import { epgTimelineElementJoyStyle } from './Themes/EpgTimelineElement.Joy';
import { Appearanceable } from '../../../Behaviors/Appearanceable';
import { Attribute } from '../../..//Decorators/AttributeDecorator';
import { TextElement } from '../../Primitives/Text/TextElement';
import { Disableable } from '../../../Behaviors/Disableable';
import { Localeable } from '../../../Behaviors/Localeable';
// #endregion
/**
 * The `{@link EpgTimelineElement}` element.
 *
 * @public
 */
let EpgTimelineElement = class EpgTimelineElement extends Localeable(Disableable(Variantable(Appearanceable(CustomElement)))) {
    // #region Fields
    _dayWidth;
    _hourWidth;
    _numberOfHoursInDay;
    _offsetStartHoursRange;
    _sidebarWidth;
    _hasSidebar;
    _format;
    // #endregion
    // #region Ctor
    /**
     * @public
     */
    constructor() {
        super();
        this._dayWidth = 7200;
        this._hourWidth = 300;
        this._numberOfHoursInDay = 24;
        this._offsetStartHoursRange = 0;
        this._sidebarWidth = 100;
        this._hasSidebar = false;
        this._format = 'HH:mm';
    }
    // #endregion
    // #region Properties
    /**
     * Returns the `{@link is}` property.
     * The `{@link is}` property represents natural name of this element.
     *
     * @public
     * @static
     * @readonly
     */
    static get is() {
        return 'mosaik-epg-timeline';
    }
    /**
     * @public
     * @attr
     */
    get dayWidth() {
        return this._dayWidth;
    }
    set dayWidth(value) {
        if (this._dayWidth !== value) {
            this._dayWidth = value;
            this.requestUpdate('dayWidth');
        }
    }
    /**
     * @public
     * @attr
     */
    get hourWidth() {
        return this._hourWidth;
    }
    set hourWidth(value) {
        if (this._hourWidth !== value) {
            this._hourWidth = value;
            this.requestUpdate('hourWidth');
        }
    }
    /**
     * @public
     * @attr
     */
    get numberOfHoursInDay() {
        return this._numberOfHoursInDay;
    }
    set numberOfHoursInDay(value) {
        if (this._numberOfHoursInDay !== value) {
            this._numberOfHoursInDay = value;
            this.requestUpdate('numberOfHoursInDay');
        }
    }
    /**
     * @public
     * @attr
     */
    get offsetStartHoursRange() {
        return this._offsetStartHoursRange;
    }
    set offsetStartHoursRange(value) {
        if (this._offsetStartHoursRange !== value) {
            this._offsetStartHoursRange = value;
            this.requestUpdate('offsetStartHoursRange');
        }
    }
    /**
     * @public
     * @attr
     */
    get sidebarWidth() {
        return this._sidebarWidth;
    }
    set sidebarWidth(value) {
        if (this._sidebarWidth !== value) {
            this._sidebarWidth = value;
            this.requestUpdate('sidebarWidth');
        }
    }
    /**
     * @public
     * @attr
     */
    get hasSidebar() {
        return this._hasSidebar;
    }
    set hasSidebar(value) {
        if (this._hasSidebar !== value) {
            this._hasSidebar = value;
            this.requestUpdate('hasSidebar');
        }
    }
    /**
     * @public
     * @attr
     */
    get format() {
        return this._format;
    }
    set format(value) {
        if (this._format !== value) {
            this._format = value;
            this.requestUpdate('format');
        }
    }
};
__decorate([
    Attribute({ type: Number }),
    __metadata("design:type", Number),
    __metadata("design:paramtypes", [Number])
], EpgTimelineElement.prototype, "dayWidth", null);
__decorate([
    Attribute({ type: Number }),
    __metadata("design:type", Number),
    __metadata("design:paramtypes", [Number])
], EpgTimelineElement.prototype, "hourWidth", null);
__decorate([
    Attribute({ type: Number }),
    __metadata("design:type", Number),
    __metadata("design:paramtypes", [Number])
], EpgTimelineElement.prototype, "numberOfHoursInDay", null);
__decorate([
    Attribute({ type: Number }),
    __metadata("design:type", Number),
    __metadata("design:paramtypes", [Number])
], EpgTimelineElement.prototype, "offsetStartHoursRange", null);
__decorate([
    Attribute({ type: Number }),
    __metadata("design:type", Number),
    __metadata("design:paramtypes", [Number])
], EpgTimelineElement.prototype, "sidebarWidth", null);
__decorate([
    Attribute({ type: Boolean,
        useDefault: true }),
    __metadata("design:type", Boolean),
    __metadata("design:paramtypes", [Boolean])
], EpgTimelineElement.prototype, "hasSidebar", null);
__decorate([
    Attribute({ type: String }),
    __metadata("design:type", String),
    __metadata("design:paramtypes", [String])
], EpgTimelineElement.prototype, "format", null);
EpgTimelineElement = __decorate([
    Component({
        selector: 'mosaik-epg-timeline',
        template: epgTimelineElementTemplate,
        styles: epgTimelineElementJoyStyle,
        imports: [
            TextElement
        ]
    }),
    __metadata("design:paramtypes", [])
], EpgTimelineElement);
export { EpgTimelineElement };
//# sourceMappingURL=EpgTimelineElement.js.map