@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,828 +1,682 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/forms'), require('@maskito/kit'), require('@taiga-ui/cdk'), require('@taiga-ui/core'), require('@taiga-ui/kit/components/input-number'), require('@taiga-ui/kit/tokens'), require('@angular/common'), require('rxjs'), require('@taiga-ui/kit/directives')) :
3
- typeof define === 'function' && define.amd ? define('@taiga-ui/kit/components/input-count', ['exports', '@angular/core', '@angular/forms', '@maskito/kit', '@taiga-ui/cdk', '@taiga-ui/core', '@taiga-ui/kit/components/input-number', '@taiga-ui/kit/tokens', '@angular/common', 'rxjs', '@taiga-ui/kit/directives'], 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["input-count"] = {}), global.ng.core, global.ng.forms, global.kit, global.cdk, global.i2, global["taiga-ui"].kit.components["input-number"], global["taiga-ui"].kit.tokens, global.ng.common, global.rxjs, global["taiga-ui"].kit.directives));
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/forms'), require('@maskito/kit'), require('@taiga-ui/cdk'), require('@taiga-ui/core'), require('@taiga-ui/kit/components/input-number'), require('@taiga-ui/kit/tokens'), require('@angular/common'), require('rxjs'), require('@taiga-ui/kit/directives')) :
3
+ typeof define === 'function' && define.amd ? define('@taiga-ui/kit/components/input-count', ['exports', '@angular/core', '@angular/forms', '@maskito/kit', '@taiga-ui/cdk', '@taiga-ui/core', '@taiga-ui/kit/components/input-number', '@taiga-ui/kit/tokens', '@angular/common', 'rxjs', '@taiga-ui/kit/directives'], 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["input-count"] = {}), global.ng.core, global.ng.forms, global.kit, global.cdk, global.i2, global["taiga-ui"].kit.components["input-number"], global["taiga-ui"].kit.tokens, global.ng.common, global.rxjs, global["taiga-ui"].kit.directives));
5
5
  })(this, (function (exports, i0, i3, kit, cdk, i2, i1, tokens, i4, i5, directives) { '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 i3__namespace = /*#__PURE__*/_interopNamespace(i3);
27
- var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
28
- var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
29
- var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
30
- var i5__namespace = /*#__PURE__*/_interopNamespace(i5);
25
+ var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
26
+ var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
27
+ var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
28
+ var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
29
+ var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
30
+ var i5__namespace = /*#__PURE__*/_interopNamespace(i5);
31
31
 
32
- /******************************************************************************
33
- Copyright (c) Microsoft Corporation.
32
+ /*! *****************************************************************************
33
+ Copyright (c) Microsoft Corporation.
34
34
 
35
- Permission to use, copy, modify, and/or distribute this software for any
36
- purpose with or without fee is hereby granted.
35
+ Permission to use, copy, modify, and/or distribute this software for any
36
+ purpose with or without fee is hereby granted.
37
37
 
38
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
39
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
40
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
41
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
42
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
43
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
44
- PERFORMANCE OF THIS SOFTWARE.
45
- ***************************************************************************** */
46
- /* global Reflect, Promise, SuppressedError, Symbol */
47
- var extendStatics = function (d, b) {
48
- extendStatics = Object.setPrototypeOf ||
49
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
50
- function (d, b) { for (var p in b)
51
- if (Object.prototype.hasOwnProperty.call(b, p))
52
- d[p] = b[p]; };
53
- return extendStatics(d, b);
54
- };
55
- function __extends(d, b) {
56
- if (typeof b !== "function" && b !== null)
57
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
58
- extendStatics(d, b);
59
- function __() { this.constructor = d; }
60
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
61
- }
62
- var __assign = function () {
63
- __assign = Object.assign || function __assign(t) {
64
- for (var s, i = 1, n = arguments.length; i < n; i++) {
65
- s = arguments[i];
66
- for (var p in s)
67
- if (Object.prototype.hasOwnProperty.call(s, p))
68
- t[p] = s[p];
69
- }
70
- return t;
71
- };
72
- return __assign.apply(this, arguments);
73
- };
74
- function __rest(s, e) {
75
- var t = {};
76
- for (var p in s)
77
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
78
- t[p] = s[p];
79
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
80
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
81
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
82
- t[p[i]] = s[p[i]];
83
- }
84
- return t;
85
- }
86
- function __decorate(decorators, target, key, desc) {
87
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
88
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
89
- r = Reflect.decorate(decorators, target, key, desc);
90
- else
91
- for (var i = decorators.length - 1; i >= 0; i--)
92
- if (d = decorators[i])
93
- r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
94
- return c > 3 && r && Object.defineProperty(target, key, r), r;
95
- }
96
- function __param(paramIndex, decorator) {
97
- return function (target, key) { decorator(target, key, paramIndex); };
98
- }
99
- function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
100
- function accept(f) { if (f !== void 0 && typeof f !== "function")
101
- throw new TypeError("Function expected"); return f; }
102
- var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
103
- var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
104
- var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
105
- var _, done = false;
106
- for (var i = decorators.length - 1; i >= 0; i--) {
107
- var context = {};
108
- for (var p in contextIn)
109
- context[p] = p === "access" ? {} : contextIn[p];
110
- for (var p in contextIn.access)
111
- context.access[p] = contextIn.access[p];
112
- context.addInitializer = function (f) { if (done)
113
- throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
114
- var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
115
- if (kind === "accessor") {
116
- if (result === void 0)
117
- continue;
118
- if (result === null || typeof result !== "object")
119
- throw new TypeError("Object expected");
120
- if (_ = accept(result.get))
121
- descriptor.get = _;
122
- if (_ = accept(result.set))
123
- descriptor.set = _;
124
- if (_ = accept(result.init))
125
- initializers.unshift(_);
126
- }
127
- else if (_ = accept(result)) {
128
- if (kind === "field")
129
- initializers.unshift(_);
130
- else
131
- descriptor[key] = _;
132
- }
133
- }
134
- if (target)
135
- Object.defineProperty(target, contextIn.name, descriptor);
136
- done = true;
137
- }
138
- ;
139
- function __runInitializers(thisArg, initializers, value) {
140
- var useValue = arguments.length > 2;
141
- for (var i = 0; i < initializers.length; i++) {
142
- value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
143
- }
144
- return useValue ? value : void 0;
145
- }
146
- ;
147
- function __propKey(x) {
148
- return typeof x === "symbol" ? x : "".concat(x);
149
- }
150
- ;
151
- function __setFunctionName(f, name, prefix) {
152
- if (typeof name === "symbol")
153
- name = name.description ? "[".concat(name.description, "]") : "";
154
- return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
155
- }
156
- ;
157
- function __metadata(metadataKey, metadataValue) {
158
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
159
- return Reflect.metadata(metadataKey, metadataValue);
160
- }
161
- function __awaiter(thisArg, _arguments, P, generator) {
162
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
163
- return new (P || (P = Promise))(function (resolve, reject) {
164
- function fulfilled(value) { try {
165
- step(generator.next(value));
166
- }
167
- catch (e) {
168
- reject(e);
169
- } }
170
- function rejected(value) { try {
171
- step(generator["throw"](value));
172
- }
173
- catch (e) {
174
- reject(e);
175
- } }
176
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
177
- step((generator = generator.apply(thisArg, _arguments || [])).next());
178
- });
179
- }
180
- function __generator(thisArg, body) {
181
- var _ = { label: 0, sent: function () { if (t[0] & 1)
182
- throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
183
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
184
- function verb(n) { return function (v) { return step([n, v]); }; }
185
- function step(op) {
186
- if (f)
187
- throw new TypeError("Generator is already executing.");
188
- while (g && (g = 0, op[0] && (_ = 0)), _)
189
- try {
190
- 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)
191
- return t;
192
- if (y = 0, t)
193
- op = [op[0] & 2, t.value];
194
- switch (op[0]) {
195
- case 0:
196
- case 1:
197
- t = op;
198
- break;
199
- case 4:
200
- _.label++;
201
- return { value: op[1], done: false };
202
- case 5:
203
- _.label++;
204
- y = op[1];
205
- op = [0];
206
- continue;
207
- case 7:
208
- op = _.ops.pop();
209
- _.trys.pop();
210
- continue;
211
- default:
212
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
213
- _ = 0;
214
- continue;
215
- }
216
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
217
- _.label = op[1];
218
- break;
219
- }
220
- if (op[0] === 6 && _.label < t[1]) {
221
- _.label = t[1];
222
- t = op;
223
- break;
224
- }
225
- if (t && _.label < t[2]) {
226
- _.label = t[2];
227
- _.ops.push(op);
228
- break;
229
- }
230
- if (t[2])
231
- _.ops.pop();
232
- _.trys.pop();
233
- continue;
234
- }
235
- op = body.call(thisArg, _);
236
- }
237
- catch (e) {
238
- op = [6, e];
239
- y = 0;
240
- }
241
- finally {
242
- f = t = 0;
243
- }
244
- if (op[0] & 5)
245
- throw op[1];
246
- return { value: op[0] ? op[1] : void 0, done: true };
247
- }
248
- }
249
- var __createBinding = Object.create ? (function (o, m, k, k2) {
250
- if (k2 === undefined)
251
- k2 = k;
252
- var desc = Object.getOwnPropertyDescriptor(m, k);
253
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
254
- desc = { enumerable: true, get: function () { return m[k]; } };
255
- }
256
- Object.defineProperty(o, k2, desc);
257
- }) : (function (o, m, k, k2) {
258
- if (k2 === undefined)
259
- k2 = k;
260
- o[k2] = m[k];
261
- });
262
- function __exportStar(m, o) {
263
- for (var p in m)
264
- if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
265
- __createBinding(o, m, p);
266
- }
267
- function __values(o) {
268
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
269
- if (m)
270
- return m.call(o);
271
- if (o && typeof o.length === "number")
272
- return {
273
- next: function () {
274
- if (o && i >= o.length)
275
- o = void 0;
276
- return { value: o && o[i++], done: !o };
277
- }
278
- };
279
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
280
- }
281
- function __read(o, n) {
282
- var m = typeof Symbol === "function" && o[Symbol.iterator];
283
- if (!m)
284
- return o;
285
- var i = m.call(o), r, ar = [], e;
286
- try {
287
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
288
- ar.push(r.value);
289
- }
290
- catch (error) {
291
- e = { error: error };
292
- }
293
- finally {
294
- try {
295
- if (r && !r.done && (m = i["return"]))
296
- m.call(i);
297
- }
298
- finally {
299
- if (e)
300
- throw e.error;
301
- }
302
- }
303
- return ar;
304
- }
305
- /** @deprecated */
306
- function __spread() {
307
- for (var ar = [], i = 0; i < arguments.length; i++)
308
- ar = ar.concat(__read(arguments[i]));
309
- return ar;
310
- }
311
- /** @deprecated */
312
- function __spreadArrays() {
313
- for (var s = 0, i = 0, il = arguments.length; i < il; i++)
314
- s += arguments[i].length;
315
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
316
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
317
- r[k] = a[j];
318
- return r;
319
- }
320
- function __spreadArray(to, from, pack) {
321
- if (pack || arguments.length === 2)
322
- for (var i = 0, l = from.length, ar; i < l; i++) {
323
- if (ar || !(i in from)) {
324
- if (!ar)
325
- ar = Array.prototype.slice.call(from, 0, i);
326
- ar[i] = from[i];
327
- }
328
- }
329
- return to.concat(ar || Array.prototype.slice.call(from));
330
- }
331
- function __await(v) {
332
- return this instanceof __await ? (this.v = v, this) : new __await(v);
333
- }
334
- function __asyncGenerator(thisArg, _arguments, generator) {
335
- if (!Symbol.asyncIterator)
336
- throw new TypeError("Symbol.asyncIterator is not defined.");
337
- var g = generator.apply(thisArg, _arguments || []), i, q = [];
338
- return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
339
- function verb(n) { if (g[n])
340
- i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
341
- function resume(n, v) { try {
342
- step(g[n](v));
343
- }
344
- catch (e) {
345
- settle(q[0][3], e);
346
- } }
347
- function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
348
- function fulfill(value) { resume("next", value); }
349
- function reject(value) { resume("throw", value); }
350
- function settle(f, v) { if (f(v), q.shift(), q.length)
351
- resume(q[0][0], q[0][1]); }
352
- }
353
- function __asyncDelegator(o) {
354
- var i, p;
355
- return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
356
- 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; }
357
- }
358
- function __asyncValues(o) {
359
- if (!Symbol.asyncIterator)
360
- throw new TypeError("Symbol.asyncIterator is not defined.");
361
- var m = o[Symbol.asyncIterator], i;
362
- 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);
363
- 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); }); }; }
364
- function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
365
- }
366
- function __makeTemplateObject(cooked, raw) {
367
- if (Object.defineProperty) {
368
- Object.defineProperty(cooked, "raw", { value: raw });
369
- }
370
- else {
371
- cooked.raw = raw;
372
- }
373
- return cooked;
374
- }
375
- ;
376
- var __setModuleDefault = Object.create ? (function (o, v) {
377
- Object.defineProperty(o, "default", { enumerable: true, value: v });
378
- }) : function (o, v) {
379
- o["default"] = v;
380
- };
381
- function __importStar(mod) {
382
- if (mod && mod.__esModule)
383
- return mod;
384
- var result = {};
385
- if (mod != null)
386
- for (var k in mod)
387
- if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
388
- __createBinding(result, mod, k);
389
- __setModuleDefault(result, mod);
390
- return result;
391
- }
392
- function __importDefault(mod) {
393
- return (mod && mod.__esModule) ? mod : { default: mod };
394
- }
395
- function __classPrivateFieldGet(receiver, state, kind, f) {
396
- if (kind === "a" && !f)
397
- throw new TypeError("Private accessor was defined without a getter");
398
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
399
- throw new TypeError("Cannot read private member from an object whose class did not declare it");
400
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
401
- }
402
- function __classPrivateFieldSet(receiver, state, value, kind, f) {
403
- if (kind === "m")
404
- throw new TypeError("Private method is not writable");
405
- if (kind === "a" && !f)
406
- throw new TypeError("Private accessor was defined without a setter");
407
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
408
- throw new TypeError("Cannot write private member to an object whose class did not declare it");
409
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
410
- }
411
- function __classPrivateFieldIn(state, receiver) {
412
- if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function"))
413
- throw new TypeError("Cannot use 'in' operator on non-object");
414
- return typeof state === "function" ? receiver === state : state.has(receiver);
415
- }
416
- function __addDisposableResource(env, value, async) {
417
- if (value !== null && value !== void 0) {
418
- if (typeof value !== "object" && typeof value !== "function")
419
- throw new TypeError("Object expected.");
420
- var dispose;
421
- if (async) {
422
- if (!Symbol.asyncDispose)
423
- throw new TypeError("Symbol.asyncDispose is not defined.");
424
- dispose = value[Symbol.asyncDispose];
425
- }
426
- if (dispose === void 0) {
427
- if (!Symbol.dispose)
428
- throw new TypeError("Symbol.dispose is not defined.");
429
- dispose = value[Symbol.dispose];
430
- }
431
- if (typeof dispose !== "function")
432
- throw new TypeError("Object not disposable.");
433
- env.stack.push({ value: value, dispose: dispose, async: async });
434
- }
435
- else if (async) {
436
- env.stack.push({ async: true });
437
- }
438
- return value;
439
- }
440
- var _SuppressedError = typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
441
- var e = new Error(message);
442
- return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
443
- };
444
- function __disposeResources(env) {
445
- function fail(e) {
446
- env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
447
- env.hasError = true;
448
- }
449
- function next() {
450
- while (env.stack.length) {
451
- var rec = env.stack.pop();
452
- try {
453
- var result = rec.dispose && rec.dispose.call(rec.value);
454
- if (rec.async)
455
- return Promise.resolve(result).then(next, function (e) { fail(e); return next(); });
456
- }
457
- catch (e) {
458
- fail(e);
459
- }
460
- }
461
- if (env.hasError)
462
- throw env.error;
463
- }
464
- return next();
465
- }
466
- var tslib_es6 = {
467
- __extends: __extends,
468
- __assign: __assign,
469
- __rest: __rest,
470
- __decorate: __decorate,
471
- __param: __param,
472
- __metadata: __metadata,
473
- __awaiter: __awaiter,
474
- __generator: __generator,
475
- __createBinding: __createBinding,
476
- __exportStar: __exportStar,
477
- __values: __values,
478
- __read: __read,
479
- __spread: __spread,
480
- __spreadArrays: __spreadArrays,
481
- __spreadArray: __spreadArray,
482
- __await: __await,
483
- __asyncGenerator: __asyncGenerator,
484
- __asyncDelegator: __asyncDelegator,
485
- __asyncValues: __asyncValues,
486
- __makeTemplateObject: __makeTemplateObject,
487
- __importStar: __importStar,
488
- __importDefault: __importDefault,
489
- __classPrivateFieldGet: __classPrivateFieldGet,
490
- __classPrivateFieldSet: __classPrivateFieldSet,
491
- __classPrivateFieldIn: __classPrivateFieldIn,
492
- __addDisposableResource: __addDisposableResource,
493
- __disposeResources: __disposeResources,
494
- };
38
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
39
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
40
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
41
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
42
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
43
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
44
+ PERFORMANCE OF THIS SOFTWARE.
45
+ ***************************************************************************** */
46
+ /* global Reflect, Promise */
47
+ var extendStatics = function (d, b) {
48
+ extendStatics = Object.setPrototypeOf ||
49
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
50
+ function (d, b) { for (var p in b)
51
+ if (Object.prototype.hasOwnProperty.call(b, p))
52
+ d[p] = b[p]; };
53
+ return extendStatics(d, b);
54
+ };
55
+ function __extends(d, b) {
56
+ if (typeof b !== "function" && b !== null)
57
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
58
+ extendStatics(d, b);
59
+ function __() { this.constructor = d; }
60
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
61
+ }
62
+ var __assign = function () {
63
+ __assign = Object.assign || function __assign(t) {
64
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
65
+ s = arguments[i];
66
+ for (var p in s)
67
+ if (Object.prototype.hasOwnProperty.call(s, p))
68
+ t[p] = s[p];
69
+ }
70
+ return t;
71
+ };
72
+ return __assign.apply(this, arguments);
73
+ };
74
+ function __rest(s, e) {
75
+ var t = {};
76
+ for (var p in s)
77
+ if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
78
+ t[p] = s[p];
79
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
80
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
81
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
82
+ t[p[i]] = s[p[i]];
83
+ }
84
+ return t;
85
+ }
86
+ function __decorate(decorators, target, key, desc) {
87
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
88
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
89
+ r = Reflect.decorate(decorators, target, key, desc);
90
+ else
91
+ for (var i = decorators.length - 1; i >= 0; i--)
92
+ if (d = decorators[i])
93
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
94
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
95
+ }
96
+ function __param(paramIndex, decorator) {
97
+ return function (target, key) { decorator(target, key, paramIndex); };
98
+ }
99
+ function __metadata(metadataKey, metadataValue) {
100
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
101
+ return Reflect.metadata(metadataKey, metadataValue);
102
+ }
103
+ function __awaiter(thisArg, _arguments, P, generator) {
104
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
105
+ return new (P || (P = Promise))(function (resolve, reject) {
106
+ function fulfilled(value) { try {
107
+ step(generator.next(value));
108
+ }
109
+ catch (e) {
110
+ reject(e);
111
+ } }
112
+ function rejected(value) { try {
113
+ step(generator["throw"](value));
114
+ }
115
+ catch (e) {
116
+ reject(e);
117
+ } }
118
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
119
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
120
+ });
121
+ }
122
+ function __generator(thisArg, body) {
123
+ var _ = { label: 0, sent: function () { if (t[0] & 1)
124
+ throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
125
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
126
+ function verb(n) { return function (v) { return step([n, v]); }; }
127
+ function step(op) {
128
+ if (f)
129
+ throw new TypeError("Generator is already executing.");
130
+ while (_)
131
+ try {
132
+ 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)
133
+ return t;
134
+ if (y = 0, t)
135
+ op = [op[0] & 2, t.value];
136
+ switch (op[0]) {
137
+ case 0:
138
+ case 1:
139
+ t = op;
140
+ break;
141
+ case 4:
142
+ _.label++;
143
+ return { value: op[1], done: false };
144
+ case 5:
145
+ _.label++;
146
+ y = op[1];
147
+ op = [0];
148
+ continue;
149
+ case 7:
150
+ op = _.ops.pop();
151
+ _.trys.pop();
152
+ continue;
153
+ default:
154
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
155
+ _ = 0;
156
+ continue;
157
+ }
158
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
159
+ _.label = op[1];
160
+ break;
161
+ }
162
+ if (op[0] === 6 && _.label < t[1]) {
163
+ _.label = t[1];
164
+ t = op;
165
+ break;
166
+ }
167
+ if (t && _.label < t[2]) {
168
+ _.label = t[2];
169
+ _.ops.push(op);
170
+ break;
171
+ }
172
+ if (t[2])
173
+ _.ops.pop();
174
+ _.trys.pop();
175
+ continue;
176
+ }
177
+ op = body.call(thisArg, _);
178
+ }
179
+ catch (e) {
180
+ op = [6, e];
181
+ y = 0;
182
+ }
183
+ finally {
184
+ f = t = 0;
185
+ }
186
+ if (op[0] & 5)
187
+ throw op[1];
188
+ return { value: op[0] ? op[1] : void 0, done: true };
189
+ }
190
+ }
191
+ var __createBinding = Object.create ? (function (o, m, k, k2) {
192
+ if (k2 === undefined)
193
+ k2 = k;
194
+ Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
195
+ }) : (function (o, m, k, k2) {
196
+ if (k2 === undefined)
197
+ k2 = k;
198
+ o[k2] = m[k];
199
+ });
200
+ function __exportStar(m, o) {
201
+ for (var p in m)
202
+ if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
203
+ __createBinding(o, m, p);
204
+ }
205
+ function __values(o) {
206
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
207
+ if (m)
208
+ return m.call(o);
209
+ if (o && typeof o.length === "number")
210
+ return {
211
+ next: function () {
212
+ if (o && i >= o.length)
213
+ o = void 0;
214
+ return { value: o && o[i++], done: !o };
215
+ }
216
+ };
217
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
218
+ }
219
+ function __read(o, n) {
220
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
221
+ if (!m)
222
+ return o;
223
+ var i = m.call(o), r, ar = [], e;
224
+ try {
225
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
226
+ ar.push(r.value);
227
+ }
228
+ catch (error) {
229
+ e = { error: error };
230
+ }
231
+ finally {
232
+ try {
233
+ if (r && !r.done && (m = i["return"]))
234
+ m.call(i);
235
+ }
236
+ finally {
237
+ if (e)
238
+ throw e.error;
239
+ }
240
+ }
241
+ return ar;
242
+ }
243
+ /** @deprecated */
244
+ function __spread() {
245
+ for (var ar = [], i = 0; i < arguments.length; i++)
246
+ ar = ar.concat(__read(arguments[i]));
247
+ return ar;
248
+ }
249
+ /** @deprecated */
250
+ function __spreadArrays() {
251
+ for (var s = 0, i = 0, il = arguments.length; i < il; i++)
252
+ s += arguments[i].length;
253
+ for (var r = Array(s), k = 0, i = 0; i < il; i++)
254
+ for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
255
+ r[k] = a[j];
256
+ return r;
257
+ }
258
+ function __spreadArray(to, from, pack) {
259
+ if (pack || arguments.length === 2)
260
+ for (var i = 0, l = from.length, ar; i < l; i++) {
261
+ if (ar || !(i in from)) {
262
+ if (!ar)
263
+ ar = Array.prototype.slice.call(from, 0, i);
264
+ ar[i] = from[i];
265
+ }
266
+ }
267
+ return to.concat(ar || from);
268
+ }
269
+ function __await(v) {
270
+ return this instanceof __await ? (this.v = v, this) : new __await(v);
271
+ }
272
+ function __asyncGenerator(thisArg, _arguments, generator) {
273
+ if (!Symbol.asyncIterator)
274
+ throw new TypeError("Symbol.asyncIterator is not defined.");
275
+ var g = generator.apply(thisArg, _arguments || []), i, q = [];
276
+ return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
277
+ function verb(n) { if (g[n])
278
+ i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
279
+ function resume(n, v) { try {
280
+ step(g[n](v));
281
+ }
282
+ catch (e) {
283
+ settle(q[0][3], e);
284
+ } }
285
+ function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
286
+ function fulfill(value) { resume("next", value); }
287
+ function reject(value) { resume("throw", value); }
288
+ function settle(f, v) { if (f(v), q.shift(), q.length)
289
+ resume(q[0][0], q[0][1]); }
290
+ }
291
+ function __asyncDelegator(o) {
292
+ var i, p;
293
+ return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
294
+ 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; }
295
+ }
296
+ function __asyncValues(o) {
297
+ if (!Symbol.asyncIterator)
298
+ throw new TypeError("Symbol.asyncIterator is not defined.");
299
+ var m = o[Symbol.asyncIterator], i;
300
+ 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);
301
+ 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); }); }; }
302
+ function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
303
+ }
304
+ function __makeTemplateObject(cooked, raw) {
305
+ if (Object.defineProperty) {
306
+ Object.defineProperty(cooked, "raw", { value: raw });
307
+ }
308
+ else {
309
+ cooked.raw = raw;
310
+ }
311
+ return cooked;
312
+ }
313
+ ;
314
+ var __setModuleDefault = Object.create ? (function (o, v) {
315
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
316
+ }) : function (o, v) {
317
+ o["default"] = v;
318
+ };
319
+ function __importStar(mod) {
320
+ if (mod && mod.__esModule)
321
+ return mod;
322
+ var result = {};
323
+ if (mod != null)
324
+ for (var k in mod)
325
+ if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
326
+ __createBinding(result, mod, k);
327
+ __setModuleDefault(result, mod);
328
+ return result;
329
+ }
330
+ function __importDefault(mod) {
331
+ return (mod && mod.__esModule) ? mod : { default: mod };
332
+ }
333
+ function __classPrivateFieldGet(receiver, state, kind, f) {
334
+ if (kind === "a" && !f)
335
+ throw new TypeError("Private accessor was defined without a getter");
336
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
337
+ throw new TypeError("Cannot read private member from an object whose class did not declare it");
338
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
339
+ }
340
+ function __classPrivateFieldSet(receiver, state, value, kind, f) {
341
+ if (kind === "m")
342
+ throw new TypeError("Private method is not writable");
343
+ if (kind === "a" && !f)
344
+ throw new TypeError("Private accessor was defined without a setter");
345
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
346
+ throw new TypeError("Cannot write private member to an object whose class did not declare it");
347
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
348
+ }
495
349
 
