@taiga-ui/kit 3.51.0 → 3.52.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 (847) hide show
  1. package/abstract/taiga-ui-kit-abstract.d.ts +3 -0
  2. package/bundles/taiga-ui-kit-abstract.umd.js +4 -0
  3. package/bundles/taiga-ui-kit-abstract.umd.js.map +1 -1
  4. package/bundles/taiga-ui-kit-classes.umd.js +7 -0
  5. package/bundles/taiga-ui-kit-classes.umd.js.map +1 -1
  6. package/bundles/taiga-ui-kit-components-accordion.umd.js +4 -0
  7. package/bundles/taiga-ui-kit-components-accordion.umd.js.map +1 -1
  8. package/bundles/taiga-ui-kit-components-action.umd.js +4 -0
  9. package/bundles/taiga-ui-kit-components-action.umd.js.map +1 -1
  10. package/bundles/taiga-ui-kit-components-arrow.umd.js +11 -0
  11. package/bundles/taiga-ui-kit-components-arrow.umd.js.map +1 -1
  12. package/bundles/taiga-ui-kit-components-avatar.umd.js +8 -0
  13. package/bundles/taiga-ui-kit-components-avatar.umd.js.map +1 -1
  14. package/bundles/taiga-ui-kit-components-badge.umd.js +4 -0
  15. package/bundles/taiga-ui-kit-components-badge.umd.js.map +1 -1
  16. package/bundles/taiga-ui-kit-components-badged-content.umd.js +4 -0
  17. package/bundles/taiga-ui-kit-components-badged-content.umd.js.map +1 -1
  18. package/bundles/taiga-ui-kit-components-breadcrumbs.umd.js +4 -0
  19. package/bundles/taiga-ui-kit-components-breadcrumbs.umd.js.map +1 -1
  20. package/bundles/taiga-ui-kit-components-calendar-month.umd.js +4 -0
  21. package/bundles/taiga-ui-kit-components-calendar-month.umd.js.map +1 -1
  22. package/bundles/taiga-ui-kit-components-calendar-range.umd.js +4 -0
  23. package/bundles/taiga-ui-kit-components-calendar-range.umd.js.map +1 -1
  24. package/bundles/taiga-ui-kit-components-carousel.umd.js +5 -0
  25. package/bundles/taiga-ui-kit-components-carousel.umd.js.map +1 -1
  26. package/bundles/taiga-ui-kit-components-checkbox-block.umd.js +5 -0
  27. package/bundles/taiga-ui-kit-components-checkbox-block.umd.js.map +1 -1
  28. package/bundles/taiga-ui-kit-components-checkbox-labeled.umd.js +5 -0
  29. package/bundles/taiga-ui-kit-components-checkbox-labeled.umd.js.map +1 -1
  30. package/bundles/taiga-ui-kit-components-checkbox.umd.js +5 -0
  31. package/bundles/taiga-ui-kit-components-checkbox.umd.js.map +1 -1
  32. package/bundles/taiga-ui-kit-components-combo-box.umd.js +5 -0
  33. package/bundles/taiga-ui-kit-components-combo-box.umd.js.map +1 -1
  34. package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.js +10 -3
  35. package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.js.map +1 -1
  36. package/bundles/taiga-ui-kit-components-elastic-container.umd.js +4 -0
  37. package/bundles/taiga-ui-kit-components-elastic-container.umd.js.map +1 -1
  38. package/bundles/taiga-ui-kit-components-files.umd.js +8 -0
  39. package/bundles/taiga-ui-kit-components-files.umd.js.map +1 -1
  40. package/bundles/taiga-ui-kit-components-filter.umd.js +5 -0
  41. package/bundles/taiga-ui-kit-components-filter.umd.js.map +1 -1
  42. package/bundles/taiga-ui-kit-components-input-copy.umd.js +4 -0
  43. package/bundles/taiga-ui-kit-components-input-copy.umd.js.map +1 -1
  44. package/bundles/taiga-ui-kit-components-input-count.umd.js +21 -0
  45. package/bundles/taiga-ui-kit-components-input-count.umd.js.map +1 -1
  46. package/bundles/taiga-ui-kit-components-input-date-multi.umd.js +720 -0
  47. package/bundles/taiga-ui-kit-components-input-date-multi.umd.js.map +1 -0
  48. package/bundles/taiga-ui-kit-components-input-date-range.umd.js +4 -0
  49. package/bundles/taiga-ui-kit-components-input-date-range.umd.js.map +1 -1
  50. package/bundles/taiga-ui-kit-components-input-date-time.umd.js +4 -0
  51. package/bundles/taiga-ui-kit-components-input-date-time.umd.js.map +1 -1
  52. package/bundles/taiga-ui-kit-components-input-date.umd.js +9 -0
  53. package/bundles/taiga-ui-kit-components-input-date.umd.js.map +1 -1
  54. package/bundles/taiga-ui-kit-components-input-files.umd.js +15 -1
  55. package/bundles/taiga-ui-kit-components-input-files.umd.js.map +1 -1
  56. package/bundles/taiga-ui-kit-components-input-inline.umd.js +6 -0
  57. package/bundles/taiga-ui-kit-components-input-inline.umd.js.map +1 -1
  58. package/bundles/taiga-ui-kit-components-input-month-range.umd.js +4 -0
  59. package/bundles/taiga-ui-kit-components-input-month-range.umd.js.map +1 -1
  60. package/bundles/taiga-ui-kit-components-input-month.umd.js +4 -0
  61. package/bundles/taiga-ui-kit-components-input-month.umd.js.map +1 -1
  62. package/bundles/taiga-ui-kit-components-input-number.umd.js +11 -0
  63. package/bundles/taiga-ui-kit-components-input-number.umd.js.map +1 -1
  64. package/bundles/taiga-ui-kit-components-input-password.umd.js +9 -0
  65. package/bundles/taiga-ui-kit-components-input-password.umd.js.map +1 -1
  66. package/bundles/taiga-ui-kit-components-input-phone-international.umd.js +23 -0
  67. package/bundles/taiga-ui-kit-components-input-phone-international.umd.js.map +1 -1
  68. package/bundles/taiga-ui-kit-components-input-phone.umd.js +33 -2
  69. package/bundles/taiga-ui-kit-components-input-phone.umd.js.map +1 -1
  70. package/bundles/taiga-ui-kit-components-input-range.umd.js +4 -0
  71. package/bundles/taiga-ui-kit-components-input-range.umd.js.map +1 -1
  72. package/bundles/taiga-ui-kit-components-input-slider.umd.js +6 -0
  73. package/bundles/taiga-ui-kit-components-input-slider.umd.js.map +1 -1
  74. package/bundles/taiga-ui-kit-components-input-tag.umd.js +17 -6
  75. package/bundles/taiga-ui-kit-components-input-tag.umd.js.map +1 -1
  76. package/bundles/taiga-ui-kit-components-input-time.umd.js +9 -0
  77. package/bundles/taiga-ui-kit-components-input-time.umd.js.map +1 -1
  78. package/bundles/taiga-ui-kit-components-input-year.umd.js +4 -0
  79. package/bundles/taiga-ui-kit-components-input-year.umd.js.map +1 -1
  80. package/bundles/taiga-ui-kit-components-input.umd.js +4 -0
  81. package/bundles/taiga-ui-kit-components-input.umd.js.map +1 -1
  82. package/bundles/taiga-ui-kit-components-island.umd.js +4 -0
  83. package/bundles/taiga-ui-kit-components-island.umd.js.map +1 -1
  84. package/bundles/taiga-ui-kit-components-items-with-more.umd.js +4 -0
  85. package/bundles/taiga-ui-kit-components-items-with-more.umd.js.map +1 -1
  86. package/bundles/taiga-ui-kit-components-line-clamp.umd.js +8 -0
  87. package/bundles/taiga-ui-kit-components-line-clamp.umd.js.map +1 -1
  88. package/bundles/taiga-ui-kit-components-marker-icon.umd.js +4 -0
  89. package/bundles/taiga-ui-kit-components-marker-icon.umd.js.map +1 -1
  90. package/bundles/taiga-ui-kit-components-multi-select-option.umd.js +4 -0
  91. package/bundles/taiga-ui-kit-components-multi-select-option.umd.js.map +1 -1
  92. package/bundles/taiga-ui-kit-components-multi-select.umd.js +8 -0
  93. package/bundles/taiga-ui-kit-components-multi-select.umd.js.map +1 -1
  94. package/bundles/taiga-ui-kit-components-pagination.umd.js +38 -0
  95. package/bundles/taiga-ui-kit-components-pagination.umd.js.map +1 -1
  96. package/bundles/taiga-ui-kit-components-pdf-viewer.umd.js +7 -0
  97. package/bundles/taiga-ui-kit-components-pdf-viewer.umd.js.map +1 -1
  98. package/bundles/taiga-ui-kit-components-progress.umd.js +6 -0
  99. package/bundles/taiga-ui-kit-components-progress.umd.js.map +1 -1
  100. package/bundles/taiga-ui-kit-components-prompt.umd.js +5 -0
  101. package/bundles/taiga-ui-kit-components-prompt.umd.js.map +1 -1
  102. package/bundles/taiga-ui-kit-components-push.umd.js +7 -0
  103. package/bundles/taiga-ui-kit-components-push.umd.js.map +1 -1
  104. package/bundles/taiga-ui-kit-components-radio-block.umd.js +5 -0
  105. package/bundles/taiga-ui-kit-components-radio-block.umd.js.map +1 -1
  106. package/bundles/taiga-ui-kit-components-radio-group.umd.js +4 -0
  107. package/bundles/taiga-ui-kit-components-radio-group.umd.js.map +1 -1
  108. package/bundles/taiga-ui-kit-components-radio-labeled.umd.js +5 -0
  109. package/bundles/taiga-ui-kit-components-radio-labeled.umd.js.map +1 -1
  110. package/bundles/taiga-ui-kit-components-radio-list.umd.js +6 -0
  111. package/bundles/taiga-ui-kit-components-radio-list.umd.js.map +1 -1
  112. package/bundles/taiga-ui-kit-components-radio.umd.js +8 -0
  113. package/bundles/taiga-ui-kit-components-radio.umd.js.map +1 -1
  114. package/bundles/taiga-ui-kit-components-range.umd.js +9 -0
  115. package/bundles/taiga-ui-kit-components-range.umd.js.map +1 -1
  116. package/bundles/taiga-ui-kit-components-rating.umd.js +7 -0
  117. package/bundles/taiga-ui-kit-components-rating.umd.js.map +1 -1
  118. package/bundles/taiga-ui-kit-components-routable-dialog.umd.js +4 -0
  119. package/bundles/taiga-ui-kit-components-routable-dialog.umd.js.map +1 -1
  120. package/bundles/taiga-ui-kit-components-select-option.umd.js +11 -0
  121. package/bundles/taiga-ui-kit-components-select-option.umd.js.map +1 -1
  122. package/bundles/taiga-ui-kit-components-select.umd.js +7 -0
  123. package/bundles/taiga-ui-kit-components-select.umd.js.map +1 -1
  124. package/bundles/taiga-ui-kit-components-slider.umd.js +39 -0
  125. package/bundles/taiga-ui-kit-components-slider.umd.js.map +1 -1
  126. package/bundles/taiga-ui-kit-components-stepper.umd.js +6 -0
  127. package/bundles/taiga-ui-kit-components-stepper.umd.js.map +1 -1
  128. package/bundles/taiga-ui-kit-components-tabs.umd.js +25 -1
  129. package/bundles/taiga-ui-kit-components-tabs.umd.js.map +1 -1
  130. package/bundles/taiga-ui-kit-components-tag.umd.js +9 -0
  131. package/bundles/taiga-ui-kit-components-tag.umd.js.map +1 -1
  132. package/bundles/taiga-ui-kit-components-textarea.umd.js +13 -0
  133. package/bundles/taiga-ui-kit-components-textarea.umd.js.map +1 -1
  134. package/bundles/taiga-ui-kit-components-tiles.umd.js +4 -0
  135. package/bundles/taiga-ui-kit-components-tiles.umd.js.map +1 -1
  136. package/bundles/taiga-ui-kit-components-toggle.umd.js +9 -0
  137. package/bundles/taiga-ui-kit-components-toggle.umd.js.map +1 -1
  138. package/bundles/taiga-ui-kit-components-tree.umd.js +28 -0
  139. package/bundles/taiga-ui-kit-components-tree.umd.js.map +1 -1
  140. package/bundles/taiga-ui-kit-components.umd.js +14 -4
  141. package/bundles/taiga-ui-kit-components.umd.js.map +1 -1
  142. package/bundles/taiga-ui-kit-constants.umd.js +19 -0
  143. package/bundles/taiga-ui-kit-constants.umd.js.map +1 -1
  144. package/bundles/taiga-ui-kit-directives-data-list-dropdown-manager.umd.js +5 -0
  145. package/bundles/taiga-ui-kit-directives-data-list-dropdown-manager.umd.js.map +1 -1
  146. package/bundles/taiga-ui-kit-directives-highlight.umd.js +4 -0
  147. package/bundles/taiga-ui-kit-directives-highlight.umd.js.map +1 -1
  148. package/bundles/taiga-ui-kit-directives-lazy-loading.umd.js +4 -0
  149. package/bundles/taiga-ui-kit-directives-lazy-loading.umd.js.map +1 -1
  150. package/bundles/taiga-ui-kit-directives-mask.umd.js +26 -0
  151. package/bundles/taiga-ui-kit-directives-mask.umd.js.map +1 -1
  152. package/bundles/taiga-ui-kit-directives-present.umd.js +15 -0
  153. package/bundles/taiga-ui-kit-directives-present.umd.js.map +1 -1
  154. package/bundles/taiga-ui-kit-directives-project-class.umd.js +7 -0
  155. package/bundles/taiga-ui-kit-directives-project-class.umd.js.map +1 -1
  156. package/bundles/taiga-ui-kit-directives-unfinished-validator.umd.js +7 -1
  157. package/bundles/taiga-ui-kit-directives-unfinished-validator.umd.js.map +1 -1
  158. package/bundles/taiga-ui-kit-directives-unmask-handler.umd.js +4 -0
  159. package/bundles/taiga-ui-kit-directives-unmask-handler.umd.js.map +1 -1
  160. package/bundles/taiga-ui-kit-directives-value-accessor.umd.js +4 -0
  161. package/bundles/taiga-ui-kit-directives-value-accessor.umd.js.map +1 -1
  162. package/bundles/taiga-ui-kit-directives.umd.js +4 -0
  163. package/bundles/taiga-ui-kit-directives.umd.js.map +1 -1
  164. package/bundles/taiga-ui-kit-interfaces.umd.js +3 -1
  165. package/bundles/taiga-ui-kit-interfaces.umd.js.map +1 -1
  166. package/bundles/taiga-ui-kit-internal-primitive-calendar-range.umd.js +10 -0
  167. package/bundles/taiga-ui-kit-internal-primitive-calendar-range.umd.js.map +1 -1
  168. package/bundles/taiga-ui-kit-internal.umd.js +4 -0
  169. package/bundles/taiga-ui-kit-internal.umd.js.map +1 -1
  170. package/bundles/taiga-ui-kit-pipes-field-error.umd.js +4 -0
  171. package/bundles/taiga-ui-kit-pipes-field-error.umd.js.map +1 -1
  172. package/bundles/taiga-ui-kit-pipes-filter-by-input.umd.js +7 -0
  173. package/bundles/taiga-ui-kit-pipes-filter-by-input.umd.js.map +1 -1
  174. package/bundles/taiga-ui-kit-pipes-iso-to-country-code.umd.js +4 -0
  175. package/bundles/taiga-ui-kit-pipes-iso-to-country-code.umd.js.map +1 -1
  176. package/bundles/taiga-ui-kit-pipes-sort-countries.umd.js +4 -0
  177. package/bundles/taiga-ui-kit-pipes-sort-countries.umd.js.map +1 -1
  178. package/bundles/taiga-ui-kit-pipes-stringify-content.umd.js +4 -0
  179. package/bundles/taiga-ui-kit-pipes-stringify-content.umd.js.map +1 -1
  180. package/bundles/taiga-ui-kit-pipes-stringify.umd.js +4 -0
  181. package/bundles/taiga-ui-kit-pipes-stringify.umd.js.map +1 -1
  182. package/bundles/taiga-ui-kit-pipes-to-country-code.umd.js +4 -0
  183. package/bundles/taiga-ui-kit-pipes-to-country-code.umd.js.map +1 -1
  184. package/bundles/taiga-ui-kit-pipes-to-year.umd.js +4 -0
  185. package/bundles/taiga-ui-kit-pipes-to-year.umd.js.map +1 -1
  186. package/bundles/taiga-ui-kit-pipes.umd.js +4 -0
  187. package/bundles/taiga-ui-kit-pipes.umd.js.map +1 -1
  188. package/bundles/taiga-ui-kit-providers.umd.js +4 -0
  189. package/bundles/taiga-ui-kit-providers.umd.js.map +1 -1
  190. package/bundles/taiga-ui-kit-services.umd.js +4 -0
  191. package/bundles/taiga-ui-kit-services.umd.js.map +1 -1
  192. package/bundles/taiga-ui-kit-tokens.umd.js +35 -0
  193. package/bundles/taiga-ui-kit-tokens.umd.js.map +1 -1
  194. package/bundles/taiga-ui-kit-types.umd.js +3 -1
  195. package/bundles/taiga-ui-kit-types.umd.js.map +1 -1
  196. package/bundles/taiga-ui-kit-utils-date.umd.js +22 -0
  197. package/bundles/taiga-ui-kit-utils-date.umd.js.map +1 -0
  198. package/bundles/taiga-ui-kit-utils-files.umd.js +4 -0
  199. package/bundles/taiga-ui-kit-utils-files.umd.js.map +1 -1
  200. package/bundles/taiga-ui-kit-utils-format.umd.js +10 -0
  201. package/bundles/taiga-ui-kit-utils-format.umd.js.map +1 -1
  202. package/bundles/taiga-ui-kit-utils-mask.umd.js +50 -0
  203. package/bundles/taiga-ui-kit-utils-mask.umd.js.map +1 -1
  204. package/bundles/taiga-ui-kit-utils-math.umd.js +7 -0
  205. package/bundles/taiga-ui-kit-utils-math.umd.js.map +1 -1
  206. package/bundles/taiga-ui-kit-utils-miscellaneous.umd.js +10 -0
  207. package/bundles/taiga-ui-kit-utils-miscellaneous.umd.js.map +1 -1
  208. package/bundles/taiga-ui-kit-utils-phone.umd.js +4 -0
  209. package/bundles/taiga-ui-kit-utils-phone.umd.js.map +1 -1
  210. package/bundles/taiga-ui-kit-utils.umd.js +14 -4
  211. package/bundles/taiga-ui-kit-utils.umd.js.map +1 -1
  212. package/bundles/taiga-ui-kit-validators.umd.js +4 -0
  213. package/bundles/taiga-ui-kit-validators.umd.js.map +1 -1
  214. package/bundles/taiga-ui-kit.umd.js +4 -0
  215. package/bundles/taiga-ui-kit.umd.js.map +1 -1
  216. package/classes/stringifiable-item.d.ts +3 -0
  217. package/classes/taiga-ui-kit-classes.d.ts +3 -0
  218. package/components/accordion/taiga-ui-kit-components-accordion.d.ts +3 -0
  219. package/components/action/taiga-ui-kit-components-action.d.ts +3 -0
  220. package/components/arrow/arrow.options.d.ts +4 -0
  221. package/components/arrow/arrow.providers.d.ts +3 -0
  222. package/components/arrow/taiga-ui-kit-components-arrow.d.ts +3 -0
  223. package/components/avatar/avatar.options.d.ts +4 -0
  224. package/components/avatar/taiga-ui-kit-components-avatar.d.ts +3 -0
  225. package/components/badge/taiga-ui-kit-components-badge.d.ts +3 -0
  226. package/components/badged-content/taiga-ui-kit-components-badged-content.d.ts +3 -0
  227. package/components/breadcrumbs/taiga-ui-kit-components-breadcrumbs.d.ts +3 -0
  228. package/components/calendar-month/taiga-ui-kit-components-calendar-month.d.ts +3 -0
  229. package/components/calendar-range/taiga-ui-kit-components-calendar-range.d.ts +3 -0
  230. package/components/carousel/taiga-ui-kit-components-carousel.d.ts +3 -0
  231. package/components/checkbox/checkbox.component.d.ts +1 -0
  232. package/components/checkbox/taiga-ui-kit-components-checkbox.d.ts +3 -0
  233. package/components/checkbox-block/checkbox-block.component.d.ts +1 -0
  234. package/components/checkbox-block/taiga-ui-kit-components-checkbox-block.d.ts +3 -0
  235. package/components/checkbox-labeled/checkbox-labeled.component.d.ts +1 -0
  236. package/components/checkbox-labeled/taiga-ui-kit-components-checkbox-labeled.d.ts +3 -0
  237. package/components/combo-box/combo-box.component.d.ts +1 -0
  238. package/components/combo-box/taiga-ui-kit-components-combo-box.d.ts +3 -0
  239. package/components/data-list-wrapper/data-list-wrapper.d.ts +3 -2
  240. package/components/data-list-wrapper/taiga-ui-kit-components-data-list-wrapper.d.ts +3 -0
  241. package/components/elastic-container/taiga-ui-kit-components-elastic-container.d.ts +3 -0
  242. package/components/files/file/file-options.d.ts +3 -0
  243. package/components/files/taiga-ui-kit-components-files.d.ts +3 -0
  244. package/components/filter/taiga-ui-kit-components-filter.d.ts +3 -0
  245. package/components/index.d.ts +1 -0
  246. package/components/input/taiga-ui-kit-components-input.d.ts +3 -0
  247. package/components/input-copy/taiga-ui-kit-components-input-copy.d.ts +3 -0
  248. package/components/input-count/input-count.component.d.ts +10 -0
  249. package/components/input-count/input-count.module.d.ts +3 -0
  250. package/components/input-count/input-count.options.d.ts +4 -0
  251. package/components/input-count/taiga-ui-kit-components-input-count.d.ts +3 -0
  252. package/components/input-date/input-date.component.d.ts +4 -0
  253. package/components/input-date/taiga-ui-kit-components-input-date.d.ts +3 -0
  254. package/components/input-date-multi/index.d.ts +2 -0
  255. package/components/input-date-multi/input-date-multi.component.d.ts +64 -0
  256. package/components/input-date-multi/input-date-multi.module.d.ts +14 -0
  257. package/components/input-date-multi/package.json +10 -0
  258. package/components/input-date-multi/taiga-ui-kit-components-input-date-multi.d.ts +5 -0
  259. package/components/input-date-range/taiga-ui-kit-components-input-date-range.d.ts +3 -0
  260. package/components/input-date-time/taiga-ui-kit-components-input-date-time.d.ts +3 -0
  261. package/components/input-files/input-files.component.d.ts +6 -0
  262. package/components/input-files/input-files.options.d.ts +8 -0
  263. package/components/input-files/taiga-ui-kit-components-input-files.d.ts +3 -0
  264. package/components/input-inline/taiga-ui-kit-components-input-inline.d.ts +3 -0
  265. package/components/input-month/taiga-ui-kit-components-input-month.d.ts +3 -0
  266. package/components/input-month-range/taiga-ui-kit-components-input-month-range.d.ts +3 -0
  267. package/components/input-number/input-number.component.d.ts +2 -0
  268. package/components/input-number/input-number.options.d.ts +4 -0
  269. package/components/input-number/taiga-ui-kit-components-input-number.d.ts +3 -0
  270. package/components/input-password/input-password.options.d.ts +4 -0
  271. package/components/input-password/taiga-ui-kit-components-input-password.d.ts +3 -0
  272. package/components/input-phone/input-phone.options.d.ts +3 -0
  273. package/components/input-phone/taiga-ui-kit-components-input-phone.d.ts +3 -0
  274. package/components/input-phone/utils/complete-phone-insertion-preprocessor.d.ts +7 -0
  275. package/components/input-phone/utils/create-phone-mask-expression.d.ts +6 -0
  276. package/components/input-phone-international/input-phone-international.component.d.ts +13 -0
  277. package/components/input-phone-international/input-phone-international.options.d.ts +3 -0
  278. package/components/input-phone-international/taiga-ui-kit-components-input-phone-international.d.ts +3 -0
  279. package/components/input-range/taiga-ui-kit-components-input-range.d.ts +3 -0
  280. package/components/input-slider/input-slider.component.d.ts +2 -0
  281. package/components/input-slider/taiga-ui-kit-components-input-slider.d.ts +3 -0
  282. package/components/input-tag/input-tag.component.d.ts +1 -1
  283. package/components/input-tag/input-tag.options.d.ts +3 -0
  284. package/components/input-tag/taiga-ui-kit-components-input-tag.d.ts +3 -0
  285. package/components/input-time/input-time.component.d.ts +1 -0
  286. package/components/input-time/input-time.options.d.ts +3 -0
  287. package/components/input-time/taiga-ui-kit-components-input-time.d.ts +3 -0
  288. package/components/input-year/taiga-ui-kit-components-input-year.d.ts +3 -0
  289. package/components/island/taiga-ui-kit-components-island.d.ts +3 -0
  290. package/components/items-with-more/taiga-ui-kit-components-items-with-more.d.ts +3 -0
  291. package/components/line-clamp/line-clamp.options.d.ts +3 -0
  292. package/components/line-clamp/taiga-ui-kit-components-line-clamp.d.ts +3 -0
  293. package/components/marker-icon/taiga-ui-kit-components-marker-icon.d.ts +3 -0
  294. package/components/multi-select/multi-select.options.d.ts +3 -0
  295. package/components/multi-select/taiga-ui-kit-components-multi-select.d.ts +3 -0
  296. package/components/multi-select-option/taiga-ui-kit-components-multi-select-option.d.ts +3 -0
  297. package/components/pagination/pagination.component.d.ts +37 -0
  298. package/components/pagination/taiga-ui-kit-components-pagination.d.ts +3 -0
  299. package/components/pdf-viewer/pdf-viewer.options.d.ts +3 -0
  300. package/components/pdf-viewer/taiga-ui-kit-components-pdf-viewer.d.ts +3 -0
  301. package/components/progress/taiga-ui-kit-components-progress.d.ts +3 -0
  302. package/components/prompt/taiga-ui-kit-components-prompt.d.ts +3 -0
  303. package/components/push/push.options.d.ts +3 -0
  304. package/components/push/taiga-ui-kit-components-push.d.ts +3 -0
  305. package/components/radio/radio.options.d.ts +4 -0
  306. package/components/radio/taiga-ui-kit-components-radio.d.ts +3 -0
  307. package/components/radio-block/radio-block.component.d.ts +1 -0
  308. package/components/radio-block/taiga-ui-kit-components-radio-block.d.ts +3 -0
  309. package/components/radio-group/taiga-ui-kit-components-radio-group.d.ts +3 -0
  310. package/components/radio-labeled/radio-labeled.component.d.ts +1 -0
  311. package/components/radio-labeled/taiga-ui-kit-components-radio-labeled.d.ts +3 -0
  312. package/components/radio-list/radio-list.component.d.ts +1 -0
  313. package/components/radio-list/taiga-ui-kit-components-radio-list.d.ts +3 -0
  314. package/components/range/range-change.directive.d.ts +4 -0
  315. package/components/range/taiga-ui-kit-components-range.d.ts +3 -0
  316. package/components/rating/rating.options.d.ts +3 -0
  317. package/components/rating/taiga-ui-kit-components-rating.d.ts +3 -0
  318. package/components/routable-dialog/taiga-ui-kit-components-routable-dialog.d.ts +3 -0
  319. package/components/select/select.options.d.ts +3 -0
  320. package/components/select/taiga-ui-kit-components-select.d.ts +3 -0
  321. package/components/select-option/taiga-ui-kit-components-select-option.d.ts +3 -0
  322. package/components/slider/helpers/slider-readonly.directive.d.ts +4 -0
  323. package/components/slider/slider.options.d.ts +3 -0
  324. package/components/slider/taiga-ui-kit-components-slider.d.ts +3 -0
  325. package/components/stepper/taiga-ui-kit-components-stepper.d.ts +3 -0
  326. package/components/tabs/tab/tab.providers.d.ts +3 -0
  327. package/components/tabs/tabs/tabs.component.d.ts +2 -0
  328. package/components/tabs/tabs.options.d.ts +3 -0
  329. package/components/tabs/taiga-ui-kit-components-tabs.d.ts +3 -0
  330. package/components/tag/tag.options.d.ts +4 -0
  331. package/components/tag/taiga-ui-kit-components-tag.d.ts +3 -0
  332. package/components/taiga-ui-kit-components.d.ts +3 -0
  333. package/components/textarea/deprecated.d.ts +9 -0
  334. package/components/textarea/taiga-ui-kit-components-textarea.d.ts +3 -0
  335. package/components/tiles/taiga-ui-kit-components-tiles.d.ts +3 -0
  336. package/components/toggle/taiga-ui-kit-components-toggle.d.ts +3 -0
  337. package/components/toggle/toggle.component.d.ts +1 -0
  338. package/components/toggle/toggle.options.d.ts +4 -0
  339. package/components/tree/misc/tree.tokens.d.ts +24 -0
  340. package/components/tree/taiga-ui-kit-components-tree.d.ts +3 -0
  341. package/constants/empty-mask.d.ts +4 -0
  342. package/constants/group-class-names.d.ts +4 -0
  343. package/constants/masks.d.ts +4 -0
  344. package/constants/math.d.ts +3 -0
  345. package/constants/taiga-ui-kit-constants.d.ts +3 -0
  346. package/directives/data-list-dropdown-manager/taiga-ui-kit-directives-data-list-dropdown-manager.d.ts +3 -0
  347. package/directives/highlight/taiga-ui-kit-directives-highlight.d.ts +3 -0
  348. package/directives/lazy-loading/taiga-ui-kit-directives-lazy-loading.d.ts +3 -0
  349. package/directives/mask/legacy-mask.d.ts +21 -0
  350. package/directives/mask/taiga-ui-kit-directives-mask.d.ts +3 -0
  351. package/directives/present/present.directive.d.ts +11 -0
  352. package/directives/present/taiga-ui-kit-directives-present.d.ts +3 -0
  353. package/directives/project-class/project-class.directive.d.ts +3 -0
  354. package/directives/project-class/taiga-ui-kit-directives-project-class.d.ts +3 -0
  355. package/directives/taiga-ui-kit-directives.d.ts +3 -0
  356. package/directives/unfinished-validator/taiga-ui-kit-directives-unfinished-validator.d.ts +3 -0
  357. package/directives/unmask-handler/taiga-ui-kit-directives-unmask-handler.d.ts +3 -0
  358. package/directives/value-accessor/taiga-ui-kit-directives-value-accessor.d.ts +3 -0
  359. package/esm2015/abstract/taiga-ui-kit-abstract.js +4 -1
  360. package/esm2015/classes/stringifiable-item.js +4 -1
  361. package/esm2015/classes/taiga-ui-kit-classes.js +4 -1
  362. package/esm2015/components/accordion/taiga-ui-kit-components-accordion.js +4 -1
  363. package/esm2015/components/action/taiga-ui-kit-components-action.js +4 -1
  364. package/esm2015/components/arrow/arrow.options.js +5 -1
  365. package/esm2015/components/arrow/arrow.providers.js +4 -1
  366. package/esm2015/components/arrow/taiga-ui-kit-components-arrow.js +4 -1
  367. package/esm2015/components/avatar/avatar.options.js +5 -1
  368. package/esm2015/components/avatar/taiga-ui-kit-components-avatar.js +4 -1
  369. package/esm2015/components/badge/taiga-ui-kit-components-badge.js +4 -1
  370. package/esm2015/components/badged-content/taiga-ui-kit-components-badged-content.js +4 -1
  371. package/esm2015/components/breadcrumbs/taiga-ui-kit-components-breadcrumbs.js +4 -1
  372. package/esm2015/components/calendar-month/taiga-ui-kit-components-calendar-month.js +4 -1
  373. package/esm2015/components/calendar-range/taiga-ui-kit-components-calendar-range.js +4 -1
  374. package/esm2015/components/carousel/carousel-scroll.directive.js +2 -1
  375. package/esm2015/components/carousel/taiga-ui-kit-components-carousel.js +4 -1
  376. package/esm2015/components/checkbox/checkbox.component.js +2 -1
  377. package/esm2015/components/checkbox/taiga-ui-kit-components-checkbox.js +4 -1
  378. package/esm2015/components/checkbox-block/checkbox-block.component.js +2 -1
  379. package/esm2015/components/checkbox-block/taiga-ui-kit-components-checkbox-block.js +4 -1
  380. package/esm2015/components/checkbox-labeled/checkbox-labeled.component.js +2 -1
  381. package/esm2015/components/checkbox-labeled/taiga-ui-kit-components-checkbox-labeled.js +4 -1
  382. package/esm2015/components/combo-box/combo-box.component.js +2 -1
  383. package/esm2015/components/combo-box/taiga-ui-kit-components-combo-box.js +4 -1
  384. package/esm2015/components/data-list-wrapper/data-list-group-wrapper.component.js +2 -2
  385. package/esm2015/components/data-list-wrapper/data-list-wrapper.component.js +2 -2
  386. package/esm2015/components/data-list-wrapper/data-list-wrapper.js +6 -3
  387. package/esm2015/components/data-list-wrapper/taiga-ui-kit-components-data-list-wrapper.js +4 -1
  388. package/esm2015/components/elastic-container/taiga-ui-kit-components-elastic-container.js +4 -1
  389. package/esm2015/components/files/file/file-options.js +4 -1
  390. package/esm2015/components/files/file/file.component.js +2 -1
  391. package/esm2015/components/files/taiga-ui-kit-components-files.js +4 -1
  392. package/esm2015/components/filter/filter.component.js +2 -1
  393. package/esm2015/components/filter/taiga-ui-kit-components-filter.js +4 -1
  394. package/esm2015/components/index.js +2 -1
  395. package/esm2015/components/input/taiga-ui-kit-components-input.js +4 -1
  396. package/esm2015/components/input-copy/taiga-ui-kit-components-input-copy.js +4 -1
  397. package/esm2015/components/input-count/input-count.component.js +11 -1
  398. package/esm2015/components/input-count/input-count.module.js +4 -1
  399. package/esm2015/components/input-count/input-count.options.js +5 -1
  400. package/esm2015/components/input-count/taiga-ui-kit-components-input-count.js +4 -1
  401. package/esm2015/components/input-date/input-date.component.js +6 -1
  402. package/esm2015/components/input-date/taiga-ui-kit-components-input-date.js +4 -1
  403. package/esm2015/components/input-date-multi/index.js +3 -0
  404. package/esm2015/components/input-date-multi/input-date-multi.component.js +272 -0
  405. package/esm2015/components/input-date-multi/input-date-multi.module.js +64 -0
  406. package/esm2015/components/input-date-multi/taiga-ui-kit-components-input-date-multi.js +5 -0
  407. package/esm2015/components/input-date-range/taiga-ui-kit-components-input-date-range.js +4 -1
  408. package/esm2015/components/input-date-time/taiga-ui-kit-components-input-date-time.js +4 -1
  409. package/esm2015/components/input-files/input-files.component.js +9 -1
  410. package/esm2015/components/input-files/input-files.directive.js +2 -1
  411. package/esm2015/components/input-files/input-files.options.js +5 -2
  412. package/esm2015/components/input-files/taiga-ui-kit-components-input-files.js +4 -1
  413. package/esm2015/components/input-inline/input-inline.component.js +3 -1
  414. package/esm2015/components/input-inline/taiga-ui-kit-components-input-inline.js +4 -1
  415. package/esm2015/components/input-month/taiga-ui-kit-components-input-month.js +4 -1
  416. package/esm2015/components/input-month-range/taiga-ui-kit-components-input-month-range.js +4 -1
  417. package/esm2015/components/input-number/input-number.component.js +4 -1
  418. package/esm2015/components/input-number/input-number.options.js +5 -1
  419. package/esm2015/components/input-number/taiga-ui-kit-components-input-number.js +4 -1
  420. package/esm2015/components/input-password/input-password.options.js +6 -1
  421. package/esm2015/components/input-password/taiga-ui-kit-components-input-password.js +4 -1
  422. package/esm2015/components/input-phone/input-phone.options.js +4 -1
  423. package/esm2015/components/input-phone/taiga-ui-kit-components-input-phone.js +4 -1
  424. package/esm2015/components/input-phone/utils/complete-phone-insertion-preprocessor.js +21 -3
  425. package/esm2015/components/input-phone/utils/create-phone-mask-expression.js +7 -1
  426. package/esm2015/components/input-phone-international/input-phone-international.component.js +17 -1
  427. package/esm2015/components/input-phone-international/input-phone-international.options.js +4 -1
  428. package/esm2015/components/input-phone-international/taiga-ui-kit-components-input-phone-international.js +4 -1
  429. package/esm2015/components/input-range/taiga-ui-kit-components-input-range.js +4 -1
  430. package/esm2015/components/input-slider/input-slider.component.js +3 -1
  431. package/esm2015/components/input-slider/taiga-ui-kit-components-input-slider.js +4 -1
  432. package/esm2015/components/input-tag/input-tag.component.js +6 -2
  433. package/esm2015/components/input-tag/input-tag.options.js +4 -1
  434. package/esm2015/components/input-tag/taiga-ui-kit-components-input-tag.js +4 -1
  435. package/esm2015/components/input-time/input-time.component.js +3 -1
  436. package/esm2015/components/input-time/input-time.options.js +4 -1
  437. package/esm2015/components/input-time/taiga-ui-kit-components-input-time.js +4 -1
  438. package/esm2015/components/input-year/taiga-ui-kit-components-input-year.js +4 -1
  439. package/esm2015/components/island/taiga-ui-kit-components-island.js +4 -1
  440. package/esm2015/components/items-with-more/taiga-ui-kit-components-items-with-more.js +4 -1
  441. package/esm2015/components/line-clamp/line-clamp.component.js +2 -1
  442. package/esm2015/components/line-clamp/line-clamp.options.js +4 -1
  443. package/esm2015/components/line-clamp/taiga-ui-kit-components-line-clamp.js +4 -1
  444. package/esm2015/components/marker-icon/taiga-ui-kit-components-marker-icon.js +4 -1
  445. package/esm2015/components/multi-select/multi-select.component.js +2 -1
  446. package/esm2015/components/multi-select/multi-select.options.js +4 -1
  447. package/esm2015/components/multi-select/taiga-ui-kit-components-multi-select.js +4 -1
  448. package/esm2015/components/multi-select-option/taiga-ui-kit-components-multi-select-option.js +4 -1
  449. package/esm2015/components/pagination/pagination.component.js +35 -1
  450. package/esm2015/components/pagination/taiga-ui-kit-components-pagination.js +4 -1
  451. package/esm2015/components/pdf-viewer/pdf-viewer.options.js +4 -1
  452. package/esm2015/components/pdf-viewer/taiga-ui-kit-components-pdf-viewer.js +4 -1
  453. package/esm2015/components/progress/progress-bar/progress-color-segments.directive.js +2 -1
  454. package/esm2015/components/progress/progress-circle/progress-circle.component.js +2 -1
  455. package/esm2015/components/progress/taiga-ui-kit-components-progress.js +4 -1
  456. package/esm2015/components/prompt/prompt.component.js +2 -1
  457. package/esm2015/components/prompt/taiga-ui-kit-components-prompt.js +4 -1
  458. package/esm2015/components/push/push.options.js +4 -1
  459. package/esm2015/components/push/taiga-ui-kit-components-push.js +4 -1
  460. package/esm2015/components/radio/radio.options.js +5 -1
  461. package/esm2015/components/radio/taiga-ui-kit-components-radio.js +4 -1
  462. package/esm2015/components/radio-block/radio-block.component.js +2 -1
  463. package/esm2015/components/radio-block/taiga-ui-kit-components-radio-block.js +4 -1
  464. package/esm2015/components/radio-group/taiga-ui-kit-components-radio-group.js +4 -1
  465. package/esm2015/components/radio-labeled/radio-labeled.component.js +2 -1
  466. package/esm2015/components/radio-labeled/taiga-ui-kit-components-radio-labeled.js +4 -1
  467. package/esm2015/components/radio-list/radio-list.component.js +3 -1
  468. package/esm2015/components/radio-list/taiga-ui-kit-components-radio-list.js +4 -1
  469. package/esm2015/components/range/range-change.directive.js +5 -1
  470. package/esm2015/components/range/range.component.js +2 -1
  471. package/esm2015/components/range/taiga-ui-kit-components-range.js +4 -1
  472. package/esm2015/components/rating/rating.options.js +4 -1
  473. package/esm2015/components/rating/taiga-ui-kit-components-rating.js +4 -1
  474. package/esm2015/components/routable-dialog/taiga-ui-kit-components-routable-dialog.js +4 -1
  475. package/esm2015/components/select/select.options.js +4 -1
  476. package/esm2015/components/select/taiga-ui-kit-components-select.js +4 -1
  477. package/esm2015/components/select-option/select-option.component.js +8 -1
  478. package/esm2015/components/select-option/taiga-ui-kit-components-select-option.js +4 -1
  479. package/esm2015/components/slider/helpers/slider-readonly.directive.js +9 -1
  480. package/esm2015/components/slider/slider.component.js +25 -1
  481. package/esm2015/components/slider/slider.options.js +4 -1
  482. package/esm2015/components/slider/taiga-ui-kit-components-slider.js +4 -1
  483. package/esm2015/components/stepper/stepper.component.js +3 -1
  484. package/esm2015/components/stepper/taiga-ui-kit-components-stepper.js +4 -1
  485. package/esm2015/components/tabs/tab/tab.component.js +9 -1
  486. package/esm2015/components/tabs/tab/tab.providers.js +4 -1
  487. package/esm2015/components/tabs/tabs/tabs.component.js +3 -1
  488. package/esm2015/components/tabs/tabs-with-more/tabs-with-more.component.js +3 -1
  489. package/esm2015/components/tabs/tabs-with-more/tabs-with-more.providers.js +4 -2
  490. package/esm2015/components/tabs/tabs.options.js +4 -1
  491. package/esm2015/components/tabs/taiga-ui-kit-components-tabs.js +4 -1
  492. package/esm2015/components/tag/tag.component.js +2 -1
  493. package/esm2015/components/tag/tag.options.js +5 -1
  494. package/esm2015/components/tag/taiga-ui-kit-components-tag.js +4 -1
  495. package/esm2015/components/taiga-ui-kit-components.js +4 -1
  496. package/esm2015/components/textarea/deprecated.js +10 -1
  497. package/esm2015/components/textarea/taiga-ui-kit-components-textarea.js +4 -1
  498. package/esm2015/components/tiles/taiga-ui-kit-components-tiles.js +4 -1
  499. package/esm2015/components/toggle/taiga-ui-kit-components-toggle.js +4 -1
  500. package/esm2015/components/toggle/toggle.component.js +2 -1
  501. package/esm2015/components/toggle/toggle.options.js +5 -1
  502. package/esm2015/components/tree/components/tree-item/tree-item.component.js +2 -1
  503. package/esm2015/components/tree/components/tree-item/tree-item.providers.js +2 -1
  504. package/esm2015/components/tree/components/tree-item-content/tree-item-content.component.js +2 -1
  505. package/esm2015/components/tree/misc/tree.tokens.js +25 -1
  506. package/esm2015/components/tree/taiga-ui-kit-components-tree.js +4 -1
  507. package/esm2015/constants/empty-mask.js +5 -1
  508. package/esm2015/constants/group-class-names.js +5 -1
  509. package/esm2015/constants/masks.js +5 -1
  510. package/esm2015/constants/math.js +4 -1
  511. package/esm2015/constants/taiga-ui-kit-constants.js +4 -1
  512. package/esm2015/directives/data-list-dropdown-manager/data-list-dropdown-manager.directive.js +2 -1
  513. package/esm2015/directives/data-list-dropdown-manager/taiga-ui-kit-directives-data-list-dropdown-manager.js +4 -1
  514. package/esm2015/directives/highlight/taiga-ui-kit-directives-highlight.js +4 -1
  515. package/esm2015/directives/lazy-loading/taiga-ui-kit-directives-lazy-loading.js +4 -1
  516. package/esm2015/directives/mask/legacy-mask.js +31 -1
  517. package/esm2015/directives/mask/taiga-ui-kit-directives-mask.js +4 -1
  518. package/esm2015/directives/present/present.directive.js +12 -1
  519. package/esm2015/directives/present/taiga-ui-kit-directives-present.js +4 -1
  520. package/esm2015/directives/project-class/project-class.directive.js +4 -1
  521. package/esm2015/directives/project-class/taiga-ui-kit-directives-project-class.js +4 -1
  522. package/esm2015/directives/taiga-ui-kit-directives.js +4 -1
  523. package/esm2015/directives/unfinished-validator/taiga-ui-kit-directives-unfinished-validator.js +4 -1
  524. package/esm2015/directives/unfinished-validator/unfinished-validator.directive.js +4 -2
  525. package/esm2015/directives/unmask-handler/taiga-ui-kit-directives-unmask-handler.js +4 -1
  526. package/esm2015/directives/value-accessor/taiga-ui-kit-directives-value-accessor.js +4 -1
  527. package/esm2015/interfaces/taiga-ui-kit-interfaces.js +4 -1
  528. package/esm2015/internal/primitive-calendar-range/primitive-calendar-range.component.js +4 -1
  529. package/esm2015/internal/primitive-calendar-range/primitive-calendar-range.module.js +4 -1
  530. package/esm2015/internal/primitive-calendar-range/taiga-ui-kit-internal-primitive-calendar-range.js +4 -1
  531. package/esm2015/internal/taiga-ui-kit-internal.js +4 -1
  532. package/esm2015/pipes/field-error/taiga-ui-kit-pipes-field-error.js +4 -1
  533. package/esm2015/pipes/filter-by-input/filter-by-input-with.pipe.js +4 -1
  534. package/esm2015/pipes/filter-by-input/taiga-ui-kit-pipes-filter-by-input.js +4 -1
  535. package/esm2015/pipes/iso-to-country-code/taiga-ui-kit-pipes-iso-to-country-code.js +4 -1
  536. package/esm2015/pipes/sort-countries/taiga-ui-kit-pipes-sort-countries.js +4 -1
  537. package/esm2015/pipes/stringify/taiga-ui-kit-pipes-stringify.js +4 -1
  538. package/esm2015/pipes/stringify-content/taiga-ui-kit-pipes-stringify-content.js +4 -1
  539. package/esm2015/pipes/taiga-ui-kit-pipes.js +4 -1
  540. package/esm2015/pipes/to-country-code/taiga-ui-kit-pipes-to-country-code.js +4 -1
  541. package/esm2015/pipes/to-year/taiga-ui-kit-pipes-to-year.js +4 -1
  542. package/esm2015/providers/taiga-ui-kit-providers.js +4 -1
  543. package/esm2015/services/taiga-ui-kit-services.js +4 -1
  544. package/esm2015/taiga-ui-kit.js +4 -1
  545. package/esm2015/tokens/calendar-date-stream.js +4 -1
  546. package/esm2015/tokens/date-inputs-value-transformers.js +11 -1
  547. package/esm2015/tokens/input-date-options.js +4 -1
  548. package/esm2015/tokens/items-handlers.js +4 -1
  549. package/esm2015/tokens/mobile-calendar.js +4 -1
  550. package/esm2015/tokens/month-formatter.js +4 -1
  551. package/esm2015/tokens/tab-margin.js +4 -1
  552. package/esm2015/tokens/taiga-ui-kit-tokens.js +4 -1
  553. package/esm2015/tokens/validation-errors.js +4 -1
  554. package/esm2015/types/taiga-ui-kit-types.js +4 -1
  555. package/esm2015/utils/date/index.js +2 -0
  556. package/esm2015/utils/date/taiga-ui-kit-utils-date.js +5 -0
  557. package/esm2015/utils/date/update.js +6 -0
  558. package/esm2015/utils/files/taiga-ui-kit-utils-files.js +4 -1
  559. package/esm2015/utils/format/string-hash-to-hsl.js +7 -1
  560. package/esm2015/utils/format/taiga-ui-kit-utils-format.js +4 -1
  561. package/esm2015/utils/index.js +2 -1
  562. package/esm2015/utils/mask/create-auto-corrected-date-pipe.js +9 -1
  563. package/esm2015/utils/mask/create-auto-corrected-date-range-pipe.js +17 -1
  564. package/esm2015/utils/mask/create-auto-corrected-date-time-pipe.js +5 -1
  565. package/esm2015/utils/mask/create-auto-corrected-time-pipe.js +7 -1
  566. package/esm2015/utils/mask/create-date-mask.js +5 -1
  567. package/esm2015/utils/mask/create-date-range-mask.js +5 -1
  568. package/esm2015/utils/mask/create-time-mask.js +5 -1
  569. package/esm2015/utils/mask/taiga-ui-kit-utils-mask.js +4 -1
  570. package/esm2015/utils/math/horizontal-direction-to-number.js +4 -1
  571. package/esm2015/utils/math/taiga-ui-kit-utils-math.js +4 -1
  572. package/esm2015/utils/miscellaneous/get-precision.js +4 -1
  573. package/esm2015/utils/miscellaneous/replay-control-value-changes-factory.js +4 -1
  574. package/esm2015/utils/miscellaneous/taiga-ui-kit-utils-miscellaneous.js +4 -1
  575. package/esm2015/utils/phone/taiga-ui-kit-utils-phone.js +4 -1
  576. package/esm2015/utils/taiga-ui-kit-utils.js +4 -1
  577. package/esm2015/validators/taiga-ui-kit-validators.js +4 -1
  578. package/fesm2015/taiga-ui-kit-abstract.js +4 -0
  579. package/fesm2015/taiga-ui-kit-abstract.js.map +1 -1
  580. package/fesm2015/taiga-ui-kit-classes.js +7 -0
  581. package/fesm2015/taiga-ui-kit-classes.js.map +1 -1
  582. package/fesm2015/taiga-ui-kit-components-accordion.js +4 -0
  583. package/fesm2015/taiga-ui-kit-components-accordion.js.map +1 -1
  584. package/fesm2015/taiga-ui-kit-components-action.js +4 -0
  585. package/fesm2015/taiga-ui-kit-components-action.js.map +1 -1
  586. package/fesm2015/taiga-ui-kit-components-arrow.js +11 -0
  587. package/fesm2015/taiga-ui-kit-components-arrow.js.map +1 -1
  588. package/fesm2015/taiga-ui-kit-components-avatar.js +8 -0
  589. package/fesm2015/taiga-ui-kit-components-avatar.js.map +1 -1
  590. package/fesm2015/taiga-ui-kit-components-badge.js +4 -0
  591. package/fesm2015/taiga-ui-kit-components-badge.js.map +1 -1
  592. package/fesm2015/taiga-ui-kit-components-badged-content.js +4 -0
  593. package/fesm2015/taiga-ui-kit-components-badged-content.js.map +1 -1
  594. package/fesm2015/taiga-ui-kit-components-breadcrumbs.js +4 -0
  595. package/fesm2015/taiga-ui-kit-components-breadcrumbs.js.map +1 -1
  596. package/fesm2015/taiga-ui-kit-components-calendar-month.js +4 -0
  597. package/fesm2015/taiga-ui-kit-components-calendar-month.js.map +1 -1
  598. package/fesm2015/taiga-ui-kit-components-calendar-range.js +4 -0
  599. package/fesm2015/taiga-ui-kit-components-calendar-range.js.map +1 -1
  600. package/fesm2015/taiga-ui-kit-components-carousel.js +5 -0
  601. package/fesm2015/taiga-ui-kit-components-carousel.js.map +1 -1
  602. package/fesm2015/taiga-ui-kit-components-checkbox-block.js +5 -0
  603. package/fesm2015/taiga-ui-kit-components-checkbox-block.js.map +1 -1
  604. package/fesm2015/taiga-ui-kit-components-checkbox-labeled.js +5 -0
  605. package/fesm2015/taiga-ui-kit-components-checkbox-labeled.js.map +1 -1
  606. package/fesm2015/taiga-ui-kit-components-checkbox.js +5 -0
  607. package/fesm2015/taiga-ui-kit-components-checkbox.js.map +1 -1
  608. package/fesm2015/taiga-ui-kit-components-combo-box.js +5 -0
  609. package/fesm2015/taiga-ui-kit-components-combo-box.js.map +1 -1
  610. package/fesm2015/taiga-ui-kit-components-data-list-wrapper.js +11 -4
  611. package/fesm2015/taiga-ui-kit-components-data-list-wrapper.js.map +1 -1
  612. package/fesm2015/taiga-ui-kit-components-elastic-container.js +4 -0
  613. package/fesm2015/taiga-ui-kit-components-elastic-container.js.map +1 -1
  614. package/fesm2015/taiga-ui-kit-components-files.js +8 -0
  615. package/fesm2015/taiga-ui-kit-components-files.js.map +1 -1
  616. package/fesm2015/taiga-ui-kit-components-filter.js +5 -0
  617. package/fesm2015/taiga-ui-kit-components-filter.js.map +1 -1
  618. package/fesm2015/taiga-ui-kit-components-input-copy.js +4 -0
  619. package/fesm2015/taiga-ui-kit-components-input-copy.js.map +1 -1
  620. package/fesm2015/taiga-ui-kit-components-input-count.js +21 -0
  621. package/fesm2015/taiga-ui-kit-components-input-count.js.map +1 -1
  622. package/fesm2015/taiga-ui-kit-components-input-date-multi.js +335 -0
  623. package/fesm2015/taiga-ui-kit-components-input-date-multi.js.map +1 -0
  624. package/fesm2015/taiga-ui-kit-components-input-date-range.js +4 -0
  625. package/fesm2015/taiga-ui-kit-components-input-date-range.js.map +1 -1
  626. package/fesm2015/taiga-ui-kit-components-input-date-time.js +4 -0
  627. package/fesm2015/taiga-ui-kit-components-input-date-time.js.map +1 -1
  628. package/fesm2015/taiga-ui-kit-components-input-date.js +9 -0
  629. package/fesm2015/taiga-ui-kit-components-input-date.js.map +1 -1
  630. package/fesm2015/taiga-ui-kit-components-input-files.js +15 -1
  631. package/fesm2015/taiga-ui-kit-components-input-files.js.map +1 -1
  632. package/fesm2015/taiga-ui-kit-components-input-inline.js +6 -0
  633. package/fesm2015/taiga-ui-kit-components-input-inline.js.map +1 -1
  634. package/fesm2015/taiga-ui-kit-components-input-month-range.js +4 -0
  635. package/fesm2015/taiga-ui-kit-components-input-month-range.js.map +1 -1
  636. package/fesm2015/taiga-ui-kit-components-input-month.js +4 -0
  637. package/fesm2015/taiga-ui-kit-components-input-month.js.map +1 -1
  638. package/fesm2015/taiga-ui-kit-components-input-number.js +11 -0
  639. package/fesm2015/taiga-ui-kit-components-input-number.js.map +1 -1
  640. package/fesm2015/taiga-ui-kit-components-input-password.js +9 -0
  641. package/fesm2015/taiga-ui-kit-components-input-password.js.map +1 -1
  642. package/fesm2015/taiga-ui-kit-components-input-phone-international.js +23 -0
  643. package/fesm2015/taiga-ui-kit-components-input-phone-international.js.map +1 -1
  644. package/fesm2015/taiga-ui-kit-components-input-phone.js +33 -2
  645. package/fesm2015/taiga-ui-kit-components-input-phone.js.map +1 -1
  646. package/fesm2015/taiga-ui-kit-components-input-range.js +4 -0
  647. package/fesm2015/taiga-ui-kit-components-input-range.js.map +1 -1
  648. package/fesm2015/taiga-ui-kit-components-input-slider.js +6 -0
  649. package/fesm2015/taiga-ui-kit-components-input-slider.js.map +1 -1
  650. package/fesm2015/taiga-ui-kit-components-input-tag.js +12 -1
  651. package/fesm2015/taiga-ui-kit-components-input-tag.js.map +1 -1
  652. package/fesm2015/taiga-ui-kit-components-input-time.js +9 -0
  653. package/fesm2015/taiga-ui-kit-components-input-time.js.map +1 -1
  654. package/fesm2015/taiga-ui-kit-components-input-year.js +4 -0
  655. package/fesm2015/taiga-ui-kit-components-input-year.js.map +1 -1
  656. package/fesm2015/taiga-ui-kit-components-input.js +4 -0
  657. package/fesm2015/taiga-ui-kit-components-input.js.map +1 -1
  658. package/fesm2015/taiga-ui-kit-components-island.js +4 -0
  659. package/fesm2015/taiga-ui-kit-components-island.js.map +1 -1
  660. package/fesm2015/taiga-ui-kit-components-items-with-more.js +4 -0
  661. package/fesm2015/taiga-ui-kit-components-items-with-more.js.map +1 -1
  662. package/fesm2015/taiga-ui-kit-components-line-clamp.js +8 -0
  663. package/fesm2015/taiga-ui-kit-components-line-clamp.js.map +1 -1
  664. package/fesm2015/taiga-ui-kit-components-marker-icon.js +4 -0
  665. package/fesm2015/taiga-ui-kit-components-marker-icon.js.map +1 -1
  666. package/fesm2015/taiga-ui-kit-components-multi-select-option.js +4 -0
  667. package/fesm2015/taiga-ui-kit-components-multi-select-option.js.map +1 -1
  668. package/fesm2015/taiga-ui-kit-components-multi-select.js +8 -0
  669. package/fesm2015/taiga-ui-kit-components-multi-select.js.map +1 -1
  670. package/fesm2015/taiga-ui-kit-components-pagination.js +38 -0
  671. package/fesm2015/taiga-ui-kit-components-pagination.js.map +1 -1
  672. package/fesm2015/taiga-ui-kit-components-pdf-viewer.js +7 -0
  673. package/fesm2015/taiga-ui-kit-components-pdf-viewer.js.map +1 -1
  674. package/fesm2015/taiga-ui-kit-components-progress.js +6 -0
  675. package/fesm2015/taiga-ui-kit-components-progress.js.map +1 -1
  676. package/fesm2015/taiga-ui-kit-components-prompt.js +5 -0
  677. package/fesm2015/taiga-ui-kit-components-prompt.js.map +1 -1
  678. package/fesm2015/taiga-ui-kit-components-push.js +7 -0
  679. package/fesm2015/taiga-ui-kit-components-push.js.map +1 -1
  680. package/fesm2015/taiga-ui-kit-components-radio-block.js +5 -0
  681. package/fesm2015/taiga-ui-kit-components-radio-block.js.map +1 -1
  682. package/fesm2015/taiga-ui-kit-components-radio-group.js +4 -0
  683. package/fesm2015/taiga-ui-kit-components-radio-group.js.map +1 -1
  684. package/fesm2015/taiga-ui-kit-components-radio-labeled.js +5 -0
  685. package/fesm2015/taiga-ui-kit-components-radio-labeled.js.map +1 -1
  686. package/fesm2015/taiga-ui-kit-components-radio-list.js +6 -0
  687. package/fesm2015/taiga-ui-kit-components-radio-list.js.map +1 -1
  688. package/fesm2015/taiga-ui-kit-components-radio.js +8 -0
  689. package/fesm2015/taiga-ui-kit-components-radio.js.map +1 -1
  690. package/fesm2015/taiga-ui-kit-components-range.js +9 -0
  691. package/fesm2015/taiga-ui-kit-components-range.js.map +1 -1
  692. package/fesm2015/taiga-ui-kit-components-rating.js +7 -0
  693. package/fesm2015/taiga-ui-kit-components-rating.js.map +1 -1
  694. package/fesm2015/taiga-ui-kit-components-routable-dialog.js +4 -0
  695. package/fesm2015/taiga-ui-kit-components-routable-dialog.js.map +1 -1
  696. package/fesm2015/taiga-ui-kit-components-select-option.js +11 -0
  697. package/fesm2015/taiga-ui-kit-components-select-option.js.map +1 -1
  698. package/fesm2015/taiga-ui-kit-components-select.js +7 -0
  699. package/fesm2015/taiga-ui-kit-components-select.js.map +1 -1
  700. package/fesm2015/taiga-ui-kit-components-slider.js +39 -0
  701. package/fesm2015/taiga-ui-kit-components-slider.js.map +1 -1
  702. package/fesm2015/taiga-ui-kit-components-stepper.js +6 -0
  703. package/fesm2015/taiga-ui-kit-components-stepper.js.map +1 -1
  704. package/fesm2015/taiga-ui-kit-components-tabs.js +25 -1
  705. package/fesm2015/taiga-ui-kit-components-tabs.js.map +1 -1
  706. package/fesm2015/taiga-ui-kit-components-tag.js +9 -0
  707. package/fesm2015/taiga-ui-kit-components-tag.js.map +1 -1
  708. package/fesm2015/taiga-ui-kit-components-textarea.js +13 -0
  709. package/fesm2015/taiga-ui-kit-components-textarea.js.map +1 -1
  710. package/fesm2015/taiga-ui-kit-components-tiles.js +4 -0
  711. package/fesm2015/taiga-ui-kit-components-tiles.js.map +1 -1
  712. package/fesm2015/taiga-ui-kit-components-toggle.js +9 -0
  713. package/fesm2015/taiga-ui-kit-components-toggle.js.map +1 -1
  714. package/fesm2015/taiga-ui-kit-components-tree.js +28 -0
  715. package/fesm2015/taiga-ui-kit-components-tree.js.map +1 -1
  716. package/fesm2015/taiga-ui-kit-components.js +5 -0
  717. package/fesm2015/taiga-ui-kit-components.js.map +1 -1
  718. package/fesm2015/taiga-ui-kit-constants.js +19 -0
  719. package/fesm2015/taiga-ui-kit-constants.js.map +1 -1
  720. package/fesm2015/taiga-ui-kit-directives-data-list-dropdown-manager.js +5 -0
  721. package/fesm2015/taiga-ui-kit-directives-data-list-dropdown-manager.js.map +1 -1
  722. package/fesm2015/taiga-ui-kit-directives-highlight.js +4 -0
  723. package/fesm2015/taiga-ui-kit-directives-highlight.js.map +1 -1
  724. package/fesm2015/taiga-ui-kit-directives-lazy-loading.js +4 -0
  725. package/fesm2015/taiga-ui-kit-directives-lazy-loading.js.map +1 -1
  726. package/fesm2015/taiga-ui-kit-directives-mask.js +26 -0
  727. package/fesm2015/taiga-ui-kit-directives-mask.js.map +1 -1
  728. package/fesm2015/taiga-ui-kit-directives-present.js +15 -0
  729. package/fesm2015/taiga-ui-kit-directives-present.js.map +1 -1
  730. package/fesm2015/taiga-ui-kit-directives-project-class.js +7 -0
  731. package/fesm2015/taiga-ui-kit-directives-project-class.js.map +1 -1
  732. package/fesm2015/taiga-ui-kit-directives-unfinished-validator.js +7 -1
  733. package/fesm2015/taiga-ui-kit-directives-unfinished-validator.js.map +1 -1
  734. package/fesm2015/taiga-ui-kit-directives-unmask-handler.js +4 -0
  735. package/fesm2015/taiga-ui-kit-directives-unmask-handler.js.map +1 -1
  736. package/fesm2015/taiga-ui-kit-directives-value-accessor.js +4 -0
  737. package/fesm2015/taiga-ui-kit-directives-value-accessor.js.map +1 -1
  738. package/fesm2015/taiga-ui-kit-directives.js +4 -0
  739. package/fesm2015/taiga-ui-kit-directives.js.map +1 -1
  740. package/fesm2015/taiga-ui-kit-interfaces.js +3 -1
  741. package/fesm2015/taiga-ui-kit-interfaces.js.map +1 -1
  742. package/fesm2015/taiga-ui-kit-internal-primitive-calendar-range.js +10 -0
  743. package/fesm2015/taiga-ui-kit-internal-primitive-calendar-range.js.map +1 -1
  744. package/fesm2015/taiga-ui-kit-internal.js +4 -0
  745. package/fesm2015/taiga-ui-kit-internal.js.map +1 -1
  746. package/fesm2015/taiga-ui-kit-pipes-field-error.js +4 -0
  747. package/fesm2015/taiga-ui-kit-pipes-field-error.js.map +1 -1
  748. package/fesm2015/taiga-ui-kit-pipes-filter-by-input.js +7 -0
  749. package/fesm2015/taiga-ui-kit-pipes-filter-by-input.js.map +1 -1
  750. package/fesm2015/taiga-ui-kit-pipes-iso-to-country-code.js +4 -0
  751. package/fesm2015/taiga-ui-kit-pipes-iso-to-country-code.js.map +1 -1
  752. package/fesm2015/taiga-ui-kit-pipes-sort-countries.js +4 -0
  753. package/fesm2015/taiga-ui-kit-pipes-sort-countries.js.map +1 -1
  754. package/fesm2015/taiga-ui-kit-pipes-stringify-content.js +4 -0
  755. package/fesm2015/taiga-ui-kit-pipes-stringify-content.js.map +1 -1
  756. package/fesm2015/taiga-ui-kit-pipes-stringify.js +4 -0
  757. package/fesm2015/taiga-ui-kit-pipes-stringify.js.map +1 -1
  758. package/fesm2015/taiga-ui-kit-pipes-to-country-code.js +4 -0
  759. package/fesm2015/taiga-ui-kit-pipes-to-country-code.js.map +1 -1
  760. package/fesm2015/taiga-ui-kit-pipes-to-year.js +4 -0
  761. package/fesm2015/taiga-ui-kit-pipes-to-year.js.map +1 -1
  762. package/fesm2015/taiga-ui-kit-pipes.js +4 -0
  763. package/fesm2015/taiga-ui-kit-pipes.js.map +1 -1
  764. package/fesm2015/taiga-ui-kit-providers.js +4 -0
  765. package/fesm2015/taiga-ui-kit-providers.js.map +1 -1
  766. package/fesm2015/taiga-ui-kit-services.js +4 -0
  767. package/fesm2015/taiga-ui-kit-services.js.map +1 -1
  768. package/fesm2015/taiga-ui-kit-tokens.js +35 -0
  769. package/fesm2015/taiga-ui-kit-tokens.js.map +1 -1
  770. package/fesm2015/taiga-ui-kit-types.js +3 -1
  771. package/fesm2015/taiga-ui-kit-types.js.map +1 -1
  772. package/fesm2015/taiga-ui-kit-utils-date.js +12 -0
  773. package/fesm2015/taiga-ui-kit-utils-date.js.map +1 -0
  774. package/fesm2015/taiga-ui-kit-utils-files.js +4 -0
  775. package/fesm2015/taiga-ui-kit-utils-files.js.map +1 -1
  776. package/fesm2015/taiga-ui-kit-utils-format.js +10 -0
  777. package/fesm2015/taiga-ui-kit-utils-format.js.map +1 -1
  778. package/fesm2015/taiga-ui-kit-utils-mask.js +50 -0
  779. package/fesm2015/taiga-ui-kit-utils-mask.js.map +1 -1
  780. package/fesm2015/taiga-ui-kit-utils-math.js +7 -0
  781. package/fesm2015/taiga-ui-kit-utils-math.js.map +1 -1
  782. package/fesm2015/taiga-ui-kit-utils-miscellaneous.js +10 -0
  783. package/fesm2015/taiga-ui-kit-utils-miscellaneous.js.map +1 -1
  784. package/fesm2015/taiga-ui-kit-utils-phone.js +4 -0
  785. package/fesm2015/taiga-ui-kit-utils-phone.js.map +1 -1
  786. package/fesm2015/taiga-ui-kit-utils.js +5 -0
  787. package/fesm2015/taiga-ui-kit-utils.js.map +1 -1
  788. package/fesm2015/taiga-ui-kit-validators.js +4 -0
  789. package/fesm2015/taiga-ui-kit-validators.js.map +1 -1
  790. package/fesm2015/taiga-ui-kit.js +4 -0
  791. package/fesm2015/taiga-ui-kit.js.map +1 -1
  792. package/interfaces/taiga-ui-kit-interfaces.d.ts +3 -0
  793. package/internal/primitive-calendar-range/primitive-calendar-range.component.d.ts +3 -0
  794. package/internal/primitive-calendar-range/primitive-calendar-range.module.d.ts +3 -0
  795. package/internal/primitive-calendar-range/taiga-ui-kit-internal-primitive-calendar-range.d.ts +3 -0
  796. package/internal/taiga-ui-kit-internal.d.ts +3 -0
  797. package/package.json +5 -5
  798. package/pipes/field-error/taiga-ui-kit-pipes-field-error.d.ts +3 -0
  799. package/pipes/filter-by-input/filter-by-input-with.pipe.d.ts +3 -0
  800. package/pipes/filter-by-input/filter-by-input.base.d.ts +4 -0
  801. package/pipes/filter-by-input/taiga-ui-kit-pipes-filter-by-input.d.ts +3 -0
  802. package/pipes/iso-to-country-code/taiga-ui-kit-pipes-iso-to-country-code.d.ts +3 -0
  803. package/pipes/sort-countries/taiga-ui-kit-pipes-sort-countries.d.ts +3 -0
  804. package/pipes/stringify/taiga-ui-kit-pipes-stringify.d.ts +3 -0
  805. package/pipes/stringify-content/taiga-ui-kit-pipes-stringify-content.d.ts +3 -0
  806. package/pipes/taiga-ui-kit-pipes.d.ts +3 -0
  807. package/pipes/to-country-code/taiga-ui-kit-pipes-to-country-code.d.ts +3 -0
  808. package/pipes/to-year/taiga-ui-kit-pipes-to-year.d.ts +3 -0
  809. package/providers/taiga-ui-kit-providers.d.ts +3 -0
  810. package/services/taiga-ui-kit-services.d.ts +3 -0
  811. package/taiga-ui-kit.d.ts +3 -0
  812. package/tokens/calendar-date-stream.d.ts +3 -0
  813. package/tokens/date-inputs-value-transformers.d.ts +9 -0
  814. package/tokens/input-date-options.d.ts +3 -0
  815. package/tokens/items-handlers.d.ts +3 -0
  816. package/tokens/mobile-calendar.d.ts +3 -0
  817. package/tokens/month-formatter.d.ts +3 -0
  818. package/tokens/tab-margin.d.ts +3 -0
  819. package/tokens/taiga-ui-kit-tokens.d.ts +3 -0
  820. package/tokens/validation-errors.d.ts +3 -0
  821. package/types/file-state.d.ts +3 -0
  822. package/types/key-steps.d.ts +18 -0
  823. package/types/taiga-ui-kit-types.d.ts +3 -0
  824. package/utils/date/index.d.ts +1 -0
  825. package/utils/date/package.json +10 -0
  826. package/utils/date/taiga-ui-kit-utils-date.d.ts +5 -0
  827. package/utils/date/update.d.ts +2 -0
  828. package/utils/files/taiga-ui-kit-utils-files.d.ts +3 -0
  829. package/utils/format/string-hash-to-hsl.d.ts +5 -0
  830. package/utils/format/taiga-ui-kit-utils-format.d.ts +3 -0
  831. package/utils/index.d.ts +1 -0
  832. package/utils/mask/create-auto-corrected-date-pipe.d.ts +12 -0
  833. package/utils/mask/create-auto-corrected-date-range-pipe.d.ts +16 -0
  834. package/utils/mask/create-auto-corrected-date-time-pipe.d.ts +4 -0
  835. package/utils/mask/create-auto-corrected-time-pipe.d.ts +6 -0
  836. package/utils/mask/create-date-mask.d.ts +4 -0
  837. package/utils/mask/create-date-range-mask.d.ts +4 -0
  838. package/utils/mask/create-time-mask.d.ts +4 -0
  839. package/utils/mask/taiga-ui-kit-utils-mask.d.ts +3 -0
  840. package/utils/math/horizontal-direction-to-number.d.ts +3 -0
  841. package/utils/math/taiga-ui-kit-utils-math.d.ts +3 -0
  842. package/utils/miscellaneous/get-precision.d.ts +3 -0
  843. package/utils/miscellaneous/replay-control-value-changes-factory.d.ts +3 -0
  844. package/utils/miscellaneous/taiga-ui-kit-utils-miscellaneous.d.ts +3 -0
  845. package/utils/phone/taiga-ui-kit-utils-phone.d.ts +3 -0
  846. package/utils/taiga-ui-kit-utils.d.ts +3 -0
  847. package/validators/taiga-ui-kit-validators.d.ts +3 -0
