@tectra-ng/ui 0.0.0-stage → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (317) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +26 -2
  3. package/amount/README.md +28 -0
  4. package/autocomplete/README.md +82 -0
  5. package/avatar/README.md +43 -0
  6. package/badge/README.md +19 -0
  7. package/button/README.md +46 -0
  8. package/button-group/README.md +8 -0
  9. package/card/README.md +30 -0
  10. package/cascade-select/README.md +49 -0
  11. package/checkbox/README.md +64 -0
  12. package/chip/README.md +38 -0
  13. package/chips-input/README.md +47 -0
  14. package/color-picker/README.md +43 -0
  15. package/confirm/README.md +46 -0
  16. package/country/README.md +23 -0
  17. package/country-select/README.md +39 -0
  18. package/dialog/README.md +84 -0
  19. package/divider/README.md +24 -0
  20. package/drawer/README.md +54 -0
  21. package/email-suggestion/README.md +20 -0
  22. package/fesm2022/tectra-ng-ui-amount.mjs +415 -0
  23. package/fesm2022/tectra-ng-ui-amount.mjs.map +1 -0
  24. package/fesm2022/tectra-ng-ui-autocomplete.mjs +730 -0
  25. package/fesm2022/tectra-ng-ui-autocomplete.mjs.map +1 -0
  26. package/fesm2022/tectra-ng-ui-avatar.mjs +670 -0
  27. package/fesm2022/tectra-ng-ui-avatar.mjs.map +1 -0
  28. package/fesm2022/tectra-ng-ui-badge.mjs +191 -0
  29. package/fesm2022/tectra-ng-ui-badge.mjs.map +1 -0
  30. package/fesm2022/tectra-ng-ui-button-group.mjs +50 -0
  31. package/fesm2022/tectra-ng-ui-button-group.mjs.map +1 -0
  32. package/fesm2022/tectra-ng-ui-button.mjs +725 -0
  33. package/fesm2022/tectra-ng-ui-button.mjs.map +1 -0
  34. package/fesm2022/tectra-ng-ui-card.mjs +210 -0
  35. package/fesm2022/tectra-ng-ui-card.mjs.map +1 -0
  36. package/fesm2022/tectra-ng-ui-cascade-select.mjs +887 -0
  37. package/fesm2022/tectra-ng-ui-cascade-select.mjs.map +1 -0
  38. package/fesm2022/tectra-ng-ui-checkbox.mjs +1150 -0
  39. package/fesm2022/tectra-ng-ui-checkbox.mjs.map +1 -0
  40. package/fesm2022/tectra-ng-ui-chip.mjs +344 -0
  41. package/fesm2022/tectra-ng-ui-chip.mjs.map +1 -0
  42. package/fesm2022/tectra-ng-ui-chips-input.mjs +649 -0
  43. package/fesm2022/tectra-ng-ui-chips-input.mjs.map +1 -0
  44. package/fesm2022/tectra-ng-ui-color-picker.mjs +828 -0
  45. package/fesm2022/tectra-ng-ui-color-picker.mjs.map +1 -0
  46. package/fesm2022/tectra-ng-ui-confirm.mjs +489 -0
  47. package/fesm2022/tectra-ng-ui-confirm.mjs.map +1 -0
  48. package/fesm2022/tectra-ng-ui-country-select.mjs +545 -0
  49. package/fesm2022/tectra-ng-ui-country-select.mjs.map +1 -0
  50. package/fesm2022/tectra-ng-ui-country.mjs +313 -0
  51. package/fesm2022/tectra-ng-ui-country.mjs.map +1 -0
  52. package/fesm2022/tectra-ng-ui-dialog.mjs +1539 -0
  53. package/fesm2022/tectra-ng-ui-dialog.mjs.map +1 -0
  54. package/fesm2022/tectra-ng-ui-divider.mjs +194 -0
  55. package/fesm2022/tectra-ng-ui-divider.mjs.map +1 -0
  56. package/fesm2022/tectra-ng-ui-drawer.mjs +540 -0
  57. package/fesm2022/tectra-ng-ui-drawer.mjs.map +1 -0
  58. package/fesm2022/tectra-ng-ui-email-suggestion.mjs +341 -0
  59. package/fesm2022/tectra-ng-ui-email-suggestion.mjs.map +1 -0
  60. package/fesm2022/tectra-ng-ui-field.mjs +492 -0
  61. package/fesm2022/tectra-ng-ui-field.mjs.map +1 -0
  62. package/fesm2022/tectra-ng-ui-fieldset.mjs +258 -0
  63. package/fesm2022/tectra-ng-ui-fieldset.mjs.map +1 -0
  64. package/fesm2022/tectra-ng-ui-highlight-text.mjs +246 -0
  65. package/fesm2022/tectra-ng-ui-highlight-text.mjs.map +1 -0
  66. package/fesm2022/tectra-ng-ui-icon-field.mjs +478 -0
  67. package/fesm2022/tectra-ng-ui-icon-field.mjs.map +1 -0
  68. package/fesm2022/tectra-ng-ui-input-group.mjs +113 -0
  69. package/fesm2022/tectra-ng-ui-input-group.mjs.map +1 -0
  70. package/fesm2022/tectra-ng-ui-input-mask.mjs +413 -0
  71. package/fesm2022/tectra-ng-ui-input-mask.mjs.map +1 -0
  72. package/fesm2022/tectra-ng-ui-input-number.mjs +1045 -0
  73. package/fesm2022/tectra-ng-ui-input-number.mjs.map +1 -0
  74. package/fesm2022/tectra-ng-ui-input-otp.mjs +553 -0
  75. package/fesm2022/tectra-ng-ui-input-otp.mjs.map +1 -0
  76. package/fesm2022/tectra-ng-ui-input.mjs +260 -0
  77. package/fesm2022/tectra-ng-ui-input.mjs.map +1 -0
  78. package/fesm2022/tectra-ng-ui-key-filter.mjs +185 -0
  79. package/fesm2022/tectra-ng-ui-key-filter.mjs.map +1 -0
  80. package/fesm2022/tectra-ng-ui-knob.mjs +630 -0
  81. package/fesm2022/tectra-ng-ui-knob.mjs.map +1 -0
  82. package/fesm2022/tectra-ng-ui-label.mjs +271 -0
  83. package/fesm2022/tectra-ng-ui-label.mjs.map +1 -0
  84. package/fesm2022/tectra-ng-ui-link.mjs +699 -0
  85. package/fesm2022/tectra-ng-ui-link.mjs.map +1 -0
  86. package/fesm2022/tectra-ng-ui-listbox.mjs +484 -0
  87. package/fesm2022/tectra-ng-ui-listbox.mjs.map +1 -0
  88. package/fesm2022/tectra-ng-ui-mention-textarea.mjs +717 -0
  89. package/fesm2022/tectra-ng-ui-mention-textarea.mjs.map +1 -0
  90. package/fesm2022/tectra-ng-ui-menu.mjs +1484 -0
  91. package/fesm2022/tectra-ng-ui-menu.mjs.map +1 -0
  92. package/fesm2022/tectra-ng-ui-message.mjs +975 -0
  93. package/fesm2022/tectra-ng-ui-message.mjs.map +1 -0
  94. package/fesm2022/tectra-ng-ui-multiselect.mjs +569 -0
  95. package/fesm2022/tectra-ng-ui-multiselect.mjs.map +1 -0
  96. package/fesm2022/tectra-ng-ui-overlay-badge.mjs +345 -0
  97. package/fesm2022/tectra-ng-ui-overlay-badge.mjs.map +1 -0
  98. package/fesm2022/tectra-ng-ui-paginator.mjs +849 -0
  99. package/fesm2022/tectra-ng-ui-paginator.mjs.map +1 -0
  100. package/fesm2022/tectra-ng-ui-panel.mjs +317 -0
  101. package/fesm2022/tectra-ng-ui-panel.mjs.map +1 -0
  102. package/fesm2022/tectra-ng-ui-password-generator.mjs +292 -0
  103. package/fesm2022/tectra-ng-ui-password-generator.mjs.map +1 -0
  104. package/fesm2022/tectra-ng-ui-password.mjs +871 -0
  105. package/fesm2022/tectra-ng-ui-password.mjs.map +1 -0
  106. package/fesm2022/tectra-ng-ui-pill.mjs +361 -0
  107. package/fesm2022/tectra-ng-ui-pill.mjs.map +1 -0
  108. package/fesm2022/tectra-ng-ui-popover.mjs +742 -0
  109. package/fesm2022/tectra-ng-ui-popover.mjs.map +1 -0
  110. package/fesm2022/tectra-ng-ui-progress-bar.mjs +440 -0
  111. package/fesm2022/tectra-ng-ui-progress-bar.mjs.map +1 -0
  112. package/fesm2022/tectra-ng-ui-progress-spinner.mjs +265 -0
  113. package/fesm2022/tectra-ng-ui-progress-spinner.mjs.map +1 -0
  114. package/fesm2022/tectra-ng-ui-radio-button.mjs +817 -0
  115. package/fesm2022/tectra-ng-ui-radio-button.mjs.map +1 -0
  116. package/fesm2022/tectra-ng-ui-rating.mjs +584 -0
  117. package/fesm2022/tectra-ng-ui-rating.mjs.map +1 -0
  118. package/fesm2022/tectra-ng-ui-select.mjs +2478 -0
  119. package/fesm2022/tectra-ng-ui-select.mjs.map +1 -0
  120. package/fesm2022/tectra-ng-ui-skeleton.mjs +548 -0
  121. package/fesm2022/tectra-ng-ui-skeleton.mjs.map +1 -0
  122. package/fesm2022/tectra-ng-ui-slider.mjs +630 -0
  123. package/fesm2022/tectra-ng-ui-slider.mjs.map +1 -0
  124. package/fesm2022/tectra-ng-ui-speed-dial.mjs +669 -0
  125. package/fesm2022/tectra-ng-ui-speed-dial.mjs.map +1 -0
  126. package/fesm2022/tectra-ng-ui-split-button.mjs +614 -0
  127. package/fesm2022/tectra-ng-ui-split-button.mjs.map +1 -0
  128. package/fesm2022/tectra-ng-ui-status-icon.mjs +295 -0
  129. package/fesm2022/tectra-ng-ui-status-icon.mjs.map +1 -0
  130. package/fesm2022/tectra-ng-ui-table.mjs +5997 -0
  131. package/fesm2022/tectra-ng-ui-table.mjs.map +1 -0
  132. package/fesm2022/tectra-ng-ui-tag.mjs +422 -0
  133. package/fesm2022/tectra-ng-ui-tag.mjs.map +1 -0
  134. package/fesm2022/tectra-ng-ui-textarea.mjs +482 -0
  135. package/fesm2022/tectra-ng-ui-textarea.mjs.map +1 -0
  136. package/fesm2022/tectra-ng-ui-toast.mjs +668 -0
  137. package/fesm2022/tectra-ng-ui-toast.mjs.map +1 -0
  138. package/fesm2022/tectra-ng-ui-toggle-button.mjs +416 -0
  139. package/fesm2022/tectra-ng-ui-toggle-button.mjs.map +1 -0
  140. package/fesm2022/tectra-ng-ui-toggle-switch.mjs +560 -0
  141. package/fesm2022/tectra-ng-ui-toggle-switch.mjs.map +1 -0
  142. package/fesm2022/tectra-ng-ui-tooltip.mjs +835 -0
  143. package/fesm2022/tectra-ng-ui-tooltip.mjs.map +1 -0
  144. package/fesm2022/tectra-ng-ui-tree-select.mjs +986 -0
  145. package/fesm2022/tectra-ng-ui-tree-select.mjs.map +1 -0
  146. package/fesm2022/tectra-ng-ui.mjs +4 -0
  147. package/fesm2022/tectra-ng-ui.mjs.map +1 -0
  148. package/field/README.md +43 -0
  149. package/fieldset/README.md +36 -0
  150. package/highlight-text/README.md +20 -0
  151. package/icon-field/README.md +30 -0
  152. package/input/README.md +22 -0
  153. package/input-group/README.md +21 -0
  154. package/input-mask/README.md +30 -0
  155. package/input-number/README.md +61 -0
  156. package/input-otp/README.md +44 -0
  157. package/key-filter/README.md +31 -0
  158. package/knob/README.md +50 -0
  159. package/label/README.md +29 -0
  160. package/link/README.md +47 -0
  161. package/listbox/README.md +68 -0
  162. package/mention-textarea/README.md +47 -0
  163. package/menu/README.md +65 -0
  164. package/message/README.md +58 -0
  165. package/multiselect/README.md +85 -0
  166. package/overlay-badge/README.md +30 -0
  167. package/package.json +301 -3
  168. package/paginator/README.md +60 -0
  169. package/panel/README.md +45 -0
  170. package/password/README.md +60 -0
  171. package/password-generator/README.md +34 -0
  172. package/pill/README.md +42 -0
  173. package/popover/README.md +67 -0
  174. package/progress-bar/README.md +32 -0
  175. package/progress-spinner/README.md +22 -0
  176. package/radio-button/README.md +54 -0
  177. package/rating/README.md +49 -0
  178. package/select/README.md +78 -0
  179. package/skeleton/README.md +27 -0
  180. package/slider/README.md +48 -0
  181. package/speed-dial/README.md +49 -0
  182. package/split-button/README.md +45 -0
  183. package/status-icon/README.md +22 -0
  184. package/table/README.md +178 -0
  185. package/tag/README.md +42 -0
  186. package/textarea/README.md +37 -0
  187. package/toast/README.md +52 -0
  188. package/toggle-button/README.md +34 -0
  189. package/toggle-switch/README.md +49 -0
  190. package/tooltip/README.md +60 -0
  191. package/tree-select/README.md +49 -0
  192. package/types/tectra-ng-ui-amount.d.ts +135 -0
  193. package/types/tectra-ng-ui-amount.d.ts.map +1 -0
  194. package/types/tectra-ng-ui-autocomplete.d.ts +250 -0
  195. package/types/tectra-ng-ui-autocomplete.d.ts.map +1 -0
  196. package/types/tectra-ng-ui-avatar.d.ts +289 -0
  197. package/types/tectra-ng-ui-avatar.d.ts.map +1 -0
  198. package/types/tectra-ng-ui-badge.d.ts +119 -0
  199. package/types/tectra-ng-ui-badge.d.ts.map +1 -0
  200. package/types/tectra-ng-ui-button-group.d.ts +6 -0
  201. package/types/tectra-ng-ui-button-group.d.ts.map +1 -0
  202. package/types/tectra-ng-ui-button.d.ts +466 -0
  203. package/types/tectra-ng-ui-button.d.ts.map +1 -0
  204. package/types/tectra-ng-ui-card.d.ts +71 -0
  205. package/types/tectra-ng-ui-card.d.ts.map +1 -0
  206. package/types/tectra-ng-ui-cascade-select.d.ts +244 -0
  207. package/types/tectra-ng-ui-cascade-select.d.ts.map +1 -0
  208. package/types/tectra-ng-ui-checkbox.d.ts +450 -0
  209. package/types/tectra-ng-ui-checkbox.d.ts.map +1 -0
  210. package/types/tectra-ng-ui-chip.d.ts +106 -0
  211. package/types/tectra-ng-ui-chip.d.ts.map +1 -0
  212. package/types/tectra-ng-ui-chips-input.d.ts +187 -0
  213. package/types/tectra-ng-ui-chips-input.d.ts.map +1 -0
  214. package/types/tectra-ng-ui-color-picker.d.ts +237 -0
  215. package/types/tectra-ng-ui-color-picker.d.ts.map +1 -0
  216. package/types/tectra-ng-ui-confirm.d.ts +80 -0
  217. package/types/tectra-ng-ui-confirm.d.ts.map +1 -0
  218. package/types/tectra-ng-ui-country-select.d.ts +235 -0
  219. package/types/tectra-ng-ui-country-select.d.ts.map +1 -0
  220. package/types/tectra-ng-ui-country.d.ts +105 -0
  221. package/types/tectra-ng-ui-country.d.ts.map +1 -0
  222. package/types/tectra-ng-ui-dialog.d.ts +453 -0
  223. package/types/tectra-ng-ui-dialog.d.ts.map +1 -0
  224. package/types/tectra-ng-ui-divider.d.ts +70 -0
  225. package/types/tectra-ng-ui-divider.d.ts.map +1 -0
  226. package/types/tectra-ng-ui-drawer.d.ts +188 -0
  227. package/types/tectra-ng-ui-drawer.d.ts.map +1 -0
  228. package/types/tectra-ng-ui-email-suggestion.d.ts +84 -0
  229. package/types/tectra-ng-ui-email-suggestion.d.ts.map +1 -0
  230. package/types/tectra-ng-ui-field.d.ts +139 -0
  231. package/types/tectra-ng-ui-field.d.ts.map +1 -0
  232. package/types/tectra-ng-ui-fieldset.d.ts +74 -0
  233. package/types/tectra-ng-ui-fieldset.d.ts.map +1 -0
  234. package/types/tectra-ng-ui-highlight-text.d.ts +75 -0
  235. package/types/tectra-ng-ui-highlight-text.d.ts.map +1 -0
  236. package/types/tectra-ng-ui-icon-field.d.ts +77 -0
  237. package/types/tectra-ng-ui-icon-field.d.ts.map +1 -0
  238. package/types/tectra-ng-ui-input-group.d.ts +18 -0
  239. package/types/tectra-ng-ui-input-group.d.ts.map +1 -0
  240. package/types/tectra-ng-ui-input-mask.d.ts +91 -0
  241. package/types/tectra-ng-ui-input-mask.d.ts.map +1 -0
  242. package/types/tectra-ng-ui-input-number.d.ts +326 -0
  243. package/types/tectra-ng-ui-input-number.d.ts.map +1 -0
  244. package/types/tectra-ng-ui-input-otp.d.ts +173 -0
  245. package/types/tectra-ng-ui-input-otp.d.ts.map +1 -0
  246. package/types/tectra-ng-ui-input.d.ts +113 -0
  247. package/types/tectra-ng-ui-input.d.ts.map +1 -0
  248. package/types/tectra-ng-ui-key-filter.d.ts +43 -0
  249. package/types/tectra-ng-ui-key-filter.d.ts.map +1 -0
  250. package/types/tectra-ng-ui-knob.d.ts +207 -0
  251. package/types/tectra-ng-ui-knob.d.ts.map +1 -0
  252. package/types/tectra-ng-ui-label.d.ts +53 -0
  253. package/types/tectra-ng-ui-label.d.ts.map +1 -0
  254. package/types/tectra-ng-ui-link.d.ts +223 -0
  255. package/types/tectra-ng-ui-link.d.ts.map +1 -0
  256. package/types/tectra-ng-ui-listbox.d.ts +131 -0
  257. package/types/tectra-ng-ui-listbox.d.ts.map +1 -0
  258. package/types/tectra-ng-ui-mention-textarea.d.ts +169 -0
  259. package/types/tectra-ng-ui-mention-textarea.d.ts.map +1 -0
  260. package/types/tectra-ng-ui-menu.d.ts +512 -0
  261. package/types/tectra-ng-ui-menu.d.ts.map +1 -0
  262. package/types/tectra-ng-ui-message.d.ts +390 -0
  263. package/types/tectra-ng-ui-message.d.ts.map +1 -0
  264. package/types/tectra-ng-ui-multiselect.d.ts +216 -0
  265. package/types/tectra-ng-ui-multiselect.d.ts.map +1 -0
  266. package/types/tectra-ng-ui-overlay-badge.d.ts +104 -0
  267. package/types/tectra-ng-ui-overlay-badge.d.ts.map +1 -0
  268. package/types/tectra-ng-ui-paginator.d.ts +293 -0
  269. package/types/tectra-ng-ui-paginator.d.ts.map +1 -0
  270. package/types/tectra-ng-ui-panel.d.ts +133 -0
  271. package/types/tectra-ng-ui-panel.d.ts.map +1 -0
  272. package/types/tectra-ng-ui-password-generator.d.ts +80 -0
  273. package/types/tectra-ng-ui-password-generator.d.ts.map +1 -0
  274. package/types/tectra-ng-ui-password.d.ts +271 -0
  275. package/types/tectra-ng-ui-password.d.ts.map +1 -0
  276. package/types/tectra-ng-ui-pill.d.ts +167 -0
  277. package/types/tectra-ng-ui-pill.d.ts.map +1 -0
  278. package/types/tectra-ng-ui-popover.d.ts +244 -0
  279. package/types/tectra-ng-ui-popover.d.ts.map +1 -0
  280. package/types/tectra-ng-ui-progress-bar.d.ts +151 -0
  281. package/types/tectra-ng-ui-progress-bar.d.ts.map +1 -0
  282. package/types/tectra-ng-ui-progress-spinner.d.ts +95 -0
  283. package/types/tectra-ng-ui-progress-spinner.d.ts.map +1 -0
  284. package/types/tectra-ng-ui-radio-button.d.ts +380 -0
  285. package/types/tectra-ng-ui-radio-button.d.ts.map +1 -0
  286. package/types/tectra-ng-ui-rating.d.ts +195 -0
  287. package/types/tectra-ng-ui-rating.d.ts.map +1 -0
  288. package/types/tectra-ng-ui-select.d.ts +761 -0
  289. package/types/tectra-ng-ui-select.d.ts.map +1 -0
  290. package/types/tectra-ng-ui-skeleton.d.ts +182 -0
  291. package/types/tectra-ng-ui-skeleton.d.ts.map +1 -0
  292. package/types/tectra-ng-ui-slider.d.ts +220 -0
  293. package/types/tectra-ng-ui-slider.d.ts.map +1 -0
  294. package/types/tectra-ng-ui-speed-dial.d.ts +175 -0
  295. package/types/tectra-ng-ui-speed-dial.d.ts.map +1 -0
  296. package/types/tectra-ng-ui-split-button.d.ts +139 -0
  297. package/types/tectra-ng-ui-split-button.d.ts.map +1 -0
  298. package/types/tectra-ng-ui-status-icon.d.ts +105 -0
  299. package/types/tectra-ng-ui-status-icon.d.ts.map +1 -0
  300. package/types/tectra-ng-ui-table.d.ts +1301 -0
  301. package/types/tectra-ng-ui-table.d.ts.map +1 -0
  302. package/types/tectra-ng-ui-tag.d.ts +157 -0
  303. package/types/tectra-ng-ui-tag.d.ts.map +1 -0
  304. package/types/tectra-ng-ui-textarea.d.ts +146 -0
  305. package/types/tectra-ng-ui-textarea.d.ts.map +1 -0
  306. package/types/tectra-ng-ui-toast.d.ts +268 -0
  307. package/types/tectra-ng-ui-toast.d.ts.map +1 -0
  308. package/types/tectra-ng-ui-toggle-button.d.ts +184 -0
  309. package/types/tectra-ng-ui-toggle-button.d.ts.map +1 -0
  310. package/types/tectra-ng-ui-toggle-switch.d.ts +226 -0
  311. package/types/tectra-ng-ui-toggle-switch.d.ts.map +1 -0
  312. package/types/tectra-ng-ui-tooltip.d.ts +275 -0
  313. package/types/tectra-ng-ui-tooltip.d.ts.map +1 -0
  314. package/types/tectra-ng-ui-tree-select.d.ts +339 -0
  315. package/types/tectra-ng-ui-tree-select.d.ts.map +1 -0
  316. package/types/tectra-ng-ui.d.ts +2 -0
  317. package/types/tectra-ng-ui.d.ts.map +1 -0
