@taiga-ui/kit 2.36.0 → 2.37.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 (437) hide show
  1. package/abstract/input-slider.d.ts +22 -3
  2. package/abstract/taiga-ui-kit-abstract.metadata.json +1 -1
  3. package/bundles/taiga-ui-kit-abstract.umd.js +65 -17
  4. package/bundles/taiga-ui-kit-abstract.umd.js.map +1 -1
  5. package/bundles/taiga-ui-kit-abstract.umd.min.js +2 -2
  6. package/bundles/taiga-ui-kit-abstract.umd.min.js.map +1 -1
  7. package/bundles/taiga-ui-kit-components-accordion.umd.js +1 -1
  8. package/bundles/taiga-ui-kit-components-accordion.umd.js.map +1 -1
  9. package/bundles/taiga-ui-kit-components-accordion.umd.min.js +1 -1
  10. package/bundles/taiga-ui-kit-components-accordion.umd.min.js.map +1 -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.map +1 -1
  13. package/bundles/taiga-ui-kit-components-badge.umd.js.map +1 -1
  14. package/bundles/taiga-ui-kit-components-badge.umd.min.js.map +1 -1
  15. package/bundles/taiga-ui-kit-components-badged-content.umd.js +1 -1
  16. package/bundles/taiga-ui-kit-components-badged-content.umd.js.map +1 -1
  17. package/bundles/taiga-ui-kit-components-badged-content.umd.min.js +1 -1
  18. package/bundles/taiga-ui-kit-components-badged-content.umd.min.js.map +1 -1
  19. package/bundles/taiga-ui-kit-components-combo-box.umd.js.map +1 -1
  20. package/bundles/taiga-ui-kit-components-combo-box.umd.min.js.map +1 -1
  21. package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.js +4 -4
  22. package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.js.map +1 -1
  23. package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.min.js +2 -2
  24. package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.min.js.map +1 -1
  25. package/bundles/taiga-ui-kit-components-files.umd.js +504 -0
  26. package/bundles/taiga-ui-kit-components-files.umd.js.map +1 -0
  27. package/bundles/taiga-ui-kit-components-files.umd.min.js +16 -0
  28. package/bundles/taiga-ui-kit-components-files.umd.min.js.map +1 -0
  29. package/bundles/taiga-ui-kit-components-input-count.umd.js +2 -2
  30. package/bundles/taiga-ui-kit-components-input-count.umd.js.map +1 -1
  31. package/bundles/taiga-ui-kit-components-input-count.umd.min.js +1 -1
  32. package/bundles/taiga-ui-kit-components-input-count.umd.min.js.map +1 -1
  33. package/bundles/taiga-ui-kit-components-input-date-range.umd.js +3 -1
  34. package/bundles/taiga-ui-kit-components-input-date-range.umd.js.map +1 -1
  35. package/bundles/taiga-ui-kit-components-input-date-range.umd.min.js.map +1 -1
  36. package/bundles/taiga-ui-kit-components-input-date-time.umd.js +1 -1
  37. package/bundles/taiga-ui-kit-components-input-date-time.umd.js.map +1 -1
  38. package/bundles/taiga-ui-kit-components-input-date-time.umd.min.js +1 -1
  39. package/bundles/taiga-ui-kit-components-input-date-time.umd.min.js.map +1 -1
  40. package/bundles/taiga-ui-kit-components-input-date.umd.js +4 -2
  41. package/bundles/taiga-ui-kit-components-input-date.umd.js.map +1 -1
  42. package/bundles/taiga-ui-kit-components-input-date.umd.min.js +1 -1
  43. package/bundles/taiga-ui-kit-components-input-date.umd.min.js.map +1 -1
  44. package/bundles/taiga-ui-kit-components-input-file.umd.js +43 -45
  45. package/bundles/taiga-ui-kit-components-input-file.umd.js.map +1 -1
  46. package/bundles/taiga-ui-kit-components-input-file.umd.min.js +1 -1
  47. package/bundles/taiga-ui-kit-components-input-file.umd.min.js.map +1 -1
  48. package/bundles/taiga-ui-kit-components-input-files.umd.js +490 -0
  49. package/bundles/taiga-ui-kit-components-input-files.umd.js.map +1 -0
  50. package/bundles/taiga-ui-kit-components-input-files.umd.min.js +16 -0
  51. package/bundles/taiga-ui-kit-components-input-files.umd.min.js.map +1 -0
  52. package/bundles/taiga-ui-kit-components-input-number.umd.js +16 -14
  53. package/bundles/taiga-ui-kit-components-input-number.umd.js.map +1 -1
  54. package/bundles/taiga-ui-kit-components-input-number.umd.min.js +1 -1
  55. package/bundles/taiga-ui-kit-components-input-number.umd.min.js.map +1 -1
  56. package/bundles/taiga-ui-kit-components-input-password.umd.js +2 -2
  57. package/bundles/taiga-ui-kit-components-input-password.umd.js.map +1 -1
  58. package/bundles/taiga-ui-kit-components-input-password.umd.min.js +1 -1
  59. package/bundles/taiga-ui-kit-components-input-password.umd.min.js.map +1 -1
  60. package/bundles/taiga-ui-kit-components-input-phone-international.umd.js +20 -8
  61. package/bundles/taiga-ui-kit-components-input-phone-international.umd.js.map +1 -1
  62. package/bundles/taiga-ui-kit-components-input-phone-international.umd.min.js +2 -2
  63. package/bundles/taiga-ui-kit-components-input-phone-international.umd.min.js.map +1 -1
  64. package/bundles/taiga-ui-kit-components-input-phone.umd.js +5 -4
  65. package/bundles/taiga-ui-kit-components-input-phone.umd.js.map +1 -1
  66. package/bundles/taiga-ui-kit-components-input-phone.umd.min.js +1 -1
  67. package/bundles/taiga-ui-kit-components-input-phone.umd.min.js.map +1 -1
  68. package/bundles/taiga-ui-kit-components-input-range.umd.js +16 -4
  69. package/bundles/taiga-ui-kit-components-input-range.umd.js.map +1 -1
  70. package/bundles/taiga-ui-kit-components-input-range.umd.min.js +2 -2
  71. package/bundles/taiga-ui-kit-components-input-range.umd.min.js.map +1 -1
  72. package/bundles/taiga-ui-kit-components-input-slider.umd.js +61 -14
  73. package/bundles/taiga-ui-kit-components-input-slider.umd.js.map +1 -1
  74. package/bundles/taiga-ui-kit-components-input-slider.umd.min.js +2 -2
  75. package/bundles/taiga-ui-kit-components-input-slider.umd.min.js.map +1 -1
  76. package/bundles/taiga-ui-kit-components-input-tag.umd.js +1 -1
  77. package/bundles/taiga-ui-kit-components-input-tag.umd.js.map +1 -1
  78. package/bundles/taiga-ui-kit-components-input-tag.umd.min.js +1 -1
  79. package/bundles/taiga-ui-kit-components-input-tag.umd.min.js.map +1 -1
  80. package/bundles/taiga-ui-kit-components-input-time.umd.js.map +1 -1
  81. package/bundles/taiga-ui-kit-components-input-time.umd.min.js.map +1 -1
  82. package/bundles/taiga-ui-kit-components-input.umd.js.map +1 -1
  83. package/bundles/taiga-ui-kit-components-input.umd.min.js.map +1 -1
  84. package/bundles/taiga-ui-kit-components-line-clamp.umd.js +2 -2
  85. package/bundles/taiga-ui-kit-components-line-clamp.umd.js.map +1 -1
  86. package/bundles/taiga-ui-kit-components-line-clamp.umd.min.js +1 -1
  87. package/bundles/taiga-ui-kit-components-line-clamp.umd.min.js.map +1 -1
  88. package/bundles/taiga-ui-kit-components-multi-select-option.umd.js +2 -2
  89. package/bundles/taiga-ui-kit-components-multi-select-option.umd.js.map +1 -1
  90. package/bundles/taiga-ui-kit-components-multi-select-option.umd.min.js +1 -1
  91. package/bundles/taiga-ui-kit-components-multi-select-option.umd.min.js.map +1 -1
  92. package/bundles/taiga-ui-kit-components-multi-select.umd.js +2 -2
  93. package/bundles/taiga-ui-kit-components-multi-select.umd.js.map +1 -1
  94. package/bundles/taiga-ui-kit-components-multi-select.umd.min.js +1 -1
  95. package/bundles/taiga-ui-kit-components-multi-select.umd.min.js.map +1 -1
  96. package/bundles/taiga-ui-kit-components-pagination.umd.js +1 -1
  97. package/bundles/taiga-ui-kit-components-pagination.umd.js.map +1 -1
  98. package/bundles/taiga-ui-kit-components-pagination.umd.min.js +1 -1
  99. package/bundles/taiga-ui-kit-components-pagination.umd.min.js.map +1 -1
  100. package/bundles/taiga-ui-kit-components-progress.umd.js +1 -1
  101. package/bundles/taiga-ui-kit-components-progress.umd.js.map +1 -1
  102. package/bundles/taiga-ui-kit-components-progress.umd.min.js +1 -1
  103. package/bundles/taiga-ui-kit-components-progress.umd.min.js.map +1 -1
  104. package/bundles/taiga-ui-kit-components-radio.umd.js.map +1 -1
  105. package/bundles/taiga-ui-kit-components-radio.umd.min.js.map +1 -1
  106. package/bundles/taiga-ui-kit-components-select.umd.js.map +1 -1
  107. package/bundles/taiga-ui-kit-components-select.umd.min.js.map +1 -1
  108. package/bundles/taiga-ui-kit-components-slider.umd.js +65 -20
  109. package/bundles/taiga-ui-kit-components-slider.umd.js.map +1 -1
  110. package/bundles/taiga-ui-kit-components-slider.umd.min.js +2 -2
  111. package/bundles/taiga-ui-kit-components-slider.umd.min.js.map +1 -1
  112. package/bundles/taiga-ui-kit-components-text-area.umd.js +1 -1
  113. package/bundles/taiga-ui-kit-components-text-area.umd.min.js +1 -1
  114. package/bundles/taiga-ui-kit-components-text-area.umd.min.js.map +1 -1
  115. package/bundles/taiga-ui-kit-components.umd.js +20 -4
  116. package/bundles/taiga-ui-kit-components.umd.js.map +1 -1
  117. package/bundles/taiga-ui-kit-components.umd.min.js +1 -1
  118. package/bundles/taiga-ui-kit-enums.umd.js.map +1 -1
  119. package/bundles/taiga-ui-kit-enums.umd.min.js.map +1 -1
  120. package/bundles/taiga-ui-kit-pipes-field-error.umd.js +10 -2
  121. package/bundles/taiga-ui-kit-pipes-field-error.umd.js.map +1 -1
  122. package/bundles/taiga-ui-kit-pipes-field-error.umd.min.js +1 -1
  123. package/bundles/taiga-ui-kit-pipes-field-error.umd.min.js.map +1 -1
  124. package/bundles/taiga-ui-kit-tokens.umd.js +8 -0
  125. package/bundles/taiga-ui-kit-tokens.umd.js.map +1 -1
  126. package/bundles/taiga-ui-kit-tokens.umd.min.js +1 -1
  127. package/bundles/taiga-ui-kit-tokens.umd.min.js.map +1 -1
  128. package/bundles/taiga-ui-kit-utils-files.umd.js +8 -0
  129. package/bundles/taiga-ui-kit-utils-files.umd.js.map +1 -1
  130. package/bundles/taiga-ui-kit-utils-files.umd.min.js +1 -1
  131. package/bundles/taiga-ui-kit-utils-files.umd.min.js.map +1 -1
  132. package/components/arrow/arrow-options.d.ts +4 -2
  133. package/components/arrow/taiga-ui-kit-components-arrow.metadata.json +1 -1
  134. package/components/badge/badge.component.d.ts +2 -1
  135. package/components/badge/taiga-ui-kit-components-badge.metadata.json +1 -1
  136. package/components/combo-box/combo-box.component.d.ts +4 -4
  137. package/components/combo-box/taiga-ui-kit-components-combo-box.metadata.json +1 -1
  138. package/components/data-list-wrapper/taiga-ui-kit-components-data-list-wrapper.metadata.json +1 -1
  139. package/components/files/file/file.component.d.ts +42 -0
  140. package/components/files/files.component.d.ts +12 -0
  141. package/components/files/files.module.d.ts +2 -0
  142. package/components/files/index.d.ts +2 -0
  143. package/components/files/package.json +13 -0
  144. package/components/files/taiga-ui-kit-components-files.d.ts +5 -0
  145. package/components/files/taiga-ui-kit-components-files.metadata.json +1 -0
  146. package/components/index.d.ts +2 -0
  147. package/components/input/input.component.d.ts +2 -2
  148. package/components/input/taiga-ui-kit-components-input.metadata.json +1 -1
  149. package/components/input-count/input-count.component.d.ts +3 -2
  150. package/components/input-count/taiga-ui-kit-components-input-count.metadata.json +1 -1
  151. package/components/input-date/input-date.component.d.ts +5 -3
  152. package/components/input-date/taiga-ui-kit-components-input-date.metadata.json +1 -1
  153. package/components/input-date-range/input-date-range.component.d.ts +3 -2
  154. package/components/input-date-range/taiga-ui-kit-components-input-date-range.metadata.json +1 -1
  155. package/components/input-date-time/input-date-time.component.d.ts +7 -5
  156. package/components/input-date-time/taiga-ui-kit-components-input-date-time.metadata.json +1 -1
  157. package/components/input-file/file/file.component.d.ts +1 -1
  158. package/components/input-file/taiga-ui-kit-components-input-file.metadata.json +1 -1
  159. package/components/input-files/index.d.ts +2 -0
  160. package/components/input-files/input-files.component.d.ts +41 -0
  161. package/components/input-files/input-files.module.d.ts +2 -0
  162. package/components/input-files/package.json +13 -0
  163. package/components/input-files/taiga-ui-kit-components-input-files.d.ts +4 -0
  164. package/components/input-files/taiga-ui-kit-components-input-files.metadata.json +1 -0
  165. package/components/input-number/input-number.component.d.ts +3 -2
  166. package/components/input-number/taiga-ui-kit-components-input-number.metadata.json +1 -1
  167. package/components/input-password/input-password.component.d.ts +4 -3
  168. package/components/input-password/taiga-ui-kit-components-input-password.metadata.json +1 -1
  169. package/components/input-phone/input-phone.component.d.ts +5 -6
  170. package/components/input-phone/taiga-ui-kit-components-input-phone.metadata.json +1 -1
  171. package/components/input-phone-international/input-phone-international.component.d.ts +4 -2
  172. package/components/input-phone-international/taiga-ui-kit-components-input-phone-international.metadata.json +1 -1
  173. package/components/input-range/input-range.component.d.ts +2 -0
  174. package/components/input-range/taiga-ui-kit-components-input-range.metadata.json +1 -1
  175. package/components/input-slider/input-slider.component.d.ts +19 -3
  176. package/components/input-slider/taiga-ui-kit-components-input-slider.metadata.json +1 -1
  177. package/components/input-tag/input-tag.component.d.ts +2 -1
  178. package/components/input-tag/taiga-ui-kit-components-input-tag.metadata.json +1 -1
  179. package/components/input-time/input-time.component.d.ts +2 -2
  180. package/components/input-time/taiga-ui-kit-components-input-time.metadata.json +1 -1
  181. package/components/multi-select/multi-select.component.d.ts +5 -5
  182. package/components/multi-select/taiga-ui-kit-components-multi-select.metadata.json +1 -1
  183. package/components/multi-select-option/taiga-ui-kit-components-multi-select-option.metadata.json +1 -1
  184. package/components/pagination/taiga-ui-kit-components-pagination.metadata.json +1 -1
  185. package/components/progress/utils/calculate-color-segments.d.ts +0 -4
  186. package/components/radio/radio.component.d.ts +1 -1
  187. package/components/select/select.component.d.ts +4 -4
  188. package/components/select/taiga-ui-kit-components-select.metadata.json +1 -1
  189. package/components/slider/slider-key-steps.directive.d.ts +12 -2
  190. package/components/slider/slider-options.d.ts +1 -1
  191. package/components/slider/taiga-ui-kit-components-slider.metadata.json +1 -1
  192. package/components/taiga-ui-kit-components.metadata.json +1 -1
  193. package/components/text-area/taiga-ui-kit-components-text-area.metadata.json +1 -1
  194. package/enums/file-state.d.ts +1 -0
  195. package/enums/taiga-ui-kit-enums.metadata.json +1 -1
  196. package/esm2015/abstract/input-slider.js +43 -4
  197. package/esm2015/components/accordion/accordion.component.js +2 -2
  198. package/esm2015/components/arrow/arrow-options.js +1 -1
  199. package/esm2015/components/badge/badge.component.js +1 -1
  200. package/esm2015/components/badged-content/badged-content.component.js +3 -3
  201. package/esm2015/components/combo-box/combo-box.component.js +1 -1
  202. package/esm2015/components/data-list-wrapper/data-list-group-wrapper.component.js +3 -3
  203. package/esm2015/components/data-list-wrapper/data-list-wrapper.component.js +3 -3
  204. package/esm2015/components/files/file/file.component.js +164 -0
  205. package/esm2015/components/files/files.component.js +45 -0
  206. package/esm2015/components/files/files.module.js +29 -0
  207. package/esm2015/components/files/index.js +3 -0
  208. package/esm2015/components/files/taiga-ui-kit-components-files.js +6 -0
  209. package/esm2015/components/index.js +3 -1
  210. package/esm2015/components/input/input.component.js +1 -1
  211. package/esm2015/components/input-count/input-count.component.js +3 -3
  212. package/esm2015/components/input-date/input-date.component.js +5 -3
  213. package/esm2015/components/input-date-range/input-date-range.component.js +4 -2
  214. package/esm2015/components/input-date-time/input-date-time.component.js +2 -2
  215. package/esm2015/components/input-file/file/file.component.js +19 -19
  216. package/esm2015/components/input-file/input-file.component.js +7 -7
  217. package/esm2015/components/input-file/input-file.module.js +3 -3
  218. package/esm2015/components/input-files/index.js +3 -0
  219. package/esm2015/components/input-files/input-files.component.js +208 -0
  220. package/esm2015/components/input-files/input-files.module.js +34 -0
  221. package/esm2015/components/input-files/taiga-ui-kit-components-input-files.js +5 -0
  222. package/esm2015/components/input-number/input-number.component.js +5 -5
  223. package/esm2015/components/input-password/input-password.component.js +3 -3
  224. package/esm2015/components/input-phone/input-phone.component.js +6 -5
  225. package/esm2015/components/input-phone-international/input-phone-international.component.js +20 -6
  226. package/esm2015/components/input-range/input-range.component.js +18 -6
  227. package/esm2015/components/input-slider/input-slider.component.js +55 -11
  228. package/esm2015/components/input-slider/input-slider.module.js +10 -6
  229. package/esm2015/components/input-tag/input-tag.component.js +2 -2
  230. package/esm2015/components/input-time/input-time.component.js +1 -1
  231. package/esm2015/components/line-clamp/line-clamp.directive.js +4 -4
  232. package/esm2015/components/multi-select/multi-select-group/multi-select-group.component.js +3 -3
  233. package/esm2015/components/multi-select/multi-select.component.js +2 -2
  234. package/esm2015/components/multi-select-option/multi-select-option.component.js +3 -3
  235. package/esm2015/components/pagination/pagination.component.js +2 -2
  236. package/esm2015/components/progress/utils/calculate-color-segments.js +3 -2
  237. package/esm2015/components/radio/radio.component.js +1 -1
  238. package/esm2015/components/select/select.component.js +2 -2
  239. package/esm2015/components/slider/slider-key-steps.directive.js +33 -8
  240. package/esm2015/components/slider/slider-options.js +7 -5
  241. package/esm2015/components/slider/slider.module.js +14 -4
  242. package/esm2015/components/text-area/text-area.component.js +1 -1
  243. package/esm2015/enums/file-state.js +1 -1
  244. package/esm2015/pipes/field-error/field-error-content-pipe.js +11 -3
  245. package/esm2015/tokens/i18n.js +7 -1
  246. package/esm2015/utils/files/get-accept-array.js +7 -0
  247. package/esm2015/utils/files/index.js +2 -1
  248. package/esm5/abstract/input-slider.js +65 -16
  249. package/esm5/components/accordion/accordion.component.js +2 -2
  250. package/esm5/components/arrow/arrow-options.js +1 -1
  251. package/esm5/components/badge/badge.component.js +1 -1
  252. package/esm5/components/badged-content/badged-content.component.js +3 -3
  253. package/esm5/components/combo-box/combo-box.component.js +1 -1
  254. package/esm5/components/data-list-wrapper/data-list-group-wrapper.component.js +3 -3
  255. package/esm5/components/data-list-wrapper/data-list-wrapper.component.js +3 -3
  256. package/esm5/components/files/file/file.component.js +213 -0
  257. package/esm5/components/files/files.component.js +50 -0
  258. package/esm5/components/files/files.module.js +32 -0
  259. package/esm5/components/files/index.js +3 -0
  260. package/esm5/components/files/taiga-ui-kit-components-files.js +6 -0
  261. package/esm5/components/index.js +3 -1
  262. package/esm5/components/input/input.component.js +1 -1
  263. package/esm5/components/input-count/input-count.component.js +3 -3
  264. package/esm5/components/input-date/input-date.component.js +5 -3
  265. package/esm5/components/input-date-range/input-date-range.component.js +4 -2
  266. package/esm5/components/input-date-time/input-date-time.component.js +2 -2
  267. package/esm5/components/input-file/file/file.component.js +37 -37
  268. package/esm5/components/input-file/input-file.component.js +7 -9
  269. package/esm5/components/input-file/input-file.module.js +3 -3
  270. package/esm5/components/input-files/index.js +3 -0
  271. package/esm5/components/input-files/input-files.component.js +239 -0
  272. package/esm5/components/input-files/input-files.module.js +37 -0
  273. package/esm5/components/input-files/taiga-ui-kit-components-input-files.js +5 -0
  274. package/esm5/components/input-number/input-number.component.js +18 -16
  275. package/esm5/components/input-password/input-password.component.js +3 -3
  276. package/esm5/components/input-phone/input-phone.component.js +6 -5
  277. package/esm5/components/input-phone-international/input-phone-international.component.js +21 -9
  278. package/esm5/components/input-range/input-range.component.js +18 -6
  279. package/esm5/components/input-slider/input-slider.component.js +58 -11
  280. package/esm5/components/input-slider/input-slider.module.js +10 -6
  281. package/esm5/components/input-tag/input-tag.component.js +2 -2
  282. package/esm5/components/input-time/input-time.component.js +1 -1
  283. package/esm5/components/line-clamp/line-clamp.directive.js +4 -4
  284. package/esm5/components/multi-select/multi-select-group/multi-select-group.component.js +3 -3
  285. package/esm5/components/multi-select/multi-select.component.js +2 -2
  286. package/esm5/components/multi-select-option/multi-select-option.component.js +3 -3
  287. package/esm5/components/pagination/pagination.component.js +2 -2
  288. package/esm5/components/progress/utils/calculate-color-segments.js +3 -2
  289. package/esm5/components/radio/radio.component.js +1 -1
  290. package/esm5/components/select/select.component.js +2 -2
  291. package/esm5/components/slider/slider-key-steps.directive.js +48 -13
  292. package/esm5/components/slider/slider-options.js +7 -5
  293. package/esm5/components/slider/slider.module.js +14 -4
  294. package/esm5/components/text-area/text-area.component.js +1 -1
  295. package/esm5/enums/file-state.js +1 -1
  296. package/esm5/pipes/field-error/field-error-content-pipe.js +11 -3
  297. package/esm5/tokens/i18n.js +7 -1
  298. package/esm5/utils/files/get-accept-array.js +7 -0
  299. package/esm5/utils/files/index.js +2 -1
  300. package/fesm2015/taiga-ui-kit-abstract.js +42 -3
  301. package/fesm2015/taiga-ui-kit-abstract.js.map +1 -1
  302. package/fesm2015/taiga-ui-kit-components-accordion.js +1 -1
  303. package/fesm2015/taiga-ui-kit-components-accordion.js.map +1 -1
  304. package/fesm2015/taiga-ui-kit-components-arrow.js.map +1 -1
  305. package/fesm2015/taiga-ui-kit-components-badge.js.map +1 -1
  306. package/fesm2015/taiga-ui-kit-components-badged-content.js +2 -2
  307. package/fesm2015/taiga-ui-kit-components-badged-content.js.map +1 -1
  308. package/fesm2015/taiga-ui-kit-components-combo-box.js.map +1 -1
  309. package/fesm2015/taiga-ui-kit-components-data-list-wrapper.js +4 -4
  310. package/fesm2015/taiga-ui-kit-components-data-list-wrapper.js.map +1 -1
  311. package/fesm2015/taiga-ui-kit-components-files.js +232 -0
  312. package/fesm2015/taiga-ui-kit-components-files.js.map +1 -0
  313. package/fesm2015/taiga-ui-kit-components-input-count.js +2 -2
  314. package/fesm2015/taiga-ui-kit-components-input-count.js.map +1 -1
  315. package/fesm2015/taiga-ui-kit-components-input-date-range.js +3 -1
  316. package/fesm2015/taiga-ui-kit-components-input-date-range.js.map +1 -1
  317. package/fesm2015/taiga-ui-kit-components-input-date-time.js +1 -1
  318. package/fesm2015/taiga-ui-kit-components-input-date-time.js.map +1 -1
  319. package/fesm2015/taiga-ui-kit-components-input-date.js +4 -2
  320. package/fesm2015/taiga-ui-kit-components-input-date.js.map +1 -1
  321. package/fesm2015/taiga-ui-kit-components-input-file.js +25 -25
  322. package/fesm2015/taiga-ui-kit-components-input-file.js.map +1 -1
  323. package/fesm2015/taiga-ui-kit-components-input-files.js +242 -0
  324. package/fesm2015/taiga-ui-kit-components-input-files.js.map +1 -0
  325. package/fesm2015/taiga-ui-kit-components-input-number.js +4 -4
  326. package/fesm2015/taiga-ui-kit-components-input-number.js.map +1 -1
  327. package/fesm2015/taiga-ui-kit-components-input-password.js +3 -3
  328. package/fesm2015/taiga-ui-kit-components-input-password.js.map +1 -1
  329. package/fesm2015/taiga-ui-kit-components-input-phone-international.js +19 -5
  330. package/fesm2015/taiga-ui-kit-components-input-phone-international.js.map +1 -1
  331. package/fesm2015/taiga-ui-kit-components-input-phone.js +5 -4
  332. package/fesm2015/taiga-ui-kit-components-input-phone.js.map +1 -1
  333. package/fesm2015/taiga-ui-kit-components-input-range.js +17 -5
  334. package/fesm2015/taiga-ui-kit-components-input-range.js.map +1 -1
  335. package/fesm2015/taiga-ui-kit-components-input-slider.js +61 -15
  336. package/fesm2015/taiga-ui-kit-components-input-slider.js.map +1 -1
  337. package/fesm2015/taiga-ui-kit-components-input-tag.js +1 -1
  338. package/fesm2015/taiga-ui-kit-components-input-tag.js.map +1 -1
  339. package/fesm2015/taiga-ui-kit-components-input-time.js.map +1 -1
  340. package/fesm2015/taiga-ui-kit-components-input.js.map +1 -1
  341. package/fesm2015/taiga-ui-kit-components-line-clamp.js +3 -3
  342. package/fesm2015/taiga-ui-kit-components-line-clamp.js.map +1 -1
  343. package/fesm2015/taiga-ui-kit-components-multi-select-option.js +2 -2
  344. package/fesm2015/taiga-ui-kit-components-multi-select-option.js.map +1 -1
  345. package/fesm2015/taiga-ui-kit-components-multi-select.js +2 -2
  346. package/fesm2015/taiga-ui-kit-components-multi-select.js.map +1 -1
  347. package/fesm2015/taiga-ui-kit-components-pagination.js +1 -1
  348. package/fesm2015/taiga-ui-kit-components-pagination.js.map +1 -1
  349. package/fesm2015/taiga-ui-kit-components-progress.js +2 -2
  350. package/fesm2015/taiga-ui-kit-components-progress.js.map +1 -1
  351. package/fesm2015/taiga-ui-kit-components-radio.js.map +1 -1
  352. package/fesm2015/taiga-ui-kit-components-select.js.map +1 -1
  353. package/fesm2015/taiga-ui-kit-components-slider.js +50 -15
  354. package/fesm2015/taiga-ui-kit-components-slider.js.map +1 -1
  355. package/fesm2015/taiga-ui-kit-components-text-area.js +1 -1
  356. package/fesm2015/taiga-ui-kit-components.js +2 -0
  357. package/fesm2015/taiga-ui-kit-components.js.map +1 -1
  358. package/fesm2015/taiga-ui-kit-enums.js.map +1 -1
  359. package/fesm2015/taiga-ui-kit-pipes-field-error.js +10 -2
  360. package/fesm2015/taiga-ui-kit-pipes-field-error.js.map +1 -1
  361. package/fesm2015/taiga-ui-kit-tokens.js +7 -1
  362. package/fesm2015/taiga-ui-kit-tokens.js.map +1 -1
  363. package/fesm2015/taiga-ui-kit-utils-files.js +8 -1
  364. package/fesm2015/taiga-ui-kit-utils-files.js.map +1 -1
  365. package/fesm5/taiga-ui-kit-abstract.js +64 -15
  366. package/fesm5/taiga-ui-kit-abstract.js.map +1 -1
  367. package/fesm5/taiga-ui-kit-components-accordion.js +1 -1
  368. package/fesm5/taiga-ui-kit-components-accordion.js.map +1 -1
  369. package/fesm5/taiga-ui-kit-components-arrow.js.map +1 -1
  370. package/fesm5/taiga-ui-kit-components-badge.js.map +1 -1
  371. package/fesm5/taiga-ui-kit-components-badged-content.js +2 -2
  372. package/fesm5/taiga-ui-kit-components-badged-content.js.map +1 -1
  373. package/fesm5/taiga-ui-kit-components-combo-box.js.map +1 -1
  374. package/fesm5/taiga-ui-kit-components-data-list-wrapper.js +4 -4
  375. package/fesm5/taiga-ui-kit-components-data-list-wrapper.js.map +1 -1
  376. package/fesm5/taiga-ui-kit-components-files.js +289 -0
  377. package/fesm5/taiga-ui-kit-components-files.js.map +1 -0
  378. package/fesm5/taiga-ui-kit-components-input-count.js +2 -2
  379. package/fesm5/taiga-ui-kit-components-input-count.js.map +1 -1
  380. package/fesm5/taiga-ui-kit-components-input-date-range.js +3 -1
  381. package/fesm5/taiga-ui-kit-components-input-date-range.js.map +1 -1
  382. package/fesm5/taiga-ui-kit-components-input-date-time.js +1 -1
  383. package/fesm5/taiga-ui-kit-components-input-date-time.js.map +1 -1
  384. package/fesm5/taiga-ui-kit-components-input-date.js +4 -2
  385. package/fesm5/taiga-ui-kit-components-input-date.js.map +1 -1
  386. package/fesm5/taiga-ui-kit-components-input-file.js +43 -45
  387. package/fesm5/taiga-ui-kit-components-input-file.js.map +1 -1
  388. package/fesm5/taiga-ui-kit-components-input-files.js +276 -0
  389. package/fesm5/taiga-ui-kit-components-input-files.js.map +1 -0
  390. package/fesm5/taiga-ui-kit-components-input-number.js +17 -15
  391. package/fesm5/taiga-ui-kit-components-input-number.js.map +1 -1
  392. package/fesm5/taiga-ui-kit-components-input-password.js +3 -3
  393. package/fesm5/taiga-ui-kit-components-input-password.js.map +1 -1
  394. package/fesm5/taiga-ui-kit-components-input-phone-international.js +20 -8
  395. package/fesm5/taiga-ui-kit-components-input-phone-international.js.map +1 -1
  396. package/fesm5/taiga-ui-kit-components-input-phone.js +5 -4
  397. package/fesm5/taiga-ui-kit-components-input-phone.js.map +1 -1
  398. package/fesm5/taiga-ui-kit-components-input-range.js +17 -5
  399. package/fesm5/taiga-ui-kit-components-input-range.js.map +1 -1
  400. package/fesm5/taiga-ui-kit-components-input-slider.js +65 -16
  401. package/fesm5/taiga-ui-kit-components-input-slider.js.map +1 -1
  402. package/fesm5/taiga-ui-kit-components-input-tag.js +1 -1
  403. package/fesm5/taiga-ui-kit-components-input-tag.js.map +1 -1
  404. package/fesm5/taiga-ui-kit-components-input-time.js.map +1 -1
  405. package/fesm5/taiga-ui-kit-components-input.js.map +1 -1
  406. package/fesm5/taiga-ui-kit-components-line-clamp.js +3 -3
  407. package/fesm5/taiga-ui-kit-components-line-clamp.js.map +1 -1
  408. package/fesm5/taiga-ui-kit-components-multi-select-option.js +2 -2
  409. package/fesm5/taiga-ui-kit-components-multi-select-option.js.map +1 -1
  410. package/fesm5/taiga-ui-kit-components-multi-select.js +2 -2
  411. package/fesm5/taiga-ui-kit-components-multi-select.js.map +1 -1
  412. package/fesm5/taiga-ui-kit-components-pagination.js +1 -1
  413. package/fesm5/taiga-ui-kit-components-pagination.js.map +1 -1
  414. package/fesm5/taiga-ui-kit-components-progress.js +2 -2
  415. package/fesm5/taiga-ui-kit-components-progress.js.map +1 -1
  416. package/fesm5/taiga-ui-kit-components-radio.js.map +1 -1
  417. package/fesm5/taiga-ui-kit-components-select.js.map +1 -1
  418. package/fesm5/taiga-ui-kit-components-slider.js +65 -20
  419. package/fesm5/taiga-ui-kit-components-slider.js.map +1 -1
  420. package/fesm5/taiga-ui-kit-components-text-area.js +1 -1
  421. package/fesm5/taiga-ui-kit-components.js +2 -0
  422. package/fesm5/taiga-ui-kit-components.js.map +1 -1
  423. package/fesm5/taiga-ui-kit-enums.js.map +1 -1
  424. package/fesm5/taiga-ui-kit-pipes-field-error.js +10 -2
  425. package/fesm5/taiga-ui-kit-pipes-field-error.js.map +1 -1
  426. package/fesm5/taiga-ui-kit-tokens.js +7 -1
  427. package/fesm5/taiga-ui-kit-tokens.js.map +1 -1
  428. package/fesm5/taiga-ui-kit-utils-files.js +8 -1
  429. package/fesm5/taiga-ui-kit-utils-files.js.map +1 -1
  430. package/package.json +4 -4
  431. package/pipes/field-error/field-error-content-pipe.d.ts +1 -0
  432. package/pipes/field-error/taiga-ui-kit-pipes-field-error.metadata.json +1 -1
  433. package/tokens/i18n.d.ts +2 -0
  434. package/tokens/taiga-ui-kit-tokens.metadata.json +1 -1
  435. package/utils/files/get-accept-array.d.ts +1 -0
  436. package/utils/files/index.d.ts +1 -0
  437. package/utils/files/taiga-ui-kit-utils-files.metadata.json +1 -1