@@ -24,6 +24,17 @@ class TuiPresentDirective {
24
24
  attributeFilter: ['style', 'class'],
25
25
  });
26
26
  }
27
+ /**
28
+ * Someday animationcancel would work and mutation observer would not be needed:
29
+ * https://drafts.csswg.org/css-animations/#eventdef-animationevent-animationcancel
30
+ * It would also trigger on CSS like display: none on parent nodes which is awesome
31
+ * but currently only works in Firefox
32
+ * ___
33
+ * TODO: remove MutationObserver when we bump versions of supported browsers:
34
+ *** Safari 12+
35
+ *** Chrome 83+
36
+ * See: {@link https://caniuse.com/mdn-api_window_animationcancel_event}
37
+ */
27
38
  onAnimation(visibility) {
28
39
  this.visibility$.next(visibility);
29
40
  }
@@ -70,5 +81,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
70
81
  }]
71
82
  }] });
72
83
 
84
+ /**
85
+ * Generated bundle index. Do not edit.
86
+ */
87
+
73
88
  export { TuiPresentDirective, TuiPresentModule };
74
89
  //# sourceMappingURL=taiga-ui-kit-directives-present.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-directives-present.js","sources":["../../../projects/kit/directives/present/present.directive.ts","../../../projects/kit/directives/present/present.module.ts"],"sourcesContent":["import {\n Directive,\n ElementRef,\n HostListener,\n Inject,\n OnDestroy,\n Output,\n} from '@angular/core';\nimport {USER_AGENT} from '@ng-web-apis/common';\nimport {tuiIsFirefox} from '@taiga-ui/cdk';\nimport {BehaviorSubject} from 'rxjs';\nimport {distinctUntilChanged, skip} from 'rxjs/operators';\n\n@Directive({\n selector: '[tuiPresentChange]',\n host: {\n '[style.animation]': '\"tuiPresent 1s infinite\"',\n },\n})\nexport class TuiPresentDirective implements OnDestroy {\n private readonly visibility$ = new BehaviorSubject(false);\n\n @Output()\n readonly tuiPresentChange = this.visibility$.pipe(distinctUntilChanged(), skip(1));\n\n constructor(\n @Inject(ElementRef) {nativeElement}: ElementRef<HTMLElement>,\n @Inject(USER_AGENT) userAgent: string,\n ) {\n if (tuiIsFirefox(userAgent)) {\n return;\n }\n\n const observer = new MutationObserver(() => {\n if (\n !nativeElement.offsetParent &&\n nativeElement.offsetWidth === 0 &&\n nativeElement.offsetHeight === 0\n ) {\n this.visibility$.next(false);\n }\n });\n\n observer.observe(nativeElement, {\n attributes: true,\n attributeFilter: ['style', 'class'],\n });\n }\n\n /**\n * Someday animationcancel would work and mutation observer would not be needed:\n * https://drafts.csswg.org/css-animations/#eventdef-animationevent-animationcancel\n * It would also trigger on CSS like display: none on parent nodes which is awesome\n * but currently only works in Firefox\n * ___\n * TODO: remove MutationObserver when we bump versions of supported browsers:\n *** Safari 12+\n *** Chrome 83+\n * See: {@link https://caniuse.com/mdn-api_window_animationcancel_event}\n */\n @HostListener('animationcancel.self', ['false'])\n @HostListener('animationstart.self', ['true'])\n onAnimation(visibility: boolean): void {\n this.visibility$.next(visibility);\n }\n\n ngOnDestroy(): void {\n this.visibility$.next(false);\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiPresentDirective} from './present.directive';\n\n@NgModule({\n declarations: [TuiPresentDirective],\n exports: [TuiPresentDirective],\n})\nexport class TuiPresentModule {}\n"],"names":[],"mappings":";;;;;;;MAmBa,mBAAmB,CAAA;AAM5B,IAA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,kBAAA,EAAA,EAAA,IAAA,EAAA,EAAA,SAAA,EAAA,EAAA,sBAAA,EAAA,oBAAA,EAAA,qBAAA,EAAA,mBAAA,EAAA,EAAA,UAAA,EAAA,EAAA,iBAAA,EAAA,4BAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;4FAAnB,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAN/B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE,oBAAoB;AAC9B,oBAAA,IAAI,EAAE;AACF,wBAAA,mBAAmB,EAAE,0BAA0B;AAClD,qBAAA;AACJ,iBAAA,CAAA;;0BAQQ,MAAM;2BAAC,UAAU,CAAA;;0BACjB,MAAM;2BAAC,UAAU,CAAA;4CAJb,gBAAgB,EAAA,CAAA;sBADxB,MAAM;gBAwCP,WAAW,EAAA,CAAA;sBAFV,YAAY;uBAAC,sBAAsB,EAAE,CAAC,OAAO,CAAC,CAAA;;sBAC9C,YAAY;uBAAC,qBAAqB,EAAE,CAAC,MAAM,CAAC,CAAA;;;MCrDpC,gBAAgB,CAAA;;8GAAhB,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;+GAAhB,gBAAgB,EAAA,YAAA,EAAA,CAHV,mBAAmB,CAAA,EAAA,OAAA,EAAA,CACxB,mBAAmB,CAAA,EAAA,CAAA,CAAA;+GAEpB,gBAAgB,EAAA,CAAA,CAAA;4FAAhB,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAJ5B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACN,YAAY,EAAE,CAAC,mBAAmB,CAAC;oBACnC,OAAO,EAAE,CAAC,mBAAmB,CAAC;AACjC,iBAAA,CAAA;;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-directives-present.js","sources":["../../../projects/kit/directives/present/present.directive.ts","../../../projects/kit/directives/present/present.module.ts","../../../projects/kit/directives/present/taiga-ui-kit-directives-present.ts"],"sourcesContent":["import {\n Directive,\n ElementRef,\n HostListener,\n Inject,\n OnDestroy,\n Output,\n} from '@angular/core';\nimport {USER_AGENT} from '@ng-web-apis/common';\nimport {tuiIsFirefox} from '@taiga-ui/cdk';\nimport {BehaviorSubject} from 'rxjs';\nimport {distinctUntilChanged, skip} from 'rxjs/operators';\n\n@Directive({\n selector: '[tuiPresentChange]',\n host: {\n '[style.animation]': '\"tuiPresent 1s infinite\"',\n },\n})\nexport class TuiPresentDirective implements OnDestroy {\n private readonly visibility$ = new BehaviorSubject(false);\n\n @Output()\n readonly tuiPresentChange = this.visibility$.pipe(distinctUntilChanged(), skip(1));\n\n constructor(\n @Inject(ElementRef) {nativeElement}: ElementRef<HTMLElement>,\n @Inject(USER_AGENT) userAgent: string,\n ) {\n if (tuiIsFirefox(userAgent)) {\n return;\n }\n\n const observer = new MutationObserver(() => {\n if (\n !nativeElement.offsetParent &&\n nativeElement.offsetWidth === 0 &&\n nativeElement.offsetHeight === 0\n ) {\n this.visibility$.next(false);\n }\n });\n\n observer.observe(nativeElement, {\n attributes: true,\n attributeFilter: ['style', 'class'],\n });\n }\n\n /**\n * Someday animationcancel would work and mutation observer would not be needed:\n * https://drafts.csswg.org/css-animations/#eventdef-animationevent-animationcancel\n * It would also trigger on CSS like display: none on parent nodes which is awesome\n * but currently only works in Firefox\n * ___\n * TODO: remove MutationObserver when we bump versions of supported browsers:\n *** Safari 12+\n *** Chrome 83+\n * See: {@link https://caniuse.com/mdn-api_window_animationcancel_event}\n */\n @HostListener('animationcancel.self', ['false'])\n @HostListener('animationstart.self', ['true'])\n onAnimation(visibility: boolean): void {\n this.visibility$.next(visibility);\n }\n\n ngOnDestroy(): void {\n this.visibility$.next(false);\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiPresentDirective} from './present.directive';\n\n@NgModule({\n declarations: [TuiPresentDirective],\n exports: [TuiPresentDirective],\n})\nexport class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EAAE,CAAC,mBAAmB,CAAC;AACjC,iBAAA,CAAA;;;ACPD;;AAEG;;;;"}
