UNPKG

@progress/kendo-angular-gauges

Version:
91 lines (90 loc) 3.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 { Directive, Input } from '@angular/core'; import { SettingsComponent } from './settings.component'; import { ConfigurationService } from '../services'; import * as i0 from "@angular/core"; import * as i1 from "../services"; /** * @hidden */ export class LabelsComponent extends SettingsComponent { key; configurationService; /** * The background of the labels. * Accepts valid CSS color strings, including hex and rgb. */ background; /** * The border of the labels. */ border; /** * The color of the labels. * Accepts valid CSS color strings, including hex and rgb. */ color; /** * The font of the labels. */ font; /** * The format that is used to display the labels. * Uses the IntlService [`format`]({% slug api_intl_intlservice %}#toc-format) method. */ format; /** * The margin of the labels. */ margin; /** * The padding of the labels. */ padding; /** * The function which returns the label content. * * The available fields in the function argument are: * * - `value`—The value of the label. */ content; /** * The visibility of the labels. */ visible; // due to NG error: The directive LabelsComponent inherits its constructor from SettingsComponent, but the latter has a constructor parameter // that is not compatible with dependency injection. Either add an explicit constructor to ScaleComponent or change SettingsComponent's constructor // to use parameters that are valid for DI.(-992016) constructor(key, configurationService) { super('label', configurationService); this.key = key; this.configurationService = configurationService; } static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LabelsComponent, deps: "invalid", target: i0.ɵɵFactoryTarget.Directive }); static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: LabelsComponent, inputs: { background: "background", border: "border", color: "color", font: "font", format: "format", margin: "margin", padding: "padding", content: "content", visible: "visible" }, usesInheritance: true, ngImport: i0 }); } i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LabelsComponent, decorators: [{ type: Directive }], ctorParameters: function () { return [{ type: undefined }, { type: i1.ConfigurationService }]; }, propDecorators: { background: [{ type: Input }], border: [{ type: Input }], color: [{ type: Input }], font: [{ type: Input }], format: [{ type: Input }], margin: [{ type: Input }], padding: [{ type: Input }], content: [{ type: Input }], visible: [{ type: Input }] } });