@progress/kendo-angular-gauges 19.1.2-develop.3 → 19.1.2-develop.5
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/arc-gauge/arc-center-template.directive.d.ts +10 -20
- package/arc-gauge/arc-gauge.component.d.ts +12 -10
- package/arc-gauge/arc-gauge.module.d.ts +5 -6
- package/arc-gauge/color.component.d.ts +36 -1
- package/arc-gauge/colors.component.d.ts +5 -3
- package/arc-gauge/gauge-area.component.d.ts +22 -2
- package/arc-gauge/labels.component.d.ts +23 -1
- package/arc-gauge/scale.component.d.ts +40 -1
- package/circular-gauge/center-template.directive.d.ts +9 -20
- package/circular-gauge/circular-gauge.component.d.ts +4 -2
- package/circular-gauge/circular-gauge.module.d.ts +6 -7
- package/circular-gauge/gauge-area.component.d.ts +16 -2
- package/circular-gauge/labels.component.d.ts +23 -1
- package/circular-gauge/scale.component.d.ts +18 -1
- package/directives.d.ts +5 -5
- package/esm2022/arc-gauge/arc-center-template.directive.mjs +10 -20
- package/esm2022/arc-gauge/arc-gauge.component.mjs +12 -10
- package/esm2022/arc-gauge/arc-gauge.module.mjs +5 -6
- package/esm2022/arc-gauge/color.component.mjs +36 -1
- package/esm2022/arc-gauge/colors.component.mjs +5 -3
- package/esm2022/arc-gauge/gauge-area.component.mjs +22 -2
- package/esm2022/arc-gauge/labels.component.mjs +23 -1
- package/esm2022/arc-gauge/scale.component.mjs +40 -1
- package/esm2022/circular-gauge/center-template.directive.mjs +9 -20
- package/esm2022/circular-gauge/circular-gauge.component.mjs +4 -2
- package/esm2022/circular-gauge/circular-gauge.module.mjs +6 -7
- package/esm2022/circular-gauge/gauge-area.component.mjs +16 -2
- package/esm2022/circular-gauge/labels.component.mjs +23 -1
- package/esm2022/circular-gauge/scale.component.mjs +18 -1
- package/esm2022/directives.mjs +5 -5
- package/esm2022/gauges.module.mjs +3 -3
- package/esm2022/linear-gauge/gauge-area.component.mjs +10 -2
- package/esm2022/linear-gauge/labels.component.mjs +11 -1
- package/esm2022/linear-gauge/linear-gauge.component.mjs +6 -4
- package/esm2022/linear-gauge/linear-gauge.module.mjs +4 -4
- package/esm2022/linear-gauge/pointer.component.mjs +32 -1
- package/esm2022/linear-gauge/pointers.component.mjs +5 -3
- package/esm2022/linear-gauge/range.component.mjs +13 -1
- package/esm2022/linear-gauge/ranges.component.mjs +8 -3
- package/esm2022/linear-gauge/scale.component.mjs +28 -1
- package/esm2022/package-metadata.mjs +2 -2
- package/esm2022/radial-gauge/gauge-area.component.mjs +17 -2
- package/esm2022/radial-gauge/labels.component.mjs +14 -1
- package/esm2022/radial-gauge/pointer.component.mjs +23 -1
- package/esm2022/radial-gauge/pointers.component.mjs +8 -3
- package/esm2022/radial-gauge/radial-gauge.component.mjs +9 -5
- package/esm2022/radial-gauge/radial-gauge.module.mjs +5 -5
- package/esm2022/radial-gauge/range.component.mjs +13 -1
- package/esm2022/radial-gauge/ranges.component.mjs +8 -3
- package/esm2022/radial-gauge/scale.component.mjs +27 -1
- package/fesm2022/progress-kendo-angular-gauges.mjs +480 -129
- package/gauges.module.d.ts +3 -3
- package/linear-gauge/gauge-area.component.d.ts +10 -2
- package/linear-gauge/labels.component.d.ts +11 -1
- package/linear-gauge/linear-gauge.component.d.ts +6 -4
- package/linear-gauge/linear-gauge.module.d.ts +4 -4
- package/linear-gauge/pointer.component.d.ts +32 -1
- package/linear-gauge/pointers.component.d.ts +5 -3
- package/linear-gauge/range.component.d.ts +13 -1
- package/linear-gauge/ranges.component.d.ts +8 -3
- package/linear-gauge/scale.component.d.ts +28 -1
- package/package.json +6 -6
- package/radial-gauge/gauge-area.component.d.ts +17 -2
- package/radial-gauge/labels.component.d.ts +14 -1
- package/radial-gauge/pointer.component.d.ts +23 -1
- package/radial-gauge/pointers.component.d.ts +8 -3
- package/radial-gauge/radial-gauge.component.d.ts +9 -5
- package/radial-gauge/radial-gauge.module.d.ts +5 -5
- package/radial-gauge/range.component.d.ts +13 -1
- package/radial-gauge/ranges.component.d.ts +8 -3
- package/radial-gauge/scale.component.d.ts +27 -1
- package/types/arc-scale.interface.d.ts +8 -8
- package/types/border.interface.d.ts +4 -4
- package/types/cap.interface.d.ts +3 -3
- package/types/circular-gauge-scale.interface.d.ts +1 -1
- package/types/color-range.interface.d.ts +5 -5
- package/types/dash-type.interface.d.ts +1 -1
- package/types/gauge-area.interface.d.ts +7 -7
- package/types/labels.interface.d.ts +10 -10
- package/types/line-cap.d.ts +1 -1
- package/types/line.interface.d.ts +5 -5
- package/types/linear-pointer-shape.d.ts +1 -1
- package/types/linear-pointer.interface.d.ts +9 -9
- package/types/linear-scale.interface.d.ts +5 -5
- package/types/margin.interface.d.ts +5 -5
- package/types/padding.interface.d.ts +5 -5
- package/types/radial-label-position.d.ts +1 -1
- package/types/radial-labels.interface.d.ts +5 -1
- package/types/radial-pointer.interface.d.ts +7 -7
- package/types/radial-scale.interface.d.ts +8 -8
- package/types/range.interface.d.ts +5 -5
- package/types/scale.interface.d.ts +10 -10
- package/types/ticks.interface.d.ts +5 -5
|
@@ -15,25 +15,24 @@ import * as i6 from "./colors.component";
|
|
|
15
15
|
import * as i7 from "./color.component";
|
|
16
16
|
// IMPORTANT: NgModule export kept for backwards compatibility
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
19
|
-
*
|
|
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
20
|
* [root module](link:site.data.urls.angular['ngmodules']#angular-modularity) or any other sub-module
|
|
21
21
|
* that will use the ArcGauge component.
|
|
22
22
|
*
|
|
23
23
|
* @example
|
|
24
|
-
* ```
|
|
24
|
+
* ```typescript
|
|
25
25
|
* import { NgModule } from '@angular/core';
|
|
26
26
|
* import { BrowserModule } from '@angular/platform-browser';
|
|
27
27
|
* import { ArcGaugeModule } from '@progress/kendo-angular-gauges';
|
|
28
28
|
* import { AppComponent } from './app.component';
|
|
29
29
|
*
|
|
30
|
-
*
|
|
30
|
+
* @NgModule({
|
|
31
31
|
* bootstrap: [AppComponent],
|
|
32
32
|
* declarations: [AppComponent],
|
|
33
33
|
* imports: [BrowserModule, ArcGaugeModule]
|
|
34
34
|
* })
|
|
35
|
-
* export class AppModule {
|
|
36
|
-
* }
|
|
35
|
+
* export class AppModule { }
|
|
37
36
|
* ```
|
|
38
37
|
*/
|
|
39
38
|
export class ArcGaugeModule {
|
|
@@ -8,12 +8,47 @@ import { CollectionItemComponent } from '../base-components';
|
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
import * as i1 from "../services";
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
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
|
+
* ```
|
|
12
35
|
*/
|
|
13
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
|
+
*/
|
|
14
40
|
color;
|
|
41
|
+
/**
|
|
42
|
+
* Sets the opacity of the range.
|
|
43
|
+
*/
|
|
15
44
|
opacity;
|
|
45
|
+
/**
|
|
46
|
+
* Sets the start value of the range.
|
|
47
|
+
*/
|
|
16
48
|
from;
|
|
49
|
+
/**
|
|
50
|
+
* Sets the end value of the range.
|
|
51
|
+
*/
|
|
17
52
|
to;
|
|
18
53
|
constructor(configurationService, collectionChangesService) {
|
|
19
54
|
super(configurationService, collectionChangesService);
|
|
@@ -9,14 +9,14 @@ import { CollectionChangesService, ConfigurationService } from '../services';
|
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
10
|
import * as i1 from "../services";
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* Represents a collection of one or more ArcGauge colors
|
|
13
13
|
* ([more information and example]({% slug colorranges_arcgauge %})).
|
|
14
14
|
*
|
|
15
15
|
* @example
|
|
16
16
|
* ```ts
|
|
17
17
|
* import { Component } from '@angular/core';
|
|
18
18
|
*
|
|
19
|
-
*
|
|
19
|
+
* @Component({
|
|
20
20
|
* selector: 'my-app',
|
|
21
21
|
* template: `
|
|
22
22
|
* <kendo-arcgauge [value]="value">
|
|
@@ -47,8 +47,10 @@ import * as i1 from "../services";
|
|
|
47
47
|
* color: '#f31700'
|
|
48
48
|
* }];
|
|
49
49
|
* }
|
|
50
|
-
*
|
|
51
50
|
* ```
|
|
51
|
+
*
|
|
52
|
+
* @remarks
|
|
53
|
+
* Supported children components are: {@link ColorComponent}.
|
|
52
54
|
*/
|
|
53
55
|
export class ColorsComponent extends CollectionComponent {
|
|
54
56
|
children;
|
|
@@ -8,8 +8,28 @@ import { ConfigurationService } from '../services';
|
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
import * as i1 from "../services";
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
12
|
-
*
|
|
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
|
+
* ```
|
|
13
33
|
*/
|
|
14
34
|
export class ArcGaugeAreaComponent extends GaugeAreaComponent {
|
|
15
35
|
configurationService;
|
|
@@ -8,7 +8,29 @@ import { ConfigurationService } from '../services';
|
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
import * as i1 from "../services";
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
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
|
+
* ```
|
|
12
34
|
*/
|
|
13
35
|
export class ArcLabelsComponent extends RadialLabelsComponent {
|
|
14
36
|
configurationService;
|
|
@@ -8,15 +8,54 @@ import { ConfigurationService } from '../services';
|
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
import * as i1 from "../services";
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* Represents the configuration options for the scale of the ArcGauge
|
|
12
12
|
* ([see example]({% slug scaleoptions_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-scale
|
|
23
|
+
* [startAngle]="-90"
|
|
24
|
+
* [endAngle]="90"
|
|
25
|
+
* [rangeDistance]="10">
|
|
26
|
+
* </kendo-arcgauge-scale>
|
|
27
|
+
* </kendo-arcgauge>
|
|
28
|
+
* `
|
|
29
|
+
* })
|
|
30
|
+
* export class AppComponent {
|
|
31
|
+
* public value: number = 30;
|
|
32
|
+
* }
|
|
33
|
+
* ```
|
|
34
|
+
*
|
|
35
|
+
* @remarks
|
|
36
|
+
* Supported children components are: {@link ArcLabelsComponent}
|
|
13
37
|
*/
|
|
14
38
|
export class ArcScaleComponent extends ScaleComponent {
|
|
15
39
|
configurationService;
|
|
40
|
+
/**
|
|
41
|
+
* Sets the scale labels configuration.
|
|
42
|
+
*/
|
|
16
43
|
labels;
|
|
44
|
+
/**
|
|
45
|
+
* Sets the distance between the scale ranges in pixels.
|
|
46
|
+
*/
|
|
17
47
|
rangeDistance;
|
|
48
|
+
/**
|
|
49
|
+
* Sets the line cap style for the scale ranges.
|
|
50
|
+
*/
|
|
18
51
|
rangeLineCap;
|
|
52
|
+
/**
|
|
53
|
+
* Sets the start angle of the Gauge in degrees.
|
|
54
|
+
*/
|
|
19
55
|
startAngle;
|
|
56
|
+
/**
|
|
57
|
+
* Sets the end angle of the Gauge in degrees.
|
|
58
|
+
*/
|
|
20
59
|
endAngle;
|
|
21
60
|
constructor(configurationService) {
|
|
22
61
|
super('scale', configurationService);
|
|
@@ -5,29 +5,18 @@
|
|
|
5
5
|
import { Directive, TemplateRef, Optional } from '@angular/core';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
9
|
-
* within the `<kendo-circulargauge>` component which will be used for the center template
|
|
8
|
+
* Represents a directive that allows customizing the center part of the `<kendo-circulargauge>` component
|
|
10
9
|
* ([more information and example]({% slug centertemplate_circulargauge %})).
|
|
11
10
|
*
|
|
12
|
-
*
|
|
13
|
-
* ```ts
|
|
14
|
-
* import { Component } from '@angular/core';
|
|
15
|
-
*
|
|
16
|
-
* _@Component({
|
|
17
|
-
* selector: 'my-app',
|
|
18
|
-
* template: `
|
|
19
|
-
* <kendo-circulargauge [value]="value">
|
|
20
|
-
* <ng-template kendoCircularGaugeCenterTemplate let-value="value">
|
|
21
|
-
* {{ value }}%
|
|
22
|
-
* </ng-template>
|
|
23
|
-
* </kendo-circulargauge>
|
|
24
|
-
*
|
|
25
|
-
* `
|
|
26
|
-
* })
|
|
27
|
-
* export class AppComponent {
|
|
28
|
-
* public value: number = 10;
|
|
29
|
-
* }
|
|
11
|
+
* The template context provides access to the current CircularGauge value through the `value` field.
|
|
30
12
|
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```html
|
|
15
|
+
* <kendo-circulargauge [value]="value">
|
|
16
|
+
* <ng-template kendoCircularGaugeCenterTemplate let-value="value">
|
|
17
|
+
* { value }}%
|
|
18
|
+
* </ng-template>
|
|
19
|
+
* </kendo-circulargauge>
|
|
31
20
|
* ```
|
|
32
21
|
*/
|
|
33
22
|
export class CircularGaugeCenterTemplateDirective {
|
|
@@ -31,12 +31,14 @@ import * as i0 from "@angular/core";
|
|
|
31
31
|
* class AppComponent {
|
|
32
32
|
* public value: number = 10;
|
|
33
33
|
* }
|
|
34
|
-
*
|
|
35
34
|
* ```
|
|
35
|
+
*
|
|
36
|
+
* @remarks
|
|
37
|
+
* Supported children components are: {@link CircularGaugeScaleComponent}, {@link CircularGaugeLabelsComponent}, {@link CircularGaugeAreaComponent}.
|
|
36
38
|
*/
|
|
37
39
|
export class CircularGaugeComponent extends ArcGaugeComponent {
|
|
38
40
|
/**
|
|
39
|
-
*
|
|
41
|
+
* Specifies the scale options of the Gauge.
|
|
40
42
|
*/
|
|
41
43
|
scale;
|
|
42
44
|
centerTemplate;
|
|
@@ -13,25 +13,24 @@ import * as i4 from "./scale.component";
|
|
|
13
13
|
import * as i5 from "./labels.component";
|
|
14
14
|
// IMPORTANT: NgModule export kept for backwards compatibility
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
17
|
-
*
|
|
16
|
+
* Represents the [`NgModule`](link:site.data.urls.angular['ngmodules']) definition that includes the CircularGauge component and its directives.
|
|
17
|
+
* Import the `CircularGaugeModule` into your application
|
|
18
18
|
* [root module](link:site.data.urls.angular['ngmodules']#angular-modularity) or any other sub-module
|
|
19
|
-
* that
|
|
19
|
+
* that uses the CircularGauge component.
|
|
20
20
|
*
|
|
21
21
|
* @example
|
|
22
|
-
* ```ts
|
|
22
|
+
* ```ts
|
|
23
23
|
* import { NgModule } from '@angular/core';
|
|
24
24
|
* import { BrowserModule } from '@angular/platform-browser';
|
|
25
25
|
* import { CircularGaugeModule } from '@progress/kendo-angular-gauges';
|
|
26
26
|
* import { AppComponent } from './app.component';
|
|
27
27
|
*
|
|
28
|
-
*
|
|
28
|
+
* @NgModule({
|
|
29
29
|
* bootstrap: [AppComponent],
|
|
30
30
|
* declarations: [AppComponent],
|
|
31
31
|
* imports: [BrowserModule, CircularGaugeModule]
|
|
32
32
|
* })
|
|
33
|
-
* export class AppModule {
|
|
34
|
-
* }
|
|
33
|
+
* export class AppModule { }
|
|
35
34
|
* ```
|
|
36
35
|
*/
|
|
37
36
|
export class CircularGaugeModule {
|
|
@@ -6,8 +6,22 @@ import { Component } from '@angular/core';
|
|
|
6
6
|
import { ArcGaugeAreaComponent } from '../arc-gauge/gauge-area.component';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
10
|
-
*
|
|
9
|
+
* Represents the configuration options of the Circular Gauge area.
|
|
10
|
+
* Sets up the entire visible area of the CircularGauge.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```typescript
|
|
14
|
+
* @Component({
|
|
15
|
+
* selector: 'my-app',
|
|
16
|
+
* template: `
|
|
17
|
+
* <kendo-circulargauge>
|
|
18
|
+
* <kendo-circulargauge-area background="lightblue" margin="10">
|
|
19
|
+
* </kendo-circulargauge-area>
|
|
20
|
+
* </kendo-circulargauge>
|
|
21
|
+
* `
|
|
22
|
+
* })
|
|
23
|
+
* export class AppComponent { }
|
|
24
|
+
* ```
|
|
11
25
|
*/
|
|
12
26
|
export class CircularGaugeAreaComponent extends ArcGaugeAreaComponent {
|
|
13
27
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CircularGaugeAreaComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
@@ -6,7 +6,29 @@ import { Component } from '@angular/core';
|
|
|
6
6
|
import { ArcLabelsComponent } from '../arc-gauge/labels.component';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Represents the configuration options for the scale labels of the Circular Gauge.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* import { Component } from '@angular/core';
|
|
14
|
+
*
|
|
15
|
+
* @Component({
|
|
16
|
+
* selector: 'my-app',
|
|
17
|
+
* template: `
|
|
18
|
+
* <kendo-circulargauge [value]="value">
|
|
19
|
+
* <kendo-circulargauge-scale>
|
|
20
|
+
* <kendo-circulargauge-scale-labels
|
|
21
|
+
* color="blue"
|
|
22
|
+
* font="12px Arial">
|
|
23
|
+
* </kendo-circulargauge-scale-labels>
|
|
24
|
+
* </kendo-circulargauge-scale>
|
|
25
|
+
* </kendo-circulargauge>
|
|
26
|
+
* `
|
|
27
|
+
* })
|
|
28
|
+
* export class AppComponent {
|
|
29
|
+
* public value: number = 75;
|
|
30
|
+
* }
|
|
31
|
+
* ```
|
|
10
32
|
*/
|
|
11
33
|
export class CircularGaugeLabelsComponent extends ArcLabelsComponent {
|
|
12
34
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CircularGaugeLabelsComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
@@ -6,8 +6,25 @@ import { Component } from '@angular/core';
|
|
|
6
6
|
import { ArcScaleComponent } from '../arc-gauge/scale.component';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Represents the configuration options for the scale of the Circular Gauge
|
|
10
10
|
* ([see example]({% slug scaleoptions_circulargauge %})).
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```typescript
|
|
14
|
+
* @Component({
|
|
15
|
+
* selector: 'my-app',
|
|
16
|
+
* template: `
|
|
17
|
+
* <kendo-circulargauge>
|
|
18
|
+
* <kendo-circulargauge-scale [min]="0" [max]="100">
|
|
19
|
+
* </kendo-circulargauge-scale>
|
|
20
|
+
* </kendo-circulargauge>
|
|
21
|
+
* `
|
|
22
|
+
* })
|
|
23
|
+
* class AppComponent { }
|
|
24
|
+
* ```
|
|
25
|
+
*
|
|
26
|
+
* @remarks
|
|
27
|
+
* Supported children components are: {@link CircularGaugeLabelsComponent}
|
|
11
28
|
*/
|
|
12
29
|
export class CircularGaugeScaleComponent extends ArcScaleComponent {
|
|
13
30
|
/**
|
package/esm2022/directives.mjs
CHANGED
|
@@ -31,7 +31,7 @@ import { RadialRangeComponent } from "./radial-gauge/range.component";
|
|
|
31
31
|
import { RadialRangesComponent } from "./radial-gauge/ranges.component";
|
|
32
32
|
import { RadialScaleComponent } from "./radial-gauge/scale.component";
|
|
33
33
|
/**
|
|
34
|
-
*
|
|
34
|
+
* Use this utility array to access all ArcGauge-related components and directives in a standalone Angular component.
|
|
35
35
|
*/
|
|
36
36
|
export const KENDO_ARCGAUGE = [
|
|
37
37
|
ArcGaugeComponent,
|
|
@@ -43,7 +43,7 @@ export const KENDO_ARCGAUGE = [
|
|
|
43
43
|
ColorComponent
|
|
44
44
|
];
|
|
45
45
|
/**
|
|
46
|
-
*
|
|
46
|
+
* Use this utility array to access all CircularGauge-related components and directives in a standalone Angular component.
|
|
47
47
|
*/
|
|
48
48
|
export const KENDO_CIRCULARGAUGE = [
|
|
49
49
|
CircularGaugeComponent,
|
|
@@ -53,7 +53,7 @@ export const KENDO_CIRCULARGAUGE = [
|
|
|
53
53
|
CircularGaugeLabelsComponent
|
|
54
54
|
];
|
|
55
55
|
/**
|
|
56
|
-
*
|
|
56
|
+
* Use this utility array to access all LinearGauge-related components and directives in a standalone Angular component.
|
|
57
57
|
*/
|
|
58
58
|
export const KENDO_LINEARGAUGE = [
|
|
59
59
|
LinearGaugeComponent,
|
|
@@ -66,7 +66,7 @@ export const KENDO_LINEARGAUGE = [
|
|
|
66
66
|
LinearRangesComponent
|
|
67
67
|
];
|
|
68
68
|
/**
|
|
69
|
-
*
|
|
69
|
+
* Use this utility array to access all RadialGauge-related components and directives in a standalone Angular component.
|
|
70
70
|
*/
|
|
71
71
|
export const KENDO_RADIALGAUGE = [
|
|
72
72
|
RadialGaugeComponent,
|
|
@@ -79,7 +79,7 @@ export const KENDO_RADIALGAUGE = [
|
|
|
79
79
|
RadialRangesComponent
|
|
80
80
|
];
|
|
81
81
|
/**
|
|
82
|
-
*
|
|
82
|
+
* Use this utility array to access all `@progress/kendo-angular-gauges`-related components and directives in a standalone Angular component.
|
|
83
83
|
*/
|
|
84
84
|
export const KENDO_GAUGES = [
|
|
85
85
|
...KENDO_ARCGAUGE,
|
|
@@ -36,9 +36,9 @@ import * as i27 from "./radial-gauge/range.component";
|
|
|
36
36
|
import * as i28 from "./radial-gauge/ranges.component";
|
|
37
37
|
// IMPORTANT: NgModule export kept for backwards compatibility
|
|
38
38
|
/**
|
|
39
|
-
*
|
|
39
|
+
* Represents the [NgModule](link:site.data.urls.angular['ngmodules']) definition that includes all Gauge components and directives.
|
|
40
40
|
*
|
|
41
|
-
*
|
|
41
|
+
* Import the `GaugesModule` into your application
|
|
42
42
|
* [root module](link:site.data.urls.angular['ngmodules']#angular-modularity) or any other sub-module
|
|
43
43
|
* that will use the Gauge components.
|
|
44
44
|
*
|
|
@@ -46,7 +46,7 @@ import * as i28 from "./radial-gauge/ranges.component";
|
|
|
46
46
|
* ```ts-no-run
|
|
47
47
|
* import { NgModule } from '@angular/core';
|
|
48
48
|
* import { BrowserModule } from '@angular/platform-browser';
|
|
49
|
-
* import { GaugesModule } from '@progress/kendo-angular-
|
|
49
|
+
* import { GaugesModule } from '@progress/kendo-angular-gauges';
|
|
50
50
|
* import { AppComponent } from './app.component';
|
|
51
51
|
*
|
|
52
52
|
* _@NgModule({
|
|
@@ -8,8 +8,16 @@ import { ConfigurationService } from '../services';
|
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
import * as i1 from "../services";
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
12
|
-
*
|
|
11
|
+
* Represents the configuration options for the LinearGauge area.
|
|
12
|
+
* This component controls the entire visible area of the LinearGauge.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```html
|
|
16
|
+
* <kendo-lineargauge>
|
|
17
|
+
* <kendo-lineargauge-area background="lightblue" [border]="{ width: 2 }">
|
|
18
|
+
* </kendo-lineargauge-area>
|
|
19
|
+
* </kendo-lineargauge>
|
|
20
|
+
* ```
|
|
13
21
|
*/
|
|
14
22
|
export class LinearGaugeAreaComponent extends GaugeAreaComponent {
|
|
15
23
|
configurationService;
|
|
@@ -8,7 +8,17 @@ import { ConfigurationService } from '../services';
|
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
import * as i1 from "../services";
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* Represents the configuration options for the LinearGauge scale labels.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```html
|
|
15
|
+
* <kendo-lineargauge>
|
|
16
|
+
* <kendo-lineargauge-scale>
|
|
17
|
+
* <kendo-lineargauge-scale-labels [visible]="true" [format]="'N0'">
|
|
18
|
+
* </kendo-lineargauge-scale-labels>
|
|
19
|
+
* </kendo-lineargauge-scale>
|
|
20
|
+
* </kendo-lineargauge>
|
|
21
|
+
* ```
|
|
12
22
|
*/
|
|
13
23
|
export class LinearLabelsComponent extends LabelsComponent {
|
|
14
24
|
configurationService;
|
|
@@ -20,7 +20,7 @@ import * as i3 from "@progress/kendo-angular-l10n";
|
|
|
20
20
|
* ```ts
|
|
21
21
|
* import { Component } from '@angular/core';
|
|
22
22
|
*
|
|
23
|
-
*
|
|
23
|
+
* _Component({
|
|
24
24
|
* selector: 'my-app',
|
|
25
25
|
* template: `
|
|
26
26
|
* <kendo-lineargauge [pointer]="{ value: value }">
|
|
@@ -30,16 +30,18 @@ import * as i3 from "@progress/kendo-angular-l10n";
|
|
|
30
30
|
* class AppComponent {
|
|
31
31
|
* public value: number = 10;
|
|
32
32
|
* }
|
|
33
|
-
*
|
|
34
33
|
* ```
|
|
34
|
+
*
|
|
35
|
+
* @remarks
|
|
36
|
+
* Supported children components are: {@link LinearScaleComponent}, {@link LinearLabelsComponent}, {@link LinearGaugeAreaComponent}, {@link LinearPointersComponent}, {@link LinearRangesComponent}.
|
|
35
37
|
*/
|
|
36
38
|
export class LinearGaugeComponent extends GaugeComponent {
|
|
37
39
|
/**
|
|
38
|
-
*
|
|
40
|
+
* Configures the pointers of the LinearGauge.
|
|
39
41
|
*/
|
|
40
42
|
pointer;
|
|
41
43
|
/**
|
|
42
|
-
*
|
|
44
|
+
* Configures the scale of the LinearGauge.
|
|
43
45
|
*/
|
|
44
46
|
scale;
|
|
45
47
|
constructor(configurationService, themeService, intlService, localizationService, element, renderer, ngZone) {
|
|
@@ -16,19 +16,19 @@ import * as i7 from "./range.component";
|
|
|
16
16
|
import * as i8 from "./ranges.component";
|
|
17
17
|
// IMPORTANT: NgModule export kept for backwards compatibility
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
20
|
-
*
|
|
19
|
+
* Represents the [NgModule](link:site.data.urls.angular['ngmodules']) definition that includes the LinearGauge component and its directives.
|
|
20
|
+
* Import the `LinearGaugeModule` into your application
|
|
21
21
|
* [root module](link:site.data.urls.angular['ngmodules']#angular-modularity) or any other sub-module
|
|
22
22
|
* that will use the LinearGauge component.
|
|
23
23
|
*
|
|
24
24
|
* @example
|
|
25
|
-
* ```ts
|
|
25
|
+
* ```ts
|
|
26
26
|
* import { NgModule } from '@angular/core';
|
|
27
27
|
* import { BrowserModule } from '@angular/platform-browser';
|
|
28
28
|
* import { LinearGaugeModule } from '@progress/kendo-angular-gauges';
|
|
29
29
|
* import { AppComponent } from './app.component';
|
|
30
30
|
*
|
|
31
|
-
*
|
|
31
|
+
* @NgModule({
|
|
32
32
|
* bootstrap: [AppComponent],
|
|
33
33
|
* declarations: [AppComponent],
|
|
34
34
|
* imports: [BrowserModule, LinearGaugeModule]
|
|
@@ -8,15 +8,46 @@ import { CollectionItemComponent } from '../base-components';
|
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
import * as i1 from "../services";
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* Represents the configuration options for a pointer item of a LinearGauge.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```html
|
|
15
|
+
* <kendo-lineargauge>
|
|
16
|
+
* <kendo-lineargauge-pointers>
|
|
17
|
+
* <kendo-lineargauge-pointer [value]="35" color="#ff4500" shape="barIndicator">
|
|
18
|
+
* </kendo-lineargauge-pointer>
|
|
19
|
+
* </kendo-lineargauge-pointers>
|
|
20
|
+
* </kendo-lineargauge>
|
|
21
|
+
* ```
|
|
12
22
|
*/
|
|
13
23
|
export class LinearPointerComponent extends CollectionItemComponent {
|
|
24
|
+
/**
|
|
25
|
+
* Configures the border settings of the pointer.
|
|
26
|
+
*/
|
|
14
27
|
border;
|
|
28
|
+
/**
|
|
29
|
+
* Specifies the color of the pointer.
|
|
30
|
+
*/
|
|
15
31
|
color;
|
|
32
|
+
/**
|
|
33
|
+
* Sets the margin of the pointer. You can set this option to a number or an object with specific margin values.
|
|
34
|
+
*/
|
|
16
35
|
margin;
|
|
36
|
+
/**
|
|
37
|
+
* Controls the transparency of the pointer. The value ranges from 0 (transparent) to 1 (opaque).
|
|
38
|
+
*/
|
|
17
39
|
opacity;
|
|
40
|
+
/**
|
|
41
|
+
* Defines the shape of the pointer.
|
|
42
|
+
*/
|
|
18
43
|
shape;
|
|
44
|
+
/**
|
|
45
|
+
* Sets the size of the pointer in pixels.
|
|
46
|
+
*/
|
|
19
47
|
size;
|
|
48
|
+
/**
|
|
49
|
+
* Specifies the value that the pointer displays on the scale.
|
|
50
|
+
*/
|
|
20
51
|
value;
|
|
21
52
|
constructor(configurationService, collectionChangesService) {
|
|
22
53
|
super(configurationService, collectionChangesService);
|
|
@@ -9,14 +9,14 @@ import { CollectionChangesService, ConfigurationService } from '../services';
|
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
10
|
import * as i1 from "../services";
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* Represents a collection of one or more LinearGauge pointers
|
|
13
13
|
* ([more information]({% slug multiplepointers_lineargauge %})).
|
|
14
14
|
*
|
|
15
15
|
* @example
|
|
16
16
|
* ```ts
|
|
17
17
|
* import { Component } from '@angular/core';
|
|
18
18
|
*
|
|
19
|
-
*
|
|
19
|
+
* @Component({
|
|
20
20
|
* selector: 'my-app',
|
|
21
21
|
* template: `
|
|
22
22
|
* <kendo-lineargauge>
|
|
@@ -40,8 +40,10 @@ import * as i1 from "../services";
|
|
|
40
40
|
* color: '#8b0000'
|
|
41
41
|
* }];
|
|
42
42
|
* }
|
|
43
|
-
*
|
|
44
43
|
* ```
|
|
44
|
+
*
|
|
45
|
+
* @remarks
|
|
46
|
+
* Supported children components are: {@link LinearPointerComponent}
|
|
45
47
|
*/
|
|
46
48
|
export class LinearPointersComponent extends CollectionComponent {
|
|
47
49
|
children;
|
|
@@ -8,7 +8,19 @@ import { RangeComponent } from '../base-components';
|
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
import * as i1 from "../services";
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* Represents the configuration options for a scale range item of a LinearGauge.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```html
|
|
15
|
+
* <kendo-lineargauge>
|
|
16
|
+
* <kendo-lineargauge-scale>
|
|
17
|
+
* <kendo-lineargauge-scale-ranges>
|
|
18
|
+
* <kendo-lineargauge-scale-range *ngFor="let range of ranges" [from]="range.from" [to]="range.to" [color]="range.color">
|
|
19
|
+
* </kendo-lineargauge-scale-range>
|
|
20
|
+
* </kendo-lineargauge-scale-ranges>
|
|
21
|
+
* </kendo-lineargauge-scale>
|
|
22
|
+
* </kendo-lineargauge>
|
|
23
|
+
* ```
|
|
12
24
|
*/
|
|
13
25
|
export class LinearRangeComponent extends RangeComponent {
|
|
14
26
|
constructor(configurationService, collectionChangesService) {
|