@taiga-ui/kit 2.41.1 → 2.44.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 (710) hide show
  1. package/abstract/slider/slider.d.ts +3 -3
  2. package/abstract/taiga-ui-kit-abstract.metadata.json +1 -1
  3. package/bundles/taiga-ui-kit-abstract.umd.js +1 -0
  4. package/bundles/taiga-ui-kit-abstract.umd.js.map +1 -1
  5. package/bundles/taiga-ui-kit-abstract.umd.min.js +2 -2
  6. package/bundles/taiga-ui-kit-abstract.umd.min.js.map +1 -1
  7. package/bundles/taiga-ui-kit-components-accordion.umd.js.map +1 -1
  8. package/bundles/taiga-ui-kit-components-accordion.umd.min.js.map +1 -1
  9. package/bundles/taiga-ui-kit-components-action.umd.js.map +1 -1
  10. package/bundles/taiga-ui-kit-components-action.umd.min.js.map +1 -1
  11. package/bundles/taiga-ui-kit-components-avatar.umd.js +1 -1
  12. package/bundles/taiga-ui-kit-components-avatar.umd.js.map +1 -1
  13. package/bundles/taiga-ui-kit-components-avatar.umd.min.js +1 -1
  14. package/bundles/taiga-ui-kit-components-avatar.umd.min.js.map +1 -1
  15. package/bundles/taiga-ui-kit-components-breadcrumbs.umd.js.map +1 -1
  16. package/bundles/taiga-ui-kit-components-breadcrumbs.umd.min.js.map +1 -1
  17. package/bundles/taiga-ui-kit-components-calendar-month.umd.js.map +1 -1
  18. package/bundles/taiga-ui-kit-components-calendar-month.umd.min.js.map +1 -1
  19. package/bundles/taiga-ui-kit-components-calendar-range.umd.js.map +1 -1
  20. package/bundles/taiga-ui-kit-components-calendar-range.umd.min.js.map +1 -1
  21. package/bundles/taiga-ui-kit-components-carousel.umd.js.map +1 -1
  22. package/bundles/taiga-ui-kit-components-carousel.umd.min.js.map +1 -1
  23. package/bundles/taiga-ui-kit-components-checkbox-block.umd.js.map +1 -1
  24. package/bundles/taiga-ui-kit-components-checkbox-block.umd.min.js.map +1 -1
  25. package/bundles/taiga-ui-kit-components-checkbox-labeled.umd.js.map +1 -1
  26. package/bundles/taiga-ui-kit-components-checkbox-labeled.umd.min.js.map +1 -1
  27. package/bundles/taiga-ui-kit-components-checkbox.umd.js.map +1 -1
  28. package/bundles/taiga-ui-kit-components-checkbox.umd.min.js.map +1 -1
  29. package/bundles/taiga-ui-kit-components-combo-box.umd.js +1 -10
  30. package/bundles/taiga-ui-kit-components-combo-box.umd.js.map +1 -1
  31. package/bundles/taiga-ui-kit-components-combo-box.umd.min.js +1 -1
  32. package/bundles/taiga-ui-kit-components-combo-box.umd.min.js.map +1 -1
  33. package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.js +65 -45
  34. package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.js.map +1 -1
  35. package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.min.js +2 -2
  36. package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.min.js.map +1 -1
  37. package/bundles/taiga-ui-kit-components-field-error.umd.js.map +1 -1
  38. package/bundles/taiga-ui-kit-components-field-error.umd.min.js.map +1 -1
  39. package/bundles/taiga-ui-kit-components-files.umd.js +49 -49
  40. package/bundles/taiga-ui-kit-components-files.umd.js.map +1 -1
  41. package/bundles/taiga-ui-kit-components-files.umd.min.js +2 -2
  42. package/bundles/taiga-ui-kit-components-files.umd.min.js.map +1 -1
  43. package/bundles/taiga-ui-kit-components-filter.umd.js.map +1 -1
  44. package/bundles/taiga-ui-kit-components-filter.umd.min.js.map +1 -1
  45. package/bundles/taiga-ui-kit-components-input-copy.umd.js.map +1 -1
  46. package/bundles/taiga-ui-kit-components-input-copy.umd.min.js.map +1 -1
  47. package/bundles/taiga-ui-kit-components-input-count.umd.js.map +1 -1
  48. package/bundles/taiga-ui-kit-components-input-count.umd.min.js.map +1 -1
  49. package/bundles/taiga-ui-kit-components-input-date-range.umd.js +3 -1
  50. package/bundles/taiga-ui-kit-components-input-date-range.umd.js.map +1 -1
  51. package/bundles/taiga-ui-kit-components-input-date-range.umd.min.js.map +1 -1
  52. package/bundles/taiga-ui-kit-components-input-date-time.umd.js +4 -2
  53. package/bundles/taiga-ui-kit-components-input-date-time.umd.js.map +1 -1
  54. package/bundles/taiga-ui-kit-components-input-date-time.umd.min.js +1 -1
  55. package/bundles/taiga-ui-kit-components-input-date-time.umd.min.js.map +1 -1
  56. package/bundles/taiga-ui-kit-components-input-date.umd.js +3 -1
  57. package/bundles/taiga-ui-kit-components-input-date.umd.js.map +1 -1
  58. package/bundles/taiga-ui-kit-components-input-date.umd.min.js.map +1 -1
  59. package/bundles/taiga-ui-kit-components-input-file.umd.js.map +1 -1
  60. package/bundles/taiga-ui-kit-components-input-file.umd.min.js.map +1 -1
  61. package/bundles/taiga-ui-kit-components-input-files.umd.js.map +1 -1
  62. package/bundles/taiga-ui-kit-components-input-files.umd.min.js.map +1 -1
  63. package/bundles/taiga-ui-kit-components-input-inline.umd.js.map +1 -1
  64. package/bundles/taiga-ui-kit-components-input-inline.umd.min.js.map +1 -1
  65. package/bundles/taiga-ui-kit-components-input-month-range.umd.js.map +1 -1
  66. package/bundles/taiga-ui-kit-components-input-month-range.umd.min.js.map +1 -1
  67. package/bundles/taiga-ui-kit-components-input-month.umd.js +1 -1
  68. package/bundles/taiga-ui-kit-components-input-month.umd.js.map +1 -1
  69. package/bundles/taiga-ui-kit-components-input-month.umd.min.js +1 -1
  70. package/bundles/taiga-ui-kit-components-input-month.umd.min.js.map +1 -1
  71. package/bundles/taiga-ui-kit-components-input-number.umd.js +3 -2
  72. package/bundles/taiga-ui-kit-components-input-number.umd.js.map +1 -1
  73. package/bundles/taiga-ui-kit-components-input-number.umd.min.js +1 -1
  74. package/bundles/taiga-ui-kit-components-input-number.umd.min.js.map +1 -1
  75. package/bundles/taiga-ui-kit-components-input-password.umd.js +1 -1
  76. package/bundles/taiga-ui-kit-components-input-password.umd.js.map +1 -1
  77. package/bundles/taiga-ui-kit-components-input-password.umd.min.js.map +1 -1
  78. package/bundles/taiga-ui-kit-components-input-phone-international.umd.js.map +1 -1
  79. package/bundles/taiga-ui-kit-components-input-phone-international.umd.min.js.map +1 -1
  80. package/bundles/taiga-ui-kit-components-input-phone.umd.js.map +1 -1
  81. package/bundles/taiga-ui-kit-components-input-phone.umd.min.js.map +1 -1
  82. package/bundles/taiga-ui-kit-components-input-range.umd.js +5 -1
  83. package/bundles/taiga-ui-kit-components-input-range.umd.js.map +1 -1
  84. package/bundles/taiga-ui-kit-components-input-range.umd.min.js +1 -1
  85. package/bundles/taiga-ui-kit-components-input-range.umd.min.js.map +1 -1
  86. package/bundles/taiga-ui-kit-components-input-slider.umd.js +1 -1
  87. package/bundles/taiga-ui-kit-components-input-slider.umd.js.map +1 -1
  88. package/bundles/taiga-ui-kit-components-input-slider.umd.min.js +1 -1
  89. package/bundles/taiga-ui-kit-components-input-slider.umd.min.js.map +1 -1
  90. package/bundles/taiga-ui-kit-components-input-tag.umd.js +9 -8
  91. package/bundles/taiga-ui-kit-components-input-tag.umd.js.map +1 -1
  92. package/bundles/taiga-ui-kit-components-input-tag.umd.min.js +1 -1
  93. package/bundles/taiga-ui-kit-components-input-tag.umd.min.js.map +1 -1
  94. package/bundles/taiga-ui-kit-components-input-time.umd.js +1 -1
  95. package/bundles/taiga-ui-kit-components-input-time.umd.js.map +1 -1
  96. package/bundles/taiga-ui-kit-components-input-time.umd.min.js +1 -1
  97. package/bundles/taiga-ui-kit-components-input-time.umd.min.js.map +1 -1
  98. package/bundles/taiga-ui-kit-components-input.umd.js.map +1 -1
  99. package/bundles/taiga-ui-kit-components-input.umd.min.js.map +1 -1
  100. package/bundles/taiga-ui-kit-components-line-clamp.umd.js +7 -94
  101. package/bundles/taiga-ui-kit-components-line-clamp.umd.js.map +1 -1
  102. package/bundles/taiga-ui-kit-components-line-clamp.umd.min.js +2 -2
  103. package/bundles/taiga-ui-kit-components-line-clamp.umd.min.js.map +1 -1
  104. package/bundles/taiga-ui-kit-components-multi-select.umd.js +2 -2
  105. package/bundles/taiga-ui-kit-components-multi-select.umd.js.map +1 -1
  106. package/bundles/taiga-ui-kit-components-multi-select.umd.min.js +1 -1
  107. package/bundles/taiga-ui-kit-components-multi-select.umd.min.js.map +1 -1
  108. package/bundles/taiga-ui-kit-components-pagination.umd.js.map +1 -1
  109. package/bundles/taiga-ui-kit-components-pagination.umd.min.js.map +1 -1
  110. package/bundles/taiga-ui-kit-components-radio-block.umd.js +1 -1
  111. package/bundles/taiga-ui-kit-components-radio-block.umd.js.map +1 -1
  112. package/bundles/taiga-ui-kit-components-radio-block.umd.min.js +1 -1
  113. package/bundles/taiga-ui-kit-components-radio-block.umd.min.js.map +1 -1
  114. package/bundles/taiga-ui-kit-components-radio-labeled.umd.js +1 -1
  115. package/bundles/taiga-ui-kit-components-radio-labeled.umd.js.map +1 -1
  116. package/bundles/taiga-ui-kit-components-radio-labeled.umd.min.js +1 -1
  117. package/bundles/taiga-ui-kit-components-radio-labeled.umd.min.js.map +1 -1
  118. package/bundles/taiga-ui-kit-components-radio-list.umd.js.map +1 -1
  119. package/bundles/taiga-ui-kit-components-radio-list.umd.min.js.map +1 -1
  120. package/bundles/taiga-ui-kit-components-radio.umd.js +4 -2
  121. package/bundles/taiga-ui-kit-components-radio.umd.js.map +1 -1
  122. package/bundles/taiga-ui-kit-components-radio.umd.min.js +1 -1
  123. package/bundles/taiga-ui-kit-components-radio.umd.min.js.map +1 -1
  124. package/bundles/taiga-ui-kit-components-range.umd.js +67 -13
  125. package/bundles/taiga-ui-kit-components-range.umd.js.map +1 -1
  126. package/bundles/taiga-ui-kit-components-range.umd.min.js +2 -2
  127. package/bundles/taiga-ui-kit-components-range.umd.min.js.map +1 -1
  128. package/bundles/taiga-ui-kit-components-select-option.umd.js.map +1 -1
  129. package/bundles/taiga-ui-kit-components-select-option.umd.min.js.map +1 -1
  130. package/bundles/taiga-ui-kit-components-select.umd.js +1 -7
  131. package/bundles/taiga-ui-kit-components-select.umd.js.map +1 -1
  132. package/bundles/taiga-ui-kit-components-select.umd.min.js +2 -2
  133. package/bundles/taiga-ui-kit-components-select.umd.min.js.map +1 -1
  134. package/bundles/taiga-ui-kit-components-slider.umd.js +52 -49
  135. package/bundles/taiga-ui-kit-components-slider.umd.js.map +1 -1
  136. package/bundles/taiga-ui-kit-components-slider.umd.min.js +2 -2
  137. package/bundles/taiga-ui-kit-components-slider.umd.min.js.map +1 -1
  138. package/bundles/taiga-ui-kit-components-stepper.umd.js +1 -0
  139. package/bundles/taiga-ui-kit-components-stepper.umd.js.map +1 -1
  140. package/bundles/taiga-ui-kit-components-stepper.umd.min.js +1 -1
  141. package/bundles/taiga-ui-kit-components-stepper.umd.min.js.map +1 -1
  142. package/bundles/taiga-ui-kit-components-tabs.umd.js +67 -24
  143. package/bundles/taiga-ui-kit-components-tabs.umd.js.map +1 -1
  144. package/bundles/taiga-ui-kit-components-tabs.umd.min.js +2 -2
  145. package/bundles/taiga-ui-kit-components-tabs.umd.min.js.map +1 -1
  146. package/bundles/taiga-ui-kit-components-tag.umd.js.map +1 -1
  147. package/bundles/taiga-ui-kit-components-tag.umd.min.js.map +1 -1
  148. package/bundles/taiga-ui-kit-components-text-area.umd.js +2 -2
  149. package/bundles/taiga-ui-kit-components-text-area.umd.js.map +1 -1
  150. package/bundles/taiga-ui-kit-components-text-area.umd.min.js +1 -1
  151. package/bundles/taiga-ui-kit-components-text-area.umd.min.js.map +1 -1
  152. package/bundles/taiga-ui-kit-components-toggle.umd.js.map +1 -1
  153. package/bundles/taiga-ui-kit-components-toggle.umd.min.js.map +1 -1
  154. package/bundles/taiga-ui-kit-components-tree.umd.js +1 -1
  155. package/bundles/taiga-ui-kit-components-tree.umd.js.map +1 -1
  156. package/bundles/taiga-ui-kit-components-tree.umd.min.js +1 -1
  157. package/bundles/taiga-ui-kit-components-tree.umd.min.js.map +1 -1
  158. package/bundles/taiga-ui-kit-directives-dropdown-context.umd.js.map +1 -1
  159. package/bundles/taiga-ui-kit-directives-dropdown-context.umd.min.js.map +1 -1
  160. package/bundles/taiga-ui-kit-directives-dropdown-hover.umd.js.map +1 -1
  161. package/bundles/taiga-ui-kit-directives-dropdown-hover.umd.min.js.map +1 -1
  162. package/bundles/taiga-ui-kit-directives-dropdown-selection.umd.js.map +1 -1
  163. package/bundles/taiga-ui-kit-directives-dropdown-selection.umd.min.js.map +1 -1
  164. package/bundles/taiga-ui-kit-directives-highlight.umd.js.map +1 -1
  165. package/bundles/taiga-ui-kit-directives-highlight.umd.min.js.map +1 -1
  166. package/bundles/taiga-ui-kit-directives-lazy-loading.umd.js.map +1 -1
  167. package/bundles/taiga-ui-kit-directives-lazy-loading.umd.min.js.map +1 -1
  168. package/bundles/taiga-ui-kit-directives-present.umd.js.map +1 -1
  169. package/bundles/taiga-ui-kit-directives-present.umd.min.js.map +1 -1
  170. package/bundles/taiga-ui-kit-directives-project-class.umd.js.map +1 -1
  171. package/bundles/taiga-ui-kit-directives-project-class.umd.min.js.map +1 -1
  172. package/bundles/taiga-ui-kit-enums.umd.js +2 -2
  173. package/bundles/taiga-ui-kit-enums.umd.js.map +1 -1
  174. package/bundles/taiga-ui-kit-enums.umd.min.js.map +1 -1
  175. package/bundles/taiga-ui-kit-internal-primitive-calendar-range.umd.js.map +1 -1
  176. package/bundles/taiga-ui-kit-internal-primitive-calendar-range.umd.min.js.map +1 -1
  177. package/bundles/taiga-ui-kit-pipes-field-error.umd.js.map +1 -1
  178. package/bundles/taiga-ui-kit-pipes-field-error.umd.min.js.map +1 -1
  179. package/bundles/taiga-ui-kit-tokens.umd.js +1 -1
  180. package/bundles/taiga-ui-kit-tokens.umd.js.map +1 -1
  181. package/bundles/taiga-ui-kit-tokens.umd.min.js +1 -1
  182. package/bundles/taiga-ui-kit-tokens.umd.min.js.map +1 -1
  183. package/bundles/taiga-ui-kit-utils-dom.umd.js.map +1 -1
  184. package/bundles/taiga-ui-kit-utils-dom.umd.min.js.map +1 -1
  185. package/bundles/taiga-ui-kit-utils-math.umd.js +253 -4
  186. package/bundles/taiga-ui-kit-utils-math.umd.js.map +1 -1
  187. package/bundles/taiga-ui-kit-utils-math.umd.min.js +15 -1
  188. package/bundles/taiga-ui-kit-utils-math.umd.min.js.map +1 -1
  189. package/bundles/taiga-ui-kit-utils.umd.js +12 -4
  190. package/bundles/taiga-ui-kit-utils.umd.js.map +1 -1
  191. package/bundles/taiga-ui-kit-utils.umd.min.js +1 -1
  192. package/components/accordion/accordion-item/accordion-item-content.directive.d.ts +2 -2
  193. package/components/accordion/accordion-item/accordion-item.component.d.ts +2 -2
  194. package/components/accordion/taiga-ui-kit-components-accordion.metadata.json +1 -1
  195. package/components/avatar/taiga-ui-kit-components-avatar.metadata.json +1 -1
  196. package/components/breadcrumbs/breadcrumbs-wrapper.component.d.ts +1 -1
  197. package/components/combo-box/combo-box.component.d.ts +1 -2
  198. package/components/combo-box/taiga-ui-kit-components-combo-box.metadata.json +1 -1
  199. package/components/data-list-wrapper/data-list-group-wrapper.component.d.ts +5 -4
  200. package/components/data-list-wrapper/data-list-wrapper.component.d.ts +3 -13
  201. package/components/data-list-wrapper/data-list-wrapper.d.ts +15 -0
  202. package/components/data-list-wrapper/index.d.ts +1 -0
  203. package/components/data-list-wrapper/taiga-ui-kit-components-data-list-wrapper.metadata.json +1 -1
  204. package/components/files/files.component.d.ts +1 -1
  205. package/components/files/index.d.ts +1 -0
  206. package/components/files/taiga-ui-kit-components-files.d.ts +0 -1
  207. package/components/files/taiga-ui-kit-components-files.metadata.json +1 -1
  208. package/components/input-count/input-count-options.d.ts +2 -2
  209. package/components/input-count/input-count.component.d.ts +2 -2
  210. package/components/input-date/input-date.providers.d.ts +2 -1
  211. package/components/input-date/taiga-ui-kit-components-input-date.metadata.json +1 -1
  212. package/components/input-date-range/input-date-range.providers.d.ts +2 -1
  213. package/components/input-date-range/taiga-ui-kit-components-input-date-range.metadata.json +1 -1
  214. package/components/input-date-time/input-date-time.providers.d.ts +2 -1
  215. package/components/input-date-time/taiga-ui-kit-components-input-date-time.metadata.json +1 -1
  216. package/components/input-file/file/file.component.d.ts +2 -2
  217. package/components/input-month/taiga-ui-kit-components-input-month.metadata.json +1 -1
  218. package/components/input-number/input-number.component.d.ts +2 -2
  219. package/components/input-number/taiga-ui-kit-components-input-number.metadata.json +1 -1
  220. package/components/input-password/input-password-options.d.ts +2 -2
  221. package/components/input-password/input-password.directive.d.ts +2 -1
  222. package/components/input-password/taiga-ui-kit-components-input-password.metadata.json +1 -1
  223. package/components/input-phone/input-phone.component.d.ts +2 -2
  224. package/components/input-range/input-range.component.d.ts +3 -2
  225. package/components/input-range/taiga-ui-kit-components-input-range.metadata.json +1 -1
  226. package/components/input-tag/input-tag.component.d.ts +4 -7
  227. package/components/input-tag/taiga-ui-kit-components-input-tag.metadata.json +1 -1
  228. package/components/input-time/input-time-options.d.ts +1 -1
  229. package/components/input-time/input-time.component.d.ts +2 -2
  230. package/components/input-time/taiga-ui-kit-components-input-time.metadata.json +1 -1
  231. package/components/line-clamp/index.d.ts +0 -1
  232. package/components/line-clamp/line-clamp.component.d.ts +0 -1
  233. package/components/line-clamp/taiga-ui-kit-components-line-clamp.metadata.json +1 -1
  234. package/components/multi-select/multi-select-group/multi-select-group.directive.d.ts +3 -3
  235. package/components/multi-select/multi-select.component.d.ts +2 -2
  236. package/components/multi-select/taiga-ui-kit-components-multi-select.metadata.json +1 -1
  237. package/components/radio/radio.component.d.ts +2 -2
  238. package/components/radio-block/taiga-ui-kit-components-radio-block.metadata.json +1 -1
  239. package/components/radio-labeled/taiga-ui-kit-components-radio-labeled.metadata.json +1 -1
  240. package/components/radio-list/taiga-ui-kit-components-radio-list.metadata.json +1 -1
  241. package/components/range/range.component.d.ts +11 -2
  242. package/components/range/taiga-ui-kit-components-range.metadata.json +1 -1
  243. package/components/select/select.component.d.ts +0 -1
  244. package/components/select/taiga-ui-kit-components-select.metadata.json +1 -1
  245. package/components/select-option/select-option.component.d.ts +2 -2
  246. package/components/select-option/taiga-ui-kit-components-select-option.metadata.json +1 -1
  247. package/components/slider/slider-readonly.directive.d.ts +4 -1
  248. package/components/slider/taiga-ui-kit-components-slider.metadata.json +1 -1
  249. package/components/stepper/taiga-ui-kit-components-stepper.metadata.json +1 -1
  250. package/components/tabs/index.d.ts +1 -0
  251. package/components/tabs/tab.directive.d.ts +2 -2
  252. package/components/tabs/tabs/tabs.component.d.ts +3 -1
  253. package/components/tabs/tabs-options.d.ts +9 -0
  254. package/components/tabs/tabs-with-more/tabs-with-more.component.d.ts +9 -4
  255. package/components/tabs/taiga-ui-kit-components-tabs.metadata.json +1 -1
  256. package/components/text-area/taiga-ui-kit-components-text-area.metadata.json +1 -1
  257. package/components/tree/misc/tree.interfaces.d.ts +1 -1
  258. package/components/tree/taiga-ui-kit-components-tree.metadata.json +1 -1
  259. package/directives/dropdown-selection/dropdown-selection.directive.d.ts +1 -1
  260. package/enums/dropdown-position.d.ts +2 -1
  261. package/enums/step-state.d.ts +2 -1
  262. package/enums/taiga-ui-kit-enums.metadata.json +1 -1
  263. package/esm2015/abstract/input-slider.js +1 -1
  264. package/esm2015/abstract/slider/slider.js +3 -2
  265. package/esm2015/components/accordion/accordion-item/accordion-item-content.directive.js +1 -1
  266. package/esm2015/components/accordion/accordion-item/accordion-item.component.js +1 -1
  267. package/esm2015/components/accordion/accordion.component.js +1 -1
  268. package/esm2015/components/action/action.component.js +1 -1
  269. package/esm2015/components/avatar/avatar.component.js +2 -2
  270. package/esm2015/components/breadcrumbs/breadcrumbs-wrapper.component.js +1 -1
  271. package/esm2015/components/calendar-month/calendar-month.component.js +1 -1
  272. package/esm2015/components/calendar-range/calendar-range.component.js +1 -1
  273. package/esm2015/components/carousel/carousel.component.js +1 -1
  274. package/esm2015/components/checkbox/checkbox.component.js +1 -1
  275. package/esm2015/components/checkbox-block/checkbox-block.component.js +1 -1
  276. package/esm2015/components/checkbox-labeled/checkbox-labeled.component.js +1 -1
  277. package/esm2015/components/combo-box/combo-box-strict.directive.js +1 -1
  278. package/esm2015/components/combo-box/combo-box.component.js +3 -12
  279. package/esm2015/components/combo-box/combo-box.directive.js +1 -1
  280. package/esm2015/components/data-list-wrapper/data-list-group-wrapper.component.js +15 -10
  281. package/esm2015/components/data-list-wrapper/data-list-wrapper.component.js +7 -40
  282. package/esm2015/components/data-list-wrapper/data-list-wrapper.js +51 -0
  283. package/esm2015/components/data-list-wrapper/index.js +2 -1
  284. package/esm2015/components/field-error/field-error.component.js +1 -1
  285. package/esm2015/components/files/file/file.component.js +1 -1
  286. package/esm2015/components/files/files.component.js +1 -1
  287. package/esm2015/components/files/index.js +2 -1
  288. package/esm2015/components/files/taiga-ui-kit-components-files.js +1 -2
  289. package/esm2015/components/filter/filter.component.js +1 -1
  290. package/esm2015/components/input/input.component.js +1 -1
  291. package/esm2015/components/input/input.directive.js +1 -1
  292. package/esm2015/components/input-copy/input-copy.component.js +1 -1
  293. package/esm2015/components/input-copy/input-copy.directive.js +1 -1
  294. package/esm2015/components/input-count/input-count-options.js +1 -1
  295. package/esm2015/components/input-count/input-count.component.js +1 -1
  296. package/esm2015/components/input-count/input-count.directive.js +1 -1
  297. package/esm2015/components/input-date/input-date.component.js +1 -1
  298. package/esm2015/components/input-date/input-date.directive.js +1 -1
  299. package/esm2015/components/input-date/input-date.providers.js +1 -1
  300. package/esm2015/components/input-date-range/input-date-range.component.js +1 -1
  301. package/esm2015/components/input-date-range/input-date-range.directive.js +1 -1
  302. package/esm2015/components/input-date-range/input-date-range.providers.js +1 -1
  303. package/esm2015/components/input-date-time/input-date-time.component.js +2 -2
  304. package/esm2015/components/input-date-time/input-date-time.directive.js +1 -1
  305. package/esm2015/components/input-date-time/input-date-time.providers.js +1 -1
  306. package/esm2015/components/input-file/file/file.component.js +1 -1
  307. package/esm2015/components/input-file/input-file.component.js +1 -1
  308. package/esm2015/components/input-files/input-files.component.js +1 -1
  309. package/esm2015/components/input-inline/input-inline.component.js +1 -1
  310. package/esm2015/components/input-month/input-month.component.js +2 -2
  311. package/esm2015/components/input-month/input-month.directive.js +1 -1
  312. package/esm2015/components/input-month-range/input-month-range.component.js +1 -1
  313. package/esm2015/components/input-month-range/input-month-range.directive.js +1 -1
  314. package/esm2015/components/input-number/input-number.component.js +6 -5
  315. package/esm2015/components/input-number/input-number.directive.js +1 -1
  316. package/esm2015/components/input-password/input-password-options.js +3 -3
  317. package/esm2015/components/input-password/input-password.component.js +1 -1
  318. package/esm2015/components/input-password/input-password.directive.js +1 -1
  319. package/esm2015/components/input-phone/input-phone.component.js +1 -1
  320. package/esm2015/components/input-phone/input-phone.directive.js +1 -1
  321. package/esm2015/components/input-phone-international/input-phone-international.component.js +1 -1
  322. package/esm2015/components/input-range/input-range.component.js +7 -3
  323. package/esm2015/components/input-slider/input-slider.component.js +3 -3
  324. package/esm2015/components/input-tag/input-tag.component.js +10 -9
  325. package/esm2015/components/input-time/input-time-options.js +1 -1
  326. package/esm2015/components/input-time/input-time.component.js +2 -2
  327. package/esm2015/components/line-clamp/index.js +1 -2
  328. package/esm2015/components/line-clamp/line-clamp.component.js +3 -6
  329. package/esm2015/components/line-clamp/line-clamp.module.js +2 -3
  330. package/esm2015/components/multi-select/multi-select-group/multi-select-group.component.js +2 -2
  331. package/esm2015/components/multi-select/multi-select.component.js +2 -2
  332. package/esm2015/components/pagination/pagination.component.js +1 -1
  333. package/esm2015/components/radio/radio.component.js +5 -3
  334. package/esm2015/components/radio-block/radio-block.component.js +2 -2
  335. package/esm2015/components/radio-labeled/radio-labeled.component.js +2 -2
  336. package/esm2015/components/radio-list/radio-list.component.js +1 -1
  337. package/esm2015/components/range/range.component.js +70 -13
  338. package/esm2015/components/select/select.component.js +3 -9
  339. package/esm2015/components/select/select.directive.js +1 -1
  340. package/esm2015/components/select-option/select-option.component.js +1 -1
  341. package/esm2015/components/slider/slider-key-steps.directive.js +11 -28
  342. package/esm2015/components/slider/slider-old.component.js +1 -1
  343. package/esm2015/components/slider/slider-readonly.directive.js +38 -9
  344. package/esm2015/components/slider/slider.component.js +2 -2
  345. package/esm2015/components/stepper/step/step.component.js +1 -1
  346. package/esm2015/components/stepper/stepper.component.js +3 -2
  347. package/esm2015/components/tabs/index.js +2 -1
  348. package/esm2015/components/tabs/tab/tab.component.js +1 -1
  349. package/esm2015/components/tabs/tab.directive.js +1 -1
  350. package/esm2015/components/tabs/tabs/tabs.component.js +14 -10
  351. package/esm2015/components/tabs/tabs-options.js +14 -0
  352. package/esm2015/components/tabs/tabs-with-more/tabs-with-more.component.js +38 -17
  353. package/esm2015/components/tag/tag.component.js +1 -1
  354. package/esm2015/components/text-area/text-area.component.js +3 -3
  355. package/esm2015/components/text-area/text-area.directive.js +1 -1
  356. package/esm2015/components/toggle/toggle.component.js +1 -1
  357. package/esm2015/components/tree/components/tree/tree.component.js +2 -2
  358. package/esm2015/components/tree/components/tree-item/tree-item.component.js +1 -1
  359. package/esm2015/components/tree/components/tree-item-content/tree-item-content.component.js +1 -1
  360. package/esm2015/components/tree/directives/tree-controller.directive.js +1 -1
  361. package/esm2015/components/tree/directives/tree-item-controller.directive.js +1 -1
  362. package/esm2015/components/tree/directives/tree-node.directive.js +1 -1
  363. package/esm2015/components/tree/misc/tree.interfaces.js +1 -1
  364. package/esm2015/components/tree/misc/tree.service.js +1 -1
  365. package/esm2015/directives/dropdown-context/dropdown-context.directive.js +1 -1
  366. package/esm2015/directives/dropdown-hover/dropdown-hover.directive.js +1 -1
  367. package/esm2015/directives/dropdown-selection/dropdown-selection.directive.js +1 -1
  368. package/esm2015/directives/highlight/highlight.directive.js +1 -1
  369. package/esm2015/directives/lazy-loading/lazy-loading.directive.js +1 -1
  370. package/esm2015/directives/lazy-loading/lazy-loading.service.js +1 -1
  371. package/esm2015/directives/present/present.directive.js +1 -1
  372. package/esm2015/directives/project-class/project-class.directive.js +1 -1
  373. package/esm2015/enums/dropdown-position.js +2 -2
  374. package/esm2015/enums/step-state.js +2 -2
  375. package/esm2015/internal/primitive-calendar-range/primitive-calendar-range.component.js +1 -1
  376. package/esm2015/pipes/field-error/field-error-content-pipe.js +1 -1
  377. package/esm2015/pipes/field-error/field-error-pipe.js +1 -1
  378. package/esm2015/tokens/i18n.js +2 -2
  379. package/esm2015/types/handler-with-context.js +1 -1
  380. package/esm2015/utils/dom/scroll-to-element.js +1 -1
  381. package/esm2015/utils/dom/set-range-offset.js +1 -1
  382. package/esm2015/utils/index.js +2 -1
  383. package/esm2015/utils/math/index.js +2 -1
  384. package/esm2015/utils/math/key-steps.js +23 -0
  385. package/esm5/abstract/input-slider.js +1 -1
  386. package/esm5/abstract/slider/slider.js +3 -2
  387. package/esm5/components/accordion/accordion-item/accordion-item-content.directive.js +1 -1
  388. package/esm5/components/accordion/accordion-item/accordion-item.component.js +1 -1
  389. package/esm5/components/accordion/accordion.component.js +1 -1
  390. package/esm5/components/action/action.component.js +1 -1
  391. package/esm5/components/avatar/avatar.component.js +2 -2
  392. package/esm5/components/breadcrumbs/breadcrumbs-wrapper.component.js +1 -1
  393. package/esm5/components/calendar-month/calendar-month.component.js +1 -1
  394. package/esm5/components/calendar-range/calendar-range.component.js +1 -1
  395. package/esm5/components/carousel/carousel.component.js +1 -1
  396. package/esm5/components/checkbox/checkbox.component.js +1 -1
  397. package/esm5/components/checkbox-block/checkbox-block.component.js +1 -1
  398. package/esm5/components/checkbox-labeled/checkbox-labeled.component.js +1 -1
  399. package/esm5/components/combo-box/combo-box-strict.directive.js +1 -1
  400. package/esm5/components/combo-box/combo-box.component.js +3 -12
  401. package/esm5/components/combo-box/combo-box.directive.js +1 -1
  402. package/esm5/components/data-list-wrapper/data-list-group-wrapper.component.js +15 -10
  403. package/esm5/components/data-list-wrapper/data-list-wrapper.component.js +12 -55
  404. package/esm5/components/data-list-wrapper/data-list-wrapper.js +64 -0
  405. package/esm5/components/data-list-wrapper/index.js +2 -1
  406. package/esm5/components/field-error/field-error.component.js +1 -1
  407. package/esm5/components/files/file/file.component.js +1 -1
  408. package/esm5/components/files/files.component.js +1 -1
  409. package/esm5/components/files/index.js +2 -1
  410. package/esm5/components/files/taiga-ui-kit-components-files.js +1 -2
  411. package/esm5/components/filter/filter.component.js +1 -1
  412. package/esm5/components/input/input.component.js +1 -1
  413. package/esm5/components/input/input.directive.js +1 -1
  414. package/esm5/components/input-copy/input-copy.component.js +1 -1
  415. package/esm5/components/input-copy/input-copy.directive.js +1 -1
  416. package/esm5/components/input-count/input-count-options.js +1 -1
  417. package/esm5/components/input-count/input-count.component.js +1 -1
  418. package/esm5/components/input-count/input-count.directive.js +1 -1
  419. package/esm5/components/input-date/input-date.component.js +1 -1
  420. package/esm5/components/input-date/input-date.directive.js +1 -1
  421. package/esm5/components/input-date/input-date.providers.js +4 -2
  422. package/esm5/components/input-date-range/input-date-range.component.js +1 -1
  423. package/esm5/components/input-date-range/input-date-range.directive.js +1 -1
  424. package/esm5/components/input-date-range/input-date-range.providers.js +4 -2
  425. package/esm5/components/input-date-time/input-date-time.component.js +2 -2
  426. package/esm5/components/input-date-time/input-date-time.directive.js +1 -1
  427. package/esm5/components/input-date-time/input-date-time.providers.js +4 -2
  428. package/esm5/components/input-file/file/file.component.js +1 -1
  429. package/esm5/components/input-file/input-file.component.js +1 -1
  430. package/esm5/components/input-files/input-files.component.js +1 -1
  431. package/esm5/components/input-inline/input-inline.component.js +1 -1
  432. package/esm5/components/input-month/input-month.component.js +2 -2
  433. package/esm5/components/input-month/input-month.directive.js +1 -1
  434. package/esm5/components/input-month-range/input-month-range.component.js +1 -1
  435. package/esm5/components/input-month-range/input-month-range.directive.js +1 -1
  436. package/esm5/components/input-number/input-number.component.js +6 -5
  437. package/esm5/components/input-number/input-number.directive.js +1 -1
  438. package/esm5/components/input-password/input-password-options.js +2 -2
  439. package/esm5/components/input-password/input-password.component.js +1 -1
  440. package/esm5/components/input-password/input-password.directive.js +1 -1
  441. package/esm5/components/input-phone/input-phone.component.js +1 -1
  442. package/esm5/components/input-phone/input-phone.directive.js +1 -1
  443. package/esm5/components/input-phone-international/input-phone-international.component.js +1 -1
  444. package/esm5/components/input-range/input-range.component.js +6 -2
  445. package/esm5/components/input-slider/input-slider.component.js +2 -2
  446. package/esm5/components/input-tag/input-tag.component.js +10 -9
  447. package/esm5/components/input-time/input-time-options.js +1 -1
  448. package/esm5/components/input-time/input-time.component.js +2 -2
  449. package/esm5/components/line-clamp/index.js +1 -2
  450. package/esm5/components/line-clamp/line-clamp.component.js +3 -10
  451. package/esm5/components/line-clamp/line-clamp.module.js +2 -3
  452. package/esm5/components/multi-select/multi-select-group/multi-select-group.component.js +2 -2
  453. package/esm5/components/multi-select/multi-select.component.js +2 -2
  454. package/esm5/components/pagination/pagination.component.js +1 -1
  455. package/esm5/components/radio/radio.component.js +5 -3
  456. package/esm5/components/radio-block/radio-block.component.js +2 -2
  457. package/esm5/components/radio-labeled/radio-labeled.component.js +2 -2
  458. package/esm5/components/radio-list/radio-list.component.js +1 -1
  459. package/esm5/components/range/range.component.js +68 -12
  460. package/esm5/components/select/select.component.js +3 -9
  461. package/esm5/components/select/select.directive.js +1 -1
  462. package/esm5/components/select-option/select-option.component.js +1 -1
  463. package/esm5/components/slider/slider-key-steps.directive.js +13 -43
  464. package/esm5/components/slider/slider-old.component.js +1 -1
  465. package/esm5/components/slider/slider-readonly.directive.js +45 -9
  466. package/esm5/components/slider/slider.component.js +2 -2
  467. package/esm5/components/stepper/step/step.component.js +1 -1
  468. package/esm5/components/stepper/stepper.component.js +3 -2
  469. package/esm5/components/tabs/index.js +2 -1
  470. package/esm5/components/tabs/tab/tab.component.js +1 -1
  471. package/esm5/components/tabs/tab.directive.js +1 -1
  472. package/esm5/components/tabs/tabs/tabs.component.js +14 -10
  473. package/esm5/components/tabs/tabs-options.js +15 -0
  474. package/esm5/components/tabs/tabs-with-more/tabs-with-more.component.js +42 -17
  475. package/esm5/components/tag/tag.component.js +1 -1
  476. package/esm5/components/text-area/text-area.component.js +3 -3
  477. package/esm5/components/text-area/text-area.directive.js +1 -1
  478. package/esm5/components/toggle/toggle.component.js +1 -1
  479. package/esm5/components/tree/components/tree/tree.component.js +2 -2
  480. package/esm5/components/tree/components/tree-item/tree-item.component.js +1 -1
  481. package/esm5/components/tree/components/tree-item-content/tree-item-content.component.js +1 -1
  482. package/esm5/components/tree/directives/tree-controller.directive.js +1 -1
  483. package/esm5/components/tree/directives/tree-item-controller.directive.js +1 -1
  484. package/esm5/components/tree/directives/tree-node.directive.js +1 -1
  485. package/esm5/components/tree/misc/tree.interfaces.js +1 -1
  486. package/esm5/components/tree/misc/tree.service.js +1 -1
  487. package/esm5/directives/dropdown-context/dropdown-context.directive.js +1 -1
  488. package/esm5/directives/dropdown-hover/dropdown-hover.directive.js +1 -1
  489. package/esm5/directives/dropdown-selection/dropdown-selection.directive.js +1 -1
  490. package/esm5/directives/highlight/highlight.directive.js +1 -1
  491. package/esm5/directives/lazy-loading/lazy-loading.directive.js +1 -1
  492. package/esm5/directives/lazy-loading/lazy-loading.service.js +1 -1
  493. package/esm5/directives/present/present.directive.js +1 -1
  494. package/esm5/directives/project-class/project-class.directive.js +1 -1
  495. package/esm5/enums/dropdown-position.js +2 -2
  496. package/esm5/enums/step-state.js +2 -2
  497. package/esm5/internal/primitive-calendar-range/primitive-calendar-range.component.js +1 -1
  498. package/esm5/pipes/field-error/field-error-content-pipe.js +1 -1
  499. package/esm5/pipes/field-error/field-error-pipe.js +1 -1
  500. package/esm5/tokens/i18n.js +2 -2
  501. package/esm5/types/handler-with-context.js +1 -1
  502. package/esm5/utils/dom/scroll-to-element.js +1 -1
  503. package/esm5/utils/dom/set-range-offset.js +1 -1
  504. package/esm5/utils/index.js +2 -1
  505. package/esm5/utils/math/index.js +2 -1
  506. package/esm5/utils/math/key-steps.js +30 -0
  507. package/fesm2015/taiga-ui-kit-abstract.js +2 -1
  508. package/fesm2015/taiga-ui-kit-abstract.js.map +1 -1
  509. package/fesm2015/taiga-ui-kit-components-accordion.js.map +1 -1
  510. package/fesm2015/taiga-ui-kit-components-action.js.map +1 -1
  511. package/fesm2015/taiga-ui-kit-components-avatar.js +1 -1
  512. package/fesm2015/taiga-ui-kit-components-avatar.js.map +1 -1
  513. package/fesm2015/taiga-ui-kit-components-breadcrumbs.js.map +1 -1
  514. package/fesm2015/taiga-ui-kit-components-calendar-month.js.map +1 -1
  515. package/fesm2015/taiga-ui-kit-components-calendar-range.js.map +1 -1
  516. package/fesm2015/taiga-ui-kit-components-carousel.js.map +1 -1
  517. package/fesm2015/taiga-ui-kit-components-checkbox-block.js.map +1 -1
  518. package/fesm2015/taiga-ui-kit-components-checkbox-labeled.js.map +1 -1
  519. package/fesm2015/taiga-ui-kit-components-checkbox.js.map +1 -1
  520. package/fesm2015/taiga-ui-kit-components-combo-box.js +2 -11
  521. package/fesm2015/taiga-ui-kit-components-combo-box.js.map +1 -1
  522. package/fesm2015/taiga-ui-kit-components-data-list-wrapper.js +56 -38
  523. package/fesm2015/taiga-ui-kit-components-data-list-wrapper.js.map +1 -1
  524. package/fesm2015/taiga-ui-kit-components-field-error.js.map +1 -1
  525. package/fesm2015/taiga-ui-kit-components-files.js +47 -47
  526. package/fesm2015/taiga-ui-kit-components-files.js.map +1 -1
  527. package/fesm2015/taiga-ui-kit-components-filter.js.map +1 -1
  528. package/fesm2015/taiga-ui-kit-components-input-copy.js.map +1 -1
  529. package/fesm2015/taiga-ui-kit-components-input-count.js.map +1 -1
  530. package/fesm2015/taiga-ui-kit-components-input-date-range.js.map +1 -1
  531. package/fesm2015/taiga-ui-kit-components-input-date-time.js +1 -1
  532. package/fesm2015/taiga-ui-kit-components-input-date-time.js.map +1 -1
  533. package/fesm2015/taiga-ui-kit-components-input-date.js.map +1 -1
  534. package/fesm2015/taiga-ui-kit-components-input-file.js.map +1 -1
  535. package/fesm2015/taiga-ui-kit-components-input-files.js.map +1 -1
  536. package/fesm2015/taiga-ui-kit-components-input-inline.js.map +1 -1
  537. package/fesm2015/taiga-ui-kit-components-input-month-range.js.map +1 -1
  538. package/fesm2015/taiga-ui-kit-components-input-month.js +1 -1
  539. package/fesm2015/taiga-ui-kit-components-input-month.js.map +1 -1
  540. package/fesm2015/taiga-ui-kit-components-input-number.js +5 -4
  541. package/fesm2015/taiga-ui-kit-components-input-number.js.map +1 -1
  542. package/fesm2015/taiga-ui-kit-components-input-password.js +2 -2
  543. package/fesm2015/taiga-ui-kit-components-input-password.js.map +1 -1
  544. package/fesm2015/taiga-ui-kit-components-input-phone-international.js.map +1 -1
  545. package/fesm2015/taiga-ui-kit-components-input-phone.js.map +1 -1
  546. package/fesm2015/taiga-ui-kit-components-input-range.js +6 -2
  547. package/fesm2015/taiga-ui-kit-components-input-range.js.map +1 -1
  548. package/fesm2015/taiga-ui-kit-components-input-slider.js +2 -2
  549. package/fesm2015/taiga-ui-kit-components-input-slider.js.map +1 -1
  550. package/fesm2015/taiga-ui-kit-components-input-tag.js +9 -8
  551. package/fesm2015/taiga-ui-kit-components-input-tag.js.map +1 -1
  552. package/fesm2015/taiga-ui-kit-components-input-time.js +1 -1
  553. package/fesm2015/taiga-ui-kit-components-input-time.js.map +1 -1
  554. package/fesm2015/taiga-ui-kit-components-input.js.map +1 -1
  555. package/fesm2015/taiga-ui-kit-components-line-clamp.js +9 -91
  556. package/fesm2015/taiga-ui-kit-components-line-clamp.js.map +1 -1
  557. package/fesm2015/taiga-ui-kit-components-multi-select.js +2 -2
  558. package/fesm2015/taiga-ui-kit-components-multi-select.js.map +1 -1
  559. package/fesm2015/taiga-ui-kit-components-pagination.js.map +1 -1
  560. package/fesm2015/taiga-ui-kit-components-radio-block.js +1 -1
  561. package/fesm2015/taiga-ui-kit-components-radio-block.js.map +1 -1
  562. package/fesm2015/taiga-ui-kit-components-radio-labeled.js +1 -1
  563. package/fesm2015/taiga-ui-kit-components-radio-labeled.js.map +1 -1
  564. package/fesm2015/taiga-ui-kit-components-radio-list.js.map +1 -1
  565. package/fesm2015/taiga-ui-kit-components-radio.js +4 -2
  566. package/fesm2015/taiga-ui-kit-components-radio.js.map +1 -1
  567. package/fesm2015/taiga-ui-kit-components-range.js +70 -14
  568. package/fesm2015/taiga-ui-kit-components-range.js.map +1 -1
  569. package/fesm2015/taiga-ui-kit-components-select-option.js.map +1 -1
  570. package/fesm2015/taiga-ui-kit-components-select.js +2 -8
  571. package/fesm2015/taiga-ui-kit-components-select.js.map +1 -1
  572. package/fesm2015/taiga-ui-kit-components-slider.js +44 -35
  573. package/fesm2015/taiga-ui-kit-components-slider.js.map +1 -1
  574. package/fesm2015/taiga-ui-kit-components-stepper.js +2 -1
  575. package/fesm2015/taiga-ui-kit-components-stepper.js.map +1 -1
  576. package/fesm2015/taiga-ui-kit-components-tabs.js +62 -26
  577. package/fesm2015/taiga-ui-kit-components-tabs.js.map +1 -1
  578. package/fesm2015/taiga-ui-kit-components-tag.js.map +1 -1
  579. package/fesm2015/taiga-ui-kit-components-text-area.js +2 -2
  580. package/fesm2015/taiga-ui-kit-components-text-area.js.map +1 -1
  581. package/fesm2015/taiga-ui-kit-components-toggle.js.map +1 -1
  582. package/fesm2015/taiga-ui-kit-components-tree.js +1 -1
  583. package/fesm2015/taiga-ui-kit-components-tree.js.map +1 -1
  584. package/fesm2015/taiga-ui-kit-directives-dropdown-context.js.map +1 -1
  585. package/fesm2015/taiga-ui-kit-directives-dropdown-hover.js.map +1 -1
  586. package/fesm2015/taiga-ui-kit-directives-dropdown-selection.js.map +1 -1
  587. package/fesm2015/taiga-ui-kit-directives-highlight.js.map +1 -1
  588. package/fesm2015/taiga-ui-kit-directives-lazy-loading.js.map +1 -1
  589. package/fesm2015/taiga-ui-kit-directives-present.js.map +1 -1
  590. package/fesm2015/taiga-ui-kit-directives-project-class.js.map +1 -1
  591. package/fesm2015/taiga-ui-kit-enums.js +2 -2
  592. package/fesm2015/taiga-ui-kit-enums.js.map +1 -1
  593. package/fesm2015/taiga-ui-kit-internal-primitive-calendar-range.js.map +1 -1
  594. package/fesm2015/taiga-ui-kit-pipes-field-error.js.map +1 -1
  595. package/fesm2015/taiga-ui-kit-tokens.js +1 -1
  596. package/fesm2015/taiga-ui-kit-tokens.js.map +1 -1
  597. package/fesm2015/taiga-ui-kit-utils-dom.js.map +1 -1
  598. package/fesm2015/taiga-ui-kit-utils-math.js +25 -1
  599. package/fesm2015/taiga-ui-kit-utils-math.js.map +1 -1
  600. package/fesm2015/taiga-ui-kit-utils.js +1 -0
  601. package/fesm2015/taiga-ui-kit-utils.js.map +1 -1
  602. package/fesm5/taiga-ui-kit-abstract.js +2 -1
  603. package/fesm5/taiga-ui-kit-abstract.js.map +1 -1
  604. package/fesm5/taiga-ui-kit-components-accordion.js.map +1 -1
  605. package/fesm5/taiga-ui-kit-components-action.js.map +1 -1
  606. package/fesm5/taiga-ui-kit-components-avatar.js +1 -1
  607. package/fesm5/taiga-ui-kit-components-avatar.js.map +1 -1
  608. package/fesm5/taiga-ui-kit-components-breadcrumbs.js.map +1 -1
  609. package/fesm5/taiga-ui-kit-components-calendar-month.js.map +1 -1
  610. package/fesm5/taiga-ui-kit-components-calendar-range.js.map +1 -1
  611. package/fesm5/taiga-ui-kit-components-carousel.js.map +1 -1
  612. package/fesm5/taiga-ui-kit-components-checkbox-block.js.map +1 -1
  613. package/fesm5/taiga-ui-kit-components-checkbox-labeled.js.map +1 -1
  614. package/fesm5/taiga-ui-kit-components-checkbox.js.map +1 -1
  615. package/fesm5/taiga-ui-kit-components-combo-box.js +2 -11
  616. package/fesm5/taiga-ui-kit-components-combo-box.js.map +1 -1
  617. package/fesm5/taiga-ui-kit-components-data-list-wrapper.js +66 -45
  618. package/fesm5/taiga-ui-kit-components-data-list-wrapper.js.map +1 -1
  619. package/fesm5/taiga-ui-kit-components-field-error.js.map +1 -1
  620. package/fesm5/taiga-ui-kit-components-files.js +52 -52
  621. package/fesm5/taiga-ui-kit-components-files.js.map +1 -1
  622. package/fesm5/taiga-ui-kit-components-filter.js.map +1 -1
  623. package/fesm5/taiga-ui-kit-components-input-copy.js.map +1 -1
  624. package/fesm5/taiga-ui-kit-components-input-count.js.map +1 -1
  625. package/fesm5/taiga-ui-kit-components-input-date-range.js +3 -1
  626. package/fesm5/taiga-ui-kit-components-input-date-range.js.map +1 -1
  627. package/fesm5/taiga-ui-kit-components-input-date-time.js +4 -2
  628. package/fesm5/taiga-ui-kit-components-input-date-time.js.map +1 -1
  629. package/fesm5/taiga-ui-kit-components-input-date.js +3 -1
  630. package/fesm5/taiga-ui-kit-components-input-date.js.map +1 -1
  631. package/fesm5/taiga-ui-kit-components-input-file.js.map +1 -1
  632. package/fesm5/taiga-ui-kit-components-input-files.js.map +1 -1
  633. package/fesm5/taiga-ui-kit-components-input-inline.js.map +1 -1
  634. package/fesm5/taiga-ui-kit-components-input-month-range.js.map +1 -1
  635. package/fesm5/taiga-ui-kit-components-input-month.js +1 -1
  636. package/fesm5/taiga-ui-kit-components-input-month.js.map +1 -1
  637. package/fesm5/taiga-ui-kit-components-input-number.js +5 -4
  638. package/fesm5/taiga-ui-kit-components-input-number.js.map +1 -1
  639. package/fesm5/taiga-ui-kit-components-input-password.js +1 -1
  640. package/fesm5/taiga-ui-kit-components-input-password.js.map +1 -1
  641. package/fesm5/taiga-ui-kit-components-input-phone-international.js.map +1 -1
  642. package/fesm5/taiga-ui-kit-components-input-phone.js.map +1 -1
  643. package/fesm5/taiga-ui-kit-components-input-range.js +5 -1
  644. package/fesm5/taiga-ui-kit-components-input-range.js.map +1 -1
  645. package/fesm5/taiga-ui-kit-components-input-slider.js +1 -1
  646. package/fesm5/taiga-ui-kit-components-input-slider.js.map +1 -1
  647. package/fesm5/taiga-ui-kit-components-input-tag.js +9 -8
  648. package/fesm5/taiga-ui-kit-components-input-tag.js.map +1 -1
  649. package/fesm5/taiga-ui-kit-components-input-time.js +1 -1
  650. package/fesm5/taiga-ui-kit-components-input-time.js.map +1 -1
  651. package/fesm5/taiga-ui-kit-components-input.js.map +1 -1
  652. package/fesm5/taiga-ui-kit-components-line-clamp.js +9 -97
  653. package/fesm5/taiga-ui-kit-components-line-clamp.js.map +1 -1
  654. package/fesm5/taiga-ui-kit-components-multi-select.js +2 -2
  655. package/fesm5/taiga-ui-kit-components-multi-select.js.map +1 -1
  656. package/fesm5/taiga-ui-kit-components-pagination.js.map +1 -1
  657. package/fesm5/taiga-ui-kit-components-radio-block.js +1 -1
  658. package/fesm5/taiga-ui-kit-components-radio-block.js.map +1 -1
  659. package/fesm5/taiga-ui-kit-components-radio-labeled.js +1 -1
  660. package/fesm5/taiga-ui-kit-components-radio-labeled.js.map +1 -1
  661. package/fesm5/taiga-ui-kit-components-radio-list.js.map +1 -1
  662. package/fesm5/taiga-ui-kit-components-radio.js +4 -2
  663. package/fesm5/taiga-ui-kit-components-radio.js.map +1 -1
  664. package/fesm5/taiga-ui-kit-components-range.js +68 -13
  665. package/fesm5/taiga-ui-kit-components-range.js.map +1 -1
  666. package/fesm5/taiga-ui-kit-components-select-option.js.map +1 -1
  667. package/fesm5/taiga-ui-kit-components-select.js +2 -8
  668. package/fesm5/taiga-ui-kit-components-select.js.map +1 -1
  669. package/fesm5/taiga-ui-kit-components-slider.js +52 -49
  670. package/fesm5/taiga-ui-kit-components-slider.js.map +1 -1
  671. package/fesm5/taiga-ui-kit-components-stepper.js +2 -1
  672. package/fesm5/taiga-ui-kit-components-stepper.js.map +1 -1
  673. package/fesm5/taiga-ui-kit-components-tabs.js +67 -27
  674. package/fesm5/taiga-ui-kit-components-tabs.js.map +1 -1
  675. package/fesm5/taiga-ui-kit-components-tag.js.map +1 -1
  676. package/fesm5/taiga-ui-kit-components-text-area.js +2 -2
  677. package/fesm5/taiga-ui-kit-components-text-area.js.map +1 -1
  678. package/fesm5/taiga-ui-kit-components-toggle.js.map +1 -1
  679. package/fesm5/taiga-ui-kit-components-tree.js +1 -1
  680. package/fesm5/taiga-ui-kit-components-tree.js.map +1 -1
  681. package/fesm5/taiga-ui-kit-directives-dropdown-context.js.map +1 -1
  682. package/fesm5/taiga-ui-kit-directives-dropdown-hover.js.map +1 -1
  683. package/fesm5/taiga-ui-kit-directives-dropdown-selection.js.map +1 -1
  684. package/fesm5/taiga-ui-kit-directives-highlight.js.map +1 -1
  685. package/fesm5/taiga-ui-kit-directives-lazy-loading.js.map +1 -1
  686. package/fesm5/taiga-ui-kit-directives-present.js.map +1 -1
  687. package/fesm5/taiga-ui-kit-directives-project-class.js.map +1 -1
  688. package/fesm5/taiga-ui-kit-enums.js +2 -2
  689. package/fesm5/taiga-ui-kit-enums.js.map +1 -1
  690. package/fesm5/taiga-ui-kit-internal-primitive-calendar-range.js.map +1 -1
  691. package/fesm5/taiga-ui-kit-pipes-field-error.js.map +1 -1
  692. package/fesm5/taiga-ui-kit-tokens.js +1 -1
  693. package/fesm5/taiga-ui-kit-tokens.js.map +1 -1
  694. package/fesm5/taiga-ui-kit-utils-dom.js.map +1 -1
  695. package/fesm5/taiga-ui-kit-utils-math.js +32 -1
  696. package/fesm5/taiga-ui-kit-utils-math.js.map +1 -1
  697. package/fesm5/taiga-ui-kit-utils.js +1 -0
  698. package/fesm5/taiga-ui-kit-utils.js.map +1 -1
  699. package/package.json +7 -7
  700. package/tokens/i18n.d.ts +1 -5
  701. package/tokens/taiga-ui-kit-tokens.metadata.json +1 -1
  702. package/types/handler-with-context.d.ts +2 -2
  703. package/utils/index.d.ts +1 -0
  704. package/utils/math/index.d.ts +1 -0
  705. package/utils/math/key-steps.d.ts +4 -0
  706. package/utils/math/taiga-ui-kit-utils-math.metadata.json +1 -1
  707. package/utils/taiga-ui-kit-utils.metadata.json +1 -1
  708. package/components/line-clamp/line-clamp.directive.d.ts +0 -11
  709. package/esm2015/components/line-clamp/line-clamp.directive.js +0 -87
  710. package/esm5/components/line-clamp/line-clamp.directive.js +0 -89
