@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 @@
1
+ {"version":3,"file":"tectra-ng-ui-input-number.mjs","names":[],"sources":["../../../../packages/ui/input-number/src/number-format.ts","../../../../packages/ui/input-number/src/input-number.component.ts","../../../../packages/ui/input-number/src/input-number.component.html"],"sourcesContent":["export interface TxNumberFormatOptions {\n locale: string;\n mode: 'decimal' | 'currency';\n currency?: string;\n currencyDisplay?: 'symbol' | 'narrowSymbol' | 'code' | 'name';\n useGrouping: boolean;\n minFractionDigits?: number;\n maxFractionDigits?: number;\n prefix?: string;\n suffix?: string;\n}\n\ninterface TxNumberRead {\n negative: boolean;\n digits: string;\n fraction: string | null;\n}\n\nconst NUMBER_PARTS = ['integer', 'group', 'decimal', 'fraction'];\n\nexport class TxNumberFormat {\n readonly decimal: string;\n readonly group: string;\n readonly before: string;\n readonly after: string;\n readonly maxFraction: number;\n private full: Intl.NumberFormat;\n private integer: Intl.NumberFormat;\n\n constructor(options: TxNumberFormatOptions) {\n const style: Intl.NumberFormatOptions =\n options.mode === 'currency'\n ? { style: 'currency', currency: options.currency ?? 'USD', currencyDisplay: options.currencyDisplay ?? 'symbol' }\n : { style: 'decimal' };\n const defaults = new Intl.NumberFormat(options.locale, style).resolvedOptions();\n const currency = options.mode === 'currency';\n const min = options.minFractionDigits ?? (currency ? (defaults.minimumFractionDigits ?? 2) : 0);\n const max = Math.max(min, options.maxFractionDigits ?? (currency ? (defaults.maximumFractionDigits ?? 2) : 3));\n this.full = new Intl.NumberFormat(options.locale, { ...style, useGrouping: options.useGrouping, minimumFractionDigits: min, maximumFractionDigits: max });\n this.integer = new Intl.NumberFormat(options.locale, { useGrouping: options.useGrouping, maximumFractionDigits: 0 });\n const plain = new Intl.NumberFormat(options.locale).formatToParts(12345.6);\n this.decimal = plain.find((part) => part.type === 'decimal')?.value ?? '.';\n this.group = plain.find((part) => part.type === 'group')?.value ?? ',';\n this.maxFraction = max;\n const sample = this.full.formatToParts(-12345.6);\n const first = sample.findIndex((part) => NUMBER_PARTS.includes(part.type));\n const last = sample.length - 1 - [...sample].reverse().findIndex((part) => NUMBER_PARTS.includes(part.type));\n const affix = (parts: Intl.NumberFormatPart[]) => parts.filter((part) => part.type !== 'minusSign').map((part) => part.value).join('');\n this.before = (options.prefix ?? '') + affix(sample.slice(0, first));\n this.after = affix(sample.slice(last + 1)) + (options.suffix ?? '');\n }\n\n format(value: number | null): string {\n if (value === null || Number.isNaN(value)) {\n return '';\n }\n const number = this.full\n .formatToParts(Math.abs(value))\n .filter((part) => NUMBER_PARTS.includes(part.type))\n .map((part) => part.value)\n .join('');\n return `${value < 0 ? '-' : ''}${this.before}${number}${this.after}`;\n }\n\n formatTyping(text: string): { display: string; value: number | null } {\n const read = this.read(text);\n if (read.digits === '' && read.fraction === null) {\n return { display: read.negative ? '-' : '', value: null };\n }\n const integer = (read.digits || '0').replace(/^0+(?=\\d)/, '');\n const fraction = read.fraction === null ? null : read.fraction.slice(0, this.maxFraction);\n const grouped = this.integer.format(BigInt(integer));\n const display = `${read.negative ? '-' : ''}${this.before}${grouped}${fraction === null ? '' : this.decimal + fraction}${this.after}`;\n const value = Number(`${read.negative ? '-' : ''}${integer}${fraction ? `.${fraction}` : ''}`);\n return { display, value };\n }\n\n parse(text: string): number | null {\n return this.formatTyping(text).value;\n }\n\n countBefore(text: string, caret: number): number {\n let count = 0;\n let decimalSeen = false;\n for (const char of this.strip(text.slice(0, caret))) {\n if (/\\d/.test(char)) {\n count += 1;\n } else if (!decimalSeen && this.isDecimal(char)) {\n decimalSeen = true;\n count += 1;\n }\n }\n return count;\n }\n\n caretFor(display: string, count: number): number {\n const start = (display.startsWith('-') ? 1 : 0) + this.before.length;\n if (count <= 0) {\n return start;\n }\n let seen = 0;\n for (let index = start; index < display.length - this.after.length; index += 1) {\n if (/\\d/.test(display[index]) || display[index] === this.decimal) {\n seen += 1;\n if (seen === count) {\n return index + 1;\n }\n }\n }\n return display.length - this.after.length;\n }\n\n private read(text: string): TxNumberRead {\n const negative = text.includes('-');\n let digits = '';\n let fraction: string | null = null;\n for (const char of this.strip(text)) {\n if (/\\d/.test(char)) {\n if (fraction === null) {\n digits += char;\n } else {\n fraction += char;\n }\n } else if (fraction === null && this.maxFraction > 0 && this.isDecimal(char)) {\n fraction = '';\n }\n }\n return { negative, digits, fraction };\n }\n\n private strip(text: string): string {\n let body = text.replace('-', '');\n if (this.before && body.startsWith(this.before)) {\n body = body.slice(this.before.length);\n }\n if (this.after && body.endsWith(this.after)) {\n body = body.slice(0, -this.after.length);\n }\n return body;\n }\n\n private isDecimal(char: string): boolean {\n return char === this.decimal || (this.decimal === ',' && char === '.' && this.group !== '.');\n }\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n DestroyRef,\n ElementRef,\n booleanAttribute,\n computed,\n effect,\n forwardRef,\n inject,\n input,\n numberAttribute,\n output,\n signal,\n viewChild,\n} from '@angular/core';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { uniqueId } from '@tectra-ng/core/a11y';\nimport { TxPassThrough, TxPassThroughOptions, injectPassThrough, injectUnstyled } from '@tectra-ng/core/config';\nimport { injectFluid } from '@tectra-ng/core/fluid';\nimport { TxFormControlBase, injectFieldInvalid } from '@tectra-ng/core/forms';\nimport { TxLocaleService, injectTranslations } from '@tectra-ng/core/i18n';\nimport { optionalBoolean, optionalNumber } from '@tectra-ng/core/utils';\nimport { TxIcon, TxIconName, TxIconRegistry } from '@tectra-ng/icons';\nimport { TectraDeepPartial, TectraInputNumberTokens, toStyleObject } from '@tectra-ng/themes';\nimport { TxInput } from '@tectra-ng/ui/input';\nimport {\n TxInputNumberButtonLayout,\n TxInputNumberChangeEvent,\n TxInputNumberCurrencyDisplay,\n TxInputNumberMode,\n TxInputNumberPart,\n TxInputNumberSize,\n TxInputNumberVariant,\n} from './input-number.types';\nimport { TxNumberFormat } from './number-format';\n\nconst REPEAT_DELAY = 400;\nconst REPEAT_INTERVAL = 60;\n\n@Component({\n selector: 'tx-input-number',\n imports: [TxInput, TxIcon, NgTemplateOutlet],\n templateUrl: './input-number.component.html',\n styleUrl: './input-number.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => TxInputNumber), multi: true }],\n host: {\n class: 'tx-input-number',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.data-layout]': 'showButtons() ? buttonLayout() : null',\n '[attr.data-size]': 'size()',\n '[class.tx-input-number--fluid]': 'isFluid()',\n '[class.tx-input-number--filled]': 'value() !== null',\n '[class.tx-input-number--invalid]': 'isInvalid()',\n '[class.tx-input-number--disabled]': 'isDisabled()',\n },\n})\nexport class TxInputNumber extends TxFormControlBase<number> {\n private txIconRegistry = inject(TxIconRegistry);\n private localeService = inject(TxLocaleService);\n private generatedId = uniqueId('tx-input-number');\n private repeatTimer: ReturnType<typeof setTimeout> | null = null;\n\n readonly mode = input<TxInputNumberMode>('decimal');\n readonly currency = input<string | undefined>(undefined);\n readonly currencyDisplay = input<TxInputNumberCurrencyDisplay>('symbol');\n readonly locale = input<string | undefined>(undefined);\n readonly useGrouping = input<boolean, unknown>(true, { transform: booleanAttribute });\n readonly minFractionDigits = input<number | undefined, unknown>(undefined, { transform: optionalNumber });\n readonly maxFractionDigits = input<number | undefined, unknown>(undefined, { transform: optionalNumber });\n readonly prefix = input<string | undefined>(undefined);\n readonly suffix = input<string | undefined>(undefined);\n readonly min = input<number | undefined, unknown>(undefined, { transform: optionalNumber });\n readonly max = input<number | undefined, unknown>(undefined, { transform: optionalNumber });\n readonly step = input<number, unknown>(1, { transform: numberAttribute });\n readonly showButtons = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly buttonLayout = input<TxInputNumberButtonLayout>('stacked');\n readonly incrementIcon = input<TxIconName | (string & {}) | undefined>(undefined);\n readonly decrementIcon = input<TxIconName | (string & {}) | undefined>(undefined);\n readonly allowEmpty = input<boolean, unknown>(true, { transform: booleanAttribute });\n readonly showClear = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly placeholder = input<string | undefined>(undefined);\n readonly size = input<TxInputNumberSize>('medium');\n readonly variant = input<TxInputNumberVariant>('outlined');\n readonly fluid = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n readonly invalid = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n // eslint-disable-next-line @angular-eslint/no-input-rename\n readonly disabledInput = input<boolean, unknown>(false, { alias: 'disabled', transform: booleanAttribute });\n readonly readonly = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly required = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly name = input<string | undefined>(undefined);\n readonly inputId = input<string | undefined>(undefined);\n readonly ariaLabel = input<string | undefined>(undefined);\n readonly ariaLabelledBy = input<string | undefined>(undefined);\n readonly tabindex = input<number | undefined, unknown>(undefined, { transform: optionalNumber });\n readonly dt = input<TectraDeepPartial<TectraInputNumberTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxInputNumberPart, TxInputNumber> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly changed = output<TxInputNumberChangeEvent>();\n readonly cleared = output<void>();\n\n readonly inputRef = viewChild.required<ElementRef<HTMLInputElement>>('input');\n\n readonly translations = injectTranslations();\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly isFluid = injectFluid(this.fluid);\n readonly isInvalid = injectFieldInvalid(this.invalid);\n readonly passThrough = injectPassThrough('inputNumber', this, this.pt, this.ptOptions);\n\n readonly isFocused = signal(false);\n readonly resolvedId = computed(() => this.inputId() ?? this.generatedId);\n readonly isDisabled = computed(() => this.disabled() || this.disabledInput());\n readonly isEditable = computed(() => !this.isDisabled() && !this.readonly());\n readonly format = computed(\n () =>\n new TxNumberFormat({\n locale: this.locale() ?? this.localeService.locale().intl,\n mode: this.mode(),\n currency: this.currency(),\n currencyDisplay: this.currencyDisplay(),\n useGrouping: this.useGrouping(),\n minFractionDigits: this.minFractionDigits(),\n maxFractionDigits: this.maxFractionDigits(),\n prefix: this.prefix(),\n suffix: this.suffix(),\n }),\n );\n readonly canIncrement = computed(() => this.isEditable() && (this.max() === undefined || (this.value() ?? 0) < (this.max() as number)));\n readonly canDecrement = computed(() => this.isEditable() && (this.min() === undefined || (this.value() ?? 0) > (this.min() as number)));\n readonly incrementIconName = computed(() => this.iconName(this.incrementIcon(), this.buttonLayout() === 'stacked' ? 'chevron-up' : 'plus'));\n readonly decrementIconName = computed(() => this.iconName(this.decrementIcon(), this.buttonLayout() === 'stacked' ? 'chevron-down' : 'minus'));\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-input-number'), ...this.passThrough().root?.style }));\n\n constructor() {\n super();\n effect(() => {\n this.format();\n if (!this.isFocused()) {\n this.paint(this.format().format(this.value()));\n }\n });\n inject(DestroyRef).onDestroy(() => this.stopRepeat());\n }\n\n override writeValue(value: number | null): void {\n super.writeValue(typeof value === 'number' && !Number.isNaN(value) ? value : null);\n queueMicrotask(() => this.paint(this.format().format(this.value())));\n }\n\n focus(): void {\n this.inputRef().nativeElement.focus();\n }\n\n onInput(event: Event): void {\n const element = this.inputRef().nativeElement;\n const format = this.format();\n const count = format.countBefore(element.value, element.selectionStart ?? element.value.length);\n const typed = format.formatTyping(this.allowsNegative() ? element.value : element.value.replace('-', ''));\n this.paint(typed.display);\n element.setSelectionRange(format.caretFor(typed.display, count), format.caretFor(typed.display, count));\n this.commit(typed.value, event);\n }\n\n onKeydown(event: KeyboardEvent): void {\n if (!this.isEditable()) {\n return;\n }\n switch (event.key) {\n case 'ArrowUp':\n event.preventDefault();\n this.spin(1, event);\n break;\n case 'ArrowDown':\n event.preventDefault();\n this.spin(-1, event);\n break;\n case 'Home':\n if (this.min() !== undefined) {\n event.preventDefault();\n this.commit(this.min() as number, event, true);\n }\n break;\n case 'End':\n if (this.max() !== undefined) {\n event.preventDefault();\n this.commit(this.max() as number, event, true);\n }\n break;\n case 'Enter':\n this.finish(event);\n break;\n }\n }\n\n onFocus(): void {\n this.isFocused.set(true);\n }\n\n onBlur(event: Event): void {\n this.isFocused.set(false);\n this.finish(event);\n this.markTouched();\n }\n\n startRepeat(direction: 1 | -1, event: PointerEvent): void {\n if (event.button !== 0 || !this.isEditable()) {\n return;\n }\n event.preventDefault();\n this.focus();\n this.spin(direction, event);\n this.stopRepeat();\n const repeat = (delay: number) => {\n this.repeatTimer = setTimeout(() => {\n this.spin(direction, event);\n repeat(REPEAT_INTERVAL);\n }, delay);\n };\n repeat(REPEAT_DELAY);\n }\n\n stopRepeat(): void {\n if (this.repeatTimer) {\n clearTimeout(this.repeatTimer);\n this.repeatTimer = null;\n }\n }\n\n clear(event: Event): void {\n this.commit(this.allowEmpty() ? null : (this.min() ?? 0), event, true);\n this.cleared.emit();\n this.focus();\n }\n\n private spin(direction: 1 | -1, event: Event): void {\n const current = this.value() ?? 0;\n const precision = Math.max(decimals(this.step()), decimals(current));\n const next = Number((current + direction * this.step()).toFixed(precision));\n this.commit(this.clamp(next), event, true);\n if ((direction === 1 && !this.canIncrement()) || (direction === -1 && !this.canDecrement())) {\n this.stopRepeat();\n }\n }\n\n private finish(event: Event): void {\n let next = this.value();\n if (next === null && !this.allowEmpty()) {\n next = this.min() ?? 0;\n }\n next = next === null ? null : this.clamp(next);\n this.commit(next, event, true);\n }\n\n private commit(value: number | null, event: Event, repaint = false): void {\n if (repaint) {\n this.paint(this.format().format(value));\n }\n if (value !== this.value()) {\n this.updateValue(value);\n this.changed.emit({ value, originalEvent: event });\n }\n }\n\n private clamp(value: number): number {\n const min = this.min();\n const max = this.max();\n return Math.min(max ?? Infinity, Math.max(min ?? -Infinity, value));\n }\n\n private allowsNegative(): boolean {\n const min = this.min();\n return min === undefined || min < 0;\n }\n\n private paint(text: string): void {\n const element = this.inputRef().nativeElement;\n if (element.value !== text) {\n element.value = text;\n }\n }\n\n private iconName(icon: string | undefined, fallback: string): { name: string | null; className: string | null } {\n const resolved = icon ?? fallback;\n return this.txIconRegistry.has(resolved) ? { name: resolved, className: null } : { name: null, className: resolved };\n }\n}\n\nfunction decimals(value: number): number {\n const text = String(value);\n return text.includes('.') ? text.split('.')[1].length : 0;\n}\n","@if (showButtons() && buttonLayout() !== 'stacked') {\n <button\n type=\"button\"\n tabindex=\"-1\"\n class=\"tx-input-number__button tx-input-number__decrement\"\n [class]=\"passThrough().decrement?.class\"\n [style]=\"passThrough().decrement?.style\"\n [attr.aria-label]=\"translations().decrement\"\n [disabled]=\"!canDecrement()\"\n (pointerdown)=\"startRepeat(-1, $event)\"\n (pointerup)=\"stopRepeat()\"\n (pointerleave)=\"stopRepeat()\"\n (pointercancel)=\"stopRepeat()\"\n >\n @if (decrementIconName().name; as name) {\n <tx-icon [name]=\"name\" />\n } @else {\n <span [class]=\"decrementIconName().className\"></span>\n }\n </button>\n}\n<input\n #input\n txInput\n type=\"text\"\n role=\"spinbutton\"\n inputmode=\"decimal\"\n autocomplete=\"off\"\n class=\"tx-input-number__input\"\n [class]=\"passThrough().input?.class\"\n [style]=\"passThrough().input?.style\"\n [id]=\"resolvedId()\"\n [size]=\"size()\"\n [variant]=\"variant()\"\n [fluid]=\"true\"\n [invalid]=\"isInvalid()\"\n [unstyled]=\"isUnstyled()\"\n [disabled]=\"isDisabled()\"\n [readOnly]=\"readonly()\"\n [required]=\"required()\"\n [attr.placeholder]=\"placeholder() ?? null\"\n [attr.name]=\"name() ?? null\"\n [attr.tabindex]=\"tabindex() ?? null\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() ?? null\"\n [attr.aria-valuenow]=\"value() ?? null\"\n [attr.aria-valuemin]=\"min() ?? null\"\n [attr.aria-valuemax]=\"max() ?? null\"\n (input)=\"onInput($event)\"\n (keydown)=\"onKeydown($event)\"\n (focus)=\"onFocus()\"\n (blur)=\"onBlur($event)\"\n/>\n@if (showClear() && value() !== null && isEditable()) {\n <button\n type=\"button\"\n class=\"tx-input-number__clear\"\n [class]=\"passThrough().clear?.class\"\n [style]=\"passThrough().clear?.style\"\n [attr.aria-label]=\"translations().clear\"\n [title]=\"translations().clear\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"clear($event)\"\n >\n <tx-icon [name]=\"'times'\" />\n </button>\n}\n@if (showButtons()) {\n @if (buttonLayout() === 'stacked') {\n <span class=\"tx-input-number__stack\">\n <ng-container [ngTemplateOutlet]=\"increment\" />\n <ng-container [ngTemplateOutlet]=\"decrement\" />\n </span>\n } @else {\n <ng-container [ngTemplateOutlet]=\"increment\" />\n }\n}\n\n<ng-template #increment>\n <button\n type=\"button\"\n tabindex=\"-1\"\n class=\"tx-input-number__button tx-input-number__increment\"\n [class]=\"passThrough().increment?.class\"\n [style]=\"passThrough().increment?.style\"\n [attr.aria-label]=\"translations().increment\"\n [disabled]=\"!canIncrement()\"\n (pointerdown)=\"startRepeat(1, $event)\"\n (pointerup)=\"stopRepeat()\"\n (pointerleave)=\"stopRepeat()\"\n (pointercancel)=\"stopRepeat()\"\n >\n @if (incrementIconName().name; as name) {\n <tx-icon [name]=\"name\" />\n } @else {\n <span [class]=\"incrementIconName().className\"></span>\n }\n </button>\n</ng-template>\n<ng-template #decrement>\n <button\n type=\"button\"\n tabindex=\"-1\"\n class=\"tx-input-number__button tx-input-number__decrement\"\n [class]=\"passThrough().decrement?.class\"\n [style]=\"passThrough().decrement?.style\"\n [attr.aria-label]=\"translations().decrement\"\n [disabled]=\"!canDecrement()\"\n (pointerdown)=\"startRepeat(-1, $event)\"\n (pointerup)=\"stopRepeat()\"\n (pointerleave)=\"stopRepeat()\"\n (pointercancel)=\"stopRepeat()\"\n >\n @if (decrementIconName().name; as name) {\n <tx-icon [name]=\"name\" />\n } @else {\n <span [class]=\"decrementIconName().className\"></span>\n }\n </button>\n</ng-template>\n"],"mappings":";;;;;;;;;;;;;AAkBA,MAAM,eAAe;CAAC;CAAW;CAAS;CAAW;AAAU;AAE/D,IAAa,iBAAb,MAA2B;CAChB;CACA;CACA;CACA;CACA;CACD;CACA;CAER,YAAY,SAA8B;EACxC,MAAM,QACJ,QAAQ,SAAS,aACb;GAAE,OAAO;GAAY,UAAU,QAAQ,YAAY;GAAO,iBAAiB,QAAQ,mBAAmB;EAAQ,IAC9G,EAAE,OAAO,UAAS;EACxB,MAAM,WAAW,IAAI,KAAK,aAAa,QAAQ,QAAQ,KAAK,CAAC,CAAC,gBAAe;EAC7E,MAAM,WAAW,QAAQ,SAAS;EAClC,MAAM,MAAM,QAAQ,sBAAsB,WAAY,SAAS,yBAAyB,IAAK;EAC7F,MAAM,MAAM,KAAK,IAAI,KAAK,QAAQ,sBAAsB,WAAY,SAAS,yBAAyB,IAAK,EAAE;EAC7G,KAAK,OAAO,IAAI,KAAK,aAAa,QAAQ,QAAQ;GAAE,GAAG;GAAO,aAAa,QAAQ;GAAa,uBAAuB;GAAK,uBAAuB;EAAG,CAAE;E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ribute, computed, forwardRef, input, numberAttribute, output, signal, viewChildren } from "@angular/core";
3
+ import { NG_VALUE_ACCESSOR } from "@angular/forms";
4
+ import { uniqueId } from "@tectra-ng/core/a11y";
5
+ import { injectPassThrough, injectUnstyled } from "@tectra-ng/core/config";
6
+ import { TxFormControlBase, injectFieldInvalid } from "@tectra-ng/core/forms";
7
+ import { injectTranslations } from "@tectra-ng/core/i18n";
8
+ import { optionalBoolean, optionalNumber } from "@tectra-ng/core/utils";
9
+ import { toStyleObject } from "@tectra-ng/themes";
10
+ import { TxInput } from "@tectra-ng/ui/input";
11
+ var TxInputOtp = class TxInputOtp extends TxFormControlBase {
12
+ generatedId = uniqueId("tx-input-otp");
13
+ length = input(6, {
14
+ ...ngDevMode ? { debugName: "length" } : /* istanbul ignore next */ {},
15
+ transform: numberAttribute
16
+ });
17
+ integerOnly = input(false, {
18
+ ...ngDevMode ? { debugName: "integerOnly" } : /* istanbul ignore next */ {},
19
+ transform: booleanAttribute
20
+ });
21
+ mask = input(false, {
22
+ ...ngDevMode ? { debugName: "mask" } : /* istanbul ignore next */ {},
23
+ transform: booleanAttribute
24
+ });
25
+ groupSize = input(void 0, {
26
+ ...ngDevMode ? { debugName: "groupSize" } : /* istanbul ignore next */ {},
27
+ transform: optionalNumber
28
+ });
29
+ autoFocus = input(false, {
30
+ ...ngDevMode ? { debugName: "autoFocus" } : /* istanbul ignore next */ {},
31
+ transform: booleanAttribute
32
+ });
33
+ size = input("medium", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
34
+ variant = input("outlined", ...ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []);
35
+ invalid = input(void 0, {
36
+ ...ngDevMode ? { debugName: "invalid" } : /* istanbul ignore next */ {},
37
+ transform: optionalBoolean
38
+ });
39
+ disabledInput = input(false, {
40
+ ...ngDevMode ? { debugName: "disabledInput" } : /* istanbul ignore next */ {},
41
+ alias: "disabled",
42
+ transform: booleanAttribute
43
+ });
44
+ readonly = input(false, {
45
+ ...ngDevMode ? { debugName: "readonly" } : /* istanbul ignore next */ {},
46
+ transform: booleanAttribute
47
+ });
48
+ name = input(void 0, ...ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []);
49
+ inputId = input(void 0, ...ngDevMode ? [{ debugName: "inputId" }] : /* istanbul ignore next */ []);
50
+ ariaLabel = input(void 0, ...ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
51
+ ariaLabelledBy = input(void 0, ...ngDevMode ? [{ debugName: "ariaLabelledBy" }] : /* istanbul ignore next */ []);
52
+ dt = input(void 0, ...ngDevMode ? [{ debugName: "dt" }] : /* istanbul ignore next */ []);
53
+ pt = input(void 0, ...ngDevMode ? [{ debugName: "pt" }] : /* istanbul ignore next */ []);
54
+ ptOptions = input(void 0, ...ngDevMode ? [{ debugName: "ptOptions" }] : /* istanbul ignore next */ []);
55
+ unstyled = input(void 0, {
56
+ ...ngDevMode ? { debugName: "unstyled" } : /* istanbul ignore next */ {},
57
+ transform: optionalBoolean
58
+ });
59
+ completed = output();
60
+ cells = viewChildren("cell", ...ngDevMode ? [{ debugName: "cells" }] : /* istanbul ignore next */ []);
61
+ translations = injectTranslations();
62
+ isUnstyled = injectUnstyled(this.unstyled);
63
+ passThrough = injectPassThrough("inputOtp", this, this.pt, this.ptOptions);
64
+ isInvalid = injectFieldInvalid(this.invalid);
65
+ chars = signal([], ...ngDevMode ? [{ debugName: "chars" }] : /* istanbul ignore next */ []);
66
+ indexes = computed(() => Array.from({ length: Math.max(1, this.length()) }, (_, index) => index), ...ngDevMode ? [{ debugName: "indexes" }] : /* istanbul ignore next */ []);
67
+ isDisabled = computed(() => this.disabled() || this.disabledInput(), ...ngDevMode ? [{ debugName: "isDisabled" }] : /* istanbul ignore next */ []);
68
+ isComplete = computed(() => this.indexes().every((index) => !!this.chars()[index]), ...ngDevMode ? [{ debugName: "isComplete" }] : /* istanbul ignore next */ []);
69
+ firstId = computed(() => this.inputId() ?? this.generatedId, ...ngDevMode ? [{ debugName: "firstId" }] : /* istanbul ignore next */ []);
70
+ hostStyle = computed(() => ({
71
+ ...toStyleObject(this.dt(), "--tx-input-otp"),
72
+ ...this.passThrough().root?.style
73
+ }), ...ngDevMode ? [{ debugName: "hostStyle" }] : /* istanbul ignore next */ []);
74
+ constructor() {
75
+ super();
76
+ afterNextRender(() => {
77
+ if (this.autoFocus()) this.focusCell(0);
78
+ });
79
+ }
80
+ writeValue(value) {
81
+ super.writeValue(value);
82
+ this.chars.set(Array.from(this.clean(value ?? "")).slice(0, this.length()));
83
+ }
84
+ hasSeparator(index) {
85
+ const size = this.groupSize();
86
+ return !!size && index > 0 && index % size === 0;
87
+ }
88
+ cellLabel(index) {
89
+ return this.translations().otpCell.replace("{index}", String(index + 1)).replace("{length}", String(this.length()));
90
+ }
91
+ focus() {
92
+ this.focusCell(Math.min(this.chars().filter(Boolean).length, this.length() - 1));
93
+ }
94
+ onInput(event, index) {
95
+ const element = event.target;
96
+ const typed = this.clean(element.value);
97
+ if (!typed) {
98
+ element.value = this.chars()[index] ?? "";
99
+ if (!element.value) this.setChars(index, [""]);
100
+ return;
101
+ }
102
+ const incoming = typed.length > 1 && this.chars()[index] && typed.startsWith(this.chars()[index]) ? typed.slice(1) : typed;
103
+ this.fillFrom(index, incoming);
104
+ }
105
+ onPaste(event, index) {
106
+ event.preventDefault();
107
+ const text = this.clean(event.clipboardData?.getData("text") ?? "");
108
+ if (text) this.fillFrom(index, text);
109
+ }
110
+ onKeydown(event, index) {
111
+ const last = this.length() - 1;
112
+ switch (event.key) {
113
+ case "Backspace":
114
+ if (!this.chars()[index] && index > 0) {
115
+ event.preventDefault();
116
+ this.setChars(index - 1, [""]);
117
+ this.focusCell(index - 1);
118
+ }
119
+ break;
120
+ case "Delete":
121
+ event.preventDefault();
122
+ this.setChars(index, [""]);
123
+ break;
124
+ case "ArrowLeft":
125
+ event.preventDefault();
126
+ this.focusCell(Math.max(0, index - 1));
127
+ break;
128
+ case "ArrowRight":
129
+ event.preventDefault();
130
+ this.focusCell(Math.min(last, index + 1));
131
+ break;
132
+ case "Home":
133
+ event.preventDefault();
134
+ this.focusCell(0);
135
+ break;
136
+ case "End":
137
+ event.preventDefault();
138
+ this.focusCell(last);
139
+ }
140
+ }
141
+ onFocus(event) {
142
+ event.target.select();
143
+ }
144
+ onBlur() {
145
+ this.markTouched();
146
+ }
147
+ fillFrom(index, text) {
148
+ const chars = Array.from(text).slice(0, this.length() - index);
149
+ this.setChars(index, chars);
150
+ this.focusCell(Math.min(index + chars.length, this.length() - 1));
151
+ }
152
+ setChars(index, values) {
153
+ const next = this.indexes().map((position) => this.chars()[position] ?? "");
154
+ values.forEach((value, offset) => next[index + offset] = value);
155
+ this.chars.set(next);
156
+ this.syncCells();
157
+ const value = next.join("");
158
+ this.updateValue(value);
159
+ if (this.isComplete()) this.completed.emit(value);
160
+ }
161
+ syncCells() {
162
+ this.cells().forEach((cell, position) => cell.nativeElement.value = this.chars()[position] ?? "");
163
+ }
164
+ focusCell(index) {
165
+ const cell = this.cells()[index]?.nativeElement;
166
+ cell?.focus();
167
+ cell?.select();
168
+ }
169
+ clean(text) {
170
+ const compact = text.replace(/\s/g, "");
171
+ return this.integerOnly() ? compact.replace(/\D/g, "") : compact;
172
+ }
173
+ static ɵfac = i0.ɵɵngDeclareFactory({
174
+ minVersion: "12.0.0",
175
+ version: "22.2.3",
176
+ ngImport: i0,
177
+ type: TxInputOtp,
178
+ deps: [],
179
+ target: i0.ɵɵFactoryTarget.Component
180
+ });
181
+ static ɵcmp = i0.ɵɵngDeclareComponent({
182
+ minVersion: "17.0.0",
183
+ version: "22.2.3",
184
+ type: TxInputOtp,
185
+ isStandalone: true,
186
+ selector: "tx-input-otp",
187
+ inputs: {
188
+ length: {
189
+ classPropertyName: "length",
190
+ publicName: "length",
191
+ isSignal: true,
192
+ isRequired: false,
193
+ transformFunction: null
194
+ },
195
+ integerOnly: {
196
+ classPropertyName: "integerOnly",
197
+ publicName: "integerOnly",
198
+ isSignal: true,
199
+ isRequired: false,
200
+ transformFunction: null
201
+ },
202
+ mask: {
203
+ classPropertyName: "mask",
204
+ publicName: "mask",
205
+ isSignal: true,
206
+ isRequired: false,
207
+ transformFunction: null
208
+ },
209
+ groupSize: {
210
+ classPropertyName: "groupSize",
211
+ publicName: "groupSize",
212
+ isSignal: true,
213
+ isRequired: false,
214
+ transformFunction: null
215
+ },
216
+ autoFocus: {
217
+ classPropertyName: "autoFocus",
218
+ publicName: "autoFocus",
219
+ isSignal: true,
220
+ isRequired: false,
221
+ transformFunction: null
222
+ },
223
+ size: {
224
+ classPropertyName: "size",
225
+ publicName: "size",
226
+ isSignal: true,
227
+ isRequired: false,
228
+ transformFunction: null
229
+ },
230
+ variant: {
231
+ classPropertyName: "variant",
232
+ publicName: "variant",
233
+ isSignal: true,
234
+ isRequired: false,
235
+ transformFunction: null
236
+ },
237
+ invalid: {
238
+ classPropertyName: "invalid",
239
+ publicName: "invalid",
240
+ isSignal: true,
241
+ isRequired: false,
242
+ transformFunction: null
243
+ },
244
+ disabledInput: {
245
+ classPropertyName: "disabledInput",
246
+ publicName: "disabled",
247
+ isSignal: true,
248
+ isRequired: false,
249
+ transformFunction: null
250
+ },
251
+ readonly: {
252
+ classPropertyName: "readonly",
253
+ publicName: "readonly",
254
+ isSignal: true,
255
+ isRequired: false,
256
+ transformFunction: null
257
+ },
258
+ name: {
259
+ classPropertyName: "name",
260
+ publicName: "name",
261
+ isSignal: true,
262
+ isRequired: false,
263
+ transformFunction: null
264
+ },
265
+ inputId: {
266
+ classPropertyName: "inputId",
267
+ publicName: "inputId",
268
+ isSignal: true,
269
+ isRequired: false,
270
+ transformFunction: null
271
+ },
272
+ ariaLabel: {
273
+ classPropertyName: "ariaLabel",
274
+ publicName: "ariaLabel",
275
+ isSignal: true,
276
+ isRequired: false,
277
+ transformFunction: null
278
+ },
279
+ ariaLabelledBy: {
280
+ classPropertyName: "ariaLabelledBy",
281
+ publicName: "ariaLabelledBy",
282
+ isSignal: true,
283
+ isRequired: false,
284
+ transformFunction: null
285
+ },
286
+ dt: {
287
+ classPropertyName: "dt",
288
+ publicName: "dt",
289
+ isSignal: true,
290
+ isRequired: false,
291
+ transformFunction: null
292
+ },
293
+ pt: {
294
+ classPropertyName: "pt",
295
+ publicName: "pt",
296
+ isSignal: true,
297
+ isRequired: false,
298
+ transformFunction: null
299
+ },
300
+ ptOptions: {
301
+ classPropertyName: "ptOptions",
302
+ publicName: "ptOptions",
303
+ isSignal: true,
304
+ isRequired: false,
305
+ transformFunction: null
306
+ },
307
+ unstyled: {
308
+ classPropertyName: "unstyled",
309
+ publicName: "unstyled",
310
+ isSignal: true,
311
+ isRequired: false,
312
+ transformFunction: null
313
+ }
314
+ },
315
+ outputs: { completed: "completed" },
316
+ host: {
317
+ attributes: { "role": "group" },
318
+ properties: {
319
+ "class": "passThrough().root?.class",
320
+ "style": "hostStyle()",
321
+ "attr.data-styled": "!isUnstyled() || null",
322
+ "attr.data-size": "size()",
323
+ "attr.aria-label": "ariaLabel() ?? null",
324
+ "attr.aria-labelledby": "ariaLabelledBy() ?? null",
325
+ "class.tx-input-otp--invalid": "isInvalid()",
326
+ "class.tx-input-otp--filled": "isComplete()"
327
+ },
328
+ classAttribute: "tx-input-otp"
329
+ },
330
+ providers: [{
331
+ provide: NG_VALUE_ACCESSOR,
332
+ useExisting: forwardRef(() => TxInputOtp),
333
+ multi: true
334
+ }],
335
+ viewQueries: [{
336
+ propertyName: "cells",
337
+ predicate: ["cell"],
338
+ descendants: true,
339
+ isSignal: true
340
+ }],
341
+ usesInheritance: true,
342
+ ngImport: i0,
343
+ template: "@for (index of indexes(); track index) {\n @if (hasSeparator(index)) {\n <span class=\"tx-input-otp__separator\" aria-hidden=\"true\" [class]=\"passThrough().separator?.class\" [style]=\"passThrough().separator?.style\">–</span>\n }\n <input\n #cell\n txInput\n class=\"tx-input-otp__cell\"\n [class]=\"passThrough().cell?.class\"\n [style]=\"passThrough().cell?.style\"\n [type]=\"mask() ? 'password' : 'text'\"\n [value]=\"chars()[index] ?? ''\"\n [id]=\"index === 0 ? firstId() : firstId() + '-' + index\"\n [size]=\"size()\"\n [variant]=\"variant()\"\n [invalid]=\"isInvalid()\"\n [unstyled]=\"isUnstyled()\"\n [disabled]=\"isDisabled()\"\n [readOnly]=\"readonly()\"\n [attr.name]=\"name() ? name() + '-' + index : null\"\n [attr.inputmode]=\"integerOnly() ? 'numeric' : 'text'\"\n [attr.autocomplete]=\"index === 0 ? 'one-time-code' : 'off'\"\n [attr.aria-label]=\"cellLabel(index)\"\n (input)=\"onInput($event, index)\"\n (paste)=\"onPaste($event, index)\"\n (keydown)=\"onKeydown($event, index)\"\n (focus)=\"onFocus($event)\"\n (blur)=\"onBlur()\"\n />\n}\n",
344
+ styles: [":host{display:inline-flex;align-items:center;vertical-align:top}:host([data-styled]){--_cell-width: var(--tx-input-otp-cell-width);--_cell-font-size: var(--tx-input-otp-cell-font-size);gap:var(--tx-input-otp-gap)}:host([data-styled][data-size=small]){--_cell-width: var(--tx-input-otp-sm-cell-width);--_cell-font-size: var(--tx-input-otp-sm-cell-font-size);gap:var(--tx-input-otp-sm-gap)}:host([data-styled][data-size=large]){--_cell-width: var(--tx-input-otp-lg-cell-width);--_cell-font-size: var(--tx-input-otp-lg-cell-font-size);gap:var(--tx-input-otp-lg-gap)}:host([data-styled]) .tx-input-otp__cell{width:var(--_cell-width);padding-inline:0;font-size:var(--_cell-font-size);font-weight:var(--tx-input-otp-cell-font-weight);font-variant-numeric:tabular-nums;text-align:center}:host([data-styled]) .tx-input-otp__separator{display:inline-flex;justify-content:center;width:var(--tx-input-otp-separator-width);color:var(--tx-input-otp-separator-color)}\n"],
345
+ dependencies: [{
346
+ kind: "directive",
347
+ type: TxInput,
348
+ selector: "input[txInput], textarea[txInput]",
349
+ inputs: [
350
+ "invalid",
351
+ "size",
352
+ "variant",
353
+ "fluid",
354
+ "dt",
355
+ "pt",
356
+ "ptOptions",
357
+ "unstyled"
358
+ ]
359
+ }],
360
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
361
+ });
362
+ };
363
+ i0.ɵɵngDeclareClassMetadata({
364
+ minVersion: "12.0.0",
365
+ version: "22.2.3",
366
+ ngImport: i0,
367
+ type: TxInputOtp,
368
+ decorators: [{
369
+ type: Component,
370
+ args: [{
371
+ selector: "tx-input-otp",
372
+ imports: [TxInput],
373
+ changeDetection: ChangeDetectionStrategy.OnPush,
374
+ providers: [{
375
+ provide: NG_VALUE_ACCESSOR,
376
+ useExisting: forwardRef(() => TxInputOtp),
377
+ multi: true
378
+ }],
379
+ host: {
380
+ class: "tx-input-otp",
381
+ role: "group",
382
+ "[class]": "passThrough().root?.class",
383
+ "[style]": "hostStyle()",
384
+ "[attr.data-styled]": "!isUnstyled() || null",
385
+ "[attr.data-size]": "size()",
386
+ "[attr.aria-label]": "ariaLabel() ?? null",
387
+ "[attr.aria-labelledby]": "ariaLabelledBy() ?? null",
388
+ "[class.tx-input-otp--invalid]": "isInvalid()",
389
+ "[class.tx-input-otp--filled]": "isComplete()"
390
+ },
391
+ template: "@for (index of indexes(); track index) {\n @if (hasSeparator(index)) {\n <span class=\"tx-input-otp__separator\" aria-hidden=\"true\" [class]=\"passThrough().separator?.class\" [style]=\"passThrough().separator?.style\">–</span>\n }\n <input\n #cell\n txInput\n class=\"tx-input-otp__cell\"\n [class]=\"passThrough().cell?.class\"\n [style]=\"passThrough().cell?.style\"\n [type]=\"mask() ? 'password' : 'text'\"\n [value]=\"chars()[index] ?? ''\"\n [id]=\"index === 0 ? firstId() : firstId() + '-' + index\"\n [size]=\"size()\"\n [variant]=\"variant()\"\n [invalid]=\"isInvalid()\"\n [unstyled]=\"isUnstyled()\"\n [disabled]=\"isDisabled()\"\n [readOnly]=\"readonly()\"\n [attr.name]=\"name() ? name() + '-' + index : null\"\n [attr.inputmode]=\"integerOnly() ? 'numeric' : 'text'\"\n [attr.autocomplete]=\"index === 0 ? 'one-time-code' : 'off'\"\n [attr.aria-label]=\"cellLabel(index)\"\n (input)=\"onInput($event, index)\"\n (paste)=\"onPaste($event, index)\"\n (keydown)=\"onKeydown($event, index)\"\n (focus)=\"onFocus($event)\"\n (blur)=\"onBlur()\"\n />\n}\n",
392
+ styles: [":host{display:inline-flex;align-items:center;vertical-align:top}:host([data-styled]){--_cell-width: var(--tx-input-otp-cell-width);--_cell-font-size: var(--tx-input-otp-cell-font-size);gap:var(--tx-input-otp-gap)}:host([data-styled][data-size=small]){--_cell-width: var(--tx-input-otp-sm-cell-width);--_cell-font-size: var(--tx-input-otp-sm-cell-font-size);gap:var(--tx-input-otp-sm-gap)}:host([data-styled][data-size=large]){--_cell-width: var(--tx-input-otp-lg-cell-width);--_cell-font-size: var(--tx-input-otp-lg-cell-font-size);gap:var(--tx-input-otp-lg-gap)}:host([data-styled]) .tx-input-otp__cell{width:var(--_cell-width);padding-inline:0;font-size:var(--_cell-font-size);font-weight:var(--tx-input-otp-cell-font-weight);font-variant-numeric:tabular-nums;text-align:center}:host([data-styled]) .tx-input-otp__separator{display:inline-flex;justify-content:center;width:var(--tx-input-otp-separator-width);color:var(--tx-input-otp-separator-color)}\n"]
393
+ }]
394
+ }],
395
+ ctorParameters: () => [],
396
+ propDecorators: {
397
+ length: [{
398
+ type: i0.Input,
399
+ args: [{
400
+ isSignal: true,
401
+ alias: "length",
402
+ required: false
403
+ }]
404
+ }],
405
+ integerOnly: [{
406
+ type: i0.Input,
407
+ args: [{
408
+ isSignal: true,
409
+ alias: "integerOnly",
410
+ required: false
411
+ }]
412
+ }],
413
+ mask: [{
414
+ type: i0.Input,
415
+ args: [{
416
+ isSignal: true,
417
+ alias: "mask",
418
+ required: false
419
+ }]
420
+ }],
421
+ groupSize: [{
422
+ type: i0.Input,
423
+ args: [{
424
+ isSignal: true,
425
+ alias: "groupSize",
426
+ required: false
427
+ }]
428
+ }],
429
+ autoFocus: [{
430
+ type: i0.Input,
431
+ args: [{
432
+ isSignal: true,
433
+ alias: "autoFocus",
434
+ required: false
435
+ }]
436
+ }],
437
+ size: [{
438
+ type: i0.Input,
439
+ args: [{
440
+ isSignal: true,
441
+ alias: "size",
442
+ required: false
443
+ }]
444
+ }],
445
+ variant: [{
446
+ type: i0.Input,
447
+ args: [{
448
+ isSignal: true,
449
+ alias: "variant",
450
+ required: false
451
+ }]
452
+ }],
453
+ invalid: [{
454
+ type: i0.Input,
455
+ args: [{
456
+ isSignal: true,
457
+ alias: "invalid",
458
+ required: false
459
+ }]
460
+ }],
461
+ disabledInput: [{
462
+ type: i0.Input,
463
+ args: [{
464
+ isSignal: true,
465
+ alias: "disabled",
466
+ required: false
467
+ }]
468
+ }],
469
+ readonly: [{
470
+ type: i0.Input,
471
+ args: [{
472
+ isSignal: true,
473
+ alias: "readonly",
474
+ required: false
475
+ }]
476
+ }],
477
+ name: [{
478
+ type: i0.Input,
479
+ args: [{
480
+ isSignal: true,
481
+ alias: "name",
482
+ required: false
483
+ }]
484
+ }],
485
+ inputId: [{
486
+ type: i0.Input,
487
+ args: [{
488
+ isSignal: true,
489
+ alias: "inputId",
490
+ required: false
491
+ }]
492
+ }],
493
+ ariaLabel: [{
494
+ type: i0.Input,
495
+ args: [{
496
+ isSignal: true,
497
+ alias: "ariaLabel",
498
+ required: false
499
+ }]
500
+ }],
501
+ ariaLabelledBy: [{
502
+ type: i0.Input,
503
+ args: [{
504
+ isSignal: true,
505
+ alias: "ariaLabelledBy",
506
+ required: false
507
+ }]
508
+ }],
509
+ dt: [{
510
+ type: i0.Input,
511
+ args: [{
512
+ isSignal: true,
513
+ alias: "dt",
514
+ required: false
515
+ }]
516
+ }],
517
+ pt: [{
518
+ type: i0.Input,
519
+ args: [{
520
+ isSignal: true,
521
+ alias: "pt",
522
+ required: false
523
+ }]
524
+ }],
525
+ ptOptions: [{
526
+ type: i0.Input,
527
+ args: [{
528
+ isSignal: true,
529
+ alias: "ptOptions",
530
+ required: false
531
+ }]
532
+ }],
533
+ unstyled: [{
534
+ type: i0.Input,
535
+ args: [{
536
+ isSignal: true,
537
+ alias: "unstyled",
538
+ required: false
539
+ }]
540
+ }],
541
+ completed: [{
542
+ type: i0.Output,
543
+ args: ["completed"]
544
+ }],
545
+ cells: [{
546
+ type: i0.ViewChildren,
547
+ args: ["cell", { isSignal: true }]
548
+ }]
549
+ }
550
+ });
551
+ export { TxInputOtp };
552
+
553
+ //# sourceMappingURL=tectra-ng-ui-input-otp.mjs.map