UNPKG

@progress/kendo-angular-gauges

Version:
78 lines (77 loc) 3.58 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, ContentChildren, QueryList } from '@angular/core'; import { CollectionComponent } from '../base-components'; import { RadialRangeComponent } from './range.component'; import { CollectionChangesService, ConfigurationService } from '../services'; import * as i0 from "@angular/core"; import * as i1 from "../services"; /** * Represents a collection of one or more RadialGauge scale ranges * ([more information and example]({% slug scaleranghes_radialgauge %})). * * Use this component to define multiple ranges on your RadialGauge scale. * Each range displays a colored segment that highlights specific value intervals. * * @example * ```ts * import { Component } from '@angular/core'; * * @Component({ * selector: 'my-app', * template: ` * <kendo-radialgauge> * <kendo-radialgauge-scale> * <kendo-radialgauge-scale-ranges> * @for (range of ranges; track range) { * <kendo-radialgauge-scale-range * [from]="range.from" [to]="range.to" [color]="range.color"> * </kendo-radialgauge-scale-range> * } * </kendo-radialgauge-scale-ranges> * </kendo-radialgauge-scale> * </kendo-radialgauge> * ` * }) * export class AppComponent { * public ranges: any[] = [{ * from: 0, * to: 15, * color: '#ffd246' * }, { * from: 15, * to: 30, * color: '#28b4c8' * }, { * from: 30, * to: 50, * color: '#78d237' * }]; * } * ``` * * @remarks * Supported children components are: {@link RadialRangeComponent} */ export class RadialRangesComponent extends CollectionComponent { children; constructor(configurationService, collectionChangesService) { super('scale.ranges', configurationService, collectionChangesService); } static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: RadialRangesComponent, deps: [{ token: i1.ConfigurationService }, { token: i1.CollectionChangesService }], target: i0.ɵɵFactoryTarget.Component }); static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: RadialRangesComponent, isStandalone: true, selector: "kendo-radialgauge-scale-ranges", providers: [CollectionChangesService], queries: [{ propertyName: "children", predicate: RadialRangeComponent }], usesInheritance: true, ngImport: i0, template: '', isInline: true }); } i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: RadialRangesComponent, decorators: [{ type: Component, args: [{ providers: [CollectionChangesService], selector: 'kendo-radialgauge-scale-ranges', template: '', standalone: true }] }], ctorParameters: () => [{ type: i1.ConfigurationService }, { type: i1.CollectionChangesService }], propDecorators: { children: [{ type: ContentChildren, args: [RadialRangeComponent] }] } });