@taiga-ui/kit 3.60.0 → 3.61.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 (338) hide show
  1. package/bundles/taiga-ui-kit-abstract.umd.js +1 -1
  2. package/bundles/taiga-ui-kit-abstract.umd.js.map +1 -1
  3. package/bundles/taiga-ui-kit-components-accordion.umd.js +628 -774
  4. package/bundles/taiga-ui-kit-components-accordion.umd.js.map +1 -1
  5. package/bundles/taiga-ui-kit-components-action.umd.js +452 -598
  6. package/bundles/taiga-ui-kit-components-action.umd.js.map +1 -1
  7. package/bundles/taiga-ui-kit-components-arrow.umd.js +2 -2
  8. package/bundles/taiga-ui-kit-components-arrow.umd.js.map +1 -1
  9. package/bundles/taiga-ui-kit-components-avatar.umd.js +494 -640
  10. package/bundles/taiga-ui-kit-components-avatar.umd.js.map +1 -1
  11. package/bundles/taiga-ui-kit-components-breadcrumbs.umd.js +417 -563
  12. package/bundles/taiga-ui-kit-components-breadcrumbs.umd.js.map +1 -1
  13. package/bundles/taiga-ui-kit-components-calendar-month.umd.js +601 -747
  14. package/bundles/taiga-ui-kit-components-calendar-month.umd.js.map +1 -1
  15. package/bundles/taiga-ui-kit-components-calendar-range.umd.js +572 -718
  16. package/bundles/taiga-ui-kit-components-calendar-range.umd.js.map +1 -1
  17. package/bundles/taiga-ui-kit-components-carousel.umd.js +675 -821
  18. package/bundles/taiga-ui-kit-components-carousel.umd.js.map +1 -1
  19. package/bundles/taiga-ui-kit-components-checkbox-block.umd.js +499 -645
  20. package/bundles/taiga-ui-kit-components-checkbox-block.umd.js.map +1 -1
  21. package/bundles/taiga-ui-kit-components-checkbox-labeled.umd.js +439 -585
  22. package/bundles/taiga-ui-kit-components-checkbox-labeled.umd.js.map +1 -1
  23. package/bundles/taiga-ui-kit-components-checkbox.umd.js +462 -608
  24. package/bundles/taiga-ui-kit-components-checkbox.umd.js.map +1 -1
  25. package/bundles/taiga-ui-kit-components-combo-box.umd.js +688 -834
  26. package/bundles/taiga-ui-kit-components-combo-box.umd.js.map +1 -1
  27. package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.js +510 -656
  28. package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.js.map +1 -1
  29. package/bundles/taiga-ui-kit-components-elastic-container.umd.js +441 -587
  30. package/bundles/taiga-ui-kit-components-elastic-container.umd.js.map +1 -1
  31. package/bundles/taiga-ui-kit-components-files.umd.js +662 -808
  32. package/bundles/taiga-ui-kit-components-files.umd.js.map +1 -1
  33. package/bundles/taiga-ui-kit-components-filter.umd.js +461 -607
  34. package/bundles/taiga-ui-kit-components-filter.umd.js.map +1 -1
  35. package/bundles/taiga-ui-kit-components-input-copy.umd.js +554 -700
  36. package/bundles/taiga-ui-kit-components-input-copy.umd.js.map +1 -1
  37. package/bundles/taiga-ui-kit-components-input-count.umd.js +663 -809
  38. package/bundles/taiga-ui-kit-components-input-count.umd.js.map +1 -1
  39. package/bundles/taiga-ui-kit-components-input-date-multi.umd.js +703 -849
  40. package/bundles/taiga-ui-kit-components-input-date-multi.umd.js.map +1 -1
  41. package/bundles/taiga-ui-kit-components-input-date-range.umd.js +827 -973
  42. package/bundles/taiga-ui-kit-components-input-date-range.umd.js.map +1 -1
  43. package/bundles/taiga-ui-kit-components-input-date-time.umd.js +880 -1026
  44. package/bundles/taiga-ui-kit-components-input-date-time.umd.js.map +1 -1
  45. package/bundles/taiga-ui-kit-components-input-date.umd.js +830 -976
  46. package/bundles/taiga-ui-kit-components-input-date.umd.js.map +1 -1
  47. package/bundles/taiga-ui-kit-components-input-files.umd.js +829 -975
  48. package/bundles/taiga-ui-kit-components-input-files.umd.js.map +1 -1
  49. package/bundles/taiga-ui-kit-components-input-inline.umd.js +466 -612
  50. package/bundles/taiga-ui-kit-components-input-inline.umd.js.map +1 -1
  51. package/bundles/taiga-ui-kit-components-input-month-range.umd.js +609 -755
  52. package/bundles/taiga-ui-kit-components-input-month-range.umd.js.map +1 -1
  53. package/bundles/taiga-ui-kit-components-input-month.umd.js +642 -788
  54. package/bundles/taiga-ui-kit-components-input-month.umd.js.map +1 -1
  55. package/bundles/taiga-ui-kit-components-input-number.umd.js +795 -941
  56. package/bundles/taiga-ui-kit-components-input-number.umd.js.map +1 -1
  57. package/bundles/taiga-ui-kit-components-input-password.umd.js +574 -720
  58. package/bundles/taiga-ui-kit-components-input-password.umd.js.map +1 -1
  59. package/bundles/taiga-ui-kit-components-input-phone-international.umd.js +665 -811
  60. package/bundles/taiga-ui-kit-components-input-phone-international.umd.js.map +1 -1
  61. package/bundles/taiga-ui-kit-components-input-phone.umd.js +767 -913
  62. package/bundles/taiga-ui-kit-components-input-phone.umd.js.map +1 -1
  63. package/bundles/taiga-ui-kit-components-input-range.umd.js +650 -796
  64. package/bundles/taiga-ui-kit-components-input-range.umd.js.map +1 -1
  65. package/bundles/taiga-ui-kit-components-input-slider.umd.js +591 -737
  66. package/bundles/taiga-ui-kit-components-input-slider.umd.js.map +1 -1
  67. package/bundles/taiga-ui-kit-components-input-tag.umd.js +956 -1102
  68. package/bundles/taiga-ui-kit-components-input-tag.umd.js.map +1 -1
  69. package/bundles/taiga-ui-kit-components-input-time.umd.js +875 -1021
  70. package/bundles/taiga-ui-kit-components-input-time.umd.js.map +1 -1
  71. package/bundles/taiga-ui-kit-components-input-year.umd.js +560 -706
  72. package/bundles/taiga-ui-kit-components-input-year.umd.js.map +1 -1
  73. package/bundles/taiga-ui-kit-components-input.umd.js +515 -661
  74. package/bundles/taiga-ui-kit-components-input.umd.js.map +1 -1
  75. package/bundles/taiga-ui-kit-components-items-with-more.umd.js +543 -689
  76. package/bundles/taiga-ui-kit-components-items-with-more.umd.js.map +1 -1
  77. package/bundles/taiga-ui-kit-components-line-clamp.umd.js +596 -742
  78. package/bundles/taiga-ui-kit-components-line-clamp.umd.js.map +1 -1
  79. package/bundles/taiga-ui-kit-components-multi-select-option.umd.js +398 -544
  80. package/bundles/taiga-ui-kit-components-multi-select-option.umd.js.map +1 -1
  81. package/bundles/taiga-ui-kit-components-multi-select.umd.js +1191 -1337
  82. package/bundles/taiga-ui-kit-components-multi-select.umd.js.map +1 -1
  83. package/bundles/taiga-ui-kit-components-pagination.umd.js +664 -810
  84. package/bundles/taiga-ui-kit-components-pagination.umd.js.map +1 -1
  85. package/bundles/taiga-ui-kit-components-pdf-viewer.umd.js +10 -156
  86. package/bundles/taiga-ui-kit-components-pdf-viewer.umd.js.map +1 -1
  87. package/bundles/taiga-ui-kit-components-progress.umd.js +6 -152
  88. package/bundles/taiga-ui-kit-components-progress.umd.js.map +1 -1
  89. package/bundles/taiga-ui-kit-components-push.umd.js +14 -160
  90. package/bundles/taiga-ui-kit-components-push.umd.js.map +1 -1
  91. package/bundles/taiga-ui-kit-components-radio-block.umd.js +499 -645
  92. package/bundles/taiga-ui-kit-components-radio-block.umd.js.map +1 -1
  93. package/bundles/taiga-ui-kit-components-radio-labeled.umd.js +470 -616
  94. package/bundles/taiga-ui-kit-components-radio-labeled.umd.js.map +1 -1
  95. package/bundles/taiga-ui-kit-components-radio-list.umd.js +482 -628
  96. package/bundles/taiga-ui-kit-components-radio-list.umd.js.map +1 -1
  97. package/bundles/taiga-ui-kit-components-radio.umd.js +543 -689
  98. package/bundles/taiga-ui-kit-components-radio.umd.js.map +1 -1
  99. package/bundles/taiga-ui-kit-components-range.umd.js +665 -811
  100. package/bundles/taiga-ui-kit-components-range.umd.js.map +1 -1
  101. package/bundles/taiga-ui-kit-components-rating.umd.js +500 -646
  102. package/bundles/taiga-ui-kit-components-rating.umd.js.map +1 -1
  103. package/bundles/taiga-ui-kit-components-routable-dialog.umd.js +434 -580
  104. package/bundles/taiga-ui-kit-components-routable-dialog.umd.js.map +1 -1
  105. package/bundles/taiga-ui-kit-components-select.umd.js +787 -933
  106. package/bundles/taiga-ui-kit-components-select.umd.js.map +1 -1
  107. package/bundles/taiga-ui-kit-components-slider.umd.js +797 -943
  108. package/bundles/taiga-ui-kit-components-slider.umd.js.map +1 -1
  109. package/bundles/taiga-ui-kit-components-stepper.umd.js +623 -769
  110. package/bundles/taiga-ui-kit-components-stepper.umd.js.map +1 -1
  111. package/bundles/taiga-ui-kit-components-tabs.umd.js +12 -158
  112. package/bundles/taiga-ui-kit-components-tabs.umd.js.map +1 -1
  113. package/bundles/taiga-ui-kit-components-tag.umd.js +2 -2
  114. package/bundles/taiga-ui-kit-components-tag.umd.js.map +1 -1
  115. package/bundles/taiga-ui-kit-components-textarea.umd.js +820 -966
  116. package/bundles/taiga-ui-kit-components-textarea.umd.js.map +1 -1
  117. package/bundles/taiga-ui-kit-components-tiles.umd.js +693 -839
  118. package/bundles/taiga-ui-kit-components-tiles.umd.js.map +1 -1
  119. package/bundles/taiga-ui-kit-components-toggle.umd.js +565 -711
  120. package/bundles/taiga-ui-kit-components-toggle.umd.js.map +1 -1
  121. package/bundles/taiga-ui-kit-components-tree.umd.js +4 -4
  122. package/bundles/taiga-ui-kit-components-tree.umd.js.map +1 -1
  123. package/bundles/taiga-ui-kit-constants.umd.js +24 -170
  124. package/bundles/taiga-ui-kit-constants.umd.js.map +1 -1
  125. package/bundles/taiga-ui-kit-directives-data-list-dropdown-manager.umd.js +491 -637
  126. package/bundles/taiga-ui-kit-directives-data-list-dropdown-manager.umd.js.map +1 -1
  127. package/bundles/taiga-ui-kit-directives-lazy-loading.umd.js +459 -605
  128. package/bundles/taiga-ui-kit-directives-lazy-loading.umd.js.map +1 -1
  129. package/bundles/taiga-ui-kit-directives-unmask-handler.umd.js +394 -540
  130. package/bundles/taiga-ui-kit-directives-unmask-handler.umd.js.map +1 -1
  131. package/bundles/taiga-ui-kit-pipes-field-error.umd.js +547 -693
  132. package/bundles/taiga-ui-kit-pipes-field-error.umd.js.map +1 -1
  133. package/bundles/taiga-ui-kit-pipes-filter-by-input.umd.js +470 -616
  134. package/bundles/taiga-ui-kit-pipes-filter-by-input.umd.js.map +1 -1
  135. package/bundles/taiga-ui-kit-pipes-iso-to-country-code.umd.js +1 -1
  136. package/bundles/taiga-ui-kit-pipes-iso-to-country-code.umd.js.map +1 -1
  137. package/bundles/taiga-ui-kit-pipes-sort-countries.umd.js +378 -524
  138. package/bundles/taiga-ui-kit-pipes-sort-countries.umd.js.map +1 -1
  139. package/bundles/taiga-ui-kit-pipes-stringify-content.umd.js +1 -1
  140. package/bundles/taiga-ui-kit-pipes-stringify-content.umd.js.map +1 -1
  141. package/bundles/taiga-ui-kit-pipes-stringify.umd.js +2 -2
  142. package/bundles/taiga-ui-kit-pipes-stringify.umd.js.map +1 -1
  143. package/bundles/taiga-ui-kit-pipes-to-country-code.umd.js +2 -2
  144. package/bundles/taiga-ui-kit-pipes-to-country-code.umd.js.map +1 -1
  145. package/bundles/taiga-ui-kit-pipes-to-year.umd.js +1 -1
  146. package/bundles/taiga-ui-kit-pipes-to-year.umd.js.map +1 -1
  147. package/bundles/taiga-ui-kit-providers.umd.js +3 -3
  148. package/bundles/taiga-ui-kit-providers.umd.js.map +1 -1
  149. package/bundles/taiga-ui-kit-services.umd.js +1 -1
  150. package/bundles/taiga-ui-kit-services.umd.js.map +1 -1
  151. package/bundles/taiga-ui-kit-tokens.umd.js +243 -243
  152. package/bundles/taiga-ui-kit-tokens.umd.js.map +1 -1
  153. package/bundles/taiga-ui-kit-utils-files.umd.js +2 -2
  154. package/bundles/taiga-ui-kit-utils-files.umd.js.map +1 -1
  155. package/bundles/taiga-ui-kit-utils-format.umd.js +2 -2
  156. package/bundles/taiga-ui-kit-utils-format.umd.js.map +1 -1
  157. package/bundles/taiga-ui-kit-utils-mask.umd.js +17 -163
  158. package/bundles/taiga-ui-kit-utils-mask.umd.js.map +1 -1
  159. package/bundles/taiga-ui-kit-utils-math.umd.js +8 -154
  160. package/bundles/taiga-ui-kit-utils-math.umd.js.map +1 -1
  161. package/bundles/taiga-ui-kit-utils-miscellaneous.umd.js +13 -159
  162. package/bundles/taiga-ui-kit-utils-miscellaneous.umd.js.map +1 -1
  163. package/bundles/taiga-ui-kit-utils-phone.umd.js +2 -2
  164. package/bundles/taiga-ui-kit-utils-phone.umd.js.map +1 -1
  165. package/bundles/taiga-ui-kit-validators.umd.js +1 -1
  166. package/bundles/taiga-ui-kit-validators.umd.js.map +1 -1
  167. package/esm2015/abstract/abstract-native-select.js +2 -2
  168. package/esm2015/components/arrow/arrow.options.js +3 -3
  169. package/esm2015/components/avatar/avatar.options.js +2 -2
  170. package/esm2015/components/breadcrumbs/breadcrumbs.options.js +4 -4
  171. package/esm2015/components/combo-box/combo-box.component.js +2 -2
  172. package/esm2015/components/input-copy/input-copy.options.js +5 -5
  173. package/esm2015/components/input-count/input-count.options.js +5 -5
  174. package/esm2015/components/input-files/input-files.options.js +3 -3
  175. package/esm2015/components/input-files/max-size-rejection-error.pipe.js +2 -2
  176. package/esm2015/components/input-number/input-number.options.js +4 -4
  177. package/esm2015/components/input-password/input-password.options.js +3 -3
  178. package/esm2015/components/input-phone/input-phone.options.js +3 -3
  179. package/esm2015/components/input-phone/utils/complete-phone-insertion-preprocessor.js +6 -6
  180. package/esm2015/components/input-phone/utils/create-phone-mask-expression.js +6 -6
  181. package/esm2015/components/input-phone-international/utils/extract-value-from-event.js +3 -3
  182. package/esm2015/components/input-tag/input-tag.options.js +3 -3
  183. package/esm2015/components/input-time/input-time.options.js +5 -5
  184. package/esm2015/components/items-with-more/items-with-more.service.js +2 -2
  185. package/esm2015/components/multi-select/hide-selected.pipe.js +2 -2
  186. package/esm2015/components/multi-select/multi-select.options.js +2 -2
  187. package/esm2015/components/pdf-viewer/pdf-viewer.options.js +3 -3
  188. package/esm2015/components/pdf-viewer/pdf-viewer.service.js +3 -3
  189. package/esm2015/components/push/push.options.js +7 -7
  190. package/esm2015/components/push/push.service.js +3 -3
  191. package/esm2015/components/radio/radio.options.js +2 -2
  192. package/esm2015/components/rating/rating.options.js +3 -3
  193. package/esm2015/components/routable-dialog/generate-dialogable-route.js +6 -6
  194. package/esm2015/components/select/select.options.js +2 -2
  195. package/esm2015/components/slider/slider.options.js +3 -3
  196. package/esm2015/components/tabs/tab/tab.providers.js +5 -5
  197. package/esm2015/components/tabs/tabs-with-more/tabs-with-more.providers.js +3 -3
  198. package/esm2015/components/tag/tag.options.js +3 -3
  199. package/esm2015/components/textarea/deprecated.js +7 -7
  200. package/esm2015/components/tiles/tile.service.js +3 -3
  201. package/esm2015/components/toggle/toggle.options.js +4 -4
  202. package/esm2015/components/tree/misc/tree.tokens.js +5 -5
  203. package/esm2015/constants/date-mode-maskito-adapter.js +4 -4
  204. package/esm2015/constants/date-time-separator.js +2 -2
  205. package/esm2015/constants/group-class-names.js +10 -10
  206. package/esm2015/constants/masks.js +5 -5
  207. package/esm2015/constants/router-link-options.js +2 -2
  208. package/esm2015/pipes/field-error/field-error-content-pipe.js +4 -4
  209. package/esm2015/pipes/field-error/field-error-pipe.js +5 -5
  210. package/esm2015/pipes/filter-by-input/filter-by-input-with.pipe.js +2 -2
  211. package/esm2015/pipes/filter-by-input/filter-by-input.base.js +3 -3
  212. package/esm2015/pipes/filter-by-input/filter-by-input.pipe.js +2 -2
  213. package/esm2015/pipes/iso-to-country-code/iso-to-country-code.pipe.js +2 -2
  214. package/esm2015/pipes/sort-countries/sort-countries.pipe.js +2 -2
  215. package/esm2015/pipes/stringify/stringify.pipe.js +3 -3
  216. package/esm2015/pipes/stringify-content/stringify-content.pipe.js +2 -2
  217. package/esm2015/pipes/to-country-code/to-country-code.pipe.js +3 -3
  218. package/esm2015/pipes/to-year/to-year.pipe.js +2 -2
  219. package/esm2015/providers/month-formatter.provider.js +2 -2
  220. package/esm2015/providers/specific-dropdown-controllers.js +3 -3
  221. package/esm2015/services/dialog-form.service.js +2 -2
  222. package/esm2015/tokens/calendar-date-stream.js +2 -2
  223. package/esm2015/tokens/countries-masks.js +216 -216
  224. package/esm2015/tokens/date-inputs-value-transformers.js +4 -4
  225. package/esm2015/tokens/i18n.js +22 -22
  226. package/esm2015/tokens/input-date-options.js +2 -2
  227. package/esm2015/tokens/mobile-calendar.js +2 -2
  228. package/esm2015/tokens/month-formatter.js +2 -2
  229. package/esm2015/utils/files/format-size.js +2 -2
  230. package/esm2015/utils/files/get-accept-array.js +2 -2
  231. package/esm2015/utils/format/string-hash-to-hsl.js +3 -3
  232. package/esm2015/utils/mask/create-auto-corrected-time-pipe.js +6 -6
  233. package/esm2015/utils/mask/create-date-mask.js +5 -5
  234. package/esm2015/utils/mask/create-date-range-mask.js +2 -2
  235. package/esm2015/utils/mask/create-time-mask.js +4 -4
  236. package/esm2015/utils/math/horizontal-direction-to-number.js +3 -3
  237. package/esm2015/utils/miscellaneous/create-default-day-range-periods.js +7 -7
  238. package/esm2015/utils/miscellaneous/get-precision.js +2 -2
  239. package/esm2015/utils/phone/get-max-allowed-phone-length.js +2 -2
  240. package/esm2015/utils/phone/iso-to-country-code.js +2 -2
  241. package/esm2015/validators/unfinished.validator.js +2 -2
  242. package/fesm2015/taiga-ui-kit-abstract.js +1 -1
  243. package/fesm2015/taiga-ui-kit-abstract.js.map +1 -1
  244. package/fesm2015/taiga-ui-kit-components-arrow.js +2 -2
  245. package/fesm2015/taiga-ui-kit-components-arrow.js.map +1 -1
  246. package/fesm2015/taiga-ui-kit-components-avatar.js +1 -1
  247. package/fesm2015/taiga-ui-kit-components-avatar.js.map +1 -1
  248. package/fesm2015/taiga-ui-kit-components-breadcrumbs.js +3 -3
  249. package/fesm2015/taiga-ui-kit-components-breadcrumbs.js.map +1 -1
  250. package/fesm2015/taiga-ui-kit-components-combo-box.js +1 -1
  251. package/fesm2015/taiga-ui-kit-components-combo-box.js.map +1 -1
  252. package/fesm2015/taiga-ui-kit-components-input-copy.js +4 -4
  253. package/fesm2015/taiga-ui-kit-components-input-copy.js.map +1 -1
  254. package/fesm2015/taiga-ui-kit-components-input-count.js +4 -4
  255. package/fesm2015/taiga-ui-kit-components-input-count.js.map +1 -1
  256. package/fesm2015/taiga-ui-kit-components-input-files.js +3 -3
  257. package/fesm2015/taiga-ui-kit-components-input-files.js.map +1 -1
  258. package/fesm2015/taiga-ui-kit-components-input-number.js +3 -3
  259. package/fesm2015/taiga-ui-kit-components-input-number.js.map +1 -1
  260. package/fesm2015/taiga-ui-kit-components-input-password.js +2 -2
  261. package/fesm2015/taiga-ui-kit-components-input-password.js.map +1 -1
  262. package/fesm2015/taiga-ui-kit-components-input-phone-international.js +2 -2
  263. package/fesm2015/taiga-ui-kit-components-input-phone-international.js.map +1 -1
  264. package/fesm2015/taiga-ui-kit-components-input-phone.js +12 -12
  265. package/fesm2015/taiga-ui-kit-components-input-phone.js.map +1 -1
  266. package/fesm2015/taiga-ui-kit-components-input-tag.js +2 -2
  267. package/fesm2015/taiga-ui-kit-components-input-tag.js.map +1 -1
  268. package/fesm2015/taiga-ui-kit-components-input-time.js +4 -4
  269. package/fesm2015/taiga-ui-kit-components-input-time.js.map +1 -1
  270. package/fesm2015/taiga-ui-kit-components-items-with-more.js +1 -1
  271. package/fesm2015/taiga-ui-kit-components-items-with-more.js.map +1 -1
  272. package/fesm2015/taiga-ui-kit-components-multi-select.js +2 -2
  273. package/fesm2015/taiga-ui-kit-components-multi-select.js.map +1 -1
  274. package/fesm2015/taiga-ui-kit-components-pdf-viewer.js +4 -4
  275. package/fesm2015/taiga-ui-kit-components-pdf-viewer.js.map +1 -1
  276. package/fesm2015/taiga-ui-kit-components-push.js +8 -8
  277. package/fesm2015/taiga-ui-kit-components-push.js.map +1 -1
  278. package/fesm2015/taiga-ui-kit-components-radio.js +1 -1
  279. package/fesm2015/taiga-ui-kit-components-radio.js.map +1 -1
  280. package/fesm2015/taiga-ui-kit-components-rating.js +2 -2
  281. package/fesm2015/taiga-ui-kit-components-rating.js.map +1 -1
  282. package/fesm2015/taiga-ui-kit-components-routable-dialog.js +5 -5
  283. package/fesm2015/taiga-ui-kit-components-routable-dialog.js.map +1 -1
  284. package/fesm2015/taiga-ui-kit-components-select.js +1 -1
  285. package/fesm2015/taiga-ui-kit-components-select.js.map +1 -1
  286. package/fesm2015/taiga-ui-kit-components-slider.js +2 -2
  287. package/fesm2015/taiga-ui-kit-components-slider.js.map +1 -1
  288. package/fesm2015/taiga-ui-kit-components-tabs.js +6 -6
  289. package/fesm2015/taiga-ui-kit-components-tabs.js.map +1 -1
  290. package/fesm2015/taiga-ui-kit-components-tag.js +2 -2
  291. package/fesm2015/taiga-ui-kit-components-tag.js.map +1 -1
  292. package/fesm2015/taiga-ui-kit-components-textarea.js +6 -6
  293. package/fesm2015/taiga-ui-kit-components-textarea.js.map +1 -1
  294. package/fesm2015/taiga-ui-kit-components-tiles.js +2 -2
  295. package/fesm2015/taiga-ui-kit-components-tiles.js.map +1 -1
  296. package/fesm2015/taiga-ui-kit-components-toggle.js +3 -3
  297. package/fesm2015/taiga-ui-kit-components-toggle.js.map +1 -1
  298. package/fesm2015/taiga-ui-kit-components-tree.js +4 -4
  299. package/fesm2015/taiga-ui-kit-components-tree.js.map +1 -1
  300. package/fesm2015/taiga-ui-kit-constants.js +18 -18
  301. package/fesm2015/taiga-ui-kit-constants.js.map +1 -1
  302. package/fesm2015/taiga-ui-kit-pipes-field-error.js +7 -7
  303. package/fesm2015/taiga-ui-kit-pipes-field-error.js.map +1 -1
  304. package/fesm2015/taiga-ui-kit-pipes-filter-by-input.js +4 -4
  305. package/fesm2015/taiga-ui-kit-pipes-filter-by-input.js.map +1 -1
  306. package/fesm2015/taiga-ui-kit-pipes-iso-to-country-code.js +1 -1
  307. package/fesm2015/taiga-ui-kit-pipes-iso-to-country-code.js.map +1 -1
  308. package/fesm2015/taiga-ui-kit-pipes-sort-countries.js +1 -1
  309. package/fesm2015/taiga-ui-kit-pipes-sort-countries.js.map +1 -1
  310. package/fesm2015/taiga-ui-kit-pipes-stringify-content.js +1 -1
  311. package/fesm2015/taiga-ui-kit-pipes-stringify-content.js.map +1 -1
  312. package/fesm2015/taiga-ui-kit-pipes-stringify.js +2 -2
  313. package/fesm2015/taiga-ui-kit-pipes-stringify.js.map +1 -1
  314. package/fesm2015/taiga-ui-kit-pipes-to-country-code.js +2 -2
  315. package/fesm2015/taiga-ui-kit-pipes-to-country-code.js.map +1 -1
  316. package/fesm2015/taiga-ui-kit-pipes-to-year.js +1 -1
  317. package/fesm2015/taiga-ui-kit-pipes-to-year.js.map +1 -1
  318. package/fesm2015/taiga-ui-kit-providers.js +3 -3
  319. package/fesm2015/taiga-ui-kit-providers.js.map +1 -1
  320. package/fesm2015/taiga-ui-kit-services.js +1 -1
  321. package/fesm2015/taiga-ui-kit-services.js.map +1 -1
  322. package/fesm2015/taiga-ui-kit-tokens.js +243 -243
  323. package/fesm2015/taiga-ui-kit-tokens.js.map +1 -1
  324. package/fesm2015/taiga-ui-kit-utils-files.js +2 -2
  325. package/fesm2015/taiga-ui-kit-utils-files.js.map +1 -1
  326. package/fesm2015/taiga-ui-kit-utils-format.js +2 -2
  327. package/fesm2015/taiga-ui-kit-utils-format.js.map +1 -1
  328. package/fesm2015/taiga-ui-kit-utils-mask.js +13 -13
  329. package/fesm2015/taiga-ui-kit-utils-mask.js.map +1 -1
  330. package/fesm2015/taiga-ui-kit-utils-math.js +2 -2
  331. package/fesm2015/taiga-ui-kit-utils-math.js.map +1 -1
  332. package/fesm2015/taiga-ui-kit-utils-miscellaneous.js +7 -7
  333. package/fesm2015/taiga-ui-kit-utils-miscellaneous.js.map +1 -1
  334. package/fesm2015/taiga-ui-kit-utils-phone.js +2 -2
  335. package/fesm2015/taiga-ui-kit-utils-phone.js.map +1 -1
  336. package/fesm2015/taiga-ui-kit-validators.js +1 -1
  337. package/fesm2015/taiga-ui-kit-validators.js.map +1 -1
  338. package/package.json +4 -4
