@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,258 +1,424 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/common'), require('@angular/core'), require('@angular/platform-browser'), require('@taiga-ui/addon-charts/constants'), require('@taiga-ui/cdk'), require('@taiga-ui/core'), require('@ng-web-apis/common'), require('@taiga-ui/addon-charts/utils'), require('rxjs'), require('rxjs/operators'), require('@tinkoff/ng-polymorpheus')) :
3
- typeof define === 'function' && define.amd ? define('@taiga-ui/addon-charts/components/pie-chart', ['exports', '@angular/common', '@angular/core', '@angular/platform-browser', '@taiga-ui/addon-charts/constants', '@taiga-ui/cdk', '@taiga-ui/core', '@ng-web-apis/common', '@taiga-ui/addon-charts/utils', 'rxjs', 'rxjs/operators', '@tinkoff/ng-polymorpheus'], factory) :
4
- (global = global || self, factory((global['taiga-ui'] = global['taiga-ui'] || {}, global['taiga-ui']['addon-charts'] = global['taiga-ui']['addon-charts'] || {}, global['taiga-ui']['addon-charts'].components = global['taiga-ui']['addon-charts'].components || {}, global['taiga-ui']['addon-charts'].components['pie-chart'] = {}), global.ng.common, global.ng.core, global.ng.platformBrowser, global['taiga-ui']['addon-charts'].constants, global.cdk, global.core$1, global.common$1, global['taiga-ui']['addon-charts'].utils, global.rxjs, global.rxjs.operators, global.ngPolymorpheus));
5
- }(this, (function (exports, common, core, platformBrowser, constants, cdk, core$1, common$1, utils, rxjs, operators, ngPolymorpheus) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/common'), require('@angular/core'), require('@taiga-ui/cdk'), require('@taiga-ui/core'), require('@ng-web-apis/common'), require('@taiga-ui/addon-charts/utils'), require('rxjs'), require('rxjs/operators'), require('@tinkoff/ng-polymorpheus')) :
3
+ typeof define === 'function' && define.amd ? define('@taiga-ui/addon-charts/components/pie-chart', ['exports', '@angular/common', '@angular/core', '@taiga-ui/cdk', '@taiga-ui/core', '@ng-web-apis/common', '@taiga-ui/addon-charts/utils', 'rxjs', 'rxjs/operators', '@tinkoff/ng-polymorpheus'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["taiga-ui"] = global["taiga-ui"] || {}, global["taiga-ui"]["addon-charts"] = global["taiga-ui"]["addon-charts"] || {}, global["taiga-ui"]["addon-charts"].components = global["taiga-ui"]["addon-charts"].components || {}, global["taiga-ui"]["addon-charts"].components["pie-chart"] = {}), global.ng.common, global.ng.core, global.i1$1, global.i3, global.common, global["taiga-ui"]["addon-charts"].utils, global.rxjs, global.rxjs.operators, global.ngPolymorpheus));
5
+ })(this, (function (exports, i4, i0, i1$1, i3, common, utils, i1, operators, ngPolymorpheus) { 'use strict';
6
6
 
7
- /******************************************************************************
8
- Copyright (c) Microsoft Corporation.
9
-
10
- Permission to use, copy, modify, and/or distribute this software for any
11
- purpose with or without fee is hereby granted.
12
-
13
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
14
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
15
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
16
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
17
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
18
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
19
- PERFORMANCE OF THIS SOFTWARE.
20
- ***************************************************************************** */
21
- /* global Reflect, Promise */
22
-
23
- var extendStatics = function(d, b) {
24
- extendStatics = Object.setPrototypeOf ||
25
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
26
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
27
- return extendStatics(d, b);
28
- };
29
-
30
- function __extends(d, b) {
31
- if (typeof b !== "function" && b !== null)
32
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
33
- extendStatics(d, b);
34
- function __() { this.constructor = d; }
35
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
36
- }
37
-
38
- var __assign = function() {
39
- __assign = Object.assign || function __assign(t) {
40
- for (var s, i = 1, n = arguments.length; i < n; i++) {
41
- s = arguments[i];
42
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
43
- }
44
- return t;
45
- };
46
- return __assign.apply(this, arguments);
47
- };
48
-
49
- function __rest(s, e) {
50
- var t = {};
51
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
52
- t[p] = s[p];
53
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
54
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
55
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
56
- t[p[i]] = s[p[i]];
57
- }
58
- return t;
59
- }
60
-
61
- function __decorate(decorators, target, key, desc) {
62
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
63
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
64
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
65
- return c > 3 && r && Object.defineProperty(target, key, r), r;
66
- }
67
-
68
- function __param(paramIndex, decorator) {
69
- return function (target, key) { decorator(target, key, paramIndex); }
70
- }
71
-
72
- function __metadata(metadataKey, metadataValue) {
73
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
74
- }
75
-
76
- function __awaiter(thisArg, _arguments, P, generator) {
77
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
78
- return new (P || (P = Promise))(function (resolve, reject) {
79
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
80
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
81
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
82
- step((generator = generator.apply(thisArg, _arguments || [])).next());
83
- });
84
- }
85
-
86
- function __generator(thisArg, body) {
87
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
88
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
89
- function verb(n) { return function (v) { return step([n, v]); }; }
90
- function step(op) {
91
- if (f) throw new TypeError("Generator is already executing.");
92
- while (_) try {
93
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
94
- if (y = 0, t) op = [op[0] & 2, t.value];
95
- switch (op[0]) {
96
- case 0: case 1: t = op; break;
97
- case 4: _.label++; return { value: op[1], done: false };
98
- case 5: _.label++; y = op[1]; op = [0]; continue;
99
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
100
- default:
101
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
102
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
103
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
104
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
105
- if (t[2]) _.ops.pop();
106
- _.trys.pop(); continue;
107
- }
108
- op = body.call(thisArg, _);
109
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
110
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
111
- }
112
- }
113
-
114
- var __createBinding = Object.create ? (function(o, m, k, k2) {
115
- if (k2 === undefined) k2 = k;
116
- var desc = Object.getOwnPropertyDescriptor(m, k);
117
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
118
- desc = { enumerable: true, get: function() { return m[k]; } };
119
- }
120
- Object.defineProperty(o, k2, desc);
121
- }) : (function(o, m, k, k2) {
122
- if (k2 === undefined) k2 = k;
123
- o[k2] = m[k];
124
- });
125
-
126
- function __exportStar(m, o) {
127
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);
128
- }
129
-
130
- function __values(o) {
131
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
132
- if (m) return m.call(o);
133
- if (o && typeof o.length === "number") return {
134
- next: function () {
135
- if (o && i >= o.length) o = void 0;
136
- return { value: o && o[i++], done: !o };
137
- }
138
- };
139
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
140
- }
141
-
142
- function __read(o, n) {
143
- var m = typeof Symbol === "function" && o[Symbol.iterator];
144
- if (!m) return o;
145
- var i = m.call(o), r, ar = [], e;
146
- try {
147
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
148
- }
149
- catch (error) { e = { error: error }; }
150
- finally {
151
- try {
152
- if (r && !r.done && (m = i["return"])) m.call(i);
153
- }
154
- finally { if (e) throw e.error; }
155
- }
156
- return ar;
157
- }
158
-
159
- /** @deprecated */
160
- function __spread() {
161
- for (var ar = [], i = 0; i < arguments.length; i++)
162
- ar = ar.concat(__read(arguments[i]));
163
- return ar;
164
- }
165
-
166
- /** @deprecated */
167
- function __spreadArrays() {
168
- for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
169
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
170
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
171
- r[k] = a[j];
172
- return r;
173
- }
174
-
175
- function __spreadArray(to, from, pack) {
176
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
177
- if (ar || !(i in from)) {
178
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
179
- ar[i] = from[i];
180
- }
181
- }
182
- return to.concat(ar || Array.prototype.slice.call(from));
183
- }
184
-
185
- function __await(v) {
186
- return this instanceof __await ? (this.v = v, this) : new __await(v);
187
- }
188
-
189
- function __asyncGenerator(thisArg, _arguments, generator) {
190
- if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
191
- var g = generator.apply(thisArg, _arguments || []), i, q = [];
192
- return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
193
- function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
194
- function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
195
- function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
196
- function fulfill(value) { resume("next", value); }
197
- function reject(value) { resume("throw", value); }
198
- function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
199
- }
200
-
201
- function __asyncDelegator(o) {
202
- var i, p;
203
- return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
204
- function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
205
- }
206
-
207
- function __asyncValues(o) {
208
- if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
209
- var m = o[Symbol.asyncIterator], i;
210
- return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
211
- function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
212
- function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
213
- }
214
-
215
- function __makeTemplateObject(cooked, raw) {
216
- if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
217
- return cooked;
218
- };
219
-
220
- var __setModuleDefault = Object.create ? (function(o, v) {
221
- Object.defineProperty(o, "default", { enumerable: true, value: v });
222
- }) : function(o, v) {
223
- o["default"] = v;
224
- };
225
-
226
- function __importStar(mod) {
227
- if (mod && mod.__esModule) return mod;
228
- var result = {};
229
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
230
- __setModuleDefault(result, mod);
231
- return result;
232
- }
233
-
234
- function __importDefault(mod) {
235
- return (mod && mod.__esModule) ? mod : { default: mod };
236
- }
237
-
238
- function __classPrivateFieldGet(receiver, state, kind, f) {
239
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
240
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
241
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
242
- }
243
-
244
- function __classPrivateFieldSet(receiver, state, value, kind, f) {
245
- if (kind === "m") throw new TypeError("Private method is not writable");
246
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
247
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
248
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
249
- }
250
-
251
- function __classPrivateFieldIn(state, receiver) {
252
- if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object");
253
- return typeof state === "function" ? receiver === state : state.has(receiver);
7
+ function _interopNamespace(e) {
8
+ if (e && e.__esModule) return e;
9
+ var n = Object.create(null);
10
+ if (e) {
11
+ Object.keys(e).forEach(function (k) {
12
+ if (k !== 'default') {
13
+ var d = Object.getOwnPropertyDescriptor(e, k);
14
+ Object.defineProperty(n, k, d.get ? d : {
15
+ enumerable: true,
16
+ get: function () { return e[k]; }
17
+ });
18
+ }
19
+ });
20
+ }
21
+ n["default"] = e;
22
+ return Object.freeze(n);
254
23
  }
255
24
 
25
+ var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
26
+ var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
27
+ var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$1);
28
+ var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
29
+ var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
30
+
31
+ /******************************************************************************
32
+ Copyright (c) Microsoft Corporation.
33
+
34
+ Permission to use, copy, modify, and/or distribute this software for any
35
+ purpose with or without fee is hereby granted.
36
+
37
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
38
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
39
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
40
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
41
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
42
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
43
+ PERFORMANCE OF THIS SOFTWARE.
44
+ ***************************************************************************** */
45
+ /* global Reflect, Promise */
46
+ var extendStatics = function (d, b) {
47
+ extendStatics = Object.setPrototypeOf ||
48
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
49
+ function (d, b) { for (var p in b)
50
+ if (Object.prototype.hasOwnProperty.call(b, p))
51
+ d[p] = b[p]; };
52
+ return extendStatics(d, b);
53
+ };
54
+ function __extends(d, b) {
55
+ if (typeof b !== "function" && b !== null)
56
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
57
+ extendStatics(d, b);
58
+ function __() { this.constructor = d; }
59
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
60
+ }
61
+ var __assign = function () {
62
+ __assign = Object.assign || function __assign(t) {
63
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
64
+ s = arguments[i];
65
+ for (var p in s)
66
+ if (Object.prototype.hasOwnProperty.call(s, p))
67
+ t[p] = s[p];
68
+ }
69
+ return t;
70
+ };
71
+ return __assign.apply(this, arguments);
72
+ };
73
+ function __rest(s, e) {
74
+ var t = {};
75
+ for (var p in s)
76
+ if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
77
+ t[p] = s[p];
78
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
79
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
80
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
81
+ t[p[i]] = s[p[i]];
82
+ }
83
+ return t;
84
+ }
85
+ function __decorate(decorators, target, key, desc) {
86
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
87
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
88
+ r = Reflect.decorate(decorators, target, key, desc);
89
+ else
90
+ for (var i = decorators.length - 1; i >= 0; i--)
91
+ if (d = decorators[i])
92
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
93
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
94
+ }
95
+ function __param(paramIndex, decorator) {
96
+ return function (target, key) { decorator(target, key, paramIndex); };
97
+ }
98
+ function __metadata(metadataKey, metadataValue) {
99
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
100
+ return Reflect.metadata(metadataKey, metadataValue);
101
+ }
102
+ function __awaiter(thisArg, _arguments, P, generator) {
103
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
104
+ return new (P || (P = Promise))(function (resolve, reject) {
105
+ function fulfilled(value) { try {
106
+ step(generator.next(value));
107
+ }
108
+ catch (e) {
109
+ reject(e);
110
+ } }
111
+ function rejected(value) { try {
112
+ step(generator["throw"](value));
113
+ }
114
+ catch (e) {
115
+ reject(e);
116
+ } }
117
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
118
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
119
+ });
120
+ }
121
+ function __generator(thisArg, body) {
122
+ var _ = { label: 0, sent: function () { if (t[0] & 1)
123
+ throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
124
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
125
+ function verb(n) { return function (v) { return step([n, v]); }; }
126
+ function step(op) {
127
+ if (f)
128
+ throw new TypeError("Generator is already executing.");
129
+ while (_)
130
+ try {
131
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
132
+ return t;
133
+ if (y = 0, t)
134
+ op = [op[0] & 2, t.value];
135
+ switch (op[0]) {
136
+ case 0:
137
+ case 1:
138
+ t = op;
139
+ break;
140
+ case 4:
141
+ _.label++;
142
+ return { value: op[1], done: false };
143
+ case 5:
144
+ _.label++;
145
+ y = op[1];
146
+ op = [0];
147
+ continue;
148
+ case 7:
149
+ op = _.ops.pop();
150
+ _.trys.pop();
151
+ continue;
152
+ default:
153
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
154
+ _ = 0;
155
+ continue;
156
+ }
157
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
158
+ _.label = op[1];
159
+ break;
160
+ }
161
+ if (op[0] === 6 && _.label < t[1]) {
162
+ _.label = t[1];
163
+ t = op;
164
+ break;
165
+ }
166
+ if (t && _.label < t[2]) {
167
+ _.label = t[2];
168
+ _.ops.push(op);
169
+ break;
170
+ }
171
+ if (t[2])
172
+ _.ops.pop();
173
+ _.trys.pop();
174
+ continue;
175
+ }
176
+ op = body.call(thisArg, _);
177
+ }
178
+ catch (e) {
179
+ op = [6, e];
180
+ y = 0;
181
+ }
182
+ finally {
183
+ f = t = 0;
184
+ }
185
+ if (op[0] & 5)
186
+ throw op[1];
187
+ return { value: op[0] ? op[1] : void 0, done: true };
188
+ }
189
+ }
190
+ var __createBinding = Object.create ? (function (o, m, k, k2) {
191
+ if (k2 === undefined)
192
+ k2 = k;
193
+ var desc = Object.getOwnPropertyDescriptor(m, k);
194
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
195
+ desc = { enumerable: true, get: function () { return m[k]; } };
196
+ }
197
+ Object.defineProperty(o, k2, desc);
198
+ }) : (function (o, m, k, k2) {
199
+ if (k2 === undefined)
200
+ k2 = k;
201
+ o[k2] = m[k];
202
+ });
203
+ function __exportStar(m, o) {
204
+ for (var p in m)
205
+ if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
206
+ __createBinding(o, m, p);
207
+ }
208
+ function __values(o) {
209
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
210
+ if (m)
211
+ return m.call(o);
212
+ if (o && typeof o.length === "number")
213
+ return {
214
+ next: function () {
215
+ if (o && i >= o.length)
216
+ o = void 0;
217
+ return { value: o && o[i++], done: !o };
218
+ }
219
+ };
220
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
221
+ }
222
+ function __read(o, n) {
223
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
224
+ if (!m)
225
+ return o;
226
+ var i = m.call(o), r, ar = [], e;
227
+ try {
228
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
229
+ ar.push(r.value);
230
+ }
231
+ catch (error) {
232
+ e = { error: error };
233
+ }
234
+ finally {
235
+ try {
236
+ if (r && !r.done && (m = i["return"]))
237
+ m.call(i);
238
+ }
239
+ finally {
240
+ if (e)
241
+ throw e.error;
242
+ }
243
+ }
244
+ return ar;
245
+ }
246
+ /** @deprecated */
247
+ function __spread() {
248
+ for (var ar = [], i = 0; i < arguments.length; i++)
249
+ ar = ar.concat(__read(arguments[i]));
250
+ return ar;
251
+ }
252
+ /** @deprecated */
253
+ function __spreadArrays() {
254
+ for (var s = 0, i = 0, il = arguments.length; i < il; i++)
255
+ s += arguments[i].length;
256
+ for (var r = Array(s), k = 0, i = 0; i < il; i++)
257
+ for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
258
+ r[k] = a[j];
259
+ return r;
260
+ }
261
+ function __spreadArray(to, from, pack) {
262
+ if (pack || arguments.length === 2)
263
+ for (var i = 0, l = from.length, ar; i < l; i++) {
264
+ if (ar || !(i in from)) {
265
+ if (!ar)
266
+ ar = Array.prototype.slice.call(from, 0, i);
267
+ ar[i] = from[i];
268
+ }
269
+ }
270
+ return to.concat(ar || Array.prototype.slice.call(from));
271
+ }
272
+ function __await(v) {
273
+ return this instanceof __await ? (this.v = v, this) : new __await(v);
274
+ }
275
+ function __asyncGenerator(thisArg, _arguments, generator) {
276
+ if (!Symbol.asyncIterator)
277
+ throw new TypeError("Symbol.asyncIterator is not defined.");
278
+ var g = generator.apply(thisArg, _arguments || []), i, q = [];
279
+ return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
280
+ function verb(n) { if (g[n])
281
+ i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
282
+ function resume(n, v) { try {
283
+ step(g[n](v));
284
+ }
285
+ catch (e) {
286
+ settle(q[0][3], e);
287
+ } }
288
+ function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
289
+ function fulfill(value) { resume("next", value); }
290
+ function reject(value) { resume("throw", value); }
291
+ function settle(f, v) { if (f(v), q.shift(), q.length)
292
+ resume(q[0][0], q[0][1]); }
293
+ }
294
+ function __asyncDelegator(o) {
295
+ var i, p;
296
+ return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
297
+ function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
298
+ }
299
+ function __asyncValues(o) {
300
+ if (!Symbol.asyncIterator)
301
+ throw new TypeError("Symbol.asyncIterator is not defined.");
302
+ var m = o[Symbol.asyncIterator], i;
303
+ return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
304
+ function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
305
+ function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
306
+ }
307
+ function __makeTemplateObject(cooked, raw) {
308
+ if (Object.defineProperty) {
309
+ Object.defineProperty(cooked, "raw", { value: raw });
310
+ }
311
+ else {
312
+ cooked.raw = raw;
313
+ }
314
+ return cooked;
315
+ }
316
+ ;
317
+ var __setModuleDefault = Object.create ? (function (o, v) {
318
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
319
+ }) : function (o, v) {
320
+ o["default"] = v;
321
+ };
322
+ function __importStar(mod) {
323
+ if (mod && mod.__esModule)
324
+ return mod;
325
+ var result = {};
326
+ if (mod != null)
327
+ for (var k in mod)
328
+ if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
329
+ __createBinding(result, mod, k);
330
+ __setModuleDefault(result, mod);
331
+ return result;
332
+ }
333
+ function __importDefault(mod) {
334
+ return (mod && mod.__esModule) ? mod : { default: mod };
335
+ }
336
+ function __classPrivateFieldGet(receiver, state, kind, f) {
337
+ if (kind === "a" && !f)
338
+ throw new TypeError("Private accessor was defined without a getter");
339
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
340
+ throw new TypeError("Cannot read private member from an object whose class did not declare it");
341
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
342
+ }
343
+ function __classPrivateFieldSet(receiver, state, value, kind, f) {
344
+ if (kind === "m")
345
+ throw new TypeError("Private method is not writable");
346
+ if (kind === "a" && !f)
347
+ throw new TypeError("Private accessor was defined without a setter");
348
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
349
+ throw new TypeError("Cannot write private member to an object whose class did not declare it");
350
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
351
+ }
352
+ function __classPrivateFieldIn(state, receiver) {
353
+ if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function"))
354
+ throw new TypeError("Cannot use 'in' operator on non-object");
355
+ return typeof state === "function" ? receiver === state : state.has(receiver);
356
+ }
357
+
358
+ var TuiPieChartDirective = /** @class */ (function () {
359
+ function TuiPieChartDirective(_a, ngZone, destroy$, performance, animationFrame$, duration) {
360
+ var nativeElement = _a.nativeElement;
361
+ this.sector$ = new i1.BehaviorSubject([0, 0]);
362
+ this.sector$
363
+ .pipe(operators.pairwise(), operators.switchMap(function (_a) {
364
+ var _b = __read(_a, 2), prev = _b[0], cur = _b[1];
365
+ var now = performance.now();
366
+ var startDelta = cur[0] - prev[0];
367
+ var endDelta = cur[1] - prev[1];
368
+ return animationFrame$.pipe(operators.map(function (timestamp) { return i1$1.tuiEaseInOutQuad(i1$1.tuiClamp((timestamp - now) / duration, 0, 1)); }), operators.takeWhile(function (progress) { return progress < 1; }, true), operators.map(function (progress) { return [
369
+ prev[0] + startDelta * progress,
370
+ cur[1] > 359 ? cur[1] : prev[1] + endDelta * progress,
371
+ ]; }));
372
+ }), i1$1.tuiZonefree(ngZone), operators.takeUntil(destroy$))
373
+ .subscribe(function (_a) {
374
+ var _b = __read(_a, 2), start = _b[0], end = _b[1];
375
+ nativeElement.setAttribute("d", utils.tuiDescribeSector(start, end));
376
+ });
377
+ }
378
+ Object.defineProperty(TuiPieChartDirective.prototype, "tuiPieChart", {
379
+ set: function (sector) {
380
+ this.sector$.next(sector);
381
+ },
382
+ enumerable: false,
383
+ configurable: true
384
+ });
385
+ return TuiPieChartDirective;
386
+ }());
387
+ TuiPieChartDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiPieChartDirective, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }, { token: i1$1.TuiDestroyService }, { token: common.PERFORMANCE }, { token: common.ANIMATION_FRAME }, { token: i3.TUI_ANIMATIONS_DURATION }], target: i0__namespace.ɵɵFactoryTarget.Directive });
388
+ TuiPieChartDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: TuiPieChartDirective, selector: "path[tuiPieChart]", inputs: { tuiPieChart: "tuiPieChart" }, providers: [i1$1.TuiDestroyService], ngImport: i0__namespace });
389
+ __decorate([
390
+ i1$1.tuiDefaultProp()
391
+ ], TuiPieChartDirective.prototype, "tuiPieChart", null);
392
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiPieChartDirective, decorators: [{
393
+ type: i0.Directive,
394
+ args: [{
395
+ selector: "path[tuiPieChart]",
396
+ providers: [i1$1.TuiDestroyService],
397
+ }]
398
+ }], ctorParameters: function () {
399
+ return [{ type: i0__namespace.ElementRef, decorators: [{
400
+ type: i0.Inject,
401
+ args: [i0.ElementRef]
402
+ }] }, { type: i0__namespace.NgZone, decorators: [{
403
+ type: i0.Inject,
404
+ args: [i0.NgZone]
405
+ }] }, { type: i1__namespace.Observable, decorators: [{
406
+ type: i0.Inject,
407
+ args: [i1$1.TuiDestroyService]
408
+ }] }, { type: Performance, decorators: [{
409
+ type: i0.Inject,
410
+ args: [common.PERFORMANCE]
411
+ }] }, { type: i1__namespace.Observable, decorators: [{
412
+ type: i0.Inject,
413
+ args: [common.ANIMATION_FRAME]
414
+ }] }, { type: undefined, decorators: [{
415
+ type: i0.Inject,
416
+ args: [i3.TUI_ANIMATIONS_DURATION]
417
+ }] }];
418
+ }, propDecorators: { tuiPieChart: [{
419
+ type: i0.Input
420
+ }] } });
421
+
256
422
  var RADII = {
257
423
  xs: "50",
258
424
  s: "50",
@@ -267,32 +433,29 @@
267
433
  l: 1.09,
268
434
  xl: 1.08,
269
435
  };
