@taiga-ui/core 2.36.0 → 2.38.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 (357) hide show
  1. package/abstract/abstract-dropdown.d.ts +3 -3
  2. package/abstract/abstract-hint.d.ts +1 -1
  3. package/abstract/taiga-ui-core-abstract.metadata.json +1 -1
  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-button.umd.js +6 -6
  7. package/bundles/taiga-ui-core-components-button.umd.js.map +1 -1
  8. package/bundles/taiga-ui-core-components-button.umd.min.js +2 -2
  9. package/bundles/taiga-ui-core-components-button.umd.min.js.map +1 -1
  10. package/bundles/taiga-ui-core-components-dialog.umd.js +2 -19
  11. package/bundles/taiga-ui-core-components-dialog.umd.js.map +1 -1
  12. package/bundles/taiga-ui-core-components-dialog.umd.min.js +2 -2
  13. package/bundles/taiga-ui-core-components-dialog.umd.min.js.map +1 -1
  14. package/bundles/taiga-ui-core-components-dropdown-box.umd.js +3 -6
  15. package/bundles/taiga-ui-core-components-dropdown-box.umd.js.map +1 -1
  16. package/bundles/taiga-ui-core-components-dropdown-box.umd.min.js +1 -1
  17. package/bundles/taiga-ui-core-components-dropdown-box.umd.min.js.map +1 -1
  18. package/bundles/taiga-ui-core-components-expand.umd.js.map +1 -1
  19. package/bundles/taiga-ui-core-components-expand.umd.min.js.map +1 -1
  20. package/bundles/taiga-ui-core-components-group.umd.js +23 -4
  21. package/bundles/taiga-ui-core-components-group.umd.js.map +1 -1
  22. package/bundles/taiga-ui-core-components-group.umd.min.js +2 -2
  23. package/bundles/taiga-ui-core-components-group.umd.min.js.map +1 -1
  24. package/bundles/taiga-ui-core-components-hosted-dropdown.umd.js +1 -4
  25. package/bundles/taiga-ui-core-components-hosted-dropdown.umd.js.map +1 -1
  26. package/bundles/taiga-ui-core-components-hosted-dropdown.umd.min.js +1 -1
  27. package/bundles/taiga-ui-core-components-hosted-dropdown.umd.min.js.map +1 -1
  28. package/bundles/taiga-ui-core-components-link.umd.js +1 -1
  29. package/bundles/taiga-ui-core-components-link.umd.min.js +1 -1
  30. package/bundles/taiga-ui-core-components-link.umd.min.js.map +1 -1
  31. package/bundles/taiga-ui-core-components-loader.umd.js +1 -1
  32. package/bundles/taiga-ui-core-components-loader.umd.js.map +1 -1
  33. package/bundles/taiga-ui-core-components-loader.umd.min.js.map +1 -1
  34. package/bundles/taiga-ui-core-components-notification.umd.js.map +1 -1
  35. package/bundles/taiga-ui-core-components-notification.umd.min.js.map +1 -1
  36. package/bundles/taiga-ui-core-components-primitive-checkbox.umd.js +4 -4
  37. package/bundles/taiga-ui-core-components-primitive-checkbox.umd.js.map +1 -1
  38. package/bundles/taiga-ui-core-components-primitive-checkbox.umd.min.js +2 -2
  39. package/bundles/taiga-ui-core-components-primitive-checkbox.umd.min.js.map +1 -1
  40. package/bundles/taiga-ui-core-components-primitive-textfield.umd.js +5 -5
  41. package/bundles/taiga-ui-core-components-primitive-textfield.umd.js.map +1 -1
  42. package/bundles/taiga-ui-core-components-primitive-textfield.umd.min.js +2 -2
  43. package/bundles/taiga-ui-core-components-primitive-textfield.umd.min.js.map +1 -1
  44. package/bundles/taiga-ui-core-components-primitive-year-picker.umd.js.map +1 -1
  45. package/bundles/taiga-ui-core-components-primitive-year-picker.umd.min.js.map +1 -1
  46. package/bundles/taiga-ui-core-components-root.umd.js +3 -3
  47. package/bundles/taiga-ui-core-components-root.umd.js.map +1 -1
  48. package/bundles/taiga-ui-core-components-root.umd.min.js +1 -1
  49. package/bundles/taiga-ui-core-components-root.umd.min.js.map +1 -1
  50. package/bundles/taiga-ui-core-components-tooltip.umd.js +1 -1
  51. package/bundles/taiga-ui-core-components-tooltip.umd.js.map +1 -1
  52. package/bundles/taiga-ui-core-components-tooltip.umd.min.js +2 -2
  53. package/bundles/taiga-ui-core-components-tooltip.umd.min.js.map +1 -1
  54. package/bundles/taiga-ui-core-components.umd.js +4 -12
  55. package/bundles/taiga-ui-core-components.umd.js.map +1 -1
  56. package/bundles/taiga-ui-core-components.umd.min.js +1 -1
  57. package/bundles/taiga-ui-core-constants.umd.js +1 -1
  58. package/bundles/taiga-ui-core-constants.umd.js.map +1 -1
  59. package/bundles/taiga-ui-core-constants.umd.min.js +1 -1
  60. package/bundles/taiga-ui-core-constants.umd.min.js.map +1 -1
  61. package/bundles/{taiga-ui-core-components-wrapper.umd.js → taiga-ui-core-directives-wrapper.umd.js} +56 -40
  62. package/bundles/taiga-ui-core-directives-wrapper.umd.js.map +1 -0
  63. package/bundles/taiga-ui-core-directives-wrapper.umd.min.js +16 -0
  64. package/bundles/taiga-ui-core-directives-wrapper.umd.min.js.map +1 -0
  65. package/bundles/taiga-ui-core-directives.umd.js +12 -4
  66. package/bundles/taiga-ui-core-directives.umd.js.map +1 -1
  67. package/bundles/taiga-ui-core-directives.umd.min.js +1 -1
  68. package/bundles/taiga-ui-core-enums.umd.js +2 -0
  69. package/bundles/taiga-ui-core-enums.umd.js.map +1 -1
  70. package/bundles/taiga-ui-core-enums.umd.min.js.map +1 -1
  71. package/bundles/taiga-ui-core-modules-notifications.umd.js +4 -6
  72. package/bundles/taiga-ui-core-modules-notifications.umd.js.map +1 -1
  73. package/bundles/taiga-ui-core-modules-notifications.umd.min.js +1 -1
  74. package/bundles/taiga-ui-core-modules-notifications.umd.min.js.map +1 -1
  75. package/bundles/taiga-ui-core-tokens.umd.js +8 -0
  76. package/bundles/taiga-ui-core-tokens.umd.js.map +1 -1
  77. package/bundles/taiga-ui-core-tokens.umd.min.js +2 -2
  78. package/bundles/taiga-ui-core-tokens.umd.min.js.map +1 -1
  79. package/bundles/taiga-ui-core-utils-dom.umd.js +1 -1
  80. package/bundles/taiga-ui-core-utils-dom.umd.js.map +1 -1
  81. package/bundles/taiga-ui-core-utils-dom.umd.min.js.map +1 -1
  82. package/bundles/taiga-ui-core-utils-format.umd.js +1 -1
  83. package/bundles/taiga-ui-core-utils-format.umd.js.map +1 -1
  84. package/bundles/taiga-ui-core-utils-format.umd.min.js.map +1 -1
  85. package/bundles/taiga-ui-core-utils-mask.umd.js +7 -2
  86. package/bundles/taiga-ui-core-utils-mask.umd.js.map +1 -1
  87. package/bundles/taiga-ui-core-utils-mask.umd.min.js +1 -1
  88. package/bundles/taiga-ui-core-utils-mask.umd.min.js.map +1 -1
  89. package/bundles/taiga-ui-core-utils-miscellaneous.umd.js +2 -2
  90. package/bundles/taiga-ui-core-utils-miscellaneous.umd.js.map +1 -1
  91. package/bundles/taiga-ui-core-utils-miscellaneous.umd.min.js +1 -1
  92. package/bundles/taiga-ui-core-utils-miscellaneous.umd.min.js.map +1 -1
  93. package/components/button/button-options.d.ts +1 -1
  94. package/components/button/taiga-ui-core-components-button.metadata.json +1 -1
  95. package/components/dialog/dialog.component.d.ts +0 -1
  96. package/components/dialog/taiga-ui-core-components-dialog.metadata.json +1 -1
  97. package/components/dropdown-box/dropdown-box.component.d.ts +2 -3
  98. package/components/dropdown-box/taiga-ui-core-components-dropdown-box.metadata.json +1 -1
  99. package/components/expand/expand.component.d.ts +2 -1
  100. package/components/expand/taiga-ui-core-components-expand.metadata.json +1 -1
  101. package/components/group/group-styles.component.d.ts +2 -0
  102. package/components/group/group.directive.d.ts +2 -0
  103. package/components/group/index.d.ts +1 -0
  104. package/components/group/taiga-ui-core-components-group.metadata.json +1 -1
  105. package/components/hosted-dropdown/hosted-dropdown.component.d.ts +2 -3
  106. package/components/hosted-dropdown/taiga-ui-core-components-hosted-dropdown.metadata.json +1 -1
  107. package/components/index.d.ts +0 -1
  108. package/components/link/taiga-ui-core-components-link.metadata.json +1 -1
  109. package/components/notification/notification.component.d.ts +3 -3
  110. package/components/notification/taiga-ui-core-components-notification.metadata.json +1 -1
  111. package/components/primitive-checkbox/taiga-ui-core-components-primitive-checkbox.metadata.json +1 -1
  112. package/components/primitive-textfield/taiga-ui-core-components-primitive-textfield.metadata.json +1 -1
  113. package/components/primitive-year-picker/primitive-year-picker.component.d.ts +3 -3
  114. package/components/root/root.component.d.ts +3 -4
  115. package/components/root/taiga-ui-core-components-root.metadata.json +1 -1
  116. package/components/taiga-ui-core-components.metadata.json +1 -1
  117. package/components/tooltip/tooltip.component.d.ts +1 -1
  118. package/constants/taiga-ui-core-constants.metadata.json +1 -1
  119. package/constants/version.d.ts +1 -1
  120. package/directives/index.d.ts +1 -0
  121. package/directives/taiga-ui-core-directives.metadata.json +1 -1
  122. package/directives/wrapper/index.d.ts +2 -0
  123. package/directives/wrapper/package.json +13 -0
  124. package/{components/wrapper/taiga-ui-core-components-wrapper.d.ts → directives/wrapper/taiga-ui-core-directives-wrapper.d.ts} +0 -0
  125. package/directives/wrapper/taiga-ui-core-directives-wrapper.metadata.json +1 -0
  126. package/{components/wrapper/wrapper.component.d.ts → directives/wrapper/wrapper.directive.d.ts} +7 -6
  127. package/{components → directives}/wrapper/wrapper.module.d.ts +0 -0
  128. package/esm2015/abstract/abstract-dropdown.js +2 -2
  129. package/esm2015/abstract/abstract-hint.js +1 -1
  130. package/esm2015/components/button/button-options.js +1 -1
  131. package/esm2015/components/button/button.component.js +4 -4
  132. package/esm2015/components/button/button.module.js +2 -2
  133. package/esm2015/components/dialog/dialog.component.js +3 -16
  134. package/esm2015/components/dropdown-box/dropdown-box.component.js +5 -8
  135. package/esm2015/components/expand/expand.component.js +1 -1
  136. package/esm2015/components/group/group-styles.component.js +13 -0
  137. package/esm2015/components/group/group.directive.js +12 -6
  138. package/esm2015/components/group/group.module.js +4 -3
  139. package/esm2015/components/group/index.js +2 -1
  140. package/esm2015/components/hosted-dropdown/hosted-dropdown.component.js +3 -6
  141. package/esm2015/components/index.js +1 -2
  142. package/esm2015/components/link/link.component.js +1 -1
  143. package/esm2015/components/loader/loader.directive.js +2 -2
  144. package/esm2015/components/notification/notification.component.js +1 -1
  145. package/esm2015/components/primitive-checkbox/primitive-checkbox.component.js +2 -2
  146. package/esm2015/components/primitive-checkbox/primitive-checkbox.module.js +2 -2
  147. package/esm2015/components/primitive-textfield/primitive-textfield.component.js +1 -1
  148. package/esm2015/components/primitive-textfield/primitive-textfield.module.js +2 -2
  149. package/esm2015/components/primitive-year-picker/primitive-year-picker.component.js +1 -1
  150. package/esm2015/components/root/root.component.js +4 -4
  151. package/esm2015/components/root/root.module.js +3 -3
  152. package/esm2015/components/tooltip/tooltip.component.js +2 -2
  153. package/esm2015/constants/version.js +2 -2
  154. package/esm2015/directives/index.js +2 -1
  155. package/esm2015/{components → directives}/wrapper/index.js +2 -2
  156. package/esm2015/{components/wrapper/taiga-ui-core-components-wrapper.js → directives/wrapper/taiga-ui-core-directives-wrapper.js} +1 -1
  157. package/esm2015/directives/wrapper/wrapper.directive.js +98 -0
  158. package/esm2015/{components → directives}/wrapper/wrapper.module.js +4 -4
  159. package/esm2015/enums/interactive-state.js +3 -1
  160. package/esm2015/interfaces/dropdown-directive.js +1 -1
  161. package/esm2015/modules/notifications/notification-alert/notification-alert.component.js +4 -5
  162. package/esm2015/modules/notifications/notifications-host/notifications-host.component.js +3 -3
  163. package/esm2015/modules/notifications/notifications.service.js +2 -2
  164. package/esm2015/tokens/notification-options.js +8 -1
  165. package/esm2015/utils/dom/process-icon.js +2 -2
  166. package/esm2015/utils/format/format-number.js +2 -2
  167. package/esm2015/utils/mask/create-auto-corrected-money-pipe.js +2 -2
  168. package/esm2015/utils/mask/create-number-mask.js +1 -2
  169. package/esm2015/utils/mask/enable-auto-correct-decimal-symbol.js +5 -0
  170. package/esm2015/utils/mask/index.js +2 -1
  171. package/esm2015/utils/miscellaneous/icons-path-factory.js +2 -2
  172. package/esm2015/utils/miscellaneous/is-editing-key.js +2 -2
  173. package/esm5/abstract/abstract-dropdown.js +2 -2
  174. package/esm5/abstract/abstract-hint.js +1 -1
  175. package/esm5/components/button/button-options.js +1 -1
  176. package/esm5/components/button/button.component.js +4 -4
  177. package/esm5/components/button/button.module.js +2 -2
  178. package/esm5/components/dialog/dialog.component.js +3 -20
  179. package/esm5/components/dropdown-box/dropdown-box.component.js +5 -8
  180. package/esm5/components/expand/expand.component.js +1 -1
  181. package/esm5/components/group/group-styles.component.js +16 -0
  182. package/esm5/components/group/group.directive.js +12 -6
  183. package/esm5/components/group/group.module.js +4 -3
  184. package/esm5/components/group/index.js +2 -1
  185. package/esm5/components/hosted-dropdown/hosted-dropdown.component.js +3 -6
  186. package/esm5/components/index.js +1 -2
  187. package/esm5/components/link/link.component.js +1 -1
  188. package/esm5/components/loader/loader.directive.js +2 -2
  189. package/esm5/components/notification/notification.component.js +1 -1
  190. package/esm5/components/primitive-checkbox/primitive-checkbox.component.js +2 -2
  191. package/esm5/components/primitive-checkbox/primitive-checkbox.module.js +2 -2
  192. package/esm5/components/primitive-textfield/primitive-textfield.component.js +1 -1
  193. package/esm5/components/primitive-textfield/primitive-textfield.module.js +2 -2
  194. package/esm5/components/primitive-year-picker/primitive-year-picker.component.js +1 -1
  195. package/esm5/components/root/root.component.js +4 -4
  196. package/esm5/components/root/root.module.js +3 -3
  197. package/esm5/components/tooltip/tooltip.component.js +2 -2
  198. package/esm5/constants/version.js +2 -2
  199. package/esm5/directives/index.js +2 -1
  200. package/esm5/{components → directives}/wrapper/index.js +2 -2
  201. package/esm5/{components/wrapper/taiga-ui-core-components-wrapper.js → directives/wrapper/taiga-ui-core-directives-wrapper.js} +1 -1
  202. package/esm5/directives/wrapper/wrapper.directive.js +119 -0
  203. package/esm5/{components → directives}/wrapper/wrapper.module.js +4 -4
  204. package/esm5/enums/interactive-state.js +3 -1
  205. package/esm5/interfaces/dropdown-directive.js +1 -1
  206. package/esm5/modules/notifications/notification-alert/notification-alert.component.js +4 -5
  207. package/esm5/modules/notifications/notifications-host/notifications-host.component.js +3 -3
  208. package/esm5/modules/notifications/notifications.service.js +2 -2
  209. package/esm5/tokens/notification-options.js +9 -1
  210. package/esm5/utils/dom/process-icon.js +2 -2
  211. package/esm5/utils/format/format-number.js +2 -2
  212. package/esm5/utils/mask/create-auto-corrected-money-pipe.js +2 -2
  213. package/esm5/utils/mask/create-number-mask.js +1 -2
  214. package/esm5/utils/mask/enable-auto-correct-decimal-symbol.js +6 -0
  215. package/esm5/utils/mask/index.js +2 -1
  216. package/esm5/utils/miscellaneous/icons-path-factory.js +2 -2
  217. package/esm5/utils/miscellaneous/is-editing-key.js +2 -2
  218. package/fesm2015/taiga-ui-core-abstract.js.map +1 -1
  219. package/fesm2015/taiga-ui-core-components-button.js +4 -4
  220. package/fesm2015/taiga-ui-core-components-button.js.map +1 -1
  221. package/fesm2015/taiga-ui-core-components-dialog.js +2 -15
  222. package/fesm2015/taiga-ui-core-components-dialog.js.map +1 -1
  223. package/fesm2015/taiga-ui-core-components-dropdown-box.js +4 -7
  224. package/fesm2015/taiga-ui-core-components-dropdown-box.js.map +1 -1
  225. package/fesm2015/taiga-ui-core-components-expand.js.map +1 -1
  226. package/fesm2015/taiga-ui-core-components-group.js +23 -8
  227. package/fesm2015/taiga-ui-core-components-group.js.map +1 -1
  228. package/fesm2015/taiga-ui-core-components-hosted-dropdown.js +2 -5
  229. package/fesm2015/taiga-ui-core-components-hosted-dropdown.js.map +1 -1
  230. package/fesm2015/taiga-ui-core-components-link.js +1 -1
  231. package/fesm2015/taiga-ui-core-components-loader.js +1 -1
  232. package/fesm2015/taiga-ui-core-components-loader.js.map +1 -1
  233. package/fesm2015/taiga-ui-core-components-notification.js.map +1 -1
  234. package/fesm2015/taiga-ui-core-components-primitive-checkbox.js +2 -2
  235. package/fesm2015/taiga-ui-core-components-primitive-checkbox.js.map +1 -1
  236. package/fesm2015/taiga-ui-core-components-primitive-textfield.js +2 -2
  237. package/fesm2015/taiga-ui-core-components-primitive-textfield.js.map +1 -1
  238. package/fesm2015/taiga-ui-core-components-primitive-year-picker.js.map +1 -1
  239. package/fesm2015/taiga-ui-core-components-root.js +5 -5
  240. package/fesm2015/taiga-ui-core-components-root.js.map +1 -1
  241. package/fesm2015/taiga-ui-core-components-tooltip.js +1 -1
  242. package/fesm2015/taiga-ui-core-components-tooltip.js.map +1 -1
  243. package/fesm2015/taiga-ui-core-components.js +0 -1
  244. package/fesm2015/taiga-ui-core-components.js.map +1 -1
  245. package/fesm2015/taiga-ui-core-constants.js +1 -1
  246. package/fesm2015/taiga-ui-core-constants.js.map +1 -1
  247. package/fesm2015/taiga-ui-core-directives-wrapper.js +113 -0
  248. package/fesm2015/taiga-ui-core-directives-wrapper.js.map +1 -0
  249. package/fesm2015/taiga-ui-core-directives.js +1 -0
  250. package/fesm2015/taiga-ui-core-directives.js.map +1 -1
  251. package/fesm2015/taiga-ui-core-enums.js +2 -0
  252. package/fesm2015/taiga-ui-core-enums.js.map +1 -1
  253. package/fesm2015/taiga-ui-core-modules-notifications.js +5 -6
  254. package/fesm2015/taiga-ui-core-modules-notifications.js.map +1 -1
  255. package/fesm2015/taiga-ui-core-tokens.js +8 -1
  256. package/fesm2015/taiga-ui-core-tokens.js.map +1 -1
  257. package/fesm2015/taiga-ui-core-utils-dom.js +1 -1
  258. package/fesm2015/taiga-ui-core-utils-dom.js.map +1 -1
  259. package/fesm2015/taiga-ui-core-utils-format.js +1 -1
  260. package/fesm2015/taiga-ui-core-utils-format.js.map +1 -1
  261. package/fesm2015/taiga-ui-core-utils-mask.js +7 -4
  262. package/fesm2015/taiga-ui-core-utils-mask.js.map +1 -1
  263. package/fesm2015/taiga-ui-core-utils-miscellaneous.js +2 -2
  264. package/fesm2015/taiga-ui-core-utils-miscellaneous.js.map +1 -1
  265. package/fesm5/taiga-ui-core-abstract.js.map +1 -1
  266. package/fesm5/taiga-ui-core-components-button.js +4 -4
  267. package/fesm5/taiga-ui-core-components-button.js.map +1 -1
  268. package/fesm5/taiga-ui-core-components-dialog.js +2 -19
  269. package/fesm5/taiga-ui-core-components-dialog.js.map +1 -1
  270. package/fesm5/taiga-ui-core-components-dropdown-box.js +4 -7
  271. package/fesm5/taiga-ui-core-components-dropdown-box.js.map +1 -1
  272. package/fesm5/taiga-ui-core-components-expand.js.map +1 -1
  273. package/fesm5/taiga-ui-core-components-group.js +26 -8
  274. package/fesm5/taiga-ui-core-components-group.js.map +1 -1
  275. package/fesm5/taiga-ui-core-components-hosted-dropdown.js +2 -5
  276. package/fesm5/taiga-ui-core-components-hosted-dropdown.js.map +1 -1
  277. package/fesm5/taiga-ui-core-components-link.js +1 -1
  278. package/fesm5/taiga-ui-core-components-loader.js +1 -1
  279. package/fesm5/taiga-ui-core-components-loader.js.map +1 -1
  280. package/fesm5/taiga-ui-core-components-notification.js.map +1 -1
  281. package/fesm5/taiga-ui-core-components-primitive-checkbox.js +2 -2
  282. package/fesm5/taiga-ui-core-components-primitive-checkbox.js.map +1 -1
  283. package/fesm5/taiga-ui-core-components-primitive-textfield.js +2 -2
  284. package/fesm5/taiga-ui-core-components-primitive-textfield.js.map +1 -1
  285. package/fesm5/taiga-ui-core-components-primitive-year-picker.js.map +1 -1
  286. package/fesm5/taiga-ui-core-components-root.js +5 -5
  287. package/fesm5/taiga-ui-core-components-root.js.map +1 -1
  288. package/fesm5/taiga-ui-core-components-tooltip.js +1 -1
  289. package/fesm5/taiga-ui-core-components-tooltip.js.map +1 -1
  290. package/fesm5/taiga-ui-core-components.js +0 -1
  291. package/fesm5/taiga-ui-core-components.js.map +1 -1
  292. package/fesm5/taiga-ui-core-constants.js +1 -1
  293. package/fesm5/taiga-ui-core-constants.js.map +1 -1
  294. package/fesm5/taiga-ui-core-directives-wrapper.js +137 -0
  295. package/fesm5/taiga-ui-core-directives-wrapper.js.map +1 -0
  296. package/fesm5/taiga-ui-core-directives.js +1 -0
  297. package/fesm5/taiga-ui-core-directives.js.map +1 -1
  298. package/fesm5/taiga-ui-core-enums.js +2 -0
  299. package/fesm5/taiga-ui-core-enums.js.map +1 -1
  300. package/fesm5/taiga-ui-core-modules-notifications.js +5 -6
  301. package/fesm5/taiga-ui-core-modules-notifications.js.map +1 -1
  302. package/fesm5/taiga-ui-core-tokens.js +9 -2
  303. package/fesm5/taiga-ui-core-tokens.js.map +1 -1
  304. package/fesm5/taiga-ui-core-utils-dom.js +1 -1
  305. package/fesm5/taiga-ui-core-utils-dom.js.map +1 -1
  306. package/fesm5/taiga-ui-core-utils-format.js +1 -1
  307. package/fesm5/taiga-ui-core-utils-format.js.map +1 -1
  308. package/fesm5/taiga-ui-core-utils-mask.js +8 -4
  309. package/fesm5/taiga-ui-core-utils-mask.js.map +1 -1
  310. package/fesm5/taiga-ui-core-utils-miscellaneous.js +2 -2
  311. package/fesm5/taiga-ui-core-utils-miscellaneous.js.map +1 -1
  312. package/interfaces/dropdown-directive.d.ts +2 -2
  313. package/modules/notifications/notification-alert/notification-alert.component.d.ts +3 -4
  314. package/modules/notifications/notifications.service.d.ts +3 -3
  315. package/modules/notifications/taiga-ui-core-modules-notifications.metadata.json +1 -1
  316. package/package.json +4 -4
  317. package/styles/markup/tui-group.less +4 -2
  318. package/styles/mixins/slider.less +33 -0
  319. package/styles/mixins/slider.scss +34 -0
  320. package/styles/mixins/textfield.less +8 -6
  321. package/styles/mixins/textfield.scss +2 -2
  322. package/styles/mixins/wrapper.less +57 -0
  323. package/styles/mixins/wrapper.scss +57 -0
  324. package/styles/taiga-ui-local.less +2 -0
  325. package/styles/taiga-ui-local.scss +2 -0
  326. package/styles/theme/variables.less +1 -1
  327. package/styles/theme/wrapper/accent.less +16 -18
  328. package/styles/theme/wrapper/base.less +35 -0
  329. package/styles/theme/wrapper/icon.less +18 -28
  330. package/styles/theme/wrapper/outline.less +28 -29
  331. package/styles/theme/wrapper/primary.less +20 -18
  332. package/styles/theme/wrapper/secondary.less +35 -35
  333. package/styles/theme/wrapper/table.less +27 -33
  334. package/styles/theme/wrapper/textfield.less +45 -55
  335. package/styles/theme/wrapper/whiteblock.less +27 -16
  336. package/styles/theme/wrapper.less +2 -0
  337. package/tokens/notification-options.d.ts +10 -4
  338. package/tokens/taiga-ui-core-tokens.metadata.json +1 -1
  339. package/utils/format/format-number.d.ts +1 -1
  340. package/utils/mask/create-auto-corrected-money-pipe.d.ts +1 -1
  341. package/utils/mask/create-number-mask.d.ts +0 -1
  342. package/utils/mask/enable-auto-correct-decimal-symbol.d.ts +2 -0
  343. package/utils/mask/index.d.ts +1 -0
  344. package/utils/mask/taiga-ui-core-utils-mask.metadata.json +1 -1
  345. package/utils/miscellaneous/taiga-ui-core-utils-miscellaneous.metadata.json +1 -1
  346. package/bundles/taiga-ui-core-components-wrapper.umd.js.map +0 -1
  347. package/bundles/taiga-ui-core-components-wrapper.umd.min.js +0 -16
  348. package/bundles/taiga-ui-core-components-wrapper.umd.min.js.map +0 -1
  349. package/components/wrapper/index.d.ts +0 -2
  350. package/components/wrapper/package.json +0 -13
  351. package/components/wrapper/taiga-ui-core-components-wrapper.metadata.json +0 -1
  352. package/esm2015/components/wrapper/wrapper.component.js +0 -91
  353. package/esm5/components/wrapper/wrapper.component.js +0 -104
  354. package/fesm2015/taiga-ui-core-components-wrapper.js +0 -106
  355. package/fesm2015/taiga-ui-core-components-wrapper.js.map +0 -1
  356. package/fesm5/taiga-ui-core-components-wrapper.js +0 -122
  357. package/fesm5/taiga-ui-core-components-wrapper.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-core-utils-miscellaneous.js","sources":["ng://@taiga-ui/core/utils/miscellaneous/color-fallback.ts","ng://@taiga-ui/core/utils/miscellaneous/get-border.ts","ng://@taiga-ui/core/utils/miscellaneous/icons-path-factory.ts","ng://@taiga-ui/core/utils/miscellaneous/is-editing-key.ts","ng://@taiga-ui/core/utils/miscellaneous/is-presumed-hTMLString.ts","ng://@taiga-ui/core/utils/miscellaneous/size-bigger.ts","ng://@taiga-ui/core/utils/miscellaneous/taiga-ui-core-utils-miscellaneous.ts"],"sourcesContent":["/** @deprecated */\nexport function colorFallback(color: string | null): string {\n switch (color) {\n case 'secondary':\n return 'var(--tui-info-fill)';\n case 'error':\n return 'var(--tui-error-fill)';\n case 'success':\n return 'var(--tui-success-fill)';\n default:\n return `var(--tui-${color || 'base-05'})`;\n }\n}\n","const ITEM_SIZE = 1.5;\nconst CONTENT_SIZE = 2.5;\n\nexport function getBorder(\n hasIcon: boolean,\n hasCleaner: boolean = false,\n hasTooltip: boolean = false,\n hasContent: boolean = false,\n): number {\n let border = 0;\n\n if (hasIcon) {\n border += ITEM_SIZE;\n }\n\n if (hasCleaner) {\n border += ITEM_SIZE;\n }\n\n if (hasTooltip) {\n border += ITEM_SIZE;\n }\n\n if (hasContent) {\n border += CONTENT_SIZE;\n }\n\n return border;\n}\n","import {TuiStringHandler} from '@taiga-ui/cdk';\nimport {DEFAULT_ICONS_PATH} from '@taiga-ui/core/constants';\n\nexport function iconsPathFactory(staticPath: string): TuiStringHandler<string> {\n const base =\n staticPath[staticPath.length - 1] === '/' ? staticPath : staticPath + '/';\n\n return name => {\n if (name.startsWith('tuiIcon')) {\n return `${base}${name}.svg#${name}`;\n }\n\n return DEFAULT_ICONS_PATH(name);\n };\n}\n","import {tuiEditingKeys} from '@taiga-ui/core/constants';\n\n/**\n * Check if pressed key is interactive in terms of input field\n */\nexport function isEditingKey(key: string): boolean {\n return key.length === 1 || tuiEditingKeys.indexOf(key) !== -1;\n}\n","export function isPresumedHTMLString(candidate: string): boolean {\n const trimmed = candidate.trim();\n\n return trimmed.startsWith('<') && trimmed.endsWith('>');\n}\n","import {TuiSizeXS, TuiSizeXXL} from '@taiga-ui/core/types';\n\nconst SIZES: ReadonlyArray<TuiSizeXS | TuiSizeXXL> = ['xs', 's', 'm', 'l', 'xl', 'xxl'];\n\n/**\n * Compares size constants to determine if first size is bigger than the second\n *\n * @param size size that we need to compare\n * @param biggerThanSize size to compare with, 's' by default\n */\nexport function sizeBigger(\n size: TuiSizeXS | TuiSizeXXL,\n biggerThanSize: TuiSizeXS | TuiSizeXXL = 's',\n): boolean {\n return SIZES.indexOf(size) > SIZES.indexOf(biggerThanSize);\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;AAAA;SACgB,aAAa,CAAC,KAAoB;IAC9C,QAAQ,KAAK;QACT,KAAK,WAAW;YACZ,OAAO,sBAAsB,CAAC;QAClC,KAAK,OAAO;YACR,OAAO,uBAAuB,CAAC;QACnC,KAAK,SAAS;YACV,OAAO,yBAAyB,CAAC;QACrC;YACI,OAAO,gBAAa,KAAK,IAAI,SAAS,OAAG,CAAC;KACjD;AACL;;ACZA,IAAM,SAAS,GAAG,GAAG,CAAC;AACtB,IAAM,YAAY,GAAG,GAAG,CAAC;SAET,SAAS,CACrB,OAAgB,EAChB,UAA2B,EAC3B,UAA2B,EAC3B,UAA2B;IAF3B,2BAAA,EAAA,kBAA2B;IAC3B,2BAAA,EAAA,kBAA2B;IAC3B,2BAAA,EAAA,kBAA2B;IAE3B,IAAI,MAAM,GAAG,CAAC,CAAC;IAEf,IAAI,OAAO,EAAE;QACT,MAAM,IAAI,SAAS,CAAC;KACvB;IAED,IAAI,UAAU,EAAE;QACZ,MAAM,IAAI,SAAS,CAAC;KACvB;IAED,IAAI,UAAU,EAAE;QACZ,MAAM,IAAI,SAAS,CAAC;KACvB;IAED,IAAI,UAAU,EAAE;QACZ,MAAM,IAAI,YAAY,CAAC;KAC1B;IAED,OAAO,MAAM,CAAC;AAClB;;SCzBgB,gBAAgB,CAAC,UAAkB;IAC/C,IAAM,IAAI,GACN,UAAU,CAAC,UAAU,CAAC,MAAM,GAAG,CAAC,CAAC,KAAK,GAAG,GAAG,UAAU,GAAG,UAAU,GAAG,GAAG,CAAC;IAE9E,OAAO,UAAA,IAAI;QACP,IAAI,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,EAAE;YAC5B,OAAO,KAAG,IAAI,GAAG,IAAI,aAAQ,IAAM,CAAC;SACvC;QAED,OAAO,kBAAkB,CAAC,IAAI,CAAC,CAAC;KACnC,CAAC;AACN;;ACZA;;;SAGgB,YAAY,CAAC,GAAW;IACpC,OAAO,GAAG,CAAC,MAAM,KAAK,CAAC,IAAI,cAAc,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC;AAClE;;SCPgB,oBAAoB,CAAC,SAAiB;IAClD,IAAM,OAAO,GAAG,SAAS,CAAC,IAAI,EAAE,CAAC;IAEjC,OAAO,OAAO,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;AAC5D;;ACFA,IAAM,KAAK,GAA0C,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC;AAExF;;;;;;SAMgB,UAAU,CACtB,IAA4B,EAC5B,cAA4C;IAA5C,+BAAA,EAAA,oBAA4C;IAE5C,OAAO,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC;AAC/D;;ACfA;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-core-utils-miscellaneous.js","sources":["ng://@taiga-ui/core/utils/miscellaneous/color-fallback.ts","ng://@taiga-ui/core/utils/miscellaneous/get-border.ts","ng://@taiga-ui/core/utils/miscellaneous/icons-path-factory.ts","ng://@taiga-ui/core/utils/miscellaneous/is-editing-key.ts","ng://@taiga-ui/core/utils/miscellaneous/is-presumed-hTMLString.ts","ng://@taiga-ui/core/utils/miscellaneous/size-bigger.ts","ng://@taiga-ui/core/utils/miscellaneous/taiga-ui-core-utils-miscellaneous.ts"],"sourcesContent":["/** @deprecated */\nexport function colorFallback(color: string | null): string {\n switch (color) {\n case 'secondary':\n return 'var(--tui-info-fill)';\n case 'error':\n return 'var(--tui-error-fill)';\n case 'success':\n return 'var(--tui-success-fill)';\n default:\n return `var(--tui-${color || 'base-05'})`;\n }\n}\n","const ITEM_SIZE = 1.5;\nconst CONTENT_SIZE = 2.5;\n\nexport function getBorder(\n hasIcon: boolean,\n hasCleaner: boolean = false,\n hasTooltip: boolean = false,\n hasContent: boolean = false,\n): number {\n let border = 0;\n\n if (hasIcon) {\n border += ITEM_SIZE;\n }\n\n if (hasCleaner) {\n border += ITEM_SIZE;\n }\n\n if (hasTooltip) {\n border += ITEM_SIZE;\n }\n\n if (hasContent) {\n border += CONTENT_SIZE;\n }\n\n return border;\n}\n","import {TuiStringHandler} from '@taiga-ui/cdk';\nimport {DEFAULT_ICONS_PATH} from '@taiga-ui/core/constants';\n\nexport function iconsPathFactory(staticPath: string): TuiStringHandler<string> {\n const base =\n staticPath[staticPath.length - 1] === '/' ? staticPath : `${staticPath}/`;\n\n return name => {\n if (name.startsWith('tuiIcon')) {\n return `${base}${name}.svg#${name}`;\n }\n\n return DEFAULT_ICONS_PATH(name);\n };\n}\n","import {tuiEditingKeys} from '@taiga-ui/core/constants';\n\n/**\n * Check if pressed key is interactive in terms of input field\n */\nexport function isEditingKey(key: string): boolean {\n return key.length === 1 || tuiEditingKeys.includes(key);\n}\n","export function isPresumedHTMLString(candidate: string): boolean {\n const trimmed = candidate.trim();\n\n return trimmed.startsWith('<') && trimmed.endsWith('>');\n}\n","import {TuiSizeXS, TuiSizeXXL} from '@taiga-ui/core/types';\n\nconst SIZES: ReadonlyArray<TuiSizeXS | TuiSizeXXL> = ['xs', 's', 'm', 'l', 'xl', 'xxl'];\n\n/**\n * Compares size constants to determine if first size is bigger than the second\n *\n * @param size size that we need to compare\n * @param biggerThanSize size to compare with, 's' by default\n */\nexport function sizeBigger(\n size: TuiSizeXS | TuiSizeXXL,\n biggerThanSize: TuiSizeXS | TuiSizeXXL = 's',\n): boolean {\n return SIZES.indexOf(size) > SIZES.indexOf(biggerThanSize);\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;AAAA;SACgB,aAAa,CAAC,KAAoB;IAC9C,QAAQ,KAAK;QACT,KAAK,WAAW;YACZ,OAAO,sBAAsB,CAAC;QAClC,KAAK,OAAO;YACR,OAAO,uBAAuB,CAAC;QACnC,KAAK,SAAS;YACV,OAAO,yBAAyB,CAAC;QACrC;YACI,OAAO,gBAAa,KAAK,IAAI,SAAS,OAAG,CAAC;KACjD;AACL;;ACZA,IAAM,SAAS,GAAG,GAAG,CAAC;AACtB,IAAM,YAAY,GAAG,GAAG,CAAC;SAET,SAAS,CACrB,OAAgB,EAChB,UAA2B,EAC3B,UAA2B,EAC3B,UAA2B;IAF3B,2BAAA,EAAA,kBAA2B;IAC3B,2BAAA,EAAA,kBAA2B;IAC3B,2BAAA,EAAA,kBAA2B;IAE3B,IAAI,MAAM,GAAG,CAAC,CAAC;IAEf,IAAI,OAAO,EAAE;QACT,MAAM,IAAI,SAAS,CAAC;KACvB;IAED,IAAI,UAAU,EAAE;QACZ,MAAM,IAAI,SAAS,CAAC;KACvB;IAED,IAAI,UAAU,EAAE;QACZ,MAAM,IAAI,SAAS,CAAC;KACvB;IAED,IAAI,UAAU,EAAE;QACZ,MAAM,IAAI,YAAY,CAAC;KAC1B;IAED,OAAO,MAAM,CAAC;AAClB;;SCzBgB,gBAAgB,CAAC,UAAkB;IAC/C,IAAM,IAAI,GACN,UAAU,CAAC,UAAU,CAAC,MAAM,GAAG,CAAC,CAAC,KAAK,GAAG,GAAG,UAAU,GAAM,UAAU,MAAG,CAAC;IAE9E,OAAO,UAAA,IAAI;QACP,IAAI,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,EAAE;YAC5B,OAAO,KAAG,IAAI,GAAG,IAAI,aAAQ,IAAM,CAAC;SACvC;QAED,OAAO,kBAAkB,CAAC,IAAI,CAAC,CAAC;KACnC,CAAC;AACN;;ACZA;;;SAGgB,YAAY,CAAC,GAAW;IACpC,OAAO,GAAG,CAAC,MAAM,KAAK,CAAC,IAAI,cAAc,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;AAC5D;;SCPgB,oBAAoB,CAAC,SAAiB;IAClD,IAAM,OAAO,GAAG,SAAS,CAAC,IAAI,EAAE,CAAC;IAEjC,OAAO,OAAO,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;AAC5D;;ACFA,IAAM,KAAK,GAA0C,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC;AAExF;;;;;;SAMgB,UAAU,CACtB,IAA4B,EAC5B,cAA4C;IAA5C,+BAAA,EAAA,oBAA4C;IAE5C,OAAO,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC;AAC/D;;ACfA;;;;;;"}
