@taiga-ui/legacy 4.0.0-alpha.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 (658) hide show
  1. package/LICENSE +190 -0
  2. package/README.md +22 -0
  3. package/classes/abstract-native-select.d.ts +20 -0
  4. package/classes/abstract-textfield-host.d.ts +19 -0
  5. package/classes/control.d.ts +59 -0
  6. package/classes/index.d.ts +8 -0
  7. package/classes/interactive.d.ts +35 -0
  8. package/classes/multiple-control.d.ts +11 -0
  9. package/classes/named-day.d.ts +11 -0
  10. package/classes/nullable-control.d.ts +10 -0
  11. package/classes/stringifiable-item.d.ts +11 -0
  12. package/components/arrow/arrow.component.d.ts +22 -0
  13. package/components/arrow/arrow.options.d.ts +23 -0
  14. package/components/arrow/arrow.providers.d.ts +24 -0
  15. package/components/arrow/index.d.ts +3 -0
  16. package/components/color-selector/color-edit/color-edit.component.d.ts +21 -0
  17. package/components/color-selector/color-edit/color-edit.module.d.ts +19 -0
  18. package/components/color-selector/color-picker/color-picker.component.d.ts +25 -0
  19. package/components/color-selector/color-picker/color-picker.module.d.ts +13 -0
  20. package/components/color-selector/color-selector.component.d.ts +55 -0
  21. package/components/color-selector/color-selector.module.d.ts +23 -0
  22. package/components/color-selector/flat-picker/flat-picker.component.d.ts +15 -0
  23. package/components/color-selector/flat-picker/flat-picker.module.d.ts +11 -0
  24. package/components/color-selector/index.d.ts +15 -0
  25. package/components/color-selector/linear-multi-picker/linear-multi-picker.component.d.ts +20 -0
  26. package/components/color-selector/linear-multi-picker/linear-multi-picker.module.d.ts +11 -0
  27. package/components/color-selector/linear-picker/linear-picker.component.d.ts +13 -0
  28. package/components/color-selector/linear-picker/linear-picker.module.d.ts +11 -0
  29. package/components/color-selector/palette/palette.component.d.ts +13 -0
  30. package/components/color-selector/palette/palette.module.d.ts +12 -0
  31. package/components/color-selector/services/picker.service.d.ts +11 -0
  32. package/components/combo-box/combo-box-strict.directive.d.ts +11 -0
  33. package/components/combo-box/combo-box.component.d.ts +50 -0
  34. package/components/combo-box/combo-box.directive.d.ts +12 -0
  35. package/components/combo-box/combo-box.module.d.ts +19 -0
  36. package/components/combo-box/index.d.ts +4 -0
  37. package/components/index.d.ts +33 -0
  38. package/components/input/index.d.ts +3 -0
  39. package/components/input/input.component.d.ts +30 -0
  40. package/components/input/input.directive.d.ts +11 -0
  41. package/components/input/input.module.d.ts +14 -0
  42. package/components/input-color/index.d.ts +2 -0
  43. package/components/input-color/input-color.component.d.ts +29 -0
  44. package/components/input-color/input-color.module.d.ts +16 -0
  45. package/components/input-copy/index.d.ts +4 -0
  46. package/components/input-copy/input-copy.component.d.ts +33 -0
  47. package/components/input-copy/input-copy.directive.d.ts +11 -0
  48. package/components/input-copy/input-copy.module.d.ts +18 -0
  49. package/components/input-copy/input-copy.options.d.ts +26 -0
  50. package/components/input-date/index.d.ts +3 -0
  51. package/components/input-date/input-date.component.d.ts +64 -0
  52. package/components/input-date/input-date.directive.d.ts +18 -0
  53. package/components/input-date/input-date.module.d.ts +23 -0
  54. package/components/input-date/native-date/native-date.component.d.ts +14 -0
  55. package/components/input-date-multi/index.d.ts +2 -0
  56. package/components/input-date-multi/input-date-multi.component.d.ts +69 -0
  57. package/components/input-date-multi/input-date-multi.module.d.ts +23 -0
  58. package/components/input-date-range/index.d.ts +3 -0
  59. package/components/input-date-range/input-date-range.component.d.ts +70 -0
  60. package/components/input-date-range/input-date-range.directive.d.ts +15 -0
  61. package/components/input-date-range/input-date-range.module.d.ts +21 -0
  62. package/components/input-date-time/index.d.ts +3 -0
  63. package/components/input-date-time/input-date-time.component.d.ts +80 -0
  64. package/components/input-date-time/input-date-time.directive.d.ts +16 -0
  65. package/components/input-date-time/input-date-time.module.d.ts +22 -0
  66. package/components/input-date-time/native-date-time/native-date-time.directive.d.ts +9 -0
  67. package/components/input-month/index.d.ts +3 -0
  68. package/components/input-month/input-month.component.d.ts +44 -0
  69. package/components/input-month/input-month.directive.d.ts +18 -0
  70. package/components/input-month/input-month.module.d.ts +18 -0
  71. package/components/input-month-range/index.d.ts +3 -0
  72. package/components/input-month-range/input-month-range.component.d.ts +38 -0
  73. package/components/input-month-range/input-month-range.directive.d.ts +18 -0
  74. package/components/input-month-range/input-month-range.module.d.ts +17 -0
  75. package/components/input-number/index.d.ts +4 -0
  76. package/components/input-number/input-number.component.d.ts +62 -0
  77. package/components/input-number/input-number.directive.d.ts +15 -0
  78. package/components/input-number/input-number.module.d.ts +17 -0
  79. package/components/input-number/input-number.options.d.ts +27 -0
  80. package/components/input-password/index.d.ts +4 -0
  81. package/components/input-password/input-password.component.d.ts +33 -0
  82. package/components/input-password/input-password.directive.d.ts +15 -0
  83. package/components/input-password/input-password.module.d.ts +19 -0
  84. package/components/input-password/input-password.options.d.ts +25 -0
  85. package/components/input-phone/index.d.ts +4 -0
  86. package/components/input-phone/input-phone.component.d.ts +51 -0
  87. package/components/input-phone/input-phone.directive.d.ts +16 -0
  88. package/components/input-phone/input-phone.module.d.ts +15 -0
  89. package/components/input-phone/input-phone.options.d.ts +22 -0
  90. package/components/input-phone/utils/complete-phone-insertion-preprocessor.d.ts +9 -0
  91. package/components/input-phone/utils/create-phone-mask-expression.d.ts +7 -0
  92. package/components/input-phone/utils/index.d.ts +2 -0
  93. package/components/input-phone-international/index.d.ts +3 -0
  94. package/components/input-phone-international/input-phone-international.component.d.ts +41 -0
  95. package/components/input-phone-international/input-phone-international.options.d.ts +22 -0
  96. package/components/input-phone-international/utils/extract-value-from-event.d.ts +1 -0
  97. package/components/input-range/index.d.ts +2 -0
  98. package/components/input-range/input-range.component.d.ts +55 -0
  99. package/components/input-range/input-range.module.d.ts +18 -0
  100. package/components/input-slider/index.d.ts +2 -0
  101. package/components/input-slider/input-slider.component.d.ts +41 -0
  102. package/components/input-slider/input-slider.module.d.ts +17 -0
  103. package/components/input-tag/index.d.ts +3 -0
  104. package/components/input-tag/input-tag.component.d.ts +97 -0
  105. package/components/input-tag/input-tag.module.d.ts +21 -0
  106. package/components/input-tag/input-tag.options.d.ts +23 -0
  107. package/components/input-time/index.d.ts +4 -0
  108. package/components/input-time/input-time.component.d.ts +63 -0
  109. package/components/input-time/input-time.directive.d.ts +16 -0
  110. package/components/input-time/input-time.module.d.ts +22 -0
  111. package/components/input-time/input-time.options.d.ts +35 -0
  112. package/components/input-time/native-time/native-time.component.d.ts +12 -0
  113. package/components/input-year/index.d.ts +3 -0
  114. package/components/input-year/input-year.component.d.ts +35 -0
  115. package/components/input-year/input-year.directive.d.ts +13 -0
  116. package/components/input-year/input-year.module.d.ts +17 -0
  117. package/components/island/index.d.ts +1 -0
  118. package/components/island/island.directive.d.ts +19 -0
  119. package/components/multi-select/hide-selected.pipe.d.ts +11 -0
  120. package/components/multi-select/index.d.ts +10 -0
  121. package/components/multi-select/multi-select-group/multi-select-group.component.d.ts +23 -0
  122. package/components/multi-select/multi-select-group/multi-select-group.directive.d.ts +8 -0
  123. package/components/multi-select/multi-select.component.d.ts +68 -0
  124. package/components/multi-select/multi-select.directive.d.ts +17 -0
  125. package/components/multi-select/multi-select.module.d.ts +30 -0
  126. package/components/multi-select/multi-select.options.d.ts +23 -0
  127. package/components/multi-select/native-multi-select/native-multi-select-group.component.d.ts +9 -0
  128. package/components/multi-select/native-multi-select/native-multi-select.component.d.ts +8 -0
  129. package/components/multi-select/native-multi-select/native-multi-select.d.ts +11 -0
  130. package/components/multi-select-option/index.d.ts +2 -0
  131. package/components/multi-select-option/multi-select-option.component.d.ts +12 -0
  132. package/components/multi-select-option/multi-select-option.module.d.ts +12 -0
  133. package/components/primitive-textfield/index.d.ts +7 -0
  134. package/components/primitive-textfield/primitive-textfield-options.d.ts +22 -0
  135. package/components/primitive-textfield/primitive-textfield-types.d.ts +14 -0
  136. package/components/primitive-textfield/primitive-textfield.component.d.ts +74 -0
  137. package/components/primitive-textfield/primitive-textfield.directive.d.ts +13 -0
  138. package/components/primitive-textfield/primitive-textfield.module.d.ts +20 -0
  139. package/components/primitive-textfield/textfield/textfield.component.d.ts +13 -0
  140. package/components/primitive-textfield/value-decoration/value-decoration.component.d.ts +22 -0
  141. package/components/select/index.d.ts +6 -0
  142. package/components/select/native-select/native-select-group.component.d.ts +13 -0
  143. package/components/select/native-select/native-select.component.d.ts +12 -0
  144. package/components/select/select.component.d.ts +43 -0
  145. package/components/select/select.directive.d.ts +15 -0
  146. package/components/select/select.module.d.ts +23 -0
  147. package/components/select/select.options.d.ts +22 -0
  148. package/components/select-option/index.d.ts +2 -0
  149. package/components/select-option/select-option.component.d.ts +33 -0
  150. package/components/select-option/select-option.module.d.ts +13 -0
  151. package/components/sheet/components/sheet/sheet.component.d.ts +31 -0
  152. package/components/sheet/components/sheet/sheet.providers.d.ts +2 -0
  153. package/components/sheet/components/sheet-bar/sheet-bar.component.d.ts +10 -0
  154. package/components/sheet/components/sheet-heading/sheet-heading.component.d.ts +14 -0
  155. package/components/sheet/components/sheets-host/sheets-host.component.d.ts +15 -0
  156. package/components/sheet/directives/sheet-close/sheet-close.directive.d.ts +14 -0
  157. package/components/sheet/directives/sheet-stop/sheet-stop.directive.d.ts +6 -0
  158. package/components/sheet/directives/sheet-top/sheet-top.directive.d.ts +14 -0
  159. package/components/sheet/directives/sheet-wrapper/sheet-wrapper.directive.d.ts +17 -0
  160. package/components/sheet/index.d.ts +14 -0
  161. package/components/sheet/sheet-options.d.ts +24 -0
  162. package/components/sheet/sheet-tokens.d.ts +18 -0
  163. package/components/sheet/sheet.d.ts +19 -0
  164. package/components/sheet/sheet.directive.d.ts +16 -0
  165. package/components/sheet/sheet.module.d.ts +23 -0
  166. package/components/sheet/sheet.service.d.ts +16 -0
  167. package/components/svg/content-processor.d.ts +18 -0
  168. package/components/svg/deprecated-icons.d.ts +4 -0
  169. package/components/svg/index.d.ts +5 -0
  170. package/components/svg/svg-options.d.ts +44 -0
  171. package/components/svg/svg.component.d.ts +49 -0
  172. package/components/svg/svg.service.d.ts +21 -0
  173. package/components/table-bar/index.d.ts +5 -0
  174. package/components/table-bar/table-bar.component.d.ts +13 -0
  175. package/components/table-bar/table-bar.directive.d.ts +7 -0
  176. package/components/table-bar/table-bar.options.d.ts +14 -0
  177. package/components/table-bar/table-bars-host.component.d.ts +6 -0
  178. package/components/table-bar/table-bars.service.d.ts +10 -0
  179. package/components/tag/index.d.ts +3 -0
  180. package/components/tag/tag.component.d.ts +43 -0
  181. package/components/tag/tag.module.d.ts +15 -0
  182. package/components/tag/tag.options.d.ts +25 -0
  183. package/components/textarea/index.d.ts +3 -0
  184. package/components/textarea/textarea.component.d.ts +53 -0
  185. package/components/textarea/textarea.directive.d.ts +11 -0
  186. package/components/textarea/textarea.module.d.ts +20 -0
  187. package/components/tooltip/index.d.ts +2 -0
  188. package/components/tooltip/tooltip.component.d.ts +15 -0
  189. package/components/tooltip/tooltip.module.d.ts +15 -0
  190. package/directives/index.d.ts +5 -0
  191. package/directives/legacy-dropdown-open-monitor/index.d.ts +1 -0
  192. package/directives/legacy-dropdown-open-monitor/legacy-dropdown-open-monitor.d.ts +9 -0
  193. package/directives/textfield-controller/index.d.ts +14 -0
  194. package/directives/textfield-controller/textfield-appearance.directive.d.ts +14 -0
  195. package/directives/textfield-controller/textfield-cleaner.directive.d.ts +14 -0
  196. package/directives/textfield-controller/textfield-controller.module.d.ts +20 -0
  197. package/directives/textfield-controller/textfield-controller.provider.d.ts +11 -0
  198. package/directives/textfield-controller/textfield-custom-content.directive.d.ts +15 -0
  199. package/directives/textfield-controller/textfield-filler.directive.d.ts +14 -0
  200. package/directives/textfield-controller/textfield-icon-left.directive.d.ts +17 -0
  201. package/directives/textfield-controller/textfield-icon.directive.d.ts +17 -0
  202. package/directives/textfield-controller/textfield-label-outside.directive.d.ts +14 -0
  203. package/directives/textfield-controller/textfield-postfix.directive.d.ts +14 -0
  204. package/directives/textfield-controller/textfield-prefix.directive.d.ts +14 -0
  205. package/directives/textfield-controller/textfield-size.directive.d.ts +15 -0
  206. package/directives/textfield-controller/textfield.controller.d.ts +41 -0
  207. package/directives/textfield-controller/textfield.options.d.ts +25 -0
  208. package/directives/unfinished-validator/index.d.ts +2 -0
  209. package/directives/unfinished-validator/unfinished-validator.directive.d.ts +11 -0
  210. package/directives/unfinished-validator/unfinished.validator.d.ts +7 -0
  211. package/directives/value-accessor/index.d.ts +3 -0
  212. package/directives/value-accessor/value-accessor.directive.d.ts +8 -0
  213. package/directives/value-accessor/value-accessor.module.d.ts +10 -0
  214. package/directives/value-accessor/value-accessor.provider.d.ts +5 -0
  215. package/directives/wrapper/README.md +19 -0
  216. package/directives/wrapper/index.d.ts +2 -0
  217. package/directives/wrapper/wrapper.directive.d.ts +21 -0
  218. package/directives/wrapper/wrapper.module.d.ts +10 -0
  219. package/esm2022/classes/abstract-native-select.mjs +40 -0
  220. package/esm2022/classes/abstract-textfield-host.mjs +37 -0
  221. package/esm2022/classes/control.mjs +176 -0
  222. package/esm2022/classes/index.mjs +9 -0
  223. package/esm2022/classes/interactive.mjs +85 -0
  224. package/esm2022/classes/multiple-control.mjs +21 -0
  225. package/esm2022/classes/named-day.mjs +14 -0
  226. package/esm2022/classes/nullable-control.mjs +18 -0
  227. package/esm2022/classes/stringifiable-item.mjs +14 -0
  228. package/esm2022/classes/taiga-ui-legacy-classes.mjs +5 -0
  229. package/esm2022/components/arrow/arrow.component.mjs +48 -0
  230. package/esm2022/components/arrow/arrow.options.mjs +21 -0
  231. package/esm2022/components/arrow/arrow.providers.mjs +21 -0
  232. package/esm2022/components/arrow/index.mjs +4 -0
  233. package/esm2022/components/arrow/taiga-ui-legacy-components-arrow.mjs +5 -0
  234. package/esm2022/components/color-selector/color-edit/color-edit.component.mjs +62 -0
  235. package/esm2022/components/color-selector/color-edit/color-edit.module.mjs +54 -0
  236. package/esm2022/components/color-selector/color-picker/color-picker.component.mjs +73 -0
  237. package/esm2022/components/color-selector/color-picker/color-picker.module.mjs +24 -0
  238. package/esm2022/components/color-selector/color-selector.component.mjs +250 -0
  239. package/esm2022/components/color-selector/color-selector.module.mjs +66 -0
  240. package/esm2022/components/color-selector/flat-picker/flat-picker.component.mjs +37 -0
  241. package/esm2022/components/color-selector/flat-picker/flat-picker.module.mjs +22 -0
  242. package/esm2022/components/color-selector/index.mjs +16 -0
  243. package/esm2022/components/color-selector/linear-multi-picker/linear-multi-picker.component.mjs +65 -0
  244. package/esm2022/components/color-selector/linear-multi-picker/linear-multi-picker.module.mjs +22 -0
  245. package/esm2022/components/color-selector/linear-picker/linear-picker.component.mjs +34 -0
  246. package/esm2022/components/color-selector/linear-picker/linear-picker.module.mjs +22 -0
  247. package/esm2022/components/color-selector/palette/palette.component.mjs +26 -0
  248. package/esm2022/components/color-selector/palette/palette.module.mjs +24 -0
  249. package/esm2022/components/color-selector/services/picker.service.mjs +30 -0
  250. package/esm2022/components/color-selector/taiga-ui-legacy-components-color-selector.mjs +5 -0
  251. package/esm2022/components/combo-box/combo-box-strict.directive.mjs +32 -0
  252. package/esm2022/components/combo-box/combo-box.component.mjs +181 -0
  253. package/esm2022/components/combo-box/combo-box.directive.mjs +26 -0
  254. package/esm2022/components/combo-box/combo-box.module.mjs +70 -0
  255. package/esm2022/components/combo-box/index.mjs +5 -0
  256. package/esm2022/components/combo-box/taiga-ui-legacy-components-combo-box.mjs +5 -0
  257. package/esm2022/components/index.mjs +34 -0
  258. package/esm2022/components/input/index.mjs +4 -0
  259. package/esm2022/components/input/input.component.mjs +92 -0
  260. package/esm2022/components/input/input.directive.mjs +23 -0
  261. package/esm2022/components/input/input.module.mjs +33 -0
  262. package/esm2022/components/input/taiga-ui-legacy-components-input.mjs +5 -0
  263. package/esm2022/components/input-color/index.mjs +3 -0
  264. package/esm2022/components/input-color/input-color.component.mjs +85 -0
  265. package/esm2022/components/input-color/input-color.module.mjs +43 -0
  266. package/esm2022/components/input-color/taiga-ui-legacy-components-input-color.mjs +5 -0
  267. package/esm2022/components/input-copy/index.mjs +5 -0
  268. package/esm2022/components/input-copy/input-copy.component.mjs +106 -0
  269. package/esm2022/components/input-copy/input-copy.directive.mjs +23 -0
  270. package/esm2022/components/input-copy/input-copy.module.mjs +55 -0
  271. package/esm2022/components/input-copy/input-copy.options.mjs +21 -0
  272. package/esm2022/components/input-copy/taiga-ui-legacy-components-input-copy.mjs +5 -0
  273. package/esm2022/components/input-date/index.mjs +4 -0
  274. package/esm2022/components/input-date/input-date.component.mjs +220 -0
  275. package/esm2022/components/input-date/input-date.directive.mjs +41 -0
  276. package/esm2022/components/input-date/input-date.module.mjs +74 -0
  277. package/esm2022/components/input-date/native-date/native-date.component.mjs +51 -0
  278. package/esm2022/components/input-date/taiga-ui-legacy-components-input-date.mjs +5 -0
  279. package/esm2022/components/input-date-multi/index.mjs +3 -0
  280. package/esm2022/components/input-date-multi/input-date-multi.component.mjs +215 -0
  281. package/esm2022/components/input-date-multi/input-date-multi.module.mjs +70 -0
  282. package/esm2022/components/input-date-multi/taiga-ui-legacy-components-input-date-multi.mjs +5 -0
  283. package/esm2022/components/input-date-range/index.mjs +4 -0
  284. package/esm2022/components/input-date-range/input-date-range.component.mjs +267 -0
  285. package/esm2022/components/input-date-range/input-date-range.directive.mjs +34 -0
  286. package/esm2022/components/input-date-range/input-date-range.module.mjs +70 -0
  287. package/esm2022/components/input-date-range/taiga-ui-legacy-components-input-date-range.mjs +5 -0
  288. package/esm2022/components/input-date-time/index.mjs +4 -0
  289. package/esm2022/components/input-date-time/input-date-time.component.mjs +305 -0
  290. package/esm2022/components/input-date-time/input-date-time.directive.mjs +35 -0
  291. package/esm2022/components/input-date-time/input-date-time.module.mjs +77 -0
  292. package/esm2022/components/input-date-time/native-date-time/native-date-time.directive.mjs +44 -0
  293. package/esm2022/components/input-date-time/taiga-ui-legacy-components-input-date-time.mjs +5 -0
  294. package/esm2022/components/input-month/index.mjs +4 -0
  295. package/esm2022/components/input-month/input-month.component.mjs +135 -0
  296. package/esm2022/components/input-month/input-month.directive.mjs +44 -0
  297. package/esm2022/components/input-month/input-month.module.mjs +56 -0
  298. package/esm2022/components/input-month/taiga-ui-legacy-components-input-month.mjs +5 -0
  299. package/esm2022/components/input-month-range/index.mjs +4 -0
  300. package/esm2022/components/input-month-range/input-month-range.component.mjs +123 -0
  301. package/esm2022/components/input-month-range/input-month-range.directive.mjs +50 -0
  302. package/esm2022/components/input-month-range/input-month-range.module.mjs +52 -0
  303. package/esm2022/components/input-month-range/taiga-ui-legacy-components-input-month-range.mjs +5 -0
  304. package/esm2022/components/input-number/index.mjs +5 -0
  305. package/esm2022/components/input-number/input-number.component.mjs +263 -0
  306. package/esm2022/components/input-number/input-number.directive.mjs +36 -0
  307. package/esm2022/components/input-number/input-number.module.mjs +47 -0
  308. package/esm2022/components/input-number/input-number.options.mjs +26 -0
  309. package/esm2022/components/input-number/taiga-ui-legacy-components-input-number.mjs +5 -0
  310. package/esm2022/components/input-password/index.mjs +5 -0
  311. package/esm2022/components/input-password/input-password.component.mjs +81 -0
  312. package/esm2022/components/input-password/input-password.directive.mjs +33 -0
  313. package/esm2022/components/input-password/input-password.module.mjs +59 -0
  314. package/esm2022/components/input-password/input-password.options.mjs +21 -0
  315. package/esm2022/components/input-password/taiga-ui-legacy-components-input-password.mjs +5 -0
  316. package/esm2022/components/input-phone/index.mjs +5 -0
  317. package/esm2022/components/input-phone/input-phone.component.mjs +220 -0
  318. package/esm2022/components/input-phone/input-phone.directive.mjs +36 -0
  319. package/esm2022/components/input-phone/input-phone.module.mjs +47 -0
  320. package/esm2022/components/input-phone/input-phone.options.mjs +21 -0
  321. package/esm2022/components/input-phone/taiga-ui-legacy-components-input-phone.mjs +5 -0
  322. package/esm2022/components/input-phone/utils/complete-phone-insertion-preprocessor.mjs +41 -0
  323. package/esm2022/components/input-phone/utils/create-phone-mask-expression.mjs +17 -0
  324. package/esm2022/components/input-phone/utils/index.mjs +3 -0
  325. package/esm2022/components/input-phone-international/index.mjs +4 -0
  326. package/esm2022/components/input-phone-international/input-phone-international.component.mjs +184 -0
  327. package/esm2022/components/input-phone-international/input-phone-international.options.mjs +20 -0
  328. package/esm2022/components/input-phone-international/taiga-ui-legacy-components-input-phone-international.mjs +5 -0
  329. package/esm2022/components/input-phone-international/utils/extract-value-from-event.mjs +7 -0
  330. package/esm2022/components/input-range/index.mjs +3 -0
  331. package/esm2022/components/input-range/input-range.component.mjs +206 -0
  332. package/esm2022/components/input-range/input-range.module.mjs +54 -0
  333. package/esm2022/components/input-range/taiga-ui-legacy-components-input-range.mjs +5 -0
  334. package/esm2022/components/input-slider/index.mjs +3 -0
  335. package/esm2022/components/input-slider/input-slider.component.mjs +153 -0
  336. package/esm2022/components/input-slider/input-slider.module.mjs +47 -0
  337. package/esm2022/components/input-slider/taiga-ui-legacy-components-input-slider.mjs +5 -0
  338. package/esm2022/components/input-tag/index.mjs +4 -0
  339. package/esm2022/components/input-tag/input-tag.component.mjs +418 -0
  340. package/esm2022/components/input-tag/input-tag.module.mjs +66 -0
  341. package/esm2022/components/input-tag/input-tag.options.mjs +21 -0
  342. package/esm2022/components/input-tag/taiga-ui-legacy-components-input-tag.mjs +5 -0
  343. package/esm2022/components/input-time/index.mjs +5 -0
  344. package/esm2022/components/input-time/input-time.component.mjs +278 -0
  345. package/esm2022/components/input-time/input-time.directive.mjs +38 -0
  346. package/esm2022/components/input-time/input-time.module.mjs +70 -0
  347. package/esm2022/components/input-time/input-time.options.mjs +31 -0
  348. package/esm2022/components/input-time/native-time/native-time.component.mjs +67 -0
  349. package/esm2022/components/input-time/taiga-ui-legacy-components-input-time.mjs +5 -0
  350. package/esm2022/components/input-year/index.mjs +4 -0
  351. package/esm2022/components/input-year/input-year.component.mjs +110 -0
  352. package/esm2022/components/input-year/input-year.directive.mjs +30 -0
  353. package/esm2022/components/input-year/input-year.module.mjs +52 -0
  354. package/esm2022/components/input-year/taiga-ui-legacy-components-input-year.mjs +5 -0
  355. package/esm2022/components/island/index.mjs +2 -0
  356. package/esm2022/components/island/island.directive.mjs +77 -0
  357. package/esm2022/components/island/taiga-ui-legacy-components-island.mjs +5 -0
  358. package/esm2022/components/multi-select/hide-selected.pipe.mjs +43 -0
  359. package/esm2022/components/multi-select/index.mjs +11 -0
  360. package/esm2022/components/multi-select/multi-select-group/multi-select-group.component.mjs +99 -0
  361. package/esm2022/components/multi-select/multi-select-group/multi-select-group.directive.mjs +65 -0
  362. package/esm2022/components/multi-select/multi-select.component.mjs +207 -0
  363. package/esm2022/components/multi-select/multi-select.directive.mjs +34 -0
  364. package/esm2022/components/multi-select/multi-select.module.mjs +114 -0
  365. package/esm2022/components/multi-select/multi-select.options.mjs +20 -0
  366. package/esm2022/components/multi-select/native-multi-select/native-multi-select-group.component.mjs +60 -0
  367. package/esm2022/components/multi-select/native-multi-select/native-multi-select.component.mjs +56 -0
  368. package/esm2022/components/multi-select/native-multi-select/native-multi-select.mjs +19 -0
  369. package/esm2022/components/multi-select/taiga-ui-legacy-components-multi-select.mjs +5 -0
  370. package/esm2022/components/multi-select-option/index.mjs +3 -0
  371. package/esm2022/components/multi-select-option/multi-select-option.component.mjs +28 -0
  372. package/esm2022/components/multi-select-option/multi-select-option.module.mjs +23 -0
  373. package/esm2022/components/multi-select-option/taiga-ui-legacy-components-multi-select-option.mjs +5 -0
  374. package/esm2022/components/primitive-textfield/index.mjs +8 -0
  375. package/esm2022/components/primitive-textfield/primitive-textfield-options.mjs +17 -0
  376. package/esm2022/components/primitive-textfield/primitive-textfield-types.mjs +2 -0
  377. package/esm2022/components/primitive-textfield/primitive-textfield.component.mjs +253 -0
  378. package/esm2022/components/primitive-textfield/primitive-textfield.directive.mjs +31 -0
  379. package/esm2022/components/primitive-textfield/primitive-textfield.module.mjs +65 -0
  380. package/esm2022/components/primitive-textfield/taiga-ui-legacy-components-primitive-textfield.mjs +5 -0
  381. package/esm2022/components/primitive-textfield/textfield/textfield.component.mjs +39 -0
  382. package/esm2022/components/primitive-textfield/value-decoration/value-decoration.component.mjs +71 -0
  383. package/esm2022/components/select/index.mjs +7 -0
  384. package/esm2022/components/select/native-select/native-select-group.component.mjs +60 -0
  385. package/esm2022/components/select/native-select/native-select.component.mjs +56 -0
  386. package/esm2022/components/select/select.component.mjs +119 -0
  387. package/esm2022/components/select/select.directive.mjs +32 -0
  388. package/esm2022/components/select/select.module.mjs +86 -0
  389. package/esm2022/components/select/select.options.mjs +19 -0
  390. package/esm2022/components/select/taiga-ui-legacy-components-select.mjs +5 -0
  391. package/esm2022/components/select-option/index.mjs +3 -0
  392. package/esm2022/components/select-option/select-option.component.mjs +71 -0
  393. package/esm2022/components/select-option/select-option.module.mjs +24 -0
  394. package/esm2022/components/select-option/taiga-ui-legacy-components-select-option.mjs +5 -0
  395. package/esm2022/components/sheet/components/sheet/sheet.component.mjs +118 -0
  396. package/esm2022/components/sheet/components/sheet/sheet.providers.mjs +42 -0
  397. package/esm2022/components/sheet/components/sheet-bar/sheet-bar.component.mjs +27 -0
  398. package/esm2022/components/sheet/components/sheet-heading/sheet-heading.component.mjs +31 -0
  399. package/esm2022/components/sheet/components/sheets-host/sheets-host.component.mjs +46 -0
  400. package/esm2022/components/sheet/directives/sheet-close/sheet-close.directive.mjs +38 -0
  401. package/esm2022/components/sheet/directives/sheet-stop/sheet-stop.directive.mjs +37 -0
  402. package/esm2022/components/sheet/directives/sheet-top/sheet-top.directive.mjs +51 -0
  403. package/esm2022/components/sheet/directives/sheet-wrapper/sheet-wrapper.directive.mjs +76 -0
  404. package/esm2022/components/sheet/index.mjs +15 -0
  405. package/esm2022/components/sheet/sheet-options.mjs +21 -0
  406. package/esm2022/components/sheet/sheet-tokens.mjs +17 -0
  407. package/esm2022/components/sheet/sheet.directive.mjs +38 -0
  408. package/esm2022/components/sheet/sheet.mjs +2 -0
  409. package/esm2022/components/sheet/sheet.module.mjs +74 -0
  410. package/esm2022/components/sheet/sheet.service.mjs +51 -0
  411. package/esm2022/components/sheet/taiga-ui-legacy-components-sheet.mjs +5 -0
  412. package/esm2022/components/svg/content-processor.mjs +40 -0
  413. package/esm2022/components/svg/deprecated-icons.mjs +62 -0
  414. package/esm2022/components/svg/index.mjs +6 -0
  415. package/esm2022/components/svg/svg-options.mjs +76 -0
  416. package/esm2022/components/svg/svg.component.mjs +149 -0
  417. package/esm2022/components/svg/svg.service.mjs +64 -0
  418. package/esm2022/components/svg/taiga-ui-legacy-components-svg.mjs +5 -0
  419. package/esm2022/components/table-bar/index.mjs +6 -0
  420. package/esm2022/components/table-bar/table-bar.component.mjs +33 -0
  421. package/esm2022/components/table-bar/table-bar.directive.mjs +21 -0
  422. package/esm2022/components/table-bar/table-bar.options.mjs +16 -0
  423. package/esm2022/components/table-bar/table-bars-host.component.mjs +35 -0
  424. package/esm2022/components/table-bar/table-bars.service.mjs +21 -0
  425. package/esm2022/components/table-bar/taiga-ui-legacy-components-table-bar.mjs +5 -0
  426. package/esm2022/components/tag/index.mjs +4 -0
  427. package/esm2022/components/tag/tag.component.mjs +174 -0
  428. package/esm2022/components/tag/tag.module.mjs +41 -0
  429. package/esm2022/components/tag/tag.options.mjs +22 -0
  430. package/esm2022/components/tag/taiga-ui-legacy-components-tag.mjs +5 -0
  431. package/esm2022/components/taiga-ui-legacy-components.mjs +5 -0
  432. package/esm2022/components/textarea/index.mjs +4 -0
  433. package/esm2022/components/textarea/taiga-ui-legacy-components-textarea.mjs +5 -0
  434. package/esm2022/components/textarea/textarea.component.mjs +192 -0
  435. package/esm2022/components/textarea/textarea.directive.mjs +23 -0
  436. package/esm2022/components/textarea/textarea.module.mjs +67 -0
  437. package/esm2022/components/tooltip/index.mjs +3 -0
  438. package/esm2022/components/tooltip/taiga-ui-legacy-components-tooltip.mjs +5 -0
  439. package/esm2022/components/tooltip/tooltip.component.mjs +50 -0
  440. package/esm2022/components/tooltip/tooltip.module.mjs +27 -0
  441. package/esm2022/directives/index.mjs +6 -0
  442. package/esm2022/directives/legacy-dropdown-open-monitor/index.mjs +2 -0
  443. package/esm2022/directives/legacy-dropdown-open-monitor/legacy-dropdown-open-monitor.mjs +40 -0
  444. package/esm2022/directives/legacy-dropdown-open-monitor/taiga-ui-legacy-directives-legacy-dropdown-open-monitor.mjs +5 -0
  445. package/esm2022/directives/taiga-ui-legacy-directives.mjs +5 -0
  446. package/esm2022/directives/textfield-controller/index.mjs +15 -0
  447. package/esm2022/directives/textfield-controller/taiga-ui-legacy-directives-textfield-controller.mjs +5 -0
  448. package/esm2022/directives/textfield-controller/textfield-appearance.directive.mjs +37 -0
  449. package/esm2022/directives/textfield-controller/textfield-cleaner.directive.mjs +31 -0
  450. package/esm2022/directives/textfield-controller/textfield-controller.module.mjs +75 -0
  451. package/esm2022/directives/textfield-controller/textfield-controller.provider.mjs +50 -0
  452. package/esm2022/directives/textfield-controller/textfield-custom-content.directive.mjs +31 -0
  453. package/esm2022/directives/textfield-controller/textfield-filler.directive.mjs +31 -0
  454. package/esm2022/directives/textfield-controller/textfield-icon-left.directive.mjs +27 -0
  455. package/esm2022/directives/textfield-controller/textfield-icon.directive.mjs +27 -0
  456. package/esm2022/directives/textfield-controller/textfield-label-outside.directive.mjs +35 -0
  457. package/esm2022/directives/textfield-controller/textfield-postfix.directive.mjs +31 -0
  458. package/esm2022/directives/textfield-controller/textfield-prefix.directive.mjs +31 -0
  459. package/esm2022/directives/textfield-controller/textfield-size.directive.mjs +31 -0
  460. package/esm2022/directives/textfield-controller/textfield.controller.mjs +48 -0
  461. package/esm2022/directives/textfield-controller/textfield.options.mjs +21 -0
  462. package/esm2022/directives/unfinished-validator/index.mjs +3 -0
  463. package/esm2022/directives/unfinished-validator/taiga-ui-legacy-directives-unfinished-validator.mjs +5 -0
  464. package/esm2022/directives/unfinished-validator/unfinished-validator.directive.mjs +28 -0
  465. package/esm2022/directives/unfinished-validator/unfinished.validator.mjs +18 -0
  466. package/esm2022/directives/value-accessor/index.mjs +4 -0
  467. package/esm2022/directives/value-accessor/taiga-ui-legacy-directives-value-accessor.mjs +5 -0
  468. package/esm2022/directives/value-accessor/value-accessor.directive.mjs +19 -0
  469. package/esm2022/directives/value-accessor/value-accessor.module.mjs +20 -0
  470. package/esm2022/directives/value-accessor/value-accessor.provider.mjs +13 -0
  471. package/esm2022/directives/wrapper/index.mjs +3 -0
  472. package/esm2022/directives/wrapper/taiga-ui-legacy-directives-wrapper.mjs +5 -0
  473. package/esm2022/directives/wrapper/wrapper.directive.mjs +85 -0
  474. package/esm2022/directives/wrapper/wrapper.module.mjs +20 -0
  475. package/esm2022/index.mjs +7 -0
  476. package/esm2022/pipes/format-phone/format-phone.pipe.mjs +53 -0
  477. package/esm2022/pipes/format-phone/index.mjs +2 -0
  478. package/esm2022/pipes/format-phone/taiga-ui-legacy-pipes-format-phone.mjs +5 -0
  479. package/esm2022/pipes/index.mjs +4 -0
  480. package/esm2022/pipes/iso-to-country-code/index.mjs +2 -0
  481. package/esm2022/pipes/iso-to-country-code/iso-to-country-code.pipe.mjs +44 -0
  482. package/esm2022/pipes/iso-to-country-code/taiga-ui-legacy-pipes-iso-to-country-code.mjs +5 -0
  483. package/esm2022/pipes/taiga-ui-legacy-pipes.mjs +5 -0
  484. package/esm2022/pipes/to-country-code/index.mjs +2 -0
  485. package/esm2022/pipes/to-country-code/taiga-ui-legacy-pipes-to-country-code.mjs +5 -0
  486. package/esm2022/pipes/to-country-code/to-country-code.pipe.mjs +74 -0
  487. package/esm2022/taiga-ui-legacy.mjs +5 -0
  488. package/esm2022/tokens/countries-masks.mjs +255 -0
  489. package/esm2022/tokens/focusable-item-accessor.mjs +14 -0
  490. package/esm2022/tokens/fonts-ready.mjs +10 -0
  491. package/esm2022/tokens/icons.mjs +7 -0
  492. package/esm2022/tokens/index.mjs +15 -0
  493. package/esm2022/tokens/is-apple.mjs +10 -0
  494. package/esm2022/tokens/is-chromium.mjs +9 -0
  495. package/esm2022/tokens/is-firefox.mjs +10 -0
  496. package/esm2022/tokens/is-stackblitz.mjs +8 -0
  497. package/esm2022/tokens/month-formatter.mjs +18 -0
  498. package/esm2022/tokens/sanitizer.mjs +7 -0
  499. package/esm2022/tokens/taiga-ui-legacy-tokens.mjs +5 -0
  500. package/esm2022/tokens/textfield-appearance.mjs +8 -0
  501. package/esm2022/tokens/textfield-host.mjs +14 -0
  502. package/esm2022/tokens/touch-supported.mjs +8 -0
  503. package/esm2022/tokens/value-accessor.mjs +7 -0
  504. package/esm2022/utils/date-mode-maskito-adapter.mjs +9 -0
  505. package/esm2022/utils/format-phone.mjs +60 -0
  506. package/esm2022/utils/get-border.mjs +23 -0
  507. package/esm2022/utils/get-max-allowed-phone-length.mjs +26 -0
  508. package/esm2022/utils/get-safe-area-size.mjs +18 -0
  509. package/esm2022/utils/icons-path-factory.mjs +22 -0
  510. package/esm2022/utils/index.mjs +14 -0
  511. package/esm2022/utils/is-apple.mjs +9 -0
  512. package/esm2022/utils/is-presumed-html-string.mjs +8 -0
  513. package/esm2022/utils/iso-to-country-code.mjs +16 -0
  514. package/esm2022/utils/not-kz-region.mjs +24 -0
  515. package/esm2022/utils/process-icon.mjs +34 -0
  516. package/esm2022/utils/specific-dropdown-controllers.mjs +9 -0
  517. package/esm2022/utils/status.mjs +2 -0
  518. package/esm2022/utils/taiga-ui-legacy-utils.mjs +5 -0
  519. package/fesm2022/taiga-ui-legacy-classes.mjs +391 -0
  520. package/fesm2022/taiga-ui-legacy-classes.mjs.map +1 -0
  521. package/fesm2022/taiga-ui-legacy-components-arrow.mjs +93 -0
  522. package/fesm2022/taiga-ui-legacy-components-arrow.mjs.map +1 -0
  523. package/fesm2022/taiga-ui-legacy-components-color-selector.mjs +725 -0
  524. package/fesm2022/taiga-ui-legacy-components-color-selector.mjs.map +1 -0
  525. package/fesm2022/taiga-ui-legacy-components-combo-box.mjs +294 -0
  526. package/fesm2022/taiga-ui-legacy-components-combo-box.mjs.map +1 -0
  527. package/fesm2022/taiga-ui-legacy-components-input-color.mjs +127 -0
  528. package/fesm2022/taiga-ui-legacy-components-input-color.mjs.map +1 -0
  529. package/fesm2022/taiga-ui-legacy-components-input-copy.mjs +195 -0
  530. package/fesm2022/taiga-ui-legacy-components-input-copy.mjs.map +1 -0
  531. package/fesm2022/taiga-ui-legacy-components-input-date-multi.mjs +283 -0
  532. package/fesm2022/taiga-ui-legacy-components-input-date-multi.mjs.map +1 -0
  533. package/fesm2022/taiga-ui-legacy-components-input-date-range.mjs +363 -0
  534. package/fesm2022/taiga-ui-legacy-components-input-date-range.mjs.map +1 -0
  535. package/fesm2022/taiga-ui-legacy-components-input-date-time.mjs +447 -0
  536. package/fesm2022/taiga-ui-legacy-components-input-date-time.mjs.map +1 -0
  537. package/fesm2022/taiga-ui-legacy-components-input-date.mjs +370 -0
  538. package/fesm2022/taiga-ui-legacy-components-input-date.mjs.map +1 -0
  539. package/fesm2022/taiga-ui-legacy-components-input-month-range.mjs +218 -0
  540. package/fesm2022/taiga-ui-legacy-components-input-month-range.mjs.map +1 -0
  541. package/fesm2022/taiga-ui-legacy-components-input-month.mjs +228 -0
  542. package/fesm2022/taiga-ui-legacy-components-input-month.mjs.map +1 -0
  543. package/fesm2022/taiga-ui-legacy-components-input-number.mjs +363 -0
  544. package/fesm2022/taiga-ui-legacy-components-input-number.mjs.map +1 -0
  545. package/fesm2022/taiga-ui-legacy-components-input-password.mjs +185 -0
  546. package/fesm2022/taiga-ui-legacy-components-input-password.mjs.map +1 -0
  547. package/fesm2022/taiga-ui-legacy-components-input-phone-international.mjs +214 -0
  548. package/fesm2022/taiga-ui-legacy-components-input-phone-international.mjs.map +1 -0
  549. package/fesm2022/taiga-ui-legacy-components-input-phone.mjs +371 -0
  550. package/fesm2022/taiga-ui-legacy-components-input-phone.mjs.map +1 -0
  551. package/fesm2022/taiga-ui-legacy-components-input-range.mjs +259 -0
  552. package/fesm2022/taiga-ui-legacy-components-input-range.mjs.map +1 -0
  553. package/fesm2022/taiga-ui-legacy-components-input-slider.mjs +198 -0
  554. package/fesm2022/taiga-ui-legacy-components-input-slider.mjs.map +1 -0
  555. package/fesm2022/taiga-ui-legacy-components-input-tag.mjs +501 -0
  556. package/fesm2022/taiga-ui-legacy-components-input-tag.mjs.map +1 -0
  557. package/fesm2022/taiga-ui-legacy-components-input-time.mjs +465 -0
  558. package/fesm2022/taiga-ui-legacy-components-input-time.mjs.map +1 -0
  559. package/fesm2022/taiga-ui-legacy-components-input-year.mjs +185 -0
  560. package/fesm2022/taiga-ui-legacy-components-input-year.mjs.map +1 -0
  561. package/fesm2022/taiga-ui-legacy-components-input.mjs +141 -0
  562. package/fesm2022/taiga-ui-legacy-components-input.mjs.map +1 -0
  563. package/fesm2022/taiga-ui-legacy-components-island.mjs +83 -0
  564. package/fesm2022/taiga-ui-legacy-components-island.mjs.map +1 -0
  565. package/fesm2022/taiga-ui-legacy-components-multi-select-option.mjs +53 -0
  566. package/fesm2022/taiga-ui-legacy-components-multi-select-option.mjs.map +1 -0
  567. package/fesm2022/taiga-ui-legacy-components-multi-select.mjs +644 -0
  568. package/fesm2022/taiga-ui-legacy-components-multi-select.mjs.map +1 -0
  569. package/fesm2022/taiga-ui-legacy-components-primitive-textfield.mjs +455 -0
  570. package/fesm2022/taiga-ui-legacy-components-primitive-textfield.mjs.map +1 -0
  571. package/fesm2022/taiga-ui-legacy-components-select-option.mjs +97 -0
  572. package/fesm2022/taiga-ui-legacy-components-select-option.mjs.map +1 -0
  573. package/fesm2022/taiga-ui-legacy-components-select.mjs +339 -0
  574. package/fesm2022/taiga-ui-legacy-components-select.mjs.map +1 -0
  575. package/fesm2022/taiga-ui-legacy-components-sheet.mjs +564 -0
  576. package/fesm2022/taiga-ui-legacy-components-sheet.mjs.map +1 -0
  577. package/fesm2022/taiga-ui-legacy-components-svg.mjs +379 -0
  578. package/fesm2022/taiga-ui-legacy-components-svg.mjs.map +1 -0
  579. package/fesm2022/taiga-ui-legacy-components-table-bar.mjs +115 -0
  580. package/fesm2022/taiga-ui-legacy-components-table-bar.mjs.map +1 -0
  581. package/fesm2022/taiga-ui-legacy-components-tag.mjs +238 -0
  582. package/fesm2022/taiga-ui-legacy-components-tag.mjs.map +1 -0
  583. package/fesm2022/taiga-ui-legacy-components-textarea.mjs +276 -0
  584. package/fesm2022/taiga-ui-legacy-components-textarea.mjs.map +1 -0
  585. package/fesm2022/taiga-ui-legacy-components-tooltip.mjs +77 -0
  586. package/fesm2022/taiga-ui-legacy-components-tooltip.mjs.map +1 -0
  587. package/fesm2022/taiga-ui-legacy-components.mjs +38 -0
  588. package/fesm2022/taiga-ui-legacy-components.mjs.map +1 -0
  589. package/fesm2022/taiga-ui-legacy-directives-legacy-dropdown-open-monitor.mjs +46 -0
  590. package/fesm2022/taiga-ui-legacy-directives-legacy-dropdown-open-monitor.mjs.map +1 -0
  591. package/fesm2022/taiga-ui-legacy-directives-textfield-controller.mjs +440 -0
  592. package/fesm2022/taiga-ui-legacy-directives-textfield-controller.mjs.map +1 -0
  593. package/fesm2022/taiga-ui-legacy-directives-unfinished-validator.mjs +50 -0
  594. package/fesm2022/taiga-ui-legacy-directives-unfinished-validator.mjs.map +1 -0
  595. package/fesm2022/taiga-ui-legacy-directives-value-accessor.mjs +52 -0
  596. package/fesm2022/taiga-ui-legacy-directives-value-accessor.mjs.map +1 -0
  597. package/fesm2022/taiga-ui-legacy-directives-wrapper.mjs +107 -0
  598. package/fesm2022/taiga-ui-legacy-directives-wrapper.mjs.map +1 -0
  599. package/fesm2022/taiga-ui-legacy-directives.mjs +10 -0
  600. package/fesm2022/taiga-ui-legacy-directives.mjs.map +1 -0
  601. package/fesm2022/taiga-ui-legacy-pipes-format-phone.mjs +59 -0
  602. package/fesm2022/taiga-ui-legacy-pipes-format-phone.mjs.map +1 -0
  603. package/fesm2022/taiga-ui-legacy-pipes-iso-to-country-code.mjs +50 -0
  604. package/fesm2022/taiga-ui-legacy-pipes-iso-to-country-code.mjs.map +1 -0
  605. package/fesm2022/taiga-ui-legacy-pipes-to-country-code.mjs +80 -0
  606. package/fesm2022/taiga-ui-legacy-pipes-to-country-code.mjs.map +1 -0
  607. package/fesm2022/taiga-ui-legacy-pipes.mjs +8 -0
  608. package/fesm2022/taiga-ui-legacy-pipes.mjs.map +1 -0
  609. package/fesm2022/taiga-ui-legacy-tokens.mjs +368 -0
  610. package/fesm2022/taiga-ui-legacy-tokens.mjs.map +1 -0
  611. package/fesm2022/taiga-ui-legacy-utils.mjs +264 -0
  612. package/fesm2022/taiga-ui-legacy-utils.mjs.map +1 -0
  613. package/fesm2022/taiga-ui-legacy.mjs +11 -0
  614. package/fesm2022/taiga-ui-legacy.mjs.map +1 -0
  615. package/index.d.ts +6 -0
  616. package/package.json +315 -0
  617. package/pipes/format-phone/format-phone.pipe.d.ts +37 -0
  618. package/pipes/format-phone/index.d.ts +1 -0
  619. package/pipes/index.d.ts +3 -0
  620. package/pipes/iso-to-country-code/index.d.ts +1 -0
  621. package/pipes/iso-to-country-code/iso-to-country-code.pipe.d.ts +30 -0
  622. package/pipes/to-country-code/index.d.ts +1 -0
  623. package/pipes/to-country-code/to-country-code.pipe.d.ts +38 -0
  624. package/styles/mixins/mixins.less +245 -0
  625. package/styles/mixins/mixins.scss +230 -0
  626. package/styles/mixins/textfield.less +315 -0
  627. package/styles/mixins/textfield.scss +306 -0
  628. package/styles/taiga-ui-local.less +3 -0
  629. package/styles/taiga-ui-local.scss +3 -0
  630. package/tokens/countries-masks.d.ts +8 -0
  631. package/tokens/focusable-item-accessor.d.ts +26 -0
  632. package/tokens/fonts-ready.d.ts +6 -0
  633. package/tokens/icons.d.ts +5 -0
  634. package/tokens/index.d.ts +14 -0
  635. package/tokens/is-apple.d.ts +5 -0
  636. package/tokens/is-chromium.d.ts +5 -0
  637. package/tokens/is-firefox.d.ts +5 -0
  638. package/tokens/is-stackblitz.d.ts +4 -0
  639. package/tokens/month-formatter.d.ts +11 -0
  640. package/tokens/sanitizer.d.ts +7 -0
  641. package/tokens/textfield-appearance.d.ts +6 -0
  642. package/tokens/textfield-host.d.ts +24 -0
  643. package/tokens/touch-supported.d.ts +4 -0
  644. package/tokens/value-accessor.d.ts +7 -0
  645. package/utils/date-mode-maskito-adapter.d.ts +6 -0
  646. package/utils/format-phone.d.ts +30 -0
  647. package/utils/get-border.d.ts +5 -0
  648. package/utils/get-max-allowed-phone-length.d.ts +24 -0
  649. package/utils/get-safe-area-size.d.ts +7 -0
  650. package/utils/icons-path-factory.d.ts +13 -0
  651. package/utils/index.d.ts +13 -0
  652. package/utils/is-apple.d.ts +4 -0
  653. package/utils/is-presumed-html-string.d.ts +4 -0
  654. package/utils/iso-to-country-code.d.ts +13 -0
  655. package/utils/not-kz-region.d.ts +20 -0
  656. package/utils/process-icon.d.ts +4 -0
  657. package/utils/specific-dropdown-controllers.d.ts +4 -0
  658. package/utils/status.d.ts +4 -0
