@progress/kendo-angular-gauges
Version:
Kendo UI Angular Gauges
68 lines (67 loc) • 3.21 kB
JavaScript
/**-----------------------------------------------------------------------------------------
* 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 { LinearPointerComponent } 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 LinearGauge pointers
* ([more information]({% slug multiplepointers_lineargauge %})).
*
* @example
* ```ts
* import { Component } from '@angular/core';
*
* @Component({
* selector: 'my-app',
* template: `
* <kendo-lineargauge>
* <kendo-lineargauge-pointers>
* <kendo-lineargauge-pointer *ngFor="let pointer of pointers"
* [value]="pointer.value" [color]="pointer.color" shape="barIndicator">
* </kendo-lineargauge-pointer>
* </kendo-lineargauge-pointers>
* </kendo-lineargauge>
* `
* })
* export class AppComponent {
* public pointers: any[] = [{
* value: 10,
* color: '#ff4500'
* }, {
* value: 12,
* color: '#28b4c8'
* }, {
* value: 20,
* color: '#8b0000'
* }];
* }
* ```
*
* @remarks
* Supported children components are: {@link LinearPointerComponent}
*/
export class LinearPointersComponent extends CollectionComponent {
children;
constructor(configurationService, collectionChangesService) {
super('pointer', configurationService, collectionChangesService);
}
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LinearPointersComponent, deps: [{ token: i1.ConfigurationService }, { token: i1.CollectionChangesService }], target: i0.ɵɵFactoryTarget.Component });
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: LinearPointersComponent, isStandalone: true, selector: "kendo-lineargauge-pointers", providers: [CollectionChangesService], queries: [{ propertyName: "children", predicate: LinearPointerComponent }], usesInheritance: true, ngImport: i0, template: '', isInline: true });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LinearPointersComponent, decorators: [{
type: Component,
args: [{
providers: [CollectionChangesService],
selector: 'kendo-lineargauge-pointers',
template: '',
standalone: true
}]
}], ctorParameters: function () { return [{ type: i1.ConfigurationService }, { type: i1.CollectionChangesService }]; }, propDecorators: { children: [{
type: ContentChildren,
args: [LinearPointerComponent]
}] } });