496
- /** Default values for the input count options. */
497
- var TUI_INPUT_COUNT_DEFAULT_OPTIONS = {
498
- icons: {
499
- up: "tuiIconPlus",
500
- down: "tuiIconMinus",
501
- },
502
- appearance: "textfield",
503
- hideButtons: false,
504
- min: 0,
505
- max: Number.MAX_SAFE_INTEGER,
506
- step: 1,
507
- postfix: "",
508
- };
509
- /**
510
- * Default parameters for input count component
511
- */
512
- var TUI_INPUT_COUNT_OPTIONS = cdk.tuiCreateToken(TUI_INPUT_COUNT_DEFAULT_OPTIONS);
513
- function tuiInputCountOptionsProvider(options) {
514
- return cdk.tuiProvideOptions(TUI_INPUT_COUNT_OPTIONS, options, TUI_INPUT_COUNT_DEFAULT_OPTIONS);
515
- }
350
+ /** Default values for the input count options. */
351
+ var TUI_INPUT_COUNT_DEFAULT_OPTIONS = {
352
+ icons: {
353
+ up: 'tuiIconPlus',
354
+ down: 'tuiIconMinus',
355
+ },
356
+ appearance: 'textfield',
357
+ hideButtons: false,
358
+ min: 0,
359
+ max: Number.MAX_SAFE_INTEGER,
360
+ step: 1,
361
+ postfix: '',
362
+ };
363
+ /**
364
+ * Default parameters for input count component
365
+ */
366
+ var TUI_INPUT_COUNT_OPTIONS = cdk.tuiCreateToken(TUI_INPUT_COUNT_DEFAULT_OPTIONS);
367
+ function tuiInputCountOptionsProvider(options) {
368
+ return cdk.tuiProvideOptions(TUI_INPUT_COUNT_OPTIONS, options, TUI_INPUT_COUNT_DEFAULT_OPTIONS);
369
+ }
516
370
 
