UNPKG

@progress/kendo-angular-dialog

Version:
46 lines (45 loc) 2.47 kB
/**----------------------------------------------------------------------------------------- * Copyright © 2025 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the project root for more information *-------------------------------------------------------------------------------------------*/ import { LocalizationService, L10N_PREFIX, MessageService, RTL } from "@progress/kendo-angular-l10n"; import { Inject, Injectable, Optional } from "@angular/core"; import { DIALOG_LOCALIZATION_SERVICE } from './dialog-localization.service'; import * as i0 from "@angular/core"; import * as i1 from "@progress/kendo-angular-l10n"; /** * @hidden */ export class TitleBarLocalizationService extends LocalizationService { dialogLocalization; constructor(prefix, messageService, rtl, dialogLocalization) { super(prefix, messageService, rtl); this.dialogLocalization = dialogLocalization; } get(shortKey) { if (this.dialogLocalization) { return this.dialogLocalization.get(shortKey); } return super.get(shortKey); } static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TitleBarLocalizationService, deps: [{ token: L10N_PREFIX }, { token: i1.MessageService, optional: true }, { token: RTL, optional: true }, { token: DIALOG_LOCALIZATION_SERVICE, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TitleBarLocalizationService }); } i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TitleBarLocalizationService, decorators: [{ type: Injectable }], ctorParameters: function () { return [{ type: undefined, decorators: [{ type: Inject, args: [L10N_PREFIX] }] }, { type: i1.MessageService, decorators: [{ type: Optional }] }, { type: undefined, decorators: [{ type: Optional }, { type: Inject, args: [RTL] }] }, { type: i1.LocalizationService, decorators: [{ type: Optional }, { type: Inject, args: [DIALOG_LOCALIZATION_SERVICE] }] }]; } });