@progress/kendo-angular-gantt
Version:
Kendo UI Angular Gantt
83 lines (82 loc) • 4.01 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, ContentChildren, forwardRef, Host, Optional, QueryList, SkipSelf } from '@angular/core';
import { SpanColumnComponent } from '@progress/kendo-angular-treelist';
import { OptionChangesService } from '../common/option-changes.service';
import { CellTemplateDirective } from './cell-template.directive';
import { GanttColumnBase } from './column-base.component';
import { GanttColumnComponent } from './column.component';
import { EditTemplateDirective } from './edit-template.directive';
import * as i0 from "@angular/core";
import * as i1 from "../common/option-changes.service";
import * as i2 from "./column-base.component";
/**
* Represents the Gantt span column.
*
* Use this component to span row content over multiple column cells.
*
* @example
* ```html
* <kendo-gantt-span-column>
* <kendo-gantt-column field="id"></kendo-gantt-column>
* <kendo-gantt-column field="name"></kendo-gantt-column>
* </kendo-gantt-span-column>
* ```
*
* @remarks
* Supported children components are: {@link GanttColumnComponent}.
*/
export class GanttSpanColumnComponent extends SpanColumnComponent {
options;
/**
* @hidden
*/
childColumns = new QueryList();
template = new QueryList();
editTemplate = new QueryList();
constructor(options, parent) {
super(parent);
this.options = options;
}
ngOnChanges() {
this.options.notifyColumnChanges();
}
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: GanttSpanColumnComponent, deps: [{ token: i1.OptionChangesService }, { token: i2.GanttColumnBase, host: true, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.Component });
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: GanttSpanColumnComponent, isStandalone: true, selector: "kendo-gantt-span-column", providers: [
{
provide: GanttColumnBase,
useExisting: forwardRef(() => GanttSpanColumnComponent)
}
], queries: [{ propertyName: "childColumns", predicate: GanttColumnComponent }, { propertyName: "template", predicate: CellTemplateDirective }, { propertyName: "editTemplate", predicate: EditTemplateDirective }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: '', isInline: true });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: GanttSpanColumnComponent, decorators: [{
type: Component,
args: [{
selector: 'kendo-gantt-span-column',
template: '',
providers: [
{
provide: GanttColumnBase,
useExisting: forwardRef(() => GanttSpanColumnComponent)
}
],
standalone: true
}]
}], ctorParameters: () => [{ type: i1.OptionChangesService }, { type: i2.GanttColumnBase, decorators: [{
type: SkipSelf
}, {
type: Host
}, {
type: Optional
}] }], propDecorators: { childColumns: [{
type: ContentChildren,
args: [GanttColumnComponent]
}], template: [{
type: ContentChildren,
args: [CellTemplateDirective, { descendants: false }]
}], editTemplate: [{
type: ContentChildren,
args: [EditTemplateDirective, { descendants: false }]
}] } });