@taiga-ui/kit 2.33.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 (469) hide show
  1. package/abstract/taiga-ui-kit-abstract.metadata.json +1 -1
  2. package/bundles/taiga-ui-kit-abstract.umd.js +2 -2
  3. package/bundles/taiga-ui-kit-abstract.umd.js.map +1 -1
  4. package/bundles/taiga-ui-kit-abstract.umd.min.js +1 -1
  5. package/bundles/taiga-ui-kit-abstract.umd.min.js.map +1 -1
  6. package/bundles/taiga-ui-kit-components-accordion.umd.js +2 -2
  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 +14 -1
  11. package/bundles/taiga-ui-kit-components-arrow.umd.js.map +1 -1
  12. package/bundles/taiga-ui-kit-components-arrow.umd.min.js +1 -1
  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-carousel.umd.js.map +1 -1
  31. package/bundles/taiga-ui-kit-components-carousel.umd.min.js.map +1 -1
  32. package/bundles/taiga-ui-kit-components-checkbox-block.umd.js +2 -2
  33. package/bundles/taiga-ui-kit-components-checkbox-block.umd.js.map +1 -1
  34. package/bundles/taiga-ui-kit-components-checkbox-block.umd.min.js +2 -2
  35. package/bundles/taiga-ui-kit-components-checkbox-block.umd.min.js.map +1 -1
  36. package/bundles/taiga-ui-kit-components-checkbox-labeled.umd.js +2 -2
  37. package/bundles/taiga-ui-kit-components-checkbox-labeled.umd.js.map +1 -1
  38. package/bundles/taiga-ui-kit-components-checkbox-labeled.umd.min.js +1 -1
  39. package/bundles/taiga-ui-kit-components-checkbox-labeled.umd.min.js.map +1 -1
  40. package/bundles/taiga-ui-kit-components-checkbox.umd.js +2 -2
  41. package/bundles/taiga-ui-kit-components-checkbox.umd.js.map +1 -1
  42. package/bundles/taiga-ui-kit-components-checkbox.umd.min.js +1 -1
  43. package/bundles/taiga-ui-kit-components-checkbox.umd.min.js.map +1 -1
  44. package/bundles/taiga-ui-kit-components-combo-box.umd.js +63 -21
  45. package/bundles/taiga-ui-kit-components-combo-box.umd.js.map +1 -1
  46. package/bundles/taiga-ui-kit-components-combo-box.umd.min.js +2 -2
  47. package/bundles/taiga-ui-kit-components-combo-box.umd.min.js.map +1 -1
  48. package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.js +17 -11
  49. package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.js.map +1 -1
  50. package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.min.js +2 -2
  51. package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.min.js.map +1 -1
  52. package/bundles/taiga-ui-kit-components-field-error.umd.js +10 -15
  53. package/bundles/taiga-ui-kit-components-field-error.umd.js.map +1 -1
  54. package/bundles/taiga-ui-kit-components-field-error.umd.min.js +1 -1
  55. package/bundles/taiga-ui-kit-components-field-error.umd.min.js.map +1 -1
  56. package/bundles/taiga-ui-kit-components-filter.umd.js +2 -2
  57. package/bundles/taiga-ui-kit-components-filter.umd.js.map +1 -1
  58. package/bundles/taiga-ui-kit-components-filter.umd.min.js +1 -1
  59. package/bundles/taiga-ui-kit-components-filter.umd.min.js.map +1 -1
  60. package/bundles/taiga-ui-kit-components-input-count.umd.js +7 -2
  61. package/bundles/taiga-ui-kit-components-input-count.umd.js.map +1 -1
  62. package/bundles/taiga-ui-kit-components-input-count.umd.min.js +1 -1
  63. package/bundles/taiga-ui-kit-components-input-count.umd.min.js.map +1 -1
  64. package/bundles/taiga-ui-kit-components-input-password.umd.js +5 -0
  65. package/bundles/taiga-ui-kit-components-input-password.umd.js.map +1 -1
  66. package/bundles/taiga-ui-kit-components-input-password.umd.min.js +1 -1
  67. package/bundles/taiga-ui-kit-components-input-password.umd.min.js.map +1 -1
  68. package/bundles/taiga-ui-kit-components-input-range.umd.js +1 -1
  69. package/bundles/taiga-ui-kit-components-input-range.umd.min.js +1 -1
  70. package/bundles/taiga-ui-kit-components-input-range.umd.min.js.map +1 -1
  71. package/bundles/taiga-ui-kit-components-input-slider.umd.js +1 -1
  72. package/bundles/taiga-ui-kit-components-input-slider.umd.min.js +2 -2
  73. package/bundles/taiga-ui-kit-components-input-slider.umd.min.js.map +1 -1
  74. package/bundles/taiga-ui-kit-components-input-tag.umd.js +42 -13
  75. package/bundles/taiga-ui-kit-components-input-tag.umd.js.map +1 -1
  76. package/bundles/taiga-ui-kit-components-input-tag.umd.min.js +2 -2
  77. package/bundles/taiga-ui-kit-components-input-tag.umd.min.js.map +1 -1
  78. package/bundles/taiga-ui-kit-components-input-time.umd.js +5 -0
  79. package/bundles/taiga-ui-kit-components-input-time.umd.js.map +1 -1
  80. package/bundles/taiga-ui-kit-components-input-time.umd.min.js +1 -1
  81. package/bundles/taiga-ui-kit-components-input-time.umd.min.js.map +1 -1
  82. package/bundles/taiga-ui-kit-components-marker-icon.umd.js +2 -2
  83. package/bundles/taiga-ui-kit-components-marker-icon.umd.js.map +1 -1
  84. package/bundles/taiga-ui-kit-components-marker-icon.umd.min.js +1 -1
  85. package/bundles/taiga-ui-kit-components-marker-icon.umd.min.js.map +1 -1
  86. package/bundles/taiga-ui-kit-components-multi-select.umd.js +34 -13
  87. package/bundles/taiga-ui-kit-components-multi-select.umd.js.map +1 -1
  88. package/bundles/taiga-ui-kit-components-multi-select.umd.min.js +2 -2
  89. package/bundles/taiga-ui-kit-components-multi-select.umd.min.js.map +1 -1
  90. package/bundles/taiga-ui-kit-components-radio-block.umd.js +2 -2
  91. package/bundles/taiga-ui-kit-components-radio-block.umd.js.map +1 -1
  92. package/bundles/taiga-ui-kit-components-radio-block.umd.min.js +1 -1
  93. package/bundles/taiga-ui-kit-components-radio-block.umd.min.js.map +1 -1
  94. package/bundles/taiga-ui-kit-components-radio-labeled.umd.js +2 -2
  95. package/bundles/taiga-ui-kit-components-radio-labeled.umd.js.map +1 -1
  96. package/bundles/taiga-ui-kit-components-radio-labeled.umd.min.js +1 -1
  97. package/bundles/taiga-ui-kit-components-radio-labeled.umd.min.js.map +1 -1
  98. package/bundles/taiga-ui-kit-components-radio-list.umd.js +2 -2
  99. package/bundles/taiga-ui-kit-components-radio-list.umd.js.map +1 -1
  100. package/bundles/taiga-ui-kit-components-radio-list.umd.min.js +1 -1
  101. package/bundles/taiga-ui-kit-components-radio-list.umd.min.js.map +1 -1
  102. package/bundles/taiga-ui-kit-components-radio.umd.js +7 -2
  103. package/bundles/taiga-ui-kit-components-radio.umd.js.map +1 -1
  104. package/bundles/taiga-ui-kit-components-radio.umd.min.js +1 -1
  105. package/bundles/taiga-ui-kit-components-radio.umd.min.js.map +1 -1
  106. package/bundles/taiga-ui-kit-components-range.umd.js +1 -1
  107. package/bundles/taiga-ui-kit-components-range.umd.min.js +1 -1
  108. package/bundles/taiga-ui-kit-components-range.umd.min.js.map +1 -1
  109. package/bundles/taiga-ui-kit-components-rating.umd.js +5 -0
  110. package/bundles/taiga-ui-kit-components-rating.umd.js.map +1 -1
  111. package/bundles/taiga-ui-kit-components-rating.umd.min.js +1 -1
  112. package/bundles/taiga-ui-kit-components-rating.umd.min.js.map +1 -1
  113. package/bundles/taiga-ui-kit-components-select.umd.js +35 -10
  114. package/bundles/taiga-ui-kit-components-select.umd.js.map +1 -1
  115. package/bundles/taiga-ui-kit-components-select.umd.min.js +2 -2
  116. package/bundles/taiga-ui-kit-components-select.umd.min.js.map +1 -1
  117. package/bundles/taiga-ui-kit-components-slider.umd.js +142 -27
  118. package/bundles/taiga-ui-kit-components-slider.umd.js.map +1 -1
  119. package/bundles/taiga-ui-kit-components-slider.umd.min.js +2 -2
  120. package/bundles/taiga-ui-kit-components-slider.umd.min.js.map +1 -1
  121. package/bundles/taiga-ui-kit-components-tag.umd.js +9 -3
  122. package/bundles/taiga-ui-kit-components-tag.umd.js.map +1 -1
  123. package/bundles/taiga-ui-kit-components-tag.umd.min.js +1 -1
  124. package/bundles/taiga-ui-kit-components-tag.umd.min.js.map +1 -1
  125. package/bundles/taiga-ui-kit-components-toggle.umd.js +7 -2
  126. package/bundles/taiga-ui-kit-components-toggle.umd.js.map +1 -1
  127. package/bundles/taiga-ui-kit-components-toggle.umd.min.js +1 -1
  128. package/bundles/taiga-ui-kit-components-toggle.umd.min.js.map +1 -1
  129. package/bundles/taiga-ui-kit-pipes-field-error.umd.js +389 -0
  130. package/bundles/taiga-ui-kit-pipes-field-error.umd.js.map +1 -0
  131. package/bundles/taiga-ui-kit-pipes-field-error.umd.min.js +16 -0
  132. package/bundles/taiga-ui-kit-pipes-field-error.umd.min.js.map +1 -0
  133. package/bundles/taiga-ui-kit-pipes.umd.js +12 -4
  134. package/bundles/taiga-ui-kit-pipes.umd.js.map +1 -1
  135. package/bundles/taiga-ui-kit-pipes.umd.min.js +1 -1
  136. package/bundles/taiga-ui-kit-tokens.umd.js +239 -4
  137. package/bundles/taiga-ui-kit-tokens.umd.js.map +1 -1
  138. package/bundles/taiga-ui-kit-tokens.umd.min.js +15 -1
  139. package/bundles/taiga-ui-kit-tokens.umd.min.js.map +1 -1
  140. package/components/accordion/taiga-ui-kit-components-accordion.metadata.json +1 -1
  141. package/components/arrow/arrow-options.d.ts +7 -5
  142. package/components/arrow/taiga-ui-kit-components-arrow.metadata.json +1 -1
  143. package/components/avatar/taiga-ui-kit-components-avatar.metadata.json +1 -1
  144. package/components/badge/taiga-ui-kit-components-badge.metadata.json +1 -1
  145. package/components/badged-content/taiga-ui-kit-components-badged-content.metadata.json +1 -1
  146. package/components/breadcrumbs/taiga-ui-kit-components-breadcrumbs.metadata.json +1 -1
  147. package/components/carousel/carousel-buttons.directive.d.ts +2 -2
  148. package/components/checkbox/checkbox.component.d.ts +2 -2
  149. package/components/checkbox/taiga-ui-kit-components-checkbox.metadata.json +1 -1
  150. package/components/checkbox-block/taiga-ui-kit-components-checkbox-block.metadata.json +1 -1
  151. package/components/checkbox-labeled/taiga-ui-kit-components-checkbox-labeled.metadata.json +1 -1
  152. package/components/combo-box/combo-box-strict.directive.d.ts +7 -0
  153. package/components/combo-box/combo-box.component.d.ts +8 -5
  154. package/components/combo-box/index.d.ts +1 -0
  155. package/components/combo-box/taiga-ui-kit-components-combo-box.metadata.json +1 -1
  156. package/components/data-list-wrapper/data-list-wrapper.component.d.ts +5 -3
  157. package/components/data-list-wrapper/taiga-ui-kit-components-data-list-wrapper.metadata.json +1 -1
  158. package/components/field-error/field-error.component.d.ts +1 -2
  159. package/components/field-error/field-error.module.d.ts +3 -0
  160. package/components/field-error/taiga-ui-kit-components-field-error.metadata.json +1 -1
  161. package/components/filter/taiga-ui-kit-components-filter.metadata.json +1 -1
  162. package/components/input-count/input-count-options.d.ts +10 -4
  163. package/components/input-count/input-count.component.d.ts +3 -3
  164. package/components/input-count/taiga-ui-kit-components-input-count.metadata.json +1 -1
  165. package/components/input-password/input-password-options.d.ts +10 -4
  166. package/components/input-password/input-password.component.d.ts +3 -3
  167. package/components/input-password/taiga-ui-kit-components-input-password.metadata.json +1 -1
  168. package/components/input-range/taiga-ui-kit-components-input-range.metadata.json +1 -1
  169. package/components/input-slider/taiga-ui-kit-components-input-slider.metadata.json +1 -1
  170. package/components/input-tag/index.d.ts +1 -0
  171. package/components/input-tag/input-tag-options.d.ts +7 -0
  172. package/components/input-tag/input-tag.component.d.ts +6 -2
  173. package/components/input-tag/taiga-ui-kit-components-input-tag.metadata.json +1 -1
  174. package/components/input-time/input-time-options.d.ts +10 -4
  175. package/components/input-time/input-time.component.d.ts +6 -6
  176. package/components/input-time/taiga-ui-kit-components-input-time.metadata.json +1 -1
  177. package/components/marker-icon/taiga-ui-kit-components-marker-icon.metadata.json +1 -1
  178. package/components/multi-select/index.d.ts +1 -0
  179. package/components/multi-select/multi-select-options.d.ts +10 -0
  180. package/components/multi-select/multi-select.component.d.ts +11 -7
  181. package/components/multi-select/taiga-ui-kit-components-multi-select.metadata.json +1 -1
  182. package/components/radio/radio-options.d.ts +10 -4
  183. package/components/radio/radio.component.d.ts +2 -2
  184. package/components/radio/taiga-ui-kit-components-radio.metadata.json +1 -1
  185. package/components/radio-block/taiga-ui-kit-components-radio-block.metadata.json +1 -1
  186. package/components/radio-labeled/taiga-ui-kit-components-radio-labeled.metadata.json +1 -1
  187. package/components/radio-list/taiga-ui-kit-components-radio-list.metadata.json +1 -1
  188. package/components/range/taiga-ui-kit-components-range.metadata.json +1 -1
  189. package/components/rating/rating-options.d.ts +2 -1
  190. package/components/rating/taiga-ui-kit-components-rating.metadata.json +1 -1
  191. package/components/select/index.d.ts +1 -0
  192. package/components/select/select-options.d.ts +9 -0
  193. package/components/select/select.component.d.ts +9 -4
  194. package/components/select/taiga-ui-kit-components-select.metadata.json +1 -1
  195. package/components/slider/index.d.ts +1 -0
  196. package/components/slider/slider-old.component.d.ts +19 -0
  197. package/components/slider/slider.component.d.ts +16 -13
  198. package/components/slider/taiga-ui-kit-components-slider.metadata.json +1 -1
  199. package/components/tag/tag.component.d.ts +1 -0
  200. package/components/tag/taiga-ui-kit-components-tag.metadata.json +1 -1
  201. package/components/toggle/taiga-ui-kit-components-toggle.metadata.json +1 -1
  202. package/components/toggle/toggle-options.d.ts +10 -4
  203. package/components/toggle/toggle.component.d.ts +3 -3
  204. package/esm2015/abstract/input-slider.js +2 -2
  205. package/esm2015/abstract/slider/slider.js +2 -2
  206. package/esm2015/components/accordion/accordion-item/accordion-item.component.js +3 -3
  207. package/esm2015/components/arrow/arrow-options.js +13 -2
  208. package/esm2015/components/avatar/avatar.component.js +3 -3
  209. package/esm2015/components/badge/badge.component.js +3 -3
  210. package/esm2015/components/badged-content/badged-content.component.js +3 -3
  211. package/esm2015/components/breadcrumbs/breadcrumbs.component.js +3 -3
  212. package/esm2015/components/carousel/carousel-buttons.directive.js +1 -1
  213. package/esm2015/components/checkbox/checkbox.component.js +3 -3
  214. package/esm2015/components/checkbox-block/checkbox-block.component.js +3 -3
  215. package/esm2015/components/checkbox-labeled/checkbox-labeled.component.js +3 -3
  216. package/esm2015/components/combo-box/combo-box-strict.directive.js +31 -0
  217. package/esm2015/components/combo-box/combo-box.component.js +23 -17
  218. package/esm2015/components/combo-box/combo-box.module.js +13 -3
  219. package/esm2015/components/combo-box/index.js +2 -1
  220. package/esm2015/components/data-list-wrapper/data-list-wrapper.component.js +17 -11
  221. package/esm2015/components/field-error/field-error.component.js +8 -12
  222. package/esm2015/components/field-error/field-error.module.js +6 -2
  223. package/esm2015/components/filter/filter.component.js +3 -3
  224. package/esm2015/components/input-count/input-count-options.js +5 -1
  225. package/esm2015/components/input-count/input-count.component.js +3 -3
  226. package/esm2015/components/input-password/input-password-options.js +5 -1
  227. package/esm2015/components/input-password/input-password.component.js +2 -2
  228. package/esm2015/components/input-range/input-range.component.js +1 -1
  229. package/esm2015/components/input-slider/input-slider.component.js +1 -1
  230. package/esm2015/components/input-tag/index.js +2 -1
  231. package/esm2015/components/input-tag/input-tag-options.js +9 -0
  232. package/esm2015/components/input-tag/input-tag.component.js +29 -13
  233. package/esm2015/components/input-time/input-time-options.js +5 -1
  234. package/esm2015/components/input-time/input-time.component.js +1 -1
  235. package/esm2015/components/marker-icon/marker-icon.component.js +3 -3
  236. package/esm2015/components/multi-select/index.js +2 -1
  237. package/esm2015/components/multi-select/multi-select-options.js +13 -0
  238. package/esm2015/components/multi-select/multi-select.component.js +19 -11
  239. package/esm2015/components/radio/radio-options.js +5 -1
  240. package/esm2015/components/radio/radio.component.js +3 -3
  241. package/esm2015/components/radio-block/radio-block.component.js +3 -3
  242. package/esm2015/components/radio-labeled/radio-labeled.component.js +3 -3
  243. package/esm2015/components/radio-list/radio-list.component.js +3 -3
  244. package/esm2015/components/range/range.component.js +1 -1
  245. package/esm2015/components/rating/rating-options.js +5 -1
  246. package/esm2015/components/select/index.js +2 -1
  247. package/esm2015/components/select/select-options.js +12 -0
  248. package/esm2015/components/select/select.component.js +21 -8
  249. package/esm2015/components/slider/index.js +2 -1
  250. package/esm2015/components/slider/slider-old.component.js +71 -0
  251. package/esm2015/components/slider/slider.component.js +66 -46
  252. package/esm2015/components/slider/slider.module.js +4 -3
  253. package/esm2015/components/tag/tag.component.js +10 -4
  254. package/esm2015/components/toggle/toggle-options.js +5 -1
  255. package/esm2015/components/toggle/toggle.component.js +3 -3
  256. package/esm2015/pipes/field-error/field-error-pipe.js +120 -0
  257. package/esm2015/pipes/field-error/field-error.module.js +13 -0
  258. package/esm2015/pipes/field-error/index.js +3 -0
  259. package/esm2015/pipes/field-error/taiga-ui-kit-pipes-field-error.js +5 -0
  260. package/esm2015/pipes/index.js +2 -1
  261. package/esm2015/tokens/index.js +2 -1
  262. package/esm2015/tokens/items-handlers.js +15 -0
  263. package/esm5/abstract/input-slider.js +2 -2
  264. package/esm5/abstract/slider/slider.js +2 -2
  265. package/esm5/components/accordion/accordion-item/accordion-item.component.js +3 -3
  266. package/esm5/components/arrow/arrow-options.js +14 -2
  267. package/esm5/components/avatar/avatar.component.js +3 -3
  268. package/esm5/components/badge/badge.component.js +3 -3
  269. package/esm5/components/badged-content/badged-content.component.js +3 -3
  270. package/esm5/components/breadcrumbs/breadcrumbs.component.js +3 -3
  271. package/esm5/components/carousel/carousel-buttons.directive.js +1 -1
  272. package/esm5/components/checkbox/checkbox.component.js +3 -3
  273. package/esm5/components/checkbox-block/checkbox-block.component.js +3 -3
  274. package/esm5/components/checkbox-labeled/checkbox-labeled.component.js +3 -3
  275. package/esm5/components/combo-box/combo-box-strict.directive.js +32 -0
  276. package/esm5/components/combo-box/combo-box.component.js +23 -17
  277. package/esm5/components/combo-box/combo-box.module.js +13 -3
  278. package/esm5/components/combo-box/index.js +2 -1
  279. package/esm5/components/data-list-wrapper/data-list-wrapper.component.js +18 -11
  280. package/esm5/components/field-error/field-error.component.js +8 -16
  281. package/esm5/components/field-error/field-error.module.js +6 -2
  282. package/esm5/components/filter/filter.component.js +3 -3
  283. package/esm5/components/input-count/input-count-options.js +6 -1
  284. package/esm5/components/input-count/input-count.component.js +3 -3
  285. package/esm5/components/input-password/input-password-options.js +6 -1
  286. package/esm5/components/input-password/input-password.component.js +2 -2
  287. package/esm5/components/input-range/input-range.component.js +1 -1
  288. package/esm5/components/input-slider/input-slider.component.js +1 -1
  289. package/esm5/components/input-tag/index.js +2 -1
  290. package/esm5/components/input-tag/input-tag-options.js +9 -0
  291. package/esm5/components/input-tag/input-tag.component.js +34 -14
  292. package/esm5/components/input-time/input-time-options.js +6 -1
  293. package/esm5/components/input-time/input-time.component.js +1 -1
  294. package/esm5/components/marker-icon/marker-icon.component.js +3 -3
  295. package/esm5/components/multi-select/index.js +2 -1
  296. package/esm5/components/multi-select/multi-select-options.js +14 -0
  297. package/esm5/components/multi-select/multi-select.component.js +19 -11
  298. package/esm5/components/radio/radio-options.js +6 -1
  299. package/esm5/components/radio/radio.component.js +3 -3
  300. package/esm5/components/radio-block/radio-block.component.js +3 -3
  301. package/esm5/components/radio-labeled/radio-labeled.component.js +3 -3
  302. package/esm5/components/radio-list/radio-list.component.js +3 -3
  303. package/esm5/components/range/range.component.js +1 -1
  304. package/esm5/components/rating/rating-options.js +6 -1
  305. package/esm5/components/select/index.js +2 -1
  306. package/esm5/components/select/select-options.js +13 -0
  307. package/esm5/components/select/select.component.js +21 -8
  308. package/esm5/components/slider/index.js +2 -1
  309. package/esm5/components/slider/slider-old.component.js +90 -0
  310. package/esm5/components/slider/slider.component.js +83 -53
  311. package/esm5/components/slider/slider.module.js +4 -3
  312. package/esm5/components/tag/tag.component.js +10 -4
  313. package/esm5/components/toggle/toggle-options.js +6 -1
  314. package/esm5/components/toggle/toggle.component.js +3 -3
  315. package/esm5/pipes/field-error/field-error-pipe.js +153 -0
  316. package/esm5/pipes/field-error/field-error.module.js +16 -0
  317. package/esm5/pipes/field-error/index.js +3 -0
  318. package/esm5/pipes/field-error/taiga-ui-kit-pipes-field-error.js +5 -0
  319. package/esm5/pipes/index.js +2 -1
  320. package/esm5/tokens/index.js +2 -1
  321. package/esm5/tokens/items-handlers.js +16 -0
  322. package/fesm2015/taiga-ui-kit-abstract.js +2 -2
  323. package/fesm2015/taiga-ui-kit-abstract.js.map +1 -1
  324. package/fesm2015/taiga-ui-kit-components-accordion.js +2 -2
  325. package/fesm2015/taiga-ui-kit-components-accordion.js.map +1 -1
  326. package/fesm2015/taiga-ui-kit-components-arrow.js +13 -2
  327. package/fesm2015/taiga-ui-kit-components-arrow.js.map +1 -1
  328. package/fesm2015/taiga-ui-kit-components-avatar.js +2 -2
  329. package/fesm2015/taiga-ui-kit-components-avatar.js.map +1 -1
  330. package/fesm2015/taiga-ui-kit-components-badge.js +2 -2
  331. package/fesm2015/taiga-ui-kit-components-badge.js.map +1 -1
  332. package/fesm2015/taiga-ui-kit-components-badged-content.js +2 -2
  333. package/fesm2015/taiga-ui-kit-components-badged-content.js.map +1 -1
  334. package/fesm2015/taiga-ui-kit-components-breadcrumbs.js +2 -2
  335. package/fesm2015/taiga-ui-kit-components-breadcrumbs.js.map +1 -1
  336. package/fesm2015/taiga-ui-kit-components-carousel.js.map +1 -1
  337. package/fesm2015/taiga-ui-kit-components-checkbox-block.js +2 -2
  338. package/fesm2015/taiga-ui-kit-components-checkbox-block.js.map +1 -1
  339. package/fesm2015/taiga-ui-kit-components-checkbox-labeled.js +2 -2
  340. package/fesm2015/taiga-ui-kit-components-checkbox-labeled.js.map +1 -1
  341. package/fesm2015/taiga-ui-kit-components-checkbox.js +2 -2
  342. package/fesm2015/taiga-ui-kit-components-checkbox.js.map +1 -1
  343. package/fesm2015/taiga-ui-kit-components-combo-box.js +61 -20
  344. package/fesm2015/taiga-ui-kit-components-combo-box.js.map +1 -1
  345. package/fesm2015/taiga-ui-kit-components-data-list-wrapper.js +16 -10
  346. package/fesm2015/taiga-ui-kit-components-data-list-wrapper.js.map +1 -1
  347. package/fesm2015/taiga-ui-kit-components-field-error.js +12 -13
  348. package/fesm2015/taiga-ui-kit-components-field-error.js.map +1 -1
  349. package/fesm2015/taiga-ui-kit-components-filter.js +2 -2
  350. package/fesm2015/taiga-ui-kit-components-filter.js.map +1 -1
  351. package/fesm2015/taiga-ui-kit-components-input-count.js +7 -3
  352. package/fesm2015/taiga-ui-kit-components-input-count.js.map +1 -1
  353. package/fesm2015/taiga-ui-kit-components-input-password.js +5 -1
  354. package/fesm2015/taiga-ui-kit-components-input-password.js.map +1 -1
  355. package/fesm2015/taiga-ui-kit-components-input-range.js +1 -1
  356. package/fesm2015/taiga-ui-kit-components-input-slider.js +1 -1
  357. package/fesm2015/taiga-ui-kit-components-input-tag.js +37 -14
  358. package/fesm2015/taiga-ui-kit-components-input-tag.js.map +1 -1
  359. package/fesm2015/taiga-ui-kit-components-input-time.js +5 -1
  360. package/fesm2015/taiga-ui-kit-components-input-time.js.map +1 -1
  361. package/fesm2015/taiga-ui-kit-components-marker-icon.js +2 -2
  362. package/fesm2015/taiga-ui-kit-components-marker-icon.js.map +1 -1
  363. package/fesm2015/taiga-ui-kit-components-multi-select.js +31 -12
  364. package/fesm2015/taiga-ui-kit-components-multi-select.js.map +1 -1
  365. package/fesm2015/taiga-ui-kit-components-radio-block.js +2 -2
  366. package/fesm2015/taiga-ui-kit-components-radio-block.js.map +1 -1
  367. package/fesm2015/taiga-ui-kit-components-radio-labeled.js +2 -2
  368. package/fesm2015/taiga-ui-kit-components-radio-labeled.js.map +1 -1
  369. package/fesm2015/taiga-ui-kit-components-radio-list.js +2 -2
  370. package/fesm2015/taiga-ui-kit-components-radio-list.js.map +1 -1
  371. package/fesm2015/taiga-ui-kit-components-radio.js +7 -3
  372. package/fesm2015/taiga-ui-kit-components-radio.js.map +1 -1
  373. package/fesm2015/taiga-ui-kit-components-range.js +1 -1
  374. package/fesm2015/taiga-ui-kit-components-rating.js +5 -1
  375. package/fesm2015/taiga-ui-kit-components-rating.js.map +1 -1
  376. package/fesm2015/taiga-ui-kit-components-select.js +32 -9
  377. package/fesm2015/taiga-ui-kit-components-select.js.map +1 -1
  378. package/fesm2015/taiga-ui-kit-components-slider.js +100 -14
  379. package/fesm2015/taiga-ui-kit-components-slider.js.map +1 -1
  380. package/fesm2015/taiga-ui-kit-components-tag.js +9 -3
  381. package/fesm2015/taiga-ui-kit-components-tag.js.map +1 -1
  382. package/fesm2015/taiga-ui-kit-components-toggle.js +7 -3
  383. package/fesm2015/taiga-ui-kit-components-toggle.js.map +1 -1
  384. package/fesm2015/taiga-ui-kit-pipes-field-error.js +135 -0
  385. package/fesm2015/taiga-ui-kit-pipes-field-error.js.map +1 -0
  386. package/fesm2015/taiga-ui-kit-pipes.js +1 -0
  387. package/fesm2015/taiga-ui-kit-pipes.js.map +1 -1
  388. package/fesm2015/taiga-ui-kit-tokens.js +15 -1
  389. package/fesm2015/taiga-ui-kit-tokens.js.map +1 -1
  390. package/fesm5/taiga-ui-kit-abstract.js +2 -2
  391. package/fesm5/taiga-ui-kit-abstract.js.map +1 -1
  392. package/fesm5/taiga-ui-kit-components-accordion.js +2 -2
  393. package/fesm5/taiga-ui-kit-components-accordion.js.map +1 -1
  394. package/fesm5/taiga-ui-kit-components-arrow.js +14 -3
  395. package/fesm5/taiga-ui-kit-components-arrow.js.map +1 -1
  396. package/fesm5/taiga-ui-kit-components-avatar.js +2 -2
  397. package/fesm5/taiga-ui-kit-components-avatar.js.map +1 -1
  398. package/fesm5/taiga-ui-kit-components-badge.js +2 -2
  399. package/fesm5/taiga-ui-kit-components-badge.js.map +1 -1
  400. package/fesm5/taiga-ui-kit-components-badged-content.js +2 -2
  401. package/fesm5/taiga-ui-kit-components-badged-content.js.map +1 -1
  402. package/fesm5/taiga-ui-kit-components-breadcrumbs.js +2 -2
  403. package/fesm5/taiga-ui-kit-components-breadcrumbs.js.map +1 -1
  404. package/fesm5/taiga-ui-kit-components-carousel.js.map +1 -1
  405. package/fesm5/taiga-ui-kit-components-checkbox-block.js +2 -2
  406. package/fesm5/taiga-ui-kit-components-checkbox-block.js.map +1 -1
  407. package/fesm5/taiga-ui-kit-components-checkbox-labeled.js +2 -2
  408. package/fesm5/taiga-ui-kit-components-checkbox-labeled.js.map +1 -1
  409. package/fesm5/taiga-ui-kit-components-checkbox.js +2 -2
  410. package/fesm5/taiga-ui-kit-components-checkbox.js.map +1 -1
  411. package/fesm5/taiga-ui-kit-components-combo-box.js +62 -20
  412. package/fesm5/taiga-ui-kit-components-combo-box.js.map +1 -1
  413. package/fesm5/taiga-ui-kit-components-data-list-wrapper.js +17 -10
  414. package/fesm5/taiga-ui-kit-components-data-list-wrapper.js.map +1 -1
  415. package/fesm5/taiga-ui-kit-components-field-error.js +12 -17
  416. package/fesm5/taiga-ui-kit-components-field-error.js.map +1 -1
  417. package/fesm5/taiga-ui-kit-components-filter.js +2 -2
  418. package/fesm5/taiga-ui-kit-components-filter.js.map +1 -1
  419. package/fesm5/taiga-ui-kit-components-input-count.js +8 -4
  420. package/fesm5/taiga-ui-kit-components-input-count.js.map +1 -1
  421. package/fesm5/taiga-ui-kit-components-input-password.js +6 -2
  422. package/fesm5/taiga-ui-kit-components-input-password.js.map +1 -1
  423. package/fesm5/taiga-ui-kit-components-input-range.js +1 -1
  424. package/fesm5/taiga-ui-kit-components-input-slider.js +1 -1
  425. package/fesm5/taiga-ui-kit-components-input-tag.js +42 -15
  426. package/fesm5/taiga-ui-kit-components-input-tag.js.map +1 -1
  427. package/fesm5/taiga-ui-kit-components-input-time.js +6 -2
  428. package/fesm5/taiga-ui-kit-components-input-time.js.map +1 -1
  429. package/fesm5/taiga-ui-kit-components-marker-icon.js +2 -2
  430. package/fesm5/taiga-ui-kit-components-marker-icon.js.map +1 -1
  431. package/fesm5/taiga-ui-kit-components-multi-select.js +32 -13
  432. package/fesm5/taiga-ui-kit-components-multi-select.js.map +1 -1
  433. package/fesm5/taiga-ui-kit-components-radio-block.js +2 -2
  434. package/fesm5/taiga-ui-kit-components-radio-block.js.map +1 -1
  435. package/fesm5/taiga-ui-kit-components-radio-labeled.js +2 -2
  436. package/fesm5/taiga-ui-kit-components-radio-labeled.js.map +1 -1
  437. package/fesm5/taiga-ui-kit-components-radio-list.js +2 -2
  438. package/fesm5/taiga-ui-kit-components-radio-list.js.map +1 -1
  439. package/fesm5/taiga-ui-kit-components-radio.js +8 -4
  440. package/fesm5/taiga-ui-kit-components-radio.js.map +1 -1
  441. package/fesm5/taiga-ui-kit-components-range.js +1 -1
  442. package/fesm5/taiga-ui-kit-components-rating.js +6 -2
  443. package/fesm5/taiga-ui-kit-components-rating.js.map +1 -1
  444. package/fesm5/taiga-ui-kit-components-select.js +33 -10
  445. package/fesm5/taiga-ui-kit-components-select.js.map +1 -1
  446. package/fesm5/taiga-ui-kit-components-slider.js +141 -26
  447. package/fesm5/taiga-ui-kit-components-slider.js.map +1 -1
  448. package/fesm5/taiga-ui-kit-components-tag.js +9 -3
  449. package/fesm5/taiga-ui-kit-components-tag.js.map +1 -1
  450. package/fesm5/taiga-ui-kit-components-toggle.js +8 -4
  451. package/fesm5/taiga-ui-kit-components-toggle.js.map +1 -1
  452. package/fesm5/taiga-ui-kit-pipes-field-error.js +171 -0
  453. package/fesm5/taiga-ui-kit-pipes-field-error.js.map +1 -0
  454. package/fesm5/taiga-ui-kit-pipes.js +1 -0
  455. package/fesm5/taiga-ui-kit-pipes.js.map +1 -1
  456. package/fesm5/taiga-ui-kit-tokens.js +16 -1
  457. package/fesm5/taiga-ui-kit-tokens.js.map +1 -1
  458. package/package.json +4 -4
  459. package/pipes/field-error/field-error-pipe.d.ts +29 -0
  460. package/pipes/field-error/field-error.module.d.ts +2 -0
  461. package/pipes/field-error/index.d.ts +2 -0
  462. package/pipes/field-error/package.json +13 -0
  463. package/pipes/field-error/taiga-ui-kit-pipes-field-error.d.ts +4 -0
  464. package/pipes/field-error/taiga-ui-kit-pipes-field-error.metadata.json +1 -0
  465. package/pipes/index.d.ts +1 -0
  466. package/pipes/taiga-ui-kit-pipes.metadata.json +1 -1
  467. package/tokens/index.d.ts +1 -0
  468. package/tokens/items-handlers.d.ts +10 -0
  469. package/tokens/taiga-ui-kit-tokens.metadata.json +1 -1
