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