@@ -1,6 +1,9 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { ElementRef, Directive, Inject, Input, NgModule } from '@angular/core';
3
3
 
4
+ /**
5
+ * A directive for projecting classes from nested children to host
6
+ */
4
7
  class TuiProjectClassDirective {
5
8
  constructor(el) {
6
9
  this.el = el;
@@ -41,5 +44,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
41
44
  }]
42
45
  }] });
43
46
 
47
+ /**
48
+ * Generated bundle index. Do not edit.
49
+ */
50
+
44
51
  export { TuiProjectClassDirective, TuiProjectClassModule };
45
52
  //# sourceMappingURL=taiga-ui-kit-directives-project-class.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-directives-project-class.js","sources":["../../../projects/kit/directives/project-class/project-class.directive.ts","../../../projects/kit/directives/project-class/project-class.module.ts"],"sourcesContent":["import {AfterViewChecked, Directive, ElementRef, Inject, Input} from '@angular/core';\n\n/**\n * A directive for projecting classes from nested children to host\n */\n@Directive({\n selector: '[tuiProjectClass]',\n})\nexport class TuiProjectClassDirective implements AfterViewChecked {\n @Input('tuiProjectClass')\n classNames: readonly string[] = [];\n\n constructor(@Inject(ElementRef) private readonly el: ElementRef<HTMLElement>) {}\n\n ngAfterViewChecked(): void {\n this.classNames.forEach(className => {\n const hostElement = this.el.nativeElement;\n\n hostElement.classList.toggle(\n className,\n !!hostElement.querySelector(`.${className}`),\n );\n });\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiProjectClassDirective} from './project-class.directive';\n\n@NgModule({\n declarations: [TuiProjectClassDirective],\n exports: [TuiProjectClassDirective],\n})\nexport class TuiProjectClassModule {}\n"],"names":[],"mappings":";;;MAQa,wBAAwB,CAAA;AAIjC,IAAA,WAAA,CAAiD,EAA2B,EAAA;QAA3B,IAAE,CAAA,EAAA,GAAF,EAAE,CAAyB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AwB,CAAA,EAAA,CAAA,CAAA;oHAEzB,qBAAqB,EAAA,CAAA,CAAA;4FAArB,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBAJjC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACN,YAAY,EAAE,CAAC,wBAAwB,CAAC;oBACxC,OAAO,EAAE,CAAC,wBAAwB,CAAC;AACtC,iBAAA,CAAA;;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-directives-project-class.js","sources":["../../../projects/kit/directives/project-class/project-class.directive.ts","../../../projects/kit/directives/project-class/project-class.module.ts","../../../projects/kit/directives/project-class/taiga-ui-kit-directives-project-class.ts"],"sourcesContent":["import {AfterViewChecked, Directive, ElementRef, Inject, Input} from '@angular/core';\n\n/**\n * A directive for projecting classes from nested children to host\n */\n@Directive({\n selector: '[tuiProjectClass]',\n})\nexport class TuiProjectClassDirective implements AfterViewChecked {\n @Input('tuiProjectClass')\n classNames: readonly string[] = [];\n\n constructor(@Inject(ElementRef) private readonly el: ElementRef<HTMLElement>) {}\n\n ngAfterViewChecked(): void {\n this.classNames.forEach(className => {\n const hostElement = this.el.nativeElement;\n\n hostElement.classList.toggle(\n className,\n !!hostElement.querySelector(`.${className}`),\n );\n });\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiProjectClassDirective} from './project-class.directive';\n\n@NgModule({\n declarations: [TuiProjectClassDirective],\n exports: [TuiProjectClassDirective],\n})\nexport class TuiProjectClassModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAEA;;AAEG;MAIU,wBAAwB,CAAA;AAIjC,IAAA,WAAA,CAAiD,EAA2B,EAAA;QAA3B,IAAE,CAAA,EAAA,GAAF,EAAE,CAAyB;QAF5E,IAAU,CAAA,UAAA,GAAsB,EAAE,CAAC;KAE6C;IAEhF,kBAAkB,GAAA;AACd,QAAA,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,SAAS,IAAG;AAChC,YAAA,MA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;oBACN,YAAY,EAAE,CAAC,wBAAwB,CAAC;oBACxC,OAAO,EAAE,CAAC,wBAAwB,CAAC;AACtC,iBAAA,CAAA;;;ACPD;;AAEG;;;;"}
