UNPKG

@progress/kendo-angular-gauges

Version:
73 lines (72 loc) 3.38 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 { RadialPointerComponent } from './pointer.component'; import { CollectionComponent } from '../base-components'; import { CollectionChangesService, ConfigurationService } from '../services'; import * as i0 from "@angular/core"; import * as i1 from "../services"; /** * Represents a collection of one or more RadialGauge pointers * ([more information and example]({% slug multiplepointers_radialgauge %})). * * Use this component to group multiple pointer components within a RadialGauge. * Each pointer displays a specific value on the gauge. * * @example * ```ts * import { Component } from '@angular/core'; * * @Component({ * selector: 'my-app', * template: ` * <kendo-radialgauge> * <kendo-radialgauge-pointers> * @for (pointer of pointers; track pointer) { * <kendo-radialgauge-pointer * [value]="pointer.value" [color]="pointer.color"> * </kendo-radialgauge-pointer> * } * </kendo-radialgauge-pointers> * </kendo-radialgauge> * ` * }) * export class AppComponent { * public pointers: any[] = [{ * value: 10, * color: '#ffd246' * }, { * value: 20, * color: '#28b4c8' * }, { * value: 30, * color: '#78d237' * }]; * } * ``` * * @remarks * Supported children components are: {@link RadialPointerComponent} */ export class RadialPointersComponent extends CollectionComponent { children; constructor(configurationService, collectionChangesService) { super('pointer', configurationService, collectionChangesService); } static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: RadialPointersComponent, deps: [{ token: i1.ConfigurationService }, { token: i1.CollectionChangesService }], target: i0.ɵɵFactoryTarget.Component }); static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: RadialPointersComponent, isStandalone: true, selector: "kendo-radialgauge-pointers", providers: [CollectionChangesService], queries: [{ propertyName: "children", predicate: RadialPointerComponent }], usesInheritance: true, ngImport: i0, template: '', isInline: true }); } i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: RadialPointersComponent, decorators: [{ type: Component, args: [{ providers: [CollectionChangesService], selector: 'kendo-radialgauge-pointers', template: '', standalone: true }] }], ctorParameters: () => [{ type: i1.ConfigurationService }, { type: i1.CollectionChangesService }], propDecorators: { children: [{ type: ContentChildren, args: [RadialPointerComponent] }] } });