// #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 { Appearanceable } from '../../../Behaviors/Appearanceable';
import { Disableable } from '../../../Behaviors/Disableable';
import { Focusable } from '../../../Behaviors/Focusable';
import { Sizeable } from '../../../Behaviors/Sizeable';
import { Valueable } from '../../../Behaviors/Valueable';
import { Variantable } from '../../../Behaviors/Variantable';
import { Attribute } from '../../../Decorators/AttributeDecorator';
import { ButtonType } from '../../../Types/ButtonType';
import { CustomElement } from '../../Abstracts/CustomElement';
// #endregion
/**
 * Button base - Represents the base class for all Button controls.
 *
 * @public
 * @abstract
 */
export class ButtonBaseElement extends Variantable(Appearanceable(Sizeable(Valueable(Disableable(Focusable(CustomElement)))))) {
    // #region Fields
    _type;
    // #endregion
    // #region Ctor
    /**
     * @public
     */
    constructor() {
        super();
        this._type = ButtonType.Button;
    }
    // #endregion
    // #region Properties
    /**
     * Gets or sets the `type` property.
     * It modifies the classification and default behavior of the {@link ButtonElement}.
     * `submit` and `reset` are only necessary when the {@link ButtonElement} is located in a from and should control this actions.
     *
     * @public
     * @attr
     */
    get type() {
        return this._type;
    }
    set type(value) {
        if (this._type !== value) {
            this._type = value;
            this.requestUpdate('type');
        }
    }
    // #endregion
    // #region Methods
    /**
     * @protected
     * @override
     */
    onApplyTemplate() {
        super.onApplyTemplate();
    }
}
__decorate([
    Attribute({ type: ButtonType }),
    __metadata("design:type", String),
    __metadata("design:paramtypes", [String])
], ButtonBaseElement.prototype, "type", null);
//# sourceMappingURL=ButtonBaseElement.js.map