@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 @@
1
+ {"version":3,"file":"tectra-ng-ui-link.mjs","names":[],"sources":["../../../../packages/ui/link/src/icon-link.component.ts","../../../../packages/ui/link/src/icon-link.component.html","../../../../packages/ui/link/src/link.component.ts","../../../../packages/ui/link/src/link.component.html"],"sourcesContent":["import { NgClass, NgTemplateOutlet } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, booleanAttribute, computed, inject, input } from '@angular/core';\nimport { RouterLink, RouterLinkActive } from '@angular/router';\nimport { TxPassThrough, TxPassThroughOptions, injectPassThrough, injectUnstyled } from '@tectra-ng/core/config';\nimport { injectTranslations } from '@tectra-ng/core/i18n';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { TxIcon, TxIconName, TxIconRegistry } from '@tectra-ng/icons';\nimport { TectraDeepPartial, TectraIconLinkTokens, toStyleObject } from '@tectra-ng/themes';\nimport { TxIconLinkPart, TxLinkCommands } from './link.types';\n\n@Component({\n selector: 'tx-icon-link',\n imports: [NgClass, NgTemplateOutlet, RouterLink, RouterLinkActive, TxIcon],\n templateUrl: './icon-link.component.html',\n styleUrl: './icon-link.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-icon-link',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n },\n})\nexport class TxIconLink {\n private txIconRegistry = inject(TxIconRegistry);\n\n readonly icon = input<TxIconName | (string & {}) | undefined>(undefined);\n readonly text = input<string>('');\n readonly routerLink = input<TxLinkCommands>(undefined);\n readonly href = input<string | null | undefined>(undefined);\n readonly target = input<string | undefined>(undefined);\n readonly exact = input<boolean, unknown>(true, { transform: booleanAttribute });\n readonly dt = input<TectraDeepPartial<TectraIconLinkTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxIconLinkPart, TxIconLink> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly translations = injectTranslations();\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('iconLink', this, this.pt, this.ptOptions);\n readonly iconName = computed(() => {\n const icon = this.icon();\n return icon && this.txIconRegistry.has(icon) ? icon : null;\n });\n readonly resolvedTarget = computed(() => this.target() ?? '_blank');\n readonly opensNewTab = computed(() => !this.routerLink() && !!this.href() && this.resolvedTarget() === '_blank');\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-icon-link'), ...this.passThrough().root?.style }));\n}\n","<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","import { NgTemplateOutlet } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, DOCUMENT, DestroyRef, booleanAttribute, computed, inject, input, output, signal } from '@angular/core';\nimport { RouterLink } from '@angular/router';\nimport { TxPassThrough, TxPassThroughOptions, injectPassThrough, injectUnstyled } from '@tectra-ng/core/config';\nimport { injectTranslations } from '@tectra-ng/core/i18n';\nimport { optionalBoolean, optionalNumber } from '@tectra-ng/core/utils';\nimport { TxIcon } from '@tectra-ng/icons';\nimport { TectraDeepPartial, TectraLinkTokens, toStyleObject } from '@tectra-ng/themes';\nimport { TxHighlightTerms, TxHighlightText } from '@tectra-ng/ui/highlight-text';\nimport { TxLinkCommands, TxLinkPart, TxLinkType } from './link.types';\n\nconst COPIED_FOR = 1600;\nconst PROTOCOL = /^[a-z][a-z\\d+.-]*:/i;\n\n@Component({\n selector: 'tx-link',\n imports: [NgTemplateOutlet, RouterLink, TxIcon, TxHighlightText],\n templateUrl: './link.component.html',\n styleUrl: './link.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-link',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.data-type]': 'type()',\n },\n})\nexport class TxLink {\n private document = inject(DOCUMENT);\n private timer: ReturnType<typeof setTimeout> | null = null;\n\n readonly link = input<string | null | undefined>('');\n readonly type = input<TxLinkType>('url');\n readonly linkText = input<string | null | undefined>(undefined);\n readonly highlight = input<TxHighlightTerms>('');\n readonly maxLength = input<number | undefined, unknown>(undefined, { transform: optionalNumber });\n readonly routerLink = input<TxLinkCommands>(undefined);\n readonly target = input<string | undefined>(undefined);\n readonly external = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n readonly copyable = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly dt = input<TectraDeepPartial<TectraLinkTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxLinkPart, TxLink> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly copied = output<string>();\n\n readonly translations = injectTranslations();\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('link', this, this.pt, this.ptOptions);\n readonly isCopied = signal(false);\n\n readonly value = computed(() => (this.link() ?? '').trim());\n readonly fullText = computed(() => this.linkText() || this.value());\n readonly isTruncated = computed(() => {\n const max = this.maxLength();\n return max !== undefined && max > 0 && this.fullText().length > max;\n });\n readonly displayText = computed(() => (this.isTruncated() ? `${this.fullText().slice(0, this.maxLength()).trimEnd()}…` : this.fullText()));\n readonly fullTitle = computed(() => (this.isTruncated() ? this.fullText() : null));\n readonly href = computed(() => {\n const value = this.value();\n switch (this.type()) {\n case 'email':\n return `mailto:${value}`;\n case 'phone':\n return `tel:${value.replace(/[^\\d+]/g, '')}`;\n default:\n return PROTOCOL.test(value) || value.startsWith('/') ? value : `https://${value}`;\n }\n });\n readonly resolvedTarget = computed(() => this.target() ?? (this.type() === 'url' ? '_blank' : null));\n readonly opensNewTab = computed(() => !this.routerLink() && this.resolvedTarget() === '_blank');\n readonly showExternal = computed(() => this.external() ?? this.opensNewTab());\n readonly copyLabel = computed(() => {\n const translations = this.translations();\n return { url: translations.copyLink, email: translations.copyEmail, phone: translations.copyPhone }[this.type()];\n });\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-link'), ...this.passThrough().root?.style }));\n\n constructor() {\n inject(DestroyRef).onDestroy(() => this.timer && clearTimeout(this.timer));\n }\n\n copy(): void {\n const text = this.value();\n this.document.defaultView?.navigator.clipboard?.writeText(text);\n this.copied.emit(text);\n this.isCopied.set(true);\n if (this.timer) {\n clearTimeout(this.timer);\n }\n this.timer = setTimeout(() => this.isCopied.set(false), COPIED_FOR);\n }\n}\n","<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"],"mappings":";;;;;;;;;;AAuBA,IAAa,aAAb,MAAa,WAAU;CACb,iBAAiB,OAAO,cAAc;CAErC,OAAO,MAA8C,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,OAAA,CAAA,+BAAA,CAAA,CAAA;CAC/D,OAAO,MAAc,IAAG,GAAA,YAAA,CAAA,EAAA,WAAA,OAAA,CAAA,+BAAA,CAAA,CAAA;CACxB,aAAa,MAAsB,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,aAAA,CAAA,+BAAA,CAAA,CAAA;CAC7C,OAAO,MAAiC,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,OAAA,CAAA,+BAAA,CAAA,CAAA;CAClD,SAAS,MAA0B,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,SAAA,CAAA,+BAAA,CAAA,CAAA;CAC7C,QAAQ,MAAwB,MAAI;EAAA,GAAA,YAAA,EAAA,WAAA,QAAA,+BAAA,CAAA;EAAI,WAAW;CAAgB,CAAA;CACnE,KAAK,MAA2D,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,KAAA,CAAA,+BAAA,CAAA,CAAA;CAC1E,KAAK,MAA6D,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,KAAA,CAAA,+BAAA,CAAA,CAAA;CAC5E,YAAY,MAAwC,QAAU,GAAA,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QAAA;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;IAAA;GAAA;EAAA;EAAA,iBAAA,GAAA,wBAAA;CAAA,CAAA;;AAYpD,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAM,YAAA,CAAA;EAdlB,MAAA;EACW,MAAA,CAAA;GAAA,UAAA;GAAS,SACV;IAAC;IAAkB;IAAY;IAAQ;GAAe;GAAC,iBAG/C,wBAAwB;GAAM,MACzC;IACJ,OAAO;IACP,WAAW;IACX,WAAW;IACX,sBAAsB;IACtB,oBAAoB;GACrB;GAAA,UAAA;GAAA,QAAA,CAAA,o5DAAA;EAAA,CAAA"}
@@ -0,0 +1,484 @@
1
+ import { NgTemplateOutlet } from "@angular/common";
2
+ import * as i0 from "@angular/core";
3
+ import { ChangeDetectionStrategy, Component, booleanAttribute, computed, forwardRef, input, output, signal } from "@angular/core";
4
+ import { NG_VALUE_ACCESSOR } from "@angular/forms";
5
+ import { injectPassThrough, injectUnstyled } from "@tectra-ng/core/config";
6
+ import { injectFieldInvalid } from "@tectra-ng/core/forms";
7
+ import { optionalBoolean } from "@tectra-ng/core/utils";
8
+ import { TxIcon } from "@tectra-ng/icons";
9
+ import { toStyleObject } from "@tectra-ng/themes";
10
+ import { TxOptionList, TxOptionsBase, isSelectableRow } from "@tectra-ng/ui/select";
11
+ var TxListbox = class TxListbox extends TxOptionsBase {
12
+ options = input([], ...ngDevMode ? [{ debugName: "options" }] : /* istanbul ignore next */ []);
13
+ multiple = input(false, {
14
+ ...ngDevMode ? { debugName: "multiple" } : /* istanbul ignore next */ {},
15
+ transform: booleanAttribute
16
+ });
17
+ checkbox = input(false, {
18
+ ...ngDevMode ? { debugName: "checkbox" } : /* istanbul ignore next */ {},
19
+ transform: booleanAttribute
20
+ });
21
+ metaKeySelection = input(false, {
22
+ ...ngDevMode ? { debugName: "metaKeySelection" } : /* istanbul ignore next */ {},
23
+ transform: booleanAttribute
24
+ });
25
+ checkmark = input(false, {
26
+ ...ngDevMode ? { debugName: "checkmark" } : /* istanbul ignore next */ {},
27
+ transform: booleanAttribute
28
+ });
29
+ readonly = input(false, {
30
+ ...ngDevMode ? { debugName: "readonly" } : /* istanbul ignore next */ {},
31
+ transform: booleanAttribute
32
+ });
33
+ invalid = input(void 0, {
34
+ ...ngDevMode ? { debugName: "invalid" } : /* istanbul ignore next */ {},
35
+ transform: optionalBoolean
36
+ });
37
+ ariaLabel = input(void 0, ...ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
38
+ ariaLabelledBy = input(void 0, ...ngDevMode ? [{ debugName: "ariaLabelledBy" }] : /* istanbul ignore next */ []);
39
+ dt = input(void 0, ...ngDevMode ? [{ debugName: "dt" }] : /* istanbul ignore next */ []);
40
+ pt = input(void 0, ...ngDevMode ? [{ debugName: "pt" }] : /* istanbul ignore next */ []);
41
+ ptOptions = input(void 0, ...ngDevMode ? [{ debugName: "ptOptions" }] : /* istanbul ignore next */ []);
42
+ unstyled = input(void 0, {
43
+ ...ngDevMode ? { debugName: "unstyled" } : /* istanbul ignore next */ {},
44
+ transform: optionalBoolean
45
+ });
46
+ changed = output();
47
+ isUnstyled = injectUnstyled(this.unstyled);
48
+ isInvalid = injectFieldInvalid(this.invalid);
49
+ passThrough = injectPassThrough("listbox", this, this.pt, this.ptOptions);
50
+ focused = signal(false, ...ngDevMode ? [{ debugName: "focused" }] : /* istanbul ignore next */ []);
51
+ source = this.options;
52
+ replaceOnClick = false;
53
+ isMultiple = computed(() => this.multiple() || this.checkbox(), ...ngDevMode ? [{ debugName: "isMultiple" }] : /* istanbul ignore next */ []);
54
+ selectedValues = computed(() => {
55
+ const value = this.value();
56
+ if (this.isMultiple()) return Array.isArray(value) ? value : [];
57
+ return value === null || value === void 0 ? [] : [value];
58
+ }, ...ngDevMode ? [{ debugName: "selectedValues" }] : /* istanbul ignore next */ []);
59
+ shownActiveIndex = computed(() => this.focused() ? this.activeIndex() : -1, ...ngDevMode ? [{ debugName: "shownActiveIndex" }] : /* istanbul ignore next */ []);
60
+ hostStyle = computed(() => ({
61
+ ...toStyleObject(this.dt(), "--tx-listbox"),
62
+ ...this.passThrough().root?.style
63
+ }), ...ngDevMode ? [{ debugName: "hostStyle" }] : /* istanbul ignore next */ []);
64
+ onPointer(event) {
65
+ this.replaceOnClick = this.isMultiple() && this.metaKeySelection() && !(event.ctrlKey || event.metaKey);
66
+ }
67
+ onListFocus() {
68
+ this.focused.set(true);
69
+ if (!isSelectableRow(this.rows()[this.activeIndex()])) this.resetActive(true);
70
+ }
71
+ onListBlur() {
72
+ this.focused.set(false);
73
+ this.markTouched();
74
+ }
75
+ onOptionClick(item) {
76
+ this.activeIndex.set(this.rows().indexOf(item));
77
+ if (this.replaceOnClick) {
78
+ this.replaceOnClick = false;
79
+ this.commit([item.value], item);
80
+ return;
81
+ }
82
+ this.activate(item);
83
+ }
84
+ onListKeydown(event) {
85
+ const typing = event.target.classList.contains("tx-listbox__filter-input");
86
+ if (event.key === "ArrowDown" || event.key === "ArrowUp" || event.key === "PageDown" || event.key === "PageUp" || !typing && (event.key === "Home" || event.key === "End")) {
87
+ event.preventDefault();
88
+ if (!this.focused() && !isSelectableRow(this.rows()[this.activeIndex()])) this.resetActive(true);
89
+ if (this.moveActive(event.key) && event.shiftKey && this.isMultiple()) {
90
+ const active = this.rows()[this.activeIndex()];
91
+ if (isSelectableRow(active) && !active.selected) this.activate(active);
92
+ }
93
+ return;
94
+ }
95
+ if (event.key === "Enter" || event.key === " " && !typing) {
96
+ const active = this.rows()[this.activeIndex()];
97
+ if (isSelectableRow(active)) {
98
+ event.preventDefault();
99
+ this.activate(active);
100
+ }
101
+ return;
102
+ }
103
+ if (!typing && this.isMultiple() && (event.ctrlKey || event.metaKey) && event.key.toLowerCase() === "a") {
104
+ event.preventDefault();
105
+ this.toggleAll();
106
+ return;
107
+ }
108
+ if (!typing && event.key.length === 1 && !event.ctrlKey && !event.metaKey && !event.altKey) {
109
+ if (this.findByTyping(event.key)) this.scrollActiveIntoView();
110
+ }
111
+ }
112
+ onFilterFocus() {
113
+ this.focused.set(true);
114
+ if (!isSelectableRow(this.rows()[this.activeIndex()])) this.resetActive(true);
115
+ }
116
+ toggleAll() {
117
+ if (this.readonly() || this.disabled()) return;
118
+ const items = this.rows().filter(isSelectableRow);
119
+ const values = items.every((item) => item.selected) ? this.selectedValues().filter((value) => !items.some((item) => this.sameValue(item.value, value))) : [...this.selectedValues(), ...items.filter((item) => !item.selected).map((item) => item.value)];
120
+ this.commit(values, null);
121
+ }
122
+ isListActive() {
123
+ return this.focused();
124
+ }
125
+ isSelected(value) {
126
+ return this.selectedValues().some((selected) => this.sameValue(selected, value));
127
+ }
128
+ activate(item) {
129
+ if (this.readonly() || this.disabled() || item.disabled) return;
130
+ if (!this.isMultiple()) {
131
+ if (!item.selected) this.commit([item.value], item);
132
+ return;
133
+ }
134
+ const values = item.selected ? this.selectedValues().filter((value) => !this.sameValue(value, item.value)) : [...this.selectedValues(), item.value];
135
+ this.commit(values, item);
136
+ }
137
+ commit(values, item) {
138
+ const value = this.isMultiple() ? values : values[0] ?? null;
139
+ this.updateValue(value);
140
+ this.changed.emit({
141
+ value,
142
+ option: item?.option ?? null
143
+ });
144
+ }
145
+ static ɵfac = i0.ɵɵngDeclareFactory({
146
+ minVersion: "12.0.0",
147
+ version: "22.2.3",
148
+ ngImport: i0,
149
+ type: TxListbox,
150
+ deps: null,
151
+ target: i0.ɵɵFactoryTarget.Component
152
+ });
153
+ static ɵcmp = i0.ɵɵngDeclareComponent({
154
+ minVersion: "17.0.0",
155
+ version: "22.2.3",
156
+ type: TxListbox,
157
+ isStandalone: true,
158
+ selector: "tx-listbox",
159
+ inputs: {
160
+ options: {
161
+ classPropertyName: "options",
162
+ publicName: "options",
163
+ isSignal: true,
164
+ isRequired: false,
165
+ transformFunction: null
166
+ },
167
+ multiple: {
168
+ classPropertyName: "multiple",
169
+ publicName: "multiple",
170
+ isSignal: true,
171
+ isRequired: false,
172
+ transformFunction: null
173
+ },
174
+ checkbox: {
175
+ classPropertyName: "checkbox",
176
+ publicName: "checkbox",
177
+ isSignal: true,
178
+ isRequired: false,
179
+ transformFunction: null
180
+ },
181
+ metaKeySelection: {
182
+ classPropertyName: "metaKeySelection",
183
+ publicName: "metaKeySelection",
184
+ isSignal: true,
185
+ isRequired: false,
186
+ transformFunction: null
187
+ },
188
+ checkmark: {
189
+ classPropertyName: "checkmark",
190
+ publicName: "checkmark",
191
+ isSignal: true,
192
+ isRequired: false,
193
+ transformFunction: null
194
+ },
195
+ readonly: {
196
+ classPropertyName: "readonly",
197
+ publicName: "readonly",
198
+ isSignal: true,
199
+ isRequired: false,
200
+ transformFunction: null
201
+ },
202
+ invalid: {
203
+ classPropertyName: "invalid",
204
+ publicName: "invalid",
205
+ isSignal: true,
206
+ isRequired: false,
207
+ transformFunction: null
208
+ },
209
+ ariaLabel: {
210
+ classPropertyName: "ariaLabel",
211
+ publicName: "ariaLabel",
212
+ isSignal: true,
213
+ isRequired: false,
214
+ transformFunction: null
215
+ },
216
+ ariaLabelledBy: {
217
+ classPropertyName: "ariaLabelledBy",
218
+ publicName: "ariaLabelledBy",
219
+ isSignal: true,
220
+ isRequired: false,
221
+ transformFunction: null
222
+ },
223
+ dt: {
224
+ classPropertyName: "dt",
225
+ publicName: "dt",
226
+ isSignal: true,
227
+ isRequired: false,
228
+ transformFunction: null
229
+ },
230
+ pt: {
231
+ classPropertyName: "pt",
232
+ publicName: "pt",
233
+ isSignal: true,
234
+ isRequired: false,
235
+ transformFunction: null
236
+ },
237
+ ptOptions: {
238
+ classPropertyName: "ptOptions",
239
+ publicName: "ptOptions",
240
+ isSignal: true,
241
+ isRequired: false,
242
+ transformFunction: null
243
+ },
244
+ unstyled: {
245
+ classPropertyName: "unstyled",
246
+ publicName: "unstyled",
247
+ isSignal: true,
248
+ isRequired: false,
249
+ transformFunction: null
250
+ }
251
+ },
252
+ outputs: { changed: "changed" },
253
+ host: {
254
+ listeners: { "mousedown": "onPointer($event)" },
255
+ properties: {
256
+ "class": "passThrough().root?.class",
257
+ "style": "hostStyle()",
258
+ "attr.data-styled": "!isUnstyled() || null",
259
+ "class.tx-listbox--focused": "focused()",
260
+ "class.tx-listbox--disabled": "disabled()",
261
+ "class.tx-listbox--invalid": "isInvalid()",
262
+ "class.tx-listbox--readonly": "readonly()"
263
+ },
264
+ classAttribute: "tx-listbox"
265
+ },
266
+ providers: [{
267
+ provide: NG_VALUE_ACCESSOR,
268
+ useExisting: forwardRef(() => TxListbox),
269
+ multi: true
270
+ }],
271
+ usesInheritance: true,
272
+ ngImport: i0,
273
+ template: "@if (headerTemplate(); as template) {\n <div class=\"tx-listbox__header\" [class]=\"passThrough().header?.class\" [style]=\"passThrough().header?.style\">\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" />\n </div>\n}\n@if (filter()) {\n <div class=\"tx-listbox__filter\" [class]=\"passThrough().filter?.class\" [style]=\"passThrough().filter?.style\">\n <span class=\"tx-select__filter-field\">\n <input\n type=\"text\"\n autocomplete=\"off\"\n class=\"tx-select__filter-input tx-listbox__filter-input\"\n role=\"searchbox\"\n [class]=\"passThrough().filterInput?.class\"\n [style]=\"passThrough().filterInput?.style\"\n [attr.aria-label]=\"filterPlaceholder() ?? translations().searchPlaceholder\"\n [attr.aria-controls]=\"listboxId\"\n [attr.aria-activedescendant]=\"activeItemId()\"\n [placeholder]=\"filterPlaceholder() ?? translations().searchPlaceholder\"\n [value]=\"query()\"\n [disabled]=\"disabled()\"\n (input)=\"onFilterInput($event)\"\n (keydown)=\"onListKeydown($event)\"\n (focus)=\"onFilterFocus()\"\n (blur)=\"onListBlur()\"\n />\n <tx-icon class=\"tx-select__filter-icon\" [name]=\"'search'\" />\n </span>\n </div>\n}\n<tx-option-list\n [rows]=\"rows()\"\n [listboxId]=\"listboxId\"\n [activeIndex]=\"shownActiveIndex()\"\n [multiple]=\"isMultiple()\"\n [checkbox]=\"checkbox()\"\n [checkmark]=\"checkmark()\"\n [virtualScroll]=\"virtualScroll()\"\n [itemSize]=\"virtualScrollItemSize()\"\n [scrollHeight]=\"scrollHeight()\"\n [loading]=\"loading()\"\n [query]=\"query()\"\n [emptyText]=\"emptyText()\"\n [loadingText]=\"translations().loading\"\n [optionTemplate]=\"optionTemplate()?.templateRef\"\n [groupTemplate]=\"groupTemplate()?.templateRef\"\n [emptyTemplate]=\"emptyTemplate()?.templateRef\"\n [emptyFilterTemplate]=\"emptyFilterTemplate()?.templateRef\"\n [passThrough]=\"passThrough()\"\n [unstyled]=\"isUnstyled()\"\n [focusable]=\"true\"\n [disabled]=\"disabled()\"\n [ariaLabel]=\"ariaLabel()\"\n [ariaLabelledBy]=\"ariaLabelledBy()\"\n [ariaInvalid]=\"isInvalid()\"\n (optionClick)=\"onOptionClick($event)\"\n (optionHover)=\"focused() && activeIndex.set($event)\"\n (rangeChange)=\"onRangeChange($event)\"\n (listKeydown)=\"onListKeydown($event)\"\n (listFocus)=\"onListFocus()\"\n (listBlur)=\"onListBlur()\"\n/>\n@if (footerTemplate(); as template) {\n <div class=\"tx-listbox__footer\" [class]=\"passThrough().footer?.class\" [style]=\"passThrough().footer?.style\">\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" />\n </div>\n}\n",
274
+ styles: [":host{display:flex;flex-direction:column}:host(.tx-listbox--disabled){pointer-events:none}:host([data-styled]){overflow:hidden;border:1px solid var(--tx-listbox-border-color);border-radius:var(--tx-listbox-border-radius);background:var(--tx-listbox-background);box-shadow:var(--tx-listbox-shadow);color:var(--tx-select-option-color);font-family:var(--tx-font-family);font-size:var(--tx-form-field-font-size);line-height:var(--tx-form-field-line-height);transition:border-color var(--tx-form-field-transition-duration),box-shadow var(--tx-form-field-transition-duration)}:host([data-styled]) .tx-listbox__header{padding:var(--tx-select-header-padding)}:host([data-styled]) .tx-listbox__footer{padding:var(--tx-select-footer-padding)}:host([data-styled]) .tx-listbox__filter{display:flex;align-items:center;gap:var(--tx-select-filter-gap);padding:var(--tx-select-filter-padding)}:host([data-styled]) .tx-listbox__filter .tx-select__filter-field{position:relative;display:flex;flex:1 1 auto;align-items:center;min-width:0}:host([data-styled]) .tx-listbox__filter .tx-select__filter-input{box-sizing:border-box;padding-top:var(--tx-field-padding-top, var(--tx-form-field-padding-y));padding-bottom:var(--tx-field-padding-bottom, var(--tx-form-field-padding-y));padding-inline:calc(var(--tx-form-field-padding-x) + var(--tx-field-inset-start, 0px)) calc(var(--tx-form-field-padding-x) + var(--tx-field-inset-end, 0px));border:1px solid var(--tx-form-field-border-color);border-radius:var(--tx-form-field-border-radius);outline:none;background:var(--tx-form-field-background);box-shadow:var(--tx-form-field-shadow);color:var(--tx-form-field-color);font-family:var(--tx-font-family);font-size:var(--tx-form-field-font-size);line-height:var(--tx-form-field-line-height);transition:background-color var(--tx-form-field-transition-duration),border-color var(--tx-form-field-transition-duration),box-shadow var(--tx-form-field-transition-duration);width:100%;min-width:0;padding-inline-end:calc(var(--tx-form-field-padding-x) + 1em + var(--tx-select-filter-icon-inset))}:host([data-styled]) .tx-listbox__filter .tx-select__filter-input:hover{border-color:var(--tx-form-field-hover-border-color)}:host([data-styled]) .tx-listbox__filter .tx-select__filter-input:focus{border-color:var(--tx-form-field-focus-border-color);box-shadow:var(--tx-form-field-focus-ring-shadow)}:host([data-styled]) .tx-listbox__filter .tx-select__filter-input::placeholder{color:var(--tx-form-field-placeholder-color)}:host([data-styled]) .tx-listbox__filter .tx-select__filter-icon{position:absolute;right:var(--tx-select-filter-icon-inset);color:var(--tx-form-field-icon-color);pointer-events:none}:host([data-styled].tx-listbox--focused:has(.tx-select__list:focus-visible)){border-color:var(--tx-listbox-focus-border-color);box-shadow:var(--tx-listbox-focus-ring-shadow)}:host([data-styled].tx-listbox--invalid){border-color:var(--tx-listbox-invalid-border-color)}:host([data-styled].tx-listbox--disabled){background:var(--tx-listbox-disabled-background);color:var(--tx-listbox-disabled-color)}\n"],
275
+ dependencies: [
276
+ {
277
+ kind: "directive",
278
+ type: NgTemplateOutlet,
279
+ selector: "[ngTemplateOutlet]",
280
+ inputs: [
281
+ "ngTemplateOutletContext",
282
+ "ngTemplateOutlet",
283
+ "ngTemplateOutletInjector"
284
+ ]
285
+ },
286
+ {
287
+ kind: "component",
288
+ type: TxIcon,
289
+ selector: "tx-icon",
290
+ inputs: ["name"]
291
+ },
292
+ {
293
+ kind: "component",
294
+ type: TxOptionList,
295
+ selector: "tx-option-list",
296
+ inputs: [
297
+ "rows",
298
+ "listboxId",
299
+ "activeIndex",
300
+ "multiple",
301
+ "checkbox",
302
+ "checkmark",
303
+ "virtualScroll",
304
+ "itemSize",
305
+ "scrollHeight",
306
+ "loading",
307
+ "query",
308
+ "emptyText",
309
+ "loadingText",
310
+ "optionTemplate",
311
+ "groupTemplate",
312
+ "emptyTemplate",
313
+ "emptyFilterTemplate",
314
+ "passThrough",
315
+ "unstyled",
316
+ "focusable",
317
+ "disabled",
318
+ "ariaLabel",
319
+ "ariaLabelledBy",
320
+ "ariaDescribedBy",
321
+ "ariaInvalid"
322
+ ],
323
+ outputs: [
324
+ "optionClick",
325
+ "optionHover",
326
+ "rangeChange",
327
+ "listKeydown",
328
+ "listFocus",
329
+ "listBlur"
330
+ ]
331
+ }
332
+ ],
333
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
334
+ });
335
+ };
336
+ i0.ɵɵngDeclareClassMetadata({
337
+ minVersion: "12.0.0",
338
+ version: "22.2.3",
339
+ ngImport: i0,
340
+ type: TxListbox,
341
+ decorators: [{
342
+ type: Component,
343
+ args: [{
344
+ selector: "tx-listbox",
345
+ imports: [
346
+ NgTemplateOutlet,
347
+ TxIcon,
348
+ TxOptionList
349
+ ],
350
+ changeDetection: ChangeDetectionStrategy.OnPush,
351
+ providers: [{
352
+ provide: NG_VALUE_ACCESSOR,
353
+ useExisting: forwardRef(() => TxListbox),
354
+ multi: true
355
+ }],
356
+ host: {
357
+ class: "tx-listbox",
358
+ "[class]": "passThrough().root?.class",
359
+ "[style]": "hostStyle()",
360
+ "[attr.data-styled]": "!isUnstyled() || null",
361
+ "[class.tx-listbox--focused]": "focused()",
362
+ "[class.tx-listbox--disabled]": "disabled()",
363
+ "[class.tx-listbox--invalid]": "isInvalid()",
364
+ "[class.tx-listbox--readonly]": "readonly()",
365
+ "(mousedown)": "onPointer($event)"
366
+ },
367
+ template: "@if (headerTemplate(); as template) {\n <div class=\"tx-listbox__header\" [class]=\"passThrough().header?.class\" [style]=\"passThrough().header?.style\">\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" />\n </div>\n}\n@if (filter()) {\n <div class=\"tx-listbox__filter\" [class]=\"passThrough().filter?.class\" [style]=\"passThrough().filter?.style\">\n <span class=\"tx-select__filter-field\">\n <input\n type=\"text\"\n autocomplete=\"off\"\n class=\"tx-select__filter-input tx-listbox__filter-input\"\n role=\"searchbox\"\n [class]=\"passThrough().filterInput?.class\"\n [style]=\"passThrough().filterInput?.style\"\n [attr.aria-label]=\"filterPlaceholder() ?? translations().searchPlaceholder\"\n [attr.aria-controls]=\"listboxId\"\n [attr.aria-activedescendant]=\"activeItemId()\"\n [placeholder]=\"filterPlaceholder() ?? translations().searchPlaceholder\"\n [value]=\"query()\"\n [disabled]=\"disabled()\"\n (input)=\"onFilterInput($event)\"\n (keydown)=\"onListKeydown($event)\"\n (focus)=\"onFilterFocus()\"\n (blur)=\"onListBlur()\"\n />\n <tx-icon class=\"tx-select__filter-icon\" [name]=\"'search'\" />\n </span>\n </div>\n}\n<tx-option-list\n [rows]=\"rows()\"\n [listboxId]=\"listboxId\"\n [activeIndex]=\"shownActiveIndex()\"\n [multiple]=\"isMultiple()\"\n [checkbox]=\"checkbox()\"\n [checkmark]=\"checkmark()\"\n [virtualScroll]=\"virtualScroll()\"\n [itemSize]=\"virtualScrollItemSize()\"\n [scrollHeight]=\"scrollHeight()\"\n [loading]=\"loading()\"\n [query]=\"query()\"\n [emptyText]=\"emptyText()\"\n [loadingText]=\"translations().loading\"\n [optionTemplate]=\"optionTemplate()?.templateRef\"\n [groupTemplate]=\"groupTemplate()?.templateRef\"\n [emptyTemplate]=\"emptyTemplate()?.templateRef\"\n [emptyFilterTemplate]=\"emptyFilterTemplate()?.templateRef\"\n [passThrough]=\"passThrough()\"\n [unstyled]=\"isUnstyled()\"\n [focusable]=\"true\"\n [disabled]=\"disabled()\"\n [ariaLabel]=\"ariaLabel()\"\n [ariaLabelledBy]=\"ariaLabelledBy()\"\n [ariaInvalid]=\"isInvalid()\"\n (optionClick)=\"onOptionClick($event)\"\n (optionHover)=\"focused() && activeIndex.set($event)\"\n (rangeChange)=\"onRangeChange($event)\"\n (listKeydown)=\"onListKeydown($event)\"\n (listFocus)=\"onListFocus()\"\n (listBlur)=\"onListBlur()\"\n/>\n@if (footerTemplate(); as template) {\n <div class=\"tx-listbox__footer\" [class]=\"passThrough().footer?.class\" [style]=\"passThrough().footer?.style\">\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" />\n </div>\n}\n",
368
+ styles: [":host{display:flex;flex-direction:column}:host(.tx-listbox--disabled){pointer-events:none}:host([data-styled]){overflow:hidden;border:1px solid var(--tx-listbox-border-color);border-radius:var(--tx-listbox-border-radius);background:var(--tx-listbox-background);box-shadow:var(--tx-listbox-shadow);color:var(--tx-select-option-color);font-family:var(--tx-font-family);font-size:var(--tx-form-field-font-size);line-height:var(--tx-form-field-line-height);transition:border-color var(--tx-form-field-transition-duration),box-shadow var(--tx-form-field-transition-duration)}:host([data-styled]) .tx-listbox__header{padding:var(--tx-select-header-padding)}:host([data-styled]) .tx-listbox__footer{padding:var(--tx-select-footer-padding)}:host([data-styled]) .tx-listbox__filter{display:flex;align-items:center;gap:var(--tx-select-filter-gap);padding:var(--tx-select-filter-padding)}:host([data-styled]) .tx-listbox__filter .tx-select__filter-field{position:relative;display:flex;flex:1 1 auto;align-items:center;min-width:0}:host([data-styled]) .tx-listbox__filter .tx-select__filter-input{box-sizing:border-box;padding-top:var(--tx-field-padding-top, var(--tx-form-field-padding-y));padding-bottom:var(--tx-field-padding-bottom, var(--tx-form-field-padding-y));padding-inline:calc(var(--tx-form-field-padding-x) + var(--tx-field-inset-start, 0px)) calc(var(--tx-form-field-padding-x) + var(--tx-field-inset-end, 0px));border:1px solid var(--tx-form-field-border-color);border-radius:var(--tx-form-field-border-radius);outline:none;background:var(--tx-form-field-background);box-shadow:var(--tx-form-field-shadow);color:var(--tx-form-field-color);font-family:var(--tx-font-family);font-size:var(--tx-form-field-font-size);line-height:var(--tx-form-field-line-height);transition:background-color var(--tx-form-field-transition-duration),border-color var(--tx-form-field-transition-duration),box-shadow var(--tx-form-field-transition-duration);width:100%;min-width:0;padding-inline-end:calc(var(--tx-form-field-padding-x) + 1em + var(--tx-select-filter-icon-inset))}:host([data-styled]) .tx-listbox__filter .tx-select__filter-input:hover{border-color:var(--tx-form-field-hover-border-color)}:host([data-styled]) .tx-listbox__filter .tx-select__filter-input:focus{border-color:var(--tx-form-field-focus-border-color);box-shadow:var(--tx-form-field-focus-ring-shadow)}:host([data-styled]) .tx-listbox__filter .tx-select__filter-input::placeholder{color:var(--tx-form-field-placeholder-color)}:host([data-styled]) .tx-listbox__filter .tx-select__filter-icon{position:absolute;right:var(--tx-select-filter-icon-inset);color:var(--tx-form-field-icon-color);pointer-events:none}:host([data-styled].tx-listbox--focused:has(.tx-select__list:focus-visible)){border-color:var(--tx-listbox-focus-border-color);box-shadow:var(--tx-listbox-focus-ring-shadow)}:host([data-styled].tx-listbox--invalid){border-color:var(--tx-listbox-invalid-border-color)}:host([data-styled].tx-listbox--disabled){background:var(--tx-listbox-disabled-background);color:var(--tx-listbox-disabled-color)}\n"]
369
+ }]
370
+ }],
371
+ propDecorators: {
372
+ options: [{
373
+ type: i0.Input,
374
+ args: [{
375
+ isSignal: true,
376
+ alias: "options",
377
+ required: false
378
+ }]
379
+ }],
380
+ multiple: [{
381
+ type: i0.Input,
382
+ args: [{
383
+ isSignal: true,
384
+ alias: "multiple",
385
+ required: false
386
+ }]
387
+ }],
388
+ checkbox: [{
389
+ type: i0.Input,
390
+ args: [{
391
+ isSignal: true,
392
+ alias: "checkbox",
393
+ required: false
394
+ }]
395
+ }],
396
+ metaKeySelection: [{
397
+ type: i0.Input,
398
+ args: [{
399
+ isSignal: true,
400
+ alias: "metaKeySelection",
401
+ required: false
402
+ }]
403
+ }],
404
+ checkmark: [{
405
+ type: i0.Input,
406
+ args: [{
407
+ isSignal: true,
408
+ alias: "checkmark",
409
+ required: false
410
+ }]
411
+ }],
412
+ readonly: [{
413
+ type: i0.Input,
414
+ args: [{
415
+ isSignal: true,
416
+ alias: "readonly",
417
+ required: false
418
+ }]
419
+ }],
420
+ invalid: [{
421
+ type: i0.Input,
422
+ args: [{
423
+ isSignal: true,
424
+ alias: "invalid",
425
+ required: false
426
+ }]
427
+ }],
428
+ ariaLabel: [{
429
+ type: i0.Input,
430
+ args: [{
431
+ isSignal: true,
432
+ alias: "ariaLabel",
433
+ required: false
434
+ }]
435
+ }],
436
+ ariaLabelledBy: [{
437
+ type: i0.Input,
438
+ args: [{
439
+ isSignal: true,
440
+ alias: "ariaLabelledBy",
441
+ required: false
442
+ }]
443
+ }],
444
+ dt: [{
445
+ type: i0.Input,
446
+ args: [{
447
+ isSignal: true,
448
+ alias: "dt",
449
+ required: false
450
+ }]
451
+ }],
452
+ pt: [{
453
+ type: i0.Input,
454
+ args: [{
455
+ isSignal: true,
456
+ alias: "pt",
457
+ required: false
458
+ }]
459
+ }],
460
+ ptOptions: [{
461
+ type: i0.Input,
462
+ args: [{
463
+ isSignal: true,
464
+ alias: "ptOptions",
465
+ required: false
466
+ }]
467
+ }],
468
+ unstyled: [{
469
+ type: i0.Input,
470
+ args: [{
471
+ isSignal: true,
472
+ alias: "unstyled",
473
+ required: false
474
+ }]
475
+ }],
476
+ changed: [{
477
+ type: i0.Output,
478
+ args: ["changed"]
479
+ }]
480
+ }
481
+ });
482
+ export { TxListbox };
483
+
484
+ //# sourceMappingURL=tectra-ng-ui-listbox.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tectra-ng-ui-listbox.mjs","names":[],"sources":["../../../../packages/ui/listbox/src/listbox.component.ts","../../../../packages/ui/listbox/src/listbox.component.html"],"sourcesContent":["import { NgTemplateOutlet } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, booleanAttribute, computed, forwardRef, input, output, signal } from '@angular/core';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { TxPassThrough, TxPassThroughOptions, injectPassThrough, injectUnstyled } from '@tectra-ng/core/config';\nimport { injectFieldInvalid } from '@tectra-ng/core/forms';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { TxIcon } from '@tectra-ng/icons';\nimport { TectraDeepPartial, TectraListboxTokens, toStyleObject } from '@tectra-ng/themes';\nimport { TxOptionList, TxOptionsBase, TxSelectItem, isSelectableRow } from '@tectra-ng/ui/select';\nimport { TxListboxChangeEvent, TxListboxPart } from './listbox.types';\n\n@Component({\n selector: 'tx-listbox',\n imports: [NgTemplateOutlet, TxIcon, TxOptionList],\n templateUrl: './listbox.component.html',\n styleUrl: './listbox.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => TxListbox), multi: true }],\n host: {\n class: 'tx-listbox',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[class.tx-listbox--focused]': 'focused()',\n '[class.tx-listbox--disabled]': 'disabled()',\n '[class.tx-listbox--invalid]': 'isInvalid()',\n '[class.tx-listbox--readonly]': 'readonly()',\n '(mousedown)': 'onPointer($event)',\n },\n})\nexport class TxListbox extends TxOptionsBase<unknown> {\n readonly options = input<readonly unknown[]>([]);\n readonly multiple = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly checkbox = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly metaKeySelection = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly checkmark = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly readonly = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly invalid = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n readonly ariaLabel = input<string | undefined>(undefined);\n readonly ariaLabelledBy = input<string | undefined>(undefined);\n readonly dt = input<TectraDeepPartial<TectraListboxTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxListboxPart, TxListbox> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly changed = output<TxListboxChangeEvent>();\n\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly isInvalid = injectFieldInvalid(this.invalid);\n readonly passThrough = injectPassThrough('listbox', this, this.pt, this.ptOptions);\n readonly focused = signal(false);\n protected readonly source = this.options;\n private replaceOnClick = false;\n\n readonly isMultiple = computed(() => this.multiple() || this.checkbox());\n readonly selectedValues = computed<unknown[]>(() => {\n const value = this.value();\n if (this.isMultiple()) {\n return Array.isArray(value) ? value : [];\n }\n return value === null || value === undefined ? [] : [value];\n });\n readonly shownActiveIndex = computed(() => (this.focused() ? this.activeIndex() : -1));\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-listbox'), ...this.passThrough().root?.style }));\n\n onPointer(event: MouseEvent): void {\n this.replaceOnClick = this.isMultiple() && this.metaKeySelection() && !(event.ctrlKey || event.metaKey);\n }\n\n onListFocus(): void {\n this.focused.set(true);\n if (!isSelectableRow(this.rows()[this.activeIndex()])) {\n this.resetActive(true);\n }\n }\n\n onListBlur(): void {\n this.focused.set(false);\n this.markTouched();\n }\n\n onOptionClick(item: TxSelectItem): void {\n this.activeIndex.set(this.rows().indexOf(item));\n if (this.replaceOnClick) {\n this.replaceOnClick = false;\n this.commit([item.value], item);\n return;\n }\n this.activate(item);\n }\n\n onListKeydown(event: KeyboardEvent): void {\n const typing = (event.target as HTMLElement).classList.contains('tx-listbox__filter-input');\n if (event.key === 'ArrowDown' || event.key === 'ArrowUp' || event.key === 'PageDown' || event.key === 'PageUp' || (!typing && (event.key === 'Home' || event.key === 'End'))) {\n event.preventDefault();\n if (!this.focused() && !isSelectableRow(this.rows()[this.activeIndex()])) {\n this.resetActive(true);\n }\n if (this.moveActive(event.key) && event.shiftKey && this.isMultiple()) {\n const active = this.rows()[this.activeIndex()];\n if (isSelectableRow(active) && !active.selected) {\n this.activate(active);\n }\n }\n return;\n }\n if (event.key === 'Enter' || (event.key === ' ' && !typing)) {\n const active = this.rows()[this.activeIndex()];\n if (isSelectableRow(active)) {\n event.preventDefault();\n this.activate(active);\n }\n return;\n }\n if (!typing && this.isMultiple() && (event.ctrlKey || event.metaKey) && event.key.toLowerCase() === 'a') {\n event.preventDefault();\n this.toggleAll();\n return;\n }\n if (!typing && event.key.length === 1 && !event.ctrlKey && !event.metaKey && !event.altKey) {\n if (this.findByTyping(event.key)) {\n this.scrollActiveIntoView();\n }\n }\n }\n\n onFilterFocus(): void {\n this.focused.set(true);\n if (!isSelectableRow(this.rows()[this.activeIndex()])) {\n this.resetActive(true);\n }\n }\n\n toggleAll(): void {\n if (this.readonly() || this.disabled()) {\n return;\n }\n const items = this.rows().filter(isSelectableRow);\n const allSelected = items.every((item) => item.selected);\n const values = allSelected\n ? this.selectedValues().filter((value) => !items.some((item) => this.sameValue(item.value, value)))\n : [...this.selectedValues(), ...items.filter((item) => !item.selected).map((item) => item.value)];\n this.commit(values, null);\n }\n\n protected isListActive(): boolean {\n return this.focused();\n }\n\n protected isSelected(value: unknown): boolean {\n return this.selectedValues().some((selected) => this.sameValue(selected, value));\n }\n\n protected activate(item: TxSelectItem): void {\n if (this.readonly() || this.disabled() || item.disabled) {\n return;\n }\n if (!this.isMultiple()) {\n if (!item.selected) {\n this.commit([item.value], item);\n }\n return;\n }\n const values = item.selected ? this.selectedValues().filter((value) => !this.sameValue(value, item.value)) : [...this.selectedValues(), item.value];\n this.commit(values, item);\n }\n\n private commit(values: unknown[], item: TxSelectItem | null): void {\n const value = this.isMultiple() ? values : (values[0] ?? null);\n this.updateValue(value);\n this.changed.emit({ value, option: item?.option ?? null });\n }\n}\n","@if (headerTemplate(); as template) {\n <div class=\"tx-listbox__header\" [class]=\"passThrough().header?.class\" [style]=\"passThrough().header?.style\">\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" />\n </div>\n}\n@if (filter()) {\n <div class=\"tx-listbox__filter\" [class]=\"passThrough().filter?.class\" [style]=\"passThrough().filter?.style\">\n <span class=\"tx-select__filter-field\">\n <input\n type=\"text\"\n autocomplete=\"off\"\n class=\"tx-select__filter-input tx-listbox__filter-input\"\n role=\"searchbox\"\n [class]=\"passThrough().filterInput?.class\"\n [style]=\"passThrough().filterInput?.style\"\n [attr.aria-label]=\"filterPlaceholder() ?? translations().searchPlaceholder\"\n [attr.aria-controls]=\"listboxId\"\n [attr.aria-activedescendant]=\"activeItemId()\"\n [placeholder]=\"filterPlaceholder() ?? translations().searchPlaceholder\"\n [value]=\"query()\"\n [disabled]=\"disabled()\"\n (input)=\"onFilterInput($event)\"\n (keydown)=\"onListKeydown($event)\"\n (focus)=\"onFilterFocus()\"\n (blur)=\"onListBlur()\"\n />\n <tx-icon class=\"tx-select__filter-icon\" [name]=\"'search'\" />\n </span>\n </div>\n}\n<tx-option-list\n [rows]=\"rows()\"\n [listboxId]=\"listboxId\"\n [activeIndex]=\"shownActiveIndex()\"\n [multiple]=\"isMultiple()\"\n [checkbox]=\"checkbox()\"\n [checkmark]=\"checkmark()\"\n [virtualScroll]=\"virtualScroll()\"\n [itemSize]=\"virtualScrollItemSize()\"\n [scrollHeight]=\"scrollHeight()\"\n [loading]=\"loading()\"\n [query]=\"query()\"\n [emptyText]=\"emptyText()\"\n [loadingText]=\"translations().loading\"\n [optionTemplate]=\"optionTemplate()?.templateRef\"\n [groupTemplate]=\"groupTemplate()?.templateRef\"\n [emptyTemplate]=\"emptyTemplate()?.templateRef\"\n [emptyFilterTemplate]=\"emptyFilterTemplate()?.templateRef\"\n [passThrough]=\"passThrough()\"\n [unstyled]=\"isUnstyled()\"\n [focusable]=\"true\"\n [disabled]=\"disabled()\"\n [ariaLabel]=\"ariaLabel()\"\n [ariaLabelledBy]=\"ariaLabelledBy()\"\n [ariaInvalid]=\"isInvalid()\"\n (optionClick)=\"onOptionClick($event)\"\n (optionHover)=\"focused() && activeIndex.set($event)\"\n (rangeChange)=\"onRangeChange($event)\"\n (listKeydown)=\"onListKeydown($event)\"\n (listFocus)=\"onListFocus()\"\n (listBlur)=\"onListBlur()\"\n/>\n@if (footerTemplate(); as template) {\n <div class=\"tx-listbox__footer\" [class]=\"passThrough().footer?.class\" [style]=\"passThrough().footer?.style\">\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" />\n </div>\n}\n"],"mappings":";;;;;;;;;;AA8BA,IAAa,YAAb,MAAa,kBAAkB,cAAsB;CAC1C,UAAU,MAA0B,CAAA,GAAG,GAAA,YAAA,CAAA,EAAA,WAAA,UAAA,CAAA,+BAAA,CAAA,CAAA;CACvC,WAAW,MAAwB,OAAK;EAAA,GAAA,YAAA,EAAA,WAAA,WAAA,+BAAA,CAAA;EAAI,WAAW;CAAgB,CAAA;CACvE,WAAW,MAAwB,OAAK;EAAA,GAAA,YAAA,EAAA,WAAA,WAAA,+BAAA,CAAA;EAAI,WAAW;CAAgB,CAAA;CACvE,mBAAmB,MAAwB,OAAK;EAAA,GAAA,YAAA,EAAA,WAAA,mBAAA,+BAAA,CAAA;EAAI,WAAW;CAAgB,CAAA;CAC/E,YAAY,MAAwB,OAAK;EAAA,GAAA,YAAA,EAAA,WAAA,YAAA,+BAAA,CAAA;EAAI,WAAW;CAAgB,CAAA;CACxE,WAAW,MAAwB,OAAK;EAAA,GAAA,YAAA,EAAA,WAAA,WAAA,+BAAA,CAAA;EAAI,WAAW;CAAgB,CAAA;CACvE,UAAU,MAAoC,QAAS;EAAA,GAAA,YAAA,EAAA,WAAA,UAAA,+BAAA,CAAA;EAAI,WAAW;CAAe,CAAA;CACrF,YAAY,MAA0B,QAAU,GAAA,YAAA,CAA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