517
- /**
518
- * @deprecated use {@link TuiInputNumberComponent} with [step] instead
519
- */
520
- var TuiInputCountComponent = /** @class */ (function (_super) {
521
- __extends(TuiInputCountComponent, _super);
522
- function TuiInputCountComponent(control, cdr, textfieldController, minusTexts$, isMobile, options, numberFormat) {
523
- var _this = _super.call(this, control, cdr) || this;
524
- _this.textfieldController = textfieldController;
525
- _this.minusTexts$ = minusTexts$;
526
- _this.isMobile = isMobile;
527
- _this.options = options;
528
- _this.numberFormat = numberFormat;
529
- _this.step = _this.options.step;
530
- _this.min = _this.options.min;
531
- _this.max = _this.options.max;
532
- _this.hideButtons = _this.options.hideButtons;
533
- /** @deprecated use `tuiTextfieldPrefix` from {@link TuiTextfieldControllerModule} instead */
534
- _this.prefix = '';
535
- /** @deprecated use `tuiTextfieldPostfix` from {@link TuiTextfieldControllerModule} instead */
536
- _this.postfix = _this.options.postfix;
537
- return _this;
538
- }
539
- Object.defineProperty(TuiInputCountComponent.prototype, "computedMin", {
540
- get: function () {
541
- var _a;
542
- return (_a = this.min) !== null && _a !== void 0 ? _a : this.options.min;
543
- },
544
- enumerable: false,
545
- configurable: true
546
- });
547
- Object.defineProperty(TuiInputCountComponent.prototype, "computedMax", {
548
- get: function () {
549
- var _a;
550
- return (_a = this.max) !== null && _a !== void 0 ? _a : this.options.max;
551
- },
552
- enumerable: false,
553
- configurable: true
554
- });
555
- Object.defineProperty(TuiInputCountComponent.prototype, "buttonsHidden", {
556
- get: function () {
557
- return this.hideButtons || this.textfieldController.appearance === 'table';
558
- },
559
- enumerable: false,
560
- configurable: true
561
- });
562
- Object.defineProperty(TuiInputCountComponent.prototype, "iconUp", {
563
- get: function () {
564
- return this.options.icons.up;
565
- },
566
- enumerable: false,
567
- configurable: true
568
- });
569
- Object.defineProperty(TuiInputCountComponent.prototype, "iconDown", {
570
- get: function () {
571
- return this.options.icons.down;
572
- },
573
- enumerable: false,
574
- configurable: true
575
- });
576
- Object.defineProperty(TuiInputCountComponent.prototype, "nativeFocusableElement", {
577
- get: function () {
578
- return !this.inputNumber || this.computedDisabled
579
- ? null
580
- : this.inputNumber.nativeFocusableElement;
581
- },
582
- enumerable: false,
583
- configurable: true
584
- });
585
- Object.defineProperty(TuiInputCountComponent.prototype, "size", {
586
- get: function () {
587
- return this.textfieldController.size;
588
- },
589
- enumerable: false,
590
- configurable: true
591
- });
592
- Object.defineProperty(TuiInputCountComponent.prototype, "focused", {
593
- get: function () {
594
- return cdk.tuiIsNativeFocused(this.nativeFocusableElement);
595
- },
596
- enumerable: false,
597
- configurable: true
598
- });
599
- Object.defineProperty(TuiInputCountComponent.prototype, "minusButtonDisabled", {
600
- get: function () {
601
- return (!this.interactive ||
602
- (cdk.tuiIsPresent(this.value) && this.value <= this.computedMin));
603
- },
604
- enumerable: false,
605
- configurable: true
606
- });
607
- Object.defineProperty(TuiInputCountComponent.prototype, "plusButtonDisabled", {
608
- get: function () {
609
- return (!this.interactive ||
610
- (cdk.tuiIsPresent(this.value) && this.value >= this.computedMax));
611
- },
612
- enumerable: false,
613
- configurable: true
614
- });
615
- TuiInputCountComponent.prototype.onButtonMouseDown = function (event, disabled) {
616
- if (disabled === void 0) { disabled = false; }
617
- if (disabled || !this.nativeFocusableElement || this.isMobile) {
618
- return;
619
- }
620
- event.preventDefault();
621
- this.nativeFocusableElement.focus();
622
- };
623
- TuiInputCountComponent.prototype.onFocused = function (focused) {
624
- this.updateFocused(focused);
625
- };
626
- /**
627
- * @deprecated
628
- * TODO: drop in v4.0 as unused method
629
- */
630
- TuiInputCountComponent.prototype.onInputNumberChange = function (value) {
631
- this.value = value;
632
- };
633
- /** @deprecated */
634
- TuiInputCountComponent.prototype.onValueChange = function (value) {
635
- this.value = kit.maskitoParseNumber(value, this.numberFormat.decimalSeparator);
636
- };
637
- TuiInputCountComponent.prototype.decreaseValue = function () {
638
- if (this.readOnly) {
639
- return;
640
- }
641
- var newValue = (this.value || 0) - this.step;
642
- this.safeUpdateValue(newValue);
643
- };
644
- TuiInputCountComponent.prototype.increaseValue = function () {
645
- if (this.readOnly) {
646
- return;
647
- }
648
- var newValue = (this.value || 0) + this.step;
649
- this.safeUpdateValue(newValue);
650
- };
651
- TuiInputCountComponent.prototype.onKeydown = function (event) {
652
- switch (event.key) {
653
- case 'ArrowUp':
654
- case 'Up':
655
- this.increaseValue();
656
- event.preventDefault();
657
- break;
658
- case 'ArrowDown':
659
- case 'Down':
660
- this.decreaseValue();
661
- event.preventDefault();
662
- break;
663
- default:
664
- break;
665
- }
666
- };
667
- TuiInputCountComponent.prototype.safeUpdateValue = function (newValue) {
668
- this.value = cdk.tuiClamp(newValue, this.computedMin, this.computedMax);
669
- };
670
- return TuiInputCountComponent;
671
- }(cdk.AbstractTuiNullableControl));
672
- TuiInputCountComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputCountComponent, deps: [{ token: i3.NgControl, optional: true, self: true }, { token: i0.ChangeDetectorRef }, { token: i2.TUI_TEXTFIELD_WATCHED_CONTROLLER }, { token: tokens.TUI_PLUS_MINUS_TEXTS }, { token: cdk.TUI_IS_MOBILE }, { token: TUI_INPUT_COUNT_OPTIONS }, { token: i2.TUI_NUMBER_FORMAT }], target: i0__namespace.ɵɵFactoryTarget.Component });
673
- TuiInputCountComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiInputCountComponent, selector: "tui-input-count", inputs: { step: "step", min: "min", max: "max", hideButtons: "hideButtons", prefix: "prefix", postfix: "postfix" }, host: { properties: { "class._hide-buttons": "this.buttonsHidden", "attr.data-size": "this.size" } }, providers: [
674
- cdk.tuiAsFocusableItemAccessor(TuiInputCountComponent),
675
- cdk.tuiAsControl(TuiInputCountComponent),
676
- i2.TEXTFIELD_CONTROLLER_PROVIDER,
677
- ], viewQueries: [{ propertyName: "inputNumber", first: true, predicate: i1.TuiInputNumberComponent, descendants: true }], usesInheritance: true, ngImport: i0__namespace, template: "<tui-input-number\n decimal=\"never\"\n class=\"t-textfield\"\n [disabled]=\"computedDisabled\"\n [focusable]=\"focusable\"\n [max]=\"computedMax\"\n [min]=\"computedMin\"\n [nativeId]=\"nativeId\"\n [postfix]=\"postfix\"\n [prefix]=\"prefix\"\n [pseudoActive]=\"pseudoActive\"\n [pseudoFocus]=\"pseudoFocus\"\n [pseudoHover]=\"pseudoHover\"\n [pseudoInvalid]=\"pseudoInvalid\"\n [readOnly]=\"readOnly\"\n [(ngModel)]=\"value\"\n (focusedChange)=\"onFocused($event)\"\n (keydown)=\"onKeydown($event)\"\n>\n <ng-content></ng-content>\n <ng-content\n ngProjectAs=\"input\"\n select=\"input\"\n ></ng-content>\n</tui-input-number>\n<ng-container *ngIf=\"!buttonsHidden\">\n <ng-container *ngIf=\"minusTexts$ | async as texts\">\n <section class=\"t-buttons\">\n <button\n automation-id=\"tui-input-count__plus-button\"\n size=\"s\"\n tuiIconButton\n type=\"button\"\n class=\"t-button t-button_plus\"\n [appearance]=\"options.appearance\"\n [disabled]=\"plusButtonDisabled\"\n [focusable]=\"false\"\n [icon]=\"iconUp\"\n [title]=\"texts[0]\"\n (click)=\"increaseValue()\"\n (mousedown)=\"onButtonMouseDown($event, plusButtonDisabled)\"\n ></button>\n <button\n automation-id=\"tui-input-count__minus-button\"\n size=\"s\"\n tuiIconButton\n type=\"button\"\n class=\"t-button t-button_minus\"\n [appearance]=\"options.appearance\"\n [disabled]=\"minusButtonDisabled\"\n [focusable]=\"false\"\n [icon]=\"iconDown\"\n [title]=\"texts[1]\"\n (click)=\"decreaseValue()\"\n (mousedown)=\"onButtonMouseDown($event, minusButtonDisabled)\"\n ></button>\n </section>\n </ng-container>\n</ng-container>\n", styles: [":host{display:flex;font:var(--tui-font-text-s);border-radius:var(--tui-radius-m);height:var(--tui-height-m);color:var(--tui-text-01);text-align:left}:host._disabled{pointer-events:none}:host[data-size=l]{font:var(--tui-font-text-m);height:var(--tui-height-l)}.t-textfield{position:relative;border-radius:inherit;text-align:inherit;flex-grow:1;min-width:0}:host:not(._hide-buttons) .t-textfield{border-top-right-radius:0;border-bottom-right-radius:0}.t-buttons{display:flex;flex-direction:column;margin-left:.125rem;height:100%;border-radius:inherit}.t-buttons .t-button{display:flex;width:calc(var(--tui-height-m) * .75);height:calc(50% - .0625rem);border-radius:0}.t-buttons .t-button_plus{margin-bottom:.125rem;border-top-right-radius:inherit}.t-buttons .t-button_minus{border-bottom-right-radius:inherit}:host[data-size=l] .t-buttons .t-button{width:calc(var(--tui-height-l) * .75)}\n"], components: [{ type: i1__namespace.TuiInputNumberComponent, selector: "tui-input-number", inputs: ["min", "max", "decimal", "precision", "step", "prefix", "postfix"] }, { type: i2__namespace.TuiButtonComponent, selector: "button[tuiButton], button[tuiIconButton], a[tuiButton], a[tuiIconButton]", inputs: ["appearance", "disabled", "icon", "iconRight", "shape", "showLoader", "size"] }], directives: [{ type: i1__namespace.TuiInputNumberDirective, selector: "tui-input-number" }, { type: i3__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i3__namespace.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i4__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i4__namespace.AsyncPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
678
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputCountComponent, decorators: [{
679
- type: i0.Component,
680
- args: [{
681
- selector: 'tui-input-count',
682
- templateUrl: './input-count.template.html',
683
- styleUrls: ['./input-count.style.less'],
684
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
685
- providers: [
686
- cdk.tuiAsFocusableItemAccessor(TuiInputCountComponent),
687
- cdk.tuiAsControl(TuiInputCountComponent),
688
- i2.TEXTFIELD_CONTROLLER_PROVIDER,
689
- ],
690
- }]
691
- }], ctorParameters: function () {
692
- return [{ type: i3__namespace.NgControl, decorators: [{
693
- type: i0.Optional
694
- }, {
695
- type: i0.Self
696
- }, {
697
- type: i0.Inject,
698
- args: [i3.NgControl]
699
- }] }, { type: i0__namespace.ChangeDetectorRef, decorators: [{
700
- type: i0.Inject,
701
- args: [i0.ChangeDetectorRef]
702
- }] }, { type: i2__namespace.TuiTextfieldController, decorators: [{
703
- type: i0.Inject,
704
- args: [i2.TUI_TEXTFIELD_WATCHED_CONTROLLER]
705
- }] }, { type: i5__namespace.Observable, decorators: [{
706
- type: i0.Inject,
707
- args: [tokens.TUI_PLUS_MINUS_TEXTS]
708
- }] }, { type: undefined, decorators: [{
709
- type: i0.Inject,
710
- args: [cdk.TUI_IS_MOBILE]
711
- }] }, { type: undefined, decorators: [{
712
- type: i0.Inject,
713
- args: [TUI_INPUT_COUNT_OPTIONS]
714
- }] }, { type: undefined, decorators: [{
715
- type: i0.Inject,
716
- args: [i2.TUI_NUMBER_FORMAT]
717
- }] }];
718
- }, propDecorators: { inputNumber: [{
719
- type: i0.ViewChild,
720
- args: [i1.TuiInputNumberComponent]
721
- }], step: [{
722
- type: i0.Input
723
- }], min: [{
724
- type: i0.Input
725
- }], max: [{
726
- type: i0.Input
727
- }], hideButtons: [{
728
- type: i0.Input
729
- }], prefix: [{
730
- type: i0.Input
731
- }], postfix: [{
732
- type: i0.Input
733
- }], buttonsHidden: [{
734
- type: i0.HostBinding,
735
- args: ['class._hide-buttons']
736
- }], size: [{
737
- type: i0.HostBinding,
738
- args: ['attr.data-size']
739
- }] } });
371
+ /**
372
+ * @deprecated use {@link TuiInputNumberComponent} with [step] instead
373
+ */
374
+ var TuiInputCountComponent = /** @class */ (function (_super) {
375
+ __extends(TuiInputCountComponent, _super);
376
+ function TuiInputCountComponent(control, cdr, textfieldController, minusTexts$, isMobile, options, numberFormat) {
377
+ var _this = _super.call(this, control, cdr) || this;
378
+ _this.textfieldController = textfieldController;
379
+ _this.minusTexts$ = minusTexts$;
380
+ _this.isMobile = isMobile;
381
+ _this.options = options;
382
+ _this.numberFormat = numberFormat;
383
+ _this.step = _this.options.step;
384
+ _this.min = _this.options.min;
385
+ _this.max = _this.options.max;
386
+ _this.hideButtons = _this.options.hideButtons;
387
+ /** @deprecated use `tuiTextfieldPrefix` from {@link TuiTextfieldControllerModule} instead */
388
+ _this.prefix = '';
389
+ /** @deprecated use `tuiTextfieldPostfix` from {@link TuiTextfieldControllerModule} instead */
390
+ _this.postfix = _this.options.postfix;
391
+ return _this;
392
+ }
393
+ Object.defineProperty(TuiInputCountComponent.prototype, "computedMin", {
394
+ get: function () {
395
+ var _a;
396
+ return (_a = this.min) !== null && _a !== void 0 ? _a : this.options.min;
397
+ },
398
+ enumerable: false,
399
+ configurable: true
400
+ });
401
+ Object.defineProperty(TuiInputCountComponent.prototype, "computedMax", {
402
+ get: function () {
403
+ var _a;
404
+ return (_a = this.max) !== null && _a !== void 0 ? _a : this.options.max;
405
+ },
406
+ enumerable: false,
407
+ configurable: true
408
+ });
409
+ Object.defineProperty(TuiInputCountComponent.prototype, "buttonsHidden", {
410
+ get: function () {
411
+ return this.hideButtons || this.textfieldController.appearance === 'table';
412
+ },
413
+ enumerable: false,
414
+ configurable: true
415
+ });
416
+ Object.defineProperty(TuiInputCountComponent.prototype, "iconUp", {
417
+ get: function () {
418
+ return this.options.icons.up;
419
+ },
420
+ enumerable: false,
421
+ configurable: true
422
+ });
423
+ Object.defineProperty(TuiInputCountComponent.prototype, "iconDown", {
424
+ get: function () {
425
+ return this.options.icons.down;
426
+ },
427
+ enumerable: false,
428
+ configurable: true
429
+ });
430
+ Object.defineProperty(TuiInputCountComponent.prototype, "nativeFocusableElement", {
431
+ get: function () {
432
+ return !this.inputNumber || this.computedDisabled
433
+ ? null
434
+ : this.inputNumber.nativeFocusableElement;
435
+ },
436
+ enumerable: false,
437
+ configurable: true
438
+ });
439
+ Object.defineProperty(TuiInputCountComponent.prototype, "size", {
440
+ get: function () {
441
+ return this.textfieldController.size;
442
+ },
443
+ enumerable: false,
444
+ configurable: true
445
+ });
446
+ Object.defineProperty(TuiInputCountComponent.prototype, "focused", {
447
+ get: function () {
448
+ return cdk.tuiIsNativeFocused(this.nativeFocusableElement);
449
+ },
450
+ enumerable: false,
451
+ configurable: true
452
+ });
453
+ Object.defineProperty(TuiInputCountComponent.prototype, "minusButtonDisabled", {
454
+ get: function () {
455
+ return (!this.interactive ||
456
+ (cdk.tuiIsPresent(this.value) && this.value <= this.computedMin));
457
+ },
458
+ enumerable: false,
459
+ configurable: true
460
+ });
461
+ Object.defineProperty(TuiInputCountComponent.prototype, "plusButtonDisabled", {
462
+ get: function () {
463
+ return (!this.interactive ||
464
+ (cdk.tuiIsPresent(this.value) && this.value >= this.computedMax));
465
+ },
466
+ enumerable: false,
467
+ configurable: true
468
+ });
469
+ TuiInputCountComponent.prototype.onButtonMouseDown = function (event, disabled) {
470
+ if (disabled === void 0) { disabled = false; }
471
+ if (disabled || !this.nativeFocusableElement || this.isMobile) {
472
+ return;
473
+ }
474
+ event.preventDefault();
475
+ this.nativeFocusableElement.focus();
476
+ };
477
+ TuiInputCountComponent.prototype.onFocused = function (focused) {
478
+ this.updateFocused(focused);
479
+ };
480
+ /**
481
+ * @deprecated
482
+ * TODO: drop in v4.0 as unused method
483
+ */
484
+ TuiInputCountComponent.prototype.onInputNumberChange = function (value) {
485
+ this.value = value;
486
+ };
487
+ /** @deprecated */
488
+ TuiInputCountComponent.prototype.onValueChange = function (value) {
489
+ this.value = kit.maskitoParseNumber(value, this.numberFormat.decimalSeparator);
490
+ };
491
+ TuiInputCountComponent.prototype.decreaseValue = function () {
492
+ if (this.readOnly) {
493
+ return;
494
+ }
495
+ var newValue = (this.value || 0) - this.step;
496
+ this.safeUpdateValue(newValue);
497
+ };
498
+ TuiInputCountComponent.prototype.increaseValue = function () {
499
+ if (this.readOnly) {
500
+ return;
501
+ }
502
+ var newValue = (this.value || 0) + this.step;
503
+ this.safeUpdateValue(newValue);
504
+ };
505
+ TuiInputCountComponent.prototype.onKeydown = function (event) {
506
+ switch (event.key) {
507
+ case 'ArrowUp':
508
+ case 'Up':
509
+ this.increaseValue();
510
+ event.preventDefault();
511
+ break;
512
+ case 'ArrowDown':
513
+ case 'Down':
514
+ this.decreaseValue();
515
+ event.preventDefault();
516
+ break;
517
+ default:
518
+ break;
519
+ }
520
+ };
521
+ TuiInputCountComponent.prototype.safeUpdateValue = function (newValue) {
522
+ this.value = cdk.tuiClamp(newValue, this.computedMin, this.computedMax);
523
+ };
524
+ return TuiInputCountComponent;
525
+ }(cdk.AbstractTuiNullableControl));
526
+ TuiInputCountComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputCountComponent, deps: [{ token: i3.NgControl, optional: true, self: true }, { token: i0.ChangeDetectorRef }, { token: i2.TUI_TEXTFIELD_WATCHED_CONTROLLER }, { token: tokens.TUI_PLUS_MINUS_TEXTS }, { token: cdk.TUI_IS_MOBILE }, { token: TUI_INPUT_COUNT_OPTIONS }, { token: i2.TUI_NUMBER_FORMAT }], target: i0__namespace.ɵɵFactoryTarget.Component });
527
+ TuiInputCountComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiInputCountComponent, selector: "tui-input-count", inputs: { step: "step", min: "min", max: "max", hideButtons: "hideButtons", prefix: "prefix", postfix: "postfix" }, host: { properties: { "class._hide-buttons": "this.buttonsHidden", "attr.data-size": "this.size" } }, providers: [
528
+ cdk.tuiAsFocusableItemAccessor(TuiInputCountComponent),
529
+ cdk.tuiAsControl(TuiInputCountComponent),
530
+ i2.TEXTFIELD_CONTROLLER_PROVIDER,
531
+ ], viewQueries: [{ propertyName: "inputNumber", first: true, predicate: i1.TuiInputNumberComponent, descendants: true }], usesInheritance: true, ngImport: i0__namespace, template: "<tui-input-number\n decimal=\"never\"\n class=\"t-textfield\"\n [disabled]=\"computedDisabled\"\n [focusable]=\"focusable\"\n [max]=\"computedMax\"\n [min]=\"computedMin\"\n [nativeId]=\"nativeId\"\n [postfix]=\"postfix\"\n [prefix]=\"prefix\"\n [pseudoActive]=\"pseudoActive\"\n [pseudoFocus]=\"pseudoFocus\"\n [pseudoHover]=\"pseudoHover\"\n [pseudoInvalid]=\"pseudoInvalid\"\n [readOnly]=\"readOnly\"\n [(ngModel)]=\"value\"\n (focusedChange)=\"onFocused($event)\"\n (keydown)=\"onKeydown($event)\"\n>\n <ng-content></ng-content>\n <ng-content\n ngProjectAs=\"input\"\n select=\"input\"\n ></ng-content>\n</tui-input-number>\n<ng-container *ngIf=\"!buttonsHidden\">\n <ng-container *ngIf=\"minusTexts$ | async as texts\">\n <section class=\"t-buttons\">\n <button\n automation-id=\"tui-input-count__plus-button\"\n size=\"s\"\n tuiIconButton\n type=\"button\"\n class=\"t-button t-button_plus\"\n [appearance]=\"options.appearance\"\n [disabled]=\"plusButtonDisabled\"\n [focusable]=\"false\"\n [icon]=\"iconUp\"\n [title]=\"texts[0]\"\n (click)=\"increaseValue()\"\n (mousedown)=\"onButtonMouseDown($event, plusButtonDisabled)\"\n ></button>\n <button\n automation-id=\"tui-input-count__minus-button\"\n size=\"s\"\n tuiIconButton\n type=\"button\"\n class=\"t-button t-button_minus\"\n [appearance]=\"options.appearance\"\n [disabled]=\"minusButtonDisabled\"\n [focusable]=\"false\"\n [icon]=\"iconDown\"\n [title]=\"texts[1]\"\n (click)=\"decreaseValue()\"\n (mousedown)=\"onButtonMouseDown($event, minusButtonDisabled)\"\n ></button>\n </section>\n </ng-container>\n</ng-container>\n", styles: [":host{display:flex;font:var(--tui-font-text-s);border-radius:var(--tui-radius-m);height:var(--tui-height-m);color:var(--tui-text-01);text-align:left}:host._disabled{pointer-events:none}:host[data-size=l]{font:var(--tui-font-text-m);height:var(--tui-height-l)}.t-textfield{position:relative;border-radius:inherit;text-align:inherit;flex-grow:1;min-width:0}:host:not(._hide-buttons) .t-textfield{border-top-right-radius:0;border-bottom-right-radius:0}.t-buttons{display:flex;flex-direction:column;margin-left:.125rem;height:100%;border-radius:inherit}.t-buttons .t-button{display:flex;width:calc(var(--tui-height-m) * .75);height:calc(50% - .0625rem);border-radius:0}.t-buttons .t-button_plus{margin-bottom:.125rem;border-top-right-radius:inherit}.t-buttons .t-button_minus{border-bottom-right-radius:inherit}:host[data-size=l] .t-buttons .t-button{width:calc(var(--tui-height-l) * .75)}\n"], components: [{ type: i1__namespace.TuiInputNumberComponent, selector: "tui-input-number", inputs: ["min", "max", "decimal", "precision", "step", "prefix", "postfix"] }, { type: i2__namespace.TuiButtonComponent, selector: "button[tuiButton], button[tuiIconButton], a[tuiButton], a[tuiIconButton]", inputs: ["appearance", "disabled", "icon", "iconRight", "shape", "showLoader", "size"] }], directives: [{ type: i1__namespace.TuiInputNumberDirective, selector: "tui-input-number" }, { type: i3__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i3__namespace.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i4__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i4__namespace.AsyncPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
532
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputCountComponent, decorators: [{
533
+ type: i0.Component,
534
+ args: [{
535
+ selector: 'tui-input-count',
536
+ templateUrl: './input-count.template.html',
537
+ styleUrls: ['./input-count.style.less'],
538
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
539
+ providers: [
540
+ cdk.tuiAsFocusableItemAccessor(TuiInputCountComponent),
541
+ cdk.tuiAsControl(TuiInputCountComponent),
542
+ i2.TEXTFIELD_CONTROLLER_PROVIDER,
543
+ ],
544
+ }]
545
+ }], ctorParameters: function () {
546
+ return [{ type: i3__namespace.NgControl, decorators: [{
547
+ type: i0.Optional
548
+ }, {
549
+ type: i0.Self
550
+ }, {
551
+ type: i0.Inject,
552
+ args: [i3.NgControl]
553
+ }] }, { type: i0__namespace.ChangeDetectorRef, decorators: [{
554
+ type: i0.Inject,
555
+ args: [i0.ChangeDetectorRef]
556
+ }] }, { type: i2__namespace.TuiTextfieldController, decorators: [{
557
+ type: i0.Inject,
558
+ args: [i2.TUI_TEXTFIELD_WATCHED_CONTROLLER]
559
+ }] }, { type: i5__namespace.Observable, decorators: [{
560
+ type: i0.Inject,
561
+ args: [tokens.TUI_PLUS_MINUS_TEXTS]
562
+ }] }, { type: undefined, decorators: [{
563
+ type: i0.Inject,
564
+ args: [cdk.TUI_IS_MOBILE]
565
+ }] }, { type: undefined, decorators: [{
566
+ type: i0.Inject,
567
+ args: [TUI_INPUT_COUNT_OPTIONS]
568
+ }] }, { type: undefined, decorators: [{
569
+ type: i0.Inject,
570
+ args: [i2.TUI_NUMBER_FORMAT]
571
+ }] }];
572
+ }, propDecorators: { inputNumber: [{
573
+ type: i0.ViewChild,
574
+ args: [i1.TuiInputNumberComponent]
575
+ }], step: [{
576
+ type: i0.Input
577
+ }], min: [{
578
+ type: i0.Input
579
+ }], max: [{
580
+ type: i0.Input
581
+ }], hideButtons: [{
582
+ type: i0.Input
583
+ }], prefix: [{
584
+ type: i0.Input
585
+ }], postfix: [{
586
+ type: i0.Input
587
+ }], buttonsHidden: [{
588
+ type: i0.HostBinding,
589
+ args: ['class._hide-buttons']
590
+ }], size: [{
591
+ type: i0.HostBinding,
592
+ args: ['attr.data-size']
593
+ }] } });
740
594
 