@@ -0,0 +1,171 @@
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
+ var EMPTY_RECORD = {};
10
+ // @dynamic
11
+ var TuiFieldErrorPipe = /** @class */ (function () {
12
+ function TuiFieldErrorPipe(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
+ TuiFieldErrorPipe.prototype.transform = function (order) {
24
+ this.order = order;
25
+ return this.computedError;
26
+ };
27
+ Object.defineProperty(TuiFieldErrorPipe.prototype, "change$", {
28
+ get: function () {
29
+ var _a, _b;
30
+ 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);
31
+ },
32
+ enumerable: true,
33
+ configurable: true
34
+ });
35
+ Object.defineProperty(TuiFieldErrorPipe.prototype, "computedError", {
36
+ get: function () {
37
+ return (this.invalid && this.touched && this.error) || of(null);
38
+ },
39
+ enumerable: true,
40
+ configurable: true
41
+ });
42
+ TuiFieldErrorPipe.prototype.registerOnChange = function () { };
43
+ TuiFieldErrorPipe.prototype.registerOnTouched = function () { };
44
+ TuiFieldErrorPipe.prototype.setDisabledState = function () { };
45
+ TuiFieldErrorPipe.prototype.writeValue = function () { };
46
+ Object.defineProperty(TuiFieldErrorPipe.prototype, "error", {
47
+ get: function () {
48
+ var errorId = this.errorId;
49
+ if (!errorId) {
50
+ return null;
51
+ }
52
+ var firstError = this.controlErrors[errorId];
53
+ var errorContent = this.validationErrors[errorId];
54
+ return this.getError(firstError, errorContent);
55
+ },
56
+ enumerable: true,
57
+ configurable: true
58
+ });
59
+ Object.defineProperty(TuiFieldErrorPipe.prototype, "invalid", {
60
+ get: function () {
61
+ var _a;
62
+ return !!((_a = this.control) === null || _a === void 0 ? void 0 : _a.invalid);
63
+ },
64
+ enumerable: true,
65
+ configurable: true
66
+ });
67
+ Object.defineProperty(TuiFieldErrorPipe.prototype, "touched", {
68
+ get: function () {
69
+ var _a;
70
+ return !!((_a = this.control) === null || _a === void 0 ? void 0 : _a.touched);
71
+ },
72
+ enumerable: true,
73
+ configurable: true
74
+ });
75
+ Object.defineProperty(TuiFieldErrorPipe.prototype, "control", {
76
+ get: function () {
77
+ var _a, _b, _c, _d;
78
+ 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) ||
79
+ null);
80
+ },
81
+ enumerable: true,
82
+ configurable: true
83
+ });
84
+ Object.defineProperty(TuiFieldErrorPipe.prototype, "errorId", {
85
+ get: function () {
86
+ return this.getErrorId(this.order, this.controlErrors);
87
+ },
88
+ enumerable: true,
89
+ configurable: true
90
+ });
91
+ Object.defineProperty(TuiFieldErrorPipe.prototype, "controlErrors", {
92
+ get: function () {
93
+ var _a;
94
+ return ((_a = this.control) === null || _a === void 0 ? void 0 : _a.errors) || EMPTY_RECORD;
95
+ },
96
+ enumerable: true,
97
+ configurable: true
98
+ });
99
+ TuiFieldErrorPipe.prototype.getErrorId = function (order, controlErrors) {
100
+ var id = order === null || order === void 0 ? void 0 : order.find(function (errorId) { return controlErrors[errorId]; });
101
+ var fallback = Object.keys(controlErrors)[0];
102
+ return id || fallback || '';
103
+ };
104
+ TuiFieldErrorPipe.prototype.getError = function (firstError, errorContent) {
105
+ if (firstError instanceof TuiValidationError) {
106
+ return of(firstError);
107
+ }
108
+ if (errorContent === undefined && typeof firstError === 'string') {
109
+ return of(new TuiValidationError(firstError));
110
+ }
111
+ if (isObservable(errorContent)) {
112
+ return errorContent.pipe(map(function (error) { return new TuiValidationError(error || '', firstError); }));
113
+ }
114
+ return of(new TuiValidationError(errorContent || '', firstError));
115
+ };
116
+ TuiFieldErrorPipe.ctorParameters = function () { return [
117
+ { type: NgControl, decorators: [{ type: Optional }, { type: Self }, { type: Inject, args: [NgControl,] }] },
118
+ { type: FormArrayName, decorators: [{ type: Optional }, { type: Self }, { type: Inject, args: [FormArrayName,] }] },
119
+ { type: FormGroupName, decorators: [{ type: Optional }, { type: Self }, { type: Inject, args: [FormGroupName,] }] },
120
+ { type: FormGroupDirective, decorators: [{ type: Optional }, { type: Self }, { type: Inject, args: [FormGroupDirective,] }] },
121
+ { type: undefined, decorators: [{ type: Inject, args: [TUI_VALIDATION_ERRORS,] }] }
122
+ ]; };
123
+ __decorate([
124
+ tuiPure
125
+ ], TuiFieldErrorPipe.prototype, "change$", null);
126
+ __decorate([
127
+ tuiPure
128
+ ], TuiFieldErrorPipe.prototype, "getErrorId", null);
129
+ __decorate([
130
+ tuiPure
131
+ ], TuiFieldErrorPipe.prototype, "getError", null);
132
+ TuiFieldErrorPipe = __decorate([
133
+ Pipe({
134
+ name: 'tuiFieldError',
135
+ pure: false,
136
+ }),
137
+ __param(0, Optional()),
138
+ __param(0, Self()),
139
+ __param(0, Inject(NgControl)),
140
+ __param(1, Optional()),
141
+ __param(1, Self()),
142
+ __param(1, Inject(FormArrayName)),
143
+ __param(2, Optional()),
144
+ __param(2, Self()),
145
+ __param(2, Inject(FormGroupName)),
146
+ __param(3, Optional()),
147
+ __param(3, Self()),
148
+ __param(3, Inject(FormGroupDirective)),
149
+ __param(4, Inject(TUI_VALIDATION_ERRORS))
150
+ ], TuiFieldErrorPipe);
151
+ return TuiFieldErrorPipe;
152
+ }());
153
+
154
+ var TuiFieldErrorPipeModule = /** @class */ (function () {
155
+ function TuiFieldErrorPipeModule() {
156
+ }
157
+ TuiFieldErrorPipeModule = __decorate([
158
+ NgModule({
159
+ declarations: [TuiFieldErrorPipe],
160
+ exports: [TuiFieldErrorPipe],
161
+ })
162
+ ], TuiFieldErrorPipeModule);
163
+ return TuiFieldErrorPipeModule;
164
+ }());
165
+
166
+ /**
167
+ * Generated bundle index. Do not edit.
168
+ */
169
+
170
+ export { TuiFieldErrorPipe, TuiFieldErrorPipeModule };
171
+ //# 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,IAAM,YAAY,GAAG,EAAE,CAAC;AAExB;;IAQI,2BAIqB,SAA2B,EAI3B,aAAmC,EAInC,aAAmC,EAInC,SAAoC,EAEpC,gBAGhB;QAjBgB,cAAS,GAAT,SAAS,CAAkB;QAI3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M,CAAC,qBAAqB,CAAC,CAAA;OApBzB,iBAAiB,CAgI7B;IAAD,wBAAC;CAhID;;;ICbA;KAAuC;IAA1B,uBAAuB;QAJnC,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,iBAAiB,CAAC;YACjC,OAAO,EAAE,CAAC,iBAAiB,CAAC;SAC/B,CAAC;OACW,uBAAuB,CAAG;IAAD,8BAAC;CAAvC;;ACRA;;;;;;"}
@@ -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,5 +1,7 @@
1
1
  import { InjectionToken } from '@angular/core';