@@ -1,964 +1,818 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/forms'), require('@taiga-ui/cdk'), require('@taiga-ui/kit/utils'), require('@ng-web-apis/common'), require('rxjs/operators'), require('@angular/common'), require('rxjs')) :
3
- typeof define === 'function' && define.amd ? define('@taiga-ui/kit/components/slider', ['exports', '@angular/core', '@angular/forms', '@taiga-ui/cdk', '@taiga-ui/kit/utils', '@ng-web-apis/common', 'rxjs/operators', '@angular/common', 'rxjs'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["taiga-ui"] = global["taiga-ui"] || {}, global["taiga-ui"].kit = global["taiga-ui"].kit || {}, global["taiga-ui"].kit.components = global["taiga-ui"].kit.components || {}, global["taiga-ui"].kit.components.slider = {}), global.ng.core, global.ng.forms, global.cdk, global["taiga-ui"].kit.utils, global.common, global.rxjs.operators, global.ng.common, global.rxjs));
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/forms'), require('@taiga-ui/cdk'), require('@taiga-ui/kit/utils'), require('@ng-web-apis/common'), require('rxjs/operators'), require('@angular/common'), require('rxjs')) :
3
+ typeof define === 'function' && define.amd ? define('@taiga-ui/kit/components/slider', ['exports', '@angular/core', '@angular/forms', '@taiga-ui/cdk', '@taiga-ui/kit/utils', '@ng-web-apis/common', 'rxjs/operators', '@angular/common', 'rxjs'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["taiga-ui"] = global["taiga-ui"] || {}, global["taiga-ui"].kit = global["taiga-ui"].kit || {}, global["taiga-ui"].kit.components = global["taiga-ui"].kit.components || {}, global["taiga-ui"].kit.components.slider = {}), global.ng.core, global.ng.forms, global.cdk, global["taiga-ui"].kit.utils, global.common, global.rxjs.operators, global.ng.common, global.rxjs));
5
5
  })(this, (function (exports, i0, i1, cdk, utils, common, operators, i1$2, i1$1) { 'use strict';
6
6
 
7
- function _interopNamespace(e) {
8
- if (e && e.__esModule) return e;
9
- var n = Object.create(null);
10
- if (e) {
11
- Object.keys(e).forEach(function (k) {
12
- if (k !== 'default') {
13
- var d = Object.getOwnPropertyDescriptor(e, k);
14
- Object.defineProperty(n, k, d.get ? d : {
15
- enumerable: true,
16
- get: function () { return e[k]; }
17
- });
7
+ function _interopNamespace(e) {
8
+ if (e && e.__esModule) return e;
9
+ var n = Object.create(null);
10
+ if (e) {
11
+ Object.keys(e).forEach(function (k) {
12
+ if (k !== 'default') {
13
+ var d = Object.getOwnPropertyDescriptor(e, k);
14
+ Object.defineProperty(n, k, d.get ? d : {
15
+ enumerable: true,
16
+ get: function () { return e[k]; }
17
+ });
18
+ }
19
+ });
18
20
  }
19
- });
21
+ n["default"] = e;
22
+ return Object.freeze(n);
20
23
  }
21
- n["default"] = e;
22
- return Object.freeze(n);
23
- }
24
24
 
25
- var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
26
- var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
27
- var i1__namespace$2 = /*#__PURE__*/_interopNamespace(i1$2);
28
- var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$1);
25
+ var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
26
+ var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
27
+ var i1__namespace$2 = /*#__PURE__*/_interopNamespace(i1$2);
28
+ var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$1);
29
29
 
30
- /******************************************************************************
31
- Copyright (c) Microsoft Corporation.
30
+ /*! *****************************************************************************
31
+ Copyright (c) Microsoft Corporation.
32
32
 
33
- Permission to use, copy, modify, and/or distribute this software for any
34
- purpose with or without fee is hereby granted.
33
+ Permission to use, copy, modify, and/or distribute this software for any
34
+ purpose with or without fee is hereby granted.
35
35
 
36
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
37
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
38
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
39
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
40
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
41
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
42
- PERFORMANCE OF THIS SOFTWARE.
43
- ***************************************************************************** */
44
- /* global Reflect, Promise, SuppressedError, Symbol */
45
- var extendStatics = function (d, b) {
46
- extendStatics = Object.setPrototypeOf ||
47
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
48
- function (d, b) { for (var p in b)
49
- if (Object.prototype.hasOwnProperty.call(b, p))
50
- d[p] = b[p]; };
51
- return extendStatics(d, b);
52
- };
53
- function __extends(d, b) {
54
- if (typeof b !== "function" && b !== null)
55
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
56
- extendStatics(d, b);
57
- function __() { this.constructor = d; }
58
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
59
- }
60
- var __assign = function () {
61
- __assign = Object.assign || function __assign(t) {
62
- for (var s, i = 1, n = arguments.length; i < n; i++) {
63
- s = arguments[i];
64
- for (var p in s)
65
- if (Object.prototype.hasOwnProperty.call(s, p))
66
- t[p] = s[p];
67
- }
68
- return t;
69
- };
70
- return __assign.apply(this, arguments);
71
- };
72
- function __rest(s, e) {
73
- var t = {};
74
- for (var p in s)
75
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
76
- t[p] = s[p];
77
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
78
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
79
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
80
- t[p[i]] = s[p[i]];
81
- }
82
- return t;
83
- }
84
- function __decorate(decorators, target, key, desc) {
85
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
86
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
87
- r = Reflect.decorate(decorators, target, key, desc);
88
- else
89
- for (var i = decorators.length - 1; i >= 0; i--)
90
- if (d = decorators[i])
91
- r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
92
- return c > 3 && r && Object.defineProperty(target, key, r), r;
93
- }
94
- function __param(paramIndex, decorator) {
95
- return function (target, key) { decorator(target, key, paramIndex); };
96
- }
97
- function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
98
- function accept(f) { if (f !== void 0 && typeof f !== "function")
99
- throw new TypeError("Function expected"); return f; }
100
- var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
101
- var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
102
- var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
103
- var _, done = false;
104
- for (var i = decorators.length - 1; i >= 0; i--) {
105
- var context = {};
106
- for (var p in contextIn)
107
- context[p] = p === "access" ? {} : contextIn[p];
108
- for (var p in contextIn.access)
109
- context.access[p] = contextIn.access[p];
110
- context.addInitializer = function (f) { if (done)
111
- throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
112
- var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
113
- if (kind === "accessor") {
114
- if (result === void 0)
115
- continue;
116
- if (result === null || typeof result !== "object")
117
- throw new TypeError("Object expected");
118
- if (_ = accept(result.get))
119
- descriptor.get = _;
120
- if (_ = accept(result.set))
121
- descriptor.set = _;
122
- if (_ = accept(result.init))
123
- initializers.unshift(_);
124
- }
125
- else if (_ = accept(result)) {
126
- if (kind === "field")
127
- initializers.unshift(_);
128
- else
129
- descriptor[key] = _;
130
- }
131
- }
132
- if (target)
133
- Object.defineProperty(target, contextIn.name, descriptor);
134
- done = true;
135
- }
136
- ;
137
- function __runInitializers(thisArg, initializers, value) {
138
- var useValue = arguments.length > 2;
139
- for (var i = 0; i < initializers.length; i++) {
140
- value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
141
- }
142
- return useValue ? value : void 0;
143
- }
144
- ;
145
- function __propKey(x) {
146
- return typeof x === "symbol" ? x : "".concat(x);
147
- }
148
- ;
149
- function __setFunctionName(f, name, prefix) {
150
- if (typeof name === "symbol")
151
- name = name.description ? "[".concat(name.description, "]") : "";
152
- return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
153
- }
154
- ;
155
- function __metadata(metadataKey, metadataValue) {
156
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
157
- return Reflect.metadata(metadataKey, metadataValue);
158
- }
159
- function __awaiter(thisArg, _arguments, P, generator) {
160
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
161
- return new (P || (P = Promise))(function (resolve, reject) {
162
- function fulfilled(value) { try {
163
- step(generator.next(value));
164
- }
165
- catch (e) {
166
- reject(e);
167
- } }
168
- function rejected(value) { try {
169
- step(generator["throw"](value));
170
- }
171
- catch (e) {
172
- reject(e);
173
- } }
174
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
175
- step((generator = generator.apply(thisArg, _arguments || [])).next());
176
- });
177
- }
178
- function __generator(thisArg, body) {
179
- var _ = { label: 0, sent: function () { if (t[0] & 1)
180
- throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
181
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
182
- function verb(n) { return function (v) { return step([n, v]); }; }
183
- function step(op) {
184
- if (f)
185
- throw new TypeError("Generator is already executing.");
186
- while (g && (g = 0, op[0] && (_ = 0)), _)
187
- try {
188
- 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)
189
- return t;
190
- if (y = 0, t)
191
- op = [op[0] & 2, t.value];
192
- switch (op[0]) {
193
- case 0:
194
- case 1:
195
- t = op;
196
- break;
197
- case 4:
198
- _.label++;
199
- return { value: op[1], done: false };
200
- case 5:
201
- _.label++;
202
- y = op[1];
203
- op = [0];
204
- continue;
205
- case 7:
206
- op = _.ops.pop();
207
- _.trys.pop();
208
- continue;
209
- default:
210
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
211
- _ = 0;
212
- continue;
213
- }
214
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
215
- _.label = op[1];
216
- break;
217
- }
218
- if (op[0] === 6 && _.label < t[1]) {
219
- _.label = t[1];
220
- t = op;
221
- break;
222
- }
223
- if (t && _.label < t[2]) {
224
- _.label = t[2];
225
- _.ops.push(op);
226
- break;
227
- }
228
- if (t[2])
229
- _.ops.pop();
230
- _.trys.pop();
231
- continue;
232
- }
233
- op = body.call(thisArg, _);
234
- }
235
- catch (e) {
236
- op = [6, e];
237
- y = 0;
238
- }
239
- finally {
240
- f = t = 0;
241
- }
242
- if (op[0] & 5)
243
- throw op[1];
244
- return { value: op[0] ? op[1] : void 0, done: true };
245
- }
246
- }
247
- var __createBinding = Object.create ? (function (o, m, k, k2) {
248
- if (k2 === undefined)
249
- k2 = k;
250
- var desc = Object.getOwnPropertyDescriptor(m, k);
251
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
252
- desc = { enumerable: true, get: function () { return m[k]; } };
253
- }
254
- Object.defineProperty(o, k2, desc);
255
- }) : (function (o, m, k, k2) {
256
- if (k2 === undefined)
257
- k2 = k;
258
- o[k2] = m[k];
259
- });
260
- function __exportStar(m, o) {
261
- for (var p in m)
262
- if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
263
- __createBinding(o, m, p);
264
- }
265
- function __values(o) {
266
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
267
- if (m)
268
- return m.call(o);
269
- if (o && typeof o.length === "number")
270
- return {
271
- next: function () {
272
- if (o && i >= o.length)
273
- o = void 0;
274
- return { value: o && o[i++], done: !o };
275
- }
276
- };
277
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
278
- }
279
- function __read(o, n) {
280
- var m = typeof Symbol === "function" && o[Symbol.iterator];
281
- if (!m)
282
- return o;
283
- var i = m.call(o), r, ar = [], e;
284
- try {
285
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
286
- ar.push(r.value);
287
- }
288
- catch (error) {
289
- e = { error: error };
290
- }
291
- finally {
292
- try {
293
- if (r && !r.done && (m = i["return"]))
294
- m.call(i);
295
- }
296
- finally {
297
- if (e)
298
- throw e.error;
299
- }
300
- }
301
- return ar;
302
- }
303
- /** @deprecated */
304
- function __spread() {
305
- for (var ar = [], i = 0; i < arguments.length; i++)
306
- ar = ar.concat(__read(arguments[i]));
307
- return ar;
308
- }
309
- /** @deprecated */
310
- function __spreadArrays() {
311
- for (var s = 0, i = 0, il = arguments.length; i < il; i++)
312
- s += arguments[i].length;
313
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
314
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
315
- r[k] = a[j];
316
- return r;
317
- }
318
- function __spreadArray(to, from, pack) {
319
- if (pack || arguments.length === 2)
320
- for (var i = 0, l = from.length, ar; i < l; i++) {
321
- if (ar || !(i in from)) {
322
- if (!ar)
323
- ar = Array.prototype.slice.call(from, 0, i);
324
- ar[i] = from[i];
325
- }
326
- }
327
- return to.concat(ar || Array.prototype.slice.call(from));
328
- }
329
- function __await(v) {
330
- return this instanceof __await ? (this.v = v, this) : new __await(v);
331
- }
332
- function __asyncGenerator(thisArg, _arguments, generator) {
333
- if (!Symbol.asyncIterator)
334
- throw new TypeError("Symbol.asyncIterator is not defined.");
335
- var g = generator.apply(thisArg, _arguments || []), i, q = [];
336
- return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
337
- function verb(n) { if (g[n])
338
- i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
339
- function resume(n, v) { try {
340
- step(g[n](v));
341
- }
342
- catch (e) {
343
- settle(q[0][3], e);
344
- } }
345
- function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
346
- function fulfill(value) { resume("next", value); }
347
- function reject(value) { resume("throw", value); }
348
- function settle(f, v) { if (f(v), q.shift(), q.length)
349
- resume(q[0][0], q[0][1]); }
350
- }
351
- function __asyncDelegator(o) {
352
- var i, p;
353
- return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
354
- function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }
355
- }
356
- function __asyncValues(o) {
357
- if (!Symbol.asyncIterator)
358
- throw new TypeError("Symbol.asyncIterator is not defined.");
359
- var m = o[Symbol.asyncIterator], i;
360
- 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);
361
- 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); }); }; }
362
- function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
363
- }
364
- function __makeTemplateObject(cooked, raw) {
365
- if (Object.defineProperty) {
366
- Object.defineProperty(cooked, "raw", { value: raw });
367
- }
368
- else {
369
- cooked.raw = raw;
370
- }
371
- return cooked;
372
- }
373
- ;
374
- var __setModuleDefault = Object.create ? (function (o, v) {
375
- Object.defineProperty(o, "default", { enumerable: true, value: v });
376
- }) : function (o, v) {
377
- o["default"] = v;
378
- };
379
- function __importStar(mod) {
380
- if (mod && mod.__esModule)
381
- return mod;
382
- var result = {};
383
- if (mod != null)
384
- for (var k in mod)
385
- if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
386
- __createBinding(result, mod, k);
387
- __setModuleDefault(result, mod);
388
- return result;
389
- }
390
- function __importDefault(mod) {
391
- return (mod && mod.__esModule) ? mod : { default: mod };
392
- }
393
- function __classPrivateFieldGet(receiver, state, kind, f) {
394
- if (kind === "a" && !f)
395
- throw new TypeError("Private accessor was defined without a getter");
396
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
397
- throw new TypeError("Cannot read private member from an object whose class did not declare it");
398
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
399
- }
400
- function __classPrivateFieldSet(receiver, state, value, kind, f) {
401
- if (kind === "m")
402
- throw new TypeError("Private method is not writable");
403
- if (kind === "a" && !f)
404
- throw new TypeError("Private accessor was defined without a setter");
405
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
406
- throw new TypeError("Cannot write private member to an object whose class did not declare it");
407
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
408
- }
409
- function __classPrivateFieldIn(state, receiver) {
410
- if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function"))
411
- throw new TypeError("Cannot use 'in' operator on non-object");
412
- return typeof state === "function" ? receiver === state : state.has(receiver);
413
- }
414
- function __addDisposableResource(env, value, async) {
415
- if (value !== null && value !== void 0) {
416
- if (typeof value !== "object" && typeof value !== "function")
417
- throw new TypeError("Object expected.");
418
- var dispose;
419
- if (async) {
420
- if (!Symbol.asyncDispose)
421
- throw new TypeError("Symbol.asyncDispose is not defined.");
422
- dispose = value[Symbol.asyncDispose];
423
- }
424
- if (dispose === void 0) {
425
- if (!Symbol.dispose)
426
- throw new TypeError("Symbol.dispose is not defined.");
427
- dispose = value[Symbol.dispose];
428
- }
429
- if (typeof dispose !== "function")
430
- throw new TypeError("Object not disposable.");
431
- env.stack.push({ value: value, dispose: dispose, async: async });
432
- }
433
- else if (async) {
434
- env.stack.push({ async: true });
435
- }
436
- return value;
437
- }
438
- var _SuppressedError = typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
439
- var e = new Error(message);
440
- return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
441
- };
442
- function __disposeResources(env) {
443
- function fail(e) {
444
- env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
445
- env.hasError = true;
446
- }
447
- function next() {
448
- while (env.stack.length) {
449
- var rec = env.stack.pop();
450
- try {
451
- var result = rec.dispose && rec.dispose.call(rec.value);
452
- if (rec.async)
453
- return Promise.resolve(result).then(next, function (e) { fail(e); return next(); });
454
- }
455
- catch (e) {
456
- fail(e);
457
- }
458
- }
459
- if (env.hasError)
460
- throw env.error;
461
- }
462
- return next();
463
- }
464
- var tslib_es6 = {
465
- __extends: __extends,
466
- __assign: __assign,
467
- __rest: __rest,
468
- __decorate: __decorate,
469
- __param: __param,
470
- __metadata: __metadata,
471
- __awaiter: __awaiter,
472
- __generator: __generator,
473
- __createBinding: __createBinding,
474
- __exportStar: __exportStar,
475
- __values: __values,
476
- __read: __read,
477
- __spread: __spread,
478
- __spreadArrays: __spreadArrays,
479
- __spreadArray: __spreadArray,
480
- __await: __await,
481
- __asyncGenerator: __asyncGenerator,
482
- __asyncDelegator: __asyncDelegator,
483
- __asyncValues: __asyncValues,
484
- __makeTemplateObject: __makeTemplateObject,
485
- __importStar: __importStar,
486
- __importDefault: __importDefault,
487
- __classPrivateFieldGet: __classPrivateFieldGet,
488
- __classPrivateFieldSet: __classPrivateFieldSet,
489
- __classPrivateFieldIn: __classPrivateFieldIn,
490
- __addDisposableResource: __addDisposableResource,
491
- __disposeResources: __disposeResources,
492
- };
36
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
37
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
38
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
39
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
40
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
41
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
42
+ PERFORMANCE OF THIS SOFTWARE.
43
+ ***************************************************************************** */
44
+ /* global Reflect, Promise */
45
+ var extendStatics = function (d, b) {
46
+ extendStatics = Object.setPrototypeOf ||
47
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
48
+ function (d, b) { for (var p in b)
49
+ if (Object.prototype.hasOwnProperty.call(b, p))
50
+ d[p] = b[p]; };
51
+ return extendStatics(d, b);
52
+ };
53
+ function __extends(d, b) {
54
+ if (typeof b !== "function" && b !== null)
55
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
56
+ extendStatics(d, b);
57
+ function __() { this.constructor = d; }
58
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
59
+ }
60
+ var __assign = function () {
61
+ __assign = Object.assign || function __assign(t) {
62
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
63
+ s = arguments[i];
64
+ for (var p in s)
65
+ if (Object.prototype.hasOwnProperty.call(s, p))
66
+ t[p] = s[p];
67
+ }
68
+ return t;
69
+ };
70
+ return __assign.apply(this, arguments);
71
+ };
72
+ function __rest(s, e) {
73
+ var t = {};
74
+ for (var p in s)
75
+ if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
76
+ t[p] = s[p];
77
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
78
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
79
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
80
+ t[p[i]] = s[p[i]];
81
+ }
82
+ return t;
83
+ }
84
+ function __decorate(decorators, target, key, desc) {
85
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
86
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
87
+ r = Reflect.decorate(decorators, target, key, desc);
88
+ else
89
+ for (var i = decorators.length - 1; i >= 0; i--)
90
+ if (d = decorators[i])
91
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
92
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
93
+ }
94
+ function __param(paramIndex, decorator) {
95
+ return function (target, key) { decorator(target, key, paramIndex); };
96
+ }
97
+ function __metadata(metadataKey, metadataValue) {
98
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
99
+ return Reflect.metadata(metadataKey, metadataValue);
100
+ }
101
+ function __awaiter(thisArg, _arguments, P, generator) {
102
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
103
+ return new (P || (P = Promise))(function (resolve, reject) {
104
+ function fulfilled(value) { try {
105
+ step(generator.next(value));
106
+ }
107
+ catch (e) {
108
+ reject(e);
109
+ } }
110
+ function rejected(value) { try {
111
+ step(generator["throw"](value));
112
+ }
113
+ catch (e) {
114
+ reject(e);
115
+ } }
116
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
117
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
118
+ });
119
+ }
120
+ function __generator(thisArg, body) {
121
+ var _ = { label: 0, sent: function () { if (t[0] & 1)
122
+ throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
123
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
124
+ function verb(n) { return function (v) { return step([n, v]); }; }
125
+ function step(op) {
126
+ if (f)
127
+ throw new TypeError("Generator is already executing.");
128
+ while (_)
129
+ try {
130
+ 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)
131
+ return t;
132
+ if (y = 0, t)
133
+ op = [op[0] & 2, t.value];
134
+ switch (op[0]) {
135
+ case 0:
136
+ case 1:
137
+ t = op;
138
+ break;
139
+ case 4:
140
+ _.label++;
141
+ return { value: op[1], done: false };
142
+ case 5:
143
+ _.label++;
144
+ y = op[1];
145
+ op = [0];
146
+ continue;
147
+ case 7:
148
+ op = _.ops.pop();
149
+ _.trys.pop();
150
+ continue;
151
+ default:
152
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
153
+ _ = 0;
154
+ continue;
155
+ }
156
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
157
+ _.label = op[1];
158
+ break;
159
+ }
160
+ if (op[0] === 6 && _.label < t[1]) {
161
+ _.label = t[1];
162
+ t = op;
163
+ break;
164
+ }
165
+ if (t && _.label < t[2]) {
166
+ _.label = t[2];
167
+ _.ops.push(op);
168
+ break;
169
+ }
170
+ if (t[2])
171
+ _.ops.pop();
172
+ _.trys.pop();
173
+ continue;
174
+ }
175
+ op = body.call(thisArg, _);
176
+ }
177
+ catch (e) {
178
+ op = [6, e];
179
+ y = 0;
180
+ }
181
+ finally {
182
+ f = t = 0;
183
+ }
184
+ if (op[0] & 5)
185
+ throw op[1];
186
+ return { value: op[0] ? op[1] : void 0, done: true };
187
+ }
188
+ }
189
+ var __createBinding = Object.create ? (function (o, m, k, k2) {
190
+ if (k2 === undefined)
191
+ k2 = k;
192
+ Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
193
+ }) : (function (o, m, k, k2) {
194
+ if (k2 === undefined)
195
+ k2 = k;
196
+ o[k2] = m[k];
197
+ });
198
+ function __exportStar(m, o) {
199
+ for (var p in m)
200
+ if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
201
+ __createBinding(o, m, p);
202
+ }
203
+ function __values(o) {
204
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
205
+ if (m)
206
+ return m.call(o);
207
+ if (o && typeof o.length === "number")
208
+ return {
209
+ next: function () {
210
+ if (o && i >= o.length)
211
+ o = void 0;
212
+ return { value: o && o[i++], done: !o };
213
+ }
214
+ };
215
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
216
+ }
217
+ function __read(o, n) {
218
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
219
+ if (!m)
220
+ return o;
221
+ var i = m.call(o), r, ar = [], e;
222
+ try {
223
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
224
+ ar.push(r.value);
225
+ }
226
+ catch (error) {
227
+ e = { error: error };
228
+ }
229
+ finally {
230
+ try {
231
+ if (r && !r.done && (m = i["return"]))
232
+ m.call(i);
233
+ }
234
+ finally {
235
+ if (e)
236
+ throw e.error;
237
+ }
238
+ }
239
+ return ar;
240
+ }
241
+ /** @deprecated */
242
+ function __spread() {
243
+ for (var ar = [], i = 0; i < arguments.length; i++)
244
+ ar = ar.concat(__read(arguments[i]));
245
+ return ar;
246
+ }
247
+ /** @deprecated */
248
+ function __spreadArrays() {
249
+ for (var s = 0, i = 0, il = arguments.length; i < il; i++)
250
+ s += arguments[i].length;
251
+ for (var r = Array(s), k = 0, i = 0; i < il; i++)
252
+ for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
253
+ r[k] = a[j];
254
+ return r;
255
+ }
256
+ function __spreadArray(to, from, pack) {
257
+ if (pack || arguments.length === 2)
258
+ for (var i = 0, l = from.length, ar; i < l; i++) {
259
+ if (ar || !(i in from)) {
260
+ if (!ar)
261
+ ar = Array.prototype.slice.call(from, 0, i);
262
+ ar[i] = from[i];
263
+ }
264
+ }
265
+ return to.concat(ar || from);
266
+ }
267
+ function __await(v) {
268
+ return this instanceof __await ? (this.v = v, this) : new __await(v);
269
+ }
270
+ function __asyncGenerator(thisArg, _arguments, generator) {
271
+ if (!Symbol.asyncIterator)
272
+ throw new TypeError("Symbol.asyncIterator is not defined.");
273
+ var g = generator.apply(thisArg, _arguments || []), i, q = [];
274
+ return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
275
+ function verb(n) { if (g[n])
276
+ i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
277
+ function resume(n, v) { try {
278
+ step(g[n](v));
279
+ }
280
+ catch (e) {
281
+ settle(q[0][3], e);
282
+ } }
283
+ function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
284
+ function fulfill(value) { resume("next", value); }
285
+ function reject(value) { resume("throw", value); }
286
+ function settle(f, v) { if (f(v), q.shift(), q.length)
287
+ resume(q[0][0], q[0][1]); }
288
+ }
289
+ function __asyncDelegator(o) {
290
+ var i, p;
291
+ return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
292
+ 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; }
293
+ }
294
+ function __asyncValues(o) {
295
+ if (!Symbol.asyncIterator)
296
+ throw new TypeError("Symbol.asyncIterator is not defined.");
297
+ var m = o[Symbol.asyncIterator], i;
298
+ 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);
299
+ 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); }); }; }
300
+ function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
301
+ }
302
+ function __makeTemplateObject(cooked, raw) {
303
+ if (Object.defineProperty) {
304
+ Object.defineProperty(cooked, "raw", { value: raw });
305
+ }
306
+ else {
307
+ cooked.raw = raw;
308
+ }
309
+ return cooked;
310
+ }
311
+ ;
312
+ var __setModuleDefault = Object.create ? (function (o, v) {
313
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
314
+ }) : function (o, v) {
315
+ o["default"] = v;
316
+ };
317
+ function __importStar(mod) {
318
+ if (mod && mod.__esModule)
319
+ return mod;
320
+ var result = {};
321
+ if (mod != null)
322
+ for (var k in mod)
323
+ if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
324
+ __createBinding(result, mod, k);
325
+ __setModuleDefault(result, mod);
326
+ return result;
327
+ }
328
+ function __importDefault(mod) {
329
+ return (mod && mod.__esModule) ? mod : { default: mod };
330
+ }
331
+ function __classPrivateFieldGet(receiver, state, kind, f) {
332
+ if (kind === "a" && !f)
333
+ throw new TypeError("Private accessor was defined without a getter");
334
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
335
+ throw new TypeError("Cannot read private member from an object whose class did not declare it");
336
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
337
+ }
338
+ function __classPrivateFieldSet(receiver, state, value, kind, f) {
339
+ if (kind === "m")
340
+ throw new TypeError("Private method is not writable");
341
+ if (kind === "a" && !f)
342
+ throw new TypeError("Private accessor was defined without a setter");
343
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
344
+ throw new TypeError("Cannot write private member to an object whose class did not declare it");
345
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
346
+ }
493
347
 