@@ -1,4 +1,4 @@
1
- import { TuiActiveZoneDirective } from '@taiga-ui/cdk';
1
+ import { TuiActiveZoneDirective, TuiNativeFocusableElement } from '@taiga-ui/cdk';
2
2
  import { TuiDropdownWidthT, TuiHorizontalDirection, TuiVerticalDirection } from '@taiga-ui/core/types';
3
3
  import { PolymorpheusContent } from '@tinkoff/ng-polymorpheus';
4
4
  import { Observable } from 'rxjs';
@@ -6,7 +6,7 @@ export interface TuiDropdown<C = object> {
6
6
  refresh$: Observable<any>;
7
7
  clientRect: ClientRect;
8
8
  content: PolymorpheusContent;
9
- host: HTMLElement;
9
+ host: TuiNativeFocusableElement | HTMLElement;
10
10
  align: TuiHorizontalDirection;
11
11
  minHeight: number;
12
12
  maxHeight: number;
@@ -1,15 +1,14 @@
1
1
  import { ElementRef, OnInit } from '@angular/core';
2
2
  import { TuiDestroyService } from '@taiga-ui/cdk';
3
- import { NotificationTokenOptions } from '@taiga-ui/core/tokens';
3
+ import { TuiNotificationDefaultOptions } from '@taiga-ui/core/tokens';
4
4
  import { TuiNotificationContentContext } from '../notification-content-context';
5
5
  import { NotificationAlert } from './Notification-alert';
6
- export declare const DEFAULT_ALERT_AUTOCLOSE_TIMEOUT = 3000;
7
6
  export declare class TuiNotificationAlertComponent<O, I> implements OnInit {
8
7
  private readonly elementRef;
9
8
  private readonly destroy$;
10
- readonly options: NotificationTokenOptions;
9
+ readonly options: TuiNotificationDefaultOptions;
11
10
  item: NotificationAlert<O, I>;
12
- constructor(elementRef: ElementRef<HTMLElement>, destroy$: TuiDestroyService, options: NotificationTokenOptions);
11
+ constructor(elementRef: ElementRef<HTMLElement>, destroy$: TuiDestroyService, options: TuiNotificationDefaultOptions);
13
12
  ngOnInit(): void;
14
13
  get context(): TuiNotificationContentContext<O, I>;
15
14
  closeNotification(): void;
@@ -1,14 +1,14 @@
1
1
  import { TuiNotificationOptions, TuiNotificationOptionsWithData } from '@taiga-ui/core/interfaces';
2
- import { NotificationTokenOptions } from '@taiga-ui/core/tokens';
2
+ import { TuiNotificationDefaultOptions } from '@taiga-ui/core/tokens';
3
3
  import { PolymorpheusContent } from '@tinkoff/ng-polymorpheus';
4
4
  import { BehaviorSubject, Observable } from 'rxjs';
5
5
  import { NotificationAlert } from './notification-alert/Notification-alert';
6
6
  import { TuiNotificationContentContext } from './notification-content-context';
7
7
  export declare class TuiNotificationsService {
8
- readonly options: NotificationTokenOptions;
8
+ readonly options: TuiNotificationDefaultOptions;
9
9
  /** @internal */
10
10
  readonly items$: BehaviorSubject<readonly NotificationAlert<any, any>[]>;
11
- constructor(options: NotificationTokenOptions);
11
+ constructor(options: TuiNotificationDefaultOptions);
12
12
  show<O = void>(content: PolymorpheusContent<TuiNotificationContentContext<O>>): Observable<O>;
13
13
  show<O = void>(content: PolymorpheusContent<TuiNotificationContentContext<O>>, options: TuiNotificationOptions): Observable<O>;
14
14
  show<O, I>(content: PolymorpheusContent<TuiNotificationContentContext<O, I>>, options: TuiNotificationOptionsWithData<I>): Observable<O>;
@@ -1 +1 @@
1
- {"__symbolic":"module","version":4,"metadata":{"NotificationAlert":{"__symbolic":"class","arity":2,"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"Observer","module":"rxjs","arguments":[{"__symbolic":"error","message":"Could not resolve type","line":26,"character":36,"context":{"typeName":"O"},"module":"./notification-alert/Notification-alert"}]},{"__symbolic":"reference","name":"PolymorpheusContent","module":"@tinkoff/ng-polymorpheus","arguments":[{"__symbolic":"reference","name":"TuiNotificationContentContext"}]},{"__symbolic":"error","message":"Could not resolve type","line":28,"character":34,"context":{"typeName":"Required"},"module":"./notification-alert/Notification-alert"}]}],"withData":[{"__symbolic":"method"}]}},"DEFAULT_ALERT_AUTOCLOSE_TIMEOUT":3000,"TuiNotificationAlertComponent":{"__symbolic":"class","arity":2,"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":18,"character":1},"arguments":[{"selector":"tui-notification-alert","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":20,"character":21},"member":"OnPush"},"providers":[{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"TuiDestroyService","line":23,"character":16}],"template":"<tui-notification\n *ngIf=\"item.hasCloseButton; else noClose\"\n [status]=\"item.status\"\n [hasIcon]=\"item.hasIcon\"\n (close)=\"closeNotification()\"\n>\n <label\n *ngIf=\"item.label\"\n polymorpheus-outlet\n automation-id=\"tui-notification-alert__heading\"\n class=\"heading\"\n [content]=\"item.label\"\n [context]=\"context\"\n ></label>\n <div\n polymorpheus-outlet\n automation-id=\"tui-notification-alert__content\"\n class=\"content\"\n [content]=\"item.content\"\n [context]=\"context\"\n ></div>\n</tui-notification>\n<ng-template #noClose>\n <tui-notification [status]=\"item.status\" [hasIcon]=\"item.hasIcon\">\n <label\n *ngIf=\"item.label\"\n polymorpheus-outlet\n automation-id=\"tui-notification-alert__heading\"\n class=\"heading\"\n [content]=\"item.label\"\n [context]=\"context\"\n ></label>\n <div\n polymorpheus-outlet\n automation-id=\"tui-notification-alert__content\"\n class=\"content\"\n [content]=\"item.content\"\n [context]=\"context\"\n ></div>\n </tui-notification>\n</ng-template>\n","styles":[":host{box-shadow:0 .5rem 1rem rgba(0,0,0,.16);display:block;border-radius:var(--tui-radius-m)}.heading{font:var(--tui-font-text-m);line-height:1.25rem;font-weight:700;margin:0}.content{color:var(--tui-text-01);word-wrap:break-word}.content:empty{display:none}"]}]}],"members":{"item":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":26,"character":5}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":30,"character":9},"arguments":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":30,"character":16}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":31,"character":9},"arguments":[{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"TuiDestroyService","line":31,"character":16}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":32,"character":9},"arguments":[{"__symbolic":"reference","module":"@taiga-ui/core/tokens","name":"TUI_NOTIFICATION_OPTIONS","line":32,"character":16}]}]],"parameters":[{"__symbolic":"reference","name":"ElementRef","module":"@angular/core","arguments":[{"__symbolic":"error","message":"Could not resolve type","line":30,"character":68,"context":{"typeName":"HTMLElement"},"module":"./notification-alert/notification-alert.component"}]},{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"TuiDestroyService","line":31,"character":62},{"__symbolic":"reference","module":"@taiga-ui/core/tokens","name":"NotificationTokenOptions","line":33,"character":26}]}],"ngOnInit":[{"__symbolic":"method"}],"closeNotification":[{"__symbolic":"method"}],"calculateContext":[{"__symbolic":"method","decorators":[{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"tuiPure","line":48,"character":5}]}],"initAutoClose":[{"__symbolic":"method"}]}},"TuiNotificationAlertModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":7,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":8,"character":14},{"__symbolic":"reference","module":"@tinkoff/ng-polymorpheus","name":"PolymorpheusModule","line":8,"character":28},{"__symbolic":"reference","module":"@taiga-ui/core/components/notification","name":"TuiNotificationModule","line":8,"character":48}],"declarations":[{"__symbolic":"reference","name":"TuiNotificationAlertComponent"}],"exports":[{"__symbolic":"reference","name":"TuiNotificationAlertComponent"}]}]}],"members":{}},"TuiNotificationContentContext":{"__symbolic":"interface"},"NOTIFICATIONS_HOST":{"__symbolic":"reference","name":"TuiNotificationsHostComponent"},"TuiNotificationsModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":10,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":11,"character":14},{"__symbolic":"reference","name":"TuiNotificationAlertModule"},{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"TuiLetModule","line":11,"character":56}],"declarations":[{"__symbolic":"reference","name":"TuiNotificationsHostComponent"}],"exports":[{"__symbolic":"reference","name":"TuiNotificationsHostComponent"}],"entryComponents":[{"__symbolic":"reference","name":"TuiNotificationsHostComponent"}],"providers":[{"provide":{"__symbolic":"reference","name":"TuiNotificationsHostComponent"},"useValue":{"__symbolic":"reference","name":"NOTIFICATIONS_HOST"}}]}]}],"members":{}},"TuiNotificationsService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":16,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":24,"character":9},"arguments":[{"__symbolic":"reference","module":"@taiga-ui/core/tokens","name":"TUI_NOTIFICATION_OPTIONS","line":24,"character":16}]}]],"parameters":[{"__symbolic":"reference","module":"@taiga-ui/core/tokens","name":"NotificationTokenOptions","line":25,"character":26}]}],"show":[{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"}]},"statics":{"ɵprov":{}}},"TuiNotificationsHostComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":13,"character":1},"arguments":[{"selector":"tui-notifications-host","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":15,"character":21},"member":"OnPush"},"animations":[{"__symbolic":"reference","module":"@taiga-ui/core/animations","name":"tuiFadeInList","line":18,"character":17},{"__symbolic":"reference","module":"@taiga-ui/core/animations","name":"tuiSlideInRightList","line":18,"character":32},{"__symbolic":"reference","module":"@taiga-ui/core/animations","name":"tuiHeightCollapseList","line":18,"character":53}],"template":"<ng-container *tuiLet=\"service.items$ | async as items\">\n <div\n *ngIf=\"items.length\"\n class=\"wrapper\"\n [@tuiFadeInList]=\"getAnimation(items.length)\"\n [@tuiHeightCollapseList]=\"getAnimation(items.length)\"\n [@tuiSlideInRightList]=\"getAnimation(items.length)\"\n >\n <tui-notification-alert\n *ngFor=\"let item of items\"\n role=\"alert\"\n class=\"alert\"\n [item]=\"item\"\n ></tui-notification-alert>\n </div>\n</ng-container>\n","styles":[":host{position:fixed;top:0;left:0;width:100%;height:0}.wrapper{width:18rem;margin-left:auto;padding:2rem 3rem 0 0;pointer-events:none}:host-context(tui-root._mobile) .wrapper{padding:1rem 1rem 0 0}@media screen and (min-width:80em){.wrapper{width:23rem}}.alert{pointer-events:auto}.alert:not(:first-child){margin-top:.75rem}"]}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":22,"character":9},"arguments":[{"__symbolic":"reference","module":"@taiga-ui/core/tokens","name":"TUI_ANIMATION_OPTIONS","line":22,"character":16}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":23,"character":9},"arguments":[{"__symbolic":"reference","name":"TuiNotificationsService"}]}]],"parameters":[{"__symbolic":"reference","module":"@angular/animations","name":"AnimationOptions","line":22,"character":65},{"__symbolic":"reference","name":"TuiNotificationsService"}]}],"getAnimation":[{"__symbolic":"method","decorators":[{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"tuiPure","line":26,"character":5}]}]}}},"origins":{"NotificationAlert":"./notification-alert/Notification-alert","DEFAULT_ALERT_AUTOCLOSE_TIMEOUT":"./notification-alert/notification-alert.component","TuiNotificationAlertComponent":"./notification-alert/notification-alert.component","TuiNotificationAlertModule":"./notification-alert/notification-alert.module","TuiNotificationContentContext":"./notification-content-context","NOTIFICATIONS_HOST":"./notifications-host/notifications-host.component","TuiNotificationsModule":"./notifications.module","TuiNotificationsService":"./notifications.service","TuiNotificationsHostComponent":"./notifications-host/notifications-host.component"},"importAs":"@taiga-ui/core/modules/notifications"}
1
+ {"__symbolic":"module","version":4,"metadata":{"NotificationAlert":{"__symbolic":"class","arity":2,"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"Observer","module":"rxjs","arguments":[{"__symbolic":"error","message":"Could not resolve type","line":26,"character":36,"context":{"typeName":"O"},"module":"./notification-alert/Notification-alert"}]},{"__symbolic":"reference","name":"PolymorpheusContent","module":"@tinkoff/ng-polymorpheus","arguments":[{"__symbolic":"reference","name":"TuiNotificationContentContext"}]},{"__symbolic":"error","message":"Could not resolve type","line":28,"character":34,"context":{"typeName":"Required"},"module":"./notification-alert/Notification-alert"}]}],"withData":[{"__symbolic":"method"}]}},"TuiNotificationAlertComponent":{"__symbolic":"class","arity":2,"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":19,"character":1},"arguments":[{"selector":"tui-notification-alert","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":23,"character":21},"member":"OnPush"},"providers":[{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"TuiDestroyService","line":24,"character":16}],"template":"<tui-notification\n *ngIf=\"item.hasCloseButton; else noClose\"\n [status]=\"item.status\"\n [hasIcon]=\"item.hasIcon\"\n (close)=\"closeNotification()\"\n>\n <label\n *ngIf=\"item.label\"\n polymorpheus-outlet\n automation-id=\"tui-notification-alert__heading\"\n class=\"heading\"\n [content]=\"item.label\"\n [context]=\"context\"\n ></label>\n <div\n polymorpheus-outlet\n automation-id=\"tui-notification-alert__content\"\n class=\"content\"\n [content]=\"item.content\"\n [context]=\"context\"\n ></div>\n</tui-notification>\n<ng-template #noClose>\n <tui-notification [status]=\"item.status\" [hasIcon]=\"item.hasIcon\">\n <label\n *ngIf=\"item.label\"\n polymorpheus-outlet\n automation-id=\"tui-notification-alert__heading\"\n class=\"heading\"\n [content]=\"item.label\"\n [context]=\"context\"\n ></label>\n <div\n polymorpheus-outlet\n automation-id=\"tui-notification-alert__content\"\n class=\"content\"\n [content]=\"item.content\"\n [context]=\"context\"\n ></div>\n </tui-notification>\n</ng-template>\n","styles":[":host{box-shadow:0 .5rem 1rem rgba(0,0,0,.16);display:block;border-radius:var(--tui-radius-m)}.heading{font:var(--tui-font-text-m);line-height:1.25rem;font-weight:700;margin:0}.content{color:var(--tui-text-01);word-wrap:break-word}.content:empty{display:none}"]}]}],"members":{"item":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":27,"character":5}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":31,"character":9},"arguments":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":31,"character":16}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":32,"character":9},"arguments":[{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"TuiDestroyService","line":32,"character":16}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":33,"character":9},"arguments":[{"__symbolic":"reference","module":"@taiga-ui/core/tokens","name":"TUI_NOTIFICATION_OPTIONS","line":33,"character":16}]}]],"parameters":[{"__symbolic":"reference","name":"ElementRef","module":"@angular/core","arguments":[{"__symbolic":"error","message":"Could not resolve type","line":31,"character":68,"context":{"typeName":"HTMLElement"},"module":"./notification-alert/notification-alert.component"}]},{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"TuiDestroyService","line":32,"character":62},{"__symbolic":"reference","module":"@taiga-ui/core/tokens","name":"TuiNotificationDefaultOptions","line":34,"character":26}]}],"ngOnInit":[{"__symbolic":"method"}],"closeNotification":[{"__symbolic":"method"}],"calculateContext":[{"__symbolic":"method","decorators":[{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"tuiPure","line":49,"character":5}]}],"initAutoClose":[{"__symbolic":"method"}]}},"TuiNotificationAlertModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":7,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":8,"character":14},{"__symbolic":"reference","module":"@tinkoff/ng-polymorpheus","name":"PolymorpheusModule","line":8,"character":28},{"__symbolic":"reference","module":"@taiga-ui/core/components/notification","name":"TuiNotificationModule","line":8,"character":48}],"declarations":[{"__symbolic":"reference","name":"TuiNotificationAlertComponent"}],"exports":[{"__symbolic":"reference","name":"TuiNotificationAlertComponent"}]}]}],"members":{}},"TuiNotificationContentContext":{"__symbolic":"interface"},"NOTIFICATIONS_HOST":{"__symbolic":"reference","name":"TuiNotificationsHostComponent"},"TuiNotificationsModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":10,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":11,"character":14},{"__symbolic":"reference","name":"TuiNotificationAlertModule"},{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"TuiLetModule","line":11,"character":56}],"declarations":[{"__symbolic":"reference","name":"TuiNotificationsHostComponent"}],"exports":[{"__symbolic":"reference","name":"TuiNotificationsHostComponent"}],"entryComponents":[{"__symbolic":"reference","name":"TuiNotificationsHostComponent"}],"providers":[{"provide":{"__symbolic":"reference","name":"TuiNotificationsHostComponent"},"useValue":{"__symbolic":"reference","name":"NOTIFICATIONS_HOST"}}]}]}],"members":{}},"TuiNotificationsService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":19,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":27,"character":9},"arguments":[{"__symbolic":"reference","module":"@taiga-ui/core/tokens","name":"TUI_NOTIFICATION_OPTIONS","line":27,"character":16}]}]],"parameters":[{"__symbolic":"reference","module":"@taiga-ui/core/tokens","name":"TuiNotificationDefaultOptions","line":28,"character":26}]}],"show":[{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"}]},"statics":{"ɵprov":{}}},"TuiNotificationsHostComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":13,"character":1},"arguments":[{"selector":"tui-notifications-host","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":17,"character":21},"member":"OnPush"},"animations":[{"__symbolic":"reference","module":"@taiga-ui/core/animations","name":"tuiFadeInList","line":18,"character":17},{"__symbolic":"reference","module":"@taiga-ui/core/animations","name":"tuiSlideInRightList","line":18,"character":32},{"__symbolic":"reference","module":"@taiga-ui/core/animations","name":"tuiHeightCollapseList","line":18,"character":53}],"template":"<ng-container *tuiLet=\"service.items$ | async as items\">\n <div\n *ngIf=\"items.length\"\n class=\"t-wrapper\"\n [@tuiFadeInList]=\"getAnimation(items.length)\"\n [@tuiHeightCollapseList]=\"getAnimation(items.length)\"\n [@tuiSlideInRightList]=\"getAnimation(items.length)\"\n >\n <tui-notification-alert\n *ngFor=\"let item of items\"\n role=\"alert\"\n class=\"t-alert\"\n [item]=\"item\"\n ></tui-notification-alert>\n </div>\n</ng-container>\n","styles":[":host{position:fixed;top:0;left:0;width:100%;height:0}.t-wrapper{width:18rem;margin-left:auto;padding:2rem 3rem 0 0;pointer-events:none}:host-context(tui-root._mobile) .t-wrapper{padding:1rem 1rem 0 0}@media screen and (min-width:80em){.t-wrapper{width:23rem}}.t-alert{pointer-events:auto}.t-alert:not(:first-child){margin-top:.75rem}"]}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":22,"character":9},"arguments":[{"__symbolic":"reference","module":"@taiga-ui/core/tokens","name":"TUI_ANIMATION_OPTIONS","line":22,"character":16}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":23,"character":9},"arguments":[{"__symbolic":"reference","name":"TuiNotificationsService"}]}]],"parameters":[{"__symbolic":"reference","module":"@angular/animations","name":"AnimationOptions","line":22,"character":65},{"__symbolic":"reference","name":"TuiNotificationsService"}]}],"getAnimation":[{"__symbolic":"method","decorators":[{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"tuiPure","line":26,"character":5}]}]}}},"origins":{"NotificationAlert":"./notification-alert/Notification-alert","TuiNotificationAlertComponent":"./notification-alert/notification-alert.component","TuiNotificationAlertModule":"./notification-alert/notification-alert.module","TuiNotificationContentContext":"./notification-content-context","NOTIFICATIONS_HOST":"./notifications-host/notifications-host.component","TuiNotificationsModule":"./notifications.module","TuiNotificationsService":"./notifications.service","TuiNotificationsHostComponent":"./notifications-host/notifications-host.component"},"importAs":"@taiga-ui/core/modules/notifications"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taiga-ui/core",
3
- "version": "2.36.0",
3
+ "version": "2.38.0",
4
4
  "description": "Core library for creating Angular components and applications using Taiga UI",