2
2
  import { extractI18n } from '@taiga-ui/i18n';
3
+ import { __assign } from 'tslib';
4
+ import { TUI_DEFAULT_STRINGIFY, TUI_DEFAULT_IDENTITY_MATCHER, ALWAYS_FALSE_HANDLER } from '@taiga-ui/cdk';
3
5
 
4
6
  var TUI_CALENDAR_DATA_STREAM = new InjectionToken('Stream that emits calendar data change');
5
7
 
@@ -59,6 +61,19 @@ var TUI_COUNTRIES = new InjectionToken('Localized countries names', {
59
61
  factory: extractI18n('countries'),
60
62
  });
61
63
 
64
+ var TUI_DEFAULT_ITEMS_HANDLERS = {
65
+ stringify: TUI_DEFAULT_STRINGIFY,
66
+ identityMatcher: TUI_DEFAULT_IDENTITY_MATCHER,
67
+ disabledItemHandler: ALWAYS_FALSE_HANDLER,
68
+ };
69
+ var TUI_ITEMS_HANDLERS = new InjectionToken('Default items handlers for components', {
70
+ factory: function () { return TUI_DEFAULT_ITEMS_HANDLERS; },
71
+ });
72
+ var tuiItemsHandlersProvider = function (options) { return ({
73
+ provide: TUI_ITEMS_HANDLERS,
74
+ useValue: __assign(__assign({}, TUI_DEFAULT_ITEMS_HANDLERS), options),
75
+ }); };
76
+
62
77
  var TUI_MOBILE_AWARE = new InjectionToken('A flag enabling mobile-specific behavior for supporting components', {
63
78
  factory: function () { return false; },
64
79
  });
