@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.
Files changed (87) hide show
  1. package/base-components/collection-item.component.d.ts +1 -1
  2. package/base-components/collection.component.d.ts +1 -1
  3. package/base-components/gauge-area.component.d.ts +1 -1
  4. package/base-components/gauge.component.d.ts +1 -1
  5. package/base-components/labels.component.d.ts +1 -1
  6. package/base-components/range.component.d.ts +1 -1
  7. package/base-components/scale.component.d.ts +1 -1
  8. package/base-components/settings.component.d.ts +1 -1
  9. package/fesm2022/progress-kendo-angular-gauges.mjs +140 -140
  10. package/package.json +10 -18
  11. package/esm2022/arc-gauge/arc-center-template.directive.mjs +0 -39
  12. package/esm2022/arc-gauge/arc-gauge.component.mjs +0 -205
  13. package/esm2022/arc-gauge/arc-gauge.directives.mjs +0 -11
  14. package/esm2022/arc-gauge/arc-gauge.module.mjs +0 -50
  15. package/esm2022/arc-gauge/color.component.mjs +0 -75
  16. package/esm2022/arc-gauge/colors.component.mjs +0 -76
  17. package/esm2022/arc-gauge/gauge-area.component.mjs +0 -50
  18. package/esm2022/arc-gauge/labels.component.mjs +0 -52
  19. package/esm2022/arc-gauge/scale.component.mjs +0 -84
  20. package/esm2022/base-components/collection-item.component.mjs +0 -28
  21. package/esm2022/base-components/collection.component.mjs +0 -44
  22. package/esm2022/base-components/gauge-area.component.mjs +0 -59
  23. package/esm2022/base-components/gauge.component.mjs +0 -253
  24. package/esm2022/base-components/labels.component.mjs +0 -90
  25. package/esm2022/base-components/range.component.mjs +0 -41
  26. package/esm2022/base-components/scale.component.mjs +0 -59
  27. package/esm2022/base-components/settings.component.mjs +0 -30
  28. package/esm2022/base-components.mjs +0 -12
  29. package/esm2022/circular-gauge/center-template.directive.mjs +0 -38
  30. package/esm2022/circular-gauge/circular-gauge.component.mjs +0 -98
  31. package/esm2022/circular-gauge/circular-gauge.directives.mjs +0 -9
  32. package/esm2022/circular-gauge/circular-gauge.module.mjs +0 -48
  33. package/esm2022/circular-gauge/gauge-area.component.mjs +0 -37
  34. package/esm2022/circular-gauge/labels.component.mjs +0 -44
  35. package/esm2022/circular-gauge/scale.component.mjs +0 -44
  36. package/esm2022/directives.mjs +0 -89
  37. package/esm2022/gauges.module.mjs +0 -73
  38. package/esm2022/index.mjs +0 -17
  39. package/esm2022/linear-gauge/gauge-area.component.mjs +0 -38
  40. package/esm2022/linear-gauge/labels.component.mjs +0 -39
  41. package/esm2022/linear-gauge/linear-gauge.component.mjs +0 -91
  42. package/esm2022/linear-gauge/linear-gauge.directives.mjs +0 -12
  43. package/esm2022/linear-gauge/linear-gauge.module.mjs +0 -52
  44. package/esm2022/linear-gauge/pointer.component.mjs +0 -80
  45. package/esm2022/linear-gauge/pointers.component.mjs +0 -69
  46. package/esm2022/linear-gauge/range.component.mjs +0 -42
  47. package/esm2022/linear-gauge/ranges.component.mjs +0 -77
  48. package/esm2022/linear-gauge/scale.component.mjs +0 -69
  49. package/esm2022/package-metadata.mjs +0 -16
  50. package/esm2022/progress-kendo-angular-gauges.mjs +0 -8
  51. package/esm2022/radial-gauge/gauge-area.component.mjs +0 -45
  52. package/esm2022/radial-gauge/labels.component.mjs +0 -45
  53. package/esm2022/radial-gauge/pointer.component.mjs +0 -62
  54. package/esm2022/radial-gauge/pointers.component.mjs +0 -72
  55. package/esm2022/radial-gauge/radial-gauge.component.mjs +0 -93
  56. package/esm2022/radial-gauge/radial-gauge.directives.mjs +0 -12
  57. package/esm2022/radial-gauge/radial-gauge.module.mjs +0 -52
  58. package/esm2022/radial-gauge/range.component.mjs +0 -40
  59. package/esm2022/radial-gauge/ranges.component.mjs +0 -77
  60. package/esm2022/radial-gauge/scale.component.mjs +0 -71
  61. package/esm2022/services/collection-changes.service.mjs +0 -17
  62. package/esm2022/services/configuration.service.mjs +0 -98
  63. package/esm2022/services/theme.service.mjs +0 -43
  64. package/esm2022/services.mjs +0 -7
  65. package/esm2022/types/arc-scale.interface.mjs +0 -5
  66. package/esm2022/types/border.interface.mjs +0 -5
  67. package/esm2022/types/cap.interface.mjs +0 -5
  68. package/esm2022/types/circular-gauge-scale.interface.mjs +0 -5
  69. package/esm2022/types/color-range.interface.mjs +0 -5
  70. package/esm2022/types/dash-type.interface.mjs +0 -5
  71. package/esm2022/types/gauge-area.interface.mjs +0 -5
  72. package/esm2022/types/labels.interface.mjs +0 -5
  73. package/esm2022/types/line-cap.mjs +0 -5
  74. package/esm2022/types/line.interface.mjs +0 -5
  75. package/esm2022/types/linear-pointer-shape.mjs +0 -5
  76. package/esm2022/types/linear-pointer.interface.mjs +0 -5
  77. package/esm2022/types/linear-scale.interface.mjs +0 -5
  78. package/esm2022/types/margin.interface.mjs +0 -5
  79. package/esm2022/types/padding.interface.mjs +0 -5
  80. package/esm2022/types/radial-label-position.mjs +0 -5
  81. package/esm2022/types/radial-labels.interface.mjs +0 -5
  82. package/esm2022/types/radial-pointer.interface.mjs +0 -5
  83. package/esm2022/types/radial-scale.interface.mjs +0 -5
  84. package/esm2022/types/range.interface.mjs +0 -5
  85. package/esm2022/types/scale.interface.mjs +0 -5
  86. package/esm2022/types/ticks.interface.mjs +0 -5
  87. package/esm2022/types.mjs +0 -5
