@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,954 +1,808 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@taiga-ui/core'), require('@taiga-ui/kit/abstract'), require('@taiga-ui/kit/components/data-list-wrapper'), require('@angular/common'), require('@taiga-ui/kit/pipes'), require('@angular/forms'), require('@taiga-ui/cdk'), require('@taiga-ui/kit/components/arrow'), require('@taiga-ui/kit/components/select-option'), require('@taiga-ui/kit/providers'), require('@taiga-ui/kit/tokens'), require('@tinkoff/ng-polymorpheus')) :
3
- typeof define === 'function' && define.amd ? define('@taiga-ui/kit/components/select', ['exports', '@angular/core', '@taiga-ui/core', '@taiga-ui/kit/abstract', '@taiga-ui/kit/components/data-list-wrapper', '@angular/common', '@taiga-ui/kit/pipes', '@angular/forms', '@taiga-ui/cdk', '@taiga-ui/kit/components/arrow', '@taiga-ui/kit/components/select-option', '@taiga-ui/kit/providers', '@taiga-ui/kit/tokens', '@tinkoff/ng-polymorpheus'], 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.select = {}), global.ng.core, global.i1, global["taiga-ui"].kit.abstract, global["taiga-ui"].kit.components["data-list-wrapper"], global.ng.common, global["taiga-ui"].kit.pipes, global.ng.forms, global.i2, global["taiga-ui"].kit.components.arrow, global["taiga-ui"].kit.components["select-option"], global["taiga-ui"].kit.providers, global["taiga-ui"].kit.tokens, global.i4$1));
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@taiga-ui/core'), require('@taiga-ui/kit/abstract'), require('@taiga-ui/kit/components/data-list-wrapper'), require('@angular/common'), require('@taiga-ui/kit/pipes'), require('@angular/forms'), require('@taiga-ui/cdk'), require('@taiga-ui/kit/components/arrow'), require('@taiga-ui/kit/components/select-option'), require('@taiga-ui/kit/providers'), require('@taiga-ui/kit/tokens'), require('@tinkoff/ng-polymorpheus')) :
3
+ typeof define === 'function' && define.amd ? define('@taiga-ui/kit/components/select', ['exports', '@angular/core', '@taiga-ui/core', '@taiga-ui/kit/abstract', '@taiga-ui/kit/components/data-list-wrapper', '@angular/common', '@taiga-ui/kit/pipes', '@angular/forms', '@taiga-ui/cdk', '@taiga-ui/kit/components/arrow', '@taiga-ui/kit/components/select-option', '@taiga-ui/kit/providers', '@taiga-ui/kit/tokens', '@tinkoff/ng-polymorpheus'], 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.select = {}), global.ng.core, global.i1, global["taiga-ui"].kit.abstract, global["taiga-ui"].kit.components["data-list-wrapper"], global.ng.common, global["taiga-ui"].kit.pipes, global.ng.forms, global.i2, global["taiga-ui"].kit.components.arrow, global["taiga-ui"].kit.components["select-option"], global["taiga-ui"].kit.providers, global["taiga-ui"].kit.tokens, global.i4$1));
5
5
  })(this, (function (exports, i0, i1, abstract, i1$1, i3, i4, i5, i2, arrow, selectOption, providers, tokens, i4$1) { 'use strict';
6
6
 
7
- function _interopNamespace(e) {
8
- if (e && e.__esModule) return e;
9
- var n = Object.create(null);
10
- if (e) {
11
- Object.keys(e).forEach(function (k) {
12
- if (k !== 'default') {
13
- var d = Object.getOwnPropertyDescriptor(e, k);
14
- Object.defineProperty(n, k, d.get ? d : {
15
- enumerable: true,
16
- get: function () { return e[k]; }
17
- });
7
+ function _interopNamespace(e) {
8
+ if (e && e.__esModule) return e;
9
+ var n = Object.create(null);
10
+ if (e) {
11
+ Object.keys(e).forEach(function (k) {
12
+ if (k !== 'default') {
13
+ var d = Object.getOwnPropertyDescriptor(e, k);
14
+ Object.defineProperty(n, k, d.get ? d : {
15
+ enumerable: true,
16
+ get: function () { return e[k]; }
17
+ });
18
+ }
19
+ });
18
20
  }
19
- });
21
+ n["default"] = e;
22
+ return Object.freeze(n);
20
23
  }
21
- n["default"] = e;
22
- return Object.freeze(n);
23
- }
24
24
 
25
- var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
26
- var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1);
27
- var i1__namespace = /*#__PURE__*/_interopNamespace(i1$1);
28
- var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
29
- var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
30
- var i5__namespace = /*#__PURE__*/_interopNamespace(i5);
31
- var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
32
- var i4__namespace$1 = /*#__PURE__*/_interopNamespace(i4$1);
25
+ var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
26
+ var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1);
27
+ var i1__namespace = /*#__PURE__*/_interopNamespace(i1$1);
28
+ var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
29
+ var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
30
+ var i5__namespace = /*#__PURE__*/_interopNamespace(i5);
31
+ var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
32
+ var i4__namespace$1 = /*#__PURE__*/_interopNamespace(i4$1);
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
- var TuiNativeSelectComponent = /** @class */ (function (_super) {
499
- __extends(TuiNativeSelectComponent, _super);
500
- function TuiNativeSelectComponent() {
501
- var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
502
- _this.items = [];
503
- return _this;
504
- }
505
- Object.defineProperty(TuiNativeSelectComponent.prototype, "stringify", {
506
- get: function () {
507
- return this.host.stringify;
508
- },
509
- enumerable: false,
510
- configurable: true
511
- });
512
- TuiNativeSelectComponent.prototype.selected = function (option) {
513
- return this.control.value === option;
514
- };
515
- TuiNativeSelectComponent.prototype.onValueChange = function (index) {
516
- var _a;
517
- this.host.onValueChange(((_a = this.items) === null || _a === void 0 ? void 0 : _a[index]) || null);
518
- };
519
- return TuiNativeSelectComponent;
520
- }(abstract.AbstractTuiNativeSelect));
521
- TuiNativeSelectComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiNativeSelectComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
522
- TuiNativeSelectComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiNativeSelectComponent, selector: "select[tuiSelect]:not([labels]):not([multiple])", inputs: { items: "items" }, host: { listeners: { "change": "onValueChange($event.target.options.selectedIndex)" }, properties: { "attr.aria-invalid": "host.invalid", "disabled": "host.disabled || control.readOnly", "tabIndex": "host.focusable ? 0 : -1", "value": "host.value" } }, providers: [
523
- i1.tuiAsDataList(TuiNativeSelectComponent),
524
- {
525
- provide: i0.TemplateRef,
526
- deps: [TuiNativeSelectComponent],
527
- useFactory: function (_b) {
528
- var datalist = _b.datalist;
529
- return datalist;
530
- },
531
- },
532
- {
533
- provide: abstract.AbstractTuiNativeSelect,
534
- useExisting: TuiNativeSelectComponent,
535
- },
536
- ], usesInheritance: true, ngImport: i0__namespace, template: "<tui-data-list-wrapper\n *tuiDataList\n [disabledItemHandler]=\"disabledItemHandler || itemsHandlers.disabledItemHandler\"\n [itemContent]=\"stringify | tuiStringifyContent\"\n [items]=\"items\"\n></tui-data-list-wrapper>\n<option\n *ngFor=\"let option of items; let index = index\"\n [disabled]=\"disabledItemHandler ? disabledItemHandler(option) : itemsHandlers.disabledItemHandler(option)\"\n [selected]=\"selected(option)\"\n [value]=\"stringify(option)\"\n>\n {{ stringify(option) }}\n</option>\n", styles: [":host{position:absolute;top:0;left:0;width:100%;height:100%;opacity:0}\n"], components: [{ type: i1__namespace.TuiDataListWrapperComponent, selector: "tui-data-list-wrapper:not([labels])", inputs: ["items"] }], directives: [{ type: i1__namespace$1.TuiDataListDirective, selector: "ng-template[tuiDataList]" }, { type: i3__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "tuiStringifyContent": i4__namespace.TuiStringifyContentPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
537
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiNativeSelectComponent, decorators: [{
538
- type: i0.Component,
539
- args: [{
540
- selector: 'select[tuiSelect]:not([labels]):not([multiple])',
541
- templateUrl: './native-select.template.html',
542
- styleUrls: ['./native-select.style.less'],
543
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
544
- providers: [
545
- i1.tuiAsDataList(TuiNativeSelectComponent),
546
- {
547
- provide: i0.TemplateRef,
548
- deps: [TuiNativeSelectComponent],
549
- useFactory: function (_b) {
550
- var datalist = _b.datalist;
551
- return datalist;
552
- },
553
- },
554
- {
555
- provide: abstract.AbstractTuiNativeSelect,
556
- useExisting: TuiNativeSelectComponent,
557
- },
558
- ],
559
- host: {
560
- '[attr.aria-invalid]': 'host.invalid',
561
- '[disabled]': 'host.disabled || control.readOnly',
562
- '[tabIndex]': 'host.focusable ? 0 : -1',
563
- '[value]': 'host.value',
564
- '(change)': 'onValueChange($event.target.options.selectedIndex)',
565
- },
566
- }]
567
- }], propDecorators: { items: [{
568
- type: i0.Input
569
- }] } });
352
+ var TuiNativeSelectComponent = /** @class */ (function (_super) {
353
+ __extends(TuiNativeSelectComponent, _super);
354
+ function TuiNativeSelectComponent() {
355
+ var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
356
+ _this.items = [];
357
+ return _this;
358
+ }
359
+ Object.defineProperty(TuiNativeSelectComponent.prototype, "stringify", {
360
+ get: function () {
361
+ return this.host.stringify;
362
+ },
363
+ enumerable: false,
364
+ configurable: true
365
+ });
366
+ TuiNativeSelectComponent.prototype.selected = function (option) {
367
+ return this.control.value === option;
368
+ };
369
+ TuiNativeSelectComponent.prototype.onValueChange = function (index) {
370
+ var _a;
371
+ this.host.onValueChange(((_a = this.items) === null || _a === void 0 ? void 0 : _a[index]) || null);
372
+ };
373
+ return TuiNativeSelectComponent;
374
+ }(abstract.AbstractTuiNativeSelect));
375
+ TuiNativeSelectComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiNativeSelectComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
376
+ TuiNativeSelectComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiNativeSelectComponent, selector: "select[tuiSelect]:not([labels]):not([multiple])", inputs: { items: "items" }, host: { listeners: { "change": "onValueChange($event.target.options.selectedIndex)" }, properties: { "attr.aria-invalid": "host.invalid", "disabled": "host.disabled || control.readOnly", "tabIndex": "host.focusable ? 0 : -1", "value": "host.value" } }, providers: [
377
+ i1.tuiAsDataList(TuiNativeSelectComponent),
378
+ {
379
+ provide: i0.TemplateRef,
380
+ deps: [TuiNativeSelectComponent],
381
+ useFactory: function (_b) {
382
+ var datalist = _b.datalist;
383
+ return datalist;
384
+ },
385
+ },
386
+ {
387
+ provide: abstract.AbstractTuiNativeSelect,
388
+ useExisting: TuiNativeSelectComponent,
389
+ },
390
+ ], usesInheritance: true, ngImport: i0__namespace, template: "<tui-data-list-wrapper\n *tuiDataList\n [disabledItemHandler]=\"disabledItemHandler || itemsHandlers.disabledItemHandler\"\n [itemContent]=\"stringify | tuiStringifyContent\"\n [items]=\"items\"\n></tui-data-list-wrapper>\n<option\n *ngFor=\"let option of items; let index = index\"\n [disabled]=\"disabledItemHandler ? disabledItemHandler(option) : itemsHandlers.disabledItemHandler(option)\"\n [selected]=\"selected(option)\"\n [value]=\"stringify(option)\"\n>\n {{ stringify(option) }}\n</option>\n", styles: [":host{position:absolute;top:0;left:0;width:100%;height:100%;opacity:0}\n"], components: [{ type: i1__namespace.TuiDataListWrapperComponent, selector: "tui-data-list-wrapper:not([labels])", inputs: ["items"] }], directives: [{ type: i1__namespace$1.TuiDataListDirective, selector: "ng-template[tuiDataList]" }, { type: i3__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "tuiStringifyContent": i4__namespace.TuiStringifyContentPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
391
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiNativeSelectComponent, decorators: [{
392
+ type: i0.Component,
393
+ args: [{
394
+ selector: 'select[tuiSelect]:not([labels]):not([multiple])',
395
+ templateUrl: './native-select.template.html',
396
+ styleUrls: ['./native-select.style.less'],
397
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
398
+ providers: [
399
+ i1.tuiAsDataList(TuiNativeSelectComponent),
400
+ {
401
+ provide: i0.TemplateRef,
402
+ deps: [TuiNativeSelectComponent],
403
+ useFactory: function (_b) {
404
+ var datalist = _b.datalist;
405
+ return datalist;
406
+ },
407
+ },
408
+ {
409
+ provide: abstract.AbstractTuiNativeSelect,
410
+ useExisting: TuiNativeSelectComponent,
411
+ },
412
+ ],
413
+ host: {
414
+ '[attr.aria-invalid]': 'host.invalid',
415
+ '[disabled]': 'host.disabled || control.readOnly',
416
+ '[tabIndex]': 'host.focusable ? 0 : -1',
417
+ '[value]': 'host.value',
418
+ '(change)': 'onValueChange($event.target.options.selectedIndex)',
419
+ },
420
+ }]
421
+ }], propDecorators: { items: [{
422
+ type: i0.Input
423
+ }] } });
570
424
 
571
- var TuiNativeSelectGroupComponent = /** @class */ (function (_super) {
572
- __extends(TuiNativeSelectGroupComponent, _super);
573
- function TuiNativeSelectGroupComponent() {
574
- var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
575
- _this.items = [];
576
- _this.labels = [];
577
- return _this;
578
- }
579
- Object.defineProperty(TuiNativeSelectGroupComponent.prototype, "stringify", {
580
- get: function () {
581
- return this.host.stringify;
582
- },
583
- enumerable: false,
584
- configurable: true
585
- });
586
- TuiNativeSelectGroupComponent.prototype.selected = function (option) {
587
- return this.control.value === option;
588
- };
589
- TuiNativeSelectGroupComponent.prototype.onValueChange = function (index) {
590
- var _a;
591
- var flatItems = (_a = this.items) === null || _a === void 0 ? void 0 : _a.reduce(function (acc, val) { return acc.concat(val); }, []);
592
- this.host.onValueChange((flatItems === null || flatItems === void 0 ? void 0 : flatItems[index]) || null);
593
- };
594
- return TuiNativeSelectGroupComponent;
595
- }(abstract.AbstractTuiNativeSelect));
596
- TuiNativeSelectGroupComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiNativeSelectGroupComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
597
- TuiNativeSelectGroupComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiNativeSelectGroupComponent, selector: "select[tuiSelect][labels]:not([multiple])", inputs: { items: "items", labels: "labels" }, host: { listeners: { "change": "onValueChange($event.target.options.selectedIndex)" }, properties: { "attr.aria-invalid": "host.invalid", "disabled": "host.disabled || control.readOnly", "tabIndex": "host.focusable ? 0 : -1", "value": "host.value" } }, providers: [
598
- i1.tuiAsDataList(TuiNativeSelectGroupComponent),
599
- {
600
- provide: i0.TemplateRef,
601
- deps: [TuiNativeSelectGroupComponent],
602
- useFactory: function (_b) {
603
- var datalist = _b.datalist;
604
- return datalist;
605
- },
606
- },
607
- {
608
- provide: abstract.AbstractTuiNativeSelect,
609
- useExisting: TuiNativeSelectGroupComponent,
610
- },
611
- ], usesInheritance: true, ngImport: i0__namespace, template: "<tui-data-list-wrapper\n *tuiDataList\n [disabledItemHandler]=\"disabledItemHandler || itemsHandlers.disabledItemHandler\"\n [itemContent]=\"stringify | tuiStringifyContent\"\n [items]=\"items\"\n [labels]=\"labels\"\n></tui-data-list-wrapper>\n<optgroup\n *ngFor=\"let group of items; let index = index\"\n [label]=\"labels[index]\"\n>\n <option\n *ngFor=\"let option of group; let i = index\"\n [disabled]=\"disabledItemHandler ? disabledItemHandler(option) : itemsHandlers.disabledItemHandler(option)\"\n [selected]=\"selected(option)\"\n [value]=\"stringify(option)\"\n >\n {{ stringify(option) }}\n </option>\n</optgroup>\n", styles: [":host{position:absolute;top:0;left:0;width:100%;height:100%;opacity:0}\n"], components: [{ type: i1__namespace.TuiDataListGroupWrapperComponent, selector: "tui-data-list-wrapper[labels]", inputs: ["items", "labels"] }], directives: [{ type: i1__namespace$1.TuiDataListDirective, selector: "ng-template[tuiDataList]" }, { type: i3__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "tuiStringifyContent": i4__namespace.TuiStringifyContentPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
612
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiNativeSelectGroupComponent, decorators: [{
613
- type: i0.Component,
614
- args: [{
615
- selector: 'select[tuiSelect][labels]:not([multiple])',
616
- templateUrl: './native-select-group.template.html',
617
- styleUrls: ['./native-select.style.less'],
618
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
619
- providers: [
620
- i1.tuiAsDataList(TuiNativeSelectGroupComponent),
621
- {
622
- provide: i0.TemplateRef,
623
- deps: [TuiNativeSelectGroupComponent],
624
- useFactory: function (_b) {
625
- var datalist = _b.datalist;
626
- return datalist;
627
- },
628
- },
629
- {
630
- provide: abstract.AbstractTuiNativeSelect,
631
- useExisting: TuiNativeSelectGroupComponent,
632
- },
633
- ],
634
- host: {
635
- '[attr.aria-invalid]': 'host.invalid',
636
- '[disabled]': 'host.disabled || control.readOnly',
637
- '[tabIndex]': 'host.focusable ? 0 : -1',
638
- '[value]': 'host.value',
639
- '(change)': 'onValueChange($event.target.options.selectedIndex)',
640
- },
641
- }]
642
- }], propDecorators: { items: [{
643
- type: i0.Input
644
- }], labels: [{
645
- type: i0.Input
646
- }] } });
425
+ var TuiNativeSelectGroupComponent = /** @class */ (function (_super) {
426
+ __extends(TuiNativeSelectGroupComponent, _super);
427
+ function TuiNativeSelectGroupComponent() {
428
+ var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
429
+ _this.items = [];
430
+ _this.labels = [];
431
+ return _this;
432
+ }
433
+ Object.defineProperty(TuiNativeSelectGroupComponent.prototype, "stringify", {
434
+ get: function () {
435
+ return this.host.stringify;
436
+ },
437
+ enumerable: false,
438
+ configurable: true
439
+ });
440
+ TuiNativeSelectGroupComponent.prototype.selected = function (option) {
441
+ return this.control.value === option;
442
+ };
443
+ TuiNativeSelectGroupComponent.prototype.onValueChange = function (index) {
444
+ var _a;
445
+ var flatItems = (_a = this.items) === null || _a === void 0 ? void 0 : _a.reduce(function (acc, val) { return acc.concat(val); }, []);
446
+ this.host.onValueChange((flatItems === null || flatItems === void 0 ? void 0 : flatItems[index]) || null);
447
+ };
448
+ return TuiNativeSelectGroupComponent;
449
+ }(abstract.AbstractTuiNativeSelect));
450
+ TuiNativeSelectGroupComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiNativeSelectGroupComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
451
+ TuiNativeSelectGroupComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiNativeSelectGroupComponent, selector: "select[tuiSelect][labels]:not([multiple])", inputs: { items: "items", labels: "labels" }, host: { listeners: { "change": "onValueChange($event.target.options.selectedIndex)" }, properties: { "attr.aria-invalid": "host.invalid", "disabled": "host.disabled || control.readOnly", "tabIndex": "host.focusable ? 0 : -1", "value": "host.value" } }, providers: [
452
+ i1.tuiAsDataList(TuiNativeSelectGroupComponent),
453
+ {
454
+ provide: i0.TemplateRef,
455
+ deps: [TuiNativeSelectGroupComponent],
456
+ useFactory: function (_b) {
457
+ var datalist = _b.datalist;
458
+ return datalist;
459
+ },
460
+ },
461
+ {
462
+ provide: abstract.AbstractTuiNativeSelect,
463
+ useExisting: TuiNativeSelectGroupComponent,
464
+ },
465
+ ], usesInheritance: true, ngImport: i0__namespace, template: "<tui-data-list-wrapper\n *tuiDataList\n [disabledItemHandler]=\"disabledItemHandler || itemsHandlers.disabledItemHandler\"\n [itemContent]=\"stringify | tuiStringifyContent\"\n [items]=\"items\"\n [labels]=\"labels\"\n></tui-data-list-wrapper>\n<optgroup\n *ngFor=\"let group of items; let index = index\"\n [label]=\"labels[index]\"\n>\n <option\n *ngFor=\"let option of group; let i = index\"\n [disabled]=\"disabledItemHandler ? disabledItemHandler(option) : itemsHandlers.disabledItemHandler(option)\"\n [selected]=\"selected(option)\"\n [value]=\"stringify(option)\"\n >\n {{ stringify(option) }}\n </option>\n</optgroup>\n", styles: [":host{position:absolute;top:0;left:0;width:100%;height:100%;opacity:0}\n"], components: [{ type: i1__namespace.TuiDataListGroupWrapperComponent, selector: "tui-data-list-wrapper[labels]", inputs: ["items", "labels"] }], directives: [{ type: i1__namespace$1.TuiDataListDirective, selector: "ng-template[tuiDataList]" }, { type: i3__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "tuiStringifyContent": i4__namespace.TuiStringifyContentPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
466
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiNativeSelectGroupComponent, decorators: [{
467
+ type: i0.Component,
468
+ args: [{
469
+ selector: 'select[tuiSelect][labels]:not([multiple])',
470
+ templateUrl: './native-select-group.template.html',
471
+ styleUrls: ['./native-select.style.less'],
472
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
473
+ providers: [
474
+ i1.tuiAsDataList(TuiNativeSelectGroupComponent),
475
+ {
476
+ provide: i0.TemplateRef,
477
+ deps: [TuiNativeSelectGroupComponent],
478
+ useFactory: function (_b) {
479
+ var datalist = _b.datalist;
480
+ return datalist;
481
+ },
482
+ },
483
+ {
484
+ provide: abstract.AbstractTuiNativeSelect,
485
+ useExisting: TuiNativeSelectGroupComponent,
486
+ },
487
+ ],
488
+ host: {
489
+ '[attr.aria-invalid]': 'host.invalid',
490
+ '[disabled]': 'host.disabled || control.readOnly',
491
+ '[tabIndex]': 'host.focusable ? 0 : -1',
492
+ '[value]': 'host.value',
493
+ '(change)': 'onValueChange($event.target.options.selectedIndex)',
494
+ },
495
+ }]
496
+ }], propDecorators: { items: [{
497
+ type: i0.Input
498
+ }], labels: [{
499
+ type: i0.Input
500
+ }] } });
647
501
 
648
- var TUI_SELECT_DEFAULT_OPTIONS = {
649
- valueContent: "",
650
- };
651
- /**
652
- * Default parameters for Select component
653
- */
654
- var TUI_SELECT_OPTIONS = i2.tuiCreateToken(TUI_SELECT_DEFAULT_OPTIONS);
655
- function tuiSelectOptionsProvider(options) {
656
- return i2.tuiProvideOptions(TUI_SELECT_OPTIONS, options, TUI_SELECT_DEFAULT_OPTIONS);
657
- }
502
+ var TUI_SELECT_DEFAULT_OPTIONS = {
503
+ valueContent: '',
504
+ };
505
+ /**
506
+ * Default parameters for Select component
507
+ */
508
+ var TUI_SELECT_OPTIONS = i2.tuiCreateToken(TUI_SELECT_DEFAULT_OPTIONS);
509
+ function tuiSelectOptionsProvider(options) {
510
+ return i2.tuiProvideOptions(TUI_SELECT_OPTIONS, options, TUI_SELECT_DEFAULT_OPTIONS);
511
+ }
658
512
 
659
- var TuiSelectComponent = /** @class */ (function (_super) {
660
- __extends(TuiSelectComponent, _super);
661
- function TuiSelectComponent(control, cdr, textfieldCleaner, textfieldSize, arrowMode, itemsHandlers, options, isMobile) {
662
- var _this = _super.call(this, control, cdr) || this;
663
- _this.textfieldCleaner = textfieldCleaner;
664
- _this.textfieldSize = textfieldSize;
665
- _this.arrowMode = arrowMode;
666
- _this.itemsHandlers = itemsHandlers;
667
- _this.options = options;
668
- _this.isMobile = isMobile;
669
- _this.stringify = _this.itemsHandlers.stringify;
670
- _this.identityMatcher = _this.itemsHandlers.identityMatcher;
671
- _this.valueContent = _this.options.valueContent;
672
- return _this;
673
- }
674
- Object.defineProperty(TuiSelectComponent.prototype, "size", {
675
- get: function () {
676
- return this.textfieldSize.size;
677
- },
678
- enumerable: false,
679
- configurable: true
680
- });
681
- Object.defineProperty(TuiSelectComponent.prototype, "arrow", {
682
- get: function () {
683
- return !this.interactive ? this.arrowMode.disabled : this.arrowMode.interactive;
684
- },
685
- enumerable: false,
686
- configurable: true
687
- });
688
- Object.defineProperty(TuiSelectComponent.prototype, "nativeFocusableElement", {
689
- get: function () {
690
- var _a, _b;
691
- return (_b = (_a = this.textfield) === null || _a === void 0 ? void 0 : _a.nativeFocusableElement) !== null && _b !== void 0 ? _b : null;
692
- },
693
- enumerable: false,
694
- configurable: true
695
- });
696
- Object.defineProperty(TuiSelectComponent.prototype, "focused", {
697
- get: function () {
698
- return (i2.tuiIsNativeFocused(this.nativeFocusableElement) ||
699
- (!!this.hostedDropdown && this.hostedDropdown.focused));
700
- },
701
- enumerable: false,
702
- configurable: true
703
- });
704
- Object.defineProperty(TuiSelectComponent.prototype, "nativeDropdownMode", {
705
- get: function () {
706
- return !!this.nativeSelect && this.isMobile;
707
- },
708
- enumerable: false,
709
- configurable: true
710
- });
711
- Object.defineProperty(TuiSelectComponent.prototype, "computedValue", {
712
- get: function () {
713
- return this.value === null ? '' : this.stringify(this.value) || ' ';
714
- },
715
- enumerable: false,
716
- configurable: true
717
- });
718
- Object.defineProperty(TuiSelectComponent.prototype, "computedContent", {
719
- get: function () {
720
- return this.valueContent || this.computedValue;
721
- },
722
- enumerable: false,
723
- configurable: true
724
- });
725
- TuiSelectComponent.prototype.onValueChange = function (value) {
726
- this.value = value || null;
727
- };
728
- TuiSelectComponent.prototype.onActiveZone = function (active) {
729
- this.updateFocused(active);
730
- };
731
- TuiSelectComponent.prototype.onKeyDownDelete = function () {
732
- if (this.textfieldCleaner.cleaner) {
733
- this.value = null;
734
- }
735
- };
736
- TuiSelectComponent.prototype.handleOption = function (option) {
737
- var _a;
738
- this.focusInput();
739
- this.value = option;
740
- (_a = this.hostedDropdown) === null || _a === void 0 ? void 0 : _a.updateOpen(false);
741
- };
742
- TuiSelectComponent.prototype.focusInput = function (preventScroll) {
743
- if (preventScroll === void 0) { preventScroll = false; }
744
- if (this.nativeFocusableElement) {
745
- this.nativeFocusableElement.focus({ preventScroll: preventScroll });
746
- }
747
- };
748
- return TuiSelectComponent;
749
- }(i2.AbstractTuiNullableControl));
750
- TuiSelectComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSelectComponent, deps: [{ token: i5.NgControl, optional: true, self: true }, { token: i0.ChangeDetectorRef }, { token: i1.TUI_TEXTFIELD_CLEANER }, { token: i1.TUI_TEXTFIELD_SIZE }, { token: arrow.TUI_ARROW_MODE }, { token: tokens.TUI_ITEMS_HANDLERS }, { token: TUI_SELECT_OPTIONS }, { token: i2.TUI_IS_MOBILE }], target: i0__namespace.ɵɵFactoryTarget.Component });
751
- TuiSelectComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiSelectComponent, selector: "tui-select", inputs: { stringify: "stringify", identityMatcher: "identityMatcher", valueContent: "valueContent" }, host: { properties: { "attr.data-size": "this.size" } }, providers: [
752
- i2.tuiAsFocusableItemAccessor(TuiSelectComponent),
753
- i2.tuiAsControl(TuiSelectComponent),
754
- i1.tuiAsDataListHost(TuiSelectComponent),
755
- i1.tuiAsOptionContent(selectOption.TUI_SELECT_OPTION),
756
- ], queries: [{ propertyName: "nativeSelect", first: true, predicate: abstract.AbstractTuiNativeSelect, descendants: true, static: true }, { propertyName: "datalist", first: true, predicate: i1.TuiDataListDirective, descendants: true, read: i0.TemplateRef }], viewQueries: [{ propertyName: "textfield", first: true, predicate: i1.TuiPrimitiveTextfieldComponent, descendants: true }, { propertyName: "hostedDropdown", first: true, predicate: i1.TuiHostedDropdownComponent, descendants: true }], usesInheritance: true, ngImport: i0__namespace, template: "<tui-hosted-dropdown\n class=\"t-hosted\"\n [canOpen]=\"interactive && !nativeDropdownMode\"\n [content]=\"datalist || ''\"\n (tuiActiveZoneChange)=\"onActiveZone($event)\"\n>\n <tui-primitive-textfield\n automation-id=\"tui-select__textfield\"\n class=\"t-textfield\"\n [disabled]=\"computedDisabled\"\n [editable]=\"false\"\n [focusable]=\"computedFocusable\"\n [invalid]=\"computedInvalid\"\n [nativeId]=\"nativeId\"\n [pseudoActive]=\"pseudoActive\"\n [pseudoFocus]=\"computedFocused\"\n [pseudoHover]=\"pseudoHover\"\n [readOnly]=\"readOnly\"\n [tuiTextfieldIcon]=\"arrow ? icon : ''\"\n [value]=\"computedValue\"\n (keydown.backspace.prevent)=\"onKeyDownDelete()\"\n (keydown.delete.prevent)=\"onKeyDownDelete()\"\n (valueChange)=\"onValueChange($any($event))\"\n >\n <ng-content></ng-content>\n <ng-content\n ngProjectAs=\"input\"\n select=\"input\"\n ></ng-content>\n\n <ng-template #select>\n <ng-content\n *ngIf=\"isMobile\"\n select=\"select\"\n ></ng-content>\n </ng-template>\n\n <ng-container\n *ngTemplateOutlet=\"select\"\n ngProjectAs=\"select\"\n ></ng-container>\n\n <div\n *ngIf=\"value !== null\"\n automation-id=\"tui-select__value\"\n ngProjectAs=\"tuiContent\"\n class=\"t-value\"\n >\n <div\n *polymorpheusOutlet=\"computedContent as text; context: {$implicit: value, active: computedFocused}\"\n class=\"t-primitive-value\"\n [textContent]=\"text\"\n ></div>\n </div>\n </tui-primitive-textfield>\n\n <ng-template #icon>\n <div\n appearance=\"icon\"\n tuiWrapper\n class=\"t-icon\"\n >\n <ng-container *polymorpheusOutlet=\"arrow\"></ng-container>\n </div>\n </ng-template>\n</tui-hosted-dropdown>\n", styles: [":host{display:block;border-radius:var(--tui-radius-m);text-align:left}:host:not(._readonly) ::ng-deep input:not(:disabled){cursor:pointer}:host._readonly ::ng-deep input{cursor:default}.t-hosted{display:block;border-radius:inherit}.t-textfield{border-radius:inherit;text-align:inherit}.t-value{display:flex;width:100%;align-items:center}.t-primitive-value{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}\n"], components: [{ type: i1__namespace$1.TuiHostedDropdownComponent, selector: "tui-hosted-dropdown", inputs: ["content", "sided", "canOpen", "open"], outputs: ["openChange", "focusedChange"] }, { type: i1__namespace$1.TuiPrimitiveTextfieldComponent, selector: "tui-primitive-textfield", inputs: ["editable", "filler", "iconCleaner", "readOnly", "invalid", "disabled", "prefix", "postfix", "value"], outputs: ["valueChange"] }], directives: [{ type: i2__namespace.TuiActiveZoneDirective, selector: "[tuiActiveZone]:not(ng-container), [tuiActiveZoneChange]:not(ng-container), [tuiActiveZoneParent]:not(ng-container)", inputs: ["tuiActiveZoneParent"], outputs: ["tuiActiveZoneChange"], exportAs: ["tuiActiveZone"] }, { type: i1__namespace$1.TuiPrimitiveTextfieldDirective, selector: "tui-primitive-textfield" }, { type: i1__namespace$1.TuiTextfieldIconDirective, selector: "[tuiTextfieldIcon]", inputs: ["tuiTextfieldIcon"] }, { type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i4__namespace$1.PolymorpheusOutletDirective, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }, { type: i1__namespace$1.TuiWrapperDirective, selector: "[tuiWrapper]", inputs: ["disabled", "readOnly", "hover", "active", "focus", "invalid", "appearance"] }], viewProviders: [providers.FIXED_DROPDOWN_CONTROLLER_PROVIDER], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
757
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSelectComponent, decorators: [{
758
- type: i0.Component,
759
- args: [{
760
- selector: 'tui-select',
761
- templateUrl: './select.template.html',
762
- styleUrls: ['./select.style.less'],
763
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
764
- providers: [
765
- i2.tuiAsFocusableItemAccessor(TuiSelectComponent),
766
- i2.tuiAsControl(TuiSelectComponent),
767
- i1.tuiAsDataListHost(TuiSelectComponent),
768
- i1.tuiAsOptionContent(selectOption.TUI_SELECT_OPTION),
769
- ],
770
- viewProviders: [providers.FIXED_DROPDOWN_CONTROLLER_PROVIDER],
771
- }]
772
- }], ctorParameters: function () {
773
- return [{ type: i5__namespace.NgControl, decorators: [{
774
- type: i0.Optional
775
- }, {
776
- type: i0.Self
777
- }, {
778
- type: i0.Inject,
779
- args: [i5.NgControl]
780
- }] }, { type: i0__namespace.ChangeDetectorRef, decorators: [{
781
- type: i0.Inject,
782
- args: [i0.ChangeDetectorRef]
783
- }] }, { type: i1__namespace$1.TuiTextfieldCleanerDirective, decorators: [{
784
- type: i0.Inject,
785
- args: [i1.TUI_TEXTFIELD_CLEANER]
786
- }] }, { type: i1__namespace$1.TuiTextfieldSizeDirective, decorators: [{
787
- type: i0.Inject,
788
- args: [i1.TUI_TEXTFIELD_SIZE]
789
- }] }, { type: undefined, decorators: [{
790
- type: i0.Inject,
791
- args: [arrow.TUI_ARROW_MODE]
792
- }] }, { type: undefined, decorators: [{
793
- type: i0.Inject,
794
- args: [tokens.TUI_ITEMS_HANDLERS]
795
- }] }, { type: undefined, decorators: [{
796
- type: i0.Inject,
797
- args: [TUI_SELECT_OPTIONS]
798
- }] }, { type: undefined, decorators: [{
799
- type: i0.Inject,
800
- args: [i2.TUI_IS_MOBILE]
801
- }] }];
802
- }, propDecorators: { textfield: [{
803
- type: i0.ViewChild,
804
- args: [i1.TuiPrimitiveTextfieldComponent]
805
- }], hostedDropdown: [{
806
- type: i0.ViewChild,
807
- args: [i1.TuiHostedDropdownComponent]
808
- }], nativeSelect: [{
809
- type: i0.ContentChild,
810
- args: [abstract.AbstractTuiNativeSelect, { static: true }]
811
- }], stringify: [{
812
- type: i0.Input
813
- }], identityMatcher: [{
814
- type: i0.Input
815
- }], valueContent: [{
816
- type: i0.Input
817
- }], datalist: [{
818
- type: i0.ContentChild,
819
- args: [i1.TuiDataListDirective, { read: i0.TemplateRef }]
820
- }], size: [{
821
- type: i0.HostBinding,
822
- args: ['attr.data-size']
823
- }] } });
513
+ var TuiSelectComponent = /** @class */ (function (_super) {
514
+ __extends(TuiSelectComponent, _super);
515
+ function TuiSelectComponent(control, cdr, textfieldCleaner, textfieldSize, arrowMode, itemsHandlers, options, isMobile) {
516
+ var _this = _super.call(this, control, cdr) || this;
517
+ _this.textfieldCleaner = textfieldCleaner;
518
+ _this.textfieldSize = textfieldSize;
519
+ _this.arrowMode = arrowMode;
520
+ _this.itemsHandlers = itemsHandlers;
521
+ _this.options = options;
522
+ _this.isMobile = isMobile;
523
+ _this.stringify = _this.itemsHandlers.stringify;
524
+ _this.identityMatcher = _this.itemsHandlers.identityMatcher;
525
+ _this.valueContent = _this.options.valueContent;
526
+ return _this;
527
+ }
528
+ Object.defineProperty(TuiSelectComponent.prototype, "size", {
529
+ get: function () {
530
+ return this.textfieldSize.size;
531
+ },
532
+ enumerable: false,
533
+ configurable: true
534
+ });
535
+ Object.defineProperty(TuiSelectComponent.prototype, "arrow", {
536
+ get: function () {
537
+ return !this.interactive ? this.arrowMode.disabled : this.arrowMode.interactive;
538
+ },
539
+ enumerable: false,
540
+ configurable: true
541
+ });
542
+ Object.defineProperty(TuiSelectComponent.prototype, "nativeFocusableElement", {
543
+ get: function () {
544
+ var _a, _b;
545
+ return (_b = (_a = this.textfield) === null || _a === void 0 ? void 0 : _a.nativeFocusableElement) !== null && _b !== void 0 ? _b : null;
546
+ },
547
+ enumerable: false,
548
+ configurable: true
549
+ });
550
+ Object.defineProperty(TuiSelectComponent.prototype, "focused", {
551
+ get: function () {
552
+ return (i2.tuiIsNativeFocused(this.nativeFocusableElement) ||
553
+ (!!this.hostedDropdown && this.hostedDropdown.focused));
554
+ },
555
+ enumerable: false,
556
+ configurable: true
557
+ });
558
+ Object.defineProperty(TuiSelectComponent.prototype, "nativeDropdownMode", {
559
+ get: function () {
560
+ return !!this.nativeSelect && this.isMobile;
561
+ },
562
+ enumerable: false,
563
+ configurable: true
564
+ });
565
+ Object.defineProperty(TuiSelectComponent.prototype, "computedValue", {
566
+ get: function () {
567
+ return this.value === null ? '' : this.stringify(this.value) || ' ';
568
+ },
569
+ enumerable: false,
570
+ configurable: true
571
+ });
572
+ Object.defineProperty(TuiSelectComponent.prototype, "computedContent", {
573
+ get: function () {
574
+ return this.valueContent || this.computedValue;
575
+ },
576
+ enumerable: false,
577
+ configurable: true
578
+ });
579
+ TuiSelectComponent.prototype.onValueChange = function (value) {
580
+ this.value = value || null;
581
+ };
582
+ TuiSelectComponent.prototype.onActiveZone = function (active) {
583
+ this.updateFocused(active);
584
+ };
585
+ TuiSelectComponent.prototype.onKeyDownDelete = function () {
586
+ if (this.textfieldCleaner.cleaner) {
587
+ this.value = null;
588
+ }
589
+ };
590
+ TuiSelectComponent.prototype.handleOption = function (option) {
591
+ var _a;
592
+ this.focusInput();
593
+ this.value = option;
594
+ (_a = this.hostedDropdown) === null || _a === void 0 ? void 0 : _a.updateOpen(false);
595
+ };
596
+ TuiSelectComponent.prototype.focusInput = function (preventScroll) {
597
+ if (preventScroll === void 0) { preventScroll = false; }
598
+ if (this.nativeFocusableElement) {
599
+ this.nativeFocusableElement.focus({ preventScroll: preventScroll });
600
+ }
601
+ };
602
+ return TuiSelectComponent;
603
+ }(i2.AbstractTuiNullableControl));
604
+ TuiSelectComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSelectComponent, deps: [{ token: i5.NgControl, optional: true, self: true }, { token: i0.ChangeDetectorRef }, { token: i1.TUI_TEXTFIELD_CLEANER }, { token: i1.TUI_TEXTFIELD_SIZE }, { token: arrow.TUI_ARROW_MODE }, { token: tokens.TUI_ITEMS_HANDLERS }, { token: TUI_SELECT_OPTIONS }, { token: i2.TUI_IS_MOBILE }], target: i0__namespace.ɵɵFactoryTarget.Component });
605
+ TuiSelectComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiSelectComponent, selector: "tui-select", inputs: { stringify: "stringify", identityMatcher: "identityMatcher", valueContent: "valueContent" }, host: { properties: { "attr.data-size": "this.size" } }, providers: [
606
+ i2.tuiAsFocusableItemAccessor(TuiSelectComponent),
607
+ i2.tuiAsControl(TuiSelectComponent),
608
+ i1.tuiAsDataListHost(TuiSelectComponent),
609
+ i1.tuiAsOptionContent(selectOption.TUI_SELECT_OPTION),
610
+ ], queries: [{ propertyName: "nativeSelect", first: true, predicate: abstract.AbstractTuiNativeSelect, descendants: true, static: true }, { propertyName: "datalist", first: true, predicate: i1.TuiDataListDirective, descendants: true, read: i0.TemplateRef }], viewQueries: [{ propertyName: "textfield", first: true, predicate: i1.TuiPrimitiveTextfieldComponent, descendants: true }, { propertyName: "hostedDropdown", first: true, predicate: i1.TuiHostedDropdownComponent, descendants: true }], usesInheritance: true, ngImport: i0__namespace, template: "<tui-hosted-dropdown\n class=\"t-hosted\"\n [canOpen]=\"interactive && !nativeDropdownMode\"\n [content]=\"datalist || ''\"\n (tuiActiveZoneChange)=\"onActiveZone($event)\"\n>\n <tui-primitive-textfield\n automation-id=\"tui-select__textfield\"\n class=\"t-textfield\"\n [disabled]=\"computedDisabled\"\n [editable]=\"false\"\n [focusable]=\"computedFocusable\"\n [invalid]=\"computedInvalid\"\n [nativeId]=\"nativeId\"\n [pseudoActive]=\"pseudoActive\"\n [pseudoFocus]=\"computedFocused\"\n [pseudoHover]=\"pseudoHover\"\n [readOnly]=\"readOnly\"\n [tuiTextfieldIcon]=\"arrow ? icon : ''\"\n [value]=\"computedValue\"\n (keydown.backspace.prevent)=\"onKeyDownDelete()\"\n (keydown.delete.prevent)=\"onKeyDownDelete()\"\n (valueChange)=\"onValueChange($any($event))\"\n >\n <ng-content></ng-content>\n <ng-content\n ngProjectAs=\"input\"\n select=\"input\"\n ></ng-content>\n\n <ng-template #select>\n <ng-content\n *ngIf=\"isMobile\"\n select=\"select\"\n ></ng-content>\n </ng-template>\n\n <ng-container\n *ngTemplateOutlet=\"select\"\n ngProjectAs=\"select\"\n ></ng-container>\n\n <div\n *ngIf=\"value !== null\"\n automation-id=\"tui-select__value\"\n ngProjectAs=\"tuiContent\"\n class=\"t-value\"\n >\n <div\n *polymorpheusOutlet=\"computedContent as text; context: {$implicit: value, active: computedFocused}\"\n class=\"t-primitive-value\"\n [textContent]=\"text\"\n ></div>\n </div>\n </tui-primitive-textfield>\n\n <ng-template #icon>\n <div\n appearance=\"icon\"\n tuiWrapper\n class=\"t-icon\"\n >\n <ng-container *polymorpheusOutlet=\"arrow\"></ng-container>\n </div>\n </ng-template>\n</tui-hosted-dropdown>\n", styles: [":host{display:block;border-radius:var(--tui-radius-m);text-align:left}:host:not(._readonly) ::ng-deep input:not(:disabled){cursor:pointer}:host._readonly ::ng-deep input{cursor:default}.t-hosted{display:block;border-radius:inherit}.t-textfield{border-radius:inherit;text-align:inherit}.t-value{display:flex;width:100%;align-items:center}.t-primitive-value{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}\n"], components: [{ type: i1__namespace$1.TuiHostedDropdownComponent, selector: "tui-hosted-dropdown", inputs: ["content", "sided", "canOpen", "open"], outputs: ["openChange", "focusedChange"] }, { type: i1__namespace$1.TuiPrimitiveTextfieldComponent, selector: "tui-primitive-textfield", inputs: ["editable", "filler", "iconCleaner", "readOnly", "invalid", "disabled", "prefix", "postfix", "value"], outputs: ["valueChange"] }], directives: [{ type: i2__namespace.TuiActiveZoneDirective, selector: "[tuiActiveZone]:not(ng-container), [tuiActiveZoneChange]:not(ng-container), [tuiActiveZoneParent]:not(ng-container)", inputs: ["tuiActiveZoneParent"], outputs: ["tuiActiveZoneChange"], exportAs: ["tuiActiveZone"] }, { type: i1__namespace$1.TuiPrimitiveTextfieldDirective, selector: "tui-primitive-textfield" }, { type: i1__namespace$1.TuiTextfieldIconDirective, selector: "[tuiTextfieldIcon]", inputs: ["tuiTextfieldIcon"] }, { type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i4__namespace$1.PolymorpheusOutletDirective, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }, { type: i1__namespace$1.TuiWrapperDirective, selector: "[tuiWrapper]", inputs: ["disabled", "readOnly", "hover", "active", "focus", "invalid", "appearance"] }], viewProviders: [providers.FIXED_DROPDOWN_CONTROLLER_PROVIDER], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
611
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSelectComponent, decorators: [{
612
+ type: i0.Component,
613
+ args: [{
614
+ selector: 'tui-select',
615
+ templateUrl: './select.template.html',
616
+ styleUrls: ['./select.style.less'],
617
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
618
+ providers: [
619
+ i2.tuiAsFocusableItemAccessor(TuiSelectComponent),
620
+ i2.tuiAsControl(TuiSelectComponent),
621
+ i1.tuiAsDataListHost(TuiSelectComponent),
622
+ i1.tuiAsOptionContent(selectOption.TUI_SELECT_OPTION),
623
+ ],
624
+ viewProviders: [providers.FIXED_DROPDOWN_CONTROLLER_PROVIDER],
625
+ }]
626
+ }], ctorParameters: function () {
627
+ return [{ type: i5__namespace.NgControl, decorators: [{
628
+ type: i0.Optional
629
+ }, {
630
+ type: i0.Self
631
+ }, {
632
+ type: i0.Inject,
633
+ args: [i5.NgControl]
634
+ }] }, { type: i0__namespace.ChangeDetectorRef, decorators: [{
635
+ type: i0.Inject,
636
+ args: [i0.ChangeDetectorRef]
637
+ }] }, { type: i1__namespace$1.TuiTextfieldCleanerDirective, decorators: [{
638
+ type: i0.Inject,
639
+ args: [i1.TUI_TEXTFIELD_CLEANER]
640
+ }] }, { type: i1__namespace$1.TuiTextfieldSizeDirective, decorators: [{
641
+ type: i0.Inject,
642
+ args: [i1.TUI_TEXTFIELD_SIZE]
643
+ }] }, { type: undefined, decorators: [{
644
+ type: i0.Inject,
645
+ args: [arrow.TUI_ARROW_MODE]
646
+ }] }, { type: undefined, decorators: [{
647
+ type: i0.Inject,
648
+ args: [tokens.TUI_ITEMS_HANDLERS]
649
+ }] }, { type: undefined, decorators: [{
650
+ type: i0.Inject,
651
+ args: [TUI_SELECT_OPTIONS]
652
+ }] }, { type: undefined, decorators: [{
653
+ type: i0.Inject,
654
+ args: [i2.TUI_IS_MOBILE]
655
+ }] }];
656
+ }, propDecorators: { textfield: [{
657
+ type: i0.ViewChild,
658
+ args: [i1.TuiPrimitiveTextfieldComponent]
659
+ }], hostedDropdown: [{
660
+ type: i0.ViewChild,
661
+ args: [i1.TuiHostedDropdownComponent]
662
+ }], nativeSelect: [{
663
+ type: i0.ContentChild,
664
+ args: [abstract.AbstractTuiNativeSelect, { static: true }]
665
+ }], stringify: [{
666
+ type: i0.Input
667
+ }], identityMatcher: [{
668
+ type: i0.Input
669
+ }], valueContent: [{
670
+ type: i0.Input
671
+ }], datalist: [{
672
+ type: i0.ContentChild,
673
+ args: [i1.TuiDataListDirective, { read: i0.TemplateRef }]
674
+ }], size: [{
675
+ type: i0.HostBinding,
676
+ args: ['attr.data-size']
677
+ }] } });
824
678
 
