import { __assign } from "tslib";
import Vue from 'vue';
import './calendar-button.scss';
export var MCalendarButton = Vue.extend({
    name: 'calendar-button',
    functional: true,
    render: function (createElement, context) {
        var data = {
            class: {
                'm-calendar-button': true,
                'm--is-disabled': context.props['disabled'],
                'm--is-selected': context.props['selected'],
                'm--is-today': context.props['today']
            },
            props: {
                disabled: { type: Boolean, required: false },
                selected: { type: Boolean, required: false },
                today: { type: Boolean, required: false }
            },
            on: __assign(__assign({}, context.data.on), { click: function ($event) {
                    $event.stopPropagation();
                    var emit = context.data.on.click;
                    emit && emit($event);
                },
                keyup: function ($event) {
                    var emit = context.data.on.keyup;
                    emit && emit($event);
                },
                mouseenter: function ($event) {
                    var emit = context.data.on.mouseenter;
                    emit && emit($event);
                },
                mouseleave: function ($event) {
                    var emit = context.data.on.mouseleave;
                    emit && emit($event);
                } }),
            attrs: {
                'aria-selected': context.data.attrs.selected
            },
            ref: context.data.ref
        };
        return createElement('button', data, context.children);
    }
});
//# sourceMappingURL=calendar-button.js.map