@taiga-ui/kit 2.30.0 → 2.34.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 (910) hide show
  1. package/abstract/taiga-ui-kit-abstract.metadata.json +1 -1
  2. package/bundles/taiga-ui-kit-abstract.umd.js +7 -6
  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-accordion.umd.js +3 -3
  7. package/bundles/taiga-ui-kit-components-accordion.umd.js.map +1 -1
  8. package/bundles/taiga-ui-kit-components-accordion.umd.min.js +1 -1
  9. package/bundles/taiga-ui-kit-components-accordion.umd.min.js.map +1 -1
  10. package/bundles/taiga-ui-kit-components-arrow.umd.js +44 -8
  11. package/bundles/taiga-ui-kit-components-arrow.umd.js.map +1 -1
  12. package/bundles/taiga-ui-kit-components-arrow.umd.min.js +2 -2
  13. package/bundles/taiga-ui-kit-components-arrow.umd.min.js.map +1 -1
  14. package/bundles/taiga-ui-kit-components-avatar.umd.js +2 -2
  15. package/bundles/taiga-ui-kit-components-avatar.umd.js.map +1 -1
  16. package/bundles/taiga-ui-kit-components-avatar.umd.min.js +2 -2
  17. package/bundles/taiga-ui-kit-components-avatar.umd.min.js.map +1 -1
  18. package/bundles/taiga-ui-kit-components-badge.umd.js +2 -2
  19. package/bundles/taiga-ui-kit-components-badge.umd.js.map +1 -1
  20. package/bundles/taiga-ui-kit-components-badge.umd.min.js +1 -1
  21. package/bundles/taiga-ui-kit-components-badge.umd.min.js.map +1 -1
  22. package/bundles/taiga-ui-kit-components-badged-content.umd.js +2 -2
  23. package/bundles/taiga-ui-kit-components-badged-content.umd.js.map +1 -1
  24. package/bundles/taiga-ui-kit-components-badged-content.umd.min.js +2 -2
  25. package/bundles/taiga-ui-kit-components-badged-content.umd.min.js.map +1 -1
  26. package/bundles/taiga-ui-kit-components-breadcrumbs.umd.js +2 -2
  27. package/bundles/taiga-ui-kit-components-breadcrumbs.umd.js.map +1 -1
  28. package/bundles/taiga-ui-kit-components-breadcrumbs.umd.min.js +1 -1
  29. package/bundles/taiga-ui-kit-components-breadcrumbs.umd.min.js.map +1 -1
  30. package/bundles/taiga-ui-kit-components-calendar-month.umd.js +4 -1
  31. package/bundles/taiga-ui-kit-components-calendar-month.umd.js.map +1 -1
  32. package/bundles/taiga-ui-kit-components-calendar-month.umd.min.js +2 -2
  33. package/bundles/taiga-ui-kit-components-calendar-month.umd.min.js.map +1 -1
  34. package/bundles/taiga-ui-kit-components-carousel.umd.js +5 -4
  35. package/bundles/taiga-ui-kit-components-carousel.umd.js.map +1 -1
  36. package/bundles/taiga-ui-kit-components-carousel.umd.min.js +1 -1
  37. package/bundles/taiga-ui-kit-components-carousel.umd.min.js.map +1 -1
  38. package/bundles/taiga-ui-kit-components-checkbox-block.umd.js +2 -2
  39. package/bundles/taiga-ui-kit-components-checkbox-block.umd.js.map +1 -1
  40. package/bundles/taiga-ui-kit-components-checkbox-block.umd.min.js +2 -2
  41. package/bundles/taiga-ui-kit-components-checkbox-block.umd.min.js.map +1 -1
  42. package/bundles/taiga-ui-kit-components-checkbox-labeled.umd.js +2 -2
  43. package/bundles/taiga-ui-kit-components-checkbox-labeled.umd.js.map +1 -1
  44. package/bundles/taiga-ui-kit-components-checkbox-labeled.umd.min.js +1 -1
  45. package/bundles/taiga-ui-kit-components-checkbox-labeled.umd.min.js.map +1 -1
  46. package/bundles/taiga-ui-kit-components-checkbox.umd.js +3 -3
  47. package/bundles/taiga-ui-kit-components-checkbox.umd.js.map +1 -1
  48. package/bundles/taiga-ui-kit-components-checkbox.umd.min.js +1 -1
  49. package/bundles/taiga-ui-kit-components-checkbox.umd.min.js.map +1 -1
  50. package/bundles/taiga-ui-kit-components-combo-box.umd.js +129 -56
  51. package/bundles/taiga-ui-kit-components-combo-box.umd.js.map +1 -1
  52. package/bundles/taiga-ui-kit-components-combo-box.umd.min.js +2 -2
  53. package/bundles/taiga-ui-kit-components-combo-box.umd.min.js.map +1 -1
  54. package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.js +17 -11
  55. package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.js.map +1 -1
  56. package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.min.js +2 -2
  57. package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.min.js.map +1 -1
  58. package/bundles/taiga-ui-kit-components-field-error.umd.js +10 -15
  59. package/bundles/taiga-ui-kit-components-field-error.umd.js.map +1 -1
  60. package/bundles/taiga-ui-kit-components-field-error.umd.min.js +1 -1
  61. package/bundles/taiga-ui-kit-components-field-error.umd.min.js.map +1 -1
  62. package/bundles/taiga-ui-kit-components-filter.umd.js +2 -2
  63. package/bundles/taiga-ui-kit-components-filter.umd.js.map +1 -1
  64. package/bundles/taiga-ui-kit-components-filter.umd.min.js +1 -1
  65. package/bundles/taiga-ui-kit-components-filter.umd.min.js.map +1 -1
  66. package/bundles/taiga-ui-kit-components-input-copy.umd.js +47 -17
  67. package/bundles/taiga-ui-kit-components-input-copy.umd.js.map +1 -1
  68. package/bundles/taiga-ui-kit-components-input-copy.umd.min.js +2 -2
  69. package/bundles/taiga-ui-kit-components-input-copy.umd.min.js.map +1 -1
  70. package/bundles/taiga-ui-kit-components-input-count.umd.js +45 -11
  71. package/bundles/taiga-ui-kit-components-input-count.umd.js.map +1 -1
  72. package/bundles/taiga-ui-kit-components-input-count.umd.min.js +1 -1
  73. package/bundles/taiga-ui-kit-components-input-count.umd.min.js.map +1 -1
  74. package/bundles/taiga-ui-kit-components-input-date-range.umd.js +80 -28
  75. package/bundles/taiga-ui-kit-components-input-date-range.umd.js.map +1 -1
  76. package/bundles/taiga-ui-kit-components-input-date-range.umd.min.js +2 -2
  77. package/bundles/taiga-ui-kit-components-input-date-range.umd.min.js.map +1 -1
  78. package/bundles/taiga-ui-kit-components-input-date-time.umd.js +80 -36
  79. package/bundles/taiga-ui-kit-components-input-date-time.umd.js.map +1 -1
  80. package/bundles/taiga-ui-kit-components-input-date-time.umd.min.js +2 -2
  81. package/bundles/taiga-ui-kit-components-input-date-time.umd.min.js.map +1 -1
  82. package/bundles/taiga-ui-kit-components-input-date.umd.js +76 -28
  83. package/bundles/taiga-ui-kit-components-input-date.umd.js.map +1 -1
  84. package/bundles/taiga-ui-kit-components-input-date.umd.min.js +2 -2
  85. package/bundles/taiga-ui-kit-components-input-date.umd.min.js.map +1 -1
  86. package/bundles/taiga-ui-kit-components-input-file.umd.js +1 -8
  87. package/bundles/taiga-ui-kit-components-input-file.umd.js.map +1 -1
  88. package/bundles/taiga-ui-kit-components-input-file.umd.min.js +1 -1
  89. package/bundles/taiga-ui-kit-components-input-file.umd.min.js.map +1 -1
  90. package/bundles/taiga-ui-kit-components-input-inline.umd.js +2 -15
  91. package/bundles/taiga-ui-kit-components-input-inline.umd.js.map +1 -1
  92. package/bundles/taiga-ui-kit-components-input-inline.umd.min.js +1 -1
  93. package/bundles/taiga-ui-kit-components-input-inline.umd.min.js.map +1 -1
  94. package/bundles/taiga-ui-kit-components-input-month-range.umd.js +52 -10
  95. package/bundles/taiga-ui-kit-components-input-month-range.umd.js.map +1 -1
  96. package/bundles/taiga-ui-kit-components-input-month-range.umd.min.js +1 -1
  97. package/bundles/taiga-ui-kit-components-input-month-range.umd.min.js.map +1 -1
  98. package/bundles/taiga-ui-kit-components-input-month.umd.js +48 -10
  99. package/bundles/taiga-ui-kit-components-input-month.umd.js.map +1 -1
  100. package/bundles/taiga-ui-kit-components-input-month.umd.min.js +1 -1
  101. package/bundles/taiga-ui-kit-components-input-month.umd.min.js.map +1 -1
  102. package/bundles/taiga-ui-kit-components-input-number.umd.js +52 -10
  103. package/bundles/taiga-ui-kit-components-input-number.umd.js.map +1 -1
  104. package/bundles/taiga-ui-kit-components-input-number.umd.min.js +2 -2
  105. package/bundles/taiga-ui-kit-components-input-number.umd.min.js.map +1 -1
  106. package/bundles/taiga-ui-kit-components-input-password.umd.js +50 -11
  107. package/bundles/taiga-ui-kit-components-input-password.umd.js.map +1 -1
  108. package/bundles/taiga-ui-kit-components-input-password.umd.min.js +1 -1
  109. package/bundles/taiga-ui-kit-components-input-password.umd.min.js.map +1 -1
  110. package/bundles/taiga-ui-kit-components-input-phone-international.umd.js +51 -23
  111. package/bundles/taiga-ui-kit-components-input-phone-international.umd.js.map +1 -1
  112. package/bundles/taiga-ui-kit-components-input-phone-international.umd.min.js +1 -1
  113. package/bundles/taiga-ui-kit-components-input-phone-international.umd.min.js.map +1 -1
  114. package/bundles/taiga-ui-kit-components-input-phone.umd.js +59 -23
  115. package/bundles/taiga-ui-kit-components-input-phone.umd.js.map +1 -1
  116. package/bundles/taiga-ui-kit-components-input-phone.umd.min.js +1 -1
  117. package/bundles/taiga-ui-kit-components-input-phone.umd.min.js.map +1 -1
  118. package/bundles/taiga-ui-kit-components-input-range.umd.js +8 -5
  119. package/bundles/taiga-ui-kit-components-input-range.umd.js.map +1 -1
  120. package/bundles/taiga-ui-kit-components-input-range.umd.min.js +2 -2
  121. package/bundles/taiga-ui-kit-components-input-range.umd.min.js.map +1 -1
  122. package/bundles/taiga-ui-kit-components-input-slider.umd.js +8 -5
  123. package/bundles/taiga-ui-kit-components-input-slider.umd.js.map +1 -1
  124. package/bundles/taiga-ui-kit-components-input-slider.umd.min.js +2 -2
  125. package/bundles/taiga-ui-kit-components-input-slider.umd.min.js.map +1 -1
  126. package/bundles/taiga-ui-kit-components-input-tag.umd.js +44 -15
  127. package/bundles/taiga-ui-kit-components-input-tag.umd.js.map +1 -1
  128. package/bundles/taiga-ui-kit-components-input-tag.umd.min.js +2 -2
  129. package/bundles/taiga-ui-kit-components-input-tag.umd.min.js.map +1 -1
  130. package/bundles/taiga-ui-kit-components-input-time.umd.js +19 -14
  131. package/bundles/taiga-ui-kit-components-input-time.umd.js.map +1 -1
  132. package/bundles/taiga-ui-kit-components-input-time.umd.min.js +2 -2
  133. package/bundles/taiga-ui-kit-components-input-time.umd.min.js.map +1 -1
  134. package/bundles/taiga-ui-kit-components-input.umd.js +33 -4
  135. package/bundles/taiga-ui-kit-components-input.umd.js.map +1 -1
  136. package/bundles/taiga-ui-kit-components-input.umd.min.js +1 -1
  137. package/bundles/taiga-ui-kit-components-input.umd.min.js.map +1 -1
  138. package/bundles/taiga-ui-kit-components-marker-icon.umd.js +2 -2
  139. package/bundles/taiga-ui-kit-components-marker-icon.umd.js.map +1 -1
  140. package/bundles/taiga-ui-kit-components-marker-icon.umd.min.js +1 -1
  141. package/bundles/taiga-ui-kit-components-marker-icon.umd.min.js.map +1 -1
  142. package/bundles/taiga-ui-kit-components-multi-select.umd.js +50 -23
  143. package/bundles/taiga-ui-kit-components-multi-select.umd.js.map +1 -1
  144. package/bundles/taiga-ui-kit-components-multi-select.umd.min.js +2 -2
  145. package/bundles/taiga-ui-kit-components-multi-select.umd.min.js.map +1 -1
  146. package/bundles/taiga-ui-kit-components-radio-block.umd.js +2 -2
  147. package/bundles/taiga-ui-kit-components-radio-block.umd.js.map +1 -1
  148. package/bundles/taiga-ui-kit-components-radio-block.umd.min.js +1 -1
  149. package/bundles/taiga-ui-kit-components-radio-block.umd.min.js.map +1 -1
  150. package/bundles/taiga-ui-kit-components-radio-labeled.umd.js +2 -2
  151. package/bundles/taiga-ui-kit-components-radio-labeled.umd.js.map +1 -1
  152. package/bundles/taiga-ui-kit-components-radio-labeled.umd.min.js +1 -1
  153. package/bundles/taiga-ui-kit-components-radio-labeled.umd.min.js.map +1 -1
  154. package/bundles/taiga-ui-kit-components-radio-list.umd.js +2 -2
  155. package/bundles/taiga-ui-kit-components-radio-list.umd.js.map +1 -1
  156. package/bundles/taiga-ui-kit-components-radio-list.umd.min.js +1 -1
  157. package/bundles/taiga-ui-kit-components-radio-list.umd.min.js.map +1 -1
  158. package/bundles/taiga-ui-kit-components-radio.umd.js +7 -2
  159. package/bundles/taiga-ui-kit-components-radio.umd.js.map +1 -1
  160. package/bundles/taiga-ui-kit-components-radio.umd.min.js +1 -1
  161. package/bundles/taiga-ui-kit-components-radio.umd.min.js.map +1 -1
  162. package/bundles/taiga-ui-kit-components-range.umd.js +1 -1
  163. package/bundles/taiga-ui-kit-components-range.umd.min.js +1 -1
  164. package/bundles/taiga-ui-kit-components-range.umd.min.js.map +1 -1
  165. package/bundles/taiga-ui-kit-components-rating.umd.js +373 -0
  166. package/bundles/taiga-ui-kit-components-rating.umd.js.map +1 -0
  167. package/bundles/taiga-ui-kit-components-rating.umd.min.js +16 -0
  168. package/bundles/taiga-ui-kit-components-rating.umd.min.js.map +1 -0
  169. package/bundles/taiga-ui-kit-components-select.umd.js +107 -43
  170. package/bundles/taiga-ui-kit-components-select.umd.js.map +1 -1
  171. package/bundles/taiga-ui-kit-components-select.umd.min.js +2 -2
  172. package/bundles/taiga-ui-kit-components-select.umd.min.js.map +1 -1
  173. package/bundles/taiga-ui-kit-components-slider.umd.js +142 -27
  174. package/bundles/taiga-ui-kit-components-slider.umd.js.map +1 -1
  175. package/bundles/taiga-ui-kit-components-slider.umd.min.js +2 -2
  176. package/bundles/taiga-ui-kit-components-slider.umd.min.js.map +1 -1
  177. package/bundles/taiga-ui-kit-components-stepper.umd.js +1 -1
  178. package/bundles/taiga-ui-kit-components-stepper.umd.js.map +1 -1
  179. package/bundles/taiga-ui-kit-components-stepper.umd.min.js +1 -1
  180. package/bundles/taiga-ui-kit-components-stepper.umd.min.js.map +1 -1
  181. package/bundles/taiga-ui-kit-components-tabs.umd.js +1 -1
  182. package/bundles/taiga-ui-kit-components-tabs.umd.js.map +1 -1
  183. package/bundles/taiga-ui-kit-components-tabs.umd.min.js +1 -1
  184. package/bundles/taiga-ui-kit-components-tabs.umd.min.js.map +1 -1
  185. package/bundles/taiga-ui-kit-components-tag.umd.js +11 -5
  186. package/bundles/taiga-ui-kit-components-tag.umd.js.map +1 -1
  187. package/bundles/taiga-ui-kit-components-tag.umd.min.js +1 -1
  188. package/bundles/taiga-ui-kit-components-tag.umd.min.js.map +1 -1
  189. package/bundles/taiga-ui-kit-components-text-area.umd.js +8 -6
  190. package/bundles/taiga-ui-kit-components-text-area.umd.js.map +1 -1
  191. package/bundles/taiga-ui-kit-components-text-area.umd.min.js +1 -1
  192. package/bundles/taiga-ui-kit-components-text-area.umd.min.js.map +1 -1
  193. package/bundles/taiga-ui-kit-components-toggle.umd.js +7 -2
  194. package/bundles/taiga-ui-kit-components-toggle.umd.js.map +1 -1
  195. package/bundles/taiga-ui-kit-components-toggle.umd.min.js +1 -1
  196. package/bundles/taiga-ui-kit-components-toggle.umd.min.js.map +1 -1
  197. package/bundles/taiga-ui-kit-components.umd.js +12 -4
  198. package/bundles/taiga-ui-kit-components.umd.js.map +1 -1
  199. package/bundles/taiga-ui-kit-components.umd.min.js +1 -1
  200. package/bundles/taiga-ui-kit-constants.umd.js +8 -0
  201. package/bundles/taiga-ui-kit-constants.umd.js.map +1 -1
  202. package/bundles/taiga-ui-kit-constants.umd.min.js +1 -1
  203. package/bundles/taiga-ui-kit-constants.umd.min.js.map +1 -1
  204. package/bundles/taiga-ui-kit-pipes-field-error.umd.js +389 -0
  205. package/bundles/taiga-ui-kit-pipes-field-error.umd.js.map +1 -0
  206. package/bundles/taiga-ui-kit-pipes-field-error.umd.min.js +16 -0
  207. package/bundles/taiga-ui-kit-pipes-field-error.umd.min.js.map +1 -0
  208. package/bundles/taiga-ui-kit-pipes.umd.js +12 -4
  209. package/bundles/taiga-ui-kit-pipes.umd.js.map +1 -1
  210. package/bundles/taiga-ui-kit-pipes.umd.min.js +1 -1
  211. package/bundles/taiga-ui-kit-providers.umd.js +6 -5
  212. package/bundles/taiga-ui-kit-providers.umd.js.map +1 -1
  213. package/bundles/taiga-ui-kit-providers.umd.min.js +1 -1
  214. package/bundles/taiga-ui-kit-providers.umd.min.js.map +1 -1
  215. package/bundles/taiga-ui-kit-tokens.umd.js +246 -4
  216. package/bundles/taiga-ui-kit-tokens.umd.js.map +1 -1
  217. package/bundles/taiga-ui-kit-tokens.umd.min.js +15 -1
  218. package/bundles/taiga-ui-kit-tokens.umd.min.js.map +1 -1
  219. package/bundles/taiga-ui-kit-utils-mask.umd.js +17 -8
  220. package/bundles/taiga-ui-kit-utils-mask.umd.js.map +1 -1
  221. package/bundles/taiga-ui-kit-utils-mask.umd.min.js +1 -1
  222. package/bundles/taiga-ui-kit-utils-mask.umd.min.js.map +1 -1
  223. package/bundles/taiga-ui-kit-utils-miscellaneous.umd.js +241 -6
  224. package/bundles/taiga-ui-kit-utils-miscellaneous.umd.js.map +1 -1
  225. package/bundles/taiga-ui-kit-utils-miscellaneous.umd.min.js +15 -1
  226. package/bundles/taiga-ui-kit-utils-miscellaneous.umd.min.js.map +1 -1
  227. package/components/accordion/taiga-ui-kit-components-accordion.metadata.json +1 -1
  228. package/components/arrow/arrow-options.d.ts +18 -0
  229. package/components/arrow/arrow.component.d.ts +5 -3
  230. package/components/arrow/index.d.ts +1 -0
  231. package/components/arrow/taiga-ui-kit-components-arrow.metadata.json +1 -1
  232. package/components/avatar/taiga-ui-kit-components-avatar.metadata.json +1 -1
  233. package/components/badge/taiga-ui-kit-components-badge.metadata.json +1 -1
  234. package/components/badged-content/taiga-ui-kit-components-badged-content.metadata.json +1 -1
  235. package/components/breadcrumbs/taiga-ui-kit-components-breadcrumbs.metadata.json +1 -1
  236. package/components/calendar-month/taiga-ui-kit-components-calendar-month.metadata.json +1 -1
  237. package/components/carousel/carousel-buttons.directive.d.ts +2 -2
  238. package/components/carousel/taiga-ui-kit-components-carousel.metadata.json +1 -1
  239. package/components/checkbox/checkbox.component.d.ts +2 -2
  240. package/components/checkbox/taiga-ui-kit-components-checkbox.metadata.json +1 -1
  241. package/components/checkbox-block/taiga-ui-kit-components-checkbox-block.metadata.json +1 -1
  242. package/components/checkbox-labeled/taiga-ui-kit-components-checkbox-labeled.metadata.json +1 -1
  243. package/components/combo-box/combo-box-strict.directive.d.ts +7 -0
  244. package/components/combo-box/combo-box.component.d.ts +11 -8
  245. package/components/combo-box/combo-box.directive.d.ts +6 -0
  246. package/components/combo-box/combo-box.providers.d.ts +2 -0
  247. package/components/combo-box/index.d.ts +3 -0
  248. package/components/combo-box/taiga-ui-kit-components-combo-box.metadata.json +1 -1
  249. package/components/data-list-wrapper/data-list-wrapper.component.d.ts +5 -3
  250. package/components/data-list-wrapper/taiga-ui-kit-components-data-list-wrapper.metadata.json +1 -1
  251. package/components/field-error/field-error.component.d.ts +1 -2
  252. package/components/field-error/field-error.module.d.ts +3 -0
  253. package/components/field-error/taiga-ui-kit-components-field-error.metadata.json +1 -1
  254. package/components/filter/taiga-ui-kit-components-filter.metadata.json +1 -1
  255. package/components/index.d.ts +1 -0
  256. package/components/input/index.d.ts +1 -0
  257. package/components/input/input.directive.d.ts +5 -0
  258. package/components/input/taiga-ui-kit-components-input.metadata.json +1 -1
  259. package/components/input-copy/index.d.ts +2 -0
  260. package/components/input-copy/input-copy.directive.d.ts +5 -0
  261. package/components/input-copy/input-copy.providers.d.ts +2 -0
  262. package/components/input-copy/taiga-ui-kit-components-input-copy.metadata.json +1 -1
  263. package/components/input-count/index.d.ts +1 -0
  264. package/components/input-count/input-count-options.d.ts +10 -4
  265. package/components/input-count/input-count.component.d.ts +3 -3
  266. package/components/input-count/input-count.directive.d.ts +6 -0
  267. package/components/input-count/taiga-ui-kit-components-input-count.metadata.json +1 -1
  268. package/components/input-date/index.d.ts +2 -0
  269. package/components/input-date/input-date.component.d.ts +3 -4
  270. package/components/input-date/input-date.directive.d.ts +7 -0
  271. package/components/input-date/input-date.providers.d.ts +4 -0
  272. package/components/input-date/taiga-ui-kit-components-input-date.metadata.json +1 -1
  273. package/components/input-date-range/index.d.ts +2 -0
  274. package/components/input-date-range/input-date-range.component.d.ts +3 -4
  275. package/components/input-date-range/input-date-range.directive.d.ts +7 -0
  276. package/components/input-date-range/input-date-range.providers.d.ts +4 -0
  277. package/components/input-date-range/taiga-ui-kit-components-input-date-range.metadata.json +1 -1
  278. package/components/input-date-time/index.d.ts +2 -0
  279. package/components/input-date-time/input-date-time.component.d.ts +3 -5
  280. package/components/input-date-time/input-date-time.directive.d.ts +7 -0
  281. package/components/input-date-time/input-date-time.providers.d.ts +4 -0
  282. package/components/input-date-time/taiga-ui-kit-components-input-date-time.metadata.json +1 -1
  283. package/components/input-file/input-file.component.d.ts +0 -1
  284. package/components/input-file/taiga-ui-kit-components-input-file.metadata.json +1 -1
  285. package/components/input-inline/input-inline.component.d.ts +0 -1
  286. package/components/input-inline/taiga-ui-kit-components-input-inline.metadata.json +1 -1
  287. package/components/input-month/index.d.ts +1 -0
  288. package/components/input-month/input-month.component.d.ts +2 -3
  289. package/components/input-month/input-month.directive.d.ts +7 -0
  290. package/components/input-month/taiga-ui-kit-components-input-month.metadata.json +1 -1
  291. package/components/input-month-range/index.d.ts +1 -0
  292. package/components/input-month-range/input-month-range.component.d.ts +2 -3
  293. package/components/input-month-range/input-month-range.directive.d.ts +7 -0
  294. package/components/input-month-range/taiga-ui-kit-components-input-month-range.metadata.json +1 -1
  295. package/components/input-number/index.d.ts +1 -0
  296. package/components/input-number/input-number.component.d.ts +1 -1
  297. package/components/input-number/input-number.directive.d.ts +7 -0
  298. package/components/input-number/taiga-ui-kit-components-input-number.metadata.json +1 -1
  299. package/components/input-password/index.d.ts +1 -0
  300. package/components/input-password/input-password-options.d.ts +10 -4
  301. package/components/input-password/input-password.component.d.ts +3 -4
  302. package/components/input-password/input-password.directive.d.ts +8 -0
  303. package/components/input-password/taiga-ui-kit-components-input-password.metadata.json +1 -1
  304. package/components/input-phone/index.d.ts +1 -0
  305. package/components/input-phone/input-phone.component.d.ts +1 -1
  306. package/components/input-phone/input-phone.directive.d.ts +7 -0
  307. package/components/input-phone/taiga-ui-kit-components-input-phone.metadata.json +1 -1
  308. package/components/input-phone-international/const/countries.d.ts +15 -7
  309. package/components/input-phone-international/index.d.ts +2 -0
  310. package/components/input-phone-international/input-phone-international.component.d.ts +4 -3
  311. package/components/input-phone-international/taiga-ui-kit-components-input-phone-international.metadata.json +1 -1
  312. package/components/input-phone-international/tokens/countries-masks.d.ts +3 -0
  313. package/components/input-phone-international/utils/extract-value-from-event.d.ts +1 -0
  314. package/components/input-range/input-range.component.d.ts +2 -1
  315. package/components/input-range/taiga-ui-kit-components-input-range.metadata.json +1 -1
  316. package/components/input-slider/input-slider.component.d.ts +2 -1
  317. package/components/input-slider/taiga-ui-kit-components-input-slider.metadata.json +1 -1
  318. package/components/input-tag/index.d.ts +1 -0
  319. package/components/input-tag/input-tag-options.d.ts +7 -0
  320. package/components/input-tag/input-tag.component.d.ts +6 -2
  321. package/components/input-tag/taiga-ui-kit-components-input-tag.metadata.json +1 -1
  322. package/components/input-time/input-time-options.d.ts +13 -4
  323. package/components/input-time/input-time.component.d.ts +9 -10
  324. package/components/input-time/taiga-ui-kit-components-input-time.metadata.json +1 -1
  325. package/components/marker-icon/taiga-ui-kit-components-marker-icon.metadata.json +1 -1
  326. package/components/multi-select/index.d.ts +1 -0
  327. package/components/multi-select/multi-select-options.d.ts +10 -0
  328. package/components/multi-select/multi-select.component.d.ts +14 -8
  329. package/components/multi-select/taiga-ui-kit-components-multi-select.metadata.json +1 -1
  330. package/components/radio/radio-options.d.ts +10 -4
  331. package/components/radio/radio.component.d.ts +2 -2
  332. package/components/radio/taiga-ui-kit-components-radio.metadata.json +1 -1
  333. package/components/radio-block/taiga-ui-kit-components-radio-block.metadata.json +1 -1
  334. package/components/radio-labeled/taiga-ui-kit-components-radio-labeled.metadata.json +1 -1
  335. package/components/radio-list/taiga-ui-kit-components-radio-list.metadata.json +1 -1
  336. package/components/range/taiga-ui-kit-components-range.metadata.json +1 -1
  337. package/components/rating/index.d.ts +3 -0
  338. package/components/rating/package.json +13 -0
  339. package/components/rating/rating-options.d.ts +10 -0
  340. package/components/rating/rating.component.d.ts +21 -0
  341. package/components/rating/rating.module.d.ts +2 -0
  342. package/components/rating/taiga-ui-kit-components-rating.d.ts +4 -0
  343. package/components/rating/taiga-ui-kit-components-rating.metadata.json +1 -0
  344. package/components/select/index.d.ts +3 -0
  345. package/components/select/select-options.d.ts +9 -0
  346. package/components/select/select.component.d.ts +11 -6
  347. package/components/select/select.directive.d.ts +7 -0
  348. package/components/select/select.providers.d.ts +2 -0
  349. package/components/select/taiga-ui-kit-components-select.metadata.json +1 -1
  350. package/components/slider/index.d.ts +1 -0
  351. package/components/slider/slider-old.component.d.ts +19 -0
  352. package/components/slider/slider.component.d.ts +16 -13
  353. package/components/slider/taiga-ui-kit-components-slider.metadata.json +1 -1
  354. package/components/stepper/taiga-ui-kit-components-stepper.metadata.json +1 -1
  355. package/components/tabs/taiga-ui-kit-components-tabs.metadata.json +1 -1
  356. package/components/tag/tag.component.d.ts +1 -0
  357. package/components/tag/taiga-ui-kit-components-tag.metadata.json +1 -1
  358. package/components/taiga-ui-kit-components.metadata.json +1 -1
  359. package/components/text-area/taiga-ui-kit-components-text-area.metadata.json +1 -1
  360. package/components/toggle/taiga-ui-kit-components-toggle.metadata.json +1 -1
  361. package/components/toggle/toggle-options.d.ts +10 -4
  362. package/components/toggle/toggle.component.d.ts +3 -3
  363. package/constants/index.d.ts +1 -0
  364. package/constants/max-time-values.d.ts +2 -0
  365. package/constants/taiga-ui-kit-constants.metadata.json +1 -1
  366. package/esm2015/abstract/input-slider.js +4 -2
  367. package/esm2015/abstract/slider/slider.js +2 -2
  368. package/esm2015/components/accordion/accordion-item/accordion-item.component.js +3 -3
  369. package/esm2015/components/accordion/accordion.component.js +3 -3
  370. package/esm2015/components/arrow/arrow-options.js +28 -0
  371. package/esm2015/components/arrow/arrow.component.js +12 -8
  372. package/esm2015/components/arrow/arrow.module.js +3 -2
  373. package/esm2015/components/arrow/index.js +2 -1
  374. package/esm2015/components/avatar/avatar.component.js +3 -3
  375. package/esm2015/components/badge/badge.component.js +3 -3
  376. package/esm2015/components/badged-content/badged-content.component.js +3 -3
  377. package/esm2015/components/breadcrumbs/breadcrumbs.component.js +3 -3
  378. package/esm2015/components/calendar-month/calendar-month.component.js +5 -2
  379. package/esm2015/components/carousel/carousel-buttons.directive.js +1 -1
  380. package/esm2015/components/carousel/carousel-scroll.directive.js +5 -4
  381. package/esm2015/components/carousel/carousel.component.js +1 -1
  382. package/esm2015/components/checkbox/checkbox.component.js +4 -4
  383. package/esm2015/components/checkbox-block/checkbox-block.component.js +3 -3
  384. package/esm2015/components/checkbox-labeled/checkbox-labeled.component.js +3 -3
  385. package/esm2015/components/combo-box/combo-box-strict.directive.js +31 -0
  386. package/esm2015/components/combo-box/combo-box.component.js +41 -55
  387. package/esm2015/components/combo-box/combo-box.directive.js +25 -0
  388. package/esm2015/components/combo-box/combo-box.module.js +15 -4
  389. package/esm2015/components/combo-box/combo-box.providers.js +28 -0
  390. package/esm2015/components/combo-box/index.js +4 -1
  391. package/esm2015/components/data-list-wrapper/data-list-wrapper.component.js +17 -11
  392. package/esm2015/components/field-error/field-error.component.js +8 -12
  393. package/esm2015/components/field-error/field-error.module.js +6 -2
  394. package/esm2015/components/filter/filter.component.js +3 -3
  395. package/esm2015/components/index.js +2 -1
  396. package/esm2015/components/input/index.js +2 -1
  397. package/esm2015/components/input/input.component.js +3 -3
  398. package/esm2015/components/input/input.directive.js +22 -0
  399. package/esm2015/components/input/input.module.js +5 -4
  400. package/esm2015/components/input/input.providers.js +6 -2
  401. package/esm2015/components/input-copy/index.js +3 -1
  402. package/esm2015/components/input-copy/input-copy.component.js +8 -15
  403. package/esm2015/components/input-copy/input-copy.directive.js +22 -0
  404. package/esm2015/components/input-copy/input-copy.module.js +5 -4
  405. package/esm2015/components/input-copy/input-copy.providers.js +16 -0
  406. package/esm2015/components/input-count/index.js +2 -1
  407. package/esm2015/components/input-count/input-count-options.js +5 -1
  408. package/esm2015/components/input-count/input-count.component.js +10 -10
  409. package/esm2015/components/input-count/input-count.directive.js +26 -0
  410. package/esm2015/components/input-count/input-count.module.js +5 -4
  411. package/esm2015/components/input-date/index.js +3 -1
  412. package/esm2015/components/input-date/input-date.component.js +19 -29
  413. package/esm2015/components/input-date/input-date.directive.js +28 -0
  414. package/esm2015/components/input-date/input-date.module.js +5 -4
  415. package/esm2015/components/input-date/input-date.providers.js +29 -0
  416. package/esm2015/components/input-date-range/index.js +3 -1
  417. package/esm2015/components/input-date-range/input-date-range.component.js +19 -29
  418. package/esm2015/components/input-date-range/input-date-range.directive.js +28 -0
  419. package/esm2015/components/input-date-range/input-date-range.module.js +9 -4
  420. package/esm2015/components/input-date-range/input-date-range.providers.js +29 -0
  421. package/esm2015/components/input-date-time/index.js +3 -1
  422. package/esm2015/components/input-date-time/input-date-time.component.js +19 -33
  423. package/esm2015/components/input-date-time/input-date-time.directive.js +28 -0
  424. package/esm2015/components/input-date-time/input-date-time.module.js +9 -4
  425. package/esm2015/components/input-date-time/input-date-time.providers.js +29 -0
  426. package/esm2015/components/input-file/input-file.component.js +2 -5
  427. package/esm2015/components/input-inline/input-inline.component.js +4 -13
  428. package/esm2015/components/input-month/index.js +2 -1
  429. package/esm2015/components/input-month/input-month.component.js +7 -6
  430. package/esm2015/components/input-month/input-month.directive.js +30 -0
  431. package/esm2015/components/input-month/input-month.module.js +5 -4
  432. package/esm2015/components/input-month-range/index.js +2 -1
  433. package/esm2015/components/input-month-range/input-month-range.component.js +7 -6
  434. package/esm2015/components/input-month-range/input-month-range.directive.js +30 -0
  435. package/esm2015/components/input-month-range/input-month-range.module.js +9 -4
  436. package/esm2015/components/input-number/index.js +2 -1
  437. package/esm2015/components/input-number/input-number.component.js +16 -10
  438. package/esm2015/components/input-number/input-number.directive.js +29 -0
  439. package/esm2015/components/input-number/input-number.module.js +5 -4
  440. package/esm2015/components/input-password/index.js +2 -1
  441. package/esm2015/components/input-password/input-password-options.js +5 -1
  442. package/esm2015/components/input-password/input-password.component.js +8 -7
  443. package/esm2015/components/input-password/input-password.directive.js +30 -0
  444. package/esm2015/components/input-password/input-password.module.js +9 -4
  445. package/esm2015/components/input-phone/index.js +2 -1
  446. package/esm2015/components/input-phone/input-phone.component.js +14 -25
  447. package/esm2015/components/input-phone/input-phone.directive.js +29 -0
  448. package/esm2015/components/input-phone/input-phone.module.js +5 -4
  449. package/esm2015/components/input-phone/input-phone.providers.js +17 -3
  450. package/esm2015/components/input-phone-international/const/countries.js +14 -5
  451. package/esm2015/components/input-phone-international/index.js +3 -1
  452. package/esm2015/components/input-phone-international/input-phone-international.component.js +24 -22
  453. package/esm2015/components/input-phone-international/tokens/countries-masks.js +6 -0
  454. package/esm2015/components/input-phone-international/utils/extract-value-from-event.js +9 -0
  455. package/esm2015/components/input-range/input-range.component.js +10 -7
  456. package/esm2015/components/input-slider/input-slider.component.js +10 -7
  457. package/esm2015/components/input-tag/index.js +2 -1
  458. package/esm2015/components/input-tag/input-tag-options.js +9 -0
  459. package/esm2015/components/input-tag/input-tag.component.js +31 -15
  460. package/esm2015/components/input-time/input-time-options.js +8 -1
  461. package/esm2015/components/input-time/input-time.component.js +10 -8
  462. package/esm2015/components/marker-icon/marker-icon.component.js +3 -3
  463. package/esm2015/components/multi-select/index.js +2 -1
  464. package/esm2015/components/multi-select/multi-select-options.js +13 -0
  465. package/esm2015/components/multi-select/multi-select.component.js +31 -17
  466. package/esm2015/components/multi-select/multi-select.module.js +3 -1
  467. package/esm2015/components/radio/radio-options.js +5 -1
  468. package/esm2015/components/radio/radio.component.js +3 -3
  469. package/esm2015/components/radio-block/radio-block.component.js +3 -3
  470. package/esm2015/components/radio-labeled/radio-labeled.component.js +3 -3
  471. package/esm2015/components/radio-list/radio-list.component.js +3 -3
  472. package/esm2015/components/range/range.component.js +1 -1
  473. package/esm2015/components/rating/index.js +4 -0
  474. package/esm2015/components/rating/rating-options.js +15 -0
  475. package/esm2015/components/rating/rating.component.js +91 -0
  476. package/esm2015/components/rating/rating.module.js +23 -0
  477. package/esm2015/components/rating/taiga-ui-kit-components-rating.js +5 -0
  478. package/esm2015/components/select/index.js +4 -1
  479. package/esm2015/components/select/select-options.js +12 -0
  480. package/esm2015/components/select/select.component.js +36 -42
  481. package/esm2015/components/select/select.directive.js +28 -0
  482. package/esm2015/components/select/select.module.js +5 -4
  483. package/esm2015/components/select/select.providers.js +28 -0
  484. package/esm2015/components/slider/index.js +2 -1
  485. package/esm2015/components/slider/slider-old.component.js +71 -0
  486. package/esm2015/components/slider/slider.component.js +66 -46
  487. package/esm2015/components/slider/slider.module.js +4 -3
  488. package/esm2015/components/stepper/step/step.component.js +3 -3
  489. package/esm2015/components/tabs/tab/tab.providers.js +3 -3
  490. package/esm2015/components/tag/tag.component.js +12 -6
  491. package/esm2015/components/text-area/text-area.component.js +9 -6
  492. package/esm2015/components/text-area/text-area.module.js +2 -3
  493. package/esm2015/components/toggle/toggle-options.js +5 -1
  494. package/esm2015/components/toggle/toggle.component.js +3 -3
  495. package/esm2015/constants/index.js +2 -1
  496. package/esm2015/constants/max-time-values.js +7 -0
  497. package/esm2015/pipes/field-error/field-error-pipe.js +120 -0
  498. package/esm2015/pipes/field-error/field-error.module.js +13 -0
  499. package/esm2015/pipes/field-error/index.js +3 -0
  500. package/esm2015/pipes/field-error/taiga-ui-kit-pipes-field-error.js +5 -0
  501. package/esm2015/pipes/index.js +2 -1
  502. package/esm2015/providers/value-accessor.provider.js +3 -2
  503. package/esm2015/tokens/date-inputs-value-transformers.js +5 -0
  504. package/esm2015/tokens/index.js +3 -1
  505. package/esm2015/tokens/items-handlers.js +15 -0
  506. package/esm2015/types/index.js +1 -1
  507. package/esm2015/types/time-format-parts.js +1 -0
  508. package/esm2015/utils/mask/create-auto-corrected-time-pipe.js +7 -6
  509. package/esm2015/utils/mask/create-time-mask.js +16 -8
  510. package/esm2015/utils/miscellaneous/get-precision.js +8 -0
  511. package/esm2015/utils/miscellaneous/index.js +2 -1
  512. package/esm2015/utils/miscellaneous/replay-control-value-changes-factory.js +10 -4
  513. package/esm5/abstract/input-slider.js +4 -2
  514. package/esm5/abstract/slider/slider.js +2 -2
  515. package/esm5/components/accordion/accordion-item/accordion-item.component.js +3 -3
  516. package/esm5/components/accordion/accordion.component.js +3 -3
  517. package/esm5/components/arrow/arrow-options.js +29 -0
  518. package/esm5/components/arrow/arrow.component.js +12 -8
  519. package/esm5/components/arrow/arrow.module.js +3 -2
  520. package/esm5/components/arrow/index.js +2 -1
  521. package/esm5/components/avatar/avatar.component.js +3 -3
  522. package/esm5/components/badge/badge.component.js +3 -3
  523. package/esm5/components/badged-content/badged-content.component.js +3 -3
  524. package/esm5/components/breadcrumbs/breadcrumbs.component.js +3 -3
  525. package/esm5/components/calendar-month/calendar-month.component.js +5 -2
  526. package/esm5/components/carousel/carousel-buttons.directive.js +1 -1
  527. package/esm5/components/carousel/carousel-scroll.directive.js +5 -4
  528. package/esm5/components/carousel/carousel.component.js +1 -1
  529. package/esm5/components/checkbox/checkbox.component.js +4 -4
  530. package/esm5/components/checkbox-block/checkbox-block.component.js +3 -3
  531. package/esm5/components/checkbox-labeled/checkbox-labeled.component.js +3 -3
  532. package/esm5/components/combo-box/combo-box-strict.directive.js +32 -0
  533. package/esm5/components/combo-box/combo-box.component.js +40 -59
  534. package/esm5/components/combo-box/combo-box.directive.js +35 -0
  535. package/esm5/components/combo-box/combo-box.module.js +15 -4
  536. package/esm5/components/combo-box/combo-box.providers.js +28 -0
  537. package/esm5/components/combo-box/index.js +4 -1
  538. package/esm5/components/data-list-wrapper/data-list-wrapper.component.js +18 -11
  539. package/esm5/components/field-error/field-error.component.js +8 -16
  540. package/esm5/components/field-error/field-error.module.js +6 -2
  541. package/esm5/components/filter/filter.component.js +3 -3
  542. package/esm5/components/index.js +2 -1
  543. package/esm5/components/input/index.js +2 -1
  544. package/esm5/components/input/input.component.js +3 -3
  545. package/esm5/components/input/input.directive.js +28 -0
  546. package/esm5/components/input/input.module.js +5 -4
  547. package/esm5/components/input/input.providers.js +6 -2
  548. package/esm5/components/input-copy/index.js +3 -1
  549. package/esm5/components/input-copy/input-copy.component.js +7 -15
  550. package/esm5/components/input-copy/input-copy.directive.js +28 -0
  551. package/esm5/components/input-copy/input-copy.module.js +5 -4
  552. package/esm5/components/input-copy/input-copy.providers.js +16 -0
  553. package/esm5/components/input-count/index.js +2 -1
  554. package/esm5/components/input-count/input-count-options.js +6 -1
  555. package/esm5/components/input-count/input-count.component.js +10 -10
  556. package/esm5/components/input-count/input-count.directive.js +32 -0
  557. package/esm5/components/input-count/input-count.module.js +5 -4
  558. package/esm5/components/input-date/index.js +3 -1
  559. package/esm5/components/input-date/input-date.component.js +18 -29
  560. package/esm5/components/input-date/input-date.directive.js +38 -0
  561. package/esm5/components/input-date/input-date.module.js +5 -4
  562. package/esm5/components/input-date/input-date.providers.js +29 -0
  563. package/esm5/components/input-date-range/index.js +3 -1
  564. package/esm5/components/input-date-range/input-date-range.component.js +18 -29
  565. package/esm5/components/input-date-range/input-date-range.directive.js +38 -0
  566. package/esm5/components/input-date-range/input-date-range.module.js +9 -4
  567. package/esm5/components/input-date-range/input-date-range.providers.js +29 -0
  568. package/esm5/components/input-date-time/index.js +3 -1
  569. package/esm5/components/input-date-time/input-date-time.component.js +18 -37
  570. package/esm5/components/input-date-time/input-date-time.directive.js +38 -0
  571. package/esm5/components/input-date-time/input-date-time.module.js +9 -4
  572. package/esm5/components/input-date-time/input-date-time.providers.js +29 -0
  573. package/esm5/components/input-file/input-file.component.js +2 -9
  574. package/esm5/components/input-inline/input-inline.component.js +4 -17
  575. package/esm5/components/input-month/index.js +2 -1
  576. package/esm5/components/input-month/input-month.component.js +7 -10
  577. package/esm5/components/input-month/input-month.directive.js +44 -0
  578. package/esm5/components/input-month/input-month.module.js +5 -4
  579. package/esm5/components/input-month-range/index.js +2 -1
  580. package/esm5/components/input-month-range/input-month-range.component.js +7 -10
  581. package/esm5/components/input-month-range/input-month-range.directive.js +44 -0
  582. package/esm5/components/input-month-range/input-month-range.module.js +9 -4
  583. package/esm5/components/input-number/index.js +2 -1
  584. package/esm5/components/input-number/input-number.component.js +16 -10
  585. package/esm5/components/input-number/input-number.directive.js +39 -0
  586. package/esm5/components/input-number/input-number.module.js +5 -4
  587. package/esm5/components/input-password/index.js +2 -1
  588. package/esm5/components/input-password/input-password-options.js +6 -1
  589. package/esm5/components/input-password/input-password.component.js +8 -11
  590. package/esm5/components/input-password/input-password.directive.js +36 -0
  591. package/esm5/components/input-password/input-password.module.js +9 -4
  592. package/esm5/components/input-phone/index.js +2 -1
  593. package/esm5/components/input-phone/input-phone.component.js +13 -25
  594. package/esm5/components/input-phone/input-phone.directive.js +39 -0
  595. package/esm5/components/input-phone/input-phone.module.js +5 -4
  596. package/esm5/components/input-phone/input-phone.providers.js +17 -3
  597. package/esm5/components/input-phone-international/const/countries.js +14 -5
  598. package/esm5/components/input-phone-international/index.js +3 -1
  599. package/esm5/components/input-phone-international/input-phone-international.component.js +28 -22
  600. package/esm5/components/input-phone-international/tokens/countries-masks.js +6 -0
  601. package/esm5/components/input-phone-international/utils/extract-value-from-event.js +9 -0
  602. package/esm5/components/input-range/input-range.component.js +10 -7
  603. package/esm5/components/input-slider/input-slider.component.js +10 -7
  604. package/esm5/components/input-tag/index.js +2 -1
  605. package/esm5/components/input-tag/input-tag-options.js +9 -0
  606. package/esm5/components/input-tag/input-tag.component.js +36 -16
  607. package/esm5/components/input-time/input-time-options.js +9 -1
  608. package/esm5/components/input-time/input-time.component.js +10 -12
  609. package/esm5/components/marker-icon/marker-icon.component.js +3 -3
  610. package/esm5/components/multi-select/index.js +2 -1
  611. package/esm5/components/multi-select/multi-select-options.js +14 -0
  612. package/esm5/components/multi-select/multi-select.component.js +35 -21
  613. package/esm5/components/multi-select/multi-select.module.js +3 -1
  614. package/esm5/components/radio/radio-options.js +6 -1
  615. package/esm5/components/radio/radio.component.js +3 -3
  616. package/esm5/components/radio-block/radio-block.component.js +3 -3
  617. package/esm5/components/radio-labeled/radio-labeled.component.js +3 -3
  618. package/esm5/components/radio-list/radio-list.component.js +3 -3
  619. package/esm5/components/range/range.component.js +1 -1
  620. package/esm5/components/rating/index.js +4 -0
  621. package/esm5/components/rating/rating-options.js +16 -0
  622. package/esm5/components/rating/rating.component.js +111 -0
  623. package/esm5/components/rating/rating.module.js +26 -0
  624. package/esm5/components/rating/taiga-ui-kit-components-rating.js +5 -0
  625. package/esm5/components/select/index.js +4 -1
  626. package/esm5/components/select/select-options.js +13 -0
  627. package/esm5/components/select/select.component.js +35 -46
  628. package/esm5/components/select/select.directive.js +42 -0
  629. package/esm5/components/select/select.module.js +5 -4
  630. package/esm5/components/select/select.providers.js +28 -0
  631. package/esm5/components/slider/index.js +2 -1
  632. package/esm5/components/slider/slider-old.component.js +90 -0
  633. package/esm5/components/slider/slider.component.js +83 -53
  634. package/esm5/components/slider/slider.module.js +4 -3
  635. package/esm5/components/stepper/step/step.component.js +3 -3
  636. package/esm5/components/tabs/tab/tab.providers.js +3 -3
  637. package/esm5/components/tag/tag.component.js +12 -6
  638. package/esm5/components/text-area/text-area.component.js +9 -6
  639. package/esm5/components/text-area/text-area.module.js +2 -3
  640. package/esm5/components/toggle/toggle-options.js +6 -1
  641. package/esm5/components/toggle/toggle.component.js +3 -3
  642. package/esm5/constants/index.js +2 -1
  643. package/esm5/constants/max-time-values.js +7 -0
  644. package/esm5/pipes/field-error/field-error-pipe.js +153 -0
  645. package/esm5/pipes/field-error/field-error.module.js +16 -0
  646. package/esm5/pipes/field-error/index.js +3 -0
  647. package/esm5/pipes/field-error/taiga-ui-kit-pipes-field-error.js +5 -0
  648. package/esm5/pipes/index.js +2 -1
  649. package/esm5/providers/value-accessor.provider.js +3 -2
  650. package/esm5/tokens/date-inputs-value-transformers.js +5 -0
  651. package/esm5/tokens/index.js +3 -1
  652. package/esm5/tokens/items-handlers.js +16 -0
  653. package/esm5/types/index.js +1 -1
  654. package/esm5/types/time-format-parts.js +1 -0
  655. package/esm5/utils/mask/create-auto-corrected-time-pipe.js +8 -5
  656. package/esm5/utils/mask/create-time-mask.js +15 -7
  657. package/esm5/utils/miscellaneous/get-precision.js +9 -0
  658. package/esm5/utils/miscellaneous/index.js +2 -1
  659. package/esm5/utils/miscellaneous/replay-control-value-changes-factory.js +12 -4
  660. package/fesm2015/taiga-ui-kit-abstract.js +4 -2
  661. package/fesm2015/taiga-ui-kit-abstract.js.map +1 -1
  662. package/fesm2015/taiga-ui-kit-components-accordion.js +4 -4
  663. package/fesm2015/taiga-ui-kit-components-accordion.js.map +1 -1
  664. package/fesm2015/taiga-ui-kit-components-arrow.js +40 -11
  665. package/fesm2015/taiga-ui-kit-components-arrow.js.map +1 -1
  666. package/fesm2015/taiga-ui-kit-components-avatar.js +2 -2
  667. package/fesm2015/taiga-ui-kit-components-avatar.js.map +1 -1
  668. package/fesm2015/taiga-ui-kit-components-badge.js +2 -2
  669. package/fesm2015/taiga-ui-kit-components-badge.js.map +1 -1
  670. package/fesm2015/taiga-ui-kit-components-badged-content.js +2 -2
  671. package/fesm2015/taiga-ui-kit-components-badged-content.js.map +1 -1
  672. package/fesm2015/taiga-ui-kit-components-breadcrumbs.js +2 -2
  673. package/fesm2015/taiga-ui-kit-components-breadcrumbs.js.map +1 -1
  674. package/fesm2015/taiga-ui-kit-components-calendar-month.js +4 -1
  675. package/fesm2015/taiga-ui-kit-components-calendar-month.js.map +1 -1
  676. package/fesm2015/taiga-ui-kit-components-carousel.js +5 -4
  677. package/fesm2015/taiga-ui-kit-components-carousel.js.map +1 -1
  678. package/fesm2015/taiga-ui-kit-components-checkbox-block.js +2 -2
  679. package/fesm2015/taiga-ui-kit-components-checkbox-block.js.map +1 -1
  680. package/fesm2015/taiga-ui-kit-components-checkbox-labeled.js +2 -2
  681. package/fesm2015/taiga-ui-kit-components-checkbox-labeled.js.map +1 -1
  682. package/fesm2015/taiga-ui-kit-components-checkbox.js +3 -3
  683. package/fesm2015/taiga-ui-kit-components-checkbox.js.map +1 -1
  684. package/fesm2015/taiga-ui-kit-components-combo-box.js +118 -53
  685. package/fesm2015/taiga-ui-kit-components-combo-box.js.map +1 -1
  686. package/fesm2015/taiga-ui-kit-components-data-list-wrapper.js +16 -10
  687. package/fesm2015/taiga-ui-kit-components-data-list-wrapper.js.map +1 -1
  688. package/fesm2015/taiga-ui-kit-components-field-error.js +12 -13
  689. package/fesm2015/taiga-ui-kit-components-field-error.js.map +1 -1
  690. package/fesm2015/taiga-ui-kit-components-filter.js +2 -2
  691. package/fesm2015/taiga-ui-kit-components-filter.js.map +1 -1
  692. package/fesm2015/taiga-ui-kit-components-input-copy.js +41 -18
  693. package/fesm2015/taiga-ui-kit-components-input-copy.js.map +1 -1
  694. package/fesm2015/taiga-ui-kit-components-input-count.js +40 -14
  695. package/fesm2015/taiga-ui-kit-components-input-count.js.map +1 -1
  696. package/fesm2015/taiga-ui-kit-components-input-date-range.js +72 -31
  697. package/fesm2015/taiga-ui-kit-components-input-date-range.js.map +1 -1
  698. package/fesm2015/taiga-ui-kit-components-input-date-time.js +72 -35
  699. package/fesm2015/taiga-ui-kit-components-input-date-time.js.map +1 -1
  700. package/fesm2015/taiga-ui-kit-components-input-date.js +68 -31
  701. package/fesm2015/taiga-ui-kit-components-input-date.js.map +1 -1
  702. package/fesm2015/taiga-ui-kit-components-input-file.js +1 -4
  703. package/fesm2015/taiga-ui-kit-components-input-file.js.map +1 -1
  704. package/fesm2015/taiga-ui-kit-components-input-inline.js +3 -12
  705. package/fesm2015/taiga-ui-kit-components-input-inline.js.map +1 -1
  706. package/fesm2015/taiga-ui-kit-components-input-month-range.js +41 -10
  707. package/fesm2015/taiga-ui-kit-components-input-month-range.js.map +1 -1
  708. package/fesm2015/taiga-ui-kit-components-input-month.js +37 -10
  709. package/fesm2015/taiga-ui-kit-components-input-month.js.map +1 -1
  710. package/fesm2015/taiga-ui-kit-components-input-number.js +45 -14
  711. package/fesm2015/taiga-ui-kit-components-input-number.js.map +1 -1
  712. package/fesm2015/taiga-ui-kit-components-input-password.js +45 -10
  713. package/fesm2015/taiga-ui-kit-components-input-password.js.map +1 -1
  714. package/fesm2015/taiga-ui-kit-components-input-phone-international.js +47 -26
  715. package/fesm2015/taiga-ui-kit-components-input-phone-international.js.map +1 -1
  716. package/fesm2015/taiga-ui-kit-components-input-phone.js +53 -27
  717. package/fesm2015/taiga-ui-kit-components-input-phone.js.map +1 -1
  718. package/fesm2015/taiga-ui-kit-components-input-range.js +9 -6
  719. package/fesm2015/taiga-ui-kit-components-input-range.js.map +1 -1
  720. package/fesm2015/taiga-ui-kit-components-input-slider.js +9 -6
  721. package/fesm2015/taiga-ui-kit-components-input-slider.js.map +1 -1
  722. package/fesm2015/taiga-ui-kit-components-input-tag.js +39 -16
  723. package/fesm2015/taiga-ui-kit-components-input-tag.js.map +1 -1
  724. package/fesm2015/taiga-ui-kit-components-input-time.js +16 -7
  725. package/fesm2015/taiga-ui-kit-components-input-time.js.map +1 -1
  726. package/fesm2015/taiga-ui-kit-components-input.js +29 -7
  727. package/fesm2015/taiga-ui-kit-components-input.js.map +1 -1
  728. package/fesm2015/taiga-ui-kit-components-marker-icon.js +2 -2
  729. package/fesm2015/taiga-ui-kit-components-marker-icon.js.map +1 -1
  730. package/fesm2015/taiga-ui-kit-components-multi-select.js +44 -18
  731. package/fesm2015/taiga-ui-kit-components-multi-select.js.map +1 -1
  732. package/fesm2015/taiga-ui-kit-components-radio-block.js +2 -2
  733. package/fesm2015/taiga-ui-kit-components-radio-block.js.map +1 -1
  734. package/fesm2015/taiga-ui-kit-components-radio-labeled.js +2 -2
  735. package/fesm2015/taiga-ui-kit-components-radio-labeled.js.map +1 -1
  736. package/fesm2015/taiga-ui-kit-components-radio-list.js +2 -2
  737. package/fesm2015/taiga-ui-kit-components-radio-list.js.map +1 -1
  738. package/fesm2015/taiga-ui-kit-components-radio.js +7 -3
  739. package/fesm2015/taiga-ui-kit-components-radio.js.map +1 -1
  740. package/fesm2015/taiga-ui-kit-components-range.js +1 -1
  741. package/fesm2015/taiga-ui-kit-components-rating.js +127 -0
  742. package/fesm2015/taiga-ui-kit-components-rating.js.map +1 -0
  743. package/fesm2015/taiga-ui-kit-components-select.js +91 -40
  744. package/fesm2015/taiga-ui-kit-components-select.js.map +1 -1
  745. package/fesm2015/taiga-ui-kit-components-slider.js +100 -14
  746. package/fesm2015/taiga-ui-kit-components-slider.js.map +1 -1
  747. package/fesm2015/taiga-ui-kit-components-stepper.js +2 -2
  748. package/fesm2015/taiga-ui-kit-components-stepper.js.map +1 -1
  749. package/fesm2015/taiga-ui-kit-components-tabs.js +2 -2
  750. package/fesm2015/taiga-ui-kit-components-tabs.js.map +1 -1
  751. package/fesm2015/taiga-ui-kit-components-tag.js +11 -5
  752. package/fesm2015/taiga-ui-kit-components-tag.js.map +1 -1
  753. package/fesm2015/taiga-ui-kit-components-text-area.js +9 -7
  754. package/fesm2015/taiga-ui-kit-components-text-area.js.map +1 -1
  755. package/fesm2015/taiga-ui-kit-components-toggle.js +7 -3
  756. package/fesm2015/taiga-ui-kit-components-toggle.js.map +1 -1
  757. package/fesm2015/taiga-ui-kit-components.js +1 -0
  758. package/fesm2015/taiga-ui-kit-components.js.map +1 -1
  759. package/fesm2015/taiga-ui-kit-constants.js +8 -1
  760. package/fesm2015/taiga-ui-kit-constants.js.map +1 -1
  761. package/fesm2015/taiga-ui-kit-pipes-field-error.js +135 -0
  762. package/fesm2015/taiga-ui-kit-pipes-field-error.js.map +1 -0
  763. package/fesm2015/taiga-ui-kit-pipes.js +1 -0
  764. package/fesm2015/taiga-ui-kit-pipes.js.map +1 -1
  765. package/fesm2015/taiga-ui-kit-providers.js +2 -1
  766. package/fesm2015/taiga-ui-kit-providers.js.map +1 -1
  767. package/fesm2015/taiga-ui-kit-tokens.js +19 -1
  768. package/fesm2015/taiga-ui-kit-tokens.js.map +1 -1
  769. package/fesm2015/taiga-ui-kit-utils-mask.js +20 -12
  770. package/fesm2015/taiga-ui-kit-utils-mask.js.map +1 -1
  771. package/fesm2015/taiga-ui-kit-utils-miscellaneous.js +17 -3
  772. package/fesm2015/taiga-ui-kit-utils-miscellaneous.js.map +1 -1
  773. package/fesm5/taiga-ui-kit-abstract.js +4 -2
  774. package/fesm5/taiga-ui-kit-abstract.js.map +1 -1
  775. package/fesm5/taiga-ui-kit-components-accordion.js +4 -4
  776. package/fesm5/taiga-ui-kit-components-accordion.js.map +1 -1
  777. package/fesm5/taiga-ui-kit-components-arrow.js +41 -12
  778. package/fesm5/taiga-ui-kit-components-arrow.js.map +1 -1
  779. package/fesm5/taiga-ui-kit-components-avatar.js +2 -2
  780. package/fesm5/taiga-ui-kit-components-avatar.js.map +1 -1
  781. package/fesm5/taiga-ui-kit-components-badge.js +2 -2
  782. package/fesm5/taiga-ui-kit-components-badge.js.map +1 -1
  783. package/fesm5/taiga-ui-kit-components-badged-content.js +2 -2
  784. package/fesm5/taiga-ui-kit-components-badged-content.js.map +1 -1
  785. package/fesm5/taiga-ui-kit-components-breadcrumbs.js +2 -2
  786. package/fesm5/taiga-ui-kit-components-breadcrumbs.js.map +1 -1
  787. package/fesm5/taiga-ui-kit-components-calendar-month.js +4 -1
  788. package/fesm5/taiga-ui-kit-components-calendar-month.js.map +1 -1
  789. package/fesm5/taiga-ui-kit-components-carousel.js +5 -4
  790. package/fesm5/taiga-ui-kit-components-carousel.js.map +1 -1
  791. package/fesm5/taiga-ui-kit-components-checkbox-block.js +2 -2
  792. package/fesm5/taiga-ui-kit-components-checkbox-block.js.map +1 -1
  793. package/fesm5/taiga-ui-kit-components-checkbox-labeled.js +2 -2
  794. package/fesm5/taiga-ui-kit-components-checkbox-labeled.js.map +1 -1
  795. package/fesm5/taiga-ui-kit-components-checkbox.js +3 -3
  796. package/fesm5/taiga-ui-kit-components-checkbox.js.map +1 -1
  797. package/fesm5/taiga-ui-kit-components-combo-box.js +128 -57
  798. package/fesm5/taiga-ui-kit-components-combo-box.js.map +1 -1
  799. package/fesm5/taiga-ui-kit-components-data-list-wrapper.js +17 -10
  800. package/fesm5/taiga-ui-kit-components-data-list-wrapper.js.map +1 -1
  801. package/fesm5/taiga-ui-kit-components-field-error.js +12 -17
  802. package/fesm5/taiga-ui-kit-components-field-error.js.map +1 -1
  803. package/fesm5/taiga-ui-kit-components-filter.js +2 -2
  804. package/fesm5/taiga-ui-kit-components-filter.js.map +1 -1
  805. package/fesm5/taiga-ui-kit-components-input-copy.js +46 -18
  806. package/fesm5/taiga-ui-kit-components-input-copy.js.map +1 -1
  807. package/fesm5/taiga-ui-kit-components-input-count.js +47 -15
  808. package/fesm5/taiga-ui-kit-components-input-count.js.map +1 -1
  809. package/fesm5/taiga-ui-kit-components-input-date-range.js +81 -31
  810. package/fesm5/taiga-ui-kit-components-input-date-range.js.map +1 -1
  811. package/fesm5/taiga-ui-kit-components-input-date-time.js +81 -39
  812. package/fesm5/taiga-ui-kit-components-input-date-time.js.map +1 -1
  813. package/fesm5/taiga-ui-kit-components-input-date.js +77 -31
  814. package/fesm5/taiga-ui-kit-components-input-date.js.map +1 -1
  815. package/fesm5/taiga-ui-kit-components-input-file.js +1 -8
  816. package/fesm5/taiga-ui-kit-components-input-file.js.map +1 -1
  817. package/fesm5/taiga-ui-kit-components-input-inline.js +3 -16
  818. package/fesm5/taiga-ui-kit-components-input-inline.js.map +1 -1
  819. package/fesm5/taiga-ui-kit-components-input-month-range.js +55 -14
  820. package/fesm5/taiga-ui-kit-components-input-month-range.js.map +1 -1
  821. package/fesm5/taiga-ui-kit-components-input-month.js +51 -14
  822. package/fesm5/taiga-ui-kit-components-input-month.js.map +1 -1
  823. package/fesm5/taiga-ui-kit-components-input-number.js +55 -14
  824. package/fesm5/taiga-ui-kit-components-input-number.js.map +1 -1
  825. package/fesm5/taiga-ui-kit-components-input-password.js +52 -15
  826. package/fesm5/taiga-ui-kit-components-input-password.js.map +1 -1
  827. package/fesm5/taiga-ui-kit-components-input-phone-international.js +51 -26
  828. package/fesm5/taiga-ui-kit-components-input-phone-international.js.map +1 -1
  829. package/fesm5/taiga-ui-kit-components-input-phone.js +62 -27
  830. package/fesm5/taiga-ui-kit-components-input-phone.js.map +1 -1
  831. package/fesm5/taiga-ui-kit-components-input-range.js +9 -6
  832. package/fesm5/taiga-ui-kit-components-input-range.js.map +1 -1
  833. package/fesm5/taiga-ui-kit-components-input-slider.js +9 -6
  834. package/fesm5/taiga-ui-kit-components-input-slider.js.map +1 -1
  835. package/fesm5/taiga-ui-kit-components-input-tag.js +44 -17
  836. package/fesm5/taiga-ui-kit-components-input-tag.js.map +1 -1
  837. package/fesm5/taiga-ui-kit-components-input-time.js +17 -12
  838. package/fesm5/taiga-ui-kit-components-input-time.js.map +1 -1
  839. package/fesm5/taiga-ui-kit-components-input.js +36 -8
  840. package/fesm5/taiga-ui-kit-components-input.js.map +1 -1
  841. package/fesm5/taiga-ui-kit-components-marker-icon.js +2 -2
  842. package/fesm5/taiga-ui-kit-components-marker-icon.js.map +1 -1
  843. package/fesm5/taiga-ui-kit-components-multi-select.js +49 -23
  844. package/fesm5/taiga-ui-kit-components-multi-select.js.map +1 -1
  845. package/fesm5/taiga-ui-kit-components-radio-block.js +2 -2
  846. package/fesm5/taiga-ui-kit-components-radio-block.js.map +1 -1
  847. package/fesm5/taiga-ui-kit-components-radio-labeled.js +2 -2
  848. package/fesm5/taiga-ui-kit-components-radio-labeled.js.map +1 -1
  849. package/fesm5/taiga-ui-kit-components-radio-list.js +2 -2
  850. package/fesm5/taiga-ui-kit-components-radio-list.js.map +1 -1
  851. package/fesm5/taiga-ui-kit-components-radio.js +8 -4
  852. package/fesm5/taiga-ui-kit-components-radio.js.map +1 -1
  853. package/fesm5/taiga-ui-kit-components-range.js +1 -1
  854. package/fesm5/taiga-ui-kit-components-rating.js +150 -0
  855. package/fesm5/taiga-ui-kit-components-rating.js.map +1 -0
  856. package/fesm5/taiga-ui-kit-components-select.js +105 -45
  857. package/fesm5/taiga-ui-kit-components-select.js.map +1 -1
  858. package/fesm5/taiga-ui-kit-components-slider.js +141 -26
  859. package/fesm5/taiga-ui-kit-components-slider.js.map +1 -1
  860. package/fesm5/taiga-ui-kit-components-stepper.js +2 -2
  861. package/fesm5/taiga-ui-kit-components-stepper.js.map +1 -1
  862. package/fesm5/taiga-ui-kit-components-tabs.js +2 -2
  863. package/fesm5/taiga-ui-kit-components-tabs.js.map +1 -1
  864. package/fesm5/taiga-ui-kit-components-tag.js +11 -5
  865. package/fesm5/taiga-ui-kit-components-tag.js.map +1 -1
  866. package/fesm5/taiga-ui-kit-components-text-area.js +9 -7
  867. package/fesm5/taiga-ui-kit-components-text-area.js.map +1 -1
  868. package/fesm5/taiga-ui-kit-components-toggle.js +8 -4
  869. package/fesm5/taiga-ui-kit-components-toggle.js.map +1 -1
  870. package/fesm5/taiga-ui-kit-components.js +1 -0
  871. package/fesm5/taiga-ui-kit-components.js.map +1 -1
  872. package/fesm5/taiga-ui-kit-constants.js +8 -1
  873. package/fesm5/taiga-ui-kit-constants.js.map +1 -1
  874. package/fesm5/taiga-ui-kit-pipes-field-error.js +171 -0
  875. package/fesm5/taiga-ui-kit-pipes-field-error.js.map +1 -0
  876. package/fesm5/taiga-ui-kit-pipes.js +1 -0
  877. package/fesm5/taiga-ui-kit-pipes.js.map +1 -1
  878. package/fesm5/taiga-ui-kit-providers.js +2 -1
  879. package/fesm5/taiga-ui-kit-providers.js.map +1 -1
  880. package/fesm5/taiga-ui-kit-tokens.js +20 -1
  881. package/fesm5/taiga-ui-kit-tokens.js.map +1 -1
  882. package/fesm5/taiga-ui-kit-utils-mask.js +19 -10
  883. package/fesm5/taiga-ui-kit-utils-mask.js.map +1 -1
  884. package/fesm5/taiga-ui-kit-utils-miscellaneous.js +20 -3
  885. package/fesm5/taiga-ui-kit-utils-miscellaneous.js.map +1 -1
  886. package/package.json +12 -12
  887. package/pipes/field-error/field-error-pipe.d.ts +29 -0
  888. package/pipes/field-error/field-error.module.d.ts +2 -0
  889. package/pipes/field-error/index.d.ts +2 -0
  890. package/pipes/field-error/package.json +13 -0
  891. package/pipes/field-error/taiga-ui-kit-pipes-field-error.d.ts +4 -0
  892. package/pipes/field-error/taiga-ui-kit-pipes-field-error.metadata.json +1 -0
  893. package/pipes/index.d.ts +1 -0
  894. package/pipes/taiga-ui-kit-pipes.metadata.json +1 -1
  895. package/providers/taiga-ui-kit-providers.metadata.json +1 -1
  896. package/providers/value-accessor.provider.d.ts +1 -1
  897. package/tokens/date-inputs-value-transformers.d.ts +5 -0
  898. package/tokens/index.d.ts +2 -0
  899. package/tokens/items-handlers.d.ts +10 -0
  900. package/tokens/taiga-ui-kit-tokens.metadata.json +1 -1
  901. package/types/index.d.ts +1 -0
  902. package/types/taiga-ui-kit-types.metadata.json +1 -1
  903. package/types/time-format-parts.d.ts +1 -0
  904. package/utils/mask/create-auto-corrected-time-pipe.d.ts +2 -1
  905. package/utils/mask/create-time-mask.d.ts +2 -1
  906. package/utils/mask/taiga-ui-kit-utils-mask.metadata.json +1 -1
  907. package/utils/miscellaneous/get-precision.d.ts +4 -0
  908. package/utils/miscellaneous/index.d.ts +1 -0
  909. package/utils/miscellaneous/replay-control-value-changes-factory.d.ts +3 -2
  910. package/utils/miscellaneous/taiga-ui-kit-utils-miscellaneous.metadata.json +1 -1
