import { Component, Input, HostBinding, ChangeDetectionStrategy } from '@angular/core';
import * as i0 from "@angular/core";
export class DateDayComponent {
    constructor() {
        this.role = 'gridcell';
    }
    get label() {
        return Number(this.day) < 10 ? `0${this.day}` : this.day;
    }
    static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DateDayComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
    static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: DateDayComponent, isStandalone: true, 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: "18.2.13", ngImport: i0, type: DateDayComponent, decorators: [{
            type: Component,
            args: [{
                    selector: 'td[uno-date-day]',
                    template: ` <span class="slds-day">{{ label }}</span>`,
                    changeDetection: ChangeDetectionStrategy.OnPush,
                    standalone: true
                }]
        }], 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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0ZS1kYXkuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4v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