@@ -1 +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-content-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 {AsyncPipe} from '@angular/common';\nimport {Inject, Injector, OnDestroy, Pipe, PipeTransform} from '@angular/core';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiFieldErrorPipe} from './field-error-pipe';\n\n// @dynamic\n@Pipe({\n name: 'tuiFieldErrorContent',\n pure: false,\n})\nexport class TuiFieldErrorContentPipe implements PipeTransform, OnDestroy {\n private readonly localInjector = Injector.create({\n providers: [{provide: AsyncPipe}, {provide: TuiFieldErrorPipe}],\n parent: this.injector,\n });\n\n private readonly asyncPipe = this.localInjector.get(AsyncPipe);\n private readonly fieldErrorPipe = this.localInjector.get(TuiFieldErrorPipe);\n\n constructor(@Inject(Injector) private readonly injector: Injector) {}\n\n transform(order: ReadonlyArray<string>): PolymorpheusContent {\n return (\n this.asyncPipe.transform(this.fieldErrorPipe.transform(order))?.message || ''\n );\n }\n\n ngOnDestroy() {\n this.asyncPipe.ngOnDestroy();\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiFieldErrorContentPipe} from './field-error-content-pipe';\nimport {TuiFieldErrorPipe} from './field-error-pipe';\n\n@NgModule({\n declarations: [TuiFieldErrorPipe, TuiFieldErrorContentPipe],\n exports: [TuiFieldErrorPipe, TuiFieldErrorContentPipe],\n})\nexport class TuiFieldErrorPipeModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AAcA,IAAM,YAAY,GAAG,EAA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iB,EAAE,wBAAwB,CAAC;SACzD,CAAC;OACW,uBAAuB,CAAG;IAAD,8BAAC;CAAvC;;ACTA;;;;;;"}
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-content-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 {AsyncPipe} from '@angular/common';\nimport {Inject, Injector, OnDestroy, Pipe, PipeTransform} from '@angular/core';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiFieldErrorPipe} from './field-error-pipe';\n\n// @dynamic\n@Pipe({\n name: 'tuiFieldErrorContent',\n pure: false,\n})\nexport class TuiFieldErrorContentPipe implements PipeTransform, OnDestroy {\n private readonly localInjector = Injector.create({\n providers: [{provide: AsyncPipe}, {provide: TuiFieldErrorPipe}],\n parent: this.injector,\n });\n\n private readonly asyncPipe = this.localInjector.get(AsyncPipe);\n private readonly fieldErrorPipe = this.localInjector.get(TuiFieldErrorPipe);\n\n constructor(@Inject(Injector) private readonly injector: Injector) {}\n\n transform(order: ReadonlyArray<string>): PolymorpheusContent {\n return this.getErrorContent(order);\n }\n\n ngOnDestroy() {\n this.asyncPipe.ngOnDestroy();\n }\n\n private getErrorContent(order: readonly string[]): PolymorpheusContent {\n const error = this.asyncPipe.transform(this.fieldErrorPipe.transform(order));\n\n if (!error) {\n return '';\n }\n\n return typeof error.message === 'function'\n ? error.message(error.context)\n : error.message;\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiFieldErrorContentPipe} from './field-error-content-pipe';\nimport {TuiFieldErrorPipe} from './field-error-pipe';\n\n@NgModule({\n declarations: [TuiFieldErrorPipe, TuiFieldErrorContentPipe],\n exports: [TuiFieldErrorPipe, TuiFieldErrorContentPipe],\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;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,CA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_WORD = new InjectionToken("i18n 'done' word", {
18
18
  var TUI_MORE_WORD = new InjectionToken("i18n 'more' word", {
19
19
  factory: extractI18n('more'),
20
20
  });
