@taiga-ui/addon-charts 2.61.0 → 3.0.0-rc.2

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 (372) hide show
  1. package/bundles/taiga-ui-addon-charts-components-arc-chart.umd.js +437 -319
  2. package/bundles/taiga-ui-addon-charts-components-arc-chart.umd.js.map +1 -1
  3. package/bundles/taiga-ui-addon-charts-components-axes.umd.js +461 -335
  4. package/bundles/taiga-ui-addon-charts-components-axes.umd.js.map +1 -1
  5. package/bundles/taiga-ui-addon-charts-components-bar-chart.umd.js +451 -342
  6. package/bundles/taiga-ui-addon-charts-components-bar-chart.umd.js.map +1 -1
  7. package/bundles/taiga-ui-addon-charts-components-bar-set.umd.js +401 -298
  8. package/bundles/taiga-ui-addon-charts-components-bar-set.umd.js.map +1 -1
  9. package/bundles/taiga-ui-addon-charts-components-bar.umd.js +396 -293
  10. package/bundles/taiga-ui-addon-charts-components-bar.umd.js.map +1 -1
  11. package/bundles/taiga-ui-addon-charts-components-legend-item.umd.js +408 -295
  12. package/bundles/taiga-ui-addon-charts-components-legend-item.umd.js.map +1 -1
  13. package/bundles/taiga-ui-addon-charts-components-line-chart.umd.js +572 -402
  14. package/bundles/taiga-ui-addon-charts-components-line-chart.umd.js.map +1 -1
  15. package/bundles/taiga-ui-addon-charts-components-line-days-chart.umd.js +544 -392
  16. package/bundles/taiga-ui-addon-charts-components-line-days-chart.umd.js.map +1 -1
  17. package/bundles/taiga-ui-addon-charts-components-pie-chart.umd.js +518 -393
  18. package/bundles/taiga-ui-addon-charts-components-pie-chart.umd.js.map +1 -1
  19. package/bundles/taiga-ui-addon-charts-components-ring-chart.umd.js +398 -302
  20. package/bundles/taiga-ui-addon-charts-components-ring-chart.umd.js.map +1 -1
  21. package/bundles/taiga-ui-addon-charts-components.umd.js +23 -43
  22. package/bundles/taiga-ui-addon-charts-components.umd.js.map +1 -1
  23. package/bundles/taiga-ui-addon-charts-constants.umd.js +17 -48
  24. package/bundles/taiga-ui-addon-charts-constants.umd.js.map +1 -1
  25. package/bundles/taiga-ui-addon-charts-interfaces.umd.js +2 -2
  26. package/bundles/taiga-ui-addon-charts-interfaces.umd.js.map +1 -1
  27. package/bundles/taiga-ui-addon-charts-types.umd.js +2 -2
  28. package/bundles/taiga-ui-addon-charts-types.umd.js.map +1 -1
  29. package/bundles/taiga-ui-addon-charts-utils.umd.js +350 -308
  30. package/bundles/taiga-ui-addon-charts-utils.umd.js.map +1 -1
  31. package/bundles/taiga-ui-addon-charts.umd.js +18 -18
  32. package/bundles/taiga-ui-addon-charts.umd.js.map +1 -1
  33. package/components/arc-chart/arc-chart.component.d.ts +3 -0
  34. package/components/arc-chart/arc-chart.module.d.ts +6 -0
  35. package/components/arc-chart/package.json +2 -5
  36. package/components/arc-chart/taiga-ui-addon-charts-components-arc-chart.d.ts +1 -0
  37. package/components/axes/axes.component.d.ts +6 -3
  38. package/components/axes/axes.module.d.ts +7 -0
  39. package/components/axes/package.json +2 -5
  40. package/components/axes/taiga-ui-addon-charts-components-axes.d.ts +1 -0
  41. package/components/bar/bar.component.d.ts +4 -5
  42. package/components/bar/bar.module.d.ts +6 -0
  43. package/components/bar/package.json +2 -5
  44. package/components/bar/taiga-ui-addon-charts-components-bar.d.ts +1 -0
  45. package/components/bar-chart/bar-chart.component.d.ts +10 -10
  46. package/components/bar-chart/bar-chart.module.d.ts +9 -0
  47. package/components/bar-chart/package.json +2 -5
  48. package/components/bar-chart/taiga-ui-addon-charts-components-bar-chart.d.ts +1 -0
  49. package/components/bar-set/bar-set.component.d.ts +4 -5
  50. package/components/bar-set/bar-set.module.d.ts +7 -0
  51. package/components/bar-set/package.json +2 -5
  52. package/components/bar-set/taiga-ui-addon-charts-components-bar-set.d.ts +1 -0
  53. package/components/legend-item/legend-item.component.d.ts +3 -0
  54. package/components/legend-item/legend-item.module.d.ts +7 -0
  55. package/components/legend-item/package.json +2 -5
  56. package/components/legend-item/taiga-ui-addon-charts-components-legend-item.d.ts +1 -0
  57. package/components/line-chart/line-chart-hint.directive.d.ts +13 -3
  58. package/components/line-chart/line-chart.component.d.ts +10 -6
  59. package/components/line-chart/line-chart.module.d.ts +10 -0
  60. package/components/line-chart/package.json +2 -5
  61. package/components/line-chart/taiga-ui-addon-charts-components-line-chart.d.ts +1 -0
  62. package/components/line-days-chart/line-days-chart-hint.directive.d.ts +10 -3
  63. package/components/line-days-chart/line-days-chart.component.d.ts +7 -1
  64. package/components/line-days-chart/line-days-chart.module.d.ts +10 -0
  65. package/components/line-days-chart/package.json +2 -5
  66. package/components/line-days-chart/taiga-ui-addon-charts-components-line-days-chart.d.ts +1 -0
  67. package/components/package.json +2 -5
  68. package/components/pie-chart/package.json +2 -5
  69. package/components/pie-chart/pie-chart.component.d.ts +5 -6
  70. package/components/pie-chart/pie-chart.directive.d.ts +3 -0
  71. package/components/pie-chart/pie-chart.module.d.ts +10 -0
  72. package/components/pie-chart/taiga-ui-addon-charts-components-pie-chart.d.ts +1 -0
  73. package/components/ring-chart/package.json +2 -5
  74. package/components/ring-chart/ring-chart.component.d.ts +3 -8
  75. package/components/ring-chart/ring-chart.module.d.ts +8 -0
  76. package/components/ring-chart/taiga-ui-addon-charts-components-ring-chart.d.ts +1 -0
  77. package/components/taiga-ui-addon-charts-components.d.ts +1 -0
  78. package/constants/index.d.ts +0 -2
  79. package/constants/package.json +2 -5
  80. package/constants/taiga-ui-addon-charts-constants.d.ts +1 -0
  81. package/esm2015/components/arc-chart/arc-chart.component.js +57 -45
  82. package/esm2015/components/arc-chart/arc-chart.module.js +15 -12
  83. package/esm2015/components/arc-chart/index.js +1 -1
  84. package/esm2015/components/arc-chart/taiga-ui-addon-charts-components-arc-chart.js +1 -1
  85. package/esm2015/components/axes/axes.component.js +55 -38
  86. package/esm2015/components/axes/axes.module.js +15 -12
  87. package/esm2015/components/axes/index.js +1 -1
  88. package/esm2015/components/axes/taiga-ui-addon-charts-components-axes.js +1 -1
  89. package/esm2015/components/bar/bar.component.js +29 -35
  90. package/esm2015/components/bar/bar.module.js +15 -12
  91. package/esm2015/components/bar/index.js +1 -1
  92. package/esm2015/components/bar/taiga-ui-addon-charts-components-bar.js +1 -1
  93. package/esm2015/components/bar-chart/bar-chart.component.js +51 -56
  94. package/esm2015/components/bar-chart/bar-chart.module.js +28 -15
  95. package/esm2015/components/bar-chart/index.js +1 -1
  96. package/esm2015/components/bar-chart/taiga-ui-addon-charts-components-bar-chart.js +1 -1
  97. package/esm2015/components/bar-set/bar-set.component.js +27 -33
  98. package/esm2015/components/bar-set/bar-set.module.js +15 -12
  99. package/esm2015/components/bar-set/index.js +1 -1
  100. package/esm2015/components/bar-set/taiga-ui-addon-charts-components-bar-set.js +1 -1
  101. package/esm2015/components/index.js +1 -1
  102. package/esm2015/components/legend-item/index.js +1 -1
  103. package/esm2015/components/legend-item/legend-item.component.js +36 -30
  104. package/esm2015/components/legend-item/legend-item.module.js +15 -12
  105. package/esm2015/components/legend-item/taiga-ui-addon-charts-components-legend-item.js +1 -1
  106. package/esm2015/components/line-chart/index.js +1 -1
  107. package/esm2015/components/line-chart/line-chart-hint.directive.js +54 -39
  108. package/esm2015/components/line-chart/line-chart.component.js +81 -54
  109. package/esm2015/components/line-chart/line-chart.module.js +28 -13
  110. package/esm2015/components/line-chart/taiga-ui-addon-charts-components-line-chart.js +1 -1
  111. package/esm2015/components/line-days-chart/index.js +1 -1
  112. package/esm2015/components/line-days-chart/line-days-chart-hint.directive.js +46 -35
  113. package/esm2015/components/line-days-chart/line-days-chart.component.js +72 -48
  114. package/esm2015/components/line-days-chart/line-days-chart.module.js +29 -12
  115. package/esm2015/components/line-days-chart/taiga-ui-addon-charts-components-line-days-chart.js +1 -1
  116. package/esm2015/components/pie-chart/index.js +1 -1
  117. package/esm2015/components/pie-chart/pie-chart.component.js +50 -50
  118. package/esm2015/components/pie-chart/pie-chart.directive.js +40 -32
  119. package/esm2015/components/pie-chart/pie-chart.module.js +28 -15
  120. package/esm2015/components/pie-chart/taiga-ui-addon-charts-components-pie-chart.js +1 -1
  121. package/esm2015/components/ring-chart/index.js +1 -1
  122. package/esm2015/components/ring-chart/ring-chart.component.js +27 -38
  123. package/esm2015/components/ring-chart/ring-chart.module.js +15 -12
  124. package/esm2015/components/ring-chart/taiga-ui-addon-charts-components-ring-chart.js +1 -1
  125. package/esm2015/components/taiga-ui-addon-charts-components.js +1 -1
  126. package/esm2015/constants/index.js +1 -3
  127. package/esm2015/constants/line-handlers.js +1 -1
  128. package/esm2015/constants/taiga-ui-addon-charts-constants.js +1 -1
  129. package/esm2015/index.js +3 -2
  130. package/esm2015/interfaces/index.js +2 -1
  131. package/esm2015/interfaces/line-chart-hint-context.js +2 -1
  132. package/esm2015/interfaces/taiga-ui-addon-charts-interfaces.js +2 -1
  133. package/esm2015/taiga-ui-addon-charts.js +1 -1
  134. package/esm2015/types/index.js +3 -1
  135. package/esm2015/types/line-handler.js +2 -1
  136. package/esm2015/types/line-type.js +2 -1
  137. package/esm2015/types/taiga-ui-addon-charts-types.js +2 -1
  138. package/esm2015/utils/control-point.js +6 -11
  139. package/esm2015/utils/describe-sector.js +6 -9
  140. package/esm2015/utils/draw-curve.js +5 -10
  141. package/esm2015/utils/draw-line.js +2 -7
  142. package/esm2015/utils/draw.js +6 -11
  143. package/esm2015/utils/index.js +1 -1
  144. package/esm2015/utils/line-angle.js +2 -7
  145. package/esm2015/utils/line-length.js +2 -7
  146. package/esm2015/utils/taiga-ui-addon-charts-utils.js +1 -1
  147. package/fesm2015/taiga-ui-addon-charts-components-arc-chart.js +68 -51
  148. package/fesm2015/taiga-ui-addon-charts-components-arc-chart.js.map +1 -1
  149. package/fesm2015/taiga-ui-addon-charts-components-axes.js +68 -46
  150. package/fesm2015/taiga-ui-addon-charts-components-axes.js.map +1 -1
  151. package/fesm2015/taiga-ui-addon-charts-components-bar-chart.js +77 -68
  152. package/fesm2015/taiga-ui-addon-charts-components-bar-chart.js.map +1 -1
  153. package/fesm2015/taiga-ui-addon-charts-components-bar-set.js +40 -41
  154. package/fesm2015/taiga-ui-addon-charts-components-bar-set.js.map +1 -1
  155. package/fesm2015/taiga-ui-addon-charts-components-bar.js +41 -42
  156. package/fesm2015/taiga-ui-addon-charts-components-bar.js.map +1 -1
  157. package/fesm2015/taiga-ui-addon-charts-components-legend-item.js +50 -38
  158. package/fesm2015/taiga-ui-addon-charts-components-legend-item.js.map +1 -1
  159. package/fesm2015/taiga-ui-addon-charts-components-line-chart.js +154 -97
  160. package/fesm2015/taiga-ui-addon-charts-components-line-chart.js.map +1 -1
  161. package/fesm2015/taiga-ui-addon-charts-components-line-days-chart.js +137 -86
  162. package/fesm2015/taiga-ui-addon-charts-components-line-days-chart.js.map +1 -1
  163. package/fesm2015/taiga-ui-addon-charts-components-pie-chart.js +131 -109
  164. package/fesm2015/taiga-ui-addon-charts-components-pie-chart.js.map +1 -1
  165. package/fesm2015/taiga-ui-addon-charts-components-ring-chart.js +41 -47
  166. package/fesm2015/taiga-ui-addon-charts-components-ring-chart.js.map +1 -1
  167. package/fesm2015/taiga-ui-addon-charts-components.js.map +1 -1
  168. package/fesm2015/taiga-ui-addon-charts-constants.js +1 -34
  169. package/fesm2015/taiga-ui-addon-charts-constants.js.map +1 -1
  170. package/fesm2015/taiga-ui-addon-charts-interfaces.js.map +1 -1
  171. package/fesm2015/taiga-ui-addon-charts-types.js.map +1 -1
  172. package/fesm2015/taiga-ui-addon-charts-utils.js +18 -51
  173. package/fesm2015/taiga-ui-addon-charts-utils.js.map +1 -1
  174. package/fesm2015/taiga-ui-addon-charts.js +2 -1
  175. package/fesm2015/taiga-ui-addon-charts.js.map +1 -1
  176. package/index.d.ts +0 -1
  177. package/interfaces/index.d.ts +0 -1
  178. package/interfaces/package.json +2 -5
  179. package/interfaces/taiga-ui-addon-charts-interfaces.d.ts +1 -0
  180. package/package.json +11 -14
  181. package/taiga-ui-addon-charts.d.ts +1 -0
  182. package/types/index.d.ts +0 -1
  183. package/types/line-handler.d.ts +2 -2
  184. package/types/line-type.d.ts +1 -1
  185. package/types/package.json +2 -5
  186. package/types/taiga-ui-addon-charts-types.d.ts +1 -0
  187. package/utils/control-point.d.ts +1 -5
  188. package/utils/describe-sector.d.ts +1 -3
  189. package/utils/draw-curve.d.ts +1 -5
  190. package/utils/draw-line.d.ts +1 -5
  191. package/utils/draw.d.ts +1 -5
  192. package/utils/line-angle.d.ts +1 -5
  193. package/utils/line-length.d.ts +1 -5
  194. package/utils/package.json +2 -5
  195. package/utils/taiga-ui-addon-charts-utils.d.ts +1 -0
  196. package/bundles/taiga-ui-addon-charts-components-arc-chart.umd.min.js +0 -2
  197. package/bundles/taiga-ui-addon-charts-components-arc-chart.umd.min.js.map +0 -1
  198. package/bundles/taiga-ui-addon-charts-components-axes.umd.min.js +0 -2
  199. package/bundles/taiga-ui-addon-charts-components-axes.umd.min.js.map +0 -1
  200. package/bundles/taiga-ui-addon-charts-components-bar-chart.umd.min.js +0 -2
  201. package/bundles/taiga-ui-addon-charts-components-bar-chart.umd.min.js.map +0 -1
  202. package/bundles/taiga-ui-addon-charts-components-bar-set.umd.min.js +0 -2
  203. package/bundles/taiga-ui-addon-charts-components-bar-set.umd.min.js.map +0 -1
  204. package/bundles/taiga-ui-addon-charts-components-bar.umd.min.js +0 -2
  205. package/bundles/taiga-ui-addon-charts-components-bar.umd.min.js.map +0 -1
  206. package/bundles/taiga-ui-addon-charts-components-legend-item.umd.min.js +0 -2
  207. package/bundles/taiga-ui-addon-charts-components-legend-item.umd.min.js.map +0 -1
  208. package/bundles/taiga-ui-addon-charts-components-line-chart.umd.min.js +0 -2
  209. package/bundles/taiga-ui-addon-charts-components-line-chart.umd.min.js.map +0 -1
  210. package/bundles/taiga-ui-addon-charts-components-line-days-chart.umd.min.js +0 -2
  211. package/bundles/taiga-ui-addon-charts-components-line-days-chart.umd.min.js.map +0 -1
  212. package/bundles/taiga-ui-addon-charts-components-pie-chart.umd.min.js +0 -2
  213. package/bundles/taiga-ui-addon-charts-components-pie-chart.umd.min.js.map +0 -1
  214. package/bundles/taiga-ui-addon-charts-components-ring-chart.umd.min.js +0 -2
  215. package/bundles/taiga-ui-addon-charts-components-ring-chart.umd.min.js.map +0 -1
  216. package/bundles/taiga-ui-addon-charts-components.umd.min.js +0 -2
  217. package/bundles/taiga-ui-addon-charts-components.umd.min.js.map +0 -1
  218. package/bundles/taiga-ui-addon-charts-constants.umd.min.js +0 -2
  219. package/bundles/taiga-ui-addon-charts-constants.umd.min.js.map +0 -1
  220. package/bundles/taiga-ui-addon-charts-enums.umd.js +0 -23
  221. package/bundles/taiga-ui-addon-charts-enums.umd.js.map +0 -1
  222. package/bundles/taiga-ui-addon-charts-enums.umd.min.js +0 -2
  223. package/bundles/taiga-ui-addon-charts-enums.umd.min.js.map +0 -1
  224. package/bundles/taiga-ui-addon-charts-interfaces.umd.min.js +0 -2
  225. package/bundles/taiga-ui-addon-charts-interfaces.umd.min.js.map +0 -1
  226. package/bundles/taiga-ui-addon-charts-types.umd.min.js +0 -2
  227. package/bundles/taiga-ui-addon-charts-types.umd.min.js.map +0 -1
  228. package/bundles/taiga-ui-addon-charts-utils.umd.min.js +0 -2
  229. package/bundles/taiga-ui-addon-charts-utils.umd.min.js.map +0 -1
  230. package/bundles/taiga-ui-addon-charts.umd.min.js +0 -2
  231. package/bundles/taiga-ui-addon-charts.umd.min.js.map +0 -1
  232. package/components/arc-chart/taiga-ui-addon-charts-components-arc-chart.metadata.json +0 -1
  233. package/components/axes/taiga-ui-addon-charts-components-axes.metadata.json +0 -1
  234. package/components/bar/taiga-ui-addon-charts-components-bar.metadata.json +0 -1
  235. package/components/bar-chart/taiga-ui-addon-charts-components-bar-chart.metadata.json +0 -1
  236. package/components/bar-set/taiga-ui-addon-charts-components-bar-set.metadata.json +0 -1
  237. package/components/legend-item/taiga-ui-addon-charts-components-legend-item.metadata.json +0 -1
  238. package/components/line-chart/taiga-ui-addon-charts-components-line-chart.metadata.json +0 -1
  239. package/components/line-days-chart/taiga-ui-addon-charts-components-line-days-chart.metadata.json +0 -1
  240. package/components/pie-chart/taiga-ui-addon-charts-components-pie-chart.metadata.json +0 -1
  241. package/components/ring-chart/taiga-ui-addon-charts-components-ring-chart.metadata.json +0 -1
  242. package/components/taiga-ui-addon-charts-components.metadata.json +0 -1
  243. package/constants/default-color-handler.d.ts +0 -3
  244. package/constants/default-colors.d.ts +0 -3
  245. package/constants/taiga-ui-addon-charts-constants.metadata.json +0 -1
  246. package/enums/index.d.ts +0 -1
  247. package/enums/line-type.d.ts +0 -11
  248. package/enums/package.json +0 -13
  249. package/enums/taiga-ui-addon-charts-enums.d.ts +0 -4
  250. package/enums/taiga-ui-addon-charts-enums.metadata.json +0 -1
  251. package/esm2015/constants/default-color-handler.js +0 -4
  252. package/esm2015/constants/default-colors.js +0 -30
  253. package/esm2015/enums/index.js +0 -2
  254. package/esm2015/enums/line-type.js +0 -13
  255. package/esm2015/enums/taiga-ui-addon-charts-enums.js +0 -5
  256. package/esm2015/interfaces/ring-chart-context.js +0 -1
  257. package/esm2015/types/color-handler.js +0 -1
  258. package/esm5/components/arc-chart/arc-chart.component.js +0 -149
  259. package/esm5/components/arc-chart/arc-chart.module.js +0 -18
  260. package/esm5/components/arc-chart/index.js +0 -3
  261. package/esm5/components/arc-chart/taiga-ui-addon-charts-components-arc-chart.js +0 -5
  262. package/esm5/components/axes/axes.component.js +0 -131
  263. package/esm5/components/axes/axes.module.js +0 -19
  264. package/esm5/components/axes/index.js +0 -3
  265. package/esm5/components/axes/taiga-ui-addon-charts-components-axes.js +0 -5
  266. package/esm5/components/bar/bar.component.js +0 -55
  267. package/esm5/components/bar/bar.module.js +0 -18
  268. package/esm5/components/bar/index.js +0 -3
  269. package/esm5/components/bar/taiga-ui-addon-charts-components-bar.js +0 -5
  270. package/esm5/components/bar-chart/bar-chart.component.js +0 -118
  271. package/esm5/components/bar-chart/bar-chart.module.js +0 -30
  272. package/esm5/components/bar-chart/index.js +0 -3
  273. package/esm5/components/bar-chart/taiga-ui-addon-charts-components-bar-chart.js +0 -5
  274. package/esm5/components/bar-set/bar-set.component.js +0 -83
  275. package/esm5/components/bar-set/bar-set.module.js +0 -19
  276. package/esm5/components/bar-set/index.js +0 -3
  277. package/esm5/components/bar-set/taiga-ui-addon-charts-components-bar-set.js +0 -5
  278. package/esm5/components/index.js +0 -11
  279. package/esm5/components/legend-item/index.js +0 -3
  280. package/esm5/components/legend-item/legend-item.component.js +0 -59
  281. package/esm5/components/legend-item/legend-item.module.js +0 -19
  282. package/esm5/components/legend-item/taiga-ui-addon-charts-components-legend-item.js +0 -5
  283. package/esm5/components/line-chart/index.js +0 -4
  284. package/esm5/components/line-chart/line-chart-hint.directive.js +0 -78
  285. package/esm5/components/line-chart/line-chart.component.js +0 -246
  286. package/esm5/components/line-chart/line-chart.module.js +0 -29
  287. package/esm5/components/line-chart/taiga-ui-addon-charts-components-line-chart.js +0 -5
  288. package/esm5/components/line-days-chart/index.js +0 -4
  289. package/esm5/components/line-days-chart/line-days-chart-hint.directive.js +0 -83
  290. package/esm5/components/line-days-chart/line-days-chart.component.js +0 -204
  291. package/esm5/components/line-days-chart/line-days-chart.module.js +0 -21
  292. package/esm5/components/line-days-chart/taiga-ui-addon-charts-components-line-days-chart.js +0 -5
  293. package/esm5/components/pie-chart/index.js +0 -4
  294. package/esm5/components/pie-chart/pie-chart.component.js +0 -168
  295. package/esm5/components/pie-chart/pie-chart.directive.js +0 -66
  296. package/esm5/components/pie-chart/pie-chart.module.js +0 -28
  297. package/esm5/components/pie-chart/taiga-ui-addon-charts-components-pie-chart.js +0 -5
  298. package/esm5/components/ring-chart/index.js +0 -3
  299. package/esm5/components/ring-chart/ring-chart.component.js +0 -67
  300. package/esm5/components/ring-chart/ring-chart.module.js +0 -20
  301. package/esm5/components/ring-chart/taiga-ui-addon-charts-components-ring-chart.js +0 -5
  302. package/esm5/components/taiga-ui-addon-charts-components.js +0 -5
  303. package/esm5/constants/default-color-handler.js +0 -4
  304. package/esm5/constants/default-colors.js +0 -30
  305. package/esm5/constants/index.js +0 -4
  306. package/esm5/constants/line-handlers.js +0 -5
  307. package/esm5/constants/taiga-ui-addon-charts-constants.js +0 -5
  308. package/esm5/enums/index.js +0 -2
  309. package/esm5/enums/line-type.js +0 -13
  310. package/esm5/enums/taiga-ui-addon-charts-enums.js +0 -5
  311. package/esm5/index.js +0 -4
  312. package/esm5/interfaces/index.js +0 -1
  313. package/esm5/interfaces/line-chart-hint-context.js +0 -1
  314. package/esm5/interfaces/ring-chart-context.js +0 -1
  315. package/esm5/interfaces/taiga-ui-addon-charts-interfaces.js +0 -4
  316. package/esm5/taiga-ui-addon-charts.js +0 -5
  317. package/esm5/types/color-handler.js +0 -1
  318. package/esm5/types/index.js +0 -1
  319. package/esm5/types/line-handler.js +0 -1
  320. package/esm5/types/line-type.js +0 -1
  321. package/esm5/types/taiga-ui-addon-charts-types.js +0 -4
  322. package/esm5/utils/control-point.js +0 -19
  323. package/esm5/utils/describe-sector.js +0 -36
  324. package/esm5/utils/draw-curve.js +0 -13
  325. package/esm5/utils/draw-line.js +0 -9
  326. package/esm5/utils/draw.js +0 -14
  327. package/esm5/utils/index.js +0 -8
  328. package/esm5/utils/line-angle.js +0 -11
  329. package/esm5/utils/line-length.js +0 -11
  330. package/esm5/utils/taiga-ui-addon-charts-utils.js +0 -5
  331. package/fesm2015/taiga-ui-addon-charts-enums.js +0 -19
  332. package/fesm2015/taiga-ui-addon-charts-enums.js.map +0 -1
  333. package/fesm5/taiga-ui-addon-charts-components-arc-chart.js +0 -168
  334. package/fesm5/taiga-ui-addon-charts-components-arc-chart.js.map +0 -1
  335. package/fesm5/taiga-ui-addon-charts-components-axes.js +0 -151
  336. package/fesm5/taiga-ui-addon-charts-components-axes.js.map +0 -1
  337. package/fesm5/taiga-ui-addon-charts-components-bar-chart.js +0 -149
  338. package/fesm5/taiga-ui-addon-charts-components-bar-chart.js.map +0 -1
  339. package/fesm5/taiga-ui-addon-charts-components-bar-set.js +0 -104
  340. package/fesm5/taiga-ui-addon-charts-components-bar-set.js.map +0 -1
  341. package/fesm5/taiga-ui-addon-charts-components-bar.js +0 -75
  342. package/fesm5/taiga-ui-addon-charts-components-bar.js.map +0 -1
  343. package/fesm5/taiga-ui-addon-charts-components-legend-item.js +0 -79
  344. package/fesm5/taiga-ui-addon-charts-components-legend-item.js.map +0 -1
  345. package/fesm5/taiga-ui-addon-charts-components-line-chart.js +0 -343
  346. package/fesm5/taiga-ui-addon-charts-components-line-chart.js.map +0 -1
  347. package/fesm5/taiga-ui-addon-charts-components-line-days-chart.js +0 -302
  348. package/fesm5/taiga-ui-addon-charts-components-line-days-chart.js.map +0 -1
  349. package/fesm5/taiga-ui-addon-charts-components-pie-chart.js +0 -255
  350. package/fesm5/taiga-ui-addon-charts-components-pie-chart.js.map +0 -1
  351. package/fesm5/taiga-ui-addon-charts-components-ring-chart.js +0 -89
  352. package/fesm5/taiga-ui-addon-charts-components-ring-chart.js.map +0 -1
  353. package/fesm5/taiga-ui-addon-charts-components.js +0 -15
  354. package/fesm5/taiga-ui-addon-charts-components.js.map +0 -1
  355. package/fesm5/taiga-ui-addon-charts-constants.js +0 -44
  356. package/fesm5/taiga-ui-addon-charts-constants.js.map +0 -1
  357. package/fesm5/taiga-ui-addon-charts-enums.js +0 -19
  358. package/fesm5/taiga-ui-addon-charts-enums.js.map +0 -1
  359. package/fesm5/taiga-ui-addon-charts-interfaces.js +0 -4
  360. package/fesm5/taiga-ui-addon-charts-interfaces.js.map +0 -1
  361. package/fesm5/taiga-ui-addon-charts-types.js +0 -4
  362. package/fesm5/taiga-ui-addon-charts-types.js.map +0 -1
  363. package/fesm5/taiga-ui-addon-charts-utils.js +0 -115
  364. package/fesm5/taiga-ui-addon-charts-utils.js.map +0 -1
  365. package/fesm5/taiga-ui-addon-charts.js +0 -8
  366. package/fesm5/taiga-ui-addon-charts.js.map +0 -1
  367. package/interfaces/ring-chart-context.d.ts +0 -4
  368. package/interfaces/taiga-ui-addon-charts-interfaces.metadata.json +0 -1
  369. package/taiga-ui-addon-charts.metadata.json +0 -1
  370. package/types/color-handler.d.ts +0 -3
  371. package/types/taiga-ui-addon-charts-types.metadata.json +0 -1
  372. package/utils/taiga-ui-addon-charts-utils.metadata.json +0 -1