5
5
  "keywords": [
6
6
  "angular",
@@ -16,12 +16,12 @@
16
16
  "homepage": "https://github.com/tinkoff/taiga-ui",
17
17
  "schematics": "./schematics/collection.json",
18
18
  "dependencies": {
19
- "@taiga-ui/i18n": "^2.36.0",
19
+ "@taiga-ui/i18n": "^2.38.0",
20
20
  "tslib": "^1.10.0"
21
21
  },
22
22
  "peerDependencies": {
23
- "@taiga-ui/i18n": ">=2.36.0",
24
- "@taiga-ui/cdk": ">=2.36.0",
23
+ "@taiga-ui/i18n": ">=2.38.0",
24
+ "@taiga-ui/cdk": ">=2.38.0",
25
25
  "@angular/animations": ">=9.0.0",
26
26
  "@angular/common": ">=9.0.0",
27
27
  "@angular/core": ">=9.0.0",
@@ -1,3 +1,5 @@
1
+ @import '../taiga-ui-local.less';
2
+
1
3
  .tui-group {
2
4
  .createStackingContext();
3
5
  display: flex;
@@ -189,7 +191,7 @@
189
191
  }
190
192
 
191
193
  &:not(:last-child) {
192
- margin-bottom: @space * 4;
194
+ margin-bottom: 1rem;
193
195
  }
194
196
  }
195
197
 
@@ -227,7 +229,7 @@
227
229
 
228
230
  &:not(:last-child) {
229
231
  margin-right: 0;
230
- margin-bottom: @space * 4;
232
+ margin-bottom: 1rem;
231
233
  }
232
234
  }