@@ -5,7 +5,9 @@ import { TUI_FOCUSABLE_ITEM_ACCESSOR } from '@taiga-ui/cdk';
5
5
  import { tuiCreateUnfinishedValidator } from '@taiga-ui/kit/validators';
6
6
 
7
7
  class TuiUnfinishedValidatorDirective {
8
- constructor(injector, message) {
8
+ constructor(injector,
9
+ // eslint-disable-next-line @angular-eslint/no-attribute-decorator
10
+ message) {
9
11
  this.injector = injector;
10
12
  this.message = message;
11
13
  this.validate = tuiCreateUnfinishedValidator(() => this.injector.get(TUI_FOCUSABLE_ITEM_ACCESSOR), this.message || '');
@@ -52,5 +54,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
52
54
  }]
53
55
  }] });
54
56
 
57
+ /**
58
+ * Generated bundle index. Do not edit.
59
+ */
60
+
55
61
  export { TuiUnfinishedValidatorDirective, TuiUnfinishedValidatorModule };
56
62
  //# sourceMappingURL=taiga-ui-kit-directives-unfinished-validator.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-directives-unfinished-validator.js","sources":["../../../projects/kit/directives/unfinished-validator/unfinished-validator.directive.ts","../../../projects/kit/directives/unfinished-validator/unfinished-validator.module.ts"],"sourcesContent":["import {Attribute, Directive, Inject, Injector} from '@angular/core';\nimport {NG_VALIDATORS, Validator} from '@angular/forms';\nimport {TUI_FOCUSABLE_ITEM_ACCESSOR} from '@taiga-ui/cdk';\nimport {tuiCreateUnfinishedValidator} from '@taiga-ui/kit/validators';\n\n@Directive({\n selector: '[tuiUnfinishedValidator]',\n providers: [\n {\n provide: NG_VALIDATORS,\n useExisting: TuiUnfinishedValidatorDirective,\n multi: true,\n },\n ],\n})\nexport class TuiUnfinishedValidatorDirective implements Validator {\n readonly validate = tuiCreateUnfinishedValidator(\n () => this.injector.get(TUI_FOCUSABLE_ITEM_ACCESSOR),\n this.message || '',\n );\n\n constructor(\n @Inject(Injector)\n private readonly injector: Injector,\n // eslint-disable-next-line @angular-eslint/no-attribute-decorator\n @Attribute('tuiUnfinishedValidator')\n private readonly message: string | null,\n ) {}\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiUnfinishedValidatorDirective} from './unfinished-validator.directive';\n\n@NgModule({\n declarations: [TuiUnfinishedValidatorDirective],\n exports: [TuiUnfinishedValidatorDirective],\n})\nexport class TuiUnfinishedValidatorModule {}\n"],"names":[],"mappings":";;;;;;MAea,+BAA+B,CAAA;IAMxC,WAEqB,CAAA,QAAkB,EAGlB,OAAsB,EAAA;QAHtB,IAAQ,CAAA,QAAA,GAAR,QAAQ,CAAU;QAGlB,IAAO,CAAA,OAAA,GAAP,OAAO,CAAe;QAVlC,IAAQ,CAAA,QAAA,GAAG,4BAA4B,CAC5C,MAAM,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,2BAA2B,CAAC,EACpD,IAAI,CAAC,OAAO,IAAI,EAAE,CACrB,CAAC;KAQE;;6HAZK,+BAA+B,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAO5B,QAAQ,EAAA,EAAA,EAAA,KAAA,EAGL,wBAAwB,EAAA,SAAA,EAAA,IAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAV9B,+BAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,+BAA+B,EAR7B,QAAA,EAAA,0BAAA,EAAA,SAAA,EAAA;AACP,QAAA;AACI,YAAA,OAAO,EAAE,aAAa;AACtB,YAAA,WAAW,EAAE,+BAA+B;AAC5C,YAAA,KAAK,EAAE,IAAI;AACd,SAAA;AACJ,KAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;4FAEQ,+BAA+B,EAAA,UAAA,EAAA,CAAA;kBAV3C,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE,0BAA0B;AACpC,oBAAA,SAAS,EAAE;AACP,wBAAA;AACI,4BAAA,OAAO,EAAE,aAAa;AACtB,4BAAA,WAAW,EAAiC,+BAAA;AAC5C,4BAAA,KAAK,EAAE,IAAI;AACd,yBAAA;AACJ,qBAAA;AACJ,iBAAA,CAAA;;0BAQQ,MAAM;2BAAC,QAAQ,CAAA;;0BAGf,SAAS;2BAAC,wBAAwB,CAAA;;;MCjB9B,4BAA4B,CAAA;;0HAA5B,4BAA4B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;2HAA5B,4BAA4B,EAAA,YAAA,EAAA,CAHtB,+BAA+B,CAAA,EAAA,OAAA,EAAA,CACpC,+BAA+B,CAAA,EAAA,CAAA,CAAA;2HAEhC,4BAA4B,EAAA,CAAA,CAAA;4FAA5B,4BAA4B,EAAA,UAAA,EAAA,CAAA;kBAJxC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACN,YAAY,EAAE,CAAC,+BAA+B,CAAC;oBAC/C,OAAO,EAAE,CAAC,+BAA+B,CAAC;AAC7C,iBAAA,CAAA;;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-directives-unfinished-validator.js","sources":["../../../projects/kit/directives/unfinished-validator/unfinished-validator.directive.ts","../../../projects/kit/directives/unfinished-validator/unfinished-validator.module.ts","../../../projects/kit/directives/unfinished-validator/taiga-ui-kit-directives-unfinished-validator.ts"],"sourcesContent":["import {Attribute, Directive, Inject, Injector} from '@angular/core';\nimport {NG_VALIDATORS, Validator} from '@angular/forms';\nimport {TUI_FOCUSABLE_ITEM_ACCESSOR} from '@taiga-ui/cdk';\nimport {tuiCreateUnfinishedValidator} from '@taiga-ui/kit/validators';\n\n@Directive({\n selector: '[tuiUnfinishedValidator]',\n providers: [\n {\n provide: NG_VALIDATORS,\n useExisting: TuiUnfinishedValidatorDirective,\n multi: true,\n },\n ],\n})\nexport class TuiUnfinishedValidatorDirective implements Validator {\n readonly validate = tuiCreateUnfinishedValidator(\n () => this.injector.get(TUI_FOCUSABLE_ITEM_ACCESSOR),\n this.message || '',\n );\n\n constructor(\n @Inject(Injector)\n private readonly injector: Injector,\n // eslint-disable-next-line @angular-eslint/no-attribute-decorator\n @Attribute('tuiUnfinishedValidator')\n private readonly message: string | null,\n ) {}\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiUnfinishedValidatorDirective} from './unfinished-validator.directive';\n\n@NgModule({\n declarations: [TuiUnfinishedValidatorDirective],\n exports: [TuiUnfinishedValidatorDirective],\n})\nexport class TuiUnfinishedValidatorModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;MAea,+BAA+B,CAAA;AAMxC,IAAA,WAAA,CAEqB,QAAkB;;IAGlB,OAAsB,EAAA;QAHtB,IAAQ,CAAA,QAAA,GAAR,QAAQ,CAAU;QAGlB,IAAO,CAAA,OAAA,GAAP,OAAO,CAAe;QAVlC,IAAQ,CAAA,QAAA,GAAG,4BAA4B,CAC5C,MAAM,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,2BAA2B,CAAC,EACpD,IAAI,CAAC,OAAO,IAAI,EAAE,CACrB,CAAC;KAQE;;6HAZK,+BAA+B,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAO5B,QAAQ,EAAA,EAAA,EAAA,KAAA,EAGL,wBAAwB,EAAA,SAAA,EAAA,IAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAV9B,+BAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,+BAA+B,EAR7B,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skHandlerDirective, TuiUnmaskHandlerModule };
