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