@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
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-island.js","sources":["../../../projects/kit/components/island/island.component.ts","../../../projects/kit/components/island/island.template.html","../../../projects/kit/components/island/island.module.ts"],"sourcesContent":["import {ChangeDetectionStrategy, Component, HostBinding, Input} from '@angular/core';\nimport {TuiSizeL, TuiSizeS} from '@taiga-ui/core';\n\n@Component({\n selector: 'tui-island, a[tuiIsland]',\n changeDetection: ChangeDetectionStrategy.OnPush,\n templateUrl: './island.template.html',\n styleUrls: ['./island.style.less'],\n host: {\n class: 'tui-island',\n },\n})\nexport class TuiIslandComponent {\n @Input()\n size: TuiSizeL | TuiSizeS = 'm';\n\n @Input()\n textAlign: 'center' | 'left' | 'right' = 'left';\n\n @Input()\n @HostBinding('class.tui-island_hoverable')\n hoverable = false;\n\n @Input()\n @HostBinding('class.tui-island_transparent')\n transparent = false;\n\n @HostBinding('class.tui-island_size_s')\n get sizeS(): boolean {\n return this.size === 's';\n }\n\n @HostBinding('class.tui-island_size_m')\n get sizeM(): boolean {\n return this.size === 'm';\n }\n\n @HostBinding('class.tui-island_size_l')\n get sizeL(): boolean {\n return this.size === 'l';\n }\n\n @HostBinding('class.tui-island_text-align_left')\n get textAlignLeft(): boolean {\n return this.textAlign === 'left';\n }\n\n @HostBinding('class.tui-island_text-align_center')\n get textAlignCenter(): boolean {\n return this.textAlign === 'center';\n }\n\n @HostBinding('class.tui-island_text-align_right')\n get textAlignRight(): boolean {\n return this.textAlign === 'right';\n }\n}\n","<ng-content></ng-content>\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\n\nimport {TuiIslandComponent} from './island.component';\n\n@NgModule({\n imports: [CommonModule],\n declarations: [TuiIslandComponent],\n exports: [TuiIslandComponent],\n})\nexport class TuiIslandModule {}\n"],"names":[],"mappings":";;;;MAYa,kBAAkB,CAAA;AAT/B,IAAA,WAAA,GAAA;QAWI,IAAI,CAAA,IAAA,GAAwB,GAAG,CAAC;QAGhC,IAAS,CAAA,SAAA,GAAgC,MAAM,CAAC;QAIhD,IAAS,CAAA,SAAA,GAAG,KAAK,CAAC;QAIlB,IAAW,CAAA,WAAA,GAAG,KAAK,CAAC;AA+BvB,KAAA;AA7BG,IAAA,IACI,KAAK,GAAA;AACL,QAAA,OAAO,IAAI,CAAC,IAAI,KAAK,GAAG,CAAC;KAC5B;AAED,IAAA,IACI,KAAK,GAAA;AACL,QAAA,OAAO,IAAI,CAAC,IAAI,KAAK,GAAG,CAAC;KAC5B;AAED,IAAA,IACI,KAAK,GAAA;AACL,QAAA,OAAO,IAAI,CAAC,IAAI,KAAK,GAAG,CAAC;KAC5B;AAED,IAAA,IACI,aAAa,GAAA;AACb,QAAA,OAAO,IAAI,CAAC,SAAS,KAAK,MAAM,CAAC;KACpC;AAED,IAAA,IACI,eAAe,GAAA;AACf,QAAA,OAAO,IAAI,CAAC,SAAS,KAAK,QAAQ,CAAC;KACtC;AAED,IAAA,IACI,cAAc,GAAA;AACd,QAAA,OAAO,IAAI,CAAC,SAAS,KAAK,OAAO,CAAC;KACrC;;gHA3CQ,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,C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MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;AAAf,eAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,eAAe,EAHT,YAAA,EAAA,CAAA,kBAAkB,CADvB,EAAA,OAAA,EAAA,CAAA,YAAY,aAEZ,kBAAkB,CAAA,EAAA,CAAA,CAAA;8GAEnB,eAAe,EAAA,OAAA,EAAA,CAJf,CAAC,YAAY,CAAC,CAAA,EAAA,CAAA,CAAA;4FAId,eAAe,EAAA,UAAA,EAAA,CAAA;kBAL3B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACN,OAAO,EAAE,CAAC,YAAY,CAAC;oBACvB,YAAY,EAAE,CAAC,kBAAkB,CAAC;oBAClC,OAAO,EAAE,CAAC,kBAAkB,CAAC;AAChC,iBAAA,CAAA;;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-island.js","sources":["../../../projects/kit/components/island/island.component.ts","../../../projects/kit/components/island/island.template.html","../../../projects/kit/components/island/island.module.ts","../../../projects/kit/components/island/taiga-ui-kit-components-island.ts"],"sourcesContent":["import {ChangeDetectionStrategy, Component, HostBinding, Input} from '@angular/core';\nimport {TuiSizeL, TuiSizeS} from '@taiga-ui/core';\n\n@Component({\n selector: 'tui-island, a[tuiIsland]',\n changeDetection: ChangeDetectionStrategy.OnPush,\n templateUrl: './island.template.html',\n styleUrls: ['./island.style.less'],\n host: {\n class: 'tui-island',\n },\n})\nexport class TuiIslandComponent {\n @Input()\n size: TuiSizeL | TuiSizeS = 'm';\n\n @Input()\n textAlign: 'center' | 'left' | 'right' = 'left';\n\n @Input()\n @HostBinding('class.tui-island_hoverable')\n hoverable = false;\n\n @Input()\n @HostBinding('class.tui-island_transparent')\n transparent = false;\n\n @HostBinding('class.tui-island_size_s')\n get sizeS(): boolean {\n return this.size === 's';\n }\n\n @HostBinding('class.tui-island_size_m')\n get sizeM(): boolean {\n return this.size === 'm';\n }\n\n @HostBinding('class.tui-island_size_l')\n get sizeL(): boolean {\n return this.size === 'l';\n }\n\n @HostBinding('class.tui-island_text-align_left')\n get textAlignLeft(): boolean {\n return this.textAlign === 'left';\n }\n\n @HostBinding('class.tui-island_text-align_center')\n get textAlignCenter(): boolean {\n return this.textAlign === 'center';\n }\n\n @HostBinding('class.tui-island_text-align_right')\n get textAlignRight(): boolean {\n return this.textAlign === 'right';\n }\n}\n","<ng-content></ng-content>\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\n\nimport {TuiIslandComponent} from './island.component';\n\n@NgModule({\n imports: [CommonModule],\n declarations: [TuiIslandComponent],\n exports: [TuiIslandComponent],\n})\nexport class TuiIslandModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAYa,kBAAkB,CAAA;AAT/B,IAAA,WAAA,GAAA;QAWI,IAAI,CAAA,IAAA,GAAwB,GAAG,CAAC;QAGhC,IAAS,CAAA,SAAA,GAAgC,MAAM,CAAC;QAIhD,IAAS,CAAA,SAAA,GAAG,KAAK,CAAC;QAIlB,IAAW,CAAA,WAAA,GAAG,KAAK,CAAC;AA+BvB,KAAA;AA7BG,IAAA,IACI,KAAK,GAAA;AACL,QAAA,OAAO,IAAI,CAAC,IAAI,KAAK,GAAG,CAAC;KAC5B;AAED,IAAA,IACI,KAAK,GAAA;AACL,QAAA,OAAO,IAAI,CAAC,IAAI,KAAK,GAAG,CAAC;KAC5B;AAED,IAAA,IACI,KAAK,GAAA;AACL,QAAA,OAAO,IAAI,CAAC,IAAI,KAAK,GAAG,CAAC;KAC5B;AAED,IAAA,IACI,aAAa,GAAA;AACb,QAAA,OAAO,IAAI,CAAC,SAAS,KAAK,MAAM,CAAC;KACpC;AAED,IAAA,IACI,eAAe,GAAA;AACf,QAAA,OAAO,IAAI,CAAC,SAAS,KAA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;uBAAC,kCAAkC,CAAA;gBAM3C,eAAe,EAAA,CAAA;sBADlB,WAAW;uBAAC,oCAAoC,CAAA;gBAM7C,cAAc,EAAA,CAAA;sBADjB,WAAW;uBAAC,mCAAmC,CAAA;;;ME1CvC,eAAe,CAAA;;6GAAf,eAAe,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;AAAf,eAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,eAAe,EAHT,YAAA,EAAA,CAAA,kBAAkB,CADvB,EAAA,OAAA,EAAA,CAAA,YAAY,aAEZ,kBAAkB,CAAA,EAAA,CAAA,CAAA;8GAEnB,eAAe,EAAA,OAAA,EAAA,CAJf,CAAC,YAAY,CAAC,CAAA,EAAA,CAAA,CAAA;4FAId,eAAe,EAAA,UAAA,EAAA,CAAA;kBAL3B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACN,OAAO,EAAE,CAAC,YAAY,CAAC;oBACvB,YAAY,EAAE,CAAC,kBAAkB,CAAC;oBAClC,OAAO,EAAE,CAAC,kBAAkB,CAAC;AAChC,iBAAA,CAAA;;;ACTD;;AAEG;;;;"}
@@ -188,5 +188,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
188
188
  }]