58
62
  //# sourceMappingURL=taiga-ui-kit-directives-unmask-handler.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-directives-unmask-handler.js","sources":["../../../projects/kit/directives/unmask-handler/unmask-handler.directive.ts","../../../projects/kit/directives/unmask-handler/unmask-handler.module.ts"],"sourcesContent":["import {Directive, Input} from '@angular/core';\nimport {MASKITO_DEFAULT_OPTIONS, MaskitoOptions, maskitoTransform} from '@maskito/core';\nimport {AbstractTuiValueTransformer, TuiMapper} from '@taiga-ui/cdk';\nimport {identity} from 'rxjs';\n\n@Directive({\n selector: '[maskito][tuiUnmaskHandler]',\n providers: [\n {\n provide: AbstractTuiValueTransformer,\n useExisting: TuiUnmaskHandlerDirective,\n },\n ],\n})\nexport class TuiUnmaskHandlerDirective extends AbstractTuiValueTransformer<string> {\n @Input()\n tuiUnmaskHandler: TuiMapper<string, string> = identity;\n\n @Input()\n maskito: MaskitoOptions | null = null;\n\n override fromControlValue(controlValue: unknown): string {\n return maskitoTransform(\n String(controlValue ?? ''),\n this.maskito || MASKITO_DEFAULT_OPTIONS,\n );\n }\n\n override toControlValue(value: string): string {\n return this.tuiUnmaskHandler(value);\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiUnmaskHandlerDirective} from './unmask-handler.directive';\n\n@NgModule({\n declarations: [TuiUnmaskHandlerDirective],\n exports: [TuiUnmaskHandlerDirective],\n})\nexport class TuiUnmaskHandlerModule {}\n"],"names":[],"mappings":";;;;;;AAcM,MAAO,yBAA0B,SAAQ,2BAAmC,CAAA;AATlF,IAAA,WAAA,GAAA;;QAWI,IAAgB,CAAA,gBAAA,GAA8B,QAAQ,CAAC;QAGvD,IAAO,CAAA,OAAA,GAA0B,IAAI,CAAC;AAYzC,KAAA;AAVY,IAAA,gBAAgB,CAAC,YAAqB,EAAA;AAC3C,QAAA,OAAO,gBAAgB,CACnB,MAAM,CAAC,YAAY,KAAA,IAAA,IAAZ,YAAY,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AAA,YAAA,EAAA,CAHhB,yBAAyB,CAAA,EAAA,OAAA,EAAA,CAC9B,yBAAyB,CAAA,EAAA,CAAA,CAAA;qHAE1B,sBAAsB,EAAA,CAAA,CAAA;4FAAtB,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBAJlC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACN,YAAY,EAAE,CAAC,yBAAyB,CAAC;oBACzC,OAAO,EAAE,CAAC,yBAAyB,CAAC;AACvC,iBAAA,CAAA;;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-directives-unmask-handler.js","sources":["../../../projects/kit/directives/unmask-handler/unmask-handler.directive.ts","../../../projects/kit/directives/unmask-handler/unmask-handler.module.ts","../../../projects/kit/directives/unmask-handler/taiga-ui-kit-directives-unmask-handler.ts"],"sourcesContent":["import {Directive, Input} from '@angular/core';\nimport {MASKITO_DEFAULT_OPTIONS, MaskitoOptions, maskitoTransform} from '@maskito/core';\nimport {AbstractTuiValueTransformer, TuiMapper} from '@taiga-ui/cdk';\nimport {identity} from 'rxjs';\n\n@Directive({\n selector: '[maskito][tuiUnmaskHandler]',\n providers: [\n {\n provide: AbstractTuiValueTransformer,\n useExisting: TuiUnmaskHandlerDirective,\n },\n ],\n})\nexport class TuiUnmaskHandlerDirective extends AbstractTuiValueTransformer<string> {\n @Input()\n tuiUnmaskHandler: TuiMapper<string, string> = identity;\n\n @Input()\n maskito: MaskitoOptions | null = null;\n\n override fromControlValue(controlValue: unknown): string {\n return maskitoTransform(\n String(controlValue ?? ''),\n this.maskito || MASKITO_DEFAULT_OPTIONS,\n );\n }\n\n override toControlValue(value: string): string {\n return this.tuiUnmaskHandler(value);\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiUnmaskHandlerDirective} from './unmask-handler.directive';\n\n@NgModule({\n declarations: [TuiUnmaskHandlerDirective],\n exports: [TuiUnmaskHandlerDirective],\n})\nexport class TuiUnmaskHandlerModule {}\n","/**\n * Generated bundle index. Do not edit.\n */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OAAO,EAAE,2BAA2B;AACpC,4BAAA,WAAW,EAA2B,yBAAA;AACzC,yBAAA;AACJ,qBAAA;AACJ,iBAAA,CAAA;8BAGG,gBAAgB,EAAA,CAAA;sBADf,KAAK;gBAIN,OAAO,EAAA,CAAA;sBADN,KAAK;;;MCVG,sBAAsB,CAAA;;oHAAtB,sBAAsB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;qHAAtB,sBAAsB,EAAA,YAAA,EAAA,CAHhB,yBAAyB,CAAA,EAAA,OAAA,EAAA,CAC9B,yBAAyB,CAAA,EAAA,CAAA,CAAA;qHAE1B,sBAAsB,EAAA,CAAA,CAAA;4FAAtB,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBAJlC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACN,YAAY,EAAE,CAAC,yBAAyB,CAAC;oBACzC,OAAO,EAAE,CAAC,yBAAyB,CAAC;AACvC,iBAAA,CAAA;;;ACPD;;AAEG;;;;"}
@@ -27,5 +27,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
27
27
  }]
28
28
  }] });
29
29
 
30
+ /**
31
+ * Generated bundle index. Do not edit.
32
+ */
33
+
30
34
  export { TuiValueAccessorDirective, TuiValueAccessorModule };
31
35
  //# sourceMappingURL=taiga-ui-kit-directives-value-accessor.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-directives-value-accessor.js","sources":["../../../projects/kit/directives/value-accessor/value-accessor.directive.ts","../../../projects/kit/directives/value-accessor/value-accessor.module.ts"],"sourcesContent":["import {Directive} from '@angular/core';\nimport {TUI_VALUE_ACCESSOR_PROVIDER} from '@taiga-ui/kit/providers';\n\n@Directive({\n selector: '[tuiValueAccessor]',\n providers: [TUI_VALUE_ACCESSOR_PROVIDER],\n})\nexport class TuiValueAccessorDirective {}\n","import {NgModule} from '@angular/core';\n\nimport {TuiValueAccessorDirective} from './value-accessor.directive';\n\n@NgModule({\n declarations: [TuiValueAccessorDirective],\n exports: [TuiValueAccessorDirective],\n})\nexport class TuiValueAccessorModule {}\n"],"names":[],"mappings":";;;;MAOa,yBAAyB,CAAA;;uHAAzB,yBAAyB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;2GAAzB,yBAAyB,EAAA,QAAA,EAAA,oBAAA,EAAA,SAAA,EAFvB,CAAC,2BAA2B,CAAC,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;4FAE/B,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBAJrC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE,oBAAoB;oBAC9B,SAAS,EAAE,CAAC,2BAA2B,CAAC;AAC3C,iBAAA,CAAA;;;MCEY,sBAAsB,CAAA;;oHAAtB,sBAAsB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;qHAAtB,sBAAsB,EAAA,YAAA,EAAA,CAHhB,yBAAyB,CAAA,EAAA,OAAA,EAAA,CAC9B,yBAAyB,CAAA,EAAA,CAAA,CAAA;qHAE1B,sBAAsB,EAAA,CAAA,CAAA;4FAAtB,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBAJlC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACN,YAAY,EAAE,CAAC,yBAAyB,CAAC;oBACzC,OAAO,EAAE,CAAC,yBAAyB,CAAC;AACvC,iBAAA,CAAA;;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-directives-value-accessor.js","sources":["../../../projects/kit/directives/value-accessor/value-accessor.directive.ts","../../../projects/kit/directives/value-accessor/value-accessor.module.ts","../../../projects/kit/directives/value-accessor/taiga-ui-kit-directives-value-accessor.ts"],"sourcesContent":["import {Directive} from '@angular/core';\nimport {TUI_VALUE_ACCESSOR_PROVIDER} from '@taiga-ui/kit/providers';\n\n@Directive({\n selector: '[tuiValueAccessor]',\n providers: [TUI_VALUE_ACCESSOR_PROVIDER],\n})\nexport class TuiValueAccessorDirective {}\n","import {NgModule} from '@angular/core';\n\nimport {TuiValueAccessorDirective} from './value-accessor.directive';\n\n@NgModule({\n declarations: [TuiValueAccessorDirective],\n exports: [TuiValueAccessorDirective],\n})\nexport class TuiValueAccessorModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAOa,yBAAyB,CAAA;;uHAAzB,yBAAyB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;2GAAzB,yBAAyB,EAAA,QAAA,EAAA,oBAAA,EAAA,SAAA,EAFvB,CAAC,2BAA2B,CAAC,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;4FAE/B,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBAJrC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE,oBAAoB;oBAC9B,SAAS,EAAE,CAAC,2BAA2B,CAAC;AAC3C,iBAAA,CAAA;;;MCEY,sBAAsB,CAAA;;oHAAtB,sBAAsB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;qHAAtB,sBAAsB,EAAA,YAAA,EAAA,CAHhB,yBAAyB,CAAA,EAAA,OAAA,EAAA,CAC9B,yBAAyB,CAAA,EAAA,CAAA,CAAA;qHAE1B,sBAAsB,EAAA,CAAA,CAAA;4FAAtB,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBAJlC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACN,YAAY,EAAE,CAAC,yBAAyB,CAAC;oBACzC,OAAO,EAAE,CAAC,yBAAyB,CAAC;AACvC,iBAAA,CAAA;;;ACPD;;AAEG;;;;"}
@@ -7,4 +7,8 @@ export * from '@taiga-ui/kit/directives/project-class';
7
7
  export * from '@taiga-ui/kit/directives/unfinished-validator';
8
8
  export * from '@taiga-ui/kit/directives/unmask-handler';
9
9
  export * from '@taiga-ui/kit/directives/value-accessor';
10
+
11
+ /**
12
+ * Generated bundle index. Do not edit.
13
+ */
10
14
  //# sourceMappingURL=taiga-ui-kit-directives.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-directives.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-directives.js","sources":["../../../projects/kit/directives/taiga-ui-kit-directives.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;AAAA;;AAEG"}
@@ -1,2 +1,4 @@
1
-
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
2
4
  //# sourceMappingURL=taiga-ui-kit-interfaces.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-interfaces.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
1
+ {"version":3,"file":"taiga-ui-kit-interfaces.js","sources":["../../../projects/kit/interfaces/taiga-ui-kit-interfaces.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"AAAA;;AAEG"}
@@ -8,6 +8,9 @@ import { TUI_CALENDAR_DATE_STREAM } from '@taiga-ui/kit/tokens';
8
8
  import { takeUntil } from 'rxjs/operators';
9
9
  import * as i3 from 'rxjs';
10
10
 
11
+ /**
12
+ * @internal
13
+ */
11
14
  class TuiPrimitiveCalendarRangeComponent {
12
15
  constructor(valueChanges, cdr, destroy$) {
13
16
  this.disabledItemHandler = ALWAYS_FALSE_HANDLER;
@@ -128,6 +131,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
128
131
  type: Output
129
132
  }] } });
130
133
 
134
+ /**
135
+ * @internal
136
+ */
131
137
  class TuiPrimitiveCalendarRangeModule {
132
138
  }
133
139
  TuiPrimitiveCalendarRangeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiPrimitiveCalendarRangeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
@@ -142,5 +148,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
142
148
  }]
143
149
  }] });
144
150
 
151
+ /**
152
+ * Generated bundle index. Do not edit.
153
+ */
154
+
145
155
  export { TuiPrimitiveCalendarRangeComponent, TuiPrimitiveCalendarRangeModule };
