UNPKG

@progress/kendo-angular-gantt

Version:
53 lines (52 loc) 2.35 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, forwardRef } from '@angular/core'; import { LocalizationService } from '@progress/kendo-angular-l10n'; import { Messages } from './messages'; import * as i0 from "@angular/core"; import * as i1 from "@progress/kendo-angular-l10n"; /** * Represents the custom messages component for the Kendo UI for Angular Gantt. * Use this component to override default messages. * * @example * ```html * <kendo-gantt-messages * addTaskText="Add Task" * cancelButtonText="Cancel"> * </kendo-gantt-messages> * ``` */ export class CustomMessagesComponent extends Messages { service; constructor(service) { super(); this.service = service; } get override() { return true; } static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CustomMessagesComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component }); static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: CustomMessagesComponent, isStandalone: true, selector: "kendo-gantt-messages", providers: [ { provide: Messages, useExisting: forwardRef(() => CustomMessagesComponent) } ], usesInheritance: true, ngImport: i0, template: ``, isInline: true }); } i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CustomMessagesComponent, decorators: [{ type: Component, args: [{ providers: [ { provide: Messages, useExisting: forwardRef(() => CustomMessagesComponent) } ], selector: 'kendo-gantt-messages', template: ``, standalone: true }] }], ctorParameters: () => [{ type: i1.LocalizationService }] });