// #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 { Disableable } from '../../../Behaviors/Disableable';
import { Themeable } from '../../../Behaviors/Themeable';
import { Attribute } from '../../../Decorators/AttributeDecorator';
import { Component } from '../../../Decorators/ComponentDecorator';
import { ThumbEdge } from '../../../Types/ThumbEdge';
import { CustomElement } from '../../Abstracts/CustomElement';
import { thumbElementCosmopolitanStyle } from './themes/ThumbElement.Cosmopolitan';
import { thumbElementJoyStyle } from './themes/ThumbElement.Joy';
import { thumbElementMemphisStyle } from './themes/ThumbElement.Memphis';
import { thumbElementTemplate } from './ThumbElementTemplate';
// #endregion
/**
 * Thumb - A draggable handle used in slider, scrollbar, and range control components.
 *
 * @description
 * The Thumb element represents the draggable handle in slider controls, range inputs, scrollbars,
 * and similar interactive components. It provides visual feedback for the current value position
 * and can be styled to indicate different states (normal, hover, active, disabled). The edge
 * property controls positioning behavior at the extremes of the range. This is a low-level
 * primitive typically used as a building block in more complex slider components.
 *
 * @name Thumb
 * @element mosaik-thumb
 * @category Primitives
 *
 * @cssprop {String} --thumb-background-color - Background color of the thumb handle
 * @cssprop {String} --thumb-border-color - Border color of the thumb
 * @cssprop {String} --thumb-border-radius - Border radius for rounded corners
 * @cssprop {String} --thumb-border-style - Border style (solid, dashed, etc.)
 * @cssprop {String} --thumb-border-width - Border width of the thumb
 * @cssprop {String} --thumb-font-family - The font family CSS custom property.
 * @cssprop {String} --thumb-font-letter-spacing - The font letter spacing CSS custom property.
 * @cssprop {String} --thumb-font-line-height - The font line height CSS custom property.
 * @cssprop {String} --thumb-font-size - The font size CSS custom property.
 * @cssprop {String} --thumb-font-text-decoration - The font text decoration CSS custom property.
 * @cssprop {String} --thumb-font-text-transform - The font text transform CSS custom property.
 * @cssprop {String} --thumb-font-weight - The font weight CSS custom property.
 * @cssprop {String} --thumb-gap - The gap CSS custom property.
 * @cssprop {String} --thumb-padding-bottom - The padding bottom CSS custom property.
 * @cssprop {String} --thumb-padding-left - The padding left CSS custom property.
 * @cssprop {String} --thumb-padding-right - The padding right CSS custom property.
 * @cssprop {String} --thumb-padding-top - The padding top CSS custom property.
 * @cssprop {String} --thumb-shadow - The shadow CSS custom property.
 * @cssprop {String} --thumb-shadow-blur - The shadow blur CSS custom property.
 * @cssprop {String} --thumb-shadow-color - The shadow color CSS custom property.
 * @cssprop {String} --thumb-shadow-offset-x - The shadow offset x CSS custom property.
 * @cssprop {String} --thumb-shadow-offset-y - The shadow offset y CSS custom property.
 * @cssprop {String} --thumb-shadow-spread - The shadow spread CSS custom property.
 * @cssprop {String} --thumb-transition-duration - Duration of state transitions
 * @cssprop {String} --thumb-transition-mode - Timing function for animations
 * @cssprop {Array} --thumb-transition-property - CSS properties to animate
 * @cssprop {String} --thumb-translate - The translate CSS custom property.
 *
 * @example
 * Basic thumb for a slider:
 * ```html
 * <div class="slider-track">
 *   <mosaik-thumb id="sliderThumb" edge="none"></mosaik-thumb>
 * </div>
 *
 * <style>
 *   .slider-track {
 *     position: relative;
 *     width: 200px;
 *     height: 4px;
 *     background: #e0e0e0;
 *   }
 *
 *   mosaik-thumb {
 *     position: absolute;
 *     top: -6px;
 *     cursor: grab;
 *   }
 * </style>
 * ```
 *
 * @example
 * Thumb at minimum edge:
 * ```html
 * <mosaik-thumb edge="min"></mosaik-thumb>
 * ```
 *
 * @example
 * Disabled thumb:
 * ```html
 * <mosaik-thumb disabled edge="none"></mosaik-thumb>
 * ```
 *
 * @public
 */
let ThumbElement = class ThumbElement extends Themeable(Disableable(CustomElement)) {
    // #region Fields
    _edge;
    // #endregion
    // #region Ctor
    /**
     * @public
     */
    constructor() {
        super();
        this._edge = 'none';
    }
    // #endregion
    // #region Properties
    /**
     * Returns the `is` property.
     * The `is` property represents natural name of this element.
     *
     * @public
     * @static
     * @readonly
     */
    static get is() {
        return 'mosaik-thumb';
    }
    /**
     * Gets or sets the `edge` property.
     *
     * @public
     * @attr
     */
    get edge() {
        return this._edge;
    }
    set edge(value) {
        if (this._edge !== value) {
            this._edge = value;
            this.requestUpdate('edge');
        }
    }
};
__decorate([
    Attribute({ type: ThumbEdge }),
    __metadata("design:type", String),
    __metadata("design:paramtypes", [String])
], ThumbElement.prototype, "edge", null);
ThumbElement = __decorate([
    Component({
        selector: 'mosaik-thumb',
        template: thumbElementTemplate,
        themes: {
            joy: thumbElementJoyStyle,
            memphis: thumbElementMemphisStyle,
            cosmopolitan: thumbElementCosmopolitanStyle
        },
        imports: []
    }),
    __metadata("design:paramtypes", [])
], ThumbElement);
export { ThumbElement };
//# sourceMappingURL=ThumbElement.js.map