@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,649 @@
1
+ import { NgTemplateOutlet } from "@angular/common";
2
+ import * as i0 from "@angular/core";
3
+ import { ChangeDetectionStrategy, Component, Directive, TemplateRef, booleanAttribute, computed, contentChild, forwardRef, inject, input, output, signal, viewChild } from "@angular/core";
4
+ import { NG_VALUE_ACCESSOR } from "@angular/forms";
5
+ import { injectPassThrough, injectUnstyled } from "@tectra-ng/core/config";
6
+ import { TxFormControlBase, injectFieldInvalid } from "@tectra-ng/core/forms";
7
+ import { injectTranslations } from "@tectra-ng/core/i18n";
8
+ import { optionalBoolean } from "@tectra-ng/core/utils";
9
+ import { TxIcon } from "@tectra-ng/icons";
10
+ import { toStyleObject } from "@tectra-ng/themes";
11
+ import { TxChip } from "@tectra-ng/ui/chip";
12
+ var TxChipsInputItemTemplate = class TxChipsInputItemTemplate {
13
+ templateRef = inject(TemplateRef);
14
+ static ɵfac = i0.ɵɵngDeclareFactory({
15
+ minVersion: "12.0.0",
16
+ version: "22.2.3",
17
+ ngImport: i0,
18
+ type: TxChipsInputItemTemplate,
19
+ deps: [],
20
+ target: i0.ɵɵFactoryTarget.Directive
21
+ });
22
+ static ɵdir = i0.ɵɵngDeclareDirective({
23
+ minVersion: "14.0.0",
24
+ version: "22.2.3",
25
+ type: TxChipsInputItemTemplate,
26
+ isStandalone: true,
27
+ selector: "ng-template[txChipsInputItem]",
28
+ ngImport: i0
29
+ });
30
+ };
31
+ i0.ɵɵngDeclareClassMetadata({
32
+ minVersion: "12.0.0",
33
+ version: "22.2.3",
34
+ ngImport: i0,
35
+ type: TxChipsInputItemTemplate,
36
+ decorators: [{
37
+ type: Directive,
38
+ args: [{ selector: "ng-template[txChipsInputItem]" }]
39
+ }]
40
+ });
41
+ var TxChipsInput = class TxChipsInput extends TxFormControlBase {
42
+ placeholder = input("", ...ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []);
43
+ separator = input(",", ...ngDevMode ? [{ debugName: "separator" }] : /* istanbul ignore next */ []);
44
+ addOnBlur = input(true, {
45
+ ...ngDevMode ? { debugName: "addOnBlur" } : /* istanbul ignore next */ {},
46
+ transform: booleanAttribute
47
+ });
48
+ allowDuplicate = input(false, {
49
+ ...ngDevMode ? { debugName: "allowDuplicate" } : /* istanbul ignore next */ {},
50
+ transform: booleanAttribute
51
+ });
52
+ caseSensitive = input(false, {
53
+ ...ngDevMode ? { debugName: "caseSensitive" } : /* istanbul ignore next */ {},
54
+ transform: booleanAttribute
55
+ });
56
+ max = input(void 0, ...ngDevMode ? [{ debugName: "max" }] : /* istanbul ignore next */ []);
57
+ maxLength = input(void 0, ...ngDevMode ? [{ debugName: "maxLength" }] : /* istanbul ignore next */ []);
58
+ itemPattern = input(void 0, ...ngDevMode ? [{ debugName: "itemPattern" }] : /* istanbul ignore next */ []);
59
+ showClear = input(false, {
60
+ ...ngDevMode ? { debugName: "showClear" } : /* istanbul ignore next */ {},
61
+ transform: booleanAttribute
62
+ });
63
+ inputId = input(void 0, ...ngDevMode ? [{ debugName: "inputId" }] : /* istanbul ignore next */ []);
64
+ ariaLabel = input(void 0, ...ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
65
+ ariaLabelledBy = input(void 0, ...ngDevMode ? [{ debugName: "ariaLabelledBy" }] : /* istanbul ignore next */ []);
66
+ size = input("medium", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
67
+ variant = input("outlined", ...ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []);
68
+ invalid = input(void 0, {
69
+ ...ngDevMode ? { debugName: "invalid" } : /* istanbul ignore next */ {},
70
+ transform: optionalBoolean
71
+ });
72
+ readonly = input(false, {
73
+ ...ngDevMode ? { debugName: "readonly" } : /* istanbul ignore next */ {},
74
+ transform: booleanAttribute
75
+ });
76
+ dt = input(void 0, ...ngDevMode ? [{ debugName: "dt" }] : /* istanbul ignore next */ []);
77
+ pt = input(void 0, ...ngDevMode ? [{ debugName: "pt" }] : /* istanbul ignore next */ []);
78
+ ptOptions = input(void 0, ...ngDevMode ? [{ debugName: "ptOptions" }] : /* istanbul ignore next */ []);
79
+ unstyled = input(void 0, {
80
+ ...ngDevMode ? { debugName: "unstyled" } : /* istanbul ignore next */ {},
81
+ transform: optionalBoolean
82
+ });
83
+ added = output();
84
+ removed = output();
85
+ rejected = output();
86
+ itemTemplate = contentChild(TxChipsInputItemTemplate, ...ngDevMode ? [{ debugName: "itemTemplate" }] : /* istanbul ignore next */ []);
87
+ field = viewChild.required("field", ...ngDevMode ? [{ debugName: "field" }] : /* istanbul ignore next */ []);
88
+ translations = injectTranslations();
89
+ isInvalid = injectFieldInvalid(this.invalid);
90
+ isUnstyled = injectUnstyled(this.unstyled);
91
+ passThrough = injectPassThrough("chipsInput", this, this.pt, this.ptOptions);
92
+ text = signal("", ...ngDevMode ? [{ debugName: "text" }] : /* istanbul ignore next */ []);
93
+ values = computed(() => this.value() ?? [], ...ngDevMode ? [{ debugName: "values" }] : /* istanbul ignore next */ []);
94
+ isFull = computed(() => this.max() !== void 0 && this.values().length >= (this.max() ?? 0), ...ngDevMode ? [{ debugName: "isFull" }] : /* istanbul ignore next */ []);
95
+ canClear = computed(() => this.showClear() && this.values().length > 0 && !this.disabled() && !this.readonly(), ...ngDevMode ? [{ debugName: "canClear" }] : /* istanbul ignore next */ []);
96
+ hostStyle = computed(() => ({
97
+ ...toStyleObject(this.dt(), "--tx-chips-input"),
98
+ ...this.passThrough().root?.style
99
+ }), ...ngDevMode ? [{ debugName: "hostStyle" }] : /* istanbul ignore next */ []);
100
+ writeValue(value) {
101
+ super.writeValue(Array.isArray(value) ? value : []);
102
+ }
103
+ removeLabel(item) {
104
+ return this.translations().removeItem.replace("{item}", item);
105
+ }
106
+ onInput(event) {
107
+ const text = event.target.value;
108
+ const separator = this.separator();
109
+ const parts = text.split(separator);
110
+ if (parts.length > 1) {
111
+ this.addAll(parts.slice(0, -1));
112
+ this.setText(parts[parts.length - 1]);
113
+ } else this.text.set(text);
114
+ }
115
+ onPaste(event) {
116
+ const parts = (event.clipboardData?.getData("text") ?? "").split(/\r?\n/).flatMap((line) => line.split(this.separator()));
117
+ if (parts.length > 1) {
118
+ event.preventDefault();
119
+ this.addAll(parts);
120
+ }
121
+ }
122
+ onKeydown(event) {
123
+ if (this.readonly()) return;
124
+ if (event.key === "Enter") {
125
+ if (this.text().trim()) {
126
+ event.preventDefault();
127
+ this.addAll([this.text()]);
128
+ }
129
+ return;
130
+ }
131
+ if (event.key === "Backspace" && !this.text() && this.values().length) {
132
+ event.preventDefault();
133
+ this.removeAt(this.values().length - 1);
134
+ }
135
+ }
136
+ onBlur() {
137
+ if (this.addOnBlur() && this.text().trim()) this.addAll([this.text()]);
138
+ this.markTouched();
139
+ }
140
+ onHostClick(event) {
141
+ if (!event.target.closest("button")) this.field().nativeElement.focus();
142
+ }
143
+ removeAt(index) {
144
+ if (this.disabled() || this.readonly()) return;
145
+ const value = this.values()[index];
146
+ const values = this.values().filter((_, position) => position !== index);
147
+ this.updateValue(values);
148
+ this.removed.emit({
149
+ value,
150
+ values
151
+ });
152
+ this.field().nativeElement.focus();
153
+ }
154
+ clear() {
155
+ this.updateValue([]);
156
+ this.setText("");
157
+ this.field().nativeElement.focus();
158
+ }
159
+ addAll(parts) {
160
+ let values = this.values();
161
+ for (const part of parts.map((item) => item.trim()).filter(Boolean)) {
162
+ const value = this.maxLength() ? part.slice(0, this.maxLength()) : part;
163
+ const duplicate = values.some((item) => this.caseSensitive() ? item === value : item.toLowerCase() === value.toLowerCase());
164
+ const full = this.max() !== void 0 && values.length >= (this.max() ?? 0);
165
+ const invalidPattern = !!this.itemPattern() && !this.itemPattern()?.test(value);
166
+ if (duplicate && !this.allowDuplicate() || full || invalidPattern) {
167
+ this.rejected.emit({
168
+ value,
169
+ values
170
+ });
171
+ continue;
172
+ }
173
+ values = [...values, value];
174
+ this.updateValue(values);
175
+ this.added.emit({
176
+ value,
177
+ values
178
+ });
179
+ }
180
+ this.setText("");
181
+ }
182
+ setText(text) {
183
+ this.text.set(text);
184
+ this.field().nativeElement.value = text;
185
+ }
186
+ static ɵfac = i0.ɵɵngDeclareFactory({
187
+ minVersion: "12.0.0",
188
+ version: "22.2.3",
189
+ ngImport: i0,
190
+ type: TxChipsInput,
191
+ deps: null,
192
+ target: i0.ɵɵFactoryTarget.Component
193
+ });
194
+ static ɵcmp = i0.ɵɵngDeclareComponent({
195
+ minVersion: "17.0.0",
196
+ version: "22.2.3",
197
+ type: TxChipsInput,
198
+ isStandalone: true,
199
+ selector: "tx-chips-input",
200
+ inputs: {
201
+ placeholder: {
202
+ classPropertyName: "placeholder",
203
+ publicName: "placeholder",
204
+ isSignal: true,
205
+ isRequired: false,
206
+ transformFunction: null
207
+ },
208
+ separator: {
209
+ classPropertyName: "separator",
210
+ publicName: "separator",
211
+ isSignal: true,
212
+ isRequired: false,
213
+ transformFunction: null
214
+ },
215
+ addOnBlur: {
216
+ classPropertyName: "addOnBlur",
217
+ publicName: "addOnBlur",
218
+ isSignal: true,
219
+ isRequired: false,
220
+ transformFunction: null
221
+ },
222
+ allowDuplicate: {
223
+ classPropertyName: "allowDuplicate",
224
+ publicName: "allowDuplicate",
225
+ isSignal: true,
226
+ isRequired: false,
227
+ transformFunction: null
228
+ },
229
+ caseSensitive: {
230
+ classPropertyName: "caseSensitive",
231
+ publicName: "caseSensitive",
232
+ isSignal: true,
233
+ isRequired: false,
234
+ transformFunction: null
235
+ },
236
+ max: {
237
+ classPropertyName: "max",
238
+ publicName: "max",
239
+ isSignal: true,
240
+ isRequired: false,
241
+ transformFunction: null
242
+ },
243
+ maxLength: {
244
+ classPropertyName: "maxLength",
245
+ publicName: "maxLength",
246
+ isSignal: true,
247
+ isRequired: false,
248
+ transformFunction: null
249
+ },
250
+ itemPattern: {
251
+ classPropertyName: "itemPattern",
252
+ publicName: "itemPattern",
253
+ isSignal: true,
254
+ isRequired: false,
255
+ transformFunction: null
256
+ },
257
+ showClear: {
258
+ classPropertyName: "showClear",
259
+ publicName: "showClear",
260
+ isSignal: true,
261
+ isRequired: false,
262
+ transformFunction: null
263
+ },
264
+ inputId: {
265
+ classPropertyName: "inputId",
266
+ publicName: "inputId",
267
+ isSignal: true,
268
+ isRequired: false,
269
+ transformFunction: null
270
+ },
271
+ ariaLabel: {
272
+ classPropertyName: "ariaLabel",
273
+ publicName: "ariaLabel",
274
+ isSignal: true,
275
+ isRequired: false,
276
+ transformFunction: null
277
+ },
278
+ ariaLabelledBy: {
279
+ classPropertyName: "ariaLabelledBy",
280
+ publicName: "ariaLabelledBy",
281
+ isSignal: true,
282
+ isRequired: false,
283
+ transformFunction: null
284
+ },
285
+ size: {
286
+ classPropertyName: "size",
287
+ publicName: "size",
288
+ isSignal: true,
289
+ isRequired: false,
290
+ transformFunction: null
291
+ },
292
+ variant: {
293
+ classPropertyName: "variant",
294
+ publicName: "variant",
295
+ isSignal: true,
296
+ isRequired: false,
297
+ transformFunction: null
298
+ },
299
+ invalid: {
300
+ classPropertyName: "invalid",
301
+ publicName: "invalid",
302
+ isSignal: true,
303
+ isRequired: false,
304
+ transformFunction: null
305
+ },
306
+ readonly: {
307
+ classPropertyName: "readonly",
308
+ publicName: "readonly",
309
+ isSignal: true,
310
+ isRequired: false,
311
+ transformFunction: null
312
+ },
313
+ dt: {
314
+ classPropertyName: "dt",
315
+ publicName: "dt",
316
+ isSignal: true,
317
+ isRequired: false,
318
+ transformFunction: null
319
+ },
320
+ pt: {
321
+ classPropertyName: "pt",
322
+ publicName: "pt",
323
+ isSignal: true,
324
+ isRequired: false,
325
+ transformFunction: null
326
+ },
327
+ ptOptions: {
328
+ classPropertyName: "ptOptions",
329
+ publicName: "ptOptions",
330
+ isSignal: true,
331
+ isRequired: false,
332
+ transformFunction: null
333
+ },
334
+ unstyled: {
335
+ classPropertyName: "unstyled",
336
+ publicName: "unstyled",
337
+ isSignal: true,
338
+ isRequired: false,
339
+ transformFunction: null
340
+ }
341
+ },
342
+ outputs: {
343
+ added: "added",
344
+ removed: "removed",
345
+ rejected: "rejected"
346
+ },
347
+ host: {
348
+ listeners: { "click": "onHostClick($event)" },
349
+ properties: {
350
+ "class": "passThrough().root?.class",
351
+ "style": "hostStyle()",
352
+ "attr.data-styled": "!isUnstyled() || null",
353
+ "attr.data-size": "size()",
354
+ "attr.data-variant": "variant()",
355
+ "class.tx-chips-input--disabled": "disabled()",
356
+ "class.tx-chips-input--invalid": "isInvalid()",
357
+ "class.tx-chips-input--readonly": "readonly()",
358
+ "class.tx-chips-input--filled": "values().length > 0 || !!text()",
359
+ "class.tx-chips-input--full": "isFull()"
360
+ },
361
+ classAttribute: "tx-chips-input"
362
+ },
363
+ providers: [{
364
+ provide: NG_VALUE_ACCESSOR,
365
+ useExisting: forwardRef(() => TxChipsInput),
366
+ multi: true
367
+ }],
368
+ queries: [{
369
+ propertyName: "itemTemplate",
370
+ first: true,
371
+ predicate: TxChipsInputItemTemplate,
372
+ descendants: true,
373
+ isSignal: true
374
+ }],
375
+ viewQueries: [{
376
+ propertyName: "field",
377
+ first: true,
378
+ predicate: ["field"],
379
+ descendants: true,
380
+ isSignal: true
381
+ }],
382
+ usesInheritance: true,
383
+ ngImport: i0,
384
+ template: "<div class=\"tx-chips-input__box\">\n @if (values().length) {\n <span class=\"tx-chips-input__list\" role=\"list\" [class]=\"passThrough().list?.class\" [style]=\"passThrough().list?.style\">\n @for (item of values(); track $index) {\n <tx-chip\n role=\"listitem\"\n class=\"tx-chips-input__chip\"\n [class]=\"passThrough().chip?.class\"\n [style]=\"passThrough().chip?.style\"\n [removable]=\"!disabled() && !readonly()\"\n [removeIcon]=\"'times'\"\n [removeLabel]=\"removeLabel(item)\"\n (removed)=\"removeAt($index)\"\n >\n @if (itemTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" [ngTemplateOutletContext]=\"{ $implicit: item, index: $index }\" />\n } @else {\n {{ item }}\n }\n </tx-chip>\n }\n </span>\n }\n <input\n #field\n type=\"text\"\n autocomplete=\"off\"\n class=\"tx-chips-input__input\"\n [class]=\"passThrough().input?.class\"\n [style]=\"passThrough().input?.style\"\n [attr.id]=\"inputId() ?? null\"\n [attr.aria-label]=\"ariaLabel() ?? (ariaLabelledBy() || inputId() ? null : placeholder() || null)\"\n [attr.aria-labelledby]=\"ariaLabelledBy() ?? null\"\n [attr.aria-invalid]=\"isInvalid() || null\"\n [attr.maxlength]=\"maxLength() ?? null\"\n [placeholder]=\"values().length ? '' : placeholder()\"\n [readOnly]=\"readonly() || isFull()\"\n [disabled]=\"disabled()\"\n (input)=\"onInput($event)\"\n (paste)=\"onPaste($event)\"\n (keydown)=\"onKeydown($event)\"\n (blur)=\"onBlur()\"\n />\n @if (canClear()) {\n <button\n type=\"button\"\n class=\"tx-chips-input__clear\"\n [class]=\"passThrough().clear?.class\"\n [style]=\"passThrough().clear?.style\"\n [attr.aria-label]=\"translations().clear\"\n (click)=\"clear()\"\n >\n <tx-icon [name]=\"'times'\" />\n </button>\n }\n</div>\n",
385
+ styles: [":host{display:block;width:100%}.tx-chips-input__box{display:flex;flex-wrap:wrap;align-items:center;cursor:text}.tx-chips-input__list{display:contents}.tx-chips-input__input{flex:1 1 var(--tx-chips-input-input-min-width, 80px);min-width:var(--tx-chips-input-input-min-width, 80px)}:host(.tx-chips-input--disabled) .tx-chips-input__box{cursor:not-allowed}:host([data-styled]){font-family:var(--tx-font-family)}:host([data-styled]) .tx-chips-input__box{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);gap:var(--tx-chips-input-gap);width:100%}:host([data-styled])[data-variant=filled] .tx-chips-input__box{background:var(--tx-form-field-filled-background)}:host([data-styled]):not(.tx-chips-input--disabled,.tx-chips-input--readonly) .tx-chips-input__box:hover{border-color:var(--tx-form-field-hover-border-color)}:host([data-styled]) .tx-chips-input__box:focus-within{border-color:var(--tx-form-field-focus-border-color);box-shadow:var(--tx-form-field-focus-ring-shadow)}:host([data-styled]).tx-chips-input--readonly .tx-chips-input__box{background:var(--tx-form-field-readonly-background);cursor:default}:host([data-styled]).tx-chips-input--invalid .tx-chips-input__box{border-color:var(--tx-form-field-invalid-border-color)}:host([data-styled]).tx-chips-input--invalid .tx-chips-input__box:focus-within{border-color:var(--tx-form-field-invalid-border-color);box-shadow:var(--tx-form-field-invalid-focus-ring-shadow)}:host([data-styled]).tx-chips-input--disabled .tx-chips-input__box{background:var(--tx-form-field-disabled-background);box-shadow:none;color:var(--tx-form-field-disabled-color);cursor:not-allowed}:host([data-styled])[data-size=small] .tx-chips-input__box{padding-top:var(--tx-field-padding-top, var(--tx-form-field-sm-padding-y));padding-bottom:var(--tx-field-padding-bottom, var(--tx-form-field-sm-padding-y));padding-inline:calc(var(--tx-form-field-sm-padding-x) + var(--tx-field-inset-start, 0px)) calc(var(--tx-form-field-sm-padding-x) + var(--tx-field-inset-end, 0px));font-size:var(--tx-form-field-sm-font-size);line-height:var(--tx-form-field-sm-line-height)}:host([data-styled])[data-size=large] .tx-chips-input__box{padding-top:var(--tx-field-padding-top, var(--tx-form-field-lg-padding-y));padding-bottom:var(--tx-field-padding-bottom, var(--tx-form-field-lg-padding-y));padding-inline:calc(var(--tx-form-field-lg-padding-x) + var(--tx-field-inset-start, 0px)) calc(var(--tx-form-field-lg-padding-x) + var(--tx-field-inset-end, 0px));font-size:var(--tx-form-field-lg-font-size);line-height:var(--tx-form-field-lg-line-height)}:host([data-styled]) .tx-chips-input__chip{--tx-chip-height: var(--tx-chips-input-chip-height);--tx-chip-font-size: var(--tx-chips-input-chip-font-size);--tx-chip-padding-x: var(--tx-chips-input-chip-padding-x);--tx-chip-border-radius: var(--tx-chips-input-chip-border-radius);--tx-chip-remove-size: 16px;margin-block:calc((1lh - var(--tx-chips-input-chip-height)) / 2)}:host([data-styled]) .tx-chips-input__input{padding:0;border:none;outline:none;background:transparent;color:inherit;font:inherit}:host([data-styled]) .tx-chips-input__input::placeholder{color:var(--tx-form-field-placeholder-color)}:host([data-styled]) .tx-chips-input__clear{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)}:host([data-styled]) .tx-chips-input__clear:hover{background:var(--tx-surface-hover);color:var(--tx-form-field-color)}:host([data-styled]) .tx-chips-input__clear:focus-visible{outline:2px solid var(--tx-focus-ring-color);outline-offset:1px}:host([data-styled]) .tx-chips-input__clear{margin-block:calc((1lh - 24px)/2);margin-inline-start:auto}\n"],
386
+ dependencies: [
387
+ {
388
+ kind: "directive",
389
+ type: NgTemplateOutlet,
390
+ selector: "[ngTemplateOutlet]",
391
+ inputs: [
392
+ "ngTemplateOutletContext",
393
+ "ngTemplateOutlet",
394
+ "ngTemplateOutletInjector"
395
+ ]
396
+ },
397
+ {
398
+ kind: "component",
399
+ type: TxChip,
400
+ selector: "tx-chip",
401
+ inputs: [
402
+ "label",
403
+ "icon",
404
+ "image",
405
+ "alt",
406
+ "removable",
407
+ "removeIcon",
408
+ "removeLabel",
409
+ "dt",
410
+ "pt",
411
+ "ptOptions",
412
+ "unstyled"
413
+ ],
414
+ outputs: ["removed"]
415
+ },
416
+ {
417
+ kind: "component",
418
+ type: TxIcon,
419
+ selector: "tx-icon",
420
+ inputs: ["name"]
421
+ }
422
+ ],
423
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
424
+ });
425
+ };
426
+ i0.ɵɵngDeclareClassMetadata({
427
+ minVersion: "12.0.0",
428
+ version: "22.2.3",
429
+ ngImport: i0,
430
+ type: TxChipsInput,
431
+ decorators: [{
432
+ type: Component,
433
+ args: [{
434
+ selector: "tx-chips-input",
435
+ imports: [
436
+ NgTemplateOutlet,
437
+ TxChip,
438
+ TxIcon
439
+ ],
440
+ changeDetection: ChangeDetectionStrategy.OnPush,
441
+ providers: [{
442
+ provide: NG_VALUE_ACCESSOR,
443
+ useExisting: forwardRef(() => TxChipsInput),
444
+ multi: true
445
+ }],
446
+ host: {
447
+ class: "tx-chips-input",
448
+ "[class]": "passThrough().root?.class",
449
+ "[style]": "hostStyle()",
450
+ "[attr.data-styled]": "!isUnstyled() || null",
451
+ "[attr.data-size]": "size()",
452
+ "[attr.data-variant]": "variant()",
453
+ "[class.tx-chips-input--disabled]": "disabled()",
454
+ "[class.tx-chips-input--invalid]": "isInvalid()",
455
+ "[class.tx-chips-input--readonly]": "readonly()",
456
+ "[class.tx-chips-input--filled]": "values().length > 0 || !!text()",
457
+ "[class.tx-chips-input--full]": "isFull()",
458
+ "(click)": "onHostClick($event)"
459
+ },
460
+ template: "<div class=\"tx-chips-input__box\">\n @if (values().length) {\n <span class=\"tx-chips-input__list\" role=\"list\" [class]=\"passThrough().list?.class\" [style]=\"passThrough().list?.style\">\n @for (item of values(); track $index) {\n <tx-chip\n role=\"listitem\"\n class=\"tx-chips-input__chip\"\n [class]=\"passThrough().chip?.class\"\n [style]=\"passThrough().chip?.style\"\n [removable]=\"!disabled() && !readonly()\"\n [removeIcon]=\"'times'\"\n [removeLabel]=\"removeLabel(item)\"\n (removed)=\"removeAt($index)\"\n >\n @if (itemTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" [ngTemplateOutletContext]=\"{ $implicit: item, index: $index }\" />\n } @else {\n {{ item }}\n }\n </tx-chip>\n }\n </span>\n }\n <input\n #field\n type=\"text\"\n autocomplete=\"off\"\n class=\"tx-chips-input__input\"\n [class]=\"passThrough().input?.class\"\n [style]=\"passThrough().input?.style\"\n [attr.id]=\"inputId() ?? null\"\n [attr.aria-label]=\"ariaLabel() ?? (ariaLabelledBy() || inputId() ? null : placeholder() || null)\"\n [attr.aria-labelledby]=\"ariaLabelledBy() ?? null\"\n [attr.aria-invalid]=\"isInvalid() || null\"\n [attr.maxlength]=\"maxLength() ?? null\"\n [placeholder]=\"values().length ? '' : placeholder()\"\n [readOnly]=\"readonly() || isFull()\"\n [disabled]=\"disabled()\"\n (input)=\"onInput($event)\"\n (paste)=\"onPaste($event)\"\n (keydown)=\"onKeydown($event)\"\n (blur)=\"onBlur()\"\n />\n @if (canClear()) {\n <button\n type=\"button\"\n class=\"tx-chips-input__clear\"\n [class]=\"passThrough().clear?.class\"\n [style]=\"passThrough().clear?.style\"\n [attr.aria-label]=\"translations().clear\"\n (click)=\"clear()\"\n >\n <tx-icon [name]=\"'times'\" />\n </button>\n }\n</div>\n",
461
+ styles: [":host{display:block;width:100%}.tx-chips-input__box{display:flex;flex-wrap:wrap;align-items:center;cursor:text}.tx-chips-input__list{display:contents}.tx-chips-input__input{flex:1 1 var(--tx-chips-input-input-min-width, 80px);min-width:var(--tx-chips-input-input-min-width, 80px)}:host(.tx-chips-input--disabled) .tx-chips-input__box{cursor:not-allowed}:host([data-styled]){font-family:var(--tx-font-family)}:host([data-styled]) .tx-chips-input__box{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);gap:var(--tx-chips-input-gap);width:100%}:host([data-styled])[data-variant=filled] .tx-chips-input__box{background:var(--tx-form-field-filled-background)}:host([data-styled]):not(.tx-chips-input--disabled,.tx-chips-input--readonly) .tx-chips-input__box:hover{border-color:var(--tx-form-field-hover-border-color)}:host([data-styled]) .tx-chips-input__box:focus-within{border-color:var(--tx-form-field-focus-border-color);box-shadow:var(--tx-form-field-focus-ring-shadow)}:host([data-styled]).tx-chips-input--readonly .tx-chips-input__box{background:var(--tx-form-field-readonly-background);cursor:default}:host([data-styled]).tx-chips-input--invalid .tx-chips-input__box{border-color:var(--tx-form-field-invalid-border-color)}:host([data-styled]).tx-chips-input--invalid .tx-chips-input__box:focus-within{border-color:var(--tx-form-field-invalid-border-color);box-shadow:var(--tx-form-field-invalid-focus-ring-shadow)}:host([data-styled]).tx-chips-input--disabled .tx-chips-input__box{background:var(--tx-form-field-disabled-background);box-shadow:none;color:var(--tx-form-field-disabled-color);cursor:not-allowed}:host([data-styled])[data-size=small] .tx-chips-input__box{padding-top:var(--tx-field-padding-top, var(--tx-form-field-sm-padding-y));padding-bottom:var(--tx-field-padding-bottom, var(--tx-form-field-sm-padding-y));padding-inline:calc(var(--tx-form-field-sm-padding-x) + var(--tx-field-inset-start, 0px)) calc(var(--tx-form-field-sm-padding-x) + var(--tx-field-inset-end, 0px));font-size:var(--tx-form-field-sm-font-size);line-height:var(--tx-form-field-sm-line-height)}:host([data-styled])[data-size=large] .tx-chips-input__box{padding-top:var(--tx-field-padding-top, var(--tx-form-field-lg-padding-y));padding-bottom:var(--tx-field-padding-bottom, var(--tx-form-field-lg-padding-y));padding-inline:calc(var(--tx-form-field-lg-padding-x) + var(--tx-field-inset-start, 0px)) calc(var(--tx-form-field-lg-padding-x) + var(--tx-field-inset-end, 0px));font-size:var(--tx-form-field-lg-font-size);line-height:var(--tx-form-field-lg-line-height)}:host([data-styled]) .tx-chips-input__chip{--tx-chip-height: var(--tx-chips-input-chip-height);--tx-chip-font-size: var(--tx-chips-input-chip-font-size);--tx-chip-padding-x: var(--tx-chips-input-chip-padding-x);--tx-chip-border-radius: var(--tx-chips-input-chip-border-radius);--tx-chip-remove-size: 16px;margin-block:calc((1lh - var(--tx-chips-input-chip-height)) / 2)}:host([data-styled]) .tx-chips-input__input{padding:0;border:none;outline:none;background:transparent;color:inherit;font:inherit}:host([data-styled]) .tx-chips-input__input::placeholder{color:var(--tx-form-field-placeholder-color)}:host([data-styled]) .tx-chips-input__clear{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)}:host([data-styled]) .tx-chips-input__clear:hover{background:var(--tx-surface-hover);color:var(--tx-form-field-color)}:host([data-styled]) .tx-chips-input__clear:focus-visible{outline:2px solid var(--tx-focus-ring-color);outline-offset:1px}:host([data-styled]) .tx-chips-input__clear{margin-block:calc((1lh - 24px)/2);margin-inline-start:auto}\n"]
462
+ }]
463
+ }],
464
+ propDecorators: {
465
+ placeholder: [{
466
+ type: i0.Input,
467
+ args: [{
468
+ isSignal: true,
469
+ alias: "placeholder",
470
+ required: false
471
+ }]
472
+ }],
473
+ separator: [{
474
+ type: i0.Input,
475
+ args: [{
476
+ isSignal: true,
477
+ alias: "separator",
478
+ required: false
479
+ }]
480
+ }],
481
+ addOnBlur: [{
482
+ type: i0.Input,
483
+ args: [{
484
+ isSignal: true,
485
+ alias: "addOnBlur",
486
+ required: false
487
+ }]
488
+ }],
489
+ allowDuplicate: [{
490
+ type: i0.Input,
491
+ args: [{
492
+ isSignal: true,
493
+ alias: "allowDuplicate",
494
+ required: false
495
+ }]
496
+ }],
497
+ caseSensitive: [{
498
+ type: i0.Input,
499
+ args: [{
500
+ isSignal: true,
501
+ alias: "caseSensitive",
502
+ required: false
503
+ }]
504
+ }],
505
+ max: [{
506
+ type: i0.Input,
507
+ args: [{
508
+ isSignal: true,
509
+ alias: "max",
510
+ required: false
511
+ }]
512
+ }],
513
+ maxLength: [{
514
+ type: i0.Input,
515
+ args: [{
516
+ isSignal: true,
517
+ alias: "maxLength",
518
+ required: false
519
+ }]
520
+ }],
521
+ itemPattern: [{
522
+ type: i0.Input,
523
+ args: [{
524
+ isSignal: true,
525
+ alias: "itemPattern",
526
+ required: false
527
+ }]
528
+ }],
529
+ showClear: [{
530
+ type: i0.Input,
531
+ args: [{
532
+ isSignal: true,
533
+ alias: "showClear",
534
+ required: false
535
+ }]
536
+ }],
537
+ inputId: [{
538
+ type: i0.Input,
539
+ args: [{
540
+ isSignal: true,
541
+ alias: "inputId",
542
+ required: false
543
+ }]
544
+ }],
545
+ ariaLabel: [{
546
+ type: i0.Input,
547
+ args: [{
548
+ isSignal: true,
549
+ alias: "ariaLabel",
550
+ required: false
551
+ }]
552
+ }],
553
+ ariaLabelledBy: [{
554
+ type: i0.Input,
555
+ args: [{
556
+ isSignal: true,
557
+ alias: "ariaLabelledBy",
558
+ required: false
559
+ }]
560
+ }],
561
+ size: [{
562
+ type: i0.Input,
563
+ args: [{
564
+ isSignal: true,
565
+ alias: "size",
566
+ required: false
567
+ }]
568
+ }],
569
+ variant: [{
570
+ type: i0.Input,
571
+ args: [{
572
+ isSignal: true,
573
+ alias: "variant",
574
+ required: false
575
+ }]
576
+ }],
577
+ invalid: [{
578
+ type: i0.Input,
579
+ args: [{
580
+ isSignal: true,
581
+ alias: "invalid",
582
+ required: false
583
+ }]
584
+ }],
585
+ readonly: [{
586
+ type: i0.Input,
587
+ args: [{
588
+ isSignal: true,
589
+ alias: "readonly",
590
+ required: false
591
+ }]
592
+ }],
593
+ dt: [{
594
+ type: i0.Input,
595
+ args: [{
596
+ isSignal: true,
597
+ alias: "dt",
598
+ required: false
599
+ }]
600
+ }],
601
+ pt: [{
602
+ type: i0.Input,
603
+ args: [{
604
+ isSignal: true,
605
+ alias: "pt",
606
+ required: false
607
+ }]
608
+ }],
609
+ ptOptions: [{
610
+ type: i0.Input,
611
+ args: [{
612
+ isSignal: true,
613
+ alias: "ptOptions",
614
+ required: false
615
+ }]
616
+ }],
617
+ unstyled: [{
618
+ type: i0.Input,
619
+ args: [{
620
+ isSignal: true,
621
+ alias: "unstyled",
622
+ required: false
623
+ }]
624
+ }],
625
+ added: [{
626
+ type: i0.Output,
627
+ args: ["added"]
628
+ }],
629
+ removed: [{
630
+ type: i0.Output,
631
+ args: ["removed"]
632
+ }],
633
+ rejected: [{
634
+ type: i0.Output,
635
+ args: ["rejected"]
636
+ }],
637
+ itemTemplate: [{
638
+ type: i0.ContentChild,
639
+ args: [i0.forwardRef(() => TxChipsInputItemTemplate), { isSignal: true }]
640
+ }],
641
+ field: [{
642
+ type: i0.ViewChild,
643
+ args: ["field", { isSignal: true }]
644
+ }]
645
+ }
646
+ });
647
+ export { TxChipsInput, TxChipsInputItemTemplate };
648
+
649
+ //# sourceMappingURL=tectra-ng-ui-chips-input.mjs.map