233
235
 
@@ -0,0 +1,33 @@
1
+ @thumb-diameters: {
2
+ @s: 0.5rem;
3
+ @m: 1rem;
4
+ };
5
+
6
+ .tui-slider-ticks-labels(@input-size: m) {
7
+ @first-tick-center: @thumb-diameters[ @@input-size] / 2;
8
+ display: flex;
9
+ margin: 0 @first-tick-center;
10
+ font: var(--tui-font-text-s);
11
+
12
+ & > * {
13
+ position: relative;
14
+ flex: 2;
15
+ text-align: center;
16
+
17
+ &:first-child {
18
+ left: -@first-tick-center;
19
+ flex: 1;
20
+ text-align: left;
21
+ }
22
+
23
+ &:last-child {
24
+ right: -@first-tick-center;
25
+ flex: 1;
26
+ text-align: right;
27
+ }
28
+ }
29
+
30
+ tui-input-slider + & {
31
+ margin-left: calc(var(--tui-radius-m) / 2 + @first-tick-center);
32
+ }
33
+ }
@@ -0,0 +1,34 @@
1
+ $thumb-diameters: (
2
+ 's': 0.5rem,
3
+ 'm': 1rem,
4
+ );
5
+
6
+ @mixin tui-slider-ticks-labels($input-size: m) {
7
+ $first-tick-center: map-get($thumb-diameters, $input-size) / 2;
8
+
9
+ display: flex;
10
+ margin: 0 $first-tick-center;
11
+ font: var(--tui-font-text-s);
12
+
13
+ & > * {
14
+ position: relative;
15
+ flex: 2;
16
+ text-align: center;
17
+
18
+ &:first-child {
19
+ left: -$first-tick-center;
20
+ flex: 1;
21
+ text-align: left;
22
+ }
23
+
24
+ &:last-child {
25
+ right: -$first-tick-center;
26
+ flex: 1;
27
+ text-align: right;
28
+ }
29
+ }
30
+
31
+ tui-input-slider + & {
32
+ margin-left: calc(var(--tui-radius-m) / 2 + #{$first-tick-center});
33
+ }
34
+ }
@@ -1,3 +1,5 @@
1
+ @line-height-l: 1.25rem;
2
+
1
3
  .textfield-host() {
2
4
  .text-basic();
3
5
  position: relative;
@@ -21,7 +23,8 @@
21
23
  height: var(--tui-height-l);
22
24
  min-height: var(--tui-height-l);
23
25
  max-height: var(--tui-height-l);
24
- font-size: 0.9375rem;
26
+ font: var(--tui-font-text-m);
27
+ line-height: @line-height-l;
25
28
  }
26
29
  }
