@taiga-ui/kit 2.30.0 → 2.31.0

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 (338) hide show
  1. package/abstract/taiga-ui-kit-abstract.metadata.json +1 -1
  2. package/bundles/taiga-ui-kit-abstract.umd.js +5 -4
  3. package/bundles/taiga-ui-kit-abstract.umd.js.map +1 -1
  4. package/bundles/taiga-ui-kit-abstract.umd.min.js +2 -2
  5. package/bundles/taiga-ui-kit-abstract.umd.min.js.map +1 -1
  6. package/bundles/taiga-ui-kit-components-arrow.umd.js +1 -1
  7. package/bundles/taiga-ui-kit-components-arrow.umd.min.js +1 -1
  8. package/bundles/taiga-ui-kit-components-arrow.umd.min.js.map +1 -1
  9. package/bundles/taiga-ui-kit-components-calendar-month.umd.js +4 -1
  10. package/bundles/taiga-ui-kit-components-calendar-month.umd.js.map +1 -1
  11. package/bundles/taiga-ui-kit-components-calendar-month.umd.min.js +2 -2
  12. package/bundles/taiga-ui-kit-components-calendar-month.umd.min.js.map +1 -1
  13. package/bundles/taiga-ui-kit-components-carousel.umd.js +4 -3
  14. package/bundles/taiga-ui-kit-components-carousel.umd.js.map +1 -1
  15. package/bundles/taiga-ui-kit-components-carousel.umd.min.js +1 -1
  16. package/bundles/taiga-ui-kit-components-carousel.umd.min.js.map +1 -1
  17. package/bundles/taiga-ui-kit-components-checkbox.umd.js +1 -1
  18. package/bundles/taiga-ui-kit-components-checkbox.umd.js.map +1 -1
  19. package/bundles/taiga-ui-kit-components-checkbox.umd.min.js +1 -1
  20. package/bundles/taiga-ui-kit-components-checkbox.umd.min.js.map +1 -1
  21. package/bundles/taiga-ui-kit-components-combo-box.umd.js +3 -10
  22. package/bundles/taiga-ui-kit-components-combo-box.umd.js.map +1 -1
  23. package/bundles/taiga-ui-kit-components-combo-box.umd.min.js +1 -1
  24. package/bundles/taiga-ui-kit-components-combo-box.umd.min.js.map +1 -1
  25. package/bundles/taiga-ui-kit-components-input-count.umd.js +2 -6
  26. package/bundles/taiga-ui-kit-components-input-count.umd.js.map +1 -1
  27. package/bundles/taiga-ui-kit-components-input-count.umd.min.js +1 -1
  28. package/bundles/taiga-ui-kit-components-input-count.umd.min.js.map +1 -1
  29. package/bundles/taiga-ui-kit-components-input-date-range.umd.js +16 -8
  30. package/bundles/taiga-ui-kit-components-input-date-range.umd.js.map +1 -1
  31. package/bundles/taiga-ui-kit-components-input-date-range.umd.min.js +2 -2
  32. package/bundles/taiga-ui-kit-components-input-date-range.umd.min.js.map +1 -1
  33. package/bundles/taiga-ui-kit-components-input-date-time.umd.js +15 -15
  34. package/bundles/taiga-ui-kit-components-input-date-time.umd.js.map +1 -1
  35. package/bundles/taiga-ui-kit-components-input-date-time.umd.min.js +2 -2
  36. package/bundles/taiga-ui-kit-components-input-date-time.umd.min.js.map +1 -1
  37. package/bundles/taiga-ui-kit-components-input-date.umd.js +16 -8
  38. package/bundles/taiga-ui-kit-components-input-date.umd.js.map +1 -1
  39. package/bundles/taiga-ui-kit-components-input-date.umd.min.js +1 -1
  40. package/bundles/taiga-ui-kit-components-input-date.umd.min.js.map +1 -1
  41. package/bundles/taiga-ui-kit-components-input-file.umd.js +1 -8
  42. package/bundles/taiga-ui-kit-components-input-file.umd.js.map +1 -1
  43. package/bundles/taiga-ui-kit-components-input-file.umd.min.js +1 -1
  44. package/bundles/taiga-ui-kit-components-input-file.umd.min.js.map +1 -1
  45. package/bundles/taiga-ui-kit-components-input-month-range.umd.js +1 -8
  46. package/bundles/taiga-ui-kit-components-input-month-range.umd.js.map +1 -1
  47. package/bundles/taiga-ui-kit-components-input-month-range.umd.min.js +1 -1
  48. package/bundles/taiga-ui-kit-components-input-month-range.umd.min.js.map +1 -1
  49. package/bundles/taiga-ui-kit-components-input-month.umd.js +1 -8
  50. package/bundles/taiga-ui-kit-components-input-month.umd.js.map +1 -1
  51. package/bundles/taiga-ui-kit-components-input-month.umd.min.js +1 -1
  52. package/bundles/taiga-ui-kit-components-input-month.umd.min.js.map +1 -1
  53. package/bundles/taiga-ui-kit-components-input-number.umd.js +8 -6
  54. package/bundles/taiga-ui-kit-components-input-number.umd.js.map +1 -1
  55. package/bundles/taiga-ui-kit-components-input-number.umd.min.js +1 -1
  56. package/bundles/taiga-ui-kit-components-input-number.umd.min.js.map +1 -1
  57. package/bundles/taiga-ui-kit-components-input-password.umd.js +2 -9
  58. package/bundles/taiga-ui-kit-components-input-password.umd.js.map +1 -1
  59. package/bundles/taiga-ui-kit-components-input-password.umd.min.js +1 -1
  60. package/bundles/taiga-ui-kit-components-input-password.umd.min.js.map +1 -1
  61. package/bundles/taiga-ui-kit-components-input-phone-international.umd.js +38 -19
  62. package/bundles/taiga-ui-kit-components-input-phone-international.umd.js.map +1 -1
  63. package/bundles/taiga-ui-kit-components-input-phone-international.umd.min.js +1 -1
  64. package/bundles/taiga-ui-kit-components-input-phone-international.umd.min.js.map +1 -1
  65. package/bundles/taiga-ui-kit-components-input-phone.umd.js +1 -1
  66. package/bundles/taiga-ui-kit-components-input-phone.umd.js.map +1 -1
  67. package/bundles/taiga-ui-kit-components-input-phone.umd.min.js +1 -1
  68. package/bundles/taiga-ui-kit-components-input-phone.umd.min.js.map +1 -1
  69. package/bundles/taiga-ui-kit-components-input-tag.umd.js +2 -2
  70. package/bundles/taiga-ui-kit-components-input-tag.umd.js.map +1 -1
  71. package/bundles/taiga-ui-kit-components-input-tag.umd.min.js +1 -1
  72. package/bundles/taiga-ui-kit-components-input-tag.umd.min.js.map +1 -1
  73. package/bundles/taiga-ui-kit-components-input-time.umd.js +0 -7
  74. package/bundles/taiga-ui-kit-components-input-time.umd.js.map +1 -1
  75. package/bundles/taiga-ui-kit-components-input-time.umd.min.js +1 -1
  76. package/bundles/taiga-ui-kit-components-input-time.umd.min.js.map +1 -1
  77. package/bundles/taiga-ui-kit-components-input.umd.js +1 -1
  78. package/bundles/taiga-ui-kit-components-input.umd.js.map +1 -1
  79. package/bundles/taiga-ui-kit-components-input.umd.min.js +1 -1
  80. package/bundles/taiga-ui-kit-components-input.umd.min.js.map +1 -1
  81. package/bundles/taiga-ui-kit-components-multi-select.umd.js +0 -7
  82. package/bundles/taiga-ui-kit-components-multi-select.umd.js.map +1 -1
  83. package/bundles/taiga-ui-kit-components-multi-select.umd.min.js +1 -1
  84. package/bundles/taiga-ui-kit-components-multi-select.umd.min.js.map +1 -1
  85. package/bundles/taiga-ui-kit-components-rating.umd.js +368 -0
  86. package/bundles/taiga-ui-kit-components-rating.umd.js.map +1 -0
  87. package/bundles/taiga-ui-kit-components-rating.umd.min.js +16 -0
  88. package/bundles/taiga-ui-kit-components-rating.umd.min.js.map +1 -0
  89. package/bundles/taiga-ui-kit-components-select.umd.js +2 -9
  90. package/bundles/taiga-ui-kit-components-select.umd.js.map +1 -1
  91. package/bundles/taiga-ui-kit-components-select.umd.min.js +1 -1
  92. package/bundles/taiga-ui-kit-components-select.umd.min.js.map +1 -1
  93. package/bundles/taiga-ui-kit-components-text-area.umd.js +2 -2
  94. package/bundles/taiga-ui-kit-components-text-area.umd.js.map +1 -1
  95. package/bundles/taiga-ui-kit-components-text-area.umd.min.js +1 -1
  96. package/bundles/taiga-ui-kit-components-text-area.umd.min.js.map +1 -1
  97. package/bundles/taiga-ui-kit-components.umd.js +12 -4
  98. package/bundles/taiga-ui-kit-components.umd.js.map +1 -1
  99. package/bundles/taiga-ui-kit-components.umd.min.js +1 -1
  100. package/bundles/taiga-ui-kit-tokens.umd.js +7 -0
  101. package/bundles/taiga-ui-kit-tokens.umd.js.map +1 -1
  102. package/bundles/taiga-ui-kit-tokens.umd.min.js +1 -1
  103. package/bundles/taiga-ui-kit-tokens.umd.min.js.map +1 -1
  104. package/bundles/taiga-ui-kit-utils-miscellaneous.umd.js +241 -6
  105. package/bundles/taiga-ui-kit-utils-miscellaneous.umd.js.map +1 -1
  106. package/bundles/taiga-ui-kit-utils-miscellaneous.umd.min.js +15 -1
  107. package/bundles/taiga-ui-kit-utils-miscellaneous.umd.min.js.map +1 -1
  108. package/components/arrow/taiga-ui-kit-components-arrow.metadata.json +1 -1
  109. package/components/calendar-month/taiga-ui-kit-components-calendar-month.metadata.json +1 -1
  110. package/components/carousel/taiga-ui-kit-components-carousel.metadata.json +1 -1
  111. package/components/combo-box/combo-box.component.d.ts +0 -1
  112. package/components/combo-box/taiga-ui-kit-components-combo-box.metadata.json +1 -1
  113. package/components/index.d.ts +1 -0
  114. package/components/input-date/input-date.component.d.ts +4 -4
  115. package/components/input-date/taiga-ui-kit-components-input-date.metadata.json +1 -1
  116. package/components/input-date-range/input-date-range.component.d.ts +4 -4
  117. package/components/input-date-range/taiga-ui-kit-components-input-date-range.metadata.json +1 -1
  118. package/components/input-date-time/input-date-time.component.d.ts +4 -5
  119. package/components/input-date-time/taiga-ui-kit-components-input-date-time.metadata.json +1 -1
  120. package/components/input-file/input-file.component.d.ts +0 -1
  121. package/components/input-file/taiga-ui-kit-components-input-file.metadata.json +1 -1
  122. package/components/input-month/input-month.component.d.ts +0 -1
  123. package/components/input-month/taiga-ui-kit-components-input-month.metadata.json +1 -1
  124. package/components/input-month-range/input-month-range.component.d.ts +0 -1
  125. package/components/input-month-range/taiga-ui-kit-components-input-month-range.metadata.json +1 -1
  126. package/components/input-password/input-password.component.d.ts +0 -1
  127. package/components/input-password/taiga-ui-kit-components-input-password.metadata.json +1 -1
  128. package/components/input-phone-international/const/countries.d.ts +15 -7
  129. package/components/input-phone-international/index.d.ts +2 -0
  130. package/components/input-phone-international/input-phone-international.component.d.ts +2 -2
  131. package/components/input-phone-international/taiga-ui-kit-components-input-phone-international.metadata.json +1 -1
  132. package/components/input-phone-international/tokens/countries-masks.d.ts +3 -0
  133. package/components/input-phone-international/utils/extract-value-from-event.d.ts +1 -0
  134. package/components/input-time/input-time.component.d.ts +0 -1
  135. package/components/input-time/taiga-ui-kit-components-input-time.metadata.json +1 -1
  136. package/components/multi-select/multi-select.component.d.ts +0 -1
  137. package/components/multi-select/taiga-ui-kit-components-multi-select.metadata.json +1 -1
  138. package/components/rating/index.d.ts +3 -0
  139. package/components/rating/package.json +13 -0
  140. package/components/rating/rating-options.d.ts +9 -0
  141. package/components/rating/rating.component.d.ts +21 -0
  142. package/components/rating/rating.module.d.ts +2 -0
  143. package/components/rating/taiga-ui-kit-components-rating.d.ts +4 -0
  144. package/components/rating/taiga-ui-kit-components-rating.metadata.json +1 -0
  145. package/components/select/select.component.d.ts +0 -1
  146. package/components/select/taiga-ui-kit-components-select.metadata.json +1 -1
  147. package/components/taiga-ui-kit-components.metadata.json +1 -1
  148. package/components/text-area/taiga-ui-kit-components-text-area.metadata.json +1 -1
  149. package/esm2015/abstract/input-slider.js +3 -1
  150. package/esm2015/components/arrow/arrow.component.js +1 -1
  151. package/esm2015/components/calendar-month/calendar-month.component.js +5 -2
  152. package/esm2015/components/carousel/carousel-scroll.directive.js +5 -4
  153. package/esm2015/components/checkbox/checkbox.component.js +2 -2
  154. package/esm2015/components/combo-box/combo-box.component.js +4 -7
  155. package/esm2015/components/index.js +2 -1
  156. package/esm2015/components/input/input.component.js +2 -2
  157. package/esm2015/components/input-count/input-count.component.js +3 -7
  158. package/esm2015/components/input-date/input-date.component.js +18 -10
  159. package/esm2015/components/input-date-range/input-date-range.component.js +18 -10
  160. package/esm2015/components/input-date-time/input-date-time.component.js +17 -13
  161. package/esm2015/components/input-file/input-file.component.js +2 -5
  162. package/esm2015/components/input-month/input-month.component.js +2 -5
  163. package/esm2015/components/input-month-range/input-month-range.component.js +2 -5
  164. package/esm2015/components/input-number/input-number.component.js +9 -7
  165. package/esm2015/components/input-password/input-password.component.js +3 -6
  166. package/esm2015/components/input-phone/input-phone.component.js +2 -2
  167. package/esm2015/components/input-phone-international/const/countries.js +14 -5
  168. package/esm2015/components/input-phone-international/index.js +3 -1
  169. package/esm2015/components/input-phone-international/input-phone-international.component.js +15 -18
  170. package/esm2015/components/input-phone-international/tokens/countries-masks.js +6 -0
  171. package/esm2015/components/input-phone-international/utils/extract-value-from-event.js +9 -0
  172. package/esm2015/components/input-tag/input-tag.component.js +3 -3
  173. package/esm2015/components/input-time/input-time.component.js +1 -4
  174. package/esm2015/components/multi-select/multi-select.component.js +1 -4
  175. package/esm2015/components/rating/index.js +4 -0
  176. package/esm2015/components/rating/rating-options.js +11 -0
  177. package/esm2015/components/rating/rating.component.js +91 -0
  178. package/esm2015/components/rating/rating.module.js +23 -0
  179. package/esm2015/components/rating/taiga-ui-kit-components-rating.js +5 -0
  180. package/esm2015/components/select/select.component.js +3 -6
  181. package/esm2015/components/text-area/text-area.component.js +3 -3
  182. package/esm2015/tokens/date-inputs-value-transformers.js +5 -0
  183. package/esm2015/tokens/index.js +2 -1
  184. package/esm2015/utils/miscellaneous/get-precision.js +8 -0
  185. package/esm2015/utils/miscellaneous/index.js +2 -1
  186. package/esm2015/utils/miscellaneous/replay-control-value-changes-factory.js +10 -4
  187. package/esm5/abstract/input-slider.js +3 -1
  188. package/esm5/components/arrow/arrow.component.js +1 -1
  189. package/esm5/components/calendar-month/calendar-month.component.js +5 -2
  190. package/esm5/components/carousel/carousel-scroll.directive.js +5 -4
  191. package/esm5/components/checkbox/checkbox.component.js +2 -2
  192. package/esm5/components/combo-box/combo-box.component.js +4 -11
  193. package/esm5/components/index.js +2 -1
  194. package/esm5/components/input/input.component.js +2 -2
  195. package/esm5/components/input-count/input-count.component.js +3 -7
  196. package/esm5/components/input-date/input-date.component.js +18 -10
  197. package/esm5/components/input-date-range/input-date-range.component.js +18 -10
  198. package/esm5/components/input-date-time/input-date-time.component.js +17 -17
  199. package/esm5/components/input-file/input-file.component.js +2 -9
  200. package/esm5/components/input-month/input-month.component.js +2 -9
  201. package/esm5/components/input-month-range/input-month-range.component.js +2 -9
  202. package/esm5/components/input-number/input-number.component.js +9 -7
  203. package/esm5/components/input-password/input-password.component.js +3 -10
  204. package/esm5/components/input-phone/input-phone.component.js +2 -2
  205. package/esm5/components/input-phone-international/const/countries.js +14 -5
  206. package/esm5/components/input-phone-international/index.js +3 -1
  207. package/esm5/components/input-phone-international/input-phone-international.component.js +15 -18
  208. package/esm5/components/input-phone-international/tokens/countries-masks.js +6 -0
  209. package/esm5/components/input-phone-international/utils/extract-value-from-event.js +9 -0
  210. package/esm5/components/input-tag/input-tag.component.js +3 -3
  211. package/esm5/components/input-time/input-time.component.js +1 -8
  212. package/esm5/components/multi-select/multi-select.component.js +1 -8
  213. package/esm5/components/rating/index.js +4 -0
  214. package/esm5/components/rating/rating-options.js +11 -0
  215. package/esm5/components/rating/rating.component.js +111 -0
  216. package/esm5/components/rating/rating.module.js +26 -0
  217. package/esm5/components/rating/taiga-ui-kit-components-rating.js +5 -0
  218. package/esm5/components/select/select.component.js +3 -10
  219. package/esm5/components/text-area/text-area.component.js +3 -3
  220. package/esm5/tokens/date-inputs-value-transformers.js +5 -0
  221. package/esm5/tokens/index.js +2 -1
  222. package/esm5/utils/miscellaneous/get-precision.js +9 -0
  223. package/esm5/utils/miscellaneous/index.js +2 -1
  224. package/esm5/utils/miscellaneous/replay-control-value-changes-factory.js +12 -4
  225. package/fesm2015/taiga-ui-kit-abstract.js +2 -0
  226. package/fesm2015/taiga-ui-kit-abstract.js.map +1 -1
  227. package/fesm2015/taiga-ui-kit-components-arrow.js +1 -1
  228. package/fesm2015/taiga-ui-kit-components-calendar-month.js +4 -1
  229. package/fesm2015/taiga-ui-kit-components-calendar-month.js.map +1 -1
  230. package/fesm2015/taiga-ui-kit-components-carousel.js +4 -3
  231. package/fesm2015/taiga-ui-kit-components-carousel.js.map +1 -1
  232. package/fesm2015/taiga-ui-kit-components-checkbox.js +1 -1
  233. package/fesm2015/taiga-ui-kit-components-checkbox.js.map +1 -1
  234. package/fesm2015/taiga-ui-kit-components-combo-box.js +3 -6
  235. package/fesm2015/taiga-ui-kit-components-combo-box.js.map +1 -1
  236. package/fesm2015/taiga-ui-kit-components-input-count.js +2 -6
  237. package/fesm2015/taiga-ui-kit-components-input-count.js.map +1 -1
  238. package/fesm2015/taiga-ui-kit-components-input-date-range.js +17 -9
  239. package/fesm2015/taiga-ui-kit-components-input-date-range.js.map +1 -1
  240. package/fesm2015/taiga-ui-kit-components-input-date-time.js +16 -12
  241. package/fesm2015/taiga-ui-kit-components-input-date-time.js.map +1 -1
  242. package/fesm2015/taiga-ui-kit-components-input-date.js +17 -9
  243. package/fesm2015/taiga-ui-kit-components-input-date.js.map +1 -1
  244. package/fesm2015/taiga-ui-kit-components-input-file.js +1 -4
  245. package/fesm2015/taiga-ui-kit-components-input-file.js.map +1 -1
  246. package/fesm2015/taiga-ui-kit-components-input-month-range.js +1 -4
  247. package/fesm2015/taiga-ui-kit-components-input-month-range.js.map +1 -1
  248. package/fesm2015/taiga-ui-kit-components-input-month.js +1 -4
  249. package/fesm2015/taiga-ui-kit-components-input-month.js.map +1 -1
  250. package/fesm2015/taiga-ui-kit-components-input-number.js +8 -6
  251. package/fesm2015/taiga-ui-kit-components-input-number.js.map +1 -1
  252. package/fesm2015/taiga-ui-kit-components-input-password.js +2 -5
  253. package/fesm2015/taiga-ui-kit-components-input-password.js.map +1 -1
  254. package/fesm2015/taiga-ui-kit-components-input-phone-international.js +38 -22
  255. package/fesm2015/taiga-ui-kit-components-input-phone-international.js.map +1 -1
  256. package/fesm2015/taiga-ui-kit-components-input-phone.js +1 -1
  257. package/fesm2015/taiga-ui-kit-components-input-phone.js.map +1 -1
  258. package/fesm2015/taiga-ui-kit-components-input-tag.js +2 -2
  259. package/fesm2015/taiga-ui-kit-components-input-tag.js.map +1 -1
  260. package/fesm2015/taiga-ui-kit-components-input-time.js +0 -3
  261. package/fesm2015/taiga-ui-kit-components-input-time.js.map +1 -1
  262. package/fesm2015/taiga-ui-kit-components-input.js +1 -1
  263. package/fesm2015/taiga-ui-kit-components-input.js.map +1 -1
  264. package/fesm2015/taiga-ui-kit-components-multi-select.js +0 -3
  265. package/fesm2015/taiga-ui-kit-components-multi-select.js.map +1 -1
  266. package/fesm2015/taiga-ui-kit-components-rating.js +123 -0
  267. package/fesm2015/taiga-ui-kit-components-rating.js.map +1 -0
  268. package/fesm2015/taiga-ui-kit-components-select.js +2 -5
  269. package/fesm2015/taiga-ui-kit-components-select.js.map +1 -1
  270. package/fesm2015/taiga-ui-kit-components-text-area.js +2 -2
  271. package/fesm2015/taiga-ui-kit-components-text-area.js.map +1 -1
  272. package/fesm2015/taiga-ui-kit-components.js +1 -0
  273. package/fesm2015/taiga-ui-kit-components.js.map +1 -1
  274. package/fesm2015/taiga-ui-kit-tokens.js +5 -1
  275. package/fesm2015/taiga-ui-kit-tokens.js.map +1 -1
  276. package/fesm2015/taiga-ui-kit-utils-miscellaneous.js +17 -3
  277. package/fesm2015/taiga-ui-kit-utils-miscellaneous.js.map +1 -1
  278. package/fesm5/taiga-ui-kit-abstract.js +2 -0
  279. package/fesm5/taiga-ui-kit-abstract.js.map +1 -1
  280. package/fesm5/taiga-ui-kit-components-arrow.js +1 -1
  281. package/fesm5/taiga-ui-kit-components-calendar-month.js +4 -1
  282. package/fesm5/taiga-ui-kit-components-calendar-month.js.map +1 -1
  283. package/fesm5/taiga-ui-kit-components-carousel.js +4 -3
  284. package/fesm5/taiga-ui-kit-components-carousel.js.map +1 -1
  285. package/fesm5/taiga-ui-kit-components-checkbox.js +1 -1
  286. package/fesm5/taiga-ui-kit-components-checkbox.js.map +1 -1
  287. package/fesm5/taiga-ui-kit-components-combo-box.js +3 -10
  288. package/fesm5/taiga-ui-kit-components-combo-box.js.map +1 -1
  289. package/fesm5/taiga-ui-kit-components-input-count.js +2 -6
  290. package/fesm5/taiga-ui-kit-components-input-count.js.map +1 -1
  291. package/fesm5/taiga-ui-kit-components-input-date-range.js +17 -9
  292. package/fesm5/taiga-ui-kit-components-input-date-range.js.map +1 -1
  293. package/fesm5/taiga-ui-kit-components-input-date-time.js +16 -16
  294. package/fesm5/taiga-ui-kit-components-input-date-time.js.map +1 -1
  295. package/fesm5/taiga-ui-kit-components-input-date.js +17 -9
  296. package/fesm5/taiga-ui-kit-components-input-date.js.map +1 -1
  297. package/fesm5/taiga-ui-kit-components-input-file.js +1 -8
  298. package/fesm5/taiga-ui-kit-components-input-file.js.map +1 -1
  299. package/fesm5/taiga-ui-kit-components-input-month-range.js +1 -8
  300. package/fesm5/taiga-ui-kit-components-input-month-range.js.map +1 -1
  301. package/fesm5/taiga-ui-kit-components-input-month.js +1 -8
  302. package/fesm5/taiga-ui-kit-components-input-month.js.map +1 -1
  303. package/fesm5/taiga-ui-kit-components-input-number.js +8 -6
  304. package/fesm5/taiga-ui-kit-components-input-number.js.map +1 -1
  305. package/fesm5/taiga-ui-kit-components-input-password.js +2 -9
  306. package/fesm5/taiga-ui-kit-components-input-password.js.map +1 -1
  307. package/fesm5/taiga-ui-kit-components-input-phone-international.js +38 -22
  308. package/fesm5/taiga-ui-kit-components-input-phone-international.js.map +1 -1
  309. package/fesm5/taiga-ui-kit-components-input-phone.js +1 -1
  310. package/fesm5/taiga-ui-kit-components-input-phone.js.map +1 -1
  311. package/fesm5/taiga-ui-kit-components-input-tag.js +2 -2
  312. package/fesm5/taiga-ui-kit-components-input-tag.js.map +1 -1
  313. package/fesm5/taiga-ui-kit-components-input-time.js +0 -7
  314. package/fesm5/taiga-ui-kit-components-input-time.js.map +1 -1
  315. package/fesm5/taiga-ui-kit-components-input.js +1 -1
  316. package/fesm5/taiga-ui-kit-components-input.js.map +1 -1
  317. package/fesm5/taiga-ui-kit-components-multi-select.js +0 -7
  318. package/fesm5/taiga-ui-kit-components-multi-select.js.map +1 -1
  319. package/fesm5/taiga-ui-kit-components-rating.js +146 -0
  320. package/fesm5/taiga-ui-kit-components-rating.js.map +1 -0
  321. package/fesm5/taiga-ui-kit-components-select.js +2 -9
  322. package/fesm5/taiga-ui-kit-components-select.js.map +1 -1
  323. package/fesm5/taiga-ui-kit-components-text-area.js +2 -2
  324. package/fesm5/taiga-ui-kit-components-text-area.js.map +1 -1
  325. package/fesm5/taiga-ui-kit-components.js +1 -0
  326. package/fesm5/taiga-ui-kit-components.js.map +1 -1
  327. package/fesm5/taiga-ui-kit-tokens.js +5 -1
  328. package/fesm5/taiga-ui-kit-tokens.js.map +1 -1
  329. package/fesm5/taiga-ui-kit-utils-miscellaneous.js +20 -3
  330. package/fesm5/taiga-ui-kit-utils-miscellaneous.js.map +1 -1
  331. package/package.json +4 -4
  332. package/tokens/date-inputs-value-transformers.d.ts +5 -0
  333. package/tokens/index.d.ts +1 -0
  334. package/tokens/taiga-ui-kit-tokens.metadata.json +1 -1
  335. package/utils/miscellaneous/get-precision.d.ts +4 -0
  336. package/utils/miscellaneous/index.d.ts +1 -0
  337. package/utils/miscellaneous/replay-control-value-changes-factory.d.ts +3 -2
  338. package/utils/miscellaneous/taiga-ui-kit-utils-miscellaneous.metadata.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-text-area.js","sources":["ng://@taiga-ui/kit/components/text-area/text-area.providers.ts","ng://@taiga-ui/kit/components/text-area/text-area.component.ts","ng://@taiga-ui/kit/components/text-area/text-area.module.ts","ng://@taiga-ui/kit/components/text-area/taiga-ui-kit-components-text-area.ts"],"sourcesContent":["import {forwardRef, Provider} from '@angular/core';\nimport {TUI_FOCUSABLE_ITEM_ACCESSOR} from '@taiga-ui/cdk';\nimport {\n HINT_CONTROLLER_PROVIDER,\n MODE_PROVIDER,\n TEXTFIELD_CONTROLLER_PROVIDER,\n} from '@taiga-ui/core';\n\nimport {TuiTextAreaComponent} from './text-area.component';\n\nexport const TUI_TEXT_AREA_PROVIDERS: Provider[] = [\n {\n provide: TUI_FOCUSABLE_ITEM_ACCESSOR,\n useExisting: forwardRef(() => TuiTextAreaComponent),\n },\n TEXTFIELD_CONTROLLER_PROVIDER,\n HINT_CONTROLLER_PROVIDER,\n MODE_PROVIDER,\n];\n","import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ElementRef,\n HostBinding,\n Inject,\n Input,\n Optional,\n Self,\n ViewChild,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {\n AbstractTuiControl,\n isNativeFocused,\n setNativeFocused,\n TUI_IS_IOS,\n tuiDefaultProp,\n TuiFocusableElementAccessor,\n} from '@taiga-ui/cdk';\nimport {\n getBorder,\n TUI_HINT_WATCHED_CONTROLLER,\n TUI_MODE,\n TUI_TEXTFIELD_APPEARANCE,\n TUI_TEXTFIELD_WATCHED_CONTROLLER,\n TuiBrightness,\n TuiHintControllerDirective,\n TuiSizeL,\n TuiSizeS,\n TuiTextfieldController,\n} from '@taiga-ui/core';\nimport {Observable} from 'rxjs';\n\nimport {TUI_TEXT_AREA_PROVIDERS} from './text-area.providers';\n\nexport const DEFAULT_ROWS = 20;\nexport const LINE_HEIGHT_M = 20;\nexport const LINE_HEIGHT_L = 24;\n\n@Component({\n selector: 'tui-text-area',\n templateUrl: './text-area.template.html',\n styleUrls: ['./text-area.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: TUI_TEXT_AREA_PROVIDERS,\n host: {\n '($.data-mode.attr)': 'mode$',\n '[class._ios]': 'isIOS',\n },\n})\nexport class TuiTextAreaComponent\n extends AbstractTuiControl<string>\n implements TuiFocusableElementAccessor\n{\n @ViewChild('focusableElement')\n private readonly focusableElement?: ElementRef<HTMLTextAreaElement>;\n\n @Input()\n @tuiDefaultProp()\n rows = DEFAULT_ROWS;\n\n @Input()\n @HostBinding('class._expandable')\n @tuiDefaultProp()\n expandable = false;\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n @Inject(TUI_TEXTFIELD_APPEARANCE) readonly appearance: string,\n @Inject(TUI_IS_IOS) readonly isIOS: boolean,\n @Inject(TUI_MODE) readonly mode$: Observable<TuiBrightness | null>,\n @Inject(TUI_TEXTFIELD_WATCHED_CONTROLLER)\n readonly controller: TuiTextfieldController,\n @Inject(TUI_HINT_WATCHED_CONTROLLER)\n readonly hintController: TuiHintControllerDirective,\n ) {\n super(control, changeDetectorRef);\n }\n\n @HostBinding('class._label-outside')\n get labelOutside(): boolean {\n return this.controller.labelOutside;\n }\n\n get nativeFocusableElement(): HTMLTextAreaElement | null {\n return this.computedDisabled || !this.focusableElement\n ? null\n : this.focusableElement.nativeElement;\n }\n\n get focused(): boolean {\n return isNativeFocused(this.nativeFocusableElement);\n }\n\n @HostBinding('attr.data-tui-host-size')\n get size(): TuiSizeL | TuiSizeS {\n return this.controller.size;\n }\n\n get border(): number {\n return getBorder(false, this.hasCleaner, this.hasTooltip);\n }\n\n get hasCleaner(): boolean {\n return (\n this.controller.cleaner && this.hasValue && !this.disabled && !this.readOnly\n );\n }\n\n @HostBinding('class._has-tooltip')\n get hasTooltip(): boolean {\n return !!this.hintController.content && !this.disabled;\n }\n\n @HostBinding('class._has-value')\n get hasValue(): boolean {\n return this.value !== '';\n }\n\n @HostBinding('class._has-counter')\n get hasCounter(): boolean {\n return !!this.controller.maxLength && !this.disabled && !this.readOnly;\n }\n\n get hasPlaceholder(): boolean {\n return !this.controller.labelOutside || (!this.hasValue && !this.hasExampleText);\n }\n\n get hasExampleText(): boolean {\n return (\n !!this.controller.exampleText &&\n this.focused &&\n !this.hasValue &&\n !this.readOnly\n );\n }\n\n get computeMaxHeight(): number | null {\n return this.expandable ? this.rows * this.lineHeight : null;\n }\n\n get placeholderRaised(): boolean {\n return (\n !this.controller.labelOutside &&\n ((this.computedFocused && !this.readOnly) || this.hasValue)\n );\n }\n\n get fittedContent(): string {\n return this.value.slice(0, this.controller.maxLength || Infinity);\n }\n\n get extraContent(): string {\n return this.value.slice(this.controller.maxLength || Infinity);\n }\n\n onFocused(focused: boolean) {\n this.updateFocused(focused);\n }\n\n onHovered(hovered: boolean) {\n this.updateHovered(hovered);\n }\n\n onPressed(pressed: boolean) {\n this.updatePressed(pressed);\n }\n\n onValue(value: string) {\n this.updateValue(value);\n }\n\n onMouseDown(event: MouseEvent) {\n if (event.target === this.nativeFocusableElement) {\n return;\n }\n\n event.preventDefault();\n\n if (this.nativeFocusableElement) {\n setNativeFocused(this.nativeFocusableElement);\n }\n }\n\n protected getFallbackValue(): string {\n return '';\n }\n\n private get lineHeight(): number {\n return this.controller.size === 'm' ? LINE_HEIGHT_M : LINE_HEIGHT_L;\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {FormsModule} from '@angular/forms';\nimport {TuiFocusableModule, TuiFocusedModule, TuiHoveredModule} from '@taiga-ui/cdk';\nimport {\n TuiBorderModule,\n TuiDescribedByModule,\n TuiScrollbarModule,\n TuiSvgModule,\n TuiTooltipModule,\n TuiWrapperModule,\n} from '@taiga-ui/core';\n\nimport {TuiTextAreaComponent} from './text-area.component';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n TuiFocusableModule,\n TuiFocusedModule,\n TuiHoveredModule,\n TuiScrollbarModule,\n TuiTooltipModule,\n TuiWrapperModule,\n TuiDescribedByModule,\n TuiBorderModule,\n TuiSvgModule,\n ],\n declarations: [TuiTextAreaComponent],\n exports: [TuiTextAreaComponent],\n})\nexport class TuiTextAreaModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;IAUa,uBAAuB,GAAe;IAC/C;QACI,OAAO,EAAE,2BAA2B;QACpC,WAAW,EAAE,UAAU,CAAC,cAAM,OAAA,oBAAoB,GAAA,CAAC;KACtD;IACD,6BAA6B;IAC7B,wBAAwB;IACxB,aAAa;;;ICoBJ,YAAY,GAAG,GAAG;IAClB,aAAa,GAAG,GAAG;IACnB,aAAa,GAAG,GAAG;;IAcpB,wCAA0B;IAelC,8BAII,OAAyB,EACE,iBAAoC,EACpB,UAAkB,EAChC,KAAc,EAChB,KAAuC,EAEzD,UAAkC,EAElC,cAA0C;QAZvD,YAcI,kBAAM,OAAO,EAAE,iBAAiB,CAAC,SACpC;QAT8C,gBAAU,GAAV,UAAU,CAAQ;QAChC,WAAK,GAAL,KAAK,CAAS;QAChB,WAAK,GAAL,KAAK,CAAkC;QAEzD,gBAAU,GAAV,UAAU,CAAwB;QAElC,oBAAc,GAAd,cAAc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ACP,QAAQ,EAAE,eAAe;YACzB,iwGAAwC;YAExC,eAAe,EAAE,uBAAuB,CAAC,MAAM;YAC/C,SAAS,EAAE,uBAAuB;YAClC,IAAI,EAAE;gBACF,oBAAoB,EAAE,OAAO;gBAC7B,cAAc,EAAE,OAAO;aAC1B;;SACJ,CAAC;QAkBO,WAAA,QAAQ,EAAE,CAAA;QACV,WAAA,IAAI,EAAE,CAAA;QACN,WAAA,MAAM,CAAC,SAAS,CAAC,CAAA;QAEjB,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;QACzB,WAAA,MAAM,CAAC,wBAAwB,CAAC,CAAA;QAChC,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;QAClB,WAAA,MAAM,CAAC,QAAQ,CAAC,CAAA;QAChB,WAAA,MAAM,CAAC,gCAAgC,CAAC,CAAA;QAExC,WAAA,MAAM,CAAC,2BAA2B,CAAC,CAAA;OA3B/B,oBAAoB,CAiJhC;IAAD,2BAAC;CAAA,CAhJW,kBAAkB;;;ICrB9B;KAAiC;IAApB,iBAAiB;QAjB7B,QAAQ,CAAC;YACN,OAAO,EAAE;gBACL,YAAY;gBACZ,WAAW;gBACX,kBAAkB;gBAClB,gBAAgB;gBAChB,gBAAgB;gBAChB,kBAAkB;gBAClB,gBAAgB;gBAChB,gBAAgB;gBAChB,oBAAoB;gBACpB,eAAe;gBACf,YAAY;aACf;YACD,YAAY,EAAE,CAAC,oBAAoB,CAAC;YACpC,OAAO,EAAE,CAAC,oBAAoB,CAAC;SAClC,CAAC;OACW,iBAAiB,CAAG;IAAD,wBAAC;CAAjC;;AChCA;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-text-area.js","sources":["ng://@taiga-ui/kit/components/text-area/text-area.providers.ts","ng://@taiga-ui/kit/components/text-area/text-area.component.ts","ng://@taiga-ui/kit/components/text-area/text-area.module.ts","ng://@taiga-ui/kit/components/text-area/taiga-ui-kit-components-text-area.ts"],"sourcesContent":["import {forwardRef, Provider} from '@angular/core';\nimport {TUI_FOCUSABLE_ITEM_ACCESSOR} from '@taiga-ui/cdk';\nimport {\n HINT_CONTROLLER_PROVIDER,\n MODE_PROVIDER,\n TEXTFIELD_CONTROLLER_PROVIDER,\n} from '@taiga-ui/core';\n\nimport {TuiTextAreaComponent} from './text-area.component';\n\nexport const TUI_TEXT_AREA_PROVIDERS: Provider[] = [\n {\n provide: TUI_FOCUSABLE_ITEM_ACCESSOR,\n useExisting: forwardRef(() => TuiTextAreaComponent),\n },\n TEXTFIELD_CONTROLLER_PROVIDER,\n HINT_CONTROLLER_PROVIDER,\n MODE_PROVIDER,\n];\n","import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ElementRef,\n HostBinding,\n Inject,\n Input,\n Optional,\n Self,\n ViewChild,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {\n AbstractTuiControl,\n isNativeFocused,\n setNativeFocused,\n TUI_IS_IOS,\n tuiDefaultProp,\n TuiFocusableElementAccessor,\n} from '@taiga-ui/cdk';\nimport {\n getBorder,\n TUI_HINT_WATCHED_CONTROLLER,\n TUI_MODE,\n TUI_TEXTFIELD_APPEARANCE,\n TUI_TEXTFIELD_WATCHED_CONTROLLER,\n TuiBrightness,\n TuiHintControllerDirective,\n TuiSizeL,\n TuiSizeS,\n TuiTextfieldController,\n} from '@taiga-ui/core';\nimport {Observable} from 'rxjs';\n\nimport {TUI_TEXT_AREA_PROVIDERS} from './text-area.providers';\n\nexport const DEFAULT_ROWS = 20;\nexport const LINE_HEIGHT_M = 20;\nexport const LINE_HEIGHT_L = 24;\n\n@Component({\n selector: 'tui-text-area',\n templateUrl: './text-area.template.html',\n styleUrls: ['./text-area.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: TUI_TEXT_AREA_PROVIDERS,\n host: {\n '($.data-mode.attr)': 'mode$',\n '[class._ios]': 'isIOS',\n },\n})\nexport class TuiTextAreaComponent\n extends AbstractTuiControl<string>\n implements TuiFocusableElementAccessor\n{\n @ViewChild('focusableElement')\n private readonly focusableElement?: ElementRef<HTMLTextAreaElement>;\n\n @Input()\n @tuiDefaultProp()\n rows = DEFAULT_ROWS;\n\n @Input()\n @HostBinding('class._expandable')\n @tuiDefaultProp()\n expandable = false;\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n @Inject(TUI_TEXTFIELD_APPEARANCE) readonly appearance: string,\n @Inject(TUI_IS_IOS) readonly isIOS: boolean,\n @Inject(TUI_MODE) readonly mode$: Observable<TuiBrightness | null>,\n @Inject(TUI_TEXTFIELD_WATCHED_CONTROLLER)\n readonly controller: TuiTextfieldController,\n @Inject(TUI_HINT_WATCHED_CONTROLLER)\n readonly hintController: TuiHintControllerDirective,\n ) {\n super(control, changeDetectorRef);\n }\n\n @HostBinding('class._label-outside')\n get labelOutside(): boolean {\n return this.controller.labelOutside;\n }\n\n get nativeFocusableElement(): HTMLTextAreaElement | null {\n return this.computedDisabled || !this.focusableElement\n ? null\n : this.focusableElement.nativeElement;\n }\n\n get focused(): boolean {\n return isNativeFocused(this.nativeFocusableElement);\n }\n\n @HostBinding('attr.data-tui-host-size')\n get size(): TuiSizeL | TuiSizeS {\n return this.controller.size;\n }\n\n get border(): number {\n return getBorder(false, this.hasCleaner, this.hasTooltip);\n }\n\n get hasCleaner(): boolean {\n return this.controller.cleaner && this.hasValue && this.interactive;\n }\n\n @HostBinding('class._has-tooltip')\n get hasTooltip(): boolean {\n return !!this.hintController.content && !this.disabled;\n }\n\n @HostBinding('class._has-value')\n get hasValue(): boolean {\n return this.value !== '';\n }\n\n @HostBinding('class._has-counter')\n get hasCounter(): boolean {\n return !!this.controller.maxLength && this.interactive;\n }\n\n get hasPlaceholder(): boolean {\n return !this.controller.labelOutside || (!this.hasValue && !this.hasExampleText);\n }\n\n get hasExampleText(): boolean {\n return (\n !!this.controller.exampleText &&\n this.focused &&\n !this.hasValue &&\n !this.readOnly\n );\n }\n\n get computeMaxHeight(): number | null {\n return this.expandable ? this.rows * this.lineHeight : null;\n }\n\n get placeholderRaised(): boolean {\n return (\n !this.controller.labelOutside &&\n ((this.computedFocused && !this.readOnly) || this.hasValue)\n );\n }\n\n get fittedContent(): string {\n return this.value.slice(0, this.controller.maxLength || Infinity);\n }\n\n get extraContent(): string {\n return this.value.slice(this.controller.maxLength || Infinity);\n }\n\n onFocused(focused: boolean) {\n this.updateFocused(focused);\n }\n\n onHovered(hovered: boolean) {\n this.updateHovered(hovered);\n }\n\n onPressed(pressed: boolean) {\n this.updatePressed(pressed);\n }\n\n onValue(value: string) {\n this.updateValue(value);\n }\n\n onMouseDown(event: MouseEvent) {\n if (event.target === this.nativeFocusableElement) {\n return;\n }\n\n event.preventDefault();\n\n if (this.nativeFocusableElement) {\n setNativeFocused(this.nativeFocusableElement);\n }\n }\n\n protected getFallbackValue(): string {\n return '';\n }\n\n private get lineHeight(): number {\n return this.controller.size === 'm' ? LINE_HEIGHT_M : LINE_HEIGHT_L;\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {FormsModule} from '@angular/forms';\nimport {TuiFocusableModule, TuiFocusedModule, TuiHoveredModule} from '@taiga-ui/cdk';\nimport {\n TuiBorderModule,\n TuiDescribedByModule,\n TuiScrollbarModule,\n TuiSvgModule,\n TuiTooltipModule,\n TuiWrapperModule,\n} from '@taiga-ui/core';\n\nimport {TuiTextAreaComponent} from './text-area.component';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n TuiFocusableModule,\n TuiFocusedModule,\n TuiHoveredModule,\n TuiScrollbarModule,\n TuiTooltipModule,\n TuiWrapperModule,\n TuiDescribedByModule,\n TuiBorderModule,\n TuiSvgModule,\n ],\n declarations: [TuiTextAreaComponent],\n exports: [TuiTextAreaComponent],\n})\nexport class TuiTextAreaModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;IAUa,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ChB,gBAAgB;gBAChB,kBAAkB;gBAClB,gBAAgB;gBAChB,gBAAgB;gBAChB,oBAAoB;gBACpB,eAAe;gBACf,YAAY;aACf;YACD,YAAY,EAAE,CAAC,oBAAoB,CAAC;YACpC,OAAO,EAAE,CAAC,oBAAoB,CAAC;SAClC,CAAC;OACW,iBAAiB,CAAG;IAAD,wBAAC;CAAjC;;AChCA;;;;;;"}
