UNPKG

@progress/kendo-angular-scheduler

Version:

Kendo UI Scheduler Angular - Outlook or Google-style angular scheduler calendar. Full-featured and customizable embedded scheduling from the creator developers trust for professional UI components.

98 lines (97 loc) 4.07 kB
/**----------------------------------------------------------------------------------------- * Copyright © 2025 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the project root for more information *-------------------------------------------------------------------------------------------*/ import { Component, HostBinding, Input } from '@angular/core'; import { toLocalDate } from '@progress/kendo-date-math'; import { DatePipe } from '@progress/kendo-angular-intl'; import * as i0 from "@angular/core"; /** * @hidden */ export class ResizeHintComponent { hint; format; marqueeClasses = true; get left() { return this.hint.rect.left; } get top() { return this.hint.rect.top; } get width() { return this.hint.rect.width; } get height() { return this.hint.rect.height; } get start() { return toLocalDate(this.hint.start); } get end() { return toLocalDate(this.hint.end); } static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ResizeHintComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: ResizeHintComponent, isStandalone: true, selector: "[kendoResizeHint]", inputs: { hint: "hint", format: "format" }, host: { properties: { "class.k-marquee": "this.marqueeClasses", "class.k-scheduler-marquee": "this.marqueeClasses", "class.k-first": "this.marqueeClasses", "class.k-last": "this.marqueeClasses", "style.left.px": "this.left", "style.right.px": "this.left", "style.top.px": "this.top", "style.width.px": "this.width", "style.height.px": "this.height" } }, ngImport: i0, template: ` <div class="k-marquee-color"></div> <div class="k-marquee-text"> @if (hint.first) { <div class="k-label-top">{{ start | kendoDate : format }}</div> } @if (hint.last) { <div class="k-label-bottom">{{ end | kendoDate : format }}</div> } </div> `, isInline: true, dependencies: [{ kind: "pipe", type: DatePipe, name: "kendoDate" }] }); } i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ResizeHintComponent, decorators: [{ type: Component, args: [{ // eslint-disable-next-line @angular-eslint/component-selector selector: '[kendoResizeHint]', template: ` <div class="k-marquee-color"></div> <div class="k-marquee-text"> @if (hint.first) { <div class="k-label-top">{{ start | kendoDate : format }}</div> } @if (hint.last) { <div class="k-label-bottom">{{ end | kendoDate : format }}</div> } </div> `, standalone: true, imports: [DatePipe] }] }], propDecorators: { hint: [{ type: Input }], format: [{ type: Input }], marqueeClasses: [{ type: HostBinding, args: ['class.k-marquee'] }, { type: HostBinding, args: ['class.k-scheduler-marquee'] }, { type: HostBinding, args: ['class.k-first'] }, { type: HostBinding, args: ['class.k-last'] }], left: [{ type: HostBinding, args: ['style.left.px'] }, { type: HostBinding, args: ['style.right.px'] }], top: [{ type: HostBinding, args: ['style.top.px'] }], width: [{ type: HostBinding, args: ['style.width.px'] }], height: [{ type: HostBinding, args: ['style.height.px'] }] } });