@taiga-ui/core 2.55.0 → 2.56.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 (752) hide show
  1. package/bundles/taiga-ui-core-abstract.umd.js +15 -15
  2. package/bundles/taiga-ui-core-abstract.umd.js.map +1 -1
  3. package/bundles/taiga-ui-core-abstract.umd.min.js.map +1 -1
  4. package/bundles/taiga-ui-core-animations.umd.js +138 -138
  5. package/bundles/taiga-ui-core-animations.umd.js.map +1 -1
  6. package/bundles/taiga-ui-core-animations.umd.min.js.map +1 -1
  7. package/bundles/taiga-ui-core-components-alert.umd.js +11 -11
  8. package/bundles/taiga-ui-core-components-alert.umd.js.map +1 -1
  9. package/bundles/taiga-ui-core-components-alert.umd.min.js.map +1 -1
  10. package/bundles/taiga-ui-core-components-button.umd.js +16 -16
  11. package/bundles/taiga-ui-core-components-button.umd.js.map +1 -1
  12. package/bundles/taiga-ui-core-components-button.umd.min.js.map +1 -1
  13. package/bundles/taiga-ui-core-components-calendar.umd.js +1 -1
  14. package/bundles/taiga-ui-core-components-calendar.umd.js.map +1 -1
  15. package/bundles/taiga-ui-core-components-calendar.umd.min.js.map +1 -1
  16. package/bundles/taiga-ui-core-components-data-list.umd.js +34 -34
  17. package/bundles/taiga-ui-core-components-data-list.umd.js.map +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 +24 -24
  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 +38 -38
  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 +4 -4
  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 +12 -12
  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 +19 -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 +1 -1
  34. package/bundles/taiga-ui-core-components-group.umd.min.js.map +1 -1
  35. package/bundles/taiga-ui-core-components-hints-host.umd.js +47 -47
  36. package/bundles/taiga-ui-core-components-hints-host.umd.js.map +1 -1
  37. package/bundles/taiga-ui-core-components-hints-host.umd.min.js.map +1 -1
  38. package/bundles/taiga-ui-core-components-hosted-dropdown.umd.js +10 -10
  39. package/bundles/taiga-ui-core-components-hosted-dropdown.umd.js.map +1 -1
  40. package/bundles/taiga-ui-core-components-hosted-dropdown.umd.min.js.map +1 -1
  41. package/bundles/taiga-ui-core-components-label.umd.js +4 -4
  42. package/bundles/taiga-ui-core-components-label.umd.js.map +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 +11 -11
  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 +4 -4
  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 +8 -8
  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 +2 -2
  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 +7 -7
  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 +2 -2
  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 +54 -54
  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 +2 -2
  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 +4 -4
  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 +26 -26
  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 +8 -8
  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 +15 -15
  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 +2 -2
  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 +7 -7
  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-constants.umd.js +17 -17
  87. package/bundles/taiga-ui-core-constants.umd.js.map +1 -1
  88. package/bundles/taiga-ui-core-constants.umd.min.js +1 -1
  89. package/bundles/taiga-ui-core-constants.umd.min.js.map +1 -1
  90. package/bundles/taiga-ui-core-directives-color.umd.js +6 -6
  91. package/bundles/taiga-ui-core-directives-color.umd.js.map +1 -1
  92. package/bundles/taiga-ui-core-directives-color.umd.min.js.map +1 -1
  93. package/bundles/taiga-ui-core-directives-described-by.umd.js +8 -8
  94. package/bundles/taiga-ui-core-directives-described-by.umd.js.map +1 -1
  95. package/bundles/taiga-ui-core-directives-described-by.umd.min.js.map +1 -1
  96. package/bundles/taiga-ui-core-directives-dropdown-controller.umd.js +11 -11
  97. package/bundles/taiga-ui-core-directives-dropdown-controller.umd.js.map +1 -1
  98. package/bundles/taiga-ui-core-directives-dropdown-controller.umd.min.js.map +1 -1
  99. package/bundles/taiga-ui-core-directives-dropdown.umd.js +2 -2
  100. package/bundles/taiga-ui-core-directives-dropdown.umd.js.map +1 -1
  101. package/bundles/taiga-ui-core-directives-dropdown.umd.min.js.map +1 -1
  102. package/bundles/taiga-ui-core-directives-hint-controller.umd.js +8 -8
  103. package/bundles/taiga-ui-core-directives-hint-controller.umd.js.map +1 -1
  104. package/bundles/taiga-ui-core-directives-hint-controller.umd.min.js.map +1 -1
  105. package/bundles/taiga-ui-core-directives-hint.umd.js +7 -7
  106. package/bundles/taiga-ui-core-directives-hint.umd.js.map +1 -1
  107. package/bundles/taiga-ui-core-directives-hint.umd.min.js.map +1 -1
  108. package/bundles/taiga-ui-core-directives-manual-hint.umd.js +4 -4
  109. package/bundles/taiga-ui-core-directives-manual-hint.umd.js.map +1 -1
  110. package/bundles/taiga-ui-core-directives-manual-hint.umd.min.js.map +1 -1
  111. package/bundles/taiga-ui-core-directives-mask-accessor.umd.js +1 -1
  112. package/bundles/taiga-ui-core-directives-mask-accessor.umd.js.map +1 -1
  113. package/bundles/taiga-ui-core-directives-mask-accessor.umd.min.js.map +1 -1
  114. package/bundles/taiga-ui-core-directives-mode.umd.js +2 -2
  115. package/bundles/taiga-ui-core-directives-mode.umd.js.map +1 -1
  116. package/bundles/taiga-ui-core-directives-mode.umd.min.js.map +1 -1
  117. package/bundles/taiga-ui-core-directives-pointer-hint.umd.js +5 -5
  118. package/bundles/taiga-ui-core-directives-pointer-hint.umd.js.map +1 -1
  119. package/bundles/taiga-ui-core-directives-pointer-hint.umd.min.js.map +1 -1
  120. package/bundles/taiga-ui-core-directives-scroll-into-view.umd.js +1 -1
  121. package/bundles/taiga-ui-core-directives-scroll-into-view.umd.js.map +1 -1
  122. package/bundles/taiga-ui-core-directives-scroll-into-view.umd.min.js.map +1 -1
  123. package/bundles/taiga-ui-core-directives-table-mode.umd.js +2 -2
  124. package/bundles/taiga-ui-core-directives-table-mode.umd.js.map +1 -1
  125. package/bundles/taiga-ui-core-directives-table-mode.umd.min.js.map +1 -1
  126. package/bundles/taiga-ui-core-directives-textfield-controller.umd.js +35 -35
  127. package/bundles/taiga-ui-core-directives-textfield-controller.umd.js.map +1 -1
  128. package/bundles/taiga-ui-core-directives-textfield-controller.umd.min.js.map +1 -1
  129. package/bundles/taiga-ui-core-directives-wrapper.umd.js +9 -9
  130. package/bundles/taiga-ui-core-directives-wrapper.umd.js.map +1 -1
  131. package/bundles/taiga-ui-core-directives-wrapper.umd.min.js.map +1 -1
  132. package/bundles/taiga-ui-core-enums.umd.js.map +1 -1
  133. package/bundles/taiga-ui-core-enums.umd.min.js.map +1 -1
  134. package/bundles/taiga-ui-core-internal-primitive-year-month-pagination.umd.js +1 -1
  135. package/bundles/taiga-ui-core-internal-primitive-year-month-pagination.umd.js.map +1 -1
  136. package/bundles/taiga-ui-core-internal-primitive-year-month-pagination.umd.min.js.map +1 -1
  137. package/bundles/taiga-ui-core-internal-svg-defs-host.umd.js +1 -1
  138. package/bundles/taiga-ui-core-internal-svg-defs-host.umd.js.map +1 -1
  139. package/bundles/taiga-ui-core-internal-svg-defs-host.umd.min.js.map +1 -1
  140. package/bundles/taiga-ui-core-observables.umd.js +2 -2
  141. package/bundles/taiga-ui-core-observables.umd.js.map +1 -1
  142. package/bundles/taiga-ui-core-observables.umd.min.js.map +1 -1
  143. package/bundles/taiga-ui-core-pipes-calendar-sheet.umd.js +1 -1
  144. package/bundles/taiga-ui-core-pipes-calendar-sheet.umd.js.map +1 -1
  145. package/bundles/taiga-ui-core-pipes-calendar-sheet.umd.min.js.map +1 -1
  146. package/bundles/taiga-ui-core-pipes-format-number.umd.js +1 -1
  147. package/bundles/taiga-ui-core-pipes-format-number.umd.js.map +1 -1
  148. package/bundles/taiga-ui-core-pipes-format-number.umd.min.js.map +1 -1
  149. package/bundles/taiga-ui-core-pipes-format-phone.umd.js +3 -3
  150. package/bundles/taiga-ui-core-pipes-format-phone.umd.js.map +1 -1
  151. package/bundles/taiga-ui-core-pipes-format-phone.umd.min.js.map +1 -1
  152. package/bundles/taiga-ui-core-pipes-month.umd.js +1 -1
  153. package/bundles/taiga-ui-core-pipes-month.umd.js.map +1 -1
  154. package/bundles/taiga-ui-core-pipes-month.umd.min.js.map +1 -1
  155. package/bundles/taiga-ui-core-pipes-pluralize.umd.js +1 -1
  156. package/bundles/taiga-ui-core-pipes-pluralize.umd.js.map +1 -1
  157. package/bundles/taiga-ui-core-pipes-pluralize.umd.min.js.map +1 -1
  158. package/bundles/taiga-ui-core-providers.umd.js +2 -2
  159. package/bundles/taiga-ui-core-providers.umd.js.map +1 -1
  160. package/bundles/taiga-ui-core-providers.umd.min.js.map +1 -1
  161. package/bundles/taiga-ui-core-services.umd.js +7 -7
  162. package/bundles/taiga-ui-core-services.umd.js.map +1 -1
  163. package/bundles/taiga-ui-core-services.umd.min.js.map +1 -1
  164. package/bundles/taiga-ui-core-tokens.umd.js +40 -40
  165. package/bundles/taiga-ui-core-tokens.umd.js.map +1 -1
  166. package/bundles/taiga-ui-core-tokens.umd.min.js.map +1 -1
  167. package/bundles/taiga-ui-core-utils-dom.umd.js +16 -16
  168. package/bundles/taiga-ui-core-utils-dom.umd.js.map +1 -1
  169. package/bundles/taiga-ui-core-utils-dom.umd.min.js.map +1 -1
  170. package/bundles/taiga-ui-core-utils-format.umd.js +17 -17
  171. package/bundles/taiga-ui-core-utils-format.umd.js.map +1 -1
  172. package/bundles/taiga-ui-core-utils-format.umd.min.js.map +1 -1
  173. package/bundles/taiga-ui-core-utils-mask.umd.js +28 -28
  174. package/bundles/taiga-ui-core-utils-mask.umd.js.map +1 -1
  175. package/bundles/taiga-ui-core-utils-mask.umd.min.js.map +1 -1
  176. package/bundles/taiga-ui-core-utils-miscellaneous.umd.js +12 -12
  177. package/bundles/taiga-ui-core-utils-miscellaneous.umd.js.map +1 -1
  178. package/bundles/taiga-ui-core-utils-miscellaneous.umd.min.js.map +1 -1
  179. package/bundles/taiga-ui-core-utils-polyfills.umd.js +4 -4
  180. package/bundles/taiga-ui-core-utils-polyfills.umd.js.map +1 -1
  181. package/bundles/taiga-ui-core-utils-polyfills.umd.min.js.map +1 -1
  182. package/components/group/taiga-ui-core-components-group.metadata.json +1 -1
  183. package/constants/taiga-ui-core-constants.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/esm2015/abstract/abstract-dropdown.js +12 -12
  187. package/esm2015/abstract/abstract-hint-options.js +2 -2
  188. package/esm2015/abstract/abstract-hint.js +4 -4
  189. package/esm2015/animations/animations.js +140 -140
  190. package/esm2015/components/alert/alert.component.js +10 -10
  191. package/esm2015/components/alert/alert.service.js +3 -3
  192. package/esm2015/components/button/button-options.js +3 -3
  193. package/esm2015/components/button/button.component.js +15 -15
  194. package/esm2015/components/calendar/calendar.component.js +2 -2
  195. package/esm2015/components/data-list/data-list-dropdown-manager.directive.js +7 -7
  196. package/esm2015/components/data-list/data-list.component.js +12 -12
  197. package/esm2015/components/data-list/data-list.directive.js +2 -2
  198. package/esm2015/components/data-list/opt-group.directive.js +5 -5
  199. package/esm2015/components/data-list/option/option.component.js +12 -12
  200. package/esm2015/components/dialog/dialog.component.js +12 -12
  201. package/esm2015/components/dialog/dialog.directive.js +4 -4
  202. package/esm2015/components/dialog/dialog.providers.js +7 -7
  203. package/esm2015/components/dialog/dialog.service.js +5 -5
  204. package/esm2015/components/dropdown-box/dropdown-box.component.js +39 -39
  205. package/esm2015/components/error/error.component.js +5 -5
  206. package/esm2015/components/expand/expand-content.directive.js +2 -2
  207. package/esm2015/components/expand/expand.component.js +12 -12
  208. package/esm2015/components/group/group-styles.component.js +2 -2
  209. package/esm2015/components/group/group.component.js +7 -5
  210. package/esm2015/components/group/group.directive.js +15 -15
  211. package/esm2015/components/hints-host/hint-box/hint-box.component.js +46 -46
  212. package/esm2015/components/hints-host/hints-host.component.js +3 -3
  213. package/esm2015/components/hosted-dropdown/hosted-dropdown-connector.directive.js +2 -2
  214. package/esm2015/components/hosted-dropdown/hosted-dropdown.component.js +10 -10
  215. package/esm2015/components/label/label.component.js +5 -5
  216. package/esm2015/components/link/link.component.js +12 -12
  217. package/esm2015/components/loader/loader-options.js +3 -3
  218. package/esm2015/components/loader/loader.component.js +3 -3
  219. package/esm2015/components/notification/notification.component.js +9 -9
  220. package/esm2015/components/primitive-calendar/primitive-calendar.component.js +3 -3
  221. package/esm2015/components/primitive-checkbox/checkbox-options.js +5 -5
  222. package/esm2015/components/primitive-checkbox/primitive-checkbox.component.js +4 -4
  223. package/esm2015/components/primitive-spin-button/primitive-spin-button.component.js +3 -3
  224. package/esm2015/components/primitive-textfield/primitive-textfield-options.js +4 -4
  225. package/esm2015/components/primitive-textfield/primitive-textfield.component.js +28 -28
  226. package/esm2015/components/primitive-textfield/primitive-textfield.directive.js +2 -2
  227. package/esm2015/components/primitive-textfield/textfield/textfield.component.js +13 -13
  228. package/esm2015/components/primitive-textfield/value-decoration/value-decoration.component.js +12 -12
  229. package/esm2015/components/primitive-year-picker/primitive-year-picker.component.js +3 -3
  230. package/esm2015/components/root/root.component.js +5 -5
  231. package/esm2015/components/scroll-controls/scroll-controls.component.js +4 -4
  232. package/esm2015/components/scroll-controls/scrollbar-wrapper.directive.js +2 -2
  233. package/esm2015/components/scroll-controls/scrollbar.directive.js +23 -23
  234. package/esm2015/components/scrollbar/scroll-ref.directive.js +2 -2
  235. package/esm2015/components/scrollbar/scrollable.directive.js +2 -2
  236. package/esm2015/components/scrollbar/scrollbar.component.js +7 -7
  237. package/esm2015/components/svg/svg.component.js +16 -16
  238. package/esm2015/components/theme-night/theme-night.component.js +3 -3
  239. package/esm2015/components/tooltip/tooltip.component.js +8 -8
  240. package/esm2015/constants/decimal-symbols.js +2 -2
  241. package/esm2015/constants/default-icons-path.js +2 -2
  242. package/esm2015/constants/editing-keys.js +10 -10
  243. package/esm2015/constants/events.js +5 -5
  244. package/esm2015/constants/mask-caret-trap.js +2 -2
  245. package/esm2015/constants/version.js +2 -2
  246. package/esm2015/directives/color/color.directive.js +7 -7
  247. package/esm2015/directives/described-by/described-by.directive.js +5 -5
  248. package/esm2015/directives/described-by/described-by.providers.js +3 -3
  249. package/esm2015/directives/dropdown/dropdown.directive.js +3 -3
  250. package/esm2015/directives/dropdown-controller/dropdown-controller.directive.js +10 -10
  251. package/esm2015/directives/dropdown-controller/dropdown-controller.provider.js +2 -2
  252. package/esm2015/directives/dropdown-controller/dropdown-controller.token.js +2 -2
  253. package/esm2015/directives/hint/hint-options.js +3 -3
  254. package/esm2015/directives/hint/hint.directive.js +6 -6
  255. package/esm2015/directives/hint-controller/hint-controller.directive.js +7 -7
  256. package/esm2015/directives/hint-controller/hint-controller.provider.js +2 -2
  257. package/esm2015/directives/hint-controller/hint-controller.token.js +2 -2
  258. package/esm2015/directives/manual-hint/manual-hint-options.js +2 -2
  259. package/esm2015/directives/manual-hint/manual-hint.directive.js +4 -4
  260. package/esm2015/directives/mask-accessor/mask-accessor.directive.js +2 -2
  261. package/esm2015/directives/mode/mode.directive.js +3 -3
  262. package/esm2015/directives/pointer-hint/pointer-hint-options.js +2 -2
  263. package/esm2015/directives/pointer-hint/pointer-hint.directive.js +5 -5
  264. package/esm2015/directives/scroll-into-view/scroll-into-view.directive.js +2 -2
  265. package/esm2015/directives/table-mode/table-mode.directive.js +3 -3
  266. package/esm2015/directives/textfield-controller/textfield-autocomplete.directive.js +5 -5
  267. package/esm2015/directives/textfield-controller/textfield-cleaner.directive.js +4 -4
  268. package/esm2015/directives/textfield-controller/textfield-controller.provider.js +2 -2
  269. package/esm2015/directives/textfield-controller/textfield-custom-content.directive.js +5 -5
  270. package/esm2015/directives/textfield-controller/textfield-example-text.directive.js +5 -5
  271. package/esm2015/directives/textfield-controller/textfield-input-mode.directive.js +5 -5
  272. package/esm2015/directives/textfield-controller/textfield-label-outside.directive.js +4 -4
  273. package/esm2015/directives/textfield-controller/textfield-max-length.directive.js +4 -4
  274. package/esm2015/directives/textfield-controller/textfield-size.directive.js +5 -5
  275. package/esm2015/directives/textfield-controller/textfield-type.directive.js +5 -5
  276. package/esm2015/directives/textfield-controller/textfield.controller.js +2 -2
  277. package/esm2015/directives/wrapper/wrapper.directive.js +10 -10
  278. package/esm2015/enums/appearance.js +1 -1
  279. package/esm2015/enums/base-color.js +1 -1
  280. package/esm2015/enums/button-shape.js +1 -1
  281. package/esm2015/enums/decimal.js +1 -1
  282. package/esm2015/enums/dropdown-animation.js +1 -1
  283. package/esm2015/enums/dropdown-width.js +1 -1
  284. package/esm2015/enums/hint-mode.js +1 -1
  285. package/esm2015/enums/interactive-state.js +1 -1
  286. package/esm2015/enums/link-mode.js +1 -1
  287. package/esm2015/enums/notification.js +1 -1
  288. package/esm2015/enums/orientation.js +1 -1
  289. package/esm2015/enums/range-state.js +1 -1
  290. package/esm2015/enums/support-color.js +1 -1
  291. package/esm2015/internal/primitive-year-month-pagination/primitive-year-month-pagination.component.js +2 -2
  292. package/esm2015/internal/svg-defs-host/svg-defs-host.component.js +2 -2
  293. package/esm2015/observables/smart-search.js +3 -3
  294. package/esm2015/pipes/calendar-sheet/calendar-sheet.pipe.js +2 -2
  295. package/esm2015/pipes/format-number/format-number.pipe.js +2 -2
  296. package/esm2015/pipes/format-phone/format-phone.pipe.js +4 -4
  297. package/esm2015/pipes/month/month.pipe.js +2 -2
  298. package/esm2015/pipes/pluralize/pluralize.pipe.js +2 -2
  299. package/esm2015/providers/is-mobile-resolution.provider.js +2 -2
  300. package/esm2015/providers/mode.provider.js +2 -2
  301. package/esm2015/services/hint.service.js +2 -2
  302. package/esm2015/services/night-theme.service.js +4 -4
  303. package/esm2015/services/svg.service.js +4 -4
  304. package/esm2015/tokens/animation-options.js +2 -2
  305. package/esm2015/tokens/animations-duration.js +2 -2
  306. package/esm2015/tokens/assert-enabled.js +2 -2
  307. package/esm2015/tokens/data-list-accessor.js +2 -2
  308. package/esm2015/tokens/data-list-host.js +2 -2
  309. package/esm2015/tokens/document-or-shadow-root.js +2 -2
  310. package/esm2015/tokens/dropdown-directive.js +2 -2
  311. package/esm2015/tokens/element-ref.js +2 -2
  312. package/esm2015/tokens/first-day-of-week.js +2 -2
  313. package/esm2015/tokens/i18n.js +10 -10
  314. package/esm2015/tokens/icon-place.js +3 -3
  315. package/esm2015/tokens/icons-path.js +2 -2
  316. package/esm2015/tokens/icons.js +2 -2
  317. package/esm2015/tokens/is-mobile-resolution.js +3 -3
  318. package/esm2015/tokens/media.js +2 -2
  319. package/esm2015/tokens/mode.js +2 -2
  320. package/esm2015/tokens/notification-options.js +3 -3
  321. package/esm2015/tokens/number-format.js +3 -3
  322. package/esm2015/tokens/option-content.js +2 -2
  323. package/esm2015/tokens/ordered-short-week-days.js +2 -2
  324. package/esm2015/tokens/scroll-ref.js +2 -2
  325. package/esm2015/tokens/svg-content-processor.js +2 -2
  326. package/esm2015/tokens/svg-src-processor.js +2 -2
  327. package/esm2015/tokens/textfield-appearance.js +2 -2
  328. package/esm2015/tokens/textfield-host.js +2 -2
  329. package/esm2015/tokens/theme.js +3 -3
  330. package/esm2015/tokens/value-accessor.js +2 -2
  331. package/esm2015/utils/dom/are-css-vars-supported.js +2 -2
  332. package/esm2015/utils/dom/check-fixed-position.js +3 -3
  333. package/esm2015/utils/dom/get-safe-area-size.js +4 -4
  334. package/esm2015/utils/dom/process-icon.js +11 -11
  335. package/esm2015/utils/format/format-number.js +5 -5
  336. package/esm2015/utils/format/format-phone.js +9 -9
  337. package/esm2015/utils/format/get-fractional-part-padded.js +3 -3
  338. package/esm2015/utils/format/number-to-string-without-exp.js +3 -3
  339. package/esm2015/utils/format/other-decimal-symbol.js +2 -2
  340. package/esm2015/utils/mask/create-auto-corrected-money-pipe.js +11 -11
  341. package/esm2015/utils/mask/create-correction-mask.js +3 -3
  342. package/esm2015/utils/mask/create-number-mask.js +13 -13
  343. package/esm2015/utils/mask/masked-money-value-is-empty.js +3 -3
  344. package/esm2015/utils/mask/masked-number-string-to-number.js +2 -2
  345. package/esm2015/utils/miscellaneous/color-fallback.js +8 -8
  346. package/esm2015/utils/miscellaneous/icons-path-factory.js +3 -3
  347. package/esm2015/utils/miscellaneous/is-presumed-html-string.js +2 -2
  348. package/esm2015/utils/miscellaneous/size-bigger.js +3 -3
  349. package/esm2015/utils/polyfills/inner-html.js +5 -5
  350. package/esm5/abstract/abstract-dropdown.js +12 -12
  351. package/esm5/abstract/abstract-hint-options.js +2 -2
  352. package/esm5/abstract/abstract-hint.js +4 -4
  353. package/esm5/animations/animations.js +140 -140
  354. package/esm5/components/alert/alert.component.js +10 -10
  355. package/esm5/components/alert/alert.service.js +3 -3
  356. package/esm5/components/button/button-options.js +3 -3
  357. package/esm5/components/button/button.component.js +15 -15
  358. package/esm5/components/calendar/calendar.component.js +2 -2
  359. package/esm5/components/data-list/data-list-dropdown-manager.directive.js +8 -8
  360. package/esm5/components/data-list/data-list.component.js +12 -12
  361. package/esm5/components/data-list/data-list.directive.js +2 -2
  362. package/esm5/components/data-list/opt-group.directive.js +5 -5
  363. package/esm5/components/data-list/option/option.component.js +12 -12
  364. package/esm5/components/dialog/dialog.component.js +12 -12
  365. package/esm5/components/dialog/dialog.directive.js +4 -4
  366. package/esm5/components/dialog/dialog.providers.js +7 -7
  367. package/esm5/components/dialog/dialog.service.js +5 -5
  368. package/esm5/components/dropdown-box/dropdown-box.component.js +39 -39
  369. package/esm5/components/error/error.component.js +5 -5
  370. package/esm5/components/expand/expand-content.directive.js +2 -2
  371. package/esm5/components/expand/expand.component.js +12 -12
  372. package/esm5/components/group/group-styles.component.js +2 -2
  373. package/esm5/components/group/group.component.js +5 -5
  374. package/esm5/components/group/group.directive.js +15 -15
  375. package/esm5/components/hints-host/hint-box/hint-box.component.js +46 -46
  376. package/esm5/components/hints-host/hints-host.component.js +3 -3
  377. package/esm5/components/hosted-dropdown/hosted-dropdown-connector.directive.js +2 -2
  378. package/esm5/components/hosted-dropdown/hosted-dropdown.component.js +10 -10
  379. package/esm5/components/label/label.component.js +5 -5
  380. package/esm5/components/link/link.component.js +12 -12
  381. package/esm5/components/loader/loader-options.js +3 -3
  382. package/esm5/components/loader/loader.component.js +3 -3
  383. package/esm5/components/notification/notification.component.js +9 -9
  384. package/esm5/components/primitive-calendar/primitive-calendar.component.js +3 -3
  385. package/esm5/components/primitive-checkbox/checkbox-options.js +5 -5
  386. package/esm5/components/primitive-checkbox/primitive-checkbox.component.js +4 -4
  387. package/esm5/components/primitive-spin-button/primitive-spin-button.component.js +3 -3
  388. package/esm5/components/primitive-textfield/primitive-textfield-options.js +4 -4
  389. package/esm5/components/primitive-textfield/primitive-textfield.component.js +28 -28
  390. package/esm5/components/primitive-textfield/primitive-textfield.directive.js +2 -2
  391. package/esm5/components/primitive-textfield/textfield/textfield.component.js +13 -13
  392. package/esm5/components/primitive-textfield/value-decoration/value-decoration.component.js +12 -12
  393. package/esm5/components/primitive-year-picker/primitive-year-picker.component.js +3 -3
  394. package/esm5/components/root/root.component.js +5 -5
  395. package/esm5/components/scroll-controls/scroll-controls.component.js +4 -4
  396. package/esm5/components/scroll-controls/scrollbar-wrapper.directive.js +2 -2
  397. package/esm5/components/scroll-controls/scrollbar.directive.js +23 -23
  398. package/esm5/components/scrollbar/scroll-ref.directive.js +2 -2
  399. package/esm5/components/scrollbar/scrollable.directive.js +2 -2
  400. package/esm5/components/scrollbar/scrollbar.component.js +7 -7
  401. package/esm5/components/svg/svg.component.js +16 -16
  402. package/esm5/components/theme-night/theme-night.component.js +3 -3
  403. package/esm5/components/tooltip/tooltip.component.js +8 -8
  404. package/esm5/constants/decimal-symbols.js +2 -2
  405. package/esm5/constants/default-icons-path.js +2 -2
  406. package/esm5/constants/editing-keys.js +10 -10
  407. package/esm5/constants/events.js +5 -5
  408. package/esm5/constants/mask-caret-trap.js +2 -2
  409. package/esm5/constants/version.js +2 -2
  410. package/esm5/directives/color/color.directive.js +7 -7
  411. package/esm5/directives/described-by/described-by.directive.js +5 -5
  412. package/esm5/directives/described-by/described-by.providers.js +5 -5
  413. package/esm5/directives/dropdown/dropdown.directive.js +3 -3
  414. package/esm5/directives/dropdown-controller/dropdown-controller.directive.js +10 -10
  415. package/esm5/directives/dropdown-controller/dropdown-controller.provider.js +2 -2
  416. package/esm5/directives/dropdown-controller/dropdown-controller.token.js +2 -2
  417. package/esm5/directives/hint/hint-options.js +3 -3
  418. package/esm5/directives/hint/hint.directive.js +6 -6
  419. package/esm5/directives/hint-controller/hint-controller.directive.js +7 -7
  420. package/esm5/directives/hint-controller/hint-controller.provider.js +2 -2
  421. package/esm5/directives/hint-controller/hint-controller.token.js +2 -2
  422. package/esm5/directives/manual-hint/manual-hint-options.js +2 -2
  423. package/esm5/directives/manual-hint/manual-hint.directive.js +4 -4
  424. package/esm5/directives/mask-accessor/mask-accessor.directive.js +2 -2
  425. package/esm5/directives/mode/mode.directive.js +3 -3
  426. package/esm5/directives/pointer-hint/pointer-hint-options.js +2 -2
  427. package/esm5/directives/pointer-hint/pointer-hint.directive.js +5 -5
  428. package/esm5/directives/scroll-into-view/scroll-into-view.directive.js +2 -2
  429. package/esm5/directives/table-mode/table-mode.directive.js +3 -3
  430. package/esm5/directives/textfield-controller/textfield-autocomplete.directive.js +5 -5
  431. package/esm5/directives/textfield-controller/textfield-cleaner.directive.js +4 -4
  432. package/esm5/directives/textfield-controller/textfield-controller.provider.js +2 -2
  433. package/esm5/directives/textfield-controller/textfield-custom-content.directive.js +5 -5
  434. package/esm5/directives/textfield-controller/textfield-example-text.directive.js +5 -5
  435. package/esm5/directives/textfield-controller/textfield-input-mode.directive.js +5 -5
  436. package/esm5/directives/textfield-controller/textfield-label-outside.directive.js +4 -4
  437. package/esm5/directives/textfield-controller/textfield-max-length.directive.js +4 -4
  438. package/esm5/directives/textfield-controller/textfield-size.directive.js +5 -5
  439. package/esm5/directives/textfield-controller/textfield-type.directive.js +5 -5
  440. package/esm5/directives/textfield-controller/textfield.controller.js +2 -2
  441. package/esm5/directives/wrapper/wrapper.directive.js +10 -10
  442. package/esm5/enums/appearance.js +1 -1
  443. package/esm5/enums/base-color.js +1 -1
  444. package/esm5/enums/button-shape.js +1 -1
  445. package/esm5/enums/decimal.js +1 -1
  446. package/esm5/enums/dropdown-animation.js +1 -1
  447. package/esm5/enums/dropdown-width.js +1 -1
  448. package/esm5/enums/hint-mode.js +1 -1
  449. package/esm5/enums/interactive-state.js +1 -1
  450. package/esm5/enums/link-mode.js +1 -1
  451. package/esm5/enums/notification.js +1 -1
  452. package/esm5/enums/orientation.js +1 -1
  453. package/esm5/enums/range-state.js +1 -1
  454. package/esm5/enums/support-color.js +1 -1
  455. package/esm5/internal/primitive-year-month-pagination/primitive-year-month-pagination.component.js +2 -2
  456. package/esm5/internal/svg-defs-host/svg-defs-host.component.js +2 -2
  457. package/esm5/observables/smart-search.js +3 -3
  458. package/esm5/pipes/calendar-sheet/calendar-sheet.pipe.js +2 -2
  459. package/esm5/pipes/format-number/format-number.pipe.js +2 -2
  460. package/esm5/pipes/format-phone/format-phone.pipe.js +4 -4
  461. package/esm5/pipes/month/month.pipe.js +2 -2
  462. package/esm5/pipes/pluralize/pluralize.pipe.js +2 -2
  463. package/esm5/providers/is-mobile-resolution.provider.js +2 -2
  464. package/esm5/providers/mode.provider.js +2 -2
  465. package/esm5/services/hint.service.js +2 -2
  466. package/esm5/services/night-theme.service.js +4 -4
  467. package/esm5/services/svg.service.js +4 -4
  468. package/esm5/tokens/animation-options.js +2 -2
  469. package/esm5/tokens/animations-duration.js +2 -2
  470. package/esm5/tokens/assert-enabled.js +2 -2
  471. package/esm5/tokens/data-list-accessor.js +2 -2
  472. package/esm5/tokens/data-list-host.js +2 -2
  473. package/esm5/tokens/document-or-shadow-root.js +2 -2
  474. package/esm5/tokens/dropdown-directive.js +2 -2
  475. package/esm5/tokens/element-ref.js +2 -2
  476. package/esm5/tokens/first-day-of-week.js +2 -2
  477. package/esm5/tokens/i18n.js +10 -10
  478. package/esm5/tokens/icon-place.js +3 -3
  479. package/esm5/tokens/icons-path.js +2 -2
  480. package/esm5/tokens/icons.js +2 -2
  481. package/esm5/tokens/is-mobile-resolution.js +3 -3
  482. package/esm5/tokens/media.js +2 -2
  483. package/esm5/tokens/mode.js +2 -2
  484. package/esm5/tokens/notification-options.js +3 -3
  485. package/esm5/tokens/number-format.js +3 -3
  486. package/esm5/tokens/option-content.js +2 -2
  487. package/esm5/tokens/ordered-short-week-days.js +2 -2
  488. package/esm5/tokens/scroll-ref.js +2 -2
  489. package/esm5/tokens/svg-content-processor.js +2 -2
  490. package/esm5/tokens/svg-src-processor.js +2 -2
  491. package/esm5/tokens/textfield-appearance.js +2 -2
  492. package/esm5/tokens/textfield-host.js +2 -2
  493. package/esm5/tokens/theme.js +3 -3
  494. package/esm5/tokens/value-accessor.js +2 -2
  495. package/esm5/utils/dom/are-css-vars-supported.js +2 -2
  496. package/esm5/utils/dom/check-fixed-position.js +3 -3
  497. package/esm5/utils/dom/get-safe-area-size.js +4 -4
  498. package/esm5/utils/dom/process-icon.js +11 -11
  499. package/esm5/utils/format/format-number.js +5 -5
  500. package/esm5/utils/format/format-phone.js +9 -9
  501. package/esm5/utils/format/get-fractional-part-padded.js +3 -3
  502. package/esm5/utils/format/number-to-string-without-exp.js +3 -3
  503. package/esm5/utils/format/other-decimal-symbol.js +2 -2
  504. package/esm5/utils/mask/create-auto-corrected-money-pipe.js +12 -12
  505. package/esm5/utils/mask/create-correction-mask.js +3 -3
  506. package/esm5/utils/mask/create-number-mask.js +13 -13
  507. package/esm5/utils/mask/masked-money-value-is-empty.js +3 -3
  508. package/esm5/utils/mask/masked-number-string-to-number.js +2 -2
  509. package/esm5/utils/miscellaneous/color-fallback.js +8 -8
  510. package/esm5/utils/miscellaneous/icons-path-factory.js +3 -3
  511. package/esm5/utils/miscellaneous/is-presumed-html-string.js +2 -2
  512. package/esm5/utils/miscellaneous/size-bigger.js +3 -3
  513. package/esm5/utils/polyfills/inner-html.js +5 -5
  514. package/fesm2015/taiga-ui-core-abstract.js +15 -15
  515. package/fesm2015/taiga-ui-core-abstract.js.map +1 -1
  516. package/fesm2015/taiga-ui-core-animations.js +138 -138
  517. package/fesm2015/taiga-ui-core-animations.js.map +1 -1
  518. package/fesm2015/taiga-ui-core-components-alert.js +11 -11
  519. package/fesm2015/taiga-ui-core-components-alert.js.map +1 -1
  520. package/fesm2015/taiga-ui-core-components-button.js +16 -16
  521. package/fesm2015/taiga-ui-core-components-button.js.map +1 -1
  522. package/fesm2015/taiga-ui-core-components-calendar.js +1 -1
  523. package/fesm2015/taiga-ui-core-components-calendar.js.map +1 -1
  524. package/fesm2015/taiga-ui-core-components-data-list.js +33 -33
  525. package/fesm2015/taiga-ui-core-components-data-list.js.map +1 -1
  526. package/fesm2015/taiga-ui-core-components-dialog.js +24 -24
  527. package/fesm2015/taiga-ui-core-components-dialog.js.map +1 -1
  528. package/fesm2015/taiga-ui-core-components-dropdown-box.js +38 -38
  529. package/fesm2015/taiga-ui-core-components-dropdown-box.js.map +1 -1
  530. package/fesm2015/taiga-ui-core-components-error.js +4 -4
  531. package/fesm2015/taiga-ui-core-components-error.js.map +1 -1
  532. package/fesm2015/taiga-ui-core-components-expand.js +12 -12
  533. package/fesm2015/taiga-ui-core-components-expand.js.map +1 -1
  534. package/fesm2015/taiga-ui-core-components-group.js +21 -19
  535. package/fesm2015/taiga-ui-core-components-group.js.map +1 -1
  536. package/fesm2015/taiga-ui-core-components-hints-host.js +47 -47
  537. package/fesm2015/taiga-ui-core-components-hints-host.js.map +1 -1
  538. package/fesm2015/taiga-ui-core-components-hosted-dropdown.js +10 -10
  539. package/fesm2015/taiga-ui-core-components-hosted-dropdown.js.map +1 -1
  540. package/fesm2015/taiga-ui-core-components-label.js +4 -4
  541. package/fesm2015/taiga-ui-core-components-label.js.map +1 -1
  542. package/fesm2015/taiga-ui-core-components-link.js +11 -11
  543. package/fesm2015/taiga-ui-core-components-link.js.map +1 -1
  544. package/fesm2015/taiga-ui-core-components-loader.js +4 -4
  545. package/fesm2015/taiga-ui-core-components-loader.js.map +1 -1
  546. package/fesm2015/taiga-ui-core-components-notification.js +8 -8
  547. package/fesm2015/taiga-ui-core-components-notification.js.map +1 -1
  548. package/fesm2015/taiga-ui-core-components-primitive-calendar.js +2 -2
  549. package/fesm2015/taiga-ui-core-components-primitive-calendar.js.map +1 -1
  550. package/fesm2015/taiga-ui-core-components-primitive-checkbox.js +7 -7
  551. package/fesm2015/taiga-ui-core-components-primitive-checkbox.js.map +1 -1
  552. package/fesm2015/taiga-ui-core-components-primitive-spin-button.js +2 -2
  553. package/fesm2015/taiga-ui-core-components-primitive-spin-button.js.map +1 -1
  554. package/fesm2015/taiga-ui-core-components-primitive-textfield.js +54 -54
  555. package/fesm2015/taiga-ui-core-components-primitive-textfield.js.map +1 -1
  556. package/fesm2015/taiga-ui-core-components-primitive-year-picker.js +2 -2
  557. package/fesm2015/taiga-ui-core-components-primitive-year-picker.js.map +1 -1
  558. package/fesm2015/taiga-ui-core-components-root.js +4 -4
  559. package/fesm2015/taiga-ui-core-components-root.js.map +1 -1
  560. package/fesm2015/taiga-ui-core-components-scroll-controls.js +26 -26
  561. package/fesm2015/taiga-ui-core-components-scroll-controls.js.map +1 -1
  562. package/fesm2015/taiga-ui-core-components-scrollbar.js +8 -8
  563. package/fesm2015/taiga-ui-core-components-scrollbar.js.map +1 -1
  564. package/fesm2015/taiga-ui-core-components-svg.js +15 -15
  565. package/fesm2015/taiga-ui-core-components-svg.js.map +1 -1
  566. package/fesm2015/taiga-ui-core-components-theme-night.js +2 -2
  567. package/fesm2015/taiga-ui-core-components-theme-night.js.map +1 -1
  568. package/fesm2015/taiga-ui-core-components-tooltip.js +7 -7
  569. package/fesm2015/taiga-ui-core-components-tooltip.js.map +1 -1
  570. package/fesm2015/taiga-ui-core-constants.js +17 -17
  571. package/fesm2015/taiga-ui-core-constants.js.map +1 -1
  572. package/fesm2015/taiga-ui-core-directives-color.js +6 -6
  573. package/fesm2015/taiga-ui-core-directives-color.js.map +1 -1
  574. package/fesm2015/taiga-ui-core-directives-described-by.js +6 -6
  575. package/fesm2015/taiga-ui-core-directives-described-by.js.map +1 -1
  576. package/fesm2015/taiga-ui-core-directives-dropdown-controller.js +11 -11
  577. package/fesm2015/taiga-ui-core-directives-dropdown-controller.js.map +1 -1
  578. package/fesm2015/taiga-ui-core-directives-dropdown.js +2 -2
  579. package/fesm2015/taiga-ui-core-directives-dropdown.js.map +1 -1
  580. package/fesm2015/taiga-ui-core-directives-hint-controller.js +8 -8
  581. package/fesm2015/taiga-ui-core-directives-hint-controller.js.map +1 -1
  582. package/fesm2015/taiga-ui-core-directives-hint.js +7 -7
  583. package/fesm2015/taiga-ui-core-directives-hint.js.map +1 -1
  584. package/fesm2015/taiga-ui-core-directives-manual-hint.js +4 -4
  585. package/fesm2015/taiga-ui-core-directives-manual-hint.js.map +1 -1
  586. package/fesm2015/taiga-ui-core-directives-mask-accessor.js +1 -1
  587. package/fesm2015/taiga-ui-core-directives-mask-accessor.js.map +1 -1
  588. package/fesm2015/taiga-ui-core-directives-mode.js +2 -2
  589. package/fesm2015/taiga-ui-core-directives-mode.js.map +1 -1
  590. package/fesm2015/taiga-ui-core-directives-pointer-hint.js +5 -5
  591. package/fesm2015/taiga-ui-core-directives-pointer-hint.js.map +1 -1
  592. package/fesm2015/taiga-ui-core-directives-scroll-into-view.js +1 -1
  593. package/fesm2015/taiga-ui-core-directives-scroll-into-view.js.map +1 -1
  594. package/fesm2015/taiga-ui-core-directives-table-mode.js +2 -2
  595. package/fesm2015/taiga-ui-core-directives-table-mode.js.map +1 -1
  596. package/fesm2015/taiga-ui-core-directives-textfield-controller.js +35 -35
  597. package/fesm2015/taiga-ui-core-directives-textfield-controller.js.map +1 -1
  598. package/fesm2015/taiga-ui-core-directives-wrapper.js +9 -9
  599. package/fesm2015/taiga-ui-core-directives-wrapper.js.map +1 -1
  600. package/fesm2015/taiga-ui-core-enums.js.map +1 -1
  601. package/fesm2015/taiga-ui-core-internal-primitive-year-month-pagination.js +1 -1
  602. package/fesm2015/taiga-ui-core-internal-primitive-year-month-pagination.js.map +1 -1
  603. package/fesm2015/taiga-ui-core-internal-svg-defs-host.js +1 -1
  604. package/fesm2015/taiga-ui-core-internal-svg-defs-host.js.map +1 -1
  605. package/fesm2015/taiga-ui-core-observables.js +2 -2
  606. package/fesm2015/taiga-ui-core-observables.js.map +1 -1
  607. package/fesm2015/taiga-ui-core-pipes-calendar-sheet.js +1 -1
  608. package/fesm2015/taiga-ui-core-pipes-calendar-sheet.js.map +1 -1
  609. package/fesm2015/taiga-ui-core-pipes-format-number.js +1 -1
  610. package/fesm2015/taiga-ui-core-pipes-format-number.js.map +1 -1
  611. package/fesm2015/taiga-ui-core-pipes-format-phone.js +3 -3
  612. package/fesm2015/taiga-ui-core-pipes-format-phone.js.map +1 -1
  613. package/fesm2015/taiga-ui-core-pipes-month.js +1 -1
  614. package/fesm2015/taiga-ui-core-pipes-month.js.map +1 -1
  615. package/fesm2015/taiga-ui-core-pipes-pluralize.js +1 -1
  616. package/fesm2015/taiga-ui-core-pipes-pluralize.js.map +1 -1
  617. package/fesm2015/taiga-ui-core-providers.js +2 -2
  618. package/fesm2015/taiga-ui-core-providers.js.map +1 -1
  619. package/fesm2015/taiga-ui-core-services.js +7 -7
  620. package/fesm2015/taiga-ui-core-services.js.map +1 -1
  621. package/fesm2015/taiga-ui-core-tokens.js +40 -40
  622. package/fesm2015/taiga-ui-core-tokens.js.map +1 -1
  623. package/fesm2015/taiga-ui-core-utils-dom.js +16 -16
  624. package/fesm2015/taiga-ui-core-utils-dom.js.map +1 -1
  625. package/fesm2015/taiga-ui-core-utils-format.js +17 -17
  626. package/fesm2015/taiga-ui-core-utils-format.js.map +1 -1
  627. package/fesm2015/taiga-ui-core-utils-mask.js +27 -27
  628. package/fesm2015/taiga-ui-core-utils-mask.js.map +1 -1
  629. package/fesm2015/taiga-ui-core-utils-miscellaneous.js +12 -12
  630. package/fesm2015/taiga-ui-core-utils-miscellaneous.js.map +1 -1
  631. package/fesm2015/taiga-ui-core-utils-polyfills.js +4 -4
  632. package/fesm2015/taiga-ui-core-utils-polyfills.js.map +1 -1
  633. package/fesm5/taiga-ui-core-abstract.js +15 -15
  634. package/fesm5/taiga-ui-core-abstract.js.map +1 -1
  635. package/fesm5/taiga-ui-core-animations.js +138 -138
  636. package/fesm5/taiga-ui-core-animations.js.map +1 -1
  637. package/fesm5/taiga-ui-core-components-alert.js +11 -11
  638. package/fesm5/taiga-ui-core-components-alert.js.map +1 -1
  639. package/fesm5/taiga-ui-core-components-button.js +16 -16
  640. package/fesm5/taiga-ui-core-components-button.js.map +1 -1
  641. package/fesm5/taiga-ui-core-components-calendar.js +1 -1
  642. package/fesm5/taiga-ui-core-components-calendar.js.map +1 -1
  643. package/fesm5/taiga-ui-core-components-data-list.js +34 -34
  644. package/fesm5/taiga-ui-core-components-data-list.js.map +1 -1
  645. package/fesm5/taiga-ui-core-components-dialog.js +24 -24
  646. package/fesm5/taiga-ui-core-components-dialog.js.map +1 -1
  647. package/fesm5/taiga-ui-core-components-dropdown-box.js +38 -38
  648. package/fesm5/taiga-ui-core-components-dropdown-box.js.map +1 -1
  649. package/fesm5/taiga-ui-core-components-error.js +4 -4
  650. package/fesm5/taiga-ui-core-components-error.js.map +1 -1
  651. package/fesm5/taiga-ui-core-components-expand.js +12 -12
  652. package/fesm5/taiga-ui-core-components-expand.js.map +1 -1
  653. package/fesm5/taiga-ui-core-components-group.js +19 -19
  654. package/fesm5/taiga-ui-core-components-group.js.map +1 -1
  655. package/fesm5/taiga-ui-core-components-hints-host.js +47 -47
  656. package/fesm5/taiga-ui-core-components-hints-host.js.map +1 -1
  657. package/fesm5/taiga-ui-core-components-hosted-dropdown.js +10 -10
  658. package/fesm5/taiga-ui-core-components-hosted-dropdown.js.map +1 -1
  659. package/fesm5/taiga-ui-core-components-label.js +4 -4
  660. package/fesm5/taiga-ui-core-components-label.js.map +1 -1
  661. package/fesm5/taiga-ui-core-components-link.js +11 -11
  662. package/fesm5/taiga-ui-core-components-link.js.map +1 -1
  663. package/fesm5/taiga-ui-core-components-loader.js +4 -4
  664. package/fesm5/taiga-ui-core-components-loader.js.map +1 -1
  665. package/fesm5/taiga-ui-core-components-notification.js +8 -8
  666. package/fesm5/taiga-ui-core-components-notification.js.map +1 -1
  667. package/fesm5/taiga-ui-core-components-primitive-calendar.js +2 -2
  668. package/fesm5/taiga-ui-core-components-primitive-calendar.js.map +1 -1
  669. package/fesm5/taiga-ui-core-components-primitive-checkbox.js +7 -7
  670. package/fesm5/taiga-ui-core-components-primitive-checkbox.js.map +1 -1
  671. package/fesm5/taiga-ui-core-components-primitive-spin-button.js +2 -2
  672. package/fesm5/taiga-ui-core-components-primitive-spin-button.js.map +1 -1
  673. package/fesm5/taiga-ui-core-components-primitive-textfield.js +54 -54
  674. package/fesm5/taiga-ui-core-components-primitive-textfield.js.map +1 -1
  675. package/fesm5/taiga-ui-core-components-primitive-year-picker.js +2 -2
  676. package/fesm5/taiga-ui-core-components-primitive-year-picker.js.map +1 -1
  677. package/fesm5/taiga-ui-core-components-root.js +4 -4
  678. package/fesm5/taiga-ui-core-components-root.js.map +1 -1
  679. package/fesm5/taiga-ui-core-components-scroll-controls.js +26 -26
  680. package/fesm5/taiga-ui-core-components-scroll-controls.js.map +1 -1
  681. package/fesm5/taiga-ui-core-components-scrollbar.js +8 -8
  682. package/fesm5/taiga-ui-core-components-scrollbar.js.map +1 -1
  683. package/fesm5/taiga-ui-core-components-svg.js +15 -15
  684. package/fesm5/taiga-ui-core-components-svg.js.map +1 -1
  685. package/fesm5/taiga-ui-core-components-theme-night.js +2 -2
  686. package/fesm5/taiga-ui-core-components-theme-night.js.map +1 -1
  687. package/fesm5/taiga-ui-core-components-tooltip.js +7 -7
  688. package/fesm5/taiga-ui-core-components-tooltip.js.map +1 -1
  689. package/fesm5/taiga-ui-core-constants.js +17 -17
  690. package/fesm5/taiga-ui-core-constants.js.map +1 -1
  691. package/fesm5/taiga-ui-core-directives-color.js +6 -6
  692. package/fesm5/taiga-ui-core-directives-color.js.map +1 -1
  693. package/fesm5/taiga-ui-core-directives-described-by.js +8 -8
  694. package/fesm5/taiga-ui-core-directives-described-by.js.map +1 -1
  695. package/fesm5/taiga-ui-core-directives-dropdown-controller.js +11 -11
  696. package/fesm5/taiga-ui-core-directives-dropdown-controller.js.map +1 -1
  697. package/fesm5/taiga-ui-core-directives-dropdown.js +2 -2
  698. package/fesm5/taiga-ui-core-directives-dropdown.js.map +1 -1
  699. package/fesm5/taiga-ui-core-directives-hint-controller.js +8 -8
  700. package/fesm5/taiga-ui-core-directives-hint-controller.js.map +1 -1
  701. package/fesm5/taiga-ui-core-directives-hint.js +7 -7
  702. package/fesm5/taiga-ui-core-directives-hint.js.map +1 -1
  703. package/fesm5/taiga-ui-core-directives-manual-hint.js +4 -4
  704. package/fesm5/taiga-ui-core-directives-manual-hint.js.map +1 -1
  705. package/fesm5/taiga-ui-core-directives-mask-accessor.js +1 -1
  706. package/fesm5/taiga-ui-core-directives-mask-accessor.js.map +1 -1
  707. package/fesm5/taiga-ui-core-directives-mode.js +2 -2
  708. package/fesm5/taiga-ui-core-directives-mode.js.map +1 -1
  709. package/fesm5/taiga-ui-core-directives-pointer-hint.js +5 -5
  710. package/fesm5/taiga-ui-core-directives-pointer-hint.js.map +1 -1
  711. package/fesm5/taiga-ui-core-directives-scroll-into-view.js +1 -1
  712. package/fesm5/taiga-ui-core-directives-scroll-into-view.js.map +1 -1
  713. package/fesm5/taiga-ui-core-directives-table-mode.js +2 -2
  714. package/fesm5/taiga-ui-core-directives-table-mode.js.map +1 -1
  715. package/fesm5/taiga-ui-core-directives-textfield-controller.js +35 -35
  716. package/fesm5/taiga-ui-core-directives-textfield-controller.js.map +1 -1
  717. package/fesm5/taiga-ui-core-directives-wrapper.js +9 -9
  718. package/fesm5/taiga-ui-core-directives-wrapper.js.map +1 -1
  719. package/fesm5/taiga-ui-core-enums.js.map +1 -1
  720. package/fesm5/taiga-ui-core-internal-primitive-year-month-pagination.js +1 -1
  721. package/fesm5/taiga-ui-core-internal-primitive-year-month-pagination.js.map +1 -1
  722. package/fesm5/taiga-ui-core-internal-svg-defs-host.js +1 -1
  723. package/fesm5/taiga-ui-core-internal-svg-defs-host.js.map +1 -1
  724. package/fesm5/taiga-ui-core-observables.js +2 -2
  725. package/fesm5/taiga-ui-core-observables.js.map +1 -1
  726. package/fesm5/taiga-ui-core-pipes-calendar-sheet.js +1 -1
  727. package/fesm5/taiga-ui-core-pipes-calendar-sheet.js.map +1 -1
  728. package/fesm5/taiga-ui-core-pipes-format-number.js +1 -1
  729. package/fesm5/taiga-ui-core-pipes-format-number.js.map +1 -1
  730. package/fesm5/taiga-ui-core-pipes-format-phone.js +3 -3
  731. package/fesm5/taiga-ui-core-pipes-format-phone.js.map +1 -1
  732. package/fesm5/taiga-ui-core-pipes-month.js +1 -1
  733. package/fesm5/taiga-ui-core-pipes-month.js.map +1 -1
  734. package/fesm5/taiga-ui-core-pipes-pluralize.js +1 -1
  735. package/fesm5/taiga-ui-core-pipes-pluralize.js.map +1 -1
  736. package/fesm5/taiga-ui-core-providers.js +2 -2
  737. package/fesm5/taiga-ui-core-providers.js.map +1 -1
  738. package/fesm5/taiga-ui-core-services.js +7 -7
  739. package/fesm5/taiga-ui-core-services.js.map +1 -1
  740. package/fesm5/taiga-ui-core-tokens.js +40 -40
  741. package/fesm5/taiga-ui-core-tokens.js.map +1 -1
  742. package/fesm5/taiga-ui-core-utils-dom.js +16 -16
  743. package/fesm5/taiga-ui-core-utils-dom.js.map +1 -1
  744. package/fesm5/taiga-ui-core-utils-format.js +17 -17
  745. package/fesm5/taiga-ui-core-utils-format.js.map +1 -1
  746. package/fesm5/taiga-ui-core-utils-mask.js +28 -28
  747. package/fesm5/taiga-ui-core-utils-mask.js.map +1 -1
  748. package/fesm5/taiga-ui-core-utils-miscellaneous.js +12 -12
  749. package/fesm5/taiga-ui-core-utils-miscellaneous.js.map +1 -1
  750. package/fesm5/taiga-ui-core-utils-polyfills.js +4 -4
  751. package/fesm5/taiga-ui-core-utils-polyfills.js.map +1 -1
  752. package/package.json +4 -4