189
189
  }] });
190
190
 
191
+ /**
192
+ * Generated bundle index. Do not edit.
193
+ */
194
+
191
195
  export { TuiItemsWithMoreComponent, TuiItemsWithMoreDirective, TuiItemsWithMoreModule, TuiItemsWithMoreService, TuiMoreDirective };
192
196
  //# sourceMappingURL=taiga-ui-kit-components-items-with-more.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-items-with-more.js","sources":["../../../projects/kit/components/items-with-more/items-with-more.directive.ts","../../../projects/kit/components/items-with-more/items-with-more.service.ts","../../../projects/kit/components/items-with-more/more.directive.ts","../../../projects/kit/components/items-with-more/items-with-more.component.ts","../../../projects/kit/components/items-with-more/items-with-more.template.html","../../../projects/kit/components/items-with-more/items-with-more.module.ts"],"sourcesContent":["import {Directive, Input} from '@angular/core';\nimport {AbstractTuiController} from '@taiga-ui/cdk';\n\n@Directive({\n selector: 'tui-items-with-more',\n})\nexport class TuiItemsWithMoreDirective extends AbstractTuiController {\n @Input()\n itemsLimit = Infinity;\n\n @Input()\n required = -1;\n}\n","import {ElementRef, Inject, Injectable, NgZone} from '@angular/core';\nimport {MutationObserverService} from '@ng-web-apis/mutation-observer';\nimport {tuiClamp, TuiResizeService, tuiZoneOptimized} from '@taiga-ui/cdk';\nimport {merge, Observable} from 'rxjs';\nimport {distinctUntilChanged, map, share, throttleTime} from 'rxjs/operators';\n\nimport {TuiItemsWithMoreDirective} from './items-with-more.directive';\n\n@Injectable()\nexport class TuiItemsWithMoreService extends Observable<number> {\n readonly stream$ = merge(this.directive.change$, this.mutation$, this.resize$).pipe(\n throttleTime(0),\n map(() => this.getOverflowIndex()),\n distinctUntilChanged(),\n tuiZoneOptimized(this.zone),\n share(),\n );\n\n constructor(\n @Inject(NgZone) private readonly zone: NgZone,\n @Inject(ElementRef) private readonly el: ElementRef<HTMLElement>,\n @Inject(MutationObserverService) private readonly mutation$: Observable<unknown>,\n @Inject(TuiResizeService) private readonly resize$: Observable<unknown>,\n @Inject(TuiItemsWithMoreDirective)\n private readonly directive: TuiItemsWithMoreDirective,\n ) {\n super(subscriber => this.stream$.subscribe(subscriber));\n }\n\n private getOverflowIndex(): number {\n const {clientWidth, children} = this.el.nativeElement;\n const items = Array.from(children, ({clientWidth}) => clientWidth);\n const first = this.directive.required === -1 ? 0 : this.directive.required;\n const last = items.length - 1;\n const more = children[last]?.tagName === `SPAN` ? items[last] : 0;\n\n items.unshift(...items.splice(first, 1));\n\n let total = items.reduce((sum, width) => sum + width, 0) - more;\n\n if (total <= clientWidth && this.directive.itemsLimit >= items.length) {\n return this.maxItems;\n }\n\n for (let i = last - 1; i > 0; i--) {\n total -= items[i];\n\n if (total + more <= clientWidth) {\n return tuiClamp(\n i > this.directive.required ? i - 1 : i - 2,\n -1,\n this.maxItems,\n );\n }\n }\n\n return -1;\n }\n\n private get maxItems(): number {\n return this.directive.itemsLimit > this.directive.required\n ? this.directive.itemsLimit - 1\n : this.directive.itemsLimit - 2;\n }\n}\n","import {Directive} from '@angular/core';\nimport {TuiContextWithImplicit} from '@taiga-ui/cdk';\n\n@Directive({\n selector: '[tuiMore]',\n})\nexport class TuiMoreDirective {\n static ngTemplateContextGuard(\n _dir: TuiMoreDirective,\n _ctx: unknown,\n ): _ctx is TuiContextWithImplicit<number> {\n return true;\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n ContentChild,\n ContentChildren,\n Inject,\n QueryList,\n TemplateRef,\n} from '@angular/core';\nimport {\n MUTATION_OBSERVER_INIT,\n MutationObserverService,\n} from '@ng-web-apis/mutation-observer';\nimport {\n EMPTY_QUERY,\n TuiContextWithImplicit,\n TuiDestroyService,\n TuiItemDirective,\n TuiResizeService,\n} from '@taiga-ui/cdk';\nimport {Observable} from 'rxjs';\n\nimport {TuiItemsWithMoreDirective} from './items-with-more.directive';\nimport {TuiItemsWithMoreService} from './items-with-more.service';\nimport {TuiMoreDirective} from './more.directive';\n\n@Component({\n selector: 'tui-items-with-more',\n templateUrl: './items-with-more.template.html',\n styleUrls: ['./items-with-more.style.less'],\n providers: [\n MutationObserverService,\n TuiResizeService,\n TuiDestroyService,\n TuiItemsWithMoreService,\n {\n provide: MUTATION_OBSERVER_INIT,\n useValue: {\n childList: true,\n characterData: true,\n subtree: true,\n },\n },\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TuiItemsWithMoreComponent {\n @ContentChildren(TuiItemDirective, {read: TemplateRef, descendants: true})\n readonly items: QueryList<TemplateRef<unknown>> = EMPTY_QUERY;\n\n @ContentChild(TuiMoreDirective, {read: TemplateRef})\n readonly more?: TemplateRef<TuiContextWithImplicit<number>>;\n\n constructor(\n @Inject(TuiItemsWithMoreDirective) readonly directive: TuiItemsWithMoreDirective,\n @Inject(TuiItemsWithMoreService) readonly lastVisibleIndex$: Observable<number>,\n ) {}\n}\n","<ng-container *ngIf=\"items.changes | async\"></ng-container>\n<ng-container *tuiLet=\"(lastVisibleIndex$ | async) || 0 as lastIndex\">\n <div\n *ngFor=\"let item of items; let index = index\"\n class=\"t-item\"\n [class.t-item_hidden]=\"index > lastIndex && index !== directive.required\"\n [tuiProjectClass]=\"['_active']\"\n >\n <ng-container *ngTemplateOutlet=\"item\"></ng-container>\n </div>\n <span\n *ngIf=\"more && lastIndex < items.length - 1\"\n class=\"t-item\"\n [class.t-item_hidden]=\"lastIndex >= items.length - 1\"\n [tuiProjectClass]=\"['_active']\"\n >\n <ng-container\n [ngTemplateOutlet]=\"more\"\n [ngTemplateOutletContext]=\"{$implicit: lastIndex}\"\n ></ng-container>\n </span>\n</ng-container>\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiItemDirective, TuiItemModule, TuiLetModule} from '@taiga-ui/cdk';\nimport {TuiProjectClassModule} from '@taiga-ui/kit/directives';\n\nimport {TuiItemsWithMoreComponent} from './items-with-more.component';\nimport {TuiItemsWithMoreDirective} from './items-with-more.directive';\nimport {TuiMoreDirective} from './more.directive';\n\n@NgModule({\n imports: [CommonModule, TuiItemModule, TuiLetModule, TuiProjectClassModule],\n declarations: [\n TuiItemsWithMoreComponent,\n TuiItemsWithMoreDirective,\n TuiMoreDirective,\n ],\n exports: [\n TuiItemsWithMoreComponent,\n TuiItemsWithMoreDirective,\n TuiMoreDirective,\n TuiItemDirective,\n ],\n})\nexport class TuiItemsWithMoreModule {}\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;AAMM,MAAO,yBAA0B,SAAQ,qBAAqB,CAAA;AAHpE,IAAA,WAAA,GAAA;;QAKI,I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AC,CAAA,EAAA,CAAA,CAAA;4FAalE,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBAdlC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACN,OAAO,EAAE,CAAC,YAAY,EAAE,aAAa,EAAE,YAAY,EAAE,qBAAqB,CAAC;AAC3E,oBAAA,YAAY,EAAE;wBACV,yBAAyB;wBACzB,yBAAyB;wBACzB,gBAAgB;AACnB,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACL,yBAAyB;wBACzB,yBAAyB;wBACzB,gBAAgB;wBAChB,gBAAgB;AACnB,qBAAA;AACJ,iBAAA,CAAA;;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-items-with-more.js","sources":["../../../projects/kit/components/items-with-more/items-with-more.directive.ts","../../../projects/kit/components/items-with-more/items-with-more.service.ts","../../../projects/kit/components/items-with-more/more.directive.ts","../../../projects/kit/components/items-with-more/items-with-more.component.ts","../../../projects/kit/components/items-with-more/items-with-more.template.html","../../../projects/kit/components/items-with-more/items-with-more.module.ts","../../../projects/kit/components/items-with-more/taiga-ui-kit-components-items-with-more.ts"],"sourcesContent":["import {Directive, Input} from '@angular/core';\nimport {AbstractTuiController} from '@taiga-ui/cdk';\n\n@Directive({\n selector: 'tui-items-with-more',\n})\nexport class TuiItemsWithMoreDirective extends AbstractTuiController {\n @Input()\n itemsLimit = Infinity;\n\n @Input()\n required = -1;\n}\n","import {ElementRef, Inject, Injectable, NgZone} from '@angular/core';\nimport {MutationObserverService} from '@ng-web-apis/mutation-observer';\nimport {tuiClamp, TuiResizeService, tuiZoneOptimized} from '@taiga-ui/cdk';\nimport {merge, Observable} from 'rxjs';\nimport {distinctUntilChanged, map, share, throttleTime} from 'rxjs/operators';\n\nimport {TuiItemsWithMoreDirective} from './items-with-more.directive';\n\n@Injectable()\nexport class TuiItemsWithMoreService extends Observable<number> {\n readonly stream$ = merge(this.directive.change$, this.mutation$, this.resize$).pipe(\n throttleTime(0),\n map(() => this.getOverflowIndex()),\n distinctUntilChanged(),\n tuiZoneOptimized(this.zone),\n share(),\n );\n\n constructor(\n @Inject(NgZone) private readonly zone: NgZone,\n @Inject(ElementRef) private readonly el: ElementRef<HTMLElement>,\n @Inject(MutationObserverService) private readonly mutation$: Observable<unknown>,\n @Inject(TuiResizeService) private readonly resize$: Observable<unknown>,\n @Inject(TuiItemsWithMoreDirective)\n private readonly directive: TuiItemsWithMoreDirective,\n ) {\n super(subscriber => this.stream$.subscribe(subscriber));\n }\n\n private getOverflowIndex(): number {\n const {clientWidth, children} = this.el.nativeElement;\n const items = Array.from(children, ({clientWidth}) => clientWidth);\n const first = this.directive.required === -1 ? 0 : this.directive.required;\n const last = items.length - 1;\n const more = children[last]?.tagName === `SPAN` ? items[last] : 0;\n\n items.unshift(...items.splice(first, 1));\n\n let total = items.reduce((sum, width) => sum + width, 0) - more;\n\n if (total <= clientWidth && this.directive.itemsLimit >= items.length) {\n return this.maxItems;\n }\n\n for (let i = last - 1; i > 0; i--) {\n total -= items[i];\n\n if (total + more <= clientWidth) {\n return tuiClamp(\n i > this.directive.required ? i - 1 : i - 2,\n -1,\n this.maxItems,\n );\n }\n }\n\n return -1;\n }\n\n private get maxItems(): number {\n return this.directive.itemsLimit > this.directive.required\n ? this.directive.itemsLimit - 1\n : this.directive.itemsLimit - 2;\n }\n}\n","import {Directive} from '@angular/core';\nimport {TuiContextWithImplicit} from '@taiga-ui/cdk';\n\n@Directive({\n selector: '[tuiMore]',\n})\nexport class TuiMoreDirective {\n static ngTemplateContextGuard(\n _dir: TuiMoreDirective,\n _ctx: unknown,\n ): _ctx is TuiContextWithImplicit<number> {\n return true;\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n ContentChild,\n ContentChildren,\n Inject,\n QueryList,\n TemplateRef,\n} from '@angular/core';\nimport {\n MUTATION_OBSERVER_INIT,\n MutationObserverService,\n} from '@ng-web-apis/mutation-observer';\nimport {\n EMPTY_QUERY,\n TuiContextWithImplicit,\n TuiDestroyService,\n TuiItemDirective,\n TuiResizeService,\n} from '@taiga-ui/cdk';\nimport {Observable} from 'rxjs';\n\nimport {TuiItemsWithMoreDirective} from './items-with-more.directive';\nimport {TuiItemsWithMoreService} from './items-with-more.service';\nimport {TuiMoreDirective} from './more.directive';\n\n@Component({\n selector: 'tui-items-with-more',\n templateUrl: './items-with-more.template.html',\n styleUrls: ['./items-with-more.style.less'],\n providers: [\n MutationObserverService,\n TuiResizeService,\n TuiDestroyService,\n TuiItemsWithMoreService,\n {\n provide: MUTATION_OBSERVER_INIT,\n useValue: {\n childList: true,\n characterData: true,\n subtree: true,\n },\n },\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TuiItemsWithMoreComponent {\n @ContentChildren(TuiItemDirective, {read: TemplateRef, descendants: true})\n readonly items: QueryList<TemplateRef<unknown>> = EMPTY_QUERY;\n\n @ContentChild(TuiMoreDirective, {read: TemplateRef})\n readonly more?: TemplateRef<TuiContextWithImplicit<number>>;\n\n constructor(\n @Inject(TuiItemsWithMoreDirective) readonly directive: TuiItemsWithMoreDirective,\n @Inject(TuiItemsWithMoreService) readonly lastVisibleIndex$: Observable<number>,\n ) {}\n}\n","<ng-container *ngIf=\"items.changes | async\"></ng-container>\n<ng-container *tuiLet=\"(lastVisibleIndex$ | async) || 0 as lastIndex\">\n <div\n *ngFor=\"let item of items; let index = index\"\n class=\"t-item\"\n [class.t-item_hidden]=\"index > lastIndex && index !== directive.required\"\n [tuiProjectClass]=\"['_active']\"\n >\n <ng-container *ngTemplateOutlet=\"item\"></ng-container>\n </div>\n <span\n *ngIf=\"more && lastIndex < items.length - 1\"\n class=\"t-item\"\n [class.t-item_hidden]=\"lastIndex >= items.length - 1\"\n [tuiProjectClass]=\"['_active']\"\n >\n <ng-container\n [ngTemplateOutlet]=\"more\"\n [ngTemplateOutletContext]=\"{$implicit: lastIndex}\"\n ></ng-container>\n </span>\n</ng-container>\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiItemDirective, TuiItemModule, TuiLetModule} from '@taiga-ui/cdk';\nimport {TuiProjectClassModule} from '@taiga-ui/kit/directives';\n\nimport {TuiItemsWithMoreComponent} from './items-with-more.component';\nimport {TuiItemsWithMoreDirective} from './items-with-more.directive';\nimport {TuiMoreDirective} from './more.directive';\n\n@NgModule({\n imports: [CommonModule, TuiItemModule, TuiLetModule, TuiProjectClassModule],\n declarations: [\n TuiItemsWithMoreComponent,\n TuiItemsWithMoreDirective,\n TuiMoreDirective,\n ],\n exports: [\n TuiItemsWithMoreComponent,\n TuiItemsWithMoreDirective,\n TuiMoreDirective,\n TuiItemDirective,\n ],\n})\nexport class TuiItemsWithMoreModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;AAMM,MAAO,yBAA0B,SAAQ,qBAAqB,CAAA;AAHpE,IAAA,WAAA,GAAA;;QAKI,IAAU,CAAA,UAAA,GAAG,QAAQ,CAAC;QAGtB,IAAQ,CAAA,QAAA,GAAG,CAAC,CAAC,CAAC;AACjB,KAAA;;uHANY,yBAAyB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;2GAAzB,yBAAyB,EAAA,QAAA,EAAA,qBAAA,EAAA,MAAA,EAAA,EAAA,UAAA,EAAA,YAAA,EAAA,QAAA,EAAA,UAAA,EAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;4FAAzB,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBAHrC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE,qBAAqB;AAClC,iBAAA,CAAA;8BAGG,UAAU,EAAA,CAAA;sBADT,KAAK;gBAIN,QAAQ,EAAA,CAAA;sBADP,KAAK;;;ACDJ,MAAO,uBAAwB,SAAQ,UAAkB,CAAA;IAS3D,WACqC,CAAA,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,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;AAAtB,sBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,sBAAsB,iBAX3B,yBAAyB;QACzB,yBAAyB;QACzB,gBAAgB,CAAA,EAAA,OAAA,EAAA,CAJV,YAAY,EAAE,aAAa,EAAE,YAAY,EAAE,qBAAqB,CAAA,EAAA,OAAA,EAAA,CAOtE,yBAAyB;QACzB,yBAAyB;QACzB,gBAAgB;QAChB,gBAAgB,CAAA,EAAA,CAAA,CAAA;qHAGX,sBAAsB,EAAA,OAAA,EAAA,CAbtB,CAAC,YAAY,EAAE,aAAa,EAAE,YAAY,EAAE,qBAAqB,CAAC,CAAA,EAAA,CAAA,CAAA;4FAalE,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBAdlC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACN,OAAO,EAAE,CAAC,YAAY,EAAE,aAAa,EAAE,YAAY,EAAE,qBAAqB,CAAC;AAC3E,oBAAA,YAAY,EAAE;wBACV,yBAAyB;wBACzB,yBAAyB;wBACzB,gBAAgB;AACnB,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACL,yBAAyB;wBACzB,yBAAyB;wBACzB,gBAAgB;wBAChB,gBAAgB;AACnB,qBAAA;AACJ,iBAAA,CAAA;;;ACtBD;;AAEG;;;;"}