@@ -1,11 +1,12 @@
1
1
  import { __decorate } from 'tslib';
2
- import { Input, HostBinding, Component, ChangeDetectionStrategy, NgModule } from '@angular/core';
2
+ import * as i0 from '@angular/core';
3
+ import { Component, ChangeDetectionStrategy, Input, HostBinding, NgModule } from '@angular/core';
3
4
  import { tuiDefaultProp } from '@taiga-ui/cdk';
4
- import { colorFallback, TuiButtonModule } from '@taiga-ui/core';
5
+ import * as i1 from '@taiga-ui/core';
6
+ import { TuiButtonModule } from '@taiga-ui/core';
5
7
  import { CommonModule } from '@angular/common';
6
8
 
7
- // TODO: 3.0 Remove fallback
8
- let TuiLegendItemComponent = class TuiLegendItemComponent {
9
+ class TuiLegendItemComponent {
9
10
  constructor() {
10
11
  this.active = false;
11
12
  this.color = ``;
@@ -14,54 +15,65 @@ let TuiLegendItemComponent = class TuiLegendItemComponent {
14
15
  this.disabled = false;
15
16
  }
16
17
  get computedColor() {
17
- if (this.color === `var(--tui-primary)`) {
18
- return null;
19
- }
20
- return this.color.startsWith(`var(`) ? this.color : colorFallback(this.color);
18
+ return this.color === `var(--tui-primary)` ? null : this.color;
21
19
  }
22
- };
20
+ }
21
+ TuiLegendItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiLegendItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
22
+ TuiLegendItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: TuiLegendItemComponent, selector: "tui-legend-item", inputs: { active: "active", color: "color", text: "text", size: "size", disabled: "disabled" }, host: { properties: { "attr.data-size": "this.size", "class._disabled": "this.disabled", "style.--tui-primary": "this.computedColor" } }, ngImport: i0, template: "<button\n tuiButton\n type=\"button\"\n size=\"s\"\n appearance=\"whiteblock\"\n class=\"t-button\"\n [pseudoHover]=\"active || null\"\n>\n <div class=\"t-wrapper\">\n <ng-content select=\"tui-primitive-checkbox\"></ng-content>\n <span\n class=\"t-dot\"\n [style.backgroundColor]=\"color || 'var(--tui-primary)'\"\n ></span>\n <span class=\"t-text\">{{ text }}</span>\n <ng-content></ng-content>\n </div>\n</button>\n", styles: [":host{display:inline-block}.t-button{height:2rem;font-weight:bold}:host[data-size=m] .t-button{height:2.25rem;font:var(--tui-font-text-m);font-weight:bold}.t-wrapper{display:flex;align-items:center;pointer-events:none}:host._disabled .t-wrapper{color:var(--tui-text-03)}.t-dot{width:.5rem;height:.5rem;border-radius:100%}:host._disabled .t-dot{background:var(--tui-base-04)}.t-dot:not(:first-child){display:none}.t-text{margin:0 .5rem;font-weight:normal}\n"], components: [{ type: i1.TuiButtonComponent, selector: "button[tuiButton], button[tuiIconButton], a[tuiButton], a[tuiIconButton]", inputs: ["appearance", "disabled", "icon", "iconRight", "shape", "showLoader", "size"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
23
23
  __decorate([
24
- Input(),
25
24
  tuiDefaultProp()
26
25
  ], TuiLegendItemComponent.prototype, "active", void 0);
27
26
  __decorate([
28
- Input(),
29
27
  tuiDefaultProp()
30
28
  ], TuiLegendItemComponent.prototype, "color", void 0);
31
29
  __decorate([
32
- Input(),
33
30
  tuiDefaultProp()
34
31
  ], TuiLegendItemComponent.prototype, "text", void 0);
35
32
  __decorate([
36
- Input(),
37
- HostBinding(`attr.data-size`),
38
33
  tuiDefaultProp()
39
34
  ], TuiLegendItemComponent.prototype, "size", void 0);
40
- __decorate([
41
- Input(),
42
- HostBinding(`class._disabled`)
43
- ], TuiLegendItemComponent.prototype, "disabled", void 0);
44
- __decorate([
45
- HostBinding(`style.--tui-primary`)
46
- ], TuiLegendItemComponent.prototype, "computedColor", null);
47
- TuiLegendItemComponent = __decorate([
48
- Component({
49
- selector: `tui-legend-item`,
50
- template: "<button\n tuiButton\n type=\"button\"\n size=\"s\"\n appearance=\"whiteblock\"\n class=\"t-button\"\n [pseudoHovered]=\"active || null\"\n>\n <div class=\"t-wrapper\">\n <ng-content select=\"tui-primitive-checkbox\"></ng-content>\n <span class=\"t-dot\"></span>\n <span class=\"t-text\">{{ text }}</span>\n <ng-content></ng-content>\n </div>\n</button>\n",
51
- changeDetection: ChangeDetectionStrategy.OnPush,
52
- styles: [":host{display:inline-block}.t-button{height:2rem;font-weight:700}:host[data-size='m'] .t-button{height:2.25rem;font:var(--tui-font-text-m);font-weight:700}.t-wrapper{display:flex;align-items:center;pointer-events:none}:host._disabled .t-wrapper{color:var(--tui-text-03)}.t-dot{width:.5rem;height:.5rem;border-radius:100%;background:var(--tui-primary)}:host._disabled .t-dot{background:var(--tui-base-04)}.t-dot:not(:first-child){display:none}.t-text{margin:0 .5rem;font-weight:400}"]
53
- })
54
- ], TuiLegendItemComponent);
35
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiLegendItemComponent, decorators: [{
36
+ type: Component,
37
+ args: [{
38
+ selector: `tui-legend-item`,
39
+ templateUrl: `./legend-item.template.html`,
40
+ styleUrls: [`./legend-item.style.less`],
41
+ changeDetection: ChangeDetectionStrategy.OnPush,
42
+ }]
43
+ }], propDecorators: { active: [{
44
+ type: Input
45
+ }], color: [{
46
+ type: Input
47
+ }], text: [{
48
+ type: Input
49
+ }], size: [{
50
+ type: Input
51
+ }, {
52
+ type: HostBinding,
53
+ args: [`attr.data-size`]
54
+ }], disabled: [{
55
+ type: Input
56
+ }, {
57
+ type: HostBinding,
58
+ args: [`class._disabled`]
59
+ }], computedColor: [{
60
+ type: HostBinding,
61
+ args: [`style.--tui-primary`]
62
+ }] } });
55
63
 
56
- let TuiLegendItemModule = class TuiLegendItemModule {
57
- };
58
- TuiLegendItemModule = __decorate([
59
- NgModule({
60
- imports: [CommonModule, TuiButtonModule],
61
- declarations: [TuiLegendItemComponent],
62
- exports: [TuiLegendItemComponent],
63
- })
64
- ], TuiLegendItemModule);
64
+ class TuiLegendItemModule {
65
+ }
66
+ TuiLegendItemModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiLegendItemModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
67
+ TuiLegendItemModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiLegendItemModule, declarations: [TuiLegendItemComponent], imports: [CommonModule, TuiButtonModule], exports: [TuiLegendItemComponent] });
68
+ TuiLegendItemModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiLegendItemModule, imports: [[CommonModule, TuiButtonModule]] });
69
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiLegendItemModule, decorators: [{
70
+ type: NgModule,
71
+ args: [{
72
+ imports: [CommonModule, TuiButtonModule],
73
+ declarations: [TuiLegendItemComponent],
74
+ exports: [TuiLegendItemComponent],
75
+ }]
76
+ }] });
65
77
 