741
- var TuiInputCountDirective = /** @class */ (function (_super) {
742
- __extends(TuiInputCountDirective, _super);
743
- function TuiInputCountDirective() {
744
- return _super !== null && _super.apply(this, arguments) || this;
745
- }
746
- TuiInputCountDirective.prototype.onValueChange = function (value) {
747
- this.host.onValueChange(value);
748
- };
749
- TuiInputCountDirective.prototype.ngAfterViewInit = function () {
750
- if (this.host.nativeFocusableElement) {
751
- var nativeFocusableElement = this.host.nativeFocusableElement;
752
- nativeFocusableElement.autocomplete = 'off';
753
- nativeFocusableElement.inputMode = 'numeric';
754
- nativeFocusableElement.maxLength =
755
- nativeFocusableElement.maxLength > -1
756
- ? nativeFocusableElement.maxLength
757
- : 18;
758
- }
759
- };
760
- return TuiInputCountDirective;
761
- }(i2.AbstractTuiTextfieldHost));
762
- TuiInputCountDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputCountDirective, deps: null, target: i0__namespace.ɵɵFactoryTarget.Directive });
763
- TuiInputCountDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiInputCountDirective, selector: "tui-input-count", providers: [i2.tuiAsTextfieldHost(TuiInputCountDirective)], usesInheritance: true, ngImport: i0__namespace });
764
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputCountDirective, decorators: [{
765
- type: i0.Directive,
766
- args: [{
767
- selector: 'tui-input-count',
768
- providers: [i2.tuiAsTextfieldHost(TuiInputCountDirective)],
769
- }]
770
- }] });
595
+ var TuiInputCountDirective = /** @class */ (function (_super) {
596
+ __extends(TuiInputCountDirective, _super);
597
+ function TuiInputCountDirective() {
598
+ return _super !== null && _super.apply(this, arguments) || this;
599
+ }
600
+ TuiInputCountDirective.prototype.onValueChange = function (value) {
601
+ this.host.onValueChange(value);
602
+ };
603
+ TuiInputCountDirective.prototype.ngAfterViewInit = function () {
604
+ if (this.host.nativeFocusableElement) {
605
+ var nativeFocusableElement = this.host.nativeFocusableElement;
606
+ nativeFocusableElement.autocomplete = 'off';
607
+ nativeFocusableElement.inputMode = 'numeric';
608
+ nativeFocusableElement.maxLength =
609
+ nativeFocusableElement.maxLength > -1
610
+ ? nativeFocusableElement.maxLength
611
+ : 18;
612
+ }
613
+ };
614
+ return TuiInputCountDirective;
615
+ }(i2.AbstractTuiTextfieldHost));
616
+ TuiInputCountDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputCountDirective, deps: null, target: i0__namespace.ɵɵFactoryTarget.Directive });
617
+ TuiInputCountDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiInputCountDirective, selector: "tui-input-count", providers: [i2.tuiAsTextfieldHost(TuiInputCountDirective)], usesInheritance: true, ngImport: i0__namespace });
618
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputCountDirective, decorators: [{
619
+ type: i0.Directive,
620
+ args: [{
621
+ selector: 'tui-input-count',
622
+ providers: [i2.tuiAsTextfieldHost(TuiInputCountDirective)],
623
+ }]
624
+ }] });
771
625
 