825
- var TuiSelectDirective = /** @class */ (function (_super) {
826
- __extends(TuiSelectDirective, _super);
827
- function TuiSelectDirective() {
828
- return _super !== null && _super.apply(this, arguments) || this;
829
- }
830
- Object.defineProperty(TuiSelectDirective.prototype, "readOnly", {
831
- get: function () {
832
- return true;
833
- },
834
- enumerable: false,
835
- configurable: true
836
- });
837
- Object.defineProperty(TuiSelectDirective.prototype, "value", {
838
- get: function () {
839
- return this.host.computedValue;
840
- },
841
- enumerable: false,
842
- configurable: true
843
- });
844
- Object.defineProperty(TuiSelectDirective.prototype, "stringify", {
845
- get: function () {
846
- return this.host.stringify;
847
- },
848
- enumerable: false,
849
- configurable: true
850
- });
851
- TuiSelectDirective.prototype.onValueChange = function (value) {
852
- this.host.onValueChange(value);
853
- };
854
- return TuiSelectDirective;
855
- }(i1.AbstractTuiTextfieldHost));
856
- TuiSelectDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSelectDirective, deps: null, target: i0__namespace.ɵɵFactoryTarget.Directive });
857
- TuiSelectDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiSelectDirective, selector: "tui-select", providers: [i1.tuiAsTextfieldHost(TuiSelectDirective)], usesInheritance: true, ngImport: i0__namespace });
858
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSelectDirective, decorators: [{
859
- type: i0.Directive,
860
- args: [{
861
- selector: 'tui-select',
862
- providers: [i1.tuiAsTextfieldHost(TuiSelectDirective)],
863
- }]
864
- }] });
679
+ var TuiSelectDirective = /** @class */ (function (_super) {
680
+ __extends(TuiSelectDirective, _super);
681
+ function TuiSelectDirective() {
682
+ return _super !== null && _super.apply(this, arguments) || this;
683
+ }
684
+ Object.defineProperty(TuiSelectDirective.prototype, "readOnly", {
685
+ get: function () {
686
+ return true;
687
+ },
688
+ enumerable: false,
689
+ configurable: true
690
+ });
691
+ Object.defineProperty(TuiSelectDirective.prototype, "value", {
692
+ get: function () {
693
+ return this.host.computedValue;
694
+ },
695
+ enumerable: false,
696
+ configurable: true
697
+ });
698
+ Object.defineProperty(TuiSelectDirective.prototype, "stringify", {
699
+ get: function () {
700
+ return this.host.stringify;
701
+ },
702
+ enumerable: false,
703
+ configurable: true
704
+ });
705
+ TuiSelectDirective.prototype.onValueChange = function (value) {
706
+ this.host.onValueChange(value);
707
+ };
708
+ return TuiSelectDirective;
709
+ }(i1.AbstractTuiTextfieldHost));
710
+ TuiSelectDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSelectDirective, deps: null, target: i0__namespace.ɵɵFactoryTarget.Directive });
711
+ TuiSelectDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiSelectDirective, selector: "tui-select", providers: [i1.tuiAsTextfieldHost(TuiSelectDirective)], usesInheritance: true, ngImport: i0__namespace });
712
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSelectDirective, decorators: [{
713
+ type: i0.Directive,
714
+ args: [{
715
+ selector: 'tui-select',
716
+ providers: [i1.tuiAsTextfieldHost(TuiSelectDirective)],
717
+ }]
718
+ }] });
865
719
 
