@taiga-ui/core 2.75.0 → 2.76.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 (584) hide show
  1. package/abstract/abstract-dropdown.d.ts +2 -2
  2. package/abstract/taiga-ui-core-abstract.metadata.json +1 -1
  3. package/bundles/taiga-ui-core-abstract.umd.js +49 -2
  4. package/bundles/taiga-ui-core-abstract.umd.js.map +1 -1
  5. package/bundles/taiga-ui-core-abstract.umd.min.js.map +1 -1
  6. package/bundles/taiga-ui-core-components-alert.umd.js +55 -10
  7. package/bundles/taiga-ui-core-components-alert.umd.js.map +1 -1
  8. package/bundles/taiga-ui-core-components-alert.umd.min.js.map +1 -1
  9. package/bundles/taiga-ui-core-components-button.umd.js +60 -15
  10. package/bundles/taiga-ui-core-components-button.umd.js.map +1 -1
  11. package/bundles/taiga-ui-core-components-button.umd.min.js.map +1 -1
  12. package/bundles/taiga-ui-core-components-calendar.umd.js +47 -2
  13. package/bundles/taiga-ui-core-components-calendar.umd.js.map +1 -1
  14. package/bundles/taiga-ui-core-components-calendar.umd.min.js.map +1 -1
  15. package/bundles/taiga-ui-core-components-data-list.umd.js +83 -39
  16. package/bundles/taiga-ui-core-components-data-list.umd.js.map +1 -1
  17. package/bundles/taiga-ui-core-components-data-list.umd.min.js +1 -1
  18. package/bundles/taiga-ui-core-components-data-list.umd.min.js.map +1 -1
  19. package/bundles/taiga-ui-core-components-dialog.umd.js +60 -15
  20. package/bundles/taiga-ui-core-components-dialog.umd.js.map +1 -1
  21. package/bundles/taiga-ui-core-components-dialog.umd.min.js.map +1 -1
  22. package/bundles/taiga-ui-core-components-dropdown-box.umd.js +84 -39
  23. package/bundles/taiga-ui-core-components-dropdown-box.umd.js.map +1 -1
  24. package/bundles/taiga-ui-core-components-dropdown-box.umd.min.js.map +1 -1
  25. package/bundles/taiga-ui-core-components-error.umd.js +50 -5
  26. package/bundles/taiga-ui-core-components-error.umd.js.map +1 -1
  27. package/bundles/taiga-ui-core-components-error.umd.min.js.map +1 -1
  28. package/bundles/taiga-ui-core-components-expand.umd.js +58 -13
  29. package/bundles/taiga-ui-core-components-expand.umd.js.map +1 -1
  30. package/bundles/taiga-ui-core-components-expand.umd.min.js.map +1 -1
  31. package/bundles/taiga-ui-core-components-group.umd.js +64 -19
  32. package/bundles/taiga-ui-core-components-group.umd.js.map +1 -1
  33. package/bundles/taiga-ui-core-components-group.umd.min.js.map +1 -1
  34. package/bundles/taiga-ui-core-components-hints-host.umd.js +93 -48
  35. package/bundles/taiga-ui-core-components-hints-host.umd.js.map +1 -1
  36. package/bundles/taiga-ui-core-components-hints-host.umd.min.js.map +1 -1
  37. package/bundles/taiga-ui-core-components-hosted-dropdown.umd.js +56 -11
  38. package/bundles/taiga-ui-core-components-hosted-dropdown.umd.js.map +1 -1
  39. package/bundles/taiga-ui-core-components-hosted-dropdown.umd.min.js.map +1 -1
  40. package/bundles/taiga-ui-core-components-label.umd.js +51 -6
  41. package/bundles/taiga-ui-core-components-label.umd.js.map +1 -1
  42. package/bundles/taiga-ui-core-components-label.umd.min.js +1 -1
  43. package/bundles/taiga-ui-core-components-label.umd.min.js.map +1 -1
  44. package/bundles/taiga-ui-core-components-link.umd.js +57 -12
  45. package/bundles/taiga-ui-core-components-link.umd.js.map +1 -1
  46. package/bundles/taiga-ui-core-components-link.umd.min.js.map +1 -1
  47. package/bundles/taiga-ui-core-components-loader.umd.js +48 -3
  48. package/bundles/taiga-ui-core-components-loader.umd.js.map +1 -1
  49. package/bundles/taiga-ui-core-components-loader.umd.min.js.map +1 -1
  50. package/bundles/taiga-ui-core-components-notification.umd.js +54 -9
  51. package/bundles/taiga-ui-core-components-notification.umd.js.map +1 -1
  52. package/bundles/taiga-ui-core-components-notification.umd.min.js.map +1 -1
  53. package/bundles/taiga-ui-core-components-primitive-calendar.umd.js +48 -3
  54. package/bundles/taiga-ui-core-components-primitive-calendar.umd.js.map +1 -1
  55. package/bundles/taiga-ui-core-components-primitive-calendar.umd.min.js.map +1 -1
  56. package/bundles/taiga-ui-core-components-primitive-checkbox.umd.js +49 -4
  57. package/bundles/taiga-ui-core-components-primitive-checkbox.umd.js.map +1 -1
  58. package/bundles/taiga-ui-core-components-primitive-checkbox.umd.min.js.map +1 -1
  59. package/bundles/taiga-ui-core-components-primitive-spin-button.umd.js +48 -3
  60. package/bundles/taiga-ui-core-components-primitive-spin-button.umd.js.map +1 -1
  61. package/bundles/taiga-ui-core-components-primitive-spin-button.umd.min.js.map +1 -1
  62. package/bundles/taiga-ui-core-components-primitive-textfield.umd.js +97 -52
  63. package/bundles/taiga-ui-core-components-primitive-textfield.umd.js.map +1 -1
  64. package/bundles/taiga-ui-core-components-primitive-textfield.umd.min.js.map +1 -1
  65. package/bundles/taiga-ui-core-components-primitive-year-picker.umd.js +48 -3
  66. package/bundles/taiga-ui-core-components-primitive-year-picker.umd.js.map +1 -1
  67. package/bundles/taiga-ui-core-components-primitive-year-picker.umd.min.js.map +1 -1
  68. package/bundles/taiga-ui-core-components-root.umd.js +50 -5
  69. package/bundles/taiga-ui-core-components-root.umd.js.map +1 -1
  70. package/bundles/taiga-ui-core-components-root.umd.min.js.map +1 -1
  71. package/bundles/taiga-ui-core-components-scroll-controls.umd.js +72 -27
  72. package/bundles/taiga-ui-core-components-scroll-controls.umd.js.map +1 -1
  73. package/bundles/taiga-ui-core-components-scroll-controls.umd.min.js.map +1 -1
  74. package/bundles/taiga-ui-core-components-scrollbar.umd.js +54 -9
  75. package/bundles/taiga-ui-core-components-scrollbar.umd.js.map +1 -1
  76. package/bundles/taiga-ui-core-components-scrollbar.umd.min.js.map +1 -1
  77. package/bundles/taiga-ui-core-components-svg.umd.js +61 -16
  78. package/bundles/taiga-ui-core-components-svg.umd.js.map +1 -1
  79. package/bundles/taiga-ui-core-components-svg.umd.min.js.map +1 -1
  80. package/bundles/taiga-ui-core-components-theme-night.umd.js +48 -3
  81. package/bundles/taiga-ui-core-components-theme-night.umd.js.map +1 -1
  82. package/bundles/taiga-ui-core-components-theme-night.umd.min.js.map +1 -1
  83. package/bundles/taiga-ui-core-components-tooltip.umd.js +53 -8
  84. package/bundles/taiga-ui-core-components-tooltip.umd.js.map +1 -1
  85. package/bundles/taiga-ui-core-components-tooltip.umd.min.js.map +1 -1
  86. package/bundles/taiga-ui-core-directives-color.umd.js +52 -7
  87. package/bundles/taiga-ui-core-directives-color.umd.js.map +1 -1
  88. package/bundles/taiga-ui-core-directives-color.umd.min.js.map +1 -1
  89. package/bundles/taiga-ui-core-directives-described-by.umd.js +50 -5
  90. package/bundles/taiga-ui-core-directives-described-by.umd.js.map +1 -1
  91. package/bundles/taiga-ui-core-directives-described-by.umd.min.js.map +1 -1
  92. package/bundles/taiga-ui-core-directives-dropdown-controller.umd.js +55 -10
  93. package/bundles/taiga-ui-core-directives-dropdown-controller.umd.js.map +1 -1
  94. package/bundles/taiga-ui-core-directives-dropdown-controller.umd.min.js.map +1 -1
  95. package/bundles/taiga-ui-core-directives-dropdown.umd.js +48 -3
  96. package/bundles/taiga-ui-core-directives-dropdown.umd.js.map +1 -1
  97. package/bundles/taiga-ui-core-directives-dropdown.umd.min.js.map +1 -1
  98. package/bundles/taiga-ui-core-directives-hint-controller.umd.js +52 -7
  99. package/bundles/taiga-ui-core-directives-hint-controller.umd.js.map +1 -1
  100. package/bundles/taiga-ui-core-directives-hint-controller.umd.min.js.map +1 -1
  101. package/bundles/taiga-ui-core-directives-hint.umd.js +51 -6
  102. package/bundles/taiga-ui-core-directives-hint.umd.js.map +1 -1
  103. package/bundles/taiga-ui-core-directives-hint.umd.min.js.map +1 -1
  104. package/bundles/taiga-ui-core-directives-manual-hint.umd.js +49 -4
  105. package/bundles/taiga-ui-core-directives-manual-hint.umd.js.map +1 -1
  106. package/bundles/taiga-ui-core-directives-manual-hint.umd.min.js.map +1 -1
  107. package/bundles/taiga-ui-core-directives-mask-accessor.umd.js +47 -2
  108. package/bundles/taiga-ui-core-directives-mask-accessor.umd.js.map +1 -1
  109. package/bundles/taiga-ui-core-directives-mask-accessor.umd.min.js.map +1 -1
  110. package/bundles/taiga-ui-core-directives-mode.umd.js +48 -3
  111. package/bundles/taiga-ui-core-directives-mode.umd.js.map +1 -1
  112. package/bundles/taiga-ui-core-directives-mode.umd.min.js.map +1 -1
  113. package/bundles/taiga-ui-core-directives-pointer-hint.umd.js +50 -5
  114. package/bundles/taiga-ui-core-directives-pointer-hint.umd.js.map +1 -1
  115. package/bundles/taiga-ui-core-directives-pointer-hint.umd.min.js.map +1 -1
  116. package/bundles/taiga-ui-core-directives-scroll-into-view.umd.js +47 -2
  117. package/bundles/taiga-ui-core-directives-scroll-into-view.umd.js.map +1 -1
  118. package/bundles/taiga-ui-core-directives-scroll-into-view.umd.min.js.map +1 -1
  119. package/bundles/taiga-ui-core-directives-table-mode.umd.js +48 -3
  120. package/bundles/taiga-ui-core-directives-table-mode.umd.js.map +1 -1
  121. package/bundles/taiga-ui-core-directives-table-mode.umd.min.js.map +1 -1
  122. package/bundles/taiga-ui-core-directives-textfield-controller.umd.js +79 -34
  123. package/bundles/taiga-ui-core-directives-textfield-controller.umd.js.map +1 -1
  124. package/bundles/taiga-ui-core-directives-textfield-controller.umd.min.js.map +1 -1
  125. package/bundles/taiga-ui-core-directives-wrapper.umd.js +55 -10
  126. package/bundles/taiga-ui-core-directives-wrapper.umd.js.map +1 -1
  127. package/bundles/taiga-ui-core-directives-wrapper.umd.min.js.map +1 -1
  128. package/bundles/taiga-ui-core-internal-primitive-year-month-pagination.umd.js +47 -2
  129. package/bundles/taiga-ui-core-internal-primitive-year-month-pagination.umd.js.map +1 -1
  130. package/bundles/taiga-ui-core-internal-primitive-year-month-pagination.umd.min.js.map +1 -1
  131. package/bundles/taiga-ui-core-internal-svg-defs-host.umd.js +47 -2
  132. package/bundles/taiga-ui-core-internal-svg-defs-host.umd.js.map +1 -1
  133. package/bundles/taiga-ui-core-internal-svg-defs-host.umd.min.js.map +1 -1
  134. package/bundles/taiga-ui-core-pipes-calendar-sheet.umd.js +47 -2
  135. package/bundles/taiga-ui-core-pipes-calendar-sheet.umd.js.map +1 -1
  136. package/bundles/taiga-ui-core-pipes-calendar-sheet.umd.min.js.map +1 -1
  137. package/bundles/taiga-ui-core-pipes-format-date.umd.js +46 -1
  138. package/bundles/taiga-ui-core-pipes-format-date.umd.js.map +1 -1
  139. package/bundles/taiga-ui-core-pipes-format-date.umd.min.js.map +1 -1
  140. package/bundles/taiga-ui-core-pipes-format-number.umd.js +46 -1
  141. package/bundles/taiga-ui-core-pipes-format-number.umd.js.map +1 -1
  142. package/bundles/taiga-ui-core-pipes-format-number.umd.min.js.map +1 -1
  143. package/bundles/taiga-ui-core-pipes-format-phone.umd.js +46 -1
  144. package/bundles/taiga-ui-core-pipes-format-phone.umd.js.map +1 -1
  145. package/bundles/taiga-ui-core-pipes-format-phone.umd.min.js.map +1 -1
  146. package/bundles/taiga-ui-core-pipes-month.umd.js +46 -1
  147. package/bundles/taiga-ui-core-pipes-month.umd.js.map +1 -1
  148. package/bundles/taiga-ui-core-pipes-month.umd.min.js.map +1 -1
  149. package/bundles/taiga-ui-core-pipes-pluralize.umd.js +46 -1
  150. package/bundles/taiga-ui-core-pipes-pluralize.umd.js.map +1 -1
  151. package/bundles/taiga-ui-core-pipes-pluralize.umd.min.js.map +1 -1
  152. package/bundles/taiga-ui-core-services.umd.js +46 -1
  153. package/bundles/taiga-ui-core-services.umd.js.map +1 -1
  154. package/bundles/taiga-ui-core-services.umd.min.js.map +1 -1
  155. package/bundles/taiga-ui-core-tokens.umd.js +46 -1
  156. package/bundles/taiga-ui-core-tokens.umd.js.map +1 -1
  157. package/bundles/taiga-ui-core-tokens.umd.min.js.map +1 -1
  158. package/bundles/taiga-ui-core-utils-dom.umd.js +1 -3
  159. package/bundles/taiga-ui-core-utils-dom.umd.js.map +1 -1
  160. package/bundles/taiga-ui-core-utils-dom.umd.min.js +1 -1
  161. package/bundles/taiga-ui-core-utils-dom.umd.min.js.map +1 -1
  162. package/bundles/taiga-ui-core-utils-format.umd.js +46 -1
  163. package/bundles/taiga-ui-core-utils-format.umd.js.map +1 -1
  164. package/bundles/taiga-ui-core-utils-format.umd.min.js.map +1 -1
  165. package/bundles/taiga-ui-core-utils-mask.umd.js +47 -2
  166. package/bundles/taiga-ui-core-utils-mask.umd.js.map +1 -1
  167. package/bundles/taiga-ui-core-utils-mask.umd.min.js.map +1 -1
  168. package/bundles/taiga-ui-core-utils-polyfills.umd.js.map +1 -1
  169. package/bundles/taiga-ui-core-utils-polyfills.umd.min.js.map +1 -1
  170. package/components/button/button-options.d.ts +3 -3
  171. package/components/button/button.component.d.ts +2 -2
  172. package/components/calendar/calendar.component.d.ts +1 -1
  173. package/components/data-list/option/option.component.d.ts +1 -1
  174. package/components/dropdown-box/dropdown-box.component.d.ts +3 -3
  175. package/components/label/taiga-ui-core-components-label.metadata.json +1 -1
  176. package/components/link/link.component.d.ts +1 -1
  177. package/components/loader/loader.component.d.ts +1 -1
  178. package/components/notification/notification.component.d.ts +1 -1
  179. package/components/primitive-calendar/primitive-calendar.component.d.ts +2 -2
  180. package/components/primitive-textfield/primitive-textfield.component.d.ts +2 -2
  181. package/components/primitive-year-picker/primitive-year-picker.component.d.ts +1 -1
  182. package/components/svg/svg.component.d.ts +1 -1
  183. package/components/svg/taiga-ui-core-components-svg.metadata.json +1 -1
  184. package/constants/version.d.ts +1 -1
  185. package/directives/dropdown-controller/taiga-ui-core-directives-dropdown-controller.metadata.json +1 -1
  186. package/directives/textfield-controller/textfield-size.directive.d.ts +1 -1
  187. package/directives/textfield-controller/textfield.controller.d.ts +1 -1
  188. package/esm2015/abstract/abstract-dropdown.js +1 -1
  189. package/esm2015/abstract/abstract-textfield-host.js +7 -3
  190. package/esm2015/components/alert/alert.component.js +10 -10
  191. package/esm2015/components/button/button-options.js +1 -1
  192. package/esm2015/components/button/button.component.js +15 -15
  193. package/esm2015/components/calendar/calendar.component.js +2 -2
  194. package/esm2015/components/data-list/data-list-dropdown-manager.directive.js +9 -10
  195. package/esm2015/components/data-list/data-list.component.js +12 -12
  196. package/esm2015/components/data-list/data-list.directive.js +2 -2
  197. package/esm2015/components/data-list/opt-group.directive.js +5 -5
  198. package/esm2015/components/data-list/option/option.component.js +13 -13
  199. package/esm2015/components/dialog/dialog.component.js +12 -12
  200. package/esm2015/components/dialog/dialog.directive.js +4 -4
  201. package/esm2015/components/dropdown-box/dropdown-box.component.js +39 -39
  202. package/esm2015/components/error/error.component.js +5 -5
  203. package/esm2015/components/expand/expand-content.directive.js +2 -2
  204. package/esm2015/components/expand/expand.component.js +12 -12
  205. package/esm2015/components/group/group-styles.component.js +2 -2
  206. package/esm2015/components/group/group.component.js +4 -4
  207. package/esm2015/components/group/group.directive.js +15 -15
  208. package/esm2015/components/hints-host/hint-box/hint-box.component.js +46 -46
  209. package/esm2015/components/hints-host/hints-host.component.js +3 -3
  210. package/esm2015/components/hosted-dropdown/hosted-dropdown-connector.directive.js +2 -2
  211. package/esm2015/components/hosted-dropdown/hosted-dropdown.component.js +10 -10
  212. package/esm2015/components/label/label.component.js +6 -6
  213. package/esm2015/components/link/link.component.js +12 -12
  214. package/esm2015/components/loader/loader.component.js +3 -3
  215. package/esm2015/components/notification/notification.component.js +9 -9
  216. package/esm2015/components/primitive-calendar/primitive-calendar.component.js +3 -3
  217. package/esm2015/components/primitive-checkbox/primitive-checkbox.component.js +4 -4
  218. package/esm2015/components/primitive-spin-button/primitive-spin-button.component.js +3 -3
  219. package/esm2015/components/primitive-textfield/primitive-textfield.component.js +28 -28
  220. package/esm2015/components/primitive-textfield/primitive-textfield.directive.js +2 -2
  221. package/esm2015/components/primitive-textfield/textfield/textfield.component.js +13 -13
  222. package/esm2015/components/primitive-textfield/value-decoration/value-decoration.component.js +12 -12
  223. package/esm2015/components/primitive-year-picker/primitive-year-picker.component.js +3 -3
  224. package/esm2015/components/root/root.component.js +5 -5
  225. package/esm2015/components/scroll-controls/scroll-controls.component.js +4 -4
  226. package/esm2015/components/scroll-controls/scrollbar-wrapper.directive.js +2 -2
  227. package/esm2015/components/scroll-controls/scrollbar.directive.js +23 -23
  228. package/esm2015/components/scrollbar/scroll-ref.directive.js +2 -2
  229. package/esm2015/components/scrollbar/scrollable.directive.js +2 -2
  230. package/esm2015/components/scrollbar/scrollbar.component.js +7 -7
  231. package/esm2015/components/svg/svg.component.js +16 -16
  232. package/esm2015/components/theme-night/theme-night.component.js +3 -3
  233. package/esm2015/components/tooltip/tooltip.component.js +8 -8
  234. package/esm2015/directives/color/color.directive.js +7 -7
  235. package/esm2015/directives/described-by/described-by.directive.js +5 -5
  236. package/esm2015/directives/dropdown/dropdown.directive.js +3 -3
  237. package/esm2015/directives/dropdown-controller/dropdown-controller.directive.js +10 -10
  238. package/esm2015/directives/hint/hint.directive.js +6 -6
  239. package/esm2015/directives/hint-controller/hint-controller.directive.js +7 -7
  240. package/esm2015/directives/manual-hint/manual-hint.directive.js +4 -4
  241. package/esm2015/directives/mask-accessor/mask-accessor.directive.js +2 -2
  242. package/esm2015/directives/mode/mode.directive.js +3 -3
  243. package/esm2015/directives/pointer-hint/pointer-hint.directive.js +5 -5
  244. package/esm2015/directives/scroll-into-view/scroll-into-view.directive.js +2 -2
  245. package/esm2015/directives/table-mode/table-mode.directive.js +3 -3
  246. package/esm2015/directives/textfield-controller/textfield-autocomplete.directive.js +5 -5
  247. package/esm2015/directives/textfield-controller/textfield-cleaner.directive.js +4 -4
  248. package/esm2015/directives/textfield-controller/textfield-custom-content.directive.js +5 -5
  249. package/esm2015/directives/textfield-controller/textfield-example-text.directive.js +5 -5
  250. package/esm2015/directives/textfield-controller/textfield-input-mode.directive.js +5 -5
  251. package/esm2015/directives/textfield-controller/textfield-label-outside.directive.js +4 -4
  252. package/esm2015/directives/textfield-controller/textfield-max-length.directive.js +4 -4
  253. package/esm2015/directives/textfield-controller/textfield-size.directive.js +5 -5
  254. package/esm2015/directives/textfield-controller/textfield-type.directive.js +5 -5
  255. package/esm2015/directives/textfield-controller/textfield.controller.js +1 -1
  256. package/esm2015/directives/wrapper/wrapper.directive.js +10 -10
  257. package/esm2015/interfaces/alert-options.js +1 -1
  258. package/esm2015/interfaces/dropdown-directive.js +1 -1
  259. package/esm2015/interfaces/hint.js +1 -1
  260. package/esm2015/interfaces/notification-options.js +1 -1
  261. package/esm2015/interfaces/number-format-settings.js +1 -1
  262. package/esm2015/internal/primitive-year-month-pagination/primitive-year-month-pagination.component.js +2 -2
  263. package/esm2015/internal/svg-defs-host/svg-defs-host.component.js +2 -2
  264. package/esm2015/mask/text-mask-list.js +1 -1
  265. package/esm2015/mask/text-mask-pipe-handler.js +1 -1
  266. package/esm2015/pipes/calendar-sheet/utils.js +2 -2
  267. package/esm2015/pipes/format-date/format-date.pipe.js +1 -1
  268. package/esm2015/types/brightness.js +1 -1
  269. package/esm2015/types/decimal-symbol.js +1 -1
  270. package/esm2015/types/decimal.js +1 -1
  271. package/esm2015/types/dialog-size.js +1 -1
  272. package/esm2015/types/direction.js +1 -1
  273. package/esm2015/types/dropdown-width.js +1 -1
  274. package/esm2015/types/marker-handler.js +1 -1
  275. package/esm2015/types/option-role.js +1 -1
  276. package/esm2015/types/orientation.js +1 -1
  277. package/esm2015/types/size.js +1 -1
  278. package/esm2015/utils/dom/get-safe-area-size.js +1 -1
  279. package/esm2015/utils/dom/process-icon.js +2 -4
  280. package/esm2015/utils/mask/create-number-mask.js +2 -2
  281. package/esm2015/utils/polyfills/inner-html.js +3 -3
  282. package/esm5/abstract/abstract-dropdown.js +1 -1
  283. package/esm5/abstract/abstract-textfield-host.js +4 -2
  284. package/esm5/components/alert/alert.component.js +10 -10
  285. package/esm5/components/button/button-options.js +1 -1
  286. package/esm5/components/button/button.component.js +15 -15
  287. package/esm5/components/calendar/calendar.component.js +2 -2
  288. package/esm5/components/data-list/data-list-dropdown-manager.directive.js +10 -11
  289. package/esm5/components/data-list/data-list.component.js +12 -12
  290. package/esm5/components/data-list/data-list.directive.js +2 -2
  291. package/esm5/components/data-list/opt-group.directive.js +5 -5
  292. package/esm5/components/data-list/option/option.component.js +13 -13
  293. package/esm5/components/dialog/dialog.component.js +12 -12
  294. package/esm5/components/dialog/dialog.directive.js +4 -4
  295. package/esm5/components/dropdown-box/dropdown-box.component.js +39 -39
  296. package/esm5/components/error/error.component.js +5 -5
  297. package/esm5/components/expand/expand-content.directive.js +2 -2
  298. package/esm5/components/expand/expand.component.js +12 -12
  299. package/esm5/components/group/group-styles.component.js +2 -2
  300. package/esm5/components/group/group.component.js +4 -4
  301. package/esm5/components/group/group.directive.js +15 -15
  302. package/esm5/components/hints-host/hint-box/hint-box.component.js +46 -46
  303. package/esm5/components/hints-host/hints-host.component.js +3 -3
  304. package/esm5/components/hosted-dropdown/hosted-dropdown-connector.directive.js +2 -2
  305. package/esm5/components/hosted-dropdown/hosted-dropdown.component.js +10 -10
  306. package/esm5/components/label/label.component.js +6 -6
  307. package/esm5/components/link/link.component.js +12 -12
  308. package/esm5/components/loader/loader.component.js +3 -3
  309. package/esm5/components/notification/notification.component.js +9 -9
  310. package/esm5/components/primitive-calendar/primitive-calendar.component.js +3 -3
  311. package/esm5/components/primitive-checkbox/primitive-checkbox.component.js +4 -4
  312. package/esm5/components/primitive-spin-button/primitive-spin-button.component.js +3 -3
  313. package/esm5/components/primitive-textfield/primitive-textfield.component.js +28 -28
  314. package/esm5/components/primitive-textfield/primitive-textfield.directive.js +2 -2
  315. package/esm5/components/primitive-textfield/textfield/textfield.component.js +13 -13
  316. package/esm5/components/primitive-textfield/value-decoration/value-decoration.component.js +12 -12
  317. package/esm5/components/primitive-year-picker/primitive-year-picker.component.js +3 -3
  318. package/esm5/components/root/root.component.js +5 -5
  319. package/esm5/components/scroll-controls/scroll-controls.component.js +4 -4
  320. package/esm5/components/scroll-controls/scrollbar-wrapper.directive.js +2 -2
  321. package/esm5/components/scroll-controls/scrollbar.directive.js +23 -23
  322. package/esm5/components/scrollbar/scroll-ref.directive.js +2 -2
  323. package/esm5/components/scrollbar/scrollable.directive.js +2 -2
  324. package/esm5/components/scrollbar/scrollbar.component.js +7 -7
  325. package/esm5/components/svg/svg.component.js +16 -16
  326. package/esm5/components/theme-night/theme-night.component.js +3 -3
  327. package/esm5/components/tooltip/tooltip.component.js +8 -8
  328. package/esm5/directives/color/color.directive.js +7 -7
  329. package/esm5/directives/described-by/described-by.directive.js +5 -5
  330. package/esm5/directives/dropdown/dropdown.directive.js +3 -3
  331. package/esm5/directives/dropdown-controller/dropdown-controller.directive.js +10 -10
  332. package/esm5/directives/hint/hint.directive.js +6 -6
  333. package/esm5/directives/hint-controller/hint-controller.directive.js +7 -7
  334. package/esm5/directives/manual-hint/manual-hint.directive.js +4 -4
  335. package/esm5/directives/mask-accessor/mask-accessor.directive.js +2 -2
  336. package/esm5/directives/mode/mode.directive.js +3 -3
  337. package/esm5/directives/pointer-hint/pointer-hint.directive.js +5 -5
  338. package/esm5/directives/scroll-into-view/scroll-into-view.directive.js +2 -2
  339. package/esm5/directives/table-mode/table-mode.directive.js +3 -3
  340. package/esm5/directives/textfield-controller/textfield-autocomplete.directive.js +5 -5
  341. package/esm5/directives/textfield-controller/textfield-cleaner.directive.js +4 -4
  342. package/esm5/directives/textfield-controller/textfield-custom-content.directive.js +5 -5
  343. package/esm5/directives/textfield-controller/textfield-example-text.directive.js +5 -5
  344. package/esm5/directives/textfield-controller/textfield-input-mode.directive.js +5 -5
  345. package/esm5/directives/textfield-controller/textfield-label-outside.directive.js +4 -4
  346. package/esm5/directives/textfield-controller/textfield-max-length.directive.js +4 -4
  347. package/esm5/directives/textfield-controller/textfield-size.directive.js +5 -5
  348. package/esm5/directives/textfield-controller/textfield-type.directive.js +5 -5
  349. package/esm5/directives/textfield-controller/textfield.controller.js +1 -1
  350. package/esm5/directives/wrapper/wrapper.directive.js +10 -10
  351. package/esm5/interfaces/alert-options.js +1 -1
  352. package/esm5/interfaces/dropdown-directive.js +1 -1
  353. package/esm5/interfaces/hint.js +1 -1
  354. package/esm5/interfaces/notification-options.js +1 -1
  355. package/esm5/interfaces/number-format-settings.js +1 -1
  356. package/esm5/internal/primitive-year-month-pagination/primitive-year-month-pagination.component.js +2 -2
  357. package/esm5/internal/svg-defs-host/svg-defs-host.component.js +2 -2
  358. package/esm5/mask/text-mask-list.js +1 -1
  359. package/esm5/mask/text-mask-pipe-handler.js +1 -1
  360. package/esm5/pipes/calendar-sheet/utils.js +2 -2
  361. package/esm5/pipes/format-date/format-date.pipe.js +1 -1
  362. package/esm5/types/brightness.js +1 -1
  363. package/esm5/types/decimal-symbol.js +1 -1
  364. package/esm5/types/decimal.js +1 -1
  365. package/esm5/types/dialog-size.js +1 -1
  366. package/esm5/types/direction.js +1 -1
  367. package/esm5/types/dropdown-width.js +1 -1
  368. package/esm5/types/marker-handler.js +1 -1
  369. package/esm5/types/option-role.js +1 -1
  370. package/esm5/types/orientation.js +1 -1
  371. package/esm5/types/size.js +1 -1
  372. package/esm5/utils/dom/get-safe-area-size.js +1 -1
  373. package/esm5/utils/dom/process-icon.js +2 -4
  374. package/esm5/utils/mask/create-number-mask.js +2 -2
  375. package/esm5/utils/polyfills/inner-html.js +1 -1
  376. package/fesm2015/taiga-ui-core-abstract.js +6 -2
  377. package/fesm2015/taiga-ui-core-abstract.js.map +1 -1
  378. package/fesm2015/taiga-ui-core-components-alert.js +9 -9
  379. package/fesm2015/taiga-ui-core-components-alert.js.map +1 -1
  380. package/fesm2015/taiga-ui-core-components-button.js +14 -14
  381. package/fesm2015/taiga-ui-core-components-button.js.map +1 -1
  382. package/fesm2015/taiga-ui-core-components-calendar.js +1 -1
  383. package/fesm2015/taiga-ui-core-components-calendar.js.map +1 -1
  384. package/fesm2015/taiga-ui-core-components-data-list.js +36 -37
  385. package/fesm2015/taiga-ui-core-components-data-list.js.map +1 -1
  386. package/fesm2015/taiga-ui-core-components-dialog.js +14 -14
  387. package/fesm2015/taiga-ui-core-components-dialog.js.map +1 -1
  388. package/fesm2015/taiga-ui-core-components-dropdown-box.js +38 -38
  389. package/fesm2015/taiga-ui-core-components-dropdown-box.js.map +1 -1
  390. package/fesm2015/taiga-ui-core-components-error.js +4 -4
  391. package/fesm2015/taiga-ui-core-components-error.js.map +1 -1
  392. package/fesm2015/taiga-ui-core-components-expand.js +12 -12
  393. package/fesm2015/taiga-ui-core-components-expand.js.map +1 -1
  394. package/fesm2015/taiga-ui-core-components-group.js +18 -18
  395. package/fesm2015/taiga-ui-core-components-group.js.map +1 -1
  396. package/fesm2015/taiga-ui-core-components-hints-host.js +47 -47
  397. package/fesm2015/taiga-ui-core-components-hints-host.js.map +1 -1
  398. package/fesm2015/taiga-ui-core-components-hosted-dropdown.js +10 -10
  399. package/fesm2015/taiga-ui-core-components-hosted-dropdown.js.map +1 -1
  400. package/fesm2015/taiga-ui-core-components-label.js +5 -5
  401. package/fesm2015/taiga-ui-core-components-label.js.map +1 -1
  402. package/fesm2015/taiga-ui-core-components-link.js +11 -11
  403. package/fesm2015/taiga-ui-core-components-link.js.map +1 -1
  404. package/fesm2015/taiga-ui-core-components-loader.js +2 -2
  405. package/fesm2015/taiga-ui-core-components-loader.js.map +1 -1
  406. package/fesm2015/taiga-ui-core-components-notification.js +8 -8
  407. package/fesm2015/taiga-ui-core-components-notification.js.map +1 -1
  408. package/fesm2015/taiga-ui-core-components-primitive-calendar.js +2 -2
  409. package/fesm2015/taiga-ui-core-components-primitive-calendar.js.map +1 -1
  410. package/fesm2015/taiga-ui-core-components-primitive-checkbox.js +3 -3
  411. package/fesm2015/taiga-ui-core-components-primitive-checkbox.js.map +1 -1
  412. package/fesm2015/taiga-ui-core-components-primitive-spin-button.js +2 -2
  413. package/fesm2015/taiga-ui-core-components-primitive-spin-button.js.map +1 -1
  414. package/fesm2015/taiga-ui-core-components-primitive-textfield.js +51 -51
  415. package/fesm2015/taiga-ui-core-components-primitive-textfield.js.map +1 -1
  416. package/fesm2015/taiga-ui-core-components-primitive-year-picker.js +2 -2
  417. package/fesm2015/taiga-ui-core-components-primitive-year-picker.js.map +1 -1
  418. package/fesm2015/taiga-ui-core-components-root.js +4 -4
  419. package/fesm2015/taiga-ui-core-components-root.js.map +1 -1
  420. package/fesm2015/taiga-ui-core-components-scroll-controls.js +26 -26
  421. package/fesm2015/taiga-ui-core-components-scroll-controls.js.map +1 -1
  422. package/fesm2015/taiga-ui-core-components-scrollbar.js +8 -8
  423. package/fesm2015/taiga-ui-core-components-scrollbar.js.map +1 -1
  424. package/fesm2015/taiga-ui-core-components-svg.js +15 -15
  425. package/fesm2015/taiga-ui-core-components-svg.js.map +1 -1
  426. package/fesm2015/taiga-ui-core-components-theme-night.js +2 -2
  427. package/fesm2015/taiga-ui-core-components-theme-night.js.map +1 -1
  428. package/fesm2015/taiga-ui-core-components-tooltip.js +7 -7
  429. package/fesm2015/taiga-ui-core-components-tooltip.js.map +1 -1
  430. package/fesm2015/taiga-ui-core-directives-color.js +6 -6
  431. package/fesm2015/taiga-ui-core-directives-color.js.map +1 -1
  432. package/fesm2015/taiga-ui-core-directives-described-by.js +4 -4
  433. package/fesm2015/taiga-ui-core-directives-described-by.js.map +1 -1
  434. package/fesm2015/taiga-ui-core-directives-dropdown-controller.js +9 -9
  435. package/fesm2015/taiga-ui-core-directives-dropdown-controller.js.map +1 -1
  436. package/fesm2015/taiga-ui-core-directives-dropdown.js +2 -2
  437. package/fesm2015/taiga-ui-core-directives-dropdown.js.map +1 -1
  438. package/fesm2015/taiga-ui-core-directives-hint-controller.js +6 -6
  439. package/fesm2015/taiga-ui-core-directives-hint-controller.js.map +1 -1
  440. package/fesm2015/taiga-ui-core-directives-hint.js +5 -5
  441. package/fesm2015/taiga-ui-core-directives-hint.js.map +1 -1
  442. package/fesm2015/taiga-ui-core-directives-manual-hint.js +3 -3
  443. package/fesm2015/taiga-ui-core-directives-manual-hint.js.map +1 -1
  444. package/fesm2015/taiga-ui-core-directives-mask-accessor.js +1 -1
  445. package/fesm2015/taiga-ui-core-directives-mask-accessor.js.map +1 -1
  446. package/fesm2015/taiga-ui-core-directives-mode.js +2 -2
  447. package/fesm2015/taiga-ui-core-directives-mode.js.map +1 -1
  448. package/fesm2015/taiga-ui-core-directives-pointer-hint.js +4 -4
  449. package/fesm2015/taiga-ui-core-directives-pointer-hint.js.map +1 -1
  450. package/fesm2015/taiga-ui-core-directives-scroll-into-view.js +1 -1
  451. package/fesm2015/taiga-ui-core-directives-scroll-into-view.js.map +1 -1
  452. package/fesm2015/taiga-ui-core-directives-table-mode.js +2 -2
  453. package/fesm2015/taiga-ui-core-directives-table-mode.js.map +1 -1
  454. package/fesm2015/taiga-ui-core-directives-textfield-controller.js +33 -33
  455. package/fesm2015/taiga-ui-core-directives-textfield-controller.js.map +1 -1
  456. package/fesm2015/taiga-ui-core-directives-wrapper.js +9 -9
  457. package/fesm2015/taiga-ui-core-directives-wrapper.js.map +1 -1
  458. package/fesm2015/taiga-ui-core-internal-primitive-year-month-pagination.js +1 -1
  459. package/fesm2015/taiga-ui-core-internal-primitive-year-month-pagination.js.map +1 -1
  460. package/fesm2015/taiga-ui-core-internal-svg-defs-host.js +1 -1
  461. package/fesm2015/taiga-ui-core-internal-svg-defs-host.js.map +1 -1
  462. package/fesm2015/taiga-ui-core-pipes-calendar-sheet.js +1 -1
  463. package/fesm2015/taiga-ui-core-pipes-calendar-sheet.js.map +1 -1
  464. package/fesm2015/taiga-ui-core-pipes-format-date.js.map +1 -1
  465. package/fesm2015/taiga-ui-core-utils-dom.js +1 -3
  466. package/fesm2015/taiga-ui-core-utils-dom.js.map +1 -1
  467. package/fesm2015/taiga-ui-core-utils-mask.js +1 -1
  468. package/fesm2015/taiga-ui-core-utils-mask.js.map +1 -1
  469. package/fesm2015/taiga-ui-core-utils-polyfills.js +2 -2
  470. package/fesm2015/taiga-ui-core-utils-polyfills.js.map +1 -1
  471. package/fesm5/taiga-ui-core-abstract.js +3 -1
  472. package/fesm5/taiga-ui-core-abstract.js.map +1 -1
  473. package/fesm5/taiga-ui-core-components-alert.js +9 -9
  474. package/fesm5/taiga-ui-core-components-alert.js.map +1 -1
  475. package/fesm5/taiga-ui-core-components-button.js +14 -14
  476. package/fesm5/taiga-ui-core-components-button.js.map +1 -1
  477. package/fesm5/taiga-ui-core-components-calendar.js +1 -1
  478. package/fesm5/taiga-ui-core-components-calendar.js.map +1 -1
  479. package/fesm5/taiga-ui-core-components-data-list.js +37 -38
  480. package/fesm5/taiga-ui-core-components-data-list.js.map +1 -1
  481. package/fesm5/taiga-ui-core-components-dialog.js +14 -14
  482. package/fesm5/taiga-ui-core-components-dialog.js.map +1 -1
  483. package/fesm5/taiga-ui-core-components-dropdown-box.js +38 -38
  484. package/fesm5/taiga-ui-core-components-dropdown-box.js.map +1 -1
  485. package/fesm5/taiga-ui-core-components-error.js +4 -4
  486. package/fesm5/taiga-ui-core-components-error.js.map +1 -1
  487. package/fesm5/taiga-ui-core-components-expand.js +12 -12
  488. package/fesm5/taiga-ui-core-components-expand.js.map +1 -1
  489. package/fesm5/taiga-ui-core-components-group.js +18 -18
  490. package/fesm5/taiga-ui-core-components-group.js.map +1 -1
  491. package/fesm5/taiga-ui-core-components-hints-host.js +47 -47
  492. package/fesm5/taiga-ui-core-components-hints-host.js.map +1 -1
  493. package/fesm5/taiga-ui-core-components-hosted-dropdown.js +10 -10
  494. package/fesm5/taiga-ui-core-components-hosted-dropdown.js.map +1 -1
  495. package/fesm5/taiga-ui-core-components-label.js +5 -5
  496. package/fesm5/taiga-ui-core-components-label.js.map +1 -1
  497. package/fesm5/taiga-ui-core-components-link.js +11 -11
  498. package/fesm5/taiga-ui-core-components-link.js.map +1 -1
  499. package/fesm5/taiga-ui-core-components-loader.js +2 -2
  500. package/fesm5/taiga-ui-core-components-loader.js.map +1 -1
  501. package/fesm5/taiga-ui-core-components-notification.js +8 -8
  502. package/fesm5/taiga-ui-core-components-notification.js.map +1 -1
  503. package/fesm5/taiga-ui-core-components-primitive-calendar.js +2 -2
  504. package/fesm5/taiga-ui-core-components-primitive-calendar.js.map +1 -1
  505. package/fesm5/taiga-ui-core-components-primitive-checkbox.js +3 -3
  506. package/fesm5/taiga-ui-core-components-primitive-checkbox.js.map +1 -1
  507. package/fesm5/taiga-ui-core-components-primitive-spin-button.js +2 -2
  508. package/fesm5/taiga-ui-core-components-primitive-spin-button.js.map +1 -1
  509. package/fesm5/taiga-ui-core-components-primitive-textfield.js +51 -51
  510. package/fesm5/taiga-ui-core-components-primitive-textfield.js.map +1 -1
  511. package/fesm5/taiga-ui-core-components-primitive-year-picker.js +2 -2
  512. package/fesm5/taiga-ui-core-components-primitive-year-picker.js.map +1 -1
  513. package/fesm5/taiga-ui-core-components-root.js +4 -4
  514. package/fesm5/taiga-ui-core-components-root.js.map +1 -1
  515. package/fesm5/taiga-ui-core-components-scroll-controls.js +26 -26
  516. package/fesm5/taiga-ui-core-components-scroll-controls.js.map +1 -1
  517. package/fesm5/taiga-ui-core-components-scrollbar.js +8 -8
  518. package/fesm5/taiga-ui-core-components-scrollbar.js.map +1 -1
  519. package/fesm5/taiga-ui-core-components-svg.js +15 -15
  520. package/fesm5/taiga-ui-core-components-svg.js.map +1 -1
  521. package/fesm5/taiga-ui-core-components-theme-night.js +2 -2
  522. package/fesm5/taiga-ui-core-components-theme-night.js.map +1 -1
  523. package/fesm5/taiga-ui-core-components-tooltip.js +7 -7
  524. package/fesm5/taiga-ui-core-components-tooltip.js.map +1 -1
  525. package/fesm5/taiga-ui-core-directives-color.js +6 -6
  526. package/fesm5/taiga-ui-core-directives-color.js.map +1 -1
  527. package/fesm5/taiga-ui-core-directives-described-by.js +4 -4
  528. package/fesm5/taiga-ui-core-directives-described-by.js.map +1 -1
  529. package/fesm5/taiga-ui-core-directives-dropdown-controller.js +9 -9
  530. package/fesm5/taiga-ui-core-directives-dropdown-controller.js.map +1 -1
  531. package/fesm5/taiga-ui-core-directives-dropdown.js +2 -2
  532. package/fesm5/taiga-ui-core-directives-dropdown.js.map +1 -1
  533. package/fesm5/taiga-ui-core-directives-hint-controller.js +6 -6
  534. package/fesm5/taiga-ui-core-directives-hint-controller.js.map +1 -1
  535. package/fesm5/taiga-ui-core-directives-hint.js +5 -5
  536. package/fesm5/taiga-ui-core-directives-hint.js.map +1 -1
  537. package/fesm5/taiga-ui-core-directives-manual-hint.js +3 -3
  538. package/fesm5/taiga-ui-core-directives-manual-hint.js.map +1 -1
  539. package/fesm5/taiga-ui-core-directives-mask-accessor.js +1 -1
  540. package/fesm5/taiga-ui-core-directives-mask-accessor.js.map +1 -1
  541. package/fesm5/taiga-ui-core-directives-mode.js +2 -2
  542. package/fesm5/taiga-ui-core-directives-mode.js.map +1 -1
  543. package/fesm5/taiga-ui-core-directives-pointer-hint.js +4 -4
  544. package/fesm5/taiga-ui-core-directives-pointer-hint.js.map +1 -1
  545. package/fesm5/taiga-ui-core-directives-scroll-into-view.js +1 -1
  546. package/fesm5/taiga-ui-core-directives-scroll-into-view.js.map +1 -1
  547. package/fesm5/taiga-ui-core-directives-table-mode.js +2 -2
  548. package/fesm5/taiga-ui-core-directives-table-mode.js.map +1 -1
  549. package/fesm5/taiga-ui-core-directives-textfield-controller.js +33 -33
  550. package/fesm5/taiga-ui-core-directives-textfield-controller.js.map +1 -1
  551. package/fesm5/taiga-ui-core-directives-wrapper.js +9 -9
  552. package/fesm5/taiga-ui-core-directives-wrapper.js.map +1 -1
  553. package/fesm5/taiga-ui-core-internal-primitive-year-month-pagination.js +1 -1
  554. package/fesm5/taiga-ui-core-internal-primitive-year-month-pagination.js.map +1 -1
  555. package/fesm5/taiga-ui-core-internal-svg-defs-host.js +1 -1
  556. package/fesm5/taiga-ui-core-internal-svg-defs-host.js.map +1 -1
  557. package/fesm5/taiga-ui-core-pipes-calendar-sheet.js +1 -1
  558. package/fesm5/taiga-ui-core-pipes-calendar-sheet.js.map +1 -1
  559. package/fesm5/taiga-ui-core-pipes-format-date.js.map +1 -1
  560. package/fesm5/taiga-ui-core-utils-dom.js +1 -3
  561. package/fesm5/taiga-ui-core-utils-dom.js.map +1 -1
  562. package/fesm5/taiga-ui-core-utils-mask.js +1 -1
  563. package/fesm5/taiga-ui-core-utils-mask.js.map +1 -1
  564. package/fesm5/taiga-ui-core-utils-polyfills.js.map +1 -1
  565. package/interfaces/alert-options.d.ts +1 -1
  566. package/interfaces/dropdown-directive.d.ts +2 -2
  567. package/interfaces/hint.d.ts +1 -1
  568. package/interfaces/notification-options.d.ts +1 -1
  569. package/interfaces/number-format-settings.d.ts +1 -2
  570. package/mask/text-mask-list.d.ts +1 -1
  571. package/mask/text-mask-pipe-handler.d.ts +1 -1
  572. package/package.json +4 -4
  573. package/pipes/format-date/format-date.pipe.d.ts +1 -1
  574. package/tokens/dropdown-directive.d.ts +1 -1
  575. package/types/brightness.d.ts +1 -1
  576. package/types/decimal-symbol.d.ts +1 -1
  577. package/types/decimal.d.ts +1 -1
  578. package/types/dialog-size.d.ts +1 -1
  579. package/types/direction.d.ts +2 -2
  580. package/types/dropdown-width.d.ts +1 -1
  581. package/types/marker-handler.d.ts +1 -1
  582. package/types/option-role.d.ts +1 -1
  583. package/types/orientation.d.ts +1 -1
  584. package/types/size.d.ts +2 -2
