@tectra-ng/ui 0.0.0-stage → 0.1.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 (317) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +26 -2
  3. package/amount/README.md +28 -0
  4. package/autocomplete/README.md +82 -0
  5. package/avatar/README.md +43 -0
  6. package/badge/README.md +19 -0
  7. package/button/README.md +46 -0
  8. package/button-group/README.md +8 -0
  9. package/card/README.md +30 -0
  10. package/cascade-select/README.md +49 -0
  11. package/checkbox/README.md +64 -0
  12. package/chip/README.md +38 -0
  13. package/chips-input/README.md +47 -0
  14. package/color-picker/README.md +43 -0
  15. package/confirm/README.md +46 -0
  16. package/country/README.md +23 -0
  17. package/country-select/README.md +39 -0
  18. package/dialog/README.md +84 -0
  19. package/divider/README.md +24 -0
  20. package/drawer/README.md +54 -0
  21. package/email-suggestion/README.md +20 -0
  22. package/fesm2022/tectra-ng-ui-amount.mjs +415 -0
  23. package/fesm2022/tectra-ng-ui-amount.mjs.map +1 -0
  24. package/fesm2022/tectra-ng-ui-autocomplete.mjs +730 -0
  25. package/fesm2022/tectra-ng-ui-autocomplete.mjs.map +1 -0
  26. package/fesm2022/tectra-ng-ui-avatar.mjs +670 -0
  27. package/fesm2022/tectra-ng-ui-avatar.mjs.map +1 -0
  28. package/fesm2022/tectra-ng-ui-badge.mjs +191 -0
  29. package/fesm2022/tectra-ng-ui-badge.mjs.map +1 -0
  30. package/fesm2022/tectra-ng-ui-button-group.mjs +50 -0
  31. package/fesm2022/tectra-ng-ui-button-group.mjs.map +1 -0
  32. package/fesm2022/tectra-ng-ui-button.mjs +725 -0
  33. package/fesm2022/tectra-ng-ui-button.mjs.map +1 -0
  34. package/fesm2022/tectra-ng-ui-card.mjs +210 -0
  35. package/fesm2022/tectra-ng-ui-card.mjs.map +1 -0
  36. package/fesm2022/tectra-ng-ui-cascade-select.mjs +887 -0
  37. package/fesm2022/tectra-ng-ui-cascade-select.mjs.map +1 -0
  38. package/fesm2022/tectra-ng-ui-checkbox.mjs +1150 -0
  39. package/fesm2022/tectra-ng-ui-checkbox.mjs.map +1 -0
  40. package/fesm2022/tectra-ng-ui-chip.mjs +344 -0
  41. package/fesm2022/tectra-ng-ui-chip.mjs.map +1 -0
  42. package/fesm2022/tectra-ng-ui-chips-input.mjs +649 -0
  43. package/fesm2022/tectra-ng-ui-chips-input.mjs.map +1 -0
  44. package/fesm2022/tectra-ng-ui-color-picker.mjs +828 -0
  45. package/fesm2022/tectra-ng-ui-color-picker.mjs.map +1 -0
  46. package/fesm2022/tectra-ng-ui-confirm.mjs +489 -0
  47. package/fesm2022/tectra-ng-ui-confirm.mjs.map +1 -0
  48. package/fesm2022/tectra-ng-ui-country-select.mjs +545 -0
  49. package/fesm2022/tectra-ng-ui-country-select.mjs.map +1 -0
  50. package/fesm2022/tectra-ng-ui-country.mjs +313 -0
  51. package/fesm2022/tectra-ng-ui-country.mjs.map +1 -0
  52. package/fesm2022/tectra-ng-ui-dialog.mjs +1539 -0
  53. package/fesm2022/tectra-ng-ui-dialog.mjs.map +1 -0
  54. package/fesm2022/tectra-ng-ui-divider.mjs +194 -0
  55. package/fesm2022/tectra-ng-ui-divider.mjs.map +1 -0
  56. package/fesm2022/tectra-ng-ui-drawer.mjs +540 -0
  57. package/fesm2022/tectra-ng-ui-drawer.mjs.map +1 -0
  58. package/fesm2022/tectra-ng-ui-email-suggestion.mjs +341 -0
  59. package/fesm2022/tectra-ng-ui-email-suggestion.mjs.map +1 -0
  60. package/fesm2022/tectra-ng-ui-field.mjs +492 -0
  61. package/fesm2022/tectra-ng-ui-field.mjs.map +1 -0
  62. package/fesm2022/tectra-ng-ui-fieldset.mjs +258 -0
  63. package/fesm2022/tectra-ng-ui-fieldset.mjs.map +1 -0
  64. package/fesm2022/tectra-ng-ui-highlight-text.mjs +246 -0
  65. package/fesm2022/tectra-ng-ui-highlight-text.mjs.map +1 -0
  66. package/fesm2022/tectra-ng-ui-icon-field.mjs +478 -0
  67. package/fesm2022/tectra-ng-ui-icon-field.mjs.map +1 -0
  68. package/fesm2022/tectra-ng-ui-input-group.mjs +113 -0
  69. package/fesm2022/tectra-ng-ui-input-group.mjs.map +1 -0
  70. package/fesm2022/tectra-ng-ui-input-mask.mjs +413 -0
  71. package/fesm2022/tectra-ng-ui-input-mask.mjs.map +1 -0
  72. package/fesm2022/tectra-ng-ui-input-number.mjs +1045 -0
  73. package/fesm2022/tectra-ng-ui-input-number.mjs.map +1 -0
  74. package/fesm2022/tectra-ng-ui-input-otp.mjs +553 -0
  75. package/fesm2022/tectra-ng-ui-input-otp.mjs.map +1 -0
  76. package/fesm2022/tectra-ng-ui-input.mjs +260 -0
  77. package/fesm2022/tectra-ng-ui-input.mjs.map +1 -0
  78. package/fesm2022/tectra-ng-ui-key-filter.mjs +185 -0
  79. package/fesm2022/tectra-ng-ui-key-filter.mjs.map +1 -0
  80. package/fesm2022/tectra-ng-ui-knob.mjs +630 -0
  81. package/fesm2022/tectra-ng-ui-knob.mjs.map +1 -0
  82. package/fesm2022/tectra-ng-ui-label.mjs +271 -0
  83. package/fesm2022/tectra-ng-ui-label.mjs.map +1 -0
  84. package/fesm2022/tectra-ng-ui-link.mjs +699 -0
  85. package/fesm2022/tectra-ng-ui-link.mjs.map +1 -0
  86. package/fesm2022/tectra-ng-ui-listbox.mjs +484 -0
  87. package/fesm2022/tectra-ng-ui-listbox.mjs.map +1 -0
  88. package/fesm2022/tectra-ng-ui-mention-textarea.mjs +717 -0
  89. package/fesm2022/tectra-ng-ui-mention-textarea.mjs.map +1 -0
  90. package/fesm2022/tectra-ng-ui-menu.mjs +1484 -0
  91. package/fesm2022/tectra-ng-ui-menu.mjs.map +1 -0
  92. package/fesm2022/tectra-ng-ui-message.mjs +975 -0
  93. package/fesm2022/tectra-ng-ui-message.mjs.map +1 -0
  94. package/fesm2022/tectra-ng-ui-multiselect.mjs +569 -0
  95. package/fesm2022/tectra-ng-ui-multiselect.mjs.map +1 -0
  96. package/fesm2022/tectra-ng-ui-overlay-badge.mjs +345 -0
  97. package/fesm2022/tectra-ng-ui-overlay-badge.mjs.map +1 -0
  98. package/fesm2022/tectra-ng-ui-paginator.mjs +849 -0
  99. package/fesm2022/tectra-ng-ui-paginator.mjs.map +1 -0
  100. package/fesm2022/tectra-ng-ui-panel.mjs +317 -0
  101. package/fesm2022/tectra-ng-ui-panel.mjs.map +1 -0
  102. package/fesm2022/tectra-ng-ui-password-generator.mjs +292 -0
  103. package/fesm2022/tectra-ng-ui-password-generator.mjs.map +1 -0
  104. package/fesm2022/tectra-ng-ui-password.mjs +871 -0
  105. package/fesm2022/tectra-ng-ui-password.mjs.map +1 -0
  106. package/fesm2022/tectra-ng-ui-pill.mjs +361 -0
  107. package/fesm2022/tectra-ng-ui-pill.mjs.map +1 -0
  108. package/fesm2022/tectra-ng-ui-popover.mjs +742 -0
  109. package/fesm2022/tectra-ng-ui-popover.mjs.map +1 -0
  110. package/fesm2022/tectra-ng-ui-progress-bar.mjs +440 -0
  111. package/fesm2022/tectra-ng-ui-progress-bar.mjs.map +1 -0
  112. package/fesm2022/tectra-ng-ui-progress-spinner.mjs +265 -0
  113. package/fesm2022/tectra-ng-ui-progress-spinner.mjs.map +1 -0
  114. package/fesm2022/tectra-ng-ui-radio-button.mjs +817 -0
  115. package/fesm2022/tectra-ng-ui-radio-button.mjs.map +1 -0
  116. package/fesm2022/tectra-ng-ui-rating.mjs +584 -0
  117. package/fesm2022/tectra-ng-ui-rating.mjs.map +1 -0
  118. package/fesm2022/tectra-ng-ui-select.mjs +2478 -0
  119. package/fesm2022/tectra-ng-ui-select.mjs.map +1 -0
  120. package/fesm2022/tectra-ng-ui-skeleton.mjs +548 -0
  121. package/fesm2022/tectra-ng-ui-skeleton.mjs.map +1 -0
  122. package/fesm2022/tectra-ng-ui-slider.mjs +630 -0
  123. package/fesm2022/tectra-ng-ui-slider.mjs.map +1 -0
  124. package/fesm2022/tectra-ng-ui-speed-dial.mjs +669 -0
  125. package/fesm2022/tectra-ng-ui-speed-dial.mjs.map +1 -0
  126. package/fesm2022/tectra-ng-ui-split-button.mjs +614 -0
  127. package/fesm2022/tectra-ng-ui-split-button.mjs.map +1 -0
  128. package/fesm2022/tectra-ng-ui-status-icon.mjs +295 -0
  129. package/fesm2022/tectra-ng-ui-status-icon.mjs.map +1 -0
  130. package/fesm2022/tectra-ng-ui-table.mjs +5997 -0
  131. package/fesm2022/tectra-ng-ui-table.mjs.map +1 -0
  132. package/fesm2022/tectra-ng-ui-tag.mjs +422 -0
  133. package/fesm2022/tectra-ng-ui-tag.mjs.map +1 -0
  134. package/fesm2022/tectra-ng-ui-textarea.mjs +482 -0
  135. package/fesm2022/tectra-ng-ui-textarea.mjs.map +1 -0
  136. package/fesm2022/tectra-ng-ui-toast.mjs +668 -0
  137. package/fesm2022/tectra-ng-ui-toast.mjs.map +1 -0
  138. package/fesm2022/tectra-ng-ui-toggle-button.mjs +416 -0
  139. package/fesm2022/tectra-ng-ui-toggle-button.mjs.map +1 -0
  140. package/fesm2022/tectra-ng-ui-toggle-switch.mjs +560 -0
  141. package/fesm2022/tectra-ng-ui-toggle-switch.mjs.map +1 -0
  142. package/fesm2022/tectra-ng-ui-tooltip.mjs +835 -0
  143. package/fesm2022/tectra-ng-ui-tooltip.mjs.map +1 -0
  144. package/fesm2022/tectra-ng-ui-tree-select.mjs +986 -0
  145. package/fesm2022/tectra-ng-ui-tree-select.mjs.map +1 -0
  146. package/fesm2022/tectra-ng-ui.mjs +4 -0
  147. package/fesm2022/tectra-ng-ui.mjs.map +1 -0
  148. package/field/README.md +43 -0
  149. package/fieldset/README.md +36 -0
  150. package/highlight-text/README.md +20 -0
  151. package/icon-field/README.md +30 -0
  152. package/input/README.md +22 -0
  153. package/input-group/README.md +21 -0
  154. package/input-mask/README.md +30 -0
  155. package/input-number/README.md +61 -0
  156. package/input-otp/README.md +44 -0
  157. package/key-filter/README.md +31 -0
  158. package/knob/README.md +50 -0
  159. package/label/README.md +29 -0
  160. package/link/README.md +47 -0
  161. package/listbox/README.md +68 -0
  162. package/mention-textarea/README.md +47 -0
  163. package/menu/README.md +65 -0
  164. package/message/README.md +58 -0
  165. package/multiselect/README.md +85 -0
  166. package/overlay-badge/README.md +30 -0
  167. package/package.json +301 -3
  168. package/paginator/README.md +60 -0
  169. package/panel/README.md +45 -0
  170. package/password/README.md +60 -0
  171. package/password-generator/README.md +34 -0
  172. package/pill/README.md +42 -0
  173. package/popover/README.md +67 -0
  174. package/progress-bar/README.md +32 -0
  175. package/progress-spinner/README.md +22 -0
  176. package/radio-button/README.md +54 -0
  177. package/rating/README.md +49 -0
  178. package/select/README.md +78 -0
  179. package/skeleton/README.md +27 -0
  180. package/slider/README.md +48 -0
  181. package/speed-dial/README.md +49 -0
  182. package/split-button/README.md +45 -0
  183. package/status-icon/README.md +22 -0
  184. package/table/README.md +178 -0
  185. package/tag/README.md +42 -0
  186. package/textarea/README.md +37 -0
  187. package/toast/README.md +52 -0
  188. package/toggle-button/README.md +34 -0
  189. package/toggle-switch/README.md +49 -0
  190. package/tooltip/README.md +60 -0
  191. package/tree-select/README.md +49 -0
  192. package/types/tectra-ng-ui-amount.d.ts +135 -0
  193. package/types/tectra-ng-ui-amount.d.ts.map +1 -0
  194. package/types/tectra-ng-ui-autocomplete.d.ts +250 -0
  195. package/types/tectra-ng-ui-autocomplete.d.ts.map +1 -0
  196. package/types/tectra-ng-ui-avatar.d.ts +289 -0
  197. package/types/tectra-ng-ui-avatar.d.ts.map +1 -0
  198. package/types/tectra-ng-ui-badge.d.ts +119 -0
  199. package/types/tectra-ng-ui-badge.d.ts.map +1 -0
  200. package/types/tectra-ng-ui-button-group.d.ts +6 -0
  201. package/types/tectra-ng-ui-button-group.d.ts.map +1 -0
  202. package/types/tectra-ng-ui-button.d.ts +466 -0
  203. package/types/tectra-ng-ui-button.d.ts.map +1 -0
  204. package/types/tectra-ng-ui-card.d.ts +71 -0
  205. package/types/tectra-ng-ui-card.d.ts.map +1 -0
  206. package/types/tectra-ng-ui-cascade-select.d.ts +244 -0
  207. package/types/tectra-ng-ui-cascade-select.d.ts.map +1 -0
  208. package/types/tectra-ng-ui-checkbox.d.ts +450 -0
  209. package/types/tectra-ng-ui-checkbox.d.ts.map +1 -0
  210. package/types/tectra-ng-ui-chip.d.ts +106 -0
  211. package/types/tectra-ng-ui-chip.d.ts.map +1 -0
  212. package/types/tectra-ng-ui-chips-input.d.ts +187 -0
  213. package/types/tectra-ng-ui-chips-input.d.ts.map +1 -0
  214. package/types/tectra-ng-ui-color-picker.d.ts +237 -0
  215. package/types/tectra-ng-ui-color-picker.d.ts.map +1 -0
  216. package/types/tectra-ng-ui-confirm.d.ts +80 -0
  217. package/types/tectra-ng-ui-confirm.d.ts.map +1 -0
  218. package/types/tectra-ng-ui-country-select.d.ts +235 -0
  219. package/types/tectra-ng-ui-country-select.d.ts.map +1 -0
  220. package/types/tectra-ng-ui-country.d.ts +105 -0
  221. package/types/tectra-ng-ui-country.d.ts.map +1 -0
  222. package/types/tectra-ng-ui-dialog.d.ts +453 -0
  223. package/types/tectra-ng-ui-dialog.d.ts.map +1 -0
  224. package/types/tectra-ng-ui-divider.d.ts +70 -0
  225. package/types/tectra-ng-ui-divider.d.ts.map +1 -0
  226. package/types/tectra-ng-ui-drawer.d.ts +188 -0
  227. package/types/tectra-ng-ui-drawer.d.ts.map +1 -0
  228. package/types/tectra-ng-ui-email-suggestion.d.ts +84 -0
  229. package/types/tectra-ng-ui-email-suggestion.d.ts.map +1 -0
  230. package/types/tectra-ng-ui-field.d.ts +139 -0
  231. package/types/tectra-ng-ui-field.d.ts.map +1 -0
  232. package/types/tectra-ng-ui-fieldset.d.ts +74 -0
  233. package/types/tectra-ng-ui-fieldset.d.ts.map +1 -0
  234. package/types/tectra-ng-ui-highlight-text.d.ts +75 -0
  235. package/types/tectra-ng-ui-highlight-text.d.ts.map +1 -0
  236. package/types/tectra-ng-ui-icon-field.d.ts +77 -0
  237. package/types/tectra-ng-ui-icon-field.d.ts.map +1 -0
  238. package/types/tectra-ng-ui-input-group.d.ts +18 -0
  239. package/types/tectra-ng-ui-input-group.d.ts.map +1 -0
  240. package/types/tectra-ng-ui-input-mask.d.ts +91 -0
  241. package/types/tectra-ng-ui-input-mask.d.ts.map +1 -0
  242. package/types/tectra-ng-ui-input-number.d.ts +326 -0
  243. package/types/tectra-ng-ui-input-number.d.ts.map +1 -0
  244. package/types/tectra-ng-ui-input-otp.d.ts +173 -0
  245. package/types/tectra-ng-ui-input-otp.d.ts.map +1 -0
  246. package/types/tectra-ng-ui-input.d.ts +113 -0
  247. package/types/tectra-ng-ui-input.d.ts.map +1 -0
  248. package/types/tectra-ng-ui-key-filter.d.ts +43 -0
  249. package/types/tectra-ng-ui-key-filter.d.ts.map +1 -0
  250. package/types/tectra-ng-ui-knob.d.ts +207 -0
  251. package/types/tectra-ng-ui-knob.d.ts.map +1 -0
  252. package/types/tectra-ng-ui-label.d.ts +53 -0
  253. package/types/tectra-ng-ui-label.d.ts.map +1 -0
  254. package/types/tectra-ng-ui-link.d.ts +223 -0
  255. package/types/tectra-ng-ui-link.d.ts.map +1 -0
  256. package/types/tectra-ng-ui-listbox.d.ts +131 -0
  257. package/types/tectra-ng-ui-listbox.d.ts.map +1 -0
  258. package/types/tectra-ng-ui-mention-textarea.d.ts +169 -0
  259. package/types/tectra-ng-ui-mention-textarea.d.ts.map +1 -0
  260. package/types/tectra-ng-ui-menu.d.ts +512 -0
  261. package/types/tectra-ng-ui-menu.d.ts.map +1 -0
  262. package/types/tectra-ng-ui-message.d.ts +390 -0
  263. package/types/tectra-ng-ui-message.d.ts.map +1 -0
  264. package/types/tectra-ng-ui-multiselect.d.ts +216 -0
  265. package/types/tectra-ng-ui-multiselect.d.ts.map +1 -0
  266. package/types/tectra-ng-ui-overlay-badge.d.ts +104 -0
  267. package/types/tectra-ng-ui-overlay-badge.d.ts.map +1 -0
  268. package/types/tectra-ng-ui-paginator.d.ts +293 -0
  269. package/types/tectra-ng-ui-paginator.d.ts.map +1 -0
  270. package/types/tectra-ng-ui-panel.d.ts +133 -0
  271. package/types/tectra-ng-ui-panel.d.ts.map +1 -0
  272. package/types/tectra-ng-ui-password-generator.d.ts +80 -0
  273. package/types/tectra-ng-ui-password-generator.d.ts.map +1 -0
  274. package/types/tectra-ng-ui-password.d.ts +271 -0
  275. package/types/tectra-ng-ui-password.d.ts.map +1 -0
  276. package/types/tectra-ng-ui-pill.d.ts +167 -0
  277. package/types/tectra-ng-ui-pill.d.ts.map +1 -0
  278. package/types/tectra-ng-ui-popover.d.ts +244 -0
  279. package/types/tectra-ng-ui-popover.d.ts.map +1 -0
  280. package/types/tectra-ng-ui-progress-bar.d.ts +151 -0
  281. package/types/tectra-ng-ui-progress-bar.d.ts.map +1 -0
  282. package/types/tectra-ng-ui-progress-spinner.d.ts +95 -0
  283. package/types/tectra-ng-ui-progress-spinner.d.ts.map +1 -0
  284. package/types/tectra-ng-ui-radio-button.d.ts +380 -0
  285. package/types/tectra-ng-ui-radio-button.d.ts.map +1 -0
  286. package/types/tectra-ng-ui-rating.d.ts +195 -0
  287. package/types/tectra-ng-ui-rating.d.ts.map +1 -0
  288. package/types/tectra-ng-ui-select.d.ts +761 -0
  289. package/types/tectra-ng-ui-select.d.ts.map +1 -0
  290. package/types/tectra-ng-ui-skeleton.d.ts +182 -0
  291. package/types/tectra-ng-ui-skeleton.d.ts.map +1 -0
  292. package/types/tectra-ng-ui-slider.d.ts +220 -0
  293. package/types/tectra-ng-ui-slider.d.ts.map +1 -0
  294. package/types/tectra-ng-ui-speed-dial.d.ts +175 -0
  295. package/types/tectra-ng-ui-speed-dial.d.ts.map +1 -0
  296. package/types/tectra-ng-ui-split-button.d.ts +139 -0
  297. package/types/tectra-ng-ui-split-button.d.ts.map +1 -0
  298. package/types/tectra-ng-ui-status-icon.d.ts +105 -0
  299. package/types/tectra-ng-ui-status-icon.d.ts.map +1 -0
  300. package/types/tectra-ng-ui-table.d.ts +1301 -0
  301. package/types/tectra-ng-ui-table.d.ts.map +1 -0
  302. package/types/tectra-ng-ui-tag.d.ts +157 -0
  303. package/types/tectra-ng-ui-tag.d.ts.map +1 -0
  304. package/types/tectra-ng-ui-textarea.d.ts +146 -0
  305. package/types/tectra-ng-ui-textarea.d.ts.map +1 -0
  306. package/types/tectra-ng-ui-toast.d.ts +268 -0
  307. package/types/tectra-ng-ui-toast.d.ts.map +1 -0
  308. package/types/tectra-ng-ui-toggle-button.d.ts +184 -0
  309. package/types/tectra-ng-ui-toggle-button.d.ts.map +1 -0
  310. package/types/tectra-ng-ui-toggle-switch.d.ts +226 -0
  311. package/types/tectra-ng-ui-toggle-switch.d.ts.map +1 -0
  312. package/types/tectra-ng-ui-tooltip.d.ts +275 -0
  313. package/types/tectra-ng-ui-tooltip.d.ts.map +1 -0
  314. package/types/tectra-ng-ui-tree-select.d.ts +339 -0
  315. package/types/tectra-ng-ui-tree-select.d.ts.map +1 -0
  316. package/types/tectra-ng-ui.d.ts +2 -0
  317. package/types/tectra-ng-ui.d.ts.map +1 -0