@@ -14,6 +14,9 @@ import { CommonModule } from '@angular/common';
14
14
  const TUI_LINE_CLAMP_DEFAULT_OPTIONS = {
15
15
  showHint: true,
16
16
  };
17
+ /**
18
+ * Default parameters for LineClamp component
19
+ */
17
20
  const TUI_LINE_CLAMP_OPTIONS = tuiCreateToken(TUI_LINE_CLAMP_DEFAULT_OPTIONS);
18
21
  function tuiLineClampOptionsProvider(options) {
19
22
  return tuiProvideOptions(TUI_LINE_CLAMP_OPTIONS, options, TUI_LINE_CLAMP_DEFAULT_OPTIONS);
@@ -107,6 +110,7 @@ class TuiLineClampComponent {
107
110
  }
108
111
  const { scrollHeight, scrollWidth } = this.outlet.nativeElement;
109
112
  const { clientHeight, clientWidth } = this.el.nativeElement;
113
+ // 4px buffer for IE/Edge incorrectly rounding scrollHeight
110
114
  return scrollHeight - clientHeight > 4 || scrollWidth - clientWidth > 0;
111
115
  }
112
116
  get computedContent() {
@@ -227,5 +231,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
227
231
  }]
228
232
  }] });
229
233
 
234
+ /**
235
+ * Generated bundle index. Do not edit.
236
+ */
237
+
230
238
  export { TUI_LINE_CLAMP_DEFAULT_OPTIONS, TUI_LINE_CLAMP_OPTIONS, TuiLineClampBoxComponent, TuiLineClampComponent, TuiLineClampModule, tuiLineClampOptionsProvider };
