@progress/kendo-angular-progressbar 19.1.2-develop.4 → 19.1.2-develop.6
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/chunk/chunk-progressbar.component.d.ts +26 -18
- package/circularprogressbar/center-template.directive.d.ts +10 -1
- package/circularprogressbar/circular-progressbar.component.d.ts +26 -15
- package/circularprogressbar/models/circular-progressbar-progress-color-interface.d.ts +4 -4
- package/common/localization/custom-messages.component.d.ts +24 -0
- package/directives.d.ts +50 -4
- package/esm2022/chunk/chunk-progressbar.component.mjs +26 -18
- package/esm2022/circularprogressbar/center-template.directive.mjs +10 -1
- package/esm2022/circularprogressbar/circular-progressbar.component.mjs +26 -15
- package/esm2022/circularprogressbar/models/circular-progressbar-progress-color-interface.mjs +1 -1
- package/esm2022/common/localization/custom-messages.component.mjs +24 -0
- package/esm2022/directives.mjs +50 -4
- package/esm2022/package-metadata.mjs +2 -2
- package/esm2022/progressbar.component.mjs +17 -15
- package/esm2022/progressbar.module.mjs +8 -21
- package/fesm2022/progress-kendo-angular-progressbar.mjs +163 -76
- package/package.json +5 -5
- package/progressbar.component.d.ts +17 -15
- package/progressbar.module.d.ts +8 -21
- package/types/animation-end-event.d.ts +1 -1
- package/types/label-fn-type.d.ts +3 -3
- package/types/label-position.d.ts +1 -1
- package/types/label-settings.interface.d.ts +8 -30
- package/types/label-type.d.ts +2 -3
- package/types/progressbar-animation.interface.d.ts +4 -19
- package/types/progressbar-orientation.d.ts +1 -1
|
@@ -10,18 +10,25 @@ import * as i0 from "@angular/core";
|
|
|
10
10
|
* Represents the [Kendo UI ChunkProgressBar component for Angular]({% slug overview_chunkprogressbar %}).
|
|
11
11
|
*
|
|
12
12
|
* @example
|
|
13
|
-
* ```
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import { Component } from '@angular/core';
|
|
15
|
+
*
|
|
16
|
+
* @Component({
|
|
17
|
+
* selector: 'my-app',
|
|
18
|
+
* template: `
|
|
19
|
+
* <kendo-chunkprogressbar
|
|
20
|
+
* [value]="progressValue"
|
|
21
|
+
* [chunkCount]="8">
|
|
22
|
+
* </kendo-chunkprogressbar>
|
|
23
|
+
* `
|
|
20
24
|
* })
|
|
21
|
-
* class AppComponent {
|
|
22
|
-
*
|
|
25
|
+
* export class AppComponent {
|
|
26
|
+
* public progressValue: number = 40;
|
|
23
27
|
* }
|
|
24
28
|
* ```
|
|
29
|
+
*
|
|
30
|
+
* @remarks
|
|
31
|
+
* Supported children components are: {@link ProgressBarCustomMessagesComponent}
|
|
25
32
|
*/
|
|
26
33
|
export declare class ChunkProgressBarComponent extends ProgressBarBase {
|
|
27
34
|
localization: LocalizationService;
|
|
@@ -30,7 +37,8 @@ export declare class ChunkProgressBarComponent extends ProgressBarBase {
|
|
|
30
37
|
chunkClass: boolean;
|
|
31
38
|
/**
|
|
32
39
|
* Sets the number of chunks into which the ChunkProgressBar will be split.
|
|
33
|
-
*
|
|
40
|
+
*
|
|
41
|
+
* @default 5
|
|
34
42
|
*/
|
|
35
43
|
chunkCount: number;
|
|
36
44
|
/**
|
|
@@ -38,29 +46,29 @@ export declare class ChunkProgressBarComponent extends ProgressBarBase {
|
|
|
38
46
|
*/
|
|
39
47
|
get chunks(): boolean[];
|
|
40
48
|
/**
|
|
41
|
-
*
|
|
42
|
-
* Supports the type of values that
|
|
49
|
+
* Sets the CSS styles that will be rendered on the full chunk elements ([see example]({% slug chunkprogressbar_appearance %})).
|
|
50
|
+
* Supports the type of values that [`ngStyle`](link:site.data.urls.angular['ngstyleapi']) supports.
|
|
43
51
|
*/
|
|
44
52
|
progressCssStyle: {
|
|
45
53
|
[key: string]: any;
|
|
46
54
|
};
|
|
47
55
|
/**
|
|
48
|
-
*
|
|
49
|
-
* Supports the type of values that
|
|
56
|
+
* Sets the CSS classes that will be rendered on the full chunk elements ([see example]({% slug chunkprogressbar_appearance %})).
|
|
57
|
+
* Supports the type of values that [`ngClass`](link:site.data.urls.angular['ngclassapi']) supports.
|
|
50
58
|
*/
|
|
51
59
|
progressCssClass: string | string[] | Set<string> | {
|
|
52
60
|
[key: string]: string;
|
|
53
61
|
};
|
|
54
62
|
/**
|
|
55
|
-
*
|
|
56
|
-
* Supports the type of values that
|
|
63
|
+
* Sets the CSS styles that will be rendered on the empty chunk elements ([see example]({% slug chunkprogressbar_appearance %})).
|
|
64
|
+
* Supports the type of values that [`ngStyle`](link:site.data.urls.angular['ngstyleapi']) supports.
|
|
57
65
|
*/
|
|
58
66
|
emptyCssStyle: {
|
|
59
67
|
[key: string]: string;
|
|
60
68
|
};
|
|
61
69
|
/**
|
|
62
|
-
*
|
|
63
|
-
* Supports the type of values that
|
|
70
|
+
* Sets the CSS classes that will be rendered on the empty chunk elements ([see example]({% slug chunkprogressbar_appearance %})).
|
|
71
|
+
* Supports the type of values that [`ngClass`](link:site.data.urls.angular['ngclassapi']) supports.
|
|
64
72
|
*/
|
|
65
73
|
emptyCssClass: string | string[] | Set<string> | {
|
|
66
74
|
[key: string]: any;
|
|
@@ -5,8 +5,17 @@
|
|
|
5
5
|
import { TemplateRef } from '@angular/core';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Represents a template that allows you to customize the content in the center of the `<kendo-circularprogessbar>` component. To define the template, nest an `<ng-template>` tag with the `kendoCircularProgressbarCenterTemplate` directive inside a `<kendo-circularprogessbar>` component.
|
|
9
9
|
* ([see example]({% slug center_template_circularprogressbar %})).
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```html
|
|
13
|
+
* <kendo-circularprogressbar [value]="75">
|
|
14
|
+
* <ng-template kendoCircularProgressbarCenterTemplate>
|
|
15
|
+
* <span class="custom-center-text">75%</span>
|
|
16
|
+
* </ng-template>
|
|
17
|
+
* </kendo-circularprogressbar>
|
|
18
|
+
* ```
|
|
10
19
|
*/
|
|
11
20
|
export declare class CircularProgressbarCenterTemplateDirective {
|
|
12
21
|
templateRef: TemplateRef<unknown>;
|
|
@@ -13,17 +13,26 @@ import * as i0 from "@angular/core";
|
|
|
13
13
|
* Represents the [Kendo UI Circular ProgressBar component for Angular]({% slug overview_circularprogressbar %}).
|
|
14
14
|
*
|
|
15
15
|
* @example
|
|
16
|
-
* ```
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
16
|
+
* ```typescript
|
|
17
|
+
* import { Component } from '@angular/core';
|
|
18
|
+
*
|
|
19
|
+
* @Component({
|
|
20
|
+
* selector: 'my-app',
|
|
21
|
+
* template: `
|
|
22
|
+
* <kendo-circularprogressbar
|
|
23
|
+
* [value]="currentValue"
|
|
24
|
+
* [max]="100"
|
|
25
|
+
* [animation]="true">
|
|
26
|
+
* </kendo-circularprogressbar>
|
|
27
|
+
* `
|
|
22
28
|
* })
|
|
23
|
-
* class AppComponent {
|
|
24
|
-
*
|
|
29
|
+
* export class AppComponent {
|
|
30
|
+
* public currentValue: number = 65;
|
|
25
31
|
* }
|
|
26
32
|
* ```
|
|
33
|
+
*
|
|
34
|
+
* @remarks
|
|
35
|
+
* Supported children components are: {@link ProgressBarCustomMessagesComponent}
|
|
27
36
|
*/
|
|
28
37
|
export declare class CircularProgressBarComponent implements AfterViewInit, OnChanges, OnDestroy {
|
|
29
38
|
private renderer;
|
|
@@ -37,49 +46,51 @@ export declare class CircularProgressBarComponent implements AfterViewInit, OnCh
|
|
|
37
46
|
get ariaValueAttribute(): string;
|
|
38
47
|
roleAttribute: string;
|
|
39
48
|
/**
|
|
40
|
-
* Sets the default value of the Circular
|
|
49
|
+
* Sets the default value of the Circular ProgressBar between `min` and `max`.
|
|
41
50
|
*
|
|
42
51
|
* @default 0
|
|
43
52
|
*/
|
|
44
53
|
set value(value: number);
|
|
45
54
|
get value(): number;
|
|
46
55
|
/**
|
|
47
|
-
*
|
|
56
|
+
* Sets the maximum value which the Circular ProgressBar can accept.
|
|
48
57
|
*
|
|
49
58
|
* @default 100
|
|
50
59
|
*/
|
|
51
60
|
set max(max: number);
|
|
52
61
|
get max(): number;
|
|
53
62
|
/**
|
|
54
|
-
*
|
|
63
|
+
* Sets the minimum value which the Circular ProgressBar can accept.
|
|
55
64
|
*
|
|
56
65
|
* @default 0
|
|
57
66
|
*/
|
|
58
67
|
set min(min: number);
|
|
59
68
|
get min(): number;
|
|
60
69
|
/**
|
|
61
|
-
*
|
|
70
|
+
* Specifies whether to play an animation when the value changes.
|
|
62
71
|
*
|
|
63
72
|
* @default false
|
|
64
73
|
*/
|
|
65
74
|
animation: boolean;
|
|
66
75
|
/**
|
|
67
|
-
*
|
|
76
|
+
* Sets the opacity of the value arc.
|
|
77
|
+
*
|
|
68
78
|
* @default 1
|
|
69
79
|
*/
|
|
70
80
|
opacity: number;
|
|
71
81
|
/**
|
|
72
82
|
* Puts the Circular ProgressBar in indeterminate state.
|
|
83
|
+
*
|
|
73
84
|
* @default false
|
|
74
85
|
*/
|
|
75
86
|
set indeterminate(indeterminate: boolean);
|
|
76
87
|
get indeterminate(): boolean;
|
|
77
88
|
/**
|
|
78
|
-
* Configures the pointer color.
|
|
89
|
+
* Configures the pointer color. You can set it to a single color string or customize it per progress stages.
|
|
79
90
|
*/
|
|
80
91
|
progressColor: string | ProgressColor[];
|
|
81
92
|
/**
|
|
82
|
-
* Fires when the animation
|
|
93
|
+
* Fires when the animation that indicates the latest value change completes.
|
|
83
94
|
*/
|
|
84
95
|
animationEnd: EventEmitter<AnimationEndEvent>;
|
|
85
96
|
progress: ElementRef;
|
|
@@ -3,19 +3,19 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Defines the color range configuration of the pointer.
|
|
7
7
|
*/
|
|
8
8
|
export interface ProgressColor {
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Sets the color of the range. Accepts valid CSS color strings, including hex and rgb.
|
|
11
11
|
*/
|
|
12
12
|
color?: string;
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* Sets the range start value.
|
|
15
15
|
*/
|
|
16
16
|
from?: number;
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
18
|
+
* Sets the range end value.
|
|
19
19
|
*/
|
|
20
20
|
to?: number;
|
|
21
21
|
}
|
|
@@ -8,6 +8,30 @@ import * as i0 from "@angular/core";
|
|
|
8
8
|
/**
|
|
9
9
|
* Custom component messages override default component messages
|
|
10
10
|
* ([see example]({% slug rtl_layout %})).
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```html
|
|
14
|
+
* <!-- Custom messages for ProgressBar -->
|
|
15
|
+
* <kendo-progressbar [value]="value">
|
|
16
|
+
* <kendo-progressbar-messages
|
|
17
|
+
* progressBarLabel="Changed ProgressBar Label"
|
|
18
|
+
* ></kendo-progressbar-messages>
|
|
19
|
+
* </kendo-progressbar>
|
|
20
|
+
*
|
|
21
|
+
* <!-- Custom messages for ChunkProgressBar -->
|
|
22
|
+
* <kendo-chunkprogressbar [value]="value" [chunkCount]="chunks">
|
|
23
|
+
* <kendo-progressbar-messages
|
|
24
|
+
* progressBarLabel="Changed Chunk Label"
|
|
25
|
+
* ></kendo-progressbar-messages>
|
|
26
|
+
* </kendo-chunkprogressbar>
|
|
27
|
+
*
|
|
28
|
+
* <!-- Custom messages for CircularProgressBar -->
|
|
29
|
+
* <kendo-circularprogressbar [value]="value">
|
|
30
|
+
* <kendo-progressbar-messages
|
|
31
|
+
* progressBarLabel="Changed Circular Label"
|
|
32
|
+
* ></kendo-progressbar-messages>
|
|
33
|
+
* </kendo-circularprogressbar>
|
|
34
|
+
* ```
|
|
11
35
|
*/
|
|
12
36
|
export declare class ProgressBarCustomMessagesComponent extends ProgressBarMessages {
|
|
13
37
|
protected service: LocalizationService;
|
package/directives.d.ts
CHANGED
|
@@ -8,18 +8,64 @@ import { CircularProgressBarComponent } from "./circularprogressbar/circular-pro
|
|
|
8
8
|
import { ProgressBarCustomMessagesComponent } from "./common/localization/custom-messages.component";
|
|
9
9
|
import { ProgressBarComponent } from "./progressbar.component";
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* Use this utility array to access all ChunkProgressBar-related components and directives in a standalone Angular component.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```typescript
|
|
15
|
+
* import { KENDO_CHUNKPROGRESSBAR } from '@progress/kendo-angular-progressbar';
|
|
16
|
+
* @Component({
|
|
17
|
+
* standalone: true,
|
|
18
|
+
* imports: [KENDO_CHUNKPROGRESSBAR],
|
|
19
|
+
* template: `<kendo-chunkprogressbar [value]="50"></kendo-chunkprogressbar>`,
|
|
20
|
+
* })
|
|
21
|
+
* export class MyComponent {}
|
|
22
|
+
* ```
|
|
12
23
|
*/
|
|
13
24
|
export declare const KENDO_CHUNKPROGRESSBAR: readonly [typeof ChunkProgressBarComponent, typeof ProgressBarCustomMessagesComponent];
|
|
14
25
|
/**
|
|
15
|
-
*
|
|
26
|
+
* Use this utility array to access all CircularProgressbar-related components and directives in a standalone Angular component.
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```typescript
|
|
30
|
+
* import { KENDO_CIRCULARPROGRESSBAR } from '@progress/kendo-angular-progressbar';
|
|
31
|
+
* @Component({
|
|
32
|
+
* standalone: true,
|
|
33
|
+
* imports: [KENDO_CIRCULARPROGRESSBAR],
|
|
34
|
+
* template: `<kendo-circularprogressbar [value]="75"></kendo-circularprogressbar>`,
|
|
35
|
+
* })
|
|
36
|
+
* export class MyComponent {}
|
|
37
|
+
* ```
|
|
16
38
|
*/
|
|
17
39
|
export declare const KENDO_CIRCULARPROGRESSBAR: readonly [typeof CircularProgressbarCenterTemplateDirective, typeof CircularProgressBarComponent, typeof ProgressBarCustomMessagesComponent];
|
|
18
40
|
/**
|
|
19
|
-
*
|
|
41
|
+
* Use this utility array to access all ProgressBar-related components and directives in a standalone Angular component.
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* ```typescript
|
|
45
|
+
* import { KENDO_PROGRESSBAR } from '@progress/kendo-angular-progressbar';
|
|
46
|
+
* @Component({
|
|
47
|
+
* standalone: true,
|
|
48
|
+
* imports: [KENDO_PROGRESSBAR],
|
|
49
|
+
* template: `<kendo-progressbar [value]="75"></kendo-progressbar>`,
|
|
50
|
+
* })
|
|
51
|
+
* export class MyComponent {}
|
|
52
|
+
* ```
|
|
20
53
|
*/
|
|
21
54
|
export declare const KENDO_PROGRESSBAR: readonly [typeof ProgressBarComponent, typeof ProgressBarCustomMessagesComponent];
|
|
22
55
|
/**
|
|
23
|
-
*
|
|
56
|
+
* Use this utility array all `@progress/kendo-angular-progressbar`-related components and directives.
|
|
57
|
+
* @example
|
|
58
|
+
* ```typescript
|
|
59
|
+
* import { KENDO_PROGRESSBARS } from '@progress/kendo-angular-progressbar';
|
|
60
|
+
* @Component({
|
|
61
|
+
* standalone: true,
|
|
62
|
+
* imports: [KENDO_PROGRESSBARS],
|
|
63
|
+
* template: `
|
|
64
|
+
* <kendo-progressbar [value]="75"></kendo-progressbar>
|
|
65
|
+
* <kendo-circularprogressbar [value]="75"></kendo-circularprogressbar>
|
|
66
|
+
* `,
|
|
67
|
+
* })
|
|
68
|
+
* export class MyComponent {}
|
|
69
|
+
* ```
|
|
24
70
|
*/
|
|
25
71
|
export declare const KENDO_PROGRESSBARS: readonly [typeof ChunkProgressBarComponent, typeof ProgressBarCustomMessagesComponent, typeof CircularProgressbarCenterTemplateDirective, typeof CircularProgressBarComponent, typeof ProgressBarCustomMessagesComponent, typeof ProgressBarComponent, typeof ProgressBarCustomMessagesComponent];
|
|
@@ -13,18 +13,25 @@ import * as i1 from "@progress/kendo-angular-l10n";
|
|
|
13
13
|
* Represents the [Kendo UI ChunkProgressBar component for Angular]({% slug overview_chunkprogressbar %}).
|
|
14
14
|
*
|
|
15
15
|
* @example
|
|
16
|
-
* ```
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
16
|
+
* ```typescript
|
|
17
|
+
* import { Component } from '@angular/core';
|
|
18
|
+
*
|
|
19
|
+
* @Component({
|
|
20
|
+
* selector: 'my-app',
|
|
21
|
+
* template: `
|
|
22
|
+
* <kendo-chunkprogressbar
|
|
23
|
+
* [value]="progressValue"
|
|
24
|
+
* [chunkCount]="8">
|
|
25
|
+
* </kendo-chunkprogressbar>
|
|
26
|
+
* `
|
|
23
27
|
* })
|
|
24
|
-
* class AppComponent {
|
|
25
|
-
*
|
|
28
|
+
* export class AppComponent {
|
|
29
|
+
* public progressValue: number = 40;
|
|
26
30
|
* }
|
|
27
31
|
* ```
|
|
32
|
+
*
|
|
33
|
+
* @remarks
|
|
34
|
+
* Supported children components are: {@link ProgressBarCustomMessagesComponent}
|
|
28
35
|
*/
|
|
29
36
|
export class ChunkProgressBarComponent extends ProgressBarBase {
|
|
30
37
|
localization;
|
|
@@ -33,7 +40,8 @@ export class ChunkProgressBarComponent extends ProgressBarBase {
|
|
|
33
40
|
chunkClass = true;
|
|
34
41
|
/**
|
|
35
42
|
* Sets the number of chunks into which the ChunkProgressBar will be split.
|
|
36
|
-
*
|
|
43
|
+
*
|
|
44
|
+
* @default 5
|
|
37
45
|
*/
|
|
38
46
|
chunkCount = 5;
|
|
39
47
|
/**
|
|
@@ -49,24 +57,24 @@ export class ChunkProgressBarComponent extends ProgressBarBase {
|
|
|
49
57
|
return chunks;
|
|
50
58
|
}
|
|
51
59
|
/**
|
|
52
|
-
*
|
|
53
|
-
* Supports the type of values that
|
|
60
|
+
* Sets the CSS styles that will be rendered on the full chunk elements ([see example]({% slug chunkprogressbar_appearance %})).
|
|
61
|
+
* Supports the type of values that [`ngStyle`](link:site.data.urls.angular['ngstyleapi']) supports.
|
|
54
62
|
*/
|
|
55
63
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
56
64
|
progressCssStyle;
|
|
57
65
|
/**
|
|
58
|
-
*
|
|
59
|
-
* Supports the type of values that
|
|
66
|
+
* Sets the CSS classes that will be rendered on the full chunk elements ([see example]({% slug chunkprogressbar_appearance %})).
|
|
67
|
+
* Supports the type of values that [`ngClass`](link:site.data.urls.angular['ngclassapi']) supports.
|
|
60
68
|
*/
|
|
61
69
|
progressCssClass;
|
|
62
70
|
/**
|
|
63
|
-
*
|
|
64
|
-
* Supports the type of values that
|
|
71
|
+
* Sets the CSS styles that will be rendered on the empty chunk elements ([see example]({% slug chunkprogressbar_appearance %})).
|
|
72
|
+
* Supports the type of values that [`ngStyle`](link:site.data.urls.angular['ngstyleapi']) supports.
|
|
65
73
|
*/
|
|
66
74
|
emptyCssStyle;
|
|
67
75
|
/**
|
|
68
|
-
*
|
|
69
|
-
* Supports the type of values that
|
|
76
|
+
* Sets the CSS classes that will be rendered on the empty chunk elements ([see example]({% slug chunkprogressbar_appearance %})).
|
|
77
|
+
* Supports the type of values that [`ngClass`](link:site.data.urls.angular['ngclassapi']) supports.
|
|
70
78
|
*/
|
|
71
79
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
72
80
|
emptyCssClass;
|
|
@@ -5,8 +5,17 @@
|
|
|
5
5
|
import { Directive, TemplateRef } from '@angular/core';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Represents a template that allows you to customize the content in the center of the `<kendo-circularprogessbar>` component. To define the template, nest an `<ng-template>` tag with the `kendoCircularProgressbarCenterTemplate` directive inside a `<kendo-circularprogessbar>` component.
|
|
9
9
|
* ([see example]({% slug center_template_circularprogressbar %})).
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```html
|
|
13
|
+
* <kendo-circularprogressbar [value]="75">
|
|
14
|
+
* <ng-template kendoCircularProgressbarCenterTemplate>
|
|
15
|
+
* <span class="custom-center-text">75%</span>
|
|
16
|
+
* </ng-template>
|
|
17
|
+
* </kendo-circularprogressbar>
|
|
18
|
+
* ```
|
|
10
19
|
*/
|
|
11
20
|
export class CircularProgressbarCenterTemplateDirective {
|
|
12
21
|
templateRef;
|
|
@@ -20,17 +20,26 @@ const DEFAULT_SURFACE_SIZE = 200;
|
|
|
20
20
|
* Represents the [Kendo UI Circular ProgressBar component for Angular]({% slug overview_circularprogressbar %}).
|
|
21
21
|
*
|
|
22
22
|
* @example
|
|
23
|
-
* ```
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
23
|
+
* ```typescript
|
|
24
|
+
* import { Component } from '@angular/core';
|
|
25
|
+
*
|
|
26
|
+
* @Component({
|
|
27
|
+
* selector: 'my-app',
|
|
28
|
+
* template: `
|
|
29
|
+
* <kendo-circularprogressbar
|
|
30
|
+
* [value]="currentValue"
|
|
31
|
+
* [max]="100"
|
|
32
|
+
* [animation]="true">
|
|
33
|
+
* </kendo-circularprogressbar>
|
|
34
|
+
* `
|
|
29
35
|
* })
|
|
30
|
-
* class AppComponent {
|
|
31
|
-
*
|
|
36
|
+
* export class AppComponent {
|
|
37
|
+
* public currentValue: number = 65;
|
|
32
38
|
* }
|
|
33
39
|
* ```
|
|
40
|
+
*
|
|
41
|
+
* @remarks
|
|
42
|
+
* Supported children components are: {@link ProgressBarCustomMessagesComponent}
|
|
34
43
|
*/
|
|
35
44
|
export class CircularProgressBarComponent {
|
|
36
45
|
renderer;
|
|
@@ -50,7 +59,7 @@ export class CircularProgressBarComponent {
|
|
|
50
59
|
}
|
|
51
60
|
roleAttribute = 'progressbar';
|
|
52
61
|
/**
|
|
53
|
-
* Sets the default value of the Circular
|
|
62
|
+
* Sets the default value of the Circular ProgressBar between `min` and `max`.
|
|
54
63
|
*
|
|
55
64
|
* @default 0
|
|
56
65
|
*/
|
|
@@ -68,7 +77,7 @@ export class CircularProgressBarComponent {
|
|
|
68
77
|
return this._value;
|
|
69
78
|
}
|
|
70
79
|
/**
|
|
71
|
-
*
|
|
80
|
+
* Sets the maximum value which the Circular ProgressBar can accept.
|
|
72
81
|
*
|
|
73
82
|
* @default 100
|
|
74
83
|
*/
|
|
@@ -82,7 +91,7 @@ export class CircularProgressBarComponent {
|
|
|
82
91
|
return this._max;
|
|
83
92
|
}
|
|
84
93
|
/**
|
|
85
|
-
*
|
|
94
|
+
* Sets the minimum value which the Circular ProgressBar can accept.
|
|
86
95
|
*
|
|
87
96
|
* @default 0
|
|
88
97
|
*/
|
|
@@ -96,18 +105,20 @@ export class CircularProgressBarComponent {
|
|
|
96
105
|
return this._min;
|
|
97
106
|
}
|
|
98
107
|
/**
|
|
99
|
-
*
|
|
108
|
+
* Specifies whether to play an animation when the value changes.
|
|
100
109
|
*
|
|
101
110
|
* @default false
|
|
102
111
|
*/
|
|
103
112
|
animation = false;
|
|
104
113
|
/**
|
|
105
|
-
*
|
|
114
|
+
* Sets the opacity of the value arc.
|
|
115
|
+
*
|
|
106
116
|
* @default 1
|
|
107
117
|
*/
|
|
108
118
|
opacity = 1;
|
|
109
119
|
/**
|
|
110
120
|
* Puts the Circular ProgressBar in indeterminate state.
|
|
121
|
+
*
|
|
111
122
|
* @default false
|
|
112
123
|
*/
|
|
113
124
|
set indeterminate(indeterminate) {
|
|
@@ -117,11 +128,11 @@ export class CircularProgressBarComponent {
|
|
|
117
128
|
return this._indeterminate;
|
|
118
129
|
}
|
|
119
130
|
/**
|
|
120
|
-
* Configures the pointer color.
|
|
131
|
+
* Configures the pointer color. You can set it to a single color string or customize it per progress stages.
|
|
121
132
|
*/
|
|
122
133
|
progressColor;
|
|
123
134
|
/**
|
|
124
|
-
* Fires when the animation
|
|
135
|
+
* Fires when the animation that indicates the latest value change completes.
|
|
125
136
|
*/
|
|
126
137
|
animationEnd = new EventEmitter();
|
|
127
138
|
progress;
|
package/esm2022/circularprogressbar/models/circular-progressbar-progress-color-interface.mjs
CHANGED
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Defines the color range configuration of the pointer.
|
|
7
7
|
*/
|
|
8
8
|
export {};
|
|
@@ -10,6 +10,30 @@ import * as i1 from "@progress/kendo-angular-l10n";
|
|
|
10
10
|
/**
|
|
11
11
|
* Custom component messages override default component messages
|
|
12
12
|
* ([see example]({% slug rtl_layout %})).
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```html
|
|
16
|
+
* <!-- Custom messages for ProgressBar -->
|
|
17
|
+
* <kendo-progressbar [value]="value">
|
|
18
|
+
* <kendo-progressbar-messages
|
|
19
|
+
* progressBarLabel="Changed ProgressBar Label"
|
|
20
|
+
* ></kendo-progressbar-messages>
|
|
21
|
+
* </kendo-progressbar>
|
|
22
|
+
*
|
|
23
|
+
* <!-- Custom messages for ChunkProgressBar -->
|
|
24
|
+
* <kendo-chunkprogressbar [value]="value" [chunkCount]="chunks">
|
|
25
|
+
* <kendo-progressbar-messages
|
|
26
|
+
* progressBarLabel="Changed Chunk Label"
|
|
27
|
+
* ></kendo-progressbar-messages>
|
|
28
|
+
* </kendo-chunkprogressbar>
|
|
29
|
+
*
|
|
30
|
+
* <!-- Custom messages for CircularProgressBar -->
|
|
31
|
+
* <kendo-circularprogressbar [value]="value">
|
|
32
|
+
* <kendo-progressbar-messages
|
|
33
|
+
* progressBarLabel="Changed Circular Label"
|
|
34
|
+
* ></kendo-progressbar-messages>
|
|
35
|
+
* </kendo-circularprogressbar>
|
|
36
|
+
* ```
|
|
13
37
|
*/
|
|
14
38
|
export class ProgressBarCustomMessagesComponent extends ProgressBarMessages {
|
|
15
39
|
service;
|
package/esm2022/directives.mjs
CHANGED
|
@@ -8,14 +8,36 @@ import { CircularProgressBarComponent } from "./circularprogressbar/circular-pro
|
|
|
8
8
|
import { ProgressBarCustomMessagesComponent } from "./common/localization/custom-messages.component";
|
|
9
9
|
import { ProgressBarComponent } from "./progressbar.component";
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* Use this utility array to access all ChunkProgressBar-related components and directives in a standalone Angular component.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```typescript
|
|
15
|
+
* import { KENDO_CHUNKPROGRESSBAR } from '@progress/kendo-angular-progressbar';
|
|
16
|
+
* @Component({
|
|
17
|
+
* standalone: true,
|
|
18
|
+
* imports: [KENDO_CHUNKPROGRESSBAR],
|
|
19
|
+
* template: `<kendo-chunkprogressbar [value]="50"></kendo-chunkprogressbar>`,
|
|
20
|
+
* })
|
|
21
|
+
* export class MyComponent {}
|
|
22
|
+
* ```
|
|
12
23
|
*/
|
|
13
24
|
export const KENDO_CHUNKPROGRESSBAR = [
|
|
14
25
|
ChunkProgressBarComponent,
|
|
15
26
|
ProgressBarCustomMessagesComponent
|
|
16
27
|
];
|
|
17
28
|
/**
|
|
18
|
-
*
|
|
29
|
+
* Use this utility array to access all CircularProgressbar-related components and directives in a standalone Angular component.
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```typescript
|
|
33
|
+
* import { KENDO_CIRCULARPROGRESSBAR } from '@progress/kendo-angular-progressbar';
|
|
34
|
+
* @Component({
|
|
35
|
+
* standalone: true,
|
|
36
|
+
* imports: [KENDO_CIRCULARPROGRESSBAR],
|
|
37
|
+
* template: `<kendo-circularprogressbar [value]="75"></kendo-circularprogressbar>`,
|
|
38
|
+
* })
|
|
39
|
+
* export class MyComponent {}
|
|
40
|
+
* ```
|
|
19
41
|
*/
|
|
20
42
|
export const KENDO_CIRCULARPROGRESSBAR = [
|
|
21
43
|
CircularProgressbarCenterTemplateDirective,
|
|
@@ -23,14 +45,38 @@ export const KENDO_CIRCULARPROGRESSBAR = [
|
|
|
23
45
|
ProgressBarCustomMessagesComponent
|
|
24
46
|
];
|
|
25
47
|
/**
|
|
26
|
-
*
|
|
48
|
+
* Use this utility array to access all ProgressBar-related components and directives in a standalone Angular component.
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* ```typescript
|
|
52
|
+
* import { KENDO_PROGRESSBAR } from '@progress/kendo-angular-progressbar';
|
|
53
|
+
* @Component({
|
|
54
|
+
* standalone: true,
|
|
55
|
+
* imports: [KENDO_PROGRESSBAR],
|
|
56
|
+
* template: `<kendo-progressbar [value]="75"></kendo-progressbar>`,
|
|
57
|
+
* })
|
|
58
|
+
* export class MyComponent {}
|
|
59
|
+
* ```
|
|
27
60
|
*/
|
|
28
61
|
export const KENDO_PROGRESSBAR = [
|
|
29
62
|
ProgressBarComponent,
|
|
30
63
|
ProgressBarCustomMessagesComponent
|
|
31
64
|
];
|
|
32
65
|
/**
|
|
33
|
-
*
|
|
66
|
+
* Use this utility array all `@progress/kendo-angular-progressbar`-related components and directives.
|
|
67
|
+
* @example
|
|
68
|
+
* ```typescript
|
|
69
|
+
* import { KENDO_PROGRESSBARS } from '@progress/kendo-angular-progressbar';
|
|
70
|
+
* @Component({
|
|
71
|
+
* standalone: true,
|
|
72
|
+
* imports: [KENDO_PROGRESSBARS],
|
|
73
|
+
* template: `
|
|
74
|
+
* <kendo-progressbar [value]="75"></kendo-progressbar>
|
|
75
|
+
* <kendo-circularprogressbar [value]="75"></kendo-circularprogressbar>
|
|
76
|
+
* `,
|
|
77
|
+
* })
|
|
78
|
+
* export class MyComponent {}
|
|
79
|
+
* ```
|
|
34
80
|
*/
|
|
35
81
|
export const KENDO_PROGRESSBARS = [
|
|
36
82
|
...KENDO_CHUNKPROGRESSBAR,
|
|
@@ -10,7 +10,7 @@ export const packageMetadata = {
|
|
|
10
10
|
productName: 'Kendo UI for Angular',
|
|
11
11
|
productCode: 'KENDOUIANGULAR',
|
|
12
12
|
productCodes: ['KENDOUIANGULAR'],
|
|
13
|
-
publishDate:
|
|
14
|
-
version: '19.1.2-develop.
|
|
13
|
+
publishDate: 1750433539,
|
|
14
|
+
version: '19.1.2-develop.6',
|
|
15
15
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
16
16
|
};
|