@@ -0,0 +1,817 @@
1
+ import * as i0 from "@angular/core";
2
+ import { ChangeDetectionStrategy, Component, InjectionToken, booleanAttribute, computed, forwardRef, inject, input, output, viewChild } from "@angular/core";
3
+ import { NG_VALUE_ACCESSOR } from "@angular/forms";
4
+ import { uniqueId } from "@tectra-ng/core/a11y";
5
+ import { injectPassThrough, injectUnstyled } from "@tectra-ng/core/config";
6
+ import { TxFormControlBase, injectFieldInvalid } from "@tectra-ng/core/forms";
7
+ import { optionalBoolean, optionalNumber } from "@tectra-ng/core/utils";
8
+ import { toStyleObject } from "@tectra-ng/themes";
9
+ const TX_RADIO_GROUP = new InjectionToken("TX_RADIO_GROUP");
10
+ var TxRadioButton = class TxRadioButton extends TxFormControlBase {
11
+ group = inject(TX_RADIO_GROUP, { optional: true });
12
+ generatedId = uniqueId("tx-radio-button");
13
+ optionValue = input(void 0, {
14
+ ...ngDevMode ? { debugName: "optionValue" } : /* istanbul ignore next */ {},
15
+ alias: "value"
16
+ });
17
+ label = input(void 0, ...ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []);
18
+ description = input(void 0, ...ngDevMode ? [{ debugName: "description" }] : /* istanbul ignore next */ []);
19
+ size = input(void 0, ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
20
+ variant = input(void 0, ...ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []);
21
+ tile = input(false, {
22
+ ...ngDevMode ? { debugName: "tile" } : /* istanbul ignore next */ {},
23
+ transform: booleanAttribute
24
+ });
25
+ invalid = input(void 0, {
26
+ ...ngDevMode ? { debugName: "invalid" } : /* istanbul ignore next */ {},
27
+ transform: optionalBoolean
28
+ });
29
+ disabledInput = input(false, {
30
+ ...ngDevMode ? { debugName: "disabledInput" } : /* istanbul ignore next */ {},
31
+ alias: "disabled",
32
+ transform: booleanAttribute
33
+ });
34
+ readonly = input(false, {
35
+ ...ngDevMode ? { debugName: "readonly" } : /* istanbul ignore next */ {},
36
+ transform: booleanAttribute
37
+ });
38
+ required = input(false, {
39
+ ...ngDevMode ? { debugName: "required" } : /* istanbul ignore next */ {},
40
+ transform: booleanAttribute
41
+ });
42
+ name = input(void 0, ...ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []);
43
+ inputId = input(void 0, ...ngDevMode ? [{ debugName: "inputId" }] : /* istanbul ignore next */ []);
44
+ ariaLabel = input(void 0, ...ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
45
+ ariaLabelledBy = input(void 0, ...ngDevMode ? [{ debugName: "ariaLabelledBy" }] : /* istanbul ignore next */ []);
46
+ tabindex = input(void 0, {
47
+ ...ngDevMode ? { debugName: "tabindex" } : /* istanbul ignore next */ {},
48
+ transform: optionalNumber
49
+ });
50
+ dt = input(void 0, ...ngDevMode ? [{ debugName: "dt" }] : /* istanbul ignore next */ []);
51
+ pt = input(void 0, ...ngDevMode ? [{ debugName: "pt" }] : /* istanbul ignore next */ []);
52
+ ptOptions = input(void 0, ...ngDevMode ? [{ debugName: "ptOptions" }] : /* istanbul ignore next */ []);
53
+ unstyled = input(void 0, {
54
+ ...ngDevMode ? { debugName: "unstyled" } : /* istanbul ignore next */ {},
55
+ transform: optionalBoolean
56
+ });
57
+ changed = output();
58
+ inputRef = viewChild.required("input", ...ngDevMode ? [{ debugName: "inputRef" }] : /* istanbul ignore next */ []);
59
+ isUnstyled = injectUnstyled(this.unstyled);
60
+ passThrough = injectPassThrough("radioButton", this, this.pt, this.ptOptions);
61
+ ownInvalid = injectFieldInvalid(this.invalid);
62
+ resolvedId = computed(() => this.inputId() ?? this.generatedId, ...ngDevMode ? [{ debugName: "resolvedId" }] : /* istanbul ignore next */ []);
63
+ descriptionId = `${this.generatedId}-description`;
64
+ resolvedName = computed(() => this.group?.name() ?? this.name(), ...ngDevMode ? [{ debugName: "resolvedName" }] : /* istanbul ignore next */ []);
65
+ resolvedSize = computed(() => this.size() ?? this.group?.size() ?? "medium", ...ngDevMode ? [{ debugName: "resolvedSize" }] : /* istanbul ignore next */ []);
66
+ resolvedVariant = computed(() => this.variant() ?? this.group?.variant() ?? "outlined", ...ngDevMode ? [{ debugName: "resolvedVariant" }] : /* istanbul ignore next */ []);
67
+ isDisabled = computed(() => this.disabled() || this.disabledInput() || !!this.group?.isDisabled(), ...ngDevMode ? [{ debugName: "isDisabled" }] : /* istanbul ignore next */ []);
68
+ isInvalid = computed(() => this.ownInvalid() || !!this.group?.isInvalid(), ...ngDevMode ? [{ debugName: "isInvalid" }] : /* istanbul ignore next */ []);
69
+ isRequired = computed(() => this.required() || !!this.group?.isRequired(), ...ngDevMode ? [{ debugName: "isRequired" }] : /* istanbul ignore next */ []);
70
+ checked = computed(() => this.group ? this.group.isChecked(this.optionValue()) : this.value() === this.optionValue(), ...ngDevMode ? [{ debugName: "checked" }] : /* istanbul ignore next */ []);
71
+ hostStyle = computed(() => ({
72
+ ...toStyleObject(this.dt(), "--tx-radio-button"),
73
+ ...this.passThrough().root?.style
74
+ }), ...ngDevMode ? [{ debugName: "hostStyle" }] : /* istanbul ignore next */ []);
75
+ focus() {
76
+ this.inputRef().nativeElement.focus();
77
+ }
78
+ onInputClick(event) {
79
+ if (this.readonly()) event.preventDefault();
80
+ }
81
+ onInputChange(event) {
82
+ if (this.group) this.group.select(this.optionValue(), event);
83
+ else this.updateValue(this.optionValue());
84
+ this.changed.emit({
85
+ value: this.optionValue(),
86
+ originalEvent: event
87
+ });
88
+ }
89
+ onBlur() {
90
+ this.markTouched();
91
+ this.group?.touch();
92
+ }
93
+ onHostClick(event) {
94
+ if (!this.tile() || this.isDisabled()) return;
95
+ if (!event.target.closest("label, input, a, button")) this.inputRef().nativeElement.click();
96
+ }
97
+ static ɵfac = i0.ɵɵngDeclareFactory({
98
+ minVersion: "12.0.0",
99
+ version: "22.2.3",
100
+ ngImport: i0,
101
+ type: TxRadioButton,
102
+ deps: null,
103
+ target: i0.ɵɵFactoryTarget.Component
104
+ });
105
+ static ɵcmp = i0.ɵɵngDeclareComponent({
106
+ minVersion: "17.0.0",
107
+ version: "22.2.3",
108
+ type: TxRadioButton,
109
+ isStandalone: true,
110
+ selector: "tx-radio-button",
111
+ inputs: {
112
+ optionValue: {
113
+ classPropertyName: "optionValue",
114
+ publicName: "value",
115
+ isSignal: true,
116
+ isRequired: false,
117
+ transformFunction: null
118
+ },
119
+ label: {
120
+ classPropertyName: "label",
121
+ publicName: "label",
122
+ isSignal: true,
123
+ isRequired: false,
124
+ transformFunction: null
125
+ },
126
+ description: {
127
+ classPropertyName: "description",
128
+ publicName: "description",
129
+ isSignal: true,
130
+ isRequired: false,
131
+ transformFunction: null
132
+ },
133
+ size: {
134
+ classPropertyName: "size",
135
+ publicName: "size",
136
+ isSignal: true,
137
+ isRequired: false,
138
+ transformFunction: null
139
+ },
140
+ variant: {
141
+ classPropertyName: "variant",
142
+ publicName: "variant",
143
+ isSignal: true,
144
+ isRequired: false,
145
+ transformFunction: null
146
+ },
147
+ tile: {
148
+ classPropertyName: "tile",
149
+ publicName: "tile",
150
+ isSignal: true,
151
+ isRequired: false,
152
+ transformFunction: null
153
+ },
154
+ invalid: {
155
+ classPropertyName: "invalid",
156
+ publicName: "invalid",
157
+ isSignal: true,
158
+ isRequired: false,
159
+ transformFunction: null
160
+ },
161
+ disabledInput: {
162
+ classPropertyName: "disabledInput",
163
+ publicName: "disabled",
164
+ isSignal: true,
165
+ isRequired: false,
166
+ transformFunction: null
167
+ },
168
+ readonly: {
169
+ classPropertyName: "readonly",
170
+ publicName: "readonly",
171
+ isSignal: true,
172
+ isRequired: false,
173
+ transformFunction: null
174
+ },
175
+ required: {
176
+ classPropertyName: "required",
177
+ publicName: "required",
178
+ isSignal: true,
179
+ isRequired: false,
180
+ transformFunction: null
181
+ },
182
+ name: {
183
+ classPropertyName: "name",
184
+ publicName: "name",
185
+ isSignal: true,
186
+ isRequired: false,
187
+ transformFunction: null
188
+ },
189
+ inputId: {
190
+ classPropertyName: "inputId",
191
+ publicName: "inputId",
192
+ isSignal: true,
193
+ isRequired: false,
194
+ transformFunction: null
195
+ },
196
+ ariaLabel: {
197
+ classPropertyName: "ariaLabel",
198
+ publicName: "ariaLabel",
199
+ isSignal: true,
200
+ isRequired: false,
201
+ transformFunction: null
202
+ },
203
+ ariaLabelledBy: {
204
+ classPropertyName: "ariaLabelledBy",
205
+ publicName: "ariaLabelledBy",
206
+ isSignal: true,
207
+ isRequired: false,
208
+ transformFunction: null
209
+ },
210
+ tabindex: {
211
+ classPropertyName: "tabindex",
212
+ publicName: "tabindex",
213
+ isSignal: true,
214
+ isRequired: false,
215
+ transformFunction: null
216
+ },
217
+ dt: {
218
+ classPropertyName: "dt",
219
+ publicName: "dt",
220
+ isSignal: true,
221
+ isRequired: false,
222
+ transformFunction: null
223
+ },
224
+ pt: {
225
+ classPropertyName: "pt",
226
+ publicName: "pt",
227
+ isSignal: true,
228
+ isRequired: false,
229
+ transformFunction: null
230
+ },
231
+ ptOptions: {
232
+ classPropertyName: "ptOptions",
233
+ publicName: "ptOptions",
234
+ isSignal: true,
235
+ isRequired: false,
236
+ transformFunction: null
237
+ },
238
+ unstyled: {
239
+ classPropertyName: "unstyled",
240
+ publicName: "unstyled",
241
+ isSignal: true,
242
+ isRequired: false,
243
+ transformFunction: null
244
+ }
245
+ },
246
+ outputs: { changed: "changed" },
247
+ host: {
248
+ listeners: { "click": "onHostClick($event)" },
249
+ properties: {
250
+ "class": "passThrough().root?.class",
251
+ "style": "hostStyle()",
252
+ "attr.data-styled": "!isUnstyled() || null",
253
+ "attr.data-size": "resolvedSize()",
254
+ "attr.data-variant": "resolvedVariant()",
255
+ "class.tx-radio-button--checked": "checked()",
256
+ "class.tx-radio-button--disabled": "isDisabled()",
257
+ "class.tx-radio-button--readonly": "readonly()",
258
+ "class.tx-radio-button--invalid": "isInvalid()",
259
+ "class.tx-radio-button--tile": "tile()"
260
+ },
261
+ classAttribute: "tx-radio-button"
262
+ },
263
+ providers: [{
264
+ provide: NG_VALUE_ACCESSOR,
265
+ useExisting: forwardRef(() => TxRadioButton),
266
+ multi: true
267
+ }],
268
+ viewQueries: [{
269
+ propertyName: "inputRef",
270
+ first: true,
271
+ predicate: ["input"],
272
+ descendants: true,
273
+ isSignal: true
274
+ }],
275
+ usesInheritance: true,
276
+ ngImport: i0,
277
+ template: "<span class=\"tx-radio-button__box\" [class]=\"passThrough().box?.class\" [style]=\"passThrough().box?.style\">\n <input\n #input\n type=\"radio\"\n class=\"tx-radio-button__input\"\n [class]=\"passThrough().input?.class\"\n [style]=\"passThrough().input?.style\"\n [id]=\"resolvedId()\"\n [checked]=\"checked()\"\n [disabled]=\"isDisabled()\"\n [required]=\"isRequired()\"\n [attr.name]=\"resolvedName() ?? null\"\n [attr.tabindex]=\"tabindex() ?? null\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() ?? null\"\n [attr.aria-describedby]=\"description() ? descriptionId : null\"\n [attr.aria-invalid]=\"isInvalid() || null\"\n (click)=\"onInputClick($event)\"\n (change)=\"onInputChange($event)\"\n (blur)=\"onBlur()\"\n />\n <span class=\"tx-radio-button__indicator\" aria-hidden=\"true\">\n <span class=\"tx-radio-button__dot\" [class]=\"passThrough().dot?.class\" [style]=\"passThrough().dot?.style\"></span>\n </span>\n</span>\n<span class=\"tx-radio-button__text\">\n <label class=\"tx-radio-button__label\" [for]=\"resolvedId()\" [class]=\"passThrough().label?.class\" [style]=\"passThrough().label?.style\"\n >{{ label() }}<ng-content\n /></label>\n @if (description()) {\n <span\n class=\"tx-radio-button__description\"\n [id]=\"descriptionId\"\n [class]=\"passThrough().description?.class\"\n [style]=\"passThrough().description?.style\"\n >{{ description() }}</span\n >\n }\n</span>\n",
278
+ styles: [":host{display:inline-flex;align-items:flex-start;vertical-align:top}:host([data-styled]){--_size: var(--tx-radio-button-size);--_dot-size: var(--tx-radio-button-dot-size);--_label-font-size: var(--tx-radio-button-label-font-size);gap:var(--tx-radio-button-gap);font-family:var(--tx-font-family)}:host([data-styled][data-size=small]){--_size: var(--tx-radio-button-sm-size);--_dot-size: var(--tx-radio-button-sm-dot-size);--_label-font-size: var(--tx-radio-button-sm-label-font-size)}:host([data-styled][data-size=large]){--_size: var(--tx-radio-button-lg-size);--_dot-size: var(--tx-radio-button-lg-dot-size);--_label-font-size: var(--tx-radio-button-lg-label-font-size)}.tx-radio-button__box{position:relative;display:inline-flex;flex-shrink:0}.tx-radio-button__input{position:absolute;inset:0;z-index:1;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}.tx-radio-button__input:disabled{cursor:not-allowed}:host([data-styled]) .tx-radio-button__box{margin-top:calc((var(--_label-font-size) * 1.5 - var(--_size)) / 2)}:host([data-styled]) .tx-radio-button__indicator{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:var(--_size);height:var(--_size);border:var(--tx-radio-button-border-width) solid var(--tx-radio-button-border-color);border-radius:50%;background:var(--tx-radio-button-background);transition:background-color var(--tx-radio-button-transition-duration),border-color var(--tx-radio-button-transition-duration)}:host([data-styled]) .tx-radio-button__dot{width:var(--_dot-size);height:var(--_dot-size);border-radius:50%;background:var(--tx-radio-button-dot-color);transform:scale(0);transition:transform var(--tx-radio-button-transition-duration)}:host([data-styled].tx-radio-button--checked) .tx-radio-button__dot{transform:scale(1)}:host([data-styled][data-variant=filled]) .tx-radio-button__indicator{background:var(--tx-radio-button-filled-background)}:host([data-styled]:not(.tx-radio-button--disabled):not(.tx-radio-button--readonly)) .tx-radio-button__input:hover+.tx-radio-button__indicator{border-color:var(--tx-radio-button-hover-border-color)}:host([data-styled].tx-radio-button--checked) .tx-radio-button__indicator{border-color:var(--tx-radio-button-checked-border-color);background:var(--tx-radio-button-checked-background)}:host([data-styled].tx-radio-button--checked:not(.tx-radio-button--disabled):not(.tx-radio-button--readonly)) .tx-radio-button__input:hover+.tx-radio-button__indicator{border-color:var(--tx-radio-button-checked-hover-border-color);background:var(--tx-radio-button-checked-hover-background)}:host([data-styled].tx-radio-button--invalid) .tx-radio-button__indicator{border-color:var(--tx-radio-button-invalid-border-color)}:host([data-styled]) .tx-radio-button__input:focus-visible+.tx-radio-button__indicator{outline:var(--tx-radio-button-focus-ring-width) solid var(--tx-radio-button-focus-ring-color);outline-offset:var(--tx-radio-button-focus-ring-offset)}:host([data-styled].tx-radio-button--disabled) .tx-radio-button__indicator{border-color:var(--tx-radio-button-disabled-border-color);background:var(--tx-radio-button-disabled-background)}:host([data-styled].tx-radio-button--disabled) .tx-radio-button__label{color:var(--tx-radio-button-disabled-label-color);cursor:not-allowed}:host([data-styled].tx-radio-button--disabled.tx-radio-button--checked) .tx-radio-button__indicator{border-color:var(--tx-radio-button-disabled-checked-background);background:var(--tx-radio-button-disabled-checked-background)}:host([data-styled].tx-radio-button--disabled.tx-radio-button--checked) .tx-radio-button__dot{background:var(--tx-radio-button-disabled-dot-color)}:host(.tx-radio-button--readonly) .tx-radio-button__input,:host(.tx-radio-button--readonly) .tx-radio-button__label{cursor:default}.tx-radio-button__text{display:flex;flex-direction:column;min-width:0}.tx-radio-button__label:empty{display:none}:host([data-styled]) .tx-radio-button__label{color:var(--tx-radio-button-label-color);font-size:var(--_label-font-size);font-weight:var(--tx-radio-button-label-font-weight);line-height:1.5;cursor:pointer}:host([data-styled]) .tx-radio-button__description{color:var(--tx-radio-button-description-color);font-size:var(--tx-radio-button-description-font-size);line-height:1.45}:host([data-styled].tx-radio-button--tile){box-sizing:border-box;gap:var(--tx-radio-button-tile-gap);padding:var(--tx-radio-button-tile-padding);border:1px solid var(--tx-radio-button-tile-border-color);border-radius:var(--tx-radio-button-tile-border-radius);background:var(--tx-radio-button-tile-background);cursor:pointer;transition:border-color var(--tx-radio-button-transition-duration),background-color var(--tx-radio-button-transition-duration)}:host([data-styled].tx-radio-button--tile) .tx-radio-button__label{font-weight:var(--tx-radio-button-tile-label-font-weight)}:host([data-styled].tx-radio-button--tile:not(.tx-radio-button--disabled):hover){border-color:var(--tx-radio-button-tile-hover-border-color)}:host([data-styled].tx-radio-button--tile.tx-radio-button--checked){border-color:var(--tx-radio-button-tile-checked-border-color);background:var(--tx-radio-button-tile-checked-background)}:host([data-styled].tx-radio-button--tile.tx-radio-button--disabled){cursor:not-allowed}@media(prefers-reduced-motion:reduce){:host([data-styled]) .tx-radio-button__indicator,:host([data-styled]) .tx-radio-button__dot,:host([data-styled].tx-radio-button--tile){transition:none}}\n"],
279
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
280
+ });
281
+ };
282
+ i0.ɵɵngDeclareClassMetadata({
283
+ minVersion: "12.0.0",
284
+ version: "22.2.3",
285
+ ngImport: i0,
286
+ type: TxRadioButton,
287
+ decorators: [{
288
+ type: Component,
289
+ args: [{
290
+ selector: "tx-radio-button",
291
+ changeDetection: ChangeDetectionStrategy.OnPush,
292
+ providers: [{
293
+ provide: NG_VALUE_ACCESSOR,
294
+ useExisting: forwardRef(() => TxRadioButton),
295
+ multi: true
296
+ }],
297
+ host: {
298
+ class: "tx-radio-button",
299
+ "[class]": "passThrough().root?.class",
300
+ "[style]": "hostStyle()",
301
+ "[attr.data-styled]": "!isUnstyled() || null",
302
+ "[attr.data-size]": "resolvedSize()",
303
+ "[attr.data-variant]": "resolvedVariant()",
304
+ "[class.tx-radio-button--checked]": "checked()",
305
+ "[class.tx-radio-button--disabled]": "isDisabled()",
306
+ "[class.tx-radio-button--readonly]": "readonly()",
307
+ "[class.tx-radio-button--invalid]": "isInvalid()",
308
+ "[class.tx-radio-button--tile]": "tile()",
309
+ "(click)": "onHostClick($event)"
310
+ },
311
+ template: "<span class=\"tx-radio-button__box\" [class]=\"passThrough().box?.class\" [style]=\"passThrough().box?.style\">\n <input\n #input\n type=\"radio\"\n class=\"tx-radio-button__input\"\n [class]=\"passThrough().input?.class\"\n [style]=\"passThrough().input?.style\"\n [id]=\"resolvedId()\"\n [checked]=\"checked()\"\n [disabled]=\"isDisabled()\"\n [required]=\"isRequired()\"\n [attr.name]=\"resolvedName() ?? null\"\n [attr.tabindex]=\"tabindex() ?? null\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() ?? null\"\n [attr.aria-describedby]=\"description() ? descriptionId : null\"\n [attr.aria-invalid]=\"isInvalid() || null\"\n (click)=\"onInputClick($event)\"\n (change)=\"onInputChange($event)\"\n (blur)=\"onBlur()\"\n />\n <span class=\"tx-radio-button__indicator\" aria-hidden=\"true\">\n <span class=\"tx-radio-button__dot\" [class]=\"passThrough().dot?.class\" [style]=\"passThrough().dot?.style\"></span>\n </span>\n</span>\n<span class=\"tx-radio-button__text\">\n <label class=\"tx-radio-button__label\" [for]=\"resolvedId()\" [class]=\"passThrough().label?.class\" [style]=\"passThrough().label?.style\"\n >{{ label() }}<ng-content\n /></label>\n @if (description()) {\n <span\n class=\"tx-radio-button__description\"\n [id]=\"descriptionId\"\n [class]=\"passThrough().description?.class\"\n [style]=\"passThrough().description?.style\"\n >{{ description() }}</span\n >\n }\n</span>\n",
312
+ styles: [":host{display:inline-flex;align-items:flex-start;vertical-align:top}:host([data-styled]){--_size: var(--tx-radio-button-size);--_dot-size: var(--tx-radio-button-dot-size);--_label-font-size: var(--tx-radio-button-label-font-size);gap:var(--tx-radio-button-gap);font-family:var(--tx-font-family)}:host([data-styled][data-size=small]){--_size: var(--tx-radio-button-sm-size);--_dot-size: var(--tx-radio-button-sm-dot-size);--_label-font-size: var(--tx-radio-button-sm-label-font-size)}:host([data-styled][data-size=large]){--_size: var(--tx-radio-button-lg-size);--_dot-size: var(--tx-radio-button-lg-dot-size);--_label-font-size: var(--tx-radio-button-lg-label-font-size)}.tx-radio-button__box{position:relative;display:inline-flex;flex-shrink:0}.tx-radio-button__input{position:absolute;inset:0;z-index:1;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}.tx-radio-button__input:disabled{cursor:not-allowed}:host([data-styled]) .tx-radio-button__box{margin-top:calc((var(--_label-font-size) * 1.5 - var(--_size)) / 2)}:host([data-styled]) .tx-radio-button__indicator{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:var(--_size);height:var(--_size);border:var(--tx-radio-button-border-width) solid var(--tx-radio-button-border-color);border-radius:50%;background:var(--tx-radio-button-background);transition:background-color var(--tx-radio-button-transition-duration),border-color var(--tx-radio-button-transition-duration)}:host([data-styled]) .tx-radio-button__dot{width:var(--_dot-size);height:var(--_dot-size);border-radius:50%;background:var(--tx-radio-button-dot-color);transform:scale(0);transition:transform var(--tx-radio-button-transition-duration)}:host([data-styled].tx-radio-button--checked) .tx-radio-button__dot{transform:scale(1)}:host([data-styled][data-variant=filled]) .tx-radio-button__indicator{background:var(--tx-radio-button-filled-background)}:host([data-styled]:not(.tx-radio-button--disabled):not(.tx-radio-button--readonly)) .tx-radio-button__input:hover+.tx-radio-button__indicator{border-color:var(--tx-radio-button-hover-border-color)}:host([data-styled].tx-radio-button--checked) .tx-radio-button__indicator{border-color:var(--tx-radio-button-checked-border-color);background:var(--tx-radio-button-checked-background)}:host([data-styled].tx-radio-button--checked:not(.tx-radio-button--disabled):not(.tx-radio-button--readonly)) .tx-radio-button__input:hover+.tx-radio-button__indicator{border-color:var(--tx-radio-button-checked-hover-border-color);background:var(--tx-radio-button-checked-hover-background)}:host([data-styled].tx-radio-button--invalid) .tx-radio-button__indicator{border-color:var(--tx-radio-button-invalid-border-color)}:host([data-styled]) .tx-radio-button__input:focus-visible+.tx-radio-button__indicator{outline:var(--tx-radio-button-focus-ring-width) solid var(--tx-radio-button-focus-ring-color);outline-offset:var(--tx-radio-button-focus-ring-offset)}:host([data-styled].tx-radio-button--disabled) .tx-radio-button__indicator{border-color:var(--tx-radio-button-disabled-border-color);background:var(--tx-radio-button-disabled-background)}:host([data-styled].tx-radio-button--disabled) .tx-radio-button__label{color:var(--tx-radio-button-disabled-label-color);cursor:not-allowed}:host([data-styled].tx-radio-button--disabled.tx-radio-button--checked) .tx-radio-button__indicator{border-color:var(--tx-radio-button-disabled-checked-background);background:var(--tx-radio-button-disabled-checked-background)}:host([data-styled].tx-radio-button--disabled.tx-radio-button--checked) .tx-radio-button__dot{background:var(--tx-radio-button-disabled-dot-color)}:host(.tx-radio-button--readonly) .tx-radio-button__input,:host(.tx-radio-button--readonly) .tx-radio-button__label{cursor:default}.tx-radio-button__text{display:flex;flex-direction:column;min-width:0}.tx-radio-button__label:empty{display:none}:host([data-styled]) .tx-radio-button__label{color:var(--tx-radio-button-label-color);font-size:var(--_label-font-size);font-weight:var(--tx-radio-button-label-font-weight);line-height:1.5;cursor:pointer}:host([data-styled]) .tx-radio-button__description{color:var(--tx-radio-button-description-color);font-size:var(--tx-radio-button-description-font-size);line-height:1.45}:host([data-styled].tx-radio-button--tile){box-sizing:border-box;gap:var(--tx-radio-button-tile-gap);padding:var(--tx-radio-button-tile-padding);border:1px solid var(--tx-radio-button-tile-border-color);border-radius:var(--tx-radio-button-tile-border-radius);background:var(--tx-radio-button-tile-background);cursor:pointer;transition:border-color var(--tx-radio-button-transition-duration),background-color var(--tx-radio-button-transition-duration)}:host([data-styled].tx-radio-button--tile) .tx-radio-button__label{font-weight:var(--tx-radio-button-tile-label-font-weight)}:host([data-styled].tx-radio-button--tile:not(.tx-radio-button--disabled):hover){border-color:var(--tx-radio-button-tile-hover-border-color)}:host([data-styled].tx-radio-button--tile.tx-radio-button--checked){border-color:var(--tx-radio-button-tile-checked-border-color);background:var(--tx-radio-button-tile-checked-background)}:host([data-styled].tx-radio-button--tile.tx-radio-button--disabled){cursor:not-allowed}@media(prefers-reduced-motion:reduce){:host([data-styled]) .tx-radio-button__indicator,:host([data-styled]) .tx-radio-button__dot,:host([data-styled].tx-radio-button--tile){transition:none}}\n"]
313
+ }]
314
+ }],
315
+ propDecorators: {
316
+ optionValue: [{
317
+ type: i0.Input,
318
+ args: [{
319
+ isSignal: true,
320
+ alias: "value",
321
+ required: false
322
+ }]
323
+ }],
324
+ label: [{
325
+ type: i0.Input,
326
+ args: [{
327
+ isSignal: true,
328
+ alias: "label",
329
+ required: false
330
+ }]
331
+ }],
332
+ description: [{
333
+ type: i0.Input,
334
+ args: [{
335
+ isSignal: true,
336
+ alias: "description",
337
+ required: false
338
+ }]
339
+ }],
340
+ size: [{
341
+ type: i0.Input,
342
+ args: [{
343
+ isSignal: true,
344
+ alias: "size",
345
+ required: false
346
+ }]
347
+ }],
348
+ variant: [{
349
+ type: i0.Input,
350
+ args: [{
351
+ isSignal: true,
352
+ alias: "variant",
353
+ required: false
354
+ }]
355
+ }],
356
+ tile: [{
357
+ type: i0.Input,
358
+ args: [{
359
+ isSignal: true,
360
+ alias: "tile",
361
+ required: false
362
+ }]
363
+ }],
364
+ invalid: [{
365
+ type: i0.Input,
366
+ args: [{
367
+ isSignal: true,
368
+ alias: "invalid",
369
+ required: false
370
+ }]
371
+ }],
372
+ disabledInput: [{
373
+ type: i0.Input,
374
+ args: [{
375
+ isSignal: true,
376
+ alias: "disabled",
377
+ required: false
378
+ }]
379
+ }],
380
+ readonly: [{
381
+ type: i0.Input,
382
+ args: [{
383
+ isSignal: true,
384
+ alias: "readonly",
385
+ required: false
386
+ }]
387
+ }],
388
+ required: [{
389
+ type: i0.Input,
390
+ args: [{
391
+ isSignal: true,
392
+ alias: "required",
393
+ required: false
394
+ }]
395
+ }],
396
+ name: [{
397
+ type: i0.Input,
398
+ args: [{
399
+ isSignal: true,
400
+ alias: "name",
401
+ required: false
402
+ }]
403
+ }],
404
+ inputId: [{
405
+ type: i0.Input,
406
+ args: [{
407
+ isSignal: true,
408
+ alias: "inputId",
409
+ required: false
410
+ }]
411
+ }],
412
+ ariaLabel: [{
413
+ type: i0.Input,
414
+ args: [{
415
+ isSignal: true,
416
+ alias: "ariaLabel",
417
+ required: false
418
+ }]
419
+ }],
420
+ ariaLabelledBy: [{
421
+ type: i0.Input,
422
+ args: [{
423
+ isSignal: true,
424
+ alias: "ariaLabelledBy",
425
+ required: false
426
+ }]
427
+ }],
428
+ tabindex: [{
429
+ type: i0.Input,
430
+ args: [{
431
+ isSignal: true,
432
+ alias: "tabindex",
433
+ required: false
434
+ }]
435
+ }],
436
+ dt: [{
437
+ type: i0.Input,
438
+ args: [{
439
+ isSignal: true,
440
+ alias: "dt",
441
+ required: false
442
+ }]
443
+ }],
444
+ pt: [{
445
+ type: i0.Input,
446
+ args: [{
447
+ isSignal: true,
448
+ alias: "pt",
449
+ required: false
450
+ }]
451
+ }],
452
+ ptOptions: [{
453
+ type: i0.Input,
454
+ args: [{
455
+ isSignal: true,
456
+ alias: "ptOptions",
457
+ required: false
458
+ }]
459
+ }],
460
+ unstyled: [{
461
+ type: i0.Input,
462
+ args: [{
463
+ isSignal: true,
464
+ alias: "unstyled",
465
+ required: false
466
+ }]
467
+ }],
468
+ changed: [{
469
+ type: i0.Output,
470
+ args: ["changed"]
471
+ }],
472
+ inputRef: [{
473
+ type: i0.ViewChild,
474
+ args: ["input", { isSignal: true }]
475
+ }]
476
+ }
477
+ });
478
+ var TxRadioGroup = class TxRadioGroup extends TxFormControlBase {
479
+ generatedName = uniqueId("tx-radio-group");
480
+ name = input(void 0, ...ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []);
481
+ orientation = input("vertical", ...ngDevMode ? [{ debugName: "orientation" }] : /* istanbul ignore next */ []);
482
+ size = input(void 0, ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
483
+ variant = input(void 0, ...ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []);
484
+ invalid = input(void 0, {
485
+ ...ngDevMode ? { debugName: "invalid" } : /* istanbul ignore next */ {},
486
+ transform: optionalBoolean
487
+ });
488
+ disabledInput = input(false, {
489
+ ...ngDevMode ? { debugName: "disabledInput" } : /* istanbul ignore next */ {},
490
+ alias: "disabled",
491
+ transform: booleanAttribute
492
+ });
493
+ required = input(false, {
494
+ ...ngDevMode ? { debugName: "required" } : /* istanbul ignore next */ {},
495
+ transform: booleanAttribute
496
+ });
497
+ ariaLabel = input(void 0, ...ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
498
+ ariaLabelledBy = input(void 0, ...ngDevMode ? [{ debugName: "ariaLabelledBy" }] : /* istanbul ignore next */ []);
499
+ dt = input(void 0, ...ngDevMode ? [{ debugName: "dt" }] : /* istanbul ignore next */ []);
500
+ pt = input(void 0, ...ngDevMode ? [{ debugName: "pt" }] : /* istanbul ignore next */ []);
501
+ ptOptions = input(void 0, ...ngDevMode ? [{ debugName: "ptOptions" }] : /* istanbul ignore next */ []);
502
+ unstyled = input(void 0, {
503
+ ...ngDevMode ? { debugName: "unstyled" } : /* istanbul ignore next */ {},
504
+ transform: optionalBoolean
505
+ });
506
+ changed = output();
507
+ isUnstyled = injectUnstyled(this.unstyled);
508
+ passThrough = injectPassThrough("radioGroup", this, this.pt, this.ptOptions);
509
+ isInvalid = injectFieldInvalid(this.invalid);
510
+ isDisabled = computed(() => this.disabled() || this.disabledInput(), ...ngDevMode ? [{ debugName: "isDisabled" }] : /* istanbul ignore next */ []);
511
+ resolvedName = computed(() => this.name() ?? this.generatedName, ...ngDevMode ? [{ debugName: "resolvedName" }] : /* istanbul ignore next */ []);
512
+ hostStyle = computed(() => ({
513
+ ...toStyleObject(this.dt(), "--tx-radio-button"),
514
+ ...this.passThrough().root?.style
515
+ }), ...ngDevMode ? [{ debugName: "hostStyle" }] : /* istanbul ignore next */ []);
516
+ context = {
517
+ name: this.resolvedName,
518
+ isDisabled: this.isDisabled,
519
+ isInvalid: this.isInvalid,
520
+ isRequired: this.required,
521
+ size: this.size,
522
+ variant: this.variant,
523
+ isChecked: (value) => this.value() === value,
524
+ select: (value) => {
525
+ this.updateValue(value);
526
+ this.changed.emit(value);
527
+ },
528
+ touch: () => this.markTouched()
529
+ };
530
+ static ɵfac = i0.ɵɵngDeclareFactory({
531
+ minVersion: "12.0.0",
532
+ version: "22.2.3",
533
+ ngImport: i0,
534
+ type: TxRadioGroup,
535
+ deps: null,
536
+ target: i0.ɵɵFactoryTarget.Component
537
+ });
538
+ static ɵcmp = i0.ɵɵngDeclareComponent({
539
+ minVersion: "17.1.0",
540
+ version: "22.2.3",
541
+ type: TxRadioGroup,
542
+ isStandalone: true,
543
+ selector: "tx-radio-group",
544
+ inputs: {
545
+ name: {
546
+ classPropertyName: "name",
547
+ publicName: "name",
548
+ isSignal: true,
549
+ isRequired: false,
550
+ transformFunction: null
551
+ },
552
+ orientation: {
553
+ classPropertyName: "orientation",
554
+ publicName: "orientation",
555
+ isSignal: true,
556
+ isRequired: false,
557
+ transformFunction: null
558
+ },
559
+ size: {
560
+ classPropertyName: "size",
561
+ publicName: "size",
562
+ isSignal: true,
563
+ isRequired: false,
564
+ transformFunction: null
565
+ },
566
+ variant: {
567
+ classPropertyName: "variant",
568
+ publicName: "variant",
569
+ isSignal: true,
570
+ isRequired: false,
571
+ transformFunction: null
572
+ },
573
+ invalid: {
574
+ classPropertyName: "invalid",
575
+ publicName: "invalid",
576
+ isSignal: true,
577
+ isRequired: false,
578
+ transformFunction: null
579
+ },
580
+ disabledInput: {
581
+ classPropertyName: "disabledInput",
582
+ publicName: "disabled",
583
+ isSignal: true,
584
+ isRequired: false,
585
+ transformFunction: null
586
+ },
587
+ required: {
588
+ classPropertyName: "required",
589
+ publicName: "required",
590
+ isSignal: true,
591
+ isRequired: false,
592
+ transformFunction: null
593
+ },
594
+ ariaLabel: {
595
+ classPropertyName: "ariaLabel",
596
+ publicName: "ariaLabel",
597
+ isSignal: true,
598
+ isRequired: false,
599
+ transformFunction: null
600
+ },
601
+ ariaLabelledBy: {
602
+ classPropertyName: "ariaLabelledBy",
603
+ publicName: "ariaLabelledBy",
604
+ isSignal: true,
605
+ isRequired: false,
606
+ transformFunction: null
607
+ },
608
+ dt: {
609
+ classPropertyName: "dt",
610
+ publicName: "dt",
611
+ isSignal: true,
612
+ isRequired: false,
613
+ transformFunction: null
614
+ },
615
+ pt: {
616
+ classPropertyName: "pt",
617
+ publicName: "pt",
618
+ isSignal: true,
619
+ isRequired: false,
620
+ transformFunction: null
621
+ },
622
+ ptOptions: {
623
+ classPropertyName: "ptOptions",
624
+ publicName: "ptOptions",
625
+ isSignal: true,
626
+ isRequired: false,
627
+ transformFunction: null
628
+ },
629
+ unstyled: {
630
+ classPropertyName: "unstyled",
631
+ publicName: "unstyled",
632
+ isSignal: true,
633
+ isRequired: false,
634
+ transformFunction: null
635
+ }
636
+ },
637
+ outputs: { changed: "changed" },
638
+ host: {
639
+ attributes: { "role": "radiogroup" },
640
+ properties: {
641
+ "class": "passThrough().root?.class",
642
+ "style": "hostStyle()",
643
+ "attr.data-styled": "!isUnstyled() || null",
644
+ "attr.data-orientation": "orientation()",
645
+ "attr.aria-label": "ariaLabel() ?? null",
646
+ "attr.aria-labelledby": "ariaLabelledBy() ?? null",
647
+ "attr.aria-invalid": "isInvalid() || null",
648
+ "attr.aria-required": "required() || null",
649
+ "attr.aria-disabled": "isDisabled() || null"
650
+ },
651
+ classAttribute: "tx-radio-group"
652
+ },
653
+ providers: [{
654
+ provide: NG_VALUE_ACCESSOR,
655
+ useExisting: forwardRef(() => TxRadioGroup),
656
+ multi: true
657
+ }, {
658
+ provide: TX_RADIO_GROUP,
659
+ useFactory: () => inject(TxRadioGroup).context
660
+ }],
661
+ usesInheritance: true,
662
+ ngImport: i0,
663
+ template: "<ng-content />",
664
+ isInline: true,
665
+ styles: [":host{display:flex;flex-direction:column;align-items:flex-start}:host([data-styled]){gap:var(--tx-radio-button-group-gap)}:host([data-orientation=\"horizontal\"]){flex-direction:row;flex-wrap:wrap}:host([data-styled][data-orientation=\"horizontal\"]){column-gap:var(--tx-radio-button-group-horizontal-gap)}\n"],
666
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
667
+ });
668
+ };
669
+ i0.ɵɵngDeclareClassMetadata({
670
+ minVersion: "12.0.0",
671
+ version: "22.2.3",
672
+ ngImport: i0,
673
+ type: TxRadioGroup,
674
+ decorators: [{
675
+ type: Component,
676
+ args: [{
677
+ selector: "tx-radio-group",
678
+ template: "<ng-content />",
679
+ changeDetection: ChangeDetectionStrategy.OnPush,
680
+ providers: [{
681
+ provide: NG_VALUE_ACCESSOR,
682
+ useExisting: forwardRef(() => TxRadioGroup),
683
+ multi: true
684
+ }, {
685
+ provide: TX_RADIO_GROUP,
686
+ useFactory: () => inject(TxRadioGroup).context
687
+ }],
688
+ host: {
689
+ class: "tx-radio-group",
690
+ role: "radiogroup",
691
+ "[class]": "passThrough().root?.class",
692
+ "[style]": "hostStyle()",
693
+ "[attr.data-styled]": "!isUnstyled() || null",
694
+ "[attr.data-orientation]": "orientation()",
695
+ "[attr.aria-label]": "ariaLabel() ?? null",
696
+ "[attr.aria-labelledby]": "ariaLabelledBy() ?? null",
697
+ "[attr.aria-invalid]": "isInvalid() || null",
698
+ "[attr.aria-required]": "required() || null",
699
+ "[attr.aria-disabled]": "isDisabled() || null"
700
+ },
701
+ styles: [":host{display:flex;flex-direction:column;align-items:flex-start}:host([data-styled]){gap:var(--tx-radio-button-group-gap)}:host([data-orientation=\"horizontal\"]){flex-direction:row;flex-wrap:wrap}:host([data-styled][data-orientation=\"horizontal\"]){column-gap:var(--tx-radio-button-group-horizontal-gap)}\n"]
702
+ }]
703
+ }],
704
+ propDecorators: {
705
+ name: [{
706
+ type: i0.Input,
707
+ args: [{
708
+ isSignal: true,
709
+ alias: "name",
710
+ required: false
711
+ }]
712
+ }],
713
+ orientation: [{
714
+ type: i0.Input,
715
+ args: [{
716
+ isSignal: true,
717
+ alias: "orientation",
718
+ required: false
719
+ }]
720
+ }],
721
+ size: [{
722
+ type: i0.Input,
723
+ args: [{
724
+ isSignal: true,
725
+ alias: "size",
726
+ required: false
727
+ }]
728
+ }],
729
+ variant: [{
730
+ type: i0.Input,
731
+ args: [{
732
+ isSignal: true,
733
+ alias: "variant",
734
+ required: false
735
+ }]
736
+ }],
737
+ invalid: [{
738
+ type: i0.Input,
739
+ args: [{
740
+ isSignal: true,
741
+ alias: "invalid",
742
+ required: false
743
+ }]
744
+ }],
745
+ disabledInput: [{
746
+ type: i0.Input,
747
+ args: [{
748
+ isSignal: true,
749
+ alias: "disabled",
750
+ required: false
751
+ }]
752
+ }],
753
+ required: [{
754
+ type: i0.Input,
755
+ args: [{
756
+ isSignal: true,
757
+ alias: "required",
758
+ required: false
759
+ }]
760
+ }],
761
+ ariaLabel: [{
762
+ type: i0.Input,
763
+ args: [{
764
+ isSignal: true,
765
+ alias: "ariaLabel",
766
+ required: false
767
+ }]
768
+ }],
769
+ ariaLabelledBy: [{
770
+ type: i0.Input,
771
+ args: [{
772
+ isSignal: true,
773
+ alias: "ariaLabelledBy",
774
+ required: false
775
+ }]
776
+ }],
777
+ dt: [{
778
+ type: i0.Input,
779
+ args: [{
780
+ isSignal: true,
781
+ alias: "dt",
782
+ required: false
783
+ }]
784
+ }],
785
+ pt: [{
786
+ type: i0.Input,
787
+ args: [{
788
+ isSignal: true,
789
+ alias: "pt",
790
+ required: false
791
+ }]
792
+ }],
793
+ ptOptions: [{
794
+ type: i0.Input,
795
+ args: [{
796
+ isSignal: true,
797
+ alias: "ptOptions",
798
+ required: false
799
+ }]
800
+ }],
801
+ unstyled: [{
802
+ type: i0.Input,
803
+ args: [{
804
+ isSignal: true,
805
+ alias: "unstyled",
806
+ required: false
807
+ }]
808
+ }],
809
+ changed: [{
810
+ type: i0.Output,
811
+ args: ["changed"]
812
+ }]
813
+ }
814
+ });
815
+ export { TX_RADIO_GROUP, TxRadioButton, TxRadioGroup };
816
+
817
+ //# sourceMappingURL=tectra-ng-ui-radio-button.mjs.map