772
- /**
773
- * @deprecated use {@link TuiInputNumberComponent} with [step] instead
774
- */
775
- var TuiInputCountModule = /** @class */ (function () {
776
- function TuiInputCountModule() {
777
- }
778
- return TuiInputCountModule;
779
- }());
780
- TuiInputCountModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputCountModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
781
- TuiInputCountModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputCountModule, declarations: [TuiInputCountComponent, TuiInputCountDirective], imports: [i4.CommonModule,
782
- i3.FormsModule,
783
- i2.TuiButtonModule,
784
- i2.TuiPrimitiveTextfieldModule,
785
- i2.TuiTextfieldControllerModule,
786
- directives.TuiValueAccessorModule,
787
- i1.TuiInputNumberModule], exports: [TuiInputCountComponent, TuiInputCountDirective, i2.TuiTextfieldComponent] });
788
- TuiInputCountModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputCountModule, imports: [[
789
- i4.CommonModule,
790
- i3.FormsModule,
791
- i2.TuiButtonModule,
792
- i2.TuiPrimitiveTextfieldModule,
793
- i2.TuiTextfieldControllerModule,
794
- directives.TuiValueAccessorModule,
795
- i1.TuiInputNumberModule,
796
- ]] });
797
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputCountModule, decorators: [{
798
- type: i0.NgModule,
799
- args: [{
800
- imports: [
801
- i4.CommonModule,
802
- i3.FormsModule,
803
- i2.TuiButtonModule,
804
- i2.TuiPrimitiveTextfieldModule,
805
- i2.TuiTextfieldControllerModule,
806
- directives.TuiValueAccessorModule,
807
- i1.TuiInputNumberModule,
808
- ],
809
- declarations: [TuiInputCountComponent, TuiInputCountDirective],
810
- exports: [TuiInputCountComponent, TuiInputCountDirective, i2.TuiTextfieldComponent],
811
- }]
812
- }] });
626
+ /**
627
+ * @deprecated use {@link TuiInputNumberComponent} with [step] instead
628
+ */
629
+ var TuiInputCountModule = /** @class */ (function () {
630
+ function TuiInputCountModule() {
631
+ }
632
+ return TuiInputCountModule;
633
+ }());
634
+ TuiInputCountModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputCountModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
635
+ TuiInputCountModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputCountModule, declarations: [TuiInputCountComponent, TuiInputCountDirective], imports: [i4.CommonModule,
636
+ i3.FormsModule,
637
+ i2.TuiButtonModule,
638
+ i2.TuiPrimitiveTextfieldModule,
639
+ i2.TuiTextfieldControllerModule,
640
+ directives.TuiValueAccessorModule,
641
+ i1.TuiInputNumberModule], exports: [TuiInputCountComponent, TuiInputCountDirective, i2.TuiTextfieldComponent] });
642
+ TuiInputCountModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputCountModule, imports: [[
643
+ i4.CommonModule,
644
+ i3.FormsModule,
645
+ i2.TuiButtonModule,
646
+ i2.TuiPrimitiveTextfieldModule,
647
+ i2.TuiTextfieldControllerModule,
648
+ directives.TuiValueAccessorModule,
649
+ i1.TuiInputNumberModule,
650
+ ]] });
651
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputCountModule, decorators: [{
652
+ type: i0.NgModule,
653
+ args: [{
654
+ imports: [
655
+ i4.CommonModule,
656
+ i3.FormsModule,
657
+ i2.TuiButtonModule,
658
+ i2.TuiPrimitiveTextfieldModule,
659
+ i2.TuiTextfieldControllerModule,
660
+ directives.TuiValueAccessorModule,
661
+ i1.TuiInputNumberModule,
662
+ ],
663
+ declarations: [TuiInputCountComponent, TuiInputCountDirective],
664
+ exports: [TuiInputCountComponent, TuiInputCountDirective, i2.TuiTextfieldComponent],
665
+ }]
666
+ }] });
813
667
 
