@progress/kendo-angular-gauges 5.0.1 → 11.0.0-develop.80

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 (181) hide show
  1. package/LICENSE.md +11 -11
  2. package/NOTICE.txt +3 -3
  3. package/arc-gauge/arc-center-template.directive.d.ts +1 -1
  4. package/arc-gauge/arc-gauge.component.d.ts +1 -1
  5. package/arc-gauge/arc-gauge.directives.d.ts +1 -1
  6. package/arc-gauge/arc-gauge.module.d.ts +1 -1
  7. package/arc-gauge/color.component.d.ts +1 -1
  8. package/arc-gauge/colors.component.d.ts +1 -1
  9. package/arc-gauge/gauge-area.component.d.ts +1 -1
  10. package/arc-gauge/labels.component.d.ts +1 -1
  11. package/arc-gauge/scale.component.d.ts +1 -1
  12. package/base-components/collection-item.component.d.ts +1 -1
  13. package/base-components/collection.component.d.ts +1 -1
  14. package/base-components/gauge-area.component.d.ts +1 -1
  15. package/base-components/gauge.component.d.ts +1 -1
  16. package/base-components/labels.component.d.ts +1 -1
  17. package/base-components/range.component.d.ts +1 -1
  18. package/base-components/scale.component.d.ts +1 -1
  19. package/base-components/settings.component.d.ts +1 -1
  20. package/base-components.d.ts +1 -1
  21. package/circular-gauge/center-template.directive.d.ts +1 -1
  22. package/circular-gauge/circular-gauge.component.d.ts +1 -1
  23. package/circular-gauge/circular-gauge.directives.d.ts +1 -1
  24. package/circular-gauge/circular-gauge.module.d.ts +1 -1
  25. package/circular-gauge/gauge-area.component.d.ts +1 -1
  26. package/circular-gauge/labels.component.d.ts +1 -1
  27. package/circular-gauge/scale.component.d.ts +1 -1
  28. package/{esm2015/arc-gauge/arc-center-template.directive.js → esm2020/arc-gauge/arc-center-template.directive.mjs} +5 -5
  29. package/{esm2015/arc-gauge/arc-gauge.component.js → esm2020/arc-gauge/arc-gauge.component.mjs} +9 -9
  30. package/{esm2015/arc-gauge/arc-gauge.directives.js → esm2020/arc-gauge/arc-gauge.directives.mjs} +1 -1
  31. package/{esm2015/arc-gauge/arc-gauge.module.js → esm2020/arc-gauge/arc-gauge.module.mjs} +5 -5
  32. package/{esm2015/arc-gauge/color.component.js → esm2020/arc-gauge/color.component.mjs} +5 -5
  33. package/{esm2015/arc-gauge/colors.component.js → esm2020/arc-gauge/colors.component.mjs} +6 -6
  34. package/{esm2015/arc-gauge/gauge-area.component.js → esm2020/arc-gauge/gauge-area.component.mjs} +5 -4
  35. package/{esm2015/arc-gauge/labels.component.js → esm2020/arc-gauge/labels.component.mjs} +5 -4
  36. package/{esm2015/arc-gauge/scale.component.js → esm2020/arc-gauge/scale.component.mjs} +5 -4
  37. package/{esm2015/base-components/collection-item.component.js → esm2020/base-components/collection-item.component.mjs} +5 -4
  38. package/{esm2015/base-components/collection.component.js → esm2020/base-components/collection.component.mjs} +5 -4
  39. package/{esm2015/base-components/gauge-area.component.js → esm2020/base-components/gauge-area.component.mjs} +4 -4
  40. package/{esm2015/base-components/gauge.component.js → esm2020/base-components/gauge.component.mjs} +8 -5
  41. package/{esm2015/base-components/labels.component.js → esm2020/base-components/labels.component.mjs} +4 -4
  42. package/{esm2015/base-components/range.component.js → esm2020/base-components/range.component.mjs} +4 -4
  43. package/{esm2015/base-components/scale.component.js → esm2020/base-components/scale.component.mjs} +4 -4
  44. package/{esm2015/base-components/settings.component.js → esm2020/base-components/settings.component.mjs} +5 -4
  45. package/{esm2015/base-components.js → esm2020/base-components.mjs} +1 -1
  46. package/{esm2015/circular-gauge/center-template.directive.js → esm2020/circular-gauge/center-template.directive.mjs} +5 -5
  47. package/{esm2015/circular-gauge/circular-gauge.component.js → esm2020/circular-gauge/circular-gauge.component.mjs} +4 -4
  48. package/{esm2015/circular-gauge/circular-gauge.directives.js → esm2020/circular-gauge/circular-gauge.directives.mjs} +1 -1
  49. package/{esm2015/circular-gauge/circular-gauge.module.js → esm2020/circular-gauge/circular-gauge.module.mjs} +5 -5
  50. package/{esm2015/circular-gauge/gauge-area.component.js → esm2020/circular-gauge/gauge-area.component.mjs} +4 -4
  51. package/{esm2015/circular-gauge/labels.component.js → esm2020/circular-gauge/labels.component.mjs} +4 -4
  52. package/{esm2015/circular-gauge/scale.component.js → esm2020/circular-gauge/scale.component.mjs} +4 -4
  53. package/{esm2015/gauges.module.js → esm2020/gauges.module.mjs} +5 -5
  54. package/{esm2015/main.js → esm2020/index.mjs} +1 -1
  55. package/{esm2015/linear-gauge/gauge-area.component.js → esm2020/linear-gauge/gauge-area.component.mjs} +5 -4
  56. package/{esm2015/linear-gauge/labels.component.js → esm2020/linear-gauge/labels.component.mjs} +5 -4
  57. package/{esm2015/linear-gauge/linear-gauge.component.js → esm2020/linear-gauge/linear-gauge.component.mjs} +7 -6
  58. package/{esm2015/linear-gauge/linear-gauge.directives.js → esm2020/linear-gauge/linear-gauge.directives.mjs} +1 -1
  59. package/{esm2015/linear-gauge/linear-gauge.module.js → esm2020/linear-gauge/linear-gauge.module.mjs} +5 -5
  60. package/{esm2015/linear-gauge/pointer.component.js → esm2020/linear-gauge/pointer.component.mjs} +5 -5
  61. package/{esm2015/linear-gauge/pointers.component.js → esm2020/linear-gauge/pointers.component.mjs} +6 -6
  62. package/{esm2015/linear-gauge/range.component.js → esm2020/linear-gauge/range.component.mjs} +5 -5
  63. package/{esm2015/linear-gauge/ranges.component.js → esm2020/linear-gauge/ranges.component.mjs} +6 -6
  64. package/{esm2015/linear-gauge/scale.component.js → esm2020/linear-gauge/scale.component.mjs} +5 -4
  65. package/{esm2015/package-metadata.js → esm2020/package-metadata.mjs} +3 -3
  66. package/{esm2015/kendo-angular-gauges.js → esm2020/progress-kendo-angular-gauges.mjs} +2 -2
  67. package/{esm2015/radial-gauge/gauge-area.component.js → esm2020/radial-gauge/gauge-area.component.mjs} +5 -4
  68. package/{esm2015/radial-gauge/labels.component.js → esm2020/radial-gauge/labels.component.mjs} +5 -4
  69. package/{esm2015/radial-gauge/pointer.component.js → esm2020/radial-gauge/pointer.component.mjs} +5 -5
  70. package/{esm2015/radial-gauge/pointers.component.js → esm2020/radial-gauge/pointers.component.mjs} +6 -6
  71. package/{esm2015/radial-gauge/radial-gauge.component.js → esm2020/radial-gauge/radial-gauge.component.mjs} +7 -6
  72. package/{esm2015/radial-gauge/radial-gauge.directives.js → esm2020/radial-gauge/radial-gauge.directives.mjs} +1 -1
  73. package/{esm2015/radial-gauge/radial-gauge.module.js → esm2020/radial-gauge/radial-gauge.module.mjs} +5 -5
  74. package/{esm2015/radial-gauge/range.component.js → esm2020/radial-gauge/range.component.mjs} +5 -5
  75. package/{esm2015/radial-gauge/ranges.component.js → esm2020/radial-gauge/ranges.component.mjs} +6 -6
  76. package/{esm2015/radial-gauge/scale.component.js → esm2020/radial-gauge/scale.component.mjs} +5 -4
  77. package/{esm2015/services/collection-changes.service.js → esm2020/services/collection-changes.service.mjs} +4 -4
  78. package/{esm2015/services/configuration.service.js → esm2020/services/configuration.service.mjs} +6 -6
  79. package/{esm2015/services/theme.service.js → esm2020/services/theme.service.mjs} +4 -4
  80. package/{esm2015/services.js → esm2020/services.mjs} +1 -1
  81. package/{esm2015/shared.module.js → esm2020/shared.module.mjs} +5 -5
  82. package/{esm2015/types/cap.interface.js → esm2020/types/arc-scale.interface.mjs} +1 -1
  83. package/{esm2015/types/border.interface.js → esm2020/types/border.interface.mjs} +1 -1
  84. package/{esm2015/types.js → esm2020/types/cap.interface.mjs} +1 -1
  85. package/esm2020/types/circular-gauge-scale.interface.mjs +5 -0
  86. package/esm2020/types/color-range.interface.mjs +5 -0
  87. package/esm2020/types/dash-type.interface.mjs +5 -0
  88. package/esm2020/types/gauge-area.interface.mjs +5 -0
  89. package/esm2020/types/labels.interface.mjs +5 -0
  90. package/esm2020/types/line-cap.mjs +5 -0
  91. package/esm2020/types/line.interface.mjs +5 -0
  92. package/esm2020/types/linear-pointer-shape.mjs +5 -0
  93. package/esm2020/types/linear-pointer.interface.mjs +5 -0
  94. package/esm2020/types/linear-scale.interface.mjs +5 -0
  95. package/esm2020/types/margin.interface.mjs +5 -0
  96. package/esm2020/types/padding.interface.mjs +5 -0
  97. package/esm2020/types/radial-label-position.mjs +5 -0
  98. package/esm2020/types/radial-labels.interface.mjs +5 -0
  99. package/esm2020/types/radial-pointer.interface.mjs +5 -0
  100. package/esm2020/types/radial-scale.interface.mjs +5 -0
  101. package/esm2020/types/range.interface.mjs +5 -0
  102. package/esm2020/types/scale.interface.mjs +5 -0
  103. package/esm2020/types/ticks.interface.mjs +5 -0
  104. package/{esm2015/types/arc-scale.interface.js → esm2020/types.mjs} +1 -1
  105. package/fesm2015/progress-kendo-angular-gauges.mjs +1927 -0
  106. package/{fesm2015/kendo-angular-gauges.js → fesm2020/progress-kendo-angular-gauges.mjs} +149 -150
  107. package/gauges.module.d.ts +1 -1
  108. package/{main.d.ts → index.d.ts} +1 -1
  109. package/linear-gauge/gauge-area.component.d.ts +1 -1
  110. package/linear-gauge/labels.component.d.ts +1 -1
  111. package/linear-gauge/linear-gauge.component.d.ts +1 -1
  112. package/linear-gauge/linear-gauge.directives.d.ts +1 -1
  113. package/linear-gauge/linear-gauge.module.d.ts +1 -1
  114. package/linear-gauge/pointer.component.d.ts +1 -1
  115. package/linear-gauge/pointers.component.d.ts +1 -1
  116. package/linear-gauge/range.component.d.ts +1 -1
  117. package/linear-gauge/ranges.component.d.ts +1 -1
  118. package/linear-gauge/scale.component.d.ts +1 -1
  119. package/package-metadata.d.ts +1 -1
  120. package/package.json +29 -55
  121. package/{kendo-angular-gauges.d.ts → progress-kendo-angular-gauges.d.ts} +2 -2
  122. package/radial-gauge/gauge-area.component.d.ts +1 -1
  123. package/radial-gauge/labels.component.d.ts +1 -1
  124. package/radial-gauge/pointer.component.d.ts +1 -1
  125. package/radial-gauge/pointers.component.d.ts +1 -1
  126. package/radial-gauge/radial-gauge.component.d.ts +1 -1
  127. package/radial-gauge/radial-gauge.directives.d.ts +1 -1
  128. package/radial-gauge/radial-gauge.module.d.ts +1 -1
  129. package/radial-gauge/range.component.d.ts +1 -1
  130. package/radial-gauge/ranges.component.d.ts +1 -1
  131. package/radial-gauge/scale.component.d.ts +1 -1
  132. package/schematics/ngAdd/index.js +1 -5
  133. package/services/collection-changes.service.d.ts +1 -1
  134. package/services/configuration.service.d.ts +1 -1
  135. package/services/theme.service.d.ts +1 -1
  136. package/services.d.ts +1 -1
  137. package/shared.module.d.ts +1 -1
  138. package/types/arc-scale.interface.d.ts +1 -1
  139. package/types/border.interface.d.ts +1 -1
  140. package/types/cap.interface.d.ts +1 -1
  141. package/types/circular-gauge-scale.interface.d.ts +1 -1
  142. package/types/color-range.interface.d.ts +1 -1
  143. package/types/dash-type.interface.d.ts +1 -1
  144. package/types/gauge-area.interface.d.ts +1 -1
  145. package/types/labels.interface.d.ts +1 -1
  146. package/types/line-cap.d.ts +1 -1
  147. package/types/line.interface.d.ts +1 -1
  148. package/types/linear-pointer-shape.d.ts +1 -1
  149. package/types/linear-pointer.interface.d.ts +1 -1
  150. package/types/linear-scale.interface.d.ts +1 -1
  151. package/types/margin.interface.d.ts +1 -1
  152. package/types/padding.interface.d.ts +1 -1
  153. package/types/radial-label-position.d.ts +1 -1
  154. package/types/radial-labels.interface.d.ts +1 -1
  155. package/types/radial-pointer.interface.d.ts +1 -1
  156. package/types/radial-scale.interface.d.ts +1 -1
  157. package/types/range.interface.d.ts +1 -1
  158. package/types/scale.interface.d.ts +1 -1
  159. package/types/ticks.interface.d.ts +1 -1
  160. package/types.d.ts +1 -1
  161. package/bundles/kendo-angular-gauges.umd.js +0 -5
  162. package/esm2015/types/circular-gauge-scale.interface.js +0 -5
  163. package/esm2015/types/color-range.interface.js +0 -5
  164. package/esm2015/types/dash-type.interface.js +0 -5
  165. package/esm2015/types/gauge-area.interface.js +0 -5
  166. package/esm2015/types/labels.interface.js +0 -5
  167. package/esm2015/types/line-cap.js +0 -5
  168. package/esm2015/types/line.interface.js +0 -5
  169. package/esm2015/types/linear-pointer-shape.js +0 -5
  170. package/esm2015/types/linear-pointer.interface.js +0 -5
  171. package/esm2015/types/linear-scale.interface.js +0 -5
  172. package/esm2015/types/margin.interface.js +0 -5
  173. package/esm2015/types/padding.interface.js +0 -5
  174. package/esm2015/types/radial-label-position.js +0 -5
  175. package/esm2015/types/radial-labels.interface.js +0 -5
  176. package/esm2015/types/radial-pointer.interface.js +0 -5
  177. package/esm2015/types/radial-scale.interface.js +0 -5
  178. package/esm2015/types/range.interface.js +0 -5
  179. package/esm2015/types/scale.interface.js +0 -5
  180. package/esm2015/types/ticks.interface.js +0 -5
  181. package/schematics/ngAdd/index.js.map +0 -1