146
156
  //# sourceMappingURL=taiga-ui-kit-internal-primitive-calendar-range.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-internal-primitive-calendar-range.js","sources":["../../../projects/kit/internal/primitive-calendar-range/primitive-calendar-range.component.ts","../../../projects/kit/internal/primitive-calendar-range/primitive-calendar-range.template.html","../../../projects/kit/internal/primitive-calendar-range/primitive-calendar-range.module.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n EventEmitter,\n Inject,\n Input,\n OnInit,\n Optional,\n Output,\n Self,\n} from '@angular/core';\nimport {\n ALWAYS_FALSE_HANDLER,\n TUI_FIRST_DAY,\n TUI_LAST_DAY,\n TuiBooleanHandler,\n TuiDay,\n TuiDayRange,\n TuiDestroyService,\n TuiMonth,\n TuiTypedMapper,\n tuiWatch,\n} from '@taiga-ui/cdk';\nimport {TUI_DEFAULT_MARKER_HANDLER, TuiMarkerHandler} from '@taiga-ui/core';\nimport {TUI_CALENDAR_DATE_STREAM} from '@taiga-ui/kit/tokens';\nimport {Observable} from 'rxjs';\nimport {takeUntil} from 'rxjs/operators';\n\n/**\n * @internal\n */\n@Component({\n selector: 'tui-primitive-calendar-range',\n templateUrl: './primitive-calendar-range.template.html',\n styleUrls: ['./primitive-calendar-range.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [TuiDestroyService],\n})\nexport class TuiPrimitiveCalendarRangeComponent implements OnInit {\n @Input()\n disabledItemHandler: TuiBooleanHandler<TuiDay> = ALWAYS_FALSE_HANDLER;\n\n @Input()\n markerHandler: TuiMarkerHandler = TUI_DEFAULT_MARKER_HANDLER;\n\n @Input()\n defaultViewedMonthFirst = TuiMonth.currentLocal();\n\n @Input()\n defaultViewedMonthSecond = TuiMonth.currentLocal().append({month: 1});\n\n @Input()\n min = TUI_FIRST_DAY;\n\n @Input()\n max = TUI_LAST_DAY;\n\n @Input()\n value: TuiDayRange | null = null;\n\n @Output()\n readonly dayClick = new EventEmitter<TuiDay>();\n\n hoveredItem: TuiDay | null = null;\n\n userViewedMonthFirst: TuiMonth = this.defaultViewedMonthFirst;\n userViewedMonthSecond: TuiMonth = this.defaultViewedMonthSecond;\n\n constructor(\n @Inject(TUI_CALENDAR_DATE_STREAM)\n @Optional()\n valueChanges: Observable<TuiDayRange | null> | null,\n @Inject(ChangeDetectorRef) cdr: ChangeDetectorRef,\n @Self() @Inject(TuiDestroyService) destroy$: TuiDestroyService,\n ) {\n if (!valueChanges) {\n return;\n }\n\n valueChanges.pipe(tuiWatch(cdr), takeUntil(destroy$)).subscribe(value => {\n this.value = value;\n this.updateViewedMonths();\n });\n }\n\n get cappedUserViewedMonthSecond(): TuiMonth {\n return this.userViewedMonthSecond.monthBefore(this.max)\n ? this.userViewedMonthSecond\n : this.max;\n }\n\n get cappedUserViewedMonthFirst(): TuiMonth {\n return this.userViewedMonthFirst.monthSameOrBefore(this.userViewedMonthSecond)\n ? this.userViewedMonthFirst\n : this.userViewedMonthSecond;\n }\n\n monthOffset: TuiTypedMapper<[TuiMonth, number], TuiMonth> = (value, offset) =>\n value.append({month: offset});\n\n ngOnInit(): void {\n this.setInitialMonths();\n }\n\n onSectionFirstViewedMonth(month: TuiMonth): void {\n this.userViewedMonthFirst = month;\n\n this.userViewedMonthSecond = this.userViewedMonthFirst.append({month: 1});\n }\n\n onSectionSecondViewedMonth(month: TuiMonth): void {\n this.userViewedMonthSecond = month;\n\n this.userViewedMonthFirst = this.userViewedMonthSecond.append({\n month: -1,\n });\n }\n\n onDayClick(day: TuiDay): void {\n this.dayClick.emit(day);\n }\n\n private setInitialMonths(): void {\n if (!this.value) {\n this.userViewedMonthSecond = this.updatedViewedMonthSecond(\n this.defaultViewedMonthSecond,\n );\n\n this.userViewedMonthFirst = this.updatedViewedMonthFirst(\n this.defaultViewedMonthFirst,\n );\n }\n }\n\n private updatedViewedMonthSecond(month: TuiMonth): TuiMonth {\n if (month.monthSameOrAfter(this.max)) {\n return this.max;\n }\n\n if (month.monthBefore(this.min)) {\n return this.min.append({month: 1});\n }\n\n return month;\n }\n\n private updatedViewedMonthFirst(month: TuiMonth): TuiMonth {\n if (month.monthSameOrAfter(this.userViewedMonthSecond)) {\n return this.userViewedMonthSecond.append({month: -1});\n }\n\n if (month.monthSameOrBefore(this.min)) {\n return this.min;\n }\n\n return month;\n }\n\n private updateViewedMonths(): void {\n this.userViewedMonthFirst =\n this.value === null ? this.defaultViewedMonthFirst : this.value.from;\n\n this.userViewedMonthSecond = this.userViewedMonthFirst.append({month: 1});\n }\n}\n","<tui-calendar\n [disabledItemHandler]=\"disabledItemHandler\"\n [markerHandler]=\"markerHandler\"\n [max]=\"max\"\n [maxViewedMonth]=\"cappedUserViewedMonthSecond | tuiMapper: monthOffset : -1\"\n [min]=\"min\"\n [month]=\"userViewedMonthFirst\"\n [showAdjacent]=\"false\"\n [value]=\"value\"\n [(hoveredItem)]=\"hoveredItem\"\n (dayClick)=\"onDayClick($event)\"\n (monthChange)=\"onSectionFirstViewedMonth($event)\"\n></tui-calendar>\n<tui-calendar\n class=\"t-border\"\n [disabledItemHandler]=\"disabledItemHandler\"\n [markerHandler]=\"markerHandler\"\n [max]=\"max\"\n [min]=\"min\"\n [minViewedMonth]=\"cappedUserViewedMonthFirst | tuiMapper: monthOffset : 1\"\n [month]=\"userViewedMonthSecond.monthSameOrBefore(min) ? (min | tuiMapper: monthOffset : 1) : userViewedMonthSecond\"\n [showAdjacent]=\"false\"\n [value]=\"value\"\n [(hoveredItem)]=\"hoveredItem\"\n (dayClick)=\"onDayClick($event)\"\n (monthChange)=\"onSectionSecondViewedMonth($event)\"\n></tui-calendar>\n","import {NgModule} from '@angular/core';\nimport {TuiMapperPipeModule} from '@taiga-ui/cdk';\nimport {TuiCalendarModule, TuiScrollbarModule} from '@taiga-ui/core';\n\nimport {TuiPrimitiveCalendarRangeComponent} from './primitive-calendar-range.component';\n\n/**\n * @internal\n */\n@NgModule({\n imports: [TuiMapperPipeModule, TuiScrollbarModule, TuiCalendarModule],\n declarations: [TuiPrimitiveCalendarRangeComponent],\n exports: [TuiPrimitiveCalendarRangeComponent],\n})\nexport class TuiPrimitiveCalendarRangeModule {}\n"],"names":[],"mappings":";;;;;;;;;;MAuCa,kCAAkC,CAAA;AA8B3C,IAAA,WAAA,CAGI,YAAmD,EACxB,GAAsB,EACd,QAA2B,EAAA;QAjClE,IAAmB,CAAA,mBAAA,GAA8B,oBAAoB,CAAC;QAGtE,IAAa,CAAA,aAAA,GAAqB,0BAA0B,CAAC;AAG7D,QAAA,IAAA,CAAA,uBAAuB,GAAG,QAAQ,CAAC,YAAY,EAAE,CAAC;AAGlD,QAAA,IAAA,CAAA,wBAAwB,GAAG,QAAQ,CAAC,YAAY,EAAE,CAAC,MAAM,CAAC,EAAC,KAAK,EAAE,CAAC,EAAC,CAAC,CAAC;QAGtE,IAAG,CAAA,GAAA,GAAG,aAAa,CAAC;QAGpB,IAAG,CAAA,GAAA,GAAG,YAAY,CAAC;QAGnB,IAAK,CAAA,KAAA,GAAuB,IAAI,CAAC;AAGxB,QAAA,IAAA,CAAA,QAAQ,GAAG,IAAI,YAAY,EAAU,CAAC;QAE/C,IAAW,CAAA,WAAA,GAAkB,IAAI,CAAC;AAElC,Q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;;6HAA/B,+BAA+B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;8HAA/B,+BAA+B,EAAA,YAAA,EAAA,CAHzB,kCAAkC,CADvC,EAAA,OAAA,EAAA,CAAA,mBAAmB,EAAE,kBAAkB,EAAE,iBAAiB,CAAA,EAAA,OAAA,EAAA,CAE1D,kCAAkC,CAAA,EAAA,CAAA,CAAA;AAEnC,+BAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,+BAA+B,YAJ/B,CAAC,mBAAmB,EAAE,kBAAkB,EAAE,iBAAiB,CAAC,CAAA,EAAA,CAAA,CAAA;4FAI5D,+BAA+B,EAAA,UAAA,EAAA,CAAA;kBAL3C,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE,CAAC,mBAAmB,EAAE,kBAAkB,EAAE,iBAAiB,CAAC;oBACrE,YAAY,EAAE,CAAC,kCAAkC,CAAC;oBAClD,OAAO,EAAE,CAAC,kCAAkC,CAAC;AAChD,iBAAA,CAAA;;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-internal-primitive-calendar-range.js","sources":["../../../projects/kit/internal/primitive-calendar-range/primitive-calendar-range.component.ts","../../../projects/kit/internal/primitive-calendar-range/primitive-calendar-range.template.html","../../../projects/kit/internal/primitive-calendar-range/primitive-calendar-range.module.ts","../../../projects/kit/internal/primitive-calendar-range/taiga-ui-kit-internal-primitive-calendar-range.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n EventEmitter,\n Inject,\n Input,\n OnInit,\n Optional,\n Output,\n Self,\n} from '@angular/core';\nimport {\n ALWAYS_FALSE_HANDLER,\n TUI_FIRST_DAY,\n TUI_LAST_DAY,\n TuiBooleanHandler,\n TuiDay,\n TuiDayRange,\n TuiDestroyService,\n TuiMonth,\n TuiTypedMapper,\n tuiWatch,\n} from '@taiga-ui/cdk';\nimport {TUI_DEFAULT_MARKER_HANDLER, TuiMarkerHandler} from '@taiga-ui/core';\nimport {TUI_CALENDAR_DATE_STREAM} from '@taiga-ui/kit/tokens';\nimport {Observable} from 'rxjs';\nimport {takeUntil} from 'rxjs/operators';\n\n/**\n * @internal\n */\n@Component({\n selector: 'tui-primitive-calendar-range',\n templateUrl: './primitive-calendar-range.template.html',\n styleUrls: ['./primitive-calendar-range.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [TuiDestroyService],\n})\nexport class TuiPrimitiveCalendarRangeComponent implements OnInit {\n @Input()\n disabledItemHandler: TuiBooleanHandler<TuiDay> = ALWAYS_FALSE_HANDLER;\n\n @Input()\n markerHandler: TuiMarkerHandler = TUI_DEFAULT_MARKER_HANDLER;\n\n @Input()\n defaultViewedMonthFirst = TuiMonth.currentLocal();\n\n @Input()\n defaultViewedMonthSecond = TuiMonth.currentLocal().append({month: 1});\n\n @Input()\n min = TUI_FIRST_DAY;\n\n @Input()\n max = TUI_LAST_DAY;\n\n @Input()\n value: TuiDayRange | null = null;\n\n @Output()\n readonly dayClick = new EventEmitter<TuiDay>();\n\n hoveredItem: TuiDay | null = null;\n\n userViewedMonthFirst: TuiMonth = this.defaultViewedMonthFirst;\n userViewedMonthSecond: TuiMonth = this.defaultViewedMonthSecond;\n\n constructor(\n @Inject(TUI_CALENDAR_DATE_STREAM)\n @Optional()\n valueChanges: Observable<TuiDayRange | null> | null,\n @Inject(ChangeDetectorRef) cdr: ChangeDetectorRef,\n @Self() @Inject(TuiDestroyService) destroy$: TuiDestroyService,\n ) {\n if (!valueChanges) {\n return;\n }\n\n valueChanges.pipe(tuiWatch(cdr), takeUntil(destroy$)).subscribe(value => {\n this.value = value;\n this.updateViewedMonths();\n });\n }\n\n get cappedUserViewedMonthSecond(): TuiMonth {\n return this.userViewedMonthSecond.monthBefore(this.max)\n ? this.userViewedMonthSecond\n : this.max;\n }\n\n get cappedUserViewedMonthFirst(): TuiMonth {\n return this.userViewedMonthFirst.monthSameOrBefore(this.userViewedMonthSecond)\n ? this.userViewedMonthFirst\n : this.userViewedMonthSecond;\n }\n\n monthOffset: TuiTypedMapper<[TuiMonth, number], TuiMonth> = (value, offset) =>\n value.append({month: offset});\n\n ngOnInit(): void {\n this.setInitialMonths();\n }\n\n onSectionFirstViewedMonth(month: TuiMonth): void {\n this.userViewedMonthFirst = month;\n\n this.userViewedMonthSecond = this.userViewedMonthFirst.append({month: 1});\n }\n\n onSectionSecondViewedMonth(month: TuiMonth): void {\n this.userViewedMonthSecond = month;\n\n this.userViewedMonthFirst = this.userViewedMonthSecond.append({\n month: -1,\n });\n }\n\n onDayClick(day: TuiDay): void {\n this.dayClick.emit(day);\n }\n\n private setInitialMonths(): void {\n if (!this.value) {\n this.userViewedMonthSecond = this.updatedViewedMonthSecond(\n this.defaultViewedMonthSecond,\n );\n\n this.userViewedMonthFirst = this.updatedViewedMonthFirst(\n this.defaultViewedMonthFirst,\n );\n }\n }\n\n private updatedViewedMonthSecond(month: TuiMonth): TuiMonth {\n if (month.monthSameOrAfter(this.max)) {\n return this.max;\n }\n\n if (month.monthBefore(this.min)) {\n return this.min.append({month: 1});\n }\n\n return month;\n }\n\n private updatedViewedMonthFirst(month: TuiMonth): TuiMonth {\n if (month.monthSameOrAfter(this.userViewedMonthSecond)) {\n return this.userViewedMonthSecond.append({month: -1});\n }\n\n if (month.monthSameOrBefore(this.min)) {\n return this.min;\n }\n\n return month;\n }\n\n private updateViewedMonths(): void {\n this.userViewedMonthFirst =\n this.value === null ? this.defaultViewedMonthFirst : this.value.from;\n\n this.userViewedMonthSecond = this.userViewedMonthFirst.append({month: 1});\n }\n}\n","<tui-calendar\n [disabledItemHandler]=\"disabledItemHandler\"\n [markerHandler]=\"markerHandler\"\n [max]=\"max\"\n [maxViewedMonth]=\"cappedUserViewedMonthSecond | tuiMapper: monthOffset : -1\"\n [min]=\"min\"\n [month]=\"userViewedMonthFirst\"\n [showAdjacent]=\"false\"\n [value]=\"value\"\n [(hoveredItem)]=\"hoveredItem\"\n (dayClick)=\"onDayClick($event)\"\n (monthChange)=\"onSectionFirstViewedMonth($event)\"\n></tui-calendar>\n<tui-calendar\n class=\"t-border\"\n [disabledItemHandler]=\"disabledItemHandler\"\n [markerHandler]=\"markerHandler\"\n [max]=\"max\"\n [min]=\"min\"\n [minViewedMonth]=\"cappedUserViewedMonthFirst | tuiMapper: monthOffset : 1\"\n [month]=\"userViewedMonthSecond.monthSameOrBefore(min) ? (min | tuiMapper: monthOffset : 1) : userViewedMonthSecond\"\n [showAdjacent]=\"false\"\n [value]=\"value\"\n [(hoveredItem)]=\"hoveredItem\"\n (dayClick)=\"onDayClick($event)\"\n (monthChange)=\"onSectionSecondViewedMonth($event)\"\n></tui-calendar>\n","import {NgModule} from '@angular/core';\nimport {TuiMapperPipeModule} from '@taiga-ui/cdk';\nimport {TuiCalendarModule, TuiScrollbarModule} from '@taiga-ui/core';\n\nimport {TuiPrimitiveCalendarRangeComponent} from './primitive-calendar-range.component';\n\n/**\n * @internal\n */\n@NgModule({\n imports: [TuiMapperPipeModule, TuiScrollbarModule, TuiCalendarModule],\n declarations: [TuiPrimitiveCalendarRangeComponent],\n exports: [TuiPrimitiveCalendarRangeComponent],\n})\nexport class TuiPrimitiveCalendarRangeModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;AA6BA;;AAEG;MAQU,kCAAkC,CAAA;AA8B3C,IAAA,WAAA,CAGI,YAAmD,EACxB,GAAsB,EACd,QAA2B,EAAA;QAjClE,IAAmB,CAAA,mBAAA,GAA8B,oBAAoB,CAAC;QAGtE,IAAa,CAAA,aAAA,GAAqB,0BAA0B,CAAC;AAG7D,QAAA,IAAA,CAAA,uBAAuB,GAAG,QAAQ,CAAC,YAAY,EAAE,CAAC;AAG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it/internal/primitive-calendar-range';
2
+
3
+ /**
4
+ * Generated bundle index. Do not edit.
5
+ */
2
6
  //# sourceMappingURL=taiga-ui-kit-internal.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-internal.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
1
+ {"version":3,"file":"taiga-ui-kit-internal.js","sources":["../../../projects/kit/internal/taiga-ui-kit-internal.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;AAAA;;AAEG"}
@@ -180,5 +180,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
180
180
  }]
181
181
  }] });
182
182
 
183
+ /**
184
+ * Generated bundle index. Do not edit.
185
+ */
186
+
183
187
  export { TuiFieldErrorContentPipe, TuiFieldErrorPipe, TuiFieldErrorPipeModule };
184
188
  //# sourceMappingURL=taiga-ui-kit-pipes-field-error.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-pipes-field-error.js","sources":["../../../projects/kit/pipes/field-error/field-error-pipe.ts","../../../projects/kit/pipes/field-error/field-error-content-pipe.ts","../../../projects/kit/pipes/field-error/field-error.module.ts"],"sourcesContent":["import {Inject, Optional, Pipe, PipeTransform, Self, SkipSelf} from '@angular/core';\nimport {\n AbstractControl,\n ControlContainer,\n ControlValueAccessor,\n NgControl,\n} from '@angular/forms';\nimport {tuiIsString, tuiPure, TuiValidationError} from '@taiga-ui/cdk';\nimport {TUI_VALIDATION_ERRORS} from '@taiga-ui/kit/tokens';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {isObservable, Observable, of} from 'rxjs';\nimport {map} from 'rxjs/operators';\n\nconst EMPTY_RECORD = {};\n\n@Pipe({\n name: `tuiFieldError`,\n pure: false,\n})\nexport class TuiFieldErrorPipe implements PipeTransform, ControlValueAccessor {\n private order: readonly string[] = [];\n\n constructor(\n @Optional()\n @SkipSelf()\n @Inject(NgControl)\n private readonly parent: NgControl | null,\n @Optional()\n @Self()\n @Inject(NgControl)\n private readonly self: NgControl | null,\n @Optional()\n @Inject(ControlContainer)\n private readonly container: ControlContainer | null,\n @Inject(TUI_VALIDATION_ERRORS)\n private readonly validationErrors: Record<\n string,\n Observable<PolymorpheusContent> | PolymorpheusContent\n >,\n ) {\n if (this.self && !this.self.valueAccessor) {\n this.self.valueAccessor = this;\n }\n }\n\n transform(order: readonly string[]): Observable<TuiValidationError | null> {\n this.order = order;\n\n return this.computedError;\n }\n\n get computedError(): Observable<TuiValidationError | null> {\n return (this.invalid && this.touched && this.error) || of(null);\n }\n\n registerOnChange(): void {}\n\n registerOnTouched(): void {}\n\n setDisabledState(): void {}\n\n writeValue(): void {}\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 | undefined {\n return this.self?.control || this.parent?.control || this.container?.control;\n }\n\n private get errorId(): string {\n return this.getErrorId(this.order, this.controlErrors);\n }\n\n private get controlErrors(): Record<string, unknown> {\n return this.control?.errors || EMPTY_RECORD;\n }\n\n @tuiPure\n private getErrorId(\n order: readonly string[],\n controlErrors: Record<string, unknown>,\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 context: any,\n content?: Observable<PolymorpheusContent> | PolymorpheusContent,\n ): Observable<TuiValidationError> {\n if (context instanceof TuiValidationError) {\n return of(context);\n }\n\n if (content === undefined && tuiIsString(context)) {\n return of(new TuiValidationError(context));\n }\n\n if (isObservable(content)) {\n return unwrapObservable(content, context);\n }\n\n if (content instanceof Function) {\n const message = content(context) as\n | Observable<PolymorpheusContent>\n | PolymorpheusContent;\n\n return isObservable(message)\n ? unwrapObservable(message, context)\n : defaultError(message, context);\n }\n\n return defaultError(content, context);\n }\n}\n\nfunction unwrapObservable(\n content: Observable<PolymorpheusContent>,\n context: any,\n): Observable<TuiValidationError> {\n return content.pipe(map(error => new TuiValidationError(error || ``, context)));\n}\n\nfunction defaultError(\n content: PolymorpheusContent,\n context: any,\n): Observable<TuiValidationError> {\n return of(new TuiValidationError(content || ``, context));\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@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: readonly string[]): PolymorpheusContent {\n return this.getErrorContent(order);\n }\n\n ngOnDestroy(): void {\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"],"names":[],"mappings":";;;;;;;;;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,wBAAwB,CAAC;AACzD,iBAAA,CAAA;;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-pipes-field-error.js","sources":["../../../projects/kit/pipes/field-error/field-error-pipe.ts","../../../projects/kit/pipes/field-error/field-error-content-pipe.ts","../../../projects/kit/pipes/field-error/field-error.module.ts","../../../projects/kit/pipes/field-error/taiga-ui-kit-pipes-field-error.ts"],"sourcesContent":["import {Inject, Optional, Pipe, PipeTransform, Self, SkipSelf} from '@angular/core';\nimport {\n AbstractControl,\n ControlContainer,\n ControlValueAccessor,\n NgControl,\n} from '@angular/forms';\nimport {tuiIsString, tuiPure, TuiValidationError} from '@taiga-ui/cdk';\nimport {TUI_VALIDATION_ERRORS} from '@taiga-ui/kit/tokens';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {isObservable, Observable, of} from 'rxjs';\nimport {map} from 'rxjs/operators';\n\nconst EMPTY_RECORD = {};\n\n@Pipe({\n name: `tuiFieldError`,\n pure: false,\n})\nexport class TuiFieldErrorPipe implements PipeTransform, ControlValueAccessor {\n private order: readonly string[] = [];\n\n constructor(\n @Optional()\n @SkipSelf()\n @Inject(NgControl)\n private readonly parent: NgControl | null,\n @Optional()\n @Self()\n @Inject(NgControl)\n private readonly self: NgControl | null,\n @Optional()\n @Inject(ControlContainer)\n private readonly container: ControlContainer | null,\n @Inject(TUI_VALIDATION_ERRORS)\n private readonly validationErrors: Record<\n string,\n Observable<PolymorpheusContent> | PolymorpheusContent\n >,\n ) {\n if (this.self && !this.self.valueAccessor) {\n this.self.valueAccessor = this;\n }\n }\n\n transform(order: readonly string[]): Observable<TuiValidationError | null> {\n this.order = order;\n\n return this.computedError;\n }\n\n get computedError(): Observable<TuiValidationError | null> {\n return (this.invalid && this.touched && this.error) || of(null);\n }\n\n registerOnChange(): void {}\n\n registerOnTouched(): void {}\n\n setDisabledState(): void {}\n\n writeValue(): void {}\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 | undefined {\n return this.self?.control || this.parent?.control || this.container?.control;\n }\n\n private get errorId(): string {\n return this.getErrorId(this.order, this.controlErrors);\n }\n\n private get controlErrors(): Record<string, unknown> {\n return this.control?.errors || EMPTY_RECORD;\n }\n\n @tuiPure\n private getErrorId(\n order: readonly string[],\n controlErrors: Record<string, unknown>,\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 context: any,\n content?: Observable<PolymorpheusContent> | PolymorpheusContent,\n ): Observable<TuiValidationError> {\n if (context instanceof TuiValidationError) {\n return of(context);\n }\n\n if (content === undefined && tuiIsString(context)) {\n return of(new TuiValidationError(context));\n }\n\n if (isObservable(content)) {\n return unwrapObservable(content, context);\n }\n\n if (content instanceof Function) {\n const message = content(context) as\n | Observable<PolymorpheusContent>\n | PolymorpheusContent;\n\n return isObservable(message)\n ? unwrapObservable(message, context)\n : defaultError(message, context);\n }\n\n return defaultError(content, context);\n }\n}\n\nfunction unwrapObservable(\n content: Observable<PolymorpheusContent>,\n context: any,\n): Observable<TuiValidationError> {\n return content.pipe(map(error => new TuiValidationError(error || ``, context)));\n}\n\nfunction defaultError(\n content: PolymorpheusContent,\n context: any,\n): Observable<TuiValidationError> {\n return of(new TuiValidationError(content || ``, context));\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@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: readonly string[]): PolymorpheusContent {\n return this.getErrorContent(order);\n }\n\n ngOnDestroy(): void {\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":";;;;;;;;;;;AAaA,MAAM,YAAY,GAAG,EAAE,CAAC;MAMX,iBAAiB,CAAA;AAG1B,IAAA,WAAA,CAIqB,MAAwB,EAIxB,IAAsB,EAGtB,SAAkC,EAElC,gBAGhB,EAAA;QAZgB,IAAM,CAAA,MAAA,GAAN,MAAM,CAAkB;QAIxB,IAAI,CAAA,IAAA,GAAJ,IAAI,CAAkB;QAGtB,IAAS,CAAA,SAAA,GAAT,SAAS,CAAyB;QAElC,IAAgB,CAAA,gBAAA,GAAhB,gBAAgB,CAGhC;QAlBG,IAAK,CAAA,KAAA,GAAsB,EAAE,CAAC;QAoBlC,IAAI,IAAI,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE;AACvC,YAAA,IAAI,CAAC,IAAI,C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oBAAA,IAAI,EAAE,CAAsB,oBAAA,CAAA;AAC5B,oBAAA,IAAI,EAAE,KAAK;AACd,iBAAA,CAAA;;0BAUgB,MAAM;2BAAC,QAAQ,CAAA;;;MCVnB,uBAAuB,CAAA;;qHAAvB,uBAAuB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;AAAvB,uBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,uBAAuB,iBAHjB,iBAAiB,EAAE,wBAAwB,CAChD,EAAA,OAAA,EAAA,CAAA,iBAAiB,EAAE,wBAAwB,CAAA,EAAA,CAAA,CAAA;sHAE5C,uBAAuB,EAAA,CAAA,CAAA;4FAAvB,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBAJnC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,YAAY,EAAE,CAAC,iBAAiB,EAAE,wBAAwB,CAAC;AAC3D,oBAAA,OAAO,EAAE,CAAC,iBAAiB,EAAE,wBAAwB,CAAC;AACzD,iBAAA,CAAA;;;ACRD;;AAEG;;;;"}