494
- var TUI_SLIDER_DEFAULT_OPTIONS = {
495
- size: "m",
496
- trackColor: "var(--tui-base-03)",
497
- };
498
- /**
499
- * Default parameters for Slider component
500
- */
501
- var TUI_SLIDER_OPTIONS = cdk.tuiCreateToken(TUI_SLIDER_DEFAULT_OPTIONS);
502
- function tuiSliderOptionsProvider(options) {
503
- return cdk.tuiProvideOptions(TUI_SLIDER_OPTIONS, options, TUI_SLIDER_DEFAULT_OPTIONS);
504
- }
348
+ var TUI_SLIDER_DEFAULT_OPTIONS = {
349
+ size: 'm',
350
+ trackColor: 'var(--tui-base-03)',
351
+ };
352
+ /**
353
+ * Default parameters for Slider component
354
+ */
355
+ var TUI_SLIDER_OPTIONS = cdk.tuiCreateToken(TUI_SLIDER_DEFAULT_OPTIONS);
356
+ function tuiSliderOptionsProvider(options) {
357
+ return cdk.tuiProvideOptions(TUI_SLIDER_OPTIONS, options, TUI_SLIDER_DEFAULT_OPTIONS);
358
+ }
505
359
 
506
- var TuiSliderComponent = /** @class */ (function () {
507
- function TuiSliderComponent(control, cdr, options, el, userAgent, injector) {
508
- var _a;
509
- this.control = control;
510
- this.options = options;
511
- this.el = el;
512
- this.userAgent = userAgent;
513
- this.injector = injector;
514
- this.size = this.options.size;
515
- this.segments = 1;
516
- if (control instanceof i1.NgModel) {
517
- /**
518
- * The ValueAccessor.writeValue method is called twice on any value accessor during component initialization,
519
- * when a control is bound using [(ngModel)], first time with a phantom null value.
520
- * With `changeDetection: ChangeDetectionStrategy.OnPush` the second call of writeValue with real value don't re-render the view.
521
- * ___
522
- * See this {@link https://github.com/angular/angular/issues/14988 issue}
523
- */
524
- (_a = control.valueChanges) === null || _a === void 0 ? void 0 : _a.pipe(cdk.tuiWatch(cdr), operators.take(1)).subscribe();
525
- }
526
- }
527
- Object.defineProperty(TuiSliderComponent.prototype, "min", {
528
- get: function () {
529
- return Number(this.el.nativeElement.min);
530
- },
531
- enumerable: false,
532
- configurable: true
533
- });
534
- Object.defineProperty(TuiSliderComponent.prototype, "max", {
535
- get: function () {
536
- return Number(this.el.nativeElement.max || 100);
537
- },
538
- enumerable: false,
539
- configurable: true
540
- });
541
- Object.defineProperty(TuiSliderComponent.prototype, "step", {
542
- get: function () {
543
- return Number(this.el.nativeElement.step) || 1;
544
- },
545
- enumerable: false,
546
- configurable: true
547
- });
548
- Object.defineProperty(TuiSliderComponent.prototype, "value", {
549
- get: function () {
550
- var _b = this, el = _b.el, control = _b.control, hasKeySteps = _b.hasKeySteps;
551
- if (!hasKeySteps && control instanceof i1.NgModel) {
552
- /**
553
- * If developer uses `[(ngModel)]` and programmatically change value,
554
- * the `el.nativeElement.value` is equal to the previous value at this moment.
555
- */
556
- return control.viewModel;
557
- }
558
- return Number(el.nativeElement.value) || 0;
559
- },
560
- set: function (newValue) {
561
- this.el.nativeElement.value = "" + newValue;
562
- },
563
- enumerable: false,
564
- configurable: true
565
- });
566
- Object.defineProperty(TuiSliderComponent.prototype, "valueRatio", {
567
- get: function () {
568
- return (this.value - this.min) / (this.max - this.min) || 0;
569
- },
570
- enumerable: false,
571
- configurable: true
572
- });
573
- Object.defineProperty(TuiSliderComponent.prototype, "valuePercentage", {
574
- get: function () {
575
- return 100 * this.valueRatio;
576
- },
577
- enumerable: false,
578
- configurable: true
579
- });
580
- Object.defineProperty(TuiSliderComponent.prototype, "segmentWidth", {
581
- get: function () {
582
- return 100 / Math.max(1, this.segments);
583
- },
584
- enumerable: false,
585
- configurable: true
586
- });
587
- Object.defineProperty(TuiSliderComponent.prototype, "isOldEdge", {
588
- // TODO: drop support of legacy Edge (EdgeHTML) in v4.x
589
- get: function () {
590
- return cdk.tuiIsEdgeOlderThan(cdk.CHROMIUM_EDGE_START_VERSION, this.userAgent);
591
- },
592
- enumerable: false,
593
- configurable: true
594
- });
595
- Object.defineProperty(TuiSliderComponent.prototype, "hasKeySteps", {
596
- get: function () {
597
- return Boolean(this.injector.get(TuiSliderKeyStepsDirective, null));
598
- },
599
- enumerable: false,
600
- configurable: true
601
- });
602
- return TuiSliderComponent;
603
- }());
604
- TuiSliderComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSliderComponent, deps: [{ token: i1.NgControl, optional: true, self: true }, { token: i0.ChangeDetectorRef }, { token: TUI_SLIDER_OPTIONS }, { token: i0.ElementRef }, { token: common.USER_AGENT }, { token: i0.Injector }], target: i0__namespace.ɵɵFactoryTarget.Component });
605
- TuiSliderComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiSliderComponent, selector: "input[type=range][tuiSlider]", inputs: { size: "size", segments: "segments" }, host: { listeners: { "input": "0" }, properties: { "style.--tui-slider-track-color": "options.trackColor", "attr.data-size": "this.size", "style.--tui-slider-fill-ratio": "this.valueRatio", "style.--tui-slider-fill-percentage.%": "this.valuePercentage", "style.--tui-slider-segment-width.%": "this.segmentWidth", "class._old-edge": "this.isOldEdge" } }, ngImport: i0__namespace, template: '', isInline: true, styles: [":host{position:relative;display:block;width:100%;color:var(--tui-primary);cursor:pointer}:host:active{cursor:ew-resize}:host:disabled{opacity:var(--tui-disabled-opacity);cursor:auto}:host[data-size=s]:not(:disabled):before{transition-property:transform,opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:absolute;top:.25rem;left:calc(var(--tui-slider-fill-percentage) - var(--tui-slider-fill-ratio) * .5rem);width:.5rem;height:.5rem;border-radius:50%;transform:var(--tui-slider-thumb-transform, scale(1));content:\"\";cursor:ew-resize;background:currentColor;opacity:0}:host[data-size=s]:active:before{opacity:.2;transform:var(--tui-slider-thumb-transform, scale(1)) scale(2.33)}:host[data-size=m]:not(:disabled):before{transition-property:transform,opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:absolute;top:.125rem;left:calc(var(--tui-slider-fill-percentage) - var(--tui-slider-fill-ratio) * .75rem);width:.75rem;height:.75rem;border-radius:50%;transform:var(--tui-slider-thumb-transform, scale(1));content:\"\";cursor:ew-resize;background:currentColor;opacity:0}:host[data-size=m]:active:before{opacity:.2;transform:var(--tui-slider-thumb-transform, scale(1)) scale(2.33)}:host:not(._old-edge){-webkit-appearance:none;-moz-appearance:none;appearance:none;height:.125rem;padding:.4375rem 0;background-color:transparent;background-clip:content-box;outline:none;border-radius:var(--tui-radius-m)}:host:not(._old-edge)::-webkit-slider-container{border-radius:inherit}:host:not(._old-edge)[data-size=m]::-webkit-slider-runnable-track{height:.125rem;border-radius:inherit;background-repeat:no-repeat;background-color:var(--tui-slider-track-color);background-image:linear-gradient(to right,currentColor 0px .5rem,transparent .25rem),repeating-linear-gradient(to right,var(--tui-base-06) 0 .25rem,transparent 0 var(--tui-slider-segment-width)),linear-gradient(to right,currentColor var(--tui-slider-fill-percentage),transparent var(--tui-slider-fill-percentage));background-position-x:0,.25rem,0;background-size:calc(100% - .75rem),calc(100% - .75rem),auto}:host:not(._old-edge)[data-size=s]::-webkit-slider-runnable-track{height:.125rem;border-radius:inherit;background-repeat:no-repeat;background-color:var(--tui-slider-track-color);background-image:linear-gradient(to right,currentColor 0px .375rem,transparent .25rem),repeating-linear-gradient(to right,var(--tui-base-06) 0 .25rem,transparent 0 var(--tui-slider-segment-width)),linear-gradient(to right,currentColor var(--tui-slider-fill-percentage),transparent var(--tui-slider-fill-percentage));background-position-x:0,.125rem,0;background-size:calc(100% - .5rem),calc(100% - .5rem),auto}:host:not(._old-edge)[data-size=m]::-moz-range-track{height:.125rem;border-radius:inherit;background-repeat:no-repeat;background-color:var(--tui-slider-track-color);background-image:linear-gradient(to right,currentColor 0px .5rem,transparent .25rem),repeating-linear-gradient(to right,var(--tui-base-06) 0 .25rem,transparent 0 var(--tui-slider-segment-width));background-position-x:0,.25rem;background-size:calc(100% - .75rem)}:host:not(._old-edge)[data-size=s]::-moz-range-track{height:.125rem;border-radius:inherit;background-repeat:no-repeat;background-color:var(--tui-slider-track-color);background-image:linear-gradient(to right,currentColor 0px .375rem,transparent .25rem),repeating-linear-gradient(to right,var(--tui-base-06) 0 .25rem,transparent 0 var(--tui-slider-segment-width));background-position-x:0,.125rem;background-size:calc(100% - .5rem)}:host:not(._old-edge)[data-size=m]::-webkit-slider-thumb{-webkit-transition-property:transform;transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;isolation:isolate;-webkit-appearance:none;appearance:none;background-color:currentColor;box-shadow:none;border-radius:50%;height:.75rem;width:.75rem;box-sizing:content-box;background-clip:content-box;border:.125rem solid transparent;border-left:0;border-right:0;transform:var(--tui-slider-thumb-transform, scale(1));margin-top:-.4375rem}:not(:disabled):host:not(._old-edge)[data-size=m]::-webkit-slider-thumb{cursor:ew-resize}:not(:disabled):host:not(._old-edge)[data-size=m]::-webkit-slider-thumb:hover{background-color:var(--tui-primary-hover)}:active:not(:disabled):host:not(._old-edge)[data-size=m]::-webkit-slider-thumb{background-color:var(--tui-primary-active)}:not(:disabled):host:not(._old-edge)[data-size=m]::-webkit-slider-thumb:hover,:active:not(:disabled):host:not(._old-edge)[data-size=m]::-webkit-slider-thumb{transform:var(--tui-slider-thumb-transform, scale(1)) scale(1.333)}:focus-visible:host:not(._old-edge)[data-size=m]::-webkit-slider-thumb{box-shadow:0 0 0 2px inset var(--tui-focus)}:host:not(._old-edge)[data-size=s]::-webkit-slider-thumb{-webkit-transition-property:transform;transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;isolation:isolate;-webkit-appearance:none;appearance:none;background-color:currentColor;box-shadow:none;border-radius:50%;height:.5rem;width:.5rem;box-sizing:content-box;background-clip:content-box;border:.25rem solid transparent;border-left:0;border-right:0;transform:var(--tui-slider-thumb-transform, scale(1));margin-top:-.4375rem}:not(:disabled):host:not(._old-edge)[data-size=s]::-webkit-slider-thumb{cursor:ew-resize}:not(:disabled):host:not(._old-edge)[data-size=s]::-webkit-slider-thumb:hover{background-color:var(--tui-primary-hover)}:active:not(:disabled):host:not(._old-edge)[data-size=s]::-webkit-slider-thumb{background-color:var(--tui-primary-active)}:not(:disabled):host:not(._old-edge)[data-size=s]::-webkit-slider-thumb:hover,:active:not(:disabled):host:not(._old-edge)[data-size=s]::-webkit-slider-thumb{transform:var(--tui-slider-thumb-transform, scale(1)) scale(1.5)}:focus-visible:host:not(._old-edge)[data-size=s]::-webkit-slider-thumb{box-shadow:0 0 0 2px inset var(--tui-focus)}:host:not(._old-edge)[data-size=m]::-moz-range-thumb{-moz-transition-property:transform;transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;isolation:isolate;-moz-appearance:none;appearance:none;background-color:currentColor;box-shadow:none;border-radius:50%;height:.75rem;width:.75rem;box-sizing:content-box;background-clip:content-box;border:.125rem solid transparent;border-left:0;border-right:0;transform:var(--tui-slider-thumb-transform, scale(1))}:not(:disabled):host:not(._old-edge)[data-size=m]::-moz-range-thumb{cursor:ew-resize}:not(:disabled):host:not(._old-edge)[data-size=m]::-moz-range-thumb:hover{background-color:var(--tui-primary-hover)}:active:not(:disabled):host:not(._old-edge)[data-size=m]::-moz-range-thumb{background-color:var(--tui-primary-active)}:not(:disabled):host:not(._old-edge)[data-size=m]::-moz-range-thumb:hover,:active:not(:disabled):host:not(._old-edge)[data-size=m]::-moz-range-thumb{transform:var(--tui-slider-thumb-transform, scale(1)) scale(1.333)}:focus-visible:host:not(._old-edge)[data-size=m]::-moz-range-thumb{box-shadow:0 0 0 2px inset var(--tui-focus)}:host:not(._old-edge)[data-size=s]::-moz-range-thumb{-moz-transition-property:transform;transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;isolation:isolate;-moz-appearance:none;appearance:none;background-color:currentColor;box-shadow:none;border-radius:50%;height:.5rem;width:.5rem;box-sizing:content-box;background-clip:content-box;border:.25rem solid transparent;border-left:0;border-right:0;transform:var(--tui-slider-thumb-transform, scale(1))}:not(:disabled):host:not(._old-edge)[data-size=s]::-moz-range-thumb{cursor:ew-resize}:not(:disabled):host:not(._old-edge)[data-size=s]::-moz-range-thumb:hover{background-color:var(--tui-primary-hover)}:active:not(:disabled):host:not(._old-edge)[data-size=s]::-moz-range-thumb{background-color:var(--tui-primary-active)}:not(:disabled):host:not(._old-edge)[data-size=s]::-moz-range-thumb:hover,:active:not(:disabled):host:not(._old-edge)[data-size=s]::-moz-range-thumb{transform:var(--tui-slider-thumb-transform, scale(1)) scale(1.5)}:focus-visible:host:not(._old-edge)[data-size=s]::-moz-range-thumb{box-shadow:0 0 0 2px inset var(--tui-focus)}:host:not(._old-edge)::-moz-range-progress{border-radius:inherit}:host:not(._old-edge)::-moz-range-progress{height:.125rem;background:currentColor;border-top-right-radius:0;border-bottom-right-radius:0}:host._old-edge::-ms-thumb{background:currentColor;border-radius:50%}:host._old-edge::-ms-fill-lower{background:currentColor}:host._old-edge::-ms-track{background:var(--tui-slider-track-color);border:none}\n"], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
606
- __decorate([
607
- cdk.tuiPure
608
- ], TuiSliderComponent.prototype, "hasKeySteps", null);
609
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSliderComponent, decorators: [{
610
- type: i0.Component,
611
- args: [{
612
- /**
613
- * We have to call our component as `<input tuiSlider type="range" ... />`
614
- * because otherwise built-in angular
615
- * {@link https://github.com/angular/angular/blob/master/packages/forms/src/directives/range_value_accessor.ts#L45 RangeValueAccessor}
616
- * cannot be matched by its CSS selector.
617
- */
618
- selector: 'input[type=range][tuiSlider]',
619
- template: '',
620
- styleUrls: ['./slider.style.less'],
621
- host: {
622
- /**
623
- * For change detection.
624
- * Webkit does not have built-in method for customization of filling progress (as Firefox).
625
- * We draw filling of progress by `background: linear-gradient(...)` of the track.
626
- * This function triggers change detection (for {@link valuePercentage} function) when we drag thumb of the input.
627
- */
628
- '(input)': '0',
629
- '[style.--tui-slider-track-color]': 'options.trackColor',
630
- },
631
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
632
- }]
633
- }], ctorParameters: function () {
634
- return [{ type: i1__namespace.NgControl, decorators: [{
635
- type: i0.Optional
636
- }, {
637
- type: i0.Self
638
- }, {
639
- type: i0.Inject,
640
- args: [i1.NgControl]
641
- }] }, { type: i0__namespace.ChangeDetectorRef, decorators: [{
642
- type: i0.Inject,
643
- args: [i0.ChangeDetectorRef]
644
- }] }, { type: undefined, decorators: [{
645
- type: i0.Inject,
646
- args: [TUI_SLIDER_OPTIONS]
647
- }] }, { type: i0__namespace.ElementRef, decorators: [{
648
- type: i0.Inject,
649
- args: [i0.ElementRef]
650
- }] }, { type: undefined, decorators: [{
651
- type: i0.Inject,
652
- args: [common.USER_AGENT]
653
- }] }, { type: i0__namespace.Injector, decorators: [{
654
- type: i0.Inject,
655
- args: [i0.Injector]
656
- }] }];
657
- }, propDecorators: { size: [{
658
- type: i0.Input
659
- }, {
660
- type: i0.HostBinding,
661
- args: ['attr.data-size']
662
- }], segments: [{
663
- type: i0.Input
664
- }], valueRatio: [{
665
- type: i0.HostBinding,
666
- args: ['style.--tui-slider-fill-ratio']
667
- }], valuePercentage: [{
668
- type: i0.HostBinding,
669
- args: ['style.--tui-slider-fill-percentage.%']
670
- }], segmentWidth: [{
671
- type: i0.HostBinding,
672
- args: ['style.--tui-slider-segment-width.%']
673
- }], isOldEdge: [{
674
- type: i0.HostBinding,
675
- args: ['class._old-edge']
676
- }], hasKeySteps: [] } });
360
+ var TuiSliderComponent = /** @class */ (function () {
361
+ function TuiSliderComponent(control, cdr, options, el, userAgent, injector) {
362
+ var _a;
363
+ this.control = control;
364
+ this.options = options;
365
+ this.el = el;
366
+ this.userAgent = userAgent;
367
+ this.injector = injector;
368
+ this.size = this.options.size;
369
+ this.segments = 1;
370
+ if (control instanceof i1.NgModel) {
371
+ /**
372
+ * The ValueAccessor.writeValue method is called twice on any value accessor during component initialization,
373
+ * when a control is bound using [(ngModel)], first time with a phantom null value.
374
+ * With `changeDetection: ChangeDetectionStrategy.OnPush` the second call of writeValue with real value don't re-render the view.
375
+ * ___
376
+ * See this {@link https://github.com/angular/angular/issues/14988 issue}
377
+ */
378
+ (_a = control.valueChanges) === null || _a === void 0 ? void 0 : _a.pipe(cdk.tuiWatch(cdr), operators.take(1)).subscribe();
379
+ }
380
+ }
381
+ Object.defineProperty(TuiSliderComponent.prototype, "min", {
382
+ get: function () {
383
+ return Number(this.el.nativeElement.min);
384
+ },
385
+ enumerable: false,
386
+ configurable: true
387
+ });
388
+ Object.defineProperty(TuiSliderComponent.prototype, "max", {
389
+ get: function () {
390
+ return Number(this.el.nativeElement.max || 100);
391
+ },
392
+ enumerable: false,
393
+ configurable: true
394
+ });
395
+ Object.defineProperty(TuiSliderComponent.prototype, "step", {
396
+ get: function () {
397
+ return Number(this.el.nativeElement.step) || 1;
398
+ },
399
+ enumerable: false,
400
+ configurable: true
401
+ });
402
+ Object.defineProperty(TuiSliderComponent.prototype, "value", {
403
+ get: function () {
404
+ var _b = this, el = _b.el, control = _b.control, hasKeySteps = _b.hasKeySteps;
405
+ if (!hasKeySteps && control instanceof i1.NgModel) {
406
+ /**
407
+ * If developer uses `[(ngModel)]` and programmatically change value,
408
+ * the `el.nativeElement.value` is equal to the previous value at this moment.
409
+ */
410
+ return control.viewModel;
411
+ }
412
+ return Number(el.nativeElement.value) || 0;
413
+ },
414
+ set: function (newValue) {
415
+ this.el.nativeElement.value = "" + newValue;
416
+ },
417
+ enumerable: false,
418
+ configurable: true
419
+ });
420
+ Object.defineProperty(TuiSliderComponent.prototype, "valueRatio", {
421
+ get: function () {
422
+ return (this.value - this.min) / (this.max - this.min) || 0;
423
+ },
424
+ enumerable: false,
425
+ configurable: true
426
+ });
427
+ Object.defineProperty(TuiSliderComponent.prototype, "valuePercentage", {
428
+ get: function () {
429
+ return 100 * this.valueRatio;
430
+ },
431
+ enumerable: false,
432
+ configurable: true
433
+ });
434
+ Object.defineProperty(TuiSliderComponent.prototype, "segmentWidth", {
435
+ get: function () {
436
+ return 100 / Math.max(1, this.segments);
437
+ },
438
+ enumerable: false,
439
+ configurable: true
440
+ });
441
+ Object.defineProperty(TuiSliderComponent.prototype, "isOldEdge", {
442
+ // TODO: drop support of legacy Edge (EdgeHTML) in v4.x
443
+ get: function () {
444
+ return cdk.tuiIsEdgeOlderThan(cdk.CHROMIUM_EDGE_START_VERSION, this.userAgent);
445
+ },
446
+ enumerable: false,
447
+ configurable: true
448
+ });
449
+ Object.defineProperty(TuiSliderComponent.prototype, "hasKeySteps", {
450
+ get: function () {
451
+ return Boolean(this.injector.get(TuiSliderKeyStepsDirective, null));
452
+ },
453
+ enumerable: false,
454
+ configurable: true
455
+ });
456
+ return TuiSliderComponent;
457
+ }());
458
+ TuiSliderComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSliderComponent, deps: [{ token: i1.NgControl, optional: true, self: true }, { token: i0.ChangeDetectorRef }, { token: TUI_SLIDER_OPTIONS }, { token: i0.ElementRef }, { token: common.USER_AGENT }, { token: i0.Injector }], target: i0__namespace.ɵɵFactoryTarget.Component });
459
+ TuiSliderComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiSliderComponent, selector: "input[type=range][tuiSlider]", inputs: { size: "size", segments: "segments" }, host: { listeners: { "input": "0" }, properties: { "style.--tui-slider-track-color": "options.trackColor", "attr.data-size": "this.size", "style.--tui-slider-fill-ratio": "this.valueRatio", "style.--tui-slider-fill-percentage.%": "this.valuePercentage", "style.--tui-slider-segment-width.%": "this.segmentWidth", "class._old-edge": "this.isOldEdge" } }, ngImport: i0__namespace, template: '', isInline: true, styles: [":host{position:relative;display:block;width:100%;color:var(--tui-primary);cursor:pointer}:host:active{cursor:ew-resize}:host:disabled{opacity:var(--tui-disabled-opacity);cursor:auto}:host[data-size=s]:not(:disabled):before{transition-property:transform,opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:absolute;top:.25rem;left:calc(var(--tui-slider-fill-percentage) - var(--tui-slider-fill-ratio) * .5rem);width:.5rem;height:.5rem;border-radius:50%;transform:var(--tui-slider-thumb-transform, scale(1));content:\"\";cursor:ew-resize;background:currentColor;opacity:0}:host[data-size=s]:active:before{opacity:.2;transform:var(--tui-slider-thumb-transform, scale(1)) scale(2.33)}:host[data-size=m]:not(:disabled):before{transition-property:transform,opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:absolute;top:.125rem;left:calc(var(--tui-slider-fill-percentage) - var(--tui-slider-fill-ratio) * .75rem);width:.75rem;height:.75rem;border-radius:50%;transform:var(--tui-slider-thumb-transform, scale(1));content:\"\";cursor:ew-resize;background:currentColor;opacity:0}:host[data-size=m]:active:before{opacity:.2;transform:var(--tui-slider-thumb-transform, scale(1)) scale(2.33)}:host:not(._old-edge){-webkit-appearance:none;-moz-appearance:none;appearance:none;height:.125rem;padding:.4375rem 0;background-color:transparent;background-clip:content-box;outline:none;border-radius:var(--tui-radius-m)}:host:not(._old-edge)::-webkit-slider-container{border-radius:inherit}:host:not(._old-edge)[data-size=m]::-webkit-slider-runnable-track{height:.125rem;border-radius:inherit;background-repeat:no-repeat;background-color:var(--tui-slider-track-color);background-image:linear-gradient(to right,currentColor 0px .5rem,transparent .25rem),repeating-linear-gradient(to right,var(--tui-base-06) 0 .25rem,transparent 0 var(--tui-slider-segment-width)),linear-gradient(to right,currentColor var(--tui-slider-fill-percentage),transparent var(--tui-slider-fill-percentage));background-position-x:0,.25rem,0;background-size:calc(100% - .75rem),calc(100% - .75rem),auto}:host:not(._old-edge)[data-size=s]::-webkit-slider-runnable-track{height:.125rem;border-radius:inherit;background-repeat:no-repeat;background-color:var(--tui-slider-track-color);background-image:linear-gradient(to right,currentColor 0px .375rem,transparent .25rem),repeating-linear-gradient(to right,var(--tui-base-06) 0 .25rem,transparent 0 var(--tui-slider-segment-width)),linear-gradient(to right,currentColor var(--tui-slider-fill-percentage),transparent var(--tui-slider-fill-percentage));background-position-x:0,.125rem,0;background-size:calc(100% - .5rem),calc(100% - .5rem),auto}:host:not(._old-edge)[data-size=m]::-moz-range-track{height:.125rem;border-radius:inherit;background-repeat:no-repeat;background-color:var(--tui-slider-track-color);background-image:linear-gradient(to right,currentColor 0px .5rem,transparent .25rem),repeating-linear-gradient(to right,var(--tui-base-06) 0 .25rem,transparent 0 var(--tui-slider-segment-width));background-position-x:0,.25rem;background-size:calc(100% - .75rem)}:host:not(._old-edge)[data-size=s]::-moz-range-track{height:.125rem;border-radius:inherit;background-repeat:no-repeat;background-color:var(--tui-slider-track-color);background-image:linear-gradient(to right,currentColor 0px .375rem,transparent .25rem),repeating-linear-gradient(to right,var(--tui-base-06) 0 .25rem,transparent 0 var(--tui-slider-segment-width));background-position-x:0,.125rem;background-size:calc(100% - .5rem)}:host:not(._old-edge)[data-size=m]::-webkit-slider-thumb{-webkit-transition-property:transform;transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;isolation:isolate;-webkit-appearance:none;appearance:none;background-color:currentColor;box-shadow:none;border-radius:50%;height:.75rem;width:.75rem;box-sizing:content-box;background-clip:content-box;border:.125rem solid transparent;border-left:0;border-right:0;transform:var(--tui-slider-thumb-transform, scale(1));margin-top:-.4375rem}:not(:disabled):host:not(._old-edge)[data-size=m]::-webkit-slider-thumb{cursor:ew-resize}:not(:disabled):host:not(._old-edge)[data-size=m]::-webkit-slider-thumb:hover{background-color:var(--tui-primary-hover)}:active:not(:disabled):host:not(._old-edge)[data-size=m]::-webkit-slider-thumb{background-color:var(--tui-primary-active)}:not(:disabled):host:not(._old-edge)[data-size=m]::-webkit-slider-thumb:hover,:active:not(:disabled):host:not(._old-edge)[data-size=m]::-webkit-slider-thumb{transform:var(--tui-slider-thumb-transform, scale(1)) scale(1.333)}:focus-visible:host:not(._old-edge)[data-size=m]::-webkit-slider-thumb{box-shadow:0 0 0 2px inset var(--tui-focus)}:host:not(._old-edge)[data-size=s]::-webkit-slider-thumb{-webkit-transition-property:transform;transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;isolation:isolate;-webkit-appearance:none;appearance:none;background-color:currentColor;box-shadow:none;border-radius:50%;height:.5rem;width:.5rem;box-sizing:content-box;background-clip:content-box;border:.25rem solid transparent;border-left:0;border-right:0;transform:var(--tui-slider-thumb-transform, scale(1));margin-top:-.4375rem}:not(:disabled):host:not(._old-edge)[data-size=s]::-webkit-slider-thumb{cursor:ew-resize}:not(:disabled):host:not(._old-edge)[data-size=s]::-webkit-slider-thumb:hover{background-color:var(--tui-primary-hover)}:active:not(:disabled):host:not(._old-edge)[data-size=s]::-webkit-slider-thumb{background-color:var(--tui-primary-active)}:not(:disabled):host:not(._old-edge)[data-size=s]::-webkit-slider-thumb:hover,:active:not(:disabled):host:not(._old-edge)[data-size=s]::-webkit-slider-thumb{transform:var(--tui-slider-thumb-transform, scale(1)) scale(1.5)}:focus-visible:host:not(._old-edge)[data-size=s]::-webkit-slider-thumb{box-shadow:0 0 0 2px inset var(--tui-focus)}:host:not(._old-edge)[data-size=m]::-moz-range-thumb{-moz-transition-property:transform;transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;isolation:isolate;-moz-appearance:none;appearance:none;background-color:currentColor;box-shadow:none;border-radius:50%;height:.75rem;width:.75rem;box-sizing:content-box;background-clip:content-box;border:.125rem solid transparent;border-left:0;border-right:0;transform:var(--tui-slider-thumb-transform, scale(1))}:not(:disabled):host:not(._old-edge)[data-size=m]::-moz-range-thumb{cursor:ew-resize}:not(:disabled):host:not(._old-edge)[data-size=m]::-moz-range-thumb:hover{background-color:var(--tui-primary-hover)}:active:not(:disabled):host:not(._old-edge)[data-size=m]::-moz-range-thumb{background-color:var(--tui-primary-active)}:not(:disabled):host:not(._old-edge)[data-size=m]::-moz-range-thumb:hover,:active:not(:disabled):host:not(._old-edge)[data-size=m]::-moz-range-thumb{transform:var(--tui-slider-thumb-transform, scale(1)) scale(1.333)}:focus-visible:host:not(._old-edge)[data-size=m]::-moz-range-thumb{box-shadow:0 0 0 2px inset var(--tui-focus)}:host:not(._old-edge)[data-size=s]::-moz-range-thumb{-moz-transition-property:transform;transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;isolation:isolate;-moz-appearance:none;appearance:none;background-color:currentColor;box-shadow:none;border-radius:50%;height:.5rem;width:.5rem;box-sizing:content-box;background-clip:content-box;border:.25rem solid transparent;border-left:0;border-right:0;transform:var(--tui-slider-thumb-transform, scale(1))}:not(:disabled):host:not(._old-edge)[data-size=s]::-moz-range-thumb{cursor:ew-resize}:not(:disabled):host:not(._old-edge)[data-size=s]::-moz-range-thumb:hover{background-color:var(--tui-primary-hover)}:active:not(:disabled):host:not(._old-edge)[data-size=s]::-moz-range-thumb{background-color:var(--tui-primary-active)}:not(:disabled):host:not(._old-edge)[data-size=s]::-moz-range-thumb:hover,:active:not(:disabled):host:not(._old-edge)[data-size=s]::-moz-range-thumb{transform:var(--tui-slider-thumb-transform, scale(1)) scale(1.5)}:focus-visible:host:not(._old-edge)[data-size=s]::-moz-range-thumb{box-shadow:0 0 0 2px inset var(--tui-focus)}:host:not(._old-edge)::-moz-range-progress{border-radius:inherit}:host:not(._old-edge)::-moz-range-progress{height:.125rem;background:currentColor;border-top-right-radius:0;border-bottom-right-radius:0}:host._old-edge::-ms-thumb{background:currentColor;border-radius:50%}:host._old-edge::-ms-fill-lower{background:currentColor}:host._old-edge::-ms-track{background:var(--tui-slider-track-color);border:none}\n"], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
460
+ __decorate([
461
+ cdk.tuiPure
462
+ ], TuiSliderComponent.prototype, "hasKeySteps", null);
463
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSliderComponent, decorators: [{
464
+ type: i0.Component,
465
+ args: [{
466
+ /**
467
+ * We have to call our component as `<input tuiSlider type="range" ... />`
468
+ * because otherwise built-in angular
469
+ * {@link https://github.com/angular/angular/blob/master/packages/forms/src/directives/range_value_accessor.ts#L45 RangeValueAccessor}
470
+ * cannot be matched by its CSS selector.
471
+ */
472
+ selector: 'input[type=range][tuiSlider]',
473
+ template: '',
474
+ styleUrls: ['./slider.style.less'],
475
+ host: {
476
+ /**
477
+ * For change detection.
478
+ * Webkit does not have built-in method for customization of filling progress (as Firefox).
479
+ * We draw filling of progress by `background: linear-gradient(...)` of the track.
480
+ * This function triggers change detection (for {@link valuePercentage} function) when we drag thumb of the input.
481
+ */
482
+ '(input)': '0',
483
+ '[style.--tui-slider-track-color]': 'options.trackColor',
484
+ },
485
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
486
+ }]
487
+ }], ctorParameters: function () {
488
+ return [{ type: i1__namespace.NgControl, decorators: [{
489
+ type: i0.Optional
490
+ }, {
491
+ type: i0.Self
492
+ }, {
493
+ type: i0.Inject,
494
+ args: [i1.NgControl]
495
+ }] }, { type: i0__namespace.ChangeDetectorRef, decorators: [{
496
+ type: i0.Inject,
497
+ args: [i0.ChangeDetectorRef]
498
+ }] }, { type: undefined, decorators: [{
499
+ type: i0.Inject,
500
+ args: [TUI_SLIDER_OPTIONS]
501
+ }] }, { type: i0__namespace.ElementRef, decorators: [{
502
+ type: i0.Inject,
503
+ args: [i0.ElementRef]
504
+ }] }, { type: undefined, decorators: [{
505
+ type: i0.Inject,
506
+ args: [common.USER_AGENT]
507
+ }] }, { type: i0__namespace.Injector, decorators: [{
508
+ type: i0.Inject,
509
+ args: [i0.Injector]
510
+ }] }];
511
+ }, propDecorators: { size: [{
512
+ type: i0.Input
513
+ }, {
514
+ type: i0.HostBinding,
515
+ args: ['attr.data-size']
516
+ }], segments: [{
517
+ type: i0.Input
518
+ }], valueRatio: [{
519
+ type: i0.HostBinding,
520
+ args: ['style.--tui-slider-fill-ratio']
521
+ }], valuePercentage: [{
522
+ type: i0.HostBinding,
523
+ args: ['style.--tui-slider-fill-percentage.%']
524
+ }], segmentWidth: [{
525
+ type: i0.HostBinding,
526
+ args: ['style.--tui-slider-segment-width.%']
527
+ }], isOldEdge: [{
528
+ type: i0.HostBinding,
529
+ args: ['class._old-edge']
530
+ }], hasKeySteps: [] } });
677
531
 
