UNPKG

@progress/kendo-angular-gauges

Version:
76 lines (75 loc) 3.09 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, Input } from '@angular/core'; import { CollectionChangesService, ConfigurationService } from '../services'; import { CollectionItemComponent } from '../base-components'; import * as i0 from "@angular/core"; import * as i1 from "../services"; /** * Represents the configuration options for an ArcGauge color item. * * @example * ```ts * import { Component } from '@angular/core'; * * @Component({ * selector: 'my-app', * template: ` * <kendo-arcgauge [value]="value"> * <kendo-arcgauge-colors> * <kendo-arcgauge-color * [from]="0" * [to]="50" * color="green"> * </kendo-arcgauge-color> * </kendo-arcgauge-colors> * </kendo-arcgauge> * ` * }) * export class AppComponent { * public value: number = 25; * } * ``` */ export class ColorComponent extends CollectionItemComponent { /** * Sets the color of the range. Accepts a valid CSS color string, including hex and rgb. */ color; /** * Sets the opacity of the range. */ opacity; /** * Sets the start value of the range. */ from; /** * Sets the end value of the range. */ to; constructor(configurationService, collectionChangesService) { super(configurationService, collectionChangesService); } static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ColorComponent, deps: [{ token: i1.ConfigurationService }, { token: i1.CollectionChangesService }], target: i0.ɵɵFactoryTarget.Component }); static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: ColorComponent, isStandalone: true, selector: "kendo-arcgauge-color", inputs: { color: "color", opacity: "opacity", from: "from", to: "to" }, providers: [ConfigurationService], usesInheritance: true, ngImport: i0, template: '', isInline: true }); } i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ColorComponent, decorators: [{ type: Component, args: [{ providers: [ConfigurationService], selector: 'kendo-arcgauge-color', template: '', standalone: true }] }], ctorParameters: () => [{ type: i1.ConfigurationService }, { type: i1.CollectionChangesService }], propDecorators: { color: [{ type: Input }], opacity: [{ type: Input }], from: [{ type: Input }], to: [{ type: Input }] } });