@aeris-ui/core 22.0.0-alpha.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 (295) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +189 -0
  3. package/fesm2022/aeris-ui-core-accordion.mjs +412 -0
  4. package/fesm2022/aeris-ui-core-accordion.mjs.map +1 -0
  5. package/fesm2022/aeris-ui-core-animate-on-scroll.mjs +107 -0
  6. package/fesm2022/aeris-ui-core-animate-on-scroll.mjs.map +1 -0
  7. package/fesm2022/aeris-ui-core-auto-complete.mjs +754 -0
  8. package/fesm2022/aeris-ui-core-auto-complete.mjs.map +1 -0
  9. package/fesm2022/aeris-ui-core-auto-focus.mjs +63 -0
  10. package/fesm2022/aeris-ui-core-auto-focus.mjs.map +1 -0
  11. package/fesm2022/aeris-ui-core-avatar.mjs +133 -0
  12. package/fesm2022/aeris-ui-core-avatar.mjs.map +1 -0
  13. package/fesm2022/aeris-ui-core-badge.mjs +163 -0
  14. package/fesm2022/aeris-ui-core-badge.mjs.map +1 -0
  15. package/fesm2022/aeris-ui-core-block-ui.mjs +139 -0
  16. package/fesm2022/aeris-ui-core-block-ui.mjs.map +1 -0
  17. package/fesm2022/aeris-ui-core-breadcrumb.mjs +433 -0
  18. package/fesm2022/aeris-ui-core-breadcrumb.mjs.map +1 -0
  19. package/fesm2022/aeris-ui-core-button-group.mjs +39 -0
  20. package/fesm2022/aeris-ui-core-button-group.mjs.map +1 -0
  21. package/fesm2022/aeris-ui-core-button.mjs +246 -0
  22. package/fesm2022/aeris-ui-core-button.mjs.map +1 -0
  23. package/fesm2022/aeris-ui-core-card.mjs +134 -0
  24. package/fesm2022/aeris-ui-core-card.mjs.map +1 -0
  25. package/fesm2022/aeris-ui-core-carousel.mjs +542 -0
  26. package/fesm2022/aeris-ui-core-carousel.mjs.map +1 -0
  27. package/fesm2022/aeris-ui-core-cascade-select.mjs +673 -0
  28. package/fesm2022/aeris-ui-core-cascade-select.mjs.map +1 -0
  29. package/fesm2022/aeris-ui-core-chart.mjs +296 -0
  30. package/fesm2022/aeris-ui-core-chart.mjs.map +1 -0
  31. package/fesm2022/aeris-ui-core-checkbox.mjs +220 -0
  32. package/fesm2022/aeris-ui-core-checkbox.mjs.map +1 -0
  33. package/fesm2022/aeris-ui-core-chip.mjs +200 -0
  34. package/fesm2022/aeris-ui-core-chip.mjs.map +1 -0
  35. package/fesm2022/aeris-ui-core-class-names.mjs +67 -0
  36. package/fesm2022/aeris-ui-core-class-names.mjs.map +1 -0
  37. package/fesm2022/aeris-ui-core-color-picker.mjs +1192 -0
  38. package/fesm2022/aeris-ui-core-color-picker.mjs.map +1 -0
  39. package/fesm2022/aeris-ui-core-compare.mjs +508 -0
  40. package/fesm2022/aeris-ui-core-compare.mjs.map +1 -0
  41. package/fesm2022/aeris-ui-core-confirm-dialog.mjs +818 -0
  42. package/fesm2022/aeris-ui-core-confirm-dialog.mjs.map +1 -0
  43. package/fesm2022/aeris-ui-core-confirm-popup.mjs +1010 -0
  44. package/fesm2022/aeris-ui-core-confirm-popup.mjs.map +1 -0
  45. package/fesm2022/aeris-ui-core-context-menu.mjs +720 -0
  46. package/fesm2022/aeris-ui-core-context-menu.mjs.map +1 -0
  47. package/fesm2022/aeris-ui-core-date-picker.mjs +1471 -0
  48. package/fesm2022/aeris-ui-core-date-picker.mjs.map +1 -0
  49. package/fesm2022/aeris-ui-core-dialog.mjs +574 -0
  50. package/fesm2022/aeris-ui-core-dialog.mjs.map +1 -0
  51. package/fesm2022/aeris-ui-core-divider.mjs +51 -0
  52. package/fesm2022/aeris-ui-core-divider.mjs.map +1 -0
  53. package/fesm2022/aeris-ui-core-drawer.mjs +549 -0
  54. package/fesm2022/aeris-ui-core-drawer.mjs.map +1 -0
  55. package/fesm2022/aeris-ui-core-dynamic-dialog.mjs +333 -0
  56. package/fesm2022/aeris-ui-core-dynamic-dialog.mjs.map +1 -0
  57. package/fesm2022/aeris-ui-core-editor.mjs +1548 -0
  58. package/fesm2022/aeris-ui-core-editor.mjs.map +1 -0
  59. package/fesm2022/aeris-ui-core-file-upload.mjs +965 -0
  60. package/fesm2022/aeris-ui-core-file-upload.mjs.map +1 -0
  61. package/fesm2022/aeris-ui-core-filter-service.mjs +304 -0
  62. package/fesm2022/aeris-ui-core-filter-service.mjs.map +1 -0
  63. package/fesm2022/aeris-ui-core-fluid.mjs +23 -0
  64. package/fesm2022/aeris-ui-core-fluid.mjs.map +1 -0
  65. package/fesm2022/aeris-ui-core-focus-trap.mjs +185 -0
  66. package/fesm2022/aeris-ui-core-focus-trap.mjs.map +1 -0
  67. package/fesm2022/aeris-ui-core-galleria.mjs +1657 -0
  68. package/fesm2022/aeris-ui-core-galleria.mjs.map +1 -0
  69. package/fesm2022/aeris-ui-core-glass.mjs +35 -0
  70. package/fesm2022/aeris-ui-core-glass.mjs.map +1 -0
  71. package/fesm2022/aeris-ui-core-icon-field.mjs +113 -0
  72. package/fesm2022/aeris-ui-core-icon-field.mjs.map +1 -0
  73. package/fesm2022/aeris-ui-core-inplace.mjs +243 -0
  74. package/fesm2022/aeris-ui-core-inplace.mjs.map +1 -0
  75. package/fesm2022/aeris-ui-core-input-group.mjs +110 -0
  76. package/fesm2022/aeris-ui-core-input-group.mjs.map +1 -0
  77. package/fesm2022/aeris-ui-core-input-mask.mjs +343 -0
  78. package/fesm2022/aeris-ui-core-input-mask.mjs.map +1 -0
  79. package/fesm2022/aeris-ui-core-input-number.mjs +497 -0
  80. package/fesm2022/aeris-ui-core-input-number.mjs.map +1 -0
  81. package/fesm2022/aeris-ui-core-input-otp.mjs +361 -0
  82. package/fesm2022/aeris-ui-core-input-otp.mjs.map +1 -0
  83. package/fesm2022/aeris-ui-core-input-text.mjs +226 -0
  84. package/fesm2022/aeris-ui-core-input-text.mjs.map +1 -0
  85. package/fesm2022/aeris-ui-core-key-filter.mjs +208 -0
  86. package/fesm2022/aeris-ui-core-key-filter.mjs.map +1 -0
  87. package/fesm2022/aeris-ui-core-mega-menu.mjs +835 -0
  88. package/fesm2022/aeris-ui-core-mega-menu.mjs.map +1 -0
  89. package/fesm2022/aeris-ui-core-menu.mjs +796 -0
  90. package/fesm2022/aeris-ui-core-menu.mjs.map +1 -0
  91. package/fesm2022/aeris-ui-core-menubar.mjs +729 -0
  92. package/fesm2022/aeris-ui-core-menubar.mjs.map +1 -0
  93. package/fesm2022/aeris-ui-core-message.mjs +225 -0
  94. package/fesm2022/aeris-ui-core-message.mjs.map +1 -0
  95. package/fesm2022/aeris-ui-core-meter-group.mjs +377 -0
  96. package/fesm2022/aeris-ui-core-meter-group.mjs.map +1 -0
  97. package/fesm2022/aeris-ui-core-multi-select.mjs +1033 -0
  98. package/fesm2022/aeris-ui-core-multi-select.mjs.map +1 -0
  99. package/fesm2022/aeris-ui-core-order-list.mjs +351 -0
  100. package/fesm2022/aeris-ui-core-order-list.mjs.map +1 -0
  101. package/fesm2022/aeris-ui-core-organization-chart.mjs +382 -0
  102. package/fesm2022/aeris-ui-core-organization-chart.mjs.map +1 -0
  103. package/fesm2022/aeris-ui-core-paginator.mjs +254 -0
  104. package/fesm2022/aeris-ui-core-paginator.mjs.map +1 -0
  105. package/fesm2022/aeris-ui-core-panel.mjs +352 -0
  106. package/fesm2022/aeris-ui-core-panel.mjs.map +1 -0
  107. package/fesm2022/aeris-ui-core-password.mjs +479 -0
  108. package/fesm2022/aeris-ui-core-password.mjs.map +1 -0
  109. package/fesm2022/aeris-ui-core-pick-list.mjs +939 -0
  110. package/fesm2022/aeris-ui-core-pick-list.mjs.map +1 -0
  111. package/fesm2022/aeris-ui-core-popover.mjs +535 -0
  112. package/fesm2022/aeris-ui-core-popover.mjs.map +1 -0
  113. package/fesm2022/aeris-ui-core-progress-bar.mjs +260 -0
  114. package/fesm2022/aeris-ui-core-progress-bar.mjs.map +1 -0
  115. package/fesm2022/aeris-ui-core-progress-spinner.mjs +218 -0
  116. package/fesm2022/aeris-ui-core-progress-spinner.mjs.map +1 -0
  117. package/fesm2022/aeris-ui-core-radio-button.mjs +194 -0
  118. package/fesm2022/aeris-ui-core-radio-button.mjs.map +1 -0
  119. package/fesm2022/aeris-ui-core-rating.mjs +385 -0
  120. package/fesm2022/aeris-ui-core-rating.mjs.map +1 -0
  121. package/fesm2022/aeris-ui-core-scroll-panel.mjs +211 -0
  122. package/fesm2022/aeris-ui-core-scroll-panel.mjs.map +1 -0
  123. package/fesm2022/aeris-ui-core-scroll-top.mjs +94 -0
  124. package/fesm2022/aeris-ui-core-scroll-top.mjs.map +1 -0
  125. package/fesm2022/aeris-ui-core-select.mjs +1134 -0
  126. package/fesm2022/aeris-ui-core-select.mjs.map +1 -0
  127. package/fesm2022/aeris-ui-core-skeleton.mjs +47 -0
  128. package/fesm2022/aeris-ui-core-skeleton.mjs.map +1 -0
  129. package/fesm2022/aeris-ui-core-slider.mjs +724 -0
  130. package/fesm2022/aeris-ui-core-slider.mjs.map +1 -0
  131. package/fesm2022/aeris-ui-core-speed-dial.mjs +589 -0
  132. package/fesm2022/aeris-ui-core-speed-dial.mjs.map +1 -0
  133. package/fesm2022/aeris-ui-core-split-button.mjs +532 -0
  134. package/fesm2022/aeris-ui-core-split-button.mjs.map +1 -0
  135. package/fesm2022/aeris-ui-core-splitter.mjs +488 -0
  136. package/fesm2022/aeris-ui-core-splitter.mjs.map +1 -0
  137. package/fesm2022/aeris-ui-core-stepper.mjs +437 -0
  138. package/fesm2022/aeris-ui-core-stepper.mjs.map +1 -0
  139. package/fesm2022/aeris-ui-core-style-class.mjs +344 -0
  140. package/fesm2022/aeris-ui-core-style-class.mjs.map +1 -0
  141. package/fesm2022/aeris-ui-core-table.mjs +1580 -0
  142. package/fesm2022/aeris-ui-core-table.mjs.map +1 -0
  143. package/fesm2022/aeris-ui-core-tabs.mjs +438 -0
  144. package/fesm2022/aeris-ui-core-tabs.mjs.map +1 -0
  145. package/fesm2022/aeris-ui-core-textarea.mjs +349 -0
  146. package/fesm2022/aeris-ui-core-textarea.mjs.map +1 -0
  147. package/fesm2022/aeris-ui-core-theme-builder.mjs +1565 -0
  148. package/fesm2022/aeris-ui-core-theme-builder.mjs.map +1 -0
  149. package/fesm2022/aeris-ui-core-theming.mjs +150 -0
  150. package/fesm2022/aeris-ui-core-theming.mjs.map +1 -0
  151. package/fesm2022/aeris-ui-core-tiered-menu.mjs +718 -0
  152. package/fesm2022/aeris-ui-core-tiered-menu.mjs.map +1 -0
  153. package/fesm2022/aeris-ui-core-timeline.mjs +278 -0
  154. package/fesm2022/aeris-ui-core-timeline.mjs.map +1 -0
  155. package/fesm2022/aeris-ui-core-toast.mjs +422 -0
  156. package/fesm2022/aeris-ui-core-toast.mjs.map +1 -0
  157. package/fesm2022/aeris-ui-core-toggle-switch.mjs +202 -0
  158. package/fesm2022/aeris-ui-core-toggle-switch.mjs.map +1 -0
  159. package/fesm2022/aeris-ui-core-toolbar.mjs +136 -0
  160. package/fesm2022/aeris-ui-core-toolbar.mjs.map +1 -0
  161. package/fesm2022/aeris-ui-core-tooltip.mjs +365 -0
  162. package/fesm2022/aeris-ui-core-tooltip.mjs.map +1 -0
  163. package/fesm2022/aeris-ui-core-tree-select.mjs +995 -0
  164. package/fesm2022/aeris-ui-core-tree-select.mjs.map +1 -0
  165. package/fesm2022/aeris-ui-core-tree-table.mjs +1600 -0
  166. package/fesm2022/aeris-ui-core-tree-table.mjs.map +1 -0
  167. package/fesm2022/aeris-ui-core-tree.mjs +962 -0
  168. package/fesm2022/aeris-ui-core-tree.mjs.map +1 -0
  169. package/fesm2022/aeris-ui-core.mjs +360 -0
  170. package/fesm2022/aeris-ui-core.mjs.map +1 -0
  171. package/package.json +432 -0
  172. package/schematics/aeris-setup.schema.json +52 -0
  173. package/schematics/collection.json +10 -0
  174. package/schematics/ng-add/schema.json +64 -0
  175. package/schematics/runtime/package.json +3 -0
  176. package/schematics/runtime/schematics/ng-add/index.js +13 -0
  177. package/schematics/runtime/schematics/ng-add/index.js.map +1 -0
  178. package/schematics/runtime/schematics/ng-add/options.js +338 -0
  179. package/schematics/runtime/schematics/ng-add/options.js.map +1 -0
  180. package/schematics/runtime/schematics/ng-add/schema.js +3 -0
  181. package/schematics/runtime/schematics/ng-add/schema.js.map +1 -0
  182. package/schematics/runtime/schematics/ng-add/workspace.js +273 -0
  183. package/schematics/runtime/schematics/ng-add/workspace.js.map +1 -0
  184. package/schematics/runtime/theme-builder/aeris-color-derivation.js +12 -0
  185. package/schematics/runtime/theme-builder/aeris-color-derivation.js.map +1 -0
  186. package/schematics/runtime/theme-builder/aeris-color.js +263 -0
  187. package/schematics/runtime/theme-builder/aeris-color.js.map +1 -0
  188. package/schematics/runtime/theme-builder/aeris-contrast.js +245 -0
  189. package/schematics/runtime/theme-builder/aeris-contrast.js.map +1 -0
  190. package/schematics/runtime/theme-builder/aeris-foundation.js +47 -0
  191. package/schematics/runtime/theme-builder/aeris-foundation.js.map +1 -0
  192. package/schematics/runtime/theme-builder/aeris-semantic-tones.js +121 -0
  193. package/schematics/runtime/theme-builder/aeris-semantic-tones.js.map +1 -0
  194. package/schematics/runtime/theme-builder/aeris-theme-generator.js +238 -0
  195. package/schematics/runtime/theme-builder/aeris-theme-generator.js.map +1 -0
  196. package/schematics/runtime/theme-builder/aeris-theme-resolver.js +101 -0
  197. package/schematics/runtime/theme-builder/aeris-theme-resolver.js.map +1 -0
  198. package/schematics/runtime/theme-builder/aeris-theme-tokens.js +82 -0
  199. package/schematics/runtime/theme-builder/aeris-theme-tokens.js.map +1 -0
  200. package/schematics/runtime/theme-builder/aeris-theme-validation.js +183 -0
  201. package/schematics/runtime/theme-builder/aeris-theme-validation.js.map +1 -0
  202. package/schematics/runtime/theme-builder/aeris-theme.js +322 -0
  203. package/schematics/runtime/theme-builder/aeris-theme.js.map +1 -0
  204. package/schematics/runtime/theme-builder/public-api.js +17 -0
  205. package/schematics/runtime/theme-builder/public-api.js.map +1 -0
  206. package/styles/_index.scss +1 -0
  207. package/styles/_tokens.scss +13 -0
  208. package/styles/aeris.css +555 -0
  209. package/styles/controls.css +169 -0
  210. package/tools/aeris-theme.mjs +149 -0
  211. package/tools/aeris-theme.schema.json +143 -0
  212. package/types/aeris-ui-core-accordion.d.ts +101 -0
  213. package/types/aeris-ui-core-animate-on-scroll.d.ts +34 -0
  214. package/types/aeris-ui-core-auto-complete.d.ts +154 -0
  215. package/types/aeris-ui-core-auto-focus.d.ts +17 -0
  216. package/types/aeris-ui-core-avatar.d.ts +44 -0
  217. package/types/aeris-ui-core-badge.d.ts +48 -0
  218. package/types/aeris-ui-core-block-ui.d.ts +28 -0
  219. package/types/aeris-ui-core-breadcrumb.d.ts +104 -0
  220. package/types/aeris-ui-core-button-group.d.ts +17 -0
  221. package/types/aeris-ui-core-button.d.ts +71 -0
  222. package/types/aeris-ui-core-card.d.ts +43 -0
  223. package/types/aeris-ui-core-carousel.d.ts +126 -0
  224. package/types/aeris-ui-core-cascade-select.d.ts +130 -0
  225. package/types/aeris-ui-core-chart.d.ts +92 -0
  226. package/types/aeris-ui-core-checkbox.d.ts +55 -0
  227. package/types/aeris-ui-core-chip.d.ts +56 -0
  228. package/types/aeris-ui-core-class-names.d.ts +21 -0
  229. package/types/aeris-ui-core-color-picker.d.ts +149 -0
  230. package/types/aeris-ui-core-compare.d.ts +109 -0
  231. package/types/aeris-ui-core-confirm-dialog.d.ts +263 -0
  232. package/types/aeris-ui-core-confirm-popup.d.ts +281 -0
  233. package/types/aeris-ui-core-context-menu.d.ts +156 -0
  234. package/types/aeris-ui-core-date-picker.d.ts +226 -0
  235. package/types/aeris-ui-core-dialog.d.ts +124 -0
  236. package/types/aeris-ui-core-divider.d.ts +21 -0
  237. package/types/aeris-ui-core-drawer.d.ts +119 -0
  238. package/types/aeris-ui-core-dynamic-dialog.d.ts +148 -0
  239. package/types/aeris-ui-core-editor.d.ts +130 -0
  240. package/types/aeris-ui-core-file-upload.d.ts +199 -0
  241. package/types/aeris-ui-core-filter-service.d.ts +54 -0
  242. package/types/aeris-ui-core-fluid.d.ts +10 -0
  243. package/types/aeris-ui-core-focus-trap.d.ts +32 -0
  244. package/types/aeris-ui-core-galleria.d.ts +273 -0
  245. package/types/aeris-ui-core-glass.d.ts +17 -0
  246. package/types/aeris-ui-core-icon-field.d.ts +36 -0
  247. package/types/aeris-ui-core-inplace.d.ts +68 -0
  248. package/types/aeris-ui-core-input-group.d.ts +38 -0
  249. package/types/aeris-ui-core-input-mask.d.ts +73 -0
  250. package/types/aeris-ui-core-input-number.d.ts +87 -0
  251. package/types/aeris-ui-core-input-otp.d.ts +88 -0
  252. package/types/aeris-ui-core-input-text.d.ts +63 -0
  253. package/types/aeris-ui-core-key-filter.d.ts +41 -0
  254. package/types/aeris-ui-core-mega-menu.d.ts +130 -0
  255. package/types/aeris-ui-core-menu.d.ts +182 -0
  256. package/types/aeris-ui-core-menubar.d.ts +145 -0
  257. package/types/aeris-ui-core-message.d.ts +65 -0
  258. package/types/aeris-ui-core-meter-group.d.ts +100 -0
  259. package/types/aeris-ui-core-multi-select.d.ts +193 -0
  260. package/types/aeris-ui-core-order-list.d.ts +73 -0
  261. package/types/aeris-ui-core-organization-chart.d.ts +85 -0
  262. package/types/aeris-ui-core-paginator.d.ts +39 -0
  263. package/types/aeris-ui-core-panel.d.ts +85 -0
  264. package/types/aeris-ui-core-password.d.ts +110 -0
  265. package/types/aeris-ui-core-pick-list.d.ts +193 -0
  266. package/types/aeris-ui-core-popover.d.ts +112 -0
  267. package/types/aeris-ui-core-progress-bar.d.ts +81 -0
  268. package/types/aeris-ui-core-progress-spinner.d.ts +51 -0
  269. package/types/aeris-ui-core-radio-button.d.ts +51 -0
  270. package/types/aeris-ui-core-rating.d.ts +80 -0
  271. package/types/aeris-ui-core-scroll-panel.d.ts +66 -0
  272. package/types/aeris-ui-core-scroll-top.d.ts +29 -0
  273. package/types/aeris-ui-core-select.d.ts +223 -0
  274. package/types/aeris-ui-core-skeleton.d.ts +18 -0
  275. package/types/aeris-ui-core-slider.d.ts +117 -0
  276. package/types/aeris-ui-core-speed-dial.d.ts +119 -0
  277. package/types/aeris-ui-core-split-button.d.ts +122 -0
  278. package/types/aeris-ui-core-splitter.d.ts +113 -0
  279. package/types/aeris-ui-core-stepper.d.ts +99 -0
  280. package/types/aeris-ui-core-style-class.d.ts +73 -0
  281. package/types/aeris-ui-core-table.d.ts +333 -0
  282. package/types/aeris-ui-core-tabs.d.ts +82 -0
  283. package/types/aeris-ui-core-textarea.d.ts +80 -0
  284. package/types/aeris-ui-core-theme-builder.d.ts +499 -0
  285. package/types/aeris-ui-core-theming.d.ts +47 -0
  286. package/types/aeris-ui-core-tiered-menu.d.ts +152 -0
  287. package/types/aeris-ui-core-timeline.d.ts +80 -0
  288. package/types/aeris-ui-core-toast.d.ts +127 -0
  289. package/types/aeris-ui-core-toggle-switch.d.ts +52 -0
  290. package/types/aeris-ui-core-toolbar.d.ts +47 -0
  291. package/types/aeris-ui-core-tooltip.d.ts +92 -0
  292. package/types/aeris-ui-core-tree-select.d.ts +187 -0
  293. package/types/aeris-ui-core-tree-table.d.ts +311 -0
  294. package/types/aeris-ui-core-tree.d.ts +179 -0
  295. package/types/aeris-ui-core.d.ts +85 -0