866
- var TuiSelectModule = /** @class */ (function () {
867
- function TuiSelectModule() {
868
- }
869
- return TuiSelectModule;
870
- }());
871
- TuiSelectModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSelectModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
872
- TuiSelectModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSelectModule, declarations: [TuiSelectComponent,
873
- TuiSelectDirective,
874
- TuiNativeSelectComponent,
875
- TuiNativeSelectGroupComponent], imports: [i3.CommonModule,
876
- i4$1.PolymorpheusModule,
877
- i2.TuiActiveZoneModule,
878
- i1.TuiPrimitiveTextfieldModule,
879
- i1.TuiHostedDropdownModule,
880
- selectOption.TuiSelectOptionModule,
881
- arrow.TuiArrowModule,
882
- i1.TuiWrapperModule,
883
- i1.TuiTextfieldControllerModule,
884
- i1$1.TuiDataListWrapperModule,
885
- i1.TuiDataListModule,
886
- i4.TuiStringifyContentPipeModule], exports: [TuiSelectComponent,
887
- TuiSelectDirective,
888
- i1.TuiTextfieldComponent,
889
- TuiNativeSelectComponent,
890
- TuiNativeSelectGroupComponent] });
891
- TuiSelectModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSelectModule, imports: [[
892
- i3.CommonModule,
893
- i4$1.PolymorpheusModule,
894
- i2.TuiActiveZoneModule,
895
- i1.TuiPrimitiveTextfieldModule,
896
- i1.TuiHostedDropdownModule,
897
- selectOption.TuiSelectOptionModule,
898
- arrow.TuiArrowModule,
899
- i1.TuiWrapperModule,
900
- i1.TuiTextfieldControllerModule,
901
- i1$1.TuiDataListWrapperModule,
902
- i1.TuiDataListModule,
903
- i4.TuiStringifyContentPipeModule,
904
- ]] });
905
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSelectModule, decorators: [{
906
- type: i0.NgModule,
907
- args: [{
908
- imports: [
909
- i3.CommonModule,
910
- i4$1.PolymorpheusModule,
911
- i2.TuiActiveZoneModule,
912
- i1.TuiPrimitiveTextfieldModule,
913
- i1.TuiHostedDropdownModule,
914
- selectOption.TuiSelectOptionModule,
915
- arrow.TuiArrowModule,
916
- i1.TuiWrapperModule,
917
- i1.TuiTextfieldControllerModule,
918
- i1$1.TuiDataListWrapperModule,
919
- i1.TuiDataListModule,
920
- i4.TuiStringifyContentPipeModule,
921
- ],
922
- declarations: [
923
- TuiSelectComponent,
924
- TuiSelectDirective,
925
- TuiNativeSelectComponent,
926
- TuiNativeSelectGroupComponent,
927
- ],
928
- exports: [
929
- TuiSelectComponent,
930
- TuiSelectDirective,
931
- i1.TuiTextfieldComponent,
932
- TuiNativeSelectComponent,
933
- TuiNativeSelectGroupComponent,
934
- ],
935
- }]
936
- }] });
720
+ var TuiSelectModule = /** @class */ (function () {
721
+ function TuiSelectModule() {
722
+ }
723
+ return TuiSelectModule;
724
+ }());
725
+ TuiSelectModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSelectModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
726
+ TuiSelectModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSelectModule, declarations: [TuiSelectComponent,
727
+ TuiSelectDirective,
728
+ TuiNativeSelectComponent,
729
+ TuiNativeSelectGroupComponent], imports: [i3.CommonModule,
730
+ i4$1.PolymorpheusModule,
731
+ i2.TuiActiveZoneModule,
732
+ i1.TuiPrimitiveTextfieldModule,
733
+ i1.TuiHostedDropdownModule,
734
+ selectOption.TuiSelectOptionModule,
735
+ arrow.TuiArrowModule,
736
+ i1.TuiWrapperModule,
737
+ i1.TuiTextfieldControllerModule,
738
+ i1$1.TuiDataListWrapperModule,
739
+ i1.TuiDataListModule,
740
+ i4.TuiStringifyContentPipeModule], exports: [TuiSelectComponent,
741
+ TuiSelectDirective,
742
+ i1.TuiTextfieldComponent,
743
+ TuiNativeSelectComponent,
744
+ TuiNativeSelectGroupComponent] });
745
+ TuiSelectModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSelectModule, imports: [[
746
+ i3.CommonModule,
747
+ i4$1.PolymorpheusModule,
748
+ i2.TuiActiveZoneModule,
749
+ i1.TuiPrimitiveTextfieldModule,
750
+ i1.TuiHostedDropdownModule,
751
+ selectOption.TuiSelectOptionModule,
752
+ arrow.TuiArrowModule,
753
+ i1.TuiWrapperModule,
754
+ i1.TuiTextfieldControllerModule,
755
+ i1$1.TuiDataListWrapperModule,
756
+ i1.TuiDataListModule,
757
+ i4.TuiStringifyContentPipeModule,
758
+ ]] });
759
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSelectModule, decorators: [{
760
+ type: i0.NgModule,
761
+ args: [{
762
+ imports: [
763
+ i3.CommonModule,
764
+ i4$1.PolymorpheusModule,
765
+ i2.TuiActiveZoneModule,
766
+ i1.TuiPrimitiveTextfieldModule,
767
+ i1.TuiHostedDropdownModule,
768
+ selectOption.TuiSelectOptionModule,
769
+ arrow.TuiArrowModule,
770
+ i1.TuiWrapperModule,
771
+ i1.TuiTextfieldControllerModule,
772
+ i1$1.TuiDataListWrapperModule,
773
+ i1.TuiDataListModule,
774
+ i4.TuiStringifyContentPipeModule,
775
+ ],
776
+ declarations: [
777
+ TuiSelectComponent,
778
+ TuiSelectDirective,
779
+ TuiNativeSelectComponent,
780
+ TuiNativeSelectGroupComponent,
781
+ ],
782
+ exports: [
783
+ TuiSelectComponent,
784
+ TuiSelectDirective,
785
+ i1.TuiTextfieldComponent,
786
+ TuiNativeSelectComponent,
787
+ TuiNativeSelectGroupComponent,
788
+ ],
789
+ }]
790
+ }] });
937
791
 