@@ -47,6 +47,7 @@ export * from '@taiga-ui/kit/components/radio-group';
47
47
  export * from '@taiga-ui/kit/components/radio-labeled';
48
48
  export * from '@taiga-ui/kit/components/radio-list';
49
49
  export * from '@taiga-ui/kit/components/range';
50
+ export * from '@taiga-ui/kit/components/rating';
50
51
  export * from '@taiga-ui/kit/components/select';
51
52
  export * from '@taiga-ui/kit/components/select-option';
52
53
  export * from '@taiga-ui/kit/components/slider';
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components.js","sources":["ng://@taiga-ui/kit/components/taiga-ui-kit-components.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components.js","sources":["ng://@taiga-ui/kit/components/taiga-ui-kit-components.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;"}
@@ -3,6 +3,10 @@ import { extractI18n } from '@taiga-ui/i18n';
3
3
 
4
4
  var TUI_CALENDAR_DATA_STREAM = new InjectionToken('Stream that emits calendar data change');
5
5
 
6
+ var TUI_DATE_VALUE_TRANSFORMER = new InjectionToken('Control value transformer of TuiDay to custom value format for InputDate* components');
7
+ var TUI_DATE_RANGE_VALUE_TRANSFORMER = new InjectionToken('Control value transformer for InputDateRange component');
8
+ var TUI_DATE_TIME_VALUE_TRANSFORMER = new InjectionToken('Control value transformer for InputDateTime component');
9
+
6
10
  var TUI_CANCEL_WORD = new InjectionToken("i18n 'cancel' word", {
7
11
  factory: extractI18n('cancel'),
8
12
  });