@@ -23,6 +23,10 @@ const TUI_TOGGLE_DEFAULT_OPTIONS = {
23
23
  const TUI_TOGGLE_OPTIONS = new InjectionToken('Default parameters for toggle component', {
24
24
  factory: () => TUI_TOGGLE_DEFAULT_OPTIONS,
25
25
  });
26
+ const tuiToggleOptionsProvider = (options) => ({
27
+ provide: TUI_TOGGLE_OPTIONS,
28
+ useValue: Object.assign(Object.assign({}, TUI_TOGGLE_DEFAULT_OPTIONS), options),
29
+ });
26
30
 
27
31
  var TuiToggleComponent_1;
28
32
  let TuiToggleComponent = TuiToggleComponent_1 = class TuiToggleComponent extends AbstractTuiControl {
@@ -106,7 +110,7 @@ __decorate([
106
110
  ], TuiToggleComponent.prototype, "showLoader", void 0);
107
111
  __decorate([
108
112
  Input(),
109
- HostBinding('attr.data-tui-host-size'),
113
+ HostBinding('attr.data-size'),
110
114
  tuiDefaultProp()
111
115
  ], TuiToggleComponent.prototype, "size", void 0);
112
116
  __decorate([
@@ -126,7 +130,7 @@ TuiToggleComponent = TuiToggleComponent_1 = __decorate([
126
130
  useExisting: forwardRef(() => TuiToggleComponent_1),
127
131
  },
128
132
  ],
129
- styles: [":host{position:relative;display:inline-block;vertical-align:middle;overflow:hidden;border-radius:6.25rem}:host[data-tui-host-size='m']{width:2rem;height:1rem}:host[data-tui-host-size='l']{width:3rem;height:1.5rem}.checkbox{padding:0;border:0;border-radius:inherit;background:0 0;font-size:inherit;line-height:inherit;font-weight:inherit;color:inherit;caret-color:currentColor;outline:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;word-break:keep-all;-webkit-text-fill-color:currentColor;position:absolute;top:0;left:0;height:100%;width:100%;opacity:0;cursor:pointer}.checkbox:-webkit-autofill,.checkbox:-webkit-autofill:focus,.checkbox:-webkit-autofill:hover{border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01)!important;border-color:var(--tui-autofill);-webkit-box-shadow:0 0 0 1000px var(--tui-autofill) inset!important}:host._disabled .checkbox{pointer-events:none;cursor:default}.toggle{transition-property:transform;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;display:flex;align-items:center;justify-content:center}:host[data-tui-host-size='m'] .toggle{width:3rem;height:1rem;transform:translateX(-1rem)}:host[data-tui-host-size='l'] .toggle{width:4.5rem;height:1.5rem;transform:translateX(-1.5rem)}:host._checked .toggle{transform:translateX(0)}.circle{margin:.125rem 0;flex-shrink:0;border-radius:100%;background-color:var(--tui-base-01)}:host._disabled .circle_light{opacity:.24}:host[data-tui-host-size='m'] .circle{width:.75rem;height:.75rem}:host[data-tui-host-size='l'] .circle{width:1rem;height:1rem}:host._disabled .circle{background-color:var(--tui-base-01)}:host:not(._checked) .loader{color:var(--tui-base-06)}:host:not(._checked)._disabled .loader{color:var(--tui-base-05)}:host:not(._checked)[data-mode=onDark] .loader{color:var(--tui-text-03-night)}:host:not(._checked)[data-mode=onDark]._disabled .loader{color:var(--tui-clear-inverse-active)}:host:not(._checked)[data-mode=onLight] .loader{color:var(--tui-text-03)}:host:not(._checked)[data-mode=onLight]._disabled .loader{color:var(--tui-clear-active)}:host[data-tui-host-size='m'] .loader{width:.75rem;margin:0 .2rem;transform:scale(.75)}:host[data-tui-host-size='l'] .loader{width:1rem;margin:0 .25rem}.icon-wrapper{display:flex}.icon{opacity:.8}.icon_off{color:var(--tui-base-06)}:host._disabled .icon_off{color:var(--tui-base-05)}:host[data-mode=onDark] .icon_off{color:var(--tui-text-03-night)}:host[data-mode=onDark]._disabled .icon_off{color:var(--tui-clear-inverse-active)}:host[data-mode=onLight] .icon_off{color:var(--tui-text-03)}:host[data-mode=onLight]._disabled .icon_off{color:var(--tui-clear-active)}:host[data-tui-host-size='m'] .icon{width:1rem;height:1rem;transform:scale(.75)}:host[data-tui-host-size='l'] .icon{margin:0 .125rem;width:1.5rem;height:1.5rem}:host._hovered .icon{opacity:1}"]
133
+ styles: [":host{position:relative;display:inline-block;vertical-align:middle;overflow:hidden;border-radius:6.25rem}:host[data-size='m']{width:2rem;height:1rem}:host[data-size='l']{width:3rem;height:1.5rem}.checkbox{padding:0;border:0;border-radius:inherit;background:0 0;font-size:inherit;line-height:inherit;font-weight:inherit;color:inherit;caret-color:currentColor;outline:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;word-break:keep-all;-webkit-text-fill-color:currentColor;position:absolute;top:0;left:0;height:100%;width:100%;opacity:0;cursor:pointer}.checkbox:-webkit-autofill,.checkbox:-webkit-autofill:focus,.checkbox:-webkit-autofill:hover{border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01)!important;border-color:var(--tui-autofill);-webkit-box-shadow:0 0 0 1000px var(--tui-autofill) inset!important}:host._disabled .checkbox{pointer-events:none;cursor:default}.toggle{transition-property:transform;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;display:flex;align-items:center;justify-content:center}:host[data-size='m'] .toggle{width:3rem;height:1rem;transform:translateX(-1rem)}:host[data-size='l'] .toggle{width:4.5rem;height:1.5rem;transform:translateX(-1.5rem)}:host._checked .toggle{transform:translateX(0)}.circle{margin:.125rem 0;flex-shrink:0;border-radius:100%;background-color:var(--tui-base-01)}:host._disabled .circle_light{opacity:.24}:host[data-size='m'] .circle{width:.75rem;height:.75rem}:host[data-size='l'] .circle{width:1rem;height:1rem}:host._disabled .circle{background-color:var(--tui-base-01)}:host:not(._checked) .loader{color:var(--tui-base-06)}:host:not(._checked)._disabled .loader{color:var(--tui-base-05)}:host:not(._checked)[data-mode=onDark] .loader{color:var(--tui-text-03-night)}:host:not(._checked)[data-mode=onDark]._disabled .loader{color:var(--tui-clear-inverse-active)}:host:not(._checked)[data-mode=onLight] .loader{color:var(--tui-text-03)}:host:not(._checked)[data-mode=onLight]._disabled .loader{color:var(--tui-clear-active)}:host[data-size='m'] .loader{width:.75rem;margin:0 .2rem;transform:scale(.75)}:host[data-size='l'] .loader{width:1rem;margin:0 .25rem}.icon-wrapper{display:flex}.icon{opacity:.8}.icon_off{color:var(--tui-base-06)}:host._disabled .icon_off{color:var(--tui-base-05)}:host[data-mode=onDark] .icon_off{color:var(--tui-text-03-night)}:host[data-mode=onDark]._disabled .icon_off{color:var(--tui-clear-inverse-active)}:host[data-mode=onLight] .icon_off{color:var(--tui-text-03)}:host[data-mode=onLight]._disabled .icon_off{color:var(--tui-clear-active)}:host[data-size='m'] .icon{width:1rem;height:1rem;transform:scale(.75)}:host[data-size='l'] .icon{margin:0 .125rem;width:1.5rem;height:1.5rem}:host._hovered .icon{opacity:1}"]
130
134
  }),
131
135
  __param(0, Optional()),
132
136
  __param(0, Self()),
@@ -163,5 +167,5 @@ TuiToggleModule = __decorate([
163
167
  * Generated bundle index. Do not edit.
164
168
  */
165
169
 
166
- export { TUI_TOGGLE_DEFAULT_OPTIONS, TUI_TOGGLE_OPTIONS, TuiToggleComponent, TuiToggleModule };
170
+ export { TUI_TOGGLE_DEFAULT_OPTIONS, TUI_TOGGLE_OPTIONS, TuiToggleComponent, TuiToggleModule, tuiToggleOptionsProvider };
167
171
  //# sourceMappingURL=taiga-ui-kit-components-toggle.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-toggle.js","sources":["ng://@taiga-ui/kit/components/toggle/toggle-options.ts","ng://@taiga-ui/kit/components/toggle/toggle.component.ts","ng://@taiga-ui/kit/components/toggle/toggle.module.ts","ng://@taiga-ui/kit/components/toggle/taiga-ui-kit-components-toggle.ts"],"sourcesContent":["import {InjectionToken} from '@angular/core';\nimport {TuiContextWithImplicit} from '@taiga-ui/cdk';\nimport {TuiSizeL} from '@taiga-ui/core';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\nexport interface ToggleOptions {\n readonly icons: Readonly<{\n toggleOff: PolymorpheusContent<TuiContextWithImplicit<TuiSizeL>>;\n toggleOn: PolymorpheusContent<TuiContextWithImplicit<TuiSizeL>>;\n }>;\n readonly singleColor: boolean;\n readonly showIcons: boolean;\n readonly size: TuiSizeL;\n}\n\n/** Default values for the toggle options. */\nexport const TUI_TOGGLE_DEFAULT_OPTIONS: ToggleOptions = {\n icons: {\n toggleOff({$implicit}: TuiContextWithImplicit<TuiSizeL>): string {\n return $implicit === 'm' ? 'tuiIconToggleOff' : 'tuiIconToggleOffLarge';\n },\n toggleOn({$implicit}: TuiContextWithImplicit<TuiSizeL>): string {\n return $implicit === 'm' ? 'tuiIconToggleOn' : 'tuiIconToggleOnLarge';\n },\n },\n singleColor: false,\n showIcons: false,\n size: 'm',\n};\n\nexport const TUI_TOGGLE_OPTIONS = new InjectionToken<ToggleOptions>(\n 'Default parameters for toggle component',\n {\n factory: () => TUI_TOGGLE_DEFAULT_OPTIONS,\n },\n);\n","import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ElementRef,\n forwardRef,\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 TUI_FOCUSABLE_ITEM_ACCESSOR,\n TuiContextWithImplicit,\n tuiDefaultProp,\n TuiFocusableElementAccessor,\n TuiNativeFocusableElement,\n} from '@taiga-ui/cdk';\nimport {\n TuiAppearance,\n TuiBrightness,\n TuiModeDirective,\n TuiSizeL,\n TuiSizeXS,\n} from '@taiga-ui/core';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\nimport {ToggleOptions, TUI_TOGGLE_OPTIONS} from './toggle-options';\n\n@Component({\n selector: 'tui-toggle',\n templateUrl: './toggle.template.html',\n styleUrls: ['./toggle.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: TUI_FOCUSABLE_ITEM_ACCESSOR,\n useExisting: forwardRef(() => TuiToggleComponent),\n },\n ],\n})\nexport class TuiToggleComponent\n extends AbstractTuiControl<boolean>\n implements TuiFocusableElementAccessor\n{\n @ViewChild('focusableElement')\n private readonly focusableElement?: ElementRef<TuiNativeFocusableElement>;\n\n @Input()\n @tuiDefaultProp()\n singleColor = this.options.singleColor;\n\n @Input()\n @tuiDefaultProp()\n showIcons = this.options.showIcons;\n\n @Input()\n @tuiDefaultProp()\n showLoader = false;\n\n @Input()\n @HostBinding('attr.data-tui-host-size')\n @tuiDefaultProp()\n size: TuiSizeL = this.options.size;\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n @Optional()\n @Inject(TuiModeDirective)\n private readonly modeDirective: TuiModeDirective | null,\n @Inject(TUI_TOGGLE_OPTIONS)\n readonly options: ToggleOptions,\n ) {\n super(control, changeDetectorRef);\n }\n\n get iconOn(): PolymorpheusContent<TuiContextWithImplicit<TuiSizeL>> {\n return this.options.icons.toggleOn;\n }\n\n get iconOff(): PolymorpheusContent<TuiContextWithImplicit<TuiSizeL>> {\n return this.options.icons.toggleOff;\n }\n\n get nativeFocusableElement(): TuiNativeFocusableElement | null {\n return this.focusableElement ? this.focusableElement.nativeElement : null;\n }\n\n get focused(): boolean {\n return isNativeFocused(this.nativeFocusableElement);\n }\n\n get appearance(): TuiAppearance {\n return this.singleColor || this.checked\n ? TuiAppearance.Primary\n : TuiAppearance.Secondary;\n }\n\n get sizeM(): boolean {\n return this.size === 'm';\n }\n\n @HostBinding('class._checked')\n get checked(): boolean {\n return this.value;\n }\n\n get loaderSize(): TuiSizeXS {\n return this.sizeM ? 'xs' : 's';\n }\n\n @HostBinding('attr.data-mode')\n get hostMode(): TuiBrightness | null {\n return this.modeDirective ? this.modeDirective.mode : null;\n }\n\n onChecked(checked: boolean) {\n this.updateValue(checked);\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 onFocusVisible(focusVisible: boolean) {\n this.updateFocusVisible(focusVisible);\n }\n\n protected getFallbackValue(): boolean {\n return false;\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {\n TuiCheckedModule,\n TuiFocusableModule,\n TuiFocusedModule,\n TuiFocusVisibleModule,\n TuiHoveredModule,\n TuiPressedModule,\n} from '@taiga-ui/cdk';\nimport {TuiLoaderModule, TuiSvgModule, TuiWrapperModule} from '@taiga-ui/core';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiToggleComponent} from './toggle.component';\n\n@NgModule({\n imports: [\n CommonModule,\n TuiFocusedModule,\n TuiFocusableModule,\n TuiHoveredModule,\n TuiPressedModule,\n TuiFocusVisibleModule,\n TuiCheckedModule,\n TuiWrapperModule,\n TuiSvgModule,\n TuiLoaderModule,\n PolymorpheusModule,\n ],\n declarations: [TuiToggleComponent],\n exports: [TuiToggleComponent],\n})\nexport class TuiToggleModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAeA;MACa,0BAA0B,GAAkB;IACrD,KAAK,EAAE;QACH,SAAS,CAAC,EAAC,SAAS,EAAmC;YACnD,OAAO,SAAS,KAAK,GAAG,GAAG,kBAAkB,GAAG,uBAAuB,CAAC;SAC3E;QACD,QAAQ,CAAC,EAAC,SAA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7B;AA7EQ,kBAAkB;IAZ9B,SAAS,CAAC;QACP,QAAQ,EAAE,YAAY;QACtB,wwEAAqC;QAErC,eAAe,EAAE,uBAAuB,CAAC,MAAM;QAC/C,SAAS,EAAE;YACP;gBACI,OAAO,EAAE,2BAA2B;gBACpC,WAAW,EAAE,UAAU,CAAC,MAAM,oBAAkB,CAAC;aACpD;SACJ;;KACJ,CAAC;IA0BO,WAAA,QAAQ,EAAE,CAAA;IACV,WAAA,IAAI,EAAE,CAAA;IACN,WAAA,MAAM,CAAC,SAAS,CAAC,CAAA;IAEjB,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;IACzB,WAAA,QAAQ,EAAE,CAAA;IACV,WAAA,MAAM,CAAC,gBAAgB,CAAC,CAAA;IAExB,WAAA,MAAM,CAAC,kBAAkB,CAAC,CAAA;GAjCtB,kBAAkB,CAsG9B;;ICpHY,eAAe,GAA5B,MAAa,eAAe;EAAG;AAAlB,eAAe;IAjB3B,QAAQ,CAAC;QACN,OAAO,EAAE;YACL,YAAY;YACZ,gBAAgB;YAChB,kBAAkB;YAClB,gBAAgB;YAChB,gBAAgB;YAChB,qBAAqB;YACrB,gBAAgB;YAChB,gBAAgB;YAChB,YAAY;YACZ,eAAe;YACf,kBAAkB;SACrB;QACD,YAAY,EAAE,CAAC,kBAAkB,CAAC;QAClC,OAAO,EAAE,CAAC,kBAAkB,CAAC;KAChC,CAAC;GACW,eAAe,CAAG;;AChC/B;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-toggle.js","sources":["ng://@taiga-ui/kit/components/toggle/toggle-options.ts","ng://@taiga-ui/kit/components/toggle/toggle.component.ts","ng://@taiga-ui/kit/components/toggle/toggle.module.ts","ng://@taiga-ui/kit/components/toggle/taiga-ui-kit-components-toggle.ts"],"sourcesContent":["import {InjectionToken, ValueProvider} from '@angular/core';\nimport {TuiContextWithImplicit} from '@taiga-ui/cdk';\nimport {TuiSizeL} from '@taiga-ui/core';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\nexport interface TuiToggleOptions {\n readonly icons: Readonly<{\n toggleOff: PolymorpheusContent<TuiContextWithImplicit<TuiSizeL>>;\n toggleOn: PolymorpheusContent<TuiContextWithImplicit<TuiSizeL>>;\n }>;\n readonly singleColor: boolean;\n readonly showIcons: boolean;\n readonly size: TuiSizeL;\n}\n\n/**\n * @deprecated: use TuiToggleOptions instead\n * todo: remove in 3.0\n */\nexport type ToggleOptions = TuiToggleOptions;\n\n/** Default values for the toggle options. */\nexport const TUI_TOGGLE_DEFAULT_OPTIONS: TuiToggleOptions = {\n icons: {\n toggleOff({$implicit}: TuiContextWithImplicit<TuiSizeL>): string {\n return $implicit === 'm' ? 'tuiIconToggleOff' : 'tuiIconToggleOffLarge';\n },\n toggleOn({$implicit}: TuiContextWithImplicit<TuiSizeL>): string {\n return $implicit === 'm' ? 'tuiIconToggleOn' : 'tuiIconToggleOnLarge';\n },\n },\n singleColor: false,\n showIcons: false,\n size: 'm',\n};\n\nexport const TUI_TOGGLE_OPTIONS = new InjectionToken<TuiToggleOptions>(\n 'Default parameters for toggle component',\n {\n factory: () => TUI_TOGGLE_DEFAULT_OPTIONS,\n },\n);\n\nexport const tuiToggleOptionsProvider: (\n options: Partial<TuiToggleOptions>,\n) => ValueProvider = (options: Partial<TuiToggleOptions>) => ({\n provide: TUI_TOGGLE_OPTIONS,\n useValue: {...TUI_TOGGLE_DEFAULT_OPTIONS, ...options},\n});\n","import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ElementRef,\n forwardRef,\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 TUI_FOCUSABLE_ITEM_ACCESSOR,\n TuiContextWithImplicit,\n tuiDefaultProp,\n TuiFocusableElementAccessor,\n TuiNativeFocusableElement,\n} from '@taiga-ui/cdk';\nimport {\n TuiAppearance,\n TuiBrightness,\n TuiModeDirective,\n TuiSizeL,\n TuiSizeXS,\n} from '@taiga-ui/core';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\nimport {TUI_TOGGLE_OPTIONS, TuiToggleOptions} from './toggle-options';\n\n@Component({\n selector: 'tui-toggle',\n templateUrl: './toggle.template.html',\n styleUrls: ['./toggle.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: TUI_FOCUSABLE_ITEM_ACCESSOR,\n useExisting: forwardRef(() => TuiToggleComponent),\n },\n ],\n})\nexport class TuiToggleComponent\n extends AbstractTuiControl<boolean>\n implements TuiFocusableElementAccessor\n{\n @ViewChild('focusableElement')\n private readonly focusableElement?: ElementRef<TuiNativeFocusableElement>;\n\n @Input()\n @tuiDefaultProp()\n singleColor = this.options.singleColor;\n\n @Input()\n @tuiDefaultProp()\n showIcons = this.options.showIcons;\n\n @Input()\n @tuiDefaultProp()\n showLoader = false;\n\n @Input()\n @HostBinding('attr.data-size')\n @tuiDefaultProp()\n size: TuiSizeL = this.options.size;\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n @Optional()\n @Inject(TuiModeDirective)\n private readonly modeDirective: TuiModeDirective | null,\n @Inject(TUI_TOGGLE_OPTIONS)\n readonly options: TuiToggleOptions,\n ) {\n super(control, changeDetectorRef);\n }\n\n get iconOn(): PolymorpheusContent<TuiContextWithImplicit<TuiSizeL>> {\n return this.options.icons.toggleOn;\n }\n\n get iconOff(): PolymorpheusContent<TuiContextWithImplicit<TuiSizeL>> {\n return this.options.icons.toggleOff;\n }\n\n get nativeFocusableElement(): TuiNativeFocusableElement | null {\n return this.focusableElement ? this.focusableElement.nativeElement : null;\n }\n\n get focused(): boolean {\n return isNativeFocused(this.nativeFocusableElement);\n }\n\n get appearance(): TuiAppearance {\n return this.singleColor || this.checked\n ? TuiAppearance.Primary\n : TuiAppearance.Secondary;\n }\n\n get sizeM(): boolean {\n return this.size === 'm';\n }\n\n @HostBinding('class._checked')\n get checked(): boolean {\n return this.value;\n }\n\n get loaderSize(): TuiSizeXS {\n return this.sizeM ? 'xs' : 's';\n }\n\n @HostBinding('attr.data-mode')\n get hostMode(): TuiBrightness | null {\n return this.modeDirective ? this.modeDirective.mode : null;\n }\n\n onChecked(checked: boolean) {\n this.updateValue(checked);\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 onFocusVisible(focusVisible: boolean) {\n this.updateFocusVisible(focusVisible);\n }\n\n protected getFallbackValue(): boolean {\n return false;\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {\n TuiCheckedModule,\n TuiFocusableModule,\n TuiFocusedModule,\n TuiFocusVisibleModule,\n TuiHoveredModule,\n TuiPressedModule,\n} from '@taiga-ui/cdk';\nimport {TuiLoaderModule, TuiSvgModule, TuiWrapperModule} from '@taiga-ui/core';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiToggleComponent} from './toggle.component';\n\n@NgModule({\n imports: [\n CommonModule,\n TuiFocusedModule,\n TuiFocusableModule,\n TuiHoveredModule,\n TuiPressedModule,\n TuiFocusVisibleModule,\n TuiCheckedModule,\n TuiWrapperModule,\n TuiSvgModule,\n TuiLoaderModule,\n PolymorpheusModule,\n ],\n declarations: [TuiToggleComponent],\n exports: [TuiToggleComponent],\n})\nexport class TuiToggleModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAqBA;MACa,0BAA0B,GAAqB;IACxD,KAAK,EAAE;QACH,SAAS,CAAC,EAAC,SAAS,EAAmC;YACnD,OAAO,SAAS,KAAK,GAAG,GAAG,kBAAkB,GAAG,uBAAuB,CAAC;SAC3E;QACD,QAAQ,CAA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W,CAAC,gBAAgB,CAAC;IAC7B,cAAc,EAAE;gDACkB;AA4CnC;IADC,WAAW,CAAC,gBAAgB,CAAC;iDAG7B;AAOD;IADC,WAAW,CAAC,gBAAgB,CAAC;kDAG7B;AA7EQ,kBAAkB;IAZ9B,SAAS,CAAC;QACP,QAAQ,EAAE,YAAY;QACtB,wwEAAqC;QAErC,eAAe,EAAE,uBAAuB,CAAC,MAAM;QAC/C,SAAS,EAAE;YACP;gBACI,OAAO,EAAE,2BAA2B;gBACpC,WAAW,EAAE,UAAU,CAAC,MAAM,oBAAkB,CAAC;aACpD;SACJ;;KACJ,CAAC;IA0BO,WAAA,QAAQ,EAAE,CAAA;IACV,WAAA,IAAI,EAAE,CAAA;IACN,WAAA,MAAM,CAAC,SAAS,CAAC,CAAA;IAEjB,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;IACzB,WAAA,QAAQ,EAAE,CAAA;IACV,WAAA,MAAM,CAAC,gBAAgB,CAAC,CAAA;IAExB,WAAA,MAAM,CAAC,kBAAkB,CAAC,CAAA;GAjCtB,kBAAkB,CAsG9B;;ICpHY,eAAe,GAA5B,MAAa,eAAe;EAAG;AAAlB,eAAe;IAjB3B,QAAQ,CAAC;QACN,OAAO,EAAE;YACL,YAAY;YACZ,gBAAgB;YAChB,kBAAkB;YAClB,gBAAgB;YAChB,gBAAgB;YAChB,qBAAqB;YACrB,gBAAgB;YAChB,gBAAgB;YAChB,YAAY;YACZ,eAAe;YACf,kBAAkB;SACrB;QACD,YAAY,EAAE,CAAC,kBAAkB,CAAC;QAClC,OAAO,EAAE,CAAC,kBAAkB,CAAC;KAChC,CAAC;GACW,eAAe,CAAG;;AChC/B;;;;;;"}
@@ -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;;"}
@@ -97,6 +97,13 @@ const MAX_DAY_RANGE_LENGTH_MAPPER = (min, value, maxLength, backwards) => {
97
97
  return dateShift.dayAfter(min) ? min : dateShift;
98
98
  };
99
99
 
100
+ const MAX_TIME_VALUES = {
101
+ HH: 23,
102
+ MM: 59,
103
+ SS: 59,
104
+ MS: 999,
105
+ };
106
+
100
107
  const DEFAULT_ROUTER_LINK_OPTIONS = {
101
108
  fragment: '',
102
109
  preserveFragment: true,
@@ -111,5 +118,5 @@ const DEFAULT_ROUTER_LINK_OPTIONS = {
111
118
  * Generated bundle index. Do not edit.
112
119
  */
113
120
 
114
- export { DATE_TIME_SEPARATOR, DEFAULT_ROUTER_LINK_OPTIONS, EMPTY_MASK, GROUP_CLASS_NAMES, MAX_DAY_RANGE_LENGTH_MAPPER, TUI_DATE_MASK, TUI_DATE_RANGE_MASK, TUI_FLOATING_PRECISION, TUI_PHONE_MASK, TUI_TIME_MASK, iconBlank };
121
+ export { DATE_TIME_SEPARATOR, DEFAULT_ROUTER_LINK_OPTIONS, EMPTY_MASK, GROUP_CLASS_NAMES, MAX_DAY_RANGE_LENGTH_MAPPER, MAX_TIME_VALUES, TUI_DATE_MASK, TUI_DATE_RANGE_MASK, TUI_FLOATING_PRECISION, TUI_PHONE_MASK, TUI_TIME_MASK, iconBlank };
115
122
  //# sourceMappingURL=taiga-ui-kit-constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-constants.js","sources":["ng://@taiga-ui/kit/constants/date-time-separator.ts","ng://@taiga-ui/kit/constants/empty-mask.ts","ng://@taiga-ui/kit/constants/group-class-names.ts","ng://@taiga-ui/kit/constants/icon-blank.ts","ng://@taiga-ui/kit/constants/masks.ts","ng://@taiga-ui/kit/constants/math.ts","ng://@taiga-ui/kit/constants/max-day-range-length-mapper.ts","ng://@taiga-ui/kit/constants/router-link-options.ts","ng://@taiga-ui/kit/constants/taiga-ui-kit-constants.ts"],"sourcesContent":["export const DATE_TIME_SEPARATOR = ', ';\n","import {TuiTextMaskOptions} from '@taiga-ui/core';\n\nexport const EMPTY_MASK: TuiTextMaskOptions = {\n mask(): false {\n return false;\n },\n};\n","export const GROUP_CLASS_NAMES = [\n '_active',\n '_disabled',\n '_focused',\n '_focus-visible',\n '_hosted_dropdown_focused',\n 'ng-invalid',\n 'ng-touched',\n '_pressed',\n '_readonly',\n];\n","export const iconBlank = '<svg></svg>';\n","import {CHAR_EN_DASH, CHAR_NO_BREAK_SPACE} from '@taiga-ui/cdk';\nimport {TUI_DIGIT_REGEXP, TuiTextMaskList} from '@taiga-ui/core';\n\nexport const TUI_PHONE_MASK: TuiTextMaskList = [\n '+',\n '7',\n ' ',\n TUI_DIGIT_REGEXP,\n TUI_DIGIT_REGEXP,\n TUI_DIGIT_REGEXP,\n ' ',\n TUI_DIGIT_REGEXP,\n TUI_DIGIT_REGEXP,\n TUI_DIGIT_REGEXP,\n '-',\n TUI_DIGIT_REGEXP,\n TUI_DIGIT_REGEXP,\n '-',\n TUI_DIGIT_REGEXP,\n TUI_DIGIT_REGEXP,\n];\nexport const TUI_TIME_MASK: TuiTextMaskList = [\n TUI_DIGIT_REGEXP,\n TUI_DIGIT_REGEXP,\n ':',\n TUI_DIGIT_REGEXP,\n TUI_DIGIT_REGEXP,\n];\n\n/**\n * @deprecated use {@link tuiCreateDateMask} (from '@taiga-ui/kit') instead\n * TODO remove in 3.0\n */\nexport const TUI_DATE_MASK: TuiTextMaskList = [\n TUI_DIGIT_REGEXP,\n TUI_DIGIT_REGEXP,\n '.',\n TUI_DIGIT_REGEXP,\n TUI_DIGIT_REGEXP,\n '.',\n TUI_DIGIT_REGEXP,\n TUI_DIGIT_REGEXP,\n TUI_DIGIT_REGEXP,\n TUI_DIGIT_REGEXP,\n];\n/**\n * @deprecated use {@link tuiCreateDateRangeMask} (from '@taiga-ui/kit') instead\n * TODO remove in 3.0\n */\nexport const TUI_DATE_RANGE_MASK: TuiTextMaskList = [\n ...TUI_DATE_MASK,\n CHAR_NO_BREAK_SPACE,\n CHAR_EN_DASH,\n CHAR_NO_BREAK_SPACE,\n ...TUI_DATE_MASK,\n];\n","/**\n * Used as a limit for eliminating JS issues with floating point math\n */\nexport const TUI_FLOATING_PRECISION = 7;\n","import {TuiDay, TuiDayLike, TuiDayRange, TuiMapper} from '@taiga-ui/cdk';\n\nexport const MAX_DAY_RANGE_LENGTH_MAPPER: TuiMapper<TuiDay, TuiDay> = (\n min,\n value: TuiDayRange,\n maxLength: TuiDayLike | null,\n backwards: boolean,\n) => {\n if (!value || !value.isSingleDay || !maxLength) {\n return min;\n }\n\n const dateShift = value.from\n .append(maxLength, backwards)\n .append({day: 1}, !backwards);\n\n if (backwards) {\n return dateShift.dayBefore(min) ? min : dateShift;\n }\n\n if (!min) {\n return dateShift;\n }\n\n return dateShift.dayAfter(min) ? min : dateShift;\n};\n","export const DEFAULT_ROUTER_LINK_OPTIONS = {\n fragment: '',\n preserveFragment: true,\n replaceUrl: false,\n skipLocationChange: false,\n queryParams: null,\n useHref: false,\n target: null,\n};\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[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AAC,CAAC;IAElC,IAAI,SAAS,EAAE;QACX,OAAO,SAAS,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,GAAG,GAAG,SAAS,CAAC;KACrD;IAED,IAAI,CAAC,GAAG,EAAE;QACN,OAAO,SAAS,CAAC;KACpB;IAED,OAAO,SAAS,CAAC,QAAQ,CAAC,GAAG,CAAC,GAAG,GAAG,GAAG,SAAS,CAAC;AACrD;;MCzBa,2BAA2B,GAAG;IACvC,QAAQ,EAAE,EAAE;IACZ,gBAAgB,EAAE,IAAI;IACtB,UAAU,EAAE,KAAK;IACjB,kBAAkB,EAAE,KAAK;IACzB,WAAW,EAAE,IAAI;IACjB,OAAO,EAAE,KAAK;IACd,MAAM,EAAE,IAAI;;;ACPhB;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-constants.js","sources":["ng://@taiga-ui/kit/constants/date-time-separator.ts","ng://@taiga-ui/kit/constants/empty-mask.ts","ng://@taiga-ui/kit/constants/group-class-names.ts","ng://@taiga-ui/kit/constants/icon-blank.ts","ng://@taiga-ui/kit/constants/masks.ts","ng://@taiga-ui/kit/constants/math.ts","ng://@taiga-ui/kit/constants/max-day-range-length-mapper.ts","ng://@taiga-ui/kit/constants/max-time-values.ts","ng://@taiga-ui/kit/constants/router-link-options.ts","ng://@taiga-ui/kit/constants/taiga-ui-kit-constants.ts"],"sourcesContent":["export const DATE_TIME_SEPARATOR = ', ';\n","import {TuiTextMaskOptions} from '@taiga-ui/core';\n\nexport const EMPTY_MASK: TuiTextMaskOptions = {\n mask(): false {\n return false;\n },\n};\n","export const GROUP_CLASS_NAMES = [\n '_active',\n '_disabled',\n '_focused',\n '_focus-visible',\n '_hosted_dropdown_focused',\n 'ng-invalid',\n 'ng-touched',\n '_pressed',\n '_readonly',\n];\n","export const iconBlank = '<svg></svg>';\n","import {CHAR_EN_DASH, CHAR_NO_BREAK_SPACE} from '@taiga-ui/cdk';\nimport {TUI_DIGIT_REGEXP, TuiTextMaskList} from '@taiga-ui/core';\n\nexport const TUI_PHONE_MASK: TuiTextMaskList = [\n '+',\n '7',\n ' ',\n TUI_DIGIT_REGEXP,\n TUI_DIGIT_REGEXP,\n TUI_DIGIT_REGEXP,\n ' ',\n TUI_DIGIT_REGEXP,\n TUI_DIGIT_REGEXP,\n TUI_DIGIT_REGEXP,\n '-',\n TUI_DIGIT_REGEXP,\n TUI_DIGIT_REGEXP,\n '-',\n TUI_DIGIT_REGEXP,\n TUI_DIGIT_REGEXP,\n];\nexport const TUI_TIME_MASK: TuiTextMaskList = [\n TUI_DIGIT_REGEXP,\n TUI_DIGIT_REGEXP,\n ':',\n TUI_DIGIT_REGEXP,\n TUI_DIGIT_REGEXP,\n];\n\n/**\n * @deprecated use {@link tuiCreateDateMask} (from '@taiga-ui/kit') instead\n * TODO remove in 3.0\n */\nexport const TUI_DATE_MASK: TuiTextMaskList = [\n TUI_DIGIT_REGEXP,\n TUI_DIGIT_REGEXP,\n '.',\n TUI_DIGIT_REGEXP,\n TUI_DIGIT_REGEXP,\n '.',\n TUI_DIGIT_REGEXP,\n TUI_DIGIT_REGEXP,\n TUI_DIGIT_REGEXP,\n TUI_DIGIT_REGEXP,\n];\n/**\n * @deprecated use {@link tuiCreateDateRangeMask} (from '@taiga-ui/kit') instead\n * TODO remove in 3.0\n */\nexport const TUI_DATE_RANGE_MASK: TuiTextMaskList = [\n ...TUI_DATE_MASK,\n CHAR_NO_BREAK_SPACE,\n CHAR_EN_DASH,\n CHAR_NO_BREAK_SPACE,\n ...TUI_DATE_MASK,\n];\n","/**\n * Used as a limit for eliminating JS issues with floating point math\n */\nexport const TUI_FLOATING_PRECISION = 7;\n","import {TuiDay, TuiDayLike, TuiDayRange, TuiMapper} from '@taiga-ui/cdk';\n\nexport const MAX_DAY_RANGE_LENGTH_MAPPER: TuiMapper<TuiDay, TuiDay> = (\n min,\n value: TuiDayRange,\n maxLength: TuiDayLike | null,\n backwards: boolean,\n) => {\n if (!value || !value.isSingleDay || !maxLength) {\n return min;\n }\n\n const dateShift = value.from\n .append(maxLength, backwards)\n .append({day: 1}, !backwards);\n\n if (backwards) {\n return dateShift.dayBefore(min) ? min : dateShift;\n }\n\n if (!min) {\n return dateShift;\n }\n\n return dateShift.dayAfter(min) ? min : dateShift;\n};\n","import {TuiTimeFormatParts} from '@taiga-ui/kit/types';\n\nexport const MAX_TIME_VALUES: Record<TuiTimeFormatParts, number> = {\n HH: 23,\n MM: 59,\n SS: 59,\n MS: 999,\n};\n","export const DEFAULT_ROUTER_LINK_OPTIONS = {\n fragment: '',\n preserveFragment: true,\n replaceUrl: false,\n skipLocationChange: false,\n queryParams: null,\n useHref: false,\n target: null,\n};\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MAAa,mBAAmB,GAAG;;MCEtB,UAAU,GAAuB;IAC1C,IAAI;QACA,OAAO,KAAK,CAAC;KAChB;;;MCLQ,iBAAiB,GAAG;IAC7B,SAAS;IACT,WAAW;IACX,UAAU;IACV,gBAAgB;IAChB,0BAA0B;IAC1B,YAAY;IACZ,YAAY;IACZ,UAAU;IACV,WAAW;;;MCTF,SAAS,GAAG;;MCGZ,cAAc,GAAoB;IAC3C,GAAG;IACH,GAAG;IACH,GAAG;IACH,gBAAgB;IAChB,gBAAgB;IAChB,gBAAgB;IAChB,GAAG;IACH,gBAAgB;IAChB,gBAAgB;IAChB,gBAAgB;IAChB,GAAG;IACH,gBAAgB;IAChB,gBAAgB;IAChB,GAAG;IACH,gBAAgB;IAChB,gBAAgB;EAClB;MACW,aAAa,GAAoB;IAC1C,gBAAgB;IAChB,gBAAgB;IAChB,GAAG;IACH,gBAAgB;IAChB,gBAAgB;EAClB;AAEF;;;;MAIa,aAAa,GAAoB;IAC1C,gBAAgB;IAChB,gBAAgB;IAChB,GAAG;IACH,gBAAgB;IAChB,gBAAgB;IAChB,GAAG;IACH,gBAAgB;IAChB,gBAAgB;IAChB,gBAAgB;IAChB,gBAAgB;EAClB;AACF;;;;MAIa,mBAAmB,GAAoB;IAChD,GAAG,aAAa;IAChB,mBAAmB;IACnB,YAAY;IACZ,mBAAmB;IACnB,GAAG,aAAa;;;ACtDpB;;;MAGa,sBAAsB,GAAG;;MCDzB,2BAA2B,GAA8B,CAClE,GAAG,EACH,KAAkB,EAClB,SAA4B,EAC5B,SAAkB;IAElB,IAAI,CAAC,KAAK,IAAI,CAAC,KAAK,CAAC,WAAW,IAAI,CAAC,SAAS,EAAE;QAC5C,OAAO,GAAG,CAAC;KACd;IAED,MAAM,SAAS,GAAG,KAAK,CAAC,IAAI;SACvB,MAAM,CAAC,SAAS,EAAE,SAAS,CAAC;SAC5B,MAAM,CAAC,EAAC,GAAG,EAAE,CAAC,EAAC,EAAE,CAAC,SAAS,CAAC,CAAC;IAElC,IAAI,SAAS,EAAE;QACX,OAAO,SAAS,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,GAAG,GAAG,SAAS,CAAC;KACrD;IAED,IAAI,CAAC,GAAG,EAAE;QACN,OAAO,SAAS,CAAC;KACpB;IAED,OAAO,SAAS,CAAC,QAAQ,CAAC,GAAG,CAAC,GAAG,GAAG,GAAG,SAAS,CAAC;AACrD;;MCvBa,eAAe,GAAuC;IAC/D,EAAE,EAAE,EAAE;IACN,EAAE,EAAE,EAAE;IACN,EAAE,EAAE,EAAE;IACN,EAAE,EAAE,GAAG;;;MCNE,2BAA2B,GAAG;IACvC,QAAQ,EAAE,EAAE;IACZ,gBAAgB,EAAE,IAAI;IACtB,UAAU,EAAE,KAAK;IACjB,kBAAkB,EAAE,KAAK;IACzB,WAAW,EAAE,IAAI;IACjB,OAAO,EAAE,KAAK;IACd,MAAM,EAAE,IAAI;;;ACPhB;;;;;;"}
@@ -0,0 +1,135 @@
1
+ import { __decorate, __param } from 'tslib';
2
+ import { Optional, Self, Inject, Pipe, NgModule } from '@angular/core';
3
+ import { NgControl, FormArrayName, FormGroupName, FormGroupDirective } from '@angular/forms';
4
+ import { TuiValidationError, tuiPure } from '@taiga-ui/cdk';
5
+ import { TUI_VALIDATION_ERRORS } from '@taiga-ui/kit/tokens';
6
+ import { merge, EMPTY, of, isObservable } from 'rxjs';
7
+ import { map } from 'rxjs/operators';
8
+
9
+ const EMPTY_RECORD = {};
10
+ // @dynamic
11
+ let TuiFieldErrorPipe = class TuiFieldErrorPipe {
12
+ constructor(ngControl, formArrayName, formGroupName, formGroup, validationErrors) {
13
+ this.ngControl = ngControl;
14
+ this.formArrayName = formArrayName;
15
+ this.formGroupName = formGroupName;
16
+ this.formGroup = formGroup;
17
+ this.validationErrors = validationErrors;
18
+ this.order = [];
19
+ if (this.ngControl && !this.ngControl.valueAccessor) {
20
+ this.ngControl.valueAccessor = this;
21
+ }
22
+ }
23
+ transform(order) {
24
+ this.order = order;
25
+ return this.computedError;
26
+ }
27
+ get change$() {
28
+ var _a, _b;
29
+ return merge(((_a = this.control) === null || _a === void 0 ? void 0 : _a.valueChanges) || EMPTY, ((_b = this.control) === null || _b === void 0 ? void 0 : _b.statusChanges) || EMPTY);
30
+ }
31
+ get computedError() {
32
+ return (this.invalid && this.touched && this.error) || of(null);
33
+ }
34
+ registerOnChange() { }
35
+ registerOnTouched() { }
36
+ setDisabledState() { }
37
+ writeValue() { }
38
+ get error() {
39
+ const { errorId } = this;
40
+ if (!errorId) {
41
+ return null;
42
+ }
43
+ const firstError = this.controlErrors[errorId];
44
+ const errorContent = this.validationErrors[errorId];
45
+ return this.getError(firstError, errorContent);
46
+ }
47
+ get invalid() {
48
+ var _a;
49
+ return !!((_a = this.control) === null || _a === void 0 ? void 0 : _a.invalid);
50
+ }
51
+ get touched() {
52
+ var _a;
53
+ return !!((_a = this.control) === null || _a === void 0 ? void 0 : _a.touched);
54
+ }
55
+ get control() {
56
+ var _a, _b, _c, _d;
57
+ return (((_a = this.ngControl) === null || _a === void 0 ? void 0 : _a.control) || ((_b = this.formArrayName) === null || _b === void 0 ? void 0 : _b.control) || ((_c = this.formGroupName) === null || _c === void 0 ? void 0 : _c.control) || ((_d = this.formGroup) === null || _d === void 0 ? void 0 : _d.control) ||
58
+ null);
59
+ }
60
+ get errorId() {
61
+ return this.getErrorId(this.order, this.controlErrors);
62
+ }
63
+ get controlErrors() {
64
+ var _a;
65
+ return ((_a = this.control) === null || _a === void 0 ? void 0 : _a.errors) || EMPTY_RECORD;
66
+ }
67
+ getErrorId(order, controlErrors) {
68
+ const id = order === null || order === void 0 ? void 0 : order.find(errorId => controlErrors[errorId]);
69
+ const fallback = Object.keys(controlErrors)[0];
70
+ return id || fallback || '';
71
+ }
72
+ getError(firstError, errorContent) {
73
+ if (firstError instanceof TuiValidationError) {
74
+ return of(firstError);
75
+ }
76
+ if (errorContent === undefined && typeof firstError === 'string') {
77
+ return of(new TuiValidationError(firstError));
78
+ }
79
+ if (isObservable(errorContent)) {
80
+ return errorContent.pipe(map(error => new TuiValidationError(error || '', firstError)));
81
+ }
82
+ return of(new TuiValidationError(errorContent || '', firstError));
83
+ }
84
+ };
85
+ TuiFieldErrorPipe.ctorParameters = () => [
86
+ { type: NgControl, decorators: [{ type: Optional }, { type: Self }, { type: Inject, args: [NgControl,] }] },
87
+ { type: FormArrayName, decorators: [{ type: Optional }, { type: Self }, { type: Inject, args: [FormArrayName,] }] },
88
+ { type: FormGroupName, decorators: [{ type: Optional }, { type: Self }, { type: Inject, args: [FormGroupName,] }] },
89
+ { type: FormGroupDirective, decorators: [{ type: Optional }, { type: Self }, { type: Inject, args: [FormGroupDirective,] }] },
90
+ { type: undefined, decorators: [{ type: Inject, args: [TUI_VALIDATION_ERRORS,] }] }
91
+ ];
92
+ __decorate([
93
+ tuiPure
94
+ ], TuiFieldErrorPipe.prototype, "change$", null);
95
+ __decorate([
96
+ tuiPure
97
+ ], TuiFieldErrorPipe.prototype, "getErrorId", null);
98
+ __decorate([
99
+ tuiPure
100
+ ], TuiFieldErrorPipe.prototype, "getError", null);
101
+ TuiFieldErrorPipe = __decorate([
102
+ Pipe({
103
+ name: 'tuiFieldError',
104
+ pure: false,
105
+ }),
106
+ __param(0, Optional()),
107
+ __param(0, Self()),
108
+ __param(0, Inject(NgControl)),
109
+ __param(1, Optional()),
110
+ __param(1, Self()),
111
+ __param(1, Inject(FormArrayName)),
112
+ __param(2, Optional()),
113
+ __param(2, Self()),
114
+ __param(2, Inject(FormGroupName)),
115
+ __param(3, Optional()),
116
+ __param(3, Self()),
117
+ __param(3, Inject(FormGroupDirective)),
118
+ __param(4, Inject(TUI_VALIDATION_ERRORS))
119
+ ], TuiFieldErrorPipe);
120
+
121
+ let TuiFieldErrorPipeModule = class TuiFieldErrorPipeModule {
122
+ };
123
+ TuiFieldErrorPipeModule = __decorate([
124
+ NgModule({
125
+ declarations: [TuiFieldErrorPipe],
126
+ exports: [TuiFieldErrorPipe],
127
+ })
128
+ ], TuiFieldErrorPipeModule);
129
+
130
+ /**
131
+ * Generated bundle index. Do not edit.
132
+ */
133
+
134
+ export { TuiFieldErrorPipe, TuiFieldErrorPipeModule };
135
+ //# sourceMappingURL=taiga-ui-kit-pipes-field-error.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"taiga-ui-kit-pipes-field-error.js","sources":["ng://@taiga-ui/kit/pipes/field-error/field-error-pipe.ts","ng://@taiga-ui/kit/pipes/field-error/field-error.module.ts","ng://@taiga-ui/kit/pipes/field-error/taiga-ui-kit-pipes-field-error.ts"],"sourcesContent":["import {Inject, Optional, Pipe, PipeTransform, Self} from '@angular/core';\nimport {\n AbstractControl,\n FormArrayName,\n FormGroupDirective,\n FormGroupName,\n NgControl,\n} from '@angular/forms';\nimport {tuiPure, TuiValidationError} from '@taiga-ui/cdk';\nimport {TUI_VALIDATION_ERRORS} from '@taiga-ui/kit/tokens';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {EMPTY, isObservable, merge, Observable, of} from 'rxjs';\nimport {map} from 'rxjs/operators';\n\nconst EMPTY_RECORD = {};\n\n// @dynamic\n@Pipe({\n name: 'tuiFieldError',\n pure: false,\n})\nexport class TuiFieldErrorPipe implements PipeTransform {\n private order: ReadonlyArray<string> = [];\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n private readonly ngControl: NgControl | null,\n @Optional()\n @Self()\n @Inject(FormArrayName)\n private readonly formArrayName: FormArrayName | null,\n @Optional()\n @Self()\n @Inject(FormGroupName)\n private readonly formGroupName: FormGroupName | null,\n @Optional()\n @Self()\n @Inject(FormGroupDirective)\n private readonly formGroup: FormGroupDirective | null,\n @Inject(TUI_VALIDATION_ERRORS)\n private readonly validationErrors: Record<\n string,\n PolymorpheusContent | Observable<PolymorpheusContent>\n >,\n ) {\n if (this.ngControl && !this.ngControl.valueAccessor) {\n this.ngControl.valueAccessor = this;\n }\n }\n\n transform(order: ReadonlyArray<string>): Observable<TuiValidationError | null> {\n this.order = order;\n\n return this.computedError;\n }\n\n @tuiPure\n get change$(): Observable<unknown> {\n return merge(\n this.control?.valueChanges || EMPTY,\n this.control?.statusChanges || EMPTY,\n );\n }\n\n get computedError(): Observable<TuiValidationError | null> {\n return (this.invalid && this.touched && this.error) || of(null);\n }\n\n registerOnChange() {}\n\n registerOnTouched() {}\n\n setDisabledState() {}\n\n writeValue() {}\n\n private get error(): Observable<TuiValidationError> | null {\n const {errorId} = this;\n\n if (!errorId) {\n return null;\n }\n\n const firstError = this.controlErrors[errorId];\n const errorContent = this.validationErrors[errorId];\n\n return this.getError(firstError, errorContent);\n }\n\n private get invalid(): boolean {\n return !!this.control?.invalid;\n }\n\n private get touched(): boolean {\n return !!this.control?.touched;\n }\n\n private get control(): AbstractControl | null {\n return (\n this.ngControl?.control ||\n this.formArrayName?.control ||\n this.formGroupName?.control ||\n this.formGroup?.control ||\n null\n );\n }\n\n private get errorId(): string {\n return this.getErrorId(this.order, this.controlErrors);\n }\n\n private get controlErrors(): Record<string, any> {\n return this.control?.errors || EMPTY_RECORD;\n }\n\n @tuiPure\n private getErrorId(\n order: readonly string[],\n controlErrors: Record<string, any>,\n ): string {\n const id = order?.find(errorId => controlErrors[errorId]);\n const fallback = Object.keys(controlErrors)[0];\n\n return id || fallback || '';\n }\n\n @tuiPure\n private getError(\n firstError: any,\n errorContent?: PolymorpheusContent | Observable<PolymorpheusContent>,\n ): Observable<TuiValidationError> {\n if (firstError instanceof TuiValidationError) {\n return of(firstError);\n }\n\n if (errorContent === undefined && typeof firstError === 'string') {\n return of(new TuiValidationError(firstError));\n }\n\n if (isObservable(errorContent)) {\n return errorContent.pipe(\n map(error => new TuiValidationError(error || '', firstError)),\n );\n }\n\n return of(new TuiValidationError(errorContent || '', firstError));\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiFieldErrorPipe} from './field-error-pipe';\n\n@NgModule({\n declarations: [TuiFieldErrorPipe],\n exports: [TuiFieldErrorPipe],\n})\nexport class TuiFieldErrorPipeModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAcA,MAAM,YAAY,GAAG,EAAE,CAAC;AAExB;IAKa,iBAAiB,GAA9B,MAAa,iBAAiB;IAG1B,YAIqB,SAA2B,EAI3B,aAAmC,EAInC,aAAmC,EAInC,SAAoC,EAEpC,gBAGhB;QAjBgB,cAAS,GAAT,SAAS,CAAkB;QAI3B,kBAAa,GAAb,aAAa,CAAsB;QAInC,kBAAa,GAAb,aAAa,CAAsB;QAInC,cAAS,GAAT,SAAS,CAA2B;QAEpC,qBAAgB,GAAhB,gBAAgB,CAGhC;QAvBG,UAAK,GAA0B,EAAE,CAAC;QAyBtC,IAAI,IAAI,CAAC,SAAS,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,aAAa,EAAE;YACjD,IAAI,CAAC,SAAS,CAAC,aAAa,GAAG,IAAI,CAAC;SACvC;KACJ;IAED,SAAS,CAAC,KAA4B;QAClC,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QAEnB,OAAO,IAAI,CAAC,aAAa,CAAC;KAC7B;IAGD,IAAI,OAAO;;QACP,OAAO,KAAK,CACR,OAAA,IAAI,CAAC,OAAO,0CAAE,YAAY,KA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A/HQ,iBAAiB;IAJ7B,IAAI,CAAC;QACF,IAAI,EAAE,eAAe;QACrB,IAAI,EAAE,KAAK;KACd,CAAC;IAKO,WAAA,QAAQ,EAAE,CAAA;IACV,WAAA,IAAI,EAAE,CAAA;IACN,WAAA,MAAM,CAAC,SAAS,CAAC,CAAA;IAEjB,WAAA,QAAQ,EAAE,CAAA;IACV,WAAA,IAAI,EAAE,CAAA;IACN,WAAA,MAAM,CAAC,aAAa,CAAC,CAAA;IAErB,WAAA,QAAQ,EAAE,CAAA;IACV,WAAA,IAAI,EAAE,CAAA;IACN,WAAA,MAAM,CAAC,aAAa,CAAC,CAAA;IAErB,WAAA,QAAQ,EAAE,CAAA;IACV,WAAA,IAAI,EAAE,CAAA;IACN,WAAA,MAAM,CAAC,kBAAkB,CAAC,CAAA;IAE1B,WAAA,MAAM,CAAC,qBAAqB,CAAC,CAAA;GApBzB,iBAAiB,CAgI7B;;IC7IY,uBAAuB,GAApC,MAAa,uBAAuB;EAAG;AAA1B,uBAAuB;IAJnC,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,iBAAiB,CAAC;QACjC,OAAO,EAAE,CAAC,iBAAiB,CAAC;KAC/B,CAAC;GACW,uBAAuB,CAAG;;ACRvC;;;;;;"}
@@ -1,3 +1,4 @@
1
+ export * from '@taiga-ui/kit/pipes/field-error';
1
2
  export * from '@taiga-ui/kit/pipes/filter-by-input';
2
3
  export * from '@taiga-ui/kit/pipes/stringify';
3
4
  export * from '@taiga-ui/kit/pipes/stringify-content';
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-pipes.js","sources":["ng://@taiga-ui/kit/pipes/taiga-ui-kit-pipes.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-pipes.js","sources":["ng://@taiga-ui/kit/pipes/taiga-ui-kit-pipes.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAAA;;"}
@@ -1,8 +1,8 @@
1
1
  import { Optional, Self } from '@angular/core';
2
2
  import { TuiDropdownControllerDirective, TUI_DROPDOWN_CONTROLLER } from '@taiga-ui/core';
3
3
  import { NG_VALUE_ACCESSOR } from '@angular/forms';
4
- import { identity } from '@taiga-ui/cdk';
5
4
  import { TUI_VALUE_ACCESSOR } from '@taiga-ui/core/tokens';
5
+ import { identity } from 'rxjs';
6
6
 
7
7
  function fixedDropdownControllerFactory(directive) {
8
8
  directive = directive || new TuiDropdownControllerDirective();
@@ -29,6 +29,7 @@ const LEFT_ALIGNED_DROPDOWN_CONTROLLER_PROVIDER = [
29
29
  },
30
30
  ];
31
31
 
32
+ // TODO: remove in ivy compilation
32
33
  const IDENTITY = identity;
33
34
  const TUI_VALUE_ACCESSOR_PROVIDER = {
34
35
  provide: TUI_VALUE_ACCESSOR,
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-providers.js","sources":["ng://@taiga-ui/kit/providers/specific-dropdown-controllers.ts","ng://@taiga-ui/kit/providers/value-accessor.provider.ts","ng://@taiga-ui/kit/providers/taiga-ui-kit-providers.ts"],"sourcesContent":["import {Optional, Provider} from '@angular/core';\nimport {TUI_DROPDOWN_CONTROLLER, TuiDropdownControllerDirective} from '@taiga-ui/core';\n\nexport function fixedDropdownControllerFactory(\n directive: TuiDropdownControllerDirective | null,\n): TuiDropdownControllerDirective {\n directive = directive || new TuiDropdownControllerDirective();\n directive.limitWidth = 'fixed';\n\n return directive;\n}\n\nexport const FIXED_DROPDOWN_CONTROLLER_PROVIDER: Provider = [\n {\n provide: TUI_DROPDOWN_CONTROLLER,\n deps: [[new Optional(), TuiDropdownControllerDirective]],\n useFactory: fixedDropdownControllerFactory,\n },\n];\n\nexport function leftAlignedDropdownControllerFactory(\n directive: TuiDropdownControllerDirective | null,\n): TuiDropdownControllerDirective {\n directive = directive || new TuiDropdownControllerDirective();\n directive.align = 'left';\n\n return directive;\n}\n\nexport const LEFT_ALIGNED_DROPDOWN_CONTROLLER_PROVIDER: Provider = [\n {\n provide: TUI_DROPDOWN_CONTROLLER,\n deps: [[new Optional(), TuiDropdownControllerDirective]],\n useFactory: leftAlignedDropdownControllerFactory,\n },\n];\n","import {FactoryProvider, Optional, Self} from '@angular/core';\nimport {NG_VALUE_ACCESSOR} from '@angular/forms';\nimport {identity} from '@taiga-ui/cdk';\nimport {TUI_VALUE_ACCESSOR} from '@taiga-ui/core/tokens';\n\nexport const IDENTITY = identity;\n\nexport const TUI_VALUE_ACCESSOR_PROVIDER: FactoryProvider = {\n provide: TUI_VALUE_ACCESSOR,\n deps: [[new Optional(), new Self(), NG_VALUE_ACCESSOR]],\n useFactory: IDENTITY,\n};\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;SAGgB,8BAA8B,CAC1C,SAAgD;IAEhD,SAAS,GAAG,SAAS,IAAI,IAAI,8BAA8B,EAAE,CAAC;IAC9D,SAAS,CAAC,UAAU,GAAG,OAAO,CAAC;IAE/B,OAAO,SAAS,CAAC;AACrB,CAAC;MAEY,kCAAkC,GAAa;IACxD;QACI,OAAO,EAAE,uBAAuB;QAChC,IAAI,EAAE,CAAC,CAAC,IAAI,QAAQ,EAAE,EAAE,8BAA8B,CAAC,CAAC;QACxD,UAAU,EAAE,8BAA8B;KAC7C;EACH;SAEc,oCAAoC,CAChD,SAAgD;IAEhD,SAAS,GAAG,SAAS,IAAI,IAAI,8BAA8B,EAAE,CAAC;IAC9D,SAAS,CAAC,KAAK,GAAG,MAAM,CAAC;IAEzB,OAAO,SAAS,CAAC;AACrB,CAAC;MAEY,yCAAyC,GAAa;IAC/D;QACI,OAAO,EAAE,uBAAuB;QAChC,IAAI,EAAE,CAAC,CAAC,IAAI,QAAQ,EAAE,EAAE,8BAA8B,CAAC,CAAC;QACxD,UAAU,EAAE,oCAAoC;KACnD;;;MC7BQ,QAAQ,GAAG,SAAS;MAEpB,2BAA2B,GAAoB;IACxD,OAAO,EAAE,kBAAkB;IAC3B,IAAI,EAAE,CAAC,CAAC,IAAI,QAAQ,EAAE,EAAE,IAAI,IAAI,EAAE,EAAE,iBAAiB,CAAC,CAAC;IACvD,UAAU,EAAE,QAAQ;;;ACVxB;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-providers.js","sources":["ng://@taiga-ui/kit/providers/specific-dropdown-controllers.ts","ng://@taiga-ui/kit/providers/value-accessor.provider.ts","ng://@taiga-ui/kit/providers/taiga-ui-kit-providers.ts"],"sourcesContent":["import {Optional, Provider} from '@angular/core';\nimport {TUI_DROPDOWN_CONTROLLER, TuiDropdownControllerDirective} from '@taiga-ui/core';\n\nexport function fixedDropdownControllerFactory(\n directive: TuiDropdownControllerDirective | null,\n): TuiDropdownControllerDirective {\n directive = directive || new TuiDropdownControllerDirective();\n directive.limitWidth = 'fixed';\n\n return directive;\n}\n\nexport const FIXED_DROPDOWN_CONTROLLER_PROVIDER: Provider = [\n {\n provide: TUI_DROPDOWN_CONTROLLER,\n deps: [[new Optional(), TuiDropdownControllerDirective]],\n useFactory: fixedDropdownControllerFactory,\n },\n];\n\nexport function leftAlignedDropdownControllerFactory(\n directive: TuiDropdownControllerDirective | null,\n): TuiDropdownControllerDirective {\n directive = directive || new TuiDropdownControllerDirective();\n directive.align = 'left';\n\n return directive;\n}\n\nexport const LEFT_ALIGNED_DROPDOWN_CONTROLLER_PROVIDER: Provider = [\n {\n provide: TUI_DROPDOWN_CONTROLLER,\n deps: [[new Optional(), TuiDropdownControllerDirective]],\n useFactory: leftAlignedDropdownControllerFactory,\n },\n];\n","import {FactoryProvider, Optional, Self} from '@angular/core';\nimport {NG_VALUE_ACCESSOR} from '@angular/forms';\nimport {TUI_VALUE_ACCESSOR} from '@taiga-ui/core/tokens';\nimport {identity} from 'rxjs';\n\n// TODO: remove in ivy compilation\nexport const IDENTITY = identity;\n\nexport const TUI_VALUE_ACCESSOR_PROVIDER: FactoryProvider = {\n provide: TUI_VALUE_ACCESSOR,\n deps: [[new Optional(), new Self(), NG_VALUE_ACCESSOR]],\n useFactory: IDENTITY,\n};\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;SAGgB,8BAA8B,CAC1C,SAAgD;IAEhD,SAAS,GAAG,SAAS,IAAI,IAAI,8BAA8B,EAAE,CAAC;IAC9D,SAAS,CAAC,UAAU,GAAG,OAAO,CAAC;IAE/B,OAAO,SAAS,CAAC;AACrB,CAAC;MAEY,kCAAkC,GAAa;IACxD;QACI,OAAO,EAAE,uBAAuB;QAChC,IAAI,EAAE,CAAC,CAAC,IAAI,QAAQ,EAAE,EAAE,8BAA8B,CAAC,CAAC;QACxD,UAAU,EAAE,8BAA8B;KAC7C;EACH;SAEc,oCAAoC,CAChD,SAAgD;IAEhD,SAAS,GAAG,SAAS,IAAI,IAAI,8BAA8B,EAAE,CAAC;IAC9D,SAAS,CAAC,KAAK,GAAG,MAAM,CAAC;IAEzB,OAAO,SAAS,CAAC;AACrB,CAAC;MAEY,yCAAyC,GAAa;IAC/D;QACI,OAAO,EAAE,uBAAuB;QAChC,IAAI,EAAE,CAAC,CAAC,IAAI,QAAQ,EAAE,EAAE,8BAA8B,CAAC,CAAC;QACxD,UAAU,EAAE,oCAAoC;KACnD;;;AC7BL;MACa,QAAQ,GAAG,SAAS;MAEpB,2BAA2B,GAAoB;IACxD,OAAO,EAAE,kBAAkB;IAC3B,IAAI,EAAE,CAAC,CAAC,IAAI,QAAQ,EAAE,EAAE,IAAI,IAAI,EAAE,EAAE,iBAAiB,CAAC,CAAC;IACvD,UAAU,EAAE,QAAQ;;;ACXxB;;;;;;"}
@@ -1,8 +1,13 @@
1
1
  import { InjectionToken } from '@angular/core';
2
2
  import { extractI18n } from '@taiga-ui/i18n';
3
+ import { TUI_DEFAULT_STRINGIFY, TUI_DEFAULT_IDENTITY_MATCHER, ALWAYS_FALSE_HANDLER } from '@taiga-ui/cdk';
3
4
 
4
5
  const TUI_CALENDAR_DATA_STREAM = new InjectionToken('Stream that emits calendar data change');
5
6
 
7
+ const TUI_DATE_VALUE_TRANSFORMER = new InjectionToken('Control value transformer of TuiDay to custom value format for InputDate* components');
8
+ const TUI_DATE_RANGE_VALUE_TRANSFORMER = new InjectionToken('Control value transformer for InputDateRange component');
9
+ const TUI_DATE_TIME_VALUE_TRANSFORMER = new InjectionToken('Control value transformer for InputDateTime component');
10
+
6
11
  const TUI_CANCEL_WORD = new InjectionToken(`i18n 'cancel' word`, {
7
12
  factory: extractI18n('cancel'),
8
13
  });
@@ -55,6 +60,19 @@ const TUI_COUNTRIES = new InjectionToken('Localized countries names', {
55
60
  factory: extractI18n('countries'),
56
61
  });
57
62
 
63
+ const TUI_DEFAULT_ITEMS_HANDLERS = {
64
+ stringify: TUI_DEFAULT_STRINGIFY,
65
+ identityMatcher: TUI_DEFAULT_IDENTITY_MATCHER,
66
+ disabledItemHandler: ALWAYS_FALSE_HANDLER,
67
+ };
68
+ const TUI_ITEMS_HANDLERS = new InjectionToken('Default items handlers for components', {
69
+ factory: () => TUI_DEFAULT_ITEMS_HANDLERS,
70
+ });
71
+ const tuiItemsHandlersProvider = (options) => ({
72
+ provide: TUI_ITEMS_HANDLERS,
73
+ useValue: Object.assign(Object.assign({}, TUI_DEFAULT_ITEMS_HANDLERS), options),
74
+ });
75
+
58
76
  const TUI_MOBILE_AWARE = new InjectionToken('A flag enabling mobile-specific behavior for supporting components', {
59
77
  factory: () => false,
60
78
  });
@@ -73,5 +91,5 @@ const TUI_VALIDATION_ERRORS = new InjectionToken('Validation errors', {
73
91
  * Generated bundle index. Do not edit.
74
92
  */
75
93
 
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 };
94
+ 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_DEFAULT_ITEMS_HANDLERS, TUI_DIGITAL_INFORMATION_UNITS, TUI_DONE_WORD, TUI_FILE_TEXTS, TUI_FROM_TO_TEXTS, TUI_INPUT_FILE_TEXTS, TUI_ITEMS_HANDLERS, 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, tuiItemsHandlersProvider };
77
95
  //# 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":";;;MAIa,wBAAwB,GAAG,IAAI,cAAc,CAExD,wCAAwC;;MCD7B,eAAe,GAAG,IAAI,cAAc,CAAC,oBAAoB,EAAE;IACpE,OAAO,EAAE,WAAW,CAAC,QAAQ,CAAC;CACjC,EAAE;MAEU,aAAa,GAA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AW,CAAC,qBAAqB,CAAC;CAC9C,EAAE;MAEU,cAAc,GAAG,IAAI,cAAc,CAAC,iBAAiB,EAAE;IAChE,OAAO,EAAE,WAAW,CAAC,WAAW,CAAC;CACpC,EAAE;MAEU,oBAAoB,GAAG,IAAI,cAAc,CAAC,uBAAuB,EAAE;IAC5E,OAAO,EAAE,WAAW,CAAC,iBAAiB,CAAC;CAC1C,EAAE;MAEU,oBAAoB,GAAG,IAAI,cAAc,CAAC,2BAA2B,EAAE;IAChF,OAAO,EAAE,WAAW,CAAC,gBAAgB,CAAC;CACzC,EAAE;MAEU,aAAa,GAEtB,IAAI,cAAc,CAAC,2BAA2B,EAAE;IAChD,OAAO,EAAE,WAAW,CAAC,WAAW,CAAC;CACpC;;MChFY,gBAAgB,GAAG,IAAI,cAAc,CAC9C,oEAAoE,EACpE;IACI,OAAO,EAAE,MAAM,KAAK;CACvB;;MCJQ,mBAAmB,GAAG,IAAI,cAAc,CACjD,oCAAoC;;MCA3B,cAAc,GAAG,IAAI,cAAc,CAC5C,2CAA2C,EAC3C;IACI,OAAO,EAAE;CACZ;;MCHQ,qBAAqB,GAAG,IAAI,cAAc,CAErD,mBAAmB,EAAE;IACnB,OAAO,EAAE,OAAO,EAAE,CAAC;CACtB;;ACRD;;;;;;"}
1
+ {"version":3,"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/items-handlers.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, ValueProvider} from '@angular/core';\nimport {\n ALWAYS_FALSE_HANDLER,\n TUI_DEFAULT_IDENTITY_MATCHER,\n TUI_DEFAULT_STRINGIFY,\n TuiBooleanHandler,\n TuiIdentityMatcher,\n TuiStringHandler,\n} from '@taiga-ui/cdk';\n\nexport interface TuiItemsHandlers<T> {\n readonly stringify: TuiStringHandler<T>;\n readonly identityMatcher: TuiIdentityMatcher<T>;\n readonly disabledItemHandler: TuiBooleanHandler<T>;\n}\n\nexport const TUI_DEFAULT_ITEMS_HANDLERS: TuiItemsHandlers<unknown> = {\n stringify: TUI_DEFAULT_STRINGIFY,\n identityMatcher: TUI_DEFAULT_IDENTITY_MATCHER,\n disabledItemHandler: ALWAYS_FALSE_HANDLER,\n};\n\nexport const TUI_ITEMS_HANDLERS = new InjectionToken<TuiItemsHandlers<unknown>>(\n 'Default items handlers for components',\n {\n factory: () => TUI_DEFAULT_ITEMS_HANDLERS,\n },\n);\n\nexport const tuiItemsHandlersProvider: <T>(\n options: Partial<TuiItemsHandlers<T>>,\n) => ValueProvider = <T>(options: Partial<TuiItemsHandlers<T>>) => ({\n provide: TUI_ITEMS_HANDLERS,\n useValue: {...TUI_DEFAULT_ITEMS_HANDLERS, ...options},\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":";;;;MAIa,wBAAwB,GAAG,IAAI,cAAc,CAExD,wCAAwC;;MCH7B,0BAA0B,GAAG,IAAI,cAAc,CAE1D,sFAAsF,EAAE;MAE7E,gCAAgC,GAAG,IAAI,cAAc,CAEhE,wDAAwD,EAAE;MAE/C,+BAA+B,GAAG,IAAI,cAAc,CAE/D,uDAAuD;;MCR5C,eAAe,GAAG,IAAI,cAAc,CAAC,oBAAoB,EAAE;IACpE,OA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ER_LENGTH, DATE_RANGE_FILLER_LENGTH, TuiDayRange, RANGE_SEPARATOR_CHAR, tuiAssert, CHAR_NO_BREAK_SPACE, CHAR_EN_DASH } from '@taiga-ui/cdk';
2
- import { DATE_TIME_SEPARATOR, TUI_TIME_MASK } from '@taiga-ui/kit/constants';
2
+ import { MAX_TIME_VALUES, DATE_TIME_SEPARATOR } from '@taiga-ui/kit/constants';
3
3
  import { TUI_DIGIT_REGEXP } from '@taiga-ui/core';
4
4
 
5
5
  function normalizeDateValue(dateValue, { value, min, max, dateFormat, dateSeparator }) {
@@ -62,15 +62,15 @@ function tuiCreateAutoCorrectedDateRangePipe(config) {
62
62
  * Adjusts the entered time by omitting only suitable values for hours and minutes
63
63
  * @returns time as a string
64
64
  */
65
- function tuiCreateAutoCorrectedTimePipe(timeMode = 'HH:MM') {
65
+ function tuiCreateAutoCorrectedTimePipe(timeMode = 'HH:MM', maxValues = {}) {
66
66
  const timeFormatArray = ['HH', 'MM', 'SS', 'MS'];
67
- const maxValue = { HH: 23, MM: 59, SS: 59, MS: 999 };
68
- return (conformedValue) => {
67
+ const safeValues = Object.assign(Object.assign({}, MAX_TIME_VALUES), maxValues);
68
+ return conformedValue => {
69
69
  const indexesOfPipedChars = [];
70
70
  const conformedValueArr = conformedValue.split('');
71
71
  timeFormatArray.forEach(format => {
72
72
  const position = timeMode.indexOf(format);
73
- const maxFirstDigit = parseInt(maxValue[format].toString().substr(0, 1), 10);
73
+ const maxFirstDigit = parseInt(String(safeValues[format]).substr(0, 1), 10);
74
74
  if (parseInt(conformedValueArr[position], 10) > maxFirstDigit) {
75
75
  conformedValueArr[position + 1] = conformedValueArr[position];
76
76
  conformedValueArr[position] = '0';
@@ -78,7 +78,7 @@ function tuiCreateAutoCorrectedTimePipe(timeMode = 'HH:MM') {
78
78
  }
79
79
  });
80
80
  const isInvalid = timeFormatArray.some(format => parseInt(conformedValue.substr(timeMode.indexOf(format), 2), 10) >
81
- maxValue[format]);
81
+ safeValues[format]);
82
82
  return isInvalid
83
83
  ? false
84
84
  : {
@@ -138,13 +138,21 @@ function tuiCreateDateRangeMask(dateMode, dateSeparator) {
138
138
  ];
139
139
  }
140
140
 
141
- function tuiCreateTimeMask(mode) {
141
+ function tuiCreateTimePartMask(maxPartValue, prefix) {
142
+ const { length } = String(maxPartValue);
143
+ const regExp = Array(length).fill(TUI_DIGIT_REGEXP);
144
+ if (prefix) {
145
+ regExp.unshift(prefix);
146
+ }
147
+ return regExp;
148
+ }
149
+ function tuiCreateTimeMask(mode, maxValues = {}) {
150
+ const { HH, MM, SS, MS } = Object.assign(Object.assign({}, MAX_TIME_VALUES), maxValues);
142
151
  return [
143
- ...TUI_TIME_MASK,
144
- ...(mode.includes('HH:MM:SS') ? [':', TUI_DIGIT_REGEXP, TUI_DIGIT_REGEXP] : []),
145
- ...(mode === 'HH:MM:SS.MSS'
146
- ? ['.', TUI_DIGIT_REGEXP, TUI_DIGIT_REGEXP, TUI_DIGIT_REGEXP]
147
- : []),
152
+ ...tuiCreateTimePartMask(HH),
153
+ ...tuiCreateTimePartMask(MM, ':'),
154
+ ...(mode.includes('HH:MM:SS') ? tuiCreateTimePartMask(SS, ':') : []),
155
+ ...(mode === 'HH:MM:SS.MSS' ? tuiCreateTimePartMask(MS, '.') : []),
148
156
  ];
149
157
  }
150
158
 
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-utils-mask.js","sources":["ng://@taiga-ui/kit/utils/mask/create-auto-corrected-date-pipe.ts","ng://@taiga-ui/kit/utils/mask/create-auto-corrected-date-range-pipe.ts","ng://@taiga-ui/kit/utils/mask/create-auto-corrected-time-pipe.ts","ng://@taiga-ui/kit/utils/mask/create-auto-corrected-date-time-pipe.ts","ng://@taiga-ui/kit/utils/mask/create-date-mask.ts","ng://@taiga-ui/kit/utils/mask/create-date-range-mask.ts","ng://@taiga-ui/kit/utils/mask/create-time-mask.ts","ng://@taiga-ui/kit/utils/mask/taiga-ui-kit-utils-mask.ts"],"sourcesContent":["import {DATE_FILLER_LENGTH, TuiDateMode, TuiDay} from '@taiga-ui/cdk';\nimport {TuiTextMaskPipeHandler, TuiWithOptionalMinMaxWithValue} from '@taiga-ui/core';\n\nexport interface TuiAutoCorrectedDatePipeConfigs\n extends TuiWithOptionalMinMaxWithValue<TuiDay | null, TuiDay> {\n dateFormat: TuiDateMode;\n dateSeparator: string;\n}\n\nexport function normalizeDateValue(\n dateValue: string,\n {value, min, max, dateFormat, dateSeparator}: TuiAutoCorrectedDatePipeConfigs,\n): string {\n return value && value.toString(dateFormat, dateSeparator) === dateValue\n ? dateValue\n : TuiDay.normalizeParse(dateValue, dateFormat)\n .dayLimit(min, max)\n .toString(dateFormat, dateSeparator);\n}\n\nexport function tuiCreateAutoCorrectedDatePipe(\n config: TuiAutoCorrectedDatePipeConfigs,\n): TuiTextMaskPipeHandler {\n return value => {\n if (value.length !== DATE_FILLER_LENGTH) {\n return {value};\n }\n\n return {\n value: normalizeDateValue(value, config),\n };\n };\n}\n","import {\n DATE_FILLER_LENGTH,\n DATE_RANGE_FILLER_LENGTH,\n RANGE_SEPARATOR_CHAR,\n TuiDateMode,\n TuiDay,\n TuiDayRange,\n} from '@taiga-ui/cdk';\nimport {TuiTextMaskPipeHandler, TuiWithOptionalMinMaxWithValue} from '@taiga-ui/core';\n\ninterface TuiAutoCorrectedDatePipeConfigs\n extends TuiWithOptionalMinMaxWithValue<TuiDayRange | null, TuiDay> {\n dateFormat: TuiDateMode;\n dateSeparator: string;\n}\n\nfunction parseWithLimit(value: string, config: TuiAutoCorrectedDatePipeConfigs): TuiDay {\n return TuiDay.normalizeParse(\n value.slice(0, DATE_FILLER_LENGTH),\n config.dateFormat,\n ).dayLimit(config.min, config.max);\n}\n\nfunction processRawValue(value: string, config: TuiAutoCorrectedDatePipeConfigs): string {\n const {dateFormat, dateSeparator} = config;\n\n switch (value.length) {\n case DATE_FILLER_LENGTH:\n return parseWithLimit(value, config).toString(dateFormat, dateSeparator);\n case DATE_FILLER_LENGTH + RANGE_SEPARATOR_CHAR.length:\n return (\n parseWithLimit(value, config).toString(dateFormat, dateSeparator) +\n RANGE_SEPARATOR_CHAR\n );\n case DATE_RANGE_FILLER_LENGTH:\n return config.value &&\n config.value.toString(dateFormat, dateSeparator) === value\n ? value\n : TuiDayRange.sort(\n parseWithLimit(value.slice(0, DATE_FILLER_LENGTH), config),\n parseWithLimit(\n value.slice(DATE_FILLER_LENGTH + RANGE_SEPARATOR_CHAR.length),\n config,\n ),\n ).toString(dateFormat, dateSeparator);\n default:\n return value;\n }\n}\n\n/**\n * Normalizes date in formatted string\n *\n * Normalizes when:\n *\n * 1. It is a single date\n * 2. It is a single date and a separator\n * 3. It is two dates and a separator between them\n *\n * In **other** cases, the value does not change.\n *\n * @param config with min and max date\n * @return mask pipe handler that handles `min` and `max`\n */\nexport function tuiCreateAutoCorrectedDateRangePipe(\n config: TuiAutoCorrectedDatePipeConfigs,\n): TuiTextMaskPipeHandler {\n return value => ({value: processRawValue(value, config)});\n}\n","import {TuiTimeMode} from '@taiga-ui/cdk';\nimport {TuiTextMaskPipeHandler} from '@taiga-ui/core';\n\n/**\n * Adjusts the entered time by omitting only suitable values for hours and minutes\n * @returns time as a string\n */\nexport function tuiCreateAutoCorrectedTimePipe(\n timeMode: TuiTimeMode = 'HH:MM',\n): TuiTextMaskPipeHandler {\n const timeFormatArray: ['HH', 'MM', 'SS', 'MS'] = ['HH', 'MM', 'SS', 'MS'];\n const maxValue = {HH: 23, MM: 59, SS: 59, MS: 999};\n\n return (conformedValue: string) => {\n const indexesOfPipedChars: number[] = [];\n const conformedValueArr = conformedValue.split('');\n\n timeFormatArray.forEach(format => {\n const position = timeMode.indexOf(format);\n const maxFirstDigit = parseInt(maxValue[format].toString().substr(0, 1), 10);\n\n if (parseInt(conformedValueArr[position], 10) > maxFirstDigit) {\n conformedValueArr[position + 1] = conformedValueArr[position];\n conformedValueArr[position] = '0';\n indexesOfPipedChars.push(position);\n }\n });\n\n const isInvalid = timeFormatArray.some(\n format =>\n parseInt(conformedValue.substr(timeMode.indexOf(format), 2), 10) >\n maxValue[format],\n );\n\n return isInvalid\n ? false\n : {\n value: conformedValueArr.join(''),\n indexesOfPipedChars,\n };\n };\n}\n","import {DATE_FILLER_LENGTH, TuiTimeMode} from '@taiga-ui/cdk';\nimport {TuiTextMaskPipeHandler} from '@taiga-ui/core';\nimport {DATE_TIME_SEPARATOR} from '@taiga-ui/kit/constants';\n\nimport {\n normalizeDateValue,\n TuiAutoCorrectedDatePipeConfigs,\n} from './create-auto-corrected-date-pipe';\nimport {tuiCreateAutoCorrectedTimePipe} from './create-auto-corrected-time-pipe';\n\ninterface TuiAutoCorrectedDateTimePipeConfigs extends TuiAutoCorrectedDatePipeConfigs {\n timeMode: TuiTimeMode;\n}\n\nexport function tuiCreateAutoCorrectedDateTimePipe(\n configs: TuiAutoCorrectedDateTimePipeConfigs,\n): TuiTextMaskPipeHandler {\n const timePipe = tuiCreateAutoCorrectedTimePipe(configs.timeMode);\n\n return value => {\n if (value.length < DATE_FILLER_LENGTH) {\n return {value};\n }\n\n const [date, time] = value.split(DATE_TIME_SEPARATOR);\n\n const formattedDate = normalizeDateValue(date, configs);\n\n if (!time) {\n return {value: formattedDate};\n }\n\n const pipedTime = timePipe(time, {} as any);\n\n if (!pipedTime || typeof pipedTime === 'string') {\n return false;\n }\n\n return {\n value: `${formattedDate}${DATE_TIME_SEPARATOR}${pipedTime.value}`,\n indexesOfPipedChars: pipedTime.indexesOfPipedChars\n ? pipedTime.indexesOfPipedChars.map(i => i + date.length + 2)\n : undefined,\n };\n };\n}\n","import {tuiAssert, TuiDateMode} from '@taiga-ui/cdk';\nimport {TUI_DIGIT_REGEXP, TuiTextMaskList} from '@taiga-ui/core';\n\nconst TWO_DIGITS = Array(2).fill(TUI_DIGIT_REGEXP);\nconst FOUR_DIGITS = Array(4).fill(TUI_DIGIT_REGEXP);\n\nexport function tuiCreateDateMask(mode: TuiDateMode, separator: string): TuiTextMaskList {\n tuiAssert.assert(separator.length === 1, 'Separator should consist of only 1 symbol');\n\n switch (mode) {\n case 'YMD':\n return [...FOUR_DIGITS, separator, ...TWO_DIGITS, separator, ...TWO_DIGITS];\n case 'MDY':\n case 'DMY':\n default:\n return [...TWO_DIGITS, separator, ...TWO_DIGITS, separator, ...FOUR_DIGITS];\n }\n}\n","import {CHAR_EN_DASH, CHAR_NO_BREAK_SPACE, tuiAssert, TuiDateMode} from '@taiga-ui/cdk';\nimport {TuiTextMaskList} from '@taiga-ui/core';\n\nimport {tuiCreateDateMask} from './create-date-mask';\n\nexport function tuiCreateDateRangeMask(\n dateMode: TuiDateMode,\n dateSeparator: string,\n): TuiTextMaskList {\n tuiAssert.assert(\n dateSeparator.length === 1,\n 'Separator should consist of only 1 symbol',\n );\n\n const dateMask = tuiCreateDateMask(dateMode, dateSeparator);\n\n return [\n ...dateMask,\n CHAR_NO_BREAK_SPACE,\n CHAR_EN_DASH,\n CHAR_NO_BREAK_SPACE,\n ...dateMask,\n ];\n}\n","import {TuiTimeMode} from '@taiga-ui/cdk';\nimport {TUI_DIGIT_REGEXP, TuiTextMaskList} from '@taiga-ui/core';\nimport {TUI_TIME_MASK} from '@taiga-ui/kit/constants';\n\nexport function tuiCreateTimeMask(mode: TuiTimeMode): TuiTextMaskList {\n return [\n ...TUI_TIME_MASK,\n ...(mode.includes('HH:MM:SS') ? [':', TUI_DIGIT_REGEXP, TUI_DIGIT_REGEXP] : []),\n ...(mode === 'HH:MM:SS.MSS'\n ? ['.', TUI_DIGIT_REGEXP, TUI_DIGIT_REGEXP, TUI_DIGIT_REGEXP]\n : []),\n ];\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;SASgB,kBAAkB,CAC9B,SAAiB,EACjB,EAAC,KAAK,EAAE,GAAG,EAAE,GAAG,EAAE,UAAU,EAAE,aAAa,EAAkC;IAE7E,OAAO,KAAK,IAAI,KAAK,CAAC,QAAQ,CAAC,UAAU,EAAE,aAAa,CAAC,KAAK,S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GAAG,EAAE,gBAAgB,EAAE,gBAAgB,CAAC,GAAG,EAAE,CAAC;QAC/E,IAAI,IAAI,KAAK,cAAc;cACrB,CAAC,GAAG,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,gBAAgB,CAAC;cAC3D,EAAE,CAAC;KACZ,CAAC;AACN;;ACZA;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-utils-mask.js","sources":["ng://@taiga-ui/kit/utils/mask/create-auto-corrected-date-pipe.ts","ng://@taiga-ui/kit/utils/mask/create-auto-corrected-date-range-pipe.ts","ng://@taiga-ui/kit/utils/mask/create-auto-corrected-time-pipe.ts","ng://@taiga-ui/kit/utils/mask/create-auto-corrected-date-time-pipe.ts","ng://@taiga-ui/kit/utils/mask/create-date-mask.ts","ng://@taiga-ui/kit/utils/mask/create-date-range-mask.ts","ng://@taiga-ui/kit/utils/mask/create-time-mask.ts","ng://@taiga-ui/kit/utils/mask/taiga-ui-kit-utils-mask.ts"],"sourcesContent":["import {DATE_FILLER_LENGTH, TuiDateMode, TuiDay} from '@taiga-ui/cdk';\nimport {TuiTextMaskPipeHandler, TuiWithOptionalMinMaxWithValue} from '@taiga-ui/core';\n\nexport interface TuiAutoCorrectedDatePipeConfigs\n extends TuiWithOptionalMinMaxWithValue<TuiDay | null, TuiDay> {\n dateFormat: TuiDateMode;\n dateSeparator: string;\n}\n\nexport function normalizeDateValue(\n dateValue: string,\n {value, min, max, dateFormat, dateSeparator}: TuiAutoCorrectedDatePipeConfigs,\n): string {\n return value && value.toString(dateFormat, dateSeparator) === dateValue\n ? dateValue\n : TuiDay.normalizeParse(dateValue, dateFormat)\n .dayLimit(min, max)\n .toString(dateFormat, dateSeparator);\n}\n\nexport function tuiCreateAutoCorrectedDatePipe(\n config: TuiAutoCorrectedDatePipeConfigs,\n): TuiTextMaskPipeHandler {\n return value => {\n if (value.length !== DATE_FILLER_LENGTH) {\n return {value};\n }\n\n return {\n value: normalizeDateValue(value, config),\n };\n };\n}\n","import {\n DATE_FILLER_LENGTH,\n DATE_RANGE_FILLER_LENGTH,\n RANGE_SEPARATOR_CHAR,\n TuiDateMode,\n TuiDay,\n TuiDayRange,\n} from '@taiga-ui/cdk';\nimport {TuiTextMaskPipeHandler, TuiWithOptionalMinMaxWithValue} from '@taiga-ui/core';\n\ninterface TuiAutoCorrectedDatePipeConfigs\n extends TuiWithOptionalMinMaxWithValue<TuiDayRange | null, TuiDay> {\n dateFormat: TuiDateMode;\n dateSeparator: string;\n}\n\nfunction parseWithLimit(value: string, config: TuiAutoCorrectedDatePipeConfigs): TuiDay {\n return TuiDay.normalizeParse(\n value.slice(0, DATE_FILLER_LENGTH),\n config.dateFormat,\n ).dayLimit(config.min, config.max);\n}\n\nfunction processRawValue(value: string, config: TuiAutoCorrectedDatePipeConfigs): string {\n const {dateFormat, dateSeparator} = config;\n\n switch (value.length) {\n case DATE_FILLER_LENGTH:\n return parseWithLimit(value, config).toString(dateFormat, dateSeparator);\n case DATE_FILLER_LENGTH + RANGE_SEPARATOR_CHAR.length:\n return (\n parseWithLimit(value, config).toString(dateFormat, dateSeparator) +\n RANGE_SEPARATOR_CHAR\n );\n case DATE_RANGE_FILLER_LENGTH:\n return config.value &&\n config.value.toString(dateFormat, dateSeparator) === value\n ? value\n : TuiDayRange.sort(\n parseWithLimit(value.slice(0, DATE_FILLER_LENGTH), config),\n parseWithLimit(\n value.slice(DATE_FILLER_LENGTH + RANGE_SEPARATOR_CHAR.length),\n config,\n ),\n ).toString(dateFormat, dateSeparator);\n default:\n return value;\n }\n}\n\n/**\n * Normalizes date in formatted string\n *\n * Normalizes when:\n *\n * 1. It is a single date\n * 2. It is a single date and a separator\n * 3. It is two dates and a separator between them\n *\n * In **other** cases, the value does not change.\n *\n * @param config with min and max date\n * @return mask pipe handler that handles `min` and `max`\n */\nexport function tuiCreateAutoCorrectedDateRangePipe(\n config: TuiAutoCorrectedDatePipeConfigs,\n): TuiTextMaskPipeHandler {\n return value => ({value: processRawValue(value, config)});\n}\n","import {TuiTimeMode} from '@taiga-ui/cdk';\nimport {TuiTextMaskPipeHandler} from '@taiga-ui/core';\nimport {MAX_TIME_VALUES} from '@taiga-ui/kit/constants';\nimport {TuiTimeFormatParts} from '@taiga-ui/kit/types';\n\n/**\n * Adjusts the entered time by omitting only suitable values for hours and minutes\n * @returns time as a string\n */\nexport function tuiCreateAutoCorrectedTimePipe(\n timeMode: TuiTimeMode = 'HH:MM',\n maxValues: Partial<Record<TuiTimeFormatParts, number>> = {},\n): TuiTextMaskPipeHandler {\n const timeFormatArray = ['HH', 'MM', 'SS', 'MS'] as const;\n const safeValues = {\n ...MAX_TIME_VALUES,\n ...maxValues,\n };\n\n return conformedValue => {\n const indexesOfPipedChars: number[] = [];\n const conformedValueArr = conformedValue.split('');\n\n timeFormatArray.forEach(format => {\n const position = timeMode.indexOf(format);\n const maxFirstDigit = parseInt(String(safeValues[format]).substr(0, 1), 10);\n\n if (parseInt(conformedValueArr[position], 10) > maxFirstDigit) {\n conformedValueArr[position + 1] = conformedValueArr[position];\n conformedValueArr[position] = '0';\n indexesOfPipedChars.push(position);\n }\n });\n\n const isInvalid = timeFormatArray.some(\n format =>\n parseInt(conformedValue.substr(timeMode.indexOf(format), 2), 10) >\n safeValues[format],\n );\n\n return isInvalid\n ? false\n : {\n value: conformedValueArr.join(''),\n indexesOfPipedChars,\n };\n };\n}\n","import {DATE_FILLER_LENGTH, TuiTimeMode} from '@taiga-ui/cdk';\nimport {TuiTextMaskPipeHandler} from '@taiga-ui/core';\nimport {DATE_TIME_SEPARATOR} from '@taiga-ui/kit/constants';\n\nimport {\n normalizeDateValue,\n TuiAutoCorrectedDatePipeConfigs,\n} from './create-auto-corrected-date-pipe';\nimport {tuiCreateAutoCorrectedTimePipe} from './create-auto-corrected-time-pipe';\n\ninterface TuiAutoCorrectedDateTimePipeConfigs extends TuiAutoCorrectedDatePipeConfigs {\n timeMode: TuiTimeMode;\n}\n\nexport function tuiCreateAutoCorrectedDateTimePipe(\n configs: TuiAutoCorrectedDateTimePipeConfigs,\n): TuiTextMaskPipeHandler {\n const timePipe = tuiCreateAutoCorrectedTimePipe(configs.timeMode);\n\n return value => {\n if (value.length < DATE_FILLER_LENGTH) {\n return {value};\n }\n\n const [date, time] = value.split(DATE_TIME_SEPARATOR);\n\n const formattedDate = normalizeDateValue(date, configs);\n\n if (!time) {\n return {value: formattedDate};\n }\n\n const pipedTime = timePipe(time, {} as any);\n\n if (!pipedTime || typeof pipedTime === 'string') {\n return false;\n }\n\n return {\n value: `${formattedDate}${DATE_TIME_SEPARATOR}${pipedTime.value}`,\n indexesOfPipedChars: pipedTime.indexesOfPipedChars\n ? pipedTime.indexesOfPipedChars.map(i => i + date.length + 2)\n : undefined,\n };\n };\n}\n","import {tuiAssert, TuiDateMode} from '@taiga-ui/cdk';\nimport {TUI_DIGIT_REGEXP, TuiTextMaskList} from '@taiga-ui/core';\n\nconst TWO_DIGITS = Array(2).fill(TUI_DIGIT_REGEXP);\nconst FOUR_DIGITS = Array(4).fill(TUI_DIGIT_REGEXP);\n\nexport function tuiCreateDateMask(mode: TuiDateMode, separator: string): TuiTextMaskList {\n tuiAssert.assert(separator.length === 1, 'Separator should consist of only 1 symbol');\n\n switch (mode) {\n case 'YMD':\n return [...FOUR_DIGITS, separator, ...TWO_DIGITS, separator, ...TWO_DIGITS];\n case 'MDY':\n case 'DMY':\n default:\n return [...TWO_DIGITS, separator, ...TWO_DIGITS, separator, ...FOUR_DIGITS];\n }\n}\n","import {CHAR_EN_DASH, CHAR_NO_BREAK_SPACE, tuiAssert, TuiDateMode} from '@taiga-ui/cdk';\nimport {TuiTextMaskList} from '@taiga-ui/core';\n\nimport {tuiCreateDateMask} from './create-date-mask';\n\nexport function tuiCreateDateRangeMask(\n dateMode: TuiDateMode,\n dateSeparator: string,\n): TuiTextMaskList {\n tuiAssert.assert(\n dateSeparator.length === 1,\n 'Separator should consist of only 1 symbol',\n );\n\n const dateMask = tuiCreateDateMask(dateMode, dateSeparator);\n\n return [\n ...dateMask,\n CHAR_NO_BREAK_SPACE,\n CHAR_EN_DASH,\n CHAR_NO_BREAK_SPACE,\n ...dateMask,\n ];\n}\n","import {TuiTimeMode} from '@taiga-ui/cdk';\nimport {TUI_DIGIT_REGEXP, TuiTextMaskList} from '@taiga-ui/core';\nimport {MAX_TIME_VALUES} from '@taiga-ui/kit/constants';\nimport {TuiTimeFormatParts} from '@taiga-ui/kit/types';\n\nfunction tuiCreateTimePartMask(\n maxPartValue: number,\n prefix?: string,\n): Array<string | RegExp> {\n const {length} = String(maxPartValue);\n const regExp = Array(length).fill(TUI_DIGIT_REGEXP);\n\n if (prefix) {\n regExp.unshift(prefix);\n }\n\n return regExp;\n}\n\nexport function tuiCreateTimeMask(\n mode: TuiTimeMode,\n maxValues: Partial<Record<TuiTimeFormatParts, number>> = {},\n): TuiTextMaskList {\n const {HH, MM, SS, MS} = {\n ...MAX_TIME_VALUES,\n ...maxValues,\n };\n\n return [\n ...tuiCreateTimePartMask(HH),\n ...tuiCreateTimePartMask(MM, ':'),\n ...(mode.includes('HH:MM:SS') ? tuiCreateTimePartMask(SS, ':') : []),\n ...(mode === 'HH:MM:SS.MSS' ? tuiCreateTimePartMask(MS, '.') : []),\n ];\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;SASgB,kBAAkB,CAC9B,SAAiB,EACjB,EAAC,KAAK,EAAE,GAAG,EAAE,GAAG,EAAE,UAAU,EAAE,aAAa,EAAkC;IAE7E,OAAO,KAAK,IAAI,KAAK,CAAC,QAAQ,CAAC,UAAU,EAAE,aAAa,CAAC,KAAK,SAAS;UACjE,SAAS;UACT,MAAM,CAAC,cAAc,CAAC,SAAS,EAAE,UAAU,CAAC;aACvC,QAAQ,CAAC,GAAG,EAAE,GAAG,CAAC;aAClB,QAAQ,CAAC,UAAU,EAAE,aAAa,CAAC,CAAC;AACnD,CAAC;SAEe,8BAA8B,CAC1C,MAAuC;IAEvC,OAAO,KAAK;QACR,IAAI,KAA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