@progress/kendo-angular-gantt
Version:
Kendo UI Angular Gantt
71 lines (70 loc) • 3.41 kB
JavaScript
/**-----------------------------------------------------------------------------------------
* Copyright © 2025 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the project root for more information
*-------------------------------------------------------------------------------------------*/
import { Component } from '@angular/core';
import * as i0 from "@angular/core";
/**
* @hidden
*/
export class DragValidationTooltipComponent {
/**
* Sets the status class of the attempted operation.
* Note that the status will be ignored and the `neutral` status class will be rendered,
* if the any of the fromTaskName or toTaskName are not populated.
*/
isValid = false;
/**
* The name of the task where the dragging has started.
*/
fromTaskName;
/**
* The name of the task which is being currently hovered.
*/
toTaskName;
/**
* Specifies whether the valid/invalid validity classes should be rendered or not.
* Prevents the validity classes being rendered when e.g. the same task is hovered during drag,
* or when a task body is hovered and not an actual drag clue.
*/
showValidityStatus;
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: DragValidationTooltipComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: DragValidationTooltipComponent, isStandalone: true, selector: "ng-component", ngImport: i0, template: `
<div
class="k-tooltip k-gantt-tooltip-validation"
[class.k-gantt-tooltip-valid]="showValidityStatus && isValid"
[class.k-gantt-tooltip-invalid]="showValidityStatus && !isValid"
>
<div class="k-gantt-tooltip-validation-row">
<span class="k-gantt-tooltip-validation-label">From:</span>
<span class="k-gantt-tooltip-validation-value">{{ fromTaskName }}</span>
</div>
<div class="k-gantt-tooltip-validation-row">
<span class="k-gantt-tooltip-validation-label">To:</span>
<span class="k-gantt-tooltip-validation-value">{{ toTaskName }}</span>
</div>
</div>
`, isInline: true });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: DragValidationTooltipComponent, decorators: [{
type: Component,
args: [{
template: `
<div
class="k-tooltip k-gantt-tooltip-validation"
[class.k-gantt-tooltip-valid]="showValidityStatus && isValid"
[class.k-gantt-tooltip-invalid]="showValidityStatus && !isValid"
>
<div class="k-gantt-tooltip-validation-row">
<span class="k-gantt-tooltip-validation-label">From:</span>
<span class="k-gantt-tooltip-validation-value">{{ fromTaskName }}</span>
</div>
<div class="k-gantt-tooltip-validation-row">
<span class="k-gantt-tooltip-validation-label">To:</span>
<span class="k-gantt-tooltip-validation-value">{{ toTaskName }}</span>
</div>
</div>
`,
standalone: true
}]
}] });