@tectra-ng/ui 0.0.0-stage → 0.1.1

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,699 @@
1
+ import { NgClass, NgTemplateOutlet } from "@angular/common";
2
+ import * as i0 from "@angular/core";
3
+ import { ChangeDetectionStrategy, Component, DOCUMENT, DestroyRef, booleanAttribute, computed, inject, input, output, signal } from "@angular/core";
4
+ import { RouterLink, RouterLinkActive } from "@angular/router";
5
+ import { injectPassThrough, injectUnstyled } from "@tectra-ng/core/config";
6
+ import { injectTranslations } from "@tectra-ng/core/i18n";
7
+ import { optionalBoolean, optionalNumber } from "@tectra-ng/core/utils";
8
+ import { TxIcon, TxIconRegistry } from "@tectra-ng/icons";
9
+ import { toStyleObject } from "@tectra-ng/themes";
10
+ import { TxHighlightText } from "@tectra-ng/ui/highlight-text";
11
+ var TxIconLink = class TxIconLink {
12
+ txIconRegistry = inject(TxIconRegistry);
13
+ icon = input(void 0, ...ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []);
14
+ text = input("", ...ngDevMode ? [{ debugName: "text" }] : /* istanbul ignore next */ []);
15
+ routerLink = input(void 0, ...ngDevMode ? [{ debugName: "routerLink" }] : /* istanbul ignore next */ []);
16
+ href = input(void 0, ...ngDevMode ? [{ debugName: "href" }] : /* istanbul ignore next */ []);
17
+ target = input(void 0, ...ngDevMode ? [{ debugName: "target" }] : /* istanbul ignore next */ []);
18
+ exact = input(true, {
19
+ ...ngDevMode ? { debugName: "exact" } : /* istanbul ignore next */ {},
20
+ transform: booleanAttribute
21
+ });
22
+ dt = input(void 0, ...ngDevMode ? [{ debugName: "dt" }] : /* istanbul ignore next */ []);
23
+ pt = input(void 0, ...ngDevMode ? [{ debugName: "pt" }] : /* istanbul ignore next */ []);
24
+ ptOptions = input(void 0, ...ngDevMode ? [{ debugName: "ptOptions" }] : /* istanbul ignore next */ []);
25
+ unstyled = input(void 0, {
26
+ ...ngDevMode ? { debugName: "unstyled" } : /* istanbul ignore next */ {},
27
+ transform: optionalBoolean
28
+ });
29
+ translations = injectTranslations();
30
+ isUnstyled = injectUnstyled(this.unstyled);
31
+ passThrough = injectPassThrough("iconLink", this, this.pt, this.ptOptions);
32
+ iconName = computed(() => {
33
+ const icon = this.icon();
34
+ return icon && this.txIconRegistry.has(icon) ? icon : null;
35
+ }, ...ngDevMode ? [{ debugName: "iconName" }] : /* istanbul ignore next */ []);
36
+ resolvedTarget = computed(() => this.target() ?? "_blank", ...ngDevMode ? [{ debugName: "resolvedTarget" }] : /* istanbul ignore next */ []);
37
+ opensNewTab = computed(() => !this.routerLink() && !!this.href() && this.resolvedTarget() === "_blank", ...ngDevMode ? [{ debugName: "opensNewTab" }] : /* istanbul ignore next */ []);
38
+ hostStyle = computed(() => ({
39
+ ...toStyleObject(this.dt(), "--tx-icon-link"),
40
+ ...this.passThrough().root?.style
41
+ }), ...ngDevMode ? [{ debugName: "hostStyle" }] : /* istanbul ignore next */ []);
42
+ static ɵfac = i0.ɵɵngDeclareFactory({
43
+ minVersion: "12.0.0",
44
+ version: "22.2.3",
45
+ ngImport: i0,
46
+ type: TxIconLink,
47
+ deps: [],
48
+ target: i0.ɵɵFactoryTarget.Component
49
+ });
50
+ static ɵcmp = i0.ɵɵngDeclareComponent({
51
+ minVersion: "17.0.0",
52
+ version: "22.2.3",
53
+ type: TxIconLink,
54
+ isStandalone: true,
55
+ selector: "tx-icon-link",
56
+ inputs: {
57
+ icon: {
58
+ classPropertyName: "icon",
59
+ publicName: "icon",
60
+ isSignal: true,
61
+ isRequired: false,
62
+ transformFunction: null
63
+ },
64
+ text: {
65
+ classPropertyName: "text",
66
+ publicName: "text",
67
+ isSignal: true,
68
+ isRequired: false,
69
+ transformFunction: null
70
+ },
71
+ routerLink: {
72
+ classPropertyName: "routerLink",
73
+ publicName: "routerLink",
74
+ isSignal: true,
75
+ isRequired: false,
76
+ transformFunction: null
77
+ },
78
+ href: {
79
+ classPropertyName: "href",
80
+ publicName: "href",
81
+ isSignal: true,
82
+ isRequired: false,
83
+ transformFunction: null
84
+ },
85
+ target: {
86
+ classPropertyName: "target",
87
+ publicName: "target",
88
+ isSignal: true,
89
+ isRequired: false,
90
+ transformFunction: null
91
+ },
92
+ exact: {
93
+ classPropertyName: "exact",
94
+ publicName: "exact",
95
+ isSignal: true,
96
+ isRequired: false,
97
+ transformFunction: null
98
+ },
99
+ dt: {
100
+ classPropertyName: "dt",
101
+ publicName: "dt",
102
+ isSignal: true,
103
+ isRequired: false,
104
+ transformFunction: null
105
+ },
106
+ pt: {
107
+ classPropertyName: "pt",
108
+ publicName: "pt",
109
+ isSignal: true,
110
+ isRequired: false,
111
+ transformFunction: null
112
+ },
113
+ ptOptions: {
114
+ classPropertyName: "ptOptions",
115
+ publicName: "ptOptions",
116
+ isSignal: true,
117
+ isRequired: false,
118
+ transformFunction: null
119
+ },
120
+ unstyled: {
121
+ classPropertyName: "unstyled",
122
+ publicName: "unstyled",
123
+ isSignal: true,
124
+ isRequired: false,
125
+ transformFunction: null
126
+ }
127
+ },
128
+ host: {
129
+ properties: {
130
+ "class": "passThrough().root?.class",
131
+ "style": "hostStyle()",
132
+ "attr.data-styled": "!isUnstyled() || null"
133
+ },
134
+ classAttribute: "tx-icon-link"
135
+ },
136
+ ngImport: i0,
137
+ template: "<ng-template #content>\n @if (icon(); as icon) {\n @if (iconName(); as name) {\n <tx-icon class=\"tx-icon-link__icon\" [name]=\"name\" [class]=\"passThrough().icon?.class\" [style]=\"passThrough().icon?.style\" />\n } @else {\n <span class=\"tx-icon-link__icon\" aria-hidden=\"true\" [class]=\"icon\" [ngClass]=\"passThrough().icon?.class ?? null\" [style]=\"passThrough().icon?.style\"></span>\n }\n }\n <span class=\"tx-icon-link__text\" [class]=\"passThrough().text?.class\" [style]=\"passThrough().text?.style\">{{ text() }}<ng-content /></span>\n @if (opensNewTab()) {\n <span class=\"tx-icon-link__hint\">({{ translations().opensInNewTab }})</span>\n }\n</ng-template>\n\n@if (routerLink(); as commands) {\n <a\n class=\"tx-icon-link__anchor\"\n [routerLink]=\"$any(commands)\"\n routerLinkActive=\"tx-icon-link__anchor--active\"\n ariaCurrentWhenActive=\"page\"\n [routerLinkActiveOptions]=\"{ exact: exact() }\"\n [class]=\"passThrough().anchor?.class\"\n [style]=\"passThrough().anchor?.style\"\n >\n <ng-container [ngTemplateOutlet]=\"content\" />\n </a>\n} @else if (href()) {\n <a\n class=\"tx-icon-link__anchor\"\n [href]=\"href()\"\n [attr.target]=\"resolvedTarget()\"\n [attr.rel]=\"opensNewTab() ? 'noopener noreferrer' : null\"\n [class]=\"passThrough().anchor?.class\"\n [style]=\"passThrough().anchor?.style\"\n >\n <ng-container [ngTemplateOutlet]=\"content\" />\n </a>\n} @else {\n <button type=\"button\" class=\"tx-icon-link__anchor\" [class]=\"passThrough().anchor?.class\" [style]=\"passThrough().anchor?.style\">\n <ng-container [ngTemplateOutlet]=\"content\" />\n </button>\n}\n",
138
+ styles: [":host{display:inline-flex;min-width:0}.tx-icon-link__anchor{display:inline-flex;align-items:center;min-width:0}.tx-icon-link__text{min-width:0}.tx-icon-link__hint{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}:host([data-styled]) .tx-icon-link__anchor{gap:var(--tx-icon-link-gap);padding:var(--tx-icon-link-padding-y) var(--tx-icon-link-padding-x);border:none;border-radius:var(--tx-icon-link-border-radius);background:transparent;color:var(--tx-icon-link-color);font-family:inherit;font-size:var(--tx-icon-link-font-size);font-weight:var(--tx-icon-link-font-weight);text-decoration:none;cursor:pointer;transition:color var(--tx-motion-duration),background-color var(--tx-motion-duration)}:host([data-styled]) .tx-icon-link__anchor:hover{background:var(--tx-icon-link-hover-background);color:var(--tx-icon-link-hover-color)}:host([data-styled]) .tx-icon-link__anchor:focus-visible{outline:2px solid var(--tx-icon-link-focus-ring-color);outline-offset:1px}:host([data-styled]) .tx-icon-link__anchor--active,:host([data-styled]) .tx-icon-link__anchor--active:hover{background:var(--tx-icon-link-active-background);color:var(--tx-icon-link-active-color)}:host([data-styled]) .tx-icon-link__icon{flex-shrink:0;font-size:var(--tx-icon-link-icon-size)}@media(prefers-reduced-motion:reduce){:host([data-styled]) .tx-icon-link__anchor{transition:none}}\n"],
139
+ dependencies: [
140
+ {
141
+ kind: "directive",
142
+ type: NgClass,
143
+ selector: "[ngClass]",
144
+ inputs: ["class", "ngClass"]
145
+ },
146
+ {
147
+ kind: "directive",
148
+ type: NgTemplateOutlet,
149
+ selector: "[ngTemplateOutlet]",
150
+ inputs: [
151
+ "ngTemplateOutletContext",
152
+ "ngTemplateOutlet",
153
+ "ngTemplateOutletInjector"
154
+ ]
155
+ },
156
+ {
157
+ kind: "directive",
158
+ type: RouterLink,
159
+ selector: "[routerLink]",
160
+ inputs: [
161
+ "target",
162
+ "queryParams",
163
+ "fragment",
164
+ "queryParamsHandling",
165
+ "state",
166
+ "info",
167
+ "relativeTo",
168
+ "preserveFragment",
169
+ "skipLocationChange",
170
+ "replaceUrl",
171
+ "browserUrl",
172
+ "routerLink"
173
+ ]
174
+ },
175
+ {
176
+ kind: "directive",
177
+ type: RouterLinkActive,
178
+ selector: "[routerLinkActive]",
179
+ inputs: [
180
+ "routerLinkActiveOptions",
181
+ "ariaCurrentWhenActive",
182
+ "routerLinkActive"
183
+ ],
184
+ outputs: ["isActiveChange"],
185
+ exportAs: ["routerLinkActive"]
186
+ },
187
+ {
188
+ kind: "component",
189
+ type: TxIcon,
190
+ selector: "tx-icon",
191
+ inputs: ["name"]
192
+ }
193
+ ],
194
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
195
+ });
196
+ };
197
+ i0.ɵɵngDeclareClassMetadata({
198
+ minVersion: "12.0.0",
199
+ version: "22.2.3",
200
+ ngImport: i0,
201
+ type: TxIconLink,
202
+ decorators: [{
203
+ type: Component,
204
+ args: [{
205
+ selector: "tx-icon-link",
206
+ imports: [
207
+ NgClass,
208
+ NgTemplateOutlet,
209
+ RouterLink,
210
+ RouterLinkActive,
211
+ TxIcon
212
+ ],
213
+ changeDetection: ChangeDetectionStrategy.OnPush,
214
+ host: {
215
+ class: "tx-icon-link",
216
+ "[class]": "passThrough().root?.class",
217
+ "[style]": "hostStyle()",
218
+ "[attr.data-styled]": "!isUnstyled() || null"
219
+ },
220
+ template: "<ng-template #content>\n @if (icon(); as icon) {\n @if (iconName(); as name) {\n <tx-icon class=\"tx-icon-link__icon\" [name]=\"name\" [class]=\"passThrough().icon?.class\" [style]=\"passThrough().icon?.style\" />\n } @else {\n <span class=\"tx-icon-link__icon\" aria-hidden=\"true\" [class]=\"icon\" [ngClass]=\"passThrough().icon?.class ?? null\" [style]=\"passThrough().icon?.style\"></span>\n }\n }\n <span class=\"tx-icon-link__text\" [class]=\"passThrough().text?.class\" [style]=\"passThrough().text?.style\">{{ text() }}<ng-content /></span>\n @if (opensNewTab()) {\n <span class=\"tx-icon-link__hint\">({{ translations().opensInNewTab }})</span>\n }\n</ng-template>\n\n@if (routerLink(); as commands) {\n <a\n class=\"tx-icon-link__anchor\"\n [routerLink]=\"$any(commands)\"\n routerLinkActive=\"tx-icon-link__anchor--active\"\n ariaCurrentWhenActive=\"page\"\n [routerLinkActiveOptions]=\"{ exact: exact() }\"\n [class]=\"passThrough().anchor?.class\"\n [style]=\"passThrough().anchor?.style\"\n >\n <ng-container [ngTemplateOutlet]=\"content\" />\n </a>\n} @else if (href()) {\n <a\n class=\"tx-icon-link__anchor\"\n [href]=\"href()\"\n [attr.target]=\"resolvedTarget()\"\n [attr.rel]=\"opensNewTab() ? 'noopener noreferrer' : null\"\n [class]=\"passThrough().anchor?.class\"\n [style]=\"passThrough().anchor?.style\"\n >\n <ng-container [ngTemplateOutlet]=\"content\" />\n </a>\n} @else {\n <button type=\"button\" class=\"tx-icon-link__anchor\" [class]=\"passThrough().anchor?.class\" [style]=\"passThrough().anchor?.style\">\n <ng-container [ngTemplateOutlet]=\"content\" />\n </button>\n}\n",
221
+ styles: [":host{display:inline-flex;min-width:0}.tx-icon-link__anchor{display:inline-flex;align-items:center;min-width:0}.tx-icon-link__text{min-width:0}.tx-icon-link__hint{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}:host([data-styled]) .tx-icon-link__anchor{gap:var(--tx-icon-link-gap);padding:var(--tx-icon-link-padding-y) var(--tx-icon-link-padding-x);border:none;border-radius:var(--tx-icon-link-border-radius);background:transparent;color:var(--tx-icon-link-color);font-family:inherit;font-size:var(--tx-icon-link-font-size);font-weight:var(--tx-icon-link-font-weight);text-decoration:none;cursor:pointer;transition:color var(--tx-motion-duration),background-color var(--tx-motion-duration)}:host([data-styled]) .tx-icon-link__anchor:hover{background:var(--tx-icon-link-hover-background);color:var(--tx-icon-link-hover-color)}:host([data-styled]) .tx-icon-link__anchor:focus-visible{outline:2px solid var(--tx-icon-link-focus-ring-color);outline-offset:1px}:host([data-styled]) .tx-icon-link__anchor--active,:host([data-styled]) .tx-icon-link__anchor--active:hover{background:var(--tx-icon-link-active-background);color:var(--tx-icon-link-active-color)}:host([data-styled]) .tx-icon-link__icon{flex-shrink:0;font-size:var(--tx-icon-link-icon-size)}@media(prefers-reduced-motion:reduce){:host([data-styled]) .tx-icon-link__anchor{transition:none}}\n"]
222
+ }]
223
+ }],
224
+ propDecorators: {
225
+ icon: [{
226
+ type: i0.Input,
227
+ args: [{
228
+ isSignal: true,
229
+ alias: "icon",
230
+ required: false
231
+ }]
232
+ }],
233
+ text: [{
234
+ type: i0.Input,
235
+ args: [{
236
+ isSignal: true,
237
+ alias: "text",
238
+ required: false
239
+ }]
240
+ }],
241
+ routerLink: [{
242
+ type: i0.Input,
243
+ args: [{
244
+ isSignal: true,
245
+ alias: "routerLink",
246
+ required: false
247
+ }]
248
+ }],
249
+ href: [{
250
+ type: i0.Input,
251
+ args: [{
252
+ isSignal: true,
253
+ alias: "href",
254
+ required: false
255
+ }]
256
+ }],
257
+ target: [{
258
+ type: i0.Input,
259
+ args: [{
260
+ isSignal: true,
261
+ alias: "target",
262
+ required: false
263
+ }]
264
+ }],
265
+ exact: [{
266
+ type: i0.Input,
267
+ args: [{
268
+ isSignal: true,
269
+ alias: "exact",
270
+ required: false
271
+ }]
272
+ }],
273
+ dt: [{
274
+ type: i0.Input,
275
+ args: [{
276
+ isSignal: true,
277
+ alias: "dt",
278
+ required: false
279
+ }]
280
+ }],
281
+ pt: [{
282
+ type: i0.Input,
283
+ args: [{
284
+ isSignal: true,
285
+ alias: "pt",
286
+ required: false
287
+ }]
288
+ }],
289
+ ptOptions: [{
290
+ type: i0.Input,
291
+ args: [{
292
+ isSignal: true,
293
+ alias: "ptOptions",
294
+ required: false
295
+ }]
296
+ }],
297
+ unstyled: [{
298
+ type: i0.Input,
299
+ args: [{
300
+ isSignal: true,
301
+ alias: "unstyled",
302
+ required: false
303
+ }]
304
+ }]
305
+ }
306
+ });
307
+ const COPIED_FOR = 1600;
308
+ const PROTOCOL = /^[a-z][a-z\d+.-]*:/i;
309
+ var TxLink = class TxLink {
310
+ document = inject(DOCUMENT);
311
+ timer = null;
312
+ link = input("", ...ngDevMode ? [{ debugName: "link" }] : /* istanbul ignore next */ []);
313
+ type = input("url", ...ngDevMode ? [{ debugName: "type" }] : /* istanbul ignore next */ []);
314
+ linkText = input(void 0, ...ngDevMode ? [{ debugName: "linkText" }] : /* istanbul ignore next */ []);
315
+ highlight = input("", ...ngDevMode ? [{ debugName: "highlight" }] : /* istanbul ignore next */ []);
316
+ maxLength = input(void 0, {
317
+ ...ngDevMode ? { debugName: "maxLength" } : /* istanbul ignore next */ {},
318
+ transform: optionalNumber
319
+ });
320
+ routerLink = input(void 0, ...ngDevMode ? [{ debugName: "routerLink" }] : /* istanbul ignore next */ []);
321
+ target = input(void 0, ...ngDevMode ? [{ debugName: "target" }] : /* istanbul ignore next */ []);
322
+ external = input(void 0, {
323
+ ...ngDevMode ? { debugName: "external" } : /* istanbul ignore next */ {},
324
+ transform: optionalBoolean
325
+ });
326
+ copyable = input(false, {
327
+ ...ngDevMode ? { debugName: "copyable" } : /* istanbul ignore next */ {},
328
+ transform: booleanAttribute
329
+ });
330
+ dt = input(void 0, ...ngDevMode ? [{ debugName: "dt" }] : /* istanbul ignore next */ []);
331
+ pt = input(void 0, ...ngDevMode ? [{ debugName: "pt" }] : /* istanbul ignore next */ []);
332
+ ptOptions = input(void 0, ...ngDevMode ? [{ debugName: "ptOptions" }] : /* istanbul ignore next */ []);
333
+ unstyled = input(void 0, {
334
+ ...ngDevMode ? { debugName: "unstyled" } : /* istanbul ignore next */ {},
335
+ transform: optionalBoolean
336
+ });
337
+ copied = output();
338
+ translations = injectTranslations();
339
+ isUnstyled = injectUnstyled(this.unstyled);
340
+ passThrough = injectPassThrough("link", this, this.pt, this.ptOptions);
341
+ isCopied = signal(false, ...ngDevMode ? [{ debugName: "isCopied" }] : /* istanbul ignore next */ []);
342
+ value = computed(() => (this.link() ?? "").trim(), ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
343
+ fullText = computed(() => this.linkText() || this.value(), ...ngDevMode ? [{ debugName: "fullText" }] : /* istanbul ignore next */ []);
344
+ isTruncated = computed(() => {
345
+ const max = this.maxLength();
346
+ return max !== void 0 && max > 0 && this.fullText().length > max;
347
+ }, ...ngDevMode ? [{ debugName: "isTruncated" }] : /* istanbul ignore next */ []);
348
+ displayText = computed(() => this.isTruncated() ? `${this.fullText().slice(0, this.maxLength()).trimEnd()}…` : this.fullText(), ...ngDevMode ? [{ debugName: "displayText" }] : /* istanbul ignore next */ []);
349
+ fullTitle = computed(() => this.isTruncated() ? this.fullText() : null, ...ngDevMode ? [{ debugName: "fullTitle" }] : /* istanbul ignore next */ []);
350
+ href = computed(() => {
351
+ const value = this.value();
352
+ switch (this.type()) {
353
+ case "email": return `mailto:${value}`;
354
+ case "phone": return `tel:${value.replace(/[^\d+]/g, "")}`;
355
+ default: return PROTOCOL.test(value) || value.startsWith("/") ? value : `https://${value}`;
356
+ }
357
+ }, ...ngDevMode ? [{ debugName: "href" }] : /* istanbul ignore next */ []);
358
+ resolvedTarget = computed(() => this.target() ?? (this.type() === "url" ? "_blank" : null), ...ngDevMode ? [{ debugName: "resolvedTarget" }] : /* istanbul ignore next */ []);
359
+ opensNewTab = computed(() => !this.routerLink() && this.resolvedTarget() === "_blank", ...ngDevMode ? [{ debugName: "opensNewTab" }] : /* istanbul ignore next */ []);
360
+ showExternal = computed(() => this.external() ?? this.opensNewTab(), ...ngDevMode ? [{ debugName: "showExternal" }] : /* istanbul ignore next */ []);
361
+ copyLabel = computed(() => {
362
+ const translations = this.translations();
363
+ return {
364
+ url: translations.copyLink,
365
+ email: translations.copyEmail,
366
+ phone: translations.copyPhone
367
+ }[this.type()];
368
+ }, ...ngDevMode ? [{ debugName: "copyLabel" }] : /* istanbul ignore next */ []);
369
+ hostStyle = computed(() => ({
370
+ ...toStyleObject(this.dt(), "--tx-link"),
371
+ ...this.passThrough().root?.style
372
+ }), ...ngDevMode ? [{ debugName: "hostStyle" }] : /* istanbul ignore next */ []);
373
+ constructor() {
374
+ inject(DestroyRef).onDestroy(() => this.timer && clearTimeout(this.timer));
375
+ }
376
+ copy() {
377
+ const text = this.value();
378
+ this.document.defaultView?.navigator.clipboard?.writeText(text);
379
+ this.copied.emit(text);
380
+ this.isCopied.set(true);
381
+ if (this.timer) clearTimeout(this.timer);
382
+ this.timer = setTimeout(() => this.isCopied.set(false), COPIED_FOR);
383
+ }
384
+ static ɵfac = i0.ɵɵngDeclareFactory({
385
+ minVersion: "12.0.0",
386
+ version: "22.2.3",
387
+ ngImport: i0,
388
+ type: TxLink,
389
+ deps: [],
390
+ target: i0.ɵɵFactoryTarget.Component
391
+ });
392
+ static ɵcmp = i0.ɵɵngDeclareComponent({
393
+ minVersion: "17.0.0",
394
+ version: "22.2.3",
395
+ type: TxLink,
396
+ isStandalone: true,
397
+ selector: "tx-link",
398
+ inputs: {
399
+ link: {
400
+ classPropertyName: "link",
401
+ publicName: "link",
402
+ isSignal: true,
403
+ isRequired: false,
404
+ transformFunction: null
405
+ },
406
+ type: {
407
+ classPropertyName: "type",
408
+ publicName: "type",
409
+ isSignal: true,
410
+ isRequired: false,
411
+ transformFunction: null
412
+ },
413
+ linkText: {
414
+ classPropertyName: "linkText",
415
+ publicName: "linkText",
416
+ isSignal: true,
417
+ isRequired: false,
418
+ transformFunction: null
419
+ },
420
+ highlight: {
421
+ classPropertyName: "highlight",
422
+ publicName: "highlight",
423
+ isSignal: true,
424
+ isRequired: false,
425
+ transformFunction: null
426
+ },
427
+ maxLength: {
428
+ classPropertyName: "maxLength",
429
+ publicName: "maxLength",
430
+ isSignal: true,
431
+ isRequired: false,
432
+ transformFunction: null
433
+ },
434
+ routerLink: {
435
+ classPropertyName: "routerLink",
436
+ publicName: "routerLink",
437
+ isSignal: true,
438
+ isRequired: false,
439
+ transformFunction: null
440
+ },
441
+ target: {
442
+ classPropertyName: "target",
443
+ publicName: "target",
444
+ isSignal: true,
445
+ isRequired: false,
446
+ transformFunction: null
447
+ },
448
+ external: {
449
+ classPropertyName: "external",
450
+ publicName: "external",
451
+ isSignal: true,
452
+ isRequired: false,
453
+ transformFunction: null
454
+ },
455
+ copyable: {
456
+ classPropertyName: "copyable",
457
+ publicName: "copyable",
458
+ isSignal: true,
459
+ isRequired: false,
460
+ transformFunction: null
461
+ },
462
+ dt: {
463
+ classPropertyName: "dt",
464
+ publicName: "dt",
465
+ isSignal: true,
466
+ isRequired: false,
467
+ transformFunction: null
468
+ },
469
+ pt: {
470
+ classPropertyName: "pt",
471
+ publicName: "pt",
472
+ isSignal: true,
473
+ isRequired: false,
474
+ transformFunction: null
475
+ },
476
+ ptOptions: {
477
+ classPropertyName: "ptOptions",
478
+ publicName: "ptOptions",
479
+ isSignal: true,
480
+ isRequired: false,
481
+ transformFunction: null
482
+ },
483
+ unstyled: {
484
+ classPropertyName: "unstyled",
485
+ publicName: "unstyled",
486
+ isSignal: true,
487
+ isRequired: false,
488
+ transformFunction: null
489
+ }
490
+ },
491
+ outputs: { copied: "copied" },
492
+ host: {
493
+ properties: {
494
+ "class": "passThrough().root?.class",
495
+ "style": "hostStyle()",
496
+ "attr.data-styled": "!isUnstyled() || null",
497
+ "attr.data-type": "type()"
498
+ },
499
+ classAttribute: "tx-link"
500
+ },
501
+ ngImport: i0,
502
+ template: "<ng-template #content>\n <span class=\"tx-link__text\" [class]=\"passThrough().text?.class\" [style]=\"passThrough().text?.style\">\n <tx-highlight-text [text]=\"displayText()\" [highlight]=\"highlight()\" />\n </span>\n @if (showExternal()) {\n <tx-icon class=\"tx-link__external\" name=\"arrow-up-right\" [class]=\"passThrough().external?.class\" [style]=\"passThrough().external?.style\" />\n }\n @if (opensNewTab()) {\n <span class=\"tx-link__hint\">({{ translations().opensInNewTab }})</span>\n }\n</ng-template>\n\n@if (routerLink(); as commands) {\n <a class=\"tx-link__anchor\" [routerLink]=\"$any(commands)\" [attr.title]=\"fullTitle()\" [class]=\"passThrough().anchor?.class\" [style]=\"passThrough().anchor?.style\">\n <ng-container [ngTemplateOutlet]=\"content\" />\n </a>\n} @else {\n <a\n class=\"tx-link__anchor\"\n [href]=\"href()\"\n [attr.target]=\"resolvedTarget()\"\n [attr.rel]=\"opensNewTab() ? 'noopener noreferrer' : null\"\n [attr.title]=\"fullTitle()\"\n [class]=\"passThrough().anchor?.class\"\n [style]=\"passThrough().anchor?.style\"\n >\n <ng-container [ngTemplateOutlet]=\"content\" />\n </a>\n}\n@if (copyable() && link()) {\n <button\n type=\"button\"\n class=\"tx-link__copy\"\n [class.tx-link__copy--done]=\"isCopied()\"\n [class]=\"passThrough().copy?.class\"\n [style]=\"passThrough().copy?.style\"\n [attr.aria-label]=\"isCopied() ? translations().copied : copyLabel()\"\n [title]=\"isCopied() ? translations().copied : copyLabel()\"\n (click)=\"copy()\"\n >\n <tx-icon [name]=\"isCopied() ? 'check' : 'copy'\" />\n </button>\n}\n",
503
+ styles: [":host{display:inline-flex;align-items:center;max-width:100%;min-width:0;vertical-align:bottom}.tx-link__anchor{min-width:0;overflow-wrap:anywhere}.tx-link__hint{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}:host([data-styled]){gap:var(--tx-link-gap);font-family:inherit}:host([data-styled]) .tx-link__anchor{border-radius:2px;color:var(--tx-link-color);text-decoration:underline;text-decoration-color:transparent;text-underline-offset:var(--tx-link-underline-offset);cursor:pointer;transition:color var(--tx-motion-duration) var(--tx-motion-easing),text-decoration-color var(--tx-motion-duration) var(--tx-motion-easing)}:host([data-styled]) .tx-link__anchor:hover{color:var(--tx-link-hover-color);text-decoration-color:currentColor}:host([data-styled]) .tx-link__anchor:focus-visible{outline:2px solid var(--tx-link-focus-ring-color);outline-offset:2px}:host([data-styled]) .tx-link__external{margin-inline-start:.25em;vertical-align:-.05em;font-size:var(--tx-link-external-icon-size);opacity:.7}:host([data-styled]) .tx-link__copy{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;width:var(--tx-link-copy-size);height:var(--tx-link-copy-size);padding:0;border:none;border-radius:var(--tx-radius-sm);background:transparent;color:var(--tx-link-copy-color);font-size:var(--tx-link-copy-icon-size);cursor:pointer;transition:color var(--tx-motion-duration),background-color var(--tx-motion-duration)}:host([data-styled]) .tx-link__copy:hover{background:var(--tx-link-copy-hover-background);color:var(--tx-link-copy-hover-color)}:host([data-styled]) .tx-link__copy:focus-visible{outline:2px solid var(--tx-link-focus-ring-color);outline-offset:1px}:host([data-styled]) .tx-link__copy--done,:host([data-styled]) .tx-link__copy--done:hover{color:var(--tx-link-copied-color)}@media(prefers-reduced-motion:reduce){:host([data-styled]) .tx-link__copy{transition:none}}\n"],
504
+ dependencies: [
505
+ {
506
+ kind: "directive",
507
+ type: NgTemplateOutlet,
508
+ selector: "[ngTemplateOutlet]",
509
+ inputs: [
510
+ "ngTemplateOutletContext",
511
+ "ngTemplateOutlet",
512
+ "ngTemplateOutletInjector"
513
+ ]
514
+ },
515
+ {
516
+ kind: "directive",
517
+ type: RouterLink,
518
+ selector: "[routerLink]",
519
+ inputs: [
520
+ "target",
521
+ "queryParams",
522
+ "fragment",
523
+ "queryParamsHandling",
524
+ "state",
525
+ "info",
526
+ "relativeTo",
527
+ "preserveFragment",
528
+ "skipLocationChange",
529
+ "replaceUrl",
530
+ "browserUrl",
531
+ "routerLink"
532
+ ]
533
+ },
534
+ {
535
+ kind: "component",
536
+ type: TxIcon,
537
+ selector: "tx-icon",
538
+ inputs: ["name"]
539
+ },
540
+ {
541
+ kind: "component",
542
+ type: TxHighlightText,
543
+ selector: "tx-highlight-text",
544
+ inputs: [
545
+ "text",
546
+ "highlight",
547
+ "caseSensitive",
548
+ "dt",
549
+ "pt",
550
+ "ptOptions",
551
+ "unstyled"
552
+ ]
553
+ }
554
+ ],
555
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
556
+ });
557
+ };
558
+ i0.ɵɵngDeclareClassMetadata({
559
+ minVersion: "12.0.0",
560
+ version: "22.2.3",
561
+ ngImport: i0,
562
+ type: TxLink,
563
+ decorators: [{
564
+ type: Component,
565
+ args: [{
566
+ selector: "tx-link",
567
+ imports: [
568
+ NgTemplateOutlet,
569
+ RouterLink,
570
+ TxIcon,
571
+ TxHighlightText
572
+ ],
573
+ changeDetection: ChangeDetectionStrategy.OnPush,
574
+ host: {
575
+ class: "tx-link",
576
+ "[class]": "passThrough().root?.class",
577
+ "[style]": "hostStyle()",
578
+ "[attr.data-styled]": "!isUnstyled() || null",
579
+ "[attr.data-type]": "type()"
580
+ },
581
+ template: "<ng-template #content>\n <span class=\"tx-link__text\" [class]=\"passThrough().text?.class\" [style]=\"passThrough().text?.style\">\n <tx-highlight-text [text]=\"displayText()\" [highlight]=\"highlight()\" />\n </span>\n @if (showExternal()) {\n <tx-icon class=\"tx-link__external\" name=\"arrow-up-right\" [class]=\"passThrough().external?.class\" [style]=\"passThrough().external?.style\" />\n }\n @if (opensNewTab()) {\n <span class=\"tx-link__hint\">({{ translations().opensInNewTab }})</span>\n }\n</ng-template>\n\n@if (routerLink(); as commands) {\n <a class=\"tx-link__anchor\" [routerLink]=\"$any(commands)\" [attr.title]=\"fullTitle()\" [class]=\"passThrough().anchor?.class\" [style]=\"passThrough().anchor?.style\">\n <ng-container [ngTemplateOutlet]=\"content\" />\n </a>\n} @else {\n <a\n class=\"tx-link__anchor\"\n [href]=\"href()\"\n [attr.target]=\"resolvedTarget()\"\n [attr.rel]=\"opensNewTab() ? 'noopener noreferrer' : null\"\n [attr.title]=\"fullTitle()\"\n [class]=\"passThrough().anchor?.class\"\n [style]=\"passThrough().anchor?.style\"\n >\n <ng-container [ngTemplateOutlet]=\"content\" />\n </a>\n}\n@if (copyable() && link()) {\n <button\n type=\"button\"\n class=\"tx-link__copy\"\n [class.tx-link__copy--done]=\"isCopied()\"\n [class]=\"passThrough().copy?.class\"\n [style]=\"passThrough().copy?.style\"\n [attr.aria-label]=\"isCopied() ? translations().copied : copyLabel()\"\n [title]=\"isCopied() ? translations().copied : copyLabel()\"\n (click)=\"copy()\"\n >\n <tx-icon [name]=\"isCopied() ? 'check' : 'copy'\" />\n </button>\n}\n",
582
+ styles: [":host{display:inline-flex;align-items:center;max-width:100%;min-width:0;vertical-align:bottom}.tx-link__anchor{min-width:0;overflow-wrap:anywhere}.tx-link__hint{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}:host([data-styled]){gap:var(--tx-link-gap);font-family:inherit}:host([data-styled]) .tx-link__anchor{border-radius:2px;color:var(--tx-link-color);text-decoration:underline;text-decoration-color:transparent;text-underline-offset:var(--tx-link-underline-offset);cursor:pointer;transition:color var(--tx-motion-duration) var(--tx-motion-easing),text-decoration-color var(--tx-motion-duration) var(--tx-motion-easing)}:host([data-styled]) .tx-link__anchor:hover{color:var(--tx-link-hover-color);text-decoration-color:currentColor}:host([data-styled]) .tx-link__anchor:focus-visible{outline:2px solid var(--tx-link-focus-ring-color);outline-offset:2px}:host([data-styled]) .tx-link__external{margin-inline-start:.25em;vertical-align:-.05em;font-size:var(--tx-link-external-icon-size);opacity:.7}:host([data-styled]) .tx-link__copy{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;width:var(--tx-link-copy-size);height:var(--tx-link-copy-size);padding:0;border:none;border-radius:var(--tx-radius-sm);background:transparent;color:var(--tx-link-copy-color);font-size:var(--tx-link-copy-icon-size);cursor:pointer;transition:color var(--tx-motion-duration),background-color var(--tx-motion-duration)}:host([data-styled]) .tx-link__copy:hover{background:var(--tx-link-copy-hover-background);color:var(--tx-link-copy-hover-color)}:host([data-styled]) .tx-link__copy:focus-visible{outline:2px solid var(--tx-link-focus-ring-color);outline-offset:1px}:host([data-styled]) .tx-link__copy--done,:host([data-styled]) .tx-link__copy--done:hover{color:var(--tx-link-copied-color)}@media(prefers-reduced-motion:reduce){:host([data-styled]) .tx-link__copy{transition:none}}\n"]
583
+ }]
584
+ }],
585
+ ctorParameters: () => [],
586
+ propDecorators: {
587
+ link: [{
588
+ type: i0.Input,
589
+ args: [{
590
+ isSignal: true,
591
+ alias: "link",
592
+ required: false
593
+ }]
594
+ }],
595
+ type: [{
596
+ type: i0.Input,
597
+ args: [{
598
+ isSignal: true,
599
+ alias: "type",
600
+ required: false
601
+ }]
602
+ }],
603
+ linkText: [{
604
+ type: i0.Input,
605
+ args: [{
606
+ isSignal: true,
607
+ alias: "linkText",
608
+ required: false
609
+ }]
610
+ }],
611
+ highlight: [{
612
+ type: i0.Input,
613
+ args: [{
614
+ isSignal: true,
615
+ alias: "highlight",
616
+ required: false
617
+ }]
618
+ }],
619
+ maxLength: [{
620
+ type: i0.Input,
621
+ args: [{
622
+ isSignal: true,
623
+ alias: "maxLength",
624
+ required: false
625
+ }]
626
+ }],
627
+ routerLink: [{
628
+ type: i0.Input,
629
+ args: [{
630
+ isSignal: true,
631
+ alias: "routerLink",
632
+ required: false
633
+ }]
634
+ }],
635
+ target: [{
636
+ type: i0.Input,
637
+ args: [{
638
+ isSignal: true,
639
+ alias: "target",
640
+ required: false
641
+ }]
642
+ }],
643
+ external: [{
644
+ type: i0.Input,
645
+ args: [{
646
+ isSignal: true,
647
+ alias: "external",
648
+ required: false
649
+ }]
650
+ }],
651
+ copyable: [{
652
+ type: i0.Input,
653
+ args: [{
654
+ isSignal: true,
655
+ alias: "copyable",
656
+ required: false
657
+ }]
658
+ }],
659
+ dt: [{
660
+ type: i0.Input,
661
+ args: [{
662
+ isSignal: true,
663
+ alias: "dt",
664
+ required: false
665
+ }]
666
+ }],
667
+ pt: [{
668
+ type: i0.Input,
669
+ args: [{
670
+ isSignal: true,
671
+ alias: "pt",
672
+ required: false
673
+ }]
674
+ }],
675
+ ptOptions: [{
676
+ type: i0.Input,
677
+ args: [{
678
+ isSignal: true,
679
+ alias: "ptOptions",
680
+ required: false
681
+ }]
682
+ }],
683
+ unstyled: [{
684
+ type: i0.Input,
685
+ args: [{
686
+ isSignal: true,
687
+ alias: "unstyled",
688
+ required: false
689
+ }]
690
+ }],
691
+ copied: [{
692
+ type: i0.Output,
693
+ args: ["copied"]
694
+ }]
695
+ }
696
+ });
697
+ export { TxIconLink, TxLink };
698
+
699
+ //# sourceMappingURL=tectra-ng-ui-link.mjs.map