678
- var TuiSliderKeyStepsDirective = /** @class */ (function (_super) {
679
- __extends(TuiSliderKeyStepsDirective, _super);
680
- function TuiSliderKeyStepsDirective(control, cdr, el, slider) {
681
- var _this = _super.call(this, control, cdr) || this;
682
- _this.el = el;
683
- _this.slider = slider;
684
- return _this;
685
- }
686
- Object.defineProperty(TuiSliderKeyStepsDirective.prototype, "nativeFocusableElement", {
687
- get: function () {
688
- return this.computedDisabled ? null : this.el.nativeElement;
689
- },
690
- enumerable: false,
691
- configurable: true
692
- });
693
- Object.defineProperty(TuiSliderKeyStepsDirective.prototype, "focused", {
694
- get: function () {
695
- return cdk.tuiIsNativeFocused(this.nativeFocusableElement);
696
- },
697
- enumerable: false,
698
- configurable: true
699
- });
700
- Object.defineProperty(TuiSliderKeyStepsDirective.prototype, "min", {
701
- get: function () {
702
- return this.keySteps[0][1];
703
- },
704
- enumerable: false,
705
- configurable: true
706
- });
707
- Object.defineProperty(TuiSliderKeyStepsDirective.prototype, "max", {
708
- get: function () {
709
- return this.keySteps[this.keySteps.length - 1][1];
710
- },
711
- enumerable: false,
712
- configurable: true
713
- });
714
- TuiSliderKeyStepsDirective.prototype.updateControlValue = function () {
715
- this.value = utils.tuiPercentageToKeyStepValue(this.slider.valuePercentage, this.keySteps);
716
- };
717
- TuiSliderKeyStepsDirective.prototype.writeValue = function (controlValue) {
718
- if (controlValue === null) {
719
- return;
720
- }
721
- var clampedControlValue = cdk.tuiClamp(controlValue, this.min, this.max);
722
- ngDevMode &&
723
- cdk.tuiAssert.assert(controlValue === clampedControlValue, '\n[SliderKeySteps]: You cannot programmatically set value which is less/more than min/max');
724
- this.slider.value = this.transformToNativeValue(clampedControlValue);
725
- };
726
- TuiSliderKeyStepsDirective.prototype.getFallbackValue = function () {
727
- return 0;
728
- };
729
- TuiSliderKeyStepsDirective.prototype.transformToNativeValue = function (controlValue) {
730
- var _a = this.slider, min = _a.min, max = _a.max;
731
- var newValuePercentage = utils.tuiKeyStepValueToPercentage(controlValue, this.keySteps);
732
- return (newValuePercentage * (max - min)) / 100 + min;
733
- };
734
- return TuiSliderKeyStepsDirective;
735
- }(cdk.AbstractTuiControl));
736
- TuiSliderKeyStepsDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSliderKeyStepsDirective, deps: [{ token: i1.NgControl, optional: true, self: true }, { token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.forwardRef(function () { return TuiSliderComponent; }) }], target: i0__namespace.ɵɵFactoryTarget.Directive });
737
- TuiSliderKeyStepsDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiSliderKeyStepsDirective, selector: "input[tuiSlider][keySteps]", inputs: { keySteps: "keySteps" }, host: { listeners: { "input": "updateControlValue()", "change": "updateControlValue()" }, properties: { "attr.aria-valuenow": "safeCurrentValue", "attr.aria-valuemin": "min", "attr.aria-valuemax": "max", "disabled": "computedDisabled" } }, usesInheritance: true, ngImport: i0__namespace });
738
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSliderKeyStepsDirective, decorators: [{
739
- type: i0.Directive,
740
- args: [{
741
- selector: 'input[tuiSlider][keySteps]',
742
- host: {
743
- '[attr.aria-valuenow]': 'safeCurrentValue',
744
- '[attr.aria-valuemin]': 'min',
745
- '[attr.aria-valuemax]': 'max',
746
- '[disabled]': 'computedDisabled',
747
- },
748
- }]
749
- }], ctorParameters: function () {
750
- return [{ type: i1__namespace.NgControl, decorators: [{
751
- type: i0.Optional
752
- }, {
753
- type: i0.Self
754
- }, {
755
- type: i0.Inject,
756
- args: [i1.NgControl]
757
- }] }, { type: i0__namespace.ChangeDetectorRef, decorators: [{
758
- type: i0.Inject,
759
- args: [i0.ChangeDetectorRef]
760
- }] }, { type: i0__namespace.ElementRef, decorators: [{
761
- type: i0.Inject,
762
- args: [i0.ElementRef]
763
- }] }, { type: TuiSliderComponent, decorators: [{
764
- type: i0.Inject,
765
- args: [i0.forwardRef(function () { return TuiSliderComponent; })]
766
- }] }];
767
- }, propDecorators: { keySteps: [{
768
- type: i0.Input
769
- }], updateControlValue: [{
770
- type: i0.HostListener,
771
- args: ['input']
772
- }, {
773
- type: i0.HostListener,
774
- args: ['change']
775
- }] } });
532
+ var TuiSliderKeyStepsDirective = /** @class */ (function (_super) {
533
+ __extends(TuiSliderKeyStepsDirective, _super);
534
+ function TuiSliderKeyStepsDirective(control, cdr, el, slider) {
535
+ var _this = _super.call(this, control, cdr) || this;
536
+ _this.el = el;
537
+ _this.slider = slider;
538
+ return _this;
539
+ }
540
+ Object.defineProperty(TuiSliderKeyStepsDirective.prototype, "nativeFocusableElement", {
541
+ get: function () {
542
+ return this.computedDisabled ? null : this.el.nativeElement;
543
+ },
544
+ enumerable: false,
545
+ configurable: true
546
+ });
547
+ Object.defineProperty(TuiSliderKeyStepsDirective.prototype, "focused", {
548
+ get: function () {
549
+ return cdk.tuiIsNativeFocused(this.nativeFocusableElement);
550
+ },
551
+ enumerable: false,
552
+ configurable: true
553
+ });
554
+ Object.defineProperty(TuiSliderKeyStepsDirective.prototype, "min", {
555
+ get: function () {
556
+ return this.keySteps[0][1];
557
+ },
558
+ enumerable: false,
559
+ configurable: true
560
+ });
561
+ Object.defineProperty(TuiSliderKeyStepsDirective.prototype, "max", {
562
+ get: function () {
563
+ return this.keySteps[this.keySteps.length - 1][1];
564
+ },
565
+ enumerable: false,
566
+ configurable: true
567
+ });
568
+ TuiSliderKeyStepsDirective.prototype.updateControlValue = function () {
569
+ this.value = utils.tuiPercentageToKeyStepValue(this.slider.valuePercentage, this.keySteps);
570
+ };
571
+ TuiSliderKeyStepsDirective.prototype.writeValue = function (controlValue) {
572
+ if (controlValue === null) {
573
+ return;
574
+ }
575
+ var clampedControlValue = cdk.tuiClamp(controlValue, this.min, this.max);
576
+ ngDevMode &&
577
+ cdk.tuiAssert.assert(controlValue === clampedControlValue, '\n[SliderKeySteps]: You cannot programmatically set value which is less/more than min/max');
578
+ this.slider.value = this.transformToNativeValue(clampedControlValue);
579
+ };
580
+ TuiSliderKeyStepsDirective.prototype.getFallbackValue = function () {
581
+ return 0;
582
+ };
583
+ TuiSliderKeyStepsDirective.prototype.transformToNativeValue = function (controlValue) {
584
+ var _a = this.slider, min = _a.min, max = _a.max;
585
+ var newValuePercentage = utils.tuiKeyStepValueToPercentage(controlValue, this.keySteps);
586
+ return (newValuePercentage * (max - min)) / 100 + min;
587
+ };
588
+ return TuiSliderKeyStepsDirective;
589
+ }(cdk.AbstractTuiControl));
590
+ TuiSliderKeyStepsDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSliderKeyStepsDirective, deps: [{ token: i1.NgControl, optional: true, self: true }, { token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.forwardRef(function () { return TuiSliderComponent; }) }], target: i0__namespace.ɵɵFactoryTarget.Directive });
591
+ TuiSliderKeyStepsDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiSliderKeyStepsDirective, selector: "input[tuiSlider][keySteps]", inputs: { keySteps: "keySteps" }, host: { listeners: { "input": "updateControlValue()", "change": "updateControlValue()" }, properties: { "attr.aria-valuenow": "safeCurrentValue", "attr.aria-valuemin": "min", "attr.aria-valuemax": "max", "disabled": "computedDisabled" } }, usesInheritance: true, ngImport: i0__namespace });
592
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSliderKeyStepsDirective, decorators: [{
593
+ type: i0.Directive,
594
+ args: [{
595
+ selector: 'input[tuiSlider][keySteps]',
596
+ host: {
597
+ '[attr.aria-valuenow]': 'safeCurrentValue',
598
+ '[attr.aria-valuemin]': 'min',
599
+ '[attr.aria-valuemax]': 'max',
600
+ '[disabled]': 'computedDisabled',
601
+ },
602
+ }]
603
+ }], ctorParameters: function () {
604
+ return [{ type: i1__namespace.NgControl, decorators: [{
605
+ type: i0.Optional
606
+ }, {
607
+ type: i0.Self
608
+ }, {
609
+ type: i0.Inject,
610
+ args: [i1.NgControl]
611
+ }] }, { type: i0__namespace.ChangeDetectorRef, decorators: [{
612
+ type: i0.Inject,
613
+ args: [i0.ChangeDetectorRef]
614
+ }] }, { type: i0__namespace.ElementRef, decorators: [{
615
+ type: i0.Inject,
616
+ args: [i0.ElementRef]
617
+ }] }, { type: TuiSliderComponent, decorators: [{
618
+ type: i0.Inject,
619
+ args: [i0.forwardRef(function () { return TuiSliderComponent; })]
620
+ }] }];
621
+ }, propDecorators: { keySteps: [{
622
+ type: i0.Input
623
+ }], updateControlValue: [{
624
+ type: i0.HostListener,
625
+ args: ['input']
626
+ }, {
627
+ type: i0.HostListener,
628
+ args: ['change']
629
+ }] } });
776
630
 