@@ -0,0 +1,361 @@
1
+ import { NgTemplateOutlet } from '@angular/common';
2
+ import * as i0 from '@angular/core';
3
+ import { inject, TemplateRef, Directive, numberAttribute, ElementRef, viewChildren, signal, model, input, booleanAttribute, output, contentChild, computed, afterNextRender, forwardRef, Component } from '@angular/core';
4
+ import { NG_VALUE_ACCESSOR } from '@angular/forms';
5
+
6
+ class AerisInputOtpSeparatorTemplate {
7
+ template = inject(TemplateRef);
8
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisInputOtpSeparatorTemplate, deps: [], target: i0.ɵɵFactoryTarget.Directive });
9
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.6", type: AerisInputOtpSeparatorTemplate, isStandalone: true, selector: "ng-template[aerisInputOtpSeparator]", ngImport: i0 });
10
+ }
11
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisInputOtpSeparatorTemplate, decorators: [{
12
+ type: Directive,
13
+ args: [{ selector: 'ng-template[aerisInputOtpSeparator]' }]
14
+ }] });
15
+ const normalizeLength = (value) => Math.max(1, Math.floor(numberAttribute(value, 4)));
16
+ let inputOtpId = 0;
17
+ class AerisInputOtpComponent {
18
+ host = inject(ElementRef);
19
+ inputElements = viewChildren('otpInput', /* @ts-ignore */
20
+ ...(ngDevMode ? [{ debugName: "inputElements" }] : /* istanbul ignore next */ []));
21
+ generatedId = `aeris-input-otp-${++inputOtpId}`;
22
+ formDisabled = signal(false, /* @ts-ignore */
23
+ ...(ngDevMode ? [{ debugName: "formDisabled" }] : /* istanbul ignore next */ []));
24
+ onChange = () => undefined;
25
+ onTouched = () => undefined;
26
+ value = model('', /* @ts-ignore */
27
+ ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
28
+ length = input(4, { ...(ngDevMode ? { debugName: "length" } : /* istanbul ignore next */ {}), transform: normalizeLength });
29
+ mode = input('numeric', /* @ts-ignore */
30
+ ...(ngDevMode ? [{ debugName: "mode" }] : /* istanbul ignore next */ []));
31
+ inputId = input('', /* @ts-ignore */
32
+ ...(ngDevMode ? [{ debugName: "inputId" }] : /* istanbul ignore next */ []));
33
+ name = input('', /* @ts-ignore */
34
+ ...(ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []));
35
+ autocomplete = input('one-time-code', /* @ts-ignore */
36
+ ...(ngDevMode ? [{ debugName: "autocomplete" }] : /* istanbul ignore next */ []));
37
+ ariaLabel = input('', /* @ts-ignore */
38
+ ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
39
+ ariaLabelledby = input('', /* @ts-ignore */
40
+ ...(ngDevMode ? [{ debugName: "ariaLabelledby" }] : /* istanbul ignore next */ []));
41
+ ariaDescribedby = input('', /* @ts-ignore */
42
+ ...(ngDevMode ? [{ debugName: "ariaDescribedby" }] : /* istanbul ignore next */ []));
43
+ slotAriaLabel = input('Character {0} of {1}', /* @ts-ignore */
44
+ ...(ngDevMode ? [{ debugName: "slotAriaLabel" }] : /* istanbul ignore next */ []));
45
+ size = input('md', /* @ts-ignore */
46
+ ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
47
+ appearance = input('outline', /* @ts-ignore */
48
+ ...(ngDevMode ? [{ debugName: "appearance" }] : /* istanbul ignore next */ []));
49
+ mask = input(false, { ...(ngDevMode ? { debugName: "mask" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
50
+ autoFocus = input(false, { ...(ngDevMode ? { debugName: "autoFocus" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
51
+ selectOnFocus = input(true, { ...(ngDevMode ? { debugName: "selectOnFocus" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
52
+ disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
53
+ readonly = input(false, { ...(ngDevMode ? { debugName: "readonly" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
54
+ required = input(false, { ...(ngDevMode ? { debugName: "required" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
55
+ invalid = input(false, { ...(ngDevMode ? { debugName: "invalid" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
56
+ fluid = input(false, { ...(ngDevMode ? { debugName: "fluid" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
57
+ valueInput = output();
58
+ completed = output();
59
+ focused = output();
60
+ blurred = output();
61
+ touch = output();
62
+ separatorTemplate = contentChild(AerisInputOtpSeparatorTemplate, /* @ts-ignore */
63
+ ...(ngDevMode ? [{ debugName: "separatorTemplate" }] : /* istanbul ignore next */ []));
64
+ effectiveDisabled = computed(() => this.disabled() || this.formDisabled(), /* @ts-ignore */
65
+ ...(ngDevMode ? [{ debugName: "effectiveDisabled" }] : /* istanbul ignore next */ []));
66
+ effectiveInputMode = computed(() => this.mode() === 'numeric' ? 'numeric' : 'text', /* @ts-ignore */
67
+ ...(ngDevMode ? [{ debugName: "effectiveInputMode" }] : /* istanbul ignore next */ []));
68
+ slots = computed(() => {
69
+ const value = this.normalizedValue();
70
+ return Array.from({ length: this.length() }, (_, index) => ({
71
+ index,
72
+ position: index + 1,
73
+ id: index === 0 && this.inputId() ? this.inputId() : `${this.generatedId}-${index + 1}`,
74
+ value: value[index] ?? '',
75
+ ariaLabel: this.slotAriaLabel()
76
+ .replace('{0}', String(index + 1))
77
+ .replace('{1}', String(this.length())),
78
+ }));
79
+ }, /* @ts-ignore */
80
+ ...(ngDevMode ? [{ debugName: "slots" }] : /* istanbul ignore next */ []));
81
+ normalizedValue = computed(() => this.filterCharacters(this.value()).slice(0, this.length()), /* @ts-ignore */
82
+ ...(ngDevMode ? [{ debugName: "normalizedValue" }] : /* istanbul ignore next */ []));
83
+ constructor() {
84
+ afterNextRender(() => {
85
+ if (this.autoFocus() && !this.effectiveDisabled())
86
+ this.focus();
87
+ });
88
+ }
89
+ writeValue(value) {
90
+ const next = typeof value === 'string' || typeof value === 'number' ? String(value) : '';
91
+ this.value.set(this.filterCharacters(next).slice(0, this.length()));
92
+ }
93
+ registerOnChange(callback) {
94
+ this.onChange = callback;
95
+ }
96
+ registerOnTouched(callback) {
97
+ this.onTouched = callback;
98
+ }
99
+ setDisabledState(disabled) {
100
+ this.formDisabled.set(disabled);
101
+ }
102
+ focus(index = 0, options) {
103
+ const targetIndex = Math.min(Math.max(index, 0), this.length() - 1);
104
+ this.inputElements()[targetIndex]?.nativeElement.focus(options);
105
+ }
106
+ clear() {
107
+ if (this.effectiveDisabled() || this.readonly())
108
+ return;
109
+ this.commit('', new Event('clear'));
110
+ queueMicrotask(() => this.focus());
111
+ }
112
+ handleBeforeInput(event, index) {
113
+ if (event.inputType.startsWith('delete') || !event.data)
114
+ return;
115
+ const accepted = this.filterCharacters(event.data);
116
+ if (!accepted) {
117
+ event.preventDefault();
118
+ return;
119
+ }
120
+ if (accepted.length > 1) {
121
+ event.preventDefault();
122
+ this.insertCharacters(accepted, index, event);
123
+ }
124
+ }
125
+ handleInput(event, index) {
126
+ const inputElement = event.target;
127
+ const accepted = this.filterCharacters(inputElement.value);
128
+ if (!accepted) {
129
+ inputElement.value = this.normalizedValue()[index] ?? '';
130
+ return;
131
+ }
132
+ this.insertCharacters(accepted, index, event);
133
+ }
134
+ handleKeydown(event, index) {
135
+ if (this.effectiveDisabled() || this.readonly())
136
+ return;
137
+ if (event.key === 'ArrowLeft') {
138
+ event.preventDefault();
139
+ this.focus(index - 1);
140
+ return;
141
+ }
142
+ if (event.key === 'ArrowRight') {
143
+ event.preventDefault();
144
+ this.focus(index + 1);
145
+ return;
146
+ }
147
+ if (event.key === 'Home') {
148
+ event.preventDefault();
149
+ this.focus(0);
150
+ return;
151
+ }
152
+ if (event.key === 'End') {
153
+ event.preventDefault();
154
+ this.focus(this.length() - 1);
155
+ return;
156
+ }
157
+ if (event.key === 'Backspace') {
158
+ event.preventDefault();
159
+ const currentValue = this.normalizedValue();
160
+ const targetIndex = currentValue[index] ? index : Math.max(0, index - 1);
161
+ this.removeAt(targetIndex, event);
162
+ queueMicrotask(() => this.focus(targetIndex));
163
+ return;
164
+ }
165
+ if (event.key === 'Delete') {
166
+ event.preventDefault();
167
+ this.removeAt(index, event);
168
+ }
169
+ }
170
+ handlePaste(event, index) {
171
+ const pasted = this.filterCharacters(event.clipboardData?.getData('text') ?? '');
172
+ if (!pasted)
173
+ return;
174
+ event.preventDefault();
175
+ this.insertCharacters(pasted, index, event);
176
+ }
177
+ handleFocus(event) {
178
+ if (this.selectOnFocus()) {
179
+ event.target.select();
180
+ }
181
+ this.focused.emit(event);
182
+ }
183
+ handleFocusOut(event) {
184
+ const nextTarget = event.relatedTarget;
185
+ if (nextTarget instanceof Node && this.host.nativeElement.contains(nextTarget))
186
+ return;
187
+ this.touch.emit();
188
+ this.onTouched();
189
+ }
190
+ insertCharacters(characters, index, event) {
191
+ const slots = Array.from({ length: this.length() }, (_, slotIndex) => this.normalizedValue()[slotIndex] ?? '');
192
+ let nextIndex = index;
193
+ for (const character of characters) {
194
+ if (nextIndex >= slots.length)
195
+ break;
196
+ slots[nextIndex] = character;
197
+ nextIndex += 1;
198
+ }
199
+ const nextValue = slots.join('');
200
+ this.commit(nextValue, event);
201
+ queueMicrotask(() => this.focus(Math.min(nextIndex, this.length() - 1)));
202
+ }
203
+ removeAt(index, event) {
204
+ const slots = Array.from({ length: this.length() }, (_, slotIndex) => this.normalizedValue()[slotIndex] ?? '');
205
+ slots[index] = '';
206
+ this.commit(slots.join(''), event);
207
+ }
208
+ commit(value, event) {
209
+ const nextValue = this.filterCharacters(value).slice(0, this.length());
210
+ const wasComplete = this.normalizedValue().length === this.length();
211
+ if (this.value() !== nextValue) {
212
+ this.value.set(nextValue);
213
+ this.valueInput.emit(nextValue);
214
+ this.onChange(nextValue);
215
+ }
216
+ if (!wasComplete && nextValue.length === this.length()) {
217
+ this.completed.emit({ originalEvent: event, value: nextValue });
218
+ }
219
+ }
220
+ filterCharacters(value) {
221
+ const pattern = this.mode() === 'numeric' ? /[0-9]/g : /[A-Za-z0-9]/g;
222
+ return value.match(pattern)?.join('') ?? '';
223
+ }
224
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisInputOtpComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
225
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.6", type: AerisInputOtpComponent, isStandalone: true, selector: "aeris-input-otp", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, length: { classPropertyName: "length", publicName: "length", isSignal: true, isRequired: false, transformFunction: null }, mode: { classPropertyName: "mode", publicName: "mode", isSignal: true, isRequired: false, transformFunction: null }, inputId: { classPropertyName: "inputId", publicName: "inputId", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, autocomplete: { classPropertyName: "autocomplete", publicName: "autocomplete", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledby: { classPropertyName: "ariaLabelledby", publicName: "ariaLabelledby", isSignal: true, isRequired: false, transformFunction: null }, ariaDescribedby: { classPropertyName: "ariaDescribedby", publicName: "ariaDescribedby", isSignal: true, isRequired: false, transformFunction: null }, slotAriaLabel: { classPropertyName: "slotAriaLabel", publicName: "slotAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, appearance: { classPropertyName: "appearance", publicName: "appearance", isSignal: true, isRequired: false, transformFunction: null }, mask: { classPropertyName: "mask", publicName: "mask", isSignal: true, isRequired: false, transformFunction: null }, autoFocus: { classPropertyName: "autoFocus", publicName: "autoFocus", isSignal: true, isRequired: false, transformFunction: null }, selectOnFocus: { classPropertyName: "selectOnFocus", publicName: "selectOnFocus", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, invalid: { classPropertyName: "invalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null }, fluid: { classPropertyName: "fluid", publicName: "fluid", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", valueInput: "valueInput", completed: "completed", focused: "focused", blurred: "blurred", touch: "touch" }, host: { properties: { "attr.data-fluid": "fluid() || null" } }, providers: [
226
+ {
227
+ provide: NG_VALUE_ACCESSOR,
228
+ useExisting: forwardRef(() => AerisInputOtpComponent),
229
+ multi: true,
230
+ },
231
+ ], queries: [{ propertyName: "separatorTemplate", first: true, predicate: AerisInputOtpSeparatorTemplate, descendants: true, isSignal: true }], viewQueries: [{ propertyName: "inputElements", predicate: ["otpInput"], descendants: true, isSignal: true }], ngImport: i0, template: `
232
+ <span
233
+ class="aeris-input-otp"
234
+ role="group"
235
+ [attr.data-size]="size()"
236
+ [attr.data-appearance]="appearance()"
237
+ [attr.data-invalid]="invalid() || null"
238
+ [attr.data-disabled]="effectiveDisabled() || null"
239
+ [attr.data-readonly]="readonly() || null"
240
+ [attr.data-fluid]="fluid() || null"
241
+ [attr.aria-label]="ariaLabel() || null"
242
+ [attr.aria-labelledby]="ariaLabelledby() || null"
243
+ [attr.aria-describedby]="ariaDescribedby() || null"
244
+ [attr.aria-invalid]="invalid() || null"
245
+ [attr.aria-required]="required() || null"
246
+ (focusout)="handleFocusOut($event)"
247
+ >
248
+ @if (name()) {
249
+ <input type="hidden" [name]="name()" [value]="normalizedValue()" />
250
+ }
251
+
252
+ @for (slot of slots(); track slot.index) {
253
+ <input
254
+ #otpInput
255
+ class="aeris-input-otp__slot"
256
+ [id]="slot.id"
257
+ [type]="mask() ? 'password' : 'text'"
258
+ [value]="slot.value"
259
+ [inputMode]="effectiveInputMode()"
260
+ [autocomplete]="slot.index === 0 ? autocomplete() : 'off'"
261
+ maxlength="1"
262
+ [disabled]="effectiveDisabled()"
263
+ [readOnly]="readonly()"
264
+ [attr.aria-label]="slot.ariaLabel"
265
+ [attr.aria-invalid]="invalid() || null"
266
+ (beforeinput)="handleBeforeInput($event, slot.index)"
267
+ (input)="handleInput($event, slot.index)"
268
+ (keydown)="handleKeydown($event, slot.index)"
269
+ (paste)="handlePaste($event, slot.index)"
270
+ (focus)="handleFocus($event)"
271
+ (blur)="blurred.emit($event)"
272
+ />
273
+
274
+ @if (slot.index < length() - 1 && separatorTemplate(); as separator) {
275
+ <span class="aeris-input-otp__separator" aria-hidden="true">
276
+ <ng-container
277
+ [ngTemplateOutlet]="separator.template"
278
+ [ngTemplateOutletContext]="{ $implicit: slot.index, index: slot.index }"
279
+ />
280
+ </span>
281
+ }
282
+ }
283
+ </span>
284
+ `, isInline: true, styles: [":host{display:inline-block;max-width:100%;vertical-align:middle}:host([data-fluid]){width:100%}.aeris-input-otp{--_slot-size: var(--aeris-control-height, 2.625rem);--_font-size: 1rem;display:flex;align-items:center;gap:.5rem;max-width:100%}.aeris-input-otp[data-fluid]{width:100%}.aeris-input-otp__slot{width:var(--_slot-size);height:var(--_slot-size);min-width:0;padding:0;border:1px solid var(--aeris-border-strong, #c7c9c0);border-radius:var(--aeris-radius-sm, .4375rem);outline:0;background:var(--aeris-surface, #fff);color:var(--aeris-text, #222222);font:650 var(--_font-size)/1 inherit;text-align:center;caret-color:var(--aeris-primary, #879566);transition:border-color .12s ease,box-shadow .12s ease,background-color .12s ease}.aeris-input-otp[data-fluid] .aeris-input-otp__slot{flex:1 1 0;width:auto;max-width:var(--_slot-size)}.aeris-input-otp__slot:hover:not(:disabled,:read-only){border-color:var(--aeris-primary, #879566)}.aeris-input-otp__slot:focus-visible{border-color:var(--aeris-focus, #536437);box-shadow:0 0 0 3px color-mix(in srgb,var(--aeris-focus, #536437) 18%,transparent)}.aeris-input-otp[data-appearance=filled] .aeris-input-otp__slot{border-color:transparent;background:var(--aeris-surface-2, #f2f0ec)}.aeris-input-otp[data-appearance=filled] .aeris-input-otp__slot:focus-visible{border-color:var(--aeris-focus, #536437);background:var(--aeris-surface, #fff)}.aeris-input-otp[data-invalid] .aeris-input-otp__slot{border-color:var(--aeris-danger, #c81e2a)}.aeris-input-otp[data-invalid] .aeris-input-otp__slot:focus-visible{box-shadow:0 0 0 3px color-mix(in srgb,var(--aeris-danger, #c81e2a) 18%,transparent)}.aeris-input-otp[data-disabled],.aeris-input-otp[data-readonly]{opacity:var(--aeris-disabled-opacity, .54)}.aeris-input-otp[data-disabled] .aeris-input-otp__slot,.aeris-input-otp[data-readonly] .aeris-input-otp__slot{background:var(--aeris-surface-2, #f2f0ec)}.aeris-input-otp[data-size=xs]{--_slot-size: 1.875rem;--_font-size: .75rem;gap:.375rem}.aeris-input-otp[data-size=sm]{--_slot-size: 2.25rem;--_font-size: .875rem;gap:.4375rem}.aeris-input-otp[data-size=lg]{--_slot-size: 3rem;--_font-size: 1.125rem;gap:.625rem}.aeris-input-otp__separator{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;color:var(--aeris-text-2, #555555)}.aeris-input-otp__separator:empty{display:none}@media(max-width:30rem){.aeris-input-otp{gap:.375rem}}@media(prefers-reduced-motion:reduce){.aeris-input-otp__slot{transition:none}}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
285
+ }
286
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisInputOtpComponent, decorators: [{
287
+ type: Component,
288
+ args: [{ selector: 'aeris-input-otp', imports: [NgTemplateOutlet], template: `
289
+ <span
290
+ class="aeris-input-otp"
291
+ role="group"
292
+ [attr.data-size]="size()"
293
+ [attr.data-appearance]="appearance()"
294
+ [attr.data-invalid]="invalid() || null"
295
+ [attr.data-disabled]="effectiveDisabled() || null"
296
+ [attr.data-readonly]="readonly() || null"
297
+ [attr.data-fluid]="fluid() || null"
298
+ [attr.aria-label]="ariaLabel() || null"
299
+ [attr.aria-labelledby]="ariaLabelledby() || null"
300
+ [attr.aria-describedby]="ariaDescribedby() || null"
301
+ [attr.aria-invalid]="invalid() || null"
302
+ [attr.aria-required]="required() || null"
303
+ (focusout)="handleFocusOut($event)"
304
+ >
305
+ @if (name()) {
306
+ <input type="hidden" [name]="name()" [value]="normalizedValue()" />
307
+ }
308
+
309
+ @for (slot of slots(); track slot.index) {
310
+ <input
311
+ #otpInput
312
+ class="aeris-input-otp__slot"
313
+ [id]="slot.id"
314
+ [type]="mask() ? 'password' : 'text'"
315
+ [value]="slot.value"
316
+ [inputMode]="effectiveInputMode()"
317
+ [autocomplete]="slot.index === 0 ? autocomplete() : 'off'"
318
+ maxlength="1"
319
+ [disabled]="effectiveDisabled()"
320
+ [readOnly]="readonly()"
321
+ [attr.aria-label]="slot.ariaLabel"
322
+ [attr.aria-invalid]="invalid() || null"
323
+ (beforeinput)="handleBeforeInput($event, slot.index)"
324
+ (input)="handleInput($event, slot.index)"
325
+ (keydown)="handleKeydown($event, slot.index)"
326
+ (paste)="handlePaste($event, slot.index)"
327
+ (focus)="handleFocus($event)"
328
+ (blur)="blurred.emit($event)"
329
+ />
330
+
331
+ @if (slot.index < length() - 1 && separatorTemplate(); as separator) {
332
+ <span class="aeris-input-otp__separator" aria-hidden="true">
333
+ <ng-container
334
+ [ngTemplateOutlet]="separator.template"
335
+ [ngTemplateOutletContext]="{ $implicit: slot.index, index: slot.index }"
336
+ />
337
+ </span>
338
+ }
339
+ }
340
+ </span>
341
+ `, providers: [
342
+ {
343
+ provide: NG_VALUE_ACCESSOR,
344
+ useExisting: forwardRef(() => AerisInputOtpComponent),
345
+ multi: true,
346
+ },
347
+ ], host: {
348
+ '[attr.data-fluid]': 'fluid() || null',
349
+ }, styles: [":host{display:inline-block;max-width:100%;vertical-align:middle}:host([data-fluid]){width:100%}.aeris-input-otp{--_slot-size: var(--aeris-control-height, 2.625rem);--_font-size: 1rem;display:flex;align-items:center;gap:.5rem;max-width:100%}.aeris-input-otp[data-fluid]{width:100%}.aeris-input-otp__slot{width:var(--_slot-size);height:var(--_slot-size);min-width:0;padding:0;border:1px solid var(--aeris-border-strong, #c7c9c0);border-radius:var(--aeris-radius-sm, .4375rem);outline:0;background:var(--aeris-surface, #fff);color:var(--aeris-text, #222222);font:650 var(--_font-size)/1 inherit;text-align:center;caret-color:var(--aeris-primary, #879566);transition:border-color .12s ease,box-shadow .12s ease,background-color .12s ease}.aeris-input-otp[data-fluid] .aeris-input-otp__slot{flex:1 1 0;width:auto;max-width:var(--_slot-size)}.aeris-input-otp__slot:hover:not(:disabled,:read-only){border-color:var(--aeris-primary, #879566)}.aeris-input-otp__slot:focus-visible{border-color:var(--aeris-focus, #536437);box-shadow:0 0 0 3px color-mix(in srgb,var(--aeris-focus, #536437) 18%,transparent)}.aeris-input-otp[data-appearance=filled] .aeris-input-otp__slot{border-color:transparent;background:var(--aeris-surface-2, #f2f0ec)}.aeris-input-otp[data-appearance=filled] .aeris-input-otp__slot:focus-visible{border-color:var(--aeris-focus, #536437);background:var(--aeris-surface, #fff)}.aeris-input-otp[data-invalid] .aeris-input-otp__slot{border-color:var(--aeris-danger, #c81e2a)}.aeris-input-otp[data-invalid] .aeris-input-otp__slot:focus-visible{box-shadow:0 0 0 3px color-mix(in srgb,var(--aeris-danger, #c81e2a) 18%,transparent)}.aeris-input-otp[data-disabled],.aeris-input-otp[data-readonly]{opacity:var(--aeris-disabled-opacity, .54)}.aeris-input-otp[data-disabled] .aeris-input-otp__slot,.aeris-input-otp[data-readonly] .aeris-input-otp__slot{background:var(--aeris-surface-2, #f2f0ec)}.aeris-input-otp[data-size=xs]{--_slot-size: 1.875rem;--_font-size: .75rem;gap:.375rem}.aeris-input-otp[data-size=sm]{--_slot-size: 2.25rem;--_font-size: .875rem;gap:.4375rem}.aeris-input-otp[data-size=lg]{--_slot-size: 3rem;--_font-size: 1.125rem;gap:.625rem}.aeris-input-otp__separator{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;color:var(--aeris-text-2, #555555)}.aeris-input-otp__separator:empty{display:none}@media(max-width:30rem){.aeris-input-otp{gap:.375rem}}@media(prefers-reduced-motion:reduce){.aeris-input-otp__slot{transition:none}}\n"] }]
350
+ }], ctorParameters: () => [], propDecorators: { inputElements: [{ type: i0.ViewChildren, args: ['otpInput', { isSignal: true }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], length: [{ type: i0.Input, args: [{ isSignal: true, alias: "length", required: false }] }], mode: [{ type: i0.Input, args: [{ isSignal: true, alias: "mode", required: false }] }], inputId: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputId", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], autocomplete: [{ type: i0.Input, args: [{ isSignal: true, alias: "autocomplete", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], ariaLabelledby: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabelledby", required: false }] }], ariaDescribedby: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaDescribedby", required: false }] }], slotAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "slotAriaLabel", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], appearance: [{ type: i0.Input, args: [{ isSignal: true, alias: "appearance", required: false }] }], mask: [{ type: i0.Input, args: [{ isSignal: true, alias: "mask", required: false }] }], autoFocus: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoFocus", required: false }] }], selectOnFocus: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectOnFocus", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], readonly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readonly", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], fluid: [{ type: i0.Input, args: [{ isSignal: true, alias: "fluid", required: false }] }], valueInput: [{ type: i0.Output, args: ["valueInput"] }], completed: [{ type: i0.Output, args: ["completed"] }], focused: [{ type: i0.Output, args: ["focused"] }], blurred: [{ type: i0.Output, args: ["blurred"] }], touch: [{ type: i0.Output, args: ["touch"] }], separatorTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => AerisInputOtpSeparatorTemplate), { isSignal: true }] }] } });
351
+ const AerisInputOtp = [
352
+ AerisInputOtpComponent,
353
+ AerisInputOtpSeparatorTemplate,
354
+ ];
355
+
356
+ /**
357
+ * Generated bundle index. Do not edit.
358
+ */
359
+
360
+ export { AerisInputOtp, AerisInputOtpComponent, AerisInputOtpSeparatorTemplate };
361
+ //# sourceMappingURL=aeris-ui-core-input-otp.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aeris-ui-core-input-otp.mjs","sources":["../../../projects/aeris-ui/input-otp/aeris-input-otp.ts","../../../projects/aeris-ui/input-otp/aeris-ui-core-input-otp.ts"],"sourcesContent":["import { NgTemplateOutlet } from '@angular/common';\nimport {\n Component,\n Directive,\n ElementRef,\n TemplateRef,\n afterNextRender,\n booleanAttribute,\n computed,\n contentChild,\n forwardRef,\n inject,\n input,\n model,\n numberAttribute,\n output,\n signal,\n viewChildren,\n} from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\n\nexport type AerisInputOtpSize = 'xs' | 'sm' | 'md' | 'lg';\nexport type AerisInputOtpAppearance = 'outline' | 'filled';\nexport type AerisInputOtpMode = 'numeric' | 'alphanumeric';\n\nexport interface AerisInputOtpCompleteEvent {\n readonly originalEvent: Event;\n readonly value: string;\n}\n\ninterface InputOtpSeparatorContext {\n readonly $implicit: number;\n readonly index: number;\n}\n\ninterface InputOtpSlot {\n readonly index: number;\n readonly position: number;\n readonly id: string;\n readonly value: string;\n readonly ariaLabel: string;\n}\n\n@Directive({ selector: 'ng-template[aerisInputOtpSeparator]' })\nexport class AerisInputOtpSeparatorTemplate {\n readonly template = inject<TemplateRef<InputOtpSeparatorContext>>(TemplateRef);\n}\n\nconst normalizeLength = (value: unknown): number =>\n Math.max(1, Math.floor(numberAttribute(value, 4)));\n\nlet inputOtpId = 0;\n\n@Component({\n selector: 'aeris-input-otp',\n imports: [NgTemplateOutlet],\n template: `\n <span\n class=\"aeris-input-otp\"\n role=\"group\"\n [attr.data-size]=\"size()\"\n [attr.data-appearance]=\"appearance()\"\n [attr.data-invalid]=\"invalid() || null\"\n [attr.data-disabled]=\"effectiveDisabled() || null\"\n [attr.data-readonly]=\"readonly() || null\"\n [attr.data-fluid]=\"fluid() || null\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledby() || null\"\n [attr.aria-describedby]=\"ariaDescribedby() || null\"\n [attr.aria-invalid]=\"invalid() || null\"\n [attr.aria-required]=\"required() || null\"\n (focusout)=\"handleFocusOut($event)\"\n >\n @if (name()) {\n <input type=\"hidden\" [name]=\"name()\" [value]=\"normalizedValue()\" />\n }\n\n @for (slot of slots(); track slot.index) {\n <input\n #otpInput\n class=\"aeris-input-otp__slot\"\n [id]=\"slot.id\"\n [type]=\"mask() ? 'password' : 'text'\"\n [value]=\"slot.value\"\n [inputMode]=\"effectiveInputMode()\"\n [autocomplete]=\"slot.index === 0 ? autocomplete() : 'off'\"\n maxlength=\"1\"\n [disabled]=\"effectiveDisabled()\"\n [readOnly]=\"readonly()\"\n [attr.aria-label]=\"slot.ariaLabel\"\n [attr.aria-invalid]=\"invalid() || null\"\n (beforeinput)=\"handleBeforeInput($event, slot.index)\"\n (input)=\"handleInput($event, slot.index)\"\n (keydown)=\"handleKeydown($event, slot.index)\"\n (paste)=\"handlePaste($event, slot.index)\"\n (focus)=\"handleFocus($event)\"\n (blur)=\"blurred.emit($event)\"\n />\n\n @if (slot.index < length() - 1 && separatorTemplate(); as separator) {\n <span class=\"aeris-input-otp__separator\" aria-hidden=\"true\">\n <ng-container\n [ngTemplateOutlet]=\"separator.template\"\n [ngTemplateOutletContext]=\"{ $implicit: slot.index, index: slot.index }\"\n />\n </span>\n }\n }\n </span>\n `,\n styleUrl: './aeris-input-otp.scss',\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => AerisInputOtpComponent),\n multi: true,\n },\n ],\n host: {\n '[attr.data-fluid]': 'fluid() || null',\n },\n})\nexport class AerisInputOtpComponent implements ControlValueAccessor {\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n private readonly inputElements = viewChildren<ElementRef<HTMLInputElement>>('otpInput');\n private readonly generatedId = `aeris-input-otp-${++inputOtpId}`;\n private readonly formDisabled = signal(false);\n private onChange: (value: string) => void = () => undefined;\n private onTouched: () => void = () => undefined;\n\n readonly value = model('');\n readonly length = input(4, { transform: normalizeLength });\n readonly mode = input<AerisInputOtpMode>('numeric');\n readonly inputId = input('');\n readonly name = input('');\n readonly autocomplete = input('one-time-code');\n readonly ariaLabel = input('');\n readonly ariaLabelledby = input('');\n readonly ariaDescribedby = input('');\n readonly slotAriaLabel = input('Character {0} of {1}');\n readonly size = input<AerisInputOtpSize>('md');\n readonly appearance = input<AerisInputOtpAppearance>('outline');\n readonly mask = input(false, { transform: booleanAttribute });\n readonly autoFocus = input(false, { transform: booleanAttribute });\n readonly selectOnFocus = input(true, { transform: booleanAttribute });\n readonly disabled = input(false, { transform: booleanAttribute });\n readonly readonly = input(false, { transform: booleanAttribute });\n readonly required = input(false, { transform: booleanAttribute });\n readonly invalid = input(false, { transform: booleanAttribute });\n readonly fluid = input(false, { transform: booleanAttribute });\n\n readonly valueInput = output<string>();\n readonly completed = output<AerisInputOtpCompleteEvent>();\n readonly focused = output<FocusEvent>();\n readonly blurred = output<FocusEvent>();\n readonly touch = output<void>();\n\n protected readonly separatorTemplate = contentChild(AerisInputOtpSeparatorTemplate);\n protected readonly effectiveDisabled = computed(() => this.disabled() || this.formDisabled());\n protected readonly effectiveInputMode = computed(() =>\n this.mode() === 'numeric' ? 'numeric' : 'text',\n );\n protected readonly slots = computed<readonly InputOtpSlot[]>(() => {\n const value = this.normalizedValue();\n return Array.from({ length: this.length() }, (_, index) => ({\n index,\n position: index + 1,\n id: index === 0 && this.inputId() ? this.inputId() : `${this.generatedId}-${index + 1}`,\n value: value[index] ?? '',\n ariaLabel: this.slotAriaLabel()\n .replace('{0}', String(index + 1))\n .replace('{1}', String(this.length())),\n }));\n });\n protected readonly normalizedValue = computed(() =>\n this.filterCharacters(this.value()).slice(0, this.length()),\n );\n\n constructor() {\n afterNextRender(() => {\n if (this.autoFocus() && !this.effectiveDisabled()) this.focus();\n });\n }\n\n writeValue(value: unknown): void {\n const next = typeof value === 'string' || typeof value === 'number' ? String(value) : '';\n this.value.set(this.filterCharacters(next).slice(0, this.length()));\n }\n\n registerOnChange(callback: (value: string) => void): void {\n this.onChange = callback;\n }\n\n registerOnTouched(callback: () => void): void {\n this.onTouched = callback;\n }\n\n setDisabledState(disabled: boolean): void {\n this.formDisabled.set(disabled);\n }\n\n focus(index = 0, options?: FocusOptions): void {\n const targetIndex = Math.min(Math.max(index, 0), this.length() - 1);\n this.inputElements()[targetIndex]?.nativeElement.focus(options);\n }\n\n clear(): void {\n if (this.effectiveDisabled() || this.readonly()) return;\n this.commit('', new Event('clear'));\n queueMicrotask(() => this.focus());\n }\n\n protected handleBeforeInput(event: InputEvent, index: number): void {\n if (event.inputType.startsWith('delete') || !event.data) return;\n const accepted = this.filterCharacters(event.data);\n if (!accepted) {\n event.preventDefault();\n return;\n }\n if (accepted.length > 1) {\n event.preventDefault();\n this.insertCharacters(accepted, index, event);\n }\n }\n\n protected handleInput(event: Event, index: number): void {\n const inputElement = event.target as HTMLInputElement;\n const accepted = this.filterCharacters(inputElement.value);\n if (!accepted) {\n inputElement.value = this.normalizedValue()[index] ?? '';\n return;\n }\n this.insertCharacters(accepted, index, event);\n }\n\n protected handleKeydown(event: KeyboardEvent, index: number): void {\n if (this.effectiveDisabled() || this.readonly()) return;\n\n if (event.key === 'ArrowLeft') {\n event.preventDefault();\n this.focus(index - 1);\n return;\n }\n if (event.key === 'ArrowRight') {\n event.preventDefault();\n this.focus(index + 1);\n return;\n }\n if (event.key === 'Home') {\n event.preventDefault();\n this.focus(0);\n return;\n }\n if (event.key === 'End') {\n event.preventDefault();\n this.focus(this.length() - 1);\n return;\n }\n if (event.key === 'Backspace') {\n event.preventDefault();\n const currentValue = this.normalizedValue();\n const targetIndex = currentValue[index] ? index : Math.max(0, index - 1);\n this.removeAt(targetIndex, event);\n queueMicrotask(() => this.focus(targetIndex));\n return;\n }\n if (event.key === 'Delete') {\n event.preventDefault();\n this.removeAt(index, event);\n }\n }\n\n protected handlePaste(event: ClipboardEvent, index: number): void {\n const pasted = this.filterCharacters(event.clipboardData?.getData('text') ?? '');\n if (!pasted) return;\n event.preventDefault();\n this.insertCharacters(pasted, index, event);\n }\n\n protected handleFocus(event: FocusEvent): void {\n if (this.selectOnFocus()) {\n (event.target as HTMLInputElement).select();\n }\n this.focused.emit(event);\n }\n\n protected handleFocusOut(event: FocusEvent): void {\n const nextTarget = event.relatedTarget;\n if (nextTarget instanceof Node && this.host.nativeElement.contains(nextTarget)) return;\n this.touch.emit();\n this.onTouched();\n }\n\n private insertCharacters(characters: string, index: number, event: Event): void {\n const slots = Array.from({ length: this.length() }, (_, slotIndex) =>\n this.normalizedValue()[slotIndex] ?? '',\n );\n let nextIndex = index;\n for (const character of characters) {\n if (nextIndex >= slots.length) break;\n slots[nextIndex] = character;\n nextIndex += 1;\n }\n const nextValue = slots.join('');\n this.commit(nextValue, event);\n queueMicrotask(() => this.focus(Math.min(nextIndex, this.length() - 1)));\n }\n\n private removeAt(index: number, event: Event): void {\n const slots = Array.from({ length: this.length() }, (_, slotIndex) =>\n this.normalizedValue()[slotIndex] ?? '',\n );\n slots[index] = '';\n this.commit(slots.join(''), event);\n }\n\n private commit(value: string, event: Event): void {\n const nextValue = this.filterCharacters(value).slice(0, this.length());\n const wasComplete = this.normalizedValue().length === this.length();\n if (this.value() !== nextValue) {\n this.value.set(nextValue);\n this.valueInput.emit(nextValue);\n this.onChange(nextValue);\n }\n if (!wasComplete && nextValue.length === this.length()) {\n this.completed.emit({ originalEvent: event, value: nextValue });\n }\n }\n\n private filterCharacters(value: string): string {\n const pattern = this.mode() === 'numeric' ? /[0-9]/g : /[A-Za-z0-9]/g;\n return value.match(pattern)?.join('') ?? '';\n }\n}\n\nexport const AerisInputOtp = [\n AerisInputOtpComponent,\n AerisInputOtpSeparatorTemplate,\n] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;MA4Ca,8BAA8B,CAAA;A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