66
78
  /**
67
79
  * Generated bundle index. Do not edit.
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-addon-charts-components-legend-item.js","sources":["ng://@taiga-ui/addon-charts/components/legend-item/legend-item.component.ts","ng://@taiga-ui/addon-charts/components/legend-item/legend-item.module.ts","ng://@taiga-ui/addon-charts/components/legend-item/taiga-ui-addon-charts-components-legend-item.ts"],"sourcesContent":["import {ChangeDetectionStrategy, Component, HostBinding, Input} from '@angular/core';\nimport {tuiDefaultProp} from '@taiga-ui/cdk';\nimport {colorFallback, TuiSizeS} from '@taiga-ui/core';\n\n// TODO: 3.0 Remove fallback\n@Component({\n selector: `tui-legend-item`,\n templateUrl: `./legend-item.template.html`,\n styleUrls: [`./legend-item.style.less`],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TuiLegendItemComponent {\n @Input()\n @tuiDefaultProp()\n active = false;\n\n @Input()\n @tuiDefaultProp()\n color = ``;\n\n @Input()\n @tuiDefaultProp()\n text = ``;\n\n @Input()\n @HostBinding(`attr.data-size`)\n @tuiDefaultProp()\n size: TuiSizeS = `m`;\n\n @Input()\n @HostBinding(`class._disabled`)\n disabled = false;\n\n @HostBinding(`style.--tui-primary`)\n get computedColor(): string | null {\n if (this.color === `var(--tui-primary)`) {\n return null;\n }\n\n return this.color.startsWith(`var(`) ? this.color : colorFallback(this.color);\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiButtonModule} from '@taiga-ui/core';\n\nimport {TuiLegendItemComponent} from './legend-item.component';\n\n@NgModule({\n imports: [CommonModule, TuiButtonModule],\n declarations: [TuiLegendItemComponent],\n exports: [TuiLegendItemComponent],\n})\nexport class TuiLegendItemModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAIA;IAOa,sBAAsB,GAAnC,MAAa,sBAAsB;IAAnC;QAGI,WAAM,GAAG,KAAK,CAAC;QAIf,UAAK,GAAG,EAAE,CAAC;QAIX,SAAI,GAAG,EAAE,CAAC;QAKV,SAAI,GAAa,GAAG,CAAC;QAIrB,aAAQ,GAAG,KAAK,CAAC;KAUpB;IAPG,IAAI,aAAa;QACb,IAAI,IAAI,CAAC,KAAK,KAAK,oBAAoB,EAAE;YACrC,OAAO,IAAI,CAAC;SACf;QAED,OAAO,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,KAAK,GAAG,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;KACjF;EACJ;AA3BG;IAFC,KAAK,EAAE;IACP,cAAc,EAAE;sDACF;AAIf;IAFC,KAAK,EAAE;IACP,cAAc,EAAE;qDACN;AAIX;IAFC,KAAK,EAAE;IACP,cAAc,EAAE;oDACP;AAKV;IAHC,KAAK,EAAE;IACP,WAAW,CAAC,gBAAgB,CAAC;IAC7B,cAAc,EAAE;oDACI;AAIrB;IAFC,KAAK,EAAE;IACP,WAAW,CAAC,iBAAiB,CAAC;wDACd;AAGjB;IADC,WAAW,CAAC,qBAAqB,CAAC;2DAOlC;AA7BQ,sBAAsB;IANlC,SAAS,CAAC;QACP,QAAQ,EAAE,iBAAiB;QAC3B,kaAA0C;QAE1C,eAAe,EAAE,uBAAuB,CAAC,MAAM;;KAClD,CAAC;GACW,sBAAsB,CA8BlC;;IC9BY,mBAAmB,GAAhC,MAAa,mBAAmB;EAAG;AAAtB,mBAAmB;IAL/B,QAAQ,CAAC;QACN,OAAO,EAAE,CAAC,YAAY,EAAE,eAAe,CAAC;QACxC,YAAY,EAAE,CAAC,sBAAsB,CAAC;QACtC,OAAO,EAAE,CAAC,sBAAsB,CAAC;KACpC,CAAC;GACW,mBAAmB,CAAG;;ACXnC;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-addon-charts-components-legend-item.js","sources":["../../../projects/addon-charts/components/legend-item/legend-item.component.ts","../../../projects/addon-charts/components/legend-item/legend-item.template.html","../../../projects/addon-charts/components/legend-item/legend-item.module.ts","../../../projects/addon-charts/components/legend-item/taiga-ui-addon-charts-components-legend-item.ts"],"sourcesContent":["import {ChangeDetectionStrategy, Component, HostBinding, Input} from '@angular/core';\nimport {tuiDefaultProp} from '@taiga-ui/cdk';\nimport {TuiSizeS} from '@taiga-ui/core';\n\n@Component({\n selector: `tui-legend-item`,\n templateUrl: `./legend-item.template.html`,\n styleUrls: [`./legend-item.style.less`],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TuiLegendItemComponent {\n @Input()\n @tuiDefaultProp()\n active = false;\n\n @Input()\n @tuiDefaultProp()\n color = ``;\n\n @Input()\n @tuiDefaultProp()\n text = ``;\n\n @Input()\n @HostBinding(`attr.data-size`)\n @tuiDefaultProp()\n size: TuiSizeS = `m`;\n\n @Input()\n @HostBinding(`class._disabled`)\n disabled = false;\n\n @HostBinding(`style.--tui-primary`)\n get computedColor(): string | null {\n return this.color === `var(--tui-primary)` ? null : this.color;\n }\n}\n","<button\n tuiButton\n type=\"button\"\n size=\"s\"\n appearance=\"whiteblock\"\n class=\"t-button\"\n [pseudoHover]=\"active || null\"\n>\n <div class=\"t-wrapper\">\n <ng-content select=\"tui-primitive-checkbox\"></ng-content>\n <span\n class=\"t-dot\"\n [style.backgroundColor]=\"color || 'var(--tui-primary)'\"\n ></span>\n <span class=\"t-text\">{{ text }}</span>\n <ng-content></ng-content>\n </div>\n</button>\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiButtonModule} from '@taiga-ui/core';\n\nimport {TuiLegendItemComponent} from './legend-item.component';\n\n@NgModule({\n imports: [CommonModule, TuiButtonModule],\n declarations: [TuiLegendItemComponent],\n exports: [TuiLegendItemComponent],\n})\nexport class TuiLegendItemModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;MAUa,sBAAsB,CAAA;AANnC,IAAA,WAAA,GAAA;QASI,IAAM,CAAA,MAAA,GAAG,KAAK,CAAC;QAIf,IAAK,CAAA,KAAA,GAAG,EAAE,CAAC;QAIX,IAAI,CAAA,IAAA,GAAG,EAAE,CAAC;QAKV,IAAI,CAAA,IAAA,GAAa,GAAG,CAAC;QAIrB,IAAQ,CAAA,QAAA,GAAG,KAAK,CAAC;AAMpB,KAAA;AAJG,IAAA,IACI,aAAa,GAAA;AACb,QAAA,OAAO,IAAI,CAAC,KAAK,KAAK,oBAAoB,GAAG,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC;KAClE;;oHAzBQ,sBAAsB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAtB,sBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,sBAAsB,iSCVnC,ofAkBA,EAAA,MAAA,EAAA,CAAA,0cAAA,CAAA,EAAA,UAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,kBAAA,EAAA,QAAA,EAAA,0EAAA,EAAA,MAAA,EAAA,CAAA,YAAA,EAAA,UAAA,EAAA,MAAA,EAAA,WAAA,EAAA,OAAA,EAAA,YAAA,EAAA,MAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;ADLI,UAAA,CAAA;AADC,IAAA,cAAc,EAAE;AACF,CAAA,EAAA,sBAAA,CAAA,SAAA,EAAA,QAAA,EAAA,KAAA,CAAA,CAAA,CAAA;AAIf,UAAA,CAAA;AADC,IAAA,cAAc,EAAE;AACN,CAAA,EAAA,sBAAA,CAAA,SAAA,EAAA,OAAA,EAAA,KAAA,CAAA,CAAA,CAAA;AAIX,UAAA,CAAA;AADC,IAAA,cAAc,EAAE;AACP,CAAA,EAAA,sBAAA,CAAA,SAAA,EAAA,MAAA,EAAA,KAAA,CAAA,CAAA,CAAA;AAKV,UAAA,CAAA;AADC,IAAA,cAAc,EAAE;AACI,CAAA,EAAA,sBAAA,CAAA,SAAA,EAAA,MAAA,EAAA,KAAA,CAAA,CAAA,CAAA;4FAhBZ,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBANlC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE,CAAiB,eAAA,CAAA;AAC3B,oBAAA,WAAW,EAAE,CAA6B,2BAAA,CAAA;oBAC1C,SAAS,EAAE,CAAC,CAAA,wBAAA,CAA0B,CAAC;oBACvC,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAClD,iBAAA,CAAA;8BAIG,MAAM,EAAA,CAAA;sBAFL,KAAK;gBAMN,KAAK,EAAA,CAAA;sBAFJ,KAAK;gBAMN,IAAI,EAAA,CAAA;sBAFH,KAAK;gBAON,IAAI,EAAA,CAAA;sBAHH,KAAK;;sBACL,WAAW;uBAAC,CAAgB,cAAA,CAAA,CAAA;gBAM7B,QAAQ,EAAA,CAAA;sBAFP,KAAK;;sBACL,WAAW;uBAAC,CAAiB,eAAA,CAAA,CAAA;gBAI1B,aAAa,EAAA,CAAA;sBADhB,WAAW;uBAAC,CAAqB,mBAAA,CAAA,CAAA;;;MErBzB,mBAAmB,CAAA;;iHAAnB,mBAAmB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;AAAnB,mBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,mBAAmB,iBAHb,sBAAsB,CAAA,EAAA,OAAA,EAAA,CAD3B,YAAY,EAAE,eAAe,aAE7B,sBAAsB,CAAA,EAAA,CAAA,CAAA;AAEvB,mBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,mBAAmB,EAJnB,OAAA,EAAA,CAAA,CAAC,YAAY,EAAE,eAAe,CAAC,CAAA,EAAA,CAAA,CAAA;4FAI/B,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAL/B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,eAAe,CAAC;oBACxC,YAAY,EAAE,CAAC,sBAAsB,CAAC;oBACtC,OAAO,EAAE,CAAC,sBAAsB,CAAC;AACpC,iBAAA,CAAA;;;ACVD;;AAEG;;;;"}
@@ -1,22 +1,31 @@
1
- import { __decorate, __param } from 'tslib';
1
+ import { __decorate } from 'tslib';
2
+ import * as i2$1 from '@angular/common';
2
3
  import { Location, CommonModule } from '@angular/common';
3
- import { Renderer2, Inject, ElementRef, NgZone, ContentChildren, forwardRef, Input, Directive, Optional, HostListener, Component, ChangeDetectionStrategy, NgModule } from '@angular/core';
4
- import { draw } from '@taiga-ui/addon-charts/utils';
5
- import { EMPTY_QUERY, tuiZonefree, TuiDestroyService, tuiDefaultProp, tuiPure, inRange, tuiZoneOptimized, TuiIdService, TuiFocusableModule, TuiLetModule } from '@taiga-ui/cdk';
6
- import { Observable, Subject } from 'rxjs';
7
- import { throttleTime, map, startWith, distinctUntilChanged, filter, takeUntil } from 'rxjs/operators';
8
- import { ANIMATION_FRAME } from '@ng-web-apis/common';
9
- import { HINT_HOVERED_CLASS, TuiHintModule, TuiDescribedByModule } from '@taiga-ui/core';
4
+ import * as i0 from '@angular/core';
5
+ import { Renderer2, NgZone, ElementRef, Directive, Inject, ContentChildren, forwardRef, Input, Component, ChangeDetectionStrategy, Optional, ViewChildren, HostListener, NgModule } from '@angular/core';
6
+ import { tuiDraw } from '@taiga-ui/addon-charts/utils';
7
+ import * as i1 from '@taiga-ui/cdk';
8
+ import { EMPTY_QUERY, tuiZonefree, TuiDestroyService, TuiHoveredService, tuiDefaultProp, tuiPure, tuiZoneOptimized, TuiIdService, tuiInRange, TuiFocusableModule, TuiLetModule } from '@taiga-ui/cdk';
9
+ import * as i3 from '@taiga-ui/core';
10
+ import { TuiHintControllerDirective, TuiDriver, TUI_HINT_CONTROLLER_OPTIONS, TuiHintModule, TuiDescribedByModule } from '@taiga-ui/core';
11
+ import * as i2 from 'rxjs';
12
+ import { combineLatest, Subject } from 'rxjs';
13
+ import { startWith, map, distinctUntilChanged, filter, takeUntil } from 'rxjs/operators';
10
14
  import { PolymorpheusModule } from '@tinkoff/ng-polymorpheus';
11
15
 
12
- let TuiLineChartHintDirective = class TuiLineChartHintDirective {
13
- constructor(renderer, destroy$, { nativeElement }, ngZone, animationFrame$) {
16
+ class TuiLineChartHintDirective {
17
+ constructor(renderer, destroy$, ngZone, hovered$) {
14
18
  this.renderer = renderer;
19
+ this.destroy$ = destroy$;
20
+ this.ngZone = ngZone;
21
+ this.hovered$ = hovered$;
15
22
  this.charts = EMPTY_QUERY;
16
23
  this.chartsRef = EMPTY_QUERY;
17
24
  this.hint = ``;
18
- animationFrame$
19
- .pipe(throttleTime(200), map(() => !!nativeElement.querySelector(`.${HINT_HOVERED_CLASS}`)), startWith(false), distinctUntilChanged(), filter(v => !v), tuiZonefree(ngZone), takeUntil(destroy$))
25
+ }
26
+ ngAfterContentInit() {
27
+ combineLatest([tuiLineChartDrivers(this.charts), this.hovered$])
28
+ .pipe(map(([drivers, hovered]) => !drivers && !hovered), filter(Boolean), tuiZonefree(this.ngZone), takeUntil(this.destroy$))
20
29
  .subscribe(() => {
21
30
  this.charts.forEach(chart => chart.onHovered(NaN));
22
31
  });
@@ -38,56 +47,62 @@ let TuiLineChartHintDirective = class TuiLineChartHintDirective {
38
47
  index,
39
48
  };
40
49
  }
41
- };
42
- TuiLineChartHintDirective.ctorParameters = () => [
43
- { type: Renderer2, decorators: [{ type: Inject, args: [Renderer2,] }] },
44
- { type: TuiDestroyService, decorators: [{ type: Inject, args: [TuiDestroyService,] }] },
45
- { type: ElementRef, decorators: [{ type: Inject, args: [ElementRef,] }] },
46
- { type: NgZone, decorators: [{ type: Inject, args: [NgZone,] }] },
47
- { type: Observable, decorators: [{ type: Inject, args: [ANIMATION_FRAME,] }] }
48
- ];
49
- __decorate([
50
- ContentChildren(forwardRef(() => TuiLineChartComponent))
51
- ], TuiLineChartHintDirective.prototype, "charts", void 0);
52
- __decorate([
53
- ContentChildren(forwardRef(() => TuiLineChartComponent), { read: ElementRef })
54
- ], TuiLineChartHintDirective.prototype, "chartsRef", void 0);
50
+ }
51
+ TuiLineChartHintDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiLineChartHintDirective, deps: [{ token: Renderer2 }, { token: TuiDestroyService }, { token: NgZone }, { token: TuiHoveredService }], target: i0.ɵɵFactoryTarget.Directive });
52
+ TuiLineChartHintDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: TuiLineChartHintDirective, selector: "[tuiLineChartHint]", inputs: { hint: ["tuiLineChartHint", "hint"] }, providers: [TuiDestroyService, TuiHoveredService], queries: [{ propertyName: "charts", predicate: i0.forwardRef(function () { return TuiLineChartComponent; }) }, { propertyName: "chartsRef", predicate: i0.forwardRef(function () { return TuiLineChartComponent; }), read: ElementRef }], ngImport: i0 });
55
53
  __decorate([
56
- Input(`tuiLineChartHint`),
57
54
  tuiDefaultProp()
58
55
  ], TuiLineChartHintDirective.prototype, "hint", void 0);
59
56
  __decorate([
60
57
  tuiPure
61
58
  ], TuiLineChartHintDirective.prototype, "computeContext", null);
62
- TuiLineChartHintDirective = __decorate([
63
- Directive({
64
- selector: `[tuiLineChartHint]`,
65
- providers: [TuiDestroyService],
66
- }),
67
- __param(0, Inject(Renderer2)),
68
- __param(1, Inject(TuiDestroyService)),
69
- __param(2, Inject(ElementRef)),
70
- __param(3, Inject(NgZone)),
71
- __param(4, Inject(ANIMATION_FRAME))
72
- ], TuiLineChartHintDirective);
73
-
74
- // eslint-disable-next-line @typescript-eslint/naming-convention
75
- function smoothingAssertion(smoothingFactor) {
76
- return inRange(smoothingFactor, 0, 100);
59
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiLineChartHintDirective, decorators: [{
60
+ type: Directive,
61
+ args: [{
62
+ selector: `[tuiLineChartHint]`,
63
+ providers: [TuiDestroyService, TuiHoveredService],
64
+ }]
65
+ }], ctorParameters: function () { return [{ type: i0.Renderer2, decorators: [{
66
+ type: Inject,
67
+ args: [Renderer2]
68
+ }] }, { type: i1.TuiDestroyService, decorators: [{
69
+ type: Inject,
70
+ args: [TuiDestroyService]
71
+ }] }, { type: i0.NgZone, decorators: [{
72
+ type: Inject,
73
+ args: [NgZone]
74
+ }] }, { type: i2.Observable, decorators: [{
75
+ type: Inject,
76
+ args: [TuiHoveredService]
77
+ }] }]; }, propDecorators: { charts: [{
78
+ type: ContentChildren,
79
+ args: [forwardRef(() => TuiLineChartComponent)]
80
+ }], chartsRef: [{
81
+ type: ContentChildren,
82
+ args: [forwardRef(() => TuiLineChartComponent), { read: ElementRef }]
83
+ }], hint: [{
84
+ type: Input,
85
+ args: [`tuiLineChartHint`]
86
+ }], computeContext: [] } });
87
+ function tuiLineChartDrivers(charts) {
88
+ return combineLatest(charts
89
+ .map(({ drivers }) => drivers.map(driver => driver.pipe(startWith(false))))
90
+ .reduce((acc, drivers) => acc.concat(drivers), [])).pipe(map(values => values.some(Boolean)), distinctUntilChanged());
77
91
  }
78
- const SMOOTHING_MESSAGE = `smoothingFactor must be between 0 and 100`;
79
- let TuiLineChartComponent = class TuiLineChartComponent {
80
- constructor(idService, ngZone, locationRef, hintDirective) {
92
+
93
+ class TuiLineChartComponent {
94
+ constructor(idService, ngZone, locationRef, hintDirective, hintController) {
81
95
  this.ngZone = ngZone;
82
96
  this.locationRef = locationRef;
83
97
  this.hintDirective = hintDirective;
98
+ this.hintController = hintController;
84
99
  this._hovered$ = new Subject();
100
+ this.drivers = EMPTY_QUERY;
85
101
  this.x = 0;
86
102
  this.y = 0;
87
103
  this.width = 0;
88
104
  this.height = 0;
89
105
  this.smoothingFactor = 0;
90
- this.hintContent = ``;
91
106
  this.xStringify = null;
92
107
  this.yStringify = null;
93
108
  this.filled = false;
@@ -101,6 +116,10 @@ let TuiLineChartComponent = class TuiLineChartComponent {
101
116
  get hovered$() {
102
117
  return this._hovered$.pipe(distinctUntilChanged(), tuiZoneOptimized(this.ngZone));
103
118
  }
119
+ get hintContent() {
120
+ var _a;
121
+ return ((_a = this.hintController) === null || _a === void 0 ? void 0 : _a.content) || ``;
122
+ }
104
123
  get fillId() {
105
124
  return `tui-line-chart-${this.autoIdString}`;
106
125
  }
@@ -152,7 +171,7 @@ let TuiLineChartComponent = class TuiLineChartComponent {
152
171
  getContentContext($implicit, index) {
153
172
  var _a;
154
173
  return (((_a = this.hintDirective) === null || _a === void 0 ? void 0 : _a.getContext(this.value.indexOf($implicit), this)) || {
155
- $implicit: [],
174
+ $implicit,
156
175
  index,
157
176
  });
158
177
  }
@@ -184,107 +203,145 @@ let TuiLineChartComponent = class TuiLineChartComponent {
184
203
  return this.value.length === 1;
185
204
  }
186
205
  getD(value, smoothingFactor) {
187
- return value.reduce((d, point, index) => index ? `${d} ${draw(value, index, smoothingFactor)}` : `M ${point}`, ``);
206
+ return value.reduce((d, point, index) => index ? `${d} ${tuiDraw(value, index, smoothingFactor)}` : `M ${point}`, ``);
188
207
  }
189
208
  computeWidth(index) {
190
209
  return index === this.value.length - 1
191
210
  ? 2 * (this.value[index][0] - this.getX(index))
192
211
  : this.getX(index + 1) - this.getX(index);
193
212
  }
194
- };
195
- TuiLineChartComponent.ctorParameters = () => [
196
- { type: TuiIdService, decorators: [{ type: Inject, args: [TuiIdService,] }] },
197
- { type: NgZone, decorators: [{ type: Inject, args: [NgZone,] }] },
198
- { type: Location, decorators: [{ type: Inject, args: [Location,] }] },
199
- { type: TuiLineChartHintDirective, decorators: [{ type: Optional }, { type: Inject, args: [TuiLineChartHintDirective,] }] }
200
- ];
213
+ }
214
+ TuiLineChartComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiLineChartComponent, deps: [{ token: TuiIdService }, { token: NgZone }, { token: Location }, { token: TuiLineChartHintDirective, optional: true }, { token: TuiHintControllerDirective, optional: true }], target: i0.ɵɵFactoryTarget.Component });
215
+ TuiLineChartComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: TuiLineChartComponent, selector: "tui-line-chart", inputs: { valueSetter: ["value", "valueSetter"], x: "x", y: "y", width: "width", height: "height", smoothingFactor: "smoothingFactor", xStringify: "xStringify", yStringify: "yStringify", filled: "filled", dots: "dots" }, host: { listeners: { "mouseleave": "onMouseLeave()" } }, viewQueries: [{ propertyName: "drivers", predicate: TuiDriver, descendants: true }], ngImport: i0, template: "<ng-container *tuiLet=\"hovered$ | async as hovered\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n focusable=\"false\"\n preserveAspectRatio=\"none\"\n width=\"100%\"\n height=\"100%\"\n class=\"t-svg\"\n [attr.viewBox]=\"viewBox\"\n >\n <defs>\n <linearGradient\n x1=\"0\"\n x2=\"0\"\n y1=\"1\"\n y2=\"0\"\n [attr.id]=\"fillId\"\n >\n <stop\n stop-color=\"currentColor\"\n offset=\"0%\"\n stop-opacity=\"0.5\"\n />\n <stop\n stop-color=\"currentColor\"\n offset=\"100%\"\n stop-opacity=\"0\"\n />\n </linearGradient>\n </defs>\n <path\n stroke=\"none\"\n [attr.fill]=\"fill\"\n [attr.d]=\"fillD\"\n />\n <path\n fill=\"none\"\n stroke=\"currentColor\"\n vector-effect=\"non-scaling-stroke\"\n stroke-width=\"2\"\n [attr.d]=\"d\"\n />\n </svg>\n <ng-container *ngIf=\"dots\">\n <div\n *ngFor=\"let point of value\"\n class=\"t-dot\"\n [style.left.%]=\"getLeft(point[0])\"\n [style.bottom.%]=\"getBottom(point[1])\"\n ></div>\n </ng-container>\n <ng-container *ngIf=\"hasHints\">\n <ng-container *ngFor=\"let point of value; let index = index\">\n <!-- TODO: Fix hint type -->\n <div\n *ngIf=\"value.length > 1 || dots\"\n tuiHintDirection=\"top\"\n class=\"t-column\"\n [class.t-column_hovered]=\"hovered === index\"\n [class.t-column_hint_hovered]=\"drivers.get(index) | async\"\n [tuiHintHost]=\"hintHost\"\n [tuiHint]=\"$any(hintDirective?.hint || hintContent)\"\n [tuiHintContext]=\"getContentContext(point, index)\"\n [tuiHintId]=\"getHintId(index)\"\n [style.left.%]=\"getLeft(getX(index))\"\n [style.width.%]=\"getWidth(index)\"\n (mouseenter)=\"onMouseEnter(index)\"\n >\n <div\n class=\"t-line t-line_vertical\"\n [style.left.%]=\"getOffset(index)\"\n ></div>\n <div\n #hintHost\n class=\"t-host\"\n [style.left.%]=\"getOffset(index)\"\n [style.bottom.%]=\"getBottom(point[1])\"\n [tuiFocusable]=\"isFocusable\"\n [tuiDescribedBy]=\"getHintId(index)\"\n ></div>\n </div>\n <div\n *ngIf=\"isFocusable\"\n class=\"t-line t-line_horizontal\"\n [style.bottom.%]=\"getBottom(point[1])\"\n ></div>\n </ng-container>\n </ng-container>\n <ng-container *ngIf=\"getHovered(hovered) as point\">\n <div\n *ngIf=\"xStringify\"\n class=\"t-hint t-hint_x\"\n [style.left.%]=\"getLeft(point[0])\"\n >\n {{ xStringify(point[0]) }}\n </div>\n <div\n *ngIf=\"yStringify\"\n class=\"t-hint t-hint_y\"\n [style.bottom.%]=\"getBottom(point[1])\"\n >\n {{ yStringify(point[1]) }}\n </div>\n </ng-container>\n</ng-container>\n", styles: [":host{display:flex;width:100%;height:100%;pointer-events:none}.t-svg{transform:scaleY(-1)}.t-column{position:absolute;top:0;height:100%;pointer-events:auto}.t-dot{position:absolute;width:.375rem;height:.375rem;border-radius:100%;background:currentColor;margin:-.1875rem;box-shadow:0 0 0 2px #fff}.t-host{position:absolute;left:50%;width:.5rem;height:.5rem;border-radius:100%;opacity:0;background:#fff;margin:-.25rem;box-shadow:0 0 0 2px currentColor,0 .0625rem .1875rem .125rem rgba(0,0,0,.1);outline:none;pointer-events:none}.t-host:focus,.t-column_hovered .t-host,.t-column:hover .t-host,.t-column_hint_hovered .t-host{opacity:1}.t-line{position:absolute;opacity:0;background:var(--tui-base-03)}.t-line_vertical{top:0;bottom:0;left:50%;width:1px}.t-line_horizontal{z-index:-1;width:100%;height:1px}:host[style^=\"z-index: 0\"] .t-column_hovered .t-line,:host:not([style]) .t-column:hover .t-line,:host:not([style]) .t-column_hint_hovered .t-line,:host[style^=\"z-index: 0\"] .t-column_hovered+.t-line,:host:not([style]) .t-column:hover+.t-line,:host:not([style]) .t-column_hint_hovered+.t-line{opacity:1}.t-hint{box-shadow:0 .25rem 1.5rem rgba(0,0,0,.12);position:absolute;font:var(--tui-font-text-xs);height:1.25rem;line-height:1.25rem;margin-bottom:-.625rem;padding:0 .375rem;white-space:nowrap;color:var(--tui-base-09);background:var(--tui-base-01);transform:translate(-50%)}.t-hint_x{bottom:0}.t-hint_y{left:0}\n"], directives: [{ type: i1.TuiLetDirective, selector: "[tuiLet]", inputs: ["tuiLet"] }, { type: i2$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i3.TuiHintDirective, selector: "[tuiHint]:not(ng-container)", inputs: ["tuiHintId", "tuiHint", "tuiHintContext", "tuiHintAppearance"] }, { type: i3.TuiHintDriverDirective, selector: "[tuiHint]" }, { type: i3.TuiHintHoverDirective, selector: "[tuiHint]:not(ng-container)", inputs: ["tuiHintShowDelay", "tuiHintHideDelay"] }, { type: i3.TuiHintPositionDirective, selector: "[tuiHint]:not([tuiHintCustomPosition])", inputs: ["tuiHintDirection"] }, { type: i3.TuiHintHostDirective, selector: "[tuiHint][tuiHintHost]", inputs: ["tuiHintHost"] }, { type: i1.TuiFocusableDirective, selector: "[tuiFocusable]", inputs: ["tuiFocusable"] }, { type: i3.TuiDescribedByDirective, selector: "[tuiDescribedBy]:not(ng-container)", inputs: ["tuiDescribedBy"] }], pipes: { "async": i2$1.AsyncPipe }, viewProviders: [TUI_HINT_CONTROLLER_OPTIONS], changeDetection: i0.ChangeDetectionStrategy.OnPush });
201
216
  __decorate([
202
- Input(`value`),
203
217
  tuiDefaultProp()
204
218
  ], TuiLineChartComponent.prototype, "valueSetter", null);
205
219
  __decorate([
206
- Input(),
207
220
  tuiDefaultProp()
208
221
  ], TuiLineChartComponent.prototype, "x", void 0);
209
222
  __decorate([
210
- Input(),
211
223
  tuiDefaultProp()
212
224
  ], TuiLineChartComponent.prototype, "y", void 0);
213
225
  __decorate([
214
- Input(),
215
226
  tuiDefaultProp()
216
227
  ], TuiLineChartComponent.prototype, "width", void 0);
217
228
  __decorate([
218
- Input(),
219
229
  tuiDefaultProp()
220
230
  ], TuiLineChartComponent.prototype, "height", void 0);
221
231
  __decorate([
222
- Input(),
223
- tuiDefaultProp(smoothingAssertion, SMOOTHING_MESSAGE)
232
+ tuiDefaultProp((smoothingFactor) => tuiInRange(smoothingFactor, 0, 100), `smoothingFactor must be between 0 and 100`)
224
233
  ], TuiLineChartComponent.prototype, "smoothingFactor", void 0);
225
234
  __decorate([
226
- Input(),
227
- tuiDefaultProp()
228
- ], TuiLineChartComponent.prototype, "hintContent", void 0);
229
- __decorate([
230
- Input(),
231
235
  tuiDefaultProp()
232
236
  ], TuiLineChartComponent.prototype, "xStringify", void 0);
233
237
  __decorate([
234
- Input(),
235
238
  tuiDefaultProp()
236
239
  ], TuiLineChartComponent.prototype, "yStringify", void 0);
237
240
  __decorate([
238
- Input(),
239
241
  tuiDefaultProp()
240
242
  ], TuiLineChartComponent.prototype, "filled", void 0);
241
243
  __decorate([
242
- Input(),
243
244
  tuiDefaultProp()
244
245
  ], TuiLineChartComponent.prototype, "dots", void 0);
245
246
  __decorate([
246
247
  tuiPure
247
248
  ], TuiLineChartComponent.prototype, "hovered$", null);
248
- __decorate([
249
- HostListener(`mouseleave`)
250
- ], TuiLineChartComponent.prototype, "onMouseLeave", null);
251
249
  __decorate([
252
250
  tuiPure
253
251
  ], TuiLineChartComponent.prototype, "getD", null);
254
- TuiLineChartComponent = __decorate([
255
- Component({
256
- selector: `tui-line-chart`,
257
- template: "<ng-container *tuiLet=\"hovered$ | async as hovered\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n focusable=\"false\"\n preserveAspectRatio=\"none\"\n width=\"100%\"\n height=\"100%\"\n class=\"t-svg\"\n [attr.viewBox]=\"viewBox\"\n >\n <defs>\n <linearGradient\n x1=\"0\"\n x2=\"0\"\n y1=\"1\"\n y2=\"0\"\n [attr.id]=\"fillId\"\n >\n <stop\n stop-color=\"currentColor\"\n offset=\"0%\"\n stop-opacity=\"0.5\"\n />\n <stop\n stop-color=\"currentColor\"\n offset=\"100%\"\n stop-opacity=\"0\"\n />\n </linearGradient>\n </defs>\n <path\n stroke=\"none\"\n [attr.fill]=\"fill\"\n [attr.d]=\"fillD\"\n />\n <path\n fill=\"none\"\n stroke=\"currentColor\"\n vector-effect=\"non-scaling-stroke\"\n stroke-width=\"2\"\n [attr.d]=\"d\"\n />\n </svg>\n <ng-container *ngIf=\"dots\">\n <div\n *ngFor=\"let point of value\"\n class=\"t-dot\"\n [style.left.%]=\"getLeft(point[0])\"\n [style.bottom.%]=\"getBottom(point[1])\"\n ></div>\n </ng-container>\n <ng-container *ngIf=\"hasHints\">\n <ng-container *ngFor=\"let point of value; let index = index\">\n <div\n *ngIf=\"value.length > 1 || dots\"\n tuiHintDirection=\"top-left\"\n class=\"t-column\"\n [class.t-column_hovered]=\"hovered === index\"\n [tuiHintHost]=\"hintHost\"\n [tuiHint]=\"hintDirective || hintContent ? hint : ''\"\n [tuiHintId]=\"getHintId(index)\"\n [style.left.%]=\"getLeft(getX(index))\"\n [style.width.%]=\"getWidth(index)\"\n (mouseenter)=\"onMouseEnter(index)\"\n >\n <div\n class=\"t-line t-line_vertical\"\n [style.left.%]=\"getOffset(index)\"\n ></div>\n <div\n #hintHost\n class=\"t-host\"\n [style.left.%]=\"getOffset(index)\"\n [style.bottom.%]=\"getBottom(point[1])\"\n [tuiFocusable]=\"isFocusable\"\n [tuiDescribedBy]=\"getHintId(index)\"\n ></div>\n </div>\n <div\n *ngIf=\"isFocusable\"\n class=\"t-line t-line_horizontal\"\n [style.bottom.%]=\"getBottom(point[1])\"\n ></div>\n <ng-template #hint>\n <div\n *ngIf=\"hintDirective; else single\"\n polymorpheus-outlet\n class=\"t-text\"\n [content]=\"hintDirective.hint\"\n [context]=\"getContentContext(point, index)\"\n ></div>\n <ng-template #single>\n <div\n polymorpheus-outlet\n class=\"t-text\"\n [content]=\"hintContent\"\n [context]=\"{$implicit: point, index: index}\"\n ></div>\n </ng-template>\n </ng-template>\n </ng-container>\n </ng-container>\n <ng-container *ngIf=\"getHovered(hovered) as point\">\n <div\n *ngIf=\"xStringify\"\n class=\"t-hint t-hint_x\"\n [style.left.%]=\"getLeft(point[0])\"\n >\n {{ xStringify(point[0]) }}\n </div>\n <div\n *ngIf=\"yStringify\"\n class=\"t-hint t-hint_y\"\n [style.bottom.%]=\"getBottom(point[1])\"\n >\n {{ yStringify(point[1]) }}\n </div>\n </ng-container>\n</ng-container>\n",
258
- changeDetection: ChangeDetectionStrategy.OnPush,
259
- styles: [":host{display:flex;width:100%;height:100%;pointer-events:none}.t-svg{transform:scale(1,-1)}.t-column{position:absolute;top:0;height:100%;pointer-events:auto}.t-dot{position:absolute;width:.375rem;height:.375rem;border-radius:100%;background:currentColor;margin:-.1875rem;box-shadow:0 0 0 2px #fff}.t-host{position:absolute;left:50%;width:.5rem;height:.5rem;border-radius:100%;opacity:0;background:#fff;margin:-.25rem;box-shadow:0 0 0 2px currentColor,0 .0625rem .1875rem .125rem rgba(0,0,0,.1);outline:0;pointer-events:none}.t-column._hint_hovered .t-host,.t-column:hover .t-host,.t-column_hovered .t-host,.t-host:focus{opacity:1}.t-line{position:absolute;opacity:0;background:var(--tui-base-03)}.t-line_vertical{top:0;bottom:0;left:50%;width:1px}.t-line_horizontal{z-index:-1;width:100%;height:1px}:host:not([style]) .t-column._hint_hovered .t-line,:host:not([style]) .t-column._hint_hovered+.t-line,:host:not([style]) .t-column:hover .t-line,:host:not([style]) .t-column:hover+.t-line,:host[style^='z-index: 0'] .t-column_hovered .t-line,:host[style^='z-index: 0'] .t-column_hovered+.t-line{opacity:1}.t-text{white-space:pre-wrap}.t-hint{box-shadow:0 .25rem 1.5rem rgba(0,0,0,.12);position:absolute;font:var(--tui-font-text-xs);height:1.25rem;line-height:1.25rem;margin-bottom:-.625rem;padding:0 .375rem;white-space:nowrap;color:var(--tui-base-09);background:var(--tui-base-01);transform:translate3d(-50%,0,0)}.t-hint_x{bottom:0}.t-hint_y{left:0}"]
260
- }),
261
- __param(0, Inject(TuiIdService)),
262
- __param(1, Inject(NgZone)),
263
- __param(2, Inject(Location)),
264
- __param(3, Optional()),
265
- __param(3, Inject(TuiLineChartHintDirective))
266
- ], TuiLineChartComponent);
252
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiLineChartComponent, decorators: [{
253
+ type: Component,
254
+ args: [{
255
+ selector: `tui-line-chart`,
256
+ templateUrl: `./line-chart.template.html`,
257
+ styleUrls: [`./line-chart.style.less`],
258
+ changeDetection: ChangeDetectionStrategy.OnPush,
259
+ viewProviders: [TUI_HINT_CONTROLLER_OPTIONS],
260
+ }]
261
+ }], ctorParameters: function () { return [{ type: i1.TuiIdService, decorators: [{
262
+ type: Inject,
263
+ args: [TuiIdService]
264
+ }] }, { type: i0.NgZone, decorators: [{
265
+ type: Inject,
266
+ args: [NgZone]
267
+ }] }, { type: i2$1.Location, decorators: [{
268
+ type: Inject,
269
+ args: [Location]
270
+ }] }, { type: TuiLineChartHintDirective, decorators: [{
271
+ type: Optional
272
+ }, {
273
+ type: Inject,
274
+ args: [TuiLineChartHintDirective]
275
+ }] }, { type: i3.TuiHintControllerDirective, decorators: [{
276
+ type: Optional
277
+ }, {
278
+ type: Inject,
279
+ args: [TuiHintControllerDirective]
280
+ }] }]; }, propDecorators: { drivers: [{
281
+ type: ViewChildren,
282
+ args: [TuiDriver]
283
+ }], valueSetter: [{
284
+ type: Input,
285
+ args: [`value`]
286
+ }], x: [{
287
+ type: Input
288
+ }], y: [{
289
+ type: Input
290
+ }], width: [{
291
+ type: Input
292
+ }], height: [{
293
+ type: Input
294
+ }], smoothingFactor: [{
295
+ type: Input
296
+ }], xStringify: [{
297
+ type: Input
298
+ }], yStringify: [{
299
+ type: Input
300
+ }], filled: [{
301
+ type: Input
302
+ }], dots: [{
303
+ type: Input
304
+ }], hovered$: [], onMouseLeave: [{
305
+ type: HostListener,
306
+ args: [`mouseleave`]
307
+ }], getD: [] } });
267
308
 
268
- let TuiLineChartModule = class TuiLineChartModule {
269
- };
270
- TuiLineChartModule = __decorate([
271
- NgModule({
272
- imports: [
309
+ class TuiLineChartModule {
310
+ }
311
+ TuiLineChartModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiLineChartModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
312
+ TuiLineChartModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiLineChartModule, declarations: [TuiLineChartComponent, TuiLineChartHintDirective], imports: [CommonModule,
313
+ PolymorpheusModule,
314
+ TuiHintModule,
315
+ TuiFocusableModule,
316
+ TuiDescribedByModule,
317
+ TuiLetModule], exports: [TuiLineChartComponent, TuiLineChartHintDirective] });
318
+ TuiLineChartModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiLineChartModule, imports: [[
273
319
  CommonModule,
274
320
  PolymorpheusModule,
275
321
  TuiHintModule,
276
322
  TuiFocusableModule,
277
323
  TuiDescribedByModule,
278
324
  TuiLetModule,
279
- ],
280
- declarations: [TuiLineChartComponent, TuiLineChartHintDirective],
281
- exports: [TuiLineChartComponent, TuiLineChartHintDirective],
282
- })
283
- ], TuiLineChartModule);
325
+ ]] });
326
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiLineChartModule, decorators: [{
327
+ type: NgModule,
328
+ args: [{
329
+ imports: [
330
+ CommonModule,
331
+ PolymorpheusModule,
332
+ TuiHintModule,
333
+ TuiFocusableModule,
334
+ TuiDescribedByModule,
335
+ TuiLetModule,
336
+ ],
337
+ declarations: [TuiLineChartComponent, TuiLineChartHintDirective],
338
+ exports: [TuiLineChartComponent, TuiLineChartHintDirective],
339
+ }]
340
+ }] });
284
341
 
285
342
  /**
286
343
  * Generated bundle index. Do not edit.
287
344
  */
288
345
 
289
- export { TuiLineChartComponent, TuiLineChartHintDirective, TuiLineChartModule, smoothingAssertion };
346
+ export { TuiLineChartComponent, TuiLineChartHintDirective, TuiLineChartModule, tuiLineChartDrivers };
290
347
  //# sourceMappingURL=taiga-ui-addon-charts-components-line-chart.js.map