@@ -77,5 +92,5 @@ var TUI_VALIDATION_ERRORS = new InjectionToken('Validation errors', {
77
92
  * Generated bundle index. Do not edit.
78
93
  */
79
94
 
80
- export { TUI_CALENDAR_DATA_STREAM, TUI_CALENDAR_MONTHS, TUI_CANCEL_WORD, TUI_CHOOSE_DAY_OR_RANGE_TEXTS, TUI_COPY_TEXTS, TUI_COUNTRIES, TUI_DATE_RANGE_VALUE_TRANSFORMER, TUI_DATE_TEXTS, TUI_DATE_TIME_VALUE_TRANSFORMER, TUI_DATE_VALUE_TRANSFORMER, TUI_DIGITAL_INFORMATION_UNITS, TUI_DONE_WORD, TUI_FILE_TEXTS, TUI_FROM_TO_TEXTS, TUI_INPUT_FILE_TEXTS, TUI_MOBILE_AWARE, TUI_MOBILE_CALENDAR, TUI_MORE_WORD, TUI_OTHER_DATE_TEXT, TUI_PAGINATION_TEXTS, TUI_PASSWORD_TEXTS, TUI_PLUS_MINUS_TEXTS, TUI_TAG_STATUS, TUI_TIME_TEXTS, TUI_VALIDATION_ERRORS };
95
+ 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 };
81
96
  //# 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/date-inputs-value-transformers.ts","ng://@taiga-ui/kit/tokens/i18n.ts","ng://@taiga-ui/kit/tokens/mobile-aware.ts","ng://@taiga-ui/kit/tokens/mobile-calendar.ts","ng://@taiga-ui/kit/tokens/tag-status.ts","ng://@taiga-ui/kit/tokens/validation-errors.ts","ng://@taiga-ui/kit/tokens/taiga-ui-kit-tokens.ts"],"sourcesContent":["import {InjectionToken} from '@angular/core';\nimport {TuiDay, TuiDayRange} from '@taiga-ui/cdk';\nimport {Observable} from 'rxjs';\n\nexport const TUI_CALENDAR_DATA_STREAM = new InjectionToken<\n Observable<TuiDay | TuiDayRange | null>\n>('Stream that emits calendar data change');\n","import {InjectionToken} from '@angular/core';\nimport {TuiControlValueTransformer, TuiDay, TuiDayRange, TuiTime} from '@taiga-ui/cdk';\n\nexport const TUI_DATE_VALUE_TRANSFORMER = new InjectionToken<\n TuiControlValueTransformer<TuiDay | null>\n>('Control value transformer of TuiDay to custom value format for InputDate* components');\n\nexport const TUI_DATE_RANGE_VALUE_TRANSFORMER = new InjectionToken<\n TuiControlValueTransformer<TuiDayRange | null>\n>('Control value transformer for InputDateRange component');\n\nexport const TUI_DATE_TIME_VALUE_TRANSFORMER = new InjectionToken<\n TuiControlValueTransformer<[TuiDay | null, TuiTime | null]>\n>('Control value transformer for InputDateTime component');\n","import {InjectionToken} from '@angular/core';\nimport {TuiDateMode} from '@taiga-ui/cdk';\nimport {extractI18n, TuiCountryIsoCode} from '@taiga-ui/i18n';\nimport {Observable} from 'rxjs';\n\nexport const TUI_CANCEL_WORD = new InjectionToken(`i18n 'cancel' word`, {\n factory: extractI18n('cancel'),\n});\n\nexport const TUI_DONE_WORD = new InjectionToken(`i18n 'done' word`, {\n factory: extractI18n('done'),\n});\n\nexport const TUI_MORE_WORD = new InjectionToken(`i18n 'more' word`, {\n factory: extractI18n('more'),\n});\n\nexport const TUI_OTHER_DATE_TEXT = new InjectionToken(`i18n 'Other date' text`, {\n factory: extractI18n('otherDate'),\n});\n\nexport const TUI_CHOOSE_DAY_OR_RANGE_TEXTS = new InjectionToken(\n `choose day or range i18n texts`,\n {\n factory: extractI18n('mobileCalendarTexts'),\n },\n);\n\nexport const TUI_FROM_TO_TEXTS = new InjectionToken(`from and to i18n texts`, {\n factory: extractI18n('range'),\n});\n\nexport const TUI_PLUS_MINUS_TEXTS = new InjectionToken(`plus and minus i18n texts`, {\n factory: extractI18n('countTexts'),\n});\n\nexport const TUI_TIME_TEXTS = new InjectionToken(`time i18n texts`, {\n factory: extractI18n('time'),\n});\n\nexport const TUI_DATE_TEXTS = new InjectionToken<Observable<Record<TuiDateMode, string>>>(\n 'date format i18n texts',\n {\n factory: extractI18n('dateTexts'),\n },\n);\n\nexport const TUI_DIGITAL_INFORMATION_UNITS = new InjectionToken(\n `short bytes, kilobytes and megabytes i18n texts`,\n {\n factory: extractI18n('digitalInformationUnits'),\n },\n);\n\nexport const TUI_COPY_TEXTS = new InjectionToken('copy i18n texts', {\n factory: extractI18n('copyTexts'),\n});\n\nexport const TUI_PASSWORD_TEXTS = new InjectionToken('password i18n texts', {\n factory: extractI18n('passwordTexts'),\n});\n\nexport const TUI_CALENDAR_MONTHS = new InjectionToken('short calendar months i18n', {\n factory: extractI18n('shortCalendarMonths'),\n});\n\nexport const TUI_FILE_TEXTS = new InjectionToken('file i18n texts', {\n factory: extractI18n('fileTexts'),\n});\n\nexport const TUI_PAGINATION_TEXTS = new InjectionToken('pagination i18n texts', {\n factory: extractI18n('paginationTexts'),\n});\n\nexport const TUI_INPUT_FILE_TEXTS = new InjectionToken('tui-input-file i18n texts', {\n factory: extractI18n('inputFileTexts'),\n});\n\nexport const TUI_COUNTRIES: InjectionToken<\n Observable<Record<TuiCountryIsoCode, string>>\n> = new InjectionToken('Localized countries names', {\n factory: extractI18n('countries'),\n});\n","import {InjectionToken} from '@angular/core';\n\nexport const TUI_MOBILE_AWARE = new InjectionToken<boolean>(\n 'A flag enabling mobile-specific behavior for supporting components',\n {\n factory: () => false,\n },\n);\n","import {InjectionToken, Type} from '@angular/core';\n\nexport const TUI_MOBILE_CALENDAR = new InjectionToken<Type<any>>(\n 'A component for mobile data picker',\n);\n","import {InjectionToken} from '@angular/core';\nimport {TuiStatus} from '@taiga-ui/kit/enums';\n\nexport const TUI_TAG_STATUS = new InjectionToken<TuiStatus>(\n 'Status for tags inside InputTag component',\n {\n factory: () => TuiStatus.Primary,\n },\n);\n","import {InjectionToken} from '@angular/core';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {Observable} from 'rxjs';\n\nexport const TUI_VALIDATION_ERRORS = new InjectionToken<\n Record<string, PolymorpheusContent | Observable<PolymorpheusContent>>\n>('Validation errors', {\n factory: () => ({}),\n});\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;IAIa,wBAAwB,GAAG,IAAI,cAAc,CAExD,wCAAwC;;ICH7B,0BAA0B,GAAG,IAAI,cAAc,CAE1D,sFAAsF,EAAE;IAE7E,gCAAgC,GAAG,IAAI,cAAc,CAEhE,wDAAwD,EAAE;IAE/C,+BAA+B,GA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,cAAc,CAAC,qBAAqB,EAAE;IACxE,OAAO,EAAE,WAAW,CAAC,eAAe,CAAC;CACxC,EAAE;IAEU,mBAAmB,GAAG,IAAI,cAAc,CAAC,4BAA4B,EAAE;IAChF,OAAO,EAAE,WAAW,CAAC,qBAAqB,CAAC;CAC9C,EAAE;IAEU,cAAc,GAAG,IAAI,cAAc,CAAC,iBAAiB,EAAE;IAChE,OAAO,EAAE,WAAW,CAAC,WAAW,CAAC;CACpC,EAAE;IAEU,oBAAoB,GAAG,IAAI,cAAc,CAAC,uBAAuB,EAAE;IAC5E,OAAO,EAAE,WAAW,CAAC,iBAAiB,CAAC;CAC1C,EAAE;IAEU,oBAAoB,GAAG,IAAI,cAAc,CAAC,2BAA2B,EAAE;IAChF,OAAO,EAAE,WAAW,CAAC,gBAAgB,CAAC;CACzC,EAAE;IAEU,aAAa,GAEtB,IAAI,cAAc,CAAC,2BAA2B,EAAE;IAChD,OAAO,EAAE,WAAW,CAAC,WAAW,CAAC;CACpC;;IChFY,gBAAgB,GAAG,IAAI,cAAc,CAC9C,oEAAoE,EACpE;IACI,OAAO,EAAE,cAAM,OAAA,KAAK,GAAA;CACvB;;ICJQ,mBAAmB,GAAG,IAAI,cAAc,CACjD,oCAAoC;;ICA3B,cAAc,GAAG,IAAI,cAAc,CAC5C,2CAA2C,EAC3C;IACI,OAAO,EAAE,cAAM,iCAAiB;CACnC;;ICHQ,qBAAqB,GAAG,IAAI,cAAc,CAErD,mBAAmB,EAAE;IACnB,OAAO,EAAE,cAAM,QAAC,EAAE,IAAC;CACtB;;ACRD;;;;;;"}
1
+ {"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":";;;;;IAIa,wBAAwB,GAAG,IAAI,cAAc,CAExD,wCAAwC;;ICH7B,0BAA0B,GAAG,IAAI,cAAc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AG,IAAI,cAAc,CAC5C,2CAA2C,EAC3C;IACI,OAAO,EAAE,cAAM,iCAAiB;CACnC;;ICHQ,qBAAqB,GAAG,IAAI,cAAc,CAErD,mBAAmB,EAAE;IACnB,OAAO,EAAE,cAAM,QAAC,EAAE,IAAC;CACtB;;ACRD;;;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taiga-ui/kit",
3
- "version": "2.33.0",
3
+ "version": "2.34.0",
4
4
  "description": "Taiga UI Angular main components kit",
5
5
  "keywords": [
6
6
  "angular",
@@ -25,9 +25,9 @@
25
25
  "@ng-web-apis/common": ">=1.12.1 < 2",
26
26
  "@ng-web-apis/mutation-observer": ">=1.1.0",
27
27
  "@tinkoff/ng-polymorpheus": ">=3.1.12 < 4",
28
- "@taiga-ui/cdk": ">=2.33.0",
29
- "@taiga-ui/core": ">=2.33.0",
30
- "@taiga-ui/i18n": ">=2.33.0",
28
+ "@taiga-ui/cdk": ">=2.34.0",
29
+ "@taiga-ui/core": ">=2.34.0",
30
+ "@taiga-ui/i18n": ">=2.34.0",
31
31
  "rxjs": ">=6.0.0"
32
32
  },
33
33
  "main": "bundles/taiga-ui-kit.umd.js",
@@ -0,0 +1,29 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import { FormArrayName, FormGroupDirective, FormGroupName, NgControl } from '@angular/forms';
3
+ import { TuiValidationError } from '@taiga-ui/cdk';
4
+ import { PolymorpheusContent } from '@tinkoff/ng-polymorpheus';
5
+ import { Observable } from 'rxjs';
6
+ export declare class TuiFieldErrorPipe implements PipeTransform {
7
+ private readonly ngControl;
8
+ private readonly formArrayName;
9
+ private readonly formGroupName;
10
+ private readonly formGroup;
11
+ private readonly validationErrors;
12
+ private order;
13
+ constructor(ngControl: NgControl | null, formArrayName: FormArrayName | null, formGroupName: FormGroupName | null, formGroup: FormGroupDirective | null, validationErrors: Record<string, PolymorpheusContent | Observable<PolymorpheusContent>>);
14
+ transform(order: ReadonlyArray<string>): Observable<TuiValidationError | null>;
15
+ get change$(): Observable<unknown>;
16
+ get computedError(): Observable<TuiValidationError | null>;
17
+ registerOnChange(): void;
18
+ registerOnTouched(): void;
19
+ setDisabledState(): void;
20
+ writeValue(): void;
21
+ private get error();
22
+ private get invalid();
23
+ private get touched();
24
+ private get control();
25
+ private get errorId();
26
+ private get controlErrors();
27
+ private getErrorId;
28
+ private getError;
29
+ }
@@ -0,0 +1,2 @@
1
+ export declare class TuiFieldErrorPipeModule {
2
+ }
@@ -0,0 +1,2 @@
1
+ export * from './field-error.module';
2
+ export * from './field-error-pipe';
@@ -0,0 +1,13 @@
1
+ {
2
+ "main": "../../bundles/taiga-ui-kit-pipes-field-error.umd.js",
3
+ "module": "../../fesm5/taiga-ui-kit-pipes-field-error.js",
4
+ "es2015": "../../fesm2015/taiga-ui-kit-pipes-field-error.js",
5
+ "esm5": "../../esm5/pipes/field-error/taiga-ui-kit-pipes-field-error.js",
6
+ "esm2015": "../../esm2015/pipes/field-error/taiga-ui-kit-pipes-field-error.js",
7
+ "fesm5": "../../fesm5/taiga-ui-kit-pipes-field-error.js",
8
+ "fesm2015": "../../fesm2015/taiga-ui-kit-pipes-field-error.js",
9
+ "typings": "taiga-ui-kit-pipes-field-error.d.ts",
10
+ "metadata": "taiga-ui-kit-pipes-field-error.metadata.json",
11
+ "sideEffects": false,
12
+ "name": "@taiga-ui/kit/pipes/field-error"
13
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ export * from './index';
@@ -0,0 +1 @@
1
+ {"__symbolic":"module","version":4,"metadata":{"TuiFieldErrorPipeModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":4,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"TuiFieldErrorPipe"}],"exports":[{"__symbolic":"reference","name":"TuiFieldErrorPipe"}]}]}],"members":{}},"TuiFieldErrorPipe":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Pipe","line":17,"character":1},"arguments":[{"name":"tuiFieldError","pure":false}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":25,"character":9}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Self","line":26,"character":9}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":27,"character":9},"arguments":[{"__symbolic":"reference","module":"@angular/forms","name":"NgControl","line":27,"character":16}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":29,"character":9}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Self","line":30,"character":9}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":31,"character":9},"arguments":[{"__symbolic":"reference","module":"@angular/forms","name":"FormArrayName","line":31,"character":16}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":33,"character":9}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Self","line":34,"character":9}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":35,"character":9},"arguments":[{"__symbolic":"reference","module":"@angular/forms","name":"FormGroupName","line":35,"character":16}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":37,"character":9}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Self","line":38,"character":9}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":39,"character":9},"arguments":[{"__symbolic":"reference","module":"@angular/forms","name":"FormGroupDirective","line":39,"character":16}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":41,"character":9},"arguments":[{"__symbolic":"reference","module":"@taiga-ui/kit/tokens","name":"TUI_VALIDATION_ERRORS","line":41,"character":16}]}]],"parameters":[{"__symbolic":"reference","module":"@angular/forms","name":"NgControl","line":28,"character":36},{"__symbolic":"reference","module":"@angular/forms","name":"FormArrayName","line":32,"character":40},{"__symbolic":"reference","module":"@angular/forms","name":"FormGroupName","line":36,"character":40},{"__symbolic":"reference","module":"@angular/forms","name":"FormGroupDirective","line":40,"character":36},{"__symbolic":"error","message":"Could not resolve type","line":42,"character":43,"context":{"typeName":"Record"},"module":"./field-error-pipe"}]}],"transform":[{"__symbolic":"method"}],"change$":[{"__symbolic":"property","decorators":[{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"tuiPure","line":58,"character":5}]}],"registerOnChange":[{"__symbolic":"method"}],"registerOnTouched":[{"__symbolic":"method"}],"setDisabledState":[{"__symbolic":"method"}],"writeValue":[{"__symbolic":"method"}],"getErrorId":[{"__symbolic":"method","decorators":[{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"tuiPure","line":117,"character":5}]}],"getError":[{"__symbolic":"method","decorators":[{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"tuiPure","line":128,"character":5}]}]}}},"origins":{"TuiFieldErrorPipeModule":"./field-error.module","TuiFieldErrorPipe":"./field-error-pipe"},"importAs":"@taiga-ui/kit/pipes/field-error"}
package/pipes/index.d.ts CHANGED
@@ -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
- {"__symbolic":"module","version":4,"exports":[{"from":"@taiga-ui/kit/pipes/filter-by-input"},{"from":"@taiga-ui/kit/pipes/stringify"},{"from":"@taiga-ui/kit/pipes/stringify-content"}],"metadata":{},"origins":{},"importAs":"@taiga-ui/kit/pipes"}
1
+ {"__symbolic":"module","version":4,"exports":[{"from":"@taiga-ui/kit/pipes/field-error"},{"from":"@taiga-ui/kit/pipes/filter-by-input"},{"from":"@taiga-ui/kit/pipes/stringify"},{"from":"@taiga-ui/kit/pipes/stringify-content"}],"metadata":{},"origins":{},"importAs":"@taiga-ui/kit/pipes"}
package/tokens/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  export * from './calendar-data-stream';
2
2
  export * from './date-inputs-value-transformers';
