UNPKG

@progress/kendo-angular-utils

Version:

Kendo UI Angular utils component

57 lines (56 loc) 2.91 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, ElementRef, HostBinding, Input, TemplateRef } from "@angular/core"; import { NgTemplateOutlet } from "@angular/common"; import * as i0 from "@angular/core"; /** * @hidden */ export class HintComponent { element; template; directive; targetIndex; contextData; customContext; pointerEvents = 'none'; constructor(element) { this.element = element; } static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: HintComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: HintComponent, isStandalone: true, selector: "kendo-draghint", inputs: { template: "template", directive: "directive", targetIndex: "targetIndex", contextData: "contextData", customContext: "customContext" }, host: { properties: { "style.pointer-events": "this.pointerEvents" } }, ngImport: i0, template: ` <ng-container [ngTemplateOutlet]="template" [ngTemplateOutletContext]="customContext || { $implicit: this.directive, index: this.targetIndex, data: this.contextData }"> </ng-container> `, isInline: true, dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] }); } i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: HintComponent, decorators: [{ type: Component, args: [{ selector: 'kendo-draghint', template: ` <ng-container [ngTemplateOutlet]="template" [ngTemplateOutletContext]="customContext || { $implicit: this.directive, index: this.targetIndex, data: this.contextData }"> </ng-container> `, standalone: true, imports: [NgTemplateOutlet] }] }], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { template: [{ type: Input }], directive: [{ type: Input }], targetIndex: [{ type: Input }], contextData: [{ type: Input }], customContext: [{ type: Input }], pointerEvents: [{ type: HostBinding, args: ['style.pointer-events'] }] } });