777
- var SLIDER_INTERACTION_KEYS = new Set([
778
- 'ArrowLeft',
779
- 'ArrowRight',
780
- 'ArrowUp',
781
- 'ArrowDown',
782
- 'Home',
783
- 'End',
784
- 'PageUp',
785
- 'PageDown',
786
- ]);
787
- /**
788
- * Native <input type='range' readonly> doesn't work.
789
- * This directive imitates this native behaviour.
790
- */
791
- var TuiSliderReadonlyDirective = /** @class */ (function () {
792
- function TuiSliderReadonlyDirective(el, doc, destroy$) {
793
- var _this = this;
794
- this.readonly = true;
795
- var touchStart$ = cdk.tuiTypedFromEvent(el.nativeElement, 'touchstart', {
796
- passive: false,
797
- });
798
- var touchMove$ = cdk.tuiTypedFromEvent(doc, 'touchmove', {
799
- passive: false,
800
- });
801
- var touchEnd$ = cdk.tuiTypedFromEvent(doc, 'touchend', {
802
- passive: true,
803
- });
804
- var shouldPreventMove$ = i1$1.merge(touchStart$.pipe(operators.tap(function (e) { return _this.preventEvent(e); }), operators.map(cdk.ALWAYS_TRUE_HANDLER)), touchEnd$.pipe(operators.map(cdk.ALWAYS_FALSE_HANDLER)));
805
- /**
806
- * @bad TODO think about another solution.
807
- * Keep in mind that preventing touch event (on slider) inside `@HostListener('touchstart')` doesn't work for mobile chrome.
808
- */
809
- i1$1.combineLatest([touchMove$, shouldPreventMove$])
810
- .pipe(operators.filter(function (_a) {
811
- var _b = __read(_a, 2), _ = _b[0], shouldPreventMove = _b[1];
812
- return shouldPreventMove;
813
- }), operators.takeUntil(destroy$))
814
- .subscribe(function (_a) {
815
- var _b = __read(_a, 1), moveEvent = _b[0];
816
- return _this.preventEvent(moveEvent);
817
- });
818
- }
819
- TuiSliderReadonlyDirective.prototype.preventEvent = function (event) {
820
- if (event.cancelable && cdk.tuiCoerceBooleanProperty(this.readonly)) {
821
- event.preventDefault();
822
- }
823
- };
824
- TuiSliderReadonlyDirective.prototype.preventKeyboardInteraction = function (event) {
825
- if (SLIDER_INTERACTION_KEYS.has(event.key)) {
826
- this.preventEvent(event);
827
- }
828
- };
829
- return TuiSliderReadonlyDirective;
830
- }());
831
- TuiSliderReadonlyDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSliderReadonlyDirective, deps: [{ token: i0.ElementRef }, { token: i1$2.DOCUMENT }, { token: cdk.TuiDestroyService, self: true }], target: i0__namespace.ɵɵFactoryTarget.Directive });
832
- TuiSliderReadonlyDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiSliderReadonlyDirective, selector: "input[tuiSlider][readonly]", inputs: { readonly: "readonly" }, host: { listeners: { "mousedown": "preventEvent($event)", "keydown": "preventKeyboardInteraction($event)" } }, providers: [cdk.TuiDestroyService], ngImport: i0__namespace });
833
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSliderReadonlyDirective, decorators: [{
834
- type: i0.Directive,
835
- args: [{
836
- selector: 'input[tuiSlider][readonly]',
837
- providers: [cdk.TuiDestroyService],
838
- }]
839
- }], ctorParameters: function () {
840
- return [{ type: i0__namespace.ElementRef, decorators: [{
841
- type: i0.Inject,
842
- args: [i0.ElementRef]
843
- }] }, { type: Document, decorators: [{
844
- type: i0.Inject,
845
- args: [i1$2.DOCUMENT]
846
- }] }, { type: i1__namespace$1.Observable, decorators: [{
847
- type: i0.Self
848
- }, {
849
- type: i0.Inject,
850
- args: [cdk.TuiDestroyService]
851
- }] }];
852
- }, propDecorators: { readonly: [{
853
- type: i0.Input
854
- }], preventEvent: [{
855
- type: i0.HostListener,
856
- args: ['mousedown', ['$event']]
857
- }], preventKeyboardInteraction: [{
858
- type: i0.HostListener,
859
- args: ['keydown', ['$event']]
860
- }] } });
631
+ var SLIDER_INTERACTION_KEYS = new Set([
632
+ 'ArrowLeft',
633
+ 'ArrowRight',
634
+ 'ArrowUp',
635
+ 'ArrowDown',
636
+ 'Home',
637
+ 'End',
638
+ 'PageUp',
639
+ 'PageDown',
640
+ ]);
641
+ /**
642
+ * Native <input type='range' readonly> doesn't work.
643
+ * This directive imitates this native behaviour.
644
+ */
645
+ var TuiSliderReadonlyDirective = /** @class */ (function () {
646
+ function TuiSliderReadonlyDirective(el, doc, destroy$) {
647
+ var _this = this;
648
+ this.readonly = true;
649
+ var touchStart$ = cdk.tuiTypedFromEvent(el.nativeElement, 'touchstart', {
650
+ passive: false,
651
+ });
652
+ var touchMove$ = cdk.tuiTypedFromEvent(doc, 'touchmove', {
653
+ passive: false,
654
+ });
655
+ var touchEnd$ = cdk.tuiTypedFromEvent(doc, 'touchend', {
656
+ passive: true,
657
+ });
658
+ var shouldPreventMove$ = i1$1.merge(touchStart$.pipe(operators.tap(function (e) { return _this.preventEvent(e); }), operators.map(cdk.ALWAYS_TRUE_HANDLER)), touchEnd$.pipe(operators.map(cdk.ALWAYS_FALSE_HANDLER)));
659
+ /**
660
+ * @bad TODO think about another solution.
661
+ * Keep in mind that preventing touch event (on slider) inside `@HostListener('touchstart')` doesn't work for mobile chrome.
662
+ */
663
+ i1$1.combineLatest([touchMove$, shouldPreventMove$])
664
+ .pipe(operators.filter(function (_a) {
665
+ var _b = __read(_a, 2), _ = _b[0], shouldPreventMove = _b[1];
666
+ return shouldPreventMove;
667
+ }), operators.takeUntil(destroy$))
668
+ .subscribe(function (_a) {
669
+ var _b = __read(_a, 1), moveEvent = _b[0];
670
+ return _this.preventEvent(moveEvent);
671
+ });
672
+ }
673
+ TuiSliderReadonlyDirective.prototype.preventEvent = function (event) {
674
+ if (event.cancelable && cdk.tuiCoerceBooleanProperty(this.readonly)) {
675
+ event.preventDefault();
676
+ }
677
+ };
678
+ TuiSliderReadonlyDirective.prototype.preventKeyboardInteraction = function (event) {
679
+ if (SLIDER_INTERACTION_KEYS.has(event.key)) {
680
+ this.preventEvent(event);
681
+ }
682
+ };
683
+ return TuiSliderReadonlyDirective;
684
+ }());
685
+ TuiSliderReadonlyDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSliderReadonlyDirective, deps: [{ token: i0.ElementRef }, { token: i1$2.DOCUMENT }, { token: cdk.TuiDestroyService, self: true }], target: i0__namespace.ɵɵFactoryTarget.Directive });
686
+ TuiSliderReadonlyDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiSliderReadonlyDirective, selector: "input[tuiSlider][readonly]", inputs: { readonly: "readonly" }, host: { listeners: { "mousedown": "preventEvent($event)", "keydown": "preventKeyboardInteraction($event)" } }, providers: [cdk.TuiDestroyService], ngImport: i0__namespace });
687
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSliderReadonlyDirective, decorators: [{
688
+ type: i0.Directive,
689
+ args: [{
690
+ selector: 'input[tuiSlider][readonly]',
691
+ providers: [cdk.TuiDestroyService],
692
+ }]
693
+ }], ctorParameters: function () {
694
+ return [{ type: i0__namespace.ElementRef, decorators: [{
695
+ type: i0.Inject,
696
+ args: [i0.ElementRef]
697
+ }] }, { type: Document, decorators: [{
698
+ type: i0.Inject,
699
+ args: [i1$2.DOCUMENT]
700
+ }] }, { type: i1__namespace$1.Observable, decorators: [{
701
+ type: i0.Self
702
+ }, {
703
+ type: i0.Inject,
704
+ args: [cdk.TuiDestroyService]
705
+ }] }];
706
+ }, propDecorators: { readonly: [{
707
+ type: i0.Input
708
+ }], preventEvent: [{
709
+ type: i0.HostListener,
710
+ args: ['mousedown', ['$event']]
711
+ }], preventKeyboardInteraction: [{
712
+ type: i0.HostListener,
713
+ args: ['keydown', ['$event']]
714
+ }] } });
861
715
 