@@ -0,0 +1,478 @@
1
+ import * as i0 from "@angular/core";
2
+ import { ChangeDetectionStrategy, Component, DestroyRef, ElementRef, afterNextRender, computed, contentChild, inject, input, output, signal, viewChild } from "@angular/core";
3
+ import { NgControl } from "@angular/forms";
4
+ import { injectFluid } from "@tectra-ng/core/fluid";
5
+ import { optionalBoolean } from "@tectra-ng/core/utils";
6
+ import { TxInput } from "@tectra-ng/ui/input";
7
+ import { TxIcon, TxIconRegistry } from "@tectra-ng/icons";
8
+ import { injectTranslations } from "@tectra-ng/core/i18n";
9
+ var TxIconField = class TxIconField {
10
+ destroyRef = inject(DestroyRef);
11
+ fluid = input(void 0, {
12
+ ...ngDevMode ? { debugName: "fluid" } : /* istanbul ignore next */ {},
13
+ transform: optionalBoolean
14
+ });
15
+ input = contentChild(TxInput, {
16
+ ...ngDevMode ? { debugName: "input" } : /* istanbul ignore next */ {},
17
+ read: ElementRef
18
+ });
19
+ inputDirective = contentChild(TxInput, ...ngDevMode ? [{ debugName: "inputDirective" }] : /* istanbul ignore next */ []);
20
+ control = contentChild(NgControl, ...ngDevMode ? [{ debugName: "control" }] : /* istanbul ignore next */ []);
21
+ start = viewChild.required("start", ...ngDevMode ? [{ debugName: "start" }] : /* istanbul ignore next */ []);
22
+ end = viewChild.required("end", ...ngDevMode ? [{ debugName: "end" }] : /* istanbul ignore next */ []);
23
+ isFluid = injectFluid(this.fluid);
24
+ startInset = signal(0, ...ngDevMode ? [{ debugName: "startInset" }] : /* istanbul ignore next */ []);
25
+ endInset = signal(0, ...ngDevMode ? [{ debugName: "endInset" }] : /* istanbul ignore next */ []);
26
+ hasValue = signal(false, ...ngDevMode ? [{ debugName: "hasValue" }] : /* istanbul ignore next */ []);
27
+ isEditable = signal(true, ...ngDevMode ? [{ debugName: "isEditable" }] : /* istanbul ignore next */ []);
28
+ constructor() {
29
+ afterNextRender(() => {
30
+ this.watchInsets();
31
+ this.watchValue();
32
+ });
33
+ }
34
+ value() {
35
+ return this.input()?.nativeElement?.value ?? "";
36
+ }
37
+ clear() {
38
+ const element = this.input()?.nativeElement;
39
+ if (!element) return;
40
+ const control = this.control()?.control;
41
+ if (control) {
42
+ control.setValue("");
43
+ control.markAsDirty();
44
+ } else {
45
+ element.value = "";
46
+ element.dispatchEvent(new Event("input", { bubbles: true }));
47
+ }
48
+ this.hasValue.set(false);
49
+ element.focus();
50
+ }
51
+ watchInsets() {
52
+ if (typeof ResizeObserver === "undefined") return;
53
+ const measure = () => {
54
+ this.startInset.set(this.inset(this.start().nativeElement));
55
+ this.endInset.set(this.inset(this.end().nativeElement));
56
+ };
57
+ const observer = new ResizeObserver(measure);
58
+ observer.observe(this.start().nativeElement);
59
+ observer.observe(this.end().nativeElement);
60
+ measure();
61
+ this.destroyRef.onDestroy(() => observer.disconnect());
62
+ }
63
+ watchValue() {
64
+ const element = this.input()?.nativeElement;
65
+ if (!element) return;
66
+ const update = () => {
67
+ this.hasValue.set(!!element.value);
68
+ this.isEditable.set(!element.disabled && !element.readOnly);
69
+ };
70
+ element.addEventListener("input", update);
71
+ const subscription = this.control()?.control?.events.subscribe(() => queueMicrotask(update));
72
+ this.destroyRef.onDestroy(() => {
73
+ element.removeEventListener("input", update);
74
+ subscription?.unsubscribe();
75
+ });
76
+ update();
77
+ }
78
+ inset(container) {
79
+ const width = container.getBoundingClientRect().width;
80
+ return width ? Math.round(width + 6) : 0;
81
+ }
82
+ static ɵfac = i0.ɵɵngDeclareFactory({
83
+ minVersion: "12.0.0",
84
+ version: "22.2.3",
85
+ ngImport: i0,
86
+ type: TxIconField,
87
+ deps: [],
88
+ target: i0.ɵɵFactoryTarget.Component
89
+ });
90
+ static ɵcmp = i0.ɵɵngDeclareComponent({
91
+ minVersion: "17.2.0",
92
+ version: "22.2.3",
93
+ type: TxIconField,
94
+ isStandalone: true,
95
+ selector: "tx-icon-field",
96
+ inputs: { fluid: {
97
+ classPropertyName: "fluid",
98
+ publicName: "fluid",
99
+ isSignal: true,
100
+ isRequired: false,
101
+ transformFunction: null
102
+ } },
103
+ host: {
104
+ properties: {
105
+ "class.tx-icon-field--fluid": "isFluid()",
106
+ "style.--tx-field-inset-start": "startInset() + \"px\"",
107
+ "style.--tx-field-inset-end": "endInset() + \"px\""
108
+ },
109
+ classAttribute: "tx-icon-field"
110
+ },
111
+ queries: [
112
+ {
113
+ propertyName: "input",
114
+ first: true,
115
+ predicate: TxInput,
116
+ descendants: true,
117
+ read: ElementRef,
118
+ isSignal: true
119
+ },
120
+ {
121
+ propertyName: "inputDirective",
122
+ first: true,
123
+ predicate: TxInput,
124
+ descendants: true,
125
+ isSignal: true
126
+ },
127
+ {
128
+ propertyName: "control",
129
+ first: true,
130
+ predicate: NgControl,
131
+ descendants: true,
132
+ isSignal: true
133
+ }
134
+ ],
135
+ viewQueries: [{
136
+ propertyName: "start",
137
+ first: true,
138
+ predicate: ["start"],
139
+ descendants: true,
140
+ isSignal: true
141
+ }, {
142
+ propertyName: "end",
143
+ first: true,
144
+ predicate: ["end"],
145
+ descendants: true,
146
+ isSignal: true
147
+ }],
148
+ ngImport: i0,
149
+ template: "<span #start class=\"tx-icon-field__slot tx-icon-field__slot--start\"><ng-content select=\"tx-input-icon:not([position=end])\" /></span>\n<ng-content />\n<span #end class=\"tx-icon-field__slot tx-icon-field__slot--end\"><ng-content select=\"tx-input-icon[position=end], tx-input-clear, tx-input-copy\" /></span>\n",
150
+ styles: [":host{position:relative;display:inline-flex;align-items:stretch;max-width:100%}:host(.tx-icon-field--fluid){display:flex;width:100%}.tx-icon-field__slot{position:absolute;top:50%;z-index:1;display:flex;align-items:center;gap:4px;transform:translateY(-50%);pointer-events:none}.tx-icon-field__slot:empty{display:none}.tx-icon-field__slot--start{left:var(--tx-form-field-padding-x)}.tx-icon-field__slot--end{right:calc(var(--tx-form-field-padding-x) - 4px)}\n"],
151
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
152
+ });
153
+ };
154
+ i0.ɵɵngDeclareClassMetadata({
155
+ minVersion: "12.0.0",
156
+ version: "22.2.3",
157
+ ngImport: i0,
158
+ type: TxIconField,
159
+ decorators: [{
160
+ type: Component,
161
+ args: [{
162
+ selector: "tx-icon-field",
163
+ changeDetection: ChangeDetectionStrategy.OnPush,
164
+ host: {
165
+ class: "tx-icon-field",
166
+ "[class.tx-icon-field--fluid]": "isFluid()",
167
+ "[style.--tx-field-inset-start]": "startInset() + \"px\"",
168
+ "[style.--tx-field-inset-end]": "endInset() + \"px\""
169
+ },
170
+ template: "<span #start class=\"tx-icon-field__slot tx-icon-field__slot--start\"><ng-content select=\"tx-input-icon:not([position=end])\" /></span>\n<ng-content />\n<span #end class=\"tx-icon-field__slot tx-icon-field__slot--end\"><ng-content select=\"tx-input-icon[position=end], tx-input-clear, tx-input-copy\" /></span>\n",
171
+ styles: [":host{position:relative;display:inline-flex;align-items:stretch;max-width:100%}:host(.tx-icon-field--fluid){display:flex;width:100%}.tx-icon-field__slot{position:absolute;top:50%;z-index:1;display:flex;align-items:center;gap:4px;transform:translateY(-50%);pointer-events:none}.tx-icon-field__slot:empty{display:none}.tx-icon-field__slot--start{left:var(--tx-form-field-padding-x)}.tx-icon-field__slot--end{right:calc(var(--tx-form-field-padding-x) - 4px)}\n"]
172
+ }]
173
+ }],
174
+ ctorParameters: () => [],
175
+ propDecorators: {
176
+ fluid: [{
177
+ type: i0.Input,
178
+ args: [{
179
+ isSignal: true,
180
+ alias: "fluid",
181
+ required: false
182
+ }]
183
+ }],
184
+ input: [{
185
+ type: i0.ContentChild,
186
+ args: [i0.forwardRef(() => TxInput), {
187
+ read: ElementRef,
188
+ isSignal: true
189
+ }]
190
+ }],
191
+ inputDirective: [{
192
+ type: i0.ContentChild,
193
+ args: [i0.forwardRef(() => TxInput), { isSignal: true }]
194
+ }],
195
+ control: [{
196
+ type: i0.ContentChild,
197
+ args: [i0.forwardRef(() => NgControl), { isSignal: true }]
198
+ }],
199
+ start: [{
200
+ type: i0.ViewChild,
201
+ args: ["start", { isSignal: true }]
202
+ }],
203
+ end: [{
204
+ type: i0.ViewChild,
205
+ args: ["end", { isSignal: true }]
206
+ }]
207
+ }
208
+ });
209
+ var TxInputIcon = class TxInputIcon {
210
+ txIconRegistry = inject(TxIconRegistry);
211
+ icon = input(void 0, ...ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []);
212
+ position = input("start", ...ngDevMode ? [{ debugName: "position" }] : /* istanbul ignore next */ []);
213
+ iconName = computed(() => {
214
+ const icon = this.icon();
215
+ return this.txIconRegistry.has(icon) ? icon : null;
216
+ }, ...ngDevMode ? [{ debugName: "iconName" }] : /* istanbul ignore next */ []);
217
+ static ɵfac = i0.ɵɵngDeclareFactory({
218
+ minVersion: "12.0.0",
219
+ version: "22.2.3",
220
+ ngImport: i0,
221
+ type: TxInputIcon,
222
+ deps: [],
223
+ target: i0.ɵɵFactoryTarget.Component
224
+ });
225
+ static ɵcmp = i0.ɵɵngDeclareComponent({
226
+ minVersion: "17.0.0",
227
+ version: "22.2.3",
228
+ type: TxInputIcon,
229
+ isStandalone: true,
230
+ selector: "tx-input-icon",
231
+ inputs: {
232
+ icon: {
233
+ classPropertyName: "icon",
234
+ publicName: "icon",
235
+ isSignal: true,
236
+ isRequired: false,
237
+ transformFunction: null
238
+ },
239
+ position: {
240
+ classPropertyName: "position",
241
+ publicName: "position",
242
+ isSignal: true,
243
+ isRequired: false,
244
+ transformFunction: null
245
+ }
246
+ },
247
+ host: {
248
+ attributes: { "aria-hidden": "true" },
249
+ classAttribute: "tx-input-icon"
250
+ },
251
+ ngImport: i0,
252
+ template: `
253
+ @if (iconName(); as name) {
254
+ <tx-icon [name]="name" />
255
+ } @else if (icon()) {
256
+ <span [class]="icon()"></span>
257
+ }
258
+ <ng-content />
259
+ `,
260
+ isInline: true,
261
+ styles: [":host{display:inline-flex;align-items:center;color:var(--tx-form-field-icon-color);font-family:var(--tx-font-family);font-size:var(--tx-form-field-font-size);font-weight:var(--tx-font-weight-medium);line-height:1;white-space:nowrap}\n"],
262
+ dependencies: [{
263
+ kind: "component",
264
+ type: TxIcon,
265
+ selector: "tx-icon",
266
+ inputs: ["name"]
267
+ }],
268
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
269
+ });
270
+ };
271
+ i0.ɵɵngDeclareClassMetadata({
272
+ minVersion: "12.0.0",
273
+ version: "22.2.3",
274
+ ngImport: i0,
275
+ type: TxInputIcon,
276
+ decorators: [{
277
+ type: Component,
278
+ args: [{
279
+ selector: "tx-input-icon",
280
+ imports: [TxIcon],
281
+ template: `
282
+ @if (iconName(); as name) {
283
+ <tx-icon [name]="name" />
284
+ } @else if (icon()) {
285
+ <span [class]="icon()"></span>
286
+ }
287
+ <ng-content />
288
+ `,
289
+ changeDetection: ChangeDetectionStrategy.OnPush,
290
+ host: {
291
+ class: "tx-input-icon",
292
+ "aria-hidden": "true"
293
+ },
294
+ styles: [":host{display:inline-flex;align-items:center;color:var(--tx-form-field-icon-color);font-family:var(--tx-font-family);font-size:var(--tx-form-field-font-size);font-weight:var(--tx-font-weight-medium);line-height:1;white-space:nowrap}\n"]
295
+ }]
296
+ }],
297
+ propDecorators: {
298
+ icon: [{
299
+ type: i0.Input,
300
+ args: [{
301
+ isSignal: true,
302
+ alias: "icon",
303
+ required: false
304
+ }]
305
+ }],
306
+ position: [{
307
+ type: i0.Input,
308
+ args: [{
309
+ isSignal: true,
310
+ alias: "position",
311
+ required: false
312
+ }]
313
+ }]
314
+ }
315
+ });
316
+ var TxInputClear = class TxInputClear {
317
+ field = inject(TxIconField);
318
+ translations = injectTranslations();
319
+ cleared = output();
320
+ clear() {
321
+ this.field.clear();
322
+ this.cleared.emit();
323
+ }
324
+ static ɵfac = i0.ɵɵngDeclareFactory({
325
+ minVersion: "12.0.0",
326
+ version: "22.2.3",
327
+ ngImport: i0,
328
+ type: TxInputClear,
329
+ deps: [],
330
+ target: i0.ɵɵFactoryTarget.Component
331
+ });
332
+ static ɵcmp = i0.ɵɵngDeclareComponent({
333
+ minVersion: "17.0.0",
334
+ version: "22.2.3",
335
+ type: TxInputClear,
336
+ isStandalone: true,
337
+ selector: "tx-input-clear",
338
+ outputs: { cleared: "cleared" },
339
+ host: { classAttribute: "tx-input-clear" },
340
+ ngImport: i0,
341
+ template: `
342
+ @if (field.hasValue() && field.isEditable()) {
343
+ <button type="button" class="tx-input-action" [attr.aria-label]="translations().clear" [title]="translations().clear" (click)="clear()">
344
+ <tx-icon [name]="'times'" />
345
+ </button>
346
+ }
347
+ `,
348
+ isInline: true,
349
+ styles: [":host{display:inline-flex}button{display:grid;place-items:center;width:24px;height:24px;padding:0;border:none;border-radius:var(--tx-radius-sm);background:transparent;color:var(--tx-form-field-icon-color);font-size:var(--tx-form-field-font-size);cursor:pointer;pointer-events:auto;transition:background-color var(--tx-form-field-transition-duration),color var(--tx-form-field-transition-duration)}button:hover{background:var(--tx-surface-hover);color:var(--tx-form-field-color)}button:focus-visible{outline:2px solid var(--tx-focus-ring-color);outline-offset:1px}.tx-input-action--done{color:var(--tx-success-base)}\n"],
350
+ dependencies: [{
351
+ kind: "component",
352
+ type: TxIcon,
353
+ selector: "tx-icon",
354
+ inputs: ["name"]
355
+ }],
356
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
357
+ });
358
+ };
359
+ i0.ɵɵngDeclareClassMetadata({
360
+ minVersion: "12.0.0",
361
+ version: "22.2.3",
362
+ ngImport: i0,
363
+ type: TxInputClear,
364
+ decorators: [{
365
+ type: Component,
366
+ args: [{
367
+ selector: "tx-input-clear",
368
+ imports: [TxIcon],
369
+ template: `
370
+ @if (field.hasValue() && field.isEditable()) {
371
+ <button type="button" class="tx-input-action" [attr.aria-label]="translations().clear" [title]="translations().clear" (click)="clear()">
372
+ <tx-icon [name]="'times'" />
373
+ </button>
374
+ }
375
+ `,
376
+ changeDetection: ChangeDetectionStrategy.OnPush,
377
+ host: { class: "tx-input-clear" },
378
+ styles: [":host{display:inline-flex}button{display:grid;place-items:center;width:24px;height:24px;padding:0;border:none;border-radius:var(--tx-radius-sm);background:transparent;color:var(--tx-form-field-icon-color);font-size:var(--tx-form-field-font-size);cursor:pointer;pointer-events:auto;transition:background-color var(--tx-form-field-transition-duration),color var(--tx-form-field-transition-duration)}button:hover{background:var(--tx-surface-hover);color:var(--tx-form-field-color)}button:focus-visible{outline:2px solid var(--tx-focus-ring-color);outline-offset:1px}.tx-input-action--done{color:var(--tx-success-base)}\n"]
379
+ }]
380
+ }],
381
+ propDecorators: { cleared: [{
382
+ type: i0.Output,
383
+ args: ["cleared"]
384
+ }] }
385
+ });
386
+ var TxInputCopy = class TxInputCopy {
387
+ field = inject(TxIconField);
388
+ timer = null;
389
+ translations = injectTranslations();
390
+ isCopied = signal(false, ...ngDevMode ? [{ debugName: "isCopied" }] : /* istanbul ignore next */ []);
391
+ copied = output();
392
+ constructor() {
393
+ inject(DestroyRef).onDestroy(() => this.timer && clearTimeout(this.timer));
394
+ }
395
+ copy() {
396
+ const value = this.field.value();
397
+ navigator.clipboard?.writeText(value);
398
+ this.isCopied.set(true);
399
+ this.copied.emit(value);
400
+ if (this.timer) clearTimeout(this.timer);
401
+ this.timer = setTimeout(() => this.isCopied.set(false), 1500);
402
+ }
403
+ static ɵfac = i0.ɵɵngDeclareFactory({
404
+ minVersion: "12.0.0",
405
+ version: "22.2.3",
406
+ ngImport: i0,
407
+ type: TxInputCopy,
408
+ deps: [],
409
+ target: i0.ɵɵFactoryTarget.Component
410
+ });
411
+ static ɵcmp = i0.ɵɵngDeclareComponent({
412
+ minVersion: "14.0.0",
413
+ version: "22.2.3",
414
+ type: TxInputCopy,
415
+ isStandalone: true,
416
+ selector: "tx-input-copy",
417
+ outputs: { copied: "copied" },
418
+ host: { classAttribute: "tx-input-copy" },
419
+ ngImport: i0,
420
+ template: `
421
+ <button
422
+ type="button"
423
+ class="tx-input-action"
424
+ [class.tx-input-action--done]="isCopied()"
425
+ [attr.aria-label]="isCopied() ? translations().copied : translations().copy"
426
+ [title]="isCopied() ? translations().copied : translations().copy"
427
+ (click)="copy()"
428
+ >
429
+ <tx-icon [name]="isCopied() ? 'check' : 'copy'" />
430
+ </button>
431
+ `,
432
+ isInline: true,
433
+ styles: [":host{display:inline-flex}button{display:grid;place-items:center;width:24px;height:24px;padding:0;border:none;border-radius:var(--tx-radius-sm);background:transparent;color:var(--tx-form-field-icon-color);font-size:var(--tx-form-field-font-size);cursor:pointer;pointer-events:auto;transition:background-color var(--tx-form-field-transition-duration),color var(--tx-form-field-transition-duration)}button:hover{background:var(--tx-surface-hover);color:var(--tx-form-field-color)}button:focus-visible{outline:2px solid var(--tx-focus-ring-color);outline-offset:1px}.tx-input-action--done{color:var(--tx-success-base)}\n"],
434
+ dependencies: [{
435
+ kind: "component",
436
+ type: TxIcon,
437
+ selector: "tx-icon",
438
+ inputs: ["name"]
439
+ }],
440
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
441
+ });
442
+ };
443
+ i0.ɵɵngDeclareClassMetadata({
444
+ minVersion: "12.0.0",
445
+ version: "22.2.3",
446
+ ngImport: i0,
447
+ type: TxInputCopy,
448
+ decorators: [{
449
+ type: Component,
450
+ args: [{
451
+ selector: "tx-input-copy",
452
+ imports: [TxIcon],
453
+ template: `
454
+ <button
455
+ type="button"
456
+ class="tx-input-action"
457
+ [class.tx-input-action--done]="isCopied()"
458
+ [attr.aria-label]="isCopied() ? translations().copied : translations().copy"
459
+ [title]="isCopied() ? translations().copied : translations().copy"
460
+ (click)="copy()"
461
+ >
462
+ <tx-icon [name]="isCopied() ? 'check' : 'copy'" />
463
+ </button>
464
+ `,
465
+ changeDetection: ChangeDetectionStrategy.OnPush,
466
+ host: { class: "tx-input-copy" },
467
+ styles: [":host{display:inline-flex}button{display:grid;place-items:center;width:24px;height:24px;padding:0;border:none;border-radius:var(--tx-radius-sm);background:transparent;color:var(--tx-form-field-icon-color);font-size:var(--tx-form-field-font-size);cursor:pointer;pointer-events:auto;transition:background-color var(--tx-form-field-transition-duration),color var(--tx-form-field-transition-duration)}button:hover{background:var(--tx-surface-hover);color:var(--tx-form-field-color)}button:focus-visible{outline:2px solid var(--tx-focus-ring-color);outline-offset:1px}.tx-input-action--done{color:var(--tx-success-base)}\n"]
468
+ }]
469
+ }],
470
+ ctorParameters: () => [],
471
+ propDecorators: { copied: [{
472
+ type: i0.Output,
473
+ args: ["copied"]
474
+ }] }
475
+ });
476
+ export { TxIconField, TxInputClear, TxInputCopy, TxInputIcon };
477
+
478
+ //# sourceMappingURL=tectra-ng-ui-icon-field.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tectra-ng-ui-icon-field.mjs","names":[],"sources":["../../../../packages/ui/icon-field/src/icon-field.component.ts","../../../../packages/ui/icon-field/src/icon-field.component.html","../../../../packages/ui/icon-field/src/input-icon.component.ts","../../../../packages/ui/icon-field/src/input-clear.component.ts","../../../../packages/ui/icon-field/src/input-copy.component.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n DestroyRef,\n ElementRef,\n afterNextRender,\n contentChild,\n inject,\n input,\n signal,\n viewChild,\n} from '@angular/core';\nimport { NgControl } from '@angular/forms';\nimport { injectFluid } from '@tectra-ng/core/fluid';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { TxInput } from '@tectra-ng/ui/input';\n\n@Component({\n selector: 'tx-icon-field',\n templateUrl: './icon-field.component.html',\n styleUrl: './icon-field.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-icon-field',\n '[class.tx-icon-field--fluid]': 'isFluid()',\n '[style.--tx-field-inset-start]': 'startInset() + \"px\"',\n '[style.--tx-field-inset-end]': 'endInset() + \"px\"',\n },\n})\nexport class TxIconField {\n private destroyRef = inject(DestroyRef);\n\n readonly fluid = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly input = contentChild(TxInput, { read: ElementRef });\n readonly inputDirective = contentChild(TxInput);\n readonly control = contentChild(NgControl);\n readonly start = viewChild.required<ElementRef<HTMLElement>>('start');\n readonly end = viewChild.required<ElementRef<HTMLElement>>('end');\n\n readonly isFluid = injectFluid(this.fluid);\n readonly startInset = signal(0);\n readonly endInset = signal(0);\n readonly hasValue = signal(false);\n readonly isEditable = signal(true);\n\n constructor() {\n afterNextRender(() => {\n this.watchInsets();\n this.watchValue();\n });\n }\n\n value(): string {\n return (this.input()?.nativeElement as HTMLInputElement | undefined)?.value ?? '';\n }\n\n clear(): void {\n const element = this.input()?.nativeElement as HTMLInputElement | undefined;\n if (!element) {\n return;\n }\n const control = this.control()?.control;\n if (control) {\n control.setValue('');\n control.markAsDirty();\n } else {\n element.value = '';\n element.dispatchEvent(new Event('input', { bubbles: true }));\n }\n this.hasValue.set(false);\n element.focus();\n }\n\n private watchInsets(): void {\n if (typeof ResizeObserver === 'undefined') {\n return;\n }\n const measure = () => {\n this.startInset.set(this.inset(this.start().nativeElement));\n this.endInset.set(this.inset(this.end().nativeElement));\n };\n const observer = new ResizeObserver(measure);\n observer.observe(this.start().nativeElement);\n observer.observe(this.end().nativeElement);\n measure();\n this.destroyRef.onDestroy(() => observer.disconnect());\n }\n\n private watchValue(): void {\n const element = this.input()?.nativeElement as HTMLInputElement | undefined;\n if (!element) {\n return;\n }\n const update = () => {\n this.hasValue.set(!!element.value);\n this.isEditable.set(!element.disabled && !element.readOnly);\n };\n element.addEventListener('input', update);\n const subscription = this.control()?.control?.events.subscribe(() => queueMicrotask(update));\n this.destroyRef.onDestroy(() => {\n element.removeEventListener('input', update);\n subscription?.unsubscribe();\n });\n update();\n }\n\n private inset(container: HTMLElement): number {\n const width = container.getBoundingClientRect().width;\n return width ? Math.round(width + 6) : 0;\n }\n}\n","<span #start class=\"tx-icon-field__slot tx-icon-field__slot--start\"><ng-content select=\"tx-input-icon:not([position=end])\" /></span>\n<ng-content />\n<span #end class=\"tx-icon-field__slot tx-icon-field__slot--end\"><ng-content select=\"tx-input-icon[position=end], tx-input-clear, tx-input-copy\" /></span>\n","import { ChangeDetectionStrategy, Component, computed, inject, input } from '@angular/core';\nimport { TxIcon, TxIconName, TxIconRegistry } from '@tectra-ng/icons';\nimport { TxInputIconPosition } from './icon-field.types';\n\n@Component({\n selector: 'tx-input-icon',\n imports: [TxIcon],\n template: `\n @if (iconName(); as name) {\n <tx-icon [name]=\"name\" />\n } @else if (icon()) {\n <span [class]=\"icon()\"></span>\n }\n <ng-content />\n `,\n styleUrl: './input-icon.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'tx-input-icon', 'aria-hidden': 'true' },\n})\nexport class TxInputIcon {\n private txIconRegistry = inject(TxIconRegistry);\n\n readonly icon = input<TxIconName | (string & {}) | undefined>(undefined);\n readonly position = input<TxInputIconPosition>('start');\n\n readonly iconName = computed(() => {\n const icon = this.icon();\n return this.txIconRegistry.has(icon) ? icon : null;\n });\n}\n","import { ChangeDetectionStrategy, Component, inject, output } from '@angular/core';\nimport { injectTranslations } from '@tectra-ng/core/i18n';\nimport { TxIcon } from '@tectra-ng/icons';\nimport { TxIconField } from './icon-field.component';\n\n@Component({\n selector: 'tx-input-clear',\n imports: [TxIcon],\n template: `\n @if (field.hasValue() && field.isEditable()) {\n <button type=\"button\" class=\"tx-input-action\" [attr.aria-label]=\"translations().clear\" [title]=\"translations().clear\" (click)=\"clear()\">\n <tx-icon [name]=\"'times'\" />\n </button>\n }\n `,\n styleUrl: './input-action.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'tx-input-clear' },\n})\nexport class TxInputClear {\n readonly field = inject(TxIconField);\n readonly translations = injectTranslations();\n\n readonly cleared = output<void>();\n\n clear(): void {\n this.field.clear();\n this.cleared.emit();\n }\n}\n","import { ChangeDetectionStrategy, Component, DestroyRef, inject, output, signal } from '@angular/core';\nimport { injectTranslations } from '@tectra-ng/core/i18n';\nimport { TxIcon } from '@tectra-ng/icons';\nimport { TxIconField } from './icon-field.component';\n\n@Component({\n selector: 'tx-input-copy',\n imports: [TxIcon],\n template: `\n <button\n type=\"button\"\n class=\"tx-input-action\"\n [class.tx-input-action--done]=\"isCopied()\"\n [attr.aria-label]=\"isCopied() ? translations().copied : translations().copy\"\n [title]=\"isCopied() ? translations().copied : translations().copy\"\n (click)=\"copy()\"\n >\n <tx-icon [name]=\"isCopied() ? 'check' : 'copy'\" />\n </button>\n `,\n styleUrl: './input-action.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'tx-input-copy' },\n})\nexport class TxInputCopy {\n private field = inject(TxIconField);\n private timer: ReturnType<typeof setTimeout> | null = null;\n\n readonly translations = injectTranslations();\n readonly isCopied = signal(false);\n\n readonly copied = output<string>();\n\n constructor() {\n inject(DestroyRef).onDestroy(() => this.timer && clearTimeout(this.timer));\n }\n\n copy(): void {\n const value = this.field.value();\n navigator.clipboard?.writeText(value);\n this.isCopied.set(true);\n this.copied.emit(value);\n if (this.timer) {\n clearTimeout(this.timer);\n }\n this.timer = setTimeout(() => this.isCopied.set(false), 1500);\n }\n}\n"],"mappings":";;;;;;;;AA6BA,IAAa,cAAb,MAAa,YAAW;CACd,aAAa,OAAO,UAAU;CAE7B,QAAQ,MAAoC,QAAS;E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AA,SAAA;EAAA,MAAA,EAAA,gBAAA,gBAAA;EAAA,UAAA;EAAA,UAhBZ;;;;;;;;;;;;EAWT,UAAA;EAAA,QAAA,CAAA,2mBAAA;EAAA,cAAA,CAAA;GAAA,MAAA;GAAA,MAZS;GAAM,UAAA;GAAA,QAAA,CAAA,MAAA;EAAA,CAAA;EAAA,iBAAA,GAAA,wBAAA;CAAA,CAAA;;AAiBL,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAW,YAAA,CAAA;EAnBvB,MAAA;EACW,MAAA,CAAA;GAAA,UAAA;GAAe,SAChB,CAAC,MAAM;GAAC,UACP;;;;;;;;;;;;GAWT,iBAEgB,wBAAwB;GAAM,MACzC,EAAE,OAAO,gBAAe;GAAE,QAAA,CAAA,2mBAAA;EAAA,CAAA"}
@@ -0,0 +1,113 @@
1
+ import * as i0 from "@angular/core";
2
+ import { ChangeDetectionStrategy, Component, input } from "@angular/core";
3
+ import { injectFluid } from "@tectra-ng/core/fluid";
4
+ import { optionalBoolean } from "@tectra-ng/core/utils";
5
+ var TxInputGroup = class TxInputGroup {
6
+ fluid = input(void 0, {
7
+ ...ngDevMode ? { debugName: "fluid" } : /* istanbul ignore next */ {},
8
+ transform: optionalBoolean
9
+ });
10
+ isFluid = injectFluid(this.fluid);
11
+ static ɵfac = i0.ɵɵngDeclareFactory({
12
+ minVersion: "12.0.0",
13
+ version: "22.2.3",
14
+ ngImport: i0,
15
+ type: TxInputGroup,
16
+ deps: [],
17
+ target: i0.ɵɵFactoryTarget.Component
18
+ });
19
+ static ɵcmp = i0.ɵɵngDeclareComponent({
20
+ minVersion: "17.1.0",
21
+ version: "22.2.3",
22
+ type: TxInputGroup,
23
+ isStandalone: true,
24
+ selector: "tx-input-group",
25
+ inputs: { fluid: {
26
+ classPropertyName: "fluid",
27
+ publicName: "fluid",
28
+ isSignal: true,
29
+ isRequired: false,
30
+ transformFunction: null
31
+ } },
32
+ host: {
33
+ attributes: { "role": "group" },
34
+ properties: { "class.tx-input-group--fluid": "isFluid()" },
35
+ classAttribute: "tx-input-group"
36
+ },
37
+ ngImport: i0,
38
+ template: "<ng-content />",
39
+ isInline: true,
40
+ styles: [":host{display:inline-flex;align-items:stretch;max-width:100%}:host(.tx-input-group--fluid){display:flex;width:100%}:host ::ng-deep>*:not(:first-child){margin-left:-1px}:host ::ng-deep>:is(.tx-input,.tx-input-group-addon,.tx-button):not(:first-child),:host ::ng-deep>tx-icon-field:not(:first-child)>.tx-input,:host ::ng-deep>tx-select:not(:first-child) .tx-select__box,:host ::ng-deep>:is(tx-multiselect,tx-autocomplete,tx-tree-select,tx-cascade-select):not(:first-child) .tx-select__box{border-top-left-radius:0;border-bottom-left-radius:0}:host ::ng-deep>:is(.tx-input,.tx-input-group-addon,.tx-button):not(:last-child),:host ::ng-deep>tx-icon-field:not(:last-child)>.tx-input,:host ::ng-deep>tx-select:not(:last-child) .tx-select__box,:host ::ng-deep>:is(tx-multiselect,tx-autocomplete,tx-tree-select,tx-cascade-select):not(:last-child) .tx-select__box{border-top-right-radius:0;border-bottom-right-radius:0}:host ::ng-deep>:is(tx-select,tx-multiselect,tx-autocomplete,tx-tree-select,tx-cascade-select){flex:1 1 auto;width:auto;min-width:0}:host ::ng-deep>:is(.tx-input,.tx-button,tx-icon-field,tx-select,tx-multiselect,tx-autocomplete,tx-tree-select,tx-cascade-select):is(:hover,:focus-within,:focus){position:relative;z-index:1}\n"],
41
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
42
+ });
43
+ };
44
+ i0.ɵɵngDeclareClassMetadata({
45
+ minVersion: "12.0.0",
46
+ version: "22.2.3",
47
+ ngImport: i0,
48
+ type: TxInputGroup,
49
+ decorators: [{
50
+ type: Component,
51
+ args: [{
52
+ selector: "tx-input-group",
53
+ template: "<ng-content />",
54
+ changeDetection: ChangeDetectionStrategy.OnPush,
55
+ host: {
56
+ class: "tx-input-group",
57
+ role: "group",
58
+ "[class.tx-input-group--fluid]": "isFluid()"
59
+ },
60
+ styles: [":host{display:inline-flex;align-items:stretch;max-width:100%}:host(.tx-input-group--fluid){display:flex;width:100%}:host ::ng-deep>*:not(:first-child){margin-left:-1px}:host ::ng-deep>:is(.tx-input,.tx-input-group-addon,.tx-button):not(:first-child),:host ::ng-deep>tx-icon-field:not(:first-child)>.tx-input,:host ::ng-deep>tx-select:not(:first-child) .tx-select__box,:host ::ng-deep>:is(tx-multiselect,tx-autocomplete,tx-tree-select,tx-cascade-select):not(:first-child) .tx-select__box{border-top-left-radius:0;border-bottom-left-radius:0}:host ::ng-deep>:is(.tx-input,.tx-input-group-addon,.tx-button):not(:last-child),:host ::ng-deep>tx-icon-field:not(:last-child)>.tx-input,:host ::ng-deep>tx-select:not(:last-child) .tx-select__box,:host ::ng-deep>:is(tx-multiselect,tx-autocomplete,tx-tree-select,tx-cascade-select):not(:last-child) .tx-select__box{border-top-right-radius:0;border-bottom-right-radius:0}:host ::ng-deep>:is(tx-select,tx-multiselect,tx-autocomplete,tx-tree-select,tx-cascade-select){flex:1 1 auto;width:auto;min-width:0}:host ::ng-deep>:is(.tx-input,.tx-button,tx-icon-field,tx-select,tx-multiselect,tx-autocomplete,tx-tree-select,tx-cascade-select):is(:hover,:focus-within,:focus){position:relative;z-index:1}\n"]
61
+ }]
62
+ }],
63
+ propDecorators: { fluid: [{
64
+ type: i0.Input,
65
+ args: [{
66
+ isSignal: true,
67
+ alias: "fluid",
68
+ required: false
69
+ }]
70
+ }] }
71
+ });
72
+ var TxInputGroupAddon = class TxInputGroupAddon {
73
+ static ɵfac = i0.ɵɵngDeclareFactory({
74
+ minVersion: "12.0.0",
75
+ version: "22.2.3",
76
+ ngImport: i0,
77
+ type: TxInputGroupAddon,
78
+ deps: [],
79
+ target: i0.ɵɵFactoryTarget.Component
80
+ });
81
+ static ɵcmp = i0.ɵɵngDeclareComponent({
82
+ minVersion: "14.0.0",
83
+ version: "22.2.3",
84
+ type: TxInputGroupAddon,
85
+ isStandalone: true,
86
+ selector: "tx-input-group-addon",
87
+ host: { classAttribute: "tx-input-group-addon" },
88
+ ngImport: i0,
89
+ template: "<ng-content />",
90
+ isInline: true,
91
+ styles: [":host{display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;box-sizing:border-box;min-width:var(--tx-input-group-addon-min-width);padding:0 var(--tx-input-group-addon-padding-x);border:1px solid var(--tx-input-group-addon-border-color);border-radius:var(--tx-input-group-addon-border-radius);background:var(--tx-input-group-addon-background);color:var(--tx-input-group-addon-color);font-family:var(--tx-font-family);font-size:var(--tx-form-field-font-size);font-weight:var(--tx-font-weight-medium);white-space:nowrap}:host:has(>.tx-button){padding:0;border:none;background:none}\n"],
92
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
93
+ });
94
+ };
95
+ i0.ɵɵngDeclareClassMetadata({
96
+ minVersion: "12.0.0",
97
+ version: "22.2.3",
98
+ ngImport: i0,
99
+ type: TxInputGroupAddon,
100
+ decorators: [{
101
+ type: Component,
102
+ args: [{
103
+ selector: "tx-input-group-addon",
104
+ template: "<ng-content />",
105
+ changeDetection: ChangeDetectionStrategy.OnPush,
106
+ host: { class: "tx-input-group-addon" },
107
+ styles: [":host{display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;box-sizing:border-box;min-width:var(--tx-input-group-addon-min-width);padding:0 var(--tx-input-group-addon-padding-x);border:1px solid var(--tx-input-group-addon-border-color);border-radius:var(--tx-input-group-addon-border-radius);background:var(--tx-input-group-addon-background);color:var(--tx-input-group-addon-color);font-family:var(--tx-font-family);font-size:var(--tx-form-field-font-size);font-weight:var(--tx-font-weight-medium);white-space:nowrap}:host:has(>.tx-button){padding:0;border:none;background:none}\n"]
108
+ }]
109
+ }]
110
+ });
111
+ export { TxInputGroup, TxInputGroupAddon };
112
+
113
+ //# sourceMappingURL=tectra-ng-ui-input-group.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tectra-ng-ui-input-group.mjs","names":[],"sources":["../../../../packages/ui/input-group/src/input-group.component.ts","../../../../packages/ui/input-group/src/input-group-addon.component.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, input } from '@angular/core';\nimport { injectFluid } from '@tectra-ng/core/fluid';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\n\n@Component({\n selector: 'tx-input-group',\n template: '<ng-content />',\n styleUrl: './input-group.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'tx-input-group', role: 'group', '[class.tx-input-group--fluid]': 'isFluid()' },\n})\nexport class TxInputGroup {\n readonly fluid = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n readonly isFluid = injectFluid(this.fluid);\n}\n","import { ChangeDetectionStrategy, Component } from '@angular/core';\n\n@Component({\n selector: 'tx-input-group-addon',\n template: '<ng-content />',\n styleUrl: './input-group-addon.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'tx-input-group-addon' },\n})\nexport class TxInputGroupAddon {}\n"],"mappings":";;;;AAWA,IAAa,eAAb,MAAa,aAAY;CACd,QAAQ,MAAoC,QAAS;EAAA,GAAA,YAAA,EAAA,WAAA,QAAA,+BAAA,CAAA;EAAI,WAAW;CAAe,CAAA;CACnF,UAAU,YAAY,KAAK,KAAK;CAF9B,OAAA,OAAA,GAAA,mBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAAY,MAAA,CAAA;EAAA,QAAA,GAAA,gBAAA;CAAA,CAAA;CAAZ,OAAA,OAAA,GAAA,qBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,MAAA;EAAY,cAAA;EAAA,UAAA;EAAA,QAAA,EAAA,OAAA;GAAA,mBAAA;GAAA,YAAA;GAAA,UAAA;GAAA,YAAA;GAAA,mBAAA;EAAA,EAAA;EAAA,MAAA;GAAA,YAAA,EAAA,QAAA,QAAA;GAAA,YAAA,EAAA,+BAAA,YAAA;GAAA,gBAAA;EAAA;EAAA,UAAA;EAAA,UALb;EAAgB,UAAA;EAAA,QAAA,CAAA,otCAAA;EAAA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