@@ -73,5 +77,5 @@ var TUI_VALIDATION_ERRORS = new InjectionToken('Validation errors', {
73
77
  * Generated bundle index. Do not edit.
74
78
  */
75
79
 
76
- export { TUI_CALENDAR_DATA_STREAM, TUI_CALENDAR_MONTHS, TUI_CANCEL_WORD, TUI_CHOOSE_DAY_OR_RANGE_TEXTS, TUI_COPY_TEXTS, TUI_COUNTRIES, TUI_DATE_TEXTS, TUI_DIGITAL_INFORMATION_UNITS, TUI_DONE_WORD, TUI_FILE_TEXTS, TUI_FROM_TO_TEXTS, TUI_INPUT_FILE_TEXTS, TUI_MOBILE_AWARE, TUI_MOBILE_CALENDAR, TUI_MORE_WORD, TUI_OTHER_DATE_TEXT, TUI_PAGINATION_TEXTS, TUI_PASSWORD_TEXTS, TUI_PLUS_MINUS_TEXTS, TUI_TAG_STATUS, TUI_TIME_TEXTS, TUI_VALIDATION_ERRORS };
80
+ export { TUI_CALENDAR_DATA_STREAM, TUI_CALENDAR_MONTHS, TUI_CANCEL_WORD, TUI_CHOOSE_DAY_OR_RANGE_TEXTS, TUI_COPY_TEXTS, TUI_COUNTRIES, TUI_DATE_RANGE_VALUE_TRANSFORMER, TUI_DATE_TEXTS, TUI_DATE_TIME_VALUE_TRANSFORMER, TUI_DATE_VALUE_TRANSFORMER, TUI_DIGITAL_INFORMATION_UNITS, TUI_DONE_WORD, TUI_FILE_TEXTS, TUI_FROM_TO_TEXTS, TUI_INPUT_FILE_TEXTS, TUI_MOBILE_AWARE, TUI_MOBILE_CALENDAR, TUI_MORE_WORD, TUI_OTHER_DATE_TEXT, TUI_PAGINATION_TEXTS, TUI_PASSWORD_TEXTS, TUI_PLUS_MINUS_TEXTS, TUI_TAG_STATUS, TUI_TIME_TEXTS, TUI_VALIDATION_ERRORS };
77
81
  //# sourceMappingURL=taiga-ui-kit-tokens.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-tokens.js","sources":["ng://@taiga-ui/kit/tokens/calendar-data-stream.ts","ng://@taiga-ui/kit/tokens/i18n.ts","ng://@taiga-ui/kit/tokens/mobile-aware.ts","ng://@taiga-ui/kit/tokens/mobile-calendar.ts","ng://@taiga-ui/kit/tokens/tag-status.ts","ng://@taiga-ui/kit/tokens/validation-errors.ts","ng://@taiga-ui/kit/tokens/taiga-ui-kit-tokens.ts"],"sourcesContent":["import {InjectionToken} from '@angular/core';\nimport {TuiDay, TuiDayRange} from '@taiga-ui/cdk';\nimport {Observable} from 'rxjs';\n\nexport const TUI_CALENDAR_DATA_STREAM = new InjectionToken<\n Observable<TuiDay | TuiDayRange | null>\n>('Stream that emits calendar data change');\n","import {InjectionToken} from '@angular/core';\nimport {TuiDateMode} from '@taiga-ui/cdk';\nimport {extractI18n, TuiCountryIsoCode} from '@taiga-ui/i18n';\nimport {Observable} from 'rxjs';\n\nexport const TUI_CANCEL_WORD = new InjectionToken(`i18n 'cancel' word`, {\n factory: extractI18n('cancel'),\n});\n\nexport const TUI_DONE_WORD = new InjectionToken(`i18n 'done' word`, {\n factory: extractI18n('done'),\n});\n\nexport const TUI_MORE_WORD = new InjectionToken(`i18n 'more' word`, {\n factory: extractI18n('more'),\n});\n\nexport const TUI_OTHER_DATE_TEXT = new InjectionToken(`i18n 'Other date' text`, {\n factory: extractI18n('otherDate'),\n});\n\nexport const TUI_CHOOSE_DAY_OR_RANGE_TEXTS = new InjectionToken(\n `choose day or range i18n texts`,\n {\n factory: extractI18n('mobileCalendarTexts'),\n },\n);\n\nexport const TUI_FROM_TO_TEXTS = new InjectionToken(`from and to i18n texts`, {\n factory: extractI18n('range'),\n});\n\nexport const TUI_PLUS_MINUS_TEXTS = new InjectionToken(`plus and minus i18n texts`, {\n factory: extractI18n('countTexts'),\n});\n\nexport const TUI_TIME_TEXTS = new InjectionToken(`time i18n texts`, {\n factory: extractI18n('time'),\n});\n\nexport const TUI_DATE_TEXTS = new InjectionToken<Observable<Record<TuiDateMode, string>>>(\n 'date format i18n texts',\n {\n factory: extractI18n('dateTexts'),\n },\n);\n\nexport const TUI_DIGITAL_INFORMATION_UNITS = new InjectionToken(\n `short bytes, kilobytes and megabytes i18n texts`,\n {\n factory: extractI18n('digitalInformationUnits'),\n },\n);\n\nexport const TUI_COPY_TEXTS = new InjectionToken('copy i18n texts', {\n factory: extractI18n('copyTexts'),\n});\n\nexport const TUI_PASSWORD_TEXTS = new InjectionToken('password i18n texts', {\n factory: extractI18n('passwordTexts'),\n});\n\nexport const TUI_CALENDAR_MONTHS = new InjectionToken('short calendar months i18n', {\n factory: extractI18n('shortCalendarMonths'),\n});\n\nexport const TUI_FILE_TEXTS = new InjectionToken('file i18n texts', {\n factory: extractI18n('fileTexts'),\n});\n\nexport const TUI_PAGINATION_TEXTS = new InjectionToken('pagination i18n texts', {\n factory: extractI18n('paginationTexts'),\n});\n\nexport const TUI_INPUT_FILE_TEXTS = new InjectionToken('tui-input-file i18n texts', {\n factory: extractI18n('inputFileTexts'),\n});\n\nexport const TUI_COUNTRIES: InjectionToken<\n Observable<Record<TuiCountryIsoCode, string>>\n> = new InjectionToken('Localized countries names', {\n factory: extractI18n('countries'),\n});\n","import {InjectionToken} from '@angular/core';\n\nexport const TUI_MOBILE_AWARE = new InjectionToken<boolean>(\n 'A flag enabling mobile-specific behavior for supporting components',\n {\n factory: () => false,\n },\n);\n","import {InjectionToken, Type} from '@angular/core';\n\nexport const TUI_MOBILE_CALENDAR = new InjectionToken<Type<any>>(\n 'A component for mobile data picker',\n);\n","import {InjectionToken} from '@angular/core';\nimport {TuiStatus} from '@taiga-ui/kit/enums';\n\nexport const TUI_TAG_STATUS = new InjectionToken<TuiStatus>(\n 'Status for tags inside InputTag component',\n {\n factory: () => TuiStatus.Primary,\n },\n);\n","import {InjectionToken} from '@angular/core';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {Observable} from 'rxjs';\n\nexport const TUI_VALIDATION_ERRORS = new InjectionToken<\n Record<string, PolymorpheusContent | Observable<PolymorpheusContent>>\n>('Validation errors', {\n factory: () => ({}),\n});\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;IAIa,wBAAwB,GAAG,IAAI,cAAc,CAExD,wCAAwC;;ICD7B,eAAe,GAAG,IAAI,cAAc,CAAC,oBAAoB,EAAE;IACpE,OAAO,EAAE,WAAW,CAAC,QAAQ,CAAC;CACjC,EAAE;IAEU,aAAa,GAAG,IAAI,cAAc,CAAC,kBAAkB,EAAE;IAChE,OAAO,EAAE,WAAW,CAAC,MAAM,CAAC;CAC/B,EAAE;IAEU,aAAa,GAAG,IAAI,cAAc,CAAC,kBAAkB,EAAE;IAChE,OAAO,EAAE,WAAW,CAAC,MAAM,CAAC;CAC/B,EAAE;IAEU,mBAAmB,GAAG,IAAI,cAAc,CAAC,wBAAwB,EAAE;IAC5E,OAAO,EAAE,WAAW,CAAC,WAAW,CAAC;CACpC,EAAE;IAEU,6BAA6B,GAAG,IAAI,cAAc,CAC3D,gCAAgC,EAChC;IACI,OAAO,EAAE,WAAW,CAAC,qBAAqB,CAAC;CAC9C,EACH;IAEW,iBAAiB,GAAG,IAAI,cAAc,CAAC,wBAAwB,EAAE;IAC1E,OAAO,EAAE,WAAW,CAAC,OAAO,CAAC;CAChC,EAAE;IAEU,oBAAoB,GAAG,IAAI,cAAc,CAAC,2BAA2B,EAAE;IAChF,OAAO,EAAE,WAAW,CAAC,YAAY,CAAC;CACrC,EAAE;IAEU,cAAc,GAAG,IAAI,cAAc,CAAC,iBAAiB,EAAE;IAChE,OAAO,EAAE,WAAW,CAAC,MAAM,CAAC;CAC/B,EAAE;IAEU,cAAc,GAAG,IAAI,cAAc,CAC5C,wBAAwB,EACxB;IACI,OAAO,EAAE,WAAW,CAAC,WAAW,CAAC;CACpC,EACH;I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"file":"taiga-ui-kit-tokens.js","sources":["ng://@taiga-ui/kit/tokens/calendar-data-stream.ts","ng://@taiga-ui/kit/tokens/date-inputs-value-transformers.ts","ng://@taiga-ui/kit/tokens/i18n.ts","ng://@taiga-ui/kit/tokens/mobile-aware.ts","ng://@taiga-ui/kit/tokens/mobile-calendar.ts","ng://@taiga-ui/kit/tokens/tag-status.ts","ng://@taiga-ui/kit/tokens/validation-errors.ts","ng://@taiga-ui/kit/tokens/taiga-ui-kit-tokens.ts"],"sourcesContent":["import {InjectionToken} from '@angular/core';\nimport {TuiDay, TuiDayRange} from '@taiga-ui/cdk';\nimport {Observable} from 'rxjs';\n\nexport const TUI_CALENDAR_DATA_STREAM = new InjectionToken<\n Observable<TuiDay | TuiDayRange | null>\n>('Stream that emits calendar data change');\n","import {InjectionToken} from '@angular/core';\nimport {TuiControlValueTransformer, TuiDay, TuiDayRange, TuiTime} from '@taiga-ui/cdk';\n\nexport const TUI_DATE_VALUE_TRANSFORMER = new InjectionToken<\n TuiControlValueTransformer<TuiDay | null>\n>('Control value transformer of TuiDay to custom value format for InputDate* components');\n\nexport const TUI_DATE_RANGE_VALUE_TRANSFORMER = new InjectionToken<\n TuiControlValueTransformer<TuiDayRange | null>\n>('Control value transformer for InputDateRange component');\n\nexport const TUI_DATE_TIME_VALUE_TRANSFORMER = new InjectionToken<\n TuiControlValueTransformer<[TuiDay | null, TuiTime | null]>\n>('Control value transformer for InputDateTime component');\n","import {InjectionToken} from '@angular/core';\nimport {TuiDateMode} from '@taiga-ui/cdk';\nimport {extractI18n, TuiCountryIsoCode} from '@taiga-ui/i18n';\nimport {Observable} from 'rxjs';\n\nexport const TUI_CANCEL_WORD = new InjectionToken(`i18n 'cancel' word`, {\n factory: extractI18n('cancel'),\n});\n\nexport const TUI_DONE_WORD = new InjectionToken(`i18n 'done' word`, {\n factory: extractI18n('done'),\n});\n\nexport const TUI_MORE_WORD = new InjectionToken(`i18n 'more' word`, {\n factory: extractI18n('more'),\n});\n\nexport const TUI_OTHER_DATE_TEXT = new InjectionToken(`i18n 'Other date' text`, {\n factory: extractI18n('otherDate'),\n});\n\nexport const TUI_CHOOSE_DAY_OR_RANGE_TEXTS = new InjectionToken(\n `choose day or range i18n texts`,\n {\n factory: extractI18n('mobileCalendarTexts'),\n },\n);\n\nexport const TUI_FROM_TO_TEXTS = new InjectionToken(`from and to i18n texts`, {\n factory: extractI18n('range'),\n});\n\nexport const TUI_PLUS_MINUS_TEXTS = new InjectionToken(`plus and minus i18n texts`, {\n factory: extractI18n('countTexts'),\n});\n\nexport const TUI_TIME_TEXTS = new InjectionToken(`time i18n texts`, {\n factory: extractI18n('time'),\n});\n\nexport const TUI_DATE_TEXTS = new InjectionToken<Observable<Record<TuiDateMode, string>>>(\n 'date format i18n texts',\n {\n factory: extractI18n('dateTexts'),\n },\n);\n\nexport const TUI_DIGITAL_INFORMATION_UNITS = new InjectionToken(\n `short bytes, kilobytes and megabytes i18n texts`,\n {\n factory: extractI18n('digitalInformationUnits'),\n },\n);\n\nexport const TUI_COPY_TEXTS = new InjectionToken('copy i18n texts', {\n factory: extractI18n('copyTexts'),\n});\n\nexport const TUI_PASSWORD_TEXTS = new InjectionToken('password i18n texts', {\n factory: extractI18n('passwordTexts'),\n});\n\nexport const TUI_CALENDAR_MONTHS = new InjectionToken('short calendar months i18n', {\n factory: extractI18n('shortCalendarMonths'),\n});\n\nexport const TUI_FILE_TEXTS = new InjectionToken('file i18n texts', {\n factory: extractI18n('fileTexts'),\n});\n\nexport const TUI_PAGINATION_TEXTS = new InjectionToken('pagination i18n texts', {\n factory: extractI18n('paginationTexts'),\n});\n\nexport const TUI_INPUT_FILE_TEXTS = new InjectionToken('tui-input-file i18n texts', {\n factory: extractI18n('inputFileTexts'),\n});\n\nexport const TUI_COUNTRIES: InjectionToken<\n Observable<Record<TuiCountryIsoCode, string>>\n> = new InjectionToken('Localized countries names', {\n factory: extractI18n('countries'),\n});\n","import {InjectionToken} from '@angular/core';\n\nexport const TUI_MOBILE_AWARE = new InjectionToken<boolean>(\n 'A flag enabling mobile-specific behavior for supporting components',\n {\n factory: () => false,\n },\n);\n","import {InjectionToken, Type} from '@angular/core';\n\nexport const TUI_MOBILE_CALENDAR = new InjectionToken<Type<any>>(\n 'A component for mobile data picker',\n);\n","import {InjectionToken} from '@angular/core';\nimport {TuiStatus} from '@taiga-ui/kit/enums';\n\nexport const TUI_TAG_STATUS = new InjectionToken<TuiStatus>(\n 'Status for tags inside InputTag component',\n {\n factory: () => TuiStatus.Primary,\n },\n);\n","import {InjectionToken} from '@angular/core';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {Observable} from 'rxjs';\n\nexport const TUI_VALIDATION_ERRORS = new InjectionToken<\n Record<string, PolymorpheusContent | Observable<PolymorpheusContent>>\n>('Validation errors', {\n factory: () => ({}),\n});\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;IAIa,wBAAwB,GAAG,IAAI,cAAc,CAExD,wCAAwC;;ICH7B,0BAA0B,GAAG,IAAI,cAAc,CAE1D,sFAAsF,EAAE;IAE7E,gCAAgC,GAAG,IAAI,cAAc,CAEhE,wDAAwD,EAAE;IAE/C,+BAA+B,GAAG,IAAI,cAAc,CAE/D,uDAAuD;;ICR5C,eAAe,GAAG,IAAI,cAAc,CAAC,oBAAoB,EAAE;IACpE,OAAO,EAAE,WAAW,CAAC,QAAQ,CAAC;CACjC,EAAE;IAEU,aAAa,GAAG,IAAI,cAAc,CAAC,kBAAkB,EAAE;IAChE,OAAO,EAAE,WAAW,CAAC,MAAM,CAAC;CAC/B,EAAE;IAEU,aAAa,GAAG,IAAI,cAAc,CAAC,kBAAkB,EAAE;IAChE,OAAO,EAAE,WAAW,CAAC,MAAM,CAAC;CAC/B,EAAE;IAEU,mBAAmB,GAAG,IAAI,cAAc,CAAC,wBAAwB,EAAE;IAC5E,OAAO,EAAE,WAAW,CAAC,WAAW,CAAC;CACpC,EAAE;IAEU,6BAA6B,G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AAE,WAAW,CAAC,gBAAgB,CAAC;CACzC,EAAE;IAEU,aAAa,GAEtB,IAAI,cAAc,CAAC,2BAA2B,EAAE;IAChD,OAAO,EAAE,WAAW,CAAC,WAAW,CAAC;CACpC;;IChFY,gBAAgB,GAAG,IAAI,cAAc,CAC9C,oEAAoE,EACpE;IACI,OAAO,EAAE,cAAM,OAAA,KAAK,GAAA;CACvB;;ICJQ,mBAAmB,GAAG,IAAI,cAAc,CACjD,oCAAoC;;ICA3B,cAAc,GAAG,IAAI,cAAc,CAC5C,2CAA2C,EAC3C;IACI,OAAO,EAAE,cAAM,iCAAiB;CACnC;;ICHQ,qBAAqB,GAAG,IAAI,cAAc,CAErD,mBAAmB,EAAE;IACnB,OAAO,EAAE,cAAM,QAAC,EAAE,IAAC;CACtB;;ACRD;;;;;;"}
@@ -1,6 +1,8 @@
1
1
  import { TuiDay, TuiDayRange, TUI_FIRST_DAY, HOURS_IN_DAY, TuiTime, tuiReplayedValueChangesFrom } from '@taiga-ui/cdk';
2
2
  import { TuiDayRangePeriod } from '@taiga-ui/kit/classes';
3
+ import { __read } from 'tslib';
3
4
  import { of } from 'rxjs';
5
+ import { map } from 'rxjs/operators';
4
6
 
5
7
  function tuiCreateDefaultDayRangePeriods(periodTitles) {
6
8
  if (periodTitles === void 0) { periodTitles = [
@@ -42,20 +44,35 @@ function tuiCreateTimePeriods(minHour, maxHour, minutes) {
42
44
  return timeArray;
43
45
  }
44
46
 
47
+ /**
48
+ * @return fractional length
49
+ */
50
+ function getPrecision(num) {
51
+ var _a = __read(num.toString().split('.'), 2), _b = _a[1], fractionPart = _b === void 0 ? '' : _b;
52
+ return fractionPart.length;
53
+ }
54
+
45
55
  function isFlat(items) {
46
56
  return !Array.isArray(items[0]);
47
57
  }
48
58
 
49
59
  /**
50
60
  * @internal
61
+ * TODO: rename function in 3.0. The name should be shorter and start with lowercase letter.
51
62
  */
52
- function TuiReplayControlValueChangesFactory(control) {
53
- return control ? tuiReplayedValueChangesFrom(control) : of(null);
63
+ function TuiReplayControlValueChangesFactory(control, valueTransformer) {
64
+ return control
65
+ ? tuiReplayedValueChangesFrom(control).pipe(map(function (value) {
66
+ return valueTransformer
67
+ ? valueTransformer.fromControlValue(value)
68
+ : value;
69
+ }))
70
+ : of(null);
54
71
  }
55
72
 
56
73
  /**
57
74
  * Generated bundle index. Do not edit.
58
75
  */
59
76
 
60
- export { TuiReplayControlValueChangesFactory, isFlat, tuiCreateDefaultDayRangePeriods, tuiCreateTimePeriods };
77
+ export { TuiReplayControlValueChangesFactory, getPrecision, isFlat, tuiCreateDefaultDayRangePeriods, tuiCreateTimePeriods };
61
78
  //# sourceMappingURL=taiga-ui-kit-utils-miscellaneous.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-utils-miscellaneous.js","sources":["ng://@taiga-ui/kit/utils/miscellaneous/create-default-day-range-periods.ts","ng://@taiga-ui/kit/utils/miscellaneous/create-time-periods.ts","ng://@taiga-ui/kit/utils/miscellaneous/is-flat.ts","ng://@taiga-ui/kit/utils/miscellaneous/replay-control-value-changes-factory.ts","ng://@taiga-ui/kit/utils/miscellaneous/taiga-ui-kit-utils-miscellaneous.ts"],"sourcesContent":["import {TUI_FIRST_DAY, TuiDay, TuiDayRange} from '@taiga-ui/cdk';\nimport {TuiDayRangePeriod} from '@taiga-ui/kit/classes';\n\nexport function tuiCreateDefaultDayRangePeriods(\n periodTitles: [string, string, string, string, string, string] = [\n 'For all the time',\n 'Today',\n 'Yesterday',\n 'Current week',\n 'Current month',\n 'Previous month',\n ],\n): ReadonlyArray<TuiDayRangePeriod> {\n const today = TuiDay.currentLocal();\n const yesterday = today.append({day: -1});\n const startOfWeek = today.append({day: -today.dayOfWeek()});\n const endOfWeek = startOfWeek.append({day: 6});\n const startOfMonth = today.append({day: 1 - today.day});\n const endOfMonth = startOfMonth.append({month: 1, day: -1});\n const startOfLastMonth = startOfMonth.append({month: -1});\n\n return [\n new TuiDayRangePeriod(new TuiDayRange(TUI_FIRST_DAY, today), periodTitles[0]),\n new TuiDayRangePeriod(new TuiDayRange(today, today), periodTitles[1]),\n new TuiDayRangePeriod(new TuiDayRange(yesterday, yesterday), periodTitles[2]),\n new TuiDayRangePeriod(new TuiDayRange(startOfWeek, endOfWeek), periodTitles[3]),\n new TuiDayRangePeriod(new TuiDayRange(startOfMonth, endOfMonth), periodTitles[4]),\n new TuiDayRangePeriod(\n new TuiDayRange(startOfLastMonth, startOfMonth.append({day: -1})),\n periodTitles[5],\n ),\n ];\n}\n","import {HOURS_IN_DAY, TuiTime} from '@taiga-ui/cdk';\n\nexport function tuiCreateTimePeriods(\n minHour: number = 0,\n maxHour: number = HOURS_IN_DAY,\n minutes: readonly number[] = [0, 30],\n): ReadonlyArray<TuiTime> {\n const timeArray: Array<TuiTime> = [];\n\n for (let i = minHour; i < maxHour; i++) {\n for (let j = 0; j < minutes.length; j++) {\n const time = new TuiTime(i, minutes[j]);\n\n timeArray.push(time);\n }\n }\n\n return timeArray;\n}\n","export function isFlat<T>(\n items: readonly T[] | ReadonlyArray<readonly T[]>,\n): items is readonly T[] {\n return !Array.isArray(items[0]);\n}\n","import {NgControl} from '@angular/forms';\nimport {TuiDay, TuiDayRange, tuiReplayedValueChangesFrom} from '@taiga-ui/cdk';\nimport {Observable, of} from 'rxjs';\n\n/**\n * @internal\n */\nexport function TuiReplayControlValueChangesFactory(\n control: NgControl | null,\n): Observable<TuiDayRange | TuiDay | null> | null {\n return control ? tuiReplayedValueChangesFrom(control) : of(null);\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;SAGgB,+BAA+B,CAC3C,YAOC;IAPD,6BAAA,EAAA;QACI,kBAAkB;QAClB,OAAO;QACP,WAAW;QACX,cAAc;QACd,eAAe;QACf,gBAAgB;KACnB;IAED,IAAM,KAAK,GAAG,MAAM,CAAC,YAAY,EAAE,CAAC;IACpC,IAAM,SAAS,GAAG,KAAK,CAAC,MAAM,CAAC,EAAC,GAAG,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AAC,CAAC,CAAC,EACjE,YAAY,CAAC,CAAC,CAAC,CAClB;KACJ,CAAC;AACN;;SC9BgB,oBAAoB,CAChC,OAAmB,EACnB,OAA8B,EAC9B,OAAoC;IAFpC,wBAAA,EAAA,WAAmB;IACnB,wBAAA,EAAA,sBAA8B;IAC9B,wBAAA,EAAA,WAA8B,CAAC,EAAE,EAAE,CAAC;IAEpC,IAAM,SAAS,GAAmB,EAAE,CAAC;IAErC,KAAK,IAAI,CAAC,GAAG,OAAO,EAAE,CAAC,GAAG,OAAO,EAAE,CAAC,EAAE,EAAE;QACpC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;YACrC,IAAM,IAAI,GAAG,IAAI,OAAO,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC;YAExC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;SACxB;KACJ;IAED,OAAO,SAAS,CAAC;AACrB;;SClBgB,MAAM,CAClB,KAAiD;IAEjD,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;AACpC;;ACAA;;;SAGgB,mCAAmC,CAC/C,OAAyB;IAEzB,OAAO,OAAO,GAAG,2BAA2B,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,CAAC;AACrE;;ACXA;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-utils-miscellaneous.js","sources":["ng://@taiga-ui/kit/utils/miscellaneous/create-default-day-range-periods.ts","ng://@taiga-ui/kit/utils/miscellaneous/create-time-periods.ts","ng://@taiga-ui/kit/utils/miscellaneous/get-precision.ts","ng://@taiga-ui/kit/utils/miscellaneous/is-flat.ts","ng://@taiga-ui/kit/utils/miscellaneous/replay-control-value-changes-factory.ts","ng://@taiga-ui/kit/utils/miscellaneous/taiga-ui-kit-utils-miscellaneous.ts"],"sourcesContent":["import {TUI_FIRST_DAY, TuiDay, TuiDayRange} from '@taiga-ui/cdk';\nimport {TuiDayRangePeriod} from '@taiga-ui/kit/classes';\n\nexport function tuiCreateDefaultDayRangePeriods(\n periodTitles: [string, string, string, string, string, string] = [\n 'For all the time',\n 'Today',\n 'Yesterday',\n 'Current week',\n 'Current month',\n 'Previous month',\n ],\n): ReadonlyArray<TuiDayRangePeriod> {\n const today = TuiDay.currentLocal();\n const yesterday = today.append({day: -1});\n const startOfWeek = today.append({day: -today.dayOfWeek()});\n const endOfWeek = startOfWeek.append({day: 6});\n const startOfMonth = today.append({day: 1 - today.day});\n const endOfMonth = startOfMonth.append({month: 1, day: -1});\n const startOfLastMonth = startOfMonth.append({month: -1});\n\n return [\n new TuiDayRangePeriod(new TuiDayRange(TUI_FIRST_DAY, today), periodTitles[0]),\n new TuiDayRangePeriod(new TuiDayRange(today, today), periodTitles[1]),\n new TuiDayRangePeriod(new TuiDayRange(yesterday, yesterday), periodTitles[2]),\n new TuiDayRangePeriod(new TuiDayRange(startOfWeek, endOfWeek), periodTitles[3]),\n new TuiDayRangePeriod(new TuiDayRange(startOfMonth, endOfMonth), periodTitles[4]),\n new TuiDayRangePeriod(\n new TuiDayRange(startOfLastMonth, startOfMonth.append({day: -1})),\n periodTitles[5],\n ),\n ];\n}\n","import {HOURS_IN_DAY, TuiTime} from '@taiga-ui/cdk';\n\nexport function tuiCreateTimePeriods(\n minHour: number = 0,\n maxHour: number = HOURS_IN_DAY,\n minutes: readonly number[] = [0, 30],\n): ReadonlyArray<TuiTime> {\n const timeArray: Array<TuiTime> = [];\n\n for (let i = minHour; i < maxHour; i++) {\n for (let j = 0; j < minutes.length; j++) {\n const time = new TuiTime(i, minutes[j]);\n\n timeArray.push(time);\n }\n }\n\n return timeArray;\n}\n","/**\n * @return fractional length\n */\nexport function getPrecision(num: number): number {\n const [, fractionPart = ''] = num.toString().split('.');\n\n return fractionPart.length;\n}\n","export function isFlat<T>(\n items: readonly T[] | ReadonlyArray<readonly T[]>,\n): items is readonly T[] {\n return !Array.isArray(items[0]);\n}\n","import {NgControl} from '@angular/forms';\nimport {\n TuiControlValueTransformer,\n TuiDay,\n TuiDayRange,\n tuiReplayedValueChangesFrom,\n TuiTime,\n} from '@taiga-ui/cdk';\nimport {Observable, of} from 'rxjs';\nimport {map} from 'rxjs/operators';\n\n/**\n * @internal\n * TODO: rename function in 3.0. The name should be shorter and start with lowercase letter.\n */\nexport function TuiReplayControlValueChangesFactory<\n T extends TuiDayRange | TuiDay | [TuiDay | null, TuiTime | null],\n>(\n control: NgControl | null,\n valueTransformer?: TuiControlValueTransformer<T> | null,\n): Observable<T | null> | null {\n return control\n ? tuiReplayedValueChangesFrom(control).pipe(\n map(value =>\n valueTransformer\n ? valueTransformer.fromControlValue(value)\n : (value as T),\n ),\n )\n : of(null);\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;SAGgB,+BAA+B,CAC3C,YAOC;IAPD,6BAAA,EAAA;QACI,kBAAkB;QAClB,OAAO;QACP,WAAW;QACX,cAAc;QACd,eAAe;QACf,gBAAgB;KACnB;IAED,IAAM,KAAK,GAAG,MAAM,CAAC,YAAY,EAAE,CAAC;IACpC,IAAM,SAAS,GAAG,KAAK,CAAC,MAAM,CAAC,EAAC,GAAG,EAAE,CAAC,CAAC,EAAC,CAAC,CAAC;IAC1C,IAAM,WAAW,GAAG,KAAK,CAAC,MAAM,CAAC,EAAC,GAAG,EAAE,CAAC,KAAK,CAAC,SAAS,EAAE,EAAC,CAAC,CAAC;IAC5D,IAAM,SAAS,GAAG,WAAW,CAAC,MAAM,CAAC,EAAC,GAAG,EAAE,CAAC,EAAC,CAAC,CAAC;IAC/C,IAAM,YAAY,GAAG,KAAK,CAAC,MAAM,CAAC,EAAC,GAAG,EAAE,CAAC,GAAG,KAAK,CAAC,GAAG,EAAC,CAAC,CAAC;IACxD,IAAM,UAAU,GAAG,YAAY,CAAC,MAAM,CAAC,EAAC,KAAK,EA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AC,MAAM,EAAE,CAAC,EAAE,EAAE;YACrC,IAAM,IAAI,GAAG,IAAI,OAAO,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC;YAExC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;SACxB;KACJ;IAED,OAAO,SAAS,CAAC;AACrB;;AClBA;;;SAGgB,YAAY,CAAC,GAAW;IAC9B,IAAA,yCAAiD,EAA9C,UAAiB,EAAjB,sCAA8C,CAAC;IAExD,OAAO,YAAY,CAAC,MAAM,CAAC;AAC/B;;SCPgB,MAAM,CAClB,KAAiD;IAEjD,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;AACpC;;ACOA;;;;SAIgB,mCAAmC,CAG/C,OAAyB,EACzB,gBAAuD;IAEvD,OAAO,OAAO;UACR,2BAA2B,CAAC,OAAO,CAAC,CAAC,IAAI,CACrC,GAAG,CAAC,UAAA,KAAK;YACL,OAAA,gBAAgB;kBACV,gBAAgB,CAAC,gBAAgB,CAAC,KAAK,CAAC;kBACvC,KAAW;SAAA,CACrB,CACJ;UACD,EAAE,CAAC,IAAI,CAAC,CAAC;AACnB;;AC9BA;;;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taiga-ui/kit",
3
- "version": "2.30.0",
3
+ "version": "2.31.0",
4
4
  "description": "Taiga UI Angular main components kit",
5
5
  "keywords": [
6
6
  "angular",
@@ -20,9 +20,9 @@
20
20
  "@ng-web-apis/common": "1.12.1",
21
21
  "@ng-web-apis/mutation-observer": "1.1.0",
22
22
  "@tinkoff/ng-polymorpheus": "3.1.12",
23
- "@taiga-ui/cdk": "2.30.0",
24
- "@taiga-ui/core": "2.30.0",
25
- "@taiga-ui/i18n": "2.30.0",
23
+ "@taiga-ui/cdk": "2.31.0",
24
+ "@taiga-ui/core": "2.31.0",
25
+ "@taiga-ui/i18n": "2.31.0",
26
26
  "rxjs": ">=6.0.0"
27
27
  },
28
28
  "dependencies": {
@@ -0,0 +1,5 @@
1
+ import { InjectionToken } from '@angular/core';
2
+ import { TuiControlValueTransformer, TuiDay, TuiDayRange, TuiTime } from '@taiga-ui/cdk';
3
+ export declare const TUI_DATE_VALUE_TRANSFORMER: InjectionToken<TuiControlValueTransformer<TuiDay | null, unknown>>;
4
+ export declare const TUI_DATE_RANGE_VALUE_TRANSFORMER: InjectionToken<TuiControlValueTransformer<TuiDayRange | null, unknown>>;
5
+ export declare const TUI_DATE_TIME_VALUE_TRANSFORMER: InjectionToken<TuiControlValueTransformer<[TuiDay | null, TuiTime | null], unknown>>;
package/tokens/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export * from './calendar-data-stream';
2
+ export * from './date-inputs-value-transformers';
2
3
  export * from './i18n';
3
4
  export * from './mobile-aware';
4
5
  export * from './mobile-calendar';
@@ -1 +1 @@
1
- {"__symbolic":"module","version":4,"metadata":{"TUI_CALENDAR_DATA_STREAM":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":4,"character":44},"arguments":["Stream that emits calendar data change"]},"TUI_CANCEL_WORD":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":5,"character":35},"arguments":["i18n 'cancel' word",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":6,"character":13},"arguments":["cancel"]}}]},"TUI_DONE_WORD":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":9,"character":33},"arguments":["i18n 'done' word",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":10,"character":13},"arguments":["done"]}}]},"TUI_MORE_WORD":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":13,"character":33},"arguments":["i18n 'more' word",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":14,"character":13},"arguments":["more"]}}]},"TUI_OTHER_DATE_TEXT":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":17,"character":39},"arguments":["i18n 'Other date' text",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":18,"character":13},"arguments":["otherDate"]}}]},"TUI_CHOOSE_DAY_OR_RANGE_TEXTS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":21,"character":49},"arguments":["choose day or range i18n texts",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":24,"character":17},"arguments":["mobileCalendarTexts"]}}]},"TUI_FROM_TO_TEXTS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":28,"character":37},"arguments":["from and to i18n texts",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":29,"character":13},"arguments":["range"]}}]},"TUI_PLUS_MINUS_TEXTS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":32,"character":40},"arguments":["plus and minus i18n texts",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":33,"character":13},"arguments":["countTexts"]}}]},"TUI_TIME_TEXTS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":36,"character":34},"arguments":["time i18n texts",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":37,"character":13},"arguments":["time"]}}]},"TUI_DATE_TEXTS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":40,"character":34},"arguments":["date format i18n texts",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":43,"character":17},"arguments":["dateTexts"]}}]},"TUI_DIGITAL_INFORMATION_UNITS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":47,"character":49},"arguments":["short bytes, kilobytes and megabytes i18n texts",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":50,"character":17},"arguments":["digitalInformationUnits"]}}]},"TUI_COPY_TEXTS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":54,"character":34},"arguments":["copy i18n texts",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":55,"character":13},"arguments":["copyTexts"]}}]},"TUI_PASSWORD_TEXTS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":58,"character":38},"arguments":["password i18n texts",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":59,"character":13},"arguments":["passwordTexts"]}}]},"TUI_CALENDAR_MONTHS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":62,"character":39},"arguments":["short calendar months i18n",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":63,"character":13},"arguments":["shortCalendarMonths"]}}]},"TUI_FILE_TEXTS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":66,"character":34},"arguments":["file i18n texts",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":67,"character":13},"arguments":["fileTexts"]}}]},"TUI_PAGINATION_TEXTS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":70,"character":40},"arguments":["pagination i18n texts",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":71,"character":13},"arguments":["paginationTexts"]}}]},"TUI_INPUT_FILE_TEXTS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":74,"character":40},"arguments":["tui-input-file i18n texts",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":75,"character":13},"arguments":["inputFileTexts"]}}]},"TUI_COUNTRIES":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":80,"character":8},"arguments":["Localized countries names",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":81,"character":13},"arguments":["countries"]}}]},"TUI_MOBILE_AWARE":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":2,"character":36},"arguments":["A flag enabling mobile-specific behavior for supporting components",{"__symbolic":"error","message":"Lambda not supported","line":5,"character":17,"module":"./mobile-aware"}]},"TUI_MOBILE_CALENDAR":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":2,"character":39},"arguments":["A component for mobile data picker"]},"TUI_TAG_STATUS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":3,"character":34},"arguments":["Status for tags inside InputTag component",{"__symbolic":"error","message":"Lambda not supported","line":6,"character":17,"module":"./tag-status"}]},"TUI_VALIDATION_ERRORS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":4,"character":41},"arguments":["Validation errors",{"__symbolic":"error","message":"Lambda not supported","line":7,"character":13,"module":"./validation-errors"}]}},"origins":{"TUI_CALENDAR_DATA_STREAM":"./calendar-data-stream","TUI_CANCEL_WORD":"./i18n","TUI_DONE_WORD":"./i18n","TUI_MORE_WORD":"./i18n","TUI_OTHER_DATE_TEXT":"./i18n","TUI_CHOOSE_DAY_OR_RANGE_TEXTS":"./i18n","TUI_FROM_TO_TEXTS":"./i18n","TUI_PLUS_MINUS_TEXTS":"./i18n","TUI_TIME_TEXTS":"./i18n","TUI_DATE_TEXTS":"./i18n","TUI_DIGITAL_INFORMATION_UNITS":"./i18n","TUI_COPY_TEXTS":"./i18n","TUI_PASSWORD_TEXTS":"./i18n","TUI_CALENDAR_MONTHS":"./i18n","TUI_FILE_TEXTS":"./i18n","TUI_PAGINATION_TEXTS":"./i18n","TUI_INPUT_FILE_TEXTS":"./i18n","TUI_COUNTRIES":"./i18n","TUI_MOBILE_AWARE":"./mobile-aware","TUI_MOBILE_CALENDAR":"./mobile-calendar","TUI_TAG_STATUS":"./tag-status","TUI_VALIDATION_ERRORS":"./validation-errors"},"importAs":"@taiga-ui/kit/tokens"}
1
+ {"__symbolic":"module","version":4,"metadata":{"TUI_CALENDAR_DATA_STREAM":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":4,"character":44},"arguments":["Stream that emits calendar data change"]},"TUI_DATE_VALUE_TRANSFORMER":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":3,"character":46},"arguments":["Control value transformer of TuiDay to custom value format for InputDate* components"]},"TUI_DATE_RANGE_VALUE_TRANSFORMER":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":7,"character":52},"arguments":["Control value transformer for InputDateRange component"]},"TUI_DATE_TIME_VALUE_TRANSFORMER":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":11,"character":51},"arguments":["Control value transformer for InputDateTime component"]},"TUI_CANCEL_WORD":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":5,"character":35},"arguments":["i18n 'cancel' word",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":6,"character":13},"arguments":["cancel"]}}]},"TUI_DONE_WORD":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":9,"character":33},"arguments":["i18n 'done' word",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":10,"character":13},"arguments":["done"]}}]},"TUI_MORE_WORD":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":13,"character":33},"arguments":["i18n 'more' word",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":14,"character":13},"arguments":["more"]}}]},"TUI_OTHER_DATE_TEXT":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":17,"character":39},"arguments":["i18n 'Other date' text",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":18,"character":13},"arguments":["otherDate"]}}]},"TUI_CHOOSE_DAY_OR_RANGE_TEXTS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":21,"character":49},"arguments":["choose day or range i18n texts",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":24,"character":17},"arguments":["mobileCalendarTexts"]}}]},"TUI_FROM_TO_TEXTS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":28,"character":37},"arguments":["from and to i18n texts",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":29,"character":13},"arguments":["range"]}}]},"TUI_PLUS_MINUS_TEXTS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":32,"character":40},"arguments":["plus and minus i18n texts",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":33,"character":13},"arguments":["countTexts"]}}]},"TUI_TIME_TEXTS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":36,"character":34},"arguments":["time i18n texts",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":37,"character":13},"arguments":["time"]}}]},"TUI_DATE_TEXTS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":40,"character":34},"arguments":["date format i18n texts",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":43,"character":17},"arguments":["dateTexts"]}}]},"TUI_DIGITAL_INFORMATION_UNITS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":47,"character":49},"arguments":["short bytes, kilobytes and megabytes i18n texts",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":50,"character":17},"arguments":["digitalInformationUnits"]}}]},"TUI_COPY_TEXTS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":54,"character":34},"arguments":["copy i18n texts",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":55,"character":13},"arguments":["copyTexts"]}}]},"TUI_PASSWORD_TEXTS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":58,"character":38},"arguments":["password i18n texts",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":59,"character":13},"arguments":["passwordTexts"]}}]},"TUI_CALENDAR_MONTHS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":62,"character":39},"arguments":["short calendar months i18n",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":63,"character":13},"arguments":["shortCalendarMonths"]}}]},"TUI_FILE_TEXTS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":66,"character":34},"arguments":["file i18n texts",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":67,"character":13},"arguments":["fileTexts"]}}]},"TUI_PAGINATION_TEXTS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":70,"character":40},"arguments":["pagination i18n texts",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":71,"character":13},"arguments":["paginationTexts"]}}]},"TUI_INPUT_FILE_TEXTS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":74,"character":40},"arguments":["tui-input-file i18n texts",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":75,"character":13},"arguments":["inputFileTexts"]}}]},"TUI_COUNTRIES":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":80,"character":8},"arguments":["Localized countries names",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":81,"character":13},"arguments":["countries"]}}]},"TUI_MOBILE_AWARE":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":2,"character":36},"arguments":["A flag enabling mobile-specific behavior for supporting components",{"__symbolic":"error","message":"Lambda not supported","line":5,"character":17,"module":"./mobile-aware"}]},"TUI_MOBILE_CALENDAR":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":2,"character":39},"arguments":["A component for mobile data picker"]},"TUI_TAG_STATUS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":3,"character":34},"arguments":["Status for tags inside InputTag component",{"__symbolic":"error","message":"Lambda not supported","line":6,"character":17,"module":"./tag-status"}]},"TUI_VALIDATION_ERRORS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":4,"character":41},"arguments":["Validation errors",{"__symbolic":"error","message":"Lambda not supported","line":7,"character":13,"module":"./validation-errors"}]}},"origins":{"TUI_CALENDAR_DATA_STREAM":"./calendar-data-stream","TUI_DATE_VALUE_TRANSFORMER":"./date-inputs-value-transformers","TUI_DATE_RANGE_VALUE_TRANSFORMER":"./date-inputs-value-transformers","TUI_DATE_TIME_VALUE_TRANSFORMER":"./date-inputs-value-transformers","TUI_CANCEL_WORD":"./i18n","TUI_DONE_WORD":"./i18n","TUI_MORE_WORD":"./i18n","TUI_OTHER_DATE_TEXT":"./i18n","TUI_CHOOSE_DAY_OR_RANGE_TEXTS":"./i18n","TUI_FROM_TO_TEXTS":"./i18n","TUI_PLUS_MINUS_TEXTS":"./i18n","TUI_TIME_TEXTS":"./i18n","TUI_DATE_TEXTS":"./i18n","TUI_DIGITAL_INFORMATION_UNITS":"./i18n","TUI_COPY_TEXTS":"./i18n","TUI_PASSWORD_TEXTS":"./i18n","TUI_CALENDAR_MONTHS":"./i18n","TUI_FILE_TEXTS":"./i18n","TUI_PAGINATION_TEXTS":"./i18n","TUI_INPUT_FILE_TEXTS":"./i18n","TUI_COUNTRIES":"./i18n","TUI_MOBILE_AWARE":"./mobile-aware","TUI_MOBILE_CALENDAR":"./mobile-calendar","TUI_TAG_STATUS":"./tag-status","TUI_VALIDATION_ERRORS":"./validation-errors"},"importAs":"@taiga-ui/kit/tokens"}
@@ -0,0 +1,4 @@
1
+ /**
2
+ * @return fractional length
3
+ */
4
+ export declare function getPrecision(num: number): number;
@@ -1,4 +1,5 @@
1
1
  export * from './create-default-day-range-periods';