21
+ var TUI_HIDE_TEXT = new InjectionToken("i18n 'hide' word", {
22
+ factory: extractI18n('hide'),
23
+ });
24
+ var TUI_SHOW_ALL_TEXT = new InjectionToken("i18n 'show all' word", {
25
+ factory: extractI18n('showAll'),
26
+ });
21
27
  var TUI_OTHER_DATE_TEXT = new InjectionToken("i18n 'Other date' text", {
22
28
  factory: extractI18n('otherDate'),
23
29
  });
@@ -94,5 +100,5 @@ var TUI_VALIDATION_ERRORS = new InjectionToken('Validation errors', {
94
100
  * Generated bundle index. Do not edit.
95
101
  */
96
102
 
97
- 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_MONTH_FORMATTER, 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 };
103
+ 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_HIDE_TEXT, TUI_INPUT_FILE_TEXTS, TUI_ITEMS_HANDLERS, TUI_MOBILE_AWARE, TUI_MOBILE_CALENDAR, TUI_MONTH_FORMATTER, TUI_MORE_WORD, TUI_OTHER_DATE_TEXT, TUI_PAGINATION_TEXTS, TUI_PASSWORD_TEXTS, TUI_PLUS_MINUS_TEXTS, TUI_SHOW_ALL_TEXT, TUI_TAG_STATUS, TUI_TIME_TEXTS, TUI_VALIDATION_ERRORS, tuiItemsHandlersProvider };
98
104
  //# 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/items-handlers.ts","ng://@taiga-ui/kit/tokens/mobile-aware.ts","ng://@taiga-ui/kit/tokens/mobile-calendar.ts","ng://@taiga-ui/kit/tokens/month-formatter.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 {TuiHandler, TuiMonth} from '@taiga-ui/cdk';\nimport {Observable} from 'rxjs';\n\nexport const TUI_MONTH_FORMATTER = new InjectionToken<\n TuiHandler<TuiMonth | null, Observable<string>>\n>('A function to get localized formatted month');\n","import {InjectionToken} from '@angular/core';\nimport {TuiStatus} from '@taiga-ui/kit/enums';\n\nexport const TUI_TAG_STATUS = new InjectionToken<TuiStatus>(\n 'Status for tags inside InputTag component',\n {\n factory: () => TuiStatus.Primary,\n },\n);\n","import {InjectionToken} from '@angular/core';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {Observable} from 'rxjs';\n\nexport const TUI_VALIDATION_ERRORS = new InjectionToken<\n Record<string, PolymorpheusContent | Observable<PolymorpheusContent>>\n>('Validation errors', {\n factory: () => ({}),\n});\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;IAIa,wBAAwB,GAAG,IAAI,cAAc,CAExD,wCAAwC;;ICH7B,0BAA0B,GAAG,IAAI,cAAc,CAE1D,sFAAsF,EAAE;IAE7E,gCAAgC,GAAG,IAAI,cAAc,CAEhE,wDAAwD,EAAE;IAE/C,+BAA+B,GAAG,IAAI,cAAc,CAE/D,uDAAuD;;ICR5C,eAAe,GAAG,IAAI,cAAc,CAAC,oBAAoB,EAAE;IACpE,OAAO,EAAE,WAAW,CAAC,QAAQ,CAAC;C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ACtB;;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/month-formatter.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_HIDE_TEXT = new InjectionToken(`i18n 'hide' word`, {\n factory: extractI18n('hide'),\n});\n\nexport const TUI_SHOW_ALL_TEXT = new InjectionToken(`i18n 'show all' word`, {\n factory: extractI18n('showAll'),\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 {TuiHandler, TuiMonth} from '@taiga-ui/cdk';\nimport {Observable} from 'rxjs';\n\nexport const TUI_MONTH_FORMATTER = new InjectionToken<\n TuiHandler<TuiMonth | null, Observable<string>>\n>('A function to get localized formatted month');\n","import {InjectionToken} from '@angular/core';\nimport {TuiStatus} from '@taiga-ui/kit/enums';\n\nexport const TUI_TAG_STATUS = new InjectionToken<TuiStatus>(\n 'Status for tags inside InputTag component',\n {\n factory: () => TuiStatus.Primary,\n },\n);\n","import {InjectionToken} from '@angular/core';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {Observable} from 'rxjs';\n\nexport const TUI_VALIDATION_ERRORS = new InjectionToken<\n Record<string, PolymorpheusContent | Observable<PolymorpheusContent>>\n>('Validation errors', {\n factory: () => ({}),\n});\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;IAIa,wBAAwB,GAAG,IAAI,cAAc,CAExD,wCAAwC;;ICH7B,0BAA0B,GAAG,IAAI,cAAc,CAE1D,sFAAsF,EAAE;IAE7E,gCAAgC,GAAG,IAAI,cAAc,CAEhE,wDAAwD,EAAE;IAE/C,+BAA+B,GAAG,IAAI,cAAc,CAE/D,uDAAuD;;ICR5C,eAAe,GAAG,IAAI,cAAc,CAAC,oBAAoB,EAAE;IACpE,OAAO,EAAE,WAAW,CAAC,QAAQ,CAAC;CACjC,EAAE;IAEU,aAAa,GAAG,IAAI,cAAc,CAAC,kBAAkB,EAAE;IAChE,OAAO,EAAE,WAAW,CAAC,MAAM,CAAC;CAC/B,EAAE;IAEU,aAAa,GAAG,IAAI,cAAc,CAAC,kBAAkB,EAAE;IAChE,OAAO,EAAE,WAAW,CAAC,MAAM,CAAC;CAC/B,EAAE;IAEU,aAAa,GAAG,IAAI,cAAc,CAAC,kBAAkB,EAAE;IAChE,OAAO,EAAE,WAAW,CAAC,MAAM,CAAC;CAC/B,EAAE;IAEU,iBAAiB,GAAG,IAAI,cAAc,CAAC,sBAAsB,EAAE;IAC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EU,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;;IC1EY,0BAA0B,GAA8B;IACjE,SAAS,EAAE,qBAAqB;IAChC,eAAe,EAAE,4BAA4B;IAC7C,mBAAmB,EAAE,oBAAoB;EAC3C;IAEW,kBAAkB,GAAG,IAAI,cAAc,CAChD,uCAAuC,EACvC;IACI,OAAO,EAAE,cAAM,OAAA,0BAA0B,GAAA;CAC5C,EACH;IAEW,wBAAwB,GAEhB,UAAI,OAAqC,IAAK,QAAC;IAChE,OAAO,EAAE,kBAAkB;IAC3B,QAAQ,wBAAM,0BAA0B,GAAK,OAAO,CAAC;CACxD;;IChCY,gBAAgB,GAAG,IAAI,cAAc,CAC9C,oEAAoE,EACpE;IACI,OAAO,EAAE,cAAM,OAAA,KAAK,GAAA;CACvB;;ICJQ,mBAAmB,GAAG,IAAI,cAAc,CACjD,oCAAoC;;ICC3B,mBAAmB,GAAG,IAAI,cAAc,CAEnD,6CAA6C;;ICHlC,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;;;;;;"}
