import { Component, Input, HostBinding, ChangeDetectionStrategy } from '@angular/core';
import * as i0 from "@angular/core";
export class DateDayComponent {
    constructor() {
        this.role = 'gridcell';
    }
    get label() {
        return this.day < 10 ? `0${this.day}` : this.day;
    }
}
DateDayComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DateDayComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
DateDayComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: DateDayComponent, selector: "td[uno-date-day]", inputs: { day: "day", dayDisabled: "dayDisabled", daySelected: "daySelected" }, host: { properties: { "attr.role": "this.role", "class.slds-disabled-text": "this.dayDisabled", "attr.aria-disabled": "this.dayDisabled", "class.slds-is-selected": "this.daySelected", "attr.aria-selected": "this.daySelected" } }, ngImport: i0, template: ` <span class="slds-day">{{ label }}</span>`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DateDayComponent, decorators: [{
            type: Component,
            args: [{
                    selector: 'td[uno-date-day]',
                    template: ` <span class="slds-day">{{ label }}</span>`,
                    changeDetection: ChangeDetectionStrategy.OnPush
                }]
        }], propDecorators: { role: [{
                type: HostBinding,
                args: ['attr.role']
            }], day: [{
                type: Input
            }], dayDisabled: [{
                type: HostBinding,
                args: ['class.slds-disabled-text']
            }, {
                type: HostBinding,
                args: ['attr.aria-disabled']
            }, {
                type: Input
            }], daySelected: [{
                type: HostBinding,
                args: ['class.slds-is-selected']
            }, {
                type: HostBinding,
                args: ['attr.aria-selected']
            }, {
                type: Input
            }] } });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0ZS1kYXkuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdW5vLXVp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