862
- var TuiSliderThumbLabelComponent = /** @class */ (function () {
863
- function TuiSliderThumbLabelComponent() {
864
- }
865
- Object.defineProperty(TuiSliderThumbLabelComponent.prototype, "size", {
866
- get: function () {
867
- var _a;
868
- return ((_a = this.slider) === null || _a === void 0 ? void 0 : _a.size) || 'm';
869
- },
870
- enumerable: false,
871
- configurable: true
872
- });
873
- Object.defineProperty(TuiSliderThumbLabelComponent.prototype, "ratio", {
874
- get: function () {
875
- var _a;
876
- return ((_a = this.slider) === null || _a === void 0 ? void 0 : _a.valueRatio) || 0;
877
- },
878
- enumerable: false,
879
- configurable: true
880
- });
881
- Object.defineProperty(TuiSliderThumbLabelComponent.prototype, "ghostLeft", {
882
- get: function () {
883
- var _a;
884
- return this.ratio * (((_a = this.slider) === null || _a === void 0 ? void 0 : _a.el.nativeElement.offsetWidth) || 0);
885
- },
886
- enumerable: false,
887
- configurable: true
888
- });
889
- TuiSliderThumbLabelComponent.prototype.ngAfterContentInit = function () {
890
- var _a;
891
- ngDevMode &&
892
- cdk.tuiAssert.assert(Boolean((_a = this.control) === null || _a === void 0 ? void 0 : _a.valueChanges), '\n[tuiSliderThumbLabel] expected <input tuiSlider type="range" /> to use Angular Forms.\n' +
893
- 'Use [(ngModel)] or [formControl] or formControlName for correct work.');
894
- };
895
- return TuiSliderThumbLabelComponent;
896
- }());
897
- TuiSliderThumbLabelComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSliderThumbLabelComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
898
- TuiSliderThumbLabelComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiSliderThumbLabelComponent, selector: "[tuiSliderThumbLabel]", queries: [{ propertyName: "slider", first: true, predicate: TuiSliderComponent, descendants: true }, { propertyName: "control", first: true, predicate: i1.NgControl, descendants: true }], ngImport: i0__namespace, template: "<ng-container *ngIf=\"control?.valueChanges | async\"></ng-container>\n\n<div\n class=\"t-ghost\"\n [attr.data-size]=\"size\"\n [style.--tui-slider-thumb-ratio]=\"ratio\"\n [style.left.px]=\"ghostLeft\"\n>\n <ng-content></ng-content>\n</div>\n\n<ng-content select=\"input[type=range]\"></ng-content>\n", styles: [":host{position:relative}.t-ghost{position:absolute;top:0;bottom:0;margin:auto;border-radius:50%;pointer-events:none}.t-ghost[data-size=s]{width:.5rem;height:.5rem;transform:translate(calc(var(--tui-slider-thumb-ratio) * -.5rem))}.t-ghost[data-size=m]{width:.75rem;height:.75rem;transform:translate(calc(var(--tui-slider-thumb-ratio) * -.75rem))}\n"], directives: [{ type: i1__namespace$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i1__namespace$2.AsyncPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
899
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSliderThumbLabelComponent, decorators: [{
900
- type: i0.Component,
901
- args: [{
902
- selector: '[tuiSliderThumbLabel]',
903
- templateUrl: './slider-thumb-label.template.html',
904
- styleUrls: ['./slider-thumb-label.style.less'],
905
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
906
- }]
907
- }], propDecorators: { slider: [{
908
- type: i0.ContentChild,
909
- args: [TuiSliderComponent]
910
- }], control: [{
911
- type: i0.ContentChild,
912
- args: [i1.NgControl]
913
- }] } });
716
+ var TuiSliderThumbLabelComponent = /** @class */ (function () {
717
+ function TuiSliderThumbLabelComponent() {
718
+ }
719
+ Object.defineProperty(TuiSliderThumbLabelComponent.prototype, "size", {
720
+ get: function () {
721
+ var _a;
722
+ return ((_a = this.slider) === null || _a === void 0 ? void 0 : _a.size) || 'm';
723
+ },
724
+ enumerable: false,
725
+ configurable: true
726
+ });
727
+ Object.defineProperty(TuiSliderThumbLabelComponent.prototype, "ratio", {
728
+ get: function () {
729
+ var _a;
730
+ return ((_a = this.slider) === null || _a === void 0 ? void 0 : _a.valueRatio) || 0;
731
+ },
732
+ enumerable: false,
733
+ configurable: true
734
+ });
735
+ Object.defineProperty(TuiSliderThumbLabelComponent.prototype, "ghostLeft", {
736
+ get: function () {
737
+ var _a;
738
+ return this.ratio * (((_a = this.slider) === null || _a === void 0 ? void 0 : _a.el.nativeElement.offsetWidth) || 0);
739
+ },
740
+ enumerable: false,
741
+ configurable: true
742
+ });
743
+ TuiSliderThumbLabelComponent.prototype.ngAfterContentInit = function () {
744
+ var _a;
745
+ ngDevMode &&
746
+ cdk.tuiAssert.assert(Boolean((_a = this.control) === null || _a === void 0 ? void 0 : _a.valueChanges), '\n[tuiSliderThumbLabel] expected <input tuiSlider type="range" /> to use Angular Forms.\n' +
747
+ 'Use [(ngModel)] or [formControl] or formControlName for correct work.');
748
+ };
749
+ return TuiSliderThumbLabelComponent;
750
+ }());
751
+ TuiSliderThumbLabelComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSliderThumbLabelComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
752
+ TuiSliderThumbLabelComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiSliderThumbLabelComponent, selector: "[tuiSliderThumbLabel]", queries: [{ propertyName: "slider", first: true, predicate: TuiSliderComponent, descendants: true }, { propertyName: "control", first: true, predicate: i1.NgControl, descendants: true }], ngImport: i0__namespace, template: "<ng-container *ngIf=\"control?.valueChanges | async\"></ng-container>\n\n<div\n class=\"t-ghost\"\n [attr.data-size]=\"size\"\n [style.--tui-slider-thumb-ratio]=\"ratio\"\n [style.left.px]=\"ghostLeft\"\n>\n <ng-content></ng-content>\n</div>\n\n<ng-content select=\"input[type=range]\"></ng-content>\n", styles: [":host{position:relative}.t-ghost{position:absolute;top:0;bottom:0;margin:auto;border-radius:50%;pointer-events:none}.t-ghost[data-size=s]{width:.5rem;height:.5rem;transform:translate(calc(var(--tui-slider-thumb-ratio) * -.5rem))}.t-ghost[data-size=m]{width:.75rem;height:.75rem;transform:translate(calc(var(--tui-slider-thumb-ratio) * -.75rem))}\n"], directives: [{ type: i1__namespace$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i1__namespace$2.AsyncPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
753
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSliderThumbLabelComponent, decorators: [{
754
+ type: i0.Component,
755
+ args: [{
756
+ selector: '[tuiSliderThumbLabel]',
757
+ templateUrl: './slider-thumb-label.template.html',
758
+ styleUrls: ['./slider-thumb-label.style.less'],
759
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
760
+ }]
761
+ }], propDecorators: { slider: [{
762
+ type: i0.ContentChild,
763
+ args: [TuiSliderComponent]
764
+ }], control: [{
765
+ type: i0.ContentChild,
766
+ args: [i1.NgControl]
767
+ }] } });
914
768
 