@@ -1,62 +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 { Input, Component } 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 a pointer in the RadialGauge.
12
- *
13
- * @example
14
- * ```html
15
- * <kendo-radialgauge>
16
- * <kendo-radialgauge-pointers>
17
- * <kendo-radialgauge-pointer [value]="35" color="#ff4500" shape="barIndicator">
18
- * </kendo-radialgauge-pointer>
19
- * </kendo-radialgauge-pointers>
20
- * </kendo-radialgauge>
21
- * ```
22
- */
23
- export class RadialPointerComponent extends CollectionItemComponent {
24
- /**
25
- * Configures the pointer cap.
26
- */
27
- cap;
28
- /**
29
- * Specifies the color of the pointer.
30
- */
31
- color;
32
- /**
33
- * Sets the length of the pointer as a percentage of the scale radius.
34
- */
35
- length;
36
- /**
37
- * Sets the value of the pointer.
38
- */
39
- value;
40
- constructor(configurationService, collectionChangesService) {
41
- super(configurationService, collectionChangesService);
42
- }
43
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: RadialPointerComponent, deps: [{ token: i1.ConfigurationService }, { token: i1.CollectionChangesService }], target: i0.ɵɵFactoryTarget.Component });
44
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: RadialPointerComponent, isStandalone: true, selector: "kendo-radialgauge-pointer", inputs: { cap: "cap", color: "color", length: "length", value: "value" }, providers: [ConfigurationService], usesInheritance: true, ngImport: i0, template: '', isInline: true });
45
- }
46
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: RadialPointerComponent, decorators: [{
47
- type: Component,
48
- args: [{
49
- providers: [ConfigurationService],
50
- selector: 'kendo-radialgauge-pointer',
51
- template: '',
52
- standalone: true
53
- }]
54
- }], ctorParameters: () => [{ type: i1.ConfigurationService }, { type: i1.CollectionChangesService }], propDecorators: { cap: [{
55
- type: Input
56
- }], color: [{
57
- type: Input
58
- }], length: [{
59
- type: Input
60
- }], value: [{
61
- type: Input
62
- }] } });
@@ -1,72 +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 { RadialPointerComponent } from './pointer.component';
7
- import { CollectionComponent } from '../base-components';
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 RadialGauge pointers
13
- * ([more information and example]({% slug multiplepointers_radialgauge %})).
14
- *
15
- * Use this component to group multiple pointer components within a RadialGauge.
16
- * Each pointer displays a specific value on the gauge.
17
- *
18
- * @example
19
- * ```ts
20
- * import { Component } from '@angular/core';
21
- *
22
- * @Component({
23
- * selector: 'my-app',
24
- * template: `
25
- * <kendo-radialgauge>
26
- * <kendo-radialgauge-pointers>
27
- * @for (pointer of pointers; track pointer) {
28
- * <kendo-radialgauge-pointer
29
- * [value]="pointer.value" [color]="pointer.color">
30
- * </kendo-radialgauge-pointer>
31
- * }
32
- * </kendo-radialgauge-pointers>
33
- * </kendo-radialgauge>
34
- * `
35
- * })
36
- * export class AppComponent {
37
- * public pointers: any[] = [{
38
- * value: 10,
39
- * color: '#ffd246'
40
- * }, {
41
- * value: 20,
42
- * color: '#28b4c8'
43
- * }, {
44
- * value: 30,
45
- * color: '#78d237'
46
- * }];
47
- * }
48
- * ```
49
- *
50
- * @remarks
51
- * Supported children components are: {@link RadialPointerComponent}
52
- */
53
- export class RadialPointersComponent extends CollectionComponent {
54
- children;
55
- constructor(configurationService, collectionChangesService) {
56
- super('pointer', configurationService, collectionChangesService);
57
- }
58
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: RadialPointersComponent, deps: [{ token: i1.ConfigurationService }, { token: i1.CollectionChangesService }], target: i0.ɵɵFactoryTarget.Component });
59
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: RadialPointersComponent, isStandalone: true, selector: "kendo-radialgauge-pointers", providers: [CollectionChangesService], queries: [{ propertyName: "children", predicate: RadialPointerComponent }], usesInheritance: true, ngImport: i0, template: '', isInline: true });
60
- }
61
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: RadialPointersComponent, decorators: [{
62
- type: Component,
63
- args: [{
64
- providers: [CollectionChangesService],
65
- selector: 'kendo-radialgauge-pointers',
66
- template: '',
67
- standalone: true
68
- }]
69
- }], ctorParameters: () => [{ type: i1.ConfigurationService }, { type: i1.CollectionChangesService }], propDecorators: { children: [{
70
- type: ContentChildren,
71
- args: [RadialPointerComponent]
72
- }] } });
@@ -1,93 +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, NgZone, Input, ChangeDetectionStrategy, ElementRef, Renderer2 } 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 { RadialGauge } from '@progress/kendo-charts';
11
- import { ResizeSensorComponent } from '@progress/kendo-angular-common';
12
- import * as i0 from "@angular/core";
13
- import * as i1 from "../services";
14
- import * as i2 from "@progress/kendo-angular-intl";
15
- import * as i3 from "@progress/kendo-angular-l10n";
16
- /**
17
- * Represents the [Kendo UI RadialGauge component for Angular]({% slug overview_radialgauge_gauges %}).
18
- *
19
- * @example
20
- * ```ts
21
- * import { Component } from '@angular/core';
22
- *
23
- * @Component({
24
- * selector: 'my-app',
25
- * template: `
26
- * <kendo-radialgauge [pointer]="{ value: value }">
27
- * </kendo-radialgauge>
28
- * `
29
- * })
30
- * export class AppComponent {
31
- * public value: number = 10;
32
- * }
33
- * ```
34
- *
35
- * @remarks
36
- * Supported children components are: {@link RadialGaugeAreaComponent}, {@link RadialLabelsComponent}, {@link RadialPointersComponent}, {@link RadialRangesComponent}, {@link RadialScaleComponent}.
37
- */
38
- export class RadialGaugeComponent extends GaugeComponent {
39
- /**
40
- * Sets the configuration of the pointers.
41
- * You can configure single or multiple pointers for the RadialGauge.
42
- */
43
- pointer;
44
- /**
45
- * Sets the configuration of the scale.
46
- * The scale defines the range, appearance, and behavior of the gauge.
47
- */
48
- scale;
49
- constructor(configurationService, themeService, intlService, localizationService, element, renderer, ngZone) {
50
- super(configurationService, themeService, intlService, localizationService, element, renderer, ngZone);
51
- }
52
- createInstance(element, options, theme, context) {
53
- this.instance = new RadialGauge(element, options, theme, context);
54
- }
55
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: RadialGaugeComponent, deps: [{ 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 });
56
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: RadialGaugeComponent, isStandalone: true, selector: "kendo-radialgauge", inputs: { pointer: "pointer", scale: "scale" }, providers: [
57
- ConfigurationService,
58
- LocalizationService,
59
- {
60
- provide: L10N_PREFIX,
61
- useValue: 'kendo.radialgauge'
62
- }
63
- ], exportAs: ["kendoRadialGauge"], usesInheritance: true, ngImport: i0, template: `
64
- <div #surface class='k-chart-surface'></div>
65
- <kendo-resize-sensor (resize)="onResize()" [rateLimit]="resizeRateLimit"></kendo-resize-sensor>
66
- `, isInline: true, dependencies: [{ kind: "component", type: ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
67
- }
68
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: RadialGaugeComponent, decorators: [{
69
- type: Component,
70
- args: [{
71
- changeDetection: ChangeDetectionStrategy.OnPush,
72
- exportAs: 'kendoRadialGauge',
73
- providers: [
74
- ConfigurationService,
75
- LocalizationService,
76
- {
77
- provide: L10N_PREFIX,
78
- useValue: 'kendo.radialgauge'
79
- }
80
- ],
81
- selector: 'kendo-radialgauge',
82
- template: `
83
- <div #surface class='k-chart-surface'></div>
84
- <kendo-resize-sensor (resize)="onResize()" [rateLimit]="resizeRateLimit"></kendo-resize-sensor>
85
- `,
86
- standalone: true,
87
- imports: [ResizeSensorComponent]
88
- }]
89
- }], ctorParameters: () => [{ type: i1.ConfigurationService }, { type: i1.ThemeService }, { type: i2.IntlService }, { type: i3.LocalizationService }, { type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.NgZone }], propDecorators: { pointer: [{
90
- type: Input
91
- }], scale: [{
92
- type: Input
93
- }] } });
@@ -1,12 +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 { RadialGaugeComponent } from './radial-gauge.component';
6
- export { RadialGaugeAreaComponent } from './gauge-area.component';
7
- export { RadialScaleComponent } from './scale.component';
8
- export { RadialLabelsComponent } from './labels.component';
9
- export { RadialPointersComponent } from './pointers.component';
10
- export { RadialPointerComponent } from './pointer.component';
11
- export { RadialRangeComponent } from './range.component';
12
- export { RadialRangesComponent } from './ranges.component';
@@ -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 { NgModule } from '@angular/core';
6
- import { KENDO_RADIALGAUGE } from '../directives';
7
- import { ThemeService } from '../services';
8
- import * as i0 from "@angular/core";
9
- import * as i1 from "./radial-gauge.component";
10
- import * as i2 from "./gauge-area.component";
11
- import * as i3 from "./scale.component";
12
- import * as i4 from "./labels.component";
13
- import * as i5 from "./pointers.component";
14
- import * as i6 from "./pointer.component";
15
- import * as i7 from "./range.component";
16
- import * as i8 from "./ranges.component";
17
- // IMPORTANT: NgModule export kept for backwards compatibility
18
- /**
19
- * Represents the [NgModule](link:site.data.urls.angular['ngmodules']) definition that includes the RadialGauge component and its directives.
20
- * Import the RadialGaugeModule into your application
21
- * [root module](link:site.data.urls.angular['ngmodules']#angular-modularity) or any other sub-module
22
- * that uses the RadialGauge component.
23
- *
24
- * @example
25
- * ```ts
26
- * import { NgModule } from '@angular/core';
27
- * import { BrowserModule } from '@angular/platform-browser';
28
- * import { RadialGaugeModule } from '@progress/kendo-angular-gauges';
29
- * import { AppComponent } from './app.component';
30
- *
31
- * @NgModule({
32
- * bootstrap: [AppComponent],
33
- * declarations: [AppComponent],
34
- * imports: [BrowserModule, RadialGaugeModule]
35
- * })
36
- * export class AppModule {
37
- * }
38
- * ```
39
- */
40
- export class RadialGaugeModule {
41
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: RadialGaugeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
42
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: RadialGaugeModule, imports: [i1.RadialGaugeComponent, i2.RadialGaugeAreaComponent, i3.RadialScaleComponent, i4.RadialLabelsComponent, i5.RadialPointersComponent, i6.RadialPointerComponent, i7.RadialRangeComponent, i8.RadialRangesComponent], exports: [i1.RadialGaugeComponent, i2.RadialGaugeAreaComponent, i3.RadialScaleComponent, i4.RadialLabelsComponent, i5.RadialPointersComponent, i6.RadialPointerComponent, i7.RadialRangeComponent, i8.RadialRangesComponent] });
43
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: RadialGaugeModule, providers: [ThemeService], imports: [i1.RadialGaugeComponent] });
44
- }
45
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: RadialGaugeModule, decorators: [{
46
- type: NgModule,
47
- args: [{
48
- exports: [...KENDO_RADIALGAUGE],
49
- imports: [...KENDO_RADIALGAUGE],
50
- providers: [ThemeService]
51
- }]
52
- }] });
@@ -1,40 +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 { CollectionChangesService, ConfigurationService } from '../services';
7
- import { RangeComponent } from '../base-components';
8
- import * as i0 from "@angular/core";
9
- import * as i1 from "../services";
10
- /**
11
- * Represents the configuration options for a range in the RadialGauge scale.
12
- *
13
- * @example
14
- * ```html
15
- * <kendo-radialgauge>
16
- * <kendo-radialgauge-scale>
17
- * <kendo-radialgauge-scale-ranges>
18
- * <kendo-radialgauge-scale-range [from]="0" [to]="50" color="red">
19
- * </kendo-radialgauge-scale-range>
20
- * </kendo-radialgauge-scale-ranges>
21
- * </kendo-radialgauge-scale>
22
- * </kendo-radialgauge>
23
- * ```
24
- */
25
- export class RadialRangeComponent extends RangeComponent {
26
- constructor(configurationService, collectionChangesService) {
27
- super(configurationService, collectionChangesService);
28
- }
29
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: RadialRangeComponent, deps: [{ token: i1.ConfigurationService }, { token: i1.CollectionChangesService }], target: i0.ɵɵFactoryTarget.Component });
30
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: RadialRangeComponent, isStandalone: true, selector: "kendo-radialgauge-scale-range", providers: [ConfigurationService], usesInheritance: true, ngImport: i0, template: '', isInline: true });
31
- }
32
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: RadialRangeComponent, decorators: [{
33
- type: Component,
34
- args: [{
35
- providers: [ConfigurationService],
36
- selector: 'kendo-radialgauge-scale-range',
37
- template: '',
38
- standalone: true
39
- }]
40
- }], ctorParameters: () => [{ type: i1.ConfigurationService }, { type: i1.CollectionChangesService }] });
@@ -1,77 +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 { RadialRangeComponent } from './range.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 RadialGauge scale ranges
13
- * ([more information and example]({% slug scaleranghes_radialgauge %})).
14
- *
15
- * Use this component to define multiple ranges on your RadialGauge scale.
16
- * Each range displays a colored segment that highlights specific value intervals.
17
- *
18
- * @example
19
- * ```ts
20
- * import { Component } from '@angular/core';
21
- *
22
- * @Component({
23
- * selector: 'my-app',
24
- * template: `
25
- * <kendo-radialgauge>
26
- * <kendo-radialgauge-scale>
27
- * <kendo-radialgauge-scale-ranges>
28
- * @for (range of ranges; track range) {
29
- * <kendo-radialgauge-scale-range
30
- * [from]="range.from" [to]="range.to" [color]="range.color">
31
- * </kendo-radialgauge-scale-range>
32
- * }
33
- * </kendo-radialgauge-scale-ranges>
34
- * </kendo-radialgauge-scale>
35
- * </kendo-radialgauge>
36
- * `
37
- * })
38
- * export class AppComponent {
39
- * public ranges: any[] = [{
40
- * from: 0,
41
- * to: 15,
42
- * color: '#ffd246'
43
- * }, {
44
- * from: 15,
45
- * to: 30,
46
- * color: '#28b4c8'
47
- * }, {
48
- * from: 30,
49
- * to: 50,
50
- * color: '#78d237'
51
- * }];
52
- * }
53
- * ```
54
- *
55
- * @remarks
56
- * Supported children components are: {@link RadialRangeComponent}
57
- */
58
- export class RadialRangesComponent extends CollectionComponent {
59
- children;
60
- constructor(configurationService, collectionChangesService) {
61
- super('scale.ranges', configurationService, collectionChangesService);
62
- }
63
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: RadialRangesComponent, deps: [{ token: i1.ConfigurationService }, { token: i1.CollectionChangesService }], target: i0.ɵɵFactoryTarget.Component });
64
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: RadialRangesComponent, isStandalone: true, selector: "kendo-radialgauge-scale-ranges", providers: [CollectionChangesService], queries: [{ propertyName: "children", predicate: RadialRangeComponent }], usesInheritance: true, ngImport: i0, template: '', isInline: true });
65
- }
66
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: RadialRangesComponent, decorators: [{
67
- type: Component,
68
- args: [{
69
- providers: [CollectionChangesService],
70
- selector: 'kendo-radialgauge-scale-ranges',
71
- template: '',
72
- standalone: true
73
- }]
74
- }], ctorParameters: () => [{ type: i1.ConfigurationService }, { type: i1.CollectionChangesService }], propDecorators: { children: [{
75
- type: ContentChildren,
76
- args: [RadialRangeComponent]
77
- }] } });
@@ -1,71 +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 { Input, Component } from '@angular/core';
6
- import { ScaleComponent } 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 for the scale of a RadialGauge
12
- * ([more information and example]({% slug scaleoptions_radialgauge %})).
13
- *
14
- * @example
15
- * ```html
16
- * <kendo-radialgauge>
17
- * <kendo-radialgauge-scale [startAngle]="0" [endAngle]="180">
18
- * </kendo-radialgauge-scale>
19
- * </kendo-radialgauge>
20
- * ```
21
- *
22
- * @remarks
23
- * Supported children components are: {@link RadialLabelsComponent}, {@link RadialRangesComponent}
24
- */
25
- export class RadialScaleComponent extends ScaleComponent {
26
- configurationService;
27
- /**
28
- * Configures the scale labels.
29
- */
30
- labels;
31
- /**
32
- * Specifies the distance between the scale ranges and the ticks.
33
- */
34
- rangeDistance;
35
- /**
36
- * Sets the ranges of the scale.
37
- */
38
- ranges;
39
- /**
40
- * Specifies the start angle of the Gauge in degrees.
41
- */
42
- startAngle;
43
- /**
44
- * Specifies the end angle of the Gauge in degrees.
45
- */
46
- endAngle;
47
- constructor(configurationService) {
48
- super('scale', configurationService);
49
- this.configurationService = configurationService;
50
- }
51
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: RadialScaleComponent, deps: [{ token: i1.ConfigurationService }], target: i0.ɵɵFactoryTarget.Component });
52
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: RadialScaleComponent, isStandalone: true, selector: "kendo-radialgauge-scale", inputs: { labels: "labels", rangeDistance: "rangeDistance", ranges: "ranges", startAngle: "startAngle", endAngle: "endAngle" }, usesInheritance: true, ngImport: i0, template: '', isInline: true });
53
- }
54
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: RadialScaleComponent, decorators: [{
55
- type: Component,
56
- args: [{
57
- selector: 'kendo-radialgauge-scale',
58
- template: '',
59
- standalone: true
60
- }]
61
- }], ctorParameters: () => [{ type: i1.ConfigurationService }], propDecorators: { labels: [{
62
- type: Input
63
- }], rangeDistance: [{
64
- type: Input
65
- }], ranges: [{
66
- type: Input
67
- }], startAngle: [{
68
- type: Input
69
- }], endAngle: [{
70
- type: Input
71
- }] } });
@@ -1,17 +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 { Injectable } from '@angular/core';
6
- import * as i0 from "@angular/core";
7
- /**
8
- * @hidden
9
- */
10
- export class CollectionChangesService {
11
- hasChanges;
12
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CollectionChangesService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
13
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CollectionChangesService });
14
- }
15
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CollectionChangesService, decorators: [{
16
- type: Injectable
17
- }] });
@@ -1,98 +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 { Injectable } from '@angular/core';
6
- import * as i0 from "@angular/core";
7
- function isObject(value) {
8
- return typeof value === "object";
9
- }
10
- function diffOptions(original, current) {
11
- if (Object.keys(original).length !== Object.keys(current).length) {
12
- return true;
13
- }
14
- for (const field in original) {
15
- if (field !== 'value' && original.hasOwnProperty(field)) {
16
- const originalValue = original[field];
17
- const currentValue = current[field];
18
- const diff = isObject(originalValue) && isObject(currentValue) ?
19
- diffOptions(originalValue, currentValue) : originalValue !== currentValue;
20
- if (diff) {
21
- return true;
22
- }
23
- }
24
- }
25
- }
26
- function diffPointerOptions(original, current) {
27
- if (!original || !current) {
28
- return true;
29
- }
30
- original = [].concat(original);
31
- current = [].concat(current);
32
- if (original.length !== current.length) {
33
- return true;
34
- }
35
- for (let idx = 0; idx < original.length; idx++) {
36
- if (diffOptions(original[idx], current[idx])) {
37
- return true;
38
- }
39
- }
40
- }
41
- /**
42
- * @hidden
43
- */
44
- export class ConfigurationService {
45
- options = {};
46
- hasChanges;
47
- valueChange;
48
- copyChanges(prefix, changes) {
49
- for (const propertyName in changes) {
50
- if (!changes.hasOwnProperty(propertyName)) {
51
- continue;
52
- }
53
- const value = changes[propertyName].currentValue;
54
- const optionName = (prefix ? prefix + '.' : '') + propertyName;
55
- this.set(optionName, value);
56
- }
57
- }
58
- read() {
59
- this.hasChanges = false;
60
- this.valueChange = false;
61
- return this.options;
62
- }
63
- readValues() {
64
- this.valueChange = false;
65
- const pointers = [].concat(this.options.pointer);
66
- return pointers.map((pointer) => pointer.value);
67
- }
68
- readValue() {
69
- this.valueChange = false;
70
- return this.options.value;
71
- }
72
- set(field, value) {
73
- const { key, options } = this.optionContext(field);
74
- if (!this.hasChanges && (key === 'value' || (key === 'pointer' && !diffPointerOptions(this.options.pointer, value)))) {
75
- this.valueChange = true;
76
- }
77
- else {
78
- this.hasChanges = true;
79
- this.valueChange = false;
80
- }
81
- options[key] = value;
82
- }
83
- optionContext(field) {
84
- const parts = field.split('.');
85
- let options = this.options;
86
- let key = parts.shift();
87
- while (parts.length > 0) {
88
- options = options[key] = options[key] || {};
89
- key = parts.shift();
90
- }
91
- return { key: key, options: options };
92
- }
93
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ConfigurationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
94
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ConfigurationService });
95
- }
96
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ConfigurationService, decorators: [{
97
- type: Injectable
98
- }] });
@@ -1,43 +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 { Injectable } from '@angular/core';
6
- import { gaugeTheme } from '@progress/kendo-charts';
7
- import * as i0 from "@angular/core";
8
- /**
9
- * @hidden
10
- */
11
- export class ThemeService {
12
- options;
13
- read() {
14
- if (!this.options) {
15
- this.load();
16
- }
17
- return this.options;
18
- }
19
- load() {
20
- if (typeof document === 'undefined') {
21
- this.options = {};
22
- return;
23
- }
24
- const container = document.createElement('div');
25
- container.style.display = 'none';
26
- container.className = 'k-gauge';
27
- document.body.appendChild(container);
28
- try {
29
- this.options = gaugeTheme(container);
30
- }
31
- finally {
32
- document.body.removeChild(container);
33
- }
34
- }
35
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ThemeService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
36
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ThemeService, providedIn: 'root' });
37
- }
38
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ThemeService, decorators: [{
39
- type: Injectable,
40
- args: [{
41
- providedIn: 'root'
42
- }]
43
- }] });
@@ -1,7 +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 { ConfigurationService } from './services/configuration.service';
6
- export { CollectionChangesService } from './services/collection-changes.service';
7
- export { ThemeService } from './services/theme.service';
@@ -1,5 +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 {};