// #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 { Component } from '../../../Decorators/ComponentDecorator';
import { CustomElement } from '../../Abstracts/CustomElement';
import { epgChannelElementTemplate } from './EpgChannelElementTemplate';
import { epgChannelElementJoyStyle } from './Themes/EpgChannelElement.Joy';
import { TextElement } from '../../../Components/Primitives/Text/TextElement';
import { Disableable } from '../../../Behaviors/Disableable';
import { Valueable } from '../../../Behaviors/Valueable';
import { Variantable } from '../../../Behaviors/Variantable';
import { Appearanceable } from '../../../Behaviors/Appearanceable';
import { Labelable } from '../../../Behaviors/Labelable';
import { Localeable } from '../../../Behaviors/Localeable';
// #endregion
/**
 * EPG Channel - A channel row entry within an Electronic Program Guide.
 *
 * Represents a single broadcast channel, optionally displaying a label and visual
 * appearance. Placed inside a `mosaik-epg` via the `channels` slot.
 *
 * @name EpgChannelElement
 * @element mosaik-epg-channel
 * @category Selectors
 *
 * @slot - Default content area for channel program items
 *
 * @csspart root - The root part.
 *
 * @cssprop {String} --epg-channel-background-color - The channel background color CSS custom property.
 * @cssprop {String} --epg-channel-border-color - The channel border color CSS custom property.
 * @cssprop {String} --epg-channel-border-radius - The channel border radius CSS custom property.
 * @cssprop {String} --epg-channel-border-style - The channel border style CSS custom property.
 * @cssprop {String} --epg-channel-border-width - The channel border width CSS custom property.
 * @cssprop {String} --epg-channel-font-family - The channel font family CSS custom property.
 * @cssprop {String} --epg-channel-font-letter-spacing - The channel font letter spacing CSS custom property.
 * @cssprop {String} --epg-channel-font-line-height - The channel font line height CSS custom property.
 * @cssprop {String} --epg-channel-font-size - The channel font size CSS custom property.
 * @cssprop {String} --epg-channel-font-text-decoration - The channel font text decoration CSS custom property.
 * @cssprop {String} --epg-channel-font-text-transform - The channel font text transform CSS custom property.
 * @cssprop {String} --epg-channel-font-weight - The channel font weight CSS custom property.
 * @cssprop {String} --epg-channel-foreground-color - The channel foreground color CSS custom property.
 * @cssprop {String} --epg-channel-gap - The channel gap CSS custom property.
 * @cssprop {String} --epg-channel-padding-bottom - The channel padding bottom CSS custom property.
 * @cssprop {String} --epg-channel-padding-left - The channel padding left CSS custom property.
 * @cssprop {String} --epg-channel-padding-right - The channel padding right CSS custom property.
 * @cssprop {String} --epg-channel-padding-top - The channel padding top CSS custom property.
 * @cssprop {String} --epg-channel-shadow - The channel shadow CSS custom property.
 * @cssprop {String} --epg-channel-shadow-blur - The channel shadow blur CSS custom property.
 * @cssprop {String} --epg-channel-shadow-color - The channel shadow color CSS custom property.
 * @cssprop {String} --epg-channel-shadow-offset-x - The channel shadow offset x CSS custom property.
 * @cssprop {String} --epg-channel-shadow-offset-y - The channel shadow offset y CSS custom property.
 * @cssprop {String} --epg-channel-shadow-spread - The channel shadow spread CSS custom property.
 * @cssprop {String} --epg-channel-transition-duration - The channel transition duration CSS custom property.
 * @cssprop {String} --epg-channel-transition-mode - The channel transition mode CSS custom property.
 * @cssprop {String} --epg-channel-transition-property - The channel transition property CSS custom property.
 * @cssprop {String} --epg-channel-translate - The channel translate CSS custom property.
 *
 * @dependency mosaik-text - The Text element.
 *
 * @example
 * ```html
 * <mosaik-epg-channel value="cnn" variant="default">CNN</mosaik-epg-channel>
 *
 * <mosaik-epg-channel value="bbc" appearance="plain" disabled>BBC</mosaik-epg-channel>
 * ```
 *
 * @public
 */
let EpgChannelElement = class EpgChannelElement extends Localeable(Valueable(Variantable(Appearanceable(Disableable(Labelable(CustomElement)))))) {
    // #region Fields
    // @QuerySlotAll(EpgProgramElement.is)
    // private readonly _items!: Array<EpgProgramElement>;
    // #endregion
    // #region Ctor
    /**
     * @public
     */
    constructor() {
        super();
    }
    // #endregion
    // #region Properties
    /**
     * Returns the `is` property.
     * The `is` property represents natural name of this element.
     *
     * @public
     * @static
     * @readonly
     */
    static get is() {
        return 'mosaik-epg-channel';
    }
    /**
     * Gets the `displayText` property.
     *
     * @public
     * @readonly
     * @hidden
     */
    get displayText() {
        return this.textContent?.trim() ?? '';
    }
};
EpgChannelElement = __decorate([
    Component({
        selector: 'mosaik-epg-channel',
        template: epgChannelElementTemplate,
        styles: epgChannelElementJoyStyle,
        host: {
            role: 'group',
            slot: 'channels'
        },
        imports: [
            TextElement
        ]
    }),
    __metadata("design:paramtypes", [])
], EpgChannelElement);
export { EpgChannelElement };
//# sourceMappingURL=EpgChannelElement.js.map