231
239
  //# sourceMappingURL=taiga-ui-kit-components-line-clamp.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-line-clamp.js","sources":["../../../projects/kit/components/line-clamp/line-clamp.options.ts","../../../projects/kit/components/line-clamp/line-clamp-box.component.ts","../../../projects/kit/components/line-clamp/line-clamp-position.directive.ts","../../../projects/kit/components/line-clamp/line-clamp.component.ts","../../../projects/kit/components/line-clamp/line-clamp.template.html","../../../projects/kit/components/line-clamp/line-clamp.module.ts"],"sourcesContent":["import {Provider} from '@angular/core';\nimport {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk';\n\nexport interface TuiLineClampOptions {\n readonly showHint: boolean;\n}\n\nexport const TUI_LINE_CLAMP_DEFAULT_OPTIONS: TuiLineClampOptions = {\n showHint: true,\n};\n\n/**\n * Default parameters for LineClamp component\n */\nexport const TUI_LINE_CLAMP_OPTIONS = tuiCreateToken(TUI_LINE_CLAMP_DEFAULT_OPTIONS);\n\nexport function tuiLineClampOptionsProvider(\n options: Partial<TuiLineClampOptions>,\n): Provider {\n return tuiProvideOptions(\n TUI_LINE_CLAMP_OPTIONS,\n options,\n TUI_LINE_CLAMP_DEFAULT_OPTIONS,\n );\n}\n","import {ChangeDetectionStrategy, Component, HostBinding} from '@angular/core';\nimport {TuiDestroyService, TuiHoveredService} from '@taiga-ui/cdk';\nimport {\n tuiFadeIn,\n TuiHintComponent,\n TuiHintDirective,\n tuiPositionAccessorFor,\n TuiPositionService,\n tuiRectAccessorFor,\n} from '@taiga-ui/core';\n\n@Component({\n selector: 'tui-line-clamp-box',\n template: `\n <ng-container *polymorpheusOutlet=\"content as text\">{{ text }}</ng-container>\n `,\n styleUrls: ['./line-clamp-box.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n TuiDestroyService,\n TuiPositionService,\n TuiHoveredService,\n tuiPositionAccessorFor('hint'),\n tuiRectAccessorFor('hint', TuiHintDirective),\n ],\n animations: [tuiFadeIn],\n})\nexport class TuiLineClampBoxComponent extends TuiHintComponent {\n @HostBinding('style.minWidth.px')\n get width(): number {\n return this.accessor.getClientRect().width;\n }\n}\n","import {Directive, Inject} from '@angular/core';\nimport {\n tuiAsPositionAccessor,\n TuiHintDirective,\n TuiPoint,\n TuiPositionAccessor,\n TuiRectAccessor,\n} from '@taiga-ui/core';\n\n@Directive({\n selector: '[tuiHintCustomPosition]',\n providers: [tuiAsPositionAccessor(TuiLineClampPositionDirective)],\n})\nexport class TuiLineClampPositionDirective extends TuiPositionAccessor {\n readonly type = 'hint';\n\n constructor(@Inject(TuiHintDirective) private readonly accessor: TuiRectAccessor) {\n super();\n }\n\n getPosition(): TuiPoint {\n const {top, left} = this.accessor.getClientRect();\n\n return [top, left];\n }\n}\n","import {\n AfterViewInit,\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n DoCheck,\n ElementRef,\n HostListener,\n Inject,\n Input,\n NgZone,\n Output,\n Renderer2,\n ViewChild,\n} from '@angular/core';\nimport {tuiIsCurrentTarget, tuiPx, tuiTypedFromEvent, tuiZonefree} from '@taiga-ui/cdk';\nimport {TUI_HINT_COMPONENT, TuiHintDirective} from '@taiga-ui/core';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {BehaviorSubject, Observable, of, Subject, timer} from 'rxjs';\nimport {\n distinctUntilChanged,\n filter,\n map,\n pairwise,\n startWith,\n switchMap,\n} from 'rxjs/operators';\n\nimport {TUI_LINE_CLAMP_OPTIONS, TuiLineClampOptions} from './line-clamp.options';\nimport {TuiLineClampBoxComponent} from './line-clamp-box.component';\n\n@Component({\n selector: 'tui-line-clamp',\n templateUrl: './line-clamp.template.html',\n styleUrls: ['./line-clamp.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: TUI_HINT_COMPONENT,\n useValue: TuiLineClampBoxComponent,\n },\n ],\n})\nexport class TuiLineClampComponent implements DoCheck, AfterViewInit {\n @ViewChild(TuiHintDirective, {read: ElementRef})\n private readonly outlet?: ElementRef<HTMLElement>;\n\n private readonly linesLimit$ = new BehaviorSubject(1);\n private readonly isOverflown$ = new Subject<boolean>();\n private initialized = false;\n\n @Input()\n set linesLimit(linesLimit: number) {\n this.linesLimit$.next(linesLimit);\n }\n\n @Input()\n lineHeight = 24;\n\n @Input()\n content: PolymorpheusContent;\n\n @Output()\n readonly overflownChange: Observable<boolean> = this.isOverflown$.pipe(\n distinctUntilChanged(),\n );\n\n lineClamp$ = this.linesLimit$.pipe(\n startWith(1),\n pairwise(),\n switchMap(([prev, next]) =>\n next >= prev\n ? of(next)\n : tuiTypedFromEvent(this.el.nativeElement, 'transitionend').pipe(\n filter(tuiIsCurrentTarget),\n map(() => next),\n ),\n ),\n );\n\n constructor(\n @Inject(ElementRef) private readonly el: ElementRef<HTMLElement>,\n @Inject(Renderer2) private readonly renderer: Renderer2,\n @Inject(ChangeDetectorRef) private readonly cd: ChangeDetectorRef,\n @Inject(NgZone) private readonly zone: NgZone,\n @Inject(TUI_LINE_CLAMP_OPTIONS) private readonly options: TuiLineClampOptions,\n ) {\n this.skipInitialTransition();\n }\n\n get overflown(): boolean {\n if (!this.outlet) {\n return false;\n }\n\n const {scrollHeight, scrollWidth} = this.outlet.nativeElement;\n const {clientHeight, clientWidth} = this.el.nativeElement;\n\n // 4px buffer for IE/Edge incorrectly rounding scrollHeight\n return scrollHeight - clientHeight > 4 || scrollWidth - clientWidth > 0;\n }\n\n get computedContent(): PolymorpheusContent {\n return this.options.showHint && this.overflown ? this.content : '';\n }\n\n @HostListener('transitionend')\n updateView(): void {\n this.cd.detectChanges();\n }\n\n ngAfterViewInit(): void {\n this.initialized = true;\n }\n\n ngDoCheck(): void {\n this.update();\n this.isOverflown$.next(this.overflown);\n }\n\n private skipInitialTransition(): void {\n timer(0)\n .pipe(tuiZonefree(this.zone))\n .subscribe(() => {\n this.renderer.addClass(this.el.nativeElement, '_initialized');\n this.cd.detectChanges();\n });\n }\n\n private update(): void {\n if (this.outlet) {\n this.renderer.setStyle(\n this.el.nativeElement,\n 'height',\n tuiPx(this.outlet.nativeElement.scrollHeight + 4),\n );\n }\n\n if (this.initialized) {\n this.renderer.setStyle(\n this.el.nativeElement,\n 'max-height',\n tuiPx(this.lineHeight * this.linesLimit$.value),\n );\n }\n }\n}\n","<div\n *tuiLet=\"lineClamp$ | async as lineClamp\"\n tuiHintCustomPosition\n class=\"t-wrapper\"\n [style.-webkit-line-clamp]=\"lineClamp\"\n [style.word-break]=\"(lineClamp || 0) > 1 ? 'break-word' : 'break-all'\"\n [tuiHint]=\"computedContent\"\n (mouseenter)=\"updateView()\"\n (tuiResize)=\"updateView()\"\n>\n <ng-container *polymorpheusOutlet=\"content as text\">\n {{ text }}\n </ng-container>\n</div>\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiLetModule, TuiResizeModule} from '@taiga-ui/cdk';\nimport {TuiHintModule} from '@taiga-ui/core';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiLineClampComponent} from './line-clamp.component';\nimport {TuiLineClampBoxComponent} from './line-clamp-box.component';\nimport {TuiLineClampPositionDirective} from './line-clamp-position.directive';\n\n@NgModule({\n imports: [\n CommonModule,\n PolymorpheusModule,\n TuiHintModule,\n TuiResizeModule,\n TuiLetModule,\n ],\n declarations: [\n TuiLineClampComponent,\n TuiLineClampBoxComponent,\n TuiLineClampPositionDirective,\n ],\n exports: [TuiLineClampComponent],\n})\nexport class TuiLineClampModule {}\n"],"names":["i1","i2.TuiLineClampPositionDirective","i4"],"mappings":";;;;;;;;;;;;;AAOa,MAAA,8BAA8B,GAAwB;AAC/D,IAAA,QAAQ,EAAE,IAAI;EAChB;MAKW,sBAAsB,GAAG,cAAc,CAAC,8BAA8B,EAAE;AAE/E,SAAU,2BAA2B,CACvC,OAAqC,EAAA;IAErC,OAAO,iBAAiB,CACpB,sBAAsB,EACtB,OAAO,EACP,8BAA8B,CACjC,CAAC;AACN;;ACGM,MAAO,wBAAyB,SAAQ,gBAAgB,CAAA;AAC1D,IAAA,IACI,KAAK,GAAA;QACL,OAAO,IAAI,CAAC,QAAQ,CAAC,aAAa,EAAE,CAAC,KAAK,CAAC;KAC9C;;sHAJQ,wBAAwB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAxB,wBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,wBAAwB,EATtB,QAAA,EAAA,oBAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,mBAAA,EAAA,YAAA,EAAA,EAAA,EAAA,SAAA,EAAA;QACP,iBAAiB;QACjB,kBAAkB;QAClB,iBAAiB;QACjB,sBAAsB,CAAC,MAAM,CAAC;AAC9B,QAAA,kBAAkB,CAAC,MAAM,EAAE,gBAAgB,CAAC;KAC/C,EAXS,eAAA,EAA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,EAAE;wBACV,qBAAqB;wBACrB,wBAAwB;wBACxB,6BAA6B;AAChC,qBAAA;oBACD,OAAO,EAAE,CAAC,qBAAqB,CAAC;AACnC,iBAAA,CAAA;;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-line-clamp.js","sources":["../../../projects/kit/components/line-clamp/line-clamp.options.ts","../../../projects/kit/components/line-clamp/line-clamp-box.component.ts","../../../projects/kit/components/line-clamp/line-clamp-position.directive.ts","../../../projects/kit/components/line-clamp/line-clamp.component.ts","../../../projects/kit/components/line-clamp/line-clamp.template.html","../../../projects/kit/components/line-clamp/line-clamp.module.ts","../../../projects/kit/components/line-clamp/taiga-ui-kit-components-line-clamp.ts"],"sourcesContent":["import {Provider} from '@angular/core';\nimport {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk';\n\nexport interface TuiLineClampOptions {\n readonly showHint: boolean;\n}\n\nexport const TUI_LINE_CLAMP_DEFAULT_OPTIONS: TuiLineClampOptions = {\n showHint: true,\n};\n\n/**\n * Default parameters for LineClamp component\n */\nexport const TUI_LINE_CLAMP_OPTIONS = tuiCreateToken(TUI_LINE_CLAMP_DEFAULT_OPTIONS);\n\nexport function tuiLineClampOptionsProvider(\n options: Partial<TuiLineClampOptions>,\n): Provider {\n return tuiProvideOptions(\n TUI_LINE_CLAMP_OPTIONS,\n options,\n TUI_LINE_CLAMP_DEFAULT_OPTIONS,\n );\n}\n","import {ChangeDetectionStrategy, Component, HostBinding} from '@angular/core';\nimport {TuiDestroyService, TuiHoveredService} from '@taiga-ui/cdk';\nimport {\n tuiFadeIn,\n TuiHintComponent,\n TuiHintDirective,\n tuiPositionAccessorFor,\n TuiPositionService,\n tuiRectAccessorFor,\n} from '@taiga-ui/core';\n\n@Component({\n selector: 'tui-line-clamp-box',\n template: `\n <ng-container *polymorpheusOutlet=\"content as text\">{{ text }}</ng-container>\n `,\n styleUrls: ['./line-clamp-box.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n TuiDestroyService,\n TuiPositionService,\n TuiHoveredService,\n tuiPositionAccessorFor('hint'),\n tuiRectAccessorFor('hint', TuiHintDirective),\n ],\n animations: [tuiFadeIn],\n})\nexport class TuiLineClampBoxComponent extends TuiHintComponent {\n @HostBinding('style.minWidth.px')\n get width(): number {\n return this.accessor.getClientRect().width;\n }\n}\n","import {Directive, Inject} from '@angular/core';\nimport {\n tuiAsPositionAccessor,\n TuiHintDirective,\n TuiPoint,\n TuiPositionAccessor,\n TuiRectAccessor,\n} from '@taiga-ui/core';\n\n@Directive({\n selector: '[tuiHintCustomPosition]',\n providers: [tuiAsPositionAccessor(TuiLineClampPositionDirective)],\n})\nexport class TuiLineClampPositionDirective extends TuiPositionAccessor {\n readonly type = 'hint';\n\n constructor(@Inject(TuiHintDirective) private readonly accessor: TuiRectAccessor) {\n super();\n }\n\n getPosition(): TuiPoint {\n const {top, left} = this.accessor.getClientRect();\n\n return [top, left];\n }\n}\n","import {\n AfterViewInit,\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n DoCheck,\n ElementRef,\n HostListener,\n Inject,\n Input,\n NgZone,\n Output,\n Renderer2,\n ViewChild,\n} from '@angular/core';\nimport {tuiIsCurrentTarget, tuiPx, tuiTypedFromEvent, tuiZonefree} from '@taiga-ui/cdk';\nimport {TUI_HINT_COMPONENT, TuiHintDirective} from '@taiga-ui/core';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {BehaviorSubject, Observable, of, Subject, timer} from 'rxjs';\nimport {\n distinctUntilChanged,\n filter,\n map,\n pairwise,\n startWith,\n switchMap,\n} from 'rxjs/operators';\n\nimport {TUI_LINE_CLAMP_OPTIONS, TuiLineClampOptions} from './line-clamp.options';\nimport {TuiLineClampBoxComponent} from './line-clamp-box.component';\n\n@Component({\n selector: 'tui-line-clamp',\n templateUrl: './line-clamp.template.html',\n styleUrls: ['./line-clamp.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: TUI_HINT_COMPONENT,\n useValue: TuiLineClampBoxComponent,\n },\n ],\n})\nexport class TuiLineClampComponent implements DoCheck, AfterViewInit {\n @ViewChild(TuiHintDirective, {read: ElementRef})\n private readonly outlet?: ElementRef<HTMLElement>;\n\n private readonly linesLimit$ = new BehaviorSubject(1);\n private readonly isOverflown$ = new Subject<boolean>();\n private initialized = false;\n\n @Input()\n set linesLimit(linesLimit: number) {\n this.linesLimit$.next(linesLimit);\n }\n\n @Input()\n lineHeight = 24;\n\n @Input()\n content: PolymorpheusContent;\n\n @Output()\n readonly overflownChange: Observable<boolean> = this.isOverflown$.pipe(\n distinctUntilChanged(),\n );\n\n lineClamp$ = this.linesLimit$.pipe(\n startWith(1),\n pairwise(),\n switchMap(([prev, next]) =>\n next >= prev\n ? of(next)\n : tuiTypedFromEvent(this.el.nativeElement, 'transitionend').pipe(\n filter(tuiIsCurrentTarget),\n map(() => next),\n ),\n ),\n );\n\n constructor(\n @Inject(ElementRef) private readonly el: ElementRef<HTMLElement>,\n @Inject(Renderer2) private readonly renderer: Renderer2,\n @Inject(ChangeDetectorRef) private readonly cd: ChangeDetectorRef,\n @Inject(NgZone) private readonly zone: NgZone,\n @Inject(TUI_LINE_CLAMP_OPTIONS) private readonly options: TuiLineClampOptions,\n ) {\n this.skipInitialTransition();\n }\n\n get overflown(): boolean {\n if (!this.outlet) {\n return false;\n }\n\n const {scrollHeight, scrollWidth} = this.outlet.nativeElement;\n const {clientHeight, clientWidth} = this.el.nativeElement;\n\n // 4px buffer for IE/Edge incorrectly rounding scrollHeight\n return scrollHeight - clientHeight > 4 || scrollWidth - clientWidth > 0;\n }\n\n get computedContent(): PolymorpheusContent {\n return this.options.showHint && this.overflown ? this.content : '';\n }\n\n @HostListener('transitionend')\n updateView(): void {\n this.cd.detectChanges();\n }\n\n ngAfterViewInit(): void {\n this.initialized = true;\n }\n\n ngDoCheck(): void {\n this.update();\n this.isOverflown$.next(this.overflown);\n }\n\n private skipInitialTransition(): void {\n timer(0)\n .pipe(tuiZonefree(this.zone))\n .subscribe(() => {\n this.renderer.addClass(this.el.nativeElement, '_initialized');\n this.cd.detectChanges();\n });\n }\n\n private update(): void {\n if (this.outlet) {\n this.renderer.setStyle(\n this.el.nativeElement,\n 'height',\n tuiPx(this.outlet.nativeElement.scrollHeight + 4),\n );\n }\n\n if (this.initialized) {\n this.renderer.setStyle(\n this.el.nativeElement,\n 'max-height',\n tuiPx(this.lineHeight * this.linesLimit$.value),\n );\n }\n }\n}\n","<div\n *tuiLet=\"lineClamp$ | async as lineClamp\"\n tuiHintCustomPosition\n class=\"t-wrapper\"\n [style.-webkit-line-clamp]=\"lineClamp\"\n [style.word-break]=\"(lineClamp || 0) > 1 ? 'break-word' : 'break-all'\"\n [tuiHint]=\"computedContent\"\n (mouseenter)=\"updateView()\"\n (tuiResize)=\"updateView()\"\n>\n <ng-container *polymorpheusOutlet=\"content as text\">\n {{ text }}\n </ng-container>\n</div>\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiLetModule, TuiResizeModule} from '@taiga-ui/cdk';\nimport {TuiHintModule} from '@taiga-ui/core';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiLineClampComponent} from './line-clamp.component';\nimport {TuiLineClampBoxComponent} from './line-clamp-box.component';\nimport {TuiLineClampPositionDirective} from './line-clamp-position.directive';\n\n@NgModule({\n imports: [\n CommonModule,\n PolymorpheusModule,\n TuiHintModule,\n TuiResizeModule,\n TuiLetModule,\n ],\n declarations: [\n TuiLineClampComponent,\n TuiLineClampBoxComponent,\n TuiLineClampPositionDirective,\n ],\n exports: [TuiLineClampComponent],\n})\nexport class TuiLineClampModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1","i2.TuiLineClampPositionDirective","i4"],"mappings":";;;;;;;;;;;;;AAOa,MAAA,8BAA8B,GAAwB;AAC/D,IAAA,QAAQ,EAAE,IAAI;EAChB;AAEF;;AAEG;MACU,sBAAs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EAAA,CAAA,CAAA;AAAlB,kBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,kBAAkB,iBANvB,qBAAqB;QACrB,wBAAwB;AACxB,QAAA,6BAA6B,aAT7B,YAAY;QACZ,kBAAkB;QAClB,aAAa;QACb,eAAe;AACf,QAAA,YAAY,aAON,qBAAqB,CAAA,EAAA,CAAA,CAAA;AAEtB,kBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,kBAAkB,EAdlB,OAAA,EAAA,CAAA;YACL,YAAY;YACZ,kBAAkB;YAClB,aAAa;YACb,eAAe;YACf,YAAY;AACf,SAAA,CAAA,EAAA,CAAA,CAAA;4FAQQ,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAf9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE;wBACL,YAAY;wBACZ,kBAAkB;wBAClB,aAAa;wBACb,eAAe;wBACf,YAAY;AACf,qBAAA;AACD,oBAAA,YAAY,EAAE;wBACV,qBAAqB;wBACrB,wBAAwB;wBACxB,6BAA6B;AAChC,qBAAA;oBACD,OAAO,EAAE,CAAC,qBAAqB,CAAC;AACnC,iBAAA,CAAA;;;ACxBD;;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 { TuiMarkerIconComponent, TuiMarkerIconModule };
