@progress/kendo-angular-gauges 4.1.2 → 5.0.0-dev.202204131907

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