@@ -15,9 +15,16 @@ function formatSize(units, size) {
15
15
  return round(size / BYTES_PER_MB, 2).toLocaleString('ru-RU') + " " + units[2];
16
16
  }
17
17
 
18
+ function getAcceptArray(accept) {
19
+ return accept
20
+ .toLowerCase()
21
+ .split(',')
22
+ .map(function (format) { return format.trim(); });
23
+ }
24
+
18
25
  /**
19
26
  * Generated bundle index. Do not edit.
20
27
  */
21
28
 
22
- export { formatSize };
29
+ export { formatSize, getAcceptArray };
23
30
  //# sourceMappingURL=taiga-ui-kit-utils-files.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-utils-files.js","sources":["ng://@taiga-ui/kit/utils/files/format-size.ts","ng://@taiga-ui/kit/utils/files/taiga-ui-kit-utils-files.ts"],"sourcesContent":["import {round} from '@taiga-ui/cdk';\n\nconst BYTES_PER_KB = 1000;\nconst BYTES_PER_MB = 1000 * BYTES_PER_KB;\n\nexport function formatSize(\n units: [string, string, string],\n size?: number,\n): string | null {\n if (size === undefined) {\n return null;\n }\n\n if (size < BYTES_PER_KB) {\n return `${size} ${units[0]}`;\n }\n\n if (size < BYTES_PER_MB) {\n return `${(size / BYTES_PER_KB).toFixed()} ${units[1]}`;\n }\n\n return `${round(size / BYTES_PER_MB, 2).toLocaleString('ru-RU')} ${units[2]}`;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;AAEA,IAAM,YAAY,GAAG,IAAI,CAAC;AAC1B,IAAM,YAAY,GAAG,IAAI,GAAG,YAAY,CAAC;SAEzB,UAAU,CACtB,KAA+B,EAC/B,IAAa;IAEb,IAAI,IAAI,KAAK,SAAS,EAAE;QACpB,OAAO,IAAI,CAAC;KACf;IAED,IAAI,IAAI,GAAG,YAAY,EAAE;QACrB,OAAU,IAAI,SAAI,KAAK,CAAC,CAAC,CAAG,CAAC;KAChC;IAED,IAAI,IAAI,GAAG,YAAY,EAAE;QACrB,OAAU,CAAC,IAAI,GAAG,YAAY,EAAE,OAAO,EAAE,SAAI,KAAK,CAAC,CAAC,CAAG,CAAC;KAC3D;IAED,OAAU,KAAK,CAAC,IAAI,GAAG,YAAY,EAAE,CAAC,CAAC,CAAC,cAAc,CAAC,OAAO,CAAC,SAAI,KAAK,CAAC,CAAC,CAAG,CAAC;AAClF;;ACtBA;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-utils-files.js","sources":["ng://@taiga-ui/kit/utils/files/format-size.ts","ng://@taiga-ui/kit/utils/files/get-accept-array.ts","ng://@taiga-ui/kit/utils/files/taiga-ui-kit-utils-files.ts"],"sourcesContent":["import {round} from '@taiga-ui/cdk';\n\nconst BYTES_PER_KB = 1000;\nconst BYTES_PER_MB = 1000 * BYTES_PER_KB;\n\nexport function formatSize(\n units: [string, string, string],\n size?: number,\n): string | null {\n if (size === undefined) {\n return null;\n }\n\n if (size < BYTES_PER_KB) {\n return `${size} ${units[0]}`;\n }\n\n if (size < BYTES_PER_MB) {\n return `${(size / BYTES_PER_KB).toFixed()} ${units[1]}`;\n }\n\n return `${round(size / BYTES_PER_MB, 2).toLocaleString('ru-RU')} ${units[2]}`;\n}\n","export function getAcceptArray(accept: string): readonly string[] {\n return accept\n .toLowerCase()\n .split(',')\n .map(format => format.trim());\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;AAEA,IAAM,YAAY,GAAG,IAAI,CAAC;AAC1B,IAAM,YAAY,GAAG,IAAI,GAAG,YAAY,CAAC;SAEzB,UAAU,CACtB,KAA+B,EAC/B,IAAa;IAEb,IAAI,IAAI,KAAK,SAAS,EAAE;QACpB,OAAO,IAAI,CAAC;KACf;IAED,IAAI,IAAI,GAAG,YAAY,EAAE;QACrB,OAAU,IAAI,SAAI,KAAK,CAAC,CAAC,CAAG,CAAC;KAChC;IAED,IAAI,IAAI,GAAG,YAAY,EAAE;QACrB,OAAU,CAAC,IAAI,GAAG,YAAY,EAAE,OAAO,EAAE,SAAI,KAAK,CAAC,CAAC,CAAG,CAAC;KAC3D;IAED,OAAU,KAAK,CAAC,IAAI,GAAG,YAAY,EAAE,CAAC,CAAC,CAAC,cAAc,CAAC,OAAO,CAAC,SAAI,KAAK,CAAC,CAAC,CAAG,CAAC;AAClF;;SCtBgB,cAAc,CAAC,MAAc;IACzC,OAAO,MAAM;SACR,WAAW,EAAE;SACb,KAAK,CAAC,GAAG,CAAC;SACV,GAAG,CAAC,UAAA,MAAM,IAAI,OAAA,MAAM,CAAC,IAAI,EAAE,GAAA,CAAC,CAAC;AACtC;;ACLA;;;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taiga-ui/kit",
