@progress/kendo-angular-gauges 21.4.1-develop.1 → 22.0.0-develop.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/base-components/collection-item.component.d.ts +1 -1
- package/base-components/collection.component.d.ts +1 -1
- package/base-components/gauge-area.component.d.ts +1 -1
- package/base-components/gauge.component.d.ts +1 -1
- package/base-components/labels.component.d.ts +1 -1
- package/base-components/range.component.d.ts +1 -1
- package/base-components/scale.component.d.ts +1 -1
- package/base-components/settings.component.d.ts +1 -1
- package/fesm2022/progress-kendo-angular-gauges.mjs +140 -140
- package/package.json +10 -18
- package/esm2022/arc-gauge/arc-center-template.directive.mjs +0 -39
- package/esm2022/arc-gauge/arc-gauge.component.mjs +0 -205
- package/esm2022/arc-gauge/arc-gauge.directives.mjs +0 -11
- package/esm2022/arc-gauge/arc-gauge.module.mjs +0 -50
- package/esm2022/arc-gauge/color.component.mjs +0 -75
- package/esm2022/arc-gauge/colors.component.mjs +0 -76
- package/esm2022/arc-gauge/gauge-area.component.mjs +0 -50
- package/esm2022/arc-gauge/labels.component.mjs +0 -52
- package/esm2022/arc-gauge/scale.component.mjs +0 -84
- package/esm2022/base-components/collection-item.component.mjs +0 -28
- package/esm2022/base-components/collection.component.mjs +0 -44
- package/esm2022/base-components/gauge-area.component.mjs +0 -59
- package/esm2022/base-components/gauge.component.mjs +0 -253
- package/esm2022/base-components/labels.component.mjs +0 -90
- package/esm2022/base-components/range.component.mjs +0 -41
- package/esm2022/base-components/scale.component.mjs +0 -59
- package/esm2022/base-components/settings.component.mjs +0 -30
- package/esm2022/base-components.mjs +0 -12
- package/esm2022/circular-gauge/center-template.directive.mjs +0 -38
- package/esm2022/circular-gauge/circular-gauge.component.mjs +0 -98
- package/esm2022/circular-gauge/circular-gauge.directives.mjs +0 -9
- package/esm2022/circular-gauge/circular-gauge.module.mjs +0 -48
- package/esm2022/circular-gauge/gauge-area.component.mjs +0 -37
- package/esm2022/circular-gauge/labels.component.mjs +0 -44
- package/esm2022/circular-gauge/scale.component.mjs +0 -44
- package/esm2022/directives.mjs +0 -89
- package/esm2022/gauges.module.mjs +0 -73
- package/esm2022/index.mjs +0 -17
- package/esm2022/linear-gauge/gauge-area.component.mjs +0 -38
- package/esm2022/linear-gauge/labels.component.mjs +0 -39
- package/esm2022/linear-gauge/linear-gauge.component.mjs +0 -91
- package/esm2022/linear-gauge/linear-gauge.directives.mjs +0 -12
- package/esm2022/linear-gauge/linear-gauge.module.mjs +0 -52
- package/esm2022/linear-gauge/pointer.component.mjs +0 -80
- package/esm2022/linear-gauge/pointers.component.mjs +0 -69
- package/esm2022/linear-gauge/range.component.mjs +0 -42
- package/esm2022/linear-gauge/ranges.component.mjs +0 -77
- package/esm2022/linear-gauge/scale.component.mjs +0 -69
- package/esm2022/package-metadata.mjs +0 -16
- package/esm2022/progress-kendo-angular-gauges.mjs +0 -8
- package/esm2022/radial-gauge/gauge-area.component.mjs +0 -45
- package/esm2022/radial-gauge/labels.component.mjs +0 -45
- package/esm2022/radial-gauge/pointer.component.mjs +0 -62
- package/esm2022/radial-gauge/pointers.component.mjs +0 -72
- package/esm2022/radial-gauge/radial-gauge.component.mjs +0 -93
- package/esm2022/radial-gauge/radial-gauge.directives.mjs +0 -12
- package/esm2022/radial-gauge/radial-gauge.module.mjs +0 -52
- package/esm2022/radial-gauge/range.component.mjs +0 -40
- package/esm2022/radial-gauge/ranges.component.mjs +0 -77
- package/esm2022/radial-gauge/scale.component.mjs +0 -71
- package/esm2022/services/collection-changes.service.mjs +0 -17
- package/esm2022/services/configuration.service.mjs +0 -98
- package/esm2022/services/theme.service.mjs +0 -43
- package/esm2022/services.mjs +0 -7
- package/esm2022/types/arc-scale.interface.mjs +0 -5
- package/esm2022/types/border.interface.mjs +0 -5
- package/esm2022/types/cap.interface.mjs +0 -5
- package/esm2022/types/circular-gauge-scale.interface.mjs +0 -5
- package/esm2022/types/color-range.interface.mjs +0 -5
- package/esm2022/types/dash-type.interface.mjs +0 -5
- package/esm2022/types/gauge-area.interface.mjs +0 -5
- package/esm2022/types/labels.interface.mjs +0 -5
- package/esm2022/types/line-cap.mjs +0 -5
- package/esm2022/types/line.interface.mjs +0 -5
- package/esm2022/types/linear-pointer-shape.mjs +0 -5
- package/esm2022/types/linear-pointer.interface.mjs +0 -5
- package/esm2022/types/linear-scale.interface.mjs +0 -5
- package/esm2022/types/margin.interface.mjs +0 -5
- package/esm2022/types/padding.interface.mjs +0 -5
- package/esm2022/types/radial-label-position.mjs +0 -5
- package/esm2022/types/radial-labels.interface.mjs +0 -5
- package/esm2022/types/radial-pointer.interface.mjs +0 -5
- package/esm2022/types/radial-scale.interface.mjs +0 -5
- package/esm2022/types/range.interface.mjs +0 -5
- package/esm2022/types/scale.interface.mjs +0 -5
- package/esm2022/types/ticks.interface.mjs +0 -5
- package/esm2022/types.mjs +0 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-gauges",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "22.0.0-develop.1",
|
|
4
4
|
"description": "Kendo UI Angular Gauges",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "Progress",
|
|
@@ -17,29 +17,23 @@
|
|
|
17
17
|
"Progress"
|
|
18
18
|
],
|
|
19
19
|
"@progress": {
|
|
20
|
-
"friendlyName": "Gauges"
|
|
21
|
-
"package": {
|
|
22
|
-
"productName": "Kendo UI for Angular",
|
|
23
|
-
"productCode": "KENDOUIANGULAR",
|
|
24
|
-
"publishDate": 1768386646,
|
|
25
|
-
"licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
|
|
26
|
-
}
|
|
20
|
+
"friendlyName": "Gauges"
|
|
27
21
|
},
|
|
28
22
|
"peerDependencies": {
|
|
29
|
-
"@angular/animations": "
|
|
30
|
-
"@angular/common": "
|
|
31
|
-
"@angular/core": "
|
|
32
|
-
"@angular/platform-browser": "
|
|
23
|
+
"@angular/animations": "19 - 21",
|
|
24
|
+
"@angular/common": "19 - 21",
|
|
25
|
+
"@angular/core": "19 - 21",
|
|
26
|
+
"@angular/platform-browser": "19 - 21",
|
|
33
27
|
"@progress/kendo-drawing": "^1.23.1",
|
|
34
28
|
"@progress/kendo-licensing": "^1.7.0",
|
|
35
|
-
"@progress/kendo-angular-common": "
|
|
36
|
-
"@progress/kendo-angular-intl": "
|
|
37
|
-
"@progress/kendo-angular-l10n": "
|
|
29
|
+
"@progress/kendo-angular-common": "22.0.0-develop.1",
|
|
30
|
+
"@progress/kendo-angular-intl": "22.0.0-develop.1",
|
|
31
|
+
"@progress/kendo-angular-l10n": "22.0.0-develop.1",
|
|
38
32
|
"rxjs": "^6.5.3 || ^7.0.0"
|
|
39
33
|
},
|
|
40
34
|
"dependencies": {
|
|
41
35
|
"tslib": "^2.3.1",
|
|
42
|
-
"@progress/kendo-angular-schematics": "
|
|
36
|
+
"@progress/kendo-angular-schematics": "22.0.0-develop.1",
|
|
43
37
|
"@progress/kendo-charts": "2.9.0"
|
|
44
38
|
},
|
|
45
39
|
"schematics": "./schematics/collection.json",
|
|
@@ -51,8 +45,6 @@
|
|
|
51
45
|
},
|
|
52
46
|
".": {
|
|
53
47
|
"types": "./index.d.ts",
|
|
54
|
-
"esm2022": "./esm2022/progress-kendo-angular-gauges.mjs",
|
|
55
|
-
"esm": "./esm2022/progress-kendo-angular-gauges.mjs",
|
|
56
48
|
"default": "./fesm2022/progress-kendo-angular-gauges.mjs"
|
|
57
49
|
}
|
|
58
50
|
},
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { Directive, TemplateRef, Optional } from '@angular/core';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
/**
|
|
8
|
-
* Represents a directive that allows customizing the center part of the `<kendo-arcgauge>` component.
|
|
9
|
-
* Use this directive to create a center template
|
|
10
|
-
* ([more information and example]({% slug centertemplate_arcgauge %})).
|
|
11
|
-
*
|
|
12
|
-
* The template context provides access to the current ArcGauge value through the `value` and `color` fields.
|
|
13
|
-
*
|
|
14
|
-
* @example
|
|
15
|
-
* ```html
|
|
16
|
-
* <kendo-arcgauge [value]="value">
|
|
17
|
-
* <ng-template kendoArcGaugeCenterTemplate let-value="value" let-color="color">
|
|
18
|
-
* {{ value }}%
|
|
19
|
-
* </ng-template>
|
|
20
|
-
* </kendo-arcgauge>
|
|
21
|
-
* ```
|
|
22
|
-
*/
|
|
23
|
-
export class ArcCenterTemplateDirective {
|
|
24
|
-
templateRef;
|
|
25
|
-
constructor(templateRef) {
|
|
26
|
-
this.templateRef = templateRef;
|
|
27
|
-
}
|
|
28
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ArcCenterTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
29
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: ArcCenterTemplateDirective, isStandalone: true, selector: "[kendoArcGaugeCenterTemplate]", ngImport: i0 });
|
|
30
|
-
}
|
|
31
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ArcCenterTemplateDirective, decorators: [{
|
|
32
|
-
type: Directive,
|
|
33
|
-
args: [{
|
|
34
|
-
selector: '[kendoArcGaugeCenterTemplate]',
|
|
35
|
-
standalone: true
|
|
36
|
-
}]
|
|
37
|
-
}], ctorParameters: () => [{ type: i0.TemplateRef, decorators: [{
|
|
38
|
-
type: Optional
|
|
39
|
-
}] }] });
|
|
@@ -1,205 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { HostBinding, Component, NgZone, Input, ChangeDetectionStrategy, ContentChild, ViewChild, ElementRef, Renderer2, ChangeDetectorRef } from '@angular/core';
|
|
6
|
-
import { ConfigurationService, ThemeService } from '../services';
|
|
7
|
-
import { IntlService } from '@progress/kendo-angular-intl';
|
|
8
|
-
import { LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
|
|
9
|
-
import { GaugeComponent } from '../base-components';
|
|
10
|
-
import { ArcCenterTemplateDirective } from './arc-center-template.directive';
|
|
11
|
-
import { ArcGauge } from '@progress/kendo-charts';
|
|
12
|
-
import { drawDOM } from '@progress/kendo-drawing';
|
|
13
|
-
import { ResizeSensorComponent } from '@progress/kendo-angular-common';
|
|
14
|
-
import { NgTemplateOutlet } from '@angular/common';
|
|
15
|
-
import * as i0 from "@angular/core";
|
|
16
|
-
import * as i1 from "../services";
|
|
17
|
-
import * as i2 from "@progress/kendo-angular-intl";
|
|
18
|
-
import * as i3 from "@progress/kendo-angular-l10n";
|
|
19
|
-
/**
|
|
20
|
-
* Represents the [Kendo UI ArcGauge component for Angular]({% slug overview_arcgauge_gauges %}).
|
|
21
|
-
*
|
|
22
|
-
* @example
|
|
23
|
-
* ```ts
|
|
24
|
-
* import { Component } from '@angular/core';
|
|
25
|
-
*
|
|
26
|
-
* @Component({
|
|
27
|
-
* selector: 'my-app',
|
|
28
|
-
* template: `
|
|
29
|
-
* <kendo-arcgauge [value]="value" [scale]="{ max: 100 }">
|
|
30
|
-
* <ng-template kendoArcGaugeCenterTemplate let-value="value">
|
|
31
|
-
* {{ value }}%
|
|
32
|
-
* </ng-template>
|
|
33
|
-
* </kendo-arcgauge>
|
|
34
|
-
* `
|
|
35
|
-
* })
|
|
36
|
-
* class AppComponent {
|
|
37
|
-
* public value: number = 10;
|
|
38
|
-
* }
|
|
39
|
-
* ```
|
|
40
|
-
*
|
|
41
|
-
* @remarks
|
|
42
|
-
* Supported children components are: {@link ArcScaleComponent}, {@link ArcLabelsComponent}, {@link ArcGaugeAreaComponent}, {@link ColorsComponent}.
|
|
43
|
-
*/
|
|
44
|
-
export class ArcGaugeComponent extends GaugeComponent {
|
|
45
|
-
changeDetector;
|
|
46
|
-
/**
|
|
47
|
-
* Sets the value of the gauge.
|
|
48
|
-
*/
|
|
49
|
-
value;
|
|
50
|
-
/**
|
|
51
|
-
* Sets the color of the value pointer. Accepts a valid CSS color string, including hex and rgb.
|
|
52
|
-
*/
|
|
53
|
-
color;
|
|
54
|
-
/**
|
|
55
|
-
* Sets the color ranges of the value pointer.
|
|
56
|
-
*/
|
|
57
|
-
colors;
|
|
58
|
-
/**
|
|
59
|
-
* Sets the opacity of the value pointer.
|
|
60
|
-
*/
|
|
61
|
-
opacity;
|
|
62
|
-
/**
|
|
63
|
-
* Sets the scale options of the ArcGauge.
|
|
64
|
-
*/
|
|
65
|
-
scale;
|
|
66
|
-
centerTemplate;
|
|
67
|
-
labelElement;
|
|
68
|
-
className = true;
|
|
69
|
-
centerTemplateContext = {};
|
|
70
|
-
constructor(changeDetector, configurationService, themeService, intlService, localizationService, element, renderer, ngZone) {
|
|
71
|
-
super(configurationService, themeService, intlService, localizationService, element, renderer, ngZone);
|
|
72
|
-
this.changeDetector = changeDetector;
|
|
73
|
-
}
|
|
74
|
-
ngOnInit() {
|
|
75
|
-
super.ngOnInit();
|
|
76
|
-
if (this.element) {
|
|
77
|
-
this.renderer.setStyle(this.element.nativeElement, 'position', 'relative');
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
ngAfterViewChecked() {
|
|
81
|
-
super.ngAfterViewChecked();
|
|
82
|
-
if (this.labelElement && !this.centerTemplate) {
|
|
83
|
-
this.changeDetector.detectChanges();
|
|
84
|
-
}
|
|
85
|
-
else if (!this.labelElement && this.centerTemplate) {
|
|
86
|
-
this.updateCenterTemplate();
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
/**
|
|
90
|
-
* Exports the Gauge as a Drawing `Scene`.
|
|
91
|
-
*
|
|
92
|
-
* @returns A promise that resolves with the export visual.
|
|
93
|
-
*/
|
|
94
|
-
exportVisual() {
|
|
95
|
-
return drawDOM(this.element.nativeElement);
|
|
96
|
-
}
|
|
97
|
-
/**
|
|
98
|
-
* Detects the size of the container and redraws the Gauge.
|
|
99
|
-
* Resizing happens automatically unless you set the `resizeRateLimit` option to `0`.
|
|
100
|
-
*/
|
|
101
|
-
resize() {
|
|
102
|
-
super.resize();
|
|
103
|
-
this.updateCenterTemplate();
|
|
104
|
-
}
|
|
105
|
-
createInstance(element, options, theme, context) {
|
|
106
|
-
this.instance = new ArcGauge(element, options, theme, context);
|
|
107
|
-
this.updateElements();
|
|
108
|
-
}
|
|
109
|
-
updateOptions() {
|
|
110
|
-
super.updateOptions();
|
|
111
|
-
this.updateElements();
|
|
112
|
-
}
|
|
113
|
-
setValues() {
|
|
114
|
-
const value = this.configurationService.readValue();
|
|
115
|
-
this.instance.value(value);
|
|
116
|
-
this.updateCenterTemplate();
|
|
117
|
-
}
|
|
118
|
-
updateElements() {
|
|
119
|
-
this.resizeSensor.acceptSize();
|
|
120
|
-
this.updateCenterTemplate();
|
|
121
|
-
}
|
|
122
|
-
updateCenterTemplate() {
|
|
123
|
-
if (!this.instance || !this.centerTemplate) {
|
|
124
|
-
return;
|
|
125
|
-
}
|
|
126
|
-
this.centerTemplateContext.value = this.instance.value();
|
|
127
|
-
this.centerTemplateContext.color = this.instance.currentColor();
|
|
128
|
-
this.changeDetector.detectChanges();
|
|
129
|
-
this.positionLabel();
|
|
130
|
-
}
|
|
131
|
-
positionLabel() {
|
|
132
|
-
if (!this.labelElement) {
|
|
133
|
-
return;
|
|
134
|
-
}
|
|
135
|
-
const element = this.labelElement.nativeElement;
|
|
136
|
-
const width = element.offsetWidth;
|
|
137
|
-
const height = element.offsetHeight;
|
|
138
|
-
const position = this.instance.centerLabelPosition(width, height);
|
|
139
|
-
element.style.top = `${position.top}px`;
|
|
140
|
-
element.style.left = `${position.left}px`;
|
|
141
|
-
}
|
|
142
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ArcGaugeComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1.ConfigurationService }, { token: i1.ThemeService }, { token: i2.IntlService }, { token: i3.LocalizationService }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
143
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: ArcGaugeComponent, isStandalone: true, selector: "kendo-arcgauge", inputs: { value: "value", color: "color", colors: "colors", opacity: "opacity", scale: "scale" }, host: { properties: { "class.k-arcgauge": "this.className" } }, providers: [
|
|
144
|
-
ConfigurationService,
|
|
145
|
-
LocalizationService,
|
|
146
|
-
{
|
|
147
|
-
provide: L10N_PREFIX,
|
|
148
|
-
useValue: 'kendo.arcgauge'
|
|
149
|
-
}
|
|
150
|
-
], queries: [{ propertyName: "centerTemplate", first: true, predicate: ArcCenterTemplateDirective, descendants: true }], viewQueries: [{ propertyName: "labelElement", first: true, predicate: ["label"], descendants: true }], exportAs: ["kendoArcGauge"], usesInheritance: true, ngImport: i0, template: `
|
|
151
|
-
<div #surface class='k-chart-surface'></div>
|
|
152
|
-
@if (centerTemplate) {
|
|
153
|
-
<div class="k-arcgauge-label" #label>
|
|
154
|
-
<ng-template [ngTemplateOutlet]="centerTemplate.templateRef" [ngTemplateOutletContext]="centerTemplateContext"></ng-template>
|
|
155
|
-
</div>
|
|
156
|
-
}
|
|
157
|
-
<kendo-resize-sensor (resize)="onResize()" [rateLimit]="resizeRateLimit"></kendo-resize-sensor>
|
|
158
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
159
|
-
}
|
|
160
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ArcGaugeComponent, decorators: [{
|
|
161
|
-
type: Component,
|
|
162
|
-
args: [{
|
|
163
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
164
|
-
exportAs: 'kendoArcGauge',
|
|
165
|
-
providers: [
|
|
166
|
-
ConfigurationService,
|
|
167
|
-
LocalizationService,
|
|
168
|
-
{
|
|
169
|
-
provide: L10N_PREFIX,
|
|
170
|
-
useValue: 'kendo.arcgauge'
|
|
171
|
-
}
|
|
172
|
-
],
|
|
173
|
-
selector: 'kendo-arcgauge',
|
|
174
|
-
template: `
|
|
175
|
-
<div #surface class='k-chart-surface'></div>
|
|
176
|
-
@if (centerTemplate) {
|
|
177
|
-
<div class="k-arcgauge-label" #label>
|
|
178
|
-
<ng-template [ngTemplateOutlet]="centerTemplate.templateRef" [ngTemplateOutletContext]="centerTemplateContext"></ng-template>
|
|
179
|
-
</div>
|
|
180
|
-
}
|
|
181
|
-
<kendo-resize-sensor (resize)="onResize()" [rateLimit]="resizeRateLimit"></kendo-resize-sensor>
|
|
182
|
-
`,
|
|
183
|
-
standalone: true,
|
|
184
|
-
imports: [NgTemplateOutlet, ResizeSensorComponent]
|
|
185
|
-
}]
|
|
186
|
-
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i1.ConfigurationService }, { type: i1.ThemeService }, { type: i2.IntlService }, { type: i3.LocalizationService }, { type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.NgZone }], propDecorators: { value: [{
|
|
187
|
-
type: Input
|
|
188
|
-
}], color: [{
|
|
189
|
-
type: Input
|
|
190
|
-
}], colors: [{
|
|
191
|
-
type: Input
|
|
192
|
-
}], opacity: [{
|
|
193
|
-
type: Input
|
|
194
|
-
}], scale: [{
|
|
195
|
-
type: Input
|
|
196
|
-
}], centerTemplate: [{
|
|
197
|
-
type: ContentChild,
|
|
198
|
-
args: [ArcCenterTemplateDirective, { static: false }]
|
|
199
|
-
}], labelElement: [{
|
|
200
|
-
type: ViewChild,
|
|
201
|
-
args: ["label", { static: false }]
|
|
202
|
-
}], className: [{
|
|
203
|
-
type: HostBinding,
|
|
204
|
-
args: ['class.k-arcgauge']
|
|
205
|
-
}] } });
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
export { ArcGaugeComponent } from './arc-gauge.component';
|
|
6
|
-
export { ArcGaugeAreaComponent } from './gauge-area.component';
|
|
7
|
-
export { ArcScaleComponent } from './scale.component';
|
|
8
|
-
export { ArcLabelsComponent } from './labels.component';
|
|
9
|
-
export { ArcCenterTemplateDirective } from './arc-center-template.directive';
|
|
10
|
-
export { ColorsComponent } from './colors.component';
|
|
11
|
-
export { ColorComponent } from './color.component';
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { NgModule } from '@angular/core';
|
|
6
|
-
import { KENDO_ARCGAUGE } from '../directives';
|
|
7
|
-
import { ThemeService } from '../services';
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
import * as i1 from "./arc-gauge.component";
|
|
10
|
-
import * as i2 from "./arc-center-template.directive";
|
|
11
|
-
import * as i3 from "./gauge-area.component";
|
|
12
|
-
import * as i4 from "./scale.component";
|
|
13
|
-
import * as i5 from "./labels.component";
|
|
14
|
-
import * as i6 from "./colors.component";
|
|
15
|
-
import * as i7 from "./color.component";
|
|
16
|
-
// IMPORTANT: NgModule export kept for backwards compatibility
|
|
17
|
-
/**
|
|
18
|
-
* Represents the [`NgModule`](link:site.data.urls.angular['ngmodules']) definition that includes the ArcGauge component and its directives.
|
|
19
|
-
* Import the `ArcGaugeModule` into your application
|
|
20
|
-
* [root module](link:site.data.urls.angular['ngmodules']#angular-modularity) or any other sub-module
|
|
21
|
-
* that will use the ArcGauge component.
|
|
22
|
-
*
|
|
23
|
-
* @example
|
|
24
|
-
* ```typescript
|
|
25
|
-
* import { NgModule } from '@angular/core';
|
|
26
|
-
* import { BrowserModule } from '@angular/platform-browser';
|
|
27
|
-
* import { ArcGaugeModule } from '@progress/kendo-angular-gauges';
|
|
28
|
-
* import { AppComponent } from './app.component';
|
|
29
|
-
*
|
|
30
|
-
* @NgModule({
|
|
31
|
-
* bootstrap: [AppComponent],
|
|
32
|
-
* declarations: [AppComponent],
|
|
33
|
-
* imports: [BrowserModule, ArcGaugeModule]
|
|
34
|
-
* })
|
|
35
|
-
* export class AppModule { }
|
|
36
|
-
* ```
|
|
37
|
-
*/
|
|
38
|
-
export class ArcGaugeModule {
|
|
39
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ArcGaugeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
40
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: ArcGaugeModule, imports: [i1.ArcGaugeComponent, i2.ArcCenterTemplateDirective, i3.ArcGaugeAreaComponent, i4.ArcScaleComponent, i5.ArcLabelsComponent, i6.ColorsComponent, i7.ColorComponent], exports: [i1.ArcGaugeComponent, i2.ArcCenterTemplateDirective, i3.ArcGaugeAreaComponent, i4.ArcScaleComponent, i5.ArcLabelsComponent, i6.ColorsComponent, i7.ColorComponent] });
|
|
41
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ArcGaugeModule, providers: [ThemeService], imports: [i1.ArcGaugeComponent] });
|
|
42
|
-
}
|
|
43
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ArcGaugeModule, decorators: [{
|
|
44
|
-
type: NgModule,
|
|
45
|
-
args: [{
|
|
46
|
-
exports: [...KENDO_ARCGAUGE],
|
|
47
|
-
imports: [...KENDO_ARCGAUGE],
|
|
48
|
-
providers: [ThemeService]
|
|
49
|
-
}]
|
|
50
|
-
}] });
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { Component, Input } from '@angular/core';
|
|
6
|
-
import { CollectionChangesService, ConfigurationService } from '../services';
|
|
7
|
-
import { CollectionItemComponent } from '../base-components';
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
import * as i1 from "../services";
|
|
10
|
-
/**
|
|
11
|
-
* Represents the configuration options for an ArcGauge color item.
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* ```ts
|
|
15
|
-
* import { Component } from '@angular/core';
|
|
16
|
-
*
|
|
17
|
-
* @Component({
|
|
18
|
-
* selector: 'my-app',
|
|
19
|
-
* template: `
|
|
20
|
-
* <kendo-arcgauge [value]="value">
|
|
21
|
-
* <kendo-arcgauge-colors>
|
|
22
|
-
* <kendo-arcgauge-color
|
|
23
|
-
* [from]="0"
|
|
24
|
-
* [to]="50"
|
|
25
|
-
* color="green">
|
|
26
|
-
* </kendo-arcgauge-color>
|
|
27
|
-
* </kendo-arcgauge-colors>
|
|
28
|
-
* </kendo-arcgauge>
|
|
29
|
-
* `
|
|
30
|
-
* })
|
|
31
|
-
* export class AppComponent {
|
|
32
|
-
* public value: number = 25;
|
|
33
|
-
* }
|
|
34
|
-
* ```
|
|
35
|
-
*/
|
|
36
|
-
export class ColorComponent extends CollectionItemComponent {
|
|
37
|
-
/**
|
|
38
|
-
* Sets the color of the range. Accepts a valid CSS color string, including hex and rgb.
|
|
39
|
-
*/
|
|
40
|
-
color;
|
|
41
|
-
/**
|
|
42
|
-
* Sets the opacity of the range.
|
|
43
|
-
*/
|
|
44
|
-
opacity;
|
|
45
|
-
/**
|
|
46
|
-
* Sets the start value of the range.
|
|
47
|
-
*/
|
|
48
|
-
from;
|
|
49
|
-
/**
|
|
50
|
-
* Sets the end value of the range.
|
|
51
|
-
*/
|
|
52
|
-
to;
|
|
53
|
-
constructor(configurationService, collectionChangesService) {
|
|
54
|
-
super(configurationService, collectionChangesService);
|
|
55
|
-
}
|
|
56
|
-
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 });
|
|
57
|
-
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 });
|
|
58
|
-
}
|
|
59
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ColorComponent, decorators: [{
|
|
60
|
-
type: Component,
|
|
61
|
-
args: [{
|
|
62
|
-
providers: [ConfigurationService],
|
|
63
|
-
selector: 'kendo-arcgauge-color',
|
|
64
|
-
template: '',
|
|
65
|
-
standalone: true
|
|
66
|
-
}]
|
|
67
|
-
}], ctorParameters: () => [{ type: i1.ConfigurationService }, { type: i1.CollectionChangesService }], propDecorators: { color: [{
|
|
68
|
-
type: Input
|
|
69
|
-
}], opacity: [{
|
|
70
|
-
type: Input
|
|
71
|
-
}], from: [{
|
|
72
|
-
type: Input
|
|
73
|
-
}], to: [{
|
|
74
|
-
type: Input
|
|
75
|
-
}] } });
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { Component, ContentChildren, QueryList } from '@angular/core';
|
|
6
|
-
import { CollectionComponent } from '../base-components';
|
|
7
|
-
import { ColorComponent } from './color.component';
|
|
8
|
-
import { CollectionChangesService, ConfigurationService } from '../services';
|
|
9
|
-
import * as i0 from "@angular/core";
|
|
10
|
-
import * as i1 from "../services";
|
|
11
|
-
/**
|
|
12
|
-
* Represents a collection of one or more ArcGauge colors
|
|
13
|
-
* ([more information and example]({% slug colorranges_arcgauge %})).
|
|
14
|
-
*
|
|
15
|
-
* @example
|
|
16
|
-
* ```ts
|
|
17
|
-
* import { Component } from '@angular/core';
|
|
18
|
-
*
|
|
19
|
-
* @Component({
|
|
20
|
-
* selector: 'my-app',
|
|
21
|
-
* template: `
|
|
22
|
-
* <kendo-arcgauge [value]="value">
|
|
23
|
-
* <kendo-arcgauge-colors>
|
|
24
|
-
* @for (item of colors; track item) {
|
|
25
|
-
* <kendo-arcgauge-color
|
|
26
|
-
* [from]="item.from" [to]="item.to" [color]="item.color">
|
|
27
|
-
* </kendo-arcgauge-color>
|
|
28
|
-
* }
|
|
29
|
-
* </kendo-arcgauge-colors>
|
|
30
|
-
* </kendo-arcgauge>
|
|
31
|
-
* `
|
|
32
|
-
* })
|
|
33
|
-
* export class AppComponent {
|
|
34
|
-
* public value: number = 10;
|
|
35
|
-
*
|
|
36
|
-
* public colors: any[] = [{
|
|
37
|
-
* to: 25,
|
|
38
|
-
* color: '#0058e9'
|
|
39
|
-
* }, {
|
|
40
|
-
* from: 25,
|
|
41
|
-
* to: 50,
|
|
42
|
-
* color: '#37b400'
|
|
43
|
-
* }, {
|
|
44
|
-
* from: 50,
|
|
45
|
-
* to: 75,
|
|
46
|
-
* color: '#ffc000'
|
|
47
|
-
* }, {
|
|
48
|
-
* from: 75,
|
|
49
|
-
* color: '#f31700'
|
|
50
|
-
* }];
|
|
51
|
-
* }
|
|
52
|
-
* ```
|
|
53
|
-
*
|
|
54
|
-
* @remarks
|
|
55
|
-
* Supported children components are: {@link ColorComponent}.
|
|
56
|
-
*/
|
|
57
|
-
export class ColorsComponent extends CollectionComponent {
|
|
58
|
-
children;
|
|
59
|
-
constructor(configurationService, collectionChangesService) {
|
|
60
|
-
super('colors', configurationService, collectionChangesService);
|
|
61
|
-
}
|
|
62
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ColorsComponent, deps: [{ token: i1.ConfigurationService }, { token: i1.CollectionChangesService }], target: i0.ɵɵFactoryTarget.Component });
|
|
63
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: ColorsComponent, isStandalone: true, selector: "kendo-arcgauge-colors", providers: [CollectionChangesService], queries: [{ propertyName: "children", predicate: ColorComponent }], usesInheritance: true, ngImport: i0, template: '', isInline: true });
|
|
64
|
-
}
|
|
65
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ColorsComponent, decorators: [{
|
|
66
|
-
type: Component,
|
|
67
|
-
args: [{
|
|
68
|
-
providers: [CollectionChangesService],
|
|
69
|
-
selector: 'kendo-arcgauge-colors',
|
|
70
|
-
template: '',
|
|
71
|
-
standalone: true
|
|
72
|
-
}]
|
|
73
|
-
}], ctorParameters: () => [{ type: i1.ConfigurationService }, { type: i1.CollectionChangesService }], propDecorators: { children: [{
|
|
74
|
-
type: ContentChildren,
|
|
75
|
-
args: [ColorComponent]
|
|
76
|
-
}] } });
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { Component } from '@angular/core';
|
|
6
|
-
import { GaugeAreaComponent } from '../base-components';
|
|
7
|
-
import { ConfigurationService } from '../services';
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
import * as i1 from "../services";
|
|
10
|
-
/**
|
|
11
|
-
* Represents the configuration options of the ArcGauge area.
|
|
12
|
-
* Controls the entire visible area of the ArcGauge.
|
|
13
|
-
*
|
|
14
|
-
* @example
|
|
15
|
-
* ```ts
|
|
16
|
-
* import { Component } from '@angular/core';
|
|
17
|
-
*
|
|
18
|
-
* @Component({
|
|
19
|
-
* selector: 'my-app',
|
|
20
|
-
* template: `
|
|
21
|
-
* <kendo-arcgauge [value]="value">
|
|
22
|
-
* <kendo-arcgauge-area
|
|
23
|
-
* background="lightgray"
|
|
24
|
-
* [margin]="10">
|
|
25
|
-
* </kendo-arcgauge-area>
|
|
26
|
-
* </kendo-arcgauge>
|
|
27
|
-
* `
|
|
28
|
-
* })
|
|
29
|
-
* export class AppComponent {
|
|
30
|
-
* public value: number = 40;
|
|
31
|
-
* }
|
|
32
|
-
* ```
|
|
33
|
-
*/
|
|
34
|
-
export class ArcGaugeAreaComponent extends GaugeAreaComponent {
|
|
35
|
-
configurationService;
|
|
36
|
-
constructor(configurationService) {
|
|
37
|
-
super('gaugeArea', configurationService);
|
|
38
|
-
this.configurationService = configurationService;
|
|
39
|
-
}
|
|
40
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ArcGaugeAreaComponent, deps: [{ token: i1.ConfigurationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
41
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: ArcGaugeAreaComponent, isStandalone: true, selector: "kendo-arcgauge-area", usesInheritance: true, ngImport: i0, template: '', isInline: true });
|
|
42
|
-
}
|
|
43
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ArcGaugeAreaComponent, decorators: [{
|
|
44
|
-
type: Component,
|
|
45
|
-
args: [{
|
|
46
|
-
selector: 'kendo-arcgauge-area',
|
|
47
|
-
template: '',
|
|
48
|
-
standalone: true
|
|
49
|
-
}]
|
|
50
|
-
}], ctorParameters: () => [{ type: i1.ConfigurationService }] });
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { Component } from '@angular/core';
|
|
6
|
-
import { RadialLabelsComponent } from '../radial-gauge/labels.component';
|
|
7
|
-
import { ConfigurationService } from '../services';
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
import * as i1 from "../services";
|
|
10
|
-
/**
|
|
11
|
-
* Represents the configuration options for the scale labels of the ArcGauge.
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* ```ts
|
|
15
|
-
* import { Component } from '@angular/core';
|
|
16
|
-
*
|
|
17
|
-
* @Component({
|
|
18
|
-
* selector: 'my-app',
|
|
19
|
-
* template: `
|
|
20
|
-
* <kendo-arcgauge [value]="value">
|
|
21
|
-
* <kendo-arcgauge-scale>
|
|
22
|
-
* <kendo-arcgauge-scale-labels
|
|
23
|
-
* color="blue"
|
|
24
|
-
* font="12px Arial">
|
|
25
|
-
* </kendo-arcgauge-scale-labels>
|
|
26
|
-
* </kendo-arcgauge-scale>
|
|
27
|
-
* </kendo-arcgauge>
|
|
28
|
-
* `
|
|
29
|
-
* })
|
|
30
|
-
* export class AppComponent {
|
|
31
|
-
* public value: number = 50;
|
|
32
|
-
* }
|
|
33
|
-
* ```
|
|
34
|
-
*/
|
|
35
|
-
export class ArcLabelsComponent extends RadialLabelsComponent {
|
|
36
|
-
configurationService;
|
|
37
|
-
constructor(configurationService) {
|
|
38
|
-
super(configurationService);
|
|
39
|
-
this.configurationService = configurationService;
|
|
40
|
-
configurationService.set(`${this.key}.visible`, true);
|
|
41
|
-
}
|
|
42
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ArcLabelsComponent, deps: [{ token: i1.ConfigurationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
43
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: ArcLabelsComponent, isStandalone: true, selector: "kendo-arcgauge-scale-labels", usesInheritance: true, ngImport: i0, template: '', isInline: true });
|
|
44
|
-
}
|
|
45
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ArcLabelsComponent, decorators: [{
|
|
46
|
-
type: Component,
|
|
47
|
-
args: [{
|
|
48
|
-
selector: 'kendo-arcgauge-scale-labels',
|
|
49
|
-
template: '',
|
|
50
|
-
standalone: true
|
|
51
|
-
}]
|
|
52
|
-
}], ctorParameters: () => [{ type: i1.ConfigurationService }] });
|