814
- /**
815
- * Generated bundle index. Do not edit.
816
- */
668
+ /**
669
+ * Generated bundle index. Do not edit.
670
+ */
817
671
 
818
- exports.TUI_INPUT_COUNT_DEFAULT_OPTIONS = TUI_INPUT_COUNT_DEFAULT_OPTIONS;
819
- exports.TUI_INPUT_COUNT_OPTIONS = TUI_INPUT_COUNT_OPTIONS;
820
- exports.TuiInputCountComponent = TuiInputCountComponent;
821
- exports.TuiInputCountDirective = TuiInputCountDirective;
822
- exports.TuiInputCountModule = TuiInputCountModule;
823
- exports.tuiInputCountOptionsProvider = tuiInputCountOptionsProvider;
672
+ exports.TUI_INPUT_COUNT_DEFAULT_OPTIONS = TUI_INPUT_COUNT_DEFAULT_OPTIONS;
673
+ exports.TUI_INPUT_COUNT_OPTIONS = TUI_INPUT_COUNT_OPTIONS;
674
+ exports.TuiInputCountComponent = TuiInputCountComponent;
675
+ exports.TuiInputCountDirective = TuiInputCountDirective;
676
+ exports.TuiInputCountModule = TuiInputCountModule;
677
+ exports.tuiInputCountOptionsProvider = tuiInputCountOptionsProvider;
824
678
 
825
- Object.defineProperty(exports, '__esModule', { value: true });
679
+ Object.defineProperty(exports, '__esModule', { value: true });
826
680
 
827
681
  }));
828
682
  //# sourceMappingURL=taiga-ui-kit-components-input-count.umd.js.map