915
- var TuiSliderModule = /** @class */ (function () {
916
- function TuiSliderModule() {
917
- }
918
- return TuiSliderModule;
919
- }());
920
- TuiSliderModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSliderModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
921
- TuiSliderModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSliderModule, declarations: [TuiSliderComponent,
922
- TuiSliderThumbLabelComponent,
923
- TuiSliderKeyStepsDirective,
924
- TuiSliderReadonlyDirective], imports: [i1$2.CommonModule], exports: [TuiSliderComponent,
925
- TuiSliderThumbLabelComponent,
926
- TuiSliderKeyStepsDirective,
927
- TuiSliderReadonlyDirective] });
928
- TuiSliderModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSliderModule, imports: [[i1$2.CommonModule]] });
929
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSliderModule, decorators: [{
930
- type: i0.NgModule,
931
- args: [{
932
- imports: [i1$2.CommonModule],
933
- declarations: [
934
- TuiSliderComponent,
935
- TuiSliderThumbLabelComponent,
936
- TuiSliderKeyStepsDirective,
937
- TuiSliderReadonlyDirective,
938
- ],
939
- exports: [
940
- TuiSliderComponent,
941
- TuiSliderThumbLabelComponent,
942
- TuiSliderKeyStepsDirective,
943
- TuiSliderReadonlyDirective,
944
- ],
945
- }]
946
- }] });
769
+ var TuiSliderModule = /** @class */ (function () {
770
+ function TuiSliderModule() {
771
+ }
772
+ return TuiSliderModule;
773
+ }());
774
+ TuiSliderModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSliderModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
775
+ TuiSliderModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSliderModule, declarations: [TuiSliderComponent,
776
+ TuiSliderThumbLabelComponent,
777
+ TuiSliderKeyStepsDirective,
778
+ TuiSliderReadonlyDirective], imports: [i1$2.CommonModule], exports: [TuiSliderComponent,
779
+ TuiSliderThumbLabelComponent,
780
+ TuiSliderKeyStepsDirective,
781
+ TuiSliderReadonlyDirective] });
782
+ TuiSliderModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSliderModule, imports: [[i1$2.CommonModule]] });
783
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSliderModule, decorators: [{
784
+ type: i0.NgModule,
785
+ args: [{
786
+ imports: [i1$2.CommonModule],
787
+ declarations: [
788
+ TuiSliderComponent,
789
+ TuiSliderThumbLabelComponent,
790
+ TuiSliderKeyStepsDirective,
791
+ TuiSliderReadonlyDirective,
792
+ ],
793
+ exports: [
794
+ TuiSliderComponent,
795
+ TuiSliderThumbLabelComponent,
796
+ TuiSliderKeyStepsDirective,
797
+ TuiSliderReadonlyDirective,
798
+ ],
799
+ }]
800
+ }] });
947
801
 
