// #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 { Orientable } from '../../../Behaviors/Orientable';
import { Themeable } from '../../../Behaviors/Themeable';
import { InlineStyleController } from '../../../Controllers/InlineStyleController';
import { Attribute } from '../../../Decorators/AttributeDecorator';
import { Component } from '../../../Decorators/ComponentDecorator';
import { CustomElement } from '../../Abstracts/CustomElement';
import { dividerElementTemplate } from './DividerElementTemplate';
import { dividerElementCosmopolitanStyle } from './Themes/DividerElement.Cosmopolitan';
import { dividerElementJoyStyle } from './Themes/DividerElement.Joy';
import { dividerElementMemphisStyle } from './Themes/DividerElement.Memphis';
// #endregion
/**
 * Divider - A visual separator element that creates distinct sections within layouts.
 *
 * @description
 * The Divider component is a fundamental layout element that renders as a horizontal or vertical
 * line to visually separate content areas, groups, or sections within an interface. It provides
 * clear visual hierarchy and organization by creating boundaries between related content blocks.
 * The component supports both horizontal and vertical orientations through the Orientable behavior,
 * customizable thickness via attribute or CSS property, and theme-aware styling that adapts to
 * the current design system. Commonly used in navigation menus, lists, toolbars, forms, and
 * content layouts to improve scannability and visual structure.
 *
 * @name Divider
 * @element mosaik-divider
 * @category Primitives
 *
 * @csspart root - The root container for the divider SVG element
 *
 * @cssprop {String} --divider-background-color - The background color of the divider line
 * @cssprop {String} --divider-border-color - The border color CSS custom property.
 * @cssprop {String} --divider-border-radius - The border radius CSS custom property.
 * @cssprop {String} --divider-border-style - The border style CSS custom property.
 * @cssprop {String} --divider-border-width - The border width CSS custom property.
 * @cssprop {String} --divider-font-family - The font family for divider labels (when applicable)
 * @cssprop {String} --divider-font-letter-spacing - The font letter spacing CSS custom property.
 * @cssprop {String} --divider-font-line-height - The font line height CSS custom property.
 * @cssprop {String} --divider-font-size - The font size for divider labels (when applicable)
 * @cssprop {String} --divider-font-text-decoration - The font text decoration CSS custom property.
 * @cssprop {String} --divider-font-text-transform - The font text transform CSS custom property.
 * @cssprop {String} --divider-font-weight - The font weight for divider labels (when applicable)
 * @cssprop {String} --divider-foreground-color - The foreground/stroke color of the divider line
 * @cssprop {String} --divider-gap - The spacing gap around the divider element
 * @cssprop {String} --divider-padding-bottom - The bottom padding inside the divider container
 * @cssprop {String} --divider-padding-left - The left padding inside the divider container
 * @cssprop {String} --divider-padding-right - The right padding inside the divider container
 * @cssprop {String} --divider-padding-top - The top padding inside the divider container
 * @cssprop {String} --divider-shadow - The shadow effect for the divider element
 * @cssprop {String} --divider-shadow-blur - The shadow blur CSS custom property.
 * @cssprop {String} --divider-shadow-color - The shadow color CSS custom property.
 * @cssprop {String} --divider-shadow-offset-x - The shadow offset x CSS custom property.
 * @cssprop {String} --divider-shadow-offset-y - The shadow offset y CSS custom property.
 * @cssprop {String} --divider-shadow-spread - The shadow spread CSS custom property.
 * @cssprop {String} --divider-thickness - The thickness of the divider line in pixels
 * @cssprop {String} --divider-transition-duration - The duration of transition animations
 * @cssprop {String} --divider-transition-mode - The timing function for transition animations
 * @cssprop {String} --divider-transition-property - The CSS properties to animate during transitions
 * @cssprop {String} --divider-translate - The translate CSS custom property.
 *
 * @example
 * Horizontal divider separating content sections:
 * ```html
 * <div>Section 1</div>
 * <mosaik-divider></mosaik-divider>
 * <div>Section 2</div>
 * ```
 *
 * @example
 * Vertical divider in navigation menu:
 * ```html
 * <nav style="display: flex; align-items: center; gap: 1rem;">
 *   <a href="/home">Home</a>
 *   <mosaik-divider orientation="vertical"></mosaik-divider>
 *   <a href="/about">About</a>
 *   <mosaik-divider orientation="vertical"></mosaik-divider>
 *   <a href="/contact">Contact</a>
 * </nav>
 * ```
 *
 * @public
 */
let DividerElement = class DividerElement extends Themeable(Orientable(CustomElement)) {
    // #region Fields
    _inlineStyleController;
    _thickness;
    // #endregion
    // #region Ctor
    /**
     * @public
     */
    constructor() {
        super();
        this._thickness = undefined;
        this._inlineStyleController = new InlineStyleController(this);
    }
    // #endregion
    // #region Properties
    /**
     * Returns the `is` property.
     *
     * @public
     * @static
     * @readonly
    */
    static get is() {
        return 'mosaik-divider';
    }
    // #endregion
    // #region Methods
    /**
     * Gets or sets the thickness property.
     *
     * @public
     * @attr
     */
    get thickness() {
        return this._thickness;
    }
    set thickness(value) {
        if (this._thickness !== value) {
            this._thickness = value;
            if (value !== undefined) {
                this._inlineStyleController.set('divider-thickness', `${value}px`);
            }
            else {
                this._inlineStyleController.remove('divider-thickness');
            }
            this.requestUpdate('thickness');
        }
    }
};
__decorate([
    Attribute({ type: Number }),
    __metadata("design:type", Object),
    __metadata("design:paramtypes", [Object])
], DividerElement.prototype, "thickness", null);
DividerElement = __decorate([
    Component({
        selector: 'mosaik-divider',
        template: dividerElementTemplate,
        themes: {
            joy: dividerElementJoyStyle,
            memphis: dividerElementMemphisStyle,
            cosmopolitan: dividerElementCosmopolitanStyle
        },
        imports: []
    }),
    __metadata("design:paramtypes", [])
], DividerElement);
export { DividerElement };
//# sourceMappingURL=DividerElement.js.map