@@ -1,2 +1,2 @@
1
- export declare type TuiHandlerWithContext<I, O, C extends Object = {}> = (item: I, context?: C) => O;
2
- export declare type TuiBooleanHandlerWithContext<I, C extends Object = {}> = TuiHandlerWithContext<I, boolean, C>;
1
+ export declare type TuiHandlerWithContext<I, O, C extends Record<string, unknown> = Record<string, never>> = (item: I, context?: C) => O;
2
+ export declare type TuiBooleanHandlerWithContext<I, C extends Record<string, any> = Record<string, never>> = TuiHandlerWithContext<I, boolean, C>;
package/utils/index.d.ts CHANGED
@@ -2,4 +2,5 @@ export * from '@taiga-ui/kit/utils/dom';
2
2
  export * from '@taiga-ui/kit/utils/files';
3
3
  export * from '@taiga-ui/kit/utils/format';
4
4
  export * from '@taiga-ui/kit/utils/mask';
5
+ export * from '@taiga-ui/kit/utils/math';
5
6
  export * from '@taiga-ui/kit/utils/miscellaneous';
@@ -1 +1,2 @@
1
1
  export * from './horizontal-direction-to-number';
2
+ export * from './key-steps';
@@ -0,0 +1,4 @@
1
+ import { TuiKeySteps } from '@taiga-ui/kit/types';
2
+ export declare function tuiPercentageToKeyStepValue(valuePercentage: number, keySteps: TuiKeySteps): number;
3
+ export declare function tuiKeyStepValueToPercentage(value: number, keySteps: TuiKeySteps): number;
4
+ export declare function tuiCheckKeyStepsHaveMinMaxPercents(steps: TuiKeySteps): boolean;
@@ -1 +1 @@
1
- {"__symbolic":"module","version":4,"metadata":{"horizontalDirectionToNumber":{"__symbolic":"function"}},"origins":{"horizontalDirectionToNumber":"./horizontal-direction-to-number"},"importAs":"@taiga-ui/kit/utils/math"}
1
+ {"__symbolic":"module","version":4,"metadata":{"horizontalDirectionToNumber":{"__symbolic":"function"},"tuiPercentageToKeyStepValue":{"__symbolic":"function"},"tuiKeyStepValueToPercentage":{"__symbolic":"function"},"tuiCheckKeyStepsHaveMinMaxPercents":{"__symbolic":"function","parameters":["steps"],"value":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"pre","operator":"!","operand":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"steps"},"member":"length"}},"right":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"index","expression":{"__symbolic":"index","expression":{"__symbolic":"reference","name":"steps"},"index":0},"index":0},"right":0},"right":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"index","expression":{"__symbolic":"index","expression":{"__symbolic":"reference","name":"steps"},"index":{"__symbolic":"binop","operator":"-","left":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"steps"},"member":"length"},"right":1}},"index":0},"right":100}}}}},"origins":{"horizontalDirectionToNumber":"./horizontal-direction-to-number","tuiPercentageToKeyStepValue":"./key-steps","tuiKeyStepValueToPercentage":"./key-steps","tuiCheckKeyStepsHaveMinMaxPercents":"./key-steps"},"importAs":"@taiga-ui/kit/utils/math"}
@@ -1 +1 @@
1
- {"__symbolic":"module","version":4,"exports":[{"from":"@taiga-ui/kit/utils/dom"},{"from":"@taiga-ui/kit/utils/files"},{"from":"@taiga-ui/kit/utils/format"},{"from":"@taiga-ui/kit/utils/mask"},{"from":"@taiga-ui/kit/utils/miscellaneous"}],"metadata":{},"origins":{},"importAs":"@taiga-ui/kit/utils"}
1
+ {"__symbolic":"module","version":4,"exports":[{"from":"@taiga-ui/kit/utils/dom"},{"from":"@taiga-ui/kit/utils/files"},{"from":"@taiga-ui/kit/utils/format"},{"from":"@taiga-ui/kit/utils/mask"},{"from":"@taiga-ui/kit/utils/math"},{"from":"@taiga-ui/kit/utils/miscellaneous"}],"metadata":{},"origins":{},"importAs":"@taiga-ui/kit/utils"}
@@ -1,11 +0,0 @@
1
- import { ElementRef, NgZone, Renderer2, ViewContainerRef } from '@angular/core';
2
- import { TuiDestroyService } from '@taiga-ui/cdk';
3
- import { Observable } from 'rxjs';
4
- import { TuiLineClampComponent } from './line-clamp.component';
5
- export declare class TuiLineClampDirective {
6
- constructor(component: TuiLineClampComponent, viewContainerRef: ViewContainerRef, documentRef: Document, renderer: Renderer2, ngZone: NgZone, { nativeElement }: ElementRef<HTMLElement>, destroy$: TuiDestroyService, animationFrame$: Observable<number>,
7
- /**
8
- * TODO: remove "any" in new TS version; https://github.com/ng-web-apis/common/pull/6
9
- */
10
- cssRef: any);
11
- }
@@ -1,87 +0,0 @@
1
- import { __decorate, __param } from "tslib";
2
- import { DOCUMENT } from '@angular/common';
3
- import { Directive, ElementRef, Inject, NgZone, Renderer2, ViewContainerRef, } from '@angular/core';
4
- import { ANIMATION_FRAME, CSS } from '@ng-web-apis/common';
5
- import { CHAR_ELLIPSIS, px, TuiDestroyService, tuiZonefree } from '@taiga-ui/cdk';
6
- import { setRangeOffset } from '@taiga-ui/kit/utils/dom';
7
- import { Observable } from 'rxjs';
8
- import { map, takeUntil } from 'rxjs/operators';
9
- import { TuiLineClampComponent } from './line-clamp.component';
10
- const HIDDEN_LEFT = -200;
11
- // @dynamic
12
- let TuiLineClampDirective = class TuiLineClampDirective {
13
- constructor(component, viewContainerRef, documentRef, renderer, ngZone, { nativeElement }, destroy$, animationFrame$,
14
- /**
15
- * TODO: remove "any" in new TS version; https://github.com/ng-web-apis/common/pull/6
16
- */
17
- cssRef) {
18
- if (cssRef.supports('-webkit-line-clamp', '1') ||
19
- !documentRef.createRange ||
20
- !(nativeElement.parentElement instanceof HTMLElement)) {
21
- return;
22
- }
23
- const range = documentRef.createRange();
24
- const ellipsis = renderer.createElement('div');
25
- const { parentElement } = nativeElement;
26
- const { style } = ellipsis;
27
- style.position = 'absolute';
28
- style.bottom = '0';
29
- style.left = px(HIDDEN_LEFT);
30
- ellipsis.textContent = CHAR_ELLIPSIS;
31
- viewContainerRef.element.nativeElement.appendChild(ellipsis);
32
- animationFrame$
33
- .pipe(map(() => {
34
- // 4px buffer for IE/Edge incorrectly rounding scrollHeight
35
- if (component.oneLine ||
36
- nativeElement.scrollHeight - parentElement.clientHeight < 4) {
37
- return HIDDEN_LEFT;
38
- }
39
- let result = 0;
40
- const length = nativeElement.textContent
41
- ? nativeElement.textContent.length
42
- : 0;
43
- for (let char = 0; char < length - 2; char++) {
44
- setRangeOffset(range, nativeElement, char, 'setStart');
45
- setRangeOffset(range, nativeElement, char + 1, 'setEnd');
46
- const rangeRect = range.getBoundingClientRect();
47
- const clientRect = parentElement.getBoundingClientRect();
48
- if (Math.round(rangeRect.top - clientRect.bottom) >= 0) {
49
- break;
50
- }
51
- result = rangeRect.right - clientRect.left;
52
- }
53
- return result;
54
- }), tuiZonefree(ngZone), takeUntil(destroy$))
55
- .subscribe(left => {
56
- style.left = px(left);
57
- });
58
- }
59
- };
60
- TuiLineClampDirective.ctorParameters = () => [
61
- { type: TuiLineClampComponent, decorators: [{ type: Inject, args: [TuiLineClampComponent,] }] },
62
- { type: ViewContainerRef, decorators: [{ type: Inject, args: [ViewContainerRef,] }] },
63
- { type: Document, decorators: [{ type: Inject, args: [DOCUMENT,] }] },
64
- { type: Renderer2, decorators: [{ type: Inject, args: [Renderer2,] }] },
65
- { type: NgZone, decorators: [{ type: Inject, args: [NgZone,] }] },
66
- { type: ElementRef, decorators: [{ type: Inject, args: [ElementRef,] }] },
67
- { type: TuiDestroyService, decorators: [{ type: Inject, args: [TuiDestroyService,] }] },
68
- { type: Observable, decorators: [{ type: Inject, args: [ANIMATION_FRAME,] }] },
69
- { type: undefined, decorators: [{ type: Inject, args: [CSS,] }] }
70
- ];
71
- TuiLineClampDirective = __decorate([
72
- Directive({
73
- selector: '[lineClamp]',
74
- providers: [TuiDestroyService],
75
- }),
76
- __param(0, Inject(TuiLineClampComponent)),
77
- __param(1, Inject(ViewContainerRef)),
78
- __param(2, Inject(DOCUMENT)),
79
- __param(3, Inject(Renderer2)),
80
- __param(4, Inject(NgZone)),
81
- __param(5, Inject(ElementRef)),
82
- __param(6, Inject(TuiDestroyService)),
83
- __param(7, Inject(ANIMATION_FRAME)),
84
- __param(8, Inject(CSS))
85
- ], TuiLineClampDirective);
86
- export { TuiLineClampDirective };
87
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGluZS1jbGFtcC5kaXJlY3RpdmUuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AdGFpZ2EtdWkva2l0L2NvbXBvbmVudHMvbGluZS1jbGFtcC8iLCJzb3VyY2VzIjpbImxpbmUtY2xhbXAuZGlyZWN0aXZlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUMsUUFBUSxFQUFDLE1BQU0saUJBQWlCLENBQUM7QUFDekMsT0FBTyxFQUNILFNBQVMsRUFDVCxVQUFVLEVBQ1YsTUFBTSxFQUNOLE1BQU0sRUFDTixTQUFTLEVBQ1QsZ0JB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URlc3Ryb3lTZXJ2aWNlKSBkZXN0cm95JDogVHVpRGVzdHJveVNlcnZpY2UsXG4gICAgICAgIEBJbmplY3QoQU5JTUFUSU9OX0ZSQU1FKSBhbmltYXRpb25GcmFtZSQ6IE9ic2VydmFibGU8bnVtYmVyPixcbiAgICAgICAgLyoqXG4gICAgICAgICAqIFRPRE86IHJlbW92ZSBcImFueVwiIGluIG5ldyBUUyB2ZXJzaW9uOyBodHRwczovL2dpdGh1Yi5jb20vbmctd2ViLWFwaXMvY29tbW9uL3B1bGwvNlxuICAgICAgICAgKi9cbiAgICAgICAgQEluamVjdChDU1MpIGNzc1JlZjogYW55LFxuICAgICkge1xuICAgICAgICBpZiAoXG4gICAgICAgICAgICBjc3NSZWYuc3VwcG9ydHMoJy13ZWJraXQtbGluZS1jbGFtcCcsICcxJykgfHxcbiAgICAgICAgICAgICFkb2N1bWVudFJlZi5jcmVhdGVSYW5nZSB8fFxuICAgICAgICAgICAgIShuYXRpdmVFbGVtZW50LnBhcmVudEVsZW1lbnQgaW5zdGFuY2VvZiBIVE1MRWxlbWVudClcbiAgICAgICAgKSB7XG4gICAgICAgICAgICByZXR1cm47XG4gICAgICAgIH1cblxuICAgICAgICBjb25zdCByYW5nZSA9IGRvY3VtZW50UmVmLmNyZWF0ZVJhbmdlKCk7XG4gICAgICAgIGNvbnN0IGVsbGlwc2lzOiBIVE1MRWxlbWVudCA9IHJlbmRlcmVyLmNyZWF0ZUVsZW1lbnQoJ2RpdicpO1xuICAgICAgICBjb25zdCB7cGFyZW50RWxlbWVudH0gPSBuYXRpdmVFbGVtZW50O1xuICAgICAgICBjb25zdCB7c3R5bGV9ID0gZWxsaXBzaXM7XG5cbiAgICAgICAgc3R5bGUucG9zaXRpb24gPSAnYWJzb2x1dGUnO1xuICAgICAgICBzdHlsZS5ib3R0b20gPSAnMCc7XG4gICAgICAgIHN0eWxlLmxlZnQgPSBweChISURERU5fTEVGVCk7XG4gICAgICAgIGVsbGlwc2lzLnRleHRDb250ZW50ID0gQ0hBUl9FTExJUFNJUztcblxuICAgICAgICB2aWV3Q29udGFpbmVyUmVmLmVsZW1lbnQubmF0aXZlRWxlbWVudC5hcHBlbmRDaGlsZChlbGxpcHNpcyk7XG5cbiAgICAgICAgYW5pbWF0aW9uRnJhbWUkXG4gICAgICAgICAgICAucGlwZShcbiAgICAgICAgICAgICAgICBtYXAoKCkgPT4ge1xuICAgICAgICAgICAgICAgICAgICAvLyA0cHggYnVmZmVyIGZvciBJRS9FZGdlIGluY29ycmVjdGx5IHJvdW5kaW5nIHNjcm9sbEhlaWdodFxuICAgICAgICAgICAgICAgICAgICBpZiAoXG4gICAgICAgICAgICAgICAgICAgICAgICBjb21wb25lbnQub25lTGluZSB8fFxuICAgICAgICAgICAgICAgICAgICAgICAgbmF0aXZlRWxlbWVudC5zY3JvbGxIZWlnaHQgLSBwYXJlbnRFbGVtZW50LmNsaWVudEhlaWdodCA8IDRcbiAgICAgICAgICAgICAgICAgICAgKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gSElEREVOX0xFRlQ7XG4gICAgICAgICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgICAgICAgICBsZXQgcmVzdWx0ID0gMDtcbiAgICAgICAgICAgICAgICAgICAgY29uc3QgbGVuZ3RoID0gbmF0aXZlRWxlbWVudC50ZXh0Q29udGVudFxuICAgICAgICAgICAgICAgICAgICAgICAgPyBuYXRpdmVFbGVtZW50LnRleHRDb250ZW50Lmxlbmd0aFxuICAgICAgICAgICAgICAgICAgICAgICAgOiAwO1xuXG4gICAgICAgICAgICAgICAgICAgIGZvciAobGV0IGNoYXIgPSAwOyBjaGFyIDwgbGVuZ3RoIC0gMjsgY2hhcisrKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICBzZXRSYW5nZU9mZnNldChyYW5nZSwgbmF0aXZlRWxlbWVudCwgY2hhciwgJ3NldFN0YXJ0Jyk7XG4gICAgICAgICAgICAgICAgICAgICAgICBzZXRSYW5nZU9mZnNldChyYW5nZSwgbmF0aXZlRWxlbWVudCwgY2hhciArIDEsICdzZXRFbmQnKTtcblxuICAgICAgICAgICAgICAgICAgICAgICAgY29uc3QgcmFuZ2VSZWN0ID0gcmFuZ2UuZ2V0Qm91bmRpbmdDbGllbnRSZWN0KCk7XG4gICAgICAgICAgICAgICAgICAgICAgICBjb25zdCBjbGllbnRSZWN0ID0gcGFyZW50RWxlbWVudC5nZXRCb3VuZGluZ0NsaWVudFJlY3QoKTtcblxuICAgICAgICAgICAgICAgICAgICAgICAgaWYgKE1hdGgucm91bmQocmFuZ2VSZWN0LnRvcCAtIGNsaWVudFJlY3QuYm90dG9tKSA+PSAwKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICAgICAgICAgIHJlc3VsdCA9IHJhbmdlUmVjdC5yaWdodCAtIGNsaWVudFJlY3QubGVmdDtcbiAgICAgICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgICAgIHJldHVybiByZXN1bHQ7XG4gICAgICAgICAgICAgICAgfSksXG4gICAgICAgICAgICAgICAgdHVpWm9uZWZyZWUobmdab25lKSxcbiAgICAgICAgICAgICAgICB0YWtlVW50aWwoZGVzdHJveSQpLFxuICAgICAgICAgICAgKVxuICAgICAgICAgICAgLnN1YnNjcmliZShsZWZ0ID0+IHtcbiAgICAgICAgICAgICAgICBzdHlsZS5sZWZ0ID0gcHgobGVmdCk7XG4gICAgICAgICAgICB9KTtcbiAgICB9XG59XG4iXX0=
@@ -1,89 +0,0 @@
1
- import { __decorate, __param } from "tslib";
2
- import { DOCUMENT } from '@angular/common';
3
- import { Directive, ElementRef, Inject, NgZone, Renderer2, ViewContainerRef, } from '@angular/core';
4
- import { ANIMATION_FRAME, CSS } from '@ng-web-apis/common';
5
- import { CHAR_ELLIPSIS, px, TuiDestroyService, tuiZonefree } from '@taiga-ui/cdk';
6
- import { setRangeOffset } from '@taiga-ui/kit/utils/dom';
7
- import { Observable } from 'rxjs';
8
- import { map, takeUntil } from 'rxjs/operators';
9
- import { TuiLineClampComponent } from './line-clamp.component';
10
- var HIDDEN_LEFT = -200;
11
- // @dynamic
12
- var TuiLineClampDirective = /** @class */ (function () {
13
- function TuiLineClampDirective(component, viewContainerRef, documentRef, renderer, ngZone, _a, destroy$, animationFrame$,
14
- /**
15
- * TODO: remove "any" in new TS version; https://github.com/ng-web-apis/common/pull/6
16
- */
17
- cssRef) {
18
- var nativeElement = _a.nativeElement;
19
- if (cssRef.supports('-webkit-line-clamp', '1') ||
20
- !documentRef.createRange ||
21
- !(nativeElement.parentElement instanceof HTMLElement)) {
22
- return;
23
- }
24
- var range = documentRef.createRange();
25
- var ellipsis = renderer.createElement('div');
26
- var parentElement = nativeElement.parentElement;
27
- var style = ellipsis.style;
28
- style.position = 'absolute';
29
- style.bottom = '0';
30
- style.left = px(HIDDEN_LEFT);
31
- ellipsis.textContent = CHAR_ELLIPSIS;
32
- viewContainerRef.element.nativeElement.appendChild(ellipsis);
33
- animationFrame$
34
- .pipe(map(function () {
35
- // 4px buffer for IE/Edge incorrectly rounding scrollHeight
36
- if (component.oneLine ||
37
- nativeElement.scrollHeight - parentElement.clientHeight < 4) {
38
- return HIDDEN_LEFT;
39
- }
40
- var result = 0;
41
- var length = nativeElement.textContent
42
- ? nativeElement.textContent.length
43
- : 0;
44
- for (var char = 0; char < length - 2; char++) {
45
- setRangeOffset(range, nativeElement, char, 'setStart');
46
- setRangeOffset(range, nativeElement, char + 1, 'setEnd');
47
- var rangeRect = range.getBoundingClientRect();
48
- var clientRect = parentElement.getBoundingClientRect();
49
- if (Math.round(rangeRect.top - clientRect.bottom) >= 0) {
50
- break;
51
- }
52
- result = rangeRect.right - clientRect.left;
53
- }
54
- return result;
55
- }), tuiZonefree(ngZone), takeUntil(destroy$))
56
- .subscribe(function (left) {
57
- style.left = px(left);
58
- });
59
- }
60
- TuiLineClampDirective.ctorParameters = function () { return [
61
- { type: TuiLineClampComponent, decorators: [{ type: Inject, args: [TuiLineClampComponent,] }] },
62
- { type: ViewContainerRef, decorators: [{ type: Inject, args: [ViewContainerRef,] }] },
63
- { type: Document, decorators: [{ type: Inject, args: [DOCUMENT,] }] },
64
- { type: Renderer2, decorators: [{ type: Inject, args: [Renderer2,] }] },
65
- { type: NgZone, decorators: [{ type: Inject, args: [NgZone,] }] },
66
- { type: ElementRef, decorators: [{ type: Inject, args: [ElementRef,] }] },
67
- { type: TuiDestroyService, decorators: [{ type: Inject, args: [TuiDestroyService,] }] },
68
- { type: Observable, decorators: [{ type: Inject, args: [ANIMATION_FRAME,] }] },
69
- { type: undefined, decorators: [{ type: Inject, args: [CSS,] }] }
70
- ]; };
71
- TuiLineClampDirective = __decorate([
72
- Directive({
73
- selector: '[lineClamp]',
74
- providers: [TuiDestroyService],
75
- }),
76
- __param(0, Inject(TuiLineClampComponent)),
77
- __param(1, Inject(ViewContainerRef)),
78
- __param(2, Inject(DOCUMENT)),
79
- __param(3, Inject(Renderer2)),
80
- __param(4, Inject(NgZone)),
81
- __param(5, Inject(ElementRef)),
82
- __param(6, Inject(TuiDestroyService)),
83
- __param(7, Inject(ANIMATION_FRAME)),
84
- __param(8, Inject(CSS))
85
- ], TuiLineClampDirective);
86
- return TuiLineClampDirective;
87
- }());
88
- export { TuiLineClampDirective };
89
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGluZS1jbGFtcC5kaXJlY3RpdmUuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AdGFpZ2EtdWkva2l0L2NvbXBvbmVudHMvbGluZS1jbGFtcC8iLCJzb3VyY2VzIjpbImxpbmUtY2xhbXAuZGlyZWN0aXZlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUMsUUFBUSxFQUFDLE1BQU0saUJBQWlCLENBQUM7QUFDekMsT0FBTyxFQUNILFNBQVMsRUFDVCxVQUF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U0lTO1xuXG4gICAgICAgIHZpZXdDb250YWluZXJSZWYuZWxlbWVudC5uYXRpdmVFbGVtZW50LmFwcGVuZENoaWxkKGVsbGlwc2lzKTtcblxuICAgICAgICBhbmltYXRpb25GcmFtZSRcbiAgICAgICAgICAgIC5waXBlKFxuICAgICAgICAgICAgICAgIG1hcCgoKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgIC8vIDRweCBidWZmZXIgZm9yIElFL0VkZ2UgaW5jb3JyZWN0bHkgcm91bmRpbmcgc2Nyb2xsSGVpZ2h0XG4gICAgICAgICAgICAgICAgICAgIGlmIChcbiAgICAgICAgICAgICAgICAgICAgICAgIGNvbXBvbmVudC5vbmVMaW5lIHx8XG4gICAgICAgICAgICAgICAgICAgICAgICBuYXRpdmVFbGVtZW50LnNjcm9sbEhlaWdodCAtIHBhcmVudEVsZW1lbnQuY2xpZW50SGVpZ2h0IDwgNFxuICAgICAgICAgICAgICAgICAgICApIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBISURERU5fTEVGVDtcbiAgICAgICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgICAgIGxldCByZXN1bHQgPSAwO1xuICAgICAgICAgICAgICAgICAgICBjb25zdCBsZW5ndGggPSBuYXRpdmVFbGVtZW50LnRleHRDb250ZW50XG4gICAgICAgICAgICAgICAgICAgICAgICA/IG5hdGl2ZUVsZW1lbnQudGV4dENvbnRlbnQubGVuZ3RoXG4gICAgICAgICAgICAgICAgICAgICAgICA6IDA7XG5cbiAgICAgICAgICAgICAgICAgICAgZm9yIChsZXQgY2hhciA9IDA7IGNoYXIgPCBsZW5ndGggLSAyOyBjaGFyKyspIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHNldFJhbmdlT2Zmc2V0KHJhbmdlLCBuYXRpdmVFbGVtZW50LCBjaGFyLCAnc2V0U3RhcnQnKTtcbiAgICAgICAgICAgICAgICAgICAgICAgIHNldFJhbmdlT2Zmc2V0KHJhbmdlLCBuYXRpdmVFbGVtZW50LCBjaGFyICsgMSwgJ3NldEVuZCcpO1xuXG4gICAgICAgICAgICAgICAgICAgICAgICBjb25zdCByYW5nZVJlY3QgPSByYW5nZS5nZXRCb3VuZGluZ0NsaWVudFJlY3QoKTtcbiAgICAgICAgICAgICAgICAgICAgICAgIGNvbnN0IGNsaWVudFJlY3QgPSBwYXJlbnRFbGVtZW50LmdldEJvdW5kaW5nQ2xpZW50UmVjdCgpO1xuXG4gICAgICAgICAgICAgICAgICAgICAgICBpZiAoTWF0aC5yb3VuZChyYW5nZVJlY3QudG9wIC0gY2xpZW50UmVjdC5ib3R0b20pID49IDApIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgICAgICAgICAgICAgcmVzdWx0ID0gcmFuZ2VSZWN0LnJpZ2h0IC0gY2xpZW50UmVjdC5sZWZ0O1xuICAgICAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHJlc3VsdDtcbiAgICAgICAgICAgICAgICB9KSxcbiAgICAgICAgICAgICAgICB0dWlab25lZnJlZShuZ1pvbmUpLFxuICAgICAgICAgICAgICAgIHRha2VVbnRpbChkZXN0cm95JCksXG4gICAgICAgICAgICApXG4gICAgICAgICAgICAuc3Vic2NyaWJlKGxlZnQgPT4ge1xuICAgICAgICAgICAgICAgIHN0eWxlLmxlZnQgPSBweChsZWZ0KTtcbiAgICAgICAgICAgIH0pO1xuICAgIH1cbn1cbiJdfQ==