63
67
  //# sourceMappingURL=taiga-ui-kit-components-marker-icon.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-marker-icon.js","sources":["../../../projects/kit/components/marker-icon/marker-icon.component.ts","../../../projects/kit/components/marker-icon/marker-icon.template.html","../../../projects/kit/components/marker-icon/marker-icon.module.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n HostBinding,\n Inject,\n Input,\n} from '@angular/core';\nimport {TuiDestroyService} from '@taiga-ui/cdk';\nimport {\n MODE_PROVIDER,\n TUI_MODE,\n TuiBrightness,\n TuiSizeXXL,\n TuiSizeXXS,\n} from '@taiga-ui/core';\nimport {TuiMarkerIconMode} from '@taiga-ui/kit/types';\nimport {Observable} from 'rxjs';\n\n@Component({\n selector: 'tui-marker-icon, a[tuiMarkerIcon], button[tuiMarkerIcon]',\n templateUrl: './marker-icon.template.html',\n styleUrls: ['./marker-icon.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [TuiDestroyService, MODE_PROVIDER],\n host: {\n '($.data-mode.attr)': 'mode$',\n },\n})\nexport class TuiMarkerIconComponent {\n @Input()\n @HostBinding('attr.data-marker-mode')\n mode: TuiMarkerIconMode | null = null;\n\n @Input()\n @HostBinding('attr.data-size')\n size: TuiSizeXXL | TuiSizeXXS = 'm';\n\n @Input()\n src = '';\n\n constructor(@Inject(TUI_MODE) readonly mode$: Observable<TuiBrightness | null>) {}\n}\n","<tui-svg\n class=\"t-icon\"\n [src]=\"src\"\n></tui-svg>\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiSvgModule} from '@taiga-ui/core';\n\nimport {TuiMarkerIconComponent} from './marker-icon.component';\n\n@NgModule({\n imports: [CommonModule, TuiSvgModule],\n declarations: [TuiMarkerIconComponent],\n exports: [TuiMarkerIconComponent],\n})\nexport class TuiMarkerIconModule {}\n"],"names":[],"mappings":";;;;;;;;MA4Ba,sBAAsB,CAAA;AAY/B,IAAA,WAAA,CAAuC,KAAuC,EAAA;QAAvC,IAAK,CAAA,KAAA,GAAL,KAAK,CAAkC;QAT9E,IAAI,CAAA,IAA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CAAA;sBAFH,KAAK;;sBACL,WAAW;uBAAC,uBAAuB,CAAA;gBAKpC,IAAI,EAAA,CAAA;sBAFH,KAAK;;sBACL,WAAW;uBAAC,gBAAgB,CAAA;gBAI7B,GAAG,EAAA,CAAA;sBADF,KAAK;;;ME1BG,mBAAmB,CAAA;;iHAAnB,mBAAmB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;AAAnB,mBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,mBAAmB,iBAHb,sBAAsB,CAAA,EAAA,OAAA,EAAA,CAD3B,YAAY,EAAE,YAAY,aAE1B,sBAAsB,CAAA,EAAA,CAAA,CAAA;AAEvB,mBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,mBAAmB,EAJnB,OAAA,EAAA,CAAA,CAAC,YAAY,EAAE,YAAY,CAAC,CAAA,EAAA,CAAA,CAAA;4FAI5B,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAL/B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,YAAY,CAAC;oBACrC,YAAY,EAAE,CAAC,sBAAsB,CAAC;oBACtC,OAAO,EAAE,CAAC,sBAAsB,CAAC;AACpC,iBAAA,CAAA;;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-marker-icon.js","sources":["../../../projects/kit/components/marker-icon/marker-icon.component.ts","../../../projects/kit/components/marker-icon/marker-icon.template.html","../../../projects/kit/components/marker-icon/marker-icon.module.ts","../../../projects/kit/components/marker-icon/taiga-ui-kit-components-marker-icon.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n HostBinding,\n Inject,\n Input,\n} from '@angular/core';\nimport {TuiDestroyService} from '@taiga-ui/cdk';\nimport {\n MODE_PROVIDER,\n TUI_MODE,\n TuiBrightness,\n TuiSizeXXL,\n TuiSizeXXS,\n} from '@taiga-ui/core';\nimport {TuiMarkerIconMode} from '@taiga-ui/kit/types';\nimport {Observable} from 'rxjs';\n\n@Component({\n selector: 'tui-marker-icon, a[tuiMarkerIcon], button[tuiMarkerIcon]',\n templateUrl: './marker-icon.template.html',\n styleUrls: ['./marker-icon.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [TuiDestroyService, MODE_PROVIDER],\n host: {\n '($.data-mode.attr)': 'mode$',\n },\n})\nexport class TuiMarkerIconComponent {\n @Input()\n @HostBinding('attr.data-marker-mode')\n mode: TuiMarkerIconMode | null = null;\n\n @Input()\n @HostBinding('attr.data-size')\n size: TuiSizeXXL | TuiSizeXXS = 'm';\n\n @Input()\n src = '';\n\n constructor(@Inject(TUI_MODE) readonly mode$: Observable<TuiBrightness | null>) {}\n}\n","<tui-svg\n class=\"t-icon\"\n [src]=\"src\"\n></tui-svg>\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiSvgModule} from '@taiga-ui/core';\n\nimport {TuiMarkerIconComponent} from './marker-icon.component';\n\n@NgModule({\n imports: [CommonModule, TuiSvgModule],\n declarations: [TuiMarkerIconComponent],\n exports: [TuiMarkerIconComponent],\n})\nexport class TuiMarkerIconModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;MA4Ba,sBAAsB,CAAA;AAY/B,IAAA,WAAA,CAAuC,KAAuC,EAAA;QAAvC,IAAK,CAAA,KAAA,GAAL,KAAK,CAAkC;QAT9E,IAAI,CAAA,IAAA,GAA6B,IAAI,CAAC;QAItC,IAAI,CAAA,IAAA,GAA4B,GAAG,CAAC;QAGpC,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A,CAAA;sBAFH,KAAK;;sBACL,WAAW;uBAAC,gBAAgB,CAAA;gBAI7B,GAAG,EAAA,CAAA;sBADF,KAAK;;;ME1BG,mBAAmB,CAAA;;iHAAnB,mBAAmB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;AAAnB,mBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,mBAAmB,iBAHb,sBAAsB,CAAA,EAAA,OAAA,EAAA,CAD3B,YAAY,EAAE,YAAY,aAE1B,sBAAsB,CAAA,EAAA,CAAA,CAAA;AAEvB,mBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,mBAAmB,EAJnB,OAAA,EAAA,CAAA,CAAC,YAAY,EAAE,YAAY,CAAC,CAAA,EAAA,CAAA,CAAA;4FAI5B,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAL/B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,YAAY,CAAC;oBACrC,YAAY,EAAE,CAAC,sBAAsB,CAAC;oBACtC,OAAO,EAAE,CAAC,sBAAsB,CAAC;AACpC,iBAAA,CAAA;;;ACVD;;AAEG;;;;"}