938
- /**
939
- * Generated bundle index. Do not edit.
940
- */
792
+ /**
793
+ * Generated bundle index. Do not edit.
794
+ */
941
795
 
942
- exports.TUI_SELECT_DEFAULT_OPTIONS = TUI_SELECT_DEFAULT_OPTIONS;
943
- exports.TUI_SELECT_OPTIONS = TUI_SELECT_OPTIONS;
944
- exports.TuiNativeSelectComponent = TuiNativeSelectComponent;
945
- exports.TuiNativeSelectGroupComponent = TuiNativeSelectGroupComponent;
946
- exports.TuiSelectComponent = TuiSelectComponent;
947
- exports.TuiSelectDirective = TuiSelectDirective;
948
- exports.TuiSelectModule = TuiSelectModule;
949
- exports.tuiSelectOptionsProvider = tuiSelectOptionsProvider;
796
+ exports.TUI_SELECT_DEFAULT_OPTIONS = TUI_SELECT_DEFAULT_OPTIONS;
797
+ exports.TUI_SELECT_OPTIONS = TUI_SELECT_OPTIONS;
798
+ exports.TuiNativeSelectComponent = TuiNativeSelectComponent;
799
+ exports.TuiNativeSelectGroupComponent = TuiNativeSelectGroupComponent;
800
+ exports.TuiSelectComponent = TuiSelectComponent;
801
+ exports.TuiSelectDirective = TuiSelectDirective;
802
+ exports.TuiSelectModule = TuiSelectModule;
803
+ exports.tuiSelectOptionsProvider = tuiSelectOptionsProvider;
950
804
 
951
- Object.defineProperty(exports, '__esModule', { value: true });
805
+ Object.defineProperty(exports, '__esModule', { value: true });
952
806
 
953
807
  }));
954
808
  //# sourceMappingURL=taiga-ui-kit-components-select.umd.js.map