@@ -72,6 +72,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
72
72
  args: [TuiMultiSelectDirective]
73
73
  }] }]; } });
74
74
 
75
+ /**
76
+ * @deprecated Use {@link TuiFilterByInputPipe} instead
77
+ */
75
78
  class TuiFilterByInputWithPipe extends AbstractTuiFilterByInput {
76
79
  constructor(accessor, multiSelect) {
77
80
  super();
@@ -113,5 +116,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
113
116
  }]
114
117
  }] });
115
118
 
119
+ /**
120
+ * Generated bundle index. Do not edit.
121
+ */
122
+
116
123
  export { AbstractTuiFilterByInput, TuiFilterByInputPipe, TuiFilterByInputPipeModule, TuiFilterByInputWithPipe };
117
124
  //# sourceMappingURL=taiga-ui-kit-pipes-filter-by-input.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-pipes-filter-by-input.js","sources":["../../../projects/kit/pipes/filter-by-input/filter-by-input.base.ts","../../../projects/kit/pipes/filter-by-input/filter-by-input.pipe.ts","../../../projects/kit/pipes/filter-by-input/filter-by-input-with.pipe.ts","../../../projects/kit/pipes/filter-by-input/filter-by-input.module.ts"],"sourcesContent":["import {\n TuiFocusableElementAccessor,\n tuiIsPresent,\n tuiPure,\n TuiStringHandler,\n TuiStringMatcher,\n} from '@taiga-ui/cdk';\nimport {tuiIsFlat} from '@taiga-ui/kit/utils';\n\nexport type TuiArrayElement<A> = A extends ReadonlyArray<infer T>\n ? A extends ReadonlyArray<ReadonlyArray<infer G>>\n ? G\n : T\n : never;\n\n/**\n * @deprecated: use {@link TuiArrayElement}\n * TODO: remove in v4.0\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport type ArrayElement<A> = TuiArrayElement<A>;\n\nexport abstract class AbstractTuiFilterByInput {\n protected abstract readonly accessor: TuiFocusableElementAccessor;\n protected abstract readonly multiSelect: unknown;\n\n protected get query(): string {\n return this.accessor.nativeFocusableElement\n ? (this.accessor.nativeFocusableElement as HTMLInputElement).value || ``\n : ``;\n }\n\n @tuiPure\n protected filter<T>(\n items: ReadonlyArray<readonly T[]> | readonly T[] | null,\n matcher: TuiStringMatcher<T>,\n stringify: TuiStringHandler<T>,\n query: string,\n ): ReadonlyArray<readonly T[]> | readonly T[] | null {\n if (!items) {\n return null;\n }\n\n return tuiIsFlat(items)\n ? this.filterFlat(items, matcher, stringify, query)\n : this.filter2d(items, matcher, stringify, query);\n }\n\n private filterFlat<T>(\n items: readonly T[],\n matcher: TuiStringMatcher<T>,\n stringify: TuiStringHandler<T>,\n query: string,\n ): readonly T[] {\n const match = this.getMatch(items, stringify, query);\n\n return tuiIsPresent(match) && !this.multiSelect\n ? items\n : items.filter(item => matcher(item, query, stringify));\n }\n\n private filter2d<T>(\n items: ReadonlyArray<readonly T[]>,\n matcher: TuiStringMatcher<T>,\n stringify: TuiStringHandler<T>,\n query: string,\n ): ReadonlyArray<readonly T[]> {\n const match = items.find(item =>\n tuiIsPresent(this.getMatch(item, stringify, query)),\n );\n\n return tuiIsPresent(match) && !this.multiSelect\n ? items\n : items.map(inner => this.filterFlat(inner, matcher, stringify, query));\n }\n\n private getMatch<T>(\n items: readonly T[],\n stringify: TuiStringHandler<T>,\n query: string,\n ): T | undefined {\n return items.find(\n item => stringify(item).toLocaleLowerCase() === query.toLocaleLowerCase(),\n );\n }\n}\n","import {Inject, Optional, Pipe, PipeTransform} from '@angular/core';\nimport {\n TUI_DEFAULT_MATCHER,\n TUI_DEFAULT_STRINGIFY,\n TUI_FOCUSABLE_ITEM_ACCESSOR,\n TuiFocusableElementAccessor,\n TuiStringMatcher,\n} from '@taiga-ui/cdk';\nimport {TUI_DATA_LIST_HOST, TuiDataListHost} from '@taiga-ui/core';\nimport {TuiMultiSelectDirective} from '@taiga-ui/kit/components/multi-select';\n\nimport {AbstractTuiFilterByInput, TuiArrayElement} from './filter-by-input.base';\n\n@Pipe({\n name: `tuiFilterByInput`,\n pure: false,\n})\nexport class TuiFilterByInputPipe\n extends AbstractTuiFilterByInput\n implements PipeTransform\n{\n constructor(\n @Inject(TUI_FOCUSABLE_ITEM_ACCESSOR)\n protected readonly accessor: TuiFocusableElementAccessor,\n @Inject(TUI_DATA_LIST_HOST)\n private readonly host: TuiDataListHost<unknown>,\n @Optional()\n @Inject(TuiMultiSelectDirective)\n protected readonly multiSelect: unknown,\n ) {\n super();\n }\n\n transform<T>(items: T, matcher?: TuiStringMatcher<TuiArrayElement<T>>): T;\n transform<T>(\n items: ReadonlyArray<readonly T[]> | readonly T[] | null,\n matcher: TuiStringMatcher<T> = TUI_DEFAULT_MATCHER,\n ): ReadonlyArray<readonly T[]> | readonly T[] | null {\n return this.filter(\n items,\n matcher,\n this.host.stringify || TUI_DEFAULT_STRINGIFY,\n this.query,\n );\n }\n}\n","import {Inject, Optional, Pipe, PipeTransform} from '@angular/core';\nimport {\n TUI_DEFAULT_MATCHER,\n TUI_FOCUSABLE_ITEM_ACCESSOR,\n TuiFocusableElementAccessor,\n TuiStringHandler,\n} from '@taiga-ui/cdk';\nimport {TuiMultiSelectDirective} from '@taiga-ui/kit/components/multi-select';\n\nimport {AbstractTuiFilterByInput, TuiArrayElement} from './filter-by-input.base';\n\n/**\n * @deprecated Use {@link TuiFilterByInputPipe} instead\n */\n@Pipe({\n name: `tuiFilterByInputWith`,\n pure: false,\n})\nexport class TuiFilterByInputWithPipe\n extends AbstractTuiFilterByInput\n implements PipeTransform\n{\n constructor(\n @Inject(TUI_FOCUSABLE_ITEM_ACCESSOR)\n protected readonly accessor: TuiFocusableElementAccessor,\n @Optional()\n @Inject(TuiMultiSelectDirective)\n protected readonly multiSelect: unknown,\n ) {\n super();\n }\n\n transform<T>(items: T, matcher?: TuiStringHandler<TuiArrayElement<T>>): T;\n transform<T>(\n items: ReadonlyArray<readonly T[]> | readonly T[] | null,\n stringify: TuiStringHandler<T>,\n ): ReadonlyArray<readonly T[]> | readonly T[] | null {\n return this.filter(items, TUI_DEFAULT_MATCHER, stringify, this.query);\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiFilterByInputPipe} from './filter-by-input.pipe';\nimport {TuiFilterByInputWithPipe} from './filter-by-input-with.pipe';\n\n@NgModule({\n declarations: [TuiFilterByInputPipe, TuiFilterByInputWithPipe],\n exports: [TuiFilterByInputPipe, TuiFilterByInputWithPipe],\n})\nexport class TuiFilterByInputPipeModule {}\n"],"names":[],"mappings":";;;;;;;;MAsBsB,wBAAwB,CAAA;AAI1C,IAAA,IAAc,KAAK,GAAA;AACf,QAAA,OAAO,IAAI,CAAC,QAAQ,CAAC,sBAAsB;cACpC,IAAI,CAAC,QAAQ,CAAC,sBAA2C,CAA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ElC,QAAQ;;0BACR,MAAM;2BAAC,uBAAuB,CAAA;;;MCjB1B,0BAA0B,CAAA;;wHAA1B,0BAA0B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;AAA1B,0BAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,0BAA0B,iBAHpB,oBAAoB,EAAE,wBAAwB,CACnD,EAAA,OAAA,EAAA,CAAA,oBAAoB,EAAE,wBAAwB,CAAA,EAAA,CAAA,CAAA;yHAE/C,0BAA0B,EAAA,CAAA,CAAA;4FAA1B,0BAA0B,EAAA,UAAA,EAAA,CAAA;kBAJtC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,YAAY,EAAE,CAAC,oBAAoB,EAAE,wBAAwB,CAAC;AAC9D,oBAAA,OAAO,EAAE,CAAC,oBAAoB,EAAE,wBAAwB,CAAC;AAC5D,iBAAA,CAAA;;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-pipes-filter-by-input.js","sources":["../../../projects/kit/pipes/filter-by-input/filter-by-input.base.ts","../../../projects/kit/pipes/filter-by-input/filter-by-input.pipe.ts","../../../projects/kit/pipes/filter-by-input/filter-by-input-with.pipe.ts","../../../projects/kit/pipes/filter-by-input/filter-by-input.module.ts","../../../projects/kit/pipes/filter-by-input/taiga-ui-kit-pipes-filter-by-input.ts"],"sourcesContent":["import {\n TuiFocusableElementAccessor,\n tuiIsPresent,\n tuiPure,\n TuiStringHandler,\n TuiStringMatcher,\n} from '@taiga-ui/cdk';\nimport {tuiIsFlat} from '@taiga-ui/kit/utils';\n\nexport type TuiArrayElement<A> = A extends ReadonlyArray<infer T>\n ? A extends ReadonlyArray<ReadonlyArray<infer G>>\n ? G\n : T\n : never;\n\n/**\n * @deprecated: use {@link TuiArrayElement}\n * TODO: remove in v4.0\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport type ArrayElement<A> = TuiArrayElement<A>;\n\nexport abstract class AbstractTuiFilterByInput {\n protected abstract readonly accessor: TuiFocusableElementAccessor;\n protected abstract readonly multiSelect: unknown;\n\n protected get query(): string {\n return this.accessor.nativeFocusableElement\n ? (this.accessor.nativeFocusableElement as HTMLInputElement).value || ``\n : ``;\n }\n\n @tuiPure\n protected filter<T>(\n items: ReadonlyArray<readonly T[]> | readonly T[] | null,\n matcher: TuiStringMatcher<T>,\n stringify: TuiStringHandler<T>,\n query: string,\n ): ReadonlyArray<readonly T[]> | readonly T[] | null {\n if (!items) {\n return null;\n }\n\n return tuiIsFlat(items)\n ? this.filterFlat(items, matcher, stringify, query)\n : this.filter2d(items, matcher, stringify, query);\n }\n\n private filterFlat<T>(\n items: readonly T[],\n matcher: TuiStringMatcher<T>,\n stringify: TuiStringHandler<T>,\n query: string,\n ): readonly T[] {\n const match = this.getMatch(items, stringify, query);\n\n return tuiIsPresent(match) && !this.multiSelect\n ? items\n : items.filter(item => matcher(item, query, stringify));\n }\n\n private filter2d<T>(\n items: ReadonlyArray<readonly T[]>,\n matcher: TuiStringMatcher<T>,\n stringify: TuiStringHandler<T>,\n query: string,\n ): ReadonlyArray<readonly T[]> {\n const match = items.find(item =>\n tuiIsPresent(this.getMatch(item, stringify, query)),\n );\n\n return tuiIsPresent(match) && !this.multiSelect\n ? items\n : items.map(inner => this.filterFlat(inner, matcher, stringify, query));\n }\n\n private getMatch<T>(\n items: readonly T[],\n stringify: TuiStringHandler<T>,\n query: string,\n ): T | undefined {\n return items.find(\n item => stringify(item).toLocaleLowerCase() === query.toLocaleLowerCase(),\n );\n }\n}\n","import {Inject, Optional, Pipe, PipeTransform} from '@angular/core';\nimport {\n TUI_DEFAULT_MATCHER,\n TUI_DEFAULT_STRINGIFY,\n TUI_FOCUSABLE_ITEM_ACCESSOR,\n TuiFocusableElementAccessor,\n TuiStringMatcher,\n} from '@taiga-ui/cdk';\nimport {TUI_DATA_LIST_HOST, TuiDataListHost} from '@taiga-ui/core';\nimport {TuiMultiSelectDirective} from '@taiga-ui/kit/components/multi-select';\n\nimport {AbstractTuiFilterByInput, TuiArrayElement} from './filter-by-input.base';\n\n@Pipe({\n name: `tuiFilterByInput`,\n pure: false,\n})\nexport class TuiFilterByInputPipe\n extends AbstractTuiFilterByInput\n implements PipeTransform\n{\n constructor(\n @Inject(TUI_FOCUSABLE_ITEM_ACCESSOR)\n protected readonly accessor: TuiFocusableElementAccessor,\n @Inject(TUI_DATA_LIST_HOST)\n private readonly host: TuiDataListHost<unknown>,\n @Optional()\n @Inject(TuiMultiSelectDirective)\n protected readonly multiSelect: unknown,\n ) {\n super();\n }\n\n transform<T>(items: T, matcher?: TuiStringMatcher<TuiArrayElement<T>>): T;\n transform<T>(\n items: ReadonlyArray<readonly T[]> | readonly T[] | null,\n matcher: TuiStringMatcher<T> = TUI_DEFAULT_MATCHER,\n ): ReadonlyArray<readonly T[]> | readonly T[] | null {\n return this.filter(\n items,\n matcher,\n this.host.stringify || TUI_DEFAULT_STRINGIFY,\n this.query,\n );\n }\n}\n","import {Inject, Optional, Pipe, PipeTransform} from '@angular/core';\nimport {\n TUI_DEFAULT_MATCHER,\n TUI_FOCUSABLE_ITEM_ACCESSOR,\n TuiFocusableElementAccessor,\n TuiStringHandler,\n} from '@taiga-ui/cdk';\nimport {TuiMultiSelectDirective} from '@taiga-ui/kit/components/multi-select';\n\nimport {AbstractTuiFilterByInput, TuiArrayElement} from './filter-by-input.base';\n\n/**\n * @deprecated Use {@link TuiFilterByInputPipe} instead\n */\n@Pipe({\n name: `tuiFilterByInputWith`,\n pure: false,\n})\nexport class TuiFilterByInputWithPipe\n extends AbstractTuiFilterByInput\n implements PipeTransform\n{\n constructor(\n @Inject(TUI_FOCUSABLE_ITEM_ACCESSOR)\n protected readonly accessor: TuiFocusableElementAccessor,\n @Optional()\n @Inject(TuiMultiSelectDirective)\n protected readonly multiSelect: unknown,\n ) {\n super();\n }\n\n transform<T>(items: T, matcher?: TuiStringHandler<TuiArrayElement<T>>): T;\n transform<T>(\n items: ReadonlyArray<readonly T[]> | readonly T[] | null,\n stringify: TuiStringHandler<T>,\n ): ReadonlyArray<readonly T[]> | readonly T[] | null {\n return this.filter(items, TUI_DEFAULT_MATCHER, stringify, this.query);\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiFilterByInputPipe} from './filter-by-input.pipe';\nimport {TuiFilterByInputWithPipe} from './filter-by-input-with.pipe';\n\n@NgModule({\n declarations: [TuiFilterByInputPipe, TuiFilterByInputWithPipe],\n exports: [TuiFilterByInputPipe, TuiFilterByInputWithPipe],\n})\nexport class TuiFilterByInputPipeModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;MAsBsB,wBAAwB,CAAA;AAI1C,IAAA,IAAc,KAAK,GAAA;AACf,QAAA,OAAO,IAAI,CAAC,QAAQ,CAAC,sBAAsB;cACpC,IAAI,CAAC,QAAQ,CAAC,sBAA2C,CAAC,KAAK,IAAI,CAAE,CAAA;cACtE,EAAE,CAAC;KACZ;AAGS,IAAA,MAAM,CACZ,KAAwD,EACxD,OAA4B,EAC5B,SAA8B,EAC9B,KAAa,EAAA;QAEb,IAAI,CAAC,KAAK,EAAE;AACR,YAAA,OAAO,IAAI,CAAC;AACf,SAAA;QAED,OAAO,SAAS,CAAC,KAAK,CAAC;AACnB,cAAE,IAAI,CAAC,UAAU,CAAC,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,KAAK,CAAC;AACnD,cAAE,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC;KACzD;AAEO,IAAA,UAAU,CACd,KAAmB,EACnB,OAA4B,EAC5B,SAA8B,EAC9B,KAAa,EAAA;AAEb,QAAA,MAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,CAA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Q;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,YAAY,EAAE,CAAC,oBAAoB,EAAE,wBAAwB,CAAC;AAC9D,oBAAA,OAAO,EAAE,CAAC,oBAAoB,EAAE,wBAAwB,CAAC;AAC5D,iBAAA,CAAA;;;ACRD;;AAEG;;;;"}
@@ -36,5 +36,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
36
36
  }]
37
37
  }] });
38
38
 
39
+ /**
40
+ * Generated bundle index. Do not edit.
41
+ */
42
+
39
43
  export { TuiIsoToCountryCodeModule, TuiIsoToCountryCodePipe };