@@ -48,5 +48,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
48
48
  }]
49
49
  }] });
50
50
 
51
+ /**
52
+ * Generated bundle index. Do not edit.
53
+ */
54
+
51
55
  export { TuiMultiSelectOptionComponent, TuiMultiSelectOptionModule };
52
56
  //# sourceMappingURL=taiga-ui-kit-components-multi-select-option.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-multi-select-option.js","sources":["../../../projects/kit/components/multi-select-option/multi-select-option.component.ts","../../../projects/kit/components/multi-select-option/multi-select-option.template.html","../../../projects/kit/components/multi-select-option/multi-select-option.module.ts"],"sourcesContent":["import {ChangeDetectionStrategy, Component} from '@angular/core';\nimport {tuiIsPresent} from '@taiga-ui/cdk';\nimport {TuiSizeL} from '@taiga-ui/core';\nimport {TuiSelectOptionComponent} from '@taiga-ui/kit/components/select-option';\n\n@Component({\n selector: 'tui-multi-select-option',\n templateUrl: './multi-select-option.template.html',\n styleUrls: ['./multi-select-option.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TuiMultiSelectOptionComponent<\n T extends any[],\n> extends TuiSelectOptionComponent<T> {\n get size(): TuiSizeL {\n return this.option.size === 'l' ||\n (this.dataList?.size === 'l' && !this.option.size)\n ? 'l'\n : 'm';\n }\n\n protected override get selected(): boolean {\n const {value} = this.option;\n\n return (\n tuiIsPresent(value) &&\n tuiIsPresent(this.value) &&\n this.value.some(item => this.matcher(item, value))\n );\n }\n}\n","<tui-primitive-checkbox\n class=\"t-checkbox\"\n [size]=\"size\"\n [value]=\"selected$ | async\"\n></tui-primitive-checkbox>\n<ng-container [ngTemplateOutlet]=\"context.$implicit\"></ng-container>\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiPrimitiveCheckboxModule} from '@taiga-ui/core';\n\nimport {TuiMultiSelectOptionComponent} from './multi-select-option.component';\n\n@NgModule({\n imports: [CommonModule, TuiPrimitiveCheckboxModule],\n declarations: [TuiMultiSelectOptionComponent],\n exports: [TuiMultiSelectOptionComponent],\n})\nexport class TuiMultiSelectOptionModule {}\n"],"names":[],"mappings":";;;;;;;;;AAWM,MAAO,6BAEX,SAAQ,wBAA2B,CAAA;AACjC,IAAA,IAAI,IAAI,GAAA;;AACJ,QAAA,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,KAAK,G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select-option/multi-select-option.component.ts","../../../projects/kit/components/multi-select-option/multi-select-option.template.html","../../../projects/kit/components/multi-select-option/multi-select-option.module.ts","../../../projects/kit/components/multi-select-option/taiga-ui-kit-components-multi-select-option.ts"],"sourcesContent":["import {ChangeDetectionStrategy, Component} from '@angular/core';\nimport {tuiIsPresent} from '@taiga-ui/cdk';\nimport {TuiSizeL} from '@taiga-ui/core';\nimport {TuiSelectOptionComponent} from '@taiga-ui/kit/components/select-option';\n\n@Component({\n selector: 'tui-multi-select-option',\n templateUrl: './multi-select-option.template.html',\n styleUrls: ['./multi-select-option.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TuiMultiSelectOptionComponent<\n T extends any[],\n> extends TuiSelectOptionComponent<T> {\n get size(): TuiSizeL {\n return this.option.size === 'l' ||\n (this.dataList?.size === 'l' && !this.option.size)\n ? 'l'\n : 'm';\n }\n\n protected override get selected(): boolean {\n const {value} = this.option;\n\n return (\n tuiIsPresent(value) &&\n tuiIsPresent(this.value) &&\n this.value.some(item => this.matcher(item, value))\n );\n }\n}\n","<tui-primitive-checkbox\n class=\"t-checkbox\"\n [size]=\"size\"\n [value]=\"selected$ | async\"\n></tui-primitive-checkbox>\n<ng-container [ngTemplateOutlet]=\"context.$implicit\"></ng-container>\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiPrimitiveCheckboxModule} from '@taiga-ui/core';\n\nimport {TuiMultiSelectOptionComponent} from './multi-select-option.component';\n\n@NgModule({\n imports: [CommonModule, TuiPrimitiveCheckboxModule],\n declarations: [TuiMultiSelectOptionComponent],\n exports: [TuiMultiSelectOptionComponent],\n})\nexport class TuiMultiSelectOptionModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AAWM,MAAO,6BAEX,SAAQ,wBAA2B,CAAA;AACjC,IAAA,IAAI,IAAI,GAAA;;AACJ,QAAA,OAAO,IAAI,CAAC,MAAM,CA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ELECT_DEFAULT_OPTIONS = {