948
- /**
949
- * Generated bundle index. Do not edit.
950
- */
802
+ /**
803
+ * Generated bundle index. Do not edit.
804
+ */
951
805
 
952
- exports.TUI_SLIDER_DEFAULT_OPTIONS = TUI_SLIDER_DEFAULT_OPTIONS;
953
- exports.TUI_SLIDER_OPTIONS = TUI_SLIDER_OPTIONS;
954
- exports.TuiSliderComponent = TuiSliderComponent;
955
- exports.TuiSliderKeyStepsDirective = TuiSliderKeyStepsDirective;
956
- exports.TuiSliderModule = TuiSliderModule;
957
- exports.TuiSliderReadonlyDirective = TuiSliderReadonlyDirective;
958
- exports.TuiSliderThumbLabelComponent = TuiSliderThumbLabelComponent;
959
- exports.tuiSliderOptionsProvider = tuiSliderOptionsProvider;
806
+ exports.TUI_SLIDER_DEFAULT_OPTIONS = TUI_SLIDER_DEFAULT_OPTIONS;
807
+ exports.TUI_SLIDER_OPTIONS = TUI_SLIDER_OPTIONS;
808
+ exports.TuiSliderComponent = TuiSliderComponent;
809
+ exports.TuiSliderKeyStepsDirective = TuiSliderKeyStepsDirective;
810
+ exports.TuiSliderModule = TuiSliderModule;
811
+ exports.TuiSliderReadonlyDirective = TuiSliderReadonlyDirective;
812
+ exports.TuiSliderThumbLabelComponent = TuiSliderThumbLabelComponent;
813
+ exports.tuiSliderOptionsProvider = tuiSliderOptionsProvider;
960
814
 
961
- Object.defineProperty(exports, '__esModule', { value: true });
815
+ Object.defineProperty(exports, '__esModule', { value: true });
962
816
 
963
817
  }));
964
818
  //# sourceMappingURL=taiga-ui-kit-components-slider.umd.js.map