3
3
  export * from './i18n';
4
+ export * from './items-handlers';
4
5
  export * from './mobile-aware';
5
6
  export * from './mobile-calendar';
6
7
  export * from './tag-status';
@@ -0,0 +1,10 @@
1
+ import { InjectionToken, ValueProvider } from '@angular/core';
2
+ import { TuiBooleanHandler, TuiIdentityMatcher, TuiStringHandler } from '@taiga-ui/cdk';
3
+ export interface TuiItemsHandlers<T> {
4
+ readonly stringify: TuiStringHandler<T>;
5
+ readonly identityMatcher: TuiIdentityMatcher<T>;
6
+ readonly disabledItemHandler: TuiBooleanHandler<T>;
7
+ }
8
+ export declare const TUI_DEFAULT_ITEMS_HANDLERS: TuiItemsHandlers<unknown>;
9
+ export declare const TUI_ITEMS_HANDLERS: InjectionToken<TuiItemsHandlers<unknown>>;
10
+ export declare const tuiItemsHandlersProvider: <T>(options: Partial<TuiItemsHandlers<T>>) => ValueProvider;
@@ -1 +1 @@
1
- {"__symbolic":"module","version":4,"metadata":{"TUI_CALENDAR_DATA_STREAM":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":4,"character":44},"arguments":["Stream that emits calendar data change"]},"TUI_DATE_VALUE_TRANSFORMER":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":3,"character":46},"arguments":["Control value transformer of TuiDay to custom value format for InputDate* components"]},"TUI_DATE_RANGE_VALUE_TRANSFORMER":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":7,"character":52},"arguments":["Control value transformer for InputDateRange component"]},"TUI_DATE_TIME_VALUE_TRANSFORMER":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":11,"character":51},"arguments":["Control value transformer for InputDateTime component"]},"TUI_CANCEL_WORD":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":5,"character":35},"arguments":["i18n 'cancel' word",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":6,"character":13},"arguments":["cancel"]}}]},"TUI_DONE_WORD":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":9,"character":33},"arguments":["i18n 'done' word",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":10,"character":13},"arguments":["done"]}}]},"TUI_MORE_WORD":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":13,"character":33},"arguments":["i18n 'more' word",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":14,"character":13},"arguments":["more"]}}]},"TUI_OTHER_DATE_TEXT":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":17,"character":39},"arguments":["i18n 'Other date' text",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":18,"character":13},"arguments":["otherDate"]}}]},"TUI_CHOOSE_DAY_OR_RANGE_TEXTS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":21,"character":49},"arguments":["choose day or range i18n texts",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":24,"character":17},"arguments":["mobileCalendarTexts"]}}]},"TUI_FROM_TO_TEXTS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":28,"character":37},"arguments":["from and to i18n texts",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":29,"character":13},"arguments":["range"]}}]},"TUI_PLUS_MINUS_TEXTS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":32,"character":40},"arguments":["plus and minus i18n texts",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":33,"character":13},"arguments":["countTexts"]}}]},"TUI_TIME_TEXTS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":36,"character":34},"arguments":["time i18n texts",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":37,"character":13},"arguments":["time"]}}]},"TUI_DATE_TEXTS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":40,"character":34},"arguments":["date format i18n texts",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":43,"character":17},"arguments":["dateTexts"]}}]},"TUI_DIGITAL_INFORMATION_UNITS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":47,"character":49},"arguments":["short bytes, kilobytes and megabytes i18n texts",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":50,"character":17},"arguments":["digitalInformationUnits"]}}]},"TUI_COPY_TEXTS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":54,"character":34},"arguments":["copy i18n texts",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":55,"character":13},"arguments":["copyTexts"]}}]},"TUI_PASSWORD_TEXTS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":58,"character":38},"arguments":["password i18n texts",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":59,"character":13},"arguments":["passwordTexts"]}}]},"TUI_CALENDAR_MONTHS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":62,"character":39},"arguments":["short calendar months i18n",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":63,"character":13},"arguments":["shortCalendarMonths"]}}]},"TUI_FILE_TEXTS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":66,"character":34},"arguments":["file i18n texts",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":67,"character":13},"arguments":["fileTexts"]}}]},"TUI_PAGINATION_TEXTS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":70,"character":40},"arguments":["pagination i18n texts",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":71,"character":13},"arguments":["paginationTexts"]}}]},"TUI_INPUT_FILE_TEXTS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":74,"character":40},"arguments":["tui-input-file i18n texts",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":75,"character":13},"arguments":["inputFileTexts"]}}]},"TUI_COUNTRIES":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":80,"character":8},"arguments":["Localized countries names",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":81,"character":13},"arguments":["countries"]}}]},"TUI_MOBILE_AWARE":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":2,"character":36},"arguments":["A flag enabling mobile-specific behavior for supporting components",{"__symbolic":"error","message":"Lambda not supported","line":5,"character":17,"module":"./mobile-aware"}]},"TUI_MOBILE_CALENDAR":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":2,"character":39},"arguments":["A component for mobile data picker"]},"TUI_TAG_STATUS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":3,"character":34},"arguments":["Status for tags inside InputTag component",{"__symbolic":"error","message":"Lambda not supported","line":6,"character":17,"module":"./tag-status"}]},"TUI_VALIDATION_ERRORS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":4,"character":41},"arguments":["Validation errors",{"__symbolic":"error","message":"Lambda not supported","line":7,"character":13,"module":"./validation-errors"}]}},"origins":{"TUI_CALENDAR_DATA_STREAM":"./calendar-data-stream","TUI_DATE_VALUE_TRANSFORMER":"./date-inputs-value-transformers","TUI_DATE_RANGE_VALUE_TRANSFORMER":"./date-inputs-value-transformers","TUI_DATE_TIME_VALUE_TRANSFORMER":"./date-inputs-value-transformers","TUI_CANCEL_WORD":"./i18n","TUI_DONE_WORD":"./i18n","TUI_MORE_WORD":"./i18n","TUI_OTHER_DATE_TEXT":"./i18n","TUI_CHOOSE_DAY_OR_RANGE_TEXTS":"./i18n","TUI_FROM_TO_TEXTS":"./i18n","TUI_PLUS_MINUS_TEXTS":"./i18n","TUI_TIME_TEXTS":"./i18n","TUI_DATE_TEXTS":"./i18n","TUI_DIGITAL_INFORMATION_UNITS":"./i18n","TUI_COPY_TEXTS":"./i18n","TUI_PASSWORD_TEXTS":"./i18n","TUI_CALENDAR_MONTHS":"./i18n","TUI_FILE_TEXTS":"./i18n","TUI_PAGINATION_TEXTS":"./i18n","TUI_INPUT_FILE_TEXTS":"./i18n","TUI_COUNTRIES":"./i18n","TUI_MOBILE_AWARE":"./mobile-aware","TUI_MOBILE_CALENDAR":"./mobile-calendar","TUI_TAG_STATUS":"./tag-status","TUI_VALIDATION_ERRORS":"./validation-errors"},"importAs":"@taiga-ui/kit/tokens"}
1
+ {"__symbolic":"module","version":4,"metadata":{"TUI_CALENDAR_DATA_STREAM":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":4,"character":44},"arguments":["Stream that emits calendar data change"]},"TUI_DATE_VALUE_TRANSFORMER":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":3,"character":46},"arguments":["Control value transformer of TuiDay to custom value format for InputDate* components"]},"TUI_DATE_RANGE_VALUE_TRANSFORMER":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":7,"character":52},"arguments":["Control value transformer for InputDateRange component"]},"TUI_DATE_TIME_VALUE_TRANSFORMER":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":11,"character":51},"arguments":["Control value transformer for InputDateTime component"]},"TUI_CANCEL_WORD":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":5,"character":35},"arguments":["i18n 'cancel' word",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":6,"character":13},"arguments":["cancel"]}}]},"TUI_DONE_WORD":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":9,"character":33},"arguments":["i18n 'done' word",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":10,"character":13},"arguments":["done"]}}]},"TUI_MORE_WORD":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":13,"character":33},"arguments":["i18n 'more' word",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":14,"character":13},"arguments":["more"]}}]},"TUI_OTHER_DATE_TEXT":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":17,"character":39},"arguments":["i18n 'Other date' text",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":18,"character":13},"arguments":["otherDate"]}}]},"TUI_CHOOSE_DAY_OR_RANGE_TEXTS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":21,"character":49},"arguments":["choose day or range i18n texts",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":24,"character":17},"arguments":["mobileCalendarTexts"]}}]},"TUI_FROM_TO_TEXTS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":28,"character":37},"arguments":["from and to i18n texts",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":29,"character":13},"arguments":["range"]}}]},"TUI_PLUS_MINUS_TEXTS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":32,"character":40},"arguments":["plus and minus i18n texts",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":33,"character":13},"arguments":["countTexts"]}}]},"TUI_TIME_TEXTS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":36,"character":34},"arguments":["time i18n texts",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":37,"character":13},"arguments":["time"]}}]},"TUI_DATE_TEXTS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":40,"character":34},"arguments":["date format i18n texts",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":43,"character":17},"arguments":["dateTexts"]}}]},"TUI_DIGITAL_INFORMATION_UNITS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":47,"character":49},"arguments":["short bytes, kilobytes and megabytes i18n texts",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":50,"character":17},"arguments":["digitalInformationUnits"]}}]},"TUI_COPY_TEXTS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":54,"character":34},"arguments":["copy i18n texts",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":55,"character":13},"arguments":["copyTexts"]}}]},"TUI_PASSWORD_TEXTS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":58,"character":38},"arguments":["password i18n texts",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":59,"character":13},"arguments":["passwordTexts"]}}]},"TUI_CALENDAR_MONTHS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":62,"character":39},"arguments":["short calendar months i18n",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":63,"character":13},"arguments":["shortCalendarMonths"]}}]},"TUI_FILE_TEXTS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":66,"character":34},"arguments":["file i18n texts",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":67,"character":13},"arguments":["fileTexts"]}}]},"TUI_PAGINATION_TEXTS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":70,"character":40},"arguments":["pagination i18n texts",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":71,"character":13},"arguments":["paginationTexts"]}}]},"TUI_INPUT_FILE_TEXTS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":74,"character":40},"arguments":["tui-input-file i18n texts",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":75,"character":13},"arguments":["inputFileTexts"]}}]},"TUI_COUNTRIES":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":80,"character":8},"arguments":["Localized countries names",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":81,"character":13},"arguments":["countries"]}}]},"TuiItemsHandlers":{"__symbolic":"interface"},"TUI_DEFAULT_ITEMS_HANDLERS":{"stringify":{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"TUI_DEFAULT_STRINGIFY","line":17,"character":15},"identityMatcher":{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"TUI_DEFAULT_IDENTITY_MATCHER","line":18,"character":21},"disabledItemHandler":{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"ALWAYS_FALSE_HANDLER","line":19,"character":25}},"TUI_ITEMS_HANDLERS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":22,"character":38},"arguments":["Default items handlers for components",{"__symbolic":"error","message":"Lambda not supported","line":25,"character":17,"module":"./items-handlers"}]},"tuiItemsHandlersProvider":{"__symbolic":"error","message":"Lambda not supported","line":31,"character":21,"module":"./items-handlers"},"TUI_MOBILE_AWARE":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":2,"character":36},"arguments":["A flag enabling mobile-specific behavior for supporting components",{"__symbolic":"error","message":"Lambda not supported","line":5,"character":17,"module":"./mobile-aware"}]},"TUI_MOBILE_CALENDAR":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":2,"character":39},"arguments":["A component for mobile data picker"]},"TUI_TAG_STATUS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":3,"character":34},"arguments":["Status for tags inside InputTag component",{"__symbolic":"error","message":"Lambda not supported","line":6,"character":17,"module":"./tag-status"}]},"TUI_VALIDATION_ERRORS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":4,"character":41},"arguments":["Validation errors",{"__symbolic":"error","message":"Lambda not supported","line":7,"character":13,"module":"./validation-errors"}]}},"origins":{"TUI_CALENDAR_DATA_STREAM":"./calendar-data-stream","TUI_DATE_VALUE_TRANSFORMER":"./date-inputs-value-transformers","TUI_DATE_RANGE_VALUE_TRANSFORMER":"./date-inputs-value-transformers","TUI_DATE_TIME_VALUE_TRANSFORMER":"./date-inputs-value-transformers","TUI_CANCEL_WORD":"./i18n","TUI_DONE_WORD":"./i18n","TUI_MORE_WORD":"./i18n","TUI_OTHER_DATE_TEXT":"./i18n","TUI_CHOOSE_DAY_OR_RANGE_TEXTS":"./i18n","TUI_FROM_TO_TEXTS":"./i18n","TUI_PLUS_MINUS_TEXTS":"./i18n","TUI_TIME_TEXTS":"./i18n","TUI_DATE_TEXTS":"./i18n","TUI_DIGITAL_INFORMATION_UNITS":"./i18n","TUI_COPY_TEXTS":"./i18n","TUI_PASSWORD_TEXTS":"./i18n","TUI_CALENDAR_MONTHS":"./i18n","TUI_FILE_TEXTS":"./i18n","TUI_PAGINATION_TEXTS":"./i18n","TUI_INPUT_FILE_TEXTS":"./i18n","TUI_COUNTRIES":"./i18n","TuiItemsHandlers":"./items-handlers","TUI_DEFAULT_ITEMS_HANDLERS":"./items-handlers","TUI_ITEMS_HANDLERS":"./items-handlers","tuiItemsHandlersProvider":"./items-handlers","TUI_MOBILE_AWARE":"./mobile-aware","TUI_MOBILE_CALENDAR":"./mobile-calendar","TUI_TAG_STATUS":"./tag-status","TUI_VALIDATION_ERRORS":"./validation-errors"},"importAs":"@taiga-ui/kit/tokens"}