@@ -0,0 +1,363 @@
1
+ import { __decorate } from 'tslib';
2
+ import * as i0 from '@angular/core';
3
+ import { InjectionToken, inject, Component, ChangeDetectionStrategy, ViewChild, ContentChildren, Input, HostBinding, HostListener, Directive, NgModule } from '@angular/core';
4
+ import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
5
+ import { maskitoParseNumber, maskitoNumberOptionsGenerator, maskitoCaretGuard } from '@maskito/kit';
6
+ import { EMPTY_QUERY, CHAR_HYPHEN, CHAR_MINUS } from '@taiga-ui/cdk/constants';
7
+ import { tuiWatch } from '@taiga-ui/cdk/observables';
8
+ import { TUI_IS_IOS } from '@taiga-ui/cdk/tokens';
9
+ import { tuiClamp } from '@taiga-ui/cdk/utils/math';
10
+ import { tuiCreateToken, tuiProvideOptions, tuiPure } from '@taiga-ui/cdk/utils/miscellaneous';
11
+ import { TUI_DEFAULT_NUMBER_FORMAT, TUI_NUMBER_FORMAT } from '@taiga-ui/core/tokens';
12
+ import { tuiFormatNumber } from '@taiga-ui/core/utils/format';
13
+ import { AbstractTuiNullableControl, tuiAsControl, AbstractTuiTextfieldHost } from '@taiga-ui/legacy/classes';
14
+ import * as i3 from '@taiga-ui/legacy/components/primitive-textfield';
15
+ import { TuiPrimitiveTextfieldComponent, TuiPrimitiveTextfieldModule, TuiTextfieldComponent } from '@taiga-ui/legacy/components/primitive-textfield';
16
+ import * as i4 from '@taiga-ui/legacy/directives';
17
+ import { TUI_TEXTFIELD_SIZE, TUI_TEXTFIELD_WATCHED_CONTROLLER, TEXTFIELD_CONTROLLER_PROVIDER, TuiTextfieldControllerModule, TuiValueAccessorModule } from '@taiga-ui/legacy/directives';
18
+ import { tuiAsFocusableItemAccessor, tuiAsTextfieldHost } from '@taiga-ui/legacy/tokens';
19
+ import * as i5 from '@taiga-ui/polymorpheus';
20
+ import { PolymorpheusOutlet, PolymorpheusTemplate } from '@taiga-ui/polymorpheus';
21
+ import * as i1 from '@angular/common';
22
+ import { CommonModule } from '@angular/common';
23
+ import * as i2 from '@maskito/angular';
24
+ import { MaskitoDirective } from '@maskito/angular';
25
+ import * as i6 from '@taiga-ui/core/components/button';
26
+ import { TuiButton } from '@taiga-ui/core/components/button';
27
+
28
+ /**
29
+ * @deprecated: drop in v5.0
30
+ * Default values for the input number options.
31
+ */
32
+ const TUI_INPUT_NUMBER_DEFAULT_OPTIONS = {
33
+ icons: {
34
+ up: '@tui.plus',
35
+ down: '@tui.minus',
36
+ },
37
+ min: Number.MIN_SAFE_INTEGER,
38
+ max: Number.MAX_SAFE_INTEGER,
39
+ step: 0,
40
+ };
41
+ /**
42
+ * @deprecated: drop in v5.0
43
+ * Default parameters for input count component
44
+ */
45
+ const TUI_INPUT_NUMBER_OPTIONS = tuiCreateToken(TUI_INPUT_NUMBER_DEFAULT_OPTIONS);
46
+ /**
47
+ * @deprecated: drop in v5.0
48
+ */
49
+ function tuiInputNumberOptionsProvider(options) {
50
+ return tuiProvideOptions(TUI_INPUT_NUMBER_OPTIONS, options, TUI_INPUT_NUMBER_DEFAULT_OPTIONS);
51
+ }
52
+
53
+ const DEFAULT_MAX_LENGTH = 18;
54
+ /**
55
+ * @deprecated: drop in v5.0
56
+ */
57
+ const TUI_NUMBER_VALUE_TRANSFORMER = new InjectionToken('');
58
+ /**
59
+ * @deprecated: drop in v5.0
60
+ */
61
+ class TuiInputNumberComponent extends AbstractTuiNullableControl {
62
+ constructor() {
63
+ super(...arguments);
64
+ this.isIOS = inject(TUI_IS_IOS);
65
+ this.textfieldSize = inject(TUI_TEXTFIELD_SIZE);
66
+ this.options = inject(TUI_INPUT_NUMBER_OPTIONS);
67
+ this.unfinishedValue = '';
68
+ this.polymorpheusValueContent = EMPTY_QUERY;
69
+ this.valueTransformer = inject(TUI_NUMBER_VALUE_TRANSFORMER, { optional: true });
70
+ this.numberFormat = TUI_DEFAULT_NUMBER_FORMAT;
71
+ this.controller = inject(TUI_TEXTFIELD_WATCHED_CONTROLLER);
72
+ this.numberFormat$ = inject(TUI_NUMBER_FORMAT)
73
+ .pipe(tuiWatch(this.cdr), takeUntilDestroyed())
74
+ .subscribe((format) => {
75
+ this.numberFormat = format;
76
+ });
77
+ this.min = this.options.min;
78
+ this.max = this.options.max;
79
+ this.step = this.options.step;
80
+ }
81
+ get nativeFocusableElement() {
82
+ return !this.textfield || this.computedDisabled
83
+ ? null
84
+ : this.textfield.nativeFocusableElement;
85
+ }
86
+ get focused() {
87
+ return !!this.textfield?.focused;
88
+ }
89
+ get inputMode() {
90
+ if (this.isIOS && this.isNegativeAllowed) {
91
+ // iPhone does not have minus sign if inputMode is equal to 'numeric' / 'decimal'
92
+ return 'text';
93
+ }
94
+ return !this.precision ? 'numeric' : 'decimal';
95
+ }
96
+ get calculatedMaxLength() {
97
+ const decimalPart = !!this.precision &&
98
+ this.nativeValue.includes(this.numberFormat.decimalSeparator);
99
+ const precision = decimalPart ? Math.min(this.precision + 1, 20) : 0;
100
+ const takeThousand = this.numberFormat.thousandSeparator.repeat(5).length;
101
+ return DEFAULT_MAX_LENGTH + precision + takeThousand;
102
+ }
103
+ get computedValue() {
104
+ return this.focused ? this.nativeValue : this.formattedValue;
105
+ }
106
+ onValueChange(nativeValue) {
107
+ const parsedValue = maskitoParseNumber(nativeValue, this.numberFormat.decimalSeparator);
108
+ this.unfinishedValue = null;
109
+ if (Number.isNaN(parsedValue)) {
110
+ this.value = null;
111
+ return;
112
+ }
113
+ if (this.isNativeValueNotFinished) {
114
+ this.unfinishedValue = nativeValue;
115
+ this.cdr.markForCheck();
116
+ return;
117
+ }
118
+ if (parsedValue < this.computedMin || parsedValue > this.computedMax) {
119
+ return;
120
+ }
121
+ this.value = parsedValue;
122
+ }
123
+ writeValue(value) {
124
+ super.writeValue(value);
125
+ this.nativeValue = this.formattedValue;
126
+ }
127
+ get size() {
128
+ return this.textfieldSize.size;
129
+ }
130
+ get icons() {
131
+ return this.options.icons;
132
+ }
133
+ get computedMin() {
134
+ return this.computeMin(this.min, this.max);
135
+ }
136
+ get computedMax() {
137
+ return this.computeMax(this.min, this.max);
138
+ }
139
+ get isNegativeAllowed() {
140
+ return this.computedMin < 0;
141
+ }
142
+ get formattedValue() {
143
+ return this.value !== null ? this.getFormattedValue(this.value || 0) : '';
144
+ }
145
+ get canDecrement() {
146
+ return this.interactive && (this.value || 0) > this.computedMin;
147
+ }
148
+ get canIncrement() {
149
+ return this.interactive && (this.value || 0) < this.computedMax;
150
+ }
151
+ get computedPrefix() {
152
+ return this.controller.prefix;
153
+ }
154
+ get computedPostfix() {
155
+ const postfix = this.controller.postfix;
156
+ return postfix && ` ${postfix}`;
157
+ }
158
+ get mask() {
159
+ return this.calculateMask(this.precision, this.numberFormat.decimalMode, this.numberFormat.decimalSeparator, this.numberFormat.thousandSeparator, this.computedMin, this.computedMax, this.computedPrefix, this.computedPostfix);
160
+ }
161
+ get nativeValue() {
162
+ return this.nativeFocusableElement?.value || '';
163
+ }
164
+ set nativeValue(value) {
165
+ if (!this.textfield || !this.nativeFocusableElement) {
166
+ return;
167
+ }
168
+ this.textfield.value = value;
169
+ this.nativeFocusableElement.value = value;
170
+ }
171
+ onArrow(step) {
172
+ if (!step) {
173
+ return;
174
+ }
175
+ this.value = tuiClamp((this.value || 0) + step, this.computedMin, this.computedMax);
176
+ this.nativeValue = this.formattedValue;
177
+ }
178
+ onFocused(focused) {
179
+ this.updateFocused(focused);
180
+ const nativeNumberValue = this.unfinishedValue
181
+ ? maskitoParseNumber(this.unfinishedValue, this.numberFormat.decimalSeparator)
182
+ : this.nativeNumberValue;
183
+ this.unfinishedValue = null;
184
+ if (Number.isNaN(nativeNumberValue)) {
185
+ this.nativeValue = focused ? this.computedPrefix + this.computedPostfix : '';
186
+ this.value = null;
187
+ return;
188
+ }
189
+ if (!focused) {
190
+ this.value = nativeNumberValue;
191
+ this.nativeValue = this.formattedValue;
192
+ }
193
+ }
194
+ getFormattedValue(value) {
195
+ return (this.computedPrefix +
196
+ tuiFormatNumber(value, {
197
+ ...this.numberFormat,
198
+ precision: this.precision,
199
+ }).replace(CHAR_HYPHEN, CHAR_MINUS) +
200
+ this.computedPostfix);
201
+ }
202
+ get isNativeValueNotFinished() {
203
+ const nativeNumberValue = this.nativeNumberValue;
204
+ return nativeNumberValue < 0
205
+ ? nativeNumberValue > this.computedMax
206
+ : nativeNumberValue < this.computedMin;
207
+ }
208
+ get nativeNumberValue() {
209
+ return maskitoParseNumber(this.nativeValue, this.numberFormat.decimalSeparator);
210
+ }
211
+ get precision() {
212
+ return Number.isNaN(this.numberFormat.precision)
213
+ ? 2
214
+ : this.numberFormat.precision;
215
+ }
216
+ computeMin(min, max) {
217
+ return Math.min(this.valueTransformer?.fromControlValue(min) ?? min ?? this.options.min, this.valueTransformer?.fromControlValue(max) ?? max ?? this.options.max);
218
+ }
219
+ computeMax(min, max) {
220
+ return Math.max(this.valueTransformer?.fromControlValue(min) ?? min ?? this.options.min, this.valueTransformer?.fromControlValue(max) ?? max ?? this.options.max);
221
+ }
222
+ calculateMask(precision, decimalMode, decimalSeparator, thousandSeparator, min, max, prefix, postfix) {
223
+ const generatorParams = {
224
+ decimalSeparator,
225
+ thousandSeparator,
226
+ min,
227
+ max,
228
+ prefix,
229
+ postfix,
230
+ precision,
231
+ decimalZeroPadding: decimalMode === 'always',
232
+ };
233
+ const { plugins, ...options } = maskitoNumberOptionsGenerator(generatorParams);
234
+ return {
235
+ ...options,
236
+ plugins: [
237
+ ...plugins,
238
+ maskitoCaretGuard((value) => [
239
+ prefix.length,
240
+ value.length - postfix.length,
241
+ ]),
242
+ ],
243
+ };
244
+ }
245
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiInputNumberComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
246
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TuiInputNumberComponent, selector: "tui-input-number", inputs: { min: "min", max: "max", step: "step" }, host: { listeners: { "keydown.arrowDown": "onArrow(-step)", "keydown.arrowUp": "onArrow(step)" }, properties: { "attr.data-size": "this.size" } }, providers: [
247
+ tuiAsFocusableItemAccessor(TuiInputNumberComponent),
248
+ tuiAsControl(TuiInputNumberComponent),
249
+ TEXTFIELD_CONTROLLER_PROVIDER,
250
+ ], queries: [{ propertyName: "polymorpheusValueContent", predicate: PolymorpheusOutlet, descendants: true }], viewQueries: [{ propertyName: "textfield", first: true, predicate: TuiPrimitiveTextfieldComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<tui-primitive-textfield\n #textfield\n tuiTextfieldPostfix=\"\"\n tuiTextfieldPrefix=\"\"\n tuiValueAccessor\n class=\"t-textfield\"\n [disabled]=\"computedDisabled\"\n [focusable]=\"focusable\"\n [invalid]=\"computedInvalid\"\n [maskito]=\"mask\"\n [pseudoActive]=\"pseudoActive\"\n [pseudoFocus]=\"computedFocused\"\n [pseudoHover]=\"pseudoHover\"\n [readOnly]=\"readOnly\"\n [value]=\"computedValue\"\n (focusedChange)=\"onFocused($event)\"\n (valueChange)=\"onValueChange($event)\"\n>\n <ng-content />\n <ng-content\n ngProjectAs=\"input\"\n select=\"input\"\n />\n <div\n *ngIf=\"polymorpheusValueContent.length\"\n ngProjectAs=\"tuiContent\"\n class=\"t-value-content\"\n >\n <ng-container *polymorpheusOutlet=\"valueContent as text\">\n {{ text }}\n </ng-container>\n </div>\n</tui-primitive-textfield>\n\n<section\n *ngIf=\"step\"\n class=\"t-buttons\"\n>\n <button\n size=\"s\"\n tabindex=\"-1\"\n tuiIconButton\n type=\"button\"\n class=\"t-button\"\n [appearance]=\"textfield.appearance\"\n [disabled]=\"!canIncrement\"\n [iconStart]=\"icons.up\"\n (click.prevent)=\"onArrow(step)\"\n (mousedown.prevent)=\"nativeFocusableElement?.focus()\"\n >\n +\n </button>\n <button\n size=\"s\"\n tabindex=\"-1\"\n tuiIconButton\n type=\"button\"\n class=\"t-button\"\n [appearance]=\"textfield.appearance\"\n [disabled]=\"!canDecrement\"\n [iconStart]=\"icons.down\"\n (click.prevent)=\"onArrow(-step)\"\n (mousedown.prevent)=\"nativeFocusableElement?.focus()\"\n >\n -\n </button>\n</section>\n\n<ng-container *ngIf=\"polymorpheusValueContent.changes | async\" />\n\n<ng-template #valueContent>\n <ng-content select=\"tuiContent\" />\n</ng-template>\n", styles: [":host{display:flex;border-radius:var(--tui-radius-m);text-align:left}.t-textfield{flex:1;max-width:100%;border-radius:inherit;text-align:inherit}.t-textfield:not(:last-child){border-top-right-radius:0;border-bottom-right-radius:0}.t-value-content{width:100%}.t-buttons{display:flex;flex-direction:column;align-items:stretch;margin-left:.125rem;border-radius:inherit}[data-size=s]+.t-buttons{flex-direction:row-reverse}[data-size=s]+.t-buttons .t-button:first-child{margin:0 0 0 .125rem;border-top-right-radius:inherit;border-bottom-right-radius:inherit}[data-size=s]+.t-buttons .t-button:last-child{border-radius:0}[data-size=m]+.t-buttons .t-button{width:calc(var(--tui-height-m) * .75)}[data-size=l]+.t-buttons .t-button{width:calc(var(--tui-height-l) * .75)}.t-buttons .t-button{display:flex;flex:1;height:auto;align-items:center;justify-content:center;border-radius:0}.t-buttons .t-button:first-child{margin-bottom:.125rem;border-top-right-radius:inherit}.t-buttons .t-button:last-child{border-bottom-right-radius:inherit}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.MaskitoDirective, selector: "[maskito]", inputs: ["maskito", "maskitoElement"] }, { kind: "component", type: i3.TuiPrimitiveTextfieldComponent, selector: "tui-primitive-textfield", inputs: ["editable", "iconCleaner", "readOnly", "invalid", "disabled", "value"], outputs: ["valueChange"] }, { kind: "directive", type: i3.TuiPrimitiveTextfieldDirective, selector: "tui-primitive-textfield" }, { kind: "directive", type: i4.TuiTextfieldPrefixDirective, selector: "[tuiTextfieldPrefix]", inputs: ["tuiTextfieldPrefix"] }, { kind: "directive", type: i4.TuiTextfieldPostfixDirective, selector: "[tuiTextfieldPostfix]", inputs: ["tuiTextfieldPostfix"] }, { kind: "directive", type: i5.PolymorpheusOutlet, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }, { kind: "directive", type: i4.TuiValueAccessorDirective, selector: "[tuiValueAccessor]" }, { kind: "directive", type: i6.TuiButton, selector: "a[tuiButton],button[tuiButton],a[tuiIconButton],button[tuiIconButton]", inputs: ["size"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
251
+ }
252
+ __decorate([
253
+ tuiPure
254
+ ], TuiInputNumberComponent.prototype, "computeMin", null);
255
+ __decorate([
256
+ tuiPure
257
+ ], TuiInputNumberComponent.prototype, "computeMax", null);
258
+ __decorate([
259
+ tuiPure
260
+ ], TuiInputNumberComponent.prototype, "calculateMask", null);
261
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiInputNumberComponent, decorators: [{
262
+ type: Component,
263
+ args: [{ selector: 'tui-input-number', changeDetection: ChangeDetectionStrategy.OnPush, providers: [
264
+ tuiAsFocusableItemAccessor(TuiInputNumberComponent),
265
+ tuiAsControl(TuiInputNumberComponent),
266
+ TEXTFIELD_CONTROLLER_PROVIDER,
267
+ ], template: "<tui-primitive-textfield\n #textfield\n tuiTextfieldPostfix=\"\"\n tuiTextfieldPrefix=\"\"\n tuiValueAccessor\n class=\"t-textfield\"\n [disabled]=\"computedDisabled\"\n [focusable]=\"focusable\"\n [invalid]=\"computedInvalid\"\n [maskito]=\"mask\"\n [pseudoActive]=\"pseudoActive\"\n [pseudoFocus]=\"computedFocused\"\n [pseudoHover]=\"pseudoHover\"\n [readOnly]=\"readOnly\"\n [value]=\"computedValue\"\n (focusedChange)=\"onFocused($event)\"\n (valueChange)=\"onValueChange($event)\"\n>\n <ng-content />\n <ng-content\n ngProjectAs=\"input\"\n select=\"input\"\n />\n <div\n *ngIf=\"polymorpheusValueContent.length\"\n ngProjectAs=\"tuiContent\"\n class=\"t-value-content\"\n >\n <ng-container *polymorpheusOutlet=\"valueContent as text\">\n {{ text }}\n </ng-container>\n </div>\n</tui-primitive-textfield>\n\n<section\n *ngIf=\"step\"\n class=\"t-buttons\"\n>\n <button\n size=\"s\"\n tabindex=\"-1\"\n tuiIconButton\n type=\"button\"\n class=\"t-button\"\n [appearance]=\"textfield.appearance\"\n [disabled]=\"!canIncrement\"\n [iconStart]=\"icons.up\"\n (click.prevent)=\"onArrow(step)\"\n (mousedown.prevent)=\"nativeFocusableElement?.focus()\"\n >\n +\n </button>\n <button\n size=\"s\"\n tabindex=\"-1\"\n tuiIconButton\n type=\"button\"\n class=\"t-button\"\n [appearance]=\"textfield.appearance\"\n [disabled]=\"!canDecrement\"\n [iconStart]=\"icons.down\"\n (click.prevent)=\"onArrow(-step)\"\n (mousedown.prevent)=\"nativeFocusableElement?.focus()\"\n >\n -\n </button>\n</section>\n\n<ng-container *ngIf=\"polymorpheusValueContent.changes | async\" />\n\n<ng-template #valueContent>\n <ng-content select=\"tuiContent\" />\n</ng-template>\n", styles: [":host{display:flex;border-radius:var(--tui-radius-m);text-align:left}.t-textfield{flex:1;max-width:100%;border-radius:inherit;text-align:inherit}.t-textfield:not(:last-child){border-top-right-radius:0;border-bottom-right-radius:0}.t-value-content{width:100%}.t-buttons{display:flex;flex-direction:column;align-items:stretch;margin-left:.125rem;border-radius:inherit}[data-size=s]+.t-buttons{flex-direction:row-reverse}[data-size=s]+.t-buttons .t-button:first-child{margin:0 0 0 .125rem;border-top-right-radius:inherit;border-bottom-right-radius:inherit}[data-size=s]+.t-buttons .t-button:last-child{border-radius:0}[data-size=m]+.t-buttons .t-button{width:calc(var(--tui-height-m) * .75)}[data-size=l]+.t-buttons .t-button{width:calc(var(--tui-height-l) * .75)}.t-buttons .t-button{display:flex;flex:1;height:auto;align-items:center;justify-content:center;border-radius:0}.t-buttons .t-button:first-child{margin-bottom:.125rem;border-top-right-radius:inherit}.t-buttons .t-button:last-child{border-bottom-right-radius:inherit}\n"] }]
268
+ }], propDecorators: { textfield: [{
269
+ type: ViewChild,
270
+ args: [TuiPrimitiveTextfieldComponent]
271
+ }], polymorpheusValueContent: [{
272
+ type: ContentChildren,
273
+ args: [PolymorpheusOutlet, { descendants: true }]
274
+ }], min: [{
275
+ type: Input
276
+ }], max: [{
277
+ type: Input
278
+ }], step: [{
279
+ type: Input
280
+ }], size: [{
281
+ type: HostBinding,
282
+ args: ['attr.data-size']
283
+ }], onArrow: [{
284
+ type: HostListener,
285
+ args: ['keydown.arrowDown', ['-step']]
286
+ }, {
287
+ type: HostListener,
288
+ args: ['keydown.arrowUp', ['step']]
289
+ }], computeMin: [], computeMax: [], calculateMask: [] } });
290
+
291
+ /**
292
+ * @deprecated: drop in v5.0
293
+ */
294
+ class TuiInputNumberDirective extends AbstractTuiTextfieldHost {
295
+ get value() {
296
+ return this.host.computedValue;
297
+ }
298
+ onValueChange(value) {
299
+ this.host.onValueChange(value);
300
+ }
301
+ ngDoCheck() {
302
+ if (!this.host.nativeFocusableElement) {
303
+ return;
304
+ }
305
+ this.host.nativeFocusableElement.inputMode = this.host.inputMode;
306
+ this.host.nativeFocusableElement.maxLength =
307
+ this.host.nativeFocusableElement.maxLength > 0
308
+ ? this.host.nativeFocusableElement.maxLength
309
+ : this.host.calculatedMaxLength;
310
+ }
311
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiInputNumberDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
312
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiInputNumberDirective, selector: "tui-input-number", providers: [tuiAsTextfieldHost(TuiInputNumberDirective)], usesInheritance: true, ngImport: i0 }); }
313
+ }
314
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiInputNumberDirective, decorators: [{
315
+ type: Directive,
316
+ args: [{
317
+ selector: 'tui-input-number',
318
+ providers: [tuiAsTextfieldHost(TuiInputNumberDirective)],
319
+ }]
320
+ }] });
321
+
322
+ /**
323
+ * @deprecated: drop in v5.0
324
+ */
325
+ class TuiInputNumberModule {
326
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiInputNumberModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
327
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: TuiInputNumberModule, declarations: [TuiInputNumberComponent, TuiInputNumberDirective], imports: [CommonModule,
328
+ MaskitoDirective,
329
+ TuiPrimitiveTextfieldModule,
330
+ TuiTextfieldControllerModule,
331
+ TuiValueAccessorModule,
332
+ PolymorpheusOutlet,
333
+ PolymorpheusTemplate,
334
+ TuiButton], exports: [TuiInputNumberComponent, TuiInputNumberDirective, TuiTextfieldComponent] }); }
335
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiInputNumberModule, imports: [CommonModule,
336
+ TuiPrimitiveTextfieldModule,
337
+ TuiTextfieldControllerModule,
338
+ TuiValueAccessorModule] }); }
339
+ }
340
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiInputNumberModule, decorators: [{
341
+ type: NgModule,
342
+ args: [{
343
+ imports: [
344
+ CommonModule,
345
+ MaskitoDirective,
346
+ TuiPrimitiveTextfieldModule,
347
+ TuiTextfieldControllerModule,
348
+ TuiValueAccessorModule,
349
+ PolymorpheusOutlet,
350
+ PolymorpheusTemplate,
351
+ TuiButton,
352
+ ],
353
+ declarations: [TuiInputNumberComponent, TuiInputNumberDirective],
354
+ exports: [TuiInputNumberComponent, TuiInputNumberDirective, TuiTextfieldComponent],
355
+ }]
356
+ }] });
357
+
358
+ /**
359
+ * Generated bundle index. Do not edit.
360
+ */
361
+
362
+ export { TUI_INPUT_NUMBER_DEFAULT_OPTIONS, TUI_INPUT_NUMBER_OPTIONS, TUI_NUMBER_VALUE_TRANSFORMER, TuiInputNumberComponent, TuiInputNumberDirective, TuiInputNumberModule, tuiInputNumberOptionsProvider };
363
+ //# sourceMappingURL=taiga-ui-legacy-components-input-number.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"taiga-ui-legacy-components-input-number.mjs","sources":["../../../projects/legacy/components/input-number/input-number.options.ts","../../../projects/legacy/components/input-number/input-number.component.ts","../../../projects/legacy/components/input-number/input-number.template.html","../../../projects/legacy/components/input-number/input-number.directive.ts","../../../projects/legacy/components/input-number/input-number.module.ts","../../../projects/legacy/components/input-number/taiga-ui-legacy-components-input-number.ts"],"sourcesContent":["import type {Provider} from '@angular/core';\nimport {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk/utils/miscellaneous';\n\n/**\n * @deprecated: drop in v5.0\n */\nexport interface TuiInputNumberOptions {\n readonly icons: Readonly<{\n down: string;\n up: string;\n }>;\n readonly max: number;\n readonly min: number;\n readonly step: number;\n}\n\n/**\n * @deprecated: drop in v5.0\n * Default values for the input number options.\n */\nexport const TUI_INPUT_NUMBER_DEFAULT_OPTIONS: TuiInputNumberOptions = {\n icons: {\n up: '@tui.plus',\n down: '@tui.minus',\n },\n min: Number.MIN_SAFE_INTEGER,\n max: Number.MAX_SAFE_INTEGER,\n step: 0,\n};\n\n/**\n * @deprecated: drop in v5.0\n * Default parameters for input count component\n */\nexport const TUI_INPUT_NUMBER_OPTIONS = tuiCreateToken(TUI_INPUT_NUMBER_DEFAULT_OPTIONS);\n\n/**\n * @deprecated: drop in v5.0\n */\nexport function tuiInputNumberOptionsProvider(\n options: Partial<TuiInputNumberOptions>,\n): Provider {\n return tuiProvideOptions(\n TUI_INPUT_NUMBER_OPTIONS,\n options,\n TUI_INPUT_NUMBER_DEFAULT_OPTIONS,\n );\n}\n","import type {QueryList} from '@angular/core';\nimport {\n ChangeDetectionStrategy,\n Component,\n ContentChildren,\n HostBinding,\n HostListener,\n inject,\n InjectionToken,\n Input,\n ViewChild,\n} from '@angular/core';\nimport {takeUntilDestroyed} from '@angular/core/rxjs-interop';\nimport type {MaskitoOptions} from '@maskito/core';\nimport {\n maskitoCaretGuard,\n maskitoNumberOptionsGenerator,\n maskitoParseNumber,\n} from '@maskito/kit';\nimport type {TuiValueTransformer} from '@taiga-ui/cdk/classes';\nimport {CHAR_HYPHEN, CHAR_MINUS, EMPTY_QUERY} from '@taiga-ui/cdk/constants';\nimport {tuiWatch} from '@taiga-ui/cdk/observables';\nimport {TUI_IS_IOS} from '@taiga-ui/cdk/tokens';\nimport {tuiClamp} from '@taiga-ui/cdk/utils/math';\nimport {tuiPure} from '@taiga-ui/cdk/utils/miscellaneous';\nimport type {TuiDecimalMode} from '@taiga-ui/core/tokens';\nimport {TUI_DEFAULT_NUMBER_FORMAT, TUI_NUMBER_FORMAT} from '@taiga-ui/core/tokens';\nimport type {TuiSizeL, TuiSizeS} from '@taiga-ui/core/types';\nimport {tuiFormatNumber} from '@taiga-ui/core/utils/format';\nimport {AbstractTuiNullableControl, tuiAsControl} from '@taiga-ui/legacy/classes';\nimport {TuiPrimitiveTextfieldComponent} from '@taiga-ui/legacy/components/primitive-textfield';\nimport {\n TEXTFIELD_CONTROLLER_PROVIDER,\n TUI_TEXTFIELD_SIZE,\n TUI_TEXTFIELD_WATCHED_CONTROLLER,\n} from '@taiga-ui/legacy/directives';\nimport type {TuiFocusableElementAccessor} from '@taiga-ui/legacy/tokens';\nimport {tuiAsFocusableItemAccessor} from '@taiga-ui/legacy/tokens';\nimport {PolymorpheusOutlet} from '@taiga-ui/polymorpheus';\n\nimport type {TuiInputNumberOptions} from './input-number.options';\nimport {TUI_INPUT_NUMBER_OPTIONS} from './input-number.options';\n\nconst DEFAULT_MAX_LENGTH = 18;\n\n/**\n * @deprecated: drop in v5.0\n */\nexport const TUI_NUMBER_VALUE_TRANSFORMER = new InjectionToken<\n TuiValueTransformer<number | null>\n>('');\n\n/**\n * @deprecated: drop in v5.0\n */\n@Component({\n selector: 'tui-input-number',\n templateUrl: './input-number.template.html',\n styleUrls: ['./input-number.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n tuiAsFocusableItemAccessor(TuiInputNumberComponent),\n tuiAsControl(TuiInputNumberComponent),\n TEXTFIELD_CONTROLLER_PROVIDER,\n ],\n})\nexport class TuiInputNumberComponent\n extends AbstractTuiNullableControl<number>\n implements TuiFocusableElementAccessor\n{\n @ViewChild(TuiPrimitiveTextfieldComponent)\n private readonly textfield?: TuiPrimitiveTextfieldComponent;\n\n private readonly isIOS = inject(TUI_IS_IOS);\n private readonly textfieldSize = inject(TUI_TEXTFIELD_SIZE);\n private readonly options = inject(TUI_INPUT_NUMBER_OPTIONS);\n private unfinishedValue: string | null = '';\n\n @ContentChildren(PolymorpheusOutlet, {descendants: true})\n protected readonly polymorpheusValueContent: QueryList<unknown> = EMPTY_QUERY;\n\n protected override readonly valueTransformer = inject<\n TuiValueTransformer<number | null>\n >(TUI_NUMBER_VALUE_TRANSFORMER, {optional: true});\n\n protected numberFormat = TUI_DEFAULT_NUMBER_FORMAT;\n protected readonly controller = inject(TUI_TEXTFIELD_WATCHED_CONTROLLER);\n protected readonly numberFormat$ = inject(TUI_NUMBER_FORMAT)\n .pipe(tuiWatch(this.cdr), takeUntilDestroyed())\n .subscribe((format) => {\n this.numberFormat = format;\n });\n\n @Input()\n public min: number | null = this.options.min;\n\n @Input()\n public max: number | null = this.options.max;\n\n @Input()\n public step = this.options.step;\n\n public get nativeFocusableElement(): HTMLInputElement | null {\n return !this.textfield || this.computedDisabled\n ? null\n : this.textfield.nativeFocusableElement;\n }\n\n public get focused(): boolean {\n return !!this.textfield?.focused;\n }\n\n public get inputMode(): string {\n if (this.isIOS && this.isNegativeAllowed) {\n // iPhone does not have minus sign if inputMode is equal to 'numeric' / 'decimal'\n return 'text';\n }\n\n return !this.precision ? 'numeric' : 'decimal';\n }\n\n public get calculatedMaxLength(): number {\n const decimalPart =\n !!this.precision &&\n this.nativeValue.includes(this.numberFormat.decimalSeparator);\n const precision = decimalPart ? Math.min(this.precision + 1, 20) : 0;\n const takeThousand = this.numberFormat.thousandSeparator.repeat(5).length;\n\n return DEFAULT_MAX_LENGTH + precision + takeThousand;\n }\n\n public get computedValue(): string {\n return this.focused ? this.nativeValue : this.formattedValue;\n }\n\n public onValueChange(nativeValue: string): void {\n const parsedValue = maskitoParseNumber(\n nativeValue,\n this.numberFormat.decimalSeparator,\n );\n\n this.unfinishedValue = null;\n\n if (Number.isNaN(parsedValue)) {\n this.value = null;\n\n return;\n }\n\n if (this.isNativeValueNotFinished) {\n this.unfinishedValue = nativeValue;\n this.cdr.markForCheck();\n\n return;\n }\n\n if (parsedValue < this.computedMin || parsedValue > this.computedMax) {\n return;\n }\n\n this.value = parsedValue;\n }\n\n public override writeValue(value: number | null): void {\n super.writeValue(value);\n this.nativeValue = this.formattedValue;\n }\n\n @HostBinding('attr.data-size')\n protected get size(): TuiSizeL | TuiSizeS {\n return this.textfieldSize.size;\n }\n\n protected get icons(): TuiInputNumberOptions['icons'] {\n return this.options.icons;\n }\n\n protected get computedMin(): number {\n return this.computeMin(this.min, this.max);\n }\n\n protected get computedMax(): number {\n return this.computeMax(this.min, this.max);\n }\n\n protected get isNegativeAllowed(): boolean {\n return this.computedMin < 0;\n }\n\n protected get formattedValue(): string {\n return this.value !== null ? this.getFormattedValue(this.value || 0) : '';\n }\n\n protected get canDecrement(): boolean {\n return this.interactive && (this.value || 0) > this.computedMin;\n }\n\n protected get canIncrement(): boolean {\n return this.interactive && (this.value || 0) < this.computedMax;\n }\n\n protected get computedPrefix(): string {\n return this.controller.prefix;\n }\n\n protected get computedPostfix(): string {\n const postfix = this.controller.postfix;\n\n return postfix && ` ${postfix}`;\n }\n\n protected get mask(): MaskitoOptions {\n return this.calculateMask(\n this.precision,\n this.numberFormat.decimalMode,\n this.numberFormat.decimalSeparator,\n this.numberFormat.thousandSeparator,\n this.computedMin,\n this.computedMax,\n this.computedPrefix,\n this.computedPostfix,\n );\n }\n\n protected get nativeValue(): string {\n return this.nativeFocusableElement?.value || '';\n }\n\n protected set nativeValue(value: string) {\n if (!this.textfield || !this.nativeFocusableElement) {\n return;\n }\n\n this.textfield.value = value;\n this.nativeFocusableElement.value = value;\n }\n\n @HostListener('keydown.arrowDown', ['-step'])\n @HostListener('keydown.arrowUp', ['step'])\n protected onArrow(step: number | null): void {\n if (!step) {\n return;\n }\n\n this.value = tuiClamp(\n (this.value || 0) + step,\n this.computedMin,\n this.computedMax,\n );\n this.nativeValue = this.formattedValue;\n }\n\n protected onFocused(focused: boolean): void {\n this.updateFocused(focused);\n\n const nativeNumberValue = this.unfinishedValue\n ? maskitoParseNumber(this.unfinishedValue, this.numberFormat.decimalSeparator)\n : this.nativeNumberValue;\n\n this.unfinishedValue = null;\n\n if (Number.isNaN(nativeNumberValue)) {\n this.nativeValue = focused ? this.computedPrefix + this.computedPostfix : '';\n this.value = null;\n\n return;\n }\n\n if (!focused) {\n this.value = nativeNumberValue;\n this.nativeValue = this.formattedValue;\n }\n }\n\n protected getFormattedValue(value: number): string {\n return (\n this.computedPrefix +\n tuiFormatNumber(value, {\n ...this.numberFormat,\n precision: this.precision,\n }).replace(CHAR_HYPHEN, CHAR_MINUS) +\n this.computedPostfix\n );\n }\n\n private get isNativeValueNotFinished(): boolean {\n const nativeNumberValue = this.nativeNumberValue;\n\n return nativeNumberValue < 0\n ? nativeNumberValue > this.computedMax\n : nativeNumberValue < this.computedMin;\n }\n\n private get nativeNumberValue(): number {\n return maskitoParseNumber(this.nativeValue, this.numberFormat.decimalSeparator);\n }\n\n private get precision(): number {\n return Number.isNaN(this.numberFormat.precision)\n ? 2\n : this.numberFormat.precision;\n }\n\n @tuiPure\n private computeMin(min: number | null, max: number | null): number {\n return Math.min(\n this.valueTransformer?.fromControlValue(min) ?? min ?? this.options.min,\n this.valueTransformer?.fromControlValue(max) ?? max ?? this.options.max,\n );\n }\n\n @tuiPure\n private computeMax(min: number | null, max: number | null): number {\n return Math.max(\n this.valueTransformer?.fromControlValue(min) ?? min ?? this.options.min,\n this.valueTransformer?.fromControlValue(max) ?? max ?? this.options.max,\n );\n }\n\n @tuiPure\n private calculateMask(\n precision: number,\n decimalMode: TuiDecimalMode,\n decimalSeparator: string,\n thousandSeparator: string,\n min: number,\n max: number,\n prefix: string,\n postfix: string,\n ): MaskitoOptions {\n const generatorParams = {\n decimalSeparator,\n thousandSeparator,\n min,\n max,\n prefix,\n postfix,\n precision,\n decimalZeroPadding: decimalMode === 'always',\n };\n const {plugins, ...options} = maskitoNumberOptionsGenerator(generatorParams);\n\n return {\n ...options,\n plugins: [\n ...plugins,\n maskitoCaretGuard((value) => [\n prefix.length,\n value.length - postfix.length,\n ]),\n ],\n };\n }\n}\n","<tui-primitive-textfield\n #textfield\n tuiTextfieldPostfix=\"\"\n tuiTextfieldPrefix=\"\"\n tuiValueAccessor\n class=\"t-textfield\"\n [disabled]=\"computedDisabled\"\n [focusable]=\"focusable\"\n [invalid]=\"computedInvalid\"\n [maskito]=\"mask\"\n [pseudoActive]=\"pseudoActive\"\n [pseudoFocus]=\"computedFocused\"\n [pseudoHover]=\"pseudoHover\"\n [readOnly]=\"readOnly\"\n [value]=\"computedValue\"\n (focusedChange)=\"onFocused($event)\"\n (valueChange)=\"onValueChange($event)\"\n>\n <ng-content />\n <ng-content\n ngProjectAs=\"input\"\n select=\"input\"\n />\n <div\n *ngIf=\"polymorpheusValueContent.length\"\n ngProjectAs=\"tuiContent\"\n class=\"t-value-content\"\n >\n <ng-container *polymorpheusOutlet=\"valueContent as text\">\n {{ text }}\n </ng-container>\n </div>\n</tui-primitive-textfield>\n\n<section\n *ngIf=\"step\"\n class=\"t-buttons\"\n>\n <button\n size=\"s\"\n tabindex=\"-1\"\n tuiIconButton\n type=\"button\"\n class=\"t-button\"\n [appearance]=\"textfield.appearance\"\n [disabled]=\"!canIncrement\"\n [iconStart]=\"icons.up\"\n (click.prevent)=\"onArrow(step)\"\n (mousedown.prevent)=\"nativeFocusableElement?.focus()\"\n >\n +\n </button>\n <button\n size=\"s\"\n tabindex=\"-1\"\n tuiIconButton\n type=\"button\"\n class=\"t-button\"\n [appearance]=\"textfield.appearance\"\n [disabled]=\"!canDecrement\"\n [iconStart]=\"icons.down\"\n (click.prevent)=\"onArrow(-step)\"\n (mousedown.prevent)=\"nativeFocusableElement?.focus()\"\n >\n -\n </button>\n</section>\n\n<ng-container *ngIf=\"polymorpheusValueContent.changes | async\" />\n\n<ng-template #valueContent>\n <ng-content select=\"tuiContent\" />\n</ng-template>\n","import type {DoCheck} from '@angular/core';\nimport {Directive} from '@angular/core';\nimport {AbstractTuiTextfieldHost} from '@taiga-ui/legacy/classes';\nimport {tuiAsTextfieldHost} from '@taiga-ui/legacy/tokens';\n\nimport type {TuiInputNumberComponent} from './input-number.component';\n\n/**\n * @deprecated: drop in v5.0\n */\n@Directive({\n selector: 'tui-input-number',\n providers: [tuiAsTextfieldHost(TuiInputNumberDirective)],\n})\nexport class TuiInputNumberDirective\n extends AbstractTuiTextfieldHost<TuiInputNumberComponent>\n implements DoCheck\n{\n protected input?: HTMLInputElement;\n\n public override get value(): string {\n return this.host.computedValue;\n }\n\n public onValueChange(value: string): void {\n this.host.onValueChange(value);\n }\n\n public ngDoCheck(): void {\n if (!this.host.nativeFocusableElement) {\n return;\n }\n\n this.host.nativeFocusableElement.inputMode = this.host.inputMode;\n this.host.nativeFocusableElement.maxLength =\n this.host.nativeFocusableElement.maxLength > 0\n ? this.host.nativeFocusableElement.maxLength\n : this.host.calculatedMaxLength;\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {MaskitoDirective} from '@maskito/angular';\nimport {TuiButton} from '@taiga-ui/core/components/button';\nimport {\n TuiPrimitiveTextfieldModule,\n TuiTextfieldComponent,\n} from '@taiga-ui/legacy/components/primitive-textfield';\nimport {\n TuiTextfieldControllerModule,\n TuiValueAccessorModule,\n} from '@taiga-ui/legacy/directives';\nimport {PolymorpheusOutlet, PolymorpheusTemplate} from '@taiga-ui/polymorpheus';\n\nimport {TuiInputNumberComponent} from './input-number.component';\nimport {TuiInputNumberDirective} from './input-number.directive';\n\n/**\n * @deprecated: drop in v5.0\n */\n@NgModule({\n imports: [\n CommonModule,\n MaskitoDirective,\n TuiPrimitiveTextfieldModule,\n TuiTextfieldControllerModule,\n TuiValueAccessorModule,\n PolymorpheusOutlet,\n PolymorpheusTemplate,\n TuiButton,\n ],\n declarations: [TuiInputNumberComponent, TuiInputNumberDirective],\n exports: [TuiInputNumberComponent, TuiInputNumberDirective, TuiTextfieldComponent],\n})\nexport class TuiInputNumberModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAgBA;;;AAGG;AACU,MAAA,gCAAgC,GAA0B;AACnE,IAAA,KAAK,EAAE;AACH,QAAA,EAAE,EAAE,WAAW;AACf,QAAA,IAAI,EAAE,YAAY;AACrB,KAAA;IACD,GAAG,EAAE,MAAM,CAAC,gBAAgB;IAC5B,GAAG,EAAE,MAAM,CAAC,gBAAgB;AAC5B,IAAA,IAAI,EAAE,CAAC;EACT;AAEF;;;AAGG;MACU,wBAAwB,GAAG,cAAc,CAAC,gCAAgC,EAAE;AAEzF;;AAEG;AACG,SAAU,6BAA6B,CACzC,OAAuC,EAAA;IAEvC,OAAO,iBAAiB,CACpB,wBAAwB,EACxB,OAAO,EACP,gCAAgC,CACnC,CAAC;AACN;;ACJA,MAAM,kBAAkB,GAAG,EAAE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ACtB,kBAAkB;YAClB,oBAAoB;AACpB,YAAA,SAAS,CAGH,EAAA,OAAA,EAAA,CAAA,uBAAuB,EAAE,uBAAuB,EAAE,qBAAqB,CAAA,EAAA,CAAA,CAAA,EAAA;AAExE,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,oBAAoB,YAZzB,YAAY;YAEZ,2BAA2B;YAC3B,4BAA4B;YAC5B,sBAAsB,CAAA,EAAA,CAAA,CAAA,EAAA;;4FAQjB,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAdhC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE;wBACL,YAAY;wBACZ,gBAAgB;wBAChB,2BAA2B;wBAC3B,4BAA4B;wBAC5B,sBAAsB;wBACtB,kBAAkB;wBAClB,oBAAoB;wBACpB,SAAS;AACZ,qBAAA;AACD,oBAAA,YAAY,EAAE,CAAC,uBAAuB,EAAE,uBAAuB,CAAC;AAChE,oBAAA,OAAO,EAAE,CAAC,uBAAuB,EAAE,uBAAuB,EAAE,qBAAqB,CAAC;AACrF,iBAAA,CAAA;;;ACjCD;;AAEG;;;;"}
@@ -0,0 +1,185 @@
1
+ import * as i0 from '@angular/core';
2
+ import { inject, Component, ChangeDetectionStrategy, ViewChild, HostBinding, Directive, NgModule } from '@angular/core';
3
+ import * as i1 from '@taiga-ui/core/directives/hint';
4
+ import { TuiHintOptionsDirective, TuiHint } from '@taiga-ui/core/directives/hint';
5
+ import { TUI_PASSWORD_TEXTS } from '@taiga-ui/kit/tokens';
6
+ import { AbstractTuiControl, tuiAsControl, AbstractTuiTextfieldHost } from '@taiga-ui/legacy/classes';
7
+ import * as i4 from '@taiga-ui/legacy/components/primitive-textfield';
8
+ import { TuiPrimitiveTextfieldComponent, TuiPrimitiveTextfieldModule, TuiTextfieldComponent } from '@taiga-ui/legacy/components/primitive-textfield';
9
+ import * as i5 from '@taiga-ui/legacy/directives';
10
+ import { TUI_TEXTFIELD_SIZE, TuiTextfieldControllerModule } from '@taiga-ui/legacy/directives';
11
+ import { tuiAsFocusableItemAccessor, tuiAsTextfieldHost } from '@taiga-ui/legacy/tokens';
12
+ import { EMPTY, startWith, map } from 'rxjs';
13
+ import { tuiCreateToken, tuiProvideOptions } from '@taiga-ui/cdk/utils/miscellaneous';
14
+ import * as i2 from '@angular/common';
15
+ import { CommonModule } from '@angular/common';
16
+ import * as i3 from '@taiga-ui/polymorpheus';
17
+ import { PolymorpheusOutlet, PolymorpheusTemplate } from '@taiga-ui/polymorpheus';
18
+ import * as i6 from '@taiga-ui/core/directives/appearance';
19
+ import { TuiAppearance } from '@taiga-ui/core/directives/appearance';
20
+ import * as i7 from '@taiga-ui/core/components/icon';
21
+ import { TuiIcon } from '@taiga-ui/core/components/icon';
22
+ import { tuiIsInput } from '@taiga-ui/cdk/utils/dom';
23
+ import { FormsModule } from '@angular/forms';
24
+
25
+ /**
26
+ * @deprecated: drop in v5.0
27
+ */
28
+ const TUI_INPUT_PASSWORD_DEFAULT_OPTIONS = {
29
+ icons: {
30
+ hide: () => '@tui.eye',
31
+ show: () => '@tui.eye-off',
32
+ },
33
+ };
34
+ /**
35
+ * @deprecated: drop in v5.0
36
+ */
37
+ const TUI_INPUT_PASSWORD_OPTIONS = tuiCreateToken(TUI_INPUT_PASSWORD_DEFAULT_OPTIONS);
38
+ /**
39
+ * @deprecated: drop in v5.0
40
+ */
41
+ function tuiInputPasswordOptionsProvider(options) {
42
+ return tuiProvideOptions(TUI_INPUT_PASSWORD_OPTIONS, options, TUI_INPUT_PASSWORD_DEFAULT_OPTIONS);
43
+ }
44
+
45
+ /**
46
+ * @deprecated: drop in v5.0
47
+ */
48
+ class TuiInputPasswordComponent extends AbstractTuiControl {
49
+ constructor() {
50
+ super(...arguments);
51
+ this.textfieldSize = inject(TUI_TEXTFIELD_SIZE);
52
+ this.hintOptions = inject(TuiHintOptionsDirective, { optional: true });
53
+ this.directive$ = this.hintOptions?.change$ || EMPTY;
54
+ this.isPasswordHidden = true;
55
+ this.computedAppearance$ = this.directive$.pipe(startWith(null), map(() => this.hintOptions?.appearance || ''), startWith(''));
56
+ this.passwordTexts$ = inject(TUI_PASSWORD_TEXTS);
57
+ this.options = inject(TUI_INPUT_PASSWORD_OPTIONS);
58
+ }
59
+ get nativeFocusableElement() {
60
+ return this.computedDisabled || !this.textfield
61
+ ? null
62
+ : this.textfield.nativeFocusableElement;
63
+ }
64
+ get focused() {
65
+ return !!this.textfield?.focused;
66
+ }
67
+ get inputType() {
68
+ return this.isPasswordHidden || !this.interactive ? 'password' : 'text';
69
+ }
70
+ onValueChange(textValue) {
71
+ this.value = textValue;
72
+ }
73
+ get size() {
74
+ return this.textfieldSize.size;
75
+ }
76
+ get icon() {
77
+ return this.isPasswordHidden ? this.options.icons.show : this.options.icons.hide;
78
+ }
79
+ onFocused(focused) {
80
+ this.updateFocused(focused);
81
+ }
82
+ togglePasswordVisibility() {
83
+ this.isPasswordHidden = !this.isPasswordHidden;
84
+ }
85
+ getFallbackValue() {
86
+ return '';
87
+ }
88
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiInputPasswordComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
89
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TuiInputPasswordComponent, selector: "tui-input-password", host: { properties: { "attr.data-size": "this.size" } }, providers: [
90
+ tuiAsFocusableItemAccessor(TuiInputPasswordComponent),
91
+ tuiAsControl(TuiInputPasswordComponent),
92
+ ], viewQueries: [{ propertyName: "textfield", first: true, predicate: TuiPrimitiveTextfieldComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<tui-primitive-textfield\n class=\"t-textfield\"\n [disabled]=\"computedDisabled\"\n [focusable]=\"focusable\"\n [invalid]=\"computedInvalid\"\n [nativeId]=\"nativeId\"\n [pseudoActive]=\"pseudoActive\"\n [pseudoFocus]=\"pseudoFocus\"\n [pseudoHover]=\"pseudoHover\"\n [readOnly]=\"readOnly\"\n [tuiTextfieldIcon]=\"interactive ? iconContent : ''\"\n [(value)]=\"value\"\n (focusedChange)=\"onFocused($event)\"\n>\n <ng-content />\n <ng-content\n ngProjectAs=\"input\"\n select=\"input\"\n />\n</tui-primitive-textfield>\n\n<ng-template\n #iconContent=\"polymorpheus\"\n [polymorpheus]=\"type\"\n>\n <ng-container *ngIf=\"passwordTexts$ | async as texts\">\n <tui-icon\n *polymorpheusOutlet=\"icon as src; context: {$implicit: size}\"\n automation-id=\"tui-password__icon\"\n tuiAppearance=\"icon\"\n class=\"t-icon\"\n [class.t-icon_small]=\"size === 's'\"\n [icon]=\"src.toString()\"\n [tuiHint]=\"texts[0] && texts[1] && hintContent\"\n [tuiHintAppearance]=\"(computedAppearance$ | async) || ''\"\n [tuiHintDirection]=\"hintOptions?.direction || 'bottom-left'\"\n (click)=\"togglePasswordVisibility()\"\n />\n\n <ng-template\n #hintContent=\"polymorpheus\"\n polymorpheus\n >\n {{ isPasswordHidden ? texts[0] : texts[1] }}\n </ng-template>\n </ng-container>\n</ng-template>\n", styles: [":host{display:block;border-radius:var(--tui-radius-m);text-align:left}.t-icon{cursor:pointer;pointer-events:auto}.t-icon_small{border:.25rem solid transparent}.t-textfield{border-radius:inherit;text-align:inherit}\n"], dependencies: [{ kind: "directive", type: i1.TuiHintDirective, selector: "[tuiHint]:not(ng-container):not(ng-template)", inputs: ["tuiHintContext", "tuiHintAppearance", "tuiHint"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.PolymorpheusOutlet, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }, { kind: "directive", type: i3.PolymorpheusTemplate, selector: "ng-template[polymorpheus]", inputs: ["polymorpheus"], exportAs: ["polymorpheus"] }, { kind: "component", type: i4.TuiPrimitiveTextfieldComponent, selector: "tui-primitive-textfield", inputs: ["editable", "iconCleaner", "readOnly", "invalid", "disabled", "value"], outputs: ["valueChange"] }, { kind: "directive", type: i4.TuiPrimitiveTextfieldDirective, selector: "tui-primitive-textfield" }, { kind: "directive", type: i5.TuiTextfieldIconDirective, selector: "[tuiTextfieldIcon]", inputs: ["tuiTextfieldIcon"] }, { kind: "directive", type: i6.TuiAppearance, selector: "[tuiAppearance]", inputs: ["tuiAppearance", "tuiAppearanceState", "tuiAppearanceFocus"] }, { kind: "component", type: i7.TuiIcon, selector: "tui-icon", inputs: ["icon", "background"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
93
+ }
94
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiInputPasswordComponent, decorators: [{
95
+ type: Component,
96
+ args: [{ selector: 'tui-input-password', changeDetection: ChangeDetectionStrategy.OnPush, providers: [
97
+ tuiAsFocusableItemAccessor(TuiInputPasswordComponent),
98
+ tuiAsControl(TuiInputPasswordComponent),
99
+ ], template: "<tui-primitive-textfield\n class=\"t-textfield\"\n [disabled]=\"computedDisabled\"\n [focusable]=\"focusable\"\n [invalid]=\"computedInvalid\"\n [nativeId]=\"nativeId\"\n [pseudoActive]=\"pseudoActive\"\n [pseudoFocus]=\"pseudoFocus\"\n [pseudoHover]=\"pseudoHover\"\n [readOnly]=\"readOnly\"\n [tuiTextfieldIcon]=\"interactive ? iconContent : ''\"\n [(value)]=\"value\"\n (focusedChange)=\"onFocused($event)\"\n>\n <ng-content />\n <ng-content\n ngProjectAs=\"input\"\n select=\"input\"\n />\n</tui-primitive-textfield>\n\n<ng-template\n #iconContent=\"polymorpheus\"\n [polymorpheus]=\"type\"\n>\n <ng-container *ngIf=\"passwordTexts$ | async as texts\">\n <tui-icon\n *polymorpheusOutlet=\"icon as src; context: {$implicit: size}\"\n automation-id=\"tui-password__icon\"\n tuiAppearance=\"icon\"\n class=\"t-icon\"\n [class.t-icon_small]=\"size === 's'\"\n [icon]=\"src.toString()\"\n [tuiHint]=\"texts[0] && texts[1] && hintContent\"\n [tuiHintAppearance]=\"(computedAppearance$ | async) || ''\"\n [tuiHintDirection]=\"hintOptions?.direction || 'bottom-left'\"\n (click)=\"togglePasswordVisibility()\"\n />\n\n <ng-template\n #hintContent=\"polymorpheus\"\n polymorpheus\n >\n {{ isPasswordHidden ? texts[0] : texts[1] }}\n </ng-template>\n </ng-container>\n</ng-template>\n", styles: [":host{display:block;border-radius:var(--tui-radius-m);text-align:left}.t-icon{cursor:pointer;pointer-events:auto}.t-icon_small{border:.25rem solid transparent}.t-textfield{border-radius:inherit;text-align:inherit}\n"] }]
100
+ }], propDecorators: { textfield: [{
101
+ type: ViewChild,
102
+ args: [TuiPrimitiveTextfieldComponent]
103
+ }], size: [{
104
+ type: HostBinding,
105
+ args: ['attr.data-size']
106
+ }] } });
107
+
108
+ /**
109
+ * @deprecated: drop in v5.0
110
+ */
111
+ class TuiInputPasswordDirective extends AbstractTuiTextfieldHost {
112
+ onValueChange(value) {
113
+ this.host.onValueChange(value);
114
+ }
115
+ process(input) {
116
+ this.input = input;
117
+ }
118
+ ngDoCheck() {
119
+ if (this.host.nativeFocusableElement &&
120
+ tuiIsInput(this.host.nativeFocusableElement)) {
121
+ this.host.nativeFocusableElement.type = this.host.inputType;
122
+ }
123
+ }
124
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiInputPasswordDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
125
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiInputPasswordDirective, selector: "tui-input-password", providers: [tuiAsTextfieldHost(TuiInputPasswordDirective)], usesInheritance: true, ngImport: i0 }); }
126
+ }
127
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiInputPasswordDirective, decorators: [{
128
+ type: Directive,
129
+ args: [{
130
+ selector: 'tui-input-password',
131
+ providers: [tuiAsTextfieldHost(TuiInputPasswordDirective)],
132
+ }]
133
+ }] });
134
+
135
+ /**
136
+ * @deprecated: drop in v5.0
137
+ */
138
+ class TuiInputPasswordModule {
139
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiInputPasswordModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
140
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: TuiInputPasswordModule, declarations: [TuiInputPasswordComponent, TuiInputPasswordDirective], imports: [i1.TuiHintComponent, i1.TuiHintDirective, i1.TuiHintOptionsDirective, i1.TuiHintUnstyled, i1.TuiHintDriver, i1.TuiHintPosition, i1.TuiHintHover, i1.TuiHintDescribe, i1.TuiHintHost, i1.TuiHintManual, i1.TuiHintPointer, CommonModule,
141
+ FormsModule,
142
+ PolymorpheusOutlet,
143
+ PolymorpheusTemplate,
144
+ TuiPrimitiveTextfieldModule,
145
+ TuiTextfieldControllerModule,
146
+ TuiAppearance,
147
+ TuiIcon], exports: [TuiInputPasswordComponent,
148
+ TuiInputPasswordDirective,
149
+ TuiTextfieldComponent, i1.TuiHintComponent, i1.TuiHintDirective, i1.TuiHintOptionsDirective, i1.TuiHintUnstyled, i1.TuiHintDriver, i1.TuiHintPosition, i1.TuiHintHover, i1.TuiHintDescribe, i1.TuiHintHost, i1.TuiHintManual, i1.TuiHintPointer] }); }
150
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiInputPasswordModule, imports: [i1.TuiHintComponent, CommonModule,
151
+ FormsModule,
152
+ TuiPrimitiveTextfieldModule,
153
+ TuiTextfieldControllerModule,
154
+ TuiIcon] }); }
155
+ }
156
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiInputPasswordModule, decorators: [{
157
+ type: NgModule,
158
+ args: [{
159
+ imports: [
160
+ ...TuiHint,
161
+ CommonModule,
162
+ FormsModule,
163
+ PolymorpheusOutlet,
164
+ PolymorpheusTemplate,
165
+ TuiPrimitiveTextfieldModule,
166
+ TuiTextfieldControllerModule,
167
+ TuiAppearance,
168
+ TuiIcon,
169
+ ],
170
+ declarations: [TuiInputPasswordComponent, TuiInputPasswordDirective],
171
+ exports: [
172
+ TuiInputPasswordComponent,
173
+ TuiInputPasswordDirective,
174
+ TuiTextfieldComponent,
175
+ ...TuiHint,
176
+ ],
177
+ }]
178
+ }] });
179
+
180
+ /**
181
+ * Generated bundle index. Do not edit.
182
+ */
183
+
184
+ export { TUI_INPUT_PASSWORD_DEFAULT_OPTIONS, TUI_INPUT_PASSWORD_OPTIONS, TuiInputPasswordComponent, TuiInputPasswordDirective, TuiInputPasswordModule, tuiInputPasswordOptionsProvider };
185
+ //# sourceMappingURL=taiga-ui-legacy-components-input-password.mjs.map