@taiga-ui/kit 2.32.0 → 2.33.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 (428) hide show
  1. package/bundles/taiga-ui-kit-components-accordion.umd.js +1 -1
  2. package/bundles/taiga-ui-kit-components-accordion.umd.js.map +1 -1
  3. package/bundles/taiga-ui-kit-components-accordion.umd.min.js +1 -1
  4. package/bundles/taiga-ui-kit-components-accordion.umd.min.js.map +1 -1
  5. package/bundles/taiga-ui-kit-components-avatar.umd.js +1 -1
  6. package/bundles/taiga-ui-kit-components-avatar.umd.min.js +1 -1
  7. package/bundles/taiga-ui-kit-components-avatar.umd.min.js.map +1 -1
  8. package/bundles/taiga-ui-kit-components-combo-box.umd.js +59 -22
  9. package/bundles/taiga-ui-kit-components-combo-box.umd.js.map +1 -1
  10. package/bundles/taiga-ui-kit-components-combo-box.umd.min.js +2 -2
  11. package/bundles/taiga-ui-kit-components-combo-box.umd.min.js.map +1 -1
  12. package/bundles/taiga-ui-kit-components-input-copy.umd.js +47 -17
  13. package/bundles/taiga-ui-kit-components-input-copy.umd.js.map +1 -1
  14. package/bundles/taiga-ui-kit-components-input-copy.umd.min.js +2 -2
  15. package/bundles/taiga-ui-kit-components-input-copy.umd.min.js.map +1 -1
  16. package/bundles/taiga-ui-kit-components-input-count.umd.js +36 -3
  17. package/bundles/taiga-ui-kit-components-input-count.umd.js.map +1 -1
  18. package/bundles/taiga-ui-kit-components-input-count.umd.min.js +1 -1
  19. package/bundles/taiga-ui-kit-components-input-count.umd.min.js.map +1 -1
  20. package/bundles/taiga-ui-kit-components-input-date-range.umd.js +69 -25
  21. package/bundles/taiga-ui-kit-components-input-date-range.umd.js.map +1 -1
  22. package/bundles/taiga-ui-kit-components-input-date-range.umd.min.js +2 -2
  23. package/bundles/taiga-ui-kit-components-input-date-range.umd.min.js.map +1 -1
  24. package/bundles/taiga-ui-kit-components-input-date-time.umd.js +70 -26
  25. package/bundles/taiga-ui-kit-components-input-date-time.umd.js.map +1 -1
  26. package/bundles/taiga-ui-kit-components-input-date-time.umd.min.js +2 -2
  27. package/bundles/taiga-ui-kit-components-input-date-time.umd.min.js.map +1 -1
  28. package/bundles/taiga-ui-kit-components-input-date.umd.js +65 -25
  29. package/bundles/taiga-ui-kit-components-input-date.umd.js.map +1 -1
  30. package/bundles/taiga-ui-kit-components-input-date.umd.min.js +2 -2
  31. package/bundles/taiga-ui-kit-components-input-date.umd.min.js.map +1 -1
  32. package/bundles/taiga-ui-kit-components-input-month-range.umd.js +52 -3
  33. package/bundles/taiga-ui-kit-components-input-month-range.umd.js.map +1 -1
  34. package/bundles/taiga-ui-kit-components-input-month-range.umd.min.js +1 -1
  35. package/bundles/taiga-ui-kit-components-input-month-range.umd.min.js.map +1 -1
  36. package/bundles/taiga-ui-kit-components-input-month.umd.js +48 -3
  37. package/bundles/taiga-ui-kit-components-input-month.umd.js.map +1 -1
  38. package/bundles/taiga-ui-kit-components-input-month.umd.min.js +1 -1
  39. package/bundles/taiga-ui-kit-components-input-month.umd.min.js.map +1 -1
  40. package/bundles/taiga-ui-kit-components-input-number.umd.js +44 -4
  41. package/bundles/taiga-ui-kit-components-input-number.umd.js.map +1 -1
  42. package/bundles/taiga-ui-kit-components-input-number.umd.min.js +2 -2
  43. package/bundles/taiga-ui-kit-components-input-number.umd.min.js.map +1 -1
  44. package/bundles/taiga-ui-kit-components-input-password.umd.js +44 -3
  45. package/bundles/taiga-ui-kit-components-input-password.umd.js.map +1 -1
  46. package/bundles/taiga-ui-kit-components-input-password.umd.min.js +1 -1
  47. package/bundles/taiga-ui-kit-components-input-password.umd.min.js.map +1 -1
  48. package/bundles/taiga-ui-kit-components-input-phone-international.umd.js +14 -5
  49. package/bundles/taiga-ui-kit-components-input-phone-international.umd.js.map +1 -1
  50. package/bundles/taiga-ui-kit-components-input-phone-international.umd.min.js +1 -1
  51. package/bundles/taiga-ui-kit-components-input-phone-international.umd.min.js.map +1 -1
  52. package/bundles/taiga-ui-kit-components-input-phone.umd.js +58 -22
  53. package/bundles/taiga-ui-kit-components-input-phone.umd.js.map +1 -1
  54. package/bundles/taiga-ui-kit-components-input-phone.umd.min.js +1 -1
  55. package/bundles/taiga-ui-kit-components-input-phone.umd.min.js.map +1 -1
  56. package/bundles/taiga-ui-kit-components-input-range.umd.js +1 -1
  57. package/bundles/taiga-ui-kit-components-input-range.umd.min.js +2 -2
  58. package/bundles/taiga-ui-kit-components-input-range.umd.min.js.map +1 -1
  59. package/bundles/taiga-ui-kit-components-input-slider.umd.js +1 -1
  60. package/bundles/taiga-ui-kit-components-input-slider.umd.min.js +1 -1
  61. package/bundles/taiga-ui-kit-components-input-slider.umd.min.js.map +1 -1
  62. package/bundles/taiga-ui-kit-components-input-tag.umd.js +2 -2
  63. package/bundles/taiga-ui-kit-components-input-tag.umd.js.map +1 -1
  64. package/bundles/taiga-ui-kit-components-input-tag.umd.min.js +1 -1
  65. package/bundles/taiga-ui-kit-components-input-tag.umd.min.js.map +1 -1
  66. package/bundles/taiga-ui-kit-components-input.umd.js +32 -3
  67. package/bundles/taiga-ui-kit-components-input.umd.js.map +1 -1
  68. package/bundles/taiga-ui-kit-components-input.umd.min.js +1 -1
  69. package/bundles/taiga-ui-kit-components-input.umd.min.js.map +1 -1
  70. package/bundles/taiga-ui-kit-components-multi-select.umd.js +1 -0
  71. package/bundles/taiga-ui-kit-components-multi-select.umd.js.map +1 -1
  72. package/bundles/taiga-ui-kit-components-multi-select.umd.min.js +1 -1
  73. package/bundles/taiga-ui-kit-components-multi-select.umd.min.js.map +1 -1
  74. package/bundles/taiga-ui-kit-components-select.umd.js +66 -22
  75. package/bundles/taiga-ui-kit-components-select.umd.js.map +1 -1
  76. package/bundles/taiga-ui-kit-components-select.umd.min.js +1 -1
  77. package/bundles/taiga-ui-kit-components-select.umd.min.js.map +1 -1
  78. package/bundles/taiga-ui-kit-components-stepper.umd.js +1 -1
  79. package/bundles/taiga-ui-kit-components-stepper.umd.js.map +1 -1
  80. package/bundles/taiga-ui-kit-components-stepper.umd.min.js +1 -1
  81. package/bundles/taiga-ui-kit-components-stepper.umd.min.js.map +1 -1
  82. package/bundles/taiga-ui-kit-components-tabs.umd.js +1 -1
  83. package/bundles/taiga-ui-kit-components-tabs.umd.js.map +1 -1
  84. package/bundles/taiga-ui-kit-components-tabs.umd.min.js +1 -1
  85. package/bundles/taiga-ui-kit-components-tabs.umd.min.js.map +1 -1
  86. package/bundles/taiga-ui-kit-components-tag.umd.js +2 -2
  87. package/bundles/taiga-ui-kit-components-tag.umd.js.map +1 -1
  88. package/bundles/taiga-ui-kit-components-tag.umd.min.js +1 -1
  89. package/bundles/taiga-ui-kit-components-tag.umd.min.js.map +1 -1
  90. package/bundles/taiga-ui-kit-components-text-area.umd.js +6 -4
  91. package/bundles/taiga-ui-kit-components-text-area.umd.js.map +1 -1
  92. package/bundles/taiga-ui-kit-components-text-area.umd.min.js +1 -1
  93. package/bundles/taiga-ui-kit-components-text-area.umd.min.js.map +1 -1
  94. package/bundles/taiga-ui-kit-providers.umd.js +6 -5
  95. package/bundles/taiga-ui-kit-providers.umd.js.map +1 -1
  96. package/bundles/taiga-ui-kit-providers.umd.min.js +1 -1
  97. package/bundles/taiga-ui-kit-providers.umd.min.js.map +1 -1
  98. package/bundles/taiga-ui-kit-utils-mask.umd.js +8 -11
  99. package/bundles/taiga-ui-kit-utils-mask.umd.js.map +1 -1
  100. package/bundles/taiga-ui-kit-utils-mask.umd.min.js +1 -1
  101. package/bundles/taiga-ui-kit-utils-mask.umd.min.js.map +1 -1
  102. package/bundles/taiga-ui-kit-utils-miscellaneous.umd.js +1 -1
  103. package/bundles/taiga-ui-kit-utils-miscellaneous.umd.js.map +1 -1
  104. package/bundles/taiga-ui-kit-utils-miscellaneous.umd.min.js +1 -1
  105. package/bundles/taiga-ui-kit-utils-miscellaneous.umd.min.js.map +1 -1
  106. package/components/accordion/taiga-ui-kit-components-accordion.metadata.json +1 -1
  107. package/components/avatar/taiga-ui-kit-components-avatar.metadata.json +1 -1
  108. package/components/combo-box/combo-box.component.d.ts +1 -2
  109. package/components/combo-box/combo-box.directive.d.ts +6 -0
  110. package/components/combo-box/combo-box.providers.d.ts +2 -0
  111. package/components/combo-box/index.d.ts +2 -0
  112. package/components/combo-box/taiga-ui-kit-components-combo-box.metadata.json +1 -1
  113. package/components/input/index.d.ts +1 -0
  114. package/components/input/input.directive.d.ts +5 -0
  115. package/components/input/taiga-ui-kit-components-input.metadata.json +1 -1
  116. package/components/input-copy/index.d.ts +2 -0
  117. package/components/input-copy/input-copy.directive.d.ts +5 -0
  118. package/components/input-copy/input-copy.providers.d.ts +2 -0
  119. package/components/input-copy/taiga-ui-kit-components-input-copy.metadata.json +1 -1
  120. package/components/input-count/index.d.ts +1 -0
  121. package/components/input-count/input-count.directive.d.ts +6 -0
  122. package/components/input-count/taiga-ui-kit-components-input-count.metadata.json +1 -1
  123. package/components/input-date/index.d.ts +2 -0
  124. package/components/input-date/input-date.component.d.ts +0 -1
  125. package/components/input-date/input-date.directive.d.ts +7 -0
  126. package/components/input-date/input-date.providers.d.ts +4 -0
  127. package/components/input-date/taiga-ui-kit-components-input-date.metadata.json +1 -1
  128. package/components/input-date-range/index.d.ts +2 -0
  129. package/components/input-date-range/input-date-range.component.d.ts +0 -1
  130. package/components/input-date-range/input-date-range.directive.d.ts +7 -0
  131. package/components/input-date-range/input-date-range.providers.d.ts +4 -0
  132. package/components/input-date-range/taiga-ui-kit-components-input-date-range.metadata.json +1 -1
  133. package/components/input-date-time/index.d.ts +2 -0
  134. package/components/input-date-time/input-date-time.component.d.ts +0 -1
  135. package/components/input-date-time/input-date-time.directive.d.ts +7 -0
  136. package/components/input-date-time/input-date-time.providers.d.ts +4 -0
  137. package/components/input-date-time/taiga-ui-kit-components-input-date-time.metadata.json +1 -1
  138. package/components/input-month/index.d.ts +1 -0
  139. package/components/input-month/input-month.component.d.ts +2 -2
  140. package/components/input-month/input-month.directive.d.ts +7 -0
  141. package/components/input-month/taiga-ui-kit-components-input-month.metadata.json +1 -1
  142. package/components/input-month-range/index.d.ts +1 -0
  143. package/components/input-month-range/input-month-range.component.d.ts +2 -2
  144. package/components/input-month-range/input-month-range.directive.d.ts +7 -0
  145. package/components/input-month-range/taiga-ui-kit-components-input-month-range.metadata.json +1 -1
  146. package/components/input-number/index.d.ts +1 -0
  147. package/components/input-number/input-number.component.d.ts +1 -1
  148. package/components/input-number/input-number.directive.d.ts +7 -0
  149. package/components/input-number/taiga-ui-kit-components-input-number.metadata.json +1 -1
  150. package/components/input-password/index.d.ts +1 -0
  151. package/components/input-password/input-password.directive.d.ts +8 -0
  152. package/components/input-password/taiga-ui-kit-components-input-password.metadata.json +1 -1
  153. package/components/input-phone/index.d.ts +1 -0
  154. package/components/input-phone/input-phone.component.d.ts +1 -1
  155. package/components/input-phone/input-phone.directive.d.ts +7 -0
  156. package/components/input-phone/taiga-ui-kit-components-input-phone.metadata.json +1 -1
  157. package/components/input-phone-international/input-phone-international.component.d.ts +2 -1
  158. package/components/input-phone-international/taiga-ui-kit-components-input-phone-international.metadata.json +1 -1
  159. package/components/input-range/taiga-ui-kit-components-input-range.metadata.json +1 -1
  160. package/components/input-slider/taiga-ui-kit-components-input-slider.metadata.json +1 -1
  161. package/components/input-tag/taiga-ui-kit-components-input-tag.metadata.json +1 -1
  162. package/components/multi-select/taiga-ui-kit-components-multi-select.metadata.json +1 -1
  163. package/components/select/index.d.ts +2 -0
  164. package/components/select/select.component.d.ts +0 -1
  165. package/components/select/select.directive.d.ts +7 -0
  166. package/components/select/select.providers.d.ts +2 -0
  167. package/components/select/taiga-ui-kit-components-select.metadata.json +1 -1
  168. package/components/stepper/taiga-ui-kit-components-stepper.metadata.json +1 -1
  169. package/components/tabs/taiga-ui-kit-components-tabs.metadata.json +1 -1
  170. package/components/tag/taiga-ui-kit-components-tag.metadata.json +1 -1
  171. package/components/text-area/taiga-ui-kit-components-text-area.metadata.json +1 -1
  172. package/esm2015/components/accordion/accordion.component.js +3 -3
  173. package/esm2015/components/avatar/avatar.component.js +1 -1
  174. package/esm2015/components/combo-box/combo-box.component.js +10 -28
  175. package/esm2015/components/combo-box/combo-box.directive.js +25 -0
  176. package/esm2015/components/combo-box/combo-box.module.js +5 -4
  177. package/esm2015/components/combo-box/combo-box.providers.js +28 -0
  178. package/esm2015/components/combo-box/index.js +3 -1
  179. package/esm2015/components/input/index.js +2 -1
  180. package/esm2015/components/input/input.component.js +2 -2
  181. package/esm2015/components/input/input.directive.js +22 -0
  182. package/esm2015/components/input/input.module.js +5 -4
  183. package/esm2015/components/input/input.providers.js +6 -2
  184. package/esm2015/components/input-copy/index.js +3 -1
  185. package/esm2015/components/input-copy/input-copy.component.js +8 -15
  186. package/esm2015/components/input-copy/input-copy.directive.js +22 -0
  187. package/esm2015/components/input-copy/input-copy.module.js +5 -4
  188. package/esm2015/components/input-copy/input-copy.providers.js +16 -0
  189. package/esm2015/components/input-count/index.js +2 -1
  190. package/esm2015/components/input-count/input-count.component.js +6 -2
  191. package/esm2015/components/input-count/input-count.directive.js +26 -0
  192. package/esm2015/components/input-count/input-count.module.js +5 -4
  193. package/esm2015/components/input-date/index.js +3 -1
  194. package/esm2015/components/input-date/input-date.component.js +9 -27
  195. package/esm2015/components/input-date/input-date.directive.js +28 -0
  196. package/esm2015/components/input-date/input-date.module.js +5 -4
  197. package/esm2015/components/input-date/input-date.providers.js +29 -0
  198. package/esm2015/components/input-date-range/index.js +3 -1
  199. package/esm2015/components/input-date-range/input-date-range.component.js +9 -27
  200. package/esm2015/components/input-date-range/input-date-range.directive.js +28 -0
  201. package/esm2015/components/input-date-range/input-date-range.module.js +9 -4
  202. package/esm2015/components/input-date-range/input-date-range.providers.js +29 -0
  203. package/esm2015/components/input-date-time/index.js +3 -1
  204. package/esm2015/components/input-date-time/input-date-time.component.js +10 -28
  205. package/esm2015/components/input-date-time/input-date-time.directive.js +28 -0
  206. package/esm2015/components/input-date-time/input-date-time.module.js +9 -4
  207. package/esm2015/components/input-date-time/input-date-time.providers.js +29 -0
  208. package/esm2015/components/input-month/index.js +2 -1
  209. package/esm2015/components/input-month/input-month.component.js +7 -3
  210. package/esm2015/components/input-month/input-month.directive.js +30 -0
  211. package/esm2015/components/input-month/input-month.module.js +5 -4
  212. package/esm2015/components/input-month-range/index.js +2 -1
  213. package/esm2015/components/input-month-range/input-month-range.component.js +7 -3
  214. package/esm2015/components/input-month-range/input-month-range.directive.js +30 -0
  215. package/esm2015/components/input-month-range/input-month-range.module.js +9 -4
  216. package/esm2015/components/input-number/index.js +2 -1
  217. package/esm2015/components/input-number/input-number.component.js +8 -4
  218. package/esm2015/components/input-number/input-number.directive.js +29 -0
  219. package/esm2015/components/input-number/input-number.module.js +5 -4
  220. package/esm2015/components/input-password/index.js +2 -1
  221. package/esm2015/components/input-password/input-password.component.js +6 -2
  222. package/esm2015/components/input-password/input-password.directive.js +30 -0
  223. package/esm2015/components/input-password/input-password.module.js +9 -4
  224. package/esm2015/components/input-phone/index.js +2 -1
  225. package/esm2015/components/input-phone/input-phone.component.js +13 -24
  226. package/esm2015/components/input-phone/input-phone.directive.js +29 -0
  227. package/esm2015/components/input-phone/input-phone.module.js +5 -4
  228. package/esm2015/components/input-phone/input-phone.providers.js +17 -3
  229. package/esm2015/components/input-phone-international/input-phone-international.component.js +11 -6
  230. package/esm2015/components/input-range/input-range.component.js +1 -1
  231. package/esm2015/components/input-slider/input-slider.component.js +1 -1
  232. package/esm2015/components/input-tag/input-tag.component.js +3 -3
  233. package/esm2015/components/multi-select/multi-select.module.js +3 -1
  234. package/esm2015/components/select/index.js +3 -1
  235. package/esm2015/components/select/select.component.js +10 -28
  236. package/esm2015/components/select/select.directive.js +28 -0
  237. package/esm2015/components/select/select.module.js +5 -4
  238. package/esm2015/components/select/select.providers.js +28 -0
  239. package/esm2015/components/stepper/step/step.component.js +3 -3
  240. package/esm2015/components/tabs/tab/tab.providers.js +3 -3
  241. package/esm2015/components/tag/tag.component.js +3 -3
  242. package/esm2015/components/text-area/text-area.component.js +7 -4
  243. package/esm2015/components/text-area/text-area.module.js +2 -3
  244. package/esm2015/providers/value-accessor.provider.js +3 -2
  245. package/esm2015/utils/mask/create-auto-corrected-time-pipe.js +6 -8
  246. package/esm2015/utils/mask/create-time-mask.js +8 -11
  247. package/esm2015/utils/miscellaneous/get-precision.js +2 -2
  248. package/esm5/components/accordion/accordion.component.js +3 -3
  249. package/esm5/components/avatar/avatar.component.js +1 -1
  250. package/esm5/components/combo-box/combo-box.component.js +9 -28
  251. package/esm5/components/combo-box/combo-box.directive.js +35 -0
  252. package/esm5/components/combo-box/combo-box.module.js +5 -4
  253. package/esm5/components/combo-box/combo-box.providers.js +28 -0
  254. package/esm5/components/combo-box/index.js +3 -1
  255. package/esm5/components/input/index.js +2 -1
  256. package/esm5/components/input/input.component.js +2 -2
  257. package/esm5/components/input/input.directive.js +28 -0
  258. package/esm5/components/input/input.module.js +5 -4
  259. package/esm5/components/input/input.providers.js +6 -2
  260. package/esm5/components/input-copy/index.js +3 -1
  261. package/esm5/components/input-copy/input-copy.component.js +7 -15
  262. package/esm5/components/input-copy/input-copy.directive.js +28 -0
  263. package/esm5/components/input-copy/input-copy.module.js +5 -4
  264. package/esm5/components/input-copy/input-copy.providers.js +16 -0
  265. package/esm5/components/input-count/index.js +2 -1
  266. package/esm5/components/input-count/input-count.component.js +6 -2
  267. package/esm5/components/input-count/input-count.directive.js +32 -0
  268. package/esm5/components/input-count/input-count.module.js +5 -4
  269. package/esm5/components/input-date/index.js +3 -1
  270. package/esm5/components/input-date/input-date.component.js +8 -27
  271. package/esm5/components/input-date/input-date.directive.js +38 -0
  272. package/esm5/components/input-date/input-date.module.js +5 -4
  273. package/esm5/components/input-date/input-date.providers.js +29 -0
  274. package/esm5/components/input-date-range/index.js +3 -1
  275. package/esm5/components/input-date-range/input-date-range.component.js +8 -27
  276. package/esm5/components/input-date-range/input-date-range.directive.js +38 -0
  277. package/esm5/components/input-date-range/input-date-range.module.js +9 -4
  278. package/esm5/components/input-date-range/input-date-range.providers.js +29 -0
  279. package/esm5/components/input-date-time/index.js +3 -1
  280. package/esm5/components/input-date-time/input-date-time.component.js +9 -28
  281. package/esm5/components/input-date-time/input-date-time.directive.js +38 -0
  282. package/esm5/components/input-date-time/input-date-time.module.js +9 -4
  283. package/esm5/components/input-date-time/input-date-time.providers.js +29 -0
  284. package/esm5/components/input-month/index.js +2 -1
  285. package/esm5/components/input-month/input-month.component.js +7 -3
  286. package/esm5/components/input-month/input-month.directive.js +44 -0
  287. package/esm5/components/input-month/input-month.module.js +5 -4
  288. package/esm5/components/input-month-range/index.js +2 -1
  289. package/esm5/components/input-month-range/input-month-range.component.js +7 -3
  290. package/esm5/components/input-month-range/input-month-range.directive.js +44 -0
  291. package/esm5/components/input-month-range/input-month-range.module.js +9 -4
  292. package/esm5/components/input-number/index.js +2 -1
  293. package/esm5/components/input-number/input-number.component.js +8 -4
  294. package/esm5/components/input-number/input-number.directive.js +39 -0
  295. package/esm5/components/input-number/input-number.module.js +5 -4
  296. package/esm5/components/input-password/index.js +2 -1
  297. package/esm5/components/input-password/input-password.component.js +6 -2
  298. package/esm5/components/input-password/input-password.directive.js +36 -0
  299. package/esm5/components/input-password/input-password.module.js +9 -4
  300. package/esm5/components/input-phone/index.js +2 -1
  301. package/esm5/components/input-phone/input-phone.component.js +12 -24
  302. package/esm5/components/input-phone/input-phone.directive.js +39 -0
  303. package/esm5/components/input-phone/input-phone.module.js +5 -4
  304. package/esm5/components/input-phone/input-phone.providers.js +17 -3
  305. package/esm5/components/input-phone-international/input-phone-international.component.js +15 -6
  306. package/esm5/components/input-range/input-range.component.js +1 -1
  307. package/esm5/components/input-slider/input-slider.component.js +1 -1
  308. package/esm5/components/input-tag/input-tag.component.js +3 -3
  309. package/esm5/components/multi-select/multi-select.module.js +3 -1
  310. package/esm5/components/select/index.js +3 -1
  311. package/esm5/components/select/select.component.js +9 -28
  312. package/esm5/components/select/select.directive.js +42 -0
  313. package/esm5/components/select/select.module.js +5 -4
  314. package/esm5/components/select/select.providers.js +28 -0
  315. package/esm5/components/stepper/step/step.component.js +3 -3
  316. package/esm5/components/tabs/tab/tab.providers.js +3 -3
  317. package/esm5/components/tag/tag.component.js +3 -3
  318. package/esm5/components/text-area/text-area.component.js +7 -4
  319. package/esm5/components/text-area/text-area.module.js +2 -3
  320. package/esm5/providers/value-accessor.provider.js +3 -2
  321. package/esm5/utils/mask/create-auto-corrected-time-pipe.js +5 -5
  322. package/esm5/utils/mask/create-time-mask.js +5 -8
  323. package/esm5/utils/miscellaneous/get-precision.js +2 -2
  324. package/fesm2015/taiga-ui-kit-components-accordion.js +2 -2
  325. package/fesm2015/taiga-ui-kit-components-accordion.js.map +1 -1
  326. package/fesm2015/taiga-ui-kit-components-avatar.js +1 -1
  327. package/fesm2015/taiga-ui-kit-components-combo-box.js +52 -26
  328. package/fesm2015/taiga-ui-kit-components-combo-box.js.map +1 -1
  329. package/fesm2015/taiga-ui-kit-components-input-copy.js +41 -18
  330. package/fesm2015/taiga-ui-kit-components-input-copy.js.map +1 -1
  331. package/fesm2015/taiga-ui-kit-components-input-count.js +32 -6
  332. package/fesm2015/taiga-ui-kit-components-input-count.js.map +1 -1
  333. package/fesm2015/taiga-ui-kit-components-input-date-range.js +61 -28
  334. package/fesm2015/taiga-ui-kit-components-input-date-range.js.map +1 -1
  335. package/fesm2015/taiga-ui-kit-components-input-date-time.js +62 -29
  336. package/fesm2015/taiga-ui-kit-components-input-date-time.js.map +1 -1
  337. package/fesm2015/taiga-ui-kit-components-input-date.js +57 -28
  338. package/fesm2015/taiga-ui-kit-components-input-date.js.map +1 -1
  339. package/fesm2015/taiga-ui-kit-components-input-month-range.js +41 -7
  340. package/fesm2015/taiga-ui-kit-components-input-month-range.js.map +1 -1
  341. package/fesm2015/taiga-ui-kit-components-input-month.js +37 -7
  342. package/fesm2015/taiga-ui-kit-components-input-month.js.map +1 -1
  343. package/fesm2015/taiga-ui-kit-components-input-number.js +37 -8
  344. package/fesm2015/taiga-ui-kit-components-input-number.js.map +1 -1
  345. package/fesm2015/taiga-ui-kit-components-input-password.js +40 -6
  346. package/fesm2015/taiga-ui-kit-components-input-password.js.map +1 -1
  347. package/fesm2015/taiga-ui-kit-components-input-phone-international.js +10 -5
  348. package/fesm2015/taiga-ui-kit-components-input-phone-international.js.map +1 -1
  349. package/fesm2015/taiga-ui-kit-components-input-phone.js +52 -26
  350. package/fesm2015/taiga-ui-kit-components-input-phone.js.map +1 -1
  351. package/fesm2015/taiga-ui-kit-components-input-range.js +1 -1
  352. package/fesm2015/taiga-ui-kit-components-input-slider.js +1 -1
  353. package/fesm2015/taiga-ui-kit-components-input-tag.js +2 -2
  354. package/fesm2015/taiga-ui-kit-components-input-tag.js.map +1 -1
  355. package/fesm2015/taiga-ui-kit-components-input.js +28 -6
  356. package/fesm2015/taiga-ui-kit-components-input.js.map +1 -1
  357. package/fesm2015/taiga-ui-kit-components-multi-select.js +2 -1
  358. package/fesm2015/taiga-ui-kit-components-multi-select.js.map +1 -1
  359. package/fesm2015/taiga-ui-kit-components-select.js +55 -26
  360. package/fesm2015/taiga-ui-kit-components-select.js.map +1 -1
  361. package/fesm2015/taiga-ui-kit-components-stepper.js +2 -2
  362. package/fesm2015/taiga-ui-kit-components-stepper.js.map +1 -1
  363. package/fesm2015/taiga-ui-kit-components-tabs.js +2 -2
  364. package/fesm2015/taiga-ui-kit-components-tabs.js.map +1 -1
  365. package/fesm2015/taiga-ui-kit-components-tag.js +2 -2
  366. package/fesm2015/taiga-ui-kit-components-tag.js.map +1 -1
  367. package/fesm2015/taiga-ui-kit-components-text-area.js +7 -5
  368. package/fesm2015/taiga-ui-kit-components-text-area.js.map +1 -1
  369. package/fesm2015/taiga-ui-kit-providers.js +2 -1
  370. package/fesm2015/taiga-ui-kit-providers.js.map +1 -1
  371. package/fesm2015/taiga-ui-kit-utils-mask.js +12 -17
  372. package/fesm2015/taiga-ui-kit-utils-mask.js.map +1 -1
  373. package/fesm2015/taiga-ui-kit-utils-miscellaneous.js +1 -1
  374. package/fesm2015/taiga-ui-kit-utils-miscellaneous.js.map +1 -1
  375. package/fesm5/taiga-ui-kit-components-accordion.js +2 -2
  376. package/fesm5/taiga-ui-kit-components-accordion.js.map +1 -1
  377. package/fesm5/taiga-ui-kit-components-avatar.js +1 -1
  378. package/fesm5/taiga-ui-kit-components-combo-box.js +61 -26
  379. package/fesm5/taiga-ui-kit-components-combo-box.js.map +1 -1
  380. package/fesm5/taiga-ui-kit-components-input-copy.js +46 -18
  381. package/fesm5/taiga-ui-kit-components-input-copy.js.map +1 -1
  382. package/fesm5/taiga-ui-kit-components-input-count.js +38 -6
  383. package/fesm5/taiga-ui-kit-components-input-count.js.map +1 -1
  384. package/fesm5/taiga-ui-kit-components-input-date-range.js +70 -28
  385. package/fesm5/taiga-ui-kit-components-input-date-range.js.map +1 -1
  386. package/fesm5/taiga-ui-kit-components-input-date-time.js +71 -29
  387. package/fesm5/taiga-ui-kit-components-input-date-time.js.map +1 -1
  388. package/fesm5/taiga-ui-kit-components-input-date.js +66 -28
  389. package/fesm5/taiga-ui-kit-components-input-date.js.map +1 -1
  390. package/fesm5/taiga-ui-kit-components-input-month-range.js +55 -7
  391. package/fesm5/taiga-ui-kit-components-input-month-range.js.map +1 -1
  392. package/fesm5/taiga-ui-kit-components-input-month.js +51 -7
  393. package/fesm5/taiga-ui-kit-components-input-month.js.map +1 -1
  394. package/fesm5/taiga-ui-kit-components-input-number.js +47 -8
  395. package/fesm5/taiga-ui-kit-components-input-number.js.map +1 -1
  396. package/fesm5/taiga-ui-kit-components-input-password.js +46 -6
  397. package/fesm5/taiga-ui-kit-components-input-password.js.map +1 -1
  398. package/fesm5/taiga-ui-kit-components-input-phone-international.js +14 -5
  399. package/fesm5/taiga-ui-kit-components-input-phone-international.js.map +1 -1
  400. package/fesm5/taiga-ui-kit-components-input-phone.js +61 -26
  401. package/fesm5/taiga-ui-kit-components-input-phone.js.map +1 -1
  402. package/fesm5/taiga-ui-kit-components-input-range.js +1 -1
  403. package/fesm5/taiga-ui-kit-components-input-slider.js +1 -1
  404. package/fesm5/taiga-ui-kit-components-input-tag.js +2 -2
  405. package/fesm5/taiga-ui-kit-components-input-tag.js.map +1 -1
  406. package/fesm5/taiga-ui-kit-components-input.js +35 -7
  407. package/fesm5/taiga-ui-kit-components-input.js.map +1 -1
  408. package/fesm5/taiga-ui-kit-components-multi-select.js +2 -1
  409. package/fesm5/taiga-ui-kit-components-multi-select.js.map +1 -1
  410. package/fesm5/taiga-ui-kit-components-select.js +68 -26
  411. package/fesm5/taiga-ui-kit-components-select.js.map +1 -1
  412. package/fesm5/taiga-ui-kit-components-stepper.js +2 -2
  413. package/fesm5/taiga-ui-kit-components-stepper.js.map +1 -1
  414. package/fesm5/taiga-ui-kit-components-tabs.js +2 -2
  415. package/fesm5/taiga-ui-kit-components-tabs.js.map +1 -1
  416. package/fesm5/taiga-ui-kit-components-tag.js +2 -2
  417. package/fesm5/taiga-ui-kit-components-tag.js.map +1 -1
  418. package/fesm5/taiga-ui-kit-components-text-area.js +7 -5
  419. package/fesm5/taiga-ui-kit-components-text-area.js.map +1 -1
  420. package/fesm5/taiga-ui-kit-providers.js +2 -1
  421. package/fesm5/taiga-ui-kit-providers.js.map +1 -1
  422. package/fesm5/taiga-ui-kit-utils-mask.js +8 -11
  423. package/fesm5/taiga-ui-kit-utils-mask.js.map +1 -1
  424. package/fesm5/taiga-ui-kit-utils-miscellaneous.js +1 -1
  425. package/fesm5/taiga-ui-kit-utils-miscellaneous.js.map +1 -1
  426. package/package.json +6 -6
  427. package/providers/taiga-ui-kit-providers.metadata.json +1 -1
  428. package/providers/value-accessor.provider.d.ts +1 -1