2
2
  export * from './create-time-periods';
3
+ export * from './get-precision';
3
4
  export * from './is-flat';
4
5
  export * from './replay-control-value-changes-factory';
@@ -1,7 +1,8 @@
1
1
  import { NgControl } from '@angular/forms';
2
- import { TuiDay, TuiDayRange } from '@taiga-ui/cdk';
2
+ import { TuiControlValueTransformer, TuiDay, TuiDayRange, TuiTime } from '@taiga-ui/cdk';
3
3
  import { Observable } from 'rxjs';
4
4
  /**
5
5
  * @internal
6
+ * TODO: rename function in 3.0. The name should be shorter and start with lowercase letter.
6
7
  */
7
- export declare function TuiReplayControlValueChangesFactory(control: NgControl | null): Observable<TuiDayRange | TuiDay | null> | null;
8
+ export declare function TuiReplayControlValueChangesFactory<T extends TuiDayRange | TuiDay | [TuiDay | null, TuiTime | null]>(control: NgControl | null, valueTransformer?: TuiControlValueTransformer<T> | null): Observable<T | null> | null;
@@ -1 +1 @@
1
- {"__symbolic":"module","version":4,"metadata":{"tuiCreateDefaultDayRangePeriods":{"__symbolic":"function"},"tuiCreateTimePeriods":{"__symbolic":"function"},"isFlat":{"__symbolic":"function","parameters":["items"],"value":{"__symbolic":"pre","operator":"!","operand":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"Array"},"member":"isArray"},"arguments":[{"__symbolic":"index","expression":{"__symbolic":"reference","name":"items"},"index":0}]}}},"TuiReplayControlValueChangesFactory":{"__symbolic":"function","parameters":["control"],"value":{"__symbolic":"if","condition":{"__symbolic":"reference","name":"control"},"thenExpression":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"tuiReplayedValueChangesFrom","line":10,"character":21},"arguments":[{"__symbolic":"reference","name":"control"}]},"elseExpression":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"rxjs","name":"of","line":10,"character":60},"arguments":[null]}}}},"origins":{"tuiCreateDefaultDayRangePeriods":"./create-default-day-range-periods","tuiCreateTimePeriods":"./create-time-periods","isFlat":"./is-flat","TuiReplayControlValueChangesFactory":"./replay-control-value-changes-factory"},"importAs":"@taiga-ui/kit/utils/miscellaneous"}
1
+ {"__symbolic":"module","version":4,"metadata":{"tuiCreateDefaultDayRangePeriods":{"__symbolic":"function"},"tuiCreateTimePeriods":{"__symbolic":"function"},"getPrecision":{"__symbolic":"function"},"isFlat":{"__symbolic":"function","parameters":["items"],"value":{"__symbolic":"pre","operator":"!","operand":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"Array"},"member":"isArray"},"arguments":[{"__symbolic":"index","expression":{"__symbolic":"reference","name":"items"},"index":0}]}}},"TuiReplayControlValueChangesFactory":{"__symbolic":"function","parameters":["control","valueTransformer"],"value":{"__symbolic":"if","condition":{"__symbolic":"reference","name":"control"},"thenExpression":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"tuiReplayedValueChangesFrom","line":22,"character":10},"arguments":[{"__symbolic":"reference","name":"control"}]},"member":"pipe"},"arguments":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"rxjs/operators","name":"map","line":23,"character":14},"arguments":[{"__symbolic":"error","message":"Lambda not supported","line":23,"character":18,"module":"./replay-control-value-changes-factory"}]}]},"elseExpression":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"rxjs","name":"of","line":29,"character":10},"arguments":[null]}}}},"origins":{"tuiCreateDefaultDayRangePeriods":"./create-default-day-range-periods","tuiCreateTimePeriods":"./create-time-periods","getPrecision":"./get-precision","isFlat":"./is-flat","TuiReplayControlValueChangesFactory":"./replay-control-value-changes-factory"},"importAs":"@taiga-ui/kit/utils/miscellaneous"}