270
- // TODO: 3.0 Remove sanitizer when Angular version is bumped
271
436
  var TuiPieChartComponent = /** @class */ (function () {
272
- function TuiPieChartComponent(idService, locationRef, sanitizer) {
437
+ function TuiPieChartComponent(idService, locationRef) {
273
438
  this.locationRef = locationRef;
274
- this.sanitizer = sanitizer;
275
439
  this.value = [];
276
440
  this.size = "m";
277
- this.colorHandler = constants.TUI_DEFAULT_COLOR_HANDLER;
278
441
  this.hintContent = "";
279
442
  this.masked = false;
280
443
  this.activeItemIndex = NaN;
281
- this.activeItemIndexChange = new core.EventEmitter();
444
+ this.activeItemIndexChange = new i0.EventEmitter();
282
445
  this.autoIdString = idService.generate();
283
446
  }
284
447
  Object.defineProperty(TuiPieChartComponent.prototype, "empty", {
285
448
  get: function () {
286
449
  return !this.getSum(this.value);
287
450
  },
288
- enumerable: true,
451
+ enumerable: false,
289
452
  configurable: true
290
453
  });
291
454
  Object.defineProperty(TuiPieChartComponent.prototype, "maskId", {
292
455
  get: function () {
293
456
  return "tui-ring-chart-" + this.autoIdString;
294
457
  },
295
- enumerable: true,
458
+ enumerable: false,
296
459
  configurable: true
297
460
  });
298
461
  Object.defineProperty(TuiPieChartComponent.prototype, "mask", {
@@ -301,21 +464,21 @@
301
464
  ? "url(" + this.locationRef.prepareExternalUrl(this.locationRef.path()) + "#" + this.maskId + ")"
302
465
  : null;
303
466
  },
304
- enumerable: true,
467
+ enumerable: false,
305
468
  configurable: true
306
469
  });
307
470
  Object.defineProperty(TuiPieChartComponent.prototype, "radius", {
308
471
  get: function () {
309
472
  return RADII[this.size];
310
473
  },
311
- enumerable: true,
474
+ enumerable: false,
312
475
  configurable: true
313
476
  });
314
477
  Object.defineProperty(TuiPieChartComponent.prototype, "segments", {
315
478
  get: function () {
316
479
  return this.getSegments(this.value);
317
480
  },
318
- enumerable: true,
481
+ enumerable: false,
319
482
  configurable: true
320
483
  });
321
484
  TuiPieChartComponent.prototype.getTransform = function (index) {
@@ -324,24 +487,19 @@
324
487
  : "scale(" + TRANSFORM.xs + ")";
325
488
  return index === this.activeItemIndex ? transform : null;
326
489
  };
327
- TuiPieChartComponent.prototype.getHint = function (hint) {
328
- return this.hintContent ? hint : "";
329
- };
330
490
  TuiPieChartComponent.prototype.onHovered = function (hovered, index) {
331
491
  this.updateActiveItemIndex(hovered ? index : NaN);
332
492
  };
333
493
  TuiPieChartComponent.prototype.getColor = function (index) {
334
- return this.sanitizer.bypassSecurityTrustStyle("var(--tui-chart-" + index + ", " + core$1.colorFallback(this.colorHandler(index)) + ")");
494
+ return "var(--tui-chart-" + index;
335
495
  };
336
496
  TuiPieChartComponent.prototype.getSum = function (value) {
337
- return cdk.sum.apply(void 0, __spread(value));
497
+ return i1$1.tuiSum.apply(void 0, __spreadArray([], __read(value)));
338
498
  };
339
499
  TuiPieChartComponent.prototype.getSegments = function (value) {
340
500
  var _this = this;
341
501
  return value
342
- .map(function (initial, i, array) {
343
- return array.reduce(function (sum, current, j) { return (j < i ? _this.getDeg(current) + sum : sum); }, _this.getDeg(initial));
344
- })
502
+ .map(function (initial, i, array) { return array.reduce(function (sum, current, j) { return (j < i ? _this.getDeg(current) + sum : sum); }, _this.getDeg(initial)); })
345
503
  .map(function (angle, index, array) { return [
346
504
  array[index - 1] || 0,
347
505
  Math.min(angle, 359.9999),
@@ -357,137 +515,104 @@
357
515
  this.activeItemIndex = index;
358
516
  this.activeItemIndexChange.next(index);
359
517
  };
360
- TuiPieChartComponent.ctorParameters = function () { return [
361
- { type: cdk.TuiIdService, decorators: [{ type: core.Inject, args: [cdk.TuiIdService,] }] },
362
- { type: common.Location, decorators: [{ type: core.Inject, args: [common.Location,] }] },
363
- { type: platformBrowser.DomSanitizer, decorators: [{ type: core.Inject, args: [platformBrowser.DomSanitizer,] }] }
364
- ]; };
365
- __decorate([
366
- core.Input(),
367
- cdk.tuiDefaultProp()
368
- ], TuiPieChartComponent.prototype, "value", void 0);
369
- __decorate([
370
- core.Input(),
371
- core.HostBinding("attr.data-size"),
372
- cdk.tuiDefaultProp()
373
- ], TuiPieChartComponent.prototype, "size", void 0);
374
- __decorate([
375
- core.Input(),
376
- cdk.tuiDefaultProp()
377
- ], TuiPieChartComponent.prototype, "colorHandler", void 0);
378
- __decorate([
379
- core.Input(),
380
- cdk.tuiDefaultProp()
381
- ], TuiPieChartComponent.prototype, "hintContent", void 0);
382
- __decorate([
383
- core.Input(),
384
- cdk.tuiDefaultProp()
385
- ], TuiPieChartComponent.prototype, "masked", void 0);
386
- __decorate([
387
- core.Input(),
388
- cdk.tuiDefaultProp()
389
- ], TuiPieChartComponent.prototype, "activeItemIndex", void 0);
390
- __decorate([
391
- core.Output()
392
- ], TuiPieChartComponent.prototype, "activeItemIndexChange", void 0);
393
- __decorate([
394
- core.HostBinding("class._empty")
395
- ], TuiPieChartComponent.prototype, "empty", null);
396
- __decorate([
397
- cdk.tuiPure
398
- ], TuiPieChartComponent.prototype, "getSum", null);
399
- __decorate([
400
- cdk.tuiPure
401
- ], TuiPieChartComponent.prototype, "getSegments", null);
402
- TuiPieChartComponent = __decorate([
403
- core.Component({
404
- selector: "tui-pie-chart",
405
- template: "<svg\n xmlns=\"http://www.w3.org/2000/svg\"\n height=\"100%\"\n width=\"100%\"\n viewBox=\"-100 -100 200 200\"\n focusable=\"false\"\n class=\"t-svg\"\n>\n <defs>\n <mask [attr.id]=\"maskId\">\n <rect\n x=\"-200\"\n y=\"-200\"\n width=\"400\"\n height=\"400\"\n fill=\"white\"\n />\n <circle\n cx=\"0\"\n cy=\"0\"\n [attr.r]=\"radius\"\n />\n </mask>\n </defs>\n <g [style.mask]=\"mask\">\n <circle\n cx=\"0\"\n cy=\"0\"\n r=\"100\"\n class=\"t-placeholder\"\n />\n <path\n *tuiRepeatTimes=\"let index of segments.length\"\n fill=\"currentColor\"\n automation-id=\"tui-pie-chart__segment\"\n tuiHintMode=\"onDark\"\n tuiHintDirection=\"top-right\"\n d=\"\"\n class=\"t-segment\"\n [attr.transform]=\"getTransform(index)\"\n [style.color]=\"getColor(index)\"\n [tuiPieChart]=\"segments[index]\"\n [tuiPointerHint]=\"getHint(hint)\"\n (tuiHoveredChange)=\"onHovered($event, index)\"\n >\n <ng-template #hint>\n <ng-container\n [ngTemplateOutlet]=\"template\"\n [ngTemplateOutletContext]=\"{$implicit: index}\"\n ></ng-container>\n </ng-template>\n </path>\n </g>\n</svg>\n<ng-template\n #template\n let-index\n>\n <div\n polymorpheus-outlet\n class=\"t-text\"\n [content]=\"hintContent\"\n [context]=\"{$implicit: index}\"\n ></div>\n</ng-template>\n",
406
- changeDetection: core.ChangeDetectionStrategy.OnPush,
407
- styles: [":host{position:relative;display:block}:host[data-size=xs]{width:2rem;height:2rem;pointer-events:none}:host[data-size='s']{width:4rem;height:4rem}:host[data-size='m']{width:9rem;height:9rem}:host[data-size='l']{width:11rem;height:11rem}:host[data-size=xl]{width:16rem;height:16rem}.t-svg{position:relative;overflow:visible;transform:rotate(-90deg)}.t-segment{transition-property:transform;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out}:host._empty .t-segment{display:none}.t-placeholder{fill:var(--tui-base-03)}.t-text{white-space:pre-wrap}"]
408
- }),
409
- __param(0, core.Inject(cdk.TuiIdService)),
410
- __param(1, core.Inject(common.Location)),
411
- __param(2, core.Inject(platformBrowser.DomSanitizer))
412
- ], TuiPieChartComponent);
413
518
  return TuiPieChartComponent;
414
519
  }());
415
-
416
- // @dynamic
417
- var TuiPieChartDirective = /** @class */ (function () {
418
- function TuiPieChartDirective(_a, ngZone, destroy$, performance, animationFrame$, duration) {
419
- var nativeElement = _a.nativeElement;
420
- this.sector$ = new rxjs.BehaviorSubject([0, 0]);
421
- this.sector$
422
- .pipe(operators.pairwise(), operators.switchMap(function (_a) {
423
- var _b = __read(_a, 2), prev = _b[0], cur = _b[1];
424
- var now = performance.now();
425
- var startDelta = cur[0] - prev[0];
426
- var endDelta = cur[1] - prev[1];
427
- return animationFrame$.pipe(operators.map(function (timestamp) {
428
- return cdk.easeInOutQuad(cdk.clamp((timestamp - now) / duration, 0, 1));
429
- }), operators.takeWhile(function (progress) { return progress < 1; }, true), operators.map(function (progress) { return [
430
- prev[0] + startDelta * progress,
431
- cur[1] > 359 ? cur[1] : prev[1] + endDelta * progress,
432
- ]; }));
433
- }), cdk.tuiZonefree(ngZone), operators.takeUntil(destroy$))
434
- .subscribe(function (_a) {
435
- var _b = __read(_a, 2), start = _b[0], end = _b[1];
436
- nativeElement.setAttribute("d", utils.describeSector(start, end));
437
- });
438
- }
439
- Object.defineProperty(TuiPieChartDirective.prototype, "tuiPieChart", {
440
- set: function (sector) {
441
- this.sector$.next(sector);
442
- },
443
- enumerable: true,
444
- configurable: true
445
- });
446
- TuiPieChartDirective.ctorParameters = function () { return [
447
- { type: core.ElementRef, decorators: [{ type: core.Inject, args: [core.ElementRef,] }] },
448
- { type: core.NgZone, decorators: [{ type: core.Inject, args: [core.NgZone,] }] },
449
- { type: rxjs.Observable, decorators: [{ type: core.Inject, args: [cdk.TuiDestroyService,] }] },
450
- { type: Performance, decorators: [{ type: core.Inject, args: [common$1.PERFORMANCE,] }] },
451
- { type: rxjs.Observable, decorators: [{ type: core.Inject, args: [common$1.ANIMATION_FRAME,] }] },
452
- { type: Number, decorators: [{ type: core.Inject, args: [core$1.TUI_ANIMATIONS_DURATION,] }] }
453
- ]; };
454
- __decorate([
455
- core.Input(),
456
- cdk.tuiDefaultProp()
457
- ], TuiPieChartDirective.prototype, "tuiPieChart", null);
458
- TuiPieChartDirective = __decorate([
459
- core.Directive({
460
- selector: "path[tuiPieChart]",
461
- providers: [cdk.TuiDestroyService],
462
- }),
463
- __param(0, core.Inject(core.ElementRef)),
464
- __param(1, core.Inject(core.NgZone)),
465
- __param(2, core.Inject(cdk.TuiDestroyService)),
466
- __param(3, core.Inject(common$1.PERFORMANCE)),
467
- __param(4, core.Inject(common$1.ANIMATION_FRAME)),
468
- __param(5, core.Inject(core$1.TUI_ANIMATIONS_DURATION))
469
- ], TuiPieChartDirective);
470
- return TuiPieChartDirective;
471
- }());
520
+ TuiPieChartComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiPieChartComponent, deps: [{ token: i1$1.TuiIdService }, { token: i4.Location }], target: i0__namespace.ɵɵFactoryTarget.Component });
521
+ TuiPieChartComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: TuiPieChartComponent, selector: "tui-pie-chart", inputs: { value: "value", size: "size", hintContent: "hintContent", masked: "masked", activeItemIndex: "activeItemIndex" }, outputs: { activeItemIndexChange: "activeItemIndexChange" }, host: { properties: { "attr.data-size": "this.size", "class._empty": "this.empty" } }, providers: [i3.tuiHintOptionsProvider({ showDelay: 0, hideDelay: 0 })], ngImport: i0__namespace, template: "<svg\n xmlns=\"http://www.w3.org/2000/svg\"\n height=\"100%\"\n width=\"100%\"\n viewBox=\"-100 -100 200 200\"\n focusable=\"false\"\n class=\"t-svg\"\n>\n <defs>\n <mask [attr.id]=\"maskId\">\n <rect\n x=\"-200\"\n y=\"-200\"\n width=\"400\"\n height=\"400\"\n fill=\"white\"\n />\n <circle\n cx=\"0\"\n cy=\"0\"\n [attr.r]=\"radius\"\n />\n </mask>\n </defs>\n <g [style.mask]=\"mask\">\n <circle\n cx=\"0\"\n cy=\"0\"\n r=\"100\"\n class=\"t-placeholder\"\n />\n <path\n *tuiRepeatTimes=\"let index of segments.length\"\n fill=\"currentColor\"\n automation-id=\"tui-pie-chart__segment\"\n tuiHintPointer\n tuiHintAppearance=\"onDark\"\n tuiHintDirection=\"top-right\"\n d=\"\"\n class=\"t-segment\"\n [attr.transform]=\"getTransform(index)\"\n [style.color]=\"getColor(index)\"\n [tuiPieChart]=\"segments[index]\"\n [tuiHint]=\"hintContent\"\n [tuiHintContext]=\"{$implicit: index}\"\n (tuiHoveredChange)=\"onHovered($event, index)\"\n />\n </g>\n</svg>\n", styles: [":host{position:relative;display:block}:host[data-size=xs]{width:2rem;height:2rem;pointer-events:none}:host[data-size=s]{width:4rem;height:4rem}:host[data-size=m]{width:9rem;height:9rem}:host[data-size=l]{width:11rem;height:11rem}:host[data-size=xl]{width:16rem;height:16rem}.t-svg{position:relative;overflow:visible;transform:rotate(-90deg)}.t-segment{transition-property:transform;transition-duration:.3s;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out}:host._empty .t-segment{display:none}.t-placeholder{fill:var(--tui-base-03)}\n"], directives: [{ type: i1__namespace$1.TuiRepeatTimesDirective, selector: "[tuiRepeatTimes][tuiRepeatTimesOf]", inputs: ["tuiRepeatTimesOf"] }, { type: TuiPieChartDirective, selector: "path[tuiPieChart]", inputs: ["tuiPieChart"] }, { type: i3__namespace.TuiHintDirective, selector: "[tuiHint]:not(ng-container)", inputs: ["tuiHintId", "tuiHint", "tuiHintContext", "tuiHintAppearance"] }, { type: i3__namespace.TuiHintDriverDirective, selector: "[tuiHint]" }, { type: i3__namespace.TuiHintHoverDirective, selector: "[tuiHint]:not(ng-container)", inputs: ["tuiHintShowDelay", "tuiHintHideDelay"] }, { type: i3__namespace.TuiHintPositionDirective, selector: "[tuiHint]:not([tuiHintCustomPosition])", inputs: ["tuiHintDirection"] }, { type: i3__namespace.TuiHintPointerDirective, selector: "[tuiHint][tuiHintPointer]" }, { type: i1__namespace$1.TuiHoveredDirective, selector: "[tuiHoveredChange]", outputs: ["tuiHoveredChange"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
522
+ __decorate([
523
+ i1$1.tuiDefaultProp()
524
+ ], TuiPieChartComponent.prototype, "value", void 0);
525
+ __decorate([
526
+ i1$1.tuiDefaultProp()
527
+ ], TuiPieChartComponent.prototype, "size", void 0);
528
+ __decorate([
529
+ i1$1.tuiDefaultProp()
530
+ ], TuiPieChartComponent.prototype, "hintContent", void 0);
531
+ __decorate([
532
+ i1$1.tuiDefaultProp()
533
+ ], TuiPieChartComponent.prototype, "masked", void 0);
534
+ __decorate([
535
+ i1$1.tuiDefaultProp()
536
+ ], TuiPieChartComponent.prototype, "activeItemIndex", void 0);
537
+ __decorate([
538
+ i1$1.tuiPure
539
+ ], TuiPieChartComponent.prototype, "getSum", null);
540
+ __decorate([
541
+ i1$1.tuiPure
542
+ ], TuiPieChartComponent.prototype, "getSegments", null);
543
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiPieChartComponent, decorators: [{
544
+ type: i0.Component,
545
+ args: [{
546
+ selector: "tui-pie-chart",
547
+ templateUrl: "./pie-chart.template.html",
548
+ styleUrls: ["./pie-chart.style.less"],
549
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
550
+ providers: [i3.tuiHintOptionsProvider({ showDelay: 0, hideDelay: 0 })],
551
+ }]
552
+ }], ctorParameters: function () {
553
+ return [{ type: i1__namespace$1.TuiIdService, decorators: [{
554
+ type: i0.Inject,
555
+ args: [i1$1.TuiIdService]
556
+ }] }, { type: i4__namespace.Location, decorators: [{
557
+ type: i0.Inject,
558
+ args: [i4.Location]
559
+ }] }];
560
+ }, propDecorators: { value: [{
561
+ type: i0.Input
562
+ }], size: [{
563
+ type: i0.Input
564
+ }, {
565
+ type: i0.HostBinding,
566
+ args: ["attr.data-size"]
567
+ }], hintContent: [{
568
+ type: i0.Input
569
+ }], masked: [{
570
+ type: i0.Input
571
+ }], activeItemIndex: [{
572
+ type: i0.Input
573
+ }], activeItemIndexChange: [{
574
+ type: i0.Output
575
+ }], empty: [{
576
+ type: i0.HostBinding,
577
+ args: ["class._empty"]
578
+ }], getSum: [], getSegments: [] } });
472
579
 
473
580
  var TuiPieChartModule = /** @class */ (function () {
474
581
  function TuiPieChartModule() {
475
582
  }
476
- TuiPieChartModule = __decorate([
477
- core.NgModule({
478
- imports: [
479
- common.CommonModule,
480
- cdk.TuiRepeatTimesModule,
481
- cdk.TuiHoveredModule,
482
- ngPolymorpheus.PolymorpheusModule,
483
- core$1.TuiPointerHintModule,
484
- ],
485
- declarations: [TuiPieChartComponent, TuiPieChartDirective],
486
- exports: [TuiPieChartComponent],
487
- })
488
- ], TuiPieChartModule);
489
583
  return TuiPieChartModule;
490
584
  }());
585
+ TuiPieChartModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiPieChartModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
586
+ TuiPieChartModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiPieChartModule, declarations: [TuiPieChartComponent, TuiPieChartDirective], imports: [i4.CommonModule,
587
+ i1$1.TuiRepeatTimesModule,
588
+ i1$1.TuiHoveredModule,
589
+ ngPolymorpheus.PolymorpheusModule,
590
+ i3.TuiHintModule], exports: [TuiPieChartComponent] });
591
+ TuiPieChartModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiPieChartModule, imports: [[
592
+ i4.CommonModule,
593
+ i1$1.TuiRepeatTimesModule,
594
+ i1$1.TuiHoveredModule,
595
+ ngPolymorpheus.PolymorpheusModule,
596
+ i3.TuiHintModule,
597
+ ]] });
598
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiPieChartModule, decorators: [{
599
+ type: i0.NgModule,
600
+ args: [{
601
+ imports: [
602
+ i4.CommonModule,
603
+ i1$1.TuiRepeatTimesModule,
604
+ i1$1.TuiHoveredModule,
605
+ ngPolymorpheus.PolymorpheusModule,
606
+ i3.TuiHintModule,
607
+ ],
608
+ declarations: [TuiPieChartComponent, TuiPieChartDirective],
609
+ exports: [TuiPieChartComponent],
610
+ }]
611
+ }] });
612
+
613
+ /**
614
+ * Generated bundle index. Do not edit.
615
+ */
491
616
 
492
617
  exports.TuiPieChartComponent = TuiPieChartComponent;
493
618
  exports.TuiPieChartDirective = TuiPieChartDirective;
@@ -495,5 +620,5 @@
495
620
 
496
621
  Object.defineProperty(exports, '__esModule', { value: true });
497
622
 
498
- })));
623
+ }));
499
624
  //# sourceMappingURL=taiga-ui-addon-charts-components-pie-chart.umd.js.map