@@ -1,4 +1,4 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/forms"),require("@taiga-ui/cdk"),require("@taiga-ui/core"),require("@taiga-ui/kit/abstract"),require("@angular/common"),require("@taiga-ui/kit/components/range"),require("angular2-text-mask")):"function"==typeof define&&define.amd?define("@taiga-ui/kit/components/input-range",["exports","@angular/core","@angular/forms","@taiga-ui/cdk","@taiga-ui/core","@taiga-ui/kit/abstract","@angular/common","@taiga-ui/kit/components/range","angular2-text-mask"],t):t(((e=e||self)["taiga-ui"]=e["taiga-ui"]||{},e["taiga-ui"].kit=e["taiga-ui"].kit||{},e["taiga-ui"].kit.components=e["taiga-ui"].kit.components||{},e["taiga-ui"].kit.components["input-range"]={}),e.ng.core,e.ng.forms,e.cdk,e.core$1,e["taiga-ui"].kit.abstract,e.ng.common,e["taiga-ui"].kit.components.range,e.angular2TextMask)}(this,(function(e,t,n,i,a,o,r,s,l){"use strict";
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/forms"),require("@taiga-ui/cdk"),require("@taiga-ui/core"),require("@taiga-ui/kit/abstract"),require("@angular/common"),require("@taiga-ui/kit/components/range"),require("angular2-text-mask")):"function"==typeof define&&define.amd?define("@taiga-ui/kit/components/input-range",["exports","@angular/core","@angular/forms","@taiga-ui/cdk","@taiga-ui/core","@taiga-ui/kit/abstract","@angular/common","@taiga-ui/kit/components/range","angular2-text-mask"],t):t(((e=e||self)["taiga-ui"]=e["taiga-ui"]||{},e["taiga-ui"].kit=e["taiga-ui"].kit||{},e["taiga-ui"].kit.components=e["taiga-ui"].kit.components||{},e["taiga-ui"].kit.components["input-range"]={}),e.ng.core,e.ng.forms,e.cdk,e.core$1,e["taiga-ui"].kit.abstract,e.ng.common,e["taiga-ui"].kit.components.range,e.angular2TextMask)}(this,(function(e,t,n,i,a,o,r,l,s){"use strict";
2
2
  /*! *****************************************************************************
3
3
  Copyright (c) Microsoft Corporation.
4
4
 
@@ -12,5 +12,5 @@
12
12
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
13
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
14
  PERFORMANCE OF THIS SOFTWARE.
15
- ***************************************************************************** */var u=function(e,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function d(e,t,n,i){var a,o=arguments.length,r=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(r=(o<3?a(r):o>3?a(t,n,r):a(t,n))||r);return o>3&&r&&Object.defineProperty(t,n,r),r}function p(e,t){return function(n,i){t(n,i,e)}}var h=function(e){function o(t,n,i,a,o,r){var s=e.call(this,t,n)||this;return s.modeDirective=i,s.isMobile=a,s.numberFormat=o,s.appearance=r,s}var r;return function(e,t){function n(){this.constructor=e}u(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(o,e),r=o,Object.defineProperty(o.prototype,"nativeFocusableElement",{get:function(){return!this.nativeLeft||this.disabled?null:this.nativeLeft.nativeElement},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"focused",{get:function(){return this.focusedLeft||this.focusedRight},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"focusedLeft",{get:function(){return!!this.nativeLeft&&i.isNativeFocused(this.nativeLeft.nativeElement)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"focusedRight",{get:function(){return!!this.nativeRight&&i.isNativeFocused(this.nativeRight.nativeElement)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"showMinLabel",{get:function(){return!this.focusedLeft&&!!this.minLabel&&this.value[0]===this.min},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"showMaxLabel",{get:function(){return!this.focusedRight&&!!this.maxLabel&&this.value[1]===this.max},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"inputValueLeft",{get:function(){return this.nativeLeft?this.nativeLeft.nativeElement.value:""},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"inputValueRight",{get:function(){return this.nativeRight?this.nativeRight.nativeElement.value:""},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"computedValueLeft",{get:function(){return this.formatNumber(this.value[0])},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"computedValueRight",{get:function(){return this.formatNumber(this.value[1])},enumerable:!0,configurable:!0}),o.prototype.onActiveZone=function(e){this.updateFocused(e)},o.prototype.onMouseDown=function(){this.nativeRight&&!this.isMobile&&i.setNativeFocused(this.nativeRight.nativeElement)},o.prototype.onKeyDownArrowUpLeft=function(e){this.readOnly||(e.preventDefault(),this.processStep(!0,!1))},o.prototype.onKeyDownArrowDownLeft=function(e){this.readOnly||(e.preventDefault(),this.processStep(!1,!1))},o.prototype.onKeyDownArrowUpRight=function(e){this.readOnly||(e.preventDefault(),this.processStep(!0,!0))},o.prototype.onKeyDownArrowDownRight=function(e){this.readOnly||(e.preventDefault(),this.processStep(!1,!0))},o.prototype.onInputLeft=function(){var e=this.inputValueLeft,t=this.capInputValue(e,this.value[1]),n=","===e.slice(-1)[0]?",":"";if(!a.maskedMoneyValueIsEmpty(e)&&null!==t){var i=this.formatNumber(t)+n;this.nativeLeft&&this.inputValueLeft!==i&&(this.nativeLeft.nativeElement.value=i),this.updateValue([t,this.value[1]])}},o.prototype.onInputRight=function(){var e=this.inputValueRight,t=this.capInputValue(e),n=","===e.slice(-1)[0]?",":"";if(!a.maskedMoneyValueIsEmpty(e)&&null!==t){var i=this.formatNumber(t)+n;this.nativeRight&&this.inputValueRight!==i&&(this.nativeRight.nativeElement.value=i),t>=this.value[0]&&this.updateValue([this.value[0],t])}},o.prototype.onRangeValue=function(e){var t=this,n=e.map((function(e){return t.valueGuard(e)}));if(this.nativeLeft&&this.nativeRight&&(n[0]!==this.value[0]||n[1]!==this.value[1])){if(!this.isMobile){var a=n[0]!==this.value[0]?this.nativeLeft.nativeElement:this.nativeRight.nativeElement;i.setNativeFocused(a)}this.updateValue(n),this.nativeLeft.nativeElement.value=this.formatNumber(n[0])}},o.prototype.onLeftFocused=function(e){if(!e&&this.nativeLeft){var t=a.maskedNumberStringToNumber(this.computedValueLeft,this.numberFormat.decimalSeparator,this.numberFormat.thousandSeparator),n=isNaN(t)?this.min:this.valueGuard(t);this.nativeLeft.nativeElement.value=this.formatNumber(n),n!==this.value[0]&&this.updateValue([n,this.value[1]])}},o.prototype.onRightFocused=function(e){if(!e&&this.nativeRight){var t=a.maskedNumberStringToNumber(this.computedValueRight,this.numberFormat.decimalSeparator,this.numberFormat.thousandSeparator),n=isNaN(t)?this.value[0]:this.valueGuard(Math.max(t,this.value[0]));this.nativeRight.nativeElement.value=this.formatNumber(n),n!==this.value[1]&&this.updateValue([this.value[0],n])}},o.prototype.getFallbackValue=function(){return[0,0]},o.prototype.formatNumber=function(e){return a.formatNumber(e,null,this.numberFormat.decimalSeparator,this.numberFormat.thousandSeparator)},o.prototype.processStep=function(e,t){var n=this.valueGuard(e?this.value[0]+this.step:this.value[0]-this.step),i=this.valueGuard(e?this.value[1]+this.step:this.value[1]-this.step),a=[t?this.value[0]:Math.min(n,this.value[1]),t?Math.max(i,this.value[0]):this.value[1]];a[0]===this.value[0]&&a[1]===this.value[1]||this.updateValue(a)},o.ctorParameters=function(){return[{type:n.NgControl,decorators:[{type:t.Optional},{type:t.Self},{type:t.Inject,args:[n.NgControl]}]},{type:t.ChangeDetectorRef,decorators:[{type:t.Inject,args:[t.ChangeDetectorRef]}]},{type:a.TuiModeDirective,decorators:[{type:t.Optional},{type:t.Inject,args:[a.TuiModeDirective]}]},{type:Boolean,decorators:[{type:t.Inject,args:[i.TUI_IS_MOBILE]}]},{type:void 0,decorators:[{type:t.Inject,args:[a.TUI_NUMBER_FORMAT]}]},{type:String,decorators:[{type:t.Inject,args:[a.TUI_TEXTFIELD_APPEARANCE]}]}]},d([t.ViewChild("nativeLeft")],o.prototype,"nativeLeft",void 0),d([t.ViewChild("nativeRight")],o.prototype,"nativeRight",void 0),d([t.HostBinding("class._min-label")],o.prototype,"showMinLabel",null),d([t.HostBinding("class._max-label")],o.prototype,"showMaxLabel",null),o=r=d([t.Component({selector:"tui-input-range",template:'<div class="zone" (tuiActiveZoneChange)="onActiveZone($event)">\n <tui-wrapper\n [appearance]="appearance"\n [readOnly]="readOnly"\n [disabled]="disabled"\n [focused]="computedFocused"\n [hovered]="computedHovered"\n [invalid]="computedInvalid"\n >\n <span\n *ngIf="hasPlaceholder"\n automation-id="tui-input-range__placeholder"\n class="placeholder placeholder_raised"\n >\n <ng-content></ng-content>\n </span>\n <div class="content">\n <span *ngIf="!showMinLabel" class="label">\n <span class="value">{{ inputValueLeft }}</span>\n <span\n *ngIf="pluralizeMap"\n automation-id="tui-input-range__pluralize-left"\n class="pluralize"\n >\n {{ value[0] | i18nPlural: pluralizeMap }}\n </span>\n </span>\n <span\n *ngIf="showMinLabel"\n automation-id="tui-input-range__min-label"\n class="label"\n >\n {{ minLabel }}\n </span>\n <span\n *ngIf="showMaxLabel"\n automation-id="tui-input-range__max-label"\n class="max"\n >\n {{ maxLabel }}\n </span>\n </div>\n <tui-range\n class="slider"\n [min]="min"\n [max]="max"\n [steps]="computedSteps"\n [segments]="segments"\n [keySteps]="keySteps"\n [pluralize]="segmentsPluralize"\n [focusable]="false"\n [disabled]="readOnly || disabled"\n [ngModel]="value"\n (ngModelChange)="onRangeValue($event)"\n (mousedown.prevent)="onMouseDown()"\n ></tui-range>\n </tui-wrapper>\n\n <div class="native-wrapper" (tuiHoveredChange)="onHovered($event)">\n <input\n #nativeLeft\n automation-id="tui-input-range__native-left"\n class="native"\n [disabled]="disabled"\n [readOnly]="readOnly"\n [class.native_hidden]="showMinLabel"\n [tuiInputMode]="inputMode"\n [tuiFocusable]="focusable"\n [textMask]="quantum | tuiMapper: mask:min"\n [ngModel]="computedValueLeft"\n (ngModelChange)="onInputLeft()"\n (tuiFocusedChange)="onLeftFocused($event)"\n (keydown.arrowUp)="onKeyDownArrowUpLeft($event)"\n (keydown.arrowDown)="onKeyDownArrowDownLeft($event)"\n />\n <input\n #nativeRight\n automation-id="tui-input-range__native-right"\n class="native native_right"\n [disabled]="disabled"\n [readOnly]="readOnly"\n [class.native_hidden]="showMaxLabel"\n [tuiInputMode]="inputMode"\n [tuiFocusable]="focusable"\n [textMask]="quantum | tuiMapper: mask:min"\n [ngModel]="computedValueRight"\n (ngModelChange)="onInputRight()"\n (tuiFocusedChange)="onRightFocused($event)"\n (keydown.arrowUp)="onKeyDownArrowUpRight($event)"\n (keydown.arrowDown)="onKeyDownArrowDownRight($event)"\n />\n <span\n *ngIf="pluralizeMap && !showMaxLabel"\n automation-id="tui-input-range__pluralize-right"\n class="pluralize pluralize_right"\n (mousedown)="onMouseDown()"\n >\n {{ value[1] | i18nPlural: pluralizeMap }}\n </span>\n </div>\n</div>\n',changeDetection:t.ChangeDetectionStrategy.OnPush,providers:[{provide:i.TUI_FOCUSABLE_ITEM_ACCESSOR,useExisting:t.forwardRef((function(){return r}))}],styles:[":host{position:relative;z-index:0;display:block;font:var(--tui-font-text-m);border-radius:var(--tui-radius-m);color:var(--tui-text-01)}:host._segmented{border-bottom:26px solid transparent}:host[data-mode=onDark]{color:var(--tui-base-01)}.zone{border-radius:inherit}.native-wrapper{position:absolute;top:0;left:0;width:100%;height:100%;display:flex}.pluralize{display:flex;align-items:center;padding-right:.75rem;margin-left:-.5rem}.pluralize_right{margin-left:-.75rem}:host[data-tui-host-size='l'] .pluralize_right{padding-top:1.25rem}:host._disabled .pluralize_right{color:var(--tui-text-03)}:host[data-mode=onDark]._disabled .pluralize_right{color:var(--tui-text-03-night)}.native{padding:0 1rem;border:0;border-radius:inherit;background:0 0;font-size:inherit;line-height:inherit;font-weight:inherit;color:inherit;caret-color:currentColor;-webkit-appearance:none;-moz-appearance:none;appearance:none;word-break:keep-all;-webkit-text-fill-color:currentColor;flex:1;min-width:0;color:var(--tui-text-01);box-sizing:border-box;outline:0}.native:-webkit-autofill,.native:-webkit-autofill:focus,.native:-webkit-autofill:hover{border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01)!important;border-color:var(--tui-autofill);-webkit-box-shadow:0 0 0 1000px var(--tui-autofill) inset!important}.native_right{text-align:right}.native_hidden{opacity:0}:host._disabled .native{color:var(--tui-text-03);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host[data-tui-host-size='l'] .native{padding:1.25rem 1rem 0}:host[data-mode=onDark] .native{color:var(--tui-text-01-night)}:host[data-mode=onDark]._disabled .native{color:var(--tui-text-03-night)}.content{display:flex;height:var(--tui-height-m);padding:0 1rem;justify-content:space-between;align-items:center}:host[data-tui-host-size='l'] .content{height:var(--tui-height-l);padding:0 1rem}:host[data-tui-host-size='l']._disabled .content{color:var(--tui-text-03)}:host[data-tui-host-size='l'][data-mode=onDark]._disabled .content{color:var(--tui-text-03-night)}.placeholder{transition-property:transform,font-size,color,letter-spacing;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;font:var(--tui-font-text-s);color:var(--tui-text-01);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;font-size:.8125rem;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;color:var(--tui-text-02);pointer-events:none;position:absolute;top:0;width:100%;height:100%;left:1rem;line-height:var(--tui-height-l)}.placeholder_raised{transform:translateY(-.625rem)}:host[data-tui-host-size='m'] .placeholder_raised{font-size:.69rem;transform:translateY(-.5rem);letter-spacing:.025rem}:host._invalid:not(._focused) .placeholder_raised,:host._invalid:not(._focused)._hovered .placeholder_raised{color:var(--tui-error-fill)}:host[data-mode=onDark]._invalid:not(._focused) .placeholder_raised,:host[data-mode=onDark]._invalid:not(._focused)._hovered .placeholder_raised{color:var(--tui-error-fill-night)}:host._focused .placeholder,:host[data-tui-host-size='l']._focused._label-outside .placeholder,:host[data-tui-host-size='m']._focused._label-outside .placeholder{color:var(--tui-text-03)}:host[data-tui-host-size='l'] .placeholder{font-size:.9375rem}:host[data-tui-host-size='l'] .placeholder_raised{font-size:.8156rem}:host[data-tui-host-size='l']._focused:not(._label-outside) .placeholder,:host[data-tui-host-size='m']._focused:not(._label-outside) .placeholder{color:var(--tui-text-01)}:host[data-mode=onDark] .placeholder{color:var(--tui-text-02-night)}:host[data-tui-host-size='l'][data-mode=onDark]._focused:not(._label-outside) .placeholder,:host[data-tui-host-size='m'][data-mode=onDark]._focused:not(._label-outside) .placeholder{color:var(--tui-text-01-night)}:host[data-mode=onDark]._focused .placeholder,:host[data-tui-host-size='l'][data-mode=onDark]._focused._label-outside .placeholder,:host[data-tui-host-size='m'][data-mode=onDark]._focused._label-outside .placeholder{color:var(--tui-text-02-night)}.value{visibility:hidden;overflow:hidden;padding-right:.75rem}:host._disabled .value{color:var(--tui-text-03)}.label{display:flex;width:50%}:host[data-tui-host-size='l'] .label{padding-top:1.25rem}.max{text-align:right;flex:1}:host[data-tui-host-size='l'] .max{padding-top:1.25rem;line-height:calc(var(--tui-height-l) - 1.25rem)}.slider{position:absolute;top:100%;left:0;right:0;z-index:1;border-top-left-radius:0;border-top-right-radius:0;margin:-.5625rem 0 0;color:transparent}:host._disabled .slider,:host._readonly .slider{pointer-events:none}"]}),p(0,t.Optional()),p(0,t.Self()),p(0,t.Inject(n.NgControl)),p(1,t.Inject(t.ChangeDetectorRef)),p(2,t.Optional()),p(2,t.Inject(a.TuiModeDirective)),p(3,t.Inject(i.TUI_IS_MOBILE)),p(4,t.Inject(a.TUI_NUMBER_FORMAT)),p(5,t.Inject(a.TUI_TEXTFIELD_APPEARANCE))],o)}(o.AbstractTuiInputSlider),c=function(){function e(){}return e=d([t.NgModule({imports:[r.CommonModule,n.FormsModule,n.ReactiveFormsModule,l.TextMaskModule,i.TuiFocusableModule,i.TuiFocusedModule,i.TuiHoveredModule,i.TuiPressedModule,i.TuiMapperPipeModule,i.TuiInputModeModule,i.TuiActiveZoneModule,s.TuiRangeModule,a.TuiWrapperModule],declarations:[h],exports:[h]})],e)}();e.TuiInputRangeComponent=h,e.TuiInputRangeModule=c,Object.defineProperty(e,"__esModule",{value:!0})}));
15
+ ***************************************************************************** */var u=function(e,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function d(e,t,n,i){var a,o=arguments.length,r=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(a=e[l])&&(r=(o<3?a(r):o>3?a(t,n,r):a(t,n))||r);return o>3&&r&&Object.defineProperty(t,n,r),r}function p(e,t){return function(n,i){t(n,i,e)}}var h=function(e){function o(t,n,i,a,o,r){var l=e.call(this,t,n)||this;return l.modeDirective=i,l.isMobile=a,l.numberFormat=o,l.appearance=r,l}var r;return function(e,t){function n(){this.constructor=e}u(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(o,e),r=o,Object.defineProperty(o.prototype,"nativeFocusableElement",{get:function(){return!this.nativeLeft||this.disabled?null:this.nativeLeft.nativeElement},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"focused",{get:function(){return this.focusedLeft||this.focusedRight},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"focusedLeft",{get:function(){return!!this.nativeLeft&&i.isNativeFocused(this.nativeLeft.nativeElement)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"focusedRight",{get:function(){return!!this.nativeRight&&i.isNativeFocused(this.nativeRight.nativeElement)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"showMinLabel",{get:function(){return!this.focusedLeft&&!!this.minLabel&&this.value[0]===this.min},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"showMaxLabel",{get:function(){return!this.focusedRight&&!!this.maxLabel&&this.value[1]===this.max},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"inputValueLeft",{get:function(){return this.nativeLeft?this.nativeLeft.nativeElement.value:""},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"inputValueRight",{get:function(){return this.nativeRight?this.nativeRight.nativeElement.value:""},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"computedValueLeft",{get:function(){return this.formatNumber(this.value[0])},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"computedValueRight",{get:function(){return this.formatNumber(this.value[1])},enumerable:!0,configurable:!0}),o.prototype.onActiveZone=function(e){this.updateFocused(e)},o.prototype.onMouseDown=function(){this.nativeRight&&!this.isMobile&&i.setNativeFocused(this.nativeRight.nativeElement)},o.prototype.onKeyDownArrowUpLeft=function(e){this.readOnly||(e.preventDefault(),this.processStep(!0,!1))},o.prototype.onKeyDownArrowDownLeft=function(e){this.readOnly||(e.preventDefault(),this.processStep(!1,!1))},o.prototype.onKeyDownArrowUpRight=function(e){this.readOnly||(e.preventDefault(),this.processStep(!0,!0))},o.prototype.onKeyDownArrowDownRight=function(e){this.readOnly||(e.preventDefault(),this.processStep(!1,!0))},o.prototype.onInputLeft=function(){var e=this.inputValueLeft,t=this.capInputValue(e,this.value[1]),n=","===e.slice(-1)[0]?",":"";if(!a.maskedMoneyValueIsEmpty(e)&&null!==t){var i=this.formatNumber(t)+n;this.nativeLeft&&this.inputValueLeft!==i&&(this.nativeLeft.nativeElement.value=i),this.updateValue([t,this.value[1]])}},o.prototype.onInputRight=function(){var e=this.inputValueRight,t=this.capInputValue(e),n=","===e.slice(-1)[0]?",":"";if(!a.maskedMoneyValueIsEmpty(e)&&null!==t){var i=this.formatNumber(t)+n;this.nativeRight&&this.inputValueRight!==i&&(this.nativeRight.nativeElement.value=i),t>=this.value[0]&&this.updateValue([this.value[0],t])}},o.prototype.onRangeValue=function(e){var t=this,n=e.map((function(e){return t.valueGuard(e)}));if(this.nativeLeft&&this.nativeRight&&(n[0]!==this.value[0]||n[1]!==this.value[1])){if(!this.isMobile){var a=n[0]!==this.value[0]?this.nativeLeft.nativeElement:this.nativeRight.nativeElement;i.setNativeFocused(a)}this.updateValue(n),this.nativeLeft.nativeElement.value=this.formatNumber(n[0])}},o.prototype.onLeftFocused=function(e){if(!e&&this.nativeLeft){var t=a.maskedNumberStringToNumber(this.computedValueLeft,this.numberFormat.decimalSeparator,this.numberFormat.thousandSeparator),n=isNaN(t)?this.min:this.valueGuard(t);this.nativeLeft.nativeElement.value=this.formatNumber(n),n!==this.value[0]&&this.updateValue([n,this.value[1]])}},o.prototype.onRightFocused=function(e){if(!e&&this.nativeRight){var t=a.maskedNumberStringToNumber(this.computedValueRight,this.numberFormat.decimalSeparator,this.numberFormat.thousandSeparator),n=isNaN(t)?this.value[0]:this.valueGuard(Math.max(t,this.value[0]));this.nativeRight.nativeElement.value=this.formatNumber(n),n!==this.value[1]&&this.updateValue([this.value[0],n])}},o.prototype.getFallbackValue=function(){return[0,0]},o.prototype.formatNumber=function(e){return a.formatNumber(e,null,this.numberFormat.decimalSeparator,this.numberFormat.thousandSeparator)},o.prototype.processStep=function(e,t){var n=this.valueGuard(e?this.value[0]+this.step:this.value[0]-this.step),i=this.valueGuard(e?this.value[1]+this.step:this.value[1]-this.step),a=[t?this.value[0]:Math.min(n,this.value[1]),t?Math.max(i,this.value[0]):this.value[1]];a[0]===this.value[0]&&a[1]===this.value[1]||this.updateValue(a)},o.ctorParameters=function(){return[{type:n.NgControl,decorators:[{type:t.Optional},{type:t.Self},{type:t.Inject,args:[n.NgControl]}]},{type:t.ChangeDetectorRef,decorators:[{type:t.Inject,args:[t.ChangeDetectorRef]}]},{type:a.TuiModeDirective,decorators:[{type:t.Optional},{type:t.Inject,args:[a.TuiModeDirective]}]},{type:Boolean,decorators:[{type:t.Inject,args:[i.TUI_IS_MOBILE]}]},{type:void 0,decorators:[{type:t.Inject,args:[a.TUI_NUMBER_FORMAT]}]},{type:String,decorators:[{type:t.Inject,args:[a.TUI_TEXTFIELD_APPEARANCE]}]}]},d([t.ViewChild("nativeLeft")],o.prototype,"nativeLeft",void 0),d([t.ViewChild("nativeRight")],o.prototype,"nativeRight",void 0),d([t.HostBinding("class._min-label")],o.prototype,"showMinLabel",null),d([t.HostBinding("class._max-label")],o.prototype,"showMaxLabel",null),o=r=d([t.Component({selector:"tui-input-range",template:'<div class="zone" (tuiActiveZoneChange)="onActiveZone($event)">\n <tui-wrapper\n [appearance]="appearance"\n [readOnly]="readOnly"\n [disabled]="disabled"\n [focused]="computedFocused"\n [hovered]="computedHovered"\n [invalid]="computedInvalid"\n >\n <span\n *ngIf="hasPlaceholder"\n automation-id="tui-input-range__placeholder"\n class="placeholder placeholder_raised"\n >\n <ng-content></ng-content>\n </span>\n <div class="content">\n <span *ngIf="!showMinLabel" class="label">\n <span class="value">{{ inputValueLeft }}</span>\n <span\n *ngIf="pluralizeMap"\n automation-id="tui-input-range__pluralize-left"\n class="pluralize"\n >\n {{ value[0] | i18nPlural: pluralizeMap }}\n </span>\n </span>\n <span\n *ngIf="showMinLabel"\n automation-id="tui-input-range__min-label"\n class="label"\n >\n {{ minLabel }}\n </span>\n <span\n *ngIf="showMaxLabel"\n automation-id="tui-input-range__max-label"\n class="max"\n >\n {{ maxLabel }}\n </span>\n </div>\n <tui-range\n class="slider"\n [min]="min"\n [max]="max"\n [steps]="computedSteps"\n [segments]="segments"\n [keySteps]="keySteps"\n [pluralize]="segmentsPluralize"\n [focusable]="false"\n [disabled]="readOnly || disabled"\n [ngModel]="value"\n (ngModelChange)="onRangeValue($event)"\n (mousedown.prevent)="onMouseDown()"\n ></tui-range>\n </tui-wrapper>\n\n <div class="native-wrapper" (tuiHoveredChange)="onHovered($event)">\n <input\n #nativeLeft\n automation-id="tui-input-range__native-left"\n class="native"\n [disabled]="disabled"\n [readOnly]="readOnly"\n [class.native_hidden]="showMinLabel"\n [tuiInputMode]="inputMode"\n [tuiFocusable]="focusable"\n [textMask]="quantum | tuiMapper: mask:min"\n [ngModel]="computedValueLeft"\n (ngModelChange)="onInputLeft()"\n (tuiFocusedChange)="onLeftFocused($event)"\n (keydown.arrowUp)="onKeyDownArrowUpLeft($event)"\n (keydown.arrowDown)="onKeyDownArrowDownLeft($event)"\n />\n <input\n #nativeRight\n automation-id="tui-input-range__native-right"\n class="native native_right"\n [disabled]="disabled"\n [readOnly]="readOnly"\n [class.native_hidden]="showMaxLabel"\n [tuiInputMode]="inputMode"\n [tuiFocusable]="focusable"\n [textMask]="quantum | tuiMapper: mask:min"\n [ngModel]="computedValueRight"\n (ngModelChange)="onInputRight()"\n (tuiFocusedChange)="onRightFocused($event)"\n (keydown.arrowUp)="onKeyDownArrowUpRight($event)"\n (keydown.arrowDown)="onKeyDownArrowDownRight($event)"\n />\n <span\n *ngIf="pluralizeMap && !showMaxLabel"\n automation-id="tui-input-range__pluralize-right"\n class="pluralize pluralize_right"\n (mousedown)="onMouseDown()"\n >\n {{ value[1] | i18nPlural: pluralizeMap }}\n </span>\n </div>\n</div>\n',changeDetection:t.ChangeDetectionStrategy.OnPush,providers:[{provide:i.TUI_FOCUSABLE_ITEM_ACCESSOR,useExisting:t.forwardRef((function(){return r}))}],styles:[":host{position:relative;z-index:0;display:block;font:var(--tui-font-text-m);border-radius:var(--tui-radius-m);color:var(--tui-text-01)}:host._segmented{border-bottom:26px solid transparent}:host[data-mode=onDark]{color:var(--tui-base-01)}.zone{border-radius:inherit}.native-wrapper{position:absolute;top:0;left:0;width:100%;height:100%;display:flex}.pluralize{display:flex;align-items:center;padding-right:.75rem;margin-left:-.5rem}.pluralize_right{margin-left:-.75rem}:host[data-tui-host-size='l'] .pluralize_right{padding-top:1.25rem}:host._disabled .pluralize_right{color:var(--tui-text-03)}:host[data-mode=onDark]._disabled .pluralize_right{color:var(--tui-text-03-night)}.native{padding:0 1rem;border:0;border-radius:inherit;background:0 0;font-size:inherit;line-height:inherit;font-weight:inherit;color:inherit;caret-color:currentColor;-webkit-appearance:none;-moz-appearance:none;appearance:none;word-break:keep-all;-webkit-text-fill-color:currentColor;flex:1;min-width:0;color:var(--tui-text-01);box-sizing:border-box;outline:0}.native:-webkit-autofill,.native:-webkit-autofill:focus,.native:-webkit-autofill:hover{border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01)!important;border-color:var(--tui-autofill);-webkit-box-shadow:0 0 0 1000px var(--tui-autofill) inset!important}.native_right{text-align:right}.native_hidden{opacity:0}:host._disabled .native{color:var(--tui-text-03);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host[data-tui-host-size='l'] .native{padding:1.25rem 1rem 0}:host[data-mode=onDark] .native{color:var(--tui-text-01-night)}:host[data-mode=onDark]._disabled .native{color:var(--tui-text-03-night)}.content{display:flex;height:var(--tui-height-m);padding:0 1rem;justify-content:space-between;align-items:center}:host[data-tui-host-size='l'] .content{height:var(--tui-height-l);padding:0 1rem}:host[data-tui-host-size='l']._disabled .content{color:var(--tui-text-03)}:host[data-tui-host-size='l'][data-mode=onDark]._disabled .content{color:var(--tui-text-03-night)}.placeholder{transition-property:transform,font-size,color,letter-spacing;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;font:var(--tui-font-text-s);color:var(--tui-text-01);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;font-size:.8125rem;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;color:var(--tui-text-02);pointer-events:none;position:absolute;top:0;width:100%;height:100%;left:1rem;line-height:var(--tui-height-l)}.placeholder_raised{transform:translateY(-.625rem)}:host[data-size='m'] .placeholder_raised{font-size:.69rem;transform:translateY(-.5rem);letter-spacing:.025rem}:host._invalid:not(._focused) .placeholder_raised,:host._invalid:not(._focused)._hovered .placeholder_raised{color:var(--tui-error-fill)}:host[data-mode=onDark]._invalid:not(._focused) .placeholder_raised,:host[data-mode=onDark]._invalid:not(._focused)._hovered .placeholder_raised{color:var(--tui-error-fill-night)}:host._focused .placeholder,:host[data-size='l']._focused._label-outside .placeholder,:host[data-size='m']._focused._label-outside .placeholder{color:var(--tui-text-03)}:host[data-size='l'] .placeholder{font-size:.9375rem}:host[data-size='l'] .placeholder_raised{font-size:.8156rem}:host[data-size='l']._focused:not(._label-outside) .placeholder,:host[data-size='m']._focused:not(._label-outside) .placeholder{color:var(--tui-text-01)}:host[data-mode=onDark] .placeholder{color:var(--tui-text-02-night)}:host[data-size='l'][data-mode=onDark]._focused:not(._label-outside) .placeholder,:host[data-size='m'][data-mode=onDark]._focused:not(._label-outside) .placeholder{color:var(--tui-text-01-night)}:host[data-mode=onDark]._focused .placeholder,:host[data-size='l'][data-mode=onDark]._focused._label-outside .placeholder,:host[data-size='m'][data-mode=onDark]._focused._label-outside .placeholder{color:var(--tui-text-02-night)}.value{visibility:hidden;overflow:hidden;padding-right:.75rem}:host._disabled .value{color:var(--tui-text-03)}.label{display:flex;width:50%}:host[data-tui-host-size='l'] .label{padding-top:1.25rem}.max{text-align:right;flex:1}:host[data-tui-host-size='l'] .max{padding-top:1.25rem;line-height:calc(var(--tui-height-l) - 1.25rem)}.slider{position:absolute;top:100%;left:0;right:0;z-index:1;border-top-left-radius:0;border-top-right-radius:0;margin:-.5625rem 0 0;color:transparent}:host._disabled .slider,:host._readonly .slider{pointer-events:none}"]}),p(0,t.Optional()),p(0,t.Self()),p(0,t.Inject(n.NgControl)),p(1,t.Inject(t.ChangeDetectorRef)),p(2,t.Optional()),p(2,t.Inject(a.TuiModeDirective)),p(3,t.Inject(i.TUI_IS_MOBILE)),p(4,t.Inject(a.TUI_NUMBER_FORMAT)),p(5,t.Inject(a.TUI_TEXTFIELD_APPEARANCE))],o)}(o.AbstractTuiInputSlider),c=function(){function e(){}return e=d([t.NgModule({imports:[r.CommonModule,n.FormsModule,n.ReactiveFormsModule,s.TextMaskModule,i.TuiFocusableModule,i.TuiFocusedModule,i.TuiHoveredModule,i.TuiPressedModule,i.TuiMapperPipeModule,i.TuiInputModeModule,i.TuiActiveZoneModule,l.TuiRangeModule,a.TuiWrapperModule],declarations:[h],exports:[h]})],e)}();e.TuiInputRangeComponent=h,e.TuiInputRangeModule=c,Object.defineProperty(e,"__esModule",{value:!0})}));
16
16
  //# sourceMappingURL=taiga-ui-kit-components-input-range.umd.min.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../node_modules/tslib/tslib.es6.js","ng://@taiga-ui/kit/components/input-range/input-range.component.ts","ng://@taiga-ui/kit/components/input-range/input-range.module.ts"],"names":["extendStatics","d","b","Object","setPrototypeOf","__proto__","Array","p","hasOwnProperty","__decorate","decorators","target","key","desc","c","arguments","length","r","getOwnPropertyDescriptor","Reflect","decorate","i","defineProperty","__param","paramIndex","decorator","TuiInputRangeComponent","control","changeDetectorRef","modeDirective","isMobile","numberFormat","appearance","_this","_super","call","this","__","constructor","prototype","create","__extends","nativeLeft","disabled","nativeElement","focusedLeft","focusedRight","isNativeFocused","nativeRight","minLabel","value","min","maxLabel","max","formatNumber","onActiveZone","active","updateFocused","onMouseDown","setNativeFocused","onKeyDownArrowUpLeft","event","readOnly","preventDefault","processStep","onKeyDownArrowDownLeft","onKeyDownArrowUpRight","onKeyDownArrowDownRight","onInputLeft","inputValueLeft","capped","capInputValue","postfix","slice","maskedMoneyValueIsEmpty","newValue","updateValue","onInputRight","inputValueRight","onRangeValue","guardedValue","map","item","valueGuard","element","onLeftFocused","focused","inputValue","maskedNumberStringToNumber","computedValueLeft","decimalSeparator","thousandSeparator","isNaN","onRightFocused","computedValueRight","Math","getFallbackValue","increment","right","start","step","end","NgControl","type","Optional","Self","Inject","args","ChangeDetectorRef","TuiModeDirective","TUI_IS_MOBILE","TUI_NUMBER_FORMAT","TUI_TEXTFIELD_APPEARANCE","ViewChild","HostBinding","TuiInputRangeComponent_1","Component","selector","template","changeDetection","ChangeDetectionStrategy","OnPush","providers","provide","TUI_FOCUSABLE_ITEM_ACCESSOR","useExisting","forwardRef","AbstractTuiInputSlider","TuiInputRangeModule","NgModule","imports","CommonModule","FormsModule","ReactiveFormsModule","TextMaskModule","TuiFocusableModule","TuiFocusedModule","TuiHoveredModule","TuiPressedModule","TuiMapperPipeModule","TuiInputModeModule","TuiActiveZoneModule","TuiRangeModule","TuiWrapperModule","declar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qDAEPL,EAAAA,OAAMC,KAAA,CAACK,EAAAA,+BAlBZvG,EAAA,CADCwG,EAAAA,UAAU,gDAIXxG,EAAA,CADCwG,EAAAA,UAAU,kDAuCXxG,EAAA,CADCyG,EAAAA,YAAY,sDAMbzG,EAAA,CADCyG,EAAAA,YAAY,sDAlDJxF,EAAsByF,EAAA1G,EAAA,CAZlC2G,EAAAA,UAAU,CACPC,SAAU,kBACVC,SAAA,imHAEAC,gBAAiBC,EAAAA,wBAAwBC,OACzCC,UAAW,CACP,CACIC,QAASC,EAAAA,4BACTC,YAAaC,EAAAA,YAAW,WAAM,OAAAX,omJAejC5F,EAAA,EAAAiF,EAAAA,YACAjF,EAAA,EAAAkF,EAAAA,QACAlF,EAAA,EAAAmF,EAAAA,OAAOJ,EAAAA,YAEP/E,EAAA,EAAAmF,EAAAA,OAAOE,EAAAA,oBACPrF,EAAA,EAAAiF,EAAAA,YACAjF,EAAA,EAAAmF,EAAAA,OAAOG,EAAAA,mBAEPtF,EAAA,EAAAmF,EAAAA,OAAOI,EAAAA,gBAEPvF,EAAA,EAAAmF,EAAAA,OAAOK,EAAAA,oBAEPxF,EAAA,EAAAmF,EAAAA,OAAOM,EAAAA,4BAvBHtF,IACDqG,EAAAA,qCCTZ,SAAAC,KAAkC,OAArBA,EAAmBvH,EAAA,CAnB/BwH,EAAAA,SAAS,CACNC,QAAS,CACLC,EAAAA,aACAC,EAAAA,YACAC,EAAAA,oBACAC,EAAAA,eACAC,EAAAA,mBACAC,EAAAA,iBACAC,EAAAA,iBACAC,EAAAA,iBACAC,EAAAA,oBACAC,EAAAA,mBACAC,EAAAA,oBACAC,EAAAA,eACAC,EAAAA,kBAEJC,aAAc,CAACtH,GACfuH,QAAS,CAACvH,MAEDsG","sourcesContent":["/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport function __createBinding(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n}\r\n\r\nexport function __exportStar(m, exports) {\r\n for (var p in m) if (p !== \"default\" && !exports.hasOwnProperty(p)) exports[p] = m[p];\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n};\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\r\n result.default = mod;\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, privateMap) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to get private field on non-instance\");\r\n }\r\n return privateMap.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, privateMap, value) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to set private field on non-instance\");\r\n }\r\n privateMap.set(receiver, value);\r\n return value;\r\n}\r\n","import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ElementRef,\n forwardRef,\n HostBinding,\n Inject,\n Optional,\n Self,\n ViewChild,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {\n isNativeFocused,\n setNativeFocused,\n TUI_FOCUSABLE_ITEM_ACCESSOR,\n TUI_IS_MOBILE,\n TuiFocusableElementAccessor,\n TuiNativeFocusableElement,\n} from '@taiga-ui/cdk';\nimport {\n formatNumber,\n maskedMoneyValueIsEmpty,\n maskedNumberStringToNumber,\n NumberFormatSettings,\n TUI_NUMBER_FORMAT,\n TUI_TEXTFIELD_APPEARANCE,\n TuiModeDirective,\n} from '@taiga-ui/core';\nimport {AbstractTuiInputSlider} from '@taiga-ui/kit/abstract';\n\n// @dynamic\n@Component({\n selector: 'tui-input-range',\n templateUrl: './input-range.template.html',\n styleUrls: ['./input-range.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: TUI_FOCUSABLE_ITEM_ACCESSOR,\n useExisting: forwardRef(() => TuiInputRangeComponent),\n },\n ],\n})\nexport class TuiInputRangeComponent\n extends AbstractTuiInputSlider<[number, number]>\n implements TuiFocusableElementAccessor\n{\n @ViewChild('nativeLeft')\n private readonly nativeLeft?: ElementRef<HTMLInputElement>;\n\n @ViewChild('nativeRight')\n private readonly nativeRight?: ElementRef<HTMLInputElement>;\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n @Optional()\n @Inject(TuiModeDirective)\n protected readonly modeDirective: TuiModeDirective | null,\n @Inject(TUI_IS_MOBILE)\n private readonly isMobile: boolean,\n @Inject(TUI_NUMBER_FORMAT)\n protected readonly numberFormat: NumberFormatSettings,\n @Inject(TUI_TEXTFIELD_APPEARANCE)\n readonly appearance: string,\n ) {\n super(control, changeDetectorRef);\n }\n\n get nativeFocusableElement(): TuiNativeFocusableElement | null {\n return !this.nativeLeft || this.disabled ? null : this.nativeLeft.nativeElement;\n }\n\n get focused(): boolean {\n return this.focusedLeft || this.focusedRight;\n }\n\n get focusedLeft(): boolean {\n return !!this.nativeLeft && isNativeFocused(this.nativeLeft.nativeElement);\n }\n\n get focusedRight(): boolean {\n return !!this.nativeRight && isNativeFocused(this.nativeRight.nativeElement);\n }\n\n @HostBinding('class._min-label')\n get showMinLabel(): boolean {\n return !this.focusedLeft && !!this.minLabel && this.value[0] === this.min;\n }\n\n @HostBinding('class._max-label')\n get showMaxLabel(): boolean {\n return !this.focusedRight && !!this.maxLabel && this.value[1] === this.max;\n }\n\n get inputValueLeft(): string {\n return this.nativeLeft ? this.nativeLeft.nativeElement.value : '';\n }\n\n get inputValueRight(): string {\n return this.nativeRight ? this.nativeRight.nativeElement.value : '';\n }\n\n get computedValueLeft(): string {\n return this.formatNumber(this.value[0]);\n }\n\n get computedValueRight(): string {\n return this.formatNumber(this.value[1]);\n }\n\n onActiveZone(active: boolean) {\n this.updateFocused(active);\n }\n\n onMouseDown() {\n if (this.nativeRight && !this.isMobile) {\n setNativeFocused(this.nativeRight.nativeElement);\n }\n }\n\n onKeyDownArrowUpLeft(event: KeyboardEvent) {\n if (this.readOnly) {\n return;\n }\n\n event.preventDefault();\n this.processStep(true, false);\n }\n\n onKeyDownArrowDownLeft(event: KeyboardEvent) {\n if (this.readOnly) {\n return;\n }\n\n event.preventDefault();\n this.processStep(false, false);\n }\n\n onKeyDownArrowUpRight(event: KeyboardEvent) {\n if (this.readOnly) {\n return;\n }\n\n event.preventDefault();\n this.processStep(true, true);\n }\n\n onKeyDownArrowDownRight(event: KeyboardEvent) {\n if (this.readOnly) {\n return;\n }\n\n event.preventDefault();\n this.processStep(false, true);\n }\n\n onInputLeft() {\n const value = this.inputValueLeft;\n const capped = this.capInputValue(value, this.value[1]);\n const postfix = value.slice(-1)[0] === ',' ? ',' : '';\n\n if (maskedMoneyValueIsEmpty(value) || capped === null) {\n return;\n }\n\n const newValue = this.formatNumber(capped) + postfix;\n\n if (this.nativeLeft && this.inputValueLeft !== newValue) {\n this.nativeLeft.nativeElement.value = newValue;\n }\n\n this.updateValue([capped, this.value[1]]);\n }\n\n onInputRight() {\n const value = this.inputValueRight;\n const capped = this.capInputValue(value);\n const postfix = value.slice(-1)[0] === ',' ? ',' : '';\n\n if (maskedMoneyValueIsEmpty(value) || capped === null) {\n return;\n }\n\n const newValue = this.formatNumber(capped) + postfix;\n\n if (this.nativeRight && this.inputValueRight !== newValue) {\n this.nativeRight.nativeElement.value = newValue;\n }\n\n if (capped >= this.value[0]) {\n this.updateValue([this.value[0], capped]);\n }\n }\n\n onRangeValue(value: [number, number]) {\n const guardedValue = value.map(item => this.valueGuard(item)) as [number, number];\n\n if (\n !this.nativeLeft ||\n !this.nativeRight ||\n (guardedValue[0] === this.value[0] && guardedValue[1] === this.value[1])\n ) {\n return;\n }\n\n if (!this.isMobile) {\n const element =\n guardedValue[0] !== this.value[0]\n ? this.nativeLeft.nativeElement\n : this.nativeRight.nativeElement;\n\n setNativeFocused(element);\n }\n\n this.updateValue(guardedValue);\n this.nativeLeft.nativeElement.value = this.formatNumber(guardedValue[0]);\n }\n\n onLeftFocused(focused: boolean) {\n if (focused || !this.nativeLeft) {\n return;\n }\n\n const inputValue = maskedNumberStringToNumber(\n this.computedValueLeft,\n this.numberFormat.decimalSeparator,\n this.numberFormat.thousandSeparator,\n );\n const value = isNaN(inputValue) ? this.min : this.valueGuard(inputValue);\n\n this.nativeLeft.nativeElement.value = this.formatNumber(value);\n\n if (value !== this.value[0]) {\n this.updateValue([value, this.value[1]]);\n }\n }\n\n onRightFocused(focused: boolean) {\n if (focused || !this.nativeRight) {\n return;\n }\n\n const inputValue = maskedNumberStringToNumber(\n this.computedValueRight,\n this.numberFormat.decimalSeparator,\n this.numberFormat.thousandSeparator,\n );\n\n const value = isNaN(inputValue)\n ? this.value[0]\n : this.valueGuard(Math.max(inputValue, this.value[0]));\n\n this.nativeRight.nativeElement.value = this.formatNumber(value);\n\n if (value !== this.value[1]) {\n this.updateValue([this.value[0], value]);\n }\n }\n\n protected getFallbackValue(): [number, number] {\n return [0, 0];\n }\n\n private formatNumber(value: number): string {\n return formatNumber(\n value,\n null,\n this.numberFormat.decimalSeparator,\n this.numberFormat.thousandSeparator,\n );\n }\n\n private processStep(increment: boolean, right: boolean) {\n const start = this.valueGuard(\n increment ? this.value[0] + this.step : this.value[0] - this.step,\n );\n const end = this.valueGuard(\n increment ? this.value[1] + this.step : this.value[1] - this.step,\n );\n const value: [number, number] = [\n right ? this.value[0] : Math.min(start, this.value[1]),\n right ? Math.max(end, this.value[0]) : this.value[1],\n ];\n\n if (value[0] !== this.value[0] || value[1] !== this.value[1]) {\n this.updateValue(value);\n }\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {FormsModule, ReactiveFormsModule} from '@angular/forms';\nimport {\n TuiActiveZoneModule,\n TuiFocusableModule,\n TuiFocusedModule,\n TuiHoveredModule,\n TuiInputModeModule,\n TuiMapperPipeModule,\n TuiPressedModule,\n} from '@taiga-ui/cdk';\nimport {TuiWrapperModule} from '@taiga-ui/core';\nimport {TuiRangeModule} from '@taiga-ui/kit/components/range';\nimport {TextMaskModule} from 'angular2-text-mask';\n\nimport {TuiInputRangeComponent} from './input-range.component';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n ReactiveFormsModule,\n TextMaskModule,\n TuiFocusableModule,\n TuiFocusedModule,\n TuiHoveredModule,\n TuiPressedModule,\n TuiMapperPipeModule,\n TuiInputModeModule,\n TuiActiveZoneModule,\n TuiRangeModule,\n TuiWrapperModule,\n ],\n declarations: [TuiInputRangeComponent],\n exports: [TuiInputRangeComponent],\n})\nexport class TuiInputRangeModule {}\n"]}
1
+ {"version":3,"sources":["../../../node_modules/tslib/tslib.es6.js","ng://@taiga-ui/kit/components/input-range/input-range.component.ts","ng://@taiga-ui/kit/components/input-range/input-range.module.ts"],"names":["extendStatics","d","b","Object","setPrototypeOf","__proto__","Array","p","hasOwnProperty","__decorate","decorators","target","key","desc","c","arguments","length","r","getOwnPropertyDescriptor","Reflect","decorate","i","defineProperty","__param","paramIndex","decorator","TuiInputRangeComponent","control","changeDetectorRef","modeDirective","isMobile","numberFormat","appearance","_this","_super","call","this","__","constructor","prototype","create","__extends","nativeLeft","disabled","nativeElement","focusedLeft","focusedRight","isNativeFocused","nativeRight","minLabel","value","min","maxLabel","max","formatNumber","onActiveZone","active","updateFocused","onMouseDown","setNativeFocused","onKeyDownArrowUpLeft","event","readOnly","preventDefault","processStep","onKeyDownArrowDownLeft","onKeyDownArrowUpRight","onKeyDownArrowDownRight","onInputLeft","inputValueLeft","capped","capInputValue","postfix","slice","maskedMoneyValueIsEmpty","newValue","updateValue","onInputRight","inputValueRight","onRangeValue","guardedValue","map","item","valueGuard","element","onLeftFocused","focused","inputValue","maskedNumberStringToNumber","computedValueLeft","decimalSeparator","thousandSeparator","isNaN","onRightFocused","computedValueRight","Math","getFallbackValue","increment","right","start","step","end","NgControl","type","Optional","Self","Inject","args","ChangeDetectorRef","TuiModeDirective","TUI_IS_MOBILE","TUI_NUMBER_FORMAT","TUI_TEXTFIELD_APPEARANCE","ViewChild","HostBinding","TuiInputRangeComponent_1","Component","selector","template","changeDetection","ChangeDetectionStrategy","OnPush","providers","provide","TUI_FOCUSABLE_ITEM_ACCESSOR","useExisting","forwardRef","AbstractTuiInputSlider","TuiInputRangeModule","NgModule","imports","CommonModule","FormsModule","ReactiveFormsModule","TextMaskModule","TuiFocusableModule","TuiFocusedModule","TuiHoveredModule","TuiPressedModule","TuiMapperPipeModule","TuiInputModeModule","TuiActiveZoneModule","TuiRangeModule","TuiWrapperModule","declarations","exports"],"mappings":";;;;;;;;;;;;;;oFAgBA,IAAIA,EAAgB,SAASC,EAAGC,GAI5B,OAHAF,EAAgBG,OAAOC,gBAClB,CAAEC,UAAW,cAAgBC,OAAS,SAAUL,EAAGC,GAAKD,EAAEI,UAAYH,IACvE,SAAUD,EAAGC,GAAK,IAAK,IAAIK,KAAKL,EAAOA,EAAEM,eAAeD,KAAIN,EAAEM,GAAKL,EAAEK,MACpDN,EAAGC,IAgCrB,SAASO,EAAWC,EAAYC,EAAQC,EAAKC,GAChD,IAA2HZ,EAAvHa,EAAIC,UAAUC,OAAQC,EAAIH,EAAI,EAAIH,EAAkB,OAATE,EAAgBA,EAAOV,OAAOe,yBAAyBP,EAAQC,GAAOC,EACrH,GAAuB,iBAAZM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AA,OAAOJ,EAAAA,YAEP/E,EAAA,EAAAmF,EAAAA,OAAOE,EAAAA,oBACPrF,EAAA,EAAAiF,EAAAA,YACAjF,EAAA,EAAAmF,EAAAA,OAAOG,EAAAA,mBAEPtF,EAAA,EAAAmF,EAAAA,OAAOI,EAAAA,gBAEPvF,EAAA,EAAAmF,EAAAA,OAAOK,EAAAA,oBAEPxF,EAAA,EAAAmF,EAAAA,OAAOM,EAAAA,4BAvBHtF,IACDqG,EAAAA,qCCTZ,SAAAC,KAAkC,OAArBA,EAAmBvH,EAAA,CAnB/BwH,EAAAA,SAAS,CACNC,QAAS,CACLC,EAAAA,aACAC,EAAAA,YACAC,EAAAA,oBACAC,EAAAA,eACAC,EAAAA,mBACAC,EAAAA,iBACAC,EAAAA,iBACAC,EAAAA,iBACAC,EAAAA,oBACAC,EAAAA,mBACAC,EAAAA,oBACAC,EAAAA,eACAC,EAAAA,kBAEJC,aAAc,CAACtH,GACfuH,QAAS,CAACvH,MAEDsG","sourcesContent":["/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport function __createBinding(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n}\r\n\r\nexport function __exportStar(m, exports) {\r\n for (var p in m) if (p !== \"default\" && !exports.hasOwnProperty(p)) exports[p] = m[p];\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n};\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\r\n result.default = mod;\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, privateMap) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to get private field on non-instance\");\r\n }\r\n return privateMap.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, privateMap, value) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to set private field on non-instance\");\r\n }\r\n privateMap.set(receiver, value);\r\n return value;\r\n}\r\n","import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ElementRef,\n forwardRef,\n HostBinding,\n Inject,\n Optional,\n Self,\n ViewChild,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {\n isNativeFocused,\n setNativeFocused,\n TUI_FOCUSABLE_ITEM_ACCESSOR,\n TUI_IS_MOBILE,\n TuiFocusableElementAccessor,\n TuiNativeFocusableElement,\n} from '@taiga-ui/cdk';\nimport {\n formatNumber,\n maskedMoneyValueIsEmpty,\n maskedNumberStringToNumber,\n NumberFormatSettings,\n TUI_NUMBER_FORMAT,\n TUI_TEXTFIELD_APPEARANCE,\n TuiModeDirective,\n} from '@taiga-ui/core';\nimport {AbstractTuiInputSlider} from '@taiga-ui/kit/abstract';\n\n// @dynamic\n@Component({\n selector: 'tui-input-range',\n templateUrl: './input-range.template.html',\n styleUrls: ['./input-range.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: TUI_FOCUSABLE_ITEM_ACCESSOR,\n useExisting: forwardRef(() => TuiInputRangeComponent),\n },\n ],\n})\nexport class TuiInputRangeComponent\n extends AbstractTuiInputSlider<[number, number]>\n implements TuiFocusableElementAccessor\n{\n @ViewChild('nativeLeft')\n private readonly nativeLeft?: ElementRef<HTMLInputElement>;\n\n @ViewChild('nativeRight')\n private readonly nativeRight?: ElementRef<HTMLInputElement>;\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n @Optional()\n @Inject(TuiModeDirective)\n protected readonly modeDirective: TuiModeDirective | null,\n @Inject(TUI_IS_MOBILE)\n private readonly isMobile: boolean,\n @Inject(TUI_NUMBER_FORMAT)\n protected readonly numberFormat: NumberFormatSettings,\n @Inject(TUI_TEXTFIELD_APPEARANCE)\n readonly appearance: string,\n ) {\n super(control, changeDetectorRef);\n }\n\n get nativeFocusableElement(): TuiNativeFocusableElement | null {\n return !this.nativeLeft || this.disabled ? null : this.nativeLeft.nativeElement;\n }\n\n get focused(): boolean {\n return this.focusedLeft || this.focusedRight;\n }\n\n get focusedLeft(): boolean {\n return !!this.nativeLeft && isNativeFocused(this.nativeLeft.nativeElement);\n }\n\n get focusedRight(): boolean {\n return !!this.nativeRight && isNativeFocused(this.nativeRight.nativeElement);\n }\n\n @HostBinding('class._min-label')\n get showMinLabel(): boolean {\n return !this.focusedLeft && !!this.minLabel && this.value[0] === this.min;\n }\n\n @HostBinding('class._max-label')\n get showMaxLabel(): boolean {\n return !this.focusedRight && !!this.maxLabel && this.value[1] === this.max;\n }\n\n get inputValueLeft(): string {\n return this.nativeLeft ? this.nativeLeft.nativeElement.value : '';\n }\n\n get inputValueRight(): string {\n return this.nativeRight ? this.nativeRight.nativeElement.value : '';\n }\n\n get computedValueLeft(): string {\n return this.formatNumber(this.value[0]);\n }\n\n get computedValueRight(): string {\n return this.formatNumber(this.value[1]);\n }\n\n onActiveZone(active: boolean) {\n this.updateFocused(active);\n }\n\n onMouseDown() {\n if (this.nativeRight && !this.isMobile) {\n setNativeFocused(this.nativeRight.nativeElement);\n }\n }\n\n onKeyDownArrowUpLeft(event: KeyboardEvent) {\n if (this.readOnly) {\n return;\n }\n\n event.preventDefault();\n this.processStep(true, false);\n }\n\n onKeyDownArrowDownLeft(event: KeyboardEvent) {\n if (this.readOnly) {\n return;\n }\n\n event.preventDefault();\n this.processStep(false, false);\n }\n\n onKeyDownArrowUpRight(event: KeyboardEvent) {\n if (this.readOnly) {\n return;\n }\n\n event.preventDefault();\n this.processStep(true, true);\n }\n\n onKeyDownArrowDownRight(event: KeyboardEvent) {\n if (this.readOnly) {\n return;\n }\n\n event.preventDefault();\n this.processStep(false, true);\n }\n\n onInputLeft() {\n const value = this.inputValueLeft;\n const capped = this.capInputValue(value, this.value[1]);\n const postfix = value.slice(-1)[0] === ',' ? ',' : '';\n\n if (maskedMoneyValueIsEmpty(value) || capped === null) {\n return;\n }\n\n const newValue = this.formatNumber(capped) + postfix;\n\n if (this.nativeLeft && this.inputValueLeft !== newValue) {\n this.nativeLeft.nativeElement.value = newValue;\n }\n\n this.updateValue([capped, this.value[1]]);\n }\n\n onInputRight() {\n const value = this.inputValueRight;\n const capped = this.capInputValue(value);\n const postfix = value.slice(-1)[0] === ',' ? ',' : '';\n\n if (maskedMoneyValueIsEmpty(value) || capped === null) {\n return;\n }\n\n const newValue = this.formatNumber(capped) + postfix;\n\n if (this.nativeRight && this.inputValueRight !== newValue) {\n this.nativeRight.nativeElement.value = newValue;\n }\n\n if (capped >= this.value[0]) {\n this.updateValue([this.value[0], capped]);\n }\n }\n\n onRangeValue(value: [number, number]) {\n const guardedValue = value.map(item => this.valueGuard(item)) as [number, number];\n\n if (\n !this.nativeLeft ||\n !this.nativeRight ||\n (guardedValue[0] === this.value[0] && guardedValue[1] === this.value[1])\n ) {\n return;\n }\n\n if (!this.isMobile) {\n const element =\n guardedValue[0] !== this.value[0]\n ? this.nativeLeft.nativeElement\n : this.nativeRight.nativeElement;\n\n setNativeFocused(element);\n }\n\n this.updateValue(guardedValue);\n this.nativeLeft.nativeElement.value = this.formatNumber(guardedValue[0]);\n }\n\n onLeftFocused(focused: boolean) {\n if (focused || !this.nativeLeft) {\n return;\n }\n\n const inputValue = maskedNumberStringToNumber(\n this.computedValueLeft,\n this.numberFormat.decimalSeparator,\n this.numberFormat.thousandSeparator,\n );\n const value = isNaN(inputValue) ? this.min : this.valueGuard(inputValue);\n\n this.nativeLeft.nativeElement.value = this.formatNumber(value);\n\n if (value !== this.value[0]) {\n this.updateValue([value, this.value[1]]);\n }\n }\n\n onRightFocused(focused: boolean) {\n if (focused || !this.nativeRight) {\n return;\n }\n\n const inputValue = maskedNumberStringToNumber(\n this.computedValueRight,\n this.numberFormat.decimalSeparator,\n this.numberFormat.thousandSeparator,\n );\n\n const value = isNaN(inputValue)\n ? this.value[0]\n : this.valueGuard(Math.max(inputValue, this.value[0]));\n\n this.nativeRight.nativeElement.value = this.formatNumber(value);\n\n if (value !== this.value[1]) {\n this.updateValue([this.value[0], value]);\n }\n }\n\n protected getFallbackValue(): [number, number] {\n return [0, 0];\n }\n\n private formatNumber(value: number): string {\n return formatNumber(\n value,\n null,\n this.numberFormat.decimalSeparator,\n this.numberFormat.thousandSeparator,\n );\n }\n\n private processStep(increment: boolean, right: boolean) {\n const start = this.valueGuard(\n increment ? this.value[0] + this.step : this.value[0] - this.step,\n );\n const end = this.valueGuard(\n increment ? this.value[1] + this.step : this.value[1] - this.step,\n );\n const value: [number, number] = [\n right ? this.value[0] : Math.min(start, this.value[1]),\n right ? Math.max(end, this.value[0]) : this.value[1],\n ];\n\n if (value[0] !== this.value[0] || value[1] !== this.value[1]) {\n this.updateValue(value);\n }\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {FormsModule, ReactiveFormsModule} from '@angular/forms';\nimport {\n TuiActiveZoneModule,\n TuiFocusableModule,\n TuiFocusedModule,\n TuiHoveredModule,\n TuiInputModeModule,\n TuiMapperPipeModule,\n TuiPressedModule,\n} from '@taiga-ui/cdk';\nimport {TuiWrapperModule} from '@taiga-ui/core';\nimport {TuiRangeModule} from '@taiga-ui/kit/components/range';\nimport {TextMaskModule} from 'angular2-text-mask';\n\nimport {TuiInputRangeComponent} from './input-range.component';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n ReactiveFormsModule,\n TextMaskModule,\n TuiFocusableModule,\n TuiFocusedModule,\n TuiHoveredModule,\n TuiPressedModule,\n TuiMapperPipeModule,\n TuiInputModeModule,\n TuiActiveZoneModule,\n TuiRangeModule,\n TuiWrapperModule,\n ],\n declarations: [TuiInputRangeComponent],\n exports: [TuiInputRangeComponent],\n})\nexport class TuiInputRangeModule {}\n"]}
@@ -418,7 +418,7 @@
418
418
  },
419
419
  core$1.HINT_CONTROLLER_PROVIDER,
420
420
  ],
421
- styles: [":host{position:relative;z-index:0;display:block;font:var(--tui-font-text-m);border-radius:var(--tui-radius-m);color:var(--tui-text-01)}:host._segmented{border-bottom:26px solid transparent}.native{position:absolute;top:0;left:0;height:100%;padding:0 1rem;border:0;border-radius:inherit;background:0 0;font-size:inherit;line-height:inherit;font-weight:inherit;color:inherit;caret-color:currentColor;-webkit-appearance:none;-moz-appearance:none;appearance:none;word-break:keep-all;-webkit-text-fill-color:currentColor;width:100%;color:var(--tui-text-01);box-sizing:border-box;outline:0}.native:-webkit-autofill,.native:-webkit-autofill:focus,.native:-webkit-autofill:hover{border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01)!important;border-color:var(--tui-autofill);-webkit-box-shadow:0 0 0 1000px var(--tui-autofill) inset!important}:host._disabled .native{color:var(--tui-text-03);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host._max-label .native,:host._min-label .native{opacity:0}:host[data-tui-host-size='l'] .native{padding:1.25rem 1rem 0}:host[data-mode=onDark] .native{color:var(--tui-text-01-night)}:host[data-mode=onDark]._disabled .native{color:var(--tui-text-03-night)}.content{display:flex;align-items:center;height:var(--tui-height-m);padding:0 1rem;justify-content:space-between}:host[data-tui-host-size='l'] .content{height:var(--tui-height-l);padding:0 1rem}.placeholder{transition-property:transform,font-size,color,letter-spacing;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;font:var(--tui-font-text-s);color:var(--tui-text-01);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;font-size:.8125rem;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;color:var(--tui-text-02);position:absolute;top:0;left:0;width:100%;height:100%;padding:0 var(--tui-padding-l);line-height:var(--tui-height-l);box-sizing:border-box;pointer-events:none}.placeholder_raised{transform:translateY(-.625rem)}:host[data-tui-host-size='m'] .placeholder_raised{font-size:.69rem;transform:translateY(-.5rem);letter-spacing:.025rem}:host._invalid:not(._focused) .placeholder_raised,:host._invalid:not(._focused)._hovered .placeholder_raised{color:var(--tui-error-fill)}:host[data-mode=onDark]._invalid:not(._focused) .placeholder_raised,:host[data-mode=onDark]._invalid:not(._focused)._hovered .placeholder_raised{color:var(--tui-error-fill-night)}:host._focused .placeholder,:host[data-tui-host-size='l']._focused._label-outside .placeholder,:host[data-tui-host-size='m']._focused._label-outside .placeholder{color:var(--tui-text-03)}:host[data-tui-host-size='l'] .placeholder{font-size:.9375rem}:host[data-tui-host-size='l'] .placeholder_raised{font-size:.8156rem}:host[data-tui-host-size='l']._focused:not(._label-outside) .placeholder,:host[data-tui-host-size='m']._focused:not(._label-outside) .placeholder{color:var(--tui-text-01)}:host[data-mode=onDark] .placeholder{color:var(--tui-text-02-night)}:host[data-tui-host-size='l'][data-mode=onDark]._focused:not(._label-outside) .placeholder,:host[data-tui-host-size='m'][data-mode=onDark]._focused:not(._label-outside) .placeholder{color:var(--tui-text-01-night)}:host[data-mode=onDark]._focused .placeholder,:host[data-tui-host-size='l'][data-mode=onDark]._focused._label-outside .placeholder,:host[data-tui-host-size='m'][data-mode=onDark]._focused._label-outside .placeholder{color:var(--tui-text-02-night)}:host._has-tooltip .placeholder{max-width:calc(100% - 1.75rem)}.value{visibility:hidden}.label{overflow:hidden;text-overflow:ellipsis}:host[data-tui-host-size='l'] .label{padding-top:1.25rem}.secondary{color:var(--tui-text-01)}:host._disabled .secondary{color:var(--tui-text-03)}:host[data-mode=onDark]._disabled .secondary{color:var(--tui-text-03-night)}.tooltip{margin-left:.75rem}.slider{position:absolute;top:100%;left:0;right:0;border-top-left-radius:0;border-top-right-radius:0;margin:-.5625rem 0 0;color:transparent}:host._disabled .slider,:host._readonly .slider{pointer-events:none}"]
421
+ styles: [":host{position:relative;z-index:0;display:block;font:var(--tui-font-text-m);border-radius:var(--tui-radius-m);color:var(--tui-text-01)}:host._segmented{border-bottom:26px solid transparent}.native{position:absolute;top:0;left:0;height:100%;padding:0 1rem;border:0;border-radius:inherit;background:0 0;font-size:inherit;line-height:inherit;font-weight:inherit;color:inherit;caret-color:currentColor;-webkit-appearance:none;-moz-appearance:none;appearance:none;word-break:keep-all;-webkit-text-fill-color:currentColor;width:100%;color:var(--tui-text-01);box-sizing:border-box;outline:0}.native:-webkit-autofill,.native:-webkit-autofill:focus,.native:-webkit-autofill:hover{border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01)!important;border-color:var(--tui-autofill);-webkit-box-shadow:0 0 0 1000px var(--tui-autofill) inset!important}:host._disabled .native{color:var(--tui-text-03);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host._max-label .native,:host._min-label .native{opacity:0}:host[data-tui-host-size='l'] .native{padding:1.25rem 1rem 0}:host[data-mode=onDark] .native{color:var(--tui-text-01-night)}:host[data-mode=onDark]._disabled .native{color:var(--tui-text-03-night)}.content{display:flex;align-items:center;height:var(--tui-height-m);padding:0 1rem;justify-content:space-between}:host[data-tui-host-size='l'] .content{height:var(--tui-height-l);padding:0 1rem}.placeholder{transition-property:transform,font-size,color,letter-spacing;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;font:var(--tui-font-text-s);color:var(--tui-text-01);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;font-size:.8125rem;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;color:var(--tui-text-02);position:absolute;top:0;left:0;width:100%;height:100%;padding:0 var(--tui-padding-l);line-height:var(--tui-height-l);box-sizing:border-box;pointer-events:none}.placeholder_raised{transform:translateY(-.625rem)}:host[data-size='m'] .placeholder_raised{font-size:.69rem;transform:translateY(-.5rem);letter-spacing:.025rem}:host._invalid:not(._focused) .placeholder_raised,:host._invalid:not(._focused)._hovered .placeholder_raised{color:var(--tui-error-fill)}:host[data-mode=onDark]._invalid:not(._focused) .placeholder_raised,:host[data-mode=onDark]._invalid:not(._focused)._hovered .placeholder_raised{color:var(--tui-error-fill-night)}:host._focused .placeholder,:host[data-size='l']._focused._label-outside .placeholder,:host[data-size='m']._focused._label-outside .placeholder{color:var(--tui-text-03)}:host[data-size='l'] .placeholder{font-size:.9375rem}:host[data-size='l'] .placeholder_raised{font-size:.8156rem}:host[data-size='l']._focused:not(._label-outside) .placeholder,:host[data-size='m']._focused:not(._label-outside) .placeholder{color:var(--tui-text-01)}:host[data-mode=onDark] .placeholder{color:var(--tui-text-02-night)}:host[data-size='l'][data-mode=onDark]._focused:not(._label-outside) .placeholder,:host[data-size='m'][data-mode=onDark]._focused:not(._label-outside) .placeholder{color:var(--tui-text-01-night)}:host[data-mode=onDark]._focused .placeholder,:host[data-size='l'][data-mode=onDark]._focused._label-outside .placeholder,:host[data-size='m'][data-mode=onDark]._focused._label-outside .placeholder{color:var(--tui-text-02-night)}:host._has-tooltip .placeholder{max-width:calc(100% - 1.75rem)}.value{visibility:hidden}.label{overflow:hidden;text-overflow:ellipsis}:host[data-tui-host-size='l'] .label{padding-top:1.25rem}.secondary{color:var(--tui-text-01)}:host._disabled .secondary{color:var(--tui-text-03)}:host[data-mode=onDark]._disabled .secondary{color:var(--tui-text-03-night)}.tooltip{margin-left:.75rem}.slider{position:absolute;top:100%;left:0;right:0;border-top-left-radius:0;border-top-right-radius:0;margin:-.5625rem 0 0;color:transparent}:host._disabled .slider,:host._readonly .slider{pointer-events:none}"]
422
422
  }),
423
423
  __param(0, core.Optional()),
424
424
  __param(0, core.Self()),
@@ -12,5 +12,5 @@
12
12
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
13
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
14
  PERFORMANCE OF THIS SOFTWARE.
15
- ***************************************************************************** */var u=function(e,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)};function d(e,t,o,n){var i,a=arguments.length,r=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(r=(a<3?i(r):a>3?i(t,o,r):i(t,o))||r);return a>3&&r&&Object.defineProperty(t,o,r),r}function c(e,t){return function(o,n){t(o,n,e)}}var p=function(e){function a(t,o,n,i,a,r){var l=e.call(this,t,o)||this;return l.modeDirective=n,l.hintController=i,l.numberFormat=a,l.appearance=r,l.secondary="",l}var r;return function(e,t){function o(){this.constructor=e}u(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}(a,e),r=a,Object.defineProperty(a.prototype,"nativeFocusableElement",{get:function(){return!this.focusableElement||this.computedDisabled?null:this.focusableElement.nativeElement},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"focused",{get:function(){return n.isNativeFocused(this.nativeFocusableElement)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"hasTooltip",{get:function(){return!!this.hintController.content&&!this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"showMinLabel",{get:function(){return!this.focused&&this.value===this.min&&!!this.minLabel},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"showMaxLabel",{get:function(){return!this.focused&&this.value===this.max&&!!this.maxLabel},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"computedValue",{get:function(){return this.focused&&this.isInputValueNotFinished?this.inputValue:this.formattedValue},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"showValue",{get:function(){return!this.showMinLabel&&!this.showMaxLabel},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"inputValue",{get:function(){return this.focusableElement?this.focusableElement.nativeElement.value:""},set:function(e){this.focusableElement&&(this.focusableElement.nativeElement.value=e)},enumerable:!0,configurable:!0}),a.prototype.onMouseDown=function(){this.focusableElement&&n.setNativeFocused(this.focusableElement.nativeElement)},a.prototype.onKeyDownArrowUp=function(e){this.readOnly||(e.preventDefault(),this.processStep(!0),this.inputValue=this.formattedValue)},a.prototype.onKeyDownArrowDown=function(e){this.readOnly||(e.preventDefault(),this.processStep(!1),this.inputValue=this.formattedValue)},a.prototype.onFocused=function(e){if(this.updateFocused(e),!e){var t=i.maskedNumberStringToNumber(this.computedValue,this.numberFormat.decimalSeparator,this.numberFormat.thousandSeparator),o=isNaN(t)?this.min:this.valueGuard(t);this.updateValue(o),this.inputValue=this.formattedValue}},a.prototype.onValue=function(e){var t=this.capInputValue(e),o=","===e.slice(-1)[0]?",":"";if(!i.maskedMoneyValueIsEmpty(e)&&null!==t){var n=this.formatNumber(t)+o;e!==n&&(this.inputValue=n),this.updateValue(t)}},a.prototype.onSliderValue=function(e){this.updateValue(this.valueGuard(e)),this.inputValue=this.formattedValue},a.prototype.getFallbackValue=function(){return 0},Object.defineProperty(a.prototype,"formattedValue",{get:function(){return this.formatNumber(this.value)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"isInputValueNotFinished",{get:function(){if(""===this.inputValue)return!0;var e=i.maskedNumberStringToNumber(this.inputValue,this.numberFormat.decimalSeparator,this.numberFormat.thousandSeparator);return e<0?e>this.max:e<this.min},enumerable:!0,configurable:!0}),a.prototype.processStep=function(e){var t=this.valueGuard(e?this.value+this.step:this.value-this.step);t!==this.value&&this.updateValue(t)},a.prototype.formatNumber=function(e){return i.formatNumber(e,null,this.numberFormat.decimalSeparator,this.numberFormat.thousandSeparator)},a.ctorParameters=function(){return[{type:o.NgControl,decorators:[{type:t.Optional},{type:t.Self},{type:t.Inject,args:[o.NgControl]}]},{type:t.ChangeDetectorRef,decorators:[{type:t.Inject,args:[t.ChangeDetectorRef]}]},{type:i.TuiModeDirective,decorators:[{type:t.Optional},{type:t.Inject,args:[i.TuiModeDirective]}]},{type:i.TuiHintControllerDirective,decorators:[{type:t.Inject,args:[i.TUI_HINT_WATCHED_CONTROLLER]}]},{type:void 0,decorators:[{type:t.Inject,args:[i.TUI_NUMBER_FORMAT]}]},{type:String,decorators:[{type:t.Inject,args:[i.TUI_TEXTFIELD_APPEARANCE]}]}]},d([t.ViewChild("focusableElement")],a.prototype,"focusableElement",void 0),d([t.Input(),n.tuiDefaultProp()],a.prototype,"secondary",void 0),d([t.HostBinding("class._has-tooltip")],a.prototype,"hasTooltip",null),d([t.HostBinding("class._min-label")],a.prototype,"showMinLabel",null),d([t.HostBinding("class._max-label")],a.prototype,"showMaxLabel",null),a=r=d([t.Component({selector:"tui-input-slider",template:'<tui-wrapper\n [appearance]="appearance"\n [readOnly]="readOnly"\n [disabled]="disabled"\n [focused]="computedFocused"\n [hovered]="computedHovered"\n [invalid]="computedInvalid"\n>\n <span\n *ngIf="hasPlaceholder"\n automation-id="tui-input-slider__placeholder"\n class="placeholder placeholder_raised"\n >\n <ng-content></ng-content>\n </span>\n <input\n #focusableElement\n automation-id="tui-input-slider__native"\n class="native"\n [disabled]="disabled"\n [readOnly]="readOnly"\n [tuiInputMode]="inputMode"\n [tuiFocusable]="focusable"\n [textMask]="quantum | tuiMapper: mask:min"\n [ngModel]="computedValue"\n (ngModelChange)="onValue($event)"\n (tuiFocusedChange)="onFocused($event)"\n (tuiHoveredChange)="onHovered($event)"\n (keydown.arrowUp)="onKeyDownArrowUp($event)"\n (keydown.arrowDown)="onKeyDownArrowDown($event)"\n />\n <div class="content">\n <span *ngIf="showValue" class="label">\n <span class="value">{{ computedValue }}</span>\n <span\n *ngIf="pluralizeMap"\n automation-id="tui-input-slider__pluralize"\n >\n {{ value | i18nPlural: pluralizeMap }}\n </span>\n </span>\n <span\n *ngIf="showMinLabel"\n automation-id="tui-input-slider__min-label"\n class="label"\n >\n {{ minLabel }}\n </span>\n <span\n *ngIf="showMaxLabel"\n automation-id="tui-input-slider__max-label"\n class="label"\n >\n {{ maxLabel }}\n </span>\n <span automation-id="tui-input-slider__secondary" class="secondary">\n {{ secondary }}\n <tui-tooltip\n *ngIf="hasTooltip"\n automation-id="tui-input-slider__tooltip"\n describeId="placeholer_until_accesibility_is_added"\n class="tooltip"\n [content]="hintController.content"\n [direction]="hintController.direction"\n [mode]="hintController.mode"\n [showDelay]="hintController.showDelay"\n [hideDelay]="hintController.hideDelay"\n (mousedown.prevent)="onMouseDown()"\n ></tui-tooltip>\n </span>\n </div>\n</tui-wrapper>\n<tui-slider\n class="slider"\n [min]="min"\n [max]="max"\n [steps]="computedSteps"\n [segments]="segments"\n [keySteps]="keySteps"\n [pluralize]="segmentsPluralize"\n [focusable]="false"\n [disabled]="readOnly || disabled"\n [ngModel]="value"\n (ngModelChange)="onSliderValue($event)"\n (mousedown)="onMouseDown()"\n></tui-slider>\n',changeDetection:t.ChangeDetectionStrategy.OnPush,providers:[{provide:n.TUI_FOCUSABLE_ITEM_ACCESSOR,useExisting:t.forwardRef((function(){return r}))},i.HINT_CONTROLLER_PROVIDER],styles:[":host{position:relative;z-index:0;display:block;font:var(--tui-font-text-m);border-radius:var(--tui-radius-m);color:var(--tui-text-01)}:host._segmented{border-bottom:26px solid transparent}.native{position:absolute;top:0;left:0;height:100%;padding:0 1rem;border:0;border-radius:inherit;background:0 0;font-size:inherit;line-height:inherit;font-weight:inherit;color:inherit;caret-color:currentColor;-webkit-appearance:none;-moz-appearance:none;appearance:none;word-break:keep-all;-webkit-text-fill-color:currentColor;width:100%;color:var(--tui-text-01);box-sizing:border-box;outline:0}.native:-webkit-autofill,.native:-webkit-autofill:focus,.native:-webkit-autofill:hover{border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01)!important;border-color:var(--tui-autofill);-webkit-box-shadow:0 0 0 1000px var(--tui-autofill) inset!important}:host._disabled .native{color:var(--tui-text-03);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host._max-label .native,:host._min-label .native{opacity:0}:host[data-tui-host-size='l'] .native{padding:1.25rem 1rem 0}:host[data-mode=onDark] .native{color:var(--tui-text-01-night)}:host[data-mode=onDark]._disabled .native{color:var(--tui-text-03-night)}.content{display:flex;align-items:center;height:var(--tui-height-m);padding:0 1rem;justify-content:space-between}:host[data-tui-host-size='l'] .content{height:var(--tui-height-l);padding:0 1rem}.placeholder{transition-property:transform,font-size,color,letter-spacing;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;font:var(--tui-font-text-s);color:var(--tui-text-01);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;font-size:.8125rem;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;color:var(--tui-text-02);position:absolute;top:0;left:0;width:100%;height:100%;padding:0 var(--tui-padding-l);line-height:var(--tui-height-l);box-sizing:border-box;pointer-events:none}.placeholder_raised{transform:translateY(-.625rem)}:host[data-tui-host-size='m'] .placeholder_raised{font-size:.69rem;transform:translateY(-.5rem);letter-spacing:.025rem}:host._invalid:not(._focused) .placeholder_raised,:host._invalid:not(._focused)._hovered .placeholder_raised{color:var(--tui-error-fill)}:host[data-mode=onDark]._invalid:not(._focused) .placeholder_raised,:host[data-mode=onDark]._invalid:not(._focused)._hovered .placeholder_raised{color:var(--tui-error-fill-night)}:host._focused .placeholder,:host[data-tui-host-size='l']._focused._label-outside .placeholder,:host[data-tui-host-size='m']._focused._label-outside .placeholder{color:var(--tui-text-03)}:host[data-tui-host-size='l'] .placeholder{font-size:.9375rem}:host[data-tui-host-size='l'] .placeholder_raised{font-size:.8156rem}:host[data-tui-host-size='l']._focused:not(._label-outside) .placeholder,:host[data-tui-host-size='m']._focused:not(._label-outside) .placeholder{color:var(--tui-text-01)}:host[data-mode=onDark] .placeholder{color:var(--tui-text-02-night)}:host[data-tui-host-size='l'][data-mode=onDark]._focused:not(._label-outside) .placeholder,:host[data-tui-host-size='m'][data-mode=onDark]._focused:not(._label-outside) .placeholder{color:var(--tui-text-01-night)}:host[data-mode=onDark]._focused .placeholder,:host[data-tui-host-size='l'][data-mode=onDark]._focused._label-outside .placeholder,:host[data-tui-host-size='m'][data-mode=onDark]._focused._label-outside .placeholder{color:var(--tui-text-02-night)}:host._has-tooltip .placeholder{max-width:calc(100% - 1.75rem)}.value{visibility:hidden}.label{overflow:hidden;text-overflow:ellipsis}:host[data-tui-host-size='l'] .label{padding-top:1.25rem}.secondary{color:var(--tui-text-01)}:host._disabled .secondary{color:var(--tui-text-03)}:host[data-mode=onDark]._disabled .secondary{color:var(--tui-text-03-night)}.tooltip{margin-left:.75rem}.slider{position:absolute;top:100%;left:0;right:0;border-top-left-radius:0;border-top-right-radius:0;margin:-.5625rem 0 0;color:transparent}:host._disabled .slider,:host._readonly .slider{pointer-events:none}"]}),c(0,t.Optional()),c(0,t.Self()),c(0,t.Inject(o.NgControl)),c(1,t.Inject(t.ChangeDetectorRef)),c(2,t.Optional()),c(2,t.Inject(i.TuiModeDirective)),c(3,t.Inject(i.TUI_HINT_WATCHED_CONTROLLER)),c(4,t.Inject(i.TUI_NUMBER_FORMAT)),c(5,t.Inject(i.TUI_TEXTFIELD_APPEARANCE))],a)}(a.AbstractTuiInputSlider),h=function(){function e(){}return e=d([t.NgModule({imports:[r.CommonModule,o.FormsModule,o.ReactiveFormsModule,s.TextMaskModule,n.TuiFocusableModule,n.TuiFocusedModule,n.TuiHoveredModule,n.TuiPressedModule,n.TuiMapperPipeModule,n.TuiInputModeModule,i.TuiTooltipModule,l.TuiSliderModule,i.TuiWrapperModule],declarations:[p],exports:[p]})],e)}();e.TuiInputSliderComponent=p,e.TuiInputSliderModule=h,Object.defineProperty(e,"__esModule",{value:!0})}));
15
+ ***************************************************************************** */var u=function(e,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)};function d(e,t,o,n){var i,a=arguments.length,r=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(r=(a<3?i(r):a>3?i(t,o,r):i(t,o))||r);return a>3&&r&&Object.defineProperty(t,o,r),r}function c(e,t){return function(o,n){t(o,n,e)}}var p=function(e){function a(t,o,n,i,a,r){var l=e.call(this,t,o)||this;return l.modeDirective=n,l.hintController=i,l.numberFormat=a,l.appearance=r,l.secondary="",l}var r;return function(e,t){function o(){this.constructor=e}u(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}(a,e),r=a,Object.defineProperty(a.prototype,"nativeFocusableElement",{get:function(){return!this.focusableElement||this.computedDisabled?null:this.focusableElement.nativeElement},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"focused",{get:function(){return n.isNativeFocused(this.nativeFocusableElement)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"hasTooltip",{get:function(){return!!this.hintController.content&&!this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"showMinLabel",{get:function(){return!this.focused&&this.value===this.min&&!!this.minLabel},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"showMaxLabel",{get:function(){return!this.focused&&this.value===this.max&&!!this.maxLabel},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"computedValue",{get:function(){return this.focused&&this.isInputValueNotFinished?this.inputValue:this.formattedValue},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"showValue",{get:function(){return!this.showMinLabel&&!this.showMaxLabel},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"inputValue",{get:function(){return this.focusableElement?this.focusableElement.nativeElement.value:""},set:function(e){this.focusableElement&&(this.focusableElement.nativeElement.value=e)},enumerable:!0,configurable:!0}),a.prototype.onMouseDown=function(){this.focusableElement&&n.setNativeFocused(this.focusableElement.nativeElement)},a.prototype.onKeyDownArrowUp=function(e){this.readOnly||(e.preventDefault(),this.processStep(!0),this.inputValue=this.formattedValue)},a.prototype.onKeyDownArrowDown=function(e){this.readOnly||(e.preventDefault(),this.processStep(!1),this.inputValue=this.formattedValue)},a.prototype.onFocused=function(e){if(this.updateFocused(e),!e){var t=i.maskedNumberStringToNumber(this.computedValue,this.numberFormat.decimalSeparator,this.numberFormat.thousandSeparator),o=isNaN(t)?this.min:this.valueGuard(t);this.updateValue(o),this.inputValue=this.formattedValue}},a.prototype.onValue=function(e){var t=this.capInputValue(e),o=","===e.slice(-1)[0]?",":"";if(!i.maskedMoneyValueIsEmpty(e)&&null!==t){var n=this.formatNumber(t)+o;e!==n&&(this.inputValue=n),this.updateValue(t)}},a.prototype.onSliderValue=function(e){this.updateValue(this.valueGuard(e)),this.inputValue=this.formattedValue},a.prototype.getFallbackValue=function(){return 0},Object.defineProperty(a.prototype,"formattedValue",{get:function(){return this.formatNumber(this.value)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"isInputValueNotFinished",{get:function(){if(""===this.inputValue)return!0;var e=i.maskedNumberStringToNumber(this.inputValue,this.numberFormat.decimalSeparator,this.numberFormat.thousandSeparator);return e<0?e>this.max:e<this.min},enumerable:!0,configurable:!0}),a.prototype.processStep=function(e){var t=this.valueGuard(e?this.value+this.step:this.value-this.step);t!==this.value&&this.updateValue(t)},a.prototype.formatNumber=function(e){return i.formatNumber(e,null,this.numberFormat.decimalSeparator,this.numberFormat.thousandSeparator)},a.ctorParameters=function(){return[{type:o.NgControl,decorators:[{type:t.Optional},{type:t.Self},{type:t.Inject,args:[o.NgControl]}]},{type:t.ChangeDetectorRef,decorators:[{type:t.Inject,args:[t.ChangeDetectorRef]}]},{type:i.TuiModeDirective,decorators:[{type:t.Optional},{type:t.Inject,args:[i.TuiModeDirective]}]},{type:i.TuiHintControllerDirective,decorators:[{type:t.Inject,args:[i.TUI_HINT_WATCHED_CONTROLLER]}]},{type:void 0,decorators:[{type:t.Inject,args:[i.TUI_NUMBER_FORMAT]}]},{type:String,decorators:[{type:t.Inject,args:[i.TUI_TEXTFIELD_APPEARANCE]}]}]},d([t.ViewChild("focusableElement")],a.prototype,"focusableElement",void 0),d([t.Input(),n.tuiDefaultProp()],a.prototype,"secondary",void 0),d([t.HostBinding("class._has-tooltip")],a.prototype,"hasTooltip",null),d([t.HostBinding("class._min-label")],a.prototype,"showMinLabel",null),d([t.HostBinding("class._max-label")],a.prototype,"showMaxLabel",null),a=r=d([t.Component({selector:"tui-input-slider",template:'<tui-wrapper\n [appearance]="appearance"\n [readOnly]="readOnly"\n [disabled]="disabled"\n [focused]="computedFocused"\n [hovered]="computedHovered"\n [invalid]="computedInvalid"\n>\n <span\n *ngIf="hasPlaceholder"\n automation-id="tui-input-slider__placeholder"\n class="placeholder placeholder_raised"\n >\n <ng-content></ng-content>\n </span>\n <input\n #focusableElement\n automation-id="tui-input-slider__native"\n class="native"\n [disabled]="disabled"\n [readOnly]="readOnly"\n [tuiInputMode]="inputMode"\n [tuiFocusable]="focusable"\n [textMask]="quantum | tuiMapper: mask:min"\n [ngModel]="computedValue"\n (ngModelChange)="onValue($event)"\n (tuiFocusedChange)="onFocused($event)"\n (tuiHoveredChange)="onHovered($event)"\n (keydown.arrowUp)="onKeyDownArrowUp($event)"\n (keydown.arrowDown)="onKeyDownArrowDown($event)"\n />\n <div class="content">\n <span *ngIf="showValue" class="label">\n <span class="value">{{ computedValue }}</span>\n <span\n *ngIf="pluralizeMap"\n automation-id="tui-input-slider__pluralize"\n >\n {{ value | i18nPlural: pluralizeMap }}\n </span>\n </span>\n <span\n *ngIf="showMinLabel"\n automation-id="tui-input-slider__min-label"\n class="label"\n >\n {{ minLabel }}\n </span>\n <span\n *ngIf="showMaxLabel"\n automation-id="tui-input-slider__max-label"\n class="label"\n >\n {{ maxLabel }}\n </span>\n <span automation-id="tui-input-slider__secondary" class="secondary">\n {{ secondary }}\n <tui-tooltip\n *ngIf="hasTooltip"\n automation-id="tui-input-slider__tooltip"\n describeId="placeholer_until_accesibility_is_added"\n class="tooltip"\n [content]="hintController.content"\n [direction]="hintController.direction"\n [mode]="hintController.mode"\n [showDelay]="hintController.showDelay"\n [hideDelay]="hintController.hideDelay"\n (mousedown.prevent)="onMouseDown()"\n ></tui-tooltip>\n </span>\n </div>\n</tui-wrapper>\n<tui-slider\n class="slider"\n [min]="min"\n [max]="max"\n [steps]="computedSteps"\n [segments]="segments"\n [keySteps]="keySteps"\n [pluralize]="segmentsPluralize"\n [focusable]="false"\n [disabled]="readOnly || disabled"\n [ngModel]="value"\n (ngModelChange)="onSliderValue($event)"\n (mousedown)="onMouseDown()"\n></tui-slider>\n',changeDetection:t.ChangeDetectionStrategy.OnPush,providers:[{provide:n.TUI_FOCUSABLE_ITEM_ACCESSOR,useExisting:t.forwardRef((function(){return r}))},i.HINT_CONTROLLER_PROVIDER],styles:[":host{position:relative;z-index:0;display:block;font:var(--tui-font-text-m);border-radius:var(--tui-radius-m);color:var(--tui-text-01)}:host._segmented{border-bottom:26px solid transparent}.native{position:absolute;top:0;left:0;height:100%;padding:0 1rem;border:0;border-radius:inherit;background:0 0;font-size:inherit;line-height:inherit;font-weight:inherit;color:inherit;caret-color:currentColor;-webkit-appearance:none;-moz-appearance:none;appearance:none;word-break:keep-all;-webkit-text-fill-color:currentColor;width:100%;color:var(--tui-text-01);box-sizing:border-box;outline:0}.native:-webkit-autofill,.native:-webkit-autofill:focus,.native:-webkit-autofill:hover{border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01)!important;border-color:var(--tui-autofill);-webkit-box-shadow:0 0 0 1000px var(--tui-autofill) inset!important}:host._disabled .native{color:var(--tui-text-03);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host._max-label .native,:host._min-label .native{opacity:0}:host[data-tui-host-size='l'] .native{padding:1.25rem 1rem 0}:host[data-mode=onDark] .native{color:var(--tui-text-01-night)}:host[data-mode=onDark]._disabled .native{color:var(--tui-text-03-night)}.content{display:flex;align-items:center;height:var(--tui-height-m);padding:0 1rem;justify-content:space-between}:host[data-tui-host-size='l'] .content{height:var(--tui-height-l);padding:0 1rem}.placeholder{transition-property:transform,font-size,color,letter-spacing;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;font:var(--tui-font-text-s);color:var(--tui-text-01);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;font-size:.8125rem;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;color:var(--tui-text-02);position:absolute;top:0;left:0;width:100%;height:100%;padding:0 var(--tui-padding-l);line-height:var(--tui-height-l);box-sizing:border-box;pointer-events:none}.placeholder_raised{transform:translateY(-.625rem)}:host[data-size='m'] .placeholder_raised{font-size:.69rem;transform:translateY(-.5rem);letter-spacing:.025rem}:host._invalid:not(._focused) .placeholder_raised,:host._invalid:not(._focused)._hovered .placeholder_raised{color:var(--tui-error-fill)}:host[data-mode=onDark]._invalid:not(._focused) .placeholder_raised,:host[data-mode=onDark]._invalid:not(._focused)._hovered .placeholder_raised{color:var(--tui-error-fill-night)}:host._focused .placeholder,:host[data-size='l']._focused._label-outside .placeholder,:host[data-size='m']._focused._label-outside .placeholder{color:var(--tui-text-03)}:host[data-size='l'] .placeholder{font-size:.9375rem}:host[data-size='l'] .placeholder_raised{font-size:.8156rem}:host[data-size='l']._focused:not(._label-outside) .placeholder,:host[data-size='m']._focused:not(._label-outside) .placeholder{color:var(--tui-text-01)}:host[data-mode=onDark] .placeholder{color:var(--tui-text-02-night)}:host[data-size='l'][data-mode=onDark]._focused:not(._label-outside) .placeholder,:host[data-size='m'][data-mode=onDark]._focused:not(._label-outside) .placeholder{color:var(--tui-text-01-night)}:host[data-mode=onDark]._focused .placeholder,:host[data-size='l'][data-mode=onDark]._focused._label-outside .placeholder,:host[data-size='m'][data-mode=onDark]._focused._label-outside .placeholder{color:var(--tui-text-02-night)}:host._has-tooltip .placeholder{max-width:calc(100% - 1.75rem)}.value{visibility:hidden}.label{overflow:hidden;text-overflow:ellipsis}:host[data-tui-host-size='l'] .label{padding-top:1.25rem}.secondary{color:var(--tui-text-01)}:host._disabled .secondary{color:var(--tui-text-03)}:host[data-mode=onDark]._disabled .secondary{color:var(--tui-text-03-night)}.tooltip{margin-left:.75rem}.slider{position:absolute;top:100%;left:0;right:0;border-top-left-radius:0;border-top-right-radius:0;margin:-.5625rem 0 0;color:transparent}:host._disabled .slider,:host._readonly .slider{pointer-events:none}"]}),c(0,t.Optional()),c(0,t.Self()),c(0,t.Inject(o.NgControl)),c(1,t.Inject(t.ChangeDetectorRef)),c(2,t.Optional()),c(2,t.Inject(i.TuiModeDirective)),c(3,t.Inject(i.TUI_HINT_WATCHED_CONTROLLER)),c(4,t.Inject(i.TUI_NUMBER_FORMAT)),c(5,t.Inject(i.TUI_TEXTFIELD_APPEARANCE))],a)}(a.AbstractTuiInputSlider),h=function(){function e(){}return e=d([t.NgModule({imports:[r.CommonModule,o.FormsModule,o.ReactiveFormsModule,s.TextMaskModule,n.TuiFocusableModule,n.TuiFocusedModule,n.TuiHoveredModule,n.TuiPressedModule,n.TuiMapperPipeModule,n.TuiInputModeModule,i.TuiTooltipModule,l.TuiSliderModule,i.TuiWrapperModule],declarations:[p],exports:[p]})],e)}();e.TuiInputSliderComponent=p,e.TuiInputSliderModule=h,Object.defineProperty(e,"__esModule",{value:!0})}));
16
16
  //# sourceMappingURL=taiga-ui-kit-components-input-slider.umd.min.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../node_modules/tslib/tslib.es6.js","ng://@taiga-ui/kit/components/input-slider/input-slider.component.ts","ng://@taiga-ui/kit/components/input-slider/input-slider.module.ts"],"names":["extendStatics","d","b","Object","setPrototypeOf","__proto__","Array","p","hasOwnProperty","__decorate","decorators","target","key","desc","c","arguments","length","r","getOwnPropertyDescriptor","Reflect","decorate","i","defineProperty","__param","paramIndex","decorator","TuiInputSliderComponent","control","changeDetectorRef","modeDirective","hintController","numberFormat","appearance","_this","_super","call","this","secondary","__","constructor","prototype","create","__extends","focusableElement","computedDisabled","nativeElement","isNativeFocused","nativeFocusableElement","content","disabled","focused","value","min","minLabel","max","maxLabel","isInputValueNotFinished","inputValue","formattedValue","showMinLabel","showMaxLabel","onMouseDown","setNativeFocused","onKeyDownArrowUp","event","readOnly","preventDefault","processStep","onKeyDownArrowDown","onFocused","updateFocused","maskedNumberStringToNumber","computedValue","decimalSeparator","thousandSeparator","isNaN","valueGuard","updateValue","onValue","capped","capInputValue","postfix","slice","maskedMoneyValueIsEmpty","newValue","formatNumber","onSliderValue","getFallbackValue","nativeNumberValue","increment","step","NgControl","type","Optional","Self","Inject","args","ChangeDetectorRef","TuiModeDirective","TuiHintControllerDirective","TUI_HINT_WATCHED_CONTROLLER","TUI_NUMBER_FORMAT","TUI_TEXTFIELD_APPEARANCE","ViewChild","Input","tuiDefaultProp","HostBinding","TuiInputSliderComponent_1","Component","selector","template","changeDetection","ChangeDetectionStrategy","OnPush","providers","provide","TUI_FOCUSABLE_ITEM_ACCESSOR","useExisting","forwardRef","HINT_CONTROLLER_PROVIDER","AbstractTuiInputSlider","TuiInputSliderModule","NgModule","imports","CommonModule","FormsModule","ReactiveFormsModule","TextMaskModule","TuiFocusableModule","TuiFocusedModule","TuiHoveredModule","TuiPressedModule","TuiMapperPipeModule","TuiInputModeModule","TuiTooltipModule","TuiSliderModule","TuiWrapperModule","declarations","exports"],"mappings":";;;;;;;;;;;;;;oFAgBA,IAAIA,EAAgB,SAASC,EAAGC,GAI5B,OAHAF,EAAgBG,OAAOC,gBAClB,CAAEC,UAAW,cAAgBC,OAAS,SAAUL,EAAGC,GAAKD,EAAEI,UAAYH,IACvE,SA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AOE,EAAAA,oBACP1E,EAAA,EAAAsE,EAAAA,YACAtE,EAAA,EAAAwE,EAAAA,OAAOG,EAAAA,mBAEP3E,EAAA,EAAAwE,EAAAA,OAAOK,EAAAA,8BAEP7E,EAAA,EAAAwE,EAAAA,OAAOM,EAAAA,oBAEP9E,EAAA,EAAAwE,EAAAA,OAAOO,EAAAA,4BAxBH5E,IACD8F,EAAAA,qCCfZ,SAAAC,KAAmC,OAAtBA,EAAoBhH,EAAA,CAnBhCiH,EAAAA,SAAS,CACNC,QAAS,CACLC,EAAAA,aACAC,EAAAA,YACAC,EAAAA,oBACAC,EAAAA,eACAC,EAAAA,mBACAC,EAAAA,iBACAC,EAAAA,iBACAC,EAAAA,iBACAC,EAAAA,oBACAC,EAAAA,mBACAC,EAAAA,iBACAC,EAAAA,gBACAC,EAAAA,kBAEJC,aAAc,CAAC/G,GACfgH,QAAS,CAAChH,MAED+F","sourcesContent":["/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport function __createBinding(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n}\r\n\r\nexport function __exportStar(m, exports) {\r\n for (var p in m) if (p !== \"default\" && !exports.hasOwnProperty(p)) exports[p] = m[p];\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n};\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\r\n result.default = mod;\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, privateMap) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to get private field on non-instance\");\r\n }\r\n return privateMap.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, privateMap, value) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to set private field on non-instance\");\r\n }\r\n privateMap.set(receiver, value);\r\n return value;\r\n}\r\n","import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ElementRef,\n forwardRef,\n HostBinding,\n Inject,\n Input,\n Optional,\n Self,\n ViewChild,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {\n isNativeFocused,\n setNativeFocused,\n TUI_FOCUSABLE_ITEM_ACCESSOR,\n tuiDefaultProp,\n TuiFocusableElementAccessor,\n TuiNativeFocusableElement,\n} from '@taiga-ui/cdk';\nimport {\n formatNumber,\n HINT_CONTROLLER_PROVIDER,\n maskedMoneyValueIsEmpty,\n maskedNumberStringToNumber,\n NumberFormatSettings,\n TUI_HINT_WATCHED_CONTROLLER,\n TUI_NUMBER_FORMAT,\n TUI_TEXTFIELD_APPEARANCE,\n TuiHintControllerDirective,\n TuiModeDirective,\n} from '@taiga-ui/core';\nimport {AbstractTuiInputSlider} from '@taiga-ui/kit/abstract';\n\n// @dynamic\n@Component({\n selector: 'tui-input-slider',\n templateUrl: './input-slider.template.html',\n styleUrls: ['./input-slider.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: TUI_FOCUSABLE_ITEM_ACCESSOR,\n useExisting: forwardRef(() => TuiInputSliderComponent),\n },\n HINT_CONTROLLER_PROVIDER,\n ],\n})\nexport class TuiInputSliderComponent\n extends AbstractTuiInputSlider<number>\n implements TuiFocusableElementAccessor\n{\n @ViewChild('focusableElement')\n private readonly focusableElement?: ElementRef<HTMLInputElement>;\n\n @Input()\n @tuiDefaultProp()\n secondary = '';\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n @Optional()\n @Inject(TuiModeDirective)\n protected readonly modeDirective: TuiModeDirective | null,\n @Inject(TUI_HINT_WATCHED_CONTROLLER)\n readonly hintController: TuiHintControllerDirective,\n @Inject(TUI_NUMBER_FORMAT)\n protected readonly numberFormat: NumberFormatSettings,\n @Inject(TUI_TEXTFIELD_APPEARANCE)\n readonly appearance: string,\n ) {\n super(control, changeDetectorRef);\n }\n\n get nativeFocusableElement(): TuiNativeFocusableElement | null {\n return !this.focusableElement || this.computedDisabled\n ? null\n : this.focusableElement.nativeElement;\n }\n\n get focused(): boolean {\n return isNativeFocused(this.nativeFocusableElement);\n }\n\n @HostBinding('class._has-tooltip')\n get hasTooltip(): boolean {\n return !!this.hintController.content && !this.disabled;\n }\n\n @HostBinding('class._min-label')\n get showMinLabel(): boolean {\n return !this.focused && this.value === this.min && !!this.minLabel;\n }\n\n @HostBinding('class._max-label')\n get showMaxLabel(): boolean {\n return !this.focused && this.value === this.max && !!this.maxLabel;\n }\n\n get computedValue(): string {\n if (this.focused && this.isInputValueNotFinished) {\n return this.inputValue;\n }\n\n return this.formattedValue;\n }\n\n get showValue(): boolean {\n return !this.showMinLabel && !this.showMaxLabel;\n }\n\n get inputValue(): string {\n return this.focusableElement ? this.focusableElement.nativeElement.value : '';\n }\n\n set inputValue(value: string) {\n if (this.focusableElement) {\n this.focusableElement.nativeElement.value = value;\n }\n }\n\n onMouseDown() {\n if (this.focusableElement) {\n setNativeFocused(this.focusableElement.nativeElement);\n }\n }\n\n onKeyDownArrowUp(event: KeyboardEvent) {\n if (this.readOnly) {\n return;\n }\n\n event.preventDefault();\n this.processStep(true);\n this.inputValue = this.formattedValue;\n }\n\n onKeyDownArrowDown(event: KeyboardEvent) {\n if (this.readOnly) {\n return;\n }\n\n event.preventDefault();\n this.processStep(false);\n this.inputValue = this.formattedValue;\n }\n\n onFocused(focused: boolean) {\n this.updateFocused(focused);\n\n if (focused) {\n return;\n }\n\n const inputValue = maskedNumberStringToNumber(\n this.computedValue,\n this.numberFormat.decimalSeparator,\n this.numberFormat.thousandSeparator,\n );\n const value = isNaN(inputValue) ? this.min : this.valueGuard(inputValue);\n\n this.updateValue(value);\n this.inputValue = this.formattedValue;\n }\n\n onValue(value: string) {\n const capped = this.capInputValue(value);\n const postfix = value.slice(-1)[0] === ',' ? ',' : '';\n\n if (maskedMoneyValueIsEmpty(value) || capped === null) {\n return;\n }\n\n const newValue = this.formatNumber(capped) + postfix;\n\n if (value !== newValue) {\n this.inputValue = newValue;\n }\n\n this.updateValue(capped);\n }\n\n onSliderValue(value: number) {\n this.updateValue(this.valueGuard(value));\n this.inputValue = this.formattedValue;\n }\n\n protected getFallbackValue(): number {\n return 0;\n }\n\n private get formattedValue(): string {\n return this.formatNumber(this.value);\n }\n\n private get isInputValueNotFinished(): boolean {\n if (this.inputValue === '') {\n return true;\n }\n\n const nativeNumberValue = maskedNumberStringToNumber(\n this.inputValue,\n this.numberFormat.decimalSeparator,\n this.numberFormat.thousandSeparator,\n );\n\n return nativeNumberValue < 0\n ? nativeNumberValue > this.max\n : nativeNumberValue < this.min;\n }\n\n private processStep(increment: boolean) {\n const value = this.valueGuard(\n increment ? this.value + this.step : this.value - this.step,\n );\n\n if (value !== this.value) {\n this.updateValue(value);\n }\n }\n\n private formatNumber(value: number): string {\n return formatNumber(\n value,\n null,\n this.numberFormat.decimalSeparator,\n this.numberFormat.thousandSeparator,\n );\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {FormsModule, ReactiveFormsModule} from '@angular/forms';\nimport {\n TuiFocusableModule,\n TuiFocusedModule,\n TuiHoveredModule,\n TuiInputModeModule,\n TuiMapperPipeModule,\n TuiPressedModule,\n} from '@taiga-ui/cdk';\nimport {TuiTooltipModule, TuiWrapperModule} from '@taiga-ui/core';\nimport {TuiSliderModule} from '@taiga-ui/kit/components/slider';\nimport {TextMaskModule} from 'angular2-text-mask';\n\nimport {TuiInputSliderComponent} from './input-slider.component';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n ReactiveFormsModule,\n TextMaskModule,\n TuiFocusableModule,\n TuiFocusedModule,\n TuiHoveredModule,\n TuiPressedModule,\n TuiMapperPipeModule,\n TuiInputModeModule,\n TuiTooltipModule,\n TuiSliderModule,\n TuiWrapperModule,\n ],\n declarations: [TuiInputSliderComponent],\n exports: [TuiInputSliderComponent],\n})\nexport class TuiInputSliderModule {}\n"]}
1
+ {"version":3,"sources":["../../../node_modules/tslib/tslib.es6.js","ng://@taiga-ui/kit/components/input-slider/input-slider.component.ts","ng://@taiga-ui/kit/components/input-slider/input-slider.module.ts"],"names":["extendStatics","d","b","Object","setPrototypeOf","__proto__","Array","p","hasOwnProperty","__decorate","decorators","target","key","desc","c","arguments","length","r","getOwnPropertyDescriptor","Reflect","decorate","i","defineProperty","__param","paramIndex","decorator","TuiInputSliderComponent","control","changeDetectorRef","modeDirective","hintController","numberFormat","appearance","_this","_super","call","this","secondary","__","constructor","prototype","create","__extends","focusableElement","computedDisabled","nativeElement","isNativeFocused","nativeFocusableElement","content","disabled","focused","value","min","minLabel","max","maxLabel","isInputValueNotFinished","inputValue","formattedValue","showMinLabel","showMaxLabel","onMouseDown","setNativeFocused","onKeyDownArrowUp","event","readOnly","preventDefault","processStep","onKeyDownArrowDown","onFocused","updateFocused","maskedNumberStringToNumber","computedValue","decimalSeparator","thousandSeparator","isNaN","valueGuard","updateValue","onValue","capped","capInputValue","postfix","slice","maskedMoneyValueIsEmpty","newValue","formatNumber","onSliderValue","getFallbackValue","nativeNumberValue","increment","step","NgControl","type","Optional","Self","Inject","args","ChangeDetectorRef","TuiModeDirective","TuiHintControllerDirective","TUI_HINT_WATCHED_CONTROLLER","TUI_NUMBER_FORMAT","TUI_TEXTFIELD_APPEARANCE","ViewChild","Input","tuiDefaultProp","HostBinding","TuiInputSliderComponent_1","Component","selector","template","changeDetection","ChangeDetectionStrategy","OnPush","providers","provide","TUI_FOCUSABLE_ITEM_ACCESSOR","useExisting","forwardRef","HINT_CONTROLLER_PROVIDER","AbstractTuiInputSlider","TuiInputSliderModule","NgModule","imports","CommonModule","FormsModule","ReactiveFormsModule","TextMaskModule","TuiFocusableModule","TuiFocusedModule","TuiHoveredModule","TuiPressedModule","TuiMapperPipeModule","TuiInputModeModule","TuiTooltipModule","TuiSliderModule","TuiWrapperModule","declarations","exports"],"mappings":";;;;;;;;;;;;;;oFAgBA,IAAIA,EAAgB,SAASC,EAAGC,GAI5B,OAHAF,EAAgBG,OAAOC,gBAClB,CAAEC,UAAW,cAAgBC,OAAS,SAAUL,EAAGC,GAAKD,EAAEI,UAAYH,IACvE,SAAUD,EAAGC,GAAK,IAAK,IAAIK,KAAKL,EAAOA,EAAEM,eAAeD,KAAIN,EAAEM,GAAKL,EAAEK,MACpDN,EAAGC,IAgCrB,SAASO,EAAWC,EAAYC,EAAQC,EAAKC,GAChD,IAA2HZ,EAAvHa,EAAIC,UAAUC,OAAQC,EAAIH,EAAI,EAAIH,EAAkB,OAATE,EAAgBA,EAAOV,OAAOe,yBAAyBP,EAAQC,GAAOC,EACrH,GAAuB,iBAAZM,SAAoD,mBAArBA,QAAQC,SAAyBH,EAAIE,QAAQC,SAASV,EAAYC,EAAQC,EAAKC,QACpH,IAAK,IAAIQ,EAAIX,EAAWM,OAAS,EAAGK,GAAK,EAAGA,KAASpB,EAAIS,EAAWW,MAAIJ,GAAKH,EAAI,EAAIb,EAAEgB,GAAKH,EAAI,EAAIb,EAAEU,EAAQC,EAAKK,GAAKhB,EAAEU,EAAQC,KAASK,GAChJ,OAAOH,EAAI,GAAKG,GAAKd,OAAOmB,eAAeX,EAAQC,EAAKK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AAMC,KAAA,CAACK,EAAAA,qDAEPN,EAAAA,OAAMC,KAAA,CAACM,EAAAA,+BAnBZ7F,EAAA,CADC8F,EAAAA,UAAU,4DAKX9F,EAAA,CAFC+F,EAAAA,QACAC,EAAAA,kDAiCDhG,EAAA,CADCiG,EAAAA,YAAY,sDAMbjG,EAAA,CADCiG,EAAAA,YAAY,sDAMbjG,EAAA,CADCiG,EAAAA,YAAY,sDAlDJhF,EAAuBiF,EAAAlG,EAAA,CAbnCmG,EAAAA,UAAU,CACPC,SAAU,mBACVC,SAAA,6wFAEAC,gBAAiBC,EAAAA,wBAAwBC,OACzCC,UAAW,CACP,CACIC,QAASC,EAAAA,4BACTC,YAAaC,EAAAA,YAAW,WAAM,OAAAX,MAElCY,EAAAA,sgIAeChG,EAAA,EAAAsE,EAAAA,YACAtE,EAAA,EAAAuE,EAAAA,QACAvE,EAAA,EAAAwE,EAAAA,OAAOJ,EAAAA,YAEPpE,EAAA,EAAAwE,EAAAA,OAAOE,EAAAA,oBACP1E,EAAA,EAAAsE,EAAAA,YACAtE,EAAA,EAAAwE,EAAAA,OAAOG,EAAAA,mBAEP3E,EAAA,EAAAwE,EAAAA,OAAOK,EAAAA,8BAEP7E,EAAA,EAAAwE,EAAAA,OAAOM,EAAAA,oBAEP9E,EAAA,EAAAwE,EAAAA,OAAOO,EAAAA,4BAxBH5E,IACD8F,EAAAA,qCCfZ,SAAAC,KAAmC,OAAtBA,EAAoBhH,EAAA,CAnBhCiH,EAAAA,SAAS,CACNC,QAAS,CACLC,EAAAA,aACAC,EAAAA,YACAC,EAAAA,oBACAC,EAAAA,eACAC,EAAAA,mBACAC,EAAAA,iBACAC,EAAAA,iBACAC,EAAAA,iBACAC,EAAAA,oBACAC,EAAAA,mBACAC,EAAAA,iBACAC,EAAAA,gBACAC,EAAAA,kBAEJC,aAAc,CAAC/G,GACfgH,QAAS,CAAChH,MAED+F","sourcesContent":["/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport function __createBinding(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n}\r\n\r\nexport function __exportStar(m, exports) {\r\n for (var p in m) if (p !== \"default\" && !exports.hasOwnProperty(p)) exports[p] = m[p];\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n};\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\r\n result.default = mod;\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, privateMap) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to get private field on non-instance\");\r\n }\r\n return privateMap.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, privateMap, value) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to set private field on non-instance\");\r\n }\r\n privateMap.set(receiver, value);\r\n return value;\r\n}\r\n","import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ElementRef,\n forwardRef,\n HostBinding,\n Inject,\n Input,\n Optional,\n Self,\n ViewChild,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {\n isNativeFocused,\n setNativeFocused,\n TUI_FOCUSABLE_ITEM_ACCESSOR,\n tuiDefaultProp,\n TuiFocusableElementAccessor,\n TuiNativeFocusableElement,\n} from '@taiga-ui/cdk';\nimport {\n formatNumber,\n HINT_CONTROLLER_PROVIDER,\n maskedMoneyValueIsEmpty,\n maskedNumberStringToNumber,\n NumberFormatSettings,\n TUI_HINT_WATCHED_CONTROLLER,\n TUI_NUMBER_FORMAT,\n TUI_TEXTFIELD_APPEARANCE,\n TuiHintControllerDirective,\n TuiModeDirective,\n} from '@taiga-ui/core';\nimport {AbstractTuiInputSlider} from '@taiga-ui/kit/abstract';\n\n// @dynamic\n@Component({\n selector: 'tui-input-slider',\n templateUrl: './input-slider.template.html',\n styleUrls: ['./input-slider.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: TUI_FOCUSABLE_ITEM_ACCESSOR,\n useExisting: forwardRef(() => TuiInputSliderComponent),\n },\n HINT_CONTROLLER_PROVIDER,\n ],\n})\nexport class TuiInputSliderComponent\n extends AbstractTuiInputSlider<number>\n implements TuiFocusableElementAccessor\n{\n @ViewChild('focusableElement')\n private readonly focusableElement?: ElementRef<HTMLInputElement>;\n\n @Input()\n @tuiDefaultProp()\n secondary = '';\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n @Optional()\n @Inject(TuiModeDirective)\n protected readonly modeDirective: TuiModeDirective | null,\n @Inject(TUI_HINT_WATCHED_CONTROLLER)\n readonly hintController: TuiHintControllerDirective,\n @Inject(TUI_NUMBER_FORMAT)\n protected readonly numberFormat: NumberFormatSettings,\n @Inject(TUI_TEXTFIELD_APPEARANCE)\n readonly appearance: string,\n ) {\n super(control, changeDetectorRef);\n }\n\n get nativeFocusableElement(): TuiNativeFocusableElement | null {\n return !this.focusableElement || this.computedDisabled\n ? null\n : this.focusableElement.nativeElement;\n }\n\n get focused(): boolean {\n return isNativeFocused(this.nativeFocusableElement);\n }\n\n @HostBinding('class._has-tooltip')\n get hasTooltip(): boolean {\n return !!this.hintController.content && !this.disabled;\n }\n\n @HostBinding('class._min-label')\n get showMinLabel(): boolean {\n return !this.focused && this.value === this.min && !!this.minLabel;\n }\n\n @HostBinding('class._max-label')\n get showMaxLabel(): boolean {\n return !this.focused && this.value === this.max && !!this.maxLabel;\n }\n\n get computedValue(): string {\n if (this.focused && this.isInputValueNotFinished) {\n return this.inputValue;\n }\n\n return this.formattedValue;\n }\n\n get showValue(): boolean {\n return !this.showMinLabel && !this.showMaxLabel;\n }\n\n get inputValue(): string {\n return this.focusableElement ? this.focusableElement.nativeElement.value : '';\n }\n\n set inputValue(value: string) {\n if (this.focusableElement) {\n this.focusableElement.nativeElement.value = value;\n }\n }\n\n onMouseDown() {\n if (this.focusableElement) {\n setNativeFocused(this.focusableElement.nativeElement);\n }\n }\n\n onKeyDownArrowUp(event: KeyboardEvent) {\n if (this.readOnly) {\n return;\n }\n\n event.preventDefault();\n this.processStep(true);\n this.inputValue = this.formattedValue;\n }\n\n onKeyDownArrowDown(event: KeyboardEvent) {\n if (this.readOnly) {\n return;\n }\n\n event.preventDefault();\n this.processStep(false);\n this.inputValue = this.formattedValue;\n }\n\n onFocused(focused: boolean) {\n this.updateFocused(focused);\n\n if (focused) {\n return;\n }\n\n const inputValue = maskedNumberStringToNumber(\n this.computedValue,\n this.numberFormat.decimalSeparator,\n this.numberFormat.thousandSeparator,\n );\n const value = isNaN(inputValue) ? this.min : this.valueGuard(inputValue);\n\n this.updateValue(value);\n this.inputValue = this.formattedValue;\n }\n\n onValue(value: string) {\n const capped = this.capInputValue(value);\n const postfix = value.slice(-1)[0] === ',' ? ',' : '';\n\n if (maskedMoneyValueIsEmpty(value) || capped === null) {\n return;\n }\n\n const newValue = this.formatNumber(capped) + postfix;\n\n if (value !== newValue) {\n this.inputValue = newValue;\n }\n\n this.updateValue(capped);\n }\n\n onSliderValue(value: number) {\n this.updateValue(this.valueGuard(value));\n this.inputValue = this.formattedValue;\n }\n\n protected getFallbackValue(): number {\n return 0;\n }\n\n private get formattedValue(): string {\n return this.formatNumber(this.value);\n }\n\n private get isInputValueNotFinished(): boolean {\n if (this.inputValue === '') {\n return true;\n }\n\n const nativeNumberValue = maskedNumberStringToNumber(\n this.inputValue,\n this.numberFormat.decimalSeparator,\n this.numberFormat.thousandSeparator,\n );\n\n return nativeNumberValue < 0\n ? nativeNumberValue > this.max\n : nativeNumberValue < this.min;\n }\n\n private processStep(increment: boolean) {\n const value = this.valueGuard(\n increment ? this.value + this.step : this.value - this.step,\n );\n\n if (value !== this.value) {\n this.updateValue(value);\n }\n }\n\n private formatNumber(value: number): string {\n return formatNumber(\n value,\n null,\n this.numberFormat.decimalSeparator,\n this.numberFormat.thousandSeparator,\n );\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {FormsModule, ReactiveFormsModule} from '@angular/forms';\nimport {\n TuiFocusableModule,\n TuiFocusedModule,\n TuiHoveredModule,\n TuiInputModeModule,\n TuiMapperPipeModule,\n TuiPressedModule,\n} from '@taiga-ui/cdk';\nimport {TuiTooltipModule, TuiWrapperModule} from '@taiga-ui/core';\nimport {TuiSliderModule} from '@taiga-ui/kit/components/slider';\nimport {TextMaskModule} from 'angular2-text-mask';\n\nimport {TuiInputSliderComponent} from './input-slider.component';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n ReactiveFormsModule,\n TextMaskModule,\n TuiFocusableModule,\n TuiFocusedModule,\n TuiHoveredModule,\n TuiPressedModule,\n TuiMapperPipeModule,\n TuiInputModeModule,\n TuiTooltipModule,\n TuiSliderModule,\n TuiWrapperModule,\n ],\n declarations: [TuiInputSliderComponent],\n exports: [TuiInputSliderComponent],\n})\nexport class TuiInputSliderModule {}\n"]}
@@ -664,7 +664,7 @@
664
664
  core.Component({
665
665
  selector: 'tui-input-tag',
666
666
  changeDetection: core.ChangeDetectionStrategy.OnPush,
667
- template: "<tui-hosted-dropdown\n class=\"hosted\"\n [canOpen]=\"canOpen\"\n [content]=\"datalist || ''\"\n [(open)]=\"open\"\n (tuiActiveZoneChange)=\"onActiveZone($event)\"\n>\n <tui-wrapper\n [appearance]=\"appearance\"\n [readOnly]=\"readOnly\"\n [focused]=\"computedFocused\"\n [hovered]=\"computedHovered\"\n [disabled]=\"computedDisabled\"\n [invalid]=\"computedInvalid\"\n (tuiHoveredChange)=\"onHoveredChange($event)\"\n (mousedown)=\"onMouseDown($event)\"\n >\n <div class=\"content\">\n <div *ngIf=\"iconAlignLeft\" class=\"icons icons_left\">\n <tui-svg class=\"icon\" [src]=\"icon\"></tui-svg>\n </div>\n <div class=\"wrapper\">\n <div class=\"absolute-wrapper\">\n <div\n *ngIf=\"hasPlaceholder\"\n automation-id=\"tui-input-tag__placeholder\"\n class=\"placeholder\"\n [class.placeholder_raised]=\"placeholderRaised\"\n >\n <ng-content></ng-content>\n </div>\n </div>\n <tui-scrollbar\n *ngIf=\"!expandable; else items\"\n class=\"scrollbar\"\n [hidden]=\"true\"\n >\n <ng-container *ngTemplateOutlet=\"items\"></ng-container>\n </tui-scrollbar>\n <ng-template #items>\n <div #tagsContainer class=\"tags\">\n <ng-container *ngIf=\"labelOutside; else text\">\n <tui-tag\n *ngFor=\"let item of value; index as index\"\n #tag\n automation-id=\"tui-input-tag__tag\"\n class=\"tag\"\n [status]=\"status\"\n [leftContent]=\"getLeftContent(item)\"\n [allowSpaces]=\"allowSpaces\"\n [tuiFocusable]=\"false\"\n [disabled]=\"computedDisabled || disabledItemHandler(item)\"\n [editable]=\"editable && !readOnly\"\n [hoverable]=\"!readOnly\"\n [removable]=\"!readOnly\"\n [maxLength]=\"controller.maxLength\"\n [size]=\"controller.size\"\n [value]=\"item.toString()\"\n (edited)=\"onTagEdited($event, item)\"\n (keydown.arrowLeft.prevent)=\"onTagKeyDownArrowLeft(index)\"\n (keydown.arrowRight.prevent)=\"onTagKeyDownArrowRight(index)\"\n ></tui-tag>\n </ng-container>\n <ng-template #text>\n <span\n *ngFor=\"let item of value\"\n class=\"text\"\n [class.text_disabled]=\"disabledItemHandler(item)\"\n [class.text_error]=\"!tagValidator(item)\"\n >\n {{ item }}\n </span>\n </ng-template>\n <div\n class=\"input-wrapper\"\n [class.input-wrapper_collapsed]=\"computedDisabled || readOnly || inputHidden\"\n >\n <div class=\"ghost\">{{ search }}</div>\n <input\n #focusableElement\n type=\"text\"\n automation-id=\"tui-input-tag__native\"\n class=\"native\"\n [placeholder]=\"controller.exampleText\"\n [class.native_hidden]=\"inputHidden\"\n [attr.maxLength]=\"controller.maxLength\"\n [id]=\"id\"\n [disabled]=\"computedDisabled\"\n [readOnly]=\"readOnly || inputHidden\"\n [tuiFocusable]=\"computedFocusable\"\n [ngModel]=\"search\"\n (ngModelChange)=\"onInput($event)\"\n (keydown.arrowLeft)=\"onFieldKeyDownArrowLeft($event)\"\n (keydown.backspace)=\"onFieldKeyDownBackspace($event)\"\n (keydown.enter.prevent)=\"onFieldKeyDownEnter()\"\n />\n </div>\n </div>\n </ng-template>\n </div>\n <div *ngIf=\"hasRightIcons\" class=\"icons icons_right\">\n <tui-svg\n *ngIf=\"hasCleaner\"\n #cleaner\n automation-id=\"tui-input-tag__cleaner\"\n src=\"tuiIconCloseLarge\"\n class=\"cleaner\"\n (click.stop)=\"onCleanerClick()\"\n ></tui-svg>\n <tui-tooltip\n *ngIf=\"hasTooltip\"\n automation-id=\"tui-input-tag__tooltip\"\n describeId=\"placeholer_until_accesibility_is_added\"\n class=\"tooltip\"\n [direction]=\"hintController.direction\"\n [mode]=\"hintController.mode\"\n [content]=\"hintController.content\"\n [showDelay]=\"hintController.showDelay\"\n [hideDelay]=\"hintController.hideDelay\"\n ></tui-tooltip>\n <tui-svg\n *ngIf=\"iconAlignRight\"\n class=\"icon\"\n [src]=\"icon\"\n ></tui-svg>\n </div>\n </div>\n <ng-template #errorIcon>\n <tui-svg src=\"tuiIconAttention\" class=\"error-icon\"></tui-svg>\n </ng-template>\n </tui-wrapper>\n</tui-hosted-dropdown>\n",
667
+ template: "<tui-hosted-dropdown\n class=\"hosted\"\n [canOpen]=\"canOpen\"\n [content]=\"datalist || ''\"\n [(open)]=\"open\"\n (tuiActiveZoneChange)=\"onActiveZone($event)\"\n>\n <tui-wrapper\n [appearance]=\"appearance\"\n [readOnly]=\"readOnly\"\n [focused]=\"computedFocused\"\n [hovered]=\"computedHovered\"\n [disabled]=\"computedDisabled\"\n [invalid]=\"computedInvalid\"\n (tuiHoveredChange)=\"onHoveredChange($event)\"\n (mousedown)=\"onMouseDown($event)\"\n >\n <div class=\"content\">\n <div *ngIf=\"iconAlignLeft\" class=\"icons icons_left\">\n <tui-svg class=\"icon\" [src]=\"icon\"></tui-svg>\n </div>\n <div class=\"wrapper\">\n <div class=\"absolute-wrapper\">\n <div\n *ngIf=\"hasPlaceholder\"\n automation-id=\"tui-input-tag__placeholder\"\n class=\"placeholder\"\n [class.placeholder_raised]=\"placeholderRaised\"\n >\n <ng-content></ng-content>\n </div>\n </div>\n <tui-scrollbar\n *ngIf=\"!expandable; else items\"\n class=\"scrollbar\"\n [hidden]=\"true\"\n >\n <ng-container *ngTemplateOutlet=\"items\"></ng-container>\n </tui-scrollbar>\n <ng-template #items>\n <div #tagsContainer class=\"tags\">\n <ng-container *ngIf=\"labelOutside; else text\">\n <tui-tag\n *ngFor=\"let item of value; index as index\"\n #tag\n automation-id=\"tui-input-tag__tag\"\n class=\"tag\"\n [status]=\"status\"\n [leftContent]=\"getLeftContent(item)\"\n [allowSpaces]=\"allowSpaces\"\n [tuiFocusable]=\"false\"\n [disabled]=\"computedDisabled || disabledItemHandler(item)\"\n [editable]=\"editable && !readOnly\"\n [hoverable]=\"!readOnly\"\n [removable]=\"!readOnly\"\n [maxLength]=\"controller.maxLength\"\n [size]=\"controller.size\"\n [value]=\"item.toString()\"\n (edited)=\"onTagEdited($event, item)\"\n (keydown.arrowLeft.prevent)=\"onTagKeyDownArrowLeft(index)\"\n (keydown.arrowRight.prevent)=\"onTagKeyDownArrowRight(index)\"\n ></tui-tag>\n </ng-container>\n <ng-template #text>\n <span\n *ngFor=\"let item of value\"\n class=\"text\"\n [class.text_disabled]=\"disabledItemHandler(item)\"\n [class.text_error]=\"!tagValidator(item)\"\n [innerText]=\"item\"\n ></span>\n </ng-template>\n <div\n class=\"input-wrapper\"\n [class.input-wrapper_collapsed]=\"computedDisabled || readOnly || inputHidden\"\n >\n <div class=\"ghost\">{{ search }}</div>\n <input\n #focusableElement\n type=\"text\"\n automation-id=\"tui-input-tag__native\"\n class=\"native\"\n [placeholder]=\"controller.exampleText\"\n [class.native_hidden]=\"inputHidden\"\n [attr.maxLength]=\"controller.maxLength\"\n [id]=\"id\"\n [disabled]=\"computedDisabled\"\n [readOnly]=\"readOnly || inputHidden\"\n [tuiFocusable]=\"computedFocusable\"\n [ngModel]=\"search\"\n (ngModelChange)=\"onInput($event)\"\n (keydown.arrowLeft)=\"onFieldKeyDownArrowLeft($event)\"\n (keydown.backspace)=\"onFieldKeyDownBackspace($event)\"\n (keydown.enter.prevent)=\"onFieldKeyDownEnter()\"\n />\n </div>\n </div>\n </ng-template>\n </div>\n <div *ngIf=\"hasRightIcons\" class=\"icons icons_right\">\n <tui-svg\n *ngIf=\"hasCleaner\"\n #cleaner\n automation-id=\"tui-input-tag__cleaner\"\n src=\"tuiIconCloseLarge\"\n class=\"cleaner\"\n (click.stop)=\"onCleanerClick()\"\n ></tui-svg>\n <tui-tooltip\n *ngIf=\"hasTooltip\"\n automation-id=\"tui-input-tag__tooltip\"\n describeId=\"placeholer_until_accesibility_is_added\"\n class=\"tooltip\"\n [direction]=\"hintController.direction\"\n [mode]=\"hintController.mode\"\n [content]=\"hintController.content\"\n [showDelay]=\"hintController.showDelay\"\n [hideDelay]=\"hintController.hideDelay\"\n ></tui-tooltip>\n <tui-svg\n *ngIf=\"iconAlignRight\"\n class=\"icon\"\n [src]=\"icon\"\n ></tui-svg>\n </div>\n </div>\n <ng-template #errorIcon>\n <tui-svg src=\"tuiIconAttention\" class=\"error-icon\"></tui-svg>\n </ng-template>\n </tui-wrapper>\n</tui-hosted-dropdown>\n",
668
668
  providers: [
669
669
  {
670
670
  provide: cdk.TUI_FOCUSABLE_ITEM_ACCESSOR,
@@ -678,7 +678,7 @@
678
678
  core$1.TEXTFIELD_CONTROLLER_PROVIDER,
679
679
  core$1.HINT_CONTROLLER_PROVIDER,
680
680
  ],
681
- styles: [":host{font:var(--tui-font-text-s);color:var(--tui-text-01);position:relative;display:block;border-radius:var(--tui-radius-m);text-align:left}:host[data-tui-host-size='s']{height:var(--tui-height-s);min-height:var(--tui-height-s);max-height:var(--tui-height-s)}:host[data-tui-host-size='m']{height:var(--tui-height-m);min-height:var(--tui-height-m);max-height:var(--tui-height-m)}:host[data-tui-host-size='l']{height:var(--tui-height-l);min-height:var(--tui-height-l);max-height:var(--tui-height-l);font-size:.9375rem}.input{font:var(--tui-font-text-s);color:var(--tui-text-01);padding:0;border:0 solid transparent;border-radius:inherit;background:0 0;font-size:inherit;line-height:inherit;font-weight:inherit;color:inherit;caret-color:currentColor;outline:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;word-break:keep-all;-webkit-text-fill-color:currentColor;position:absolute;top:0;left:0;width:100%;height:100%;padding:0 var(--tui-padding-m);text-align:inherit;box-sizing:border-box;white-space:nowrap;overflow:hidden;text-transform:inherit}.input:-webkit-autofill,.input:-webkit-autofill:focus,.input:-webkit-autofill:hover{border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01)!important;border-color:var(--tui-autofill);-webkit-box-shadow:0 0 0 1000px var(--tui-autofill) inset!important}:host[data-mode=onDark] .input:-webkit-autofill,:host[data-mode=onDark] .input:-webkit-autofill:focus,:host[data-mode=onDark] .input:-webkit-autofill:hover{border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01-night)!important;border-color:var(--tui-autofill-night);-webkit-box-shadow:0 0 0 1000px var(--tui-autofill-night) inset!important}:host[data-tui-host-size='s'] .input{padding:0 var(--tui-padding-s)}:host[data-tui-host-size='l'] .input{padding:0 var(--tui-padding-l)}:host._disabled .input{pointer-events:none}:host._right-aligned .input{text-align:right}:host[data-tui-host-size='l']:not(._label-outside) .input{padding-top:1.25rem}:host[data-tui-host-size='l']:not(._label-outside) .input:-webkit-autofill+.content .placeholder{font-size:.8156rem;transform:translateY(-.625rem)}:host[data-tui-host-size='m']:not(._label-outside) .input{padding-top:1.125rem}:host[data-tui-host-size='m']:not(._label-outside) .input:-webkit-autofill+.content .placeholder{font-size:.69rem;transform:translateY(-.5rem)}.filler{vertical-align:middle}.content{display:flex;height:100%;width:100%;padding:0 var(--tui-padding-m);box-sizing:border-box;align-items:center;overflow:hidden}:host[data-tui-host-size='s'] .content{padding:0 var(--tui-padding-s)}:host[data-tui-host-size='l'] .content{padding:0 var(--tui-padding-l)}.content:after{content:'';margin-right:-.25rem}:host[data-tui-host-size='m'] .content:after{display:none}.wrapper{flex:1;min-width:0;-webkit-padding-end:.25rem;padding-inline-end:.25rem;-webkit-padding-start:0;padding-inline-start:0}.placeholder{transition-property:transform,font-size,color,letter-spacing;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;font:var(--tui-font-text-s);color:var(--tui-text-01);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;width:100%;font-size:.8125rem;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;color:var(--tui-text-02);pointer-events:none}.placeholder_raised{transform:translateY(-.625rem)}:host[data-tui-host-size='m'] .placeholder_raised{font-size:.69rem;transform:translateY(-.5rem);letter-spacing:.025rem}:host._invalid:not(._focused) .placeholder_raised,:host._invalid:not(._focused)._hovered .placeholder_raised{color:var(--tui-error-fill)}:host[data-mode=onDark]._invalid:not(._focused) .placeholder_raised,:host[data-mode=onDark]._invalid:not(._focused)._hovered .placeholder_raised{color:var(--tui-error-fill-night)}:host._focused .placeholder,:host[data-tui-host-size='l']._focused._label-outside .placeholder,:host[data-tui-host-size='m']._focused._label-outside .placeholder{color:var(--tui-text-03)}:host[data-tui-host-size='l'] .placeholder{font-size:.9375rem}:host[data-tui-host-size='l'] .placeholder_raised{font-size:.8156rem}:host[data-tui-host-size='l']._focused:not(._label-outside) .placeholder,:host[data-tui-host-size='m']._focused:not(._label-outside) .placeholder{color:var(--tui-text-01)}:host[data-mode=onDark] .placeholder{color:var(--tui-text-02-night)}:host[data-tui-host-size='l'][data-mode=onDark]._focused:not(._label-outside) .placeholder,:host[data-tui-host-size='m'][data-mode=onDark]._focused:not(._label-outside) .placeholder{color:var(--tui-text-01-night)}:host[data-mode=onDark]._focused .placeholder,:host[data-tui-host-size='l'][data-mode=onDark]._focused._label-outside .placeholder,:host[data-tui-host-size='m'][data-mode=onDark]._focused._label-outside .placeholder{color:var(--tui-text-02-night)}@supports (-webkit-hyphens:none){.placeholder{transition-property:transform,color,letter-spacing}}.cleaner{transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;display:flex;width:1.5rem;height:1.5rem;align-items:center;justify-content:center;color:var(--tui-text-03);position:relative;box-sizing:border-box;cursor:pointer;transition-property:color,transform}.cleaner:hover{color:var(--tui-text-02)}:host._disabled .cleaner,:host._readonly .cleaner{pointer-events:none}:host[data-mode=onDark] .cleaner{color:var(--tui-text-03-night)}:host[data-mode=onDark] .cleaner:hover{color:var(--tui-text-01-night)}.icon{display:flex;width:1.5rem;height:1.5rem;align-items:center;justify-content:center;color:var(--tui-text-03)}:host[data-mode=onDark] .icon{color:var(--tui-text-03-night)}.icon_left{margin:0 .5rem 0 -.25rem;-webkit-margin-start:-.25rem;margin-inline-start:-.25rem;-webkit-margin-end:.5rem;margin-inline-end:.5rem}:host[data-tui-host-size='s'] .icon_left{margin-right:.25rem;-webkit-margin-end:.25rem;margin-inline-end:.25rem}:host{cursor:text}:host._expandable{height:auto;max-height:none}:host._disabled{pointer-events:none}:host._readonly{cursor:default}.hosted{display:block;border-radius:inherit}.scrollbar{margin:0 -.25rem;padding:0 .25rem}.tags{display:flex;align-items:center;box-sizing:border-box}:host._expandable .tags{flex-wrap:wrap;white-space:normal}:host._readonly .tags{pointer-events:none}:host[data-tui-host-size='s'] .tags{min-height:var(--tui-height-s);padding:.25rem .25rem .25rem 0}:host[data-tui-host-size='m'] .tags{min-height:var(--tui-height-m);padding:.5rem .25rem .5rem 0}:host[data-tui-host-size='l'] .tags{min-height:var(--tui-height-l);padding:.625rem .25rem .625rem 0}:host[data-tui-host-size='m']:not(._label-outside) .tags{padding:1.1875rem 1rem 0 0}:host[data-tui-host-size='l']:not(._label-outside) .tags{padding:1.6875rem 1rem .5625rem 0}.tags :host[data-tui-host-size]{-webkit-padding-start:0;padding-inline-start:0;-webkit-padding-end:.25rem;padding-inline-end:.25rem}:host[data-tui-host-size]:not(._label-outside) .tags{-webkit-padding-end:1rem;padding-inline-end:1rem}.content{align-items:flex-start}.icons{display:flex;align-items:center;padding:0 0 0 .75rem;-webkit-padding-start:.75rem;padding-inline-start:.75rem;-webkit-padding-end:0;padding-inline-end:0}.icons_left{padding:0;margin:0 .5rem 0 -.25rem;-webkit-margin-start:-.25rem;margin-inline-start:-.25rem;-webkit-margin-end:.5rem;margin-inline-end:.5rem}:host._expandable .icons_right{margin:0 0 0 -.625rem;-webkit-margin-start:-.625rem;margin-inline-start:-.625rem;-webkit-margin-end:0;margin-inline-end:0}:host[data-tui-host-size='s'] .icons{height:var(--tui-height-s)}:host[data-tui-host-size='m'] .icons{height:var(--tui-height-m)}:host[data-tui-host-size='l'] .icons{height:var(--tui-height-l)}.absolute-wrapper{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;flex-direction:column;justify-content:center}:host[data-tui-host-size='m'] .absolute-wrapper{height:var(--tui-height-m)}:host[data-tui-host-size='l'] .absolute-wrapper{height:var(--tui-height-l)}.wrapper{position:relative;padding:0}.tag{margin:.125rem .5rem .125rem -.25rem;-webkit-margin-start:-.25rem;margin-inline-start:-.25rem;-webkit-margin-end:.5rem;margin-inline-end:.5rem;max-width:100%;flex-shrink:0}.text:after{content:',\\00a0'}.text_disabled{color:var(--tui-text-03)}.text_error{color:var(--tui-negative)}:host:not(._expandable) .text{white-space:nowrap}:host:not(:focus-within) .text:last-of-type:after{content:''}.input-wrapper{position:relative;flex:1;max-width:100%}.input-wrapper_collapsed{flex:0;margin:0 0 0 -.5rem;-webkit-margin-start:-.5rem;margin-inline-start:-.5rem;-webkit-margin-end:0;margin-inline-end:0}:host[data-tui-host-size='s'] .input-wrapper{min-height:1.5rem}:host[data-tui-host-size='m'] .input-wrapper{min-height:calc(var(--tui-height-xs) + 2 * .125rem)}:host[data-tui-host-size='l'] .input-wrapper{min-height:calc(var(--tui-height-s) + 2 * .125rem)}:host:not(._label-outside) .input-wrapper{min-height:1.25rem}.ghost{visibility:hidden;white-space:pre;text-overflow:clip;min-width:.125rem}:host:not(._expandable) .ghost{min-width:2rem}.native{border:0;border-radius:inherit;background:0 0;font-size:inherit;line-height:inherit;font-weight:inherit;color:inherit;caret-color:currentColor;outline:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;word-break:keep-all;-webkit-text-fill-color:currentColor;position:absolute;top:0;left:0;width:100%;height:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;box-sizing:border-box;padding:0;cursor:inherit}.native:-webkit-autofill,.native:-webkit-autofill:focus,.native:-webkit-autofill:hover{border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01)!important;border-color:var(--tui-autofill);-webkit-box-shadow:0 0 0 1000px var(--tui-autofill) inset!important}.native_hidden{opacity:0;text-indent:-10em}.native::-moz-placeholder{color:var(--tui-text-03);opacity:0}.native:-ms-input-placeholder{color:var(--tui-text-03);opacity:0}.native::placeholder{color:var(--tui-text-03);opacity:0}:host[data-mode=onDark] .native::-moz-placeholder{color:var(--tui-text-03-night)}:host[data-mode=onDark] .native:-ms-input-placeholder{color:var(--tui-text-03-night)}:host[data-mode=onDark] .native::placeholder{color:var(--tui-text-03-night)}:host._focused .native:not(:read-only)::-moz-placeholder{opacity:1}:host._focused .native:not(:read-only):-ms-input-placeholder{opacity:1}:host._focused .native:not(:-moz-read-only)::placeholder{opacity:1}:host._focused .native:not(:read-only)::placeholder{opacity:1}.error-icon{display:block;color:var(--tui-error-fill);width:1rem;height:1rem}"]
681
+ styles: [":host{font:var(--tui-font-text-s);color:var(--tui-text-01);position:relative;display:block;border-radius:var(--tui-radius-m);text-align:left}:host[data-size='s']{height:var(--tui-height-s);min-height:var(--tui-height-s);max-height:var(--tui-height-s)}:host[data-size='m']{height:var(--tui-height-m);min-height:var(--tui-height-m);max-height:var(--tui-height-m)}:host[data-size='l']{height:var(--tui-height-l);min-height:var(--tui-height-l);max-height:var(--tui-height-l);font-size:.9375rem}.input{font:var(--tui-font-text-s);color:var(--tui-text-01);padding:0;border:0 solid transparent;border-radius:inherit;background:0 0;font-size:inherit;line-height:inherit;font-weight:inherit;color:inherit;caret-color:currentColor;outline:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;word-break:keep-all;-webkit-text-fill-color:currentColor;position:absolute;top:0;left:0;width:100%;height:100%;padding:0 var(--tui-padding-m);border-width:0 var(--border-end) 0 var(--border-start);border-inline-start-width:var(--border-start);border-inline-end-width:var(--border-end);text-indent:var(--text-indent);text-align:inherit;box-sizing:border-box;white-space:nowrap;overflow:hidden;text-transform:inherit}.input:-webkit-autofill,.input:-webkit-autofill:focus,.input:-webkit-autofill:hover{border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01)!important;border-color:var(--tui-autofill);-webkit-box-shadow:0 0 0 1000px var(--tui-autofill) inset!important}.input :host-context(tui-primitive-textfield[data-mode=onDark]):-webkit-autofill,.input :host-context(tui-primitive-textfield[data-mode=onDark]):-webkit-autofill:focus,.input :host-context(tui-primitive-textfield[data-mode=onDark]):-webkit-autofill:hover,:host[data-mode=onDark] .input:-webkit-autofill,:host[data-mode=onDark] .input:-webkit-autofill:focus,:host[data-mode=onDark] .input:-webkit-autofill:hover{border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01-night)!important;border-color:var(--tui-autofill-night);-webkit-box-shadow:0 0 0 1000px var(--tui-autofill-night) inset!important}.input :host-context(tui-primitive-textfield[data-size='s']):not(tui-primitive-textfield),:host[data-size='s'] .input{padding:0 var(--tui-padding-s)}.input :host-context(tui-primitive-textfield[data-size='l']):not(tui-primitive-textfield),:host[data-size='l'] .input{padding:0 var(--tui-padding-l)}.input :host-context(tui-primitive-textfield._disabled),:host._disabled .input{pointer-events:none}.input :host-context(tui-primitive-textfield[data-size='l']:not(._label-outside)):not(tui-primitive-textfield),:host[data-size='l']:not(._label-outside) .input{padding-top:1.25rem}.input :host-context(tui-primitive-textfield[data-size='l']:not(._label-outside)):not(tui-primitive-textfield):-webkit-autofill+.content .placeholder,:host[data-size='l']:not(._label-outside) .input:-webkit-autofill+.content .placeholder{font-size:.8156rem;transform:translateY(-.625rem)}.input :host-context(tui-primitive-textfield[data-size='m']:not(._label-outside)):not(tui-primitive-textfield),:host[data-size='m']:not(._label-outside) .input{padding-top:1.125rem}.input :host-context(tui-primitive-textfield[data-size='m']:not(._label-outside)):not(tui-primitive-textfield):-webkit-autofill+.content .placeholder,:host[data-size='m']:not(._label-outside) .input:-webkit-autofill+.content .placeholder{font-size:.69rem;transform:translateY(-.5rem)}.input :host-context(tui-primitive-textfield._hidden),:host._hidden input.input{opacity:0;text-indent:-10em;-webkit-user-select:none}.filler{vertical-align:middle}.content{display:flex;height:100%;width:100%;padding:0 var(--tui-padding-m);box-sizing:border-box;align-items:center;overflow:hidden}:host[data-size='s'] .content{padding:0 var(--tui-padding-s)}:host[data-size='l'] .content{padding:0 var(--tui-padding-l)}.content:after{content:'';margin-right:-.25rem}:host[data-size='m'] .content:after{display:none}.wrapper{flex:1;min-width:0;-webkit-padding-end:.25rem;padding-inline-end:.25rem;-webkit-padding-start:0;padding-inline-start:0}.placeholder{transition-property:transform,font-size,color,letter-spacing;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;font:var(--tui-font-text-s);color:var(--tui-text-01);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;width:100%;font-size:.8125rem;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;color:var(--tui-text-02);pointer-events:none}.placeholder_raised{transform:translateY(-.625rem)}:host[data-size='m'] .placeholder_raised{font-size:.69rem;transform:translateY(-.5rem);letter-spacing:.025rem}:host._invalid:not(._focused) .placeholder_raised,:host._invalid:not(._focused)._hovered .placeholder_raised{color:var(--tui-error-fill)}:host[data-mode=onDark]._invalid:not(._focused) .placeholder_raised,:host[data-mode=onDark]._invalid:not(._focused)._hovered .placeholder_raised{color:var(--tui-error-fill-night)}:host._focused .placeholder,:host[data-size='l']._focused._label-outside .placeholder,:host[data-size='m']._focused._label-outside .placeholder{color:var(--tui-text-03)}:host[data-size='l'] .placeholder{font-size:.9375rem}:host[data-size='l'] .placeholder_raised{font-size:.8156rem}:host[data-size='l']._focused:not(._label-outside) .placeholder,:host[data-size='m']._focused:not(._label-outside) .placeholder{color:var(--tui-text-01)}:host[data-mode=onDark] .placeholder{color:var(--tui-text-02-night)}:host[data-size='l'][data-mode=onDark]._focused:not(._label-outside) .placeholder,:host[data-size='m'][data-mode=onDark]._focused:not(._label-outside) .placeholder{color:var(--tui-text-01-night)}:host[data-mode=onDark]._focused .placeholder,:host[data-size='l'][data-mode=onDark]._focused._label-outside .placeholder,:host[data-size='m'][data-mode=onDark]._focused._label-outside .placeholder{color:var(--tui-text-02-night)}@supports (-webkit-hyphens:none){.placeholder{transition-property:transform,color,letter-spacing}}.cleaner{transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;display:flex;width:1.5rem;height:1.5rem;align-items:center;justify-content:center;color:var(--tui-text-03);position:relative;box-sizing:border-box;cursor:pointer;transition-property:color,transform}.cleaner:hover{color:var(--tui-text-02)}:host._disabled .cleaner,:host._readonly .cleaner{pointer-events:none}:host[data-mode=onDark] .cleaner{color:var(--tui-text-03-night)}:host[data-mode=onDark] .cleaner:hover{color:var(--tui-text-01-night)}.icon{display:flex;width:1.5rem;height:1.5rem;align-items:center;justify-content:center;color:var(--tui-text-03)}:host[data-mode=onDark] .icon{color:var(--tui-text-03-night)}.icon_left{margin:0 .5rem 0 -.25rem;-webkit-margin-start:-.25rem;margin-inline-start:-.25rem;-webkit-margin-end:.5rem;margin-inline-end:.5rem}:host[data-size='s'] .icon_left{margin-right:.25rem;-webkit-margin-end:.25rem;margin-inline-end:.25rem}:host{cursor:text}:host._expandable{height:auto;max-height:none}:host._disabled{pointer-events:none}:host._readonly{cursor:default}.hosted{display:block;border-radius:inherit}.scrollbar{margin:0 -.25rem;padding:0 .25rem}.tags{display:flex;align-items:center;box-sizing:border-box}:host._expandable .tags{flex-wrap:wrap;white-space:normal}:host._readonly .tags{pointer-events:none}:host[data-tui-host-size='s'] .tags{min-height:var(--tui-height-s);padding:.25rem .25rem .25rem 0}:host[data-tui-host-size='m'] .tags{min-height:var(--tui-height-m);padding:.5rem .25rem .5rem 0}:host[data-tui-host-size='l'] .tags{min-height:var(--tui-height-l);padding:.625rem .25rem .625rem 0}:host[data-tui-host-size='m']:not(._label-outside) .tags{padding:1.1875rem 1rem 0 0}:host[data-tui-host-size='l']:not(._label-outside) .tags{padding:1.6875rem 1rem .5625rem 0}.tags :host[data-tui-host-size]{-webkit-padding-start:0;padding-inline-start:0;-webkit-padding-end:.25rem;padding-inline-end:.25rem}:host[data-tui-host-size]:not(._label-outside) .tags{-webkit-padding-end:1rem;padding-inline-end:1rem}.content{align-items:flex-start}.icons{display:flex;align-items:center;padding:0 0 0 .75rem;-webkit-padding-start:.75rem;padding-inline-start:.75rem;-webkit-padding-end:0;padding-inline-end:0}.icons_left{padding:0;margin:0 .5rem 0 -.25rem;-webkit-margin-start:-.25rem;margin-inline-start:-.25rem;-webkit-margin-end:.5rem;margin-inline-end:.5rem}:host._expandable .icons_right{margin:0 0 0 -.625rem;-webkit-margin-start:-.625rem;margin-inline-start:-.625rem;-webkit-margin-end:0;margin-inline-end:0}:host[data-tui-host-size='s'] .icons{height:var(--tui-height-s)}:host[data-tui-host-size='m'] .icons{height:var(--tui-height-m)}:host[data-tui-host-size='l'] .icons{height:var(--tui-height-l)}.absolute-wrapper{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;flex-direction:column;justify-content:center}:host[data-tui-host-size='m'] .absolute-wrapper{height:var(--tui-height-m)}:host[data-tui-host-size='l'] .absolute-wrapper{height:var(--tui-height-l)}.wrapper{position:relative;padding:0}.tag{margin:.125rem .5rem .125rem -.25rem;-webkit-margin-start:-.25rem;margin-inline-start:-.25rem;-webkit-margin-end:.5rem;margin-inline-end:.5rem;max-width:100%;flex-shrink:0}.text:after{content:',\\00a0'}.text_disabled{color:var(--tui-text-03)}.text_error{color:var(--tui-negative)}:host:not(._expandable) .text{white-space:nowrap}:host:not(:focus-within) .text:last-of-type:after{content:''}.input-wrapper{position:relative;flex:1;max-width:100%}.input-wrapper_collapsed{flex:0;margin:0 0 0 -.5rem;-webkit-margin-start:-.5rem;margin-inline-start:-.5rem;-webkit-margin-end:0;margin-inline-end:0}:host[data-tui-host-size='s'] .input-wrapper{min-height:1.5rem}:host[data-tui-host-size='m'] .input-wrapper{min-height:calc(var(--tui-height-xs) + 2 * .125rem)}:host[data-tui-host-size='l'] .input-wrapper{min-height:calc(var(--tui-height-s) + 2 * .125rem)}:host:not(._label-outside) .input-wrapper{min-height:1.25rem}.ghost{visibility:hidden;white-space:pre;text-overflow:clip;min-width:.125rem}:host:not(._expandable) .ghost{min-width:2rem}.native{border:0;border-radius:inherit;background:0 0;font-size:inherit;line-height:inherit;font-weight:inherit;color:inherit;caret-color:currentColor;outline:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;word-break:keep-all;-webkit-text-fill-color:currentColor;position:absolute;top:0;left:0;width:100%;height:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;box-sizing:border-box;padding:0;cursor:inherit}.native:-webkit-autofill,.native:-webkit-autofill:focus,.native:-webkit-autofill:hover{border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01)!important;border-color:var(--tui-autofill);-webkit-box-shadow:0 0 0 1000px var(--tui-autofill) inset!important}.native_hidden{opacity:0;text-indent:-10em}.native::-ms-input-placeholder{color:var(--tui-text-03);opacity:0}.native::placeholder{color:var(--tui-text-03);opacity:0}:host[data-mode=onDark] .native::-ms-input-placeholder{color:var(--tui-text-03-night)}:host[data-mode=onDark] .native::placeholder{color:var(--tui-text-03-night)}:host._focused .native:not(:read-only)::-ms-input-placeholder{opacity:1}:host._focused .native:not(:-moz-read-only)::placeholder{opacity:1}:host._focused .native:not(:read-only)::placeholder{opacity:1}.error-icon{display:block;color:var(--tui-error-fill);width:1rem;height:1rem}"]
682
682
  }),
683
683
  __param(0, core.Optional()),
684
684
  __param(0, core.Self()),