27
30
 
@@ -96,7 +99,7 @@
96
99
 
97
100
  :host[data-size='l']:not(._label-outside) &,
98
101
  :host-context(tui-primitive-textfield[data-size='l']:not(._label-outside)):not(tui-primitive-textfield) {
99
- padding-top: 1.25rem;
102
+ padding-top: @line-height-l;
100
103
 
101
104
  // Workaround for raising placeholder in temporary autofill
102
105
  &:-webkit-autofill + .content .placeholder {
@@ -138,7 +141,6 @@
138
141
  .text-overflow();
139
142
  display: block;
140
143
  width: 100%;
141
- font-size: 0.8125rem;
142
144
  user-select: none;
143
145
  color: var(--tui-text-02);
144
146
  pointer-events: none;
@@ -147,18 +149,18 @@
147
149
  transform: translateY(-0.625rem);
148
150
 
149
151
  :host[data-size='m'] & {
150
- font-size: 0.69rem;
152
+ font: var(--tui-font-text-xs);
151
153
  transform: translateY(-0.5rem);
152
154
  letter-spacing: 0.025rem;
153
155
  }
154
156
 
155
157
  :host._invalid:not(._focused) &,
156
- :host._invalid:not(._focused)._hovered & {
158
+ :host._invalid:not(._focused):hover & {
157
159
  color: var(--tui-error-fill);
158
160
  }
159
161
 
160
162
  :host[data-mode='onDark']._invalid:not(._focused) &,
161
- :host[data-mode='onDark']._invalid:not(._focused)._hovered & {
163
+ :host[data-mode='onDark']._invalid:not(._focused):hover & {
162
164
  color: var(--tui-error-fill-night);
163
165
  }
164
166
  }
@@ -119,12 +119,12 @@
119
119
  }
120
120
 
121
121
  :host._invalid:not(._focused) &,
122
- :host._invalid:not(._focused)._hovered & {
122
+ :host._invalid:not(._focused):hover & {
123
123
  color: var(--tui-error-fill);
124
124
  }
125
125
 
126
126
  :host[data-mode='onDark']._invalid:not(._focused) &,
127
- :host[data-mode='onDark']._invalid:not(._focused)._hovered & {
127
+ :host[data-mode='onDark']._invalid:not(._focused):hover & {
128
128
  color: var(--tui-error-fill-night);
129
129
  }
130
130
  }
@@ -0,0 +1,57 @@
1
+ .wrapper-hover(@ruleset) {
2
+ &:hover:not(._no-hover),
3
+ &[data-state='hovered'] {
4
+ @ruleset();
5
+ }
6
+ }
7
+
8
+ .wrapper-active(@ruleset) {
9
+ &:active:not(._no-active),
10
+ &[data-state='pressed'],
11
+ &[data-state='pressed']:hover {
12
+ @ruleset();
13
+ }
14
+ }
15
+
16
+ .wrapper-readonly(@ruleset, @native: false) {
17
+ // Specificity artificially increased to match `:hover:not()` level
18
+ & when (@native = true) {
19
+ &:read-only:read-only,
20
+ &[data-state='readonly'][data-state='readonly'] {
21
+ @ruleset();
22
+ }
23
+ }
24
+
25
+ & when (@native = false) {
26
+ &[data-state='readonly'][data-state='readonly'] {
27
+ @ruleset();
28
+ }
29
+ }
30
+ }
31
+
32
+ .wrapper-disabled(@ruleset) {
33
+ // Specificity artificially increased to match `:hover:not()` level
34
+ &:disabled:disabled,
35
+ &[data-state='disabled'][data-state='disabled'] {
36
+ @ruleset();
37
+ }
38
+ }
39
+
40
+ .wrapper-focus(@ruleset) {
41
+ // TODO: Join rules together once all browsers support focus-visible
42
+ // Specificity artificially increased to match `:hover:not()` level
43
+ &:focus-visible:focus-visible {
44
+ @ruleset();
45
+ }
46
+
47
+ &._focused._focused {
48
+ @ruleset();
49
+ }
50
+ }
51
+
52
+ .wrapper-invalid(@ruleset) {
53
+ &:invalid:invalid,
54
+ &._invalid._invalid {
55
+ @ruleset();
56
+ }
57
+ }
@@ -0,0 +1,57 @@
1
+ @mixin wrapper-hover {
2
+ &:hover:not(._no-hover),
3
+ &[data-state='hovered'] {
4
+ @content;
5
+ }
6
+ }
7
+
8
+ @mixin wrapper-active {
9
+ &:active:not(._no-active),
10
+ &[data-state='pressed'],
11
+ &[data-state='pressed']:hover {
12
+ @content;
13
+ }
14
+ }
15
+
16
+ @mixin wrapper-readonly($native: false) {
17
+ // Specificity artificially increased to match `:hover:not()` level
18
+ @if $native == true {
19
+ &:read-only:read-only,
20
+ &[data-state='readonly'][data-state='readonly'] {
21
+ @content;
22
+ }
23
+ }
24
+
25
+ @if $native == false {
26
+ &[data-state='readonly'][data-state='readonly'] {
27
+ @content;
28
+ }
29
+ }
30
+ }
31
+
32
+ @mixin wrapper-disabled {
33
+ // Specificity artificially increased to match `:hover:not()` level
34
+ &:disabled:disabled,
35
+ &[data-state='disabled'][data-state='disabled'] {
36
+ @content;
37
+ }
38
+ }
39
+
40
+ @mixin wrapper-focus {
41
+ // TODO: Join rules together once all browsers support focus-visible
42
+ // Specificity artificially increased to match `:hover:not()` level
43
+ &:focus-visible:focus-visible {
44
+ @content;
45
+ }
46
+
47
+ &._focused._focused {
48
+ @content;
49
+ }
50
+ }
51
+
52
+ @mixin wrapper-invalid {
53
+ &:invalid:invalid,
54
+ &._invalid._invalid {
55
+ @content;
56
+ }
57
+ }
@@ -2,6 +2,8 @@
2
2
 
3
3
  @import 'mixins/mixins.less';
4
4
  @import 'mixins/picker.less';
5
+ @import 'mixins/slider.less';
5
6
  @import 'mixins/text.less';
6
7
  @import 'mixins/textfield.less';
8
+ @import 'mixins/wrapper.less';
7
9
  @import 'variables/media.less';
@@ -2,6 +2,8 @@ $space: 4px;
2
2
 
3
3
  @import 'mixins/mixins.scss';
4
4
  @import 'mixins/picker.scss';
5
+ @import 'mixins/slider.scss';
5
6
  @import 'mixins/text.scss';
6
7
  @import 'mixins/textfield.scss';
8
+ @import 'mixins/wrapper.scss';
7
9
  @import 'variables/media.scss';
@@ -48,7 +48,7 @@
48
48
  --tui-base-09: #000; // icons on inverted background
49
49
  --tui-primary: #526ed3; // primary buttons, background
50
50
  --tui-primary-hover: #6c86e2; // primary buttons hover
51
- --tui-primary-active: #314692; // primary buttons hover
51
+ --tui-primary-active: #314692; // primary buttons pressed
52
52
  --tui-primary-text: #fff; // text on primary background
53
53
  --tui-secondary: #ebefff; // inputs and secondary buttons
54
54
  --tui-secondary-hover: #dfe3f3; // inputs and secondary buttons hover
@@ -1,31 +1,29 @@
1
- tui-wrapper[data-appearance='accent'] {
1
+ @import '../../taiga-ui-local.less';
2
+
3
+ /* stylelint-disable order/order */
4
+ tui-wrapper[data-appearance='accent'],
5
+ [tuiWrapper][data-appearance='accent'] {
2
6
  background: var(--tui-accent);
3
7
  color: var(--tui-accent-text);
4
8
 
5
- &[data-state='hovered'] {
9
+ .wrapper-hover({
6
10
  background: var(--tui-accent-hover);
7
- }
11
+ });
8
12
 
9
- &:active,
10
- &[data-state='pressed'] {
13
+ .wrapper-active({
11
14
  background: var(--tui-accent-active);
12
- }
13
-
14
- &[data-state='disabled'] {
15
- opacity: var(--tui-disabled-opacity);
16
- }
15
+ });
17
16
 
18
- &._invalid {
17
+ .wrapper-invalid({
19
18
  color: var(--tui-negative-night);
20
19
  background: var(--tui-error-bg);
21
20
 
22
- &[data-state='hovered'],
23
- &[data-state='pressed'] {
21
+ .wrapper-hover({
24
22
  background: var(--tui-error-bg-hover);
25
- }
23
+ });
26
24
 
27
- &._focused:after {
28
- color: var(--tui-error-fill);
29
- }
30
- }
25
+ .wrapper-focus({
26
+ --tui-focus: var(--tui-error-fill);
27
+ });
28
+ });
31
29
  }
@@ -0,0 +1,35 @@
1
+ @import '../../taiga-ui-local.less';
2
+
3
+ /* stylelint-disable order/order */
4
+ tui-wrapper,
5
+ [tuiWrapper] {
6
+ .transition(~'color, background');
7
+ position: relative;
8
+ display: block;
9
+ height: 100%;
10
+ width: 100%;
11
+ appearance: none;
12
+ border-radius: inherit;
13
+
14
+ &:after {
15
+ .transition(box-shadow);
16
+ .fullsize(absolute, inset);
17
+ content: '';
18
+ border-radius: inherit;
19
+ border: 1px solid currentColor;
20
+ pointer-events: none;
21
+ color: transparent;
22
+ }
23
+
24
+ .wrapper-focus({
25
+ &:after {
26
+ border-width: 2px;
27
+ color: var(--tui-focus);
28
+ }
29
+ });
30
+
31
+ .wrapper-disabled({
32
+ pointer-events: none;
33
+ opacity: var(--tui-disabled-opacity);
34
+ });
35
+ }
@@ -1,42 +1,32 @@
1
- // TODO: Variables names should not rely on textfield
2
- tui-wrapper[data-appearance='icon'] {
1
+ @import '../../taiga-ui-local.less';
2
+
3
+ /* stylelint-disable order/order */
4
+ tui-wrapper[data-appearance='icon'],
5
+ [tuiWrapper][data-appearance='icon'] {
3
6
  background: transparent;
4
7
  color: var(--tui-base-06);
5
8
 
6
- &[data-state='hovered'] {
7
- color: var(--tui-base-07);
8
- }
9
-
10
- &:active,
11
- &[data-state='pressed'] {
12
- color: var(--tui-base-08);
13
- }
14
-
15
- &[data-state='disabled'] {
16
- opacity: var(--tui-disabled-opacity);
17
- }
18
-
19
9
  &[data-mode='onDark'] {
20
10
  color: var(--tui-text-01-night);
21
11
  opacity: var(--tui-disabled-opacity);
22
12
 
23
- &[data-state='hovered'],
24
- &[data-state='pressed'] {
25
- opacity: 1;
26
- }
27
-
28
- &._focused:after {
29
- color: var(--tui-base-01);
30
- }
13
+ .wrapper-focus({
14
+ --tui-focus: var(--tui-base-01);
15
+ });
31
16
  }
32
17
 
33
18
  &[data-mode='onLight'] {
34
19
  color: var(--tui-text-01);
35
20
  opacity: var(--tui-disabled-opacity);
36
-
37
- &[data-state='hovered'],
38
- &[data-state='pressed'] {
39
- opacity: 1;
40
- }
41
21
  }
22
+
23
+ .wrapper-hover({
24
+ color: var(--tui-base-07);
25
+ opacity: 1;
26
+ });
27
+
28
+ .wrapper-active({
29
+ color: var(--tui-base-08);
30
+ opacity: 1;
31
+ });
42
32
  }