3
- "version": "2.36.0",
3
+ "version": "2.37.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.36.0",
29
- "@taiga-ui/core": ">=2.36.0",
30
- "@taiga-ui/i18n": ">=2.36.0",
28
+ "@taiga-ui/cdk": ">=2.37.0",
29
+ "@taiga-ui/core": ">=2.37.0",
30
+ "@taiga-ui/i18n": ">=2.37.0",
31
31
  "rxjs": ">=6.0.0"
32
32
  },
33
33
  "main": "bundles/taiga-ui-kit.umd.js",
@@ -8,4 +8,5 @@ export declare class TuiFieldErrorContentPipe implements PipeTransform, OnDestro
8
8
  constructor(injector: Injector);
9
9
  transform(order: ReadonlyArray<string>): PolymorpheusContent;
10
10
  ngOnDestroy(): void;
11
+ private getErrorContent;
11
12
  }
@@ -1 +1 @@
1
- {"__symbolic":"module","version":4,"metadata":{"TuiFieldErrorPipeModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":5,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"TuiFieldErrorPipe"},{"__symbolic":"reference","name":"TuiFieldErrorContentPipe"}],"exports":[{"__symbolic":"reference","name":"TuiFieldErrorPipe"},{"__symbolic":"reference","name":"TuiFieldErrorContentPipe"}]}]}],"members":{}},"TuiFieldErrorContentPipe":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Pipe","line":7,"character":1},"arguments":[{"name":"tuiFieldErrorContent","pure":false}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":20,"character":17},"arguments":[{"__symbolic":"reference","module":"@angular/core","name":"Injector","line":20,"character":24}]}]],"parameters":[{"__symbolic":"reference","module":"@angular/core","name":"Injector","line":20,"character":61}]}],"transform":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}},"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","TuiFieldErrorContentPipe":"./field-error-content-pipe","TuiFieldErrorPipe":"./field-error-pipe"},"importAs":"@taiga-ui/kit/pipes/field-error"}
1
+ {"__symbolic":"module","version":4,"metadata":{"TuiFieldErrorPipeModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":5,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"TuiFieldErrorPipe"},{"__symbolic":"reference","name":"TuiFieldErrorContentPipe"}],"exports":[{"__symbolic":"reference","name":"TuiFieldErrorPipe"},{"__symbolic":"reference","name":"TuiFieldErrorContentPipe"}]}]}],"members":{}},"TuiFieldErrorContentPipe":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Pipe","line":7,"character":1},"arguments":[{"name":"tuiFieldErrorContent","pure":false}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":20,"character":17},"arguments":[{"__symbolic":"reference","module":"@angular/core","name":"Injector","line":20,"character":24}]}]],"parameters":[{"__symbolic":"reference","module":"@angular/core","name":"Injector","line":20,"character":61}]}],"transform":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"getErrorContent":[{"__symbolic":"method"}]}},"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","TuiFieldErrorContentPipe":"./field-error-content-pipe","TuiFieldErrorPipe":"./field-error-pipe"},"importAs":"@taiga-ui/kit/pipes/field-error"}
package/tokens/i18n.d.ts CHANGED
@@ -5,6 +5,8 @@ import { Observable } from 'rxjs';
5
5
  export declare const TUI_CANCEL_WORD: InjectionToken<Observable<string>>;
