UNPKG

@bimeister/pupakit.calendar

Version:
15 lines 4.42 kB
import { ChangeDetectionStrategy, Component, Input, ViewEncapsulation } from '@angular/core'; import '../../declarations/types/day-position-in-date-range.type'; import * as i0 from "@angular/core"; import * as i1 from "@angular/common"; export class CalendarCellComponent { } CalendarCellComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: CalendarCellComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); CalendarCellComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: CalendarCellComponent, selector: "pupa-calendar-cell", inputs: { positionInRange: "positionInRange" }, ngImport: i0, template: "<div class=\"cell\" [ngClass]=\"'cell_in-range-' + positionInRange\">\n <ng-content></ng-content>\n</div>\n", styles: [".cell{flex-shrink:0;display:flex;justify-content:center;align-items:center;height:7rem;width:7rem}.cell_in-range-first{border-top-left-radius:1rem;border-bottom-left-radius:1rem;background-color:rgba(var(--semantic-color_surface-tertiary),var(--semantic-color-alpha_surface-tertiary))}.cell_in-range-inside{background-color:rgba(var(--semantic-color_surface-tertiary),var(--semantic-color-alpha_surface-tertiary))}.cell_in-range-last{border-top-right-radius:1rem;border-bottom-right-radius:1rem;background-color:rgba(var(--semantic-color_surface-tertiary),var(--semantic-color-alpha_surface-tertiary))}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: CalendarCellComponent, decorators: [{ type: Component, args: [{ selector: 'pupa-calendar-cell', encapsulation: ViewEncapsulation.Emulated, changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"cell\" [ngClass]=\"'cell_in-range-' + positionInRange\">\n <ng-content></ng-content>\n</div>\n", styles: [".cell{flex-shrink:0;display:flex;justify-content:center;align-items:center;height:7rem;width:7rem}.cell_in-range-first{border-top-left-radius:1rem;border-bottom-left-radius:1rem;background-color:rgba(var(--semantic-color_surface-tertiary),var(--semantic-color-alpha_surface-tertiary))}.cell_in-range-inside{background-color:rgba(var(--semantic-color_surface-tertiary),var(--semantic-color-alpha_surface-tertiary))}.cell_in-range-last{border-top-right-radius:1rem;border-bottom-right-radius:1rem;background-color:rgba(var(--semantic-color_surface-tertiary),var(--semantic-color-alpha_surface-tertiary))}\n"] }] }], propDecorators: { positionInRange: [{ type: Input }] } }); //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2FsZW5kYXItY2VsbC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvY29tcG9uZW50cy9jYWxlbmRhci1jZWxsL2NhbGVuZGFyLWNlbGwuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vc3JjL2NvbXBvbmVudHMvY2FsZW5kYXItY2VsbC9jYWxlbmRhci1jZWxsLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSx1QkFBdUIsRUFBRSxTQUFTLEVBQUUsS0FBSyxFQUFFLGlCQUFpQixFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQzdGLE9BQXVDLDBEQUEwRCxDQUFDOzs7QUFTbEcsTUFBTSxPQUFPLHFCQUFxQjs7bUhBQXJCLHFCQUFxQjt1R0FBckIscUJBQXFCLDBHQ1ZsQyw4R0FHQTs0RkRPYSxxQkFBcUI7a0JBUGpDLFNBQVM7K0JBQ0Usb0JBQW9CLGlCQUdmLGlCQUFpQixDQUFDLFFBQVEsbUJBQ3hCLHVCQUF1QixDQUFDLE1BQU07OEJBSXhDLGVBQWU7c0JBRHJCLEtBQUsiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBDaGFuZ2VEZXRlY3Rpb25TdHJhdGVneSwgQ29tcG9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