@@ -5,14 +5,14 @@ import { otherDecimalSymbol } from '@taiga-ui/core/utils/format';
5
5
  /**
6
6
  * Used to finish a number with zeros to a given precision
7
7
  */
8
- function tuiCreateAutoCorrectedNumberPipe(decimalLimit = 0, decimalSymbol = ',', thousandSymbol = CHAR_NO_BREAK_SPACE, nativeInput, allowNegative, isIOS = false) {
8
+ function tuiCreateAutoCorrectedNumberPipe(decimalLimit = 0, decimalSymbol = `,`, thousandSymbol = CHAR_NO_BREAK_SPACE, nativeInput, allowNegative, isIOS = false) {
9
9
  tuiAssert.assert(Number.isInteger(decimalLimit));
10
10
  tuiAssert.assert(decimalLimit >= 0);
11
11
  // Guess for which browser I need this :)
12
12
  let previousCaret = -1;
13
13
  const unlucky = (!!nativeInput && isSafari(nativeInput)) || isIOS;
14
14
  if (nativeInput && unlucky) {
15
- nativeInput.addEventListener('beforeinput', () => {
15
+ nativeInput.addEventListener(`beforeinput`, () => {
16
16
  previousCaret = nativeInput.selectionStart || 0;
17
17
  });
18
18
  }
@@ -38,24 +38,24 @@ function tuiCreateAutoCorrectedNumberPipe(decimalLimit = 0, decimalSymbol = ',',
38
38
  nativeInput.setSelectionRange(realCaretPosition, realCaretPosition);
39
39
  });
40
40
  }
41
- if (conformedValue === '' || !decimalLimit) {
41
+ if (conformedValue === `` || !decimalLimit) {
42
42
  return { value: conformedValue };
43
43
  }
44
44
  const withDecimalSymbol = addDecimalSymbolIfNeeded(conformedValue, decimalSymbol);
45
45
  const decimalPart = withDecimalSymbol.split(decimalSymbol)[1];
46
46
  const zeroPaddingSize = decimalLimit - decimalPart.length;
47
47
  return {
48
- value: withDecimalSymbol + '0'.repeat(zeroPaddingSize),
48
+ value: withDecimalSymbol + `0`.repeat(zeroPaddingSize),
49
49
  };
50
50
  };
51
51
  }
52
- function addDecimalSymbolIfNeeded(value, decimalSymbol = ',') {
52
+ function addDecimalSymbolIfNeeded(value, decimalSymbol = `,`) {
53
53
  return !value.includes(decimalSymbol) ? value + decimalSymbol : value;
54
54
  }
55
- function calculateSafariCaret(previousValue = '', current, previousCaret, decimalSymbol = ',') {
55
+ function calculateSafariCaret(previousValue = ``, current, previousCaret, decimalSymbol = `,`) {
56
56
  const tailRegex = new RegExp(`${decimalSymbol}.+`);
57
- const previousWithoutTail = previousValue.replace(tailRegex, '');
58
- const currentWithoutTail = current.replace(tailRegex, '');
57
+ const previousWithoutTail = previousValue.replace(tailRegex, ``);
58
+ const currentWithoutTail = current.replace(tailRegex, ``);
59
59
  const pasteOrCutOperation = Math.abs(previousWithoutTail.length - currentWithoutTail.length) > 2;
60
60
  if (pasteOrCutOperation) {
61
61
  return current.length;
@@ -77,12 +77,12 @@ function calculateSafariCaret(previousValue = '', current, previousCaret, decima
77
77
  function calculateChangedTailIndex(previous, current) {
78
78
  for (let i = 0; i < current.length; i++) {
79
79
  if (previous[i] !== current[i]) {
80
- return current[i] === '0' ? i : i + 1;
80
+ return current[i] === `0` ? i : i + 1;
81
81
  }
82
82
  }
83
83
  return current.length;
84
84
  }
85
- function calculateCaretGap(previousValue = '', current, thousandSymbol) {
85
+ function calculateCaretGap(previousValue = ``, current, thousandSymbol) {
86
86
  const pasteOrCutOperation = Math.abs(previousValue.length - current.length) > 2;
87
87
  if (pasteOrCutOperation) {
88
88
  return 0;
@@ -92,10 +92,10 @@ function calculateCaretGap(previousValue = '', current, thousandSymbol) {
92
92
  return nowSpaces - wereSpaces;
93
93
  }
94
94
 
95
- const ASSERTION = 'Correction function must return single char or null';
95
+ const ASSERTION = `Correction function must return single char or null`;
96
96
  function tuiCreateCorrectionMask(allowed, correctionHandler) {
97
97
  return rawValue => {
98
- const mask = rawValue.split('').reduce((result, char, index) => {
98
+ const mask = rawValue.split(``).reduce((result, char, index) => {
99
99
  const corrected = correctionHandler(char, index);
100
100
  tuiAssert.assert(corrected === null || corrected.length === 1, ASSERTION);
101
101
  if (!allowed.test(char) && !corrected) {
@@ -121,19 +121,19 @@ const NON_ZERO_DIGIT = /[1-9]/;
121
121
  /**
122
122
  * Adaptation for {@link https://github.com/text-mask/text-mask/tree/master/addons#createnumbermask `createNumberMask`}
123
123
  */
124
- function tuiCreateNumberMask({ allowDecimal = false, decimalSymbol = ',', thousandSymbol = CHAR_NO_BREAK_SPACE, autoCorrectDecimalSymbol = true, decimalLimit = 2, requireDecimal = false, allowNegative = false, integerLimit = 0, } = {}) {
124
+ function tuiCreateNumberMask({ allowDecimal = false, decimalSymbol = `,`, thousandSymbol = CHAR_NO_BREAK_SPACE, autoCorrectDecimalSymbol = true, decimalLimit = 2, requireDecimal = false, allowNegative = false, integerLimit = 0, } = {}) {
125
125
  tuiAssert.assert(Number.isInteger(decimalLimit));
126
126
  tuiAssert.assert(decimalLimit >= 0);
127
127
  tuiAssert.assert(Number.isInteger(integerLimit));
128
128
  tuiAssert.assert(integerLimit >= 0);
129
129
  return (rawValue, { previousConformedValue }) => {
130
130
  if (previousConformedValue && requireDecimal) {
131
- const conformedWithoutSeparator = rawValue.split(thousandSymbol).join('');
131
+ const conformedWithoutSeparator = rawValue.split(thousandSymbol).join(``);
132
132
  const previousConformedValueWithoutDecimalSymbolAndSeparator = previousConformedValue
133
133
  .split(thousandSymbol)
134
- .join('')
134
+ .join(``)
135
135
  .split(decimalSymbol)
136
- .join('');
136
+ .join(``);
137
137
  // Forbid removal of decimal separator if decimal part is required
138
138
  if (conformedWithoutSeparator ===
139
139
  previousConformedValueWithoutDecimalSymbolAndSeparator) {
@@ -144,7 +144,7 @@ function tuiCreateNumberMask({ allowDecimal = false, decimalSymbol = ',', thousa
144
144
  allowNegative;
145
145
  if (isDecimalSymbol(rawValue, decimalSymbol, autoCorrectDecimalSymbol) &&
146
146
  allowDecimal) {
147
- return ['0', decimalSymbol, TUI_DIGIT_REGEXP];
147
+ return [`0`, decimalSymbol, TUI_DIGIT_REGEXP];
148
148
  }
149
149
  if (isNegative) {
150
150
  rawValue = rawValue.slice(1);
@@ -152,21 +152,21 @@ function tuiCreateNumberMask({ allowDecimal = false, decimalSymbol = ',', thousa
152
152
  const decimalIndex = getDecimalSymbolIndex(rawValue, decimalSymbol, autoCorrectDecimalSymbol);
153
153
  const hasDecimal = decimalIndex !== -1;
154
154
  const integer = hasDecimal ? rawValue.slice(0, decimalIndex) : rawValue;
155
- const thousandSeparators = integer.match(new RegExp(thousandSymbol, 'g')) || [];
155
+ const thousandSeparators = integer.match(new RegExp(thousandSymbol, `g`)) || [];
156
156
  const integerCapped = integerLimit
157
157
  ? integer.slice(0, integerLimit + thousandSeparators.length)
158
158
  : integer;
159
- const integerCappedClean = integerCapped.replace(TUI_NON_DIGITS_REGEXP, '');
160
- const [leadingZerosMatch] = integerCappedClean.match(TUI_LEADING_ZEROES_REGEXP) || [''];
159
+ const integerCappedClean = integerCapped.replace(TUI_NON_DIGITS_REGEXP, ``);
160
+ const [leadingZerosMatch] = integerCappedClean.match(TUI_LEADING_ZEROES_REGEXP) || [``];
161
161
  const leadingZerosAmount = leadingZerosMatch.length;
162
162
  const integerCappedZerosClean = integerCappedClean
163
- .replace(/^0+(?!\.|$)/, '')
163
+ .replace(/^0+(?!\.|$)/, ``)
164
164
  .trim();
165
165
  const withSeparator = addThousandsSeparator(integerCappedZerosClean, thousandSymbol);
166
166
  const mask = convertToMask(withSeparator);
167
167
  if ((hasDecimal && allowDecimal) || requireDecimal) {
168
168
  const fraction = hasDecimal
169
- ? convertToMask(rawValue.slice(decimalIndex + 1).replace(TUI_NON_DIGITS_REGEXP, ''))
169
+ ? convertToMask(rawValue.slice(decimalIndex + 1).replace(TUI_NON_DIGITS_REGEXP, ``))
170
170
  : [];
171
171
  const fractionCapped = decimalLimit
172
172
  ? fraction.slice(0, decimalLimit)
@@ -179,7 +179,7 @@ function tuiCreateNumberMask({ allowDecimal = false, decimalSymbol = ',', thousa
179
179
  mask.push(TUI_DIGIT_REGEXP);
180
180
  }
181
181
  }
182
- const isOnlyZeroDigit = mask.length === 1 && integerCappedZerosClean === '0';
182
+ const isOnlyZeroDigit = mask.length === 1 && integerCappedZerosClean === `0`;
183
183
  if (isNegative) {
184
184
  if (mask.length === 0) {
185
185
  mask.push(TUI_DIGIT_REGEXP);
@@ -223,7 +223,7 @@ function isDecimalSymbol(str, decimalSymbol, autoCorrectDecimalSymbol) {
223
223
  }
224
224
  function convertToMask(strNumber) {
225
225
  return strNumber
226
- .split('')
226
+ .split(``)
227
227
  .map(char => (TUI_DIGIT_REGEXP.test(char) ? TUI_DIGIT_REGEXP : char));
228
228
  }
229
229
  function addThousandsSeparator(strNumber, thousandSymbol) {
@@ -244,9 +244,9 @@ function tuiEnableAutoCorrectDecimalSymbol({ thousandSeparator, }) {
244
244
  // eslint-disable-next-line @typescript-eslint/naming-convention
245
245
  function maskedMoneyValueIsEmpty(value) {
246
246
  switch (value) {
247
- case '':
247
+ case ``:
248
248
  case CHAR_HYPHEN:
249
- case ',':
249
+ case `,`:
250
250
  case `${CHAR_HYPHEN},`:
251
251
  return true;
252
252
  default:
@@ -260,7 +260,7 @@ const tuiMaskedMoneyValueIsEmpty = maskedMoneyValueIsEmpty;
260
260
  */
261
261
  // eslint-disable-next-line @typescript-eslint/naming-convention
262
262
  function maskedNumberStringToNumber(value, decimalsSymbol, thousandSymbol) {
263
- return parseFloat(value.split(thousandSymbol).join('').split(decimalsSymbol).join('.'));
263
+ return parseFloat(value.split(thousandSymbol).join(``).split(decimalsSymbol).join(`.`));
264
264
  }
265
265
  const tuiMaskedNumberStringToNumber = maskedNumberStringToNumber;
266
266
 
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-core-utils-mask.js","sources":["ng://@taiga-ui/core/utils/mask/create-auto-corrected-money-pipe.ts","ng://@taiga-ui/core/utils/mask/create-correction-mask.ts","ng://@taiga-ui/core/utils/mask/create-number-mask.ts","ng://@taiga-ui/core/utils/mask/enable-auto-correct-decimal-symbol.ts","ng://@taiga-ui/core/utils/mask/masked-money-value-is-empty.ts","ng://@taiga-ui/core/utils/mask/masked-number-string-to-number.ts","ng://@taiga-ui/core/utils/mask/taiga-ui-core-utils-mask.ts"],"sourcesContent":["import {\n CHAR_HYPHEN,\n CHAR_NO_BREAK_SPACE,\n getDocumentOrShadowRoot,\n isNativeFocused,\n isSafari,\n tuiAssert,\n} from '@taiga-ui/cdk';\nimport {TuiTextMaskPipeHandler} from '@taiga-ui/core/mask';\nimport {TuiDecimalSymbol} from '@taiga-ui/core/types';\n\n/**\n * Used to finish a number with zeros to a given precision\n */\nexport function tuiCreateAutoCorrectedNumberPipe(\n decimalLimit: number = 0,\n decimalSymbol: TuiDecimalSymbol = ',',\n thousandSymbol: string = CHAR_NO_BREAK_SPACE,\n nativeInput?: HTMLInputElement | null,\n allowNegative?: boolean,\n isIOS = false,\n): TuiTextMaskPipeHandler {\n tuiAssert.assert(Number.isInteger(decimalLimit));\n tuiAssert.assert(decimalLimit >= 0);\n\n // Guess for which browser I need this :)\n let previousCaret = -1;\n const unlucky = (!!nativeInput && isSafari(nativeInput)) || isIOS;\n\n if (nativeInput && unlucky) {\n nativeInput.addEventListener('beforeinput', () => {\n previousCaret = nativeInput.selectionStart || 0;\n });\n }\n\n return (conformedValue, config) => {\n // Removing everything by selecting and pressing '-'\n if (!conformedValue && config.rawValue === CHAR_HYPHEN && allowNegative) {\n return CHAR_HYPHEN;\n }\n\n // remove these hacks after text mask library has changed\n if (nativeInput && unlucky && isNativeFocused(nativeInput)) {\n const caret = calculateSafariCaret(\n config.previousConformedValue,\n conformedValue,\n previousCaret,\n );\n\n setTimeout(() => {\n nativeInput.setSelectionRange(caret, caret);\n });\n }\n\n if (\n nativeInput &&\n nativeInput.ownerDocument !== getDocumentOrShadowRoot(nativeInput) &&\n isNativeFocused(nativeInput) &&\n config.currentCaretPosition\n ) {\n const realCaretPosition =\n config.currentCaretPosition +\n calculateCaretGap(\n config.previousConformedValue,\n conformedValue,\n thousandSymbol,\n );\n\n setTimeout(() => {\n nativeInput.setSelectionRange(realCaretPosition, realCaretPosition);\n });\n }\n\n if (conformedValue === '' || !decimalLimit) {\n return {value: conformedValue};\n }\n\n const withDecimalSymbol = addDecimalSymbolIfNeeded(conformedValue, decimalSymbol);\n const decimalPart = withDecimalSymbol.split(decimalSymbol)[1];\n const zeroPaddingSize = decimalLimit - decimalPart.length;\n\n return {\n value: withDecimalSymbol + '0'.repeat(zeroPaddingSize),\n };\n };\n}\n\nfunction addDecimalSymbolIfNeeded(\n value: string,\n decimalSymbol: TuiDecimalSymbol = ',',\n): string {\n return !value.includes(decimalSymbol) ? value + decimalSymbol : value;\n}\n\nfunction calculateSafariCaret(\n previousValue: string = '',\n current: string,\n previousCaret: number,\n decimalSymbol: string = ',',\n): number {\n const tailRegex = new RegExp(`${decimalSymbol}.+`);\n const previousWithoutTail = previousValue.replace(tailRegex, '');\n const currentWithoutTail = current.replace(tailRegex, '');\n\n const pasteOrCutOperation =\n Math.abs(previousWithoutTail.length - currentWithoutTail.length) > 2;\n\n if (pasteOrCutOperation) {\n return current.length;\n }\n\n if (previousValue.length === current.length) {\n if (previousValue.indexOf(decimalSymbol) <= previousCaret) {\n return calculateChangedTailIndex(previousValue, current);\n }\n\n return previousWithoutTail === currentWithoutTail\n ? previousCaret - 1\n : previousCaret + 1;\n }\n\n if (previousValue.length === 0) {\n return 1;\n }\n\n const changeLength = current.length - previousValue.length;\n\n return previousCaret + changeLength;\n}\n\nfunction calculateChangedTailIndex(previous: string, current: string): number {\n for (let i = 0; i < current.length; i++) {\n if (previous[i] !== current[i]) {\n return current[i] === '0' ? i : i + 1;\n }\n }\n\n return current.length;\n}\n\nfunction calculateCaretGap(\n previousValue: string = '',\n current: string,\n thousandSymbol: string,\n): number {\n const pasteOrCutOperation = Math.abs(previousValue.length - current.length) > 2;\n\n if (pasteOrCutOperation) {\n return 0;\n }\n\n const wereSpaces = previousValue.split(thousandSymbol).length;\n const nowSpaces = current.split(thousandSymbol).length;\n\n return nowSpaces - wereSpaces;\n}\n","import {tuiAssert} from '@taiga-ui/cdk';\nimport {MASK_CARET_TRAP} from '@taiga-ui/core/constants';\nimport {\n TuiTextMaskCorrectionHandler,\n TuiTextMaskList,\n TuiTextMaskListHandler,\n} from '@taiga-ui/core/mask';\n\nconst ASSERTION = 'Correction function must return single char or null';\n\nexport function tuiCreateCorrectionMask(\n allowed: RegExp,\n correctionHandler: TuiTextMaskCorrectionHandler,\n): TuiTextMaskListHandler {\n return rawValue => {\n const mask = rawValue.split('').reduce<TuiTextMaskList>((result, char, index) => {\n const corrected = correctionHandler(char, index);\n\n tuiAssert.assert(corrected === null || corrected.length === 1, ASSERTION);\n\n if (!allowed.test(char) && !corrected) {\n return result;\n }\n\n if (allowed.test(char)) {\n return [...result, allowed];\n }\n\n if (corrected) {\n return [...result, corrected, MASK_CARET_TRAP];\n }\n\n return result;\n }, []);\n const lastIndex = mask.lastIndexOf(MASK_CARET_TRAP);\n const filtered = mask.filter(\n (item, index) => item !== MASK_CARET_TRAP || index === lastIndex,\n );\n\n return filtered.some(item => item !== allowed)\n ? [...filtered, allowed]\n : filtered;\n };\n}\n","import {CHAR_EN_DASH, CHAR_HYPHEN, CHAR_NO_BREAK_SPACE, tuiAssert} from '@taiga-ui/cdk';\nimport {\n MASK_CARET_TRAP,\n TUI_DIGIT_REGEXP,\n TUI_LEADING_ZEROES_REGEXP,\n TUI_NON_DIGITS_REGEXP,\n} from '@taiga-ui/core/constants';\nimport {TuiNumberMaskOptions, TuiTextMaskListHandler} from '@taiga-ui/core/mask';\nimport {TuiDecimalSymbol} from '@taiga-ui/core/types';\nimport {otherDecimalSymbol} from '@taiga-ui/core/utils/format';\n\nconst NON_ZERO_DIGIT = /[1-9]/;\n\n/**\n * Adaptation for {@link https://github.com/text-mask/text-mask/tree/master/addons#createnumbermask `createNumberMask`}\n */\nexport function tuiCreateNumberMask({\n allowDecimal = false,\n decimalSymbol = ',',\n thousandSymbol = CHAR_NO_BREAK_SPACE,\n autoCorrectDecimalSymbol = true,\n decimalLimit = 2,\n requireDecimal = false,\n allowNegative = false,\n integerLimit = 0,\n}: TuiNumberMaskOptions = {}): TuiTextMaskListHandler {\n tuiAssert.assert(Number.isInteger(decimalLimit));\n tuiAssert.assert(decimalLimit >= 0);\n tuiAssert.assert(Number.isInteger(integerLimit));\n tuiAssert.assert(integerLimit >= 0);\n\n return (rawValue, {previousConformedValue}) => {\n if (previousConformedValue && requireDecimal) {\n const conformedWithoutSeparator = rawValue.split(thousandSymbol).join('');\n const previousConformedValueWithoutDecimalSymbolAndSeparator =\n previousConformedValue\n .split(thousandSymbol)\n .join('')\n .split(decimalSymbol)\n .join('');\n\n // Forbid removal of decimal separator if decimal part is required\n if (\n conformedWithoutSeparator ===\n previousConformedValueWithoutDecimalSymbolAndSeparator\n ) {\n rawValue = previousConformedValue;\n }\n }\n\n const isNegative =\n (rawValue[0] === CHAR_HYPHEN || rawValue[0] === CHAR_EN_DASH) &&\n allowNegative;\n\n if (\n isDecimalSymbol(rawValue, decimalSymbol, autoCorrectDecimalSymbol) &&\n allowDecimal\n ) {\n return ['0', decimalSymbol, TUI_DIGIT_REGEXP];\n }\n\n if (isNegative) {\n rawValue = rawValue.slice(1);\n }\n\n const decimalIndex = getDecimalSymbolIndex(\n rawValue,\n decimalSymbol,\n autoCorrectDecimalSymbol,\n );\n const hasDecimal = decimalIndex !== -1;\n const integer = hasDecimal ? rawValue.slice(0, decimalIndex) : rawValue;\n const thousandSeparators = integer.match(new RegExp(thousandSymbol, 'g')) || [];\n const integerCapped = integerLimit\n ? integer.slice(0, integerLimit + thousandSeparators.length)\n : integer;\n const integerCappedClean = integerCapped.replace(TUI_NON_DIGITS_REGEXP, '');\n const [leadingZerosMatch] = integerCappedClean.match(\n TUI_LEADING_ZEROES_REGEXP,\n ) || [''];\n const leadingZerosAmount = leadingZerosMatch.length;\n const integerCappedZerosClean = integerCappedClean\n .replace(/^0+(?!\\.|$)/, '')\n .trim();\n const withSeparator = addThousandsSeparator(\n integerCappedZerosClean,\n thousandSymbol,\n );\n const mask = convertToMask(withSeparator);\n\n if ((hasDecimal && allowDecimal) || requireDecimal) {\n const fraction = hasDecimal\n ? convertToMask(\n rawValue.slice(decimalIndex + 1).replace(TUI_NON_DIGITS_REGEXP, ''),\n )\n : [];\n const fractionCapped = decimalLimit\n ? fraction.slice(0, decimalLimit)\n : fraction;\n\n if (rawValue[decimalIndex] !== otherDecimalSymbol(decimalSymbol)) {\n mask.push(MASK_CARET_TRAP);\n }\n\n mask.push(decimalSymbol, MASK_CARET_TRAP, ...fractionCapped);\n\n for (let i = 0; i < decimalLimit - fractionCapped.length; i++) {\n mask.push(TUI_DIGIT_REGEXP);\n }\n }\n\n const isOnlyZeroDigit = mask.length === 1 && integerCappedZerosClean === '0';\n\n if (isNegative) {\n if (mask.length === 0) {\n mask.push(TUI_DIGIT_REGEXP);\n }\n\n mask.unshift(CHAR_HYPHEN);\n }\n\n return preventLeadingZeroes(mask, isOnlyZeroDigit, leadingZerosAmount);\n };\n}\n\nfunction preventLeadingZeroes(\n mask: Array<string | RegExp>,\n isOnlyZeroDigit: boolean = false,\n leadingZerosAmount: number = 0,\n): Array<string | RegExp> {\n if (isOnlyZeroDigit || leadingZerosAmount === 0) {\n return mask;\n }\n\n const firstDigitIndex = mask.indexOf(TUI_DIGIT_REGEXP);\n\n if (firstDigitIndex === -1) {\n return mask;\n }\n\n const secondMaskDigit = mask[firstDigitIndex + 1];\n const isCaretTrap = secondMaskDigit === MASK_CARET_TRAP;\n\n if (isCaretTrap && leadingZerosAmount === 1) {\n return mask;\n } else if (isCaretTrap) {\n mask.unshift(NON_ZERO_DIGIT);\n\n return mask;\n }\n\n mask[firstDigitIndex] = NON_ZERO_DIGIT;\n\n return mask;\n}\n\nfunction getDecimalSymbolIndex(\n str: string,\n decimalSymbol: TuiDecimalSymbol,\n autoCorrectDecimalSymbol: boolean,\n): number {\n if (!autoCorrectDecimalSymbol) {\n return str.lastIndexOf(decimalSymbol);\n }\n\n return Math.max(\n str.lastIndexOf(decimalSymbol),\n str.lastIndexOf(otherDecimalSymbol(decimalSymbol)),\n );\n}\n\nfunction isDecimalSymbol(\n str: string,\n decimalSymbol: TuiDecimalSymbol,\n autoCorrectDecimalSymbol: boolean,\n): boolean {\n if (autoCorrectDecimalSymbol) {\n return /^[,.]$/.test(str);\n }\n\n return str === decimalSymbol;\n}\n\nfunction convertToMask(strNumber: string): Array<string | RegExp> {\n return strNumber\n .split('')\n .map(char => (TUI_DIGIT_REGEXP.test(char) ? TUI_DIGIT_REGEXP : char));\n}\n\nfunction addThousandsSeparator(strNumber: string, thousandSymbol: string): string {\n return strNumber.length > 3\n ? // TODO: investigate to disallow potentially catastrophic exponential-time regular expressions.\n // eslint-disable-next-line unicorn/no-unsafe-regex\n strNumber.replace(/\\B(?=(\\d{3})+(?!\\d))/g, thousandSymbol)\n : strNumber;\n}\n","import {TUI_DECIMAL_SYMBOLS} from '@taiga-ui/core/constants';\nimport {TuiNumberFormatSettings} from '@taiga-ui/core/interfaces';\n\nexport function tuiEnableAutoCorrectDecimalSymbol({\n thousandSeparator,\n}: TuiNumberFormatSettings): boolean {\n return !TUI_DECIMAL_SYMBOLS.includes(thousandSeparator);\n}\n","import {CHAR_HYPHEN} from '@taiga-ui/cdk';\n\n/**\n * @deprecated: use {@link tuiMaskedMoneyValueIsEmpty} instead\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function maskedMoneyValueIsEmpty(value: string): boolean {\n switch (value) {\n case '':\n case CHAR_HYPHEN:\n case ',':\n case `${CHAR_HYPHEN},`:\n return true;\n default:\n return false;\n }\n}\n\nexport const tuiMaskedMoneyValueIsEmpty = maskedMoneyValueIsEmpty;\n","import {TuiDecimalSymbol} from '@taiga-ui/core/types';\n\n/**\n * @deprecated: use {@link tuiMaskedNumberStringToNumber} instead\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function maskedNumberStringToNumber(\n value: string,\n decimalsSymbol: TuiDecimalSymbol,\n thousandSymbol: string,\n): number {\n return parseFloat(\n value.split(thousandSymbol).join('').split(decimalsSymbol).join('.'),\n );\n}\n\nexport const tuiMaskedNumberStringToNumber = maskedNumberStringToNumber;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAWA;;;SAGgB,gCAAgC,CAC5C,eAAuB,CAAC,EACxB,gBAAkC,GAAG,EACrC,iBAAyB,mBAAmB,EAC5C,WAAqC,EACrC,aAAuB,EACvB,KAAK,GAAG,KAAK;IAEb,SAAS,CAAC,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC,CAAC;IACjD,SAAS,CAAC,MAAM,CAAC,YAAY,IAAI,CAAC,CAAC,CAAC;;IAGpC,IAAI,aAAa,GAAG,CAAC,CAAC,CAAC;IACvB,MAAM,OAAO,GAAG,CAAC,CAAC,CAAC,WAAW,IAAI,QAAQ,CAAC,WAAW,CAAC,KAAK,KAAK,CAAC;IAElE,IAAI,WAAW,IAAI,OAAO,EAAE;QACxB,WAAW,CAAC,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,CAAC,cAAc,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CACvE,CAAC;AACN,CAAC;MAEY,6BAA6B,GAAG;;AChB7C;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-core-utils-mask.js","sources":["ng://@taiga-ui/core/utils/mask/create-auto-corrected-money-pipe.ts","ng://@taiga-ui/core/utils/mask/create-correction-mask.ts","ng://@taiga-ui/core/utils/mask/create-number-mask.ts","ng://@taiga-ui/core/utils/mask/enable-auto-correct-decimal-symbol.ts","ng://@taiga-ui/core/utils/mask/masked-money-value-is-empty.ts","ng://@taiga-ui/core/utils/mask/masked-number-string-to-number.ts","ng://@taiga-ui/core/utils/mask/taiga-ui-core-utils-mask.ts"],"sourcesContent":["import {\n CHAR_HYPHEN,\n CHAR_NO_BREAK_SPACE,\n getDocumentOrShadowRoot,\n isNativeFocused,\n isSafari,\n tuiAssert,\n} from '@taiga-ui/cdk';\nimport {TuiTextMaskPipeHandler} from '@taiga-ui/core/mask';\nimport {TuiDecimalSymbol} from '@taiga-ui/core/types';\n\n/**\n * Used to finish a number with zeros to a given precision\n */\nexport function tuiCreateAutoCorrectedNumberPipe(\n decimalLimit: number = 0,\n decimalSymbol: TuiDecimalSymbol = `,`,\n thousandSymbol: string = CHAR_NO_BREAK_SPACE,\n nativeInput?: HTMLInputElement | null,\n allowNegative?: boolean,\n isIOS = false,\n): TuiTextMaskPipeHandler {\n tuiAssert.assert(Number.isInteger(decimalLimit));\n tuiAssert.assert(decimalLimit >= 0);\n\n // Guess for which browser I need this :)\n let previousCaret = -1;\n const unlucky = (!!nativeInput && isSafari(nativeInput)) || isIOS;\n\n if (nativeInput && unlucky) {\n nativeInput.addEventListener(`beforeinput`, () => {\n previousCaret = nativeInput.selectionStart || 0;\n });\n }\n\n return (conformedValue, config) => {\n // Removing everything by selecting and pressing '-'\n if (!conformedValue && config.rawValue === CHAR_HYPHEN && allowNegative) {\n return CHAR_HYPHEN;\n }\n\n // remove these hacks after text mask library has changed\n if (nativeInput && unlucky && isNativeFocused(nativeInput)) {\n const caret = calculateSafariCaret(\n config.previousConformedValue,\n conformedValue,\n previousCaret,\n );\n\n setTimeout(() => {\n nativeInput.setSelectionRange(caret, caret);\n });\n }\n\n if (\n nativeInput &&\n nativeInput.ownerDocument !== getDocumentOrShadowRoot(nativeInput) &&\n isNativeFocused(nativeInput) &&\n config.currentCaretPosition\n ) {\n const realCaretPosition =\n config.currentCaretPosition +\n calculateCaretGap(\n config.previousConformedValue,\n conformedValue,\n thousandSymbol,\n );\n\n setTimeout(() => {\n nativeInput.setSelectionRange(realCaretPosition, realCaretPosition);\n });\n }\n\n if (conformedValue === `` || !decimalLimit) {\n return {value: conformedValue};\n }\n\n const withDecimalSymbol = addDecimalSymbolIfNeeded(conformedValue, decimalSymbol);\n const decimalPart = withDecimalSymbol.split(decimalSymbol)[1];\n const zeroPaddingSize = decimalLimit - decimalPart.length;\n\n return {\n value: withDecimalSymbol + `0`.repeat(zeroPaddingSize),\n };\n };\n}\n\nfunction addDecimalSymbolIfNeeded(\n value: string,\n decimalSymbol: TuiDecimalSymbol = `,`,\n): string {\n return !value.includes(decimalSymbol) ? value + decimalSymbol : value;\n}\n\nfunction calculateSafariCaret(\n previousValue: string = ``,\n current: string,\n previousCaret: number,\n decimalSymbol: string = `,`,\n): number {\n const tailRegex = new RegExp(`${decimalSymbol}.+`);\n const previousWithoutTail = previousValue.replace(tailRegex, ``);\n const currentWithoutTail = current.replace(tailRegex, ``);\n\n const pasteOrCutOperation =\n Math.abs(previousWithoutTail.length - currentWithoutTail.length) > 2;\n\n if (pasteOrCutOperation) {\n return current.length;\n }\n\n if (previousValue.length === current.length) {\n if (previousValue.indexOf(decimalSymbol) <= previousCaret) {\n return calculateChangedTailIndex(previousValue, current);\n }\n\n return previousWithoutTail === currentWithoutTail\n ? previousCaret - 1\n : previousCaret + 1;\n }\n\n if (previousValue.length === 0) {\n return 1;\n }\n\n const changeLength = current.length - previousValue.length;\n\n return previousCaret + changeLength;\n}\n\nfunction calculateChangedTailIndex(previous: string, current: string): number {\n for (let i = 0; i < current.length; i++) {\n if (previous[i] !== current[i]) {\n return current[i] === `0` ? i : i + 1;\n }\n }\n\n return current.length;\n}\n\nfunction calculateCaretGap(\n previousValue: string = ``,\n current: string,\n thousandSymbol: string,\n): number {\n const pasteOrCutOperation = Math.abs(previousValue.length - current.length) > 2;\n\n if (pasteOrCutOperation) {\n return 0;\n }\n\n const wereSpaces = previousValue.split(thousandSymbol).length;\n const nowSpaces = current.split(thousandSymbol).length;\n\n return nowSpaces - wereSpaces;\n}\n","import {tuiAssert} from '@taiga-ui/cdk';\nimport {MASK_CARET_TRAP} from '@taiga-ui/core/constants';\nimport {\n TuiTextMaskCorrectionHandler,\n TuiTextMaskList,\n TuiTextMaskListHandler,\n} from '@taiga-ui/core/mask';\n\nconst ASSERTION = `Correction function must return single char or null`;\n\nexport function tuiCreateCorrectionMask(\n allowed: RegExp,\n correctionHandler: TuiTextMaskCorrectionHandler,\n): TuiTextMaskListHandler {\n return rawValue => {\n const mask = rawValue.split(``).reduce<TuiTextMaskList>((result, char, index) => {\n const corrected = correctionHandler(char, index);\n\n tuiAssert.assert(corrected === null || corrected.length === 1, ASSERTION);\n\n if (!allowed.test(char) && !corrected) {\n return result;\n }\n\n if (allowed.test(char)) {\n return [...result, allowed];\n }\n\n if (corrected) {\n return [...result, corrected, MASK_CARET_TRAP];\n }\n\n return result;\n }, []);\n const lastIndex = mask.lastIndexOf(MASK_CARET_TRAP);\n const filtered = mask.filter(\n (item, index) => item !== MASK_CARET_TRAP || index === lastIndex,\n );\n\n return filtered.some(item => item !== allowed)\n ? [...filtered, allowed]\n : filtered;\n };\n}\n","import {CHAR_EN_DASH, CHAR_HYPHEN, CHAR_NO_BREAK_SPACE, tuiAssert} from '@taiga-ui/cdk';\nimport {\n MASK_CARET_TRAP,\n TUI_DIGIT_REGEXP,\n TUI_LEADING_ZEROES_REGEXP,\n TUI_NON_DIGITS_REGEXP,\n} from '@taiga-ui/core/constants';\nimport {TuiNumberMaskOptions, TuiTextMaskListHandler} from '@taiga-ui/core/mask';\nimport {TuiDecimalSymbol} from '@taiga-ui/core/types';\nimport {otherDecimalSymbol} from '@taiga-ui/core/utils/format';\n\nconst NON_ZERO_DIGIT = /[1-9]/;\n\n/**\n * Adaptation for {@link https://github.com/text-mask/text-mask/tree/master/addons#createnumbermask `createNumberMask`}\n */\nexport function tuiCreateNumberMask({\n allowDecimal = false,\n decimalSymbol = `,`,\n thousandSymbol = CHAR_NO_BREAK_SPACE,\n autoCorrectDecimalSymbol = true,\n decimalLimit = 2,\n requireDecimal = false,\n allowNegative = false,\n integerLimit = 0,\n}: TuiNumberMaskOptions = {}): TuiTextMaskListHandler {\n tuiAssert.assert(Number.isInteger(decimalLimit));\n tuiAssert.assert(decimalLimit >= 0);\n tuiAssert.assert(Number.isInteger(integerLimit));\n tuiAssert.assert(integerLimit >= 0);\n\n return (rawValue, {previousConformedValue}) => {\n if (previousConformedValue && requireDecimal) {\n const conformedWithoutSeparator = rawValue.split(thousandSymbol).join(``);\n const previousConformedValueWithoutDecimalSymbolAndSeparator =\n previousConformedValue\n .split(thousandSymbol)\n .join(``)\n .split(decimalSymbol)\n .join(``);\n\n // Forbid removal of decimal separator if decimal part is required\n if (\n conformedWithoutSeparator ===\n previousConformedValueWithoutDecimalSymbolAndSeparator\n ) {\n rawValue = previousConformedValue;\n }\n }\n\n const isNegative =\n (rawValue[0] === CHAR_HYPHEN || rawValue[0] === CHAR_EN_DASH) &&\n allowNegative;\n\n if (\n isDecimalSymbol(rawValue, decimalSymbol, autoCorrectDecimalSymbol) &&\n allowDecimal\n ) {\n return [`0`, decimalSymbol, TUI_DIGIT_REGEXP];\n }\n\n if (isNegative) {\n rawValue = rawValue.slice(1);\n }\n\n const decimalIndex = getDecimalSymbolIndex(\n rawValue,\n decimalSymbol,\n autoCorrectDecimalSymbol,\n );\n const hasDecimal = decimalIndex !== -1;\n const integer = hasDecimal ? rawValue.slice(0, decimalIndex) : rawValue;\n const thousandSeparators = integer.match(new RegExp(thousandSymbol, `g`)) || [];\n const integerCapped = integerLimit\n ? integer.slice(0, integerLimit + thousandSeparators.length)\n : integer;\n const integerCappedClean = integerCapped.replace(TUI_NON_DIGITS_REGEXP, ``);\n const [leadingZerosMatch] = integerCappedClean.match(\n TUI_LEADING_ZEROES_REGEXP,\n ) || [``];\n const leadingZerosAmount = leadingZerosMatch.length;\n const integerCappedZerosClean = integerCappedClean\n .replace(/^0+(?!\\.|$)/, ``)\n .trim();\n const withSeparator = addThousandsSeparator(\n integerCappedZerosClean,\n thousandSymbol,\n );\n const mask = convertToMask(withSeparator);\n\n if ((hasDecimal && allowDecimal) || requireDecimal) {\n const fraction = hasDecimal\n ? convertToMask(\n rawValue.slice(decimalIndex + 1).replace(TUI_NON_DIGITS_REGEXP, ``),\n )\n : [];\n const fractionCapped = decimalLimit\n ? fraction.slice(0, decimalLimit)\n : fraction;\n\n if (rawValue[decimalIndex] !== otherDecimalSymbol(decimalSymbol)) {\n mask.push(MASK_CARET_TRAP);\n }\n\n mask.push(decimalSymbol, MASK_CARET_TRAP, ...fractionCapped);\n\n for (let i = 0; i < decimalLimit - fractionCapped.length; i++) {\n mask.push(TUI_DIGIT_REGEXP);\n }\n }\n\n const isOnlyZeroDigit = mask.length === 1 && integerCappedZerosClean === `0`;\n\n if (isNegative) {\n if (mask.length === 0) {\n mask.push(TUI_DIGIT_REGEXP);\n }\n\n mask.unshift(CHAR_HYPHEN);\n }\n\n return preventLeadingZeroes(mask, isOnlyZeroDigit, leadingZerosAmount);\n };\n}\n\nfunction preventLeadingZeroes(\n mask: Array<string | RegExp>,\n isOnlyZeroDigit: boolean = false,\n leadingZerosAmount: number = 0,\n): Array<string | RegExp> {\n if (isOnlyZeroDigit || leadingZerosAmount === 0) {\n return mask;\n }\n\n const firstDigitIndex = mask.indexOf(TUI_DIGIT_REGEXP);\n\n if (firstDigitIndex === -1) {\n return mask;\n }\n\n const secondMaskDigit = mask[firstDigitIndex + 1];\n const isCaretTrap = secondMaskDigit === MASK_CARET_TRAP;\n\n if (isCaretTrap && leadingZerosAmount === 1) {\n return mask;\n } else if (isCaretTrap) {\n mask.unshift(NON_ZERO_DIGIT);\n\n return mask;\n }\n\n mask[firstDigitIndex] = NON_ZERO_DIGIT;\n\n return mask;\n}\n\nfunction getDecimalSymbolIndex(\n str: string,\n decimalSymbol: TuiDecimalSymbol,\n autoCorrectDecimalSymbol: boolean,\n): number {\n if (!autoCorrectDecimalSymbol) {\n return str.lastIndexOf(decimalSymbol);\n }\n\n return Math.max(\n str.lastIndexOf(decimalSymbol),\n str.lastIndexOf(otherDecimalSymbol(decimalSymbol)),\n );\n}\n\nfunction isDecimalSymbol(\n str: string,\n decimalSymbol: TuiDecimalSymbol,\n autoCorrectDecimalSymbol: boolean,\n): boolean {\n if (autoCorrectDecimalSymbol) {\n return /^[,.]$/.test(str);\n }\n\n return str === decimalSymbol;\n}\n\nfunction convertToMask(strNumber: string): Array<string | RegExp> {\n return strNumber\n .split(``)\n .map(char => (TUI_DIGIT_REGEXP.test(char) ? TUI_DIGIT_REGEXP : char));\n}\n\nfunction addThousandsSeparator(strNumber: string, thousandSymbol: string): string {\n return strNumber.length > 3\n ? // TODO: investigate to disallow potentially catastrophic exponential-time regular expressions.\n // eslint-disable-next-line unicorn/no-unsafe-regex\n strNumber.replace(/\\B(?=(\\d{3})+(?!\\d))/g, thousandSymbol)\n : strNumber;\n}\n","import {TUI_DECIMAL_SYMBOLS} from '@taiga-ui/core/constants';\nimport {TuiNumberFormatSettings} from '@taiga-ui/core/interfaces';\n\nexport function tuiEnableAutoCorrectDecimalSymbol({\n thousandSeparator,\n}: TuiNumberFormatSettings): boolean {\n return !TUI_DECIMAL_SYMBOLS.includes(thousandSeparator);\n}\n","import {CHAR_HYPHEN} from '@taiga-ui/cdk';\n\n/**\n * @deprecated: use {@link tuiMaskedMoneyValueIsEmpty} instead\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function maskedMoneyValueIsEmpty(value: string): boolean {\n switch (value) {\n case ``:\n case CHAR_HYPHEN:\n case `,`:\n case `${CHAR_HYPHEN},`:\n return true;\n default:\n return false;\n }\n}\n\nexport const tuiMaskedMoneyValueIsEmpty = maskedMoneyValueIsEmpty;\n","import {TuiDecimalSymbol} from '@taiga-ui/core/types';\n\n/**\n * @deprecated: use {@link tuiMaskedNumberStringToNumber} instead\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function maskedNumberStringToNumber(\n value: string,\n decimalsSymbol: TuiDecimalSymbol,\n thousandSymbol: string,\n): number {\n return parseFloat(\n value.split(thousandSymbol).join(``).split(decimalsSymbol).join(`.`),\n );\n}\n\nexport const tuiMaskedNumberStringToNumber = maskedNumberStringToNumber;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAWA;;;SAGgB,gCAAgC,CAC5C,eAAuB,CAAC,EACxB,gBAAkC,GAAG,EACrC,iBAAyB,mBAAmB,EAC5C,WAAqC,EACrC,aAAuB,EACvB,KAAK,GAAG,KAAK;IAEb,SAAS,CAAC,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC,CAAC;IACjD,SAAS,CAAC,MAAM,CAAC,YAAY,IAAI,CAAC,CAAC,CAAC;;IAGpC,IAAI,aAAa,GAAG,CAAC,CAAC,CAAC;IACvB,MAAM,OAAO,GAAG,CAAC,CAAC,CAAC,WAAW,IAAI,QAAQ,CAAC,WAAW,CAAC,KAAK,KAAK,CAAC;IAElE,IAAI,WAAW,IAAI,OAAO,EAAE;QACxB,WAAW,CAAC,gBAAgB,CAAC,aAAa,EAAE;YACxC,aAAa,GAAG,WAAW,CAAC,cAAc,IAAI,CAAC,CAAC;SACnD,CAAC,CAAC;KACN;IAED,OAAO,CAAC,cAAc,EAAE,MAAM;;QAE1B,IAAI,CAAC,cAAc,IAAI,MAAM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6,14 +6,14 @@ import { DEFAULT_ICONS_PATH, tuiEditingKeys } from '@taiga-ui/core/constants';
6
6
  // eslint-disable-next-line @typescript-eslint/naming-convention
7
7
  function colorFallback(color) {
8
8
  switch (color) {
9
- case 'secondary':
10
- return 'var(--tui-info-fill)';
11
- case 'error':
12
- return 'var(--tui-error-fill)';
13
- case 'success':
14
- return 'var(--tui-success-fill)';
9
+ case `secondary`:
10
+ return `var(--tui-info-fill)`;
11
+ case `error`:
12
+ return `var(--tui-error-fill)`;
13
+ case `success`:
14
+ return `var(--tui-success-fill)`;
15
15
  default:
16
- return `var(--tui-${color || 'base-05'})`;
16
+ return `var(--tui-${color || `base-05`})`;
17
17
  }
18
18
  }
19
19
 
@@ -46,9 +46,9 @@ const tuiGetBorder = getBorder;
46
46
  */
47
47
  // eslint-disable-next-line @typescript-eslint/naming-convention
48
48
  function iconsPathFactory(staticPath) {
49
- const base = staticPath[staticPath.length - 1] === '/' ? staticPath : `${staticPath}/`;
49
+ const base = staticPath[staticPath.length - 1] === `/` ? staticPath : `${staticPath}/`;
50
50
  return name => {
51
- if (name.startsWith('tuiIcon')) {
51
+ if (name.startsWith(`tuiIcon`)) {
52
52
  return `${base}${name}.svg#${name}`;
53
53
  }
54
54
  return DEFAULT_ICONS_PATH(name);
@@ -72,11 +72,11 @@ const tuiIsEditingKey = isEditingKey;
72
72
  // eslint-disable-next-line @typescript-eslint/naming-convention
73
73
  function isPresumedHTMLString(candidate) {
74
74
  const trimmed = candidate.trim();
75
- return trimmed.startsWith('<') && trimmed.endsWith('>');
75
+ return trimmed.startsWith(`<`) && trimmed.endsWith(`>`);
76
76
  }
77
77
  const tuiIsPresumedHTMLString = isPresumedHTMLString;
78
78
 
79
- const SIZES = ['xs', 's', 'm', 'l', 'xl', 'xxl'];
79
+ const SIZES = [`xs`, `s`, `m`, `l`, `xl`, `xxl`];
80
80
  /**
81
81
  * @deprecated: use {@link tuiSizeBigger} instead
82
82
  * Compares size constants to determine if first size is bigger than the second
@@ -85,7 +85,7 @@ const SIZES = ['xs', 's', 'm', 'l', 'xl', 'xxl'];
85
85
  * @param biggerThanSize size to compare with, 's' by default
86
86
  */
87
87
  // eslint-disable-next-line @typescript-eslint/naming-convention
88
- function sizeBigger(size, biggerThanSize = 's') {
88
+ function sizeBigger(size, biggerThanSize = `s`) {
89
89
  return SIZES.indexOf(size) > SIZES.indexOf(biggerThanSize);
90
90
  }
91
91
  const tuiSizeBigger = sizeBigger;
@@ -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-html-string.ts","ng://@taiga-ui/core/utils/miscellaneous/size-bigger.ts","ng://@taiga-ui/core/utils/miscellaneous/taiga-ui-core-utils-miscellaneous.ts"],"sourcesContent":["/**\n * @deprecated has been deleted in 3.0, please use CSS variables\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\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\n/**\n * @deprecated: use {@link tuiGetBorder} instead\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\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\nexport const tuiGetBorder = getBorder;\n","import {TuiStringHandler} from '@taiga-ui/cdk';\nimport {DEFAULT_ICONS_PATH} from '@taiga-ui/core/constants';\n\n/**\n * @deprecated: use {@link tuiIconsPathFactory} instead\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\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\nexport const tuiIconsPathFactory = iconsPathFactory;\n","import {tuiEditingKeys} from '@taiga-ui/core/constants';\n\n/**\n * @deprecated: use {@link tuiIsEditingKey} instead\n * Check if pressed key is interactive in terms of input field\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function isEditingKey(key: string): boolean {\n return key.length === 1 || tuiEditingKeys.includes(key);\n}\n\nexport const tuiIsEditingKey = isEditingKey;\n","/**\n * @deprecated: use {@link tuiIsPresumedHTMLString} instead\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function isPresumedHTMLString(candidate: string): boolean {\n const trimmed = candidate.trim();\n\n return trimmed.startsWith('<') && trimmed.endsWith('>');\n}\n\nexport const tuiIsPresumedHTMLString = isPresumedHTMLString;\n","import {TuiSizeXS, TuiSizeXXL} from '@taiga-ui/core/types';\n\nconst SIZES: ReadonlyArray<TuiSizeXS | TuiSizeXXL> = ['xs', 's', 'm', 'l', 'xl', 'xxl'];\n\n/**\n * @deprecated: use {@link tuiSizeBigger} instead\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 */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function sizeBigger(\n size: TuiSizeXS | TuiSizeXXL,\n biggerThanSize: TuiSizeXS | TuiSizeXXL = 's',\n): boolean {\n return SIZES.indexOf(size) > SIZES.indexOf(biggerThanSize);\n}\n\nexport const tuiSizeBigger = sizeBigger;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;AAAA;;;AAGA;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,aAAa,KAAK,IAAI,SAAS,GAAG,CAAC;KACjD;AACL;;ACfA,MAAM,SAAS,GAAG,GAAG,CAAC;AACtB,MAAM,YAAY,GAAG,GAAG,CAAC;AAEzB;;;AAGA;SACgB,SAAS,CACrB,OAAgB,EAChB,aAAsB,KAAK,EAC3B,aAAsB,KAAK,EAC3B,aAAsB,KAAK;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,CAAC;MAEY,YAAY,GAAG;;AC/B5B;;;AAGA;SACgB,gBAAgB,CAAC,UAAkB;IAC/C,MAAM,IAAI,GACN,UAAU,CAAC,UAAU,CAAC,MAAM,GAAG,CAAC,CAAC,KAAK,GAAG,GAAG,UAAU,GAAG,GAAG,UAAU,GAAG,CAAC;IAE9E,OAAO,IAAI;QACP,IAAI,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,EAAE;YAC5B,OAAO,GAAG,IAAI,GAAG,IAAI,QAAQ,IAAI,EAAE,CAAC;SACvC;QAED,OAAO,kBAAkB,CAAC,IAAI,CAAC,CAAC;KACnC,CAAC;AACN,CAAC;MAEY,mBAAmB,GAAG;;AClBnC;;;;AAIA;SACgB,YAAY,CAAC,GAAW;IACpC,OAAO,GAAG,CAAC,MAAM,KAAK,CAAC,IAAI,cAAc,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;AAC5D,CAAC;MAEY,eAAe,GAAG;;ACX/B;;;AAGA;SACgB,oBAAoB,CAAC,SAAiB;IAClD,MAAM,OAAO,GAAG,SAAS,CAAC,IAAI,EAAE,CAAC;IAEjC,OAAO,OAAO,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;AAC5D,CAAC;MAEY,uBAAuB,GAAG;;ACRvC,MAAM,KAAK,GAA0C,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC;AAExF;;;;;;;AAOA;SACgB,UAAU,CACtB,IAA4B,EAC5B,iBAAyC,GAAG;IAE5C,OAAO,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC;AAC/D,CAAC;MAEY,aAAa,GAAG;;ACnB7B;;;;;;"}
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-html-string.ts","ng://@taiga-ui/core/utils/miscellaneous/size-bigger.ts","ng://@taiga-ui/core/utils/miscellaneous/taiga-ui-core-utils-miscellaneous.ts"],"sourcesContent":["/**\n * @deprecated has been deleted in 3.0, please use CSS variables\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\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\n/**\n * @deprecated: use {@link tuiGetBorder} instead\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\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\nexport const tuiGetBorder = getBorder;\n","import {TuiStringHandler} from '@taiga-ui/cdk';\nimport {DEFAULT_ICONS_PATH} from '@taiga-ui/core/constants';\n\n/**\n * @deprecated: use {@link tuiIconsPathFactory} instead\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\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\nexport const tuiIconsPathFactory = iconsPathFactory;\n","import {tuiEditingKeys} from '@taiga-ui/core/constants';\n\n/**\n * @deprecated: use {@link tuiIsEditingKey} instead\n * Check if pressed key is interactive in terms of input field\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function isEditingKey(key: string): boolean {\n return key.length === 1 || tuiEditingKeys.includes(key);\n}\n\nexport const tuiIsEditingKey = isEditingKey;\n","/**\n * @deprecated: use {@link tuiIsPresumedHTMLString} instead\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function isPresumedHTMLString(candidate: string): boolean {\n const trimmed = candidate.trim();\n\n return trimmed.startsWith(`<`) && trimmed.endsWith(`>`);\n}\n\nexport const tuiIsPresumedHTMLString = isPresumedHTMLString;\n","import {TuiSizeXS, TuiSizeXXL} from '@taiga-ui/core/types';\n\nconst SIZES: ReadonlyArray<TuiSizeXS | TuiSizeXXL> = [`xs`, `s`, `m`, `l`, `xl`, `xxl`];\n\n/**\n * @deprecated: use {@link tuiSizeBigger} instead\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 */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function sizeBigger(\n size: TuiSizeXS | TuiSizeXXL,\n biggerThanSize: TuiSizeXS | TuiSizeXXL = `s`,\n): boolean {\n return SIZES.indexOf(size) > SIZES.indexOf(biggerThanSize);\n}\n\nexport const tuiSizeBigger = sizeBigger;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;AAAA;;;AAGA;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,aAAa,KAAK,IAAI,SAAS,GAAG,CAAC;KACjD;AACL;;ACfA,MAAM,SAAS,GAAG,GAAG,CAAC;AACtB,MAAM,YAAY,GAAG,GAAG,CAAC;AAEzB;;;AAGA;SACgB,SAAS,CACrB,OAAgB,EAChB,aAAsB,KAAK,EAC3B,aAAsB,KAAK,EAC3B,aAAsB,KAAK;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,IA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6,13 +6,13 @@ import { TuiXmlParsingException } from '@taiga-ui/cdk';
6
6
  */
7
7
  // eslint-disable-next-line @typescript-eslint/naming-convention
8
8
  function innerHTML(documentRef) {
9
- const svg = documentRef.createElementNS('http://www.w3.org/2000/svg', 'svg');
9
+ const svg = documentRef.createElementNS(`http://www.w3.org/2000/svg`, `svg`);
10
10
  if (svg.innerHTML !== undefined) {
11
11
  return;
12
12
  }
13
13
  const serializer = new XMLSerializer();
14
14
  const parser = new DOMParser();
15
- Object.defineProperty(SVGElement.prototype, 'innerHTML', {
15
+ Object.defineProperty(SVGElement.prototype, `innerHTML`, {
16
16
  get: function () {
17
17
  const result = [];
18
18
  let childNode = this.firstChild;
@@ -20,14 +20,14 @@ function innerHTML(documentRef) {
20
20
  result.push(serializer.serializeToString(childNode));
21
21
  childNode = childNode.nextSibling;
22
22
  }
23
- return result.join('');
23
+ return result.join(``);
24
24
  },
25
25
  set: function (text) {
26
26
  while (this.firstChild) {
27
27
  this.removeChild(this.firstChild);
28
28
  }
29
29
  try {
30
- const svgDocElement = parser.parseFromString(text, 'image/svg+xml').documentElement;
30
+ const svgDocElement = parser.parseFromString(text, `image/svg+xml`).documentElement;
31
31
  if (this.ownerDocument) {
32
32
  this.appendChild(this.ownerDocument.importNode(svgDocElement, true));
33
33
  }
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-core-utils-polyfills.js","sources":["ng://@taiga-ui/core/utils/polyfills/inner-html.ts","ng://@taiga-ui/core/utils/polyfills/taiga-ui-core-utils-polyfills.ts"],"sourcesContent":["import {TuiXmlParsingException} from '@taiga-ui/cdk';\n\n/**\n * @deprecated\n * TODO: remove in v3.0\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function innerHTML(documentRef: Document): void {\n const svg = documentRef.createElementNS('http://www.w3.org/2000/svg', 'svg');\n\n if (svg.innerHTML !== undefined) {\n return;\n }\n\n const serializer = new XMLSerializer();\n const parser = new DOMParser();\n\n Object.defineProperty(SVGElement.prototype, 'innerHTML', {\n get: function (this: SVGElement): string {\n const result: string[] = [];\n let childNode: any = this.firstChild;\n\n while (childNode) {\n result.push(serializer.serializeToString(childNode));\n childNode = childNode.nextSibling;\n }\n\n return result.join('');\n },\n set: function (this: SVGElement, text: string) {\n while (this.firstChild) {\n this.removeChild(this.firstChild);\n }\n\n try {\n const svgDocElement = parser.parseFromString(\n text,\n 'image/svg+xml',\n ).documentElement;\n\n if (this.ownerDocument) {\n this.appendChild(this.ownerDocument.importNode(svgDocElement, true));\n }\n } catch (e) {\n throw new TuiXmlParsingException();\n }\n },\n });\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;AAEA;;;;AAIA;SACgB,SAAS,CAAC,WAAqB;IAC3C,MAAM,GAAG,GAAG,WAAW,CAAC,eAAe,CAAC,4BAA4B,EAAE,KAAK,CAAC,CAAC;IAE7E,IAAI,GAAG,CAAC,SAAS,KAAK,SAAS,EAAE;QAC7B,OAAO;KACV;IAED,MAAM,UAAU,GAAG,IAAI,aAAa,EAAE,CAAC;IACvC,MAAM,MAAM,GAAG,IAAI,SAAS,EAAE,CAAC;IAE/B,MAAM,CAAC,cAAc,CAAC,UAAU,CAAC,SAAS,EAAE,WAAW,EAAE;QACrD,GAAG,EAAE;YACD,MAAM,MAAM,GAAa,EAAE,CAAC;YAC5B,IAAI,SAAS,GAAQ,IAAI,CAAC,UAAU,CAAC;YAErC,OAAO,SAAS,EAAE;gBACd,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,iBAAiB,CAAC,SAAS,CAAC,CAAC,CAAC;gBACrD,SAAS,GAAG,SAAS,CAAC,WAAW,CAAC;aACrC;YAED,OAAO,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;SAC1B;QACD,GAAG,EAAE,UAA4B,IAAY;YACzC,OAAO,IAAI,CAAC,UAAU,EAAE;gBACpB,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;aACrC;YAED,IAAI;gBACA,MAAM,aAAa,GAAG,MAAM,CAAC,eAAe,CACxC,IAAI,EACJ,eAAe,CAClB,CAAC,eAAe,CAAC;gBAElB,IAAI,IAAI,CAAC,aAAa,EAAE;oBACpB,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,aAAa,CAAC,UAAU,CAAC,aAAa,EAAE,IAAI,CAAC,CAAC,CAAC;iBACxE;aACJ;YAAC,OAAO,CAAC,EAAE;gBACR,MAAM,IAAI,sBAAsB,EAAE,CAAC;aACtC;SACJ;KACJ,CAAC,CAAC;AACP;;AChDA;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-core-utils-polyfills.js","sources":["ng://@taiga-ui/core/utils/polyfills/inner-html.ts","ng://@taiga-ui/core/utils/polyfills/taiga-ui-core-utils-polyfills.ts"],"sourcesContent":["import {TuiXmlParsingException} from '@taiga-ui/cdk';\n\n/**\n * @deprecated\n * TODO: remove in v3.0\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function innerHTML(documentRef: Document): void {\n const svg = documentRef.createElementNS(`http://www.w3.org/2000/svg`, `svg`);\n\n if (svg.innerHTML !== undefined) {\n return;\n }\n\n const serializer = new XMLSerializer();\n const parser = new DOMParser();\n\n Object.defineProperty(SVGElement.prototype, `innerHTML`, {\n get: function (this: SVGElement): string {\n const result: string[] = [];\n let childNode: any = this.firstChild;\n\n while (childNode) {\n result.push(serializer.serializeToString(childNode));\n childNode = childNode.nextSibling;\n }\n\n return result.join(``);\n },\n set: function (this: SVGElement, text: string) {\n while (this.firstChild) {\n this.removeChild(this.firstChild);\n }\n\n try {\n const svgDocElement = parser.parseFromString(\n text,\n `image/svg+xml`,\n ).documentElement;\n\n if (this.ownerDocument) {\n this.appendChild(this.ownerDocument.importNode(svgDocElement, true));\n }\n } catch (e) {\n throw new TuiXmlParsingException();\n }\n },\n });\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;AAEA;;;;AAIA;SACgB,SAAS,CAAC,WAAqB;IAC3C,MAAM,GAAG,GAAG,WAAW,CAAC,eAAe,CAAC,4BAA4B,EAAE,KAAK,CAAC,CAAC;IAE7E,IAAI,GAAG,CAAC,SAAS,KAAK,SAAS,EAAE;QAC7B,OAAO;KACV;IAED,MAAM,UAAU,GAAG,IAAI,aAAa,EAAE,CAAC;IACvC,MAAM,MAAM,GAAG,IAAI,SAAS,EAAE,CAAC;IAE/B,MAAM,CAAC,cAAc,CAAC,UAAU,CAAC,SAAS,EAAE,WAAW,EAAE;QACrD,GAAG,EAAE;YACD,MAAM,MAAM,GAAa,EAAE,CAAC;YAC5B,IAAI,SAAS,GAAQ,IAAI,CAAC,UAAU,CAAC;YAErC,OAAO,SAAS,EAAE;gBACd,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,iBAAiB,CAAC,SAAS,CAAC,CAAC,CAAC;gBACrD,SAAS,GAAG,SAAS,CAAC,WAAW,CAAC;aACrC;YAED,OAAO,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;SAC1B;QACD,GAAG,EAAE,UAA4B,IAAY;YACzC,OAAO,IAAI,CAAC,UAAU,EAAE;gBACpB,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;aACrC;YAED,IAAI;gBACA,MAAM,aAAa,GAAG,MAAM,CAAC,eAAe,CACxC,IAAI,EACJ,eAAe,CAClB,CAAC,eAAe,CAAC;gBAElB,IAAI,IAAI,CAAC,aAAa,EAAE;oBACpB,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,aAAa,CAAC,UAAU,CAAC,aAAa,EAAE,IAAI,CAAC,CAAC,CAAC;iBACxE;aACJ;YAAC,OAAO,CAAC,EAAE;gBACR,MAAM,IAAI,sBAAsB,EAAE,CAAC;aACtC;SACJ;KACJ,CAAC,CAAC;AACP;;AChDA;;;;;;"}
@@ -14,14 +14,14 @@ var AbstractTuiDropdown = /** @class */ (function () {
14
14
  this.portalService = portalService;
15
15
  this.elementRef = elementRef;
16
16
  this.activeZone = activeZone;
17
- this.content = '';
17
+ this.content = "";
18
18
  this.tuiDropdownHost = null;
19
19
  this.minHeight = DEFAULT_MIN_HEIGHT;
20
20
  this.maxHeight = DEFAULT_MAX_HEIGHT;
21
- this.align = 'left';
21
+ this.align = "left";
22
22
  this.direction = null;
23
23
  this.sided = false;
24
- this.limitMinWidth = 'min';
24
+ this.limitMinWidth = "min";
25
25
  this.dropdownBoxRef = null;
26
26
  }
27
27
  AbstractTuiDropdown.prototype.ngOnDestroy = function () {
@@ -86,35 +86,35 @@ var AbstractTuiDropdown = /** @class */ (function () {
86
86
  { type: TuiActiveZoneDirective }
87
87
  ]; };
88
88
  __decorate([
89
- Input('tuiDropdownContent'),
89
+ Input("tuiDropdownContent"),
90
90
  tuiDefaultProp()
91
91
  ], AbstractTuiDropdown.prototype, "content", void 0);
92
92
  __decorate([
93
- Input('tuiDropdownHost'),
93
+ Input("tuiDropdownHost"),
94
94
  tuiDefaultProp()
95
95
  ], AbstractTuiDropdown.prototype, "tuiDropdownHost", void 0);
96
96
  __decorate([
97
- Input('tuiDropdownMinHeight'),
97
+ Input("tuiDropdownMinHeight"),
98
98
  tuiDefaultProp()
99
99
  ], AbstractTuiDropdown.prototype, "minHeight", void 0);
100
100
  __decorate([
101
- Input('tuiDropdownMaxHeight'),
101
+ Input("tuiDropdownMaxHeight"),
102
102
  tuiDefaultProp()
103
103
  ], AbstractTuiDropdown.prototype, "maxHeight", void 0);
104
104
  __decorate([
105
- Input('tuiDropdownAlign'),
105
+ Input("tuiDropdownAlign"),
106
106
  tuiDefaultProp()
107
107
  ], AbstractTuiDropdown.prototype, "align", void 0);
108
108
  __decorate([
109
- Input('tuiDropdownDirection'),
109
+ Input("tuiDropdownDirection"),
110
110
  tuiDefaultProp()
111
111
  ], AbstractTuiDropdown.prototype, "direction", void 0);
112
112
  __decorate([
113
- Input('tuiDropdownSided'),
113
+ Input("tuiDropdownSided"),
114
114
  tuiDefaultProp()
115
115
  ], AbstractTuiDropdown.prototype, "sided", void 0);
116
116
  __decorate([
117
- Input('tuiDropdownLimitWidth'),
117
+ Input("tuiDropdownLimitWidth"),
118
118
  tuiDefaultProp()
119
119
  ], AbstractTuiDropdown.prototype, "limitMinWidth", void 0);
120
120
  __decorate([
@@ -137,7 +137,7 @@ var AbstractTuiHint = /** @class */ (function () {
137
137
  this.options = options;
138
138
  this.mode = this.options.mode;
139
139
  this.direction = this.options.direction;
140
- this.content = '';
140
+ this.content = "";
141
141
  }
142
142
  AbstractTuiHint.prototype.ngOnDestroy = function () {
143
143
  this.hideTooltip();
@@ -155,11 +155,11 @@ var AbstractTuiHint = /** @class */ (function () {
155
155
  { type: undefined }
156
156
  ]; };
157
157
  __decorate([
158
- Input('tuiHintMode'),
158
+ Input("tuiHintMode"),
159
159
  tuiDefaultProp()
160
160
  ], AbstractTuiHint.prototype, "mode", void 0);
161
161
  __decorate([
162
- Input('tuiHintDirection'),
162
+ Input("tuiHintDirection"),
163
163
  tuiDefaultProp()
164
164
  ], AbstractTuiHint.prototype, "direction", void 0);
165
165
  AbstractTuiHint = __decorate([
@@ -171,7 +171,7 @@ var AbstractTuiHint = /** @class */ (function () {
171
171
  /** Default values for abstract hint options */
172
172
  var TUI_ABSTRACT_HINT_DEFAULT_OPTIONS = {
173
173
  mode: null,
174
- direction: 'bottom-left',
174
+ direction: "bottom-left",
175
175
  };
176
176
 
177
177
  // @dynamic
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-core-abstract.js","sources":["ng://@taiga-ui/core/abstract/abstract-dropdown.ts","ng://@taiga-ui/core/abstract/abstract-hint.ts","ng://@taiga-ui/core/abstract/abstract-hint-options.ts","ng://@taiga-ui/core/abstract/abstract-textfield-host.ts","ng://@taiga-ui/core/abstract/taiga-ui-core-abstract.ts"],"sourcesContent":["import {\n AfterViewChecked,\n ComponentFactoryResolver,\n ComponentRef,\n Directive,\n ElementRef,\n Injector,\n Input,\n OnDestroy,\n} from '@angular/core';\nimport {\n TuiActiveZoneDirective,\n tuiDefaultProp,\n TuiNativeFocusableElement,\n TuiPortalService,\n tuiPure,\n} from '@taiga-ui/cdk';\nimport {TuiDropdownBoxComponent} from '@taiga-ui/core/components/dropdown-box';\nimport {DEFAULT_MAX_HEIGHT, DEFAULT_MIN_HEIGHT} from '@taiga-ui/core/constants';\nimport {TuiDropdown} from '@taiga-ui/core/interfaces';\nimport {\n TuiDropdownWidthT,\n TuiHorizontalDirection,\n TuiVerticalDirection,\n} from '@taiga-ui/core/types';\nimport {checkFixedPosition} from '@taiga-ui/core/utils/dom';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {Observable} from 'rxjs';\n\n// @bad TODO: Possibly refactor to make more abstract\n@Directive()\nexport abstract class AbstractTuiDropdown\n implements TuiDropdown, AfterViewChecked, OnDestroy\n{\n abstract refresh$: Observable<unknown>;\n\n @Input('tuiDropdownContent')\n @tuiDefaultProp()\n content: PolymorpheusContent = '';\n\n @Input('tuiDropdownHost')\n @tuiDefaultProp()\n tuiDropdownHost: TuiNativeFocusableElement | HTMLElement | null = null;\n\n @Input('tuiDropdownMinHeight')\n @tuiDefaultProp()\n minHeight = DEFAULT_MIN_HEIGHT;\n\n @Input('tuiDropdownMaxHeight')\n @tuiDefaultProp()\n maxHeight = DEFAULT_MAX_HEIGHT;\n\n @Input('tuiDropdownAlign')\n @tuiDefaultProp()\n align: TuiHorizontalDirection = 'left';\n\n @Input('tuiDropdownDirection')\n @tuiDefaultProp()\n direction: TuiVerticalDirection | null = null;\n\n @Input('tuiDropdownSided')\n @tuiDefaultProp()\n sided = false;\n\n @Input('tuiDropdownLimitWidth')\n @tuiDefaultProp()\n limitMinWidth: TuiDropdownWidthT = 'min';\n\n dropdownBoxRef: ComponentRef<TuiDropdownBoxComponent> | null = null;\n\n protected constructor(\n private readonly componentFactoryResolver: ComponentFactoryResolver,\n private readonly injector: Injector,\n private readonly portalService: TuiPortalService,\n protected readonly elementRef: ElementRef<HTMLElement>,\n readonly activeZone: TuiActiveZoneDirective | null,\n ) {}\n\n ngOnDestroy(): void {\n this.closeDropdownBox();\n }\n\n ngAfterViewChecked(): void {\n // @awful TODO: This is probably wrong to call both but in TuiHostedDropdown some changes do not propagate otherwise\n if (this.dropdownBoxRef !== null) {\n this.dropdownBoxRef.changeDetectorRef.detectChanges();\n this.dropdownBoxRef.changeDetectorRef.markForCheck();\n }\n }\n\n get clientRect(): ClientRect {\n return this.elementRef.nativeElement.getBoundingClientRect();\n }\n\n get host(): TuiNativeFocusableElement | HTMLElement {\n return this.tuiDropdownHost || this.elementRef.nativeElement;\n }\n\n @tuiPure\n get fixed(): boolean {\n return checkFixedPosition(this.elementRef.nativeElement);\n }\n\n @tuiPure\n protected toggleDropdown(value: boolean): void {\n if (value) {\n this.openDropdownBox();\n } else {\n this.closeDropdownBox();\n }\n }\n\n protected openDropdownBox(): void {\n if (this.dropdownBoxRef !== null) {\n return;\n }\n\n const componentFactory = this.componentFactoryResolver.resolveComponentFactory(\n TuiDropdownBoxComponent,\n );\n\n this.dropdownBoxRef = this.portalService.add(componentFactory, this.injector);\n this.dropdownBoxRef.changeDetectorRef.detectChanges();\n }\n\n protected closeDropdownBox(): void {\n if (this.dropdownBoxRef === null) {\n return;\n }\n\n this.portalService.remove(this.dropdownBoxRef);\n this.dropdownBoxRef = null;\n }\n}\n","import {Directive, ElementRef, Input, OnDestroy} from '@angular/core';\nimport {TuiActiveZoneDirective, tuiDefaultProp} from '@taiga-ui/cdk';\nimport {TuiHintService} from '@taiga-ui/core/services';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiAbstractHintOptions} from './abstract-hint-options';\n\n@Directive()\nexport abstract class AbstractTuiHint implements OnDestroy {\n @Input('tuiHintMode')\n @tuiDefaultProp()\n mode: TuiAbstractHintOptions['mode'] = this.options.mode;\n\n @Input('tuiHintDirection')\n @tuiDefaultProp()\n direction: TuiAbstractHintOptions['direction'] = this.options.direction;\n\n content: PolymorpheusContent = '';\n\n protected constructor(\n protected readonly elementRef: ElementRef<HTMLElement>,\n protected readonly hintService: TuiHintService,\n readonly activeZone: TuiActiveZoneDirective | null,\n protected readonly options: TuiAbstractHintOptions,\n ) {}\n\n abstract getElementClientRect(): ClientRect;\n\n ngOnDestroy(): void {\n this.hideTooltip();\n }\n\n protected showTooltip(): void {\n this.hintService.add(this);\n }\n\n protected hideTooltip(): void {\n this.hintService.remove(this);\n }\n}\n","import {TuiDirection, TuiHintModeT} from '@taiga-ui/core/types';\n\nexport interface TuiAbstractHintOptions {\n readonly mode: TuiHintModeT | null;\n readonly direction: TuiDirection;\n}\n\n/** Default values for abstract hint options */\nexport const TUI_ABSTRACT_HINT_DEFAULT_OPTIONS: TuiAbstractHintOptions = {\n mode: null,\n direction: 'bottom-left',\n};\n","import {Directive, Inject} from '@angular/core';\nimport {AbstractTuiControl} from '@taiga-ui/cdk';\nimport {TuiTextfieldHost} from '@taiga-ui/core/interfaces';\n\n// @dynamic\n@Directive()\nexport abstract class TuiAbstractTextfieldHost<T extends AbstractTuiControl<any>>\n implements TuiTextfieldHost\n{\n constructor(@Inject(AbstractTuiControl) protected readonly host: T) {}\n\n get readOnly(): boolean {\n return this.host.readOnly;\n }\n\n get disabled(): boolean {\n return this.host.computedDisabled;\n }\n\n get invalid(): boolean {\n return this.host.computedInvalid;\n }\n\n get focusable(): boolean {\n return this.host.computedFocusable;\n }\n\n get value(): string {\n return String(this.host.value);\n }\n\n abstract onValueChange(value: string): void;\n\n process(_input: HTMLInputElement): void {}\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AA6BA;;IAyCI,6BACqB,wBAAkD,EAClD,QAAkB,EAClB,aAA+B,EAC7B,UAAmC,EAC7C,UAAyC;QAJjC,6BAAwB,GAAxB,wBAAwB,CAA0B;QAClD,aAAQ,GAAR,QAAQ,CAAU;QAClB,kBAAa,GAAb,aAAa,CAAkB;QAC7B,eAAU,GAAV,UAAU,CAAyB;QAC7C,e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ED,sBAAI,2CAAK;aAAT;YACI,OAAO,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;SAClC;;;OAAA;IAID,0CAAO,GAAP,UAAQ,MAAwB,KAAU;;gDAxB7B,MAAM,SAAC,kBAAkB;;IAHpB,wBAAwB;QAD7C,SAAS,EAAE;QAIK,WAAA,MAAM,CAAC,kBAAkB,CAAC,CAAA;OAHrB,wBAAwB,CA4B7C;IAAD,+BAAC;CA5BD;;ACNA;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-core-abstract.js","sources":["ng://@taiga-ui/core/abstract/abstract-dropdown.ts","ng://@taiga-ui/core/abstract/abstract-hint.ts","ng://@taiga-ui/core/abstract/abstract-hint-options.ts","ng://@taiga-ui/core/abstract/abstract-textfield-host.ts","ng://@taiga-ui/core/abstract/taiga-ui-core-abstract.ts"],"sourcesContent":["import {\n AfterViewChecked,\n ComponentFactoryResolver,\n ComponentRef,\n Directive,\n ElementRef,\n Injector,\n Input,\n OnDestroy,\n} from '@angular/core';\nimport {\n TuiActiveZoneDirective,\n tuiDefaultProp,\n TuiNativeFocusableElement,\n TuiPortalService,\n tuiPure,\n} from '@taiga-ui/cdk';\nimport {TuiDropdownBoxComponent} from '@taiga-ui/core/components/dropdown-box';\nimport {DEFAULT_MAX_HEIGHT, DEFAULT_MIN_HEIGHT} from '@taiga-ui/core/constants';\nimport {TuiDropdown} from '@taiga-ui/core/interfaces';\nimport {\n TuiDropdownWidthT,\n TuiHorizontalDirection,\n TuiVerticalDirection,\n} from '@taiga-ui/core/types';\nimport {checkFixedPosition} from '@taiga-ui/core/utils/dom';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {Observable} from 'rxjs';\n\n// @bad TODO: Possibly refactor to make more abstract\n@Directive()\nexport abstract class AbstractTuiDropdown\n implements TuiDropdown, AfterViewChecked, OnDestroy\n{\n abstract refresh$: Observable<unknown>;\n\n @Input(`tuiDropdownContent`)\n @tuiDefaultProp()\n content: PolymorpheusContent = ``;\n\n @Input(`tuiDropdownHost`)\n @tuiDefaultProp()\n tuiDropdownHost: TuiNativeFocusableElement | HTMLElement | null = null;\n\n @Input(`tuiDropdownMinHeight`)\n @tuiDefaultProp()\n minHeight = DEFAULT_MIN_HEIGHT;\n\n @Input(`tuiDropdownMaxHeight`)\n @tuiDefaultProp()\n maxHeight = DEFAULT_MAX_HEIGHT;\n\n @Input(`tuiDropdownAlign`)\n @tuiDefaultProp()\n align: TuiHorizontalDirection = `left`;\n\n @Input(`tuiDropdownDirection`)\n @tuiDefaultProp()\n direction: TuiVerticalDirection | null = null;\n\n @Input(`tuiDropdownSided`)\n @tuiDefaultProp()\n sided = false;\n\n @Input(`tuiDropdownLimitWidth`)\n @tuiDefaultProp()\n limitMinWidth: TuiDropdownWidthT = `min`;\n\n dropdownBoxRef: ComponentRef<TuiDropdownBoxComponent> | null = null;\n\n protected constructor(\n private readonly componentFactoryResolver: ComponentFactoryResolver,\n private readonly injector: Injector,\n private readonly portalService: TuiPortalService,\n protected readonly elementRef: ElementRef<HTMLElement>,\n readonly activeZone: TuiActiveZoneDirective | null,\n ) {}\n\n ngOnDestroy(): void {\n this.closeDropdownBox();\n }\n\n ngAfterViewChecked(): void {\n // @awful TODO: This is probably wrong to call both but in TuiHostedDropdown some changes do not propagate otherwise\n if (this.dropdownBoxRef !== null) {\n this.dropdownBoxRef.changeDetectorRef.detectChanges();\n this.dropdownBoxRef.changeDetectorRef.markForCheck();\n }\n }\n\n get clientRect(): ClientRect {\n return this.elementRef.nativeElement.getBoundingClientRect();\n }\n\n get host(): TuiNativeFocusableElement | HTMLElement {\n return this.tuiDropdownHost || this.elementRef.nativeElement;\n }\n\n @tuiPure\n get fixed(): boolean {\n return checkFixedPosition(this.elementRef.nativeElement);\n }\n\n @tuiPure\n protected toggleDropdown(value: boolean): void {\n if (value) {\n this.openDropdownBox();\n } else {\n this.closeDropdownBox();\n }\n }\n\n protected openDropdownBox(): void {\n if (this.dropdownBoxRef !== null) {\n return;\n }\n\n const componentFactory = this.componentFactoryResolver.resolveComponentFactory(\n TuiDropdownBoxComponent,\n );\n\n this.dropdownBoxRef = this.portalService.add(componentFactory, this.injector);\n this.dropdownBoxRef.changeDetectorRef.detectChanges();\n }\n\n protected closeDropdownBox(): void {\n if (this.dropdownBoxRef === null) {\n return;\n }\n\n this.portalService.remove(this.dropdownBoxRef);\n this.dropdownBoxRef = null;\n }\n}\n","import {Directive, ElementRef, Input, OnDestroy} from '@angular/core';\nimport {TuiActiveZoneDirective, tuiDefaultProp} from '@taiga-ui/cdk';\nimport {TuiHintService} from '@taiga-ui/core/services';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiAbstractHintOptions} from './abstract-hint-options';\n\n@Directive()\nexport abstract class AbstractTuiHint implements OnDestroy {\n @Input(`tuiHintMode`)\n @tuiDefaultProp()\n mode: TuiAbstractHintOptions['mode'] = this.options.mode;\n\n @Input(`tuiHintDirection`)\n @tuiDefaultProp()\n direction: TuiAbstractHintOptions['direction'] = this.options.direction;\n\n content: PolymorpheusContent = ``;\n\n protected constructor(\n protected readonly elementRef: ElementRef<HTMLElement>,\n protected readonly hintService: TuiHintService,\n readonly activeZone: TuiActiveZoneDirective | null,\n protected readonly options: TuiAbstractHintOptions,\n ) {}\n\n abstract getElementClientRect(): ClientRect;\n\n ngOnDestroy(): void {\n this.hideTooltip();\n }\n\n protected showTooltip(): void {\n this.hintService.add(this);\n }\n\n protected hideTooltip(): void {\n this.hintService.remove(this);\n }\n}\n","import {TuiDirection, TuiHintModeT} from '@taiga-ui/core/types';\n\nexport interface TuiAbstractHintOptions {\n readonly mode: TuiHintModeT | null;\n readonly direction: TuiDirection;\n}\n\n/** Default values for abstract hint options */\nexport const TUI_ABSTRACT_HINT_DEFAULT_OPTIONS: TuiAbstractHintOptions = {\n mode: null,\n direction: `bottom-left`,\n};\n","import {Directive, Inject} from '@angular/core';\nimport {AbstractTuiControl} from '@taiga-ui/cdk';\nimport {TuiTextfieldHost} from '@taiga-ui/core/interfaces';\n\n// @dynamic\n@Directive()\nexport abstract class TuiAbstractTextfieldHost<T extends AbstractTuiControl<any>>\n implements TuiTextfieldHost\n{\n constructor(@Inject(AbstractTuiControl) protected readonly host: T) {}\n\n get readOnly(): boolean {\n return this.host.readOnly;\n }\n\n get disabled(): boolean {\n return this.host.computedDisabled;\n }\n\n get invalid(): boolean {\n return this.host.computedInvalid;\n }\n\n get focusable(): boolean {\n return this.host.computedFocusable;\n }\n\n get value(): string {\n return String(this.host.value);\n }\n\n abstract onValueChange(value: string): void;\n\n process(_input: HTMLInputElement): void {}\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AA6BA;;IAyCI,6BACqB,wBAAkD,EAClD,QAAkB,EAClB,aAA+B,EAC7B,UAAmC,EAC7C,UAAyC;QAJjC,6BAAwB,GAAxB,wBAAwB,CAA0B;QAClD,aAAQ,GAAR,QAAQ,CAAU;QAClB,kBAAa,GAAb,aAAa,CAAkB;QAC7B,eAAU,GAAV,UAAU,CAAyB;QAC7C,eAAU,GAAV,UAAU,CAA+B;QArCtD,YAAO,GAAwB,EAAE,CAAC;QAIlC,oBAAe,GAAmD,IAAI,CAAC;QAIvE,cAAS,GAAG,kBAAkB,CAAC;QAI/B,cAAS,GAAG,kBAAkB,CAAC;QAI/B,UAAK,GAA2B,MAAM,CAAC;QAIvC,cAAS,GAAgC,IAAI,CAAC;QAI9C,UAAK,GAAG,KAAK,CAAC;QAId,kBAAa,GAAsB,KAAK,CAAC;QAEzC,mBAAc,GAAiD,IAAI,CAAC;KAQhE;IAEJ,yCAAW,GAAX;QACI,IAAI,CAAC,gBAAgB,EAAE,CAAC;KAC3B;IAED,gDAAkB,GAAlB;;QAEI,IAAI,IAAI,CAAC,cAAc,KAAK,IAAI,EAAE;YAC9B,IAAI,CAAC,cAAc,CAAC,iBAAiB,CAAC,aAAa,EAAE,CAAC;YACtD,IAAI,CAAC,cAA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