40
44
  //# sourceMappingURL=taiga-ui-kit-pipes-iso-to-country-code.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-pipes-iso-to-country-code.js","sources":["../../../projects/kit/pipes/iso-to-country-code/iso-to-country-code.pipe.ts","../../../projects/kit/pipes/iso-to-country-code/iso-to-country-code.module.ts"],"sourcesContent":["import {Inject, Pipe, PipeTransform} from '@angular/core';\nimport {TuiCountryIsoCode} from '@taiga-ui/i18n';\nimport {TUI_COUNTRIES_MASKS} from '@taiga-ui/kit/tokens';\nimport {tuiIsoToCountryCode} from '@taiga-ui/kit/utils';\n\n@Pipe({\n name: `tuiIsoToCountryCode`,\n})\nexport class TuiIsoToCountryCodePipe implements PipeTransform {\n constructor(\n @Inject(TUI_COUNTRIES_MASKS)\n private readonly countriesMasks: Record<TuiCountryIsoCode, string>,\n ) {}\n\n transform(isoCode: TuiCountryIsoCode): string {\n return tuiIsoToCountryCode(this.countriesMasks, isoCode);\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiIsoToCountryCodePipe} from './iso-to-country-code.pipe';\n\n@NgModule({\n declarations: [TuiIsoToCountryCodePipe],\n exports: [TuiIsoToCountryCodePipe],\n})\nexport class TuiIsoToCountryCodeModule {}\n"],"names":[],"mappings":";;;;;MAQa,uBAAuB,CAAA;AAChC,IAAA,WAAA,CAEqB,cA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country-code.pipe.ts","../../../projects/kit/pipes/iso-to-country-code/iso-to-country-code.module.ts","../../../projects/kit/pipes/iso-to-country-code/taiga-ui-kit-pipes-iso-to-country-code.ts"],"sourcesContent":["import {Inject, Pipe, PipeTransform} from '@angular/core';\nimport {TuiCountryIsoCode} from '@taiga-ui/i18n';\nimport {TUI_COUNTRIES_MASKS} from '@taiga-ui/kit/tokens';\nimport {tuiIsoToCountryCode} from '@taiga-ui/kit/utils';\n\n@Pipe({\n name: `tuiIsoToCountryCode`,\n})\nexport class TuiIsoToCountryCodePipe implements PipeTransform {\n constructor(\n @Inject(TUI_COUNTRIES_MASKS)\n private readonly countriesMasks: Record<TuiCountryIsoCode, string>,\n ) {}\n\n transform(isoCode: TuiCountryIsoCode): string {\n return tuiIsoToCountryCode(this.countriesMasks, isoCode);\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiIsoToCountryCodePipe} from './iso-to-country-code.pipe';\n\n@NgModule({\n declarations: [TuiIsoToCountryCodePipe],\n exports: [TuiIsoToCountryCodePipe],\n})\nexport class TuiIsoToCountryCodeModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;MAQa,uBAAuB,CAAA;AAChC,IAAA,WAAA,CAEqB,cAAiD,EAAA;QAAjD,IAAc,CAAA,cAAA,GAAd,cAAc,CAAmC;KAClE;AAEJ,IAAA,SAAS,CAAC,OAA0B,EAAA;QAChC,OAAO,mBAAmB,CAAC,IAAI,CAAC,cAAc,EAAE,OAAO,CAAC,CAAC;KAC5D;;AARQ,uBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,kBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,uBAAuB,kBAEpB,mBAAmB,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA;mHAFtB,uBAAuB,EAAA,IAAA,EAAA,qBAAA,EAAA,CAAA,CAAA;4FAAvB,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBAHnC,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACF,oBAAA,IAAI,EAAE,CAAqB,mBAAA,CAAA;AAC9B,iBAAA,CAAA;;0BAGQ,MAAM;2BAAC,mBAAmB,CAAA;;;MCFtB,yBAAyB,CAAA;;uHAAzB,yBAAyB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;wHAAzB,yBAAyB,EAAA,YAAA,EAAA,CAHnB,uBAAuB,CAAA,EAAA,OAAA,EAAA,CAC5B,uBAAuB,CAAA,EAAA,CAAA,CAAA;wHAExB,yBAAyB,EAAA,CAAA,CAAA;4FAAzB,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBAJrC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACN,YAAY,EAAE,CAAC,uBAAuB,CAAC;oBACvC,OAAO,EAAE,CAAC,uBAAuB,CAAC;AACrC,iBAAA,CAAA;;;ACPD;;AAEG;;;;"}
@@ -37,5 +37,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
37
37
  }]
38
38
  }] });
39
39
 
40
+ /**
41
+ * Generated bundle index. Do not edit.
42
+ */
43
+
40
44
  export { TuiSortCountriesPipe, TuiSortCountriesPipeModule };
41
45
  //# sourceMappingURL=taiga-ui-kit-pipes-sort-countries.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-pipes-sort-countries.js","sources":["../../../projects/kit/pipes/sort-countries/sort-countries.pipe.ts","../../../projects/kit/pipes/sort-countries/sort-countries.module.ts"],"sourcesContent":["import {Inject, Pipe, PipeTransform} from '@angular/core';\nimport {TuiCountryIsoCode} from '@taiga-ui/i18n';\nimport {TUI_COUNTRIES} from '@taiga-ui/kit/tokens';\nimport {Observable} from 'rxjs';\nimport {map} from 'rxjs/operators';\n\n@Pipe({\n name: `tuiSortCountries`,\n})\nexport class TuiSortCountriesPipe implements PipeTransform {\n constructor(\n @Inject(TUI_COUNTRIES)\n private readonly countriesNames$: Observable<Record<TuiCountryIsoCode, string>>,\n ) {}\n\n transform(countries: readonly TuiCountryIsoCode[]): Observable<TuiCountryIsoCode[]> {\n return this.countriesNames$.pipe(\n map(names => [...countries].sort((a, b) => names[a].localeCompare(names[b]))),\n );\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiSortCountriesPipe} from './sort-countries.pipe';\n\n@NgModule({\n declarations: [TuiSortCountriesPipe],\n exports: [TuiSortCountriesPipe],\n})\nexport class TuiSortCountriesPipeModule {}\n"],"names":[],"mappings":";;;;;;MASa,oBAAoB,CAAA;AAC7B,IAAA,WAAA,CAEqB,eAA8D,EAAA;QAA9D,IAAe,CAAA,eAAA,GAAf,eAAe,CAA+C;KAC/E;AAEJ,IAAA,SAAS,CAAC,SAAuC,EAAA;AAC7C,QAAA,OAAO,IAAI,CAAC,eAAe,CAAC,IAAI,CAC5B,GAAG,CAAC,KAAK,IAAI,CAAC,GAAG,SAAS,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAChF,CAAC;KACL;;AAVQ,oBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,kBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,oBAAoB,kBAEjB,aAAa,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA;gHAFhB,oBAAoB,EAAA,IAAA,EAAA,kBAAA,EAAA,CAAA,CAAA;4FAApB,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAHhC,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACF,oBAAA,IAAI,EAAE,CAAkB,gBAAA,CAAA;AAC3B,iBAAA,CAAA;;0BAGQ,MAAM;2BAAC,aAAa,CAAA;;;MCHhB,0BAA0B,CAAA;;wHAA1B,0BAA0B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;yHAA1B,0BAA0B,EAAA,YAAA,EAAA,CAHpB,oBAAoB,CAAA,EAAA,OAAA,EAAA,CACzB,oBAAoB,CAAA,EAAA,CAAA,CAAA;yHAErB,0BAA0B,EAAA,CAAA,CAAA;4FAA1B,0BAA0B,EAAA,UAAA,EAAA,CAAA;kBAJtC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACN,YAAY,EAAE,CAAC,oBAAoB,CAAC;oBACpC,OAAO,EAAE,CAAC,oBAAoB,CAAC;AAClC,iBAAA,CAAA;;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-pipes-sort-countries.js","sources":["../../../projects/kit/pipes/sort-countries/sort-countries.pipe.ts","../../../projects/kit/pipes/sort-countries/sort-countries.module.ts","../../../projects/kit/pipes/sort-countries/taiga-ui-kit-pipes-sort-countries.ts"],"sourcesContent":["import {Inject, Pipe, PipeTransform} from '@angular/core';\nimport {TuiCountryIsoCode} from '@taiga-ui/i18n';\nimport {TUI_COUNTRIES} from '@taiga-ui/kit/tokens';\nimport {Observable} from 'rxjs';\nimport {map} from 'rxjs/operators';\n\n@Pipe({\n name: `tuiSortCountries`,\n})\nexport class TuiSortCountriesPipe implements PipeTransform {\n constructor(\n @Inject(TUI_COUNTRIES)\n private readonly countriesNames$: Observable<Record<TuiCountryIsoCode, string>>,\n ) {}\n\n transform(countries: readonly TuiCountryIsoCode[]): Observable<TuiCountryIsoCode[]> {\n return this.countriesNames$.pipe(\n map(names => [...countries].sort((a, b) => names[a].localeCompare(names[b]))),\n );\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiSortCountriesPipe} from './sort-countries.pipe';\n\n@NgModule({\n declarations: [TuiSortCountriesPipe],\n exports: [TuiSortCountriesPipe],\n})\nexport class TuiSortCountriesPipeModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;MASa,oBAAoB,CAAA;AAC7B,IAAA,WAAA,CAEqB,eAA8D,EAAA;QAA9D,IAAe,CAAA,eAAA,GAAf,eAAe,CAA+C;KAC/E;AAEJ,IAAA,SAAS,CAAC,SAAuC,EAAA;AAC7C,QAAA,OAAO,IAAI,CAAC,eAAe,CAAC,IAAI,CAC5B,GAAG,CAAC,KAAK,IAAI,CAAC,GAAG,SAAS,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAChF,CAAC;KACL;;AAVQ,oBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,kBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,oBAAoB,kBAEjB,aAAa,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA;gHAFhB,oBAAoB,EAAA,IAAA,EAAA,kBAAA,EAAA,CAAA,CAAA;4FAApB,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAHhC,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACF,oBAAA,IAAI,EAAE,CAAkB,gBAAA,CAAA;AAC3B,iBAAA,CAAA;;0BAGQ,MAAM;2BAAC,aAAa,CAAA;;;MCHhB,0BAA0B,CAAA;;wHAA1B,0BAA0B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;yHAA1B,0BAA0B,EAAA,YAAA,EAAA,CAHpB,oBAAoB,CAAA,EAAA,OAAA,EAAA,CACzB,oBAAoB,CAAA,EAAA,CAAA,CAAA;yHAErB,0BAA0B,EAAA,CAAA,CAAA;4FAA1B,0BAA0B,EAAA,UAAA,EAAA,CAAA;kBAJtC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACN,YAAY,EAAE,CAAC,oBAAoB,CAAC;oBACpC,OAAO,EAAE,CAAC,oBAAoB,CAAC;AAClC,iBAAA,CAAA;;;ACPD;;AAEG;;;;"}
@@ -28,5 +28,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
28
28
  }]
29
29
  }] });
30
30
 
31
+ /**
32
+ * Generated bundle index. Do not edit.
33
+ */
34
+
31
35
  export { TuiStringifyContentPipe, TuiStringifyContentPipeModule };
32
36
  //# sourceMappingURL=taiga-ui-kit-pipes-stringify-content.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-pipes-stringify-content.js","sources":["../../../projects/kit/pipes/stringify-content/stringify-content.pipe.ts","../../../projects/kit/pipes/stringify-content/stringify-content.module.ts"],"sourcesContent":["import {Pipe, PipeTransform} from '@angular/core';\nimport {TuiStringHandler} from '@taiga-ui/cdk';\nimport {TuiValueContentContext} from '@taiga-ui/core';\n\n@Pipe({\n name: `tuiStringifyContent`,\n})\nexport class TuiStringifyContentPipe implements PipeTransform {\n transform<T>(\n stringify: TuiStringHandler<T>,\n ): TuiStringHandler<TuiValueContentContext<T>> {\n return ({$implicit}) => stringify($implicit);\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiStringifyContentPipe} from './stringify-content.pipe';\n\n@NgModule({\n declarations: [TuiStringifyContentPipe],\n exports: [TuiStringifyContentPipe],\n})\nexport class TuiStringifyContentPipeModule {}\n"],"names":[],"mappings":";;;MAOa,uBAAuB,CAAA;AAChC,IAAA,SAAS,CACL,SAA8B,EAAA;QAE9B,OAAO,CAAC,EAAC,SAAS,EAAC,KAAK,SAAS,CAAC,SAAS,CAAC,CAAC;KAChD;;qHALQ,uBAAuB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA;mHAAvB,uBAAuB,EAAA,IAAA,EAAA,qBAAA,EAAA,CAAA,CAAA;4FAAvB,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBAHnC,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACF,oBAAA,IAAI,EAAE,CAAqB,mBAAA,CAAA;AAC9B,iBAAA,CAAA;;;MCEY,6BAA6B,CAAA;;2HAA7B,6BAA6B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;4HAA7B,6BAA6B,EAAA,YAAA,EAAA,CAHvB,uBAAuB,CAAA,EAAA,OAAA,EAAA,CAC5B,uBAAuB,CAAA,EAAA,CAAA,CAAA;4HAExB,6BAA6B,EAAA,CAAA,CAAA;4FAA7B,6BAA6B,EAAA,UAAA,EAAA,CAAA;kBAJzC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACN,YAAY,EAAE,CAAC,uBAAuB,CAAC;oBACvC,OAAO,EAAE,CAAC,uBAAuB,CAAC;AACrC,iBAAA,CAAA;;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-pipes-stringify-content.js","sources":["../../../projects/kit/pipes/stringify-content/stringify-content.pipe.ts","../../../projects/kit/pipes/stringify-content/stringify-content.module.ts","../../../projects/kit/pipes/stringify-content/taiga-ui-kit-pipes-stringify-content.ts"],"sourcesContent":["import {Pipe, PipeTransform} from '@angular/core';\nimport {TuiStringHandler} from '@taiga-ui/cdk';\nimport {TuiValueContentContext} from '@taiga-ui/core';\n\n@Pipe({\n name: `tuiStringifyContent`,\n})\nexport class TuiStringifyContentPipe implements PipeTransform {\n transform<T>(\n stringify: TuiStringHandler<T>,\n ): TuiStringHandler<TuiValueContentContext<T>> {\n return ({$implicit}) => stringify($implicit);\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiStringifyContentPipe} from './stringify-content.pipe';\n\n@NgModule({\n declarations: [TuiStringifyContentPipe],\n exports: [TuiStringifyContentPipe],\n})\nexport class TuiStringifyContentPipeModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MAOa,uBAAuB,CAAA;AAChC,IAAA,SAAS,CACL,SAA8B,EAAA;QAE9B,OAAO,CAAC,EAAC,SAAS,EAAC,KAAK,SAAS,CAAC,SAAS,CAAC,CAAC;KAChD;;qHALQ,uBAAuB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA;mHAAvB,uBAAuB,EAAA,IAAA,EAAA,qBAAA,EAAA,CAAA,CAAA;4FAAvB,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBAHnC,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACF,oBAAA,IAAI,EAAE,CAAqB,mBAAA,CAAA;AAC9B,iBAAA,CAAA;;;MCEY,6BAA6B,CAAA;;2HAA7B,6BAA6B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;4HAA7B,6BAA6B,EAAA,YAAA,EAAA,CAHvB,uBAAuB,CAAA,EAAA,OAAA,EAAA,CAC5B,uBAAuB,CAAA,EAAA,CAAA,CAAA;4HAExB,6BAA6B,EAAA,CAAA,CAAA;4FAA7B,6BAA6B,EAAA,UAAA,EAAA,CAAA;kBAJzC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACN,YAAY,EAAE,CAAC,uBAAuB,CAAC;oBACvC,OAAO,EAAE,CAAC,uBAAuB,CAAC;AACrC,iBAAA,CAAA;;;ACPD;;AAEG;;;;"}
@@ -28,5 +28,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
28
28
  }]
29
29
  }] });
30
30
 
31
+ /**
32
+ * Generated bundle index. Do not edit.
33
+ */
34
+
31
35
  export { TuiStringifyPipe, TuiStringifyPipeModule };
32
36
  //# sourceMappingURL=taiga-ui-kit-pipes-stringify.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-pipes-stringify.js","sources":["../../../projects/kit/pipes/stringify/stringify.pipe.ts","../../../projects/kit/pipes/stringify/stringify.module.ts"],"sourcesContent":["import {Pipe, PipeTransform} from '@angular/core';\nimport {TuiStringHandler} from '@taiga-ui/cdk';\n\n@Pipe({\n name: `tuiStringify`,\n})\nexport class TuiStringifyPipe implements PipeTransform {\n transform<K extends string>(\n key: K,\n ): TuiStringHandler<Readonly<Record<any, any> & Record<K, unknown>>> {\n return value => String(value[key] ?? ``);\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiStringifyPipe} from './stringify.pipe';\n\n@NgModule({\n declarations: [TuiStringifyPipe],\n exports: [TuiStringifyPipe],\n})\nexport class TuiStringifyPipeModule {}\n"],"names":[],"mappings":";;;MAMa,gBAAgB,CAAA;AACzB,IAAA,SAAS,CACL,GAAM,EAAA;AAEN,QAAA,OAAO,KAAK,IAAI,EAAA,IAAA,EAAA,CAAA,CAAA,OAAA,MAAM,CAAC,CAAA,EAAA,GAAA,KAAK,CAAC,GAAG,CAAC,MAAA,IAAA,IAAA,EAAA,KAAA,KAAA,CAAA,GAAA,EAAA,GAAI,EAAE,CAAC,CAAA,EAAA,CAAC;KAC5C;;8GALQ,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA;4GAAhB,gBAAgB,EAAA,IAAA,EAAA,cAAA,EAAA,CAAA,CAAA;4FAAhB,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAH5B,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACF,oBAAA,IAAI,EAAE,CAAc,YAAA,CAAA;AACvB,iBAAA,CAAA;;;MCGY,sBAAsB,CAAA;;oHAAtB,sBAAsB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;qHAAtB,sBAAsB,EAAA,YAAA,EAAA,CAHhB,gBAAgB,CAAA,EAAA,OAAA,EAAA,CACrB,gBAAgB,CAAA,EAAA,CAAA,CAAA;qHAEjB,sBAAsB,EAAA,CAAA,CAAA;4FAAtB,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBAJlC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACN,YAAY,EAAE,CAAC,gBAAgB,CAAC;oBAChC,OAAO,EAAE,CAAC,gBAAgB,CAAC;AAC9B,iBAAA,CAAA;;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-pipes-stringify.js","sources":["../../../projects/kit/pipes/stringify/stringify.pipe.ts","../../../projects/kit/pipes/stringify/stringify.module.ts","../../../projects/kit/pipes/stringify/taiga-ui-kit-pipes-stringify.ts"],"sourcesContent":["import {Pipe, PipeTransform} from '@angular/core';\nimport {TuiStringHandler} from '@taiga-ui/cdk';\n\n@Pipe({\n name: `tuiStringify`,\n})\nexport class TuiStringifyPipe implements PipeTransform {\n transform<K extends string>(\n key: K,\n ): TuiStringHandler<Readonly<Record<any, any> & Record<K, unknown>>> {\n return value => String(value[key] ?? ``);\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiStringifyPipe} from './stringify.pipe';\n\n@NgModule({\n declarations: [TuiStringifyPipe],\n exports: [TuiStringifyPipe],\n})\nexport class TuiStringifyPipeModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MAMa,gBAAgB,CAAA;AACzB,IAAA,SAAS,CACL,GAAM,EAAA;AAEN,QAAA,OAAO,KAAK,IAAI,EAAA,IAAA,EAAA,CAAA,CAAA,OAAA,MAAM,CAAC,CAAA,EAAA,GAAA,KAAK,CAAC,GAAG,CAAC,MAAA,IAAA,IAAA,EAAA,KAAA,KAAA,CAAA,GAAA,EAAA,GAAI,EAAE,CAAC,CAAA,EAAA,CAAC;KAC5C;;8GALQ,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA;4GAAhB,gBAAgB,EAAA,IAAA,EAAA,cAAA,EAAA,CAAA,CAAA;4FAAhB,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAH5B,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACF,oBAAA,IAAI,EAAE,CAAc,YAAA,CAAA;AACvB,iBAAA,CAAA;;;MCGY,sBAAsB,CAAA;;oHAAtB,sBAAsB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;qHAAtB,sBAAsB,EAAA,YAAA,EAAA,CAHhB,gBAAgB,CAAA,EAAA,OAAA,EAAA,CACrB,gBAAgB,CAAA,EAAA,CAAA,CAAA;qHAEjB,sBAAsB,EAAA,CAAA,CAAA;4FAAtB,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBAJlC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACN,YAAY,EAAE,CAAC,gBAAgB,CAAC;oBAChC,OAAO,EAAE,CAAC,gBAAgB,CAAC;AAC9B,iBAAA,CAAA;;;ACPD;;AAEG;;;;"}
@@ -59,5 +59,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
59
59
  }]
60
60
  }] });
61
61
 
62
+ /**
63
+ * Generated bundle index. Do not edit.
64
+ */
65
+
62
66
  export { TuiExtractCountryCodeModule, TuiToCountryCodePipe };
63
67
  //# sourceMappingURL=taiga-ui-kit-pipes-to-country-code.js.map