31
31
  expandable: true,
32
32
  valueContent: ``,
33
33
  };
34
+ /**
35
+ * Default parameters for MultiSelect component
36
+ */
34
37
  const TUI_MULTI_SELECT_OPTIONS = tuiCreateToken(TUI_MULTI_SELECT_DEFAULT_OPTIONS);
35
38
  function tuiMultiSelectOptionsProvider(options) {
36
39
  return tuiProvideOptions(TUI_MULTI_SELECT_OPTIONS, options, TUI_MULTI_SELECT_DEFAULT_OPTIONS);
@@ -96,6 +99,7 @@ class TuiMultiSelectComponent extends AbstractTuiMultipleControl {
96
99
  get computedValue() {
97
100
  return this.computedGroup ? EMPTY_ARRAY : this.value;
98
101
  }
102
+ // @bad TODO: think of a better way
99
103
  get searchOrSpace() {
100
104
  return this.computedGroup ? ' ' : this.searchString;
101
105
  }
@@ -713,5 +717,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
713
717
  }]
714
718
  }] });
715
719
 
720
+ /**
721
+ * Generated bundle index. Do not edit.
722
+ */
723
+
716
724
  export { AbstractTuiNativeMultiSelect, TUI_MULTI_SELECT_DEFAULT_OPTIONS, TUI_MULTI_SELECT_OPTION, TUI_MULTI_SELECT_OPTIONS, TuiHideSelectedPipe, TuiMultiSelectComponent, TuiMultiSelectDirective, TuiMultiSelectGroupComponent, TuiMultiSelectGroupDirective, TuiMultiSelectModule, TuiNativeMultiSelectComponent, TuiNativeMultiSelectGroupComponent, tuiMultiSelectOptionsProvider };
717
725
  //# sourceMappingURL=taiga-ui-kit-components-multi-select.js.map