@@ -14,10 +14,10 @@ let TuiErrorComponent = class TuiErrorComponent {
14
14
  this.mode$ = mode$;
15
15
  this.defaultErrorMessage$ = defaultErrorMessage$;
16
16
  this.error = null;
17
- this.animation = Object.assign({ value: `` }, this.options);
17
+ this.animation = Object.assign({ value: '' }, this.options);
18
18
  }
19
19
  set errorSetter(error) {
20
- this.error = typeof error === `string` ? new TuiValidationError(error) : error;
20
+ this.error = typeof error === 'string' ? new TuiValidationError(error) : error;
21
21
  }
22
22
  };
23
23
  TuiErrorComponent.ctorParameters = () => [
@@ -26,12 +26,12 @@ TuiErrorComponent.ctorParameters = () => [
26
26
  { type: Observable, decorators: [{ type: Inject, args: [TUI_DEFAULT_ERROR_MESSAGE,] }] }
27
27
  ];
28
28
  __decorate([
29
- Input(`error`),
29
+ Input('error'),
30
30
  tuiDefaultProp()
31
31
  ], TuiErrorComponent.prototype, "errorSetter", null);
32
32
  TuiErrorComponent = __decorate([
33
33
  Component({
34
- selector: `tui-error`,
34
+ selector: 'tui-error',
35
35
  template: "<div\n *ngIf=\"error\"\n polymorpheus-outlet\n automation-id=\"tui-error__text\"\n class=\"t-message-text\"\n [@tuiHeightCollapse]=\"animation\"\n [@tuiFadeIn]=\"animation\"\n [class.t-message-text_light]=\"(mode$ | async) === 'onDark'\"\n [content]=\"error.message || (defaultErrorMessage$ | async)\"\n [context]=\"error.context || {}\"\n></div>\n",
36
36
  providers: [MODE_PROVIDER],
37
37
  changeDetection: ChangeDetectionStrategy.OnPush,
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-core-components-error.js","sources":["ng://@taiga-ui/core/components/error/error.component.ts","ng://@taiga-ui/core/components/error/error.module.ts","ng://@taiga-ui/core/components/error/taiga-ui-core-components-error.ts"],"sourcesContent":["import {AnimationOptions} from '@angular/animations';\nimport {ChangeDetectionStrategy, Component, Inject, Input} from '@angular/core';\nimport {tuiDefaultProp, TuiValidationError} from '@taiga-ui/cdk';\nimport {tuiFadeIn, tuiHeightCollapse} from '@taiga-ui/core/animations';\nimport {MODE_PROVIDER} from '@taiga-ui/core/providers';\nimport {\n TUI_ANIMATION_OPTIONS,\n TUI_DEFAULT_ERROR_MESSAGE,\n TUI_MODE,\n} from '@taiga-ui/core/tokens';\nimport {TuiBrightness} from '@taiga-ui/core/types';\nimport {Observable} from 'rxjs';\n\n@Component({\n selector: `tui-error`,\n templateUrl: `./error.template.html`,\n styleUrls: [`./error.style.less`],\n providers: [MODE_PROVIDER],\n changeDetection: ChangeDetectionStrategy.OnPush,\n animations: [tuiHeightCollapse, tuiFadeIn],\n})\nexport class TuiErrorComponent {\n @Input(`error`)\n @tuiDefaultProp()\n set errorSetter(error: TuiValidationError | string | null) {\n this.error = typeof error === `string` ? new TuiValidationError(error) : error;\n }\n\n error: TuiValidationError | null = null;\n\n readonly animation = {value: ``, ...this.options} as const;\n\n constructor(\n @Inject(TUI_ANIMATION_OPTIONS) private readonly options: AnimationOptions,\n @Inject(TUI_MODE) readonly mode$: Observable<TuiBrightness | null>,\n @Inject(TUI_DEFAULT_ERROR_MESSAGE)\n readonly defaultErrorMessage$: Observable<string>,\n ) {}\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiErrorComponent} from './error.component';\n\n@NgModule({\n imports: [CommonModule, PolymorpheusModule],\n declarations: [TuiErrorComponent],\n exports: [TuiErrorComponent],\n})\nexport class TuiErrorModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;IAqBa,iBAAiB,GAA9B,MAAa,iBAAiB;IAW1B,YACoD,OAAyB,EAC9C,KAAuC,EAEzD,oBAAwC;QAHD,YAAO,GAAP,OAAO,CAAkB;QAC9C,UAAK,GAAL,KAAK,CAAkC;QAEzD,yBAAoB,GAApB,oBAAoB,CAAoB;QARrD,UAAK,GAA8B,IAAI,CAAC;QAE/B,cAAS,GAAG,gBAAC,KAAK,EAAE,EAAE,IAAK,IAAI,CAAC,OAAO,CAAU,CAAC;KAOvD;IAbJ,IAAI,WAAW,CAAC,KAAyC;QACrD,IAAI,CAAC,KAAK,GAAG,OAAO,KAAK,KAAK,QAAQ,GAAG,IAAI,kBAAkB,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC;KAClF;EAYJ;;4CALQ,MAAM,SAAC,qBAAqB;YACK,UAAU,uBAA3C,MAAM,SAAC,QAAQ;YAEe,UAAU,uBADxC,MAAM,SAAC,yBAAyB;;AAXrC;IAFC,KAAK,CAAC,OAAO,CAAC;IACd,cAAc,EAAE;oDAGhB;AALQ,iBAAiB;IAR7B,SAAS,CAAC;QACP,QAAQ,EAAE,WAAW;QACrB,mYAAoC;QAEpC,SAAS,EAAE,CAAC,aAAa,CAAC;QAC1B,eAAe,EAAE,uBAAuB,CAAC,MAAM;QAC/C,UAAU,EAAE,CAAC,iBAAiB,EAAE,SAAS,CAAC;;KAC7C,CAAC;IAaO,WAAA,MAAM,CAAC,qBAAqB,CAAC,CAAA;IAC7B,WAAA,MAAM,CAAC,QAAQ,CAAC,CAAA;IAChB,WAAA,MAAM,CAAC,yBAAyB,CAAC,CAAA;GAd7B,iBAAiB,CAiB7B;;IC3BY,cAAc,GAA3B,MAAa,cAAc;EAAG;AAAjB,cAAc;IAL1B,QAAQ,CAAC;QACN,OAAO,EAAE,CAAC,YAAY,EAAE,kBAAkB,CAAC;QAC3C,YAAY,EAAE,CAAC,iBAAiB,CAAC;QACjC,OAAO,EAAE,CAAC,iBAAiB,CAAC;KAC/B,CAAC;GACW,cAAc,CAAG;;ACX9B;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-core-components-error.js","sources":["ng://@taiga-ui/core/components/error/error.component.ts","ng://@taiga-ui/core/components/error/error.module.ts","ng://@taiga-ui/core/components/error/taiga-ui-core-components-error.ts"],"sourcesContent":["import {AnimationOptions} from '@angular/animations';\nimport {ChangeDetectionStrategy, Component, Inject, Input} from '@angular/core';\nimport {tuiDefaultProp, TuiValidationError} from '@taiga-ui/cdk';\nimport {tuiFadeIn, tuiHeightCollapse} from '@taiga-ui/core/animations';\nimport {MODE_PROVIDER} from '@taiga-ui/core/providers';\nimport {\n TUI_ANIMATION_OPTIONS,\n TUI_DEFAULT_ERROR_MESSAGE,\n TUI_MODE,\n} from '@taiga-ui/core/tokens';\nimport {TuiBrightness} from '@taiga-ui/core/types';\nimport {Observable} from 'rxjs';\n\n@Component({\n selector: 'tui-error',\n templateUrl: './error.template.html',\n styleUrls: ['./error.style.less'],\n providers: [MODE_PROVIDER],\n changeDetection: ChangeDetectionStrategy.OnPush,\n animations: [tuiHeightCollapse, tuiFadeIn],\n})\nexport class TuiErrorComponent {\n @Input('error')\n @tuiDefaultProp()\n set errorSetter(error: TuiValidationError | string | null) {\n this.error = typeof error === 'string' ? new TuiValidationError(error) : error;\n }\n\n error: TuiValidationError | null = null;\n\n readonly animation = {value: '', ...this.options} as const;\n\n constructor(\n @Inject(TUI_ANIMATION_OPTIONS) private readonly options: AnimationOptions,\n @Inject(TUI_MODE) readonly mode$: Observable<TuiBrightness | null>,\n @Inject(TUI_DEFAULT_ERROR_MESSAGE)\n readonly defaultErrorMessage$: Observable<string>,\n ) {}\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiErrorComponent} from './error.component';\n\n@NgModule({\n imports: [CommonModule, PolymorpheusModule],\n declarations: [TuiErrorComponent],\n exports: [TuiErrorComponent],\n})\nexport class TuiErrorModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;IAqBa,iBAAiB,GAA9B,MAAa,iBAAiB;IAW1B,YACoD,OAAyB,EAC9C,KAAuC,EAEzD,oBAAwC;QAHD,YAAO,GAAP,OAAO,CAAkB;QAC9C,UAAK,GAAL,KAAK,CAAkC;QAEzD,yBAAoB,GAApB,oBAAoB,CAAoB;QARrD,UAAK,GAA8B,IAAI,CAAC;QAE/B,cAAS,GAAG,gBAAC,KAAK,EAAE,EAAE,IAAK,IAAI,CAAC,OAAO,CAAU,CAAC;KAOvD;IAbJ,IAAI,WAAW,CAAC,KAAyC;QACrD,IAAI,CAAC,KAAK,GAAG,OAAO,KAAK,KAAK,QAAQ,GAAG,IAAI,kBAAkB,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC;KAClF;EAYJ;;4CALQ,MAAM,SAAC,qBAAqB;YACK,UAAU,uBAA3C,MAAM,SAAC,QAAQ;YAEe,UAAU,uBADxC,MAAM,SAAC,yBAAyB;;AAXrC;IAFC,KAAK,CAAC,OAAO,CAAC;IACd,cAAc,EAAE;oDAGhB;AALQ,iBAAiB;IAR7B,SAAS,CAAC;QACP,QAAQ,EAAE,WAAW;QACrB,mYAAoC;QAEpC,SAAS,EAAE,CAAC,aAAa,CAAC;QAC1B,eAAe,EAAE,uBAAuB,CAAC,MAAM;QAC/C,UAAU,EAAE,CAAC,iBAAiB,EAAE,SAAS,CAAC;;KAC7C,CAAC;IAaO,WAAA,MAAM,CAAC,qBAAqB,CAAC,CAAA;IAC7B,WAAA,MAAM,CAAC,QAAQ,CAAC,CAAA;IAChB,WAAA,MAAM,CAAC,yBAAyB,CAAC,CAAA;GAd7B,iBAAiB,CAiB7B;;IC3BY,cAAc,GAA3B,MAAa,cAAc;EAAG;AAAjB,cAAc;IAL1B,QAAQ,CAAC;QACN,OAAO,EAAE,CAAC,YAAY,EAAE,kBAAkB,CAAC;QAC3C,YAAY,EAAE,CAAC,iBAAiB,CAAC;QACjC,OAAO,EAAE,CAAC,iBAAiB,CAAC;KAC/B,CAAC;GACW,cAAc,CAAG;;ACX9B;;;;;;"}
@@ -10,7 +10,7 @@ let TuiExpandContentDirective = class TuiExpandContentDirective {
10
10
  };
11
11
  TuiExpandContentDirective = __decorate([
12
12
  Directive({
13
- selector: `[tuiExpandContent]`,
13
+ selector: '[tuiExpandContent]',
14
14
  })
15
15
  ], TuiExpandContentDirective);
16
16
 
@@ -70,7 +70,7 @@ let TuiExpandComponent = class TuiExpandComponent {
70
70
  }
71
71
  onTransitionEnd(event) {
72
72
  if (isCurrentTarget(event) &&
73
- event.propertyName === `opacity` &&
73
+ event.propertyName === 'opacity' &&
74
74
  this.state === State.Animated) {
75
75
  this.state = State.Idle;
76
76
  }
@@ -97,41 +97,41 @@ TuiExpandComponent.ctorParameters = () => [
97
97
  { type: ChangeDetectorRef, decorators: [{ type: Inject, args: [ChangeDetectorRef,] }] }
98
98
  ];
99
99
  __decorate([
100
- ViewChild(`wrapper`)
100
+ ViewChild('wrapper')
101
101
  ], TuiExpandComponent.prototype, "contentWrapper", void 0);
102
102
  __decorate([
103
103
  Input(),
104
104
  tuiDefaultProp()
105
105
  ], TuiExpandComponent.prototype, "async", void 0);
106
106
  __decorate([
107
- Input(`expanded`),
107
+ Input('expanded'),
108
108
  tuiRequiredSetter()
109
109
  ], TuiExpandComponent.prototype, "expandedSetter", null);
110
110
  __decorate([
111
111
  ContentChild(TuiExpandContentDirective, { read: TemplateRef })
112
112
  ], TuiExpandComponent.prototype, "content", void 0);
113
113
  __decorate([
114
- HostBinding(`class._expanded`),
115
- HostBinding(`attr.aria-expanded`)
114
+ HostBinding('class._expanded'),
115
+ HostBinding('attr.aria-expanded')
116
116
  ], TuiExpandComponent.prototype, "expanded", void 0);
117
117
  __decorate([
118
- HostBinding(`class._overflow`)
118
+ HostBinding('class._overflow')
119
119
  ], TuiExpandComponent.prototype, "overflow", null);
120
120
  __decorate([
121
- HostBinding(`class._loading`)
121
+ HostBinding('class._loading')
122
122
  ], TuiExpandComponent.prototype, "loading", null);
123
123
  __decorate([
124
- HostBinding(`style.height.px`)
124
+ HostBinding('style.height.px')
125
125
  ], TuiExpandComponent.prototype, "height", null);
126
126
  __decorate([
127
- HostListener(`transitionend`, [`$event`])
127
+ HostListener('transitionend', ['$event'])
128
128
  ], TuiExpandComponent.prototype, "onTransitionEnd", null);
129
129
  __decorate([
130
- HostListener(TUI_EXPAND_LOADED, [`$event`])
130
+ HostListener(TUI_EXPAND_LOADED, ['$event'])
131
131
  ], TuiExpandComponent.prototype, "onExpandLoaded", null);
132
132
  TuiExpandComponent = __decorate([
133
133
  Component({
134
- selector: `tui-expand`,
134
+ selector: 'tui-expand',
135
135
  template: "<div\n #wrapper\n class=\"t-wrapper\"\n>\n <ng-container *ngIf=\"contentVisible\">\n <ng-content></ng-content>\n <!-- TODO: 3.0 collision with async pipe, fix after upgrade to ng11 -->\n <tui-loader\n *ngIf=\"this.async; else content\"\n size=\"l\"\n [overlay]=\"true\"\n [showLoader]=\"loading\"\n >\n <ng-container [ngTemplateOutlet]=\"content\"></ng-container>\n </tui-loader>\n </ng-container>\n</div>\n",
136
136
  changeDetection: ChangeDetectionStrategy.OnPush,
137
137
  styles: [":host{display:block;transition-property:opacity,height,visibility;transition-duration:var(--tui-duration,300ms);opacity:0}:host._overflow{overflow:hidden}:host._expanded{opacity:1;transform:translate3d(0,0,0)}:host._loading{opacity:.99}.t-wrapper:after,.t-wrapper:before{content:'';display:table}"]
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-core-components-expand.js","sources":["ng://@taiga-ui/core/components/expand/expand-content.directive.ts","ng://@taiga-ui/core/components/expand/expand.component.ts","ng://@taiga-ui/core/components/expand/expand.module.ts","ng://@taiga-ui/core/components/expand/taiga-ui-core-components-expand.ts"],"sourcesContent":["import {Directive} from '@angular/core';\n\n// @bad TODO: 3.0 Replace with PolymorpheusContent\n@Directive({\n selector: `[tuiExpandContent]`,\n})\nexport class TuiExpandContentDirective {}\n","import {NgIfContext} from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ContentChild,\n ElementRef,\n HostBinding,\n HostListener,\n Inject,\n Input,\n TemplateRef,\n ViewChild,\n} from '@angular/core';\nimport {isCurrentTarget, tuiDefaultProp, tuiRequiredSetter} from '@taiga-ui/cdk';\nimport {TUI_EXPAND_LOADED} from '@taiga-ui/core/constants';\n\nimport {TuiExpandContentDirective} from './expand-content.directive';\n\nenum State {\n Idle,\n Loading,\n Prepared,\n Animated,\n}\n\nconst LOADER_HEIGHT = 48;\n\n@Component({\n selector: `tui-expand`,\n templateUrl: `./expand.template.html`,\n changeDetection: ChangeDetectionStrategy.OnPush,\n styleUrls: [`./expand.style.less`],\n})\nexport class TuiExpandComponent {\n @ViewChild(`wrapper`)\n private readonly contentWrapper?: ElementRef<HTMLDivElement>;\n\n private state = State.Idle;\n\n @Input()\n @tuiDefaultProp()\n async = false;\n\n @Input(`expanded`)\n @tuiRequiredSetter()\n set expandedSetter(expanded: boolean | null) {\n if (this.expanded === null) {\n this.expanded = expanded;\n\n return;\n }\n\n if (this.state !== State.Idle) {\n this.expanded = expanded;\n this.state = State.Animated;\n\n return;\n }\n\n this.expanded = expanded;\n this.retrigger(this.async && expanded ? State.Loading : State.Animated);\n }\n\n @ContentChild(TuiExpandContentDirective, {read: TemplateRef})\n content: TemplateRef<NgIfContext<boolean>> | null = null;\n\n @HostBinding(`class._expanded`)\n @HostBinding(`attr.aria-expanded`)\n expanded: boolean | null = null;\n\n constructor(\n @Inject(ChangeDetectorRef) private readonly changeDetectorRef: ChangeDetectorRef,\n ) {}\n\n @HostBinding(`class._overflow`)\n get overflow(): boolean {\n return this.state !== State.Idle;\n }\n\n @HostBinding(`class._loading`)\n get loading(): boolean {\n return !!this.expanded && this.async && this.state === State.Loading;\n }\n\n @HostBinding(`style.height.px`)\n get height(): number | null {\n const {expanded, state, contentWrapper} = this;\n\n if (\n (expanded && state === State.Prepared) ||\n (!expanded && state === State.Animated)\n ) {\n return 0;\n }\n\n if (\n contentWrapper &&\n ((!expanded && state === State.Prepared) ||\n (expanded && state === State.Animated))\n ) {\n return contentWrapper.nativeElement.offsetHeight;\n }\n\n if (contentWrapper && expanded && state === State.Loading) {\n return Math.max(contentWrapper.nativeElement.offsetHeight, LOADER_HEIGHT);\n }\n\n return null;\n }\n\n get contentVisible(): boolean {\n return this.expanded || this.state !== State.Idle;\n }\n\n @HostListener(`transitionend`, [`$event`])\n onTransitionEnd(event: TransitionEvent): void {\n if (\n isCurrentTarget(event) &&\n event.propertyName === `opacity` &&\n this.state === State.Animated\n ) {\n this.state = State.Idle;\n }\n }\n\n @HostListener(TUI_EXPAND_LOADED, [`$event`])\n onExpandLoaded(event: Event): void {\n event.stopPropagation();\n\n if (this.state === State.Loading) {\n this.retrigger(State.Animated);\n }\n }\n\n private retrigger(state: State): void {\n this.state = State.Prepared;\n\n // We need delay to re-trigger CSS height transition from the correct number\n setTimeout(() => {\n if (this.state !== State.Prepared) {\n return;\n }\n\n this.state = state;\n this.changeDetectorRef.markForCheck();\n });\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiLoaderModule} from '@taiga-ui/core/components/loader';\n\nimport {TuiExpandComponent} from './expand.component';\nimport {TuiExpandContentDirective} from './expand-content.directive';\n\n@NgModule({\n imports: [CommonModule, TuiLoaderModule],\n declarations: [TuiExpandComponent, TuiExpandContentDirective],\n exports: [TuiExpandComponent, TuiExpandContentDirective],\n})\nexport class TuiExpandModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAEA;IAIa,yBAAyB,GAAtC,MAAa,yBAAyB;EAAG;AAA5B,yBAAyB;IAHrC,SAAS,CAAC;QACP,QAAQ,EAAE,oBAAoB;KACjC,CAAC;GACW,yBAAyB,CAAG;;ACazC,IAAK,KAKJ;AALD,WAAK,KAAK;IACN,iCAAI,CAAA;IACJ,uCAAO,CAAA;IACP,yCAAQ,CAAA;IACR,yCAAQ,CAAA;AACZ,CAAC,EALI,KAAK,KAAL,KAAK,QAKT;AAED,MAAM,aAAa,GAAG,EAAE,CAAC;IAQZ,kBAAkB,GAA/B,MAAa,kBAAkB;IAqC3B,YACgD,iBAAoC;QAApC,sBAAiB,GAAjB,iBAAiB,CAAmB;QAlC5E,UAAK,GAAG,KAAK,CAAC,IAAI,CAAC;QAI3B,UAAK,GAAG,KAAK,CAAC;QAuBd,YAAO,GAA6C,IAAI,CAAC;QAIzD,aAAQ,GAAmB,IAAI,CAAC;KAI5B;IA3BJ,IAAI,cAAc,CAAC,QAAwB;QACvC,IAAI,IAAI,CAAC,QAAQ,KAAK,IAAI,EAAE;YACxB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;YAEzB,OAAO;SACV;QAED,IAAI,IAAI,CAAC,KAAK,KAAK,KAAK,CAAC,IAAI,EAAE;YAC3B,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;YACzB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,QAAQ,CAAC;YAE5B,OAAO;SACV;QAED,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,IAAI,QAAQ,GAAG,KAAK,CAAC,OAAO,GAAG,KAAK,CAAC,QAAQ,CAAC,CAAC;KAC3E;IAcD,IAAI,QAAQ;QACR,OAAO,IAAI,CAAC,KA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CAAA;GAtCrB,kBAAkB,CAkH9B;;ICxIY,eAAe,GAA5B,MAAa,eAAe;EAAG;AAAlB,eAAe;IAL3B,QAAQ,CAAC;QACN,OAAO,EAAE,CAAC,YAAY,EAAE,eAAe,CAAC;QACxC,YAAY,EAAE,CAAC,kBAAkB,EAAE,yBAAyB,CAAC;QAC7D,OAAO,EAAE,CAAC,kBAAkB,EAAE,yBAAyB,CAAC;KAC3D,CAAC;GACW,eAAe,CAAG;;ACZ/B;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-core-components-expand.js","sources":["ng://@taiga-ui/core/components/expand/expand-content.directive.ts","ng://@taiga-ui/core/components/expand/expand.component.ts","ng://@taiga-ui/core/components/expand/expand.module.ts","ng://@taiga-ui/core/components/expand/taiga-ui-core-components-expand.ts"],"sourcesContent":["import {Directive} from '@angular/core';\n\n// @bad TODO: 3.0 Replace with PolymorpheusContent\n@Directive({\n selector: '[tuiExpandContent]',\n})\nexport class TuiExpandContentDirective {}\n","import {NgIfContext} from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ContentChild,\n ElementRef,\n HostBinding,\n HostListener,\n Inject,\n Input,\n TemplateRef,\n ViewChild,\n} from '@angular/core';\nimport {isCurrentTarget, tuiDefaultProp, tuiRequiredSetter} from '@taiga-ui/cdk';\nimport {TUI_EXPAND_LOADED} from '@taiga-ui/core/constants';\n\nimport {TuiExpandContentDirective} from './expand-content.directive';\n\nenum State {\n Idle,\n Loading,\n Prepared,\n Animated,\n}\n\nconst LOADER_HEIGHT = 48;\n\n@Component({\n selector: 'tui-expand',\n templateUrl: './expand.template.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n styleUrls: ['./expand.style.less'],\n})\nexport class TuiExpandComponent {\n @ViewChild('wrapper')\n private readonly contentWrapper?: ElementRef<HTMLDivElement>;\n\n private state = State.Idle;\n\n @Input()\n @tuiDefaultProp()\n async = false;\n\n @Input('expanded')\n @tuiRequiredSetter()\n set expandedSetter(expanded: boolean | null) {\n if (this.expanded === null) {\n this.expanded = expanded;\n\n return;\n }\n\n if (this.state !== State.Idle) {\n this.expanded = expanded;\n this.state = State.Animated;\n\n return;\n }\n\n this.expanded = expanded;\n this.retrigger(this.async && expanded ? State.Loading : State.Animated);\n }\n\n @ContentChild(TuiExpandContentDirective, {read: TemplateRef})\n content: TemplateRef<NgIfContext<boolean>> | null = null;\n\n @HostBinding('class._expanded')\n @HostBinding('attr.aria-expanded')\n expanded: boolean | null = null;\n\n constructor(\n @Inject(ChangeDetectorRef) private readonly changeDetectorRef: ChangeDetectorRef,\n ) {}\n\n @HostBinding('class._overflow')\n get overflow(): boolean {\n return this.state !== State.Idle;\n }\n\n @HostBinding('class._loading')\n get loading(): boolean {\n return !!this.expanded && this.async && this.state === State.Loading;\n }\n\n @HostBinding('style.height.px')\n get height(): number | null {\n const {expanded, state, contentWrapper} = this;\n\n if (\n (expanded && state === State.Prepared) ||\n (!expanded && state === State.Animated)\n ) {\n return 0;\n }\n\n if (\n contentWrapper &&\n ((!expanded && state === State.Prepared) ||\n (expanded && state === State.Animated))\n ) {\n return contentWrapper.nativeElement.offsetHeight;\n }\n\n if (contentWrapper && expanded && state === State.Loading) {\n return Math.max(contentWrapper.nativeElement.offsetHeight, LOADER_HEIGHT);\n }\n\n return null;\n }\n\n get contentVisible(): boolean {\n return this.expanded || this.state !== State.Idle;\n }\n\n @HostListener('transitionend', ['$event'])\n onTransitionEnd(event: TransitionEvent): void {\n if (\n isCurrentTarget(event) &&\n event.propertyName === 'opacity' &&\n this.state === State.Animated\n ) {\n this.state = State.Idle;\n }\n }\n\n @HostListener(TUI_EXPAND_LOADED, ['$event'])\n onExpandLoaded(event: Event): void {\n event.stopPropagation();\n\n if (this.state === State.Loading) {\n this.retrigger(State.Animated);\n }\n }\n\n private retrigger(state: State): void {\n this.state = State.Prepared;\n\n // We need delay to re-trigger CSS height transition from the correct number\n setTimeout(() => {\n if (this.state !== State.Prepared) {\n return;\n }\n\n this.state = state;\n this.changeDetectorRef.markForCheck();\n });\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiLoaderModule} from '@taiga-ui/core/components/loader';\n\nimport {TuiExpandComponent} from './expand.component';\nimport {TuiExpandContentDirective} from './expand-content.directive';\n\n@NgModule({\n imports: [CommonModule, TuiLoaderModule],\n declarations: [TuiExpandComponent, TuiExpandContentDirective],\n exports: [TuiExpandComponent, TuiExpandContentDirective],\n})\nexport class TuiExpandModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAEA;IAIa,yBAAyB,GAAtC,MAAa,yBAAyB;EAAG;AAA5B,yBAAyB;IAHrC,SAAS,CAAC;QACP,QAAQ,EAAE,oBAAoB;KACjC,CAAC;GACW,yBAAyB,CAAG;;ACazC,IAAK,KAKJ;AALD,WAAK,KAAK;IACN,iCAAI,CAAA;IACJ,uCAAO,CAAA;IACP,yCAAQ,CAAA;IACR,yCAAQ,CAAA;AACZ,CAAC,EALI,KAAK,KAAL,KAAK,QAKT;AAED,MAAM,aAAa,GAAG,EAAE,CAAC;IAQZ,kBAAkB,GAA/B,MAAa,kBAAkB;IAqC3B,YACgD,iBAAoC;QAApC,sBAAiB,GAAjB,iBAAiB,CAAmB;QAlC5E,UAAK,GAAG,KAAK,CAAC,IAAI,CAAC;QAI3B,UAAK,GAAG,KAAK,CAAC;QAuBd,YAAO,GAA6C,IAAI,CAAC;QAIzD,aAAQ,GAAmB,IAAI,CAAC;KAI5B;IA3BJ,IAAI,cAAc,CAAC,QAAwB;QACvC,IAAI,IAAI,CAAC,QAAQ,KAAK,IAAI,EAAE;YACxB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;YAEzB,OAAO;SACV;QAED,IAAI,IAAI,CAAC,KAAK,KAAK,KAAK,CAAC,IAAI,EAAE;YAC3B,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;YACzB,IAAI,CAAC,KAAK,GAAG,K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,CAAC,CAAC;yDASzC;AAGD;IADC,YAAY,CAAC,iBAAiB,EAAE,CAAC,QAAQ,CAAC,CAAC;wDAO3C;AAnGQ,kBAAkB;IAN9B,SAAS,CAAC;QACP,QAAQ,EAAE,YAAY;QACtB,ygBAAqC;QACrC,eAAe,EAAE,uBAAuB,CAAC,MAAM;;KAElD,CAAC;IAuCO,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;GAtCrB,kBAAkB,CAkH9B;;ICxIY,eAAe,GAA5B,MAAa,eAAe;EAAG;AAAlB,eAAe;IAL3B,QAAQ,CAAC;QACN,OAAO,EAAE,CAAC,YAAY,EAAE,eAAe,CAAC;QACxC,YAAY,EAAE,CAAC,kBAAkB,EAAE,yBAAyB,CAAC;QAC7D,OAAO,EAAE,CAAC,kBAAkB,EAAE,yBAAyB,CAAC;KAC3D,CAAC;GACW,eAAe,CAAG;;ACZ/B;;;;;;"}
@@ -7,7 +7,7 @@ let TuiGroupStylesComponent = class TuiGroupStylesComponent {
7
7
  };
8
8
  TuiGroupStylesComponent = __decorate([
9
9
  Component({
10
- template: ``,
10
+ template: '',
11
11
  encapsulation: ViewEncapsulation.None,
12
12
  styles: [".tui-group{position:relative;z-index:0;display:flex}.tui-group>*{flex:1 1 0;min-width:0}.tui-group>:nth-child(n){border-radius:0}.tui-group>:not(:last-child){margin-right:.125rem}.tui-group_collapsed>*{z-index:1}.tui-group_collapsed>:not(:last-child){margin-right:-1px}.tui-group_collapsed>._disabled,.tui-group_collapsed>._disabled:hover,.tui-group_collapsed>._readonly,.tui-group_collapsed>._readonly:hover{z-index:0}.tui-group_collapsed>._hovered,.tui-group_collapsed>._pressed,.tui-group_collapsed>:hover{z-index:3}.tui-group_collapsed>._invalid{z-index:2}.tui-group_collapsed>._invalid._hovered,.tui-group_collapsed>._invalid._pressed,.tui-group_collapsed>._invalid:hover{z-index:4}.tui-group_collapsed>._focus-visible,.tui-group_collapsed>._focused.ng-touched,.tui-group_collapsed>._focused.ng-untouched,.tui-group_collapsed>._hosted_dropdown_focused{z-index:5}.tui-group_collapsed>._active,.tui-group_collapsed>[data-appearance=whiteblock-active]{z-index:6}.tui-group_collapsed>._focus-visible._active,.tui-group_collapsed>._focus-visible._focused,.tui-group_collapsed>._focus-visible[data-appearance=whiteblock-active]{z-index:7}.tui-group_orientation_vertical{display:inline-flex;flex-direction:column}.tui-group_orientation_vertical>*{min-height:auto;flex:0 0 auto}.tui-group_orientation_vertical>:not(:last-child){margin-right:0;margin-bottom:.125rem}.tui-group_orientation_vertical.tui-group_collapsed>:not(:last-child){margin-right:0;margin-bottom:-1px}.tui-group_rounded.tui-group_orientation_horizontal>:first-child{border-top-left-radius:var(--tui-radius-m);border-bottom-left-radius:var(--tui-radius-m)}.tui-group_rounded.tui-group_orientation_horizontal>:last-child{border-top-right-radius:var(--tui-radius-m);border-bottom-right-radius:var(--tui-radius-m)}.tui-group_rounded.tui-group_orientation_horizontal.tui-group_radius_large>:first-child{border-top-left-radius:var(--tui-radius-l);border-bottom-left-radius:var(--tui-radius-l)}.tui-group_rounded.tui-group_orientation_horizontal.tui-group_radius_large>:last-child{border-top-right-radius:var(--tui-radius-l);border-bottom-right-radius:var(--tui-radius-l)}.tui-group_rounded.tui-group_orientation_vertical>:first-child{border-top-left-radius:var(--tui-radius-m);border-top-right-radius:var(--tui-radius-m)}.tui-group_rounded.tui-group_orientation_vertical>:last-child{border-bottom-left-radius:var(--tui-radius-m);border-bottom-right-radius:var(--tui-radius-m)}.tui-group_rounded.tui-group_orientation_vertical.tui-group_radius_large>:first-child{border-top-left-radius:var(--tui-radius-l);border-top-right-radius:var(--tui-radius-l)}.tui-group_rounded.tui-group_orientation_vertical.tui-group_radius_large>:last-child{border-bottom-left-radius:var(--tui-radius-l);border-bottom-right-radius:var(--tui-radius-l)}@media screen and (max-width:47.9625em){.tui-group_rounded.tui-group_adaptive.tui-group_orientation_horizontal>:first-child:not(:last-child),.tui-group_rounded.tui-group_adaptive.tui-group_orientation_horizontal>:last-child:not(:first-child),.tui-group_rounded.tui-group_adaptive.tui-group_orientation_vertical:not(.tui-group_collapsed)>:first-child:not(:last-child),.tui-group_rounded.tui-group_adaptive.tui-group_orientation_vertical:not(.tui-group_collapsed)>:last-child:not(:first-child){border-radius:var(--tui-radius-m)}.tui-group_rounded.tui-group_adaptive.tui-group_radius_large.tui-group_orientation_horizontal>:first-child:not(:last-child),.tui-group_rounded.tui-group_adaptive.tui-group_radius_large.tui-group_orientation_horizontal>:last-child:not(:first-child),.tui-group_rounded.tui-group_adaptive.tui-group_radius_large.tui-group_orientation_vertical:not(.tui-group_collapsed)>:first-child:not(:last-child),.tui-group_rounded.tui-group_adaptive.tui-group_radius_large.tui-group_orientation_vertical:not(.tui-group_collapsed)>:last-child:not(:first-child){border-radius:var(--tui-radius-l)}.tui-group_adaptive.tui-group_orientation_vertical{width:100%}.tui-group_adaptive.tui-group_orientation_vertical>:nth-child(n):not(:only-child){border-radius:var(--tui-radius-m)}.tui-group_adaptive.tui-group_orientation_vertical>:not(:last-child){margin-bottom:1rem}.tui-group_adaptive.tui-group_orientation_vertical.tui-group_collapsed>:nth-child(n):not(:only-child){border-radius:0}.tui-group_adaptive.tui-group_orientation_vertical.tui-group_collapsed>:first-child:not(:last-child){border-radius:var(--tui-radius-m) var(--tui-radius-m) 0 0}.tui-group_adaptive.tui-group_orientation_vertical.tui-group_collapsed>:last-child:not(:first-child){border-radius:0 0 var(--tui-radius-m) var(--tui-radius-m)}.tui-group_adaptive.tui-group_orientation_vertical.tui-group_collapsed>:not(:last-child){margin-bottom:-1px}.tui-group_adaptive.tui-group_orientation_horizontal{flex-direction:column;width:100%}.tui-group_adaptive.tui-group_orientation_horizontal>:nth-child(n):not(:only-child){border-radius:var(--tui-radius-m)}.tui-group_adaptive.tui-group_orientation_horizontal>:not(:last-child){margin-right:0;margin-bottom:1rem}.tui-group_adaptive.tui-group_orientation_horizontal.tui-group_collapsed>:nth-child(n):not(:only-child){border-radius:0}.tui-group_adaptive.tui-group_orientation_horizontal.tui-group_collapsed>:first-child:not(:last-child){border-radius:var(--tui-radius-m) var(--tui-radius-m) 0 0}.tui-group_adaptive.tui-group_orientation_horizontal.tui-group_collapsed>:last-child:not(:first-child){border-radius:0 0 var(--tui-radius-m) var(--tui-radius-m)}.tui-group_adaptive.tui-group_orientation_horizontal.tui-group_collapsed>:not(:last-child){margin-right:0;margin-bottom:-1px}.tui-group_adaptive.tui-group_radius_large.tui-group_orientation_vertical>:nth-child(n):not(:only-child){border-radius:var(--tui-radius-l)}.tui-group_adaptive.tui-group_radius_large.tui-group_orientation_vertical.tui-group_collapsed>:nth-child(n):not(:only-child){border-radius:0}.tui-group_adaptive.tui-group_radius_large.tui-group_orientation_vertical.tui-group_collapsed>:first-child:not(:last-child){border-radius:var(--tui-radius-l) var(--tui-radius-l) 0 0}.tui-group_adaptive.tui-group_radius_large.tui-group_orientation_vertical.tui-group_collapsed>:last-child:not(:first-child){border-radius:0 0 var(--tui-radius-l) var(--tui-radius-l)}.tui-group_adaptive.tui-group_radius_large.tui-group_orientation_horizontal>:nth-child(n):not(:only-child){border-radius:var(--tui-radius-l)}.tui-group_adaptive.tui-group_radius_large.tui-group_orientation_horizontal.tui-group_collapsed>:nth-child(n):not(:only-child){border-radius:0}.tui-group_adaptive.tui-group_radius_large.tui-group_orientation_horizontal.tui-group_collapsed>:first-child:not(:last-child){border-radius:var(--tui-radius-l) var(--tui-radius-l) 0 0}.tui-group_adaptive.tui-group_radius_large.tui-group_orientation_horizontal.tui-group_collapsed>:last-child:not(:first-child){border-radius:0 0 var(--tui-radius-l) var(--tui-radius-l)}}.tui-group__auto-width-item{min-width:auto;flex:0 0 auto}.tui-group .tui-group__inherit-item{border-radius:inherit}"]
13
13
  })
@@ -15,21 +15,21 @@ TuiGroupStylesComponent = __decorate([
15
15
 
16
16
  let TuiGroupDirective = class TuiGroupDirective {
17
17
  constructor(directiveStyles) {
18
- this.orientation = `horizontal`;
18
+ this.orientation = 'horizontal';
19
19
  this.adaptive = false;
20
20
  this.collapsed = false;
21
21
  this.rounded = true;
22
- this.size = `m`;
22
+ this.size = 'm';
23
23
  directiveStyles.addComponent(TuiGroupStylesComponent);
24
24
  }
25
25
  get orientationHorizontal() {
26
- return this.orientation === `horizontal`;
26
+ return this.orientation === 'horizontal';
27
27
  }
28
28
  get orientationVertical() {
29
- return this.orientation === `vertical`;
29
+ return this.orientation === 'vertical';
30
30
  }
31
31
  get sizeLarge() {
32
- return this.size === `l`;
32
+ return this.size === 'l';
33
33
  }
34
34
  };
35
35
  TuiGroupDirective.ctorParameters = () => [
@@ -41,17 +41,17 @@ __decorate([
41
41
  ], TuiGroupDirective.prototype, "orientation", void 0);
42
42
  __decorate([
43
43
  Input(),
44
- HostBinding(`class.tui-group_adaptive`),
44
+ HostBinding('class.tui-group_adaptive'),
45
45
  tuiDefaultProp()
46
46
  ], TuiGroupDirective.prototype, "adaptive", void 0);
47
47
  __decorate([
48
48
  Input(),
49
- HostBinding(`class.tui-group_collapsed`),
49
+ HostBinding('class.tui-group_collapsed'),
50
50
  tuiDefaultProp()
51
51
  ], TuiGroupDirective.prototype, "collapsed", void 0);
52
52
  __decorate([
53
53
  Input(),
54
- HostBinding(`class.tui-group_rounded`),
54
+ HostBinding('class.tui-group_rounded'),
55
55
  tuiDefaultProp()
56
56
  ], TuiGroupDirective.prototype, "rounded", void 0);
57
57
  __decorate([
@@ -59,20 +59,20 @@ __decorate([
59
59
  tuiDefaultProp()
60
60
  ], TuiGroupDirective.prototype, "size", void 0);
61
61
  __decorate([
62
- HostBinding(`class.tui-group_orientation_horizontal`)
62
+ HostBinding('class.tui-group_orientation_horizontal')
63
63
  ], TuiGroupDirective.prototype, "orientationHorizontal", null);
64
64
  __decorate([
65
- HostBinding(`class.tui-group_orientation_vertical`)
65
+ HostBinding('class.tui-group_orientation_vertical')
66
66
  ], TuiGroupDirective.prototype, "orientationVertical", null);
67
67
  __decorate([
68
- HostBinding(`class.tui-group_radius_large`)
68
+ HostBinding('class.tui-group_radius_large')
69
69
  ], TuiGroupDirective.prototype, "sizeLarge", null);
70
70
  TuiGroupDirective = __decorate([
71
71
  Directive({
72
- selector: `[tuiGroup]:not(ng-container)`,
72
+ selector: '[tuiGroup]:not(ng-container)',
73
73
  host: {
74
- class: `tui-group`,
75
- role: `group`,
74
+ class: 'tui-group',
75
+ role: 'group',
76
76
  },
77
77
  }),
78
78
  __param(0, Inject(TuiDirectiveStylesService))
@@ -83,14 +83,14 @@ let TuiGroupComponent = class TuiGroupComponent extends TuiGroupDirective {
83
83
  };
84
84
  TuiGroupComponent = __decorate([
85
85
  Component({
86
- selector: `tui-group`,
86
+ selector: 'tui-group',
87
87
  changeDetection: ChangeDetectionStrategy.OnPush,
88
88
  template: `
89
89
  <ng-content></ng-content>
90
90
  `,
91
91
  host: {
92
- class: `tui-group`,
93
- role: `group`,
92
+ class: 'tui-group',
93
+ role: 'group',
94
94
  }
95
95
  })
96
96
  ], TuiGroupComponent);
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-core-components-group.js","sources":["ng://@taiga-ui/core/components/group/group-styles.component.ts","ng://@taiga-ui/core/components/group/group.directive.ts","ng://@taiga-ui/core/components/group/group.component.ts","ng://@taiga-ui/core/components/group/group.module.ts","ng://@taiga-ui/core/components/group/taiga-ui-core-components-group.ts"],"sourcesContent":["import {Component, ViewEncapsulation} from '@angular/core';\n\n@Component({\n template: ``,\n styleUrls: [`../../styles/markup/tui-group.less`],\n encapsulation: ViewEncapsulation.None,\n})\nexport class TuiGroupStylesComponent {}\n","import {Directive, HostBinding, Inject, Input} from '@angular/core';\nimport {tuiDefaultProp, TuiDirectiveStylesService} from '@taiga-ui/cdk';\nimport {TuiOrientationT, TuiSizeL} from '@taiga-ui/core/types';\n\nimport {TuiGroupStylesComponent} from './group-styles.component';\n\n@Directive({\n selector: `[tuiGroup]:not(ng-container)`,\n host: {\n class: `tui-group`,\n role: `group`,\n },\n})\nexport class TuiGroupDirective {\n @Input()\n @tuiDefaultProp()\n orientation: TuiOrientationT = `horizontal`;\n\n @Input()\n @HostBinding(`class.tui-group_adaptive`)\n @tuiDefaultProp()\n adaptive = false;\n\n @Input()\n @HostBinding(`class.tui-group_collapsed`)\n @tuiDefaultProp()\n collapsed = false;\n\n @Input()\n @HostBinding(`class.tui-group_rounded`)\n @tuiDefaultProp()\n rounded = true;\n\n @Input()\n @tuiDefaultProp()\n size: TuiSizeL = `m`;\n\n constructor(\n @Inject(TuiDirectiveStylesService) directiveStyles: TuiDirectiveStylesService,\n ) {\n directiveStyles.addComponent(TuiGroupStylesComponent);\n }\n\n @HostBinding(`class.tui-group_orientation_horizontal`)\n get orientationHorizontal(): boolean {\n return this.orientation === `horizontal`;\n }\n\n @HostBinding(`class.tui-group_orientation_vertical`)\n get orientationVertical(): boolean {\n return this.orientation === `vertical`;\n }\n\n @HostBinding(`class.tui-group_radius_large`)\n get sizeLarge(): boolean {\n return this.size === `l`;\n }\n}\n","import {ChangeDetectionStrategy, Component} from '@angular/core';\n\nimport {TuiGroupDirective} from './group.directive';\n\n/** @deprecated */\n@Component({\n selector: `tui-group`,\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `\n <ng-content></ng-content>\n `,\n host: {\n class: `tui-group`,\n role: `group`,\n },\n})\nexport class TuiGroupComponent extends TuiGroupDirective {}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\n\nimport {TuiGroupComponent} from './group.component';\nimport {TuiGroupDirective} from './group.directive';\nimport {TuiGroupStylesComponent} from './group-styles.component';\n\n@NgModule({\n imports: [CommonModule],\n entryComponents: [TuiGroupStylesComponent],\n declarations: [TuiGroupComponent, TuiGroupDirective, TuiGroupStylesComponent],\n exports: [TuiGroupComponent, TuiGroupDirective, TuiGroupStylesComponent],\n})\nexport class TuiGroupModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;IAOa,uBAAuB,GAApC,MAAa,uBAAuB;EAAG;AAA1B,uBAAuB;IALnC,SAAS,CAAC;Q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YAClB,IAAI,EAAE,OAAO;SAChB;KACJ,CAAC;IA0BO,WAAA,MAAM,CAAC,yBAAyB,CAAC,CAAA;GAzB7B,iBAAiB,CA4C7B;;ACrDD;IAYa,iBAAiB,GAA9B,MAAa,iBAAkB,SAAQ,iBAAiB;EAAG;AAA9C,iBAAiB;IAX7B,SAAS,CAAC;QACP,QAAQ,EAAE,WAAW;QACrB,eAAe,EAAE,uBAAuB,CAAC,MAAM;QAC/C,QAAQ,EAAE;;KAET;QACD,IAAI,EAAE;YACF,KAAK,EAAE,WAAW;YAClB,IAAI,EAAE,OAAO;SAChB;KACJ,CAAC;GACW,iBAAiB,CAA6B;;ICH9C,cAAc,GAA3B,MAAa,cAAc;EAAG;AAAjB,cAAc;IAN1B,QAAQ,CAAC;QACN,OAAO,EAAE,CAAC,YAAY,CAAC;QACvB,eAAe,EAAE,CAAC,uBAAuB,CAAC;QAC1C,YAAY,EAAE,CAAC,iBAAiB,EAAE,iBAAiB,EAAE,uBAAuB,CAAC;QAC7E,OAAO,EAAE,CAAC,iBAAiB,EAAE,iBAAiB,EAAE,uBAAuB,CAAC;KAC3E,CAAC;GACW,cAAc,CAAG;;ACb9B;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-core-components-group.js","sources":["ng://@taiga-ui/core/components/group/group-styles.component.ts","ng://@taiga-ui/core/components/group/group.directive.ts","ng://@taiga-ui/core/components/group/group.component.ts","ng://@taiga-ui/core/components/group/group.module.ts","ng://@taiga-ui/core/components/group/taiga-ui-core-components-group.ts"],"sourcesContent":["import {Component, ViewEncapsulation} from '@angular/core';\n\n@Component({\n template: '',\n styleUrls: ['../../styles/markup/tui-group.less'],\n encapsulation: ViewEncapsulation.None,\n})\nexport class TuiGroupStylesComponent {}\n","import {Directive, HostBinding, Inject, Input} from '@angular/core';\nimport {tuiDefaultProp, TuiDirectiveStylesService} from '@taiga-ui/cdk';\nimport {TuiOrientationT, TuiSizeL} from '@taiga-ui/core/types';\n\nimport {TuiGroupStylesComponent} from './group-styles.component';\n\n@Directive({\n selector: '[tuiGroup]:not(ng-container)',\n host: {\n class: 'tui-group',\n role: 'group',\n },\n})\nexport class TuiGroupDirective {\n @Input()\n @tuiDefaultProp()\n orientation: TuiOrientationT = 'horizontal';\n\n @Input()\n @HostBinding('class.tui-group_adaptive')\n @tuiDefaultProp()\n adaptive = false;\n\n @Input()\n @HostBinding('class.tui-group_collapsed')\n @tuiDefaultProp()\n collapsed = false;\n\n @Input()\n @HostBinding('class.tui-group_rounded')\n @tuiDefaultProp()\n rounded = true;\n\n @Input()\n @tuiDefaultProp()\n size: TuiSizeL = 'm';\n\n constructor(\n @Inject(TuiDirectiveStylesService) directiveStyles: TuiDirectiveStylesService,\n ) {\n directiveStyles.addComponent(TuiGroupStylesComponent);\n }\n\n @HostBinding('class.tui-group_orientation_horizontal')\n get orientationHorizontal(): boolean {\n return this.orientation === 'horizontal';\n }\n\n @HostBinding('class.tui-group_orientation_vertical')\n get orientationVertical(): boolean {\n return this.orientation === 'vertical';\n }\n\n @HostBinding('class.tui-group_radius_large')\n get sizeLarge(): boolean {\n return this.size === 'l';\n }\n}\n","import {ChangeDetectionStrategy, Component} from '@angular/core';\n\nimport {TuiGroupDirective} from './group.directive';\n\n/** @deprecated */\n@Component({\n selector: 'tui-group',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `\n <ng-content></ng-content>\n `,\n host: {\n class: 'tui-group',\n role: 'group',\n },\n})\nexport class TuiGroupComponent extends TuiGroupDirective {}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\n\nimport {TuiGroupComponent} from './group.component';\nimport {TuiGroupDirective} from './group.directive';\nimport {TuiGroupStylesComponent} from './group-styles.component';\n\n@NgModule({\n imports: [CommonModule],\n entryComponents: [TuiGroupStylesComponent],\n declarations: [TuiGroupComponent, TuiGroupDirective, TuiGroupStylesComponent],\n exports: [TuiGroupComponent, TuiGroupDirective, TuiGroupStylesComponent],\n})\nexport class TuiGroupModule {}\n","/**\n * Generated bund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8BAA8B,CAAC;kDAG3C;AA3CQ,iBAAiB;IAP7B,SAAS,CAAC;QACP,QAAQ,EAAE,8BAA8B;QACxC,IAAI,EAAE;YACF,KAAK,EAAE,WAAW;YAClB,IAAI,EAAE,OAAO;SAChB;KACJ,CAAC;IA0BO,WAAA,MAAM,CAAC,yBAAyB,CAAC,CAAA;GAzB7B,iBAAiB,CA4C7B;;ACrDD;IAYa,iBAAiB,GAA9B,MAAa,iBAAkB,SAAQ,iBAAiB;EAAG;AAA9C,iBAAiB;IAX7B,SAAS,CAAC;QACP,QAAQ,EAAE,WAAW;QACrB,eAAe,EAAE,uBAAuB,CAAC,MAAM;QAC/C,QAAQ,EAAE;;KAET;QACD,IAAI,EAAE;YACF,KAAK,EAAE,WAAW;YAClB,IAAI,EAAE,OAAO;SAChB;KACJ,CAAC;GACW,iBAAiB,CAA6B;;ICH9C,cAAc,GAA3B,MAAa,cAAc;EAAG;AAAjB,cAAc;IAN1B,QAAQ,CAAC;QACN,OAAO,EAAE,CAAC,YAAY,CAAC;QACvB,eAAe,EAAE,CAAC,uBAAuB,CAAC;QAC1C,YAAY,EAAE,CAAC,iBAAiB,EAAE,iBAAiB,EAAE,uBAAuB,CAAC;QAC7E,OAAO,EAAE,CAAC,iBAAiB,EAAE,iBAAiB,EAAE,uBAAuB,CAAC;KAC3E,CAAC;GACW,cAAc,CAAG;;ACb9B;;;;;;"}
@@ -29,12 +29,12 @@ TuiHintsHostComponent.ctorParameters = () => [
29
29
  ];
30
30
  TuiHintsHostComponent = __decorate([
31
31
  Component({
32
- selector: `tui-hints-host`,
32
+ selector: 'tui-hints-host',
33
33
  template: "<div\n *ngFor=\"let hint of hints$ | async\"\n role=\"tooltip\"\n polymorpheus-outlet\n @tuiParentAnimation\n [attr.id]=\"hint.id\"\n [content]=\"hint.component || component\"\n [context]=\"{$implicit: hint}\"\n [tuiActiveZoneParent]=\"hint.activeZone\"\n></div>\n",
34
34
  changeDetection: ChangeDetectionStrategy.OnPush,
35
35
  animations: [TUI_PARENT_ANIMATION],
36
36
  host: {
37
- 'aria-live': `polite`,
37
+ 'aria-live': 'polite',
38
38
  },
39
39
  styles: [":host{position:fixed;bottom:0;left:0;width:100%;height:0}"]
40
40
  }),
@@ -50,24 +50,24 @@ const ARROW_SIZE = 8;
50
50
  const ARROW_OFFSET = 16;
51
51
  const ARROWHEAD_OFFSET = ARROW_OFFSET + (ARROW_SIZE * Math.sqrt(2)) / 2;
52
52
  const reverseDirectionsVertical = {
53
- 'top-left': `bottom-left`,
54
- 'top-right': `bottom-right`,
55
- 'bottom-left': `top-left`,
56
- 'bottom-right': `top-right`,
57
- left: `right`,
58
- right: `left`,
59
- 'top-middle': `bottom-middle`,
60
- 'bottom-middle': `top-middle`,
53
+ 'top-left': 'bottom-left',
54
+ 'top-right': 'bottom-right',
55
+ 'bottom-left': 'top-left',
56
+ 'bottom-right': 'top-right',
57
+ left: 'right',
58
+ right: 'left',
59
+ 'top-middle': 'bottom-middle',
60
+ 'bottom-middle': 'top-middle',
61
61
  };
62
62
  const reverseDirectionsHorizontal = {
63
- 'top-left': `top-right`,
64
- 'top-right': `top-left`,
65
- 'bottom-left': `bottom-right`,
66
- 'bottom-right': `bottom-left`,
67
- left: `right`,
68
- right: `left`,
69
- 'top-middle': `top-middle`,
70
- 'bottom-middle': `bottom-middle`,
63
+ 'top-left': 'top-right',
64
+ 'top-right': 'top-left',
65
+ 'bottom-left': 'bottom-right',
66
+ 'bottom-right': 'bottom-left',
67
+ left: 'right',
68
+ right: 'left',
69
+ 'top-middle': 'top-middle',
70
+ 'bottom-middle': 'bottom-middle',
71
71
  };
72
72
  // TODO: consider abstracting UI and move to CDK, split hint and overflow
73
73
  // Ambient type cannot be used without dynamic https://github.com/angular/angular/issues/23395
@@ -80,7 +80,7 @@ let TuiHintBoxComponent = class TuiHintBoxComponent {
80
80
  this.media = media;
81
81
  this.hintsHost = hintsHost;
82
82
  this.context = context;
83
- this.animation = Object.assign({ value: `` }, this.options);
83
+ this.animation = Object.assign({ value: '' }, this.options);
84
84
  animationFrame$
85
85
  .pipe(tuiZonefree(ngZone), takeUntil(destroy$))
86
86
  .subscribe(() => this.calculatePosition());
@@ -107,7 +107,7 @@ let TuiHintBoxComponent = class TuiHintBoxComponent {
107
107
  * Styles are set directly to avoid visual shake of element
108
108
  */
109
109
  calculatePosition() {
110
- if (this.mode !== `overflow`) {
110
+ if (this.mode !== 'overflow') {
111
111
  this.calculateCoordinates();
112
112
  }
113
113
  else {
@@ -126,14 +126,14 @@ let TuiHintBoxComponent = class TuiHintBoxComponent {
126
126
  const tooltipRect = tooltip.getBoundingClientRect();
127
127
  const isHostLong = hostRect.width > ARROWHEAD_OFFSET * 2;
128
128
  const directions = [
129
- `left`,
130
- `right`,
131
- `bottom-left`,
132
- `bottom-right`,
133
- `bottom-middle`,
134
- `top-left`,
135
- `top-right`,
136
- `top-middle`,
129
+ 'left',
130
+ 'right',
131
+ 'bottom-left',
132
+ 'bottom-right',
133
+ 'bottom-middle',
134
+ 'top-left',
135
+ 'top-right',
136
+ 'top-middle',
137
137
  ];
138
138
  let top = 0;
139
139
  let left = 0;
@@ -158,35 +158,35 @@ let TuiHintBoxComponent = class TuiHintBoxComponent {
158
158
  // eslint-disable-next-line no-constant-condition
159
159
  while (true) {
160
160
  switch (direction) {
161
- case `left`:
161
+ case 'left':
162
162
  top = horizontalTop;
163
163
  left = horizontalLeft;
164
164
  break;
165
- case `right`:
165
+ case 'right':
166
166
  top = horizontalTop;
167
167
  left = horizontalRight;
168
168
  break;
169
- case `top-right`:
169
+ case 'top-right':
170
170
  top = verticalTop;
171
171
  left = verticalRight;
172
172
  break;
173
- case `top-left`:
173
+ case 'top-left':
174
174
  top = verticalTop;
175
175
  left = verticalLeft;
176
176
  break;
177
- case `bottom-right`:
177
+ case 'bottom-right':
178
178
  top = verticalBottom;
179
179
  left = verticalRight;
180
180
  break;
181
- case `bottom-left`:
181
+ case 'bottom-left':
182
182
  top = verticalBottom;
183
183
  left = verticalLeft;
184
184
  break;
185
- case `bottom-middle`:
185
+ case 'bottom-middle':
186
186
  top = verticalBottom;
187
187
  left = verticalMiddle;
188
188
  break;
189
- case `top-middle`:
189
+ case 'top-middle':
190
190
  top = verticalTop;
191
191
  left = verticalMiddle;
192
192
  break;
@@ -207,7 +207,7 @@ let TuiHintBoxComponent = class TuiHintBoxComponent {
207
207
  }
208
208
  style.top = px(top);
209
209
  style.left = px(left);
210
- tooltip.setAttribute(`data-tui-host-direction`, direction);
210
+ tooltip.setAttribute('data-tui-host-direction', direction);
211
211
  }
212
212
  calculateMobileCoordinates() {
213
213
  const hostRect = this.hint.getElementClientRect();
@@ -221,21 +221,21 @@ let TuiHintBoxComponent = class TuiHintBoxComponent {
221
221
  hostRect.top < this.windowRef.innerHeight;
222
222
  const verticalBottomFit = hostRect.bottom > 0 &&
223
223
  hostRect.bottom + 2 * SPACE + tooltipRect.height < this.windowRef.innerHeight;
224
- const direction = (this.hint.direction.includes(`top`) && verticalTopFit) || !verticalBottomFit
225
- ? `top`
226
- : `bottom`;
224
+ const direction = (this.hint.direction.includes('top') && verticalTopFit) || !verticalBottomFit
225
+ ? 'top'
226
+ : 'bottom';
227
227
  const attemptedLeft = portalRect.left + hostRect.left + hostRect.width / 2 - tooltipRect.width / 2;
228
228
  const left = Math.max(attemptedLeft + tooltipRect.width + SPACE > portalRect.right
229
229
  ? portalRect.right - SPACE - tooltipRect.width
230
230
  : attemptedLeft, SPACE * 2);
231
231
  style.left = px(left);
232
- style.top = direction === `top` ? px(verticalTop) : px(verticalBottom);
232
+ style.top = direction === 'top' ? px(verticalTop) : px(verticalBottom);
233
233
  if (this.arrow) {
234
234
  this.arrow.nativeElement.style.left = px(hostRect.left <= SPACE * 2 && hostRect.width > ARROW_OFFSET * 2
235
235
  ? ARROW_OFFSET
236
236
  : hostRect.left + hostRect.width / 2 - left - ARROW_SIZE / 2);
237
237
  }
238
- tooltip.setAttribute(`data-tui-host-direction`, direction);
238
+ tooltip.setAttribute('data-tui-host-direction', direction);
239
239
  }
240
240
  setOverflowStyles() {
241
241
  const hostRect = this.hint.getElementClientRect();
@@ -257,21 +257,21 @@ TuiHintBoxComponent.ctorParameters = () => [
257
257
  { type: undefined, decorators: [{ type: Inject, args: [POLYMORPHEUS_CONTEXT,] }] }
258
258
  ];
259
259
  __decorate([
260
- ViewChild(`arrow`)
260
+ ViewChild('arrow')
261
261
  ], TuiHintBoxComponent.prototype, "arrow", void 0);
262
262
  __decorate([
263
- HostBinding(`@tuiFadeIn`)
263
+ HostBinding('@tuiFadeIn')
264
264
  ], TuiHintBoxComponent.prototype, "animation", void 0);
265
265
  __decorate([
266
266
  tuiPure,
267
- HostBinding(`class._untouchable`)
267
+ HostBinding('class._untouchable')
268
268
  ], TuiHintBoxComponent.prototype, "isUntouchable", null);
269
269
  __decorate([
270
- HostBinding(`attr.data-mode`)
270
+ HostBinding('attr.data-mode')
271
271
  ], TuiHintBoxComponent.prototype, "mode", null);
272
272
  TuiHintBoxComponent = __decorate([
273
273
  Component({
274
- selector: `tui-hint-box[hint]`,
274
+ selector: 'tui-hint-box[hint]',
275
275
  template: "<!-- @bad TODO: Refactor to use this arrow in all cases -->\n<div\n *ngIf=\"isMobile && mode !== 'overflow'\"\n #arrow\n class=\"t-arrow\"\n></div>\n<div\n automation-id=\"tui-hint-box__tooltip\"\n polymorpheus-outlet\n class=\"t-tooltip\"\n [content]=\"hint.content\"\n (tuiHoveredChange)=\"onHovered($event)\"\n>\n <ng-template let-text>\n <span class=\"t-text\">{{ text }}</span>\n </ng-template>\n</div>\n",
276
276
  changeDetection: ChangeDetectionStrategy.OnPush,
277
277
  providers: [TuiDestroyService],