6
6
  export declare const TUI_DONE_WORD: InjectionToken<Observable<string>>;
7
7
  export declare const TUI_MORE_WORD: InjectionToken<Observable<string>>;
8
+ export declare const TUI_HIDE_TEXT: InjectionToken<Observable<string>>;
9
+ export declare const TUI_SHOW_ALL_TEXT: InjectionToken<Observable<string>>;
8
10
  export declare const TUI_OTHER_DATE_TEXT: InjectionToken<Observable<string>>;
9
11
  export declare const TUI_CHOOSE_DAY_OR_RANGE_TEXTS: InjectionToken<Observable<[string, string]>>;
10
12
  export declare const TUI_FROM_TO_TEXTS: InjectionToken<Observable<[string, string]>>;
@@ -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"]}}]},"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_MONTH_FORMATTER":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":4,"character":39},"arguments":["A function to get localized formatted month"]},"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_MONTH_FORMATTER":"./month-formatter","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_HIDE_TEXT":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":17,"character":33},"arguments":["i18n 'hide' word",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":18,"character":13},"arguments":["hide"]}}]},"TUI_SHOW_ALL_TEXT":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":21,"character":37},"arguments":["i18n 'show all' word",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":22,"character":13},"arguments":["showAll"]}}]},"TUI_OTHER_DATE_TEXT":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":25,"character":39},"arguments":["i18n 'Other date' text",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":26,"character":13},"arguments":["otherDate"]}}]},"TUI_CHOOSE_DAY_OR_RANGE_TEXTS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":29,"character":49},"arguments":["choose day or range i18n texts",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":32,"character":17},"arguments":["mobileCalendarTexts"]}}]},"TUI_FROM_TO_TEXTS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":36,"character":37},"arguments":["from and to i18n texts",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":37,"character":13},"arguments":["range"]}}]},"TUI_PLUS_MINUS_TEXTS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":40,"character":40},"arguments":["plus and minus i18n texts",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":41,"character":13},"arguments":["countTexts"]}}]},"TUI_TIME_TEXTS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":44,"character":34},"arguments":["time i18n texts",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":45,"character":13},"arguments":["time"]}}]},"TUI_DATE_TEXTS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":48,"character":34},"arguments":["date format i18n texts",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":51,"character":17},"arguments":["dateTexts"]}}]},"TUI_DIGITAL_INFORMATION_UNITS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":55,"character":49},"arguments":["short bytes, kilobytes and megabytes i18n texts",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":58,"character":17},"arguments":["digitalInformationUnits"]}}]},"TUI_COPY_TEXTS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":62,"character":34},"arguments":["copy i18n texts",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":63,"character":13},"arguments":["copyTexts"]}}]},"TUI_PASSWORD_TEXTS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":66,"character":38},"arguments":["password i18n texts",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":67,"character":13},"arguments":["passwordTexts"]}}]},"TUI_CALENDAR_MONTHS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":70,"character":39},"arguments":["short calendar months i18n",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":71,"character":13},"arguments":["shortCalendarMonths"]}}]},"TUI_FILE_TEXTS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":74,"character":34},"arguments":["file i18n texts",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":75,"character":13},"arguments":["fileTexts"]}}]},"TUI_PAGINATION_TEXTS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":78,"character":40},"arguments":["pagination i18n texts",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":79,"character":13},"arguments":["paginationTexts"]}}]},"TUI_INPUT_FILE_TEXTS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":82,"character":40},"arguments":["tui-input-file i18n texts",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":83,"character":13},"arguments":["inputFileTexts"]}}]},"TUI_COUNTRIES":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":88,"character":8},"arguments":["Localized countries names",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":89,"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_MONTH_FORMATTER":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":4,"character":39},"arguments":["A function to get localized formatted month"]},"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_HIDE_TEXT":"./i18n","TUI_SHOW_ALL_TEXT":"./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_MONTH_FORMATTER":"./month-formatter","TUI_TAG_STATUS":"./tag-status","TUI_VALIDATION_ERRORS":"./validation-errors"},"importAs":"@taiga-ui/kit/tokens"}
@@ -0,0 +1 @@
1
+ export declare function getAcceptArray(accept: string): readonly string[];
@@ -1 +1,2 @@
1
1
  export * from './format-size';
2
+ export * from './get-accept-array';
@@ -1 +1 @@
1
- {"__symbolic":"module","version":4,"metadata":{"formatSize":{"__symbolic":"function"}},"origins":{"formatSize":"./format-size"},"importAs":"@taiga-ui/kit/utils/files"}
1
+ {"__symbolic":"module","version":4,"metadata":{"formatSize":{"__symbolic":"function"},"getAcceptArray":{"__symbolic":"function","parameters":["accept"],"value":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"accept"},"member":"toLowerCase"}},"member":"split"},"arguments":[","]},"member":"map"},"arguments":[{"__symbolic":"error","message":"Lambda not supported","line":4,"character":13,"module":"./get-accept-array"}]}}},"origins":{"formatSize":"./format-size","getAcceptArray":"./get-accept-array"},"importAs":"@taiga-ui/kit/utils/files"}