@@ -0,0 +1,1927 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2022 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import * as i0 from '@angular/core';
6
+ import { Injectable, NgModule, Directive, Input, ViewChild, HostBinding, Optional, Component, ChangeDetectionStrategy, ContentChild, ContentChildren } from '@angular/core';
7
+ import * as i5 from '@angular/common';
8
+ import { CommonModule } from '@angular/common';
9
+ import * as i4 from '@progress/kendo-angular-common';
10
+ import { ResizeSensorModule, ResizeSensorComponent } from '@progress/kendo-angular-common';
11
+ export { ResizeSensorComponent } from '@progress/kendo-angular-common';
12
+ import * as i3 from '@progress/kendo-angular-l10n';
13
+ import { LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
14
+ import { exportImage, exportSVG, drawDOM } from '@progress/kendo-drawing';
15
+ import { validatePackage } from '@progress/kendo-licensing';
16
+ import * as i2 from '@progress/kendo-angular-intl';
17
+ import { ArcGauge, LinearGauge, RadialGauge, CircularGauge } from '@progress/kendo-charts';
18
+
19
+ function isObject(value) {
20
+ return typeof value === "object";
21
+ }
22
+ function diffOptions(original, current) {
23
+ if (Object.keys(original).length !== Object.keys(current).length) {
24
+ return true;
25
+ }
26
+ for (const field in original) {
27
+ if (field !== 'value' && original.hasOwnProperty(field)) {
28
+ const originalValue = original[field];
29
+ const currentValue = current[field];
30
+ const diff = isObject(originalValue) && isObject(currentValue) ?
31
+ diffOptions(originalValue, currentValue) : originalValue !== currentValue;
32
+ if (diff) {
33
+ return true;
34
+ }
35
+ }
36
+ }
37
+ }
38
+ function diffPointerOptions(original, current) {
39
+ if (!original || !current) {
40
+ return true;
41
+ }
42
+ original = [].concat(original);
43
+ current = [].concat(current);
44
+ if (original.length !== current.length) {
45
+ return true;
46
+ }
47
+ for (let idx = 0; idx < original.length; idx++) {
48
+ if (diffOptions(original[idx], current[idx])) {
49
+ return true;
50
+ }
51
+ }
52
+ }
53
+ /**
54
+ * @hidden
55
+ */
56
+ class ConfigurationService {
57
+ constructor() {
58
+ this.options = {};
59
+ }
60
+ copyChanges(prefix, changes) {
61
+ for (const propertyName in changes) {
62
+ if (!changes.hasOwnProperty(propertyName)) {
63
+ continue;
64
+ }
65
+ const value = changes[propertyName].currentValue;
66
+ const optionName = (prefix ? prefix + '.' : '') + propertyName;
67
+ this.set(optionName, value);
68
+ }
69
+ }
70
+ read() {
71
+ this.hasChanges = false;
72
+ this.valueChange = false;
73
+ return this.options;
74
+ }
75
+ readValues() {
76
+ this.valueChange = false;
77
+ const pointers = [].concat(this.options.pointer);
78
+ return pointers.map((pointer) => pointer.value);
79
+ }
80
+ readValue() {
81
+ this.valueChange = false;
82
+ return this.options.value;
83
+ }
84
+ set(field, value) {
85
+ const { key, options } = this.optionContext(field);
86
+ if (!this.hasChanges && (key === 'value' || (key === 'pointer' && !diffPointerOptions(this.options.pointer, value)))) {
87
+ this.valueChange = true;
88
+ }
89
+ else {
90
+ this.hasChanges = true;
91
+ this.valueChange = false;
92
+ }
93
+ options[key] = value;
94
+ }
95
+ optionContext(field) {
96
+ const parts = field.split('.');
97
+ let options = this.options;
98
+ let key = parts.shift();
99
+ while (parts.length > 0) {
100
+ options = options[key] = options[key] || {};
101
+ key = parts.shift();
102
+ }
103
+ return { key: key, options: options };
104
+ }
105
+ }
106
+ ConfigurationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ConfigurationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
107
+ ConfigurationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ConfigurationService });
108
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ConfigurationService, decorators: [{
109
+ type: Injectable
110
+ }] });
111
+
112
+ /**
113
+ * @hidden
114
+ */
115
+ class CollectionChangesService {
116
+ }
117
+ CollectionChangesService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CollectionChangesService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
118
+ CollectionChangesService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CollectionChangesService });
119
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CollectionChangesService, decorators: [{
120
+ type: Injectable
121
+ }] });
122
+
123
+ const template = `
124
+ <div class="k-var--gauge-pointer"></div>
125
+ <div class="k-var--gauge-track"></div>
126
+ <div class="k-var--normal-text-color"></div>
127
+ `;
128
+ /**
129
+ * @hidden
130
+ */
131
+ class ThemeService {
132
+ read() {
133
+ if (!this.options) {
134
+ this.load();
135
+ }
136
+ return this.options;
137
+ }
138
+ load() {
139
+ if (typeof document === 'undefined') {
140
+ this.options = {};
141
+ return;
142
+ }
143
+ const container = document.createElement('div');
144
+ container.style.display = 'none';
145
+ container.innerHTML = template;
146
+ document.body.appendChild(container);
147
+ try {
148
+ const pointerColor = this.getColor(container, 'gauge-pointer');
149
+ const rangePlaceholder = this.getColor(container, 'gauge-track');
150
+ const textColor = this.getColor(container, 'normal-text-color');
151
+ this.options = {
152
+ pointer: {
153
+ color: pointerColor
154
+ },
155
+ scale: {
156
+ labels: {
157
+ color: textColor
158
+ },
159
+ rangePlaceholderColor: rangePlaceholder,
160
+ minorTicks: {
161
+ color: textColor
162
+ },
163
+ majorTicks: {
164
+ color: textColor
165
+ },
166
+ line: {
167
+ color: textColor
168
+ }
169
+ }
170
+ };
171
+ }
172
+ finally {
173
+ document.body.removeChild(container);
174
+ }
175
+ }
176
+ getColor(container, varName) {
177
+ return window.getComputedStyle(container.querySelector(`.k-var--${varName}`)).backgroundColor;
178
+ }
179
+ }
180
+ ThemeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ThemeService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
181
+ ThemeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ThemeService });
182
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ThemeService, decorators: [{
183
+ type: Injectable
184
+ }] });
185
+
186
+ /**
187
+ * @hidden
188
+ */
189
+ class SharedModule {
190
+ }
191
+ SharedModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SharedModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
192
+ SharedModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SharedModule, exports: [ResizeSensorModule] });
193
+ SharedModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SharedModule, providers: [
194
+ ThemeService
195
+ ], imports: [ResizeSensorModule] });
196
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SharedModule, decorators: [{
197
+ type: NgModule,
198
+ args: [{
199
+ exports: [ResizeSensorModule],
200
+ providers: [
201
+ ThemeService
202
+ ]
203
+ }]
204
+ }] });
205
+
206
+ /**
207
+ * @hidden
208
+ */
209
+ class CollectionComponent {
210
+ constructor(key, configurationService, collectionChangesService) {
211
+ this.key = key;
212
+ this.configurationService = configurationService;
213
+ this.collectionChangesService = collectionChangesService;
214
+ }
215
+ ngOnDestroy() {
216
+ this.subscription.unsubscribe();
217
+ this.configurationService.set(this.key, []);
218
+ }
219
+ ngAfterContentInit() {
220
+ this.subscription = this.children.changes.subscribe(() => this.collectionChangesService.hasChanges = true);
221
+ }
222
+ ngAfterContentChecked() {
223
+ if (this.collectionChangesService.hasChanges) {
224
+ this.configurationService.set(this.key, this.readItems());
225
+ this.collectionChangesService.hasChanges = false;
226
+ }
227
+ }
228
+ readItems() {
229
+ return this.children.map(child => Object.assign({}, child.configurationService.read()));
230
+ }
231
+ }
232
+ CollectionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CollectionComponent, deps: "invalid", target: i0.ɵɵFactoryTarget.Directive });
233
+ CollectionComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: CollectionComponent, ngImport: i0 });
234
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CollectionComponent, decorators: [{
235
+ type: Directive
236
+ }], ctorParameters: function () { return [{ type: undefined }, { type: ConfigurationService }, { type: CollectionChangesService }]; } });
237
+
238
+ /**
239
+ * @hidden
240
+ */
241
+ class CollectionItemComponent {
242
+ constructor(configurationService, collectionChangesService) {
243
+ this.configurationService = configurationService;
244
+ this.collectionChangesService = collectionChangesService;
245
+ }
246
+ ngOnChanges(changes) {
247
+ this.configurationService.copyChanges('', changes);
248
+ this.collectionChangesService.hasChanges = true;
249
+ }
250
+ }
251
+ CollectionItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CollectionItemComponent, deps: [{ token: ConfigurationService }, { token: CollectionChangesService }], target: i0.ɵɵFactoryTarget.Directive });
252
+ CollectionItemComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: CollectionItemComponent, usesOnChanges: true, ngImport: i0 });
253
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CollectionItemComponent, decorators: [{
254
+ type: Directive
255
+ }], ctorParameters: function () { return [{ type: ConfigurationService }, { type: CollectionChangesService }]; } });
256
+
257
+ /**
258
+ * @hidden
259
+ */
260
+ const packageMetadata = {
261
+ name: '@progress/kendo-angular-gauges',
262
+ productName: 'Kendo UI for Angular',
263
+ productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
264
+ publishDate: 1672394491,
265
+ version: '',
266
+ licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
267
+ };
268
+
269
+ const inDocument = (element) => {
270
+ let node = element;
271
+ while (node && node !== document.body) {
272
+ node = node.parentNode;
273
+ }
274
+ return Boolean(node);
275
+ };
276
+ /**
277
+ * @hidden
278
+ */
279
+ class GaugeComponent {
280
+ constructor(configurationService, themeService, intlService, localizationService, element, renderer, ngZone) {
281
+ this.configurationService = configurationService;
282
+ this.themeService = themeService;
283
+ this.intlService = intlService;
284
+ this.localizationService = localizationService;
285
+ this.element = element;
286
+ this.renderer = renderer;
287
+ this.ngZone = ngZone;
288
+ /**
289
+ * The maximum number of times the Gauge resizes per second.
290
+ * Defaults to `10`. To disable the automatic resizing, set `resizeRateLimit` to `0`.
291
+ */
292
+ this.resizeRateLimit = 10;
293
+ this.className = true;
294
+ this.theme = null;
295
+ this.rtl = false;
296
+ validatePackage(packageMetadata);
297
+ }
298
+ ngOnInit() {
299
+ this.setDirection();
300
+ this.subscriptions = this.intlService.changes.subscribe(this.intlChange.bind(this));
301
+ this.subscriptions.add(this.localizationService.changes.subscribe(this.rtlChange.bind(this)));
302
+ }
303
+ ngAfterViewChecked() {
304
+ if (typeof document === 'undefined') {
305
+ return;
306
+ }
307
+ let updateMethod;
308
+ if (!this.instance) {
309
+ updateMethod = this.init;
310
+ }
311
+ else if (this.configurationService.hasChanges) {
312
+ updateMethod = this.updateOptions;
313
+ }
314
+ else if (this.configurationService.valueChange) {
315
+ updateMethod = this.setValues;
316
+ }
317
+ if (updateMethod) {
318
+ clearTimeout(this.redrawTimeout);
319
+ if (!this.instance && !inDocument(this.element.nativeElement)) { // required in case the gauge is initialized by ng-content outside of the DOM
320
+ this.defer(() => {
321
+ this.updateCall(updateMethod);
322
+ });
323
+ }
324
+ else {
325
+ this.updateCall(updateMethod);
326
+ }
327
+ }
328
+ }
329
+ updateCall(updateMethod) {
330
+ this.updateDirection();
331
+ updateMethod.call(this);
332
+ this.updateSize();
333
+ }
334
+ updateOptions() {
335
+ this.instance.setOptions(this.configurationService.read());
336
+ }
337
+ setValues() {
338
+ this.instance.allValues(this.configurationService.readValues());
339
+ }
340
+ ngOnChanges(changes) {
341
+ this.configurationService.copyChanges('', changes);
342
+ }
343
+ ngOnDestroy() {
344
+ if (this.instance) {
345
+ this.instance.destroy();
346
+ }
347
+ this.subscriptions.unsubscribe();
348
+ clearTimeout(this.redrawTimeout);
349
+ }
350
+ /**
351
+ * Exports the Gauge as an image. The export operation is asynchronous and returns a promise.
352
+ *
353
+ * @param {ImageExportOptions} options - The parameters for the exported image.
354
+ * @returns {Promise<string>} - A promise that will be resolved with a PNG image that is encoded as a Data URI.
355
+ */
356
+ exportImage(options = {}) {
357
+ return this.exportVisual().then((visual) => {
358
+ return exportImage(visual, options);
359
+ });
360
+ }
361
+ /**
362
+ * Exports the Gauge as an SVG document. The export operation is asynchronous and returns a promise.
363
+ *
364
+ * @param {SVGExportOptions} options - The parameters for the exported file.
365
+ * @returns {Promise<string>} - A promise that will be resolved with an SVG document that is encoded as a Data URI.
366
+ */
367
+ exportSVG(options = {}) {
368
+ return this.exportVisual().then((visual) => {
369
+ return exportSVG(visual, options);
370
+ });
371
+ }
372
+ /**
373
+ * Exports the Gauge as a Drawing `Scene`.
374
+ *
375
+ * @returns {Promise<Group>} - A promise that will be resolved with the export visual.
376
+ */
377
+ exportVisual() {
378
+ return Promise.resolve(this.instance.exportVisual());
379
+ }
380
+ /**
381
+ * @hidden
382
+ */
383
+ onResize(_event) {
384
+ if (this.autoResize) {
385
+ this.resize();
386
+ }
387
+ }
388
+ /**
389
+ * Detects the size of the container and redraws the Gauge.
390
+ * Resizing is automatic unless you set the `resizeRateLimit` option to `0`.
391
+ */
392
+ resize() {
393
+ if (this.instance) {
394
+ this.instance.resize();
395
+ }
396
+ }
397
+ init() {
398
+ if (!this.surfaceElement) {
399
+ return;
400
+ }
401
+ this.createInstance(this.surfaceElement.nativeElement, this.configurationService.read(), this.themeService.read(), {
402
+ intlService: this.intlService,
403
+ rtl: this.rtl
404
+ });
405
+ }
406
+ get autoResize() {
407
+ return this.resizeRateLimit > 0;
408
+ }
409
+ updateSize() {
410
+ this.resizeSensor.acceptSize();
411
+ }
412
+ intlChange() {
413
+ if (this.instance) {
414
+ this.deferredRedraw();
415
+ }
416
+ }
417
+ rtlChange() {
418
+ if (this.instance && this.rtl !== this.isRTL) {
419
+ this.deferredRedraw();
420
+ }
421
+ }
422
+ deferredRedraw() {
423
+ this.defer(() => {
424
+ this.updateDirection();
425
+ this.instance.noTransitionsRedraw();
426
+ });
427
+ }
428
+ defer(callback) {
429
+ this.ngZone.runOutsideAngular(() => {
430
+ clearTimeout(this.redrawTimeout);
431
+ this.redrawTimeout = setTimeout(callback, 0);
432
+ });
433
+ }
434
+ updateDirection() {
435
+ const current = this.isRTL;
436
+ if (this.rtl !== current) {
437
+ this.setDirection();
438
+ if (this.instance) {
439
+ this.instance.setDirection(current);
440
+ }
441
+ }
442
+ }
443
+ setDirection() {
444
+ this.rtl = this.isRTL;
445
+ if (this.element) {
446
+ this.renderer.setAttribute(this.element.nativeElement, 'dir', this.rtl ? 'rtl' : 'ltr');
447
+ }
448
+ }
449
+ get isRTL() {
450
+ return Boolean(this.localizationService.rtl);
451
+ }
452
+ }
453
+ GaugeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: GaugeComponent, deps: [{ token: ConfigurationService }, { token: ThemeService }, { token: i2.IntlService }, { token: i3.LocalizationService }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });
454
+ GaugeComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: GaugeComponent, inputs: { gaugeArea: "gaugeArea", renderAs: "renderAs", resizeRateLimit: "resizeRateLimit", scale: "scale", transitions: "transitions" }, host: { properties: { "class.k-gauge": "this.className" } }, viewQueries: [{ propertyName: "surfaceElement", first: true, predicate: ["surface"], descendants: true, static: true }, { propertyName: "resizeSensor", first: true, predicate: ResizeSensorComponent, descendants: true, static: true }], usesOnChanges: true, ngImport: i0 });
455
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: GaugeComponent, decorators: [{
456
+ type: Directive
457
+ }], ctorParameters: function () { return [{ type: ConfigurationService }, { type: ThemeService }, { type: i2.IntlService }, { type: i3.LocalizationService }, { type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.NgZone }]; }, propDecorators: { gaugeArea: [{
458
+ type: Input
459
+ }], renderAs: [{
460
+ type: Input
461
+ }], resizeRateLimit: [{
462
+ type: Input
463
+ }], scale: [{
464
+ type: Input
465
+ }], transitions: [{
466
+ type: Input
467
+ }], surfaceElement: [{
468
+ type: ViewChild,
469
+ args: ['surface', { static: true }]
470
+ }], resizeSensor: [{
471
+ type: ViewChild,
472
+ args: [ResizeSensorComponent, { static: true }]
473
+ }], className: [{
474
+ type: HostBinding,
475
+ args: ['class.k-gauge']
476
+ }] } });
477
+
478
+ /**
479
+ * @hidden
480
+ */
481
+ class SettingsComponent {
482
+ constructor(key, configurationService) {
483
+ this.key = key;
484
+ this.configurationService = configurationService;
485
+ }
486
+ ngOnChanges(changes) {
487
+ this.configurationService.copyChanges(this.key, changes);
488
+ }
489
+ ngOnDestroy() {
490
+ this.configurationService.set(this.key, null);
491
+ }
492
+ }
493
+ SettingsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SettingsComponent, deps: "invalid", target: i0.ɵɵFactoryTarget.Directive });
494
+ SettingsComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: SettingsComponent, usesOnChanges: true, ngImport: i0 });
495
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SettingsComponent, decorators: [{
496
+ type: Directive
497
+ }], ctorParameters: function () { return [{ type: undefined }, { type: ConfigurationService }]; } });
498
+
499
+ /**
500
+ * @hidden
501
+ */
502
+ class GaugeAreaComponent extends SettingsComponent {
503
+ }
504
+ GaugeAreaComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: GaugeAreaComponent, deps: null, target: i0.ɵɵFactoryTarget.Directive });
505
+ GaugeAreaComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: GaugeAreaComponent, inputs: { background: "background", border: "border", height: "height", margin: "margin", width: "width" }, usesInheritance: true, ngImport: i0 });
506
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: GaugeAreaComponent, decorators: [{
507
+ type: Directive
508
+ }], propDecorators: { background: [{
509
+ type: Input
510
+ }], border: [{
511
+ type: Input
512
+ }], height: [{
513
+ type: Input
514
+ }], margin: [{
515
+ type: Input
516
+ }], width: [{
517
+ type: Input
518
+ }] } });
519
+
520
+ /**
521
+ * @hidden
522
+ */
523
+ class LabelsComponent extends SettingsComponent {
524
+ }
525
+ LabelsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: LabelsComponent, deps: null, target: i0.ɵɵFactoryTarget.Directive });
526
+ LabelsComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: LabelsComponent, inputs: { background: "background", border: "border", color: "color", font: "font", format: "format", margin: "margin", padding: "padding", content: "content", visible: "visible" }, usesInheritance: true, ngImport: i0 });
527
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: LabelsComponent, decorators: [{
528
+ type: Directive
529
+ }], propDecorators: { background: [{
530
+ type: Input
531
+ }], border: [{
532
+ type: Input
533
+ }], color: [{
534
+ type: Input
535
+ }], font: [{
536
+ type: Input
537
+ }], format: [{
538
+ type: Input
539
+ }], margin: [{
540
+ type: Input
541
+ }], padding: [{
542
+ type: Input
543
+ }], content: [{
544
+ type: Input
545
+ }], visible: [{
546
+ type: Input
547
+ }] } });
548
+
549
+ /**
550
+ * @hidden
551
+ */
552
+ class RangeComponent extends CollectionItemComponent {
553
+ }
554
+ RangeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: RangeComponent, deps: null, target: i0.ɵɵFactoryTarget.Directive });
555
+ RangeComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: RangeComponent, inputs: { from: "from", to: "to", opacity: "opacity", color: "color" }, usesInheritance: true, ngImport: i0 });
556
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: RangeComponent, decorators: [{
557
+ type: Directive
558
+ }], propDecorators: { from: [{
559
+ type: Input
560
+ }], to: [{
561
+ type: Input
562
+ }], opacity: [{
563
+ type: Input
564
+ }], color: [{
565
+ type: Input
566
+ }] } });
567
+
568
+ /**
569
+ * @hidden
570
+ */
571
+ class ScaleComponent extends SettingsComponent {
572
+ }
573
+ ScaleComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ScaleComponent, deps: null, target: i0.ɵɵFactoryTarget.Directive });
574
+ ScaleComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: ScaleComponent, inputs: { labels: "labels", majorTicks: "majorTicks", minorTicks: "minorTicks", min: "min", max: "max", minorUnit: "minorUnit", majorUnit: "majorUnit", reverse: "reverse", rangeSize: "rangeSize", rangePlaceholderColor: "rangePlaceholderColor" }, usesInheritance: true, ngImport: i0 });
575
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ScaleComponent, decorators: [{
576
+ type: Directive
577
+ }], propDecorators: { labels: [{
578
+ type: Input
579
+ }], majorTicks: [{
580
+ type: Input
581
+ }], minorTicks: [{
582
+ type: Input
583
+ }], min: [{
584
+ type: Input
585
+ }], max: [{
586
+ type: Input
587
+ }], minorUnit: [{
588
+ type: Input
589
+ }], majorUnit: [{
590
+ type: Input
591
+ }], reverse: [{
592
+ type: Input
593
+ }], rangeSize: [{
594
+ type: Input
595
+ }], rangePlaceholderColor: [{
596
+ type: Input
597
+ }] } });
598
+
599
+ /**
600
+ * A directive that selects a [template](link:site.data.urls.angular['templatesyntax'])
601
+ * within the `<kendo-arcgauge>` component which will be used for the center template
602
+ * ([more information and example]({% slug centertemplate_arcgauge %})).
603
+ *
604
+ * @example
605
+ * ```ts
606
+ * import { Component } from '@angular/core';
607
+ *
608
+ * _@Component({
609
+ * selector: 'my-app',
610
+ * template: `
611
+ * <kendo-arcgauge [value]="value">
612
+ * <ng-template kendoArcGaugeCenterTemplate let-value="value">
613
+ * {{ value }}%
614
+ * </ng-template>
615
+ * </kendo-arcgauge>
616
+ *
617
+ * `
618
+ * })
619
+ * export class AppComponent {
620
+ * public value: number = 10;
621
+ * }
622
+ *
623
+ * ```
624
+ */
625
+ class ArcCenterTemplateDirective {
626
+ constructor(templateRef) {
627
+ this.templateRef = templateRef;
628
+ }
629
+ }
630
+ ArcCenterTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ArcCenterTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
631
+ ArcCenterTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: ArcCenterTemplateDirective, selector: "[kendoArcGaugeCenterTemplate]", ngImport: i0 });
632
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ArcCenterTemplateDirective, decorators: [{
633
+ type: Directive,
634
+ args: [{
635
+ selector: '[kendoArcGaugeCenterTemplate]'
636
+ }]
637
+ }], ctorParameters: function () {
638
+ return [{ type: i0.TemplateRef, decorators: [{
639
+ type: Optional
640
+ }] }];
641
+ } });
642
+
643
+ /**
644
+ * Represents the [Kendo UI ArcGauge component for Angular]({% slug overview_arcgauge_gauges %}).
645
+ *
646
+ * @example
647
+ * ```ts
648
+ * import { Component } from '@angular/core';
649
+ *
650
+ * _@Component({
651
+ * selector: 'my-app',
652
+ * template: `
653
+ * <kendo-arcgauge [value]="value" [scale]="{ max: 100 }">
654
+ * <ng-template kendoArcGaugeCenterTemplate let-value="value">
655
+ * {{ value }}%
656
+ * </ng-template>
657
+ * </kendo-arcgauge>
658
+ * `
659
+ * })
660
+ * class AppComponent {
661
+ * public value: number = 10;
662
+ * }
663
+ *
664
+ * ```
665
+ */
666
+ class ArcGaugeComponent extends GaugeComponent {
667
+ constructor(changeDetector, configurationService, themeService, intlService, localizationService, element, renderer, ngZone) {
668
+ super(configurationService, themeService, intlService, localizationService, element, renderer, ngZone);
669
+ this.changeDetector = changeDetector;
670
+ this.className = true;
671
+ this.centerTemplateContext = {};
672
+ }
673
+ ngOnInit() {
674
+ super.ngOnInit();
675
+ if (this.element) {
676
+ this.renderer.setStyle(this.element.nativeElement, 'position', 'relative');
677
+ }
678
+ }
679
+ ngAfterViewChecked() {
680
+ super.ngAfterViewChecked();
681
+ if (this.labelElement && !this.centerTemplate) {
682
+ this.changeDetector.detectChanges();
683
+ }
684
+ else if (!this.labelElement && this.centerTemplate) {
685
+ this.updateCenterTemplate();
686
+ }
687
+ }
688
+ /**
689
+ * Exports the gauge as a Drawing `Scene`.
690
+ *
691
+ * @returns {Promise<Group>} - A promise that will be resolved with the export visual.
692
+ */
693
+ exportVisual() {
694
+ return drawDOM(this.element.nativeElement);
695
+ }
696
+ /**
697
+ * Detects the size of the container and redraws the Gauge.
698
+ * Resizing is automatic unless you set the `resizeRateLimit` option to `0`.
699
+ */
700
+ resize() {
701
+ super.resize();
702
+ this.updateCenterTemplate();
703
+ }
704
+ createInstance(element, options, theme, context) {
705
+ this.instance = new ArcGauge(element, options, theme, context);
706
+ this.updateElements();
707
+ }
708
+ updateOptions() {
709
+ super.updateOptions();
710
+ this.updateElements();
711
+ }
712
+ setValues() {
713
+ const value = this.configurationService.readValue();
714
+ this.instance.value(value);
715
+ this.updateCenterTemplate();
716
+ }
717
+ updateElements() {
718
+ this.resizeSensor.acceptSize();
719
+ this.updateCenterTemplate();
720
+ }
721
+ updateCenterTemplate() {
722
+ if (!this.instance || !this.centerTemplate) {
723
+ return;
724
+ }
725
+ this.centerTemplateContext.value = this.instance.value();
726
+ this.centerTemplateContext.color = this.instance.currentColor();
727
+ this.changeDetector.detectChanges();
728
+ this.positionLabel();
729
+ }
730
+ positionLabel() {
731
+ if (!this.labelElement) {
732
+ return;
733
+ }
734
+ const element = this.labelElement.nativeElement;
735
+ const width = element.offsetWidth;
736
+ const height = element.offsetHeight;
737
+ const position = this.instance.centerLabelPosition(width, height);
738
+ element.style.top = `${position.top}px`;
739
+ element.style.left = `${position.left}px`;
740
+ }
741
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
742
+ updateSize() { }
743
+ }
744
+ ArcGaugeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ArcGaugeComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: ConfigurationService }, { token: ThemeService }, { token: i2.IntlService }, { token: i3.LocalizationService }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
745
+ ArcGaugeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: ArcGaugeComponent, selector: "kendo-arcgauge", inputs: { value: "value", color: "color", colors: "colors", opacity: "opacity", scale: "scale" }, host: { properties: { "class.k-arcgauge": "this.className" } }, providers: [
746
+ ConfigurationService,
747
+ LocalizationService,
748
+ {
749
+ provide: L10N_PREFIX,
750
+ useValue: 'kendo.arcgauge'
751
+ }
752
+ ], queries: [{ propertyName: "centerTemplate", first: true, predicate: ArcCenterTemplateDirective, descendants: true }], viewQueries: [{ propertyName: "labelElement", first: true, predicate: ["label"], descendants: true }], exportAs: ["kendoArcGauge"], usesInheritance: true, ngImport: i0, template: `
753
+ <div #surface class='k-chart-surface'></div>
754
+ <div class="k-arcgauge-label" *ngIf="centerTemplate" #label>
755
+ <ng-template [ngTemplateOutlet]="centerTemplate.templateRef" [ngTemplateOutletContext]="centerTemplateContext"></ng-template>
756
+ </div>
757
+ <kendo-resize-sensor (resize)="onResize($event)" [rateLimit]="resizeRateLimit"></kendo-resize-sensor>
758
+ `, isInline: true, components: [{ type: i4.ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }], directives: [{ type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i5.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
759
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ArcGaugeComponent, decorators: [{
760
+ type: Component,
761
+ args: [{
762
+ changeDetection: ChangeDetectionStrategy.OnPush,
763
+ exportAs: 'kendoArcGauge',
764
+ providers: [
765
+ ConfigurationService,
766
+ LocalizationService,
767
+ {
768
+ provide: L10N_PREFIX,
769
+ useValue: 'kendo.arcgauge'
770
+ }
771
+ ],
772
+ selector: 'kendo-arcgauge',
773
+ template: `
774
+ <div #surface class='k-chart-surface'></div>
775
+ <div class="k-arcgauge-label" *ngIf="centerTemplate" #label>
776
+ <ng-template [ngTemplateOutlet]="centerTemplate.templateRef" [ngTemplateOutletContext]="centerTemplateContext"></ng-template>
777
+ </div>
778
+ <kendo-resize-sensor (resize)="onResize($event)" [rateLimit]="resizeRateLimit"></kendo-resize-sensor>
779
+ `
780
+ }]
781
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: ConfigurationService }, { type: ThemeService }, { type: i2.IntlService }, { type: i3.LocalizationService }, { type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.NgZone }]; }, propDecorators: { value: [{
782
+ type: Input
783
+ }], color: [{
784
+ type: Input
785
+ }], colors: [{
786
+ type: Input
787
+ }], opacity: [{
788
+ type: Input
789
+ }], scale: [{
790
+ type: Input
791
+ }], centerTemplate: [{
792
+ type: ContentChild,
793
+ args: [ArcCenterTemplateDirective, { static: false }]
794
+ }], labelElement: [{
795
+ type: ViewChild,
796
+ args: ["label", { static: false }]
797
+ }], className: [{
798
+ type: HostBinding,
799
+ args: ['class.k-arcgauge']
800
+ }] } });
801
+
802
+ /**
803
+ * The configuration options of the ArcGauge area.
804
+ * Represents the entire visible area of the ArcGauge.
805
+ */
806
+ class ArcGaugeAreaComponent extends GaugeAreaComponent {
807
+ constructor(configurationService) {
808
+ super('gaugeArea', configurationService);
809
+ this.configurationService = configurationService;
810
+ }
811
+ }
812
+ ArcGaugeAreaComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ArcGaugeAreaComponent, deps: [{ token: ConfigurationService }], target: i0.ɵɵFactoryTarget.Component });
813
+ ArcGaugeAreaComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: ArcGaugeAreaComponent, selector: "kendo-arcgauge-area", usesInheritance: true, ngImport: i0, template: '', isInline: true });
814
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ArcGaugeAreaComponent, decorators: [{
815
+ type: Component,
816
+ args: [{
817
+ selector: 'kendo-arcgauge-area',
818
+ template: ''
819
+ }]
820
+ }], ctorParameters: function () { return [{ type: ConfigurationService }]; } });
821
+
822
+ /**
823
+ * The configuration options for the scale of the ArcGauge
824
+ * ([see example]({% slug scaleoptions_arcgauge %})).
825
+ */
826
+ class ArcScaleComponent extends ScaleComponent {
827
+ constructor(configurationService) {
828
+ super('scale', configurationService);
829
+ this.configurationService = configurationService;
830
+ }
831
+ }
832
+ ArcScaleComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ArcScaleComponent, deps: [{ token: ConfigurationService }], target: i0.ɵɵFactoryTarget.Component });
833
+ ArcScaleComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: ArcScaleComponent, selector: "kendo-arcgauge-scale", inputs: { labels: "labels", rangeDistance: "rangeDistance", rangeLineCap: "rangeLineCap", startAngle: "startAngle", endAngle: "endAngle" }, usesInheritance: true, ngImport: i0, template: '', isInline: true });
834
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ArcScaleComponent, decorators: [{
835
+ type: Component,
836
+ args: [{
837
+ selector: 'kendo-arcgauge-scale',
838
+ template: ''
839
+ }]
840
+ }], ctorParameters: function () { return [{ type: ConfigurationService }]; }, propDecorators: { labels: [{
841
+ type: Input
842
+ }], rangeDistance: [{
843
+ type: Input
844
+ }], rangeLineCap: [{
845
+ type: Input
846
+ }], startAngle: [{
847
+ type: Input
848
+ }], endAngle: [{
849
+ type: Input
850
+ }] } });
851
+
852
+ /**
853
+ * The configuration options for the scale labels of the RadialGauge.
854
+ */
855
+ class RadialLabelsComponent extends LabelsComponent {
856
+ constructor(configurationService) {
857
+ super('scale.labels', configurationService);
858
+ this.configurationService = configurationService;
859
+ }
860
+ }
861
+ RadialLabelsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: RadialLabelsComponent, deps: [{ token: ConfigurationService }], target: i0.ɵɵFactoryTarget.Component });
862
+ RadialLabelsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: RadialLabelsComponent, selector: "kendo-radialgauge-scale-labels", inputs: { position: "position" }, usesInheritance: true, ngImport: i0, template: '', isInline: true });
863
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: RadialLabelsComponent, decorators: [{
864
+ type: Component,
865
+ args: [{
866
+ selector: 'kendo-radialgauge-scale-labels',
867
+ template: ''
868
+ }]
869
+ }], ctorParameters: function () { return [{ type: ConfigurationService }]; }, propDecorators: { position: [{
870
+ type: Input
871
+ }] } });
872
+
873
+ /**
874
+ * The configuration options for the scale labels of the ArcGauge.
875
+ */
876
+ class ArcLabelsComponent extends RadialLabelsComponent {
877
+ constructor(configurationService) {
878
+ super(configurationService);
879
+ this.configurationService = configurationService;
880
+ configurationService.set(`${this.key}.visible`, true);
881
+ }
882
+ }
883
+ ArcLabelsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ArcLabelsComponent, deps: [{ token: ConfigurationService }], target: i0.ɵɵFactoryTarget.Component });
884
+ ArcLabelsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: ArcLabelsComponent, selector: "kendo-arcgauge-scale-labels", usesInheritance: true, ngImport: i0, template: '', isInline: true });
885
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ArcLabelsComponent, decorators: [{
886
+ type: Component,
887
+ args: [{
888
+ selector: 'kendo-arcgauge-scale-labels',
889
+ template: ''
890
+ }]
891
+ }], ctorParameters: function () { return [{ type: ConfigurationService }]; } });
892
+
893
+ /**
894
+ * The configuration options for an ArcGauge color item.
895
+ */
896
+ class ColorComponent extends CollectionItemComponent {
897
+ constructor(configurationService, collectionChangesService) {
898
+ super(configurationService, collectionChangesService);
899
+ }
900
+ }
901
+ ColorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ColorComponent, deps: [{ token: ConfigurationService }, { token: CollectionChangesService }], target: i0.ɵɵFactoryTarget.Component });
902
+ ColorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: ColorComponent, selector: "kendo-arcgauge-color", inputs: { color: "color", opacity: "opacity", from: "from", to: "to" }, providers: [ConfigurationService], usesInheritance: true, ngImport: i0, template: '', isInline: true });
903
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ColorComponent, decorators: [{
904
+ type: Component,
905
+ args: [{
906
+ providers: [ConfigurationService],
907
+ selector: 'kendo-arcgauge-color',
908
+ template: ''
909
+ }]
910
+ }], ctorParameters: function () { return [{ type: ConfigurationService }, { type: CollectionChangesService }]; }, propDecorators: { color: [{
911
+ type: Input
912
+ }], opacity: [{
913
+ type: Input
914
+ }], from: [{
915
+ type: Input
916
+ }], to: [{
917
+ type: Input
918
+ }] } });
919
+
920
+ /**
921
+ * A collection of one or more ArcGauge colors
922
+ * ([more information and example]({% slug colorranges_arcgauge %})).
923
+ *
924
+ * @example
925
+ * ```ts
926
+ * import { Component } from '@angular/core';
927
+ *
928
+ * _@Component({
929
+ * selector: 'my-app',
930
+ * template: `
931
+ * <kendo-arcgauge [value]="value">
932
+ * <kendo-arcgauge-colors>
933
+ * <kendo-arcgauge-color *ngFor="let item of colors"
934
+ * [from]="item.from" [to]="item.to" [color]="item.color">
935
+ * </kendo-arcgauge-color>
936
+ * </kendo-arcgauge-colors>
937
+ * </kendo-arcgauge>
938
+ * `
939
+ * })
940
+ * export class AppComponent {
941
+ * public value: number = 10;
942
+ *
943
+ * public colors: any[] = [{
944
+ * to: 25,
945
+ * color: '#0058e9'
946
+ * }, {
947
+ * from: 25,
948
+ * to: 50,
949
+ * color: '#37b400'
950
+ * }, {
951
+ * from: 50,
952
+ * to: 75,
953
+ * color: '#ffc000'
954
+ * }, {
955
+ * from: 75,
956
+ * color: '#f31700'
957
+ * }];
958
+ * }
959
+ *
960
+ * ```
961
+ */
962
+ class ColorsComponent extends CollectionComponent {
963
+ constructor(configurationService, collectionChangesService) {
964
+ super('colors', configurationService, collectionChangesService);
965
+ }
966
+ }
967
+ ColorsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ColorsComponent, deps: [{ token: ConfigurationService }, { token: CollectionChangesService }], target: i0.ɵɵFactoryTarget.Component });
968
+ ColorsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: ColorsComponent, selector: "kendo-arcgauge-colors", providers: [CollectionChangesService], queries: [{ propertyName: "children", predicate: ColorComponent }], usesInheritance: true, ngImport: i0, template: '', isInline: true });
969
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ColorsComponent, decorators: [{
970
+ type: Component,
971
+ args: [{
972
+ providers: [CollectionChangesService],
973
+ selector: 'kendo-arcgauge-colors',
974
+ template: ''
975
+ }]
976
+ }], ctorParameters: function () { return [{ type: ConfigurationService }, { type: CollectionChangesService }]; }, propDecorators: { children: [{
977
+ type: ContentChildren,
978
+ args: [ColorComponent]
979
+ }] } });
980
+
981
+ const DIRECTIVES$3 = [ArcGaugeComponent, ArcCenterTemplateDirective, ArcGaugeAreaComponent, ArcScaleComponent, ArcLabelsComponent,
982
+ ColorsComponent, ColorComponent];
983
+ /**
984
+ * A [module](link:site.data.urls.angular['ngmodules']) that includes the ArcGauge component and its directives.
985
+ * Imports the `ArcGaugeModule` into your application
986
+ * [root module](link:site.data.urls.angular['ngmodules']#angular-modularity) or any other sub-module
987
+ * that will use the ArcGauge component.
988
+ *
989
+ * @example
990
+ * ```ts-no-run
991
+ * import { NgModule } from '@angular/core';
992
+ * import { BrowserModule } from '@angular/platform-browser';
993
+ * import { ArcGaugeModule } from '@progress/kendo-angular-gauges';
994
+ * import { AppComponent } from './app.component';
995
+ *
996
+ * _@NgModule({
997
+ * bootstrap: [AppComponent],
998
+ * declarations: [AppComponent],
999
+ * imports: [BrowserModule, ArcGaugeModule]
1000
+ * })
1001
+ * export class AppModule {
1002
+ * }
1003
+ * ```
1004
+ */
1005
+ class ArcGaugeModule {
1006
+ }
1007
+ ArcGaugeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ArcGaugeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1008
+ ArcGaugeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ArcGaugeModule, declarations: [ArcGaugeComponent, ArcCenterTemplateDirective, ArcGaugeAreaComponent, ArcScaleComponent, ArcLabelsComponent,
1009
+ ColorsComponent, ColorComponent], imports: [SharedModule, CommonModule], exports: [ArcGaugeComponent, ArcCenterTemplateDirective, ArcGaugeAreaComponent, ArcScaleComponent, ArcLabelsComponent,
1010
+ ColorsComponent, ColorComponent] });
1011
+ ArcGaugeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ArcGaugeModule, imports: [[SharedModule, CommonModule]] });
1012
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ArcGaugeModule, decorators: [{
1013
+ type: NgModule,
1014
+ args: [{
1015
+ declarations: [DIRECTIVES$3],
1016
+ exports: [DIRECTIVES$3],
1017
+ imports: [SharedModule, CommonModule]
1018
+ }]
1019
+ }] });
1020
+
1021
+ /**
1022
+ * Represents the [Kendo UI LinearGauge component for Angular]({% slug overview_lineargauge_gauges %}).
1023
+ *
1024
+ * @example
1025
+ * ```ts
1026
+ * import { Component } from '@angular/core';
1027
+ *
1028
+ * _@Component({
1029
+ * selector: 'my-app',
1030
+ * template: `
1031
+ * <kendo-lineargauge [pointer]="{ value: value }">
1032
+ * </kendo-lineargauge>
1033
+ * `
1034
+ * })
1035
+ * class AppComponent {
1036
+ * public value: number = 10;
1037
+ * }
1038
+ *
1039
+ * ```
1040
+ */
1041
+ class LinearGaugeComponent extends GaugeComponent {
1042
+ constructor(configurationService, themeService, intlService, localizationService, element, renderer, ngZone) {
1043
+ super(configurationService, themeService, intlService, localizationService, element, renderer, ngZone);
1044
+ }
1045
+ createInstance(element, options, theme, context) {
1046
+ this.instance = new LinearGauge(element, options, theme, context);
1047
+ }
1048
+ }
1049
+ LinearGaugeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: LinearGaugeComponent, deps: [{ token: ConfigurationService }, { token: ThemeService }, { token: i2.IntlService }, { token: i3.LocalizationService }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
1050
+ LinearGaugeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: LinearGaugeComponent, selector: "kendo-lineargauge", inputs: { pointer: "pointer", scale: "scale" }, providers: [
1051
+ ConfigurationService,
1052
+ LocalizationService,
1053
+ {
1054
+ provide: L10N_PREFIX,
1055
+ useValue: 'kendo.lineargauge'
1056
+ }
1057
+ ], exportAs: ["kendoLinearGauge"], usesInheritance: true, ngImport: i0, template: `
1058
+ <div #surface class='k-chart-surface'></div>
1059
+ <kendo-resize-sensor (resize)="onResize($event)" [rateLimit]="resizeRateLimit"></kendo-resize-sensor>
1060
+ `, isInline: true, components: [{ type: i4.ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1061
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: LinearGaugeComponent, decorators: [{
1062
+ type: Component,
1063
+ args: [{
1064
+ changeDetection: ChangeDetectionStrategy.OnPush,
1065
+ exportAs: 'kendoLinearGauge',
1066
+ providers: [
1067
+ ConfigurationService,
1068
+ LocalizationService,
1069
+ {
1070
+ provide: L10N_PREFIX,
1071
+ useValue: 'kendo.lineargauge'
1072
+ }
1073
+ ],
1074
+ selector: 'kendo-lineargauge',
1075
+ template: `
1076
+ <div #surface class='k-chart-surface'></div>
1077
+ <kendo-resize-sensor (resize)="onResize($event)" [rateLimit]="resizeRateLimit"></kendo-resize-sensor>
1078
+ `
1079
+ }]
1080
+ }], ctorParameters: function () { return [{ type: ConfigurationService }, { type: ThemeService }, { type: i2.IntlService }, { type: i3.LocalizationService }, { type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.NgZone }]; }, propDecorators: { pointer: [{
1081
+ type: Input
1082
+ }], scale: [{
1083
+ type: Input
1084
+ }] } });
1085
+
1086
+ /**
1087
+ * The configuration options for the LinearGauge area.
1088
+ * Represents the entire visible area of the LinearGauge.
1089
+ */
1090
+ class LinearGaugeAreaComponent extends GaugeAreaComponent {
1091
+ constructor(configurationService) {
1092
+ super('gaugeArea', configurationService);
1093
+ this.configurationService = configurationService;
1094
+ }
1095
+ }
1096
+ LinearGaugeAreaComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: LinearGaugeAreaComponent, deps: [{ token: ConfigurationService }], target: i0.ɵɵFactoryTarget.Component });
1097
+ LinearGaugeAreaComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: LinearGaugeAreaComponent, selector: "kendo-lineargauge-area", usesInheritance: true, ngImport: i0, template: '', isInline: true });
1098
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: LinearGaugeAreaComponent, decorators: [{
1099
+ type: Component,
1100
+ args: [{
1101
+ selector: 'kendo-lineargauge-area',
1102
+ template: ''
1103
+ }]
1104
+ }], ctorParameters: function () { return [{ type: ConfigurationService }]; } });
1105
+
1106
+ /**
1107
+ * The configuration options for the scale of the LinearGauge
1108
+ * ([see example]({% slug scaleoptions_lineargauge %})).
1109
+ */
1110
+ class LinearScaleComponent extends ScaleComponent {
1111
+ constructor(configurationService) {
1112
+ super('scale', configurationService);
1113
+ this.configurationService = configurationService;
1114
+ }
1115
+ }
1116
+ LinearScaleComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: LinearScaleComponent, deps: [{ token: ConfigurationService }], target: i0.ɵɵFactoryTarget.Component });
1117
+ LinearScaleComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: LinearScaleComponent, selector: "kendo-lineargauge-scale", inputs: { line: "line", ranges: "ranges", mirror: "mirror", vertical: "vertical" }, usesInheritance: true, ngImport: i0, template: '', isInline: true });
1118
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: LinearScaleComponent, decorators: [{
1119
+ type: Component,
1120
+ args: [{
1121
+ selector: 'kendo-lineargauge-scale',
1122
+ template: ''
1123
+ }]
1124
+ }], ctorParameters: function () { return [{ type: ConfigurationService }]; }, propDecorators: { line: [{
1125
+ type: Input
1126
+ }], ranges: [{
1127
+ type: Input
1128
+ }], mirror: [{
1129
+ type: Input
1130
+ }], vertical: [{
1131
+ type: Input
1132
+ }] } });
1133
+
1134
+ /**
1135
+ * The configuration options for the scale labels of the LinearGauge.
1136
+ */
1137
+ class LinearLabelsComponent extends LabelsComponent {
1138
+ constructor(configurationService) {
1139
+ super('scale.labels', configurationService);
1140
+ this.configurationService = configurationService;
1141
+ }
1142
+ }
1143
+ LinearLabelsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: LinearLabelsComponent, deps: [{ token: ConfigurationService }], target: i0.ɵɵFactoryTarget.Component });
1144
+ LinearLabelsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: LinearLabelsComponent, selector: "kendo-lineargauge-scale-labels", usesInheritance: true, ngImport: i0, template: '', isInline: true });
1145
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: LinearLabelsComponent, decorators: [{
1146
+ type: Component,
1147
+ args: [{
1148
+ selector: 'kendo-lineargauge-scale-labels',
1149
+ template: ''
1150
+ }]
1151
+ }], ctorParameters: function () { return [{ type: ConfigurationService }]; } });
1152
+
1153
+ /**
1154
+ * The configuration options for a pointer item of a LinearGauge.
1155
+ */
1156
+ class LinearPointerComponent extends CollectionItemComponent {
1157
+ constructor(configurationService, collectionChangesService) {
1158
+ super(configurationService, collectionChangesService);
1159
+ }
1160
+ }
1161
+ LinearPointerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: LinearPointerComponent, deps: [{ token: ConfigurationService }, { token: CollectionChangesService }], target: i0.ɵɵFactoryTarget.Component });
1162
+ LinearPointerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: LinearPointerComponent, selector: "kendo-lineargauge-pointer", inputs: { border: "border", color: "color", margin: "margin", opacity: "opacity", shape: "shape", size: "size", value: "value" }, providers: [ConfigurationService], usesInheritance: true, ngImport: i0, template: '', isInline: true });
1163
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: LinearPointerComponent, decorators: [{
1164
+ type: Component,
1165
+ args: [{
1166
+ providers: [ConfigurationService],
1167
+ selector: 'kendo-lineargauge-pointer',
1168
+ template: ''
1169
+ }]
1170
+ }], ctorParameters: function () { return [{ type: ConfigurationService }, { type: CollectionChangesService }]; }, propDecorators: { border: [{
1171
+ type: Input
1172
+ }], color: [{
1173
+ type: Input
1174
+ }], margin: [{
1175
+ type: Input
1176
+ }], opacity: [{
1177
+ type: Input
1178
+ }], shape: [{
1179
+ type: Input
1180
+ }], size: [{
1181
+ type: Input
1182
+ }], value: [{
1183
+ type: Input
1184
+ }] } });
1185
+
1186
+ /**
1187
+ * A collection of one or more LinearGauge pointers
1188
+ * ([more information]({% slug multiplepointers_lineargauge %})).
1189
+ *
1190
+ * @example
1191
+ * ```ts
1192
+ * import { Component } from '@angular/core';
1193
+ *
1194
+ * _@Component({
1195
+ * selector: 'my-app',
1196
+ * template: `
1197
+ * <kendo-lineargauge>
1198
+ * <kendo-lineargauge-pointers>
1199
+ * <kendo-lineargauge-pointer *ngFor="let pointer of pointers"
1200
+ * [value]="pointer.value" [color]="pointer.color" shape="barIndicator">
1201
+ * </kendo-lineargauge-pointer>
1202
+ * </kendo-lineargauge-pointers>
1203
+ * </kendo-lineargauge>
1204
+ * `
1205
+ * })
1206
+ * export class AppComponent {
1207
+ * public pointers: any[] = [{
1208
+ * value: 10,
1209
+ * color: '#ff4500'
1210
+ * }, {
1211
+ * value: 12,
1212
+ * color: '#28b4c8'
1213
+ * }, {
1214
+ * value: 20,
1215
+ * color: '#8b0000'
1216
+ * }];
1217
+ * }
1218
+ *
1219
+ * ```
1220
+ */
1221
+ class LinearPointersComponent extends CollectionComponent {
1222
+ constructor(configurationService, collectionChangesService) {
1223
+ super('pointer', configurationService, collectionChangesService);
1224
+ }
1225
+ }
1226
+ LinearPointersComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: LinearPointersComponent, deps: [{ token: ConfigurationService }, { token: CollectionChangesService }], target: i0.ɵɵFactoryTarget.Component });
1227
+ LinearPointersComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: LinearPointersComponent, selector: "kendo-lineargauge-pointers", providers: [CollectionChangesService], queries: [{ propertyName: "children", predicate: LinearPointerComponent }], usesInheritance: true, ngImport: i0, template: '', isInline: true });
1228
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: LinearPointersComponent, decorators: [{
1229
+ type: Component,
1230
+ args: [{
1231
+ providers: [CollectionChangesService],
1232
+ selector: 'kendo-lineargauge-pointers',
1233
+ template: ''
1234
+ }]
1235
+ }], ctorParameters: function () { return [{ type: ConfigurationService }, { type: CollectionChangesService }]; }, propDecorators: { children: [{
1236
+ type: ContentChildren,
1237
+ args: [LinearPointerComponent]
1238
+ }] } });
1239
+
1240
+ /**
1241
+ * The configuration options for a scale range item of a LinearGauge.
1242
+ */
1243
+ class LinearRangeComponent extends RangeComponent {
1244
+ constructor(configurationService, collectionChangesService) {
1245
+ super(configurationService, collectionChangesService);
1246
+ }
1247
+ }
1248
+ LinearRangeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: LinearRangeComponent, deps: [{ token: ConfigurationService }, { token: CollectionChangesService }], target: i0.ɵɵFactoryTarget.Component });
1249
+ LinearRangeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: LinearRangeComponent, selector: "kendo-lineargauge-scale-range", providers: [ConfigurationService], usesInheritance: true, ngImport: i0, template: '', isInline: true });
1250
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: LinearRangeComponent, decorators: [{
1251
+ type: Component,
1252
+ args: [{
1253
+ providers: [ConfigurationService],
1254
+ selector: 'kendo-lineargauge-scale-range',
1255
+ template: ''
1256
+ }]
1257
+ }], ctorParameters: function () { return [{ type: ConfigurationService }, { type: CollectionChangesService }]; } });
1258
+
1259
+ /**
1260
+ * A collection of one or more LinearGauge scale ranges
1261
+ * ([more information and example]({% slug scaleranghes_lineargauge %})).
1262
+ *
1263
+ * @example
1264
+ * ```ts
1265
+ * import { Component } from '@angular/core';
1266
+ *
1267
+ * _@Component({
1268
+ * selector: 'my-app',
1269
+ * template: `
1270
+ * <kendo-lineargauge>
1271
+ * <kendo-lineargauge-scale>
1272
+ * <kendo-lineargauge-scale-ranges>
1273
+ * <kendo-lineargauge-scale-range *ngFor="let range of ranges"
1274
+ * [from]="range.from" [to]="range.to" [color]="range.color">
1275
+ * </kendo-lineargauge-scale-range>
1276
+ * </kendo-lineargauge-scale-ranges>
1277
+ * </kendo-lineargauge-scale>
1278
+ * </kendo-lineargauge>
1279
+ * `
1280
+ * })
1281
+ * export class AppComponent {
1282
+ * public ranges: any[] = [{
1283
+ * from: 0,
1284
+ * to: 15,
1285
+ * color: '#ffd246'
1286
+ * }, {
1287
+ * from: 15,
1288
+ * to: 30,
1289
+ * color: '#28b4c8'
1290
+ * }, {
1291
+ * from: 30,
1292
+ * to: 50,
1293
+ * color: '#78d237'
1294
+ * }];
1295
+ * }
1296
+ *
1297
+ * ```
1298
+ */
1299
+ class LinearRangesComponent extends CollectionComponent {
1300
+ constructor(configurationService, collectionChangesService) {
1301
+ super('scale.ranges', configurationService, collectionChangesService);
1302
+ }
1303
+ }
1304
+ LinearRangesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: LinearRangesComponent, deps: [{ token: ConfigurationService }, { token: CollectionChangesService }], target: i0.ɵɵFactoryTarget.Component });
1305
+ LinearRangesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: LinearRangesComponent, selector: "kendo-lineargauge-scale-ranges", providers: [CollectionChangesService], queries: [{ propertyName: "children", predicate: LinearRangeComponent }], usesInheritance: true, ngImport: i0, template: '', isInline: true });
1306
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: LinearRangesComponent, decorators: [{
1307
+ type: Component,
1308
+ args: [{
1309
+ providers: [CollectionChangesService],
1310
+ selector: 'kendo-lineargauge-scale-ranges',
1311
+ template: ''
1312
+ }]
1313
+ }], ctorParameters: function () { return [{ type: ConfigurationService }, { type: CollectionChangesService }]; }, propDecorators: { children: [{
1314
+ type: ContentChildren,
1315
+ args: [LinearRangeComponent]
1316
+ }] } });
1317
+
1318
+ const DIRECTIVES$2 = [LinearGaugeComponent, LinearGaugeAreaComponent, LinearScaleComponent, LinearLabelsComponent,
1319
+ LinearPointersComponent, LinearPointerComponent, LinearRangeComponent, LinearRangesComponent];
1320
+ /**
1321
+ * A [module](link:site.data.urls.angular['ngmodules']) that includes the LinearGauge component and its directives.
1322
+ * Imports the `LinearGaugeModule` into your application
1323
+ * [root module](link:site.data.urls.angular['ngmodules']#angular-modularity) or any other sub-module
1324
+ * that will use the LinearGauge component.
1325
+ *
1326
+ * @example
1327
+ * ```ts-no-run
1328
+ * import { NgModule } from '@angular/core';
1329
+ * import { BrowserModule } from '@angular/platform-browser';
1330
+ * import { LinearGaugeModule } from '@progress/kendo-angular-gauges';
1331
+ * import { AppComponent } from './app.component';
1332
+ *
1333
+ * _@NgModule({
1334
+ * bootstrap: [AppComponent],
1335
+ * declarations: [AppComponent],
1336
+ * imports: [BrowserModule, LinearGaugeModule]
1337
+ * })
1338
+ * export class AppModule {
1339
+ * }
1340
+ * ```
1341
+ */
1342
+ class LinearGaugeModule {
1343
+ }
1344
+ LinearGaugeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: LinearGaugeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1345
+ LinearGaugeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: LinearGaugeModule, declarations: [LinearGaugeComponent, LinearGaugeAreaComponent, LinearScaleComponent, LinearLabelsComponent,
1346
+ LinearPointersComponent, LinearPointerComponent, LinearRangeComponent, LinearRangesComponent], imports: [SharedModule], exports: [LinearGaugeComponent, LinearGaugeAreaComponent, LinearScaleComponent, LinearLabelsComponent,
1347
+ LinearPointersComponent, LinearPointerComponent, LinearRangeComponent, LinearRangesComponent] });
1348
+ LinearGaugeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: LinearGaugeModule, imports: [[SharedModule]] });
1349
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: LinearGaugeModule, decorators: [{
1350
+ type: NgModule,
1351
+ args: [{
1352
+ declarations: [DIRECTIVES$2],
1353
+ exports: [DIRECTIVES$2],
1354
+ imports: [SharedModule]
1355
+ }]
1356
+ }] });
1357
+
1358
+ /**
1359
+ * Represents the [Kendo UI RadialGauge component for Angular]({% slug overview_radialgauge_gauges %}).
1360
+ *
1361
+ * @example
1362
+ * ```ts
1363
+ * import { Component } from '@angular/core';
1364
+ *
1365
+ * _@Component({
1366
+ * selector: 'my-app',
1367
+ * template: `
1368
+ * <kendo-radialgauge [pointer]="{ value: value }">
1369
+ * </kendo-radialgauge>
1370
+ * `
1371
+ * })
1372
+ * class AppComponent {
1373
+ * public value: number = 10;
1374
+ * }
1375
+ *
1376
+ * ```
1377
+ */
1378
+ class RadialGaugeComponent extends GaugeComponent {
1379
+ constructor(configurationService, themeService, intlService, localizationService, element, renderer, ngZone) {
1380
+ super(configurationService, themeService, intlService, localizationService, element, renderer, ngZone);
1381
+ }
1382
+ createInstance(element, options, theme, context) {
1383
+ this.instance = new RadialGauge(element, options, theme, context);
1384
+ }
1385
+ }
1386
+ RadialGaugeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: RadialGaugeComponent, deps: [{ token: ConfigurationService }, { token: ThemeService }, { token: i2.IntlService }, { token: i3.LocalizationService }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
1387
+ RadialGaugeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: RadialGaugeComponent, selector: "kendo-radialgauge", inputs: { pointer: "pointer", scale: "scale" }, providers: [
1388
+ ConfigurationService,
1389
+ LocalizationService,
1390
+ {
1391
+ provide: L10N_PREFIX,
1392
+ useValue: 'kendo.radialgauge'
1393
+ }
1394
+ ], exportAs: ["kendoRadialGauge"], usesInheritance: true, ngImport: i0, template: `
1395
+ <div #surface class='k-chart-surface'></div>
1396
+ <kendo-resize-sensor (resize)="onResize($event)" [rateLimit]="resizeRateLimit"></kendo-resize-sensor>
1397
+ `, isInline: true, components: [{ type: i4.ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1398
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: RadialGaugeComponent, decorators: [{
1399
+ type: Component,
1400
+ args: [{
1401
+ changeDetection: ChangeDetectionStrategy.OnPush,
1402
+ exportAs: 'kendoRadialGauge',
1403
+ providers: [
1404
+ ConfigurationService,
1405
+ LocalizationService,
1406
+ {
1407
+ provide: L10N_PREFIX,
1408
+ useValue: 'kendo.radialgauge'
1409
+ }
1410
+ ],
1411
+ selector: 'kendo-radialgauge',
1412
+ template: `
1413
+ <div #surface class='k-chart-surface'></div>
1414
+ <kendo-resize-sensor (resize)="onResize($event)" [rateLimit]="resizeRateLimit"></kendo-resize-sensor>
1415
+ `
1416
+ }]
1417
+ }], ctorParameters: function () { return [{ type: ConfigurationService }, { type: ThemeService }, { type: i2.IntlService }, { type: i3.LocalizationService }, { type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.NgZone }]; }, propDecorators: { pointer: [{
1418
+ type: Input
1419
+ }], scale: [{
1420
+ type: Input
1421
+ }] } });
1422
+
1423
+ /**
1424
+ * The configuration options for the RadialGauge area.
1425
+ * Represents the entire visible area of the RadialGauge.
1426
+ */
1427
+ class RadialGaugeAreaComponent extends GaugeAreaComponent {
1428
+ constructor(configurationService) {
1429
+ super('gaugeArea', configurationService);
1430
+ this.configurationService = configurationService;
1431
+ }
1432
+ }
1433
+ RadialGaugeAreaComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: RadialGaugeAreaComponent, deps: [{ token: ConfigurationService }], target: i0.ɵɵFactoryTarget.Component });
1434
+ RadialGaugeAreaComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: RadialGaugeAreaComponent, selector: "kendo-radialgauge-area", usesInheritance: true, ngImport: i0, template: '', isInline: true });
1435
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: RadialGaugeAreaComponent, decorators: [{
1436
+ type: Component,
1437
+ args: [{
1438
+ selector: 'kendo-radialgauge-area',
1439
+ template: ''
1440
+ }]
1441
+ }], ctorParameters: function () { return [{ type: ConfigurationService }]; } });
1442
+
1443
+ /**
1444
+ * The configuration options for the scale of the RadialGauge
1445
+ * ([more information and example]({% slug scaleoptions_radialgauge %})).
1446
+ */
1447
+ class RadialScaleComponent extends ScaleComponent {
1448
+ constructor(configurationService) {
1449
+ super('scale', configurationService);
1450
+ this.configurationService = configurationService;
1451
+ }
1452
+ }
1453
+ RadialScaleComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: RadialScaleComponent, deps: [{ token: ConfigurationService }], target: i0.ɵɵFactoryTarget.Component });
1454
+ RadialScaleComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: RadialScaleComponent, selector: "kendo-radialgauge-scale", inputs: { labels: "labels", rangeDistance: "rangeDistance", ranges: "ranges", startAngle: "startAngle", endAngle: "endAngle" }, usesInheritance: true, ngImport: i0, template: '', isInline: true });
1455
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: RadialScaleComponent, decorators: [{
1456
+ type: Component,
1457
+ args: [{
1458
+ selector: 'kendo-radialgauge-scale',
1459
+ template: ''
1460
+ }]
1461
+ }], ctorParameters: function () { return [{ type: ConfigurationService }]; }, propDecorators: { labels: [{
1462
+ type: Input
1463
+ }], rangeDistance: [{
1464
+ type: Input
1465
+ }], ranges: [{
1466
+ type: Input
1467
+ }], startAngle: [{
1468
+ type: Input
1469
+ }], endAngle: [{
1470
+ type: Input
1471
+ }] } });
1472
+
1473
+ /**
1474
+ * The configuration options for a pointer item of a RadialGauge.
1475
+ */
1476
+ class RadialPointerComponent extends CollectionItemComponent {
1477
+ constructor(configurationService, collectionChangesService) {
1478
+ super(configurationService, collectionChangesService);
1479
+ }
1480
+ }
1481
+ RadialPointerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: RadialPointerComponent, deps: [{ token: ConfigurationService }, { token: CollectionChangesService }], target: i0.ɵɵFactoryTarget.Component });
1482
+ RadialPointerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: RadialPointerComponent, selector: "kendo-radialgauge-pointer", inputs: { cap: "cap", color: "color", length: "length", value: "value" }, providers: [ConfigurationService], usesInheritance: true, ngImport: i0, template: '', isInline: true });
1483
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: RadialPointerComponent, decorators: [{
1484
+ type: Component,
1485
+ args: [{
1486
+ providers: [ConfigurationService],
1487
+ selector: 'kendo-radialgauge-pointer',
1488
+ template: ''
1489
+ }]
1490
+ }], ctorParameters: function () { return [{ type: ConfigurationService }, { type: CollectionChangesService }]; }, propDecorators: { cap: [{
1491
+ type: Input
1492
+ }], color: [{
1493
+ type: Input
1494
+ }], length: [{
1495
+ type: Input
1496
+ }], value: [{
1497
+ type: Input
1498
+ }] } });
1499
+
1500
+ /**
1501
+ * A collection of one or more RadialGauge pointers
1502
+ * ([more information and example]({% slug multiplepointers_radialgauge %})).
1503
+ *
1504
+ * @example
1505
+ * ```ts
1506
+ * import { Component } from '@angular/core';
1507
+ *
1508
+ * _@Component({
1509
+ * selector: 'my-app',
1510
+ * template: `
1511
+ * <kendo-radialgauge>
1512
+ * <kendo-radialgauge-pointers>
1513
+ * <kendo-radialgauge-pointer *ngFor="let pointer of pointers"
1514
+ * [value]="pointer.value" [color]="pointer.color">
1515
+ * </kendo-radialgauge-pointer>
1516
+ * </kendo-radialgauge-pointers>
1517
+ * </kendo-radialgauge>
1518
+ * `
1519
+ * })
1520
+ * export class AppComponent {
1521
+ * public pointers: any[] = [{
1522
+ * value: 10,
1523
+ * color: '#ffd246'
1524
+ * }, {
1525
+ * value: 20,
1526
+ * color: '#28b4c8'
1527
+ * }, {
1528
+ * value: 30,
1529
+ * color: '#78d237'
1530
+ * }];
1531
+ * }
1532
+ *
1533
+ * ```
1534
+ */
1535
+ class RadialPointersComponent extends CollectionComponent {
1536
+ constructor(configurationService, collectionChangesService) {
1537
+ super('pointer', configurationService, collectionChangesService);
1538
+ }
1539
+ }
1540
+ RadialPointersComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: RadialPointersComponent, deps: [{ token: ConfigurationService }, { token: CollectionChangesService }], target: i0.ɵɵFactoryTarget.Component });
1541
+ RadialPointersComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: RadialPointersComponent, selector: "kendo-radialgauge-pointers", providers: [CollectionChangesService], queries: [{ propertyName: "children", predicate: RadialPointerComponent }], usesInheritance: true, ngImport: i0, template: '', isInline: true });
1542
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: RadialPointersComponent, decorators: [{
1543
+ type: Component,
1544
+ args: [{
1545
+ providers: [CollectionChangesService],
1546
+ selector: 'kendo-radialgauge-pointers',
1547
+ template: ''
1548
+ }]
1549
+ }], ctorParameters: function () { return [{ type: ConfigurationService }, { type: CollectionChangesService }]; }, propDecorators: { children: [{
1550
+ type: ContentChildren,
1551
+ args: [RadialPointerComponent]
1552
+ }] } });
1553
+
1554
+ /**
1555
+ * The configuration options for a scale range item of a RadialGauge.
1556
+ */
1557
+ class RadialRangeComponent extends RangeComponent {
1558
+ constructor(configurationService, collectionChangesService) {
1559
+ super(configurationService, collectionChangesService);
1560
+ }
1561
+ }
1562
+ RadialRangeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: RadialRangeComponent, deps: [{ token: ConfigurationService }, { token: CollectionChangesService }], target: i0.ɵɵFactoryTarget.Component });
1563
+ RadialRangeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: RadialRangeComponent, selector: "kendo-radialgauge-scale-range", providers: [ConfigurationService], usesInheritance: true, ngImport: i0, template: '', isInline: true });
1564
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: RadialRangeComponent, decorators: [{
1565
+ type: Component,
1566
+ args: [{
1567
+ providers: [ConfigurationService],
1568
+ selector: 'kendo-radialgauge-scale-range',
1569
+ template: ''
1570
+ }]
1571
+ }], ctorParameters: function () { return [{ type: ConfigurationService }, { type: CollectionChangesService }]; } });
1572
+
1573
+ /**
1574
+ * A collection of one or more RadialGauge scale ranges
1575
+ * ([more information and example]({% slug scaleranghes_radialgauge %})).
1576
+ *
1577
+ * @example
1578
+ * ```ts
1579
+ * import { Component } from '@angular/core';
1580
+ *
1581
+ * _@Component({
1582
+ * selector: 'my-app',
1583
+ * template: `
1584
+ * <kendo-radialgauge>
1585
+ * <kendo-radialgauge-scale>
1586
+ * <kendo-radialgauge-scale-ranges>
1587
+ * <kendo-radialgauge-scale-range *ngFor="let range of ranges"
1588
+ * [from]="range.from" [to]="range.to" [color]="range.color">
1589
+ * </kendo-radialgauge-scale-range>
1590
+ * </kendo-radialgauge-scale-ranges>
1591
+ * </kendo-radialgauge-scale>
1592
+ * </kendo-radialgauge>
1593
+ * `
1594
+ * })
1595
+ * export class AppComponent {
1596
+ * public ranges: any[] = [{
1597
+ * from: 0,
1598
+ * to: 15,
1599
+ * color: '#ffd246'
1600
+ * }, {
1601
+ * from: 15,
1602
+ * to: 30,
1603
+ * color: '#28b4c8'
1604
+ * }, {
1605
+ * from: 30,
1606
+ * to: 50,
1607
+ * color: '#78d237'
1608
+ * }];
1609
+ * }
1610
+ *
1611
+ * ```
1612
+ */
1613
+ class RadialRangesComponent extends CollectionComponent {
1614
+ constructor(configurationService, collectionChangesService) {
1615
+ super('scale.ranges', configurationService, collectionChangesService);
1616
+ }
1617
+ }
1618
+ RadialRangesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: RadialRangesComponent, deps: [{ token: ConfigurationService }, { token: CollectionChangesService }], target: i0.ɵɵFactoryTarget.Component });
1619
+ RadialRangesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: RadialRangesComponent, selector: "kendo-radialgauge-scale-ranges", providers: [CollectionChangesService], queries: [{ propertyName: "children", predicate: RadialRangeComponent }], usesInheritance: true, ngImport: i0, template: '', isInline: true });
1620
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: RadialRangesComponent, decorators: [{
1621
+ type: Component,
1622
+ args: [{
1623
+ providers: [CollectionChangesService],
1624
+ selector: 'kendo-radialgauge-scale-ranges',
1625
+ template: ''
1626
+ }]
1627
+ }], ctorParameters: function () { return [{ type: ConfigurationService }, { type: CollectionChangesService }]; }, propDecorators: { children: [{
1628
+ type: ContentChildren,
1629
+ args: [RadialRangeComponent]
1630
+ }] } });
1631
+
1632
+ const DIRECTIVES$1 = [RadialGaugeComponent, RadialGaugeAreaComponent, RadialScaleComponent, RadialLabelsComponent,
1633
+ RadialPointersComponent, RadialPointerComponent, RadialRangeComponent, RadialRangesComponent];
1634
+ /**
1635
+ * A [module](link:site.data.urls.angular['ngmodules']) that includes the RadialGauge component and its directives.
1636
+ * Imports the `RadialGaugeModule` into your application
1637
+ * [root module](link:site.data.urls.angular['ngmodules']#angular-modularity) or any other sub-module
1638
+ * that will use the RadialGauge component.
1639
+ *
1640
+ * @example
1641
+ * ```ts-no-run
1642
+ * import { NgModule } from '@angular/core';
1643
+ * import { BrowserModule } from '@angular/platform-browser';
1644
+ * import { RadialGaugeModule } from '@progress/kendo-angular-gauges';
1645
+ * import { AppComponent } from './app.component';
1646
+ *
1647
+ * _@NgModule({
1648
+ * bootstrap: [AppComponent],
1649
+ * declarations: [AppComponent],
1650
+ * imports: [BrowserModule, RadialGaugeModule]
1651
+ * })
1652
+ * export class AppModule {
1653
+ * }
1654
+ * ```
1655
+ */
1656
+ class RadialGaugeModule {
1657
+ }
1658
+ RadialGaugeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: RadialGaugeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1659
+ RadialGaugeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: RadialGaugeModule, declarations: [RadialGaugeComponent, RadialGaugeAreaComponent, RadialScaleComponent, RadialLabelsComponent,
1660
+ RadialPointersComponent, RadialPointerComponent, RadialRangeComponent, RadialRangesComponent], imports: [SharedModule], exports: [RadialGaugeComponent, RadialGaugeAreaComponent, RadialScaleComponent, RadialLabelsComponent,
1661
+ RadialPointersComponent, RadialPointerComponent, RadialRangeComponent, RadialRangesComponent] });
1662
+ RadialGaugeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: RadialGaugeModule, imports: [[SharedModule]] });
1663
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: RadialGaugeModule, decorators: [{
1664
+ type: NgModule,
1665
+ args: [{
1666
+ declarations: [DIRECTIVES$1],
1667
+ exports: [DIRECTIVES$1],
1668
+ imports: [SharedModule]
1669
+ }]
1670
+ }] });
1671
+
1672
+ /**
1673
+ * A directive that selects a [template](link:site.data.urls.angular['templatesyntax'])
1674
+ * within the `<kendo-circulargauge>` component which will be used for the center template
1675
+ * ([more information and example]({% slug centertemplate_circulargauge %})).
1676
+ *
1677
+ * @example
1678
+ * ```ts
1679
+ * import { Component } from '@angular/core';
1680
+ *
1681
+ * _@Component({
1682
+ * selector: 'my-app',
1683
+ * template: `
1684
+ * <kendo-circulargauge [value]="value">
1685
+ * <ng-template kendoCircularGaugeCenterTemplate let-value="value">
1686
+ * {{ value }}%
1687
+ * </ng-template>
1688
+ * </kendo-circulargauge>
1689
+ *
1690
+ * `
1691
+ * })
1692
+ * export class AppComponent {
1693
+ * public value: number = 10;
1694
+ * }
1695
+ *
1696
+ * ```
1697
+ */
1698
+ class CircularGaugeCenterTemplateDirective {
1699
+ constructor(templateRef) {
1700
+ this.templateRef = templateRef;
1701
+ }
1702
+ }
1703
+ CircularGaugeCenterTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CircularGaugeCenterTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
1704
+ CircularGaugeCenterTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: CircularGaugeCenterTemplateDirective, selector: "[kendoCircularGaugeCenterTemplate]", ngImport: i0 });
1705
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CircularGaugeCenterTemplateDirective, decorators: [{
1706
+ type: Directive,
1707
+ args: [{
1708
+ selector: '[kendoCircularGaugeCenterTemplate]'
1709
+ }]
1710
+ }], ctorParameters: function () {
1711
+ return [{ type: i0.TemplateRef, decorators: [{
1712
+ type: Optional
1713
+ }] }];
1714
+ } });
1715
+
1716
+ /**
1717
+ * Represents the [Kendo UI CircularGauge component for Angular]({% slug overview_circulargauge_gauges %}).
1718
+ *
1719
+ * @example
1720
+ * ```ts
1721
+ * import { Component } from '@angular/core';
1722
+ *
1723
+ * _@Component({
1724
+ * selector: 'my-app',
1725
+ * template: `
1726
+ * <kendo-circulargauge [value]="value" [scale]="{ max: 100 }">
1727
+ * <ng-template kendoCircularGaugeCenterTemplate let-value="value">
1728
+ * {{ value }}%
1729
+ * </ng-template>
1730
+ * </kendo-circulargauge>
1731
+ * `
1732
+ * })
1733
+ * class AppComponent {
1734
+ * public value: number = 10;
1735
+ * }
1736
+ *
1737
+ * ```
1738
+ */
1739
+ class CircularGaugeComponent extends ArcGaugeComponent {
1740
+ createInstance(element, options, theme, context) {
1741
+ this.instance = new CircularGauge(element, options, theme, context);
1742
+ this.updateElements();
1743
+ }
1744
+ }
1745
+ CircularGaugeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CircularGaugeComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
1746
+ CircularGaugeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: CircularGaugeComponent, selector: "kendo-circulargauge", inputs: { scale: "scale" }, providers: [
1747
+ ConfigurationService,
1748
+ LocalizationService,
1749
+ {
1750
+ provide: L10N_PREFIX,
1751
+ useValue: 'kendo.circulargauge'
1752
+ }
1753
+ ], queries: [{ propertyName: "centerTemplate", first: true, predicate: CircularGaugeCenterTemplateDirective, descendants: true }], exportAs: ["kendoCircularGauge"], usesInheritance: true, ngImport: i0, template: `
1754
+ <div #surface class='k-chart-surface'></div>
1755
+ <div class="k-arcgauge-label" *ngIf="centerTemplate" #label>
1756
+ <ng-template [ngTemplateOutlet]="centerTemplate.templateRef" [ngTemplateOutletContext]="centerTemplateContext"></ng-template>
1757
+ </div>
1758
+ <kendo-resize-sensor (resize)="onResize($event)" [rateLimit]="resizeRateLimit"></kendo-resize-sensor>
1759
+ `, isInline: true, components: [{ type: i4.ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }], directives: [{ type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i5.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1760
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CircularGaugeComponent, decorators: [{
1761
+ type: Component,
1762
+ args: [{
1763
+ changeDetection: ChangeDetectionStrategy.OnPush,
1764
+ exportAs: 'kendoCircularGauge',
1765
+ providers: [
1766
+ ConfigurationService,
1767
+ LocalizationService,
1768
+ {
1769
+ provide: L10N_PREFIX,
1770
+ useValue: 'kendo.circulargauge'
1771
+ }
1772
+ ],
1773
+ selector: 'kendo-circulargauge',
1774
+ template: `
1775
+ <div #surface class='k-chart-surface'></div>
1776
+ <div class="k-arcgauge-label" *ngIf="centerTemplate" #label>
1777
+ <ng-template [ngTemplateOutlet]="centerTemplate.templateRef" [ngTemplateOutletContext]="centerTemplateContext"></ng-template>
1778
+ </div>
1779
+ <kendo-resize-sensor (resize)="onResize($event)" [rateLimit]="resizeRateLimit"></kendo-resize-sensor>
1780
+ `
1781
+ }]
1782
+ }], propDecorators: { scale: [{
1783
+ type: Input
1784
+ }], centerTemplate: [{
1785
+ type: ContentChild,
1786
+ args: [CircularGaugeCenterTemplateDirective, { static: false }]
1787
+ }] } });
1788
+
1789
+ /**
1790
+ * The configuration options of the Circular Gauge area.
1791
+ * Represents the entire visible area of the Circular Gauge.
1792
+ */
1793
+ class CircularGaugeAreaComponent extends ArcGaugeAreaComponent {
1794
+ }
1795
+ CircularGaugeAreaComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CircularGaugeAreaComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
1796
+ CircularGaugeAreaComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: CircularGaugeAreaComponent, selector: "kendo-circulargauge-area", usesInheritance: true, ngImport: i0, template: '', isInline: true });
1797
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CircularGaugeAreaComponent, decorators: [{
1798
+ type: Component,
1799
+ args: [{
1800
+ selector: 'kendo-circulargauge-area',
1801
+ template: ''
1802
+ }]
1803
+ }] });
1804
+
1805
+ /**
1806
+ * The configuration options for the scale of the Circular Gauge
1807
+ * ([see example]({% slug scaleoptions_circulargauge %})).
1808
+ */
1809
+ class CircularGaugeScaleComponent extends ArcScaleComponent {
1810
+ }
1811
+ CircularGaugeScaleComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CircularGaugeScaleComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
1812
+ CircularGaugeScaleComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: CircularGaugeScaleComponent, selector: "kendo-circulargauge-scale", usesInheritance: true, ngImport: i0, template: '', isInline: true });
1813
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CircularGaugeScaleComponent, decorators: [{
1814
+ type: Component,
1815
+ args: [{
1816
+ selector: 'kendo-circulargauge-scale',
1817
+ template: ''
1818
+ }]
1819
+ }] });
1820
+
1821
+ /**
1822
+ * The configuration options for the scale labels of the Circular Gauge.
1823
+ */
1824
+ class CircularGaugeLabelsComponent extends ArcLabelsComponent {
1825
+ }
1826
+ CircularGaugeLabelsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CircularGaugeLabelsComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
1827
+ CircularGaugeLabelsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: CircularGaugeLabelsComponent, selector: "kendo-circulargauge-scale-labels", usesInheritance: true, ngImport: i0, template: '', isInline: true });
1828
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CircularGaugeLabelsComponent, decorators: [{
1829
+ type: Component,
1830
+ args: [{
1831
+ selector: 'kendo-circulargauge-scale-labels',
1832
+ template: ''
1833
+ }]
1834
+ }] });
1835
+
1836
+ const DIRECTIVES = [
1837
+ CircularGaugeComponent,
1838
+ CircularGaugeCenterTemplateDirective,
1839
+ CircularGaugeAreaComponent,
1840
+ CircularGaugeScaleComponent,
1841
+ CircularGaugeLabelsComponent
1842
+ ];
1843
+ /**
1844
+ * A [module](link:site.data.urls.angular['ngmodules']) that includes the CircularGauge component and its directives.
1845
+ * Imports the `CircularGaugeModule` into your application
1846
+ * [root module](link:site.data.urls.angular['ngmodules']#angular-modularity) or any other sub-module
1847
+ * that will use the CircularGauge component.
1848
+ *
1849
+ * @example
1850
+ * ```ts-no-run
1851
+ * import { NgModule } from '@angular/core';
1852
+ * import { BrowserModule } from '@angular/platform-browser';
1853
+ * import { CircularGaugeModule } from '@progress/kendo-angular-gauges';
1854
+ * import { AppComponent } from './app.component';
1855
+ *
1856
+ * _@NgModule({
1857
+ * bootstrap: [AppComponent],
1858
+ * declarations: [AppComponent],
1859
+ * imports: [BrowserModule, CircularGaugeModule]
1860
+ * })
1861
+ * export class AppModule {
1862
+ * }
1863
+ * ```
1864
+ */
1865
+ class CircularGaugeModule {
1866
+ }
1867
+ CircularGaugeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CircularGaugeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1868
+ CircularGaugeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CircularGaugeModule, declarations: [CircularGaugeComponent,
1869
+ CircularGaugeCenterTemplateDirective,
1870
+ CircularGaugeAreaComponent,
1871
+ CircularGaugeScaleComponent,
1872
+ CircularGaugeLabelsComponent], imports: [SharedModule, CommonModule], exports: [CircularGaugeComponent,
1873
+ CircularGaugeCenterTemplateDirective,
1874
+ CircularGaugeAreaComponent,
1875
+ CircularGaugeScaleComponent,
1876
+ CircularGaugeLabelsComponent] });
1877
+ CircularGaugeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CircularGaugeModule, imports: [[SharedModule, CommonModule]] });
1878
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CircularGaugeModule, decorators: [{
1879
+ type: NgModule,
1880
+ args: [{
1881
+ declarations: [DIRECTIVES],
1882
+ exports: [DIRECTIVES],
1883
+ imports: [SharedModule, CommonModule]
1884
+ }]
1885
+ }] });
1886
+
1887
+ /**
1888
+ * A [module](link:site.data.urls.angular['ngmodules']) that includes all Gauge components and directives.
1889
+ *
1890
+ * Imports the `GaugesModule` into your application
1891
+ * [root module](link:site.data.urls.angular['ngmodules']#angular-modularity) or any other sub-module
1892
+ * that will use the Gauge components.
1893
+ *
1894
+ * @example
1895
+ * ```ts-no-run
1896
+ * import { NgModule } from '@angular/core';
1897
+ * import { BrowserModule } from '@angular/platform-browser';
1898
+ * import { GaugesModule } from '@progress/kendo-angular-charts';
1899
+ * import { AppComponent } from './app.component';
1900
+ *
1901
+ * _@NgModule({
1902
+ * bootstrap: [AppComponent],
1903
+ * declarations: [AppComponent],
1904
+ * imports: [BrowserModule, GaugesModule]
1905
+ * })
1906
+ * export class AppModule {
1907
+ * }
1908
+ * ```
1909
+ */
1910
+ class GaugesModule {
1911
+ }
1912
+ GaugesModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: GaugesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1913
+ GaugesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: GaugesModule, exports: [ArcGaugeModule, CircularGaugeModule, LinearGaugeModule, RadialGaugeModule] });
1914
+ GaugesModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: GaugesModule, imports: [ArcGaugeModule, CircularGaugeModule, LinearGaugeModule, RadialGaugeModule] });
1915
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: GaugesModule, decorators: [{
1916
+ type: NgModule,
1917
+ args: [{
1918
+ exports: [ArcGaugeModule, CircularGaugeModule, LinearGaugeModule, RadialGaugeModule]
1919
+ }]
1920
+ }] });
1921
+
1922
+ /**
1923
+ * Generated bundle index. Do not edit.
1924
+ */
1925
+
1926
+ export { ArcCenterTemplateDirective, ArcGaugeAreaComponent, ArcGaugeComponent, ArcGaugeModule, ArcLabelsComponent, ArcScaleComponent, CircularGaugeAreaComponent, CircularGaugeCenterTemplateDirective, CircularGaugeComponent, CircularGaugeLabelsComponent, CircularGaugeModule, CircularGaugeScaleComponent, CollectionChangesService, CollectionComponent, CollectionItemComponent, ColorComponent, ColorsComponent, ConfigurationService, GaugeAreaComponent, GaugeComponent, GaugesModule, LabelsComponent, LinearGaugeAreaComponent, LinearGaugeComponent, LinearGaugeModule, LinearLabelsComponent, LinearPointerComponent, LinearPointersComponent, LinearRangeComponent, LinearRangesComponent, LinearScaleComponent, RadialGaugeAreaComponent, RadialGaugeComponent, RadialGaugeModule, RadialLabelsComponent, RadialPointerComponent, RadialPointersComponent, RadialRangeComponent, RadialRangesComponent, RadialScaleComponent, RangeComponent, ScaleComponent, SettingsComponent, ThemeService };
1927
+